@jolibox/ads 1.1.48 → 1.1.49
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/components/ads-request.d.ts +13 -7
- package/dist/index.js +898 -857
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Et = Object.getOwnPropertySymbols;
|
|
2
|
+
var Pi = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var kt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
7
|
-
if (t != null &&
|
|
8
|
-
for (var n of
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
6
|
+
Pi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && Et)
|
|
8
|
+
for (var n of Et(t))
|
|
9
|
+
e.indexOf(n) < 0 && Ni.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as he, Component as
|
|
13
|
-
import { useRef as
|
|
14
|
-
var
|
|
12
|
+
import { options as he, Component as Mi, isValidElement as $i } from "preact";
|
|
13
|
+
import { useRef as ji, useLayoutEffect as Fi, useEffect as He, useMemo as Ui, useState as Yt, useCallback as Bi, render as oe, createRef as It } from "preact/compat";
|
|
14
|
+
var Xt = Object.defineProperty, Vi = Object.defineProperties, Gi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, xt = (t, e, i) => e in t ? Xt(t, e, {
|
|
15
15
|
enumerable: !0,
|
|
16
16
|
configurable: !0,
|
|
17
17
|
writable: !0,
|
|
18
18
|
value: i
|
|
19
|
-
}) : t[e] = i,
|
|
19
|
+
}) : t[e] = i, zi = (t, e) => {
|
|
20
20
|
for (var i in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var i of
|
|
24
|
-
|
|
21
|
+
qi.call(e, i) && xt(t, i, e[i]);
|
|
22
|
+
if (Rt)
|
|
23
|
+
for (var i of Rt(e))
|
|
24
|
+
Ki.call(e, i) && xt(t, i, e[i]);
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
26
|
+
}, Hi = (t, e) => Vi(t, Gi(e)), Wi = (t, e) => {
|
|
27
27
|
for (var i in e)
|
|
28
|
-
|
|
28
|
+
Xt(t, i, {
|
|
29
29
|
get: e[i],
|
|
30
30
|
enumerable: !0
|
|
31
31
|
});
|
|
32
|
-
},
|
|
32
|
+
}, Qt = (t, e, i, n) => {
|
|
33
33
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
34
34
|
(s = t[o]) && (r = s(r) || r);
|
|
35
35
|
return r;
|
|
36
|
-
},
|
|
36
|
+
}, Ji = (t, e, i) => new Promise((n, r) => {
|
|
37
37
|
var o = (d) => {
|
|
38
38
|
try {
|
|
39
39
|
a(i.next(d));
|
|
@@ -78,26 +78,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
78
78
|
n.call(this, i);
|
|
79
79
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Yi(t) {
|
|
82
82
|
return new Promise((e) => {
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
e();
|
|
85
85
|
}, t);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Xi(t) {
|
|
89
89
|
return typeof t == "string";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qi(t) {
|
|
92
92
|
return typeof t == "undefined";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function Zi(t) {
|
|
95
|
+
return Qi(t) || t === null;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function en(t) {
|
|
98
98
|
return typeof t == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Zt(t) {
|
|
101
101
|
let e = t, i = null, n = function() {
|
|
102
102
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
103
103
|
o[s] = arguments[s];
|
|
@@ -105,29 +105,29 @@ function Jt(t) {
|
|
|
105
105
|
};
|
|
106
106
|
return n.prototype = e.prototype, n;
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var tn = ((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))(tn || {});
|
|
109
|
+
function pe(t) {
|
|
110
110
|
return function() {
|
|
111
111
|
var e, i;
|
|
112
112
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
log:
|
|
117
|
-
warn:
|
|
118
|
-
info:
|
|
119
|
-
error:
|
|
120
|
-
debug:
|
|
115
|
+
var nn = {
|
|
116
|
+
log: pe("log"),
|
|
117
|
+
warn: pe("warn"),
|
|
118
|
+
info: pe("info"),
|
|
119
|
+
error: pe("error"),
|
|
120
|
+
debug: pe("debug")
|
|
121
121
|
};
|
|
122
122
|
Object.assign(globalThis, {
|
|
123
|
-
logger:
|
|
123
|
+
logger: nn
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
globalThis[
|
|
127
|
-
var
|
|
128
|
-
globalThis[
|
|
129
|
-
var
|
|
130
|
-
function
|
|
125
|
+
var Ot = Symbol.for("Jolibox.canIUseMap"), rn = {};
|
|
126
|
+
globalThis[Ot] || (globalThis[Ot] = rn);
|
|
127
|
+
var Tt = Symbol.for("Jolibox.canIUseMap.native"), on = {};
|
|
128
|
+
globalThis[Tt] || (globalThis[Tt] = on);
|
|
129
|
+
var ei = ((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))(ei || {}), ti = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ti || {}), ii = ((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))(ii || {}), Ct = ["name", "params"], sn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], an = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
130
|
+
function Me(t, e) {
|
|
131
131
|
return e.map((i) => {
|
|
132
132
|
if (i === "params" && t[i]) {
|
|
133
133
|
let n = t[i];
|
|
@@ -136,18 +136,18 @@ function Le(t, e) {
|
|
|
136
136
|
return t[i];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e = t.location ?
|
|
141
|
-
return
|
|
139
|
+
function dn(t) {
|
|
140
|
+
let e = t.location ? Me(t.location, Ct) : null, i = t.target ? Me(t.target, Ct) : null;
|
|
141
|
+
return Me(Hi(zi({}, t), {
|
|
142
142
|
location: e,
|
|
143
143
|
target: i
|
|
144
|
-
}),
|
|
144
|
+
}), sn);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let e = t.events.map((n) =>
|
|
146
|
+
function ln(t) {
|
|
147
|
+
let e = t.events.map((n) => dn(n)), i = Me(t.device, an);
|
|
148
148
|
return [t.protocolVersion, e, i, t.project];
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function un() {
|
|
151
151
|
try {
|
|
152
152
|
if (window.__joliboxLocalStorage__)
|
|
153
153
|
return window.__joliboxLocalStorage__;
|
|
@@ -168,32 +168,32 @@ function rn() {
|
|
|
168
168
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
var
|
|
171
|
+
un();
|
|
172
|
+
var ot = () => !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
173
173
|
navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
174
|
-
var
|
|
174
|
+
var st = class at {
|
|
175
175
|
constructor(e) {
|
|
176
|
-
this.element = e, this.next =
|
|
176
|
+
this.element = e, this.next = at.Undefined, this.prev = at.Undefined;
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
var
|
|
179
|
+
st.Undefined = new st(void 0);
|
|
180
|
+
var x = st, cn = class {
|
|
181
181
|
constructor() {
|
|
182
|
-
this._first =
|
|
182
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
183
183
|
}
|
|
184
184
|
get size() {
|
|
185
185
|
return this._size;
|
|
186
186
|
}
|
|
187
187
|
isEmpty() {
|
|
188
|
-
return this._first ===
|
|
188
|
+
return this._first === x.Undefined;
|
|
189
189
|
}
|
|
190
190
|
clear() {
|
|
191
191
|
let t = this._first;
|
|
192
|
-
for (; t !==
|
|
192
|
+
for (; t !== x.Undefined; ) {
|
|
193
193
|
let e = t.next;
|
|
194
|
-
t.prev =
|
|
194
|
+
t.prev = x.Undefined, t.next = x.Undefined, t = e;
|
|
195
195
|
}
|
|
196
|
-
this._first =
|
|
196
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
197
197
|
}
|
|
198
198
|
unshift(t) {
|
|
199
199
|
return this._insert(t, !1);
|
|
@@ -202,8 +202,8 @@ var R = nt, on = class {
|
|
|
202
202
|
return this._insert(t, !0);
|
|
203
203
|
}
|
|
204
204
|
_insert(t, e) {
|
|
205
|
-
let i = new
|
|
206
|
-
if (this._first ===
|
|
205
|
+
let i = new x(t);
|
|
206
|
+
if (this._first === x.Undefined)
|
|
207
207
|
this._first = i, this._last = i;
|
|
208
208
|
else if (e) {
|
|
209
209
|
let r = this._last;
|
|
@@ -219,33 +219,33 @@ var R = nt, on = class {
|
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
shift() {
|
|
222
|
-
if (this._first !==
|
|
222
|
+
if (this._first !== x.Undefined) {
|
|
223
223
|
let t = this._first.element;
|
|
224
224
|
return this._remove(this._first), t;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
pop() {
|
|
228
|
-
if (this._last !==
|
|
228
|
+
if (this._last !== x.Undefined) {
|
|
229
229
|
let t = this._last.element;
|
|
230
230
|
return this._remove(this._last), t;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
_remove(t) {
|
|
234
|
-
if (t.prev !==
|
|
234
|
+
if (t.prev !== x.Undefined && t.next !== x.Undefined) {
|
|
235
235
|
let e = t.prev;
|
|
236
236
|
e.next = t.next, t.next.prev = e;
|
|
237
237
|
} else
|
|
238
|
-
t.prev ===
|
|
238
|
+
t.prev === x.Undefined && t.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : t.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : t.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
|
|
239
239
|
this._size -= 1;
|
|
240
240
|
}
|
|
241
241
|
*[Symbol.iterator]() {
|
|
242
242
|
let t = this._first;
|
|
243
|
-
for (; t !==
|
|
243
|
+
for (; t !== x.Undefined; )
|
|
244
244
|
yield t.element, t = t.next;
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, hn = 0, be = class {
|
|
247
247
|
constructor(t) {
|
|
248
|
-
this.value = t, this.id =
|
|
248
|
+
this.value = t, this.id = hn++;
|
|
249
249
|
}
|
|
250
250
|
}, Se = class {
|
|
251
251
|
constructor(e) {
|
|
@@ -270,8 +270,8 @@ var R = nt, on = class {
|
|
|
270
270
|
if (this._listeners instanceof be)
|
|
271
271
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
|
|
272
272
|
else if (this._listeners) {
|
|
273
|
-
let
|
|
274
|
-
|
|
273
|
+
let w = this._listeners.indexOf(l);
|
|
274
|
+
w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
};
|
|
@@ -298,7 +298,7 @@ var R = nt, on = class {
|
|
|
298
298
|
hasListeners() {
|
|
299
299
|
return this._size > 0;
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, fn = class {
|
|
302
302
|
constructor() {
|
|
303
303
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
304
304
|
}
|
|
@@ -326,7 +326,7 @@ var R = nt, on = class {
|
|
|
326
326
|
let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
|
|
327
327
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
328
328
|
o[s - 1] = arguments[s];
|
|
329
|
-
n || (n = new
|
|
329
|
+
n || (n = new cn(), this.cachedEventQueue.set(e, n)), n.push({
|
|
330
330
|
args: o
|
|
331
331
|
}), i && i.fire({
|
|
332
332
|
event: e,
|
|
@@ -340,20 +340,20 @@ var R = nt, on = class {
|
|
|
340
340
|
};
|
|
341
341
|
this.on(e, r, !1);
|
|
342
342
|
}
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
None: () =>
|
|
346
|
-
filter: () =>
|
|
347
|
-
once: () =>
|
|
348
|
-
toPromise: () =>
|
|
343
|
+
}, dt = {};
|
|
344
|
+
Wi(dt, {
|
|
345
|
+
None: () => vn,
|
|
346
|
+
filter: () => yn,
|
|
347
|
+
once: () => ni,
|
|
348
|
+
toPromise: () => gn
|
|
349
349
|
});
|
|
350
|
-
var
|
|
350
|
+
var vn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
351
351
|
console.log("[Jolibox SDK] None Event dispose");
|
|
352
352
|
});
|
|
353
|
-
function
|
|
354
|
-
return new Promise((e) =>
|
|
353
|
+
function gn(t) {
|
|
354
|
+
return new Promise((e) => ni(t)(e));
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function ni(t) {
|
|
357
357
|
return function(e) {
|
|
358
358
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
359
359
|
return t((r) => {
|
|
@@ -362,7 +362,7 @@ function Zt(t) {
|
|
|
362
362
|
}, null);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function yn(t, e) {
|
|
366
366
|
return ((i) => {
|
|
367
367
|
let n = {
|
|
368
368
|
onWillAddFirstListener() {
|
|
@@ -375,37 +375,37 @@ function un(t, e) {
|
|
|
375
375
|
return t((r) => e(r) && i.call(n, r), null);
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
var
|
|
379
|
-
let t = new
|
|
380
|
-
return globalThis[
|
|
378
|
+
var Qe = Symbol.for("Jolibox.hostEmitter"), wn = () => {
|
|
379
|
+
let t = new fn();
|
|
380
|
+
return globalThis[Qe] || (globalThis[Qe] = {
|
|
381
381
|
on: t.on.bind(t),
|
|
382
382
|
off: t.off.bind(t),
|
|
383
383
|
emit: t.emit.bind(t),
|
|
384
384
|
once: t.once.bind(t)
|
|
385
|
-
}), globalThis[
|
|
385
|
+
}), globalThis[Qe];
|
|
386
386
|
};
|
|
387
|
-
|
|
388
|
-
function
|
|
387
|
+
wn();
|
|
388
|
+
function pn(t, e) {
|
|
389
389
|
let i = Math.min(t.length, e.length);
|
|
390
390
|
for (let n = 0; n < i; n++)
|
|
391
|
-
|
|
391
|
+
bn(t[n], e[n]);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
393
|
+
function bn(t, e) {
|
|
394
|
+
if (Xi(e)) {
|
|
395
395
|
if (typeof t !== e)
|
|
396
396
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
397
|
-
} else if (
|
|
397
|
+
} else if (en(e)) {
|
|
398
398
|
try {
|
|
399
399
|
if (t instanceof e)
|
|
400
400
|
return;
|
|
401
401
|
} catch (i) {
|
|
402
402
|
}
|
|
403
|
-
if (!
|
|
403
|
+
if (!Zi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
404
404
|
return;
|
|
405
405
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
var
|
|
408
|
+
var lt = class {
|
|
409
409
|
constructor() {
|
|
410
410
|
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Se(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
411
411
|
}
|
|
@@ -420,7 +420,7 @@ var st = class {
|
|
|
420
420
|
e.handler = function() {
|
|
421
421
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
422
422
|
s[a] = arguments[a];
|
|
423
|
-
return
|
|
423
|
+
return pn(s, n), r(...s);
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
let {
|
|
@@ -440,19 +440,19 @@ var st = class {
|
|
|
440
440
|
return e;
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
|
|
444
|
-
var
|
|
443
|
+
lt = Qt([Zt], lt);
|
|
444
|
+
var Dt = class {
|
|
445
445
|
constructor() {
|
|
446
|
-
this._onWillExecuteCommand = new Se(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Se(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new
|
|
446
|
+
this._onWillExecuteCommand = new Se(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Se(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new lt(), this._starActivation = null;
|
|
447
447
|
}
|
|
448
448
|
_activateStar() {
|
|
449
|
-
return this._starActivation || (this._starActivation =
|
|
449
|
+
return this._starActivation || (this._starActivation = Yi(3e4)), this._starActivation;
|
|
450
450
|
}
|
|
451
451
|
executeCommand(e) {
|
|
452
452
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
453
453
|
n[r - 1] = arguments[r];
|
|
454
|
-
return
|
|
455
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
454
|
+
return Ji(this, null, function* () {
|
|
455
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), dt.toPromise(dt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
executeCommandThowErr(e) {
|
|
@@ -498,15 +498,15 @@ var xt = class {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
|
|
502
|
-
function
|
|
503
|
-
return (e =
|
|
501
|
+
Dt = Qt([Zt], Dt);
|
|
502
|
+
function B(t, e, i) {
|
|
503
|
+
return (e = An(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
var e =
|
|
505
|
+
function An(t) {
|
|
506
|
+
var e = _n(t, "string");
|
|
507
507
|
return typeof e == "symbol" ? e : e + "";
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function _n(t, e) {
|
|
510
510
|
if (typeof t != "object" || !t)
|
|
511
511
|
return t;
|
|
512
512
|
var i = t[Symbol.toPrimitive];
|
|
@@ -518,9 +518,9 @@ function gn(t, e) {
|
|
|
518
518
|
}
|
|
519
519
|
return (e === "string" ? String : Number)(t);
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class mn {
|
|
522
522
|
constructor(e) {
|
|
523
|
-
|
|
523
|
+
B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "contextInfo", void 0), B(this, "wrapShowAdFn", (i) => () => {
|
|
524
524
|
var r, o, s;
|
|
525
525
|
this.adsHasResponse = !0;
|
|
526
526
|
let n = !1;
|
|
@@ -528,7 +528,7 @@ class yn {
|
|
|
528
528
|
n = !1;
|
|
529
529
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
530
530
|
userEvent: n
|
|
531
|
-
}, this.paramsToTrack)),
|
|
531
|
+
}, this.paramsToTrack)), ot() && this.context.track("mmp_ad_impression", {
|
|
532
532
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
533
533
|
ad_format: "rewarded",
|
|
534
534
|
module: "game",
|
|
@@ -547,7 +547,7 @@ class yn {
|
|
|
547
547
|
wrapBeforeAd(e) {
|
|
548
548
|
return () => {
|
|
549
549
|
var i, n, r, o;
|
|
550
|
-
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0),
|
|
550
|
+
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), ot() && this.context.track("mmp_ad_impression", {
|
|
551
551
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
552
552
|
ad_format: "interstitial",
|
|
553
553
|
module: "game",
|
|
@@ -656,14 +656,14 @@ class yn {
|
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return (e =
|
|
659
|
+
function De(t, e, i) {
|
|
660
|
+
return (e = Sn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
var e =
|
|
662
|
+
function Sn(t) {
|
|
663
|
+
var e = En(t, "string");
|
|
664
664
|
return typeof e == "symbol" ? e : e + "";
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function En(t, e) {
|
|
667
667
|
if (typeof t != "object" || !t)
|
|
668
668
|
return t;
|
|
669
669
|
var i = t[Symbol.toPrimitive];
|
|
@@ -675,13 +675,13 @@ function wn(t, e) {
|
|
|
675
675
|
}
|
|
676
676
|
return (e === "string" ? String : Number)(t);
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class kn {
|
|
679
679
|
constructor(e) {
|
|
680
|
-
|
|
680
|
+
De(this, "context", void 0), De(this, "adBreakIsShowing", !1), De(this, "reportPageJumpOut", () => {
|
|
681
681
|
this.context.track("AdBreakJumpOut", {
|
|
682
682
|
context: "AdsActionDetection"
|
|
683
683
|
});
|
|
684
|
-
}),
|
|
684
|
+
}), De(this, "reportPageHide", () => {
|
|
685
685
|
this.context.track("AdBreakHide", {
|
|
686
686
|
context: "AdsActionDetection"
|
|
687
687
|
});
|
|
@@ -692,14 +692,14 @@ class bn {
|
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return (e =
|
|
695
|
+
function Le(t, e, i) {
|
|
696
|
+
return (e = In(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
var e =
|
|
698
|
+
function In(t) {
|
|
699
|
+
var e = Rn(t, "string");
|
|
700
700
|
return typeof e == "symbol" ? e : e + "";
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Rn(t, e) {
|
|
703
703
|
if (typeof t != "object" || !t)
|
|
704
704
|
return t;
|
|
705
705
|
var i = t[Symbol.toPrimitive];
|
|
@@ -711,9 +711,9 @@ function An(t, e) {
|
|
|
711
711
|
}
|
|
712
712
|
return (e === "string" ? String : Number)(t);
|
|
713
713
|
}
|
|
714
|
-
class
|
|
714
|
+
class xn {
|
|
715
715
|
constructor(e) {
|
|
716
|
-
|
|
716
|
+
Le(this, "configs", null), Le(this, "firstRun", !0), Le(this, "context", void 0), Le(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
717
717
|
}
|
|
718
718
|
async init() {
|
|
719
719
|
try {
|
|
@@ -738,13 +738,13 @@ class mn {
|
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
function Q(t, e, i) {
|
|
741
|
-
return (e =
|
|
741
|
+
return (e = On(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
var e =
|
|
743
|
+
function On(t) {
|
|
744
|
+
var e = Tn(t, "string");
|
|
745
745
|
return typeof e == "symbol" ? e : e + "";
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Tn(t, e) {
|
|
748
748
|
if (typeof t != "object" || !t)
|
|
749
749
|
return t;
|
|
750
750
|
var i = t[Symbol.toPrimitive];
|
|
@@ -756,7 +756,7 @@ function En(t, e) {
|
|
|
756
756
|
}
|
|
757
757
|
return (e === "string" ? String : Number)(t);
|
|
758
758
|
}
|
|
759
|
-
class
|
|
759
|
+
class Cn {
|
|
760
760
|
/**
|
|
761
761
|
* Internal constructor, should not be called directly
|
|
762
762
|
*/
|
|
@@ -767,7 +767,7 @@ class kn {
|
|
|
767
767
|
}), Q(this, "adConfig", (n) => {
|
|
768
768
|
const s = n, {
|
|
769
769
|
onReady: r
|
|
770
|
-
} = s, o =
|
|
770
|
+
} = s, o = kt(s, [
|
|
771
771
|
"onReady"
|
|
772
772
|
]);
|
|
773
773
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
@@ -778,10 +778,10 @@ class kn {
|
|
|
778
778
|
}
|
|
779
779
|
this.push(n);
|
|
780
780
|
}), Q(this, "adUnit", async (n) => {
|
|
781
|
-
var
|
|
781
|
+
var w, g, p, y;
|
|
782
782
|
if (this.context.track("CallAdUnit", {
|
|
783
|
-
adFormat: (g = (
|
|
784
|
-
fullWidthResponsive: (
|
|
783
|
+
adFormat: (g = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? g : null,
|
|
784
|
+
fullWidthResponsive: (p = n.fullWidthResponsive) != null ? p : null
|
|
785
785
|
}), document.querySelector("#jolibox-ads")) {
|
|
786
786
|
console.warn("Ad unit already set, skipping");
|
|
787
787
|
return;
|
|
@@ -803,15 +803,15 @@ class kn {
|
|
|
803
803
|
throw new Error("slot is required");
|
|
804
804
|
const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
|
|
805
805
|
if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
|
|
806
|
-
const
|
|
807
|
-
|
|
806
|
+
const v = document.createElement("div");
|
|
807
|
+
v.style.position = "absolute", v.style.top = "0", v.style.left = "0", v.style.width = "100%", v.style.height = "100%", v.style.display = "flex", v.style.justifyContent = "center", v.style.alignItems = "center", v.style.backgroundColor = "rgba(0, 0, 0, 0.5)", v.style.color = "white", v.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(v);
|
|
808
808
|
} else
|
|
809
809
|
l.appendChild(c), new MutationObserver((b) => {
|
|
810
|
-
b.forEach((
|
|
811
|
-
if (
|
|
812
|
-
const
|
|
810
|
+
b.forEach((T) => {
|
|
811
|
+
if (T.type === "attributes" && T.attributeName === "data-ad-status") {
|
|
812
|
+
const R = c.getAttribute("data-ad-status");
|
|
813
813
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
814
|
-
status:
|
|
814
|
+
status: R != null ? R : "null"
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
});
|
|
@@ -834,18 +834,18 @@ class kn {
|
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Dn(t) {
|
|
838
838
|
if (t.sheet)
|
|
839
839
|
return t.sheet;
|
|
840
840
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
841
841
|
if (document.styleSheets[e].ownerNode === t)
|
|
842
842
|
return document.styleSheets[e];
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Ln(t) {
|
|
845
845
|
var e = document.createElement("style");
|
|
846
846
|
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;
|
|
847
847
|
}
|
|
848
|
-
var
|
|
848
|
+
var Pn = /* @__PURE__ */ function() {
|
|
849
849
|
function t(i) {
|
|
850
850
|
var n = this;
|
|
851
851
|
this._insertTag = function(r) {
|
|
@@ -857,10 +857,10 @@ var xn = /* @__PURE__ */ function() {
|
|
|
857
857
|
return e.hydrate = function(n) {
|
|
858
858
|
n.forEach(this._insertTag);
|
|
859
859
|
}, e.insert = function(n) {
|
|
860
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
860
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ln(this));
|
|
861
861
|
var r = this.tags[this.tags.length - 1];
|
|
862
862
|
if (this.isSpeedy) {
|
|
863
|
-
var o =
|
|
863
|
+
var o = Dn(r);
|
|
864
864
|
try {
|
|
865
865
|
o.insertRule(n, o.cssRules.length);
|
|
866
866
|
} catch (s) {
|
|
@@ -874,23 +874,23 @@ var xn = /* @__PURE__ */ function() {
|
|
|
874
874
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
875
875
|
}), this.tags = [], this.ctr = 0;
|
|
876
876
|
}, t;
|
|
877
|
-
}(),
|
|
878
|
-
function
|
|
879
|
-
return
|
|
877
|
+
}(), j = "-ms-", Ge = "-moz-", m = "-webkit-", ri = "comm", wt = "rule", pt = "decl", Nn = "@import", oi = "@keyframes", Mn = "@layer", $n = Math.abs, We = String.fromCharCode, jn = Object.assign;
|
|
878
|
+
function Fn(t, e) {
|
|
879
|
+
return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function si(t) {
|
|
882
882
|
return t.trim();
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Un(t, e) {
|
|
885
885
|
return (t = e.exec(t)) ? t[0] : t;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function S(t, e, i) {
|
|
888
888
|
return t.replace(e, i);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function ut(t, e) {
|
|
891
891
|
return t.indexOf(e);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function N(t, e) {
|
|
894
894
|
return t.charCodeAt(e) | 0;
|
|
895
895
|
}
|
|
896
896
|
function Ee(t, e, i) {
|
|
@@ -899,36 +899,36 @@ function Ee(t, e, i) {
|
|
|
899
899
|
function Y(t) {
|
|
900
900
|
return t.length;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function bt(t) {
|
|
903
903
|
return t.length;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Pe(t, e) {
|
|
906
906
|
return e.push(t), t;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function Bn(t, e) {
|
|
909
909
|
return t.map(e).join("");
|
|
910
910
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
911
|
+
var Je = 1, fe = 1, ai = 0, G = 0, C = 0, ve = "";
|
|
912
|
+
function Ye(t, e, i, n, r, o, s) {
|
|
913
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Je, column: fe, length: s, return: "" };
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
return
|
|
915
|
+
function Ae(t, e) {
|
|
916
|
+
return jn(Ye("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
return
|
|
918
|
+
function Vn() {
|
|
919
|
+
return C;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return
|
|
921
|
+
function Gn() {
|
|
922
|
+
return C = G > 0 ? N(ve, --G) : 0, fe--, C === 10 && (fe = 1, Je--), C;
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
924
|
+
function K() {
|
|
925
|
+
return C = G < ai ? N(ve, G++) : 0, fe++, C === 10 && (fe = 1, Je++), C;
|
|
926
926
|
}
|
|
927
927
|
function X() {
|
|
928
|
-
return
|
|
928
|
+
return N(ve, G);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
return
|
|
930
|
+
function $e() {
|
|
931
|
+
return G;
|
|
932
932
|
}
|
|
933
933
|
function Ie(t, e) {
|
|
934
934
|
return Ee(ve, t, e);
|
|
@@ -965,212 +965,212 @@ function ke(t) {
|
|
|
965
965
|
}
|
|
966
966
|
return 0;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
return
|
|
968
|
+
function di(t) {
|
|
969
|
+
return Je = fe = 1, ai = Y(ve = t), G = 0, [];
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function li(t) {
|
|
972
972
|
return ve = "", t;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
974
|
+
function je(t) {
|
|
975
|
+
return si(Ie(G - 1, ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
for (; (
|
|
979
|
-
|
|
980
|
-
return ke(t) > 2 || ke(
|
|
977
|
+
function qn(t) {
|
|
978
|
+
for (; (C = X()) && C < 33; )
|
|
979
|
+
K();
|
|
980
|
+
return ke(t) > 2 || ke(C) > 3 ? "" : " ";
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
for (; --e &&
|
|
982
|
+
function Kn(t, e) {
|
|
983
|
+
for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
984
984
|
;
|
|
985
|
-
return Ie(t,
|
|
985
|
+
return Ie(t, $e() + (e < 6 && X() == 32 && K() == 32));
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
for (;
|
|
989
|
-
switch (
|
|
987
|
+
function ct(t) {
|
|
988
|
+
for (; K(); )
|
|
989
|
+
switch (C) {
|
|
990
990
|
case t:
|
|
991
|
-
return
|
|
991
|
+
return G;
|
|
992
992
|
case 34:
|
|
993
993
|
case 39:
|
|
994
|
-
t !== 34 && t !== 39 &&
|
|
994
|
+
t !== 34 && t !== 39 && ct(C);
|
|
995
995
|
break;
|
|
996
996
|
case 40:
|
|
997
|
-
t === 41 &&
|
|
997
|
+
t === 41 && ct(t);
|
|
998
998
|
break;
|
|
999
999
|
case 92:
|
|
1000
|
-
|
|
1000
|
+
K();
|
|
1001
1001
|
break;
|
|
1002
1002
|
}
|
|
1003
|
-
return
|
|
1003
|
+
return G;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
for (;
|
|
1007
|
-
if (t +
|
|
1005
|
+
function zn(t, e) {
|
|
1006
|
+
for (; K() && t + C !== 57; )
|
|
1007
|
+
if (t + C === 84 && X() === 47)
|
|
1008
1008
|
break;
|
|
1009
|
-
return "/*" + Ie(e,
|
|
1009
|
+
return "/*" + Ie(e, G - 1) + "*" + We(t === 47 ? t : K());
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Hn(t) {
|
|
1012
1012
|
for (; !ke(X()); )
|
|
1013
|
-
|
|
1014
|
-
return Ie(t,
|
|
1013
|
+
K();
|
|
1014
|
+
return Ie(t, G);
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
return
|
|
1016
|
+
function Wn(t) {
|
|
1017
|
+
return li(Fe("", null, null, null, [""], t = di(t), 0, [0], t));
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
for (var l = 0, u = 0, h = s, c = 0, f = 0,
|
|
1021
|
-
switch (
|
|
1019
|
+
function Fe(t, e, i, n, r, o, s, a, d) {
|
|
1020
|
+
for (var l = 0, u = 0, h = s, c = 0, f = 0, w = 0, g = 1, p = 1, y = 1, v = 0, b = "", T = r, R = o, O = n, A = b; p; )
|
|
1021
|
+
switch (w = v, v = K()) {
|
|
1022
1022
|
case 40:
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1023
|
+
if (w != 108 && N(A, h - 1) == 58) {
|
|
1024
|
+
ut(A += S(je(v), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1025
1025
|
break;
|
|
1026
1026
|
}
|
|
1027
1027
|
case 34:
|
|
1028
1028
|
case 39:
|
|
1029
1029
|
case 91:
|
|
1030
|
-
|
|
1030
|
+
A += je(v);
|
|
1031
1031
|
break;
|
|
1032
1032
|
case 9:
|
|
1033
1033
|
case 10:
|
|
1034
1034
|
case 13:
|
|
1035
1035
|
case 32:
|
|
1036
|
-
|
|
1036
|
+
A += qn(w);
|
|
1037
1037
|
break;
|
|
1038
1038
|
case 92:
|
|
1039
|
-
|
|
1039
|
+
A += Kn($e() - 1, 7);
|
|
1040
1040
|
continue;
|
|
1041
1041
|
case 47:
|
|
1042
1042
|
switch (X()) {
|
|
1043
1043
|
case 42:
|
|
1044
1044
|
case 47:
|
|
1045
|
-
|
|
1045
|
+
Pe(Jn(zn(K(), $e()), e, i), d);
|
|
1046
1046
|
break;
|
|
1047
1047
|
default:
|
|
1048
|
-
|
|
1048
|
+
A += "/";
|
|
1049
1049
|
}
|
|
1050
1050
|
break;
|
|
1051
1051
|
case 123 * g:
|
|
1052
|
-
a[l++] = Y(
|
|
1052
|
+
a[l++] = Y(A) * y;
|
|
1053
1053
|
case 125 * g:
|
|
1054
1054
|
case 59:
|
|
1055
1055
|
case 0:
|
|
1056
|
-
switch (
|
|
1056
|
+
switch (v) {
|
|
1057
1057
|
case 0:
|
|
1058
1058
|
case 125:
|
|
1059
|
-
|
|
1059
|
+
p = 0;
|
|
1060
1060
|
case 59 + u:
|
|
1061
|
-
y == -1 && (
|
|
1061
|
+
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Pe(f > 32 ? Pt(A + ";", n, i, h - 1) : Pt(S(A, " ", "") + ";", n, i, h - 2), d);
|
|
1062
1062
|
break;
|
|
1063
1063
|
case 59:
|
|
1064
|
-
|
|
1064
|
+
A += ";";
|
|
1065
1065
|
default:
|
|
1066
|
-
if (
|
|
1066
|
+
if (Pe(O = Lt(A, e, i, l, u, r, a, b, T = [], R = [], h), o), v === 123)
|
|
1067
1067
|
if (u === 0)
|
|
1068
|
-
|
|
1068
|
+
Fe(A, e, O, O, T, o, h, a, R);
|
|
1069
1069
|
else
|
|
1070
|
-
switch (c === 99 &&
|
|
1070
|
+
switch (c === 99 && N(A, 3) === 110 ? 100 : c) {
|
|
1071
1071
|
case 100:
|
|
1072
1072
|
case 108:
|
|
1073
1073
|
case 109:
|
|
1074
1074
|
case 115:
|
|
1075
|
-
|
|
1075
|
+
Fe(t, O, O, n && Pe(Lt(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
|
|
1076
1076
|
break;
|
|
1077
1077
|
default:
|
|
1078
|
-
|
|
1078
|
+
Fe(A, O, O, O, [""], R, 0, a, R);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
|
-
l = u = f = 0, g = y = 1, b =
|
|
1081
|
+
l = u = f = 0, g = y = 1, b = A = "", h = s;
|
|
1082
1082
|
break;
|
|
1083
1083
|
case 58:
|
|
1084
|
-
h = 1 + Y(
|
|
1084
|
+
h = 1 + Y(A), f = w;
|
|
1085
1085
|
default:
|
|
1086
1086
|
if (g < 1) {
|
|
1087
|
-
if (
|
|
1087
|
+
if (v == 123)
|
|
1088
1088
|
--g;
|
|
1089
|
-
else if (
|
|
1089
|
+
else if (v == 125 && g++ == 0 && Gn() == 125)
|
|
1090
1090
|
continue;
|
|
1091
1091
|
}
|
|
1092
|
-
switch (
|
|
1092
|
+
switch (A += We(v), v * g) {
|
|
1093
1093
|
case 38:
|
|
1094
|
-
y = u > 0 ? 1 : (
|
|
1094
|
+
y = u > 0 ? 1 : (A += "\f", -1);
|
|
1095
1095
|
break;
|
|
1096
1096
|
case 44:
|
|
1097
|
-
a[l++] = (Y(
|
|
1097
|
+
a[l++] = (Y(A) - 1) * y, y = 1;
|
|
1098
1098
|
break;
|
|
1099
1099
|
case 64:
|
|
1100
|
-
X() === 45 && (
|
|
1100
|
+
X() === 45 && (A += je(K())), c = X(), u = h = Y(b = A += Hn($e())), v++;
|
|
1101
1101
|
break;
|
|
1102
1102
|
case 45:
|
|
1103
|
-
|
|
1103
|
+
w === 45 && Y(A) == 2 && (g = 0);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
return o;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f =
|
|
1110
|
-
for (var y = 0,
|
|
1111
|
-
(b =
|
|
1112
|
-
return
|
|
1108
|
+
function Lt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1109
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = bt(c), w = 0, g = 0, p = 0; w < n; ++w)
|
|
1110
|
+
for (var y = 0, v = Ee(t, h + 1, h = $n(g = s[w])), b = t; y < f; ++y)
|
|
1111
|
+
(b = si(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
|
|
1112
|
+
return Ye(t, e, i, r === 0 ? wt : a, d, l, u);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1114
|
+
function Jn(t, e, i) {
|
|
1115
|
+
return Ye(t, e, i, ri, We(Vn()), Ee(t, 2, -2), 0);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1117
|
+
function Pt(t, e, i, n) {
|
|
1118
|
+
return Ye(t, e, i, pt, Ee(t, 0, n), Ee(t, n + 1, -1), n);
|
|
1119
1119
|
}
|
|
1120
1120
|
function ce(t, e) {
|
|
1121
|
-
for (var i = "", n =
|
|
1121
|
+
for (var i = "", n = bt(t), r = 0; r < n; r++)
|
|
1122
1122
|
i += e(t[r], r, t, e) || "";
|
|
1123
1123
|
return i;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Yn(t, e, i, n) {
|
|
1126
1126
|
switch (t.type) {
|
|
1127
|
-
case
|
|
1127
|
+
case Mn:
|
|
1128
1128
|
if (t.children.length)
|
|
1129
1129
|
break;
|
|
1130
|
-
case
|
|
1131
|
-
case
|
|
1130
|
+
case Nn:
|
|
1131
|
+
case pt:
|
|
1132
1132
|
return t.return = t.return || t.value;
|
|
1133
|
-
case
|
|
1133
|
+
case ri:
|
|
1134
1134
|
return "";
|
|
1135
|
-
case
|
|
1135
|
+
case oi:
|
|
1136
1136
|
return t.return = t.value + "{" + ce(t.children, n) + "}";
|
|
1137
|
-
case
|
|
1137
|
+
case wt:
|
|
1138
1138
|
t.value = t.props.join(",");
|
|
1139
1139
|
}
|
|
1140
1140
|
return Y(i = ce(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
var e =
|
|
1142
|
+
function Xn(t) {
|
|
1143
|
+
var e = bt(t);
|
|
1144
1144
|
return function(i, n, r, o) {
|
|
1145
1145
|
for (var s = "", a = 0; a < e; a++)
|
|
1146
1146
|
s += t[a](i, n, r, o) || "";
|
|
1147
1147
|
return s;
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Qn(t) {
|
|
1151
1151
|
return function(e) {
|
|
1152
1152
|
e.root || (e = e.return) && t(e);
|
|
1153
1153
|
};
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function Zn(t) {
|
|
1156
1156
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1157
1157
|
return function(i) {
|
|
1158
1158
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
|
-
var
|
|
1161
|
+
var er = function(e, i, n) {
|
|
1162
1162
|
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !ke(o); )
|
|
1163
|
-
|
|
1164
|
-
return Ie(e,
|
|
1165
|
-
},
|
|
1163
|
+
K();
|
|
1164
|
+
return Ie(e, G);
|
|
1165
|
+
}, tr = function(e, i) {
|
|
1166
1166
|
var n = -1, r = 44;
|
|
1167
1167
|
do
|
|
1168
1168
|
switch (ke(r)) {
|
|
1169
1169
|
case 0:
|
|
1170
|
-
r === 38 && X() === 12 && (i[n] = 1), e[n] +=
|
|
1170
|
+
r === 38 && X() === 12 && (i[n] = 1), e[n] += er(G - 1, i, n);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 2:
|
|
1173
|
-
e[n] +=
|
|
1173
|
+
e[n] += je(r);
|
|
1174
1174
|
break;
|
|
1175
1175
|
case 4:
|
|
1176
1176
|
if (r === 44) {
|
|
@@ -1178,27 +1178,27 @@ var Wn = function(e, i, n) {
|
|
|
1178
1178
|
break;
|
|
1179
1179
|
}
|
|
1180
1180
|
default:
|
|
1181
|
-
e[n] +=
|
|
1181
|
+
e[n] += We(r);
|
|
1182
1182
|
}
|
|
1183
|
-
while (r =
|
|
1183
|
+
while (r = K());
|
|
1184
1184
|
return e;
|
|
1185
|
-
},
|
|
1186
|
-
return
|
|
1187
|
-
},
|
|
1185
|
+
}, ir = function(e, i) {
|
|
1186
|
+
return li(tr(di(e), i));
|
|
1187
|
+
}, Nt = /* @__PURE__ */ new WeakMap(), nr = function(e) {
|
|
1188
1188
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1189
1189
|
// negative .length indicates that this rule has been already prefixed
|
|
1190
1190
|
e.length < 1)) {
|
|
1191
1191
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1192
1192
|
if (n = n.parent, !n)
|
|
1193
1193
|
return;
|
|
1194
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1195
|
-
|
|
1196
|
-
for (var o = [], s =
|
|
1194
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Nt.get(n)) && !r) {
|
|
1195
|
+
Nt.set(e, !0);
|
|
1196
|
+
for (var o = [], s = ir(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1197
1197
|
for (var u = 0; u < a.length; u++, l++)
|
|
1198
1198
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
},
|
|
1201
|
+
}, rr = function(e) {
|
|
1202
1202
|
if (e.type === "decl") {
|
|
1203
1203
|
var i = e.value;
|
|
1204
1204
|
// charcode for l
|
|
@@ -1206,10 +1206,10 @@ var Wn = function(e, i, n) {
|
|
|
1206
1206
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
-
function
|
|
1210
|
-
switch (
|
|
1209
|
+
function ui(t, e) {
|
|
1210
|
+
switch (Fn(t, e)) {
|
|
1211
1211
|
case 5103:
|
|
1212
|
-
return
|
|
1212
|
+
return m + "print-" + t + t;
|
|
1213
1213
|
case 5737:
|
|
1214
1214
|
case 4201:
|
|
1215
1215
|
case 3177:
|
|
@@ -1235,44 +1235,44 @@ function si(t, e) {
|
|
|
1235
1235
|
case 5365:
|
|
1236
1236
|
case 5621:
|
|
1237
1237
|
case 3829:
|
|
1238
|
-
return
|
|
1238
|
+
return m + t + t;
|
|
1239
1239
|
case 5349:
|
|
1240
1240
|
case 4246:
|
|
1241
1241
|
case 4810:
|
|
1242
1242
|
case 6968:
|
|
1243
1243
|
case 2756:
|
|
1244
|
-
return
|
|
1244
|
+
return m + t + Ge + t + j + t + t;
|
|
1245
1245
|
case 6828:
|
|
1246
1246
|
case 4268:
|
|
1247
|
-
return
|
|
1247
|
+
return m + t + j + t + t;
|
|
1248
1248
|
case 6165:
|
|
1249
|
-
return
|
|
1249
|
+
return m + t + j + "flex-" + t + t;
|
|
1250
1250
|
case 5187:
|
|
1251
|
-
return
|
|
1251
|
+
return m + t + S(t, /(\w+).+(:[^]+)/, m + "box-$1$2" + j + "flex-$1$2") + t;
|
|
1252
1252
|
case 5443:
|
|
1253
|
-
return
|
|
1253
|
+
return m + t + j + "flex-item-" + S(t, /flex-|-self/, "") + t;
|
|
1254
1254
|
case 4675:
|
|
1255
|
-
return
|
|
1255
|
+
return m + t + j + "flex-line-pack" + S(t, /align-content|flex-|-self/, "") + t;
|
|
1256
1256
|
case 5548:
|
|
1257
|
-
return
|
|
1257
|
+
return m + t + j + S(t, "shrink", "negative") + t;
|
|
1258
1258
|
case 5292:
|
|
1259
|
-
return
|
|
1259
|
+
return m + t + j + S(t, "basis", "preferred-size") + t;
|
|
1260
1260
|
case 6060:
|
|
1261
|
-
return
|
|
1261
|
+
return m + "box-" + S(t, "-grow", "") + m + t + j + S(t, "grow", "positive") + t;
|
|
1262
1262
|
case 4554:
|
|
1263
|
-
return
|
|
1263
|
+
return m + S(t, /([^-])(transform)/g, "$1" + m + "$2") + t;
|
|
1264
1264
|
case 6187:
|
|
1265
|
-
return
|
|
1265
|
+
return S(S(S(t, /(zoom-|grab)/, m + "$1"), /(image-set)/, m + "$1"), t, "") + t;
|
|
1266
1266
|
case 5495:
|
|
1267
1267
|
case 3959:
|
|
1268
|
-
return
|
|
1268
|
+
return S(t, /(image-set\([^]*)/, m + "$1$`$1");
|
|
1269
1269
|
case 4968:
|
|
1270
|
-
return
|
|
1270
|
+
return S(S(t, /(.+:)(flex-)?(.*)/, m + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + m + t + t;
|
|
1271
1271
|
case 4095:
|
|
1272
1272
|
case 3583:
|
|
1273
1273
|
case 4068:
|
|
1274
1274
|
case 2532:
|
|
1275
|
-
return
|
|
1275
|
+
return S(t, /(.+)-inline(.+)/, m + "$1$2") + t;
|
|
1276
1276
|
case 8116:
|
|
1277
1277
|
case 7059:
|
|
1278
1278
|
case 5753:
|
|
@@ -1286,105 +1286,105 @@ function si(t, e) {
|
|
|
1286
1286
|
case 5021:
|
|
1287
1287
|
case 4765:
|
|
1288
1288
|
if (Y(t) - 1 - e > 6)
|
|
1289
|
-
switch (
|
|
1289
|
+
switch (N(t, e + 1)) {
|
|
1290
1290
|
case 109:
|
|
1291
|
-
if (
|
|
1291
|
+
if (N(t, e + 4) !== 45)
|
|
1292
1292
|
break;
|
|
1293
1293
|
case 102:
|
|
1294
|
-
return
|
|
1294
|
+
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + Ge + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1295
1295
|
case 115:
|
|
1296
|
-
return ~
|
|
1296
|
+
return ~ut(t, "stretch") ? ui(S(t, "stretch", "fill-available"), e) + t : t;
|
|
1297
1297
|
}
|
|
1298
1298
|
break;
|
|
1299
1299
|
case 4949:
|
|
1300
|
-
if (
|
|
1300
|
+
if (N(t, e + 1) !== 115)
|
|
1301
1301
|
break;
|
|
1302
1302
|
case 6444:
|
|
1303
|
-
switch (
|
|
1303
|
+
switch (N(t, Y(t) - 3 - (~ut(t, "!important") && 10))) {
|
|
1304
1304
|
case 107:
|
|
1305
|
-
return
|
|
1305
|
+
return S(t, ":", ":" + m) + t;
|
|
1306
1306
|
case 101:
|
|
1307
|
-
return
|
|
1307
|
+
return S(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + m + (N(t, 14) === 45 ? "inline-" : "") + "box$3$1" + m + "$2$3$1" + j + "$2box$3") + t;
|
|
1308
1308
|
}
|
|
1309
1309
|
break;
|
|
1310
1310
|
case 5936:
|
|
1311
|
-
switch (
|
|
1311
|
+
switch (N(t, e + 11)) {
|
|
1312
1312
|
case 114:
|
|
1313
|
-
return
|
|
1313
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1314
1314
|
case 108:
|
|
1315
|
-
return
|
|
1315
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1316
1316
|
case 45:
|
|
1317
|
-
return
|
|
1317
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1318
1318
|
}
|
|
1319
|
-
return
|
|
1319
|
+
return m + t + j + t + t;
|
|
1320
1320
|
}
|
|
1321
1321
|
return t;
|
|
1322
1322
|
}
|
|
1323
|
-
var
|
|
1323
|
+
var or = function(e, i, n, r) {
|
|
1324
1324
|
if (e.length > -1 && !e.return)
|
|
1325
1325
|
switch (e.type) {
|
|
1326
|
-
case
|
|
1327
|
-
e.return =
|
|
1326
|
+
case pt:
|
|
1327
|
+
e.return = ui(e.value, e.length);
|
|
1328
1328
|
break;
|
|
1329
|
-
case
|
|
1330
|
-
return ce([
|
|
1331
|
-
value:
|
|
1329
|
+
case oi:
|
|
1330
|
+
return ce([Ae(e, {
|
|
1331
|
+
value: S(e.value, "@", "@" + m)
|
|
1332
1332
|
})], r);
|
|
1333
|
-
case
|
|
1333
|
+
case wt:
|
|
1334
1334
|
if (e.length)
|
|
1335
|
-
return
|
|
1336
|
-
switch (
|
|
1335
|
+
return Bn(e.props, function(o) {
|
|
1336
|
+
switch (Un(o, /(::plac\w+|:read-\w+)/)) {
|
|
1337
1337
|
case ":read-only":
|
|
1338
1338
|
case ":read-write":
|
|
1339
|
-
return ce([
|
|
1340
|
-
props: [
|
|
1339
|
+
return ce([Ae(e, {
|
|
1340
|
+
props: [S(o, /:(read-\w+)/, ":" + Ge + "$1")]
|
|
1341
1341
|
})], r);
|
|
1342
1342
|
case "::placeholder":
|
|
1343
|
-
return ce([
|
|
1344
|
-
props: [
|
|
1345
|
-
}),
|
|
1346
|
-
props: [
|
|
1347
|
-
}),
|
|
1348
|
-
props: [
|
|
1343
|
+
return ce([Ae(e, {
|
|
1344
|
+
props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
|
|
1345
|
+
}), Ae(e, {
|
|
1346
|
+
props: [S(o, /:(plac\w+)/, ":" + Ge + "$1")]
|
|
1347
|
+
}), Ae(e, {
|
|
1348
|
+
props: [S(o, /:(plac\w+)/, j + "input-$1")]
|
|
1349
1349
|
})], r);
|
|
1350
1350
|
}
|
|
1351
1351
|
return "";
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
},
|
|
1354
|
+
}, sr = [or], ar = function(e) {
|
|
1355
1355
|
var i = e.key;
|
|
1356
1356
|
if (i === "css") {
|
|
1357
1357
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1358
1358
|
Array.prototype.forEach.call(n, function(g) {
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1359
|
+
var p = g.getAttribute("data-emotion");
|
|
1360
|
+
p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
|
-
var r = e.stylisPlugins ||
|
|
1363
|
+
var r = e.stylisPlugins || sr, o = {}, s, a = [];
|
|
1364
1364
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1365
1365
|
// this means we will ignore elements which don't have a space in them which
|
|
1366
1366
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1367
1367
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1368
1368
|
function(g) {
|
|
1369
|
-
for (var
|
|
1370
|
-
o[
|
|
1369
|
+
for (var p = g.getAttribute("data-emotion").split(" "), y = 1; y < p.length; y++)
|
|
1370
|
+
o[p[y]] = !0;
|
|
1371
1371
|
a.push(g);
|
|
1372
1372
|
}
|
|
1373
1373
|
);
|
|
1374
|
-
var d, l = [
|
|
1374
|
+
var d, l = [nr, rr];
|
|
1375
1375
|
{
|
|
1376
|
-
var u, h = [
|
|
1376
|
+
var u, h = [Yn, Qn(function(g) {
|
|
1377
1377
|
u.insert(g);
|
|
1378
|
-
})], c =
|
|
1379
|
-
return ce(
|
|
1378
|
+
})], c = Xn(l.concat(r, h)), f = function(p) {
|
|
1379
|
+
return ce(Wn(p), c);
|
|
1380
1380
|
};
|
|
1381
|
-
d = function(
|
|
1382
|
-
u =
|
|
1381
|
+
d = function(p, y, v, b) {
|
|
1382
|
+
u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
|
-
var
|
|
1385
|
+
var w = {
|
|
1386
1386
|
key: i,
|
|
1387
|
-
sheet: new
|
|
1387
|
+
sheet: new Pn({
|
|
1388
1388
|
key: i,
|
|
1389
1389
|
container: s,
|
|
1390
1390
|
nonce: e.nonce,
|
|
@@ -1397,9 +1397,9 @@ var Zn = function(e, i, n, r) {
|
|
|
1397
1397
|
registered: {},
|
|
1398
1398
|
insert: d
|
|
1399
1399
|
};
|
|
1400
|
-
return
|
|
1400
|
+
return w.sheet.hydrate(a), w;
|
|
1401
1401
|
};
|
|
1402
|
-
function
|
|
1402
|
+
function dr(t) {
|
|
1403
1403
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1404
1404
|
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): */
|
|
1405
1405
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1418,7 +1418,7 @@ function ir(t) {
|
|
|
1418
1418
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1419
1419
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1420
1420
|
}
|
|
1421
|
-
var
|
|
1421
|
+
var lr = {
|
|
1422
1422
|
animationIterationCount: 1,
|
|
1423
1423
|
aspectRatio: 1,
|
|
1424
1424
|
borderImageOutset: 1,
|
|
@@ -1467,18 +1467,18 @@ var nr = {
|
|
|
1467
1467
|
strokeMiterlimit: 1,
|
|
1468
1468
|
strokeOpacity: 1,
|
|
1469
1469
|
strokeWidth: 1
|
|
1470
|
-
},
|
|
1470
|
+
}, ur = /[A-Z]|^ms/g, cr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ci = function(e) {
|
|
1471
1471
|
return e.charCodeAt(1) === 45;
|
|
1472
|
-
},
|
|
1472
|
+
}, Mt = function(e) {
|
|
1473
1473
|
return e != null && typeof e != "boolean";
|
|
1474
|
-
},
|
|
1475
|
-
return
|
|
1476
|
-
}),
|
|
1474
|
+
}, Ze = /* @__PURE__ */ Zn(function(t) {
|
|
1475
|
+
return ci(t) ? t : t.replace(ur, "-$&").toLowerCase();
|
|
1476
|
+
}), $t = function(e, i) {
|
|
1477
1477
|
switch (e) {
|
|
1478
1478
|
case "animation":
|
|
1479
1479
|
case "animationName":
|
|
1480
1480
|
if (typeof i == "string")
|
|
1481
|
-
return i.replace(
|
|
1481
|
+
return i.replace(cr, function(n, r, o) {
|
|
1482
1482
|
return ne = {
|
|
1483
1483
|
name: r,
|
|
1484
1484
|
styles: o,
|
|
@@ -1486,9 +1486,9 @@ var nr = {
|
|
|
1486
1486
|
}, r;
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
|
-
return
|
|
1489
|
+
return lr[e] !== 1 && !ci(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1490
1490
|
};
|
|
1491
|
-
function
|
|
1491
|
+
function qe(t, e, i) {
|
|
1492
1492
|
if (i == null)
|
|
1493
1493
|
return "";
|
|
1494
1494
|
var n = i;
|
|
@@ -1518,7 +1518,7 @@ function Be(t, e, i) {
|
|
|
1518
1518
|
var a = o.styles + ";";
|
|
1519
1519
|
return a;
|
|
1520
1520
|
}
|
|
1521
|
-
return
|
|
1521
|
+
return hr(t, e, i);
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
var d = i;
|
|
@@ -1527,26 +1527,26 @@ function Be(t, e, i) {
|
|
|
1527
1527
|
var l = e[d];
|
|
1528
1528
|
return l !== void 0 ? l : d;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function hr(t, e, i) {
|
|
1531
1531
|
var n = "";
|
|
1532
1532
|
if (Array.isArray(i))
|
|
1533
1533
|
for (var r = 0; r < i.length; r++)
|
|
1534
|
-
n +=
|
|
1534
|
+
n += qe(t, e, i[r]) + ";";
|
|
1535
1535
|
else
|
|
1536
1536
|
for (var o in i) {
|
|
1537
1537
|
var s = i[o];
|
|
1538
1538
|
if (typeof s != "object") {
|
|
1539
1539
|
var a = s;
|
|
1540
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1540
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Mt(a) && (n += Ze(o) + ":" + $t(o, a) + ";");
|
|
1541
1541
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1542
1542
|
for (var d = 0; d < s.length; d++)
|
|
1543
|
-
|
|
1543
|
+
Mt(s[d]) && (n += Ze(o) + ":" + $t(o, s[d]) + ";");
|
|
1544
1544
|
else {
|
|
1545
|
-
var l =
|
|
1545
|
+
var l = qe(t, e, s);
|
|
1546
1546
|
switch (o) {
|
|
1547
1547
|
case "animation":
|
|
1548
1548
|
case "animationName": {
|
|
1549
|
-
n +=
|
|
1549
|
+
n += Ze(o) + ":" + l + ";";
|
|
1550
1550
|
break;
|
|
1551
1551
|
}
|
|
1552
1552
|
default:
|
|
@@ -1556,41 +1556,41 @@ function sr(t, e, i) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return n;
|
|
1558
1558
|
}
|
|
1559
|
-
var
|
|
1560
|
-
function
|
|
1559
|
+
var jt = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
|
|
1560
|
+
function et(t, e, i) {
|
|
1561
1561
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1562
1562
|
return t[0];
|
|
1563
1563
|
var n = !0, r = "";
|
|
1564
1564
|
ne = void 0;
|
|
1565
1565
|
var o = t[0];
|
|
1566
1566
|
if (o == null || o.raw === void 0)
|
|
1567
|
-
n = !1, r +=
|
|
1567
|
+
n = !1, r += qe(i, e, o);
|
|
1568
1568
|
else {
|
|
1569
1569
|
var s = o;
|
|
1570
1570
|
r += s[0];
|
|
1571
1571
|
}
|
|
1572
1572
|
for (var a = 1; a < t.length; a++)
|
|
1573
|
-
if (r +=
|
|
1573
|
+
if (r += qe(i, e, t[a]), n) {
|
|
1574
1574
|
var d = o;
|
|
1575
1575
|
r += d[a];
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1578
|
-
for (var l = "", u; (u =
|
|
1577
|
+
jt.lastIndex = 0;
|
|
1578
|
+
for (var l = "", u; (u = jt.exec(r)) !== null; )
|
|
1579
1579
|
l += "-" + u[1];
|
|
1580
|
-
var h =
|
|
1580
|
+
var h = dr(r) + l;
|
|
1581
1581
|
return {
|
|
1582
1582
|
name: h,
|
|
1583
1583
|
styles: r,
|
|
1584
1584
|
next: ne
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function hi(t, e, i) {
|
|
1588
1588
|
var n = "";
|
|
1589
1589
|
return i.split(" ").forEach(function(r) {
|
|
1590
1590
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1591
1591
|
}), n;
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var fr = function(e, i, n) {
|
|
1594
1594
|
var r = e.key + "-" + i.name;
|
|
1595
1595
|
// we only need to add the styles to the registered cache if the
|
|
1596
1596
|
// class name could be used further down
|
|
@@ -1598,8 +1598,8 @@ var ar = function(e, i, n) {
|
|
|
1598
1598
|
// so we don't have to add it to registered cache.
|
|
1599
1599
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1600
1600
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1601
|
+
}, vr = function(e, i, n) {
|
|
1602
|
+
fr(e, i);
|
|
1603
1603
|
var r = e.key + "-" + i.name;
|
|
1604
1604
|
if (e.inserted[i.name] === void 0) {
|
|
1605
1605
|
var o = i;
|
|
@@ -1608,41 +1608,41 @@ var ar = function(e, i, n) {
|
|
|
1608
1608
|
while (o !== void 0);
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
|
-
function
|
|
1611
|
+
function Ft(t, e) {
|
|
1612
1612
|
if (t.inserted[e.name] === void 0)
|
|
1613
1613
|
return t.insert("", e, t.sheet, !0);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1616
|
-
var n = [], r =
|
|
1615
|
+
function Ut(t, e, i) {
|
|
1616
|
+
var n = [], r = hi(t, n, i);
|
|
1617
1617
|
return n.length < 2 ? i : r + e(n);
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1620
|
-
var i =
|
|
1619
|
+
var gr = function(e) {
|
|
1620
|
+
var i = ar(e);
|
|
1621
1621
|
i.sheet.speedy = function(a) {
|
|
1622
1622
|
this.isSpeedy = a;
|
|
1623
1623
|
}, i.compat = !0;
|
|
1624
1624
|
var n = function() {
|
|
1625
1625
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1626
1626
|
l[u] = arguments[u];
|
|
1627
|
-
var h =
|
|
1628
|
-
return
|
|
1627
|
+
var h = et(l, i.registered, void 0);
|
|
1628
|
+
return vr(i, h), i.key + "-" + h.name;
|
|
1629
1629
|
}, r = function() {
|
|
1630
1630
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1631
1631
|
l[u] = arguments[u];
|
|
1632
|
-
var h =
|
|
1633
|
-
return
|
|
1632
|
+
var h = et(l, i.registered), c = "animation-" + h.name;
|
|
1633
|
+
return Ft(i, {
|
|
1634
1634
|
name: h.name,
|
|
1635
1635
|
styles: "@keyframes " + c + "{" + h.styles + "}"
|
|
1636
1636
|
}), c;
|
|
1637
1637
|
}, o = function() {
|
|
1638
1638
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1639
1639
|
l[u] = arguments[u];
|
|
1640
|
-
var h =
|
|
1641
|
-
|
|
1640
|
+
var h = et(l, i.registered);
|
|
1641
|
+
Ft(i, h);
|
|
1642
1642
|
}, s = function() {
|
|
1643
1643
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1644
1644
|
l[u] = arguments[u];
|
|
1645
|
-
return
|
|
1645
|
+
return Ut(i.registered, n, yr(l));
|
|
1646
1646
|
};
|
|
1647
1647
|
return {
|
|
1648
1648
|
css: n,
|
|
@@ -1659,10 +1659,10 @@ var lr = function(e) {
|
|
|
1659
1659
|
},
|
|
1660
1660
|
sheet: i.sheet,
|
|
1661
1661
|
cache: i,
|
|
1662
|
-
getRegisteredStyles:
|
|
1663
|
-
merge:
|
|
1662
|
+
getRegisteredStyles: hi.bind(null, i.registered),
|
|
1663
|
+
merge: Ut.bind(null, i.registered, n)
|
|
1664
1664
|
};
|
|
1665
|
-
},
|
|
1665
|
+
}, yr = function t(e) {
|
|
1666
1666
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1667
1667
|
var r = e[n];
|
|
1668
1668
|
if (r != null) {
|
|
@@ -1687,96 +1687,96 @@ var lr = function(e) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
return i;
|
|
1690
|
-
},
|
|
1690
|
+
}, wr = gr({
|
|
1691
1691
|
key: "css"
|
|
1692
|
-
}), ge =
|
|
1693
|
-
function
|
|
1694
|
-
|
|
1695
|
-
var i =
|
|
1692
|
+
}), ge = wr.css, ht, q, tt, Bt, Vt = 0, fi = [], L = he, Gt = L.__b, qt = L.__r, Kt = L.diffed, zt = L.__c, Ht = L.unmount, Wt = L.__;
|
|
1693
|
+
function pr(t, e) {
|
|
1694
|
+
L.__h && L.__h(q, t, Vt || e), Vt = 0;
|
|
1695
|
+
var i = q.__H || (q.__H = { __: [], __h: [] });
|
|
1696
1696
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1699
|
-
var i =
|
|
1700
|
-
return
|
|
1698
|
+
function vi(t, e) {
|
|
1699
|
+
var i = pr(ht++, 7);
|
|
1700
|
+
return _r(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
for (var t; t =
|
|
1702
|
+
function br() {
|
|
1703
|
+
for (var t; t = fi.shift(); )
|
|
1704
1704
|
if (t.__P && t.__H)
|
|
1705
1705
|
try {
|
|
1706
|
-
t.__H.__h.forEach(
|
|
1706
|
+
t.__H.__h.forEach(Ue), t.__H.__h.forEach(ft), t.__H.__h = [];
|
|
1707
1707
|
} catch (e) {
|
|
1708
|
-
t.__H.__h = [],
|
|
1708
|
+
t.__H.__h = [], L.__e(e, t.__v);
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
},
|
|
1714
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1717
|
-
var e = (
|
|
1718
|
-
e && (
|
|
1711
|
+
L.__b = function(t) {
|
|
1712
|
+
q = null, Gt && Gt(t);
|
|
1713
|
+
}, L.__ = function(t, e) {
|
|
1714
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Wt && Wt(t, e);
|
|
1715
|
+
}, L.__r = function(t) {
|
|
1716
|
+
qt && qt(t), ht = 0;
|
|
1717
|
+
var e = (q = t.__c).__H;
|
|
1718
|
+
e && (tt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
|
|
1719
1719
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1720
|
-
})) : (e.__h.forEach(
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1720
|
+
})) : (e.__h.forEach(Ue), e.__h.forEach(ft), e.__h = [], ht = 0)), tt = q;
|
|
1721
|
+
}, L.diffed = function(t) {
|
|
1722
|
+
Kt && Kt(t);
|
|
1723
1723
|
var e = t.__c;
|
|
1724
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1724
|
+
e && e.__H && (e.__H.__h.length && (fi.push(e) !== 1 && Bt === L.requestAnimationFrame || ((Bt = L.requestAnimationFrame) || Ar)(br)), e.__H.__.forEach(function(i) {
|
|
1725
1725
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1726
|
-
})),
|
|
1727
|
-
},
|
|
1726
|
+
})), tt = q = null;
|
|
1727
|
+
}, L.__c = function(t, e) {
|
|
1728
1728
|
e.some(function(i) {
|
|
1729
1729
|
try {
|
|
1730
|
-
i.__h.forEach(
|
|
1731
|
-
return !n.__ ||
|
|
1730
|
+
i.__h.forEach(Ue), i.__h = i.__h.filter(function(n) {
|
|
1731
|
+
return !n.__ || ft(n);
|
|
1732
1732
|
});
|
|
1733
1733
|
} catch (n) {
|
|
1734
1734
|
e.some(function(r) {
|
|
1735
1735
|
r.__h && (r.__h = []);
|
|
1736
|
-
}), e = [],
|
|
1736
|
+
}), e = [], L.__e(n, i.__v);
|
|
1737
1737
|
}
|
|
1738
|
-
}),
|
|
1739
|
-
},
|
|
1740
|
-
|
|
1738
|
+
}), zt && zt(t, e);
|
|
1739
|
+
}, L.unmount = function(t) {
|
|
1740
|
+
Ht && Ht(t);
|
|
1741
1741
|
var e, i = t.__c;
|
|
1742
1742
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1743
1743
|
try {
|
|
1744
|
-
|
|
1744
|
+
Ue(n);
|
|
1745
1745
|
} catch (r) {
|
|
1746
1746
|
e = r;
|
|
1747
1747
|
}
|
|
1748
|
-
}), i.__H = void 0, e &&
|
|
1748
|
+
}), i.__H = void 0, e && L.__e(e, i.__v));
|
|
1749
1749
|
};
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1750
|
+
var Jt = typeof requestAnimationFrame == "function";
|
|
1751
|
+
function Ar(t) {
|
|
1752
1752
|
var e, i = function() {
|
|
1753
|
-
clearTimeout(n),
|
|
1753
|
+
clearTimeout(n), Jt && cancelAnimationFrame(e), setTimeout(t);
|
|
1754
1754
|
}, n = setTimeout(i, 100);
|
|
1755
|
-
|
|
1755
|
+
Jt && (e = requestAnimationFrame(i));
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
var e =
|
|
1759
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1757
|
+
function Ue(t) {
|
|
1758
|
+
var e = q, i = t.__c;
|
|
1759
|
+
typeof i == "function" && (t.__c = void 0, i()), q = e;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
var e =
|
|
1763
|
-
t.__c = t.__(),
|
|
1761
|
+
function ft(t) {
|
|
1762
|
+
var e = q;
|
|
1763
|
+
t.__c = t.__(), q = e;
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function _r(t, e) {
|
|
1766
1766
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1767
1767
|
return i !== t[n];
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1770
|
+
var mr = Symbol.for("preact-signals");
|
|
1771
|
+
function Xe() {
|
|
1772
1772
|
if (re > 1)
|
|
1773
1773
|
re--;
|
|
1774
1774
|
else {
|
|
1775
|
-
for (var t, e = !1;
|
|
1776
|
-
var i =
|
|
1777
|
-
for (
|
|
1775
|
+
for (var t, e = !1; _e !== void 0; ) {
|
|
1776
|
+
var i = _e;
|
|
1777
|
+
for (_e = void 0, vt++; i !== void 0; ) {
|
|
1778
1778
|
var n = i.o;
|
|
1779
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1779
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && yi(i))
|
|
1780
1780
|
try {
|
|
1781
1781
|
i.c();
|
|
1782
1782
|
} catch (r) {
|
|
@@ -1785,22 +1785,22 @@ function We() {
|
|
|
1785
1785
|
i = n;
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
if (
|
|
1788
|
+
if (vt = 0, re--, e)
|
|
1789
1789
|
throw t;
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function D(t) {
|
|
1793
1793
|
if (re > 0)
|
|
1794
1794
|
return t();
|
|
1795
1795
|
re++;
|
|
1796
1796
|
try {
|
|
1797
1797
|
return t();
|
|
1798
1798
|
} finally {
|
|
1799
|
-
|
|
1799
|
+
Xe();
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
|
-
var k = void 0,
|
|
1803
|
-
function
|
|
1802
|
+
var k = void 0, _e = void 0, re = 0, vt = 0, Ke = 0;
|
|
1803
|
+
function gi(t) {
|
|
1804
1804
|
if (k !== void 0) {
|
|
1805
1805
|
var e = t.n;
|
|
1806
1806
|
if (e === void 0 || e.t !== k)
|
|
@@ -1809,23 +1809,23 @@ function ci(t) {
|
|
|
1809
1809
|
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function M(t) {
|
|
1813
1813
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1815
|
+
M.prototype.brand = mr;
|
|
1816
|
+
M.prototype.h = function() {
|
|
1817
1817
|
return !0;
|
|
1818
1818
|
};
|
|
1819
|
-
|
|
1819
|
+
M.prototype.S = function(t) {
|
|
1820
1820
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1821
1821
|
};
|
|
1822
|
-
|
|
1822
|
+
M.prototype.U = function(t) {
|
|
1823
1823
|
if (this.t !== void 0) {
|
|
1824
1824
|
var e = t.e, i = t.x;
|
|
1825
1825
|
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);
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
|
|
1828
|
+
M.prototype.subscribe = function(t) {
|
|
1829
1829
|
var e = this;
|
|
1830
1830
|
return xe(function() {
|
|
1831
1831
|
var i = e.value, n = k;
|
|
@@ -1837,16 +1837,16 @@ L.prototype.subscribe = function(t) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
});
|
|
1839
1839
|
};
|
|
1840
|
-
|
|
1840
|
+
M.prototype.valueOf = function() {
|
|
1841
1841
|
return this.value;
|
|
1842
1842
|
};
|
|
1843
|
-
|
|
1843
|
+
M.prototype.toString = function() {
|
|
1844
1844
|
return this.value + "";
|
|
1845
1845
|
};
|
|
1846
|
-
|
|
1846
|
+
M.prototype.toJSON = function() {
|
|
1847
1847
|
return this.value;
|
|
1848
1848
|
};
|
|
1849
|
-
|
|
1849
|
+
M.prototype.peek = function() {
|
|
1850
1850
|
var t = k;
|
|
1851
1851
|
k = void 0;
|
|
1852
1852
|
try {
|
|
@@ -1855,32 +1855,32 @@ L.prototype.peek = function() {
|
|
|
1855
1855
|
k = t;
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
|
-
Object.defineProperty(
|
|
1859
|
-
var t =
|
|
1858
|
+
Object.defineProperty(M.prototype, "value", { get: function() {
|
|
1859
|
+
var t = gi(this);
|
|
1860
1860
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1861
1861
|
}, set: function(t) {
|
|
1862
1862
|
if (t !== this.v) {
|
|
1863
|
-
if (
|
|
1863
|
+
if (vt > 100)
|
|
1864
1864
|
throw new Error("Cycle detected");
|
|
1865
|
-
this.v = t, this.i++,
|
|
1865
|
+
this.v = t, this.i++, Ke++, re++;
|
|
1866
1866
|
try {
|
|
1867
1867
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1868
1868
|
e.t.N();
|
|
1869
1869
|
} finally {
|
|
1870
|
-
|
|
1870
|
+
Xe();
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
} });
|
|
1874
|
-
function
|
|
1875
|
-
return new
|
|
1874
|
+
function E(t) {
|
|
1875
|
+
return new M(t);
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function yi(t) {
|
|
1878
1878
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1879
1879
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1880
1880
|
return !0;
|
|
1881
1881
|
return !1;
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function wi(t) {
|
|
1884
1884
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1885
1885
|
var i = e.S.n;
|
|
1886
1886
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1889,7 +1889,7 @@ function fi(t) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function pi(t) {
|
|
1893
1893
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1894
1894
|
var n = e.p;
|
|
1895
1895
|
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;
|
|
@@ -1897,24 +1897,24 @@ function vi(t) {
|
|
|
1897
1897
|
t.s = i;
|
|
1898
1898
|
}
|
|
1899
1899
|
function ye(t) {
|
|
1900
|
-
|
|
1900
|
+
M.call(this, void 0), this.x = t, this.s = void 0, this.g = Ke - 1, this.f = 4;
|
|
1901
1901
|
}
|
|
1902
|
-
(ye.prototype = new
|
|
1902
|
+
(ye.prototype = new M()).h = function() {
|
|
1903
1903
|
if (this.f &= -3, 1 & this.f)
|
|
1904
1904
|
return !1;
|
|
1905
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1905
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ke))
|
|
1906
1906
|
return !0;
|
|
1907
|
-
if (this.g =
|
|
1907
|
+
if (this.g = Ke, this.f |= 1, this.i > 0 && !yi(this))
|
|
1908
1908
|
return this.f &= -2, !0;
|
|
1909
1909
|
var t = k;
|
|
1910
1910
|
try {
|
|
1911
|
-
|
|
1911
|
+
wi(this), k = this;
|
|
1912
1912
|
var e = this.x();
|
|
1913
1913
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1914
1914
|
} catch (i) {
|
|
1915
1915
|
this.v = i, this.f |= 16, this.i++;
|
|
1916
1916
|
}
|
|
1917
|
-
return k = t,
|
|
1917
|
+
return k = t, pi(this), this.f &= -2, !0;
|
|
1918
1918
|
};
|
|
1919
1919
|
ye.prototype.S = function(t) {
|
|
1920
1920
|
if (this.t === void 0) {
|
|
@@ -1922,10 +1922,10 @@ ye.prototype.S = function(t) {
|
|
|
1922
1922
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1923
1923
|
e.S.S(e);
|
|
1924
1924
|
}
|
|
1925
|
-
|
|
1925
|
+
M.prototype.S.call(this, t);
|
|
1926
1926
|
};
|
|
1927
1927
|
ye.prototype.U = function(t) {
|
|
1928
|
-
if (this.t !== void 0 && (
|
|
1928
|
+
if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
|
|
1929
1929
|
this.f &= -33;
|
|
1930
1930
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1931
1931
|
e.S.U(e);
|
|
@@ -1941,7 +1941,7 @@ ye.prototype.N = function() {
|
|
|
1941
1941
|
Object.defineProperty(ye.prototype, "value", { get: function() {
|
|
1942
1942
|
if (1 & this.f)
|
|
1943
1943
|
throw new Error("Cycle detected");
|
|
1944
|
-
var t =
|
|
1944
|
+
var t = gi(this);
|
|
1945
1945
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1946
1946
|
throw this.v;
|
|
1947
1947
|
return this.v;
|
|
@@ -1949,7 +1949,7 @@ Object.defineProperty(ye.prototype, "value", { get: function() {
|
|
|
1949
1949
|
function me(t) {
|
|
1950
1950
|
return new ye(t);
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function bi(t) {
|
|
1953
1953
|
var e = t.u;
|
|
1954
1954
|
if (t.u = void 0, typeof e == "function") {
|
|
1955
1955
|
re++;
|
|
@@ -1958,21 +1958,21 @@ function gi(t) {
|
|
|
1958
1958
|
try {
|
|
1959
1959
|
e();
|
|
1960
1960
|
} catch (n) {
|
|
1961
|
-
throw t.f &= -2, t.f |= 8,
|
|
1961
|
+
throw t.f &= -2, t.f |= 8, At(t), n;
|
|
1962
1962
|
} finally {
|
|
1963
|
-
k = i,
|
|
1963
|
+
k = i, Xe();
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function At(t) {
|
|
1968
1968
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1969
1969
|
e.S.U(e);
|
|
1970
|
-
t.x = void 0, t.s = void 0,
|
|
1970
|
+
t.x = void 0, t.s = void 0, bi(t);
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function Sr(t) {
|
|
1973
1973
|
if (k !== this)
|
|
1974
1974
|
throw new Error("Out-of-order effect");
|
|
1975
|
-
|
|
1975
|
+
pi(this), k = t, this.f &= -2, 8 & this.f && At(this), Xe();
|
|
1976
1976
|
}
|
|
1977
1977
|
function Re(t) {
|
|
1978
1978
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -1991,15 +1991,15 @@ Re.prototype.c = function() {
|
|
|
1991
1991
|
Re.prototype.S = function() {
|
|
1992
1992
|
if (1 & this.f)
|
|
1993
1993
|
throw new Error("Cycle detected");
|
|
1994
|
-
this.f |= 1, this.f &= -9,
|
|
1994
|
+
this.f |= 1, this.f &= -9, bi(this), wi(this), re++;
|
|
1995
1995
|
var t = k;
|
|
1996
|
-
return k = this,
|
|
1996
|
+
return k = this, Sr.bind(this, t);
|
|
1997
1997
|
};
|
|
1998
1998
|
Re.prototype.N = function() {
|
|
1999
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
1999
|
+
2 & this.f || (this.f |= 2, this.o = _e, _e = this);
|
|
2000
2000
|
};
|
|
2001
2001
|
Re.prototype.d = function() {
|
|
2002
|
-
this.f |= 8, 1 & this.f ||
|
|
2002
|
+
this.f |= 8, 1 & this.f || At(this);
|
|
2003
2003
|
};
|
|
2004
2004
|
function xe(t) {
|
|
2005
2005
|
var e = new Re(t);
|
|
@@ -2010,21 +2010,21 @@ function xe(t) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
return e.d.bind(e);
|
|
2012
2012
|
}
|
|
2013
|
-
var
|
|
2013
|
+
var Ai, it, _i = [];
|
|
2014
2014
|
xe(function() {
|
|
2015
|
-
|
|
2015
|
+
Ai = this.N;
|
|
2016
2016
|
})();
|
|
2017
|
-
function
|
|
2017
|
+
function we(t, e) {
|
|
2018
2018
|
he[t] = e.bind(null, he[t] || function() {
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2022
|
-
|
|
2021
|
+
function ze(t) {
|
|
2022
|
+
it && it(), it = t && t.S();
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var e = this, i = t.data, n =
|
|
2024
|
+
function mi(t) {
|
|
2025
|
+
var e = this, i = t.data, n = Si(i);
|
|
2026
2026
|
n.value = i;
|
|
2027
|
-
var r =
|
|
2027
|
+
var r = vi(function() {
|
|
2028
2028
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2029
2029
|
if (d.__c) {
|
|
2030
2030
|
d.__c.__$f |= 4;
|
|
@@ -2034,9 +2034,9 @@ function wi(t) {
|
|
|
2034
2034
|
var f = n.value.value;
|
|
2035
2035
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2036
2036
|
}), u = me(function() {
|
|
2037
|
-
return !Array.isArray(l.value) &&
|
|
2037
|
+
return !Array.isArray(l.value) && !$i(l.value);
|
|
2038
2038
|
}), h = xe(function() {
|
|
2039
|
-
if (this.N =
|
|
2039
|
+
if (this.N = Ei, u.value) {
|
|
2040
2040
|
var f = l.value;
|
|
2041
2041
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2042
2042
|
}
|
|
@@ -2047,23 +2047,23 @@ function wi(t) {
|
|
|
2047
2047
|
}, []), o = r[0], s = r[1];
|
|
2048
2048
|
return o.value ? s.peek() : s.value;
|
|
2049
2049
|
}
|
|
2050
|
-
|
|
2051
|
-
Object.defineProperties(
|
|
2050
|
+
mi.displayName = "_st";
|
|
2051
|
+
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: mi }, props: { configurable: !0, get: function() {
|
|
2052
2052
|
return { data: this };
|
|
2053
2053
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2054
|
-
|
|
2054
|
+
we("__b", function(t, e) {
|
|
2055
2055
|
if (typeof e.type == "string") {
|
|
2056
2056
|
var i, n = e.props;
|
|
2057
2057
|
for (var r in n)
|
|
2058
2058
|
if (r !== "children") {
|
|
2059
2059
|
var o = n[r];
|
|
2060
|
-
o instanceof
|
|
2060
|
+
o instanceof M && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
t(e);
|
|
2064
2064
|
});
|
|
2065
|
-
|
|
2066
|
-
|
|
2065
|
+
we("__r", function(t, e) {
|
|
2066
|
+
ze();
|
|
2067
2067
|
var i, n = e.__c;
|
|
2068
2068
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2069
2069
|
var o;
|
|
@@ -2072,13 +2072,13 @@ pe("__r", function(t, e) {
|
|
|
2072
2072
|
}), o.c = function() {
|
|
2073
2073
|
n.__$f |= 1, n.setState({});
|
|
2074
2074
|
}, o;
|
|
2075
|
-
}())),
|
|
2075
|
+
}())), ze(i), t(e);
|
|
2076
2076
|
});
|
|
2077
|
-
|
|
2078
|
-
|
|
2077
|
+
we("__e", function(t, e, i, n) {
|
|
2078
|
+
ze(), t(e, i, n);
|
|
2079
2079
|
});
|
|
2080
|
-
|
|
2081
|
-
|
|
2080
|
+
we("diffed", function(t, e) {
|
|
2081
|
+
ze();
|
|
2082
2082
|
var i;
|
|
2083
2083
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2084
2084
|
var n = e.__np, r = e.props;
|
|
@@ -2093,23 +2093,23 @@ pe("diffed", function(t, e) {
|
|
|
2093
2093
|
o = {}, i.U = o;
|
|
2094
2094
|
for (var d in n) {
|
|
2095
2095
|
var l = o[d], u = n[d];
|
|
2096
|
-
l === void 0 ? (l =
|
|
2096
|
+
l === void 0 ? (l = Er(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
2100
|
t(e);
|
|
2101
2101
|
});
|
|
2102
|
-
function
|
|
2103
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2102
|
+
function Er(t, e, i, n) {
|
|
2103
|
+
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2104
2104
|
return { o: function(s, a) {
|
|
2105
2105
|
o.value = s, n = a;
|
|
2106
2106
|
}, d: xe(function() {
|
|
2107
|
-
this.N =
|
|
2107
|
+
this.N = Ei;
|
|
2108
2108
|
var s = o.value.value;
|
|
2109
2109
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2110
2110
|
}) };
|
|
2111
2111
|
}
|
|
2112
|
-
|
|
2112
|
+
we("unmount", function(t, e) {
|
|
2113
2113
|
if (typeof e.type == "string") {
|
|
2114
2114
|
var i = e.__e;
|
|
2115
2115
|
if (i) {
|
|
@@ -2131,10 +2131,10 @@ pe("unmount", function(t, e) {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
t(e);
|
|
2133
2133
|
});
|
|
2134
|
-
|
|
2134
|
+
we("__h", function(t, e, i, n) {
|
|
2135
2135
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2136
2136
|
});
|
|
2137
|
-
|
|
2137
|
+
Mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2138
2138
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2139
2139
|
for (var r in e)
|
|
2140
2140
|
return !0;
|
|
@@ -2152,26 +2152,26 @@ Ti.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2152
2152
|
return !0;
|
|
2153
2153
|
return !1;
|
|
2154
2154
|
};
|
|
2155
|
-
function
|
|
2156
|
-
return
|
|
2157
|
-
return
|
|
2155
|
+
function Si(t) {
|
|
2156
|
+
return vi(function() {
|
|
2157
|
+
return E(t);
|
|
2158
2158
|
}, []);
|
|
2159
2159
|
}
|
|
2160
|
-
var
|
|
2160
|
+
var kr = function(t) {
|
|
2161
2161
|
queueMicrotask(function() {
|
|
2162
2162
|
queueMicrotask(t);
|
|
2163
2163
|
});
|
|
2164
2164
|
};
|
|
2165
|
-
function
|
|
2166
|
-
|
|
2167
|
-
for (var t; t =
|
|
2168
|
-
|
|
2165
|
+
function Ir() {
|
|
2166
|
+
D(function() {
|
|
2167
|
+
for (var t; t = _i.shift(); )
|
|
2168
|
+
Ai.call(t);
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2172
|
-
|
|
2171
|
+
function Ei() {
|
|
2172
|
+
_i.push(this) === 1 && (he.requestAnimationFrame || kr)(Ir);
|
|
2173
2173
|
}
|
|
2174
|
-
const
|
|
2174
|
+
const F = ge`
|
|
2175
2175
|
inset: 0;
|
|
2176
2176
|
clear: none;
|
|
2177
2177
|
float: none;
|
|
@@ -2190,11 +2190,11 @@ const M = ge`
|
|
|
2190
2190
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2191
2191
|
'Helvetica Neue', sans-serif;
|
|
2192
2192
|
`;
|
|
2193
|
-
function
|
|
2194
|
-
const i =
|
|
2195
|
-
|
|
2193
|
+
function Rr(t, e) {
|
|
2194
|
+
const i = ji(t);
|
|
2195
|
+
Fi(() => {
|
|
2196
2196
|
i.current = t;
|
|
2197
|
-
}, [t]),
|
|
2197
|
+
}, [t]), He(() => {
|
|
2198
2198
|
if (e === null)
|
|
2199
2199
|
return;
|
|
2200
2200
|
const n = setInterval(() => {
|
|
@@ -2205,21 +2205,21 @@ function Ar(t, e) {
|
|
|
2205
2205
|
};
|
|
2206
2206
|
}, [e]);
|
|
2207
2207
|
}
|
|
2208
|
-
var
|
|
2208
|
+
var xr = 0;
|
|
2209
2209
|
function _(t, e, i, n, r, o) {
|
|
2210
2210
|
e || (e = {});
|
|
2211
2211
|
var s, a, d = e;
|
|
2212
2212
|
if ("ref" in d)
|
|
2213
2213
|
for (a in d = {}, e)
|
|
2214
2214
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2215
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2215
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --xr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2216
2216
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2217
2217
|
for (a in s)
|
|
2218
2218
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2219
2219
|
return he.vnode && he.vnode(l), l;
|
|
2220
2220
|
}
|
|
2221
|
-
const
|
|
2222
|
-
${
|
|
2221
|
+
const Or = ge`
|
|
2222
|
+
${F}
|
|
2223
2223
|
position: fixed;
|
|
2224
2224
|
top: 0;
|
|
2225
2225
|
left: 0;
|
|
@@ -2232,7 +2232,7 @@ const Sr = ge`
|
|
|
2232
2232
|
height: 100vh;
|
|
2233
2233
|
|
|
2234
2234
|
.card-wrapper {
|
|
2235
|
-
${
|
|
2235
|
+
${F}
|
|
2236
2236
|
position: relative;
|
|
2237
2237
|
display: flex;
|
|
2238
2238
|
flex-direction: column;
|
|
@@ -2246,7 +2246,7 @@ const Sr = ge`
|
|
|
2246
2246
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2247
2247
|
|
|
2248
2248
|
.body {
|
|
2249
|
-
${
|
|
2249
|
+
${F}
|
|
2250
2250
|
display: flex;
|
|
2251
2251
|
flex-direction: column;
|
|
2252
2252
|
width: 100%;
|
|
@@ -2255,7 +2255,7 @@ const Sr = ge`
|
|
|
2255
2255
|
box-sizing: border-box;
|
|
2256
2256
|
justify-content: center;
|
|
2257
2257
|
.title {
|
|
2258
|
-
${
|
|
2258
|
+
${F}
|
|
2259
2259
|
text-align: center;
|
|
2260
2260
|
font-size: 16px;
|
|
2261
2261
|
font-weight: bold;
|
|
@@ -2263,7 +2263,7 @@ const Sr = ge`
|
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
2265
|
.content {
|
|
2266
|
-
${
|
|
2266
|
+
${F}
|
|
2267
2267
|
font-size: 14px;
|
|
2268
2268
|
color: #888;
|
|
2269
2269
|
margin-bottom: 16px;
|
|
@@ -2271,13 +2271,13 @@ const Sr = ge`
|
|
|
2271
2271
|
}
|
|
2272
2272
|
|
|
2273
2273
|
.footer {
|
|
2274
|
-
${
|
|
2274
|
+
${F}
|
|
2275
2275
|
display: flex;
|
|
2276
2276
|
align-items: center;
|
|
2277
2277
|
width: 100%;
|
|
2278
2278
|
height: 40px;
|
|
2279
2279
|
button {
|
|
2280
|
-
${
|
|
2280
|
+
${F}
|
|
2281
2281
|
border: none;
|
|
2282
2282
|
outline: none;
|
|
2283
2283
|
height: 100%;
|
|
@@ -2293,56 +2293,56 @@ const Sr = ge`
|
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
2295
|
}
|
|
2296
|
-
`, W =
|
|
2296
|
+
`, W = E(null), gt = E(""), yt = E(""), Be = E(!1), Tr = () => {
|
|
2297
2297
|
var t;
|
|
2298
2298
|
(t = W.value) == null || t.call(W, !1);
|
|
2299
|
-
},
|
|
2299
|
+
}, Cr = () => {
|
|
2300
2300
|
var t;
|
|
2301
2301
|
(t = W.value) == null || t.call(W, !0);
|
|
2302
|
-
},
|
|
2302
|
+
}, Dr = async (t) => {
|
|
2303
2303
|
let {
|
|
2304
2304
|
title: e,
|
|
2305
2305
|
content: i
|
|
2306
2306
|
} = t;
|
|
2307
|
-
return W.value && (W.value(!1),
|
|
2308
|
-
W.value = null,
|
|
2309
|
-
})),
|
|
2310
|
-
|
|
2307
|
+
return W.value && (W.value(!1), D(() => {
|
|
2308
|
+
W.value = null, Be.value = !1;
|
|
2309
|
+
})), D(() => {
|
|
2310
|
+
gt.value = e || "", yt.value = i || "", Be.value = !0;
|
|
2311
2311
|
}), new Promise((n) => {
|
|
2312
2312
|
W.value = (r) => {
|
|
2313
|
-
|
|
2314
|
-
W.value = null,
|
|
2313
|
+
D(() => {
|
|
2314
|
+
W.value = null, Be.value = !1, gt.value = "", yt.value = "";
|
|
2315
2315
|
}), n(r);
|
|
2316
2316
|
};
|
|
2317
2317
|
});
|
|
2318
|
-
},
|
|
2319
|
-
className:
|
|
2318
|
+
}, Lr = () => Be.value ? _("div", {
|
|
2319
|
+
className: Or,
|
|
2320
2320
|
children: _("div", {
|
|
2321
2321
|
className: "card-wrapper",
|
|
2322
2322
|
children: [_("div", {
|
|
2323
2323
|
className: "body",
|
|
2324
2324
|
children: [_("div", {
|
|
2325
2325
|
className: "title",
|
|
2326
|
-
children:
|
|
2326
|
+
children: gt.value
|
|
2327
2327
|
}), _("div", {
|
|
2328
2328
|
className: "content",
|
|
2329
|
-
children:
|
|
2329
|
+
children: yt.value
|
|
2330
2330
|
})]
|
|
2331
2331
|
}), _("div", {
|
|
2332
2332
|
className: "footer",
|
|
2333
2333
|
children: [_("button", {
|
|
2334
|
-
onClick:
|
|
2334
|
+
onClick: Tr,
|
|
2335
2335
|
className: "cancel-btn",
|
|
2336
2336
|
children: "Cancel"
|
|
2337
2337
|
}), _("button", {
|
|
2338
|
-
onClick:
|
|
2338
|
+
onClick: Cr,
|
|
2339
2339
|
className: "confirm-btm",
|
|
2340
2340
|
children: "Confirm"
|
|
2341
2341
|
})]
|
|
2342
2342
|
})]
|
|
2343
2343
|
})
|
|
2344
|
-
}) : null,
|
|
2345
|
-
${
|
|
2344
|
+
}) : null, Pr = ge`
|
|
2345
|
+
${F}
|
|
2346
2346
|
position: relative;
|
|
2347
2347
|
display: flex;
|
|
2348
2348
|
align-items: center;
|
|
@@ -2360,7 +2360,7 @@ const Sr = ge`
|
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
2362
|
button {
|
|
2363
|
-
${
|
|
2363
|
+
${F}
|
|
2364
2364
|
padding: 0 20px;
|
|
2365
2365
|
height: 30px;
|
|
2366
2366
|
line-height: 30px;
|
|
@@ -2374,18 +2374,18 @@ const Sr = ge`
|
|
|
2374
2374
|
cursor: not-allowed;
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
|
-
`,
|
|
2378
|
-
const t =
|
|
2377
|
+
`, Nr = () => {
|
|
2378
|
+
const t = E(!1), e = E(null);
|
|
2379
2379
|
return {
|
|
2380
2380
|
timerPaused: t,
|
|
2381
2381
|
startTimestamp: e,
|
|
2382
2382
|
startTimer: () => {
|
|
2383
|
-
|
|
2383
|
+
D(() => {
|
|
2384
2384
|
e.value = Date.now(), t.value = !1;
|
|
2385
2385
|
});
|
|
2386
2386
|
}
|
|
2387
2387
|
};
|
|
2388
|
-
},
|
|
2388
|
+
}, Mr = (t) => {
|
|
2389
2389
|
let {
|
|
2390
2390
|
countdown: e = 0,
|
|
2391
2391
|
mode: i,
|
|
@@ -2395,9 +2395,9 @@ const Sr = ge`
|
|
|
2395
2395
|
const {
|
|
2396
2396
|
startTimestamp: o,
|
|
2397
2397
|
timerPaused: s
|
|
2398
|
-
} = r, a =
|
|
2399
|
-
|
|
2400
|
-
a.value > 0 ? a.value -= 1 :
|
|
2398
|
+
} = r, a = Si(e);
|
|
2399
|
+
Rr(() => {
|
|
2400
|
+
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2401
2401
|
s.value = !0, a.value = 0;
|
|
2402
2402
|
});
|
|
2403
2403
|
}, s.value ? null : 1e3);
|
|
@@ -2414,23 +2414,23 @@ const Sr = ge`
|
|
|
2414
2414
|
const f = Date.now() - o.value;
|
|
2415
2415
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2416
2416
|
}), u = me(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2417
|
-
if (s.value = !0, !await
|
|
2417
|
+
if (s.value = !0, !await Dr({
|
|
2418
2418
|
title: "Are you sure?",
|
|
2419
2419
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2420
2420
|
})) {
|
|
2421
2421
|
s.value = !1;
|
|
2422
2422
|
return;
|
|
2423
2423
|
}
|
|
2424
|
-
n("dismiss"),
|
|
2424
|
+
n("dismiss"), D(() => {
|
|
2425
2425
|
s.value = !0, a.value = 0, o.value = null;
|
|
2426
2426
|
});
|
|
2427
2427
|
}, c = () => {
|
|
2428
|
-
n("viewed"),
|
|
2428
|
+
n("viewed"), D(() => {
|
|
2429
2429
|
s.value = !0, a.value = 0, o.value = null;
|
|
2430
2430
|
});
|
|
2431
2431
|
};
|
|
2432
2432
|
return _("div", {
|
|
2433
|
-
className:
|
|
2433
|
+
className: Pr,
|
|
2434
2434
|
children: [a.value > 0 && i !== "interstitial" && _("div", {
|
|
2435
2435
|
className: "timer",
|
|
2436
2436
|
children: [a.value, "s"]
|
|
@@ -2450,8 +2450,8 @@ const Sr = ge`
|
|
|
2450
2450
|
})
|
|
2451
2451
|
})]
|
|
2452
2452
|
});
|
|
2453
|
-
},
|
|
2454
|
-
const t =
|
|
2453
|
+
}, ki = () => {
|
|
2454
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2455
2455
|
return {
|
|
2456
2456
|
afterAd: t,
|
|
2457
2457
|
adDismissed: e,
|
|
@@ -2463,8 +2463,8 @@ const Sr = ge`
|
|
|
2463
2463
|
src: a,
|
|
2464
2464
|
mode: d
|
|
2465
2465
|
};
|
|
2466
|
-
},
|
|
2467
|
-
${
|
|
2466
|
+
}, $r = ge`
|
|
2467
|
+
${F}
|
|
2468
2468
|
position: fixed;
|
|
2469
2469
|
z-index: 2147483647;
|
|
2470
2470
|
background: white;
|
|
@@ -2474,7 +2474,7 @@ const Sr = ge`
|
|
|
2474
2474
|
flex-direction: column;
|
|
2475
2475
|
|
|
2476
2476
|
iframe {
|
|
2477
|
-
${
|
|
2477
|
+
${F}
|
|
2478
2478
|
flex: 1;
|
|
2479
2479
|
position: relative;
|
|
2480
2480
|
display: block;
|
|
@@ -2482,7 +2482,7 @@ const Sr = ge`
|
|
|
2482
2482
|
width: 100%;
|
|
2483
2483
|
height: 100%;
|
|
2484
2484
|
}
|
|
2485
|
-
`,
|
|
2485
|
+
`, Ii = (t) => {
|
|
2486
2486
|
let {
|
|
2487
2487
|
state: e
|
|
2488
2488
|
} = t;
|
|
@@ -2496,39 +2496,39 @@ const Sr = ge`
|
|
|
2496
2496
|
countdown: d,
|
|
2497
2497
|
src: l,
|
|
2498
2498
|
mode: u
|
|
2499
|
-
} = e, h =
|
|
2500
|
-
var y,
|
|
2501
|
-
a.value = !1,
|
|
2502
|
-
}, g =
|
|
2503
|
-
var
|
|
2504
|
-
c || (f(!0), (
|
|
2499
|
+
} = e, h = Ui(() => Nr(), []), [c, f] = Yt(!1), w = (p) => {
|
|
2500
|
+
var y, v, b, T;
|
|
2501
|
+
a.value = !1, p === "dismiss" ? (y = n.value) == null || y.call(n) : p === "viewed" && ((v = r.value) == null || v.call(r)), (b = i.value) == null || b.call(i), (T = o.value) == null || T.call(o), f(!1);
|
|
2502
|
+
}, g = Bi(() => {
|
|
2503
|
+
var p;
|
|
2504
|
+
c || (f(!0), (p = s.value) == null || p.call(s));
|
|
2505
2505
|
}, [c]);
|
|
2506
|
-
return
|
|
2506
|
+
return He(() => {
|
|
2507
2507
|
c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2508
2508
|
h.startTimer();
|
|
2509
2509
|
}, 100);
|
|
2510
2510
|
}, [c, u.value]), a.value ? _("div", {
|
|
2511
|
-
className:
|
|
2512
|
-
children: [_(
|
|
2511
|
+
className: $r,
|
|
2512
|
+
children: [_(Mr, {
|
|
2513
2513
|
mode: u.value,
|
|
2514
|
-
onClose:
|
|
2514
|
+
onClose: w,
|
|
2515
2515
|
countdown: d.value,
|
|
2516
2516
|
state: h
|
|
2517
2517
|
}), a.value && _("iframe", {
|
|
2518
2518
|
src: l.value,
|
|
2519
2519
|
onLoad: g,
|
|
2520
2520
|
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"
|
|
2521
|
-
}), _(
|
|
2521
|
+
}), _(Lr, {})]
|
|
2522
2522
|
}) : null;
|
|
2523
2523
|
};
|
|
2524
2524
|
function Z(t, e, i) {
|
|
2525
|
-
return (e =
|
|
2525
|
+
return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2528
|
-
var e =
|
|
2527
|
+
function jr(t) {
|
|
2528
|
+
var e = Fr(t, "string");
|
|
2529
2529
|
return typeof e == "symbol" ? e : e + "";
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function Fr(t, e) {
|
|
2532
2532
|
if (typeof t != "object" || !t)
|
|
2533
2533
|
return t;
|
|
2534
2534
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2540,13 +2540,13 @@ function Lr(t, e) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
return (e === "string" ? String : Number)(t);
|
|
2542
2542
|
}
|
|
2543
|
-
class
|
|
2543
|
+
class Ur {
|
|
2544
2544
|
constructor(e, i) {
|
|
2545
|
-
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state",
|
|
2545
|
+
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", ki()), this.context = e, this.initParams = i;
|
|
2546
2546
|
}
|
|
2547
2547
|
async init() {
|
|
2548
2548
|
var e;
|
|
2549
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(
|
|
2549
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Ii, {
|
|
2550
2550
|
state: this.state
|
|
2551
2551
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2552
2552
|
}
|
|
@@ -2608,7 +2608,7 @@ class Pr {
|
|
|
2608
2608
|
breakStatus: "viewed"
|
|
2609
2609
|
});
|
|
2610
2610
|
};
|
|
2611
|
-
|
|
2611
|
+
D(() => {
|
|
2612
2612
|
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = c, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2613
2613
|
});
|
|
2614
2614
|
break;
|
|
@@ -2631,17 +2631,17 @@ class Pr {
|
|
|
2631
2631
|
}, f = () => {
|
|
2632
2632
|
var y;
|
|
2633
2633
|
this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
|
|
2634
|
-
},
|
|
2634
|
+
}, w = () => {
|
|
2635
2635
|
var y;
|
|
2636
2636
|
this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
|
|
2637
2637
|
}, g = () => {
|
|
2638
2638
|
var y;
|
|
2639
2639
|
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
|
|
2640
2640
|
};
|
|
2641
|
-
|
|
2642
|
-
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2641
|
+
D(() => {
|
|
2642
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = g;
|
|
2643
2643
|
});
|
|
2644
|
-
const
|
|
2644
|
+
const p = () => {
|
|
2645
2645
|
var y;
|
|
2646
2646
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2647
2647
|
(y = e.adBreakDone) == null || y.call(e, {
|
|
@@ -2652,12 +2652,12 @@ class Pr {
|
|
|
2652
2652
|
});
|
|
2653
2653
|
return;
|
|
2654
2654
|
}
|
|
2655
|
-
this.adsIsShowing = !0,
|
|
2656
|
-
var
|
|
2657
|
-
this.state.countdown.value = (
|
|
2655
|
+
this.adsIsShowing = !0, D(() => {
|
|
2656
|
+
var v;
|
|
2657
|
+
this.state.countdown.value = (v = i.params.countdown) != null ? v : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2658
2658
|
});
|
|
2659
2659
|
};
|
|
2660
|
-
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e,
|
|
2660
|
+
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, p);
|
|
2661
2661
|
break;
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
@@ -2670,11 +2670,11 @@ window.addEventListener("message", (t) => {
|
|
|
2670
2670
|
});
|
|
2671
2671
|
});
|
|
2672
2672
|
const ae = (t, e) => {
|
|
2673
|
-
|
|
2673
|
+
He(() => (ue[t] || (ue[t] = /* @__PURE__ */ new Set()), ue[t].add(e), () => {
|
|
2674
2674
|
ue[t].delete(e);
|
|
2675
2675
|
}), [t, e]);
|
|
2676
|
-
},
|
|
2677
|
-
const t =
|
|
2676
|
+
}, Ri = () => {
|
|
2677
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2678
2678
|
return {
|
|
2679
2679
|
afterAd: t,
|
|
2680
2680
|
adDismissed: e,
|
|
@@ -2686,8 +2686,8 @@ const ae = (t, e) => {
|
|
|
2686
2686
|
visible: a,
|
|
2687
2687
|
src: d
|
|
2688
2688
|
};
|
|
2689
|
-
},
|
|
2690
|
-
${
|
|
2689
|
+
}, Br = ge`
|
|
2690
|
+
${F}
|
|
2691
2691
|
position: fixed;
|
|
2692
2692
|
z-index: 2147483647;
|
|
2693
2693
|
background: white;
|
|
@@ -2697,7 +2697,7 @@ const ae = (t, e) => {
|
|
|
2697
2697
|
flex-direction: column;
|
|
2698
2698
|
|
|
2699
2699
|
iframe {
|
|
2700
|
-
${
|
|
2700
|
+
${F}
|
|
2701
2701
|
flex: 1;
|
|
2702
2702
|
position: relative;
|
|
2703
2703
|
display: block;
|
|
@@ -2705,7 +2705,7 @@ const ae = (t, e) => {
|
|
|
2705
2705
|
width: 100%;
|
|
2706
2706
|
height: 100%;
|
|
2707
2707
|
}
|
|
2708
|
-
`,
|
|
2708
|
+
`, xi = (t) => {
|
|
2709
2709
|
let {
|
|
2710
2710
|
state: e
|
|
2711
2711
|
} = t;
|
|
@@ -2718,18 +2718,18 @@ const ae = (t, e) => {
|
|
|
2718
2718
|
adLinkClicked: a,
|
|
2719
2719
|
visible: d,
|
|
2720
2720
|
src: l
|
|
2721
|
-
} = e, [u, h] =
|
|
2722
|
-
var g,
|
|
2723
|
-
h(!1), d.value = !1,
|
|
2721
|
+
} = e, [u, h] = Yt(!1), c = (w) => {
|
|
2722
|
+
var g, p, y, v;
|
|
2723
|
+
h(!1), d.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (y = i.value) == null || y.call(i), (v = o.value) == null || v.call(o);
|
|
2724
2724
|
}, f = () => {
|
|
2725
|
-
var
|
|
2726
|
-
(
|
|
2725
|
+
var w;
|
|
2726
|
+
(w = s.value) == null || w.call(s);
|
|
2727
2727
|
};
|
|
2728
|
-
return ae("appsrockets_ad_dismissed", () => c("dismiss")), ae("appsrockets_ad_rewarded", () => c("viewed")), ae("appsrockets_ad_completed", () => c("viewed")), ae("appsrockets_ad_skipped", () => c("viewed")), ae("appsrockets_ad_clicked", (
|
|
2728
|
+
return ae("appsrockets_ad_dismissed", () => c("dismiss")), ae("appsrockets_ad_rewarded", () => c("viewed")), ae("appsrockets_ad_completed", () => c("viewed")), ae("appsrockets_ad_skipped", () => c("viewed")), ae("appsrockets_ad_clicked", (w) => {
|
|
2729
2729
|
var g;
|
|
2730
|
-
return (g = a.value) == null ? void 0 : g.call(a,
|
|
2730
|
+
return (g = a.value) == null ? void 0 : g.call(a, w);
|
|
2731
2731
|
}), ae("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2732
|
-
className:
|
|
2732
|
+
className: Br,
|
|
2733
2733
|
style: {
|
|
2734
2734
|
display: u ? "flex" : "none"
|
|
2735
2735
|
},
|
|
@@ -2743,13 +2743,13 @@ const ae = (t, e) => {
|
|
|
2743
2743
|
}) : null;
|
|
2744
2744
|
};
|
|
2745
2745
|
function ee(t, e, i) {
|
|
2746
|
-
return (e =
|
|
2746
|
+
return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2749
|
-
var e =
|
|
2748
|
+
function Vr(t) {
|
|
2749
|
+
var e = Gr(t, "string");
|
|
2750
2750
|
return typeof e == "symbol" ? e : e + "";
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function Gr(t, e) {
|
|
2753
2753
|
if (typeof t != "object" || !t)
|
|
2754
2754
|
return t;
|
|
2755
2755
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2761,9 +2761,9 @@ function $r(t, e) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
return (e === "string" ? String : Number)(t);
|
|
2763
2763
|
}
|
|
2764
|
-
class
|
|
2764
|
+
class qr {
|
|
2765
2765
|
constructor(e, i) {
|
|
2766
|
-
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, "lastUnDisplayedAdBreak", null), ee(this, "state",
|
|
2766
|
+
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, "lastUnDisplayedAdBreak", null), ee(this, "state", Ri()), ee(this, "processUrl", (n) => {
|
|
2767
2767
|
var a;
|
|
2768
2768
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2769
2769
|
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();
|
|
@@ -2771,7 +2771,7 @@ class jr {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
async init() {
|
|
2773
2773
|
var e;
|
|
2774
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(
|
|
2774
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(xi, {
|
|
2775
2775
|
state: this.state
|
|
2776
2776
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2777
2777
|
}
|
|
@@ -2807,8 +2807,8 @@ class jr {
|
|
|
2807
2807
|
return;
|
|
2808
2808
|
}
|
|
2809
2809
|
const n = (c) => {
|
|
2810
|
-
var f,
|
|
2811
|
-
(
|
|
2810
|
+
var f, w;
|
|
2811
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
2812
2812
|
};
|
|
2813
2813
|
switch (e.type) {
|
|
2814
2814
|
case "preroll": {
|
|
@@ -2836,7 +2836,7 @@ class jr {
|
|
|
2836
2836
|
breakFormat: "interstitial",
|
|
2837
2837
|
breakStatus: "viewed"
|
|
2838
2838
|
});
|
|
2839
|
-
},
|
|
2839
|
+
}, w = () => {
|
|
2840
2840
|
var g;
|
|
2841
2841
|
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
|
|
2842
2842
|
breakType: e.type,
|
|
@@ -2845,8 +2845,8 @@ class jr {
|
|
|
2845
2845
|
breakStatus: "noAdPreloaded"
|
|
2846
2846
|
});
|
|
2847
2847
|
};
|
|
2848
|
-
|
|
2849
|
-
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value =
|
|
2848
|
+
D(() => {
|
|
2849
|
+
this.adsIsShowing = !0, this.state.afterAd.value = c, 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;
|
|
2850
2850
|
});
|
|
2851
2851
|
break;
|
|
2852
2852
|
}
|
|
@@ -2865,22 +2865,22 @@ class jr {
|
|
|
2865
2865
|
breakName: e.name,
|
|
2866
2866
|
breakFormat: "reward",
|
|
2867
2867
|
breakStatus: "ignored"
|
|
2868
|
-
},
|
|
2868
|
+
}, w = () => {
|
|
2869
2869
|
var b;
|
|
2870
2870
|
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
2871
2871
|
}, g = () => {
|
|
2872
2872
|
var b;
|
|
2873
2873
|
this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
|
|
2874
|
-
},
|
|
2874
|
+
}, p = () => {
|
|
2875
2875
|
var b;
|
|
2876
2876
|
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2877
2877
|
}, y = () => {
|
|
2878
2878
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2879
2879
|
};
|
|
2880
|
-
|
|
2881
|
-
this.state.afterAd.value = c, this.state.adDismissed.value =
|
|
2880
|
+
D(() => {
|
|
2881
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = w, this.state.adViewed.value = g, this.state.adBreakDone.value = p, this.state.adLinkClicked.value = n, this.state.adError.value = y;
|
|
2882
2882
|
});
|
|
2883
|
-
const
|
|
2883
|
+
const v = () => {
|
|
2884
2884
|
var b;
|
|
2885
2885
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2886
2886
|
(b = e.adBreakDone) == null || b.call(e, {
|
|
@@ -2891,31 +2891,31 @@ class jr {
|
|
|
2891
2891
|
});
|
|
2892
2892
|
return;
|
|
2893
2893
|
}
|
|
2894
|
-
this.adsIsShowing = !0,
|
|
2894
|
+
this.adsIsShowing = !0, D(() => {
|
|
2895
2895
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2896
2896
|
});
|
|
2897
2897
|
};
|
|
2898
|
-
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e,
|
|
2898
|
+
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, v);
|
|
2899
2899
|
break;
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
|
-
const
|
|
2904
|
+
const Oi = () => {
|
|
2905
2905
|
window.googletag = window.googletag || {
|
|
2906
2906
|
cmd: []
|
|
2907
2907
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
2908
2908
|
window.googletag.enableServices();
|
|
2909
2909
|
});
|
|
2910
2910
|
};
|
|
2911
|
-
function
|
|
2912
|
-
return (e =
|
|
2911
|
+
function $(t, e, i) {
|
|
2912
|
+
return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2915
|
-
var e =
|
|
2914
|
+
function Kr(t) {
|
|
2915
|
+
var e = zr(t, "string");
|
|
2916
2916
|
return typeof e == "symbol" ? e : e + "";
|
|
2917
2917
|
}
|
|
2918
|
-
function
|
|
2918
|
+
function zr(t, e) {
|
|
2919
2919
|
if (typeof t != "object" || !t)
|
|
2920
2920
|
return t;
|
|
2921
2921
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2927,24 +2927,24 @@ function Ur(t, e) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
return (e === "string" ? String : Number)(t);
|
|
2929
2929
|
}
|
|
2930
|
-
class
|
|
2930
|
+
class Ti {
|
|
2931
2931
|
constructor(e, i, n) {
|
|
2932
|
-
|
|
2932
|
+
$(this, "adUnit", void 0), $(this, "project", void 0), $(this, "keyValue", void 0), $(this, "adsContext", null), $(this, "rewardedSlot", null), $(this, "rewardedPayload", null), $(this, "readyEvent", null), $(this, "withCommand", function() {
|
|
2933
2933
|
googletag.cmd.push(...arguments);
|
|
2934
|
-
}),
|
|
2934
|
+
}), $(this, "init", () => {
|
|
2935
2935
|
var r;
|
|
2936
2936
|
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) => {
|
|
2937
2937
|
var s;
|
|
2938
2938
|
(s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
|
|
2939
2939
|
}), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
|
|
2940
|
-
}),
|
|
2940
|
+
}), $(this, "destroy", (r) => {
|
|
2941
2941
|
var o, s;
|
|
2942
2942
|
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;
|
|
2943
|
-
}),
|
|
2943
|
+
}), $(this, "reinit", (r) => {
|
|
2944
2944
|
this.destroy(r), this.init();
|
|
2945
|
-
}),
|
|
2945
|
+
}), $(this, "handleSlotReady", (r) => {
|
|
2946
2946
|
r.slot === this.rewardedSlot && (this.readyEvent = r);
|
|
2947
|
-
}),
|
|
2947
|
+
}), $(this, "handleSlotClosed", (r) => {
|
|
2948
2948
|
var o, s;
|
|
2949
2949
|
if (this.adsContext && r.slot === this.rewardedSlot) {
|
|
2950
2950
|
const a = this.rewardedPayload ? "viewed" : "dismissed";
|
|
@@ -2952,13 +2952,13 @@ class Ii {
|
|
|
2952
2952
|
this.reinit(a);
|
|
2953
2953
|
});
|
|
2954
2954
|
}
|
|
2955
|
-
}),
|
|
2955
|
+
}), $(this, "handleSlotGranted", (r) => {
|
|
2956
2956
|
this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
|
|
2957
|
-
}),
|
|
2957
|
+
}), $(this, "handleSlotRenderEnded", (r) => {
|
|
2958
2958
|
r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
|
|
2959
2959
|
this.reinit("frequencyCapped");
|
|
2960
2960
|
});
|
|
2961
|
-
}),
|
|
2961
|
+
}), $(this, "requestAds", (r) => {
|
|
2962
2962
|
this.withCommand(() => {
|
|
2963
2963
|
if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
|
|
2964
2964
|
this.reinit("notReady");
|
|
@@ -2981,19 +2981,19 @@ class Ii {
|
|
|
2981
2981
|
}, 500);
|
|
2982
2982
|
}
|
|
2983
2983
|
});
|
|
2984
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
2984
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Oi(), this.withCommand(() => {
|
|
2985
2985
|
this.init();
|
|
2986
2986
|
});
|
|
2987
2987
|
}
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2990
|
-
return (e =
|
|
2989
|
+
function V(t, e, i) {
|
|
2990
|
+
return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2993
|
-
var e =
|
|
2992
|
+
function Hr(t) {
|
|
2993
|
+
var e = Wr(t, "string");
|
|
2994
2994
|
return typeof e == "symbol" ? e : e + "";
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function Wr(t, e) {
|
|
2997
2997
|
if (typeof t != "object" || !t)
|
|
2998
2998
|
return t;
|
|
2999
2999
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3005,31 +3005,31 @@ function Vr(t, e) {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
return (e === "string" ? String : Number)(t);
|
|
3007
3007
|
}
|
|
3008
|
-
class
|
|
3008
|
+
class Jr {
|
|
3009
3009
|
constructor(e, i, n) {
|
|
3010
3010
|
var r = this;
|
|
3011
|
-
|
|
3011
|
+
V(this, "adUnit", void 0), V(this, "project", void 0), V(this, "keyValue", void 0), V(this, "adsContext", null), V(this, "gamingInterstitialSlot", null), V(this, "readyEvent", null), V(this, "isRetrying", !1), V(this, "withCommand", function() {
|
|
3012
3012
|
googletag.cmd.push(...arguments);
|
|
3013
|
-
}),
|
|
3013
|
+
}), V(this, "init", () => {
|
|
3014
3014
|
var o;
|
|
3015
3015
|
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) => {
|
|
3016
3016
|
var a;
|
|
3017
3017
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3018
3018
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3019
|
-
}),
|
|
3019
|
+
}), V(this, "destroy", function(o) {
|
|
3020
3020
|
var a, d;
|
|
3021
3021
|
(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);
|
|
3022
|
-
}),
|
|
3022
|
+
}), V(this, "reinit", function(o) {
|
|
3023
3023
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3024
3024
|
r.destroy(o, s), r.init();
|
|
3025
|
-
}),
|
|
3025
|
+
}), V(this, "handleSlotReady", (o) => {
|
|
3026
3026
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3027
|
-
}),
|
|
3027
|
+
}), V(this, "handleSlotClosed", (o) => {
|
|
3028
3028
|
var s, a;
|
|
3029
3029
|
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3030
3030
|
this.reinit("viewed");
|
|
3031
3031
|
}));
|
|
3032
|
-
}),
|
|
3032
|
+
}), V(this, "requestAds", (o) => {
|
|
3033
3033
|
this.withCommand(() => {
|
|
3034
3034
|
var s, a, d;
|
|
3035
3035
|
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
|
|
@@ -3042,19 +3042,19 @@ class Gr {
|
|
|
3042
3042
|
}), this.isRetrying = !1;
|
|
3043
3043
|
}, 31e3)));
|
|
3044
3044
|
});
|
|
3045
|
-
}),
|
|
3045
|
+
}), Oi(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3046
3046
|
this.init();
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
3050
|
function se(t, e, i) {
|
|
3051
|
-
return (e =
|
|
3051
|
+
return (e = Yr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3054
|
-
var e =
|
|
3053
|
+
function Yr(t) {
|
|
3054
|
+
var e = Xr(t, "string");
|
|
3055
3055
|
return typeof e == "symbol" ? e : e + "";
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function Xr(t, e) {
|
|
3058
3058
|
if (typeof t != "object" || !t)
|
|
3059
3059
|
return t;
|
|
3060
3060
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3066,7 +3066,7 @@ function Kr(t, e) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
return (e === "string" ? String : Number)(t);
|
|
3068
3068
|
}
|
|
3069
|
-
class
|
|
3069
|
+
class Qr {
|
|
3070
3070
|
constructor(e, i) {
|
|
3071
3071
|
se(this, "name", "GOOGLE_GPT"), se(this, "context", void 0), se(this, "contextInfo", void 0), se(this, "initParams", void 0), se(this, "rewardAdManager", void 0), se(this, "interstitialManager", void 0), se(this, "insertScript", () => {
|
|
3072
3072
|
const n = "jolibox-google-gpt";
|
|
@@ -3076,7 +3076,7 @@ class zr {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
async init() {
|
|
3078
3078
|
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"}`;
|
|
3079
|
-
e && (this.rewardAdManager = new
|
|
3079
|
+
e && (this.rewardAdManager = new Ti(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Jr(i, r, this.initParams.keyValue));
|
|
3080
3080
|
}
|
|
3081
3081
|
adConfig(e, i) {
|
|
3082
3082
|
}
|
|
@@ -3147,14 +3147,14 @@ class zr {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return (e =
|
|
3150
|
+
function nt(t, e, i) {
|
|
3151
|
+
return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3154
|
-
var e =
|
|
3153
|
+
function Zr(t) {
|
|
3154
|
+
var e = eo(t, "string");
|
|
3155
3155
|
return typeof e == "symbol" ? e : e + "";
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3157
|
+
function eo(t, e) {
|
|
3158
3158
|
if (typeof t != "object" || !t)
|
|
3159
3159
|
return t;
|
|
3160
3160
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3166,10 +3166,10 @@ function Wr(t, e) {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
return (e === "string" ? String : Number)(t);
|
|
3168
3168
|
}
|
|
3169
|
-
class
|
|
3169
|
+
class to {
|
|
3170
3170
|
constructor(e) {
|
|
3171
3171
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3172
|
-
|
|
3172
|
+
nt(this, "context", void 0), nt(this, "placement", "GAME"), nt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3173
3173
|
}
|
|
3174
3174
|
getLocation() {
|
|
3175
3175
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3183,7 +3183,7 @@ class Jr {
|
|
|
3183
3183
|
getDevice() {
|
|
3184
3184
|
var e, i, n, r;
|
|
3185
3185
|
return {
|
|
3186
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3186
|
+
platform: (e = this.contextInfo.platform) != null ? e : ii.WebSDK,
|
|
3187
3187
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3188
3188
|
appVersion: "1.0.0",
|
|
3189
3189
|
// mock
|
|
@@ -3202,7 +3202,7 @@ class Jr {
|
|
|
3202
3202
|
protocolVersion: "1.0.0",
|
|
3203
3203
|
events: [{
|
|
3204
3204
|
name: e,
|
|
3205
|
-
type:
|
|
3205
|
+
type: ei.System,
|
|
3206
3206
|
location: this.getLocation(),
|
|
3207
3207
|
target: null,
|
|
3208
3208
|
extra: i,
|
|
@@ -3210,19 +3210,19 @@ class Jr {
|
|
|
3210
3210
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3211
3211
|
}],
|
|
3212
3212
|
device: this.getDevice(),
|
|
3213
|
-
project:
|
|
3213
|
+
project: ti.WebSDK
|
|
3214
3214
|
};
|
|
3215
|
-
return
|
|
3215
|
+
return ln(r);
|
|
3216
3216
|
}
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return (e =
|
|
3218
|
+
function U(t, e, i) {
|
|
3219
|
+
return (e = io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3222
|
-
var e =
|
|
3221
|
+
function io(t) {
|
|
3222
|
+
var e = no(t, "string");
|
|
3223
3223
|
return typeof e == "symbol" ? e : e + "";
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function no(t, e) {
|
|
3226
3226
|
if (typeof t != "object" || !t)
|
|
3227
3227
|
return t;
|
|
3228
3228
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3234,9 +3234,9 @@ function Xr(t, e) {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
return (e === "string" ? String : Number)(t);
|
|
3236
3236
|
}
|
|
3237
|
-
class
|
|
3237
|
+
class _t {
|
|
3238
3238
|
constructor(e) {
|
|
3239
|
-
|
|
3239
|
+
U(this, "context", void 0), U(this, "adsTrackSerializer", void 0), U(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new to(this.context);
|
|
3240
3240
|
}
|
|
3241
3241
|
getRequestContextData(e) {
|
|
3242
3242
|
var r, o;
|
|
@@ -3272,13 +3272,13 @@ class wt {
|
|
|
3272
3272
|
};
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
|
-
class
|
|
3275
|
+
class Ci {
|
|
3276
3276
|
constructor(e, i) {
|
|
3277
3277
|
var n = this;
|
|
3278
|
-
|
|
3278
|
+
U(this, "context", void 0), U(this, "contextInfo", void 0), U(this, "requestContext", void 0), U(this, "pendingAFGAdsInfo", {
|
|
3279
3279
|
REWARD: Promise.resolve(null),
|
|
3280
3280
|
INTERSTITIAL: Promise.resolve(null)
|
|
3281
|
-
}),
|
|
3281
|
+
}), U(this, "pendingAFVAdsInfo", Promise.resolve(null)), U(this, "doFetchAdsInfo", async (r) => {
|
|
3282
3282
|
const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
|
|
3283
3283
|
data: d,
|
|
3284
3284
|
code: l
|
|
@@ -3291,35 +3291,38 @@ class Ri {
|
|
|
3291
3291
|
name: a
|
|
3292
3292
|
}
|
|
3293
3293
|
});
|
|
3294
|
-
return l === "SUCCESS"
|
|
3295
|
-
|
|
3294
|
+
return l === "SUCCESS" || l === "BYPASS_ADS" ? {
|
|
3295
|
+
code: l,
|
|
3296
|
+
data: d
|
|
3297
|
+
} : null;
|
|
3298
|
+
}), U(this, "cacheRewardInfo", () => {
|
|
3296
3299
|
this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
|
|
3297
|
-
}),
|
|
3300
|
+
}), U(this, "cacheInterstitialInfo", (r) => {
|
|
3298
3301
|
this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
|
|
3299
|
-
}),
|
|
3302
|
+
}), U(this, "cacheAFVInfo", () => {
|
|
3300
3303
|
this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
|
|
3301
|
-
}),
|
|
3304
|
+
}), U(this, "cacheNextAFGAdsInfo", async (r) => {
|
|
3302
3305
|
r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
|
|
3303
|
-
}),
|
|
3306
|
+
}), U(this, "getAFGAdsInfo", async (r) => {
|
|
3304
3307
|
const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
|
|
3305
3308
|
return this.cacheNextAFGAdsInfo(r), o;
|
|
3306
|
-
}),
|
|
3309
|
+
}), U(this, "getAFVAdsInfo", async function() {
|
|
3307
3310
|
if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
|
|
3308
3311
|
const o = await n.pendingAFVAdsInfo;
|
|
3309
3312
|
return n.cacheAFVInfo(), o;
|
|
3310
3313
|
} else
|
|
3311
3314
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3312
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3315
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new _t(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3313
3316
|
}
|
|
3314
3317
|
}
|
|
3315
3318
|
function z(t, e, i) {
|
|
3316
|
-
return (e =
|
|
3319
|
+
return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3317
3320
|
}
|
|
3318
|
-
function
|
|
3319
|
-
var e =
|
|
3321
|
+
function ro(t) {
|
|
3322
|
+
var e = oo(t, "string");
|
|
3320
3323
|
return typeof e == "symbol" ? e : e + "";
|
|
3321
3324
|
}
|
|
3322
|
-
function
|
|
3325
|
+
function oo(t, e) {
|
|
3323
3326
|
if (typeof t != "object" || !t)
|
|
3324
3327
|
return t;
|
|
3325
3328
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3331,10 +3334,10 @@ function Zr(t, e) {
|
|
|
3331
3334
|
}
|
|
3332
3335
|
return (e === "string" ? String : Number)(t);
|
|
3333
3336
|
}
|
|
3334
|
-
class
|
|
3337
|
+
class Bo {
|
|
3335
3338
|
constructor(e) {
|
|
3336
3339
|
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)
|
|
3337
|
-
this.context = e, this.channelPolicy = new
|
|
3340
|
+
this.context = e, this.channelPolicy = new xn(this.context), this.adsActionDetection = new kn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Ci(e), this.requestContext = new _t(e);
|
|
3338
3341
|
else
|
|
3339
3342
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3340
3343
|
}
|
|
@@ -3353,23 +3356,23 @@ class No {
|
|
|
3353
3356
|
for (const n of i)
|
|
3354
3357
|
switch (n.provider) {
|
|
3355
3358
|
case "GOOGLE_GPT": {
|
|
3356
|
-
const r = new
|
|
3359
|
+
const r = new Qr(this.context, n.params);
|
|
3357
3360
|
await r.init(), this.providers[n.provider] = r;
|
|
3358
3361
|
break;
|
|
3359
3362
|
}
|
|
3360
3363
|
case "ADSENSE":
|
|
3361
3364
|
case "ADSENSE_ADMOB": {
|
|
3362
|
-
const r = new
|
|
3365
|
+
const r = new Cn(this.context, n.params);
|
|
3363
3366
|
await r.init(), this.providers[n.provider] = r;
|
|
3364
3367
|
break;
|
|
3365
3368
|
}
|
|
3366
3369
|
case "OKSPIN": {
|
|
3367
|
-
const r = new
|
|
3370
|
+
const r = new Ur(this.context, n.params);
|
|
3368
3371
|
await r.init(), this.providers.OKSPIN = r;
|
|
3369
3372
|
break;
|
|
3370
3373
|
}
|
|
3371
3374
|
case "APPSROCKETS": {
|
|
3372
|
-
const r = new
|
|
3375
|
+
const r = new qr(this.context, n.params);
|
|
3373
3376
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3374
3377
|
break;
|
|
3375
3378
|
}
|
|
@@ -3380,7 +3383,7 @@ class No {
|
|
|
3380
3383
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
3381
3384
|
}
|
|
3382
3385
|
async adBreak(e) {
|
|
3383
|
-
var r, o, s, a, d, l, u, h, c, f;
|
|
3386
|
+
var r, o, s, a, d, l, u, h, c, f, w, g, p, y;
|
|
3384
3387
|
const i = Date.now();
|
|
3385
3388
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
3386
3389
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -3428,11 +3431,53 @@ class No {
|
|
|
3428
3431
|
return;
|
|
3429
3432
|
}
|
|
3430
3433
|
try {
|
|
3431
|
-
const v = await this.adsRequest.getAFGAdsInfo(e.type);
|
|
3432
|
-
if (
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3434
|
+
const v = await this.adsRequest.getAFGAdsInfo(e.type), b = v == null ? void 0 : v.data, T = v == null ? void 0 : v.code;
|
|
3435
|
+
if (T === "BYPASS_ADS") {
|
|
3436
|
+
switch (e.type) {
|
|
3437
|
+
case "preroll": {
|
|
3438
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3439
|
+
breakType: e.type,
|
|
3440
|
+
breakFormat: "interstitial",
|
|
3441
|
+
breakStatus: "viewed"
|
|
3442
|
+
});
|
|
3443
|
+
break;
|
|
3444
|
+
}
|
|
3445
|
+
case "reward": {
|
|
3446
|
+
e.beforeReward(() => {
|
|
3447
|
+
var R, O, A, Oe;
|
|
3448
|
+
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Oe = e.adBreakDone) == null || Oe.call(e, {
|
|
3449
|
+
breakType: e.type,
|
|
3450
|
+
breakName: e.name,
|
|
3451
|
+
breakFormat: "reward",
|
|
3452
|
+
breakStatus: "viewed"
|
|
3453
|
+
});
|
|
3454
|
+
});
|
|
3455
|
+
break;
|
|
3456
|
+
}
|
|
3457
|
+
default: {
|
|
3458
|
+
(u = e.beforeAd) == null || u.call(e), (h = e.afterAd) == null || h.call(e), (c = e.adBreakDone) == null || c.call(e, {
|
|
3459
|
+
breakType: e.type,
|
|
3460
|
+
breakName: e.name,
|
|
3461
|
+
breakFormat: "interstitial",
|
|
3462
|
+
breakStatus: "viewed"
|
|
3463
|
+
});
|
|
3464
|
+
break;
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
return;
|
|
3468
|
+
}
|
|
3469
|
+
if (!b || T !== "SUCCESS") {
|
|
3470
|
+
(f = e.adBreakDone) == null || f.call(e, {
|
|
3471
|
+
breakType: e.type,
|
|
3472
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3473
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3474
|
+
breakStatus: "noAdPreloaded"
|
|
3475
|
+
});
|
|
3476
|
+
return;
|
|
3477
|
+
} else {
|
|
3478
|
+
const R = b.sort((Te, Ce) => Te.seq - Ce.seq);
|
|
3479
|
+
if (R.length === 0) {
|
|
3480
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
3436
3481
|
breakType: e.type,
|
|
3437
3482
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3438
3483
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3440,58 +3485,50 @@ class No {
|
|
|
3440
3485
|
});
|
|
3441
3486
|
return;
|
|
3442
3487
|
}
|
|
3443
|
-
let
|
|
3444
|
-
const
|
|
3445
|
-
for (this.adsActionDetection.adBreakIsShowing = !0;
|
|
3446
|
-
const
|
|
3447
|
-
if (
|
|
3448
|
-
const [
|
|
3449
|
-
var
|
|
3450
|
-
this.adsIsShowing =
|
|
3488
|
+
let O = !0, A = null;
|
|
3489
|
+
const Oe = new mn(this.context);
|
|
3490
|
+
for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
|
|
3491
|
+
const Te = R.shift(), Ce = this.providers[Te.provider];
|
|
3492
|
+
if (Ce) {
|
|
3493
|
+
const [Di, Li] = await Oe.callAdBreakAndContinue(Ce, e, Te, (mt) => {
|
|
3494
|
+
var St;
|
|
3495
|
+
this.adsIsShowing = mt, (St = this.context.eventEmitter) == null || St.emit("isAdShowing", mt);
|
|
3451
3496
|
});
|
|
3452
|
-
|
|
3497
|
+
O = Di, A = Li;
|
|
3453
3498
|
} else
|
|
3454
|
-
|
|
3499
|
+
O = !0, A = {
|
|
3455
3500
|
breakType: e.type,
|
|
3456
3501
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3457
3502
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3458
3503
|
breakStatus: "notReady"
|
|
3459
3504
|
};
|
|
3460
|
-
if (!
|
|
3505
|
+
if (!O)
|
|
3461
3506
|
break;
|
|
3462
3507
|
}
|
|
3463
|
-
|
|
3464
|
-
} else {
|
|
3465
|
-
(l = e.adBreakDone) == null || l.call(e, {
|
|
3466
|
-
breakType: e.type,
|
|
3467
|
-
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3468
|
-
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3469
|
-
breakStatus: "noAdPreloaded"
|
|
3470
|
-
});
|
|
3471
|
-
return;
|
|
3508
|
+
O && A && ((g = e.adBreakDone) == null || g.call(e, A));
|
|
3472
3509
|
}
|
|
3473
3510
|
} catch (v) {
|
|
3474
|
-
(
|
|
3511
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
3475
3512
|
breakType: e.type,
|
|
3476
3513
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3477
3514
|
breakStatus: "noAdPreloaded"
|
|
3478
3515
|
});
|
|
3479
3516
|
} finally {
|
|
3480
|
-
this.adsIsShowing = !1, (
|
|
3517
|
+
this.adsIsShowing = !1, (y = this.context.eventEmitter) == null || y.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
3481
3518
|
}
|
|
3482
3519
|
}
|
|
3483
3520
|
adUnit(e) {
|
|
3484
3521
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3485
3522
|
}
|
|
3486
3523
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return (e =
|
|
3524
|
+
function Ne(t, e, i) {
|
|
3525
|
+
return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3489
3526
|
}
|
|
3490
|
-
function
|
|
3491
|
-
var e =
|
|
3527
|
+
function so(t) {
|
|
3528
|
+
var e = ao(t, "string");
|
|
3492
3529
|
return typeof e == "symbol" ? e : e + "";
|
|
3493
3530
|
}
|
|
3494
|
-
function
|
|
3531
|
+
function ao(t, e) {
|
|
3495
3532
|
if (typeof t != "object" || !t)
|
|
3496
3533
|
return t;
|
|
3497
3534
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3503,9 +3540,9 @@ function to(t, e) {
|
|
|
3503
3540
|
}
|
|
3504
3541
|
return (e === "string" ? String : Number)(t);
|
|
3505
3542
|
}
|
|
3506
|
-
class
|
|
3543
|
+
class lo {
|
|
3507
3544
|
constructor(e) {
|
|
3508
|
-
|
|
3545
|
+
Ne(this, "context", void 0), Ne(this, "currentProvider", void 0), Ne(this, "continueCallback", void 0), Ne(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3509
3546
|
}
|
|
3510
3547
|
get paramsToTrack() {
|
|
3511
3548
|
var e, i;
|
|
@@ -3526,7 +3563,7 @@ class io {
|
|
|
3526
3563
|
wrapAdPlaying(e) {
|
|
3527
3564
|
return (i) => {
|
|
3528
3565
|
var n, r;
|
|
3529
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
3566
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), ot() && this.context.track("mmp_ad_impression", {
|
|
3530
3567
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3531
3568
|
ad_format: "AFV",
|
|
3532
3569
|
module: "drama",
|
|
@@ -3554,14 +3591,14 @@ class io {
|
|
|
3554
3591
|
});
|
|
3555
3592
|
}
|
|
3556
3593
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return (e =
|
|
3594
|
+
function rt(t, e, i) {
|
|
3595
|
+
return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3559
3596
|
}
|
|
3560
|
-
function
|
|
3561
|
-
var e =
|
|
3597
|
+
function uo(t) {
|
|
3598
|
+
var e = co(t, "string");
|
|
3562
3599
|
return typeof e == "symbol" ? e : e + "";
|
|
3563
3600
|
}
|
|
3564
|
-
function
|
|
3601
|
+
function co(t, e) {
|
|
3565
3602
|
if (typeof t != "object" || !t)
|
|
3566
3603
|
return t;
|
|
3567
3604
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3573,27 +3610,27 @@ function ro(t, e) {
|
|
|
3573
3610
|
}
|
|
3574
3611
|
return (e === "string" ? String : Number)(t);
|
|
3575
3612
|
}
|
|
3576
|
-
class
|
|
3613
|
+
class P extends Error {
|
|
3577
3614
|
constructor(e, i) {
|
|
3578
|
-
super(e.message),
|
|
3615
|
+
super(e.message), rt(this, "name", void 0), rt(this, "type", void 0), rt(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3579
3616
|
}
|
|
3580
3617
|
static from(e, i) {
|
|
3581
3618
|
switch (i) {
|
|
3582
3619
|
case "GOOGLE_IMA_ERROR":
|
|
3583
|
-
return new
|
|
3620
|
+
return new P(e, i);
|
|
3584
3621
|
case "JOLIBOX_IMA_ERROR":
|
|
3585
|
-
return new
|
|
3622
|
+
return new P(e, i);
|
|
3586
3623
|
}
|
|
3587
3624
|
}
|
|
3588
3625
|
}
|
|
3589
3626
|
function I(t, e, i) {
|
|
3590
|
-
return (e =
|
|
3627
|
+
return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3591
3628
|
}
|
|
3592
|
-
function
|
|
3593
|
-
var e =
|
|
3629
|
+
function ho(t) {
|
|
3630
|
+
var e = fo(t, "string");
|
|
3594
3631
|
return typeof e == "symbol" ? e : e + "";
|
|
3595
3632
|
}
|
|
3596
|
-
function
|
|
3633
|
+
function fo(t, e) {
|
|
3597
3634
|
if (typeof t != "object" || !t)
|
|
3598
3635
|
return t;
|
|
3599
3636
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3605,16 +3642,16 @@ function so(t, e) {
|
|
|
3605
3642
|
}
|
|
3606
3643
|
return (e === "string" ? String : Number)(t);
|
|
3607
3644
|
}
|
|
3608
|
-
class
|
|
3645
|
+
class vo {
|
|
3609
3646
|
constructor(e, i, n) {
|
|
3610
3647
|
I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
|
|
3611
|
-
var r, o, s, a, d, l, u, h, c, f,
|
|
3612
|
-
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), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
3648
|
+
var r, o, s, a, d, l, u, h, c, f, w;
|
|
3649
|
+
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), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.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);
|
|
3613
3650
|
}), I(this, "requestAds", async (r, o) => {
|
|
3614
3651
|
var u;
|
|
3615
3652
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3616
3653
|
var c;
|
|
3617
|
-
return (c = r.onAdError) == null ? void 0 : c.call(r,
|
|
3654
|
+
return (c = r.onAdError) == null ? void 0 : c.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
|
|
3618
3655
|
}, 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);
|
|
3619
3656
|
const s = () => {
|
|
3620
3657
|
var h;
|
|
@@ -3670,9 +3707,9 @@ class ao {
|
|
|
3670
3707
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3671
3708
|
}
|
|
3672
3709
|
}
|
|
3673
|
-
var
|
|
3674
|
-
const
|
|
3675
|
-
const t =
|
|
3710
|
+
var Ve = /* @__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))(Ve || {});
|
|
3711
|
+
const go = () => {
|
|
3712
|
+
const t = E(!1), e = E(!1), i = E(null), n = It(), r = It();
|
|
3676
3713
|
return {
|
|
3677
3714
|
visible: t,
|
|
3678
3715
|
canRetry: e,
|
|
@@ -3680,8 +3717,8 @@ const lo = () => {
|
|
|
3680
3717
|
videoRef: n,
|
|
3681
3718
|
adContainerRef: r
|
|
3682
3719
|
};
|
|
3683
|
-
},
|
|
3684
|
-
${
|
|
3720
|
+
}, yo = ge`
|
|
3721
|
+
${F}
|
|
3685
3722
|
position: fixed;
|
|
3686
3723
|
left: 0;
|
|
3687
3724
|
top: 0;
|
|
@@ -3696,7 +3733,7 @@ const lo = () => {
|
|
|
3696
3733
|
}
|
|
3697
3734
|
|
|
3698
3735
|
.ads-wrapper {
|
|
3699
|
-
${
|
|
3736
|
+
${F}
|
|
3700
3737
|
position: relative;
|
|
3701
3738
|
width: 100%;
|
|
3702
3739
|
height: 100%;
|
|
@@ -3719,7 +3756,7 @@ const lo = () => {
|
|
|
3719
3756
|
}
|
|
3720
3757
|
|
|
3721
3758
|
.retry-button {
|
|
3722
|
-
${
|
|
3759
|
+
${F}
|
|
3723
3760
|
position: absolute;
|
|
3724
3761
|
width: 100%;
|
|
3725
3762
|
height: 100%;
|
|
@@ -3729,7 +3766,7 @@ const lo = () => {
|
|
|
3729
3766
|
cursor: pointer;
|
|
3730
3767
|
}
|
|
3731
3768
|
}
|
|
3732
|
-
`,
|
|
3769
|
+
`, wo = (t) => {
|
|
3733
3770
|
let {
|
|
3734
3771
|
onReady: e,
|
|
3735
3772
|
state: i
|
|
@@ -3741,14 +3778,14 @@ const lo = () => {
|
|
|
3741
3778
|
videoRef: s,
|
|
3742
3779
|
adContainerRef: a
|
|
3743
3780
|
} = i, d = () => {
|
|
3744
|
-
r.value && (r.value(),
|
|
3781
|
+
r.value && (r.value(), D(() => {
|
|
3745
3782
|
r.value = null, o.value = !1;
|
|
3746
3783
|
}));
|
|
3747
3784
|
};
|
|
3748
|
-
return
|
|
3785
|
+
return He(() => {
|
|
3749
3786
|
e();
|
|
3750
3787
|
}, [e]), _("div", {
|
|
3751
|
-
className:
|
|
3788
|
+
className: yo,
|
|
3752
3789
|
"data-visible": n.value,
|
|
3753
3790
|
children: _("div", {
|
|
3754
3791
|
className: "ads-wrapper",
|
|
@@ -3785,13 +3822,13 @@ const lo = () => {
|
|
|
3785
3822
|
});
|
|
3786
3823
|
};
|
|
3787
3824
|
function te(t, e, i) {
|
|
3788
|
-
return (e =
|
|
3825
|
+
return (e = po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3789
3826
|
}
|
|
3790
|
-
function
|
|
3791
|
-
var e =
|
|
3827
|
+
function po(t) {
|
|
3828
|
+
var e = bo(t, "string");
|
|
3792
3829
|
return typeof e == "symbol" ? e : e + "";
|
|
3793
3830
|
}
|
|
3794
|
-
function
|
|
3831
|
+
function bo(t, e) {
|
|
3795
3832
|
if (typeof t != "object" || !t)
|
|
3796
3833
|
return t;
|
|
3797
3834
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3803,9 +3840,9 @@ function fo(t, e) {
|
|
|
3803
3840
|
}
|
|
3804
3841
|
return (e === "string" ? String : Number)(t);
|
|
3805
3842
|
}
|
|
3806
|
-
class
|
|
3843
|
+
class Ao {
|
|
3807
3844
|
constructor(e) {
|
|
3808
|
-
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state",
|
|
3845
|
+
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state", go()), te(this, "init", async (i) => {
|
|
3809
3846
|
if (this.initialized)
|
|
3810
3847
|
return;
|
|
3811
3848
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3821,10 +3858,10 @@ class vo {
|
|
|
3821
3858
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3822
3859
|
}
|
|
3823
3860
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3824
|
-
oe(_(
|
|
3861
|
+
oe(_(wo, {
|
|
3825
3862
|
state: this.state,
|
|
3826
3863
|
onReady: () => {
|
|
3827
|
-
this.ima = new
|
|
3864
|
+
this.ima = new vo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3828
3865
|
}
|
|
3829
3866
|
}), this.adsOverlay);
|
|
3830
3867
|
}), this.initialized = !0;
|
|
@@ -3833,7 +3870,7 @@ class vo {
|
|
|
3833
3870
|
}), te(this, "requestAd", (i, n) => {
|
|
3834
3871
|
var u;
|
|
3835
3872
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3836
|
-
const h =
|
|
3873
|
+
const h = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3837
3874
|
(u = i.onAdError) == null || u.call(i, h);
|
|
3838
3875
|
return;
|
|
3839
3876
|
}
|
|
@@ -3846,9 +3883,9 @@ class vo {
|
|
|
3846
3883
|
r = !0;
|
|
3847
3884
|
let c = !1;
|
|
3848
3885
|
switch (h.raw.getErrorCode()) {
|
|
3849
|
-
case
|
|
3850
|
-
case
|
|
3851
|
-
case
|
|
3886
|
+
case Ve.AUTOPLAY_DISALLOWED:
|
|
3887
|
+
case Ve.VIDEO_PLAY_ERROR:
|
|
3888
|
+
case Ve.ADS_REQUEST_NETWORK_ERROR: {
|
|
3852
3889
|
c = !0;
|
|
3853
3890
|
break;
|
|
3854
3891
|
}
|
|
@@ -3858,15 +3895,15 @@ class vo {
|
|
|
3858
3895
|
}
|
|
3859
3896
|
}
|
|
3860
3897
|
if (!c)
|
|
3861
|
-
this.ima.destroy(),
|
|
3898
|
+
this.ima.destroy(), D(() => {
|
|
3862
3899
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3863
3900
|
}), (f = i.onAdError) == null || f.call(i, h);
|
|
3864
3901
|
else {
|
|
3865
|
-
const
|
|
3902
|
+
const w = () => {
|
|
3866
3903
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3867
3904
|
};
|
|
3868
|
-
|
|
3869
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3905
|
+
D(() => {
|
|
3906
|
+
this.state.canRetry.value = !0, this.state.retry.value = w;
|
|
3870
3907
|
});
|
|
3871
3908
|
}
|
|
3872
3909
|
}, a = (h) => {
|
|
@@ -3879,10 +3916,10 @@ class vo {
|
|
|
3879
3916
|
l.onAdCompleted = o, l.onAdError = s, l.onAdLoaded = a, l.onAdPlaying = d, this.ima.requestAds(l, n), window.setTimeout(() => {
|
|
3880
3917
|
var h, c;
|
|
3881
3918
|
if (!r) {
|
|
3882
|
-
|
|
3919
|
+
D(() => {
|
|
3883
3920
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3884
3921
|
});
|
|
3885
|
-
const f =
|
|
3922
|
+
const f = P.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
|
|
3886
3923
|
(h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
|
|
3887
3924
|
}
|
|
3888
3925
|
}, 5e3);
|
|
@@ -3890,13 +3927,13 @@ class vo {
|
|
|
3890
3927
|
}
|
|
3891
3928
|
}
|
|
3892
3929
|
function J(t, e, i) {
|
|
3893
|
-
return (e =
|
|
3930
|
+
return (e = _o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3894
3931
|
}
|
|
3895
|
-
function
|
|
3896
|
-
var e =
|
|
3932
|
+
function _o(t) {
|
|
3933
|
+
var e = mo(t, "string");
|
|
3897
3934
|
return typeof e == "symbol" ? e : e + "";
|
|
3898
3935
|
}
|
|
3899
|
-
function
|
|
3936
|
+
function mo(t, e) {
|
|
3900
3937
|
if (typeof t != "object" || !t)
|
|
3901
3938
|
return t;
|
|
3902
3939
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3908,11 +3945,11 @@ function yo(t, e) {
|
|
|
3908
3945
|
}
|
|
3909
3946
|
return (e === "string" ? String : Number)(t);
|
|
3910
3947
|
}
|
|
3911
|
-
class
|
|
3948
|
+
class So {
|
|
3912
3949
|
constructor(e) {
|
|
3913
|
-
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state",
|
|
3950
|
+
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state", ki()), J(this, "init", async (i) => {
|
|
3914
3951
|
var n;
|
|
3915
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(
|
|
3952
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Ii, {
|
|
3916
3953
|
state: this.state
|
|
3917
3954
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3918
3955
|
}), J(this, "destroy", () => {
|
|
@@ -3921,11 +3958,11 @@ class po {
|
|
|
3921
3958
|
}), J(this, "requestAd", (i, n) => {
|
|
3922
3959
|
var s, a, d, l;
|
|
3923
3960
|
if (!this.adsOverlay || !this.initialized) {
|
|
3924
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3961
|
+
(s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3925
3962
|
return;
|
|
3926
3963
|
}
|
|
3927
3964
|
if (this.adsIsShowing) {
|
|
3928
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3965
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3929
3966
|
return;
|
|
3930
3967
|
}
|
|
3931
3968
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3936,7 +3973,7 @@ class po {
|
|
|
3936
3973
|
var u;
|
|
3937
3974
|
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
3938
3975
|
};
|
|
3939
|
-
this.adsIsShowing = !0,
|
|
3976
|
+
this.adsIsShowing = !0, D(() => {
|
|
3940
3977
|
var u;
|
|
3941
3978
|
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;
|
|
3942
3979
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
@@ -3944,13 +3981,13 @@ class po {
|
|
|
3944
3981
|
}
|
|
3945
3982
|
}
|
|
3946
3983
|
function H(t, e, i) {
|
|
3947
|
-
return (e =
|
|
3984
|
+
return (e = Eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3948
3985
|
}
|
|
3949
|
-
function
|
|
3950
|
-
var e =
|
|
3986
|
+
function Eo(t) {
|
|
3987
|
+
var e = ko(t, "string");
|
|
3951
3988
|
return typeof e == "symbol" ? e : e + "";
|
|
3952
3989
|
}
|
|
3953
|
-
function
|
|
3990
|
+
function ko(t, e) {
|
|
3954
3991
|
if (typeof t != "object" || !t)
|
|
3955
3992
|
return t;
|
|
3956
3993
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3962,15 +3999,15 @@ function bo(t, e) {
|
|
|
3962
3999
|
}
|
|
3963
4000
|
return (e === "string" ? String : Number)(t);
|
|
3964
4001
|
}
|
|
3965
|
-
class
|
|
4002
|
+
class Io {
|
|
3966
4003
|
constructor(e) {
|
|
3967
|
-
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state",
|
|
4004
|
+
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state", Ri()), H(this, "processUrl", (i) => {
|
|
3968
4005
|
var s;
|
|
3969
4006
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3970
4007
|
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();
|
|
3971
4008
|
}), H(this, "init", async (i) => {
|
|
3972
4009
|
var n;
|
|
3973
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(
|
|
4010
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(xi, {
|
|
3974
4011
|
state: this.state
|
|
3975
4012
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3976
4013
|
}), H(this, "destroy", () => {
|
|
@@ -3979,11 +4016,11 @@ class _o {
|
|
|
3979
4016
|
}), H(this, "requestAd", (i, n) => {
|
|
3980
4017
|
var d, l, u, h;
|
|
3981
4018
|
if (!this.adsOverlay || !this.initialized) {
|
|
3982
|
-
(d = i.onAdError) == null || d.call(i,
|
|
4019
|
+
(d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3983
4020
|
return;
|
|
3984
4021
|
}
|
|
3985
4022
|
if (this.adsIsShowing) {
|
|
3986
|
-
(l = i.onAdError) == null || l.call(i,
|
|
4023
|
+
(l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3987
4024
|
return;
|
|
3988
4025
|
}
|
|
3989
4026
|
(u = i.onAdRequested) == null || u.call(i);
|
|
@@ -3994,26 +4031,26 @@ class _o {
|
|
|
3994
4031
|
var c;
|
|
3995
4032
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3996
4033
|
}, s = (c) => {
|
|
3997
|
-
var f,
|
|
3998
|
-
(
|
|
4034
|
+
var f, w;
|
|
4035
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
3999
4036
|
}, a = () => {
|
|
4000
4037
|
var c;
|
|
4001
|
-
(c = i.onAdError) == null || c.call(i,
|
|
4038
|
+
(c = i.onAdError) == null || c.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
4002
4039
|
};
|
|
4003
|
-
this.adsIsShowing = !0,
|
|
4040
|
+
this.adsIsShowing = !0, D(() => {
|
|
4004
4041
|
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;
|
|
4005
4042
|
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
4006
4043
|
}), this.context = e;
|
|
4007
4044
|
}
|
|
4008
4045
|
}
|
|
4009
4046
|
function ie(t, e, i) {
|
|
4010
|
-
return (e =
|
|
4047
|
+
return (e = Ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4011
4048
|
}
|
|
4012
|
-
function
|
|
4013
|
-
var e =
|
|
4049
|
+
function Ro(t) {
|
|
4050
|
+
var e = xo(t, "string");
|
|
4014
4051
|
return typeof e == "symbol" ? e : e + "";
|
|
4015
4052
|
}
|
|
4016
|
-
function
|
|
4053
|
+
function xo(t, e) {
|
|
4017
4054
|
if (typeof t != "object" || !t)
|
|
4018
4055
|
return t;
|
|
4019
4056
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4025,12 +4062,12 @@ function mo(t, e) {
|
|
|
4025
4062
|
}
|
|
4026
4063
|
return (e === "string" ? String : Number)(t);
|
|
4027
4064
|
}
|
|
4028
|
-
class
|
|
4065
|
+
class Oo {
|
|
4029
4066
|
constructor(e) {
|
|
4030
4067
|
ie(this, "name", "GOOGLE_GPT"), ie(this, "context", void 0), ie(this, "contextInfo", void 0), ie(this, "rewardAdManager", void 0), ie(this, "init", async (i) => {
|
|
4031
4068
|
if (!this.rewardAdManager) {
|
|
4032
4069
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
4033
|
-
this.rewardAdManager = new
|
|
4070
|
+
this.rewardAdManager = new Ti(n, o, i.params.keyValue);
|
|
4034
4071
|
}
|
|
4035
4072
|
}), ie(this, "insertScript", () => {
|
|
4036
4073
|
const i = "jolibox-google-gpt";
|
|
@@ -4045,7 +4082,7 @@ class So {
|
|
|
4045
4082
|
}), ie(this, "requestAd", (i, n) => {
|
|
4046
4083
|
var r;
|
|
4047
4084
|
if (!this.rewardAdManager) {
|
|
4048
|
-
(r = i.onAdError) == null || r.call(i,
|
|
4085
|
+
(r = i.onAdError) == null || r.call(i, P.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
4049
4086
|
return;
|
|
4050
4087
|
}
|
|
4051
4088
|
this.rewardAdManager.requestAds({
|
|
@@ -4068,7 +4105,7 @@ class So {
|
|
|
4068
4105
|
case "ignored":
|
|
4069
4106
|
break;
|
|
4070
4107
|
default: {
|
|
4071
|
-
(a = i.onAdError) == null || a.call(i,
|
|
4108
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error(o), "JOLIBOX_IMA_ERROR"));
|
|
4072
4109
|
break;
|
|
4073
4110
|
}
|
|
4074
4111
|
}
|
|
@@ -4078,13 +4115,13 @@ class So {
|
|
|
4078
4115
|
}
|
|
4079
4116
|
}
|
|
4080
4117
|
function de(t, e, i) {
|
|
4081
|
-
return (e =
|
|
4118
|
+
return (e = To(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4082
4119
|
}
|
|
4083
|
-
function
|
|
4084
|
-
var e =
|
|
4120
|
+
function To(t) {
|
|
4121
|
+
var e = Co(t, "string");
|
|
4085
4122
|
return typeof e == "symbol" ? e : e + "";
|
|
4086
4123
|
}
|
|
4087
|
-
function
|
|
4124
|
+
function Co(t, e) {
|
|
4088
4125
|
if (typeof t != "object" || !t)
|
|
4089
4126
|
return t;
|
|
4090
4127
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4096,10 +4133,10 @@ function ko(t, e) {
|
|
|
4096
4133
|
}
|
|
4097
4134
|
return (e === "string" ? String : Number)(t);
|
|
4098
4135
|
}
|
|
4099
|
-
class
|
|
4136
|
+
class Vo {
|
|
4100
4137
|
constructor(e) {
|
|
4101
4138
|
if (de(this, "context", void 0), de(this, "contextInfo", void 0), de(this, "providers", {}), de(this, "requestContext", void 0), de(this, "adsRequest", void 0), de(this, "initialized", !1), e)
|
|
4102
|
-
this.context = e, this.requestContext = new
|
|
4139
|
+
this.context = e, this.requestContext = new _t(e), this.adsRequest = new Ci(e, {
|
|
4103
4140
|
reward: !1,
|
|
4104
4141
|
interstitial: !1,
|
|
4105
4142
|
afv: !1
|
|
@@ -4121,22 +4158,22 @@ class Mo {
|
|
|
4121
4158
|
for (const i of e)
|
|
4122
4159
|
switch (i.provider) {
|
|
4123
4160
|
case "GOOGLE_GPT": {
|
|
4124
|
-
const n = new
|
|
4161
|
+
const n = new Oo(this.context);
|
|
4125
4162
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4126
4163
|
break;
|
|
4127
4164
|
}
|
|
4128
4165
|
case "GOOGLE_IMA": {
|
|
4129
|
-
const n = new
|
|
4166
|
+
const n = new Ao(this.context);
|
|
4130
4167
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4131
4168
|
break;
|
|
4132
4169
|
}
|
|
4133
4170
|
case "OKSPIN": {
|
|
4134
|
-
const n = new
|
|
4171
|
+
const n = new So(this.context);
|
|
4135
4172
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4136
4173
|
break;
|
|
4137
4174
|
}
|
|
4138
4175
|
case "APPSROCKETS": {
|
|
4139
|
-
const n = new
|
|
4176
|
+
const n = new Io(this.context);
|
|
4140
4177
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4141
4178
|
break;
|
|
4142
4179
|
}
|
|
@@ -4153,55 +4190,59 @@ class Mo {
|
|
|
4153
4190
|
this.initialized = !1;
|
|
4154
4191
|
}
|
|
4155
4192
|
async requestAd(e) {
|
|
4156
|
-
var i, n, r, o, s, a, d;
|
|
4193
|
+
var i, n, r, o, s, a, d, l, u, h, c;
|
|
4157
4194
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
4158
|
-
const
|
|
4159
|
-
(n = e.onAdError) == null || n.call(e,
|
|
4195
|
+
const f = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
4196
|
+
(n = e.onAdError) == null || n.call(e, f);
|
|
4160
4197
|
return;
|
|
4161
4198
|
}
|
|
4162
4199
|
try {
|
|
4163
|
-
const
|
|
4164
|
-
if (
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4200
|
+
const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, g = f == null ? void 0 : f.data;
|
|
4201
|
+
if (w === "BYPASS_ADS") {
|
|
4202
|
+
(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);
|
|
4203
|
+
return;
|
|
4204
|
+
}
|
|
4205
|
+
if (g) {
|
|
4206
|
+
const p = g == null ? void 0 : g.sort((T, R) => T.seq - R.seq);
|
|
4207
|
+
if (p.length === 0) {
|
|
4208
|
+
const T = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
4209
|
+
(l = e.onAdError) == null || l.call(e, T);
|
|
4169
4210
|
return;
|
|
4170
4211
|
}
|
|
4171
|
-
let
|
|
4172
|
-
const
|
|
4173
|
-
for (;
|
|
4174
|
-
const
|
|
4175
|
-
if (
|
|
4176
|
-
const [
|
|
4177
|
-
|
|
4212
|
+
let y = !0, v = null;
|
|
4213
|
+
const b = new lo(this.context);
|
|
4214
|
+
for (; p.length > 0; ) {
|
|
4215
|
+
const T = p.shift(), R = this.providers[T.provider];
|
|
4216
|
+
if (R) {
|
|
4217
|
+
const [O, A] = await b.callAdRequestAndContinue(R, e, T);
|
|
4218
|
+
y = O, v = A;
|
|
4178
4219
|
} else
|
|
4179
|
-
|
|
4180
|
-
if (!
|
|
4220
|
+
y = !0, v = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
4221
|
+
if (!y)
|
|
4181
4222
|
break;
|
|
4182
4223
|
}
|
|
4183
|
-
|
|
4224
|
+
y && v && ((u = e.onAdError) == null || u.call(e, v));
|
|
4184
4225
|
} else {
|
|
4185
|
-
const
|
|
4186
|
-
(
|
|
4226
|
+
const p = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4227
|
+
(d = e.onAdError) == null || d.call(e, p);
|
|
4187
4228
|
return;
|
|
4188
4229
|
}
|
|
4189
|
-
} catch (
|
|
4190
|
-
const
|
|
4191
|
-
(
|
|
4230
|
+
} catch (f) {
|
|
4231
|
+
const w = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
4232
|
+
(h = e.onAdError) == null || h.call(e, w);
|
|
4192
4233
|
} finally {
|
|
4193
|
-
(
|
|
4234
|
+
(c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1);
|
|
4194
4235
|
}
|
|
4195
4236
|
}
|
|
4196
4237
|
}
|
|
4197
4238
|
function le(t, e, i) {
|
|
4198
|
-
return (e =
|
|
4239
|
+
return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4199
4240
|
}
|
|
4200
|
-
function
|
|
4201
|
-
var e =
|
|
4241
|
+
function Do(t) {
|
|
4242
|
+
var e = Lo(t, "string");
|
|
4202
4243
|
return typeof e == "symbol" ? e : e + "";
|
|
4203
4244
|
}
|
|
4204
|
-
function
|
|
4245
|
+
function Lo(t, e) {
|
|
4205
4246
|
if (typeof t != "object" || !t)
|
|
4206
4247
|
return t;
|
|
4207
4248
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4213,21 +4254,21 @@ function Ro(t, e) {
|
|
|
4213
4254
|
}
|
|
4214
4255
|
return (e === "string" ? String : Number)(t);
|
|
4215
4256
|
}
|
|
4216
|
-
class
|
|
4257
|
+
class Go extends Error {
|
|
4217
4258
|
constructor(e) {
|
|
4218
4259
|
super(e), le(this, "name", void 0), le(this, "message", void 0), le(this, "errMsg", void 0), le(this, "code", void 0), le(this, "data", void 0), le(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4219
4260
|
}
|
|
4220
4261
|
}
|
|
4221
4262
|
export {
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4263
|
+
P as AFVWrappedError,
|
|
4264
|
+
Cn as GoogleAdSenseProvider,
|
|
4265
|
+
Ao as GoogleIMAProvider,
|
|
4266
|
+
Jr as InterstitialAdManager,
|
|
4267
|
+
Bo as JoliboxAdsForGame,
|
|
4268
|
+
Vo as JoliboxAdsForVideo,
|
|
4269
|
+
Ur as OKSpinForGameProvider,
|
|
4270
|
+
So as OKSpinForVideoProvider,
|
|
4271
|
+
Go as ResponseError,
|
|
4272
|
+
Ti as RewardAdManager,
|
|
4273
|
+
Oi as initGPTServices
|
|
4233
4274
|
};
|