@jolibox/ads 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/afg/index.d.ts +2 -3
- package/dist/afv/index.d.ts +2 -3
- package/dist/components/ads-request.d.ts +76 -0
- package/dist/index.js +1110 -1054
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Et = Object.getOwnPropertySymbols;
|
|
2
|
+
var Pi = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var kt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
7
|
-
if (t != null &&
|
|
8
|
-
for (var n of
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
6
|
+
Pi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && Et)
|
|
8
|
+
for (var n of Et(t))
|
|
9
|
+
e.indexOf(n) < 0 && Ni.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as
|
|
13
|
-
import { useRef as
|
|
14
|
-
var
|
|
12
|
+
import { options as he, Component as Mi, isValidElement as $i } from "preact";
|
|
13
|
+
import { useRef as ji, useLayoutEffect as Fi, useEffect as He, useMemo as Ui, useState as Yt, useCallback as Bi, render as oe, createRef as It } from "preact/compat";
|
|
14
|
+
var Xt = Object.defineProperty, Vi = Object.defineProperties, Gi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, xt = (t, e, i) => e in t ? Xt(t, e, {
|
|
15
15
|
enumerable: !0,
|
|
16
16
|
configurable: !0,
|
|
17
17
|
writable: !0,
|
|
18
18
|
value: i
|
|
19
|
-
}) : t[e] = i,
|
|
19
|
+
}) : t[e] = i, zi = (t, e) => {
|
|
20
20
|
for (var i in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var i of
|
|
24
|
-
|
|
21
|
+
qi.call(e, i) && xt(t, i, e[i]);
|
|
22
|
+
if (Rt)
|
|
23
|
+
for (var i of Rt(e))
|
|
24
|
+
Ki.call(e, i) && xt(t, i, e[i]);
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
26
|
+
}, Hi = (t, e) => Vi(t, Gi(e)), Wi = (t, e) => {
|
|
27
27
|
for (var i in e)
|
|
28
|
-
|
|
28
|
+
Xt(t, i, {
|
|
29
29
|
get: e[i],
|
|
30
30
|
enumerable: !0
|
|
31
31
|
});
|
|
32
|
-
},
|
|
32
|
+
}, Qt = (t, e, i, n) => {
|
|
33
33
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
34
34
|
(s = t[o]) && (r = s(r) || r);
|
|
35
35
|
return r;
|
|
36
|
-
},
|
|
36
|
+
}, Ji = (t, e, i) => new Promise((n, r) => {
|
|
37
37
|
var o = (d) => {
|
|
38
38
|
try {
|
|
39
39
|
a(i.next(d));
|
|
@@ -78,26 +78,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
78
78
|
n.call(this, i);
|
|
79
79
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Yi(t) {
|
|
82
82
|
return new Promise((e) => {
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
e();
|
|
85
85
|
}, t);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Xi(t) {
|
|
89
89
|
return typeof t == "string";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qi(t) {
|
|
92
92
|
return typeof t == "undefined";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function Zi(t) {
|
|
95
|
+
return Qi(t) || t === null;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function en(t) {
|
|
98
98
|
return typeof t == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Zt(t) {
|
|
101
101
|
let e = t, i = null, n = function() {
|
|
102
102
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
103
103
|
o[s] = arguments[s];
|
|
@@ -105,29 +105,29 @@ function Wt(t) {
|
|
|
105
105
|
};
|
|
106
106
|
return n.prototype = e.prototype, n;
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var tn = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(tn || {});
|
|
109
|
+
function pe(t) {
|
|
110
110
|
return function() {
|
|
111
111
|
var e, i;
|
|
112
112
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
log:
|
|
117
|
-
warn:
|
|
118
|
-
info:
|
|
119
|
-
error:
|
|
120
|
-
debug:
|
|
115
|
+
var nn = {
|
|
116
|
+
log: pe("log"),
|
|
117
|
+
warn: pe("warn"),
|
|
118
|
+
info: pe("info"),
|
|
119
|
+
error: pe("error"),
|
|
120
|
+
debug: pe("debug")
|
|
121
121
|
};
|
|
122
122
|
Object.assign(globalThis, {
|
|
123
|
-
logger:
|
|
123
|
+
logger: nn
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
globalThis[
|
|
127
|
-
var
|
|
128
|
-
globalThis[
|
|
129
|
-
var
|
|
130
|
-
function
|
|
125
|
+
var Ot = Symbol.for("Jolibox.canIUseMap"), rn = {};
|
|
126
|
+
globalThis[Ot] || (globalThis[Ot] = rn);
|
|
127
|
+
var Tt = Symbol.for("Jolibox.canIUseMap.native"), on = {};
|
|
128
|
+
globalThis[Tt] || (globalThis[Tt] = on);
|
|
129
|
+
var ei = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(ei || {}), ti = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ti || {}), ii = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(ii || {}), Ct = ["name", "params"], sn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], an = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
130
|
+
function Me(t, e) {
|
|
131
131
|
return e.map((i) => {
|
|
132
132
|
if (i === "params" && t[i]) {
|
|
133
133
|
let n = t[i];
|
|
@@ -136,18 +136,18 @@ function De(t, e) {
|
|
|
136
136
|
return t[i];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e = t.location ?
|
|
141
|
-
return
|
|
139
|
+
function dn(t) {
|
|
140
|
+
let e = t.location ? Me(t.location, Ct) : null, i = t.target ? Me(t.target, Ct) : null;
|
|
141
|
+
return Me(Hi(zi({}, t), {
|
|
142
142
|
location: e,
|
|
143
143
|
target: i
|
|
144
|
-
}),
|
|
144
|
+
}), sn);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let e = t.events.map((n) =>
|
|
146
|
+
function ln(t) {
|
|
147
|
+
let e = t.events.map((n) => dn(n)), i = Me(t.device, an);
|
|
148
148
|
return [t.protocolVersion, e, i, t.project];
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function un() {
|
|
151
151
|
try {
|
|
152
152
|
if (window.__joliboxLocalStorage__)
|
|
153
153
|
return window.__joliboxLocalStorage__;
|
|
@@ -168,16 +168,16 @@ function nn() {
|
|
|
168
168
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
var
|
|
171
|
+
un();
|
|
172
|
+
var ot = () => !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
173
173
|
navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
174
|
-
var
|
|
174
|
+
var st = class at {
|
|
175
175
|
constructor(e) {
|
|
176
|
-
this.element = e, this.next =
|
|
176
|
+
this.element = e, this.next = at.Undefined, this.prev = at.Undefined;
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
var x =
|
|
179
|
+
st.Undefined = new st(void 0);
|
|
180
|
+
var x = st, cn = class {
|
|
181
181
|
constructor() {
|
|
182
182
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
183
183
|
}
|
|
@@ -243,17 +243,17 @@ var x = it, rn = class {
|
|
|
243
243
|
for (; t !== x.Undefined; )
|
|
244
244
|
yield t.element, t = t.next;
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, hn = 0, be = class {
|
|
247
247
|
constructor(t) {
|
|
248
|
-
this.value = t, this.id =
|
|
248
|
+
this.value = t, this.id = hn++;
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, Se = class {
|
|
251
251
|
constructor(e) {
|
|
252
252
|
this.options = e, this._size = 0;
|
|
253
253
|
}
|
|
254
254
|
dispose(e) {
|
|
255
255
|
var i, n;
|
|
256
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
256
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof be && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
257
257
|
}
|
|
258
258
|
get event() {
|
|
259
259
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -263,15 +263,15 @@ var x = it, rn = class {
|
|
|
263
263
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
264
264
|
};
|
|
265
265
|
i && (e = e.bind(i));
|
|
266
|
-
let l = new
|
|
267
|
-
return this._listeners ? this._listeners instanceof
|
|
266
|
+
let l = new be(e);
|
|
267
|
+
return this._listeners ? this._listeners instanceof be ? 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++, () => {
|
|
268
268
|
var u, h, c, f;
|
|
269
269
|
if (!this._disposed) {
|
|
270
|
-
if (this._listeners instanceof
|
|
270
|
+
if (this._listeners instanceof be)
|
|
271
271
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
|
|
272
272
|
else if (this._listeners) {
|
|
273
|
-
let
|
|
274
|
-
|
|
273
|
+
let w = this._listeners.indexOf(l);
|
|
274
|
+
w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
};
|
|
@@ -293,19 +293,19 @@ var x = it, rn = class {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
fire(e) {
|
|
296
|
-
this._listeners && (this._listeners instanceof
|
|
296
|
+
this._listeners && (this._listeners instanceof be ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
297
297
|
}
|
|
298
298
|
hasListeners() {
|
|
299
299
|
return this._size > 0;
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, fn = class {
|
|
302
302
|
constructor() {
|
|
303
303
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
304
304
|
}
|
|
305
305
|
on(e, i) {
|
|
306
306
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
307
307
|
var r;
|
|
308
|
-
let o = (r = this.listeners.get(e)) != null ? r : new
|
|
308
|
+
let o = (r = this.listeners.get(e)) != null ? r : new Se(), s = (l) => i(...l.args), a = o.event(s);
|
|
309
309
|
this.listerHandlerMap.set(i, {
|
|
310
310
|
handler: s,
|
|
311
311
|
dispose: a
|
|
@@ -326,7 +326,7 @@ var x = it, rn = class {
|
|
|
326
326
|
let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
|
|
327
327
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
328
328
|
o[s - 1] = arguments[s];
|
|
329
|
-
n || (n = new
|
|
329
|
+
n || (n = new cn(), this.cachedEventQueue.set(e, n)), n.push({
|
|
330
330
|
args: o
|
|
331
331
|
}), i && i.fire({
|
|
332
332
|
event: e,
|
|
@@ -340,20 +340,20 @@ var x = it, rn = class {
|
|
|
340
340
|
};
|
|
341
341
|
this.on(e, r, !1);
|
|
342
342
|
}
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
None: () =>
|
|
346
|
-
filter: () =>
|
|
347
|
-
once: () =>
|
|
348
|
-
toPromise: () =>
|
|
343
|
+
}, dt = {};
|
|
344
|
+
Wi(dt, {
|
|
345
|
+
None: () => vn,
|
|
346
|
+
filter: () => yn,
|
|
347
|
+
once: () => ni,
|
|
348
|
+
toPromise: () => gn
|
|
349
349
|
});
|
|
350
|
-
var
|
|
350
|
+
var vn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
351
351
|
console.log("[Jolibox SDK] None Event dispose");
|
|
352
352
|
});
|
|
353
|
-
function
|
|
354
|
-
return new Promise((e) =>
|
|
353
|
+
function gn(t) {
|
|
354
|
+
return new Promise((e) => ni(t)(e));
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function ni(t) {
|
|
357
357
|
return function(e) {
|
|
358
358
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
359
359
|
return t((r) => {
|
|
@@ -362,52 +362,52 @@ function Qt(t) {
|
|
|
362
362
|
}, null);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function yn(t, e) {
|
|
366
366
|
return ((i) => {
|
|
367
367
|
let n = {
|
|
368
368
|
onWillAddFirstListener() {
|
|
369
369
|
i(r.fire, r);
|
|
370
370
|
}
|
|
371
|
-
}, r = new
|
|
371
|
+
}, r = new Se(n);
|
|
372
372
|
return r.event;
|
|
373
373
|
})(function(i) {
|
|
374
374
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
375
375
|
return t((r) => e(r) && i.call(n, r), null);
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
var
|
|
379
|
-
let t = new
|
|
380
|
-
return globalThis[
|
|
378
|
+
var Qe = Symbol.for("Jolibox.hostEmitter"), wn = () => {
|
|
379
|
+
let t = new fn();
|
|
380
|
+
return globalThis[Qe] || (globalThis[Qe] = {
|
|
381
381
|
on: t.on.bind(t),
|
|
382
382
|
off: t.off.bind(t),
|
|
383
383
|
emit: t.emit.bind(t),
|
|
384
384
|
once: t.once.bind(t)
|
|
385
|
-
}), globalThis[
|
|
385
|
+
}), globalThis[Qe];
|
|
386
386
|
};
|
|
387
|
-
|
|
388
|
-
function
|
|
387
|
+
wn();
|
|
388
|
+
function pn(t, e) {
|
|
389
389
|
let i = Math.min(t.length, e.length);
|
|
390
390
|
for (let n = 0; n < i; n++)
|
|
391
|
-
|
|
391
|
+
bn(t[n], e[n]);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
393
|
+
function bn(t, e) {
|
|
394
|
+
if (Xi(e)) {
|
|
395
395
|
if (typeof t !== e)
|
|
396
396
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
397
|
-
} else if (
|
|
397
|
+
} else if (en(e)) {
|
|
398
398
|
try {
|
|
399
399
|
if (t instanceof e)
|
|
400
400
|
return;
|
|
401
401
|
} catch (i) {
|
|
402
402
|
}
|
|
403
|
-
if (!
|
|
403
|
+
if (!Zi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
404
404
|
return;
|
|
405
405
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
var
|
|
408
|
+
var lt = class {
|
|
409
409
|
constructor() {
|
|
410
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
410
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Se(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
411
411
|
}
|
|
412
412
|
registerCommand(e) {
|
|
413
413
|
if (!e)
|
|
@@ -420,7 +420,7 @@ var ot = class {
|
|
|
420
420
|
e.handler = function() {
|
|
421
421
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
422
422
|
s[a] = arguments[a];
|
|
423
|
-
return
|
|
423
|
+
return pn(s, n), r(...s);
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
let {
|
|
@@ -440,19 +440,19 @@ var ot = class {
|
|
|
440
440
|
return e;
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
|
|
444
|
-
var
|
|
443
|
+
lt = Qt([Zt], lt);
|
|
444
|
+
var Dt = class {
|
|
445
445
|
constructor() {
|
|
446
|
-
this._onWillExecuteCommand = new
|
|
446
|
+
this._onWillExecuteCommand = new Se(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Se(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new lt(), this._starActivation = null;
|
|
447
447
|
}
|
|
448
448
|
_activateStar() {
|
|
449
|
-
return this._starActivation || (this._starActivation =
|
|
449
|
+
return this._starActivation || (this._starActivation = Yi(3e4)), this._starActivation;
|
|
450
450
|
}
|
|
451
451
|
executeCommand(e) {
|
|
452
452
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
453
453
|
n[r - 1] = arguments[r];
|
|
454
|
-
return
|
|
455
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
454
|
+
return Ji(this, null, function* () {
|
|
455
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), dt.toPromise(dt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
executeCommandThowErr(e) {
|
|
@@ -498,15 +498,15 @@ var xt = class {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
|
|
502
|
-
function
|
|
503
|
-
return (e =
|
|
501
|
+
Dt = Qt([Zt], Dt);
|
|
502
|
+
function B(t, e, i) {
|
|
503
|
+
return (e = An(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
var e =
|
|
505
|
+
function An(t) {
|
|
506
|
+
var e = _n(t, "string");
|
|
507
507
|
return typeof e == "symbol" ? e : e + "";
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function _n(t, e) {
|
|
510
510
|
if (typeof t != "object" || !t)
|
|
511
511
|
return t;
|
|
512
512
|
var i = t[Symbol.toPrimitive];
|
|
@@ -518,9 +518,9 @@ function vn(t, e) {
|
|
|
518
518
|
}
|
|
519
519
|
return (e === "string" ? String : Number)(t);
|
|
520
520
|
}
|
|
521
|
-
class
|
|
521
|
+
class mn {
|
|
522
522
|
constructor(e) {
|
|
523
|
-
|
|
523
|
+
B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "contextInfo", void 0), B(this, "wrapShowAdFn", (i) => () => {
|
|
524
524
|
var r, o, s;
|
|
525
525
|
this.adsHasResponse = !0;
|
|
526
526
|
let n = !1;
|
|
@@ -528,7 +528,7 @@ class gn {
|
|
|
528
528
|
n = !1;
|
|
529
529
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
530
530
|
userEvent: n
|
|
531
|
-
}, this.paramsToTrack)),
|
|
531
|
+
}, this.paramsToTrack)), ot() && this.context.track("mmp_ad_impression", {
|
|
532
532
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
533
533
|
ad_format: "rewarded",
|
|
534
534
|
module: "game",
|
|
@@ -547,7 +547,7 @@ class gn {
|
|
|
547
547
|
wrapBeforeAd(e) {
|
|
548
548
|
return () => {
|
|
549
549
|
var i, n, r, o;
|
|
550
|
-
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0),
|
|
550
|
+
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), ot() && this.context.track("mmp_ad_impression", {
|
|
551
551
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
552
552
|
ad_format: "interstitial",
|
|
553
553
|
module: "game",
|
|
@@ -656,14 +656,14 @@ class gn {
|
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return (e =
|
|
659
|
+
function De(t, e, i) {
|
|
660
|
+
return (e = Sn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
var e =
|
|
662
|
+
function Sn(t) {
|
|
663
|
+
var e = En(t, "string");
|
|
664
664
|
return typeof e == "symbol" ? e : e + "";
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function En(t, e) {
|
|
667
667
|
if (typeof t != "object" || !t)
|
|
668
668
|
return t;
|
|
669
669
|
var i = t[Symbol.toPrimitive];
|
|
@@ -675,13 +675,13 @@ function pn(t, e) {
|
|
|
675
675
|
}
|
|
676
676
|
return (e === "string" ? String : Number)(t);
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class kn {
|
|
679
679
|
constructor(e) {
|
|
680
|
-
|
|
680
|
+
De(this, "context", void 0), De(this, "adBreakIsShowing", !1), De(this, "reportPageJumpOut", () => {
|
|
681
681
|
this.context.track("AdBreakJumpOut", {
|
|
682
682
|
context: "AdsActionDetection"
|
|
683
683
|
});
|
|
684
|
-
}),
|
|
684
|
+
}), De(this, "reportPageHide", () => {
|
|
685
685
|
this.context.track("AdBreakHide", {
|
|
686
686
|
context: "AdsActionDetection"
|
|
687
687
|
});
|
|
@@ -692,82 +692,14 @@ class wn {
|
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return (e =
|
|
697
|
-
}
|
|
698
|
-
function bn(t) {
|
|
699
|
-
var e = _n(t, "string");
|
|
700
|
-
return typeof e == "symbol" ? e : e + "";
|
|
701
|
-
}
|
|
702
|
-
function _n(t, e) {
|
|
703
|
-
if (typeof t != "object" || !t)
|
|
704
|
-
return t;
|
|
705
|
-
var i = t[Symbol.toPrimitive];
|
|
706
|
-
if (i !== void 0) {
|
|
707
|
-
var n = i.call(t, e);
|
|
708
|
-
if (typeof n != "object")
|
|
709
|
-
return n;
|
|
710
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
711
|
-
}
|
|
712
|
-
return (e === "string" ? String : Number)(t);
|
|
713
|
-
}
|
|
714
|
-
class Zt {
|
|
715
|
-
constructor(e) {
|
|
716
|
-
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
717
|
-
Je(this, "context", void 0), Je(this, "placement", "GAME"), Je(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
718
|
-
}
|
|
719
|
-
getLocation() {
|
|
720
|
-
const e = new URLSearchParams(window.location.search), i = {};
|
|
721
|
-
return e.forEach((n, r) => {
|
|
722
|
-
i[r] = n;
|
|
723
|
-
}), {
|
|
724
|
-
name: this.placement === "GAME" ? "GamePage" : "DramaPage",
|
|
725
|
-
params: i
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
getDevice() {
|
|
729
|
-
var e, i, n, r;
|
|
730
|
-
return {
|
|
731
|
-
platform: (e = this.contextInfo.platform) != null ? e : Xt.WebSDK,
|
|
732
|
-
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
733
|
-
appVersion: "1.0.0",
|
|
734
|
-
// mock
|
|
735
|
-
appId: (i = this.contextInfo.hostAppId) != null ? i : "1",
|
|
736
|
-
model: (n = this.contextInfo.deviceModel) != null ? n : "UnknownModel",
|
|
737
|
-
brand: (r = this.contextInfo.deviceBrand) != null ? r : "UnknownBrand",
|
|
738
|
-
uuid: this.contextInfo.deviceId,
|
|
739
|
-
jsSdkVersion: "1.0.0",
|
|
740
|
-
// mock
|
|
741
|
-
extra: {}
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
serialize(e, i) {
|
|
745
|
-
var o;
|
|
746
|
-
const r = {
|
|
747
|
-
protocolVersion: "1.0.0",
|
|
748
|
-
events: [{
|
|
749
|
-
name: e,
|
|
750
|
-
type: Jt.System,
|
|
751
|
-
location: this.getLocation(),
|
|
752
|
-
target: null,
|
|
753
|
-
extra: i,
|
|
754
|
-
timestamp: Date.now(),
|
|
755
|
-
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
756
|
-
}],
|
|
757
|
-
device: this.getDevice(),
|
|
758
|
-
project: Yt.WebSDK
|
|
759
|
-
};
|
|
760
|
-
return tn(r);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
function Oe(t, e, i) {
|
|
764
|
-
return (e = An(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
695
|
+
function Le(t, e, i) {
|
|
696
|
+
return (e = In(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
765
697
|
}
|
|
766
|
-
function
|
|
767
|
-
var e =
|
|
698
|
+
function In(t) {
|
|
699
|
+
var e = Rn(t, "string");
|
|
768
700
|
return typeof e == "symbol" ? e : e + "";
|
|
769
701
|
}
|
|
770
|
-
function
|
|
702
|
+
function Rn(t, e) {
|
|
771
703
|
if (typeof t != "object" || !t)
|
|
772
704
|
return t;
|
|
773
705
|
var i = t[Symbol.toPrimitive];
|
|
@@ -779,9 +711,9 @@ function mn(t, e) {
|
|
|
779
711
|
}
|
|
780
712
|
return (e === "string" ? String : Number)(t);
|
|
781
713
|
}
|
|
782
|
-
class
|
|
714
|
+
class xn {
|
|
783
715
|
constructor(e) {
|
|
784
|
-
|
|
716
|
+
Le(this, "configs", null), Le(this, "firstRun", !0), Le(this, "context", void 0), Le(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
785
717
|
}
|
|
786
718
|
async init() {
|
|
787
719
|
try {
|
|
@@ -805,14 +737,14 @@ class Sn {
|
|
|
805
737
|
return this.firstRun = !1, e;
|
|
806
738
|
}
|
|
807
739
|
}
|
|
808
|
-
function
|
|
809
|
-
return (e =
|
|
740
|
+
function Q(t, e, i) {
|
|
741
|
+
return (e = On(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
810
742
|
}
|
|
811
|
-
function
|
|
812
|
-
var e =
|
|
743
|
+
function On(t) {
|
|
744
|
+
var e = Tn(t, "string");
|
|
813
745
|
return typeof e == "symbol" ? e : e + "";
|
|
814
746
|
}
|
|
815
|
-
function
|
|
747
|
+
function Tn(t, e) {
|
|
816
748
|
if (typeof t != "object" || !t)
|
|
817
749
|
return t;
|
|
818
750
|
var i = t[Symbol.toPrimitive];
|
|
@@ -824,32 +756,32 @@ function kn(t, e) {
|
|
|
824
756
|
}
|
|
825
757
|
return (e === "string" ? String : Number)(t);
|
|
826
758
|
}
|
|
827
|
-
class
|
|
759
|
+
class Cn {
|
|
828
760
|
/**
|
|
829
761
|
* Internal constructor, should not be called directly
|
|
830
762
|
*/
|
|
831
763
|
constructor(e, i) {
|
|
832
|
-
|
|
764
|
+
Q(this, "name", "ADSENSE"), Q(this, "context", void 0), Q(this, "contextInfo", void 0), Q(this, "configured", !1), Q(this, "initParams", void 0), Q(this, "push", function() {
|
|
833
765
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
834
766
|
window.adsbygoogle.push(n);
|
|
835
|
-
}),
|
|
767
|
+
}), Q(this, "adConfig", (n) => {
|
|
836
768
|
const s = n, {
|
|
837
769
|
onReady: r
|
|
838
|
-
} = s, o =
|
|
770
|
+
} = s, o = kt(s, [
|
|
839
771
|
"onReady"
|
|
840
772
|
]);
|
|
841
773
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
842
|
-
}),
|
|
774
|
+
}), Q(this, "adBreak", (n) => {
|
|
843
775
|
if (!this.contextInfo.objectId) {
|
|
844
776
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
845
777
|
return;
|
|
846
778
|
}
|
|
847
779
|
this.push(n);
|
|
848
|
-
}),
|
|
849
|
-
var
|
|
780
|
+
}), Q(this, "adUnit", async (n) => {
|
|
781
|
+
var w, g, p, y;
|
|
850
782
|
if (this.context.track("CallAdUnit", {
|
|
851
|
-
adFormat: (
|
|
852
|
-
fullWidthResponsive: (
|
|
783
|
+
adFormat: (g = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? g : null,
|
|
784
|
+
fullWidthResponsive: (p = n.fullWidthResponsive) != null ? p : null
|
|
853
785
|
}), document.querySelector("#jolibox-ads")) {
|
|
854
786
|
console.warn("Ad unit already set, skipping");
|
|
855
787
|
return;
|
|
@@ -871,15 +803,15 @@ class In {
|
|
|
871
803
|
throw new Error("slot is required");
|
|
872
804
|
const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
|
|
873
805
|
if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
|
|
874
|
-
const
|
|
875
|
-
|
|
806
|
+
const v = document.createElement("div");
|
|
807
|
+
v.style.position = "absolute", v.style.top = "0", v.style.left = "0", v.style.width = "100%", v.style.height = "100%", v.style.display = "flex", v.style.justifyContent = "center", v.style.alignItems = "center", v.style.backgroundColor = "rgba(0, 0, 0, 0.5)", v.style.color = "white", v.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(v);
|
|
876
808
|
} else
|
|
877
809
|
l.appendChild(c), new MutationObserver((b) => {
|
|
878
|
-
b.forEach((
|
|
879
|
-
if (
|
|
880
|
-
const
|
|
810
|
+
b.forEach((T) => {
|
|
811
|
+
if (T.type === "attributes" && T.attributeName === "data-ad-status") {
|
|
812
|
+
const R = c.getAttribute("data-ad-status");
|
|
881
813
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
882
|
-
status:
|
|
814
|
+
status: R != null ? R : "null"
|
|
883
815
|
});
|
|
884
816
|
}
|
|
885
817
|
});
|
|
@@ -902,18 +834,18 @@ class In {
|
|
|
902
834
|
}
|
|
903
835
|
}
|
|
904
836
|
}
|
|
905
|
-
function
|
|
837
|
+
function Dn(t) {
|
|
906
838
|
if (t.sheet)
|
|
907
839
|
return t.sheet;
|
|
908
840
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
909
841
|
if (document.styleSheets[e].ownerNode === t)
|
|
910
842
|
return document.styleSheets[e];
|
|
911
843
|
}
|
|
912
|
-
function
|
|
844
|
+
function Ln(t) {
|
|
913
845
|
var e = document.createElement("style");
|
|
914
846
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
915
847
|
}
|
|
916
|
-
var
|
|
848
|
+
var Pn = /* @__PURE__ */ function() {
|
|
917
849
|
function t(i) {
|
|
918
850
|
var n = this;
|
|
919
851
|
this._insertTag = function(r) {
|
|
@@ -925,10 +857,10 @@ var On = /* @__PURE__ */ function() {
|
|
|
925
857
|
return e.hydrate = function(n) {
|
|
926
858
|
n.forEach(this._insertTag);
|
|
927
859
|
}, e.insert = function(n) {
|
|
928
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
860
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ln(this));
|
|
929
861
|
var r = this.tags[this.tags.length - 1];
|
|
930
862
|
if (this.isSpeedy) {
|
|
931
|
-
var o =
|
|
863
|
+
var o = Dn(r);
|
|
932
864
|
try {
|
|
933
865
|
o.insertRule(n, o.cssRules.length);
|
|
934
866
|
} catch (s) {
|
|
@@ -942,66 +874,66 @@ var On = /* @__PURE__ */ function() {
|
|
|
942
874
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
943
875
|
}), this.tags = [], this.ctr = 0;
|
|
944
876
|
}, t;
|
|
945
|
-
}(),
|
|
946
|
-
function
|
|
947
|
-
return
|
|
877
|
+
}(), j = "-ms-", Ge = "-moz-", m = "-webkit-", ri = "comm", wt = "rule", pt = "decl", Nn = "@import", oi = "@keyframes", Mn = "@layer", $n = Math.abs, We = String.fromCharCode, jn = Object.assign;
|
|
878
|
+
function Fn(t, e) {
|
|
879
|
+
return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
|
|
948
880
|
}
|
|
949
|
-
function
|
|
881
|
+
function si(t) {
|
|
950
882
|
return t.trim();
|
|
951
883
|
}
|
|
952
|
-
function
|
|
884
|
+
function Un(t, e) {
|
|
953
885
|
return (t = e.exec(t)) ? t[0] : t;
|
|
954
886
|
}
|
|
955
|
-
function
|
|
887
|
+
function S(t, e, i) {
|
|
956
888
|
return t.replace(e, i);
|
|
957
889
|
}
|
|
958
|
-
function
|
|
890
|
+
function ut(t, e) {
|
|
959
891
|
return t.indexOf(e);
|
|
960
892
|
}
|
|
961
|
-
function
|
|
893
|
+
function N(t, e) {
|
|
962
894
|
return t.charCodeAt(e) | 0;
|
|
963
895
|
}
|
|
964
|
-
function
|
|
896
|
+
function Ee(t, e, i) {
|
|
965
897
|
return t.slice(e, i);
|
|
966
898
|
}
|
|
967
|
-
function
|
|
899
|
+
function Y(t) {
|
|
968
900
|
return t.length;
|
|
969
901
|
}
|
|
970
|
-
function
|
|
902
|
+
function bt(t) {
|
|
971
903
|
return t.length;
|
|
972
904
|
}
|
|
973
|
-
function
|
|
905
|
+
function Pe(t, e) {
|
|
974
906
|
return e.push(t), t;
|
|
975
907
|
}
|
|
976
|
-
function
|
|
908
|
+
function Bn(t, e) {
|
|
977
909
|
return t.map(e).join("");
|
|
978
910
|
}
|
|
979
|
-
var
|
|
980
|
-
function
|
|
981
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
911
|
+
var Je = 1, fe = 1, ai = 0, G = 0, C = 0, ve = "";
|
|
912
|
+
function Ye(t, e, i, n, r, o, s) {
|
|
913
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Je, column: fe, length: s, return: "" };
|
|
982
914
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
915
|
+
function Ae(t, e) {
|
|
916
|
+
return jn(Ye("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
985
917
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
918
|
+
function Vn() {
|
|
919
|
+
return C;
|
|
988
920
|
}
|
|
989
|
-
function
|
|
990
|
-
return
|
|
921
|
+
function Gn() {
|
|
922
|
+
return C = G > 0 ? N(ve, --G) : 0, fe--, C === 10 && (fe = 1, Je--), C;
|
|
991
923
|
}
|
|
992
|
-
function
|
|
993
|
-
return
|
|
924
|
+
function K() {
|
|
925
|
+
return C = G < ai ? N(ve, G++) : 0, fe++, C === 10 && (fe = 1, Je++), C;
|
|
994
926
|
}
|
|
995
|
-
function
|
|
996
|
-
return
|
|
927
|
+
function X() {
|
|
928
|
+
return N(ve, G);
|
|
997
929
|
}
|
|
998
|
-
function
|
|
999
|
-
return
|
|
930
|
+
function $e() {
|
|
931
|
+
return G;
|
|
1000
932
|
}
|
|
1001
|
-
function
|
|
1002
|
-
return
|
|
933
|
+
function Ie(t, e) {
|
|
934
|
+
return Ee(ve, t, e);
|
|
1003
935
|
}
|
|
1004
|
-
function
|
|
936
|
+
function ke(t) {
|
|
1005
937
|
switch (t) {
|
|
1006
938
|
case 0:
|
|
1007
939
|
case 9:
|
|
@@ -1033,240 +965,240 @@ function Ee(t) {
|
|
|
1033
965
|
}
|
|
1034
966
|
return 0;
|
|
1035
967
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
968
|
+
function di(t) {
|
|
969
|
+
return Je = fe = 1, ai = Y(ve = t), G = 0, [];
|
|
1038
970
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
971
|
+
function li(t) {
|
|
972
|
+
return ve = "", t;
|
|
1041
973
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return
|
|
974
|
+
function je(t) {
|
|
975
|
+
return si(Ie(G - 1, ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1044
976
|
}
|
|
1045
|
-
function
|
|
1046
|
-
for (; (
|
|
1047
|
-
|
|
1048
|
-
return
|
|
977
|
+
function qn(t) {
|
|
978
|
+
for (; (C = X()) && C < 33; )
|
|
979
|
+
K();
|
|
980
|
+
return ke(t) > 2 || ke(C) > 3 ? "" : " ";
|
|
1049
981
|
}
|
|
1050
|
-
function
|
|
1051
|
-
for (; --e &&
|
|
982
|
+
function Kn(t, e) {
|
|
983
|
+
for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
1052
984
|
;
|
|
1053
|
-
return
|
|
985
|
+
return Ie(t, $e() + (e < 6 && X() == 32 && K() == 32));
|
|
1054
986
|
}
|
|
1055
|
-
function
|
|
1056
|
-
for (;
|
|
1057
|
-
switch (
|
|
987
|
+
function ct(t) {
|
|
988
|
+
for (; K(); )
|
|
989
|
+
switch (C) {
|
|
1058
990
|
case t:
|
|
1059
|
-
return
|
|
991
|
+
return G;
|
|
1060
992
|
case 34:
|
|
1061
993
|
case 39:
|
|
1062
|
-
t !== 34 && t !== 39 &&
|
|
994
|
+
t !== 34 && t !== 39 && ct(C);
|
|
1063
995
|
break;
|
|
1064
996
|
case 40:
|
|
1065
|
-
t === 41 &&
|
|
997
|
+
t === 41 && ct(t);
|
|
1066
998
|
break;
|
|
1067
999
|
case 92:
|
|
1068
|
-
|
|
1000
|
+
K();
|
|
1069
1001
|
break;
|
|
1070
1002
|
}
|
|
1071
|
-
return
|
|
1003
|
+
return G;
|
|
1072
1004
|
}
|
|
1073
|
-
function
|
|
1074
|
-
for (;
|
|
1075
|
-
if (t +
|
|
1005
|
+
function zn(t, e) {
|
|
1006
|
+
for (; K() && t + C !== 57; )
|
|
1007
|
+
if (t + C === 84 && X() === 47)
|
|
1076
1008
|
break;
|
|
1077
|
-
return "/*" +
|
|
1009
|
+
return "/*" + Ie(e, G - 1) + "*" + We(t === 47 ? t : K());
|
|
1078
1010
|
}
|
|
1079
|
-
function
|
|
1080
|
-
for (; !
|
|
1081
|
-
|
|
1082
|
-
return
|
|
1011
|
+
function Hn(t) {
|
|
1012
|
+
for (; !ke(X()); )
|
|
1013
|
+
K();
|
|
1014
|
+
return Ie(t, G);
|
|
1083
1015
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return
|
|
1016
|
+
function Wn(t) {
|
|
1017
|
+
return li(Fe("", null, null, null, [""], t = di(t), 0, [0], t));
|
|
1086
1018
|
}
|
|
1087
|
-
function
|
|
1088
|
-
for (var l = 0, u = 0, h = s, c = 0, f = 0,
|
|
1089
|
-
switch (
|
|
1019
|
+
function Fe(t, e, i, n, r, o, s, a, d) {
|
|
1020
|
+
for (var l = 0, u = 0, h = s, c = 0, f = 0, w = 0, g = 1, p = 1, y = 1, v = 0, b = "", T = r, R = o, O = n, A = b; p; )
|
|
1021
|
+
switch (w = v, v = K()) {
|
|
1090
1022
|
case 40:
|
|
1091
|
-
if (
|
|
1092
|
-
|
|
1023
|
+
if (w != 108 && N(A, h - 1) == 58) {
|
|
1024
|
+
ut(A += S(je(v), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1093
1025
|
break;
|
|
1094
1026
|
}
|
|
1095
1027
|
case 34:
|
|
1096
1028
|
case 39:
|
|
1097
1029
|
case 91:
|
|
1098
|
-
|
|
1030
|
+
A += je(v);
|
|
1099
1031
|
break;
|
|
1100
1032
|
case 9:
|
|
1101
1033
|
case 10:
|
|
1102
1034
|
case 13:
|
|
1103
1035
|
case 32:
|
|
1104
|
-
|
|
1036
|
+
A += qn(w);
|
|
1105
1037
|
break;
|
|
1106
1038
|
case 92:
|
|
1107
|
-
|
|
1039
|
+
A += Kn($e() - 1, 7);
|
|
1108
1040
|
continue;
|
|
1109
1041
|
case 47:
|
|
1110
|
-
switch (
|
|
1042
|
+
switch (X()) {
|
|
1111
1043
|
case 42:
|
|
1112
1044
|
case 47:
|
|
1113
|
-
|
|
1045
|
+
Pe(Jn(zn(K(), $e()), e, i), d);
|
|
1114
1046
|
break;
|
|
1115
1047
|
default:
|
|
1116
|
-
|
|
1048
|
+
A += "/";
|
|
1117
1049
|
}
|
|
1118
1050
|
break;
|
|
1119
|
-
case 123 *
|
|
1120
|
-
a[l++] =
|
|
1121
|
-
case 125 *
|
|
1051
|
+
case 123 * g:
|
|
1052
|
+
a[l++] = Y(A) * y;
|
|
1053
|
+
case 125 * g:
|
|
1122
1054
|
case 59:
|
|
1123
1055
|
case 0:
|
|
1124
|
-
switch (
|
|
1056
|
+
switch (v) {
|
|
1125
1057
|
case 0:
|
|
1126
1058
|
case 125:
|
|
1127
|
-
|
|
1059
|
+
p = 0;
|
|
1128
1060
|
case 59 + u:
|
|
1129
|
-
y == -1 && (
|
|
1061
|
+
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Pe(f > 32 ? Pt(A + ";", n, i, h - 1) : Pt(S(A, " ", "") + ";", n, i, h - 2), d);
|
|
1130
1062
|
break;
|
|
1131
1063
|
case 59:
|
|
1132
|
-
|
|
1064
|
+
A += ";";
|
|
1133
1065
|
default:
|
|
1134
|
-
if (
|
|
1066
|
+
if (Pe(O = Lt(A, e, i, l, u, r, a, b, T = [], R = [], h), o), v === 123)
|
|
1135
1067
|
if (u === 0)
|
|
1136
|
-
|
|
1068
|
+
Fe(A, e, O, O, T, o, h, a, R);
|
|
1137
1069
|
else
|
|
1138
|
-
switch (c === 99 &&
|
|
1070
|
+
switch (c === 99 && N(A, 3) === 110 ? 100 : c) {
|
|
1139
1071
|
case 100:
|
|
1140
1072
|
case 108:
|
|
1141
1073
|
case 109:
|
|
1142
1074
|
case 115:
|
|
1143
|
-
|
|
1075
|
+
Fe(t, O, O, n && Pe(Lt(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
|
|
1144
1076
|
break;
|
|
1145
1077
|
default:
|
|
1146
|
-
|
|
1078
|
+
Fe(A, O, O, O, [""], R, 0, a, R);
|
|
1147
1079
|
}
|
|
1148
1080
|
}
|
|
1149
|
-
l = u = f = 0,
|
|
1081
|
+
l = u = f = 0, g = y = 1, b = A = "", h = s;
|
|
1150
1082
|
break;
|
|
1151
1083
|
case 58:
|
|
1152
|
-
h = 1 +
|
|
1084
|
+
h = 1 + Y(A), f = w;
|
|
1153
1085
|
default:
|
|
1154
|
-
if (
|
|
1155
|
-
if (
|
|
1156
|
-
--
|
|
1157
|
-
else if (
|
|
1086
|
+
if (g < 1) {
|
|
1087
|
+
if (v == 123)
|
|
1088
|
+
--g;
|
|
1089
|
+
else if (v == 125 && g++ == 0 && Gn() == 125)
|
|
1158
1090
|
continue;
|
|
1159
1091
|
}
|
|
1160
|
-
switch (
|
|
1092
|
+
switch (A += We(v), v * g) {
|
|
1161
1093
|
case 38:
|
|
1162
|
-
y = u > 0 ? 1 : (
|
|
1094
|
+
y = u > 0 ? 1 : (A += "\f", -1);
|
|
1163
1095
|
break;
|
|
1164
1096
|
case 44:
|
|
1165
|
-
a[l++] = (
|
|
1097
|
+
a[l++] = (Y(A) - 1) * y, y = 1;
|
|
1166
1098
|
break;
|
|
1167
1099
|
case 64:
|
|
1168
|
-
|
|
1100
|
+
X() === 45 && (A += je(K())), c = X(), u = h = Y(b = A += Hn($e())), v++;
|
|
1169
1101
|
break;
|
|
1170
1102
|
case 45:
|
|
1171
|
-
|
|
1103
|
+
w === 45 && Y(A) == 2 && (g = 0);
|
|
1172
1104
|
}
|
|
1173
1105
|
}
|
|
1174
1106
|
return o;
|
|
1175
1107
|
}
|
|
1176
|
-
function
|
|
1177
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f =
|
|
1178
|
-
for (var y = 0,
|
|
1179
|
-
(b =
|
|
1180
|
-
return
|
|
1108
|
+
function Lt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1109
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = bt(c), w = 0, g = 0, p = 0; w < n; ++w)
|
|
1110
|
+
for (var y = 0, v = Ee(t, h + 1, h = $n(g = s[w])), b = t; y < f; ++y)
|
|
1111
|
+
(b = si(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
|
|
1112
|
+
return Ye(t, e, i, r === 0 ? wt : a, d, l, u);
|
|
1181
1113
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1114
|
+
function Jn(t, e, i) {
|
|
1115
|
+
return Ye(t, e, i, ri, We(Vn()), Ee(t, 2, -2), 0);
|
|
1184
1116
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1117
|
+
function Pt(t, e, i, n) {
|
|
1118
|
+
return Ye(t, e, i, pt, Ee(t, 0, n), Ee(t, n + 1, -1), n);
|
|
1187
1119
|
}
|
|
1188
|
-
function
|
|
1189
|
-
for (var i = "", n =
|
|
1120
|
+
function ce(t, e) {
|
|
1121
|
+
for (var i = "", n = bt(t), r = 0; r < n; r++)
|
|
1190
1122
|
i += e(t[r], r, t, e) || "";
|
|
1191
1123
|
return i;
|
|
1192
1124
|
}
|
|
1193
|
-
function
|
|
1125
|
+
function Yn(t, e, i, n) {
|
|
1194
1126
|
switch (t.type) {
|
|
1195
|
-
case
|
|
1127
|
+
case Mn:
|
|
1196
1128
|
if (t.children.length)
|
|
1197
1129
|
break;
|
|
1198
|
-
case
|
|
1199
|
-
case
|
|
1130
|
+
case Nn:
|
|
1131
|
+
case pt:
|
|
1200
1132
|
return t.return = t.return || t.value;
|
|
1201
|
-
case
|
|
1133
|
+
case ri:
|
|
1202
1134
|
return "";
|
|
1203
|
-
case
|
|
1204
|
-
return t.return = t.value + "{" +
|
|
1205
|
-
case
|
|
1135
|
+
case oi:
|
|
1136
|
+
return t.return = t.value + "{" + ce(t.children, n) + "}";
|
|
1137
|
+
case wt:
|
|
1206
1138
|
t.value = t.props.join(",");
|
|
1207
1139
|
}
|
|
1208
|
-
return
|
|
1140
|
+
return Y(i = ce(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1209
1141
|
}
|
|
1210
|
-
function
|
|
1211
|
-
var e =
|
|
1142
|
+
function Xn(t) {
|
|
1143
|
+
var e = bt(t);
|
|
1212
1144
|
return function(i, n, r, o) {
|
|
1213
1145
|
for (var s = "", a = 0; a < e; a++)
|
|
1214
1146
|
s += t[a](i, n, r, o) || "";
|
|
1215
1147
|
return s;
|
|
1216
1148
|
};
|
|
1217
1149
|
}
|
|
1218
|
-
function
|
|
1150
|
+
function Qn(t) {
|
|
1219
1151
|
return function(e) {
|
|
1220
1152
|
e.root || (e = e.return) && t(e);
|
|
1221
1153
|
};
|
|
1222
1154
|
}
|
|
1223
|
-
function
|
|
1155
|
+
function Zn(t) {
|
|
1224
1156
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1225
1157
|
return function(i) {
|
|
1226
1158
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1227
1159
|
};
|
|
1228
1160
|
}
|
|
1229
|
-
var
|
|
1230
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1231
|
-
|
|
1232
|
-
return
|
|
1233
|
-
},
|
|
1161
|
+
var er = function(e, i, n) {
|
|
1162
|
+
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !ke(o); )
|
|
1163
|
+
K();
|
|
1164
|
+
return Ie(e, G);
|
|
1165
|
+
}, tr = function(e, i) {
|
|
1234
1166
|
var n = -1, r = 44;
|
|
1235
1167
|
do
|
|
1236
|
-
switch (
|
|
1168
|
+
switch (ke(r)) {
|
|
1237
1169
|
case 0:
|
|
1238
|
-
r === 38 &&
|
|
1170
|
+
r === 38 && X() === 12 && (i[n] = 1), e[n] += er(G - 1, i, n);
|
|
1239
1171
|
break;
|
|
1240
1172
|
case 2:
|
|
1241
|
-
e[n] +=
|
|
1173
|
+
e[n] += je(r);
|
|
1242
1174
|
break;
|
|
1243
1175
|
case 4:
|
|
1244
1176
|
if (r === 44) {
|
|
1245
|
-
e[++n] =
|
|
1177
|
+
e[++n] = X() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1246
1178
|
break;
|
|
1247
1179
|
}
|
|
1248
1180
|
default:
|
|
1249
|
-
e[n] +=
|
|
1181
|
+
e[n] += We(r);
|
|
1250
1182
|
}
|
|
1251
|
-
while (r =
|
|
1183
|
+
while (r = K());
|
|
1252
1184
|
return e;
|
|
1253
|
-
},
|
|
1254
|
-
return
|
|
1255
|
-
},
|
|
1185
|
+
}, ir = function(e, i) {
|
|
1186
|
+
return li(tr(di(e), i));
|
|
1187
|
+
}, Nt = /* @__PURE__ */ new WeakMap(), nr = function(e) {
|
|
1256
1188
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1257
1189
|
// negative .length indicates that this rule has been already prefixed
|
|
1258
1190
|
e.length < 1)) {
|
|
1259
1191
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1260
1192
|
if (n = n.parent, !n)
|
|
1261
1193
|
return;
|
|
1262
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1263
|
-
|
|
1264
|
-
for (var o = [], s =
|
|
1194
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Nt.get(n)) && !r) {
|
|
1195
|
+
Nt.set(e, !0);
|
|
1196
|
+
for (var o = [], s = ir(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1265
1197
|
for (var u = 0; u < a.length; u++, l++)
|
|
1266
1198
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1267
1199
|
}
|
|
1268
1200
|
}
|
|
1269
|
-
},
|
|
1201
|
+
}, rr = function(e) {
|
|
1270
1202
|
if (e.type === "decl") {
|
|
1271
1203
|
var i = e.value;
|
|
1272
1204
|
// charcode for l
|
|
@@ -1274,10 +1206,10 @@ var Jn = function(e, i, n) {
|
|
|
1274
1206
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1275
1207
|
}
|
|
1276
1208
|
};
|
|
1277
|
-
function
|
|
1278
|
-
switch (
|
|
1209
|
+
function ui(t, e) {
|
|
1210
|
+
switch (Fn(t, e)) {
|
|
1279
1211
|
case 5103:
|
|
1280
|
-
return
|
|
1212
|
+
return m + "print-" + t + t;
|
|
1281
1213
|
case 5737:
|
|
1282
1214
|
case 4201:
|
|
1283
1215
|
case 3177:
|
|
@@ -1303,44 +1235,44 @@ function si(t, e) {
|
|
|
1303
1235
|
case 5365:
|
|
1304
1236
|
case 5621:
|
|
1305
1237
|
case 3829:
|
|
1306
|
-
return
|
|
1238
|
+
return m + t + t;
|
|
1307
1239
|
case 5349:
|
|
1308
1240
|
case 4246:
|
|
1309
1241
|
case 4810:
|
|
1310
1242
|
case 6968:
|
|
1311
1243
|
case 2756:
|
|
1312
|
-
return
|
|
1244
|
+
return m + t + Ge + t + j + t + t;
|
|
1313
1245
|
case 6828:
|
|
1314
1246
|
case 4268:
|
|
1315
|
-
return
|
|
1247
|
+
return m + t + j + t + t;
|
|
1316
1248
|
case 6165:
|
|
1317
|
-
return
|
|
1249
|
+
return m + t + j + "flex-" + t + t;
|
|
1318
1250
|
case 5187:
|
|
1319
|
-
return
|
|
1251
|
+
return m + t + S(t, /(\w+).+(:[^]+)/, m + "box-$1$2" + j + "flex-$1$2") + t;
|
|
1320
1252
|
case 5443:
|
|
1321
|
-
return
|
|
1253
|
+
return m + t + j + "flex-item-" + S(t, /flex-|-self/, "") + t;
|
|
1322
1254
|
case 4675:
|
|
1323
|
-
return
|
|
1255
|
+
return m + t + j + "flex-line-pack" + S(t, /align-content|flex-|-self/, "") + t;
|
|
1324
1256
|
case 5548:
|
|
1325
|
-
return
|
|
1257
|
+
return m + t + j + S(t, "shrink", "negative") + t;
|
|
1326
1258
|
case 5292:
|
|
1327
|
-
return
|
|
1259
|
+
return m + t + j + S(t, "basis", "preferred-size") + t;
|
|
1328
1260
|
case 6060:
|
|
1329
|
-
return
|
|
1261
|
+
return m + "box-" + S(t, "-grow", "") + m + t + j + S(t, "grow", "positive") + t;
|
|
1330
1262
|
case 4554:
|
|
1331
|
-
return
|
|
1263
|
+
return m + S(t, /([^-])(transform)/g, "$1" + m + "$2") + t;
|
|
1332
1264
|
case 6187:
|
|
1333
|
-
return
|
|
1265
|
+
return S(S(S(t, /(zoom-|grab)/, m + "$1"), /(image-set)/, m + "$1"), t, "") + t;
|
|
1334
1266
|
case 5495:
|
|
1335
1267
|
case 3959:
|
|
1336
|
-
return
|
|
1268
|
+
return S(t, /(image-set\([^]*)/, m + "$1$`$1");
|
|
1337
1269
|
case 4968:
|
|
1338
|
-
return
|
|
1270
|
+
return S(S(t, /(.+:)(flex-)?(.*)/, m + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + m + t + t;
|
|
1339
1271
|
case 4095:
|
|
1340
1272
|
case 3583:
|
|
1341
1273
|
case 4068:
|
|
1342
1274
|
case 2532:
|
|
1343
|
-
return
|
|
1275
|
+
return S(t, /(.+)-inline(.+)/, m + "$1$2") + t;
|
|
1344
1276
|
case 8116:
|
|
1345
1277
|
case 7059:
|
|
1346
1278
|
case 5753:
|
|
@@ -1353,106 +1285,106 @@ function si(t, e) {
|
|
|
1353
1285
|
case 5789:
|
|
1354
1286
|
case 5021:
|
|
1355
1287
|
case 4765:
|
|
1356
|
-
if (
|
|
1357
|
-
switch (
|
|
1288
|
+
if (Y(t) - 1 - e > 6)
|
|
1289
|
+
switch (N(t, e + 1)) {
|
|
1358
1290
|
case 109:
|
|
1359
|
-
if (
|
|
1291
|
+
if (N(t, e + 4) !== 45)
|
|
1360
1292
|
break;
|
|
1361
1293
|
case 102:
|
|
1362
|
-
return
|
|
1294
|
+
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + Ge + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1363
1295
|
case 115:
|
|
1364
|
-
return ~
|
|
1296
|
+
return ~ut(t, "stretch") ? ui(S(t, "stretch", "fill-available"), e) + t : t;
|
|
1365
1297
|
}
|
|
1366
1298
|
break;
|
|
1367
1299
|
case 4949:
|
|
1368
|
-
if (
|
|
1300
|
+
if (N(t, e + 1) !== 115)
|
|
1369
1301
|
break;
|
|
1370
1302
|
case 6444:
|
|
1371
|
-
switch (
|
|
1303
|
+
switch (N(t, Y(t) - 3 - (~ut(t, "!important") && 10))) {
|
|
1372
1304
|
case 107:
|
|
1373
|
-
return
|
|
1305
|
+
return S(t, ":", ":" + m) + t;
|
|
1374
1306
|
case 101:
|
|
1375
|
-
return
|
|
1307
|
+
return S(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + m + (N(t, 14) === 45 ? "inline-" : "") + "box$3$1" + m + "$2$3$1" + j + "$2box$3") + t;
|
|
1376
1308
|
}
|
|
1377
1309
|
break;
|
|
1378
1310
|
case 5936:
|
|
1379
|
-
switch (
|
|
1311
|
+
switch (N(t, e + 11)) {
|
|
1380
1312
|
case 114:
|
|
1381
|
-
return
|
|
1313
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1382
1314
|
case 108:
|
|
1383
|
-
return
|
|
1315
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1384
1316
|
case 45:
|
|
1385
|
-
return
|
|
1317
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1386
1318
|
}
|
|
1387
|
-
return
|
|
1319
|
+
return m + t + j + t + t;
|
|
1388
1320
|
}
|
|
1389
1321
|
return t;
|
|
1390
1322
|
}
|
|
1391
|
-
var
|
|
1323
|
+
var or = function(e, i, n, r) {
|
|
1392
1324
|
if (e.length > -1 && !e.return)
|
|
1393
1325
|
switch (e.type) {
|
|
1394
|
-
case
|
|
1395
|
-
e.return =
|
|
1326
|
+
case pt:
|
|
1327
|
+
e.return = ui(e.value, e.length);
|
|
1396
1328
|
break;
|
|
1397
|
-
case
|
|
1398
|
-
return
|
|
1399
|
-
value:
|
|
1329
|
+
case oi:
|
|
1330
|
+
return ce([Ae(e, {
|
|
1331
|
+
value: S(e.value, "@", "@" + m)
|
|
1400
1332
|
})], r);
|
|
1401
|
-
case
|
|
1333
|
+
case wt:
|
|
1402
1334
|
if (e.length)
|
|
1403
|
-
return
|
|
1404
|
-
switch (
|
|
1335
|
+
return Bn(e.props, function(o) {
|
|
1336
|
+
switch (Un(o, /(::plac\w+|:read-\w+)/)) {
|
|
1405
1337
|
case ":read-only":
|
|
1406
1338
|
case ":read-write":
|
|
1407
|
-
return
|
|
1408
|
-
props: [
|
|
1339
|
+
return ce([Ae(e, {
|
|
1340
|
+
props: [S(o, /:(read-\w+)/, ":" + Ge + "$1")]
|
|
1409
1341
|
})], r);
|
|
1410
1342
|
case "::placeholder":
|
|
1411
|
-
return
|
|
1412
|
-
props: [
|
|
1413
|
-
}),
|
|
1414
|
-
props: [
|
|
1415
|
-
}),
|
|
1416
|
-
props: [
|
|
1343
|
+
return ce([Ae(e, {
|
|
1344
|
+
props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
|
|
1345
|
+
}), Ae(e, {
|
|
1346
|
+
props: [S(o, /:(plac\w+)/, ":" + Ge + "$1")]
|
|
1347
|
+
}), Ae(e, {
|
|
1348
|
+
props: [S(o, /:(plac\w+)/, j + "input-$1")]
|
|
1417
1349
|
})], r);
|
|
1418
1350
|
}
|
|
1419
1351
|
return "";
|
|
1420
1352
|
});
|
|
1421
1353
|
}
|
|
1422
|
-
},
|
|
1354
|
+
}, sr = [or], ar = function(e) {
|
|
1423
1355
|
var i = e.key;
|
|
1424
1356
|
if (i === "css") {
|
|
1425
1357
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1426
|
-
Array.prototype.forEach.call(n, function(
|
|
1427
|
-
var
|
|
1428
|
-
|
|
1358
|
+
Array.prototype.forEach.call(n, function(g) {
|
|
1359
|
+
var p = g.getAttribute("data-emotion");
|
|
1360
|
+
p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
1429
1361
|
});
|
|
1430
1362
|
}
|
|
1431
|
-
var r = e.stylisPlugins ||
|
|
1363
|
+
var r = e.stylisPlugins || sr, o = {}, s, a = [];
|
|
1432
1364
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1433
1365
|
// this means we will ignore elements which don't have a space in them which
|
|
1434
1366
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1435
1367
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1436
|
-
function(
|
|
1437
|
-
for (var
|
|
1438
|
-
o[
|
|
1439
|
-
a.push(
|
|
1368
|
+
function(g) {
|
|
1369
|
+
for (var p = g.getAttribute("data-emotion").split(" "), y = 1; y < p.length; y++)
|
|
1370
|
+
o[p[y]] = !0;
|
|
1371
|
+
a.push(g);
|
|
1440
1372
|
}
|
|
1441
1373
|
);
|
|
1442
|
-
var d, l = [
|
|
1374
|
+
var d, l = [nr, rr];
|
|
1443
1375
|
{
|
|
1444
|
-
var u, h = [
|
|
1445
|
-
u.insert(
|
|
1446
|
-
})], c =
|
|
1447
|
-
return
|
|
1376
|
+
var u, h = [Yn, Qn(function(g) {
|
|
1377
|
+
u.insert(g);
|
|
1378
|
+
})], c = Xn(l.concat(r, h)), f = function(p) {
|
|
1379
|
+
return ce(Wn(p), c);
|
|
1448
1380
|
};
|
|
1449
|
-
d = function(
|
|
1450
|
-
u =
|
|
1381
|
+
d = function(p, y, v, b) {
|
|
1382
|
+
u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
1451
1383
|
};
|
|
1452
1384
|
}
|
|
1453
|
-
var
|
|
1385
|
+
var w = {
|
|
1454
1386
|
key: i,
|
|
1455
|
-
sheet: new
|
|
1387
|
+
sheet: new Pn({
|
|
1456
1388
|
key: i,
|
|
1457
1389
|
container: s,
|
|
1458
1390
|
nonce: e.nonce,
|
|
@@ -1465,9 +1397,9 @@ var er = function(e, i, n, r) {
|
|
|
1465
1397
|
registered: {},
|
|
1466
1398
|
insert: d
|
|
1467
1399
|
};
|
|
1468
|
-
return
|
|
1400
|
+
return w.sheet.hydrate(a), w;
|
|
1469
1401
|
};
|
|
1470
|
-
function
|
|
1402
|
+
function dr(t) {
|
|
1471
1403
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1472
1404
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1473
1405
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1486,7 +1418,7 @@ function nr(t) {
|
|
|
1486
1418
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1487
1419
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1488
1420
|
}
|
|
1489
|
-
var
|
|
1421
|
+
var lr = {
|
|
1490
1422
|
animationIterationCount: 1,
|
|
1491
1423
|
aspectRatio: 1,
|
|
1492
1424
|
borderImageOutset: 1,
|
|
@@ -1535,28 +1467,28 @@ var rr = {
|
|
|
1535
1467
|
strokeMiterlimit: 1,
|
|
1536
1468
|
strokeOpacity: 1,
|
|
1537
1469
|
strokeWidth: 1
|
|
1538
|
-
},
|
|
1470
|
+
}, ur = /[A-Z]|^ms/g, cr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ci = function(e) {
|
|
1539
1471
|
return e.charCodeAt(1) === 45;
|
|
1540
|
-
},
|
|
1472
|
+
}, Mt = function(e) {
|
|
1541
1473
|
return e != null && typeof e != "boolean";
|
|
1542
|
-
},
|
|
1543
|
-
return
|
|
1544
|
-
}),
|
|
1474
|
+
}, Ze = /* @__PURE__ */ Zn(function(t) {
|
|
1475
|
+
return ci(t) ? t : t.replace(ur, "-$&").toLowerCase();
|
|
1476
|
+
}), $t = function(e, i) {
|
|
1545
1477
|
switch (e) {
|
|
1546
1478
|
case "animation":
|
|
1547
1479
|
case "animationName":
|
|
1548
1480
|
if (typeof i == "string")
|
|
1549
|
-
return i.replace(
|
|
1550
|
-
return
|
|
1481
|
+
return i.replace(cr, function(n, r, o) {
|
|
1482
|
+
return ne = {
|
|
1551
1483
|
name: r,
|
|
1552
1484
|
styles: o,
|
|
1553
|
-
next:
|
|
1485
|
+
next: ne
|
|
1554
1486
|
}, r;
|
|
1555
1487
|
});
|
|
1556
1488
|
}
|
|
1557
|
-
return
|
|
1489
|
+
return lr[e] !== 1 && !ci(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1558
1490
|
};
|
|
1559
|
-
function
|
|
1491
|
+
function qe(t, e, i) {
|
|
1560
1492
|
if (i == null)
|
|
1561
1493
|
return "";
|
|
1562
1494
|
var n = i;
|
|
@@ -1568,25 +1500,25 @@ function Be(t, e, i) {
|
|
|
1568
1500
|
case "object": {
|
|
1569
1501
|
var r = i;
|
|
1570
1502
|
if (r.anim === 1)
|
|
1571
|
-
return
|
|
1503
|
+
return ne = {
|
|
1572
1504
|
name: r.name,
|
|
1573
1505
|
styles: r.styles,
|
|
1574
|
-
next:
|
|
1506
|
+
next: ne
|
|
1575
1507
|
}, r.name;
|
|
1576
1508
|
var o = i;
|
|
1577
1509
|
if (o.styles !== void 0) {
|
|
1578
1510
|
var s = o.next;
|
|
1579
1511
|
if (s !== void 0)
|
|
1580
1512
|
for (; s !== void 0; )
|
|
1581
|
-
|
|
1513
|
+
ne = {
|
|
1582
1514
|
name: s.name,
|
|
1583
1515
|
styles: s.styles,
|
|
1584
|
-
next:
|
|
1516
|
+
next: ne
|
|
1585
1517
|
}, s = s.next;
|
|
1586
1518
|
var a = o.styles + ";";
|
|
1587
1519
|
return a;
|
|
1588
1520
|
}
|
|
1589
|
-
return
|
|
1521
|
+
return hr(t, e, i);
|
|
1590
1522
|
}
|
|
1591
1523
|
}
|
|
1592
1524
|
var d = i;
|
|
@@ -1595,26 +1527,26 @@ function Be(t, e, i) {
|
|
|
1595
1527
|
var l = e[d];
|
|
1596
1528
|
return l !== void 0 ? l : d;
|
|
1597
1529
|
}
|
|
1598
|
-
function
|
|
1530
|
+
function hr(t, e, i) {
|
|
1599
1531
|
var n = "";
|
|
1600
1532
|
if (Array.isArray(i))
|
|
1601
1533
|
for (var r = 0; r < i.length; r++)
|
|
1602
|
-
n +=
|
|
1534
|
+
n += qe(t, e, i[r]) + ";";
|
|
1603
1535
|
else
|
|
1604
1536
|
for (var o in i) {
|
|
1605
1537
|
var s = i[o];
|
|
1606
1538
|
if (typeof s != "object") {
|
|
1607
1539
|
var a = s;
|
|
1608
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1540
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Mt(a) && (n += Ze(o) + ":" + $t(o, a) + ";");
|
|
1609
1541
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1610
1542
|
for (var d = 0; d < s.length; d++)
|
|
1611
|
-
|
|
1543
|
+
Mt(s[d]) && (n += Ze(o) + ":" + $t(o, s[d]) + ";");
|
|
1612
1544
|
else {
|
|
1613
|
-
var l =
|
|
1545
|
+
var l = qe(t, e, s);
|
|
1614
1546
|
switch (o) {
|
|
1615
1547
|
case "animation":
|
|
1616
1548
|
case "animationName": {
|
|
1617
|
-
n +=
|
|
1549
|
+
n += Ze(o) + ":" + l + ";";
|
|
1618
1550
|
break;
|
|
1619
1551
|
}
|
|
1620
1552
|
default:
|
|
@@ -1624,41 +1556,41 @@ function ar(t, e, i) {
|
|
|
1624
1556
|
}
|
|
1625
1557
|
return n;
|
|
1626
1558
|
}
|
|
1627
|
-
var
|
|
1628
|
-
function
|
|
1559
|
+
var jt = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
|
|
1560
|
+
function et(t, e, i) {
|
|
1629
1561
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1630
1562
|
return t[0];
|
|
1631
1563
|
var n = !0, r = "";
|
|
1632
|
-
|
|
1564
|
+
ne = void 0;
|
|
1633
1565
|
var o = t[0];
|
|
1634
1566
|
if (o == null || o.raw === void 0)
|
|
1635
|
-
n = !1, r +=
|
|
1567
|
+
n = !1, r += qe(i, e, o);
|
|
1636
1568
|
else {
|
|
1637
1569
|
var s = o;
|
|
1638
1570
|
r += s[0];
|
|
1639
1571
|
}
|
|
1640
1572
|
for (var a = 1; a < t.length; a++)
|
|
1641
|
-
if (r +=
|
|
1573
|
+
if (r += qe(i, e, t[a]), n) {
|
|
1642
1574
|
var d = o;
|
|
1643
1575
|
r += d[a];
|
|
1644
1576
|
}
|
|
1645
|
-
|
|
1646
|
-
for (var l = "", u; (u =
|
|
1577
|
+
jt.lastIndex = 0;
|
|
1578
|
+
for (var l = "", u; (u = jt.exec(r)) !== null; )
|
|
1647
1579
|
l += "-" + u[1];
|
|
1648
|
-
var h =
|
|
1580
|
+
var h = dr(r) + l;
|
|
1649
1581
|
return {
|
|
1650
1582
|
name: h,
|
|
1651
1583
|
styles: r,
|
|
1652
|
-
next:
|
|
1584
|
+
next: ne
|
|
1653
1585
|
};
|
|
1654
1586
|
}
|
|
1655
|
-
function
|
|
1587
|
+
function hi(t, e, i) {
|
|
1656
1588
|
var n = "";
|
|
1657
1589
|
return i.split(" ").forEach(function(r) {
|
|
1658
1590
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1659
1591
|
}), n;
|
|
1660
1592
|
}
|
|
1661
|
-
var
|
|
1593
|
+
var fr = function(e, i, n) {
|
|
1662
1594
|
var r = e.key + "-" + i.name;
|
|
1663
1595
|
// we only need to add the styles to the registered cache if the
|
|
1664
1596
|
// class name could be used further down
|
|
@@ -1666,8 +1598,8 @@ var dr = function(e, i, n) {
|
|
|
1666
1598
|
// so we don't have to add it to registered cache.
|
|
1667
1599
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1668
1600
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1669
|
-
},
|
|
1670
|
-
|
|
1601
|
+
}, vr = function(e, i, n) {
|
|
1602
|
+
fr(e, i);
|
|
1671
1603
|
var r = e.key + "-" + i.name;
|
|
1672
1604
|
if (e.inserted[i.name] === void 0) {
|
|
1673
1605
|
var o = i;
|
|
@@ -1676,41 +1608,41 @@ var dr = function(e, i, n) {
|
|
|
1676
1608
|
while (o !== void 0);
|
|
1677
1609
|
}
|
|
1678
1610
|
};
|
|
1679
|
-
function
|
|
1611
|
+
function Ft(t, e) {
|
|
1680
1612
|
if (t.inserted[e.name] === void 0)
|
|
1681
1613
|
return t.insert("", e, t.sheet, !0);
|
|
1682
1614
|
}
|
|
1683
|
-
function
|
|
1684
|
-
var n = [], r =
|
|
1615
|
+
function Ut(t, e, i) {
|
|
1616
|
+
var n = [], r = hi(t, n, i);
|
|
1685
1617
|
return n.length < 2 ? i : r + e(n);
|
|
1686
1618
|
}
|
|
1687
|
-
var
|
|
1688
|
-
var i =
|
|
1619
|
+
var gr = function(e) {
|
|
1620
|
+
var i = ar(e);
|
|
1689
1621
|
i.sheet.speedy = function(a) {
|
|
1690
1622
|
this.isSpeedy = a;
|
|
1691
1623
|
}, i.compat = !0;
|
|
1692
1624
|
var n = function() {
|
|
1693
1625
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1694
1626
|
l[u] = arguments[u];
|
|
1695
|
-
var h =
|
|
1696
|
-
return
|
|
1627
|
+
var h = et(l, i.registered, void 0);
|
|
1628
|
+
return vr(i, h), i.key + "-" + h.name;
|
|
1697
1629
|
}, r = function() {
|
|
1698
1630
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1699
1631
|
l[u] = arguments[u];
|
|
1700
|
-
var h =
|
|
1701
|
-
return
|
|
1632
|
+
var h = et(l, i.registered), c = "animation-" + h.name;
|
|
1633
|
+
return Ft(i, {
|
|
1702
1634
|
name: h.name,
|
|
1703
1635
|
styles: "@keyframes " + c + "{" + h.styles + "}"
|
|
1704
1636
|
}), c;
|
|
1705
1637
|
}, o = function() {
|
|
1706
1638
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1707
1639
|
l[u] = arguments[u];
|
|
1708
|
-
var h =
|
|
1709
|
-
|
|
1640
|
+
var h = et(l, i.registered);
|
|
1641
|
+
Ft(i, h);
|
|
1710
1642
|
}, s = function() {
|
|
1711
1643
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1712
1644
|
l[u] = arguments[u];
|
|
1713
|
-
return
|
|
1645
|
+
return Ut(i.registered, n, yr(l));
|
|
1714
1646
|
};
|
|
1715
1647
|
return {
|
|
1716
1648
|
css: n,
|
|
@@ -1727,10 +1659,10 @@ var ur = function(e) {
|
|
|
1727
1659
|
},
|
|
1728
1660
|
sheet: i.sheet,
|
|
1729
1661
|
cache: i,
|
|
1730
|
-
getRegisteredStyles:
|
|
1731
|
-
merge:
|
|
1662
|
+
getRegisteredStyles: hi.bind(null, i.registered),
|
|
1663
|
+
merge: Ut.bind(null, i.registered, n)
|
|
1732
1664
|
};
|
|
1733
|
-
},
|
|
1665
|
+
}, yr = function t(e) {
|
|
1734
1666
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1735
1667
|
var r = e[n];
|
|
1736
1668
|
if (r != null) {
|
|
@@ -1755,96 +1687,96 @@ var ur = function(e) {
|
|
|
1755
1687
|
}
|
|
1756
1688
|
}
|
|
1757
1689
|
return i;
|
|
1758
|
-
},
|
|
1690
|
+
}, wr = gr({
|
|
1759
1691
|
key: "css"
|
|
1760
|
-
}),
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1763
|
-
var i =
|
|
1692
|
+
}), ge = wr.css, ht, q, tt, Bt, Vt = 0, fi = [], L = he, Gt = L.__b, qt = L.__r, Kt = L.diffed, zt = L.__c, Ht = L.unmount, Wt = L.__;
|
|
1693
|
+
function pr(t, e) {
|
|
1694
|
+
L.__h && L.__h(q, t, Vt || e), Vt = 0;
|
|
1695
|
+
var i = q.__H || (q.__H = { __: [], __h: [] });
|
|
1764
1696
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1765
1697
|
}
|
|
1766
|
-
function
|
|
1767
|
-
var i =
|
|
1768
|
-
return
|
|
1698
|
+
function vi(t, e) {
|
|
1699
|
+
var i = pr(ht++, 7);
|
|
1700
|
+
return _r(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1769
1701
|
}
|
|
1770
|
-
function
|
|
1771
|
-
for (var t; t =
|
|
1702
|
+
function br() {
|
|
1703
|
+
for (var t; t = fi.shift(); )
|
|
1772
1704
|
if (t.__P && t.__H)
|
|
1773
1705
|
try {
|
|
1774
|
-
t.__H.__h.forEach(
|
|
1706
|
+
t.__H.__h.forEach(Ue), t.__H.__h.forEach(ft), t.__H.__h = [];
|
|
1775
1707
|
} catch (e) {
|
|
1776
|
-
t.__H.__h = [],
|
|
1708
|
+
t.__H.__h = [], L.__e(e, t.__v);
|
|
1777
1709
|
}
|
|
1778
1710
|
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
},
|
|
1782
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1783
|
-
},
|
|
1784
|
-
|
|
1785
|
-
var e = (
|
|
1786
|
-
e && (
|
|
1711
|
+
L.__b = function(t) {
|
|
1712
|
+
q = null, Gt && Gt(t);
|
|
1713
|
+
}, L.__ = function(t, e) {
|
|
1714
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Wt && Wt(t, e);
|
|
1715
|
+
}, L.__r = function(t) {
|
|
1716
|
+
qt && qt(t), ht = 0;
|
|
1717
|
+
var e = (q = t.__c).__H;
|
|
1718
|
+
e && (tt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
|
|
1787
1719
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1788
|
-
})) : (e.__h.forEach(
|
|
1789
|
-
},
|
|
1790
|
-
|
|
1720
|
+
})) : (e.__h.forEach(Ue), e.__h.forEach(ft), e.__h = [], ht = 0)), tt = q;
|
|
1721
|
+
}, L.diffed = function(t) {
|
|
1722
|
+
Kt && Kt(t);
|
|
1791
1723
|
var e = t.__c;
|
|
1792
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1724
|
+
e && e.__H && (e.__H.__h.length && (fi.push(e) !== 1 && Bt === L.requestAnimationFrame || ((Bt = L.requestAnimationFrame) || Ar)(br)), e.__H.__.forEach(function(i) {
|
|
1793
1725
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1794
|
-
})),
|
|
1795
|
-
},
|
|
1726
|
+
})), tt = q = null;
|
|
1727
|
+
}, L.__c = function(t, e) {
|
|
1796
1728
|
e.some(function(i) {
|
|
1797
1729
|
try {
|
|
1798
|
-
i.__h.forEach(
|
|
1799
|
-
return !n.__ ||
|
|
1730
|
+
i.__h.forEach(Ue), i.__h = i.__h.filter(function(n) {
|
|
1731
|
+
return !n.__ || ft(n);
|
|
1800
1732
|
});
|
|
1801
1733
|
} catch (n) {
|
|
1802
1734
|
e.some(function(r) {
|
|
1803
1735
|
r.__h && (r.__h = []);
|
|
1804
|
-
}), e = [],
|
|
1736
|
+
}), e = [], L.__e(n, i.__v);
|
|
1805
1737
|
}
|
|
1806
|
-
}),
|
|
1807
|
-
},
|
|
1808
|
-
|
|
1738
|
+
}), zt && zt(t, e);
|
|
1739
|
+
}, L.unmount = function(t) {
|
|
1740
|
+
Ht && Ht(t);
|
|
1809
1741
|
var e, i = t.__c;
|
|
1810
1742
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1811
1743
|
try {
|
|
1812
|
-
|
|
1744
|
+
Ue(n);
|
|
1813
1745
|
} catch (r) {
|
|
1814
1746
|
e = r;
|
|
1815
1747
|
}
|
|
1816
|
-
}), i.__H = void 0, e &&
|
|
1748
|
+
}), i.__H = void 0, e && L.__e(e, i.__v));
|
|
1817
1749
|
};
|
|
1818
|
-
var
|
|
1819
|
-
function
|
|
1750
|
+
var Jt = typeof requestAnimationFrame == "function";
|
|
1751
|
+
function Ar(t) {
|
|
1820
1752
|
var e, i = function() {
|
|
1821
|
-
clearTimeout(n),
|
|
1753
|
+
clearTimeout(n), Jt && cancelAnimationFrame(e), setTimeout(t);
|
|
1822
1754
|
}, n = setTimeout(i, 100);
|
|
1823
|
-
|
|
1755
|
+
Jt && (e = requestAnimationFrame(i));
|
|
1824
1756
|
}
|
|
1825
|
-
function
|
|
1826
|
-
var e =
|
|
1827
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1757
|
+
function Ue(t) {
|
|
1758
|
+
var e = q, i = t.__c;
|
|
1759
|
+
typeof i == "function" && (t.__c = void 0, i()), q = e;
|
|
1828
1760
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var e =
|
|
1831
|
-
t.__c = t.__(),
|
|
1761
|
+
function ft(t) {
|
|
1762
|
+
var e = q;
|
|
1763
|
+
t.__c = t.__(), q = e;
|
|
1832
1764
|
}
|
|
1833
|
-
function
|
|
1765
|
+
function _r(t, e) {
|
|
1834
1766
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1835
1767
|
return i !== t[n];
|
|
1836
1768
|
});
|
|
1837
1769
|
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1840
|
-
if (
|
|
1841
|
-
|
|
1770
|
+
var mr = Symbol.for("preact-signals");
|
|
1771
|
+
function Xe() {
|
|
1772
|
+
if (re > 1)
|
|
1773
|
+
re--;
|
|
1842
1774
|
else {
|
|
1843
1775
|
for (var t, e = !1; _e !== void 0; ) {
|
|
1844
1776
|
var i = _e;
|
|
1845
|
-
for (_e = void 0,
|
|
1777
|
+
for (_e = void 0, vt++; i !== void 0; ) {
|
|
1846
1778
|
var n = i.o;
|
|
1847
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1779
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && yi(i))
|
|
1848
1780
|
try {
|
|
1849
1781
|
i.c();
|
|
1850
1782
|
} catch (r) {
|
|
@@ -1853,22 +1785,22 @@ function He() {
|
|
|
1853
1785
|
i = n;
|
|
1854
1786
|
}
|
|
1855
1787
|
}
|
|
1856
|
-
if (
|
|
1788
|
+
if (vt = 0, re--, e)
|
|
1857
1789
|
throw t;
|
|
1858
1790
|
}
|
|
1859
1791
|
}
|
|
1860
|
-
function
|
|
1861
|
-
if (
|
|
1792
|
+
function D(t) {
|
|
1793
|
+
if (re > 0)
|
|
1862
1794
|
return t();
|
|
1863
|
-
|
|
1795
|
+
re++;
|
|
1864
1796
|
try {
|
|
1865
1797
|
return t();
|
|
1866
1798
|
} finally {
|
|
1867
|
-
|
|
1799
|
+
Xe();
|
|
1868
1800
|
}
|
|
1869
1801
|
}
|
|
1870
|
-
var k = void 0, _e = void 0,
|
|
1871
|
-
function
|
|
1802
|
+
var k = void 0, _e = void 0, re = 0, vt = 0, Ke = 0;
|
|
1803
|
+
function gi(t) {
|
|
1872
1804
|
if (k !== void 0) {
|
|
1873
1805
|
var e = t.n;
|
|
1874
1806
|
if (e === void 0 || e.t !== k)
|
|
@@ -1877,23 +1809,23 @@ function ci(t) {
|
|
|
1877
1809
|
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
|
|
1878
1810
|
}
|
|
1879
1811
|
}
|
|
1880
|
-
function
|
|
1812
|
+
function M(t) {
|
|
1881
1813
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1882
1814
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1815
|
+
M.prototype.brand = mr;
|
|
1816
|
+
M.prototype.h = function() {
|
|
1885
1817
|
return !0;
|
|
1886
1818
|
};
|
|
1887
|
-
|
|
1819
|
+
M.prototype.S = function(t) {
|
|
1888
1820
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1889
1821
|
};
|
|
1890
|
-
|
|
1822
|
+
M.prototype.U = function(t) {
|
|
1891
1823
|
if (this.t !== void 0) {
|
|
1892
1824
|
var e = t.e, i = t.x;
|
|
1893
1825
|
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1894
1826
|
}
|
|
1895
1827
|
};
|
|
1896
|
-
|
|
1828
|
+
M.prototype.subscribe = function(t) {
|
|
1897
1829
|
var e = this;
|
|
1898
1830
|
return xe(function() {
|
|
1899
1831
|
var i = e.value, n = k;
|
|
@@ -1905,16 +1837,16 @@ L.prototype.subscribe = function(t) {
|
|
|
1905
1837
|
}
|
|
1906
1838
|
});
|
|
1907
1839
|
};
|
|
1908
|
-
|
|
1840
|
+
M.prototype.valueOf = function() {
|
|
1909
1841
|
return this.value;
|
|
1910
1842
|
};
|
|
1911
|
-
|
|
1843
|
+
M.prototype.toString = function() {
|
|
1912
1844
|
return this.value + "";
|
|
1913
1845
|
};
|
|
1914
|
-
|
|
1846
|
+
M.prototype.toJSON = function() {
|
|
1915
1847
|
return this.value;
|
|
1916
1848
|
};
|
|
1917
|
-
|
|
1849
|
+
M.prototype.peek = function() {
|
|
1918
1850
|
var t = k;
|
|
1919
1851
|
k = void 0;
|
|
1920
1852
|
try {
|
|
@@ -1923,32 +1855,32 @@ L.prototype.peek = function() {
|
|
|
1923
1855
|
k = t;
|
|
1924
1856
|
}
|
|
1925
1857
|
};
|
|
1926
|
-
Object.defineProperty(
|
|
1927
|
-
var t =
|
|
1858
|
+
Object.defineProperty(M.prototype, "value", { get: function() {
|
|
1859
|
+
var t = gi(this);
|
|
1928
1860
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1929
1861
|
}, set: function(t) {
|
|
1930
1862
|
if (t !== this.v) {
|
|
1931
|
-
if (
|
|
1863
|
+
if (vt > 100)
|
|
1932
1864
|
throw new Error("Cycle detected");
|
|
1933
|
-
this.v = t, this.i++,
|
|
1865
|
+
this.v = t, this.i++, Ke++, re++;
|
|
1934
1866
|
try {
|
|
1935
1867
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1936
1868
|
e.t.N();
|
|
1937
1869
|
} finally {
|
|
1938
|
-
|
|
1870
|
+
Xe();
|
|
1939
1871
|
}
|
|
1940
1872
|
}
|
|
1941
1873
|
} });
|
|
1942
|
-
function
|
|
1943
|
-
return new
|
|
1874
|
+
function E(t) {
|
|
1875
|
+
return new M(t);
|
|
1944
1876
|
}
|
|
1945
|
-
function
|
|
1877
|
+
function yi(t) {
|
|
1946
1878
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1947
1879
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1948
1880
|
return !0;
|
|
1949
1881
|
return !1;
|
|
1950
1882
|
}
|
|
1951
|
-
function
|
|
1883
|
+
function wi(t) {
|
|
1952
1884
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1953
1885
|
var i = e.S.n;
|
|
1954
1886
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1957,95 +1889,95 @@ function fi(t) {
|
|
|
1957
1889
|
}
|
|
1958
1890
|
}
|
|
1959
1891
|
}
|
|
1960
|
-
function
|
|
1892
|
+
function pi(t) {
|
|
1961
1893
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1962
1894
|
var n = e.p;
|
|
1963
1895
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
1964
1896
|
}
|
|
1965
1897
|
t.s = i;
|
|
1966
1898
|
}
|
|
1967
|
-
function
|
|
1968
|
-
|
|
1899
|
+
function ye(t) {
|
|
1900
|
+
M.call(this, void 0), this.x = t, this.s = void 0, this.g = Ke - 1, this.f = 4;
|
|
1969
1901
|
}
|
|
1970
|
-
(
|
|
1902
|
+
(ye.prototype = new M()).h = function() {
|
|
1971
1903
|
if (this.f &= -3, 1 & this.f)
|
|
1972
1904
|
return !1;
|
|
1973
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1905
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ke))
|
|
1974
1906
|
return !0;
|
|
1975
|
-
if (this.g =
|
|
1907
|
+
if (this.g = Ke, this.f |= 1, this.i > 0 && !yi(this))
|
|
1976
1908
|
return this.f &= -2, !0;
|
|
1977
1909
|
var t = k;
|
|
1978
1910
|
try {
|
|
1979
|
-
|
|
1911
|
+
wi(this), k = this;
|
|
1980
1912
|
var e = this.x();
|
|
1981
1913
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1982
1914
|
} catch (i) {
|
|
1983
1915
|
this.v = i, this.f |= 16, this.i++;
|
|
1984
1916
|
}
|
|
1985
|
-
return k = t,
|
|
1917
|
+
return k = t, pi(this), this.f &= -2, !0;
|
|
1986
1918
|
};
|
|
1987
|
-
|
|
1919
|
+
ye.prototype.S = function(t) {
|
|
1988
1920
|
if (this.t === void 0) {
|
|
1989
1921
|
this.f |= 36;
|
|
1990
1922
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1991
1923
|
e.S.S(e);
|
|
1992
1924
|
}
|
|
1993
|
-
|
|
1925
|
+
M.prototype.S.call(this, t);
|
|
1994
1926
|
};
|
|
1995
|
-
|
|
1996
|
-
if (this.t !== void 0 && (
|
|
1927
|
+
ye.prototype.U = function(t) {
|
|
1928
|
+
if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
|
|
1997
1929
|
this.f &= -33;
|
|
1998
1930
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1999
1931
|
e.S.U(e);
|
|
2000
1932
|
}
|
|
2001
1933
|
};
|
|
2002
|
-
|
|
1934
|
+
ye.prototype.N = function() {
|
|
2003
1935
|
if (!(2 & this.f)) {
|
|
2004
1936
|
this.f |= 6;
|
|
2005
1937
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2006
1938
|
t.t.N();
|
|
2007
1939
|
}
|
|
2008
1940
|
};
|
|
2009
|
-
Object.defineProperty(
|
|
1941
|
+
Object.defineProperty(ye.prototype, "value", { get: function() {
|
|
2010
1942
|
if (1 & this.f)
|
|
2011
1943
|
throw new Error("Cycle detected");
|
|
2012
|
-
var t =
|
|
1944
|
+
var t = gi(this);
|
|
2013
1945
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2014
1946
|
throw this.v;
|
|
2015
1947
|
return this.v;
|
|
2016
1948
|
} });
|
|
2017
|
-
function
|
|
2018
|
-
return new
|
|
1949
|
+
function me(t) {
|
|
1950
|
+
return new ye(t);
|
|
2019
1951
|
}
|
|
2020
|
-
function
|
|
1952
|
+
function bi(t) {
|
|
2021
1953
|
var e = t.u;
|
|
2022
1954
|
if (t.u = void 0, typeof e == "function") {
|
|
2023
|
-
|
|
1955
|
+
re++;
|
|
2024
1956
|
var i = k;
|
|
2025
1957
|
k = void 0;
|
|
2026
1958
|
try {
|
|
2027
1959
|
e();
|
|
2028
1960
|
} catch (n) {
|
|
2029
|
-
throw t.f &= -2, t.f |= 8,
|
|
1961
|
+
throw t.f &= -2, t.f |= 8, At(t), n;
|
|
2030
1962
|
} finally {
|
|
2031
|
-
k = i,
|
|
1963
|
+
k = i, Xe();
|
|
2032
1964
|
}
|
|
2033
1965
|
}
|
|
2034
1966
|
}
|
|
2035
|
-
function
|
|
1967
|
+
function At(t) {
|
|
2036
1968
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2037
1969
|
e.S.U(e);
|
|
2038
|
-
t.x = void 0, t.s = void 0,
|
|
1970
|
+
t.x = void 0, t.s = void 0, bi(t);
|
|
2039
1971
|
}
|
|
2040
|
-
function
|
|
1972
|
+
function Sr(t) {
|
|
2041
1973
|
if (k !== this)
|
|
2042
1974
|
throw new Error("Out-of-order effect");
|
|
2043
|
-
|
|
1975
|
+
pi(this), k = t, this.f &= -2, 8 & this.f && At(this), Xe();
|
|
2044
1976
|
}
|
|
2045
|
-
function
|
|
1977
|
+
function Re(t) {
|
|
2046
1978
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2047
1979
|
}
|
|
2048
|
-
|
|
1980
|
+
Re.prototype.c = function() {
|
|
2049
1981
|
var t = this.S();
|
|
2050
1982
|
try {
|
|
2051
1983
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2056,21 +1988,21 @@ Ie.prototype.c = function() {
|
|
|
2056
1988
|
t();
|
|
2057
1989
|
}
|
|
2058
1990
|
};
|
|
2059
|
-
|
|
1991
|
+
Re.prototype.S = function() {
|
|
2060
1992
|
if (1 & this.f)
|
|
2061
1993
|
throw new Error("Cycle detected");
|
|
2062
|
-
this.f |= 1, this.f &= -9,
|
|
1994
|
+
this.f |= 1, this.f &= -9, bi(this), wi(this), re++;
|
|
2063
1995
|
var t = k;
|
|
2064
|
-
return k = this,
|
|
1996
|
+
return k = this, Sr.bind(this, t);
|
|
2065
1997
|
};
|
|
2066
|
-
|
|
1998
|
+
Re.prototype.N = function() {
|
|
2067
1999
|
2 & this.f || (this.f |= 2, this.o = _e, _e = this);
|
|
2068
2000
|
};
|
|
2069
|
-
|
|
2070
|
-
this.f |= 8, 1 & this.f ||
|
|
2001
|
+
Re.prototype.d = function() {
|
|
2002
|
+
this.f |= 8, 1 & this.f || At(this);
|
|
2071
2003
|
};
|
|
2072
2004
|
function xe(t) {
|
|
2073
|
-
var e = new
|
|
2005
|
+
var e = new Re(t);
|
|
2074
2006
|
try {
|
|
2075
2007
|
e.c();
|
|
2076
2008
|
} catch (i) {
|
|
@@ -2078,33 +2010,33 @@ function xe(t) {
|
|
|
2078
2010
|
}
|
|
2079
2011
|
return e.d.bind(e);
|
|
2080
2012
|
}
|
|
2081
|
-
var
|
|
2013
|
+
var Ai, it, _i = [];
|
|
2082
2014
|
xe(function() {
|
|
2083
|
-
|
|
2015
|
+
Ai = this.N;
|
|
2084
2016
|
})();
|
|
2085
|
-
function
|
|
2086
|
-
|
|
2017
|
+
function we(t, e) {
|
|
2018
|
+
he[t] = e.bind(null, he[t] || function() {
|
|
2087
2019
|
});
|
|
2088
2020
|
}
|
|
2089
|
-
function
|
|
2090
|
-
|
|
2021
|
+
function ze(t) {
|
|
2022
|
+
it && it(), it = t && t.S();
|
|
2091
2023
|
}
|
|
2092
|
-
function
|
|
2093
|
-
var e = this, i = t.data, n =
|
|
2024
|
+
function mi(t) {
|
|
2025
|
+
var e = this, i = t.data, n = Si(i);
|
|
2094
2026
|
n.value = i;
|
|
2095
|
-
var r =
|
|
2027
|
+
var r = vi(function() {
|
|
2096
2028
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2097
2029
|
if (d.__c) {
|
|
2098
2030
|
d.__c.__$f |= 4;
|
|
2099
2031
|
break;
|
|
2100
2032
|
}
|
|
2101
|
-
var l =
|
|
2033
|
+
var l = me(function() {
|
|
2102
2034
|
var f = n.value.value;
|
|
2103
2035
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2104
|
-
}), u =
|
|
2105
|
-
return !Array.isArray(l.value) &&
|
|
2036
|
+
}), u = me(function() {
|
|
2037
|
+
return !Array.isArray(l.value) && !$i(l.value);
|
|
2106
2038
|
}), h = xe(function() {
|
|
2107
|
-
if (this.N =
|
|
2039
|
+
if (this.N = Ei, u.value) {
|
|
2108
2040
|
var f = l.value;
|
|
2109
2041
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2110
2042
|
}
|
|
@@ -2115,23 +2047,23 @@ function wi(t) {
|
|
|
2115
2047
|
}, []), o = r[0], s = r[1];
|
|
2116
2048
|
return o.value ? s.peek() : s.value;
|
|
2117
2049
|
}
|
|
2118
|
-
|
|
2119
|
-
Object.defineProperties(
|
|
2050
|
+
mi.displayName = "_st";
|
|
2051
|
+
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: mi }, props: { configurable: !0, get: function() {
|
|
2120
2052
|
return { data: this };
|
|
2121
2053
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2122
|
-
|
|
2054
|
+
we("__b", function(t, e) {
|
|
2123
2055
|
if (typeof e.type == "string") {
|
|
2124
2056
|
var i, n = e.props;
|
|
2125
2057
|
for (var r in n)
|
|
2126
2058
|
if (r !== "children") {
|
|
2127
2059
|
var o = n[r];
|
|
2128
|
-
o instanceof
|
|
2060
|
+
o instanceof M && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2129
2061
|
}
|
|
2130
2062
|
}
|
|
2131
2063
|
t(e);
|
|
2132
2064
|
});
|
|
2133
|
-
|
|
2134
|
-
|
|
2065
|
+
we("__r", function(t, e) {
|
|
2066
|
+
ze();
|
|
2135
2067
|
var i, n = e.__c;
|
|
2136
2068
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2137
2069
|
var o;
|
|
@@ -2140,13 +2072,13 @@ ge("__r", function(t, e) {
|
|
|
2140
2072
|
}), o.c = function() {
|
|
2141
2073
|
n.__$f |= 1, n.setState({});
|
|
2142
2074
|
}, o;
|
|
2143
|
-
}())),
|
|
2075
|
+
}())), ze(i), t(e);
|
|
2144
2076
|
});
|
|
2145
|
-
|
|
2146
|
-
|
|
2077
|
+
we("__e", function(t, e, i, n) {
|
|
2078
|
+
ze(), t(e, i, n);
|
|
2147
2079
|
});
|
|
2148
|
-
|
|
2149
|
-
|
|
2080
|
+
we("diffed", function(t, e) {
|
|
2081
|
+
ze();
|
|
2150
2082
|
var i;
|
|
2151
2083
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2152
2084
|
var n = e.__np, r = e.props;
|
|
@@ -2161,23 +2093,23 @@ ge("diffed", function(t, e) {
|
|
|
2161
2093
|
o = {}, i.U = o;
|
|
2162
2094
|
for (var d in n) {
|
|
2163
2095
|
var l = o[d], u = n[d];
|
|
2164
|
-
l === void 0 ? (l =
|
|
2096
|
+
l === void 0 ? (l = Er(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2165
2097
|
}
|
|
2166
2098
|
}
|
|
2167
2099
|
}
|
|
2168
2100
|
t(e);
|
|
2169
2101
|
});
|
|
2170
|
-
function
|
|
2171
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2102
|
+
function Er(t, e, i, n) {
|
|
2103
|
+
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2172
2104
|
return { o: function(s, a) {
|
|
2173
2105
|
o.value = s, n = a;
|
|
2174
2106
|
}, d: xe(function() {
|
|
2175
|
-
this.N =
|
|
2107
|
+
this.N = Ei;
|
|
2176
2108
|
var s = o.value.value;
|
|
2177
2109
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2178
2110
|
}) };
|
|
2179
2111
|
}
|
|
2180
|
-
|
|
2112
|
+
we("unmount", function(t, e) {
|
|
2181
2113
|
if (typeof e.type == "string") {
|
|
2182
2114
|
var i = e.__e;
|
|
2183
2115
|
if (i) {
|
|
@@ -2199,10 +2131,10 @@ ge("unmount", function(t, e) {
|
|
|
2199
2131
|
}
|
|
2200
2132
|
t(e);
|
|
2201
2133
|
});
|
|
2202
|
-
|
|
2134
|
+
we("__h", function(t, e, i, n) {
|
|
2203
2135
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2204
2136
|
});
|
|
2205
|
-
|
|
2137
|
+
Mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2206
2138
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2207
2139
|
for (var r in e)
|
|
2208
2140
|
return !0;
|
|
@@ -2220,26 +2152,26 @@ Oi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2220
2152
|
return !0;
|
|
2221
2153
|
return !1;
|
|
2222
2154
|
};
|
|
2223
|
-
function
|
|
2224
|
-
return
|
|
2225
|
-
return
|
|
2155
|
+
function Si(t) {
|
|
2156
|
+
return vi(function() {
|
|
2157
|
+
return E(t);
|
|
2226
2158
|
}, []);
|
|
2227
2159
|
}
|
|
2228
|
-
var
|
|
2160
|
+
var kr = function(t) {
|
|
2229
2161
|
queueMicrotask(function() {
|
|
2230
2162
|
queueMicrotask(t);
|
|
2231
2163
|
});
|
|
2232
2164
|
};
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2235
|
-
for (var t; t =
|
|
2236
|
-
|
|
2165
|
+
function Ir() {
|
|
2166
|
+
D(function() {
|
|
2167
|
+
for (var t; t = _i.shift(); )
|
|
2168
|
+
Ai.call(t);
|
|
2237
2169
|
});
|
|
2238
2170
|
}
|
|
2239
|
-
function
|
|
2240
|
-
|
|
2171
|
+
function Ei() {
|
|
2172
|
+
_i.push(this) === 1 && (he.requestAnimationFrame || kr)(Ir);
|
|
2241
2173
|
}
|
|
2242
|
-
const
|
|
2174
|
+
const F = ge`
|
|
2243
2175
|
inset: 0;
|
|
2244
2176
|
clear: none;
|
|
2245
2177
|
float: none;
|
|
@@ -2258,11 +2190,11 @@ const $ = fe`
|
|
|
2258
2190
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2259
2191
|
'Helvetica Neue', sans-serif;
|
|
2260
2192
|
`;
|
|
2261
|
-
function
|
|
2262
|
-
const i =
|
|
2263
|
-
|
|
2193
|
+
function Rr(t, e) {
|
|
2194
|
+
const i = ji(t);
|
|
2195
|
+
Fi(() => {
|
|
2264
2196
|
i.current = t;
|
|
2265
|
-
}, [t]),
|
|
2197
|
+
}, [t]), He(() => {
|
|
2266
2198
|
if (e === null)
|
|
2267
2199
|
return;
|
|
2268
2200
|
const n = setInterval(() => {
|
|
@@ -2273,21 +2205,21 @@ function mr(t, e) {
|
|
|
2273
2205
|
};
|
|
2274
2206
|
}, [e]);
|
|
2275
2207
|
}
|
|
2276
|
-
var
|
|
2208
|
+
var xr = 0;
|
|
2277
2209
|
function _(t, e, i, n, r, o) {
|
|
2278
2210
|
e || (e = {});
|
|
2279
2211
|
var s, a, d = e;
|
|
2280
2212
|
if ("ref" in d)
|
|
2281
2213
|
for (a in d = {}, e)
|
|
2282
2214
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2283
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2215
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --xr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2284
2216
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2285
2217
|
for (a in s)
|
|
2286
2218
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2287
|
-
return
|
|
2219
|
+
return he.vnode && he.vnode(l), l;
|
|
2288
2220
|
}
|
|
2289
|
-
const
|
|
2290
|
-
${
|
|
2221
|
+
const Or = ge`
|
|
2222
|
+
${F}
|
|
2291
2223
|
position: fixed;
|
|
2292
2224
|
top: 0;
|
|
2293
2225
|
left: 0;
|
|
@@ -2300,7 +2232,7 @@ const Er = fe`
|
|
|
2300
2232
|
height: 100vh;
|
|
2301
2233
|
|
|
2302
2234
|
.card-wrapper {
|
|
2303
|
-
${
|
|
2235
|
+
${F}
|
|
2304
2236
|
position: relative;
|
|
2305
2237
|
display: flex;
|
|
2306
2238
|
flex-direction: column;
|
|
@@ -2314,7 +2246,7 @@ const Er = fe`
|
|
|
2314
2246
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2315
2247
|
|
|
2316
2248
|
.body {
|
|
2317
|
-
${
|
|
2249
|
+
${F}
|
|
2318
2250
|
display: flex;
|
|
2319
2251
|
flex-direction: column;
|
|
2320
2252
|
width: 100%;
|
|
@@ -2323,7 +2255,7 @@ const Er = fe`
|
|
|
2323
2255
|
box-sizing: border-box;
|
|
2324
2256
|
justify-content: center;
|
|
2325
2257
|
.title {
|
|
2326
|
-
${
|
|
2258
|
+
${F}
|
|
2327
2259
|
text-align: center;
|
|
2328
2260
|
font-size: 16px;
|
|
2329
2261
|
font-weight: bold;
|
|
@@ -2331,7 +2263,7 @@ const Er = fe`
|
|
|
2331
2263
|
}
|
|
2332
2264
|
|
|
2333
2265
|
.content {
|
|
2334
|
-
${
|
|
2266
|
+
${F}
|
|
2335
2267
|
font-size: 14px;
|
|
2336
2268
|
color: #888;
|
|
2337
2269
|
margin-bottom: 16px;
|
|
@@ -2339,13 +2271,13 @@ const Er = fe`
|
|
|
2339
2271
|
}
|
|
2340
2272
|
|
|
2341
2273
|
.footer {
|
|
2342
|
-
${
|
|
2274
|
+
${F}
|
|
2343
2275
|
display: flex;
|
|
2344
2276
|
align-items: center;
|
|
2345
2277
|
width: 100%;
|
|
2346
2278
|
height: 40px;
|
|
2347
2279
|
button {
|
|
2348
|
-
${
|
|
2280
|
+
${F}
|
|
2349
2281
|
border: none;
|
|
2350
2282
|
outline: none;
|
|
2351
2283
|
height: 100%;
|
|
@@ -2361,56 +2293,56 @@ const Er = fe`
|
|
|
2361
2293
|
}
|
|
2362
2294
|
}
|
|
2363
2295
|
}
|
|
2364
|
-
`,
|
|
2296
|
+
`, W = E(null), gt = E(""), yt = E(""), Be = E(!1), Tr = () => {
|
|
2365
2297
|
var t;
|
|
2366
|
-
(t =
|
|
2367
|
-
},
|
|
2298
|
+
(t = W.value) == null || t.call(W, !1);
|
|
2299
|
+
}, Cr = () => {
|
|
2368
2300
|
var t;
|
|
2369
|
-
(t =
|
|
2370
|
-
},
|
|
2301
|
+
(t = W.value) == null || t.call(W, !0);
|
|
2302
|
+
}, Dr = async (t) => {
|
|
2371
2303
|
let {
|
|
2372
2304
|
title: e,
|
|
2373
2305
|
content: i
|
|
2374
2306
|
} = t;
|
|
2375
|
-
return
|
|
2376
|
-
|
|
2377
|
-
})),
|
|
2378
|
-
|
|
2307
|
+
return W.value && (W.value(!1), D(() => {
|
|
2308
|
+
W.value = null, Be.value = !1;
|
|
2309
|
+
})), D(() => {
|
|
2310
|
+
gt.value = e || "", yt.value = i || "", Be.value = !0;
|
|
2379
2311
|
}), new Promise((n) => {
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2312
|
+
W.value = (r) => {
|
|
2313
|
+
D(() => {
|
|
2314
|
+
W.value = null, Be.value = !1, gt.value = "", yt.value = "";
|
|
2383
2315
|
}), n(r);
|
|
2384
2316
|
};
|
|
2385
2317
|
});
|
|
2386
|
-
},
|
|
2387
|
-
className:
|
|
2318
|
+
}, Lr = () => Be.value ? _("div", {
|
|
2319
|
+
className: Or,
|
|
2388
2320
|
children: _("div", {
|
|
2389
2321
|
className: "card-wrapper",
|
|
2390
2322
|
children: [_("div", {
|
|
2391
2323
|
className: "body",
|
|
2392
2324
|
children: [_("div", {
|
|
2393
2325
|
className: "title",
|
|
2394
|
-
children:
|
|
2326
|
+
children: gt.value
|
|
2395
2327
|
}), _("div", {
|
|
2396
2328
|
className: "content",
|
|
2397
|
-
children:
|
|
2329
|
+
children: yt.value
|
|
2398
2330
|
})]
|
|
2399
2331
|
}), _("div", {
|
|
2400
2332
|
className: "footer",
|
|
2401
2333
|
children: [_("button", {
|
|
2402
|
-
onClick:
|
|
2334
|
+
onClick: Tr,
|
|
2403
2335
|
className: "cancel-btn",
|
|
2404
2336
|
children: "Cancel"
|
|
2405
2337
|
}), _("button", {
|
|
2406
|
-
onClick:
|
|
2338
|
+
onClick: Cr,
|
|
2407
2339
|
className: "confirm-btm",
|
|
2408
2340
|
children: "Confirm"
|
|
2409
2341
|
})]
|
|
2410
2342
|
})]
|
|
2411
2343
|
})
|
|
2412
|
-
}) : null,
|
|
2413
|
-
${
|
|
2344
|
+
}) : null, Pr = ge`
|
|
2345
|
+
${F}
|
|
2414
2346
|
position: relative;
|
|
2415
2347
|
display: flex;
|
|
2416
2348
|
align-items: center;
|
|
@@ -2428,7 +2360,7 @@ const Er = fe`
|
|
|
2428
2360
|
}
|
|
2429
2361
|
|
|
2430
2362
|
button {
|
|
2431
|
-
${
|
|
2363
|
+
${F}
|
|
2432
2364
|
padding: 0 20px;
|
|
2433
2365
|
height: 30px;
|
|
2434
2366
|
line-height: 30px;
|
|
@@ -2442,18 +2374,18 @@ const Er = fe`
|
|
|
2442
2374
|
cursor: not-allowed;
|
|
2443
2375
|
}
|
|
2444
2376
|
}
|
|
2445
|
-
`,
|
|
2446
|
-
const t =
|
|
2377
|
+
`, Nr = () => {
|
|
2378
|
+
const t = E(!1), e = E(null);
|
|
2447
2379
|
return {
|
|
2448
2380
|
timerPaused: t,
|
|
2449
2381
|
startTimestamp: e,
|
|
2450
2382
|
startTimer: () => {
|
|
2451
|
-
|
|
2383
|
+
D(() => {
|
|
2452
2384
|
e.value = Date.now(), t.value = !1;
|
|
2453
2385
|
});
|
|
2454
2386
|
}
|
|
2455
2387
|
};
|
|
2456
|
-
},
|
|
2388
|
+
}, Mr = (t) => {
|
|
2457
2389
|
let {
|
|
2458
2390
|
countdown: e = 0,
|
|
2459
2391
|
mode: i,
|
|
@@ -2463,42 +2395,42 @@ const Er = fe`
|
|
|
2463
2395
|
const {
|
|
2464
2396
|
startTimestamp: o,
|
|
2465
2397
|
timerPaused: s
|
|
2466
|
-
} = r, a =
|
|
2467
|
-
|
|
2468
|
-
a.value > 0 ? a.value -= 1 :
|
|
2398
|
+
} = r, a = Si(e);
|
|
2399
|
+
Rr(() => {
|
|
2400
|
+
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2469
2401
|
s.value = !0, a.value = 0;
|
|
2470
2402
|
});
|
|
2471
2403
|
}, s.value ? null : 1e3);
|
|
2472
|
-
const d =
|
|
2404
|
+
const d = me(() => {
|
|
2473
2405
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2474
2406
|
return !1;
|
|
2475
2407
|
const f = Date.now() - o.value;
|
|
2476
2408
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2477
|
-
}), l =
|
|
2409
|
+
}), l = me(() => {
|
|
2478
2410
|
if (i === "interstitial")
|
|
2479
2411
|
return !0;
|
|
2480
2412
|
if (!o.value)
|
|
2481
2413
|
return !1;
|
|
2482
2414
|
const f = Date.now() - o.value;
|
|
2483
2415
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2484
|
-
}), u =
|
|
2485
|
-
if (s.value = !0, !await
|
|
2416
|
+
}), u = me(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2417
|
+
if (s.value = !0, !await Dr({
|
|
2486
2418
|
title: "Are you sure?",
|
|
2487
2419
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2488
2420
|
})) {
|
|
2489
2421
|
s.value = !1;
|
|
2490
2422
|
return;
|
|
2491
2423
|
}
|
|
2492
|
-
n("dismiss"),
|
|
2424
|
+
n("dismiss"), D(() => {
|
|
2493
2425
|
s.value = !0, a.value = 0, o.value = null;
|
|
2494
2426
|
});
|
|
2495
2427
|
}, c = () => {
|
|
2496
|
-
n("viewed"),
|
|
2428
|
+
n("viewed"), D(() => {
|
|
2497
2429
|
s.value = !0, a.value = 0, o.value = null;
|
|
2498
2430
|
});
|
|
2499
2431
|
};
|
|
2500
2432
|
return _("div", {
|
|
2501
|
-
className:
|
|
2433
|
+
className: Pr,
|
|
2502
2434
|
children: [a.value > 0 && i !== "interstitial" && _("div", {
|
|
2503
2435
|
className: "timer",
|
|
2504
2436
|
children: [a.value, "s"]
|
|
@@ -2518,8 +2450,8 @@ const Er = fe`
|
|
|
2518
2450
|
})
|
|
2519
2451
|
})]
|
|
2520
2452
|
});
|
|
2521
|
-
},
|
|
2522
|
-
const t =
|
|
2453
|
+
}, ki = () => {
|
|
2454
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2523
2455
|
return {
|
|
2524
2456
|
afterAd: t,
|
|
2525
2457
|
adDismissed: e,
|
|
@@ -2531,8 +2463,8 @@ const Er = fe`
|
|
|
2531
2463
|
src: a,
|
|
2532
2464
|
mode: d
|
|
2533
2465
|
};
|
|
2534
|
-
},
|
|
2535
|
-
${
|
|
2466
|
+
}, $r = ge`
|
|
2467
|
+
${F}
|
|
2536
2468
|
position: fixed;
|
|
2537
2469
|
z-index: 2147483647;
|
|
2538
2470
|
background: white;
|
|
@@ -2542,7 +2474,7 @@ const Er = fe`
|
|
|
2542
2474
|
flex-direction: column;
|
|
2543
2475
|
|
|
2544
2476
|
iframe {
|
|
2545
|
-
${
|
|
2477
|
+
${F}
|
|
2546
2478
|
flex: 1;
|
|
2547
2479
|
position: relative;
|
|
2548
2480
|
display: block;
|
|
@@ -2550,7 +2482,7 @@ const Er = fe`
|
|
|
2550
2482
|
width: 100%;
|
|
2551
2483
|
height: 100%;
|
|
2552
2484
|
}
|
|
2553
|
-
`,
|
|
2485
|
+
`, Ii = (t) => {
|
|
2554
2486
|
let {
|
|
2555
2487
|
state: e
|
|
2556
2488
|
} = t;
|
|
@@ -2564,39 +2496,39 @@ const Er = fe`
|
|
|
2564
2496
|
countdown: d,
|
|
2565
2497
|
src: l,
|
|
2566
2498
|
mode: u
|
|
2567
|
-
} = e, h =
|
|
2568
|
-
var y,
|
|
2569
|
-
a.value = !1,
|
|
2570
|
-
},
|
|
2571
|
-
var
|
|
2572
|
-
c || (f(!0), (
|
|
2499
|
+
} = e, h = Ui(() => Nr(), []), [c, f] = Yt(!1), w = (p) => {
|
|
2500
|
+
var y, v, b, T;
|
|
2501
|
+
a.value = !1, p === "dismiss" ? (y = n.value) == null || y.call(n) : p === "viewed" && ((v = r.value) == null || v.call(r)), (b = i.value) == null || b.call(i), (T = o.value) == null || T.call(o), f(!1);
|
|
2502
|
+
}, g = Bi(() => {
|
|
2503
|
+
var p;
|
|
2504
|
+
c || (f(!0), (p = s.value) == null || p.call(s));
|
|
2573
2505
|
}, [c]);
|
|
2574
|
-
return
|
|
2506
|
+
return He(() => {
|
|
2575
2507
|
c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2576
2508
|
h.startTimer();
|
|
2577
2509
|
}, 100);
|
|
2578
2510
|
}, [c, u.value]), a.value ? _("div", {
|
|
2579
|
-
className:
|
|
2580
|
-
children: [_(
|
|
2511
|
+
className: $r,
|
|
2512
|
+
children: [_(Mr, {
|
|
2581
2513
|
mode: u.value,
|
|
2582
|
-
onClose:
|
|
2514
|
+
onClose: w,
|
|
2583
2515
|
countdown: d.value,
|
|
2584
2516
|
state: h
|
|
2585
2517
|
}), a.value && _("iframe", {
|
|
2586
2518
|
src: l.value,
|
|
2587
|
-
onLoad:
|
|
2519
|
+
onLoad: g,
|
|
2588
2520
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2589
|
-
}), _(
|
|
2521
|
+
}), _(Lr, {})]
|
|
2590
2522
|
}) : null;
|
|
2591
2523
|
};
|
|
2592
|
-
function
|
|
2593
|
-
return (e =
|
|
2524
|
+
function Z(t, e, i) {
|
|
2525
|
+
return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2594
2526
|
}
|
|
2595
|
-
function
|
|
2596
|
-
var e =
|
|
2527
|
+
function jr(t) {
|
|
2528
|
+
var e = Fr(t, "string");
|
|
2597
2529
|
return typeof e == "symbol" ? e : e + "";
|
|
2598
2530
|
}
|
|
2599
|
-
function
|
|
2531
|
+
function Fr(t, e) {
|
|
2600
2532
|
if (typeof t != "object" || !t)
|
|
2601
2533
|
return t;
|
|
2602
2534
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2608,13 +2540,13 @@ function Pr(t, e) {
|
|
|
2608
2540
|
}
|
|
2609
2541
|
return (e === "string" ? String : Number)(t);
|
|
2610
2542
|
}
|
|
2611
|
-
class
|
|
2543
|
+
class Ur {
|
|
2612
2544
|
constructor(e, i) {
|
|
2613
|
-
|
|
2545
|
+
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", ki()), this.context = e, this.initParams = i;
|
|
2614
2546
|
}
|
|
2615
2547
|
async init() {
|
|
2616
2548
|
var e;
|
|
2617
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2549
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Ii, {
|
|
2618
2550
|
state: this.state
|
|
2619
2551
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2620
2552
|
}
|
|
@@ -2676,7 +2608,7 @@ class Nr {
|
|
|
2676
2608
|
breakStatus: "viewed"
|
|
2677
2609
|
});
|
|
2678
2610
|
};
|
|
2679
|
-
|
|
2611
|
+
D(() => {
|
|
2680
2612
|
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = c, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2681
2613
|
});
|
|
2682
2614
|
break;
|
|
@@ -2699,17 +2631,17 @@ class Nr {
|
|
|
2699
2631
|
}, f = () => {
|
|
2700
2632
|
var y;
|
|
2701
2633
|
this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
|
|
2702
|
-
},
|
|
2634
|
+
}, w = () => {
|
|
2703
2635
|
var y;
|
|
2704
2636
|
this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
|
|
2705
|
-
},
|
|
2637
|
+
}, g = () => {
|
|
2706
2638
|
var y;
|
|
2707
2639
|
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
|
|
2708
2640
|
};
|
|
2709
|
-
|
|
2710
|
-
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2641
|
+
D(() => {
|
|
2642
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = g;
|
|
2711
2643
|
});
|
|
2712
|
-
const
|
|
2644
|
+
const p = () => {
|
|
2713
2645
|
var y;
|
|
2714
2646
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2715
2647
|
(y = e.adBreakDone) == null || y.call(e, {
|
|
@@ -2720,29 +2652,29 @@ class Nr {
|
|
|
2720
2652
|
});
|
|
2721
2653
|
return;
|
|
2722
2654
|
}
|
|
2723
|
-
this.adsIsShowing = !0,
|
|
2724
|
-
var
|
|
2725
|
-
this.state.countdown.value = (
|
|
2655
|
+
this.adsIsShowing = !0, D(() => {
|
|
2656
|
+
var v;
|
|
2657
|
+
this.state.countdown.value = (v = i.params.countdown) != null ? v : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2726
2658
|
});
|
|
2727
2659
|
};
|
|
2728
|
-
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e,
|
|
2660
|
+
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, p);
|
|
2729
2661
|
break;
|
|
2730
2662
|
}
|
|
2731
2663
|
}
|
|
2732
2664
|
}
|
|
2733
2665
|
}
|
|
2734
|
-
const
|
|
2666
|
+
const ue = {};
|
|
2735
2667
|
window.addEventListener("message", (t) => {
|
|
2736
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
2668
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || ue[t.data.type] && ue[t.data.type].forEach((e) => {
|
|
2737
2669
|
e(t.data.data);
|
|
2738
2670
|
});
|
|
2739
2671
|
});
|
|
2740
|
-
const
|
|
2741
|
-
|
|
2742
|
-
|
|
2672
|
+
const ae = (t, e) => {
|
|
2673
|
+
He(() => (ue[t] || (ue[t] = /* @__PURE__ */ new Set()), ue[t].add(e), () => {
|
|
2674
|
+
ue[t].delete(e);
|
|
2743
2675
|
}), [t, e]);
|
|
2744
|
-
},
|
|
2745
|
-
const t =
|
|
2676
|
+
}, Ri = () => {
|
|
2677
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2746
2678
|
return {
|
|
2747
2679
|
afterAd: t,
|
|
2748
2680
|
adDismissed: e,
|
|
@@ -2754,8 +2686,8 @@ const se = (t, e) => {
|
|
|
2754
2686
|
visible: a,
|
|
2755
2687
|
src: d
|
|
2756
2688
|
};
|
|
2757
|
-
},
|
|
2758
|
-
${
|
|
2689
|
+
}, Br = ge`
|
|
2690
|
+
${F}
|
|
2759
2691
|
position: fixed;
|
|
2760
2692
|
z-index: 2147483647;
|
|
2761
2693
|
background: white;
|
|
@@ -2765,7 +2697,7 @@ const se = (t, e) => {
|
|
|
2765
2697
|
flex-direction: column;
|
|
2766
2698
|
|
|
2767
2699
|
iframe {
|
|
2768
|
-
${
|
|
2700
|
+
${F}
|
|
2769
2701
|
flex: 1;
|
|
2770
2702
|
position: relative;
|
|
2771
2703
|
display: block;
|
|
@@ -2773,7 +2705,7 @@ const se = (t, e) => {
|
|
|
2773
2705
|
width: 100%;
|
|
2774
2706
|
height: 100%;
|
|
2775
2707
|
}
|
|
2776
|
-
`,
|
|
2708
|
+
`, xi = (t) => {
|
|
2777
2709
|
let {
|
|
2778
2710
|
state: e
|
|
2779
2711
|
} = t;
|
|
@@ -2786,18 +2718,18 @@ const se = (t, e) => {
|
|
|
2786
2718
|
adLinkClicked: a,
|
|
2787
2719
|
visible: d,
|
|
2788
2720
|
src: l
|
|
2789
|
-
} = e, [u, h] =
|
|
2790
|
-
var
|
|
2791
|
-
h(!1), d.value = !1,
|
|
2721
|
+
} = e, [u, h] = Yt(!1), c = (w) => {
|
|
2722
|
+
var g, p, y, v;
|
|
2723
|
+
h(!1), d.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (y = i.value) == null || y.call(i), (v = o.value) == null || v.call(o);
|
|
2792
2724
|
}, f = () => {
|
|
2793
|
-
var
|
|
2794
|
-
(
|
|
2725
|
+
var w;
|
|
2726
|
+
(w = s.value) == null || w.call(s);
|
|
2795
2727
|
};
|
|
2796
|
-
return
|
|
2797
|
-
var
|
|
2798
|
-
return (
|
|
2799
|
-
}),
|
|
2800
|
-
className:
|
|
2728
|
+
return ae("appsrockets_ad_dismissed", () => c("dismiss")), ae("appsrockets_ad_rewarded", () => c("viewed")), ae("appsrockets_ad_completed", () => c("viewed")), ae("appsrockets_ad_skipped", () => c("viewed")), ae("appsrockets_ad_clicked", (w) => {
|
|
2729
|
+
var g;
|
|
2730
|
+
return (g = a.value) == null ? void 0 : g.call(a, w);
|
|
2731
|
+
}), ae("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2732
|
+
className: Br,
|
|
2801
2733
|
style: {
|
|
2802
2734
|
display: u ? "flex" : "none"
|
|
2803
2735
|
},
|
|
@@ -2810,14 +2742,14 @@ const se = (t, e) => {
|
|
|
2810
2742
|
})
|
|
2811
2743
|
}) : null;
|
|
2812
2744
|
};
|
|
2813
|
-
function
|
|
2814
|
-
return (e =
|
|
2745
|
+
function ee(t, e, i) {
|
|
2746
|
+
return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2815
2747
|
}
|
|
2816
|
-
function
|
|
2817
|
-
var e =
|
|
2748
|
+
function Vr(t) {
|
|
2749
|
+
var e = Gr(t, "string");
|
|
2818
2750
|
return typeof e == "symbol" ? e : e + "";
|
|
2819
2751
|
}
|
|
2820
|
-
function
|
|
2752
|
+
function Gr(t, e) {
|
|
2821
2753
|
if (typeof t != "object" || !t)
|
|
2822
2754
|
return t;
|
|
2823
2755
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2829,9 +2761,9 @@ function jr(t, e) {
|
|
|
2829
2761
|
}
|
|
2830
2762
|
return (e === "string" ? String : Number)(t);
|
|
2831
2763
|
}
|
|
2832
|
-
class
|
|
2764
|
+
class qr {
|
|
2833
2765
|
constructor(e, i) {
|
|
2834
|
-
|
|
2766
|
+
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state", Ri()), ee(this, "processUrl", (n) => {
|
|
2835
2767
|
var a;
|
|
2836
2768
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2837
2769
|
return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
|
|
@@ -2839,7 +2771,7 @@ class Ur {
|
|
|
2839
2771
|
}
|
|
2840
2772
|
async init() {
|
|
2841
2773
|
var e;
|
|
2842
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"),
|
|
2774
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(xi, {
|
|
2843
2775
|
state: this.state
|
|
2844
2776
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2845
2777
|
}
|
|
@@ -2875,8 +2807,8 @@ class Ur {
|
|
|
2875
2807
|
return;
|
|
2876
2808
|
}
|
|
2877
2809
|
const n = (c) => {
|
|
2878
|
-
var f,
|
|
2879
|
-
(
|
|
2810
|
+
var f, w;
|
|
2811
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
2880
2812
|
};
|
|
2881
2813
|
switch (e.type) {
|
|
2882
2814
|
case "preroll": {
|
|
@@ -2894,27 +2826,27 @@ class Ur {
|
|
|
2894
2826
|
case "pause": {
|
|
2895
2827
|
(a = e.beforeAd) == null || a.call(e);
|
|
2896
2828
|
const c = () => {
|
|
2897
|
-
var
|
|
2898
|
-
this.adsIsShowing = !1, (
|
|
2829
|
+
var g;
|
|
2830
|
+
this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
|
|
2899
2831
|
}, f = () => {
|
|
2900
|
-
var
|
|
2901
|
-
this.adsIsShowing = !1, (
|
|
2832
|
+
var g;
|
|
2833
|
+
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
|
|
2902
2834
|
breakType: e.type,
|
|
2903
2835
|
breakName: e.name,
|
|
2904
2836
|
breakFormat: "interstitial",
|
|
2905
2837
|
breakStatus: "viewed"
|
|
2906
2838
|
});
|
|
2907
|
-
},
|
|
2908
|
-
var
|
|
2909
|
-
this.adsIsShowing = !1, (
|
|
2839
|
+
}, w = () => {
|
|
2840
|
+
var g;
|
|
2841
|
+
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
|
|
2910
2842
|
breakType: e.type,
|
|
2911
2843
|
breakName: e.name,
|
|
2912
2844
|
breakFormat: "interstitial",
|
|
2913
2845
|
breakStatus: "noAdPreloaded"
|
|
2914
2846
|
});
|
|
2915
2847
|
};
|
|
2916
|
-
|
|
2917
|
-
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value =
|
|
2848
|
+
D(() => {
|
|
2849
|
+
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
|
|
2918
2850
|
});
|
|
2919
2851
|
break;
|
|
2920
2852
|
}
|
|
@@ -2933,22 +2865,22 @@ class Ur {
|
|
|
2933
2865
|
breakName: e.name,
|
|
2934
2866
|
breakFormat: "reward",
|
|
2935
2867
|
breakStatus: "ignored"
|
|
2936
|
-
},
|
|
2868
|
+
}, w = () => {
|
|
2937
2869
|
var b;
|
|
2938
2870
|
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
2939
|
-
},
|
|
2871
|
+
}, g = () => {
|
|
2940
2872
|
var b;
|
|
2941
2873
|
this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
|
|
2942
|
-
},
|
|
2874
|
+
}, p = () => {
|
|
2943
2875
|
var b;
|
|
2944
2876
|
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2945
2877
|
}, y = () => {
|
|
2946
2878
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2947
2879
|
};
|
|
2948
|
-
|
|
2949
|
-
this.state.afterAd.value = c, this.state.adDismissed.value =
|
|
2880
|
+
D(() => {
|
|
2881
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = w, this.state.adViewed.value = g, this.state.adBreakDone.value = p, this.state.adLinkClicked.value = n, this.state.adError.value = y;
|
|
2950
2882
|
});
|
|
2951
|
-
const
|
|
2883
|
+
const v = () => {
|
|
2952
2884
|
var b;
|
|
2953
2885
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2954
2886
|
(b = e.adBreakDone) == null || b.call(e, {
|
|
@@ -2959,31 +2891,31 @@ class Ur {
|
|
|
2959
2891
|
});
|
|
2960
2892
|
return;
|
|
2961
2893
|
}
|
|
2962
|
-
this.adsIsShowing = !0,
|
|
2894
|
+
this.adsIsShowing = !0, D(() => {
|
|
2963
2895
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2964
2896
|
});
|
|
2965
2897
|
};
|
|
2966
|
-
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e,
|
|
2898
|
+
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, v);
|
|
2967
2899
|
break;
|
|
2968
2900
|
}
|
|
2969
2901
|
}
|
|
2970
2902
|
}
|
|
2971
2903
|
}
|
|
2972
|
-
const
|
|
2904
|
+
const Oi = () => {
|
|
2973
2905
|
window.googletag = window.googletag || {
|
|
2974
2906
|
cmd: []
|
|
2975
2907
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
2976
2908
|
window.googletag.enableServices();
|
|
2977
2909
|
});
|
|
2978
2910
|
};
|
|
2979
|
-
function
|
|
2980
|
-
return (e =
|
|
2911
|
+
function $(t, e, i) {
|
|
2912
|
+
return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2981
2913
|
}
|
|
2982
|
-
function
|
|
2983
|
-
var e =
|
|
2914
|
+
function Kr(t) {
|
|
2915
|
+
var e = zr(t, "string");
|
|
2984
2916
|
return typeof e == "symbol" ? e : e + "";
|
|
2985
2917
|
}
|
|
2986
|
-
function
|
|
2918
|
+
function zr(t, e) {
|
|
2987
2919
|
if (typeof t != "object" || !t)
|
|
2988
2920
|
return t;
|
|
2989
2921
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2995,24 +2927,24 @@ function Fr(t, e) {
|
|
|
2995
2927
|
}
|
|
2996
2928
|
return (e === "string" ? String : Number)(t);
|
|
2997
2929
|
}
|
|
2998
|
-
class
|
|
2930
|
+
class Ti {
|
|
2999
2931
|
constructor(e, i, n) {
|
|
3000
|
-
|
|
2932
|
+
$(this, "adUnit", void 0), $(this, "project", void 0), $(this, "keyValue", void 0), $(this, "adsContext", null), $(this, "rewardedSlot", null), $(this, "rewardedPayload", null), $(this, "readyEvent", null), $(this, "withCommand", function() {
|
|
3001
2933
|
googletag.cmd.push(...arguments);
|
|
3002
|
-
}),
|
|
2934
|
+
}), $(this, "init", () => {
|
|
3003
2935
|
var r;
|
|
3004
2936
|
this.rewardedSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.REWARDED), this.rewardedSlot && (this.rewardedSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().addEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().addEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.keyValue && (Object.keys(this.keyValue).forEach((o) => {
|
|
3005
2937
|
var s;
|
|
3006
2938
|
(s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
|
|
3007
2939
|
}), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
|
|
3008
|
-
}),
|
|
2940
|
+
}), $(this, "destroy", (r) => {
|
|
3009
2941
|
var o, s;
|
|
3010
2942
|
this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r), this.adsContext = null;
|
|
3011
|
-
}),
|
|
2943
|
+
}), $(this, "reinit", (r) => {
|
|
3012
2944
|
this.destroy(r), this.init();
|
|
3013
|
-
}),
|
|
2945
|
+
}), $(this, "handleSlotReady", (r) => {
|
|
3014
2946
|
r.slot === this.rewardedSlot && (this.readyEvent = r);
|
|
3015
|
-
}),
|
|
2947
|
+
}), $(this, "handleSlotClosed", (r) => {
|
|
3016
2948
|
var o, s;
|
|
3017
2949
|
if (this.adsContext && r.slot === this.rewardedSlot) {
|
|
3018
2950
|
const a = this.rewardedPayload ? "viewed" : "dismissed";
|
|
@@ -3020,13 +2952,13 @@ class Ii {
|
|
|
3020
2952
|
this.reinit(a);
|
|
3021
2953
|
});
|
|
3022
2954
|
}
|
|
3023
|
-
}),
|
|
2955
|
+
}), $(this, "handleSlotGranted", (r) => {
|
|
3024
2956
|
this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
|
|
3025
|
-
}),
|
|
2957
|
+
}), $(this, "handleSlotRenderEnded", (r) => {
|
|
3026
2958
|
r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
|
|
3027
2959
|
this.reinit("frequencyCapped");
|
|
3028
2960
|
});
|
|
3029
|
-
}),
|
|
2961
|
+
}), $(this, "requestAds", (r) => {
|
|
3030
2962
|
this.withCommand(() => {
|
|
3031
2963
|
if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
|
|
3032
2964
|
this.reinit("notReady");
|
|
@@ -3049,19 +2981,19 @@ class Ii {
|
|
|
3049
2981
|
}, 500);
|
|
3050
2982
|
}
|
|
3051
2983
|
});
|
|
3052
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
2984
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Oi(), this.withCommand(() => {
|
|
3053
2985
|
this.init();
|
|
3054
2986
|
});
|
|
3055
2987
|
}
|
|
3056
2988
|
}
|
|
3057
|
-
function
|
|
3058
|
-
return (e =
|
|
2989
|
+
function V(t, e, i) {
|
|
2990
|
+
return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3059
2991
|
}
|
|
3060
|
-
function
|
|
3061
|
-
var e =
|
|
2992
|
+
function Hr(t) {
|
|
2993
|
+
var e = Wr(t, "string");
|
|
3062
2994
|
return typeof e == "symbol" ? e : e + "";
|
|
3063
2995
|
}
|
|
3064
|
-
function
|
|
2996
|
+
function Wr(t, e) {
|
|
3065
2997
|
if (typeof t != "object" || !t)
|
|
3066
2998
|
return t;
|
|
3067
2999
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3073,31 +3005,31 @@ function Gr(t, e) {
|
|
|
3073
3005
|
}
|
|
3074
3006
|
return (e === "string" ? String : Number)(t);
|
|
3075
3007
|
}
|
|
3076
|
-
class
|
|
3008
|
+
class Jr {
|
|
3077
3009
|
constructor(e, i, n) {
|
|
3078
3010
|
var r = this;
|
|
3079
|
-
|
|
3011
|
+
V(this, "adUnit", void 0), V(this, "project", void 0), V(this, "keyValue", void 0), V(this, "adsContext", null), V(this, "gamingInterstitialSlot", null), V(this, "readyEvent", null), V(this, "isRetrying", !1), V(this, "withCommand", function() {
|
|
3080
3012
|
googletag.cmd.push(...arguments);
|
|
3081
|
-
}),
|
|
3013
|
+
}), V(this, "init", () => {
|
|
3082
3014
|
var o;
|
|
3083
3015
|
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
|
|
3084
3016
|
var a;
|
|
3085
3017
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3086
3018
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3087
|
-
}),
|
|
3019
|
+
}), V(this, "destroy", function(o) {
|
|
3088
3020
|
var a, d;
|
|
3089
3021
|
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
|
|
3090
|
-
}),
|
|
3022
|
+
}), V(this, "reinit", function(o) {
|
|
3091
3023
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3092
3024
|
r.destroy(o, s), r.init();
|
|
3093
|
-
}),
|
|
3025
|
+
}), V(this, "handleSlotReady", (o) => {
|
|
3094
3026
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3095
|
-
}),
|
|
3027
|
+
}), V(this, "handleSlotClosed", (o) => {
|
|
3096
3028
|
var s, a;
|
|
3097
3029
|
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3098
3030
|
this.reinit("viewed");
|
|
3099
3031
|
}));
|
|
3100
|
-
}),
|
|
3032
|
+
}), V(this, "requestAds", (o) => {
|
|
3101
3033
|
this.withCommand(() => {
|
|
3102
3034
|
var s, a, d;
|
|
3103
3035
|
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
|
|
@@ -3110,19 +3042,19 @@ class zr {
|
|
|
3110
3042
|
}), this.isRetrying = !1;
|
|
3111
3043
|
}, 31e3)));
|
|
3112
3044
|
});
|
|
3113
|
-
}),
|
|
3045
|
+
}), Oi(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3114
3046
|
this.init();
|
|
3115
3047
|
});
|
|
3116
3048
|
}
|
|
3117
3049
|
}
|
|
3118
|
-
function
|
|
3119
|
-
return (e =
|
|
3050
|
+
function se(t, e, i) {
|
|
3051
|
+
return (e = Yr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3120
3052
|
}
|
|
3121
|
-
function
|
|
3122
|
-
var e =
|
|
3053
|
+
function Yr(t) {
|
|
3054
|
+
var e = Xr(t, "string");
|
|
3123
3055
|
return typeof e == "symbol" ? e : e + "";
|
|
3124
3056
|
}
|
|
3125
|
-
function
|
|
3057
|
+
function Xr(t, e) {
|
|
3126
3058
|
if (typeof t != "object" || !t)
|
|
3127
3059
|
return t;
|
|
3128
3060
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3134,9 +3066,9 @@ function Kr(t, e) {
|
|
|
3134
3066
|
}
|
|
3135
3067
|
return (e === "string" ? String : Number)(t);
|
|
3136
3068
|
}
|
|
3137
|
-
class
|
|
3069
|
+
class Qr {
|
|
3138
3070
|
constructor(e, i) {
|
|
3139
|
-
|
|
3071
|
+
se(this, "name", "GOOGLE_GPT"), se(this, "context", void 0), se(this, "contextInfo", void 0), se(this, "initParams", void 0), se(this, "rewardAdManager", void 0), se(this, "interstitialManager", void 0), se(this, "insertScript", () => {
|
|
3140
3072
|
const n = "jolibox-google-gpt";
|
|
3141
3073
|
let r = document.getElementById(n);
|
|
3142
3074
|
r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
|
|
@@ -3144,7 +3076,7 @@ class Hr {
|
|
|
3144
3076
|
}
|
|
3145
3077
|
async init() {
|
|
3146
3078
|
const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
3147
|
-
e && (this.rewardAdManager = new
|
|
3079
|
+
e && (this.rewardAdManager = new Ti(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Jr(i, r, this.initParams.keyValue));
|
|
3148
3080
|
}
|
|
3149
3081
|
adConfig(e, i) {
|
|
3150
3082
|
}
|
|
@@ -3215,14 +3147,14 @@ class Hr {
|
|
|
3215
3147
|
}
|
|
3216
3148
|
}
|
|
3217
3149
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return (e =
|
|
3150
|
+
function nt(t, e, i) {
|
|
3151
|
+
return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3220
3152
|
}
|
|
3221
|
-
function
|
|
3222
|
-
var e =
|
|
3153
|
+
function Zr(t) {
|
|
3154
|
+
var e = eo(t, "string");
|
|
3223
3155
|
return typeof e == "symbol" ? e : e + "";
|
|
3224
3156
|
}
|
|
3225
|
-
function
|
|
3157
|
+
function eo(t, e) {
|
|
3226
3158
|
if (typeof t != "object" || !t)
|
|
3227
3159
|
return t;
|
|
3228
3160
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3234,15 +3166,81 @@ function Jr(t, e) {
|
|
|
3234
3166
|
}
|
|
3235
3167
|
return (e === "string" ? String : Number)(t);
|
|
3236
3168
|
}
|
|
3237
|
-
class
|
|
3169
|
+
class to {
|
|
3238
3170
|
constructor(e) {
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3171
|
+
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3172
|
+
nt(this, "context", void 0), nt(this, "placement", "GAME"), nt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3173
|
+
}
|
|
3174
|
+
getLocation() {
|
|
3175
|
+
const e = new URLSearchParams(window.location.search), i = {};
|
|
3176
|
+
return e.forEach((n, r) => {
|
|
3177
|
+
i[r] = n;
|
|
3178
|
+
}), {
|
|
3179
|
+
name: this.placement === "GAME" ? "GamePage" : "DramaPage",
|
|
3180
|
+
params: i
|
|
3181
|
+
};
|
|
3182
|
+
}
|
|
3183
|
+
getDevice() {
|
|
3184
|
+
var e, i, n, r;
|
|
3185
|
+
return {
|
|
3186
|
+
platform: (e = this.contextInfo.platform) != null ? e : ii.WebSDK,
|
|
3187
|
+
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3188
|
+
appVersion: "1.0.0",
|
|
3189
|
+
// mock
|
|
3190
|
+
appId: (i = this.contextInfo.hostAppId) != null ? i : "1",
|
|
3191
|
+
model: (n = this.contextInfo.deviceModel) != null ? n : "UnknownModel",
|
|
3192
|
+
brand: (r = this.contextInfo.deviceBrand) != null ? r : "UnknownBrand",
|
|
3193
|
+
uuid: this.contextInfo.deviceId,
|
|
3194
|
+
jsSdkVersion: "1.0.0",
|
|
3195
|
+
// mock
|
|
3196
|
+
extra: {}
|
|
3197
|
+
};
|
|
3198
|
+
}
|
|
3199
|
+
serialize(e, i) {
|
|
3200
|
+
var o;
|
|
3201
|
+
const r = {
|
|
3202
|
+
protocolVersion: "1.0.0",
|
|
3203
|
+
events: [{
|
|
3204
|
+
name: e,
|
|
3205
|
+
type: ei.System,
|
|
3206
|
+
location: this.getLocation(),
|
|
3207
|
+
target: null,
|
|
3208
|
+
extra: i,
|
|
3209
|
+
timestamp: Date.now(),
|
|
3210
|
+
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3211
|
+
}],
|
|
3212
|
+
device: this.getDevice(),
|
|
3213
|
+
project: ti.WebSDK
|
|
3214
|
+
};
|
|
3215
|
+
return ln(r);
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
function U(t, e, i) {
|
|
3219
|
+
return (e = io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3220
|
+
}
|
|
3221
|
+
function io(t) {
|
|
3222
|
+
var e = no(t, "string");
|
|
3223
|
+
return typeof e == "symbol" ? e : e + "";
|
|
3224
|
+
}
|
|
3225
|
+
function no(t, e) {
|
|
3226
|
+
if (typeof t != "object" || !t)
|
|
3227
|
+
return t;
|
|
3228
|
+
var i = t[Symbol.toPrimitive];
|
|
3229
|
+
if (i !== void 0) {
|
|
3230
|
+
var n = i.call(t, e);
|
|
3231
|
+
if (typeof n != "object")
|
|
3232
|
+
return n;
|
|
3233
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3234
|
+
}
|
|
3235
|
+
return (e === "string" ? String : Number)(t);
|
|
3236
|
+
}
|
|
3237
|
+
class _t {
|
|
3238
|
+
constructor(e) {
|
|
3239
|
+
U(this, "context", void 0), U(this, "adsTrackSerializer", void 0), U(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new to(this.context);
|
|
3243
3240
|
}
|
|
3244
3241
|
getRequestContextData(e) {
|
|
3245
3242
|
var r, o;
|
|
3243
|
+
this.contextInfo = this.context.getContextInfo();
|
|
3246
3244
|
const {
|
|
3247
3245
|
width: i,
|
|
3248
3246
|
height: n
|
|
@@ -3273,14 +3271,84 @@ class Co {
|
|
|
3273
3271
|
objectId: this.contextInfo.objectId
|
|
3274
3272
|
};
|
|
3275
3273
|
}
|
|
3274
|
+
}
|
|
3275
|
+
class Ci {
|
|
3276
|
+
constructor(e, i) {
|
|
3277
|
+
var n = this;
|
|
3278
|
+
U(this, "context", void 0), U(this, "contextInfo", void 0), U(this, "requestContext", void 0), U(this, "pendingAFGAdsInfo", {
|
|
3279
|
+
REWARD: Promise.resolve(null),
|
|
3280
|
+
INTERSTITIAL: Promise.resolve(null)
|
|
3281
|
+
}), U(this, "pendingAFVAdsInfo", Promise.resolve(null)), U(this, "doFetchAdsInfo", async (r) => {
|
|
3282
|
+
const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
|
|
3283
|
+
data: d,
|
|
3284
|
+
code: l
|
|
3285
|
+
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3286
|
+
data: {
|
|
3287
|
+
contextData: this.requestContext.getRequestContextData(o),
|
|
3288
|
+
bizParams: this.requestContext.getRequestBizParams(),
|
|
3289
|
+
adsType: s,
|
|
3290
|
+
testAdsMode: this.contextInfo.testAdsMode,
|
|
3291
|
+
name: a
|
|
3292
|
+
}
|
|
3293
|
+
});
|
|
3294
|
+
return l === "SUCCESS" || l === "BYPASS_ADS" ? {
|
|
3295
|
+
code: l,
|
|
3296
|
+
data: d
|
|
3297
|
+
} : null;
|
|
3298
|
+
}), U(this, "cacheRewardInfo", () => {
|
|
3299
|
+
this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
|
|
3300
|
+
}), U(this, "cacheInterstitialInfo", (r) => {
|
|
3301
|
+
this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
|
|
3302
|
+
}), U(this, "cacheAFVInfo", () => {
|
|
3303
|
+
this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
|
|
3304
|
+
}), U(this, "cacheNextAFGAdsInfo", async (r) => {
|
|
3305
|
+
r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
|
|
3306
|
+
}), U(this, "getAFGAdsInfo", async (r) => {
|
|
3307
|
+
const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
|
|
3308
|
+
return this.cacheNextAFGAdsInfo(r), o;
|
|
3309
|
+
}), U(this, "getAFVAdsInfo", async function() {
|
|
3310
|
+
if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
|
|
3311
|
+
const o = await n.pendingAFVAdsInfo;
|
|
3312
|
+
return n.cacheAFVInfo(), o;
|
|
3313
|
+
} else
|
|
3314
|
+
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3315
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new _t(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
function z(t, e, i) {
|
|
3319
|
+
return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3320
|
+
}
|
|
3321
|
+
function ro(t) {
|
|
3322
|
+
var e = oo(t, "string");
|
|
3323
|
+
return typeof e == "symbol" ? e : e + "";
|
|
3324
|
+
}
|
|
3325
|
+
function oo(t, e) {
|
|
3326
|
+
if (typeof t != "object" || !t)
|
|
3327
|
+
return t;
|
|
3328
|
+
var i = t[Symbol.toPrimitive];
|
|
3329
|
+
if (i !== void 0) {
|
|
3330
|
+
var n = i.call(t, e);
|
|
3331
|
+
if (typeof n != "object")
|
|
3332
|
+
return n;
|
|
3333
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3334
|
+
}
|
|
3335
|
+
return (e === "string" ? String : Number)(t);
|
|
3336
|
+
}
|
|
3337
|
+
class Bo {
|
|
3338
|
+
constructor(e) {
|
|
3339
|
+
if (z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "providers", {}), z(this, "channelPolicy", void 0), z(this, "adsActionDetection", void 0), z(this, "requestContext", void 0), z(this, "adsRequest", void 0), z(this, "initialized", !1), z(this, "adsIsShowing", !1), z(this, "lastAdBreak", void 0), z(this, "initializedTimeStamp", Date.now()), e)
|
|
3340
|
+
this.context = e, this.channelPolicy = new xn(this.context), this.adsActionDetection = new kn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Ci(e), this.requestContext = new _t(e);
|
|
3341
|
+
else
|
|
3342
|
+
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3343
|
+
}
|
|
3276
3344
|
async init(e) {
|
|
3277
3345
|
window.adsbygoogle = window.adsbygoogle || [];
|
|
3278
3346
|
const {
|
|
3279
3347
|
data: i
|
|
3280
3348
|
} = await this.context.httpClient.post("/api/ads/init", {
|
|
3281
3349
|
data: {
|
|
3282
|
-
contextData: this.getRequestContextData("AdsAFGSDKInit"),
|
|
3283
|
-
bizParams: this.getRequestBizParams(),
|
|
3350
|
+
contextData: this.requestContext.getRequestContextData("AdsAFGSDKInit"),
|
|
3351
|
+
bizParams: this.requestContext.getRequestBizParams(),
|
|
3284
3352
|
testAdsMode: this.contextInfo.testAdsMode
|
|
3285
3353
|
}
|
|
3286
3354
|
});
|
|
@@ -3288,34 +3356,34 @@ class Co {
|
|
|
3288
3356
|
for (const n of i)
|
|
3289
3357
|
switch (n.provider) {
|
|
3290
3358
|
case "GOOGLE_GPT": {
|
|
3291
|
-
const r = new
|
|
3359
|
+
const r = new Qr(this.context, n.params);
|
|
3292
3360
|
await r.init(), this.providers[n.provider] = r;
|
|
3293
3361
|
break;
|
|
3294
3362
|
}
|
|
3295
3363
|
case "ADSENSE":
|
|
3296
3364
|
case "ADSENSE_ADMOB": {
|
|
3297
|
-
const r = new
|
|
3365
|
+
const r = new Cn(this.context, n.params);
|
|
3298
3366
|
await r.init(), this.providers[n.provider] = r;
|
|
3299
3367
|
break;
|
|
3300
3368
|
}
|
|
3301
3369
|
case "OKSPIN": {
|
|
3302
|
-
const r = new
|
|
3370
|
+
const r = new Ur(this.context, n.params);
|
|
3303
3371
|
await r.init(), this.providers.OKSPIN = r;
|
|
3304
3372
|
break;
|
|
3305
3373
|
}
|
|
3306
3374
|
case "APPSROCKETS": {
|
|
3307
|
-
const r = new
|
|
3375
|
+
const r = new qr(this.context, n.params);
|
|
3308
3376
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3309
3377
|
break;
|
|
3310
3378
|
}
|
|
3311
3379
|
}
|
|
3312
|
-
this.initialized = !0;
|
|
3380
|
+
this.adsRequest.cacheInterstitialInfo("start"), this.adsRequest.cacheRewardInfo(), this.initialized = !0;
|
|
3313
3381
|
}
|
|
3314
3382
|
adConfig(e) {
|
|
3315
3383
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
3316
3384
|
}
|
|
3317
3385
|
async adBreak(e) {
|
|
3318
|
-
var r, o, s, a, d, l, u, h, c, f;
|
|
3386
|
+
var r, o, s, a, d, l, u, h, c, f, w, g, p, y;
|
|
3319
3387
|
const i = Date.now();
|
|
3320
3388
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
3321
3389
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -3363,20 +3431,43 @@ class Co {
|
|
|
3363
3431
|
return;
|
|
3364
3432
|
}
|
|
3365
3433
|
try {
|
|
3366
|
-
const
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3434
|
+
const v = await this.adsRequest.getAFGAdsInfo(e.type), b = v == null ? void 0 : v.data, T = v == null ? void 0 : v.code;
|
|
3435
|
+
if (T === "BYPASS_ADS") {
|
|
3436
|
+
switch (e.type) {
|
|
3437
|
+
case "preroll": {
|
|
3438
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3439
|
+
breakType: e.type,
|
|
3440
|
+
breakFormat: "interstitial",
|
|
3441
|
+
breakStatus: "viewed"
|
|
3442
|
+
});
|
|
3443
|
+
break;
|
|
3444
|
+
}
|
|
3445
|
+
case "reward": {
|
|
3446
|
+
e.beforeReward(() => {
|
|
3447
|
+
var R, O, A, Oe;
|
|
3448
|
+
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Oe = e.adBreakDone) == null || Oe.call(e, {
|
|
3449
|
+
breakType: e.type,
|
|
3450
|
+
breakName: e.name,
|
|
3451
|
+
breakFormat: "reward",
|
|
3452
|
+
breakStatus: "viewed"
|
|
3453
|
+
});
|
|
3454
|
+
});
|
|
3455
|
+
break;
|
|
3456
|
+
}
|
|
3457
|
+
default: {
|
|
3458
|
+
(u = e.beforeAd) == null || u.call(e), (h = e.afterAd) == null || h.call(e), (c = e.adBreakDone) == null || c.call(e, {
|
|
3459
|
+
breakType: e.type,
|
|
3460
|
+
breakName: e.name,
|
|
3461
|
+
breakFormat: "interstitial",
|
|
3462
|
+
breakStatus: "viewed"
|
|
3463
|
+
});
|
|
3464
|
+
break;
|
|
3465
|
+
}
|
|
3376
3466
|
}
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3467
|
+
return;
|
|
3468
|
+
}
|
|
3469
|
+
if (!b || T !== "SUCCESS") {
|
|
3470
|
+
(f = e.adBreakDone) == null || f.call(e, {
|
|
3380
3471
|
breakType: e.type,
|
|
3381
3472
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3382
3473
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3384,9 +3475,9 @@ class Co {
|
|
|
3384
3475
|
});
|
|
3385
3476
|
return;
|
|
3386
3477
|
} else {
|
|
3387
|
-
const
|
|
3388
|
-
if (
|
|
3389
|
-
(
|
|
3478
|
+
const R = b.sort((Te, Ce) => Te.seq - Ce.seq);
|
|
3479
|
+
if (R.length === 0) {
|
|
3480
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
3390
3481
|
breakType: e.type,
|
|
3391
3482
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3392
3483
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3394,50 +3485,50 @@ class Co {
|
|
|
3394
3485
|
});
|
|
3395
3486
|
return;
|
|
3396
3487
|
}
|
|
3397
|
-
let
|
|
3398
|
-
const
|
|
3399
|
-
for (this.adsActionDetection.adBreakIsShowing = !0;
|
|
3400
|
-
const
|
|
3401
|
-
if (
|
|
3402
|
-
const [
|
|
3403
|
-
var
|
|
3404
|
-
this.adsIsShowing =
|
|
3488
|
+
let O = !0, A = null;
|
|
3489
|
+
const Oe = new mn(this.context);
|
|
3490
|
+
for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
|
|
3491
|
+
const Te = R.shift(), Ce = this.providers[Te.provider];
|
|
3492
|
+
if (Ce) {
|
|
3493
|
+
const [Di, Li] = await Oe.callAdBreakAndContinue(Ce, e, Te, (mt) => {
|
|
3494
|
+
var St;
|
|
3495
|
+
this.adsIsShowing = mt, (St = this.context.eventEmitter) == null || St.emit("isAdShowing", mt);
|
|
3405
3496
|
});
|
|
3406
|
-
|
|
3497
|
+
O = Di, A = Li;
|
|
3407
3498
|
} else
|
|
3408
|
-
|
|
3499
|
+
O = !0, A = {
|
|
3409
3500
|
breakType: e.type,
|
|
3410
3501
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3411
3502
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3412
3503
|
breakStatus: "notReady"
|
|
3413
3504
|
};
|
|
3414
|
-
if (!
|
|
3505
|
+
if (!O)
|
|
3415
3506
|
break;
|
|
3416
3507
|
}
|
|
3417
|
-
|
|
3508
|
+
O && A && ((g = e.adBreakDone) == null || g.call(e, A));
|
|
3418
3509
|
}
|
|
3419
|
-
} catch (
|
|
3420
|
-
(
|
|
3510
|
+
} catch (v) {
|
|
3511
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
3421
3512
|
breakType: e.type,
|
|
3422
3513
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3423
3514
|
breakStatus: "noAdPreloaded"
|
|
3424
3515
|
});
|
|
3425
3516
|
} finally {
|
|
3426
|
-
this.adsIsShowing = !1, (
|
|
3517
|
+
this.adsIsShowing = !1, (y = this.context.eventEmitter) == null || y.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
3427
3518
|
}
|
|
3428
3519
|
}
|
|
3429
3520
|
adUnit(e) {
|
|
3430
3521
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3431
3522
|
}
|
|
3432
3523
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return (e =
|
|
3524
|
+
function Ne(t, e, i) {
|
|
3525
|
+
return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3435
3526
|
}
|
|
3436
|
-
function
|
|
3437
|
-
var e =
|
|
3527
|
+
function so(t) {
|
|
3528
|
+
var e = ao(t, "string");
|
|
3438
3529
|
return typeof e == "symbol" ? e : e + "";
|
|
3439
3530
|
}
|
|
3440
|
-
function
|
|
3531
|
+
function ao(t, e) {
|
|
3441
3532
|
if (typeof t != "object" || !t)
|
|
3442
3533
|
return t;
|
|
3443
3534
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3449,9 +3540,9 @@ function Xr(t, e) {
|
|
|
3449
3540
|
}
|
|
3450
3541
|
return (e === "string" ? String : Number)(t);
|
|
3451
3542
|
}
|
|
3452
|
-
class
|
|
3543
|
+
class lo {
|
|
3453
3544
|
constructor(e) {
|
|
3454
|
-
|
|
3545
|
+
Ne(this, "context", void 0), Ne(this, "currentProvider", void 0), Ne(this, "continueCallback", void 0), Ne(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3455
3546
|
}
|
|
3456
3547
|
get paramsToTrack() {
|
|
3457
3548
|
var e, i;
|
|
@@ -3472,7 +3563,7 @@ class Qr {
|
|
|
3472
3563
|
wrapAdPlaying(e) {
|
|
3473
3564
|
return (i) => {
|
|
3474
3565
|
var n, r;
|
|
3475
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
3566
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), ot() && this.context.track("mmp_ad_impression", {
|
|
3476
3567
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3477
3568
|
ad_format: "AFV",
|
|
3478
3569
|
module: "drama",
|
|
@@ -3500,14 +3591,14 @@ class Qr {
|
|
|
3500
3591
|
});
|
|
3501
3592
|
}
|
|
3502
3593
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return (e =
|
|
3594
|
+
function rt(t, e, i) {
|
|
3595
|
+
return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3505
3596
|
}
|
|
3506
|
-
function
|
|
3507
|
-
var e =
|
|
3597
|
+
function uo(t) {
|
|
3598
|
+
var e = co(t, "string");
|
|
3508
3599
|
return typeof e == "symbol" ? e : e + "";
|
|
3509
3600
|
}
|
|
3510
|
-
function
|
|
3601
|
+
function co(t, e) {
|
|
3511
3602
|
if (typeof t != "object" || !t)
|
|
3512
3603
|
return t;
|
|
3513
3604
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3519,27 +3610,27 @@ function eo(t, e) {
|
|
|
3519
3610
|
}
|
|
3520
3611
|
return (e === "string" ? String : Number)(t);
|
|
3521
3612
|
}
|
|
3522
|
-
class
|
|
3613
|
+
class P extends Error {
|
|
3523
3614
|
constructor(e, i) {
|
|
3524
|
-
super(e.message),
|
|
3615
|
+
super(e.message), rt(this, "name", void 0), rt(this, "type", void 0), rt(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3525
3616
|
}
|
|
3526
3617
|
static from(e, i) {
|
|
3527
3618
|
switch (i) {
|
|
3528
3619
|
case "GOOGLE_IMA_ERROR":
|
|
3529
|
-
return new
|
|
3620
|
+
return new P(e, i);
|
|
3530
3621
|
case "JOLIBOX_IMA_ERROR":
|
|
3531
|
-
return new
|
|
3622
|
+
return new P(e, i);
|
|
3532
3623
|
}
|
|
3533
3624
|
}
|
|
3534
3625
|
}
|
|
3535
3626
|
function I(t, e, i) {
|
|
3536
|
-
return (e =
|
|
3627
|
+
return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3537
3628
|
}
|
|
3538
|
-
function
|
|
3539
|
-
var e =
|
|
3629
|
+
function ho(t) {
|
|
3630
|
+
var e = fo(t, "string");
|
|
3540
3631
|
return typeof e == "symbol" ? e : e + "";
|
|
3541
3632
|
}
|
|
3542
|
-
function
|
|
3633
|
+
function fo(t, e) {
|
|
3543
3634
|
if (typeof t != "object" || !t)
|
|
3544
3635
|
return t;
|
|
3545
3636
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3551,16 +3642,16 @@ function io(t, e) {
|
|
|
3551
3642
|
}
|
|
3552
3643
|
return (e === "string" ? String : Number)(t);
|
|
3553
3644
|
}
|
|
3554
|
-
class
|
|
3645
|
+
class vo {
|
|
3555
3646
|
constructor(e, i, n) {
|
|
3556
3647
|
I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
|
|
3557
|
-
var r, o, s, a, d, l, u, h, c, f,
|
|
3558
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
3648
|
+
var r, o, s, a, d, l, u, h, c, f, w;
|
|
3649
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
3559
3650
|
}), I(this, "requestAds", async (r, o) => {
|
|
3560
3651
|
var u;
|
|
3561
3652
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3562
3653
|
var c;
|
|
3563
|
-
return (c = r.onAdError) == null ? void 0 : c.call(r,
|
|
3654
|
+
return (c = r.onAdError) == null ? void 0 : c.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
|
|
3564
3655
|
}, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
|
|
3565
3656
|
const s = () => {
|
|
3566
3657
|
var h;
|
|
@@ -3616,9 +3707,9 @@ class no {
|
|
|
3616
3707
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3617
3708
|
}
|
|
3618
3709
|
}
|
|
3619
|
-
var
|
|
3620
|
-
const
|
|
3621
|
-
const t =
|
|
3710
|
+
var Ve = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Ve || {});
|
|
3711
|
+
const go = () => {
|
|
3712
|
+
const t = E(!1), e = E(!1), i = E(null), n = It(), r = It();
|
|
3622
3713
|
return {
|
|
3623
3714
|
visible: t,
|
|
3624
3715
|
canRetry: e,
|
|
@@ -3626,8 +3717,8 @@ const ro = () => {
|
|
|
3626
3717
|
videoRef: n,
|
|
3627
3718
|
adContainerRef: r
|
|
3628
3719
|
};
|
|
3629
|
-
},
|
|
3630
|
-
${
|
|
3720
|
+
}, yo = ge`
|
|
3721
|
+
${F}
|
|
3631
3722
|
position: fixed;
|
|
3632
3723
|
left: 0;
|
|
3633
3724
|
top: 0;
|
|
@@ -3642,7 +3733,7 @@ const ro = () => {
|
|
|
3642
3733
|
}
|
|
3643
3734
|
|
|
3644
3735
|
.ads-wrapper {
|
|
3645
|
-
${
|
|
3736
|
+
${F}
|
|
3646
3737
|
position: relative;
|
|
3647
3738
|
width: 100%;
|
|
3648
3739
|
height: 100%;
|
|
@@ -3665,7 +3756,7 @@ const ro = () => {
|
|
|
3665
3756
|
}
|
|
3666
3757
|
|
|
3667
3758
|
.retry-button {
|
|
3668
|
-
${
|
|
3759
|
+
${F}
|
|
3669
3760
|
position: absolute;
|
|
3670
3761
|
width: 100%;
|
|
3671
3762
|
height: 100%;
|
|
@@ -3675,7 +3766,7 @@ const ro = () => {
|
|
|
3675
3766
|
cursor: pointer;
|
|
3676
3767
|
}
|
|
3677
3768
|
}
|
|
3678
|
-
`,
|
|
3769
|
+
`, wo = (t) => {
|
|
3679
3770
|
let {
|
|
3680
3771
|
onReady: e,
|
|
3681
3772
|
state: i
|
|
@@ -3687,14 +3778,14 @@ const ro = () => {
|
|
|
3687
3778
|
videoRef: s,
|
|
3688
3779
|
adContainerRef: a
|
|
3689
3780
|
} = i, d = () => {
|
|
3690
|
-
r.value && (r.value(),
|
|
3781
|
+
r.value && (r.value(), D(() => {
|
|
3691
3782
|
r.value = null, o.value = !1;
|
|
3692
3783
|
}));
|
|
3693
3784
|
};
|
|
3694
|
-
return
|
|
3785
|
+
return He(() => {
|
|
3695
3786
|
e();
|
|
3696
3787
|
}, [e]), _("div", {
|
|
3697
|
-
className:
|
|
3788
|
+
className: yo,
|
|
3698
3789
|
"data-visible": n.value,
|
|
3699
3790
|
children: _("div", {
|
|
3700
3791
|
className: "ads-wrapper",
|
|
@@ -3730,14 +3821,14 @@ const ro = () => {
|
|
|
3730
3821
|
})
|
|
3731
3822
|
});
|
|
3732
3823
|
};
|
|
3733
|
-
function
|
|
3734
|
-
return (e =
|
|
3824
|
+
function te(t, e, i) {
|
|
3825
|
+
return (e = po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3735
3826
|
}
|
|
3736
|
-
function
|
|
3737
|
-
var e =
|
|
3827
|
+
function po(t) {
|
|
3828
|
+
var e = bo(t, "string");
|
|
3738
3829
|
return typeof e == "symbol" ? e : e + "";
|
|
3739
3830
|
}
|
|
3740
|
-
function
|
|
3831
|
+
function bo(t, e) {
|
|
3741
3832
|
if (typeof t != "object" || !t)
|
|
3742
3833
|
return t;
|
|
3743
3834
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3749,9 +3840,9 @@ function lo(t, e) {
|
|
|
3749
3840
|
}
|
|
3750
3841
|
return (e === "string" ? String : Number)(t);
|
|
3751
3842
|
}
|
|
3752
|
-
class
|
|
3843
|
+
class Ao {
|
|
3753
3844
|
constructor(e) {
|
|
3754
|
-
|
|
3845
|
+
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state", go()), te(this, "init", async (i) => {
|
|
3755
3846
|
if (this.initialized)
|
|
3756
3847
|
return;
|
|
3757
3848
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3767,19 +3858,19 @@ class uo {
|
|
|
3767
3858
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3768
3859
|
}
|
|
3769
3860
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3770
|
-
|
|
3861
|
+
oe(_(wo, {
|
|
3771
3862
|
state: this.state,
|
|
3772
3863
|
onReady: () => {
|
|
3773
|
-
this.ima = new
|
|
3864
|
+
this.ima = new vo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3774
3865
|
}
|
|
3775
3866
|
}), this.adsOverlay);
|
|
3776
3867
|
}), this.initialized = !0;
|
|
3777
|
-
}),
|
|
3778
|
-
this.adsOverlay && (
|
|
3779
|
-
}),
|
|
3868
|
+
}), te(this, "destroy", () => {
|
|
3869
|
+
this.adsOverlay && (oe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
3870
|
+
}), te(this, "requestAd", (i, n) => {
|
|
3780
3871
|
var u;
|
|
3781
3872
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3782
|
-
const h =
|
|
3873
|
+
const h = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3783
3874
|
(u = i.onAdError) == null || u.call(i, h);
|
|
3784
3875
|
return;
|
|
3785
3876
|
}
|
|
@@ -3792,9 +3883,9 @@ class uo {
|
|
|
3792
3883
|
r = !0;
|
|
3793
3884
|
let c = !1;
|
|
3794
3885
|
switch (h.raw.getErrorCode()) {
|
|
3795
|
-
case
|
|
3796
|
-
case
|
|
3797
|
-
case
|
|
3886
|
+
case Ve.AUTOPLAY_DISALLOWED:
|
|
3887
|
+
case Ve.VIDEO_PLAY_ERROR:
|
|
3888
|
+
case Ve.ADS_REQUEST_NETWORK_ERROR: {
|
|
3798
3889
|
c = !0;
|
|
3799
3890
|
break;
|
|
3800
3891
|
}
|
|
@@ -3804,15 +3895,15 @@ class uo {
|
|
|
3804
3895
|
}
|
|
3805
3896
|
}
|
|
3806
3897
|
if (!c)
|
|
3807
|
-
this.ima.destroy(),
|
|
3898
|
+
this.ima.destroy(), D(() => {
|
|
3808
3899
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3809
3900
|
}), (f = i.onAdError) == null || f.call(i, h);
|
|
3810
3901
|
else {
|
|
3811
|
-
const
|
|
3902
|
+
const w = () => {
|
|
3812
3903
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3813
3904
|
};
|
|
3814
|
-
|
|
3815
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3905
|
+
D(() => {
|
|
3906
|
+
this.state.canRetry.value = !0, this.state.retry.value = w;
|
|
3816
3907
|
});
|
|
3817
3908
|
}
|
|
3818
3909
|
}, a = (h) => {
|
|
@@ -3825,24 +3916,24 @@ class uo {
|
|
|
3825
3916
|
l.onAdCompleted = o, l.onAdError = s, l.onAdLoaded = a, l.onAdPlaying = d, this.ima.requestAds(l, n), window.setTimeout(() => {
|
|
3826
3917
|
var h, c;
|
|
3827
3918
|
if (!r) {
|
|
3828
|
-
|
|
3919
|
+
D(() => {
|
|
3829
3920
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3830
3921
|
});
|
|
3831
|
-
const f =
|
|
3922
|
+
const f = P.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
|
|
3832
3923
|
(h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
|
|
3833
3924
|
}
|
|
3834
3925
|
}, 5e3);
|
|
3835
3926
|
}), this.context = e;
|
|
3836
3927
|
}
|
|
3837
3928
|
}
|
|
3838
|
-
function
|
|
3839
|
-
return (e =
|
|
3929
|
+
function J(t, e, i) {
|
|
3930
|
+
return (e = _o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3840
3931
|
}
|
|
3841
|
-
function
|
|
3842
|
-
var e =
|
|
3932
|
+
function _o(t) {
|
|
3933
|
+
var e = mo(t, "string");
|
|
3843
3934
|
return typeof e == "symbol" ? e : e + "";
|
|
3844
3935
|
}
|
|
3845
|
-
function
|
|
3936
|
+
function mo(t, e) {
|
|
3846
3937
|
if (typeof t != "object" || !t)
|
|
3847
3938
|
return t;
|
|
3848
3939
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3854,24 +3945,24 @@ function ho(t, e) {
|
|
|
3854
3945
|
}
|
|
3855
3946
|
return (e === "string" ? String : Number)(t);
|
|
3856
3947
|
}
|
|
3857
|
-
class
|
|
3948
|
+
class So {
|
|
3858
3949
|
constructor(e) {
|
|
3859
|
-
|
|
3950
|
+
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state", ki()), J(this, "init", async (i) => {
|
|
3860
3951
|
var n;
|
|
3861
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
3952
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Ii, {
|
|
3862
3953
|
state: this.state
|
|
3863
3954
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3864
|
-
}),
|
|
3955
|
+
}), J(this, "destroy", () => {
|
|
3865
3956
|
var i;
|
|
3866
|
-
this.adsOverlay && (
|
|
3867
|
-
}),
|
|
3957
|
+
this.adsOverlay && (oe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3958
|
+
}), J(this, "requestAd", (i, n) => {
|
|
3868
3959
|
var s, a, d, l;
|
|
3869
3960
|
if (!this.adsOverlay || !this.initialized) {
|
|
3870
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3961
|
+
(s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3871
3962
|
return;
|
|
3872
3963
|
}
|
|
3873
3964
|
if (this.adsIsShowing) {
|
|
3874
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3965
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3875
3966
|
return;
|
|
3876
3967
|
}
|
|
3877
3968
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3882,21 +3973,21 @@ class fo {
|
|
|
3882
3973
|
var u;
|
|
3883
3974
|
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
3884
3975
|
};
|
|
3885
|
-
this.adsIsShowing = !0,
|
|
3976
|
+
this.adsIsShowing = !0, D(() => {
|
|
3886
3977
|
var u;
|
|
3887
3978
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
3888
3979
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
3889
3980
|
}), this.context = e;
|
|
3890
3981
|
}
|
|
3891
3982
|
}
|
|
3892
|
-
function
|
|
3893
|
-
return (e =
|
|
3983
|
+
function H(t, e, i) {
|
|
3984
|
+
return (e = Eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3894
3985
|
}
|
|
3895
|
-
function
|
|
3896
|
-
var e =
|
|
3986
|
+
function Eo(t) {
|
|
3987
|
+
var e = ko(t, "string");
|
|
3897
3988
|
return typeof e == "symbol" ? e : e + "";
|
|
3898
3989
|
}
|
|
3899
|
-
function
|
|
3990
|
+
function ko(t, e) {
|
|
3900
3991
|
if (typeof t != "object" || !t)
|
|
3901
3992
|
return t;
|
|
3902
3993
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3908,28 +3999,28 @@ function go(t, e) {
|
|
|
3908
3999
|
}
|
|
3909
4000
|
return (e === "string" ? String : Number)(t);
|
|
3910
4001
|
}
|
|
3911
|
-
class
|
|
4002
|
+
class Io {
|
|
3912
4003
|
constructor(e) {
|
|
3913
|
-
|
|
4004
|
+
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state", Ri()), H(this, "processUrl", (i) => {
|
|
3914
4005
|
var s;
|
|
3915
4006
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3916
4007
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
|
|
3917
|
-
}),
|
|
4008
|
+
}), H(this, "init", async (i) => {
|
|
3918
4009
|
var n;
|
|
3919
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"),
|
|
4010
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(xi, {
|
|
3920
4011
|
state: this.state
|
|
3921
4012
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3922
|
-
}),
|
|
4013
|
+
}), H(this, "destroy", () => {
|
|
3923
4014
|
var i;
|
|
3924
|
-
this.adsOverlay && (
|
|
3925
|
-
}),
|
|
4015
|
+
this.adsOverlay && (oe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
4016
|
+
}), H(this, "requestAd", (i, n) => {
|
|
3926
4017
|
var d, l, u, h;
|
|
3927
4018
|
if (!this.adsOverlay || !this.initialized) {
|
|
3928
|
-
(d = i.onAdError) == null || d.call(i,
|
|
4019
|
+
(d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3929
4020
|
return;
|
|
3930
4021
|
}
|
|
3931
4022
|
if (this.adsIsShowing) {
|
|
3932
|
-
(l = i.onAdError) == null || l.call(i,
|
|
4023
|
+
(l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3933
4024
|
return;
|
|
3934
4025
|
}
|
|
3935
4026
|
(u = i.onAdRequested) == null || u.call(i);
|
|
@@ -3940,26 +4031,26 @@ class yo {
|
|
|
3940
4031
|
var c;
|
|
3941
4032
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3942
4033
|
}, s = (c) => {
|
|
3943
|
-
var f,
|
|
3944
|
-
(
|
|
4034
|
+
var f, w;
|
|
4035
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
3945
4036
|
}, a = () => {
|
|
3946
4037
|
var c;
|
|
3947
|
-
(c = i.onAdError) == null || c.call(i,
|
|
4038
|
+
(c = i.onAdError) == null || c.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3948
4039
|
};
|
|
3949
|
-
this.adsIsShowing = !0,
|
|
4040
|
+
this.adsIsShowing = !0, D(() => {
|
|
3950
4041
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
|
|
3951
4042
|
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
3952
4043
|
}), this.context = e;
|
|
3953
4044
|
}
|
|
3954
4045
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return (e =
|
|
4046
|
+
function ie(t, e, i) {
|
|
4047
|
+
return (e = Ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3957
4048
|
}
|
|
3958
|
-
function
|
|
3959
|
-
var e =
|
|
4049
|
+
function Ro(t) {
|
|
4050
|
+
var e = xo(t, "string");
|
|
3960
4051
|
return typeof e == "symbol" ? e : e + "";
|
|
3961
4052
|
}
|
|
3962
|
-
function
|
|
4053
|
+
function xo(t, e) {
|
|
3963
4054
|
if (typeof t != "object" || !t)
|
|
3964
4055
|
return t;
|
|
3965
4056
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3971,27 +4062,27 @@ function wo(t, e) {
|
|
|
3971
4062
|
}
|
|
3972
4063
|
return (e === "string" ? String : Number)(t);
|
|
3973
4064
|
}
|
|
3974
|
-
class
|
|
4065
|
+
class Oo {
|
|
3975
4066
|
constructor(e) {
|
|
3976
|
-
|
|
4067
|
+
ie(this, "name", "GOOGLE_GPT"), ie(this, "context", void 0), ie(this, "contextInfo", void 0), ie(this, "rewardAdManager", void 0), ie(this, "init", async (i) => {
|
|
3977
4068
|
if (!this.rewardAdManager) {
|
|
3978
4069
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
3979
|
-
this.rewardAdManager = new
|
|
4070
|
+
this.rewardAdManager = new Ti(n, o, i.params.keyValue);
|
|
3980
4071
|
}
|
|
3981
|
-
}),
|
|
4072
|
+
}), ie(this, "insertScript", () => {
|
|
3982
4073
|
const i = "jolibox-google-gpt";
|
|
3983
4074
|
let n = document.getElementById(i);
|
|
3984
4075
|
n || (n = window.document.createElement("script"), n.id = i, n.async = !0, n.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", n.crossOrigin = "anonymous", document.head.appendChild(n));
|
|
3985
|
-
}),
|
|
4076
|
+
}), ie(this, "destroy", () => {
|
|
3986
4077
|
var i;
|
|
3987
4078
|
(i = this.rewardAdManager) == null || i.withCommand(() => {
|
|
3988
4079
|
var n;
|
|
3989
4080
|
(n = this.rewardAdManager) == null || n.destroy("ignored");
|
|
3990
4081
|
});
|
|
3991
|
-
}),
|
|
4082
|
+
}), ie(this, "requestAd", (i, n) => {
|
|
3992
4083
|
var r;
|
|
3993
4084
|
if (!this.rewardAdManager) {
|
|
3994
|
-
(r = i.onAdError) == null || r.call(i,
|
|
4085
|
+
(r = i.onAdError) == null || r.call(i, P.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3995
4086
|
return;
|
|
3996
4087
|
}
|
|
3997
4088
|
this.rewardAdManager.requestAds({
|
|
@@ -4014,7 +4105,7 @@ class bo {
|
|
|
4014
4105
|
case "ignored":
|
|
4015
4106
|
break;
|
|
4016
4107
|
default: {
|
|
4017
|
-
(a = i.onAdError) == null || a.call(i,
|
|
4108
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error(o), "JOLIBOX_IMA_ERROR"));
|
|
4018
4109
|
break;
|
|
4019
4110
|
}
|
|
4020
4111
|
}
|
|
@@ -4023,14 +4114,14 @@ class bo {
|
|
|
4023
4114
|
}), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
|
|
4024
4115
|
}
|
|
4025
4116
|
}
|
|
4026
|
-
function
|
|
4027
|
-
return (e =
|
|
4117
|
+
function de(t, e, i) {
|
|
4118
|
+
return (e = To(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4028
4119
|
}
|
|
4029
|
-
function
|
|
4030
|
-
var e =
|
|
4120
|
+
function To(t) {
|
|
4121
|
+
var e = Co(t, "string");
|
|
4031
4122
|
return typeof e == "symbol" ? e : e + "";
|
|
4032
4123
|
}
|
|
4033
|
-
function
|
|
4124
|
+
function Co(t, e) {
|
|
4034
4125
|
if (typeof t != "object" || !t)
|
|
4035
4126
|
return t;
|
|
4036
4127
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4042,53 +4133,24 @@ function Ao(t, e) {
|
|
|
4042
4133
|
}
|
|
4043
4134
|
return (e === "string" ? String : Number)(t);
|
|
4044
4135
|
}
|
|
4045
|
-
class
|
|
4136
|
+
class Vo {
|
|
4046
4137
|
constructor(e) {
|
|
4047
|
-
if (
|
|
4048
|
-
this.context = e, this.
|
|
4138
|
+
if (de(this, "context", void 0), de(this, "contextInfo", void 0), de(this, "providers", {}), de(this, "requestContext", void 0), de(this, "adsRequest", void 0), de(this, "initialized", !1), e)
|
|
4139
|
+
this.context = e, this.requestContext = new _t(e), this.adsRequest = new Ci(e, {
|
|
4140
|
+
reward: !1,
|
|
4141
|
+
interstitial: !1,
|
|
4142
|
+
afv: !1
|
|
4143
|
+
}), this.contextInfo = this.context.getContextInfo();
|
|
4049
4144
|
else
|
|
4050
4145
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
4051
4146
|
}
|
|
4052
|
-
getRequestContextData(e) {
|
|
4053
|
-
var r, o;
|
|
4054
|
-
this.contextInfo = this.context.getContextInfo();
|
|
4055
|
-
const {
|
|
4056
|
-
width: i,
|
|
4057
|
-
height: n
|
|
4058
|
-
} = this.context.getWindowInfo();
|
|
4059
|
-
return {
|
|
4060
|
-
report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
|
|
4061
|
-
sessionId: this.contextInfo.sessionId,
|
|
4062
|
-
objectType: this.contextInfo.objectType,
|
|
4063
|
-
objectId: this.contextInfo.objectId,
|
|
4064
|
-
testAdsMode: this.contextInfo.testAdsMode
|
|
4065
|
-
})),
|
|
4066
|
-
osType: this.contextInfo.osType,
|
|
4067
|
-
runtimeType: this.contextInfo.runtimeType,
|
|
4068
|
-
sessionId: this.contextInfo.sessionId,
|
|
4069
|
-
deviceId: this.contextInfo.deviceId,
|
|
4070
|
-
adId: this.contextInfo.adId,
|
|
4071
|
-
deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
|
|
4072
|
-
deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
|
|
4073
|
-
dimension: {
|
|
4074
|
-
width: i,
|
|
4075
|
-
height: n
|
|
4076
|
-
}
|
|
4077
|
-
};
|
|
4078
|
-
}
|
|
4079
|
-
getRequestBizParams() {
|
|
4080
|
-
return {
|
|
4081
|
-
objectType: this.contextInfo.objectType,
|
|
4082
|
-
objectId: this.contextInfo.objectId
|
|
4083
|
-
};
|
|
4084
|
-
}
|
|
4085
4147
|
async init() {
|
|
4086
4148
|
const {
|
|
4087
4149
|
data: e
|
|
4088
4150
|
} = await this.context.httpClient.post("/api/ads/init", {
|
|
4089
4151
|
data: {
|
|
4090
|
-
contextData: this.getRequestContextData("AdsAFVSDKInit"),
|
|
4091
|
-
bizParams: this.getRequestBizParams(),
|
|
4152
|
+
contextData: this.requestContext.getRequestContextData("AdsAFVSDKInit"),
|
|
4153
|
+
bizParams: this.requestContext.getRequestBizParams(),
|
|
4092
4154
|
testAdsMode: this.contextInfo.testAdsMode
|
|
4093
4155
|
}
|
|
4094
4156
|
});
|
|
@@ -4096,27 +4158,27 @@ class Do {
|
|
|
4096
4158
|
for (const i of e)
|
|
4097
4159
|
switch (i.provider) {
|
|
4098
4160
|
case "GOOGLE_GPT": {
|
|
4099
|
-
const n = new
|
|
4161
|
+
const n = new Oo(this.context);
|
|
4100
4162
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4101
4163
|
break;
|
|
4102
4164
|
}
|
|
4103
4165
|
case "GOOGLE_IMA": {
|
|
4104
|
-
const n = new
|
|
4166
|
+
const n = new Ao(this.context);
|
|
4105
4167
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4106
4168
|
break;
|
|
4107
4169
|
}
|
|
4108
4170
|
case "OKSPIN": {
|
|
4109
|
-
const n = new
|
|
4171
|
+
const n = new So(this.context);
|
|
4110
4172
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4111
4173
|
break;
|
|
4112
4174
|
}
|
|
4113
4175
|
case "APPSROCKETS": {
|
|
4114
|
-
const n = new
|
|
4176
|
+
const n = new Io(this.context);
|
|
4115
4177
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4116
4178
|
break;
|
|
4117
4179
|
}
|
|
4118
4180
|
}
|
|
4119
|
-
this.initialized = !0;
|
|
4181
|
+
this.adsRequest.cacheAFVInfo(), this.initialized = !0;
|
|
4120
4182
|
}
|
|
4121
4183
|
/**
|
|
4122
4184
|
* Destroy all providers and reset the initialized state.
|
|
@@ -4128,65 +4190,59 @@ class Do {
|
|
|
4128
4190
|
this.initialized = !1;
|
|
4129
4191
|
}
|
|
4130
4192
|
async requestAd(e) {
|
|
4131
|
-
var i, n, r, o, s, a, d;
|
|
4193
|
+
var i, n, r, o, s, a, d, l, u, h, c;
|
|
4132
4194
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
4133
|
-
const
|
|
4134
|
-
(n = e.onAdError) == null || n.call(e,
|
|
4195
|
+
const f = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
4196
|
+
(n = e.onAdError) == null || n.call(e, f);
|
|
4135
4197
|
return;
|
|
4136
4198
|
}
|
|
4137
4199
|
try {
|
|
4138
|
-
const
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
} = await this.context.httpClient.post("/api/ads/info", {
|
|
4142
|
-
data: {
|
|
4143
|
-
contextData: this.getRequestContextData("AdsAFVSDKRequest"),
|
|
4144
|
-
bizParams: this.getRequestBizParams(),
|
|
4145
|
-
testAdsMode: this.contextInfo.testAdsMode,
|
|
4146
|
-
adsType: "REWARD_INTERSTITIAL"
|
|
4147
|
-
}
|
|
4148
|
-
});
|
|
4149
|
-
if (u !== "SUCCESS") {
|
|
4150
|
-
const h = C.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4151
|
-
(r = e.onAdError) == null || r.call(e, h);
|
|
4200
|
+
const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, g = f == null ? void 0 : f.data;
|
|
4201
|
+
if (w === "BYPASS_ADS") {
|
|
4202
|
+
(r = e.onAdRequested) == null || r.call(e), (o = e.onAdLoaded) == null || o.call(e, void 0), (s = e.onAdPlaying) == null || s.call(e, void 0), (a = e.onAdCompleted) == null || a.call(e, void 0);
|
|
4152
4203
|
return;
|
|
4153
|
-
}
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4204
|
+
}
|
|
4205
|
+
if (g) {
|
|
4206
|
+
const p = g == null ? void 0 : g.sort((T, R) => T.seq - R.seq);
|
|
4207
|
+
if (p.length === 0) {
|
|
4208
|
+
const T = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
4209
|
+
(l = e.onAdError) == null || l.call(e, T);
|
|
4158
4210
|
return;
|
|
4159
4211
|
}
|
|
4160
|
-
let
|
|
4161
|
-
const
|
|
4162
|
-
for (;
|
|
4163
|
-
const
|
|
4164
|
-
if (
|
|
4165
|
-
const [
|
|
4166
|
-
|
|
4212
|
+
let y = !0, v = null;
|
|
4213
|
+
const b = new lo(this.context);
|
|
4214
|
+
for (; p.length > 0; ) {
|
|
4215
|
+
const T = p.shift(), R = this.providers[T.provider];
|
|
4216
|
+
if (R) {
|
|
4217
|
+
const [O, A] = await b.callAdRequestAndContinue(R, e, T);
|
|
4218
|
+
y = O, v = A;
|
|
4167
4219
|
} else
|
|
4168
|
-
|
|
4169
|
-
if (!
|
|
4220
|
+
y = !0, v = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
4221
|
+
if (!y)
|
|
4170
4222
|
break;
|
|
4171
4223
|
}
|
|
4172
|
-
|
|
4224
|
+
y && v && ((u = e.onAdError) == null || u.call(e, v));
|
|
4225
|
+
} else {
|
|
4226
|
+
const p = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4227
|
+
(d = e.onAdError) == null || d.call(e, p);
|
|
4228
|
+
return;
|
|
4173
4229
|
}
|
|
4174
|
-
} catch (
|
|
4175
|
-
const
|
|
4176
|
-
(
|
|
4230
|
+
} catch (f) {
|
|
4231
|
+
const w = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
4232
|
+
(h = e.onAdError) == null || h.call(e, w);
|
|
4177
4233
|
} finally {
|
|
4178
|
-
(
|
|
4234
|
+
(c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1);
|
|
4179
4235
|
}
|
|
4180
4236
|
}
|
|
4181
4237
|
}
|
|
4182
|
-
function
|
|
4183
|
-
return (e =
|
|
4238
|
+
function le(t, e, i) {
|
|
4239
|
+
return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4184
4240
|
}
|
|
4185
|
-
function
|
|
4186
|
-
var e =
|
|
4241
|
+
function Do(t) {
|
|
4242
|
+
var e = Lo(t, "string");
|
|
4187
4243
|
return typeof e == "symbol" ? e : e + "";
|
|
4188
4244
|
}
|
|
4189
|
-
function
|
|
4245
|
+
function Lo(t, e) {
|
|
4190
4246
|
if (typeof t != "object" || !t)
|
|
4191
4247
|
return t;
|
|
4192
4248
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4198,21 +4254,21 @@ function So(t, e) {
|
|
|
4198
4254
|
}
|
|
4199
4255
|
return (e === "string" ? String : Number)(t);
|
|
4200
4256
|
}
|
|
4201
|
-
class
|
|
4257
|
+
class Go extends Error {
|
|
4202
4258
|
constructor(e) {
|
|
4203
|
-
super(e),
|
|
4259
|
+
super(e), le(this, "name", void 0), le(this, "message", void 0), le(this, "errMsg", void 0), le(this, "code", void 0), le(this, "data", void 0), le(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4204
4260
|
}
|
|
4205
4261
|
}
|
|
4206
4262
|
export {
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4263
|
+
P as AFVWrappedError,
|
|
4264
|
+
Cn as GoogleAdSenseProvider,
|
|
4265
|
+
Ao as GoogleIMAProvider,
|
|
4266
|
+
Jr as InterstitialAdManager,
|
|
4267
|
+
Bo as JoliboxAdsForGame,
|
|
4268
|
+
Vo as JoliboxAdsForVideo,
|
|
4269
|
+
Ur as OKSpinForGameProvider,
|
|
4270
|
+
So as OKSpinForVideoProvider,
|
|
4271
|
+
Go as ResponseError,
|
|
4272
|
+
Ti as RewardAdManager,
|
|
4273
|
+
Oi as initGPTServices
|
|
4218
4274
|
};
|