@jolibox/ads 1.1.25 → 1.1.27

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 pt = Object.getOwnPropertySymbols;
2
+ var wi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable;
3
+ var yt = (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
+ wi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
+ if (t != null && pt)
8
+ for (var n of pt(t))
9
+ e.indexOf(n) < 0 && bi.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 ie, Component as Ai, isValidElement as mi } from "preact";
13
+ import { useRef as Ei, useLayoutEffect as Si, useEffect as dt, useMemo as ki, render as te, useState as xi, createRef as _t } from "preact/compat";
14
+ function V(t, e, i) {
15
+ return (e = Ri(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 Ri(t) {
18
+ var e = Ii(t, "string");
19
19
  return typeof e == "symbol" ? e : e + "";
20
20
  }
21
- function wi(t, e) {
21
+ function Ii(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 Ti {
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 = Oi(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 Oi(t) {
163
+ var e = Di(t, "string");
164
164
  return typeof e == "symbol" ? e : e + "";
165
165
  }
166
- function Si(t, e) {
166
+ function Di(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 Li {
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 Bt = Object.defineProperty, Ci = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, wt = (t, e, i) => e in t ? Bt(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, Mi = (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
+ Pi.call(e, i) && wt(t, i, e[i]);
203
+ if (gt)
204
+ for (var i of gt(e))
205
+ $i.call(e, i) && wt(t, i, e[i]);
206
206
  return t;
207
- }, Di = (t, e) => Ri(t, Ii(e)), Li = (t, e) => {
207
+ }, Ui = (t, e) => Ci(t, Ni(e)), Bi = (t, e) => {
208
208
  for (var i in e)
209
- Ct(t, i, {
209
+ Bt(t, i, {
210
210
  get: e[i],
211
211
  enumerable: !0
212
212
  });
213
- }, Mt = (t, e, i, n) => {
213
+ }, jt = (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
+ }, ji = (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 Fi(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 Vi(t) {
270
270
  return typeof t == "string";
271
271
  }
272
- function Mi(t) {
272
+ function zi(t) {
273
273
  return typeof t == "undefined";
274
274
  }
275
- function $i(t) {
276
- return Mi(t) || t === null;
275
+ function Gi(t) {
276
+ return zi(t) || t === null;
277
277
  }
278
- function Ui(t) {
278
+ function Ki(t) {
279
279
  return typeof t == "function";
280
280
  }
281
- function $t(t) {
281
+ function Ft(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 qi = ((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))(qi || {});
290
+ function fe(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 Hi = {
297
+ log: fe("log"),
298
+ warn: fe("warn"),
299
+ info: fe("info"),
300
+ error: fe("error"),
301
+ debug: fe("debug")
302
302
  };
303
303
  Object.assign(globalThis, {
304
- logger: Fi
304
+ logger: Hi
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 bt = Symbol.for("Jolibox.canIUseMap"), Wi = {};
307
+ globalThis[bt] || (globalThis[bt] = Wi);
308
+ var Vt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Vt || {}), zt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(zt || {}), Gt = ((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))(Gt || {}), At = ["name", "params"], Ji = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Yi = ["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 Xi(t) {
319
+ let e = t.location ? Re(t.location, At) : null, i = t.target ? Re(t.target, At) : null;
320
+ return Re(Ui(Mi({}, t), {
321
321
  location: e,
322
322
  target: i
323
- }), Vi);
323
+ }), Ji);
324
324
  }
325
- function Ki(t) {
326
- let e = t.events.map((n) => Gi(n)), i = Ee(t.device, zi);
325
+ function Qi(t) {
326
+ let e = t.events.map((n) => Xi(n)), i = Re(t.device, Yi);
327
327
  return [t.protocolVersion, e, i, t.project];
328
328
  }
329
- function qi() {
329
+ function Zi() {
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
+ Zi();
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, en = 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
+ }, tn = 0, ve = class {
425
425
  constructor(e) {
426
- this.value = e, this.id = Wi++;
426
+ this.value = e, this.id = tn++;
427
427
  }
428
- }, ve = class {
428
+ }, we = 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 ve && (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 ve(e);
445
+ return this._listeners ? this._listeners instanceof ve ? 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 ve)
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 ve ? 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
+ }, nn = 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 we(), 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 en(), 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
+ Bi(Ze, {
523
+ None: () => rn,
524
+ filter: () => sn,
525
+ once: () => Kt,
526
+ toPromise: () => on
527
527
  });
528
- var Yi = () => (console.log("[Jolibox SDK] None Event"), () => {
528
+ var rn = () => (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 on(t) {
532
+ return new Promise((e) => Kt(t)(e));
533
533
  }
534
- function Bt(t) {
534
+ function Kt(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 sn(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 we(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"), an = () => {
557
+ let t = new nn();
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
+ an();
566
+ function dn(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
+ ln(t[n], e[n]);
570
570
  }
571
- function tn(t, e) {
572
- if (Ci(e)) {
571
+ function ln(t, e) {
572
+ if (Vi(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 (Ki(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 (!Gi(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 we(), 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 dn(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 = jt([Ft], et);
622
+ var mt = 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 we(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new we(), 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 = Fi(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 ji(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
+ mt = jt([Ft], mt);
680
+ function Ge(t, e, i) {
681
+ return (e = cn(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 cn(t) {
684
+ var e = un(t, "string");
685
685
  return typeof e == "symbol" ? e : e + "";
686
686
  }
687
- function rn(t, e) {
687
+ function un(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 qt {
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 : Gt.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: Vt.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: zt.WebSDK
744
744
  };
745
- return Ki(r);
745
+ return Qi(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 = hn(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 hn(t) {
752
+ var e = fn(t, "string");
753
753
  return typeof e == "symbol" ? e : e + "";
754
754
  }
755
- function sn(t, e) {
755
+ function fn(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 vn {
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 = pn(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 pn(t) {
797
+ var e = yn(t, "string");
798
798
  return typeof e == "symbol" ? e : e + "";
799
799
  }
800
- function ln(t, e) {
800
+ function yn(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 _n {
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 = yt(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((j) => {
864
+ if (j.type === "attributes" && j.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 gn(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 wn(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 bn = /* @__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(wn(this));
914
914
  var r = this.tags[this.tags.length - 1];
915
915
  if (this.isSpeedy) {
916
- var o = un(r);
916
+ var o = gn(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-", Ht = "comm", lt = "rule", ct = "decl", An = "@import", Wt = "@keyframes", mn = "@layer", En = Math.abs, Be = String.fromCharCode, Sn = Object.assign;
931
+ function kn(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 Jt(t) {
935
935
  return t.trim();
936
936
  }
937
- function mn(t, e) {
937
+ function xn(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 be(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 ut(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 Rn(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, Yt = 0, M = 0, T = 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 pe(t, e) {
969
+ return Sn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
970
970
  }
971
- function wn() {
971
+ function In() {
972
972
  return T;
973
973
  }
974
- function bn() {
975
- return T = M > 0 ? O(ne, --M) : 0, ie--, T === 10 && (ie = 1, Me--), T;
974
+ function Tn() {
975
+ return T = M > 0 ? D(de, --M) : 0, ae--, T === 10 && (ae = 1, je--), T;
976
976
  }
977
- function U() {
978
- return T = M < qt ? O(ne, M++) : 0, ie++, T === 10 && (ie = 1, Me++), T;
977
+ function B() {
978
+ return T = M < Yt ? D(de, M++) : 0, ae++, T === 10 && (ae = 1, je++), T;
979
979
  }
980
- function q() {
981
- return O(ne, M);
980
+ function H() {
981
+ return D(de, M);
982
982
  }
983
- function Se() {
983
+ function Ie() {
984
984
  return M;
985
985
  }
986
- function ye(t, e) {
987
- return pe(ne, t, e);
986
+ function me(t, e) {
987
+ return be(de, t, e);
988
988
  }
989
- function _e(t) {
989
+ function Ae(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 Xt(t) {
1022
+ return je = ae = 1, Yt = q(de = t), M = 0, [];
1023
1023
  }
1024
- function Wt(t) {
1025
- return ne = "", t;
1024
+ function Qt(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 Te(t) {
1028
+ return Jt(me(M - 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 On(t) {
1031
+ for (; (T = H()) && T < 33; )
1032
+ B();
1033
+ return Ae(t) > 2 || Ae(T) > 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 Dn(t, e) {
1036
+ for (; --e && B() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
1037
1037
  ;
1038
- return ye(t, Se() + (e < 6 && q() == 32 && U() == 32));
1038
+ return me(t, Ie() + (e < 6 && H() == 32 && B() == 32));
1039
1039
  }
1040
- function Xe(t) {
1041
- for (; U(); )
1040
+ function it(t) {
1041
+ for (; B(); )
1042
1042
  switch (T) {
1043
1043
  case t:
1044
1044
  return M;
1045
1045
  case 34:
1046
1046
  case 39:
1047
- t !== 34 && t !== 39 && Xe(T);
1047
+ t !== 34 && t !== 39 && it(T);
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
+ B();
1054
1054
  break;
1055
1055
  }
1056
1056
  return M;
1057
1057
  }
1058
- function xn(t, e) {
1059
- for (; U() && t + T !== 57; )
1060
- if (t + T === 84 && q() === 47)
1058
+ function Ln(t, e) {
1059
+ for (; B() && t + T !== 57; )
1060
+ if (t + T === 84 && H() === 47)
1061
1061
  break;
1062
- return "/*" + ye(e, M - 1) + "*" + Ce(t === 47 ? t : U());
1062
+ return "/*" + me(e, M - 1) + "*" + Be(t === 47 ? t : B());
1063
1063
  }
1064
- function Rn(t) {
1065
- for (; !_e(q()); )
1066
- U();
1067
- return ye(t, M);
1064
+ function Cn(t) {
1065
+ for (; !Ae(H()); )
1066
+ B();
1067
+ return me(t, M);
1068
1068
  }
1069
- function In(t) {
1070
- return Wt(Re("", null, null, null, [""], t = Ht(t), 0, [0], t));
1069
+ function Nn(t) {
1070
+ return Qt(Oe("", null, null, null, [""], t = Xt(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 Oe(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 = "", j = r, U = o, F = n, k = w; g; )
1074
+ switch (y = _, _ = B()) {
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(Te(_), "&", "&\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 += Te(_);
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 += On(y);
1090
1090
  break;
1091
1091
  case 92:
1092
- E += Sn(Se() - 1, 7);
1092
+ k += Dn(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(Pn(Ln(B(), 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 ? St(k + ";", n, i, h - 1) : St(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 = Et(k, e, i, l, c, r, a, w, j = [], U = [], h), o), _ === 123)
1120
1120
  if (c === 0)
1121
- Re(E, e, j, j, z, o, u, a, $);
1121
+ Oe(k, e, F, F, j, 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
+ Oe(t, F, F, n && xe(Et(t, F, F, 0, 0, r, a, w, r, j = [], h), U), r, U, h, a, n ? j : U);
1129
1129
  break;
1130
1130
  default:
1131
- Re(E, j, j, j, [""], $, 0, a, $);
1131
+ Oe(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 && Tn() == 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 += Te(B())), u = H(), c = h = q(w = k += Cn(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 Et(t, e, i, n, r, o, s, a, d, l, c) {
1162
+ for (var h = r - 1, u = r === 0 ? o : [""], f = ut(u), y = 0, v = 0, g = 0; y < n; ++y)
1163
+ for (var p = 0, _ = be(t, h + 1, h = En(v = s[y])), w = t; p < f; ++p)
1164
+ (w = Jt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
1165
+ return Fe(t, e, i, r === 0 ? lt : 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 Pn(t, e, i) {
1168
+ return Fe(t, e, i, Ht, Be(In()), be(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 St(t, e, i, n) {
1171
+ return Fe(t, e, i, ct, be(t, 0, n), be(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 se(t, e) {
1174
+ for (var i = "", n = ut(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 $n(t, e, i, n) {
1179
1179
  switch (t.type) {
1180
- case pn:
1180
+ case mn:
1181
1181
  if (t.children.length)
1182
1182
  break;
1183
- case vn:
1184
- case ot:
1183
+ case An:
1184
+ case ct:
1185
1185
  return t.return = t.return || t.value;
1186
- case zt:
1186
+ case Ht:
1187
1187
  return "";
1188
- case Gt:
1189
- return t.return = t.value + "{" + te(t.children, n) + "}";
1190
- case rt:
1188
+ case Wt:
1189
+ return t.return = t.value + "{" + se(t.children, n) + "}";
1190
+ case lt:
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 = se(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1194
1194
  }
1195
- function kn(t) {
1196
- var e = st(t);
1195
+ function Mn(t) {
1196
+ var e = ut(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 Un(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 Bn(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 jn = function(e, i, n) {
1215
+ for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !Ae(o); )
1216
+ B();
1217
+ return me(e, M);
1218
+ }, Fn = function(e, i) {
1219
1219
  var n = -1, r = 44;
1220
1220
  do
1221
- switch (_e(r)) {
1221
+ switch (Ae(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] += jn(M - 1, i, n);
1224
1224
  break;
1225
1225
  case 2:
1226
- e[n] += xe(r);
1226
+ e[n] += Te(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 = B());
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
+ }, Vn = function(e, i) {
1239
+ return Qt(Fn(Xt(e), i));
1240
+ }, kt = /* @__PURE__ */ new WeakMap(), zn = 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 && !kt.get(n)) && !r) {
1248
+ kt.set(e, !0);
1249
+ for (var o = [], s = Vn(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
+ }, Gn = 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 Zt(t, e) {
1263
+ switch (kn(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") ? Zt(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 Kn = 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 ct:
1380
+ e.return = Zt(e.value, e.length);
1381
1381
  break;
1382
- case Gt:
1383
- return te([le(e, {
1384
- value: m(e.value, "@", "@" + g)
1382
+ case Wt:
1383
+ return se([pe(e, {
1384
+ value: m(e.value, "@", "@" + A)
1385
1385
  })], r);
1386
- case rt:
1386
+ case lt:
1387
1387
  if (e.length)
1388
- return An(e.props, function(o) {
1389
- switch (mn(o, /(::plac\w+|:read-\w+)/)) {
1388
+ return Rn(e.props, function(o) {
1389
+ switch (xn(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 se([pe(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 se([pe(e, {
1397
+ props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
1398
+ }), pe(e, {
1399
+ props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
1400
+ }), pe(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
+ }, qn = [Kn], Hn = 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 || qn, 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 = [zn, Gn];
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 = [$n, Un(function(v) {
1430
+ c.insert(v);
1431
+ })], u = Mn(l.concat(r, h)), f = function(g) {
1432
+ return se(Nn(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 bn({
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 Wn(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 Jn = {
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
+ }, Yn = /[A-Z]|^ms/g, Xn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ei = function(e) {
1524
1524
  return e.charCodeAt(1) === 45;
1525
- }, wt = function(e) {
1525
+ }, xt = 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__ */ Bn(function(t) {
1528
+ return ei(t) ? t : t.replace(Yn, "-$&").toLowerCase();
1529
+ }), Rt = 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(Xn, 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 Jn[e] !== 1 && !ei(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 Qn(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 Qn(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] + "}" : xt(a) && (n += Ke(o) + ":" + Rt(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
+ xt(s[d]) && (n += Ke(o) + ":" + Rt(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 It = /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
+ It.lastIndex = 0;
1631
+ for (var l = "", c; (c = It.exec(r)) !== null; )
1632
1632
  l += "-" + c[1];
1633
- var u = Bn(r) + l;
1633
+ var h = Wn(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 ti(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 Zn = 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
+ }, er = function(e, i, n) {
1655
+ Zn(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 Tt(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 Ot(t, e, i) {
1669
+ var n = [], r = ti(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 tr = function(e) {
1673
+ var i = Hn(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 er(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 Tt(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
+ Tt(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 Ot(i.registered, n, ir(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: ti.bind(null, i.registered),
1716
+ merge: Ot.bind(null, i.registered, n)
1717
1717
  };
1718
- }, Jn = function t(e) {
1718
+ }, ir = 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,105 @@ var Wn = function(e) {
1740
1740
  }
1741
1741
  }
1742
1742
  return i;
1743
- }, Yn = Wn({
1743
+ }, nr = tr({
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 = nr.css, $e, $, He, Dt, nt = 0, ii = [], I = ie, Lt = I.__b, Ct = I.__r, Nt = I.diffed, Pt = I.__c, $t = I.unmount, Mt = I.__;
1746
+ function ni(t, e) {
1747
+ I.__h && I.__h($, t, nt || e), nt = 0;
1748
+ var i = $.__H || ($.__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 rr(t, e) {
1752
+ var i = ni($e++, 3);
1753
+ !I.__s && ri(i.__H, e) && (i.__ = t, i.u = e, $.__H.__h.push(i));
1754
1754
  }
1755
- function Xn(t) {
1756
- return Ze = 5, at(function() {
1755
+ function or(t) {
1756
+ return nt = 5, ht(function() {
1757
1757
  return { current: t };
1758
1758
  }, []);
1759
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.__;
1760
+ function ht(t, e) {
1761
+ var i = ni($e++, 7);
1762
+ return ri(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1763
1763
  }
1764
- function Zn() {
1765
- for (var t; t = Xt.shift(); )
1764
+ function sr() {
1765
+ for (var t; t = ii.shift(); )
1766
1766
  if (t.__P && t.__H)
1767
1767
  try {
1768
- t.__H.__h.forEach(Ie), t.__H.__h.forEach(et), t.__H.__h = [];
1768
+ t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
1769
1769
  } catch (e) {
1770
- t.__H.__h = [], R.__e(e, t.__v);
1770
+ t.__H.__h = [], I.__e(e, t.__v);
1771
1771
  }
1772
1772
  }
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) {
1773
+ I.__b = function(t) {
1774
+ $ = null, Lt && Lt(t);
1775
+ }, I.__ = function(t, e) {
1776
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Mt && Mt(t, e);
1777
+ }, I.__r = function(t) {
1778
+ Ct && Ct(t), $e = 0;
1779
+ var e = ($ = t.__c).__H;
1780
+ e && (He === $ ? (e.__h = [], $.__h = [], e.__.forEach(function(i) {
1781
1781
  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);
1782
+ })) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], $e = 0)), He = $;
1783
+ }, I.diffed = function(t) {
1784
+ Nt && Nt(t);
1785
1785
  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) {
1786
+ e && e.__H && (e.__H.__h.length && (ii.push(e) !== 1 && Dt === I.requestAnimationFrame || ((Dt = I.requestAnimationFrame) || ar)(sr)), e.__H.__.forEach(function(i) {
1787
1787
  i.u && (i.__H = i.u), i.u = void 0;
1788
- })), ze = C = null;
1789
- }, R.__c = function(t, e) {
1788
+ })), He = $ = null;
1789
+ }, I.__c = function(t, e) {
1790
1790
  e.some(function(i) {
1791
1791
  try {
1792
- i.__h.forEach(Ie), i.__h = i.__h.filter(function(n) {
1793
- return !n.__ || et(n);
1792
+ i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
1793
+ return !n.__ || rt(n);
1794
1794
  });
1795
1795
  } catch (n) {
1796
1796
  e.some(function(r) {
1797
1797
  r.__h && (r.__h = []);
1798
- }), e = [], R.__e(n, i.__v);
1798
+ }), e = [], I.__e(n, i.__v);
1799
1799
  }
1800
- }), kt && kt(t, e);
1801
- }, R.unmount = function(t) {
1802
- Dt && Dt(t);
1800
+ }), Pt && Pt(t, e);
1801
+ }, I.unmount = function(t) {
1802
+ $t && $t(t);
1803
1803
  var e, i = t.__c;
1804
1804
  i && i.__H && (i.__H.__.forEach(function(n) {
1805
1805
  try {
1806
- Ie(n);
1806
+ De(n);
1807
1807
  } catch (r) {
1808
1808
  e = r;
1809
1809
  }
1810
- }), i.__H = void 0, e && R.__e(e, i.__v));
1810
+ }), i.__H = void 0, e && I.__e(e, i.__v));
1811
1811
  };
1812
- var Nt = typeof requestAnimationFrame == "function";
1813
- function er(t) {
1812
+ var Ut = typeof requestAnimationFrame == "function";
1813
+ function ar(t) {
1814
1814
  var e, i = function() {
1815
- clearTimeout(n), Nt && cancelAnimationFrame(e), setTimeout(t);
1815
+ clearTimeout(n), Ut && cancelAnimationFrame(e), setTimeout(t);
1816
1816
  }, n = setTimeout(i, 100);
1817
- Nt && (e = requestAnimationFrame(i));
1817
+ Ut && (e = requestAnimationFrame(i));
1818
1818
  }
1819
- function Ie(t) {
1820
- var e = C, i = t.__c;
1821
- typeof i == "function" && (t.__c = void 0, i()), C = e;
1819
+ function De(t) {
1820
+ var e = $, i = t.__c;
1821
+ typeof i == "function" && (t.__c = void 0, i()), $ = e;
1822
1822
  }
1823
- function et(t) {
1824
- var e = C;
1825
- t.__c = t.__(), C = e;
1823
+ function rt(t) {
1824
+ var e = $;
1825
+ t.__c = t.__(), $ = e;
1826
1826
  }
1827
- function ei(t, e) {
1827
+ function ri(t, e) {
1828
1828
  return !t || t.length !== e.length || e.some(function(i, n) {
1829
1829
  return i !== t[n];
1830
1830
  });
1831
1831
  }
1832
- var tr = Symbol.for("preact-signals");
1833
- function Ue() {
1834
- if (X > 1)
1835
- X--;
1832
+ var dr = Symbol.for("preact-signals");
1833
+ function Ve() {
1834
+ if (ee > 1)
1835
+ ee--;
1836
1836
  else {
1837
- for (var t, e = !1; ue !== void 0; ) {
1838
- var i = ue;
1839
- for (ue = void 0, tt++; i !== void 0; ) {
1837
+ for (var t, e = !1; _e !== void 0; ) {
1838
+ var i = _e;
1839
+ for (_e = void 0, ot++; i !== void 0; ) {
1840
1840
  var n = i.o;
1841
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && ii(i))
1841
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && si(i))
1842
1842
  try {
1843
1843
  i.c();
1844
1844
  } catch (r) {
@@ -1847,102 +1847,102 @@ function Ue() {
1847
1847
  i = n;
1848
1848
  }
1849
1849
  }
1850
- if (tt = 0, X--, e)
1850
+ if (ot = 0, ee--, e)
1851
1851
  throw t;
1852
1852
  }
1853
1853
  }
1854
- function N(t) {
1855
- if (X > 0)
1854
+ function O(t) {
1855
+ if (ee > 0)
1856
1856
  return t();
1857
- X++;
1857
+ ee++;
1858
1858
  try {
1859
1859
  return t();
1860
1860
  } finally {
1861
- Ue();
1861
+ Ve();
1862
1862
  }
1863
1863
  }
1864
- var b = void 0, ue = void 0, X = 0, tt = 0, Ne = 0;
1865
- function ti(t) {
1866
- if (b !== void 0) {
1864
+ var S = void 0, _e = void 0, ee = 0, ot = 0, Me = 0;
1865
+ function oi(t) {
1866
+ if (S !== void 0) {
1867
1867
  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;
1868
+ if (e === void 0 || e.t !== S)
1869
+ 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
1870
  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;
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 = S.s, e.n = void 0, S.s.n = e, S.s = e), e;
1872
1872
  }
1873
1873
  }
1874
- function k(t) {
1874
+ function L(t) {
1875
1875
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1876
1876
  }
1877
- k.prototype.brand = tr;
1878
- k.prototype.h = function() {
1877
+ L.prototype.brand = dr;
1878
+ L.prototype.h = function() {
1879
1879
  return !0;
1880
1880
  };
1881
- k.prototype.S = function(t) {
1881
+ L.prototype.S = function(t) {
1882
1882
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1883
1883
  };
1884
- k.prototype.U = function(t) {
1884
+ L.prototype.U = function(t) {
1885
1885
  if (this.t !== void 0) {
1886
1886
  var e = t.e, i = t.x;
1887
1887
  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
1888
  }
1889
1889
  };
1890
- k.prototype.subscribe = function(t) {
1890
+ L.prototype.subscribe = function(t) {
1891
1891
  var e = this;
1892
- return oe(function() {
1893
- var i = e.value, n = b;
1894
- b = void 0;
1892
+ return ue(function() {
1893
+ var i = e.value, n = S;
1894
+ S = void 0;
1895
1895
  try {
1896
1896
  t(i);
1897
1897
  } finally {
1898
- b = n;
1898
+ S = n;
1899
1899
  }
1900
1900
  });
1901
1901
  };
1902
- k.prototype.valueOf = function() {
1902
+ L.prototype.valueOf = function() {
1903
1903
  return this.value;
1904
1904
  };
1905
- k.prototype.toString = function() {
1905
+ L.prototype.toString = function() {
1906
1906
  return this.value + "";
1907
1907
  };
1908
- k.prototype.toJSON = function() {
1908
+ L.prototype.toJSON = function() {
1909
1909
  return this.value;
1910
1910
  };
1911
- k.prototype.peek = function() {
1912
- var t = b;
1913
- b = void 0;
1911
+ L.prototype.peek = function() {
1912
+ var t = S;
1913
+ S = void 0;
1914
1914
  try {
1915
1915
  return this.value;
1916
1916
  } finally {
1917
- b = t;
1917
+ S = t;
1918
1918
  }
1919
1919
  };
1920
- Object.defineProperty(k.prototype, "value", { get: function() {
1921
- var t = ti(this);
1920
+ Object.defineProperty(L.prototype, "value", { get: function() {
1921
+ var t = oi(this);
1922
1922
  return t !== void 0 && (t.i = this.i), this.v;
1923
1923
  }, set: function(t) {
1924
1924
  if (t !== this.v) {
1925
- if (tt > 100)
1925
+ if (ot > 100)
1926
1926
  throw new Error("Cycle detected");
1927
- this.v = t, this.i++, Ne++, X++;
1927
+ this.v = t, this.i++, Me++, ee++;
1928
1928
  try {
1929
1929
  for (var e = this.t; e !== void 0; e = e.x)
1930
1930
  e.t.N();
1931
1931
  } finally {
1932
- Ue();
1932
+ Ve();
1933
1933
  }
1934
1934
  }
1935
1935
  } });
1936
- function I(t) {
1937
- return new k(t);
1936
+ function E(t) {
1937
+ return new L(t);
1938
1938
  }
1939
- function ii(t) {
1939
+ function si(t) {
1940
1940
  for (var e = t.s; e !== void 0; e = e.n)
1941
1941
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1942
1942
  return !0;
1943
1943
  return !1;
1944
1944
  }
1945
- function ni(t) {
1945
+ function ai(t) {
1946
1946
  for (var e = t.s; e !== void 0; e = e.n) {
1947
1947
  var i = e.S.n;
1948
1948
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1951,95 +1951,95 @@ function ni(t) {
1951
1951
  }
1952
1952
  }
1953
1953
  }
1954
- function ri(t) {
1954
+ function di(t) {
1955
1955
  for (var e = t.s, i = void 0; e !== void 0; ) {
1956
1956
  var n = e.p;
1957
1957
  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
1958
  }
1959
1959
  t.s = i;
1960
1960
  }
1961
- function re(t) {
1962
- k.call(this, void 0), this.x = t, this.s = void 0, this.g = Ne - 1, this.f = 4;
1961
+ function ce(t) {
1962
+ L.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
1963
1963
  }
1964
- (re.prototype = new k()).h = function() {
1964
+ (ce.prototype = new L()).h = function() {
1965
1965
  if (this.f &= -3, 1 & this.f)
1966
1966
  return !1;
1967
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ne))
1967
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
1968
1968
  return !0;
1969
- if (this.g = Ne, this.f |= 1, this.i > 0 && !ii(this))
1969
+ if (this.g = Me, this.f |= 1, this.i > 0 && !si(this))
1970
1970
  return this.f &= -2, !0;
1971
- var t = b;
1971
+ var t = S;
1972
1972
  try {
1973
- ni(this), b = this;
1973
+ ai(this), S = this;
1974
1974
  var e = this.x();
1975
1975
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1976
1976
  } catch (i) {
1977
1977
  this.v = i, this.f |= 16, this.i++;
1978
1978
  }
1979
- return b = t, ri(this), this.f &= -2, !0;
1979
+ return S = t, di(this), this.f &= -2, !0;
1980
1980
  };
1981
- re.prototype.S = function(t) {
1981
+ ce.prototype.S = function(t) {
1982
1982
  if (this.t === void 0) {
1983
1983
  this.f |= 36;
1984
1984
  for (var e = this.s; e !== void 0; e = e.n)
1985
1985
  e.S.S(e);
1986
1986
  }
1987
- k.prototype.S.call(this, t);
1987
+ L.prototype.S.call(this, t);
1988
1988
  };
1989
- re.prototype.U = function(t) {
1990
- if (this.t !== void 0 && (k.prototype.U.call(this, t), this.t === void 0)) {
1989
+ ce.prototype.U = function(t) {
1990
+ if (this.t !== void 0 && (L.prototype.U.call(this, t), this.t === void 0)) {
1991
1991
  this.f &= -33;
1992
1992
  for (var e = this.s; e !== void 0; e = e.n)
1993
1993
  e.S.U(e);
1994
1994
  }
1995
1995
  };
1996
- re.prototype.N = function() {
1996
+ ce.prototype.N = function() {
1997
1997
  if (!(2 & this.f)) {
1998
1998
  this.f |= 6;
1999
1999
  for (var t = this.t; t !== void 0; t = t.x)
2000
2000
  t.t.N();
2001
2001
  }
2002
2002
  };
2003
- Object.defineProperty(re.prototype, "value", { get: function() {
2003
+ Object.defineProperty(ce.prototype, "value", { get: function() {
2004
2004
  if (1 & this.f)
2005
2005
  throw new Error("Cycle detected");
2006
- var t = ti(this);
2006
+ var t = oi(this);
2007
2007
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2008
2008
  throw this.v;
2009
2009
  return this.v;
2010
2010
  } });
2011
- function fe(t) {
2012
- return new re(t);
2011
+ function ge(t) {
2012
+ return new ce(t);
2013
2013
  }
2014
- function oi(t) {
2014
+ function li(t) {
2015
2015
  var e = t.u;
2016
2016
  if (t.u = void 0, typeof e == "function") {
2017
- X++;
2018
- var i = b;
2019
- b = void 0;
2017
+ ee++;
2018
+ var i = S;
2019
+ S = void 0;
2020
2020
  try {
2021
2021
  e();
2022
2022
  } catch (n) {
2023
- throw t.f &= -2, t.f |= 8, dt(t), n;
2023
+ throw t.f &= -2, t.f |= 8, ft(t), n;
2024
2024
  } finally {
2025
- b = i, Ue();
2025
+ S = i, Ve();
2026
2026
  }
2027
2027
  }
2028
2028
  }
2029
- function dt(t) {
2029
+ function ft(t) {
2030
2030
  for (var e = t.s; e !== void 0; e = e.n)
2031
2031
  e.S.U(e);
2032
- t.x = void 0, t.s = void 0, oi(t);
2032
+ t.x = void 0, t.s = void 0, li(t);
2033
2033
  }
2034
- function ir(t) {
2035
- if (b !== this)
2034
+ function lr(t) {
2035
+ if (S !== this)
2036
2036
  throw new Error("Out-of-order effect");
2037
- ri(this), b = t, this.f &= -2, 8 & this.f && dt(this), Ue();
2037
+ di(this), S = t, this.f &= -2, 8 & this.f && ft(this), Ve();
2038
2038
  }
2039
- function me(t) {
2039
+ function Ee(t) {
2040
2040
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2041
2041
  }
2042
- me.prototype.c = function() {
2042
+ Ee.prototype.c = function() {
2043
2043
  var t = this.S();
2044
2044
  try {
2045
2045
  if (8 & this.f || this.x === void 0)
@@ -2050,21 +2050,21 @@ me.prototype.c = function() {
2050
2050
  t();
2051
2051
  }
2052
2052
  };
2053
- me.prototype.S = function() {
2053
+ Ee.prototype.S = function() {
2054
2054
  if (1 & this.f)
2055
2055
  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);
2056
+ this.f |= 1, this.f &= -9, li(this), ai(this), ee++;
2057
+ var t = S;
2058
+ return S = this, lr.bind(this, t);
2059
2059
  };
2060
- me.prototype.N = function() {
2061
- 2 & this.f || (this.f |= 2, this.o = ue, ue = this);
2060
+ Ee.prototype.N = function() {
2061
+ 2 & this.f || (this.f |= 2, this.o = _e, _e = this);
2062
2062
  };
2063
- me.prototype.d = function() {
2064
- this.f |= 8, 1 & this.f || dt(this);
2063
+ Ee.prototype.d = function() {
2064
+ this.f |= 8, 1 & this.f || ft(this);
2065
2065
  };
2066
- function oe(t) {
2067
- var e = new me(t);
2066
+ function ue(t) {
2067
+ var e = new Ee(t);
2068
2068
  try {
2069
2069
  e.c();
2070
2070
  } catch (i) {
@@ -2072,75 +2072,75 @@ function oe(t) {
2072
2072
  }
2073
2073
  return e.d.bind(e);
2074
2074
  }
2075
- var lt, Ge, si = [], ai = [];
2076
- oe(function() {
2077
- lt = this.N;
2075
+ var vt, We, ci = [], ui = [];
2076
+ ue(function() {
2077
+ vt = this.N;
2078
2078
  })();
2079
- function se(t, e) {
2080
- Z[t] = e.bind(null, Z[t] || function() {
2079
+ function he(t, e) {
2080
+ ie[t] = e.bind(null, ie[t] || function() {
2081
2081
  });
2082
2082
  }
2083
- function Pe(t) {
2084
- Ge && Ge(), Ge = t && t.S();
2083
+ function Ue(t) {
2084
+ We && We(), We = t && t.S();
2085
2085
  }
2086
- function di(t) {
2087
- var e = this, i = t.data, n = li(i);
2086
+ function hi(t) {
2087
+ var e = this, i = t.data, n = fi(i);
2088
2088
  n.value = i;
2089
- var r = at(function() {
2089
+ var r = ht(function() {
2090
2090
  for (var a = e, d = e.__v; d = d.__; )
2091
2091
  if (d.__c) {
2092
2092
  d.__c.__$f |= 4;
2093
2093
  break;
2094
2094
  }
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);
2095
+ var l = ge(function() {
2096
+ var f = n.value.value;
2097
+ return f === 0 ? 0 : f === !0 ? "" : f || "";
2098
+ }), c = ge(function() {
2099
+ return !Array.isArray(l.value) && !mi(l.value);
2100
+ }), h = ue(function() {
2101
+ if (this.N = vi, c.value) {
2102
+ var f = l.value;
2103
+ a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2104
2104
  }
2105
- }), f = e.__$u.d;
2105
+ }), u = e.__$u.d;
2106
2106
  return e.__$u.d = function() {
2107
- u(), f.call(this);
2107
+ h(), u.call(this);
2108
2108
  }, [c, l];
2109
2109
  }, []), o = r[0], s = r[1];
2110
2110
  return o.value ? s.peek() : s.value;
2111
2111
  }
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() {
2112
+ hi.displayName = "_st";
2113
+ Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: hi }, props: { configurable: !0, get: function() {
2114
2114
  return { data: this };
2115
2115
  } }, __b: { configurable: !0, value: 1 } });
2116
- se("__b", function(t, e) {
2116
+ he("__b", function(t, e) {
2117
2117
  if (typeof e.type == "string") {
2118
2118
  var i, n = e.props;
2119
2119
  for (var r in n)
2120
2120
  if (r !== "children") {
2121
2121
  var o = n[r];
2122
- o instanceof k && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2122
+ o instanceof L && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2123
2123
  }
2124
2124
  }
2125
2125
  t(e);
2126
2126
  });
2127
- se("__r", function(t, e) {
2128
- Pe();
2127
+ he("__r", function(t, e) {
2128
+ Ue();
2129
2129
  var i, n = e.__c;
2130
2130
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2131
2131
  var o;
2132
- return oe(function() {
2132
+ return ue(function() {
2133
2133
  o = this;
2134
2134
  }), o.c = function() {
2135
2135
  n.__$f |= 1, n.setState({});
2136
2136
  }, o;
2137
- }())), Pe(i), t(e);
2137
+ }())), Ue(i), t(e);
2138
2138
  });
2139
- se("__e", function(t, e, i, n) {
2140
- Pe(), t(e, i, n);
2139
+ he("__e", function(t, e, i, n) {
2140
+ Ue(), t(e, i, n);
2141
2141
  });
2142
- se("diffed", function(t, e) {
2143
- Pe();
2142
+ he("diffed", function(t, e) {
2143
+ Ue();
2144
2144
  var i;
2145
2145
  if (typeof e.type == "string" && (i = e.__e)) {
2146
2146
  var n = e.__np, r = e.props;
@@ -2155,23 +2155,23 @@ se("diffed", function(t, e) {
2155
2155
  o = {}, i.U = o;
2156
2156
  for (var d in n) {
2157
2157
  var l = o[d], c = n[d];
2158
- l === void 0 ? (l = nr(i, d, c, r), o[d] = l) : l.o(c, r);
2158
+ l === void 0 ? (l = cr(i, d, c, r), o[d] = l) : l.o(c, r);
2159
2159
  }
2160
2160
  }
2161
2161
  }
2162
2162
  t(e);
2163
2163
  });
2164
- function nr(t, e, i, n) {
2165
- var r = e in t && t.ownerSVGElement === void 0, o = I(i);
2164
+ function cr(t, e, i, n) {
2165
+ var r = e in t && t.ownerSVGElement === void 0, o = E(i);
2166
2166
  return { o: function(s, a) {
2167
2167
  o.value = s, n = a;
2168
- }, d: oe(function() {
2169
- this.N = ci;
2168
+ }, d: ue(function() {
2169
+ this.N = vi;
2170
2170
  var s = o.value.value;
2171
2171
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2172
2172
  }) };
2173
2173
  }
2174
- se("unmount", function(t, e) {
2174
+ he("unmount", function(t, e) {
2175
2175
  if (typeof e.type == "string") {
2176
2176
  var i = e.__e;
2177
2177
  if (i) {
@@ -2193,10 +2193,10 @@ se("unmount", function(t, e) {
2193
2193
  }
2194
2194
  t(e);
2195
2195
  });
2196
- se("__h", function(t, e, i, n) {
2196
+ he("__h", function(t, e, i, n) {
2197
2197
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2198
2198
  });
2199
- pi.prototype.shouldComponentUpdate = function(t, e) {
2199
+ Ai.prototype.shouldComponentUpdate = function(t, e) {
2200
2200
  var i = this.__$u, n = i && i.s !== void 0;
2201
2201
  for (var r in e)
2202
2202
  return !0;
@@ -2214,47 +2214,47 @@ pi.prototype.shouldComponentUpdate = function(t, e) {
2214
2214
  return !0;
2215
2215
  return !1;
2216
2216
  };
2217
- function li(t) {
2218
- return at(function() {
2219
- return I(t);
2217
+ function fi(t) {
2218
+ return ht(function() {
2219
+ return E(t);
2220
2220
  }, []);
2221
2221
  }
2222
- var rr = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
2222
+ var ur = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
2223
2223
  var e = function() {
2224
2224
  clearTimeout(i), cancelAnimationFrame(n), t();
2225
2225
  }, i = setTimeout(e, 100), n = requestAnimationFrame(e);
2226
- }, or = function(t) {
2226
+ }, hr = function(t) {
2227
2227
  queueMicrotask(function() {
2228
2228
  queueMicrotask(t);
2229
2229
  });
2230
2230
  };
2231
- function sr() {
2232
- N(function() {
2233
- for (var t; t = si.shift(); )
2234
- lt.call(t);
2231
+ function fr() {
2232
+ O(function() {
2233
+ for (var t; t = ci.shift(); )
2234
+ vt.call(t);
2235
2235
  });
2236
2236
  }
2237
- function ar() {
2238
- si.push(this) === 1 && (Z.requestAnimationFrame || rr)(sr);
2237
+ function vr() {
2238
+ ci.push(this) === 1 && (ie.requestAnimationFrame || ur)(fr);
2239
2239
  }
2240
- function dr() {
2241
- N(function() {
2242
- for (var t; t = ai.shift(); )
2243
- lt.call(t);
2240
+ function pr() {
2241
+ O(function() {
2242
+ for (var t; t = ui.shift(); )
2243
+ vt.call(t);
2244
2244
  });
2245
2245
  }
2246
- function ci() {
2247
- ai.push(this) === 1 && (Z.requestAnimationFrame || or)(dr);
2246
+ function vi() {
2247
+ ui.push(this) === 1 && (ie.requestAnimationFrame || hr)(pr);
2248
2248
  }
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();
2249
+ function yr(t) {
2250
+ var e = or(t);
2251
+ e.current = t, rr(function() {
2252
+ return ue(function() {
2253
+ return this.N = vr, e.current();
2254
2254
  });
2255
2255
  }, []);
2256
2256
  }
2257
- const P = ge`
2257
+ const N = le`
2258
2258
  inset: 0;
2259
2259
  clear: none;
2260
2260
  float: none;
@@ -2273,11 +2273,11 @@ const P = ge`
2273
2273
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2274
2274
  'Helvetica Neue', sans-serif;
2275
2275
  `;
2276
- function cr(t, e) {
2277
- const i = yi(t);
2278
- gi(() => {
2276
+ function _r(t, e) {
2277
+ const i = Ei(t);
2278
+ Si(() => {
2279
2279
  i.current = t;
2280
- }, [t]), Pt(() => {
2280
+ }, [t]), dt(() => {
2281
2281
  if (e === null)
2282
2282
  return;
2283
2283
  const n = setInterval(() => {
@@ -2288,21 +2288,21 @@ function cr(t, e) {
2288
2288
  };
2289
2289
  }, [e]);
2290
2290
  }
2291
- var ur = 0;
2292
- function w(t, e, i, n, r, o) {
2291
+ var gr = 0;
2292
+ function b(t, e, i, n, r, o) {
2293
2293
  e || (e = {});
2294
2294
  var s, a, d = e;
2295
2295
  if ("ref" in d)
2296
2296
  for (a in d = {}, e)
2297
2297
  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 };
2298
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --gr, __i: -1, __u: 0, __source: r, __self: o };
2299
2299
  if (typeof t == "function" && (s = t.defaultProps))
2300
2300
  for (a in s)
2301
2301
  d[a] === void 0 && (d[a] = s[a]);
2302
- return Z.vnode && Z.vnode(l), l;
2302
+ return ie.vnode && ie.vnode(l), l;
2303
2303
  }
2304
- const fr = ge`
2305
- ${P}
2304
+ const wr = le`
2305
+ ${N}
2306
2306
  position: fixed;
2307
2307
  top: 0;
2308
2308
  left: 0;
@@ -2315,7 +2315,7 @@ const fr = ge`
2315
2315
  height: 100vh;
2316
2316
 
2317
2317
  .card-wrapper {
2318
- ${P}
2318
+ ${N}
2319
2319
  position: relative;
2320
2320
  display: flex;
2321
2321
  flex-direction: column;
@@ -2329,7 +2329,7 @@ const fr = ge`
2329
2329
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
2330
2330
 
2331
2331
  .body {
2332
- ${P}
2332
+ ${N}
2333
2333
  display: flex;
2334
2334
  flex-direction: column;
2335
2335
  width: 100%;
@@ -2338,7 +2338,7 @@ const fr = ge`
2338
2338
  box-sizing: border-box;
2339
2339
  justify-content: center;
2340
2340
  .title {
2341
- ${P}
2341
+ ${N}
2342
2342
  text-align: center;
2343
2343
  font-size: 16px;
2344
2344
  font-weight: bold;
@@ -2346,7 +2346,7 @@ const fr = ge`
2346
2346
  }
2347
2347
 
2348
2348
  .content {
2349
- ${P}
2349
+ ${N}
2350
2350
  font-size: 14px;
2351
2351
  color: #888;
2352
2352
  margin-bottom: 16px;
@@ -2354,13 +2354,13 @@ const fr = ge`
2354
2354
  }
2355
2355
 
2356
2356
  .footer {
2357
- ${P}
2357
+ ${N}
2358
2358
  display: flex;
2359
2359
  align-items: center;
2360
2360
  width: 100%;
2361
2361
  height: 40px;
2362
2362
  button {
2363
- ${P}
2363
+ ${N}
2364
2364
  border: none;
2365
2365
  outline: none;
2366
2366
  height: 100%;
@@ -2376,56 +2376,56 @@ const fr = ge`
2376
2376
  }
2377
2377
  }
2378
2378
  }
2379
- `, V = I(null), it = I(""), nt = I(""), Te = I(!1), hr = () => {
2379
+ `, G = E(null), st = E(""), at = E(""), Le = E(!1), br = () => {
2380
2380
  var t;
2381
- (t = V.value) == null || t.call(V, !1);
2382
- }, vr = () => {
2381
+ (t = G.value) == null || t.call(G, !1);
2382
+ }, Ar = () => {
2383
2383
  var t;
2384
- (t = V.value) == null || t.call(V, !0);
2385
- }, pr = async (t) => {
2384
+ (t = G.value) == null || t.call(G, !0);
2385
+ }, mr = async (t) => {
2386
2386
  let {
2387
2387
  title: e,
2388
2388
  content: i
2389
2389
  } = 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;
2390
+ return G.value && (G.value(!1), O(() => {
2391
+ G.value = null, Le.value = !1;
2392
+ })), O(() => {
2393
+ st.value = e || "", at.value = i || "", Le.value = !0;
2394
2394
  }), new Promise((n) => {
2395
- V.value = (r) => {
2396
- N(() => {
2397
- V.value = null, Te.value = !1, it.value = "", nt.value = "";
2395
+ G.value = (r) => {
2396
+ O(() => {
2397
+ G.value = null, Le.value = !1, st.value = "", at.value = "";
2398
2398
  }), n(r);
2399
2399
  };
2400
2400
  });
2401
- }, _r = () => Te.value ? w("div", {
2402
- className: fr,
2403
- children: w("div", {
2401
+ }, Er = () => Le.value ? b("div", {
2402
+ className: wr,
2403
+ children: b("div", {
2404
2404
  className: "card-wrapper",
2405
- children: [w("div", {
2405
+ children: [b("div", {
2406
2406
  className: "body",
2407
- children: [w("div", {
2407
+ children: [b("div", {
2408
2408
  className: "title",
2409
- children: it.value
2410
- }), w("div", {
2409
+ children: st.value
2410
+ }), b("div", {
2411
2411
  className: "content",
2412
- children: nt.value
2412
+ children: at.value
2413
2413
  })]
2414
- }), w("div", {
2414
+ }), b("div", {
2415
2415
  className: "footer",
2416
- children: [w("button", {
2417
- onClick: hr,
2416
+ children: [b("button", {
2417
+ onClick: br,
2418
2418
  className: "cancel-btn",
2419
2419
  children: "Cancel"
2420
- }), w("button", {
2421
- onClick: vr,
2420
+ }), b("button", {
2421
+ onClick: Ar,
2422
2422
  className: "confirm-btm",
2423
2423
  children: "Confirm"
2424
2424
  })]
2425
2425
  })]
2426
2426
  })
2427
- }) : null, yr = ge`
2428
- ${P}
2427
+ }) : null, Sr = le`
2428
+ ${N}
2429
2429
  position: relative;
2430
2430
  display: flex;
2431
2431
  align-items: center;
@@ -2443,7 +2443,7 @@ const fr = ge`
2443
2443
  }
2444
2444
 
2445
2445
  button {
2446
- ${P}
2446
+ ${N}
2447
2447
  padding: 0 20px;
2448
2448
  height: 30px;
2449
2449
  line-height: 30px;
@@ -2457,18 +2457,18 @@ const fr = ge`
2457
2457
  cursor: not-allowed;
2458
2458
  }
2459
2459
  }
2460
- `, gr = () => {
2461
- const t = I(!1), e = I(null);
2460
+ `, kr = () => {
2461
+ const t = E(!1), e = E(null);
2462
2462
  return {
2463
2463
  timerPaused: t,
2464
2464
  startTimestamp: e,
2465
2465
  startTimer: () => {
2466
- N(() => {
2466
+ O(() => {
2467
2467
  e.value = Date.now(), t.value = !1;
2468
2468
  });
2469
2469
  }
2470
2470
  };
2471
- }, mr = (t) => {
2471
+ }, xr = (t) => {
2472
2472
  let {
2473
2473
  countdown: e = 0,
2474
2474
  mode: i,
@@ -2478,65 +2478,65 @@ const fr = ge`
2478
2478
  const {
2479
2479
  startTimestamp: o,
2480
2480
  timerPaused: s
2481
- } = r, a = li(e);
2482
- lr(() => {
2481
+ } = r, a = fi(e);
2482
+ yr(() => {
2483
2483
  o.value && (a.value = e);
2484
- }), cr(() => {
2485
- a.value > 0 ? a.value -= 1 : N(() => {
2484
+ }), _r(() => {
2485
+ a.value > 0 ? a.value -= 1 : O(() => {
2486
2486
  s.value = !0, a.value = 0;
2487
2487
  });
2488
2488
  }, s.value ? null : 1e3);
2489
- const d = fe(() => {
2489
+ const d = ge(() => {
2490
2490
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2491
2491
  return !1;
2492
- const v = Date.now() - o.value;
2493
- return a.value > 0 && e - a.value >= 5 && v >= 5e3;
2494
- }), l = fe(() => {
2492
+ const f = Date.now() - o.value;
2493
+ return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2494
+ }), l = ge(() => {
2495
2495
  if (i === "interstitial")
2496
2496
  return !0;
2497
2497
  if (!o.value)
2498
2498
  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({
2499
+ const f = Date.now() - o.value;
2500
+ return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2501
+ }), c = ge(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2502
+ if (s.value = !0, !await mr({
2503
2503
  title: "Are you sure?",
2504
2504
  content: "You will lose your reward if you dismiss this Ad."
2505
2505
  })) {
2506
2506
  s.value = !1;
2507
2507
  return;
2508
2508
  }
2509
- n("dismiss"), N(() => {
2509
+ n("dismiss"), O(() => {
2510
2510
  s.value = !0, a.value = 0, o.value = null;
2511
2511
  });
2512
- }, f = () => {
2513
- n("viewed"), N(() => {
2512
+ }, u = () => {
2513
+ n("viewed"), O(() => {
2514
2514
  s.value = !0, a.value = 0, o.value = null;
2515
2515
  });
2516
2516
  };
2517
- return w("div", {
2518
- className: yr,
2519
- children: [a.value > 0 && i !== "interstitial" && w("div", {
2517
+ return b("div", {
2518
+ className: Sr,
2519
+ children: [a.value > 0 && i !== "interstitial" && b("div", {
2520
2520
  className: "timer",
2521
2521
  children: [a.value, "s"]
2522
- }), w("button", {
2523
- onClick: d.value ? u : l.value ? f : void 0,
2522
+ }), b("button", {
2523
+ onClick: d.value ? h : l.value ? u : void 0,
2524
2524
  disabled: c.value,
2525
- children: w("svg", {
2525
+ children: b("svg", {
2526
2526
  width: "12",
2527
2527
  height: "12",
2528
2528
  viewBox: "0 0 14 14",
2529
2529
  fill: "none",
2530
2530
  xmlns: "http://www.w3.org/2000/svg",
2531
- children: w("path", {
2531
+ children: b("path", {
2532
2532
  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
2533
  fill: "white"
2534
2534
  })
2535
2535
  })
2536
2536
  })]
2537
2537
  });
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");
2538
+ }, pi = () => {
2539
+ const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
2540
2540
  return {
2541
2541
  afterAd: t,
2542
2542
  adDismissed: e,
@@ -2548,8 +2548,8 @@ const fr = ge`
2548
2548
  src: a,
2549
2549
  mode: d
2550
2550
  };
2551
- }, Ar = ge`
2552
- ${P}
2551
+ }, Rr = le`
2552
+ ${N}
2553
2553
  position: fixed;
2554
2554
  z-index: 2147483647;
2555
2555
  background: white;
@@ -2559,7 +2559,7 @@ const fr = ge`
2559
2559
  flex-direction: column;
2560
2560
 
2561
2561
  iframe {
2562
- ${P}
2562
+ ${N}
2563
2563
  flex: 1;
2564
2564
  position: relative;
2565
2565
  display: block;
@@ -2567,7 +2567,7 @@ const fr = ge`
2567
2567
  width: 100%;
2568
2568
  height: 100%;
2569
2569
  }
2570
- `, fi = (t) => {
2570
+ `, yi = (t) => {
2571
2571
  let {
2572
2572
  state: e
2573
2573
  } = t;
@@ -2581,37 +2581,37 @@ const fr = ge`
2581
2581
  countdown: d,
2582
2582
  src: l,
2583
2583
  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 = () => {
2584
+ } = e, h = ki(() => kr(), []), u = (y) => {
2585
+ var v, g, p, _;
2586
+ a.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);
2587
+ }, f = () => {
2588
2588
  var y;
2589
2589
  (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2590
- u.startTimer();
2590
+ h.startTimer();
2591
2591
  }, 100), (y = s.value) == null || y.call(s);
2592
2592
  };
2593
- return a.value ? w("div", {
2594
- className: Ar,
2595
- children: [w(mr, {
2593
+ return a.value ? b("div", {
2594
+ className: Rr,
2595
+ children: [b(xr, {
2596
2596
  mode: c.value,
2597
- onClose: f,
2597
+ onClose: u,
2598
2598
  countdown: d.value,
2599
- state: u
2600
- }), a.value && w("iframe", {
2599
+ state: h
2600
+ }), a.value && b("iframe", {
2601
2601
  src: l.value,
2602
- onLoad: v,
2602
+ onLoad: f,
2603
2603
  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, {})]
2604
+ }), b(Er, {})]
2605
2605
  }) : null;
2606
2606
  };
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;
2607
+ function J(t, e, i) {
2608
+ return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2609
2609
  }
2610
- function wr(t) {
2611
- var e = br(t, "string");
2610
+ function Ir(t) {
2611
+ var e = Tr(t, "string");
2612
2612
  return typeof e == "symbol" ? e : e + "";
2613
2613
  }
2614
- function br(t, e) {
2614
+ function Tr(t, e) {
2615
2615
  if (typeof t != "object" || !t)
2616
2616
  return t;
2617
2617
  var i = t[Symbol.toPrimitive];
@@ -2623,13 +2623,13 @@ function br(t, e) {
2623
2623
  }
2624
2624
  return (e === "string" ? String : Number)(t);
2625
2625
  }
2626
- class Er {
2626
+ class Or {
2627
2627
  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;
2628
+ 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", pi()), this.context = e, this.initParams = i;
2629
2629
  }
2630
2630
  async init() {
2631
2631
  var e;
2632
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), he(w(fi, {
2632
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(yi, {
2633
2633
  state: this.state
2634
2634
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2635
2635
  }
@@ -2679,6 +2679,235 @@ class Er {
2679
2679
  case "next":
2680
2680
  case "pause": {
2681
2681
  (s = e.beforeAd) == null || s.call(e);
2682
+ const h = () => {
2683
+ var f;
2684
+ this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
2685
+ }, u = () => {
2686
+ var f;
2687
+ this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
2688
+ breakType: e.type,
2689
+ breakName: e.name,
2690
+ breakFormat: "interstitial",
2691
+ breakStatus: "viewed"
2692
+ });
2693
+ };
2694
+ O(() => {
2695
+ 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;
2696
+ });
2697
+ break;
2698
+ }
2699
+ case "reward": {
2700
+ this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
2701
+ breakType: this.lastUnDisplayedAdBreak.type,
2702
+ breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2703
+ breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2704
+ breakStatus: "ignored"
2705
+ }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2706
+ const h = () => {
2707
+ var p;
2708
+ this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
2709
+ }, u = {
2710
+ breakType: e.type,
2711
+ breakName: e.name,
2712
+ breakFormat: "reward",
2713
+ breakStatus: "ignored"
2714
+ }, f = () => {
2715
+ var p;
2716
+ this.adsIsShowing = !1, u.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
2717
+ }, y = () => {
2718
+ var p;
2719
+ this.adsIsShowing = !1, u.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
2720
+ }, v = () => {
2721
+ var p;
2722
+ this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
2723
+ };
2724
+ O(() => {
2725
+ this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2726
+ });
2727
+ const g = () => {
2728
+ var p;
2729
+ if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2730
+ (p = e.adBreakDone) == null || p.call(e, {
2731
+ breakType: e.type,
2732
+ breakName: e.name,
2733
+ breakFormat: "reward",
2734
+ breakStatus: "notReady"
2735
+ });
2736
+ return;
2737
+ }
2738
+ this.adsIsShowing = !0, O(() => {
2739
+ var _;
2740
+ 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;
2741
+ });
2742
+ };
2743
+ this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
2744
+ break;
2745
+ }
2746
+ }
2747
+ }
2748
+ }
2749
+ const oe = {};
2750
+ window.addEventListener("message", (t) => {
2751
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || oe[t.data.type] && oe[t.data.type].forEach((e) => {
2752
+ e(t.data.data);
2753
+ });
2754
+ });
2755
+ const ne = (t, e) => {
2756
+ dt(() => (oe[t] || (oe[t] = /* @__PURE__ */ new Set()), oe[t].add(e), () => {
2757
+ oe[t].delete(e);
2758
+ }), [t, e]);
2759
+ }, _i = () => {
2760
+ const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
2761
+ return {
2762
+ afterAd: t,
2763
+ adDismissed: e,
2764
+ adViewed: i,
2765
+ adBreakDone: n,
2766
+ adLoaded: r,
2767
+ adLinkClicked: o,
2768
+ adError: s,
2769
+ visible: a,
2770
+ src: d
2771
+ };
2772
+ }, Dr = le`
2773
+ ${N}
2774
+ position: fixed;
2775
+ z-index: 2147483647;
2776
+ background: white;
2777
+ width: 100vw;
2778
+ height: 100vh;
2779
+ display: flex;
2780
+ flex-direction: column;
2781
+
2782
+ iframe {
2783
+ ${N}
2784
+ flex: 1;
2785
+ position: relative;
2786
+ display: block;
2787
+ background: white;
2788
+ width: 100%;
2789
+ height: 100%;
2790
+ }
2791
+ `, gi = (t) => {
2792
+ let {
2793
+ state: e
2794
+ } = t;
2795
+ const {
2796
+ afterAd: i,
2797
+ adDismissed: n,
2798
+ adViewed: r,
2799
+ adBreakDone: o,
2800
+ adLoaded: s,
2801
+ adLinkClicked: a,
2802
+ visible: d,
2803
+ src: l
2804
+ } = e, [c, h] = xi(!1), u = (y) => {
2805
+ var v, g, p, _;
2806
+ 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);
2807
+ }, f = () => {
2808
+ var y;
2809
+ (y = s.value) == null || y.call(s);
2810
+ };
2811
+ return ne("appsrockets_ad_dismissed", () => u("dismiss")), ne("appsrockets_ad_rewarded", () => u("viewed")), ne("appsrockets_ad_completed", () => u("viewed")), ne("appsrockets_ad_skipped", () => u("viewed")), ne("appsrockets_ad_clicked", (y) => {
2812
+ var v;
2813
+ return (v = a.value) == null ? void 0 : v.call(a, y);
2814
+ }), ne("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
2815
+ className: Dr,
2816
+ style: {
2817
+ display: c ? "flex" : "none"
2818
+ },
2819
+ children: d.value && b("iframe", {
2820
+ src: l.value,
2821
+ onLoad: f,
2822
+ allowFullScreen: !0,
2823
+ allow: "autoplay",
2824
+ 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"
2825
+ })
2826
+ }) : null;
2827
+ };
2828
+ function Y(t, e, i) {
2829
+ return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2830
+ }
2831
+ function Lr(t) {
2832
+ var e = Cr(t, "string");
2833
+ return typeof e == "symbol" ? e : e + "";
2834
+ }
2835
+ function Cr(t, e) {
2836
+ if (typeof t != "object" || !t)
2837
+ return t;
2838
+ var i = t[Symbol.toPrimitive];
2839
+ if (i !== void 0) {
2840
+ var n = i.call(t, e);
2841
+ if (typeof n != "object")
2842
+ return n;
2843
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2844
+ }
2845
+ return (e === "string" ? String : Number)(t);
2846
+ }
2847
+ class Nr {
2848
+ constructor(e, i) {
2849
+ 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", _i()), Y(this, "processUrl", (n) => {
2850
+ var a;
2851
+ const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2852
+ 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();
2853
+ }), this.context = e;
2854
+ }
2855
+ async init() {
2856
+ var e;
2857
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(gi, {
2858
+ state: this.state
2859
+ }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2860
+ }
2861
+ adConfig(e) {
2862
+ var i;
2863
+ if (this.initialized) {
2864
+ (i = e.onReady) == null || i.call(e);
2865
+ return;
2866
+ }
2867
+ this.initCompleter = () => {
2868
+ var n;
2869
+ (n = e.onReady) == null || n.call(e);
2870
+ };
2871
+ }
2872
+ adBreak(e, i) {
2873
+ var r, o, s, a, d, l, c, h;
2874
+ if (!this.initialized || !this.adsOverlay || !i.params.url) {
2875
+ (r = e.adBreakDone) == null || r.call(e, {
2876
+ breakType: e.type,
2877
+ breakName: e.type === "preroll" ? "" : e.name,
2878
+ breakFormat: e.type === "reward" ? "reward" : "interstitial",
2879
+ breakStatus: "notReady"
2880
+ });
2881
+ return;
2882
+ }
2883
+ if (this.adsIsShowing) {
2884
+ (o = e.adBreakDone) == null || o.call(e, {
2885
+ breakType: e.type,
2886
+ breakName: e.type === "preroll" ? "" : e.name,
2887
+ breakFormat: e.type === "reward" ? "reward" : "interstitial",
2888
+ breakStatus: "frequencyCapped"
2889
+ });
2890
+ return;
2891
+ }
2892
+ const n = (u) => {
2893
+ var f, y;
2894
+ (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
2895
+ };
2896
+ switch (e.type) {
2897
+ case "preroll": {
2898
+ (s = e.adBreakDone) == null || s.call(e, {
2899
+ breakType: e.type,
2900
+ breakName: "",
2901
+ breakFormat: "interstitial",
2902
+ breakStatus: "noAdPreloaded"
2903
+ });
2904
+ break;
2905
+ }
2906
+ case "start":
2907
+ case "browse":
2908
+ case "next":
2909
+ case "pause": {
2910
+ (a = e.beforeAd) == null || a.call(e);
2682
2911
  const u = () => {
2683
2912
  var v;
2684
2913
  this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
@@ -2690,44 +2919,54 @@ class Er {
2690
2919
  breakFormat: "interstitial",
2691
2920
  breakStatus: "viewed"
2692
2921
  });
2922
+ }, y = () => {
2923
+ var v;
2924
+ this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2925
+ breakType: e.type,
2926
+ breakName: e.name,
2927
+ breakFormat: "interstitial",
2928
+ breakStatus: "noAdPreloaded"
2929
+ });
2693
2930
  };
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;
2931
+ O(() => {
2932
+ 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
2933
  });
2697
2934
  break;
2698
2935
  }
2699
2936
  case "reward": {
2700
- this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
2937
+ this.lastUnDisplayedAdBreak && ((l = (d = this.lastUnDisplayedAdBreak).adBreakDone) == null || l.call(d, {
2701
2938
  breakType: this.lastUnDisplayedAdBreak.type,
2702
2939
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2703
2940
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2704
2941
  breakStatus: "ignored"
2705
- }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2942
+ }), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
2706
2943
  const u = () => {
2707
- var h;
2708
- this.adsIsShowing = !1, (h = e.afterAd) == null || h.call(e);
2944
+ var w;
2945
+ this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
2709
2946
  }, f = {
2710
2947
  breakType: e.type,
2711
2948
  breakName: e.name,
2712
2949
  breakFormat: "reward",
2713
2950
  breakStatus: "ignored"
2714
- }, v = () => {
2715
- var h;
2716
- this.adsIsShowing = !1, f.breakStatus = "dismissed", (h = e.adDismissed) == null || h.call(e);
2717
2951
  }, 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);
2952
+ var w;
2953
+ this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
2954
+ }, v = () => {
2955
+ var w;
2956
+ this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
2957
+ }, g = () => {
2958
+ var w;
2959
+ this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
2960
+ }, p = () => {
2961
+ this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2723
2962
  };
2724
- N(() => {
2725
- this.state.afterAd.value = u, this.state.adDismissed.value = v, this.state.adViewed.value = y, this.state.adBreakDone.value = _;
2963
+ O(() => {
2964
+ 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
2965
  });
2727
- const A = () => {
2728
- var h;
2966
+ const _ = () => {
2967
+ var w;
2729
2968
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2730
- (h = e.adBreakDone) == null || h.call(e, {
2969
+ (w = e.adBreakDone) == null || w.call(e, {
2731
2970
  breakType: e.type,
2732
2971
  breakName: e.name,
2733
2972
  breakFormat: "reward",
@@ -2735,25 +2974,24 @@ class Er {
2735
2974
  });
2736
2975
  return;
2737
2976
  }
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;
2977
+ this.adsIsShowing = !0, O(() => {
2978
+ this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
2741
2979
  });
2742
2980
  };
2743
- this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, A);
2981
+ this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, _);
2744
2982
  break;
2745
2983
  }
2746
2984
  }
2747
2985
  }
2748
2986
  }
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;
2987
+ function Q(t, e, i) {
2988
+ return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2751
2989
  }
2752
- function Sr(t) {
2753
- var e = xr(t, "string");
2990
+ function Pr(t) {
2991
+ var e = $r(t, "string");
2754
2992
  return typeof e == "symbol" ? e : e + "";
2755
2993
  }
2756
- function xr(t, e) {
2994
+ function $r(t, e) {
2757
2995
  if (typeof t != "object" || !t)
2758
2996
  return t;
2759
2997
  var i = t[Symbol.toPrimitive];
@@ -2765,15 +3003,19 @@ function xr(t, e) {
2765
3003
  }
2766
3004
  return (e === "string" ? String : Number)(t);
2767
3005
  }
2768
- class to {
3006
+ class yo {
2769
3007
  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();
3008
+ 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)
3009
+ this.context = e, this.channelPolicy = new vn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new qt(this.context), this.contextInfo = this.context.getContextInfo();
2772
3010
  else
2773
3011
  throw new Error("JoliboxAdsForGame requires a configuration object");
2774
3012
  }
2775
3013
  getRequestContextData(e) {
2776
- var i, n;
3014
+ var r, o;
3015
+ const {
3016
+ width: i,
3017
+ height: n
3018
+ } = this.context.getWindowInfo();
2777
3019
  return {
2778
3020
  report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
2779
3021
  sessionId: this.contextInfo.sessionId,
@@ -2786,8 +3028,12 @@ class to {
2786
3028
  sessionId: this.contextInfo.sessionId,
2787
3029
  deviceId: this.contextInfo.deviceId,
2788
3030
  adId: this.contextInfo.adId,
2789
- deviceModel: (i = this.contextInfo.deviceModel) != null ? i : "UnknownModel",
2790
- deviceBrand: (n = this.contextInfo.deviceBrand) != null ? n : "UnknownBrand"
3031
+ deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
3032
+ deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
3033
+ dimension: {
3034
+ width: i,
3035
+ height: n
3036
+ }
2791
3037
  };
2792
3038
  }
2793
3039
  getRequestBizParams() {
@@ -2811,15 +3057,20 @@ class to {
2811
3057
  for (const n of i)
2812
3058
  switch (n.provider) {
2813
3059
  case "ADSENSE": {
2814
- const r = new cn(this.context, n.params);
3060
+ const r = new _n(this.context, n.params);
2815
3061
  await r.init(), this.providers.ADSENSE = r;
2816
3062
  break;
2817
3063
  }
2818
3064
  case "OKSPIN": {
2819
- const r = new Er(this.context, n.params);
3065
+ const r = new Or(this.context, n.params);
2820
3066
  await r.init(), this.providers.OKSPIN = r;
2821
3067
  break;
2822
3068
  }
3069
+ case "APPSROCKETS": {
3070
+ const r = new Nr(this.context, n.params);
3071
+ await r.init(), this.providers.APPSROCKETS = r;
3072
+ break;
3073
+ }
2823
3074
  }
2824
3075
  this.initialized = !0;
2825
3076
  }
@@ -2827,7 +3078,7 @@ class to {
2827
3078
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
2828
3079
  }
2829
3080
  async adBreak(e) {
2830
- var r, o, s, a, d, l, c, u, f;
3081
+ var r, o, s, a, d, l, c, h, u;
2831
3082
  if (Date.now() - this.initializedTimeStamp < 3e3) {
2832
3083
  (r = e.adBreakDone) == null || r.call(e, {
2833
3084
  breakType: e.type,
@@ -2857,7 +3108,7 @@ class to {
2857
3108
  }
2858
3109
  try {
2859
3110
  const {
2860
- data: v,
3111
+ data: f,
2861
3112
  code: y
2862
3113
  } = await this.context.httpClient.post("/api/ads/info", {
2863
3114
  data: {
@@ -2877,8 +3128,8 @@ class to {
2877
3128
  });
2878
3129
  return;
2879
3130
  } else {
2880
- const _ = v;
2881
- if (_.length === 0) {
3131
+ const v = f == null ? void 0 : f.sort((w, j) => w.seq - j.seq);
3132
+ if (v.length === 0) {
2882
3133
  (d = e.adBreakDone) == null || d.call(e, {
2883
3134
  breakType: e.type,
2884
3135
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -2887,47 +3138,47 @@ class to {
2887
3138
  });
2888
3139
  return;
2889
3140
  }
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;
3141
+ let g = !0, p = null;
3142
+ const _ = new Ti(this.context);
3143
+ for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; v.length > 0; ) {
3144
+ const w = v.shift(), j = this.providers[w.provider];
3145
+ if (j) {
3146
+ const [U, F] = await _.callAdBreakAndContinue(j, e, w);
3147
+ g = U, p = F;
2897
3148
  } else
2898
- A = !0, h = {
3149
+ g = !0, p = {
2899
3150
  breakType: e.type,
2900
3151
  breakName: e.type === "preroll" ? void 0 : e.name,
2901
3152
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
2902
3153
  breakStatus: "notReady"
2903
3154
  };
2904
- if (!A)
3155
+ if (!g)
2905
3156
  break;
2906
3157
  }
2907
- A && h && ((c = e.adBreakDone) == null || c.call(e, h));
3158
+ g && p && ((c = e.adBreakDone) == null || c.call(e, p));
2908
3159
  }
2909
- } catch (v) {
2910
- (u = e.adBreakDone) == null || u.call(e, {
3160
+ } catch (f) {
3161
+ (h = e.adBreakDone) == null || h.call(e, {
2911
3162
  breakType: e.type,
2912
3163
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
2913
3164
  breakStatus: "noAdPreloaded"
2914
3165
  });
2915
3166
  } finally {
2916
- (f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
3167
+ (u = this.context.eventEmitter) == null || u.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
2917
3168
  }
2918
3169
  }
2919
3170
  adUnit(e) {
2920
3171
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
2921
3172
  }
2922
3173
  }
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;
3174
+ function Je(t, e, i) {
3175
+ return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2925
3176
  }
2926
- function Rr(t) {
2927
- var e = Ir(t, "string");
3177
+ function Mr(t) {
3178
+ var e = Ur(t, "string");
2928
3179
  return typeof e == "symbol" ? e : e + "";
2929
3180
  }
2930
- function Ir(t, e) {
3181
+ function Ur(t, e) {
2931
3182
  if (typeof t != "object" || !t)
2932
3183
  return t;
2933
3184
  var i = t[Symbol.toPrimitive];
@@ -2939,9 +3190,9 @@ function Ir(t, e) {
2939
3190
  }
2940
3191
  return (e === "string" ? String : Number)(t);
2941
3192
  }
2942
- class Tr {
3193
+ class Br {
2943
3194
  constructor(e) {
2944
- Ke(this, "context", void 0), Ke(this, "currentProvider", void 0), Ke(this, "continueCallback", void 0), this.context = e;
3195
+ Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
2945
3196
  }
2946
3197
  get paramsToTrack() {
2947
3198
  var e, i;
@@ -2984,14 +3235,14 @@ class Tr {
2984
3235
  });
2985
3236
  }
2986
3237
  }
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;
3238
+ function Ye(t, e, i) {
3239
+ return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2989
3240
  }
2990
- function Or(t) {
2991
- var e = kr(t, "string");
3241
+ function jr(t) {
3242
+ var e = Fr(t, "string");
2992
3243
  return typeof e == "symbol" ? e : e + "";
2993
3244
  }
2994
- function kr(t, e) {
3245
+ function Fr(t, e) {
2995
3246
  if (typeof t != "object" || !t)
2996
3247
  return t;
2997
3248
  var i = t[Symbol.toPrimitive];
@@ -3003,27 +3254,27 @@ function kr(t, e) {
3003
3254
  }
3004
3255
  return (e === "string" ? String : Number)(t);
3005
3256
  }
3006
- class B extends Error {
3257
+ class P extends Error {
3007
3258
  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;
3259
+ 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
3260
  }
3010
3261
  static from(e, i) {
3011
3262
  switch (i) {
3012
3263
  case "GOOGLE_IMA_ERROR":
3013
- return new B(e, i);
3264
+ return new P(e, i);
3014
3265
  case "JOLIBOX_IMA_ERROR":
3015
- return new B(e, i);
3266
+ return new P(e, i);
3016
3267
  }
3017
3268
  }
3018
3269
  }
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;
3270
+ function x(t, e, i) {
3271
+ return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3021
3272
  }
3022
- function Dr(t) {
3023
- var e = Lr(t, "string");
3273
+ function Vr(t) {
3274
+ var e = zr(t, "string");
3024
3275
  return typeof e == "symbol" ? e : e + "";
3025
3276
  }
3026
- function Lr(t, e) {
3277
+ function zr(t, e) {
3027
3278
  if (typeof t != "object" || !t)
3028
3279
  return t;
3029
3280
  var i = t[Symbol.toPrimitive];
@@ -3035,33 +3286,33 @@ function Lr(t, e) {
3035
3286
  }
3036
3287
  return (e === "string" ? String : Number)(t);
3037
3288
  }
3038
- class Nr {
3289
+ class Gr {
3039
3290
  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) => {
3291
+ 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", () => {
3292
+ var r, o, s, a, d, l, c, h, u, f, y;
3293
+ 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);
3294
+ }), x(this, "requestAds", async (r, o) => {
3044
3295
  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"));
3296
+ this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3297
+ var u;
3298
+ return (u = r.onAdError) == null ? void 0 : u.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
3048
3299
  }, 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
3300
  const s = () => {
3050
- var u;
3051
- this.isAdPlaying || (this.isContentFinished = !0, (u = this.adsLoader) == null || u.contentComplete());
3301
+ var h;
3302
+ this.isAdPlaying || (this.isContentFinished = !0, (h = this.adsLoader) == null || h.contentComplete());
3052
3303
  };
3053
3304
  this.videoContent.onended = s;
3054
3305
  const a = new window.google.ima.AdsRequest();
3055
3306
  let d = "";
3056
- Object.keys(o.params).forEach((u) => {
3057
- const f = window.encodeURIComponent(o.params[u]);
3058
- d += `&${u}=${f}`;
3307
+ Object.keys(o.params).forEach((h) => {
3308
+ const u = window.encodeURIComponent(o.params[h]);
3309
+ d += `&${h}=${u}`;
3059
3310
  });
3060
3311
  const l = `${this.adTagUrl}${d}`;
3061
3312
  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", () => {
3313
+ }), x(this, "createAdDisplayContainer", () => {
3063
3314
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
3064
- }), S(this, "playAds", () => {
3315
+ }), x(this, "playAds", () => {
3065
3316
  var r, o;
3066
3317
  this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
3067
3318
  try {
@@ -3069,10 +3320,10 @@ class Nr {
3069
3320
  } catch (s) {
3070
3321
  console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
3071
3322
  }
3072
- }), S(this, "onAdsManagerLoaded", (r) => {
3323
+ }), x(this, "onAdsManagerLoaded", (r) => {
3073
3324
  const o = new window.google.ima.AdsRenderingSettings();
3074
3325
  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) => {
3326
+ }), x(this, "onAdEvent", (r) => {
3076
3327
  var s, a, d, l;
3077
3328
  const o = r.getAd();
3078
3329
  switch (r.type) {
@@ -3090,19 +3341,19 @@ class Nr {
3090
3341
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
3091
3342
  break;
3092
3343
  }
3093
- }), S(this, "onAdError", (r) => {
3344
+ }), x(this, "onAdError", (r) => {
3094
3345
  var o, s;
3095
3346
  (o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
3096
- }), S(this, "onContentPauseRequested", () => {
3347
+ }), x(this, "onContentPauseRequested", () => {
3097
3348
  this.isAdPlaying = !0, this.videoContent.pause();
3098
- }), S(this, "onContentResumeRequested", () => {
3349
+ }), x(this, "onContentResumeRequested", () => {
3099
3350
  this.isAdPlaying = !1;
3100
3351
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3101
3352
  }
3102
3353
  }
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();
3354
+ 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 || {});
3355
+ const Kr = () => {
3356
+ const t = E(!1), e = E(!1), i = E(null), n = _t(), r = _t();
3106
3357
  return {
3107
3358
  visible: t,
3108
3359
  canRetry: e,
@@ -3110,8 +3361,8 @@ const Pr = () => {
3110
3361
  videoRef: n,
3111
3362
  adContainerRef: r
3112
3363
  };
3113
- }, Cr = ge`
3114
- ${P}
3364
+ }, qr = le`
3365
+ ${N}
3115
3366
  position: fixed;
3116
3367
  left: 0;
3117
3368
  top: 0;
@@ -3126,7 +3377,7 @@ const Pr = () => {
3126
3377
  }
3127
3378
 
3128
3379
  .ads-wrapper {
3129
- ${P}
3380
+ ${N}
3130
3381
  position: relative;
3131
3382
  width: 100%;
3132
3383
  height: 100%;
@@ -3149,7 +3400,7 @@ const Pr = () => {
3149
3400
  }
3150
3401
 
3151
3402
  .retry-button {
3152
- ${P}
3403
+ ${N}
3153
3404
  position: absolute;
3154
3405
  width: 100%;
3155
3406
  height: 100%;
@@ -3159,7 +3410,7 @@ const Pr = () => {
3159
3410
  cursor: pointer;
3160
3411
  }
3161
3412
  }
3162
- `, Mr = (t) => {
3413
+ `, Hr = (t) => {
3163
3414
  let {
3164
3415
  onReady: e,
3165
3416
  state: i
@@ -3171,40 +3422,40 @@ const Pr = () => {
3171
3422
  videoRef: s,
3172
3423
  adContainerRef: a
3173
3424
  } = i, d = () => {
3174
- r.value && (r.value(), N(() => {
3425
+ r.value && (r.value(), O(() => {
3175
3426
  r.value = null, o.value = !1;
3176
3427
  }));
3177
3428
  };
3178
- return Pt(() => {
3429
+ return dt(() => {
3179
3430
  e();
3180
- }, [e]), w("div", {
3181
- className: Cr,
3431
+ }, [e]), b("div", {
3432
+ className: qr,
3182
3433
  "data-visible": n.value,
3183
- children: w("div", {
3434
+ children: b("div", {
3184
3435
  className: "ads-wrapper",
3185
- children: [w("video", {
3436
+ children: [b("video", {
3186
3437
  ref: s,
3187
3438
  width: "100%",
3188
3439
  height: "100%"
3189
- }), w("div", {
3440
+ }), b("div", {
3190
3441
  id: "ad-container",
3191
3442
  ref: a
3192
- }), o.value ? w("div", {
3443
+ }), o.value ? b("div", {
3193
3444
  className: "retry-button",
3194
3445
  onClick: d,
3195
- children: w("svg", {
3446
+ children: b("svg", {
3196
3447
  width: "64",
3197
3448
  height: "64",
3198
3449
  viewBox: "0 0 64 64",
3199
3450
  fill: "none",
3200
3451
  xmlns: "http://www.w3.org/2000/svg",
3201
- children: [w("circle", {
3452
+ children: [b("circle", {
3202
3453
  cx: "32",
3203
3454
  cy: "32",
3204
3455
  r: "32",
3205
3456
  fill: "#141416",
3206
3457
  fillOpacity: "0.3"
3207
- }), w("path", {
3458
+ }), b("path", {
3208
3459
  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
3460
  fill: "white"
3210
3461
  })]
@@ -3213,14 +3464,14 @@ const Pr = () => {
3213
3464
  })
3214
3465
  });
3215
3466
  };
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;
3467
+ function X(t, e, i) {
3468
+ return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3218
3469
  }
3219
- function $r(t) {
3220
- var e = Ur(t, "string");
3470
+ function Wr(t) {
3471
+ var e = Jr(t, "string");
3221
3472
  return typeof e == "symbol" ? e : e + "";
3222
3473
  }
3223
- function Ur(t, e) {
3474
+ function Jr(t, e) {
3224
3475
  if (typeof t != "object" || !t)
3225
3476
  return t;
3226
3477
  var i = t[Symbol.toPrimitive];
@@ -3232,9 +3483,9 @@ function Ur(t, e) {
3232
3483
  }
3233
3484
  return (e === "string" ? String : Number)(t);
3234
3485
  }
3235
- class jr {
3486
+ class Yr {
3236
3487
  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) => {
3488
+ 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", Kr()), X(this, "init", async (i) => {
3238
3489
  if (this.initialized)
3239
3490
  return;
3240
3491
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3250,19 +3501,19 @@ class jr {
3250
3501
  }, s.onerror = o, document.head.appendChild(s);
3251
3502
  }
3252
3503
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3253
- he(w(Mr, {
3504
+ te(b(Hr, {
3254
3505
  state: this.state,
3255
3506
  onReady: () => {
3256
- this.ima = new Nr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3507
+ this.ima = new Gr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3257
3508
  }
3258
3509
  }), this.adsOverlay);
3259
3510
  }), 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) => {
3511
+ }), X(this, "destroy", () => {
3512
+ this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3513
+ }), X(this, "requestAd", (i, n) => {
3263
3514
  var a;
3264
3515
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3265
- const d = B.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3516
+ const d = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3266
3517
  (a = i.onAdError) == null || a.call(i, d);
3267
3518
  return;
3268
3519
  }
@@ -3272,9 +3523,9 @@ class jr {
3272
3523
  }, o = (d) => {
3273
3524
  let l = !1;
3274
3525
  switch (d.raw.getErrorCode()) {
3275
- case Oe.AUTOPLAY_DISALLOWED:
3276
- case Oe.VIDEO_PLAY_ERROR:
3277
- case Oe.ADS_REQUEST_NETWORK_ERROR: {
3526
+ case Ce.AUTOPLAY_DISALLOWED:
3527
+ case Ce.VIDEO_PLAY_ERROR:
3528
+ case Ce.ADS_REQUEST_NETWORK_ERROR: {
3278
3529
  l = !0;
3279
3530
  break;
3280
3531
  }
@@ -3289,7 +3540,7 @@ class jr {
3289
3540
  const c = () => {
3290
3541
  this.ima.destroy(), this.requestAd(i, n);
3291
3542
  };
3292
- N(() => {
3543
+ O(() => {
3293
3544
  this.state.canRetry.value = !0, this.state.retry.value = c;
3294
3545
  });
3295
3546
  }
@@ -3298,14 +3549,14 @@ class jr {
3298
3549
  }), this.context = e;
3299
3550
  }
3300
3551
  }
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;
3552
+ function K(t, e, i) {
3553
+ return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3303
3554
  }
3304
- function Fr(t) {
3305
- var e = Br(t, "string");
3555
+ function Xr(t) {
3556
+ var e = Qr(t, "string");
3306
3557
  return typeof e == "symbol" ? e : e + "";
3307
3558
  }
3308
- function Br(t, e) {
3559
+ function Qr(t, e) {
3309
3560
  if (typeof t != "object" || !t)
3310
3561
  return t;
3311
3562
  var i = t[Symbol.toPrimitive];
@@ -3317,24 +3568,24 @@ function Br(t, e) {
3317
3568
  }
3318
3569
  return (e === "string" ? String : Number)(t);
3319
3570
  }
3320
- class Vr {
3571
+ class Zr {
3321
3572
  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) => {
3573
+ 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", pi()), K(this, "init", async (i) => {
3323
3574
  var n;
3324
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), he(w(fi, {
3575
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(yi, {
3325
3576
  state: this.state
3326
3577
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3327
- }), G(this, "destroy", () => {
3578
+ }), K(this, "destroy", () => {
3328
3579
  var i;
3329
- this.adsOverlay && (he(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3330
- }), G(this, "requestAd", (i, n) => {
3580
+ this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3581
+ }), K(this, "requestAd", (i, n) => {
3331
3582
  var s, a, d, l;
3332
3583
  if (!this.adsOverlay || !this.initialized) {
3333
- (s = i.onAdError) == null || s.call(i, B.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3584
+ (s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3334
3585
  return;
3335
3586
  }
3336
3587
  if (this.adsIsShowing) {
3337
- (a = i.onAdError) == null || a.call(i, B.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3588
+ (a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3338
3589
  return;
3339
3590
  }
3340
3591
  (d = i.onAdRequested) == null || d.call(i);
@@ -3345,21 +3596,21 @@ class Vr {
3345
3596
  var c;
3346
3597
  (c = i.onAdLoaded) == null || c.call(i, void 0);
3347
3598
  };
3348
- this.adsIsShowing = !0, N(() => {
3599
+ this.adsIsShowing = !0, O(() => {
3349
3600
  var c;
3350
3601
  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
3602
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
3352
3603
  }), this.context = e;
3353
3604
  }
3354
3605
  }
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;
3606
+ function z(t, e, i) {
3607
+ return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3357
3608
  }
3358
- function zr(t) {
3359
- var e = Gr(t, "string");
3609
+ function eo(t) {
3610
+ var e = to(t, "string");
3360
3611
  return typeof e == "symbol" ? e : e + "";
3361
3612
  }
3362
- function Gr(t, e) {
3613
+ function to(t, e) {
3363
3614
  if (typeof t != "object" || !t)
3364
3615
  return t;
3365
3616
  var i = t[Symbol.toPrimitive];
@@ -3373,13 +3624,80 @@ function Gr(t, e) {
3373
3624
  }
3374
3625
  class io {
3375
3626
  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();
3627
+ 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", _i()), z(this, "processUrl", (i) => {
3628
+ var s;
3629
+ const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
3630
+ 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();
3631
+ }), z(this, "init", async (i) => {
3632
+ var n;
3633
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(gi, {
3634
+ state: this.state
3635
+ }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3636
+ }), z(this, "destroy", () => {
3637
+ var i;
3638
+ this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3639
+ }), z(this, "requestAd", (i, n) => {
3640
+ var d, l, c, h;
3641
+ if (!this.adsOverlay || !this.initialized) {
3642
+ (d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3643
+ return;
3644
+ }
3645
+ if (this.adsIsShowing) {
3646
+ (l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3647
+ return;
3648
+ }
3649
+ (c = i.onAdRequested) == null || c.call(i);
3650
+ const r = () => {
3651
+ var u;
3652
+ this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
3653
+ }, o = () => {
3654
+ var u;
3655
+ (u = i.onAdLoaded) == null || u.call(i, void 0);
3656
+ }, s = (u) => {
3657
+ var f, y;
3658
+ (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
3659
+ }, a = () => {
3660
+ var u;
3661
+ (u = i.onAdError) == null || u.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3662
+ };
3663
+ this.adsIsShowing = !0, O(() => {
3664
+ 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;
3665
+ }), (h = i.onAdPlaying) == null || h.call(i, void 0);
3666
+ }), this.context = e;
3667
+ }
3668
+ }
3669
+ function ye(t, e, i) {
3670
+ return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3671
+ }
3672
+ function no(t) {
3673
+ var e = ro(t, "string");
3674
+ return typeof e == "symbol" ? e : e + "";
3675
+ }
3676
+ function ro(t, e) {
3677
+ if (typeof t != "object" || !t)
3678
+ return t;
3679
+ var i = t[Symbol.toPrimitive];
3680
+ if (i !== void 0) {
3681
+ var n = i.call(t, e);
3682
+ if (typeof n != "object")
3683
+ return n;
3684
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3685
+ }
3686
+ return (e === "string" ? String : Number)(t);
3687
+ }
3688
+ class _o {
3689
+ constructor(e) {
3690
+ if (ye(this, "context", void 0), ye(this, "contextInfo", void 0), ye(this, "providers", {}), ye(this, "adsTrackSerializer", void 0), ye(this, "initialized", !1), e)
3691
+ this.context = e, this.adsTrackSerializer = new qt(e), this.contextInfo = this.context.getContextInfo();
3378
3692
  else
3379
3693
  throw new Error("JoliboxAdsForVideo requires a configuration object");
3380
3694
  }
3381
3695
  getRequestContextData(e) {
3382
- var i, n;
3696
+ var r, o;
3697
+ const {
3698
+ width: i,
3699
+ height: n
3700
+ } = this.context.getWindowInfo();
3383
3701
  return {
3384
3702
  report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
3385
3703
  sessionId: this.contextInfo.sessionId,
@@ -3392,8 +3710,12 @@ class io {
3392
3710
  sessionId: this.contextInfo.sessionId,
3393
3711
  deviceId: this.contextInfo.deviceId,
3394
3712
  adId: this.contextInfo.adId,
3395
- deviceModel: (i = this.contextInfo.deviceModel) != null ? i : "UnknownModel",
3396
- deviceBrand: (n = this.contextInfo.deviceBrand) != null ? n : "UnknownBrand"
3713
+ deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
3714
+ deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
3715
+ dimension: {
3716
+ width: i,
3717
+ height: n
3718
+ }
3397
3719
  };
3398
3720
  }
3399
3721
  getRequestBizParams() {
@@ -3416,15 +3738,20 @@ class io {
3416
3738
  for (const i of e)
3417
3739
  switch (i.provider) {
3418
3740
  case "GOOGLE_IMA": {
3419
- const n = new jr(this.context);
3741
+ const n = new Yr(this.context);
3420
3742
  await n.init(i), this.providers.GOOGLE_IMA = n;
3421
3743
  break;
3422
3744
  }
3423
3745
  case "OKSPIN": {
3424
- const n = new Vr(this.context);
3746
+ const n = new Zr(this.context);
3425
3747
  await n.init(i), this.providers.OKSPIN = n;
3426
3748
  break;
3427
3749
  }
3750
+ case "APPSROCKETS": {
3751
+ const n = new io(this.context);
3752
+ await n.init(i), this.providers.APPSROCKETS = n;
3753
+ break;
3754
+ }
3428
3755
  }
3429
3756
  this.initialized = !0;
3430
3757
  }
@@ -3440,7 +3767,7 @@ class io {
3440
3767
  async requestAd(e) {
3441
3768
  var i, n, r, o, s, a, d;
3442
3769
  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");
3770
+ const l = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3444
3771
  (n = e.onAdError) == null || n.call(e, l);
3445
3772
  return;
3446
3773
  }
@@ -3457,46 +3784,46 @@ class io {
3457
3784
  }
3458
3785
  });
3459
3786
  if (c !== "SUCCESS") {
3460
- const u = B.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3461
- (r = e.onAdError) == null || r.call(e, u);
3787
+ const h = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3788
+ (r = e.onAdError) == null || r.call(e, h);
3462
3789
  return;
3463
3790
  } 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, _);
3791
+ const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
3792
+ if (h.length === 0) {
3793
+ const v = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3794
+ (o = e.onAdError) == null || o.call(e, v);
3468
3795
  return;
3469
3796
  }
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;
3797
+ let u = !0, f = null;
3798
+ const y = new Br(this.context);
3799
+ for (; h.length > 0; ) {
3800
+ const v = h.shift(), g = this.providers[v.provider];
3801
+ if (g) {
3802
+ const [p, _] = await y.callAdRequestAndContinue(g, e, v);
3803
+ u = p, f = _;
3477
3804
  } else
3478
- f = !0, v = B.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3479
- if (!f)
3805
+ u = !0, f = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3806
+ if (!u)
3480
3807
  break;
3481
3808
  }
3482
- f && v && ((s = e.onAdError) == null || s.call(e, v));
3809
+ u && f && ((s = e.onAdError) == null || s.call(e, f));
3483
3810
  }
3484
3811
  } catch (l) {
3485
- const c = B.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3812
+ const c = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3486
3813
  (a = e.onAdError) == null || a.call(e, c);
3487
3814
  } finally {
3488
3815
  (d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
3489
3816
  }
3490
3817
  }
3491
3818
  }
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;
3819
+ function re(t, e, i) {
3820
+ return (e = oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3494
3821
  }
3495
- function Kr(t) {
3496
- var e = qr(t, "string");
3822
+ function oo(t) {
3823
+ var e = so(t, "string");
3497
3824
  return typeof e == "symbol" ? e : e + "";
3498
3825
  }
3499
- function qr(t, e) {
3826
+ function so(t, e) {
3500
3827
  if (typeof t != "object" || !t)
3501
3828
  return t;
3502
3829
  var i = t[Symbol.toPrimitive];
@@ -3508,18 +3835,18 @@ function qr(t, e) {
3508
3835
  }
3509
3836
  return (e === "string" ? String : Number)(t);
3510
3837
  }
3511
- class no extends Error {
3838
+ class go extends Error {
3512
3839
  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;
3840
+ super(e), re(this, "name", void 0), re(this, "message", void 0), re(this, "errMsg", void 0), re(this, "code", void 0), re(this, "data", void 0), re(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3514
3841
  }
3515
3842
  }
3516
3843
  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
3844
+ P as AFVWrappedError,
3845
+ _n as GoogleAdSenseProvider,
3846
+ Yr as GoogleIMAProvider,
3847
+ yo as JoliboxAdsForGame,
3848
+ _o as JoliboxAdsForVideo,
3849
+ Or as OKSpinForGameProvider,
3850
+ Zr as OKSpinForVideoProvider,
3851
+ go as ResponseError
3525
3852
  };