@jolibox/ads 1.1.50 → 1.1.52-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +679 -649
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var It = Object.getOwnPropertySymbols;
|
|
2
|
+
var Mi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var Rt = (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
|
+
Mi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && It)
|
|
8
|
+
for (var n of It(t))
|
|
9
|
+
e.indexOf(n) < 0 && $i.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as
|
|
13
|
-
import { useRef as Fi, useLayoutEffect as Ui, useEffect as
|
|
14
|
-
var
|
|
12
|
+
import { options as ve, Component as ji, isValidElement as Bi } from "preact";
|
|
13
|
+
import { useRef as Fi, useLayoutEffect as Ui, useEffect as Je, useMemo as Vi, useState as Qt, useCallback as Gi, render as oe, createRef as xt } from "preact/compat";
|
|
14
|
+
var Zt = Object.defineProperty, qi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, zi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Tt = (t, e, i) => e in t ? Zt(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, Wi = (t, e) => {
|
|
20
20
|
for (var i in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var i of
|
|
24
|
-
|
|
21
|
+
zi.call(e, i) && Tt(t, i, e[i]);
|
|
22
|
+
if (Ot)
|
|
23
|
+
for (var i of Ot(e))
|
|
24
|
+
Hi.call(e, i) && Tt(t, i, e[i]);
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
26
|
+
}, Ji = (t, e) => qi(t, Ki(e)), Yi = (t, e) => {
|
|
27
27
|
for (var i in e)
|
|
28
|
-
|
|
28
|
+
Zt(t, i, {
|
|
29
29
|
get: e[i],
|
|
30
30
|
enumerable: !0
|
|
31
31
|
});
|
|
32
|
-
},
|
|
32
|
+
}, ei = (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
|
+
}, Xi = (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 Qi(t) {
|
|
82
82
|
return new Promise((e) => {
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
e();
|
|
85
85
|
}, t);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function Qi(t) {
|
|
89
|
-
return typeof t == "string";
|
|
90
|
-
}
|
|
91
88
|
function Zi(t) {
|
|
92
|
-
return typeof t == "
|
|
89
|
+
return typeof t == "string";
|
|
93
90
|
}
|
|
94
91
|
function en(t) {
|
|
95
|
-
return
|
|
92
|
+
return typeof t == "undefined";
|
|
96
93
|
}
|
|
97
94
|
function tn(t) {
|
|
95
|
+
return en(t) || t === null;
|
|
96
|
+
}
|
|
97
|
+
function nn(t) {
|
|
98
98
|
return typeof t == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ti(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 ei(t) {
|
|
|
105
105
|
};
|
|
106
106
|
return n.prototype = e.prototype, n;
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var rn = ((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))(rn || {});
|
|
109
|
+
function Ae(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 on = {
|
|
116
|
+
log: Ae("log"),
|
|
117
|
+
warn: Ae("warn"),
|
|
118
|
+
info: Ae("info"),
|
|
119
|
+
error: Ae("error"),
|
|
120
|
+
debug: Ae("debug")
|
|
121
121
|
};
|
|
122
122
|
Object.assign(globalThis, {
|
|
123
|
-
logger:
|
|
123
|
+
logger: on
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
globalThis[Tt] || (globalThis[Tt] = on);
|
|
127
|
-
var Ct = Symbol.for("Jolibox.canIUseMap.native"), sn = {};
|
|
125
|
+
var Ct = Symbol.for("Jolibox.canIUseMap"), sn = {};
|
|
128
126
|
globalThis[Ct] || (globalThis[Ct] = sn);
|
|
129
|
-
var
|
|
130
|
-
|
|
127
|
+
var Dt = Symbol.for("Jolibox.canIUseMap.native"), an = {};
|
|
128
|
+
globalThis[Dt] || (globalThis[Dt] = an);
|
|
129
|
+
var ii = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(ii || {}), ni = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ni || {}), ri = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(ri || {}), Lt = ["name", "params"], dn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], ln = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
130
|
+
function je(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 $e(t, e) {
|
|
|
136
136
|
return t[i];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e = t.location ?
|
|
141
|
-
return
|
|
139
|
+
function un(t) {
|
|
140
|
+
let e = t.location ? je(t.location, Lt) : null, i = t.target ? je(t.target, Lt) : null;
|
|
141
|
+
return je(Ji(Wi({}, t), {
|
|
142
142
|
location: e,
|
|
143
143
|
target: i
|
|
144
|
-
}),
|
|
144
|
+
}), dn);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let e = t.events.map((n) =>
|
|
146
|
+
function cn(t) {
|
|
147
|
+
let e = t.events.map((n) => un(n)), i = je(t.device, ln);
|
|
148
148
|
return [t.protocolVersion, e, i, t.project];
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function hn() {
|
|
151
151
|
if (typeof window == "undefined")
|
|
152
152
|
return {
|
|
153
153
|
getItem: () => null,
|
|
@@ -180,16 +180,16 @@ function cn() {
|
|
|
180
180
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
var
|
|
185
|
-
!
|
|
186
|
-
var
|
|
183
|
+
hn();
|
|
184
|
+
var ce = typeof window == "undefined", at = () => !ce && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
185
|
+
!ce && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ce && navigator.userAgent.includes("Android"), !ce && navigator.userAgent.includes("Mac"), !ce && navigator.userAgent.includes("FB_IAB"), !ce && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
186
|
+
var dt = class lt {
|
|
187
187
|
constructor(e) {
|
|
188
|
-
this.element = e, this.next =
|
|
188
|
+
this.element = e, this.next = lt.Undefined, this.prev = lt.Undefined;
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
var x =
|
|
191
|
+
dt.Undefined = new dt(void 0);
|
|
192
|
+
var x = dt, fn = class {
|
|
193
193
|
constructor() {
|
|
194
194
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
195
195
|
}
|
|
@@ -255,17 +255,17 @@ var x = at, hn = class {
|
|
|
255
255
|
for (; t !== x.Undefined; )
|
|
256
256
|
yield t.element, t = t.next;
|
|
257
257
|
}
|
|
258
|
-
},
|
|
258
|
+
}, vn = 0, _e = class {
|
|
259
259
|
constructor(t) {
|
|
260
|
-
this.value = t, this.id =
|
|
260
|
+
this.value = t, this.id = vn++;
|
|
261
261
|
}
|
|
262
|
-
},
|
|
262
|
+
}, ke = class {
|
|
263
263
|
constructor(e) {
|
|
264
264
|
this.options = e, this._size = 0;
|
|
265
265
|
}
|
|
266
266
|
dispose(e) {
|
|
267
267
|
var i, n;
|
|
268
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
268
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof _e && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
269
269
|
}
|
|
270
270
|
get event() {
|
|
271
271
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -275,11 +275,11 @@ var x = at, hn = class {
|
|
|
275
275
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
276
276
|
};
|
|
277
277
|
i && (e = e.bind(i));
|
|
278
|
-
let l = new
|
|
279
|
-
return this._listeners ? this._listeners instanceof
|
|
278
|
+
let l = new _e(e);
|
|
279
|
+
return this._listeners ? this._listeners instanceof _e ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
280
280
|
var u, h, c, f;
|
|
281
281
|
if (!this._disposed) {
|
|
282
|
-
if (this._listeners instanceof
|
|
282
|
+
if (this._listeners instanceof _e)
|
|
283
283
|
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));
|
|
284
284
|
else if (this._listeners) {
|
|
285
285
|
let w = this._listeners.indexOf(l);
|
|
@@ -305,19 +305,19 @@ var x = at, hn = class {
|
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
fire(e) {
|
|
308
|
-
this._listeners && (this._listeners instanceof
|
|
308
|
+
this._listeners && (this._listeners instanceof _e ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
309
309
|
}
|
|
310
310
|
hasListeners() {
|
|
311
311
|
return this._size > 0;
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, gn = class {
|
|
314
314
|
constructor() {
|
|
315
315
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
316
316
|
}
|
|
317
317
|
on(t, e) {
|
|
318
318
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
319
319
|
var n;
|
|
320
|
-
let r = (n = this.listeners.get(t)) != null ? n : new
|
|
320
|
+
let r = (n = this.listeners.get(t)) != null ? n : new ke(), o = (d) => e(...d.args), s = r.event(o);
|
|
321
321
|
this.listerHandlerMap.set(e, {
|
|
322
322
|
handler: o,
|
|
323
323
|
dispose: s
|
|
@@ -338,7 +338,7 @@ var x = at, hn = class {
|
|
|
338
338
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
339
339
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
340
340
|
r[o - 1] = arguments[o];
|
|
341
|
-
i || (i = new
|
|
341
|
+
i || (i = new fn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
342
342
|
args: r
|
|
343
343
|
}), e && e.fire({
|
|
344
344
|
event: t,
|
|
@@ -352,20 +352,20 @@ var x = at, hn = class {
|
|
|
352
352
|
};
|
|
353
353
|
this.on(t, n, !1);
|
|
354
354
|
}
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
None: () =>
|
|
358
|
-
filter: () =>
|
|
359
|
-
once: () =>
|
|
360
|
-
toPromise: () =>
|
|
355
|
+
}, ut = {};
|
|
356
|
+
Yi(ut, {
|
|
357
|
+
None: () => yn,
|
|
358
|
+
filter: () => pn,
|
|
359
|
+
once: () => oi,
|
|
360
|
+
toPromise: () => wn
|
|
361
361
|
});
|
|
362
|
-
var
|
|
362
|
+
var yn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
363
363
|
console.log("[Jolibox SDK] None Event dispose");
|
|
364
364
|
});
|
|
365
|
-
function
|
|
366
|
-
return new Promise((e) =>
|
|
365
|
+
function wn(t) {
|
|
366
|
+
return new Promise((e) => oi(t)(e));
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function oi(t) {
|
|
369
369
|
return function(e) {
|
|
370
370
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
371
371
|
return t((r) => {
|
|
@@ -374,52 +374,52 @@ function ri(t) {
|
|
|
374
374
|
}, null);
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function pn(t, e) {
|
|
378
378
|
return ((i) => {
|
|
379
379
|
let n = {
|
|
380
380
|
onWillAddFirstListener() {
|
|
381
381
|
i(r.fire, r);
|
|
382
382
|
}
|
|
383
|
-
}, r = new
|
|
383
|
+
}, r = new ke(n);
|
|
384
384
|
return r.event;
|
|
385
385
|
})(function(i) {
|
|
386
386
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
387
387
|
return t((r) => e(r) && i.call(n, r), null);
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
var
|
|
391
|
-
let t = new
|
|
392
|
-
return globalThis[
|
|
390
|
+
var et = Symbol.for("Jolibox.hostEmitter"), bn = () => {
|
|
391
|
+
let t = new gn();
|
|
392
|
+
return globalThis[et] || (globalThis[et] = {
|
|
393
393
|
on: t.on.bind(t),
|
|
394
394
|
off: t.off.bind(t),
|
|
395
395
|
emit: t.emit.bind(t),
|
|
396
396
|
once: t.once.bind(t)
|
|
397
|
-
}), globalThis[
|
|
397
|
+
}), globalThis[et];
|
|
398
398
|
};
|
|
399
|
-
|
|
400
|
-
function
|
|
399
|
+
bn();
|
|
400
|
+
function An(t, e) {
|
|
401
401
|
let i = Math.min(t.length, e.length);
|
|
402
402
|
for (let n = 0; n < i; n++)
|
|
403
|
-
|
|
403
|
+
_n(t[n], e[n]);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
if (
|
|
405
|
+
function _n(t, e) {
|
|
406
|
+
if (Zi(e)) {
|
|
407
407
|
if (typeof t !== e)
|
|
408
408
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
409
|
-
} else if (
|
|
409
|
+
} else if (nn(e)) {
|
|
410
410
|
try {
|
|
411
411
|
if (t instanceof e)
|
|
412
412
|
return;
|
|
413
413
|
} catch (i) {
|
|
414
414
|
}
|
|
415
|
-
if (!
|
|
415
|
+
if (!tn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
416
416
|
return;
|
|
417
417
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var ct = class {
|
|
421
421
|
constructor() {
|
|
422
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
422
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ke(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
423
423
|
}
|
|
424
424
|
registerCommand(e) {
|
|
425
425
|
if (!e)
|
|
@@ -432,7 +432,7 @@ var ut = class {
|
|
|
432
432
|
e.handler = function() {
|
|
433
433
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
434
434
|
s[a] = arguments[a];
|
|
435
|
-
return
|
|
435
|
+
return An(s, n), r(...s);
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
let {
|
|
@@ -452,19 +452,19 @@ var ut = class {
|
|
|
452
452
|
return e;
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
-
|
|
456
|
-
var
|
|
455
|
+
ct = ei([ti], ct);
|
|
456
|
+
var Pt = class {
|
|
457
457
|
constructor() {
|
|
458
|
-
this._onWillExecuteCommand = new
|
|
458
|
+
this._onWillExecuteCommand = new ke(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ke(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ct(), this._starActivation = null;
|
|
459
459
|
}
|
|
460
460
|
_activateStar() {
|
|
461
|
-
return this._starActivation || (this._starActivation =
|
|
461
|
+
return this._starActivation || (this._starActivation = Qi(3e4)), this._starActivation;
|
|
462
462
|
}
|
|
463
463
|
executeCommand(e) {
|
|
464
464
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
465
465
|
n[r - 1] = arguments[r];
|
|
466
|
-
return
|
|
467
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
466
|
+
return Xi(this, null, function* () {
|
|
467
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), ut.toPromise(ut.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
executeCommandThowErr(e) {
|
|
@@ -510,15 +510,15 @@ var Lt = class {
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
};
|
|
513
|
-
|
|
514
|
-
function
|
|
515
|
-
return (e =
|
|
513
|
+
Pt = ei([ti], Pt);
|
|
514
|
+
function U(t, e, i) {
|
|
515
|
+
return (e = mn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
var e =
|
|
517
|
+
function mn(t) {
|
|
518
|
+
var e = Sn(t, "string");
|
|
519
519
|
return typeof e == "symbol" ? e : e + "";
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Sn(t, e) {
|
|
522
522
|
if (typeof t != "object" || !t)
|
|
523
523
|
return t;
|
|
524
524
|
var i = t[Symbol.toPrimitive];
|
|
@@ -530,22 +530,35 @@ function mn(t, e) {
|
|
|
530
530
|
}
|
|
531
531
|
return (e === "string" ? String : Number)(t);
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
const ae = (t) => t ? function() {
|
|
534
|
+
try {
|
|
535
|
+
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
536
|
+
i[n] = arguments[n];
|
|
537
|
+
t == null || t(i);
|
|
538
|
+
} catch (r) {
|
|
539
|
+
console.error("Error calling function", r);
|
|
540
|
+
}
|
|
541
|
+
} : () => {
|
|
542
|
+
console.log("wrapUserFunction: fn is undefined");
|
|
543
|
+
};
|
|
544
|
+
class En {
|
|
534
545
|
constructor(e) {
|
|
535
|
-
|
|
536
|
-
var
|
|
546
|
+
U(this, "context", void 0), U(this, "continueCallback", void 0), U(this, "adIsShowingCallback", void 0), U(this, "isBeforeAdCalled", !1), U(this, "isBeforeRewardCalled", !1), U(this, "isAdDismissedCalled", !1), U(this, "isAdViewedCalled", !1), U(this, "isAfterAdCalled", !1), U(this, "currentProvider", void 0), U(this, "currentClientParams", void 0), U(this, "adsHasResponse", !1), U(this, "videoChecker", window.document.createElement("video")), U(this, "contextInfo", void 0), U(this, "wrapShowAdFn", (i) => () => {
|
|
547
|
+
var o, s, a;
|
|
537
548
|
this.adsHasResponse = !0;
|
|
538
549
|
let n = !1;
|
|
539
550
|
this.videoChecker.play().catch(() => {
|
|
540
551
|
n = !1;
|
|
541
552
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
542
553
|
userEvent: n
|
|
543
|
-
}, this.paramsToTrack)),
|
|
544
|
-
ad_network: (
|
|
554
|
+
}, this.paramsToTrack)), at() && this.context.track("mmp_ad_impression", {
|
|
555
|
+
ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
|
|
545
556
|
ad_format: "rewarded",
|
|
546
557
|
module: "game",
|
|
547
558
|
game_id: this.contextInfo.objectId
|
|
548
|
-
}), (
|
|
559
|
+
}), (a = this.adIsShowingCallback) == null || a.call(this, !0);
|
|
560
|
+
const r = ae(i);
|
|
561
|
+
r == null || r();
|
|
549
562
|
}), this.context = e, this.contextInfo = e.getContextInfo();
|
|
550
563
|
}
|
|
551
564
|
get paramsToTrack() {
|
|
@@ -559,12 +572,16 @@ class Sn {
|
|
|
559
572
|
wrapBeforeAd(e) {
|
|
560
573
|
return () => {
|
|
561
574
|
var i, n, r, o;
|
|
562
|
-
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
575
|
+
if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), !this.isBeforeAdCalled) {
|
|
576
|
+
this.isBeforeAdCalled = !0;
|
|
577
|
+
const s = ae(e);
|
|
578
|
+
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), at() && this.context.track("mmp_ad_impression", {
|
|
579
|
+
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
580
|
+
ad_format: "interstitial",
|
|
581
|
+
module: "game",
|
|
582
|
+
game_id: this.contextInfo.objectId
|
|
583
|
+
}));
|
|
584
|
+
}
|
|
568
585
|
};
|
|
569
586
|
}
|
|
570
587
|
wrapBeforeReward(e) {
|
|
@@ -574,17 +591,29 @@ class Sn {
|
|
|
574
591
|
}
|
|
575
592
|
wrapAdDismissed(e) {
|
|
576
593
|
return () => {
|
|
577
|
-
this.adsHasResponse = !0, this.isAdDismissedCalled
|
|
594
|
+
if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
|
|
595
|
+
this.isAdDismissedCalled = !0;
|
|
596
|
+
const i = ae(e);
|
|
597
|
+
i == null || i();
|
|
598
|
+
}
|
|
578
599
|
};
|
|
579
600
|
}
|
|
580
601
|
wrapAdViewed(e) {
|
|
581
602
|
return () => {
|
|
582
|
-
this.adsHasResponse = !0, this.isAdViewedCalled
|
|
603
|
+
if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
|
|
604
|
+
this.isAdViewedCalled = !0;
|
|
605
|
+
const i = ae(e);
|
|
606
|
+
i == null || i();
|
|
607
|
+
}
|
|
583
608
|
};
|
|
584
609
|
}
|
|
585
610
|
wrapAfterAd(e) {
|
|
586
611
|
return () => {
|
|
587
|
-
this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.isAfterAdCalled
|
|
612
|
+
if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), !this.isAfterAdCalled) {
|
|
613
|
+
this.isAfterAdCalled = !0;
|
|
614
|
+
const i = ae(e);
|
|
615
|
+
i == null || i();
|
|
616
|
+
}
|
|
588
617
|
};
|
|
589
618
|
}
|
|
590
619
|
wrapAdBreakDone(e) {
|
|
@@ -601,7 +630,8 @@ class Sn {
|
|
|
601
630
|
case "ignored":
|
|
602
631
|
case "dismissed":
|
|
603
632
|
case "error": {
|
|
604
|
-
|
|
633
|
+
const l = ae(e);
|
|
634
|
+
l == null || l(i), (s = this.adIsShowingCallback) == null || s.call(this, !1), (a = this.continueCallback) == null || a.call(this, [!1, i]);
|
|
605
635
|
break;
|
|
606
636
|
}
|
|
607
637
|
default: {
|
|
@@ -668,14 +698,14 @@ class Sn {
|
|
|
668
698
|
});
|
|
669
699
|
}
|
|
670
700
|
}
|
|
671
|
-
function
|
|
672
|
-
return (e =
|
|
701
|
+
function Pe(t, e, i) {
|
|
702
|
+
return (e = kn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
673
703
|
}
|
|
674
|
-
function
|
|
675
|
-
var e =
|
|
704
|
+
function kn(t) {
|
|
705
|
+
var e = In(t, "string");
|
|
676
706
|
return typeof e == "symbol" ? e : e + "";
|
|
677
707
|
}
|
|
678
|
-
function
|
|
708
|
+
function In(t, e) {
|
|
679
709
|
if (typeof t != "object" || !t)
|
|
680
710
|
return t;
|
|
681
711
|
var i = t[Symbol.toPrimitive];
|
|
@@ -687,13 +717,13 @@ function kn(t, e) {
|
|
|
687
717
|
}
|
|
688
718
|
return (e === "string" ? String : Number)(t);
|
|
689
719
|
}
|
|
690
|
-
class
|
|
720
|
+
class Rn {
|
|
691
721
|
constructor(e) {
|
|
692
|
-
|
|
722
|
+
Pe(this, "context", void 0), Pe(this, "adBreakIsShowing", !1), Pe(this, "reportPageJumpOut", () => {
|
|
693
723
|
this.context.track("AdBreakJumpOut", {
|
|
694
724
|
context: "AdsActionDetection"
|
|
695
725
|
});
|
|
696
|
-
}),
|
|
726
|
+
}), Pe(this, "reportPageHide", () => {
|
|
697
727
|
this.context.track("AdBreakHide", {
|
|
698
728
|
context: "AdsActionDetection"
|
|
699
729
|
});
|
|
@@ -704,14 +734,14 @@ class In {
|
|
|
704
734
|
});
|
|
705
735
|
}
|
|
706
736
|
}
|
|
707
|
-
function
|
|
708
|
-
return (e =
|
|
737
|
+
function Ne(t, e, i) {
|
|
738
|
+
return (e = xn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
709
739
|
}
|
|
710
|
-
function
|
|
711
|
-
var e =
|
|
740
|
+
function xn(t) {
|
|
741
|
+
var e = On(t, "string");
|
|
712
742
|
return typeof e == "symbol" ? e : e + "";
|
|
713
743
|
}
|
|
714
|
-
function
|
|
744
|
+
function On(t, e) {
|
|
715
745
|
if (typeof t != "object" || !t)
|
|
716
746
|
return t;
|
|
717
747
|
var i = t[Symbol.toPrimitive];
|
|
@@ -723,9 +753,9 @@ function xn(t, e) {
|
|
|
723
753
|
}
|
|
724
754
|
return (e === "string" ? String : Number)(t);
|
|
725
755
|
}
|
|
726
|
-
class
|
|
756
|
+
class Tn {
|
|
727
757
|
constructor(e) {
|
|
728
|
-
|
|
758
|
+
Ne(this, "configs", null), Ne(this, "firstRun", !0), Ne(this, "context", void 0), Ne(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
729
759
|
}
|
|
730
760
|
async init() {
|
|
731
761
|
try {
|
|
@@ -750,13 +780,13 @@ class On {
|
|
|
750
780
|
}
|
|
751
781
|
}
|
|
752
782
|
function Q(t, e, i) {
|
|
753
|
-
return (e =
|
|
783
|
+
return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
754
784
|
}
|
|
755
|
-
function
|
|
756
|
-
var e =
|
|
785
|
+
function Cn(t) {
|
|
786
|
+
var e = Dn(t, "string");
|
|
757
787
|
return typeof e == "symbol" ? e : e + "";
|
|
758
788
|
}
|
|
759
|
-
function
|
|
789
|
+
function Dn(t, e) {
|
|
760
790
|
if (typeof t != "object" || !t)
|
|
761
791
|
return t;
|
|
762
792
|
var i = t[Symbol.toPrimitive];
|
|
@@ -768,7 +798,7 @@ function Cn(t, e) {
|
|
|
768
798
|
}
|
|
769
799
|
return (e === "string" ? String : Number)(t);
|
|
770
800
|
}
|
|
771
|
-
class
|
|
801
|
+
class Ln {
|
|
772
802
|
/**
|
|
773
803
|
* Internal constructor, should not be called directly
|
|
774
804
|
*/
|
|
@@ -779,7 +809,7 @@ class Dn {
|
|
|
779
809
|
}), Q(this, "adConfig", (n) => {
|
|
780
810
|
const s = n, {
|
|
781
811
|
onReady: r
|
|
782
|
-
} = s, o =
|
|
812
|
+
} = s, o = Rt(s, [
|
|
783
813
|
"onReady"
|
|
784
814
|
]);
|
|
785
815
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
@@ -846,18 +876,18 @@ class Dn {
|
|
|
846
876
|
}
|
|
847
877
|
}
|
|
848
878
|
}
|
|
849
|
-
function
|
|
879
|
+
function Pn(t) {
|
|
850
880
|
if (t.sheet)
|
|
851
881
|
return t.sheet;
|
|
852
882
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
853
883
|
if (document.styleSheets[e].ownerNode === t)
|
|
854
884
|
return document.styleSheets[e];
|
|
855
885
|
}
|
|
856
|
-
function
|
|
886
|
+
function Nn(t) {
|
|
857
887
|
var e = document.createElement("style");
|
|
858
888
|
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;
|
|
859
889
|
}
|
|
860
|
-
var
|
|
890
|
+
var Mn = /* @__PURE__ */ function() {
|
|
861
891
|
function t(i) {
|
|
862
892
|
var n = this;
|
|
863
893
|
this._insertTag = function(r) {
|
|
@@ -869,10 +899,10 @@ var Nn = /* @__PURE__ */ function() {
|
|
|
869
899
|
return e.hydrate = function(n) {
|
|
870
900
|
n.forEach(this._insertTag);
|
|
871
901
|
}, e.insert = function(n) {
|
|
872
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
902
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Nn(this));
|
|
873
903
|
var r = this.tags[this.tags.length - 1];
|
|
874
904
|
if (this.isSpeedy) {
|
|
875
|
-
var o =
|
|
905
|
+
var o = Pn(r);
|
|
876
906
|
try {
|
|
877
907
|
o.insertRule(n, o.cssRules.length);
|
|
878
908
|
} catch (s) {
|
|
@@ -886,66 +916,66 @@ var Nn = /* @__PURE__ */ function() {
|
|
|
886
916
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
887
917
|
}), this.tags = [], this.ctr = 0;
|
|
888
918
|
}, t;
|
|
889
|
-
}(), j = "-ms-",
|
|
919
|
+
}(), j = "-ms-", Ke = "-moz-", m = "-webkit-", si = "comm", bt = "rule", At = "decl", $n = "@import", ai = "@keyframes", jn = "@layer", Bn = Math.abs, Ye = String.fromCharCode, Fn = Object.assign;
|
|
890
920
|
function Un(t, e) {
|
|
891
921
|
return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
|
|
892
922
|
}
|
|
893
|
-
function
|
|
923
|
+
function di(t) {
|
|
894
924
|
return t.trim();
|
|
895
925
|
}
|
|
896
|
-
function
|
|
926
|
+
function Vn(t, e) {
|
|
897
927
|
return (t = e.exec(t)) ? t[0] : t;
|
|
898
928
|
}
|
|
899
929
|
function S(t, e, i) {
|
|
900
930
|
return t.replace(e, i);
|
|
901
931
|
}
|
|
902
|
-
function
|
|
932
|
+
function ht(t, e) {
|
|
903
933
|
return t.indexOf(e);
|
|
904
934
|
}
|
|
905
935
|
function N(t, e) {
|
|
906
936
|
return t.charCodeAt(e) | 0;
|
|
907
937
|
}
|
|
908
|
-
function
|
|
938
|
+
function Ie(t, e, i) {
|
|
909
939
|
return t.slice(e, i);
|
|
910
940
|
}
|
|
911
941
|
function Y(t) {
|
|
912
942
|
return t.length;
|
|
913
943
|
}
|
|
914
|
-
function
|
|
944
|
+
function _t(t) {
|
|
915
945
|
return t.length;
|
|
916
946
|
}
|
|
917
|
-
function
|
|
947
|
+
function Me(t, e) {
|
|
918
948
|
return e.push(t), t;
|
|
919
949
|
}
|
|
920
|
-
function
|
|
950
|
+
function Gn(t, e) {
|
|
921
951
|
return t.map(e).join("");
|
|
922
952
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
925
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
953
|
+
var Xe = 1, ge = 1, li = 0, G = 0, C = 0, ye = "";
|
|
954
|
+
function Qe(t, e, i, n, r, o, s) {
|
|
955
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Xe, column: ge, length: s, return: "" };
|
|
926
956
|
}
|
|
927
|
-
function
|
|
928
|
-
return Fn(
|
|
957
|
+
function me(t, e) {
|
|
958
|
+
return Fn(Qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
929
959
|
}
|
|
930
|
-
function
|
|
960
|
+
function qn() {
|
|
931
961
|
return C;
|
|
932
962
|
}
|
|
933
|
-
function
|
|
934
|
-
return C = G > 0 ? N(
|
|
963
|
+
function Kn() {
|
|
964
|
+
return C = G > 0 ? N(ye, --G) : 0, ge--, C === 10 && (ge = 1, Xe--), C;
|
|
935
965
|
}
|
|
936
966
|
function K() {
|
|
937
|
-
return C = G <
|
|
967
|
+
return C = G < li ? N(ye, G++) : 0, ge++, C === 10 && (ge = 1, Xe++), C;
|
|
938
968
|
}
|
|
939
969
|
function X() {
|
|
940
|
-
return N(
|
|
970
|
+
return N(ye, G);
|
|
941
971
|
}
|
|
942
|
-
function
|
|
972
|
+
function Be() {
|
|
943
973
|
return G;
|
|
944
974
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
975
|
+
function xe(t, e) {
|
|
976
|
+
return Ie(ye, t, e);
|
|
947
977
|
}
|
|
948
|
-
function
|
|
978
|
+
function Re(t) {
|
|
949
979
|
switch (t) {
|
|
950
980
|
case 0:
|
|
951
981
|
case 9:
|
|
@@ -977,36 +1007,36 @@ function Ie(t) {
|
|
|
977
1007
|
}
|
|
978
1008
|
return 0;
|
|
979
1009
|
}
|
|
980
|
-
function li(t) {
|
|
981
|
-
return Ye = ve = 1, di = Y(ge = t), G = 0, [];
|
|
982
|
-
}
|
|
983
1010
|
function ui(t) {
|
|
984
|
-
return ge =
|
|
1011
|
+
return Xe = ge = 1, li = Y(ye = t), G = 0, [];
|
|
1012
|
+
}
|
|
1013
|
+
function ci(t) {
|
|
1014
|
+
return ye = "", t;
|
|
985
1015
|
}
|
|
986
1016
|
function Fe(t) {
|
|
987
|
-
return
|
|
1017
|
+
return di(xe(G - 1, ft(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
988
1018
|
}
|
|
989
|
-
function
|
|
1019
|
+
function zn(t) {
|
|
990
1020
|
for (; (C = X()) && C < 33; )
|
|
991
1021
|
K();
|
|
992
|
-
return
|
|
1022
|
+
return Re(t) > 2 || Re(C) > 3 ? "" : " ";
|
|
993
1023
|
}
|
|
994
|
-
function
|
|
1024
|
+
function Hn(t, e) {
|
|
995
1025
|
for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
996
1026
|
;
|
|
997
|
-
return
|
|
1027
|
+
return xe(t, Be() + (e < 6 && X() == 32 && K() == 32));
|
|
998
1028
|
}
|
|
999
|
-
function
|
|
1029
|
+
function ft(t) {
|
|
1000
1030
|
for (; K(); )
|
|
1001
1031
|
switch (C) {
|
|
1002
1032
|
case t:
|
|
1003
1033
|
return G;
|
|
1004
1034
|
case 34:
|
|
1005
1035
|
case 39:
|
|
1006
|
-
t !== 34 && t !== 39 &&
|
|
1036
|
+
t !== 34 && t !== 39 && ft(C);
|
|
1007
1037
|
break;
|
|
1008
1038
|
case 40:
|
|
1009
|
-
t === 41 &&
|
|
1039
|
+
t === 41 && ft(t);
|
|
1010
1040
|
break;
|
|
1011
1041
|
case 92:
|
|
1012
1042
|
K();
|
|
@@ -1014,26 +1044,26 @@ function ht(t) {
|
|
|
1014
1044
|
}
|
|
1015
1045
|
return G;
|
|
1016
1046
|
}
|
|
1017
|
-
function
|
|
1047
|
+
function Wn(t, e) {
|
|
1018
1048
|
for (; K() && t + C !== 57; )
|
|
1019
1049
|
if (t + C === 84 && X() === 47)
|
|
1020
1050
|
break;
|
|
1021
|
-
return "/*" +
|
|
1051
|
+
return "/*" + xe(e, G - 1) + "*" + Ye(t === 47 ? t : K());
|
|
1022
1052
|
}
|
|
1023
|
-
function
|
|
1024
|
-
for (; !
|
|
1053
|
+
function Jn(t) {
|
|
1054
|
+
for (; !Re(X()); )
|
|
1025
1055
|
K();
|
|
1026
|
-
return
|
|
1056
|
+
return xe(t, G);
|
|
1027
1057
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1058
|
+
function Yn(t) {
|
|
1059
|
+
return ci(Ue("", null, null, null, [""], t = ui(t), 0, [0], t));
|
|
1030
1060
|
}
|
|
1031
1061
|
function Ue(t, e, i, n, r, o, s, a, d) {
|
|
1032
1062
|
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; )
|
|
1033
1063
|
switch (w = v, v = K()) {
|
|
1034
1064
|
case 40:
|
|
1035
1065
|
if (w != 108 && N(A, h - 1) == 58) {
|
|
1036
|
-
|
|
1066
|
+
ht(A += S(Fe(v), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1037
1067
|
break;
|
|
1038
1068
|
}
|
|
1039
1069
|
case 34:
|
|
@@ -1045,16 +1075,16 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1045
1075
|
case 10:
|
|
1046
1076
|
case 13:
|
|
1047
1077
|
case 32:
|
|
1048
|
-
A +=
|
|
1078
|
+
A += zn(w);
|
|
1049
1079
|
break;
|
|
1050
1080
|
case 92:
|
|
1051
|
-
A +=
|
|
1081
|
+
A += Hn(Be() - 1, 7);
|
|
1052
1082
|
continue;
|
|
1053
1083
|
case 47:
|
|
1054
1084
|
switch (X()) {
|
|
1055
1085
|
case 42:
|
|
1056
1086
|
case 47:
|
|
1057
|
-
|
|
1087
|
+
Me(Xn(Wn(K(), Be()), e, i), d);
|
|
1058
1088
|
break;
|
|
1059
1089
|
default:
|
|
1060
1090
|
A += "/";
|
|
@@ -1070,12 +1100,12 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1070
1100
|
case 125:
|
|
1071
1101
|
p = 0;
|
|
1072
1102
|
case 59 + u:
|
|
1073
|
-
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h &&
|
|
1103
|
+
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Me(f > 32 ? Mt(A + ";", n, i, h - 1) : Mt(S(A, " ", "") + ";", n, i, h - 2), d);
|
|
1074
1104
|
break;
|
|
1075
1105
|
case 59:
|
|
1076
1106
|
A += ";";
|
|
1077
1107
|
default:
|
|
1078
|
-
if (
|
|
1108
|
+
if (Me(O = Nt(A, e, i, l, u, r, a, b, T = [], R = [], h), o), v === 123)
|
|
1079
1109
|
if (u === 0)
|
|
1080
1110
|
Ue(A, e, O, O, T, o, h, a, R);
|
|
1081
1111
|
else
|
|
@@ -1084,7 +1114,7 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1084
1114
|
case 108:
|
|
1085
1115
|
case 109:
|
|
1086
1116
|
case 115:
|
|
1087
|
-
Ue(t, O, O, n &&
|
|
1117
|
+
Ue(t, O, O, n && Me(Nt(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
|
|
1088
1118
|
break;
|
|
1089
1119
|
default:
|
|
1090
1120
|
Ue(A, O, O, O, [""], R, 0, a, R);
|
|
@@ -1098,10 +1128,10 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1098
1128
|
if (g < 1) {
|
|
1099
1129
|
if (v == 123)
|
|
1100
1130
|
--g;
|
|
1101
|
-
else if (v == 125 && g++ == 0 &&
|
|
1131
|
+
else if (v == 125 && g++ == 0 && Kn() == 125)
|
|
1102
1132
|
continue;
|
|
1103
1133
|
}
|
|
1104
|
-
switch (A +=
|
|
1134
|
+
switch (A += Ye(v), v * g) {
|
|
1105
1135
|
case 38:
|
|
1106
1136
|
y = u > 0 ? 1 : (A += "\f", -1);
|
|
1107
1137
|
break;
|
|
@@ -1109,7 +1139,7 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1109
1139
|
a[l++] = (Y(A) - 1) * y, y = 1;
|
|
1110
1140
|
break;
|
|
1111
1141
|
case 64:
|
|
1112
|
-
X() === 45 && (A += Fe(K())), c = X(), u = h = Y(b = A +=
|
|
1142
|
+
X() === 45 && (A += Fe(K())), c = X(), u = h = Y(b = A += Jn(Be())), v++;
|
|
1113
1143
|
break;
|
|
1114
1144
|
case 45:
|
|
1115
1145
|
w === 45 && Y(A) == 2 && (g = 0);
|
|
@@ -1117,69 +1147,69 @@ function Ue(t, e, i, n, r, o, s, a, d) {
|
|
|
1117
1147
|
}
|
|
1118
1148
|
return o;
|
|
1119
1149
|
}
|
|
1120
|
-
function
|
|
1121
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f =
|
|
1122
|
-
for (var y = 0, v =
|
|
1123
|
-
(b =
|
|
1124
|
-
return
|
|
1150
|
+
function Nt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1151
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = _t(c), w = 0, g = 0, p = 0; w < n; ++w)
|
|
1152
|
+
for (var y = 0, v = Ie(t, h + 1, h = Bn(g = s[w])), b = t; y < f; ++y)
|
|
1153
|
+
(b = di(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
|
|
1154
|
+
return Qe(t, e, i, r === 0 ? bt : a, d, l, u);
|
|
1125
1155
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return
|
|
1156
|
+
function Xn(t, e, i) {
|
|
1157
|
+
return Qe(t, e, i, si, Ye(qn()), Ie(t, 2, -2), 0);
|
|
1128
1158
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return
|
|
1159
|
+
function Mt(t, e, i, n) {
|
|
1160
|
+
return Qe(t, e, i, At, Ie(t, 0, n), Ie(t, n + 1, -1), n);
|
|
1131
1161
|
}
|
|
1132
|
-
function
|
|
1133
|
-
for (var i = "", n =
|
|
1162
|
+
function fe(t, e) {
|
|
1163
|
+
for (var i = "", n = _t(t), r = 0; r < n; r++)
|
|
1134
1164
|
i += e(t[r], r, t, e) || "";
|
|
1135
1165
|
return i;
|
|
1136
1166
|
}
|
|
1137
|
-
function
|
|
1167
|
+
function Qn(t, e, i, n) {
|
|
1138
1168
|
switch (t.type) {
|
|
1139
|
-
case
|
|
1169
|
+
case jn:
|
|
1140
1170
|
if (t.children.length)
|
|
1141
1171
|
break;
|
|
1142
|
-
case
|
|
1143
|
-
case
|
|
1172
|
+
case $n:
|
|
1173
|
+
case At:
|
|
1144
1174
|
return t.return = t.return || t.value;
|
|
1145
|
-
case oi:
|
|
1146
|
-
return "";
|
|
1147
1175
|
case si:
|
|
1148
|
-
return
|
|
1149
|
-
case
|
|
1176
|
+
return "";
|
|
1177
|
+
case ai:
|
|
1178
|
+
return t.return = t.value + "{" + fe(t.children, n) + "}";
|
|
1179
|
+
case bt:
|
|
1150
1180
|
t.value = t.props.join(",");
|
|
1151
1181
|
}
|
|
1152
|
-
return Y(i =
|
|
1182
|
+
return Y(i = fe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1153
1183
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var e =
|
|
1184
|
+
function Zn(t) {
|
|
1185
|
+
var e = _t(t);
|
|
1156
1186
|
return function(i, n, r, o) {
|
|
1157
1187
|
for (var s = "", a = 0; a < e; a++)
|
|
1158
1188
|
s += t[a](i, n, r, o) || "";
|
|
1159
1189
|
return s;
|
|
1160
1190
|
};
|
|
1161
1191
|
}
|
|
1162
|
-
function
|
|
1192
|
+
function er(t) {
|
|
1163
1193
|
return function(e) {
|
|
1164
1194
|
e.root || (e = e.return) && t(e);
|
|
1165
1195
|
};
|
|
1166
1196
|
}
|
|
1167
|
-
function
|
|
1197
|
+
function tr(t) {
|
|
1168
1198
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1169
1199
|
return function(i) {
|
|
1170
1200
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1171
1201
|
};
|
|
1172
1202
|
}
|
|
1173
|
-
var
|
|
1174
|
-
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !
|
|
1203
|
+
var ir = function(e, i, n) {
|
|
1204
|
+
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !Re(o); )
|
|
1175
1205
|
K();
|
|
1176
|
-
return
|
|
1177
|
-
},
|
|
1206
|
+
return xe(e, G);
|
|
1207
|
+
}, nr = function(e, i) {
|
|
1178
1208
|
var n = -1, r = 44;
|
|
1179
1209
|
do
|
|
1180
|
-
switch (
|
|
1210
|
+
switch (Re(r)) {
|
|
1181
1211
|
case 0:
|
|
1182
|
-
r === 38 && X() === 12 && (i[n] = 1), e[n] +=
|
|
1212
|
+
r === 38 && X() === 12 && (i[n] = 1), e[n] += ir(G - 1, i, n);
|
|
1183
1213
|
break;
|
|
1184
1214
|
case 2:
|
|
1185
1215
|
e[n] += Fe(r);
|
|
@@ -1190,27 +1220,27 @@ var tr = function(e, i, n) {
|
|
|
1190
1220
|
break;
|
|
1191
1221
|
}
|
|
1192
1222
|
default:
|
|
1193
|
-
e[n] +=
|
|
1223
|
+
e[n] += Ye(r);
|
|
1194
1224
|
}
|
|
1195
1225
|
while (r = K());
|
|
1196
1226
|
return e;
|
|
1197
|
-
},
|
|
1198
|
-
return
|
|
1199
|
-
},
|
|
1227
|
+
}, rr = function(e, i) {
|
|
1228
|
+
return ci(nr(ui(e), i));
|
|
1229
|
+
}, $t = /* @__PURE__ */ new WeakMap(), or = function(e) {
|
|
1200
1230
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1201
1231
|
// negative .length indicates that this rule has been already prefixed
|
|
1202
1232
|
e.length < 1)) {
|
|
1203
1233
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1204
1234
|
if (n = n.parent, !n)
|
|
1205
1235
|
return;
|
|
1206
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 &&
|
|
1207
|
-
|
|
1208
|
-
for (var o = [], s =
|
|
1236
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !$t.get(n)) && !r) {
|
|
1237
|
+
$t.set(e, !0);
|
|
1238
|
+
for (var o = [], s = rr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1209
1239
|
for (var u = 0; u < a.length; u++, l++)
|
|
1210
1240
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1211
1241
|
}
|
|
1212
1242
|
}
|
|
1213
|
-
},
|
|
1243
|
+
}, sr = function(e) {
|
|
1214
1244
|
if (e.type === "decl") {
|
|
1215
1245
|
var i = e.value;
|
|
1216
1246
|
// charcode for l
|
|
@@ -1218,7 +1248,7 @@ var tr = function(e, i, n) {
|
|
|
1218
1248
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1219
1249
|
}
|
|
1220
1250
|
};
|
|
1221
|
-
function
|
|
1251
|
+
function hi(t, e) {
|
|
1222
1252
|
switch (Un(t, e)) {
|
|
1223
1253
|
case 5103:
|
|
1224
1254
|
return m + "print-" + t + t;
|
|
@@ -1253,7 +1283,7 @@ function ci(t, e) {
|
|
|
1253
1283
|
case 4810:
|
|
1254
1284
|
case 6968:
|
|
1255
1285
|
case 2756:
|
|
1256
|
-
return m + t +
|
|
1286
|
+
return m + t + Ke + t + j + t + t;
|
|
1257
1287
|
case 6828:
|
|
1258
1288
|
case 4268:
|
|
1259
1289
|
return m + t + j + t + t;
|
|
@@ -1303,16 +1333,16 @@ function ci(t, e) {
|
|
|
1303
1333
|
if (N(t, e + 4) !== 45)
|
|
1304
1334
|
break;
|
|
1305
1335
|
case 102:
|
|
1306
|
-
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" +
|
|
1336
|
+
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + Ke + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1307
1337
|
case 115:
|
|
1308
|
-
return ~
|
|
1338
|
+
return ~ht(t, "stretch") ? hi(S(t, "stretch", "fill-available"), e) + t : t;
|
|
1309
1339
|
}
|
|
1310
1340
|
break;
|
|
1311
1341
|
case 4949:
|
|
1312
1342
|
if (N(t, e + 1) !== 115)
|
|
1313
1343
|
break;
|
|
1314
1344
|
case 6444:
|
|
1315
|
-
switch (N(t, Y(t) - 3 - (~
|
|
1345
|
+
switch (N(t, Y(t) - 3 - (~ht(t, "!important") && 10))) {
|
|
1316
1346
|
case 107:
|
|
1317
1347
|
return S(t, ":", ":" + m) + t;
|
|
1318
1348
|
case 101:
|
|
@@ -1332,38 +1362,38 @@ function ci(t, e) {
|
|
|
1332
1362
|
}
|
|
1333
1363
|
return t;
|
|
1334
1364
|
}
|
|
1335
|
-
var
|
|
1365
|
+
var ar = function(e, i, n, r) {
|
|
1336
1366
|
if (e.length > -1 && !e.return)
|
|
1337
1367
|
switch (e.type) {
|
|
1338
|
-
case
|
|
1339
|
-
e.return =
|
|
1368
|
+
case At:
|
|
1369
|
+
e.return = hi(e.value, e.length);
|
|
1340
1370
|
break;
|
|
1341
|
-
case
|
|
1342
|
-
return
|
|
1371
|
+
case ai:
|
|
1372
|
+
return fe([me(e, {
|
|
1343
1373
|
value: S(e.value, "@", "@" + m)
|
|
1344
1374
|
})], r);
|
|
1345
|
-
case
|
|
1375
|
+
case bt:
|
|
1346
1376
|
if (e.length)
|
|
1347
|
-
return
|
|
1348
|
-
switch (
|
|
1377
|
+
return Gn(e.props, function(o) {
|
|
1378
|
+
switch (Vn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1349
1379
|
case ":read-only":
|
|
1350
1380
|
case ":read-write":
|
|
1351
|
-
return
|
|
1352
|
-
props: [S(o, /:(read-\w+)/, ":" +
|
|
1381
|
+
return fe([me(e, {
|
|
1382
|
+
props: [S(o, /:(read-\w+)/, ":" + Ke + "$1")]
|
|
1353
1383
|
})], r);
|
|
1354
1384
|
case "::placeholder":
|
|
1355
|
-
return
|
|
1385
|
+
return fe([me(e, {
|
|
1356
1386
|
props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
|
|
1357
|
-
}),
|
|
1358
|
-
props: [S(o, /:(plac\w+)/, ":" +
|
|
1359
|
-
}),
|
|
1387
|
+
}), me(e, {
|
|
1388
|
+
props: [S(o, /:(plac\w+)/, ":" + Ke + "$1")]
|
|
1389
|
+
}), me(e, {
|
|
1360
1390
|
props: [S(o, /:(plac\w+)/, j + "input-$1")]
|
|
1361
1391
|
})], r);
|
|
1362
1392
|
}
|
|
1363
1393
|
return "";
|
|
1364
1394
|
});
|
|
1365
1395
|
}
|
|
1366
|
-
},
|
|
1396
|
+
}, dr = [ar], lr = function(e) {
|
|
1367
1397
|
var i = e.key;
|
|
1368
1398
|
if (i === "css") {
|
|
1369
1399
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -1372,7 +1402,7 @@ var sr = function(e, i, n, r) {
|
|
|
1372
1402
|
p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
1373
1403
|
});
|
|
1374
1404
|
}
|
|
1375
|
-
var r = e.stylisPlugins ||
|
|
1405
|
+
var r = e.stylisPlugins || dr, o = {}, s, a = [];
|
|
1376
1406
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1377
1407
|
// this means we will ignore elements which don't have a space in them which
|
|
1378
1408
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -1383,12 +1413,12 @@ var sr = function(e, i, n, r) {
|
|
|
1383
1413
|
a.push(g);
|
|
1384
1414
|
}
|
|
1385
1415
|
);
|
|
1386
|
-
var d, l = [
|
|
1416
|
+
var d, l = [or, sr];
|
|
1387
1417
|
{
|
|
1388
|
-
var u, h = [
|
|
1418
|
+
var u, h = [Qn, er(function(g) {
|
|
1389
1419
|
u.insert(g);
|
|
1390
|
-
})], c =
|
|
1391
|
-
return
|
|
1420
|
+
})], c = Zn(l.concat(r, h)), f = function(p) {
|
|
1421
|
+
return fe(Yn(p), c);
|
|
1392
1422
|
};
|
|
1393
1423
|
d = function(p, y, v, b) {
|
|
1394
1424
|
u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
@@ -1396,7 +1426,7 @@ var sr = function(e, i, n, r) {
|
|
|
1396
1426
|
}
|
|
1397
1427
|
var w = {
|
|
1398
1428
|
key: i,
|
|
1399
|
-
sheet: new
|
|
1429
|
+
sheet: new Mn({
|
|
1400
1430
|
key: i,
|
|
1401
1431
|
container: s,
|
|
1402
1432
|
nonce: e.nonce,
|
|
@@ -1411,7 +1441,7 @@ var sr = function(e, i, n, r) {
|
|
|
1411
1441
|
};
|
|
1412
1442
|
return w.sheet.hydrate(a), w;
|
|
1413
1443
|
};
|
|
1414
|
-
function
|
|
1444
|
+
function ur(t) {
|
|
1415
1445
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1416
1446
|
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): */
|
|
1417
1447
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1430,7 +1460,7 @@ function lr(t) {
|
|
|
1430
1460
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1431
1461
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1432
1462
|
}
|
|
1433
|
-
var
|
|
1463
|
+
var cr = {
|
|
1434
1464
|
animationIterationCount: 1,
|
|
1435
1465
|
aspectRatio: 1,
|
|
1436
1466
|
borderImageOutset: 1,
|
|
@@ -1479,18 +1509,18 @@ var ur = {
|
|
|
1479
1509
|
strokeMiterlimit: 1,
|
|
1480
1510
|
strokeOpacity: 1,
|
|
1481
1511
|
strokeWidth: 1
|
|
1482
|
-
},
|
|
1512
|
+
}, hr = /[A-Z]|^ms/g, fr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, fi = function(e) {
|
|
1483
1513
|
return e.charCodeAt(1) === 45;
|
|
1484
|
-
},
|
|
1514
|
+
}, jt = function(e) {
|
|
1485
1515
|
return e != null && typeof e != "boolean";
|
|
1486
|
-
},
|
|
1487
|
-
return
|
|
1488
|
-
}),
|
|
1516
|
+
}, tt = /* @__PURE__ */ tr(function(t) {
|
|
1517
|
+
return fi(t) ? t : t.replace(hr, "-$&").toLowerCase();
|
|
1518
|
+
}), Bt = function(e, i) {
|
|
1489
1519
|
switch (e) {
|
|
1490
1520
|
case "animation":
|
|
1491
1521
|
case "animationName":
|
|
1492
1522
|
if (typeof i == "string")
|
|
1493
|
-
return i.replace(
|
|
1523
|
+
return i.replace(fr, function(n, r, o) {
|
|
1494
1524
|
return ne = {
|
|
1495
1525
|
name: r,
|
|
1496
1526
|
styles: o,
|
|
@@ -1498,9 +1528,9 @@ var ur = {
|
|
|
1498
1528
|
}, r;
|
|
1499
1529
|
});
|
|
1500
1530
|
}
|
|
1501
|
-
return
|
|
1531
|
+
return cr[e] !== 1 && !fi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1502
1532
|
};
|
|
1503
|
-
function
|
|
1533
|
+
function ze(t, e, i) {
|
|
1504
1534
|
if (i == null)
|
|
1505
1535
|
return "";
|
|
1506
1536
|
var n = i;
|
|
@@ -1530,7 +1560,7 @@ function Ke(t, e, i) {
|
|
|
1530
1560
|
var a = o.styles + ";";
|
|
1531
1561
|
return a;
|
|
1532
1562
|
}
|
|
1533
|
-
return
|
|
1563
|
+
return vr(t, e, i);
|
|
1534
1564
|
}
|
|
1535
1565
|
}
|
|
1536
1566
|
var d = i;
|
|
@@ -1539,26 +1569,26 @@ function Ke(t, e, i) {
|
|
|
1539
1569
|
var l = e[d];
|
|
1540
1570
|
return l !== void 0 ? l : d;
|
|
1541
1571
|
}
|
|
1542
|
-
function
|
|
1572
|
+
function vr(t, e, i) {
|
|
1543
1573
|
var n = "";
|
|
1544
1574
|
if (Array.isArray(i))
|
|
1545
1575
|
for (var r = 0; r < i.length; r++)
|
|
1546
|
-
n +=
|
|
1576
|
+
n += ze(t, e, i[r]) + ";";
|
|
1547
1577
|
else
|
|
1548
1578
|
for (var o in i) {
|
|
1549
1579
|
var s = i[o];
|
|
1550
1580
|
if (typeof s != "object") {
|
|
1551
1581
|
var a = s;
|
|
1552
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1582
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : jt(a) && (n += tt(o) + ":" + Bt(o, a) + ";");
|
|
1553
1583
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1554
1584
|
for (var d = 0; d < s.length; d++)
|
|
1555
|
-
|
|
1585
|
+
jt(s[d]) && (n += tt(o) + ":" + Bt(o, s[d]) + ";");
|
|
1556
1586
|
else {
|
|
1557
|
-
var l =
|
|
1587
|
+
var l = ze(t, e, s);
|
|
1558
1588
|
switch (o) {
|
|
1559
1589
|
case "animation":
|
|
1560
1590
|
case "animationName": {
|
|
1561
|
-
n +=
|
|
1591
|
+
n += tt(o) + ":" + l + ";";
|
|
1562
1592
|
break;
|
|
1563
1593
|
}
|
|
1564
1594
|
default:
|
|
@@ -1569,40 +1599,40 @@ function fr(t, e, i) {
|
|
|
1569
1599
|
return n;
|
|
1570
1600
|
}
|
|
1571
1601
|
var Ft = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
|
|
1572
|
-
function
|
|
1602
|
+
function it(t, e, i) {
|
|
1573
1603
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1574
1604
|
return t[0];
|
|
1575
1605
|
var n = !0, r = "";
|
|
1576
1606
|
ne = void 0;
|
|
1577
1607
|
var o = t[0];
|
|
1578
1608
|
if (o == null || o.raw === void 0)
|
|
1579
|
-
n = !1, r +=
|
|
1609
|
+
n = !1, r += ze(i, e, o);
|
|
1580
1610
|
else {
|
|
1581
1611
|
var s = o;
|
|
1582
1612
|
r += s[0];
|
|
1583
1613
|
}
|
|
1584
1614
|
for (var a = 1; a < t.length; a++)
|
|
1585
|
-
if (r +=
|
|
1615
|
+
if (r += ze(i, e, t[a]), n) {
|
|
1586
1616
|
var d = o;
|
|
1587
1617
|
r += d[a];
|
|
1588
1618
|
}
|
|
1589
1619
|
Ft.lastIndex = 0;
|
|
1590
1620
|
for (var l = "", u; (u = Ft.exec(r)) !== null; )
|
|
1591
1621
|
l += "-" + u[1];
|
|
1592
|
-
var h =
|
|
1622
|
+
var h = ur(r) + l;
|
|
1593
1623
|
return {
|
|
1594
1624
|
name: h,
|
|
1595
1625
|
styles: r,
|
|
1596
1626
|
next: ne
|
|
1597
1627
|
};
|
|
1598
1628
|
}
|
|
1599
|
-
function
|
|
1629
|
+
function vi(t, e, i) {
|
|
1600
1630
|
var n = "";
|
|
1601
1631
|
return i.split(" ").forEach(function(r) {
|
|
1602
1632
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1603
1633
|
}), n;
|
|
1604
1634
|
}
|
|
1605
|
-
var
|
|
1635
|
+
var gr = function(e, i, n) {
|
|
1606
1636
|
var r = e.key + "-" + i.name;
|
|
1607
1637
|
// we only need to add the styles to the registered cache if the
|
|
1608
1638
|
// class name could be used further down
|
|
@@ -1610,8 +1640,8 @@ var vr = function(e, i, n) {
|
|
|
1610
1640
|
// so we don't have to add it to registered cache.
|
|
1611
1641
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1612
1642
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1643
|
+
}, yr = function(e, i, n) {
|
|
1644
|
+
gr(e, i);
|
|
1615
1645
|
var r = e.key + "-" + i.name;
|
|
1616
1646
|
if (e.inserted[i.name] === void 0) {
|
|
1617
1647
|
var o = i;
|
|
@@ -1624,24 +1654,24 @@ function Ut(t, e) {
|
|
|
1624
1654
|
if (t.inserted[e.name] === void 0)
|
|
1625
1655
|
return t.insert("", e, t.sheet, !0);
|
|
1626
1656
|
}
|
|
1627
|
-
function
|
|
1628
|
-
var n = [], r =
|
|
1657
|
+
function Vt(t, e, i) {
|
|
1658
|
+
var n = [], r = vi(t, n, i);
|
|
1629
1659
|
return n.length < 2 ? i : r + e(n);
|
|
1630
1660
|
}
|
|
1631
|
-
var
|
|
1632
|
-
var i =
|
|
1661
|
+
var wr = function(e) {
|
|
1662
|
+
var i = lr(e);
|
|
1633
1663
|
i.sheet.speedy = function(a) {
|
|
1634
1664
|
this.isSpeedy = a;
|
|
1635
1665
|
}, i.compat = !0;
|
|
1636
1666
|
var n = function() {
|
|
1637
1667
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1638
1668
|
l[u] = arguments[u];
|
|
1639
|
-
var h =
|
|
1640
|
-
return
|
|
1669
|
+
var h = it(l, i.registered, void 0);
|
|
1670
|
+
return yr(i, h), i.key + "-" + h.name;
|
|
1641
1671
|
}, r = function() {
|
|
1642
1672
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1643
1673
|
l[u] = arguments[u];
|
|
1644
|
-
var h =
|
|
1674
|
+
var h = it(l, i.registered), c = "animation-" + h.name;
|
|
1645
1675
|
return Ut(i, {
|
|
1646
1676
|
name: h.name,
|
|
1647
1677
|
styles: "@keyframes " + c + "{" + h.styles + "}"
|
|
@@ -1649,12 +1679,12 @@ var yr = function(e) {
|
|
|
1649
1679
|
}, o = function() {
|
|
1650
1680
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1651
1681
|
l[u] = arguments[u];
|
|
1652
|
-
var h =
|
|
1682
|
+
var h = it(l, i.registered);
|
|
1653
1683
|
Ut(i, h);
|
|
1654
1684
|
}, s = function() {
|
|
1655
1685
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1656
1686
|
l[u] = arguments[u];
|
|
1657
|
-
return
|
|
1687
|
+
return Vt(i.registered, n, pr(l));
|
|
1658
1688
|
};
|
|
1659
1689
|
return {
|
|
1660
1690
|
css: n,
|
|
@@ -1671,10 +1701,10 @@ var yr = function(e) {
|
|
|
1671
1701
|
},
|
|
1672
1702
|
sheet: i.sheet,
|
|
1673
1703
|
cache: i,
|
|
1674
|
-
getRegisteredStyles:
|
|
1675
|
-
merge:
|
|
1704
|
+
getRegisteredStyles: vi.bind(null, i.registered),
|
|
1705
|
+
merge: Vt.bind(null, i.registered, n)
|
|
1676
1706
|
};
|
|
1677
|
-
},
|
|
1707
|
+
}, pr = function t(e) {
|
|
1678
1708
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1679
1709
|
var r = e[n];
|
|
1680
1710
|
if (r != null) {
|
|
@@ -1699,96 +1729,96 @@ var yr = function(e) {
|
|
|
1699
1729
|
}
|
|
1700
1730
|
}
|
|
1701
1731
|
return i;
|
|
1702
|
-
},
|
|
1732
|
+
}, br = wr({
|
|
1703
1733
|
key: "css"
|
|
1704
|
-
}),
|
|
1705
|
-
function
|
|
1706
|
-
L.__h && L.__h(q, t,
|
|
1734
|
+
}), we = br.css, vt, q, nt, Gt, qt = 0, gi = [], L = ve, Kt = L.__b, zt = L.__r, Ht = L.diffed, Wt = L.__c, Jt = L.unmount, Yt = L.__;
|
|
1735
|
+
function Ar(t, e) {
|
|
1736
|
+
L.__h && L.__h(q, t, qt || e), qt = 0;
|
|
1707
1737
|
var i = q.__H || (q.__H = { __: [], __h: [] });
|
|
1708
1738
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1709
1739
|
}
|
|
1710
|
-
function
|
|
1711
|
-
var i =
|
|
1712
|
-
return
|
|
1740
|
+
function yi(t, e) {
|
|
1741
|
+
var i = Ar(vt++, 7);
|
|
1742
|
+
return Sr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1713
1743
|
}
|
|
1714
|
-
function
|
|
1715
|
-
for (var t; t =
|
|
1744
|
+
function _r() {
|
|
1745
|
+
for (var t; t = gi.shift(); )
|
|
1716
1746
|
if (t.__P && t.__H)
|
|
1717
1747
|
try {
|
|
1718
|
-
t.__H.__h.forEach(
|
|
1748
|
+
t.__H.__h.forEach(Ve), t.__H.__h.forEach(gt), t.__H.__h = [];
|
|
1719
1749
|
} catch (e) {
|
|
1720
1750
|
t.__H.__h = [], L.__e(e, t.__v);
|
|
1721
1751
|
}
|
|
1722
1752
|
}
|
|
1723
1753
|
L.__b = function(t) {
|
|
1724
|
-
q = null,
|
|
1754
|
+
q = null, Kt && Kt(t);
|
|
1725
1755
|
}, L.__ = function(t, e) {
|
|
1726
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1756
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Yt && Yt(t, e);
|
|
1727
1757
|
}, L.__r = function(t) {
|
|
1728
|
-
|
|
1758
|
+
zt && zt(t), vt = 0;
|
|
1729
1759
|
var e = (q = t.__c).__H;
|
|
1730
|
-
e && (
|
|
1760
|
+
e && (nt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
|
|
1731
1761
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1732
|
-
})) : (e.__h.forEach(
|
|
1762
|
+
})) : (e.__h.forEach(Ve), e.__h.forEach(gt), e.__h = [], vt = 0)), nt = q;
|
|
1733
1763
|
}, L.diffed = function(t) {
|
|
1734
|
-
|
|
1764
|
+
Ht && Ht(t);
|
|
1735
1765
|
var e = t.__c;
|
|
1736
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1766
|
+
e && e.__H && (e.__H.__h.length && (gi.push(e) !== 1 && Gt === L.requestAnimationFrame || ((Gt = L.requestAnimationFrame) || mr)(_r)), e.__H.__.forEach(function(i) {
|
|
1737
1767
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1738
|
-
})),
|
|
1768
|
+
})), nt = q = null;
|
|
1739
1769
|
}, L.__c = function(t, e) {
|
|
1740
1770
|
e.some(function(i) {
|
|
1741
1771
|
try {
|
|
1742
|
-
i.__h.forEach(
|
|
1743
|
-
return !n.__ ||
|
|
1772
|
+
i.__h.forEach(Ve), i.__h = i.__h.filter(function(n) {
|
|
1773
|
+
return !n.__ || gt(n);
|
|
1744
1774
|
});
|
|
1745
1775
|
} catch (n) {
|
|
1746
1776
|
e.some(function(r) {
|
|
1747
1777
|
r.__h && (r.__h = []);
|
|
1748
1778
|
}), e = [], L.__e(n, i.__v);
|
|
1749
1779
|
}
|
|
1750
|
-
}),
|
|
1780
|
+
}), Wt && Wt(t, e);
|
|
1751
1781
|
}, L.unmount = function(t) {
|
|
1752
|
-
|
|
1782
|
+
Jt && Jt(t);
|
|
1753
1783
|
var e, i = t.__c;
|
|
1754
1784
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1755
1785
|
try {
|
|
1756
|
-
|
|
1786
|
+
Ve(n);
|
|
1757
1787
|
} catch (r) {
|
|
1758
1788
|
e = r;
|
|
1759
1789
|
}
|
|
1760
1790
|
}), i.__H = void 0, e && L.__e(e, i.__v));
|
|
1761
1791
|
};
|
|
1762
|
-
var
|
|
1763
|
-
function
|
|
1792
|
+
var Xt = typeof requestAnimationFrame == "function";
|
|
1793
|
+
function mr(t) {
|
|
1764
1794
|
var e, i = function() {
|
|
1765
|
-
clearTimeout(n),
|
|
1795
|
+
clearTimeout(n), Xt && cancelAnimationFrame(e), setTimeout(t);
|
|
1766
1796
|
}, n = setTimeout(i, 100);
|
|
1767
|
-
|
|
1797
|
+
Xt && (e = requestAnimationFrame(i));
|
|
1768
1798
|
}
|
|
1769
|
-
function
|
|
1799
|
+
function Ve(t) {
|
|
1770
1800
|
var e = q, i = t.__c;
|
|
1771
1801
|
typeof i == "function" && (t.__c = void 0, i()), q = e;
|
|
1772
1802
|
}
|
|
1773
|
-
function
|
|
1803
|
+
function gt(t) {
|
|
1774
1804
|
var e = q;
|
|
1775
1805
|
t.__c = t.__(), q = e;
|
|
1776
1806
|
}
|
|
1777
|
-
function
|
|
1807
|
+
function Sr(t, e) {
|
|
1778
1808
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1779
1809
|
return i !== t[n];
|
|
1780
1810
|
});
|
|
1781
1811
|
}
|
|
1782
|
-
var
|
|
1783
|
-
function
|
|
1812
|
+
var Er = Symbol.for("preact-signals");
|
|
1813
|
+
function Ze() {
|
|
1784
1814
|
if (re > 1)
|
|
1785
1815
|
re--;
|
|
1786
1816
|
else {
|
|
1787
|
-
for (var t, e = !1;
|
|
1788
|
-
var i =
|
|
1789
|
-
for (
|
|
1817
|
+
for (var t, e = !1; Se !== void 0; ) {
|
|
1818
|
+
var i = Se;
|
|
1819
|
+
for (Se = void 0, yt++; i !== void 0; ) {
|
|
1790
1820
|
var n = i.o;
|
|
1791
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1821
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && pi(i))
|
|
1792
1822
|
try {
|
|
1793
1823
|
i.c();
|
|
1794
1824
|
} catch (r) {
|
|
@@ -1797,7 +1827,7 @@ function Qe() {
|
|
|
1797
1827
|
i = n;
|
|
1798
1828
|
}
|
|
1799
1829
|
}
|
|
1800
|
-
if (
|
|
1830
|
+
if (yt = 0, re--, e)
|
|
1801
1831
|
throw t;
|
|
1802
1832
|
}
|
|
1803
1833
|
}
|
|
@@ -1808,11 +1838,11 @@ function D(t) {
|
|
|
1808
1838
|
try {
|
|
1809
1839
|
return t();
|
|
1810
1840
|
} finally {
|
|
1811
|
-
|
|
1841
|
+
Ze();
|
|
1812
1842
|
}
|
|
1813
1843
|
}
|
|
1814
|
-
var k = void 0,
|
|
1815
|
-
function
|
|
1844
|
+
var k = void 0, Se = void 0, re = 0, yt = 0, He = 0;
|
|
1845
|
+
function wi(t) {
|
|
1816
1846
|
if (k !== void 0) {
|
|
1817
1847
|
var e = t.n;
|
|
1818
1848
|
if (e === void 0 || e.t !== k)
|
|
@@ -1824,7 +1854,7 @@ function yi(t) {
|
|
|
1824
1854
|
function M(t) {
|
|
1825
1855
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1826
1856
|
}
|
|
1827
|
-
M.prototype.brand =
|
|
1857
|
+
M.prototype.brand = Er;
|
|
1828
1858
|
M.prototype.h = function() {
|
|
1829
1859
|
return !0;
|
|
1830
1860
|
};
|
|
@@ -1839,7 +1869,7 @@ M.prototype.U = function(t) {
|
|
|
1839
1869
|
};
|
|
1840
1870
|
M.prototype.subscribe = function(t) {
|
|
1841
1871
|
var e = this;
|
|
1842
|
-
return
|
|
1872
|
+
return Te(function() {
|
|
1843
1873
|
var i = e.value, n = k;
|
|
1844
1874
|
k = void 0;
|
|
1845
1875
|
try {
|
|
@@ -1868,31 +1898,31 @@ M.prototype.peek = function() {
|
|
|
1868
1898
|
}
|
|
1869
1899
|
};
|
|
1870
1900
|
Object.defineProperty(M.prototype, "value", { get: function() {
|
|
1871
|
-
var t =
|
|
1901
|
+
var t = wi(this);
|
|
1872
1902
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1873
1903
|
}, set: function(t) {
|
|
1874
1904
|
if (t !== this.v) {
|
|
1875
|
-
if (
|
|
1905
|
+
if (yt > 100)
|
|
1876
1906
|
throw new Error("Cycle detected");
|
|
1877
|
-
this.v = t, this.i++,
|
|
1907
|
+
this.v = t, this.i++, He++, re++;
|
|
1878
1908
|
try {
|
|
1879
1909
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1880
1910
|
e.t.N();
|
|
1881
1911
|
} finally {
|
|
1882
|
-
|
|
1912
|
+
Ze();
|
|
1883
1913
|
}
|
|
1884
1914
|
}
|
|
1885
1915
|
} });
|
|
1886
1916
|
function E(t) {
|
|
1887
1917
|
return new M(t);
|
|
1888
1918
|
}
|
|
1889
|
-
function
|
|
1919
|
+
function pi(t) {
|
|
1890
1920
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1891
1921
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1892
1922
|
return !0;
|
|
1893
1923
|
return !1;
|
|
1894
1924
|
}
|
|
1895
|
-
function
|
|
1925
|
+
function bi(t) {
|
|
1896
1926
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1897
1927
|
var i = e.S.n;
|
|
1898
1928
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1901,34 +1931,34 @@ function pi(t) {
|
|
|
1901
1931
|
}
|
|
1902
1932
|
}
|
|
1903
1933
|
}
|
|
1904
|
-
function
|
|
1934
|
+
function Ai(t) {
|
|
1905
1935
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1906
1936
|
var n = e.p;
|
|
1907
1937
|
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;
|
|
1908
1938
|
}
|
|
1909
1939
|
t.s = i;
|
|
1910
1940
|
}
|
|
1911
|
-
function
|
|
1912
|
-
M.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
1941
|
+
function pe(t) {
|
|
1942
|
+
M.call(this, void 0), this.x = t, this.s = void 0, this.g = He - 1, this.f = 4;
|
|
1913
1943
|
}
|
|
1914
|
-
(
|
|
1944
|
+
(pe.prototype = new M()).h = function() {
|
|
1915
1945
|
if (this.f &= -3, 1 & this.f)
|
|
1916
1946
|
return !1;
|
|
1917
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1947
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === He))
|
|
1918
1948
|
return !0;
|
|
1919
|
-
if (this.g =
|
|
1949
|
+
if (this.g = He, this.f |= 1, this.i > 0 && !pi(this))
|
|
1920
1950
|
return this.f &= -2, !0;
|
|
1921
1951
|
var t = k;
|
|
1922
1952
|
try {
|
|
1923
|
-
|
|
1953
|
+
bi(this), k = this;
|
|
1924
1954
|
var e = this.x();
|
|
1925
1955
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1926
1956
|
} catch (i) {
|
|
1927
1957
|
this.v = i, this.f |= 16, this.i++;
|
|
1928
1958
|
}
|
|
1929
|
-
return k = t,
|
|
1959
|
+
return k = t, Ai(this), this.f &= -2, !0;
|
|
1930
1960
|
};
|
|
1931
|
-
|
|
1961
|
+
pe.prototype.S = function(t) {
|
|
1932
1962
|
if (this.t === void 0) {
|
|
1933
1963
|
this.f |= 36;
|
|
1934
1964
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
@@ -1936,32 +1966,32 @@ we.prototype.S = function(t) {
|
|
|
1936
1966
|
}
|
|
1937
1967
|
M.prototype.S.call(this, t);
|
|
1938
1968
|
};
|
|
1939
|
-
|
|
1969
|
+
pe.prototype.U = function(t) {
|
|
1940
1970
|
if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
|
|
1941
1971
|
this.f &= -33;
|
|
1942
1972
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1943
1973
|
e.S.U(e);
|
|
1944
1974
|
}
|
|
1945
1975
|
};
|
|
1946
|
-
|
|
1976
|
+
pe.prototype.N = function() {
|
|
1947
1977
|
if (!(2 & this.f)) {
|
|
1948
1978
|
this.f |= 6;
|
|
1949
1979
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
1950
1980
|
t.t.N();
|
|
1951
1981
|
}
|
|
1952
1982
|
};
|
|
1953
|
-
Object.defineProperty(
|
|
1983
|
+
Object.defineProperty(pe.prototype, "value", { get: function() {
|
|
1954
1984
|
if (1 & this.f)
|
|
1955
1985
|
throw new Error("Cycle detected");
|
|
1956
|
-
var t =
|
|
1986
|
+
var t = wi(this);
|
|
1957
1987
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1958
1988
|
throw this.v;
|
|
1959
1989
|
return this.v;
|
|
1960
1990
|
} });
|
|
1961
|
-
function
|
|
1962
|
-
return new
|
|
1991
|
+
function Ee(t) {
|
|
1992
|
+
return new pe(t);
|
|
1963
1993
|
}
|
|
1964
|
-
function
|
|
1994
|
+
function _i(t) {
|
|
1965
1995
|
var e = t.u;
|
|
1966
1996
|
if (t.u = void 0, typeof e == "function") {
|
|
1967
1997
|
re++;
|
|
@@ -1970,26 +2000,26 @@ function Ai(t) {
|
|
|
1970
2000
|
try {
|
|
1971
2001
|
e();
|
|
1972
2002
|
} catch (n) {
|
|
1973
|
-
throw t.f &= -2, t.f |= 8,
|
|
2003
|
+
throw t.f &= -2, t.f |= 8, mt(t), n;
|
|
1974
2004
|
} finally {
|
|
1975
|
-
k = i,
|
|
2005
|
+
k = i, Ze();
|
|
1976
2006
|
}
|
|
1977
2007
|
}
|
|
1978
2008
|
}
|
|
1979
|
-
function
|
|
2009
|
+
function mt(t) {
|
|
1980
2010
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1981
2011
|
e.S.U(e);
|
|
1982
|
-
t.x = void 0, t.s = void 0,
|
|
2012
|
+
t.x = void 0, t.s = void 0, _i(t);
|
|
1983
2013
|
}
|
|
1984
|
-
function
|
|
2014
|
+
function kr(t) {
|
|
1985
2015
|
if (k !== this)
|
|
1986
2016
|
throw new Error("Out-of-order effect");
|
|
1987
|
-
|
|
2017
|
+
Ai(this), k = t, this.f &= -2, 8 & this.f && mt(this), Ze();
|
|
1988
2018
|
}
|
|
1989
|
-
function
|
|
2019
|
+
function Oe(t) {
|
|
1990
2020
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
1991
2021
|
}
|
|
1992
|
-
|
|
2022
|
+
Oe.prototype.c = function() {
|
|
1993
2023
|
var t = this.S();
|
|
1994
2024
|
try {
|
|
1995
2025
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2000,21 +2030,21 @@ xe.prototype.c = function() {
|
|
|
2000
2030
|
t();
|
|
2001
2031
|
}
|
|
2002
2032
|
};
|
|
2003
|
-
|
|
2033
|
+
Oe.prototype.S = function() {
|
|
2004
2034
|
if (1 & this.f)
|
|
2005
2035
|
throw new Error("Cycle detected");
|
|
2006
|
-
this.f |= 1, this.f &= -9,
|
|
2036
|
+
this.f |= 1, this.f &= -9, _i(this), bi(this), re++;
|
|
2007
2037
|
var t = k;
|
|
2008
|
-
return k = this,
|
|
2038
|
+
return k = this, kr.bind(this, t);
|
|
2009
2039
|
};
|
|
2010
|
-
|
|
2011
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2040
|
+
Oe.prototype.N = function() {
|
|
2041
|
+
2 & this.f || (this.f |= 2, this.o = Se, Se = this);
|
|
2012
2042
|
};
|
|
2013
|
-
|
|
2014
|
-
this.f |= 8, 1 & this.f ||
|
|
2043
|
+
Oe.prototype.d = function() {
|
|
2044
|
+
this.f |= 8, 1 & this.f || mt(this);
|
|
2015
2045
|
};
|
|
2016
|
-
function
|
|
2017
|
-
var e = new
|
|
2046
|
+
function Te(t) {
|
|
2047
|
+
var e = new Oe(t);
|
|
2018
2048
|
try {
|
|
2019
2049
|
e.c();
|
|
2020
2050
|
} catch (i) {
|
|
@@ -2022,33 +2052,33 @@ function Oe(t) {
|
|
|
2022
2052
|
}
|
|
2023
2053
|
return e.d.bind(e);
|
|
2024
2054
|
}
|
|
2025
|
-
var
|
|
2026
|
-
|
|
2027
|
-
|
|
2055
|
+
var mi, rt, Si = [];
|
|
2056
|
+
Te(function() {
|
|
2057
|
+
mi = this.N;
|
|
2028
2058
|
})();
|
|
2029
|
-
function
|
|
2030
|
-
|
|
2059
|
+
function be(t, e) {
|
|
2060
|
+
ve[t] = e.bind(null, ve[t] || function() {
|
|
2031
2061
|
});
|
|
2032
2062
|
}
|
|
2033
|
-
function
|
|
2034
|
-
|
|
2063
|
+
function We(t) {
|
|
2064
|
+
rt && rt(), rt = t && t.S();
|
|
2035
2065
|
}
|
|
2036
|
-
function
|
|
2037
|
-
var e = this, i = t.data, n =
|
|
2066
|
+
function Ei(t) {
|
|
2067
|
+
var e = this, i = t.data, n = ki(i);
|
|
2038
2068
|
n.value = i;
|
|
2039
|
-
var r =
|
|
2069
|
+
var r = yi(function() {
|
|
2040
2070
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2041
2071
|
if (d.__c) {
|
|
2042
2072
|
d.__c.__$f |= 4;
|
|
2043
2073
|
break;
|
|
2044
2074
|
}
|
|
2045
|
-
var l =
|
|
2075
|
+
var l = Ee(function() {
|
|
2046
2076
|
var f = n.value.value;
|
|
2047
2077
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2048
|
-
}), u =
|
|
2049
|
-
return !Array.isArray(l.value) && !
|
|
2050
|
-
}), h =
|
|
2051
|
-
if (this.N =
|
|
2078
|
+
}), u = Ee(function() {
|
|
2079
|
+
return !Array.isArray(l.value) && !Bi(l.value);
|
|
2080
|
+
}), h = Te(function() {
|
|
2081
|
+
if (this.N = Ii, u.value) {
|
|
2052
2082
|
var f = l.value;
|
|
2053
2083
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2054
2084
|
}
|
|
@@ -2059,11 +2089,11 @@ function Si(t) {
|
|
|
2059
2089
|
}, []), o = r[0], s = r[1];
|
|
2060
2090
|
return o.value ? s.peek() : s.value;
|
|
2061
2091
|
}
|
|
2062
|
-
|
|
2063
|
-
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
2092
|
+
Ei.displayName = "_st";
|
|
2093
|
+
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ei }, props: { configurable: !0, get: function() {
|
|
2064
2094
|
return { data: this };
|
|
2065
2095
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2066
|
-
|
|
2096
|
+
be("__b", function(t, e) {
|
|
2067
2097
|
if (typeof e.type == "string") {
|
|
2068
2098
|
var i, n = e.props;
|
|
2069
2099
|
for (var r in n)
|
|
@@ -2074,23 +2104,23 @@ pe("__b", function(t, e) {
|
|
|
2074
2104
|
}
|
|
2075
2105
|
t(e);
|
|
2076
2106
|
});
|
|
2077
|
-
|
|
2078
|
-
|
|
2107
|
+
be("__r", function(t, e) {
|
|
2108
|
+
We();
|
|
2079
2109
|
var i, n = e.__c;
|
|
2080
2110
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2081
2111
|
var o;
|
|
2082
|
-
return
|
|
2112
|
+
return Te(function() {
|
|
2083
2113
|
o = this;
|
|
2084
2114
|
}), o.c = function() {
|
|
2085
2115
|
n.__$f |= 1, n.setState({});
|
|
2086
2116
|
}, o;
|
|
2087
|
-
}())),
|
|
2117
|
+
}())), We(i), t(e);
|
|
2088
2118
|
});
|
|
2089
|
-
|
|
2090
|
-
|
|
2119
|
+
be("__e", function(t, e, i, n) {
|
|
2120
|
+
We(), t(e, i, n);
|
|
2091
2121
|
});
|
|
2092
|
-
|
|
2093
|
-
|
|
2122
|
+
be("diffed", function(t, e) {
|
|
2123
|
+
We();
|
|
2094
2124
|
var i;
|
|
2095
2125
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2096
2126
|
var n = e.__np, r = e.props;
|
|
@@ -2105,23 +2135,23 @@ pe("diffed", function(t, e) {
|
|
|
2105
2135
|
o = {}, i.U = o;
|
|
2106
2136
|
for (var d in n) {
|
|
2107
2137
|
var l = o[d], u = n[d];
|
|
2108
|
-
l === void 0 ? (l =
|
|
2138
|
+
l === void 0 ? (l = Ir(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2109
2139
|
}
|
|
2110
2140
|
}
|
|
2111
2141
|
}
|
|
2112
2142
|
t(e);
|
|
2113
2143
|
});
|
|
2114
|
-
function
|
|
2144
|
+
function Ir(t, e, i, n) {
|
|
2115
2145
|
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2116
2146
|
return { o: function(s, a) {
|
|
2117
2147
|
o.value = s, n = a;
|
|
2118
|
-
}, d:
|
|
2119
|
-
this.N =
|
|
2148
|
+
}, d: Te(function() {
|
|
2149
|
+
this.N = Ii;
|
|
2120
2150
|
var s = o.value.value;
|
|
2121
2151
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2122
2152
|
}) };
|
|
2123
2153
|
}
|
|
2124
|
-
|
|
2154
|
+
be("unmount", function(t, e) {
|
|
2125
2155
|
if (typeof e.type == "string") {
|
|
2126
2156
|
var i = e.__e;
|
|
2127
2157
|
if (i) {
|
|
@@ -2143,10 +2173,10 @@ pe("unmount", function(t, e) {
|
|
|
2143
2173
|
}
|
|
2144
2174
|
t(e);
|
|
2145
2175
|
});
|
|
2146
|
-
|
|
2176
|
+
be("__h", function(t, e, i, n) {
|
|
2147
2177
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2148
2178
|
});
|
|
2149
|
-
|
|
2179
|
+
ji.prototype.shouldComponentUpdate = function(t, e) {
|
|
2150
2180
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2151
2181
|
for (var r in e)
|
|
2152
2182
|
return !0;
|
|
@@ -2164,26 +2194,26 @@ $i.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2164
2194
|
return !0;
|
|
2165
2195
|
return !1;
|
|
2166
2196
|
};
|
|
2167
|
-
function
|
|
2168
|
-
return
|
|
2197
|
+
function ki(t) {
|
|
2198
|
+
return yi(function() {
|
|
2169
2199
|
return E(t);
|
|
2170
2200
|
}, []);
|
|
2171
2201
|
}
|
|
2172
|
-
var
|
|
2202
|
+
var Rr = function(t) {
|
|
2173
2203
|
queueMicrotask(function() {
|
|
2174
2204
|
queueMicrotask(t);
|
|
2175
2205
|
});
|
|
2176
2206
|
};
|
|
2177
|
-
function
|
|
2207
|
+
function xr() {
|
|
2178
2208
|
D(function() {
|
|
2179
|
-
for (var t; t =
|
|
2180
|
-
|
|
2209
|
+
for (var t; t = Si.shift(); )
|
|
2210
|
+
mi.call(t);
|
|
2181
2211
|
});
|
|
2182
2212
|
}
|
|
2183
|
-
function
|
|
2184
|
-
|
|
2213
|
+
function Ii() {
|
|
2214
|
+
Si.push(this) === 1 && (ve.requestAnimationFrame || Rr)(xr);
|
|
2185
2215
|
}
|
|
2186
|
-
const
|
|
2216
|
+
const B = we`
|
|
2187
2217
|
inset: 0;
|
|
2188
2218
|
clear: none;
|
|
2189
2219
|
float: none;
|
|
@@ -2202,11 +2232,11 @@ const F = ye`
|
|
|
2202
2232
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2203
2233
|
'Helvetica Neue', sans-serif;
|
|
2204
2234
|
`;
|
|
2205
|
-
function
|
|
2235
|
+
function Or(t, e) {
|
|
2206
2236
|
const i = Fi(t);
|
|
2207
2237
|
Ui(() => {
|
|
2208
2238
|
i.current = t;
|
|
2209
|
-
}, [t]),
|
|
2239
|
+
}, [t]), Je(() => {
|
|
2210
2240
|
if (e === null)
|
|
2211
2241
|
return;
|
|
2212
2242
|
const n = setInterval(() => {
|
|
@@ -2217,21 +2247,21 @@ function xr(t, e) {
|
|
|
2217
2247
|
};
|
|
2218
2248
|
}, [e]);
|
|
2219
2249
|
}
|
|
2220
|
-
var
|
|
2250
|
+
var Tr = 0;
|
|
2221
2251
|
function _(t, e, i, n, r, o) {
|
|
2222
2252
|
e || (e = {});
|
|
2223
2253
|
var s, a, d = e;
|
|
2224
2254
|
if ("ref" in d)
|
|
2225
2255
|
for (a in d = {}, e)
|
|
2226
2256
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2227
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2257
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Tr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2228
2258
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2229
2259
|
for (a in s)
|
|
2230
2260
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2231
|
-
return
|
|
2261
|
+
return ve.vnode && ve.vnode(l), l;
|
|
2232
2262
|
}
|
|
2233
|
-
const
|
|
2234
|
-
${
|
|
2263
|
+
const Cr = we`
|
|
2264
|
+
${B}
|
|
2235
2265
|
position: fixed;
|
|
2236
2266
|
top: 0;
|
|
2237
2267
|
left: 0;
|
|
@@ -2244,7 +2274,7 @@ const Tr = ye`
|
|
|
2244
2274
|
height: 100vh;
|
|
2245
2275
|
|
|
2246
2276
|
.card-wrapper {
|
|
2247
|
-
${
|
|
2277
|
+
${B}
|
|
2248
2278
|
position: relative;
|
|
2249
2279
|
display: flex;
|
|
2250
2280
|
flex-direction: column;
|
|
@@ -2258,7 +2288,7 @@ const Tr = ye`
|
|
|
2258
2288
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2259
2289
|
|
|
2260
2290
|
.body {
|
|
2261
|
-
${
|
|
2291
|
+
${B}
|
|
2262
2292
|
display: flex;
|
|
2263
2293
|
flex-direction: column;
|
|
2264
2294
|
width: 100%;
|
|
@@ -2267,7 +2297,7 @@ const Tr = ye`
|
|
|
2267
2297
|
box-sizing: border-box;
|
|
2268
2298
|
justify-content: center;
|
|
2269
2299
|
.title {
|
|
2270
|
-
${
|
|
2300
|
+
${B}
|
|
2271
2301
|
text-align: center;
|
|
2272
2302
|
font-size: 16px;
|
|
2273
2303
|
font-weight: bold;
|
|
@@ -2275,7 +2305,7 @@ const Tr = ye`
|
|
|
2275
2305
|
}
|
|
2276
2306
|
|
|
2277
2307
|
.content {
|
|
2278
|
-
${
|
|
2308
|
+
${B}
|
|
2279
2309
|
font-size: 14px;
|
|
2280
2310
|
color: #888;
|
|
2281
2311
|
margin-bottom: 16px;
|
|
@@ -2283,13 +2313,13 @@ const Tr = ye`
|
|
|
2283
2313
|
}
|
|
2284
2314
|
|
|
2285
2315
|
.footer {
|
|
2286
|
-
${
|
|
2316
|
+
${B}
|
|
2287
2317
|
display: flex;
|
|
2288
2318
|
align-items: center;
|
|
2289
2319
|
width: 100%;
|
|
2290
2320
|
height: 40px;
|
|
2291
2321
|
button {
|
|
2292
|
-
${
|
|
2322
|
+
${B}
|
|
2293
2323
|
border: none;
|
|
2294
2324
|
outline: none;
|
|
2295
2325
|
height: 100%;
|
|
@@ -2305,56 +2335,56 @@ const Tr = ye`
|
|
|
2305
2335
|
}
|
|
2306
2336
|
}
|
|
2307
2337
|
}
|
|
2308
|
-
`, W = E(null),
|
|
2338
|
+
`, W = E(null), wt = E(""), pt = E(""), Ge = E(!1), Dr = () => {
|
|
2309
2339
|
var t;
|
|
2310
2340
|
(t = W.value) == null || t.call(W, !1);
|
|
2311
|
-
},
|
|
2341
|
+
}, Lr = () => {
|
|
2312
2342
|
var t;
|
|
2313
2343
|
(t = W.value) == null || t.call(W, !0);
|
|
2314
|
-
},
|
|
2344
|
+
}, Pr = async (t) => {
|
|
2315
2345
|
let {
|
|
2316
2346
|
title: e,
|
|
2317
2347
|
content: i
|
|
2318
2348
|
} = t;
|
|
2319
2349
|
return W.value && (W.value(!1), D(() => {
|
|
2320
|
-
W.value = null,
|
|
2350
|
+
W.value = null, Ge.value = !1;
|
|
2321
2351
|
})), D(() => {
|
|
2322
|
-
|
|
2352
|
+
wt.value = e || "", pt.value = i || "", Ge.value = !0;
|
|
2323
2353
|
}), new Promise((n) => {
|
|
2324
2354
|
W.value = (r) => {
|
|
2325
2355
|
D(() => {
|
|
2326
|
-
W.value = null,
|
|
2356
|
+
W.value = null, Ge.value = !1, wt.value = "", pt.value = "";
|
|
2327
2357
|
}), n(r);
|
|
2328
2358
|
};
|
|
2329
2359
|
});
|
|
2330
|
-
},
|
|
2331
|
-
className:
|
|
2360
|
+
}, Nr = () => Ge.value ? _("div", {
|
|
2361
|
+
className: Cr,
|
|
2332
2362
|
children: _("div", {
|
|
2333
2363
|
className: "card-wrapper",
|
|
2334
2364
|
children: [_("div", {
|
|
2335
2365
|
className: "body",
|
|
2336
2366
|
children: [_("div", {
|
|
2337
2367
|
className: "title",
|
|
2338
|
-
children:
|
|
2368
|
+
children: wt.value
|
|
2339
2369
|
}), _("div", {
|
|
2340
2370
|
className: "content",
|
|
2341
|
-
children:
|
|
2371
|
+
children: pt.value
|
|
2342
2372
|
})]
|
|
2343
2373
|
}), _("div", {
|
|
2344
2374
|
className: "footer",
|
|
2345
2375
|
children: [_("button", {
|
|
2346
|
-
onClick:
|
|
2376
|
+
onClick: Dr,
|
|
2347
2377
|
className: "cancel-btn",
|
|
2348
2378
|
children: "Cancel"
|
|
2349
2379
|
}), _("button", {
|
|
2350
|
-
onClick:
|
|
2380
|
+
onClick: Lr,
|
|
2351
2381
|
className: "confirm-btm",
|
|
2352
2382
|
children: "Confirm"
|
|
2353
2383
|
})]
|
|
2354
2384
|
})]
|
|
2355
2385
|
})
|
|
2356
|
-
}) : null,
|
|
2357
|
-
${
|
|
2386
|
+
}) : null, Mr = we`
|
|
2387
|
+
${B}
|
|
2358
2388
|
position: relative;
|
|
2359
2389
|
display: flex;
|
|
2360
2390
|
align-items: center;
|
|
@@ -2372,7 +2402,7 @@ const Tr = ye`
|
|
|
2372
2402
|
}
|
|
2373
2403
|
|
|
2374
2404
|
button {
|
|
2375
|
-
${
|
|
2405
|
+
${B}
|
|
2376
2406
|
padding: 0 20px;
|
|
2377
2407
|
height: 30px;
|
|
2378
2408
|
line-height: 30px;
|
|
@@ -2386,7 +2416,7 @@ const Tr = ye`
|
|
|
2386
2416
|
cursor: not-allowed;
|
|
2387
2417
|
}
|
|
2388
2418
|
}
|
|
2389
|
-
`,
|
|
2419
|
+
`, $r = () => {
|
|
2390
2420
|
const t = E(!1), e = E(null);
|
|
2391
2421
|
return {
|
|
2392
2422
|
timerPaused: t,
|
|
@@ -2397,7 +2427,7 @@ const Tr = ye`
|
|
|
2397
2427
|
});
|
|
2398
2428
|
}
|
|
2399
2429
|
};
|
|
2400
|
-
},
|
|
2430
|
+
}, jr = (t) => {
|
|
2401
2431
|
let {
|
|
2402
2432
|
countdown: e = 0,
|
|
2403
2433
|
mode: i,
|
|
@@ -2407,26 +2437,26 @@ const Tr = ye`
|
|
|
2407
2437
|
const {
|
|
2408
2438
|
startTimestamp: o,
|
|
2409
2439
|
timerPaused: s
|
|
2410
|
-
} = r, a =
|
|
2411
|
-
|
|
2440
|
+
} = r, a = ki(e);
|
|
2441
|
+
Or(() => {
|
|
2412
2442
|
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2413
2443
|
s.value = !0, a.value = 0;
|
|
2414
2444
|
});
|
|
2415
2445
|
}, s.value ? null : 1e3);
|
|
2416
|
-
const d =
|
|
2446
|
+
const d = Ee(() => {
|
|
2417
2447
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2418
2448
|
return !1;
|
|
2419
2449
|
const f = Date.now() - o.value;
|
|
2420
2450
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2421
|
-
}), l =
|
|
2451
|
+
}), l = Ee(() => {
|
|
2422
2452
|
if (i === "interstitial")
|
|
2423
2453
|
return !0;
|
|
2424
2454
|
if (!o.value)
|
|
2425
2455
|
return !1;
|
|
2426
2456
|
const f = Date.now() - o.value;
|
|
2427
2457
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2428
|
-
}), u =
|
|
2429
|
-
if (s.value = !0, !await
|
|
2458
|
+
}), u = Ee(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2459
|
+
if (s.value = !0, !await Pr({
|
|
2430
2460
|
title: "Are you sure?",
|
|
2431
2461
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2432
2462
|
})) {
|
|
@@ -2442,7 +2472,7 @@ const Tr = ye`
|
|
|
2442
2472
|
});
|
|
2443
2473
|
};
|
|
2444
2474
|
return _("div", {
|
|
2445
|
-
className:
|
|
2475
|
+
className: Mr,
|
|
2446
2476
|
children: [a.value > 0 && i !== "interstitial" && _("div", {
|
|
2447
2477
|
className: "timer",
|
|
2448
2478
|
children: [a.value, "s"]
|
|
@@ -2462,7 +2492,7 @@ const Tr = ye`
|
|
|
2462
2492
|
})
|
|
2463
2493
|
})]
|
|
2464
2494
|
});
|
|
2465
|
-
},
|
|
2495
|
+
}, Ri = () => {
|
|
2466
2496
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2467
2497
|
return {
|
|
2468
2498
|
afterAd: t,
|
|
@@ -2475,8 +2505,8 @@ const Tr = ye`
|
|
|
2475
2505
|
src: a,
|
|
2476
2506
|
mode: d
|
|
2477
2507
|
};
|
|
2478
|
-
},
|
|
2479
|
-
${
|
|
2508
|
+
}, Br = we`
|
|
2509
|
+
${B}
|
|
2480
2510
|
position: fixed;
|
|
2481
2511
|
z-index: 2147483647;
|
|
2482
2512
|
background: white;
|
|
@@ -2486,7 +2516,7 @@ const Tr = ye`
|
|
|
2486
2516
|
flex-direction: column;
|
|
2487
2517
|
|
|
2488
2518
|
iframe {
|
|
2489
|
-
${
|
|
2519
|
+
${B}
|
|
2490
2520
|
flex: 1;
|
|
2491
2521
|
position: relative;
|
|
2492
2522
|
display: block;
|
|
@@ -2494,7 +2524,7 @@ const Tr = ye`
|
|
|
2494
2524
|
width: 100%;
|
|
2495
2525
|
height: 100%;
|
|
2496
2526
|
}
|
|
2497
|
-
`,
|
|
2527
|
+
`, xi = (t) => {
|
|
2498
2528
|
let {
|
|
2499
2529
|
state: e
|
|
2500
2530
|
} = t;
|
|
@@ -2508,20 +2538,20 @@ const Tr = ye`
|
|
|
2508
2538
|
countdown: d,
|
|
2509
2539
|
src: l,
|
|
2510
2540
|
mode: u
|
|
2511
|
-
} = e, h =
|
|
2541
|
+
} = e, h = Vi(() => $r(), []), [c, f] = Qt(!1), w = (p) => {
|
|
2512
2542
|
var y, v, b, T;
|
|
2513
2543
|
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);
|
|
2514
|
-
}, g =
|
|
2544
|
+
}, g = Gi(() => {
|
|
2515
2545
|
var p;
|
|
2516
2546
|
c || (f(!0), (p = s.value) == null || p.call(s));
|
|
2517
2547
|
}, [c]);
|
|
2518
|
-
return
|
|
2548
|
+
return Je(() => {
|
|
2519
2549
|
c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2520
2550
|
h.startTimer();
|
|
2521
2551
|
}, 100);
|
|
2522
2552
|
}, [c, u.value]), a.value ? _("div", {
|
|
2523
|
-
className:
|
|
2524
|
-
children: [_(
|
|
2553
|
+
className: Br,
|
|
2554
|
+
children: [_(jr, {
|
|
2525
2555
|
mode: u.value,
|
|
2526
2556
|
onClose: w,
|
|
2527
2557
|
countdown: d.value,
|
|
@@ -2530,7 +2560,7 @@ const Tr = ye`
|
|
|
2530
2560
|
src: l.value,
|
|
2531
2561
|
onLoad: g,
|
|
2532
2562
|
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"
|
|
2533
|
-
}), _(
|
|
2563
|
+
}), _(Nr, {})]
|
|
2534
2564
|
}) : null;
|
|
2535
2565
|
};
|
|
2536
2566
|
function Z(t, e, i) {
|
|
@@ -2552,13 +2582,13 @@ function Ur(t, e) {
|
|
|
2552
2582
|
}
|
|
2553
2583
|
return (e === "string" ? String : Number)(t);
|
|
2554
2584
|
}
|
|
2555
|
-
class
|
|
2585
|
+
class Vr {
|
|
2556
2586
|
constructor(e, i) {
|
|
2557
|
-
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",
|
|
2587
|
+
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", Ri()), this.context = e, this.initParams = i;
|
|
2558
2588
|
}
|
|
2559
2589
|
async init() {
|
|
2560
2590
|
var e;
|
|
2561
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(
|
|
2591
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(xi, {
|
|
2562
2592
|
state: this.state
|
|
2563
2593
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2564
2594
|
}
|
|
@@ -2675,17 +2705,17 @@ class Br {
|
|
|
2675
2705
|
}
|
|
2676
2706
|
}
|
|
2677
2707
|
}
|
|
2678
|
-
const
|
|
2708
|
+
const he = {};
|
|
2679
2709
|
window.addEventListener("message", (t) => {
|
|
2680
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
2710
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || he[t.data.type] && he[t.data.type].forEach((e) => {
|
|
2681
2711
|
e(t.data.data);
|
|
2682
2712
|
});
|
|
2683
2713
|
});
|
|
2684
|
-
const
|
|
2685
|
-
|
|
2686
|
-
|
|
2714
|
+
const de = (t, e) => {
|
|
2715
|
+
Je(() => (he[t] || (he[t] = /* @__PURE__ */ new Set()), he[t].add(e), () => {
|
|
2716
|
+
he[t].delete(e);
|
|
2687
2717
|
}), [t, e]);
|
|
2688
|
-
},
|
|
2718
|
+
}, Oi = () => {
|
|
2689
2719
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2690
2720
|
return {
|
|
2691
2721
|
afterAd: t,
|
|
@@ -2698,8 +2728,8 @@ const ae = (t, e) => {
|
|
|
2698
2728
|
visible: a,
|
|
2699
2729
|
src: d
|
|
2700
2730
|
};
|
|
2701
|
-
},
|
|
2702
|
-
${
|
|
2731
|
+
}, Gr = we`
|
|
2732
|
+
${B}
|
|
2703
2733
|
position: fixed;
|
|
2704
2734
|
z-index: 2147483647;
|
|
2705
2735
|
background: white;
|
|
@@ -2709,7 +2739,7 @@ const ae = (t, e) => {
|
|
|
2709
2739
|
flex-direction: column;
|
|
2710
2740
|
|
|
2711
2741
|
iframe {
|
|
2712
|
-
${
|
|
2742
|
+
${B}
|
|
2713
2743
|
flex: 1;
|
|
2714
2744
|
position: relative;
|
|
2715
2745
|
display: block;
|
|
@@ -2717,7 +2747,7 @@ const ae = (t, e) => {
|
|
|
2717
2747
|
width: 100%;
|
|
2718
2748
|
height: 100%;
|
|
2719
2749
|
}
|
|
2720
|
-
`,
|
|
2750
|
+
`, Ti = (t) => {
|
|
2721
2751
|
let {
|
|
2722
2752
|
state: e
|
|
2723
2753
|
} = t;
|
|
@@ -2730,18 +2760,18 @@ const ae = (t, e) => {
|
|
|
2730
2760
|
adLinkClicked: a,
|
|
2731
2761
|
visible: d,
|
|
2732
2762
|
src: l
|
|
2733
|
-
} = e, [u, h] =
|
|
2763
|
+
} = e, [u, h] = Qt(!1), c = (w) => {
|
|
2734
2764
|
var g, p, y, v;
|
|
2735
2765
|
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);
|
|
2736
2766
|
}, f = () => {
|
|
2737
2767
|
var w;
|
|
2738
2768
|
(w = s.value) == null || w.call(s);
|
|
2739
2769
|
};
|
|
2740
|
-
return
|
|
2770
|
+
return de("appsrockets_ad_dismissed", () => c("dismiss")), de("appsrockets_ad_rewarded", () => c("viewed")), de("appsrockets_ad_completed", () => c("viewed")), de("appsrockets_ad_skipped", () => c("viewed")), de("appsrockets_ad_clicked", (w) => {
|
|
2741
2771
|
var g;
|
|
2742
2772
|
return (g = a.value) == null ? void 0 : g.call(a, w);
|
|
2743
|
-
}),
|
|
2744
|
-
className:
|
|
2773
|
+
}), de("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2774
|
+
className: Gr,
|
|
2745
2775
|
style: {
|
|
2746
2776
|
display: u ? "flex" : "none"
|
|
2747
2777
|
},
|
|
@@ -2755,13 +2785,13 @@ const ae = (t, e) => {
|
|
|
2755
2785
|
}) : null;
|
|
2756
2786
|
};
|
|
2757
2787
|
function ee(t, e, i) {
|
|
2758
|
-
return (e =
|
|
2788
|
+
return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2759
2789
|
}
|
|
2760
|
-
function
|
|
2761
|
-
var e =
|
|
2790
|
+
function qr(t) {
|
|
2791
|
+
var e = Kr(t, "string");
|
|
2762
2792
|
return typeof e == "symbol" ? e : e + "";
|
|
2763
2793
|
}
|
|
2764
|
-
function
|
|
2794
|
+
function Kr(t, e) {
|
|
2765
2795
|
if (typeof t != "object" || !t)
|
|
2766
2796
|
return t;
|
|
2767
2797
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2773,9 +2803,9 @@ function qr(t, e) {
|
|
|
2773
2803
|
}
|
|
2774
2804
|
return (e === "string" ? String : Number)(t);
|
|
2775
2805
|
}
|
|
2776
|
-
class
|
|
2806
|
+
class zr {
|
|
2777
2807
|
constructor(e, i) {
|
|
2778
|
-
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",
|
|
2808
|
+
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", Oi()), ee(this, "processUrl", (n) => {
|
|
2779
2809
|
var a;
|
|
2780
2810
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2781
2811
|
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();
|
|
@@ -2783,7 +2813,7 @@ class Kr {
|
|
|
2783
2813
|
}
|
|
2784
2814
|
async init() {
|
|
2785
2815
|
var e;
|
|
2786
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(
|
|
2816
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Ti, {
|
|
2787
2817
|
state: this.state
|
|
2788
2818
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2789
2819
|
}
|
|
@@ -2913,7 +2943,7 @@ class Kr {
|
|
|
2913
2943
|
}
|
|
2914
2944
|
}
|
|
2915
2945
|
}
|
|
2916
|
-
const
|
|
2946
|
+
const Ci = () => {
|
|
2917
2947
|
window.googletag = window.googletag || {
|
|
2918
2948
|
cmd: []
|
|
2919
2949
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
@@ -2921,13 +2951,13 @@ const Ti = () => {
|
|
|
2921
2951
|
});
|
|
2922
2952
|
};
|
|
2923
2953
|
function $(t, e, i) {
|
|
2924
|
-
return (e =
|
|
2954
|
+
return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2925
2955
|
}
|
|
2926
|
-
function
|
|
2927
|
-
var e =
|
|
2956
|
+
function Hr(t) {
|
|
2957
|
+
var e = Wr(t, "string");
|
|
2928
2958
|
return typeof e == "symbol" ? e : e + "";
|
|
2929
2959
|
}
|
|
2930
|
-
function
|
|
2960
|
+
function Wr(t, e) {
|
|
2931
2961
|
if (typeof t != "object" || !t)
|
|
2932
2962
|
return t;
|
|
2933
2963
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2939,7 +2969,7 @@ function Hr(t, e) {
|
|
|
2939
2969
|
}
|
|
2940
2970
|
return (e === "string" ? String : Number)(t);
|
|
2941
2971
|
}
|
|
2942
|
-
class
|
|
2972
|
+
class Di {
|
|
2943
2973
|
constructor(e, i, n) {
|
|
2944
2974
|
$(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() {
|
|
2945
2975
|
googletag.cmd.push(...arguments);
|
|
@@ -2993,19 +3023,19 @@ class Ci {
|
|
|
2993
3023
|
}, 500);
|
|
2994
3024
|
}
|
|
2995
3025
|
});
|
|
2996
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
3026
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Ci(), this.withCommand(() => {
|
|
2997
3027
|
this.init();
|
|
2998
3028
|
});
|
|
2999
3029
|
}
|
|
3000
3030
|
}
|
|
3001
3031
|
function V(t, e, i) {
|
|
3002
|
-
return (e =
|
|
3032
|
+
return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3003
3033
|
}
|
|
3004
|
-
function
|
|
3005
|
-
var e =
|
|
3034
|
+
function Jr(t) {
|
|
3035
|
+
var e = Yr(t, "string");
|
|
3006
3036
|
return typeof e == "symbol" ? e : e + "";
|
|
3007
3037
|
}
|
|
3008
|
-
function
|
|
3038
|
+
function Yr(t, e) {
|
|
3009
3039
|
if (typeof t != "object" || !t)
|
|
3010
3040
|
return t;
|
|
3011
3041
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3017,7 +3047,7 @@ function Jr(t, e) {
|
|
|
3017
3047
|
}
|
|
3018
3048
|
return (e === "string" ? String : Number)(t);
|
|
3019
3049
|
}
|
|
3020
|
-
class
|
|
3050
|
+
class Xr {
|
|
3021
3051
|
constructor(e, i, n) {
|
|
3022
3052
|
var r = this;
|
|
3023
3053
|
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() {
|
|
@@ -3054,19 +3084,19 @@ class Yr {
|
|
|
3054
3084
|
}), this.isRetrying = !1;
|
|
3055
3085
|
}, 31e3)));
|
|
3056
3086
|
});
|
|
3057
|
-
}),
|
|
3087
|
+
}), Ci(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3058
3088
|
this.init();
|
|
3059
3089
|
});
|
|
3060
3090
|
}
|
|
3061
3091
|
}
|
|
3062
3092
|
function se(t, e, i) {
|
|
3063
|
-
return (e =
|
|
3093
|
+
return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3064
3094
|
}
|
|
3065
|
-
function
|
|
3066
|
-
var e =
|
|
3095
|
+
function Qr(t) {
|
|
3096
|
+
var e = Zr(t, "string");
|
|
3067
3097
|
return typeof e == "symbol" ? e : e + "";
|
|
3068
3098
|
}
|
|
3069
|
-
function
|
|
3099
|
+
function Zr(t, e) {
|
|
3070
3100
|
if (typeof t != "object" || !t)
|
|
3071
3101
|
return t;
|
|
3072
3102
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3078,7 +3108,7 @@ function Qr(t, e) {
|
|
|
3078
3108
|
}
|
|
3079
3109
|
return (e === "string" ? String : Number)(t);
|
|
3080
3110
|
}
|
|
3081
|
-
class
|
|
3111
|
+
class eo {
|
|
3082
3112
|
constructor(e, i) {
|
|
3083
3113
|
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", () => {
|
|
3084
3114
|
const n = "jolibox-google-gpt";
|
|
@@ -3088,7 +3118,7 @@ class Zr {
|
|
|
3088
3118
|
}
|
|
3089
3119
|
async init() {
|
|
3090
3120
|
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"}`;
|
|
3091
|
-
e && (this.rewardAdManager = new
|
|
3121
|
+
e && (this.rewardAdManager = new Di(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Xr(i, r, this.initParams.keyValue));
|
|
3092
3122
|
}
|
|
3093
3123
|
adConfig(e, i) {
|
|
3094
3124
|
}
|
|
@@ -3159,14 +3189,14 @@ class Zr {
|
|
|
3159
3189
|
}
|
|
3160
3190
|
}
|
|
3161
3191
|
}
|
|
3162
|
-
function
|
|
3163
|
-
return (e =
|
|
3192
|
+
function ot(t, e, i) {
|
|
3193
|
+
return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3164
3194
|
}
|
|
3165
|
-
function
|
|
3166
|
-
var e =
|
|
3195
|
+
function to(t) {
|
|
3196
|
+
var e = io(t, "string");
|
|
3167
3197
|
return typeof e == "symbol" ? e : e + "";
|
|
3168
3198
|
}
|
|
3169
|
-
function
|
|
3199
|
+
function io(t, e) {
|
|
3170
3200
|
if (typeof t != "object" || !t)
|
|
3171
3201
|
return t;
|
|
3172
3202
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3178,10 +3208,10 @@ function to(t, e) {
|
|
|
3178
3208
|
}
|
|
3179
3209
|
return (e === "string" ? String : Number)(t);
|
|
3180
3210
|
}
|
|
3181
|
-
class
|
|
3211
|
+
class no {
|
|
3182
3212
|
constructor(e) {
|
|
3183
3213
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3184
|
-
|
|
3214
|
+
ot(this, "context", void 0), ot(this, "placement", "GAME"), ot(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3185
3215
|
}
|
|
3186
3216
|
getLocation() {
|
|
3187
3217
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3195,7 +3225,7 @@ class io {
|
|
|
3195
3225
|
getDevice() {
|
|
3196
3226
|
var e, i, n, r;
|
|
3197
3227
|
return {
|
|
3198
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3228
|
+
platform: (e = this.contextInfo.platform) != null ? e : ri.WebSDK,
|
|
3199
3229
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3200
3230
|
appVersion: "1.0.0",
|
|
3201
3231
|
// mock
|
|
@@ -3214,7 +3244,7 @@ class io {
|
|
|
3214
3244
|
protocolVersion: "1.0.0",
|
|
3215
3245
|
events: [{
|
|
3216
3246
|
name: e,
|
|
3217
|
-
type:
|
|
3247
|
+
type: ii.System,
|
|
3218
3248
|
location: this.getLocation(),
|
|
3219
3249
|
target: null,
|
|
3220
3250
|
extra: i,
|
|
@@ -3222,19 +3252,19 @@ class io {
|
|
|
3222
3252
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3223
3253
|
}],
|
|
3224
3254
|
device: this.getDevice(),
|
|
3225
|
-
project:
|
|
3255
|
+
project: ni.WebSDK
|
|
3226
3256
|
};
|
|
3227
|
-
return
|
|
3257
|
+
return cn(r);
|
|
3228
3258
|
}
|
|
3229
3259
|
}
|
|
3230
|
-
function
|
|
3231
|
-
return (e =
|
|
3260
|
+
function F(t, e, i) {
|
|
3261
|
+
return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3232
3262
|
}
|
|
3233
|
-
function
|
|
3234
|
-
var e =
|
|
3263
|
+
function ro(t) {
|
|
3264
|
+
var e = oo(t, "string");
|
|
3235
3265
|
return typeof e == "symbol" ? e : e + "";
|
|
3236
3266
|
}
|
|
3237
|
-
function
|
|
3267
|
+
function oo(t, e) {
|
|
3238
3268
|
if (typeof t != "object" || !t)
|
|
3239
3269
|
return t;
|
|
3240
3270
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3246,9 +3276,9 @@ function ro(t, e) {
|
|
|
3246
3276
|
}
|
|
3247
3277
|
return (e === "string" ? String : Number)(t);
|
|
3248
3278
|
}
|
|
3249
|
-
class
|
|
3279
|
+
class St {
|
|
3250
3280
|
constructor(e) {
|
|
3251
|
-
|
|
3281
|
+
F(this, "context", void 0), F(this, "adsTrackSerializer", void 0), F(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new no(this.context);
|
|
3252
3282
|
}
|
|
3253
3283
|
getRequestContextData(e) {
|
|
3254
3284
|
var r, o;
|
|
@@ -3284,13 +3314,13 @@ class mt {
|
|
|
3284
3314
|
};
|
|
3285
3315
|
}
|
|
3286
3316
|
}
|
|
3287
|
-
class
|
|
3317
|
+
class Li {
|
|
3288
3318
|
constructor(e, i) {
|
|
3289
3319
|
var n = this;
|
|
3290
|
-
|
|
3320
|
+
F(this, "context", void 0), F(this, "contextInfo", void 0), F(this, "requestContext", void 0), F(this, "pendingAFGAdsInfo", {
|
|
3291
3321
|
REWARD: Promise.resolve(null),
|
|
3292
3322
|
INTERSTITIAL: Promise.resolve(null)
|
|
3293
|
-
}),
|
|
3323
|
+
}), F(this, "pendingAFVAdsInfo", Promise.resolve(null)), F(this, "doFetchAdsInfo", async (r) => {
|
|
3294
3324
|
const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
|
|
3295
3325
|
data: d,
|
|
3296
3326
|
code: l
|
|
@@ -3307,34 +3337,34 @@ class Di {
|
|
|
3307
3337
|
code: l,
|
|
3308
3338
|
data: d
|
|
3309
3339
|
} : null;
|
|
3310
|
-
}),
|
|
3340
|
+
}), F(this, "cacheRewardInfo", () => {
|
|
3311
3341
|
this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
|
|
3312
|
-
}),
|
|
3342
|
+
}), F(this, "cacheInterstitialInfo", (r) => {
|
|
3313
3343
|
this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
|
|
3314
|
-
}),
|
|
3344
|
+
}), F(this, "cacheAFVInfo", () => {
|
|
3315
3345
|
this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
|
|
3316
|
-
}),
|
|
3346
|
+
}), F(this, "cacheNextAFGAdsInfo", async (r) => {
|
|
3317
3347
|
r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
|
|
3318
|
-
}),
|
|
3348
|
+
}), F(this, "getAFGAdsInfo", async (r) => {
|
|
3319
3349
|
const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
|
|
3320
3350
|
return this.cacheNextAFGAdsInfo(r), o;
|
|
3321
|
-
}),
|
|
3351
|
+
}), F(this, "getAFVAdsInfo", async function() {
|
|
3322
3352
|
if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
|
|
3323
3353
|
const o = await n.pendingAFVAdsInfo;
|
|
3324
3354
|
return n.cacheAFVInfo(), o;
|
|
3325
3355
|
} else
|
|
3326
3356
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3327
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3357
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new St(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3328
3358
|
}
|
|
3329
3359
|
}
|
|
3330
3360
|
function z(t, e, i) {
|
|
3331
|
-
return (e =
|
|
3361
|
+
return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3332
3362
|
}
|
|
3333
|
-
function
|
|
3334
|
-
var e =
|
|
3363
|
+
function so(t) {
|
|
3364
|
+
var e = ao(t, "string");
|
|
3335
3365
|
return typeof e == "symbol" ? e : e + "";
|
|
3336
3366
|
}
|
|
3337
|
-
function
|
|
3367
|
+
function ao(t, e) {
|
|
3338
3368
|
if (typeof t != "object" || !t)
|
|
3339
3369
|
return t;
|
|
3340
3370
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3346,10 +3376,10 @@ function so(t, e) {
|
|
|
3346
3376
|
}
|
|
3347
3377
|
return (e === "string" ? String : Number)(t);
|
|
3348
3378
|
}
|
|
3349
|
-
class
|
|
3379
|
+
class Vo {
|
|
3350
3380
|
constructor(e) {
|
|
3351
3381
|
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)
|
|
3352
|
-
this.context = e, this.channelPolicy = new
|
|
3382
|
+
this.context = e, this.channelPolicy = new Tn(this.context), this.adsActionDetection = new Rn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Li(e), this.requestContext = new St(e);
|
|
3353
3383
|
else
|
|
3354
3384
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3355
3385
|
}
|
|
@@ -3368,23 +3398,23 @@ class Bo {
|
|
|
3368
3398
|
for (const n of i)
|
|
3369
3399
|
switch (n.provider) {
|
|
3370
3400
|
case "GOOGLE_GPT": {
|
|
3371
|
-
const r = new
|
|
3401
|
+
const r = new eo(this.context, n.params);
|
|
3372
3402
|
await r.init(), this.providers[n.provider] = r;
|
|
3373
3403
|
break;
|
|
3374
3404
|
}
|
|
3375
3405
|
case "ADSENSE":
|
|
3376
3406
|
case "ADSENSE_ADMOB": {
|
|
3377
|
-
const r = new
|
|
3407
|
+
const r = new Ln(this.context, n.params);
|
|
3378
3408
|
await r.init(), this.providers[n.provider] = r;
|
|
3379
3409
|
break;
|
|
3380
3410
|
}
|
|
3381
3411
|
case "OKSPIN": {
|
|
3382
|
-
const r = new
|
|
3412
|
+
const r = new Vr(this.context, n.params);
|
|
3383
3413
|
await r.init(), this.providers.OKSPIN = r;
|
|
3384
3414
|
break;
|
|
3385
3415
|
}
|
|
3386
3416
|
case "APPSROCKETS": {
|
|
3387
|
-
const r = new
|
|
3417
|
+
const r = new zr(this.context, n.params);
|
|
3388
3418
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3389
3419
|
break;
|
|
3390
3420
|
}
|
|
@@ -3456,8 +3486,8 @@ class Bo {
|
|
|
3456
3486
|
}
|
|
3457
3487
|
case "reward": {
|
|
3458
3488
|
e.beforeReward(() => {
|
|
3459
|
-
var R, O, A,
|
|
3460
|
-
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (
|
|
3489
|
+
var R, O, A, Ce;
|
|
3490
|
+
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Ce = e.adBreakDone) == null || Ce.call(e, {
|
|
3461
3491
|
breakType: e.type,
|
|
3462
3492
|
breakName: e.name,
|
|
3463
3493
|
breakFormat: "reward",
|
|
@@ -3487,7 +3517,7 @@ class Bo {
|
|
|
3487
3517
|
});
|
|
3488
3518
|
return;
|
|
3489
3519
|
} else {
|
|
3490
|
-
const R = b.sort((
|
|
3520
|
+
const R = b.sort((De, Le) => De.seq - Le.seq);
|
|
3491
3521
|
if (R.length === 0) {
|
|
3492
3522
|
(w = e.adBreakDone) == null || w.call(e, {
|
|
3493
3523
|
breakType: e.type,
|
|
@@ -3498,15 +3528,15 @@ class Bo {
|
|
|
3498
3528
|
return;
|
|
3499
3529
|
}
|
|
3500
3530
|
let O = !0, A = null;
|
|
3501
|
-
const
|
|
3531
|
+
const Ce = new En(this.context);
|
|
3502
3532
|
for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
|
|
3503
|
-
const
|
|
3504
|
-
if (
|
|
3505
|
-
const [
|
|
3506
|
-
var
|
|
3507
|
-
this.adsIsShowing =
|
|
3533
|
+
const De = R.shift(), Le = this.providers[De.provider];
|
|
3534
|
+
if (Le) {
|
|
3535
|
+
const [Pi, Ni] = await Ce.callAdBreakAndContinue(Le, e, De, (Et) => {
|
|
3536
|
+
var kt;
|
|
3537
|
+
this.adsIsShowing = Et, (kt = this.context.eventEmitter) == null || kt.emit("isAdShowing", Et);
|
|
3508
3538
|
});
|
|
3509
|
-
O =
|
|
3539
|
+
O = Pi, A = Ni;
|
|
3510
3540
|
} else
|
|
3511
3541
|
O = !0, A = {
|
|
3512
3542
|
breakType: e.type,
|
|
@@ -3533,14 +3563,14 @@ class Bo {
|
|
|
3533
3563
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3534
3564
|
}
|
|
3535
3565
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return (e =
|
|
3566
|
+
function $e(t, e, i) {
|
|
3567
|
+
return (e = lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3538
3568
|
}
|
|
3539
|
-
function
|
|
3540
|
-
var e =
|
|
3569
|
+
function lo(t) {
|
|
3570
|
+
var e = uo(t, "string");
|
|
3541
3571
|
return typeof e == "symbol" ? e : e + "";
|
|
3542
3572
|
}
|
|
3543
|
-
function
|
|
3573
|
+
function uo(t, e) {
|
|
3544
3574
|
if (typeof t != "object" || !t)
|
|
3545
3575
|
return t;
|
|
3546
3576
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3552,9 +3582,9 @@ function lo(t, e) {
|
|
|
3552
3582
|
}
|
|
3553
3583
|
return (e === "string" ? String : Number)(t);
|
|
3554
3584
|
}
|
|
3555
|
-
class
|
|
3585
|
+
class co {
|
|
3556
3586
|
constructor(e) {
|
|
3557
|
-
|
|
3587
|
+
$e(this, "context", void 0), $e(this, "currentProvider", void 0), $e(this, "continueCallback", void 0), $e(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3558
3588
|
}
|
|
3559
3589
|
get paramsToTrack() {
|
|
3560
3590
|
var e, i;
|
|
@@ -3575,7 +3605,7 @@ class uo {
|
|
|
3575
3605
|
wrapAdPlaying(e) {
|
|
3576
3606
|
return (i) => {
|
|
3577
3607
|
var n, r;
|
|
3578
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
3608
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), at() && this.context.track("mmp_ad_impression", {
|
|
3579
3609
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3580
3610
|
ad_format: "AFV",
|
|
3581
3611
|
module: "drama",
|
|
@@ -3603,14 +3633,14 @@ class uo {
|
|
|
3603
3633
|
});
|
|
3604
3634
|
}
|
|
3605
3635
|
}
|
|
3606
|
-
function
|
|
3607
|
-
return (e =
|
|
3636
|
+
function st(t, e, i) {
|
|
3637
|
+
return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3608
3638
|
}
|
|
3609
|
-
function
|
|
3610
|
-
var e =
|
|
3639
|
+
function ho(t) {
|
|
3640
|
+
var e = fo(t, "string");
|
|
3611
3641
|
return typeof e == "symbol" ? e : e + "";
|
|
3612
3642
|
}
|
|
3613
|
-
function
|
|
3643
|
+
function fo(t, e) {
|
|
3614
3644
|
if (typeof t != "object" || !t)
|
|
3615
3645
|
return t;
|
|
3616
3646
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3624,7 +3654,7 @@ function ho(t, e) {
|
|
|
3624
3654
|
}
|
|
3625
3655
|
class P extends Error {
|
|
3626
3656
|
constructor(e, i) {
|
|
3627
|
-
super(e.message),
|
|
3657
|
+
super(e.message), st(this, "name", void 0), st(this, "type", void 0), st(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3628
3658
|
}
|
|
3629
3659
|
static from(e, i) {
|
|
3630
3660
|
switch (i) {
|
|
@@ -3636,13 +3666,13 @@ class P extends Error {
|
|
|
3636
3666
|
}
|
|
3637
3667
|
}
|
|
3638
3668
|
function I(t, e, i) {
|
|
3639
|
-
return (e =
|
|
3669
|
+
return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3640
3670
|
}
|
|
3641
|
-
function
|
|
3642
|
-
var e =
|
|
3671
|
+
function vo(t) {
|
|
3672
|
+
var e = go(t, "string");
|
|
3643
3673
|
return typeof e == "symbol" ? e : e + "";
|
|
3644
3674
|
}
|
|
3645
|
-
function
|
|
3675
|
+
function go(t, e) {
|
|
3646
3676
|
if (typeof t != "object" || !t)
|
|
3647
3677
|
return t;
|
|
3648
3678
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3654,7 +3684,7 @@ function vo(t, e) {
|
|
|
3654
3684
|
}
|
|
3655
3685
|
return (e === "string" ? String : Number)(t);
|
|
3656
3686
|
}
|
|
3657
|
-
class
|
|
3687
|
+
class yo {
|
|
3658
3688
|
constructor(e, i, n) {
|
|
3659
3689
|
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", () => {
|
|
3660
3690
|
var r, o, s, a, d, l, u, h, c, f, w;
|
|
@@ -3719,9 +3749,9 @@ class go {
|
|
|
3719
3749
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3720
3750
|
}
|
|
3721
3751
|
}
|
|
3722
|
-
var
|
|
3723
|
-
const
|
|
3724
|
-
const t = E(!1), e = E(!1), i = E(null), n =
|
|
3752
|
+
var qe = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(qe || {});
|
|
3753
|
+
const wo = () => {
|
|
3754
|
+
const t = E(!1), e = E(!1), i = E(null), n = xt(), r = xt();
|
|
3725
3755
|
return {
|
|
3726
3756
|
visible: t,
|
|
3727
3757
|
canRetry: e,
|
|
@@ -3729,8 +3759,8 @@ const yo = () => {
|
|
|
3729
3759
|
videoRef: n,
|
|
3730
3760
|
adContainerRef: r
|
|
3731
3761
|
};
|
|
3732
|
-
},
|
|
3733
|
-
${
|
|
3762
|
+
}, po = we`
|
|
3763
|
+
${B}
|
|
3734
3764
|
position: fixed;
|
|
3735
3765
|
left: 0;
|
|
3736
3766
|
top: 0;
|
|
@@ -3745,7 +3775,7 @@ const yo = () => {
|
|
|
3745
3775
|
}
|
|
3746
3776
|
|
|
3747
3777
|
.ads-wrapper {
|
|
3748
|
-
${
|
|
3778
|
+
${B}
|
|
3749
3779
|
position: relative;
|
|
3750
3780
|
width: 100%;
|
|
3751
3781
|
height: 100%;
|
|
@@ -3768,7 +3798,7 @@ const yo = () => {
|
|
|
3768
3798
|
}
|
|
3769
3799
|
|
|
3770
3800
|
.retry-button {
|
|
3771
|
-
${
|
|
3801
|
+
${B}
|
|
3772
3802
|
position: absolute;
|
|
3773
3803
|
width: 100%;
|
|
3774
3804
|
height: 100%;
|
|
@@ -3778,7 +3808,7 @@ const yo = () => {
|
|
|
3778
3808
|
cursor: pointer;
|
|
3779
3809
|
}
|
|
3780
3810
|
}
|
|
3781
|
-
`,
|
|
3811
|
+
`, bo = (t) => {
|
|
3782
3812
|
let {
|
|
3783
3813
|
onReady: e,
|
|
3784
3814
|
state: i
|
|
@@ -3794,10 +3824,10 @@ const yo = () => {
|
|
|
3794
3824
|
r.value = null, o.value = !1;
|
|
3795
3825
|
}));
|
|
3796
3826
|
};
|
|
3797
|
-
return
|
|
3827
|
+
return Je(() => {
|
|
3798
3828
|
e();
|
|
3799
3829
|
}, [e]), _("div", {
|
|
3800
|
-
className:
|
|
3830
|
+
className: po,
|
|
3801
3831
|
"data-visible": n.value,
|
|
3802
3832
|
children: _("div", {
|
|
3803
3833
|
className: "ads-wrapper",
|
|
@@ -3834,13 +3864,13 @@ const yo = () => {
|
|
|
3834
3864
|
});
|
|
3835
3865
|
};
|
|
3836
3866
|
function te(t, e, i) {
|
|
3837
|
-
return (e =
|
|
3867
|
+
return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3838
3868
|
}
|
|
3839
|
-
function
|
|
3840
|
-
var e =
|
|
3869
|
+
function Ao(t) {
|
|
3870
|
+
var e = _o(t, "string");
|
|
3841
3871
|
return typeof e == "symbol" ? e : e + "";
|
|
3842
3872
|
}
|
|
3843
|
-
function
|
|
3873
|
+
function _o(t, e) {
|
|
3844
3874
|
if (typeof t != "object" || !t)
|
|
3845
3875
|
return t;
|
|
3846
3876
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3852,9 +3882,9 @@ function Ao(t, e) {
|
|
|
3852
3882
|
}
|
|
3853
3883
|
return (e === "string" ? String : Number)(t);
|
|
3854
3884
|
}
|
|
3855
|
-
class
|
|
3885
|
+
class mo {
|
|
3856
3886
|
constructor(e) {
|
|
3857
|
-
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",
|
|
3887
|
+
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", wo()), te(this, "init", async (i) => {
|
|
3858
3888
|
if (this.initialized)
|
|
3859
3889
|
return;
|
|
3860
3890
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3870,10 +3900,10 @@ class _o {
|
|
|
3870
3900
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3871
3901
|
}
|
|
3872
3902
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3873
|
-
oe(_(
|
|
3903
|
+
oe(_(bo, {
|
|
3874
3904
|
state: this.state,
|
|
3875
3905
|
onReady: () => {
|
|
3876
|
-
this.ima = new
|
|
3906
|
+
this.ima = new yo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3877
3907
|
}
|
|
3878
3908
|
}), this.adsOverlay);
|
|
3879
3909
|
}), this.initialized = !0;
|
|
@@ -3895,9 +3925,9 @@ class _o {
|
|
|
3895
3925
|
r = !0;
|
|
3896
3926
|
let c = !1;
|
|
3897
3927
|
switch (h.raw.getErrorCode()) {
|
|
3898
|
-
case
|
|
3899
|
-
case
|
|
3900
|
-
case
|
|
3928
|
+
case qe.AUTOPLAY_DISALLOWED:
|
|
3929
|
+
case qe.VIDEO_PLAY_ERROR:
|
|
3930
|
+
case qe.ADS_REQUEST_NETWORK_ERROR: {
|
|
3901
3931
|
c = !0;
|
|
3902
3932
|
break;
|
|
3903
3933
|
}
|
|
@@ -3939,13 +3969,13 @@ class _o {
|
|
|
3939
3969
|
}
|
|
3940
3970
|
}
|
|
3941
3971
|
function J(t, e, i) {
|
|
3942
|
-
return (e =
|
|
3972
|
+
return (e = So(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3943
3973
|
}
|
|
3944
|
-
function
|
|
3945
|
-
var e =
|
|
3974
|
+
function So(t) {
|
|
3975
|
+
var e = Eo(t, "string");
|
|
3946
3976
|
return typeof e == "symbol" ? e : e + "";
|
|
3947
3977
|
}
|
|
3948
|
-
function
|
|
3978
|
+
function Eo(t, e) {
|
|
3949
3979
|
if (typeof t != "object" || !t)
|
|
3950
3980
|
return t;
|
|
3951
3981
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3957,11 +3987,11 @@ function So(t, e) {
|
|
|
3957
3987
|
}
|
|
3958
3988
|
return (e === "string" ? String : Number)(t);
|
|
3959
3989
|
}
|
|
3960
|
-
class
|
|
3990
|
+
class ko {
|
|
3961
3991
|
constructor(e) {
|
|
3962
|
-
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",
|
|
3992
|
+
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", Ri()), J(this, "init", async (i) => {
|
|
3963
3993
|
var n;
|
|
3964
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(
|
|
3994
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(xi, {
|
|
3965
3995
|
state: this.state
|
|
3966
3996
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3967
3997
|
}), J(this, "destroy", () => {
|
|
@@ -3993,13 +4023,13 @@ class Eo {
|
|
|
3993
4023
|
}
|
|
3994
4024
|
}
|
|
3995
4025
|
function H(t, e, i) {
|
|
3996
|
-
return (e =
|
|
4026
|
+
return (e = Io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3997
4027
|
}
|
|
3998
|
-
function
|
|
3999
|
-
var e =
|
|
4028
|
+
function Io(t) {
|
|
4029
|
+
var e = Ro(t, "string");
|
|
4000
4030
|
return typeof e == "symbol" ? e : e + "";
|
|
4001
4031
|
}
|
|
4002
|
-
function
|
|
4032
|
+
function Ro(t, e) {
|
|
4003
4033
|
if (typeof t != "object" || !t)
|
|
4004
4034
|
return t;
|
|
4005
4035
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4011,15 +4041,15 @@ function Io(t, e) {
|
|
|
4011
4041
|
}
|
|
4012
4042
|
return (e === "string" ? String : Number)(t);
|
|
4013
4043
|
}
|
|
4014
|
-
class
|
|
4044
|
+
class xo {
|
|
4015
4045
|
constructor(e) {
|
|
4016
|
-
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",
|
|
4046
|
+
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", Oi()), H(this, "processUrl", (i) => {
|
|
4017
4047
|
var s;
|
|
4018
4048
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
4019
4049
|
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();
|
|
4020
4050
|
}), H(this, "init", async (i) => {
|
|
4021
4051
|
var n;
|
|
4022
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(
|
|
4052
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Ti, {
|
|
4023
4053
|
state: this.state
|
|
4024
4054
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
4025
4055
|
}), H(this, "destroy", () => {
|
|
@@ -4056,13 +4086,13 @@ class Ro {
|
|
|
4056
4086
|
}
|
|
4057
4087
|
}
|
|
4058
4088
|
function ie(t, e, i) {
|
|
4059
|
-
return (e =
|
|
4089
|
+
return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4060
4090
|
}
|
|
4061
|
-
function
|
|
4062
|
-
var e =
|
|
4091
|
+
function Oo(t) {
|
|
4092
|
+
var e = To(t, "string");
|
|
4063
4093
|
return typeof e == "symbol" ? e : e + "";
|
|
4064
4094
|
}
|
|
4065
|
-
function
|
|
4095
|
+
function To(t, e) {
|
|
4066
4096
|
if (typeof t != "object" || !t)
|
|
4067
4097
|
return t;
|
|
4068
4098
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4074,12 +4104,12 @@ function Oo(t, e) {
|
|
|
4074
4104
|
}
|
|
4075
4105
|
return (e === "string" ? String : Number)(t);
|
|
4076
4106
|
}
|
|
4077
|
-
class
|
|
4107
|
+
class Co {
|
|
4078
4108
|
constructor(e) {
|
|
4079
4109
|
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) => {
|
|
4080
4110
|
if (!this.rewardAdManager) {
|
|
4081
4111
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
4082
|
-
this.rewardAdManager = new
|
|
4112
|
+
this.rewardAdManager = new Di(n, o, i.params.keyValue);
|
|
4083
4113
|
}
|
|
4084
4114
|
}), ie(this, "insertScript", () => {
|
|
4085
4115
|
const i = "jolibox-google-gpt";
|
|
@@ -4126,14 +4156,14 @@ class To {
|
|
|
4126
4156
|
}), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
|
|
4127
4157
|
}
|
|
4128
4158
|
}
|
|
4129
|
-
function
|
|
4130
|
-
return (e =
|
|
4159
|
+
function le(t, e, i) {
|
|
4160
|
+
return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4131
4161
|
}
|
|
4132
|
-
function
|
|
4133
|
-
var e =
|
|
4162
|
+
function Do(t) {
|
|
4163
|
+
var e = Lo(t, "string");
|
|
4134
4164
|
return typeof e == "symbol" ? e : e + "";
|
|
4135
4165
|
}
|
|
4136
|
-
function
|
|
4166
|
+
function Lo(t, e) {
|
|
4137
4167
|
if (typeof t != "object" || !t)
|
|
4138
4168
|
return t;
|
|
4139
4169
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4145,10 +4175,10 @@ function Do(t, e) {
|
|
|
4145
4175
|
}
|
|
4146
4176
|
return (e === "string" ? String : Number)(t);
|
|
4147
4177
|
}
|
|
4148
|
-
class
|
|
4178
|
+
class Go {
|
|
4149
4179
|
constructor(e) {
|
|
4150
|
-
if (
|
|
4151
|
-
this.context = e, this.requestContext = new
|
|
4180
|
+
if (le(this, "context", void 0), le(this, "contextInfo", void 0), le(this, "providers", {}), le(this, "requestContext", void 0), le(this, "adsRequest", void 0), le(this, "initialized", !1), e)
|
|
4181
|
+
this.context = e, this.requestContext = new St(e), this.adsRequest = new Li(e, {
|
|
4152
4182
|
reward: !1,
|
|
4153
4183
|
interstitial: !1,
|
|
4154
4184
|
afv: !1
|
|
@@ -4170,22 +4200,22 @@ class Vo {
|
|
|
4170
4200
|
for (const i of e)
|
|
4171
4201
|
switch (i.provider) {
|
|
4172
4202
|
case "GOOGLE_GPT": {
|
|
4173
|
-
const n = new
|
|
4203
|
+
const n = new Co(this.context);
|
|
4174
4204
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4175
4205
|
break;
|
|
4176
4206
|
}
|
|
4177
4207
|
case "GOOGLE_IMA": {
|
|
4178
|
-
const n = new
|
|
4208
|
+
const n = new mo(this.context);
|
|
4179
4209
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4180
4210
|
break;
|
|
4181
4211
|
}
|
|
4182
4212
|
case "OKSPIN": {
|
|
4183
|
-
const n = new
|
|
4213
|
+
const n = new ko(this.context);
|
|
4184
4214
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4185
4215
|
break;
|
|
4186
4216
|
}
|
|
4187
4217
|
case "APPSROCKETS": {
|
|
4188
|
-
const n = new
|
|
4218
|
+
const n = new xo(this.context);
|
|
4189
4219
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4190
4220
|
break;
|
|
4191
4221
|
}
|
|
@@ -4222,7 +4252,7 @@ class Vo {
|
|
|
4222
4252
|
return;
|
|
4223
4253
|
}
|
|
4224
4254
|
let y = !0, v = null;
|
|
4225
|
-
const b = new
|
|
4255
|
+
const b = new co(this.context);
|
|
4226
4256
|
for (; p.length > 0; ) {
|
|
4227
4257
|
const T = p.shift(), R = this.providers[T.provider];
|
|
4228
4258
|
if (R) {
|
|
@@ -4247,14 +4277,14 @@ class Vo {
|
|
|
4247
4277
|
}
|
|
4248
4278
|
}
|
|
4249
4279
|
}
|
|
4250
|
-
function
|
|
4251
|
-
return (e =
|
|
4280
|
+
function ue(t, e, i) {
|
|
4281
|
+
return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4252
4282
|
}
|
|
4253
|
-
function
|
|
4254
|
-
var e =
|
|
4283
|
+
function Po(t) {
|
|
4284
|
+
var e = No(t, "string");
|
|
4255
4285
|
return typeof e == "symbol" ? e : e + "";
|
|
4256
4286
|
}
|
|
4257
|
-
function
|
|
4287
|
+
function No(t, e) {
|
|
4258
4288
|
if (typeof t != "object" || !t)
|
|
4259
4289
|
return t;
|
|
4260
4290
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4266,21 +4296,21 @@ function Po(t, e) {
|
|
|
4266
4296
|
}
|
|
4267
4297
|
return (e === "string" ? String : Number)(t);
|
|
4268
4298
|
}
|
|
4269
|
-
class
|
|
4299
|
+
class qo extends Error {
|
|
4270
4300
|
constructor(e) {
|
|
4271
|
-
super(e),
|
|
4301
|
+
super(e), ue(this, "name", void 0), ue(this, "message", void 0), ue(this, "errMsg", void 0), ue(this, "code", void 0), ue(this, "data", void 0), ue(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4272
4302
|
}
|
|
4273
4303
|
}
|
|
4274
4304
|
export {
|
|
4275
4305
|
P as AFVWrappedError,
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4306
|
+
Ln as GoogleAdSenseProvider,
|
|
4307
|
+
mo as GoogleIMAProvider,
|
|
4308
|
+
Xr as InterstitialAdManager,
|
|
4309
|
+
Vo as JoliboxAdsForGame,
|
|
4310
|
+
Go as JoliboxAdsForVideo,
|
|
4311
|
+
Vr as OKSpinForGameProvider,
|
|
4312
|
+
ko as OKSpinForVideoProvider,
|
|
4313
|
+
qo as ResponseError,
|
|
4314
|
+
Di as RewardAdManager,
|
|
4315
|
+
Ci as initGPTServices
|
|
4286
4316
|
};
|