@jolibox/ads 1.1.49 → 1.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +662 -650
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var kt = Object.getOwnPropertySymbols;
|
|
2
|
+
var Ni = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var It = (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
|
+
Ni.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && kt)
|
|
8
|
+
for (var n of kt(t))
|
|
9
|
+
e.indexOf(n) < 0 && Mi.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 fe, Component as $i, isValidElement as ji } from "preact";
|
|
13
|
+
import { useRef as Fi, useLayoutEffect as Ui, useEffect as We, useMemo as Bi, useState as Xt, useCallback as Vi, render as oe, createRef as Rt } from "preact/compat";
|
|
14
|
+
var Qt = Object.defineProperty, Gi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, zi = Object.prototype.propertyIsEnumerable, Ot = (t, e, i) => e in t ? Qt(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, Hi = (t, e) => {
|
|
20
20
|
for (var i in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var i of
|
|
24
|
-
|
|
21
|
+
Ki.call(e, i) && Ot(t, i, e[i]);
|
|
22
|
+
if (xt)
|
|
23
|
+
for (var i of xt(e))
|
|
24
|
+
zi.call(e, i) && Ot(t, i, e[i]);
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
26
|
+
}, Wi = (t, e) => Gi(t, qi(e)), Ji = (t, e) => {
|
|
27
27
|
for (var i in e)
|
|
28
|
-
|
|
28
|
+
Qt(t, i, {
|
|
29
29
|
get: e[i],
|
|
30
30
|
enumerable: !0
|
|
31
31
|
});
|
|
32
|
-
},
|
|
32
|
+
}, Zt = (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
|
+
}, Yi = (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 Xi(t) {
|
|
82
82
|
return new Promise((e) => {
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
e();
|
|
85
85
|
}, t);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function Xi(t) {
|
|
89
|
-
return typeof t == "string";
|
|
90
|
-
}
|
|
91
88
|
function Qi(t) {
|
|
92
|
-
return typeof t == "
|
|
89
|
+
return typeof t == "string";
|
|
93
90
|
}
|
|
94
91
|
function Zi(t) {
|
|
95
|
-
return
|
|
92
|
+
return typeof t == "undefined";
|
|
96
93
|
}
|
|
97
94
|
function en(t) {
|
|
95
|
+
return Zi(t) || t === null;
|
|
96
|
+
}
|
|
97
|
+
function tn(t) {
|
|
98
98
|
return typeof t == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ei(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 Zt(t) {
|
|
|
105
105
|
};
|
|
106
106
|
return n.prototype = e.prototype, n;
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var nn = ((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))(nn || {});
|
|
109
|
+
function be(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 rn = {
|
|
116
|
+
log: be("log"),
|
|
117
|
+
warn: be("warn"),
|
|
118
|
+
info: be("info"),
|
|
119
|
+
error: be("error"),
|
|
120
|
+
debug: be("debug")
|
|
121
121
|
};
|
|
122
122
|
Object.assign(globalThis, {
|
|
123
|
-
logger:
|
|
123
|
+
logger: rn
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
globalThis[Ot] || (globalThis[Ot] = rn);
|
|
127
|
-
var Tt = Symbol.for("Jolibox.canIUseMap.native"), on = {};
|
|
125
|
+
var Tt = Symbol.for("Jolibox.canIUseMap"), on = {};
|
|
128
126
|
globalThis[Tt] || (globalThis[Tt] = on);
|
|
129
|
-
var
|
|
130
|
-
|
|
127
|
+
var Ct = Symbol.for("Jolibox.canIUseMap.native"), sn = {};
|
|
128
|
+
globalThis[Ct] || (globalThis[Ct] = sn);
|
|
129
|
+
var ti = ((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))(ti || {}), ii = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ii || {}), ni = ((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))(ni || {}), Dt = ["name", "params"], an = ["name", "type", "location", "target", "extra", "timestamp", "userId"], dn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
130
|
+
function $e(t, e) {
|
|
131
131
|
return e.map((i) => {
|
|
132
132
|
if (i === "params" && t[i]) {
|
|
133
133
|
let n = t[i];
|
|
@@ -136,18 +136,30 @@ function Me(t, e) {
|
|
|
136
136
|
return t[i];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e = t.location ?
|
|
141
|
-
return
|
|
139
|
+
function ln(t) {
|
|
140
|
+
let e = t.location ? $e(t.location, Dt) : null, i = t.target ? $e(t.target, Dt) : null;
|
|
141
|
+
return $e(Wi(Hi({}, t), {
|
|
142
142
|
location: e,
|
|
143
143
|
target: i
|
|
144
|
-
}),
|
|
144
|
+
}), an);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let e = t.events.map((n) =>
|
|
146
|
+
function un(t) {
|
|
147
|
+
let e = t.events.map((n) => ln(n)), i = $e(t.device, dn);
|
|
148
148
|
return [t.protocolVersion, e, i, t.project];
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function cn() {
|
|
151
|
+
if (typeof window == "undefined")
|
|
152
|
+
return {
|
|
153
|
+
getItem: () => null,
|
|
154
|
+
setItem: () => {
|
|
155
|
+
},
|
|
156
|
+
removeItem: () => {
|
|
157
|
+
},
|
|
158
|
+
clear: () => {
|
|
159
|
+
},
|
|
160
|
+
length: 0,
|
|
161
|
+
key: () => null
|
|
162
|
+
};
|
|
151
163
|
try {
|
|
152
164
|
if (window.__joliboxLocalStorage__)
|
|
153
165
|
return window.__joliboxLocalStorage__;
|
|
@@ -168,16 +180,16 @@ function un() {
|
|
|
168
180
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
169
181
|
}
|
|
170
182
|
}
|
|
171
|
-
|
|
172
|
-
var
|
|
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
|
|
183
|
+
cn();
|
|
184
|
+
var ue = typeof window == "undefined", st = () => !ue && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
185
|
+
!ue && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ue && navigator.userAgent.includes("Android"), !ue && navigator.userAgent.includes("Mac"), !ue && navigator.userAgent.includes("FB_IAB"), !ue && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
186
|
+
var at = class dt {
|
|
175
187
|
constructor(e) {
|
|
176
|
-
this.element = e, this.next =
|
|
188
|
+
this.element = e, this.next = dt.Undefined, this.prev = dt.Undefined;
|
|
177
189
|
}
|
|
178
190
|
};
|
|
179
|
-
|
|
180
|
-
var x =
|
|
191
|
+
at.Undefined = new at(void 0);
|
|
192
|
+
var x = at, hn = class {
|
|
181
193
|
constructor() {
|
|
182
194
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
183
195
|
}
|
|
@@ -243,17 +255,17 @@ var x = st, cn = class {
|
|
|
243
255
|
for (; t !== x.Undefined; )
|
|
244
256
|
yield t.element, t = t.next;
|
|
245
257
|
}
|
|
246
|
-
},
|
|
258
|
+
}, fn = 0, Ae = class {
|
|
247
259
|
constructor(t) {
|
|
248
|
-
this.value = t, this.id =
|
|
260
|
+
this.value = t, this.id = fn++;
|
|
249
261
|
}
|
|
250
|
-
},
|
|
262
|
+
}, Ee = class {
|
|
251
263
|
constructor(e) {
|
|
252
264
|
this.options = e, this._size = 0;
|
|
253
265
|
}
|
|
254
266
|
dispose(e) {
|
|
255
267
|
var i, n;
|
|
256
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
268
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ae && (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
269
|
}
|
|
258
270
|
get event() {
|
|
259
271
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -263,11 +275,11 @@ var x = st, cn = class {
|
|
|
263
275
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
264
276
|
};
|
|
265
277
|
i && (e = e.bind(i));
|
|
266
|
-
let l = new
|
|
267
|
-
return this._listeners ? this._listeners instanceof
|
|
278
|
+
let l = new Ae(e);
|
|
279
|
+
return this._listeners ? this._listeners instanceof Ae ? 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
280
|
var u, h, c, f;
|
|
269
281
|
if (!this._disposed) {
|
|
270
|
-
if (this._listeners instanceof
|
|
282
|
+
if (this._listeners instanceof Ae)
|
|
271
283
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
|
|
272
284
|
else if (this._listeners) {
|
|
273
285
|
let w = this._listeners.indexOf(l);
|
|
@@ -293,67 +305,67 @@ var x = st, cn = class {
|
|
|
293
305
|
}
|
|
294
306
|
}
|
|
295
307
|
fire(e) {
|
|
296
|
-
this._listeners && (this._listeners instanceof
|
|
308
|
+
this._listeners && (this._listeners instanceof Ae ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
297
309
|
}
|
|
298
310
|
hasListeners() {
|
|
299
311
|
return this._size > 0;
|
|
300
312
|
}
|
|
301
|
-
},
|
|
313
|
+
}, vn = class {
|
|
302
314
|
constructor() {
|
|
303
315
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
304
316
|
}
|
|
305
|
-
on(
|
|
306
|
-
let
|
|
307
|
-
var
|
|
308
|
-
let
|
|
309
|
-
this.listerHandlerMap.set(
|
|
310
|
-
handler:
|
|
311
|
-
dispose:
|
|
312
|
-
}), this.listeners.set(
|
|
313
|
-
let
|
|
314
|
-
if (
|
|
315
|
-
for (let
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
flushCachedEvent(
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
off(
|
|
322
|
-
let
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
emit(
|
|
326
|
-
let
|
|
327
|
-
for (var
|
|
328
|
-
o
|
|
329
|
-
|
|
330
|
-
args:
|
|
331
|
-
}),
|
|
332
|
-
event:
|
|
333
|
-
args:
|
|
317
|
+
on(t, e) {
|
|
318
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
319
|
+
var n;
|
|
320
|
+
let r = (n = this.listeners.get(t)) != null ? n : new Ee(), o = (d) => e(...d.args), s = r.event(o);
|
|
321
|
+
this.listerHandlerMap.set(e, {
|
|
322
|
+
handler: o,
|
|
323
|
+
dispose: s
|
|
324
|
+
}), this.listeners.set(t, r);
|
|
325
|
+
let a = this.cachedEventQueue.get(t);
|
|
326
|
+
if (a && i)
|
|
327
|
+
for (let d of a)
|
|
328
|
+
e(...d.args);
|
|
329
|
+
}
|
|
330
|
+
flushCachedEvent(t) {
|
|
331
|
+
t ? this.cachedEventQueue.delete(t) : this.cachedEventQueue.clear();
|
|
332
|
+
}
|
|
333
|
+
off(t, e) {
|
|
334
|
+
let i = this.listerHandlerMap.get(e);
|
|
335
|
+
i && (i.dispose(), this.listerHandlerMap.delete(e));
|
|
336
|
+
}
|
|
337
|
+
emit(t) {
|
|
338
|
+
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
339
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
340
|
+
r[o - 1] = arguments[o];
|
|
341
|
+
i || (i = new hn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
342
|
+
args: r
|
|
343
|
+
}), e && e.fire({
|
|
344
|
+
event: t,
|
|
345
|
+
args: r
|
|
334
346
|
});
|
|
335
347
|
}
|
|
336
|
-
once(
|
|
337
|
-
var
|
|
338
|
-
let
|
|
339
|
-
|
|
348
|
+
once(t, e) {
|
|
349
|
+
var i = this;
|
|
350
|
+
let n = function() {
|
|
351
|
+
e(...arguments), i.off(t, n);
|
|
340
352
|
};
|
|
341
|
-
this.on(
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
None: () =>
|
|
346
|
-
filter: () =>
|
|
347
|
-
once: () =>
|
|
348
|
-
toPromise: () =>
|
|
353
|
+
this.on(t, n, !1);
|
|
354
|
+
}
|
|
355
|
+
}, lt = {};
|
|
356
|
+
Ji(lt, {
|
|
357
|
+
None: () => gn,
|
|
358
|
+
filter: () => wn,
|
|
359
|
+
once: () => ri,
|
|
360
|
+
toPromise: () => yn
|
|
349
361
|
});
|
|
350
|
-
var
|
|
362
|
+
var gn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
351
363
|
console.log("[Jolibox SDK] None Event dispose");
|
|
352
364
|
});
|
|
353
|
-
function
|
|
354
|
-
return new Promise((e) =>
|
|
365
|
+
function yn(t) {
|
|
366
|
+
return new Promise((e) => ri(t)(e));
|
|
355
367
|
}
|
|
356
|
-
function
|
|
368
|
+
function ri(t) {
|
|
357
369
|
return function(e) {
|
|
358
370
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
359
371
|
return t((r) => {
|
|
@@ -362,52 +374,52 @@ function ni(t) {
|
|
|
362
374
|
}, null);
|
|
363
375
|
};
|
|
364
376
|
}
|
|
365
|
-
function
|
|
377
|
+
function wn(t, e) {
|
|
366
378
|
return ((i) => {
|
|
367
379
|
let n = {
|
|
368
380
|
onWillAddFirstListener() {
|
|
369
381
|
i(r.fire, r);
|
|
370
382
|
}
|
|
371
|
-
}, r = new
|
|
383
|
+
}, r = new Ee(n);
|
|
372
384
|
return r.event;
|
|
373
385
|
})(function(i) {
|
|
374
386
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
375
387
|
return t((r) => e(r) && i.call(n, r), null);
|
|
376
388
|
});
|
|
377
389
|
}
|
|
378
|
-
var
|
|
379
|
-
let t = new
|
|
380
|
-
return globalThis[
|
|
390
|
+
var Ze = Symbol.for("Jolibox.hostEmitter"), pn = () => {
|
|
391
|
+
let t = new vn();
|
|
392
|
+
return globalThis[Ze] || (globalThis[Ze] = {
|
|
381
393
|
on: t.on.bind(t),
|
|
382
394
|
off: t.off.bind(t),
|
|
383
395
|
emit: t.emit.bind(t),
|
|
384
396
|
once: t.once.bind(t)
|
|
385
|
-
}), globalThis[
|
|
397
|
+
}), globalThis[Ze];
|
|
386
398
|
};
|
|
387
|
-
|
|
388
|
-
function
|
|
399
|
+
pn();
|
|
400
|
+
function bn(t, e) {
|
|
389
401
|
let i = Math.min(t.length, e.length);
|
|
390
402
|
for (let n = 0; n < i; n++)
|
|
391
|
-
|
|
403
|
+
An(t[n], e[n]);
|
|
392
404
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
405
|
+
function An(t, e) {
|
|
406
|
+
if (Qi(e)) {
|
|
395
407
|
if (typeof t !== e)
|
|
396
408
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
397
|
-
} else if (
|
|
409
|
+
} else if (tn(e)) {
|
|
398
410
|
try {
|
|
399
411
|
if (t instanceof e)
|
|
400
412
|
return;
|
|
401
413
|
} catch (i) {
|
|
402
414
|
}
|
|
403
|
-
if (!
|
|
415
|
+
if (!en(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
404
416
|
return;
|
|
405
417
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
406
418
|
}
|
|
407
419
|
}
|
|
408
|
-
var
|
|
420
|
+
var ut = class {
|
|
409
421
|
constructor() {
|
|
410
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
422
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ee(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
411
423
|
}
|
|
412
424
|
registerCommand(e) {
|
|
413
425
|
if (!e)
|
|
@@ -420,7 +432,7 @@ var lt = class {
|
|
|
420
432
|
e.handler = function() {
|
|
421
433
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
422
434
|
s[a] = arguments[a];
|
|
423
|
-
return
|
|
435
|
+
return bn(s, n), r(...s);
|
|
424
436
|
};
|
|
425
437
|
}
|
|
426
438
|
let {
|
|
@@ -440,19 +452,19 @@ var lt = class {
|
|
|
440
452
|
return e;
|
|
441
453
|
}
|
|
442
454
|
};
|
|
443
|
-
|
|
444
|
-
var
|
|
455
|
+
ut = Zt([ei], ut);
|
|
456
|
+
var Lt = class {
|
|
445
457
|
constructor() {
|
|
446
|
-
this._onWillExecuteCommand = new
|
|
458
|
+
this._onWillExecuteCommand = new Ee(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ee(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ut(), this._starActivation = null;
|
|
447
459
|
}
|
|
448
460
|
_activateStar() {
|
|
449
|
-
return this._starActivation || (this._starActivation =
|
|
461
|
+
return this._starActivation || (this._starActivation = Xi(3e4)), this._starActivation;
|
|
450
462
|
}
|
|
451
463
|
executeCommand(e) {
|
|
452
464
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
453
465
|
n[r - 1] = arguments[r];
|
|
454
|
-
return
|
|
455
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
466
|
+
return Yi(this, null, function* () {
|
|
467
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), lt.toPromise(lt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
456
468
|
});
|
|
457
469
|
}
|
|
458
470
|
executeCommandThowErr(e) {
|
|
@@ -498,15 +510,15 @@ var Dt = class {
|
|
|
498
510
|
}
|
|
499
511
|
}
|
|
500
512
|
};
|
|
501
|
-
|
|
513
|
+
Lt = Zt([ei], Lt);
|
|
502
514
|
function B(t, e, i) {
|
|
503
|
-
return (e =
|
|
515
|
+
return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
504
516
|
}
|
|
505
|
-
function
|
|
506
|
-
var e =
|
|
517
|
+
function _n(t) {
|
|
518
|
+
var e = mn(t, "string");
|
|
507
519
|
return typeof e == "symbol" ? e : e + "";
|
|
508
520
|
}
|
|
509
|
-
function
|
|
521
|
+
function mn(t, e) {
|
|
510
522
|
if (typeof t != "object" || !t)
|
|
511
523
|
return t;
|
|
512
524
|
var i = t[Symbol.toPrimitive];
|
|
@@ -518,7 +530,7 @@ function _n(t, e) {
|
|
|
518
530
|
}
|
|
519
531
|
return (e === "string" ? String : Number)(t);
|
|
520
532
|
}
|
|
521
|
-
class
|
|
533
|
+
class Sn {
|
|
522
534
|
constructor(e) {
|
|
523
535
|
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
536
|
var r, o, s;
|
|
@@ -528,7 +540,7 @@ class mn {
|
|
|
528
540
|
n = !1;
|
|
529
541
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
530
542
|
userEvent: n
|
|
531
|
-
}, this.paramsToTrack)),
|
|
543
|
+
}, this.paramsToTrack)), st() && this.context.track("mmp_ad_impression", {
|
|
532
544
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
533
545
|
ad_format: "rewarded",
|
|
534
546
|
module: "game",
|
|
@@ -547,7 +559,7 @@ class mn {
|
|
|
547
559
|
wrapBeforeAd(e) {
|
|
548
560
|
return () => {
|
|
549
561
|
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),
|
|
562
|
+
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), st() && this.context.track("mmp_ad_impression", {
|
|
551
563
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
552
564
|
ad_format: "interstitial",
|
|
553
565
|
module: "game",
|
|
@@ -656,14 +668,14 @@ class mn {
|
|
|
656
668
|
});
|
|
657
669
|
}
|
|
658
670
|
}
|
|
659
|
-
function
|
|
660
|
-
return (e =
|
|
671
|
+
function Le(t, e, i) {
|
|
672
|
+
return (e = En(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
661
673
|
}
|
|
662
|
-
function
|
|
663
|
-
var e =
|
|
674
|
+
function En(t) {
|
|
675
|
+
var e = kn(t, "string");
|
|
664
676
|
return typeof e == "symbol" ? e : e + "";
|
|
665
677
|
}
|
|
666
|
-
function
|
|
678
|
+
function kn(t, e) {
|
|
667
679
|
if (typeof t != "object" || !t)
|
|
668
680
|
return t;
|
|
669
681
|
var i = t[Symbol.toPrimitive];
|
|
@@ -675,13 +687,13 @@ function En(t, e) {
|
|
|
675
687
|
}
|
|
676
688
|
return (e === "string" ? String : Number)(t);
|
|
677
689
|
}
|
|
678
|
-
class
|
|
690
|
+
class In {
|
|
679
691
|
constructor(e) {
|
|
680
|
-
|
|
692
|
+
Le(this, "context", void 0), Le(this, "adBreakIsShowing", !1), Le(this, "reportPageJumpOut", () => {
|
|
681
693
|
this.context.track("AdBreakJumpOut", {
|
|
682
694
|
context: "AdsActionDetection"
|
|
683
695
|
});
|
|
684
|
-
}),
|
|
696
|
+
}), Le(this, "reportPageHide", () => {
|
|
685
697
|
this.context.track("AdBreakHide", {
|
|
686
698
|
context: "AdsActionDetection"
|
|
687
699
|
});
|
|
@@ -692,14 +704,14 @@ class kn {
|
|
|
692
704
|
});
|
|
693
705
|
}
|
|
694
706
|
}
|
|
695
|
-
function
|
|
696
|
-
return (e =
|
|
707
|
+
function Pe(t, e, i) {
|
|
708
|
+
return (e = Rn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
697
709
|
}
|
|
698
|
-
function
|
|
699
|
-
var e =
|
|
710
|
+
function Rn(t) {
|
|
711
|
+
var e = xn(t, "string");
|
|
700
712
|
return typeof e == "symbol" ? e : e + "";
|
|
701
713
|
}
|
|
702
|
-
function
|
|
714
|
+
function xn(t, e) {
|
|
703
715
|
if (typeof t != "object" || !t)
|
|
704
716
|
return t;
|
|
705
717
|
var i = t[Symbol.toPrimitive];
|
|
@@ -711,9 +723,9 @@ function Rn(t, e) {
|
|
|
711
723
|
}
|
|
712
724
|
return (e === "string" ? String : Number)(t);
|
|
713
725
|
}
|
|
714
|
-
class
|
|
726
|
+
class On {
|
|
715
727
|
constructor(e) {
|
|
716
|
-
|
|
728
|
+
Pe(this, "configs", null), Pe(this, "firstRun", !0), Pe(this, "context", void 0), Pe(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
717
729
|
}
|
|
718
730
|
async init() {
|
|
719
731
|
try {
|
|
@@ -738,13 +750,13 @@ class xn {
|
|
|
738
750
|
}
|
|
739
751
|
}
|
|
740
752
|
function Q(t, e, i) {
|
|
741
|
-
return (e =
|
|
753
|
+
return (e = Tn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
742
754
|
}
|
|
743
|
-
function
|
|
744
|
-
var e =
|
|
755
|
+
function Tn(t) {
|
|
756
|
+
var e = Cn(t, "string");
|
|
745
757
|
return typeof e == "symbol" ? e : e + "";
|
|
746
758
|
}
|
|
747
|
-
function
|
|
759
|
+
function Cn(t, e) {
|
|
748
760
|
if (typeof t != "object" || !t)
|
|
749
761
|
return t;
|
|
750
762
|
var i = t[Symbol.toPrimitive];
|
|
@@ -756,7 +768,7 @@ function Tn(t, e) {
|
|
|
756
768
|
}
|
|
757
769
|
return (e === "string" ? String : Number)(t);
|
|
758
770
|
}
|
|
759
|
-
class
|
|
771
|
+
class Dn {
|
|
760
772
|
/**
|
|
761
773
|
* Internal constructor, should not be called directly
|
|
762
774
|
*/
|
|
@@ -767,7 +779,7 @@ class Cn {
|
|
|
767
779
|
}), Q(this, "adConfig", (n) => {
|
|
768
780
|
const s = n, {
|
|
769
781
|
onReady: r
|
|
770
|
-
} = s, o =
|
|
782
|
+
} = s, o = It(s, [
|
|
771
783
|
"onReady"
|
|
772
784
|
]);
|
|
773
785
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
@@ -834,18 +846,18 @@ class Cn {
|
|
|
834
846
|
}
|
|
835
847
|
}
|
|
836
848
|
}
|
|
837
|
-
function
|
|
849
|
+
function Ln(t) {
|
|
838
850
|
if (t.sheet)
|
|
839
851
|
return t.sheet;
|
|
840
852
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
841
853
|
if (document.styleSheets[e].ownerNode === t)
|
|
842
854
|
return document.styleSheets[e];
|
|
843
855
|
}
|
|
844
|
-
function
|
|
856
|
+
function Pn(t) {
|
|
845
857
|
var e = document.createElement("style");
|
|
846
858
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
847
859
|
}
|
|
848
|
-
var
|
|
860
|
+
var Nn = /* @__PURE__ */ function() {
|
|
849
861
|
function t(i) {
|
|
850
862
|
var n = this;
|
|
851
863
|
this._insertTag = function(r) {
|
|
@@ -857,10 +869,10 @@ var Pn = /* @__PURE__ */ function() {
|
|
|
857
869
|
return e.hydrate = function(n) {
|
|
858
870
|
n.forEach(this._insertTag);
|
|
859
871
|
}, e.insert = function(n) {
|
|
860
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
872
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pn(this));
|
|
861
873
|
var r = this.tags[this.tags.length - 1];
|
|
862
874
|
if (this.isSpeedy) {
|
|
863
|
-
var o =
|
|
875
|
+
var o = Ln(r);
|
|
864
876
|
try {
|
|
865
877
|
o.insertRule(n, o.cssRules.length);
|
|
866
878
|
} catch (s) {
|
|
@@ -874,66 +886,66 @@ var Pn = /* @__PURE__ */ function() {
|
|
|
874
886
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
875
887
|
}), this.tags = [], this.ctr = 0;
|
|
876
888
|
}, t;
|
|
877
|
-
}(), j = "-ms-",
|
|
878
|
-
function
|
|
889
|
+
}(), j = "-ms-", qe = "-moz-", m = "-webkit-", oi = "comm", pt = "rule", bt = "decl", Mn = "@import", si = "@keyframes", $n = "@layer", jn = Math.abs, Je = String.fromCharCode, Fn = Object.assign;
|
|
890
|
+
function Un(t, e) {
|
|
879
891
|
return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
|
|
880
892
|
}
|
|
881
|
-
function
|
|
893
|
+
function ai(t) {
|
|
882
894
|
return t.trim();
|
|
883
895
|
}
|
|
884
|
-
function
|
|
896
|
+
function Bn(t, e) {
|
|
885
897
|
return (t = e.exec(t)) ? t[0] : t;
|
|
886
898
|
}
|
|
887
899
|
function S(t, e, i) {
|
|
888
900
|
return t.replace(e, i);
|
|
889
901
|
}
|
|
890
|
-
function
|
|
902
|
+
function ct(t, e) {
|
|
891
903
|
return t.indexOf(e);
|
|
892
904
|
}
|
|
893
905
|
function N(t, e) {
|
|
894
906
|
return t.charCodeAt(e) | 0;
|
|
895
907
|
}
|
|
896
|
-
function
|
|
908
|
+
function ke(t, e, i) {
|
|
897
909
|
return t.slice(e, i);
|
|
898
910
|
}
|
|
899
911
|
function Y(t) {
|
|
900
912
|
return t.length;
|
|
901
913
|
}
|
|
902
|
-
function
|
|
914
|
+
function At(t) {
|
|
903
915
|
return t.length;
|
|
904
916
|
}
|
|
905
|
-
function
|
|
917
|
+
function Ne(t, e) {
|
|
906
918
|
return e.push(t), t;
|
|
907
919
|
}
|
|
908
|
-
function
|
|
920
|
+
function Vn(t, e) {
|
|
909
921
|
return t.map(e).join("");
|
|
910
922
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
923
|
+
var Ye = 1, ve = 1, di = 0, G = 0, C = 0, ge = "";
|
|
924
|
+
function Xe(t, e, i, n, r, o, s) {
|
|
925
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Ye, column: ve, length: s, return: "" };
|
|
914
926
|
}
|
|
915
|
-
function
|
|
916
|
-
return
|
|
927
|
+
function _e(t, e) {
|
|
928
|
+
return Fn(Xe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
917
929
|
}
|
|
918
|
-
function
|
|
930
|
+
function Gn() {
|
|
919
931
|
return C;
|
|
920
932
|
}
|
|
921
|
-
function
|
|
922
|
-
return C = G > 0 ? N(
|
|
933
|
+
function qn() {
|
|
934
|
+
return C = G > 0 ? N(ge, --G) : 0, ve--, C === 10 && (ve = 1, Ye--), C;
|
|
923
935
|
}
|
|
924
936
|
function K() {
|
|
925
|
-
return C = G <
|
|
937
|
+
return C = G < di ? N(ge, G++) : 0, ve++, C === 10 && (ve = 1, Ye++), C;
|
|
926
938
|
}
|
|
927
939
|
function X() {
|
|
928
|
-
return N(
|
|
940
|
+
return N(ge, G);
|
|
929
941
|
}
|
|
930
|
-
function
|
|
942
|
+
function je() {
|
|
931
943
|
return G;
|
|
932
944
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
945
|
+
function Re(t, e) {
|
|
946
|
+
return ke(ge, t, e);
|
|
935
947
|
}
|
|
936
|
-
function
|
|
948
|
+
function Ie(t) {
|
|
937
949
|
switch (t) {
|
|
938
950
|
case 0:
|
|
939
951
|
case 9:
|
|
@@ -965,36 +977,36 @@ function ke(t) {
|
|
|
965
977
|
}
|
|
966
978
|
return 0;
|
|
967
979
|
}
|
|
968
|
-
function di(t) {
|
|
969
|
-
return Je = fe = 1, ai = Y(ve = t), G = 0, [];
|
|
970
|
-
}
|
|
971
980
|
function li(t) {
|
|
972
|
-
return ve =
|
|
981
|
+
return Ye = ve = 1, di = Y(ge = t), G = 0, [];
|
|
973
982
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
983
|
+
function ui(t) {
|
|
984
|
+
return ge = "", t;
|
|
976
985
|
}
|
|
977
|
-
function
|
|
986
|
+
function Fe(t) {
|
|
987
|
+
return ai(Re(G - 1, ht(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
988
|
+
}
|
|
989
|
+
function Kn(t) {
|
|
978
990
|
for (; (C = X()) && C < 33; )
|
|
979
991
|
K();
|
|
980
|
-
return
|
|
992
|
+
return Ie(t) > 2 || Ie(C) > 3 ? "" : " ";
|
|
981
993
|
}
|
|
982
|
-
function
|
|
994
|
+
function zn(t, e) {
|
|
983
995
|
for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
984
996
|
;
|
|
985
|
-
return
|
|
997
|
+
return Re(t, je() + (e < 6 && X() == 32 && K() == 32));
|
|
986
998
|
}
|
|
987
|
-
function
|
|
999
|
+
function ht(t) {
|
|
988
1000
|
for (; K(); )
|
|
989
1001
|
switch (C) {
|
|
990
1002
|
case t:
|
|
991
1003
|
return G;
|
|
992
1004
|
case 34:
|
|
993
1005
|
case 39:
|
|
994
|
-
t !== 34 && t !== 39 &&
|
|
1006
|
+
t !== 34 && t !== 39 && ht(C);
|
|
995
1007
|
break;
|
|
996
1008
|
case 40:
|
|
997
|
-
t === 41 &&
|
|
1009
|
+
t === 41 && ht(t);
|
|
998
1010
|
break;
|
|
999
1011
|
case 92:
|
|
1000
1012
|
K();
|
|
@@ -1002,47 +1014,47 @@ function ct(t) {
|
|
|
1002
1014
|
}
|
|
1003
1015
|
return G;
|
|
1004
1016
|
}
|
|
1005
|
-
function
|
|
1017
|
+
function Hn(t, e) {
|
|
1006
1018
|
for (; K() && t + C !== 57; )
|
|
1007
1019
|
if (t + C === 84 && X() === 47)
|
|
1008
1020
|
break;
|
|
1009
|
-
return "/*" +
|
|
1021
|
+
return "/*" + Re(e, G - 1) + "*" + Je(t === 47 ? t : K());
|
|
1010
1022
|
}
|
|
1011
|
-
function
|
|
1012
|
-
for (; !
|
|
1023
|
+
function Wn(t) {
|
|
1024
|
+
for (; !Ie(X()); )
|
|
1013
1025
|
K();
|
|
1014
|
-
return
|
|
1026
|
+
return Re(t, G);
|
|
1015
1027
|
}
|
|
1016
|
-
function
|
|
1017
|
-
return
|
|
1028
|
+
function Jn(t) {
|
|
1029
|
+
return ui(Ue("", null, null, null, [""], t = li(t), 0, [0], t));
|
|
1018
1030
|
}
|
|
1019
|
-
function
|
|
1031
|
+
function Ue(t, e, i, n, r, o, s, a, d) {
|
|
1020
1032
|
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
1033
|
switch (w = v, v = K()) {
|
|
1022
1034
|
case 40:
|
|
1023
1035
|
if (w != 108 && N(A, h - 1) == 58) {
|
|
1024
|
-
|
|
1036
|
+
ct(A += S(Fe(v), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1025
1037
|
break;
|
|
1026
1038
|
}
|
|
1027
1039
|
case 34:
|
|
1028
1040
|
case 39:
|
|
1029
1041
|
case 91:
|
|
1030
|
-
A +=
|
|
1042
|
+
A += Fe(v);
|
|
1031
1043
|
break;
|
|
1032
1044
|
case 9:
|
|
1033
1045
|
case 10:
|
|
1034
1046
|
case 13:
|
|
1035
1047
|
case 32:
|
|
1036
|
-
A +=
|
|
1048
|
+
A += Kn(w);
|
|
1037
1049
|
break;
|
|
1038
1050
|
case 92:
|
|
1039
|
-
A +=
|
|
1051
|
+
A += zn(je() - 1, 7);
|
|
1040
1052
|
continue;
|
|
1041
1053
|
case 47:
|
|
1042
1054
|
switch (X()) {
|
|
1043
1055
|
case 42:
|
|
1044
1056
|
case 47:
|
|
1045
|
-
|
|
1057
|
+
Ne(Yn(Hn(K(), je()), e, i), d);
|
|
1046
1058
|
break;
|
|
1047
1059
|
default:
|
|
1048
1060
|
A += "/";
|
|
@@ -1058,24 +1070,24 @@ function Fe(t, e, i, n, r, o, s, a, d) {
|
|
|
1058
1070
|
case 125:
|
|
1059
1071
|
p = 0;
|
|
1060
1072
|
case 59 + u:
|
|
1061
|
-
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h &&
|
|
1073
|
+
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Ne(f > 32 ? Nt(A + ";", n, i, h - 1) : Nt(S(A, " ", "") + ";", n, i, h - 2), d);
|
|
1062
1074
|
break;
|
|
1063
1075
|
case 59:
|
|
1064
1076
|
A += ";";
|
|
1065
1077
|
default:
|
|
1066
|
-
if (
|
|
1078
|
+
if (Ne(O = Pt(A, e, i, l, u, r, a, b, T = [], R = [], h), o), v === 123)
|
|
1067
1079
|
if (u === 0)
|
|
1068
|
-
|
|
1080
|
+
Ue(A, e, O, O, T, o, h, a, R);
|
|
1069
1081
|
else
|
|
1070
1082
|
switch (c === 99 && N(A, 3) === 110 ? 100 : c) {
|
|
1071
1083
|
case 100:
|
|
1072
1084
|
case 108:
|
|
1073
1085
|
case 109:
|
|
1074
1086
|
case 115:
|
|
1075
|
-
|
|
1087
|
+
Ue(t, O, O, n && Ne(Pt(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
|
|
1076
1088
|
break;
|
|
1077
1089
|
default:
|
|
1078
|
-
|
|
1090
|
+
Ue(A, O, O, O, [""], R, 0, a, R);
|
|
1079
1091
|
}
|
|
1080
1092
|
}
|
|
1081
1093
|
l = u = f = 0, g = y = 1, b = A = "", h = s;
|
|
@@ -1086,10 +1098,10 @@ function Fe(t, e, i, n, r, o, s, a, d) {
|
|
|
1086
1098
|
if (g < 1) {
|
|
1087
1099
|
if (v == 123)
|
|
1088
1100
|
--g;
|
|
1089
|
-
else if (v == 125 && g++ == 0 &&
|
|
1101
|
+
else if (v == 125 && g++ == 0 && qn() == 125)
|
|
1090
1102
|
continue;
|
|
1091
1103
|
}
|
|
1092
|
-
switch (A +=
|
|
1104
|
+
switch (A += Je(v), v * g) {
|
|
1093
1105
|
case 38:
|
|
1094
1106
|
y = u > 0 ? 1 : (A += "\f", -1);
|
|
1095
1107
|
break;
|
|
@@ -1097,7 +1109,7 @@ function Fe(t, e, i, n, r, o, s, a, d) {
|
|
|
1097
1109
|
a[l++] = (Y(A) - 1) * y, y = 1;
|
|
1098
1110
|
break;
|
|
1099
1111
|
case 64:
|
|
1100
|
-
X() === 45 && (A +=
|
|
1112
|
+
X() === 45 && (A += Fe(K())), c = X(), u = h = Y(b = A += Wn(je())), v++;
|
|
1101
1113
|
break;
|
|
1102
1114
|
case 45:
|
|
1103
1115
|
w === 45 && Y(A) == 2 && (g = 0);
|
|
@@ -1105,72 +1117,72 @@ function Fe(t, e, i, n, r, o, s, a, d) {
|
|
|
1105
1117
|
}
|
|
1106
1118
|
return o;
|
|
1107
1119
|
}
|
|
1108
|
-
function
|
|
1109
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f =
|
|
1110
|
-
for (var y = 0, v =
|
|
1111
|
-
(b =
|
|
1112
|
-
return
|
|
1120
|
+
function Pt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1121
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = At(c), w = 0, g = 0, p = 0; w < n; ++w)
|
|
1122
|
+
for (var y = 0, v = ke(t, h + 1, h = jn(g = s[w])), b = t; y < f; ++y)
|
|
1123
|
+
(b = ai(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
|
|
1124
|
+
return Xe(t, e, i, r === 0 ? pt : a, d, l, u);
|
|
1113
1125
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1126
|
+
function Yn(t, e, i) {
|
|
1127
|
+
return Xe(t, e, i, oi, Je(Gn()), ke(t, 2, -2), 0);
|
|
1116
1128
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1129
|
+
function Nt(t, e, i, n) {
|
|
1130
|
+
return Xe(t, e, i, bt, ke(t, 0, n), ke(t, n + 1, -1), n);
|
|
1119
1131
|
}
|
|
1120
|
-
function
|
|
1121
|
-
for (var i = "", n =
|
|
1132
|
+
function he(t, e) {
|
|
1133
|
+
for (var i = "", n = At(t), r = 0; r < n; r++)
|
|
1122
1134
|
i += e(t[r], r, t, e) || "";
|
|
1123
1135
|
return i;
|
|
1124
1136
|
}
|
|
1125
|
-
function
|
|
1137
|
+
function Xn(t, e, i, n) {
|
|
1126
1138
|
switch (t.type) {
|
|
1127
|
-
case
|
|
1139
|
+
case $n:
|
|
1128
1140
|
if (t.children.length)
|
|
1129
1141
|
break;
|
|
1130
|
-
case
|
|
1131
|
-
case
|
|
1142
|
+
case Mn:
|
|
1143
|
+
case bt:
|
|
1132
1144
|
return t.return = t.return || t.value;
|
|
1133
|
-
case ri:
|
|
1134
|
-
return "";
|
|
1135
1145
|
case oi:
|
|
1136
|
-
return
|
|
1137
|
-
case
|
|
1146
|
+
return "";
|
|
1147
|
+
case si:
|
|
1148
|
+
return t.return = t.value + "{" + he(t.children, n) + "}";
|
|
1149
|
+
case pt:
|
|
1138
1150
|
t.value = t.props.join(",");
|
|
1139
1151
|
}
|
|
1140
|
-
return Y(i =
|
|
1152
|
+
return Y(i = he(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1141
1153
|
}
|
|
1142
|
-
function
|
|
1143
|
-
var e =
|
|
1154
|
+
function Qn(t) {
|
|
1155
|
+
var e = At(t);
|
|
1144
1156
|
return function(i, n, r, o) {
|
|
1145
1157
|
for (var s = "", a = 0; a < e; a++)
|
|
1146
1158
|
s += t[a](i, n, r, o) || "";
|
|
1147
1159
|
return s;
|
|
1148
1160
|
};
|
|
1149
1161
|
}
|
|
1150
|
-
function
|
|
1162
|
+
function Zn(t) {
|
|
1151
1163
|
return function(e) {
|
|
1152
1164
|
e.root || (e = e.return) && t(e);
|
|
1153
1165
|
};
|
|
1154
1166
|
}
|
|
1155
|
-
function
|
|
1167
|
+
function er(t) {
|
|
1156
1168
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1157
1169
|
return function(i) {
|
|
1158
1170
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1159
1171
|
};
|
|
1160
1172
|
}
|
|
1161
|
-
var
|
|
1162
|
-
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !
|
|
1173
|
+
var tr = function(e, i, n) {
|
|
1174
|
+
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !Ie(o); )
|
|
1163
1175
|
K();
|
|
1164
|
-
return
|
|
1165
|
-
},
|
|
1176
|
+
return Re(e, G);
|
|
1177
|
+
}, ir = function(e, i) {
|
|
1166
1178
|
var n = -1, r = 44;
|
|
1167
1179
|
do
|
|
1168
|
-
switch (
|
|
1180
|
+
switch (Ie(r)) {
|
|
1169
1181
|
case 0:
|
|
1170
|
-
r === 38 && X() === 12 && (i[n] = 1), e[n] +=
|
|
1182
|
+
r === 38 && X() === 12 && (i[n] = 1), e[n] += tr(G - 1, i, n);
|
|
1171
1183
|
break;
|
|
1172
1184
|
case 2:
|
|
1173
|
-
e[n] +=
|
|
1185
|
+
e[n] += Fe(r);
|
|
1174
1186
|
break;
|
|
1175
1187
|
case 4:
|
|
1176
1188
|
if (r === 44) {
|
|
@@ -1178,27 +1190,27 @@ var er = function(e, i, n) {
|
|
|
1178
1190
|
break;
|
|
1179
1191
|
}
|
|
1180
1192
|
default:
|
|
1181
|
-
e[n] +=
|
|
1193
|
+
e[n] += Je(r);
|
|
1182
1194
|
}
|
|
1183
1195
|
while (r = K());
|
|
1184
1196
|
return e;
|
|
1185
|
-
},
|
|
1186
|
-
return
|
|
1187
|
-
},
|
|
1197
|
+
}, nr = function(e, i) {
|
|
1198
|
+
return ui(ir(li(e), i));
|
|
1199
|
+
}, Mt = /* @__PURE__ */ new WeakMap(), rr = function(e) {
|
|
1188
1200
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1189
1201
|
// negative .length indicates that this rule has been already prefixed
|
|
1190
1202
|
e.length < 1)) {
|
|
1191
1203
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1192
1204
|
if (n = n.parent, !n)
|
|
1193
1205
|
return;
|
|
1194
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1195
|
-
|
|
1196
|
-
for (var o = [], s =
|
|
1206
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Mt.get(n)) && !r) {
|
|
1207
|
+
Mt.set(e, !0);
|
|
1208
|
+
for (var o = [], s = nr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1197
1209
|
for (var u = 0; u < a.length; u++, l++)
|
|
1198
1210
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1199
1211
|
}
|
|
1200
1212
|
}
|
|
1201
|
-
},
|
|
1213
|
+
}, or = function(e) {
|
|
1202
1214
|
if (e.type === "decl") {
|
|
1203
1215
|
var i = e.value;
|
|
1204
1216
|
// charcode for l
|
|
@@ -1206,8 +1218,8 @@ var er = function(e, i, n) {
|
|
|
1206
1218
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1207
1219
|
}
|
|
1208
1220
|
};
|
|
1209
|
-
function
|
|
1210
|
-
switch (
|
|
1221
|
+
function ci(t, e) {
|
|
1222
|
+
switch (Un(t, e)) {
|
|
1211
1223
|
case 5103:
|
|
1212
1224
|
return m + "print-" + t + t;
|
|
1213
1225
|
case 5737:
|
|
@@ -1241,7 +1253,7 @@ function ui(t, e) {
|
|
|
1241
1253
|
case 4810:
|
|
1242
1254
|
case 6968:
|
|
1243
1255
|
case 2756:
|
|
1244
|
-
return m + t +
|
|
1256
|
+
return m + t + qe + t + j + t + t;
|
|
1245
1257
|
case 6828:
|
|
1246
1258
|
case 4268:
|
|
1247
1259
|
return m + t + j + t + t;
|
|
@@ -1291,16 +1303,16 @@ function ui(t, e) {
|
|
|
1291
1303
|
if (N(t, e + 4) !== 45)
|
|
1292
1304
|
break;
|
|
1293
1305
|
case 102:
|
|
1294
|
-
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" +
|
|
1306
|
+
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + qe + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1295
1307
|
case 115:
|
|
1296
|
-
return ~
|
|
1308
|
+
return ~ct(t, "stretch") ? ci(S(t, "stretch", "fill-available"), e) + t : t;
|
|
1297
1309
|
}
|
|
1298
1310
|
break;
|
|
1299
1311
|
case 4949:
|
|
1300
1312
|
if (N(t, e + 1) !== 115)
|
|
1301
1313
|
break;
|
|
1302
1314
|
case 6444:
|
|
1303
|
-
switch (N(t, Y(t) - 3 - (~
|
|
1315
|
+
switch (N(t, Y(t) - 3 - (~ct(t, "!important") && 10))) {
|
|
1304
1316
|
case 107:
|
|
1305
1317
|
return S(t, ":", ":" + m) + t;
|
|
1306
1318
|
case 101:
|
|
@@ -1320,38 +1332,38 @@ function ui(t, e) {
|
|
|
1320
1332
|
}
|
|
1321
1333
|
return t;
|
|
1322
1334
|
}
|
|
1323
|
-
var
|
|
1335
|
+
var sr = function(e, i, n, r) {
|
|
1324
1336
|
if (e.length > -1 && !e.return)
|
|
1325
1337
|
switch (e.type) {
|
|
1326
|
-
case
|
|
1327
|
-
e.return =
|
|
1338
|
+
case bt:
|
|
1339
|
+
e.return = ci(e.value, e.length);
|
|
1328
1340
|
break;
|
|
1329
|
-
case
|
|
1330
|
-
return
|
|
1341
|
+
case si:
|
|
1342
|
+
return he([_e(e, {
|
|
1331
1343
|
value: S(e.value, "@", "@" + m)
|
|
1332
1344
|
})], r);
|
|
1333
|
-
case
|
|
1345
|
+
case pt:
|
|
1334
1346
|
if (e.length)
|
|
1335
|
-
return
|
|
1336
|
-
switch (
|
|
1347
|
+
return Vn(e.props, function(o) {
|
|
1348
|
+
switch (Bn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1337
1349
|
case ":read-only":
|
|
1338
1350
|
case ":read-write":
|
|
1339
|
-
return
|
|
1340
|
-
props: [S(o, /:(read-\w+)/, ":" +
|
|
1351
|
+
return he([_e(e, {
|
|
1352
|
+
props: [S(o, /:(read-\w+)/, ":" + qe + "$1")]
|
|
1341
1353
|
})], r);
|
|
1342
1354
|
case "::placeholder":
|
|
1343
|
-
return
|
|
1355
|
+
return he([_e(e, {
|
|
1344
1356
|
props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
|
|
1345
|
-
}),
|
|
1346
|
-
props: [S(o, /:(plac\w+)/, ":" +
|
|
1347
|
-
}),
|
|
1357
|
+
}), _e(e, {
|
|
1358
|
+
props: [S(o, /:(plac\w+)/, ":" + qe + "$1")]
|
|
1359
|
+
}), _e(e, {
|
|
1348
1360
|
props: [S(o, /:(plac\w+)/, j + "input-$1")]
|
|
1349
1361
|
})], r);
|
|
1350
1362
|
}
|
|
1351
1363
|
return "";
|
|
1352
1364
|
});
|
|
1353
1365
|
}
|
|
1354
|
-
},
|
|
1366
|
+
}, ar = [sr], dr = function(e) {
|
|
1355
1367
|
var i = e.key;
|
|
1356
1368
|
if (i === "css") {
|
|
1357
1369
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -1360,7 +1372,7 @@ var or = function(e, i, n, r) {
|
|
|
1360
1372
|
p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
1361
1373
|
});
|
|
1362
1374
|
}
|
|
1363
|
-
var r = e.stylisPlugins ||
|
|
1375
|
+
var r = e.stylisPlugins || ar, o = {}, s, a = [];
|
|
1364
1376
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1365
1377
|
// this means we will ignore elements which don't have a space in them which
|
|
1366
1378
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -1371,12 +1383,12 @@ var or = function(e, i, n, r) {
|
|
|
1371
1383
|
a.push(g);
|
|
1372
1384
|
}
|
|
1373
1385
|
);
|
|
1374
|
-
var d, l = [
|
|
1386
|
+
var d, l = [rr, or];
|
|
1375
1387
|
{
|
|
1376
|
-
var u, h = [
|
|
1388
|
+
var u, h = [Xn, Zn(function(g) {
|
|
1377
1389
|
u.insert(g);
|
|
1378
|
-
})], c =
|
|
1379
|
-
return
|
|
1390
|
+
})], c = Qn(l.concat(r, h)), f = function(p) {
|
|
1391
|
+
return he(Jn(p), c);
|
|
1380
1392
|
};
|
|
1381
1393
|
d = function(p, y, v, b) {
|
|
1382
1394
|
u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
@@ -1384,7 +1396,7 @@ var or = function(e, i, n, r) {
|
|
|
1384
1396
|
}
|
|
1385
1397
|
var w = {
|
|
1386
1398
|
key: i,
|
|
1387
|
-
sheet: new
|
|
1399
|
+
sheet: new Nn({
|
|
1388
1400
|
key: i,
|
|
1389
1401
|
container: s,
|
|
1390
1402
|
nonce: e.nonce,
|
|
@@ -1399,7 +1411,7 @@ var or = function(e, i, n, r) {
|
|
|
1399
1411
|
};
|
|
1400
1412
|
return w.sheet.hydrate(a), w;
|
|
1401
1413
|
};
|
|
1402
|
-
function
|
|
1414
|
+
function lr(t) {
|
|
1403
1415
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1404
1416
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1405
1417
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1418,7 +1430,7 @@ function dr(t) {
|
|
|
1418
1430
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1419
1431
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1420
1432
|
}
|
|
1421
|
-
var
|
|
1433
|
+
var ur = {
|
|
1422
1434
|
animationIterationCount: 1,
|
|
1423
1435
|
aspectRatio: 1,
|
|
1424
1436
|
borderImageOutset: 1,
|
|
@@ -1467,18 +1479,18 @@ var lr = {
|
|
|
1467
1479
|
strokeMiterlimit: 1,
|
|
1468
1480
|
strokeOpacity: 1,
|
|
1469
1481
|
strokeWidth: 1
|
|
1470
|
-
},
|
|
1482
|
+
}, cr = /[A-Z]|^ms/g, hr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, hi = function(e) {
|
|
1471
1483
|
return e.charCodeAt(1) === 45;
|
|
1472
|
-
},
|
|
1484
|
+
}, $t = function(e) {
|
|
1473
1485
|
return e != null && typeof e != "boolean";
|
|
1474
|
-
},
|
|
1475
|
-
return
|
|
1476
|
-
}),
|
|
1486
|
+
}, et = /* @__PURE__ */ er(function(t) {
|
|
1487
|
+
return hi(t) ? t : t.replace(cr, "-$&").toLowerCase();
|
|
1488
|
+
}), jt = function(e, i) {
|
|
1477
1489
|
switch (e) {
|
|
1478
1490
|
case "animation":
|
|
1479
1491
|
case "animationName":
|
|
1480
1492
|
if (typeof i == "string")
|
|
1481
|
-
return i.replace(
|
|
1493
|
+
return i.replace(hr, function(n, r, o) {
|
|
1482
1494
|
return ne = {
|
|
1483
1495
|
name: r,
|
|
1484
1496
|
styles: o,
|
|
@@ -1486,9 +1498,9 @@ var lr = {
|
|
|
1486
1498
|
}, r;
|
|
1487
1499
|
});
|
|
1488
1500
|
}
|
|
1489
|
-
return
|
|
1501
|
+
return ur[e] !== 1 && !hi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1490
1502
|
};
|
|
1491
|
-
function
|
|
1503
|
+
function Ke(t, e, i) {
|
|
1492
1504
|
if (i == null)
|
|
1493
1505
|
return "";
|
|
1494
1506
|
var n = i;
|
|
@@ -1518,7 +1530,7 @@ function qe(t, e, i) {
|
|
|
1518
1530
|
var a = o.styles + ";";
|
|
1519
1531
|
return a;
|
|
1520
1532
|
}
|
|
1521
|
-
return
|
|
1533
|
+
return fr(t, e, i);
|
|
1522
1534
|
}
|
|
1523
1535
|
}
|
|
1524
1536
|
var d = i;
|
|
@@ -1527,26 +1539,26 @@ function qe(t, e, i) {
|
|
|
1527
1539
|
var l = e[d];
|
|
1528
1540
|
return l !== void 0 ? l : d;
|
|
1529
1541
|
}
|
|
1530
|
-
function
|
|
1542
|
+
function fr(t, e, i) {
|
|
1531
1543
|
var n = "";
|
|
1532
1544
|
if (Array.isArray(i))
|
|
1533
1545
|
for (var r = 0; r < i.length; r++)
|
|
1534
|
-
n +=
|
|
1546
|
+
n += Ke(t, e, i[r]) + ";";
|
|
1535
1547
|
else
|
|
1536
1548
|
for (var o in i) {
|
|
1537
1549
|
var s = i[o];
|
|
1538
1550
|
if (typeof s != "object") {
|
|
1539
1551
|
var a = s;
|
|
1540
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1552
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : $t(a) && (n += et(o) + ":" + jt(o, a) + ";");
|
|
1541
1553
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1542
1554
|
for (var d = 0; d < s.length; d++)
|
|
1543
|
-
|
|
1555
|
+
$t(s[d]) && (n += et(o) + ":" + jt(o, s[d]) + ";");
|
|
1544
1556
|
else {
|
|
1545
|
-
var l =
|
|
1557
|
+
var l = Ke(t, e, s);
|
|
1546
1558
|
switch (o) {
|
|
1547
1559
|
case "animation":
|
|
1548
1560
|
case "animationName": {
|
|
1549
|
-
n +=
|
|
1561
|
+
n += et(o) + ":" + l + ";";
|
|
1550
1562
|
break;
|
|
1551
1563
|
}
|
|
1552
1564
|
default:
|
|
@@ -1556,41 +1568,41 @@ function hr(t, e, i) {
|
|
|
1556
1568
|
}
|
|
1557
1569
|
return n;
|
|
1558
1570
|
}
|
|
1559
|
-
var
|
|
1560
|
-
function
|
|
1571
|
+
var Ft = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
|
|
1572
|
+
function tt(t, e, i) {
|
|
1561
1573
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1562
1574
|
return t[0];
|
|
1563
1575
|
var n = !0, r = "";
|
|
1564
1576
|
ne = void 0;
|
|
1565
1577
|
var o = t[0];
|
|
1566
1578
|
if (o == null || o.raw === void 0)
|
|
1567
|
-
n = !1, r +=
|
|
1579
|
+
n = !1, r += Ke(i, e, o);
|
|
1568
1580
|
else {
|
|
1569
1581
|
var s = o;
|
|
1570
1582
|
r += s[0];
|
|
1571
1583
|
}
|
|
1572
1584
|
for (var a = 1; a < t.length; a++)
|
|
1573
|
-
if (r +=
|
|
1585
|
+
if (r += Ke(i, e, t[a]), n) {
|
|
1574
1586
|
var d = o;
|
|
1575
1587
|
r += d[a];
|
|
1576
1588
|
}
|
|
1577
|
-
|
|
1578
|
-
for (var l = "", u; (u =
|
|
1589
|
+
Ft.lastIndex = 0;
|
|
1590
|
+
for (var l = "", u; (u = Ft.exec(r)) !== null; )
|
|
1579
1591
|
l += "-" + u[1];
|
|
1580
|
-
var h =
|
|
1592
|
+
var h = lr(r) + l;
|
|
1581
1593
|
return {
|
|
1582
1594
|
name: h,
|
|
1583
1595
|
styles: r,
|
|
1584
1596
|
next: ne
|
|
1585
1597
|
};
|
|
1586
1598
|
}
|
|
1587
|
-
function
|
|
1599
|
+
function fi(t, e, i) {
|
|
1588
1600
|
var n = "";
|
|
1589
1601
|
return i.split(" ").forEach(function(r) {
|
|
1590
1602
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1591
1603
|
}), n;
|
|
1592
1604
|
}
|
|
1593
|
-
var
|
|
1605
|
+
var vr = function(e, i, n) {
|
|
1594
1606
|
var r = e.key + "-" + i.name;
|
|
1595
1607
|
// we only need to add the styles to the registered cache if the
|
|
1596
1608
|
// class name could be used further down
|
|
@@ -1598,8 +1610,8 @@ var fr = function(e, i, n) {
|
|
|
1598
1610
|
// so we don't have to add it to registered cache.
|
|
1599
1611
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1600
1612
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1613
|
+
}, gr = function(e, i, n) {
|
|
1614
|
+
vr(e, i);
|
|
1603
1615
|
var r = e.key + "-" + i.name;
|
|
1604
1616
|
if (e.inserted[i.name] === void 0) {
|
|
1605
1617
|
var o = i;
|
|
@@ -1608,41 +1620,41 @@ var fr = function(e, i, n) {
|
|
|
1608
1620
|
while (o !== void 0);
|
|
1609
1621
|
}
|
|
1610
1622
|
};
|
|
1611
|
-
function
|
|
1623
|
+
function Ut(t, e) {
|
|
1612
1624
|
if (t.inserted[e.name] === void 0)
|
|
1613
1625
|
return t.insert("", e, t.sheet, !0);
|
|
1614
1626
|
}
|
|
1615
|
-
function
|
|
1616
|
-
var n = [], r =
|
|
1627
|
+
function Bt(t, e, i) {
|
|
1628
|
+
var n = [], r = fi(t, n, i);
|
|
1617
1629
|
return n.length < 2 ? i : r + e(n);
|
|
1618
1630
|
}
|
|
1619
|
-
var
|
|
1620
|
-
var i =
|
|
1631
|
+
var yr = function(e) {
|
|
1632
|
+
var i = dr(e);
|
|
1621
1633
|
i.sheet.speedy = function(a) {
|
|
1622
1634
|
this.isSpeedy = a;
|
|
1623
1635
|
}, i.compat = !0;
|
|
1624
1636
|
var n = function() {
|
|
1625
1637
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1626
1638
|
l[u] = arguments[u];
|
|
1627
|
-
var h =
|
|
1628
|
-
return
|
|
1639
|
+
var h = tt(l, i.registered, void 0);
|
|
1640
|
+
return gr(i, h), i.key + "-" + h.name;
|
|
1629
1641
|
}, r = function() {
|
|
1630
1642
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1631
1643
|
l[u] = arguments[u];
|
|
1632
|
-
var h =
|
|
1633
|
-
return
|
|
1644
|
+
var h = tt(l, i.registered), c = "animation-" + h.name;
|
|
1645
|
+
return Ut(i, {
|
|
1634
1646
|
name: h.name,
|
|
1635
1647
|
styles: "@keyframes " + c + "{" + h.styles + "}"
|
|
1636
1648
|
}), c;
|
|
1637
1649
|
}, o = function() {
|
|
1638
1650
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1639
1651
|
l[u] = arguments[u];
|
|
1640
|
-
var h =
|
|
1641
|
-
|
|
1652
|
+
var h = tt(l, i.registered);
|
|
1653
|
+
Ut(i, h);
|
|
1642
1654
|
}, s = function() {
|
|
1643
1655
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1644
1656
|
l[u] = arguments[u];
|
|
1645
|
-
return
|
|
1657
|
+
return Bt(i.registered, n, wr(l));
|
|
1646
1658
|
};
|
|
1647
1659
|
return {
|
|
1648
1660
|
css: n,
|
|
@@ -1659,10 +1671,10 @@ var gr = function(e) {
|
|
|
1659
1671
|
},
|
|
1660
1672
|
sheet: i.sheet,
|
|
1661
1673
|
cache: i,
|
|
1662
|
-
getRegisteredStyles:
|
|
1663
|
-
merge:
|
|
1674
|
+
getRegisteredStyles: fi.bind(null, i.registered),
|
|
1675
|
+
merge: Bt.bind(null, i.registered, n)
|
|
1664
1676
|
};
|
|
1665
|
-
},
|
|
1677
|
+
}, wr = function t(e) {
|
|
1666
1678
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1667
1679
|
var r = e[n];
|
|
1668
1680
|
if (r != null) {
|
|
@@ -1687,96 +1699,96 @@ var gr = function(e) {
|
|
|
1687
1699
|
}
|
|
1688
1700
|
}
|
|
1689
1701
|
return i;
|
|
1690
|
-
},
|
|
1702
|
+
}, pr = yr({
|
|
1691
1703
|
key: "css"
|
|
1692
|
-
}),
|
|
1693
|
-
function
|
|
1694
|
-
L.__h && L.__h(q, t,
|
|
1704
|
+
}), ye = pr.css, ft, q, it, Vt, Gt = 0, vi = [], L = fe, qt = L.__b, Kt = L.__r, zt = L.diffed, Ht = L.__c, Wt = L.unmount, Jt = L.__;
|
|
1705
|
+
function br(t, e) {
|
|
1706
|
+
L.__h && L.__h(q, t, Gt || e), Gt = 0;
|
|
1695
1707
|
var i = q.__H || (q.__H = { __: [], __h: [] });
|
|
1696
1708
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1697
1709
|
}
|
|
1698
|
-
function
|
|
1699
|
-
var i =
|
|
1700
|
-
return
|
|
1710
|
+
function gi(t, e) {
|
|
1711
|
+
var i = br(ft++, 7);
|
|
1712
|
+
return mr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1701
1713
|
}
|
|
1702
|
-
function
|
|
1703
|
-
for (var t; t =
|
|
1714
|
+
function Ar() {
|
|
1715
|
+
for (var t; t = vi.shift(); )
|
|
1704
1716
|
if (t.__P && t.__H)
|
|
1705
1717
|
try {
|
|
1706
|
-
t.__H.__h.forEach(
|
|
1718
|
+
t.__H.__h.forEach(Be), t.__H.__h.forEach(vt), t.__H.__h = [];
|
|
1707
1719
|
} catch (e) {
|
|
1708
1720
|
t.__H.__h = [], L.__e(e, t.__v);
|
|
1709
1721
|
}
|
|
1710
1722
|
}
|
|
1711
1723
|
L.__b = function(t) {
|
|
1712
|
-
q = null,
|
|
1724
|
+
q = null, qt && qt(t);
|
|
1713
1725
|
}, L.__ = function(t, e) {
|
|
1714
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1726
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Jt && Jt(t, e);
|
|
1715
1727
|
}, L.__r = function(t) {
|
|
1716
|
-
|
|
1728
|
+
Kt && Kt(t), ft = 0;
|
|
1717
1729
|
var e = (q = t.__c).__H;
|
|
1718
|
-
e && (
|
|
1730
|
+
e && (it === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
|
|
1719
1731
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1720
|
-
})) : (e.__h.forEach(
|
|
1732
|
+
})) : (e.__h.forEach(Be), e.__h.forEach(vt), e.__h = [], ft = 0)), it = q;
|
|
1721
1733
|
}, L.diffed = function(t) {
|
|
1722
|
-
|
|
1734
|
+
zt && zt(t);
|
|
1723
1735
|
var e = t.__c;
|
|
1724
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1736
|
+
e && e.__H && (e.__H.__h.length && (vi.push(e) !== 1 && Vt === L.requestAnimationFrame || ((Vt = L.requestAnimationFrame) || _r)(Ar)), e.__H.__.forEach(function(i) {
|
|
1725
1737
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1726
|
-
})),
|
|
1738
|
+
})), it = q = null;
|
|
1727
1739
|
}, L.__c = function(t, e) {
|
|
1728
1740
|
e.some(function(i) {
|
|
1729
1741
|
try {
|
|
1730
|
-
i.__h.forEach(
|
|
1731
|
-
return !n.__ ||
|
|
1742
|
+
i.__h.forEach(Be), i.__h = i.__h.filter(function(n) {
|
|
1743
|
+
return !n.__ || vt(n);
|
|
1732
1744
|
});
|
|
1733
1745
|
} catch (n) {
|
|
1734
1746
|
e.some(function(r) {
|
|
1735
1747
|
r.__h && (r.__h = []);
|
|
1736
1748
|
}), e = [], L.__e(n, i.__v);
|
|
1737
1749
|
}
|
|
1738
|
-
}),
|
|
1750
|
+
}), Ht && Ht(t, e);
|
|
1739
1751
|
}, L.unmount = function(t) {
|
|
1740
|
-
|
|
1752
|
+
Wt && Wt(t);
|
|
1741
1753
|
var e, i = t.__c;
|
|
1742
1754
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1743
1755
|
try {
|
|
1744
|
-
|
|
1756
|
+
Be(n);
|
|
1745
1757
|
} catch (r) {
|
|
1746
1758
|
e = r;
|
|
1747
1759
|
}
|
|
1748
1760
|
}), i.__H = void 0, e && L.__e(e, i.__v));
|
|
1749
1761
|
};
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1762
|
+
var Yt = typeof requestAnimationFrame == "function";
|
|
1763
|
+
function _r(t) {
|
|
1752
1764
|
var e, i = function() {
|
|
1753
|
-
clearTimeout(n),
|
|
1765
|
+
clearTimeout(n), Yt && cancelAnimationFrame(e), setTimeout(t);
|
|
1754
1766
|
}, n = setTimeout(i, 100);
|
|
1755
|
-
|
|
1767
|
+
Yt && (e = requestAnimationFrame(i));
|
|
1756
1768
|
}
|
|
1757
|
-
function
|
|
1769
|
+
function Be(t) {
|
|
1758
1770
|
var e = q, i = t.__c;
|
|
1759
1771
|
typeof i == "function" && (t.__c = void 0, i()), q = e;
|
|
1760
1772
|
}
|
|
1761
|
-
function
|
|
1773
|
+
function vt(t) {
|
|
1762
1774
|
var e = q;
|
|
1763
1775
|
t.__c = t.__(), q = e;
|
|
1764
1776
|
}
|
|
1765
|
-
function
|
|
1777
|
+
function mr(t, e) {
|
|
1766
1778
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1767
1779
|
return i !== t[n];
|
|
1768
1780
|
});
|
|
1769
1781
|
}
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1782
|
+
var Sr = Symbol.for("preact-signals");
|
|
1783
|
+
function Qe() {
|
|
1772
1784
|
if (re > 1)
|
|
1773
1785
|
re--;
|
|
1774
1786
|
else {
|
|
1775
|
-
for (var t, e = !1;
|
|
1776
|
-
var i =
|
|
1777
|
-
for (
|
|
1787
|
+
for (var t, e = !1; me !== void 0; ) {
|
|
1788
|
+
var i = me;
|
|
1789
|
+
for (me = void 0, gt++; i !== void 0; ) {
|
|
1778
1790
|
var n = i.o;
|
|
1779
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1791
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && wi(i))
|
|
1780
1792
|
try {
|
|
1781
1793
|
i.c();
|
|
1782
1794
|
} catch (r) {
|
|
@@ -1785,7 +1797,7 @@ function Xe() {
|
|
|
1785
1797
|
i = n;
|
|
1786
1798
|
}
|
|
1787
1799
|
}
|
|
1788
|
-
if (
|
|
1800
|
+
if (gt = 0, re--, e)
|
|
1789
1801
|
throw t;
|
|
1790
1802
|
}
|
|
1791
1803
|
}
|
|
@@ -1796,11 +1808,11 @@ function D(t) {
|
|
|
1796
1808
|
try {
|
|
1797
1809
|
return t();
|
|
1798
1810
|
} finally {
|
|
1799
|
-
|
|
1811
|
+
Qe();
|
|
1800
1812
|
}
|
|
1801
1813
|
}
|
|
1802
|
-
var k = void 0,
|
|
1803
|
-
function
|
|
1814
|
+
var k = void 0, me = void 0, re = 0, gt = 0, ze = 0;
|
|
1815
|
+
function yi(t) {
|
|
1804
1816
|
if (k !== void 0) {
|
|
1805
1817
|
var e = t.n;
|
|
1806
1818
|
if (e === void 0 || e.t !== k)
|
|
@@ -1812,7 +1824,7 @@ function gi(t) {
|
|
|
1812
1824
|
function M(t) {
|
|
1813
1825
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1814
1826
|
}
|
|
1815
|
-
M.prototype.brand =
|
|
1827
|
+
M.prototype.brand = Sr;
|
|
1816
1828
|
M.prototype.h = function() {
|
|
1817
1829
|
return !0;
|
|
1818
1830
|
};
|
|
@@ -1827,7 +1839,7 @@ M.prototype.U = function(t) {
|
|
|
1827
1839
|
};
|
|
1828
1840
|
M.prototype.subscribe = function(t) {
|
|
1829
1841
|
var e = this;
|
|
1830
|
-
return
|
|
1842
|
+
return Oe(function() {
|
|
1831
1843
|
var i = e.value, n = k;
|
|
1832
1844
|
k = void 0;
|
|
1833
1845
|
try {
|
|
@@ -1856,31 +1868,31 @@ M.prototype.peek = function() {
|
|
|
1856
1868
|
}
|
|
1857
1869
|
};
|
|
1858
1870
|
Object.defineProperty(M.prototype, "value", { get: function() {
|
|
1859
|
-
var t =
|
|
1871
|
+
var t = yi(this);
|
|
1860
1872
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1861
1873
|
}, set: function(t) {
|
|
1862
1874
|
if (t !== this.v) {
|
|
1863
|
-
if (
|
|
1875
|
+
if (gt > 100)
|
|
1864
1876
|
throw new Error("Cycle detected");
|
|
1865
|
-
this.v = t, this.i++,
|
|
1877
|
+
this.v = t, this.i++, ze++, re++;
|
|
1866
1878
|
try {
|
|
1867
1879
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1868
1880
|
e.t.N();
|
|
1869
1881
|
} finally {
|
|
1870
|
-
|
|
1882
|
+
Qe();
|
|
1871
1883
|
}
|
|
1872
1884
|
}
|
|
1873
1885
|
} });
|
|
1874
1886
|
function E(t) {
|
|
1875
1887
|
return new M(t);
|
|
1876
1888
|
}
|
|
1877
|
-
function
|
|
1889
|
+
function wi(t) {
|
|
1878
1890
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1879
1891
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1880
1892
|
return !0;
|
|
1881
1893
|
return !1;
|
|
1882
1894
|
}
|
|
1883
|
-
function
|
|
1895
|
+
function pi(t) {
|
|
1884
1896
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1885
1897
|
var i = e.S.n;
|
|
1886
1898
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1889,34 +1901,34 @@ function wi(t) {
|
|
|
1889
1901
|
}
|
|
1890
1902
|
}
|
|
1891
1903
|
}
|
|
1892
|
-
function
|
|
1904
|
+
function bi(t) {
|
|
1893
1905
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1894
1906
|
var n = e.p;
|
|
1895
1907
|
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;
|
|
1896
1908
|
}
|
|
1897
1909
|
t.s = i;
|
|
1898
1910
|
}
|
|
1899
|
-
function
|
|
1900
|
-
M.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
1911
|
+
function we(t) {
|
|
1912
|
+
M.call(this, void 0), this.x = t, this.s = void 0, this.g = ze - 1, this.f = 4;
|
|
1901
1913
|
}
|
|
1902
|
-
(
|
|
1914
|
+
(we.prototype = new M()).h = function() {
|
|
1903
1915
|
if (this.f &= -3, 1 & this.f)
|
|
1904
1916
|
return !1;
|
|
1905
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1917
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === ze))
|
|
1906
1918
|
return !0;
|
|
1907
|
-
if (this.g =
|
|
1919
|
+
if (this.g = ze, this.f |= 1, this.i > 0 && !wi(this))
|
|
1908
1920
|
return this.f &= -2, !0;
|
|
1909
1921
|
var t = k;
|
|
1910
1922
|
try {
|
|
1911
|
-
|
|
1923
|
+
pi(this), k = this;
|
|
1912
1924
|
var e = this.x();
|
|
1913
1925
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1914
1926
|
} catch (i) {
|
|
1915
1927
|
this.v = i, this.f |= 16, this.i++;
|
|
1916
1928
|
}
|
|
1917
|
-
return k = t,
|
|
1929
|
+
return k = t, bi(this), this.f &= -2, !0;
|
|
1918
1930
|
};
|
|
1919
|
-
|
|
1931
|
+
we.prototype.S = function(t) {
|
|
1920
1932
|
if (this.t === void 0) {
|
|
1921
1933
|
this.f |= 36;
|
|
1922
1934
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
@@ -1924,32 +1936,32 @@ ye.prototype.S = function(t) {
|
|
|
1924
1936
|
}
|
|
1925
1937
|
M.prototype.S.call(this, t);
|
|
1926
1938
|
};
|
|
1927
|
-
|
|
1939
|
+
we.prototype.U = function(t) {
|
|
1928
1940
|
if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
|
|
1929
1941
|
this.f &= -33;
|
|
1930
1942
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1931
1943
|
e.S.U(e);
|
|
1932
1944
|
}
|
|
1933
1945
|
};
|
|
1934
|
-
|
|
1946
|
+
we.prototype.N = function() {
|
|
1935
1947
|
if (!(2 & this.f)) {
|
|
1936
1948
|
this.f |= 6;
|
|
1937
1949
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
1938
1950
|
t.t.N();
|
|
1939
1951
|
}
|
|
1940
1952
|
};
|
|
1941
|
-
Object.defineProperty(
|
|
1953
|
+
Object.defineProperty(we.prototype, "value", { get: function() {
|
|
1942
1954
|
if (1 & this.f)
|
|
1943
1955
|
throw new Error("Cycle detected");
|
|
1944
|
-
var t =
|
|
1956
|
+
var t = yi(this);
|
|
1945
1957
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1946
1958
|
throw this.v;
|
|
1947
1959
|
return this.v;
|
|
1948
1960
|
} });
|
|
1949
|
-
function
|
|
1950
|
-
return new
|
|
1961
|
+
function Se(t) {
|
|
1962
|
+
return new we(t);
|
|
1951
1963
|
}
|
|
1952
|
-
function
|
|
1964
|
+
function Ai(t) {
|
|
1953
1965
|
var e = t.u;
|
|
1954
1966
|
if (t.u = void 0, typeof e == "function") {
|
|
1955
1967
|
re++;
|
|
@@ -1958,26 +1970,26 @@ function bi(t) {
|
|
|
1958
1970
|
try {
|
|
1959
1971
|
e();
|
|
1960
1972
|
} catch (n) {
|
|
1961
|
-
throw t.f &= -2, t.f |= 8,
|
|
1973
|
+
throw t.f &= -2, t.f |= 8, _t(t), n;
|
|
1962
1974
|
} finally {
|
|
1963
|
-
k = i,
|
|
1975
|
+
k = i, Qe();
|
|
1964
1976
|
}
|
|
1965
1977
|
}
|
|
1966
1978
|
}
|
|
1967
|
-
function
|
|
1979
|
+
function _t(t) {
|
|
1968
1980
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1969
1981
|
e.S.U(e);
|
|
1970
|
-
t.x = void 0, t.s = void 0,
|
|
1982
|
+
t.x = void 0, t.s = void 0, Ai(t);
|
|
1971
1983
|
}
|
|
1972
|
-
function
|
|
1984
|
+
function Er(t) {
|
|
1973
1985
|
if (k !== this)
|
|
1974
1986
|
throw new Error("Out-of-order effect");
|
|
1975
|
-
|
|
1987
|
+
bi(this), k = t, this.f &= -2, 8 & this.f && _t(this), Qe();
|
|
1976
1988
|
}
|
|
1977
|
-
function
|
|
1989
|
+
function xe(t) {
|
|
1978
1990
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
1979
1991
|
}
|
|
1980
|
-
|
|
1992
|
+
xe.prototype.c = function() {
|
|
1981
1993
|
var t = this.S();
|
|
1982
1994
|
try {
|
|
1983
1995
|
if (8 & this.f || this.x === void 0)
|
|
@@ -1988,21 +2000,21 @@ Re.prototype.c = function() {
|
|
|
1988
2000
|
t();
|
|
1989
2001
|
}
|
|
1990
2002
|
};
|
|
1991
|
-
|
|
2003
|
+
xe.prototype.S = function() {
|
|
1992
2004
|
if (1 & this.f)
|
|
1993
2005
|
throw new Error("Cycle detected");
|
|
1994
|
-
this.f |= 1, this.f &= -9,
|
|
2006
|
+
this.f |= 1, this.f &= -9, Ai(this), pi(this), re++;
|
|
1995
2007
|
var t = k;
|
|
1996
|
-
return k = this,
|
|
2008
|
+
return k = this, Er.bind(this, t);
|
|
1997
2009
|
};
|
|
1998
|
-
|
|
1999
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2010
|
+
xe.prototype.N = function() {
|
|
2011
|
+
2 & this.f || (this.f |= 2, this.o = me, me = this);
|
|
2000
2012
|
};
|
|
2001
|
-
|
|
2002
|
-
this.f |= 8, 1 & this.f ||
|
|
2013
|
+
xe.prototype.d = function() {
|
|
2014
|
+
this.f |= 8, 1 & this.f || _t(this);
|
|
2003
2015
|
};
|
|
2004
|
-
function
|
|
2005
|
-
var e = new
|
|
2016
|
+
function Oe(t) {
|
|
2017
|
+
var e = new xe(t);
|
|
2006
2018
|
try {
|
|
2007
2019
|
e.c();
|
|
2008
2020
|
} catch (i) {
|
|
@@ -2010,33 +2022,33 @@ function xe(t) {
|
|
|
2010
2022
|
}
|
|
2011
2023
|
return e.d.bind(e);
|
|
2012
2024
|
}
|
|
2013
|
-
var
|
|
2014
|
-
|
|
2015
|
-
|
|
2025
|
+
var _i, nt, mi = [];
|
|
2026
|
+
Oe(function() {
|
|
2027
|
+
_i = this.N;
|
|
2016
2028
|
})();
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2029
|
+
function pe(t, e) {
|
|
2030
|
+
fe[t] = e.bind(null, fe[t] || function() {
|
|
2019
2031
|
});
|
|
2020
2032
|
}
|
|
2021
|
-
function
|
|
2022
|
-
|
|
2033
|
+
function He(t) {
|
|
2034
|
+
nt && nt(), nt = t && t.S();
|
|
2023
2035
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var e = this, i = t.data, n =
|
|
2036
|
+
function Si(t) {
|
|
2037
|
+
var e = this, i = t.data, n = Ei(i);
|
|
2026
2038
|
n.value = i;
|
|
2027
|
-
var r =
|
|
2039
|
+
var r = gi(function() {
|
|
2028
2040
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2029
2041
|
if (d.__c) {
|
|
2030
2042
|
d.__c.__$f |= 4;
|
|
2031
2043
|
break;
|
|
2032
2044
|
}
|
|
2033
|
-
var l =
|
|
2045
|
+
var l = Se(function() {
|
|
2034
2046
|
var f = n.value.value;
|
|
2035
2047
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2036
|
-
}), u =
|
|
2037
|
-
return !Array.isArray(l.value) &&
|
|
2038
|
-
}), h =
|
|
2039
|
-
if (this.N =
|
|
2048
|
+
}), u = Se(function() {
|
|
2049
|
+
return !Array.isArray(l.value) && !ji(l.value);
|
|
2050
|
+
}), h = Oe(function() {
|
|
2051
|
+
if (this.N = ki, u.value) {
|
|
2040
2052
|
var f = l.value;
|
|
2041
2053
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2042
2054
|
}
|
|
@@ -2047,11 +2059,11 @@ function mi(t) {
|
|
|
2047
2059
|
}, []), o = r[0], s = r[1];
|
|
2048
2060
|
return o.value ? s.peek() : s.value;
|
|
2049
2061
|
}
|
|
2050
|
-
|
|
2051
|
-
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
2062
|
+
Si.displayName = "_st";
|
|
2063
|
+
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Si }, props: { configurable: !0, get: function() {
|
|
2052
2064
|
return { data: this };
|
|
2053
2065
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2054
|
-
|
|
2066
|
+
pe("__b", function(t, e) {
|
|
2055
2067
|
if (typeof e.type == "string") {
|
|
2056
2068
|
var i, n = e.props;
|
|
2057
2069
|
for (var r in n)
|
|
@@ -2062,23 +2074,23 @@ we("__b", function(t, e) {
|
|
|
2062
2074
|
}
|
|
2063
2075
|
t(e);
|
|
2064
2076
|
});
|
|
2065
|
-
|
|
2066
|
-
|
|
2077
|
+
pe("__r", function(t, e) {
|
|
2078
|
+
He();
|
|
2067
2079
|
var i, n = e.__c;
|
|
2068
2080
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2069
2081
|
var o;
|
|
2070
|
-
return
|
|
2082
|
+
return Oe(function() {
|
|
2071
2083
|
o = this;
|
|
2072
2084
|
}), o.c = function() {
|
|
2073
2085
|
n.__$f |= 1, n.setState({});
|
|
2074
2086
|
}, o;
|
|
2075
|
-
}())),
|
|
2087
|
+
}())), He(i), t(e);
|
|
2076
2088
|
});
|
|
2077
|
-
|
|
2078
|
-
|
|
2089
|
+
pe("__e", function(t, e, i, n) {
|
|
2090
|
+
He(), t(e, i, n);
|
|
2079
2091
|
});
|
|
2080
|
-
|
|
2081
|
-
|
|
2092
|
+
pe("diffed", function(t, e) {
|
|
2093
|
+
He();
|
|
2082
2094
|
var i;
|
|
2083
2095
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2084
2096
|
var n = e.__np, r = e.props;
|
|
@@ -2093,23 +2105,23 @@ we("diffed", function(t, e) {
|
|
|
2093
2105
|
o = {}, i.U = o;
|
|
2094
2106
|
for (var d in n) {
|
|
2095
2107
|
var l = o[d], u = n[d];
|
|
2096
|
-
l === void 0 ? (l =
|
|
2108
|
+
l === void 0 ? (l = kr(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2097
2109
|
}
|
|
2098
2110
|
}
|
|
2099
2111
|
}
|
|
2100
2112
|
t(e);
|
|
2101
2113
|
});
|
|
2102
|
-
function
|
|
2114
|
+
function kr(t, e, i, n) {
|
|
2103
2115
|
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2104
2116
|
return { o: function(s, a) {
|
|
2105
2117
|
o.value = s, n = a;
|
|
2106
|
-
}, d:
|
|
2107
|
-
this.N =
|
|
2118
|
+
}, d: Oe(function() {
|
|
2119
|
+
this.N = ki;
|
|
2108
2120
|
var s = o.value.value;
|
|
2109
2121
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2110
2122
|
}) };
|
|
2111
2123
|
}
|
|
2112
|
-
|
|
2124
|
+
pe("unmount", function(t, e) {
|
|
2113
2125
|
if (typeof e.type == "string") {
|
|
2114
2126
|
var i = e.__e;
|
|
2115
2127
|
if (i) {
|
|
@@ -2131,10 +2143,10 @@ we("unmount", function(t, e) {
|
|
|
2131
2143
|
}
|
|
2132
2144
|
t(e);
|
|
2133
2145
|
});
|
|
2134
|
-
|
|
2146
|
+
pe("__h", function(t, e, i, n) {
|
|
2135
2147
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2136
2148
|
});
|
|
2137
|
-
|
|
2149
|
+
$i.prototype.shouldComponentUpdate = function(t, e) {
|
|
2138
2150
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2139
2151
|
for (var r in e)
|
|
2140
2152
|
return !0;
|
|
@@ -2152,26 +2164,26 @@ Mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2152
2164
|
return !0;
|
|
2153
2165
|
return !1;
|
|
2154
2166
|
};
|
|
2155
|
-
function
|
|
2156
|
-
return
|
|
2167
|
+
function Ei(t) {
|
|
2168
|
+
return gi(function() {
|
|
2157
2169
|
return E(t);
|
|
2158
2170
|
}, []);
|
|
2159
2171
|
}
|
|
2160
|
-
var
|
|
2172
|
+
var Ir = function(t) {
|
|
2161
2173
|
queueMicrotask(function() {
|
|
2162
2174
|
queueMicrotask(t);
|
|
2163
2175
|
});
|
|
2164
2176
|
};
|
|
2165
|
-
function
|
|
2177
|
+
function Rr() {
|
|
2166
2178
|
D(function() {
|
|
2167
|
-
for (var t; t =
|
|
2168
|
-
|
|
2179
|
+
for (var t; t = mi.shift(); )
|
|
2180
|
+
_i.call(t);
|
|
2169
2181
|
});
|
|
2170
2182
|
}
|
|
2171
|
-
function
|
|
2172
|
-
|
|
2183
|
+
function ki() {
|
|
2184
|
+
mi.push(this) === 1 && (fe.requestAnimationFrame || Ir)(Rr);
|
|
2173
2185
|
}
|
|
2174
|
-
const F =
|
|
2186
|
+
const F = ye`
|
|
2175
2187
|
inset: 0;
|
|
2176
2188
|
clear: none;
|
|
2177
2189
|
float: none;
|
|
@@ -2190,11 +2202,11 @@ const F = ge`
|
|
|
2190
2202
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2191
2203
|
'Helvetica Neue', sans-serif;
|
|
2192
2204
|
`;
|
|
2193
|
-
function
|
|
2194
|
-
const i =
|
|
2195
|
-
|
|
2205
|
+
function xr(t, e) {
|
|
2206
|
+
const i = Fi(t);
|
|
2207
|
+
Ui(() => {
|
|
2196
2208
|
i.current = t;
|
|
2197
|
-
}, [t]),
|
|
2209
|
+
}, [t]), We(() => {
|
|
2198
2210
|
if (e === null)
|
|
2199
2211
|
return;
|
|
2200
2212
|
const n = setInterval(() => {
|
|
@@ -2205,20 +2217,20 @@ function Rr(t, e) {
|
|
|
2205
2217
|
};
|
|
2206
2218
|
}, [e]);
|
|
2207
2219
|
}
|
|
2208
|
-
var
|
|
2220
|
+
var Or = 0;
|
|
2209
2221
|
function _(t, e, i, n, r, o) {
|
|
2210
2222
|
e || (e = {});
|
|
2211
2223
|
var s, a, d = e;
|
|
2212
2224
|
if ("ref" in d)
|
|
2213
2225
|
for (a in d = {}, e)
|
|
2214
2226
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2215
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2227
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Or, __i: -1, __u: 0, __source: r, __self: o };
|
|
2216
2228
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2217
2229
|
for (a in s)
|
|
2218
2230
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2219
|
-
return
|
|
2231
|
+
return fe.vnode && fe.vnode(l), l;
|
|
2220
2232
|
}
|
|
2221
|
-
const
|
|
2233
|
+
const Tr = ye`
|
|
2222
2234
|
${F}
|
|
2223
2235
|
position: fixed;
|
|
2224
2236
|
top: 0;
|
|
@@ -2293,55 +2305,55 @@ const Or = ge`
|
|
|
2293
2305
|
}
|
|
2294
2306
|
}
|
|
2295
2307
|
}
|
|
2296
|
-
`, W = E(null),
|
|
2308
|
+
`, W = E(null), yt = E(""), wt = E(""), Ve = E(!1), Cr = () => {
|
|
2297
2309
|
var t;
|
|
2298
2310
|
(t = W.value) == null || t.call(W, !1);
|
|
2299
|
-
},
|
|
2311
|
+
}, Dr = () => {
|
|
2300
2312
|
var t;
|
|
2301
2313
|
(t = W.value) == null || t.call(W, !0);
|
|
2302
|
-
},
|
|
2314
|
+
}, Lr = async (t) => {
|
|
2303
2315
|
let {
|
|
2304
2316
|
title: e,
|
|
2305
2317
|
content: i
|
|
2306
2318
|
} = t;
|
|
2307
2319
|
return W.value && (W.value(!1), D(() => {
|
|
2308
|
-
W.value = null,
|
|
2320
|
+
W.value = null, Ve.value = !1;
|
|
2309
2321
|
})), D(() => {
|
|
2310
|
-
|
|
2322
|
+
yt.value = e || "", wt.value = i || "", Ve.value = !0;
|
|
2311
2323
|
}), new Promise((n) => {
|
|
2312
2324
|
W.value = (r) => {
|
|
2313
2325
|
D(() => {
|
|
2314
|
-
W.value = null,
|
|
2326
|
+
W.value = null, Ve.value = !1, yt.value = "", wt.value = "";
|
|
2315
2327
|
}), n(r);
|
|
2316
2328
|
};
|
|
2317
2329
|
});
|
|
2318
|
-
},
|
|
2319
|
-
className:
|
|
2330
|
+
}, Pr = () => Ve.value ? _("div", {
|
|
2331
|
+
className: Tr,
|
|
2320
2332
|
children: _("div", {
|
|
2321
2333
|
className: "card-wrapper",
|
|
2322
2334
|
children: [_("div", {
|
|
2323
2335
|
className: "body",
|
|
2324
2336
|
children: [_("div", {
|
|
2325
2337
|
className: "title",
|
|
2326
|
-
children:
|
|
2338
|
+
children: yt.value
|
|
2327
2339
|
}), _("div", {
|
|
2328
2340
|
className: "content",
|
|
2329
|
-
children:
|
|
2341
|
+
children: wt.value
|
|
2330
2342
|
})]
|
|
2331
2343
|
}), _("div", {
|
|
2332
2344
|
className: "footer",
|
|
2333
2345
|
children: [_("button", {
|
|
2334
|
-
onClick:
|
|
2346
|
+
onClick: Cr,
|
|
2335
2347
|
className: "cancel-btn",
|
|
2336
2348
|
children: "Cancel"
|
|
2337
2349
|
}), _("button", {
|
|
2338
|
-
onClick:
|
|
2350
|
+
onClick: Dr,
|
|
2339
2351
|
className: "confirm-btm",
|
|
2340
2352
|
children: "Confirm"
|
|
2341
2353
|
})]
|
|
2342
2354
|
})]
|
|
2343
2355
|
})
|
|
2344
|
-
}) : null,
|
|
2356
|
+
}) : null, Nr = ye`
|
|
2345
2357
|
${F}
|
|
2346
2358
|
position: relative;
|
|
2347
2359
|
display: flex;
|
|
@@ -2374,7 +2386,7 @@ const Or = ge`
|
|
|
2374
2386
|
cursor: not-allowed;
|
|
2375
2387
|
}
|
|
2376
2388
|
}
|
|
2377
|
-
`,
|
|
2389
|
+
`, Mr = () => {
|
|
2378
2390
|
const t = E(!1), e = E(null);
|
|
2379
2391
|
return {
|
|
2380
2392
|
timerPaused: t,
|
|
@@ -2385,7 +2397,7 @@ const Or = ge`
|
|
|
2385
2397
|
});
|
|
2386
2398
|
}
|
|
2387
2399
|
};
|
|
2388
|
-
},
|
|
2400
|
+
}, $r = (t) => {
|
|
2389
2401
|
let {
|
|
2390
2402
|
countdown: e = 0,
|
|
2391
2403
|
mode: i,
|
|
@@ -2395,26 +2407,26 @@ const Or = ge`
|
|
|
2395
2407
|
const {
|
|
2396
2408
|
startTimestamp: o,
|
|
2397
2409
|
timerPaused: s
|
|
2398
|
-
} = r, a =
|
|
2399
|
-
|
|
2410
|
+
} = r, a = Ei(e);
|
|
2411
|
+
xr(() => {
|
|
2400
2412
|
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2401
2413
|
s.value = !0, a.value = 0;
|
|
2402
2414
|
});
|
|
2403
2415
|
}, s.value ? null : 1e3);
|
|
2404
|
-
const d =
|
|
2416
|
+
const d = Se(() => {
|
|
2405
2417
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2406
2418
|
return !1;
|
|
2407
2419
|
const f = Date.now() - o.value;
|
|
2408
2420
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2409
|
-
}), l =
|
|
2421
|
+
}), l = Se(() => {
|
|
2410
2422
|
if (i === "interstitial")
|
|
2411
2423
|
return !0;
|
|
2412
2424
|
if (!o.value)
|
|
2413
2425
|
return !1;
|
|
2414
2426
|
const f = Date.now() - o.value;
|
|
2415
2427
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2416
|
-
}), u =
|
|
2417
|
-
if (s.value = !0, !await
|
|
2428
|
+
}), u = Se(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2429
|
+
if (s.value = !0, !await Lr({
|
|
2418
2430
|
title: "Are you sure?",
|
|
2419
2431
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2420
2432
|
})) {
|
|
@@ -2430,7 +2442,7 @@ const Or = ge`
|
|
|
2430
2442
|
});
|
|
2431
2443
|
};
|
|
2432
2444
|
return _("div", {
|
|
2433
|
-
className:
|
|
2445
|
+
className: Nr,
|
|
2434
2446
|
children: [a.value > 0 && i !== "interstitial" && _("div", {
|
|
2435
2447
|
className: "timer",
|
|
2436
2448
|
children: [a.value, "s"]
|
|
@@ -2450,7 +2462,7 @@ const Or = ge`
|
|
|
2450
2462
|
})
|
|
2451
2463
|
})]
|
|
2452
2464
|
});
|
|
2453
|
-
},
|
|
2465
|
+
}, Ii = () => {
|
|
2454
2466
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2455
2467
|
return {
|
|
2456
2468
|
afterAd: t,
|
|
@@ -2463,7 +2475,7 @@ const Or = ge`
|
|
|
2463
2475
|
src: a,
|
|
2464
2476
|
mode: d
|
|
2465
2477
|
};
|
|
2466
|
-
},
|
|
2478
|
+
}, jr = ye`
|
|
2467
2479
|
${F}
|
|
2468
2480
|
position: fixed;
|
|
2469
2481
|
z-index: 2147483647;
|
|
@@ -2482,7 +2494,7 @@ const Or = ge`
|
|
|
2482
2494
|
width: 100%;
|
|
2483
2495
|
height: 100%;
|
|
2484
2496
|
}
|
|
2485
|
-
`,
|
|
2497
|
+
`, Ri = (t) => {
|
|
2486
2498
|
let {
|
|
2487
2499
|
state: e
|
|
2488
2500
|
} = t;
|
|
@@ -2496,20 +2508,20 @@ const Or = ge`
|
|
|
2496
2508
|
countdown: d,
|
|
2497
2509
|
src: l,
|
|
2498
2510
|
mode: u
|
|
2499
|
-
} = e, h =
|
|
2511
|
+
} = e, h = Bi(() => Mr(), []), [c, f] = Xt(!1), w = (p) => {
|
|
2500
2512
|
var y, v, b, T;
|
|
2501
2513
|
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 =
|
|
2514
|
+
}, g = Vi(() => {
|
|
2503
2515
|
var p;
|
|
2504
2516
|
c || (f(!0), (p = s.value) == null || p.call(s));
|
|
2505
2517
|
}, [c]);
|
|
2506
|
-
return
|
|
2518
|
+
return We(() => {
|
|
2507
2519
|
c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2508
2520
|
h.startTimer();
|
|
2509
2521
|
}, 100);
|
|
2510
2522
|
}, [c, u.value]), a.value ? _("div", {
|
|
2511
|
-
className:
|
|
2512
|
-
children: [_(
|
|
2523
|
+
className: jr,
|
|
2524
|
+
children: [_($r, {
|
|
2513
2525
|
mode: u.value,
|
|
2514
2526
|
onClose: w,
|
|
2515
2527
|
countdown: d.value,
|
|
@@ -2518,17 +2530,17 @@ const Or = ge`
|
|
|
2518
2530
|
src: l.value,
|
|
2519
2531
|
onLoad: g,
|
|
2520
2532
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2521
|
-
}), _(
|
|
2533
|
+
}), _(Pr, {})]
|
|
2522
2534
|
}) : null;
|
|
2523
2535
|
};
|
|
2524
2536
|
function Z(t, e, i) {
|
|
2525
|
-
return (e =
|
|
2537
|
+
return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2526
2538
|
}
|
|
2527
|
-
function
|
|
2528
|
-
var e =
|
|
2539
|
+
function Fr(t) {
|
|
2540
|
+
var e = Ur(t, "string");
|
|
2529
2541
|
return typeof e == "symbol" ? e : e + "";
|
|
2530
2542
|
}
|
|
2531
|
-
function
|
|
2543
|
+
function Ur(t, e) {
|
|
2532
2544
|
if (typeof t != "object" || !t)
|
|
2533
2545
|
return t;
|
|
2534
2546
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2540,13 +2552,13 @@ function Fr(t, e) {
|
|
|
2540
2552
|
}
|
|
2541
2553
|
return (e === "string" ? String : Number)(t);
|
|
2542
2554
|
}
|
|
2543
|
-
class
|
|
2555
|
+
class Br {
|
|
2544
2556
|
constructor(e, i) {
|
|
2545
|
-
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state",
|
|
2557
|
+
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", Ii()), this.context = e, this.initParams = i;
|
|
2546
2558
|
}
|
|
2547
2559
|
async init() {
|
|
2548
2560
|
var e;
|
|
2549
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(
|
|
2561
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Ri, {
|
|
2550
2562
|
state: this.state
|
|
2551
2563
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2552
2564
|
}
|
|
@@ -2663,17 +2675,17 @@ class Ur {
|
|
|
2663
2675
|
}
|
|
2664
2676
|
}
|
|
2665
2677
|
}
|
|
2666
|
-
const
|
|
2678
|
+
const ce = {};
|
|
2667
2679
|
window.addEventListener("message", (t) => {
|
|
2668
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
2680
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || ce[t.data.type] && ce[t.data.type].forEach((e) => {
|
|
2669
2681
|
e(t.data.data);
|
|
2670
2682
|
});
|
|
2671
2683
|
});
|
|
2672
2684
|
const ae = (t, e) => {
|
|
2673
|
-
|
|
2674
|
-
|
|
2685
|
+
We(() => (ce[t] || (ce[t] = /* @__PURE__ */ new Set()), ce[t].add(e), () => {
|
|
2686
|
+
ce[t].delete(e);
|
|
2675
2687
|
}), [t, e]);
|
|
2676
|
-
},
|
|
2688
|
+
}, xi = () => {
|
|
2677
2689
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2678
2690
|
return {
|
|
2679
2691
|
afterAd: t,
|
|
@@ -2686,7 +2698,7 @@ const ae = (t, e) => {
|
|
|
2686
2698
|
visible: a,
|
|
2687
2699
|
src: d
|
|
2688
2700
|
};
|
|
2689
|
-
},
|
|
2701
|
+
}, Vr = ye`
|
|
2690
2702
|
${F}
|
|
2691
2703
|
position: fixed;
|
|
2692
2704
|
z-index: 2147483647;
|
|
@@ -2705,7 +2717,7 @@ const ae = (t, e) => {
|
|
|
2705
2717
|
width: 100%;
|
|
2706
2718
|
height: 100%;
|
|
2707
2719
|
}
|
|
2708
|
-
`,
|
|
2720
|
+
`, Oi = (t) => {
|
|
2709
2721
|
let {
|
|
2710
2722
|
state: e
|
|
2711
2723
|
} = t;
|
|
@@ -2718,7 +2730,7 @@ const ae = (t, e) => {
|
|
|
2718
2730
|
adLinkClicked: a,
|
|
2719
2731
|
visible: d,
|
|
2720
2732
|
src: l
|
|
2721
|
-
} = e, [u, h] =
|
|
2733
|
+
} = e, [u, h] = Xt(!1), c = (w) => {
|
|
2722
2734
|
var g, p, y, v;
|
|
2723
2735
|
h(!1), d.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (y = i.value) == null || y.call(i), (v = o.value) == null || v.call(o);
|
|
2724
2736
|
}, f = () => {
|
|
@@ -2729,7 +2741,7 @@ const ae = (t, e) => {
|
|
|
2729
2741
|
var g;
|
|
2730
2742
|
return (g = a.value) == null ? void 0 : g.call(a, w);
|
|
2731
2743
|
}), ae("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2732
|
-
className:
|
|
2744
|
+
className: Vr,
|
|
2733
2745
|
style: {
|
|
2734
2746
|
display: u ? "flex" : "none"
|
|
2735
2747
|
},
|
|
@@ -2743,13 +2755,13 @@ const ae = (t, e) => {
|
|
|
2743
2755
|
}) : null;
|
|
2744
2756
|
};
|
|
2745
2757
|
function ee(t, e, i) {
|
|
2746
|
-
return (e =
|
|
2758
|
+
return (e = Gr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2747
2759
|
}
|
|
2748
|
-
function
|
|
2749
|
-
var e =
|
|
2760
|
+
function Gr(t) {
|
|
2761
|
+
var e = qr(t, "string");
|
|
2750
2762
|
return typeof e == "symbol" ? e : e + "";
|
|
2751
2763
|
}
|
|
2752
|
-
function
|
|
2764
|
+
function qr(t, e) {
|
|
2753
2765
|
if (typeof t != "object" || !t)
|
|
2754
2766
|
return t;
|
|
2755
2767
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2761,9 +2773,9 @@ function Gr(t, e) {
|
|
|
2761
2773
|
}
|
|
2762
2774
|
return (e === "string" ? String : Number)(t);
|
|
2763
2775
|
}
|
|
2764
|
-
class
|
|
2776
|
+
class Kr {
|
|
2765
2777
|
constructor(e, i) {
|
|
2766
|
-
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state",
|
|
2778
|
+
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state", xi()), ee(this, "processUrl", (n) => {
|
|
2767
2779
|
var a;
|
|
2768
2780
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2769
2781
|
return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
|
|
@@ -2771,7 +2783,7 @@ class qr {
|
|
|
2771
2783
|
}
|
|
2772
2784
|
async init() {
|
|
2773
2785
|
var e;
|
|
2774
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(
|
|
2786
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Oi, {
|
|
2775
2787
|
state: this.state
|
|
2776
2788
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2777
2789
|
}
|
|
@@ -2901,7 +2913,7 @@ class qr {
|
|
|
2901
2913
|
}
|
|
2902
2914
|
}
|
|
2903
2915
|
}
|
|
2904
|
-
const
|
|
2916
|
+
const Ti = () => {
|
|
2905
2917
|
window.googletag = window.googletag || {
|
|
2906
2918
|
cmd: []
|
|
2907
2919
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
@@ -2909,13 +2921,13 @@ const Oi = () => {
|
|
|
2909
2921
|
});
|
|
2910
2922
|
};
|
|
2911
2923
|
function $(t, e, i) {
|
|
2912
|
-
return (e =
|
|
2924
|
+
return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2913
2925
|
}
|
|
2914
|
-
function
|
|
2915
|
-
var e =
|
|
2926
|
+
function zr(t) {
|
|
2927
|
+
var e = Hr(t, "string");
|
|
2916
2928
|
return typeof e == "symbol" ? e : e + "";
|
|
2917
2929
|
}
|
|
2918
|
-
function
|
|
2930
|
+
function Hr(t, e) {
|
|
2919
2931
|
if (typeof t != "object" || !t)
|
|
2920
2932
|
return t;
|
|
2921
2933
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2927,7 +2939,7 @@ function zr(t, e) {
|
|
|
2927
2939
|
}
|
|
2928
2940
|
return (e === "string" ? String : Number)(t);
|
|
2929
2941
|
}
|
|
2930
|
-
class
|
|
2942
|
+
class Ci {
|
|
2931
2943
|
constructor(e, i, n) {
|
|
2932
2944
|
$(this, "adUnit", void 0), $(this, "project", void 0), $(this, "keyValue", void 0), $(this, "adsContext", null), $(this, "rewardedSlot", null), $(this, "rewardedPayload", null), $(this, "readyEvent", null), $(this, "withCommand", function() {
|
|
2933
2945
|
googletag.cmd.push(...arguments);
|
|
@@ -2981,19 +2993,19 @@ class Ti {
|
|
|
2981
2993
|
}, 500);
|
|
2982
2994
|
}
|
|
2983
2995
|
});
|
|
2984
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
2996
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Ti(), this.withCommand(() => {
|
|
2985
2997
|
this.init();
|
|
2986
2998
|
});
|
|
2987
2999
|
}
|
|
2988
3000
|
}
|
|
2989
3001
|
function V(t, e, i) {
|
|
2990
|
-
return (e =
|
|
3002
|
+
return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2991
3003
|
}
|
|
2992
|
-
function
|
|
2993
|
-
var e =
|
|
3004
|
+
function Wr(t) {
|
|
3005
|
+
var e = Jr(t, "string");
|
|
2994
3006
|
return typeof e == "symbol" ? e : e + "";
|
|
2995
3007
|
}
|
|
2996
|
-
function
|
|
3008
|
+
function Jr(t, e) {
|
|
2997
3009
|
if (typeof t != "object" || !t)
|
|
2998
3010
|
return t;
|
|
2999
3011
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3005,7 +3017,7 @@ function Wr(t, e) {
|
|
|
3005
3017
|
}
|
|
3006
3018
|
return (e === "string" ? String : Number)(t);
|
|
3007
3019
|
}
|
|
3008
|
-
class
|
|
3020
|
+
class Yr {
|
|
3009
3021
|
constructor(e, i, n) {
|
|
3010
3022
|
var r = this;
|
|
3011
3023
|
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() {
|
|
@@ -3042,19 +3054,19 @@ class Jr {
|
|
|
3042
3054
|
}), this.isRetrying = !1;
|
|
3043
3055
|
}, 31e3)));
|
|
3044
3056
|
});
|
|
3045
|
-
}),
|
|
3057
|
+
}), Ti(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3046
3058
|
this.init();
|
|
3047
3059
|
});
|
|
3048
3060
|
}
|
|
3049
3061
|
}
|
|
3050
3062
|
function se(t, e, i) {
|
|
3051
|
-
return (e =
|
|
3063
|
+
return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3052
3064
|
}
|
|
3053
|
-
function
|
|
3054
|
-
var e =
|
|
3065
|
+
function Xr(t) {
|
|
3066
|
+
var e = Qr(t, "string");
|
|
3055
3067
|
return typeof e == "symbol" ? e : e + "";
|
|
3056
3068
|
}
|
|
3057
|
-
function
|
|
3069
|
+
function Qr(t, e) {
|
|
3058
3070
|
if (typeof t != "object" || !t)
|
|
3059
3071
|
return t;
|
|
3060
3072
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3066,7 +3078,7 @@ function Xr(t, e) {
|
|
|
3066
3078
|
}
|
|
3067
3079
|
return (e === "string" ? String : Number)(t);
|
|
3068
3080
|
}
|
|
3069
|
-
class
|
|
3081
|
+
class Zr {
|
|
3070
3082
|
constructor(e, i) {
|
|
3071
3083
|
se(this, "name", "GOOGLE_GPT"), se(this, "context", void 0), se(this, "contextInfo", void 0), se(this, "initParams", void 0), se(this, "rewardAdManager", void 0), se(this, "interstitialManager", void 0), se(this, "insertScript", () => {
|
|
3072
3084
|
const n = "jolibox-google-gpt";
|
|
@@ -3076,7 +3088,7 @@ class Qr {
|
|
|
3076
3088
|
}
|
|
3077
3089
|
async init() {
|
|
3078
3090
|
const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
3079
|
-
e && (this.rewardAdManager = new
|
|
3091
|
+
e && (this.rewardAdManager = new Ci(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Yr(i, r, this.initParams.keyValue));
|
|
3080
3092
|
}
|
|
3081
3093
|
adConfig(e, i) {
|
|
3082
3094
|
}
|
|
@@ -3147,14 +3159,14 @@ class Qr {
|
|
|
3147
3159
|
}
|
|
3148
3160
|
}
|
|
3149
3161
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return (e =
|
|
3162
|
+
function rt(t, e, i) {
|
|
3163
|
+
return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3152
3164
|
}
|
|
3153
|
-
function
|
|
3154
|
-
var e =
|
|
3165
|
+
function eo(t) {
|
|
3166
|
+
var e = to(t, "string");
|
|
3155
3167
|
return typeof e == "symbol" ? e : e + "";
|
|
3156
3168
|
}
|
|
3157
|
-
function
|
|
3169
|
+
function to(t, e) {
|
|
3158
3170
|
if (typeof t != "object" || !t)
|
|
3159
3171
|
return t;
|
|
3160
3172
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3166,10 +3178,10 @@ function eo(t, e) {
|
|
|
3166
3178
|
}
|
|
3167
3179
|
return (e === "string" ? String : Number)(t);
|
|
3168
3180
|
}
|
|
3169
|
-
class
|
|
3181
|
+
class io {
|
|
3170
3182
|
constructor(e) {
|
|
3171
3183
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3172
|
-
|
|
3184
|
+
rt(this, "context", void 0), rt(this, "placement", "GAME"), rt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3173
3185
|
}
|
|
3174
3186
|
getLocation() {
|
|
3175
3187
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3183,7 +3195,7 @@ class to {
|
|
|
3183
3195
|
getDevice() {
|
|
3184
3196
|
var e, i, n, r;
|
|
3185
3197
|
return {
|
|
3186
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3198
|
+
platform: (e = this.contextInfo.platform) != null ? e : ni.WebSDK,
|
|
3187
3199
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3188
3200
|
appVersion: "1.0.0",
|
|
3189
3201
|
// mock
|
|
@@ -3202,7 +3214,7 @@ class to {
|
|
|
3202
3214
|
protocolVersion: "1.0.0",
|
|
3203
3215
|
events: [{
|
|
3204
3216
|
name: e,
|
|
3205
|
-
type:
|
|
3217
|
+
type: ti.System,
|
|
3206
3218
|
location: this.getLocation(),
|
|
3207
3219
|
target: null,
|
|
3208
3220
|
extra: i,
|
|
@@ -3210,19 +3222,19 @@ class to {
|
|
|
3210
3222
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3211
3223
|
}],
|
|
3212
3224
|
device: this.getDevice(),
|
|
3213
|
-
project:
|
|
3225
|
+
project: ii.WebSDK
|
|
3214
3226
|
};
|
|
3215
|
-
return
|
|
3227
|
+
return un(r);
|
|
3216
3228
|
}
|
|
3217
3229
|
}
|
|
3218
3230
|
function U(t, e, i) {
|
|
3219
|
-
return (e =
|
|
3231
|
+
return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3220
3232
|
}
|
|
3221
|
-
function
|
|
3222
|
-
var e =
|
|
3233
|
+
function no(t) {
|
|
3234
|
+
var e = ro(t, "string");
|
|
3223
3235
|
return typeof e == "symbol" ? e : e + "";
|
|
3224
3236
|
}
|
|
3225
|
-
function
|
|
3237
|
+
function ro(t, e) {
|
|
3226
3238
|
if (typeof t != "object" || !t)
|
|
3227
3239
|
return t;
|
|
3228
3240
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3234,9 +3246,9 @@ function no(t, e) {
|
|
|
3234
3246
|
}
|
|
3235
3247
|
return (e === "string" ? String : Number)(t);
|
|
3236
3248
|
}
|
|
3237
|
-
class
|
|
3249
|
+
class mt {
|
|
3238
3250
|
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
|
|
3251
|
+
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 io(this.context);
|
|
3240
3252
|
}
|
|
3241
3253
|
getRequestContextData(e) {
|
|
3242
3254
|
var r, o;
|
|
@@ -3272,7 +3284,7 @@ class _t {
|
|
|
3272
3284
|
};
|
|
3273
3285
|
}
|
|
3274
3286
|
}
|
|
3275
|
-
class
|
|
3287
|
+
class Di {
|
|
3276
3288
|
constructor(e, i) {
|
|
3277
3289
|
var n = this;
|
|
3278
3290
|
U(this, "context", void 0), U(this, "contextInfo", void 0), U(this, "requestContext", void 0), U(this, "pendingAFGAdsInfo", {
|
|
@@ -3312,17 +3324,17 @@ class Ci {
|
|
|
3312
3324
|
return n.cacheAFVInfo(), o;
|
|
3313
3325
|
} else
|
|
3314
3326
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3315
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3327
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new mt(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3316
3328
|
}
|
|
3317
3329
|
}
|
|
3318
3330
|
function z(t, e, i) {
|
|
3319
|
-
return (e =
|
|
3331
|
+
return (e = oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3320
3332
|
}
|
|
3321
|
-
function
|
|
3322
|
-
var e =
|
|
3333
|
+
function oo(t) {
|
|
3334
|
+
var e = so(t, "string");
|
|
3323
3335
|
return typeof e == "symbol" ? e : e + "";
|
|
3324
3336
|
}
|
|
3325
|
-
function
|
|
3337
|
+
function so(t, e) {
|
|
3326
3338
|
if (typeof t != "object" || !t)
|
|
3327
3339
|
return t;
|
|
3328
3340
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3337,7 +3349,7 @@ function oo(t, e) {
|
|
|
3337
3349
|
class Bo {
|
|
3338
3350
|
constructor(e) {
|
|
3339
3351
|
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
|
|
3352
|
+
this.context = e, this.channelPolicy = new On(this.context), this.adsActionDetection = new In(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Di(e), this.requestContext = new mt(e);
|
|
3341
3353
|
else
|
|
3342
3354
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3343
3355
|
}
|
|
@@ -3356,23 +3368,23 @@ class Bo {
|
|
|
3356
3368
|
for (const n of i)
|
|
3357
3369
|
switch (n.provider) {
|
|
3358
3370
|
case "GOOGLE_GPT": {
|
|
3359
|
-
const r = new
|
|
3371
|
+
const r = new Zr(this.context, n.params);
|
|
3360
3372
|
await r.init(), this.providers[n.provider] = r;
|
|
3361
3373
|
break;
|
|
3362
3374
|
}
|
|
3363
3375
|
case "ADSENSE":
|
|
3364
3376
|
case "ADSENSE_ADMOB": {
|
|
3365
|
-
const r = new
|
|
3377
|
+
const r = new Dn(this.context, n.params);
|
|
3366
3378
|
await r.init(), this.providers[n.provider] = r;
|
|
3367
3379
|
break;
|
|
3368
3380
|
}
|
|
3369
3381
|
case "OKSPIN": {
|
|
3370
|
-
const r = new
|
|
3382
|
+
const r = new Br(this.context, n.params);
|
|
3371
3383
|
await r.init(), this.providers.OKSPIN = r;
|
|
3372
3384
|
break;
|
|
3373
3385
|
}
|
|
3374
3386
|
case "APPSROCKETS": {
|
|
3375
|
-
const r = new
|
|
3387
|
+
const r = new Kr(this.context, n.params);
|
|
3376
3388
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3377
3389
|
break;
|
|
3378
3390
|
}
|
|
@@ -3444,8 +3456,8 @@ class Bo {
|
|
|
3444
3456
|
}
|
|
3445
3457
|
case "reward": {
|
|
3446
3458
|
e.beforeReward(() => {
|
|
3447
|
-
var R, O, A,
|
|
3448
|
-
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (
|
|
3459
|
+
var R, O, A, Te;
|
|
3460
|
+
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Te = e.adBreakDone) == null || Te.call(e, {
|
|
3449
3461
|
breakType: e.type,
|
|
3450
3462
|
breakName: e.name,
|
|
3451
3463
|
breakFormat: "reward",
|
|
@@ -3475,7 +3487,7 @@ class Bo {
|
|
|
3475
3487
|
});
|
|
3476
3488
|
return;
|
|
3477
3489
|
} else {
|
|
3478
|
-
const R = b.sort((
|
|
3490
|
+
const R = b.sort((Ce, De) => Ce.seq - De.seq);
|
|
3479
3491
|
if (R.length === 0) {
|
|
3480
3492
|
(w = e.adBreakDone) == null || w.call(e, {
|
|
3481
3493
|
breakType: e.type,
|
|
@@ -3486,15 +3498,15 @@ class Bo {
|
|
|
3486
3498
|
return;
|
|
3487
3499
|
}
|
|
3488
3500
|
let O = !0, A = null;
|
|
3489
|
-
const
|
|
3501
|
+
const Te = new Sn(this.context);
|
|
3490
3502
|
for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
|
|
3491
|
-
const
|
|
3492
|
-
if (
|
|
3493
|
-
const [
|
|
3494
|
-
var
|
|
3495
|
-
this.adsIsShowing =
|
|
3503
|
+
const Ce = R.shift(), De = this.providers[Ce.provider];
|
|
3504
|
+
if (De) {
|
|
3505
|
+
const [Li, Pi] = await Te.callAdBreakAndContinue(De, e, Ce, (St) => {
|
|
3506
|
+
var Et;
|
|
3507
|
+
this.adsIsShowing = St, (Et = this.context.eventEmitter) == null || Et.emit("isAdShowing", St);
|
|
3496
3508
|
});
|
|
3497
|
-
O =
|
|
3509
|
+
O = Li, A = Pi;
|
|
3498
3510
|
} else
|
|
3499
3511
|
O = !0, A = {
|
|
3500
3512
|
breakType: e.type,
|
|
@@ -3521,14 +3533,14 @@ class Bo {
|
|
|
3521
3533
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3522
3534
|
}
|
|
3523
3535
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return (e =
|
|
3536
|
+
function Me(t, e, i) {
|
|
3537
|
+
return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3526
3538
|
}
|
|
3527
|
-
function
|
|
3528
|
-
var e =
|
|
3539
|
+
function ao(t) {
|
|
3540
|
+
var e = lo(t, "string");
|
|
3529
3541
|
return typeof e == "symbol" ? e : e + "";
|
|
3530
3542
|
}
|
|
3531
|
-
function
|
|
3543
|
+
function lo(t, e) {
|
|
3532
3544
|
if (typeof t != "object" || !t)
|
|
3533
3545
|
return t;
|
|
3534
3546
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3540,9 +3552,9 @@ function ao(t, e) {
|
|
|
3540
3552
|
}
|
|
3541
3553
|
return (e === "string" ? String : Number)(t);
|
|
3542
3554
|
}
|
|
3543
|
-
class
|
|
3555
|
+
class uo {
|
|
3544
3556
|
constructor(e) {
|
|
3545
|
-
|
|
3557
|
+
Me(this, "context", void 0), Me(this, "currentProvider", void 0), Me(this, "continueCallback", void 0), Me(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3546
3558
|
}
|
|
3547
3559
|
get paramsToTrack() {
|
|
3548
3560
|
var e, i;
|
|
@@ -3563,7 +3575,7 @@ class lo {
|
|
|
3563
3575
|
wrapAdPlaying(e) {
|
|
3564
3576
|
return (i) => {
|
|
3565
3577
|
var n, r;
|
|
3566
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
3578
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), st() && this.context.track("mmp_ad_impression", {
|
|
3567
3579
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3568
3580
|
ad_format: "AFV",
|
|
3569
3581
|
module: "drama",
|
|
@@ -3591,14 +3603,14 @@ class lo {
|
|
|
3591
3603
|
});
|
|
3592
3604
|
}
|
|
3593
3605
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return (e =
|
|
3606
|
+
function ot(t, e, i) {
|
|
3607
|
+
return (e = co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3596
3608
|
}
|
|
3597
|
-
function
|
|
3598
|
-
var e =
|
|
3609
|
+
function co(t) {
|
|
3610
|
+
var e = ho(t, "string");
|
|
3599
3611
|
return typeof e == "symbol" ? e : e + "";
|
|
3600
3612
|
}
|
|
3601
|
-
function
|
|
3613
|
+
function ho(t, e) {
|
|
3602
3614
|
if (typeof t != "object" || !t)
|
|
3603
3615
|
return t;
|
|
3604
3616
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3612,7 +3624,7 @@ function co(t, e) {
|
|
|
3612
3624
|
}
|
|
3613
3625
|
class P extends Error {
|
|
3614
3626
|
constructor(e, i) {
|
|
3615
|
-
super(e.message),
|
|
3627
|
+
super(e.message), ot(this, "name", void 0), ot(this, "type", void 0), ot(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3616
3628
|
}
|
|
3617
3629
|
static from(e, i) {
|
|
3618
3630
|
switch (i) {
|
|
@@ -3624,13 +3636,13 @@ class P extends Error {
|
|
|
3624
3636
|
}
|
|
3625
3637
|
}
|
|
3626
3638
|
function I(t, e, i) {
|
|
3627
|
-
return (e =
|
|
3639
|
+
return (e = fo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3628
3640
|
}
|
|
3629
|
-
function
|
|
3630
|
-
var e =
|
|
3641
|
+
function fo(t) {
|
|
3642
|
+
var e = vo(t, "string");
|
|
3631
3643
|
return typeof e == "symbol" ? e : e + "";
|
|
3632
3644
|
}
|
|
3633
|
-
function
|
|
3645
|
+
function vo(t, e) {
|
|
3634
3646
|
if (typeof t != "object" || !t)
|
|
3635
3647
|
return t;
|
|
3636
3648
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3642,7 +3654,7 @@ function fo(t, e) {
|
|
|
3642
3654
|
}
|
|
3643
3655
|
return (e === "string" ? String : Number)(t);
|
|
3644
3656
|
}
|
|
3645
|
-
class
|
|
3657
|
+
class go {
|
|
3646
3658
|
constructor(e, i, n) {
|
|
3647
3659
|
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", () => {
|
|
3648
3660
|
var r, o, s, a, d, l, u, h, c, f, w;
|
|
@@ -3707,9 +3719,9 @@ class vo {
|
|
|
3707
3719
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3708
3720
|
}
|
|
3709
3721
|
}
|
|
3710
|
-
var
|
|
3711
|
-
const
|
|
3712
|
-
const t = E(!1), e = E(!1), i = E(null), n =
|
|
3722
|
+
var Ge = /* @__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))(Ge || {});
|
|
3723
|
+
const yo = () => {
|
|
3724
|
+
const t = E(!1), e = E(!1), i = E(null), n = Rt(), r = Rt();
|
|
3713
3725
|
return {
|
|
3714
3726
|
visible: t,
|
|
3715
3727
|
canRetry: e,
|
|
@@ -3717,7 +3729,7 @@ const go = () => {
|
|
|
3717
3729
|
videoRef: n,
|
|
3718
3730
|
adContainerRef: r
|
|
3719
3731
|
};
|
|
3720
|
-
},
|
|
3732
|
+
}, wo = ye`
|
|
3721
3733
|
${F}
|
|
3722
3734
|
position: fixed;
|
|
3723
3735
|
left: 0;
|
|
@@ -3766,7 +3778,7 @@ const go = () => {
|
|
|
3766
3778
|
cursor: pointer;
|
|
3767
3779
|
}
|
|
3768
3780
|
}
|
|
3769
|
-
`,
|
|
3781
|
+
`, po = (t) => {
|
|
3770
3782
|
let {
|
|
3771
3783
|
onReady: e,
|
|
3772
3784
|
state: i
|
|
@@ -3782,10 +3794,10 @@ const go = () => {
|
|
|
3782
3794
|
r.value = null, o.value = !1;
|
|
3783
3795
|
}));
|
|
3784
3796
|
};
|
|
3785
|
-
return
|
|
3797
|
+
return We(() => {
|
|
3786
3798
|
e();
|
|
3787
3799
|
}, [e]), _("div", {
|
|
3788
|
-
className:
|
|
3800
|
+
className: wo,
|
|
3789
3801
|
"data-visible": n.value,
|
|
3790
3802
|
children: _("div", {
|
|
3791
3803
|
className: "ads-wrapper",
|
|
@@ -3822,13 +3834,13 @@ const go = () => {
|
|
|
3822
3834
|
});
|
|
3823
3835
|
};
|
|
3824
3836
|
function te(t, e, i) {
|
|
3825
|
-
return (e =
|
|
3837
|
+
return (e = bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3826
3838
|
}
|
|
3827
|
-
function
|
|
3828
|
-
var e =
|
|
3839
|
+
function bo(t) {
|
|
3840
|
+
var e = Ao(t, "string");
|
|
3829
3841
|
return typeof e == "symbol" ? e : e + "";
|
|
3830
3842
|
}
|
|
3831
|
-
function
|
|
3843
|
+
function Ao(t, e) {
|
|
3832
3844
|
if (typeof t != "object" || !t)
|
|
3833
3845
|
return t;
|
|
3834
3846
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3840,9 +3852,9 @@ function bo(t, e) {
|
|
|
3840
3852
|
}
|
|
3841
3853
|
return (e === "string" ? String : Number)(t);
|
|
3842
3854
|
}
|
|
3843
|
-
class
|
|
3855
|
+
class _o {
|
|
3844
3856
|
constructor(e) {
|
|
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",
|
|
3857
|
+
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state", yo()), te(this, "init", async (i) => {
|
|
3846
3858
|
if (this.initialized)
|
|
3847
3859
|
return;
|
|
3848
3860
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3858,10 +3870,10 @@ class Ao {
|
|
|
3858
3870
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3859
3871
|
}
|
|
3860
3872
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3861
|
-
oe(_(
|
|
3873
|
+
oe(_(po, {
|
|
3862
3874
|
state: this.state,
|
|
3863
3875
|
onReady: () => {
|
|
3864
|
-
this.ima = new
|
|
3876
|
+
this.ima = new go(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3865
3877
|
}
|
|
3866
3878
|
}), this.adsOverlay);
|
|
3867
3879
|
}), this.initialized = !0;
|
|
@@ -3883,9 +3895,9 @@ class Ao {
|
|
|
3883
3895
|
r = !0;
|
|
3884
3896
|
let c = !1;
|
|
3885
3897
|
switch (h.raw.getErrorCode()) {
|
|
3886
|
-
case
|
|
3887
|
-
case
|
|
3888
|
-
case
|
|
3898
|
+
case Ge.AUTOPLAY_DISALLOWED:
|
|
3899
|
+
case Ge.VIDEO_PLAY_ERROR:
|
|
3900
|
+
case Ge.ADS_REQUEST_NETWORK_ERROR: {
|
|
3889
3901
|
c = !0;
|
|
3890
3902
|
break;
|
|
3891
3903
|
}
|
|
@@ -3927,13 +3939,13 @@ class Ao {
|
|
|
3927
3939
|
}
|
|
3928
3940
|
}
|
|
3929
3941
|
function J(t, e, i) {
|
|
3930
|
-
return (e =
|
|
3942
|
+
return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3931
3943
|
}
|
|
3932
|
-
function
|
|
3933
|
-
var e =
|
|
3944
|
+
function mo(t) {
|
|
3945
|
+
var e = So(t, "string");
|
|
3934
3946
|
return typeof e == "symbol" ? e : e + "";
|
|
3935
3947
|
}
|
|
3936
|
-
function
|
|
3948
|
+
function So(t, e) {
|
|
3937
3949
|
if (typeof t != "object" || !t)
|
|
3938
3950
|
return t;
|
|
3939
3951
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3945,11 +3957,11 @@ function mo(t, e) {
|
|
|
3945
3957
|
}
|
|
3946
3958
|
return (e === "string" ? String : Number)(t);
|
|
3947
3959
|
}
|
|
3948
|
-
class
|
|
3960
|
+
class Eo {
|
|
3949
3961
|
constructor(e) {
|
|
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",
|
|
3962
|
+
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state", Ii()), J(this, "init", async (i) => {
|
|
3951
3963
|
var n;
|
|
3952
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(
|
|
3964
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Ri, {
|
|
3953
3965
|
state: this.state
|
|
3954
3966
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3955
3967
|
}), J(this, "destroy", () => {
|
|
@@ -3981,13 +3993,13 @@ class So {
|
|
|
3981
3993
|
}
|
|
3982
3994
|
}
|
|
3983
3995
|
function H(t, e, i) {
|
|
3984
|
-
return (e =
|
|
3996
|
+
return (e = ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3985
3997
|
}
|
|
3986
|
-
function
|
|
3987
|
-
var e =
|
|
3998
|
+
function ko(t) {
|
|
3999
|
+
var e = Io(t, "string");
|
|
3988
4000
|
return typeof e == "symbol" ? e : e + "";
|
|
3989
4001
|
}
|
|
3990
|
-
function
|
|
4002
|
+
function Io(t, e) {
|
|
3991
4003
|
if (typeof t != "object" || !t)
|
|
3992
4004
|
return t;
|
|
3993
4005
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3999,15 +4011,15 @@ function ko(t, e) {
|
|
|
3999
4011
|
}
|
|
4000
4012
|
return (e === "string" ? String : Number)(t);
|
|
4001
4013
|
}
|
|
4002
|
-
class
|
|
4014
|
+
class Ro {
|
|
4003
4015
|
constructor(e) {
|
|
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",
|
|
4016
|
+
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state", xi()), H(this, "processUrl", (i) => {
|
|
4005
4017
|
var s;
|
|
4006
4018
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
4007
4019
|
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();
|
|
4008
4020
|
}), H(this, "init", async (i) => {
|
|
4009
4021
|
var n;
|
|
4010
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(
|
|
4022
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Oi, {
|
|
4011
4023
|
state: this.state
|
|
4012
4024
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
4013
4025
|
}), H(this, "destroy", () => {
|
|
@@ -4044,13 +4056,13 @@ class Io {
|
|
|
4044
4056
|
}
|
|
4045
4057
|
}
|
|
4046
4058
|
function ie(t, e, i) {
|
|
4047
|
-
return (e =
|
|
4059
|
+
return (e = xo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4048
4060
|
}
|
|
4049
|
-
function
|
|
4050
|
-
var e =
|
|
4061
|
+
function xo(t) {
|
|
4062
|
+
var e = Oo(t, "string");
|
|
4051
4063
|
return typeof e == "symbol" ? e : e + "";
|
|
4052
4064
|
}
|
|
4053
|
-
function
|
|
4065
|
+
function Oo(t, e) {
|
|
4054
4066
|
if (typeof t != "object" || !t)
|
|
4055
4067
|
return t;
|
|
4056
4068
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4062,12 +4074,12 @@ function xo(t, e) {
|
|
|
4062
4074
|
}
|
|
4063
4075
|
return (e === "string" ? String : Number)(t);
|
|
4064
4076
|
}
|
|
4065
|
-
class
|
|
4077
|
+
class To {
|
|
4066
4078
|
constructor(e) {
|
|
4067
4079
|
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) => {
|
|
4068
4080
|
if (!this.rewardAdManager) {
|
|
4069
4081
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
4070
|
-
this.rewardAdManager = new
|
|
4082
|
+
this.rewardAdManager = new Ci(n, o, i.params.keyValue);
|
|
4071
4083
|
}
|
|
4072
4084
|
}), ie(this, "insertScript", () => {
|
|
4073
4085
|
const i = "jolibox-google-gpt";
|
|
@@ -4115,13 +4127,13 @@ class Oo {
|
|
|
4115
4127
|
}
|
|
4116
4128
|
}
|
|
4117
4129
|
function de(t, e, i) {
|
|
4118
|
-
return (e =
|
|
4130
|
+
return (e = Co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4119
4131
|
}
|
|
4120
|
-
function
|
|
4121
|
-
var e =
|
|
4132
|
+
function Co(t) {
|
|
4133
|
+
var e = Do(t, "string");
|
|
4122
4134
|
return typeof e == "symbol" ? e : e + "";
|
|
4123
4135
|
}
|
|
4124
|
-
function
|
|
4136
|
+
function Do(t, e) {
|
|
4125
4137
|
if (typeof t != "object" || !t)
|
|
4126
4138
|
return t;
|
|
4127
4139
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4136,7 +4148,7 @@ function Co(t, e) {
|
|
|
4136
4148
|
class Vo {
|
|
4137
4149
|
constructor(e) {
|
|
4138
4150
|
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
|
|
4151
|
+
this.context = e, this.requestContext = new mt(e), this.adsRequest = new Di(e, {
|
|
4140
4152
|
reward: !1,
|
|
4141
4153
|
interstitial: !1,
|
|
4142
4154
|
afv: !1
|
|
@@ -4158,22 +4170,22 @@ class Vo {
|
|
|
4158
4170
|
for (const i of e)
|
|
4159
4171
|
switch (i.provider) {
|
|
4160
4172
|
case "GOOGLE_GPT": {
|
|
4161
|
-
const n = new
|
|
4173
|
+
const n = new To(this.context);
|
|
4162
4174
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4163
4175
|
break;
|
|
4164
4176
|
}
|
|
4165
4177
|
case "GOOGLE_IMA": {
|
|
4166
|
-
const n = new
|
|
4178
|
+
const n = new _o(this.context);
|
|
4167
4179
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4168
4180
|
break;
|
|
4169
4181
|
}
|
|
4170
4182
|
case "OKSPIN": {
|
|
4171
|
-
const n = new
|
|
4183
|
+
const n = new Eo(this.context);
|
|
4172
4184
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4173
4185
|
break;
|
|
4174
4186
|
}
|
|
4175
4187
|
case "APPSROCKETS": {
|
|
4176
|
-
const n = new
|
|
4188
|
+
const n = new Ro(this.context);
|
|
4177
4189
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4178
4190
|
break;
|
|
4179
4191
|
}
|
|
@@ -4210,7 +4222,7 @@ class Vo {
|
|
|
4210
4222
|
return;
|
|
4211
4223
|
}
|
|
4212
4224
|
let y = !0, v = null;
|
|
4213
|
-
const b = new
|
|
4225
|
+
const b = new uo(this.context);
|
|
4214
4226
|
for (; p.length > 0; ) {
|
|
4215
4227
|
const T = p.shift(), R = this.providers[T.provider];
|
|
4216
4228
|
if (R) {
|
|
@@ -4236,13 +4248,13 @@ class Vo {
|
|
|
4236
4248
|
}
|
|
4237
4249
|
}
|
|
4238
4250
|
function le(t, e, i) {
|
|
4239
|
-
return (e =
|
|
4251
|
+
return (e = Lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4240
4252
|
}
|
|
4241
|
-
function
|
|
4242
|
-
var e =
|
|
4253
|
+
function Lo(t) {
|
|
4254
|
+
var e = Po(t, "string");
|
|
4243
4255
|
return typeof e == "symbol" ? e : e + "";
|
|
4244
4256
|
}
|
|
4245
|
-
function
|
|
4257
|
+
function Po(t, e) {
|
|
4246
4258
|
if (typeof t != "object" || !t)
|
|
4247
4259
|
return t;
|
|
4248
4260
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4261,14 +4273,14 @@ class Go extends Error {
|
|
|
4261
4273
|
}
|
|
4262
4274
|
export {
|
|
4263
4275
|
P as AFVWrappedError,
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4276
|
+
Dn as GoogleAdSenseProvider,
|
|
4277
|
+
_o as GoogleIMAProvider,
|
|
4278
|
+
Yr as InterstitialAdManager,
|
|
4267
4279
|
Bo as JoliboxAdsForGame,
|
|
4268
4280
|
Vo as JoliboxAdsForVideo,
|
|
4269
|
-
|
|
4270
|
-
|
|
4281
|
+
Br as OKSpinForGameProvider,
|
|
4282
|
+
Eo as OKSpinForVideoProvider,
|
|
4271
4283
|
Go as ResponseError,
|
|
4272
|
-
|
|
4273
|
-
|
|
4284
|
+
Ci as RewardAdManager,
|
|
4285
|
+
Ti as initGPTServices
|
|
4274
4286
|
};
|