@jolibox/ads 1.1.47 → 1.1.48

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