@streamlayer/sdk-web 0.28.11 → 0.28.13

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,33 +1,33 @@
1
- import { QuestionType as ze, SilenceSetting as Kr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { QuestionType as st, SilenceSetting as zr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
2
2
  import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
3
3
  import { SdkOverlayType as ae } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
- import { computed as Hr, map as Mn, atom as Tt } from "nanostores";
4
+ import { computed as fr, map as jn, atom as Ct } from "nanostores";
5
5
  import "@nanostores/logger";
6
6
  import "microdiff";
7
- import { Code as Vn, createPromiseClient as qn, createCallbackClient as Gn } from "@connectrpc/connect";
8
- import { createGrpcWebTransport as Qn } from "@connectrpc/connect-web";
9
- import { nanoquery as zn } from "@nanostores/query";
10
- import { Events as Kn } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
- import { Client as Ct } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
12
- import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
13
- import { pino as Hn } from "pino";
14
- import { Feed as de } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
7
+ import { Code as Mn, createPromiseClient as Vn, createCallbackClient as qn } from "@connectrpc/connect";
8
+ import { createGrpcWebTransport as Gn } from "@connectrpc/connect-web";
9
+ import { nanoquery as Qn } from "@nanostores/query";
10
+ import { Events as zn } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
+ import { Client as Tt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
12
+ import { Users as Kr } from "@streamlayer/sl-eslib/users/users_connect";
13
+ import { pino as Kn } from "pino";
14
+ import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
+ import { Leaderboard as Hr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
16
16
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
17
- var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function Wn(t) {
17
+ var Wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ function Hn(t) {
19
19
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
20
20
  }
21
- var C = {}, Xr = {}, _t = {};
22
- _t.byteLength = Xn;
23
- _t.toByteArray = ei;
24
- _t.fromByteArray = ni;
25
- var ve = [], oe = [], Jn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
- for (var je = 0, Yn = Nt.length; je < Yn; ++je)
27
- ve[je] = Nt[je], oe[Nt.charCodeAt(je)] = je;
21
+ var T = {}, Jr = {}, _t = {};
22
+ _t.byteLength = Yn;
23
+ _t.toByteArray = Zn;
24
+ _t.fromByteArray = ri;
25
+ var we = [], oe = [], Wn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
+ for (var Me = 0, Jn = Nt.length; Me < Jn; ++Me)
27
+ we[Me] = Nt[Me], oe[Nt.charCodeAt(Me)] = Me;
28
28
  oe["-".charCodeAt(0)] = 62;
29
29
  oe["_".charCodeAt(0)] = 63;
30
- function Zr(t) {
30
+ function Yr(t) {
31
31
  var e = t.length;
32
32
  if (e % 4 > 0)
33
33
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -36,41 +36,41 @@ function Zr(t) {
36
36
  var o = r === e ? 0 : 4 - r % 4;
37
37
  return [r, o];
38
38
  }
39
- function Xn(t) {
40
- var e = Zr(t), r = e[0], o = e[1];
39
+ function Yn(t) {
40
+ var e = Yr(t), r = e[0], o = e[1];
41
41
  return (r + o) * 3 / 4 - o;
42
42
  }
43
- function Zn(t, e, r) {
43
+ function Xn(t, e, r) {
44
44
  return (e + r) * 3 / 4 - r;
45
45
  }
46
- function ei(t) {
47
- var e, r = Zr(t), o = r[0], s = r[1], u = new Jn(Zn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
46
+ function Zn(t) {
47
+ var e, r = Yr(t), o = r[0], s = r[1], u = new Wn(Xn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
48
48
  for (d = 0; d < f; d += 4)
49
49
  e = oe[t.charCodeAt(d)] << 18 | oe[t.charCodeAt(d + 1)] << 12 | oe[t.charCodeAt(d + 2)] << 6 | oe[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
50
  return s === 2 && (e = oe[t.charCodeAt(d)] << 2 | oe[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = oe[t.charCodeAt(d)] << 10 | oe[t.charCodeAt(d + 1)] << 4 | oe[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
51
51
  }
52
- function ti(t) {
53
- return ve[t >> 18 & 63] + ve[t >> 12 & 63] + ve[t >> 6 & 63] + ve[t & 63];
52
+ function ei(t) {
53
+ return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
54
54
  }
55
- function ri(t, e, r) {
55
+ function ti(t, e, r) {
56
56
  for (var o, s = [], u = e; u < r; u += 3)
57
- o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ti(o));
57
+ o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ei(o));
58
58
  return s.join("");
59
59
  }
60
- function ni(t) {
60
+ function ri(t) {
61
61
  for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
62
- s.push(ri(t, l, l + u > f ? f : l + u));
62
+ s.push(ti(t, l, l + u > f ? f : l + u));
63
63
  return o === 1 ? (e = t[r - 1], s.push(
64
- ve[e >> 2] + ve[e << 4 & 63] + "=="
64
+ we[e >> 2] + we[e << 4 & 63] + "=="
65
65
  )) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
66
- ve[e >> 10] + ve[e >> 4 & 63] + ve[e << 2 & 63] + "="
66
+ we[e >> 10] + we[e >> 4 & 63] + we[e << 2 & 63] + "="
67
67
  )), s.join("");
68
68
  }
69
- var fr = {};
69
+ var lr = {};
70
70
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
71
- fr.read = function(t, e, r, o, s) {
72
- var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, T = t[e + w];
73
- for (w += E, u = T & (1 << -g) - 1, T >>= -g, g += f; g > 0; u = u * 256 + t[e + w], w += E, g -= 8)
71
+ lr.read = function(t, e, r, o, s) {
72
+ var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, C = t[e + w];
73
+ for (w += E, u = C & (1 << -g) - 1, C >>= -g, g += f; g > 0; u = u * 256 + t[e + w], w += E, g -= 8)
74
74
  ;
75
75
  for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + w], w += E, g -= 8)
76
76
  ;
@@ -78,18 +78,18 @@ fr.read = function(t, e, r, o, s) {
78
78
  u = 1 - A;
79
79
  else {
80
80
  if (u === d)
81
- return l ? NaN : (T ? -1 : 1) * (1 / 0);
81
+ return l ? NaN : (C ? -1 : 1) * (1 / 0);
82
82
  l = l + Math.pow(2, o), u = u - A;
83
83
  }
84
- return (T ? -1 : 1) * l * Math.pow(2, u - o);
84
+ return (C ? -1 : 1) * l * Math.pow(2, u - o);
85
85
  };
86
- fr.write = function(t, e, r, o, s, u) {
87
- var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = o ? 0 : u - 1, P = o ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + w >= 1 ? e += E / d : e += E * Math.pow(2, 1 - w), e * d >= 2 && (l++, d /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * d - 1) * Math.pow(2, s), l = l + w) : (f = e * Math.pow(2, w - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + T] = f & 255, T += P, f /= 256, s -= 8)
86
+ lr.write = function(t, e, r, o, s, u) {
87
+ var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = o ? 0 : u - 1, P = o ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + w >= 1 ? e += E / d : e += E * Math.pow(2, 1 - w), e * d >= 2 && (l++, d /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * d - 1) * Math.pow(2, s), l = l + w) : (f = e * Math.pow(2, w - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + C] = f & 255, C += P, f /= 256, s -= 8)
89
89
  ;
90
- for (l = l << s | f, A += s; A > 0; t[r + T] = l & 255, T += P, l /= 256, A -= 8)
90
+ for (l = l << s | f, A += s; A > 0; t[r + C] = l & 255, C += P, l /= 256, A -= 8)
91
91
  ;
92
- t[r + T - P] |= N * 128;
92
+ t[r + C - P] |= N * 128;
93
93
  };
94
94
  /*!
95
95
  * The buffer module from node.js, for the browser.
@@ -98,7 +98,7 @@ fr.write = function(t, e, r, o, s, u) {
98
98
  * @license MIT
99
99
  */
100
100
  (function(t) {
101
- const e = _t, r = fr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
101
+ const e = _t, r = lr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
102
102
  t.Buffer = f, t.SlowBuffer = X, t.INSPECT_MAX_BYTES = 50;
103
103
  const s = 2147483647;
104
104
  t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -153,7 +153,7 @@ fr.write = function(t, e, r, o, s, u) {
153
153
  throw new TypeError(
154
154
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
155
155
  );
156
- if (me(a, ArrayBuffer) || a && me(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (me(a, SharedArrayBuffer) || a && me(a.buffer, SharedArrayBuffer)))
156
+ if (ge(a, ArrayBuffer) || a && ge(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ge(a, SharedArrayBuffer) || a && ge(a.buffer, SharedArrayBuffer)))
157
157
  return N(a, n, i);
158
158
  if (typeof a == "number")
159
159
  throw new TypeError(
@@ -197,23 +197,23 @@ fr.write = function(t, e, r, o, s, u) {
197
197
  function E(a, n) {
198
198
  if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
199
199
  throw new TypeError("Unknown encoding: " + n);
200
- const i = ye(a, n) | 0;
200
+ const i = de(a, n) | 0;
201
201
  let c = l(i);
202
202
  const h = c.write(a, n);
203
203
  return h !== i && (c = c.slice(0, h)), c;
204
204
  }
205
- function T(a) {
205
+ function C(a) {
206
206
  const n = a.length < 0 ? 0 : z(a.length) | 0, i = l(n);
207
207
  for (let c = 0; c < n; c += 1)
208
208
  i[c] = a[c] & 255;
209
209
  return i;
210
210
  }
211
211
  function P(a) {
212
- if (me(a, Uint8Array)) {
212
+ if (ge(a, Uint8Array)) {
213
213
  const n = new Uint8Array(a);
214
214
  return N(n.buffer, n.byteOffset, n.byteLength);
215
215
  }
216
- return T(a);
216
+ return C(a);
217
217
  }
218
218
  function N(a, n, i) {
219
219
  if (n < 0 || a.byteLength < n)
@@ -229,9 +229,9 @@ fr.write = function(t, e, r, o, s, u) {
229
229
  return i.length === 0 || a.copy(i, 0, 0, n), i;
230
230
  }
231
231
  if (a.length !== void 0)
232
- return typeof a.length != "number" || Rt(a.length) ? l(0) : T(a);
232
+ return typeof a.length != "number" || Rt(a.length) ? l(0) : C(a);
233
233
  if (a.type === "Buffer" && Array.isArray(a.data))
234
- return T(a.data);
234
+ return C(a.data);
235
235
  }
236
236
  function z(a) {
237
237
  if (a >= s)
@@ -244,7 +244,7 @@ fr.write = function(t, e, r, o, s, u) {
244
244
  f.isBuffer = function(n) {
245
245
  return n != null && n._isBuffer === !0 && n !== f.prototype;
246
246
  }, f.compare = function(n, i) {
247
- if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), me(i, Uint8Array) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(n) || !f.isBuffer(i))
247
+ if (ge(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), ge(i, Uint8Array) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(n) || !f.isBuffer(i))
248
248
  throw new TypeError(
249
249
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
250
250
  );
@@ -287,7 +287,7 @@ fr.write = function(t, e, r, o, s, u) {
287
287
  let y = 0;
288
288
  for (c = 0; c < n.length; ++c) {
289
289
  let m = n[c];
290
- if (me(m, Uint8Array))
290
+ if (ge(m, Uint8Array))
291
291
  y + m.length > h.length ? (f.isBuffer(m) || (m = f.from(m)), m.copy(h, y)) : Uint8Array.prototype.set.call(
292
292
  h,
293
293
  m,
@@ -301,10 +301,10 @@ fr.write = function(t, e, r, o, s, u) {
301
301
  }
302
302
  return h;
303
303
  };
304
- function ye(a, n) {
304
+ function de(a, n) {
305
305
  if (f.isBuffer(a))
306
306
  return a.length;
307
- if (ArrayBuffer.isView(a) || me(a, ArrayBuffer))
307
+ if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
308
308
  return a.byteLength;
309
309
  if (typeof a != "string")
310
310
  throw new TypeError(
@@ -322,7 +322,7 @@ fr.write = function(t, e, r, o, s, u) {
322
322
  return i;
323
323
  case "utf8":
324
324
  case "utf-8":
325
- return it(a).length;
325
+ return nt(a).length;
326
326
  case "ucs2":
327
327
  case "ucs-2":
328
328
  case "utf16le":
@@ -334,11 +334,11 @@ fr.write = function(t, e, r, o, s, u) {
334
334
  return ht(a).length;
335
335
  default:
336
336
  if (h)
337
- return c ? -1 : it(a).length;
337
+ return c ? -1 : nt(a).length;
338
338
  n = ("" + n).toLowerCase(), h = !0;
339
339
  }
340
340
  }
341
- f.byteLength = ye;
341
+ f.byteLength = de;
342
342
  function ee(a, n, i) {
343
343
  let c = !1;
344
344
  if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, n >>>= 0, i <= n))
@@ -346,17 +346,17 @@ fr.write = function(t, e, r, o, s, u) {
346
346
  for (a || (a = "utf8"); ; )
347
347
  switch (a) {
348
348
  case "hex":
349
- return he(this, n, i);
349
+ return le(this, n, i);
350
350
  case "utf8":
351
351
  case "utf-8":
352
- return le(this, n, i);
352
+ return fe(this, n, i);
353
353
  case "ascii":
354
- return nt(this, n, i);
354
+ return rt(this, n, i);
355
355
  case "latin1":
356
356
  case "binary":
357
- return xe(this, n, i);
357
+ return Be(this, n, i);
358
358
  case "base64":
359
- return rt(this, n, i);
359
+ return tt(this, n, i);
360
360
  case "ucs2":
361
361
  case "ucs-2":
362
362
  case "utf16le":
@@ -369,7 +369,7 @@ fr.write = function(t, e, r, o, s, u) {
369
369
  }
370
370
  }
371
371
  f.prototype._isBuffer = !0;
372
- function x(a, n, i) {
372
+ function B(a, n, i) {
373
373
  const c = a[n];
374
374
  a[n] = a[i], a[i] = c;
375
375
  }
@@ -378,25 +378,25 @@ fr.write = function(t, e, r, o, s, u) {
378
378
  if (n % 2 !== 0)
379
379
  throw new RangeError("Buffer size must be a multiple of 16-bits");
380
380
  for (let i = 0; i < n; i += 2)
381
- x(this, i, i + 1);
381
+ B(this, i, i + 1);
382
382
  return this;
383
383
  }, f.prototype.swap32 = function() {
384
384
  const n = this.length;
385
385
  if (n % 4 !== 0)
386
386
  throw new RangeError("Buffer size must be a multiple of 32-bits");
387
387
  for (let i = 0; i < n; i += 4)
388
- x(this, i, i + 3), x(this, i + 1, i + 2);
388
+ B(this, i, i + 3), B(this, i + 1, i + 2);
389
389
  return this;
390
390
  }, f.prototype.swap64 = function() {
391
391
  const n = this.length;
392
392
  if (n % 8 !== 0)
393
393
  throw new RangeError("Buffer size must be a multiple of 64-bits");
394
394
  for (let i = 0; i < n; i += 8)
395
- x(this, i, i + 7), x(this, i + 1, i + 6), x(this, i + 2, i + 5), x(this, i + 3, i + 4);
395
+ B(this, i, i + 7), B(this, i + 1, i + 6), B(this, i + 2, i + 5), B(this, i + 3, i + 4);
396
396
  return this;
397
397
  }, f.prototype.toString = function() {
398
398
  const n = this.length;
399
- return n === 0 ? "" : arguments.length === 0 ? le(this, 0, n) : ee.apply(this, arguments);
399
+ return n === 0 ? "" : arguments.length === 0 ? fe(this, 0, n) : ee.apply(this, arguments);
400
400
  }, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
401
401
  if (!f.isBuffer(n))
402
402
  throw new TypeError("Argument must be a Buffer");
@@ -406,7 +406,7 @@ fr.write = function(t, e, r, o, s, u) {
406
406
  const i = t.INSPECT_MAX_BYTES;
407
407
  return n = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (n += " ... "), "<Buffer " + n + ">";
408
408
  }, o && (f.prototype[o] = f.prototype.inspect), f.prototype.compare = function(n, i, c, h, y) {
409
- if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), !f.isBuffer(n))
409
+ if (ge(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), !f.isBuffer(n))
410
410
  throw new TypeError(
411
411
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof n
412
412
  );
@@ -442,12 +442,12 @@ fr.write = function(t, e, r, o, s, u) {
442
442
  else
443
443
  return -1;
444
444
  if (typeof n == "string" && (n = f.from(n, c)), f.isBuffer(n))
445
- return n.length === 0 ? -1 : B(a, n, i, c, h);
445
+ return n.length === 0 ? -1 : O(a, n, i, c, h);
446
446
  if (typeof n == "number")
447
- return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : B(a, [n], i, c, h);
447
+ return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : O(a, [n], i, c, h);
448
448
  throw new TypeError("val must be string, number or Buffer");
449
449
  }
450
- function B(a, n, i, c, h) {
450
+ function O(a, n, i, c, h) {
451
451
  let y = 1, m = a.length, _ = n.length;
452
452
  if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) {
453
453
  if (a.length < 2 || n.length < 2)
@@ -502,16 +502,16 @@ fr.write = function(t, e, r, o, s, u) {
502
502
  return m;
503
503
  }
504
504
  function ne(a, n, i, c) {
505
- return ot(it(n, a.length - i), a, i, c);
505
+ return it(nt(n, a.length - i), a, i, c);
506
506
  }
507
507
  function _e(a, n, i, c) {
508
- return ot(Pt(n), a, i, c);
508
+ return it(Pt(n), a, i, c);
509
509
  }
510
510
  function Se(a, n, i, c) {
511
- return ot(ht(n), a, i, c);
511
+ return it(ht(n), a, i, c);
512
512
  }
513
- function fe(a, n, i, c) {
514
- return ot(v(n, a.length - i), a, i, c);
513
+ function ce(a, n, i, c) {
514
+ return it(v(n, a.length - i), a, i, c);
515
515
  }
516
516
  f.prototype.write = function(n, i, c, h) {
517
517
  if (i === void 0)
@@ -546,7 +546,7 @@ fr.write = function(t, e, r, o, s, u) {
546
546
  case "ucs-2":
547
547
  case "utf16le":
548
548
  case "utf-16le":
549
- return fe(this, n, i, c);
549
+ return ce(this, n, i, c);
550
550
  default:
551
551
  if (m)
552
552
  throw new TypeError("Unknown encoding: " + h);
@@ -558,10 +558,10 @@ fr.write = function(t, e, r, o, s, u) {
558
558
  data: Array.prototype.slice.call(this._arr || this, 0)
559
559
  };
560
560
  };
561
- function rt(a, n, i) {
561
+ function tt(a, n, i) {
562
562
  return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
563
563
  }
564
- function le(a, n, i) {
564
+ function fe(a, n, i) {
565
565
  i = Math.min(a.length, i);
566
566
  const c = [];
567
567
  let h = n;
@@ -586,41 +586,41 @@ fr.write = function(t, e, r, o, s, u) {
586
586
  }
587
587
  m === null ? (m = 65533, _ = 1) : m > 65535 && (m -= 65536, c.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), c.push(m), h += _;
588
588
  }
589
- return Oe(c);
589
+ return xe(c);
590
590
  }
591
- const Be = 4096;
592
- function Oe(a) {
591
+ const Oe = 4096;
592
+ function xe(a) {
593
593
  const n = a.length;
594
- if (n <= Be)
594
+ if (n <= Oe)
595
595
  return String.fromCharCode.apply(String, a);
596
596
  let i = "", c = 0;
597
597
  for (; c < n; )
598
598
  i += String.fromCharCode.apply(
599
599
  String,
600
- a.slice(c, c += Be)
600
+ a.slice(c, c += Oe)
601
601
  );
602
602
  return i;
603
603
  }
604
- function nt(a, n, i) {
604
+ function rt(a, n, i) {
605
605
  let c = "";
606
606
  i = Math.min(a.length, i);
607
607
  for (let h = n; h < i; ++h)
608
608
  c += String.fromCharCode(a[h] & 127);
609
609
  return c;
610
610
  }
611
- function xe(a, n, i) {
611
+ function Be(a, n, i) {
612
612
  let c = "";
613
613
  i = Math.min(a.length, i);
614
614
  for (let h = n; h < i; ++h)
615
615
  c += String.fromCharCode(a[h]);
616
616
  return c;
617
617
  }
618
- function he(a, n, i) {
618
+ function le(a, n, i) {
619
619
  const c = a.length;
620
620
  (!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
621
621
  let h = "";
622
622
  for (let y = n; y < i; ++y)
623
- h += Dn[a[y]];
623
+ h += $n[a[y]];
624
624
  return h;
625
625
  }
626
626
  function ke(a, n, i) {
@@ -665,13 +665,13 @@ fr.write = function(t, e, r, o, s, u) {
665
665
  }, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
666
666
  return n = n >>> 0, i || V(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
667
667
  }, f.prototype.readBigUInt64LE = Pe(function(n) {
668
- n = n >>> 0, pe(n, "offset");
668
+ n = n >>> 0, he(n, "offset");
669
669
  const i = this[n], c = this[n + 7];
670
670
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
671
671
  const h = i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + c * 2 ** 24;
672
672
  return BigInt(h) + (BigInt(y) << BigInt(32));
673
673
  }), f.prototype.readBigUInt64BE = Pe(function(n) {
674
- n = n >>> 0, pe(n, "offset");
674
+ n = n >>> 0, he(n, "offset");
675
675
  const i = this[n], c = this[n + 7];
676
676
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
677
677
  const h = i * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c;
@@ -703,13 +703,13 @@ fr.write = function(t, e, r, o, s, u) {
703
703
  }, f.prototype.readInt32BE = function(n, i) {
704
704
  return n = n >>> 0, i || V(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
705
705
  }, f.prototype.readBigInt64LE = Pe(function(n) {
706
- n = n >>> 0, pe(n, "offset");
706
+ n = n >>> 0, he(n, "offset");
707
707
  const i = this[n], c = this[n + 7];
708
708
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
709
709
  const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
710
710
  return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
711
711
  }), f.prototype.readBigInt64BE = Pe(function(n) {
712
- n = n >>> 0, pe(n, "offset");
712
+ n = n >>> 0, he(n, "offset");
713
713
  const i = this[n], c = this[n + 7];
714
714
  (i === void 0 || c === void 0) && ie(n, this.length - 8);
715
715
  const h = (i << 24) + // Overflow
@@ -762,14 +762,14 @@ fr.write = function(t, e, r, o, s, u) {
762
762
  return n = +n, i = i >>> 0, c || p(this, n, i, 4, 4294967295, 0), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
763
763
  };
764
764
  function b(a, n, i, c, h) {
765
- ge(n, c, h, a, i, 7);
765
+ ye(n, c, h, a, i, 7);
766
766
  let y = Number(n & BigInt(4294967295));
767
767
  a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
768
768
  let m = Number(n >> BigInt(32) & BigInt(4294967295));
769
769
  return a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, i;
770
770
  }
771
771
  function S(a, n, i, c, h) {
772
- ge(n, c, h, a, i, 7);
772
+ ye(n, c, h, a, i, 7);
773
773
  let y = Number(n & BigInt(4294967295));
774
774
  a[i + 7] = y, y = y >> 8, a[i + 6] = y, y = y >> 8, a[i + 5] = y, y = y >> 8, a[i + 4] = y;
775
775
  let m = Number(n >> BigInt(32) & BigInt(4294967295));
@@ -882,7 +882,7 @@ fr.write = function(t, e, r, o, s, u) {
882
882
  return this;
883
883
  };
884
884
  const F = {};
885
- function O(a, n, i) {
885
+ function x(a, n, i) {
886
886
  F[a] = class extends i {
887
887
  constructor() {
888
888
  super(), Object.defineProperty(this, "message", {
@@ -907,19 +907,19 @@ fr.write = function(t, e, r, o, s, u) {
907
907
  }
908
908
  };
909
909
  }
910
- O(
910
+ x(
911
911
  "ERR_BUFFER_OUT_OF_BOUNDS",
912
912
  function(a) {
913
913
  return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
914
914
  },
915
915
  RangeError
916
- ), O(
916
+ ), x(
917
917
  "ERR_INVALID_ARG_TYPE",
918
918
  function(a, n) {
919
919
  return `The "${a}" argument must be of type number. Received type ${typeof n}`;
920
920
  },
921
921
  TypeError
922
- ), O(
922
+ ), x(
923
923
  "ERR_OUT_OF_RANGE",
924
924
  function(a, n, i) {
925
925
  let c = `The value of "${a}" is out of range.`, h = i;
@@ -935,9 +935,9 @@ fr.write = function(t, e, r, o, s, u) {
935
935
  return `${a.slice(0, i)}${n}`;
936
936
  }
937
937
  function Y(a, n, i) {
938
- pe(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
938
+ he(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
939
939
  }
940
- function ge(a, n, i, c, h, y) {
940
+ function ye(a, n, i, c, h, y) {
941
941
  if (a > i || a < n) {
942
942
  const m = typeof n == "bigint" ? "n" : "";
943
943
  let _;
@@ -945,26 +945,26 @@ fr.write = function(t, e, r, o, s, u) {
945
945
  }
946
946
  Y(c, h, y);
947
947
  }
948
- function pe(a, n) {
948
+ function he(a, n) {
949
949
  if (typeof a != "number")
950
950
  throw new F.ERR_INVALID_ARG_TYPE(n, "number", a);
951
951
  }
952
952
  function ie(a, n, i) {
953
- throw Math.floor(a) !== a ? (pe(a, i), new F.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new F.ERR_BUFFER_OUT_OF_BOUNDS() : new F.ERR_OUT_OF_RANGE(
953
+ throw Math.floor(a) !== a ? (he(a, i), new F.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new F.ERR_BUFFER_OUT_OF_BOUNDS() : new F.ERR_OUT_OF_RANGE(
954
954
  i || "offset",
955
955
  `>= ${i ? 1 : 0} and <= ${n}`,
956
956
  a
957
957
  );
958
958
  }
959
- const De = /[^+/0-9A-Za-z-_]/g;
959
+ const je = /[^+/0-9A-Za-z-_]/g;
960
960
  function lt(a) {
961
- if (a = a.split("=")[0], a = a.trim().replace(De, ""), a.length < 2)
961
+ if (a = a.split("=")[0], a = a.trim().replace(je, ""), a.length < 2)
962
962
  return "";
963
963
  for (; a.length % 4 !== 0; )
964
964
  a = a + "=";
965
965
  return a;
966
966
  }
967
- function it(a, n) {
967
+ function nt(a, n) {
968
968
  n = n || 1 / 0;
969
969
  let i;
970
970
  const c = a.length;
@@ -1039,19 +1039,19 @@ fr.write = function(t, e, r, o, s, u) {
1039
1039
  function ht(a) {
1040
1040
  return e.toByteArray(lt(a));
1041
1041
  }
1042
- function ot(a, n, i, c) {
1042
+ function it(a, n, i, c) {
1043
1043
  let h;
1044
1044
  for (h = 0; h < c && !(h + i >= n.length || h >= a.length); ++h)
1045
1045
  n[h + i] = a[h];
1046
1046
  return h;
1047
1047
  }
1048
- function me(a, n) {
1048
+ function ge(a, n) {
1049
1049
  return a instanceof n || a != null && a.constructor != null && a.constructor.name != null && a.constructor.name === n.name;
1050
1050
  }
1051
1051
  function Rt(a) {
1052
1052
  return a !== a;
1053
1053
  }
1054
- const Dn = function() {
1054
+ const $n = function() {
1055
1055
  const a = "0123456789abcdef", n = new Array(256);
1056
1056
  for (let i = 0; i < 16; ++i) {
1057
1057
  const c = i * 16;
@@ -1061,13 +1061,13 @@ fr.write = function(t, e, r, o, s, u) {
1061
1061
  return n;
1062
1062
  }();
1063
1063
  function Pe(a) {
1064
- return typeof BigInt > "u" ? jn : a;
1064
+ return typeof BigInt > "u" ? Dn : a;
1065
1065
  }
1066
- function jn() {
1066
+ function Dn() {
1067
1067
  throw new Error("BigInt not supported");
1068
1068
  }
1069
- })(Xr);
1070
- var en = { exports: {} }, K = en.exports = {}, be, we;
1069
+ })(Jr);
1070
+ var Xr = { exports: {} }, K = Xr.exports = {}, me, be;
1071
1071
  function Xt() {
1072
1072
  throw new Error("setTimeout has not been defined");
1073
1073
  }
@@ -1076,60 +1076,60 @@ function Zt() {
1076
1076
  }
1077
1077
  (function() {
1078
1078
  try {
1079
- typeof setTimeout == "function" ? be = setTimeout : be = Xt;
1079
+ typeof setTimeout == "function" ? me = setTimeout : me = Xt;
1080
1080
  } catch {
1081
- be = Xt;
1081
+ me = Xt;
1082
1082
  }
1083
1083
  try {
1084
- typeof clearTimeout == "function" ? we = clearTimeout : we = Zt;
1084
+ typeof clearTimeout == "function" ? be = clearTimeout : be = Zt;
1085
1085
  } catch {
1086
- we = Zt;
1086
+ be = Zt;
1087
1087
  }
1088
1088
  })();
1089
- function tn(t) {
1090
- if (be === setTimeout)
1089
+ function Zr(t) {
1090
+ if (me === setTimeout)
1091
1091
  return setTimeout(t, 0);
1092
- if ((be === Xt || !be) && setTimeout)
1093
- return be = setTimeout, setTimeout(t, 0);
1092
+ if ((me === Xt || !me) && setTimeout)
1093
+ return me = setTimeout, setTimeout(t, 0);
1094
1094
  try {
1095
- return be(t, 0);
1095
+ return me(t, 0);
1096
1096
  } catch {
1097
1097
  try {
1098
- return be.call(null, t, 0);
1098
+ return me.call(null, t, 0);
1099
1099
  } catch {
1100
- return be.call(this, t, 0);
1100
+ return me.call(this, t, 0);
1101
1101
  }
1102
1102
  }
1103
1103
  }
1104
- function ii(t) {
1105
- if (we === clearTimeout)
1104
+ function ni(t) {
1105
+ if (be === clearTimeout)
1106
1106
  return clearTimeout(t);
1107
- if ((we === Zt || !we) && clearTimeout)
1108
- return we = clearTimeout, clearTimeout(t);
1107
+ if ((be === Zt || !be) && clearTimeout)
1108
+ return be = clearTimeout, clearTimeout(t);
1109
1109
  try {
1110
- return we(t);
1110
+ return be(t);
1111
1111
  } catch {
1112
1112
  try {
1113
- return we.call(null, t);
1113
+ return be.call(null, t);
1114
1114
  } catch {
1115
- return we.call(this, t);
1115
+ return be.call(this, t);
1116
1116
  }
1117
1117
  }
1118
1118
  }
1119
- var Te = [], Ke = !1, Ne, pt = -1;
1120
- function oi() {
1121
- !Ke || !Ne || (Ke = !1, Ne.length ? Te = Ne.concat(Te) : pt = -1, Te.length && rn());
1119
+ var Ce = [], Ke = !1, Ne, pt = -1;
1120
+ function ii() {
1121
+ !Ke || !Ne || (Ke = !1, Ne.length ? Ce = Ne.concat(Ce) : pt = -1, Ce.length && en());
1122
1122
  }
1123
- function rn() {
1123
+ function en() {
1124
1124
  if (!Ke) {
1125
- var t = tn(oi);
1125
+ var t = Zr(ii);
1126
1126
  Ke = !0;
1127
- for (var e = Te.length; e; ) {
1128
- for (Ne = Te, Te = []; ++pt < e; )
1127
+ for (var e = Ce.length; e; ) {
1128
+ for (Ne = Ce, Ce = []; ++pt < e; )
1129
1129
  Ne && Ne[pt].run();
1130
- pt = -1, e = Te.length;
1130
+ pt = -1, e = Ce.length;
1131
1131
  }
1132
- Ne = null, Ke = !1, ii(t);
1132
+ Ne = null, Ke = !1, ni(t);
1133
1133
  }
1134
1134
  }
1135
1135
  K.nextTick = function(t) {
@@ -1137,12 +1137,12 @@ K.nextTick = function(t) {
1137
1137
  if (arguments.length > 1)
1138
1138
  for (var r = 1; r < arguments.length; r++)
1139
1139
  e[r - 1] = arguments[r];
1140
- Te.push(new nn(t, e)), Te.length === 1 && !Ke && tn(rn);
1140
+ Ce.push(new tn(t, e)), Ce.length === 1 && !Ke && Zr(en);
1141
1141
  };
1142
- function nn(t, e) {
1142
+ function tn(t, e) {
1143
1143
  this.fun = t, this.array = e;
1144
1144
  }
1145
- nn.prototype.run = function() {
1145
+ tn.prototype.run = function() {
1146
1146
  this.fun.apply(null, this.array);
1147
1147
  };
1148
1148
  K.title = "browser";
@@ -1151,17 +1151,17 @@ K.env = {};
1151
1151
  K.argv = [];
1152
1152
  K.version = "";
1153
1153
  K.versions = {};
1154
- function Ce() {
1154
+ function Te() {
1155
1155
  }
1156
- K.on = Ce;
1157
- K.addListener = Ce;
1158
- K.once = Ce;
1159
- K.off = Ce;
1160
- K.removeListener = Ce;
1161
- K.removeAllListeners = Ce;
1162
- K.emit = Ce;
1163
- K.prependListener = Ce;
1164
- K.prependOnceListener = Ce;
1156
+ K.on = Te;
1157
+ K.addListener = Te;
1158
+ K.once = Te;
1159
+ K.off = Te;
1160
+ K.removeListener = Te;
1161
+ K.removeAllListeners = Te;
1162
+ K.emit = Te;
1163
+ K.prependListener = Te;
1164
+ K.prependOnceListener = Te;
1165
1165
  K.listeners = function(t) {
1166
1166
  return [];
1167
1167
  };
@@ -1177,16 +1177,16 @@ K.chdir = function(t) {
1177
1177
  K.umask = function() {
1178
1178
  return 0;
1179
1179
  };
1180
- var si = en.exports;
1180
+ var oi = Xr.exports;
1181
1181
  (function(t) {
1182
1182
  Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
1183
- const e = Xr, r = si, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1183
+ const e = Jr, r = oi, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1184
1184
  Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
1185
- })(C);
1186
- class ai {
1185
+ })(T);
1186
+ class si {
1187
1187
  }
1188
1188
  window.slStore = /* @__PURE__ */ Object.create(null);
1189
- class Bt {
1189
+ class Ot {
1190
1190
  /**
1191
1191
  * store instance (nanostores)
1192
1192
  */
@@ -1202,33 +1202,33 @@ class Bt {
1202
1202
  return this.store;
1203
1203
  }
1204
1204
  }
1205
- const ui = (t) => {
1205
+ const ai = (t) => {
1206
1206
  const e = Object.keys(t);
1207
- return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1207
+ return fr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1208
1208
  };
1209
- class at extends Bt {
1209
+ class at extends Ot {
1210
1210
  getValues = () => this.getStore().get();
1211
1211
  getValue = (e) => this.getStore().get()[e];
1212
1212
  setValue = (e, r) => this.getStore().setKey(e, r);
1213
1213
  subscribe = (...e) => this.getStore().subscribe(...e);
1214
1214
  unsubscribe = () => this.getStore().off();
1215
1215
  }
1216
- const He = (t) => Mn(t);
1216
+ const Le = (t) => jn(t);
1217
1217
  var Ie;
1218
1218
  (function(t) {
1219
1219
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
1220
1220
  })(Ie || (Ie = {}));
1221
- const ci = {
1221
+ const ui = {
1222
1222
  [ae.BETTING]: "betting",
1223
1223
  [ae.GAMES]: "games",
1224
1224
  [ae.PUBLIC_CHAT]: "publicChat",
1225
1225
  [ae.TWITTER]: "twitter"
1226
1226
  };
1227
- var Le;
1227
+ var Ue;
1228
1228
  (function(t) {
1229
1229
  t.Ready = "ready", t.Suspended = "suspended";
1230
- })(Le || (Le = {}));
1231
- class lr {
1230
+ })(Ue || (Ue = {}));
1231
+ class hr {
1232
1232
  status;
1233
1233
  source;
1234
1234
  config;
@@ -1236,7 +1236,7 @@ class lr {
1236
1236
  listeners = /* @__PURE__ */ new Set();
1237
1237
  settingsKey;
1238
1238
  constructor({ settings: e, ...r }, o) {
1239
- this.settingsKey = ci[r.type], this.status = Tt(Le.Suspended), this.config = new at(He(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(He(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(He({}), `feature:settings:${this.settingsKey}`), this.source = o;
1239
+ this.settingsKey = ui[r.type], this.status = Ct(Ue.Suspended), this.config = new at(Le(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Le(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Le({}), `feature:settings:${this.settingsKey}`), this.source = o;
1240
1240
  }
1241
1241
  get featureConfig() {
1242
1242
  return this.config.getStore();
@@ -1248,10 +1248,10 @@ class lr {
1248
1248
  this.listeners.add(e);
1249
1249
  }
1250
1250
  enable = () => {
1251
- this.status.set(Le.Ready);
1251
+ this.status.set(Ue.Ready);
1252
1252
  };
1253
1253
  disable = () => {
1254
- this.status.set(Le.Suspended);
1254
+ this.status.set(Ue.Suspended);
1255
1255
  };
1256
1256
  setFeatureConfig = ({ settings: e, ...r }) => {
1257
1257
  let o;
@@ -1278,7 +1278,7 @@ class lr {
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
- class ce extends Bt {
1281
+ class ue extends Ot {
1282
1282
  getValue = () => this.getStore().get();
1283
1283
  getValues() {
1284
1284
  throw new Error("not implemented");
@@ -1293,11 +1293,11 @@ class ce extends Bt {
1293
1293
  return this.getStore().get();
1294
1294
  }
1295
1295
  }
1296
- const te = (t) => Tt(t), hr = (t, e) => Hr(t, e);
1297
- class ue extends Bt {
1296
+ const te = (t) => Ct(t), ci = (t, e) => fr(t, e);
1297
+ class pe extends Ot {
1298
1298
  atomStore;
1299
1299
  constructor(e, r, o) {
1300
- super(e, `api:${r}`), this.atomStore = Tt(), o && e.subscribe((s) => {
1300
+ super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
1301
1301
  this.atomStore.set(o(s));
1302
1302
  });
1303
1303
  }
@@ -1391,7 +1391,7 @@ class hi {
1391
1391
  ts: /* @__PURE__ */ new Date(),
1392
1392
  log: []
1393
1393
  };
1394
- this.state = new at(He(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ce(te(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1394
+ this.state = new at(Le(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ue(te(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1395
1395
  this.reconnect();
1396
1396
  }), this.updateState(Ae.Ready);
1397
1397
  }
@@ -1433,7 +1433,7 @@ class hi {
1433
1433
  this.addStateLog(`data routed to ${this.listeners.size} listeners`);
1434
1434
  };
1435
1435
  onStreamError = (e) => {
1436
- e !== void 0 && (e.code !== Vn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1436
+ e !== void 0 && (e.code !== Mn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1437
1437
  };
1438
1438
  }
1439
1439
  class pi {
@@ -1451,11 +1451,11 @@ class pi {
1451
1451
  callbackClients;
1452
1452
  subscriptions;
1453
1453
  constructor(e) {
1454
- this.host = e, this.$headers = new at(He({
1455
- "sl-device-id": C.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
1454
+ this.host = e, this.$headers = new at(Le({
1455
+ "sl-device-id": T.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
1456
1456
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
1457
- const [r, o, s] = zn();
1458
- this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Qn({
1457
+ const [r, o, s] = Qn();
1458
+ this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Gn({
1459
1459
  baseUrl: e,
1460
1460
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1461
1461
  // @ts-ignore
@@ -1491,14 +1491,14 @@ class pi {
1491
1491
  const r = e.typeName;
1492
1492
  if (this.clients.has(r))
1493
1493
  return this.clients.get(r);
1494
- const o = qn(e, this.transport);
1494
+ const o = Vn(e, this.transport);
1495
1495
  return this.clients.set(r, o), o;
1496
1496
  };
1497
1497
  getCallbackClient = (e) => {
1498
1498
  const r = e.typeName;
1499
1499
  if (this.callbackClients.has(r))
1500
1500
  return this.callbackClients.get(r);
1501
- const o = Gn(e, this.transport);
1501
+ const o = qn(e, this.transport);
1502
1502
  return this.callbackClients.set(r, o), o;
1503
1503
  };
1504
1504
  // create unary client, used for query request
@@ -1515,8 +1515,8 @@ class pi {
1515
1515
  setSdkKey = (e) => {
1516
1516
  this.$headers.setValue("sdk", e);
1517
1517
  };
1518
- setAuth = (e) => {
1519
- this.$headers.setValue("authorization", e);
1518
+ setAuth = (e, r) => {
1519
+ this.$headers.setValue("authorization", e), this.$headers.setValue("sl-user-id", r);
1520
1520
  };
1521
1521
  setHeader = (e, r) => this.$headers.setValue(e, r);
1522
1522
  getHeader = (e) => this.$headers.getValue(e);
@@ -1534,7 +1534,7 @@ class pi {
1534
1534
  };
1535
1535
  }
1536
1536
  const di = (t, e) => {
1537
- const { client: r, queryKey: o } = e.createPromiseClient(Kn, {
1537
+ const { client: r, queryKey: o } = e.createPromiseClient(zn, {
1538
1538
  method: "retrieveEventId",
1539
1539
  params: [t]
1540
1540
  });
@@ -1552,7 +1552,7 @@ const di = (t, e) => {
1552
1552
  }
1553
1553
  });
1554
1554
  }, yi = (t, e) => {
1555
- const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "getStream", params: [t] });
1555
+ const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getStream", params: [t] });
1556
1556
  return e.nanoquery.createFetcherStore(o, {
1557
1557
  fetcher: async (s, u, l) => l ? (await r.getStream({
1558
1558
  id: l
@@ -1560,20 +1560,20 @@ const di = (t, e) => {
1560
1560
  })).data?.attributes : void 0
1561
1561
  });
1562
1562
  }, gi = (t, e) => {
1563
- const { queryKey: r, client: o } = e.createPromiseClient(Wr, { method: "me", params: [t] });
1563
+ const { queryKey: r, client: o } = e.createPromiseClient(Kr, { method: "me", params: [t] });
1564
1564
  return e.nanoquery.createFetcherStore(r, {
1565
1565
  fetcher: () => o.me({})
1566
1566
  });
1567
1567
  }, mi = (t) => {
1568
- const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
1568
+ const { client: e } = t.createPromiseClient(Kr, { method: "bypassAuth" });
1569
1569
  return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
1570
1570
  }, bi = (t, e) => {
1571
- const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "get", params: [t] });
1571
+ const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "get", params: [t] });
1572
1572
  return e.nanoquery.createFetcherStore(o, {
1573
1573
  fetcher: async () => (await r.get({})).data?.attributes
1574
1574
  });
1575
1575
  }, wi = (t, e) => {
1576
- const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "getOrganization", params: [t] });
1576
+ const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getOrganization", params: [t] });
1577
1577
  return e.nanoquery.createFetcherStore(o, {
1578
1578
  fetcher: async () => {
1579
1579
  const s = await r.getOrganization({});
@@ -1584,7 +1584,7 @@ const di = (t, e) => {
1584
1584
  }
1585
1585
  });
1586
1586
  }, vi = (t, e) => {
1587
- const { client: r, queryKey: o } = e.createPromiseClient(Ct, {
1587
+ const { client: r, queryKey: o } = e.createPromiseClient(Tt, {
1588
1588
  method: "getOrganizationAdvertising",
1589
1589
  params: [t]
1590
1590
  });
@@ -1621,7 +1621,7 @@ var Ee;
1621
1621
  (function(t) {
1622
1622
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
1623
1623
  })(Ee || (Ee = {}));
1624
- class Ge extends pr {
1624
+ class Qe extends pr {
1625
1625
  constructor() {
1626
1626
  super("user");
1627
1627
  }
@@ -1649,7 +1649,7 @@ var Fe;
1649
1649
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
1650
1650
  })(Fe || (Fe = {}));
1651
1651
  const Ai = (t) => {
1652
- const e = new Ge(), r = new ce(te(e.getExternalToken()), "userKey"), o = new ce(te(e.getToken()), "userToken"), s = new ue(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new ue(bi(o.getStore(), t), "userSettings");
1652
+ const e = new Qe(), r = new ue(te(e.getExternalToken()), "userKey"), o = new ue(te(e.getToken()), "userToken"), s = new pe(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new pe(bi(o.getStore(), t), "userSettings");
1653
1653
  return {
1654
1654
  userKey: r,
1655
1655
  userToken: o,
@@ -1657,7 +1657,7 @@ const Ai = (t) => {
1657
1657
  userSettings: u
1658
1658
  };
1659
1659
  }, Ei = (t) => {
1660
- const e = new ce(te(void 0), "providerStreamId"), r = new ue(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new ue(yi(r.getAtomStore(), t), "streamSettings");
1660
+ const e = new ue(te(void 0), "providerStreamId"), r = new pe(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(yi(r.getAtomStore(), t), "streamSettings");
1661
1661
  return r.getAtomStore().listen((s) => {
1662
1662
  (s === "" || s === void 0) && o.getStore().mutate(void 0);
1663
1663
  }), {
@@ -1666,7 +1666,7 @@ const Ai = (t) => {
1666
1666
  streamSettings: o
1667
1667
  };
1668
1668
  }, Ii = (t) => {
1669
- const e = new ce(te(void 0), "enabled"), r = new ce(te(Fe.DISABLED), "status"), o = new ue(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new ue(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
1669
+ const e = new ue(te(void 0), "enabled"), r = new ue(te(Fe.DISABLED), "status"), o = new pe(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new pe(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
1670
1670
  return {
1671
1671
  enabled: e,
1672
1672
  status: r,
@@ -1681,10 +1681,10 @@ const Ai = (t) => {
1681
1681
  organizationAdvertising: s
1682
1682
  };
1683
1683
  };
1684
- class Fi extends Bt {
1684
+ class Fi extends Ot {
1685
1685
  stores;
1686
1686
  constructor(e) {
1687
- const r = Ii(e), o = ui(r);
1687
+ const r = Ii(e), o = ai(r);
1688
1688
  super(o, "core"), this.stores = r;
1689
1689
  }
1690
1690
  getValue() {
@@ -1705,7 +1705,7 @@ class Fi extends Bt {
1705
1705
  };
1706
1706
  unsubscribe = () => this.getStore().off();
1707
1707
  }
1708
- class Ti extends ai {
1708
+ class Ci extends si {
1709
1709
  $coreStore;
1710
1710
  transport;
1711
1711
  bypassLogin;
@@ -1721,25 +1721,25 @@ class Ti extends ai {
1721
1721
  */
1722
1722
  login = async (e, r) => {
1723
1723
  this.$coreStore.getValues().userKey.setValue(r);
1724
- const o = await this.bypassLogin({ schema: e, userKey: r, init: !1 }), s = o.meta?.jwt;
1725
- if (!s)
1724
+ const o = await this.bypassLogin({ schema: e, userKey: r, init: !1 }), s = o.meta?.jwt, u = o.data?.id;
1725
+ if (!s || !u)
1726
1726
  throw new Error("internal: token missing");
1727
- return this.$coreStore.getValues().user.getStore().mutate(o), this.saveToken(s), s;
1727
+ return this.$coreStore.getValues().user.getStore().mutate(o), this.saveUser(s, u), s;
1728
1728
  };
1729
1729
  isAuthenticated = () => this.me();
1730
1730
  /**
1731
1731
  * Logout user. Clears the all user data from the store.
1732
1732
  */
1733
1733
  logout = () => {
1734
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth(""), new Ge().clear();
1734
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Qe().clear();
1735
1735
  };
1736
1736
  /**
1737
1737
  * Soft logout, only clears the StreamLayer user data from the store.
1738
1738
  * Does not clear the external token. And automatically tries to re-login by external token.
1739
1739
  */
1740
1740
  softLogout = () => {
1741
- const e = new Ge();
1742
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth(""), e.setToken(""), this.reLogin();
1741
+ const e = new Qe();
1742
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
1743
1743
  };
1744
1744
  /**
1745
1745
  * Try to re-login.
@@ -1749,9 +1749,14 @@ class Ti extends ai {
1749
1749
  * - If no one of the above is true, then logout.
1750
1750
  */
1751
1751
  reLogin = () => {
1752
- const e = new Ge(), r = e.getToken(), o = e.getExternalToken();
1752
+ const e = new Qe(), r = e.getToken(), o = e.getExternalToken();
1753
1753
  if (this.$coreStore.getValues().userKey.setValue(o), this.$coreStore.getValues().userToken.setValue(r), r)
1754
- return this.saveToken(r), this.me();
1754
+ return this.saveUser(r, ""), this.me().then((s) => {
1755
+ if (console.log("user", s), s?.id) {
1756
+ const u = s.id;
1757
+ this.saveUser(r, u);
1758
+ }
1759
+ });
1755
1760
  if (o && !r) {
1756
1761
  const s = e.getSchema();
1757
1762
  s && o && this.login(s, o).catch(() => {
@@ -1762,8 +1767,8 @@ class Ti extends ai {
1762
1767
  /**
1763
1768
  * Write token to the Transport and UserStore
1764
1769
  */
1765
- saveToken = (e) => {
1766
- this.transport.setAuth(e), this.$coreStore.getValues().userToken.setValue(e), new Ge().setToken(e);
1770
+ saveUser = (e, r) => {
1771
+ this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Qe().setToken(e);
1767
1772
  };
1768
1773
  /**
1769
1774
  * Add interceptor to the Transport to handle 401 and 403 errors.
@@ -1779,19 +1784,19 @@ class Ti extends ai {
1779
1784
  });
1780
1785
  };
1781
1786
  }
1782
- const st = new Ge(), Ci = (t, e, r) => {
1783
- t.auth = new Ti(t.store, t.transport), t.stores.status.listen((o) => {
1787
+ const ot = new Qe(), Ti = (t, e, r) => {
1788
+ t.auth = new Ci(t.store, t.transport), t.stores.status.listen((o) => {
1784
1789
  o === Fe.READY && t.auth.reLogin();
1785
1790
  }), t.sdk.authorizationBypass = async (o, s) => {
1786
- st.getSchema() === o && st.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), st.setSchema(o), st.setExternalToken(s));
1791
+ ot.getSchema() === o && ot.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), ot.setSchema(o), ot.setExternalToken(s));
1787
1792
  }, t.sdk.logout = () => {
1788
- t.auth.logout(), st.clear();
1793
+ t.auth.logout(), ot.clear();
1789
1794
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
1790
1795
  }, _i = (t, e, r) => {
1791
1796
  t.store = new Fi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.storeUnsubscribe = () => {
1792
1797
  t.store.unsubscribe();
1793
1798
  }, r();
1794
- }, Bi = (t, e, r) => {
1799
+ }, Oi = (t, e, r) => {
1795
1800
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
1796
1801
  if (t.stores.enabled.get() === "on")
1797
1802
  return { enabled: !0 };
@@ -1807,10 +1812,10 @@ const st = new Ge(), Ci = (t, e, r) => {
1807
1812
  }, t.sdk.createEventSession = (o) => {
1808
1813
  t.stores.providerStreamId.setValue(o);
1809
1814
  }, r();
1810
- }, Oi = Hn({
1815
+ }, xi = Kn({
1811
1816
  level: "trace"
1812
- }), on = (t, e) => Oi.child({ name: t }, e), xi = (t, e, r) => {
1813
- const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
1817
+ }), rn = (t, e) => xi.child({ name: t }, e), Bi = (t, e, r) => {
1818
+ const { client: o, queryKey: s } = r.createPromiseClient(Hr, {
1814
1819
  method: "summary",
1815
1820
  params: [t, e]
1816
1821
  });
@@ -1821,17 +1826,17 @@ const st = new Ge(), Ci = (t, e, r) => {
1821
1826
  })).data?.attributes
1822
1827
  });
1823
1828
  }, ki = (t) => {
1824
- const { client: e } = t.createPromiseClient(Jr, { method: "list" });
1829
+ const { client: e } = t.createPromiseClient(Hr, { method: "list" });
1825
1830
  return (r) => e.list(r);
1826
1831
  }, Pi = (t, e) => {
1827
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "get", params: [t] });
1832
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
1828
1833
  return e.nanoquery.createFetcherStore(o, {
1829
1834
  fetcher: async (s, u, l) => (await r.get({
1830
1835
  eventId: l
1831
1836
  })).data?.attributes
1832
1837
  });
1833
1838
  }, Ri = (t, e) => {
1834
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "syncQuestion", params: [t] });
1839
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
1835
1840
  return e.nanoquery.createFetcherStore(o, {
1836
1841
  fetcher: async (s, u, l) => l ? (await r.syncQuestion({
1837
1842
  filter: {
@@ -1840,41 +1845,54 @@ const st = new Ge(), Ci = (t, e, r) => {
1840
1845
  })).data?.attributes : void 0
1841
1846
  });
1842
1847
  }, Ni = (t, e) => {
1843
- const { client: r } = e.createCallbackClient(de), o = Tt({ eventId: t.get() || "", feedId: "" });
1848
+ const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
1844
1849
  return t.subscribe((u = "") => {
1845
1850
  o.set({ eventId: u, feedId: "" });
1846
1851
  }), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
1847
1852
  }, Li = (t, e) => {
1848
- const { client: r } = e.createCallbackClient(de);
1853
+ const { client: r } = e.createCallbackClient(ve);
1849
1854
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
1850
- }, Ui = async (t, e) => {
1851
- const { client: r } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
1855
+ }, nn = async (t, e) => {
1856
+ const { client: r } = e.createPromiseClient(ve, { method: "questionByUser", params: [t] });
1852
1857
  return (await r.questionByUser({
1853
1858
  questionId: t
1854
1859
  })).data?.attributes?.question;
1855
- }, $i = (t, e) => {
1856
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
1857
- return e.nanoquery.createFetcherStore(o, {
1858
- fetcher: async (s, u, l) => (await r.questionByUser({
1859
- questionId: l
1860
- })).data?.attributes?.question
1861
- });
1862
- }, Di = (t, e) => {
1863
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "pickHistory", params: [t] });
1860
+ }, Ui = (t, e) => {
1861
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
1864
1862
  return e.nanoquery.createFetcherStore(o, {
1865
- fetcher: async (s, u, l) => l ? (await r.pickHistory({
1863
+ fetcher: async (s, u, l) => l ? (await r.list({
1866
1864
  eventId: l
1867
- })).data?.map(({ attributes: d }) => d) : []
1865
+ })).data : []
1868
1866
  });
1869
- }, ji = (t, e) => {
1870
- const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "insightHistory", params: [t] });
1867
+ }, $i = (t, e) => {
1868
+ const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
1871
1869
  return e.nanoquery.createFetcherStore(o, {
1872
1870
  fetcher: async (s, u, l) => l ? (await r.insightHistory({
1873
1871
  eventId: l
1874
1872
  })).data?.map(({ attributes: d }) => d) : void 0
1875
1873
  });
1876
- }, sn = (t) => (t.gamification || (t.gamification = new Mi(t)), t.gamification);
1877
- class Mi {
1874
+ }, Di = (t, e, r) => {
1875
+ const o = fr([e, r], (l, f) => {
1876
+ if (l && f.data)
1877
+ return f.data.find((d) => d.id === l);
1878
+ }), s = Le({
1879
+ data: void 0,
1880
+ loading: void 0,
1881
+ error: void 0
1882
+ });
1883
+ return o.subscribe(async (l) => {
1884
+ if (l && l.type === "question") {
1885
+ s.setKey("loading", !0);
1886
+ const f = await nn(l.id, t);
1887
+ s.set({ data: f, loading: !1 });
1888
+ return;
1889
+ }
1890
+ s.set({ data: void 0, loading: !1 });
1891
+ }), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
1892
+ s.set({ data: l });
1893
+ } };
1894
+ }, on = (t) => (t.gamification || (t.gamification = new ji(t)), t.gamification);
1895
+ class ji {
1878
1896
  /** sl event id */
1879
1897
  slStreamId;
1880
1898
  /** organization id */
@@ -1887,6 +1905,7 @@ class Mi {
1887
1905
  openedQuestion;
1888
1906
  /** last active question in feed */
1889
1907
  activeQuestionId;
1908
+ feedList;
1890
1909
  /** moderation id */
1891
1910
  moderationId;
1892
1911
  /** moderation */
@@ -1900,10 +1919,10 @@ class Mi {
1900
1919
  constructor(e) {
1901
1920
  if (e.gamification)
1902
1921
  throw new Error("GamificationBackground Singleton error");
1903
- this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ce(te(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(te(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ue(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.activeQuestionId = new ue(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = new ue($i(this.openedQuestionId, e.transport), "gamification:openedQuestion"), this.openedQuestionId.listen((r) => {
1922
+ this.log = rn("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ue(te(void 0), "moderationId").getStore(), this.openedQuestionId = new ue(te(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(Ui(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Di(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
1904
1923
  this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Li(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
1905
1924
  window.requestAnimationFrame(() => {
1906
- this.openedQuestion.getStore().mutate(o.data?.attributes?.question);
1925
+ this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
1907
1926
  });
1908
1927
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1909
1928
  }), this.feedSubscription = Ni(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
@@ -1941,7 +1960,7 @@ class Mi {
1941
1960
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1942
1961
  };
1943
1962
  }
1944
- class Vi {
1963
+ class Mi {
1945
1964
  notificationsList;
1946
1965
  notifications;
1947
1966
  store;
@@ -1951,7 +1970,7 @@ class Vi {
1951
1970
  options;
1952
1971
  logger;
1953
1972
  constructor(e) {
1954
- this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ce(te(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = hr(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
1973
+ this.options = e, this.logger = rn("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ue(te(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = ci(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
1955
1974
  }
1956
1975
  addToQueue = (e) => {
1957
1976
  if (this.store.has(e.id)) {
@@ -2015,7 +2034,7 @@ var wt;
2015
2034
  (function(t) {
2016
2035
  t.OPENED = "opened";
2017
2036
  })(wt || (wt = {}));
2018
- class qi extends pr {
2037
+ class Vi extends pr {
2019
2038
  constructor() {
2020
2039
  super("notification");
2021
2040
  }
@@ -2027,15 +2046,15 @@ class qi extends pr {
2027
2046
  this.clear();
2028
2047
  };
2029
2048
  }
2030
- var We;
2049
+ var He;
2031
2050
  (function(t) {
2032
2051
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
2033
- })(We || (We = {}));
2034
- class Gi {
2052
+ })(He || (He = {}));
2053
+ class qi {
2035
2054
  queue;
2036
2055
  storage;
2037
2056
  constructor(e = {}) {
2038
- this.storage = new qi(), this.queue = new Vi({ concurrency: 1, animationDelay: 300, ...e });
2057
+ this.storage = new Vi(), this.queue = new Mi({ concurrency: 1, animationDelay: 300, ...e });
2039
2058
  }
2040
2059
  add = (e) => {
2041
2060
  this.storage.isOpened(e.id) || this.queue.addToQueue(e);
@@ -2048,23 +2067,23 @@ class Gi {
2048
2067
  this.storage.setOpened(e);
2049
2068
  };
2050
2069
  }
2051
- const Qi = (t, e, r) => {
2052
- t.notifications = new Gi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2053
- }, zi = (t, e) => {
2054
- const { client: r } = t.createPromiseClient(de, { method: "submitAnswer" });
2070
+ const Gi = (t, e, r) => {
2071
+ t.notifications = new qi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2072
+ }, Qi = (t, e) => {
2073
+ const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
2055
2074
  return r.submitAnswer({ data: e });
2056
- }, Ki = (t, e) => {
2057
- const { client: r } = t.createPromiseClient(de, { method: "submitInplay" });
2075
+ }, zi = (t, e) => {
2076
+ const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
2058
2077
  return r.submitInplay({ data: { eventId: +e } });
2059
- }, Hi = (t, e) => {
2060
- const { client: r } = t.createPromiseClient(de, { method: "skipQuestion" });
2078
+ }, Ki = (t, e) => {
2079
+ const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
2061
2080
  return r.skipQuestion({ data: { id: e } });
2062
2081
  };
2063
2082
  var vt;
2064
2083
  (function(t) {
2065
2084
  t.ONBOARDING = "onboarding";
2066
2085
  })(vt || (vt = {}));
2067
- class Wi extends pr {
2086
+ class Hi extends pr {
2068
2087
  constructor() {
2069
2088
  super("gamification");
2070
2089
  }
@@ -2075,8 +2094,8 @@ class Wi extends pr {
2075
2094
  }
2076
2095
  const Ir = {
2077
2096
  pageSize: 10
2078
- }, Ji = (t, e, r) => {
2079
- const o = te({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = He({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
2097
+ }, Wi = (t, e, r) => {
2098
+ const o = te({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = Le({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
2080
2099
  if (A) {
2081
2100
  s.setKey("loading", !0);
2082
2101
  const g = {
@@ -2094,12 +2113,12 @@ const Ir = {
2094
2113
  const g = e.get(), w = s.get().data?.length || 0;
2095
2114
  if (A.page > 0 && g && w >= A.page * A.pageSize) {
2096
2115
  s.setKey("loading", !0);
2097
- const T = await u({
2116
+ const C = await u({
2098
2117
  eventId: g,
2099
2118
  pagination: A
2100
2119
  }), P = s.get().data || [];
2101
2120
  s.set({
2102
- data: [...P, ...T.data.map((N) => N.attributes)],
2121
+ data: [...P, ...C.data.map((N) => N.attributes)],
2103
2122
  loading: !1
2104
2123
  });
2105
2124
  }
@@ -2107,16 +2126,16 @@ const Ir = {
2107
2126
  const A = o.get();
2108
2127
  o.set({ ...A, page: A.page + 1 });
2109
2128
  }, invalidate: f };
2110
- }, Fr = /* @__PURE__ */ new Set([ze.POLL, ze.PREDICTION, ze.TRIVIA]);
2129
+ }, Ji = /* @__PURE__ */ new Set([st.POLL, st.PREDICTION, st.TRIVIA]);
2111
2130
  var Z;
2112
2131
  (function(t) {
2113
2132
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
2114
2133
  })(Z || (Z = {}));
2115
- class Yi extends lr {
2134
+ class Yi extends hr {
2116
2135
  /** user statistics (leaderboard panel) */
2117
2136
  userSummary;
2118
- /** questions list (pick history) */
2119
- questions;
2137
+ /** feed list (pick history) */
2138
+ feedList;
2120
2139
  /** pinned leaderboard id */
2121
2140
  leaderboardId;
2122
2141
  /** leaderboard list */
@@ -2134,15 +2153,15 @@ class Yi extends lr {
2134
2153
  /** Browser cache */
2135
2154
  storage;
2136
2155
  constructor(e, r, o) {
2137
- super(e, r), this.background = sn(o), this.storage = new Wi(), this.userSummary = new ue(xi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.questions = new ue(Di(this.background.slStreamId, o.transport), "gamification:questions"), this.leaderboardId = new ce(te(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ce(te(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = hr(this.background.openedQuestion.getStore(), (s) => s.data?.type && Fr.has(s.data.type) ? { loading: !1, data: s.data } : { loading: s.loading, data: void 0 }), this.leaderboardList = Ji(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2156
+ super(e, r), this.background = on(o), this.storage = new Hi(), this.userSummary = new pe(Bi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.leaderboardId = new ue(te(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ue(te(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = Wi(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2138
2157
  (s === Z.Optional || Z.Required) && this.showOnboardingInApp();
2139
2158
  }), this.status.subscribe((s) => {
2140
- s === Le.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2159
+ s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2141
2160
  }), this.onboardingStatus.subscribe((s) => {
2142
2161
  s && this.background.activeQuestionId.invalidate();
2143
2162
  }), this.background.activeQuestionId.listen((s) => {
2144
- s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && Fr.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2145
- type: We.QUESTION,
2163
+ s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && Ji.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2164
+ type: He.QUESTION,
2146
2165
  action: () => s.data?.question && this.openQuestion(s.data.question.id),
2147
2166
  close: () => s.data?.question && this.closeQuestion(s.data.question.id),
2148
2167
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2186,7 +2205,7 @@ class Yi extends lr {
2186
2205
  return;
2187
2206
  const { titleCard: r, overview: o } = e;
2188
2207
  this.notifications.add({
2189
- type: We.ONBOARDING,
2208
+ type: He.ONBOARDING,
2190
2209
  id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
2191
2210
  action: this.openFeature,
2192
2211
  close: this.closeFeature,
@@ -2203,18 +2222,18 @@ class Yi extends lr {
2203
2222
  });
2204
2223
  };
2205
2224
  connect = (e) => {
2206
- this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.questions.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2225
+ this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.feedList.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
2207
2226
  window.requestAnimationFrame(async () => {
2208
2227
  const o = r.data?.attributes?.question;
2209
2228
  if (!o)
2210
2229
  return;
2211
2230
  const { status: s, type: u, id: l } = o;
2212
- if (s === Yt.RESOLVED && u === ze.PREDICTION) {
2231
+ if (s === Yt.RESOLVED && u === st.PREDICTION) {
2213
2232
  const f = this.background.getCurrentSessionId({
2214
2233
  prefix: `notification-id:${l}`
2215
- }), A = (await Ui(l, e))?.answers.find(({ correct: g }) => g);
2234
+ }), A = (await nn(l, e))?.answers.find(({ correct: g }) => g);
2216
2235
  this.notifications.add({
2217
- type: We.ONBOARDING,
2236
+ type: He.ONBOARDING,
2218
2237
  action: () => this.openQuestion(l),
2219
2238
  close: () => this.closeQuestion(l),
2220
2239
  autoHideDuration: 5e3,
@@ -2227,7 +2246,7 @@ class Yi extends lr {
2227
2246
  });
2228
2247
  }), this.background.feedSubscription.addListener("feed-subscription-questions-list", () => {
2229
2248
  window.requestAnimationFrame(() => {
2230
- this.questions?.invalidate();
2249
+ this.feedList?.invalidate();
2231
2250
  });
2232
2251
  });
2233
2252
  };
@@ -2237,22 +2256,22 @@ class Yi extends lr {
2237
2256
  // onboarding
2238
2257
  submitInplay = async () => {
2239
2258
  const e = this.background.slStreamId.get();
2240
- e && (await Ki(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2259
+ e && (await zi(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2241
2260
  organizationId: this.background.organizationId.get() || "",
2242
2261
  userId: this.background.userId.get() || "",
2243
2262
  eventId: e
2244
2263
  }, Z.Completed));
2245
2264
  };
2246
2265
  submitAnswer = async (e, r) => {
2247
- await zi(this.transport, { questionId: e, answerId: r }), this.questions?.invalidate();
2266
+ await Qi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
2248
2267
  };
2249
2268
  skipQuestion = async (e) => {
2250
- await Hi(this.transport, e), this.questions?.invalidate();
2269
+ await Ki(this.transport, e), this.feedList?.invalidate();
2251
2270
  };
2252
2271
  openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
2253
2272
  closeQuestion = (e) => this.background.closeQuestion(e);
2254
2273
  }
2255
- class Xi extends lr {
2274
+ class Xi extends hr {
2256
2275
  insights;
2257
2276
  closeFeature;
2258
2277
  openFeature;
@@ -2261,11 +2280,11 @@ class Xi extends lr {
2261
2280
  transport;
2262
2281
  background;
2263
2282
  constructor(e, r, o) {
2264
- super(e, r), this.background = sn(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
2265
- s === Le.Ready ? this.connect() : this.disconnect();
2283
+ super(e, r), this.background = on(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
2284
+ s === Ue.Ready ? this.connect() : this.disconnect();
2266
2285
  }), this.background.activeQuestionId.listen((s) => {
2267
- s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === ze.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2268
- type: We.QUESTION,
2286
+ s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && s.data.question.type === st.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2287
+ type: He.QUESTION,
2269
2288
  action: () => s.data?.question && this.openHighlight(s.data.question.id),
2270
2289
  close: () => s.data?.question && this.closeHighlight(s.data.question.id),
2271
2290
  autoHideDuration: +(s.data.moderation?.question?.appearance?.autoHideInterval || "1000"),
@@ -2278,13 +2297,10 @@ class Xi extends lr {
2278
2297
  imagePosition: s.data.question.notification.imagePosition
2279
2298
  }
2280
2299
  });
2281
- }), this.openedInsight = hr(this.background.openedQuestion.getStore(), (s) => {
2282
- if (s.data?.type === ze.FACTOID)
2283
- return s.data;
2284
- });
2300
+ }), this.openedInsight = this.background.openedQuestion;
2285
2301
  }
2286
2302
  connect = () => {
2287
- this.insights ? this.insights.invalidate() : this.insights = new ue(ji(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2303
+ this.insights ? this.insights.invalidate() : this.insights = new pe($i(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2288
2304
  window.requestAnimationFrame(() => {
2289
2305
  this.insights?.invalidate();
2290
2306
  });
@@ -2297,13 +2313,13 @@ class Xi extends lr {
2297
2313
  closeHighlight = (e) => this.background.closeQuestion(e);
2298
2314
  }
2299
2315
  ae.GAMES + "", ae.HIGHLIGHTS + "";
2300
- class Zi extends lr {
2316
+ class Zi extends hr {
2301
2317
  constructor(e, r) {
2302
2318
  super(e, r);
2303
2319
  }
2304
2320
  }
2305
2321
  const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HIGHLIGHTS ? new Xi(t, e, r) : new Zi(t, e), to = (t, e, r) => {
2306
- t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ce(te(ae.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
2322
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ue(te(ae.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
2307
2323
  t.activeFeature.setValue(o);
2308
2324
  }, t.sdk.closeFeature = () => {
2309
2325
  t.activeFeature.setValue(ae.UNSET);
@@ -2374,7 +2390,7 @@ function ro(t) {
2374
2390
  };
2375
2391
  }
2376
2392
  var no = ro, io = no;
2377
- function an(t, e, r) {
2393
+ function sn(t, e, r) {
2378
2394
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2379
2395
  throw new Error("fastqueue concurrency must be greater than 1");
2380
2396
  var o = io(oo), s = null, u = null, l = 0, f = null, d = {
@@ -2385,14 +2401,14 @@ function an(t, e, r) {
2385
2401
  paused: !1,
2386
2402
  concurrency: r,
2387
2403
  running: A,
2388
- resume: T,
2404
+ resume: C,
2389
2405
  idle: P,
2390
2406
  length: w,
2391
2407
  getQueue: E,
2392
2408
  unshift: Q,
2393
2409
  empty: se,
2394
2410
  kill: X,
2395
- killAndDrain: ye,
2411
+ killAndDrain: de,
2396
2412
  error: ee
2397
2413
  };
2398
2414
  return d;
@@ -2403,46 +2419,46 @@ function an(t, e, r) {
2403
2419
  d.paused = !0;
2404
2420
  }
2405
2421
  function w() {
2406
- for (var x = s, j = 0; x; )
2407
- x = x.next, j++;
2422
+ for (var B = s, j = 0; B; )
2423
+ B = B.next, j++;
2408
2424
  return j;
2409
2425
  }
2410
2426
  function E() {
2411
- for (var x = s, j = []; x; )
2412
- j.push(x.value), x = x.next;
2427
+ for (var B = s, j = []; B; )
2428
+ j.push(B.value), B = B.next;
2413
2429
  return j;
2414
2430
  }
2415
- function T() {
2431
+ function C() {
2416
2432
  if (d.paused) {
2417
2433
  d.paused = !1;
2418
- for (var x = 0; x < d.concurrency; x++)
2434
+ for (var B = 0; B < d.concurrency; B++)
2419
2435
  l++, z();
2420
2436
  }
2421
2437
  }
2422
2438
  function P() {
2423
2439
  return l === 0 && d.length() === 0;
2424
2440
  }
2425
- function N(x, j) {
2426
- var B = o.get();
2427
- B.context = t, B.release = z, B.value = x, B.callback = j || se, B.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = B, u = B) : (s = B, u = B, d.saturated()) : (l++, e.call(t, B.value, B.worked));
2441
+ function N(B, j) {
2442
+ var O = o.get();
2443
+ O.context = t, O.release = z, O.value = B, O.callback = j || se, O.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = O, u = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2428
2444
  }
2429
- function Q(x, j) {
2430
- var B = o.get();
2431
- B.context = t, B.release = z, B.value = x, B.callback = j || se, l === d.concurrency || d.paused ? s ? (B.next = s, s = B) : (s = B, u = B, d.saturated()) : (l++, e.call(t, B.value, B.worked));
2445
+ function Q(B, j) {
2446
+ var O = o.get();
2447
+ O.context = t, O.release = z, O.value = B, O.callback = j || se, l === d.concurrency || d.paused ? s ? (O.next = s, s = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2432
2448
  }
2433
- function z(x) {
2434
- x && o.release(x);
2449
+ function z(B) {
2450
+ B && o.release(B);
2435
2451
  var j = s;
2436
2452
  j ? d.paused ? l-- : (u === s && (u = null), s = j.next, j.next = null, e.call(t, j.value, j.worked), u === null && d.empty()) : --l === 0 && d.drain();
2437
2453
  }
2438
2454
  function X() {
2439
2455
  s = null, u = null, d.drain = se;
2440
2456
  }
2441
- function ye() {
2457
+ function de() {
2442
2458
  s = null, u = null, d.drain(), d.drain = se;
2443
2459
  }
2444
- function ee(x) {
2445
- f = x;
2460
+ function ee(B) {
2461
+ f = B;
2446
2462
  }
2447
2463
  }
2448
2464
  function se() {
@@ -2462,13 +2478,13 @@ function so(t, e, r) {
2462
2478
  w(null, E);
2463
2479
  }, w);
2464
2480
  }
2465
- var s = an(t, o, r), u = s.push, l = s.unshift;
2481
+ var s = sn(t, o, r), u = s.push, l = s.unshift;
2466
2482
  return s.push = f, s.unshift = d, s.drained = A, s;
2467
2483
  function f(g) {
2468
- var w = new Promise(function(E, T) {
2484
+ var w = new Promise(function(E, C) {
2469
2485
  u(g, function(P, N) {
2470
2486
  if (P) {
2471
- T(P);
2487
+ C(P);
2472
2488
  return;
2473
2489
  }
2474
2490
  E(N);
@@ -2477,10 +2493,10 @@ function so(t, e, r) {
2477
2493
  return w.catch(se), w;
2478
2494
  }
2479
2495
  function d(g) {
2480
- var w = new Promise(function(E, T) {
2496
+ var w = new Promise(function(E, C) {
2481
2497
  l(g, function(P, N) {
2482
2498
  if (P) {
2483
- T(P);
2499
+ C(P);
2484
2500
  return;
2485
2501
  }
2486
2502
  E(N);
@@ -2501,12 +2517,12 @@ function so(t, e, r) {
2501
2517
  return w;
2502
2518
  }
2503
2519
  }
2504
- yr.exports = an;
2520
+ yr.exports = sn;
2505
2521
  yr.exports.promise = so;
2506
- var un = yr.exports, gr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
2522
+ var an = yr.exports, gr = { exports: {} }, We = typeof Reflect == "object" ? Reflect : null, Fr = We && typeof We.apply == "function" ? We.apply : function(e, r, o) {
2507
2523
  return Function.prototype.apply.call(e, r, o);
2508
2524
  }, dt;
2509
- Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2525
+ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
2510
2526
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
2511
2527
  } : dt = function(e) {
2512
2528
  return Object.getOwnPropertyNames(e);
@@ -2514,7 +2530,7 @@ Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertyS
2514
2530
  function ao(t) {
2515
2531
  console && console.warn && console.warn(t);
2516
2532
  }
2517
- var cn = Number.isNaN || function(e) {
2533
+ var un = Number.isNaN || function(e) {
2518
2534
  return e !== e;
2519
2535
  };
2520
2536
  function $() {
@@ -2527,7 +2543,7 @@ $.prototype._events = void 0;
2527
2543
  $.prototype._eventsCount = 0;
2528
2544
  $.prototype._maxListeners = void 0;
2529
2545
  var Cr = 10;
2530
- function Ot(t) {
2546
+ function xt(t) {
2531
2547
  if (typeof t != "function")
2532
2548
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
2533
2549
  }
@@ -2537,7 +2553,7 @@ Object.defineProperty($, "defaultMaxListeners", {
2537
2553
  return Cr;
2538
2554
  },
2539
2555
  set: function(t) {
2540
- if (typeof t != "number" || t < 0 || cn(t))
2556
+ if (typeof t != "number" || t < 0 || un(t))
2541
2557
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
2542
2558
  Cr = t;
2543
2559
  }
@@ -2546,15 +2562,15 @@ $.init = function() {
2546
2562
  (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;
2547
2563
  };
2548
2564
  $.prototype.setMaxListeners = function(e) {
2549
- if (typeof e != "number" || e < 0 || cn(e))
2565
+ if (typeof e != "number" || e < 0 || un(e))
2550
2566
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
2551
2567
  return this._maxListeners = e, this;
2552
2568
  };
2553
- function fn(t) {
2569
+ function cn(t) {
2554
2570
  return t._maxListeners === void 0 ? $.defaultMaxListeners : t._maxListeners;
2555
2571
  }
2556
2572
  $.prototype.getMaxListeners = function() {
2557
- return fn(this);
2573
+ return cn(this);
2558
2574
  };
2559
2575
  $.prototype.emit = function(e) {
2560
2576
  for (var r = [], o = 1; o < arguments.length; o++)
@@ -2575,21 +2591,21 @@ $.prototype.emit = function(e) {
2575
2591
  if (d === void 0)
2576
2592
  return !1;
2577
2593
  if (typeof d == "function")
2578
- Tr(d, this, r);
2594
+ Fr(d, this, r);
2579
2595
  else
2580
- for (var A = d.length, g = yn(d, A), o = 0; o < A; ++o)
2581
- Tr(g[o], this, r);
2596
+ for (var A = d.length, g = dn(d, A), o = 0; o < A; ++o)
2597
+ Fr(g[o], this, r);
2582
2598
  return !0;
2583
2599
  };
2584
- function ln(t, e, r, o) {
2600
+ function fn(t, e, r, o) {
2585
2601
  var s, u, l;
2586
- if (Ot(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2602
+ if (xt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2587
2603
  "newListener",
2588
2604
  e,
2589
2605
  r.listener ? r.listener : r
2590
2606
  ), u = t._events), l = u[e]), l === void 0)
2591
2607
  l = u[e] = r, ++t._eventsCount;
2592
- else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = fn(t), s > 0 && l.length > s && !l.warned) {
2608
+ else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = cn(t), s > 0 && l.length > s && !l.warned) {
2593
2609
  l.warned = !0;
2594
2610
  var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2595
2611
  f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ao(f);
@@ -2597,29 +2613,29 @@ function ln(t, e, r, o) {
2597
2613
  return t;
2598
2614
  }
2599
2615
  $.prototype.addListener = function(e, r) {
2600
- return ln(this, e, r, !1);
2616
+ return fn(this, e, r, !1);
2601
2617
  };
2602
2618
  $.prototype.on = $.prototype.addListener;
2603
2619
  $.prototype.prependListener = function(e, r) {
2604
- return ln(this, e, r, !0);
2620
+ return fn(this, e, r, !0);
2605
2621
  };
2606
2622
  function uo() {
2607
2623
  if (!this.fired)
2608
2624
  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);
2609
2625
  }
2610
- function hn(t, e, r) {
2626
+ function ln(t, e, r) {
2611
2627
  var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = uo.bind(o);
2612
2628
  return s.listener = r, o.wrapFn = s, s;
2613
2629
  }
2614
2630
  $.prototype.once = function(e, r) {
2615
- return Ot(r), this.on(e, hn(this, e, r)), this;
2631
+ return xt(r), this.on(e, ln(this, e, r)), this;
2616
2632
  };
2617
2633
  $.prototype.prependOnceListener = function(e, r) {
2618
- return Ot(r), this.prependListener(e, hn(this, e, r)), this;
2634
+ return xt(r), this.prependListener(e, ln(this, e, r)), this;
2619
2635
  };
2620
2636
  $.prototype.removeListener = function(e, r) {
2621
2637
  var o, s, u, l, f;
2622
- if (Ot(r), s = this._events, s === void 0)
2638
+ if (xt(r), s = this._events, s === void 0)
2623
2639
  return this;
2624
2640
  if (o = s[e], o === void 0)
2625
2641
  return this;
@@ -2657,24 +2673,24 @@ $.prototype.removeAllListeners = function(e) {
2657
2673
  this.removeListener(e, r[s]);
2658
2674
  return this;
2659
2675
  };
2660
- function pn(t, e, r) {
2676
+ function hn(t, e, r) {
2661
2677
  var o = t._events;
2662
2678
  if (o === void 0)
2663
2679
  return [];
2664
2680
  var s = o[e];
2665
- return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : yn(s, s.length);
2681
+ return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : dn(s, s.length);
2666
2682
  }
2667
2683
  $.prototype.listeners = function(e) {
2668
- return pn(this, e, !0);
2684
+ return hn(this, e, !0);
2669
2685
  };
2670
2686
  $.prototype.rawListeners = function(e) {
2671
- return pn(this, e, !1);
2687
+ return hn(this, e, !1);
2672
2688
  };
2673
2689
  $.listenerCount = function(t, e) {
2674
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : dn.call(t, e);
2690
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : pn.call(t, e);
2675
2691
  };
2676
- $.prototype.listenerCount = dn;
2677
- function dn(t) {
2692
+ $.prototype.listenerCount = pn;
2693
+ function pn(t) {
2678
2694
  var e = this._events;
2679
2695
  if (e !== void 0) {
2680
2696
  var r = e[t];
@@ -2688,7 +2704,7 @@ function dn(t) {
2688
2704
  $.prototype.eventNames = function() {
2689
2705
  return this._eventsCount > 0 ? dt(this._events) : [];
2690
2706
  };
2691
- function yn(t, e) {
2707
+ function dn(t, e) {
2692
2708
  for (var r = new Array(e), o = 0; o < e; ++o)
2693
2709
  r[o] = t[o];
2694
2710
  return r;
@@ -2711,13 +2727,13 @@ function lo(t, e) {
2711
2727
  function u() {
2712
2728
  typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
2713
2729
  }
2714
- gn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2730
+ yn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2715
2731
  });
2716
2732
  }
2717
2733
  function ho(t, e, r) {
2718
- typeof t.on == "function" && gn(t, "error", e, r);
2734
+ typeof t.on == "function" && yn(t, "error", e, r);
2719
2735
  }
2720
- function gn(t, e, r, o) {
2736
+ function yn(t, e, r, o) {
2721
2737
  if (typeof t.on == "function")
2722
2738
  o.once ? t.once(e, r) : t.on(e, r);
2723
2739
  else if (typeof t.addEventListener == "function")
@@ -2727,7 +2743,7 @@ function gn(t, e, r, o) {
2727
2743
  else
2728
2744
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
2729
2745
  }
2730
- var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2746
+ var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
2731
2747
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2732
2748
  return !1;
2733
2749
  if (typeof Symbol.iterator == "symbol")
@@ -2750,14 +2766,14 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2750
2766
  return !1;
2751
2767
  }
2752
2768
  return !0;
2753
- }, po = wn, mr = function() {
2769
+ }, po = bn, mr = function() {
2754
2770
  return po() && !!Symbol.toStringTag;
2755
- }, _r = typeof Symbol < "u" && Symbol, yo = wn, go = function() {
2756
- return typeof _r != "function" || typeof Symbol != "function" || typeof _r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2757
- }, Br = {
2771
+ }, Tr = typeof Symbol < "u" && Symbol, yo = bn, go = function() {
2772
+ return typeof Tr != "function" || typeof Symbol != "function" || typeof Tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2773
+ }, _r = {
2758
2774
  foo: {}
2759
2775
  }, mo = Object, bo = function() {
2760
- return { __proto__: Br }.foo === Br.foo && !({ __proto__: null } instanceof mo);
2776
+ return { __proto__: _r }.foo === _r.foo && !({ __proto__: null } instanceof mo);
2761
2777
  }, wo = "Function.prototype.bind called on incompatible ", vo = Object.prototype.toString, So = Math.max, Ao = "[object Function]", Or = function(e, r) {
2762
2778
  for (var o = [], s = 0; s < e.length; s += 1)
2763
2779
  o[s] = e[s];
@@ -2796,44 +2812,44 @@ var mn = gr.exports, xt = {}, bn = {}, wn = function() {
2796
2812
  A.prototype = r.prototype, s.prototype = new A(), A.prototype = null;
2797
2813
  }
2798
2814
  return s;
2799
- }, To = Fo, vn = Function.prototype.bind || To, xr = {}.hasOwnProperty, Lt = Function.prototype.call, Co = Lt.bind ? Lt.bind(xr) : function(t, e) {
2815
+ }, Co = Fo, wn = Function.prototype.bind || Co, xr = {}.hasOwnProperty, Lt = Function.prototype.call, To = Lt.bind ? Lt.bind(xr) : function(t, e) {
2800
2816
  return Lt.call(xr, t, e);
2801
- }, k, Xe = SyntaxError, Sn = Function, Ye = TypeError, Ut = function(t) {
2817
+ }, k, Ye = SyntaxError, vn = Function, Je = TypeError, Ut = function(t) {
2802
2818
  try {
2803
- return Sn('"use strict"; return (' + t + ").constructor;")();
2819
+ return vn('"use strict"; return (' + t + ").constructor;")();
2804
2820
  } catch {
2805
2821
  }
2806
- }, Ue = Object.getOwnPropertyDescriptor;
2807
- if (Ue)
2822
+ }, $e = Object.getOwnPropertyDescriptor;
2823
+ if ($e)
2808
2824
  try {
2809
- Ue({}, "");
2825
+ $e({}, "");
2810
2826
  } catch {
2811
- Ue = null;
2827
+ $e = null;
2812
2828
  }
2813
2829
  var $t = function() {
2814
- throw new Ye();
2815
- }, _o = Ue ? function() {
2830
+ throw new Je();
2831
+ }, _o = $e ? function() {
2816
2832
  try {
2817
2833
  return arguments.callee, $t;
2818
2834
  } catch {
2819
2835
  try {
2820
- return Ue(arguments, "callee").get;
2836
+ return $e(arguments, "callee").get;
2821
2837
  } catch {
2822
2838
  return $t;
2823
2839
  }
2824
2840
  }
2825
- }() : $t, Me = go(), Bo = bo(), H = Object.getPrototypeOf || (Bo ? function(t) {
2841
+ }() : $t, Ve = go(), Oo = bo(), H = Object.getPrototypeOf || (Oo ? function(t) {
2826
2842
  return t.__proto__;
2827
- } : null), qe = {}, Oo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), $e = {
2843
+ } : null), Ge = {}, xo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), De = {
2828
2844
  "%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
2829
2845
  "%Array%": Array,
2830
2846
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer,
2831
- "%ArrayIteratorPrototype%": Me && H ? H([][Symbol.iterator]()) : k,
2847
+ "%ArrayIteratorPrototype%": Ve && H ? H([][Symbol.iterator]()) : k,
2832
2848
  "%AsyncFromSyncIteratorPrototype%": k,
2833
- "%AsyncFunction%": qe,
2834
- "%AsyncGenerator%": qe,
2835
- "%AsyncGeneratorFunction%": qe,
2836
- "%AsyncIteratorPrototype%": qe,
2849
+ "%AsyncFunction%": Ge,
2850
+ "%AsyncGenerator%": Ge,
2851
+ "%AsyncGeneratorFunction%": Ge,
2852
+ "%AsyncIteratorPrototype%": Ge,
2837
2853
  "%Atomics%": typeof Atomics > "u" ? k : Atomics,
2838
2854
  "%BigInt%": typeof BigInt > "u" ? k : BigInt,
2839
2855
  "%BigInt64Array%": typeof BigInt64Array > "u" ? k : BigInt64Array,
@@ -2852,17 +2868,17 @@ var $t = function() {
2852
2868
  "%Float32Array%": typeof Float32Array > "u" ? k : Float32Array,
2853
2869
  "%Float64Array%": typeof Float64Array > "u" ? k : Float64Array,
2854
2870
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry,
2855
- "%Function%": Sn,
2856
- "%GeneratorFunction%": qe,
2871
+ "%Function%": vn,
2872
+ "%GeneratorFunction%": Ge,
2857
2873
  "%Int8Array%": typeof Int8Array > "u" ? k : Int8Array,
2858
2874
  "%Int16Array%": typeof Int16Array > "u" ? k : Int16Array,
2859
2875
  "%Int32Array%": typeof Int32Array > "u" ? k : Int32Array,
2860
2876
  "%isFinite%": isFinite,
2861
2877
  "%isNaN%": isNaN,
2862
- "%IteratorPrototype%": Me && H ? H(H([][Symbol.iterator]())) : k,
2878
+ "%IteratorPrototype%": Ve && H ? H(H([][Symbol.iterator]())) : k,
2863
2879
  "%JSON%": typeof JSON == "object" ? JSON : k,
2864
2880
  "%Map%": typeof Map > "u" ? k : Map,
2865
- "%MapIteratorPrototype%": typeof Map > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2881
+ "%MapIteratorPrototype%": typeof Map > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2866
2882
  "%Math%": Math,
2867
2883
  "%Number%": Number,
2868
2884
  "%Object%": Object,
@@ -2875,15 +2891,15 @@ var $t = function() {
2875
2891
  "%Reflect%": typeof Reflect > "u" ? k : Reflect,
2876
2892
  "%RegExp%": RegExp,
2877
2893
  "%Set%": typeof Set > "u" ? k : Set,
2878
- "%SetIteratorPrototype%": typeof Set > "u" || !Me || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2894
+ "%SetIteratorPrototype%": typeof Set > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2879
2895
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? k : SharedArrayBuffer,
2880
2896
  "%String%": String,
2881
- "%StringIteratorPrototype%": Me && H ? H(""[Symbol.iterator]()) : k,
2882
- "%Symbol%": Me ? Symbol : k,
2883
- "%SyntaxError%": Xe,
2897
+ "%StringIteratorPrototype%": Ve && H ? H(""[Symbol.iterator]()) : k,
2898
+ "%Symbol%": Ve ? Symbol : k,
2899
+ "%SyntaxError%": Ye,
2884
2900
  "%ThrowTypeError%": _o,
2885
- "%TypedArray%": Oo,
2886
- "%TypeError%": Ye,
2901
+ "%TypedArray%": xo,
2902
+ "%TypeError%": Je,
2887
2903
  "%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array,
2888
2904
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray,
2889
2905
  "%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array,
@@ -2897,8 +2913,8 @@ if (H)
2897
2913
  try {
2898
2914
  null.error;
2899
2915
  } catch (t) {
2900
- var xo = H(H(t));
2901
- $e["%Error.prototype%"] = xo;
2916
+ var Bo = H(H(t));
2917
+ De["%Error.prototype%"] = Bo;
2902
2918
  }
2903
2919
  var ko = function t(e) {
2904
2920
  var r;
@@ -2915,8 +2931,8 @@ var ko = function t(e) {
2915
2931
  var s = t("%AsyncGenerator%");
2916
2932
  s && H && (r = H(s.prototype));
2917
2933
  }
2918
- return $e[e] = r, r;
2919
- }, kr = {
2934
+ return De[e] = r, r;
2935
+ }, Br = {
2920
2936
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2921
2937
  "%ArrayPrototype%": ["Array", "prototype"],
2922
2938
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -2968,60 +2984,60 @@ var ko = function t(e) {
2968
2984
  "%URIErrorPrototype%": ["URIError", "prototype"],
2969
2985
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2970
2986
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2971
- }, ft = vn, St = Co, Po = ft.call(Function.call, Array.prototype.concat), Ro = ft.call(Function.apply, Array.prototype.splice), Pr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), No = ft.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
2987
+ }, ft = wn, St = To, Po = ft.call(Function.call, Array.prototype.concat), Ro = ft.call(Function.apply, Array.prototype.splice), kr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), No = ft.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
2972
2988
  var r = At(e, 0, 1), o = At(e, -1);
2973
2989
  if (r === "%" && o !== "%")
2974
- throw new Xe("invalid intrinsic syntax, expected closing `%`");
2990
+ throw new Ye("invalid intrinsic syntax, expected closing `%`");
2975
2991
  if (o === "%" && r !== "%")
2976
- throw new Xe("invalid intrinsic syntax, expected opening `%`");
2992
+ throw new Ye("invalid intrinsic syntax, expected opening `%`");
2977
2993
  var s = [];
2978
- return Pr(e, Lo, function(u, l, f, d) {
2979
- s[s.length] = f ? Pr(d, Uo, "$1") : l || u;
2994
+ return kr(e, Lo, function(u, l, f, d) {
2995
+ s[s.length] = f ? kr(d, Uo, "$1") : l || u;
2980
2996
  }), s;
2981
2997
  }, Do = function(e, r) {
2982
2998
  var o = e, s;
2983
- if (St(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), St($e, o)) {
2984
- var u = $e[o];
2985
- if (u === qe && (u = ko(o)), typeof u > "u" && !r)
2986
- throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
2999
+ if (St(Br, o) && (s = Br[o], o = "%" + s[0] + "%"), St(De, o)) {
3000
+ var u = De[o];
3001
+ if (u === Ge && (u = ko(o)), typeof u > "u" && !r)
3002
+ throw new Je("intrinsic " + e + " exists, but is not available. Please file an issue!");
2987
3003
  return {
2988
3004
  alias: s,
2989
3005
  name: o,
2990
3006
  value: u
2991
3007
  };
2992
3008
  }
2993
- throw new Xe("intrinsic " + e + " does not exist!");
2994
- }, et = function(e, r) {
3009
+ throw new Ye("intrinsic " + e + " does not exist!");
3010
+ }, Ze = function(e, r) {
2995
3011
  if (typeof e != "string" || e.length === 0)
2996
- throw new Ye("intrinsic name must be a non-empty string");
3012
+ throw new Je("intrinsic name must be a non-empty string");
2997
3013
  if (arguments.length > 1 && typeof r != "boolean")
2998
- throw new Ye('"allowMissing" argument must be a boolean');
3014
+ throw new Je('"allowMissing" argument must be a boolean');
2999
3015
  if (No(/^%?[^%]*%?$/, e) === null)
3000
- throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3016
+ throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3001
3017
  var o = $o(e), s = o.length > 0 ? o[0] : "", u = Do("%" + s + "%", r), l = u.name, f = u.value, d = !1, A = u.alias;
3002
3018
  A && (s = A[0], Ro(o, Po([0, 1], A)));
3003
3019
  for (var g = 1, w = !0; g < o.length; g += 1) {
3004
- var E = o[g], T = At(E, 0, 1), P = At(E, -1);
3005
- if ((T === '"' || T === "'" || T === "`" || P === '"' || P === "'" || P === "`") && T !== P)
3006
- throw new Xe("property names with quotes must have matching quotes");
3007
- if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St($e, l))
3008
- f = $e[l];
3020
+ var E = o[g], C = At(E, 0, 1), P = At(E, -1);
3021
+ if ((C === '"' || C === "'" || C === "`" || P === '"' || P === "'" || P === "`") && C !== P)
3022
+ throw new Ye("property names with quotes must have matching quotes");
3023
+ if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St(De, l))
3024
+ f = De[l];
3009
3025
  else if (f != null) {
3010
3026
  if (!(E in f)) {
3011
3027
  if (!r)
3012
- throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
3028
+ throw new Je("base intrinsic for " + e + " exists, but the property is not available.");
3013
3029
  return;
3014
3030
  }
3015
- if (Ue && g + 1 >= o.length) {
3016
- var N = Ue(f, E);
3031
+ if ($e && g + 1 >= o.length) {
3032
+ var N = $e(f, E);
3017
3033
  w = !!N, w && "get" in N && !("originalValue" in N.get) ? f = N.get : f = f[E];
3018
3034
  } else
3019
3035
  w = St(f, E), f = f[E];
3020
- w && !d && ($e[l] = f);
3036
+ w && !d && (De[l] = f);
3021
3037
  }
3022
3038
  }
3023
3039
  return f;
3024
- }, An = { exports: {} }, jo = et, er = jo("%Object.defineProperty%", !0), tr = function() {
3040
+ }, Sn = { exports: {} }, jo = Ze, er = jo("%Object.defineProperty%", !0), tr = function() {
3025
3041
  if (er)
3026
3042
  try {
3027
3043
  return er({}, "a", { value: 1 }), !0;
@@ -3039,34 +3055,34 @@ tr.hasArrayLengthDefineBug = function() {
3039
3055
  return !0;
3040
3056
  }
3041
3057
  };
3042
- var En = tr, Mo = et, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3058
+ var An = tr, Mo = Ze, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3043
3059
  if (yt)
3044
3060
  try {
3045
3061
  yt([], "length");
3046
3062
  } catch {
3047
3063
  yt = null;
3048
3064
  }
3049
- var br = yt, Vo = En(), wr = et, ut = Vo && wr("%Object.defineProperty%", !0);
3065
+ var br = yt, Vo = An(), wr = Ze, ut = Vo && wr("%Object.defineProperty%", !0);
3050
3066
  if (ut)
3051
3067
  try {
3052
3068
  ut({}, "a", { value: 1 });
3053
3069
  } catch {
3054
3070
  ut = !1;
3055
3071
  }
3056
- var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e, r, o) {
3072
+ var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e, r, o) {
3057
3073
  if (!e || typeof e != "object" && typeof e != "function")
3058
- throw new Ve("`obj` must be an object or a function`");
3074
+ throw new qe("`obj` must be an object or a function`");
3059
3075
  if (typeof r != "string" && typeof r != "symbol")
3060
- throw new Ve("`property` must be a string or a symbol`");
3076
+ throw new qe("`property` must be a string or a symbol`");
3061
3077
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
3062
- throw new Ve("`nonEnumerable`, if provided, must be a boolean or null");
3078
+ throw new qe("`nonEnumerable`, if provided, must be a boolean or null");
3063
3079
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
3064
- throw new Ve("`nonWritable`, if provided, must be a boolean or null");
3080
+ throw new qe("`nonWritable`, if provided, must be a boolean or null");
3065
3081
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
3066
- throw new Ve("`nonConfigurable`, if provided, must be a boolean or null");
3082
+ throw new qe("`nonConfigurable`, if provided, must be a boolean or null");
3067
3083
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3068
- throw new Ve("`loose`, if provided, must be a boolean");
3069
- var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Rr && Rr(e, r);
3084
+ throw new qe("`loose`, if provided, must be a boolean");
3085
+ var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Pr && Pr(e, r);
3070
3086
  if (ut)
3071
3087
  ut(e, r, {
3072
3088
  configurable: l === null && d ? d.configurable : !l,
@@ -3078,20 +3094,20 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3078
3094
  e[r] = o;
3079
3095
  else
3080
3096
  throw new qo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3081
- }, In = et, Nr = Go, Qo = En(), Lr = br, Ur = In("%TypeError%"), zo = In("%Math.floor%"), Ko = function(e, r) {
3097
+ }, En = Ze, Rr = Go, Qo = An(), Nr = br, Lr = En("%TypeError%"), zo = En("%Math.floor%"), Ko = function(e, r) {
3082
3098
  if (typeof e != "function")
3083
- throw new Ur("`fn` is not a function");
3099
+ throw new Lr("`fn` is not a function");
3084
3100
  if (typeof r != "number" || r < 0 || r > 4294967295 || zo(r) !== r)
3085
- throw new Ur("`length` must be a positive 32-bit integer");
3101
+ throw new Lr("`length` must be a positive 32-bit integer");
3086
3102
  var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
3087
- if ("length" in e && Lr) {
3088
- var l = Lr(e, "length");
3103
+ if ("length" in e && Nr) {
3104
+ var l = Nr(e, "length");
3089
3105
  l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
3090
3106
  }
3091
- return (s || u || !o) && (Qo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
3107
+ return (s || u || !o) && (Qo ? Rr(e, "length", r, !0, !0) : Rr(e, "length", r)), e;
3092
3108
  };
3093
3109
  (function(t) {
3094
- var e = vn, r = et, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
3110
+ var e = wn, r = Ze, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
3095
3111
  if (d)
3096
3112
  try {
3097
3113
  d({}, "a", { value: 1 });
@@ -3101,9 +3117,9 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3101
3117
  t.exports = function(E) {
3102
3118
  if (typeof E != "function")
3103
3119
  throw new s("a function is required");
3104
- var T = f(e, l, arguments);
3120
+ var C = f(e, l, arguments);
3105
3121
  return o(
3106
- T,
3122
+ C,
3107
3123
  1 + A(0, E.length - (arguments.length - 1)),
3108
3124
  !0
3109
3125
  );
@@ -3112,19 +3128,19 @@ var qo = wr("%SyntaxError%"), Ve = wr("%TypeError%"), Rr = br, Go = function(e,
3112
3128
  return f(e, u, arguments);
3113
3129
  };
3114
3130
  d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
3115
- })(An);
3116
- var Fn = An.exports, Tn = et, Cn = Fn, Ho = Cn(Tn("String.prototype.indexOf")), _n = function(e, r) {
3117
- var o = Tn(e, !!r);
3131
+ })(Sn);
3132
+ var In = Sn.exports, Fn = Ze, Cn = In, Ho = Cn(Fn("String.prototype.indexOf")), Tn = function(e, r) {
3133
+ var o = Fn(e, !!r);
3118
3134
  return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Cn(o) : o;
3119
- }, Wo = mr(), Jo = _n, rr = Jo("Object.prototype.toString"), kt = function(e) {
3135
+ }, Wo = mr(), Jo = Tn, rr = Jo("Object.prototype.toString"), kt = function(e) {
3120
3136
  return Wo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
3121
- }, Bn = function(e) {
3137
+ }, _n = function(e) {
3122
3138
  return kt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
3123
3139
  }, Yo = function() {
3124
3140
  return kt(arguments);
3125
3141
  }();
3126
- kt.isLegacyArguments = Bn;
3127
- var Xo = Yo ? kt : Bn, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3142
+ kt.isLegacyArguments = _n;
3143
+ var Xo = Yo ? kt : _n, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3128
3144
  if (!On)
3129
3145
  return !1;
3130
3146
  try {
@@ -3147,21 +3163,21 @@ var Xo = Yo ? kt : Bn, Zo = Object.prototype.toString, es = Function.prototype.t
3147
3163
  jt = o ? Dt(o) : !1;
3148
3164
  }
3149
3165
  return Dt(e) === jt;
3150
- }, xn = Function.prototype.toString, Qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3151
- if (typeof Qe == "function" && typeof Object.defineProperty == "function")
3166
+ }, xn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3167
+ if (typeof ze == "function" && typeof Object.defineProperty == "function")
3152
3168
  try {
3153
3169
  nr = Object.defineProperty({}, "length", {
3154
3170
  get: function() {
3155
3171
  throw gt;
3156
3172
  }
3157
- }), gt = {}, Qe(function() {
3173
+ }), gt = {}, ze(function() {
3158
3174
  throw 42;
3159
3175
  }, null, nr);
3160
3176
  } catch (t) {
3161
- t !== gt && (Qe = null);
3177
+ t !== gt && (ze = null);
3162
3178
  }
3163
3179
  else
3164
- Qe = null;
3180
+ ze = null;
3165
3181
  var is = /^\s*class\b/, ir = function(e) {
3166
3182
  try {
3167
3183
  var r = xn.call(e);
@@ -3190,13 +3206,13 @@ if (typeof document == "object") {
3190
3206
  return !1;
3191
3207
  });
3192
3208
  }
3193
- var ds = Qe ? function(e) {
3209
+ var ds = ze ? function(e) {
3194
3210
  if (or(e))
3195
3211
  return !0;
3196
3212
  if (!e || typeof e != "function" && typeof e != "object")
3197
3213
  return !1;
3198
3214
  try {
3199
- Qe(e, null, nr);
3215
+ ze(e, null, nr);
3200
3216
  } catch (r) {
3201
3217
  if (r !== gt)
3202
3218
  return !1;
@@ -3213,15 +3229,15 @@ var ds = Qe ? function(e) {
3213
3229
  return !1;
3214
3230
  var r = mt.call(e);
3215
3231
  return r !== ss && r !== as && !/^\[object HTML/.test(r) ? !1 : Mt(e);
3216
- }, ys = ds, gs = Object.prototype.toString, kn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3232
+ }, ys = ds, gs = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3217
3233
  for (var s = 0, u = e.length; s < u; s++)
3218
- kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3234
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3219
3235
  }, bs = function(e, r, o) {
3220
3236
  for (var s = 0, u = e.length; s < u; s++)
3221
3237
  o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
3222
3238
  }, ws = function(e, r, o) {
3223
3239
  for (var s in e)
3224
- kn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3240
+ Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3225
3241
  }, vs = function(e, r, o) {
3226
3242
  if (!ys(r))
3227
3243
  throw new TypeError("iterator must be a function");
@@ -3239,31 +3255,31 @@ var ds = Qe ? function(e) {
3239
3255
  "Uint32Array",
3240
3256
  "Uint8Array",
3241
3257
  "Uint8ClampedArray"
3242
- ], As = typeof globalThis > "u" ? Yr : globalThis, Es = function() {
3258
+ ], As = typeof globalThis > "u" ? Wr : globalThis, Es = function() {
3243
3259
  for (var e = [], r = 0; r < Vt.length; r++)
3244
3260
  typeof As[Vt[r]] == "function" && (e[e.length] = Vt[r]);
3245
3261
  return e;
3246
- }, Et = Ss, Is = Es, $r = Fn, vr = _n, bt = br, Fs = vr("Object.prototype.toString"), Pn = mr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Ts = vr("Array.prototype.indexOf", !0) || function(e, r) {
3262
+ }, Et = Ss, Is = Es, Ur = In, vr = Tn, bt = br, Fs = vr("Object.prototype.toString"), kn = mr(), $r = typeof globalThis > "u" ? Wr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Cs = vr("Array.prototype.indexOf", !0) || function(e, r) {
3247
3263
  for (var o = 0; o < e.length; o += 1)
3248
3264
  if (e[o] === r)
3249
3265
  return o;
3250
3266
  return -1;
3251
3267
  }, It = { __proto__: null };
3252
- Pn && bt && qt ? Et(sr, function(t) {
3253
- var e = new Dr[t]();
3268
+ kn && bt && qt ? Et(sr, function(t) {
3269
+ var e = new $r[t]();
3254
3270
  if (Symbol.toStringTag in e) {
3255
3271
  var r = qt(e), o = bt(r, Symbol.toStringTag);
3256
3272
  if (!o) {
3257
3273
  var s = qt(r);
3258
3274
  o = bt(s, Symbol.toStringTag);
3259
3275
  }
3260
- It["$" + t] = $r(o.get);
3276
+ It["$" + t] = Ur(o.get);
3261
3277
  }
3262
3278
  }) : Et(sr, function(t) {
3263
- var e = new Dr[t](), r = e.slice || e.set;
3264
- r && (It["$" + t] = $r(r));
3279
+ var e = new $r[t](), r = e.slice || e.set;
3280
+ r && (It["$" + t] = Ur(r));
3265
3281
  });
3266
- var Cs = function(e) {
3282
+ var Ts = function(e) {
3267
3283
  var r = !1;
3268
3284
  return Et(It, function(o, s) {
3269
3285
  if (!r)
@@ -3281,19 +3297,19 @@ var Cs = function(e) {
3281
3297
  } catch {
3282
3298
  }
3283
3299
  }), r;
3284
- }, Rn = function(e) {
3300
+ }, Pn = function(e) {
3285
3301
  if (!e || typeof e != "object")
3286
3302
  return !1;
3287
- if (!Pn) {
3303
+ if (!kn) {
3288
3304
  var r = Sr(Fs(e), 8, -1);
3289
- return Ts(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
3305
+ return Cs(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
3290
3306
  }
3291
- return bt ? Cs(e) : null;
3292
- }, Bs = Rn, Os = function(e) {
3293
- return !!Bs(e);
3307
+ return bt ? Ts(e) : null;
3308
+ }, Os = Pn, xs = function(e) {
3309
+ return !!Os(e);
3294
3310
  };
3295
3311
  (function(t) {
3296
- var e = Xo, r = ns, o = Rn, s = Os;
3312
+ var e = Xo, r = ns, o = Pn, s = xs;
3297
3313
  function u(v) {
3298
3314
  return v.call.bind(v);
3299
3315
  }
@@ -3301,7 +3317,7 @@ var Cs = function(e) {
3301
3317
  if (l)
3302
3318
  var E = u(BigInt.prototype.valueOf);
3303
3319
  if (f)
3304
- var T = u(Symbol.prototype.valueOf);
3320
+ var C = u(Symbol.prototype.valueOf);
3305
3321
  function P(v, ht) {
3306
3322
  if (typeof v != "object")
3307
3323
  return !1;
@@ -3328,26 +3344,26 @@ var Cs = function(e) {
3328
3344
  return o(v) === "Uint8ClampedArray";
3329
3345
  }
3330
3346
  t.isUint8ClampedArray = X;
3331
- function ye(v) {
3347
+ function de(v) {
3332
3348
  return o(v) === "Uint16Array";
3333
3349
  }
3334
- t.isUint16Array = ye;
3350
+ t.isUint16Array = de;
3335
3351
  function ee(v) {
3336
3352
  return o(v) === "Uint32Array";
3337
3353
  }
3338
3354
  t.isUint32Array = ee;
3339
- function x(v) {
3355
+ function B(v) {
3340
3356
  return o(v) === "Int8Array";
3341
3357
  }
3342
- t.isInt8Array = x;
3358
+ t.isInt8Array = B;
3343
3359
  function j(v) {
3344
3360
  return o(v) === "Int16Array";
3345
3361
  }
3346
3362
  t.isInt16Array = j;
3347
- function B(v) {
3363
+ function O(v) {
3348
3364
  return o(v) === "Int32Array";
3349
3365
  }
3350
- t.isInt32Array = B;
3366
+ t.isInt32Array = O;
3351
3367
  function re(v) {
3352
3368
  return o(v) === "Float32Array";
3353
3369
  }
@@ -3364,38 +3380,38 @@ var Cs = function(e) {
3364
3380
  return o(v) === "BigUint64Array";
3365
3381
  }
3366
3382
  t.isBigUint64Array = Se;
3367
- function fe(v) {
3383
+ function ce(v) {
3368
3384
  return d(v) === "[object Map]";
3369
3385
  }
3370
- fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
3371
- function rt(v) {
3372
- return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
3386
+ ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
3387
+ function tt(v) {
3388
+ return typeof Map > "u" ? !1 : ce.working ? ce(v) : v instanceof Map;
3373
3389
  }
3374
- t.isMap = rt;
3375
- function le(v) {
3390
+ t.isMap = tt;
3391
+ function fe(v) {
3376
3392
  return d(v) === "[object Set]";
3377
3393
  }
3378
- le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
3379
- function Be(v) {
3380
- return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
3381
- }
3382
- t.isSet = Be;
3394
+ fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
3383
3395
  function Oe(v) {
3396
+ return typeof Set > "u" ? !1 : fe.working ? fe(v) : v instanceof Set;
3397
+ }
3398
+ t.isSet = Oe;
3399
+ function xe(v) {
3384
3400
  return d(v) === "[object WeakMap]";
3385
3401
  }
3386
- Oe.working = typeof WeakMap < "u" && Oe(/* @__PURE__ */ new WeakMap());
3387
- function nt(v) {
3388
- return typeof WeakMap > "u" ? !1 : Oe.working ? Oe(v) : v instanceof WeakMap;
3402
+ xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
3403
+ function rt(v) {
3404
+ return typeof WeakMap > "u" ? !1 : xe.working ? xe(v) : v instanceof WeakMap;
3389
3405
  }
3390
- t.isWeakMap = nt;
3391
- function xe(v) {
3406
+ t.isWeakMap = rt;
3407
+ function Be(v) {
3392
3408
  return d(v) === "[object WeakSet]";
3393
3409
  }
3394
- xe.working = typeof WeakSet < "u" && xe(/* @__PURE__ */ new WeakSet());
3395
- function he(v) {
3396
- return xe(v);
3410
+ Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
3411
+ function le(v) {
3412
+ return Be(v);
3397
3413
  }
3398
- t.isWeakSet = he;
3414
+ t.isWeakSet = le;
3399
3415
  function ke(v) {
3400
3416
  return d(v) === "[object ArrayBuffer]";
3401
3417
  }
@@ -3428,10 +3444,10 @@ var Cs = function(e) {
3428
3444
  return d(v) === "[object Map Iterator]";
3429
3445
  }
3430
3446
  t.isMapIterator = F;
3431
- function O(v) {
3447
+ function x(v) {
3432
3448
  return d(v) === "[object Set Iterator]";
3433
3449
  }
3434
- t.isSetIterator = O;
3450
+ t.isSetIterator = x;
3435
3451
  function U(v) {
3436
3452
  return d(v) === "[object Generator]";
3437
3453
  }
@@ -3440,30 +3456,30 @@ var Cs = function(e) {
3440
3456
  return d(v) === "[object WebAssembly.Module]";
3441
3457
  }
3442
3458
  t.isWebAssemblyCompiledModule = Y;
3443
- function ge(v) {
3459
+ function ye(v) {
3444
3460
  return P(v, A);
3445
3461
  }
3446
- t.isNumberObject = ge;
3447
- function pe(v) {
3462
+ t.isNumberObject = ye;
3463
+ function he(v) {
3448
3464
  return P(v, g);
3449
3465
  }
3450
- t.isStringObject = pe;
3466
+ t.isStringObject = he;
3451
3467
  function ie(v) {
3452
3468
  return P(v, w);
3453
3469
  }
3454
3470
  t.isBooleanObject = ie;
3455
- function De(v) {
3471
+ function je(v) {
3456
3472
  return l && P(v, E);
3457
3473
  }
3458
- t.isBigIntObject = De;
3474
+ t.isBigIntObject = je;
3459
3475
  function lt(v) {
3460
- return f && P(v, T);
3476
+ return f && P(v, C);
3461
3477
  }
3462
3478
  t.isSymbolObject = lt;
3463
- function it(v) {
3464
- return ge(v) || pe(v) || ie(v) || De(v) || lt(v);
3479
+ function nt(v) {
3480
+ return ye(v) || he(v) || ie(v) || je(v) || lt(v);
3465
3481
  }
3466
- t.isBoxedPrimitive = it;
3482
+ t.isBoxedPrimitive = nt;
3467
3483
  function Pt(v) {
3468
3484
  return typeof Uint8Array < "u" && (V(v) || R(v));
3469
3485
  }
@@ -3475,8 +3491,8 @@ var Cs = function(e) {
3475
3491
  }
3476
3492
  });
3477
3493
  });
3478
- })(bn);
3479
- var xs = function(e) {
3494
+ })(mn);
3495
+ var Bs = function(e) {
3480
3496
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3481
3497
  }, ar = { exports: {} };
3482
3498
  typeof Object.create == "function" ? ar.exports = function(e, r) {
@@ -3504,17 +3520,17 @@ var ks = ar.exports;
3504
3520
  return I;
3505
3521
  }, r = /%[sdj%]/g;
3506
3522
  t.format = function(p) {
3507
- if (!x(p)) {
3523
+ if (!B(p)) {
3508
3524
  for (var b = [], S = 0; S < arguments.length; S++)
3509
3525
  b.push(l(arguments[S]));
3510
3526
  return b.join(" ");
3511
3527
  }
3512
- for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(O) {
3513
- if (O === "%%")
3528
+ for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(x) {
3529
+ if (x === "%%")
3514
3530
  return "%";
3515
3531
  if (S >= R)
3516
- return O;
3517
- switch (O) {
3532
+ return x;
3533
+ switch (x) {
3518
3534
  case "%s":
3519
3535
  return String(I[S++]);
3520
3536
  case "%d":
@@ -3526,38 +3542,38 @@ var ks = ar.exports;
3526
3542
  return "[Circular]";
3527
3543
  }
3528
3544
  default:
3529
- return O;
3545
+ return x;
3530
3546
  }
3531
3547
  }), F = I[S]; S < R; F = I[++S])
3532
3548
  X(F) || !ne(F) ? L += " " + F : L += " " + l(F);
3533
3549
  return L;
3534
3550
  }, t.deprecate = function(p, b) {
3535
- if (typeof C.process < "u" && C.process.noDeprecation === !0)
3551
+ if (typeof T.process < "u" && T.process.noDeprecation === !0)
3536
3552
  return p;
3537
- if (typeof C.process > "u")
3553
+ if (typeof T.process > "u")
3538
3554
  return function() {
3539
3555
  return t.deprecate(p, b).apply(this, arguments);
3540
3556
  };
3541
3557
  var S = !1;
3542
3558
  function I() {
3543
3559
  if (!S) {
3544
- if (C.process.throwDeprecation)
3560
+ if (T.process.throwDeprecation)
3545
3561
  throw new Error(b);
3546
- C.process.traceDeprecation ? console.trace(b) : console.error(b), S = !0;
3562
+ T.process.traceDeprecation ? console.trace(b) : console.error(b), S = !0;
3547
3563
  }
3548
3564
  return p.apply(this, arguments);
3549
3565
  }
3550
3566
  return I;
3551
3567
  };
3552
3568
  var o = {}, s = /^$/;
3553
- if (C.process.env.NODE_DEBUG) {
3554
- var u = C.process.env.NODE_DEBUG;
3569
+ if (T.process.env.NODE_DEBUG) {
3570
+ var u = T.process.env.NODE_DEBUG;
3555
3571
  u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
3556
3572
  }
3557
3573
  t.debuglog = function(p) {
3558
3574
  if (p = p.toUpperCase(), !o[p])
3559
3575
  if (s.test(p)) {
3560
- var b = C.process.pid;
3576
+ var b = T.process.pid;
3561
3577
  o[p] = function() {
3562
3578
  var S = t.format.apply(t, arguments);
3563
3579
  console.error("%s %d: %s", p, b, S);
@@ -3572,7 +3588,7 @@ var ks = ar.exports;
3572
3588
  seen: [],
3573
3589
  stylize: d
3574
3590
  };
3575
- return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), z(b) ? S.showHidden = b : b && t._extend(S, b), B(S.showHidden) && (S.showHidden = !1), B(S.depth) && (S.depth = 2), B(S.colors) && (S.colors = !1), B(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = f), g(S, p, S.depth);
3591
+ return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), z(b) ? S.showHidden = b : b && t._extend(S, b), O(S.showHidden) && (S.showHidden = !1), O(S.depth) && (S.depth = 2), O(S.colors) && (S.colors = !1), O(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = f), g(S, p, S.depth);
3576
3592
  }
3577
3593
  t.inspect = l, l.colors = {
3578
3594
  bold: [1, 22],
@@ -3613,11 +3629,11 @@ var ks = ar.exports;
3613
3629
  }), b;
3614
3630
  }
3615
3631
  function g(p, b, S) {
3616
- if (p.customInspect && b && fe(b.inspect) && // Filter out the util module, it's inspect function is special
3632
+ if (p.customInspect && b && ce(b.inspect) && // Filter out the util module, it's inspect function is special
3617
3633
  b.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3618
3634
  !(b.constructor && b.constructor.prototype === b)) {
3619
3635
  var I = b.inspect(S, p);
3620
- return x(I) || (I = g(p, I, S)), I;
3636
+ return B(I) || (I = g(p, I, S)), I;
3621
3637
  }
3622
3638
  var R = w(p, b);
3623
3639
  if (R)
@@ -3626,9 +3642,9 @@ var ks = ar.exports;
3626
3642
  if (p.showHidden && (L = Object.getOwnPropertyNames(b)), Se(b) && (L.indexOf("message") >= 0 || L.indexOf("description") >= 0))
3627
3643
  return E(b);
3628
3644
  if (L.length === 0) {
3629
- if (fe(b)) {
3630
- var O = b.name ? ": " + b.name : "";
3631
- return p.stylize("[Function" + O + "]", "special");
3645
+ if (ce(b)) {
3646
+ var x = b.name ? ": " + b.name : "";
3647
+ return p.stylize("[Function" + x + "]", "special");
3632
3648
  }
3633
3649
  if (re(b))
3634
3650
  return p.stylize(RegExp.prototype.toString.call(b), "regexp");
@@ -3637,25 +3653,25 @@ var ks = ar.exports;
3637
3653
  if (Se(b))
3638
3654
  return E(b);
3639
3655
  }
3640
- var U = "", Y = !1, ge = ["{", "}"];
3641
- if (Q(b) && (Y = !0, ge = ["[", "]"]), fe(b)) {
3642
- var pe = b.name ? ": " + b.name : "";
3643
- U = " [Function" + pe + "]";
3656
+ var U = "", Y = !1, ye = ["{", "}"];
3657
+ if (Q(b) && (Y = !0, ye = ["[", "]"]), ce(b)) {
3658
+ var he = b.name ? ": " + b.name : "";
3659
+ U = " [Function" + he + "]";
3644
3660
  }
3645
3661
  if (re(b) && (U = " " + RegExp.prototype.toString.call(b)), _e(b) && (U = " " + Date.prototype.toUTCString.call(b)), Se(b) && (U = " " + E(b)), L.length === 0 && (!Y || b.length == 0))
3646
- return ge[0] + U + ge[1];
3662
+ return ye[0] + U + ye[1];
3647
3663
  if (S < 0)
3648
3664
  return re(b) ? p.stylize(RegExp.prototype.toString.call(b), "regexp") : p.stylize("[Object]", "special");
3649
3665
  p.seen.push(b);
3650
3666
  var ie;
3651
- return Y ? ie = T(p, b, S, F, L) : ie = L.map(function(De) {
3652
- return P(p, b, S, F, De, Y);
3653
- }), p.seen.pop(), N(ie, U, ge);
3667
+ return Y ? ie = C(p, b, S, F, L) : ie = L.map(function(je) {
3668
+ return P(p, b, S, F, je, Y);
3669
+ }), p.seen.pop(), N(ie, U, ye);
3654
3670
  }
3655
3671
  function w(p, b) {
3656
- if (B(b))
3672
+ if (O(b))
3657
3673
  return p.stylize("undefined", "undefined");
3658
- if (x(b)) {
3674
+ if (B(b)) {
3659
3675
  var S = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3660
3676
  return p.stylize(S, "string");
3661
3677
  }
@@ -3669,9 +3685,9 @@ var ks = ar.exports;
3669
3685
  function E(p) {
3670
3686
  return "[" + Error.prototype.toString.call(p) + "]";
3671
3687
  }
3672
- function T(p, b, S, I, R) {
3673
- for (var L = [], F = 0, O = b.length; F < O; ++F)
3674
- xe(b, String(F)) ? L.push(P(
3688
+ function C(p, b, S, I, R) {
3689
+ for (var L = [], F = 0, x = b.length; F < x; ++F)
3690
+ Be(b, String(F)) ? L.push(P(
3675
3691
  p,
3676
3692
  b,
3677
3693
  S,
@@ -3691,23 +3707,23 @@ var ks = ar.exports;
3691
3707
  }), L;
3692
3708
  }
3693
3709
  function P(p, b, S, I, R, L) {
3694
- var F, O, U;
3695
- if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? O = p.stylize("[Getter/Setter]", "special") : O = p.stylize("[Getter]", "special") : U.set && (O = p.stylize("[Setter]", "special")), xe(I, R) || (F = "[" + R + "]"), O || (p.seen.indexOf(U.value) < 0 ? (X(S) ? O = g(p, U.value, null) : O = g(p, U.value, S - 1), O.indexOf(`
3696
- `) > -1 && (L ? O = O.split(`
3710
+ var F, x, U;
3711
+ if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? x = p.stylize("[Getter/Setter]", "special") : x = p.stylize("[Getter]", "special") : U.set && (x = p.stylize("[Setter]", "special")), Be(I, R) || (F = "[" + R + "]"), x || (p.seen.indexOf(U.value) < 0 ? (X(S) ? x = g(p, U.value, null) : x = g(p, U.value, S - 1), x.indexOf(`
3712
+ `) > -1 && (L ? x = x.split(`
3697
3713
  `).map(function(Y) {
3698
3714
  return " " + Y;
3699
3715
  }).join(`
3700
- `).slice(2) : O = `
3701
- ` + O.split(`
3716
+ `).slice(2) : x = `
3717
+ ` + x.split(`
3702
3718
  `).map(function(Y) {
3703
3719
  return " " + Y;
3704
3720
  }).join(`
3705
- `))) : O = p.stylize("[Circular]", "special")), B(F)) {
3721
+ `))) : x = p.stylize("[Circular]", "special")), O(F)) {
3706
3722
  if (L && R.match(/^\d+$/))
3707
- return O;
3723
+ return x;
3708
3724
  F = JSON.stringify("" + R), F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (F = F.slice(1, -1), F = p.stylize(F, "name")) : (F = F.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), F = p.stylize(F, "string"));
3709
3725
  }
3710
- return F + ": " + O;
3726
+ return F + ": " + x;
3711
3727
  }
3712
3728
  function N(p, b, S) {
3713
3729
  var I = p.reduce(function(R, L) {
@@ -3718,7 +3734,7 @@ var ks = ar.exports;
3718
3734
  `) + " " + p.join(`,
3719
3735
  `) + " " + S[1] : S[0] + b + " " + p.join(", ") + " " + S[1];
3720
3736
  }
3721
- t.types = bn;
3737
+ t.types = mn;
3722
3738
  function Q(p) {
3723
3739
  return Array.isArray(p);
3724
3740
  }
@@ -3731,28 +3747,28 @@ var ks = ar.exports;
3731
3747
  return p === null;
3732
3748
  }
3733
3749
  t.isNull = X;
3734
- function ye(p) {
3750
+ function de(p) {
3735
3751
  return p == null;
3736
3752
  }
3737
- t.isNullOrUndefined = ye;
3753
+ t.isNullOrUndefined = de;
3738
3754
  function ee(p) {
3739
3755
  return typeof p == "number";
3740
3756
  }
3741
3757
  t.isNumber = ee;
3742
- function x(p) {
3758
+ function B(p) {
3743
3759
  return typeof p == "string";
3744
3760
  }
3745
- t.isString = x;
3761
+ t.isString = B;
3746
3762
  function j(p) {
3747
3763
  return typeof p == "symbol";
3748
3764
  }
3749
3765
  t.isSymbol = j;
3750
- function B(p) {
3766
+ function O(p) {
3751
3767
  return p === void 0;
3752
3768
  }
3753
- t.isUndefined = B;
3769
+ t.isUndefined = O;
3754
3770
  function re(p) {
3755
- return ne(p) && le(p) === "[object RegExp]";
3771
+ return ne(p) && fe(p) === "[object RegExp]";
3756
3772
  }
3757
3773
  t.isRegExp = re, t.types.isRegExp = re;
3758
3774
  function ne(p) {
@@ -3760,29 +3776,29 @@ var ks = ar.exports;
3760
3776
  }
3761
3777
  t.isObject = ne;
3762
3778
  function _e(p) {
3763
- return ne(p) && le(p) === "[object Date]";
3779
+ return ne(p) && fe(p) === "[object Date]";
3764
3780
  }
3765
3781
  t.isDate = _e, t.types.isDate = _e;
3766
3782
  function Se(p) {
3767
- return ne(p) && (le(p) === "[object Error]" || p instanceof Error);
3783
+ return ne(p) && (fe(p) === "[object Error]" || p instanceof Error);
3768
3784
  }
3769
3785
  t.isError = Se, t.types.isNativeError = Se;
3770
- function fe(p) {
3786
+ function ce(p) {
3771
3787
  return typeof p == "function";
3772
3788
  }
3773
- t.isFunction = fe;
3774
- function rt(p) {
3789
+ t.isFunction = ce;
3790
+ function tt(p) {
3775
3791
  return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
3776
3792
  typeof p > "u";
3777
3793
  }
3778
- t.isPrimitive = rt, t.isBuffer = xs;
3779
- function le(p) {
3794
+ t.isPrimitive = tt, t.isBuffer = Bs;
3795
+ function fe(p) {
3780
3796
  return Object.prototype.toString.call(p);
3781
3797
  }
3782
- function Be(p) {
3798
+ function Oe(p) {
3783
3799
  return p < 10 ? "0" + p.toString(10) : p.toString(10);
3784
3800
  }
3785
- var Oe = [
3801
+ var xe = [
3786
3802
  "Jan",
3787
3803
  "Feb",
3788
3804
  "Mar",
@@ -3796,16 +3812,16 @@ var ks = ar.exports;
3796
3812
  "Nov",
3797
3813
  "Dec"
3798
3814
  ];
3799
- function nt() {
3815
+ function rt() {
3800
3816
  var p = /* @__PURE__ */ new Date(), b = [
3801
- Be(p.getHours()),
3802
- Be(p.getMinutes()),
3803
- Be(p.getSeconds())
3817
+ Oe(p.getHours()),
3818
+ Oe(p.getMinutes()),
3819
+ Oe(p.getSeconds())
3804
3820
  ].join(":");
3805
- return [p.getDate(), Oe[p.getMonth()], b].join(" ");
3821
+ return [p.getDate(), xe[p.getMonth()], b].join(" ");
3806
3822
  }
3807
3823
  t.log = function() {
3808
- console.log("%s - %s", nt(), t.format.apply(t, arguments));
3824
+ console.log("%s - %s", rt(), t.format.apply(t, arguments));
3809
3825
  }, t.inherits = ks, t._extend = function(p, b) {
3810
3826
  if (!b || !ne(b))
3811
3827
  return p;
@@ -3813,18 +3829,18 @@ var ks = ar.exports;
3813
3829
  p[S[I]] = b[S[I]];
3814
3830
  return p;
3815
3831
  };
3816
- function xe(p, b) {
3832
+ function Be(p, b) {
3817
3833
  return Object.prototype.hasOwnProperty.call(p, b);
3818
3834
  }
3819
- var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3835
+ var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3820
3836
  t.promisify = function(b) {
3821
3837
  if (typeof b != "function")
3822
3838
  throw new TypeError('The "original" argument must be of type Function');
3823
- if (he && b[he]) {
3824
- var S = b[he];
3839
+ if (le && b[le]) {
3840
+ var S = b[le];
3825
3841
  if (typeof S != "function")
3826
3842
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
3827
- return Object.defineProperty(S, he, {
3843
+ return Object.defineProperty(S, le, {
3828
3844
  value: S,
3829
3845
  enumerable: !1,
3830
3846
  writable: !1,
@@ -3834,8 +3850,8 @@ var ks = ar.exports;
3834
3850
  function S() {
3835
3851
  for (var I, R, L = new Promise(function(U, Y) {
3836
3852
  I = U, R = Y;
3837
- }), F = [], O = 0; O < arguments.length; O++)
3838
- F.push(arguments[O]);
3853
+ }), F = [], x = 0; x < arguments.length; x++)
3854
+ F.push(arguments[x]);
3839
3855
  F.push(function(U, Y) {
3840
3856
  U ? R(U) : I(Y);
3841
3857
  });
@@ -3846,7 +3862,7 @@ var ks = ar.exports;
3846
3862
  }
3847
3863
  return L;
3848
3864
  }
3849
- return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), he && Object.defineProperty(S, he, {
3865
+ return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), le && Object.defineProperty(S, le, {
3850
3866
  value: S,
3851
3867
  enumerable: !1,
3852
3868
  writable: !1,
@@ -3855,7 +3871,7 @@ var ks = ar.exports;
3855
3871
  S,
3856
3872
  e(b)
3857
3873
  );
3858
- }, t.promisify.custom = he;
3874
+ }, t.promisify.custom = le;
3859
3875
  function ke(p, b) {
3860
3876
  if (!p) {
3861
3877
  var S = new Error("Promise was rejected with a falsy value");
@@ -3876,11 +3892,11 @@ var ks = ar.exports;
3876
3892
  return R.apply(L, arguments);
3877
3893
  };
3878
3894
  p.apply(this, S).then(
3879
- function(O) {
3880
- C.process.nextTick(F.bind(null, null, O));
3895
+ function(x) {
3896
+ T.process.nextTick(F.bind(null, null, x));
3881
3897
  },
3882
- function(O) {
3883
- C.process.nextTick(ke.bind(null, O, F));
3898
+ function(x) {
3899
+ T.process.nextTick(ke.bind(null, x, F));
3884
3900
  }
3885
3901
  );
3886
3902
  }
@@ -3890,8 +3906,8 @@ var ks = ar.exports;
3890
3906
  ), b;
3891
3907
  }
3892
3908
  t.callbackify = V;
3893
- })(xt);
3894
- const { inherits: Ps, format: Gt } = xt;
3909
+ })(Bt);
3910
+ const { inherits: Ps, format: Gt } = Bt;
3895
3911
  function Re(t, e, r = Error) {
3896
3912
  if (!t)
3897
3913
  throw new Error("Avvio error code must not be empty");
@@ -3906,7 +3922,7 @@ function Re(t, e, r = Error) {
3906
3922
  return `${this.name} [${this.code}]: ${this.message}`;
3907
3923
  }, Ps(o, r), o;
3908
3924
  }
3909
- var Nn = {
3925
+ var Rn = {
3910
3926
  createError: Re,
3911
3927
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
3912
3928
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -3954,7 +3970,7 @@ var Nn = {
3954
3970
  return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
3955
3971
  }).join("");
3956
3972
  };
3957
- const Ns = Rs, jr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), Mr = Symbol("avvio.TimeTree.getParent"), Vr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
3973
+ const Ns = Rs, Dr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), jr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), Vr = Symbol("avvio.TimeTree.addNode");
3958
3974
  let Ls = class {
3959
3975
  constructor() {
3960
3976
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
@@ -3962,7 +3978,7 @@ let Ls = class {
3962
3978
  [Qt](e) {
3963
3979
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
3964
3980
  }
3965
- [jr](e) {
3981
+ [Dr](e) {
3966
3982
  this.tableId.delete(e.id);
3967
3983
  const r = this.tableLabel.get(e.label);
3968
3984
  if (r.id) {
@@ -3971,16 +3987,16 @@ let Ls = class {
3971
3987
  }
3972
3988
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
3973
3989
  }
3974
- [Mr](e) {
3990
+ [jr](e) {
3975
3991
  if (e === null)
3976
3992
  return this.root;
3977
3993
  const r = this.tableLabel.get(e);
3978
3994
  return r.id ? r : r[r.length - 1];
3979
3995
  }
3980
- [Vr](e) {
3996
+ [Mr](e) {
3981
3997
  return this.tableId.get(e);
3982
3998
  }
3983
- [qr](e, r, o) {
3999
+ [Vr](e, r, o) {
3984
4000
  if (e === null)
3985
4001
  return this.root = {
3986
4002
  id: "root",
@@ -3988,7 +4004,7 @@ let Ls = class {
3988
4004
  start: o,
3989
4005
  nodes: []
3990
4006
  }, this[Qt](this.root), this.root.id;
3991
- const u = this[Mr](e), l = `${r}-${Math.random()}`, f = {
4007
+ const u = this[jr](e), l = `${r}-${Math.random()}`, f = {
3992
4008
  id: l,
3993
4009
  parent: e,
3994
4010
  start: o,
@@ -3998,11 +4014,11 @@ let Ls = class {
3998
4014
  return u.nodes.push(f), this[Qt](f), l;
3999
4015
  }
4000
4016
  start(e, r, o = Date.now()) {
4001
- return this[qr](e, r, o);
4017
+ return this[Vr](e, r, o);
4002
4018
  }
4003
4019
  stop(e, r = Date.now()) {
4004
- const o = this[Vr](e);
4005
- o && (o.stop = r, o.diff = o.stop - o.start || 0, this[jr](o));
4020
+ const o = this[Mr](e);
4021
+ o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
4006
4022
  }
4007
4023
  toJSON() {
4008
4024
  return Object.assign({}, this.root);
@@ -4012,11 +4028,11 @@ let Ls = class {
4012
4028
  return Ns(r);
4013
4029
  }
4014
4030
  };
4015
- var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, Gr;
4031
+ var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, qr;
4016
4032
  function $s() {
4017
- if (Gr)
4033
+ if (qr)
4018
4034
  return zt;
4019
- Gr = 1;
4035
+ qr = 1;
4020
4036
  var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
4021
4037
  zt = function(g, w) {
4022
4038
  w = w || {};
@@ -4035,8 +4051,8 @@ function $s() {
4035
4051
  g
4036
4052
  );
4037
4053
  if (w) {
4038
- var E = parseFloat(w[1]), T = (w[2] || "ms").toLowerCase();
4039
- switch (T) {
4054
+ var E = parseFloat(w[1]), C = (w[2] || "ms").toLowerCase();
4055
+ switch (C) {
4040
4056
  case "years":
4041
4057
  case "year":
4042
4058
  case "yrs":
@@ -4089,9 +4105,9 @@ function $s() {
4089
4105
  var w = Math.abs(g);
4090
4106
  return w >= o ? A(g, w, o, "day") : w >= r ? A(g, w, r, "hour") : w >= e ? A(g, w, e, "minute") : w >= t ? A(g, w, t, "second") : g + " ms";
4091
4107
  }
4092
- function A(g, w, E, T) {
4108
+ function A(g, w, E, C) {
4093
4109
  var P = w >= E * 1.5;
4094
- return Math.round(g / E) + " " + T + (P ? "s" : "");
4110
+ return Math.round(g / E) + " " + C + (P ? "s" : "");
4095
4111
  }
4096
4112
  return zt;
4097
4113
  }
@@ -4107,18 +4123,18 @@ function Ds(t) {
4107
4123
  }
4108
4124
  r.selectColor = e;
4109
4125
  function r(g) {
4110
- let w, E = null, T, P;
4126
+ let w, E = null, C, P;
4111
4127
  function N(...Q) {
4112
4128
  if (!N.enabled)
4113
4129
  return;
4114
- const z = N, X = Number(/* @__PURE__ */ new Date()), ye = X - (w || X);
4115
- z.diff = ye, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4130
+ const z = N, X = Number(/* @__PURE__ */ new Date()), de = X - (w || X);
4131
+ z.diff = de, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4116
4132
  let ee = 0;
4117
- Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, B) => {
4133
+ Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, O) => {
4118
4134
  if (j === "%%")
4119
4135
  return "%";
4120
4136
  ee++;
4121
- const re = r.formatters[B];
4137
+ const re = r.formatters[O];
4122
4138
  if (typeof re == "function") {
4123
4139
  const ne = Q[ee];
4124
4140
  j = re.call(z, ne), Q.splice(ee, 1), ee--;
@@ -4129,7 +4145,7 @@ function Ds(t) {
4129
4145
  return N.namespace = g, N.useColors = r.useColors(), N.color = r.selectColor(g), N.extend = o, N.destroy = r.destroy, Object.defineProperty(N, "enabled", {
4130
4146
  enumerable: !0,
4131
4147
  configurable: !1,
4132
- get: () => E !== null ? E : (T !== r.namespaces && (T = r.namespaces, P = r.enabled(g)), P),
4148
+ get: () => E !== null ? E : (C !== r.namespaces && (C = r.namespaces, P = r.enabled(g)), P),
4133
4149
  set: (Q) => {
4134
4150
  E = Q;
4135
4151
  }
@@ -4142,8 +4158,8 @@ function Ds(t) {
4142
4158
  function s(g) {
4143
4159
  r.save(g), r.namespaces = g, r.names = [], r.skips = [];
4144
4160
  let w;
4145
- const E = (typeof g == "string" ? g : "").split(/[\s,]+/), T = E.length;
4146
- for (w = 0; w < T; w++)
4161
+ const E = (typeof g == "string" ? g : "").split(/[\s,]+/), C = E.length;
4162
+ for (w = 0; w < C; w++)
4147
4163
  E[w] && (g = E[w].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
4148
4164
  }
4149
4165
  function u() {
@@ -4292,7 +4308,7 @@ var js = Ds;
4292
4308
  d = e.storage.getItem("debug");
4293
4309
  } catch {
4294
4310
  }
4295
- return !d && typeof C.process < "u" && "env" in C.process && (d = C.process.env.DEBUG), d;
4311
+ return !d && typeof T.process < "u" && "env" in T.process && (d = T.process.env.DEBUG), d;
4296
4312
  }
4297
4313
  function l() {
4298
4314
  try {
@@ -4310,8 +4326,8 @@ var js = Ds;
4310
4326
  }
4311
4327
  };
4312
4328
  })(ur, ur.exports);
4313
- var Ln = ur.exports;
4314
- const Ms = un, Vs = mn.EventEmitter, qs = xt.inherits, W = Ln("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Nn, Kt = Symbol.for("plugin-meta");
4329
+ var Nn = ur.exports;
4330
+ const Ms = an, Vs = gn.EventEmitter, qs = Bt.inherits, W = Nn("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Rn, Kt = Symbol.for("plugin-meta");
4315
4331
  function Qs(t, e) {
4316
4332
  return t[Kt] && t[Kt].name ? t[Kt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4317
4333
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
@@ -4322,16 +4338,16 @@ function zs() {
4322
4338
  t.resolve = e, t.reject = r;
4323
4339
  }), t;
4324
4340
  }
4325
- function tt(t, e, r, o, s) {
4341
+ function et(t, e, r, o, s) {
4326
4342
  this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name = Qs(e, r), this.isAfter = o, this.q = Ms(t, Ks, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4327
4343
  }
4328
- qs(tt, Vs);
4329
- tt.prototype.exec = function(t, e) {
4344
+ qs(et, Vs);
4345
+ et.prototype.exec = function(t, e) {
4330
4346
  const r = this.func;
4331
4347
  let o = !1;
4332
4348
  const s = this.name;
4333
4349
  if (this.parent._error && !this.isAfter) {
4334
- W("skipping loading of plugin as parent errored and it is not an after", s), C.process.nextTick(e);
4350
+ W("skipping loading of plugin as parent errored and it is not an after", s), T.process.nextTick(e);
4335
4351
  return;
4336
4352
  }
4337
4353
  if (this.isAfter)
@@ -4358,25 +4374,25 @@ tt.prototype.exec = function(t, e) {
4358
4374
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4359
4375
  const f = r(this.server, this.opts, l);
4360
4376
  f && typeof f.then == "function" && (W("exec: resolving promise", s), f.then(
4361
- () => C.process.nextTick(l),
4362
- (d) => C.process.nextTick(l, d)
4377
+ () => T.process.nextTick(l),
4378
+ (d) => T.process.nextTick(l, d)
4363
4379
  ));
4364
4380
  };
4365
- tt.prototype.loadedSoFar = function() {
4381
+ et.prototype.loadedSoFar = function() {
4366
4382
  if (this.loaded)
4367
4383
  return Promise.resolve();
4368
4384
  const t = () => {
4369
4385
  this.server.after((r, o) => {
4370
- this._error = r, this.q.pause(), r ? (W("rejecting promise", this.name, r), this._promise.reject(r)) : (W("resolving promise", this.name), this._promise.resolve()), this._promise = null, C.process.nextTick(o, r);
4386
+ this._error = r, this.q.pause(), r ? (W("rejecting promise", this.name, r), this._promise.reject(r)) : (W("resolving promise", this.name), this._promise.resolve()), this._promise = null, T.process.nextTick(o, r);
4371
4387
  }), this.q.resume();
4372
4388
  };
4373
4389
  let e;
4374
4390
  return this._promise ? e = Promise.resolve() : (this._promise = zs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4375
4391
  };
4376
- tt.prototype.enqueue = function(t, e) {
4392
+ et.prototype.enqueue = function(t, e) {
4377
4393
  W("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
4378
4394
  };
4379
- tt.prototype.finish = function(t, e) {
4395
+ et.prototype.finish = function(t, e) {
4380
4396
  W("finish", this.name, t);
4381
4397
  const r = () => {
4382
4398
  this.loaded || (W("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
@@ -4403,7 +4419,7 @@ tt.prototype.finish = function(t, e) {
4403
4419
  };
4404
4420
  function Ks(t, e) {
4405
4421
  const r = this;
4406
- C.process.nextTick(Er.bind(r), t, e);
4422
+ T.process.nextTick(Er.bind(r), t, e);
4407
4423
  }
4408
4424
  function Er(t, e) {
4409
4425
  if (typeof t.func.then == "function") {
@@ -4421,16 +4437,16 @@ function Er(t, e) {
4421
4437
  }
4422
4438
  function Hs() {
4423
4439
  }
4424
- Ar.exports = tt;
4440
+ Ar.exports = et;
4425
4441
  Ar.exports.loadPlugin = Er;
4426
4442
  var Ws = Ar.exports;
4427
- const Qr = un, Js = mn.EventEmitter, Ys = xt.inherits, {
4443
+ const Gr = an, Js = gn.EventEmitter, Ys = Bt.inherits, {
4428
4444
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
4429
4445
  AVV_ERR_CALLBACK_NOT_FN: ct,
4430
4446
  AVV_ERR_PLUGIN_NOT_VALID: Xs,
4431
4447
  AVV_ERR_ROOT_PLG_BOOTED: Zs,
4432
4448
  AVV_ERR_READY_TIMEOUT: ea
4433
- } = Nn, ta = Us, cr = Ws, Ze = Ln("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4449
+ } = Rn, ta = Us, cr = Ws, Xe = Nn("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4434
4450
  function ra(t, e, r) {
4435
4451
  const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", d = o.close || "close";
4436
4452
  if (t[s])
@@ -4441,7 +4457,7 @@ function ra(t, e, r) {
4441
4457
  throw new Ht(l);
4442
4458
  t[s] = function(A, g) {
4443
4459
  return r.use(A, g), this;
4444
- }, Object.defineProperty(t, "then", { get: Un.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4460
+ }, Object.defineProperty(t, "then", { get: Ln.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4445
4461
  return typeof A != "function" ? r._loadRegistered() : (r.after(Jt(A, this)), this);
4446
4462
  }, t[l] = function(A) {
4447
4463
  if (A && typeof A != "function")
@@ -4462,17 +4478,17 @@ function J(t, e, r) {
4462
4478
  const o = new J(t, e, r);
4463
4479
  return t && ra(t, e, o), o;
4464
4480
  }
4465
- 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 ta(), this._readyQ = Qr(this, $n, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4466
- this.emit("start"), this._readyQ.drain = zr;
4467
- }, this._closeQ = Qr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4468
- this.emit("close"), this._closeQ.drain = zr;
4481
+ 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 ta(), this._readyQ = Gr(this, Un, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4482
+ this.emit("start"), this._readyQ.drain = Qr;
4483
+ }, this._closeQ = Gr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4484
+ this.emit("close"), this._closeQ.drain = Qr;
4469
4485
  }, this._doStart = null, this._root = new cr(this, na.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4470
4486
  const l = this.pluginTree.start(null, s, u);
4471
4487
  this._root.once("loaded", (f, d, A) => {
4472
4488
  this.pluginTree.stop(l, A);
4473
4489
  });
4474
4490
  }), cr.loadPlugin.call(this, this._root, (o) => {
4475
- Ze("root plugin ready");
4491
+ Xe("root plugin ready");
4476
4492
  try {
4477
4493
  this.emit("preReady"), this._root = null;
4478
4494
  } catch (s) {
@@ -4491,7 +4507,7 @@ function na(t, e, r) {
4491
4507
  }
4492
4508
  Ys(J, Js);
4493
4509
  J.prototype.start = function() {
4494
- return this.started = !0, C.process.nextTick(this._doStart), this;
4510
+ return this.started = !0, T.process.nextTick(this._doStart), this;
4495
4511
  };
4496
4512
  J.prototype.override = function(t, e, r) {
4497
4513
  return t;
@@ -4507,9 +4523,9 @@ J.prototype.use = function(t, e) {
4507
4523
  };
4508
4524
  J.prototype._loadRegistered = function() {
4509
4525
  const t = this._current[0];
4510
- return !this.started && !this.booted && C.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4526
+ return !this.started && !this.booted && T.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4511
4527
  };
4512
- Object.defineProperty(J.prototype, "then", { get: Un });
4528
+ Object.defineProperty(J.prototype, "then", { get: Ln });
4513
4529
  J.prototype._addPlugin = function(t, e, r) {
4514
4530
  if (t = ia(t), e = e || {}, this.booted)
4515
4531
  throw new Zs();
@@ -4530,7 +4546,7 @@ J.prototype.after = function(t) {
4530
4546
  return this._loadRegistered();
4531
4547
  this._addPlugin(e.bind(this), {}, !0);
4532
4548
  function e(r, o, s) {
4533
- $n.call(this, t, s);
4549
+ Un.call(this, t, s);
4534
4550
  }
4535
4551
  return this;
4536
4552
  };
@@ -4557,7 +4573,7 @@ J.prototype.close = function(t) {
4557
4573
  };
4558
4574
  });
4559
4575
  return this.ready(() => {
4560
- this._error = null, this._closeQ.push(t), C.process.nextTick(this._closeQ.resume.bind(this._closeQ));
4576
+ this._error = null, this._closeQ.push(t), T.process.nextTick(this._closeQ.resume.bind(this._closeQ));
4561
4577
  }), e;
4562
4578
  };
4563
4579
  J.prototype.ready = function(t) {
@@ -4571,7 +4587,7 @@ J.prototype.ready = function(t) {
4571
4587
  this._readyQ.push(s), this.start();
4572
4588
  const o = this._current[0].server;
4573
4589
  function s(u, l, f) {
4574
- u ? r(u) : e(o), C.process.nextTick(f);
4590
+ u ? r(u) : e(o), T.process.nextTick(f);
4575
4591
  }
4576
4592
  });
4577
4593
  };
@@ -4581,26 +4597,26 @@ J.prototype.prettyPrint = function() {
4581
4597
  J.prototype.toJSON = function() {
4582
4598
  return this.pluginTree.toJSON();
4583
4599
  };
4584
- function zr() {
4600
+ function Qr() {
4585
4601
  }
4586
- function Un() {
4602
+ function Ln() {
4587
4603
  if (this.booted) {
4588
- Ze("thenify returning null because we are already booted");
4604
+ Xe("thenify returning null because we are already booted");
4589
4605
  return;
4590
4606
  }
4591
4607
  if (this[Wt]) {
4592
4608
  this[Wt] = !1;
4593
4609
  return;
4594
4610
  }
4595
- return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4611
+ return Xe("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4596
4612
  }
4597
- function $n(t, e) {
4613
+ function Un(t, e) {
4598
4614
  const r = this._server, o = this._error;
4599
4615
  let s;
4600
4616
  if (this._error = null, t.length === 0)
4601
- this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() => C.process.nextTick(e), (u) => C.process.nextTick(e, u)) : C.process.nextTick(e);
4617
+ this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() => T.process.nextTick(e), (u) => T.process.nextTick(e, u)) : T.process.nextTick(e);
4602
4618
  else if (t.length === 1)
4603
- s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() => C.process.nextTick(e), (u) => C.process.nextTick(e, u)) : C.process.nextTick(e);
4619
+ s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() => T.process.nextTick(e), (u) => T.process.nextTick(e, u)) : T.process.nextTick(e);
4604
4620
  else if (this._timeout === 0) {
4605
4621
  const u = (l) => {
4606
4622
  this._error = l, e(this._error);
@@ -4611,9 +4627,9 @@ function $n(t, e) {
4611
4627
  }
4612
4628
  function oa(t, e, r, o) {
4613
4629
  const s = t.name;
4614
- Ze("setting up ready timeout", s, this._timeout);
4630
+ Xe("setting up ready timeout", s, this._timeout);
4615
4631
  let u = setTimeout(() => {
4616
- Ze("timed out", s), u = null;
4632
+ Xe("timed out", s), u = null;
4617
4633
  const f = new ea(s);
4618
4634
  f.fn = t, this._error = f, o(f);
4619
4635
  }, this._timeout);
@@ -4626,10 +4642,10 @@ function sa(t, e) {
4626
4642
  const r = this._server, o = t[this._isOnCloseHandlerKey];
4627
4643
  if (t.length === 0 || t.length === 1) {
4628
4644
  let s;
4629
- o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
4630
- () => C.process.nextTick(e),
4631
- (u) => C.process.nextTick(e, u)
4632
- )) : C.process.nextTick(e);
4645
+ o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Xe("resolving close/onClose promise"), s.then(
4646
+ () => T.process.nextTick(e),
4647
+ (u) => T.process.nextTick(e, u)
4648
+ )) : T.process.nextTick(e);
4633
4649
  } else
4634
4650
  t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
4635
4651
  }
@@ -4638,10 +4654,10 @@ function aa(t, e) {
4638
4654
  function r(o, s) {
4639
4655
  let u;
4640
4656
  t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
4641
- C.process.nextTick(s);
4642
- }, s) : C.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
4643
- C.process.nextTick(s);
4644
- }, s) : C.process.nextTick(s)) : t(this, s);
4657
+ T.process.nextTick(s);
4658
+ }, s) : T.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
4659
+ T.process.nextTick(s);
4660
+ }, s) : T.process.nextTick(s)) : t(this, s);
4645
4661
  }
4646
4662
  }
4647
4663
  function Jt(t, e) {
@@ -4649,10 +4665,10 @@ function Jt(t, e) {
4649
4665
  function r(o, s) {
4650
4666
  let u;
4651
4667
  t ? t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
4652
- C.process.nextTick(s, o);
4653
- }, s) : C.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
4654
- C.process.nextTick(s);
4655
- }, s) : C.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : C.process.nextTick(s);
4668
+ T.process.nextTick(s, o);
4669
+ }, s) : T.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
4670
+ T.process.nextTick(s);
4671
+ }, s) : T.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : T.process.nextTick(s);
4656
4672
  }
4657
4673
  }
4658
4674
  dr.exports = J;
@@ -4664,10 +4680,10 @@ dr.exports.express = function(t) {
4664
4680
  });
4665
4681
  };
4666
4682
  var ua = dr.exports;
4667
- const ca = /* @__PURE__ */ Wn(ua);
4683
+ const ca = /* @__PURE__ */ Hn(ua);
4668
4684
  function _a(t, e = !0, r = !0) {
4669
4685
  const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ca(/* @__PURE__ */ Object.create({}), { autostart: !1 });
4670
- return s.use(Bi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ci), s.use(to), s.use(Qi), r && s.after(async (u, l, f) => {
4686
+ return s.use(Oi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ti), s.use(to), s.use(Gi), r && s.after(async (u, l, f) => {
4671
4687
  if (u)
4672
4688
  throw u;
4673
4689
  await l.sdk.initializeApp(), f();