@jolibox/ads 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var zi = Object.defineProperty;
|
|
2
|
+
var je = Object.getOwnPropertySymbols;
|
|
3
|
+
var Pt = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Lt = (t, e, i) => e in t ? zi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Bt = (t, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
6
|
+
Pt.call(e, i) && Lt(t, i, e[i]);
|
|
7
|
+
if (je)
|
|
8
|
+
for (var i of je(e))
|
|
9
|
+
Nt.call(e, i) && Lt(t, i, e[i]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var Mt = (t, e) => {
|
|
13
13
|
var i = {};
|
|
14
14
|
for (var n in t)
|
|
15
|
-
|
|
16
|
-
if (t != null &&
|
|
17
|
-
for (var n of
|
|
18
|
-
e.indexOf(n) < 0 &&
|
|
15
|
+
Pt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
16
|
+
if (t != null && je)
|
|
17
|
+
for (var n of je(t))
|
|
18
|
+
e.indexOf(n) < 0 && Nt.call(t, n) && (i[n] = t[n]);
|
|
19
19
|
return i;
|
|
20
20
|
};
|
|
21
|
-
import { options as
|
|
22
|
-
import { useRef as
|
|
23
|
-
var
|
|
21
|
+
import { options as Ee, Component as Ki, isValidElement as Hi } from "preact";
|
|
22
|
+
import { useRef as li, useLayoutEffect as Wi, useEffect as ke, useMemo as Ji, useState as ve, useCallback as vt, render as le, createRef as Ft } from "preact/compat";
|
|
23
|
+
var ui = Object.defineProperty, Xi = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, Ut = (t, e, i) => e in t ? ui(t, e, {
|
|
24
24
|
enumerable: !0,
|
|
25
25
|
configurable: !0,
|
|
26
26
|
writable: !0,
|
|
27
27
|
value: i
|
|
28
|
-
}) : t[e] = i,
|
|
28
|
+
}) : t[e] = i, en = (t, e) => {
|
|
29
29
|
for (var i in e || (e = {}))
|
|
30
|
-
|
|
31
|
-
if (
|
|
32
|
-
for (var i of
|
|
33
|
-
|
|
30
|
+
Qi.call(e, i) && Ut(t, i, e[i]);
|
|
31
|
+
if ($t)
|
|
32
|
+
for (var i of $t(e))
|
|
33
|
+
Zi.call(e, i) && Ut(t, i, e[i]);
|
|
34
34
|
return t;
|
|
35
|
-
},
|
|
35
|
+
}, tn = (t, e) => Xi(t, Yi(e)), nn = (t, e) => {
|
|
36
36
|
for (var i in e)
|
|
37
|
-
|
|
37
|
+
ui(t, i, {
|
|
38
38
|
get: e[i],
|
|
39
39
|
enumerable: !0
|
|
40
40
|
});
|
|
41
|
-
},
|
|
41
|
+
}, ci = (t, e, i, n) => {
|
|
42
42
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
43
43
|
(s = t[o]) && (r = s(r) || r);
|
|
44
44
|
return r;
|
|
45
|
-
},
|
|
45
|
+
}, rn = (t, e, i) => new Promise((n, r) => {
|
|
46
46
|
var o = (d) => {
|
|
47
47
|
try {
|
|
48
48
|
a(i.next(d));
|
|
@@ -87,26 +87,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
87
87
|
n.call(this, i);
|
|
88
88
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function on(t) {
|
|
91
91
|
return new Promise((e) => {
|
|
92
92
|
setTimeout(() => {
|
|
93
93
|
e();
|
|
94
94
|
}, t);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function sn(t) {
|
|
98
98
|
return typeof t == "string";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function an(t) {
|
|
101
101
|
return typeof t == "undefined";
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
103
|
+
function dn(t) {
|
|
104
|
+
return an(t) || t === null;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ln(t) {
|
|
107
107
|
return typeof t == "function";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function hi(t) {
|
|
110
110
|
let e = t, i = null, n = function() {
|
|
111
111
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
112
112
|
o[s] = arguments[s];
|
|
@@ -114,29 +114,29 @@ function oi(t) {
|
|
|
114
114
|
};
|
|
115
115
|
return n.prototype = e.prototype, n;
|
|
116
116
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
117
|
+
var un = ((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))(un || {});
|
|
118
|
+
function Te(t) {
|
|
119
119
|
return function() {
|
|
120
120
|
var e, i;
|
|
121
121
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
var
|
|
125
|
-
log:
|
|
126
|
-
warn:
|
|
127
|
-
info:
|
|
128
|
-
error:
|
|
129
|
-
debug:
|
|
124
|
+
var cn = {
|
|
125
|
+
log: Te("log"),
|
|
126
|
+
warn: Te("warn"),
|
|
127
|
+
info: Te("info"),
|
|
128
|
+
error: Te("error"),
|
|
129
|
+
debug: Te("debug")
|
|
130
130
|
};
|
|
131
131
|
Object.assign(globalThis, {
|
|
132
|
-
logger:
|
|
132
|
+
logger: cn
|
|
133
133
|
});
|
|
134
|
-
var
|
|
135
|
-
globalThis[
|
|
136
|
-
var
|
|
137
|
-
globalThis[
|
|
138
|
-
var
|
|
139
|
-
function
|
|
134
|
+
var jt = Symbol.for("Jolibox.canIUseMap"), hn = {};
|
|
135
|
+
globalThis[jt] || (globalThis[jt] = hn);
|
|
136
|
+
var Vt = Symbol.for("Jolibox.canIUseMap.native"), fn = {};
|
|
137
|
+
globalThis[Vt] || (globalThis[Vt] = fn);
|
|
138
|
+
var fi = ((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))(fi || {}), vi = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(vi || {}), yi = ((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))(yi || {}), Gt = ["name", "params"], vn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], yn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
139
|
+
function Ke(t, e) {
|
|
140
140
|
return e.map((i) => {
|
|
141
141
|
if (i === "params" && t[i]) {
|
|
142
142
|
let n = t[i];
|
|
@@ -145,18 +145,18 @@ function Fe(t, e) {
|
|
|
145
145
|
return t[i];
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
let e = t.location ?
|
|
150
|
-
return
|
|
148
|
+
function gn(t) {
|
|
149
|
+
let e = t.location ? Ke(t.location, Gt) : null, i = t.target ? Ke(t.target, Gt) : null;
|
|
150
|
+
return Ke(tn(en({}, t), {
|
|
151
151
|
location: e,
|
|
152
152
|
target: i
|
|
153
|
-
}),
|
|
153
|
+
}), vn);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
let e = t.events.map((n) =>
|
|
155
|
+
function wn(t) {
|
|
156
|
+
let e = t.events.map((n) => gn(n)), i = Ke(t.device, yn);
|
|
157
157
|
return [t.protocolVersion, e, i, t.project];
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function bn() {
|
|
160
160
|
if (typeof window == "undefined")
|
|
161
161
|
return {
|
|
162
162
|
getItem: () => null,
|
|
@@ -189,32 +189,32 @@ function gn() {
|
|
|
189
189
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
var
|
|
194
|
-
!
|
|
195
|
-
var
|
|
192
|
+
bn();
|
|
193
|
+
var _e = typeof window == "undefined", yt = () => !_e && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
194
|
+
!_e && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !_e && navigator.userAgent.includes("Android"), !_e && navigator.userAgent.includes("Mac"), !_e && navigator.userAgent.includes("FB_IAB"), !_e && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
195
|
+
var gt = class wt {
|
|
196
196
|
constructor(e) {
|
|
197
|
-
this.element = e, this.next =
|
|
197
|
+
this.element = e, this.next = wt.Undefined, this.prev = wt.Undefined;
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
|
|
201
|
-
var
|
|
200
|
+
gt.Undefined = new gt(void 0);
|
|
201
|
+
var C = gt, An = class {
|
|
202
202
|
constructor() {
|
|
203
|
-
this._first =
|
|
203
|
+
this._first = C.Undefined, this._last = C.Undefined, this._size = 0;
|
|
204
204
|
}
|
|
205
205
|
get size() {
|
|
206
206
|
return this._size;
|
|
207
207
|
}
|
|
208
208
|
isEmpty() {
|
|
209
|
-
return this._first ===
|
|
209
|
+
return this._first === C.Undefined;
|
|
210
210
|
}
|
|
211
211
|
clear() {
|
|
212
212
|
let t = this._first;
|
|
213
|
-
for (; t !==
|
|
213
|
+
for (; t !== C.Undefined; ) {
|
|
214
214
|
let e = t.next;
|
|
215
|
-
t.prev =
|
|
215
|
+
t.prev = C.Undefined, t.next = C.Undefined, t = e;
|
|
216
216
|
}
|
|
217
|
-
this._first =
|
|
217
|
+
this._first = C.Undefined, this._last = C.Undefined, this._size = 0;
|
|
218
218
|
}
|
|
219
219
|
unshift(t) {
|
|
220
220
|
return this._insert(t, !1);
|
|
@@ -223,8 +223,8 @@ var x = lt, yn = class {
|
|
|
223
223
|
return this._insert(t, !0);
|
|
224
224
|
}
|
|
225
225
|
_insert(t, e) {
|
|
226
|
-
let i = new
|
|
227
|
-
if (this._first ===
|
|
226
|
+
let i = new C(t);
|
|
227
|
+
if (this._first === C.Undefined)
|
|
228
228
|
this._first = i, this._last = i;
|
|
229
229
|
else if (e) {
|
|
230
230
|
let r = this._last;
|
|
@@ -240,41 +240,41 @@ var x = lt, yn = class {
|
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
shift() {
|
|
243
|
-
if (this._first !==
|
|
243
|
+
if (this._first !== C.Undefined) {
|
|
244
244
|
let t = this._first.element;
|
|
245
245
|
return this._remove(this._first), t;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
pop() {
|
|
249
|
-
if (this._last !==
|
|
249
|
+
if (this._last !== C.Undefined) {
|
|
250
250
|
let t = this._last.element;
|
|
251
251
|
return this._remove(this._last), t;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
_remove(t) {
|
|
255
|
-
if (t.prev !==
|
|
255
|
+
if (t.prev !== C.Undefined && t.next !== C.Undefined) {
|
|
256
256
|
let e = t.prev;
|
|
257
257
|
e.next = t.next, t.next.prev = e;
|
|
258
258
|
} else
|
|
259
|
-
t.prev ===
|
|
259
|
+
t.prev === C.Undefined && t.next === C.Undefined ? (this._first = C.Undefined, this._last = C.Undefined) : t.next === C.Undefined ? (this._last = this._last.prev, this._last.next = C.Undefined) : t.prev === C.Undefined && (this._first = this._first.next, this._first.prev = C.Undefined);
|
|
260
260
|
this._size -= 1;
|
|
261
261
|
}
|
|
262
262
|
*[Symbol.iterator]() {
|
|
263
263
|
let t = this._first;
|
|
264
|
-
for (; t !==
|
|
264
|
+
for (; t !== C.Undefined; )
|
|
265
265
|
yield t.element, t = t.next;
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, pn = 0, Ce = class {
|
|
268
268
|
constructor(e) {
|
|
269
|
-
this.value = e, this.id =
|
|
269
|
+
this.value = e, this.id = pn++;
|
|
270
270
|
}
|
|
271
|
-
},
|
|
271
|
+
}, Ne = class {
|
|
272
272
|
constructor(e) {
|
|
273
273
|
this.options = e, this._size = 0;
|
|
274
274
|
}
|
|
275
275
|
dispose(e) {
|
|
276
276
|
var i, n;
|
|
277
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
277
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ce && (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));
|
|
278
278
|
}
|
|
279
279
|
get event() {
|
|
280
280
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -284,15 +284,15 @@ var x = lt, yn = class {
|
|
|
284
284
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
285
285
|
};
|
|
286
286
|
i && (e = e.bind(i));
|
|
287
|
-
let l = new
|
|
288
|
-
return this._listeners ? this._listeners instanceof
|
|
289
|
-
var u,
|
|
287
|
+
let l = new Ce(e);
|
|
288
|
+
return this._listeners ? this._listeners instanceof Ce ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (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++, () => {
|
|
289
|
+
var u, c, h, f;
|
|
290
290
|
if (!this._disposed) {
|
|
291
|
-
if (this._listeners instanceof
|
|
292
|
-
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (
|
|
291
|
+
if (this._listeners instanceof Ce)
|
|
292
|
+
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (c = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || c.call(u));
|
|
293
293
|
else if (this._listeners) {
|
|
294
294
|
let w = this._listeners.indexOf(l);
|
|
295
|
-
w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (
|
|
295
|
+
w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
};
|
|
@@ -314,19 +314,19 @@ var x = lt, yn = class {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
fire(e) {
|
|
317
|
-
this._listeners && (this._listeners instanceof
|
|
317
|
+
this._listeners && (this._listeners instanceof Ce ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
318
318
|
}
|
|
319
319
|
hasListeners() {
|
|
320
320
|
return this._size > 0;
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, _n = class {
|
|
323
323
|
constructor() {
|
|
324
324
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
325
325
|
}
|
|
326
326
|
on(t, e) {
|
|
327
327
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
328
328
|
var n;
|
|
329
|
-
let r = (n = this.listeners.get(t)) != null ? n : new
|
|
329
|
+
let r = (n = this.listeners.get(t)) != null ? n : new Ne(), o = (d) => e(...d.args), s = r.event(o);
|
|
330
330
|
this.listerHandlerMap.set(e, {
|
|
331
331
|
handler: o,
|
|
332
332
|
dispose: s
|
|
@@ -347,7 +347,7 @@ var x = lt, yn = class {
|
|
|
347
347
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
348
348
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
349
349
|
r[o - 1] = arguments[o];
|
|
350
|
-
i || (i = new
|
|
350
|
+
i || (i = new An(), this.cachedEventQueue.set(t, i)), i.push({
|
|
351
351
|
args: r
|
|
352
352
|
}), e && e.fire({
|
|
353
353
|
event: t,
|
|
@@ -361,20 +361,20 @@ var x = lt, yn = class {
|
|
|
361
361
|
};
|
|
362
362
|
this.on(t, n, !1);
|
|
363
363
|
}
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
None: () =>
|
|
367
|
-
filter: () =>
|
|
368
|
-
once: () =>
|
|
369
|
-
toPromise: () =>
|
|
364
|
+
}, bt = {};
|
|
365
|
+
nn(bt, {
|
|
366
|
+
None: () => mn,
|
|
367
|
+
filter: () => En,
|
|
368
|
+
once: () => gi,
|
|
369
|
+
toPromise: () => Sn
|
|
370
370
|
});
|
|
371
|
-
var
|
|
371
|
+
var mn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
372
372
|
console.log("[Jolibox SDK] None Event dispose");
|
|
373
373
|
});
|
|
374
|
-
function
|
|
375
|
-
return new Promise((e) =>
|
|
374
|
+
function Sn(t) {
|
|
375
|
+
return new Promise((e) => gi(t)(e));
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function gi(t) {
|
|
378
378
|
return function(e) {
|
|
379
379
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
380
380
|
return t((r) => {
|
|
@@ -383,52 +383,52 @@ function li(t) {
|
|
|
383
383
|
}, null);
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function En(t, e) {
|
|
387
387
|
return ((i) => {
|
|
388
388
|
let n = {
|
|
389
389
|
onWillAddFirstListener() {
|
|
390
390
|
i(r.fire, r);
|
|
391
391
|
}
|
|
392
|
-
}, r = new
|
|
392
|
+
}, r = new Ne(n);
|
|
393
393
|
return r.event;
|
|
394
394
|
})(function(i) {
|
|
395
395
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
396
396
|
return t((r) => e(r) && i.call(n, r), null);
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
let t = new
|
|
401
|
-
return globalThis[
|
|
399
|
+
var at = Symbol.for("Jolibox.hostEmitter"), kn = () => {
|
|
400
|
+
let t = new _n();
|
|
401
|
+
return globalThis[at] || (globalThis[at] = {
|
|
402
402
|
on: t.on.bind(t),
|
|
403
403
|
off: t.off.bind(t),
|
|
404
404
|
emit: t.emit.bind(t),
|
|
405
405
|
once: t.once.bind(t)
|
|
406
|
-
}), globalThis[
|
|
406
|
+
}), globalThis[at];
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
function
|
|
408
|
+
kn();
|
|
409
|
+
function In(t, e) {
|
|
410
410
|
let i = Math.min(t.length, e.length);
|
|
411
411
|
for (let n = 0; n < i; n++)
|
|
412
|
-
|
|
412
|
+
xn(t[n], e[n]);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
if (
|
|
414
|
+
function xn(t, e) {
|
|
415
|
+
if (sn(e)) {
|
|
416
416
|
if (typeof t !== e)
|
|
417
417
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
418
|
-
} else if (
|
|
418
|
+
} else if (ln(e)) {
|
|
419
419
|
try {
|
|
420
420
|
if (t instanceof e)
|
|
421
421
|
return;
|
|
422
422
|
} catch (i) {
|
|
423
423
|
}
|
|
424
|
-
if (!
|
|
424
|
+
if (!dn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
425
425
|
return;
|
|
426
426
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
429
|
+
var At = class {
|
|
430
430
|
constructor() {
|
|
431
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
431
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ne(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
432
432
|
}
|
|
433
433
|
registerCommand(t) {
|
|
434
434
|
if (!t)
|
|
@@ -441,7 +441,7 @@ var ht = class {
|
|
|
441
441
|
t.handler = function() {
|
|
442
442
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
443
443
|
o[s] = arguments[s];
|
|
444
|
-
return
|
|
444
|
+
return In(o, i), n(...o);
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
let {
|
|
@@ -461,19 +461,19 @@ var ht = class {
|
|
|
461
461
|
return t;
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
|
-
|
|
465
|
-
var
|
|
464
|
+
At = ci([hi], At);
|
|
465
|
+
var qt = class {
|
|
466
466
|
constructor() {
|
|
467
|
-
this._onWillExecuteCommand = new
|
|
467
|
+
this._onWillExecuteCommand = new Ne(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ne(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new At(), this._starActivation = null;
|
|
468
468
|
}
|
|
469
469
|
_activateStar() {
|
|
470
|
-
return this._starActivation || (this._starActivation =
|
|
470
|
+
return this._starActivation || (this._starActivation = on(3e4)), this._starActivation;
|
|
471
471
|
}
|
|
472
472
|
executeCommand(e) {
|
|
473
473
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
474
474
|
n[r - 1] = arguments[r];
|
|
475
|
-
return
|
|
476
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
475
|
+
return rn(this, null, function* () {
|
|
476
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), bt.toPromise(bt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
executeCommandThowErr(e) {
|
|
@@ -519,15 +519,15 @@ var Bt = class {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
|
|
523
|
-
function
|
|
524
|
-
return (e =
|
|
522
|
+
qt = ci([hi], qt);
|
|
523
|
+
function H(t, e, i) {
|
|
524
|
+
return (e = Rn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
var e =
|
|
526
|
+
function Rn(t) {
|
|
527
|
+
var e = On(t, "string");
|
|
528
528
|
return typeof e == "symbol" ? e : e + "";
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function On(t, e) {
|
|
531
531
|
if (typeof t != "object" || !t)
|
|
532
532
|
return t;
|
|
533
533
|
var i = t[Symbol.toPrimitive];
|
|
@@ -539,7 +539,7 @@ function In(t, e) {
|
|
|
539
539
|
}
|
|
540
540
|
return (e === "string" ? String : Number)(t);
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const we = (t) => t ? function() {
|
|
543
543
|
try {
|
|
544
544
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
545
545
|
i[n] = arguments[n];
|
|
@@ -550,9 +550,9 @@ const ae = (t) => t ? function() {
|
|
|
550
550
|
} : () => {
|
|
551
551
|
console.log("wrapUserFunction: fn is undefined");
|
|
552
552
|
};
|
|
553
|
-
class
|
|
553
|
+
class Tn {
|
|
554
554
|
constructor(e) {
|
|
555
|
-
|
|
555
|
+
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) => () => {
|
|
556
556
|
var o, s, a;
|
|
557
557
|
this.adsHasResponse = !0;
|
|
558
558
|
let n = !1;
|
|
@@ -560,15 +560,15 @@ class Rn {
|
|
|
560
560
|
n = !1;
|
|
561
561
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
562
562
|
userEvent: n
|
|
563
|
-
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",
|
|
563
|
+
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", Bt({
|
|
564
564
|
userEvent: n
|
|
565
|
-
}, this.paramsToTrack)),
|
|
565
|
+
}, this.paramsToTrack)), yt() && this.context.track("mmp_ad_impression", {
|
|
566
566
|
ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
|
|
567
567
|
ad_format: "rewarded",
|
|
568
568
|
module: "game",
|
|
569
569
|
game_id: this.contextInfo.objectId
|
|
570
570
|
}), (a = this.adIsShowingCallback) == null || a.call(this, !0);
|
|
571
|
-
const r =
|
|
571
|
+
const r = we(i);
|
|
572
572
|
r == null || r();
|
|
573
573
|
}), this.context = e, this.contextInfo = e.getContextInfo();
|
|
574
574
|
}
|
|
@@ -593,8 +593,8 @@ class Rn {
|
|
|
593
593
|
var i, n, r, o;
|
|
594
594
|
if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
|
|
595
595
|
this.isBeforeAdCalled = !0;
|
|
596
|
-
const s =
|
|
597
|
-
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0),
|
|
596
|
+
const s = we(e);
|
|
597
|
+
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), yt() && this.context.track("mmp_ad_impression", {
|
|
598
598
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
599
599
|
ad_format: "interstitial",
|
|
600
600
|
module: "game",
|
|
@@ -612,7 +612,7 @@ class Rn {
|
|
|
612
612
|
return () => {
|
|
613
613
|
if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
|
|
614
614
|
this.isAdDismissedCalled = !0;
|
|
615
|
-
const i =
|
|
615
|
+
const i = we(e);
|
|
616
616
|
i == null || i();
|
|
617
617
|
}
|
|
618
618
|
};
|
|
@@ -621,7 +621,7 @@ class Rn {
|
|
|
621
621
|
return () => {
|
|
622
622
|
if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
|
|
623
623
|
this.isAdViewedCalled = !0;
|
|
624
|
-
const i =
|
|
624
|
+
const i = we(e);
|
|
625
625
|
i == null || i();
|
|
626
626
|
}
|
|
627
627
|
};
|
|
@@ -630,14 +630,14 @@ class Rn {
|
|
|
630
630
|
return () => {
|
|
631
631
|
if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
|
|
632
632
|
this.isAfterAdCalled = !0;
|
|
633
|
-
const i =
|
|
633
|
+
const i = we(e);
|
|
634
634
|
i == null || i();
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
wrapAdBreakDone(e) {
|
|
639
639
|
return (i) => {
|
|
640
|
-
var n, r, o, s, a, d, l, u,
|
|
640
|
+
var n, r, o, s, a, d, l, u, c;
|
|
641
641
|
switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
|
|
642
642
|
provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
|
|
643
643
|
breakType: i.breakType,
|
|
@@ -655,12 +655,12 @@ class Rn {
|
|
|
655
655
|
case "ignored":
|
|
656
656
|
case "dismissed":
|
|
657
657
|
case "error": {
|
|
658
|
-
const
|
|
659
|
-
|
|
658
|
+
const h = we(e);
|
|
659
|
+
h == null || h(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
662
|
default: {
|
|
663
|
-
(
|
|
663
|
+
(c = this.continueCallback) == null || c.call(this, [!0, i]);
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
@@ -709,16 +709,16 @@ class Rn {
|
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
window.setTimeout(() => {
|
|
712
|
-
var a, d, l, u,
|
|
712
|
+
var a, d, l, u, c, h, f;
|
|
713
713
|
this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
|
|
714
714
|
type: i.type,
|
|
715
715
|
provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
|
|
716
716
|
}), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT", {
|
|
717
717
|
type: i.type,
|
|
718
718
|
provider: (u = (l = this.currentProvider) == null ? void 0 : l.name) != null ? u : null
|
|
719
|
-
}), (
|
|
719
|
+
}), (h = this.continueCallback) == null || h.call(this, [!0, {
|
|
720
720
|
breakType: i.type,
|
|
721
|
-
breakName: i.type === "preroll" ? "" : (
|
|
721
|
+
breakName: i.type === "preroll" ? "" : (c = i.name) != null ? c : "",
|
|
722
722
|
breakFormat: i.type === "reward" ? "reward" : "interstitial",
|
|
723
723
|
breakStatus: "timeout"
|
|
724
724
|
}]), (f = this.adIsShowingCallback) == null || f.call(this, !1));
|
|
@@ -726,14 +726,14 @@ class Rn {
|
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
return (e =
|
|
729
|
+
function Ve(t, e, i) {
|
|
730
|
+
return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
var e =
|
|
732
|
+
function Cn(t) {
|
|
733
|
+
var e = Dn(t, "string");
|
|
734
734
|
return typeof e == "symbol" ? e : e + "";
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Dn(t, e) {
|
|
737
737
|
if (typeof t != "object" || !t)
|
|
738
738
|
return t;
|
|
739
739
|
var i = t[Symbol.toPrimitive];
|
|
@@ -745,13 +745,13 @@ function On(t, e) {
|
|
|
745
745
|
}
|
|
746
746
|
return (e === "string" ? String : Number)(t);
|
|
747
747
|
}
|
|
748
|
-
class
|
|
748
|
+
class Ln {
|
|
749
749
|
constructor(e) {
|
|
750
|
-
|
|
750
|
+
Ve(this, "context", void 0), Ve(this, "adBreakIsShowing", !1), Ve(this, "reportPageJumpOut", () => {
|
|
751
751
|
this.context.track("AdBreakJumpOut", {
|
|
752
752
|
context: "AdsActionDetection"
|
|
753
753
|
});
|
|
754
|
-
}),
|
|
754
|
+
}), Ve(this, "reportPageHide", () => {
|
|
755
755
|
this.context.track("AdBreakHide", {
|
|
756
756
|
context: "AdsActionDetection"
|
|
757
757
|
});
|
|
@@ -762,14 +762,14 @@ class Tn {
|
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
return (e =
|
|
765
|
+
function Ge(t, e, i) {
|
|
766
|
+
return (e = Pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
var e =
|
|
768
|
+
function Pn(t) {
|
|
769
|
+
var e = Nn(t, "string");
|
|
770
770
|
return typeof e == "symbol" ? e : e + "";
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Nn(t, e) {
|
|
773
773
|
if (typeof t != "object" || !t)
|
|
774
774
|
return t;
|
|
775
775
|
var i = t[Symbol.toPrimitive];
|
|
@@ -781,9 +781,9 @@ function Dn(t, e) {
|
|
|
781
781
|
}
|
|
782
782
|
return (e === "string" ? String : Number)(t);
|
|
783
783
|
}
|
|
784
|
-
class
|
|
784
|
+
class Bn {
|
|
785
785
|
constructor(e) {
|
|
786
|
-
|
|
786
|
+
Ge(this, "configs", null), Ge(this, "firstRun", !0), Ge(this, "context", void 0), Ge(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
787
787
|
}
|
|
788
788
|
async init() {
|
|
789
789
|
try {
|
|
@@ -807,14 +807,14 @@ class Ln {
|
|
|
807
807
|
return this.firstRun = !1, e;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
return (e =
|
|
810
|
+
function oe(t, e, i) {
|
|
811
|
+
return (e = Mn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
814
|
-
var e =
|
|
813
|
+
function Mn(t) {
|
|
814
|
+
var e = Fn(t, "string");
|
|
815
815
|
return typeof e == "symbol" ? e : e + "";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Fn(t, e) {
|
|
818
818
|
if (typeof t != "object" || !t)
|
|
819
819
|
return t;
|
|
820
820
|
var i = t[Symbol.toPrimitive];
|
|
@@ -826,31 +826,31 @@ function Nn(t, e) {
|
|
|
826
826
|
}
|
|
827
827
|
return (e === "string" ? String : Number)(t);
|
|
828
828
|
}
|
|
829
|
-
class
|
|
829
|
+
class $n {
|
|
830
830
|
/**
|
|
831
831
|
* Internal constructor, should not be called directly
|
|
832
832
|
*/
|
|
833
833
|
constructor(e, i) {
|
|
834
|
-
|
|
834
|
+
oe(this, "name", "ADSENSE"), oe(this, "context", void 0), oe(this, "contextInfo", void 0), oe(this, "configured", !1), oe(this, "initParams", void 0), oe(this, "push", function() {
|
|
835
835
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
836
836
|
window.adsbygoogle.push(n);
|
|
837
|
-
}),
|
|
837
|
+
}), oe(this, "adConfig", (n) => {
|
|
838
838
|
const s = n, {
|
|
839
839
|
onReady: r
|
|
840
|
-
} = s, o =
|
|
840
|
+
} = s, o = Mt(s, [
|
|
841
841
|
"onReady"
|
|
842
842
|
]);
|
|
843
843
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
844
|
-
}),
|
|
844
|
+
}), oe(this, "adBreak", (n) => {
|
|
845
845
|
if (!this.contextInfo.objectId) {
|
|
846
846
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
847
847
|
return;
|
|
848
848
|
}
|
|
849
849
|
this.push(n);
|
|
850
|
-
}),
|
|
851
|
-
var w,
|
|
850
|
+
}), oe(this, "adUnit", async (n) => {
|
|
851
|
+
var w, v, A, y;
|
|
852
852
|
if (this.context.track("CallAdUnit", {
|
|
853
|
-
adFormat: (
|
|
853
|
+
adFormat: (v = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? v : null,
|
|
854
854
|
fullWidthResponsive: (A = n.fullWidthResponsive) != null ? A : null
|
|
855
855
|
}), document.querySelector("#jolibox-ads")) {
|
|
856
856
|
console.warn("Ad unit already set, skipping");
|
|
@@ -871,21 +871,21 @@ class Mn {
|
|
|
871
871
|
let u = o;
|
|
872
872
|
if (u || (u = this.initParams.unitId), !u)
|
|
873
873
|
throw new Error("slot is required");
|
|
874
|
-
const
|
|
875
|
-
if (
|
|
876
|
-
const
|
|
877
|
-
|
|
874
|
+
const c = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
|
|
875
|
+
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", u), c && h.setAttribute("data-ad-format", c), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
|
|
876
|
+
const g = document.createElement("div");
|
|
877
|
+
g.style.position = "absolute", g.style.top = "0", g.style.left = "0", g.style.width = "100%", g.style.height = "100%", g.style.display = "flex", g.style.justifyContent = "center", g.style.alignItems = "center", g.style.backgroundColor = "rgba(0, 0, 0, 0.5)", g.style.color = "white", g.innerHTML = "Test Ad", h.style.position = "relative", l.appendChild(h), h.appendChild(g);
|
|
878
878
|
} else
|
|
879
|
-
l.appendChild(
|
|
880
|
-
|
|
881
|
-
if (
|
|
882
|
-
const
|
|
879
|
+
l.appendChild(h), new MutationObserver((b) => {
|
|
880
|
+
b.forEach((x) => {
|
|
881
|
+
if (x.type === "attributes" && x.attributeName === "data-ad-status") {
|
|
882
|
+
const _ = h.getAttribute("data-ad-status");
|
|
883
883
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
884
|
-
status:
|
|
884
|
+
status: _ != null ? _ : "null"
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
});
|
|
888
|
-
}).observe(
|
|
888
|
+
}).observe(h, {
|
|
889
889
|
attributes: !0,
|
|
890
890
|
attributeFilter: ["data-ad-status"]
|
|
891
891
|
}), this.push({});
|
|
@@ -904,18 +904,18 @@ class Mn {
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Un(t) {
|
|
908
908
|
if (t.sheet)
|
|
909
909
|
return t.sheet;
|
|
910
910
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
911
911
|
if (document.styleSheets[e].ownerNode === t)
|
|
912
912
|
return document.styleSheets[e];
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function jn(t) {
|
|
915
915
|
var e = document.createElement("style");
|
|
916
916
|
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;
|
|
917
917
|
}
|
|
918
|
-
var
|
|
918
|
+
var Vn = /* @__PURE__ */ function() {
|
|
919
919
|
function t(i) {
|
|
920
920
|
var n = this;
|
|
921
921
|
this._insertTag = function(r) {
|
|
@@ -927,10 +927,10 @@ var Fn = /* @__PURE__ */ function() {
|
|
|
927
927
|
return e.hydrate = function(n) {
|
|
928
928
|
n.forEach(this._insertTag);
|
|
929
929
|
}, e.insert = function(n) {
|
|
930
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
930
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(jn(this));
|
|
931
931
|
var r = this.tags[this.tags.length - 1];
|
|
932
932
|
if (this.isSpeedy) {
|
|
933
|
-
var o =
|
|
933
|
+
var o = Un(r);
|
|
934
934
|
try {
|
|
935
935
|
o.insertRule(n, o.cssRules.length);
|
|
936
936
|
} catch (s) {
|
|
@@ -944,66 +944,66 @@ var Fn = /* @__PURE__ */ function() {
|
|
|
944
944
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
945
945
|
}), this.tags = [], this.ctr = 0;
|
|
946
946
|
}, t;
|
|
947
|
-
}(),
|
|
948
|
-
function
|
|
949
|
-
return
|
|
947
|
+
}(), V = "-ms-", Ze = "-moz-", k = "-webkit-", wi = "comm", xt = "rule", Rt = "decl", Gn = "@import", bi = "@keyframes", qn = "@layer", zn = Math.abs, nt = String.fromCharCode, Kn = Object.assign;
|
|
948
|
+
function Hn(t, e) {
|
|
949
|
+
return F(t, 0) ^ 45 ? (((e << 2 ^ F(t, 0)) << 2 ^ F(t, 1)) << 2 ^ F(t, 2)) << 2 ^ F(t, 3) : 0;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Ai(t) {
|
|
952
952
|
return t.trim();
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Wn(t, e) {
|
|
955
955
|
return (t = e.exec(t)) ? t[0] : t;
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function I(t, e, i) {
|
|
958
958
|
return t.replace(e, i);
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function pt(t, e) {
|
|
961
961
|
return t.indexOf(e);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function F(t, e) {
|
|
964
964
|
return t.charCodeAt(e) | 0;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Be(t, e, i) {
|
|
967
967
|
return t.slice(e, i);
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function ne(t) {
|
|
970
970
|
return t.length;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Ot(t) {
|
|
973
973
|
return t.length;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function qe(t, e) {
|
|
976
976
|
return e.push(t), t;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Jn(t, e) {
|
|
979
979
|
return t.map(e).join("");
|
|
980
980
|
}
|
|
981
|
-
var
|
|
982
|
-
function
|
|
983
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
984
|
-
}
|
|
985
|
-
function me(t, e) {
|
|
986
|
-
return Gn(Ze("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
981
|
+
var rt = 1, Ie = 1, pi = 0, J = 0, P = 0, xe = "";
|
|
982
|
+
function ot(t, e, i, n, r, o, s) {
|
|
983
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: rt, column: Ie, length: s, return: "" };
|
|
987
984
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
985
|
+
function De(t, e) {
|
|
986
|
+
return Kn(ot("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
990
987
|
}
|
|
991
|
-
function
|
|
992
|
-
return
|
|
988
|
+
function Xn() {
|
|
989
|
+
return P;
|
|
993
990
|
}
|
|
994
|
-
function
|
|
995
|
-
return
|
|
991
|
+
function Yn() {
|
|
992
|
+
return P = J > 0 ? F(xe, --J) : 0, Ie--, P === 10 && (Ie = 1, rt--), P;
|
|
996
993
|
}
|
|
997
994
|
function Y() {
|
|
998
|
-
return P(
|
|
995
|
+
return P = J < pi ? F(xe, J++) : 0, Ie++, P === 10 && (Ie = 1, rt++), P;
|
|
999
996
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
997
|
+
function re() {
|
|
998
|
+
return F(xe, J);
|
|
1002
999
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return
|
|
1000
|
+
function He() {
|
|
1001
|
+
return J;
|
|
1005
1002
|
}
|
|
1006
|
-
function
|
|
1003
|
+
function Fe(t, e) {
|
|
1004
|
+
return Be(xe, t, e);
|
|
1005
|
+
}
|
|
1006
|
+
function Me(t) {
|
|
1007
1007
|
switch (t) {
|
|
1008
1008
|
case 0:
|
|
1009
1009
|
case 9:
|
|
@@ -1035,240 +1035,240 @@ function Re(t) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
return 0;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return
|
|
1038
|
+
function _i(t) {
|
|
1039
|
+
return rt = Ie = 1, pi = ne(xe = t), J = 0, [];
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return
|
|
1041
|
+
function mi(t) {
|
|
1042
|
+
return xe = "", t;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return
|
|
1044
|
+
function We(t) {
|
|
1045
|
+
return Ai(Fe(J - 1, _t(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
for (; (
|
|
1049
|
-
|
|
1050
|
-
return
|
|
1047
|
+
function Qn(t) {
|
|
1048
|
+
for (; (P = re()) && P < 33; )
|
|
1049
|
+
Y();
|
|
1050
|
+
return Me(t) > 2 || Me(P) > 3 ? "" : " ";
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
for (; --e &&
|
|
1052
|
+
function Zn(t, e) {
|
|
1053
|
+
for (; --e && Y() && !(P < 48 || P > 102 || P > 57 && P < 65 || P > 70 && P < 97); )
|
|
1054
1054
|
;
|
|
1055
|
-
return
|
|
1055
|
+
return Fe(t, He() + (e < 6 && re() == 32 && Y() == 32));
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
for (;
|
|
1059
|
-
switch (
|
|
1057
|
+
function _t(t) {
|
|
1058
|
+
for (; Y(); )
|
|
1059
|
+
switch (P) {
|
|
1060
1060
|
case t:
|
|
1061
|
-
return
|
|
1061
|
+
return J;
|
|
1062
1062
|
case 34:
|
|
1063
1063
|
case 39:
|
|
1064
|
-
t !== 34 && t !== 39 &&
|
|
1064
|
+
t !== 34 && t !== 39 && _t(P);
|
|
1065
1065
|
break;
|
|
1066
1066
|
case 40:
|
|
1067
|
-
t === 41 &&
|
|
1067
|
+
t === 41 && _t(t);
|
|
1068
1068
|
break;
|
|
1069
1069
|
case 92:
|
|
1070
|
-
|
|
1070
|
+
Y();
|
|
1071
1071
|
break;
|
|
1072
1072
|
}
|
|
1073
|
-
return
|
|
1073
|
+
return J;
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
for (;
|
|
1077
|
-
if (t +
|
|
1075
|
+
function er(t, e) {
|
|
1076
|
+
for (; Y() && t + P !== 57; )
|
|
1077
|
+
if (t + P === 84 && re() === 47)
|
|
1078
1078
|
break;
|
|
1079
|
-
return "/*" +
|
|
1079
|
+
return "/*" + Fe(e, J - 1) + "*" + nt(t === 47 ? t : Y());
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
for (; !
|
|
1083
|
-
|
|
1084
|
-
return
|
|
1081
|
+
function tr(t) {
|
|
1082
|
+
for (; !Me(re()); )
|
|
1083
|
+
Y();
|
|
1084
|
+
return Fe(t, J);
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return
|
|
1086
|
+
function ir(t) {
|
|
1087
|
+
return mi(Je("", null, null, null, [""], t = _i(t), 0, [0], t));
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
for (var l = 0, u = 0,
|
|
1091
|
-
switch (w =
|
|
1089
|
+
function Je(t, e, i, n, r, o, s, a, d) {
|
|
1090
|
+
for (var l = 0, u = 0, c = s, h = 0, f = 0, w = 0, v = 1, A = 1, y = 1, g = 0, b = "", x = r, _ = o, m = n, p = b; A; )
|
|
1091
|
+
switch (w = g, g = Y()) {
|
|
1092
1092
|
case 40:
|
|
1093
|
-
if (w != 108 &&
|
|
1094
|
-
|
|
1093
|
+
if (w != 108 && F(p, c - 1) == 58) {
|
|
1094
|
+
pt(p += I(We(g), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1095
1095
|
break;
|
|
1096
1096
|
}
|
|
1097
1097
|
case 34:
|
|
1098
1098
|
case 39:
|
|
1099
1099
|
case 91:
|
|
1100
|
-
|
|
1100
|
+
p += We(g);
|
|
1101
1101
|
break;
|
|
1102
1102
|
case 9:
|
|
1103
1103
|
case 10:
|
|
1104
1104
|
case 13:
|
|
1105
1105
|
case 32:
|
|
1106
|
-
|
|
1106
|
+
p += Qn(w);
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 92:
|
|
1109
|
-
|
|
1109
|
+
p += Zn(He() - 1, 7);
|
|
1110
1110
|
continue;
|
|
1111
1111
|
case 47:
|
|
1112
|
-
switch (
|
|
1112
|
+
switch (re()) {
|
|
1113
1113
|
case 42:
|
|
1114
1114
|
case 47:
|
|
1115
|
-
|
|
1115
|
+
qe(nr(er(Y(), He()), e, i), d);
|
|
1116
1116
|
break;
|
|
1117
1117
|
default:
|
|
1118
|
-
|
|
1118
|
+
p += "/";
|
|
1119
1119
|
}
|
|
1120
1120
|
break;
|
|
1121
|
-
case 123 *
|
|
1122
|
-
a[l++] =
|
|
1123
|
-
case 125 *
|
|
1121
|
+
case 123 * v:
|
|
1122
|
+
a[l++] = ne(p) * y;
|
|
1123
|
+
case 125 * v:
|
|
1124
1124
|
case 59:
|
|
1125
1125
|
case 0:
|
|
1126
|
-
switch (
|
|
1126
|
+
switch (g) {
|
|
1127
1127
|
case 0:
|
|
1128
1128
|
case 125:
|
|
1129
1129
|
A = 0;
|
|
1130
1130
|
case 59 + u:
|
|
1131
|
-
y == -1 && (
|
|
1131
|
+
y == -1 && (p = I(p, /\f/g, "")), f > 0 && ne(p) - c && qe(f > 32 ? Kt(p + ";", n, i, c - 1) : Kt(I(p, " ", "") + ";", n, i, c - 2), d);
|
|
1132
1132
|
break;
|
|
1133
1133
|
case 59:
|
|
1134
|
-
|
|
1134
|
+
p += ";";
|
|
1135
1135
|
default:
|
|
1136
|
-
if (
|
|
1136
|
+
if (qe(m = zt(p, e, i, l, u, r, a, b, x = [], _ = [], c), o), g === 123)
|
|
1137
1137
|
if (u === 0)
|
|
1138
|
-
|
|
1138
|
+
Je(p, e, m, m, x, o, c, a, _);
|
|
1139
1139
|
else
|
|
1140
|
-
switch (
|
|
1140
|
+
switch (h === 99 && F(p, 3) === 110 ? 100 : h) {
|
|
1141
1141
|
case 100:
|
|
1142
1142
|
case 108:
|
|
1143
1143
|
case 109:
|
|
1144
1144
|
case 115:
|
|
1145
|
-
|
|
1145
|
+
Je(t, m, m, n && qe(zt(t, m, m, 0, 0, r, a, b, r, x = [], c), _), r, _, c, a, n ? x : _);
|
|
1146
1146
|
break;
|
|
1147
1147
|
default:
|
|
1148
|
-
|
|
1148
|
+
Je(p, m, m, m, [""], _, 0, a, _);
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
l = u = f = 0,
|
|
1151
|
+
l = u = f = 0, v = y = 1, b = p = "", c = s;
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 58:
|
|
1154
|
-
|
|
1154
|
+
c = 1 + ne(p), f = w;
|
|
1155
1155
|
default:
|
|
1156
|
-
if (
|
|
1157
|
-
if (
|
|
1158
|
-
--
|
|
1159
|
-
else if (
|
|
1156
|
+
if (v < 1) {
|
|
1157
|
+
if (g == 123)
|
|
1158
|
+
--v;
|
|
1159
|
+
else if (g == 125 && v++ == 0 && Yn() == 125)
|
|
1160
1160
|
continue;
|
|
1161
1161
|
}
|
|
1162
|
-
switch (
|
|
1162
|
+
switch (p += nt(g), g * v) {
|
|
1163
1163
|
case 38:
|
|
1164
|
-
y = u > 0 ? 1 : (
|
|
1164
|
+
y = u > 0 ? 1 : (p += "\f", -1);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 44:
|
|
1167
|
-
a[l++] = (
|
|
1167
|
+
a[l++] = (ne(p) - 1) * y, y = 1;
|
|
1168
1168
|
break;
|
|
1169
1169
|
case 64:
|
|
1170
|
-
|
|
1170
|
+
re() === 45 && (p += We(Y())), h = re(), u = c = ne(b = p += tr(He())), g++;
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 45:
|
|
1173
|
-
w === 45 &&
|
|
1173
|
+
w === 45 && ne(p) == 2 && (v = 0);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
return o;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
for (var
|
|
1180
|
-
for (var y = 0,
|
|
1181
|
-
(
|
|
1182
|
-
return
|
|
1178
|
+
function zt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1179
|
+
for (var c = r - 1, h = r === 0 ? o : [""], f = Ot(h), w = 0, v = 0, A = 0; w < n; ++w)
|
|
1180
|
+
for (var y = 0, g = Be(t, c + 1, c = zn(v = s[w])), b = t; y < f; ++y)
|
|
1181
|
+
(b = Ai(v > 0 ? h[y] + " " + g : I(g, /&\f/g, h[y]))) && (d[A++] = b);
|
|
1182
|
+
return ot(t, e, i, r === 0 ? xt : a, d, l, u);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1184
|
+
function nr(t, e, i) {
|
|
1185
|
+
return ot(t, e, i, wi, nt(Xn()), Be(t, 2, -2), 0);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return
|
|
1187
|
+
function Kt(t, e, i, n) {
|
|
1188
|
+
return ot(t, e, i, Rt, Be(t, 0, n), Be(t, n + 1, -1), n);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
for (var i = "", n =
|
|
1190
|
+
function Se(t, e) {
|
|
1191
|
+
for (var i = "", n = Ot(t), r = 0; r < n; r++)
|
|
1192
1192
|
i += e(t[r], r, t, e) || "";
|
|
1193
1193
|
return i;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function rr(t, e, i, n) {
|
|
1196
1196
|
switch (t.type) {
|
|
1197
|
-
case
|
|
1197
|
+
case qn:
|
|
1198
1198
|
if (t.children.length)
|
|
1199
1199
|
break;
|
|
1200
|
-
case
|
|
1201
|
-
case
|
|
1200
|
+
case Gn:
|
|
1201
|
+
case Rt:
|
|
1202
1202
|
return t.return = t.return || t.value;
|
|
1203
|
-
case
|
|
1203
|
+
case wi:
|
|
1204
1204
|
return "";
|
|
1205
|
-
case
|
|
1206
|
-
return t.return = t.value + "{" +
|
|
1207
|
-
case
|
|
1205
|
+
case bi:
|
|
1206
|
+
return t.return = t.value + "{" + Se(t.children, n) + "}";
|
|
1207
|
+
case xt:
|
|
1208
1208
|
t.value = t.props.join(",");
|
|
1209
1209
|
}
|
|
1210
|
-
return
|
|
1210
|
+
return ne(i = Se(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1213
|
-
var e =
|
|
1212
|
+
function or(t) {
|
|
1213
|
+
var e = Ot(t);
|
|
1214
1214
|
return function(i, n, r, o) {
|
|
1215
1215
|
for (var s = "", a = 0; a < e; a++)
|
|
1216
1216
|
s += t[a](i, n, r, o) || "";
|
|
1217
1217
|
return s;
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function sr(t) {
|
|
1221
1221
|
return function(e) {
|
|
1222
1222
|
e.root || (e = e.return) && t(e);
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function ar(t) {
|
|
1226
1226
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1227
1227
|
return function(i) {
|
|
1228
1228
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
var
|
|
1232
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1233
|
-
|
|
1234
|
-
return
|
|
1235
|
-
},
|
|
1231
|
+
var dr = function(e, i, n) {
|
|
1232
|
+
for (var r = 0, o = 0; r = o, o = re(), r === 38 && o === 12 && (i[n] = 1), !Me(o); )
|
|
1233
|
+
Y();
|
|
1234
|
+
return Fe(e, J);
|
|
1235
|
+
}, lr = function(e, i) {
|
|
1236
1236
|
var n = -1, r = 44;
|
|
1237
1237
|
do
|
|
1238
|
-
switch (
|
|
1238
|
+
switch (Me(r)) {
|
|
1239
1239
|
case 0:
|
|
1240
|
-
r === 38 &&
|
|
1240
|
+
r === 38 && re() === 12 && (i[n] = 1), e[n] += dr(J - 1, i, n);
|
|
1241
1241
|
break;
|
|
1242
1242
|
case 2:
|
|
1243
|
-
e[n] +=
|
|
1243
|
+
e[n] += We(r);
|
|
1244
1244
|
break;
|
|
1245
1245
|
case 4:
|
|
1246
1246
|
if (r === 44) {
|
|
1247
|
-
e[++n] =
|
|
1247
|
+
e[++n] = re() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1248
1248
|
break;
|
|
1249
1249
|
}
|
|
1250
1250
|
default:
|
|
1251
|
-
e[n] +=
|
|
1251
|
+
e[n] += nt(r);
|
|
1252
1252
|
}
|
|
1253
|
-
while (r =
|
|
1253
|
+
while (r = Y());
|
|
1254
1254
|
return e;
|
|
1255
|
-
},
|
|
1256
|
-
return
|
|
1257
|
-
},
|
|
1255
|
+
}, ur = function(e, i) {
|
|
1256
|
+
return mi(lr(_i(e), i));
|
|
1257
|
+
}, Ht = /* @__PURE__ */ new WeakMap(), cr = function(e) {
|
|
1258
1258
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1259
1259
|
// negative .length indicates that this rule has been already prefixed
|
|
1260
1260
|
e.length < 1)) {
|
|
1261
1261
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1262
1262
|
if (n = n.parent, !n)
|
|
1263
1263
|
return;
|
|
1264
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1265
|
-
|
|
1266
|
-
for (var o = [], s =
|
|
1264
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Ht.get(n)) && !r) {
|
|
1265
|
+
Ht.set(e, !0);
|
|
1266
|
+
for (var o = [], s = ur(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1267
1267
|
for (var u = 0; u < a.length; u++, l++)
|
|
1268
1268
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
},
|
|
1271
|
+
}, hr = function(e) {
|
|
1272
1272
|
if (e.type === "decl") {
|
|
1273
1273
|
var i = e.value;
|
|
1274
1274
|
// charcode for l
|
|
@@ -1276,10 +1276,10 @@ var or = function(e, i, n) {
|
|
|
1276
1276
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
|
-
function
|
|
1280
|
-
switch (
|
|
1279
|
+
function Si(t, e) {
|
|
1280
|
+
switch (Hn(t, e)) {
|
|
1281
1281
|
case 5103:
|
|
1282
|
-
return
|
|
1282
|
+
return k + "print-" + t + t;
|
|
1283
1283
|
case 5737:
|
|
1284
1284
|
case 4201:
|
|
1285
1285
|
case 3177:
|
|
@@ -1305,44 +1305,44 @@ function yi(t, e) {
|
|
|
1305
1305
|
case 5365:
|
|
1306
1306
|
case 5621:
|
|
1307
1307
|
case 3829:
|
|
1308
|
-
return
|
|
1308
|
+
return k + t + t;
|
|
1309
1309
|
case 5349:
|
|
1310
1310
|
case 4246:
|
|
1311
1311
|
case 4810:
|
|
1312
1312
|
case 6968:
|
|
1313
1313
|
case 2756:
|
|
1314
|
-
return
|
|
1314
|
+
return k + t + Ze + t + V + t + t;
|
|
1315
1315
|
case 6828:
|
|
1316
1316
|
case 4268:
|
|
1317
|
-
return
|
|
1317
|
+
return k + t + V + t + t;
|
|
1318
1318
|
case 6165:
|
|
1319
|
-
return
|
|
1319
|
+
return k + t + V + "flex-" + t + t;
|
|
1320
1320
|
case 5187:
|
|
1321
|
-
return
|
|
1321
|
+
return k + t + I(t, /(\w+).+(:[^]+)/, k + "box-$1$2" + V + "flex-$1$2") + t;
|
|
1322
1322
|
case 5443:
|
|
1323
|
-
return
|
|
1323
|
+
return k + t + V + "flex-item-" + I(t, /flex-|-self/, "") + t;
|
|
1324
1324
|
case 4675:
|
|
1325
|
-
return
|
|
1325
|
+
return k + t + V + "flex-line-pack" + I(t, /align-content|flex-|-self/, "") + t;
|
|
1326
1326
|
case 5548:
|
|
1327
|
-
return
|
|
1327
|
+
return k + t + V + I(t, "shrink", "negative") + t;
|
|
1328
1328
|
case 5292:
|
|
1329
|
-
return
|
|
1329
|
+
return k + t + V + I(t, "basis", "preferred-size") + t;
|
|
1330
1330
|
case 6060:
|
|
1331
|
-
return
|
|
1331
|
+
return k + "box-" + I(t, "-grow", "") + k + t + V + I(t, "grow", "positive") + t;
|
|
1332
1332
|
case 4554:
|
|
1333
|
-
return
|
|
1333
|
+
return k + I(t, /([^-])(transform)/g, "$1" + k + "$2") + t;
|
|
1334
1334
|
case 6187:
|
|
1335
|
-
return
|
|
1335
|
+
return I(I(I(t, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), t, "") + t;
|
|
1336
1336
|
case 5495:
|
|
1337
1337
|
case 3959:
|
|
1338
|
-
return
|
|
1338
|
+
return I(t, /(image-set\([^]*)/, k + "$1$`$1");
|
|
1339
1339
|
case 4968:
|
|
1340
|
-
return
|
|
1340
|
+
return I(I(t, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + t + t;
|
|
1341
1341
|
case 4095:
|
|
1342
1342
|
case 3583:
|
|
1343
1343
|
case 4068:
|
|
1344
1344
|
case 2532:
|
|
1345
|
-
return
|
|
1345
|
+
return I(t, /(.+)-inline(.+)/, k + "$1$2") + t;
|
|
1346
1346
|
case 8116:
|
|
1347
1347
|
case 7059:
|
|
1348
1348
|
case 5753:
|
|
@@ -1355,106 +1355,106 @@ function yi(t, e) {
|
|
|
1355
1355
|
case 5789:
|
|
1356
1356
|
case 5021:
|
|
1357
1357
|
case 4765:
|
|
1358
|
-
if (
|
|
1359
|
-
switch (
|
|
1358
|
+
if (ne(t) - 1 - e > 6)
|
|
1359
|
+
switch (F(t, e + 1)) {
|
|
1360
1360
|
case 109:
|
|
1361
|
-
if (
|
|
1361
|
+
if (F(t, e + 4) !== 45)
|
|
1362
1362
|
break;
|
|
1363
1363
|
case 102:
|
|
1364
|
-
return
|
|
1364
|
+
return I(t, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + Ze + (F(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1365
1365
|
case 115:
|
|
1366
|
-
return ~
|
|
1366
|
+
return ~pt(t, "stretch") ? Si(I(t, "stretch", "fill-available"), e) + t : t;
|
|
1367
1367
|
}
|
|
1368
1368
|
break;
|
|
1369
1369
|
case 4949:
|
|
1370
|
-
if (
|
|
1370
|
+
if (F(t, e + 1) !== 115)
|
|
1371
1371
|
break;
|
|
1372
1372
|
case 6444:
|
|
1373
|
-
switch (
|
|
1373
|
+
switch (F(t, ne(t) - 3 - (~pt(t, "!important") && 10))) {
|
|
1374
1374
|
case 107:
|
|
1375
|
-
return
|
|
1375
|
+
return I(t, ":", ":" + k) + t;
|
|
1376
1376
|
case 101:
|
|
1377
|
-
return
|
|
1377
|
+
return I(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (F(t, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + V + "$2box$3") + t;
|
|
1378
1378
|
}
|
|
1379
1379
|
break;
|
|
1380
1380
|
case 5936:
|
|
1381
|
-
switch (
|
|
1381
|
+
switch (F(t, e + 11)) {
|
|
1382
1382
|
case 114:
|
|
1383
|
-
return
|
|
1383
|
+
return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1384
1384
|
case 108:
|
|
1385
|
-
return
|
|
1385
|
+
return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1386
1386
|
case 45:
|
|
1387
|
-
return
|
|
1387
|
+
return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1388
1388
|
}
|
|
1389
|
-
return
|
|
1389
|
+
return k + t + V + t + t;
|
|
1390
1390
|
}
|
|
1391
1391
|
return t;
|
|
1392
1392
|
}
|
|
1393
|
-
var
|
|
1393
|
+
var fr = function(e, i, n, r) {
|
|
1394
1394
|
if (e.length > -1 && !e.return)
|
|
1395
1395
|
switch (e.type) {
|
|
1396
|
-
case
|
|
1397
|
-
e.return =
|
|
1396
|
+
case Rt:
|
|
1397
|
+
e.return = Si(e.value, e.length);
|
|
1398
1398
|
break;
|
|
1399
|
-
case
|
|
1400
|
-
return
|
|
1401
|
-
value:
|
|
1399
|
+
case bi:
|
|
1400
|
+
return Se([De(e, {
|
|
1401
|
+
value: I(e.value, "@", "@" + k)
|
|
1402
1402
|
})], r);
|
|
1403
|
-
case
|
|
1403
|
+
case xt:
|
|
1404
1404
|
if (e.length)
|
|
1405
|
-
return
|
|
1406
|
-
switch (
|
|
1405
|
+
return Jn(e.props, function(o) {
|
|
1406
|
+
switch (Wn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1407
1407
|
case ":read-only":
|
|
1408
1408
|
case ":read-write":
|
|
1409
|
-
return
|
|
1410
|
-
props: [
|
|
1409
|
+
return Se([De(e, {
|
|
1410
|
+
props: [I(o, /:(read-\w+)/, ":" + Ze + "$1")]
|
|
1411
1411
|
})], r);
|
|
1412
1412
|
case "::placeholder":
|
|
1413
|
-
return
|
|
1414
|
-
props: [
|
|
1415
|
-
}),
|
|
1416
|
-
props: [
|
|
1417
|
-
}),
|
|
1418
|
-
props: [
|
|
1413
|
+
return Se([De(e, {
|
|
1414
|
+
props: [I(o, /:(plac\w+)/, ":" + k + "input-$1")]
|
|
1415
|
+
}), De(e, {
|
|
1416
|
+
props: [I(o, /:(plac\w+)/, ":" + Ze + "$1")]
|
|
1417
|
+
}), De(e, {
|
|
1418
|
+
props: [I(o, /:(plac\w+)/, V + "input-$1")]
|
|
1419
1419
|
})], r);
|
|
1420
1420
|
}
|
|
1421
1421
|
return "";
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
|
-
},
|
|
1424
|
+
}, vr = [fr], yr = function(e) {
|
|
1425
1425
|
var i = e.key;
|
|
1426
1426
|
if (i === "css") {
|
|
1427
1427
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1428
|
-
Array.prototype.forEach.call(n, function(
|
|
1429
|
-
var A =
|
|
1430
|
-
A.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
1428
|
+
Array.prototype.forEach.call(n, function(v) {
|
|
1429
|
+
var A = v.getAttribute("data-emotion");
|
|
1430
|
+
A.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
|
-
var r = e.stylisPlugins ||
|
|
1433
|
+
var r = e.stylisPlugins || vr, o = {}, s, a = [];
|
|
1434
1434
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1435
1435
|
// this means we will ignore elements which don't have a space in them which
|
|
1436
1436
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1437
1437
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1438
|
-
function(
|
|
1439
|
-
for (var A =
|
|
1438
|
+
function(v) {
|
|
1439
|
+
for (var A = v.getAttribute("data-emotion").split(" "), y = 1; y < A.length; y++)
|
|
1440
1440
|
o[A[y]] = !0;
|
|
1441
|
-
a.push(
|
|
1441
|
+
a.push(v);
|
|
1442
1442
|
}
|
|
1443
1443
|
);
|
|
1444
|
-
var d, l = [
|
|
1444
|
+
var d, l = [cr, hr];
|
|
1445
1445
|
{
|
|
1446
|
-
var u,
|
|
1447
|
-
u.insert(
|
|
1448
|
-
})],
|
|
1449
|
-
return
|
|
1446
|
+
var u, c = [rr, sr(function(v) {
|
|
1447
|
+
u.insert(v);
|
|
1448
|
+
})], h = or(l.concat(r, c)), f = function(A) {
|
|
1449
|
+
return Se(ir(A), h);
|
|
1450
1450
|
};
|
|
1451
|
-
d = function(A, y,
|
|
1452
|
-
u =
|
|
1451
|
+
d = function(A, y, g, b) {
|
|
1452
|
+
u = g, f(A ? A + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
1455
|
var w = {
|
|
1456
1456
|
key: i,
|
|
1457
|
-
sheet: new
|
|
1457
|
+
sheet: new Vn({
|
|
1458
1458
|
key: i,
|
|
1459
1459
|
container: s,
|
|
1460
1460
|
nonce: e.nonce,
|
|
@@ -1469,7 +1469,7 @@ var ur = function(e, i, n, r) {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
return w.sheet.hydrate(a), w;
|
|
1471
1471
|
};
|
|
1472
|
-
function
|
|
1472
|
+
function gr(t) {
|
|
1473
1473
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1474
1474
|
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): */
|
|
1475
1475
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1488,7 +1488,7 @@ function fr(t) {
|
|
|
1488
1488
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1489
1489
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1490
1490
|
}
|
|
1491
|
-
var
|
|
1491
|
+
var wr = {
|
|
1492
1492
|
animationIterationCount: 1,
|
|
1493
1493
|
aspectRatio: 1,
|
|
1494
1494
|
borderImageOutset: 1,
|
|
@@ -1537,28 +1537,28 @@ var vr = {
|
|
|
1537
1537
|
strokeMiterlimit: 1,
|
|
1538
1538
|
strokeOpacity: 1,
|
|
1539
1539
|
strokeWidth: 1
|
|
1540
|
-
},
|
|
1540
|
+
}, br = /[A-Z]|^ms/g, Ar = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ei = function(e) {
|
|
1541
1541
|
return e.charCodeAt(1) === 45;
|
|
1542
|
-
},
|
|
1542
|
+
}, Wt = function(e) {
|
|
1543
1543
|
return e != null && typeof e != "boolean";
|
|
1544
|
-
},
|
|
1545
|
-
return
|
|
1546
|
-
}),
|
|
1544
|
+
}, dt = /* @__PURE__ */ ar(function(t) {
|
|
1545
|
+
return Ei(t) ? t : t.replace(br, "-$&").toLowerCase();
|
|
1546
|
+
}), Jt = function(e, i) {
|
|
1547
1547
|
switch (e) {
|
|
1548
1548
|
case "animation":
|
|
1549
1549
|
case "animationName":
|
|
1550
1550
|
if (typeof i == "string")
|
|
1551
|
-
return i.replace(
|
|
1552
|
-
return
|
|
1551
|
+
return i.replace(Ar, function(n, r, o) {
|
|
1552
|
+
return ce = {
|
|
1553
1553
|
name: r,
|
|
1554
1554
|
styles: o,
|
|
1555
|
-
next:
|
|
1555
|
+
next: ce
|
|
1556
1556
|
}, r;
|
|
1557
1557
|
});
|
|
1558
1558
|
}
|
|
1559
|
-
return
|
|
1559
|
+
return wr[e] !== 1 && !Ei(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1560
1560
|
};
|
|
1561
|
-
function
|
|
1561
|
+
function et(t, e, i) {
|
|
1562
1562
|
if (i == null)
|
|
1563
1563
|
return "";
|
|
1564
1564
|
var n = i;
|
|
@@ -1570,25 +1570,25 @@ function He(t, e, i) {
|
|
|
1570
1570
|
case "object": {
|
|
1571
1571
|
var r = i;
|
|
1572
1572
|
if (r.anim === 1)
|
|
1573
|
-
return
|
|
1573
|
+
return ce = {
|
|
1574
1574
|
name: r.name,
|
|
1575
1575
|
styles: r.styles,
|
|
1576
|
-
next:
|
|
1576
|
+
next: ce
|
|
1577
1577
|
}, r.name;
|
|
1578
1578
|
var o = i;
|
|
1579
1579
|
if (o.styles !== void 0) {
|
|
1580
1580
|
var s = o.next;
|
|
1581
1581
|
if (s !== void 0)
|
|
1582
1582
|
for (; s !== void 0; )
|
|
1583
|
-
|
|
1583
|
+
ce = {
|
|
1584
1584
|
name: s.name,
|
|
1585
1585
|
styles: s.styles,
|
|
1586
|
-
next:
|
|
1586
|
+
next: ce
|
|
1587
1587
|
}, s = s.next;
|
|
1588
1588
|
var a = o.styles + ";";
|
|
1589
1589
|
return a;
|
|
1590
1590
|
}
|
|
1591
|
-
return
|
|
1591
|
+
return pr(t, e, i);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
var d = i;
|
|
@@ -1597,26 +1597,26 @@ function He(t, e, i) {
|
|
|
1597
1597
|
var l = e[d];
|
|
1598
1598
|
return l !== void 0 ? l : d;
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function pr(t, e, i) {
|
|
1601
1601
|
var n = "";
|
|
1602
1602
|
if (Array.isArray(i))
|
|
1603
1603
|
for (var r = 0; r < i.length; r++)
|
|
1604
|
-
n +=
|
|
1604
|
+
n += et(t, e, i[r]) + ";";
|
|
1605
1605
|
else
|
|
1606
1606
|
for (var o in i) {
|
|
1607
1607
|
var s = i[o];
|
|
1608
1608
|
if (typeof s != "object") {
|
|
1609
1609
|
var a = s;
|
|
1610
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1610
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Wt(a) && (n += dt(o) + ":" + Jt(o, a) + ";");
|
|
1611
1611
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1612
1612
|
for (var d = 0; d < s.length; d++)
|
|
1613
|
-
|
|
1613
|
+
Wt(s[d]) && (n += dt(o) + ":" + Jt(o, s[d]) + ";");
|
|
1614
1614
|
else {
|
|
1615
|
-
var l =
|
|
1615
|
+
var l = et(t, e, s);
|
|
1616
1616
|
switch (o) {
|
|
1617
1617
|
case "animation":
|
|
1618
1618
|
case "animationName": {
|
|
1619
|
-
n +=
|
|
1619
|
+
n += dt(o) + ":" + l + ";";
|
|
1620
1620
|
break;
|
|
1621
1621
|
}
|
|
1622
1622
|
default:
|
|
@@ -1626,41 +1626,41 @@ function wr(t, e, i) {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
return n;
|
|
1628
1628
|
}
|
|
1629
|
-
var
|
|
1630
|
-
function
|
|
1629
|
+
var Xt = /label:\s*([^\s;{]+)\s*(;|$)/g, ce;
|
|
1630
|
+
function lt(t, e, i) {
|
|
1631
1631
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1632
1632
|
return t[0];
|
|
1633
1633
|
var n = !0, r = "";
|
|
1634
|
-
|
|
1634
|
+
ce = void 0;
|
|
1635
1635
|
var o = t[0];
|
|
1636
1636
|
if (o == null || o.raw === void 0)
|
|
1637
|
-
n = !1, r +=
|
|
1637
|
+
n = !1, r += et(i, e, o);
|
|
1638
1638
|
else {
|
|
1639
1639
|
var s = o;
|
|
1640
1640
|
r += s[0];
|
|
1641
1641
|
}
|
|
1642
1642
|
for (var a = 1; a < t.length; a++)
|
|
1643
|
-
if (r +=
|
|
1643
|
+
if (r += et(i, e, t[a]), n) {
|
|
1644
1644
|
var d = o;
|
|
1645
1645
|
r += d[a];
|
|
1646
1646
|
}
|
|
1647
|
-
|
|
1648
|
-
for (var l = "", u; (u =
|
|
1647
|
+
Xt.lastIndex = 0;
|
|
1648
|
+
for (var l = "", u; (u = Xt.exec(r)) !== null; )
|
|
1649
1649
|
l += "-" + u[1];
|
|
1650
|
-
var
|
|
1650
|
+
var c = gr(r) + l;
|
|
1651
1651
|
return {
|
|
1652
|
-
name:
|
|
1652
|
+
name: c,
|
|
1653
1653
|
styles: r,
|
|
1654
|
-
next:
|
|
1654
|
+
next: ce
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function ki(t, e, i) {
|
|
1658
1658
|
var n = "";
|
|
1659
1659
|
return i.split(" ").forEach(function(r) {
|
|
1660
1660
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1661
1661
|
}), n;
|
|
1662
1662
|
}
|
|
1663
|
-
var
|
|
1663
|
+
var _r = function(e, i, n) {
|
|
1664
1664
|
var r = e.key + "-" + i.name;
|
|
1665
1665
|
// we only need to add the styles to the registered cache if the
|
|
1666
1666
|
// class name could be used further down
|
|
@@ -1668,8 +1668,8 @@ var Ar = function(e, i, n) {
|
|
|
1668
1668
|
// so we don't have to add it to registered cache.
|
|
1669
1669
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1670
1670
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1671
|
+
}, mr = function(e, i, n) {
|
|
1672
|
+
_r(e, i);
|
|
1673
1673
|
var r = e.key + "-" + i.name;
|
|
1674
1674
|
if (e.inserted[i.name] === void 0) {
|
|
1675
1675
|
var o = i;
|
|
@@ -1678,41 +1678,41 @@ var Ar = function(e, i, n) {
|
|
|
1678
1678
|
while (o !== void 0);
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
|
-
function
|
|
1681
|
+
function Yt(t, e) {
|
|
1682
1682
|
if (t.inserted[e.name] === void 0)
|
|
1683
1683
|
return t.insert("", e, t.sheet, !0);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
var n = [], r =
|
|
1685
|
+
function Qt(t, e, i) {
|
|
1686
|
+
var n = [], r = ki(t, n, i);
|
|
1687
1687
|
return n.length < 2 ? i : r + e(n);
|
|
1688
1688
|
}
|
|
1689
|
-
var
|
|
1690
|
-
var i =
|
|
1689
|
+
var Sr = function(e) {
|
|
1690
|
+
var i = yr(e);
|
|
1691
1691
|
i.sheet.speedy = function(a) {
|
|
1692
1692
|
this.isSpeedy = a;
|
|
1693
1693
|
}, i.compat = !0;
|
|
1694
1694
|
var n = function() {
|
|
1695
1695
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1696
1696
|
l[u] = arguments[u];
|
|
1697
|
-
var
|
|
1698
|
-
return
|
|
1697
|
+
var c = lt(l, i.registered, void 0);
|
|
1698
|
+
return mr(i, c), i.key + "-" + c.name;
|
|
1699
1699
|
}, r = function() {
|
|
1700
1700
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1701
1701
|
l[u] = arguments[u];
|
|
1702
|
-
var
|
|
1703
|
-
return
|
|
1704
|
-
name:
|
|
1705
|
-
styles: "@keyframes " +
|
|
1706
|
-
}),
|
|
1702
|
+
var c = lt(l, i.registered), h = "animation-" + c.name;
|
|
1703
|
+
return Yt(i, {
|
|
1704
|
+
name: c.name,
|
|
1705
|
+
styles: "@keyframes " + h + "{" + c.styles + "}"
|
|
1706
|
+
}), h;
|
|
1707
1707
|
}, o = function() {
|
|
1708
1708
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1709
1709
|
l[u] = arguments[u];
|
|
1710
|
-
var
|
|
1711
|
-
|
|
1710
|
+
var c = lt(l, i.registered);
|
|
1711
|
+
Yt(i, c);
|
|
1712
1712
|
}, s = function() {
|
|
1713
1713
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1714
1714
|
l[u] = arguments[u];
|
|
1715
|
-
return
|
|
1715
|
+
return Qt(i.registered, n, Er(l));
|
|
1716
1716
|
};
|
|
1717
1717
|
return {
|
|
1718
1718
|
css: n,
|
|
@@ -1729,10 +1729,10 @@ var br = function(e) {
|
|
|
1729
1729
|
},
|
|
1730
1730
|
sheet: i.sheet,
|
|
1731
1731
|
cache: i,
|
|
1732
|
-
getRegisteredStyles:
|
|
1733
|
-
merge:
|
|
1732
|
+
getRegisteredStyles: ki.bind(null, i.registered),
|
|
1733
|
+
merge: Qt.bind(null, i.registered, n)
|
|
1734
1734
|
};
|
|
1735
|
-
},
|
|
1735
|
+
}, Er = function t(e) {
|
|
1736
1736
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1737
1737
|
var r = e[n];
|
|
1738
1738
|
if (r != null) {
|
|
@@ -1757,96 +1757,96 @@ var br = function(e) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
}
|
|
1759
1759
|
return i;
|
|
1760
|
-
},
|
|
1760
|
+
}, kr = Sr({
|
|
1761
1761
|
key: "css"
|
|
1762
|
-
}),
|
|
1763
|
-
function
|
|
1764
|
-
|
|
1765
|
-
var i =
|
|
1762
|
+
}), G = kr.css, mt, X, ut, Zt, ei = 0, Ii = [], N = Ee, ti = N.__b, ii = N.__r, ni = N.diffed, ri = N.__c, oi = N.unmount, si = N.__;
|
|
1763
|
+
function Ir(t, e) {
|
|
1764
|
+
N.__h && N.__h(X, t, ei || e), ei = 0;
|
|
1765
|
+
var i = X.__H || (X.__H = { __: [], __h: [] });
|
|
1766
1766
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
var i =
|
|
1770
|
-
return
|
|
1768
|
+
function xi(t, e) {
|
|
1769
|
+
var i = Ir(mt++, 7);
|
|
1770
|
+
return Or(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
for (var t; t =
|
|
1772
|
+
function xr() {
|
|
1773
|
+
for (var t; t = Ii.shift(); )
|
|
1774
1774
|
if (t.__P && t.__H)
|
|
1775
1775
|
try {
|
|
1776
|
-
t.__H.__h.forEach(
|
|
1776
|
+
t.__H.__h.forEach(Xe), t.__H.__h.forEach(St), t.__H.__h = [];
|
|
1777
1777
|
} catch (e) {
|
|
1778
|
-
t.__H.__h = [],
|
|
1778
|
+
t.__H.__h = [], N.__e(e, t.__v);
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
},
|
|
1784
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1785
|
-
},
|
|
1786
|
-
|
|
1787
|
-
var e = (
|
|
1788
|
-
e && (
|
|
1781
|
+
N.__b = function(t) {
|
|
1782
|
+
X = null, ti && ti(t);
|
|
1783
|
+
}, N.__ = function(t, e) {
|
|
1784
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), si && si(t, e);
|
|
1785
|
+
}, N.__r = function(t) {
|
|
1786
|
+
ii && ii(t), mt = 0;
|
|
1787
|
+
var e = (X = t.__c).__H;
|
|
1788
|
+
e && (ut === X ? (e.__h = [], X.__h = [], e.__.forEach(function(i) {
|
|
1789
1789
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1790
|
-
})) : (e.__h.forEach(
|
|
1791
|
-
},
|
|
1792
|
-
|
|
1790
|
+
})) : (e.__h.forEach(Xe), e.__h.forEach(St), e.__h = [], mt = 0)), ut = X;
|
|
1791
|
+
}, N.diffed = function(t) {
|
|
1792
|
+
ni && ni(t);
|
|
1793
1793
|
var e = t.__c;
|
|
1794
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1794
|
+
e && e.__H && (e.__H.__h.length && (Ii.push(e) !== 1 && Zt === N.requestAnimationFrame || ((Zt = N.requestAnimationFrame) || Rr)(xr)), e.__H.__.forEach(function(i) {
|
|
1795
1795
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1796
|
-
})),
|
|
1797
|
-
},
|
|
1796
|
+
})), ut = X = null;
|
|
1797
|
+
}, N.__c = function(t, e) {
|
|
1798
1798
|
e.some(function(i) {
|
|
1799
1799
|
try {
|
|
1800
|
-
i.__h.forEach(
|
|
1801
|
-
return !n.__ ||
|
|
1800
|
+
i.__h.forEach(Xe), i.__h = i.__h.filter(function(n) {
|
|
1801
|
+
return !n.__ || St(n);
|
|
1802
1802
|
});
|
|
1803
1803
|
} catch (n) {
|
|
1804
1804
|
e.some(function(r) {
|
|
1805
1805
|
r.__h && (r.__h = []);
|
|
1806
|
-
}), e = [],
|
|
1806
|
+
}), e = [], N.__e(n, i.__v);
|
|
1807
1807
|
}
|
|
1808
|
-
}),
|
|
1809
|
-
},
|
|
1810
|
-
|
|
1808
|
+
}), ri && ri(t, e);
|
|
1809
|
+
}, N.unmount = function(t) {
|
|
1810
|
+
oi && oi(t);
|
|
1811
1811
|
var e, i = t.__c;
|
|
1812
1812
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1813
1813
|
try {
|
|
1814
|
-
|
|
1814
|
+
Xe(n);
|
|
1815
1815
|
} catch (r) {
|
|
1816
1816
|
e = r;
|
|
1817
1817
|
}
|
|
1818
|
-
}), i.__H = void 0, e &&
|
|
1818
|
+
}), i.__H = void 0, e && N.__e(e, i.__v));
|
|
1819
1819
|
};
|
|
1820
|
-
var
|
|
1821
|
-
function
|
|
1820
|
+
var ai = typeof requestAnimationFrame == "function";
|
|
1821
|
+
function Rr(t) {
|
|
1822
1822
|
var e, i = function() {
|
|
1823
|
-
clearTimeout(n),
|
|
1823
|
+
clearTimeout(n), ai && cancelAnimationFrame(e), setTimeout(t);
|
|
1824
1824
|
}, n = setTimeout(i, 100);
|
|
1825
|
-
|
|
1825
|
+
ai && (e = requestAnimationFrame(i));
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1828
|
-
var e =
|
|
1829
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1827
|
+
function Xe(t) {
|
|
1828
|
+
var e = X, i = t.__c;
|
|
1829
|
+
typeof i == "function" && (t.__c = void 0, i()), X = e;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1832
|
-
var e =
|
|
1833
|
-
t.__c = t.__(),
|
|
1831
|
+
function St(t) {
|
|
1832
|
+
var e = X;
|
|
1833
|
+
t.__c = t.__(), X = e;
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Or(t, e) {
|
|
1836
1836
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1837
1837
|
return i !== t[n];
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
|
-
var
|
|
1841
|
-
function
|
|
1842
|
-
if (
|
|
1843
|
-
|
|
1840
|
+
var Tr = Symbol.for("preact-signals");
|
|
1841
|
+
function st() {
|
|
1842
|
+
if (he > 1)
|
|
1843
|
+
he--;
|
|
1844
1844
|
else {
|
|
1845
|
-
for (var t, e = !1;
|
|
1846
|
-
var i =
|
|
1847
|
-
for (
|
|
1845
|
+
for (var t, e = !1; Le !== void 0; ) {
|
|
1846
|
+
var i = Le;
|
|
1847
|
+
for (Le = void 0, Et++; i !== void 0; ) {
|
|
1848
1848
|
var n = i.o;
|
|
1849
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1849
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && Oi(i))
|
|
1850
1850
|
try {
|
|
1851
1851
|
i.c();
|
|
1852
1852
|
} catch (r) {
|
|
@@ -1855,102 +1855,102 @@ function et() {
|
|
|
1855
1855
|
i = n;
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
|
-
if (
|
|
1858
|
+
if (Et = 0, he--, e)
|
|
1859
1859
|
throw t;
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1863
|
-
if (
|
|
1862
|
+
function D(t) {
|
|
1863
|
+
if (he > 0)
|
|
1864
1864
|
return t();
|
|
1865
|
-
|
|
1865
|
+
he++;
|
|
1866
1866
|
try {
|
|
1867
1867
|
return t();
|
|
1868
1868
|
} finally {
|
|
1869
|
-
|
|
1869
|
+
st();
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
|
-
var
|
|
1873
|
-
function
|
|
1874
|
-
if (
|
|
1872
|
+
var R = void 0, Le = void 0, he = 0, Et = 0, tt = 0;
|
|
1873
|
+
function Ri(t) {
|
|
1874
|
+
if (R !== void 0) {
|
|
1875
1875
|
var e = t.n;
|
|
1876
|
-
if (e === void 0 || e.t !==
|
|
1877
|
-
return e = { i: 0, S: t, p:
|
|
1876
|
+
if (e === void 0 || e.t !== R)
|
|
1877
|
+
return e = { i: 0, S: t, p: R.s, n: void 0, t: R, e: void 0, x: void 0, r: e }, R.s !== void 0 && (R.s.n = e), R.s = e, t.n = e, 32 & R.f && t.S(e), e;
|
|
1878
1878
|
if (e.i === -1)
|
|
1879
|
-
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p =
|
|
1879
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = R.s, e.n = void 0, R.s.n = e, R.s = e), e;
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function U(t) {
|
|
1883
1883
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1884
1884
|
}
|
|
1885
|
-
|
|
1886
|
-
|
|
1885
|
+
U.prototype.brand = Tr;
|
|
1886
|
+
U.prototype.h = function() {
|
|
1887
1887
|
return !0;
|
|
1888
1888
|
};
|
|
1889
|
-
|
|
1889
|
+
U.prototype.S = function(t) {
|
|
1890
1890
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1891
1891
|
};
|
|
1892
|
-
|
|
1892
|
+
U.prototype.U = function(t) {
|
|
1893
1893
|
if (this.t !== void 0) {
|
|
1894
1894
|
var e = t.e, i = t.x;
|
|
1895
1895
|
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
|
|
1898
|
+
U.prototype.subscribe = function(t) {
|
|
1899
1899
|
var e = this;
|
|
1900
|
-
return
|
|
1901
|
-
var i = e.value, n =
|
|
1902
|
-
|
|
1900
|
+
return Ue(function() {
|
|
1901
|
+
var i = e.value, n = R;
|
|
1902
|
+
R = void 0;
|
|
1903
1903
|
try {
|
|
1904
1904
|
t(i);
|
|
1905
1905
|
} finally {
|
|
1906
|
-
|
|
1906
|
+
R = n;
|
|
1907
1907
|
}
|
|
1908
1908
|
});
|
|
1909
1909
|
};
|
|
1910
|
-
|
|
1910
|
+
U.prototype.valueOf = function() {
|
|
1911
1911
|
return this.value;
|
|
1912
1912
|
};
|
|
1913
|
-
|
|
1913
|
+
U.prototype.toString = function() {
|
|
1914
1914
|
return this.value + "";
|
|
1915
1915
|
};
|
|
1916
|
-
|
|
1916
|
+
U.prototype.toJSON = function() {
|
|
1917
1917
|
return this.value;
|
|
1918
1918
|
};
|
|
1919
|
-
|
|
1920
|
-
var t =
|
|
1921
|
-
|
|
1919
|
+
U.prototype.peek = function() {
|
|
1920
|
+
var t = R;
|
|
1921
|
+
R = void 0;
|
|
1922
1922
|
try {
|
|
1923
1923
|
return this.value;
|
|
1924
1924
|
} finally {
|
|
1925
|
-
|
|
1925
|
+
R = t;
|
|
1926
1926
|
}
|
|
1927
1927
|
};
|
|
1928
|
-
Object.defineProperty(
|
|
1929
|
-
var t =
|
|
1928
|
+
Object.defineProperty(U.prototype, "value", { get: function() {
|
|
1929
|
+
var t = Ri(this);
|
|
1930
1930
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1931
1931
|
}, set: function(t) {
|
|
1932
1932
|
if (t !== this.v) {
|
|
1933
|
-
if (
|
|
1933
|
+
if (Et > 100)
|
|
1934
1934
|
throw new Error("Cycle detected");
|
|
1935
|
-
this.v = t, this.i++,
|
|
1935
|
+
this.v = t, this.i++, tt++, he++;
|
|
1936
1936
|
try {
|
|
1937
1937
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1938
1938
|
e.t.N();
|
|
1939
1939
|
} finally {
|
|
1940
|
-
|
|
1940
|
+
st();
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
1943
|
} });
|
|
1944
1944
|
function E(t) {
|
|
1945
|
-
return new
|
|
1945
|
+
return new U(t);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Oi(t) {
|
|
1948
1948
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1949
1949
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1950
1950
|
return !0;
|
|
1951
1951
|
return !1;
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function Ti(t) {
|
|
1954
1954
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1955
1955
|
var i = e.S.n;
|
|
1956
1956
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1959,95 +1959,95 @@ function Si(t) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function Ci(t) {
|
|
1963
1963
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1964
1964
|
var n = e.p;
|
|
1965
1965
|
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;
|
|
1966
1966
|
}
|
|
1967
1967
|
t.s = i;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1970
|
-
|
|
1969
|
+
function Re(t) {
|
|
1970
|
+
U.call(this, void 0), this.x = t, this.s = void 0, this.g = tt - 1, this.f = 4;
|
|
1971
1971
|
}
|
|
1972
|
-
(
|
|
1972
|
+
(Re.prototype = new U()).h = function() {
|
|
1973
1973
|
if (this.f &= -3, 1 & this.f)
|
|
1974
1974
|
return !1;
|
|
1975
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1975
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === tt))
|
|
1976
1976
|
return !0;
|
|
1977
|
-
if (this.g =
|
|
1977
|
+
if (this.g = tt, this.f |= 1, this.i > 0 && !Oi(this))
|
|
1978
1978
|
return this.f &= -2, !0;
|
|
1979
|
-
var t =
|
|
1979
|
+
var t = R;
|
|
1980
1980
|
try {
|
|
1981
|
-
|
|
1981
|
+
Ti(this), R = this;
|
|
1982
1982
|
var e = this.x();
|
|
1983
1983
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1984
1984
|
} catch (i) {
|
|
1985
1985
|
this.v = i, this.f |= 16, this.i++;
|
|
1986
1986
|
}
|
|
1987
|
-
return
|
|
1987
|
+
return R = t, Ci(this), this.f &= -2, !0;
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1989
|
+
Re.prototype.S = function(t) {
|
|
1990
1990
|
if (this.t === void 0) {
|
|
1991
1991
|
this.f |= 36;
|
|
1992
1992
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1993
1993
|
e.S.S(e);
|
|
1994
1994
|
}
|
|
1995
|
-
|
|
1995
|
+
U.prototype.S.call(this, t);
|
|
1996
1996
|
};
|
|
1997
|
-
|
|
1998
|
-
if (this.t !== void 0 && (
|
|
1997
|
+
Re.prototype.U = function(t) {
|
|
1998
|
+
if (this.t !== void 0 && (U.prototype.U.call(this, t), this.t === void 0)) {
|
|
1999
1999
|
this.f &= -33;
|
|
2000
2000
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
2001
2001
|
e.S.U(e);
|
|
2002
2002
|
}
|
|
2003
2003
|
};
|
|
2004
|
-
|
|
2004
|
+
Re.prototype.N = function() {
|
|
2005
2005
|
if (!(2 & this.f)) {
|
|
2006
2006
|
this.f |= 6;
|
|
2007
2007
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2008
2008
|
t.t.N();
|
|
2009
2009
|
}
|
|
2010
2010
|
};
|
|
2011
|
-
Object.defineProperty(
|
|
2011
|
+
Object.defineProperty(Re.prototype, "value", { get: function() {
|
|
2012
2012
|
if (1 & this.f)
|
|
2013
2013
|
throw new Error("Cycle detected");
|
|
2014
|
-
var t =
|
|
2014
|
+
var t = Ri(this);
|
|
2015
2015
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2016
2016
|
throw this.v;
|
|
2017
2017
|
return this.v;
|
|
2018
2018
|
} });
|
|
2019
|
-
function
|
|
2020
|
-
return new
|
|
2019
|
+
function Pe(t) {
|
|
2020
|
+
return new Re(t);
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Di(t) {
|
|
2023
2023
|
var e = t.u;
|
|
2024
2024
|
if (t.u = void 0, typeof e == "function") {
|
|
2025
|
-
|
|
2026
|
-
var i =
|
|
2027
|
-
|
|
2025
|
+
he++;
|
|
2026
|
+
var i = R;
|
|
2027
|
+
R = void 0;
|
|
2028
2028
|
try {
|
|
2029
2029
|
e();
|
|
2030
2030
|
} catch (n) {
|
|
2031
|
-
throw t.f &= -2, t.f |= 8,
|
|
2031
|
+
throw t.f &= -2, t.f |= 8, Tt(t), n;
|
|
2032
2032
|
} finally {
|
|
2033
|
-
|
|
2033
|
+
R = i, st();
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Tt(t) {
|
|
2038
2038
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2039
2039
|
e.S.U(e);
|
|
2040
|
-
t.x = void 0, t.s = void 0,
|
|
2040
|
+
t.x = void 0, t.s = void 0, Di(t);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2043
|
-
if (
|
|
2042
|
+
function Cr(t) {
|
|
2043
|
+
if (R !== this)
|
|
2044
2044
|
throw new Error("Out-of-order effect");
|
|
2045
|
-
|
|
2045
|
+
Ci(this), R = t, this.f &= -2, 8 & this.f && Tt(this), st();
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function $e(t) {
|
|
2048
2048
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2049
2049
|
}
|
|
2050
|
-
|
|
2050
|
+
$e.prototype.c = function() {
|
|
2051
2051
|
var t = this.S();
|
|
2052
2052
|
try {
|
|
2053
2053
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2058,21 +2058,21 @@ Oe.prototype.c = function() {
|
|
|
2058
2058
|
t();
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
|
-
|
|
2061
|
+
$e.prototype.S = function() {
|
|
2062
2062
|
if (1 & this.f)
|
|
2063
2063
|
throw new Error("Cycle detected");
|
|
2064
|
-
this.f |= 1, this.f &= -9,
|
|
2065
|
-
var t =
|
|
2066
|
-
return
|
|
2064
|
+
this.f |= 1, this.f &= -9, Di(this), Ti(this), he++;
|
|
2065
|
+
var t = R;
|
|
2066
|
+
return R = this, Cr.bind(this, t);
|
|
2067
2067
|
};
|
|
2068
|
-
|
|
2069
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2068
|
+
$e.prototype.N = function() {
|
|
2069
|
+
2 & this.f || (this.f |= 2, this.o = Le, Le = this);
|
|
2070
2070
|
};
|
|
2071
|
-
|
|
2072
|
-
this.f |= 8, 1 & this.f ||
|
|
2071
|
+
$e.prototype.d = function() {
|
|
2072
|
+
this.f |= 8, 1 & this.f || Tt(this);
|
|
2073
2073
|
};
|
|
2074
|
-
function
|
|
2075
|
-
var e = new
|
|
2074
|
+
function Ue(t) {
|
|
2075
|
+
var e = new $e(t);
|
|
2076
2076
|
try {
|
|
2077
2077
|
e.c();
|
|
2078
2078
|
} catch (i) {
|
|
@@ -2080,75 +2080,75 @@ function Te(t) {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
return e.d.bind(e);
|
|
2082
2082
|
}
|
|
2083
|
-
var
|
|
2084
|
-
|
|
2085
|
-
|
|
2083
|
+
var Li, ct, Pi = [];
|
|
2084
|
+
Ue(function() {
|
|
2085
|
+
Li = this.N;
|
|
2086
2086
|
})();
|
|
2087
|
-
function
|
|
2088
|
-
|
|
2087
|
+
function Oe(t, e) {
|
|
2088
|
+
Ee[t] = e.bind(null, Ee[t] || function() {
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2092
|
-
|
|
2091
|
+
function it(t) {
|
|
2092
|
+
ct && ct(), ct = t && t.S();
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2095
|
-
var e = this, i = t.data, n =
|
|
2094
|
+
function Ni(t) {
|
|
2095
|
+
var e = this, i = t.data, n = Bi(i);
|
|
2096
2096
|
n.value = i;
|
|
2097
|
-
var r =
|
|
2097
|
+
var r = xi(function() {
|
|
2098
2098
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2099
2099
|
if (d.__c) {
|
|
2100
2100
|
d.__c.__$f |= 4;
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
|
-
var l =
|
|
2103
|
+
var l = Pe(function() {
|
|
2104
2104
|
var f = n.value.value;
|
|
2105
2105
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2106
|
-
}), u =
|
|
2107
|
-
return !Array.isArray(l.value) && !
|
|
2108
|
-
}),
|
|
2109
|
-
if (this.N =
|
|
2106
|
+
}), u = Pe(function() {
|
|
2107
|
+
return !Array.isArray(l.value) && !Hi(l.value);
|
|
2108
|
+
}), c = Ue(function() {
|
|
2109
|
+
if (this.N = Mi, u.value) {
|
|
2110
2110
|
var f = l.value;
|
|
2111
2111
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2112
2112
|
}
|
|
2113
|
-
}),
|
|
2113
|
+
}), h = e.__$u.d;
|
|
2114
2114
|
return e.__$u.d = function() {
|
|
2115
|
-
|
|
2115
|
+
c(), h.call(this);
|
|
2116
2116
|
}, [u, l];
|
|
2117
2117
|
}, []), o = r[0], s = r[1];
|
|
2118
2118
|
return o.value ? s.peek() : s.value;
|
|
2119
2119
|
}
|
|
2120
|
-
|
|
2121
|
-
Object.defineProperties(
|
|
2120
|
+
Ni.displayName = "_st";
|
|
2121
|
+
Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ni }, props: { configurable: !0, get: function() {
|
|
2122
2122
|
return { data: this };
|
|
2123
2123
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2124
|
-
|
|
2124
|
+
Oe("__b", function(t, e) {
|
|
2125
2125
|
if (typeof e.type == "string") {
|
|
2126
2126
|
var i, n = e.props;
|
|
2127
2127
|
for (var r in n)
|
|
2128
2128
|
if (r !== "children") {
|
|
2129
2129
|
var o = n[r];
|
|
2130
|
-
o instanceof
|
|
2130
|
+
o instanceof U && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
2133
|
t(e);
|
|
2134
2134
|
});
|
|
2135
|
-
|
|
2136
|
-
|
|
2135
|
+
Oe("__r", function(t, e) {
|
|
2136
|
+
it();
|
|
2137
2137
|
var i, n = e.__c;
|
|
2138
2138
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2139
2139
|
var o;
|
|
2140
|
-
return
|
|
2140
|
+
return Ue(function() {
|
|
2141
2141
|
o = this;
|
|
2142
2142
|
}), o.c = function() {
|
|
2143
2143
|
n.__$f |= 1, n.setState({});
|
|
2144
2144
|
}, o;
|
|
2145
|
-
}())),
|
|
2145
|
+
}())), it(i), t(e);
|
|
2146
2146
|
});
|
|
2147
|
-
|
|
2148
|
-
|
|
2147
|
+
Oe("__e", function(t, e, i, n) {
|
|
2148
|
+
it(), t(e, i, n);
|
|
2149
2149
|
});
|
|
2150
|
-
|
|
2151
|
-
|
|
2150
|
+
Oe("diffed", function(t, e) {
|
|
2151
|
+
it();
|
|
2152
2152
|
var i;
|
|
2153
2153
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2154
2154
|
var n = e.__np, r = e.props;
|
|
@@ -2163,23 +2163,23 @@ pe("diffed", function(t, e) {
|
|
|
2163
2163
|
o = {}, i.U = o;
|
|
2164
2164
|
for (var d in n) {
|
|
2165
2165
|
var l = o[d], u = n[d];
|
|
2166
|
-
l === void 0 ? (l =
|
|
2166
|
+
l === void 0 ? (l = Dr(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
2170
|
t(e);
|
|
2171
2171
|
});
|
|
2172
|
-
function
|
|
2172
|
+
function Dr(t, e, i, n) {
|
|
2173
2173
|
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2174
2174
|
return { o: function(s, a) {
|
|
2175
2175
|
o.value = s, n = a;
|
|
2176
|
-
}, d:
|
|
2177
|
-
this.N =
|
|
2176
|
+
}, d: Ue(function() {
|
|
2177
|
+
this.N = Mi;
|
|
2178
2178
|
var s = o.value.value;
|
|
2179
2179
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2180
2180
|
}) };
|
|
2181
2181
|
}
|
|
2182
|
-
|
|
2182
|
+
Oe("unmount", function(t, e) {
|
|
2183
2183
|
if (typeof e.type == "string") {
|
|
2184
2184
|
var i = e.__e;
|
|
2185
2185
|
if (i) {
|
|
@@ -2201,10 +2201,10 @@ pe("unmount", function(t, e) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
t(e);
|
|
2203
2203
|
});
|
|
2204
|
-
|
|
2204
|
+
Oe("__h", function(t, e, i, n) {
|
|
2205
2205
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2206
2206
|
});
|
|
2207
|
-
|
|
2207
|
+
Ki.prototype.shouldComponentUpdate = function(t, e) {
|
|
2208
2208
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2209
2209
|
for (var r in e)
|
|
2210
2210
|
return !0;
|
|
@@ -2222,26 +2222,26 @@ Ui.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2222
2222
|
return !0;
|
|
2223
2223
|
return !1;
|
|
2224
2224
|
};
|
|
2225
|
-
function
|
|
2226
|
-
return
|
|
2225
|
+
function Bi(t) {
|
|
2226
|
+
return xi(function() {
|
|
2227
2227
|
return E(t);
|
|
2228
2228
|
}, []);
|
|
2229
2229
|
}
|
|
2230
|
-
var
|
|
2230
|
+
var Lr = function(t) {
|
|
2231
2231
|
queueMicrotask(function() {
|
|
2232
2232
|
queueMicrotask(t);
|
|
2233
2233
|
});
|
|
2234
2234
|
};
|
|
2235
|
-
function
|
|
2236
|
-
|
|
2237
|
-
for (var t; t =
|
|
2238
|
-
|
|
2235
|
+
function Pr() {
|
|
2236
|
+
D(function() {
|
|
2237
|
+
for (var t; t = Pi.shift(); )
|
|
2238
|
+
Li.call(t);
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2242
|
-
|
|
2241
|
+
function Mi() {
|
|
2242
|
+
Pi.push(this) === 1 && (Ee.requestAnimationFrame || Lr)(Pr);
|
|
2243
2243
|
}
|
|
2244
|
-
const
|
|
2244
|
+
const B = G`
|
|
2245
2245
|
inset: 0;
|
|
2246
2246
|
clear: none;
|
|
2247
2247
|
float: none;
|
|
@@ -2260,11 +2260,11 @@ const F = we`
|
|
|
2260
2260
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2261
2261
|
'Helvetica Neue', sans-serif;
|
|
2262
2262
|
`;
|
|
2263
|
-
function
|
|
2264
|
-
const i =
|
|
2265
|
-
|
|
2263
|
+
function Nr(t, e) {
|
|
2264
|
+
const i = li(t);
|
|
2265
|
+
Wi(() => {
|
|
2266
2266
|
i.current = t;
|
|
2267
|
-
}, [t]),
|
|
2267
|
+
}, [t]), ke(() => {
|
|
2268
2268
|
if (e === null)
|
|
2269
2269
|
return;
|
|
2270
2270
|
const n = setInterval(() => {
|
|
@@ -2275,21 +2275,21 @@ function Dr(t, e) {
|
|
|
2275
2275
|
};
|
|
2276
2276
|
}, [e]);
|
|
2277
2277
|
}
|
|
2278
|
-
var
|
|
2279
|
-
function
|
|
2278
|
+
var Br = 0;
|
|
2279
|
+
function S(t, e, i, n, r, o) {
|
|
2280
2280
|
e || (e = {});
|
|
2281
2281
|
var s, a, d = e;
|
|
2282
2282
|
if ("ref" in d)
|
|
2283
2283
|
for (a in d = {}, e)
|
|
2284
2284
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2285
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2285
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Br, __i: -1, __u: 0, __source: r, __self: o };
|
|
2286
2286
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2287
2287
|
for (a in s)
|
|
2288
2288
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2289
|
-
return
|
|
2289
|
+
return Ee.vnode && Ee.vnode(l), l;
|
|
2290
2290
|
}
|
|
2291
|
-
const
|
|
2292
|
-
${
|
|
2291
|
+
const Mr = G`
|
|
2292
|
+
${B}
|
|
2293
2293
|
position: fixed;
|
|
2294
2294
|
top: 0;
|
|
2295
2295
|
left: 0;
|
|
@@ -2302,7 +2302,7 @@ const Pr = we`
|
|
|
2302
2302
|
height: 100vh;
|
|
2303
2303
|
|
|
2304
2304
|
.card-wrapper {
|
|
2305
|
-
${
|
|
2305
|
+
${B}
|
|
2306
2306
|
position: relative;
|
|
2307
2307
|
display: flex;
|
|
2308
2308
|
flex-direction: column;
|
|
@@ -2316,7 +2316,7 @@ const Pr = we`
|
|
|
2316
2316
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2317
2317
|
|
|
2318
2318
|
.body {
|
|
2319
|
-
${
|
|
2319
|
+
${B}
|
|
2320
2320
|
display: flex;
|
|
2321
2321
|
flex-direction: column;
|
|
2322
2322
|
width: 100%;
|
|
@@ -2325,7 +2325,7 @@ const Pr = we`
|
|
|
2325
2325
|
box-sizing: border-box;
|
|
2326
2326
|
justify-content: center;
|
|
2327
2327
|
.title {
|
|
2328
|
-
${
|
|
2328
|
+
${B}
|
|
2329
2329
|
text-align: center;
|
|
2330
2330
|
font-size: 16px;
|
|
2331
2331
|
font-weight: bold;
|
|
@@ -2333,7 +2333,7 @@ const Pr = we`
|
|
|
2333
2333
|
}
|
|
2334
2334
|
|
|
2335
2335
|
.content {
|
|
2336
|
-
${
|
|
2336
|
+
${B}
|
|
2337
2337
|
font-size: 14px;
|
|
2338
2338
|
color: #888;
|
|
2339
2339
|
margin-bottom: 16px;
|
|
@@ -2341,13 +2341,13 @@ const Pr = we`
|
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
2343
|
.footer {
|
|
2344
|
-
${
|
|
2344
|
+
${B}
|
|
2345
2345
|
display: flex;
|
|
2346
2346
|
align-items: center;
|
|
2347
2347
|
width: 100%;
|
|
2348
2348
|
height: 40px;
|
|
2349
2349
|
button {
|
|
2350
|
-
${
|
|
2350
|
+
${B}
|
|
2351
2351
|
border: none;
|
|
2352
2352
|
outline: none;
|
|
2353
2353
|
height: 100%;
|
|
@@ -2363,56 +2363,56 @@ const Pr = we`
|
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
|
-
`,
|
|
2366
|
+
`, te = E(null), kt = E(""), It = E(""), Ye = E(!1), Fr = () => {
|
|
2367
2367
|
var t;
|
|
2368
|
-
(t =
|
|
2369
|
-
},
|
|
2368
|
+
(t = te.value) == null || t.call(te, !1);
|
|
2369
|
+
}, $r = () => {
|
|
2370
2370
|
var t;
|
|
2371
|
-
(t =
|
|
2372
|
-
},
|
|
2371
|
+
(t = te.value) == null || t.call(te, !0);
|
|
2372
|
+
}, Ur = async (t) => {
|
|
2373
2373
|
let {
|
|
2374
2374
|
title: e,
|
|
2375
2375
|
content: i
|
|
2376
2376
|
} = t;
|
|
2377
|
-
return
|
|
2378
|
-
|
|
2379
|
-
})),
|
|
2380
|
-
|
|
2377
|
+
return te.value && (te.value(!1), D(() => {
|
|
2378
|
+
te.value = null, Ye.value = !1;
|
|
2379
|
+
})), D(() => {
|
|
2380
|
+
kt.value = e || "", It.value = i || "", Ye.value = !0;
|
|
2381
2381
|
}), new Promise((n) => {
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2382
|
+
te.value = (r) => {
|
|
2383
|
+
D(() => {
|
|
2384
|
+
te.value = null, Ye.value = !1, kt.value = "", It.value = "";
|
|
2385
2385
|
}), n(r);
|
|
2386
2386
|
};
|
|
2387
2387
|
});
|
|
2388
|
-
},
|
|
2389
|
-
className:
|
|
2390
|
-
children:
|
|
2388
|
+
}, jr = () => Ye.value ? S("div", {
|
|
2389
|
+
className: Mr,
|
|
2390
|
+
children: S("div", {
|
|
2391
2391
|
className: "card-wrapper",
|
|
2392
|
-
children: [
|
|
2392
|
+
children: [S("div", {
|
|
2393
2393
|
className: "body",
|
|
2394
|
-
children: [
|
|
2394
|
+
children: [S("div", {
|
|
2395
2395
|
className: "title",
|
|
2396
|
-
children:
|
|
2397
|
-
}),
|
|
2396
|
+
children: kt.value
|
|
2397
|
+
}), S("div", {
|
|
2398
2398
|
className: "content",
|
|
2399
|
-
children:
|
|
2399
|
+
children: It.value
|
|
2400
2400
|
})]
|
|
2401
|
-
}),
|
|
2401
|
+
}), S("div", {
|
|
2402
2402
|
className: "footer",
|
|
2403
|
-
children: [
|
|
2404
|
-
onClick:
|
|
2403
|
+
children: [S("button", {
|
|
2404
|
+
onClick: Fr,
|
|
2405
2405
|
className: "cancel-btn",
|
|
2406
2406
|
children: "Cancel"
|
|
2407
|
-
}),
|
|
2408
|
-
onClick:
|
|
2407
|
+
}), S("button", {
|
|
2408
|
+
onClick: $r,
|
|
2409
2409
|
className: "confirm-btm",
|
|
2410
2410
|
children: "Confirm"
|
|
2411
2411
|
})]
|
|
2412
2412
|
})]
|
|
2413
2413
|
})
|
|
2414
|
-
}) : null,
|
|
2415
|
-
${
|
|
2414
|
+
}) : null, Vr = G`
|
|
2415
|
+
${B}
|
|
2416
2416
|
position: relative;
|
|
2417
2417
|
display: flex;
|
|
2418
2418
|
align-items: center;
|
|
@@ -2430,7 +2430,7 @@ const Pr = we`
|
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
2432
|
button {
|
|
2433
|
-
${
|
|
2433
|
+
${B}
|
|
2434
2434
|
padding: 0 20px;
|
|
2435
2435
|
height: 30px;
|
|
2436
2436
|
line-height: 30px;
|
|
@@ -2444,18 +2444,18 @@ const Pr = we`
|
|
|
2444
2444
|
cursor: not-allowed;
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
|
-
`,
|
|
2447
|
+
`, Gr = () => {
|
|
2448
2448
|
const t = E(!1), e = E(null);
|
|
2449
2449
|
return {
|
|
2450
2450
|
timerPaused: t,
|
|
2451
2451
|
startTimestamp: e,
|
|
2452
2452
|
startTimer: () => {
|
|
2453
|
-
|
|
2453
|
+
D(() => {
|
|
2454
2454
|
e.value = Date.now(), t.value = !1;
|
|
2455
2455
|
});
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
2458
|
-
},
|
|
2458
|
+
}, qr = (t) => {
|
|
2459
2459
|
let {
|
|
2460
2460
|
countdown: e = 0,
|
|
2461
2461
|
mode: i,
|
|
@@ -2465,62 +2465,62 @@ const Pr = we`
|
|
|
2465
2465
|
const {
|
|
2466
2466
|
startTimestamp: o,
|
|
2467
2467
|
timerPaused: s
|
|
2468
|
-
} = r, a =
|
|
2469
|
-
|
|
2470
|
-
a.value > 0 ? a.value -= 1 :
|
|
2468
|
+
} = r, a = Bi(e);
|
|
2469
|
+
Nr(() => {
|
|
2470
|
+
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2471
2471
|
s.value = !0, a.value = 0;
|
|
2472
2472
|
});
|
|
2473
2473
|
}, s.value ? null : 1e3);
|
|
2474
|
-
const d =
|
|
2474
|
+
const d = Pe(() => {
|
|
2475
2475
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2476
2476
|
return !1;
|
|
2477
2477
|
const f = Date.now() - o.value;
|
|
2478
2478
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2479
|
-
}), l =
|
|
2479
|
+
}), l = Pe(() => {
|
|
2480
2480
|
if (i === "interstitial")
|
|
2481
2481
|
return !0;
|
|
2482
2482
|
if (!o.value)
|
|
2483
2483
|
return !1;
|
|
2484
2484
|
const f = Date.now() - o.value;
|
|
2485
2485
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2486
|
-
}), u =
|
|
2487
|
-
if (s.value = !0, !await
|
|
2486
|
+
}), u = Pe(() => i === "interstitial" ? !1 : !d.value && !l.value), c = async () => {
|
|
2487
|
+
if (s.value = !0, !await Ur({
|
|
2488
2488
|
title: "Are you sure?",
|
|
2489
2489
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2490
2490
|
})) {
|
|
2491
2491
|
s.value = !1;
|
|
2492
2492
|
return;
|
|
2493
2493
|
}
|
|
2494
|
-
n("dismiss"),
|
|
2494
|
+
n("dismiss"), D(() => {
|
|
2495
2495
|
s.value = !0, a.value = 0, o.value = null;
|
|
2496
2496
|
});
|
|
2497
|
-
},
|
|
2498
|
-
n("viewed"),
|
|
2497
|
+
}, h = () => {
|
|
2498
|
+
n("viewed"), D(() => {
|
|
2499
2499
|
s.value = !0, a.value = 0, o.value = null;
|
|
2500
2500
|
});
|
|
2501
2501
|
};
|
|
2502
|
-
return
|
|
2503
|
-
className:
|
|
2504
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2502
|
+
return S("div", {
|
|
2503
|
+
className: Vr,
|
|
2504
|
+
children: [a.value > 0 && i !== "interstitial" && S("div", {
|
|
2505
2505
|
className: "timer",
|
|
2506
2506
|
children: [a.value, "s"]
|
|
2507
|
-
}),
|
|
2508
|
-
onClick: d.value ?
|
|
2507
|
+
}), S("button", {
|
|
2508
|
+
onClick: d.value ? c : l.value ? h : void 0,
|
|
2509
2509
|
disabled: u.value,
|
|
2510
|
-
children:
|
|
2510
|
+
children: S("svg", {
|
|
2511
2511
|
width: "12",
|
|
2512
2512
|
height: "12",
|
|
2513
2513
|
viewBox: "0 0 14 14",
|
|
2514
2514
|
fill: "none",
|
|
2515
2515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2516
|
-
children:
|
|
2516
|
+
children: S("path", {
|
|
2517
2517
|
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",
|
|
2518
2518
|
fill: "white"
|
|
2519
2519
|
})
|
|
2520
2520
|
})
|
|
2521
2521
|
})]
|
|
2522
2522
|
});
|
|
2523
|
-
},
|
|
2523
|
+
}, Fi = () => {
|
|
2524
2524
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2525
2525
|
return {
|
|
2526
2526
|
afterAd: t,
|
|
@@ -2533,8 +2533,8 @@ const Pr = we`
|
|
|
2533
2533
|
src: a,
|
|
2534
2534
|
mode: d
|
|
2535
2535
|
};
|
|
2536
|
-
},
|
|
2537
|
-
${
|
|
2536
|
+
}, zr = G`
|
|
2537
|
+
${B}
|
|
2538
2538
|
position: fixed;
|
|
2539
2539
|
z-index: 2147483647;
|
|
2540
2540
|
background: white;
|
|
@@ -2544,7 +2544,7 @@ const Pr = we`
|
|
|
2544
2544
|
flex-direction: column;
|
|
2545
2545
|
|
|
2546
2546
|
iframe {
|
|
2547
|
-
${
|
|
2547
|
+
${B}
|
|
2548
2548
|
flex: 1;
|
|
2549
2549
|
position: relative;
|
|
2550
2550
|
display: block;
|
|
@@ -2552,7 +2552,7 @@ const Pr = we`
|
|
|
2552
2552
|
width: 100%;
|
|
2553
2553
|
height: 100%;
|
|
2554
2554
|
}
|
|
2555
|
-
`,
|
|
2555
|
+
`, $i = (t) => {
|
|
2556
2556
|
let {
|
|
2557
2557
|
state: e
|
|
2558
2558
|
} = t;
|
|
@@ -2566,39 +2566,39 @@ const Pr = we`
|
|
|
2566
2566
|
countdown: d,
|
|
2567
2567
|
src: l,
|
|
2568
2568
|
mode: u
|
|
2569
|
-
} = e,
|
|
2570
|
-
var y,
|
|
2571
|
-
a.value = !1, A === "dismiss" ? (y = n.value) == null || y.call(n) : A === "viewed" && ((
|
|
2572
|
-
},
|
|
2569
|
+
} = e, c = Ji(() => Gr(), []), [h, f] = ve(!1), w = (A) => {
|
|
2570
|
+
var y, g, b, x;
|
|
2571
|
+
a.value = !1, A === "dismiss" ? (y = n.value) == null || y.call(n) : A === "viewed" && ((g = r.value) == null || g.call(r)), (b = i.value) == null || b.call(i), (x = o.value) == null || x.call(o), f(!1);
|
|
2572
|
+
}, v = vt(() => {
|
|
2573
2573
|
var A;
|
|
2574
|
-
|
|
2575
|
-
}, [
|
|
2576
|
-
return
|
|
2577
|
-
|
|
2578
|
-
|
|
2574
|
+
h || (f(!0), (A = s.value) == null || A.call(s));
|
|
2575
|
+
}, [h]);
|
|
2576
|
+
return ke(() => {
|
|
2577
|
+
h && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2578
|
+
c.startTimer();
|
|
2579
2579
|
}, 100);
|
|
2580
|
-
}, [
|
|
2581
|
-
className:
|
|
2582
|
-
children: [
|
|
2580
|
+
}, [h, u.value]), a.value ? S("div", {
|
|
2581
|
+
className: zr,
|
|
2582
|
+
children: [S(qr, {
|
|
2583
2583
|
mode: u.value,
|
|
2584
2584
|
onClose: w,
|
|
2585
2585
|
countdown: d.value,
|
|
2586
|
-
state:
|
|
2587
|
-
}), a.value &&
|
|
2586
|
+
state: c
|
|
2587
|
+
}), a.value && S("iframe", {
|
|
2588
2588
|
src: l.value,
|
|
2589
|
-
onLoad:
|
|
2589
|
+
onLoad: v,
|
|
2590
2590
|
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"
|
|
2591
|
-
}),
|
|
2591
|
+
}), S(jr, {})]
|
|
2592
2592
|
}) : null;
|
|
2593
2593
|
};
|
|
2594
|
-
function
|
|
2595
|
-
return (e =
|
|
2594
|
+
function se(t, e, i) {
|
|
2595
|
+
return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2598
|
-
var e =
|
|
2597
|
+
function Kr(t) {
|
|
2598
|
+
var e = Hr(t, "string");
|
|
2599
2599
|
return typeof e == "symbol" ? e : e + "";
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function Hr(t, e) {
|
|
2602
2602
|
if (typeof t != "object" || !t)
|
|
2603
2603
|
return t;
|
|
2604
2604
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2610,13 +2610,13 @@ function qr(t, e) {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
return (e === "string" ? String : Number)(t);
|
|
2612
2612
|
}
|
|
2613
|
-
class
|
|
2613
|
+
class Wr {
|
|
2614
2614
|
constructor(e, i) {
|
|
2615
|
-
|
|
2615
|
+
se(this, "name", "OKSPIN"), se(this, "initialized", !1), se(this, "initCompleter", null), se(this, "context", void 0), se(this, "initParams", void 0), se(this, "adsOverlay", null), se(this, "adsIsShowing", !1), se(this, "lastUnDisplayedAdBreak", null), se(this, "state", Fi()), this.context = e, this.initParams = i;
|
|
2616
2616
|
}
|
|
2617
2617
|
async init() {
|
|
2618
2618
|
var e;
|
|
2619
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2619
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), le(S($i, {
|
|
2620
2620
|
state: this.state
|
|
2621
2621
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2622
2622
|
}
|
|
@@ -2666,10 +2666,10 @@ class Kr {
|
|
|
2666
2666
|
case "next":
|
|
2667
2667
|
case "pause": {
|
|
2668
2668
|
(s = e.beforeAd) == null || s.call(e);
|
|
2669
|
-
const
|
|
2669
|
+
const c = () => {
|
|
2670
2670
|
var f;
|
|
2671
2671
|
this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
|
|
2672
|
-
},
|
|
2672
|
+
}, h = () => {
|
|
2673
2673
|
var f;
|
|
2674
2674
|
this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
|
|
2675
2675
|
breakType: e.type,
|
|
@@ -2678,8 +2678,8 @@ class Kr {
|
|
|
2678
2678
|
breakStatus: "viewed"
|
|
2679
2679
|
});
|
|
2680
2680
|
};
|
|
2681
|
-
|
|
2682
|
-
this.adsIsShowing = !0, this.state.afterAd.value =
|
|
2681
|
+
D(() => {
|
|
2682
|
+
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = h, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2683
2683
|
});
|
|
2684
2684
|
break;
|
|
2685
2685
|
}
|
|
@@ -2690,26 +2690,26 @@ class Kr {
|
|
|
2690
2690
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2691
2691
|
breakStatus: "ignored"
|
|
2692
2692
|
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2693
|
-
const
|
|
2693
|
+
const c = () => {
|
|
2694
2694
|
var y;
|
|
2695
2695
|
this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
|
|
2696
|
-
},
|
|
2696
|
+
}, h = {
|
|
2697
2697
|
breakType: e.type,
|
|
2698
2698
|
breakName: e.name,
|
|
2699
2699
|
breakFormat: "reward",
|
|
2700
2700
|
breakStatus: "ignored"
|
|
2701
2701
|
}, f = () => {
|
|
2702
2702
|
var y;
|
|
2703
|
-
this.adsIsShowing = !1,
|
|
2703
|
+
this.adsIsShowing = !1, h.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
|
|
2704
2704
|
}, w = () => {
|
|
2705
2705
|
var y;
|
|
2706
|
-
this.adsIsShowing = !1,
|
|
2707
|
-
},
|
|
2706
|
+
this.adsIsShowing = !1, h.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
|
|
2707
|
+
}, v = () => {
|
|
2708
2708
|
var y;
|
|
2709
|
-
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e,
|
|
2709
|
+
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, h);
|
|
2710
2710
|
};
|
|
2711
|
-
|
|
2712
|
-
this.state.afterAd.value =
|
|
2711
|
+
D(() => {
|
|
2712
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = v;
|
|
2713
2713
|
});
|
|
2714
2714
|
const A = () => {
|
|
2715
2715
|
var y;
|
|
@@ -2722,9 +2722,9 @@ class Kr {
|
|
|
2722
2722
|
});
|
|
2723
2723
|
return;
|
|
2724
2724
|
}
|
|
2725
|
-
this.adsIsShowing = !0,
|
|
2726
|
-
var
|
|
2727
|
-
this.state.countdown.value = (
|
|
2725
|
+
this.adsIsShowing = !0, D(() => {
|
|
2726
|
+
var g;
|
|
2727
|
+
this.state.countdown.value = (g = i.params.countdown) != null ? g : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2728
2728
|
});
|
|
2729
2729
|
};
|
|
2730
2730
|
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, A);
|
|
@@ -2733,17 +2733,440 @@ class Kr {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
|
-
const
|
|
2736
|
+
const Jr = () => {
|
|
2737
|
+
const t = E(null), e = E(null), i = E(null), n = E(null), r = E(null), o = E(null), s = E(!1), a = E(null);
|
|
2738
|
+
return {
|
|
2739
|
+
afterAd: t,
|
|
2740
|
+
adDismissed: e,
|
|
2741
|
+
adViewed: i,
|
|
2742
|
+
adBreakDone: n,
|
|
2743
|
+
adLoaded: r,
|
|
2744
|
+
adError: o,
|
|
2745
|
+
visible: s,
|
|
2746
|
+
payload: a
|
|
2747
|
+
};
|
|
2748
|
+
}, Xr = G`
|
|
2749
|
+
${B}
|
|
2750
|
+
position: fixed;
|
|
2751
|
+
inset: 0;
|
|
2752
|
+
z-index: 2147483647;
|
|
2753
|
+
display: flex;
|
|
2754
|
+
background: #000000;
|
|
2755
|
+
`, Yr = G`
|
|
2756
|
+
${B}
|
|
2757
|
+
position: relative;
|
|
2758
|
+
width: 100%;
|
|
2759
|
+
height: 100%;
|
|
2760
|
+
display: flex;
|
|
2761
|
+
flex-direction: column;
|
|
2762
|
+
color: #f7f9fc;
|
|
2763
|
+
`, Qr = G`
|
|
2764
|
+
position: absolute;
|
|
2765
|
+
top: 24px;
|
|
2766
|
+
left: 24px;
|
|
2767
|
+
display: flex;
|
|
2768
|
+
flex-direction: column;
|
|
2769
|
+
gap: 6px;
|
|
2770
|
+
padding: 12px 16px;
|
|
2771
|
+
border-radius: 999px;
|
|
2772
|
+
background: rgba(0, 0, 0, 0.65);
|
|
2773
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
2774
|
+
`, Zr = G`
|
|
2775
|
+
font-size: 11px;
|
|
2776
|
+
letter-spacing: 0.08em;
|
|
2777
|
+
text-transform: uppercase;
|
|
2778
|
+
color: #c7d4ef;
|
|
2779
|
+
`, eo = G`
|
|
2780
|
+
font-size: 14px;
|
|
2781
|
+
font-weight: 500;
|
|
2782
|
+
`, to = G`
|
|
2783
|
+
${B}
|
|
2784
|
+
flex: 1;
|
|
2785
|
+
background: #050505;
|
|
2786
|
+
display: flex;
|
|
2787
|
+
align-items: center;
|
|
2788
|
+
justify-content: center;
|
|
2789
|
+
padding: 0;
|
|
2790
|
+
`, di = G`
|
|
2791
|
+
width: 100%;
|
|
2792
|
+
height: 100%;
|
|
2793
|
+
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
2794
|
+
display: flex;
|
|
2795
|
+
align-items: center;
|
|
2796
|
+
justify-content: center;
|
|
2797
|
+
color: #6e7da1;
|
|
2798
|
+
font-size: 14px;
|
|
2799
|
+
`, io = G`
|
|
2800
|
+
position: absolute;
|
|
2801
|
+
bottom: 32px;
|
|
2802
|
+
right: 32px;
|
|
2803
|
+
display: flex;
|
|
2804
|
+
gap: 12px;
|
|
2805
|
+
`, no = G`
|
|
2806
|
+
min-width: 160px;
|
|
2807
|
+
min-height: 48px;
|
|
2808
|
+
border-radius: 999px;
|
|
2809
|
+
border: none;
|
|
2810
|
+
padding: 0 32px;
|
|
2811
|
+
font-size: 15px;
|
|
2812
|
+
font-weight: 600;
|
|
2813
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2814
|
+
color: #f1f5ff;
|
|
2815
|
+
cursor: pointer;
|
|
2816
|
+
|
|
2817
|
+
&:disabled {
|
|
2818
|
+
opacity: 0.4;
|
|
2819
|
+
cursor: not-allowed;
|
|
2820
|
+
}
|
|
2821
|
+
`, ro = G`
|
|
2822
|
+
min-width: 120px;
|
|
2823
|
+
min-height: 44px;
|
|
2824
|
+
border-radius: 999px;
|
|
2825
|
+
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
2826
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2827
|
+
color: white;
|
|
2828
|
+
font-size: 14px;
|
|
2829
|
+
font-weight: 500;
|
|
2830
|
+
cursor: pointer;
|
|
2831
|
+
`, oo = (t) => {
|
|
2832
|
+
let {
|
|
2833
|
+
state: e
|
|
2834
|
+
} = t;
|
|
2835
|
+
const {
|
|
2836
|
+
afterAd: i,
|
|
2837
|
+
adDismissed: n,
|
|
2838
|
+
adViewed: r,
|
|
2839
|
+
adBreakDone: o,
|
|
2840
|
+
adLoaded: s,
|
|
2841
|
+
adError: a,
|
|
2842
|
+
visible: d,
|
|
2843
|
+
payload: l
|
|
2844
|
+
} = e, [u, c] = ve(!1), [h, f] = ve(0), [w, v] = ve(!1), [A, y] = ve(!1), [g, b] = ve("Loading next content..."), x = li(null), _ = l.value, m = vt((M) => {
|
|
2845
|
+
var T, K, Q, L;
|
|
2846
|
+
c(!1), d.value = !1, M === "dismiss" ? (T = n.value) == null || T.call(n) : (K = r.value) == null || K.call(r), (Q = i.value) == null || Q.call(i), (L = o.value) == null || L.call(o);
|
|
2847
|
+
}, [d, n, r, i, o]), p = vt(() => {
|
|
2848
|
+
var M;
|
|
2849
|
+
c(!1), d.value = !1, (M = a.value) == null || M.call(a);
|
|
2850
|
+
}, [d, a]);
|
|
2851
|
+
if (ke(() => {
|
|
2852
|
+
var L;
|
|
2853
|
+
if (!d.value || !_) {
|
|
2854
|
+
f(0), v(!1), y(!1), b("Loading next content...");
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
const M = _.mode === "reward" ? 15 : 0, T = Math.max(Math.floor((L = _.countdown) != null ? L : M), 0);
|
|
2858
|
+
if (f(T), y(_.mode === "reward" ? T === 0 : !0), v(_.mode === "interstitial" ? T === 0 : !1), T === 0)
|
|
2859
|
+
return;
|
|
2860
|
+
let K = T;
|
|
2861
|
+
const Q = window.setInterval(() => {
|
|
2862
|
+
K -= 1, f(Math.max(K, 0)), K <= 0 && (window.clearInterval(Q), _.mode === "reward" ? y(!0) : v(!0));
|
|
2863
|
+
}, 1e3);
|
|
2864
|
+
return () => {
|
|
2865
|
+
window.clearInterval(Q);
|
|
2866
|
+
};
|
|
2867
|
+
}, [d.value, _, m]), ke(() => {
|
|
2868
|
+
var Q;
|
|
2869
|
+
if (!d.value || !_)
|
|
2870
|
+
return;
|
|
2871
|
+
const M = x.current;
|
|
2872
|
+
if (!M)
|
|
2873
|
+
return;
|
|
2874
|
+
if (M.innerHTML = "", b("Loading next content..."), c(!1), _.testMode) {
|
|
2875
|
+
const L = document.createElement("div");
|
|
2876
|
+
L.className = di, L.innerText = "Preview slot placeholder", M.appendChild(L), c(!0), (Q = s.value) == null || Q.call(s);
|
|
2877
|
+
return;
|
|
2878
|
+
}
|
|
2879
|
+
if (typeof window == "undefined") {
|
|
2880
|
+
p();
|
|
2881
|
+
return;
|
|
2882
|
+
}
|
|
2883
|
+
const T = document.createElement("ins");
|
|
2884
|
+
T.className = "adsbygoogle", T.style.display = "block", T.style.width = "100%", T.style.height = "100%", T.setAttribute("data-ad-client", _.clientId), T.setAttribute("data-ad-slot", _.unitId), T.setAttribute("data-ad-format", "auto"), T.setAttribute("data-full-width-responsive", "true"), _.channelId && T.setAttribute("data-ad-channel", _.channelId), M.appendChild(T);
|
|
2885
|
+
const K = new MutationObserver(() => {
|
|
2886
|
+
var Dt;
|
|
2887
|
+
const L = T.getAttribute("data-ad-status");
|
|
2888
|
+
L === "filled" ? (c(!0), b(""), (Dt = s.value) == null || Dt.call(s), K.disconnect()) : L === "unfilled" && (b("Slot currently unavailable."), c(!1), K.disconnect());
|
|
2889
|
+
});
|
|
2890
|
+
K.observe(T, {
|
|
2891
|
+
attributes: !0,
|
|
2892
|
+
attributeFilter: ["data-ad-status"]
|
|
2893
|
+
});
|
|
2894
|
+
try {
|
|
2895
|
+
const L = window;
|
|
2896
|
+
L.adsbygoogle = L.adsbygoogle || [], L.adsbygoogle.push({});
|
|
2897
|
+
} catch (L) {
|
|
2898
|
+
K.disconnect(), p();
|
|
2899
|
+
}
|
|
2900
|
+
return () => {
|
|
2901
|
+
K.disconnect(), M.innerHTML = "";
|
|
2902
|
+
};
|
|
2903
|
+
}, [d.value, _, s, p]), !d.value || !_)
|
|
2904
|
+
return null;
|
|
2905
|
+
const ye = _.mode === "reward" ? "Next content unlocking" : "Content paused", ge = h > 0 ? `Content resumes in ${h}s` : "Content ready";
|
|
2906
|
+
return S("div", {
|
|
2907
|
+
className: Xr,
|
|
2908
|
+
children: S("div", {
|
|
2909
|
+
className: Yr,
|
|
2910
|
+
children: [S("div", {
|
|
2911
|
+
className: Qr,
|
|
2912
|
+
children: [S("div", {
|
|
2913
|
+
className: Zr,
|
|
2914
|
+
children: ye
|
|
2915
|
+
}), S("div", {
|
|
2916
|
+
className: eo,
|
|
2917
|
+
children: ge
|
|
2918
|
+
})]
|
|
2919
|
+
}), S("div", {
|
|
2920
|
+
className: to,
|
|
2921
|
+
ref: x,
|
|
2922
|
+
children: !u && S("div", {
|
|
2923
|
+
className: di,
|
|
2924
|
+
children: g
|
|
2925
|
+
})
|
|
2926
|
+
}), S("div", {
|
|
2927
|
+
className: io,
|
|
2928
|
+
children: _.mode === "reward" ? S("button", {
|
|
2929
|
+
className: no,
|
|
2930
|
+
type: "button",
|
|
2931
|
+
onClick: () => m("viewed"),
|
|
2932
|
+
disabled: !A,
|
|
2933
|
+
children: A ? "Continue" : `Continue in ${h}s`
|
|
2934
|
+
}) : w && S("button", {
|
|
2935
|
+
className: ro,
|
|
2936
|
+
type: "button",
|
|
2937
|
+
onClick: () => m("viewed"),
|
|
2938
|
+
children: "Continue"
|
|
2939
|
+
})
|
|
2940
|
+
})]
|
|
2941
|
+
})
|
|
2942
|
+
});
|
|
2943
|
+
};
|
|
2944
|
+
function q(t, e, i) {
|
|
2945
|
+
return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2946
|
+
}
|
|
2947
|
+
function so(t) {
|
|
2948
|
+
var e = ao(t, "string");
|
|
2949
|
+
return typeof e == "symbol" ? e : e + "";
|
|
2950
|
+
}
|
|
2951
|
+
function ao(t, e) {
|
|
2952
|
+
if (typeof t != "object" || !t)
|
|
2953
|
+
return t;
|
|
2954
|
+
var i = t[Symbol.toPrimitive];
|
|
2955
|
+
if (i !== void 0) {
|
|
2956
|
+
var n = i.call(t, e);
|
|
2957
|
+
if (typeof n != "object")
|
|
2958
|
+
return n;
|
|
2959
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2960
|
+
}
|
|
2961
|
+
return (e === "string" ? String : Number)(t);
|
|
2962
|
+
}
|
|
2963
|
+
class lo {
|
|
2964
|
+
constructor(e, i) {
|
|
2965
|
+
if (q(this, "name", "ADSENSE_BANNER_AS_AFG"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "contextInfo", void 0), q(this, "initParams", void 0), q(this, "defaultCountdown", 5), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "lastUnDisplayedAdBreak", null), q(this, "requestCounter", 0), q(this, "scriptPromise", null), q(this, "scriptReady", !1), q(this, "scriptFailed", !1), q(this, "state", Jr()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
|
|
2966
|
+
const n = window;
|
|
2967
|
+
n.adsbygoogle = n.adsbygoogle || [];
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
async init() {
|
|
2971
|
+
var e;
|
|
2972
|
+
if (typeof document != "undefined") {
|
|
2973
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), le(S(oo, {
|
|
2974
|
+
state: this.state
|
|
2975
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
|
|
2976
|
+
try {
|
|
2977
|
+
await this.ensureAdSenseScript();
|
|
2978
|
+
} catch (i) {
|
|
2979
|
+
this.scriptFailed = !0, console.warn("[BannerAsAFG] Failed to load Google AdSense script", i);
|
|
2980
|
+
}
|
|
2981
|
+
this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
ensureAdSenseScript() {
|
|
2985
|
+
var i;
|
|
2986
|
+
if (typeof document == "undefined")
|
|
2987
|
+
return Promise.resolve();
|
|
2988
|
+
if (this.scriptPromise)
|
|
2989
|
+
return this.scriptPromise;
|
|
2990
|
+
if (document.getElementById("google-adsense"))
|
|
2991
|
+
return this.scriptReady = !0, Promise.resolve();
|
|
2992
|
+
if (!this.initParams.clientId)
|
|
2993
|
+
return this.scriptFailed = !0, Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));
|
|
2994
|
+
const e = (i = this.contextInfo.testAdsMode) != null ? i : !1;
|
|
2995
|
+
return this.scriptPromise = new Promise((n, r) => {
|
|
2996
|
+
const o = document.createElement("script");
|
|
2997
|
+
o.id = "google-adsense", o.async = !0, o.crossOrigin = "anonymous", o.src = `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`, e && o.setAttribute("data-adbreak-test", "on"), this.initParams.channelId && o.setAttribute("data-ad-channel", this.initParams.channelId), o.onload = () => {
|
|
2998
|
+
this.scriptReady = !0, n();
|
|
2999
|
+
}, o.onerror = () => {
|
|
3000
|
+
this.scriptFailed = !0, r(new Error("Failed to fetch Google AdSense script."));
|
|
3001
|
+
}, document.head.appendChild(o);
|
|
3002
|
+
}), this.scriptPromise;
|
|
3003
|
+
}
|
|
3004
|
+
adConfig(e) {
|
|
3005
|
+
var i;
|
|
3006
|
+
if (this.initialized) {
|
|
3007
|
+
(i = e.onReady) == null || i.call(e);
|
|
3008
|
+
return;
|
|
3009
|
+
}
|
|
3010
|
+
this.initCompleter = () => {
|
|
3011
|
+
var n;
|
|
3012
|
+
(n = e.onReady) == null || n.call(e);
|
|
3013
|
+
};
|
|
3014
|
+
}
|
|
3015
|
+
resolveOverlayConfig(e) {
|
|
3016
|
+
var n, r;
|
|
3017
|
+
const i = (r = (n = e == null ? void 0 : e.params) == null ? void 0 : n.countdown) != null ? r : this.defaultCountdown;
|
|
3018
|
+
return {
|
|
3019
|
+
rewardUnitId: this.initParams.rewardUnitId,
|
|
3020
|
+
interstitialUnitId: this.initParams.interstitialUnitId,
|
|
3021
|
+
channelId: this.initParams.channelId,
|
|
3022
|
+
countdown: Math.max(Math.floor(i), 0)
|
|
3023
|
+
};
|
|
3024
|
+
}
|
|
3025
|
+
canDisplay(e) {
|
|
3026
|
+
return !!e && !!this.initParams.clientId && !!this.adsOverlay && this.initialized && !this.scriptFailed && this.scriptReady;
|
|
3027
|
+
}
|
|
3028
|
+
showBannerOverlay(e, i) {
|
|
3029
|
+
var o, s;
|
|
3030
|
+
const n = Math.max(Math.floor((o = i.countdown) != null ? o : e === "reward" ? 15 : 0), 0), r = {
|
|
3031
|
+
requestId: ++this.requestCounter,
|
|
3032
|
+
clientId: this.initParams.clientId,
|
|
3033
|
+
unitId: e === "reward" ? this.initParams.rewardUnitId : this.initParams.interstitialUnitId,
|
|
3034
|
+
channelId: i.channelId,
|
|
3035
|
+
countdown: n,
|
|
3036
|
+
mode: e,
|
|
3037
|
+
testMode: (s = this.contextInfo.testAdsMode) != null ? s : !1
|
|
3038
|
+
};
|
|
3039
|
+
this.state.payload.value = r, this.state.visible.value = !0;
|
|
3040
|
+
}
|
|
3041
|
+
adBreak(e, i) {
|
|
3042
|
+
var s, a, d, l, u, c, h, f, w;
|
|
3043
|
+
const n = e.type === "preroll" ? "" : e.name, r = e.type === "reward" ? "reward" : "interstitial";
|
|
3044
|
+
if (!this.initialized || !this.adsOverlay) {
|
|
3045
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
3046
|
+
breakType: e.type,
|
|
3047
|
+
breakName: n,
|
|
3048
|
+
breakFormat: r,
|
|
3049
|
+
breakStatus: "notReady"
|
|
3050
|
+
});
|
|
3051
|
+
return;
|
|
3052
|
+
}
|
|
3053
|
+
if (this.adsIsShowing) {
|
|
3054
|
+
(a = e.adBreakDone) == null || a.call(e, {
|
|
3055
|
+
breakType: e.type,
|
|
3056
|
+
breakName: n,
|
|
3057
|
+
breakFormat: r,
|
|
3058
|
+
breakStatus: "frequencyCapped"
|
|
3059
|
+
});
|
|
3060
|
+
return;
|
|
3061
|
+
}
|
|
3062
|
+
const o = this.resolveOverlayConfig(i);
|
|
3063
|
+
if (!this.canDisplay(o.rewardUnitId)) {
|
|
3064
|
+
(d = e.adBreakDone) == null || d.call(e, {
|
|
3065
|
+
breakType: e.type,
|
|
3066
|
+
breakName: n,
|
|
3067
|
+
breakFormat: r,
|
|
3068
|
+
breakStatus: "notReady"
|
|
3069
|
+
});
|
|
3070
|
+
return;
|
|
3071
|
+
}
|
|
3072
|
+
switch (e.type) {
|
|
3073
|
+
case "preroll": {
|
|
3074
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3075
|
+
breakType: e.type,
|
|
3076
|
+
breakName: "",
|
|
3077
|
+
breakFormat: "interstitial",
|
|
3078
|
+
breakStatus: "noAdPreloaded"
|
|
3079
|
+
});
|
|
3080
|
+
break;
|
|
3081
|
+
}
|
|
3082
|
+
case "start":
|
|
3083
|
+
case "browse":
|
|
3084
|
+
case "next":
|
|
3085
|
+
case "pause": {
|
|
3086
|
+
(u = e.beforeAd) == null || u.call(e);
|
|
3087
|
+
const v = {
|
|
3088
|
+
breakType: e.type,
|
|
3089
|
+
breakName: e.name,
|
|
3090
|
+
breakFormat: "interstitial",
|
|
3091
|
+
breakStatus: "viewed"
|
|
3092
|
+
}, A = () => {
|
|
3093
|
+
var b;
|
|
3094
|
+
this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
|
|
3095
|
+
}, y = () => {
|
|
3096
|
+
var b;
|
|
3097
|
+
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, v);
|
|
3098
|
+
}, g = () => {
|
|
3099
|
+
var b, x;
|
|
3100
|
+
this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (b = e.afterAd) == null || b.call(e), (x = e.adBreakDone) == null || x.call(e, v);
|
|
3101
|
+
};
|
|
3102
|
+
D(() => {
|
|
3103
|
+
this.adsIsShowing = !0, this.state.afterAd.value = A, this.state.adBreakDone.value = y, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = g, this.showBannerOverlay("interstitial", o);
|
|
3104
|
+
});
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
case "reward": {
|
|
3108
|
+
this.lastUnDisplayedAdBreak && ((h = (c = this.lastUnDisplayedAdBreak).adBreakDone) == null || h.call(c, {
|
|
3109
|
+
breakType: this.lastUnDisplayedAdBreak.type,
|
|
3110
|
+
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
3111
|
+
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
3112
|
+
breakStatus: "ignored"
|
|
3113
|
+
}), this.lastUnDisplayedAdBreak = null), (f = e.beforeAd) == null || f.call(e);
|
|
3114
|
+
const v = {
|
|
3115
|
+
breakType: e.type,
|
|
3116
|
+
breakName: e.name,
|
|
3117
|
+
breakFormat: "reward",
|
|
3118
|
+
breakStatus: "ignored"
|
|
3119
|
+
}, A = () => {
|
|
3120
|
+
var m;
|
|
3121
|
+
this.adsIsShowing = !1, (m = e.afterAd) == null || m.call(e);
|
|
3122
|
+
}, y = () => {
|
|
3123
|
+
var m;
|
|
3124
|
+
this.adsIsShowing = !1, v.breakStatus = "dismissed", (m = e.adDismissed) == null || m.call(e);
|
|
3125
|
+
}, g = () => {
|
|
3126
|
+
var m;
|
|
3127
|
+
this.adsIsShowing = !1, v.breakStatus = "viewed", (m = e.adViewed) == null || m.call(e);
|
|
3128
|
+
}, b = () => {
|
|
3129
|
+
var m;
|
|
3130
|
+
this.adsIsShowing = !1, (m = e.adBreakDone) == null || m.call(e, v);
|
|
3131
|
+
}, x = () => {
|
|
3132
|
+
var m, p;
|
|
3133
|
+
this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (m = e.afterAd) == null || m.call(e), (p = e.adBreakDone) == null || p.call(e, v);
|
|
3134
|
+
};
|
|
3135
|
+
D(() => {
|
|
3136
|
+
this.state.afterAd.value = A, this.state.adDismissed.value = y, this.state.adViewed.value = g, this.state.adBreakDone.value = b, this.state.adError.value = x;
|
|
3137
|
+
});
|
|
3138
|
+
const _ = () => {
|
|
3139
|
+
var m, p;
|
|
3140
|
+
if (!this.canDisplay(o.rewardUnitId)) {
|
|
3141
|
+
this.lastUnDisplayedAdBreak = null, (m = e.afterAd) == null || m.call(e), (p = e.adBreakDone) == null || p.call(e, {
|
|
3142
|
+
breakType: e.type,
|
|
3143
|
+
breakName: e.name,
|
|
3144
|
+
breakFormat: "reward",
|
|
3145
|
+
breakStatus: "notReady"
|
|
3146
|
+
});
|
|
3147
|
+
return;
|
|
3148
|
+
}
|
|
3149
|
+
this.lastUnDisplayedAdBreak = null, this.adsIsShowing = !0, D(() => {
|
|
3150
|
+
this.showBannerOverlay("reward", o);
|
|
3151
|
+
});
|
|
3152
|
+
};
|
|
3153
|
+
this.lastUnDisplayedAdBreak = e, (w = e.beforeReward) == null || w.call(e, _);
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
const me = {};
|
|
2737
3160
|
window.addEventListener("message", (t) => {
|
|
2738
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
3161
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || me[t.data.type] && me[t.data.type].forEach((e) => {
|
|
2739
3162
|
e(t.data.data);
|
|
2740
3163
|
});
|
|
2741
3164
|
});
|
|
2742
|
-
const
|
|
2743
|
-
|
|
2744
|
-
|
|
3165
|
+
const be = (t, e) => {
|
|
3166
|
+
ke(() => (me[t] || (me[t] = /* @__PURE__ */ new Set()), me[t].add(e), () => {
|
|
3167
|
+
me[t].delete(e);
|
|
2745
3168
|
}), [t, e]);
|
|
2746
|
-
},
|
|
3169
|
+
}, Ui = () => {
|
|
2747
3170
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2748
3171
|
return {
|
|
2749
3172
|
afterAd: t,
|
|
@@ -2756,8 +3179,8 @@ const de = (t, e) => {
|
|
|
2756
3179
|
visible: a,
|
|
2757
3180
|
src: d
|
|
2758
3181
|
};
|
|
2759
|
-
},
|
|
2760
|
-
${
|
|
3182
|
+
}, uo = G`
|
|
3183
|
+
${B}
|
|
2761
3184
|
position: fixed;
|
|
2762
3185
|
z-index: 2147483647;
|
|
2763
3186
|
background: white;
|
|
@@ -2767,7 +3190,7 @@ const de = (t, e) => {
|
|
|
2767
3190
|
flex-direction: column;
|
|
2768
3191
|
|
|
2769
3192
|
iframe {
|
|
2770
|
-
${
|
|
3193
|
+
${B}
|
|
2771
3194
|
flex: 1;
|
|
2772
3195
|
position: relative;
|
|
2773
3196
|
display: block;
|
|
@@ -2775,7 +3198,7 @@ const de = (t, e) => {
|
|
|
2775
3198
|
width: 100%;
|
|
2776
3199
|
height: 100%;
|
|
2777
3200
|
}
|
|
2778
|
-
`,
|
|
3201
|
+
`, ji = (t) => {
|
|
2779
3202
|
let {
|
|
2780
3203
|
state: e
|
|
2781
3204
|
} = t;
|
|
@@ -2788,22 +3211,22 @@ const de = (t, e) => {
|
|
|
2788
3211
|
adLinkClicked: a,
|
|
2789
3212
|
visible: d,
|
|
2790
3213
|
src: l
|
|
2791
|
-
} = e, [u,
|
|
2792
|
-
var
|
|
2793
|
-
|
|
3214
|
+
} = e, [u, c] = ve(!1), h = (w) => {
|
|
3215
|
+
var v, A, y, g;
|
|
3216
|
+
c(!1), d.value = !1, w === "dismiss" ? (v = n.value) == null || v.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (y = i.value) == null || y.call(i), (g = o.value) == null || g.call(o);
|
|
2794
3217
|
}, f = () => {
|
|
2795
3218
|
var w;
|
|
2796
3219
|
(w = s.value) == null || w.call(s);
|
|
2797
3220
|
};
|
|
2798
|
-
return
|
|
2799
|
-
var
|
|
2800
|
-
return (
|
|
2801
|
-
}),
|
|
2802
|
-
className:
|
|
3221
|
+
return be("appsrockets_ad_dismissed", () => h("dismiss")), be("appsrockets_ad_rewarded", () => h("viewed")), be("appsrockets_ad_completed", () => h("viewed")), be("appsrockets_ad_skipped", () => h("viewed")), be("appsrockets_ad_clicked", (w) => {
|
|
3222
|
+
var v;
|
|
3223
|
+
return (v = a.value) == null ? void 0 : v.call(a, w);
|
|
3224
|
+
}), be("appsrockets_ad_loaded", () => c(!0)), d.value ? S("div", {
|
|
3225
|
+
className: uo,
|
|
2803
3226
|
style: {
|
|
2804
3227
|
display: u ? "flex" : "none"
|
|
2805
3228
|
},
|
|
2806
|
-
children: d.value &&
|
|
3229
|
+
children: d.value && S("iframe", {
|
|
2807
3230
|
src: l.value,
|
|
2808
3231
|
onLoad: f,
|
|
2809
3232
|
allowFullScreen: !0,
|
|
@@ -2812,14 +3235,14 @@ const de = (t, e) => {
|
|
|
2812
3235
|
})
|
|
2813
3236
|
}) : null;
|
|
2814
3237
|
};
|
|
2815
|
-
function
|
|
2816
|
-
return (e =
|
|
3238
|
+
function ae(t, e, i) {
|
|
3239
|
+
return (e = co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2817
3240
|
}
|
|
2818
|
-
function
|
|
2819
|
-
var e =
|
|
3241
|
+
function co(t) {
|
|
3242
|
+
var e = ho(t, "string");
|
|
2820
3243
|
return typeof e == "symbol" ? e : e + "";
|
|
2821
3244
|
}
|
|
2822
|
-
function
|
|
3245
|
+
function ho(t, e) {
|
|
2823
3246
|
if (typeof t != "object" || !t)
|
|
2824
3247
|
return t;
|
|
2825
3248
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2831,9 +3254,9 @@ function Wr(t, e) {
|
|
|
2831
3254
|
}
|
|
2832
3255
|
return (e === "string" ? String : Number)(t);
|
|
2833
3256
|
}
|
|
2834
|
-
class
|
|
3257
|
+
class fo {
|
|
2835
3258
|
constructor(e, i) {
|
|
2836
|
-
|
|
3259
|
+
ae(this, "name", "APPSROCKETS"), ae(this, "initialized", !1), ae(this, "initCompleter", null), ae(this, "context", void 0), ae(this, "adsOverlay", null), ae(this, "adsIsShowing", !1), ae(this, "lastUnDisplayedAdBreak", null), ae(this, "state", Ui()), ae(this, "processUrl", (n) => {
|
|
2837
3260
|
var a;
|
|
2838
3261
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2839
3262
|
return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
|
|
@@ -2841,7 +3264,7 @@ class Jr {
|
|
|
2841
3264
|
}
|
|
2842
3265
|
async init() {
|
|
2843
3266
|
var e;
|
|
2844
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"),
|
|
3267
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), le(S(ji, {
|
|
2845
3268
|
state: this.state
|
|
2846
3269
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2847
3270
|
}
|
|
@@ -2857,7 +3280,7 @@ class Jr {
|
|
|
2857
3280
|
};
|
|
2858
3281
|
}
|
|
2859
3282
|
adBreak(e, i) {
|
|
2860
|
-
var r, o, s, a, d, l, u,
|
|
3283
|
+
var r, o, s, a, d, l, u, c;
|
|
2861
3284
|
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2862
3285
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
2863
3286
|
breakType: e.type,
|
|
@@ -2876,9 +3299,9 @@ class Jr {
|
|
|
2876
3299
|
});
|
|
2877
3300
|
return;
|
|
2878
3301
|
}
|
|
2879
|
-
const n = (
|
|
3302
|
+
const n = (h) => {
|
|
2880
3303
|
var f, w;
|
|
2881
|
-
(w = (f = this.context).handleLinkClicked) == null || w.call(f,
|
|
3304
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, h);
|
|
2882
3305
|
};
|
|
2883
3306
|
switch (e.type) {
|
|
2884
3307
|
case "preroll": {
|
|
@@ -2895,28 +3318,28 @@ class Jr {
|
|
|
2895
3318
|
case "next":
|
|
2896
3319
|
case "pause": {
|
|
2897
3320
|
(a = e.beforeAd) == null || a.call(e);
|
|
2898
|
-
const
|
|
2899
|
-
var
|
|
2900
|
-
this.adsIsShowing = !1, (
|
|
3321
|
+
const h = () => {
|
|
3322
|
+
var v;
|
|
3323
|
+
this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
|
|
2901
3324
|
}, f = () => {
|
|
2902
|
-
var
|
|
2903
|
-
this.adsIsShowing = !1, (
|
|
3325
|
+
var v;
|
|
3326
|
+
this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
|
|
2904
3327
|
breakType: e.type,
|
|
2905
3328
|
breakName: e.name,
|
|
2906
3329
|
breakFormat: "interstitial",
|
|
2907
3330
|
breakStatus: "viewed"
|
|
2908
3331
|
});
|
|
2909
3332
|
}, w = () => {
|
|
2910
|
-
var
|
|
2911
|
-
this.adsIsShowing = !1, (
|
|
3333
|
+
var v;
|
|
3334
|
+
this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
|
|
2912
3335
|
breakType: e.type,
|
|
2913
3336
|
breakName: e.name,
|
|
2914
3337
|
breakFormat: "interstitial",
|
|
2915
3338
|
breakStatus: "noAdPreloaded"
|
|
2916
3339
|
});
|
|
2917
3340
|
};
|
|
2918
|
-
|
|
2919
|
-
this.adsIsShowing = !0, this.state.afterAd.value =
|
|
3341
|
+
D(() => {
|
|
3342
|
+
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
|
|
2920
3343
|
});
|
|
2921
3344
|
break;
|
|
2922
3345
|
}
|
|
@@ -2927,33 +3350,33 @@ class Jr {
|
|
|
2927
3350
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2928
3351
|
breakStatus: "ignored"
|
|
2929
3352
|
}), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
|
|
2930
|
-
const
|
|
2931
|
-
var
|
|
2932
|
-
this.adsIsShowing = !1, (
|
|
3353
|
+
const h = () => {
|
|
3354
|
+
var b;
|
|
3355
|
+
this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
|
|
2933
3356
|
}, f = {
|
|
2934
3357
|
breakType: e.type,
|
|
2935
3358
|
breakName: e.name,
|
|
2936
3359
|
breakFormat: "reward",
|
|
2937
3360
|
breakStatus: "ignored"
|
|
2938
3361
|
}, w = () => {
|
|
2939
|
-
var
|
|
2940
|
-
this.adsIsShowing = !1, f.breakStatus = "dismissed", (
|
|
2941
|
-
},
|
|
2942
|
-
var
|
|
2943
|
-
this.adsIsShowing = !1, f.breakStatus = "viewed", (
|
|
3362
|
+
var b;
|
|
3363
|
+
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
3364
|
+
}, v = () => {
|
|
3365
|
+
var b;
|
|
3366
|
+
this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
|
|
2944
3367
|
}, A = () => {
|
|
2945
|
-
var
|
|
2946
|
-
this.adsIsShowing = !1, (
|
|
3368
|
+
var b;
|
|
3369
|
+
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2947
3370
|
}, y = () => {
|
|
2948
3371
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2949
3372
|
};
|
|
2950
|
-
|
|
2951
|
-
this.state.afterAd.value =
|
|
3373
|
+
D(() => {
|
|
3374
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = w, this.state.adViewed.value = v, this.state.adBreakDone.value = A, this.state.adLinkClicked.value = n, this.state.adError.value = y;
|
|
2952
3375
|
});
|
|
2953
|
-
const
|
|
2954
|
-
var
|
|
3376
|
+
const g = () => {
|
|
3377
|
+
var b;
|
|
2955
3378
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2956
|
-
(
|
|
3379
|
+
(b = e.adBreakDone) == null || b.call(e, {
|
|
2957
3380
|
breakType: e.type,
|
|
2958
3381
|
breakName: e.name,
|
|
2959
3382
|
breakFormat: "reward",
|
|
@@ -2961,31 +3384,31 @@ class Jr {
|
|
|
2961
3384
|
});
|
|
2962
3385
|
return;
|
|
2963
3386
|
}
|
|
2964
|
-
this.adsIsShowing = !0,
|
|
3387
|
+
this.adsIsShowing = !0, D(() => {
|
|
2965
3388
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2966
3389
|
});
|
|
2967
3390
|
};
|
|
2968
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
3391
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
|
|
2969
3392
|
break;
|
|
2970
3393
|
}
|
|
2971
3394
|
}
|
|
2972
3395
|
}
|
|
2973
3396
|
}
|
|
2974
|
-
const
|
|
3397
|
+
const Vi = () => {
|
|
2975
3398
|
window.googletag = window.googletag || {
|
|
2976
3399
|
cmd: []
|
|
2977
3400
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
2978
3401
|
window.googletag.enableServices();
|
|
2979
3402
|
});
|
|
2980
3403
|
};
|
|
2981
|
-
function
|
|
2982
|
-
return (e =
|
|
3404
|
+
function j(t, e, i) {
|
|
3405
|
+
return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2983
3406
|
}
|
|
2984
|
-
function
|
|
2985
|
-
var e =
|
|
3407
|
+
function vo(t) {
|
|
3408
|
+
var e = yo(t, "string");
|
|
2986
3409
|
return typeof e == "symbol" ? e : e + "";
|
|
2987
3410
|
}
|
|
2988
|
-
function
|
|
3411
|
+
function yo(t, e) {
|
|
2989
3412
|
if (typeof t != "object" || !t)
|
|
2990
3413
|
return t;
|
|
2991
3414
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2997,24 +3420,24 @@ function Yr(t, e) {
|
|
|
2997
3420
|
}
|
|
2998
3421
|
return (e === "string" ? String : Number)(t);
|
|
2999
3422
|
}
|
|
3000
|
-
class
|
|
3423
|
+
class Gi {
|
|
3001
3424
|
constructor(e, i, n) {
|
|
3002
|
-
|
|
3425
|
+
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() {
|
|
3003
3426
|
googletag.cmd.push(...arguments);
|
|
3004
|
-
}),
|
|
3427
|
+
}), j(this, "init", () => {
|
|
3005
3428
|
var r;
|
|
3006
3429
|
this.rewardedSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.REWARDED), this.rewardedSlot && (this.rewardedSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().addEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().addEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.keyValue && (Object.keys(this.keyValue).forEach((o) => {
|
|
3007
3430
|
var s;
|
|
3008
3431
|
(s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
|
|
3009
3432
|
}), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
|
|
3010
|
-
}),
|
|
3433
|
+
}), j(this, "destroy", (r) => {
|
|
3011
3434
|
var o, s;
|
|
3012
3435
|
this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r), this.adsContext = null;
|
|
3013
|
-
}),
|
|
3436
|
+
}), j(this, "reinit", (r) => {
|
|
3014
3437
|
this.destroy(r), this.init();
|
|
3015
|
-
}),
|
|
3438
|
+
}), j(this, "handleSlotReady", (r) => {
|
|
3016
3439
|
r.slot === this.rewardedSlot && (this.readyEvent = r);
|
|
3017
|
-
}),
|
|
3440
|
+
}), j(this, "handleSlotClosed", (r) => {
|
|
3018
3441
|
var o, s;
|
|
3019
3442
|
if (this.adsContext && r.slot === this.rewardedSlot) {
|
|
3020
3443
|
const a = this.rewardedPayload ? "viewed" : "dismissed";
|
|
@@ -3022,13 +3445,13 @@ class Mi {
|
|
|
3022
3445
|
this.reinit(a);
|
|
3023
3446
|
});
|
|
3024
3447
|
}
|
|
3025
|
-
}),
|
|
3448
|
+
}), j(this, "handleSlotGranted", (r) => {
|
|
3026
3449
|
this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
|
|
3027
|
-
}),
|
|
3450
|
+
}), j(this, "handleSlotRenderEnded", (r) => {
|
|
3028
3451
|
r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
|
|
3029
3452
|
this.reinit("frequencyCapped");
|
|
3030
3453
|
});
|
|
3031
|
-
}),
|
|
3454
|
+
}), j(this, "requestAds", (r) => {
|
|
3032
3455
|
this.withCommand(() => {
|
|
3033
3456
|
if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
|
|
3034
3457
|
this.reinit("notReady");
|
|
@@ -3051,19 +3474,19 @@ class Mi {
|
|
|
3051
3474
|
}, 500);
|
|
3052
3475
|
}
|
|
3053
3476
|
});
|
|
3054
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
3477
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Vi(), this.withCommand(() => {
|
|
3055
3478
|
this.init();
|
|
3056
3479
|
});
|
|
3057
3480
|
}
|
|
3058
3481
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return (e =
|
|
3482
|
+
function W(t, e, i) {
|
|
3483
|
+
return (e = go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3061
3484
|
}
|
|
3062
|
-
function
|
|
3063
|
-
var e =
|
|
3485
|
+
function go(t) {
|
|
3486
|
+
var e = wo(t, "string");
|
|
3064
3487
|
return typeof e == "symbol" ? e : e + "";
|
|
3065
3488
|
}
|
|
3066
|
-
function
|
|
3489
|
+
function wo(t, e) {
|
|
3067
3490
|
if (typeof t != "object" || !t)
|
|
3068
3491
|
return t;
|
|
3069
3492
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3075,31 +3498,31 @@ function Zr(t, e) {
|
|
|
3075
3498
|
}
|
|
3076
3499
|
return (e === "string" ? String : Number)(t);
|
|
3077
3500
|
}
|
|
3078
|
-
class
|
|
3501
|
+
class bo {
|
|
3079
3502
|
constructor(e, i, n) {
|
|
3080
3503
|
var r = this;
|
|
3081
|
-
|
|
3504
|
+
W(this, "adUnit", void 0), W(this, "project", void 0), W(this, "keyValue", void 0), W(this, "adsContext", null), W(this, "gamingInterstitialSlot", null), W(this, "readyEvent", null), W(this, "isRetrying", !1), W(this, "withCommand", function() {
|
|
3082
3505
|
googletag.cmd.push(...arguments);
|
|
3083
|
-
}),
|
|
3506
|
+
}), W(this, "init", () => {
|
|
3084
3507
|
var o;
|
|
3085
3508
|
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
|
|
3086
3509
|
var a;
|
|
3087
3510
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3088
3511
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3089
|
-
}),
|
|
3512
|
+
}), W(this, "destroy", function(o) {
|
|
3090
3513
|
var a, d;
|
|
3091
3514
|
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
|
|
3092
|
-
}),
|
|
3515
|
+
}), W(this, "reinit", function(o) {
|
|
3093
3516
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3094
3517
|
r.destroy(o, s), r.init();
|
|
3095
|
-
}),
|
|
3518
|
+
}), W(this, "handleSlotReady", (o) => {
|
|
3096
3519
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3097
|
-
}),
|
|
3520
|
+
}), W(this, "handleSlotClosed", (o) => {
|
|
3098
3521
|
var s, a;
|
|
3099
3522
|
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3100
3523
|
this.reinit("viewed");
|
|
3101
3524
|
}));
|
|
3102
|
-
}),
|
|
3525
|
+
}), W(this, "requestAds", (o) => {
|
|
3103
3526
|
this.withCommand(() => {
|
|
3104
3527
|
var s, a, d;
|
|
3105
3528
|
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
|
|
@@ -3112,19 +3535,19 @@ class eo {
|
|
|
3112
3535
|
}), this.isRetrying = !1;
|
|
3113
3536
|
}, 31e3)));
|
|
3114
3537
|
});
|
|
3115
|
-
}),
|
|
3538
|
+
}), Vi(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3116
3539
|
this.init();
|
|
3117
3540
|
});
|
|
3118
3541
|
}
|
|
3119
3542
|
}
|
|
3120
|
-
function
|
|
3121
|
-
return (e =
|
|
3543
|
+
function fe(t, e, i) {
|
|
3544
|
+
return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3122
3545
|
}
|
|
3123
|
-
function
|
|
3124
|
-
var e =
|
|
3546
|
+
function Ao(t) {
|
|
3547
|
+
var e = po(t, "string");
|
|
3125
3548
|
return typeof e == "symbol" ? e : e + "";
|
|
3126
3549
|
}
|
|
3127
|
-
function
|
|
3550
|
+
function po(t, e) {
|
|
3128
3551
|
if (typeof t != "object" || !t)
|
|
3129
3552
|
return t;
|
|
3130
3553
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3136,9 +3559,9 @@ function io(t, e) {
|
|
|
3136
3559
|
}
|
|
3137
3560
|
return (e === "string" ? String : Number)(t);
|
|
3138
3561
|
}
|
|
3139
|
-
class
|
|
3562
|
+
class _o {
|
|
3140
3563
|
constructor(e, i) {
|
|
3141
|
-
|
|
3564
|
+
fe(this, "name", "GOOGLE_GPT"), fe(this, "context", void 0), fe(this, "contextInfo", void 0), fe(this, "initParams", void 0), fe(this, "rewardAdManager", void 0), fe(this, "interstitialManager", void 0), fe(this, "insertScript", () => {
|
|
3142
3565
|
const n = "jolibox-google-gpt";
|
|
3143
3566
|
let r = document.getElementById(n);
|
|
3144
3567
|
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));
|
|
@@ -3146,7 +3569,7 @@ class no {
|
|
|
3146
3569
|
}
|
|
3147
3570
|
async init() {
|
|
3148
3571
|
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"}`;
|
|
3149
|
-
e && (this.rewardAdManager = new
|
|
3572
|
+
e && (this.rewardAdManager = new Gi(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new bo(i, r, this.initParams.keyValue));
|
|
3150
3573
|
}
|
|
3151
3574
|
adConfig(e, i) {
|
|
3152
3575
|
}
|
|
@@ -3217,14 +3640,14 @@ class no {
|
|
|
3217
3640
|
}
|
|
3218
3641
|
}
|
|
3219
3642
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return (e =
|
|
3643
|
+
function ht(t, e, i) {
|
|
3644
|
+
return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3222
3645
|
}
|
|
3223
|
-
function
|
|
3224
|
-
var e =
|
|
3646
|
+
function mo(t) {
|
|
3647
|
+
var e = So(t, "string");
|
|
3225
3648
|
return typeof e == "symbol" ? e : e + "";
|
|
3226
3649
|
}
|
|
3227
|
-
function
|
|
3650
|
+
function So(t, e) {
|
|
3228
3651
|
if (typeof t != "object" || !t)
|
|
3229
3652
|
return t;
|
|
3230
3653
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3236,10 +3659,10 @@ function oo(t, e) {
|
|
|
3236
3659
|
}
|
|
3237
3660
|
return (e === "string" ? String : Number)(t);
|
|
3238
3661
|
}
|
|
3239
|
-
class
|
|
3662
|
+
class Eo {
|
|
3240
3663
|
constructor(e) {
|
|
3241
3664
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3242
|
-
|
|
3665
|
+
ht(this, "context", void 0), ht(this, "placement", "GAME"), ht(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3243
3666
|
}
|
|
3244
3667
|
getLocation() {
|
|
3245
3668
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3253,7 +3676,7 @@ class so {
|
|
|
3253
3676
|
getDevice() {
|
|
3254
3677
|
var e, i, n, r;
|
|
3255
3678
|
return {
|
|
3256
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3679
|
+
platform: (e = this.contextInfo.platform) != null ? e : yi.WebSDK,
|
|
3257
3680
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3258
3681
|
appVersion: "1.0.0",
|
|
3259
3682
|
// mock
|
|
@@ -3272,7 +3695,7 @@ class so {
|
|
|
3272
3695
|
protocolVersion: "1.0.0",
|
|
3273
3696
|
events: [{
|
|
3274
3697
|
name: e,
|
|
3275
|
-
type:
|
|
3698
|
+
type: fi.System,
|
|
3276
3699
|
location: this.getLocation(),
|
|
3277
3700
|
target: null,
|
|
3278
3701
|
extra: i,
|
|
@@ -3280,19 +3703,19 @@ class so {
|
|
|
3280
3703
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3281
3704
|
}],
|
|
3282
3705
|
device: this.getDevice(),
|
|
3283
|
-
project:
|
|
3706
|
+
project: vi.WebSDK
|
|
3284
3707
|
};
|
|
3285
|
-
return
|
|
3708
|
+
return wn(r);
|
|
3286
3709
|
}
|
|
3287
3710
|
}
|
|
3288
|
-
function
|
|
3289
|
-
return (e =
|
|
3711
|
+
function z(t, e, i) {
|
|
3712
|
+
return (e = ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3290
3713
|
}
|
|
3291
|
-
function
|
|
3292
|
-
var e =
|
|
3714
|
+
function ko(t) {
|
|
3715
|
+
var e = Io(t, "string");
|
|
3293
3716
|
return typeof e == "symbol" ? e : e + "";
|
|
3294
3717
|
}
|
|
3295
|
-
function
|
|
3718
|
+
function Io(t, e) {
|
|
3296
3719
|
if (typeof t != "object" || !t)
|
|
3297
3720
|
return t;
|
|
3298
3721
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3304,9 +3727,9 @@ function lo(t, e) {
|
|
|
3304
3727
|
}
|
|
3305
3728
|
return (e === "string" ? String : Number)(t);
|
|
3306
3729
|
}
|
|
3307
|
-
class
|
|
3730
|
+
class Ct {
|
|
3308
3731
|
constructor(e) {
|
|
3309
|
-
|
|
3732
|
+
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 Eo(this.context);
|
|
3310
3733
|
}
|
|
3311
3734
|
getRequestContextData(e) {
|
|
3312
3735
|
var r, o;
|
|
@@ -3342,13 +3765,13 @@ class Et {
|
|
|
3342
3765
|
};
|
|
3343
3766
|
}
|
|
3344
3767
|
}
|
|
3345
|
-
class
|
|
3768
|
+
class qi {
|
|
3346
3769
|
constructor(e, i) {
|
|
3347
3770
|
var n = this;
|
|
3348
|
-
|
|
3771
|
+
z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "requestContext", void 0), z(this, "pendingAFGAdsInfo", {
|
|
3349
3772
|
REWARD: Promise.resolve(null),
|
|
3350
3773
|
INTERSTITIAL: Promise.resolve(null)
|
|
3351
|
-
}),
|
|
3774
|
+
}), z(this, "pendingAFVAdsInfo", Promise.resolve(null)), z(this, "doFetchAdsInfo", async (r) => {
|
|
3352
3775
|
const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
|
|
3353
3776
|
data: d,
|
|
3354
3777
|
code: l
|
|
@@ -3365,34 +3788,34 @@ class $i {
|
|
|
3365
3788
|
code: l,
|
|
3366
3789
|
data: d
|
|
3367
3790
|
} : null;
|
|
3368
|
-
}),
|
|
3791
|
+
}), z(this, "cacheRewardInfo", () => {
|
|
3369
3792
|
this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
|
|
3370
|
-
}),
|
|
3793
|
+
}), z(this, "cacheInterstitialInfo", (r) => {
|
|
3371
3794
|
this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
|
|
3372
|
-
}),
|
|
3795
|
+
}), z(this, "cacheAFVInfo", () => {
|
|
3373
3796
|
this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
|
|
3374
|
-
}),
|
|
3797
|
+
}), z(this, "cacheNextAFGAdsInfo", async (r) => {
|
|
3375
3798
|
r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
|
|
3376
|
-
}),
|
|
3799
|
+
}), z(this, "getAFGAdsInfo", async (r) => {
|
|
3377
3800
|
const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
|
|
3378
3801
|
return this.cacheNextAFGAdsInfo(r), o;
|
|
3379
|
-
}),
|
|
3802
|
+
}), z(this, "getAFVAdsInfo", async function() {
|
|
3380
3803
|
if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
|
|
3381
3804
|
const o = await n.pendingAFVAdsInfo;
|
|
3382
3805
|
return n.cacheAFVInfo(), o;
|
|
3383
3806
|
} else
|
|
3384
3807
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3385
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3808
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Ct(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3386
3809
|
}
|
|
3387
3810
|
}
|
|
3388
|
-
function
|
|
3389
|
-
return (e =
|
|
3811
|
+
function Z(t, e, i) {
|
|
3812
|
+
return (e = xo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3390
3813
|
}
|
|
3391
|
-
function
|
|
3392
|
-
var e =
|
|
3814
|
+
function xo(t) {
|
|
3815
|
+
var e = Ro(t, "string");
|
|
3393
3816
|
return typeof e == "symbol" ? e : e + "";
|
|
3394
3817
|
}
|
|
3395
|
-
function
|
|
3818
|
+
function Ro(t, e) {
|
|
3396
3819
|
if (typeof t != "object" || !t)
|
|
3397
3820
|
return t;
|
|
3398
3821
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3404,10 +3827,10 @@ function co(t, e) {
|
|
|
3404
3827
|
}
|
|
3405
3828
|
return (e === "string" ? String : Number)(t);
|
|
3406
3829
|
}
|
|
3407
|
-
class
|
|
3830
|
+
class ds {
|
|
3408
3831
|
constructor(e) {
|
|
3409
|
-
if (
|
|
3410
|
-
this.context = e, this.channelPolicy = new
|
|
3832
|
+
if (Z(this, "context", void 0), Z(this, "contextInfo", void 0), Z(this, "providers", {}), Z(this, "channelPolicy", void 0), Z(this, "adsActionDetection", void 0), Z(this, "requestContext", void 0), Z(this, "adsRequest", void 0), Z(this, "initialized", !1), Z(this, "adsIsShowing", !1), Z(this, "lastAdBreak", void 0), Z(this, "initializedTimeStamp", Date.now()), e)
|
|
3833
|
+
this.context = e, this.channelPolicy = new Bn(this.context), this.adsActionDetection = new Ln(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new qi(e), this.requestContext = new Ct(e);
|
|
3411
3834
|
else
|
|
3412
3835
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3413
3836
|
}
|
|
@@ -3426,26 +3849,31 @@ class Ko {
|
|
|
3426
3849
|
for (const n of i)
|
|
3427
3850
|
switch (n.provider) {
|
|
3428
3851
|
case "GOOGLE_GPT": {
|
|
3429
|
-
const r = new
|
|
3852
|
+
const r = new _o(this.context, n.params);
|
|
3430
3853
|
await r.init(), this.providers[n.provider] = r;
|
|
3431
3854
|
break;
|
|
3432
3855
|
}
|
|
3433
3856
|
case "ADSENSE":
|
|
3434
3857
|
case "ADSENSE_ADMOB": {
|
|
3435
|
-
const r = new
|
|
3858
|
+
const r = new $n(this.context, n.params);
|
|
3436
3859
|
await r.init(), this.providers[n.provider] = r;
|
|
3437
3860
|
break;
|
|
3438
3861
|
}
|
|
3439
3862
|
case "OKSPIN": {
|
|
3440
|
-
const r = new
|
|
3863
|
+
const r = new Wr(this.context, n.params);
|
|
3441
3864
|
await r.init(), this.providers.OKSPIN = r;
|
|
3442
3865
|
break;
|
|
3443
3866
|
}
|
|
3444
3867
|
case "APPSROCKETS": {
|
|
3445
|
-
const r = new
|
|
3868
|
+
const r = new fo(this.context, n.params);
|
|
3446
3869
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3447
3870
|
break;
|
|
3448
3871
|
}
|
|
3872
|
+
case "ADSENSE_BANNER_AS_AFG": {
|
|
3873
|
+
const r = new lo(this.context, n.params);
|
|
3874
|
+
await r.init(), this.providers.ADSENSE_BANNER_AS_AFG = r;
|
|
3875
|
+
break;
|
|
3876
|
+
}
|
|
3449
3877
|
}
|
|
3450
3878
|
this.adsRequest.cacheInterstitialInfo("start"), this.adsRequest.cacheRewardInfo(), this.initialized = !0;
|
|
3451
3879
|
}
|
|
@@ -3453,7 +3881,7 @@ class Ko {
|
|
|
3453
3881
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
3454
3882
|
}
|
|
3455
3883
|
async adBreak(e) {
|
|
3456
|
-
var r, o, s, a, d, l, u,
|
|
3884
|
+
var r, o, s, a, d, l, u, c, h, f, w, v, A, y;
|
|
3457
3885
|
const i = Date.now();
|
|
3458
3886
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
3459
3887
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -3501,8 +3929,8 @@ class Ko {
|
|
|
3501
3929
|
return;
|
|
3502
3930
|
}
|
|
3503
3931
|
try {
|
|
3504
|
-
const
|
|
3505
|
-
if (
|
|
3932
|
+
const g = await this.adsRequest.getAFGAdsInfo(e.type), b = g == null ? void 0 : g.data, x = g == null ? void 0 : g.code;
|
|
3933
|
+
if (x === "BYPASS_ADS") {
|
|
3506
3934
|
switch (e.type) {
|
|
3507
3935
|
case "preroll": {
|
|
3508
3936
|
(l = e.adBreakDone) == null || l.call(e, {
|
|
@@ -3514,8 +3942,8 @@ class Ko {
|
|
|
3514
3942
|
}
|
|
3515
3943
|
case "reward": {
|
|
3516
3944
|
e.beforeReward(() => {
|
|
3517
|
-
var
|
|
3518
|
-
(
|
|
3945
|
+
var _, m, p, ye;
|
|
3946
|
+
(_ = e.beforeAd) == null || _.call(e), (m = e.adViewed) == null || m.call(e), (p = e.afterAd) == null || p.call(e), (ye = e.adBreakDone) == null || ye.call(e, {
|
|
3519
3947
|
breakType: e.type,
|
|
3520
3948
|
breakName: e.name,
|
|
3521
3949
|
breakFormat: "reward",
|
|
@@ -3525,7 +3953,7 @@ class Ko {
|
|
|
3525
3953
|
break;
|
|
3526
3954
|
}
|
|
3527
3955
|
default: {
|
|
3528
|
-
(u = e.beforeAd) == null || u.call(e), (
|
|
3956
|
+
(u = e.beforeAd) == null || u.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
|
|
3529
3957
|
breakType: e.type,
|
|
3530
3958
|
breakName: e.name,
|
|
3531
3959
|
breakFormat: "interstitial",
|
|
@@ -3536,7 +3964,7 @@ class Ko {
|
|
|
3536
3964
|
}
|
|
3537
3965
|
return;
|
|
3538
3966
|
}
|
|
3539
|
-
if (!
|
|
3967
|
+
if (!b || x !== "SUCCESS") {
|
|
3540
3968
|
(f = e.adBreakDone) == null || f.call(e, {
|
|
3541
3969
|
breakType: e.type,
|
|
3542
3970
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -3545,8 +3973,8 @@ class Ko {
|
|
|
3545
3973
|
});
|
|
3546
3974
|
return;
|
|
3547
3975
|
} else {
|
|
3548
|
-
const
|
|
3549
|
-
if (
|
|
3976
|
+
const _ = b.sort((ge, M) => ge.seq - M.seq);
|
|
3977
|
+
if (_.length === 0) {
|
|
3550
3978
|
(w = e.adBreakDone) == null || w.call(e, {
|
|
3551
3979
|
breakType: e.type,
|
|
3552
3980
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -3555,29 +3983,29 @@ class Ko {
|
|
|
3555
3983
|
});
|
|
3556
3984
|
return;
|
|
3557
3985
|
}
|
|
3558
|
-
let
|
|
3559
|
-
const
|
|
3560
|
-
for (this.adsActionDetection.adBreakIsShowing = !0;
|
|
3561
|
-
const
|
|
3562
|
-
if (
|
|
3563
|
-
const [
|
|
3564
|
-
var
|
|
3565
|
-
this.adsIsShowing =
|
|
3986
|
+
let m = !0, p = null;
|
|
3987
|
+
const ye = new Tn(this.context);
|
|
3988
|
+
for (this.adsActionDetection.adBreakIsShowing = !0; _.length > 0; ) {
|
|
3989
|
+
const ge = _.shift(), M = this.providers[ge.provider];
|
|
3990
|
+
if (M) {
|
|
3991
|
+
const [T, K] = await ye.callAdBreakAndContinue(M, e, ge, (Q) => {
|
|
3992
|
+
var L;
|
|
3993
|
+
this.adsIsShowing = Q, (L = this.context.eventEmitter) == null || L.emit("isAdShowing", Q);
|
|
3566
3994
|
});
|
|
3567
|
-
|
|
3995
|
+
m = T, p = K;
|
|
3568
3996
|
} else
|
|
3569
|
-
|
|
3997
|
+
m = !0, p = {
|
|
3570
3998
|
breakType: e.type,
|
|
3571
3999
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3572
4000
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3573
4001
|
breakStatus: "notReady"
|
|
3574
4002
|
};
|
|
3575
|
-
if (!
|
|
4003
|
+
if (!m)
|
|
3576
4004
|
break;
|
|
3577
4005
|
}
|
|
3578
|
-
|
|
4006
|
+
m && p && ((v = e.adBreakDone) == null || v.call(e, p));
|
|
3579
4007
|
}
|
|
3580
|
-
} catch (
|
|
4008
|
+
} catch (g) {
|
|
3581
4009
|
(A = e.adBreakDone) == null || A.call(e, {
|
|
3582
4010
|
breakType: e.type,
|
|
3583
4011
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3591,14 +4019,14 @@ class Ko {
|
|
|
3591
4019
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3592
4020
|
}
|
|
3593
4021
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return (e =
|
|
4022
|
+
function ze(t, e, i) {
|
|
4023
|
+
return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3596
4024
|
}
|
|
3597
|
-
function
|
|
3598
|
-
var e =
|
|
4025
|
+
function Oo(t) {
|
|
4026
|
+
var e = To(t, "string");
|
|
3599
4027
|
return typeof e == "symbol" ? e : e + "";
|
|
3600
4028
|
}
|
|
3601
|
-
function
|
|
4029
|
+
function To(t, e) {
|
|
3602
4030
|
if (typeof t != "object" || !t)
|
|
3603
4031
|
return t;
|
|
3604
4032
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3610,9 +4038,9 @@ function fo(t, e) {
|
|
|
3610
4038
|
}
|
|
3611
4039
|
return (e === "string" ? String : Number)(t);
|
|
3612
4040
|
}
|
|
3613
|
-
class
|
|
4041
|
+
class Co {
|
|
3614
4042
|
constructor(e) {
|
|
3615
|
-
|
|
4043
|
+
ze(this, "context", void 0), ze(this, "currentProvider", void 0), ze(this, "continueCallback", void 0), ze(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3616
4044
|
}
|
|
3617
4045
|
get paramsToTrack() {
|
|
3618
4046
|
var e, i;
|
|
@@ -3633,7 +4061,7 @@ class vo {
|
|
|
3633
4061
|
wrapAdPlaying(e) {
|
|
3634
4062
|
return (i) => {
|
|
3635
4063
|
var n, r;
|
|
3636
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
4064
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), yt() && this.context.track("mmp_ad_impression", {
|
|
3637
4065
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3638
4066
|
ad_format: "AFV",
|
|
3639
4067
|
module: "drama",
|
|
@@ -3661,14 +4089,14 @@ class vo {
|
|
|
3661
4089
|
});
|
|
3662
4090
|
}
|
|
3663
4091
|
}
|
|
3664
|
-
function
|
|
3665
|
-
return (e =
|
|
4092
|
+
function ft(t, e, i) {
|
|
4093
|
+
return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3666
4094
|
}
|
|
3667
|
-
function
|
|
3668
|
-
var e =
|
|
4095
|
+
function Do(t) {
|
|
4096
|
+
var e = Lo(t, "string");
|
|
3669
4097
|
return typeof e == "symbol" ? e : e + "";
|
|
3670
4098
|
}
|
|
3671
|
-
function
|
|
4099
|
+
function Lo(t, e) {
|
|
3672
4100
|
if (typeof t != "object" || !t)
|
|
3673
4101
|
return t;
|
|
3674
4102
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3680,27 +4108,27 @@ function yo(t, e) {
|
|
|
3680
4108
|
}
|
|
3681
4109
|
return (e === "string" ? String : Number)(t);
|
|
3682
4110
|
}
|
|
3683
|
-
class
|
|
4111
|
+
class $ extends Error {
|
|
3684
4112
|
constructor(e, i) {
|
|
3685
|
-
super(e.message),
|
|
4113
|
+
super(e.message), ft(this, "name", void 0), ft(this, "type", void 0), ft(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3686
4114
|
}
|
|
3687
4115
|
static from(e, i) {
|
|
3688
4116
|
switch (i) {
|
|
3689
4117
|
case "GOOGLE_IMA_ERROR":
|
|
3690
|
-
return new
|
|
4118
|
+
return new $(e, i);
|
|
3691
4119
|
case "JOLIBOX_IMA_ERROR":
|
|
3692
|
-
return new
|
|
4120
|
+
return new $(e, i);
|
|
3693
4121
|
}
|
|
3694
4122
|
}
|
|
3695
4123
|
}
|
|
3696
|
-
function
|
|
3697
|
-
return (e =
|
|
4124
|
+
function O(t, e, i) {
|
|
4125
|
+
return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3698
4126
|
}
|
|
3699
|
-
function
|
|
3700
|
-
var e =
|
|
4127
|
+
function Po(t) {
|
|
4128
|
+
var e = No(t, "string");
|
|
3701
4129
|
return typeof e == "symbol" ? e : e + "";
|
|
3702
4130
|
}
|
|
3703
|
-
function
|
|
4131
|
+
function No(t, e) {
|
|
3704
4132
|
if (typeof t != "object" || !t)
|
|
3705
4133
|
return t;
|
|
3706
4134
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3712,34 +4140,34 @@ function Ao(t, e) {
|
|
|
3712
4140
|
}
|
|
3713
4141
|
return (e === "string" ? String : Number)(t);
|
|
3714
4142
|
}
|
|
3715
|
-
class
|
|
4143
|
+
class Bo {
|
|
3716
4144
|
constructor(e, i, n) {
|
|
3717
|
-
|
|
3718
|
-
var r, o, s, a, d, l, u,
|
|
3719
|
-
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), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (
|
|
3720
|
-
}),
|
|
4145
|
+
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", () => {
|
|
4146
|
+
var r, o, s, a, d, l, u, c, h, f, w;
|
|
4147
|
+
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), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.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), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
4148
|
+
}), O(this, "requestAds", async (r, o) => {
|
|
3721
4149
|
var u;
|
|
3722
|
-
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (
|
|
3723
|
-
var
|
|
3724
|
-
return (
|
|
4150
|
+
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
|
|
4151
|
+
var h;
|
|
4152
|
+
return (h = r.onAdError) == null ? void 0 : h.call(r, $.from(c, "GOOGLE_IMA_ERROR"));
|
|
3725
4153
|
}, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
|
|
3726
4154
|
const s = () => {
|
|
3727
|
-
var
|
|
3728
|
-
this.isAdPlaying || (this.isContentFinished = !0, (
|
|
4155
|
+
var c;
|
|
4156
|
+
this.isAdPlaying || (this.isContentFinished = !0, (c = this.adsLoader) == null || c.contentComplete());
|
|
3729
4157
|
};
|
|
3730
4158
|
this.videoContent.onended = s;
|
|
3731
4159
|
const a = new window.google.ima.AdsRequest();
|
|
3732
4160
|
a.vastLoadTimeout = 1e4;
|
|
3733
4161
|
let d = "";
|
|
3734
|
-
Object.keys(o.params).forEach((
|
|
3735
|
-
const
|
|
3736
|
-
d += `&${
|
|
4162
|
+
Object.keys(o.params).forEach((c) => {
|
|
4163
|
+
const h = window.encodeURIComponent(o.params[c]);
|
|
4164
|
+
d += `&${c}=${h}`;
|
|
3737
4165
|
});
|
|
3738
4166
|
const l = `${this.adTagUrl}${d}`;
|
|
3739
4167
|
a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (u = this.notifyRequestAd) == null || u.call(this);
|
|
3740
|
-
}),
|
|
4168
|
+
}), O(this, "createAdDisplayContainer", () => {
|
|
3741
4169
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3742
|
-
}),
|
|
4170
|
+
}), O(this, "playAds", () => {
|
|
3743
4171
|
var r, o;
|
|
3744
4172
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3745
4173
|
try {
|
|
@@ -3747,10 +4175,10 @@ class po {
|
|
|
3747
4175
|
} catch (s) {
|
|
3748
4176
|
console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
|
|
3749
4177
|
}
|
|
3750
|
-
}),
|
|
4178
|
+
}), O(this, "onAdsManagerLoaded", (r) => {
|
|
3751
4179
|
const o = new window.google.ima.AdsRenderingSettings();
|
|
3752
4180
|
o.restoreCustomPlaybackStateOnAdBreakComplete = !0, o.loadVideoTimeout = 1e4, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
|
|
3753
|
-
}),
|
|
4181
|
+
}), O(this, "onAdEvent", (r) => {
|
|
3754
4182
|
var s, a, d, l;
|
|
3755
4183
|
const o = r.getAd();
|
|
3756
4184
|
switch (r.type) {
|
|
@@ -3768,19 +4196,19 @@ class po {
|
|
|
3768
4196
|
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3769
4197
|
break;
|
|
3770
4198
|
}
|
|
3771
|
-
}),
|
|
4199
|
+
}), O(this, "onAdError", (r) => {
|
|
3772
4200
|
var o, s;
|
|
3773
4201
|
(o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
|
|
3774
|
-
}),
|
|
4202
|
+
}), O(this, "onContentPauseRequested", () => {
|
|
3775
4203
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3776
|
-
}),
|
|
4204
|
+
}), O(this, "onContentResumeRequested", () => {
|
|
3777
4205
|
this.isAdPlaying = !1;
|
|
3778
4206
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3779
4207
|
}
|
|
3780
4208
|
}
|
|
3781
|
-
var
|
|
3782
|
-
const
|
|
3783
|
-
const t = E(!1), e = E(!1), i = E(null), n =
|
|
4209
|
+
var Qe = /* @__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))(Qe || {});
|
|
4210
|
+
const Mo = () => {
|
|
4211
|
+
const t = E(!1), e = E(!1), i = E(null), n = Ft(), r = Ft();
|
|
3784
4212
|
return {
|
|
3785
4213
|
visible: t,
|
|
3786
4214
|
canRetry: e,
|
|
@@ -3788,8 +4216,8 @@ const bo = () => {
|
|
|
3788
4216
|
videoRef: n,
|
|
3789
4217
|
adContainerRef: r
|
|
3790
4218
|
};
|
|
3791
|
-
},
|
|
3792
|
-
${
|
|
4219
|
+
}, Fo = G`
|
|
4220
|
+
${B}
|
|
3793
4221
|
position: fixed;
|
|
3794
4222
|
left: 0;
|
|
3795
4223
|
top: 0;
|
|
@@ -3800,7 +4228,7 @@ const bo = () => {
|
|
|
3800
4228
|
height: 100vh;
|
|
3801
4229
|
|
|
3802
4230
|
.ads-wrapper {
|
|
3803
|
-
${
|
|
4231
|
+
${B}
|
|
3804
4232
|
position: relative;
|
|
3805
4233
|
width: 100%;
|
|
3806
4234
|
height: 100%;
|
|
@@ -3823,7 +4251,7 @@ const bo = () => {
|
|
|
3823
4251
|
}
|
|
3824
4252
|
|
|
3825
4253
|
.retry-button {
|
|
3826
|
-
${
|
|
4254
|
+
${B}
|
|
3827
4255
|
position: absolute;
|
|
3828
4256
|
width: 100%;
|
|
3829
4257
|
height: 100%;
|
|
@@ -3833,7 +4261,7 @@ const bo = () => {
|
|
|
3833
4261
|
cursor: pointer;
|
|
3834
4262
|
}
|
|
3835
4263
|
}
|
|
3836
|
-
`,
|
|
4264
|
+
`, $o = (t) => {
|
|
3837
4265
|
let {
|
|
3838
4266
|
onReady: e,
|
|
3839
4267
|
state: i
|
|
@@ -3845,20 +4273,20 @@ const bo = () => {
|
|
|
3845
4273
|
videoRef: s,
|
|
3846
4274
|
adContainerRef: a
|
|
3847
4275
|
} = i, d = () => {
|
|
3848
|
-
r.value && (r.value(),
|
|
4276
|
+
r.value && (r.value(), D(() => {
|
|
3849
4277
|
r.value = null, o.value = !1;
|
|
3850
4278
|
}));
|
|
3851
4279
|
};
|
|
3852
|
-
return
|
|
4280
|
+
return ke(() => {
|
|
3853
4281
|
e();
|
|
3854
|
-
}, [e]),
|
|
3855
|
-
className:
|
|
4282
|
+
}, [e]), S("div", {
|
|
4283
|
+
className: Fo,
|
|
3856
4284
|
style: {
|
|
3857
4285
|
display: n.value ? "block" : "none"
|
|
3858
4286
|
},
|
|
3859
|
-
children:
|
|
4287
|
+
children: S("div", {
|
|
3860
4288
|
className: "ads-wrapper",
|
|
3861
|
-
children: [
|
|
4289
|
+
children: [S("video", {
|
|
3862
4290
|
ref: s,
|
|
3863
4291
|
width: "100%",
|
|
3864
4292
|
height: "100%",
|
|
@@ -3869,27 +4297,27 @@ const bo = () => {
|
|
|
3869
4297
|
transition: "none !important",
|
|
3870
4298
|
transform: "none !important",
|
|
3871
4299
|
animation: "none !important",
|
|
3872
|
-
objectFit: "
|
|
4300
|
+
objectFit: "contain"
|
|
3873
4301
|
}
|
|
3874
|
-
}),
|
|
4302
|
+
}), S("div", {
|
|
3875
4303
|
id: "ad-container",
|
|
3876
4304
|
ref: a
|
|
3877
|
-
}), o.value ?
|
|
4305
|
+
}), o.value ? S("div", {
|
|
3878
4306
|
className: "retry-button",
|
|
3879
4307
|
onClick: d,
|
|
3880
|
-
children:
|
|
4308
|
+
children: S("svg", {
|
|
3881
4309
|
width: "64",
|
|
3882
4310
|
height: "64",
|
|
3883
4311
|
viewBox: "0 0 64 64",
|
|
3884
4312
|
fill: "none",
|
|
3885
4313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3886
|
-
children: [
|
|
4314
|
+
children: [S("circle", {
|
|
3887
4315
|
cx: "32",
|
|
3888
4316
|
cy: "32",
|
|
3889
4317
|
r: "32",
|
|
3890
4318
|
fill: "#141416",
|
|
3891
4319
|
fillOpacity: "0.3"
|
|
3892
|
-
}),
|
|
4320
|
+
}), S("path", {
|
|
3893
4321
|
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",
|
|
3894
4322
|
fill: "white"
|
|
3895
4323
|
})]
|
|
@@ -3898,14 +4326,14 @@ const bo = () => {
|
|
|
3898
4326
|
})
|
|
3899
4327
|
});
|
|
3900
4328
|
};
|
|
3901
|
-
function
|
|
3902
|
-
return (e =
|
|
4329
|
+
function de(t, e, i) {
|
|
4330
|
+
return (e = Uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3903
4331
|
}
|
|
3904
|
-
function
|
|
3905
|
-
var e =
|
|
4332
|
+
function Uo(t) {
|
|
4333
|
+
var e = jo(t, "string");
|
|
3906
4334
|
return typeof e == "symbol" ? e : e + "";
|
|
3907
4335
|
}
|
|
3908
|
-
function
|
|
4336
|
+
function jo(t, e) {
|
|
3909
4337
|
if (typeof t != "object" || !t)
|
|
3910
4338
|
return t;
|
|
3911
4339
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3917,9 +4345,9 @@ function Eo(t, e) {
|
|
|
3917
4345
|
}
|
|
3918
4346
|
return (e === "string" ? String : Number)(t);
|
|
3919
4347
|
}
|
|
3920
|
-
class
|
|
4348
|
+
class Vo {
|
|
3921
4349
|
constructor(e) {
|
|
3922
|
-
|
|
4350
|
+
de(this, "name", "GOOGLE_IMA"), de(this, "context", void 0), de(this, "adsOverlay", null), de(this, "initialized", !1), de(this, "ima", null), de(this, "state", Mo()), de(this, "init", async (i) => {
|
|
3923
4351
|
if (this.initialized)
|
|
3924
4352
|
return;
|
|
3925
4353
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3935,71 +4363,71 @@ class ko {
|
|
|
3935
4363
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3936
4364
|
}
|
|
3937
4365
|
}), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3938
|
-
|
|
4366
|
+
le(S($o, {
|
|
3939
4367
|
state: this.state,
|
|
3940
4368
|
onReady: () => {
|
|
3941
|
-
this.ima = new
|
|
4369
|
+
this.ima = new Bo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3942
4370
|
}
|
|
3943
4371
|
}), this.adsOverlay);
|
|
3944
4372
|
}), this.initialized = !0;
|
|
3945
|
-
}),
|
|
3946
|
-
this.adsOverlay && (
|
|
3947
|
-
}),
|
|
4373
|
+
}), de(this, "destroy", () => {
|
|
4374
|
+
this.adsOverlay && (le(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
4375
|
+
}), de(this, "requestAd", (i, n) => {
|
|
3948
4376
|
var l;
|
|
3949
4377
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3950
|
-
const u =
|
|
4378
|
+
const u = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3951
4379
|
(l = i.onAdError) == null || l.call(i, u);
|
|
3952
4380
|
return;
|
|
3953
4381
|
}
|
|
3954
4382
|
const r = (u) => {
|
|
3955
|
-
var h;
|
|
3956
|
-
this.ima.destroy(), this.state.visible.value = !1, (h = i.onAdCompleted) == null || h.call(i, u);
|
|
3957
|
-
}, o = (u) => {
|
|
3958
4383
|
var c;
|
|
3959
|
-
|
|
4384
|
+
this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, u);
|
|
4385
|
+
}, o = (u) => {
|
|
4386
|
+
var h;
|
|
4387
|
+
let c = !1;
|
|
3960
4388
|
switch (u.raw.getErrorCode()) {
|
|
3961
|
-
case
|
|
3962
|
-
case
|
|
3963
|
-
case
|
|
3964
|
-
|
|
4389
|
+
case Qe.AUTOPLAY_DISALLOWED:
|
|
4390
|
+
case Qe.VIDEO_PLAY_ERROR:
|
|
4391
|
+
case Qe.ADS_REQUEST_NETWORK_ERROR: {
|
|
4392
|
+
c = !0;
|
|
3965
4393
|
break;
|
|
3966
4394
|
}
|
|
3967
4395
|
default: {
|
|
3968
|
-
|
|
4396
|
+
c = !1;
|
|
3969
4397
|
break;
|
|
3970
4398
|
}
|
|
3971
4399
|
}
|
|
3972
|
-
if (!
|
|
3973
|
-
this.ima.destroy(),
|
|
4400
|
+
if (!c)
|
|
4401
|
+
this.ima.destroy(), D(() => {
|
|
3974
4402
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3975
|
-
}), (
|
|
4403
|
+
}), (h = i.onAdError) == null || h.call(i, u);
|
|
3976
4404
|
else {
|
|
3977
4405
|
const f = () => {
|
|
3978
4406
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3979
4407
|
};
|
|
3980
|
-
|
|
4408
|
+
D(() => {
|
|
3981
4409
|
this.state.canRetry.value = !0, this.state.retry.value = f;
|
|
3982
4410
|
});
|
|
3983
4411
|
}
|
|
3984
4412
|
}, s = (u) => {
|
|
3985
|
-
var
|
|
3986
|
-
this.state.visible.value = !0, (
|
|
4413
|
+
var c;
|
|
4414
|
+
this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, u);
|
|
3987
4415
|
}, a = (u) => {
|
|
3988
|
-
var
|
|
3989
|
-
(
|
|
4416
|
+
var c;
|
|
4417
|
+
(c = i.onAdPlaying) == null || c.call(i, u);
|
|
3990
4418
|
}, d = Object.assign({}, i);
|
|
3991
4419
|
d.onAdCompleted = r, d.onAdError = o, d.onAdLoaded = s, d.onAdPlaying = a, this.ima.requestAds(d, n);
|
|
3992
4420
|
}), this.context = e;
|
|
3993
4421
|
}
|
|
3994
4422
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return (e =
|
|
4423
|
+
function ie(t, e, i) {
|
|
4424
|
+
return (e = Go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3997
4425
|
}
|
|
3998
|
-
function
|
|
3999
|
-
var e =
|
|
4426
|
+
function Go(t) {
|
|
4427
|
+
var e = qo(t, "string");
|
|
4000
4428
|
return typeof e == "symbol" ? e : e + "";
|
|
4001
4429
|
}
|
|
4002
|
-
function
|
|
4430
|
+
function qo(t, e) {
|
|
4003
4431
|
if (typeof t != "object" || !t)
|
|
4004
4432
|
return t;
|
|
4005
4433
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4011,24 +4439,24 @@ function Ro(t, e) {
|
|
|
4011
4439
|
}
|
|
4012
4440
|
return (e === "string" ? String : Number)(t);
|
|
4013
4441
|
}
|
|
4014
|
-
class
|
|
4442
|
+
class zo {
|
|
4015
4443
|
constructor(e) {
|
|
4016
|
-
|
|
4444
|
+
ie(this, "name", "OKSPIN"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Fi()), ie(this, "init", async (i) => {
|
|
4017
4445
|
var n;
|
|
4018
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
4446
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), le(S($i, {
|
|
4019
4447
|
state: this.state
|
|
4020
4448
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
4021
|
-
}),
|
|
4449
|
+
}), ie(this, "destroy", () => {
|
|
4022
4450
|
var i;
|
|
4023
|
-
this.adsOverlay && (
|
|
4024
|
-
}),
|
|
4451
|
+
this.adsOverlay && (le(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
4452
|
+
}), ie(this, "requestAd", (i, n) => {
|
|
4025
4453
|
var s, a, d, l;
|
|
4026
4454
|
if (!this.adsOverlay || !this.initialized) {
|
|
4027
|
-
(s = i.onAdError) == null || s.call(i,
|
|
4455
|
+
(s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
4028
4456
|
return;
|
|
4029
4457
|
}
|
|
4030
4458
|
if (this.adsIsShowing) {
|
|
4031
|
-
(a = i.onAdError) == null || a.call(i,
|
|
4459
|
+
(a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
4032
4460
|
return;
|
|
4033
4461
|
}
|
|
4034
4462
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -4039,21 +4467,21 @@ class xo {
|
|
|
4039
4467
|
var u;
|
|
4040
4468
|
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
4041
4469
|
};
|
|
4042
|
-
this.adsIsShowing = !0,
|
|
4470
|
+
this.adsIsShowing = !0, D(() => {
|
|
4043
4471
|
var u;
|
|
4044
4472
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
4045
4473
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
4046
4474
|
}), this.context = e;
|
|
4047
4475
|
}
|
|
4048
4476
|
}
|
|
4049
|
-
function
|
|
4050
|
-
return (e =
|
|
4477
|
+
function ee(t, e, i) {
|
|
4478
|
+
return (e = Ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4051
4479
|
}
|
|
4052
|
-
function
|
|
4053
|
-
var e =
|
|
4480
|
+
function Ko(t) {
|
|
4481
|
+
var e = Ho(t, "string");
|
|
4054
4482
|
return typeof e == "symbol" ? e : e + "";
|
|
4055
4483
|
}
|
|
4056
|
-
function
|
|
4484
|
+
function Ho(t, e) {
|
|
4057
4485
|
if (typeof t != "object" || !t)
|
|
4058
4486
|
return t;
|
|
4059
4487
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4065,58 +4493,58 @@ function To(t, e) {
|
|
|
4065
4493
|
}
|
|
4066
4494
|
return (e === "string" ? String : Number)(t);
|
|
4067
4495
|
}
|
|
4068
|
-
class
|
|
4496
|
+
class Wo {
|
|
4069
4497
|
constructor(e) {
|
|
4070
|
-
|
|
4498
|
+
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "state", Ui()), ee(this, "processUrl", (i) => {
|
|
4071
4499
|
var s;
|
|
4072
4500
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
4073
4501
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
|
|
4074
|
-
}),
|
|
4502
|
+
}), ee(this, "init", async (i) => {
|
|
4075
4503
|
var n;
|
|
4076
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"),
|
|
4504
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), le(S(ji, {
|
|
4077
4505
|
state: this.state
|
|
4078
4506
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
4079
|
-
}),
|
|
4507
|
+
}), ee(this, "destroy", () => {
|
|
4080
4508
|
var i;
|
|
4081
|
-
this.adsOverlay && (
|
|
4082
|
-
}),
|
|
4083
|
-
var d, l, u,
|
|
4509
|
+
this.adsOverlay && (le(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
4510
|
+
}), ee(this, "requestAd", (i, n) => {
|
|
4511
|
+
var d, l, u, c;
|
|
4084
4512
|
if (!this.adsOverlay || !this.initialized) {
|
|
4085
|
-
(d = i.onAdError) == null || d.call(i,
|
|
4513
|
+
(d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
4086
4514
|
return;
|
|
4087
4515
|
}
|
|
4088
4516
|
if (this.adsIsShowing) {
|
|
4089
|
-
(l = i.onAdError) == null || l.call(i,
|
|
4517
|
+
(l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
4090
4518
|
return;
|
|
4091
4519
|
}
|
|
4092
4520
|
(u = i.onAdRequested) == null || u.call(i);
|
|
4093
4521
|
const r = () => {
|
|
4094
|
-
var
|
|
4095
|
-
this.adsIsShowing = !1, (
|
|
4522
|
+
var h;
|
|
4523
|
+
this.adsIsShowing = !1, (h = i.onAdCompleted) == null || h.call(i, void 0);
|
|
4096
4524
|
}, o = () => {
|
|
4097
|
-
var
|
|
4098
|
-
(
|
|
4099
|
-
}, s = (
|
|
4525
|
+
var h;
|
|
4526
|
+
(h = i.onAdLoaded) == null || h.call(i, void 0);
|
|
4527
|
+
}, s = (h) => {
|
|
4100
4528
|
var f, w;
|
|
4101
|
-
(w = (f = this.context).handleLinkClicked) == null || w.call(f,
|
|
4529
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, h);
|
|
4102
4530
|
}, a = () => {
|
|
4103
|
-
var
|
|
4104
|
-
(
|
|
4531
|
+
var h;
|
|
4532
|
+
(h = i.onAdError) == null || h.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
4105
4533
|
};
|
|
4106
|
-
this.adsIsShowing = !0,
|
|
4534
|
+
this.adsIsShowing = !0, D(() => {
|
|
4107
4535
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
|
|
4108
|
-
}), (
|
|
4536
|
+
}), (c = i.onAdPlaying) == null || c.call(i, void 0);
|
|
4109
4537
|
}), this.context = e;
|
|
4110
4538
|
}
|
|
4111
4539
|
}
|
|
4112
|
-
function
|
|
4113
|
-
return (e =
|
|
4540
|
+
function ue(t, e, i) {
|
|
4541
|
+
return (e = Jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4114
4542
|
}
|
|
4115
|
-
function
|
|
4116
|
-
var e =
|
|
4543
|
+
function Jo(t) {
|
|
4544
|
+
var e = Xo(t, "string");
|
|
4117
4545
|
return typeof e == "symbol" ? e : e + "";
|
|
4118
4546
|
}
|
|
4119
|
-
function
|
|
4547
|
+
function Xo(t, e) {
|
|
4120
4548
|
if (typeof t != "object" || !t)
|
|
4121
4549
|
return t;
|
|
4122
4550
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4128,27 +4556,27 @@ function Lo(t, e) {
|
|
|
4128
4556
|
}
|
|
4129
4557
|
return (e === "string" ? String : Number)(t);
|
|
4130
4558
|
}
|
|
4131
|
-
class
|
|
4559
|
+
class Yo {
|
|
4132
4560
|
constructor(e) {
|
|
4133
|
-
|
|
4561
|
+
ue(this, "name", "GOOGLE_GPT"), ue(this, "context", void 0), ue(this, "contextInfo", void 0), ue(this, "rewardAdManager", void 0), ue(this, "init", async (i) => {
|
|
4134
4562
|
if (!this.rewardAdManager) {
|
|
4135
4563
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
4136
|
-
this.rewardAdManager = new
|
|
4564
|
+
this.rewardAdManager = new Gi(n, o, i.params.keyValue);
|
|
4137
4565
|
}
|
|
4138
|
-
}),
|
|
4566
|
+
}), ue(this, "insertScript", () => {
|
|
4139
4567
|
const i = "jolibox-google-gpt";
|
|
4140
4568
|
let n = document.getElementById(i);
|
|
4141
4569
|
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));
|
|
4142
|
-
}),
|
|
4570
|
+
}), ue(this, "destroy", () => {
|
|
4143
4571
|
var i;
|
|
4144
4572
|
(i = this.rewardAdManager) == null || i.withCommand(() => {
|
|
4145
4573
|
var n;
|
|
4146
4574
|
(n = this.rewardAdManager) == null || n.destroy("ignored");
|
|
4147
4575
|
});
|
|
4148
|
-
}),
|
|
4576
|
+
}), ue(this, "requestAd", (i, n) => {
|
|
4149
4577
|
var r;
|
|
4150
4578
|
if (!this.rewardAdManager) {
|
|
4151
|
-
(r = i.onAdError) == null || r.call(i,
|
|
4579
|
+
(r = i.onAdError) == null || r.call(i, $.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
4152
4580
|
return;
|
|
4153
4581
|
}
|
|
4154
4582
|
this.rewardAdManager.requestAds({
|
|
@@ -4171,7 +4599,7 @@ class Po {
|
|
|
4171
4599
|
case "ignored":
|
|
4172
4600
|
break;
|
|
4173
4601
|
default: {
|
|
4174
|
-
(a = i.onAdError) == null || a.call(i,
|
|
4602
|
+
(a = i.onAdError) == null || a.call(i, $.from(new Error(o), "JOLIBOX_IMA_ERROR"));
|
|
4175
4603
|
break;
|
|
4176
4604
|
}
|
|
4177
4605
|
}
|
|
@@ -4180,14 +4608,14 @@ class Po {
|
|
|
4180
4608
|
}), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
|
|
4181
4609
|
}
|
|
4182
4610
|
}
|
|
4183
|
-
function
|
|
4184
|
-
return (e =
|
|
4611
|
+
function Ae(t, e, i) {
|
|
4612
|
+
return (e = Qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4185
4613
|
}
|
|
4186
|
-
function
|
|
4187
|
-
var e =
|
|
4614
|
+
function Qo(t) {
|
|
4615
|
+
var e = Zo(t, "string");
|
|
4188
4616
|
return typeof e == "symbol" ? e : e + "";
|
|
4189
4617
|
}
|
|
4190
|
-
function
|
|
4618
|
+
function Zo(t, e) {
|
|
4191
4619
|
if (typeof t != "object" || !t)
|
|
4192
4620
|
return t;
|
|
4193
4621
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4199,10 +4627,10 @@ function Mo(t, e) {
|
|
|
4199
4627
|
}
|
|
4200
4628
|
return (e === "string" ? String : Number)(t);
|
|
4201
4629
|
}
|
|
4202
|
-
class
|
|
4630
|
+
class ls {
|
|
4203
4631
|
constructor(e) {
|
|
4204
|
-
if (
|
|
4205
|
-
this.context = e, this.requestContext = new
|
|
4632
|
+
if (Ae(this, "context", void 0), Ae(this, "contextInfo", void 0), Ae(this, "providers", {}), Ae(this, "requestContext", void 0), Ae(this, "adsRequest", void 0), Ae(this, "initialized", !1), e)
|
|
4633
|
+
this.context = e, this.requestContext = new Ct(e), this.adsRequest = new qi(e, {
|
|
4206
4634
|
reward: !1,
|
|
4207
4635
|
interstitial: !1,
|
|
4208
4636
|
afv: !1
|
|
@@ -4224,22 +4652,22 @@ class zo {
|
|
|
4224
4652
|
for (const i of e)
|
|
4225
4653
|
switch (i.provider) {
|
|
4226
4654
|
case "GOOGLE_GPT": {
|
|
4227
|
-
const n = new
|
|
4655
|
+
const n = new Yo(this.context);
|
|
4228
4656
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4229
4657
|
break;
|
|
4230
4658
|
}
|
|
4231
4659
|
case "GOOGLE_IMA": {
|
|
4232
|
-
const n = new
|
|
4660
|
+
const n = new Vo(this.context);
|
|
4233
4661
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4234
4662
|
break;
|
|
4235
4663
|
}
|
|
4236
4664
|
case "OKSPIN": {
|
|
4237
|
-
const n = new
|
|
4665
|
+
const n = new zo(this.context);
|
|
4238
4666
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4239
4667
|
break;
|
|
4240
4668
|
}
|
|
4241
4669
|
case "APPSROCKETS": {
|
|
4242
|
-
const n = new
|
|
4670
|
+
const n = new Wo(this.context);
|
|
4243
4671
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4244
4672
|
break;
|
|
4245
4673
|
}
|
|
@@ -4256,59 +4684,59 @@ class zo {
|
|
|
4256
4684
|
this.initialized = !1;
|
|
4257
4685
|
}
|
|
4258
4686
|
async requestAd(e) {
|
|
4259
|
-
var i, n, r, o, s, a, d, l, u,
|
|
4687
|
+
var i, n, r, o, s, a, d, l, u, c, h;
|
|
4260
4688
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
4261
|
-
const f =
|
|
4689
|
+
const f = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
4262
4690
|
(n = e.onAdError) == null || n.call(e, f);
|
|
4263
4691
|
return;
|
|
4264
4692
|
}
|
|
4265
4693
|
try {
|
|
4266
|
-
const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code,
|
|
4694
|
+
const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, v = f == null ? void 0 : f.data;
|
|
4267
4695
|
if (w === "BYPASS_ADS") {
|
|
4268
4696
|
(r = e.onAdRequested) == null || r.call(e), (o = e.onAdLoaded) == null || o.call(e, void 0), (s = e.onAdPlaying) == null || s.call(e, void 0), (a = e.onAdCompleted) == null || a.call(e, void 0);
|
|
4269
4697
|
return;
|
|
4270
4698
|
}
|
|
4271
|
-
if (
|
|
4272
|
-
const A =
|
|
4699
|
+
if (v) {
|
|
4700
|
+
const A = v == null ? void 0 : v.sort((x, _) => x.seq - _.seq);
|
|
4273
4701
|
if (A.length === 0) {
|
|
4274
|
-
const
|
|
4275
|
-
(l = e.onAdError) == null || l.call(e,
|
|
4702
|
+
const x = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
4703
|
+
(l = e.onAdError) == null || l.call(e, x);
|
|
4276
4704
|
return;
|
|
4277
4705
|
}
|
|
4278
|
-
let y = !0,
|
|
4279
|
-
const
|
|
4706
|
+
let y = !0, g = null;
|
|
4707
|
+
const b = new Co(this.context);
|
|
4280
4708
|
for (; A.length > 0; ) {
|
|
4281
|
-
const
|
|
4282
|
-
if (
|
|
4283
|
-
const [
|
|
4284
|
-
y =
|
|
4709
|
+
const x = A.shift(), _ = this.providers[x.provider];
|
|
4710
|
+
if (_) {
|
|
4711
|
+
const [m, p] = await b.callAdRequestAndContinue(_, e, x);
|
|
4712
|
+
y = m, g = p;
|
|
4285
4713
|
} else
|
|
4286
|
-
y = !0,
|
|
4714
|
+
y = !0, g = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
4287
4715
|
if (!y)
|
|
4288
4716
|
break;
|
|
4289
4717
|
}
|
|
4290
|
-
y &&
|
|
4718
|
+
y && g && ((u = e.onAdError) == null || u.call(e, g));
|
|
4291
4719
|
} else {
|
|
4292
|
-
const A =
|
|
4720
|
+
const A = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4293
4721
|
(d = e.onAdError) == null || d.call(e, A);
|
|
4294
4722
|
return;
|
|
4295
4723
|
}
|
|
4296
4724
|
} catch (f) {
|
|
4297
|
-
const w =
|
|
4298
|
-
(
|
|
4725
|
+
const w = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
4726
|
+
(c = e.onAdError) == null || c.call(e, w);
|
|
4299
4727
|
} finally {
|
|
4300
|
-
(
|
|
4728
|
+
(h = this.context.eventEmitter) == null || h.emit("isAdShowing", !1);
|
|
4301
4729
|
}
|
|
4302
4730
|
}
|
|
4303
4731
|
}
|
|
4304
|
-
function
|
|
4305
|
-
return (e =
|
|
4732
|
+
function pe(t, e, i) {
|
|
4733
|
+
return (e = es(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4306
4734
|
}
|
|
4307
|
-
function
|
|
4308
|
-
var e =
|
|
4735
|
+
function es(t) {
|
|
4736
|
+
var e = ts(t, "string");
|
|
4309
4737
|
return typeof e == "symbol" ? e : e + "";
|
|
4310
4738
|
}
|
|
4311
|
-
function
|
|
4739
|
+
function ts(t, e) {
|
|
4312
4740
|
if (typeof t != "object" || !t)
|
|
4313
4741
|
return t;
|
|
4314
4742
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4320,21 +4748,21 @@ function Bo(t, e) {
|
|
|
4320
4748
|
}
|
|
4321
4749
|
return (e === "string" ? String : Number)(t);
|
|
4322
4750
|
}
|
|
4323
|
-
class
|
|
4751
|
+
class us extends Error {
|
|
4324
4752
|
constructor(e) {
|
|
4325
|
-
super(e),
|
|
4753
|
+
super(e), pe(this, "name", void 0), pe(this, "message", void 0), pe(this, "errMsg", void 0), pe(this, "code", void 0), pe(this, "data", void 0), pe(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4326
4754
|
}
|
|
4327
4755
|
}
|
|
4328
4756
|
export {
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4757
|
+
$ as AFVWrappedError,
|
|
4758
|
+
$n as GoogleAdSenseProvider,
|
|
4759
|
+
Vo as GoogleIMAProvider,
|
|
4760
|
+
bo as InterstitialAdManager,
|
|
4761
|
+
ds as JoliboxAdsForGame,
|
|
4762
|
+
ls as JoliboxAdsForVideo,
|
|
4763
|
+
Wr as OKSpinForGameProvider,
|
|
4764
|
+
zo as OKSpinForVideoProvider,
|
|
4765
|
+
us as ResponseError,
|
|
4766
|
+
Gi as RewardAdManager,
|
|
4767
|
+
Vi as initGPTServices
|
|
4340
4768
|
};
|