@jolibox/ads 1.1.26 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var ct = Object.getOwnPropertySymbols;
2
- var hi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable;
3
- var ut = (t, e) => {
1
+ var ht = Object.getOwnPropertySymbols;
2
+ var _i = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable;
3
+ var ft = (t, e) => {
4
4
  var i = {};
5
5
  for (var n in t)
6
- hi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
- if (t != null && ct)
8
- for (var n of ct(t))
9
- e.indexOf(n) < 0 && vi.call(t, n) && (i[n] = t[n]);
6
+ _i.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
+ if (t != null && ht)
8
+ for (var n of ht(t))
9
+ e.indexOf(n) < 0 && gi.call(t, n) && (i[n] = t[n]);
10
10
  return i;
11
11
  };
12
- import { options as Z, Component as pi, isValidElement as _i } from "preact";
13
- import { useRef as yi, useLayoutEffect as gi, useEffect as Pt, useMemo as mi, render as he, createRef as ft } from "preact/compat";
14
- function F(t, e, i) {
15
- return (e = Ai(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
12
+ import { options as se, Component as wi, isValidElement as bi } from "preact";
13
+ import { useRef as Ai, useLayoutEffect as mi, useEffect as Ue, useMemo as Ei, useState as $t, useCallback as Si, render as te, createRef as vt } from "preact/compat";
14
+ function V(t, e, i) {
15
+ return (e = ki(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
16
16
  }
17
- function Ai(t) {
18
- var e = wi(t, "string");
17
+ function ki(t) {
18
+ var e = xi(t, "string");
19
19
  return typeof e == "symbol" ? e : e + "";
20
20
  }
21
- function wi(t, e) {
21
+ function xi(t, e) {
22
22
  if (typeof t != "object" || !t)
23
23
  return t;
24
24
  var i = t[Symbol.toPrimitive];
@@ -30,9 +30,9 @@ function wi(t, e) {
30
30
  }
31
31
  return (e === "string" ? String : Number)(t);
32
32
  }
33
- class bi {
33
+ class Ri {
34
34
  constructor(e) {
35
- F(this, "context", void 0), F(this, "continueCallback", void 0), F(this, "isBeforeAdCalled", !1), F(this, "isBeforeRewardCalled", !1), F(this, "isAdDismissedCalled", !1), F(this, "isAdViewedCalled", !1), F(this, "isAfterAdCalled", !1), F(this, "currentProvider", void 0), F(this, "currentClientParams", void 0), F(this, "adsHasResponse", !1), F(this, "videoChecker", window.document.createElement("video")), F(this, "wrapShowAdFn", (i) => () => {
35
+ V(this, "context", void 0), V(this, "continueCallback", void 0), V(this, "isBeforeAdCalled", !1), V(this, "isBeforeRewardCalled", !1), V(this, "isAdDismissedCalled", !1), V(this, "isAdViewedCalled", !1), V(this, "isAfterAdCalled", !1), V(this, "currentProvider", void 0), V(this, "currentClientParams", void 0), V(this, "adsHasResponse", !1), V(this, "videoChecker", window.document.createElement("video")), V(this, "wrapShowAdFn", (i) => () => {
36
36
  this.adsHasResponse = !0;
37
37
  let n = !1;
38
38
  this.videoChecker.play().catch(() => {
@@ -156,14 +156,14 @@ class bi {
156
156
  });
157
157
  }
158
158
  }
159
- function Ae(t, e, i) {
160
- return (e = Ei(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
159
+ function Se(t, e, i) {
160
+ return (e = Ii(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
161
161
  }
162
- function Ei(t) {
163
- var e = Si(t, "string");
162
+ function Ii(t) {
163
+ var e = Oi(t, "string");
164
164
  return typeof e == "symbol" ? e : e + "";
165
165
  }
166
- function Si(t, e) {
166
+ function Oi(t, e) {
167
167
  if (typeof t != "object" || !t)
168
168
  return t;
169
169
  var i = t[Symbol.toPrimitive];
@@ -175,13 +175,13 @@ function Si(t, e) {
175
175
  }
176
176
  return (e === "string" ? String : Number)(t);
177
177
  }
178
- class xi {
178
+ class Ti {
179
179
  constructor(e) {
180
- Ae(this, "context", void 0), Ae(this, "adBreakIsShowing", !1), Ae(this, "reportPageJumpOut", () => {
180
+ Se(this, "context", void 0), Se(this, "adBreakIsShowing", !1), Se(this, "reportPageJumpOut", () => {
181
181
  this.context.track("AdBreakJumpOut", {
182
182
  context: "AdsActionDetection"
183
183
  });
184
- }), Ae(this, "reportPageHide", () => {
184
+ }), Se(this, "reportPageHide", () => {
185
185
  this.context.track("AdBreakHide", {
186
186
  context: "AdsActionDetection"
187
187
  });
@@ -192,29 +192,29 @@ class xi {
192
192
  });
193
193
  }
194
194
  }
195
- var Ct = Object.defineProperty, Ri = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, vt = (t, e, i) => e in t ? Ct(t, e, {
195
+ var Ut = Object.defineProperty, Di = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, yt = (t, e, i) => e in t ? Ut(t, e, {
196
196
  enumerable: !0,
197
197
  configurable: !0,
198
198
  writable: !0,
199
199
  value: i
200
- }) : t[e] = i, ki = (t, e) => {
200
+ }) : t[e] = i, Pi = (t, e) => {
201
201
  for (var i in e || (e = {}))
202
- Ti.call(e, i) && vt(t, i, e[i]);
203
- if (ht)
204
- for (var i of ht(e))
205
- Oi.call(e, i) && vt(t, i, e[i]);
202
+ Ci.call(e, i) && yt(t, i, e[i]);
203
+ if (pt)
204
+ for (var i of pt(e))
205
+ Ni.call(e, i) && yt(t, i, e[i]);
206
206
  return t;
207
- }, Di = (t, e) => Ri(t, Ii(e)), Li = (t, e) => {
207
+ }, Mi = (t, e) => Di(t, Li(e)), $i = (t, e) => {
208
208
  for (var i in e)
209
- Ct(t, i, {
209
+ Ut(t, i, {
210
210
  get: e[i],
211
211
  enumerable: !0
212
212
  });
213
- }, Mt = (t, e, i, n) => {
213
+ }, Bt = (t, e, i, n) => {
214
214
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
215
215
  (s = t[o]) && (r = s(r) || r);
216
216
  return r;
217
- }, Ni = (t, e, i) => new Promise((n, r) => {
217
+ }, Ui = (t, e, i) => new Promise((n, r) => {
218
218
  var o = (d) => {
219
219
  try {
220
220
  a(i.next(d));
@@ -259,26 +259,26 @@ if (typeof window != "undefined" && !window.AbortController) {
259
259
  n.call(this, i);
260
260
  }, window.AbortController = t, window.AbortSignal = e;
261
261
  }
262
- function Pi(t) {
262
+ function Bi(t) {
263
263
  return new Promise((e) => {
264
264
  setTimeout(() => {
265
265
  e();
266
266
  }, t);
267
267
  });
268
268
  }
269
- function Ci(t) {
269
+ function ji(t) {
270
270
  return typeof t == "string";
271
271
  }
272
- function Mi(t) {
272
+ function Fi(t) {
273
273
  return typeof t == "undefined";
274
274
  }
275
- function $i(t) {
276
- return Mi(t) || t === null;
275
+ function Vi(t) {
276
+ return Fi(t) || t === null;
277
277
  }
278
- function Ui(t) {
278
+ function zi(t) {
279
279
  return typeof t == "function";
280
280
  }
281
- function $t(t) {
281
+ function jt(t) {
282
282
  let e = t, i = null, n = function() {
283
283
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
284
284
  o[s] = arguments[s];
@@ -286,27 +286,27 @@ function $t(t) {
286
286
  };
287
287
  return n.prototype = e.prototype, n;
288
288
  }
289
- var ji = ((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))(ji || {});
290
- function ae(t) {
289
+ var Gi = ((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))(Gi || {});
290
+ function he(t) {
291
291
  return function() {
292
292
  var e, i;
293
293
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
294
294
  };
295
295
  }
296
- var Fi = {
297
- log: ae("log"),
298
- warn: ae("warn"),
299
- info: ae("info"),
300
- error: ae("error"),
301
- debug: ae("debug")
296
+ var Ki = {
297
+ log: he("log"),
298
+ warn: he("warn"),
299
+ info: he("info"),
300
+ error: he("error"),
301
+ debug: he("debug")
302
302
  };
303
303
  Object.assign(globalThis, {
304
- logger: Fi
304
+ logger: Ki
305
305
  });
306
- var pt = Symbol.for("Jolibox.canIUseMap"), Bi = {};
307
- globalThis[pt] || (globalThis[pt] = Bi);
308
- var Ut = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ut || {}), jt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(jt || {}), Ft = ((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))(Ft || {}), _t = ["name", "params"], Vi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], zi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
309
- function Ee(t, e) {
306
+ var _t = Symbol.for("Jolibox.canIUseMap"), qi = {};
307
+ globalThis[_t] || (globalThis[_t] = qi);
308
+ var Ft = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ft || {}), Vt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Vt || {}), zt = ((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))(zt || {}), gt = ["name", "params"], Hi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Wi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
309
+ function Re(t, e) {
310
310
  return e.map((i) => {
311
311
  if (i === "params" && t[i]) {
312
312
  let n = t[i];
@@ -315,18 +315,18 @@ function Ee(t, e) {
315
315
  return t[i];
316
316
  });
317
317
  }
318
- function Gi(t) {
319
- let e = t.location ? Ee(t.location, _t) : null, i = t.target ? Ee(t.target, _t) : null;
320
- return Ee(Di(ki({}, t), {
318
+ function Ji(t) {
319
+ let e = t.location ? Re(t.location, gt) : null, i = t.target ? Re(t.target, gt) : null;
320
+ return Re(Mi(Pi({}, t), {
321
321
  location: e,
322
322
  target: i
323
- }), Vi);
323
+ }), Hi);
324
324
  }
325
- function Ki(t) {
326
- let e = t.events.map((n) => Gi(n)), i = Ee(t.device, zi);
325
+ function Yi(t) {
326
+ let e = t.events.map((n) => Ji(n)), i = Re(t.device, Wi);
327
327
  return [t.protocolVersion, e, i, t.project];
328
328
  }
329
- function qi() {
329
+ function Xi() {
330
330
  try {
331
331
  if (window.__joliboxLocalStorage__)
332
332
  return window.__joliboxLocalStorage__;
@@ -347,31 +347,31 @@ function qi() {
347
347
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
348
348
  }
349
349
  }
350
- qi();
350
+ Xi();
351
351
  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");
352
- var He = class We {
352
+ var Xe = class Qe {
353
353
  constructor(e) {
354
- this.element = e, this.next = We.Undefined, this.prev = We.Undefined;
354
+ this.element = e, this.next = Qe.Undefined, this.prev = Qe.Undefined;
355
355
  }
356
356
  };
357
- He.Undefined = new He(void 0);
358
- var x = He, Hi = class {
357
+ Xe.Undefined = new Xe(void 0);
358
+ var R = Xe, Qi = class {
359
359
  constructor() {
360
- this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
360
+ this._first = R.Undefined, this._last = R.Undefined, this._size = 0;
361
361
  }
362
362
  get size() {
363
363
  return this._size;
364
364
  }
365
365
  isEmpty() {
366
- return this._first === x.Undefined;
366
+ return this._first === R.Undefined;
367
367
  }
368
368
  clear() {
369
369
  let e = this._first;
370
- for (; e !== x.Undefined; ) {
370
+ for (; e !== R.Undefined; ) {
371
371
  let i = e.next;
372
- e.prev = x.Undefined, e.next = x.Undefined, e = i;
372
+ e.prev = R.Undefined, e.next = R.Undefined, e = i;
373
373
  }
374
- this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
374
+ this._first = R.Undefined, this._last = R.Undefined, this._size = 0;
375
375
  }
376
376
  unshift(e) {
377
377
  return this._insert(e, !1);
@@ -380,8 +380,8 @@ var x = He, Hi = class {
380
380
  return this._insert(e, !0);
381
381
  }
382
382
  _insert(e, i) {
383
- let n = new x(e);
384
- if (this._first === x.Undefined)
383
+ let n = new R(e);
384
+ if (this._first === R.Undefined)
385
385
  this._first = n, this._last = n;
386
386
  else if (i) {
387
387
  let o = this._last;
@@ -397,41 +397,41 @@ var x = He, Hi = class {
397
397
  };
398
398
  }
399
399
  shift() {
400
- if (this._first !== x.Undefined) {
400
+ if (this._first !== R.Undefined) {
401
401
  let e = this._first.element;
402
402
  return this._remove(this._first), e;
403
403
  }
404
404
  }
405
405
  pop() {
406
- if (this._last !== x.Undefined) {
406
+ if (this._last !== R.Undefined) {
407
407
  let e = this._last.element;
408
408
  return this._remove(this._last), e;
409
409
  }
410
410
  }
411
411
  _remove(e) {
412
- if (e.prev !== x.Undefined && e.next !== x.Undefined) {
412
+ if (e.prev !== R.Undefined && e.next !== R.Undefined) {
413
413
  let i = e.prev;
414
414
  i.next = e.next, e.next.prev = i;
415
415
  } else
416
- e.prev === x.Undefined && e.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : e.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : e.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
416
+ e.prev === R.Undefined && e.next === R.Undefined ? (this._first = R.Undefined, this._last = R.Undefined) : e.next === R.Undefined ? (this._last = this._last.prev, this._last.next = R.Undefined) : e.prev === R.Undefined && (this._first = this._first.next, this._first.prev = R.Undefined);
417
417
  this._size -= 1;
418
418
  }
419
419
  *[Symbol.iterator]() {
420
420
  let e = this._first;
421
- for (; e !== x.Undefined; )
421
+ for (; e !== R.Undefined; )
422
422
  yield e.element, e = e.next;
423
423
  }
424
- }, Wi = 0, de = class {
424
+ }, Zi = 0, fe = class {
425
425
  constructor(e) {
426
- this.value = e, this.id = Wi++;
426
+ this.value = e, this.id = Zi++;
427
427
  }
428
- }, ve = class {
428
+ }, ge = class {
429
429
  constructor(e) {
430
430
  this.options = e, this._size = 0;
431
431
  }
432
432
  dispose(e) {
433
433
  var i, n;
434
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof de && (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));
434
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof fe && (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));
435
435
  }
436
436
  get event() {
437
437
  return this._event != null || (this._event = (e, i) => {
@@ -441,15 +441,15 @@ var x = He, Hi = class {
441
441
  console.info("[Jolibox SDK] Emitter is _disposed");
442
442
  };
443
443
  i && (e = e.bind(i));
444
- let l = new de(e);
445
- return this._listeners ? this._listeners instanceof de ? 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++, () => {
446
- var c, u, f, v;
444
+ let l = new fe(e);
445
+ return this._listeners ? this._listeners instanceof fe ? 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++, () => {
446
+ var c, h, u, f;
447
447
  if (!this._disposed) {
448
- if (this._listeners instanceof de)
449
- this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (u = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || u.call(c));
448
+ if (this._listeners instanceof fe)
449
+ this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || h.call(c));
450
450
  else if (this._listeners) {
451
451
  let y = this._listeners.indexOf(l);
452
- y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((v = (f = this.options) == null ? void 0 : f.onDidRemoveLastListener) == null || v.call(f)));
452
+ y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((f = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || f.call(u)));
453
453
  }
454
454
  }
455
455
  };
@@ -471,19 +471,19 @@ var x = He, Hi = class {
471
471
  }
472
472
  }
473
473
  fire(e) {
474
- this._listeners && (this._listeners instanceof de ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
474
+ this._listeners && (this._listeners instanceof fe ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
475
475
  }
476
476
  hasListeners() {
477
477
  return this._size > 0;
478
478
  }
479
- }, Ji = class {
479
+ }, en = class {
480
480
  constructor() {
481
481
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
482
482
  }
483
483
  on(t, e) {
484
484
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
485
485
  var n;
486
- let r = (n = this.listeners.get(t)) != null ? n : new ve(), o = (d) => e(...d.args), s = r.event(o);
486
+ let r = (n = this.listeners.get(t)) != null ? n : new ge(), o = (d) => e(...d.args), s = r.event(o);
487
487
  this.listerHandlerMap.set(e, {
488
488
  handler: o,
489
489
  dispose: s
@@ -504,7 +504,7 @@ var x = He, Hi = class {
504
504
  let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
505
505
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
506
506
  r[o - 1] = arguments[o];
507
- i || (i = new Hi(), this.cachedEventQueue.set(t, i)), i.push({
507
+ i || (i = new Qi(), this.cachedEventQueue.set(t, i)), i.push({
508
508
  args: r
509
509
  }), e && e.fire({
510
510
  event: t,
@@ -518,20 +518,20 @@ var x = He, Hi = class {
518
518
  };
519
519
  this.on(t, n, !1);
520
520
  }
521
- }, Je = {};
522
- Li(Je, {
523
- None: () => Yi,
524
- filter: () => Xi,
525
- once: () => Bt,
526
- toPromise: () => Qi
521
+ }, Ze = {};
522
+ $i(Ze, {
523
+ None: () => tn,
524
+ filter: () => rn,
525
+ once: () => Gt,
526
+ toPromise: () => nn
527
527
  });
528
- var Yi = () => (console.log("[Jolibox SDK] None Event"), () => {
528
+ var tn = () => (console.log("[Jolibox SDK] None Event"), () => {
529
529
  console.log("[Jolibox SDK] None Event dispose");
530
530
  });
531
- function Qi(t) {
532
- return new Promise((e) => Bt(t)(e));
531
+ function nn(t) {
532
+ return new Promise((e) => Gt(t)(e));
533
533
  }
534
- function Bt(t) {
534
+ function Gt(t) {
535
535
  return function(e) {
536
536
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
537
537
  return t((r) => {
@@ -540,52 +540,52 @@ function Bt(t) {
540
540
  }, null);
541
541
  };
542
542
  }
543
- function Xi(t, e) {
543
+ function rn(t, e) {
544
544
  return ((i) => {
545
545
  let n = {
546
546
  onWillAddFirstListener() {
547
547
  i(r.fire, r);
548
548
  }
549
- }, r = new ve(n);
549
+ }, r = new ge(n);
550
550
  return r.event;
551
551
  })(function(i) {
552
552
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
553
553
  return t((r) => e(r) && i.call(n, r), null);
554
554
  });
555
555
  }
556
- var je = Symbol.for("Jolibox.hostEmitter"), Zi = () => {
557
- let t = new Ji();
558
- return globalThis[je] || (globalThis[je] = {
556
+ var ze = Symbol.for("Jolibox.hostEmitter"), on = () => {
557
+ let t = new en();
558
+ return globalThis[ze] || (globalThis[ze] = {
559
559
  on: t.on.bind(t),
560
560
  off: t.off.bind(t),
561
561
  emit: t.emit.bind(t),
562
562
  once: t.once.bind(t)
563
- }), globalThis[je];
563
+ }), globalThis[ze];
564
564
  };
565
- Zi();
566
- function en(t, e) {
565
+ on();
566
+ function sn(t, e) {
567
567
  let i = Math.min(t.length, e.length);
568
568
  for (let n = 0; n < i; n++)
569
- tn(t[n], e[n]);
569
+ an(t[n], e[n]);
570
570
  }
571
- function tn(t, e) {
572
- if (Ci(e)) {
571
+ function an(t, e) {
572
+ if (ji(e)) {
573
573
  if (typeof t !== e)
574
574
  throw new Error(`argument does not match constraint: typeof ${e}`);
575
- } else if (Ui(e)) {
575
+ } else if (zi(e)) {
576
576
  try {
577
577
  if (t instanceof e)
578
578
  return;
579
579
  } catch (i) {
580
580
  }
581
- if (!$i(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
581
+ if (!Vi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
582
582
  return;
583
583
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
584
584
  }
585
585
  }
586
- var Ye = class {
586
+ var et = class {
587
587
  constructor() {
588
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ve(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
588
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ge(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
589
589
  }
590
590
  registerCommand(e) {
591
591
  if (!e)
@@ -598,7 +598,7 @@ var Ye = class {
598
598
  e.handler = function() {
599
599
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
600
600
  s[a] = arguments[a];
601
- return en(s, n), r(...s);
601
+ return sn(s, n), r(...s);
602
602
  };
603
603
  }
604
604
  let {
@@ -618,19 +618,19 @@ var Ye = class {
618
618
  return e;
619
619
  }
620
620
  };
621
- Ye = Mt([$t], Ye);
622
- var yt = class {
621
+ et = Bt([jt], et);
622
+ var wt = class {
623
623
  constructor() {
624
- this._onWillExecuteCommand = new ve(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ve(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Ye(), this._starActivation = null;
624
+ this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
625
625
  }
626
626
  _activateStar() {
627
- return this._starActivation || (this._starActivation = Pi(3e4)), this._starActivation;
627
+ return this._starActivation || (this._starActivation = Bi(3e4)), this._starActivation;
628
628
  }
629
629
  executeCommand(e) {
630
630
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
631
631
  n[r - 1] = arguments[r];
632
- return Ni(this, null, function* () {
633
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Je.toPromise(Je.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
632
+ return Ui(this, null, function* () {
633
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Ze.toPromise(Ze.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
634
634
  });
635
635
  }
636
636
  executeCommandThowErr(e) {
@@ -676,15 +676,15 @@ var yt = class {
676
676
  }
677
677
  }
678
678
  };
679
- yt = Mt([$t], yt);
680
- function Fe(t, e, i) {
681
- return (e = nn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
679
+ wt = Bt([jt], wt);
680
+ function Ge(t, e, i) {
681
+ return (e = dn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
682
682
  }
683
- function nn(t) {
684
- var e = rn(t, "string");
683
+ function dn(t) {
684
+ var e = ln(t, "string");
685
685
  return typeof e == "symbol" ? e : e + "";
686
686
  }
687
- function rn(t, e) {
687
+ function ln(t, e) {
688
688
  if (typeof t != "object" || !t)
689
689
  return t;
690
690
  var i = t[Symbol.toPrimitive];
@@ -696,10 +696,10 @@ function rn(t, e) {
696
696
  }
697
697
  return (e === "string" ? String : Number)(t);
698
698
  }
699
- class Vt {
699
+ class Kt {
700
700
  constructor(e) {
701
701
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
702
- Fe(this, "context", void 0), Fe(this, "placement", "GAME"), Fe(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
702
+ Ge(this, "context", void 0), Ge(this, "placement", "GAME"), Ge(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
703
703
  }
704
704
  getLocation() {
705
705
  const e = new URLSearchParams(window.location.search), i = {};
@@ -713,7 +713,7 @@ class Vt {
713
713
  getDevice() {
714
714
  var e, i, n, r;
715
715
  return {
716
- platform: (e = this.contextInfo.platform) != null ? e : Ft.WebSDK,
716
+ platform: (e = this.contextInfo.platform) != null ? e : zt.WebSDK,
717
717
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
718
718
  appVersion: "1.0.0",
719
719
  // mock
@@ -732,7 +732,7 @@ class Vt {
732
732
  protocolVersion: "1.0.0",
733
733
  events: [{
734
734
  name: e,
735
- type: Ut.System,
735
+ type: Ft.System,
736
736
  location: this.getLocation(),
737
737
  target: null,
738
738
  extra: i,
@@ -740,19 +740,19 @@ class Vt {
740
740
  userId: (o = this.contextInfo.userId) != null ? o : null
741
741
  }],
742
742
  device: this.getDevice(),
743
- project: jt.WebSDK
743
+ project: Vt.WebSDK
744
744
  };
745
- return Ki(r);
745
+ return Yi(r);
746
746
  }
747
747
  }
748
- function we(t, e, i) {
749
- return (e = on(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
748
+ function ke(t, e, i) {
749
+ return (e = cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
750
750
  }
751
- function on(t) {
752
- var e = sn(t, "string");
751
+ function cn(t) {
752
+ var e = un(t, "string");
753
753
  return typeof e == "symbol" ? e : e + "";
754
754
  }
755
- function sn(t, e) {
755
+ function un(t, e) {
756
756
  if (typeof t != "object" || !t)
757
757
  return t;
758
758
  var i = t[Symbol.toPrimitive];
@@ -764,9 +764,9 @@ function sn(t, e) {
764
764
  }
765
765
  return (e === "string" ? String : Number)(t);
766
766
  }
767
- class an {
767
+ class hn {
768
768
  constructor(e) {
769
- we(this, "configs", null), we(this, "firstRun", !0), we(this, "context", void 0), we(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
769
+ ke(this, "configs", null), ke(this, "firstRun", !0), ke(this, "context", void 0), ke(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
770
770
  }
771
771
  async init() {
772
772
  try {
@@ -790,14 +790,14 @@ class an {
790
790
  return this.firstRun = !1, e;
791
791
  }
792
792
  }
793
- function H(t, e, i) {
794
- return (e = dn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
793
+ function W(t, e, i) {
794
+ return (e = fn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
795
795
  }
796
- function dn(t) {
797
- var e = ln(t, "string");
796
+ function fn(t) {
797
+ var e = vn(t, "string");
798
798
  return typeof e == "symbol" ? e : e + "";
799
799
  }
800
- function ln(t, e) {
800
+ function vn(t, e) {
801
801
  if (typeof t != "object" || !t)
802
802
  return t;
803
803
  var i = t[Symbol.toPrimitive];
@@ -809,32 +809,32 @@ function ln(t, e) {
809
809
  }
810
810
  return (e === "string" ? String : Number)(t);
811
811
  }
812
- class cn {
812
+ class pn {
813
813
  /**
814
814
  * Internal constructor, should not be called directly
815
815
  */
816
816
  constructor(e, i) {
817
- H(this, "name", "ADSENSE"), H(this, "context", void 0), H(this, "contextInfo", void 0), H(this, "configured", !1), H(this, "initParams", void 0), H(this, "push", function() {
817
+ W(this, "name", "ADSENSE"), W(this, "context", void 0), W(this, "contextInfo", void 0), W(this, "configured", !1), W(this, "initParams", void 0), W(this, "push", function() {
818
818
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
819
819
  window.adsbygoogle.push(n);
820
- }), H(this, "adConfig", (n) => {
820
+ }), W(this, "adConfig", (n) => {
821
821
  const s = n, {
822
822
  onReady: r
823
- } = s, o = ut(s, [
823
+ } = s, o = ft(s, [
824
824
  "onReady"
825
825
  ]);
826
826
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
827
- }), H(this, "adBreak", (n) => {
827
+ }), W(this, "adBreak", (n) => {
828
828
  if (!this.contextInfo.objectId) {
829
829
  console.warn("Game ID is not set, skip calling adBreak");
830
830
  return;
831
831
  }
832
832
  this.push(n);
833
- }), H(this, "adUnit", async (n) => {
834
- var y, _, A, h;
833
+ }), W(this, "adUnit", async (n) => {
834
+ var y, v, g, p;
835
835
  if (this.context.track("CallAdUnit", {
836
- adFormat: (_ = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? _ : null,
837
- fullWidthResponsive: (A = n.fullWidthResponsive) != null ? A : null
836
+ adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
837
+ fullWidthResponsive: (g = n.fullWidthResponsive) != null ? g : null
838
838
  }), document.querySelector("#jolibox-ads")) {
839
839
  console.warn("Ad unit already set, skipping");
840
840
  return;
@@ -854,21 +854,21 @@ class cn {
854
854
  let c = o;
855
855
  if (c || (c = this.initParams.unitId), !c)
856
856
  throw new Error("slot is required");
857
- const u = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, f = document.createElement("ins");
858
- if (f.className = "adsbygoogle", f.id = "jolibox-ads", f.style.display = "block", f.setAttribute("data-ad-client", this.initParams.clientId), f.setAttribute("data-ad-slot", c), u && f.setAttribute("data-ad-format", u), a && f.setAttribute("data-full-width-responsive", a), d && f.setAttribute("style", d), (h = this.contextInfo.testAdsMode) != null ? h : !1) {
859
- const p = document.createElement("div");
860
- p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center", p.style.backgroundColor = "rgba(0, 0, 0, 0.5)", p.style.color = "white", p.innerHTML = "Test Ad", f.style.position = "relative", l.appendChild(f), f.appendChild(p);
857
+ const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, u = document.createElement("ins");
858
+ if (u.className = "adsbygoogle", u.id = "jolibox-ads", u.style.display = "block", u.setAttribute("data-ad-client", this.initParams.clientId), u.setAttribute("data-ad-slot", c), h && u.setAttribute("data-ad-format", h), a && u.setAttribute("data-full-width-responsive", a), d && u.setAttribute("style", d), (p = this.contextInfo.testAdsMode) != null ? p : !1) {
859
+ const _ = document.createElement("div");
860
+ _.style.position = "absolute", _.style.top = "0", _.style.left = "0", _.style.width = "100%", _.style.height = "100%", _.style.display = "flex", _.style.justifyContent = "center", _.style.alignItems = "center", _.style.backgroundColor = "rgba(0, 0, 0, 0.5)", _.style.color = "white", _.innerHTML = "Test Ad", u.style.position = "relative", l.appendChild(u), u.appendChild(_);
861
861
  } else
862
- l.appendChild(f), new MutationObserver((L) => {
863
- L.forEach((z) => {
864
- if (z.type === "attributes" && z.attributeName === "data-ad-status") {
865
- const $ = f.getAttribute("data-ad-status");
862
+ l.appendChild(u), new MutationObserver((w) => {
863
+ w.forEach((P) => {
864
+ if (P.type === "attributes" && P.attributeName === "data-ad-status") {
865
+ const U = u.getAttribute("data-ad-status");
866
866
  this.context.track("AdSenseUnitStatusChanged", {
867
- status: $ != null ? $ : "null"
867
+ status: U != null ? U : "null"
868
868
  });
869
869
  }
870
870
  });
871
- }).observe(f, {
871
+ }).observe(u, {
872
872
  attributes: !0,
873
873
  attributeFilter: ["data-ad-status"]
874
874
  }), this.push({});
@@ -887,18 +887,18 @@ class cn {
887
887
  }
888
888
  }
889
889
  }
890
- function un(t) {
890
+ function yn(t) {
891
891
  if (t.sheet)
892
892
  return t.sheet;
893
893
  for (var e = 0; e < document.styleSheets.length; e++)
894
894
  if (document.styleSheets[e].ownerNode === t)
895
895
  return document.styleSheets[e];
896
896
  }
897
- function fn(t) {
897
+ function _n(t) {
898
898
  var e = document.createElement("style");
899
899
  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;
900
900
  }
901
- var hn = /* @__PURE__ */ function() {
901
+ var gn = /* @__PURE__ */ function() {
902
902
  function t(i) {
903
903
  var n = this;
904
904
  this._insertTag = function(r) {
@@ -910,10 +910,10 @@ var hn = /* @__PURE__ */ function() {
910
910
  return e.hydrate = function(n) {
911
911
  n.forEach(this._insertTag);
912
912
  }, e.insert = function(n) {
913
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(fn(this));
913
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(_n(this));
914
914
  var r = this.tags[this.tags.length - 1];
915
915
  if (this.isSpeedy) {
916
- var o = un(r);
916
+ var o = yn(r);
917
917
  try {
918
918
  o.insertRule(n, o.cssRules.length);
919
919
  } catch (s) {
@@ -927,66 +927,66 @@ var hn = /* @__PURE__ */ function() {
927
927
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
928
928
  }), this.tags = [], this.ctr = 0;
929
929
  }, t;
930
- }(), D = "-ms-", ke = "-moz-", g = "-webkit-", zt = "comm", rt = "rule", ot = "decl", vn = "@import", Gt = "@keyframes", pn = "@layer", _n = Math.abs, Ce = String.fromCharCode, yn = Object.assign;
931
- function gn(t, e) {
932
- return O(t, 0) ^ 45 ? (((e << 2 ^ O(t, 0)) << 2 ^ O(t, 1)) << 2 ^ O(t, 2)) << 2 ^ O(t, 3) : 0;
930
+ }(), C = "-ms-", Ne = "-moz-", A = "-webkit-", qt = "comm", dt = "rule", lt = "decl", wn = "@import", Ht = "@keyframes", bn = "@layer", An = Math.abs, Be = String.fromCharCode, mn = Object.assign;
931
+ function En(t, e) {
932
+ return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
933
933
  }
934
- function Kt(t) {
934
+ function Wt(t) {
935
935
  return t.trim();
936
936
  }
937
- function mn(t, e) {
937
+ function Sn(t, e) {
938
938
  return (t = e.exec(t)) ? t[0] : t;
939
939
  }
940
940
  function m(t, e, i) {
941
941
  return t.replace(e, i);
942
942
  }
943
- function Qe(t, e) {
943
+ function tt(t, e) {
944
944
  return t.indexOf(e);
945
945
  }
946
- function O(t, e) {
946
+ function D(t, e) {
947
947
  return t.charCodeAt(e) | 0;
948
948
  }
949
- function pe(t, e, i) {
949
+ function we(t, e, i) {
950
950
  return t.slice(e, i);
951
951
  }
952
- function K(t) {
952
+ function q(t) {
953
953
  return t.length;
954
954
  }
955
- function st(t) {
955
+ function ct(t) {
956
956
  return t.length;
957
957
  }
958
- function be(t, e) {
958
+ function xe(t, e) {
959
959
  return e.push(t), t;
960
960
  }
961
- function An(t, e) {
961
+ function kn(t, e) {
962
962
  return t.map(e).join("");
963
963
  }
964
- var Me = 1, ie = 1, qt = 0, M = 0, T = 0, ne = "";
965
- function $e(t, e, i, n, r, o, s) {
966
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Me, column: ie, length: s, return: "" };
964
+ var je = 1, ae = 1, Jt = 0, $ = 0, I = 0, de = "";
965
+ function Fe(t, e, i, n, r, o, s) {
966
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
967
967
  }
968
- function le(t, e) {
969
- return yn($e("", null, null, "", null, null, 0), t, { length: -t.length }, e);
968
+ function ve(t, e) {
969
+ return mn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
970
970
  }
971
- function wn() {
972
- return T;
971
+ function xn() {
972
+ return I;
973
973
  }
974
- function bn() {
975
- return T = M > 0 ? O(ne, --M) : 0, ie--, T === 10 && (ie = 1, Me--), T;
974
+ function Rn() {
975
+ return I = $ > 0 ? D(de, --$) : 0, ae--, I === 10 && (ae = 1, je--), I;
976
976
  }
977
- function U() {
978
- return T = M < qt ? O(ne, M++) : 0, ie++, T === 10 && (ie = 1, Me++), T;
977
+ function j() {
978
+ return I = $ < Jt ? D(de, $++) : 0, ae++, I === 10 && (ae = 1, je++), I;
979
979
  }
980
- function q() {
981
- return O(ne, M);
980
+ function H() {
981
+ return D(de, $);
982
982
  }
983
- function Se() {
984
- return M;
983
+ function Ie() {
984
+ return $;
985
985
  }
986
- function ye(t, e) {
987
- return pe(ne, t, e);
986
+ function Ae(t, e) {
987
+ return we(de, t, e);
988
988
  }
989
- function _e(t) {
989
+ function be(t) {
990
990
  switch (t) {
991
991
  case 0:
992
992
  case 9:
@@ -1018,240 +1018,240 @@ function _e(t) {
1018
1018
  }
1019
1019
  return 0;
1020
1020
  }
1021
- function Ht(t) {
1022
- return Me = ie = 1, qt = K(ne = t), M = 0, [];
1021
+ function Yt(t) {
1022
+ return je = ae = 1, Jt = q(de = t), $ = 0, [];
1023
1023
  }
1024
- function Wt(t) {
1025
- return ne = "", t;
1024
+ function Xt(t) {
1025
+ return de = "", t;
1026
1026
  }
1027
- function xe(t) {
1028
- return Kt(ye(M - 1, Xe(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1027
+ function Oe(t) {
1028
+ return Wt(Ae($ - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1029
1029
  }
1030
- function En(t) {
1031
- for (; (T = q()) && T < 33; )
1032
- U();
1033
- return _e(t) > 2 || _e(T) > 3 ? "" : " ";
1030
+ function In(t) {
1031
+ for (; (I = H()) && I < 33; )
1032
+ j();
1033
+ return be(t) > 2 || be(I) > 3 ? "" : " ";
1034
1034
  }
1035
- function Sn(t, e) {
1036
- for (; --e && U() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
1035
+ function On(t, e) {
1036
+ for (; --e && j() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
1037
1037
  ;
1038
- return ye(t, Se() + (e < 6 && q() == 32 && U() == 32));
1038
+ return Ae(t, Ie() + (e < 6 && H() == 32 && j() == 32));
1039
1039
  }
1040
- function Xe(t) {
1041
- for (; U(); )
1042
- switch (T) {
1040
+ function it(t) {
1041
+ for (; j(); )
1042
+ switch (I) {
1043
1043
  case t:
1044
- return M;
1044
+ return $;
1045
1045
  case 34:
1046
1046
  case 39:
1047
- t !== 34 && t !== 39 && Xe(T);
1047
+ t !== 34 && t !== 39 && it(I);
1048
1048
  break;
1049
1049
  case 40:
1050
- t === 41 && Xe(t);
1050
+ t === 41 && it(t);
1051
1051
  break;
1052
1052
  case 92:
1053
- U();
1053
+ j();
1054
1054
  break;
1055
1055
  }
1056
- return M;
1056
+ return $;
1057
1057
  }
1058
- function xn(t, e) {
1059
- for (; U() && t + T !== 57; )
1060
- if (t + T === 84 && q() === 47)
1058
+ function Tn(t, e) {
1059
+ for (; j() && t + I !== 57; )
1060
+ if (t + I === 84 && H() === 47)
1061
1061
  break;
1062
- return "/*" + ye(e, M - 1) + "*" + Ce(t === 47 ? t : U());
1062
+ return "/*" + Ae(e, $ - 1) + "*" + Be(t === 47 ? t : j());
1063
1063
  }
1064
- function Rn(t) {
1065
- for (; !_e(q()); )
1066
- U();
1067
- return ye(t, M);
1064
+ function Dn(t) {
1065
+ for (; !be(H()); )
1066
+ j();
1067
+ return Ae(t, $);
1068
1068
  }
1069
- function In(t) {
1070
- return Wt(Re("", null, null, null, [""], t = Ht(t), 0, [0], t));
1069
+ function Ln(t) {
1070
+ return Xt(Te("", null, null, null, [""], t = Yt(t), 0, [0], t));
1071
1071
  }
1072
- function Re(t, e, i, n, r, o, s, a, d) {
1073
- for (var l = 0, c = 0, u = s, f = 0, v = 0, y = 0, _ = 1, A = 1, h = 1, p = 0, L = "", z = r, $ = o, j = n, E = L; A; )
1074
- switch (y = p, p = U()) {
1072
+ function Te(t, e, i, n, r, o, s, a, d) {
1073
+ for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", P = r, U = o, F = n, k = w; g; )
1074
+ switch (y = _, _ = j()) {
1075
1075
  case 40:
1076
- if (y != 108 && O(E, u - 1) == 58) {
1077
- Qe(E += m(xe(p), "&", "&\f"), "&\f") != -1 && (h = -1);
1076
+ if (y != 108 && D(k, h - 1) == 58) {
1077
+ tt(k += m(Oe(_), "&", "&\f"), "&\f") != -1 && (p = -1);
1078
1078
  break;
1079
1079
  }
1080
1080
  case 34:
1081
1081
  case 39:
1082
1082
  case 91:
1083
- E += xe(p);
1083
+ k += Oe(_);
1084
1084
  break;
1085
1085
  case 9:
1086
1086
  case 10:
1087
1087
  case 13:
1088
1088
  case 32:
1089
- E += En(y);
1089
+ k += In(y);
1090
1090
  break;
1091
1091
  case 92:
1092
- E += Sn(Se() - 1, 7);
1092
+ k += On(Ie() - 1, 7);
1093
1093
  continue;
1094
1094
  case 47:
1095
- switch (q()) {
1095
+ switch (H()) {
1096
1096
  case 42:
1097
1097
  case 47:
1098
- be(Tn(xn(U(), Se()), e, i), d);
1098
+ xe(Cn(Tn(j(), Ie()), e, i), d);
1099
1099
  break;
1100
1100
  default:
1101
- E += "/";
1101
+ k += "/";
1102
1102
  }
1103
1103
  break;
1104
- case 123 * _:
1105
- a[l++] = K(E) * h;
1106
- case 125 * _:
1104
+ case 123 * v:
1105
+ a[l++] = q(k) * p;
1106
+ case 125 * v:
1107
1107
  case 59:
1108
1108
  case 0:
1109
- switch (p) {
1109
+ switch (_) {
1110
1110
  case 0:
1111
1111
  case 125:
1112
- A = 0;
1112
+ g = 0;
1113
1113
  case 59 + c:
1114
- h == -1 && (E = m(E, /\f/g, "")), v > 0 && K(E) - u && be(v > 32 ? mt(E + ";", n, i, u - 1) : mt(m(E, " ", "") + ";", n, i, u - 2), d);
1114
+ p == -1 && (k = m(k, /\f/g, "")), f > 0 && q(k) - h && xe(f > 32 ? At(k + ";", n, i, h - 1) : At(m(k, " ", "") + ";", n, i, h - 2), d);
1115
1115
  break;
1116
1116
  case 59:
1117
- E += ";";
1117
+ k += ";";
1118
1118
  default:
1119
- if (be(j = gt(E, e, i, l, c, r, a, L, z = [], $ = [], u), o), p === 123)
1119
+ if (xe(F = bt(k, e, i, l, c, r, a, w, P = [], U = [], h), o), _ === 123)
1120
1120
  if (c === 0)
1121
- Re(E, e, j, j, z, o, u, a, $);
1121
+ Te(k, e, F, F, P, o, h, a, U);
1122
1122
  else
1123
- switch (f === 99 && O(E, 3) === 110 ? 100 : f) {
1123
+ switch (u === 99 && D(k, 3) === 110 ? 100 : u) {
1124
1124
  case 100:
1125
1125
  case 108:
1126
1126
  case 109:
1127
1127
  case 115:
1128
- Re(t, j, j, n && be(gt(t, j, j, 0, 0, r, a, L, r, z = [], u), $), r, $, u, a, n ? z : $);
1128
+ Te(t, F, F, n && xe(bt(t, F, F, 0, 0, r, a, w, r, P = [], h), U), r, U, h, a, n ? P : U);
1129
1129
  break;
1130
1130
  default:
1131
- Re(E, j, j, j, [""], $, 0, a, $);
1131
+ Te(k, F, F, F, [""], U, 0, a, U);
1132
1132
  }
1133
1133
  }
1134
- l = c = v = 0, _ = h = 1, L = E = "", u = s;
1134
+ l = c = f = 0, v = p = 1, w = k = "", h = s;
1135
1135
  break;
1136
1136
  case 58:
1137
- u = 1 + K(E), v = y;
1137
+ h = 1 + q(k), f = y;
1138
1138
  default:
1139
- if (_ < 1) {
1140
- if (p == 123)
1141
- --_;
1142
- else if (p == 125 && _++ == 0 && bn() == 125)
1139
+ if (v < 1) {
1140
+ if (_ == 123)
1141
+ --v;
1142
+ else if (_ == 125 && v++ == 0 && Rn() == 125)
1143
1143
  continue;
1144
1144
  }
1145
- switch (E += Ce(p), p * _) {
1145
+ switch (k += Be(_), _ * v) {
1146
1146
  case 38:
1147
- h = c > 0 ? 1 : (E += "\f", -1);
1147
+ p = c > 0 ? 1 : (k += "\f", -1);
1148
1148
  break;
1149
1149
  case 44:
1150
- a[l++] = (K(E) - 1) * h, h = 1;
1150
+ a[l++] = (q(k) - 1) * p, p = 1;
1151
1151
  break;
1152
1152
  case 64:
1153
- q() === 45 && (E += xe(U())), f = q(), c = u = K(L = E += Rn(Se())), p++;
1153
+ H() === 45 && (k += Oe(j())), u = H(), c = h = q(w = k += Dn(Ie())), _++;
1154
1154
  break;
1155
1155
  case 45:
1156
- y === 45 && K(E) == 2 && (_ = 0);
1156
+ y === 45 && q(k) == 2 && (v = 0);
1157
1157
  }
1158
1158
  }
1159
1159
  return o;
1160
1160
  }
1161
- function gt(t, e, i, n, r, o, s, a, d, l, c) {
1162
- for (var u = r - 1, f = r === 0 ? o : [""], v = st(f), y = 0, _ = 0, A = 0; y < n; ++y)
1163
- for (var h = 0, p = pe(t, u + 1, u = _n(_ = s[y])), L = t; h < v; ++h)
1164
- (L = Kt(_ > 0 ? f[h] + " " + p : m(p, /&\f/g, f[h]))) && (d[A++] = L);
1165
- return $e(t, e, i, r === 0 ? rt : a, d, l, c);
1161
+ function bt(t, e, i, n, r, o, s, a, d, l, c) {
1162
+ for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
1163
+ for (var p = 0, _ = we(t, h + 1, h = An(v = s[y])), w = t; p < f; ++p)
1164
+ (w = Wt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
1165
+ return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
1166
1166
  }
1167
- function Tn(t, e, i) {
1168
- return $e(t, e, i, zt, Ce(wn()), pe(t, 2, -2), 0);
1167
+ function Cn(t, e, i) {
1168
+ return Fe(t, e, i, qt, Be(xn()), we(t, 2, -2), 0);
1169
1169
  }
1170
- function mt(t, e, i, n) {
1171
- return $e(t, e, i, ot, pe(t, 0, n), pe(t, n + 1, -1), n);
1170
+ function At(t, e, i, n) {
1171
+ return Fe(t, e, i, lt, we(t, 0, n), we(t, n + 1, -1), n);
1172
1172
  }
1173
- function te(t, e) {
1174
- for (var i = "", n = st(t), r = 0; r < n; r++)
1173
+ function oe(t, e) {
1174
+ for (var i = "", n = ct(t), r = 0; r < n; r++)
1175
1175
  i += e(t[r], r, t, e) || "";
1176
1176
  return i;
1177
1177
  }
1178
- function On(t, e, i, n) {
1178
+ function Nn(t, e, i, n) {
1179
1179
  switch (t.type) {
1180
- case pn:
1180
+ case bn:
1181
1181
  if (t.children.length)
1182
1182
  break;
1183
- case vn:
1184
- case ot:
1183
+ case wn:
1184
+ case lt:
1185
1185
  return t.return = t.return || t.value;
1186
- case zt:
1186
+ case qt:
1187
1187
  return "";
1188
- case Gt:
1189
- return t.return = t.value + "{" + te(t.children, n) + "}";
1190
- case rt:
1188
+ case Ht:
1189
+ return t.return = t.value + "{" + oe(t.children, n) + "}";
1190
+ case dt:
1191
1191
  t.value = t.props.join(",");
1192
1192
  }
1193
- return K(i = te(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1193
+ return q(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1194
1194
  }
1195
- function kn(t) {
1196
- var e = st(t);
1195
+ function Pn(t) {
1196
+ var e = ct(t);
1197
1197
  return function(i, n, r, o) {
1198
1198
  for (var s = "", a = 0; a < e; a++)
1199
1199
  s += t[a](i, n, r, o) || "";
1200
1200
  return s;
1201
1201
  };
1202
1202
  }
1203
- function Dn(t) {
1203
+ function Mn(t) {
1204
1204
  return function(e) {
1205
1205
  e.root || (e = e.return) && t(e);
1206
1206
  };
1207
1207
  }
1208
- function Ln(t) {
1208
+ function $n(t) {
1209
1209
  var e = /* @__PURE__ */ Object.create(null);
1210
1210
  return function(i) {
1211
1211
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1212
1212
  };
1213
1213
  }
1214
- var Nn = function(e, i, n) {
1215
- for (var r = 0, o = 0; r = o, o = q(), r === 38 && o === 12 && (i[n] = 1), !_e(o); )
1216
- U();
1217
- return ye(e, M);
1218
- }, Pn = function(e, i) {
1214
+ var Un = function(e, i, n) {
1215
+ for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !be(o); )
1216
+ j();
1217
+ return Ae(e, $);
1218
+ }, Bn = function(e, i) {
1219
1219
  var n = -1, r = 44;
1220
1220
  do
1221
- switch (_e(r)) {
1221
+ switch (be(r)) {
1222
1222
  case 0:
1223
- r === 38 && q() === 12 && (i[n] = 1), e[n] += Nn(M - 1, i, n);
1223
+ r === 38 && H() === 12 && (i[n] = 1), e[n] += Un($ - 1, i, n);
1224
1224
  break;
1225
1225
  case 2:
1226
- e[n] += xe(r);
1226
+ e[n] += Oe(r);
1227
1227
  break;
1228
1228
  case 4:
1229
1229
  if (r === 44) {
1230
- e[++n] = q() === 58 ? "&\f" : "", i[n] = e[n].length;
1230
+ e[++n] = H() === 58 ? "&\f" : "", i[n] = e[n].length;
1231
1231
  break;
1232
1232
  }
1233
1233
  default:
1234
- e[n] += Ce(r);
1234
+ e[n] += Be(r);
1235
1235
  }
1236
- while (r = U());
1236
+ while (r = j());
1237
1237
  return e;
1238
- }, Cn = function(e, i) {
1239
- return Wt(Pn(Ht(e), i));
1240
- }, At = /* @__PURE__ */ new WeakMap(), Mn = function(e) {
1238
+ }, jn = function(e, i) {
1239
+ return Xt(Bn(Yt(e), i));
1240
+ }, mt = /* @__PURE__ */ new WeakMap(), Fn = function(e) {
1241
1241
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1242
1242
  // negative .length indicates that this rule has been already prefixed
1243
1243
  e.length < 1)) {
1244
1244
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1245
1245
  if (n = n.parent, !n)
1246
1246
  return;
1247
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !At.get(n)) && !r) {
1248
- At.set(e, !0);
1249
- for (var o = [], s = Cn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1247
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !mt.get(n)) && !r) {
1248
+ mt.set(e, !0);
1249
+ for (var o = [], s = jn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1250
1250
  for (var c = 0; c < a.length; c++, l++)
1251
1251
  e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
1252
1252
  }
1253
1253
  }
1254
- }, $n = function(e) {
1254
+ }, Vn = function(e) {
1255
1255
  if (e.type === "decl") {
1256
1256
  var i = e.value;
1257
1257
  // charcode for l
@@ -1259,10 +1259,10 @@ var Nn = function(e, i, n) {
1259
1259
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1260
1260
  }
1261
1261
  };
1262
- function Jt(t, e) {
1263
- switch (gn(t, e)) {
1262
+ function Qt(t, e) {
1263
+ switch (En(t, e)) {
1264
1264
  case 5103:
1265
- return g + "print-" + t + t;
1265
+ return A + "print-" + t + t;
1266
1266
  case 5737:
1267
1267
  case 4201:
1268
1268
  case 3177:
@@ -1288,44 +1288,44 @@ function Jt(t, e) {
1288
1288
  case 5365:
1289
1289
  case 5621:
1290
1290
  case 3829:
1291
- return g + t + t;
1291
+ return A + t + t;
1292
1292
  case 5349:
1293
1293
  case 4246:
1294
1294
  case 4810:
1295
1295
  case 6968:
1296
1296
  case 2756:
1297
- return g + t + ke + t + D + t + t;
1297
+ return A + t + Ne + t + C + t + t;
1298
1298
  case 6828:
1299
1299
  case 4268:
1300
- return g + t + D + t + t;
1300
+ return A + t + C + t + t;
1301
1301
  case 6165:
1302
- return g + t + D + "flex-" + t + t;
1302
+ return A + t + C + "flex-" + t + t;
1303
1303
  case 5187:
1304
- return g + t + m(t, /(\w+).+(:[^]+)/, g + "box-$1$2" + D + "flex-$1$2") + t;
1304
+ return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" + C + "flex-$1$2") + t;
1305
1305
  case 5443:
1306
- return g + t + D + "flex-item-" + m(t, /flex-|-self/, "") + t;
1306
+ return A + t + C + "flex-item-" + m(t, /flex-|-self/, "") + t;
1307
1307
  case 4675:
1308
- return g + t + D + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
1308
+ return A + t + C + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
1309
1309
  case 5548:
1310
- return g + t + D + m(t, "shrink", "negative") + t;
1310
+ return A + t + C + m(t, "shrink", "negative") + t;
1311
1311
  case 5292:
1312
- return g + t + D + m(t, "basis", "preferred-size") + t;
1312
+ return A + t + C + m(t, "basis", "preferred-size") + t;
1313
1313
  case 6060:
1314
- return g + "box-" + m(t, "-grow", "") + g + t + D + m(t, "grow", "positive") + t;
1314
+ return A + "box-" + m(t, "-grow", "") + A + t + C + m(t, "grow", "positive") + t;
1315
1315
  case 4554:
1316
- return g + m(t, /([^-])(transform)/g, "$1" + g + "$2") + t;
1316
+ return A + m(t, /([^-])(transform)/g, "$1" + A + "$2") + t;
1317
1317
  case 6187:
1318
- return m(m(m(t, /(zoom-|grab)/, g + "$1"), /(image-set)/, g + "$1"), t, "") + t;
1318
+ return m(m(m(t, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), t, "") + t;
1319
1319
  case 5495:
1320
1320
  case 3959:
1321
- return m(t, /(image-set\([^]*)/, g + "$1$`$1");
1321
+ return m(t, /(image-set\([^]*)/, A + "$1$`$1");
1322
1322
  case 4968:
1323
- return m(m(t, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" + D + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + g + t + t;
1323
+ return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + C + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + t + t;
1324
1324
  case 4095:
1325
1325
  case 3583:
1326
1326
  case 4068:
1327
1327
  case 2532:
1328
- return m(t, /(.+)-inline(.+)/, g + "$1$2") + t;
1328
+ return m(t, /(.+)-inline(.+)/, A + "$1$2") + t;
1329
1329
  case 8116:
1330
1330
  case 7059:
1331
1331
  case 5753:
@@ -1338,106 +1338,106 @@ function Jt(t, e) {
1338
1338
  case 5789:
1339
1339
  case 5021:
1340
1340
  case 4765:
1341
- if (K(t) - 1 - e > 6)
1342
- switch (O(t, e + 1)) {
1341
+ if (q(t) - 1 - e > 6)
1342
+ switch (D(t, e + 1)) {
1343
1343
  case 109:
1344
- if (O(t, e + 4) !== 45)
1344
+ if (D(t, e + 4) !== 45)
1345
1345
  break;
1346
1346
  case 102:
1347
- return m(t, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" + ke + (O(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1347
+ return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1348
1348
  case 115:
1349
- return ~Qe(t, "stretch") ? Jt(m(t, "stretch", "fill-available"), e) + t : t;
1349
+ return ~tt(t, "stretch") ? Qt(m(t, "stretch", "fill-available"), e) + t : t;
1350
1350
  }
1351
1351
  break;
1352
1352
  case 4949:
1353
- if (O(t, e + 1) !== 115)
1353
+ if (D(t, e + 1) !== 115)
1354
1354
  break;
1355
1355
  case 6444:
1356
- switch (O(t, K(t) - 3 - (~Qe(t, "!important") && 10))) {
1356
+ switch (D(t, q(t) - 3 - (~tt(t, "!important") && 10))) {
1357
1357
  case 107:
1358
- return m(t, ":", ":" + g) + t;
1358
+ return m(t, ":", ":" + A) + t;
1359
1359
  case 101:
1360
- return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + g + (O(t, 14) === 45 ? "inline-" : "") + "box$3$1" + g + "$2$3$1" + D + "$2box$3") + t;
1360
+ return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + C + "$2box$3") + t;
1361
1361
  }
1362
1362
  break;
1363
1363
  case 5936:
1364
- switch (O(t, e + 11)) {
1364
+ switch (D(t, e + 11)) {
1365
1365
  case 114:
1366
- return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1366
+ return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1367
1367
  case 108:
1368
- return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1368
+ return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1369
1369
  case 45:
1370
- return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1370
+ return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1371
1371
  }
1372
- return g + t + D + t + t;
1372
+ return A + t + C + t + t;
1373
1373
  }
1374
1374
  return t;
1375
1375
  }
1376
- var Un = function(e, i, n, r) {
1376
+ var zn = function(e, i, n, r) {
1377
1377
  if (e.length > -1 && !e.return)
1378
1378
  switch (e.type) {
1379
- case ot:
1380
- e.return = Jt(e.value, e.length);
1379
+ case lt:
1380
+ e.return = Qt(e.value, e.length);
1381
1381
  break;
1382
- case Gt:
1383
- return te([le(e, {
1384
- value: m(e.value, "@", "@" + g)
1382
+ case Ht:
1383
+ return oe([ve(e, {
1384
+ value: m(e.value, "@", "@" + A)
1385
1385
  })], r);
1386
- case rt:
1386
+ case dt:
1387
1387
  if (e.length)
1388
- return An(e.props, function(o) {
1389
- switch (mn(o, /(::plac\w+|:read-\w+)/)) {
1388
+ return kn(e.props, function(o) {
1389
+ switch (Sn(o, /(::plac\w+|:read-\w+)/)) {
1390
1390
  case ":read-only":
1391
1391
  case ":read-write":
1392
- return te([le(e, {
1393
- props: [m(o, /:(read-\w+)/, ":" + ke + "$1")]
1392
+ return oe([ve(e, {
1393
+ props: [m(o, /:(read-\w+)/, ":" + Ne + "$1")]
1394
1394
  })], r);
1395
1395
  case "::placeholder":
1396
- return te([le(e, {
1397
- props: [m(o, /:(plac\w+)/, ":" + g + "input-$1")]
1398
- }), le(e, {
1399
- props: [m(o, /:(plac\w+)/, ":" + ke + "$1")]
1400
- }), le(e, {
1401
- props: [m(o, /:(plac\w+)/, D + "input-$1")]
1396
+ return oe([ve(e, {
1397
+ props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
1398
+ }), ve(e, {
1399
+ props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
1400
+ }), ve(e, {
1401
+ props: [m(o, /:(plac\w+)/, C + "input-$1")]
1402
1402
  })], r);
1403
1403
  }
1404
1404
  return "";
1405
1405
  });
1406
1406
  }
1407
- }, jn = [Un], Fn = function(e) {
1407
+ }, Gn = [zn], Kn = function(e) {
1408
1408
  var i = e.key;
1409
1409
  if (i === "css") {
1410
1410
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1411
- Array.prototype.forEach.call(n, function(_) {
1412
- var A = _.getAttribute("data-emotion");
1413
- A.indexOf(" ") !== -1 && (document.head.appendChild(_), _.setAttribute("data-s", ""));
1411
+ Array.prototype.forEach.call(n, function(v) {
1412
+ var g = v.getAttribute("data-emotion");
1413
+ g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1414
1414
  });
1415
1415
  }
1416
- var r = e.stylisPlugins || jn, o = {}, s, a = [];
1416
+ var r = e.stylisPlugins || Gn, o = {}, s, a = [];
1417
1417
  s = e.container || document.head, Array.prototype.forEach.call(
1418
1418
  // this means we will ignore elements which don't have a space in them which
1419
1419
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1420
1420
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
1421
- function(_) {
1422
- for (var A = _.getAttribute("data-emotion").split(" "), h = 1; h < A.length; h++)
1423
- o[A[h]] = !0;
1424
- a.push(_);
1421
+ function(v) {
1422
+ for (var g = v.getAttribute("data-emotion").split(" "), p = 1; p < g.length; p++)
1423
+ o[g[p]] = !0;
1424
+ a.push(v);
1425
1425
  }
1426
1426
  );
1427
- var d, l = [Mn, $n];
1427
+ var d, l = [Fn, Vn];
1428
1428
  {
1429
- var c, u = [On, Dn(function(_) {
1430
- c.insert(_);
1431
- })], f = kn(l.concat(r, u)), v = function(A) {
1432
- return te(In(A), f);
1429
+ var c, h = [Nn, Mn(function(v) {
1430
+ c.insert(v);
1431
+ })], u = Pn(l.concat(r, h)), f = function(g) {
1432
+ return oe(Ln(g), u);
1433
1433
  };
1434
- d = function(A, h, p, L) {
1435
- c = p, v(A ? A + "{" + h.styles + "}" : h.styles), L && (y.inserted[h.name] = !0);
1434
+ d = function(g, p, _, w) {
1435
+ c = _, f(g ? g + "{" + p.styles + "}" : p.styles), w && (y.inserted[p.name] = !0);
1436
1436
  };
1437
1437
  }
1438
1438
  var y = {
1439
1439
  key: i,
1440
- sheet: new hn({
1440
+ sheet: new gn({
1441
1441
  key: i,
1442
1442
  container: s,
1443
1443
  nonce: e.nonce,
@@ -1452,7 +1452,7 @@ var Un = function(e, i, n, r) {
1452
1452
  };
1453
1453
  return y.sheet.hydrate(a), y;
1454
1454
  };
1455
- function Bn(t) {
1455
+ function qn(t) {
1456
1456
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1457
1457
  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): */
1458
1458
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1471,7 +1471,7 @@ function Bn(t) {
1471
1471
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1472
1472
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1473
1473
  }
1474
- var Vn = {
1474
+ var Hn = {
1475
1475
  animationIterationCount: 1,
1476
1476
  aspectRatio: 1,
1477
1477
  borderImageOutset: 1,
@@ -1520,28 +1520,28 @@ var Vn = {
1520
1520
  strokeMiterlimit: 1,
1521
1521
  strokeOpacity: 1,
1522
1522
  strokeWidth: 1
1523
- }, zn = /[A-Z]|^ms/g, Gn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Yt = function(e) {
1523
+ }, Wn = /[A-Z]|^ms/g, Jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(e) {
1524
1524
  return e.charCodeAt(1) === 45;
1525
- }, wt = function(e) {
1525
+ }, Et = function(e) {
1526
1526
  return e != null && typeof e != "boolean";
1527
- }, Be = /* @__PURE__ */ Ln(function(t) {
1528
- return Yt(t) ? t : t.replace(zn, "-$&").toLowerCase();
1529
- }), bt = function(e, i) {
1527
+ }, Ke = /* @__PURE__ */ $n(function(t) {
1528
+ return Zt(t) ? t : t.replace(Wn, "-$&").toLowerCase();
1529
+ }), St = function(e, i) {
1530
1530
  switch (e) {
1531
1531
  case "animation":
1532
1532
  case "animationName":
1533
1533
  if (typeof i == "string")
1534
- return i.replace(Gn, function(n, r, o) {
1535
- return Q = {
1534
+ return i.replace(Jn, function(n, r, o) {
1535
+ return Z = {
1536
1536
  name: r,
1537
1537
  styles: o,
1538
- next: Q
1538
+ next: Z
1539
1539
  }, r;
1540
1540
  });
1541
1541
  }
1542
- return Vn[e] !== 1 && !Yt(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1542
+ return Hn[e] !== 1 && !Zt(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1543
1543
  };
1544
- function De(t, e, i) {
1544
+ function Pe(t, e, i) {
1545
1545
  if (i == null)
1546
1546
  return "";
1547
1547
  var n = i;
@@ -1553,25 +1553,25 @@ function De(t, e, i) {
1553
1553
  case "object": {
1554
1554
  var r = i;
1555
1555
  if (r.anim === 1)
1556
- return Q = {
1556
+ return Z = {
1557
1557
  name: r.name,
1558
1558
  styles: r.styles,
1559
- next: Q
1559
+ next: Z
1560
1560
  }, r.name;
1561
1561
  var o = i;
1562
1562
  if (o.styles !== void 0) {
1563
1563
  var s = o.next;
1564
1564
  if (s !== void 0)
1565
1565
  for (; s !== void 0; )
1566
- Q = {
1566
+ Z = {
1567
1567
  name: s.name,
1568
1568
  styles: s.styles,
1569
- next: Q
1569
+ next: Z
1570
1570
  }, s = s.next;
1571
1571
  var a = o.styles + ";";
1572
1572
  return a;
1573
1573
  }
1574
- return Kn(t, e, i);
1574
+ return Yn(t, e, i);
1575
1575
  }
1576
1576
  }
1577
1577
  var d = i;
@@ -1580,26 +1580,26 @@ function De(t, e, i) {
1580
1580
  var l = e[d];
1581
1581
  return l !== void 0 ? l : d;
1582
1582
  }
1583
- function Kn(t, e, i) {
1583
+ function Yn(t, e, i) {
1584
1584
  var n = "";
1585
1585
  if (Array.isArray(i))
1586
1586
  for (var r = 0; r < i.length; r++)
1587
- n += De(t, e, i[r]) + ";";
1587
+ n += Pe(t, e, i[r]) + ";";
1588
1588
  else
1589
1589
  for (var o in i) {
1590
1590
  var s = i[o];
1591
1591
  if (typeof s != "object") {
1592
1592
  var a = s;
1593
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : wt(a) && (n += Be(o) + ":" + bt(o, a) + ";");
1593
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Et(a) && (n += Ke(o) + ":" + St(o, a) + ";");
1594
1594
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1595
1595
  for (var d = 0; d < s.length; d++)
1596
- wt(s[d]) && (n += Be(o) + ":" + bt(o, s[d]) + ";");
1596
+ Et(s[d]) && (n += Ke(o) + ":" + St(o, s[d]) + ";");
1597
1597
  else {
1598
- var l = De(t, e, s);
1598
+ var l = Pe(t, e, s);
1599
1599
  switch (o) {
1600
1600
  case "animation":
1601
1601
  case "animationName": {
1602
- n += Be(o) + ":" + l + ";";
1602
+ n += Ke(o) + ":" + l + ";";
1603
1603
  break;
1604
1604
  }
1605
1605
  default:
@@ -1609,41 +1609,41 @@ function Kn(t, e, i) {
1609
1609
  }
1610
1610
  return n;
1611
1611
  }
1612
- var Et = /label:\s*([^\s;{]+)\s*(;|$)/g, Q;
1613
- function Ve(t, e, i) {
1612
+ var kt = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
1613
+ function qe(t, e, i) {
1614
1614
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1615
1615
  return t[0];
1616
1616
  var n = !0, r = "";
1617
- Q = void 0;
1617
+ Z = void 0;
1618
1618
  var o = t[0];
1619
1619
  if (o == null || o.raw === void 0)
1620
- n = !1, r += De(i, e, o);
1620
+ n = !1, r += Pe(i, e, o);
1621
1621
  else {
1622
1622
  var s = o;
1623
1623
  r += s[0];
1624
1624
  }
1625
1625
  for (var a = 1; a < t.length; a++)
1626
- if (r += De(i, e, t[a]), n) {
1626
+ if (r += Pe(i, e, t[a]), n) {
1627
1627
  var d = o;
1628
1628
  r += d[a];
1629
1629
  }
1630
- Et.lastIndex = 0;
1631
- for (var l = "", c; (c = Et.exec(r)) !== null; )
1630
+ kt.lastIndex = 0;
1631
+ for (var l = "", c; (c = kt.exec(r)) !== null; )
1632
1632
  l += "-" + c[1];
1633
- var u = Bn(r) + l;
1633
+ var h = qn(r) + l;
1634
1634
  return {
1635
- name: u,
1635
+ name: h,
1636
1636
  styles: r,
1637
- next: Q
1637
+ next: Z
1638
1638
  };
1639
1639
  }
1640
- function Qt(t, e, i) {
1640
+ function ei(t, e, i) {
1641
1641
  var n = "";
1642
1642
  return i.split(" ").forEach(function(r) {
1643
1643
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1644
1644
  }), n;
1645
1645
  }
1646
- var qn = function(e, i, n) {
1646
+ var Xn = function(e, i, n) {
1647
1647
  var r = e.key + "-" + i.name;
1648
1648
  // we only need to add the styles to the registered cache if the
1649
1649
  // class name could be used further down
@@ -1651,8 +1651,8 @@ var qn = function(e, i, n) {
1651
1651
  // so we don't have to add it to registered cache.
1652
1652
  // this improves memory usage since we can avoid storing the whole style string
1653
1653
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1654
- }, Hn = function(e, i, n) {
1655
- qn(e, i);
1654
+ }, Qn = function(e, i, n) {
1655
+ Xn(e, i);
1656
1656
  var r = e.key + "-" + i.name;
1657
1657
  if (e.inserted[i.name] === void 0) {
1658
1658
  var o = i;
@@ -1661,41 +1661,41 @@ var qn = function(e, i, n) {
1661
1661
  while (o !== void 0);
1662
1662
  }
1663
1663
  };
1664
- function St(t, e) {
1664
+ function xt(t, e) {
1665
1665
  if (t.inserted[e.name] === void 0)
1666
1666
  return t.insert("", e, t.sheet, !0);
1667
1667
  }
1668
- function xt(t, e, i) {
1669
- var n = [], r = Qt(t, n, i);
1668
+ function Rt(t, e, i) {
1669
+ var n = [], r = ei(t, n, i);
1670
1670
  return n.length < 2 ? i : r + e(n);
1671
1671
  }
1672
- var Wn = function(e) {
1673
- var i = Fn(e);
1672
+ var Zn = function(e) {
1673
+ var i = Kn(e);
1674
1674
  i.sheet.speedy = function(a) {
1675
1675
  this.isSpeedy = a;
1676
1676
  }, i.compat = !0;
1677
1677
  var n = function() {
1678
1678
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1679
1679
  l[c] = arguments[c];
1680
- var u = Ve(l, i.registered, void 0);
1681
- return Hn(i, u), i.key + "-" + u.name;
1680
+ var h = qe(l, i.registered, void 0);
1681
+ return Qn(i, h), i.key + "-" + h.name;
1682
1682
  }, r = function() {
1683
1683
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1684
1684
  l[c] = arguments[c];
1685
- var u = Ve(l, i.registered), f = "animation-" + u.name;
1686
- return St(i, {
1687
- name: u.name,
1688
- styles: "@keyframes " + f + "{" + u.styles + "}"
1689
- }), f;
1685
+ var h = qe(l, i.registered), u = "animation-" + h.name;
1686
+ return xt(i, {
1687
+ name: h.name,
1688
+ styles: "@keyframes " + u + "{" + h.styles + "}"
1689
+ }), u;
1690
1690
  }, o = function() {
1691
1691
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1692
1692
  l[c] = arguments[c];
1693
- var u = Ve(l, i.registered);
1694
- St(i, u);
1693
+ var h = qe(l, i.registered);
1694
+ xt(i, h);
1695
1695
  }, s = function() {
1696
1696
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1697
1697
  l[c] = arguments[c];
1698
- return xt(i.registered, n, Jn(l));
1698
+ return Rt(i.registered, n, er(l));
1699
1699
  };
1700
1700
  return {
1701
1701
  css: n,
@@ -1712,10 +1712,10 @@ var Wn = function(e) {
1712
1712
  },
1713
1713
  sheet: i.sheet,
1714
1714
  cache: i,
1715
- getRegisteredStyles: Qt.bind(null, i.registered),
1716
- merge: xt.bind(null, i.registered, n)
1715
+ getRegisteredStyles: ei.bind(null, i.registered),
1716
+ merge: Rt.bind(null, i.registered, n)
1717
1717
  };
1718
- }, Jn = function t(e) {
1718
+ }, er = function t(e) {
1719
1719
  for (var i = "", n = 0; n < e.length; n++) {
1720
1720
  var r = e[n];
1721
1721
  if (r != null) {
@@ -1740,105 +1740,96 @@ var Wn = function(e) {
1740
1740
  }
1741
1741
  }
1742
1742
  return i;
1743
- }, Yn = Wn({
1743
+ }, tr = Zn({
1744
1744
  key: "css"
1745
- }), ge = Yn.css, Le, C, ze, Rt, Ze = 0, Xt = [], R = Z, It = R.__b, Tt = R.__r, Ot = R.diffed, kt = R.__c, Dt = R.unmount, Lt = R.__;
1746
- function Zt(t, e) {
1747
- R.__h && R.__h(C, t, Ze || e), Ze = 0;
1748
- var i = C.__H || (C.__H = { __: [], __h: [] });
1745
+ }), le = tr.css, nt, B, He, It, Ot = 0, ti = [], O = se, Tt = O.__b, Dt = O.__r, Lt = O.diffed, Ct = O.__c, Nt = O.unmount, Pt = O.__;
1746
+ function ir(t, e) {
1747
+ O.__h && O.__h(B, t, Ot || e), Ot = 0;
1748
+ var i = B.__H || (B.__H = { __: [], __h: [] });
1749
1749
  return t >= i.__.length && i.__.push({}), i.__[t];
1750
1750
  }
1751
- function Qn(t, e) {
1752
- var i = Zt(Le++, 3);
1753
- !R.__s && ei(i.__H, e) && (i.__ = t, i.u = e, C.__H.__h.push(i));
1751
+ function ii(t, e) {
1752
+ var i = ir(nt++, 7);
1753
+ return or(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1754
1754
  }
1755
- function Xn(t) {
1756
- return Ze = 5, at(function() {
1757
- return { current: t };
1758
- }, []);
1759
- }
1760
- function at(t, e) {
1761
- var i = Zt(Le++, 7);
1762
- return ei(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1763
- }
1764
- function Zn() {
1765
- for (var t; t = Xt.shift(); )
1755
+ function nr() {
1756
+ for (var t; t = ti.shift(); )
1766
1757
  if (t.__P && t.__H)
1767
1758
  try {
1768
- t.__H.__h.forEach(Ie), t.__H.__h.forEach(et), t.__H.__h = [];
1759
+ t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
1769
1760
  } catch (e) {
1770
- t.__H.__h = [], R.__e(e, t.__v);
1761
+ t.__H.__h = [], O.__e(e, t.__v);
1771
1762
  }
1772
1763
  }
1773
- R.__b = function(t) {
1774
- C = null, It && It(t);
1775
- }, R.__ = function(t, e) {
1776
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
1777
- }, R.__r = function(t) {
1778
- Tt && Tt(t), Le = 0;
1779
- var e = (C = t.__c).__H;
1780
- e && (ze === C ? (e.__h = [], C.__h = [], e.__.forEach(function(i) {
1764
+ O.__b = function(t) {
1765
+ B = null, Tt && Tt(t);
1766
+ }, O.__ = function(t, e) {
1767
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Pt && Pt(t, e);
1768
+ }, O.__r = function(t) {
1769
+ Dt && Dt(t), nt = 0;
1770
+ var e = (B = t.__c).__H;
1771
+ e && (He === B ? (e.__h = [], B.__h = [], e.__.forEach(function(i) {
1781
1772
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1782
- })) : (e.__h.forEach(Ie), e.__h.forEach(et), e.__h = [], Le = 0)), ze = C;
1783
- }, R.diffed = function(t) {
1784
- Ot && Ot(t);
1773
+ })) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = B;
1774
+ }, O.diffed = function(t) {
1775
+ Lt && Lt(t);
1785
1776
  var e = t.__c;
1786
- e && e.__H && (e.__H.__h.length && (Xt.push(e) !== 1 && Rt === R.requestAnimationFrame || ((Rt = R.requestAnimationFrame) || er)(Zn)), e.__H.__.forEach(function(i) {
1777
+ e && e.__H && (e.__H.__h.length && (ti.push(e) !== 1 && It === O.requestAnimationFrame || ((It = O.requestAnimationFrame) || rr)(nr)), e.__H.__.forEach(function(i) {
1787
1778
  i.u && (i.__H = i.u), i.u = void 0;
1788
- })), ze = C = null;
1789
- }, R.__c = function(t, e) {
1779
+ })), He = B = null;
1780
+ }, O.__c = function(t, e) {
1790
1781
  e.some(function(i) {
1791
1782
  try {
1792
- i.__h.forEach(Ie), i.__h = i.__h.filter(function(n) {
1793
- return !n.__ || et(n);
1783
+ i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
1784
+ return !n.__ || rt(n);
1794
1785
  });
1795
1786
  } catch (n) {
1796
1787
  e.some(function(r) {
1797
1788
  r.__h && (r.__h = []);
1798
- }), e = [], R.__e(n, i.__v);
1789
+ }), e = [], O.__e(n, i.__v);
1799
1790
  }
1800
- }), kt && kt(t, e);
1801
- }, R.unmount = function(t) {
1802
- Dt && Dt(t);
1791
+ }), Ct && Ct(t, e);
1792
+ }, O.unmount = function(t) {
1793
+ Nt && Nt(t);
1803
1794
  var e, i = t.__c;
1804
1795
  i && i.__H && (i.__H.__.forEach(function(n) {
1805
1796
  try {
1806
- Ie(n);
1797
+ De(n);
1807
1798
  } catch (r) {
1808
1799
  e = r;
1809
1800
  }
1810
- }), i.__H = void 0, e && R.__e(e, i.__v));
1801
+ }), i.__H = void 0, e && O.__e(e, i.__v));
1811
1802
  };
1812
- var Nt = typeof requestAnimationFrame == "function";
1813
- function er(t) {
1803
+ var Mt = typeof requestAnimationFrame == "function";
1804
+ function rr(t) {
1814
1805
  var e, i = function() {
1815
- clearTimeout(n), Nt && cancelAnimationFrame(e), setTimeout(t);
1806
+ clearTimeout(n), Mt && cancelAnimationFrame(e), setTimeout(t);
1816
1807
  }, n = setTimeout(i, 100);
1817
- Nt && (e = requestAnimationFrame(i));
1808
+ Mt && (e = requestAnimationFrame(i));
1818
1809
  }
1819
- function Ie(t) {
1820
- var e = C, i = t.__c;
1821
- typeof i == "function" && (t.__c = void 0, i()), C = e;
1810
+ function De(t) {
1811
+ var e = B, i = t.__c;
1812
+ typeof i == "function" && (t.__c = void 0, i()), B = e;
1822
1813
  }
1823
- function et(t) {
1824
- var e = C;
1825
- t.__c = t.__(), C = e;
1814
+ function rt(t) {
1815
+ var e = B;
1816
+ t.__c = t.__(), B = e;
1826
1817
  }
1827
- function ei(t, e) {
1818
+ function or(t, e) {
1828
1819
  return !t || t.length !== e.length || e.some(function(i, n) {
1829
1820
  return i !== t[n];
1830
1821
  });
1831
1822
  }
1832
- var tr = Symbol.for("preact-signals");
1833
- function Ue() {
1834
- if (X > 1)
1835
- X--;
1823
+ var sr = Symbol.for("preact-signals");
1824
+ function Ve() {
1825
+ if (ee > 1)
1826
+ ee--;
1836
1827
  else {
1837
- for (var t, e = !1; ue !== void 0; ) {
1838
- var i = ue;
1839
- for (ue = void 0, tt++; i !== void 0; ) {
1828
+ for (var t, e = !1; ye !== void 0; ) {
1829
+ var i = ye;
1830
+ for (ye = void 0, ot++; i !== void 0; ) {
1840
1831
  var n = i.o;
1841
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && ii(i))
1832
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && ri(i))
1842
1833
  try {
1843
1834
  i.c();
1844
1835
  } catch (r) {
@@ -1847,102 +1838,102 @@ function Ue() {
1847
1838
  i = n;
1848
1839
  }
1849
1840
  }
1850
- if (tt = 0, X--, e)
1841
+ if (ot = 0, ee--, e)
1851
1842
  throw t;
1852
1843
  }
1853
1844
  }
1854
- function N(t) {
1855
- if (X > 0)
1845
+ function T(t) {
1846
+ if (ee > 0)
1856
1847
  return t();
1857
- X++;
1848
+ ee++;
1858
1849
  try {
1859
1850
  return t();
1860
1851
  } finally {
1861
- Ue();
1852
+ Ve();
1862
1853
  }
1863
1854
  }
1864
- var b = void 0, ue = void 0, X = 0, tt = 0, Ne = 0;
1865
- function ti(t) {
1866
- if (b !== void 0) {
1855
+ var S = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
1856
+ function ni(t) {
1857
+ if (S !== void 0) {
1867
1858
  var e = t.n;
1868
- if (e === void 0 || e.t !== b)
1869
- return e = { i: 0, S: t, p: b.s, n: void 0, t: b, e: void 0, x: void 0, r: e }, b.s !== void 0 && (b.s.n = e), b.s = e, t.n = e, 32 & b.f && t.S(e), e;
1859
+ if (e === void 0 || e.t !== S)
1860
+ return e = { i: 0, S: t, p: S.s, n: void 0, t: S, e: void 0, x: void 0, r: e }, S.s !== void 0 && (S.s.n = e), S.s = e, t.n = e, 32 & S.f && t.S(e), e;
1870
1861
  if (e.i === -1)
1871
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = b.s, e.n = void 0, b.s.n = e, b.s = e), e;
1862
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = S.s, e.n = void 0, S.s.n = e, S.s = e), e;
1872
1863
  }
1873
1864
  }
1874
- function k(t) {
1865
+ function L(t) {
1875
1866
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1876
1867
  }
1877
- k.prototype.brand = tr;
1878
- k.prototype.h = function() {
1868
+ L.prototype.brand = sr;
1869
+ L.prototype.h = function() {
1879
1870
  return !0;
1880
1871
  };
1881
- k.prototype.S = function(t) {
1872
+ L.prototype.S = function(t) {
1882
1873
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1883
1874
  };
1884
- k.prototype.U = function(t) {
1875
+ L.prototype.U = function(t) {
1885
1876
  if (this.t !== void 0) {
1886
1877
  var e = t.e, i = t.x;
1887
1878
  e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
1888
1879
  }
1889
1880
  };
1890
- k.prototype.subscribe = function(t) {
1881
+ L.prototype.subscribe = function(t) {
1891
1882
  var e = this;
1892
- return oe(function() {
1893
- var i = e.value, n = b;
1894
- b = void 0;
1883
+ return Ee(function() {
1884
+ var i = e.value, n = S;
1885
+ S = void 0;
1895
1886
  try {
1896
1887
  t(i);
1897
1888
  } finally {
1898
- b = n;
1889
+ S = n;
1899
1890
  }
1900
1891
  });
1901
1892
  };
1902
- k.prototype.valueOf = function() {
1893
+ L.prototype.valueOf = function() {
1903
1894
  return this.value;
1904
1895
  };
1905
- k.prototype.toString = function() {
1896
+ L.prototype.toString = function() {
1906
1897
  return this.value + "";
1907
1898
  };
1908
- k.prototype.toJSON = function() {
1899
+ L.prototype.toJSON = function() {
1909
1900
  return this.value;
1910
1901
  };
1911
- k.prototype.peek = function() {
1912
- var t = b;
1913
- b = void 0;
1902
+ L.prototype.peek = function() {
1903
+ var t = S;
1904
+ S = void 0;
1914
1905
  try {
1915
1906
  return this.value;
1916
1907
  } finally {
1917
- b = t;
1908
+ S = t;
1918
1909
  }
1919
1910
  };
1920
- Object.defineProperty(k.prototype, "value", { get: function() {
1921
- var t = ti(this);
1911
+ Object.defineProperty(L.prototype, "value", { get: function() {
1912
+ var t = ni(this);
1922
1913
  return t !== void 0 && (t.i = this.i), this.v;
1923
1914
  }, set: function(t) {
1924
1915
  if (t !== this.v) {
1925
- if (tt > 100)
1916
+ if (ot > 100)
1926
1917
  throw new Error("Cycle detected");
1927
- this.v = t, this.i++, Ne++, X++;
1918
+ this.v = t, this.i++, Me++, ee++;
1928
1919
  try {
1929
1920
  for (var e = this.t; e !== void 0; e = e.x)
1930
1921
  e.t.N();
1931
1922
  } finally {
1932
- Ue();
1923
+ Ve();
1933
1924
  }
1934
1925
  }
1935
1926
  } });
1936
- function I(t) {
1937
- return new k(t);
1927
+ function E(t) {
1928
+ return new L(t);
1938
1929
  }
1939
- function ii(t) {
1930
+ function ri(t) {
1940
1931
  for (var e = t.s; e !== void 0; e = e.n)
1941
1932
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1942
1933
  return !0;
1943
1934
  return !1;
1944
1935
  }
1945
- function ni(t) {
1936
+ function oi(t) {
1946
1937
  for (var e = t.s; e !== void 0; e = e.n) {
1947
1938
  var i = e.S.n;
1948
1939
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1951,90 +1942,90 @@ function ni(t) {
1951
1942
  }
1952
1943
  }
1953
1944
  }
1954
- function ri(t) {
1945
+ function si(t) {
1955
1946
  for (var e = t.s, i = void 0; e !== void 0; ) {
1956
1947
  var n = e.p;
1957
1948
  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;
1958
1949
  }
1959
1950
  t.s = i;
1960
1951
  }
1961
- function re(t) {
1962
- k.call(this, void 0), this.x = t, this.s = void 0, this.g = Ne - 1, this.f = 4;
1952
+ function ce(t) {
1953
+ L.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
1963
1954
  }
1964
- (re.prototype = new k()).h = function() {
1955
+ (ce.prototype = new L()).h = function() {
1965
1956
  if (this.f &= -3, 1 & this.f)
1966
1957
  return !1;
1967
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ne))
1958
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
1968
1959
  return !0;
1969
- if (this.g = Ne, this.f |= 1, this.i > 0 && !ii(this))
1960
+ if (this.g = Me, this.f |= 1, this.i > 0 && !ri(this))
1970
1961
  return this.f &= -2, !0;
1971
- var t = b;
1962
+ var t = S;
1972
1963
  try {
1973
- ni(this), b = this;
1964
+ oi(this), S = this;
1974
1965
  var e = this.x();
1975
1966
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1976
1967
  } catch (i) {
1977
1968
  this.v = i, this.f |= 16, this.i++;
1978
1969
  }
1979
- return b = t, ri(this), this.f &= -2, !0;
1970
+ return S = t, si(this), this.f &= -2, !0;
1980
1971
  };
1981
- re.prototype.S = function(t) {
1972
+ ce.prototype.S = function(t) {
1982
1973
  if (this.t === void 0) {
1983
1974
  this.f |= 36;
1984
1975
  for (var e = this.s; e !== void 0; e = e.n)
1985
1976
  e.S.S(e);
1986
1977
  }
1987
- k.prototype.S.call(this, t);
1978
+ L.prototype.S.call(this, t);
1988
1979
  };
1989
- re.prototype.U = function(t) {
1990
- if (this.t !== void 0 && (k.prototype.U.call(this, t), this.t === void 0)) {
1980
+ ce.prototype.U = function(t) {
1981
+ if (this.t !== void 0 && (L.prototype.U.call(this, t), this.t === void 0)) {
1991
1982
  this.f &= -33;
1992
1983
  for (var e = this.s; e !== void 0; e = e.n)
1993
1984
  e.S.U(e);
1994
1985
  }
1995
1986
  };
1996
- re.prototype.N = function() {
1987
+ ce.prototype.N = function() {
1997
1988
  if (!(2 & this.f)) {
1998
1989
  this.f |= 6;
1999
1990
  for (var t = this.t; t !== void 0; t = t.x)
2000
1991
  t.t.N();
2001
1992
  }
2002
1993
  };
2003
- Object.defineProperty(re.prototype, "value", { get: function() {
1994
+ Object.defineProperty(ce.prototype, "value", { get: function() {
2004
1995
  if (1 & this.f)
2005
1996
  throw new Error("Cycle detected");
2006
- var t = ti(this);
1997
+ var t = ni(this);
2007
1998
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2008
1999
  throw this.v;
2009
2000
  return this.v;
2010
2001
  } });
2011
- function fe(t) {
2012
- return new re(t);
2002
+ function _e(t) {
2003
+ return new ce(t);
2013
2004
  }
2014
- function oi(t) {
2005
+ function ai(t) {
2015
2006
  var e = t.u;
2016
2007
  if (t.u = void 0, typeof e == "function") {
2017
- X++;
2018
- var i = b;
2019
- b = void 0;
2008
+ ee++;
2009
+ var i = S;
2010
+ S = void 0;
2020
2011
  try {
2021
2012
  e();
2022
2013
  } catch (n) {
2023
- throw t.f &= -2, t.f |= 8, dt(t), n;
2014
+ throw t.f &= -2, t.f |= 8, ut(t), n;
2024
2015
  } finally {
2025
- b = i, Ue();
2016
+ S = i, Ve();
2026
2017
  }
2027
2018
  }
2028
2019
  }
2029
- function dt(t) {
2020
+ function ut(t) {
2030
2021
  for (var e = t.s; e !== void 0; e = e.n)
2031
2022
  e.S.U(e);
2032
- t.x = void 0, t.s = void 0, oi(t);
2023
+ t.x = void 0, t.s = void 0, ai(t);
2033
2024
  }
2034
- function ir(t) {
2035
- if (b !== this)
2025
+ function ar(t) {
2026
+ if (S !== this)
2036
2027
  throw new Error("Out-of-order effect");
2037
- ri(this), b = t, this.f &= -2, 8 & this.f && dt(this), Ue();
2028
+ si(this), S = t, this.f &= -2, 8 & this.f && ut(this), Ve();
2038
2029
  }
2039
2030
  function me(t) {
2040
2031
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2053,17 +2044,17 @@ me.prototype.c = function() {
2053
2044
  me.prototype.S = function() {
2054
2045
  if (1 & this.f)
2055
2046
  throw new Error("Cycle detected");
2056
- this.f |= 1, this.f &= -9, oi(this), ni(this), X++;
2057
- var t = b;
2058
- return b = this, ir.bind(this, t);
2047
+ this.f |= 1, this.f &= -9, ai(this), oi(this), ee++;
2048
+ var t = S;
2049
+ return S = this, ar.bind(this, t);
2059
2050
  };
2060
2051
  me.prototype.N = function() {
2061
- 2 & this.f || (this.f |= 2, this.o = ue, ue = this);
2052
+ 2 & this.f || (this.f |= 2, this.o = ye, ye = this);
2062
2053
  };
2063
2054
  me.prototype.d = function() {
2064
- this.f |= 8, 1 & this.f || dt(this);
2055
+ this.f |= 8, 1 & this.f || ut(this);
2065
2056
  };
2066
- function oe(t) {
2057
+ function Ee(t) {
2067
2058
  var e = new me(t);
2068
2059
  try {
2069
2060
  e.c();
@@ -2072,75 +2063,75 @@ function oe(t) {
2072
2063
  }
2073
2064
  return e.d.bind(e);
2074
2065
  }
2075
- var lt, Ge, si = [], ai = [];
2076
- oe(function() {
2077
- lt = this.N;
2066
+ var di, We, li = [];
2067
+ Ee(function() {
2068
+ di = this.N;
2078
2069
  })();
2079
- function se(t, e) {
2080
- Z[t] = e.bind(null, Z[t] || function() {
2070
+ function ue(t, e) {
2071
+ se[t] = e.bind(null, se[t] || function() {
2081
2072
  });
2082
2073
  }
2083
- function Pe(t) {
2084
- Ge && Ge(), Ge = t && t.S();
2074
+ function $e(t) {
2075
+ We && We(), We = t && t.S();
2085
2076
  }
2086
- function di(t) {
2087
- var e = this, i = t.data, n = li(i);
2077
+ function ci(t) {
2078
+ var e = this, i = t.data, n = ui(i);
2088
2079
  n.value = i;
2089
- var r = at(function() {
2080
+ var r = ii(function() {
2090
2081
  for (var a = e, d = e.__v; d = d.__; )
2091
2082
  if (d.__c) {
2092
2083
  d.__c.__$f |= 4;
2093
2084
  break;
2094
2085
  }
2095
- var l = fe(function() {
2096
- var v = n.value.value;
2097
- return v === 0 ? 0 : v === !0 ? "" : v || "";
2098
- }), c = fe(function() {
2099
- return !Array.isArray(l.value) && !_i(l.value);
2100
- }), u = oe(function() {
2101
- if (this.N = ci, c.value) {
2102
- var v = l.value;
2103
- a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = v);
2086
+ var l = _e(function() {
2087
+ var f = n.value.value;
2088
+ return f === 0 ? 0 : f === !0 ? "" : f || "";
2089
+ }), c = _e(function() {
2090
+ return !Array.isArray(l.value) && !bi(l.value);
2091
+ }), h = Ee(function() {
2092
+ if (this.N = hi, c.value) {
2093
+ var f = l.value;
2094
+ a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2104
2095
  }
2105
- }), f = e.__$u.d;
2096
+ }), u = e.__$u.d;
2106
2097
  return e.__$u.d = function() {
2107
- u(), f.call(this);
2098
+ h(), u.call(this);
2108
2099
  }, [c, l];
2109
2100
  }, []), o = r[0], s = r[1];
2110
2101
  return o.value ? s.peek() : s.value;
2111
2102
  }
2112
- di.displayName = "_st";
2113
- Object.defineProperties(k.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: di }, props: { configurable: !0, get: function() {
2103
+ ci.displayName = "_st";
2104
+ Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: ci }, props: { configurable: !0, get: function() {
2114
2105
  return { data: this };
2115
2106
  } }, __b: { configurable: !0, value: 1 } });
2116
- se("__b", function(t, e) {
2107
+ ue("__b", function(t, e) {
2117
2108
  if (typeof e.type == "string") {
2118
2109
  var i, n = e.props;
2119
2110
  for (var r in n)
2120
2111
  if (r !== "children") {
2121
2112
  var o = n[r];
2122
- o instanceof k && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2113
+ o instanceof L && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2123
2114
  }
2124
2115
  }
2125
2116
  t(e);
2126
2117
  });
2127
- se("__r", function(t, e) {
2128
- Pe();
2118
+ ue("__r", function(t, e) {
2119
+ $e();
2129
2120
  var i, n = e.__c;
2130
2121
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2131
2122
  var o;
2132
- return oe(function() {
2123
+ return Ee(function() {
2133
2124
  o = this;
2134
2125
  }), o.c = function() {
2135
2126
  n.__$f |= 1, n.setState({});
2136
2127
  }, o;
2137
- }())), Pe(i), t(e);
2128
+ }())), $e(i), t(e);
2138
2129
  });
2139
- se("__e", function(t, e, i, n) {
2140
- Pe(), t(e, i, n);
2130
+ ue("__e", function(t, e, i, n) {
2131
+ $e(), t(e, i, n);
2141
2132
  });
2142
- se("diffed", function(t, e) {
2143
- Pe();
2133
+ ue("diffed", function(t, e) {
2134
+ $e();
2144
2135
  var i;
2145
2136
  if (typeof e.type == "string" && (i = e.__e)) {
2146
2137
  var n = e.__np, r = e.props;
@@ -2155,23 +2146,23 @@ se("diffed", function(t, e) {
2155
2146
  o = {}, i.U = o;
2156
2147
  for (var d in n) {
2157
2148
  var l = o[d], c = n[d];
2158
- l === void 0 ? (l = nr(i, d, c, r), o[d] = l) : l.o(c, r);
2149
+ l === void 0 ? (l = dr(i, d, c, r), o[d] = l) : l.o(c, r);
2159
2150
  }
2160
2151
  }
2161
2152
  }
2162
2153
  t(e);
2163
2154
  });
2164
- function nr(t, e, i, n) {
2165
- var r = e in t && t.ownerSVGElement === void 0, o = I(i);
2155
+ function dr(t, e, i, n) {
2156
+ var r = e in t && t.ownerSVGElement === void 0, o = E(i);
2166
2157
  return { o: function(s, a) {
2167
2158
  o.value = s, n = a;
2168
- }, d: oe(function() {
2169
- this.N = ci;
2159
+ }, d: Ee(function() {
2160
+ this.N = hi;
2170
2161
  var s = o.value.value;
2171
2162
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2172
2163
  }) };
2173
2164
  }
2174
- se("unmount", function(t, e) {
2165
+ ue("unmount", function(t, e) {
2175
2166
  if (typeof e.type == "string") {
2176
2167
  var i = e.__e;
2177
2168
  if (i) {
@@ -2193,10 +2184,10 @@ se("unmount", function(t, e) {
2193
2184
  }
2194
2185
  t(e);
2195
2186
  });
2196
- se("__h", function(t, e, i, n) {
2187
+ ue("__h", function(t, e, i, n) {
2197
2188
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2198
2189
  });
2199
- pi.prototype.shouldComponentUpdate = function(t, e) {
2190
+ wi.prototype.shouldComponentUpdate = function(t, e) {
2200
2191
  var i = this.__$u, n = i && i.s !== void 0;
2201
2192
  for (var r in e)
2202
2193
  return !0;
@@ -2214,47 +2205,26 @@ pi.prototype.shouldComponentUpdate = function(t, e) {
2214
2205
  return !0;
2215
2206
  return !1;
2216
2207
  };
2217
- function li(t) {
2218
- return at(function() {
2219
- return I(t);
2208
+ function ui(t) {
2209
+ return ii(function() {
2210
+ return E(t);
2220
2211
  }, []);
2221
2212
  }
2222
- var rr = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
2223
- var e = function() {
2224
- clearTimeout(i), cancelAnimationFrame(n), t();
2225
- }, i = setTimeout(e, 100), n = requestAnimationFrame(e);
2226
- }, or = function(t) {
2213
+ var lr = function(t) {
2227
2214
  queueMicrotask(function() {
2228
2215
  queueMicrotask(t);
2229
2216
  });
2230
2217
  };
2231
- function sr() {
2232
- N(function() {
2233
- for (var t; t = si.shift(); )
2234
- lt.call(t);
2235
- });
2236
- }
2237
- function ar() {
2238
- si.push(this) === 1 && (Z.requestAnimationFrame || rr)(sr);
2239
- }
2240
- function dr() {
2241
- N(function() {
2242
- for (var t; t = ai.shift(); )
2243
- lt.call(t);
2218
+ function cr() {
2219
+ T(function() {
2220
+ for (var t; t = li.shift(); )
2221
+ di.call(t);
2244
2222
  });
2245
2223
  }
2246
- function ci() {
2247
- ai.push(this) === 1 && (Z.requestAnimationFrame || or)(dr);
2224
+ function hi() {
2225
+ li.push(this) === 1 && (se.requestAnimationFrame || lr)(cr);
2248
2226
  }
2249
- function lr(t) {
2250
- var e = Xn(t);
2251
- e.current = t, Qn(function() {
2252
- return oe(function() {
2253
- return this.N = ar, e.current();
2254
- });
2255
- }, []);
2256
- }
2257
- const P = ge`
2227
+ const N = le`
2258
2228
  inset: 0;
2259
2229
  clear: none;
2260
2230
  float: none;
@@ -2273,11 +2243,11 @@ const P = ge`
2273
2243
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2274
2244
  'Helvetica Neue', sans-serif;
2275
2245
  `;
2276
- function cr(t, e) {
2277
- const i = yi(t);
2278
- gi(() => {
2246
+ function ur(t, e) {
2247
+ const i = Ai(t);
2248
+ mi(() => {
2279
2249
  i.current = t;
2280
- }, [t]), Pt(() => {
2250
+ }, [t]), Ue(() => {
2281
2251
  if (e === null)
2282
2252
  return;
2283
2253
  const n = setInterval(() => {
@@ -2288,21 +2258,21 @@ function cr(t, e) {
2288
2258
  };
2289
2259
  }, [e]);
2290
2260
  }
2291
- var ur = 0;
2292
- function w(t, e, i, n, r, o) {
2261
+ var hr = 0;
2262
+ function b(t, e, i, n, r, o) {
2293
2263
  e || (e = {});
2294
2264
  var s, a, d = e;
2295
2265
  if ("ref" in d)
2296
2266
  for (a in d = {}, e)
2297
2267
  a == "ref" ? s = e[a] : d[a] = e[a];
2298
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ur, __i: -1, __u: 0, __source: r, __self: o };
2268
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --hr, __i: -1, __u: 0, __source: r, __self: o };
2299
2269
  if (typeof t == "function" && (s = t.defaultProps))
2300
2270
  for (a in s)
2301
2271
  d[a] === void 0 && (d[a] = s[a]);
2302
- return Z.vnode && Z.vnode(l), l;
2272
+ return se.vnode && se.vnode(l), l;
2303
2273
  }
2304
- const fr = ge`
2305
- ${P}
2274
+ const fr = le`
2275
+ ${N}
2306
2276
  position: fixed;
2307
2277
  top: 0;
2308
2278
  left: 0;
@@ -2315,7 +2285,7 @@ const fr = ge`
2315
2285
  height: 100vh;
2316
2286
 
2317
2287
  .card-wrapper {
2318
- ${P}
2288
+ ${N}
2319
2289
  position: relative;
2320
2290
  display: flex;
2321
2291
  flex-direction: column;
@@ -2329,7 +2299,7 @@ const fr = ge`
2329
2299
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
2330
2300
 
2331
2301
  .body {
2332
- ${P}
2302
+ ${N}
2333
2303
  display: flex;
2334
2304
  flex-direction: column;
2335
2305
  width: 100%;
@@ -2338,7 +2308,7 @@ const fr = ge`
2338
2308
  box-sizing: border-box;
2339
2309
  justify-content: center;
2340
2310
  .title {
2341
- ${P}
2311
+ ${N}
2342
2312
  text-align: center;
2343
2313
  font-size: 16px;
2344
2314
  font-weight: bold;
@@ -2346,7 +2316,7 @@ const fr = ge`
2346
2316
  }
2347
2317
 
2348
2318
  .content {
2349
- ${P}
2319
+ ${N}
2350
2320
  font-size: 14px;
2351
2321
  color: #888;
2352
2322
  margin-bottom: 16px;
@@ -2354,13 +2324,13 @@ const fr = ge`
2354
2324
  }
2355
2325
 
2356
2326
  .footer {
2357
- ${P}
2327
+ ${N}
2358
2328
  display: flex;
2359
2329
  align-items: center;
2360
2330
  width: 100%;
2361
2331
  height: 40px;
2362
2332
  button {
2363
- ${P}
2333
+ ${N}
2364
2334
  border: none;
2365
2335
  outline: none;
2366
2336
  height: 100%;
@@ -2376,56 +2346,56 @@ const fr = ge`
2376
2346
  }
2377
2347
  }
2378
2348
  }
2379
- `, V = I(null), it = I(""), nt = I(""), Te = I(!1), hr = () => {
2349
+ `, G = E(null), st = E(""), at = E(""), Le = E(!1), vr = () => {
2380
2350
  var t;
2381
- (t = V.value) == null || t.call(V, !1);
2382
- }, vr = () => {
2351
+ (t = G.value) == null || t.call(G, !1);
2352
+ }, pr = () => {
2383
2353
  var t;
2384
- (t = V.value) == null || t.call(V, !0);
2385
- }, pr = async (t) => {
2354
+ (t = G.value) == null || t.call(G, !0);
2355
+ }, yr = async (t) => {
2386
2356
  let {
2387
2357
  title: e,
2388
2358
  content: i
2389
2359
  } = t;
2390
- return V.value && (V.value(!1), N(() => {
2391
- V.value = null, Te.value = !1;
2392
- })), N(() => {
2393
- it.value = e || "", nt.value = i || "", Te.value = !0;
2360
+ return G.value && (G.value(!1), T(() => {
2361
+ G.value = null, Le.value = !1;
2362
+ })), T(() => {
2363
+ st.value = e || "", at.value = i || "", Le.value = !0;
2394
2364
  }), new Promise((n) => {
2395
- V.value = (r) => {
2396
- N(() => {
2397
- V.value = null, Te.value = !1, it.value = "", nt.value = "";
2365
+ G.value = (r) => {
2366
+ T(() => {
2367
+ G.value = null, Le.value = !1, st.value = "", at.value = "";
2398
2368
  }), n(r);
2399
2369
  };
2400
2370
  });
2401
- }, _r = () => Te.value ? w("div", {
2371
+ }, _r = () => Le.value ? b("div", {
2402
2372
  className: fr,
2403
- children: w("div", {
2373
+ children: b("div", {
2404
2374
  className: "card-wrapper",
2405
- children: [w("div", {
2375
+ children: [b("div", {
2406
2376
  className: "body",
2407
- children: [w("div", {
2377
+ children: [b("div", {
2408
2378
  className: "title",
2409
- children: it.value
2410
- }), w("div", {
2379
+ children: st.value
2380
+ }), b("div", {
2411
2381
  className: "content",
2412
- children: nt.value
2382
+ children: at.value
2413
2383
  })]
2414
- }), w("div", {
2384
+ }), b("div", {
2415
2385
  className: "footer",
2416
- children: [w("button", {
2417
- onClick: hr,
2386
+ children: [b("button", {
2387
+ onClick: vr,
2418
2388
  className: "cancel-btn",
2419
2389
  children: "Cancel"
2420
- }), w("button", {
2421
- onClick: vr,
2390
+ }), b("button", {
2391
+ onClick: pr,
2422
2392
  className: "confirm-btm",
2423
2393
  children: "Confirm"
2424
2394
  })]
2425
2395
  })]
2426
2396
  })
2427
- }) : null, yr = ge`
2428
- ${P}
2397
+ }) : null, gr = le`
2398
+ ${N}
2429
2399
  position: relative;
2430
2400
  display: flex;
2431
2401
  align-items: center;
@@ -2443,7 +2413,7 @@ const fr = ge`
2443
2413
  }
2444
2414
 
2445
2415
  button {
2446
- ${P}
2416
+ ${N}
2447
2417
  padding: 0 20px;
2448
2418
  height: 30px;
2449
2419
  line-height: 30px;
@@ -2457,18 +2427,18 @@ const fr = ge`
2457
2427
  cursor: not-allowed;
2458
2428
  }
2459
2429
  }
2460
- `, gr = () => {
2461
- const t = I(!1), e = I(null);
2430
+ `, wr = () => {
2431
+ const t = E(!1), e = E(null);
2462
2432
  return {
2463
2433
  timerPaused: t,
2464
2434
  startTimestamp: e,
2465
2435
  startTimer: () => {
2466
- N(() => {
2436
+ T(() => {
2467
2437
  e.value = Date.now(), t.value = !1;
2468
2438
  });
2469
2439
  }
2470
2440
  };
2471
- }, mr = (t) => {
2441
+ }, br = (t) => {
2472
2442
  let {
2473
2443
  countdown: e = 0,
2474
2444
  mode: i,
@@ -2478,65 +2448,63 @@ const fr = ge`
2478
2448
  const {
2479
2449
  startTimestamp: o,
2480
2450
  timerPaused: s
2481
- } = r, a = li(e);
2482
- lr(() => {
2483
- o.value && (a.value = e);
2484
- }), cr(() => {
2485
- a.value > 0 ? a.value -= 1 : N(() => {
2451
+ } = r, a = ui(e);
2452
+ ur(() => {
2453
+ a.value > 0 ? a.value -= 1 : T(() => {
2486
2454
  s.value = !0, a.value = 0;
2487
2455
  });
2488
2456
  }, s.value ? null : 1e3);
2489
- const d = fe(() => {
2457
+ const d = _e(() => {
2490
2458
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2491
2459
  return !1;
2492
- const v = Date.now() - o.value;
2493
- return a.value > 0 && e - a.value >= 5 && v >= 5e3;
2494
- }), l = fe(() => {
2460
+ const f = Date.now() - o.value;
2461
+ return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2462
+ }), l = _e(() => {
2495
2463
  if (i === "interstitial")
2496
2464
  return !0;
2497
2465
  if (!o.value)
2498
2466
  return !1;
2499
- const v = Date.now() - o.value;
2500
- return a.value <= 0 && v >= (e - 1) * 1e3 && e > 5;
2501
- }), c = fe(() => i === "interstitial" ? !1 : !d.value && !l.value), u = async () => {
2502
- if (s.value = !0, !await pr({
2467
+ const f = Date.now() - o.value;
2468
+ return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2469
+ }), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2470
+ if (s.value = !0, !await yr({
2503
2471
  title: "Are you sure?",
2504
2472
  content: "You will lose your reward if you dismiss this Ad."
2505
2473
  })) {
2506
2474
  s.value = !1;
2507
2475
  return;
2508
2476
  }
2509
- n("dismiss"), N(() => {
2477
+ n("dismiss"), T(() => {
2510
2478
  s.value = !0, a.value = 0, o.value = null;
2511
2479
  });
2512
- }, f = () => {
2513
- n("viewed"), N(() => {
2480
+ }, u = () => {
2481
+ n("viewed"), T(() => {
2514
2482
  s.value = !0, a.value = 0, o.value = null;
2515
2483
  });
2516
2484
  };
2517
- return w("div", {
2518
- className: yr,
2519
- children: [a.value > 0 && i !== "interstitial" && w("div", {
2485
+ return b("div", {
2486
+ className: gr,
2487
+ children: [a.value > 0 && i !== "interstitial" && b("div", {
2520
2488
  className: "timer",
2521
2489
  children: [a.value, "s"]
2522
- }), w("button", {
2523
- onClick: d.value ? u : l.value ? f : void 0,
2490
+ }), b("button", {
2491
+ onClick: d.value ? h : l.value ? u : void 0,
2524
2492
  disabled: c.value,
2525
- children: w("svg", {
2493
+ children: b("svg", {
2526
2494
  width: "12",
2527
2495
  height: "12",
2528
2496
  viewBox: "0 0 14 14",
2529
2497
  fill: "none",
2530
2498
  xmlns: "http://www.w3.org/2000/svg",
2531
- children: w("path", {
2499
+ children: b("path", {
2532
2500
  d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
2533
2501
  fill: "white"
2534
2502
  })
2535
2503
  })
2536
2504
  })]
2537
2505
  });
2538
- }, ui = () => {
2539
- const t = I(), e = I(), i = I(), n = I(), r = I(), o = I(!1), s = I(15), a = I(""), d = I("reward");
2506
+ }, fi = () => {
2507
+ const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
2540
2508
  return {
2541
2509
  afterAd: t,
2542
2510
  adDismissed: e,
@@ -2548,8 +2516,8 @@ const fr = ge`
2548
2516
  src: a,
2549
2517
  mode: d
2550
2518
  };
2551
- }, Ar = ge`
2552
- ${P}
2519
+ }, Ar = le`
2520
+ ${N}
2553
2521
  position: fixed;
2554
2522
  z-index: 2147483647;
2555
2523
  background: white;
@@ -2559,7 +2527,7 @@ const fr = ge`
2559
2527
  flex-direction: column;
2560
2528
 
2561
2529
  iframe {
2562
- ${P}
2530
+ ${N}
2563
2531
  flex: 1;
2564
2532
  position: relative;
2565
2533
  display: block;
@@ -2567,7 +2535,7 @@ const fr = ge`
2567
2535
  width: 100%;
2568
2536
  height: 100%;
2569
2537
  }
2570
- `, fi = (t) => {
2538
+ `, vi = (t) => {
2571
2539
  let {
2572
2540
  state: e
2573
2541
  } = t;
@@ -2581,37 +2549,39 @@ const fr = ge`
2581
2549
  countdown: d,
2582
2550
  src: l,
2583
2551
  mode: c
2584
- } = e, u = mi(() => gr(), []), f = (y) => {
2585
- var _, A, h, p;
2586
- a.value = !1, y === "dismiss" ? (_ = n.value) == null || _.call(n) : y === "viewed" && ((A = r.value) == null || A.call(r)), (h = i.value) == null || h.call(i), (p = o.value) == null || p.call(o);
2587
- }, v = () => {
2588
- var y;
2589
- (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2590
- u.startTimer();
2591
- }, 100), (y = s.value) == null || y.call(s);
2592
- };
2593
- return a.value ? w("div", {
2552
+ } = e, h = Ei(() => wr(), []), [u, f] = $t(!1), y = (g) => {
2553
+ var p, _, w, P;
2554
+ a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (w = i.value) == null || w.call(i), (P = o.value) == null || P.call(o), f(!1);
2555
+ }, v = Si(() => {
2556
+ var g;
2557
+ u || (f(!0), (g = s.value) == null || g.call(s));
2558
+ }, [u]);
2559
+ return Ue(() => {
2560
+ u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2561
+ h.startTimer();
2562
+ }, 100);
2563
+ }, [u, c.value]), a.value ? b("div", {
2594
2564
  className: Ar,
2595
- children: [w(mr, {
2565
+ children: [b(br, {
2596
2566
  mode: c.value,
2597
- onClose: f,
2567
+ onClose: y,
2598
2568
  countdown: d.value,
2599
- state: u
2600
- }), a.value && w("iframe", {
2569
+ state: h
2570
+ }), a.value && b("iframe", {
2601
2571
  src: l.value,
2602
2572
  onLoad: v,
2603
2573
  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"
2604
- }), w(_r, {})]
2574
+ }), b(_r, {})]
2605
2575
  }) : null;
2606
2576
  };
2607
- function W(t, e, i) {
2608
- return (e = wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2577
+ function J(t, e, i) {
2578
+ return (e = mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2609
2579
  }
2610
- function wr(t) {
2611
- var e = br(t, "string");
2580
+ function mr(t) {
2581
+ var e = Er(t, "string");
2612
2582
  return typeof e == "symbol" ? e : e + "";
2613
2583
  }
2614
- function br(t, e) {
2584
+ function Er(t, e) {
2615
2585
  if (typeof t != "object" || !t)
2616
2586
  return t;
2617
2587
  var i = t[Symbol.toPrimitive];
@@ -2623,13 +2593,13 @@ function br(t, e) {
2623
2593
  }
2624
2594
  return (e === "string" ? String : Number)(t);
2625
2595
  }
2626
- class Er {
2596
+ class Sr {
2627
2597
  constructor(e, i) {
2628
- W(this, "name", "OKSPIN"), W(this, "initialized", !1), W(this, "initCompleter", null), W(this, "context", void 0), W(this, "initParams", void 0), W(this, "adsOverlay", null), W(this, "adsIsShowing", !1), W(this, "lastUnDisplayedAdBreak", null), W(this, "state", ui()), this.context = e, this.initParams = i;
2598
+ J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "initParams", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "lastUnDisplayedAdBreak", null), J(this, "state", fi()), this.context = e, this.initParams = i;
2629
2599
  }
2630
2600
  async init() {
2631
2601
  var e;
2632
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), he(w(fi, {
2602
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(vi, {
2633
2603
  state: this.state
2634
2604
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2635
2605
  }
@@ -2679,6 +2649,235 @@ class Er {
2679
2649
  case "next":
2680
2650
  case "pause": {
2681
2651
  (s = e.beforeAd) == null || s.call(e);
2652
+ const h = () => {
2653
+ var f;
2654
+ this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
2655
+ }, u = () => {
2656
+ var f;
2657
+ this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
2658
+ breakType: e.type,
2659
+ breakName: e.name,
2660
+ breakFormat: "interstitial",
2661
+ breakStatus: "viewed"
2662
+ });
2663
+ };
2664
+ T(() => {
2665
+ this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2666
+ });
2667
+ break;
2668
+ }
2669
+ case "reward": {
2670
+ this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
2671
+ breakType: this.lastUnDisplayedAdBreak.type,
2672
+ breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2673
+ breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2674
+ breakStatus: "ignored"
2675
+ }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2676
+ const h = () => {
2677
+ var p;
2678
+ this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
2679
+ }, u = {
2680
+ breakType: e.type,
2681
+ breakName: e.name,
2682
+ breakFormat: "reward",
2683
+ breakStatus: "ignored"
2684
+ }, f = () => {
2685
+ var p;
2686
+ this.adsIsShowing = !1, u.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
2687
+ }, y = () => {
2688
+ var p;
2689
+ this.adsIsShowing = !1, u.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
2690
+ }, v = () => {
2691
+ var p;
2692
+ this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
2693
+ };
2694
+ T(() => {
2695
+ this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2696
+ });
2697
+ const g = () => {
2698
+ var p;
2699
+ if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2700
+ (p = e.adBreakDone) == null || p.call(e, {
2701
+ breakType: e.type,
2702
+ breakName: e.name,
2703
+ breakFormat: "reward",
2704
+ breakStatus: "notReady"
2705
+ });
2706
+ return;
2707
+ }
2708
+ this.adsIsShowing = !0, T(() => {
2709
+ var _;
2710
+ this.state.countdown.value = (_ = i.params.countdown) != null ? _ : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2711
+ });
2712
+ };
2713
+ this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
2714
+ break;
2715
+ }
2716
+ }
2717
+ }
2718
+ }
2719
+ const re = {};
2720
+ window.addEventListener("message", (t) => {
2721
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || re[t.data.type] && re[t.data.type].forEach((e) => {
2722
+ e(t.data.data);
2723
+ });
2724
+ });
2725
+ const ie = (t, e) => {
2726
+ Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
2727
+ re[t].delete(e);
2728
+ }), [t, e]);
2729
+ }, pi = () => {
2730
+ const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
2731
+ return {
2732
+ afterAd: t,
2733
+ adDismissed: e,
2734
+ adViewed: i,
2735
+ adBreakDone: n,
2736
+ adLoaded: r,
2737
+ adLinkClicked: o,
2738
+ adError: s,
2739
+ visible: a,
2740
+ src: d
2741
+ };
2742
+ }, kr = le`
2743
+ ${N}
2744
+ position: fixed;
2745
+ z-index: 2147483647;
2746
+ background: white;
2747
+ width: 100vw;
2748
+ height: 100vh;
2749
+ display: flex;
2750
+ flex-direction: column;
2751
+
2752
+ iframe {
2753
+ ${N}
2754
+ flex: 1;
2755
+ position: relative;
2756
+ display: block;
2757
+ background: white;
2758
+ width: 100%;
2759
+ height: 100%;
2760
+ }
2761
+ `, yi = (t) => {
2762
+ let {
2763
+ state: e
2764
+ } = t;
2765
+ const {
2766
+ afterAd: i,
2767
+ adDismissed: n,
2768
+ adViewed: r,
2769
+ adBreakDone: o,
2770
+ adLoaded: s,
2771
+ adLinkClicked: a,
2772
+ visible: d,
2773
+ src: l
2774
+ } = e, [c, h] = $t(!1), u = (y) => {
2775
+ var v, g, p, _;
2776
+ h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
2777
+ }, f = () => {
2778
+ var y;
2779
+ (y = s.value) == null || y.call(s);
2780
+ };
2781
+ return ie("appsrockets_ad_dismissed", () => u("dismiss")), ie("appsrockets_ad_rewarded", () => u("viewed")), ie("appsrockets_ad_completed", () => u("viewed")), ie("appsrockets_ad_skipped", () => u("viewed")), ie("appsrockets_ad_clicked", (y) => {
2782
+ var v;
2783
+ return (v = a.value) == null ? void 0 : v.call(a, y);
2784
+ }), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
2785
+ className: kr,
2786
+ style: {
2787
+ display: c ? "flex" : "none"
2788
+ },
2789
+ children: d.value && b("iframe", {
2790
+ src: l.value,
2791
+ onLoad: f,
2792
+ allowFullScreen: !0,
2793
+ allow: "autoplay",
2794
+ 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"
2795
+ })
2796
+ }) : null;
2797
+ };
2798
+ function Y(t, e, i) {
2799
+ return (e = xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2800
+ }
2801
+ function xr(t) {
2802
+ var e = Rr(t, "string");
2803
+ return typeof e == "symbol" ? e : e + "";
2804
+ }
2805
+ function Rr(t, e) {
2806
+ if (typeof t != "object" || !t)
2807
+ return t;
2808
+ var i = t[Symbol.toPrimitive];
2809
+ if (i !== void 0) {
2810
+ var n = i.call(t, e);
2811
+ if (typeof n != "object")
2812
+ return n;
2813
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2814
+ }
2815
+ return (e === "string" ? String : Number)(t);
2816
+ }
2817
+ class Ir {
2818
+ constructor(e, i) {
2819
+ Y(this, "name", "APPSROCKETS"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", pi()), Y(this, "processUrl", (n) => {
2820
+ var a;
2821
+ const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2822
+ 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();
2823
+ }), this.context = e;
2824
+ }
2825
+ async init() {
2826
+ var e;
2827
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(yi, {
2828
+ state: this.state
2829
+ }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2830
+ }
2831
+ adConfig(e) {
2832
+ var i;
2833
+ if (this.initialized) {
2834
+ (i = e.onReady) == null || i.call(e);
2835
+ return;
2836
+ }
2837
+ this.initCompleter = () => {
2838
+ var n;
2839
+ (n = e.onReady) == null || n.call(e);
2840
+ };
2841
+ }
2842
+ adBreak(e, i) {
2843
+ var r, o, s, a, d, l, c, h;
2844
+ if (!this.initialized || !this.adsOverlay || !i.params.url) {
2845
+ (r = e.adBreakDone) == null || r.call(e, {
2846
+ breakType: e.type,
2847
+ breakName: e.type === "preroll" ? "" : e.name,
2848
+ breakFormat: e.type === "reward" ? "reward" : "interstitial",
2849
+ breakStatus: "notReady"
2850
+ });
2851
+ return;
2852
+ }
2853
+ if (this.adsIsShowing) {
2854
+ (o = e.adBreakDone) == null || o.call(e, {
2855
+ breakType: e.type,
2856
+ breakName: e.type === "preroll" ? "" : e.name,
2857
+ breakFormat: e.type === "reward" ? "reward" : "interstitial",
2858
+ breakStatus: "frequencyCapped"
2859
+ });
2860
+ return;
2861
+ }
2862
+ const n = (u) => {
2863
+ var f, y;
2864
+ (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
2865
+ };
2866
+ switch (e.type) {
2867
+ case "preroll": {
2868
+ (s = e.adBreakDone) == null || s.call(e, {
2869
+ breakType: e.type,
2870
+ breakName: "",
2871
+ breakFormat: "interstitial",
2872
+ breakStatus: "noAdPreloaded"
2873
+ });
2874
+ break;
2875
+ }
2876
+ case "start":
2877
+ case "browse":
2878
+ case "next":
2879
+ case "pause": {
2880
+ (a = e.beforeAd) == null || a.call(e);
2682
2881
  const u = () => {
2683
2882
  var v;
2684
2883
  this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
@@ -2690,44 +2889,54 @@ class Er {
2690
2889
  breakFormat: "interstitial",
2691
2890
  breakStatus: "viewed"
2692
2891
  });
2892
+ }, y = () => {
2893
+ var v;
2894
+ this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2895
+ breakType: e.type,
2896
+ breakName: e.name,
2897
+ breakFormat: "interstitial",
2898
+ breakStatus: "noAdPreloaded"
2899
+ });
2693
2900
  };
2694
- N(() => {
2695
- this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2901
+ T(() => {
2902
+ this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
2696
2903
  });
2697
2904
  break;
2698
2905
  }
2699
2906
  case "reward": {
2700
- this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
2907
+ this.lastUnDisplayedAdBreak && ((l = (d = this.lastUnDisplayedAdBreak).adBreakDone) == null || l.call(d, {
2701
2908
  breakType: this.lastUnDisplayedAdBreak.type,
2702
2909
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2703
2910
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2704
2911
  breakStatus: "ignored"
2705
- }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2912
+ }), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
2706
2913
  const u = () => {
2707
- var h;
2708
- this.adsIsShowing = !1, (h = e.afterAd) == null || h.call(e);
2914
+ var w;
2915
+ this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
2709
2916
  }, f = {
2710
2917
  breakType: e.type,
2711
2918
  breakName: e.name,
2712
2919
  breakFormat: "reward",
2713
2920
  breakStatus: "ignored"
2714
- }, v = () => {
2715
- var h;
2716
- this.adsIsShowing = !1, f.breakStatus = "dismissed", (h = e.adDismissed) == null || h.call(e);
2717
2921
  }, y = () => {
2718
- var h;
2719
- this.adsIsShowing = !1, f.breakStatus = "viewed", (h = e.adViewed) == null || h.call(e);
2720
- }, _ = () => {
2721
- var h;
2722
- this.adsIsShowing = !1, (h = e.adBreakDone) == null || h.call(e, f);
2922
+ var w;
2923
+ this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
2924
+ }, v = () => {
2925
+ var w;
2926
+ this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
2927
+ }, g = () => {
2928
+ var w;
2929
+ this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
2930
+ }, p = () => {
2931
+ this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2723
2932
  };
2724
- N(() => {
2725
- this.state.afterAd.value = u, this.state.adDismissed.value = v, this.state.adViewed.value = y, this.state.adBreakDone.value = _;
2933
+ T(() => {
2934
+ this.state.afterAd.value = u, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = p;
2726
2935
  });
2727
- const A = () => {
2728
- var h;
2936
+ const _ = () => {
2937
+ var w;
2729
2938
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2730
- (h = e.adBreakDone) == null || h.call(e, {
2939
+ (w = e.adBreakDone) == null || w.call(e, {
2731
2940
  breakType: e.type,
2732
2941
  breakName: e.name,
2733
2942
  breakFormat: "reward",
@@ -2735,25 +2944,24 @@ class Er {
2735
2944
  });
2736
2945
  return;
2737
2946
  }
2738
- this.adsIsShowing = !0, N(() => {
2739
- var p;
2740
- this.state.countdown.value = (p = i.params.countdown) != null ? p : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2947
+ this.adsIsShowing = !0, T(() => {
2948
+ this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
2741
2949
  });
2742
2950
  };
2743
- this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, A);
2951
+ this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, _);
2744
2952
  break;
2745
2953
  }
2746
2954
  }
2747
2955
  }
2748
2956
  }
2749
- function Y(t, e, i) {
2750
- return (e = Sr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2957
+ function Q(t, e, i) {
2958
+ return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2751
2959
  }
2752
- function Sr(t) {
2753
- var e = xr(t, "string");
2960
+ function Or(t) {
2961
+ var e = Tr(t, "string");
2754
2962
  return typeof e == "symbol" ? e : e + "";
2755
2963
  }
2756
- function xr(t, e) {
2964
+ function Tr(t, e) {
2757
2965
  if (typeof t != "object" || !t)
2758
2966
  return t;
2759
2967
  var i = t[Symbol.toPrimitive];
@@ -2765,15 +2973,19 @@ function xr(t, e) {
2765
2973
  }
2766
2974
  return (e === "string" ? String : Number)(t);
2767
2975
  }
2768
- class to {
2976
+ class co {
2769
2977
  constructor(e) {
2770
- if (Y(this, "context", void 0), Y(this, "contextInfo", void 0), Y(this, "providers", {}), Y(this, "channelPolicy", void 0), Y(this, "adsActionDetection", void 0), Y(this, "adsTrackSerializer", void 0), Y(this, "initialized", !1), Y(this, "initializedTimeStamp", Date.now()), e)
2771
- this.context = e, this.channelPolicy = new an(this.context), this.adsActionDetection = new xi(this.context), this.adsTrackSerializer = new Vt(this.context), this.contextInfo = this.context.getContextInfo();
2978
+ if (Q(this, "context", void 0), Q(this, "contextInfo", void 0), Q(this, "providers", {}), Q(this, "channelPolicy", void 0), Q(this, "adsActionDetection", void 0), Q(this, "adsTrackSerializer", void 0), Q(this, "initialized", !1), Q(this, "initializedTimeStamp", Date.now()), e)
2979
+ this.context = e, this.channelPolicy = new hn(this.context), this.adsActionDetection = new Ti(this.context), this.adsTrackSerializer = new Kt(this.context), this.contextInfo = this.context.getContextInfo();
2772
2980
  else
2773
2981
  throw new Error("JoliboxAdsForGame requires a configuration object");
2774
2982
  }
2775
2983
  getRequestContextData(e) {
2776
- var i, n;
2984
+ var r, o;
2985
+ const {
2986
+ width: i,
2987
+ height: n
2988
+ } = this.context.getWindowInfo();
2777
2989
  return {
2778
2990
  report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
2779
2991
  sessionId: this.contextInfo.sessionId,
@@ -2786,8 +2998,12 @@ class to {
2786
2998
  sessionId: this.contextInfo.sessionId,
2787
2999
  deviceId: this.contextInfo.deviceId,
2788
3000
  adId: this.contextInfo.adId,
2789
- deviceModel: (i = this.contextInfo.deviceModel) != null ? i : "UnknownModel",
2790
- deviceBrand: (n = this.contextInfo.deviceBrand) != null ? n : "UnknownBrand"
3001
+ deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
3002
+ deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
3003
+ dimension: {
3004
+ width: i,
3005
+ height: n
3006
+ }
2791
3007
  };
2792
3008
  }
2793
3009
  getRequestBizParams() {
@@ -2811,15 +3027,20 @@ class to {
2811
3027
  for (const n of i)
2812
3028
  switch (n.provider) {
2813
3029
  case "ADSENSE": {
2814
- const r = new cn(this.context, n.params);
3030
+ const r = new pn(this.context, n.params);
2815
3031
  await r.init(), this.providers.ADSENSE = r;
2816
3032
  break;
2817
3033
  }
2818
3034
  case "OKSPIN": {
2819
- const r = new Er(this.context, n.params);
3035
+ const r = new Sr(this.context, n.params);
2820
3036
  await r.init(), this.providers.OKSPIN = r;
2821
3037
  break;
2822
3038
  }
3039
+ case "APPSROCKETS": {
3040
+ const r = new Ir(this.context, n.params);
3041
+ await r.init(), this.providers.APPSROCKETS = r;
3042
+ break;
3043
+ }
2823
3044
  }
2824
3045
  this.initialized = !0;
2825
3046
  }
@@ -2827,7 +3048,7 @@ class to {
2827
3048
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
2828
3049
  }
2829
3050
  async adBreak(e) {
2830
- var r, o, s, a, d, l, c, u, f;
3051
+ var r, o, s, a, d, l, c, h, u;
2831
3052
  if (Date.now() - this.initializedTimeStamp < 3e3) {
2832
3053
  (r = e.adBreakDone) == null || r.call(e, {
2833
3054
  breakType: e.type,
@@ -2857,7 +3078,7 @@ class to {
2857
3078
  }
2858
3079
  try {
2859
3080
  const {
2860
- data: v,
3081
+ data: f,
2861
3082
  code: y
2862
3083
  } = await this.context.httpClient.post("/api/ads/info", {
2863
3084
  data: {
@@ -2877,8 +3098,8 @@ class to {
2877
3098
  });
2878
3099
  return;
2879
3100
  } else {
2880
- const _ = v;
2881
- if (_.length === 0) {
3101
+ const v = f == null ? void 0 : f.sort((w, P) => w.seq - P.seq);
3102
+ if (v.length === 0) {
2882
3103
  (d = e.adBreakDone) == null || d.call(e, {
2883
3104
  breakType: e.type,
2884
3105
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -2887,47 +3108,47 @@ class to {
2887
3108
  });
2888
3109
  return;
2889
3110
  }
2890
- let A = !0, h = null;
2891
- const p = new bi(this.context);
2892
- for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; _.length > 0; ) {
2893
- const L = _.shift(), z = this.providers[L.provider];
2894
- if (z) {
2895
- const [$, j] = await p.callAdBreakAndContinue(z, e, L);
2896
- A = $, h = j;
3111
+ let g = !0, p = null;
3112
+ const _ = new Ri(this.context);
3113
+ for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; v.length > 0; ) {
3114
+ const w = v.shift(), P = this.providers[w.provider];
3115
+ if (P) {
3116
+ const [U, F] = await _.callAdBreakAndContinue(P, e, w);
3117
+ g = U, p = F;
2897
3118
  } else
2898
- A = !0, h = {
3119
+ g = !0, p = {
2899
3120
  breakType: e.type,
2900
3121
  breakName: e.type === "preroll" ? void 0 : e.name,
2901
3122
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
2902
3123
  breakStatus: "notReady"
2903
3124
  };
2904
- if (!A)
3125
+ if (!g)
2905
3126
  break;
2906
3127
  }
2907
- A && h && ((c = e.adBreakDone) == null || c.call(e, h));
3128
+ g && p && ((c = e.adBreakDone) == null || c.call(e, p));
2908
3129
  }
2909
- } catch (v) {
2910
- (u = e.adBreakDone) == null || u.call(e, {
3130
+ } catch (f) {
3131
+ (h = e.adBreakDone) == null || h.call(e, {
2911
3132
  breakType: e.type,
2912
3133
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
2913
3134
  breakStatus: "noAdPreloaded"
2914
3135
  });
2915
3136
  } finally {
2916
- (f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
3137
+ (u = this.context.eventEmitter) == null || u.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
2917
3138
  }
2918
3139
  }
2919
3140
  adUnit(e) {
2920
3141
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
2921
3142
  }
2922
3143
  }
2923
- function Ke(t, e, i) {
2924
- return (e = Rr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3144
+ function Je(t, e, i) {
3145
+ return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2925
3146
  }
2926
- function Rr(t) {
2927
- var e = Ir(t, "string");
3147
+ function Dr(t) {
3148
+ var e = Lr(t, "string");
2928
3149
  return typeof e == "symbol" ? e : e + "";
2929
3150
  }
2930
- function Ir(t, e) {
3151
+ function Lr(t, e) {
2931
3152
  if (typeof t != "object" || !t)
2932
3153
  return t;
2933
3154
  var i = t[Symbol.toPrimitive];
@@ -2939,9 +3160,9 @@ function Ir(t, e) {
2939
3160
  }
2940
3161
  return (e === "string" ? String : Number)(t);
2941
3162
  }
2942
- class Tr {
3163
+ class Cr {
2943
3164
  constructor(e) {
2944
- Ke(this, "context", void 0), Ke(this, "currentProvider", void 0), Ke(this, "continueCallback", void 0), this.context = e;
3165
+ Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
2945
3166
  }
2946
3167
  get paramsToTrack() {
2947
3168
  var e, i;
@@ -2984,14 +3205,14 @@ class Tr {
2984
3205
  });
2985
3206
  }
2986
3207
  }
2987
- function qe(t, e, i) {
2988
- return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3208
+ function Ye(t, e, i) {
3209
+ return (e = Nr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2989
3210
  }
2990
- function Or(t) {
2991
- var e = kr(t, "string");
3211
+ function Nr(t) {
3212
+ var e = Pr(t, "string");
2992
3213
  return typeof e == "symbol" ? e : e + "";
2993
3214
  }
2994
- function kr(t, e) {
3215
+ function Pr(t, e) {
2995
3216
  if (typeof t != "object" || !t)
2996
3217
  return t;
2997
3218
  var i = t[Symbol.toPrimitive];
@@ -3003,27 +3224,27 @@ function kr(t, e) {
3003
3224
  }
3004
3225
  return (e === "string" ? String : Number)(t);
3005
3226
  }
3006
- class B extends Error {
3227
+ class M extends Error {
3007
3228
  constructor(e, i) {
3008
- super(e.message), qe(this, "name", void 0), qe(this, "type", void 0), qe(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3229
+ super(e.message), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3009
3230
  }
3010
3231
  static from(e, i) {
3011
3232
  switch (i) {
3012
3233
  case "GOOGLE_IMA_ERROR":
3013
- return new B(e, i);
3234
+ return new M(e, i);
3014
3235
  case "JOLIBOX_IMA_ERROR":
3015
- return new B(e, i);
3236
+ return new M(e, i);
3016
3237
  }
3017
3238
  }
3018
3239
  }
3019
- function S(t, e, i) {
3020
- return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3240
+ function x(t, e, i) {
3241
+ return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3021
3242
  }
3022
- function Dr(t) {
3023
- var e = Lr(t, "string");
3243
+ function Mr(t) {
3244
+ var e = $r(t, "string");
3024
3245
  return typeof e == "symbol" ? e : e + "";
3025
3246
  }
3026
- function Lr(t, e) {
3247
+ function $r(t, e) {
3027
3248
  if (typeof t != "object" || !t)
3028
3249
  return t;
3029
3250
  var i = t[Symbol.toPrimitive];
@@ -3035,33 +3256,33 @@ function Lr(t, e) {
3035
3256
  }
3036
3257
  return (e === "string" ? String : Number)(t);
3037
3258
  }
3038
- class Nr {
3259
+ class Ur {
3039
3260
  constructor(e, i, n) {
3040
- S(this, "adsLoader", void 0), S(this, "adDisplayContainer", void 0), S(this, "isAdPlaying", !1), S(this, "isContentFinished", !1), S(this, "videoContent", void 0), S(this, "adContainer", void 0), S(this, "adsManager", void 0), S(this, "intervalTimer", void 0), S(this, "completed", !1), S(this, "adTagUrl", void 0), S(this, "notifyRequestAd", void 0), S(this, "notifyLoaded", void 0), S(this, "notifyPlayingAd", void 0), S(this, "notifyCompleted", void 0), S(this, "notifyError", void 0), S(this, "destroy", () => {
3041
- var r, o, s, a, d, l, c, u, f, v, y;
3042
- this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (v = this.adsManager) == null || v.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3043
- }), S(this, "requestAds", async (r, o) => {
3261
+ x(this, "adsLoader", void 0), x(this, "adDisplayContainer", void 0), x(this, "isAdPlaying", !1), x(this, "isContentFinished", !1), x(this, "videoContent", void 0), x(this, "adContainer", void 0), x(this, "adsManager", void 0), x(this, "intervalTimer", void 0), x(this, "completed", !1), x(this, "adTagUrl", void 0), x(this, "notifyRequestAd", void 0), x(this, "notifyLoaded", void 0), x(this, "notifyPlayingAd", void 0), x(this, "notifyCompleted", void 0), x(this, "notifyError", void 0), x(this, "destroy", () => {
3262
+ var r, o, s, a, d, l, c, h, u, f, y;
3263
+ this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3264
+ }), x(this, "requestAds", async (r, o) => {
3044
3265
  var c;
3045
- this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (u) => {
3046
- var f;
3047
- return (f = r.onAdError) == null ? void 0 : f.call(r, B.from(u, "GOOGLE_IMA_ERROR"));
3266
+ this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3267
+ var u;
3268
+ return (u = r.onAdError) == null ? void 0 : u.call(r, M.from(h, "GOOGLE_IMA_ERROR"));
3048
3269
  }, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
3049
3270
  const s = () => {
3050
- var u;
3051
- this.isAdPlaying || (this.isContentFinished = !0, (u = this.adsLoader) == null || u.contentComplete());
3271
+ var h;
3272
+ this.isAdPlaying || (this.isContentFinished = !0, (h = this.adsLoader) == null || h.contentComplete());
3052
3273
  };
3053
3274
  this.videoContent.onended = s;
3054
3275
  const a = new window.google.ima.AdsRequest();
3055
3276
  let d = "";
3056
- Object.keys(o.params).forEach((u) => {
3057
- const f = window.encodeURIComponent(o.params[u]);
3058
- d += `&${u}=${f}`;
3277
+ Object.keys(o.params).forEach((h) => {
3278
+ const u = window.encodeURIComponent(o.params[h]);
3279
+ d += `&${h}=${u}`;
3059
3280
  });
3060
3281
  const l = `${this.adTagUrl}${d}`;
3061
3282
  a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (c = this.notifyRequestAd) == null || c.call(this);
3062
- }), S(this, "createAdDisplayContainer", () => {
3283
+ }), x(this, "createAdDisplayContainer", () => {
3063
3284
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
3064
- }), S(this, "playAds", () => {
3285
+ }), x(this, "playAds", () => {
3065
3286
  var r, o;
3066
3287
  this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
3067
3288
  try {
@@ -3069,10 +3290,10 @@ class Nr {
3069
3290
  } catch (s) {
3070
3291
  console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
3071
3292
  }
3072
- }), S(this, "onAdsManagerLoaded", (r) => {
3293
+ }), x(this, "onAdsManagerLoaded", (r) => {
3073
3294
  const o = new window.google.ima.AdsRenderingSettings();
3074
3295
  o.restoreCustomPlaybackStateOnAdBreakComplete = !0, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
3075
- }), S(this, "onAdEvent", (r) => {
3296
+ }), x(this, "onAdEvent", (r) => {
3076
3297
  var s, a, d, l;
3077
3298
  const o = r.getAd();
3078
3299
  switch (r.type) {
@@ -3090,19 +3311,19 @@ class Nr {
3090
3311
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
3091
3312
  break;
3092
3313
  }
3093
- }), S(this, "onAdError", (r) => {
3314
+ }), x(this, "onAdError", (r) => {
3094
3315
  var o, s;
3095
3316
  (o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
3096
- }), S(this, "onContentPauseRequested", () => {
3317
+ }), x(this, "onContentPauseRequested", () => {
3097
3318
  this.isAdPlaying = !0, this.videoContent.pause();
3098
- }), S(this, "onContentResumeRequested", () => {
3319
+ }), x(this, "onContentResumeRequested", () => {
3099
3320
  this.isAdPlaying = !1;
3100
3321
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3101
3322
  }
3102
3323
  }
3103
- var Oe = /* @__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))(Oe || {});
3104
- const Pr = () => {
3105
- const t = I(!1), e = I(!1), i = I(null), n = ft(), r = ft();
3324
+ var Ce = /* @__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))(Ce || {});
3325
+ const Br = () => {
3326
+ const t = E(!1), e = E(!1), i = E(null), n = vt(), r = vt();
3106
3327
  return {
3107
3328
  visible: t,
3108
3329
  canRetry: e,
@@ -3110,8 +3331,8 @@ const Pr = () => {
3110
3331
  videoRef: n,
3111
3332
  adContainerRef: r
3112
3333
  };
3113
- }, Cr = ge`
3114
- ${P}
3334
+ }, jr = le`
3335
+ ${N}
3115
3336
  position: fixed;
3116
3337
  left: 0;
3117
3338
  top: 0;
@@ -3126,7 +3347,7 @@ const Pr = () => {
3126
3347
  }
3127
3348
 
3128
3349
  .ads-wrapper {
3129
- ${P}
3350
+ ${N}
3130
3351
  position: relative;
3131
3352
  width: 100%;
3132
3353
  height: 100%;
@@ -3149,7 +3370,7 @@ const Pr = () => {
3149
3370
  }
3150
3371
 
3151
3372
  .retry-button {
3152
- ${P}
3373
+ ${N}
3153
3374
  position: absolute;
3154
3375
  width: 100%;
3155
3376
  height: 100%;
@@ -3159,7 +3380,7 @@ const Pr = () => {
3159
3380
  cursor: pointer;
3160
3381
  }
3161
3382
  }
3162
- `, Mr = (t) => {
3383
+ `, Fr = (t) => {
3163
3384
  let {
3164
3385
  onReady: e,
3165
3386
  state: i
@@ -3171,40 +3392,40 @@ const Pr = () => {
3171
3392
  videoRef: s,
3172
3393
  adContainerRef: a
3173
3394
  } = i, d = () => {
3174
- r.value && (r.value(), N(() => {
3395
+ r.value && (r.value(), T(() => {
3175
3396
  r.value = null, o.value = !1;
3176
3397
  }));
3177
3398
  };
3178
- return Pt(() => {
3399
+ return Ue(() => {
3179
3400
  e();
3180
- }, [e]), w("div", {
3181
- className: Cr,
3401
+ }, [e]), b("div", {
3402
+ className: jr,
3182
3403
  "data-visible": n.value,
3183
- children: w("div", {
3404
+ children: b("div", {
3184
3405
  className: "ads-wrapper",
3185
- children: [w("video", {
3406
+ children: [b("video", {
3186
3407
  ref: s,
3187
3408
  width: "100%",
3188
3409
  height: "100%"
3189
- }), w("div", {
3410
+ }), b("div", {
3190
3411
  id: "ad-container",
3191
3412
  ref: a
3192
- }), o.value ? w("div", {
3413
+ }), o.value ? b("div", {
3193
3414
  className: "retry-button",
3194
3415
  onClick: d,
3195
- children: w("svg", {
3416
+ children: b("svg", {
3196
3417
  width: "64",
3197
3418
  height: "64",
3198
3419
  viewBox: "0 0 64 64",
3199
3420
  fill: "none",
3200
3421
  xmlns: "http://www.w3.org/2000/svg",
3201
- children: [w("circle", {
3422
+ children: [b("circle", {
3202
3423
  cx: "32",
3203
3424
  cy: "32",
3204
3425
  r: "32",
3205
3426
  fill: "#141416",
3206
3427
  fillOpacity: "0.3"
3207
- }), w("path", {
3428
+ }), b("path", {
3208
3429
  d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
3209
3430
  fill: "white"
3210
3431
  })]
@@ -3213,14 +3434,14 @@ const Pr = () => {
3213
3434
  })
3214
3435
  });
3215
3436
  };
3216
- function J(t, e, i) {
3217
- return (e = $r(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3437
+ function X(t, e, i) {
3438
+ return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3218
3439
  }
3219
- function $r(t) {
3220
- var e = Ur(t, "string");
3440
+ function Vr(t) {
3441
+ var e = zr(t, "string");
3221
3442
  return typeof e == "symbol" ? e : e + "";
3222
3443
  }
3223
- function Ur(t, e) {
3444
+ function zr(t, e) {
3224
3445
  if (typeof t != "object" || !t)
3225
3446
  return t;
3226
3447
  var i = t[Symbol.toPrimitive];
@@ -3232,9 +3453,9 @@ function Ur(t, e) {
3232
3453
  }
3233
3454
  return (e === "string" ? String : Number)(t);
3234
3455
  }
3235
- class jr {
3456
+ class Gr {
3236
3457
  constructor(e) {
3237
- J(this, "name", "GOOGLE_IMA"), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "initialized", !1), J(this, "ima", null), J(this, "state", Pr()), J(this, "init", async (i) => {
3458
+ X(this, "name", "GOOGLE_IMA"), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "initialized", !1), X(this, "ima", null), X(this, "state", Br()), X(this, "init", async (i) => {
3238
3459
  if (this.initialized)
3239
3460
  return;
3240
3461
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3250,19 +3471,19 @@ class jr {
3250
3471
  }, s.onerror = o, document.head.appendChild(s);
3251
3472
  }
3252
3473
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3253
- he(w(Mr, {
3474
+ te(b(Fr, {
3254
3475
  state: this.state,
3255
3476
  onReady: () => {
3256
- this.ima = new Nr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3477
+ this.ima = new Ur(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3257
3478
  }
3258
3479
  }), this.adsOverlay);
3259
3480
  }), this.initialized = !0;
3260
- }), J(this, "destroy", () => {
3261
- this.adsOverlay && (he(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3262
- }), J(this, "requestAd", (i, n) => {
3481
+ }), X(this, "destroy", () => {
3482
+ this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3483
+ }), X(this, "requestAd", (i, n) => {
3263
3484
  var a;
3264
3485
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3265
- const d = B.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3486
+ const d = M.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3266
3487
  (a = i.onAdError) == null || a.call(i, d);
3267
3488
  return;
3268
3489
  }
@@ -3272,9 +3493,9 @@ class jr {
3272
3493
  }, o = (d) => {
3273
3494
  let l = !1;
3274
3495
  switch (d.raw.getErrorCode()) {
3275
- case Oe.AUTOPLAY_DISALLOWED:
3276
- case Oe.VIDEO_PLAY_ERROR:
3277
- case Oe.ADS_REQUEST_NETWORK_ERROR: {
3496
+ case Ce.AUTOPLAY_DISALLOWED:
3497
+ case Ce.VIDEO_PLAY_ERROR:
3498
+ case Ce.ADS_REQUEST_NETWORK_ERROR: {
3278
3499
  l = !0;
3279
3500
  break;
3280
3501
  }
@@ -3289,7 +3510,7 @@ class jr {
3289
3510
  const c = () => {
3290
3511
  this.ima.destroy(), this.requestAd(i, n);
3291
3512
  };
3292
- N(() => {
3513
+ T(() => {
3293
3514
  this.state.canRetry.value = !0, this.state.retry.value = c;
3294
3515
  });
3295
3516
  }
@@ -3298,14 +3519,14 @@ class jr {
3298
3519
  }), this.context = e;
3299
3520
  }
3300
3521
  }
3301
- function G(t, e, i) {
3302
- return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3522
+ function K(t, e, i) {
3523
+ return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3303
3524
  }
3304
- function Fr(t) {
3305
- var e = Br(t, "string");
3525
+ function Kr(t) {
3526
+ var e = qr(t, "string");
3306
3527
  return typeof e == "symbol" ? e : e + "";
3307
3528
  }
3308
- function Br(t, e) {
3529
+ function qr(t, e) {
3309
3530
  if (typeof t != "object" || !t)
3310
3531
  return t;
3311
3532
  var i = t[Symbol.toPrimitive];
@@ -3317,24 +3538,24 @@ function Br(t, e) {
3317
3538
  }
3318
3539
  return (e === "string" ? String : Number)(t);
3319
3540
  }
3320
- class Vr {
3541
+ class Hr {
3321
3542
  constructor(e) {
3322
- G(this, "name", "OKSPIN"), G(this, "initialized", !1), G(this, "initCompleter", null), G(this, "context", void 0), G(this, "adsOverlay", null), G(this, "adsIsShowing", !1), G(this, "state", ui()), G(this, "init", async (i) => {
3543
+ K(this, "name", "OKSPIN"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "state", fi()), K(this, "init", async (i) => {
3323
3544
  var n;
3324
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), he(w(fi, {
3545
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(vi, {
3325
3546
  state: this.state
3326
3547
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3327
- }), G(this, "destroy", () => {
3548
+ }), K(this, "destroy", () => {
3328
3549
  var i;
3329
- this.adsOverlay && (he(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3330
- }), G(this, "requestAd", (i, n) => {
3550
+ this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3551
+ }), K(this, "requestAd", (i, n) => {
3331
3552
  var s, a, d, l;
3332
3553
  if (!this.adsOverlay || !this.initialized) {
3333
- (s = i.onAdError) == null || s.call(i, B.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3554
+ (s = i.onAdError) == null || s.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3334
3555
  return;
3335
3556
  }
3336
3557
  if (this.adsIsShowing) {
3337
- (a = i.onAdError) == null || a.call(i, B.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3558
+ (a = i.onAdError) == null || a.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3338
3559
  return;
3339
3560
  }
3340
3561
  (d = i.onAdRequested) == null || d.call(i);
@@ -3345,21 +3566,84 @@ class Vr {
3345
3566
  var c;
3346
3567
  (c = i.onAdLoaded) == null || c.call(i, void 0);
3347
3568
  };
3348
- this.adsIsShowing = !0, N(() => {
3569
+ this.adsIsShowing = !0, T(() => {
3349
3570
  var c;
3350
3571
  this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
3351
3572
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
3352
3573
  }), this.context = e;
3353
3574
  }
3354
3575
  }
3355
- function ce(t, e, i) {
3356
- return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3576
+ function z(t, e, i) {
3577
+ return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3578
+ }
3579
+ function Wr(t) {
3580
+ var e = Jr(t, "string");
3581
+ return typeof e == "symbol" ? e : e + "";
3582
+ }
3583
+ function Jr(t, e) {
3584
+ if (typeof t != "object" || !t)
3585
+ return t;
3586
+ var i = t[Symbol.toPrimitive];
3587
+ if (i !== void 0) {
3588
+ var n = i.call(t, e);
3589
+ if (typeof n != "object")
3590
+ return n;
3591
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3592
+ }
3593
+ return (e === "string" ? String : Number)(t);
3594
+ }
3595
+ class Yr {
3596
+ constructor(e) {
3597
+ z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", pi()), z(this, "processUrl", (i) => {
3598
+ var s;
3599
+ const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
3600
+ 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();
3601
+ }), z(this, "init", async (i) => {
3602
+ var n;
3603
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(yi, {
3604
+ state: this.state
3605
+ }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3606
+ }), z(this, "destroy", () => {
3607
+ var i;
3608
+ this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3609
+ }), z(this, "requestAd", (i, n) => {
3610
+ var d, l, c, h;
3611
+ if (!this.adsOverlay || !this.initialized) {
3612
+ (d = i.onAdError) == null || d.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3613
+ return;
3614
+ }
3615
+ if (this.adsIsShowing) {
3616
+ (l = i.onAdError) == null || l.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3617
+ return;
3618
+ }
3619
+ (c = i.onAdRequested) == null || c.call(i);
3620
+ const r = () => {
3621
+ var u;
3622
+ this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
3623
+ }, o = () => {
3624
+ var u;
3625
+ (u = i.onAdLoaded) == null || u.call(i, void 0);
3626
+ }, s = (u) => {
3627
+ var f, y;
3628
+ (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
3629
+ }, a = () => {
3630
+ var u;
3631
+ (u = i.onAdError) == null || u.call(i, M.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3632
+ };
3633
+ this.adsIsShowing = !0, T(() => {
3634
+ this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
3635
+ }), (h = i.onAdPlaying) == null || h.call(i, void 0);
3636
+ }), this.context = e;
3637
+ }
3638
+ }
3639
+ function pe(t, e, i) {
3640
+ return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3357
3641
  }
3358
- function zr(t) {
3359
- var e = Gr(t, "string");
3642
+ function Xr(t) {
3643
+ var e = Qr(t, "string");
3360
3644
  return typeof e == "symbol" ? e : e + "";
3361
3645
  }
3362
- function Gr(t, e) {
3646
+ function Qr(t, e) {
3363
3647
  if (typeof t != "object" || !t)
3364
3648
  return t;
3365
3649
  var i = t[Symbol.toPrimitive];
@@ -3371,15 +3655,19 @@ function Gr(t, e) {
3371
3655
  }
3372
3656
  return (e === "string" ? String : Number)(t);
3373
3657
  }
3374
- class io {
3658
+ class uo {
3375
3659
  constructor(e) {
3376
- if (ce(this, "context", void 0), ce(this, "contextInfo", void 0), ce(this, "providers", {}), ce(this, "adsTrackSerializer", void 0), ce(this, "initialized", !1), e)
3377
- this.context = e, this.adsTrackSerializer = new Vt(e), this.contextInfo = this.context.getContextInfo();
3660
+ if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
3661
+ this.context = e, this.adsTrackSerializer = new Kt(e), this.contextInfo = this.context.getContextInfo();
3378
3662
  else
3379
3663
  throw new Error("JoliboxAdsForVideo requires a configuration object");
3380
3664
  }
3381
3665
  getRequestContextData(e) {
3382
- var i, n;
3666
+ var r, o;
3667
+ const {
3668
+ width: i,
3669
+ height: n
3670
+ } = this.context.getWindowInfo();
3383
3671
  return {
3384
3672
  report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
3385
3673
  sessionId: this.contextInfo.sessionId,
@@ -3392,8 +3680,12 @@ class io {
3392
3680
  sessionId: this.contextInfo.sessionId,
3393
3681
  deviceId: this.contextInfo.deviceId,
3394
3682
  adId: this.contextInfo.adId,
3395
- deviceModel: (i = this.contextInfo.deviceModel) != null ? i : "UnknownModel",
3396
- deviceBrand: (n = this.contextInfo.deviceBrand) != null ? n : "UnknownBrand"
3683
+ deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
3684
+ deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
3685
+ dimension: {
3686
+ width: i,
3687
+ height: n
3688
+ }
3397
3689
  };
3398
3690
  }
3399
3691
  getRequestBizParams() {
@@ -3416,15 +3708,20 @@ class io {
3416
3708
  for (const i of e)
3417
3709
  switch (i.provider) {
3418
3710
  case "GOOGLE_IMA": {
3419
- const n = new jr(this.context);
3711
+ const n = new Gr(this.context);
3420
3712
  await n.init(i), this.providers.GOOGLE_IMA = n;
3421
3713
  break;
3422
3714
  }
3423
3715
  case "OKSPIN": {
3424
- const n = new Vr(this.context);
3716
+ const n = new Hr(this.context);
3425
3717
  await n.init(i), this.providers.OKSPIN = n;
3426
3718
  break;
3427
3719
  }
3720
+ case "APPSROCKETS": {
3721
+ const n = new Yr(this.context);
3722
+ await n.init(i), this.providers.APPSROCKETS = n;
3723
+ break;
3724
+ }
3428
3725
  }
3429
3726
  this.initialized = !0;
3430
3727
  }
@@ -3440,7 +3737,7 @@ class io {
3440
3737
  async requestAd(e) {
3441
3738
  var i, n, r, o, s, a, d;
3442
3739
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
3443
- const l = B.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3740
+ const l = M.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3444
3741
  (n = e.onAdError) == null || n.call(e, l);
3445
3742
  return;
3446
3743
  }
@@ -3457,46 +3754,46 @@ class io {
3457
3754
  }
3458
3755
  });
3459
3756
  if (c !== "SUCCESS") {
3460
- const u = B.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3461
- (r = e.onAdError) == null || r.call(e, u);
3757
+ const h = M.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3758
+ (r = e.onAdError) == null || r.call(e, h);
3462
3759
  return;
3463
3760
  } else {
3464
- const u = l;
3465
- if (u.length === 0) {
3466
- const _ = B.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3467
- (o = e.onAdError) == null || o.call(e, _);
3761
+ const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
3762
+ if (h.length === 0) {
3763
+ const v = M.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3764
+ (o = e.onAdError) == null || o.call(e, v);
3468
3765
  return;
3469
3766
  }
3470
- let f = !0, v = null;
3471
- const y = new Tr(this.context);
3472
- for (; u.length > 0; ) {
3473
- const _ = u.shift(), A = this.providers[_.provider];
3474
- if (A) {
3475
- const [h, p] = await y.callAdRequestAndContinue(A, e, _);
3476
- f = h, v = p;
3767
+ let u = !0, f = null;
3768
+ const y = new Cr(this.context);
3769
+ for (; h.length > 0; ) {
3770
+ const v = h.shift(), g = this.providers[v.provider];
3771
+ if (g) {
3772
+ const [p, _] = await y.callAdRequestAndContinue(g, e, v);
3773
+ u = p, f = _;
3477
3774
  } else
3478
- f = !0, v = B.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3479
- if (!f)
3775
+ u = !0, f = M.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3776
+ if (!u)
3480
3777
  break;
3481
3778
  }
3482
- f && v && ((s = e.onAdError) == null || s.call(e, v));
3779
+ u && f && ((s = e.onAdError) == null || s.call(e, f));
3483
3780
  }
3484
3781
  } catch (l) {
3485
- const c = B.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3782
+ const c = M.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3486
3783
  (a = e.onAdError) == null || a.call(e, c);
3487
3784
  } finally {
3488
3785
  (d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
3489
3786
  }
3490
3787
  }
3491
3788
  }
3492
- function ee(t, e, i) {
3493
- return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3789
+ function ne(t, e, i) {
3790
+ return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3494
3791
  }
3495
- function Kr(t) {
3496
- var e = qr(t, "string");
3792
+ function Zr(t) {
3793
+ var e = eo(t, "string");
3497
3794
  return typeof e == "symbol" ? e : e + "";
3498
3795
  }
3499
- function qr(t, e) {
3796
+ function eo(t, e) {
3500
3797
  if (typeof t != "object" || !t)
3501
3798
  return t;
3502
3799
  var i = t[Symbol.toPrimitive];
@@ -3508,18 +3805,18 @@ function qr(t, e) {
3508
3805
  }
3509
3806
  return (e === "string" ? String : Number)(t);
3510
3807
  }
3511
- class no extends Error {
3808
+ class ho extends Error {
3512
3809
  constructor(e) {
3513
- super(e), ee(this, "name", void 0), ee(this, "message", void 0), ee(this, "errMsg", void 0), ee(this, "code", void 0), ee(this, "data", void 0), ee(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3810
+ super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3514
3811
  }
3515
3812
  }
3516
3813
  export {
3517
- B as AFVWrappedError,
3518
- cn as GoogleAdSenseProvider,
3519
- jr as GoogleIMAProvider,
3520
- to as JoliboxAdsForGame,
3521
- io as JoliboxAdsForVideo,
3522
- Er as OKSpinForGameProvider,
3523
- Vr as OKSpinForVideoProvider,
3524
- no as ResponseError
3814
+ M as AFVWrappedError,
3815
+ pn as GoogleAdSenseProvider,
3816
+ Gr as GoogleIMAProvider,
3817
+ co as JoliboxAdsForGame,
3818
+ uo as JoliboxAdsForVideo,
3819
+ Sr as OKSpinForGameProvider,
3820
+ Hr as OKSpinForVideoProvider,
3821
+ ho as ResponseError
3525
3822
  };