@streamlayer/sdk-web 1.6.1 → 1.6.3

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/lib/es/index.js CHANGED
@@ -1,50 +1,50 @@
1
- import { pino as bi } from "pino";
2
- import { QuestionType as C, QuestionStatus as J, PromotionType as re, NotificationEnabled as Rr, SilenceSetting as vi } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { pino as vi } from "pino";
2
+ import { QuestionType as C, QuestionStatus as X, PromotionType as W, NotificationEnabled as Vr, SilenceSetting as Si } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
3
3
  import { PickHistoryStatus as ct } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
4
4
  import { SdkOverlayType as D } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
5
- import { InvitationCategory as Vr, InvitationFrom as $r } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
6
- import { computed as Si, map as wi, atom as Lt, batched as Mr, onMount as br } from "nanostores";
7
- import { nanoid as nr } from "nanoid";
8
- import { ConnectError as tt, Code as se, createContextKey as jr, createPromiseClient as Br, createContextValues as Ai } from "@connectrpc/connect";
9
- import { createGrpcWebTransport as Ur } from "@connectrpc/connect-web";
10
- import { nanoquery as qr } from "@nanostores/query";
11
- import { Events as En } from "@streamlayer/sl-eslib/sports/events/events_connect";
5
+ import { InvitationCategory as $r, InvitationFrom as Mr } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
6
+ import { computed as wi, map as Ai, atom as kt, batched as Br, onMount as vr } from "nanostores";
7
+ import { nanoid as ir } from "nanoid";
8
+ import { ConnectError as tt, Code as se, createContextKey as jr, createPromiseClient as Ur, createContextValues as Ei } from "@connectrpc/connect";
9
+ import { createGrpcWebTransport as qr } from "@connectrpc/connect-web";
10
+ import { nanoquery as xr } from "@nanostores/query";
11
+ import { Events as In } from "@streamlayer/sl-eslib/sports/events/events_connect";
12
12
  import { Client as nt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
13
- import { Users as vr } from "@streamlayer/sl-eslib/users/users_connect";
14
- import { Feed as Z } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as In } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
13
+ import { Users as Sr } from "@streamlayer/sl-eslib/users/users_connect";
14
+ import { Feed as ee } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
+ import { Leaderboard as Tn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
16
16
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
17
- import { LinksClient as Ei } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
18
- import { Kind as Q, TopicSubType as Ae, TopicType as x, PollOpenedFrom as ne, Category as z, ScreenOrientation as xr } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
- import { AnalyticsService as Tn } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
20
- import { InteractionActionType as Qr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
21
- import { NotificationKind as pe, NotificationType as Gr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
22
- function Ii(t) {
17
+ import { LinksClient as Ii } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
18
+ import { Kind as Q, TopicSubType as Ae, TopicType as x, PollOpenedFrom as ne, Category as z, ScreenOrientation as Qr } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
+ import { AnalyticsService as On } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
20
+ import { InteractionActionType as Gr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
21
+ import { NotificationKind as pe, NotificationType as Kr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
22
+ function Ti(t) {
23
23
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
24
24
  }
25
- var On = { exports: {} }, $ = On.exports = {}, ae, ue;
26
- function ir() {
25
+ var _n = { exports: {} }, $ = _n.exports = {}, ae, ue;
26
+ function or() {
27
27
  throw new Error("setTimeout has not been defined");
28
28
  }
29
- function or() {
29
+ function sr() {
30
30
  throw new Error("clearTimeout has not been defined");
31
31
  }
32
32
  (function() {
33
33
  try {
34
- typeof setTimeout == "function" ? ae = setTimeout : ae = ir;
34
+ typeof setTimeout == "function" ? ae = setTimeout : ae = or;
35
35
  } catch {
36
- ae = ir;
36
+ ae = or;
37
37
  }
38
38
  try {
39
- typeof clearTimeout == "function" ? ue = clearTimeout : ue = or;
39
+ typeof clearTimeout == "function" ? ue = clearTimeout : ue = sr;
40
40
  } catch {
41
- ue = or;
41
+ ue = sr;
42
42
  }
43
43
  })();
44
- function _n(t) {
44
+ function Cn(t) {
45
45
  if (ae === setTimeout)
46
46
  return setTimeout(t, 0);
47
- if ((ae === ir || !ae) && setTimeout)
47
+ if ((ae === or || !ae) && setTimeout)
48
48
  return ae = setTimeout, setTimeout(t, 0);
49
49
  try {
50
50
  return ae(t, 0);
@@ -56,10 +56,10 @@ function _n(t) {
56
56
  }
57
57
  }
58
58
  }
59
- function Ti(t) {
59
+ function Oi(t) {
60
60
  if (ue === clearTimeout)
61
61
  return clearTimeout(t);
62
- if ((ue === or || !ue) && clearTimeout)
62
+ if ((ue === sr || !ue) && clearTimeout)
63
63
  return ue = clearTimeout, clearTimeout(t);
64
64
  try {
65
65
  return ue(t);
@@ -71,20 +71,20 @@ function Ti(t) {
71
71
  }
72
72
  }
73
73
  }
74
- var be = [], xe = !1, _e, pt = -1;
75
- function Oi() {
76
- !xe || !_e || (xe = !1, _e.length ? be = _e.concat(be) : pt = -1, be.length && Cn());
74
+ var be = [], xe = !1, _e, ht = -1;
75
+ function _i() {
76
+ !xe || !_e || (xe = !1, _e.length ? be = _e.concat(be) : ht = -1, be.length && Ln());
77
77
  }
78
- function Cn() {
78
+ function Ln() {
79
79
  if (!xe) {
80
- var t = _n(Oi);
80
+ var t = Cn(_i);
81
81
  xe = !0;
82
82
  for (var e = be.length; e; ) {
83
- for (_e = be, be = []; ++pt < e; )
84
- _e && _e[pt].run();
85
- pt = -1, e = be.length;
83
+ for (_e = be, be = []; ++ht < e; )
84
+ _e && _e[ht].run();
85
+ ht = -1, e = be.length;
86
86
  }
87
- _e = null, xe = !1, Ti(t);
87
+ _e = null, xe = !1, Oi(t);
88
88
  }
89
89
  }
90
90
  $.nextTick = function(t) {
@@ -92,12 +92,12 @@ $.nextTick = function(t) {
92
92
  if (arguments.length > 1)
93
93
  for (var r = 1; r < arguments.length; r++)
94
94
  e[r - 1] = arguments[r];
95
- be.push(new Ln(t, e)), be.length === 1 && !xe && _n(Cn);
95
+ be.push(new kn(t, e)), be.length === 1 && !xe && Cn(Ln);
96
96
  };
97
- function Ln(t, e) {
97
+ function kn(t, e) {
98
98
  this.fun = t, this.array = e;
99
99
  }
100
- Ln.prototype.run = function() {
100
+ kn.prototype.run = function() {
101
101
  this.fun.apply(null, this.array);
102
102
  };
103
103
  $.title = "browser";
@@ -132,8 +132,8 @@ $.chdir = function(t) {
132
132
  $.umask = function() {
133
133
  return 0;
134
134
  };
135
- var _i = On.exports;
136
- const E = /* @__PURE__ */ Ii(_i), Ci = bi({
135
+ var Ci = _n.exports;
136
+ const E = /* @__PURE__ */ Ti(Ci), Li = vi({
137
137
  level: "trace",
138
138
  enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
139
139
  browser: {
@@ -141,23 +141,23 @@ const E = /* @__PURE__ */ Ii(_i), Ci = bi({
141
141
  console.log(t);
142
142
  }
143
143
  }
144
- }), Se = (t, e) => Ci.child({ name: t }, e);
145
- class Li extends Event {
144
+ }), Se = (t, e) => Li.child({ name: t }, e);
145
+ class ki extends Event {
146
146
  slEventBus;
147
147
  constructor(e, r) {
148
148
  super(e), this.slEventBus = r;
149
149
  }
150
150
  }
151
- const ki = Se("event-bus");
152
- class Pi {
151
+ const Pi = Se("event-bus");
152
+ class Ni {
153
153
  name;
154
154
  listeners;
155
155
  constructor(e = "sl-event-bus") {
156
156
  this.name = e, this.listeners = /* @__PURE__ */ new Set();
157
157
  }
158
158
  emit = (e, r) => {
159
- const n = new Li(this.name, { ...r, type: e });
160
- ki.debug(n, "Emitting event"), window.dispatchEvent(n);
159
+ const n = new ki(this.name, { ...r, type: e });
160
+ Pi.debug(n, "Emitting event"), window.dispatchEvent(n);
161
161
  };
162
162
  listen(e) {
163
163
  return window.addEventListener(this.name, e), this.listeners.add(e), () => {
@@ -173,10 +173,10 @@ class Pi {
173
173
  }), this.listeners.clear();
174
174
  };
175
175
  }
176
- class Ni {
176
+ class Fi {
177
177
  }
178
178
  window.slStore = /* @__PURE__ */ Object.create(null);
179
- class kt {
179
+ class Pt {
180
180
  /**
181
181
  * store instance (nanostores)
182
182
  */
@@ -192,23 +192,23 @@ class kt {
192
192
  return this.store;
193
193
  }
194
194
  }
195
- const Fi = (t) => {
195
+ const Di = (t) => {
196
196
  const e = Object.keys(t);
197
- return Si(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
197
+ return wi(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
198
198
  };
199
- class Ce extends kt {
199
+ class Ce extends Pt {
200
200
  getValues = () => this.getStore().get();
201
201
  getValue = (e) => this.getStore().get()[e];
202
202
  setValue = (e, r) => this.getStore().setKey(e, r);
203
203
  subscribe = (...e) => this.getStore().subscribe(...e);
204
204
  unsubscribe = () => this.getStore().off();
205
205
  }
206
- const W = (t) => wi(t);
206
+ const Y = (t) => Ai(t);
207
207
  var ye;
208
208
  (function(t) {
209
209
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
210
210
  })(ye || (ye = {}));
211
- const Di = {
211
+ const Ri = {
212
212
  [D.BETTING]: "betting",
213
213
  [D.GAMES]: "games",
214
214
  [D.PUBLIC_CHAT]: "publicChat",
@@ -218,7 +218,7 @@ var Xe;
218
218
  (function(t) {
219
219
  t.Ready = "ready", t.Suspended = "suspended";
220
220
  })(Xe || (Xe = {}));
221
- class kn {
221
+ class Pn {
222
222
  status;
223
223
  source;
224
224
  config;
@@ -226,7 +226,7 @@ class kn {
226
226
  listeners = /* @__PURE__ */ new Set();
227
227
  settingsKey;
228
228
  constructor({ settings: e, ...r }, n) {
229
- this.settingsKey = Di[r.type], this.status = Lt(Xe.Suspended), this.config = new Ce(W(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new Ce(W(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new Ce(W({}), `feature:settings:${this.settingsKey}`), this.source = n;
229
+ this.settingsKey = Ri[r.type], this.status = kt(Xe.Suspended), this.config = new Ce(Y(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new Ce(Y(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new Ce(Y({}), `feature:settings:${this.settingsKey}`), this.source = n;
230
230
  }
231
231
  get featureConfig() {
232
232
  return this.config.getStore();
@@ -268,7 +268,7 @@ class kn {
268
268
  }
269
269
  }
270
270
  }
271
- class X extends kt {
271
+ class Z extends Pt {
272
272
  getValue = () => this.getStore().get();
273
273
  getValues() {
274
274
  throw new Error("not implemented");
@@ -283,11 +283,11 @@ class X extends kt {
283
283
  return this.getStore().get();
284
284
  }
285
285
  }
286
- const j = (t) => Lt(t);
287
- class le extends kt {
286
+ const B = (t) => kt(t);
287
+ class le extends Pt {
288
288
  atomStore;
289
289
  constructor(e, r, n) {
290
- super(e, `api:${r}`), this.atomStore = Lt(), n && e.subscribe((i) => {
290
+ super(e, `api:${r}`), this.atomStore = kt(), n && e.subscribe((i) => {
291
291
  const o = this.atomStore.get(), s = n(i, o);
292
292
  o !== s && this.atomStore.set(s);
293
293
  });
@@ -315,10 +315,10 @@ class le extends kt {
315
315
  key = () => this.getStore().key;
316
316
  off = () => this.getStore().off();
317
317
  }
318
- const G = new Pi();
319
- async function* Ri(t, e) {
318
+ const G = new Ni();
319
+ async function* Vi(t, e) {
320
320
  for await (const r of e) {
321
- t.response.message = r, t.received_at = Date.now(), t.id = Pn++;
321
+ t.response.message = r, t.received_at = Date.now(), t.id = Nn++;
322
322
  const n = {
323
323
  type: "__GRPC_DEVTOOLS_EXTENSION__",
324
324
  data: t
@@ -326,10 +326,10 @@ async function* Ri(t, e) {
326
326
  window.postMessage(n), yield r;
327
327
  }
328
328
  }
329
- let Pn = 0;
330
- const Vi = () => (t) => async (e) => {
329
+ let Nn = 0;
330
+ const $i = () => (t) => async (e) => {
331
331
  const r = {
332
- id: Pn++,
332
+ id: Nn++,
333
333
  name: e.url,
334
334
  stream: e.stream,
335
335
  sent_at: Date.now(),
@@ -356,7 +356,7 @@ const Vi = () => (t) => async (e) => {
356
356
  };
357
357
  return window.postMessage(i), {
358
358
  ...n,
359
- message: Ri(r, n.message)
359
+ message: Vi(r, n.message)
360
360
  };
361
361
  } else {
362
362
  r.response.message = n.message, r.latency = r.received_at - r.sent_at;
@@ -380,7 +380,7 @@ const Vi = () => (t) => async (e) => {
380
380
  }
381
381
  };
382
382
  window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
383
- function Nn(t) {
383
+ function Fn(t) {
384
384
  return t instanceof DOMException && // everything except Firefox
385
385
  (t.code === 22 || // Firefox
386
386
  t.code === 1014 || // test name field too, because code might not be present
@@ -405,7 +405,7 @@ class He {
405
405
  try {
406
406
  this.storage.setItem(n, r);
407
407
  } catch (i) {
408
- Nn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
408
+ Fn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
409
409
  }
410
410
  };
411
411
  read = (...e) => {
@@ -416,11 +416,11 @@ class He {
416
416
  this.storage.removeItem(this.generateKey(e));
417
417
  };
418
418
  }
419
- var te;
419
+ var re;
420
420
  (function(t) {
421
421
  t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnect = "reconnect", t.Reconnecting = "reconnecting";
422
- })(te || (te = {}));
423
- class $i {
422
+ })(re || (re = {}));
423
+ class Mi {
424
424
  params;
425
425
  streamCancel;
426
426
  method;
@@ -434,19 +434,19 @@ class $i {
434
434
  attempt = 0;
435
435
  constructor(e, r, n, i) {
436
436
  const o = {
437
- status: te.Init,
437
+ status: re.Init,
438
438
  ts: /* @__PURE__ */ new Date(),
439
439
  log: []
440
440
  };
441
- this.state = new Ce(W(o), `subscription:${i.name}:state`), this.options = {
441
+ this.state = new Ce(Y(o), `subscription:${i.name}:state`), this.options = {
442
442
  ...i,
443
443
  reconnectDelay: i.reconnectDelay ?? 1e3,
444
444
  reconnectMaxDelay: i.reconnectMaxDelay ?? 3e4,
445
445
  reconnectMaxAttempts: i.reconnectMaxAttempts ?? 10,
446
446
  withStore: i.withStore ?? !1
447
- }, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = n, this.method = r, i.withStore && (this.store = new X(j(null), `subscription:${i.name}:store`)), "subscribe" in n && typeof n.subscribe == "function" && (this.paramsListener = n.subscribe((s) => {
448
- this.state.getValue("status") === te.Connected && (this.addStateLog(`params updated, reconnect => ${JSON.stringify(s)}`), this.reconnect());
449
- })), this.updateState(te.Ready);
447
+ }, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = n, this.method = r, i.withStore && (this.store = new Z(B(null), `subscription:${i.name}:store`)), "subscribe" in n && typeof n.subscribe == "function" && (this.paramsListener = n.subscribe((s) => {
448
+ this.state.getValue("status") === re.Connected && (this.addStateLog(`params updated, reconnect => ${JSON.stringify(s)}`), this.reconnect());
449
+ })), this.updateState(re.Ready);
450
450
  }
451
451
  updateState = (e) => {
452
452
  this.state.setValue("status", e), this.state.setValue("ts", /* @__PURE__ */ new Date()), this.addStateLog(`status => ${e}`);
@@ -458,7 +458,7 @@ class $i {
458
458
  window.sessionStorage.setItem("slstreamlogs", window.sessionStorage.getItem("slstreamlogs") + `
459
459
  ` + n);
460
460
  } catch (i) {
461
- Nn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
461
+ Fn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
462
462
  }
463
463
  };
464
464
  addListener = (e, r) => this.listeners.has(e) ? (this.addStateLog(`listener '${e}' not added, already exists`), () => {
@@ -467,7 +467,7 @@ class $i {
467
467
  this.listeners.delete(e), this.addStateLog(`listener '${e}' removed`);
468
468
  };
469
469
  connect = () => {
470
- this.updateState(te.Connecting), this.streamCancel && (this.addStateLog("disconnect prev connection"), this.streamCancel.abort(), this.streamCancel = void 0);
470
+ this.updateState(re.Connecting), this.streamCancel && (this.addStateLog("disconnect prev connection"), this.streamCancel.abort(), this.streamCancel = void 0);
471
471
  const e = "get" in this.params && typeof this.params.get == "function" ? this.params.get() : this.params;
472
472
  (async () => {
473
473
  this.streamCancel = new AbortController();
@@ -481,10 +481,10 @@ class $i {
481
481
  } catch (n) {
482
482
  n instanceof tt && n.code != se.Canceled && this.onStreamError(n);
483
483
  }
484
- })(), this.updateState(te.Connected);
484
+ })(), this.updateState(re.Connected);
485
485
  };
486
486
  disconnect = () => {
487
- this.streamCancel && this.streamCancel.abort(), this.listeners.clear(), this.paramsListener?.(), clearTimeout(this.reconnectTimeout), this.reconnectTimeout = void 0, this.updateState(te.Disconnected);
487
+ this.streamCancel && this.streamCancel.abort(), this.listeners.clear(), this.paramsListener?.(), clearTimeout(this.reconnectTimeout), this.reconnectTimeout = void 0, this.updateState(re.Disconnected);
488
488
  };
489
489
  /**
490
490
  * Reconnect after delay, if not already reconnecting, otherwise do nothing
@@ -493,10 +493,10 @@ class $i {
493
493
  if (this.reconnectTimeout)
494
494
  this.addStateLog("already reconnecting");
495
495
  else if (this.attempt < this.options.reconnectMaxAttempts) {
496
- this.updateState(te.Reconnect);
496
+ this.updateState(re.Reconnect);
497
497
  const e = Math.min(this.options.reconnectMaxDelay, Math.pow(2, this.attempt) * this.options.reconnectDelay), r = Math.round(e * (1 + Math.random()) / 2);
498
498
  this.reconnectTimeout = setTimeout(() => {
499
- this.attempt++, this.updateState(te.Reconnecting), this.addStateLog(`reconnect attempt ${this.attempt} after ${r}ms`), this.connect(), this.reconnectTimeout = void 0;
499
+ this.attempt++, this.updateState(re.Reconnecting), this.addStateLog(`reconnect attempt ${this.attempt} after ${r}ms`), this.connect(), this.reconnectTimeout = void 0;
500
500
  }, r);
501
501
  } else
502
502
  this.addStateLog("max reconnect attempts reached"), this.disconnect();
@@ -520,14 +520,14 @@ class $i {
520
520
  onStreamError = (e) => {
521
521
  if (this.addStateLog(`error => ${e ? JSON.stringify(e) : "undefined"}}`), e !== void 0) {
522
522
  if (e instanceof tt && e.code !== se.Canceled) {
523
- this.updateState(te.Failed), this.state.setValue("error", e), this.reconnect();
523
+ this.updateState(re.Failed), this.state.setValue("error", e), this.reconnect();
524
524
  return;
525
525
  }
526
526
  this.disconnect();
527
527
  }
528
528
  };
529
529
  }
530
- const Mi = /* @__PURE__ */ new Set([
530
+ const Bi = /* @__PURE__ */ new Set([
531
531
  se.Unknown,
532
532
  se.Internal,
533
533
  se.DeadlineExceeded,
@@ -535,33 +535,33 @@ const Mi = /* @__PURE__ */ new Set([
535
535
  se.FailedPrecondition,
536
536
  se.Unavailable,
537
537
  se.DataLoss
538
- ]), Kr = Se("grpc:retry"), ji = (t) => async (e) => {
539
- const r = e.contextValues.get(sr.retryAttempts), n = 300, i = e.contextValues.get(sr.retryDelay);
538
+ ]), zr = Se("grpc:retry"), ji = (t) => async (e) => {
539
+ const r = e.contextValues.get(ar.retryAttempts), n = 300, i = e.contextValues.get(ar.retryDelay);
540
540
  if (e.stream || r === 0)
541
541
  return t(e);
542
- Kr.trace({ url: e.url, attempts: r, maxDelay: i }, "retry options");
542
+ zr.trace({ url: e.url, attempts: r, maxDelay: i }, "retry options");
543
543
  for (let o = 0; ; o++)
544
544
  try {
545
545
  return await t(e);
546
546
  } catch (s) {
547
- Kr.trace({ attempt: o, error: s }, "retry attempt");
547
+ zr.trace({ attempt: o, error: s }, "retry attempt");
548
548
  const a = tt.from(s);
549
- if (o >= r || !(a instanceof tt) || !Mi.has(a.code))
549
+ if (o >= r || !(a instanceof tt) || !Bi.has(a.code))
550
550
  throw s;
551
551
  const u = Math.min(i, Math.pow(2, o) * n), l = Math.round(u * (1 + Math.random()) / 2);
552
552
  await new Promise((c) => setTimeout(c, l));
553
553
  }
554
- }, sr = {
554
+ }, ar = {
555
555
  retryAttempts: jr(10, { description: "Number of attempts to retry" }),
556
556
  retryDelay: jr(3e4, { description: "Max delay between retries in milliseconds" })
557
- }, Bi = () => {
557
+ }, Ui = () => {
558
558
  const t = localStorage.getItem("sl-device-id");
559
559
  if (t)
560
560
  return t;
561
- const e = nr();
561
+ const e = ir();
562
562
  return localStorage.setItem("sl-device-id", e), e;
563
- }, Ui = () => navigator.userAgentData?.platform || navigator.platform;
564
- class zr {
563
+ }, qi = () => navigator.userAgentData?.platform || navigator.platform;
564
+ class Hr {
565
565
  toJsonOptions = {
566
566
  emitDefaultValues: !1,
567
567
  enumAsInteger: !0,
@@ -580,20 +580,20 @@ class zr {
580
580
  subscriptions;
581
581
  opts;
582
582
  constructor(e, r) {
583
- this.host = e, this.opts = r, this.$headers = new Ce(W({
584
- "sl-device-id": Bi(),
585
- "sl-device-os": Ui()
583
+ this.host = e, this.opts = r, this.$headers = new Ce(Y({
584
+ "sl-device-id": Ui(),
585
+ "sl-device-os": qi()
586
586
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
587
- const [n, i, o] = qr({
587
+ const [n, i, o] = xr({
588
588
  dedupeTime: r?.dedupeTime,
589
589
  refetchInterval: r?.refetchInterval
590
590
  });
591
- this.nanoquery = { createFetcherStore: n, createMutatorStore: i, utils: o }, this.transport = Ur({
591
+ this.nanoquery = { createFetcherStore: n, createMutatorStore: i, utils: o }, this.transport = qr({
592
592
  baseUrl: e,
593
593
  defaultTimeoutMs: 1e4,
594
594
  interceptors: this.interceptors
595
595
  // useBinaryFormat: true,
596
- }), this.streamTransport = Ur({
596
+ }), this.streamTransport = qr({
597
597
  baseUrl: e,
598
598
  interceptors: this.interceptors
599
599
  // useBinaryFormat: true,
@@ -606,7 +606,7 @@ class zr {
606
606
  const i = this.subscriptions.get(r);
607
607
  if (i)
608
608
  return i;
609
- const o = new $i(this.$headers, e, r, n);
609
+ const o = new Mi(this.$headers, e, r, n);
610
610
  return this.subscriptions.set(r, o), o;
611
611
  };
612
612
  removeSubscription = (e) => {
@@ -617,7 +617,7 @@ class zr {
617
617
  for (const [i, o] of this.subscriptions)
618
618
  o.disconnect(), this.subscriptions.delete(i);
619
619
  this.clients.clear(), this.streamClients.clear(), this.subscriptions.clear();
620
- const [e, r, n] = qr({
620
+ const [e, r, n] = xr({
621
621
  dedupeTime: this.opts?.dedupeTime,
622
622
  refetchInterval: this.opts?.refetchInterval
623
623
  });
@@ -633,14 +633,14 @@ class zr {
633
633
  const r = e.typeName;
634
634
  if (this.clients.has(r))
635
635
  return this.clients.get(r);
636
- const n = Br(e, this.transport);
636
+ const n = Ur(e, this.transport);
637
637
  return this.clients.set(r, n), n;
638
638
  };
639
639
  getStreamClient = (e) => {
640
640
  const r = `stream-${e.typeName}`;
641
641
  if (this.clients.has(r))
642
642
  return this.clients.get(r);
643
- const n = Br(e, this.streamTransport);
643
+ const n = Ur(e, this.streamTransport);
644
644
  return this.clients.set(r, n), n;
645
645
  };
646
646
  // create unary client, used for query request
@@ -651,9 +651,9 @@ class zr {
651
651
  ...Array.isArray(r) ? r : [r]
652
652
  ], a = [e.typeName, o.charAt(0).toLowerCase() + o.slice(1)];
653
653
  return { client: i, createRequestOptions: (l) => {
654
- const c = Ai();
654
+ const c = Ei();
655
655
  for (const f in l) {
656
- const p = sr[f];
656
+ const p = ar[f];
657
657
  c.set(p, l[f]);
658
658
  }
659
659
  return c;
@@ -679,11 +679,11 @@ class zr {
679
679
  n.header.set(o, i[o]);
680
680
  return r(n);
681
681
  };
682
- this.interceptors.push(e), this.interceptors.push(Vi()), this.opts?.retryable && this.interceptors.push(ji);
682
+ this.interceptors.push(e), this.interceptors.push($i()), this.opts?.retryable && this.interceptors.push(ji);
683
683
  };
684
684
  }
685
- const qi = (t, e) => {
686
- const { client: r, queryKey: n } = e.createPromiseClient(En, {
685
+ const xi = (t, e) => {
686
+ const { client: r, queryKey: n } = e.createPromiseClient(In, {
687
687
  method: "retrieveEventId",
688
688
  params: [t]
689
689
  });
@@ -700,7 +700,7 @@ const qi = (t, e) => {
700
700
  }
701
701
  }
702
702
  });
703
- }, xi = (t, e) => {
703
+ }, Qi = (t, e) => {
704
704
  const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "getStream", params: [t] });
705
705
  return e.nanoquery.createFetcherStore(n, {
706
706
  fetcher: async (i, o, s) => s ? (await r.getStream({
@@ -708,30 +708,30 @@ const qi = (t, e) => {
708
708
  // we are sure that id is a string
709
709
  })).data?.attributes : void 0
710
710
  });
711
- }, Qi = (t, e) => {
712
- const { client: r, queryKey: n } = e.createPromiseClient(En, { method: "summary", params: [t] });
711
+ }, Gi = (t, e) => {
712
+ const { client: r, queryKey: n } = e.createPromiseClient(In, { method: "summary", params: [t] });
713
713
  return e.nanoquery.createFetcherStore(n, {
714
714
  fetcher: async (i, o, s) => s ? (await r.summary({
715
715
  id: s
716
716
  })).data?.attributes : void 0
717
717
  });
718
- }, Gi = (t, e) => {
719
- const { queryKey: r, client: n } = e.createPromiseClient(vr, { method: "me", params: [t] });
718
+ }, Ki = (t, e) => {
719
+ const { queryKey: r, client: n } = e.createPromiseClient(Sr, { method: "me", params: [t] });
720
720
  return e.nanoquery.createFetcherStore(r, {
721
721
  fetcher: async () => {
722
722
  const { data: i } = await n.me({});
723
723
  return { data: i };
724
724
  }
725
725
  });
726
- }, Ki = (t) => {
727
- const { client: e, createRequestOptions: r } = t.createPromiseClient(vr, { method: "bypassAuth" }), n = r({ retryAttempts: 0 });
726
+ }, zi = (t) => {
727
+ const { client: e, createRequestOptions: r } = t.createPromiseClient(Sr, { method: "bypassAuth" }), n = r({ retryAttempts: 0 });
728
728
  return ({ userKey: i, schema: o, init: s, inviterKey: a }) => e.bypassAuth({ userKey: i, schema: o, init: s, inviterKey: a }, { contextValues: n });
729
- }, zi = (t, e) => {
729
+ }, Hi = (t, e) => {
730
730
  const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "get", params: [t] });
731
731
  return e.nanoquery.createFetcherStore(n, {
732
732
  fetcher: async () => (await r.get({})).data?.attributes
733
733
  });
734
- }, Hi = (t, e) => {
734
+ }, Wi = (t, e) => {
735
735
  const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "getOrganization", params: [t] });
736
736
  return e.nanoquery.createFetcherStore(n, {
737
737
  fetcher: async () => {
@@ -742,7 +742,7 @@ const qi = (t, e) => {
742
742
  } : void 0;
743
743
  }
744
744
  });
745
- }, Wi = (t, e) => {
745
+ }, Yi = (t, e) => {
746
746
  const { client: r, queryKey: n } = e.createPromiseClient(nt, {
747
747
  method: "getOrganizationAdvertising",
748
748
  params: [t]
@@ -750,12 +750,12 @@ const qi = (t, e) => {
750
750
  return e.nanoquery.createFetcherStore(n, {
751
751
  fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
752
752
  });
753
- }, Yi = (t, e, r) => {
754
- t.transport = new zr(e.host, {
753
+ }, Ji = (t, e, r) => {
754
+ t.transport = new Hr(e.host, {
755
755
  dedupeTime: 1e3 * 60 * 5,
756
756
  refetchInterval: 1e3 * 60 * 5,
757
757
  retryable: !0
758
- }), t.analyticsTransport = new zr(e.analyticsHost), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), t.transport.setHeader("sl-sdk-version", e.version || "-"), t.transport.$headers.subscribe((n) => {
758
+ }), t.analyticsTransport = new Hr(e.analyticsHost), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), t.transport.setHeader("sl-sdk-version", e.version || "-"), t.transport.$headers.subscribe((n) => {
759
759
  t.analyticsTransport.$headers.getStore().set(n);
760
760
  }), t.sdk.onMount({ name: "transport" }, () => () => {
761
761
  t.transport.disconnect(), t.analyticsTransport.disconnect();
@@ -765,7 +765,7 @@ var he;
765
765
  (function(t) {
766
766
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
767
767
  })(he || (he = {}));
768
- class Be extends He {
768
+ class je extends He {
769
769
  constructor() {
770
770
  super("user");
771
771
  }
@@ -792,19 +792,19 @@ var me;
792
792
  (function(t) {
793
793
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
794
794
  })(me || (me = {}));
795
- const Ji = (t) => {
796
- const e = new Be(), r = new X(j(e.getExternalToken()), "userKey"), n = new X(j(e.getToken()), "userToken"), i = new le(Gi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, l) => {
795
+ const Xi = (t) => {
796
+ const e = new je(), r = new Z(B(e.getExternalToken()), "userKey"), n = new Z(B(e.getToken()), "userToken"), i = new le(Ki(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, l) => {
797
797
  if (!a)
798
798
  return s?.data?.id ? s.data.id : u === !1 ? void 0 : l;
799
- }), o = new le(zi(n.getStore(), t), "userSettings");
799
+ }), o = new le(Hi(n.getStore(), t), "userSettings");
800
800
  return {
801
801
  userKey: r,
802
802
  userToken: n,
803
803
  user: i,
804
804
  userSettings: o
805
805
  };
806
- }, Xi = (t) => {
807
- const e = new X(j(void 0), "providerStreamId"), r = new le(qi(e.getStore(), t), "slStreamId", (o) => o?.data), n = new le(xi(r.getAtomStore(), t), "streamSettings"), i = new le(Qi(r.getAtomStore(), t), "streamSettings");
806
+ }, Zi = (t) => {
807
+ const e = new Z(B(void 0), "providerStreamId"), r = new le(xi(e.getStore(), t), "slStreamId", (o) => o?.data), n = new le(Qi(r.getAtomStore(), t), "streamSettings"), i = new le(Gi(r.getAtomStore(), t), "streamSettings");
808
808
  return r.getAtomStore().listen((o) => {
809
809
  (o === "" || o === void 0) && (n.getStore().mutate(void 0), i.getStore().mutate(void 0));
810
810
  }), {
@@ -813,8 +813,8 @@ const Ji = (t) => {
813
813
  streamSettings: n,
814
814
  streamSummary: i
815
815
  };
816
- }, Zi = (t) => {
817
- const e = new X(j(void 0), "enabled"), r = new X(j(me.DISABLED), "status"), n = new le(Hi(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new le(Wi(n.getAtomStore(), t), "organizationAdvertising"), o = Ji(t), s = Xi(t);
816
+ }, eo = (t) => {
817
+ const e = new Z(B(void 0), "enabled"), r = new Z(B(me.DISABLED), "status"), n = new le(Wi(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new le(Yi(n.getAtomStore(), t), "organizationAdvertising"), o = Xi(t), s = Zi(t);
818
818
  return {
819
819
  enabled: e,
820
820
  status: r,
@@ -830,10 +830,10 @@ const Ji = (t) => {
830
830
  organizationAdvertising: i
831
831
  };
832
832
  };
833
- class eo extends kt {
833
+ class to extends Pt {
834
834
  stores;
835
835
  constructor(e) {
836
- const r = Zi(e), n = Fi(r);
836
+ const r = eo(e), n = Di(r);
837
837
  super(n, "core"), this.stores = r;
838
838
  }
839
839
  getValue() {
@@ -854,18 +854,18 @@ class eo extends kt {
854
854
  };
855
855
  unsubscribe = () => this.getStore().off();
856
856
  }
857
- const to = (t, e, r) => {
858
- t.store = new eo(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([n, i]) => [n, i.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.sdk.streamSummary = () => t.stores.streamSummary.getStore(), t.storeUnsubscribe = () => {
857
+ const ro = (t, e, r) => {
858
+ t.store = new to(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([n, i]) => [n, i.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.sdk.streamSummary = () => t.stores.streamSummary.getStore(), t.storeUnsubscribe = () => {
859
859
  t.store.unsubscribe();
860
860
  }, r();
861
- }, ro = (t) => {
862
- const { client: e } = t.createPromiseClient(In, { method: "list" });
861
+ }, no = (t) => {
862
+ const { client: e } = t.createPromiseClient(Tn, { method: "list" });
863
863
  return (r) => e.list(r);
864
- }, Fn = (t) => {
865
- const { client: e } = t.createPromiseClient(In, { method: "summary" });
864
+ }, Dn = (t) => {
865
+ const { client: e } = t.createPromiseClient(Tn, { method: "summary" });
866
866
  return (r) => e.summary(r);
867
- }, no = (t, e) => {
868
- const { client: r, queryKey: n } = e.createPromiseClient(vr, {
867
+ }, io = (t, e) => {
868
+ const { client: r, queryKey: n } = e.createPromiseClient(Sr, {
869
869
  method: "getFriends",
870
870
  params: [t]
871
871
  });
@@ -880,8 +880,8 @@ const to = (t, e, r) => {
880
880
  }
881
881
  }
882
882
  });
883
- }, io = (t, e) => {
884
- const { client: r, queryKey: n } = e.createPromiseClient(Z, { method: "get", params: [t] });
883
+ }, oo = (t, e) => {
884
+ const { client: r, queryKey: n } = e.createPromiseClient(ee, { method: "get", params: [t] });
885
885
  return e.nanoquery.createFetcherStore(n, {
886
886
  fetcher: async (i, o, s) => (await r.get({
887
887
  eventId: s
@@ -889,8 +889,8 @@ const to = (t, e, r) => {
889
889
  refetchInterval: 0,
890
890
  dedupeTime: 1e3 * 60 * 60
891
891
  });
892
- }, oo = (t, e) => {
893
- const { client: r, queryKey: n } = e.createPromiseClient(Z, { method: "syncQuestion", params: [t] });
892
+ }, so = (t, e) => {
893
+ const { client: r, queryKey: n } = e.createPromiseClient(ee, { method: "syncQuestion", params: [t] });
894
894
  return e.nanoquery.createFetcherStore(n, {
895
895
  fetcher: async (i, o, s) => {
896
896
  if (!s)
@@ -907,44 +907,44 @@ const to = (t, e, r) => {
907
907
  // 10 minutes
908
908
  refetchInterval: 0
909
909
  });
910
- }, so = async (t, e) => {
911
- const { client: r } = e.createPromiseClient(Z, { method: "item", params: [t] });
910
+ }, ao = async (t, e) => {
911
+ const { client: r } = e.createPromiseClient(ee, { method: "item", params: [t] });
912
912
  return (await r.item({
913
913
  id: t
914
914
  })).data;
915
- }, ao = (t, e) => {
916
- const { client: r } = e.createStreamClient(Z), n = Lt({ eventId: t.get() || "", feedId: "" });
915
+ }, uo = (t, e) => {
916
+ const { client: r } = e.createStreamClient(ee), n = kt({ eventId: t.get() || "", feedId: "" });
917
917
  return t.subscribe((o = "") => {
918
918
  n.set({ eventId: o, feedId: "" });
919
919
  }), e.addSubscription(r.subscription, n, { name: "feedSubscription" });
920
- }, uo = (t, e) => {
921
- const { client: r } = e.createStreamClient(Z);
920
+ }, co = (t, e) => {
921
+ const { client: r } = e.createStreamClient(ee);
922
922
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
923
- }, co = async (t, e) => {
924
- const { client: r } = e.createPromiseClient(Z, { method: "questionByUser", params: [t] });
923
+ }, lo = async (t, e) => {
924
+ const { client: r } = e.createPromiseClient(ee, { method: "questionByUser", params: [t] });
925
925
  return (await r.questionByUser({
926
926
  questionId: t
927
927
  })).data?.attributes?.question;
928
- }, ar = (t, e) => {
929
- const { client: r, queryKey: n } = e.createPromiseClient(Z, { method: "questionByUser", params: [t] });
928
+ }, ur = (t, e) => {
929
+ const { client: r, queryKey: n } = e.createPromiseClient(ee, { method: "questionByUser", params: [t] });
930
930
  return e.nanoquery.createFetcherStore(n, {
931
931
  fetcher: async (i, o, s) => (await r.questionByUser({
932
932
  questionId: s
933
933
  })).data?.attributes?.question,
934
934
  dedupeTime: 1e3 * 60 * 5
935
935
  });
936
- }, Dn = async (t, e) => {
936
+ }, Rn = async (t, e) => {
937
937
  if (!t)
938
938
  return;
939
- const { client: r } = e.createPromiseClient(Z, { method: "getQuestion", params: [t] }), n = await r.getQuestion({
939
+ const { client: r } = e.createPromiseClient(ee, { method: "getQuestion", params: [t] }), n = await r.getQuestion({
940
940
  id: t
941
941
  });
942
942
  if (!n.data?.attributes)
943
943
  return;
944
944
  const { options: i, notification: o, ...s } = n.data.attributes, a = i?.options.case === "promotion" ? i?.options.value : void 0;
945
945
  return { id: s.id, question: s, promotion: a, notification: o };
946
- }, lo = (t, e, r) => {
947
- const { client: n, queryKey: i } = r.createPromiseClient(Z, {
946
+ }, fo = (t, e, r) => {
947
+ const { client: n, queryKey: i } = r.createPromiseClient(ee, {
948
948
  method: "list",
949
949
  params: [t, e]
950
950
  });
@@ -953,14 +953,14 @@ const to = (t, e, r) => {
953
953
  eventId: a,
954
954
  filter: {
955
955
  types: u === Le.ALLOWED ? [] : [C.FACTOID, C.PROMOTION, C.TWEET],
956
- statuses: [J.ACTIVE, J.RESOLVED]
956
+ statuses: [X.ACTIVE, X.RESOLVED]
957
957
  }
958
958
  })).data : [],
959
959
  dedupeTime: 0,
960
960
  refetchInterval: 0
961
961
  });
962
- }, fo = (t, e) => {
963
- const { client: r, queryKey: n } = e.createPromiseClient(Z, {
962
+ }, po = (t, e) => {
963
+ const { client: r, queryKey: n } = e.createPromiseClient(ee, {
964
964
  method: "list",
965
965
  params: [t]
966
966
  });
@@ -972,7 +972,7 @@ const to = (t, e, r) => {
972
972
  eventId: s,
973
973
  filter: {
974
974
  types: [C.PROMOTION],
975
- statuses: [J.ACTIVE]
975
+ statuses: [X.ACTIVE]
976
976
  },
977
977
  pagination: {
978
978
  page: 0,
@@ -980,19 +980,19 @@ const to = (t, e, r) => {
980
980
  }
981
981
  })).data?.[0];
982
982
  if (u.type === "promotion")
983
- return Dn(u.id, e);
983
+ return Rn(u.id, e);
984
984
  },
985
985
  dedupeTime: 0,
986
986
  refetchInterval: 0
987
987
  });
988
- }, po = (t, e, r) => {
989
- const n = Mr([e, r], () => {
988
+ }, ho = (t, e, r) => {
989
+ const n = Br([e, r], () => {
990
990
  const a = e.get();
991
991
  if (!a)
992
992
  return;
993
993
  const u = r.get().data?.find((c) => c.id === a?.questionId), l = a?.question?.openedFrom;
994
994
  return u ? (u.openedFrom = l, u) : a.question;
995
- }), i = Mr(n, (a) => a && a.type === "question" ? a.id : void 0), o = ar(i, t);
995
+ }), i = Br(n, (a) => a && a.type === "question" ? a.id : void 0), o = ur(i, t);
996
996
  return { $store: n, $extendedStore: o, updateExtendedQuestion: (a) => {
997
997
  const u = o.get().data, l = (c, f) => {
998
998
  if (!c || !f)
@@ -1017,20 +1017,20 @@ const to = (t, e, r) => {
1017
1017
  });
1018
1018
  } };
1019
1019
  };
1020
- var St;
1020
+ var wt;
1021
1021
  (function(t) {
1022
1022
  t.SHOWED = "showed";
1023
- })(St || (St = {}));
1024
- class ho extends He {
1023
+ })(wt || (wt = {}));
1024
+ class yo extends He {
1025
1025
  constructor() {
1026
1026
  super("advertisement");
1027
1027
  }
1028
1028
  setShowed = (e) => {
1029
- this.write(St.SHOWED, e, "true");
1029
+ this.write(wt.SHOWED, e, "true");
1030
1030
  };
1031
- isViewed = (e) => this.read(St.SHOWED, e);
1031
+ isViewed = (e) => this.read(wt.SHOWED, e);
1032
1032
  }
1033
- const yo = (t) => {
1033
+ const mo = (t) => {
1034
1034
  const e = t.data?.attributes?.question;
1035
1035
  if ((t.data?.attributes?.feedItem?.type === "promotion" ? t.data.attributes.feedItem : void 0) === void 0 || !e)
1036
1036
  return;
@@ -1041,7 +1041,7 @@ const yo = (t) => {
1041
1041
  notification: i,
1042
1042
  promotion: s
1043
1043
  };
1044
- }, lt = (t) => t.startsWith("http://") || t.startsWith("https://") ? new URL(t).toString() : t, mo = ({ gamOptions: t, gamBaseUrl: e }) => {
1044
+ }, lt = (t) => t.startsWith("http://") || t.startsWith("https://") ? new URL(t).toString() : t, go = ({ gamOptions: t, gamBaseUrl: e }) => {
1045
1045
  const r = `${e}?`, n = [];
1046
1046
  for (const i in t) {
1047
1047
  const o = i.replace(/([a-zA-Z])(?=[A-Z])/g, "$1_").toLowerCase(), s = t[i];
@@ -1056,16 +1056,17 @@ const yo = (t) => {
1056
1056
  }
1057
1057
  }
1058
1058
  return r + n.join("&");
1059
- }, go = (t, e, r) => {
1059
+ }, dt = (t) => (t?.promotion?.type === W.INGAME_IAB11_LBAR || t?.promotion?.type === W.INGAME_IAB21_LBAR) && !!t.promotion.additionalBanner?.imageUrl, bo = (t, e, r) => {
1060
1060
  let n = !1;
1061
- const i = r.transport, o = Se("advertisement"), s = new ho(), a = W({}), u = fo(t, i), l = () => {
1061
+ const i = r.transport, o = Se("advertisement"), s = new yo(), a = Y({}), u = po(t, i), l = () => {
1062
1062
  a.setKey("hasNotification", !1);
1063
1063
  const b = a.get(), g = b.data?.question.id, S = b.data?.promotion?.type;
1064
1064
  g && G.emit("advertisement", {
1065
1065
  action: "notification-opened",
1066
1066
  payload: {
1067
1067
  id: g,
1068
- type: S
1068
+ type: S,
1069
+ hasBanner: dt(b.data)
1069
1070
  }
1070
1071
  });
1071
1072
  }, c = () => {
@@ -1074,7 +1075,8 @@ const yo = (t) => {
1074
1075
  action: "opened",
1075
1076
  payload: {
1076
1077
  id: g,
1077
- type: S
1078
+ type: S,
1079
+ hasBanner: dt(b.data)
1078
1080
  }
1079
1081
  }));
1080
1082
  }, f = (b, g) => {
@@ -1082,15 +1084,15 @@ const yo = (t) => {
1082
1084
  loading: !1,
1083
1085
  error: void 0,
1084
1086
  data: g,
1085
- hasNotification: g?.notification?.enabled === Rr.NOTIFICATION_ENABLED,
1087
+ hasNotification: g?.notification?.enabled === Vr.NOTIFICATION_ENABLED,
1086
1088
  close: () => p(g.question.id),
1087
1089
  togglePause: (S) => v(g.question.id, S),
1088
1090
  isViewed: !!s.isViewed(g.question.id)
1089
- }) : (a.setKey("loading", !0), Dn(b, i).then((S) => a.set({
1091
+ }) : (a.setKey("loading", !0), Rn(b, i).then((S) => a.set({
1090
1092
  loading: !1,
1091
1093
  error: void 0,
1092
1094
  data: S,
1093
- hasNotification: S?.notification?.enabled === Rr.NOTIFICATION_ENABLED,
1095
+ hasNotification: S?.notification?.enabled === Vr.NOTIFICATION_ENABLED,
1094
1096
  close: () => p(S?.question.id),
1095
1097
  togglePause: (R) => v(S?.question.id, R),
1096
1098
  isViewed: S && !!s.isViewed(S.question.id)
@@ -1102,8 +1104,8 @@ const yo = (t) => {
1102
1104
  };
1103
1105
  a.subscribe((b, g) => {
1104
1106
  if (!(b.data?.id === g?.data?.id && b.isPaused !== g?.isPaused)) {
1105
- if (b.data?.promotion?.type === re.EXTERNAL_AD && !b?.externalAd && b.data.promotion.adCampaigns?.gamOptions && b.data.promotion.adCampaigns?.gamBaseUrl) {
1106
- const S = mo(b.data.promotion.adCampaigns);
1107
+ if (b.data?.promotion?.type === W.EXTERNAL_AD && !b?.externalAd && b.data.promotion.adCampaigns?.gamOptions && b.data.promotion.adCampaigns?.gamBaseUrl) {
1108
+ const S = go(b.data.promotion.adCampaigns);
1107
1109
  a.setKey("externalAd", { type: "gam", url: S });
1108
1110
  }
1109
1111
  b.data?.promotion && !b.isOpened && G.emit("advertisement", {
@@ -1112,6 +1114,7 @@ const yo = (t) => {
1112
1114
  id: b.data.question.id,
1113
1115
  type: b.data.promotion.type,
1114
1116
  hasNotification: !!b.hasNotification,
1117
+ hasBanner: dt(b.data),
1115
1118
  isViewed: !!s.isViewed(b.data.question.id)
1116
1119
  },
1117
1120
  skipAnalytics: b.data.question.id === g?.data?.question.id
@@ -1121,6 +1124,7 @@ const yo = (t) => {
1121
1124
  id: g.data.question.id,
1122
1125
  type: g.data.promotion?.type,
1123
1126
  hasNotification: !!g.hasNotification,
1127
+ hasBanner: dt(g.data),
1124
1128
  isViewed: !!s.isViewed(g.data.question.id)
1125
1129
  }
1126
1130
  });
@@ -1135,13 +1139,13 @@ const yo = (t) => {
1135
1139
  n || (n = !0, u.subscribe((b, g) => {
1136
1140
  b.data && (!g?.data || b.data.id !== g.data.id) && f(b.data.question.id, b.data);
1137
1141
  }), e.addListener("promotion", (b) => {
1138
- const g = yo(b);
1142
+ const g = mo(b);
1139
1143
  if (g) {
1140
- if (g.question.status === J.RESOLVED) {
1144
+ if (g.question.status === X.RESOLVED) {
1141
1145
  p(g.question.id), o.debug({ promotion: g }, "resolved: %o");
1142
1146
  return;
1143
1147
  }
1144
- if (g.question.status === J.ACTIVE) {
1148
+ if (g.question.status === X.ACTIVE) {
1145
1149
  o.debug({ promotion: g }, "active: %o"), f(g.question.id, g);
1146
1150
  return;
1147
1151
  }
@@ -1154,7 +1158,7 @@ var Le;
1154
1158
  (function(t) {
1155
1159
  t.ALLOWED = "allowed", t.DISALLOWED = "disallowed";
1156
1160
  })(Le || (Le = {}));
1157
- class bo {
1161
+ class vo {
1158
1162
  /** sl event id */
1159
1163
  slStreamId;
1160
1164
  /** organization id */
@@ -1187,14 +1191,14 @@ class bo {
1187
1191
  transport;
1188
1192
  cancels = /* @__PURE__ */ new Set();
1189
1193
  constructor(e) {
1190
- this.transport = e.transport, this.log = Se("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new X(j(void 0), "moderationId").getStore(), this.interactiveAllowed = new X(j(Le.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new X(j(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new le(io(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new le(lo(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = oo(this.slStreamId, e.transport), this.openedQuestion = po(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
1191
- this.log.debug({ item: r }, "received question"), r?.questionId ? (this.questionSubscription = uo(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (n) => {
1194
+ this.transport = e.transport, this.log = Se("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new Z(B(void 0), "moderationId").getStore(), this.interactiveAllowed = new Z(B(Le.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Z(B(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new le(oo(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new le(fo(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = so(this.slStreamId, e.transport), this.openedQuestion = ho(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
1195
+ this.log.debug({ item: r }, "received question"), r?.questionId ? (this.questionSubscription = co(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (n) => {
1192
1196
  this.openedQuestion.updateExtendedQuestion(n.data?.attributes?.question);
1193
1197
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1194
- })), this.feedSubscription = ao(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1198
+ })), this.feedSubscription = uo(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1195
1199
  const n = this.activeQuestionId.get().data?.question?.id, i = r.data?.attributes?.question;
1196
1200
  if (!(!i || i.type === C.PROMOTION)) {
1197
- if (i.status === J.RESOLVED) {
1201
+ if (i.status === X.RESOLVED) {
1198
1202
  n === i.id && this.activeQuestionId.mutate(void 0);
1199
1203
  return;
1200
1204
  }
@@ -1234,7 +1238,7 @@ class bo {
1234
1238
  this.activeQuestionId.off();
1235
1239
  for (const r of this.cancels)
1236
1240
  r(), this.cancels.delete(r);
1237
- }), this.advertisement = go(this.slStreamId, this.feedSubscription, e);
1241
+ }), this.advertisement = bo(this.slStreamId, this.feedSubscription, e);
1238
1242
  }
1239
1243
  /**
1240
1244
  * Get id for notifications and link with current session
@@ -1264,7 +1268,7 @@ class bo {
1264
1268
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1265
1269
  };
1266
1270
  }
1267
- class vo {
1271
+ class So {
1268
1272
  notificationsList;
1269
1273
  store;
1270
1274
  timeouts;
@@ -1273,7 +1277,7 @@ class vo {
1273
1277
  options;
1274
1278
  logger;
1275
1279
  constructor(e) {
1276
- this.options = e, this.logger = Se("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = j(/* @__PURE__ */ new Map());
1280
+ this.options = e, this.logger = Se("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notificationsList = B(/* @__PURE__ */ new Map());
1277
1281
  }
1278
1282
  addToQueue = (e) => {
1279
1283
  if (this.store.has(e.id)) {
@@ -1358,18 +1362,18 @@ class vo {
1358
1362
  this.store.clear(), this.timeouts.clear(), this.waitingQueue.clear(), this.activeQueue.clear(), this.notificationsList.off(), this.notificationsList.set(/* @__PURE__ */ new Map());
1359
1363
  };
1360
1364
  }
1361
- var wt;
1365
+ var At;
1362
1366
  (function(t) {
1363
1367
  t.OPENED = "opened";
1364
- })(wt || (wt = {}));
1365
- class So extends He {
1368
+ })(At || (At = {}));
1369
+ class wo extends He {
1366
1370
  constructor() {
1367
1371
  super("notification");
1368
1372
  }
1369
1373
  setOpened = (e) => {
1370
- this.write(wt.OPENED, e, "true");
1374
+ this.write(At.OPENED, e, "true");
1371
1375
  };
1372
- isOpened = (e) => this.read(wt.OPENED, e);
1376
+ isOpened = (e) => this.read(At.OPENED, e);
1373
1377
  clearNotification = () => {
1374
1378
  this.clear();
1375
1379
  };
@@ -1378,11 +1382,11 @@ var Ee;
1378
1382
  (function(t) {
1379
1383
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
1380
1384
  })(Ee || (Ee = {}));
1381
- class wo {
1385
+ class Ao {
1382
1386
  queue;
1383
1387
  storage;
1384
1388
  constructor(e = {}) {
1385
- this.storage = new So(), this.queue = new vo({ concurrency: 1, animationDelay: 1600, ...e });
1389
+ this.storage = new wo(), this.queue = new So({ concurrency: 1, animationDelay: 1600, ...e });
1386
1390
  }
1387
1391
  isViewed = (e) => this.storage.isOpened(e);
1388
1392
  add = (e) => {
@@ -1419,8 +1423,8 @@ class wo {
1419
1423
  this.storage.setOpened(e);
1420
1424
  };
1421
1425
  }
1422
- const Ao = (t, e, r) => {
1423
- t.notifications = new wo(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
1426
+ const Eo = (t, e, r) => {
1427
+ t.notifications = new Ao(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
1424
1428
  t.notifications.queue.drain();
1425
1429
  }), r();
1426
1430
  };
@@ -1428,22 +1432,22 @@ var rt;
1428
1432
  (function(t) {
1429
1433
  t.UNKNOWN = "unknown", t.ALREADY_VOTED = "already_voted";
1430
1434
  })(rt || (rt = {}));
1431
- const Eo = async (t, e) => {
1432
- const { client: r, createRequestOptions: n } = t.createPromiseClient(Z, { method: "submitAnswer" }), i = n({ retryAttempts: 0 });
1435
+ const Io = async (t, e) => {
1436
+ const { client: r, createRequestOptions: n } = t.createPromiseClient(ee, { method: "submitAnswer" }), i = n({ retryAttempts: 0 });
1433
1437
  try {
1434
1438
  return await r.submitAnswer({ data: e }, { contextValues: i });
1435
1439
  } catch (o) {
1436
1440
  throw tt.from(o)?.code === se.AlreadyExists ? new Error(rt.ALREADY_VOTED) : new Error(rt.UNKNOWN);
1437
1441
  }
1438
- }, Io = (t, e) => {
1439
- const { client: r, createRequestOptions: n } = t.createPromiseClient(Z, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
1442
+ }, To = (t, e) => {
1443
+ const { client: r, createRequestOptions: n } = t.createPromiseClient(ee, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
1440
1444
  return r.submitInplay({ data: { eventId: +e } }, { contextValues: i });
1441
1445
  };
1442
1446
  var Ue;
1443
1447
  (function(t) {
1444
1448
  t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io";
1445
1449
  })(Ue || (Ue = {}));
1446
- class To extends He {
1450
+ class Oo extends He {
1447
1451
  constructor() {
1448
1452
  super("gamification-session", window.sessionStorage);
1449
1453
  }
@@ -1452,10 +1456,10 @@ class To extends He {
1452
1456
  };
1453
1457
  readValue = (e) => this.read(...e);
1454
1458
  }
1455
- class Rn extends He {
1459
+ class Vn extends He {
1456
1460
  sessionStorage;
1457
1461
  constructor() {
1458
- super("gamification"), this.sessionStorage = new To();
1462
+ super("gamification"), this.sessionStorage = new Oo();
1459
1463
  }
1460
1464
  saveOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }, i) => {
1461
1465
  this.write(Ue.ONBOARDING, n, e, r, i);
@@ -1466,17 +1470,17 @@ class Rn extends He {
1466
1470
  };
1467
1471
  getOnboardingInstantOpen = ({ userId: e, eventId: r, organizationId: n }) => this.sessionStorage.readValue([Ue.ONBOARDING_IO, n, e, r]);
1468
1472
  }
1469
- const Oo = {
1473
+ const _o = {
1470
1474
  pageSize: 10
1471
- }, _o = (t, e, r, n, i) => {
1475
+ }, Co = (t, e, r, n, i) => {
1472
1476
  let o = 0;
1473
- const s = j({ pageSize: Oo.pageSize, page: 0 }), a = W({
1477
+ const s = B({ pageSize: _o.pageSize, page: 0 }), a = Y({
1474
1478
  data: [],
1475
1479
  key: Date.now(),
1476
1480
  hasMore: !0,
1477
1481
  loading: void 0,
1478
1482
  error: void 0
1479
- }), u = ro(t), l = async () => {
1483
+ }), u = no(t), l = async () => {
1480
1484
  const p = e.get(), v = n.getStore().get().data?.map((w) => w.slId) || [];
1481
1485
  if (p && v?.length) {
1482
1486
  const w = r.get();
@@ -1501,14 +1505,14 @@ const Oo = {
1501
1505
  const v = s.get(), w = p || v.page + 1;
1502
1506
  w <= o && s.set({ ...v, page: w });
1503
1507
  };
1504
- return br(a, () => {
1508
+ return vr(a, () => {
1505
1509
  const p = e.listen(l), v = n.listen(l);
1506
1510
  return () => {
1507
1511
  p(), v();
1508
1512
  };
1509
1513
  }), { $store: a, fetchMore: f, invalidate: c };
1510
1514
  };
1511
- class Co extends He {
1515
+ class Lo extends He {
1512
1516
  get = this.read;
1513
1517
  set = this.write;
1514
1518
  del = this.remove;
@@ -1516,32 +1520,32 @@ class Co extends He {
1516
1520
  super("deep-link-context", window.sessionStorage);
1517
1521
  }
1518
1522
  }
1519
- const Hr = "sldl", Pt = "sldl_uid", Vn = "sldl_eid", $n = "sldl_e_eid", Lo = /* @__PURE__ */ new Set([Pt, Vn, $n]), Wr = (t) => {
1523
+ const Wr = "sldl", Nt = "sldl_uid", $n = "sldl_eid", Mn = "sldl_e_eid", ko = /* @__PURE__ */ new Set([Nt, $n, Mn]), Yr = (t) => {
1520
1524
  const e = {}, r = {};
1521
1525
  for (const [n, i] of t)
1522
- Lo.has(n) ? e[n] = i : r[n] = i;
1526
+ ko.has(n) ? e[n] = i : r[n] = i;
1523
1527
  return { result: e, remain: r };
1524
- }, ko = ({ hash: t, search: e }) => {
1525
- if (t && t.includes(Hr)) {
1528
+ }, Po = ({ hash: t, search: e }) => {
1529
+ if (t && t.includes(Wr)) {
1526
1530
  const r = new URLSearchParams(t.substr(1));
1527
- return { hash: Wr(r) };
1531
+ return { hash: Yr(r) };
1528
1532
  }
1529
- if (e && e.includes(Hr)) {
1533
+ if (e && e.includes(Wr)) {
1530
1534
  const r = new URLSearchParams(e);
1531
- return { search: Wr(r) };
1535
+ return { search: Yr(r) };
1532
1536
  }
1533
1537
  return null;
1534
- }, Yr = Se("deep_link"), ce = {
1538
+ }, Jr = Se("deep_link"), ce = {
1535
1539
  debug: (...t) => {
1536
- Yr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1540
+ Jr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1537
1541
  },
1538
1542
  trace: (...t) => {
1539
- Yr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1543
+ Jr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1540
1544
  }
1541
- }, Po = (t, e) => {
1545
+ }, No = (t, e) => {
1542
1546
  const { hash: r, search: n } = window.location;
1543
1547
  if (ce.debug({ hash: r, search: n }, "get deep link data from"), r || n) {
1544
- const i = ko({ hash: r, search: n });
1548
+ const i = Po({ hash: r, search: n });
1545
1549
  if (ce.debug(i, "parse deep link result"), i) {
1546
1550
  const { hash: o, search: s } = i, { result: a, remain: u } = o || s;
1547
1551
  if (Object.keys(a).length !== 0) {
@@ -1560,8 +1564,8 @@ const Hr = "sldl", Pt = "sldl_uid", Vn = "sldl_eid", $n = "sldl_e_eid", Lo = /*
1560
1564
  }
1561
1565
  }
1562
1566
  t.setValue("parsed", !0);
1563
- }, No = (t, e, r) => {
1564
- const n = new Co(), i = n.get("sl-deep-link-store");
1567
+ }, Fo = (t, e, r) => {
1568
+ const n = new Lo(), i = n.get("sl-deep-link-store");
1565
1569
  let o = {};
1566
1570
  if (i)
1567
1571
  try {
@@ -1570,7 +1574,7 @@ const Hr = "sldl", Pt = "sldl_uid", Vn = "sldl_eid", $n = "sldl_e_eid", Lo = /*
1570
1574
  ce.debug(a);
1571
1575
  }
1572
1576
  t.deepLink = {
1573
- $store: new Ce(W(o), "deep-link-context"),
1577
+ $store: new Ce(Y(o), "deep-link-context"),
1574
1578
  getDeepLinkData: () => {
1575
1579
  const { data: a, used: u } = t.deepLink.$store.getValues();
1576
1580
  return { data: a, used: u };
@@ -1582,7 +1586,7 @@ const Hr = "sldl", Pt = "sldl_uid", Vn = "sldl_eid", $n = "sldl_e_eid", Lo = /*
1582
1586
  onDeepLinkHandlers: /* @__PURE__ */ new Set()
1583
1587
  }, t.sdk.getInviter = () => {
1584
1588
  const { data: a, used: u } = t.deepLink.getDeepLinkData();
1585
- return u ? a?.[Pt] : void 0;
1589
+ return u ? a?.[Nt] : void 0;
1586
1590
  }, t.sdk.inviteDisplayed = () => {
1587
1591
  t.deepLink.$store.getStore().set({}), t.deepLink.$store.getStore().off(), n.del("sl-deep-link-store");
1588
1592
  }, t.deepLink.$store.subscribe((a) => n.set("sl-deep-link-store", JSON.stringify(a))), t.sdk.addDeepLinkHandler = (a) => {
@@ -1599,15 +1603,15 @@ const Hr = "sldl", Pt = "sldl_uid", Vn = "sldl_eid", $n = "sldl_e_eid", Lo = /*
1599
1603
  console.error(l);
1600
1604
  }
1601
1605
  };
1602
- Po(t.deepLink.$store, s), r();
1603
- }, Fo = Se("bypass");
1604
- class Do extends Ni {
1606
+ No(t.deepLink.$store, s), r();
1607
+ }, Do = Se("bypass");
1608
+ class Ro extends Fi {
1605
1609
  $coreStore;
1606
1610
  deepLink;
1607
1611
  transport;
1608
1612
  bypassLogin;
1609
1613
  constructor(e, r, n) {
1610
- super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = Ki(this.transport), this.connect();
1614
+ super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = zi(this.transport), this.connect();
1611
1615
  }
1612
1616
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
1613
1617
  /**
@@ -1618,8 +1622,8 @@ class Do extends Ni {
1618
1622
  */
1619
1623
  login = async (e, r) => {
1620
1624
  this.$coreStore.getValues().userKey.setValue(r);
1621
- const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[Pt];
1622
- Fo.debug({ inviterKey: o }, "login with inviterKey");
1625
+ const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[Nt];
1626
+ Do.debug({ inviterKey: o }, "login with inviterKey");
1623
1627
  const s = await this.bypassLogin({
1624
1628
  schema: e,
1625
1629
  userKey: r,
@@ -1635,14 +1639,14 @@ class Do extends Ni {
1635
1639
  * Logout user. Clears the all user data from the store.
1636
1640
  */
1637
1641
  logout = () => {
1638
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Be().clear();
1642
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new je().clear();
1639
1643
  };
1640
1644
  /**
1641
1645
  * Soft logout, only clears the StreamLayer user data from the store.
1642
1646
  * Does not clear the external token. And automatically tries to re-login by external token.
1643
1647
  */
1644
1648
  softLogout = () => {
1645
- const e = new Be();
1649
+ const e = new je();
1646
1650
  this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
1647
1651
  };
1648
1652
  /**
@@ -1653,7 +1657,7 @@ class Do extends Ni {
1653
1657
  * - If no one of the above is true, then logout.
1654
1658
  */
1655
1659
  reLogin = () => {
1656
- const e = new Be(), r = e.getToken(), n = e.getExternalToken();
1660
+ const e = new je(), r = e.getToken(), n = e.getExternalToken();
1657
1661
  if (this.$coreStore.getValues().userKey.setValue(n), r)
1658
1662
  return this.saveUser(r, ""), this.me().then((i) => {
1659
1663
  if (i?.id) {
@@ -1672,7 +1676,7 @@ class Do extends Ni {
1672
1676
  * Write token to the Transport and UserStore
1673
1677
  */
1674
1678
  saveUser = (e, r) => {
1675
- this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Be().setToken(e);
1679
+ this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new je().setToken(e);
1676
1680
  };
1677
1681
  /**
1678
1682
  * Add interceptor to the Transport to handle 401 and 403 errors.
@@ -1688,8 +1692,8 @@ class Do extends Ni {
1688
1692
  });
1689
1693
  };
1690
1694
  }
1691
- const Je = new Be(), Ro = (t, e, r) => {
1692
- t.auth = new Do(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1695
+ const Je = new je(), Vo = (t, e, r) => {
1696
+ t.auth = new Ro(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1693
1697
  n === me.READY && t.auth.reLogin();
1694
1698
  }), t.sdk.userId = t.stores.user.getAtomStore, t.sdk.authorizationBypass = async (n, i) => {
1695
1699
  if (!(Je.getSchema() === n && Je.getExternalToken() === i && t.transport.getHeader("authorization")))
@@ -1701,24 +1705,24 @@ const Je = new Be(), Ro = (t, e, r) => {
1701
1705
  }, t.sdk.logout = () => {
1702
1706
  t.auth.logout(), Je.clear();
1703
1707
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
1704
- }, Jr = Se("video_player"), dt = {
1708
+ }, Xr = Se("video_player"), ft = {
1705
1709
  debug: (...t) => {
1706
- Jr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1710
+ Xr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1707
1711
  },
1708
1712
  trace: (...t) => {
1709
- Jr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1713
+ Xr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1710
1714
  }
1711
- }, Vo = (t, e, r) => {
1715
+ }, $o = (t, e, r) => {
1712
1716
  t.videoPlayer = {
1713
1717
  controllers: /* @__PURE__ */ new Set()
1714
1718
  }, t.sdk.addVideoPlayerController = (n) => {
1715
- dt.trace("adding video player controller"), t.videoPlayer.controllers.add(n);
1719
+ ft.trace("adding video player controller"), t.videoPlayer.controllers.add(n);
1716
1720
  }, e.videoPlayerController && t.sdk.addVideoPlayerController(e.videoPlayerController), t.sdk.removeVideoPlayerController = (n) => {
1717
- dt.trace("removing video player controller"), t.videoPlayer.controllers.delete(n);
1721
+ ft.trace("removing video player controller"), t.videoPlayer.controllers.delete(n);
1718
1722
  }, t.sdk.controlVideoPlayer = (n) => {
1719
- dt.trace("controlling video player");
1723
+ ft.trace("controlling video player");
1720
1724
  for (const i of t.videoPlayer.controllers) {
1721
- dt.trace("calling video player controller");
1725
+ ft.trace("calling video player controller");
1722
1726
  try {
1723
1727
  i(n);
1724
1728
  } catch (o) {
@@ -1726,14 +1730,14 @@ const Je = new Be(), Ro = (t, e, r) => {
1726
1730
  }
1727
1731
  }
1728
1732
  }, r();
1729
- }, $o = {
1733
+ }, Mo = {
1730
1734
  [C.FACTOID]: "insight",
1731
1735
  [C.POLL]: "poll",
1732
1736
  [C.TRIVIA]: "trivia",
1733
1737
  [C.PREDICTION]: "prediction",
1734
1738
  [C.TWEET]: "tweet"
1735
- }, Mo = (t, e, r) => {
1736
- t.sdk.uiState = W({}), t.ui = {
1739
+ }, Bo = (t, e, r) => {
1740
+ t.sdk.uiState = Y({}), t.ui = {
1737
1741
  enableAppNotification: function() {
1738
1742
  t.sdk.uiState.setKey("appNotification", !0);
1739
1743
  },
@@ -1759,7 +1763,7 @@ const Je = new Be(), Ro = (t, e, r) => {
1759
1763
  };
1760
1764
  t.onQuestionActivate = ({ questionType: i, ...o }) => {
1761
1765
  if (t.ui.onContentActivate) {
1762
- const s = o.type || i && $o[i] || "question";
1766
+ const s = o.type || i && Mo[i] || "question";
1763
1767
  t.ui.onContentActivate({ ...o, type: s });
1764
1768
  }
1765
1769
  }, t.sdk.onMount({ name: "ui" }, () => {
@@ -1774,12 +1778,12 @@ const Je = new Be(), Ro = (t, e, r) => {
1774
1778
  break;
1775
1779
  }
1776
1780
  if (a.slEventBus?.type === "advertisement" && e.withAd) {
1777
- const u = a.slEventBus, { hasNotification: l, id: c, isViewed: f, type: p } = u.payload;
1781
+ const u = a.slEventBus, { hasNotification: l, hasBanner: c, id: f, isViewed: p, type: v } = u.payload;
1778
1782
  switch (u.action) {
1779
1783
  case "notification-opened":
1780
1784
  t.sdk.uiState.set({
1781
- promotionExternalAd: p === re.EXTERNAL_AD,
1782
- promotionBanner: !0,
1785
+ promotionExternalAd: v === W.EXTERNAL_AD,
1786
+ promotionBanner: c,
1783
1787
  promotionNotification: !1,
1784
1788
  promotionOverlay: !0,
1785
1789
  promotionSidebar: !0
@@ -1788,29 +1792,30 @@ const Je = new Be(), Ro = (t, e, r) => {
1788
1792
  case "received":
1789
1793
  if (t.sdk.closeFeature(), n({
1790
1794
  stage: "activate",
1791
- id: c,
1795
+ id: f,
1792
1796
  hasNotification: l,
1793
- isViewed: f
1797
+ hasBanner: c,
1798
+ isViewed: p
1794
1799
  }), !e.withAdNotification) {
1795
1800
  t.sdk.uiState.set({
1796
- promotionBanner: !0,
1801
+ promotionBanner: c,
1797
1802
  promotionOverlay: !0,
1798
1803
  promotionSidebar: !0,
1799
- promotionExternalAd: p === re.EXTERNAL_AD
1804
+ promotionExternalAd: v === W.EXTERNAL_AD
1800
1805
  });
1801
1806
  break;
1802
1807
  }
1803
1808
  l ? t.sdk.uiState.set({
1804
1809
  promotionNotification: !0
1805
1810
  }) : t.sdk.uiState.set({
1806
- promotionBanner: !0,
1811
+ promotionBanner: c,
1807
1812
  promotionOverlay: !0,
1808
1813
  promotionSidebar: !0,
1809
- promotionExternalAd: p === re.EXTERNAL_AD
1814
+ promotionExternalAd: v === W.EXTERNAL_AD
1810
1815
  });
1811
1816
  break;
1812
1817
  case "closed":
1813
- console.log("closed", u.payload), t.sdk.uiState.set({
1818
+ t.sdk.uiState.set({
1814
1819
  ...t.sdk.uiState.get(),
1815
1820
  promotionNotification: !1,
1816
1821
  promotionBanner: !1,
@@ -1819,9 +1824,10 @@ const Je = new Be(), Ro = (t, e, r) => {
1819
1824
  promotionSidebar: !1
1820
1825
  }), n({
1821
1826
  stage: "deactivate",
1822
- id: c,
1827
+ id: f,
1823
1828
  hasNotification: l,
1824
- isViewed: f
1829
+ hasBanner: c,
1830
+ isViewed: p
1825
1831
  });
1826
1832
  break;
1827
1833
  }
@@ -1835,7 +1841,7 @@ const Je = new Be(), Ro = (t, e, r) => {
1835
1841
  }), r();
1836
1842
  }, jo = (t, e, r) => {
1837
1843
  const n = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1838
- t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.options = W(e), t.sdk.withAuth = !1, t.sdk.onMount = ({ name: s, clear: a }, u) => {
1844
+ t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.options = Y(e), t.sdk.withAuth = !1, t.sdk.onMount = ({ name: s, clear: a }, u) => {
1839
1845
  if (i.has(s)) {
1840
1846
  const l = o.get(s);
1841
1847
  l && l(), i.delete(s), o.delete(s);
@@ -1860,7 +1866,7 @@ const Je = new Be(), Ro = (t, e, r) => {
1860
1866
  }, t.sdk.createEventSession = (s) => {
1861
1867
  t.stores.providerStreamId.setValue(s);
1862
1868
  }, r();
1863
- }, Bo = (t, e) => {
1869
+ }, Uo = (t, e) => {
1864
1870
  const { client: r, queryKey: n } = t.createPromiseClient(nt, {
1865
1871
  method: "generateDeepLink",
1866
1872
  params: e
@@ -1881,29 +1887,29 @@ const Je = new Be(), Ro = (t, e, r) => {
1881
1887
  // 24 hours
1882
1888
  refetchInterval: 0
1883
1889
  });
1884
- }, Uo = (t, { web: e, mobile: r }) => {
1885
- const { client: n } = t.createPromiseClient(Ei, { method: "generate" });
1890
+ }, qo = (t, { web: e, mobile: r }) => {
1891
+ const { client: n } = t.createPromiseClient(Ii, { method: "generate" });
1886
1892
  return n.generate({ web: e, mobile: r });
1887
- }, Xr = (t, e) => {
1893
+ }, Zr = (t, e) => {
1888
1894
  const r = new URLSearchParams(t);
1889
1895
  for (const [n, i] of Object.entries(e))
1890
1896
  r.append(n, i);
1891
1897
  return r.toString();
1892
- }, qo = (t, e, r, n) => {
1893
- const i = W({});
1894
- return br(i, () => Bo(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
1898
+ }, xo = (t, e, r, n) => {
1899
+ const i = Y({});
1900
+ return vr(i, () => Uo(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
1895
1901
  const l = a === void 0 && u === !1 ? "https://streamlayer.io" : a?.url, c = n.get() || "", f = e.get() || "", p = r.get() || "", v = {
1896
- [Pt]: c,
1897
- [Vn]: f,
1898
- [$n]: p
1902
+ [Nt]: c,
1903
+ [$n]: f,
1904
+ [Mn]: p
1899
1905
  };
1900
1906
  if (!u && l) {
1901
1907
  i.setKey("loading", !0);
1902
1908
  let w = window.location.search, b = window.location.hash;
1903
- w && b || b ? w = `?${Xr(w, v)}` : b = `#${Xr("", v)}`;
1909
+ w && b || b ? w = `?${Zr(w, v)}` : b = `#${Zr("", v)}`;
1904
1910
  const g = window.location.origin + window.location.pathname + w + b;
1905
1911
  try {
1906
- const S = await Uo(t, { web: g, mobile: l });
1912
+ const S = await qo(t, { web: g, mobile: l });
1907
1913
  i.set({
1908
1914
  data: S.data?.link,
1909
1915
  loading: !1
@@ -1923,7 +1929,7 @@ var M;
1923
1929
  (function(t) {
1924
1930
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
1925
1931
  })(M || (M = {}));
1926
- const xo = (t, e, r, n) => {
1932
+ const Qo = (t, e, r, n) => {
1927
1933
  const { inplayGame: i } = t.featureSettings.get(), o = e.getCurrentSessionId({ prefix: "onboarding" });
1928
1934
  i && r.add({
1929
1935
  type: Ee.ONBOARDING,
@@ -1947,7 +1953,7 @@ const xo = (t, e, r, n) => {
1947
1953
  }
1948
1954
  }
1949
1955
  });
1950
- }, ft = (t, e, r, n, i, o) => {
1956
+ }, pt = (t, e, r, n, i, o) => {
1951
1957
  try {
1952
1958
  const s = e.userId.get();
1953
1959
  if (!s)
@@ -1970,27 +1976,27 @@ const xo = (t, e, r, n) => {
1970
1976
  } catch (s) {
1971
1977
  console.error(s);
1972
1978
  }
1973
- }, Qo = (t, e, r, n) => {
1979
+ }, Go = (t, e, r, n) => {
1974
1980
  let i = !1;
1975
- const o = new Rn(), s = j(M.Unset);
1981
+ const o = new Vn(), s = B(M.Unset);
1976
1982
  s.subscribe((l) => {
1977
- l !== M.Unset && (l === M.Optional || l === M.Required ? i === !1 && (xo(t, e, n, o), i = !0) : t.onboardingProcessed.set(!0), l === M.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
1983
+ l !== M.Unset && (l === M.Optional || l === M.Required ? i === !1 && (Qo(t, e, n, o), i = !0) : t.onboardingProcessed.set(!0), l === M.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
1978
1984
  userId: e.userId.get() || "",
1979
1985
  organizationId: e.organizationId.get() || "",
1980
1986
  eventId: e.slStreamId.get() || ""
1981
1987
  }));
1982
1988
  });
1983
1989
  const a = [];
1984
- return ft(s, e, t, n, o, a), s.get() !== M.Completed && (a.push(e.userId.listen((l) => {
1985
- l && ft(s, e, t, n, o, a);
1990
+ return pt(s, e, t, n, o, a), s.get() !== M.Completed && (a.push(e.userId.listen((l) => {
1991
+ l && pt(s, e, t, n, o, a);
1986
1992
  })), a.push(e.moderation.listen((l) => {
1987
- l.data && ft(s, e, t, n, o, a);
1993
+ l.data && pt(s, e, t, n, o, a);
1988
1994
  })), a.push(t.featureSettings.listen((l) => {
1989
- l && ft(s, e, t, n, o, a);
1995
+ l && pt(s, e, t, n, o, a);
1990
1996
  }))), { $store: s, submitInplay: async () => {
1991
1997
  const l = e.slStreamId.get();
1992
1998
  if (l) {
1993
- await Io(r, l), s.set(M.Completed), o.saveOnboardingStatus({
1999
+ await To(r, l), s.set(M.Completed), o.saveOnboardingStatus({
1994
2000
  organizationId: e.organizationId.get() || "",
1995
2001
  userId: e.userId.get() || "",
1996
2002
  eventId: l
@@ -2002,8 +2008,8 @@ const xo = (t, e, r, n) => {
2002
2008
  n.close(c);
2003
2009
  }
2004
2010
  } };
2005
- }, Go = (t, e, r, n) => {
2006
- const i = W(void 0), o = Fn(n), s = async () => {
2011
+ }, Ko = (t, e, r, n) => {
2012
+ const i = Y(void 0), o = Dn(n), s = async () => {
2007
2013
  const u = t.get(), l = e.get(), c = r.getStore().get().data?.map((v) => v.slId);
2008
2014
  if (!c)
2009
2015
  return;
@@ -2016,21 +2022,21 @@ const xo = (t, e, r, n) => {
2016
2022
  }, a = () => {
2017
2023
  s();
2018
2024
  };
2019
- return br(i, () => {
2025
+ return vr(i, () => {
2020
2026
  const u = t.listen(s), l = r.listen(s), c = e.listen(s);
2021
2027
  return () => {
2022
2028
  u(), l(), c();
2023
2029
  };
2024
2030
  }), { $store: i, invalidate: a };
2025
- }, Ko = async (t, e, r, n, i) => {
2026
- const o = Fn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((p) => p.slId) || [], l = {
2031
+ }, zo = async (t, e, r, n, i) => {
2032
+ const o = Dn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((p) => p.slId) || [], l = {
2027
2033
  eventId: s,
2028
2034
  userId: n,
2029
2035
  usersIds: [...u, a]
2030
2036
  };
2031
2037
  return (await o(l)).data?.attributes?.summary;
2032
- }, zo = /* @__PURE__ */ new Set([C.POLL, C.PREDICTION, C.TRIVIA]);
2033
- class Ho extends kn {
2038
+ }, Ho = /* @__PURE__ */ new Set([C.POLL, C.PREDICTION, C.TRIVIA]);
2039
+ class Wo extends Pn {
2034
2040
  /** user statistics (leaderboard panel) */
2035
2041
  userSummary;
2036
2042
  /** feed list (pick history) */
@@ -2068,11 +2074,11 @@ class Ho extends kn {
2068
2074
  cancels = /* @__PURE__ */ new Set();
2069
2075
  onQuestionActivate;
2070
2076
  constructor(e, r, n) {
2071
- super(e, r), this.background = new bo(n), this.advertisement = this.background.advertisement, this.onQuestionActivate = n.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Rn(), this.feedList = this.background.feedList, this.friends = new le(no(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = j(void 0), this.onboardingProcessed = j(!n.sdk.withAuth), this.leaderboardId = new X(j(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = Qo(this, this.background, n.transport, n.notifications), this.notifications = n.notifications, this.transport = n.transport, this.closeFeature = (i = !0) => n.sdk.closeFeature(i), this.openFeature = () => n.sdk.openFeature(D.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = qo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Go(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = _o(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((i, o) => {
2077
+ super(e, r), this.background = new vo(n), this.advertisement = this.background.advertisement, this.onQuestionActivate = n.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Vn(), this.feedList = this.background.feedList, this.friends = new le(io(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = B(void 0), this.onboardingProcessed = B(!n.sdk.withAuth), this.leaderboardId = new Z(B(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = Go(this, this.background, n.transport, n.notifications), this.notifications = n.notifications, this.transport = n.transport, this.closeFeature = (i = !0) => n.sdk.closeFeature(i), this.openFeature = () => n.sdk.openFeature(D.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = xo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Ko(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = Co(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((i, o) => {
2072
2078
  o?.summary && i?.summary && this.leaderboardList.invalidate();
2073
2079
  })), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), this.cancels.add(this.onboardingStatus.$store.listen((i, o) => {
2074
2080
  (o === void 0 || i !== M.Unset) && this.background.activeQuestionId.invalidate();
2075
- })), this.background.activeQuestionId.listen(this.showInApp), this.friendsTabEnabled = j(!1), this.cancels.add(n.sdk.options.subscribe((i) => {
2081
+ })), this.background.activeQuestionId.listen(this.showInApp), this.friendsTabEnabled = B(!1), this.cancels.add(n.sdk.options.subscribe((i) => {
2076
2082
  i.friendsTab === "disabled" ? this.friendsTabEnabled.set(!1) : i.friendsTab === "enabled" && this.friendsTabEnabled.set(!0);
2077
2083
  })), this.cancels.add(this.settings.subscribe((i) => {
2078
2084
  n.sdk.options.get().friendsTab === "activatedGame" && this.friendsTabEnabled.set(!!i.inplayGame?.titleCard?.optIn);
@@ -2098,16 +2104,16 @@ class Ho extends kn {
2098
2104
  if (!r || !n?.attributes)
2099
2105
  return;
2100
2106
  const { status: i, type: o, id: s, answers: a } = r;
2101
- if (i === J.RESOLVED && o === C.PREDICTION) {
2107
+ if (i === X.RESOLVED && o === C.PREDICTION) {
2102
2108
  const u = this.background.getCurrentSessionId({
2103
2109
  prefix: `notification-id:${s}`
2104
2110
  }), l = [...this.feedList.getValues().data || []], c = l.findIndex((K) => K.id === s), f = l[c];
2105
2111
  let p = f?.attributes?.attributes?.value?.answerId;
2106
- const v = ar(s, this.transport), w = v.subscribe(() => {
2112
+ const v = ur(s, this.transport), w = v.subscribe(() => {
2107
2113
  });
2108
2114
  await v.get().promise;
2109
2115
  let b = v.get().data;
2110
- b || (b = await co(s, this.transport)), w(), window.requestAnimationFrame(() => {
2116
+ b || (b = await lo(s, this.transport)), w(), window.requestAnimationFrame(() => {
2111
2117
  v.invalidate();
2112
2118
  }), p || (p = b?.answers.find(({ youVoted: K }) => K)?.id);
2113
2119
  const g = a.find(({ correct: K }) => K), S = p ? a.find(({ id: K }) => K === p) : void 0, R = !!S?.correct;
@@ -2138,7 +2144,7 @@ class Ho extends kn {
2138
2144
  },
2139
2145
  correctAnswerTitle: g?.text,
2140
2146
  correct: !!R,
2141
- predictionResult: i === J.RESOLVED,
2147
+ predictionResult: i === X.RESOLVED,
2142
2148
  questionTitle: r?.subject
2143
2149
  }
2144
2150
  }
@@ -2146,7 +2152,7 @@ class Ho extends kn {
2146
2152
  }
2147
2153
  })), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-questions-list", (e) => {
2148
2154
  const r = [...this.feedList.getStore().value?.data || []], n = e.data?.attributes?.feedItem, i = r.findIndex((o) => o.id === n?.id);
2149
- if (n?.attributes && n.attributes.attributes.case !== "promotion" && !(n.attributes.status !== J.ACTIVE && n.attributes.status !== J.RESOLVED)) {
2155
+ if (n?.attributes && n.attributes.attributes.case !== "promotion" && !(n.attributes.status !== X.ACTIVE && n.attributes.status !== X.RESOLVED)) {
2150
2156
  if (i !== -1)
2151
2157
  if (n.attributes.attributes.case === "question" && r[i].attributes?.attributes.case === "question") {
2152
2158
  const o = r[i];
@@ -2207,7 +2213,7 @@ class Ho extends kn {
2207
2213
  this.background.feedSubscription.removeListener("feed-subscription-prediction-close"), this.background.feedSubscription.removeListener("feed-subscription-questions-list");
2208
2214
  };
2209
2215
  submitAnswer = async (e, r) => {
2210
- const n = ar(e, this.transport), i = n.subscribe(() => {
2216
+ const n = ur(e, this.transport), i = n.subscribe(() => {
2211
2217
  }), o = { ...n.get().data || {} }, s = () => {
2212
2218
  const a = this.feedList.getValues().data;
2213
2219
  if (!a)
@@ -2226,7 +2232,7 @@ class Ho extends kn {
2226
2232
  const p = f.answers.find((g) => g.correct === !0), v = f.answers.findIndex((g) => g.id === r), w = f.answers[v], b = f.answers.every(({ percentageDecimal: g }, S) => g === o?.answers[S].percentageDecimal);
2227
2233
  a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = w?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? ct.WON : ct.LOST), this.feedList.getStore().mutate([...a]), f.answers[v].correct = p?.id === r, f.answers[v].youVoted = !0, b && f.answers.forEach((g) => {
2228
2234
  g.percentageDecimal = 0;
2229
- }), p?.id === r && (f.answers[v].pointsEarned = f.status === J.RESOLVED ? 0 : p.points), n.mutate({ ...f });
2235
+ }), p?.id === r && (f.answers[v].pointsEarned = f.status === X.RESOLVED ? 0 : p.points), n.mutate({ ...f });
2230
2236
  }
2231
2237
  this.submitAnswerTimeout && clearTimeout(this.submitAnswerTimeout), this.submitAnswerTimeout = setTimeout(() => {
2232
2238
  this.userSummary.invalidate();
@@ -2234,7 +2240,7 @@ class Ho extends kn {
2234
2240
  }
2235
2241
  };
2236
2242
  try {
2237
- await Eo(this.transport, { questionId: e, answerId: r }), s();
2243
+ await Io(this.transport, { questionId: e, answerId: r }), s();
2238
2244
  } catch (a) {
2239
2245
  if (a.message === rt.ALREADY_VOTED) {
2240
2246
  this.userSummary.invalidate();
@@ -2265,7 +2271,7 @@ class Ho extends kn {
2265
2271
  }
2266
2272
  }), this.background.openQuestion(e, r);
2267
2273
  };
2268
- getFeedItem = (e) => so(e, this.transport);
2274
+ getFeedItem = (e) => ao(e, this.transport);
2269
2275
  isOpenedQuestion = (e) => !!this.notifications.isViewed(e);
2270
2276
  closeQuestion = (e) => (e && this.onQuestionActivate({
2271
2277
  stage: "deactivate",
@@ -2287,7 +2293,7 @@ class Ho extends kn {
2287
2293
  }
2288
2294
  const n = { ...r };
2289
2295
  try {
2290
- const i = await Ko(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2296
+ const i = await zo(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2291
2297
  i?.inTop !== void 0 && (this.leaderboardList.$store.setKey("data", this.leaderboardList.$store.get().data?.map((o) => (o.userId === e && (o.inTop = i.inTop), o))), n.inTop = i.inTop);
2292
2298
  } catch (i) {
2293
2299
  console.error(i);
@@ -2305,8 +2311,8 @@ class Ho extends kn {
2305
2311
  */
2306
2312
  showInApp = (e) => {
2307
2313
  const r = this.onboardingStatus.$store.get();
2308
- if (e && e.data && r && r !== M.Unset && e.data.question?.id !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== vi.ON && e.data.question.status === J.ACTIVE && !e.data.question.marketClosed) {
2309
- if (zo.has(e.data.question.type))
2314
+ if (e && e.data && r && r !== M.Unset && e.data.question?.id !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== Si.ON && e.data.question.status === X.ACTIVE && !e.data.question.marketClosed) {
2315
+ if (Ho.has(e.data.question.type))
2310
2316
  this.isInteractiveAllowed && e.data.question.notification !== void 0 && this.notifications.add({
2311
2317
  type: Ee.QUESTION,
2312
2318
  action: () => this.openQuestion(e.data?.question?.id, e.data?.feedItem),
@@ -2381,16 +2387,16 @@ class Ho extends kn {
2381
2387
  }
2382
2388
  };
2383
2389
  }
2384
- const Wo = {
2390
+ const Yo = {
2385
2391
  [D.GAMES]: !0
2386
2392
  };
2387
- class Yo extends kn {
2393
+ class Jo extends Pn {
2388
2394
  constructor(e, r) {
2389
2395
  super(e, r);
2390
2396
  }
2391
2397
  }
2392
- const Jo = (t, e, r) => t.type === D.GAMES ? new Ho(t, e, r) : new Yo(t, e), Xo = (t, e, r) => {
2393
- t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new X(j(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new X(j(D.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (n) => t.features.get(n), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (n) => {
2398
+ const Xo = (t, e, r) => t.type === D.GAMES ? new Wo(t, e, r) : new Jo(t, e), Zo = (t, e, r) => {
2399
+ t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new Z(B(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new Z(B(D.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (n) => t.features.get(n), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (n) => {
2394
2400
  t.activeFeature.setValue(n);
2395
2401
  }, t.sdk.closeFeature = (n = !1) => {
2396
2402
  const i = t.activeFeature.getValue();
@@ -2400,8 +2406,8 @@ const Jo = (t, e, r) => t.type === D.GAMES ? new Ho(t, e, r) : new Yo(t, e), Xo
2400
2406
  o && o.delete(i), t.sdk.featuresList.setValue(o);
2401
2407
  }
2402
2408
  }, t.initFeature = (n, i = ye.ORGANIZATION) => {
2403
- if (n.type in Wo && !t.features.has(n.type)) {
2404
- const o = Jo(n, i, t);
2409
+ if (n.type in Yo && !t.features.has(n.type)) {
2410
+ const o = Xo(n, i, t);
2405
2411
  t.features.set(n.type, o);
2406
2412
  let s = t.sdk.featuresList.getValue();
2407
2413
  s ? s.add(n.type) : s = /* @__PURE__ */ new Set([n.type]), t.sdk.featuresList.setValue(new Set(s));
@@ -2454,7 +2460,7 @@ const Jo = (t, e, r) => t.type === D.GAMES ? new Ho(t, e, r) : new Yo(t, e), Xo
2454
2460
  t.store.subscribe(i);
2455
2461
  }, r();
2456
2462
  };
2457
- class Zo {
2463
+ class es {
2458
2464
  analytics;
2459
2465
  constructor(e) {
2460
2466
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2475,8 +2481,8 @@ class Zo {
2475
2481
  ...this.analytics.commonStore.getValues(),
2476
2482
  kind: Q.INVITATION_ACCEPTED
2477
2483
  },
2478
- category: Vr.GAMES,
2479
- from: $r.UNSET
2484
+ category: $r.GAMES,
2485
+ from: Mr.UNSET
2480
2486
  });
2481
2487
  };
2482
2488
  sent = ({ from: e }) => {
@@ -2485,12 +2491,12 @@ class Zo {
2485
2491
  ...this.analytics.commonStore.getValues(),
2486
2492
  kind: Q.INVITATION_SENT
2487
2493
  },
2488
- category: Vr.GAMES,
2489
- from: e || $r.UNSET
2494
+ category: $r.GAMES,
2495
+ from: e || Mr.UNSET
2490
2496
  });
2491
2497
  };
2492
2498
  }
2493
- class es {
2499
+ class ts {
2494
2500
  analytics;
2495
2501
  constructor(e) {
2496
2502
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2514,7 +2520,7 @@ class es {
2514
2520
  ...this.analytics.commonStore.getValues(),
2515
2521
  kind: Q.INTERACTIONS
2516
2522
  },
2517
- actionType: Qr.TAP
2523
+ actionType: Gr.TAP
2518
2524
  });
2519
2525
  };
2520
2526
  scroll = () => {
@@ -2523,26 +2529,26 @@ class es {
2523
2529
  ...this.analytics.commonStore.getValues(),
2524
2530
  kind: Q.INTERACTIONS
2525
2531
  },
2526
- actionType: Qr.SCROLL
2532
+ actionType: Gr.SCROLL
2527
2533
  });
2528
2534
  };
2529
2535
  }
2530
- const ts = {
2531
- [re.UNSET]: Ae.UNSET,
2532
- [re.INGAME_IAB21]: Ae.PROMOTION_INGAME_IAB21,
2533
- [re.INGAME_IAB11_LBAR]: Ae.PROMOTION_INGAME_IAB11_LBAR,
2534
- [re.INGAME_IAB11]: Ae.PROMOTION_INGAME_IAB11,
2535
- [re.INGAME_IAB21_LBAR]: Ae.PROMOTION_INGAME_IAB21_LBAR,
2536
- [re.INGAME_IAB61]: Ae.PROMOTION_INGAME_IAB61,
2537
- [re.EXTERNAL_AD]: Ae.PROMOTION_GAM
2536
+ const rs = {
2537
+ [W.UNSET]: Ae.UNSET,
2538
+ [W.INGAME_IAB21]: Ae.PROMOTION_INGAME_IAB21,
2539
+ [W.INGAME_IAB11_LBAR]: Ae.PROMOTION_INGAME_IAB11_LBAR,
2540
+ [W.INGAME_IAB11]: Ae.PROMOTION_INGAME_IAB11,
2541
+ [W.INGAME_IAB21_LBAR]: Ae.PROMOTION_INGAME_IAB21_LBAR,
2542
+ [W.INGAME_IAB61]: Ae.PROMOTION_INGAME_IAB61,
2543
+ [W.EXTERNAL_AD]: Ae.PROMOTION_GAM
2538
2544
  };
2539
- class rs {
2545
+ class ns {
2540
2546
  analytics;
2541
2547
  constructor(e) {
2542
2548
  this.analytics = e, this.analytics.onConnect(() => {
2543
2549
  const r = (n) => {
2544
2550
  if (!n.slEventBus?.skipAnalytics && n.slEventBus?.type === "advertisement") {
2545
- const i = n.slEventBus.payload.type ? ts[n.slEventBus.payload.type] : Ae.UNSET;
2551
+ const i = n.slEventBus.payload.type ? rs[n.slEventBus.payload.type] : Ae.UNSET;
2546
2552
  switch (n.slEventBus.action) {
2547
2553
  case "videoPlay":
2548
2554
  this.videoPlay(n.slEventBus.payload, { topicSubType: i });
@@ -2636,7 +2642,7 @@ const Ze = {
2636
2642
  [C.TWEET]: x.POLLS_TWITTER
2637
2643
  };
2638
2644
  C.UNSET + "", pe.UNSET, C.FACTOID + "", pe.POLLS, C.POLL + "", pe.POLLS, C.PREDICTION + "", pe.POLLS, C.PROMOTION + "", pe.POLLS, C.TRIVIA + "", pe.POLLS, C.TWEET + "", pe.POLLS;
2639
- const ns = {
2645
+ const is = {
2640
2646
  [D.UNSET]: z.UNSET,
2641
2647
  [D.INPLAY]: z.INPLAY,
2642
2648
  [D.MESSAGING]: z.MESSAGING,
@@ -2656,7 +2662,7 @@ const ns = {
2656
2662
  [D.HIGHLIGHTS]: z.HIGHLIGHTS,
2657
2663
  [D.PUBLIC_CHAT]: z.PUBLIC_CHAT
2658
2664
  };
2659
- class is {
2665
+ class os {
2660
2666
  analytics;
2661
2667
  constructor(e) {
2662
2668
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2683,7 +2689,7 @@ class is {
2683
2689
  topicType: r ? Ze[r] : x.UNSET
2684
2690
  },
2685
2691
  notificationKind: pe.POLLS,
2686
- notificationType: Gr.IN_APP
2692
+ notificationType: Kr.IN_APP
2687
2693
  });
2688
2694
  };
2689
2695
  opened = ({ questionId: e, questionType: r }) => {
@@ -2695,11 +2701,11 @@ class is {
2695
2701
  topicType: r ? Ze[r] : x.UNSET
2696
2702
  },
2697
2703
  notificationKind: pe.POLLS,
2698
- notificationType: Gr.IN_APP
2704
+ notificationType: Kr.IN_APP
2699
2705
  });
2700
2706
  };
2701
2707
  }
2702
- class os {
2708
+ class ss {
2703
2709
  analytics;
2704
2710
  constructor(e) {
2705
2711
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2783,9 +2789,9 @@ class os {
2783
2789
  });
2784
2790
  };
2785
2791
  }
2786
- const ss = ({ transport: t, $commonStore: e }) => {
2792
+ const as = ({ transport: t, $commonStore: e }) => {
2787
2793
  let r;
2788
- const n = j(!1), i = 5e3, { client: o, queryKey: s } = t.createPromiseClient(Tn, {
2794
+ const n = B(!1), i = 5e3, { client: o, queryKey: s } = t.createPromiseClient(On, {
2789
2795
  method: "send",
2790
2796
  params: [n]
2791
2797
  }), a = t.nanoquery.createFetcherStore(s, {
@@ -2821,7 +2827,7 @@ const ss = ({ transport: t, $commonStore: e }) => {
2821
2827
  ge.debug("unmounted heartbeat"), a.off(), r?.(), r = void 0, c();
2822
2828
  } };
2823
2829
  }, ge = Se("analytics");
2824
- class as {
2830
+ class us {
2825
2831
  commonStore;
2826
2832
  notifications;
2827
2833
  polls;
@@ -2834,14 +2840,14 @@ class as {
2834
2840
  listenersCancels;
2835
2841
  connected = !1;
2836
2842
  constructor(e) {
2837
- this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Ce(W({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = ss({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new is(this), this.polls = new os(this), this.invitation = new Zo(this), this.interactions = new es(this), this.advertisement = new rs(this);
2838
- const { client: r } = e.analyticsTransport.createPromiseClient(Tn, {
2843
+ this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Ce(Y({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = as({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new os(this), this.polls = new ss(this), this.invitation = new es(this), this.interactions = new ts(this), this.advertisement = new ns(this);
2844
+ const { client: r } = e.analyticsTransport.createPromiseClient(On, {
2839
2845
  method: "send"
2840
2846
  });
2841
2847
  this.analyticsClient = r;
2842
2848
  }
2843
2849
  connect = () => {
2844
- this.writeCommon("sessionId", nr()), this.heartbeat.enable(), this.listeners.forEach((e) => this.listenersCancels.add(e())), this.connected = !0, ge.debug("analytics connected");
2850
+ this.writeCommon("sessionId", ir()), this.heartbeat.enable(), this.listeners.forEach((e) => this.listenersCancels.add(e())), this.connected = !0, ge.debug("analytics connected");
2845
2851
  };
2846
2852
  disconnect = () => {
2847
2853
  this.writeCommon("sessionId", ""), this.writeCommon("overlaySessionId", ""), this.heartbeat.unmount(), this.listenersCancels.forEach((e) => e()), this.connected = !1, ge.debug("analytics disconnected");
@@ -2864,10 +2870,10 @@ class as {
2864
2870
  this.onConnect(() => e.stores.slStreamId.getAtomStore().subscribe((r) => {
2865
2871
  this.writeCommon("eventId", r);
2866
2872
  })), this.onConnect(() => e.sdk.getActiveFeature().subscribe((r) => {
2867
- r && this.writeCommon("category", ns[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", nr()) : this.writeCommon("overlaySessionId", "");
2873
+ r && this.writeCommon("category", is[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", ir()) : this.writeCommon("overlaySessionId", "");
2868
2874
  })), this.onConnect(() => {
2869
2875
  const r = window.matchMedia("(orientation: portrait)"), n = (i) => {
2870
- this.writeCommon("screenOrientation", i.matches ? xr.PORTRAIT : xr.LANDSCAPE);
2876
+ this.writeCommon("screenOrientation", i.matches ? Qr.PORTRAIT : Qr.LANDSCAPE);
2871
2877
  };
2872
2878
  return r.addEventListener("change", n), () => {
2873
2879
  r.removeEventListener("change", n);
@@ -2877,17 +2883,17 @@ class as {
2877
2883
  }));
2878
2884
  };
2879
2885
  }
2880
- const us = (t, e, r) => {
2881
- t.analytics = new as(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), () => {
2886
+ const cs = (t, e, r) => {
2887
+ t.analytics = new us(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), () => {
2882
2888
  t.analytics.disconnect();
2883
2889
  })), r();
2884
2890
  };
2885
- var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2886
- function cs(t) {
2891
+ var wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2892
+ function ls(t) {
2887
2893
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2888
2894
  }
2889
- var wr = { exports: {} }, Ar = { exports: {} };
2890
- function ls(t) {
2895
+ var Ar = { exports: {} }, Er = { exports: {} };
2896
+ function ds(t) {
2891
2897
  var e = new t(), r = e;
2892
2898
  function n() {
2893
2899
  var o = e;
@@ -2901,14 +2907,14 @@ function ls(t) {
2901
2907
  release: i
2902
2908
  };
2903
2909
  }
2904
- var ds = ls, fs = ds;
2905
- function Mn(t, e, r) {
2910
+ var fs = ds, ps = fs;
2911
+ function Bn(t, e, r) {
2906
2912
  if (typeof t == "function" && (r = e, e = t, t = null), !(r >= 1))
2907
2913
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
2908
- var n = fs(ps), i = null, o = null, s = 0, a = null, u = {
2914
+ var n = ps(hs), i = null, o = null, s = 0, a = null, u = {
2909
2915
  push: b,
2910
- drain: Y,
2911
- saturated: Y,
2916
+ drain: J,
2917
+ saturated: J,
2912
2918
  pause: c,
2913
2919
  paused: !1,
2914
2920
  get concurrency() {
@@ -2927,10 +2933,10 @@ function Mn(t, e, r) {
2927
2933
  length: f,
2928
2934
  getQueue: p,
2929
2935
  unshift: g,
2930
- empty: Y,
2936
+ empty: J,
2931
2937
  kill: R,
2932
2938
  killAndDrain: K,
2933
- error: ee
2939
+ error: te
2934
2940
  };
2935
2941
  return u;
2936
2942
  function l() {
@@ -2964,11 +2970,11 @@ function Mn(t, e, r) {
2964
2970
  }
2965
2971
  function b(P, V) {
2966
2972
  var O = n.get();
2967
- O.context = t, O.release = S, O.value = P, O.callback = V || Y, O.errorHandler = a, s >= r || u.paused ? o ? (o.next = O, o = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2973
+ O.context = t, O.release = S, O.value = P, O.callback = V || J, O.errorHandler = a, s >= r || u.paused ? o ? (o.next = O, o = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2968
2974
  }
2969
2975
  function g(P, V) {
2970
2976
  var O = n.get();
2971
- O.context = t, O.release = S, O.value = P, O.callback = V || Y, O.errorHandler = a, s >= r || u.paused ? i ? (O.next = i, i = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2977
+ O.context = t, O.release = S, O.value = P, O.callback = V || J, O.errorHandler = a, s >= r || u.paused ? i ? (O.next = i, i = O) : (i = O, o = O, u.saturated()) : (s++, e.call(t, O.value, O.worked));
2972
2978
  }
2973
2979
  function S(P) {
2974
2980
  P && n.release(P);
@@ -2976,33 +2982,33 @@ function Mn(t, e, r) {
2976
2982
  V && s <= r ? u.paused ? s-- : (o === i && (o = null), i = V.next, V.next = null, e.call(t, V.value, V.worked), o === null && u.empty()) : --s === 0 && u.drain();
2977
2983
  }
2978
2984
  function R() {
2979
- i = null, o = null, u.drain = Y;
2985
+ i = null, o = null, u.drain = J;
2980
2986
  }
2981
2987
  function K() {
2982
- i = null, o = null, u.drain(), u.drain = Y;
2988
+ i = null, o = null, u.drain(), u.drain = J;
2983
2989
  }
2984
- function ee(P) {
2990
+ function te(P) {
2985
2991
  a = P;
2986
2992
  }
2987
2993
  }
2988
- function Y() {
2994
+ function J() {
2989
2995
  }
2990
- function ps() {
2991
- this.value = null, this.callback = Y, this.next = null, this.release = Y, this.context = null, this.errorHandler = null;
2996
+ function hs() {
2997
+ this.value = null, this.callback = J, this.next = null, this.release = J, this.context = null, this.errorHandler = null;
2992
2998
  var t = this;
2993
2999
  this.worked = function(r, n) {
2994
3000
  var i = t.callback, o = t.errorHandler, s = t.value;
2995
- t.value = null, t.callback = Y, t.errorHandler && o(r, s), i.call(t.context, r, n), t.release(t);
3001
+ t.value = null, t.callback = J, t.errorHandler && o(r, s), i.call(t.context, r, n), t.release(t);
2996
3002
  };
2997
3003
  }
2998
- function hs(t, e, r) {
3004
+ function ys(t, e, r) {
2999
3005
  typeof t == "function" && (r = e, e = t, t = null);
3000
3006
  function n(c, f) {
3001
3007
  e.call(this, c).then(function(p) {
3002
3008
  f(null, p);
3003
3009
  }, f);
3004
3010
  }
3005
- var i = Mn(t, n, r), o = i.push, s = i.unshift;
3011
+ var i = Bn(t, n, r), o = i.push, s = i.unshift;
3006
3012
  return i.push = a, i.unshift = u, i.drained = l, i;
3007
3013
  function a(c) {
3008
3014
  var f = new Promise(function(p, v) {
@@ -3014,7 +3020,7 @@ function hs(t, e, r) {
3014
3020
  p(b);
3015
3021
  });
3016
3022
  });
3017
- return f.catch(Y), f;
3023
+ return f.catch(J), f;
3018
3024
  }
3019
3025
  function u(c) {
3020
3026
  var f = new Promise(function(p, v) {
@@ -3026,7 +3032,7 @@ function hs(t, e, r) {
3026
3032
  p(b);
3027
3033
  });
3028
3034
  });
3029
- return f.catch(Y), f;
3035
+ return f.catch(J), f;
3030
3036
  }
3031
3037
  function l() {
3032
3038
  if (i.idle())
@@ -3041,60 +3047,60 @@ function hs(t, e, r) {
3041
3047
  return f;
3042
3048
  }
3043
3049
  }
3044
- Ar.exports = Mn;
3045
- Ar.exports.promise = hs;
3046
- var jn = Ar.exports, Er = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, Zr = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
3050
+ Er.exports = Bn;
3051
+ Er.exports.promise = ys;
3052
+ var jn = Er.exports, Ir = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, en = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
3047
3053
  return Function.prototype.apply.call(e, r, n);
3048
- }, ht;
3049
- Qe && typeof Qe.ownKeys == "function" ? ht = Qe.ownKeys : Object.getOwnPropertySymbols ? ht = function(e) {
3054
+ }, yt;
3055
+ Qe && typeof Qe.ownKeys == "function" ? yt = Qe.ownKeys : Object.getOwnPropertySymbols ? yt = function(e) {
3050
3056
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
3051
- } : ht = function(e) {
3057
+ } : yt = function(e) {
3052
3058
  return Object.getOwnPropertyNames(e);
3053
3059
  };
3054
- function ys(t) {
3060
+ function ms(t) {
3055
3061
  console && console.warn && console.warn(t);
3056
3062
  }
3057
- var Bn = Number.isNaN || function(e) {
3063
+ var Un = Number.isNaN || function(e) {
3058
3064
  return e !== e;
3059
3065
  };
3060
3066
  function N() {
3061
3067
  N.init.call(this);
3062
3068
  }
3063
- Er.exports = N;
3064
- Er.exports.once = vs;
3069
+ Ir.exports = N;
3070
+ Ir.exports.once = Ss;
3065
3071
  N.EventEmitter = N;
3066
3072
  N.prototype._events = void 0;
3067
3073
  N.prototype._eventsCount = 0;
3068
3074
  N.prototype._maxListeners = void 0;
3069
- var en = 10;
3070
- function Nt(t) {
3075
+ var tn = 10;
3076
+ function Ft(t) {
3071
3077
  if (typeof t != "function")
3072
3078
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
3073
3079
  }
3074
3080
  Object.defineProperty(N, "defaultMaxListeners", {
3075
3081
  enumerable: !0,
3076
3082
  get: function() {
3077
- return en;
3083
+ return tn;
3078
3084
  },
3079
3085
  set: function(t) {
3080
- if (typeof t != "number" || t < 0 || Bn(t))
3086
+ if (typeof t != "number" || t < 0 || Un(t))
3081
3087
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
3082
- en = t;
3088
+ tn = t;
3083
3089
  }
3084
3090
  });
3085
3091
  N.init = function() {
3086
3092
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
3087
3093
  };
3088
3094
  N.prototype.setMaxListeners = function(e) {
3089
- if (typeof e != "number" || e < 0 || Bn(e))
3095
+ if (typeof e != "number" || e < 0 || Un(e))
3090
3096
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
3091
3097
  return this._maxListeners = e, this;
3092
3098
  };
3093
- function Un(t) {
3099
+ function qn(t) {
3094
3100
  return t._maxListeners === void 0 ? N.defaultMaxListeners : t._maxListeners;
3095
3101
  }
3096
3102
  N.prototype.getMaxListeners = function() {
3097
- return Un(this);
3103
+ return qn(this);
3098
3104
  };
3099
3105
  N.prototype.emit = function(e) {
3100
3106
  for (var r = [], n = 1; n < arguments.length; n++) r.push(arguments[n]);
@@ -3114,51 +3120,51 @@ N.prototype.emit = function(e) {
3114
3120
  if (u === void 0)
3115
3121
  return !1;
3116
3122
  if (typeof u == "function")
3117
- Zr(u, this, r);
3123
+ en(u, this, r);
3118
3124
  else
3119
- for (var l = u.length, c = Kn(u, l), n = 0; n < l; ++n)
3120
- Zr(c[n], this, r);
3125
+ for (var l = u.length, c = zn(u, l), n = 0; n < l; ++n)
3126
+ en(c[n], this, r);
3121
3127
  return !0;
3122
3128
  };
3123
- function qn(t, e, r, n) {
3129
+ function xn(t, e, r, n) {
3124
3130
  var i, o, s;
3125
- if (Nt(r), o = t._events, o === void 0 ? (o = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (o.newListener !== void 0 && (t.emit(
3131
+ if (Ft(r), o = t._events, o === void 0 ? (o = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (o.newListener !== void 0 && (t.emit(
3126
3132
  "newListener",
3127
3133
  e,
3128
3134
  r.listener ? r.listener : r
3129
3135
  ), o = t._events), s = o[e]), s === void 0)
3130
3136
  s = o[e] = r, ++t._eventsCount;
3131
- else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), i = Un(t), i > 0 && s.length > i && !s.warned) {
3137
+ else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), i = qn(t), i > 0 && s.length > i && !s.warned) {
3132
3138
  s.warned = !0;
3133
3139
  var a = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3134
- a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, ys(a);
3140
+ a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, ms(a);
3135
3141
  }
3136
3142
  return t;
3137
3143
  }
3138
3144
  N.prototype.addListener = function(e, r) {
3139
- return qn(this, e, r, !1);
3145
+ return xn(this, e, r, !1);
3140
3146
  };
3141
3147
  N.prototype.on = N.prototype.addListener;
3142
3148
  N.prototype.prependListener = function(e, r) {
3143
- return qn(this, e, r, !0);
3149
+ return xn(this, e, r, !0);
3144
3150
  };
3145
- function ms() {
3151
+ function gs() {
3146
3152
  if (!this.fired)
3147
3153
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
3148
3154
  }
3149
- function xn(t, e, r) {
3150
- var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = ms.bind(n);
3155
+ function Qn(t, e, r) {
3156
+ var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = gs.bind(n);
3151
3157
  return i.listener = r, n.wrapFn = i, i;
3152
3158
  }
3153
3159
  N.prototype.once = function(e, r) {
3154
- return Nt(r), this.on(e, xn(this, e, r)), this;
3160
+ return Ft(r), this.on(e, Qn(this, e, r)), this;
3155
3161
  };
3156
3162
  N.prototype.prependOnceListener = function(e, r) {
3157
- return Nt(r), this.prependListener(e, xn(this, e, r)), this;
3163
+ return Ft(r), this.prependListener(e, Qn(this, e, r)), this;
3158
3164
  };
3159
3165
  N.prototype.removeListener = function(e, r) {
3160
3166
  var n, i, o, s, a;
3161
- if (Nt(r), i = this._events, i === void 0)
3167
+ if (Ft(r), i = this._events, i === void 0)
3162
3168
  return this;
3163
3169
  if (n = i[e], n === void 0)
3164
3170
  return this;
@@ -3172,7 +3178,7 @@ N.prototype.removeListener = function(e, r) {
3172
3178
  }
3173
3179
  if (o < 0)
3174
3180
  return this;
3175
- o === 0 ? n.shift() : gs(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3181
+ o === 0 ? n.shift() : bs(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3176
3182
  }
3177
3183
  return this;
3178
3184
  };
@@ -3196,24 +3202,24 @@ N.prototype.removeAllListeners = function(e) {
3196
3202
  this.removeListener(e, r[i]);
3197
3203
  return this;
3198
3204
  };
3199
- function Qn(t, e, r) {
3205
+ function Gn(t, e, r) {
3200
3206
  var n = t._events;
3201
3207
  if (n === void 0)
3202
3208
  return [];
3203
3209
  var i = n[e];
3204
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? bs(i) : Kn(i, i.length);
3210
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? vs(i) : zn(i, i.length);
3205
3211
  }
3206
3212
  N.prototype.listeners = function(e) {
3207
- return Qn(this, e, !0);
3213
+ return Gn(this, e, !0);
3208
3214
  };
3209
3215
  N.prototype.rawListeners = function(e) {
3210
- return Qn(this, e, !1);
3216
+ return Gn(this, e, !1);
3211
3217
  };
3212
3218
  N.listenerCount = function(t, e) {
3213
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : Gn.call(t, e);
3219
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : Kn.call(t, e);
3214
3220
  };
3215
- N.prototype.listenerCount = Gn;
3216
- function Gn(t) {
3221
+ N.prototype.listenerCount = Kn;
3222
+ function Kn(t) {
3217
3223
  var e = this._events;
3218
3224
  if (e !== void 0) {
3219
3225
  var r = e[t];
@@ -3225,24 +3231,24 @@ function Gn(t) {
3225
3231
  return 0;
3226
3232
  }
3227
3233
  N.prototype.eventNames = function() {
3228
- return this._eventsCount > 0 ? ht(this._events) : [];
3234
+ return this._eventsCount > 0 ? yt(this._events) : [];
3229
3235
  };
3230
- function Kn(t, e) {
3236
+ function zn(t, e) {
3231
3237
  for (var r = new Array(e), n = 0; n < e; ++n)
3232
3238
  r[n] = t[n];
3233
3239
  return r;
3234
3240
  }
3235
- function gs(t, e) {
3241
+ function bs(t, e) {
3236
3242
  for (; e + 1 < t.length; e++)
3237
3243
  t[e] = t[e + 1];
3238
3244
  t.pop();
3239
3245
  }
3240
- function bs(t) {
3246
+ function vs(t) {
3241
3247
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
3242
3248
  e[r] = t[r].listener || t[r];
3243
3249
  return e;
3244
3250
  }
3245
- function vs(t, e) {
3251
+ function Ss(t, e) {
3246
3252
  return new Promise(function(r, n) {
3247
3253
  function i(s) {
3248
3254
  t.removeListener(e, o), n(s);
@@ -3250,13 +3256,13 @@ function vs(t, e) {
3250
3256
  function o() {
3251
3257
  typeof t.removeListener == "function" && t.removeListener("error", i), r([].slice.call(arguments));
3252
3258
  }
3253
- zn(t, e, o, { once: !0 }), e !== "error" && Ss(t, i, { once: !0 });
3259
+ Hn(t, e, o, { once: !0 }), e !== "error" && ws(t, i, { once: !0 });
3254
3260
  });
3255
3261
  }
3256
- function Ss(t, e, r) {
3257
- typeof t.on == "function" && zn(t, "error", e, r);
3262
+ function ws(t, e, r) {
3263
+ typeof t.on == "function" && Hn(t, "error", e, r);
3258
3264
  }
3259
- function zn(t, e, r, n) {
3265
+ function Hn(t, e, r, n) {
3260
3266
  if (typeof t.on == "function")
3261
3267
  n.once ? t.once(e, r) : t.on(e, r);
3262
3268
  else if (typeof t.addEventListener == "function")
@@ -3266,7 +3272,7 @@ function zn(t, e, r, n) {
3266
3272
  else
3267
3273
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
3268
3274
  }
3269
- var Hn = Er.exports, Ft = {}, Wn = {}, Yn = function() {
3275
+ var Wn = Ir.exports, Dt = {}, Yn = {}, Jn = function() {
3270
3276
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3271
3277
  return !1;
3272
3278
  if (typeof Symbol.iterator == "symbol")
@@ -3289,56 +3295,56 @@ var Hn = Er.exports, Ft = {}, Wn = {}, Yn = function() {
3289
3295
  return !1;
3290
3296
  }
3291
3297
  return !0;
3292
- }, ws = Yn, Dt = function() {
3293
- return ws() && !!Symbol.toStringTag;
3294
- }, As = Error, Es = EvalError, Is = RangeError, Ts = ReferenceError, Jn = SyntaxError, Rt = TypeError, Os = URIError, tn = typeof Symbol < "u" && Symbol, _s = Yn, Cs = function() {
3295
- return typeof tn != "function" || typeof Symbol != "function" || typeof tn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _s();
3296
- }, Bt = {
3298
+ }, As = Jn, Rt = function() {
3299
+ return As() && !!Symbol.toStringTag;
3300
+ }, Es = Error, Is = EvalError, Ts = RangeError, Os = ReferenceError, Xn = SyntaxError, Vt = TypeError, _s = URIError, rn = typeof Symbol < "u" && Symbol, Cs = Jn, Ls = function() {
3301
+ return typeof rn != "function" || typeof Symbol != "function" || typeof rn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Cs();
3302
+ }, Ut = {
3297
3303
  __proto__: null,
3298
3304
  foo: {}
3299
- }, Ls = Object, ks = function() {
3300
- return { __proto__: Bt }.foo === Bt.foo && !(Bt instanceof Ls);
3301
- }, Ps = "Function.prototype.bind called on incompatible ", Ns = Object.prototype.toString, Fs = Math.max, Ds = "[object Function]", rn = function(e, r) {
3305
+ }, ks = Object, Ps = function() {
3306
+ return { __proto__: Ut }.foo === Ut.foo && !(Ut instanceof ks);
3307
+ }, Ns = "Function.prototype.bind called on incompatible ", Fs = Object.prototype.toString, Ds = Math.max, Rs = "[object Function]", nn = function(e, r) {
3302
3308
  for (var n = [], i = 0; i < e.length; i += 1)
3303
3309
  n[i] = e[i];
3304
3310
  for (var o = 0; o < r.length; o += 1)
3305
3311
  n[o + e.length] = r[o];
3306
3312
  return n;
3307
- }, Rs = function(e, r) {
3313
+ }, Vs = function(e, r) {
3308
3314
  for (var n = [], i = r, o = 0; i < e.length; i += 1, o += 1)
3309
3315
  n[o] = e[i];
3310
3316
  return n;
3311
- }, Vs = function(t, e) {
3317
+ }, $s = function(t, e) {
3312
3318
  for (var r = "", n = 0; n < t.length; n += 1)
3313
3319
  r += t[n], n + 1 < t.length && (r += e);
3314
3320
  return r;
3315
- }, $s = function(e) {
3321
+ }, Ms = function(e) {
3316
3322
  var r = this;
3317
- if (typeof r != "function" || Ns.apply(r) !== Ds)
3318
- throw new TypeError(Ps + r);
3319
- for (var n = Rs(arguments, 1), i, o = function() {
3323
+ if (typeof r != "function" || Fs.apply(r) !== Rs)
3324
+ throw new TypeError(Ns + r);
3325
+ for (var n = Vs(arguments, 1), i, o = function() {
3320
3326
  if (this instanceof i) {
3321
3327
  var c = r.apply(
3322
3328
  this,
3323
- rn(n, arguments)
3329
+ nn(n, arguments)
3324
3330
  );
3325
3331
  return Object(c) === c ? c : this;
3326
3332
  }
3327
3333
  return r.apply(
3328
3334
  e,
3329
- rn(n, arguments)
3335
+ nn(n, arguments)
3330
3336
  );
3331
- }, s = Fs(0, r.length - n.length), a = [], u = 0; u < s; u++)
3337
+ }, s = Ds(0, r.length - n.length), a = [], u = 0; u < s; u++)
3332
3338
  a[u] = "$" + u;
3333
- if (i = Function("binder", "return function (" + Vs(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3339
+ if (i = Function("binder", "return function (" + $s(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3334
3340
  var l = function() {
3335
3341
  };
3336
3342
  l.prototype = r.prototype, i.prototype = new l(), l.prototype = null;
3337
3343
  }
3338
3344
  return i;
3339
- }, Ms = $s, Ir = Function.prototype.bind || Ms, js = Function.prototype.call, Bs = Object.prototype.hasOwnProperty, Us = Ir, qs = Us.call(js, Bs), T, xs = As, Qs = Es, Gs = Is, Ks = Ts, Ke = Jn, Ge = Rt, zs = Os, Xn = Function, Ut = function(t) {
3345
+ }, Bs = Ms, Tr = Function.prototype.bind || Bs, js = Function.prototype.call, Us = Object.prototype.hasOwnProperty, qs = Tr, xs = qs.call(js, Us), T, Qs = Es, Gs = Is, Ks = Ts, zs = Os, Ke = Xn, Ge = Vt, Hs = _s, Zn = Function, qt = function(t) {
3340
3346
  try {
3341
- return Xn('"use strict"; return (' + t + ").constructor;")();
3347
+ return Zn('"use strict"; return (' + t + ").constructor;")();
3342
3348
  } catch {
3343
3349
  }
3344
3350
  }, ke = Object.getOwnPropertyDescriptor;
@@ -3348,31 +3354,31 @@ if (ke)
3348
3354
  } catch {
3349
3355
  ke = null;
3350
3356
  }
3351
- var qt = function() {
3357
+ var xt = function() {
3352
3358
  throw new Ge();
3353
- }, Hs = ke ? function() {
3359
+ }, Ws = ke ? function() {
3354
3360
  try {
3355
- return arguments.callee, qt;
3361
+ return arguments.callee, xt;
3356
3362
  } catch {
3357
3363
  try {
3358
3364
  return ke(arguments, "callee").get;
3359
3365
  } catch {
3360
- return qt;
3366
+ return xt;
3361
3367
  }
3362
3368
  }
3363
- }() : qt, $e = Cs(), Ws = ks(), B = Object.getPrototypeOf || (Ws ? function(t) {
3369
+ }() : xt, $e = Ls(), Ys = Ps(), j = Object.getPrototypeOf || (Ys ? function(t) {
3364
3370
  return t.__proto__;
3365
- } : null), je = {}, Ys = typeof Uint8Array > "u" || !B ? T : B(Uint8Array), Pe = {
3371
+ } : null), Be = {}, Js = typeof Uint8Array > "u" || !j ? T : j(Uint8Array), Pe = {
3366
3372
  __proto__: null,
3367
3373
  "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
3368
3374
  "%Array%": Array,
3369
3375
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? T : ArrayBuffer,
3370
- "%ArrayIteratorPrototype%": $e && B ? B([][Symbol.iterator]()) : T,
3376
+ "%ArrayIteratorPrototype%": $e && j ? j([][Symbol.iterator]()) : T,
3371
3377
  "%AsyncFromSyncIteratorPrototype%": T,
3372
- "%AsyncFunction%": je,
3373
- "%AsyncGenerator%": je,
3374
- "%AsyncGeneratorFunction%": je,
3375
- "%AsyncIteratorPrototype%": je,
3378
+ "%AsyncFunction%": Be,
3379
+ "%AsyncGenerator%": Be,
3380
+ "%AsyncGeneratorFunction%": Be,
3381
+ "%AsyncIteratorPrototype%": Be,
3376
3382
  "%Atomics%": typeof Atomics > "u" ? T : Atomics,
3377
3383
  "%BigInt%": typeof BigInt > "u" ? T : BigInt,
3378
3384
  "%BigInt64Array%": typeof BigInt64Array > "u" ? T : BigInt64Array,
@@ -3384,24 +3390,24 @@ var qt = function() {
3384
3390
  "%decodeURIComponent%": decodeURIComponent,
3385
3391
  "%encodeURI%": encodeURI,
3386
3392
  "%encodeURIComponent%": encodeURIComponent,
3387
- "%Error%": xs,
3393
+ "%Error%": Qs,
3388
3394
  "%eval%": eval,
3389
3395
  // eslint-disable-line no-eval
3390
- "%EvalError%": Qs,
3396
+ "%EvalError%": Gs,
3391
3397
  "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
3392
3398
  "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
3393
3399
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
3394
- "%Function%": Xn,
3395
- "%GeneratorFunction%": je,
3400
+ "%Function%": Zn,
3401
+ "%GeneratorFunction%": Be,
3396
3402
  "%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
3397
3403
  "%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
3398
3404
  "%Int32Array%": typeof Int32Array > "u" ? T : Int32Array,
3399
3405
  "%isFinite%": isFinite,
3400
3406
  "%isNaN%": isNaN,
3401
- "%IteratorPrototype%": $e && B ? B(B([][Symbol.iterator]())) : T,
3407
+ "%IteratorPrototype%": $e && j ? j(j([][Symbol.iterator]())) : T,
3402
3408
  "%JSON%": typeof JSON == "object" ? JSON : T,
3403
3409
  "%Map%": typeof Map > "u" ? T : Map,
3404
- "%MapIteratorPrototype%": typeof Map > "u" || !$e || !B ? T : B((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3410
+ "%MapIteratorPrototype%": typeof Map > "u" || !$e || !j ? T : j((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3405
3411
  "%Math%": Math,
3406
3412
  "%Number%": Number,
3407
3413
  "%Object%": Object,
@@ -3409,53 +3415,53 @@ var qt = function() {
3409
3415
  "%parseInt%": parseInt,
3410
3416
  "%Promise%": typeof Promise > "u" ? T : Promise,
3411
3417
  "%Proxy%": typeof Proxy > "u" ? T : Proxy,
3412
- "%RangeError%": Gs,
3413
- "%ReferenceError%": Ks,
3418
+ "%RangeError%": Ks,
3419
+ "%ReferenceError%": zs,
3414
3420
  "%Reflect%": typeof Reflect > "u" ? T : Reflect,
3415
3421
  "%RegExp%": RegExp,
3416
3422
  "%Set%": typeof Set > "u" ? T : Set,
3417
- "%SetIteratorPrototype%": typeof Set > "u" || !$e || !B ? T : B((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3423
+ "%SetIteratorPrototype%": typeof Set > "u" || !$e || !j ? T : j((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3418
3424
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? T : SharedArrayBuffer,
3419
3425
  "%String%": String,
3420
- "%StringIteratorPrototype%": $e && B ? B(""[Symbol.iterator]()) : T,
3426
+ "%StringIteratorPrototype%": $e && j ? j(""[Symbol.iterator]()) : T,
3421
3427
  "%Symbol%": $e ? Symbol : T,
3422
3428
  "%SyntaxError%": Ke,
3423
- "%ThrowTypeError%": Hs,
3424
- "%TypedArray%": Ys,
3429
+ "%ThrowTypeError%": Ws,
3430
+ "%TypedArray%": Js,
3425
3431
  "%TypeError%": Ge,
3426
3432
  "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
3427
3433
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
3428
3434
  "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
3429
3435
  "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
3430
- "%URIError%": zs,
3436
+ "%URIError%": Hs,
3431
3437
  "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
3432
3438
  "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
3433
3439
  "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
3434
3440
  };
3435
- if (B)
3441
+ if (j)
3436
3442
  try {
3437
3443
  null.error;
3438
3444
  } catch (t) {
3439
- var Js = B(B(t));
3440
- Pe["%Error.prototype%"] = Js;
3445
+ var Xs = j(j(t));
3446
+ Pe["%Error.prototype%"] = Xs;
3441
3447
  }
3442
- var Xs = function t(e) {
3448
+ var Zs = function t(e) {
3443
3449
  var r;
3444
3450
  if (e === "%AsyncFunction%")
3445
- r = Ut("async function () {}");
3451
+ r = qt("async function () {}");
3446
3452
  else if (e === "%GeneratorFunction%")
3447
- r = Ut("function* () {}");
3453
+ r = qt("function* () {}");
3448
3454
  else if (e === "%AsyncGeneratorFunction%")
3449
- r = Ut("async function* () {}");
3455
+ r = qt("async function* () {}");
3450
3456
  else if (e === "%AsyncGenerator%") {
3451
3457
  var n = t("%AsyncGeneratorFunction%");
3452
3458
  n && (r = n.prototype);
3453
3459
  } else if (e === "%AsyncIteratorPrototype%") {
3454
3460
  var i = t("%AsyncGenerator%");
3455
- i && B && (r = B(i.prototype));
3461
+ i && j && (r = j(i.prototype));
3456
3462
  }
3457
3463
  return Pe[e] = r, r;
3458
- }, nn = {
3464
+ }, on = {
3459
3465
  __proto__: null,
3460
3466
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3461
3467
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -3508,21 +3514,21 @@ var Xs = function t(e) {
3508
3514
  "%URIErrorPrototype%": ["URIError", "prototype"],
3509
3515
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3510
3516
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3511
- }, it = Ir, At = qs, Zs = it.call(Function.call, Array.prototype.concat), ea = it.call(Function.apply, Array.prototype.splice), on = it.call(Function.call, String.prototype.replace), Et = it.call(Function.call, String.prototype.slice), ta = it.call(Function.call, RegExp.prototype.exec), ra = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, na = /\\(\\)?/g, ia = function(e) {
3512
- var r = Et(e, 0, 1), n = Et(e, -1);
3517
+ }, it = Tr, Et = xs, ea = it.call(Function.call, Array.prototype.concat), ta = it.call(Function.apply, Array.prototype.splice), sn = it.call(Function.call, String.prototype.replace), It = it.call(Function.call, String.prototype.slice), ra = it.call(Function.call, RegExp.prototype.exec), na = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ia = /\\(\\)?/g, oa = function(e) {
3518
+ var r = It(e, 0, 1), n = It(e, -1);
3513
3519
  if (r === "%" && n !== "%")
3514
3520
  throw new Ke("invalid intrinsic syntax, expected closing `%`");
3515
3521
  if (n === "%" && r !== "%")
3516
3522
  throw new Ke("invalid intrinsic syntax, expected opening `%`");
3517
3523
  var i = [];
3518
- return on(e, ra, function(o, s, a, u) {
3519
- i[i.length] = a ? on(u, na, "$1") : s || o;
3524
+ return sn(e, na, function(o, s, a, u) {
3525
+ i[i.length] = a ? sn(u, ia, "$1") : s || o;
3520
3526
  }), i;
3521
- }, oa = function(e, r) {
3527
+ }, sa = function(e, r) {
3522
3528
  var n = e, i;
3523
- if (At(nn, n) && (i = nn[n], n = "%" + i[0] + "%"), At(Pe, n)) {
3529
+ if (Et(on, n) && (i = on[n], n = "%" + i[0] + "%"), Et(Pe, n)) {
3524
3530
  var o = Pe[n];
3525
- if (o === je && (o = Xs(n)), typeof o > "u" && !r)
3531
+ if (o === Be && (o = Zs(n)), typeof o > "u" && !r)
3526
3532
  throw new Ge("intrinsic " + e + " exists, but is not available. Please file an issue!");
3527
3533
  return {
3528
3534
  alias: i,
@@ -3536,15 +3542,15 @@ var Xs = function t(e) {
3536
3542
  throw new Ge("intrinsic name must be a non-empty string");
3537
3543
  if (arguments.length > 1 && typeof r != "boolean")
3538
3544
  throw new Ge('"allowMissing" argument must be a boolean');
3539
- if (ta(/^%?[^%]*%?$/, e) === null)
3545
+ if (ra(/^%?[^%]*%?$/, e) === null)
3540
3546
  throw new Ke("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3541
- var n = ia(e), i = n.length > 0 ? n[0] : "", o = oa("%" + i + "%", r), s = o.name, a = o.value, u = !1, l = o.alias;
3542
- l && (i = l[0], ea(n, Zs([0, 1], l)));
3547
+ var n = oa(e), i = n.length > 0 ? n[0] : "", o = sa("%" + i + "%", r), s = o.name, a = o.value, u = !1, l = o.alias;
3548
+ l && (i = l[0], ta(n, ea([0, 1], l)));
3543
3549
  for (var c = 1, f = !0; c < n.length; c += 1) {
3544
- var p = n[c], v = Et(p, 0, 1), w = Et(p, -1);
3550
+ var p = n[c], v = It(p, 0, 1), w = It(p, -1);
3545
3551
  if ((v === '"' || v === "'" || v === "`" || w === '"' || w === "'" || w === "`") && v !== w)
3546
3552
  throw new Ke("property names with quotes must have matching quotes");
3547
- if ((p === "constructor" || !f) && (u = !0), i += "." + p, s = "%" + i + "%", At(Pe, s))
3553
+ if ((p === "constructor" || !f) && (u = !0), i += "." + p, s = "%" + i + "%", Et(Pe, s))
3548
3554
  a = Pe[s];
3549
3555
  else if (a != null) {
3550
3556
  if (!(p in a)) {
@@ -3556,15 +3562,15 @@ var Xs = function t(e) {
3556
3562
  var b = ke(a, p);
3557
3563
  f = !!b, f && "get" in b && !("originalValue" in b.get) ? a = b.get : a = a[p];
3558
3564
  } else
3559
- f = At(a, p), a = a[p];
3565
+ f = Et(a, p), a = a[p];
3560
3566
  f && !u && (Pe[s] = a);
3561
3567
  }
3562
3568
  }
3563
3569
  return a;
3564
- }, Zn = { exports: {} }, xt, sn;
3565
- function Tr() {
3566
- if (sn) return xt;
3567
- sn = 1;
3570
+ }, ei = { exports: {} }, Qt, an;
3571
+ function Or() {
3572
+ if (an) return Qt;
3573
+ an = 1;
3568
3574
  var t = ot, e = t("%Object.defineProperty%", !0) || !1;
3569
3575
  if (e)
3570
3576
  try {
@@ -3572,16 +3578,16 @@ function Tr() {
3572
3578
  } catch {
3573
3579
  e = !1;
3574
3580
  }
3575
- return xt = e, xt;
3581
+ return Qt = e, Qt;
3576
3582
  }
3577
- var sa = ot, yt = sa("%Object.getOwnPropertyDescriptor%", !0);
3578
- if (yt)
3583
+ var aa = ot, mt = aa("%Object.getOwnPropertyDescriptor%", !0);
3584
+ if (mt)
3579
3585
  try {
3580
- yt([], "length");
3586
+ mt([], "length");
3581
3587
  } catch {
3582
- yt = null;
3588
+ mt = null;
3583
3589
  }
3584
- var Vt = yt, an = Tr(), aa = Jn, Me = Rt, un = Vt, ua = function(e, r, n) {
3590
+ var $t = mt, un = Or(), ua = Xn, Me = Vt, cn = $t, ca = function(e, r, n) {
3585
3591
  if (!e || typeof e != "object" && typeof e != "function")
3586
3592
  throw new Me("`obj` must be an object or a function`");
3587
3593
  if (typeof r != "string" && typeof r != "symbol")
@@ -3594,9 +3600,9 @@ var Vt = yt, an = Tr(), aa = Jn, Me = Rt, un = Vt, ua = function(e, r, n) {
3594
3600
  throw new Me("`nonConfigurable`, if provided, must be a boolean or null");
3595
3601
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3596
3602
  throw new Me("`loose`, if provided, must be a boolean");
3597
- var i = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, s = arguments.length > 5 ? arguments[5] : null, a = arguments.length > 6 ? arguments[6] : !1, u = !!un && un(e, r);
3598
- if (an)
3599
- an(e, r, {
3603
+ var i = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, s = arguments.length > 5 ? arguments[5] : null, a = arguments.length > 6 ? arguments[6] : !1, u = !!cn && cn(e, r);
3604
+ if (un)
3605
+ un(e, r, {
3600
3606
  configurable: s === null && u ? u.configurable : !s,
3601
3607
  enumerable: i === null && u ? u.enumerable : !i,
3602
3608
  value: n,
@@ -3605,37 +3611,37 @@ var Vt = yt, an = Tr(), aa = Jn, Me = Rt, un = Vt, ua = function(e, r, n) {
3605
3611
  else if (a || !i && !o && !s)
3606
3612
  e[r] = n;
3607
3613
  else
3608
- throw new aa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3609
- }, ur = Tr(), ei = function() {
3610
- return !!ur;
3614
+ throw new ua("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3615
+ }, cr = Or(), ti = function() {
3616
+ return !!cr;
3611
3617
  };
3612
- ei.hasArrayLengthDefineBug = function() {
3613
- if (!ur)
3618
+ ti.hasArrayLengthDefineBug = function() {
3619
+ if (!cr)
3614
3620
  return null;
3615
3621
  try {
3616
- return ur([], "length", { value: 1 }).length !== 1;
3622
+ return cr([], "length", { value: 1 }).length !== 1;
3617
3623
  } catch {
3618
3624
  return !0;
3619
3625
  }
3620
3626
  };
3621
- var ca = ei, la = ot, cn = ua, da = ca(), ln = Vt, dn = Rt, fa = la("%Math.floor%"), pa = function(e, r) {
3627
+ var la = ti, da = ot, ln = ca, fa = la(), dn = $t, fn = Vt, pa = da("%Math.floor%"), ha = function(e, r) {
3622
3628
  if (typeof e != "function")
3623
- throw new dn("`fn` is not a function");
3624
- if (typeof r != "number" || r < 0 || r > 4294967295 || fa(r) !== r)
3625
- throw new dn("`length` must be a positive 32-bit integer");
3629
+ throw new fn("`fn` is not a function");
3630
+ if (typeof r != "number" || r < 0 || r > 4294967295 || pa(r) !== r)
3631
+ throw new fn("`length` must be a positive 32-bit integer");
3626
3632
  var n = arguments.length > 2 && !!arguments[2], i = !0, o = !0;
3627
- if ("length" in e && ln) {
3628
- var s = ln(e, "length");
3633
+ if ("length" in e && dn) {
3634
+ var s = dn(e, "length");
3629
3635
  s && !s.configurable && (i = !1), s && !s.writable && (o = !1);
3630
3636
  }
3631
- return (i || o || !n) && (da ? cn(
3637
+ return (i || o || !n) && (fa ? ln(
3632
3638
  /** @type {Parameters<define>[0]} */
3633
3639
  e,
3634
3640
  "length",
3635
3641
  r,
3636
3642
  !0,
3637
3643
  !0
3638
- ) : cn(
3644
+ ) : ln(
3639
3645
  /** @type {Parameters<define>[0]} */
3640
3646
  e,
3641
3647
  "length",
@@ -3643,7 +3649,7 @@ var ca = ei, la = ot, cn = ua, da = ca(), ln = Vt, dn = Rt, fa = la("%Math.floor
3643
3649
  )), e;
3644
3650
  };
3645
3651
  (function(t) {
3646
- var e = Ir, r = ot, n = pa, i = Rt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Tr(), l = r("%Math.max%");
3652
+ var e = Tr, r = ot, n = ha, i = Vt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Or(), l = r("%Math.max%");
3647
3653
  t.exports = function(p) {
3648
3654
  if (typeof p != "function")
3649
3655
  throw new i("a function is required");
@@ -3658,122 +3664,122 @@ var ca = ei, la = ot, cn = ua, da = ca(), ln = Vt, dn = Rt, fa = la("%Math.floor
3658
3664
  return a(e, o, arguments);
3659
3665
  };
3660
3666
  u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
3661
- })(Zn);
3662
- var Or = Zn.exports, ti = ot, ri = Or, ha = ri(ti("String.prototype.indexOf")), _r = function(e, r) {
3663
- var n = ti(e, !!r);
3664
- return typeof n == "function" && ha(e, ".prototype.") > -1 ? ri(n) : n;
3665
- }, ya = Dt(), ma = _r, cr = ma("Object.prototype.toString"), $t = function(e) {
3666
- return ya && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : cr(e) === "[object Arguments]";
3667
- }, ni = function(e) {
3668
- return $t(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && cr(e) !== "[object Array]" && cr(e.callee) === "[object Function]";
3669
- }, ga = function() {
3670
- return $t(arguments);
3667
+ })(ei);
3668
+ var _r = ei.exports, ri = ot, ni = _r, ya = ni(ri("String.prototype.indexOf")), Cr = function(e, r) {
3669
+ var n = ri(e, !!r);
3670
+ return typeof n == "function" && ya(e, ".prototype.") > -1 ? ni(n) : n;
3671
+ }, ma = Rt(), ga = Cr, lr = ga("Object.prototype.toString"), Mt = function(e) {
3672
+ return ma && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : lr(e) === "[object Arguments]";
3673
+ }, ii = function(e) {
3674
+ return Mt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && lr(e) !== "[object Array]" && lr(e.callee) === "[object Function]";
3675
+ }, ba = function() {
3676
+ return Mt(arguments);
3671
3677
  }();
3672
- $t.isLegacyArguments = ni;
3673
- var ba = ga ? $t : ni, va = Object.prototype.toString, Sa = Function.prototype.toString, wa = /^\s*(?:function)?\*/, ii = Dt(), Qt = Object.getPrototypeOf, Aa = function() {
3674
- if (!ii)
3678
+ Mt.isLegacyArguments = ii;
3679
+ var va = ba ? Mt : ii, Sa = Object.prototype.toString, wa = Function.prototype.toString, Aa = /^\s*(?:function)?\*/, oi = Rt(), Gt = Object.getPrototypeOf, Ea = function() {
3680
+ if (!oi)
3675
3681
  return !1;
3676
3682
  try {
3677
3683
  return Function("return function*() {}")();
3678
3684
  } catch {
3679
3685
  }
3680
- }, Gt, Ea = function(e) {
3686
+ }, Kt, Ia = function(e) {
3681
3687
  if (typeof e != "function")
3682
3688
  return !1;
3683
- if (wa.test(Sa.call(e)))
3689
+ if (Aa.test(wa.call(e)))
3684
3690
  return !0;
3685
- if (!ii) {
3686
- var r = va.call(e);
3691
+ if (!oi) {
3692
+ var r = Sa.call(e);
3687
3693
  return r === "[object GeneratorFunction]";
3688
3694
  }
3689
- if (!Qt)
3695
+ if (!Gt)
3690
3696
  return !1;
3691
- if (typeof Gt > "u") {
3692
- var n = Aa();
3693
- Gt = n ? Qt(n) : !1;
3697
+ if (typeof Kt > "u") {
3698
+ var n = Ea();
3699
+ Kt = n ? Gt(n) : !1;
3694
3700
  }
3695
- return Qt(e) === Gt;
3696
- }, oi = Function.prototype.toString, qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, lr, mt;
3701
+ return Gt(e) === Kt;
3702
+ }, si = Function.prototype.toString, qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, dr, gt;
3697
3703
  if (typeof qe == "function" && typeof Object.defineProperty == "function")
3698
3704
  try {
3699
- lr = Object.defineProperty({}, "length", {
3705
+ dr = Object.defineProperty({}, "length", {
3700
3706
  get: function() {
3701
- throw mt;
3707
+ throw gt;
3702
3708
  }
3703
- }), mt = {}, qe(function() {
3709
+ }), gt = {}, qe(function() {
3704
3710
  throw 42;
3705
- }, null, lr);
3711
+ }, null, dr);
3706
3712
  } catch (t) {
3707
- t !== mt && (qe = null);
3713
+ t !== gt && (qe = null);
3708
3714
  }
3709
3715
  else
3710
3716
  qe = null;
3711
- var Ia = /^\s*class\b/, dr = function(e) {
3717
+ var Ta = /^\s*class\b/, fr = function(e) {
3712
3718
  try {
3713
- var r = oi.call(e);
3714
- return Ia.test(r);
3719
+ var r = si.call(e);
3720
+ return Ta.test(r);
3715
3721
  } catch {
3716
3722
  return !1;
3717
3723
  }
3718
- }, Kt = function(e) {
3724
+ }, zt = function(e) {
3719
3725
  try {
3720
- return dr(e) ? !1 : (oi.call(e), !0);
3726
+ return fr(e) ? !1 : (si.call(e), !0);
3721
3727
  } catch {
3722
3728
  return !1;
3723
3729
  }
3724
- }, gt = Object.prototype.toString, Ta = "[object Object]", Oa = "[object Function]", _a = "[object GeneratorFunction]", Ca = "[object HTMLAllCollection]", La = "[object HTML document.all class]", ka = "[object HTMLCollection]", Pa = typeof Symbol == "function" && !!Symbol.toStringTag, Na = !(0 in [,]), fr = function() {
3730
+ }, bt = Object.prototype.toString, Oa = "[object Object]", _a = "[object Function]", Ca = "[object GeneratorFunction]", La = "[object HTMLAllCollection]", ka = "[object HTML document.all class]", Pa = "[object HTMLCollection]", Na = typeof Symbol == "function" && !!Symbol.toStringTag, Fa = !(0 in [,]), pr = function() {
3725
3731
  return !1;
3726
3732
  };
3727
3733
  if (typeof document == "object") {
3728
- var Fa = document.all;
3729
- gt.call(Fa) === gt.call(document.all) && (fr = function(e) {
3730
- if ((Na || !e) && (typeof e > "u" || typeof e == "object"))
3734
+ var Da = document.all;
3735
+ bt.call(Da) === bt.call(document.all) && (pr = function(e) {
3736
+ if ((Fa || !e) && (typeof e > "u" || typeof e == "object"))
3731
3737
  try {
3732
- var r = gt.call(e);
3733
- return (r === Ca || r === La || r === ka || r === Ta) && e("") == null;
3738
+ var r = bt.call(e);
3739
+ return (r === La || r === ka || r === Pa || r === Oa) && e("") == null;
3734
3740
  } catch {
3735
3741
  }
3736
3742
  return !1;
3737
3743
  });
3738
3744
  }
3739
- var Da = qe ? function(e) {
3740
- if (fr(e))
3745
+ var Ra = qe ? function(e) {
3746
+ if (pr(e))
3741
3747
  return !0;
3742
3748
  if (!e || typeof e != "function" && typeof e != "object")
3743
3749
  return !1;
3744
3750
  try {
3745
- qe(e, null, lr);
3751
+ qe(e, null, dr);
3746
3752
  } catch (r) {
3747
- if (r !== mt)
3753
+ if (r !== gt)
3748
3754
  return !1;
3749
3755
  }
3750
- return !dr(e) && Kt(e);
3756
+ return !fr(e) && zt(e);
3751
3757
  } : function(e) {
3752
- if (fr(e))
3758
+ if (pr(e))
3753
3759
  return !0;
3754
3760
  if (!e || typeof e != "function" && typeof e != "object")
3755
3761
  return !1;
3756
- if (Pa)
3757
- return Kt(e);
3758
- if (dr(e))
3762
+ if (Na)
3763
+ return zt(e);
3764
+ if (fr(e))
3759
3765
  return !1;
3760
- var r = gt.call(e);
3761
- return r !== Oa && r !== _a && !/^\[object HTML/.test(r) ? !1 : Kt(e);
3762
- }, Ra = Da, Va = Object.prototype.toString, si = Object.prototype.hasOwnProperty, $a = function(e, r, n) {
3766
+ var r = bt.call(e);
3767
+ return r !== _a && r !== Ca && !/^\[object HTML/.test(r) ? !1 : zt(e);
3768
+ }, Va = Ra, $a = Object.prototype.toString, ai = Object.prototype.hasOwnProperty, Ma = function(e, r, n) {
3763
3769
  for (var i = 0, o = e.length; i < o; i++)
3764
- si.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3765
- }, Ma = function(e, r, n) {
3770
+ ai.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3771
+ }, Ba = function(e, r, n) {
3766
3772
  for (var i = 0, o = e.length; i < o; i++)
3767
3773
  n == null ? r(e.charAt(i), i, e) : r.call(n, e.charAt(i), i, e);
3768
3774
  }, ja = function(e, r, n) {
3769
3775
  for (var i in e)
3770
- si.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3771
- }, Ba = function(e, r, n) {
3772
- if (!Ra(r))
3776
+ ai.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3777
+ }, Ua = function(e, r, n) {
3778
+ if (!Va(r))
3773
3779
  throw new TypeError("iterator must be a function");
3774
3780
  var i;
3775
- arguments.length >= 3 && (i = n), Va.call(e) === "[object Array]" ? $a(e, r, i) : typeof e == "string" ? Ma(e, r, i) : ja(e, r, i);
3776
- }, ai = Ba, Ua = [
3781
+ arguments.length >= 3 && (i = n), $a.call(e) === "[object Array]" ? Ma(e, r, i) : typeof e == "string" ? Ba(e, r, i) : ja(e, r, i);
3782
+ }, ui = Ua, qa = [
3777
3783
  "Float32Array",
3778
3784
  "Float64Array",
3779
3785
  "Int8Array",
@@ -3785,121 +3791,121 @@ var Da = qe ? function(e) {
3785
3791
  "Uint32Array",
3786
3792
  "BigInt64Array",
3787
3793
  "BigUint64Array"
3788
- ], zt = Ua, qa = typeof globalThis > "u" ? Sr : globalThis, ui = function() {
3789
- for (var e = [], r = 0; r < zt.length; r++)
3790
- typeof qa[zt[r]] == "function" && (e[e.length] = zt[r]);
3794
+ ], Ht = qa, xa = typeof globalThis > "u" ? wr : globalThis, ci = function() {
3795
+ for (var e = [], r = 0; r < Ht.length; r++)
3796
+ typeof xa[Ht[r]] == "function" && (e[e.length] = Ht[r]);
3791
3797
  return e;
3792
- }, It = ai, xa = ui, fn = Or, Cr = _r, bt = Vt, Qa = Cr("Object.prototype.toString"), ci = Dt(), pn = typeof globalThis > "u" ? Sr : globalThis, pr = xa(), Lr = Cr("String.prototype.slice"), Ht = Object.getPrototypeOf, Ga = Cr("Array.prototype.indexOf", !0) || function(e, r) {
3798
+ }, Tt = ui, Qa = ci, pn = _r, Lr = Cr, vt = $t, Ga = Lr("Object.prototype.toString"), li = Rt(), hn = typeof globalThis > "u" ? wr : globalThis, hr = Qa(), kr = Lr("String.prototype.slice"), Wt = Object.getPrototypeOf, Ka = Lr("Array.prototype.indexOf", !0) || function(e, r) {
3793
3799
  for (var n = 0; n < e.length; n += 1)
3794
3800
  if (e[n] === r)
3795
3801
  return n;
3796
3802
  return -1;
3797
- }, Tt = { __proto__: null };
3798
- ci && bt && Ht ? It(pr, function(t) {
3799
- var e = new pn[t]();
3803
+ }, Ot = { __proto__: null };
3804
+ li && vt && Wt ? Tt(hr, function(t) {
3805
+ var e = new hn[t]();
3800
3806
  if (Symbol.toStringTag in e) {
3801
- var r = Ht(e), n = bt(r, Symbol.toStringTag);
3807
+ var r = Wt(e), n = vt(r, Symbol.toStringTag);
3802
3808
  if (!n) {
3803
- var i = Ht(r);
3804
- n = bt(i, Symbol.toStringTag);
3809
+ var i = Wt(r);
3810
+ n = vt(i, Symbol.toStringTag);
3805
3811
  }
3806
- Tt["$" + t] = fn(n.get);
3812
+ Ot["$" + t] = pn(n.get);
3807
3813
  }
3808
- }) : It(pr, function(t) {
3809
- var e = new pn[t](), r = e.slice || e.set;
3810
- r && (Tt["$" + t] = fn(r));
3814
+ }) : Tt(hr, function(t) {
3815
+ var e = new hn[t](), r = e.slice || e.set;
3816
+ r && (Ot["$" + t] = pn(r));
3811
3817
  });
3812
- var Ka = function(e) {
3818
+ var za = function(e) {
3813
3819
  var r = !1;
3814
- return It(Tt, function(n, i) {
3820
+ return Tt(Ot, function(n, i) {
3815
3821
  if (!r)
3816
3822
  try {
3817
- "$" + n(e) === i && (r = Lr(i, 1));
3823
+ "$" + n(e) === i && (r = kr(i, 1));
3818
3824
  } catch {
3819
3825
  }
3820
3826
  }), r;
3821
- }, za = function(e) {
3827
+ }, Ha = function(e) {
3822
3828
  var r = !1;
3823
- return It(Tt, function(n, i) {
3829
+ return Tt(Ot, function(n, i) {
3824
3830
  if (!r)
3825
3831
  try {
3826
- n(e), r = Lr(i, 1);
3832
+ n(e), r = kr(i, 1);
3827
3833
  } catch {
3828
3834
  }
3829
3835
  }), r;
3830
- }, Ha = function(e) {
3836
+ }, Wa = function(e) {
3831
3837
  if (!e || typeof e != "object")
3832
3838
  return !1;
3833
- if (!ci) {
3834
- var r = Lr(Qa(e), 8, -1);
3835
- return Ga(pr, r) > -1 ? r : r !== "Object" ? !1 : za(e);
3839
+ if (!li) {
3840
+ var r = kr(Ga(e), 8, -1);
3841
+ return Ka(hr, r) > -1 ? r : r !== "Object" ? !1 : Ha(e);
3836
3842
  }
3837
- return bt ? Ka(e) : null;
3838
- }, Ot = ai, Wa = ui, hn = Or, kr = _r, vt = Vt, Ya = kr("Object.prototype.toString"), li = Dt(), yn = typeof globalThis > "u" ? Sr : globalThis, hr = Wa(), Pr = kr("String.prototype.slice"), Wt = Object.getPrototypeOf, Ja = kr("Array.prototype.indexOf", !0) || function(e, r) {
3843
+ return vt ? za(e) : null;
3844
+ }, _t = ui, Ya = ci, yn = _r, Pr = Cr, St = $t, Ja = Pr("Object.prototype.toString"), di = Rt(), mn = typeof globalThis > "u" ? wr : globalThis, yr = Ya(), Nr = Pr("String.prototype.slice"), Yt = Object.getPrototypeOf, Xa = Pr("Array.prototype.indexOf", !0) || function(e, r) {
3839
3845
  for (var n = 0; n < e.length; n += 1)
3840
3846
  if (e[n] === r)
3841
3847
  return n;
3842
3848
  return -1;
3843
- }, _t = { __proto__: null };
3844
- li && vt && Wt ? Ot(hr, function(t) {
3845
- var e = new yn[t]();
3849
+ }, Ct = { __proto__: null };
3850
+ di && St && Yt ? _t(yr, function(t) {
3851
+ var e = new mn[t]();
3846
3852
  if (Symbol.toStringTag in e) {
3847
- var r = Wt(e), n = vt(r, Symbol.toStringTag);
3853
+ var r = Yt(e), n = St(r, Symbol.toStringTag);
3848
3854
  if (!n) {
3849
- var i = Wt(r);
3850
- n = vt(i, Symbol.toStringTag);
3855
+ var i = Yt(r);
3856
+ n = St(i, Symbol.toStringTag);
3851
3857
  }
3852
- _t["$" + t] = hn(n.get);
3858
+ Ct["$" + t] = yn(n.get);
3853
3859
  }
3854
- }) : Ot(hr, function(t) {
3855
- var e = new yn[t](), r = e.slice || e.set;
3856
- r && (_t["$" + t] = hn(r));
3860
+ }) : _t(yr, function(t) {
3861
+ var e = new mn[t](), r = e.slice || e.set;
3862
+ r && (Ct["$" + t] = yn(r));
3857
3863
  });
3858
- var Xa = function(e) {
3864
+ var Za = function(e) {
3859
3865
  var r = !1;
3860
- return Ot(
3866
+ return _t(
3861
3867
  // eslint-disable-next-line no-extra-parens
3862
3868
  /** @type {Record<`\$${TypedArrayName}`, Getter>} */
3863
3869
  /** @type {any} */
3864
- _t,
3870
+ Ct,
3865
3871
  /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
3866
3872
  function(n, i) {
3867
3873
  if (!r)
3868
3874
  try {
3869
- "$" + n(e) === i && (r = Pr(i, 1));
3875
+ "$" + n(e) === i && (r = Nr(i, 1));
3870
3876
  } catch {
3871
3877
  }
3872
3878
  }
3873
3879
  ), r;
3874
- }, Za = function(e) {
3880
+ }, eu = function(e) {
3875
3881
  var r = !1;
3876
- return Ot(
3882
+ return _t(
3877
3883
  // eslint-disable-next-line no-extra-parens
3878
3884
  /** @type {Record<`\$${TypedArrayName}`, Getter>} */
3879
3885
  /** @type {any} */
3880
- _t,
3886
+ Ct,
3881
3887
  /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
3882
3888
  function(n, i) {
3883
3889
  if (!r)
3884
3890
  try {
3885
- n(e), r = Pr(i, 1);
3891
+ n(e), r = Nr(i, 1);
3886
3892
  } catch {
3887
3893
  }
3888
3894
  }
3889
3895
  ), r;
3890
- }, eu = function(e) {
3896
+ }, tu = function(e) {
3891
3897
  if (!e || typeof e != "object")
3892
3898
  return !1;
3893
- if (!li) {
3894
- var r = Pr(Ya(e), 8, -1);
3895
- return Ja(hr, r) > -1 ? r : r !== "Object" ? !1 : Za(e);
3899
+ if (!di) {
3900
+ var r = Nr(Ja(e), 8, -1);
3901
+ return Xa(yr, r) > -1 ? r : r !== "Object" ? !1 : eu(e);
3896
3902
  }
3897
- return vt ? Xa(e) : null;
3898
- }, tu = eu, ru = function(e) {
3899
- return !!tu(e);
3903
+ return St ? Za(e) : null;
3904
+ }, ru = tu, nu = function(e) {
3905
+ return !!ru(e);
3900
3906
  };
3901
3907
  (function(t) {
3902
- var e = ba, r = Ea, n = Ha, i = ru;
3908
+ var e = va, r = Ia, n = Wa, i = nu;
3903
3909
  function o(y) {
3904
3910
  return y.call.bind(y);
3905
3911
  }
@@ -3908,11 +3914,11 @@ var Xa = function(e) {
3908
3914
  var p = o(BigInt.prototype.valueOf);
3909
3915
  if (a)
3910
3916
  var v = o(Symbol.prototype.valueOf);
3911
- function w(y, gi) {
3917
+ function w(y, bi) {
3912
3918
  if (typeof y != "object")
3913
3919
  return !1;
3914
3920
  try {
3915
- return gi(y), !0;
3921
+ return bi(y), !0;
3916
3922
  } catch {
3917
3923
  return !1;
3918
3924
  }
@@ -3938,10 +3944,10 @@ var Xa = function(e) {
3938
3944
  return n(y) === "Uint16Array";
3939
3945
  }
3940
3946
  t.isUint16Array = K;
3941
- function ee(y) {
3947
+ function te(y) {
3942
3948
  return n(y) === "Uint32Array";
3943
3949
  }
3944
- t.isUint32Array = ee;
3950
+ t.isUint32Array = te;
3945
3951
  function P(y) {
3946
3952
  return n(y) === "Int8Array";
3947
3953
  }
@@ -3974,10 +3980,10 @@ var Xa = function(e) {
3974
3980
  return u(y) === "[object Map]";
3975
3981
  }
3976
3982
  de.working = typeof Map < "u" && de(/* @__PURE__ */ new Map());
3977
- function Mt(y) {
3983
+ function Bt(y) {
3978
3984
  return typeof Map > "u" ? !1 : de.working ? de(y) : y instanceof Map;
3979
3985
  }
3980
- t.isMap = Mt;
3986
+ t.isMap = Bt;
3981
3987
  function we(y) {
3982
3988
  return u(y) === "[object Set]";
3983
3989
  }
@@ -4062,18 +4068,18 @@ var Xa = function(e) {
4062
4068
  return s && w(y, p);
4063
4069
  }
4064
4070
  t.isBigIntObject = ut;
4065
- function Dr(y) {
4071
+ function Rr(y) {
4066
4072
  return a && w(y, v);
4067
4073
  }
4068
- t.isSymbolObject = Dr;
4069
- function yi(y) {
4070
- return Te(y) || at(y) || Ve(y) || ut(y) || Dr(y);
4071
- }
4072
- t.isBoxedPrimitive = yi;
4074
+ t.isSymbolObject = Rr;
4073
4075
  function mi(y) {
4076
+ return Te(y) || at(y) || Ve(y) || ut(y) || Rr(y);
4077
+ }
4078
+ t.isBoxedPrimitive = mi;
4079
+ function gi(y) {
4074
4080
  return typeof Uint8Array < "u" && (st(y) || L(y));
4075
4081
  }
4076
- t.isAnyArrayBuffer = mi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
4082
+ t.isAnyArrayBuffer = gi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
4077
4083
  Object.defineProperty(t, y, {
4078
4084
  enumerable: !1,
4079
4085
  value: function() {
@@ -4081,11 +4087,11 @@ var Xa = function(e) {
4081
4087
  }
4082
4088
  });
4083
4089
  });
4084
- })(Wn);
4085
- var nu = function(e) {
4090
+ })(Yn);
4091
+ var iu = function(e) {
4086
4092
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
4087
- }, yr = { exports: {} };
4088
- typeof Object.create == "function" ? yr.exports = function(e, r) {
4093
+ }, mr = { exports: {} };
4094
+ typeof Object.create == "function" ? mr.exports = function(e, r) {
4089
4095
  r && (e.super_ = r, e.prototype = Object.create(r.prototype, {
4090
4096
  constructor: {
4091
4097
  value: e,
@@ -4094,7 +4100,7 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
4094
4100
  configurable: !0
4095
4101
  }
4096
4102
  }));
4097
- } : yr.exports = function(e, r) {
4103
+ } : mr.exports = function(e, r) {
4098
4104
  if (r) {
4099
4105
  e.super_ = r;
4100
4106
  var n = function() {
@@ -4102,7 +4108,7 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
4102
4108
  n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
4103
4109
  }
4104
4110
  };
4105
- var iu = yr.exports;
4111
+ var ou = mr.exports;
4106
4112
  (function(t) {
4107
4113
  var e = Object.getOwnPropertyDescriptors || function(h) {
4108
4114
  for (var m = Object.keys(h), A = {}, L = 0; L < m.length; L++)
@@ -4263,7 +4269,7 @@ var iu = yr.exports;
4263
4269
  var m = "'" + JSON.stringify(h).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
4264
4270
  return d.stylize(m, "string");
4265
4271
  }
4266
- if (ee(h))
4272
+ if (te(h))
4267
4273
  return d.stylize("" + h, "number");
4268
4274
  if (S(h))
4269
4275
  return d.stylize("" + h, "boolean");
@@ -4322,7 +4328,7 @@ var iu = yr.exports;
4322
4328
  `) + " " + d.join(`,
4323
4329
  `) + " " + m[1] : m[0] + h + " " + d.join(", ") + " " + m[1];
4324
4330
  }
4325
- t.types = Wn;
4331
+ t.types = Yn;
4326
4332
  function g(d) {
4327
4333
  return Array.isArray(d);
4328
4334
  }
@@ -4339,10 +4345,10 @@ var iu = yr.exports;
4339
4345
  return d == null;
4340
4346
  }
4341
4347
  t.isNullOrUndefined = K;
4342
- function ee(d) {
4348
+ function te(d) {
4343
4349
  return typeof d == "number";
4344
4350
  }
4345
- t.isNumber = ee;
4351
+ t.isNumber = te;
4346
4352
  function P(d) {
4347
4353
  return typeof d == "string";
4348
4354
  }
@@ -4375,11 +4381,11 @@ var iu = yr.exports;
4375
4381
  return typeof d == "function";
4376
4382
  }
4377
4383
  t.isFunction = de;
4378
- function Mt(d) {
4384
+ function Bt(d) {
4379
4385
  return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
4380
4386
  typeof d > "u";
4381
4387
  }
4382
- t.isPrimitive = Mt, t.isBuffer = nu;
4388
+ t.isPrimitive = Bt, t.isBuffer = iu;
4383
4389
  function we(d) {
4384
4390
  return Object.prototype.toString.call(d);
4385
4391
  }
@@ -4410,7 +4416,7 @@ var iu = yr.exports;
4410
4416
  }
4411
4417
  t.log = function() {
4412
4418
  console.log("%s - %s", jt(), t.format.apply(t, arguments));
4413
- }, t.inherits = iu, t._extend = function(d, h) {
4419
+ }, t.inherits = ou, t._extend = function(d, h) {
4414
4420
  if (!h || !oe(h)) return d;
4415
4421
  for (var m = Object.keys(h), A = m.length; A--; )
4416
4422
  d[m[A]] = h[m[A]];
@@ -4493,21 +4499,21 @@ var iu = yr.exports;
4493
4499
  ), h;
4494
4500
  }
4495
4501
  t.callbackify = st;
4496
- })(Ft);
4497
- const { inherits: ou, format: Yt } = Ft;
4502
+ })(Dt);
4503
+ const { inherits: su, format: Jt } = Dt;
4498
4504
  function Oe(t, e, r = Error) {
4499
4505
  if (!t) throw new Error("Avvio error code must not be empty");
4500
4506
  if (!e) throw new Error("Avvio base error message must not be empty");
4501
4507
  function n(i, o, s) {
4502
4508
  if (!new.target)
4503
4509
  return new n(i, o, s);
4504
- Error.captureStackTrace(this, n), this.code = t, this.message = e, this.name = "AvvioError", i && o && s ? this.message = Yt(e, i, o, s) : i && o ? this.message = Yt(e, i, o) : i ? this.message = Yt(e, i) : this.message = e;
4510
+ Error.captureStackTrace(this, n), this.code = t, this.message = e, this.name = "AvvioError", i && o && s ? this.message = Jt(e, i, o, s) : i && o ? this.message = Jt(e, i, o) : i ? this.message = Jt(e, i) : this.message = e;
4505
4511
  }
4506
4512
  return n.prototype[Symbol.toStringTag] = "Error", n.prototype.toString = function() {
4507
4513
  return `${this.name} [${this.code}]: ${this.message}`;
4508
- }, ou(n, r), n;
4514
+ }, su(n, r), n;
4509
4515
  }
4510
- var di = {
4516
+ var fi = {
4511
4517
  createError: Oe,
4512
4518
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Oe(
4513
4519
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -4533,7 +4539,7 @@ var di = {
4533
4539
  "AVV_ERR_READY_TIMEOUT",
4534
4540
  "Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
4535
4541
  )
4536
- }, su = function t(e, r, n) {
4542
+ }, au = function t(e, r, n) {
4537
4543
  r === void 0 && (r = ""), n || (n = {});
4538
4544
  var i = function(u) {
4539
4545
  var l = {
@@ -4555,15 +4561,15 @@ var di = {
4555
4561
  return r + i(c ? "└" : "├") + i("─") + i(f ? "┬" : "─") + " " + t(u, p, n).slice(r.length + 2);
4556
4562
  }).join("");
4557
4563
  };
4558
- const au = su, mn = Symbol("avvio.TimeTree.untrackNode"), Jt = Symbol("avvio.TimeTree.trackNode"), gn = Symbol("avvio.TimeTree.getParent"), bn = Symbol("avvio.TimeTree.getNode"), vn = Symbol("avvio.TimeTree.addNode");
4559
- let uu = class {
4564
+ const uu = au, gn = Symbol("avvio.TimeTree.untrackNode"), Xt = Symbol("avvio.TimeTree.trackNode"), bn = Symbol("avvio.TimeTree.getParent"), vn = Symbol("avvio.TimeTree.getNode"), Sn = Symbol("avvio.TimeTree.addNode");
4565
+ let cu = class {
4560
4566
  constructor() {
4561
4567
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
4562
4568
  }
4563
- [Jt](e) {
4569
+ [Xt](e) {
4564
4570
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
4565
4571
  }
4566
- [mn](e) {
4572
+ [gn](e) {
4567
4573
  this.tableId.delete(e.id);
4568
4574
  const r = this.tableLabel.get(e.label);
4569
4575
  if (r.id) {
@@ -4572,53 +4578,53 @@ let uu = class {
4572
4578
  }
4573
4579
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
4574
4580
  }
4575
- [gn](e) {
4581
+ [bn](e) {
4576
4582
  if (e === null)
4577
4583
  return this.root;
4578
4584
  const r = this.tableLabel.get(e);
4579
4585
  return r.id ? r : r[r.length - 1];
4580
4586
  }
4581
- [bn](e) {
4587
+ [vn](e) {
4582
4588
  return this.tableId.get(e);
4583
4589
  }
4584
- [vn](e, r, n) {
4590
+ [Sn](e, r, n) {
4585
4591
  if (e === null)
4586
4592
  return this.root = {
4587
4593
  id: "root",
4588
4594
  label: r,
4589
4595
  start: n,
4590
4596
  nodes: []
4591
- }, this[Jt](this.root), this.root.id;
4592
- const o = this[gn](e), s = `${r}-${Math.random()}`, a = {
4597
+ }, this[Xt](this.root), this.root.id;
4598
+ const o = this[bn](e), s = `${r}-${Math.random()}`, a = {
4593
4599
  id: s,
4594
4600
  parent: e,
4595
4601
  start: n,
4596
4602
  label: r,
4597
4603
  nodes: []
4598
4604
  };
4599
- return o.nodes.push(a), this[Jt](a), s;
4605
+ return o.nodes.push(a), this[Xt](a), s;
4600
4606
  }
4601
4607
  start(e, r, n = Date.now()) {
4602
- return this[vn](e, r, n);
4608
+ return this[Sn](e, r, n);
4603
4609
  }
4604
4610
  stop(e, r = Date.now()) {
4605
- const n = this[bn](e);
4606
- n && (n.stop = r, n.diff = n.stop - n.start || 0, this[mn](n));
4611
+ const n = this[vn](e);
4612
+ n && (n.stop = r, n.diff = n.stop - n.start || 0, this[gn](n));
4607
4613
  }
4608
4614
  toJSON() {
4609
4615
  return Object.assign({}, this.root);
4610
4616
  }
4611
4617
  prittyPrint() {
4612
4618
  const e = (n) => (n.label = `${n.label} ${n.diff} ms`, n.nodes.length > 0 && (n.nodes = n.nodes.map((i) => e(i))), n), r = e(this.toJSON());
4613
- return au(r);
4619
+ return uu(r);
4614
4620
  }
4615
4621
  };
4616
- var cu = uu, Nr = { exports: {} }, mr = { exports: {} }, Xt, Sn;
4617
- function lu() {
4618
- if (Sn) return Xt;
4619
- Sn = 1;
4622
+ var lu = cu, Fr = { exports: {} }, gr = { exports: {} }, Zt, wn;
4623
+ function du() {
4624
+ if (wn) return Zt;
4625
+ wn = 1;
4620
4626
  var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, o = n * 365.25;
4621
- Xt = function(c, f) {
4627
+ Zt = function(c, f) {
4622
4628
  f = f || {};
4623
4629
  var p = typeof c;
4624
4630
  if (p === "string" && c.length > 0)
@@ -4693,10 +4699,10 @@ function lu() {
4693
4699
  var w = f >= p * 1.5;
4694
4700
  return Math.round(c / p) + " " + v + (w ? "s" : "");
4695
4701
  }
4696
- return Xt;
4702
+ return Zt;
4697
4703
  }
4698
- function du(t) {
4699
- r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = lu(), r.destroy = l, Object.keys(t).forEach((c) => {
4704
+ function fu(t) {
4705
+ r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = du(), r.destroy = l, Object.keys(t).forEach((c) => {
4700
4706
  r[c] = t[c];
4701
4707
  }), r.names = [], r.skips = [], r.formatters = {};
4702
4708
  function e(c) {
@@ -4713,15 +4719,15 @@ function du(t) {
4713
4719
  return;
4714
4720
  const S = b, R = Number(/* @__PURE__ */ new Date()), K = R - (f || R);
4715
4721
  S.diff = K, S.prev = f, S.curr = R, f = R, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
4716
- let ee = 0;
4722
+ let te = 0;
4717
4723
  g[0] = g[0].replace(/%([a-zA-Z%])/g, (V, O) => {
4718
4724
  if (V === "%%")
4719
4725
  return "%";
4720
- ee++;
4726
+ te++;
4721
4727
  const ie = r.formatters[O];
4722
4728
  if (typeof ie == "function") {
4723
- const oe = g[ee];
4724
- V = ie.call(S, oe), g.splice(ee, 1), ee--;
4729
+ const oe = g[te];
4730
+ V = ie.call(S, oe), g.splice(te, 1), te--;
4725
4731
  }
4726
4732
  return V;
4727
4733
  }), r.formatArgs.call(S, g), (S.log || r.log).apply(S, g);
@@ -4776,7 +4782,7 @@ function du(t) {
4776
4782
  }
4777
4783
  return r.enable(r.load()), r;
4778
4784
  }
4779
- var fu = du;
4785
+ var pu = fu;
4780
4786
  (function(t, e) {
4781
4787
  e.formatArgs = n, e.save = i, e.load = o, e.useColors = r, e.storage = s(), e.destroy = /* @__PURE__ */ (() => {
4782
4788
  let u = !1;
@@ -4900,7 +4906,7 @@ var fu = du;
4900
4906
  } catch {
4901
4907
  }
4902
4908
  }
4903
- t.exports = fu(e);
4909
+ t.exports = pu(e);
4904
4910
  const { formatters: a } = t.exports;
4905
4911
  a.j = function(u) {
4906
4912
  try {
@@ -4909,23 +4915,23 @@ var fu = du;
4909
4915
  return "[UnexpectedJSONParseError]: " + l.message;
4910
4916
  }
4911
4917
  };
4912
- })(mr, mr.exports);
4913
- var fi = mr.exports;
4914
- const pu = jn, hu = Hn.EventEmitter, yu = Ft.inherits, U = fi("avvio"), { AVV_ERR_READY_TIMEOUT: mu } = di, Zt = Symbol.for("plugin-meta");
4915
- function gu(t, e) {
4916
- return t[Zt] && t[Zt].name ? t[Zt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4918
+ })(gr, gr.exports);
4919
+ var pi = gr.exports;
4920
+ const hu = jn, yu = Wn.EventEmitter, mu = Dt.inherits, U = pi("avvio"), { AVV_ERR_READY_TIMEOUT: gu } = fi, er = Symbol.for("plugin-meta");
4921
+ function bu(t, e) {
4922
+ return t[er] && t[er].name ? t[er].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4917
4923
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
4918
4924
  }
4919
- function bu() {
4925
+ function vu() {
4920
4926
  const t = {};
4921
4927
  return t.promise = new Promise((e, r) => {
4922
4928
  t.resolve = e, t.reject = r;
4923
4929
  }), t;
4924
4930
  }
4925
4931
  function We(t, e, r, n, i) {
4926
- this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = i === void 0 ? t._timeout : i, this.name = gu(e, r), this.isAfter = n, this.q = pu(t, vu, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4932
+ this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = i === void 0 ? t._timeout : i, this.name = bu(e, r), this.isAfter = n, this.q = hu(t, Su, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4927
4933
  }
4928
- yu(We, hu);
4934
+ mu(We, yu);
4929
4935
  We.prototype.exec = function(t, e) {
4930
4936
  const r = this.func;
4931
4937
  let n = !1;
@@ -4953,7 +4959,7 @@ We.prototype.exec = function(t, e) {
4953
4959
  };
4954
4960
  this.timeout > 0 && (U("setting up timeout", i, this.timeout), o = setTimeout(function() {
4955
4961
  U("timed out", i), o = null;
4956
- const u = new mu(i);
4962
+ const u = new gu(i);
4957
4963
  u.fn = r, s(u);
4958
4964
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4959
4965
  const a = r(this.server, this.opts, s);
@@ -4971,7 +4977,7 @@ We.prototype.loadedSoFar = function() {
4971
4977
  }), this.q.resume();
4972
4978
  };
4973
4979
  let e;
4974
- return this._promise ? e = Promise.resolve() : (this._promise = bu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4980
+ return this._promise ? e = Promise.resolve() : (this._promise = vu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4975
4981
  };
4976
4982
  We.prototype.enqueue = function(t, e) {
4977
4983
  U("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
@@ -4996,19 +5002,19 @@ We.prototype.finish = function(t, e) {
4996
5002
  r();
4997
5003
  else
4998
5004
  U("delayed", this.name), this.q.drain = () => {
4999
- U("drain", this.name), this.q.drain = Su, queueMicrotask(n);
5005
+ U("drain", this.name), this.q.drain = wu, queueMicrotask(n);
5000
5006
  };
5001
5007
  };
5002
5008
  queueMicrotask(n), this.q.resume();
5003
5009
  };
5004
- function vu(t, e) {
5010
+ function Su(t, e) {
5005
5011
  const r = this;
5006
- E.nextTick(Fr.bind(r), t, e);
5012
+ E.nextTick(Dr.bind(r), t, e);
5007
5013
  }
5008
- function Fr(t, e) {
5014
+ function Dr(t, e) {
5009
5015
  if (typeof t.func.then == "function") {
5010
5016
  t.func.then((n) => {
5011
- typeof n.default == "function" && (n = n.default), t.func = n, Fr.call(this, t, e);
5017
+ typeof n.default == "function" && (n = n.default), t.func = n, Dr.call(this, t, e);
5012
5018
  }, e);
5013
5019
  return;
5014
5020
  }
@@ -5019,59 +5025,59 @@ function Fr(t, e) {
5019
5025
  });
5020
5026
  });
5021
5027
  }
5022
- function Su() {
5028
+ function wu() {
5023
5029
  }
5024
- Nr.exports = We;
5025
- Nr.exports.loadPlugin = Fr;
5026
- var wu = Nr.exports;
5027
- const wn = jn, Au = Hn.EventEmitter, Eu = Ft.inherits, {
5028
- AVV_ERR_EXPOSE_ALREADY_DEFINED: er,
5030
+ Fr.exports = We;
5031
+ Fr.exports.loadPlugin = Dr;
5032
+ var Au = Fr.exports;
5033
+ const An = jn, Eu = Wn.EventEmitter, Iu = Dt.inherits, {
5034
+ AVV_ERR_EXPOSE_ALREADY_DEFINED: tr,
5029
5035
  AVV_ERR_CALLBACK_NOT_FN: et,
5030
- AVV_ERR_PLUGIN_NOT_VALID: Iu,
5031
- AVV_ERR_ROOT_PLG_BOOTED: Tu,
5032
- AVV_ERR_READY_TIMEOUT: Ou
5033
- } = di, _u = cu, gr = wu, ze = fi("avvio"), Ct = Symbol("kAvvio"), tr = Symbol("kThenifyDoNotWrap");
5034
- function Cu(t, e, r) {
5036
+ AVV_ERR_PLUGIN_NOT_VALID: Tu,
5037
+ AVV_ERR_ROOT_PLG_BOOTED: Ou,
5038
+ AVV_ERR_READY_TIMEOUT: _u
5039
+ } = fi, Cu = lu, br = Au, ze = pi("avvio"), Lt = Symbol("kAvvio"), rr = Symbol("kThenifyDoNotWrap");
5040
+ function Lu(t, e, r) {
5035
5041
  const n = e.expose || {}, i = n.use || "use", o = n.after || "after", s = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
5036
5042
  if (t[i])
5037
- throw new er(i);
5043
+ throw new tr(i);
5038
5044
  if (t[o])
5039
- throw new er(o);
5045
+ throw new tr(o);
5040
5046
  if (t[s])
5041
- throw new er(s);
5047
+ throw new tr(s);
5042
5048
  t[i] = function(l, c) {
5043
5049
  return r.use(l, c), this;
5044
- }, Object.defineProperty(t, "then", { get: pi.bind(r) }), t[Ct] = !0, t[o] = function(l) {
5045
- return typeof l != "function" ? r._loadRegistered() : (r.after(rr(l, this)), this);
5050
+ }, Object.defineProperty(t, "then", { get: hi.bind(r) }), t[Lt] = !0, t[o] = function(l) {
5051
+ return typeof l != "function" ? r._loadRegistered() : (r.after(nr(l, this)), this);
5046
5052
  }, t[s] = function(l) {
5047
5053
  if (l && typeof l != "function")
5048
5054
  throw new et(s, typeof l);
5049
- return r.ready(l ? rr(l, this) : void 0);
5055
+ return r.ready(l ? nr(l, this) : void 0);
5050
5056
  }, t[a] = function(l) {
5051
5057
  if (typeof l != "function")
5052
5058
  throw new et(a, typeof l);
5053
- return r.onClose(Fu(l, this)), this;
5059
+ return r.onClose(Du(l, this)), this;
5054
5060
  }, t[u] = function(l) {
5055
5061
  if (l && typeof l != "function")
5056
5062
  throw new et(u, typeof l);
5057
- return l ? (r.close(rr(l, this)), this) : r.close();
5063
+ return l ? (r.close(nr(l, this)), this) : r.close();
5058
5064
  };
5059
5065
  }
5060
5066
  function q(t, e, r) {
5061
5067
  if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof q)) {
5062
5068
  const n = new q(t, e, r);
5063
- return t && Cu(t, e, n), n;
5069
+ return t && Lu(t, e, n), n;
5064
5070
  }
5065
- e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new _u(), this._readyQ = wn(this, hi, 1), this._readyQ.pause(), this._readyQ.drain = () => {
5066
- this.emit("start"), this._readyQ.drain = An;
5067
- }, this._closeQ = wn(this, Nu, 1), this._closeQ.pause(), this._closeQ.drain = () => {
5068
- this.emit("close"), this._closeQ.drain = An;
5069
- }, this._doStart = null, this._root = new gr(this, Lu.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
5071
+ e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Cu(), this._readyQ = An(this, yi, 1), this._readyQ.pause(), this._readyQ.drain = () => {
5072
+ this.emit("start"), this._readyQ.drain = En;
5073
+ }, this._closeQ = An(this, Fu, 1), this._closeQ.pause(), this._closeQ.drain = () => {
5074
+ this.emit("close"), this._closeQ.drain = En;
5075
+ }, this._doStart = null, this._root = new br(this, ku.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
5070
5076
  const s = this.pluginTree.start(null, i, o);
5071
5077
  this._root.once("loaded", (a, u, l) => {
5072
5078
  this.pluginTree.stop(s, l);
5073
5079
  });
5074
- }), gr.loadPlugin.call(this, this._root, (n) => {
5080
+ }), br.loadPlugin.call(this, this._root, (n) => {
5075
5081
  ze("root plugin ready");
5076
5082
  try {
5077
5083
  this.emit("preReady"), this._root = null;
@@ -5086,22 +5092,22 @@ function q(t, e, r) {
5086
5092
  this._readyQ.resume();
5087
5093
  });
5088
5094
  }
5089
- function Lu(t, e, r) {
5095
+ function ku(t, e, r) {
5090
5096
  this._doStart = r, e.autostart && this.start();
5091
5097
  }
5092
- Eu(q, Au);
5098
+ Iu(q, Eu);
5093
5099
  q.prototype.start = function() {
5094
5100
  return this.started = !0, E.nextTick(this._doStart), this;
5095
5101
  };
5096
5102
  q.prototype.override = function(t, e, r) {
5097
5103
  return t;
5098
5104
  };
5099
- function ku(t) {
5105
+ function Pu(t) {
5100
5106
  if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
5101
- throw new Iu(typeof t);
5107
+ throw new Tu(typeof t);
5102
5108
  return t;
5103
5109
  }
5104
- q.prototype[Ct] = !0;
5110
+ q.prototype[Lt] = !0;
5105
5111
  q.prototype.use = function(t, e) {
5106
5112
  return this._lastUsed = this._addPlugin(t, e, !1), this;
5107
5113
  };
@@ -5109,11 +5115,11 @@ q.prototype._loadRegistered = function() {
5109
5115
  const t = this._current[0];
5110
5116
  return !this.started && !this.booted && E.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
5111
5117
  };
5112
- Object.defineProperty(q.prototype, "then", { get: pi });
5118
+ Object.defineProperty(q.prototype, "then", { get: hi });
5113
5119
  q.prototype._addPlugin = function(t, e, r) {
5114
- if (t = ku(t), e = e || {}, this.booted)
5115
- throw new Tu();
5116
- const n = this._current[0], i = new gr(this, t, e, r);
5120
+ if (t = Pu(t), e = e || {}, this.booted)
5121
+ throw new Ou();
5122
+ const n = this._current[0], i = new br(this, t, e, r);
5117
5123
  if (i.once("start", (o, s, a) => {
5118
5124
  const u = this.pluginTree.start(n.name, s, a);
5119
5125
  i.once("loaded", (l, c, f) => {
@@ -5130,7 +5136,7 @@ q.prototype.after = function(t) {
5130
5136
  return this._loadRegistered();
5131
5137
  this._addPlugin(e.bind(this), {}, !0);
5132
5138
  function e(r, n, i) {
5133
- hi.call(this, t, i);
5139
+ yi.call(this, t, i);
5134
5140
  }
5135
5141
  return this;
5136
5142
  };
@@ -5181,40 +5187,40 @@ q.prototype.prettyPrint = function() {
5181
5187
  q.prototype.toJSON = function() {
5182
5188
  return this.pluginTree.toJSON();
5183
5189
  };
5184
- function An() {
5190
+ function En() {
5185
5191
  }
5186
- function pi() {
5192
+ function hi() {
5187
5193
  if (this.booted) {
5188
5194
  ze("thenify returning null because we are already booted");
5189
5195
  return;
5190
5196
  }
5191
- if (this[tr]) {
5192
- this[tr] = !1;
5197
+ if (this[rr]) {
5198
+ this[rr] = !1;
5193
5199
  return;
5194
5200
  }
5195
- return ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[tr] = !0, t(this._server)), e);
5201
+ return ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[rr] = !0, t(this._server)), e);
5196
5202
  }
5197
- function hi(t, e) {
5203
+ function yi(t, e) {
5198
5204
  const r = this._server, n = this._error;
5199
5205
  let i;
5200
5206
  if (this._error = null, t.length === 0)
5201
- this._error = n, i = t(), i && !i[Ct] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5207
+ this._error = n, i = t(), i && !i[Lt] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5202
5208
  else if (t.length === 1)
5203
- i = t(n), i && !i[Ct] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5209
+ i = t(n), i && !i[Lt] && typeof i.then == "function" ? i.then(() => E.nextTick(e), (o) => E.nextTick(e, o)) : E.nextTick(e);
5204
5210
  else if (this._timeout === 0) {
5205
5211
  const o = (s) => {
5206
5212
  this._error = s, e(this._error);
5207
5213
  };
5208
5214
  t.length === 2 ? t(n, o) : t(n, r, o);
5209
5215
  } else
5210
- Pu.call(this, t, n, r, e);
5216
+ Nu.call(this, t, n, r, e);
5211
5217
  }
5212
- function Pu(t, e, r, n) {
5218
+ function Nu(t, e, r, n) {
5213
5219
  const i = t.name;
5214
5220
  ze("setting up ready timeout", i, this._timeout);
5215
5221
  let o = setTimeout(() => {
5216
5222
  ze("timed out", i), o = null;
5217
- const a = new Ou(i);
5223
+ const a = new _u(i);
5218
5224
  a.fn = t, this._error = a, n(a);
5219
5225
  }, this._timeout);
5220
5226
  t.length === 2 ? t(e, s.bind(this)) : t(e, r, s.bind(this));
@@ -5222,7 +5228,7 @@ function Pu(t, e, r, n) {
5222
5228
  o && (clearTimeout(o), this._error = a, n(this._error));
5223
5229
  }
5224
5230
  }
5225
- function Nu(t, e) {
5231
+ function Fu(t, e) {
5226
5232
  const r = this._server, n = t[this._isOnCloseHandlerKey];
5227
5233
  if (t.length === 0 || t.length === 1) {
5228
5234
  let i;
@@ -5232,7 +5238,7 @@ function Nu(t, e) {
5232
5238
  )) : E.nextTick(e);
5233
5239
  } else t.length === 2 ? t(n ? r : this._error, e) : n ? t(r, e) : t(this._error, r, e);
5234
5240
  }
5235
- function Fu(t, e) {
5241
+ function Du(t, e) {
5236
5242
  return r.bind(e);
5237
5243
  function r(n, i) {
5238
5244
  let o;
@@ -5243,7 +5249,7 @@ function Fu(t, e) {
5243
5249
  }, i) : E.nextTick(i)) : t(this, i);
5244
5250
  }
5245
5251
  }
5246
- function rr(t, e) {
5252
+ function nr(t, e) {
5247
5253
  return r.bind(e);
5248
5254
  function r(n, i) {
5249
5255
  let o;
@@ -5254,16 +5260,16 @@ function rr(t, e) {
5254
5260
  }, i) : E.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : E.nextTick(i);
5255
5261
  }
5256
5262
  }
5257
- wr.exports = q;
5258
- wr.exports.express = function(t) {
5263
+ Ar.exports = q;
5264
+ Ar.exports.express = function(t) {
5259
5265
  return q(t, {
5260
5266
  expose: {
5261
5267
  use: "load"
5262
5268
  }
5263
5269
  });
5264
5270
  };
5265
- var Du = wr.exports;
5266
- const Ru = /* @__PURE__ */ cs(Du);
5271
+ var Ru = Ar.exports;
5272
+ const Vu = /* @__PURE__ */ ls(Ru);
5267
5273
  (function() {
5268
5274
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
5269
5275
  return;
@@ -5281,13 +5287,13 @@ const Ru = /* @__PURE__ */ cs(Du);
5281
5287
  }, window.cancelAnimationFrame = clearTimeout;
5282
5288
  }
5283
5289
  })();
5284
- function oc(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5285
- const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", s = Ru(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5286
- return s.use(jo, { friendsTab: n.friendsTab }), s.use(No, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(Vo, { videoPlayerController: n?.videoPlayerController }), s.use(Mo, {
5290
+ function sc(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5291
+ const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", s = Vu(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5292
+ return s.use(jo, { friendsTab: n.friendsTab }), s.use(Fo, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use($o, { videoPlayerController: n?.videoPlayerController }), s.use(Bo, {
5287
5293
  onContentActivate: n?.onContentActivate,
5288
5294
  withAd: n?.withAd,
5289
5295
  withAdNotification: n?.withAdNotification
5290
- }), s.use(Yi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(to), s.use(Ro), s.use(Xo), s.use(Ao), s.use(us), s.after((a, u, l) => {
5296
+ }), s.use(Ji, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(ro), s.use(Vo), s.use(Zo), s.use(Eo), s.use(cs), s.after((a, u, l) => {
5291
5297
  if (a)
5292
5298
  throw a;
5293
5299
  u.ready(), l();
@@ -5300,5 +5306,5 @@ function oc(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5300
5306
  }), s;
5301
5307
  }
5302
5308
  export {
5303
- oc as StreamLayer
5309
+ sc as StreamLayer
5304
5310
  };