@streamlayer/sdk-web 1.10.12 → 1.10.14

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 Si } from "pino";
2
- import { QuestionType as E, QuestionStatus as W, PromotionType as H, SilenceSetting as wi, UseAsNotification as Ai } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
3
- import { PickHistoryStatus as lt } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
1
+ import { pino as vi } from "pino";
2
+ import { QuestionType as E, QuestionStatus as W, PromotionType as H, SilenceSetting as Si, UseAsNotification as wi } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
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 Rr, InvitationFrom as Vr } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
6
- import { computed as Ei, map as Ii, atom as Ct, batched as $r, onMount as br } from "nanostores";
5
+ import { InvitationCategory as Dr, InvitationFrom as Rr } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
6
+ import { computed as Ai, map as Ei, atom as Ct, batched as Vr, onMount as mr } from "nanostores";
7
7
  import { v4 as St } from "uuid";
8
- import { ConnectError as rt, Code as ie, createContextKey as Mr, createClient as Br, createContextValues as Oi } from "@connectrpc/connect";
9
- import { createGrpcWebTransport as Ur } from "@connectrpc/connect-web";
10
- import { nanoquery as jr } from "@nanostores/query";
11
- import { Events as Tn } from "@streamlayer/sl-eslib/sports/events/events_connect";
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";
8
+ import { ConnectError as tt, Code as ie, createContextKey as $r, createClient as Mr, createContextValues as Ii } from "@connectrpc/connect";
9
+ import { createGrpcWebTransport as Br } from "@connectrpc/connect-web";
10
+ import { nanoquery as Ur } from "@nanostores/query";
11
+ import { Events as On } from "@streamlayer/sl-eslib/sports/events/events_connect";
12
+ import { Client as rt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
13
+ import { Users as br } from "@streamlayer/sl-eslib/users/users_connect";
14
14
  import { Feed as se } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as kn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_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 Ti } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
18
- import { Kind as x, TopicSubType as J, TopicType as q, PollOpenedFrom as X, Category as z, ScreenOrientation as qr } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
- import { AnalyticsService as _n } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
20
- import { InteractionActionType as xr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
21
- import { NotificationKind as ye, NotificationType as Qr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
22
- function ki(t) {
17
+ import { LinksClient as Oi } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
18
+ import { Kind as x, TopicSubType as J, TopicType as q, PollOpenedFrom as X, Category as z, ScreenOrientation as jr } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
+ import { AnalyticsService as kn } 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 ye, NotificationType as xr } 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 Cn = { exports: {} }, M = Cn.exports = {}, le, de;
26
- function ir() {
25
+ var _n = { exports: {} }, M = _n.exports = {}, le, de;
26
+ function nr() {
27
27
  throw new Error("setTimeout has not been defined");
28
28
  }
29
- function or() {
29
+ function ir() {
30
30
  throw new Error("clearTimeout has not been defined");
31
31
  }
32
32
  (function() {
33
33
  try {
34
- typeof setTimeout == "function" ? le = setTimeout : le = ir;
34
+ typeof setTimeout == "function" ? le = setTimeout : le = nr;
35
35
  } catch {
36
- le = ir;
36
+ le = nr;
37
37
  }
38
38
  try {
39
- typeof clearTimeout == "function" ? de = clearTimeout : de = or;
39
+ typeof clearTimeout == "function" ? de = clearTimeout : de = ir;
40
40
  } catch {
41
- de = or;
41
+ de = ir;
42
42
  }
43
43
  })();
44
- function Ln(t) {
44
+ function Cn(t) {
45
45
  if (le === setTimeout)
46
46
  return setTimeout(t, 0);
47
- if ((le === ir || !le) && setTimeout)
47
+ if ((le === nr || !le) && setTimeout)
48
48
  return le = setTimeout, setTimeout(t, 0);
49
49
  try {
50
50
  return le(t, 0);
@@ -56,10 +56,10 @@ function Ln(t) {
56
56
  }
57
57
  }
58
58
  }
59
- function _i(t) {
59
+ function ki(t) {
60
60
  if (de === clearTimeout)
61
61
  return clearTimeout(t);
62
- if ((de === or || !de) && clearTimeout)
62
+ if ((de === ir || !de) && clearTimeout)
63
63
  return de = clearTimeout, clearTimeout(t);
64
64
  try {
65
65
  return de(t);
@@ -71,20 +71,20 @@ function _i(t) {
71
71
  }
72
72
  }
73
73
  }
74
- var Se = [], xe = !1, Ce, pt = -1;
75
- function Ci() {
76
- !xe || !Ce || (xe = !1, Ce.length ? Se = Ce.concat(Se) : pt = -1, Se.length && Pn());
74
+ var Se = [], xe = !1, Ce, ft = -1;
75
+ function _i() {
76
+ !xe || !Ce || (xe = !1, Ce.length ? Se = Ce.concat(Se) : ft = -1, Se.length && Ln());
77
77
  }
78
- function Pn() {
78
+ function Ln() {
79
79
  if (!xe) {
80
- var t = Ln(Ci);
80
+ var t = Cn(_i);
81
81
  xe = !0;
82
82
  for (var e = Se.length; e; ) {
83
- for (Ce = Se, Se = []; ++pt < e; )
84
- Ce && Ce[pt].run();
85
- pt = -1, e = Se.length;
83
+ for (Ce = Se, Se = []; ++ft < e; )
84
+ Ce && Ce[ft].run();
85
+ ft = -1, e = Se.length;
86
86
  }
87
- Ce = null, xe = !1, _i(t);
87
+ Ce = null, xe = !1, ki(t);
88
88
  }
89
89
  }
90
90
  M.nextTick = function(t) {
@@ -92,12 +92,12 @@ M.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
- Se.push(new Nn(t, e)), Se.length === 1 && !xe && Ln(Pn);
95
+ Se.push(new Pn(t, e)), Se.length === 1 && !xe && Cn(Ln);
96
96
  };
97
- function Nn(t, e) {
97
+ function Pn(t, e) {
98
98
  this.fun = t, this.array = e;
99
99
  }
100
- Nn.prototype.run = function() {
100
+ Pn.prototype.run = function() {
101
101
  this.fun.apply(null, this.array);
102
102
  };
103
103
  M.title = "browser";
@@ -132,8 +132,8 @@ M.chdir = function(t) {
132
132
  M.umask = function() {
133
133
  return 0;
134
134
  };
135
- var Li = Cn.exports;
136
- const A = /* @__PURE__ */ ki(Li), Pi = Si({
135
+ var Ci = _n.exports;
136
+ const A = /* @__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 A = /* @__PURE__ */ ki(Li), Pi = Si({
141
141
  console.log(t);
142
142
  }
143
143
  }
144
- }), Ee = (t, e) => Pi.child({ name: t }, e);
145
- class Ni extends Event {
144
+ }), Ee = (t, e) => Li.child({ name: t }, e);
145
+ class Pi extends Event {
146
146
  slEventBus;
147
147
  constructor(e, r) {
148
148
  super(e), this.slEventBus = r;
149
149
  }
150
150
  }
151
- const Fi = Ee("event-bus");
152
- class Di {
151
+ const Ni = Ee("event-bus");
152
+ class Fi {
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 Ni(this.name, { ...r, type: e });
160
- Fi.debug(n, "Emitting event"), window.dispatchEvent(n);
159
+ const n = new Pi(this.name, { ...r, type: e });
160
+ Ni.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,7 +173,7 @@ class Di {
173
173
  }), this.listeners.clear();
174
174
  };
175
175
  }
176
- class Ri {
176
+ class Di {
177
177
  }
178
178
  var we;
179
179
  (function(t) {
@@ -196,9 +196,9 @@ class Lt {
196
196
  return this.store;
197
197
  }
198
198
  }
199
- const Vi = (t) => {
199
+ const Ri = (t) => {
200
200
  const e = Object.keys(t);
201
- return Ei(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
201
+ return Ai(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
202
202
  };
203
203
  class Le extends Lt {
204
204
  getValues = () => this.getStore().get();
@@ -207,22 +207,22 @@ class Le extends Lt {
207
207
  subscribe = (...e) => this.getStore().subscribe(...e);
208
208
  unsubscribe = () => this.getStore().off();
209
209
  }
210
- const ee = (t) => Ii(t);
210
+ const ee = (t) => Ei(t);
211
211
  var me;
212
212
  (function(t) {
213
213
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
214
214
  })(me || (me = {}));
215
- const $i = {
215
+ const Vi = {
216
216
  [D.BETTING]: "betting",
217
217
  [D.GAMES]: "games",
218
218
  [D.PUBLIC_CHAT]: "publicChat",
219
219
  [D.TWITTER]: "twitter"
220
220
  };
221
- var Ze;
221
+ var Xe;
222
222
  (function(t) {
223
223
  t.Ready = "ready", t.Suspended = "suspended";
224
- })(Ze || (Ze = {}));
225
- class Fn {
224
+ })(Xe || (Xe = {}));
225
+ class Nn {
226
226
  status;
227
227
  source;
228
228
  config;
@@ -230,7 +230,7 @@ class Fn {
230
230
  listeners = /* @__PURE__ */ new Set();
231
231
  settingsKey;
232
232
  constructor({ settings: e, ...r }, n) {
233
- this.settingsKey = $i[r.type], this.status = Ct(Ze.Suspended), this.config = new Le(ee(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new Le(ee(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new Le(ee({}), `feature:settings:${this.settingsKey}`), this.source = n;
233
+ this.settingsKey = Vi[r.type], this.status = Ct(Xe.Suspended), this.config = new Le(ee(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new Le(ee(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new Le(ee({}), `feature:settings:${this.settingsKey}`), this.source = n;
234
234
  }
235
235
  get featureConfig() {
236
236
  return this.config.getStore();
@@ -242,10 +242,10 @@ class Fn {
242
242
  this.listeners.add(e);
243
243
  }
244
244
  enable = () => {
245
- this.status.set(Ze.Ready);
245
+ this.status.set(Xe.Ready);
246
246
  };
247
247
  disable = () => {
248
- this.status.set(Ze.Suspended);
248
+ this.status.set(Xe.Suspended);
249
249
  };
250
250
  setFeatureConfig = ({ settings: e, ...r }) => {
251
251
  let n;
@@ -319,8 +319,8 @@ class oe extends Lt {
319
319
  key = () => this.getStore().key;
320
320
  off = () => this.getStore().off();
321
321
  }
322
- const K = new Di();
323
- async function* Mi(t, e) {
322
+ const K = new Fi();
323
+ async function* $i(t, e) {
324
324
  for await (const r of e) {
325
325
  t.response.message = r, t.received_at = Date.now(), t.id = Date.now();
326
326
  const n = {
@@ -330,7 +330,7 @@ async function* Mi(t, e) {
330
330
  window.postMessage(n), yield r;
331
331
  }
332
332
  }
333
- const Bi = () => (t) => async (e) => {
333
+ const Mi = () => (t) => async (e) => {
334
334
  const r = {
335
335
  id: Date.now(),
336
336
  name: e.url,
@@ -359,7 +359,7 @@ const Bi = () => (t) => async (e) => {
359
359
  };
360
360
  return window.postMessage(i), {
361
361
  ...n,
362
- message: Mi(r, n.message)
362
+ message: $i(r, n.message)
363
363
  };
364
364
  } else {
365
365
  r.response.message = n.message, r.latency = r.received_at - r.sent_at;
@@ -383,7 +383,7 @@ const Bi = () => (t) => async (e) => {
383
383
  }
384
384
  };
385
385
  window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
386
- function Dn(t) {
386
+ function Fn(t) {
387
387
  return t instanceof DOMException && // everything except Firefox
388
388
  (t.code === 22 || // Firefox
389
389
  t.code === 1014 || // test name field too, because code might not be present
@@ -391,7 +391,7 @@ function Dn(t) {
391
391
  t.name === "QuotaExceededError" || // Firefox
392
392
  t.name === "NS_ERROR_DOM_QUOTA_REACHED");
393
393
  }
394
- class it {
394
+ class nt {
395
395
  delimiter = ":";
396
396
  prefix;
397
397
  storage;
@@ -408,7 +408,7 @@ class it {
408
408
  try {
409
409
  this.storage.setItem(n, r);
410
410
  } catch (i) {
411
- Dn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
411
+ Fn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
412
412
  }
413
413
  };
414
414
  read = (...e) => {
@@ -423,8 +423,8 @@ var ne;
423
423
  (function(t) {
424
424
  t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnect = "reconnect", t.Reconnecting = "reconnecting";
425
425
  })(ne || (ne = {}));
426
- const Gr = Ee("grpc:stream");
427
- class Ui {
426
+ const Qr = Ee("grpc:stream");
427
+ class Bi {
428
428
  params;
429
429
  streamCancel;
430
430
  method;
@@ -458,12 +458,12 @@ class Ui {
458
458
  addStateLog = (e) => {
459
459
  const r = this.state.getStore().get().log, n = `${this.options.name} ${(/* @__PURE__ */ new Date()).toISOString()}: ${e}`;
460
460
  if (r.push(n), this.state.setValue("log", r), localStorage.getItem("SL_DEBUG")) {
461
- e.startsWith("received data") ? Gr.trace({ name: this.options.name, attempt: this.attempt }, "received data") : Gr.trace({ name: this.options.name, attempt: this.attempt }, e);
461
+ e.startsWith("received data") ? Qr.trace({ name: this.options.name, attempt: this.attempt }, "received data") : Qr.trace({ name: this.options.name, attempt: this.attempt }, e);
462
462
  try {
463
463
  window.sessionStorage.setItem("slstreamlogs", window.sessionStorage.getItem("slstreamlogs") + `
464
464
  ` + n);
465
465
  } catch (i) {
466
- Dn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
466
+ Fn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
467
467
  }
468
468
  }
469
469
  };
@@ -485,7 +485,7 @@ class Ui {
485
485
  for await (const o of i)
486
486
  this.attempt = 0, this.onData(o);
487
487
  } catch (n) {
488
- n instanceof rt && n.code != ie.Canceled && this.onStreamError(n);
488
+ n instanceof tt && n.code != ie.Canceled && this.onStreamError(n);
489
489
  }
490
490
  })(), this.updateState(ne.Connected);
491
491
  };
@@ -525,7 +525,7 @@ class Ui {
525
525
  */
526
526
  onStreamError = (e) => {
527
527
  if (this.addStateLog(`error => ${e ? JSON.stringify(e) : "undefined"}}`), e !== void 0) {
528
- if (e instanceof rt && e.code !== ie.Canceled) {
528
+ if (e instanceof tt && e.code !== ie.Canceled) {
529
529
  this.updateState(ne.Failed), this.state.setValue("error", e), e.code === ie.Unknown && e.cause === "missing trailer" && (this.attempt = 0), this.reconnect();
530
530
  return;
531
531
  }
@@ -533,7 +533,7 @@ class Ui {
533
533
  }
534
534
  };
535
535
  }
536
- const ji = /* @__PURE__ */ new Set([
536
+ const Ui = /* @__PURE__ */ new Set([
537
537
  ie.Unknown,
538
538
  ie.Internal,
539
539
  ie.DeadlineExceeded,
@@ -541,33 +541,33 @@ const ji = /* @__PURE__ */ new Set([
541
541
  ie.FailedPrecondition,
542
542
  ie.Unavailable,
543
543
  ie.DataLoss
544
- ]), zr = Ee("grpc:retry"), qi = (t) => async (e) => {
545
- const r = e.contextValues.get(sr.retryAttempts), n = 300, i = e.contextValues.get(sr.retryDelay);
544
+ ]), Gr = Ee("grpc:retry"), ji = (t) => async (e) => {
545
+ const r = e.contextValues.get(or.retryAttempts), n = 300, i = e.contextValues.get(or.retryDelay);
546
546
  if (e.stream || r === 0)
547
547
  return t(e);
548
- zr.trace({ url: e.url, attempts: r, maxDelay: i }, "retry options");
548
+ Gr.trace({ url: e.url, attempts: r, maxDelay: i }, "retry options");
549
549
  for (let o = 0; ; o++)
550
550
  try {
551
551
  return await t(e);
552
552
  } catch (s) {
553
- zr.trace({ attempt: o, error: s, url: e.url }, "retry attempt");
554
- const a = rt.from(s);
555
- if (o >= r || !(a instanceof rt) || !ji.has(a.code))
553
+ Gr.trace({ attempt: o, error: s, url: e.url }, "retry attempt");
554
+ const a = tt.from(s);
555
+ if (o >= r || !(a instanceof tt) || !Ui.has(a.code))
556
556
  throw s;
557
557
  const u = Math.min(i, Math.pow(2, o) * n), d = Math.round(u * (1 + Math.random()) / 2);
558
558
  await new Promise((c) => setTimeout(c, d));
559
559
  }
560
- }, sr = {
561
- retryAttempts: Mr(10, { description: "Number of attempts to retry" }),
562
- retryDelay: Mr(3e4, { description: "Max delay between retries in milliseconds" })
563
- }, xi = () => {
560
+ }, or = {
561
+ retryAttempts: $r(10, { description: "Number of attempts to retry" }),
562
+ retryDelay: $r(3e4, { description: "Max delay between retries in milliseconds" })
563
+ }, qi = () => {
564
564
  const t = localStorage.getItem("sl-device-id");
565
565
  if (t)
566
566
  return t;
567
567
  const e = St();
568
568
  return localStorage.setItem("sl-device-id", e), e;
569
- }, Qi = () => navigator.userAgentData?.platform || navigator.platform;
570
- class Kr {
569
+ }, xi = () => navigator.userAgentData?.platform || navigator.platform;
570
+ class zr {
571
571
  toJsonOptions = {
572
572
  emitDefaultValues: !1,
573
573
  enumAsInteger: !0,
@@ -580,6 +580,8 @@ class Kr {
580
580
  nanoquery;
581
581
  host;
582
582
  $headers;
583
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
584
+ storeCache;
583
585
  interceptors = [];
584
586
  clients;
585
587
  streamClients;
@@ -587,19 +589,19 @@ class Kr {
587
589
  opts;
588
590
  constructor(e, r) {
589
591
  this.host = e, this.opts = r, this.$headers = new Le(ee({
590
- "sl-device-id": xi(),
591
- "sl-device-os": Qi()
592
- }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
593
- const [n, i, o] = jr({
592
+ "sl-device-id": qi(),
593
+ "sl-device-os": xi()
594
+ }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map(), this.storeCache = /* @__PURE__ */ new Map();
595
+ const [n, i, o] = Ur({
594
596
  dedupeTime: r?.dedupeTime,
595
597
  refetchInterval: r?.refetchInterval
596
598
  });
597
- this.nanoquery = { createFetcherStore: n, createMutatorStore: i, utils: o }, this.transport = Ur({
599
+ this.nanoquery = { createFetcherStore: n, createMutatorStore: i, utils: o }, this.transport = Br({
598
600
  baseUrl: e,
599
601
  defaultTimeoutMs: 1e4,
600
602
  interceptors: this.interceptors
601
603
  // useBinaryFormat: true,
602
- }), this.streamTransport = Ur({
604
+ }), this.streamTransport = Br({
603
605
  baseUrl: e,
604
606
  interceptors: this.interceptors
605
607
  // useBinaryFormat: true,
@@ -612,7 +614,7 @@ class Kr {
612
614
  const i = this.subscriptions.get(r);
613
615
  if (i)
614
616
  return i;
615
- const o = new Ui(this.$headers, e, r, n);
617
+ const o = new Bi(this.$headers, e, r, n);
616
618
  return this.subscriptions.set(r, o), o;
617
619
  };
618
620
  removeSubscription = (e) => {
@@ -623,7 +625,7 @@ class Kr {
623
625
  for (const [i, o] of this.subscriptions)
624
626
  o.disconnect(), this.subscriptions.delete(i);
625
627
  this.clients.clear(), this.streamClients.clear(), this.subscriptions.clear();
626
- const [e, r, n] = jr({
628
+ const [e, r, n] = Ur({
627
629
  dedupeTime: this.opts?.dedupeTime,
628
630
  refetchInterval: this.opts?.refetchInterval
629
631
  });
@@ -639,14 +641,14 @@ class Kr {
639
641
  const r = e.typeName;
640
642
  if (this.clients.has(r))
641
643
  return this.clients.get(r);
642
- const n = Br(e, this.transport);
644
+ const n = Mr(e, this.transport);
643
645
  return this.clients.set(r, n), n;
644
646
  };
645
647
  getStreamClient = (e) => {
646
648
  const r = `stream-${e.typeName}`;
647
649
  if (this.clients.has(r))
648
650
  return this.clients.get(r);
649
- const n = Br(e, this.streamTransport);
651
+ const n = Mr(e, this.streamTransport);
650
652
  return this.clients.set(r, n), n;
651
653
  };
652
654
  // create unary client, used for query request
@@ -657,9 +659,9 @@ class Kr {
657
659
  ...Array.isArray(r) ? r : [r]
658
660
  ], a = [e.typeName, o.charAt(0).toLowerCase() + o.slice(1)];
659
661
  return { client: i, createRequestOptions: (d) => {
660
- const c = Oi();
662
+ const c = Ii();
661
663
  for (const l in d) {
662
- const p = sr[l];
664
+ const p = or[l];
663
665
  c.set(p, d[l]);
664
666
  }
665
667
  return c;
@@ -685,11 +687,11 @@ class Kr {
685
687
  n.header.set(o, i[o]);
686
688
  return r(n);
687
689
  };
688
- this.interceptors.push(e), this.interceptors.push(Bi()), this.opts?.retryable && this.interceptors.push(qi);
690
+ this.interceptors.push(e), this.interceptors.push(Mi()), this.opts?.retryable && this.interceptors.push(ji);
689
691
  };
690
692
  }
691
- const Gi = (t, e) => {
692
- const { client: r, queryKey: n } = e.createPromiseClient(Tn, {
693
+ const Qi = (t, e) => {
694
+ const { client: r, queryKey: n } = e.createPromiseClient(On, {
693
695
  method: "retrieveEventId",
694
696
  params: [t]
695
697
  });
@@ -706,23 +708,23 @@ const Gi = (t, e) => {
706
708
  }
707
709
  }
708
710
  });
709
- }, zi = (t, e) => {
710
- const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "getStream", params: [t] });
711
+ }, Gi = (t, e) => {
712
+ const { client: r, queryKey: n } = e.createPromiseClient(rt, { method: "getStream", params: [t] });
711
713
  return e.nanoquery.createFetcherStore(n, {
712
714
  fetcher: async (i, o, s) => s ? (await r.getStream({
713
715
  id: s
714
716
  // we are sure that id is a string
715
717
  })).data?.attributes : void 0
716
718
  });
717
- }, Ki = (t, e) => {
718
- const { client: r, queryKey: n } = e.createPromiseClient(Tn, { method: "summary", params: [t] });
719
+ }, zi = (t, e) => {
720
+ const { client: r, queryKey: n } = e.createPromiseClient(On, { method: "summary", params: [t] });
719
721
  return e.nanoquery.createFetcherStore(n, {
720
722
  fetcher: async (i, o, s) => s ? (await r.summary({
721
723
  id: s
722
724
  })).data?.attributes : void 0
723
725
  });
724
- }, Hi = (t, e) => {
725
- const { queryKey: r, client: n } = e.createPromiseClient(vr, { method: "me", params: [t] });
726
+ }, Ki = (t, e) => {
727
+ const { queryKey: r, client: n } = e.createPromiseClient(br, { method: "me", params: [t] });
726
728
  return e.nanoquery.createFetcherStore(r, {
727
729
  fetcher: async () => {
728
730
  if (!e.getHeader("authorization"))
@@ -731,16 +733,16 @@ const Gi = (t, e) => {
731
733
  return { data: o };
732
734
  }
733
735
  });
734
- }, Wi = (t) => {
735
- const { client: e, createRequestOptions: r } = t.createPromiseClient(vr, { method: "bypassAuth" }), n = r({ retryAttempts: 0 });
736
+ }, Hi = (t) => {
737
+ const { client: e, createRequestOptions: r } = t.createPromiseClient(br, { method: "bypassAuth" }), n = r({ retryAttempts: 0 });
736
738
  return ({ userKey: i, schema: o, init: s, inviterKey: a }) => e.bypassAuth({ userKey: i, schema: o, init: s, inviterKey: a }, { contextValues: n });
737
- }, Yi = (t, e) => {
738
- const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "get", params: [t] });
739
+ }, Wi = (t, e) => {
740
+ const { client: r, queryKey: n } = e.createPromiseClient(rt, { method: "get", params: [t] });
739
741
  return e.nanoquery.createFetcherStore(n, {
740
742
  fetcher: async () => (await r.get({})).data?.attributes
741
743
  });
742
- }, Ji = (t, e) => {
743
- const { client: r, queryKey: n } = e.createPromiseClient(nt, { method: "getOrganization", params: [t] });
744
+ }, Yi = (t, e) => {
745
+ const { client: r, queryKey: n } = e.createPromiseClient(rt, { method: "getOrganization", params: [t] });
744
746
  return e.nanoquery.createFetcherStore(n, {
745
747
  fetcher: async () => {
746
748
  const i = await r.getOrganization({});
@@ -750,20 +752,20 @@ const Gi = (t, e) => {
750
752
  } : void 0;
751
753
  }
752
754
  });
753
- }, Xi = (t, e) => {
754
- const { client: r, queryKey: n } = e.createPromiseClient(nt, {
755
+ }, Ji = (t, e) => {
756
+ const { client: r, queryKey: n } = e.createPromiseClient(rt, {
755
757
  method: "getOrganizationAdvertising",
756
758
  params: [t]
757
759
  });
758
760
  return e.nanoquery.createFetcherStore(n, {
759
761
  fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
760
762
  });
761
- }, Zi = (t, e, r) => {
762
- t.transport = new Kr(e.host, {
763
+ }, Xi = (t, e, r) => {
764
+ t.transport = new zr(e.host, {
763
765
  dedupeTime: 1e3 * 60 * 5,
764
766
  refetchInterval: 1e3 * 60 * 5,
765
767
  retryable: !0
766
- }), t.analyticsTransport = new Kr(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) => {
768
+ }), 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) => {
767
769
  t.analyticsTransport.$headers.getStore().set(n);
768
770
  }), t.sdk.onMount({ name: "transport" }, () => () => {
769
771
  t.transport.disconnect(), t.analyticsTransport.disconnect();
@@ -773,7 +775,7 @@ var ge;
773
775
  (function(t) {
774
776
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
775
777
  })(ge || (ge = {}));
776
- class je extends it {
778
+ class je extends nt {
777
779
  constructor() {
778
780
  super("user");
779
781
  }
@@ -800,19 +802,19 @@ var be;
800
802
  (function(t) {
801
803
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
802
804
  })(be || (be = {}));
803
- const eo = (t) => {
804
- const e = new je(), r = new te(B(e.getExternalToken()), "userKey"), n = new te(B(e.getToken()), "userToken"), i = new oe(Hi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, d) => {
805
+ const Zi = (t) => {
806
+ const e = new je(), r = new te(B(e.getExternalToken()), "userKey"), n = new te(B(e.getToken()), "userToken"), i = new oe(Ki(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, d) => {
805
807
  if (!a)
806
808
  return s?.data?.id ? s.data.id : u === !1 ? void 0 : d;
807
- }), o = new oe(Yi(n.getStore(), t), "userSettings");
809
+ }), o = new oe(Wi(n.getStore(), t), "userSettings");
808
810
  return {
809
811
  userKey: r,
810
812
  userToken: n,
811
813
  user: i,
812
814
  userSettings: o
813
815
  };
814
- }, to = (t) => {
815
- const e = new te(B(void 0), "providerStreamId"), r = new oe(Gi(e.getStore(), t), "slStreamId", (o) => o?.data), n = new oe(zi(r.getAtomStore(), t), "streamSettings"), i = new oe(Ki(r.getAtomStore(), t), "streamSettings");
816
+ }, eo = (t) => {
817
+ const e = new te(B(void 0), "providerStreamId"), r = new oe(Qi(e.getStore(), t), "slStreamId", (o) => o?.data), n = new oe(Gi(r.getAtomStore(), t), "streamSettings"), i = new oe(zi(r.getAtomStore(), t), "streamSettings");
816
818
  return r.getAtomStore().listen((o) => {
817
819
  (o === "" || o === void 0) && (n.getStore().mutate(void 0), i.getStore().mutate(void 0));
818
820
  }), {
@@ -821,8 +823,8 @@ const eo = (t) => {
821
823
  streamSettings: n,
822
824
  streamSummary: i
823
825
  };
824
- }, ro = (t) => {
825
- const e = new te(B(void 0), "enabled"), r = new te(B(be.DISABLED), "status"), n = new oe(Ji(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new oe(Xi(n.getAtomStore(), t), "organizationAdvertising"), o = eo(t), s = to(t);
826
+ }, to = (t) => {
827
+ const e = new te(B(void 0), "enabled"), r = new te(B(be.DISABLED), "status"), n = new oe(Yi(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new oe(Ji(n.getAtomStore(), t), "organizationAdvertising"), o = Zi(t), s = eo(t);
826
828
  return {
827
829
  enabled: e,
828
830
  status: r,
@@ -838,10 +840,10 @@ const eo = (t) => {
838
840
  organizationAdvertising: i
839
841
  };
840
842
  };
841
- class no extends Lt {
843
+ class ro extends Lt {
842
844
  stores;
843
845
  constructor(e) {
844
- const r = ro(e), n = Vi(r);
846
+ const r = to(e), n = Ri(r);
845
847
  super(n, "core"), this.stores = r;
846
848
  }
847
849
  getValue() {
@@ -862,18 +864,18 @@ class no extends Lt {
862
864
  };
863
865
  unsubscribe = () => this.getStore().off();
864
866
  }
865
- const io = (t, e, r) => {
866
- t.store = new no(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 = () => {
867
+ const no = (t, e, r) => {
868
+ t.store = new ro(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 = () => {
867
869
  t.store.unsubscribe();
868
870
  }, r();
869
- }, oo = (t) => {
870
- const { client: e } = t.createPromiseClient(kn, { method: "list" });
871
+ }, io = (t) => {
872
+ const { client: e } = t.createPromiseClient(Tn, { method: "list" });
871
873
  return (r) => e.list(r);
872
- }, Rn = (t) => {
873
- const { client: e } = t.createPromiseClient(kn, { method: "summary" });
874
+ }, Dn = (t) => {
875
+ const { client: e } = t.createPromiseClient(Tn, { method: "summary" });
874
876
  return (r) => e.summary(r);
875
- }, so = (t, e) => {
876
- const { client: r, queryKey: n } = e.createPromiseClient(vr, {
877
+ }, oo = (t, e) => {
878
+ const { client: r, queryKey: n } = e.createPromiseClient(br, {
877
879
  method: "getFriends",
878
880
  params: [t]
879
881
  });
@@ -888,7 +890,7 @@ const io = (t, e, r) => {
888
890
  }
889
891
  }
890
892
  });
891
- }, ao = (t, e) => {
893
+ }, so = (t, e) => {
892
894
  const { client: r, queryKey: n } = e.createPromiseClient(se, { method: "get", params: [t] });
893
895
  return e.nanoquery.createFetcherStore(n, {
894
896
  fetcher: async (i, o, s) => (await r.get({
@@ -897,7 +899,7 @@ const io = (t, e, r) => {
897
899
  refetchInterval: 1 / 0,
898
900
  dedupeTime: 1e3 * 60 * 60
899
901
  });
900
- }, uo = (t, e, r) => {
902
+ }, ao = (t, e, r) => {
901
903
  const { client: n, queryKey: i } = r.createPromiseClient(se, {
902
904
  method: "syncQuestion",
903
905
  params: [t, e ? "true" : ""]
@@ -918,42 +920,43 @@ const io = (t, e, r) => {
918
920
  // 10 minutes
919
921
  refetchInterval: 1 / 0
920
922
  });
921
- }, co = async (t, e) => {
923
+ }, uo = async (t, e) => {
922
924
  const { client: r } = e.createPromiseClient(se, { method: "item", params: [t] });
923
925
  return (await r.item({
924
926
  id: t
925
927
  })).data;
926
- }, lo = (t, e) => {
928
+ }, co = (t, e) => {
927
929
  const { client: r } = e.createStreamClient(se), n = Ct({ eventId: t.get() || "", feedId: "" });
928
930
  return t.subscribe((o = "") => {
929
931
  n.set({ eventId: o, feedId: "" });
930
932
  }), e.addSubscription(r.subscription, n, { name: "feedSubscription" });
931
- }, fo = (t, e) => {
933
+ }, lo = (t, e) => {
932
934
  const { client: r } = e.createStreamClient(se);
933
935
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
934
- }, Vn = async (t, e) => {
936
+ }, Rn = async (t, e) => {
935
937
  const { client: r } = e.createPromiseClient(se, { method: "questionByUser", params: [t] });
936
938
  return (await r.questionByUser({
937
939
  questionId: t
938
940
  })).data?.attributes?.question;
939
- }, Ut = /* @__PURE__ */ new Map(), Xe = (t, e) => {
941
+ }, pt = (t, e) => {
940
942
  const { client: r, queryKey: n, queryKeyStr: i } = e.createPromiseClient(se, {
941
943
  method: "questionByUser",
942
944
  params: [t]
943
945
  });
944
- if (Ut.has(i))
945
- return Ut.get(i);
946
+ let o = i;
947
+ if (typeof t != "object" ? o += t : o += "atom", e.storeCache.has(o))
948
+ return e.storeCache.get(o);
946
949
  {
947
- const o = e.nanoquery.createFetcherStore(n, {
948
- fetcher: async (s, a, u) => (await r.questionByUser({
949
- questionId: u
950
+ const s = e.nanoquery.createFetcherStore(n, {
951
+ fetcher: async (a, u, d) => (await r.questionByUser({
952
+ questionId: d
950
953
  })).data?.attributes?.question,
951
954
  dedupeTime: 1 / 0,
952
955
  refetchInterval: 1 / 0
953
956
  });
954
- return Ut.set(i, o), o;
957
+ return e.storeCache.set(o, s), s;
955
958
  }
956
- }, po = (t, e, r, n, i, o, s) => {
959
+ }, fo = (t, e, r, n, i, o, s) => {
957
960
  const { client: a, queryKey: u } = s.createPromiseClient(se, {
958
961
  method: "list",
959
962
  params: [t, e, o ? "true" : ""]
@@ -986,7 +989,7 @@ const io = (t, e, r) => {
986
989
  dedupeTime: 1 / 0,
987
990
  refetchInterval: 1 / 0
988
991
  });
989
- }, ho = (t, e, r, n, i) => {
992
+ }, po = (t, e, r, n, i) => {
990
993
  const { client: o, queryKey: s } = i.createPromiseClient(se, {
991
994
  method: "betPack",
992
995
  params: [t, e, r]
@@ -1035,14 +1038,14 @@ const io = (t, e, r) => {
1035
1038
  dedupeTime: 1 / 0,
1036
1039
  refetchInterval: 1 / 0
1037
1040
  });
1038
- }, yo = (t, e, r) => {
1039
- const n = $r([e, r], () => {
1041
+ }, ho = (t, e, r) => {
1042
+ const n = Vr([e, r], () => {
1040
1043
  const a = e.get();
1041
1044
  if (!a)
1042
1045
  return;
1043
1046
  const u = r.get().data?.find((c) => c.id === a?.questionId), d = a?.question?.openedFrom;
1044
1047
  return u ? (u.openedFrom = d, u) : a.question;
1045
- }), i = $r(n, (a) => a && a.type === "question" ? a.id : void 0), o = Xe(i, t);
1048
+ }), i = Vr(n, (a) => a && a.type === "question" ? a.id : void 0), o = pt(i, t);
1046
1049
  return { $store: n, $extendedStore: o, updateExtendedQuestion: (a) => {
1047
1050
  const u = o.get().data, d = (c, l) => {
1048
1051
  if (!c || !l)
@@ -1071,7 +1074,7 @@ var ce;
1071
1074
  (function(t) {
1072
1075
  t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io", t.QUESTION_RECEIVED = "q-received", t.QUESTION_OPENED = "q-opened";
1073
1076
  })(ce || (ce = {}));
1074
- class go extends it {
1077
+ class yo extends nt {
1075
1078
  constructor() {
1076
1079
  super("gamification-session", window.sessionStorage);
1077
1080
  }
@@ -1080,10 +1083,10 @@ class go extends it {
1080
1083
  };
1081
1084
  readValue = (e) => this.read(...e);
1082
1085
  }
1083
- class mo extends it {
1086
+ class go extends nt {
1084
1087
  sessionStorage;
1085
1088
  constructor() {
1086
- super("gamification"), this.sessionStorage = new go();
1089
+ super("gamification"), this.sessionStorage = new yo();
1087
1090
  }
1088
1091
  saveQuestionReceived = ({ userId: e, eventId: r, organizationId: n }, i) => {
1089
1092
  this.write(ce.QUESTION_RECEIVED, n, e, r, i, "1");
@@ -1106,7 +1109,7 @@ var Oe;
1106
1109
  (function(t) {
1107
1110
  t.ALLOWED = "allowed", t.DISALLOWED = "disallowed";
1108
1111
  })(Oe || (Oe = {}));
1109
- class bo {
1112
+ class mo {
1110
1113
  /** sl event id */
1111
1114
  slStreamId;
1112
1115
  /** organization id */
@@ -1141,10 +1144,10 @@ class bo {
1141
1144
  transport;
1142
1145
  cancels = /* @__PURE__ */ new Set();
1143
1146
  constructor(e) {
1144
- this.transport = e.transport, this.log = Ee("gamification-background"), this.storage = new mo(), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new te(B(void 0), "moderationId").getStore(), this.interactiveAllowed = new te(B(Oe.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new te(B(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new oe(ao(this.slStreamId, e.transport), "gamification:moderation");
1147
+ this.transport = e.transport, this.log = Ee("gamification-background"), this.storage = new go(), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new te(B(void 0), "moderationId").getStore(), this.interactiveAllowed = new te(B(Oe.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new te(B(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new oe(so(this.slStreamId, e.transport), "gamification:moderation");
1145
1148
  const r = !!e.sdk.options.get().betPack;
1146
- this.feedList = new oe(po(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, r, e.transport), "gamification:feedList"), this.betPack = new oe(ho(this.slStreamId, this.userId, this.organizationId, this.storage, e.transport), "gamification:betPack"), this.activeQuestionId = uo(this.slStreamId, r, e.transport), this.openedQuestion = yo(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
1147
- this.log.debug({ item: n }, "received question"), n?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = fo(n.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
1149
+ this.feedList = new oe(fo(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, r, e.transport), "gamification:feedList"), this.betPack = new oe(po(this.slStreamId, this.userId, this.organizationId, this.storage, e.transport), "gamification:betPack"), this.activeQuestionId = ao(this.slStreamId, r, e.transport), this.openedQuestion = ho(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((n) => {
1150
+ this.log.debug({ item: n }, "received question"), n?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = lo(n.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
1148
1151
  const o = i.data?.attributes?.question;
1149
1152
  if (this.openedQuestion.updateExtendedQuestion(o), this.betPack && o?.type === E.PREDICTION && (o.status === W.ACTIVE || o.status === W.RESOLVED)) {
1150
1153
  const s = this.betPack.getValues().data?.data || {}, a = s?.[o.id];
@@ -1175,7 +1178,7 @@ class bo {
1175
1178
  }
1176
1179
  }
1177
1180
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1178
- })), this.feedSubscription = lo(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (n) => {
1181
+ })), this.feedSubscription = co(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (n) => {
1179
1182
  const i = n.data?.attributes?.question;
1180
1183
  if (this.betPack && i?.type === E.PREDICTION && (i.status === W.ACTIVE || i.status === W.RESOLVED)) {
1181
1184
  const o = this.betPack.getValues().data?.data || {}, s = o?.[i.id];
@@ -1194,7 +1197,7 @@ class bo {
1194
1197
  }
1195
1198
  });
1196
1199
  else if (!s && Object.keys(o).length < 5) {
1197
- const a = await Vn(i.id, this.transport);
1200
+ const a = await Rn(i.id, this.transport);
1198
1201
  this.betPack.getStore().mutate({
1199
1202
  timestamp: Date.now(),
1200
1203
  data: {
@@ -1277,7 +1280,7 @@ class bo {
1277
1280
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1278
1281
  };
1279
1282
  }
1280
- class vo {
1283
+ class bo {
1281
1284
  notificationsList;
1282
1285
  store;
1283
1286
  timeouts;
@@ -1377,7 +1380,7 @@ var wt;
1377
1380
  (function(t) {
1378
1381
  t.OPENED = "opened";
1379
1382
  })(wt || (wt = {}));
1380
- class So extends it {
1383
+ class vo extends nt {
1381
1384
  constructor() {
1382
1385
  super("notification");
1383
1386
  }
@@ -1389,11 +1392,11 @@ class So extends it {
1389
1392
  this.clear();
1390
1393
  };
1391
1394
  }
1392
- class wo {
1395
+ class So {
1393
1396
  queue;
1394
1397
  storage;
1395
1398
  constructor(e = {}) {
1396
- this.storage = new So(), this.queue = new vo({ concurrency: 1, animationDelay: 1600, ...e });
1399
+ this.storage = new vo(), this.queue = new bo({ concurrency: 1, animationDelay: 1600, ...e });
1397
1400
  }
1398
1401
  isViewed = (e) => this.storage.isOpened(e);
1399
1402
  add = (e) => {
@@ -1430,8 +1433,8 @@ class wo {
1430
1433
  this.storage.setOpened(e);
1431
1434
  };
1432
1435
  }
1433
- const Ao = (t, e, r) => {
1434
- 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" }, () => () => {
1436
+ const wo = (t, e, r) => {
1437
+ t.notifications = new So(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
1435
1438
  t.notifications.queue.drain();
1436
1439
  }), r();
1437
1440
  };
@@ -1439,27 +1442,27 @@ var ze;
1439
1442
  (function(t) {
1440
1443
  t.UNKNOWN = "unknown", t.ALREADY_VOTED = "already_voted";
1441
1444
  })(ze || (ze = {}));
1442
- const Hr = async (t, e) => {
1445
+ const Kr = async (t, e) => {
1443
1446
  const { client: r, createRequestOptions: n } = t.createPromiseClient(se, { method: "submitAnswer" }), i = n({ retryAttempts: 0 });
1444
1447
  try {
1445
1448
  return await r.submitAnswer({ data: e }, { contextValues: i });
1446
1449
  } catch (o) {
1447
- throw rt.from(o)?.code === ie.AlreadyExists ? new Error(ze.ALREADY_VOTED) : new Error(ze.UNKNOWN);
1450
+ throw tt.from(o)?.code === ie.AlreadyExists ? new Error(ze.ALREADY_VOTED) : new Error(ze.UNKNOWN);
1448
1451
  }
1449
- }, $n = (t, e) => {
1452
+ }, Vn = (t, e) => {
1450
1453
  const { client: r, createRequestOptions: n } = t.createPromiseClient(se, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
1451
1454
  return r.submitInplay({ data: { eventId: +e } }, { contextValues: i });
1452
- }, Eo = {
1455
+ }, Ao = {
1453
1456
  pageSize: 10
1454
- }, Io = (t, e, r, n, i) => {
1457
+ }, Eo = (t, e, r, n, i) => {
1455
1458
  let o = 0;
1456
- const s = B({ pageSize: Eo.pageSize, page: 0 }), a = ee({
1459
+ const s = B({ pageSize: Ao.pageSize, page: 0 }), a = ee({
1457
1460
  data: [],
1458
1461
  key: Date.now(),
1459
1462
  hasMore: !0,
1460
1463
  loading: void 0,
1461
1464
  error: void 0
1462
- }), u = oo(t), d = async () => {
1465
+ }), u = io(t), d = async () => {
1463
1466
  const p = e.get(), b = n?.getStore().get().data?.map((S) => S.slId) || [];
1464
1467
  if (p && b?.length) {
1465
1468
  const S = r.get();
@@ -1484,14 +1487,14 @@ const Hr = async (t, e) => {
1484
1487
  const b = s.get(), S = p || b.page + 1;
1485
1488
  S <= o && s.set({ ...b, page: S });
1486
1489
  };
1487
- return br(a, () => {
1490
+ return mr(a, () => {
1488
1491
  const p = e.listen(d), b = n?.listen(d);
1489
1492
  return () => {
1490
1493
  p(), b?.();
1491
1494
  };
1492
1495
  }), { $store: a, fetchMore: l, invalidate: c };
1493
1496
  };
1494
- class Oo extends it {
1497
+ class Io extends nt {
1495
1498
  get = this.read;
1496
1499
  set = this.write;
1497
1500
  del = this.remove;
@@ -1499,32 +1502,32 @@ class Oo extends it {
1499
1502
  super("deep-link-context", window.sessionStorage);
1500
1503
  }
1501
1504
  }
1502
- const Wr = "sldl", Pt = "sldl_uid", Mn = "sldl_eid", Bn = "sldl_e_eid", To = /* @__PURE__ */ new Set([Pt, Mn, Bn]), Yr = (t) => {
1505
+ const Hr = "sldl", Pt = "sldl_uid", $n = "sldl_eid", Mn = "sldl_e_eid", Oo = /* @__PURE__ */ new Set([Pt, $n, Mn]), Wr = (t) => {
1503
1506
  const e = {}, r = {};
1504
1507
  for (const [n, i] of t)
1505
- To.has(n) ? e[n] = i : r[n] = i;
1508
+ Oo.has(n) ? e[n] = i : r[n] = i;
1506
1509
  return { result: e, remain: r };
1507
- }, ko = ({ hash: t, search: e }) => {
1508
- if (t && t.includes(Wr)) {
1510
+ }, To = ({ hash: t, search: e }) => {
1511
+ if (t && t.includes(Hr)) {
1509
1512
  const r = new URLSearchParams(t.substr(1));
1510
- return { hash: Yr(r) };
1513
+ return { hash: Wr(r) };
1511
1514
  }
1512
- if (e && e.includes(Wr)) {
1515
+ if (e && e.includes(Hr)) {
1513
1516
  const r = new URLSearchParams(e);
1514
- return { search: Yr(r) };
1517
+ return { search: Wr(r) };
1515
1518
  }
1516
1519
  return null;
1517
- }, Jr = Ee("deep_link"), fe = {
1520
+ }, Yr = Ee("deep_link"), fe = {
1518
1521
  debug: (...t) => {
1519
- Jr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1522
+ Yr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1520
1523
  },
1521
1524
  trace: (...t) => {
1522
- Jr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1525
+ Yr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1523
1526
  }
1524
- }, _o = (t, e) => {
1527
+ }, ko = (t, e) => {
1525
1528
  const { hash: r, search: n } = window.location;
1526
1529
  if (fe.debug({ hash: r, search: n }, "get deep link data from"), r || n) {
1527
- const i = ko({ hash: r, search: n });
1530
+ const i = To({ hash: r, search: n });
1528
1531
  if (fe.debug(i, "parse deep link result"), i) {
1529
1532
  const { hash: o, search: s } = i, { result: a, remain: u } = o || s;
1530
1533
  if (Object.keys(a).length !== 0) {
@@ -1543,8 +1546,8 @@ const Wr = "sldl", Pt = "sldl_uid", Mn = "sldl_eid", Bn = "sldl_e_eid", To = /*
1543
1546
  }
1544
1547
  }
1545
1548
  t.setValue("parsed", !0);
1546
- }, Co = (t, e, r) => {
1547
- const n = new Oo(), i = n.get("sl-deep-link-store");
1549
+ }, _o = (t, e, r) => {
1550
+ const n = new Io(), i = n.get("sl-deep-link-store");
1548
1551
  let o = {};
1549
1552
  if (i)
1550
1553
  try {
@@ -1582,15 +1585,15 @@ const Wr = "sldl", Pt = "sldl_uid", Mn = "sldl_eid", Bn = "sldl_e_eid", To = /*
1582
1585
  console.error(d);
1583
1586
  }
1584
1587
  };
1585
- _o(t.deepLink.$store, s), r();
1586
- }, Lo = Ee("bypass");
1587
- class Po extends Ri {
1588
+ ko(t.deepLink.$store, s), r();
1589
+ }, Co = Ee("bypass");
1590
+ class Lo extends Di {
1588
1591
  $coreStore;
1589
1592
  deepLink;
1590
1593
  transport;
1591
1594
  bypassLogin;
1592
1595
  constructor(e, r, n) {
1593
- super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = Wi(this.transport), this.connect();
1596
+ super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = Hi(this.transport), this.connect();
1594
1597
  }
1595
1598
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
1596
1599
  /**
@@ -1602,7 +1605,7 @@ class Po extends Ri {
1602
1605
  login = async (e, r) => {
1603
1606
  this.$coreStore.getValues().userKey.setValue(r);
1604
1607
  const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[Pt];
1605
- Lo.debug({ inviterKey: o }, "login with inviterKey");
1608
+ Co.debug({ inviterKey: o }, "login with inviterKey");
1606
1609
  const s = await this.bypassLogin({
1607
1610
  schema: e,
1608
1611
  userKey: r,
@@ -1672,8 +1675,8 @@ class Po extends Ri {
1672
1675
  });
1673
1676
  };
1674
1677
  }
1675
- const Je = new je(), No = (t, e, r) => {
1676
- t.auth = new Po(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1678
+ const Je = new je(), Po = (t, e, r) => {
1679
+ t.auth = new Lo(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1677
1680
  n === be.READY && t.auth.reLogin();
1678
1681
  }), t.sdk.userId = t.stores.user.getAtomStore, t.sdk.authorizationBypass = async (n, i) => {
1679
1682
  if (!(Je.getSchema() === n && Je.getExternalToken() === i && t.transport.getHeader("authorization")))
@@ -1685,24 +1688,24 @@ const Je = new je(), No = (t, e, r) => {
1685
1688
  }, t.sdk.logout = () => {
1686
1689
  t.auth.logout(), Je.clear();
1687
1690
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
1688
- }, Xr = Ee("video_player"), dt = {
1691
+ }, Jr = Ee("video_player"), lt = {
1689
1692
  debug: (...t) => {
1690
- Xr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1693
+ Jr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1691
1694
  },
1692
1695
  trace: (...t) => {
1693
- Xr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1696
+ Jr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1694
1697
  }
1695
- }, Fo = (t, e, r) => {
1698
+ }, No = (t, e, r) => {
1696
1699
  t.videoPlayer = {
1697
1700
  controllers: /* @__PURE__ */ new Set()
1698
1701
  }, t.sdk.addVideoPlayerController = (n) => {
1699
- dt.trace("adding video player controller"), t.videoPlayer.controllers.add(n);
1702
+ lt.trace("adding video player controller"), t.videoPlayer.controllers.add(n);
1700
1703
  }, e.videoPlayerController && t.sdk.addVideoPlayerController(e.videoPlayerController), t.sdk.removeVideoPlayerController = (n) => {
1701
- dt.trace("removing video player controller"), t.videoPlayer.controllers.delete(n);
1704
+ lt.trace("removing video player controller"), t.videoPlayer.controllers.delete(n);
1702
1705
  }, t.sdk.controlVideoPlayer = (n) => {
1703
- dt.trace("controlling video player");
1706
+ lt.trace("controlling video player");
1704
1707
  for (const i of t.videoPlayer.controllers) {
1705
- dt.trace("calling video player controller");
1708
+ lt.trace("calling video player controller");
1706
1709
  try {
1707
1710
  i(n);
1708
1711
  } catch (o) {
@@ -1710,13 +1713,13 @@ const Je = new je(), No = (t, e, r) => {
1710
1713
  }
1711
1714
  }
1712
1715
  }, r();
1713
- }, Do = {
1716
+ }, Fo = {
1714
1717
  [E.FACTOID]: "insight",
1715
1718
  [E.POLL]: "poll",
1716
1719
  [E.TRIVIA]: "trivia",
1717
1720
  [E.PREDICTION]: "prediction",
1718
1721
  [E.TWEET]: "tweet"
1719
- }, Ro = (t, e, r) => {
1722
+ }, Do = (t, e, r) => {
1720
1723
  t.sdk.uiState = ee({}), t.ui = {
1721
1724
  enableAppNotification: function() {
1722
1725
  t.sdk.uiState.setKey("appNotification", !0);
@@ -1750,7 +1753,7 @@ const Je = new je(), No = (t, e, r) => {
1750
1753
  };
1751
1754
  t.onQuestionActivate = ({ questionType: i, ...o }) => {
1752
1755
  if (t.ui.onContentActivate) {
1753
- const s = o.type || i && Do[i] || "question";
1756
+ const s = o.type || i && Fo[i] || "question";
1754
1757
  t.ui.enableAppNotification(), t.ui.onContentActivate({ ...o, type: s });
1755
1758
  }
1756
1759
  }, t.sdk.onMount({ name: "ui" }, () => {
@@ -1850,7 +1853,7 @@ const Je = new je(), No = (t, e, r) => {
1850
1853
  o(), s();
1851
1854
  };
1852
1855
  }), r();
1853
- }, Vo = (t, e, r) => {
1856
+ }, Ro = (t, e, r) => {
1854
1857
  const n = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1855
1858
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.options = ee(e), t.sdk.withAuth = !1, t.sdk.onMount = ({ name: s, clear: a }, u) => {
1856
1859
  if (i.has(s)) {
@@ -1877,8 +1880,8 @@ const Je = new je(), No = (t, e, r) => {
1877
1880
  }, t.sdk.createEventSession = (s, a) => {
1878
1881
  a ? t.stores.slStreamId.getStore().set({ loading: !1, data: s }) : t.stores.providerStreamId.setValue(s);
1879
1882
  }, r();
1880
- }, $o = (t, e) => {
1881
- const { client: r, queryKey: n } = t.createPromiseClient(nt, {
1883
+ }, Vo = (t, e) => {
1884
+ const { client: r, queryKey: n } = t.createPromiseClient(rt, {
1882
1885
  method: "generateDeepLink",
1883
1886
  params: e
1884
1887
  });
@@ -1898,29 +1901,29 @@ const Je = new je(), No = (t, e, r) => {
1898
1901
  // 24 hours
1899
1902
  refetchInterval: 1 / 0
1900
1903
  });
1901
- }, Mo = (t, { web: e, mobile: r }) => {
1902
- const { client: n } = t.createPromiseClient(Ti, { method: "generate" });
1904
+ }, $o = (t, { web: e, mobile: r }) => {
1905
+ const { client: n } = t.createPromiseClient(Oi, { method: "generate" });
1903
1906
  return n.generate({ web: e, mobile: r });
1904
- }, Zr = (t, e) => {
1907
+ }, Xr = (t, e) => {
1905
1908
  const r = new URLSearchParams(t);
1906
1909
  for (const [n, i] of Object.entries(e))
1907
1910
  r.append(n, i);
1908
1911
  return r.toString();
1909
- }, Bo = (t, e, r, n) => {
1912
+ }, Mo = (t, e, r, n) => {
1910
1913
  const i = ee({});
1911
- return br(i, () => $o(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
1914
+ return mr(i, () => Vo(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
1912
1915
  const d = a === void 0 && u === !1 ? "https://streamlayer.io" : a?.url, c = n.get() || "", l = e.get() || "", p = r.get() || "", b = {
1913
1916
  [Pt]: c,
1914
- [Mn]: l,
1915
- [Bn]: p
1917
+ [$n]: l,
1918
+ [Mn]: p
1916
1919
  };
1917
1920
  if (!u && d) {
1918
1921
  i.setKey("loading", !0);
1919
1922
  let S = window.location.search, m = window.location.hash;
1920
- S && m || m ? S = `?${Zr(S, b)}` : m = `#${Zr("", b)}`;
1923
+ S && m || m ? S = `?${Xr(S, b)}` : m = `#${Xr("", b)}`;
1921
1924
  const v = window.location.origin + window.location.pathname + S + m;
1922
1925
  try {
1923
- const k = await Mo(t, { web: v, mobile: d });
1926
+ const k = await $o(t, { web: v, mobile: d });
1924
1927
  i.set({
1925
1928
  data: k.data?.link,
1926
1929
  loading: !1
@@ -1940,7 +1943,7 @@ var $;
1940
1943
  (function(t) {
1941
1944
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
1942
1945
  })($ || ($ = {}));
1943
- const Uo = (t, e, r, n) => {
1946
+ const Bo = (t, e, r, n) => {
1944
1947
  const { inplayGame: i } = t.featureSettings.get(), o = e.getCurrentSessionId({ prefix: "onboarding" });
1945
1948
  i && r.add({
1946
1949
  type: we.ONBOARDING,
@@ -1964,7 +1967,7 @@ const Uo = (t, e, r, n) => {
1964
1967
  }
1965
1968
  }
1966
1969
  });
1967
- }, ft = (t, e, r, n, i, o, s, a) => {
1970
+ }, dt = (t, e, r, n, i, o, s, a) => {
1968
1971
  try {
1969
1972
  const u = e.userId.get(), d = e.organizationId.get(), c = e.slStreamId.get();
1970
1973
  if (!u || !d || !c)
@@ -1982,7 +1985,7 @@ const Uo = (t, e, r, n) => {
1982
1985
  organizationId: d,
1983
1986
  userId: u,
1984
1987
  eventId: c
1985
- }, $.Completed), $n(s, c));
1988
+ }, $.Completed), Vn(s, c));
1986
1989
  return;
1987
1990
  }
1988
1991
  const p = e.moderation.getStore().value?.data, b = r.featureSettings.get().inplayGame;
@@ -1993,11 +1996,11 @@ const Uo = (t, e, r, n) => {
1993
1996
  } catch (u) {
1994
1997
  console.error(u);
1995
1998
  }
1996
- }, en = (t, e, r, n, i) => {
1999
+ }, Zr = (t, e, r, n, i) => {
1997
2000
  let o = !!i?.skipOnboarding;
1998
2001
  const s = e.storage, a = B($.Unset);
1999
2002
  a.subscribe((c) => {
2000
- c !== $.Unset && (c === $.Optional || c === $.Required ? o === !1 && (Uo(t, e, n, s), o = !0) : t.onboardingProcessed.set(!0), c === $.Completed && e.activeQuestionId.invalidate(), s.setOnboardingInstantOpen({
2003
+ c !== $.Unset && (c === $.Optional || c === $.Required ? o === !1 && (Bo(t, e, n, s), o = !0) : t.onboardingProcessed.set(!0), c === $.Completed && e.activeQuestionId.invalidate(), s.setOnboardingInstantOpen({
2001
2004
  userId: e.userId.get() || "",
2002
2005
  organizationId: e.organizationId.get() || "",
2003
2006
  eventId: e.slStreamId.get() || ""
@@ -2005,15 +2008,15 @@ const Uo = (t, e, r, n) => {
2005
2008
  });
2006
2009
  const u = [];
2007
2010
  return a.get() !== $.Completed && (u.push(e.userId.listen((c) => {
2008
- c && ft(a, e, t, n, s, u, r, i);
2011
+ c && dt(a, e, t, n, s, u, r, i);
2009
2012
  })), u.push(e.moderation.listen((c) => {
2010
- c.data && ft(a, e, t, n, s, u, r, i);
2013
+ c.data && dt(a, e, t, n, s, u, r, i);
2011
2014
  })), u.push(t.featureSettings.listen((c) => {
2012
- c && ft(a, e, t, n, s, u, r, i);
2013
- }))), ft(a, e, t, n, s, u, r, i), { $store: a, submitInplay: async () => {
2015
+ c && dt(a, e, t, n, s, u, r, i);
2016
+ }))), dt(a, e, t, n, s, u, r, i), { $store: a, submitInplay: async () => {
2014
2017
  const c = e.slStreamId.get();
2015
2018
  if (c) {
2016
- await $n(r, c), a.set($.Completed), s.saveOnboardingStatus({
2019
+ await Vn(r, c), a.set($.Completed), s.saveOnboardingStatus({
2017
2020
  organizationId: e.organizationId.get() || "",
2018
2021
  userId: e.userId.get() || "",
2019
2022
  eventId: c
@@ -2025,8 +2028,8 @@ const Uo = (t, e, r, n) => {
2025
2028
  n.close(l);
2026
2029
  }
2027
2030
  } };
2028
- }, jo = (t, e, r, n) => {
2029
- const i = ee(void 0), o = Rn(n), s = async () => {
2031
+ }, Uo = (t, e, r, n) => {
2032
+ const i = ee(void 0), o = Dn(n), s = async () => {
2030
2033
  const u = t.get(), d = e.get(), c = r ? r.getStore().get().data?.map((b) => b.slId) : [];
2031
2034
  if (!c || !u || !d)
2032
2035
  return;
@@ -2039,22 +2042,22 @@ const Uo = (t, e, r, n) => {
2039
2042
  }, a = () => {
2040
2043
  s();
2041
2044
  };
2042
- return br(i, () => {
2045
+ return mr(i, () => {
2043
2046
  a();
2044
2047
  const u = t.listen(s), d = r?.listen(s), c = e.listen(s);
2045
2048
  return () => {
2046
2049
  u(), d?.(), c();
2047
2050
  };
2048
2051
  }), { $store: i, invalidate: a };
2049
- }, qo = async (t, e, r, n, i) => {
2050
- const o = Rn(i), s = t.get(), a = e.get(), u = r?.getStore().get().data?.map((p) => p.slId) || [], d = {
2052
+ }, jo = async (t, e, r, n, i) => {
2053
+ const o = Dn(i), s = t.get(), a = e.get(), u = r?.getStore().get().data?.map((p) => p.slId) || [], d = {
2051
2054
  eventId: s,
2052
2055
  userId: n,
2053
2056
  usersIds: [...u, a]
2054
2057
  };
2055
2058
  return (await o(d)).data?.attributes?.summary;
2056
- }, tn = /* @__PURE__ */ new Set([E.POLL, E.PREDICTION, E.TRIVIA]);
2057
- class xo extends Fn {
2059
+ }, en = /* @__PURE__ */ new Set([E.POLL, E.PREDICTION, E.TRIVIA]);
2060
+ class qo extends Nn {
2058
2061
  /** user statistics (leaderboard panel) */
2059
2062
  userSummary;
2060
2063
  /** feed list (pick history) */
@@ -2095,16 +2098,16 @@ class xo extends Fn {
2095
2098
  cancels = /* @__PURE__ */ new Set();
2096
2099
  onQuestionActivate;
2097
2100
  constructor(e, r, n) {
2098
- if (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 = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = B(!n.sdk.withAuth), this.leaderboardId = new te(B(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), 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 = Bo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = jo(this.background.slStreamId, this.background.userId, this.friends, this.transport), !n.sdk.options.get().hideFriends) {
2099
- this.friends = new oe(so(this.background.userId, n.transport), "gamification:friends"), this.openedUser = B(void 0);
2100
- const i = this.leaderboardList = Io(this.transport, this.background.slStreamId, this.background.userId, this.friends);
2101
+ if (super(e, r), this.background = new mo(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 = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = B(!n.sdk.withAuth), this.leaderboardId = new te(B(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), 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 = Mo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Uo(this.background.slStreamId, this.background.userId, this.friends, this.transport), !n.sdk.options.get().hideFriends) {
2102
+ this.friends = new oe(oo(this.background.userId, n.transport), "gamification:friends"), this.openedUser = B(void 0);
2103
+ const i = this.leaderboardList = Eo(this.transport, this.background.slStreamId, this.background.userId, this.friends);
2101
2104
  this.cancels.add(this.userSummary.$store.listen((o, s) => {
2102
2105
  s?.summary && o?.summary && i.invalidate();
2103
2106
  }));
2104
2107
  }
2105
- this.connect(), this.skipOnboarding = !!n.sdk.options.get().skipOnboarding, this.onboardingStatus = en(this, this.background, n.transport, n.notifications, {
2108
+ this.connect(), this.skipOnboarding = !!n.sdk.options.get().skipOnboarding, this.onboardingStatus = Zr(this, this.background, n.transport, n.notifications, {
2106
2109
  skipOnboarding: n.sdk.options.get().skipOnboarding
2107
- }), n.sdk.options.get().skipOnboarding || (this.onboardingStatus = en(this, this.background, n.transport, n.notifications, {
2110
+ }), n.sdk.options.get().skipOnboarding || (this.onboardingStatus = Zr(this, this.background, n.transport, n.notifications, {
2108
2111
  skipOnboarding: n.sdk.options.get().skipOnboarding
2109
2112
  })), 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) => {
2110
2113
  (o === void 0 || i !== $.Unset) && this.background.activeQuestionId.invalidate();
@@ -2143,17 +2146,17 @@ class xo extends Fn {
2143
2146
  prefix: `notification-id:${s}`
2144
2147
  }), d = [...this.feedList.getValues().data || []], c = d.findIndex((G) => G.id === s), l = d[c];
2145
2148
  let p = l?.attributes?.attributes?.value?.answerId;
2146
- const b = Xe(s, this.transport), S = b.subscribe(() => {
2149
+ const b = pt(s, this.transport), S = b.subscribe(() => {
2147
2150
  });
2148
2151
  await b.get().promise;
2149
2152
  let m = b.get().data;
2150
- m || (m = await Vn(s, this.transport), b.mutate(m)), S(), window.requestAnimationFrame(() => {
2153
+ m || (m = await Rn(s, this.transport), b.mutate(m)), S(), window.requestAnimationFrame(() => {
2151
2154
  b.invalidate();
2152
2155
  }), p || (p = m?.answers.find(({ youVoted: G }) => G)?.id);
2153
2156
  const v = a.find(({ correct: G }) => G), k = p ? a.find(({ id: G }) => G === p) : void 0, V = !!k?.correct;
2154
2157
  if (l && d[c]?.attributes?.attributes.case === "question") {
2155
2158
  try {
2156
- d[c].attributes.attributes.value.answerId = p, d[c].attributes.attributes.value.openForVoting = !1, p && (d[c].attributes.attributes.value.status = V ? lt.WON : lt.LOST);
2159
+ d[c].attributes.attributes.value.answerId = p, d[c].attributes.attributes.value.openForVoting = !1, p && (d[c].attributes.attributes.value.status = V ? ct.WON : ct.LOST);
2157
2160
  } catch {
2158
2161
  }
2159
2162
  this.feedList.getStore().mutate(d);
@@ -2186,7 +2189,7 @@ class xo extends Fn {
2186
2189
  }
2187
2190
  })), this.cancels.add(this.background.feedSubscription.addListener("feed-subscription-questions-list", (e) => {
2188
2191
  const r = [...this.feedList.getStore().value?.data || []], n = e.data?.attributes?.feedItem, i = r.findIndex((o) => o.id === n?.id);
2189
- if (n?.attributes && n.attributes.attributes.case !== "promotion" && !(n.attributes.status !== W.ACTIVE && n.attributes.status !== W.RESOLVED) && !(!this.isInteractiveAllowed && tn.has(n.attributes.type))) {
2192
+ if (n?.attributes && n.attributes.attributes.case !== "promotion" && !(n.attributes.status !== W.ACTIVE && n.attributes.status !== W.RESOLVED) && !(!this.isInteractiveAllowed && en.has(n.attributes.type))) {
2190
2193
  if (i !== -1)
2191
2194
  if (n.attributes.attributes.case === "question" && r[i].attributes?.attributes.case === "question") {
2192
2195
  const o = r[i];
@@ -2254,10 +2257,10 @@ class xo extends Fn {
2254
2257
  if (!this.betPack)
2255
2258
  return;
2256
2259
  try {
2257
- await Hr(this.transport, { questionId: e, answerId: r });
2260
+ await Kr(this.transport, { questionId: e, answerId: r });
2258
2261
  } catch (o) {
2259
2262
  if (o.message === ze.ALREADY_VOTED) {
2260
- const s = Xe(e, this.transport), a = s.subscribe(() => {
2263
+ const s = pt(e, this.transport), a = s.subscribe(() => {
2261
2264
  });
2262
2265
  s.invalidate(), a();
2263
2266
  }
@@ -2276,7 +2279,7 @@ class xo extends Fn {
2276
2279
  } : o), this.betPack.getStore().mutate({ data: n, timestamp: Date.now() }));
2277
2280
  };
2278
2281
  submitAnswer = async (e, r) => {
2279
- const n = Xe(e, this.transport), i = n.subscribe(() => {
2282
+ const n = pt(e, this.transport), i = n.subscribe(() => {
2280
2283
  }), o = { ...n.get().data || {} }, s = () => {
2281
2284
  const a = this.feedList.getValues().data;
2282
2285
  if (!a)
@@ -2293,7 +2296,7 @@ class xo extends Fn {
2293
2296
  const l = n.get().data;
2294
2297
  if (i(), l) {
2295
2298
  const p = l.answers.find((v) => v.correct === !0), b = l.answers.findIndex((v) => v.id === r), S = l.answers[b], m = l.answers.every(({ percentageDecimal: v }, k) => v === o?.answers[k].percentageDecimal);
2296
- a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = S?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? lt.WON : lt.LOST), this.feedList.getStore().mutate([...a]), l.answers[b].correct = p?.id === r, l.answers[b].youVoted = !0, m && l.answers.forEach((v) => {
2299
+ a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = S?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? ct.WON : ct.LOST), this.feedList.getStore().mutate([...a]), l.answers[b].correct = p?.id === r, l.answers[b].youVoted = !0, m && l.answers.forEach((v) => {
2297
2300
  v.percentageDecimal = 0;
2298
2301
  }), p?.id === r && (l.answers[b].pointsEarned = l.status === W.RESOLVED ? 0 : p.points), n.mutate({ ...l });
2299
2302
  }
@@ -2303,7 +2306,7 @@ class xo extends Fn {
2303
2306
  }
2304
2307
  };
2305
2308
  try {
2306
- await Hr(this.transport, { questionId: e, answerId: r }), s();
2309
+ await Kr(this.transport, { questionId: e, answerId: r }), s();
2307
2310
  } catch (a) {
2308
2311
  if (a.message === ze.ALREADY_VOTED) {
2309
2312
  this.userSummary.invalidate();
@@ -2319,7 +2322,7 @@ class xo extends Fn {
2319
2322
  return () => {
2320
2323
  };
2321
2324
  const n = r?.openedFrom === "bet-pack";
2322
- n || Xe(e, this.transport).invalidate(), this.notifications.close(this.background.getCurrentSessionId({
2325
+ this.notifications.close(this.background.getCurrentSessionId({
2323
2326
  prefix: "notification",
2324
2327
  entity: e
2325
2328
  }), {
@@ -2344,7 +2347,7 @@ class xo extends Fn {
2344
2347
  openedFrom: r?.openedFrom === "bet-pack" ? "list" : r?.openedFrom
2345
2348
  } : void 0);
2346
2349
  };
2347
- getFeedItem = (e) => co(e, this.transport);
2350
+ getFeedItem = (e) => uo(e, this.transport);
2348
2351
  isOpenedQuestion = (e) => !!this.notifications.isViewed(e);
2349
2352
  closeQuestion = (e) => (e && this.onQuestionActivate({
2350
2353
  stage: "deactivate",
@@ -2368,7 +2371,7 @@ class xo extends Fn {
2368
2371
  }
2369
2372
  const n = { ...r };
2370
2373
  try {
2371
- const i = await qo(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2374
+ const i = await jo(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2372
2375
  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);
2373
2376
  } catch (i) {
2374
2377
  console.error(i);
@@ -2386,8 +2389,8 @@ class xo extends Fn {
2386
2389
  */
2387
2390
  showInApp = (e) => {
2388
2391
  const r = this.onboardingStatus.$store.get();
2389
- if (e && e.data && r && r !== $.Unset && e.data.question?.id !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== wi.ON && e.data.question.status === W.ACTIVE && !e.data.question.marketClosed) {
2390
- if (tn.has(e.data.question.type))
2392
+ if (e && e.data && r && r !== $.Unset && e.data.question?.id !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== Si.ON && e.data.question.status === W.ACTIVE && !e.data.question.marketClosed) {
2393
+ if (en.has(e.data.question.type))
2391
2394
  this.isInteractiveAllowed && e.data.question.notification !== void 0 && this.notifications.add({
2392
2395
  type: we.QUESTION,
2393
2396
  action: () => this.openQuestion(e.data?.question?.id, e.data?.feedItem),
@@ -2439,7 +2442,7 @@ class xo extends Fn {
2439
2442
  questionType: e.data.question.type,
2440
2443
  insight: s,
2441
2444
  inApp: {
2442
- useMediaFromContent: n?.useAsNotification === Ai.ENABLED,
2445
+ useMediaFromContent: n?.useAsNotification === wi.ENABLED,
2443
2446
  notification: e.data.question.notification,
2444
2447
  appearance: e.data.question.appearance,
2445
2448
  sponsorship: e.data.question.sponsorship
@@ -2490,15 +2493,15 @@ class xo extends Fn {
2490
2493
  }
2491
2494
  };
2492
2495
  }
2493
- const Qo = {
2496
+ const xo = {
2494
2497
  [D.GAMES]: !0
2495
2498
  };
2496
- class Go extends Fn {
2499
+ class Qo extends Nn {
2497
2500
  constructor(e, r) {
2498
2501
  super(e, r);
2499
2502
  }
2500
2503
  }
2501
- const zo = (t, e, r) => t.type === D.GAMES ? new xo(t, e, r) : new Go(t, e), Ko = (t, e, r) => {
2504
+ const Go = (t, e, r) => t.type === D.GAMES ? new qo(t, e, r) : new Qo(t, e), zo = (t, e, r) => {
2502
2505
  t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new te(B(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new te(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) => {
2503
2506
  t.sdk.initializeApp().then(() => {
2504
2507
  t.activeFeature.setValue(n);
@@ -2511,8 +2514,8 @@ const zo = (t, e, r) => t.type === D.GAMES ? new xo(t, e, r) : new Go(t, e), Ko
2511
2514
  o && o.delete(i), t.sdk.featuresList.setValue(o);
2512
2515
  }
2513
2516
  }, t.initFeature = (n, i = me.ORGANIZATION) => {
2514
- if (n.type in Qo && !t.features.has(n.type)) {
2515
- const o = zo(n, i, t);
2517
+ if (n.type in xo && !t.features.has(n.type)) {
2518
+ const o = Go(n, i, t);
2516
2519
  t.features.set(n.type, o);
2517
2520
  let s = t.sdk.featuresList.getValue();
2518
2521
  s ? s.add(n.type) : s = /* @__PURE__ */ new Set([n.type]), t.sdk.featuresList.setValue(new Set(s));
@@ -2565,7 +2568,7 @@ const zo = (t, e, r) => t.type === D.GAMES ? new xo(t, e, r) : new Go(t, e), Ko
2565
2568
  t.store.subscribe(i);
2566
2569
  }, r();
2567
2570
  };
2568
- class Ho {
2571
+ class Ko {
2569
2572
  analytics;
2570
2573
  constructor(e) {
2571
2574
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2586,8 +2589,8 @@ class Ho {
2586
2589
  ...this.analytics.commonStore.getValues(),
2587
2590
  kind: x.INVITATION_ACCEPTED
2588
2591
  },
2589
- category: Rr.GAMES,
2590
- from: Vr.UNSET
2592
+ category: Dr.GAMES,
2593
+ from: Rr.UNSET
2591
2594
  });
2592
2595
  };
2593
2596
  sent = ({ from: e }) => {
@@ -2596,12 +2599,12 @@ class Ho {
2596
2599
  ...this.analytics.commonStore.getValues(),
2597
2600
  kind: x.INVITATION_SENT
2598
2601
  },
2599
- category: Rr.GAMES,
2600
- from: e || Vr.UNSET
2602
+ category: Dr.GAMES,
2603
+ from: e || Rr.UNSET
2601
2604
  });
2602
2605
  };
2603
2606
  }
2604
- class Wo {
2607
+ class Ho {
2605
2608
  analytics;
2606
2609
  constructor(e) {
2607
2610
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2625,7 +2628,7 @@ class Wo {
2625
2628
  ...this.analytics.commonStore.getValues(),
2626
2629
  kind: x.INTERACTIONS
2627
2630
  },
2628
- actionType: xr.TAP
2631
+ actionType: qr.TAP
2629
2632
  });
2630
2633
  };
2631
2634
  scroll = () => {
@@ -2634,11 +2637,11 @@ class Wo {
2634
2637
  ...this.analytics.commonStore.getValues(),
2635
2638
  kind: x.INTERACTIONS
2636
2639
  },
2637
- actionType: xr.SCROLL
2640
+ actionType: qr.SCROLL
2638
2641
  });
2639
2642
  };
2640
2643
  }
2641
- const Yo = {
2644
+ const Wo = {
2642
2645
  [H.UNSET]: J.UNSET,
2643
2646
  [H.INGAME_IAB21]: J.PROMOTION_INGAME_IAB21,
2644
2647
  [H.INGAME_IAB11_LBAR]: J.PROMOTION_INGAME_IAB11_LBAR,
@@ -2651,14 +2654,14 @@ const Yo = {
2651
2654
  [H.SHOP_LBAR]: J.PROMOTION_SHOP_LBAR,
2652
2655
  [H.SHOP_OVERLAY]: J.PROMOTION_SHOP_OVERLAY,
2653
2656
  [H.SHOP_SIDEBAR]: J.PROMOTION_SHOP_SIDEBAR
2654
- }, ar = (t) => t ? Yo[t] : J.UNSET;
2655
- class Jo {
2657
+ }, sr = (t) => t ? Wo[t] : J.UNSET;
2658
+ class Yo {
2656
2659
  analytics;
2657
2660
  constructor(e) {
2658
2661
  this.analytics = e, this.analytics.onConnect(() => {
2659
2662
  const r = (n) => {
2660
2663
  if (!n.slEventBus?.skipAnalytics && n.slEventBus?.type === "advertisement") {
2661
- const i = ar(n.slEventBus.payload.type);
2664
+ const i = sr(n.slEventBus.payload.type);
2662
2665
  switch (n.slEventBus.action) {
2663
2666
  case "videoPlay":
2664
2667
  this.videoPlay(n.slEventBus.payload, { topicSubType: i });
@@ -2757,7 +2760,7 @@ class Jo {
2757
2760
  });
2758
2761
  };
2759
2762
  }
2760
- const et = {
2763
+ const Ze = {
2761
2764
  [E.UNSET]: q.UNSET,
2762
2765
  [E.FACTOID]: q.POLLS_INSIGHT,
2763
2766
  [E.POLL]: q.POLLS_POLL,
@@ -2767,7 +2770,7 @@ const et = {
2767
2770
  [E.TWEET]: q.POLLS_TWITTER
2768
2771
  };
2769
2772
  E.UNSET + "", ye.UNSET, E.FACTOID + "", ye.POLLS, E.POLL + "", ye.POLLS, E.PREDICTION + "", ye.POLLS, E.PROMOTION + "", ye.POLLS, E.TRIVIA + "", ye.POLLS, E.TWEET + "", ye.POLLS;
2770
- const Xo = {
2773
+ const Jo = {
2771
2774
  [D.UNSET]: z.UNSET,
2772
2775
  [D.INPLAY]: z.INPLAY,
2773
2776
  [D.MESSAGING]: z.MESSAGING,
@@ -2787,7 +2790,7 @@ const Xo = {
2787
2790
  [D.HIGHLIGHTS]: z.HIGHLIGHTS,
2788
2791
  [D.PUBLIC_CHAT]: z.PUBLIC_CHAT
2789
2792
  };
2790
- class Zo {
2793
+ class Xo {
2791
2794
  analytics;
2792
2795
  constructor(e) {
2793
2796
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2807,14 +2810,14 @@ class Zo {
2807
2810
  this.received({
2808
2811
  questionId: n.slEventBus.payload.id,
2809
2812
  questionType: E.PROMOTION,
2810
- topicSubType: ar(n.slEventBus.payload.type)
2813
+ topicSubType: sr(n.slEventBus.payload.type)
2811
2814
  });
2812
2815
  break;
2813
2816
  case "notification-opened":
2814
2817
  this.opened({
2815
2818
  questionId: n.slEventBus.payload.id,
2816
2819
  questionType: E.PROMOTION,
2817
- topicSubType: ar(n.slEventBus.payload.type)
2820
+ topicSubType: sr(n.slEventBus.payload.type)
2818
2821
  });
2819
2822
  break;
2820
2823
  }
@@ -2828,11 +2831,11 @@ class Zo {
2828
2831
  ...this.analytics.commonStore.getValues(),
2829
2832
  kind: x.NOTIFICATION_RECEIVED,
2830
2833
  topicId: e,
2831
- topicType: r ? et[r] : q.UNSET,
2834
+ topicType: r ? Ze[r] : q.UNSET,
2832
2835
  topicSubType: n
2833
2836
  },
2834
2837
  notificationKind: ye.POLLS,
2835
- notificationType: Qr.IN_APP
2838
+ notificationType: xr.IN_APP
2836
2839
  });
2837
2840
  };
2838
2841
  opened = ({ questionId: e, questionType: r, topicSubType: n }) => {
@@ -2841,15 +2844,15 @@ class Zo {
2841
2844
  ...this.analytics.commonStore.getValues(),
2842
2845
  kind: x.NOTIFICATION_OPENED,
2843
2846
  topicId: e,
2844
- topicType: r ? et[r] : q.UNSET,
2847
+ topicType: r ? Ze[r] : q.UNSET,
2845
2848
  topicSubType: n
2846
2849
  },
2847
2850
  notificationKind: ye.POLLS,
2848
- notificationType: Qr.IN_APP
2851
+ notificationType: xr.IN_APP
2849
2852
  });
2850
2853
  };
2851
2854
  }
2852
- class es {
2855
+ class Zo {
2853
2856
  analytics;
2854
2857
  constructor(e) {
2855
2858
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2883,7 +2886,7 @@ class es {
2883
2886
  ...this.analytics.commonStore.getValues(),
2884
2887
  kind: x.POLLS_RECEIVED,
2885
2888
  topicId: e,
2886
- topicType: r ? et[r] : q.UNSET
2889
+ topicType: r ? Ze[r] : q.UNSET
2887
2890
  },
2888
2891
  pollOpenedFrom: X.UNSET
2889
2892
  });
@@ -2895,7 +2898,7 @@ class es {
2895
2898
  ...this.analytics.commonStore.getValues(),
2896
2899
  kind: x.POLLS_OPENED,
2897
2900
  topicId: e,
2898
- topicType: r ? et[r] : q.UNSET
2901
+ topicType: r ? Ze[r] : q.UNSET
2899
2902
  },
2900
2903
  pollOpenedFrom: n === "list" ? X.PICK_HISTORY : X.IN_APP
2901
2904
  });
@@ -2907,7 +2910,7 @@ class es {
2907
2910
  ...this.analytics.commonStore.getValues(),
2908
2911
  kind: x.POLLS_VOTE,
2909
2912
  topicId: e,
2910
- topicType: r ? et[r] : q.UNSET
2913
+ topicType: r ? Ze[r] : q.UNSET
2911
2914
  },
2912
2915
  pollOpenedFrom: X.UNSET
2913
2916
  });
@@ -2933,9 +2936,9 @@ class es {
2933
2936
  });
2934
2937
  };
2935
2938
  }
2936
- const ts = ({ transport: t, $commonStore: e }) => {
2939
+ const es = ({ transport: t, $commonStore: e }) => {
2937
2940
  let r;
2938
- const n = B(!1), i = 3e4, { client: o, queryKey: s } = t.createPromiseClient(_n, {
2941
+ const n = B(!1), i = 3e4, { client: o, queryKey: s } = t.createPromiseClient(kn, {
2939
2942
  method: "send",
2940
2943
  params: [n]
2941
2944
  }), a = t.nanoquery.createFetcherStore(s, {
@@ -2971,7 +2974,7 @@ const ts = ({ transport: t, $commonStore: e }) => {
2971
2974
  ve.debug("unmounted heartbeat"), a.off(), r?.(), r = void 0, c();
2972
2975
  } };
2973
2976
  }, ve = Ee("analytics");
2974
- class rs {
2977
+ class ts {
2975
2978
  commonStore;
2976
2979
  notifications;
2977
2980
  polls;
@@ -2984,8 +2987,8 @@ class rs {
2984
2987
  listenersCancels;
2985
2988
  connected = !1;
2986
2989
  constructor(e) {
2987
- this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Le(ee({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = ts({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Zo(this), this.polls = new es(this), this.invitation = new Ho(this), this.interactions = new Wo(this), this.advertisement = new Jo(this);
2988
- const { client: r } = e.analyticsTransport.createPromiseClient(_n, {
2990
+ this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Le(ee({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = es({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Xo(this), this.polls = new Zo(this), this.invitation = new Ko(this), this.interactions = new Ho(this), this.advertisement = new Yo(this);
2991
+ const { client: r } = e.analyticsTransport.createPromiseClient(kn, {
2989
2992
  method: "send"
2990
2993
  });
2991
2994
  this.analyticsClient = r;
@@ -3014,10 +3017,10 @@ class rs {
3014
3017
  this.onConnect(() => e.stores.slStreamId.getAtomStore().subscribe((r) => {
3015
3018
  this.writeCommon("eventId", r);
3016
3019
  })), this.onConnect(() => e.sdk.getActiveFeature().subscribe((r) => {
3017
- r && this.writeCommon("category", Xo[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", St()) : this.writeCommon("overlaySessionId", "");
3020
+ r && this.writeCommon("category", Jo[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", St()) : this.writeCommon("overlaySessionId", "");
3018
3021
  })), this.onConnect(() => {
3019
3022
  const r = window.matchMedia("(orientation: portrait)"), n = (i) => {
3020
- this.writeCommon("screenOrientation", i.matches ? qr.PORTRAIT : qr.LANDSCAPE);
3023
+ this.writeCommon("screenOrientation", i.matches ? jr.PORTRAIT : jr.LANDSCAPE);
3021
3024
  };
3022
3025
  return r.addEventListener("change", n), () => {
3023
3026
  r.removeEventListener("change", n);
@@ -3027,19 +3030,19 @@ class rs {
3027
3030
  }));
3028
3031
  };
3029
3032
  }
3030
- const ns = (t, e, r) => {
3031
- t.analytics = new rs(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), t.sdk.writeOverlaySessionId = (n) => {
3033
+ const rs = (t, e, r) => {
3034
+ t.analytics = new ts(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), t.sdk.writeOverlaySessionId = (n) => {
3032
3035
  n === "" ? t.analytics.writeCommon("overlaySessionId", "") : t.analytics.writeCommon("overlaySessionId", St());
3033
3036
  }, () => {
3034
3037
  t.analytics.disconnect();
3035
3038
  })), r();
3036
3039
  };
3037
- var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3038
- function is(t) {
3040
+ var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3041
+ function ns(t) {
3039
3042
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3040
3043
  }
3041
- var wr = { exports: {} }, Ar = { exports: {} };
3042
- function os(t) {
3044
+ var Sr = { exports: {} }, wr = { exports: {} };
3045
+ function is(t) {
3043
3046
  var e = new t(), r = e;
3044
3047
  function n() {
3045
3048
  var o = e;
@@ -3053,11 +3056,11 @@ function os(t) {
3053
3056
  release: i
3054
3057
  };
3055
3058
  }
3056
- var ss = os, as = ss;
3057
- function Un(t, e, r) {
3059
+ var os = is, ss = os;
3060
+ function Bn(t, e, r) {
3058
3061
  if (typeof t == "function" && (r = e, e = t, t = null), !(r >= 1))
3059
3062
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
3060
- var n = as(us), i = null, o = null, s = 0, a = null, u = {
3063
+ var n = ss(as), i = null, o = null, s = 0, a = null, u = {
3061
3064
  push: m,
3062
3065
  drain: Z,
3063
3066
  saturated: Z,
@@ -3139,7 +3142,7 @@ function Un(t, e, r) {
3139
3142
  }
3140
3143
  function Z() {
3141
3144
  }
3142
- function us() {
3145
+ function as() {
3143
3146
  this.value = null, this.callback = Z, this.next = null, this.release = Z, this.context = null, this.errorHandler = null;
3144
3147
  var t = this;
3145
3148
  this.worked = function(r, n) {
@@ -3147,14 +3150,14 @@ function us() {
3147
3150
  t.value = null, t.callback = Z, t.errorHandler && o(r, s), i.call(t.context, r, n), t.release(t);
3148
3151
  };
3149
3152
  }
3150
- function cs(t, e, r) {
3153
+ function us(t, e, r) {
3151
3154
  typeof t == "function" && (r = e, e = t, t = null);
3152
3155
  function n(c, l) {
3153
3156
  e.call(this, c).then(function(p) {
3154
3157
  l(null, p);
3155
3158
  }, l);
3156
3159
  }
3157
- var i = Un(t, n, r), o = i.push, s = i.unshift;
3160
+ var i = Bn(t, n, r), o = i.push, s = i.unshift;
3158
3161
  return i.push = a, i.unshift = u, i.drained = d, i;
3159
3162
  function a(c) {
3160
3163
  var l = new Promise(function(p, b) {
@@ -3193,9 +3196,9 @@ function cs(t, e, r) {
3193
3196
  return l;
3194
3197
  }
3195
3198
  }
3196
- Ar.exports = Un;
3197
- Ar.exports.promise = cs;
3198
- var jn = Ar.exports, Er = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, rn = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
3199
+ wr.exports = Bn;
3200
+ wr.exports.promise = us;
3201
+ var Un = wr.exports, Ar = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, tn = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
3199
3202
  return Function.prototype.apply.call(e, r, n);
3200
3203
  }, ht;
3201
3204
  Qe && typeof Qe.ownKeys == "function" ? ht = Qe.ownKeys : Object.getOwnPropertySymbols ? ht = function(e) {
@@ -3203,22 +3206,22 @@ Qe && typeof Qe.ownKeys == "function" ? ht = Qe.ownKeys : Object.getOwnPropertyS
3203
3206
  } : ht = function(e) {
3204
3207
  return Object.getOwnPropertyNames(e);
3205
3208
  };
3206
- function ls(t) {
3209
+ function cs(t) {
3207
3210
  console && console.warn && console.warn(t);
3208
3211
  }
3209
- var qn = Number.isNaN || function(e) {
3212
+ var jn = Number.isNaN || function(e) {
3210
3213
  return e !== e;
3211
3214
  };
3212
3215
  function N() {
3213
3216
  N.init.call(this);
3214
3217
  }
3215
- Er.exports = N;
3216
- Er.exports.once = hs;
3218
+ Ar.exports = N;
3219
+ Ar.exports.once = ps;
3217
3220
  N.EventEmitter = N;
3218
3221
  N.prototype._events = void 0;
3219
3222
  N.prototype._eventsCount = 0;
3220
3223
  N.prototype._maxListeners = void 0;
3221
- var nn = 10;
3224
+ var rn = 10;
3222
3225
  function Nt(t) {
3223
3226
  if (typeof t != "function")
3224
3227
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
@@ -3226,27 +3229,27 @@ function Nt(t) {
3226
3229
  Object.defineProperty(N, "defaultMaxListeners", {
3227
3230
  enumerable: !0,
3228
3231
  get: function() {
3229
- return nn;
3232
+ return rn;
3230
3233
  },
3231
3234
  set: function(t) {
3232
- if (typeof t != "number" || t < 0 || qn(t))
3235
+ if (typeof t != "number" || t < 0 || jn(t))
3233
3236
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
3234
- nn = t;
3237
+ rn = t;
3235
3238
  }
3236
3239
  });
3237
3240
  N.init = function() {
3238
3241
  (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;
3239
3242
  };
3240
3243
  N.prototype.setMaxListeners = function(e) {
3241
- if (typeof e != "number" || e < 0 || qn(e))
3244
+ if (typeof e != "number" || e < 0 || jn(e))
3242
3245
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
3243
3246
  return this._maxListeners = e, this;
3244
3247
  };
3245
- function xn(t) {
3248
+ function qn(t) {
3246
3249
  return t._maxListeners === void 0 ? N.defaultMaxListeners : t._maxListeners;
3247
3250
  }
3248
3251
  N.prototype.getMaxListeners = function() {
3249
- return xn(this);
3252
+ return qn(this);
3250
3253
  };
3251
3254
  N.prototype.emit = function(e) {
3252
3255
  for (var r = [], n = 1; n < arguments.length; n++) r.push(arguments[n]);
@@ -3266,13 +3269,13 @@ N.prototype.emit = function(e) {
3266
3269
  if (u === void 0)
3267
3270
  return !1;
3268
3271
  if (typeof u == "function")
3269
- rn(u, this, r);
3272
+ tn(u, this, r);
3270
3273
  else
3271
- for (var d = u.length, c = Hn(u, d), n = 0; n < d; ++n)
3272
- rn(c[n], this, r);
3274
+ for (var d = u.length, c = Kn(u, d), n = 0; n < d; ++n)
3275
+ tn(c[n], this, r);
3273
3276
  return !0;
3274
3277
  };
3275
- function Qn(t, e, r, n) {
3278
+ function xn(t, e, r, n) {
3276
3279
  var i, o, s;
3277
3280
  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(
3278
3281
  "newListener",
@@ -3280,33 +3283,33 @@ function Qn(t, e, r, n) {
3280
3283
  r.listener ? r.listener : r
3281
3284
  ), o = t._events), s = o[e]), s === void 0)
3282
3285
  s = o[e] = r, ++t._eventsCount;
3283
- else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), i = xn(t), i > 0 && s.length > i && !s.warned) {
3286
+ 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) {
3284
3287
  s.warned = !0;
3285
3288
  var a = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3286
- a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, ls(a);
3289
+ a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, cs(a);
3287
3290
  }
3288
3291
  return t;
3289
3292
  }
3290
3293
  N.prototype.addListener = function(e, r) {
3291
- return Qn(this, e, r, !1);
3294
+ return xn(this, e, r, !1);
3292
3295
  };
3293
3296
  N.prototype.on = N.prototype.addListener;
3294
3297
  N.prototype.prependListener = function(e, r) {
3295
- return Qn(this, e, r, !0);
3298
+ return xn(this, e, r, !0);
3296
3299
  };
3297
- function ds() {
3300
+ function ls() {
3298
3301
  if (!this.fired)
3299
3302
  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);
3300
3303
  }
3301
- function Gn(t, e, r) {
3302
- var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = ds.bind(n);
3304
+ function Qn(t, e, r) {
3305
+ var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = ls.bind(n);
3303
3306
  return i.listener = r, n.wrapFn = i, i;
3304
3307
  }
3305
3308
  N.prototype.once = function(e, r) {
3306
- return Nt(r), this.on(e, Gn(this, e, r)), this;
3309
+ return Nt(r), this.on(e, Qn(this, e, r)), this;
3307
3310
  };
3308
3311
  N.prototype.prependOnceListener = function(e, r) {
3309
- return Nt(r), this.prependListener(e, Gn(this, e, r)), this;
3312
+ return Nt(r), this.prependListener(e, Qn(this, e, r)), this;
3310
3313
  };
3311
3314
  N.prototype.removeListener = function(e, r) {
3312
3315
  var n, i, o, s, a;
@@ -3324,7 +3327,7 @@ N.prototype.removeListener = function(e, r) {
3324
3327
  }
3325
3328
  if (o < 0)
3326
3329
  return this;
3327
- o === 0 ? n.shift() : fs(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3330
+ o === 0 ? n.shift() : ds(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3328
3331
  }
3329
3332
  return this;
3330
3333
  };
@@ -3348,24 +3351,24 @@ N.prototype.removeAllListeners = function(e) {
3348
3351
  this.removeListener(e, r[i]);
3349
3352
  return this;
3350
3353
  };
3351
- function zn(t, e, r) {
3354
+ function Gn(t, e, r) {
3352
3355
  var n = t._events;
3353
3356
  if (n === void 0)
3354
3357
  return [];
3355
3358
  var i = n[e];
3356
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? ps(i) : Hn(i, i.length);
3359
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? fs(i) : Kn(i, i.length);
3357
3360
  }
3358
3361
  N.prototype.listeners = function(e) {
3359
- return zn(this, e, !0);
3362
+ return Gn(this, e, !0);
3360
3363
  };
3361
3364
  N.prototype.rawListeners = function(e) {
3362
- return zn(this, e, !1);
3365
+ return Gn(this, e, !1);
3363
3366
  };
3364
3367
  N.listenerCount = function(t, e) {
3365
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : Kn.call(t, e);
3368
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : zn.call(t, e);
3366
3369
  };
3367
- N.prototype.listenerCount = Kn;
3368
- function Kn(t) {
3370
+ N.prototype.listenerCount = zn;
3371
+ function zn(t) {
3369
3372
  var e = this._events;
3370
3373
  if (e !== void 0) {
3371
3374
  var r = e[t];
@@ -3379,22 +3382,22 @@ function Kn(t) {
3379
3382
  N.prototype.eventNames = function() {
3380
3383
  return this._eventsCount > 0 ? ht(this._events) : [];
3381
3384
  };
3382
- function Hn(t, e) {
3385
+ function Kn(t, e) {
3383
3386
  for (var r = new Array(e), n = 0; n < e; ++n)
3384
3387
  r[n] = t[n];
3385
3388
  return r;
3386
3389
  }
3387
- function fs(t, e) {
3390
+ function ds(t, e) {
3388
3391
  for (; e + 1 < t.length; e++)
3389
3392
  t[e] = t[e + 1];
3390
3393
  t.pop();
3391
3394
  }
3392
- function ps(t) {
3395
+ function fs(t) {
3393
3396
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
3394
3397
  e[r] = t[r].listener || t[r];
3395
3398
  return e;
3396
3399
  }
3397
- function hs(t, e) {
3400
+ function ps(t, e) {
3398
3401
  return new Promise(function(r, n) {
3399
3402
  function i(s) {
3400
3403
  t.removeListener(e, o), n(s);
@@ -3402,13 +3405,13 @@ function hs(t, e) {
3402
3405
  function o() {
3403
3406
  typeof t.removeListener == "function" && t.removeListener("error", i), r([].slice.call(arguments));
3404
3407
  }
3405
- Wn(t, e, o, { once: !0 }), e !== "error" && ys(t, i, { once: !0 });
3408
+ Hn(t, e, o, { once: !0 }), e !== "error" && hs(t, i, { once: !0 });
3406
3409
  });
3407
3410
  }
3408
- function ys(t, e, r) {
3409
- typeof t.on == "function" && Wn(t, "error", e, r);
3411
+ function hs(t, e, r) {
3412
+ typeof t.on == "function" && Hn(t, "error", e, r);
3410
3413
  }
3411
- function Wn(t, e, r, n) {
3414
+ function Hn(t, e, r, n) {
3412
3415
  if (typeof t.on == "function")
3413
3416
  n.once ? t.once(e, r) : t.on(e, r);
3414
3417
  else if (typeof t.addEventListener == "function")
@@ -3418,7 +3421,7 @@ function Wn(t, e, r, n) {
3418
3421
  else
3419
3422
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
3420
3423
  }
3421
- var Yn = Er.exports, Ft = {}, Jn = {}, Xn = function() {
3424
+ var Wn = Ar.exports, Ft = {}, Yn = {}, Jn = function() {
3422
3425
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3423
3426
  return !1;
3424
3427
  if (typeof Symbol.iterator == "symbol")
@@ -3441,56 +3444,56 @@ var Yn = Er.exports, Ft = {}, Jn = {}, Xn = function() {
3441
3444
  return !1;
3442
3445
  }
3443
3446
  return !0;
3444
- }, gs = Xn, Dt = function() {
3445
- return gs() && !!Symbol.toStringTag;
3446
- }, ms = Error, bs = EvalError, vs = RangeError, Ss = ReferenceError, Zn = SyntaxError, Rt = TypeError, ws = URIError, on = typeof Symbol < "u" && Symbol, As = Xn, Es = function() {
3447
- return typeof on != "function" || typeof Symbol != "function" || typeof on("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : As();
3448
- }, jt = {
3447
+ }, ys = Jn, Dt = function() {
3448
+ return ys() && !!Symbol.toStringTag;
3449
+ }, gs = Error, ms = EvalError, bs = RangeError, vs = ReferenceError, Xn = SyntaxError, Rt = TypeError, Ss = URIError, nn = typeof Symbol < "u" && Symbol, ws = Jn, As = function() {
3450
+ return typeof nn != "function" || typeof Symbol != "function" || typeof nn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ws();
3451
+ }, Ut = {
3449
3452
  __proto__: null,
3450
3453
  foo: {}
3451
- }, Is = Object, Os = function() {
3452
- return { __proto__: jt }.foo === jt.foo && !(jt instanceof Is);
3453
- }, Ts = "Function.prototype.bind called on incompatible ", ks = Object.prototype.toString, _s = Math.max, Cs = "[object Function]", sn = function(e, r) {
3454
+ }, Es = Object, Is = function() {
3455
+ return { __proto__: Ut }.foo === Ut.foo && !(Ut instanceof Es);
3456
+ }, Os = "Function.prototype.bind called on incompatible ", Ts = Object.prototype.toString, ks = Math.max, _s = "[object Function]", on = function(e, r) {
3454
3457
  for (var n = [], i = 0; i < e.length; i += 1)
3455
3458
  n[i] = e[i];
3456
3459
  for (var o = 0; o < r.length; o += 1)
3457
3460
  n[o + e.length] = r[o];
3458
3461
  return n;
3459
- }, Ls = function(e, r) {
3462
+ }, Cs = function(e, r) {
3460
3463
  for (var n = [], i = r, o = 0; i < e.length; i += 1, o += 1)
3461
3464
  n[o] = e[i];
3462
3465
  return n;
3463
- }, Ps = function(t, e) {
3466
+ }, Ls = function(t, e) {
3464
3467
  for (var r = "", n = 0; n < t.length; n += 1)
3465
3468
  r += t[n], n + 1 < t.length && (r += e);
3466
3469
  return r;
3467
- }, Ns = function(e) {
3470
+ }, Ps = function(e) {
3468
3471
  var r = this;
3469
- if (typeof r != "function" || ks.apply(r) !== Cs)
3470
- throw new TypeError(Ts + r);
3471
- for (var n = Ls(arguments, 1), i, o = function() {
3472
+ if (typeof r != "function" || Ts.apply(r) !== _s)
3473
+ throw new TypeError(Os + r);
3474
+ for (var n = Cs(arguments, 1), i, o = function() {
3472
3475
  if (this instanceof i) {
3473
3476
  var c = r.apply(
3474
3477
  this,
3475
- sn(n, arguments)
3478
+ on(n, arguments)
3476
3479
  );
3477
3480
  return Object(c) === c ? c : this;
3478
3481
  }
3479
3482
  return r.apply(
3480
3483
  e,
3481
- sn(n, arguments)
3484
+ on(n, arguments)
3482
3485
  );
3483
- }, s = _s(0, r.length - n.length), a = [], u = 0; u < s; u++)
3486
+ }, s = ks(0, r.length - n.length), a = [], u = 0; u < s; u++)
3484
3487
  a[u] = "$" + u;
3485
- if (i = Function("binder", "return function (" + Ps(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3488
+ if (i = Function("binder", "return function (" + Ls(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3486
3489
  var d = function() {
3487
3490
  };
3488
3491
  d.prototype = r.prototype, i.prototype = new d(), d.prototype = null;
3489
3492
  }
3490
3493
  return i;
3491
- }, Fs = Ns, Ir = Function.prototype.bind || Fs, Ds = Function.prototype.call, Rs = Object.prototype.hasOwnProperty, Vs = Ir, $s = Vs.call(Ds, Rs), O, Ms = ms, Bs = bs, Us = vs, js = Ss, Ke = Zn, Ge = Rt, qs = ws, ei = Function, qt = function(t) {
3494
+ }, Ns = Ps, Er = Function.prototype.bind || Ns, Fs = Function.prototype.call, Ds = Object.prototype.hasOwnProperty, Rs = Er, Vs = Rs.call(Fs, Ds), O, $s = gs, Ms = ms, Bs = bs, Us = vs, Ke = Xn, Ge = Rt, js = Ss, Zn = Function, jt = function(t) {
3492
3495
  try {
3493
- return ei('"use strict"; return (' + t + ").constructor;")();
3496
+ return Zn('"use strict"; return (' + t + ").constructor;")();
3494
3497
  } catch {
3495
3498
  }
3496
3499
  }, Pe = Object.getOwnPropertyDescriptor;
@@ -3500,21 +3503,21 @@ if (Pe)
3500
3503
  } catch {
3501
3504
  Pe = null;
3502
3505
  }
3503
- var xt = function() {
3506
+ var qt = function() {
3504
3507
  throw new Ge();
3505
- }, xs = Pe ? function() {
3508
+ }, qs = Pe ? function() {
3506
3509
  try {
3507
- return arguments.callee, xt;
3510
+ return arguments.callee, qt;
3508
3511
  } catch {
3509
3512
  try {
3510
3513
  return Pe(arguments, "callee").get;
3511
3514
  } catch {
3512
- return xt;
3515
+ return qt;
3513
3516
  }
3514
3517
  }
3515
- }() : xt, Me = Es(), Qs = Os(), U = Object.getPrototypeOf || (Qs ? function(t) {
3518
+ }() : qt, Me = As(), xs = Is(), U = Object.getPrototypeOf || (xs ? function(t) {
3516
3519
  return t.__proto__;
3517
- } : null), Ue = {}, Gs = typeof Uint8Array > "u" || !U ? O : U(Uint8Array), Ne = {
3520
+ } : null), Ue = {}, Qs = typeof Uint8Array > "u" || !U ? O : U(Uint8Array), Ne = {
3518
3521
  __proto__: null,
3519
3522
  "%AggregateError%": typeof AggregateError > "u" ? O : AggregateError,
3520
3523
  "%Array%": Array,
@@ -3536,14 +3539,14 @@ var xt = function() {
3536
3539
  "%decodeURIComponent%": decodeURIComponent,
3537
3540
  "%encodeURI%": encodeURI,
3538
3541
  "%encodeURIComponent%": encodeURIComponent,
3539
- "%Error%": Ms,
3542
+ "%Error%": $s,
3540
3543
  "%eval%": eval,
3541
3544
  // eslint-disable-line no-eval
3542
- "%EvalError%": Bs,
3545
+ "%EvalError%": Ms,
3543
3546
  "%Float32Array%": typeof Float32Array > "u" ? O : Float32Array,
3544
3547
  "%Float64Array%": typeof Float64Array > "u" ? O : Float64Array,
3545
3548
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? O : FinalizationRegistry,
3546
- "%Function%": ei,
3549
+ "%Function%": Zn,
3547
3550
  "%GeneratorFunction%": Ue,
3548
3551
  "%Int8Array%": typeof Int8Array > "u" ? O : Int8Array,
3549
3552
  "%Int16Array%": typeof Int16Array > "u" ? O : Int16Array,
@@ -3561,8 +3564,8 @@ var xt = function() {
3561
3564
  "%parseInt%": parseInt,
3562
3565
  "%Promise%": typeof Promise > "u" ? O : Promise,
3563
3566
  "%Proxy%": typeof Proxy > "u" ? O : Proxy,
3564
- "%RangeError%": Us,
3565
- "%ReferenceError%": js,
3567
+ "%RangeError%": Bs,
3568
+ "%ReferenceError%": Us,
3566
3569
  "%Reflect%": typeof Reflect > "u" ? O : Reflect,
3567
3570
  "%RegExp%": RegExp,
3568
3571
  "%Set%": typeof Set > "u" ? O : Set,
@@ -3572,14 +3575,14 @@ var xt = function() {
3572
3575
  "%StringIteratorPrototype%": Me && U ? U(""[Symbol.iterator]()) : O,
3573
3576
  "%Symbol%": Me ? Symbol : O,
3574
3577
  "%SyntaxError%": Ke,
3575
- "%ThrowTypeError%": xs,
3576
- "%TypedArray%": Gs,
3578
+ "%ThrowTypeError%": qs,
3579
+ "%TypedArray%": Qs,
3577
3580
  "%TypeError%": Ge,
3578
3581
  "%Uint8Array%": typeof Uint8Array > "u" ? O : Uint8Array,
3579
3582
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? O : Uint8ClampedArray,
3580
3583
  "%Uint16Array%": typeof Uint16Array > "u" ? O : Uint16Array,
3581
3584
  "%Uint32Array%": typeof Uint32Array > "u" ? O : Uint32Array,
3582
- "%URIError%": qs,
3585
+ "%URIError%": js,
3583
3586
  "%WeakMap%": typeof WeakMap > "u" ? O : WeakMap,
3584
3587
  "%WeakRef%": typeof WeakRef > "u" ? O : WeakRef,
3585
3588
  "%WeakSet%": typeof WeakSet > "u" ? O : WeakSet
@@ -3588,17 +3591,17 @@ if (U)
3588
3591
  try {
3589
3592
  null.error;
3590
3593
  } catch (t) {
3591
- var zs = U(U(t));
3592
- Ne["%Error.prototype%"] = zs;
3594
+ var Gs = U(U(t));
3595
+ Ne["%Error.prototype%"] = Gs;
3593
3596
  }
3594
- var Ks = function t(e) {
3597
+ var zs = function t(e) {
3595
3598
  var r;
3596
3599
  if (e === "%AsyncFunction%")
3597
- r = qt("async function () {}");
3600
+ r = jt("async function () {}");
3598
3601
  else if (e === "%GeneratorFunction%")
3599
- r = qt("function* () {}");
3602
+ r = jt("function* () {}");
3600
3603
  else if (e === "%AsyncGeneratorFunction%")
3601
- r = qt("async function* () {}");
3604
+ r = jt("async function* () {}");
3602
3605
  else if (e === "%AsyncGenerator%") {
3603
3606
  var n = t("%AsyncGeneratorFunction%");
3604
3607
  n && (r = n.prototype);
@@ -3607,7 +3610,7 @@ var Ks = function t(e) {
3607
3610
  i && U && (r = U(i.prototype));
3608
3611
  }
3609
3612
  return Ne[e] = r, r;
3610
- }, an = {
3613
+ }, sn = {
3611
3614
  __proto__: null,
3612
3615
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3613
3616
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -3660,21 +3663,21 @@ var Ks = function t(e) {
3660
3663
  "%URIErrorPrototype%": ["URIError", "prototype"],
3661
3664
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3662
3665
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3663
- }, ot = Ir, At = $s, Hs = ot.call(Function.call, Array.prototype.concat), Ws = ot.call(Function.apply, Array.prototype.splice), un = ot.call(Function.call, String.prototype.replace), Et = ot.call(Function.call, String.prototype.slice), Ys = ot.call(Function.call, RegExp.prototype.exec), Js = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xs = /\\(\\)?/g, Zs = function(e) {
3666
+ }, it = Er, At = Vs, Ks = it.call(Function.call, Array.prototype.concat), Hs = it.call(Function.apply, Array.prototype.splice), an = it.call(Function.call, String.prototype.replace), Et = it.call(Function.call, String.prototype.slice), Ws = it.call(Function.call, RegExp.prototype.exec), Ys = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Js = /\\(\\)?/g, Xs = function(e) {
3664
3667
  var r = Et(e, 0, 1), n = Et(e, -1);
3665
3668
  if (r === "%" && n !== "%")
3666
3669
  throw new Ke("invalid intrinsic syntax, expected closing `%`");
3667
3670
  if (n === "%" && r !== "%")
3668
3671
  throw new Ke("invalid intrinsic syntax, expected opening `%`");
3669
3672
  var i = [];
3670
- return un(e, Js, function(o, s, a, u) {
3671
- i[i.length] = a ? un(u, Xs, "$1") : s || o;
3673
+ return an(e, Ys, function(o, s, a, u) {
3674
+ i[i.length] = a ? an(u, Js, "$1") : s || o;
3672
3675
  }), i;
3673
- }, ea = function(e, r) {
3676
+ }, Zs = function(e, r) {
3674
3677
  var n = e, i;
3675
- if (At(an, n) && (i = an[n], n = "%" + i[0] + "%"), At(Ne, n)) {
3678
+ if (At(sn, n) && (i = sn[n], n = "%" + i[0] + "%"), At(Ne, n)) {
3676
3679
  var o = Ne[n];
3677
- if (o === Ue && (o = Ks(n)), typeof o > "u" && !r)
3680
+ if (o === Ue && (o = zs(n)), typeof o > "u" && !r)
3678
3681
  throw new Ge("intrinsic " + e + " exists, but is not available. Please file an issue!");
3679
3682
  return {
3680
3683
  alias: i,
@@ -3683,15 +3686,15 @@ var Ks = function t(e) {
3683
3686
  };
3684
3687
  }
3685
3688
  throw new Ke("intrinsic " + e + " does not exist!");
3686
- }, st = function(e, r) {
3689
+ }, ot = function(e, r) {
3687
3690
  if (typeof e != "string" || e.length === 0)
3688
3691
  throw new Ge("intrinsic name must be a non-empty string");
3689
3692
  if (arguments.length > 1 && typeof r != "boolean")
3690
3693
  throw new Ge('"allowMissing" argument must be a boolean');
3691
- if (Ys(/^%?[^%]*%?$/, e) === null)
3694
+ if (Ws(/^%?[^%]*%?$/, e) === null)
3692
3695
  throw new Ke("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3693
- var n = Zs(e), i = n.length > 0 ? n[0] : "", o = ea("%" + i + "%", r), s = o.name, a = o.value, u = !1, d = o.alias;
3694
- d && (i = d[0], Ws(n, Hs([0, 1], d)));
3696
+ var n = Xs(e), i = n.length > 0 ? n[0] : "", o = Zs("%" + i + "%", r), s = o.name, a = o.value, u = !1, d = o.alias;
3697
+ d && (i = d[0], Hs(n, Ks([0, 1], d)));
3695
3698
  for (var c = 1, l = !0; c < n.length; c += 1) {
3696
3699
  var p = n[c], b = Et(p, 0, 1), S = Et(p, -1);
3697
3700
  if ((b === '"' || b === "'" || b === "`" || S === '"' || S === "'" || S === "`") && b !== S)
@@ -3713,27 +3716,27 @@ var Ks = function t(e) {
3713
3716
  }
3714
3717
  }
3715
3718
  return a;
3716
- }, ti = { exports: {} }, Qt, cn;
3717
- function Or() {
3718
- if (cn) return Qt;
3719
- cn = 1;
3720
- var t = st, e = t("%Object.defineProperty%", !0) || !1;
3719
+ }, ei = { exports: {} }, xt, un;
3720
+ function Ir() {
3721
+ if (un) return xt;
3722
+ un = 1;
3723
+ var t = ot, e = t("%Object.defineProperty%", !0) || !1;
3721
3724
  if (e)
3722
3725
  try {
3723
3726
  e({}, "a", { value: 1 });
3724
3727
  } catch {
3725
3728
  e = !1;
3726
3729
  }
3727
- return Qt = e, Qt;
3730
+ return xt = e, xt;
3728
3731
  }
3729
- var ta = st, yt = ta("%Object.getOwnPropertyDescriptor%", !0);
3732
+ var ea = ot, yt = ea("%Object.getOwnPropertyDescriptor%", !0);
3730
3733
  if (yt)
3731
3734
  try {
3732
3735
  yt([], "length");
3733
3736
  } catch {
3734
3737
  yt = null;
3735
3738
  }
3736
- var Vt = yt, ln = Or(), ra = Zn, Be = Rt, dn = Vt, na = function(e, r, n) {
3739
+ var Vt = yt, cn = Ir(), ta = Xn, Be = Rt, ln = Vt, ra = function(e, r, n) {
3737
3740
  if (!e || typeof e != "object" && typeof e != "function")
3738
3741
  throw new Be("`obj` must be an object or a function`");
3739
3742
  if (typeof r != "string" && typeof r != "symbol")
@@ -3746,9 +3749,9 @@ var Vt = yt, ln = Or(), ra = Zn, Be = Rt, dn = Vt, na = function(e, r, n) {
3746
3749
  throw new Be("`nonConfigurable`, if provided, must be a boolean or null");
3747
3750
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3748
3751
  throw new Be("`loose`, if provided, must be a boolean");
3749
- 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 = !!dn && dn(e, r);
3750
- if (ln)
3751
- ln(e, r, {
3752
+ 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 = !!ln && ln(e, r);
3753
+ if (cn)
3754
+ cn(e, r, {
3752
3755
  configurable: s === null && u ? u.configurable : !s,
3753
3756
  enumerable: i === null && u ? u.enumerable : !i,
3754
3757
  value: n,
@@ -3757,37 +3760,37 @@ var Vt = yt, ln = Or(), ra = Zn, Be = Rt, dn = Vt, na = function(e, r, n) {
3757
3760
  else if (a || !i && !o && !s)
3758
3761
  e[r] = n;
3759
3762
  else
3760
- throw new ra("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3761
- }, ur = Or(), ri = function() {
3762
- return !!ur;
3763
+ throw new ta("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3764
+ }, ar = Ir(), ti = function() {
3765
+ return !!ar;
3763
3766
  };
3764
- ri.hasArrayLengthDefineBug = function() {
3765
- if (!ur)
3767
+ ti.hasArrayLengthDefineBug = function() {
3768
+ if (!ar)
3766
3769
  return null;
3767
3770
  try {
3768
- return ur([], "length", { value: 1 }).length !== 1;
3771
+ return ar([], "length", { value: 1 }).length !== 1;
3769
3772
  } catch {
3770
3773
  return !0;
3771
3774
  }
3772
3775
  };
3773
- var ia = ri, oa = st, fn = na, sa = ia(), pn = Vt, hn = Rt, aa = oa("%Math.floor%"), ua = function(e, r) {
3776
+ var na = ti, ia = ot, dn = ra, oa = na(), fn = Vt, pn = Rt, sa = ia("%Math.floor%"), aa = function(e, r) {
3774
3777
  if (typeof e != "function")
3775
- throw new hn("`fn` is not a function");
3776
- if (typeof r != "number" || r < 0 || r > 4294967295 || aa(r) !== r)
3777
- throw new hn("`length` must be a positive 32-bit integer");
3778
+ throw new pn("`fn` is not a function");
3779
+ if (typeof r != "number" || r < 0 || r > 4294967295 || sa(r) !== r)
3780
+ throw new pn("`length` must be a positive 32-bit integer");
3778
3781
  var n = arguments.length > 2 && !!arguments[2], i = !0, o = !0;
3779
- if ("length" in e && pn) {
3780
- var s = pn(e, "length");
3782
+ if ("length" in e && fn) {
3783
+ var s = fn(e, "length");
3781
3784
  s && !s.configurable && (i = !1), s && !s.writable && (o = !1);
3782
3785
  }
3783
- return (i || o || !n) && (sa ? fn(
3786
+ return (i || o || !n) && (oa ? dn(
3784
3787
  /** @type {Parameters<define>[0]} */
3785
3788
  e,
3786
3789
  "length",
3787
3790
  r,
3788
3791
  !0,
3789
3792
  !0
3790
- ) : fn(
3793
+ ) : dn(
3791
3794
  /** @type {Parameters<define>[0]} */
3792
3795
  e,
3793
3796
  "length",
@@ -3795,7 +3798,7 @@ var ia = ri, oa = st, fn = na, sa = ia(), pn = Vt, hn = Rt, aa = oa("%Math.floor
3795
3798
  )), e;
3796
3799
  };
3797
3800
  (function(t) {
3798
- var e = Ir, r = st, n = ua, i = Rt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Or(), d = r("%Math.max%");
3801
+ var e = Er, r = ot, n = aa, i = Rt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Ir(), d = r("%Math.max%");
3799
3802
  t.exports = function(p) {
3800
3803
  if (typeof p != "function")
3801
3804
  throw new i("a function is required");
@@ -3810,122 +3813,122 @@ var ia = ri, oa = st, fn = na, sa = ia(), pn = Vt, hn = Rt, aa = oa("%Math.floor
3810
3813
  return a(e, o, arguments);
3811
3814
  };
3812
3815
  u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
3813
- })(ti);
3814
- var Tr = ti.exports, ni = st, ii = Tr, ca = ii(ni("String.prototype.indexOf")), kr = function(e, r) {
3815
- var n = ni(e, !!r);
3816
- return typeof n == "function" && ca(e, ".prototype.") > -1 ? ii(n) : n;
3817
- }, la = Dt(), da = kr, cr = da("Object.prototype.toString"), $t = function(e) {
3818
- return la && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : cr(e) === "[object Arguments]";
3819
- }, oi = function(e) {
3820
- 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]";
3821
- }, fa = function() {
3816
+ })(ei);
3817
+ var Or = ei.exports, ri = ot, ni = Or, ua = ni(ri("String.prototype.indexOf")), Tr = function(e, r) {
3818
+ var n = ri(e, !!r);
3819
+ return typeof n == "function" && ua(e, ".prototype.") > -1 ? ni(n) : n;
3820
+ }, ca = Dt(), la = Tr, ur = la("Object.prototype.toString"), $t = function(e) {
3821
+ return ca && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : ur(e) === "[object Arguments]";
3822
+ }, ii = function(e) {
3823
+ return $t(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && ur(e) !== "[object Array]" && ur(e.callee) === "[object Function]";
3824
+ }, da = function() {
3822
3825
  return $t(arguments);
3823
3826
  }();
3824
- $t.isLegacyArguments = oi;
3825
- var pa = fa ? $t : oi, ha = Object.prototype.toString, ya = Function.prototype.toString, ga = /^\s*(?:function)?\*/, si = Dt(), Gt = Object.getPrototypeOf, ma = function() {
3826
- if (!si)
3827
+ $t.isLegacyArguments = ii;
3828
+ var fa = da ? $t : ii, pa = Object.prototype.toString, ha = Function.prototype.toString, ya = /^\s*(?:function)?\*/, oi = Dt(), Qt = Object.getPrototypeOf, ga = function() {
3829
+ if (!oi)
3827
3830
  return !1;
3828
3831
  try {
3829
3832
  return Function("return function*() {}")();
3830
3833
  } catch {
3831
3834
  }
3832
- }, zt, ba = function(e) {
3835
+ }, Gt, ma = function(e) {
3833
3836
  if (typeof e != "function")
3834
3837
  return !1;
3835
- if (ga.test(ya.call(e)))
3838
+ if (ya.test(ha.call(e)))
3836
3839
  return !0;
3837
- if (!si) {
3838
- var r = ha.call(e);
3840
+ if (!oi) {
3841
+ var r = pa.call(e);
3839
3842
  return r === "[object GeneratorFunction]";
3840
3843
  }
3841
- if (!Gt)
3844
+ if (!Qt)
3842
3845
  return !1;
3843
- if (typeof zt > "u") {
3844
- var n = ma();
3845
- zt = n ? Gt(n) : !1;
3846
+ if (typeof Gt > "u") {
3847
+ var n = ga();
3848
+ Gt = n ? Qt(n) : !1;
3846
3849
  }
3847
- return Gt(e) === zt;
3848
- }, ai = Function.prototype.toString, qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, lr, gt;
3850
+ return Qt(e) === Gt;
3851
+ }, si = Function.prototype.toString, qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, cr, gt;
3849
3852
  if (typeof qe == "function" && typeof Object.defineProperty == "function")
3850
3853
  try {
3851
- lr = Object.defineProperty({}, "length", {
3854
+ cr = Object.defineProperty({}, "length", {
3852
3855
  get: function() {
3853
3856
  throw gt;
3854
3857
  }
3855
3858
  }), gt = {}, qe(function() {
3856
3859
  throw 42;
3857
- }, null, lr);
3860
+ }, null, cr);
3858
3861
  } catch (t) {
3859
3862
  t !== gt && (qe = null);
3860
3863
  }
3861
3864
  else
3862
3865
  qe = null;
3863
- var va = /^\s*class\b/, dr = function(e) {
3866
+ var ba = /^\s*class\b/, lr = function(e) {
3864
3867
  try {
3865
- var r = ai.call(e);
3866
- return va.test(r);
3868
+ var r = si.call(e);
3869
+ return ba.test(r);
3867
3870
  } catch {
3868
3871
  return !1;
3869
3872
  }
3870
- }, Kt = function(e) {
3873
+ }, zt = function(e) {
3871
3874
  try {
3872
- return dr(e) ? !1 : (ai.call(e), !0);
3875
+ return lr(e) ? !1 : (si.call(e), !0);
3873
3876
  } catch {
3874
3877
  return !1;
3875
3878
  }
3876
- }, mt = Object.prototype.toString, Sa = "[object Object]", wa = "[object Function]", Aa = "[object GeneratorFunction]", Ea = "[object HTMLAllCollection]", Ia = "[object HTML document.all class]", Oa = "[object HTMLCollection]", Ta = typeof Symbol == "function" && !!Symbol.toStringTag, ka = !(0 in [,]), fr = function() {
3879
+ }, mt = Object.prototype.toString, va = "[object Object]", Sa = "[object Function]", wa = "[object GeneratorFunction]", Aa = "[object HTMLAllCollection]", Ea = "[object HTML document.all class]", Ia = "[object HTMLCollection]", Oa = typeof Symbol == "function" && !!Symbol.toStringTag, Ta = !(0 in [,]), dr = function() {
3877
3880
  return !1;
3878
3881
  };
3879
3882
  if (typeof document == "object") {
3880
- var _a = document.all;
3881
- mt.call(_a) === mt.call(document.all) && (fr = function(e) {
3882
- if ((ka || !e) && (typeof e > "u" || typeof e == "object"))
3883
+ var ka = document.all;
3884
+ mt.call(ka) === mt.call(document.all) && (dr = function(e) {
3885
+ if ((Ta || !e) && (typeof e > "u" || typeof e == "object"))
3883
3886
  try {
3884
3887
  var r = mt.call(e);
3885
- return (r === Ea || r === Ia || r === Oa || r === Sa) && e("") == null;
3888
+ return (r === Aa || r === Ea || r === Ia || r === va) && e("") == null;
3886
3889
  } catch {
3887
3890
  }
3888
3891
  return !1;
3889
3892
  });
3890
3893
  }
3891
- var Ca = qe ? function(e) {
3892
- if (fr(e))
3894
+ var _a = qe ? function(e) {
3895
+ if (dr(e))
3893
3896
  return !0;
3894
3897
  if (!e || typeof e != "function" && typeof e != "object")
3895
3898
  return !1;
3896
3899
  try {
3897
- qe(e, null, lr);
3900
+ qe(e, null, cr);
3898
3901
  } catch (r) {
3899
3902
  if (r !== gt)
3900
3903
  return !1;
3901
3904
  }
3902
- return !dr(e) && Kt(e);
3905
+ return !lr(e) && zt(e);
3903
3906
  } : function(e) {
3904
- if (fr(e))
3907
+ if (dr(e))
3905
3908
  return !0;
3906
3909
  if (!e || typeof e != "function" && typeof e != "object")
3907
3910
  return !1;
3908
- if (Ta)
3909
- return Kt(e);
3910
- if (dr(e))
3911
+ if (Oa)
3912
+ return zt(e);
3913
+ if (lr(e))
3911
3914
  return !1;
3912
3915
  var r = mt.call(e);
3913
- return r !== wa && r !== Aa && !/^\[object HTML/.test(r) ? !1 : Kt(e);
3914
- }, La = Ca, Pa = Object.prototype.toString, ui = Object.prototype.hasOwnProperty, Na = function(e, r, n) {
3916
+ return r !== Sa && r !== wa && !/^\[object HTML/.test(r) ? !1 : zt(e);
3917
+ }, Ca = _a, La = Object.prototype.toString, ai = Object.prototype.hasOwnProperty, Pa = function(e, r, n) {
3915
3918
  for (var i = 0, o = e.length; i < o; i++)
3916
- ui.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3917
- }, Fa = function(e, r, n) {
3919
+ ai.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3920
+ }, Na = function(e, r, n) {
3918
3921
  for (var i = 0, o = e.length; i < o; i++)
3919
3922
  n == null ? r(e.charAt(i), i, e) : r.call(n, e.charAt(i), i, e);
3920
- }, Da = function(e, r, n) {
3923
+ }, Fa = function(e, r, n) {
3921
3924
  for (var i in e)
3922
- ui.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3923
- }, Ra = function(e, r, n) {
3924
- if (!La(r))
3925
+ ai.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3926
+ }, Da = function(e, r, n) {
3927
+ if (!Ca(r))
3925
3928
  throw new TypeError("iterator must be a function");
3926
3929
  var i;
3927
- arguments.length >= 3 && (i = n), Pa.call(e) === "[object Array]" ? Na(e, r, i) : typeof e == "string" ? Fa(e, r, i) : Da(e, r, i);
3928
- }, ci = Ra, Va = [
3930
+ arguments.length >= 3 && (i = n), La.call(e) === "[object Array]" ? Pa(e, r, i) : typeof e == "string" ? Na(e, r, i) : Fa(e, r, i);
3931
+ }, ui = Da, Ra = [
3929
3932
  "Float32Array",
3930
3933
  "Float64Array",
3931
3934
  "Int8Array",
@@ -3937,77 +3940,77 @@ var Ca = qe ? function(e) {
3937
3940
  "Uint32Array",
3938
3941
  "BigInt64Array",
3939
3942
  "BigUint64Array"
3940
- ], Ht = Va, $a = typeof globalThis > "u" ? Sr : globalThis, li = function() {
3941
- for (var e = [], r = 0; r < Ht.length; r++)
3942
- typeof $a[Ht[r]] == "function" && (e[e.length] = Ht[r]);
3943
+ ], Kt = Ra, Va = typeof globalThis > "u" ? vr : globalThis, ci = function() {
3944
+ for (var e = [], r = 0; r < Kt.length; r++)
3945
+ typeof Va[Kt[r]] == "function" && (e[e.length] = Kt[r]);
3943
3946
  return e;
3944
- }, It = ci, Ma = li, yn = Tr, _r = kr, bt = Vt, Ba = _r("Object.prototype.toString"), di = Dt(), gn = typeof globalThis > "u" ? Sr : globalThis, pr = Ma(), Cr = _r("String.prototype.slice"), Wt = Object.getPrototypeOf, Ua = _r("Array.prototype.indexOf", !0) || function(e, r) {
3947
+ }, It = ui, $a = ci, hn = Or, kr = Tr, bt = Vt, Ma = kr("Object.prototype.toString"), li = Dt(), yn = typeof globalThis > "u" ? vr : globalThis, fr = $a(), _r = kr("String.prototype.slice"), Ht = Object.getPrototypeOf, Ba = kr("Array.prototype.indexOf", !0) || function(e, r) {
3945
3948
  for (var n = 0; n < e.length; n += 1)
3946
3949
  if (e[n] === r)
3947
3950
  return n;
3948
3951
  return -1;
3949
3952
  }, Ot = { __proto__: null };
3950
- di && bt && Wt ? It(pr, function(t) {
3951
- var e = new gn[t]();
3953
+ li && bt && Ht ? It(fr, function(t) {
3954
+ var e = new yn[t]();
3952
3955
  if (Symbol.toStringTag in e) {
3953
- var r = Wt(e), n = bt(r, Symbol.toStringTag);
3956
+ var r = Ht(e), n = bt(r, Symbol.toStringTag);
3954
3957
  if (!n) {
3955
- var i = Wt(r);
3958
+ var i = Ht(r);
3956
3959
  n = bt(i, Symbol.toStringTag);
3957
3960
  }
3958
- Ot["$" + t] = yn(n.get);
3961
+ Ot["$" + t] = hn(n.get);
3959
3962
  }
3960
- }) : It(pr, function(t) {
3961
- var e = new gn[t](), r = e.slice || e.set;
3962
- r && (Ot["$" + t] = yn(r));
3963
+ }) : It(fr, function(t) {
3964
+ var e = new yn[t](), r = e.slice || e.set;
3965
+ r && (Ot["$" + t] = hn(r));
3963
3966
  });
3964
- var ja = function(e) {
3967
+ var Ua = function(e) {
3965
3968
  var r = !1;
3966
3969
  return It(Ot, function(n, i) {
3967
3970
  if (!r)
3968
3971
  try {
3969
- "$" + n(e) === i && (r = Cr(i, 1));
3972
+ "$" + n(e) === i && (r = _r(i, 1));
3970
3973
  } catch {
3971
3974
  }
3972
3975
  }), r;
3973
- }, qa = function(e) {
3976
+ }, ja = function(e) {
3974
3977
  var r = !1;
3975
3978
  return It(Ot, function(n, i) {
3976
3979
  if (!r)
3977
3980
  try {
3978
- n(e), r = Cr(i, 1);
3981
+ n(e), r = _r(i, 1);
3979
3982
  } catch {
3980
3983
  }
3981
3984
  }), r;
3982
- }, xa = function(e) {
3985
+ }, qa = function(e) {
3983
3986
  if (!e || typeof e != "object")
3984
3987
  return !1;
3985
- if (!di) {
3986
- var r = Cr(Ba(e), 8, -1);
3987
- return Ua(pr, r) > -1 ? r : r !== "Object" ? !1 : qa(e);
3988
+ if (!li) {
3989
+ var r = _r(Ma(e), 8, -1);
3990
+ return Ba(fr, r) > -1 ? r : r !== "Object" ? !1 : ja(e);
3988
3991
  }
3989
- return bt ? ja(e) : null;
3990
- }, Tt = ci, Qa = li, mn = Tr, Lr = kr, vt = Vt, Ga = Lr("Object.prototype.toString"), fi = Dt(), bn = typeof globalThis > "u" ? Sr : globalThis, hr = Qa(), Pr = Lr("String.prototype.slice"), Yt = Object.getPrototypeOf, za = Lr("Array.prototype.indexOf", !0) || function(e, r) {
3992
+ return bt ? Ua(e) : null;
3993
+ }, Tt = ui, xa = ci, gn = Or, Cr = Tr, vt = Vt, Qa = Cr("Object.prototype.toString"), di = Dt(), mn = typeof globalThis > "u" ? vr : globalThis, pr = xa(), Lr = Cr("String.prototype.slice"), Wt = Object.getPrototypeOf, Ga = Cr("Array.prototype.indexOf", !0) || function(e, r) {
3991
3994
  for (var n = 0; n < e.length; n += 1)
3992
3995
  if (e[n] === r)
3993
3996
  return n;
3994
3997
  return -1;
3995
3998
  }, kt = { __proto__: null };
3996
- fi && vt && Yt ? Tt(hr, function(t) {
3997
- var e = new bn[t]();
3999
+ di && vt && Wt ? Tt(pr, function(t) {
4000
+ var e = new mn[t]();
3998
4001
  if (Symbol.toStringTag in e) {
3999
- var r = Yt(e), n = vt(r, Symbol.toStringTag);
4002
+ var r = Wt(e), n = vt(r, Symbol.toStringTag);
4000
4003
  if (!n) {
4001
- var i = Yt(r);
4004
+ var i = Wt(r);
4002
4005
  n = vt(i, Symbol.toStringTag);
4003
4006
  }
4004
- kt["$" + t] = mn(n.get);
4007
+ kt["$" + t] = gn(n.get);
4005
4008
  }
4006
- }) : Tt(hr, function(t) {
4007
- var e = new bn[t](), r = e.slice || e.set;
4008
- r && (kt["$" + t] = mn(r));
4009
+ }) : Tt(pr, function(t) {
4010
+ var e = new mn[t](), r = e.slice || e.set;
4011
+ r && (kt["$" + t] = gn(r));
4009
4012
  });
4010
- var Ka = function(e) {
4013
+ var za = function(e) {
4011
4014
  var r = !1;
4012
4015
  return Tt(
4013
4016
  // eslint-disable-next-line no-extra-parens
@@ -4018,12 +4021,12 @@ var Ka = function(e) {
4018
4021
  function(n, i) {
4019
4022
  if (!r)
4020
4023
  try {
4021
- "$" + n(e) === i && (r = Pr(i, 1));
4024
+ "$" + n(e) === i && (r = Lr(i, 1));
4022
4025
  } catch {
4023
4026
  }
4024
4027
  }
4025
4028
  ), r;
4026
- }, Ha = function(e) {
4029
+ }, Ka = function(e) {
4027
4030
  var r = !1;
4028
4031
  return Tt(
4029
4032
  // eslint-disable-next-line no-extra-parens
@@ -4034,24 +4037,24 @@ var Ka = function(e) {
4034
4037
  function(n, i) {
4035
4038
  if (!r)
4036
4039
  try {
4037
- n(e), r = Pr(i, 1);
4040
+ n(e), r = Lr(i, 1);
4038
4041
  } catch {
4039
4042
  }
4040
4043
  }
4041
4044
  ), r;
4042
- }, Wa = function(e) {
4045
+ }, Ha = function(e) {
4043
4046
  if (!e || typeof e != "object")
4044
4047
  return !1;
4045
- if (!fi) {
4046
- var r = Pr(Ga(e), 8, -1);
4047
- return za(hr, r) > -1 ? r : r !== "Object" ? !1 : Ha(e);
4048
+ if (!di) {
4049
+ var r = Lr(Qa(e), 8, -1);
4050
+ return Ga(pr, r) > -1 ? r : r !== "Object" ? !1 : Ka(e);
4048
4051
  }
4049
- return vt ? Ka(e) : null;
4050
- }, Ya = Wa, Ja = function(e) {
4051
- return !!Ya(e);
4052
+ return vt ? za(e) : null;
4053
+ }, Wa = Ha, Ya = function(e) {
4054
+ return !!Wa(e);
4052
4055
  };
4053
4056
  (function(t) {
4054
- var e = pa, r = ba, n = xa, i = Ja;
4057
+ var e = fa, r = ma, n = qa, i = Ya;
4055
4058
  function o(y) {
4056
4059
  return y.call.bind(y);
4057
4060
  }
@@ -4060,11 +4063,11 @@ var Ka = function(e) {
4060
4063
  var p = o(BigInt.prototype.valueOf);
4061
4064
  if (a)
4062
4065
  var b = o(Symbol.prototype.valueOf);
4063
- function S(y, vi) {
4066
+ function S(y, bi) {
4064
4067
  if (typeof y != "object")
4065
4068
  return !1;
4066
4069
  try {
4067
- return vi(y), !0;
4070
+ return bi(y), !0;
4068
4071
  } catch {
4069
4072
  return !1;
4070
4073
  }
@@ -4158,10 +4161,10 @@ var Ka = function(e) {
4158
4161
  return u(y) === "[object ArrayBuffer]";
4159
4162
  }
4160
4163
  Ve.working = typeof ArrayBuffer < "u" && Ve(new ArrayBuffer());
4161
- function at(y) {
4164
+ function st(y) {
4162
4165
  return typeof ArrayBuffer > "u" ? !1 : Ve.working ? Ve(y) : y instanceof ArrayBuffer;
4163
4166
  }
4164
- t.isArrayBuffer = at;
4167
+ t.isArrayBuffer = st;
4165
4168
  function f(y) {
4166
4169
  return u(y) === "[object DataView]";
4167
4170
  }
@@ -4202,30 +4205,30 @@ var Ka = function(e) {
4202
4205
  return S(y, d);
4203
4206
  }
4204
4207
  t.isNumberObject = ke;
4205
- function ut(y) {
4208
+ function at(y) {
4206
4209
  return S(y, c);
4207
4210
  }
4208
- t.isStringObject = ut;
4211
+ t.isStringObject = at;
4209
4212
  function $e(y) {
4210
4213
  return S(y, l);
4211
4214
  }
4212
4215
  t.isBooleanObject = $e;
4213
- function ct(y) {
4216
+ function ut(y) {
4214
4217
  return s && S(y, p);
4215
4218
  }
4216
- t.isBigIntObject = ct;
4217
- function Dr(y) {
4219
+ t.isBigIntObject = ut;
4220
+ function Fr(y) {
4218
4221
  return a && S(y, b);
4219
4222
  }
4220
- t.isSymbolObject = Dr;
4221
- function mi(y) {
4222
- return ke(y) || ut(y) || $e(y) || ct(y) || Dr(y);
4223
+ t.isSymbolObject = Fr;
4224
+ function gi(y) {
4225
+ return ke(y) || at(y) || $e(y) || ut(y) || Fr(y);
4223
4226
  }
4224
- t.isBoxedPrimitive = mi;
4225
- function bi(y) {
4226
- return typeof Uint8Array < "u" && (at(y) || C(y));
4227
+ t.isBoxedPrimitive = gi;
4228
+ function mi(y) {
4229
+ return typeof Uint8Array < "u" && (st(y) || C(y));
4227
4230
  }
4228
- t.isAnyArrayBuffer = bi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
4231
+ t.isAnyArrayBuffer = mi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
4229
4232
  Object.defineProperty(t, y, {
4230
4233
  enumerable: !1,
4231
4234
  value: function() {
@@ -4233,11 +4236,11 @@ var Ka = function(e) {
4233
4236
  }
4234
4237
  });
4235
4238
  });
4236
- })(Jn);
4237
- var Xa = function(e) {
4239
+ })(Yn);
4240
+ var Ja = function(e) {
4238
4241
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
4239
- }, yr = { exports: {} };
4240
- typeof Object.create == "function" ? yr.exports = function(e, r) {
4242
+ }, hr = { exports: {} };
4243
+ typeof Object.create == "function" ? hr.exports = function(e, r) {
4241
4244
  r && (e.super_ = r, e.prototype = Object.create(r.prototype, {
4242
4245
  constructor: {
4243
4246
  value: e,
@@ -4246,7 +4249,7 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
4246
4249
  configurable: !0
4247
4250
  }
4248
4251
  }));
4249
- } : yr.exports = function(e, r) {
4252
+ } : hr.exports = function(e, r) {
4250
4253
  if (r) {
4251
4254
  e.super_ = r;
4252
4255
  var n = function() {
@@ -4254,7 +4257,7 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
4254
4257
  n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
4255
4258
  }
4256
4259
  };
4257
- var Za = yr.exports;
4260
+ var Xa = hr.exports;
4258
4261
  (function(t) {
4259
4262
  var e = Object.getOwnPropertyDescriptors || function(h) {
4260
4263
  for (var g = Object.keys(h), w = {}, C = 0; C < g.length; C++)
@@ -4395,8 +4398,8 @@ var Za = yr.exports;
4395
4398
  }
4396
4399
  var F = "", Y = !1, ke = ["{", "}"];
4397
4400
  if (v(h) && (Y = !0, ke = ["[", "]"]), pe(h)) {
4398
- var ut = h.name ? ": " + h.name : "";
4399
- F = " [Function" + ut + "]";
4401
+ var at = h.name ? ": " + h.name : "";
4402
+ F = " [Function" + at + "]";
4400
4403
  }
4401
4404
  if (ae(h) && (F = " " + RegExp.prototype.toString.call(h)), Fe(h) && (F = " " + Date.prototype.toUTCString.call(h)), Te(h) && (F = " " + p(h)), L.length === 0 && (!Y || h.length == 0))
4402
4405
  return ke[0] + F + ke[1];
@@ -4404,8 +4407,8 @@ var Za = yr.exports;
4404
4407
  return ae(h) ? f.stylize(RegExp.prototype.toString.call(h), "regexp") : f.stylize("[Object]", "special");
4405
4408
  f.seen.push(h);
4406
4409
  var $e;
4407
- return Y ? $e = b(f, h, g, I, L) : $e = L.map(function(ct) {
4408
- return S(f, h, g, I, ct, Y);
4410
+ return Y ? $e = b(f, h, g, I, L) : $e = L.map(function(ut) {
4411
+ return S(f, h, g, I, ut, Y);
4409
4412
  }), f.seen.pop(), m($e, F, ke);
4410
4413
  }
4411
4414
  function l(f, h) {
@@ -4474,7 +4477,7 @@ var Za = yr.exports;
4474
4477
  `) + " " + f.join(`,
4475
4478
  `) + " " + g[1] : g[0] + h + " " + f.join(", ") + " " + g[1];
4476
4479
  }
4477
- t.types = Jn;
4480
+ t.types = Yn;
4478
4481
  function v(f) {
4479
4482
  return Array.isArray(f);
4480
4483
  }
@@ -4531,7 +4534,7 @@ var Za = yr.exports;
4531
4534
  return f === null || typeof f == "boolean" || typeof f == "number" || typeof f == "string" || typeof f == "symbol" || // ES6 symbol
4532
4535
  typeof f > "u";
4533
4536
  }
4534
- t.isPrimitive = Mt, t.isBuffer = Xa;
4537
+ t.isPrimitive = Mt, t.isBuffer = Ja;
4535
4538
  function Ie(f) {
4536
4539
  return Object.prototype.toString.call(f);
4537
4540
  }
@@ -4562,7 +4565,7 @@ var Za = yr.exports;
4562
4565
  }
4563
4566
  t.log = function() {
4564
4567
  console.log("%s - %s", Bt(), t.format.apply(t, arguments));
4565
- }, t.inherits = Za, t._extend = function(f, h) {
4568
+ }, t.inherits = Xa, t._extend = function(f, h) {
4566
4569
  if (!h || !ue(h)) return f;
4567
4570
  for (var g = Object.keys(h), w = g.length; w--; )
4568
4571
  f[g[w]] = h[g[w]];
@@ -4618,7 +4621,7 @@ var Za = yr.exports;
4618
4621
  }
4619
4622
  return h(f);
4620
4623
  }
4621
- function at(f) {
4624
+ function st(f) {
4622
4625
  if (typeof f != "function")
4623
4626
  throw new TypeError('The "original" argument must be of type Function');
4624
4627
  function h() {
@@ -4644,22 +4647,22 @@ var Za = yr.exports;
4644
4647
  e(f)
4645
4648
  ), h;
4646
4649
  }
4647
- t.callbackify = at;
4650
+ t.callbackify = st;
4648
4651
  })(Ft);
4649
- const { inherits: eu, format: Jt } = Ft;
4652
+ const { inherits: Za, format: Yt } = Ft;
4650
4653
  function _e(t, e, r = Error) {
4651
4654
  if (!t) throw new Error("Avvio error code must not be empty");
4652
4655
  if (!e) throw new Error("Avvio base error message must not be empty");
4653
4656
  function n(i, o, s) {
4654
4657
  if (!new.target)
4655
4658
  return new n(i, o, s);
4656
- 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;
4659
+ 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;
4657
4660
  }
4658
4661
  return n.prototype[Symbol.toStringTag] = "Error", n.prototype.toString = function() {
4659
4662
  return `${this.name} [${this.code}]: ${this.message}`;
4660
- }, eu(n, r), n;
4663
+ }, Za(n, r), n;
4661
4664
  }
4662
- var pi = {
4665
+ var fi = {
4663
4666
  createError: _e,
4664
4667
  AVV_ERR_EXPOSE_ALREADY_DEFINED: _e(
4665
4668
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -4685,7 +4688,7 @@ var pi = {
4685
4688
  "AVV_ERR_READY_TIMEOUT",
4686
4689
  "Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
4687
4690
  )
4688
- }, tu = function t(e, r, n) {
4691
+ }, eu = function t(e, r, n) {
4689
4692
  r === void 0 && (r = ""), n || (n = {});
4690
4693
  var i = function(u) {
4691
4694
  var d = {
@@ -4707,15 +4710,15 @@ var pi = {
4707
4710
  return r + i(c ? "└" : "├") + i("─") + i(l ? "┬" : "─") + " " + t(u, p, n).slice(r.length + 2);
4708
4711
  }).join("");
4709
4712
  };
4710
- const ru = tu, vn = Symbol("avvio.TimeTree.untrackNode"), Xt = Symbol("avvio.TimeTree.trackNode"), Sn = Symbol("avvio.TimeTree.getParent"), wn = Symbol("avvio.TimeTree.getNode"), An = Symbol("avvio.TimeTree.addNode");
4711
- let nu = class {
4713
+ const tu = eu, bn = Symbol("avvio.TimeTree.untrackNode"), Jt = Symbol("avvio.TimeTree.trackNode"), vn = Symbol("avvio.TimeTree.getParent"), Sn = Symbol("avvio.TimeTree.getNode"), wn = Symbol("avvio.TimeTree.addNode");
4714
+ let ru = class {
4712
4715
  constructor() {
4713
4716
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
4714
4717
  }
4715
- [Xt](e) {
4718
+ [Jt](e) {
4716
4719
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
4717
4720
  }
4718
- [vn](e) {
4721
+ [bn](e) {
4719
4722
  this.tableId.delete(e.id);
4720
4723
  const r = this.tableLabel.get(e.label);
4721
4724
  if (r.id) {
@@ -4724,53 +4727,53 @@ let nu = class {
4724
4727
  }
4725
4728
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
4726
4729
  }
4727
- [Sn](e) {
4730
+ [vn](e) {
4728
4731
  if (e === null)
4729
4732
  return this.root;
4730
4733
  const r = this.tableLabel.get(e);
4731
4734
  return r.id ? r : r[r.length - 1];
4732
4735
  }
4733
- [wn](e) {
4736
+ [Sn](e) {
4734
4737
  return this.tableId.get(e);
4735
4738
  }
4736
- [An](e, r, n) {
4739
+ [wn](e, r, n) {
4737
4740
  if (e === null)
4738
4741
  return this.root = {
4739
4742
  id: "root",
4740
4743
  label: r,
4741
4744
  start: n,
4742
4745
  nodes: []
4743
- }, this[Xt](this.root), this.root.id;
4744
- const o = this[Sn](e), s = `${r}-${Math.random()}`, a = {
4746
+ }, this[Jt](this.root), this.root.id;
4747
+ const o = this[vn](e), s = `${r}-${Math.random()}`, a = {
4745
4748
  id: s,
4746
4749
  parent: e,
4747
4750
  start: n,
4748
4751
  label: r,
4749
4752
  nodes: []
4750
4753
  };
4751
- return o.nodes.push(a), this[Xt](a), s;
4754
+ return o.nodes.push(a), this[Jt](a), s;
4752
4755
  }
4753
4756
  start(e, r, n = Date.now()) {
4754
- return this[An](e, r, n);
4757
+ return this[wn](e, r, n);
4755
4758
  }
4756
4759
  stop(e, r = Date.now()) {
4757
- const n = this[wn](e);
4758
- n && (n.stop = r, n.diff = n.stop - n.start || 0, this[vn](n));
4760
+ const n = this[Sn](e);
4761
+ n && (n.stop = r, n.diff = n.stop - n.start || 0, this[bn](n));
4759
4762
  }
4760
4763
  toJSON() {
4761
4764
  return Object.assign({}, this.root);
4762
4765
  }
4763
4766
  prittyPrint() {
4764
4767
  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());
4765
- return ru(r);
4768
+ return tu(r);
4766
4769
  }
4767
4770
  };
4768
- var iu = nu, Nr = { exports: {} }, gr = { exports: {} }, Zt, En;
4769
- function ou() {
4770
- if (En) return Zt;
4771
- En = 1;
4771
+ var nu = ru, Pr = { exports: {} }, yr = { exports: {} }, Xt, An;
4772
+ function iu() {
4773
+ if (An) return Xt;
4774
+ An = 1;
4772
4775
  var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, o = n * 365.25;
4773
- Zt = function(c, l) {
4776
+ Xt = function(c, l) {
4774
4777
  l = l || {};
4775
4778
  var p = typeof c;
4776
4779
  if (p === "string" && c.length > 0)
@@ -4845,10 +4848,10 @@ function ou() {
4845
4848
  var S = l >= p * 1.5;
4846
4849
  return Math.round(c / p) + " " + b + (S ? "s" : "");
4847
4850
  }
4848
- return Zt;
4851
+ return Xt;
4849
4852
  }
4850
- function su(t) {
4851
- r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = ou(), r.destroy = d, Object.keys(t).forEach((c) => {
4853
+ function ou(t) {
4854
+ r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = iu(), r.destroy = d, Object.keys(t).forEach((c) => {
4852
4855
  r[c] = t[c];
4853
4856
  }), r.names = [], r.skips = [], r.formatters = {};
4854
4857
  function e(c) {
@@ -4928,7 +4931,7 @@ function su(t) {
4928
4931
  }
4929
4932
  return r.enable(r.load()), r;
4930
4933
  }
4931
- var au = su;
4934
+ var su = ou;
4932
4935
  (function(t, e) {
4933
4936
  e.formatArgs = n, e.save = i, e.load = o, e.useColors = r, e.storage = s(), e.destroy = /* @__PURE__ */ (() => {
4934
4937
  let u = !1;
@@ -5052,7 +5055,7 @@ var au = su;
5052
5055
  } catch {
5053
5056
  }
5054
5057
  }
5055
- t.exports = au(e);
5058
+ t.exports = su(e);
5056
5059
  const { formatters: a } = t.exports;
5057
5060
  a.j = function(u) {
5058
5061
  try {
@@ -5061,23 +5064,23 @@ var au = su;
5061
5064
  return "[UnexpectedJSONParseError]: " + d.message;
5062
5065
  }
5063
5066
  };
5064
- })(gr, gr.exports);
5065
- var hi = gr.exports;
5066
- const uu = jn, cu = Yn.EventEmitter, lu = Ft.inherits, j = hi("avvio"), { AVV_ERR_READY_TIMEOUT: du } = pi, er = Symbol.for("plugin-meta");
5067
- function fu(t, e) {
5068
- 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(`
5067
+ })(yr, yr.exports);
5068
+ var pi = yr.exports;
5069
+ const au = Un, uu = Wn.EventEmitter, cu = Ft.inherits, j = pi("avvio"), { AVV_ERR_READY_TIMEOUT: lu } = fi, Zt = Symbol.for("plugin-meta");
5070
+ function du(t, e) {
5071
+ 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(`
5069
5072
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
5070
5073
  }
5071
- function pu() {
5074
+ function fu() {
5072
5075
  const t = {};
5073
5076
  return t.promise = new Promise((e, r) => {
5074
5077
  t.resolve = e, t.reject = r;
5075
5078
  }), t;
5076
5079
  }
5077
5080
  function We(t, e, r, n, i) {
5078
- 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 = fu(e, r), this.isAfter = n, this.q = uu(t, hu, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
5081
+ 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 = du(e, r), this.isAfter = n, this.q = au(t, pu, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
5079
5082
  }
5080
- lu(We, cu);
5083
+ cu(We, uu);
5081
5084
  We.prototype.exec = function(t, e) {
5082
5085
  const r = this.func;
5083
5086
  let n = !1;
@@ -5105,7 +5108,7 @@ We.prototype.exec = function(t, e) {
5105
5108
  };
5106
5109
  this.timeout > 0 && (j("setting up timeout", i, this.timeout), o = setTimeout(function() {
5107
5110
  j("timed out", i), o = null;
5108
- const u = new du(i);
5111
+ const u = new lu(i);
5109
5112
  u.fn = r, s(u);
5110
5113
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
5111
5114
  const a = r(this.server, this.opts, s);
@@ -5123,7 +5126,7 @@ We.prototype.loadedSoFar = function() {
5123
5126
  }), this.q.resume();
5124
5127
  };
5125
5128
  let e;
5126
- return this._promise ? e = Promise.resolve() : (this._promise = pu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
5129
+ return this._promise ? e = Promise.resolve() : (this._promise = fu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
5127
5130
  };
5128
5131
  We.prototype.enqueue = function(t, e) {
5129
5132
  j("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
@@ -5148,19 +5151,19 @@ We.prototype.finish = function(t, e) {
5148
5151
  r();
5149
5152
  else
5150
5153
  j("delayed", this.name), this.q.drain = () => {
5151
- j("drain", this.name), this.q.drain = yu, queueMicrotask(n);
5154
+ j("drain", this.name), this.q.drain = hu, queueMicrotask(n);
5152
5155
  };
5153
5156
  };
5154
5157
  queueMicrotask(n), this.q.resume();
5155
5158
  };
5156
- function hu(t, e) {
5159
+ function pu(t, e) {
5157
5160
  const r = this;
5158
- A.nextTick(Fr.bind(r), t, e);
5161
+ A.nextTick(Nr.bind(r), t, e);
5159
5162
  }
5160
- function Fr(t, e) {
5163
+ function Nr(t, e) {
5161
5164
  if (typeof t.func.then == "function") {
5162
5165
  t.func.then((n) => {
5163
- typeof n.default == "function" && (n = n.default), t.func = n, Fr.call(this, t, e);
5166
+ typeof n.default == "function" && (n = n.default), t.func = n, Nr.call(this, t, e);
5164
5167
  }, e);
5165
5168
  return;
5166
5169
  }
@@ -5171,59 +5174,59 @@ function Fr(t, e) {
5171
5174
  });
5172
5175
  });
5173
5176
  }
5174
- function yu() {
5177
+ function hu() {
5175
5178
  }
5176
- Nr.exports = We;
5177
- Nr.exports.loadPlugin = Fr;
5178
- var gu = Nr.exports;
5179
- const In = jn, mu = Yn.EventEmitter, bu = Ft.inherits, {
5180
- AVV_ERR_EXPOSE_ALREADY_DEFINED: tr,
5181
- AVV_ERR_CALLBACK_NOT_FN: tt,
5182
- AVV_ERR_PLUGIN_NOT_VALID: vu,
5183
- AVV_ERR_ROOT_PLG_BOOTED: Su,
5184
- AVV_ERR_READY_TIMEOUT: wu
5185
- } = pi, Au = iu, mr = gu, He = hi("avvio"), _t = Symbol("kAvvio"), rr = Symbol("kThenifyDoNotWrap");
5186
- function Eu(t, e, r) {
5179
+ Pr.exports = We;
5180
+ Pr.exports.loadPlugin = Nr;
5181
+ var yu = Pr.exports;
5182
+ const En = Un, gu = Wn.EventEmitter, mu = Ft.inherits, {
5183
+ AVV_ERR_EXPOSE_ALREADY_DEFINED: er,
5184
+ AVV_ERR_CALLBACK_NOT_FN: et,
5185
+ AVV_ERR_PLUGIN_NOT_VALID: bu,
5186
+ AVV_ERR_ROOT_PLG_BOOTED: vu,
5187
+ AVV_ERR_READY_TIMEOUT: Su
5188
+ } = fi, wu = nu, gr = yu, He = pi("avvio"), _t = Symbol("kAvvio"), tr = Symbol("kThenifyDoNotWrap");
5189
+ function Au(t, e, r) {
5187
5190
  const n = e.expose || {}, i = n.use || "use", o = n.after || "after", s = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
5188
5191
  if (t[i])
5189
- throw new tr(i);
5192
+ throw new er(i);
5190
5193
  if (t[o])
5191
- throw new tr(o);
5194
+ throw new er(o);
5192
5195
  if (t[s])
5193
- throw new tr(s);
5196
+ throw new er(s);
5194
5197
  t[i] = function(d, c) {
5195
5198
  return r.use(d, c), this;
5196
- }, Object.defineProperty(t, "then", { get: yi.bind(r) }), t[_t] = !0, t[o] = function(d) {
5197
- return typeof d != "function" ? r._loadRegistered() : (r.after(nr(d, this)), this);
5199
+ }, Object.defineProperty(t, "then", { get: hi.bind(r) }), t[_t] = !0, t[o] = function(d) {
5200
+ return typeof d != "function" ? r._loadRegistered() : (r.after(rr(d, this)), this);
5198
5201
  }, t[s] = function(d) {
5199
5202
  if (d && typeof d != "function")
5200
- throw new tt(s, typeof d);
5201
- return r.ready(d ? nr(d, this) : void 0);
5203
+ throw new et(s, typeof d);
5204
+ return r.ready(d ? rr(d, this) : void 0);
5202
5205
  }, t[a] = function(d) {
5203
5206
  if (typeof d != "function")
5204
- throw new tt(a, typeof d);
5205
- return r.onClose(_u(d, this)), this;
5207
+ throw new et(a, typeof d);
5208
+ return r.onClose(ku(d, this)), this;
5206
5209
  }, t[u] = function(d) {
5207
5210
  if (d && typeof d != "function")
5208
- throw new tt(u, typeof d);
5209
- return d ? (r.close(nr(d, this)), this) : r.close();
5211
+ throw new et(u, typeof d);
5212
+ return d ? (r.close(rr(d, this)), this) : r.close();
5210
5213
  };
5211
5214
  }
5212
5215
  function Q(t, e, r) {
5213
5216
  if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof Q)) {
5214
5217
  const n = new Q(t, e, r);
5215
- return t && Eu(t, e, n), n;
5218
+ return t && Au(t, e, n), n;
5216
5219
  }
5217
- 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 Au(), this._readyQ = In(this, gi, 1), this._readyQ.pause(), this._readyQ.drain = () => {
5218
- this.emit("start"), this._readyQ.drain = On;
5219
- }, this._closeQ = In(this, ku, 1), this._closeQ.pause(), this._closeQ.drain = () => {
5220
- this.emit("close"), this._closeQ.drain = On;
5221
- }, this._doStart = null, this._root = new mr(this, Iu.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
5220
+ 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 wu(), this._readyQ = En(this, yi, 1), this._readyQ.pause(), this._readyQ.drain = () => {
5221
+ this.emit("start"), this._readyQ.drain = In;
5222
+ }, this._closeQ = En(this, Tu, 1), this._closeQ.pause(), this._closeQ.drain = () => {
5223
+ this.emit("close"), this._closeQ.drain = In;
5224
+ }, this._doStart = null, this._root = new gr(this, Eu.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
5222
5225
  const s = this.pluginTree.start(null, i, o);
5223
5226
  this._root.once("loaded", (a, u, d) => {
5224
5227
  this.pluginTree.stop(s, d);
5225
5228
  });
5226
- }), mr.loadPlugin.call(this, this._root, (n) => {
5229
+ }), gr.loadPlugin.call(this, this._root, (n) => {
5227
5230
  He("root plugin ready");
5228
5231
  try {
5229
5232
  this.emit("preReady"), this._root = null;
@@ -5238,19 +5241,19 @@ function Q(t, e, r) {
5238
5241
  this._readyQ.resume();
5239
5242
  });
5240
5243
  }
5241
- function Iu(t, e, r) {
5244
+ function Eu(t, e, r) {
5242
5245
  this._doStart = r, e.autostart && this.start();
5243
5246
  }
5244
- bu(Q, mu);
5247
+ mu(Q, gu);
5245
5248
  Q.prototype.start = function() {
5246
5249
  return this.started = !0, A.nextTick(this._doStart), this;
5247
5250
  };
5248
5251
  Q.prototype.override = function(t, e, r) {
5249
5252
  return t;
5250
5253
  };
5251
- function Ou(t) {
5254
+ function Iu(t) {
5252
5255
  if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
5253
- throw new vu(typeof t);
5256
+ throw new bu(typeof t);
5254
5257
  return t;
5255
5258
  }
5256
5259
  Q.prototype[_t] = !0;
@@ -5261,11 +5264,11 @@ Q.prototype._loadRegistered = function() {
5261
5264
  const t = this._current[0];
5262
5265
  return !this.started && !this.booted && A.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
5263
5266
  };
5264
- Object.defineProperty(Q.prototype, "then", { get: yi });
5267
+ Object.defineProperty(Q.prototype, "then", { get: hi });
5265
5268
  Q.prototype._addPlugin = function(t, e, r) {
5266
- if (t = Ou(t), e = e || {}, this.booted)
5267
- throw new Su();
5268
- const n = this._current[0], i = new mr(this, t, e, r);
5269
+ if (t = Iu(t), e = e || {}, this.booted)
5270
+ throw new vu();
5271
+ const n = this._current[0], i = new gr(this, t, e, r);
5269
5272
  if (i.once("start", (o, s, a) => {
5270
5273
  const u = this.pluginTree.start(n.name, s, a);
5271
5274
  i.once("loaded", (d, c, l) => {
@@ -5282,7 +5285,7 @@ Q.prototype.after = function(t) {
5282
5285
  return this._loadRegistered();
5283
5286
  this._addPlugin(e.bind(this), {}, !0);
5284
5287
  function e(r, n, i) {
5285
- gi.call(this, t, i);
5288
+ yi.call(this, t, i);
5286
5289
  }
5287
5290
  return this;
5288
5291
  };
@@ -5299,7 +5302,7 @@ Q.prototype.close = function(t) {
5299
5302
  let e;
5300
5303
  if (t) {
5301
5304
  if (typeof t != "function")
5302
- throw new tt("close", typeof t);
5305
+ throw new et("close", typeof t);
5303
5306
  } else
5304
5307
  e = new Promise(function(r, n) {
5305
5308
  t = function(i) {
@@ -5315,7 +5318,7 @@ Q.prototype.close = function(t) {
5315
5318
  Q.prototype.ready = function(t) {
5316
5319
  if (t) {
5317
5320
  if (typeof t != "function")
5318
- throw new tt("ready", typeof t);
5321
+ throw new et("ready", typeof t);
5319
5322
  this._readyQ.push(t), queueMicrotask(this.start.bind(this));
5320
5323
  return;
5321
5324
  }
@@ -5333,20 +5336,20 @@ Q.prototype.prettyPrint = function() {
5333
5336
  Q.prototype.toJSON = function() {
5334
5337
  return this.pluginTree.toJSON();
5335
5338
  };
5336
- function On() {
5339
+ function In() {
5337
5340
  }
5338
- function yi() {
5341
+ function hi() {
5339
5342
  if (this.booted) {
5340
5343
  He("thenify returning null because we are already booted");
5341
5344
  return;
5342
5345
  }
5343
- if (this[rr]) {
5344
- this[rr] = !1;
5346
+ if (this[tr]) {
5347
+ this[tr] = !1;
5345
5348
  return;
5346
5349
  }
5347
- return He("thenify"), (t, e) => this._loadRegistered().then(() => (this[rr] = !0, t(this._server)), e);
5350
+ return He("thenify"), (t, e) => this._loadRegistered().then(() => (this[tr] = !0, t(this._server)), e);
5348
5351
  }
5349
- function gi(t, e) {
5352
+ function yi(t, e) {
5350
5353
  const r = this._server, n = this._error;
5351
5354
  let i;
5352
5355
  if (this._error = null, t.length === 0)
@@ -5359,14 +5362,14 @@ function gi(t, e) {
5359
5362
  };
5360
5363
  t.length === 2 ? t(n, o) : t(n, r, o);
5361
5364
  } else
5362
- Tu.call(this, t, n, r, e);
5365
+ Ou.call(this, t, n, r, e);
5363
5366
  }
5364
- function Tu(t, e, r, n) {
5367
+ function Ou(t, e, r, n) {
5365
5368
  const i = t.name;
5366
5369
  He("setting up ready timeout", i, this._timeout);
5367
5370
  let o = setTimeout(() => {
5368
5371
  He("timed out", i), o = null;
5369
- const a = new wu(i);
5372
+ const a = new Su(i);
5370
5373
  a.fn = t, this._error = a, n(a);
5371
5374
  }, this._timeout);
5372
5375
  t.length === 2 ? t(e, s.bind(this)) : t(e, r, s.bind(this));
@@ -5374,7 +5377,7 @@ function Tu(t, e, r, n) {
5374
5377
  o && (clearTimeout(o), this._error = a, n(this._error));
5375
5378
  }
5376
5379
  }
5377
- function ku(t, e) {
5380
+ function Tu(t, e) {
5378
5381
  const r = this._server, n = t[this._isOnCloseHandlerKey];
5379
5382
  if (t.length === 0 || t.length === 1) {
5380
5383
  let i;
@@ -5384,7 +5387,7 @@ function ku(t, e) {
5384
5387
  )) : A.nextTick(e);
5385
5388
  } else t.length === 2 ? t(n ? r : this._error, e) : n ? t(r, e) : t(this._error, r, e);
5386
5389
  }
5387
- function _u(t, e) {
5390
+ function ku(t, e) {
5388
5391
  return r.bind(e);
5389
5392
  function r(n, i) {
5390
5393
  let o;
@@ -5395,7 +5398,7 @@ function _u(t, e) {
5395
5398
  }, i) : A.nextTick(i)) : t(this, i);
5396
5399
  }
5397
5400
  }
5398
- function nr(t, e) {
5401
+ function rr(t, e) {
5399
5402
  return r.bind(e);
5400
5403
  function r(n, i) {
5401
5404
  let o;
@@ -5406,16 +5409,16 @@ function nr(t, e) {
5406
5409
  }, i) : A.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : A.nextTick(i);
5407
5410
  }
5408
5411
  }
5409
- wr.exports = Q;
5410
- wr.exports.express = function(t) {
5412
+ Sr.exports = Q;
5413
+ Sr.exports.express = function(t) {
5411
5414
  return Q(t, {
5412
5415
  expose: {
5413
5416
  use: "load"
5414
5417
  }
5415
5418
  });
5416
5419
  };
5417
- var Cu = wr.exports;
5418
- const Lu = /* @__PURE__ */ is(Cu);
5420
+ var _u = Sr.exports;
5421
+ const Cu = /* @__PURE__ */ ns(_u);
5419
5422
  (function() {
5420
5423
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
5421
5424
  return;
@@ -5433,20 +5436,20 @@ const Lu = /* @__PURE__ */ is(Cu);
5433
5436
  }, window.cancelAnimationFrame = clearTimeout;
5434
5437
  }
5435
5438
  })();
5436
- function ec(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5437
- 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 = Lu(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5438
- return s.use(Vo, {
5439
+ function Zu(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5440
+ 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 = Cu(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5441
+ return s.use(Ro, {
5439
5442
  hideFriends: n.hideFriends,
5440
5443
  skipOnboarding: n.skipOnboarding,
5441
5444
  betPack: n.betPack,
5442
5445
  friendsTab: n.friendsTab,
5443
5446
  theme: n.theme,
5444
5447
  themeMode: n.themeMode
5445
- }), s.use(Co, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(Fo, { videoPlayerController: n?.videoPlayerController }), s.use(Ro, {
5448
+ }), s.use(_o, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(No, { videoPlayerController: n?.videoPlayerController }), s.use(Do, {
5446
5449
  onContentActivate: n?.onContentActivate,
5447
5450
  withAd: n?.withAd,
5448
5451
  withAdNotification: n?.withAdNotification
5449
- }), s.use(Zi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(io), s.use(No), s.use(Ko), s.use(Ao), s.use(ns), s.after((a, u, d) => {
5452
+ }), s.use(Xi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(no), s.use(Po), s.use(zo), s.use(wo), s.use(rs), s.after((a, u, d) => {
5450
5453
  if (a)
5451
5454
  throw a;
5452
5455
  u.ready(), d();
@@ -5459,5 +5462,5 @@ function ec(t, e = !0, r = !0, n = { friendsTab: "enabled" }) {
5459
5462
  }), s;
5460
5463
  }
5461
5464
  export {
5462
- ec as StreamLayer
5465
+ Zu as StreamLayer
5463
5466
  };