@streamlayer/sdk-web 0.28.17 → 0.28.18
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/cjs/index.js +7 -7
- package/lib/es/index.js +646 -657
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { QuestionType as Re, SilenceSetting as Kr, 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 ue } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
|
-
import { computed as Hr, map as
|
|
4
|
+
import { computed as Hr, map as qn, atom as Tt } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
|
-
import { Code as
|
|
8
|
-
import { createGrpcWebTransport as
|
|
9
|
-
import { nanoquery as
|
|
10
|
-
import { Events as
|
|
7
|
+
import { Code as Qn, createPromiseClient as Gn, createCallbackClient as zn } from "@connectrpc/connect";
|
|
8
|
+
import { createGrpcWebTransport as Kn } from "@connectrpc/connect-web";
|
|
9
|
+
import { nanoquery as Hn } from "@nanostores/query";
|
|
10
|
+
import { Events as Wn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
11
|
import { Client as _t } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
12
|
import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
|
-
import { pino as
|
|
13
|
+
import { pino as Jn } from "pino";
|
|
14
14
|
import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
15
|
import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
16
|
import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
17
17
|
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
-
function
|
|
18
|
+
function Yn(t) {
|
|
19
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
20
20
|
}
|
|
21
21
|
var O = {}, Xr = {}, Ct = {};
|
|
22
|
-
Ct.byteLength =
|
|
23
|
-
Ct.toByteArray =
|
|
24
|
-
Ct.fromByteArray =
|
|
25
|
-
var we = [], se = [],
|
|
26
|
-
for (var qe = 0,
|
|
22
|
+
Ct.byteLength = ei;
|
|
23
|
+
Ct.toByteArray = ri;
|
|
24
|
+
Ct.fromByteArray = oi;
|
|
25
|
+
var we = [], se = [], Xn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
|
+
for (var qe = 0, Zn = Nt.length; qe < Zn; ++qe)
|
|
27
27
|
we[qe] = Nt[qe], se[Nt.charCodeAt(qe)] = qe;
|
|
28
28
|
se["-".charCodeAt(0)] = 62;
|
|
29
29
|
se["_".charCodeAt(0)] = 63;
|
|
@@ -36,30 +36,30 @@ function Zr(t) {
|
|
|
36
36
|
var o = r === e ? 0 : 4 - r % 4;
|
|
37
37
|
return [r, o];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ei(t) {
|
|
40
40
|
var e = Zr(t), r = e[0], o = e[1];
|
|
41
41
|
return (r + o) * 3 / 4 - o;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ti(t, e, r) {
|
|
44
44
|
return (e + r) * 3 / 4 - r;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var e, r = Zr(t), o = r[0], s = r[1], u = new
|
|
46
|
+
function ri(t) {
|
|
47
|
+
var e, r = Zr(t), o = r[0], s = r[1], u = new Xn(ti(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, p;
|
|
48
48
|
for (p = 0; p < f; p += 4)
|
|
49
49
|
e = se[t.charCodeAt(p)] << 18 | se[t.charCodeAt(p + 1)] << 12 | se[t.charCodeAt(p + 2)] << 6 | se[t.charCodeAt(p + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
|
|
50
50
|
return s === 2 && (e = se[t.charCodeAt(p)] << 2 | se[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(p)] << 10 | se[t.charCodeAt(p + 1)] << 4 | se[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ni(t) {
|
|
53
53
|
return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ii(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(
|
|
57
|
+
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ni(o));
|
|
58
58
|
return s.join("");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function oi(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(
|
|
62
|
+
s.push(ii(t, l, l + u > f ? f : l + u));
|
|
63
63
|
return o === 1 ? (e = t[r - 1], s.push(
|
|
64
64
|
we[e >> 2] + we[e << 4 & 63] + "=="
|
|
65
65
|
)) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
|
|
@@ -69,27 +69,27 @@ function ii(t) {
|
|
|
69
69
|
var fr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
71
|
fr.read = function(t, e, r, o, s) {
|
|
72
|
-
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1,
|
|
73
|
-
for (b += E, u =
|
|
72
|
+
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, v = p >> 1, g = -7, b = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + b];
|
|
73
|
+
for (b += E, u = F & (1 << -g) - 1, F >>= -g, g += f; g > 0; u = u * 256 + t[e + b], b += E, g -= 8)
|
|
74
74
|
;
|
|
75
75
|
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + b], b += E, g -= 8)
|
|
76
76
|
;
|
|
77
77
|
if (u === 0)
|
|
78
|
-
u = 1 -
|
|
78
|
+
u = 1 - v;
|
|
79
79
|
else {
|
|
80
80
|
if (u === p)
|
|
81
|
-
return l ? NaN : (
|
|
82
|
-
l = l + Math.pow(2, o), u = u -
|
|
81
|
+
return l ? NaN : (F ? -1 : 1) * (1 / 0);
|
|
82
|
+
l = l + Math.pow(2, o), u = u - v;
|
|
83
83
|
}
|
|
84
|
-
return (
|
|
84
|
+
return (F ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
86
|
fr.write = function(t, e, r, o, s, u) {
|
|
87
|
-
var l, f, p,
|
|
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 * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r +
|
|
87
|
+
var l, f, p, v = u * 8 - s - 1, g = (1 << v) - 1, b = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, N = o ? 1 : -1, P = 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 * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = f & 255, F += N, f /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
|
-
for (l = l << s | f,
|
|
90
|
+
for (l = l << s | f, v += s; v > 0; t[r + F] = l & 255, F += N, l /= 256, v -= 8)
|
|
91
91
|
;
|
|
92
|
-
t[r +
|
|
92
|
+
t[r + F - N] |= P * 128;
|
|
93
93
|
};
|
|
94
94
|
/*!
|
|
95
95
|
* The buffer module from node.js, for the browser.
|
|
@@ -174,20 +174,20 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
174
174
|
f.from = function(a, n, i) {
|
|
175
175
|
return p(a, n, i);
|
|
176
176
|
}, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
|
|
177
|
-
function
|
|
177
|
+
function v(a) {
|
|
178
178
|
if (typeof a != "number")
|
|
179
179
|
throw new TypeError('"size" argument must be of type number');
|
|
180
180
|
if (a < 0)
|
|
181
181
|
throw new RangeError('The value "' + a + '" is invalid for option "size"');
|
|
182
182
|
}
|
|
183
183
|
function g(a, n, i) {
|
|
184
|
-
return
|
|
184
|
+
return v(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
|
|
185
185
|
}
|
|
186
186
|
f.alloc = function(a, n, i) {
|
|
187
187
|
return g(a, n, i);
|
|
188
188
|
};
|
|
189
189
|
function b(a) {
|
|
190
|
-
return
|
|
190
|
+
return v(a), l(a < 0 ? 0 : I(a) | 0);
|
|
191
191
|
}
|
|
192
192
|
f.allocUnsafe = function(a) {
|
|
193
193
|
return b(a);
|
|
@@ -202,7 +202,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
202
202
|
const h = c.write(a, n);
|
|
203
203
|
return h !== i && (c = c.slice(0, h)), c;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function F(a) {
|
|
206
206
|
const n = a.length < 0 ? 0 : I(a.length) | 0, i = l(n);
|
|
207
207
|
for (let c = 0; c < n; c += 1)
|
|
208
208
|
i[c] = a[c] & 255;
|
|
@@ -213,7 +213,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
213
213
|
const n = new Uint8Array(a);
|
|
214
214
|
return P(n.buffer, n.byteOffset, n.byteLength);
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return F(a);
|
|
217
217
|
}
|
|
218
218
|
function P(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) :
|
|
232
|
+
return typeof a.length != "number" || Rt(a.length) ? l(0) : F(a);
|
|
233
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
234
|
-
return
|
|
234
|
+
return F(a.data);
|
|
235
235
|
}
|
|
236
236
|
function I(a) {
|
|
237
237
|
if (a >= s)
|
|
@@ -346,10 +346,10 @@ 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
|
|
349
|
+
return le(this, n, i);
|
|
350
350
|
case "utf8":
|
|
351
351
|
case "utf-8":
|
|
352
|
-
return
|
|
352
|
+
return fe(this, n, i);
|
|
353
353
|
case "ascii":
|
|
354
354
|
return nt(this, n, i);
|
|
355
355
|
case "latin1":
|
|
@@ -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
|
|
372
|
+
function T(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
|
-
|
|
381
|
+
T(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
|
-
|
|
388
|
+
T(this, i, i + 3), T(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
|
-
|
|
395
|
+
T(this, i, i + 7), T(this, i + 1, i + 6), T(this, i + 2, i + 5), T(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 ?
|
|
399
|
+
return n === 0 ? "" : arguments.length === 0 ? fe(this, 0, n) : U.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");
|
|
@@ -510,8 +510,8 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
510
510
|
function Se(a, n, i, c) {
|
|
511
511
|
return ot(ht(n), a, i, c);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
return ot(
|
|
513
|
+
function ce(a, n, i, c) {
|
|
514
|
+
return ot(S(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
|
|
549
|
+
return ce(this, n, i, c);
|
|
550
550
|
default:
|
|
551
551
|
if (m)
|
|
552
552
|
throw new TypeError("Unknown encoding: " + h);
|
|
@@ -561,7 +561,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
561
561
|
function rt(a, n, i) {
|
|
562
562
|
return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function fe(a, n, i) {
|
|
565
565
|
i = Math.min(a.length, i);
|
|
566
566
|
const c = [];
|
|
567
567
|
let h = n;
|
|
@@ -615,12 +615,12 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
615
615
|
c += String.fromCharCode(a[h]);
|
|
616
616
|
return c;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
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 +=
|
|
623
|
+
h += Vn[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 || H(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,
|
|
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) && oe(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,
|
|
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) && oe(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 || H(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,
|
|
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) && oe(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,
|
|
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) && oe(n, this.length - 8);
|
|
715
715
|
const h = (i << 24) + // Overflow
|
|
@@ -935,7 +935,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
935
935
|
return `${a.slice(0, i)}${n}`;
|
|
936
936
|
}
|
|
937
937
|
function te(a, n, i) {
|
|
938
|
-
|
|
938
|
+
he(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && oe(n, a.length - (i + 1));
|
|
939
939
|
}
|
|
940
940
|
function ye(a, n, i, c, h, y) {
|
|
941
941
|
if (a > i || a < n) {
|
|
@@ -945,12 +945,12 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
945
945
|
}
|
|
946
946
|
te(c, h, y);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function he(a, n) {
|
|
949
949
|
if (typeof a != "number")
|
|
950
950
|
throw new B.ERR_INVALID_ARG_TYPE(n, "number", a);
|
|
951
951
|
}
|
|
952
952
|
function oe(a, n, i) {
|
|
953
|
-
throw Math.floor(a) !== a ? (
|
|
953
|
+
throw Math.floor(a) !== a ? (he(a, i), new B.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new B.ERR_BUFFER_OUT_OF_BOUNDS() : new B.ERR_OUT_OF_RANGE(
|
|
954
954
|
i || "offset",
|
|
955
955
|
`>= ${i ? 1 : 0} and <= ${n}`,
|
|
956
956
|
a
|
|
@@ -1029,7 +1029,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1029
1029
|
n.push(a.charCodeAt(i) & 255);
|
|
1030
1030
|
return n;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function S(a, n) {
|
|
1033
1033
|
let i, c, h;
|
|
1034
1034
|
const y = [];
|
|
1035
1035
|
for (let m = 0; m < a.length && !((n -= 2) < 0); ++m)
|
|
@@ -1051,7 +1051,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1051
1051
|
function Rt(a) {
|
|
1052
1052
|
return a !== a;
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Vn = 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,9 +1061,9 @@ 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" ?
|
|
1064
|
+
return typeof BigInt > "u" ? Mn : a;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Mn() {
|
|
1067
1067
|
throw new Error("BigInt not supported");
|
|
1068
1068
|
}
|
|
1069
1069
|
})(Xr);
|
|
@@ -1101,7 +1101,7 @@ function tn(t) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function si(t) {
|
|
1105
1105
|
if (be === clearTimeout)
|
|
1106
1106
|
return clearTimeout(t);
|
|
1107
1107
|
if ((be === Zt || !be) && clearTimeout)
|
|
@@ -1117,19 +1117,19 @@ function oi(t) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
var Te = [], We = !1, Le, pt = -1;
|
|
1120
|
-
function
|
|
1120
|
+
function ai() {
|
|
1121
1121
|
!We || !Le || (We = !1, Le.length ? Te = Le.concat(Te) : pt = -1, Te.length && rn());
|
|
1122
1122
|
}
|
|
1123
1123
|
function rn() {
|
|
1124
1124
|
if (!We) {
|
|
1125
|
-
var t = tn(
|
|
1125
|
+
var t = tn(ai);
|
|
1126
1126
|
We = !0;
|
|
1127
1127
|
for (var e = Te.length; e; ) {
|
|
1128
1128
|
for (Le = Te, Te = []; ++pt < e; )
|
|
1129
1129
|
Le && Le[pt].run();
|
|
1130
1130
|
pt = -1, e = Te.length;
|
|
1131
1131
|
}
|
|
1132
|
-
Le = null, We = !1,
|
|
1132
|
+
Le = null, We = !1, si(t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
Y.nextTick = function(t) {
|
|
@@ -1177,13 +1177,13 @@ Y.chdir = function(t) {
|
|
|
1177
1177
|
Y.umask = function() {
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
};
|
|
1180
|
-
var
|
|
1180
|
+
var ui = en.exports;
|
|
1181
1181
|
(function(t) {
|
|
1182
1182
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
1183
|
-
const e = Xr, r =
|
|
1183
|
+
const e = Xr, r = ui, 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
1185
|
})(O);
|
|
1186
|
-
class
|
|
1186
|
+
class ci {
|
|
1187
1187
|
}
|
|
1188
1188
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
1189
1189
|
class Ot {
|
|
@@ -1202,7 +1202,7 @@ class Ot {
|
|
|
1202
1202
|
return this.store;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1205
|
+
const fi = (t) => {
|
|
1206
1206
|
const e = Object.keys(t);
|
|
1207
1207
|
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1208
1208
|
};
|
|
@@ -1213,21 +1213,21 @@ class at extends Ot {
|
|
|
1213
1213
|
subscribe = (...e) => this.getStore().subscribe(...e);
|
|
1214
1214
|
unsubscribe = () => this.getStore().off();
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Ue = (t) => qn(t);
|
|
1217
1217
|
var Ie;
|
|
1218
1218
|
(function(t) {
|
|
1219
1219
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1220
1220
|
})(Ie || (Ie = {}));
|
|
1221
|
-
const
|
|
1221
|
+
const li = {
|
|
1222
1222
|
[ue.BETTING]: "betting",
|
|
1223
1223
|
[ue.GAMES]: "games",
|
|
1224
1224
|
[ue.PUBLIC_CHAT]: "publicChat",
|
|
1225
1225
|
[ue.TWITTER]: "twitter"
|
|
1226
1226
|
};
|
|
1227
|
-
var
|
|
1227
|
+
var $e;
|
|
1228
1228
|
(function(t) {
|
|
1229
1229
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
1230
|
-
})(
|
|
1230
|
+
})($e || ($e = {}));
|
|
1231
1231
|
class lr {
|
|
1232
1232
|
status;
|
|
1233
1233
|
source;
|
|
@@ -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 =
|
|
1239
|
+
this.settingsKey = li[r.type], this.status = Tt($e.Suspended), this.config = new at(Ue(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Ue(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Ue({}), `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(
|
|
1251
|
+
this.status.set($e.Ready);
|
|
1252
1252
|
};
|
|
1253
1253
|
disable = () => {
|
|
1254
|
-
this.status.set(
|
|
1254
|
+
this.status.set($e.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
|
|
1281
|
+
class de extends Ot {
|
|
1282
1282
|
getValue = () => this.getStore().get();
|
|
1283
1283
|
getValues() {
|
|
1284
1284
|
throw new Error("not implemented");
|
|
@@ -1294,7 +1294,7 @@ class ce extends Ot {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
const ne = (t) => Tt(t);
|
|
1297
|
-
class
|
|
1297
|
+
class pe extends Ot {
|
|
1298
1298
|
atomStore;
|
|
1299
1299
|
constructor(e, r, o) {
|
|
1300
1300
|
super(e, `api:${r}`), this.atomStore = Tt(), o && e.subscribe((s) => {
|
|
@@ -1326,7 +1326,7 @@ class de extends Ot {
|
|
|
1326
1326
|
key = () => this.getStore().key;
|
|
1327
1327
|
off = () => this.getStore().off();
|
|
1328
1328
|
}
|
|
1329
|
-
async function*
|
|
1329
|
+
async function* hi(t, e) {
|
|
1330
1330
|
for await (const r of e) {
|
|
1331
1331
|
t.response.message = r, t.received_at = Date.now();
|
|
1332
1332
|
const o = {
|
|
@@ -1336,7 +1336,7 @@ async function* li(t, e) {
|
|
|
1336
1336
|
window.postMessage(o), yield r;
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const pi = () => (t) => async (e) => {
|
|
1340
1340
|
const r = {
|
|
1341
1341
|
name: e.url,
|
|
1342
1342
|
request: {},
|
|
@@ -1348,7 +1348,7 @@ const hi = () => (t) => async (e) => {
|
|
|
1348
1348
|
if (r.received_at = Date.now(), r.stream = o.stream, r.response.header = Object.fromEntries(o.header.entries()), r.response.trailer = Object.fromEntries(o.trailer.entries()), o.stream)
|
|
1349
1349
|
return {
|
|
1350
1350
|
...o,
|
|
1351
|
-
message:
|
|
1351
|
+
message: hi(r, o.message)
|
|
1352
1352
|
};
|
|
1353
1353
|
{
|
|
1354
1354
|
r.request.message = e.message, r.response.message = o.message, r.latency = r.received_at - r.sent_at;
|
|
@@ -1376,7 +1376,7 @@ var Ae;
|
|
|
1376
1376
|
(function(t) {
|
|
1377
1377
|
t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
|
|
1378
1378
|
})(Ae || (Ae = {}));
|
|
1379
|
-
class
|
|
1379
|
+
class di {
|
|
1380
1380
|
params;
|
|
1381
1381
|
stream;
|
|
1382
1382
|
method;
|
|
@@ -1391,7 +1391,7 @@ class pi {
|
|
|
1391
1391
|
ts: /* @__PURE__ */ new Date(),
|
|
1392
1392
|
log: []
|
|
1393
1393
|
};
|
|
1394
|
-
this.state = new at(
|
|
1394
|
+
this.state = new at(Ue(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 de(ne(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,10 +1433,10 @@ class pi {
|
|
|
1433
1433
|
this.addStateLog(`data routed to ${this.listeners.size} listeners`);
|
|
1434
1434
|
};
|
|
1435
1435
|
onStreamError = (e) => {
|
|
1436
|
-
e !== void 0 && (e.code !==
|
|
1436
|
+
e !== void 0 && (e.code !== Qn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
class
|
|
1439
|
+
class yi {
|
|
1440
1440
|
toJsonOptions = {
|
|
1441
1441
|
emitDefaultValues: !1,
|
|
1442
1442
|
enumAsInteger: !0,
|
|
@@ -1451,11 +1451,11 @@ class di {
|
|
|
1451
1451
|
callbackClients;
|
|
1452
1452
|
subscriptions;
|
|
1453
1453
|
constructor(e) {
|
|
1454
|
-
this.host = e, this.$headers = new at(
|
|
1454
|
+
this.host = e, this.$headers = new at(Ue({
|
|
1455
1455
|
"sl-device-id": O.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] =
|
|
1458
|
-
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport =
|
|
1457
|
+
const [r, o, s] = Hn();
|
|
1458
|
+
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Kn({
|
|
1459
1459
|
baseUrl: e,
|
|
1460
1460
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1461
1461
|
// @ts-ignore
|
|
@@ -1470,7 +1470,7 @@ class di {
|
|
|
1470
1470
|
const s = this.subscriptions.get(r);
|
|
1471
1471
|
if (s)
|
|
1472
1472
|
return s;
|
|
1473
|
-
const u = new
|
|
1473
|
+
const u = new di(this.$headers, e, r, o);
|
|
1474
1474
|
return this.subscriptions.set(r, u), u;
|
|
1475
1475
|
};
|
|
1476
1476
|
removeSubscription = (e) => {
|
|
@@ -1491,14 +1491,14 @@ class di {
|
|
|
1491
1491
|
const r = e.typeName;
|
|
1492
1492
|
if (this.clients.has(r))
|
|
1493
1493
|
return this.clients.get(r);
|
|
1494
|
-
const o =
|
|
1494
|
+
const o = Gn(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 =
|
|
1501
|
+
const o = zn(e, this.transport);
|
|
1502
1502
|
return this.callbackClients.set(r, o), o;
|
|
1503
1503
|
};
|
|
1504
1504
|
// create unary client, used for query request
|
|
@@ -1530,11 +1530,11 @@ class di {
|
|
|
1530
1530
|
o.header.set(u, s[u]);
|
|
1531
1531
|
return r(o);
|
|
1532
1532
|
};
|
|
1533
|
-
this.interceptors.push(e), this.interceptors.push(
|
|
1533
|
+
this.interceptors.push(e), this.interceptors.push(pi());
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1537
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1536
|
+
const gi = (t, e) => {
|
|
1537
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Wn, {
|
|
1538
1538
|
method: "retrieveEventId",
|
|
1539
1539
|
params: [t]
|
|
1540
1540
|
});
|
|
@@ -1551,7 +1551,7 @@ const yi = (t, e) => {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
|
-
},
|
|
1554
|
+
}, mi = (t, e) => {
|
|
1555
1555
|
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "getStream", params: [t] });
|
|
1556
1556
|
return e.nanoquery.createFetcherStore(o, {
|
|
1557
1557
|
fetcher: async (s, u, l) => l ? (await r.getStream({
|
|
@@ -1559,20 +1559,20 @@ const yi = (t, e) => {
|
|
|
1559
1559
|
// we are sure that id is a string
|
|
1560
1560
|
})).data?.attributes : void 0
|
|
1561
1561
|
});
|
|
1562
|
-
},
|
|
1562
|
+
}, bi = (t, e) => {
|
|
1563
1563
|
const { queryKey: r, client: o } = e.createPromiseClient(Wr, { method: "me", params: [t] });
|
|
1564
1564
|
return e.nanoquery.createFetcherStore(r, {
|
|
1565
1565
|
fetcher: () => o.me({})
|
|
1566
1566
|
});
|
|
1567
|
-
},
|
|
1567
|
+
}, wi = (t) => {
|
|
1568
1568
|
const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
|
|
1569
1569
|
return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
|
|
1570
|
-
},
|
|
1570
|
+
}, vi = (t, e) => {
|
|
1571
1571
|
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "get", params: [t] });
|
|
1572
1572
|
return e.nanoquery.createFetcherStore(o, {
|
|
1573
1573
|
fetcher: async () => (await r.get({})).data?.attributes
|
|
1574
1574
|
});
|
|
1575
|
-
},
|
|
1575
|
+
}, Si = (t, e) => {
|
|
1576
1576
|
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "getOrganization", params: [t] });
|
|
1577
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1578
1578
|
fetcher: async () => {
|
|
@@ -1583,7 +1583,7 @@ const yi = (t, e) => {
|
|
|
1583
1583
|
} : void 0;
|
|
1584
1584
|
}
|
|
1585
1585
|
});
|
|
1586
|
-
},
|
|
1586
|
+
}, Ai = (t, e) => {
|
|
1587
1587
|
const { client: r, queryKey: o } = e.createPromiseClient(_t, {
|
|
1588
1588
|
method: "getOrganizationAdvertising",
|
|
1589
1589
|
params: [t]
|
|
@@ -1591,8 +1591,8 @@ const yi = (t, e) => {
|
|
|
1591
1591
|
return e.nanoquery.createFetcherStore(o, {
|
|
1592
1592
|
fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
|
|
1593
1593
|
});
|
|
1594
|
-
},
|
|
1595
|
-
t.transport = new
|
|
1594
|
+
}, Ei = (t, e, r) => {
|
|
1595
|
+
t.transport = new yi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
|
|
1596
1596
|
};
|
|
1597
1597
|
class hr {
|
|
1598
1598
|
delimiter = ":";
|
|
@@ -1648,16 +1648,16 @@ var Fe;
|
|
|
1648
1648
|
(function(t) {
|
|
1649
1649
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
1650
1650
|
})(Fe || (Fe = {}));
|
|
1651
|
-
const
|
|
1652
|
-
const e = new Ke(), r = new
|
|
1651
|
+
const Ii = (t) => {
|
|
1652
|
+
const e = new Ke(), r = new de(ne(e.getExternalToken()), "userKey"), o = new de(ne(e.getToken()), "userToken"), s = new pe(bi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new pe(vi(o.getStore(), t), "userSettings");
|
|
1653
1653
|
return {
|
|
1654
1654
|
userKey: r,
|
|
1655
1655
|
userToken: o,
|
|
1656
1656
|
user: s,
|
|
1657
1657
|
userSettings: u
|
|
1658
1658
|
};
|
|
1659
|
-
},
|
|
1660
|
-
const e = new
|
|
1659
|
+
}, Fi = (t) => {
|
|
1660
|
+
const e = new de(ne(void 0), "providerStreamId"), r = new pe(gi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(mi(r.getAtomStore(), t), "streamSettings");
|
|
1661
1661
|
return r.getAtomStore().listen((s) => {
|
|
1662
1662
|
(s === "" || s === void 0) && o.getStore().mutate(void 0);
|
|
1663
1663
|
}), {
|
|
@@ -1665,8 +1665,8 @@ const Ei = (t) => {
|
|
|
1665
1665
|
slStreamId: r,
|
|
1666
1666
|
streamSettings: o
|
|
1667
1667
|
};
|
|
1668
|
-
},
|
|
1669
|
-
const e = new
|
|
1668
|
+
}, Ti = (t) => {
|
|
1669
|
+
const e = new de(ne(void 0), "enabled"), r = new de(ne(Fe.DISABLED), "status"), o = new pe(Si(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new pe(Ai(o.getAtomStore(), t), "organizationAdvertising"), u = Ii(t), l = Fi(t);
|
|
1670
1670
|
return {
|
|
1671
1671
|
enabled: e,
|
|
1672
1672
|
status: r,
|
|
@@ -1681,10 +1681,10 @@ const Ei = (t) => {
|
|
|
1681
1681
|
organizationAdvertising: s
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
class
|
|
1684
|
+
class _i extends Ot {
|
|
1685
1685
|
stores;
|
|
1686
1686
|
constructor(e) {
|
|
1687
|
-
const r =
|
|
1687
|
+
const r = Ti(e), o = fi(r);
|
|
1688
1688
|
super(o, "core"), this.stores = r;
|
|
1689
1689
|
}
|
|
1690
1690
|
getValue() {
|
|
@@ -1705,12 +1705,12 @@ class Ti extends Ot {
|
|
|
1705
1705
|
};
|
|
1706
1706
|
unsubscribe = () => this.getStore().off();
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class Ci extends ci {
|
|
1709
1709
|
$coreStore;
|
|
1710
1710
|
transport;
|
|
1711
1711
|
bypassLogin;
|
|
1712
1712
|
constructor(e, r) {
|
|
1713
|
-
super(), this.$coreStore = e, this.transport = r, this.bypassLogin =
|
|
1713
|
+
super(), this.$coreStore = e, this.transport = r, this.bypassLogin = wi(this.transport), this.connect();
|
|
1714
1714
|
}
|
|
1715
1715
|
me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
|
|
1716
1716
|
/**
|
|
@@ -1784,19 +1784,19 @@ class _i extends ui {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
|
-
const st = new Ke(),
|
|
1788
|
-
t.auth = new
|
|
1787
|
+
const st = new Ke(), Oi = (t, e, r) => {
|
|
1788
|
+
t.auth = new Ci(t.store, t.transport), t.stores.status.listen((o) => {
|
|
1789
1789
|
o === Fe.READY && t.auth.reLogin();
|
|
1790
1790
|
}), t.sdk.authorizationBypass = async (o, s) => {
|
|
1791
1791
|
st.getSchema() === o && st.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), st.setSchema(o), st.setExternalToken(s));
|
|
1792
1792
|
}, t.sdk.logout = () => {
|
|
1793
1793
|
t.auth.logout(), st.clear();
|
|
1794
1794
|
}, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
|
|
1795
|
-
},
|
|
1796
|
-
t.store = new
|
|
1795
|
+
}, xi = (t, e, r) => {
|
|
1796
|
+
t.store = new _i(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.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
|
|
1797
1797
|
t.store.unsubscribe();
|
|
1798
1798
|
}, r();
|
|
1799
|
-
},
|
|
1799
|
+
}, Bi = (t, e, r) => {
|
|
1800
1800
|
t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
|
|
1801
1801
|
if (t.stores.enabled.get() === "on")
|
|
1802
1802
|
return { enabled: !0 };
|
|
@@ -1812,9 +1812,9 @@ const st = new Ke(), Ci = (t, e, r) => {
|
|
|
1812
1812
|
}, t.sdk.createEventSession = (o) => {
|
|
1813
1813
|
t.stores.providerStreamId.setValue(o);
|
|
1814
1814
|
}, r();
|
|
1815
|
-
},
|
|
1815
|
+
}, ki = Jn({
|
|
1816
1816
|
level: "trace"
|
|
1817
|
-
}), on = (t, e) =>
|
|
1817
|
+
}), on = (t, e) => ki.child({ name: t }, e), Pi = (t, e, r) => {
|
|
1818
1818
|
const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
|
|
1819
1819
|
method: "summary",
|
|
1820
1820
|
params: [t, e]
|
|
@@ -1825,17 +1825,17 @@ const st = new Ke(), Ci = (t, e, r) => {
|
|
|
1825
1825
|
userId: p
|
|
1826
1826
|
})).data?.attributes
|
|
1827
1827
|
});
|
|
1828
|
-
},
|
|
1828
|
+
}, Ri = (t) => {
|
|
1829
1829
|
const { client: e } = t.createPromiseClient(Jr, { method: "list" });
|
|
1830
1830
|
return (r) => e.list(r);
|
|
1831
|
-
},
|
|
1831
|
+
}, Ni = (t, e) => {
|
|
1832
1832
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
|
|
1833
1833
|
return e.nanoquery.createFetcherStore(o, {
|
|
1834
1834
|
fetcher: async (s, u, l) => (await r.get({
|
|
1835
1835
|
eventId: l
|
|
1836
1836
|
})).data?.attributes
|
|
1837
1837
|
});
|
|
1838
|
-
},
|
|
1838
|
+
}, Li = (t, e) => {
|
|
1839
1839
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
|
|
1840
1840
|
return e.nanoquery.createFetcherStore(o, {
|
|
1841
1841
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
@@ -1844,12 +1844,12 @@ const st = new Ke(), Ci = (t, e, r) => {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
})).data?.attributes : void 0
|
|
1846
1846
|
});
|
|
1847
|
-
},
|
|
1847
|
+
}, Ui = (t, e) => {
|
|
1848
1848
|
const { client: r } = e.createCallbackClient(ve), o = Tt({ eventId: t.get() || "", feedId: "" });
|
|
1849
1849
|
return t.subscribe((u = "") => {
|
|
1850
1850
|
o.set({ eventId: u, feedId: "" });
|
|
1851
1851
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
1852
|
-
},
|
|
1852
|
+
}, $i = (t, e) => {
|
|
1853
1853
|
const { client: r } = e.createCallbackClient(ve);
|
|
1854
1854
|
return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
|
|
1855
1855
|
}, sn = async (t, e) => {
|
|
@@ -1857,14 +1857,14 @@ const st = new Ke(), Ci = (t, e, r) => {
|
|
|
1857
1857
|
return (await r.questionByUser({
|
|
1858
1858
|
questionId: t
|
|
1859
1859
|
})).data?.attributes?.question;
|
|
1860
|
-
},
|
|
1860
|
+
}, ji = (t, e) => {
|
|
1861
1861
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
|
|
1862
1862
|
return e.nanoquery.createFetcherStore(o, {
|
|
1863
1863
|
fetcher: async (s, u, l) => l ? (await r.list({
|
|
1864
1864
|
eventId: l
|
|
1865
1865
|
})).data : []
|
|
1866
1866
|
});
|
|
1867
|
-
},
|
|
1867
|
+
}, Di = (t, e) => {
|
|
1868
1868
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
|
|
1869
1869
|
return e.nanoquery.createFetcherStore(o, {
|
|
1870
1870
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
@@ -1873,7 +1873,7 @@ const st = new Ke(), Ci = (t, e, r) => {
|
|
|
1873
1873
|
});
|
|
1874
1874
|
};
|
|
1875
1875
|
var pr = { exports: {} };
|
|
1876
|
-
const
|
|
1876
|
+
const Vi = Object.getPrototypeOf({});
|
|
1877
1877
|
function dr(t) {
|
|
1878
1878
|
function e(I) {
|
|
1879
1879
|
return I !== "constructor" && I !== "prototype" && I !== "__proto__";
|
|
@@ -1882,67 +1882,67 @@ function dr(t) {
|
|
|
1882
1882
|
let _ = 0;
|
|
1883
1883
|
const j = I.length, U = new Array(j);
|
|
1884
1884
|
for (_ = 0; _ < j; ++_)
|
|
1885
|
-
U[_] =
|
|
1885
|
+
U[_] = F(I[_]);
|
|
1886
1886
|
return U;
|
|
1887
1887
|
}
|
|
1888
1888
|
function o(I) {
|
|
1889
1889
|
const _ = {};
|
|
1890
|
-
if (p && Object.getPrototypeOf(I) !==
|
|
1890
|
+
if (p && Object.getPrototypeOf(I) !== Vi)
|
|
1891
1891
|
return p(I);
|
|
1892
1892
|
const j = f(I);
|
|
1893
|
-
let U,
|
|
1894
|
-
for (U = 0,
|
|
1895
|
-
e(x = j[U]) && (_[x] =
|
|
1893
|
+
let U, T, x;
|
|
1894
|
+
for (U = 0, T = j.length; U < T; ++U)
|
|
1895
|
+
e(x = j[U]) && (_[x] = F(I[x]));
|
|
1896
1896
|
return _;
|
|
1897
1897
|
}
|
|
1898
1898
|
function s(I, _) {
|
|
1899
1899
|
const j = I.length, U = _.length;
|
|
1900
|
-
let
|
|
1900
|
+
let T = 0;
|
|
1901
1901
|
const x = new Array(j + U);
|
|
1902
|
-
for (
|
|
1903
|
-
x[
|
|
1904
|
-
for (
|
|
1905
|
-
x[
|
|
1902
|
+
for (T = 0; T < j; ++T)
|
|
1903
|
+
x[T] = F(I[T]);
|
|
1904
|
+
for (T = 0; T < U; ++T)
|
|
1905
|
+
x[T + j] = F(_[T]);
|
|
1906
1906
|
return x;
|
|
1907
1907
|
}
|
|
1908
1908
|
const u = Object.prototype.propertyIsEnumerable;
|
|
1909
1909
|
function l(I) {
|
|
1910
1910
|
const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
|
|
1911
|
-
for (let U = 0,
|
|
1911
|
+
for (let U = 0, T = j.length; U < T; ++U)
|
|
1912
1912
|
u.call(I, j[U]) && _.push(j[U]);
|
|
1913
1913
|
return _;
|
|
1914
1914
|
}
|
|
1915
1915
|
const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1916
|
-
function
|
|
1916
|
+
function v(I) {
|
|
1917
1917
|
return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
|
|
1918
1918
|
}
|
|
1919
1919
|
function g(I) {
|
|
1920
1920
|
return typeof I != "object" || I === null;
|
|
1921
1921
|
}
|
|
1922
|
-
const b = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone:
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1922
|
+
const b = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: F, deepmerge: P, getKeys: f, isMergeableObject: v }) : s;
|
|
1923
|
+
function F(I) {
|
|
1924
|
+
return v(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1925
1925
|
}
|
|
1926
1926
|
function N(I, _) {
|
|
1927
|
-
const j = {}, U = f(I),
|
|
1927
|
+
const j = {}, U = f(I), T = f(_);
|
|
1928
1928
|
let x, k, G;
|
|
1929
1929
|
for (x = 0, k = U.length; x < k; ++x)
|
|
1930
|
-
e(G = U[x]) &&
|
|
1931
|
-
for (x = 0, k =
|
|
1932
|
-
e(G =
|
|
1933
|
-
(j[G] =
|
|
1930
|
+
e(G = U[x]) && T.indexOf(G) === -1 && (j[G] = F(I[G]));
|
|
1931
|
+
for (x = 0, k = T.length; x < k; ++x)
|
|
1932
|
+
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1933
|
+
(j[G] = F(_[G])));
|
|
1934
1934
|
return j;
|
|
1935
1935
|
}
|
|
1936
1936
|
function P(I, _) {
|
|
1937
1937
|
const j = Array.isArray(_), U = Array.isArray(I);
|
|
1938
|
-
return g(_) ? _ : b(I) ?
|
|
1938
|
+
return g(_) ? _ : b(I) ? F(_) : j && U ? E(I, _) : j !== U ? F(_) : N(I, _);
|
|
1939
1939
|
}
|
|
1940
1940
|
function K() {
|
|
1941
1941
|
switch (arguments.length) {
|
|
1942
1942
|
case 0:
|
|
1943
1943
|
return {};
|
|
1944
1944
|
case 1:
|
|
1945
|
-
return
|
|
1945
|
+
return F(arguments[0]);
|
|
1946
1946
|
case 2:
|
|
1947
1947
|
return P(arguments[0], arguments[1]);
|
|
1948
1948
|
}
|
|
@@ -1955,18 +1955,18 @@ function dr(t) {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
pr.exports = dr;
|
|
1957
1957
|
pr.exports.default = dr;
|
|
1958
|
-
var
|
|
1959
|
-
const
|
|
1958
|
+
var Mi = pr.exports.deepmerge = dr;
|
|
1959
|
+
const qi = (t) => (e, r) => {
|
|
1960
1960
|
let o = 0;
|
|
1961
1961
|
const s = e.length, u = r.length, l = Math.max(s, u), f = new Array(l);
|
|
1962
1962
|
for (o = 0; o < l; ++o)
|
|
1963
1963
|
o < u ? f[o] = t.deepmerge(e[o], r[o]) : f[o] = t.clone(e[o]);
|
|
1964
1964
|
return f;
|
|
1965
|
-
},
|
|
1965
|
+
}, Qi = Mi({ mergeArray: qi }), Gi = (t, e, r) => {
|
|
1966
1966
|
const o = Hr([e, r], (l, f) => {
|
|
1967
1967
|
if (l && f.data)
|
|
1968
1968
|
return f.data.find((p) => p.id === l);
|
|
1969
|
-
}), s =
|
|
1969
|
+
}), s = Ue({
|
|
1970
1970
|
data: void 0,
|
|
1971
1971
|
loading: void 0,
|
|
1972
1972
|
error: void 0
|
|
@@ -1984,10 +1984,10 @@ const Mi = (t) => (e, r) => {
|
|
|
1984
1984
|
if (f)
|
|
1985
1985
|
for (const p of l?.answers || [])
|
|
1986
1986
|
p.youVoted !== !0 && delete p.youVoted;
|
|
1987
|
-
s.set({ data:
|
|
1987
|
+
s.set({ data: Qi(f, l) });
|
|
1988
1988
|
} };
|
|
1989
|
-
}, an = (t) => (t.gamification || (t.gamification = new
|
|
1990
|
-
class
|
|
1989
|
+
}, an = (t) => (t.gamification || (t.gamification = new zi(t)), t.gamification);
|
|
1990
|
+
class zi {
|
|
1991
1991
|
/** sl event id */
|
|
1992
1992
|
slStreamId;
|
|
1993
1993
|
/** organization id */
|
|
@@ -2014,13 +2014,13 @@ class Gi {
|
|
|
2014
2014
|
constructor(e) {
|
|
2015
2015
|
if (e.gamification)
|
|
2016
2016
|
throw new Error("GamificationBackground Singleton error");
|
|
2017
|
-
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
|
|
2018
|
-
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription =
|
|
2017
|
+
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 de(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new de(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Ni(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(ji(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Li(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Gi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2018
|
+
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = $i(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
2019
2019
|
window.requestAnimationFrame(() => {
|
|
2020
2020
|
this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
|
|
2021
2021
|
});
|
|
2022
2022
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
2023
|
-
}), this.feedSubscription =
|
|
2023
|
+
}), this.feedSubscription = Ui(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
|
|
2024
2024
|
window.requestAnimationFrame(() => {
|
|
2025
2025
|
const o = this.activeQuestionId.getStore();
|
|
2026
2026
|
o && o.mutate(r.data?.attributes);
|
|
@@ -2055,7 +2055,7 @@ class Gi {
|
|
|
2055
2055
|
this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
|
|
2056
2056
|
};
|
|
2057
2057
|
}
|
|
2058
|
-
class
|
|
2058
|
+
class Ki {
|
|
2059
2059
|
notificationsList;
|
|
2060
2060
|
notifications;
|
|
2061
2061
|
store;
|
|
@@ -2065,7 +2065,7 @@ class zi {
|
|
|
2065
2065
|
options;
|
|
2066
2066
|
logger;
|
|
2067
2067
|
constructor(e) {
|
|
2068
|
-
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
|
|
2068
|
+
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 de(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
|
|
2069
2069
|
}
|
|
2070
2070
|
addToQueue = (e) => {
|
|
2071
2071
|
if (this.store.has(e.id)) {
|
|
@@ -2129,7 +2129,7 @@ var wt;
|
|
|
2129
2129
|
(function(t) {
|
|
2130
2130
|
t.OPENED = "opened";
|
|
2131
2131
|
})(wt || (wt = {}));
|
|
2132
|
-
class
|
|
2132
|
+
class Hi extends hr {
|
|
2133
2133
|
constructor() {
|
|
2134
2134
|
super("notification");
|
|
2135
2135
|
}
|
|
@@ -2141,15 +2141,15 @@ class Ki extends hr {
|
|
|
2141
2141
|
this.clear();
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var je;
|
|
2145
2145
|
(function(t) {
|
|
2146
2146
|
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
2147
|
-
})(
|
|
2148
|
-
class
|
|
2147
|
+
})(je || (je = {}));
|
|
2148
|
+
class Wi {
|
|
2149
2149
|
queue;
|
|
2150
2150
|
storage;
|
|
2151
2151
|
constructor(e = {}) {
|
|
2152
|
-
this.storage = new
|
|
2152
|
+
this.storage = new Hi(), this.queue = new Ki({ concurrency: 1, animationDelay: 1600, ...e });
|
|
2153
2153
|
}
|
|
2154
2154
|
add = (e) => {
|
|
2155
2155
|
this.storage.isOpened(e.id) || this.queue.addToQueue(e);
|
|
@@ -2162,15 +2162,15 @@ class Hi {
|
|
|
2162
2162
|
this.storage.setOpened(e);
|
|
2163
2163
|
};
|
|
2164
2164
|
}
|
|
2165
|
-
const
|
|
2166
|
-
t.notifications = new
|
|
2167
|
-
},
|
|
2165
|
+
const Ji = (t, e, r) => {
|
|
2166
|
+
t.notifications = new Wi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
|
|
2167
|
+
}, Yi = (t, e) => {
|
|
2168
2168
|
const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
|
|
2169
2169
|
return r.submitAnswer({ data: e });
|
|
2170
|
-
},
|
|
2170
|
+
}, Xi = (t, e) => {
|
|
2171
2171
|
const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
|
|
2172
2172
|
return r.submitInplay({ data: { eventId: +e } });
|
|
2173
|
-
},
|
|
2173
|
+
}, Zi = (t, e) => {
|
|
2174
2174
|
const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
|
|
2175
2175
|
return r.skipQuestion({ data: { id: e } });
|
|
2176
2176
|
};
|
|
@@ -2178,7 +2178,7 @@ var vt;
|
|
|
2178
2178
|
(function(t) {
|
|
2179
2179
|
t.ONBOARDING = "onboarding";
|
|
2180
2180
|
})(vt || (vt = {}));
|
|
2181
|
-
class
|
|
2181
|
+
class un extends hr {
|
|
2182
2182
|
constructor() {
|
|
2183
2183
|
super("gamification");
|
|
2184
2184
|
}
|
|
@@ -2190,11 +2190,11 @@ class Zi extends hr {
|
|
|
2190
2190
|
const Fr = {
|
|
2191
2191
|
pageSize: 10
|
|
2192
2192
|
}, eo = (t, e, r) => {
|
|
2193
|
-
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s =
|
|
2194
|
-
if (
|
|
2193
|
+
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s = Ue({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (v) => {
|
|
2194
|
+
if (v) {
|
|
2195
2195
|
s.setKey("loading", !0);
|
|
2196
2196
|
const g = {
|
|
2197
|
-
eventId:
|
|
2197
|
+
eventId: v,
|
|
2198
2198
|
pagination: { page: 0, pageSize: r?.pageSize || Fr.pageSize }
|
|
2199
2199
|
}, b = await u(g);
|
|
2200
2200
|
s.set({ data: b.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
|
|
@@ -2204,29 +2204,79 @@ const Fr = {
|
|
|
2204
2204
|
const f = () => {
|
|
2205
2205
|
l(e.get());
|
|
2206
2206
|
};
|
|
2207
|
-
return o.listen(async (
|
|
2207
|
+
return o.listen(async (v) => {
|
|
2208
2208
|
const g = e.get(), b = s.get().data?.length || 0;
|
|
2209
|
-
if (
|
|
2209
|
+
if (v.page > 0 && g && b >= v.page * v.pageSize) {
|
|
2210
2210
|
s.setKey("loading", !0);
|
|
2211
|
-
const
|
|
2211
|
+
const F = await u({
|
|
2212
2212
|
eventId: g,
|
|
2213
|
-
pagination:
|
|
2213
|
+
pagination: v
|
|
2214
2214
|
}), N = s.get().data || [];
|
|
2215
2215
|
s.set({
|
|
2216
|
-
data: [...N, ...
|
|
2216
|
+
data: [...N, ...F.data.map((P) => P.attributes)],
|
|
2217
2217
|
loading: !1
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
2220
|
}), { $store: s, fetchMore: () => {
|
|
2221
|
-
const
|
|
2222
|
-
o.set({ ...
|
|
2221
|
+
const v = o.get();
|
|
2222
|
+
o.set({ ...v, page: v.page + 1 });
|
|
2223
2223
|
}, invalidate: f };
|
|
2224
|
-
}
|
|
2224
|
+
};
|
|
2225
2225
|
var re;
|
|
2226
2226
|
(function(t) {
|
|
2227
2227
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2228
2228
|
})(re || (re = {}));
|
|
2229
|
-
|
|
2229
|
+
const to = (t, e, r, o) => {
|
|
2230
|
+
const s = new un(), u = ne(re.Unset), l = () => {
|
|
2231
|
+
const { inplayGame: v = {} } = t.featureSettings.get(), g = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
2232
|
+
o.add({
|
|
2233
|
+
type: je.ONBOARDING,
|
|
2234
|
+
id: g,
|
|
2235
|
+
action: t.openFeature,
|
|
2236
|
+
close: () => {
|
|
2237
|
+
o.markAsViewed(g);
|
|
2238
|
+
},
|
|
2239
|
+
autoHideDuration: 1e6,
|
|
2240
|
+
data: {
|
|
2241
|
+
questionType: Re.UNSET,
|
|
2242
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2243
|
+
// @ts-ignore
|
|
2244
|
+
onboarding: { ...v }
|
|
2245
|
+
}
|
|
2246
|
+
});
|
|
2247
|
+
};
|
|
2248
|
+
u.subscribe((v) => {
|
|
2249
|
+
(v === re.Optional || re.Required) && l(), v === re.Completed && e.activeQuestionId.invalidate();
|
|
2250
|
+
});
|
|
2251
|
+
const f = async () => {
|
|
2252
|
+
const v = e.userId.get();
|
|
2253
|
+
if (!v)
|
|
2254
|
+
return;
|
|
2255
|
+
s.getOnboardingStatus({
|
|
2256
|
+
userId: v,
|
|
2257
|
+
organizationId: e.organizationId.get() || "",
|
|
2258
|
+
eventId: e.slStreamId.get() || ""
|
|
2259
|
+
}) === re.Completed && u.set(re.Completed);
|
|
2260
|
+
const b = await e.moderation.getValue();
|
|
2261
|
+
if (u.get() === re.Completed)
|
|
2262
|
+
return;
|
|
2263
|
+
const E = !!(b?.options?.onboardingEnabled && t.featureSettings.get().inplayGame?.onboarding?.completed), F = !!t.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2264
|
+
E ? F ? u.set(re.Required) : u.set(re.Optional) : F ? u.set(re.Unavailable) : u.set(re.Disabled);
|
|
2265
|
+
};
|
|
2266
|
+
return f(), e.userId.subscribe((v) => {
|
|
2267
|
+
v && f();
|
|
2268
|
+
}), e.moderation.subscribe((v) => {
|
|
2269
|
+
v.data && f();
|
|
2270
|
+
}), { $store: u, submitInplay: async () => {
|
|
2271
|
+
const v = e.slStreamId.get();
|
|
2272
|
+
v && (await Xi(r, v), u.set(re.Completed), s.saveOnboardingStatus({
|
|
2273
|
+
organizationId: e.organizationId.get() || "",
|
|
2274
|
+
userId: e.userId.get() || "",
|
|
2275
|
+
eventId: v
|
|
2276
|
+
}, re.Completed));
|
|
2277
|
+
} };
|
|
2278
|
+
}, ro = /* @__PURE__ */ new Set([Re.POLL, Re.PREDICTION, Re.TRIVIA]);
|
|
2279
|
+
class no extends lr {
|
|
2230
2280
|
/** user statistics (leaderboard panel) */
|
|
2231
2281
|
userSummary;
|
|
2232
2282
|
/** feed list (pick history) */
|
|
@@ -2241,26 +2291,22 @@ class ro extends lr {
|
|
|
2241
2291
|
openedQuestion;
|
|
2242
2292
|
/** pinned leaderboard id */
|
|
2243
2293
|
openedUser;
|
|
2244
|
-
notifications;
|
|
2245
|
-
transport;
|
|
2246
2294
|
closeFeature;
|
|
2247
2295
|
openFeature;
|
|
2296
|
+
notifications;
|
|
2297
|
+
transport;
|
|
2248
2298
|
/** gamification background class, handle subscriptions and notifications for closed overlay */
|
|
2249
2299
|
background;
|
|
2250
2300
|
/** Browser cache */
|
|
2251
2301
|
storage;
|
|
2252
2302
|
constructor(e, r, o) {
|
|
2253
|
-
super(e, r), this.background = an(o), this.storage = new
|
|
2254
|
-
|
|
2255
|
-
}), this.status.subscribe((s) => {
|
|
2256
|
-
s === je.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2257
|
-
}), this.onboardingStatus.subscribe((s) => {
|
|
2258
|
-
s && this.background.activeQuestionId.invalidate();
|
|
2303
|
+
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new pe(Pi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new de(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = to(this, this.background, o.transport, o.notifications), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = eo(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
|
|
2304
|
+
s === $e.Ready ? this.connect(o.transport) : this.disconnect();
|
|
2259
2305
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2260
|
-
if (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 && s.data.question.status === Yt.ACTIVE) {
|
|
2261
|
-
if (
|
|
2306
|
+
if (s && s.data && this.onboardingStatus.$store.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.status === Yt.ACTIVE) {
|
|
2307
|
+
if (ro.has(s.data.question.type))
|
|
2262
2308
|
this.notifications.add({
|
|
2263
|
-
type:
|
|
2309
|
+
type: je.QUESTION,
|
|
2264
2310
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2265
2311
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2266
2312
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
@@ -2288,7 +2334,7 @@ class ro extends lr {
|
|
|
2288
2334
|
}
|
|
2289
2335
|
};
|
|
2290
2336
|
this.notifications.add({
|
|
2291
|
-
type:
|
|
2337
|
+
type: je.QUESTION,
|
|
2292
2338
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2293
2339
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2294
2340
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
@@ -2300,56 +2346,8 @@ class ro extends lr {
|
|
|
2300
2346
|
});
|
|
2301
2347
|
}
|
|
2302
2348
|
}
|
|
2303
|
-
}), this.onboardingProcess(), this.background.userId.subscribe((s) => {
|
|
2304
|
-
s && this.onboardingProcess();
|
|
2305
|
-
}), this.background.moderation.subscribe((s) => {
|
|
2306
|
-
s.data && this.onboardingProcess();
|
|
2307
2349
|
});
|
|
2308
2350
|
}
|
|
2309
|
-
/**
|
|
2310
|
-
* check onboarding status, sync with browser cache
|
|
2311
|
-
* retrieve onboarding settings from api
|
|
2312
|
-
*/
|
|
2313
|
-
onboardingProcess = async () => {
|
|
2314
|
-
const e = this.background.userId.get();
|
|
2315
|
-
if (!e)
|
|
2316
|
-
return;
|
|
2317
|
-
this.storage.getOnboardingStatus({
|
|
2318
|
-
userId: e,
|
|
2319
|
-
organizationId: this.background.organizationId.get() || "",
|
|
2320
|
-
eventId: this.background.slStreamId.get() || ""
|
|
2321
|
-
}) === re.Completed && this.onboardingStatus.set(re.Completed);
|
|
2322
|
-
const o = await this.background.moderation.getValue();
|
|
2323
|
-
if (this.onboardingStatus.get() === re.Completed)
|
|
2324
|
-
return;
|
|
2325
|
-
const s = !!(o?.options?.onboardingEnabled && this.featureSettings.get().inplayGame?.onboarding?.completed), u = !!this.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2326
|
-
s ? u ? this.onboardingStatus.set(re.Required) : this.onboardingStatus.set(re.Optional) : u ? this.onboardingStatus.set(re.Unavailable) : this.onboardingStatus.set(re.Disabled);
|
|
2327
|
-
};
|
|
2328
|
-
showOnboardingInApp = () => {
|
|
2329
|
-
const { inplayGame: e } = this.featureSettings.get();
|
|
2330
|
-
if (!e)
|
|
2331
|
-
return;
|
|
2332
|
-
const { titleCard: r, overview: o } = e;
|
|
2333
|
-
this.notifications.add({
|
|
2334
|
-
type: Ue.ONBOARDING,
|
|
2335
|
-
id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
|
|
2336
|
-
action: this.openFeature,
|
|
2337
|
-
close: this.closeFeature,
|
|
2338
|
-
autoHideDuration: 1e5,
|
|
2339
|
-
data: {
|
|
2340
|
-
questionType: Re.UNSET,
|
|
2341
|
-
onboarding: {
|
|
2342
|
-
header: r?.header,
|
|
2343
|
-
title: r?.title,
|
|
2344
|
-
subtitle: r?.subtitle,
|
|
2345
|
-
graphicBg: r?.appearance?.graphic,
|
|
2346
|
-
icon: r?.media?.icon,
|
|
2347
|
-
sponsorLogo: r?.media?.sponsorLogo,
|
|
2348
|
-
primaryColor: o?.appearance?.primaryColor
|
|
2349
|
-
}
|
|
2350
|
-
}
|
|
2351
|
-
});
|
|
2352
|
-
};
|
|
2353
2351
|
connect = (e) => {
|
|
2354
2352
|
this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.feedList.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
|
|
2355
2353
|
window.requestAnimationFrame(async () => {
|
|
@@ -2360,9 +2358,9 @@ class ro extends lr {
|
|
|
2360
2358
|
if (s === Yt.RESOLVED && u === Re.PREDICTION) {
|
|
2361
2359
|
const f = this.background.getCurrentSessionId({
|
|
2362
2360
|
prefix: `notification-id:${l}`
|
|
2363
|
-
}),
|
|
2361
|
+
}), v = (await sn(l, e))?.answers.find(({ correct: g }) => g);
|
|
2364
2362
|
this.notifications.add({
|
|
2365
|
-
type:
|
|
2363
|
+
type: je.QUESTION_RESOLVED,
|
|
2366
2364
|
action: () => this.openQuestion(l),
|
|
2367
2365
|
close: () => this.closeQuestion(l),
|
|
2368
2366
|
autoHideDuration: 5e3,
|
|
@@ -2370,7 +2368,7 @@ class ro extends lr {
|
|
|
2370
2368
|
data: {
|
|
2371
2369
|
questionType: Re.PREDICTION,
|
|
2372
2370
|
question: {
|
|
2373
|
-
title:
|
|
2371
|
+
title: v?.youVoted ? `Congratulations! You answered correctly! You won ${v.points} pts!` : `Better luck next time! Correct: ${v?.text}!`
|
|
2374
2372
|
}
|
|
2375
2373
|
}
|
|
2376
2374
|
});
|
|
@@ -2385,20 +2383,11 @@ class ro extends lr {
|
|
|
2385
2383
|
disconnect = () => {
|
|
2386
2384
|
this.background.feedSubscription.removeListener("feed-subscription-questions-list");
|
|
2387
2385
|
};
|
|
2388
|
-
// onboarding
|
|
2389
|
-
submitInplay = async () => {
|
|
2390
|
-
const e = this.background.slStreamId.get();
|
|
2391
|
-
e && (await Yi(this.transport, e), this.onboardingStatus.set(re.Completed), this.storage.saveOnboardingStatus({
|
|
2392
|
-
organizationId: this.background.organizationId.get() || "",
|
|
2393
|
-
userId: this.background.userId.get() || "",
|
|
2394
|
-
eventId: e
|
|
2395
|
-
}, re.Completed));
|
|
2396
|
-
};
|
|
2397
2386
|
submitAnswer = async (e, r) => {
|
|
2398
|
-
await
|
|
2387
|
+
await Yi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
|
|
2399
2388
|
};
|
|
2400
2389
|
skipQuestion = async (e) => {
|
|
2401
|
-
await
|
|
2390
|
+
await Zi(this.transport, e), this.feedList?.invalidate();
|
|
2402
2391
|
};
|
|
2403
2392
|
openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2404
2393
|
closeQuestion = (e) => this.background.closeQuestion(e);
|
|
@@ -2410,7 +2399,7 @@ class ro extends lr {
|
|
|
2410
2399
|
this.openedUser.set(void 0);
|
|
2411
2400
|
};
|
|
2412
2401
|
}
|
|
2413
|
-
class
|
|
2402
|
+
class io extends lr {
|
|
2414
2403
|
insights;
|
|
2415
2404
|
closeFeature;
|
|
2416
2405
|
openFeature;
|
|
@@ -2420,10 +2409,10 @@ class no extends lr {
|
|
|
2420
2409
|
background;
|
|
2421
2410
|
constructor(e, r, o) {
|
|
2422
2411
|
super(e, r), this.background = an(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.HIGHLIGHTS), this.status.subscribe((s) => {
|
|
2423
|
-
s ===
|
|
2412
|
+
s === $e.Ready ? this.connect() : this.disconnect();
|
|
2424
2413
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2425
2414
|
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Re.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2426
|
-
type:
|
|
2415
|
+
type: je.QUESTION,
|
|
2427
2416
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2428
2417
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
2429
2418
|
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
@@ -2438,7 +2427,7 @@ class no extends lr {
|
|
|
2438
2427
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2439
2428
|
}
|
|
2440
2429
|
connect = () => {
|
|
2441
|
-
this.insights ? this.insights.invalidate() : this.insights = new
|
|
2430
|
+
this.insights ? this.insights.invalidate() : this.insights = new pe(Di(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2442
2431
|
window.requestAnimationFrame(() => {
|
|
2443
2432
|
this.insights?.invalidate();
|
|
2444
2433
|
});
|
|
@@ -2451,18 +2440,18 @@ class no extends lr {
|
|
|
2451
2440
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2452
2441
|
}
|
|
2453
2442
|
ue.GAMES + "", ue.HIGHLIGHTS + "";
|
|
2454
|
-
class
|
|
2443
|
+
class oo extends lr {
|
|
2455
2444
|
constructor(e, r) {
|
|
2456
2445
|
super(e, r);
|
|
2457
2446
|
}
|
|
2458
2447
|
}
|
|
2459
|
-
const
|
|
2460
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new
|
|
2448
|
+
const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HIGHLIGHTS ? new io(t, e, r) : new oo(t, e), ao = (t, e, r) => {
|
|
2449
|
+
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new de(ne(ue.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) => {
|
|
2461
2450
|
t.activeFeature.setValue(o);
|
|
2462
2451
|
}, t.sdk.closeFeature = () => {
|
|
2463
2452
|
t.activeFeature.setValue(ue.UNSET);
|
|
2464
2453
|
}, t.initFeature = (o, s = Ie.ORGANIZATION) => {
|
|
2465
|
-
const u =
|
|
2454
|
+
const u = so(o, s, t);
|
|
2466
2455
|
t.features.set(o.type, u);
|
|
2467
2456
|
}, t.updateFeature = (o, s) => {
|
|
2468
2457
|
t.features.get(o.type)?.update(o, s);
|
|
@@ -2513,7 +2502,7 @@ const oo = (t, e, r) => t.type === ue.GAMES ? new ro(t, e, r) : t.type === ue.HI
|
|
|
2513
2502
|
}, r();
|
|
2514
2503
|
};
|
|
2515
2504
|
var yr = { exports: {} }, gr = { exports: {} };
|
|
2516
|
-
function
|
|
2505
|
+
function uo(t) {
|
|
2517
2506
|
var e = new t(), r = e;
|
|
2518
2507
|
function o() {
|
|
2519
2508
|
var u = e;
|
|
@@ -2527,19 +2516,19 @@ function ao(t) {
|
|
|
2527
2516
|
release: s
|
|
2528
2517
|
};
|
|
2529
2518
|
}
|
|
2530
|
-
var
|
|
2531
|
-
function
|
|
2519
|
+
var co = uo, fo = co;
|
|
2520
|
+
function cn(t, e, r) {
|
|
2532
2521
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2533
2522
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2534
|
-
var o =
|
|
2523
|
+
var o = fo(lo), s = null, u = null, l = 0, f = null, p = {
|
|
2535
2524
|
push: P,
|
|
2536
2525
|
drain: ae,
|
|
2537
2526
|
saturated: ae,
|
|
2538
2527
|
pause: g,
|
|
2539
2528
|
paused: !1,
|
|
2540
2529
|
concurrency: r,
|
|
2541
|
-
running:
|
|
2542
|
-
resume:
|
|
2530
|
+
running: v,
|
|
2531
|
+
resume: F,
|
|
2543
2532
|
idle: N,
|
|
2544
2533
|
length: b,
|
|
2545
2534
|
getQueue: E,
|
|
@@ -2550,42 +2539,42 @@ function un(t, e, r) {
|
|
|
2550
2539
|
error: U
|
|
2551
2540
|
};
|
|
2552
2541
|
return p;
|
|
2553
|
-
function
|
|
2542
|
+
function v() {
|
|
2554
2543
|
return l;
|
|
2555
2544
|
}
|
|
2556
2545
|
function g() {
|
|
2557
2546
|
p.paused = !0;
|
|
2558
2547
|
}
|
|
2559
2548
|
function b() {
|
|
2560
|
-
for (var
|
|
2561
|
-
|
|
2549
|
+
for (var T = s, x = 0; T; )
|
|
2550
|
+
T = T.next, x++;
|
|
2562
2551
|
return x;
|
|
2563
2552
|
}
|
|
2564
2553
|
function E() {
|
|
2565
|
-
for (var
|
|
2566
|
-
x.push(
|
|
2554
|
+
for (var T = s, x = []; T; )
|
|
2555
|
+
x.push(T.value), T = T.next;
|
|
2567
2556
|
return x;
|
|
2568
2557
|
}
|
|
2569
|
-
function
|
|
2558
|
+
function F() {
|
|
2570
2559
|
if (p.paused) {
|
|
2571
2560
|
p.paused = !1;
|
|
2572
|
-
for (var
|
|
2561
|
+
for (var T = 0; T < p.concurrency; T++)
|
|
2573
2562
|
l++, I();
|
|
2574
2563
|
}
|
|
2575
2564
|
}
|
|
2576
2565
|
function N() {
|
|
2577
2566
|
return l === 0 && p.length() === 0;
|
|
2578
2567
|
}
|
|
2579
|
-
function P(
|
|
2568
|
+
function P(T, x) {
|
|
2580
2569
|
var k = o.get();
|
|
2581
|
-
k.context = t, k.release = I, k.value =
|
|
2570
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = f, l === p.concurrency || p.paused ? u ? (u.next = k, u = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2582
2571
|
}
|
|
2583
|
-
function K(
|
|
2572
|
+
function K(T, x) {
|
|
2584
2573
|
var k = o.get();
|
|
2585
|
-
k.context = t, k.release = I, k.value =
|
|
2574
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, l === p.concurrency || p.paused ? s ? (k.next = s, s = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2586
2575
|
}
|
|
2587
|
-
function I(
|
|
2588
|
-
|
|
2576
|
+
function I(T) {
|
|
2577
|
+
T && o.release(T);
|
|
2589
2578
|
var x = s;
|
|
2590
2579
|
x ? p.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && p.empty()) : --l === 0 && p.drain();
|
|
2591
2580
|
}
|
|
@@ -2595,13 +2584,13 @@ function un(t, e, r) {
|
|
|
2595
2584
|
function j() {
|
|
2596
2585
|
s = null, u = null, p.drain(), p.drain = ae;
|
|
2597
2586
|
}
|
|
2598
|
-
function U(
|
|
2599
|
-
f =
|
|
2587
|
+
function U(T) {
|
|
2588
|
+
f = T;
|
|
2600
2589
|
}
|
|
2601
2590
|
}
|
|
2602
2591
|
function ae() {
|
|
2603
2592
|
}
|
|
2604
|
-
function
|
|
2593
|
+
function lo() {
|
|
2605
2594
|
this.value = null, this.callback = ae, this.next = null, this.release = ae, this.context = null, this.errorHandler = null;
|
|
2606
2595
|
var t = this;
|
|
2607
2596
|
this.worked = function(r, o) {
|
|
@@ -2609,20 +2598,20 @@ function fo() {
|
|
|
2609
2598
|
t.value = null, t.callback = ae, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
|
|
2610
2599
|
};
|
|
2611
2600
|
}
|
|
2612
|
-
function
|
|
2601
|
+
function ho(t, e, r) {
|
|
2613
2602
|
typeof t == "function" && (r = e, e = t, t = null);
|
|
2614
2603
|
function o(g, b) {
|
|
2615
2604
|
e.call(this, g).then(function(E) {
|
|
2616
2605
|
b(null, E);
|
|
2617
2606
|
}, b);
|
|
2618
2607
|
}
|
|
2619
|
-
var s =
|
|
2620
|
-
return s.push = f, s.unshift = p, s.drained =
|
|
2608
|
+
var s = cn(t, o, r), u = s.push, l = s.unshift;
|
|
2609
|
+
return s.push = f, s.unshift = p, s.drained = v, s;
|
|
2621
2610
|
function f(g) {
|
|
2622
|
-
var b = new Promise(function(E,
|
|
2611
|
+
var b = new Promise(function(E, F) {
|
|
2623
2612
|
u(g, function(N, P) {
|
|
2624
2613
|
if (N) {
|
|
2625
|
-
|
|
2614
|
+
F(N);
|
|
2626
2615
|
return;
|
|
2627
2616
|
}
|
|
2628
2617
|
E(P);
|
|
@@ -2631,10 +2620,10 @@ function lo(t, e, r) {
|
|
|
2631
2620
|
return b.catch(ae), b;
|
|
2632
2621
|
}
|
|
2633
2622
|
function p(g) {
|
|
2634
|
-
var b = new Promise(function(E,
|
|
2623
|
+
var b = new Promise(function(E, F) {
|
|
2635
2624
|
l(g, function(N, P) {
|
|
2636
2625
|
if (N) {
|
|
2637
|
-
|
|
2626
|
+
F(N);
|
|
2638
2627
|
return;
|
|
2639
2628
|
}
|
|
2640
2629
|
E(P);
|
|
@@ -2642,7 +2631,7 @@ function lo(t, e, r) {
|
|
|
2642
2631
|
});
|
|
2643
2632
|
return b.catch(ae), b;
|
|
2644
2633
|
}
|
|
2645
|
-
function
|
|
2634
|
+
function v() {
|
|
2646
2635
|
if (s.idle())
|
|
2647
2636
|
return new Promise(function(E) {
|
|
2648
2637
|
E();
|
|
@@ -2655,9 +2644,9 @@ function lo(t, e, r) {
|
|
|
2655
2644
|
return b;
|
|
2656
2645
|
}
|
|
2657
2646
|
}
|
|
2658
|
-
gr.exports =
|
|
2659
|
-
gr.exports.promise =
|
|
2660
|
-
var
|
|
2647
|
+
gr.exports = cn;
|
|
2648
|
+
gr.exports.promise = ho;
|
|
2649
|
+
var fn = gr.exports, mr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
|
|
2661
2650
|
return Function.prototype.apply.call(e, r, o);
|
|
2662
2651
|
}, dt;
|
|
2663
2652
|
Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
|
|
@@ -2665,17 +2654,17 @@ Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertyS
|
|
|
2665
2654
|
} : dt = function(e) {
|
|
2666
2655
|
return Object.getOwnPropertyNames(e);
|
|
2667
2656
|
};
|
|
2668
|
-
function
|
|
2657
|
+
function po(t) {
|
|
2669
2658
|
console && console.warn && console.warn(t);
|
|
2670
2659
|
}
|
|
2671
|
-
var
|
|
2660
|
+
var ln = Number.isNaN || function(e) {
|
|
2672
2661
|
return e !== e;
|
|
2673
2662
|
};
|
|
2674
2663
|
function q() {
|
|
2675
2664
|
q.init.call(this);
|
|
2676
2665
|
}
|
|
2677
2666
|
mr.exports = q;
|
|
2678
|
-
mr.exports.once =
|
|
2667
|
+
mr.exports.once = bo;
|
|
2679
2668
|
q.EventEmitter = q;
|
|
2680
2669
|
q.prototype._events = void 0;
|
|
2681
2670
|
q.prototype._eventsCount = 0;
|
|
@@ -2691,7 +2680,7 @@ Object.defineProperty(q, "defaultMaxListeners", {
|
|
|
2691
2680
|
return _r;
|
|
2692
2681
|
},
|
|
2693
2682
|
set: function(t) {
|
|
2694
|
-
if (typeof t != "number" || t < 0 ||
|
|
2683
|
+
if (typeof t != "number" || t < 0 || ln(t))
|
|
2695
2684
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
2696
2685
|
_r = t;
|
|
2697
2686
|
}
|
|
@@ -2700,15 +2689,15 @@ q.init = function() {
|
|
|
2700
2689
|
(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;
|
|
2701
2690
|
};
|
|
2702
2691
|
q.prototype.setMaxListeners = function(e) {
|
|
2703
|
-
if (typeof e != "number" || e < 0 ||
|
|
2692
|
+
if (typeof e != "number" || e < 0 || ln(e))
|
|
2704
2693
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2705
2694
|
return this._maxListeners = e, this;
|
|
2706
2695
|
};
|
|
2707
|
-
function
|
|
2696
|
+
function hn(t) {
|
|
2708
2697
|
return t._maxListeners === void 0 ? q.defaultMaxListeners : t._maxListeners;
|
|
2709
2698
|
}
|
|
2710
2699
|
q.prototype.getMaxListeners = function() {
|
|
2711
|
-
return
|
|
2700
|
+
return hn(this);
|
|
2712
2701
|
};
|
|
2713
2702
|
q.prototype.emit = function(e) {
|
|
2714
2703
|
for (var r = [], o = 1; o < arguments.length; o++)
|
|
@@ -2731,11 +2720,11 @@ q.prototype.emit = function(e) {
|
|
|
2731
2720
|
if (typeof p == "function")
|
|
2732
2721
|
Tr(p, this, r);
|
|
2733
2722
|
else
|
|
2734
|
-
for (var
|
|
2723
|
+
for (var v = p.length, g = mn(p, v), o = 0; o < v; ++o)
|
|
2735
2724
|
Tr(g[o], this, r);
|
|
2736
2725
|
return !0;
|
|
2737
2726
|
};
|
|
2738
|
-
function
|
|
2727
|
+
function pn(t, e, r, o) {
|
|
2739
2728
|
var s, u, l;
|
|
2740
2729
|
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(
|
|
2741
2730
|
"newListener",
|
|
@@ -2743,33 +2732,33 @@ function hn(t, e, r, o) {
|
|
|
2743
2732
|
r.listener ? r.listener : r
|
|
2744
2733
|
), u = t._events), l = u[e]), l === void 0)
|
|
2745
2734
|
l = u[e] = r, ++t._eventsCount;
|
|
2746
|
-
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s =
|
|
2735
|
+
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = hn(t), s > 0 && l.length > s && !l.warned) {
|
|
2747
2736
|
l.warned = !0;
|
|
2748
2737
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2749
|
-
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length,
|
|
2738
|
+
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, po(f);
|
|
2750
2739
|
}
|
|
2751
2740
|
return t;
|
|
2752
2741
|
}
|
|
2753
2742
|
q.prototype.addListener = function(e, r) {
|
|
2754
|
-
return
|
|
2743
|
+
return pn(this, e, r, !1);
|
|
2755
2744
|
};
|
|
2756
2745
|
q.prototype.on = q.prototype.addListener;
|
|
2757
2746
|
q.prototype.prependListener = function(e, r) {
|
|
2758
|
-
return
|
|
2747
|
+
return pn(this, e, r, !0);
|
|
2759
2748
|
};
|
|
2760
|
-
function
|
|
2749
|
+
function yo() {
|
|
2761
2750
|
if (!this.fired)
|
|
2762
2751
|
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);
|
|
2763
2752
|
}
|
|
2764
|
-
function
|
|
2765
|
-
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s =
|
|
2753
|
+
function dn(t, e, r) {
|
|
2754
|
+
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = yo.bind(o);
|
|
2766
2755
|
return s.listener = r, o.wrapFn = s, s;
|
|
2767
2756
|
}
|
|
2768
2757
|
q.prototype.once = function(e, r) {
|
|
2769
|
-
return xt(r), this.on(e,
|
|
2758
|
+
return xt(r), this.on(e, dn(this, e, r)), this;
|
|
2770
2759
|
};
|
|
2771
2760
|
q.prototype.prependOnceListener = function(e, r) {
|
|
2772
|
-
return xt(r), this.prependListener(e,
|
|
2761
|
+
return xt(r), this.prependListener(e, dn(this, e, r)), this;
|
|
2773
2762
|
};
|
|
2774
2763
|
q.prototype.removeListener = function(e, r) {
|
|
2775
2764
|
var o, s, u, l, f;
|
|
@@ -2787,7 +2776,7 @@ q.prototype.removeListener = function(e, r) {
|
|
|
2787
2776
|
}
|
|
2788
2777
|
if (u < 0)
|
|
2789
2778
|
return this;
|
|
2790
|
-
u === 0 ? o.shift() :
|
|
2779
|
+
u === 0 ? o.shift() : go(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
|
|
2791
2780
|
}
|
|
2792
2781
|
return this;
|
|
2793
2782
|
};
|
|
@@ -2811,24 +2800,24 @@ q.prototype.removeAllListeners = function(e) {
|
|
|
2811
2800
|
this.removeListener(e, r[s]);
|
|
2812
2801
|
return this;
|
|
2813
2802
|
};
|
|
2814
|
-
function
|
|
2803
|
+
function yn(t, e, r) {
|
|
2815
2804
|
var o = t._events;
|
|
2816
2805
|
if (o === void 0)
|
|
2817
2806
|
return [];
|
|
2818
2807
|
var s = o[e];
|
|
2819
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ?
|
|
2808
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? mo(s) : mn(s, s.length);
|
|
2820
2809
|
}
|
|
2821
2810
|
q.prototype.listeners = function(e) {
|
|
2822
|
-
return
|
|
2811
|
+
return yn(this, e, !0);
|
|
2823
2812
|
};
|
|
2824
2813
|
q.prototype.rawListeners = function(e) {
|
|
2825
|
-
return
|
|
2814
|
+
return yn(this, e, !1);
|
|
2826
2815
|
};
|
|
2827
2816
|
q.listenerCount = function(t, e) {
|
|
2828
|
-
return typeof t.listenerCount == "function" ? t.listenerCount(e) :
|
|
2817
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : gn.call(t, e);
|
|
2829
2818
|
};
|
|
2830
|
-
q.prototype.listenerCount =
|
|
2831
|
-
function
|
|
2819
|
+
q.prototype.listenerCount = gn;
|
|
2820
|
+
function gn(t) {
|
|
2832
2821
|
var e = this._events;
|
|
2833
2822
|
if (e !== void 0) {
|
|
2834
2823
|
var r = e[t];
|
|
@@ -2842,22 +2831,22 @@ function yn(t) {
|
|
|
2842
2831
|
q.prototype.eventNames = function() {
|
|
2843
2832
|
return this._eventsCount > 0 ? dt(this._events) : [];
|
|
2844
2833
|
};
|
|
2845
|
-
function
|
|
2834
|
+
function mn(t, e) {
|
|
2846
2835
|
for (var r = new Array(e), o = 0; o < e; ++o)
|
|
2847
2836
|
r[o] = t[o];
|
|
2848
2837
|
return r;
|
|
2849
2838
|
}
|
|
2850
|
-
function
|
|
2839
|
+
function go(t, e) {
|
|
2851
2840
|
for (; e + 1 < t.length; e++)
|
|
2852
2841
|
t[e] = t[e + 1];
|
|
2853
2842
|
t.pop();
|
|
2854
2843
|
}
|
|
2855
|
-
function
|
|
2844
|
+
function mo(t) {
|
|
2856
2845
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
2857
2846
|
e[r] = t[r].listener || t[r];
|
|
2858
2847
|
return e;
|
|
2859
2848
|
}
|
|
2860
|
-
function
|
|
2849
|
+
function bo(t, e) {
|
|
2861
2850
|
return new Promise(function(r, o) {
|
|
2862
2851
|
function s(l) {
|
|
2863
2852
|
t.removeListener(e, u), o(l);
|
|
@@ -2865,13 +2854,13 @@ function mo(t, e) {
|
|
|
2865
2854
|
function u() {
|
|
2866
2855
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2867
2856
|
}
|
|
2868
|
-
|
|
2857
|
+
bn(t, e, u, { once: !0 }), e !== "error" && wo(t, s, { once: !0 });
|
|
2869
2858
|
});
|
|
2870
2859
|
}
|
|
2871
|
-
function
|
|
2872
|
-
typeof t.on == "function" &&
|
|
2860
|
+
function wo(t, e, r) {
|
|
2861
|
+
typeof t.on == "function" && bn(t, "error", e, r);
|
|
2873
2862
|
}
|
|
2874
|
-
function
|
|
2863
|
+
function bn(t, e, r, o) {
|
|
2875
2864
|
if (typeof t.on == "function")
|
|
2876
2865
|
o.once ? t.once(e, r) : t.on(e, r);
|
|
2877
2866
|
else if (typeof t.addEventListener == "function")
|
|
@@ -2881,7 +2870,7 @@ function mn(t, e, r, o) {
|
|
|
2881
2870
|
else
|
|
2882
2871
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2883
2872
|
}
|
|
2884
|
-
var
|
|
2873
|
+
var wn = mr.exports, Bt = {}, vn = {}, Sn = function() {
|
|
2885
2874
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2886
2875
|
return !1;
|
|
2887
2876
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2904,33 +2893,33 @@ var bn = mr.exports, Bt = {}, wn = {}, vn = function() {
|
|
|
2904
2893
|
return !1;
|
|
2905
2894
|
}
|
|
2906
2895
|
return !0;
|
|
2907
|
-
},
|
|
2908
|
-
return
|
|
2909
|
-
}, Cr = typeof Symbol < "u" && Symbol,
|
|
2910
|
-
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
2896
|
+
}, vo = Sn, br = function() {
|
|
2897
|
+
return vo() && !!Symbol.toStringTag;
|
|
2898
|
+
}, Cr = typeof Symbol < "u" && Symbol, So = Sn, Ao = function() {
|
|
2899
|
+
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : So();
|
|
2911
2900
|
}, Or = {
|
|
2912
2901
|
foo: {}
|
|
2913
|
-
},
|
|
2914
|
-
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof
|
|
2915
|
-
},
|
|
2902
|
+
}, Eo = Object, Io = function() {
|
|
2903
|
+
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof Eo);
|
|
2904
|
+
}, Fo = "Function.prototype.bind called on incompatible ", To = Object.prototype.toString, _o = Math.max, Co = "[object Function]", xr = function(e, r) {
|
|
2916
2905
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2917
2906
|
o[s] = e[s];
|
|
2918
2907
|
for (var u = 0; u < r.length; u += 1)
|
|
2919
2908
|
o[u + e.length] = r[u];
|
|
2920
2909
|
return o;
|
|
2921
|
-
},
|
|
2910
|
+
}, Oo = function(e, r) {
|
|
2922
2911
|
for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
|
|
2923
2912
|
o[u] = e[s];
|
|
2924
2913
|
return o;
|
|
2925
|
-
},
|
|
2914
|
+
}, xo = function(t, e) {
|
|
2926
2915
|
for (var r = "", o = 0; o < t.length; o += 1)
|
|
2927
2916
|
r += t[o], o + 1 < t.length && (r += e);
|
|
2928
2917
|
return r;
|
|
2929
|
-
},
|
|
2918
|
+
}, Bo = function(e) {
|
|
2930
2919
|
var r = this;
|
|
2931
|
-
if (typeof r != "function" ||
|
|
2932
|
-
throw new TypeError(
|
|
2933
|
-
for (var o =
|
|
2920
|
+
if (typeof r != "function" || To.apply(r) !== Co)
|
|
2921
|
+
throw new TypeError(Fo + r);
|
|
2922
|
+
for (var o = Oo(arguments, 1), s, u = function() {
|
|
2934
2923
|
if (this instanceof s) {
|
|
2935
2924
|
var g = r.apply(
|
|
2936
2925
|
this,
|
|
@@ -2942,19 +2931,19 @@ var bn = mr.exports, Bt = {}, wn = {}, vn = function() {
|
|
|
2942
2931
|
e,
|
|
2943
2932
|
xr(o, arguments)
|
|
2944
2933
|
);
|
|
2945
|
-
}, l =
|
|
2934
|
+
}, l = _o(0, r.length - o.length), f = [], p = 0; p < l; p++)
|
|
2946
2935
|
f[p] = "$" + p;
|
|
2947
|
-
if (s = Function("binder", "return function (" +
|
|
2948
|
-
var
|
|
2936
|
+
if (s = Function("binder", "return function (" + xo(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2937
|
+
var v = function() {
|
|
2949
2938
|
};
|
|
2950
|
-
|
|
2939
|
+
v.prototype = r.prototype, s.prototype = new v(), v.prototype = null;
|
|
2951
2940
|
}
|
|
2952
2941
|
return s;
|
|
2953
|
-
},
|
|
2942
|
+
}, ko = Bo, An = Function.prototype.bind || ko, Br = {}.hasOwnProperty, Lt = Function.prototype.call, Po = Lt.bind ? Lt.bind(Br) : function(t, e) {
|
|
2954
2943
|
return Lt.call(Br, t, e);
|
|
2955
|
-
}, $, Xe = SyntaxError,
|
|
2944
|
+
}, $, Xe = SyntaxError, En = Function, Ye = TypeError, Ut = function(t) {
|
|
2956
2945
|
try {
|
|
2957
|
-
return
|
|
2946
|
+
return En('"use strict"; return (' + t + ").constructor;")();
|
|
2958
2947
|
} catch {
|
|
2959
2948
|
}
|
|
2960
2949
|
}, De = Object.getOwnPropertyDescriptor;
|
|
@@ -2966,7 +2955,7 @@ if (De)
|
|
|
2966
2955
|
}
|
|
2967
2956
|
var $t = function() {
|
|
2968
2957
|
throw new Ye();
|
|
2969
|
-
},
|
|
2958
|
+
}, Ro = De ? function() {
|
|
2970
2959
|
try {
|
|
2971
2960
|
return arguments.callee, $t;
|
|
2972
2961
|
} catch {
|
|
@@ -2976,9 +2965,9 @@ var $t = function() {
|
|
|
2976
2965
|
return $t;
|
|
2977
2966
|
}
|
|
2978
2967
|
}
|
|
2979
|
-
}() : $t, Qe =
|
|
2968
|
+
}() : $t, Qe = Ao(), No = Io(), X = Object.getPrototypeOf || (No ? function(t) {
|
|
2980
2969
|
return t.__proto__;
|
|
2981
|
-
} : null), ze = {},
|
|
2970
|
+
} : null), ze = {}, Lo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
|
|
2982
2971
|
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
2983
2972
|
"%Array%": Array,
|
|
2984
2973
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
@@ -3006,7 +2995,7 @@ var $t = function() {
|
|
|
3006
2995
|
"%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
|
|
3007
2996
|
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
|
|
3008
2997
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
|
|
3009
|
-
"%Function%":
|
|
2998
|
+
"%Function%": En,
|
|
3010
2999
|
"%GeneratorFunction%": ze,
|
|
3011
3000
|
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
|
|
3012
3001
|
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
|
|
@@ -3035,8 +3024,8 @@ var $t = function() {
|
|
|
3035
3024
|
"%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
|
|
3036
3025
|
"%Symbol%": Qe ? Symbol : $,
|
|
3037
3026
|
"%SyntaxError%": Xe,
|
|
3038
|
-
"%ThrowTypeError%":
|
|
3039
|
-
"%TypedArray%":
|
|
3027
|
+
"%ThrowTypeError%": Ro,
|
|
3028
|
+
"%TypedArray%": Lo,
|
|
3040
3029
|
"%TypeError%": Ye,
|
|
3041
3030
|
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
3042
3031
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
@@ -3051,10 +3040,10 @@ if (X)
|
|
|
3051
3040
|
try {
|
|
3052
3041
|
null.error;
|
|
3053
3042
|
} catch (t) {
|
|
3054
|
-
var
|
|
3055
|
-
Ve["%Error.prototype%"] =
|
|
3043
|
+
var Uo = X(X(t));
|
|
3044
|
+
Ve["%Error.prototype%"] = Uo;
|
|
3056
3045
|
}
|
|
3057
|
-
var
|
|
3046
|
+
var $o = function t(e) {
|
|
3058
3047
|
var r;
|
|
3059
3048
|
if (e === "%AsyncFunction%")
|
|
3060
3049
|
r = Ut("async function () {}");
|
|
@@ -3122,21 +3111,21 @@ var Uo = function t(e) {
|
|
|
3122
3111
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3123
3112
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3124
3113
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3125
|
-
}, ft =
|
|
3114
|
+
}, ft = An, St = Po, jo = ft.call(Function.call, Array.prototype.concat), Do = ft.call(Function.apply, Array.prototype.splice), Pr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), Vo = ft.call(Function.call, RegExp.prototype.exec), Mo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qo = /\\(\\)?/g, Qo = function(e) {
|
|
3126
3115
|
var r = At(e, 0, 1), o = At(e, -1);
|
|
3127
3116
|
if (r === "%" && o !== "%")
|
|
3128
3117
|
throw new Xe("invalid intrinsic syntax, expected closing `%`");
|
|
3129
3118
|
if (o === "%" && r !== "%")
|
|
3130
3119
|
throw new Xe("invalid intrinsic syntax, expected opening `%`");
|
|
3131
3120
|
var s = [];
|
|
3132
|
-
return Pr(e,
|
|
3133
|
-
s[s.length] = f ? Pr(p,
|
|
3121
|
+
return Pr(e, Mo, function(u, l, f, p) {
|
|
3122
|
+
s[s.length] = f ? Pr(p, qo, "$1") : l || u;
|
|
3134
3123
|
}), s;
|
|
3135
|
-
},
|
|
3124
|
+
}, Go = function(e, r) {
|
|
3136
3125
|
var o = e, s;
|
|
3137
3126
|
if (St(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), St(Ve, o)) {
|
|
3138
3127
|
var u = Ve[o];
|
|
3139
|
-
if (u === ze && (u =
|
|
3128
|
+
if (u === ze && (u = $o(o)), typeof u > "u" && !r)
|
|
3140
3129
|
throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3141
3130
|
return {
|
|
3142
3131
|
alias: s,
|
|
@@ -3150,13 +3139,13 @@ var Uo = function t(e) {
|
|
|
3150
3139
|
throw new Ye("intrinsic name must be a non-empty string");
|
|
3151
3140
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3152
3141
|
throw new Ye('"allowMissing" argument must be a boolean');
|
|
3153
|
-
if (
|
|
3142
|
+
if (Vo(/^%?[^%]*%?$/, e) === null)
|
|
3154
3143
|
throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3155
|
-
var o =
|
|
3156
|
-
|
|
3144
|
+
var o = Qo(e), s = o.length > 0 ? o[0] : "", u = Go("%" + s + "%", r), l = u.name, f = u.value, p = !1, v = u.alias;
|
|
3145
|
+
v && (s = v[0], Do(o, jo([0, 1], v)));
|
|
3157
3146
|
for (var g = 1, b = !0; g < o.length; g += 1) {
|
|
3158
|
-
var E = o[g],
|
|
3159
|
-
if ((
|
|
3147
|
+
var E = o[g], F = At(E, 0, 1), N = At(E, -1);
|
|
3148
|
+
if ((F === '"' || F === "'" || F === "`" || N === '"' || N === "'" || N === "`") && F !== N)
|
|
3160
3149
|
throw new Xe("property names with quotes must have matching quotes");
|
|
3161
3150
|
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(Ve, l))
|
|
3162
3151
|
f = Ve[l];
|
|
@@ -3175,7 +3164,7 @@ var Uo = function t(e) {
|
|
|
3175
3164
|
}
|
|
3176
3165
|
}
|
|
3177
3166
|
return f;
|
|
3178
|
-
},
|
|
3167
|
+
}, In = { exports: {} }, zo = et, er = zo("%Object.defineProperty%", !0), tr = function() {
|
|
3179
3168
|
if (er)
|
|
3180
3169
|
try {
|
|
3181
3170
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3193,21 +3182,21 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3193
3182
|
return !0;
|
|
3194
3183
|
}
|
|
3195
3184
|
};
|
|
3196
|
-
var
|
|
3185
|
+
var Fn = tr, Ko = et, yt = Ko("%Object.getOwnPropertyDescriptor%", !0);
|
|
3197
3186
|
if (yt)
|
|
3198
3187
|
try {
|
|
3199
3188
|
yt([], "length");
|
|
3200
3189
|
} catch {
|
|
3201
3190
|
yt = null;
|
|
3202
3191
|
}
|
|
3203
|
-
var wr = yt,
|
|
3192
|
+
var wr = yt, Ho = Fn(), vr = et, ut = Ho && vr("%Object.defineProperty%", !0);
|
|
3204
3193
|
if (ut)
|
|
3205
3194
|
try {
|
|
3206
3195
|
ut({}, "a", { value: 1 });
|
|
3207
3196
|
} catch {
|
|
3208
3197
|
ut = !1;
|
|
3209
3198
|
}
|
|
3210
|
-
var
|
|
3199
|
+
var Wo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Jo = function(e, r, o) {
|
|
3211
3200
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3212
3201
|
throw new Ge("`obj` must be an object or a function`");
|
|
3213
3202
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3231,21 +3220,21 @@ var Ho = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Wo = function(e,
|
|
|
3231
3220
|
else if (f || !s && !u && !l)
|
|
3232
3221
|
e[r] = o;
|
|
3233
3222
|
else
|
|
3234
|
-
throw new
|
|
3235
|
-
},
|
|
3223
|
+
throw new Wo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3224
|
+
}, Tn = et, Nr = Jo, Yo = Fn(), Lr = wr, Ur = Tn("%TypeError%"), Xo = Tn("%Math.floor%"), Zo = function(e, r) {
|
|
3236
3225
|
if (typeof e != "function")
|
|
3237
3226
|
throw new Ur("`fn` is not a function");
|
|
3238
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3227
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Xo(r) !== r)
|
|
3239
3228
|
throw new Ur("`length` must be a positive 32-bit integer");
|
|
3240
3229
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3241
3230
|
if ("length" in e && Lr) {
|
|
3242
3231
|
var l = Lr(e, "length");
|
|
3243
3232
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3244
3233
|
}
|
|
3245
|
-
return (s || u || !o) && (
|
|
3234
|
+
return (s || u || !o) && (Yo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
|
|
3246
3235
|
};
|
|
3247
3236
|
(function(t) {
|
|
3248
|
-
var e =
|
|
3237
|
+
var e = An, r = et, o = Zo, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), v = r("%Math.max%");
|
|
3249
3238
|
if (p)
|
|
3250
3239
|
try {
|
|
3251
3240
|
p({}, "a", { value: 1 });
|
|
@@ -3255,10 +3244,10 @@ var Ho = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Wo = function(e,
|
|
|
3255
3244
|
t.exports = function(E) {
|
|
3256
3245
|
if (typeof E != "function")
|
|
3257
3246
|
throw new s("a function is required");
|
|
3258
|
-
var
|
|
3247
|
+
var F = f(e, l, arguments);
|
|
3259
3248
|
return o(
|
|
3260
|
-
|
|
3261
|
-
1 +
|
|
3249
|
+
F,
|
|
3250
|
+
1 + v(0, E.length - (arguments.length - 1)),
|
|
3262
3251
|
!0
|
|
3263
3252
|
);
|
|
3264
3253
|
};
|
|
@@ -3266,42 +3255,42 @@ var Ho = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Wo = function(e,
|
|
|
3266
3255
|
return f(e, u, arguments);
|
|
3267
3256
|
};
|
|
3268
3257
|
p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3269
|
-
})(
|
|
3270
|
-
var
|
|
3271
|
-
var o =
|
|
3272
|
-
return typeof o == "function" &&
|
|
3273
|
-
},
|
|
3274
|
-
return
|
|
3275
|
-
},
|
|
3258
|
+
})(In);
|
|
3259
|
+
var _n = In.exports, Cn = et, On = _n, es = On(Cn("String.prototype.indexOf")), xn = function(e, r) {
|
|
3260
|
+
var o = Cn(e, !!r);
|
|
3261
|
+
return typeof o == "function" && es(e, ".prototype.") > -1 ? On(o) : o;
|
|
3262
|
+
}, ts = br(), rs = xn, rr = rs("Object.prototype.toString"), kt = function(e) {
|
|
3263
|
+
return ts && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3264
|
+
}, Bn = function(e) {
|
|
3276
3265
|
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]";
|
|
3277
|
-
},
|
|
3266
|
+
}, ns = function() {
|
|
3278
3267
|
return kt(arguments);
|
|
3279
3268
|
}();
|
|
3280
|
-
kt.isLegacyArguments =
|
|
3281
|
-
var
|
|
3282
|
-
if (!
|
|
3269
|
+
kt.isLegacyArguments = Bn;
|
|
3270
|
+
var is = ns ? kt : Bn, os = Object.prototype.toString, ss = Function.prototype.toString, as = /^\s*(?:function)?\*/, kn = br(), jt = Object.getPrototypeOf, us = function() {
|
|
3271
|
+
if (!kn)
|
|
3283
3272
|
return !1;
|
|
3284
3273
|
try {
|
|
3285
3274
|
return Function("return function*() {}")();
|
|
3286
3275
|
} catch {
|
|
3287
3276
|
}
|
|
3288
|
-
}, Dt,
|
|
3277
|
+
}, Dt, cs = function(e) {
|
|
3289
3278
|
if (typeof e != "function")
|
|
3290
3279
|
return !1;
|
|
3291
|
-
if (
|
|
3280
|
+
if (as.test(ss.call(e)))
|
|
3292
3281
|
return !0;
|
|
3293
|
-
if (!
|
|
3294
|
-
var r =
|
|
3282
|
+
if (!kn) {
|
|
3283
|
+
var r = os.call(e);
|
|
3295
3284
|
return r === "[object GeneratorFunction]";
|
|
3296
3285
|
}
|
|
3297
3286
|
if (!jt)
|
|
3298
3287
|
return !1;
|
|
3299
3288
|
if (typeof Dt > "u") {
|
|
3300
|
-
var o =
|
|
3289
|
+
var o = us();
|
|
3301
3290
|
Dt = o ? jt(o) : !1;
|
|
3302
3291
|
}
|
|
3303
3292
|
return jt(e) === Dt;
|
|
3304
|
-
},
|
|
3293
|
+
}, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
|
|
3305
3294
|
if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
3306
3295
|
try {
|
|
3307
3296
|
nr = Object.defineProperty({}, "length", {
|
|
@@ -3316,35 +3305,35 @@ if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
|
3316
3305
|
}
|
|
3317
3306
|
else
|
|
3318
3307
|
He = null;
|
|
3319
|
-
var
|
|
3308
|
+
var fs = /^\s*class\b/, ir = function(e) {
|
|
3320
3309
|
try {
|
|
3321
|
-
var r =
|
|
3322
|
-
return
|
|
3310
|
+
var r = Pn.call(e);
|
|
3311
|
+
return fs.test(r);
|
|
3323
3312
|
} catch {
|
|
3324
3313
|
return !1;
|
|
3325
3314
|
}
|
|
3326
3315
|
}, Vt = function(e) {
|
|
3327
3316
|
try {
|
|
3328
|
-
return ir(e) ? !1 : (
|
|
3317
|
+
return ir(e) ? !1 : (Pn.call(e), !0);
|
|
3329
3318
|
} catch {
|
|
3330
3319
|
return !1;
|
|
3331
3320
|
}
|
|
3332
|
-
}, mt = Object.prototype.toString,
|
|
3321
|
+
}, mt = Object.prototype.toString, ls = "[object Object]", hs = "[object Function]", ps = "[object GeneratorFunction]", ds = "[object HTMLAllCollection]", ys = "[object HTML document.all class]", gs = "[object HTMLCollection]", ms = typeof Symbol == "function" && !!Symbol.toStringTag, bs = !(0 in [,]), or = function() {
|
|
3333
3322
|
return !1;
|
|
3334
3323
|
};
|
|
3335
3324
|
if (typeof document == "object") {
|
|
3336
|
-
var
|
|
3337
|
-
mt.call(
|
|
3338
|
-
if ((
|
|
3325
|
+
var ws = document.all;
|
|
3326
|
+
mt.call(ws) === mt.call(document.all) && (or = function(e) {
|
|
3327
|
+
if ((bs || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3339
3328
|
try {
|
|
3340
3329
|
var r = mt.call(e);
|
|
3341
|
-
return (r ===
|
|
3330
|
+
return (r === ds || r === ys || r === gs || r === ls) && e("") == null;
|
|
3342
3331
|
} catch {
|
|
3343
3332
|
}
|
|
3344
3333
|
return !1;
|
|
3345
3334
|
});
|
|
3346
3335
|
}
|
|
3347
|
-
var
|
|
3336
|
+
var vs = He ? function(e) {
|
|
3348
3337
|
if (or(e))
|
|
3349
3338
|
return !0;
|
|
3350
3339
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
@@ -3361,27 +3350,27 @@ var ws = He ? function(e) {
|
|
|
3361
3350
|
return !0;
|
|
3362
3351
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3363
3352
|
return !1;
|
|
3364
|
-
if (
|
|
3353
|
+
if (ms)
|
|
3365
3354
|
return Vt(e);
|
|
3366
3355
|
if (ir(e))
|
|
3367
3356
|
return !1;
|
|
3368
3357
|
var r = mt.call(e);
|
|
3369
|
-
return r !==
|
|
3370
|
-
},
|
|
3358
|
+
return r !== hs && r !== ps && !/^\[object HTML/.test(r) ? !1 : Vt(e);
|
|
3359
|
+
}, Ss = vs, As = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, Es = function(e, r, o) {
|
|
3371
3360
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3372
|
-
|
|
3373
|
-
},
|
|
3361
|
+
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3362
|
+
}, Is = function(e, r, o) {
|
|
3374
3363
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3375
3364
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3376
|
-
}, Is = function(e, r, o) {
|
|
3377
|
-
for (var s in e)
|
|
3378
|
-
Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3379
3365
|
}, Fs = function(e, r, o) {
|
|
3380
|
-
|
|
3366
|
+
for (var s in e)
|
|
3367
|
+
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3368
|
+
}, Ts = function(e, r, o) {
|
|
3369
|
+
if (!Ss(r))
|
|
3381
3370
|
throw new TypeError("iterator must be a function");
|
|
3382
3371
|
var s;
|
|
3383
|
-
arguments.length >= 3 && (s = o),
|
|
3384
|
-
},
|
|
3372
|
+
arguments.length >= 3 && (s = o), As.call(e) === "[object Array]" ? Es(e, r, s) : typeof e == "string" ? Is(e, r, s) : Fs(e, r, s);
|
|
3373
|
+
}, _s = Ts, Mt = [
|
|
3385
3374
|
"BigInt64Array",
|
|
3386
3375
|
"BigUint64Array",
|
|
3387
3376
|
"Float32Array",
|
|
@@ -3393,17 +3382,17 @@ var ws = He ? function(e) {
|
|
|
3393
3382
|
"Uint32Array",
|
|
3394
3383
|
"Uint8Array",
|
|
3395
3384
|
"Uint8ClampedArray"
|
|
3396
|
-
],
|
|
3385
|
+
], Cs = typeof globalThis > "u" ? Yr : globalThis, Os = function() {
|
|
3397
3386
|
for (var e = [], r = 0; r < Mt.length; r++)
|
|
3398
|
-
typeof
|
|
3387
|
+
typeof Cs[Mt[r]] == "function" && (e[e.length] = Mt[r]);
|
|
3399
3388
|
return e;
|
|
3400
|
-
}, Et =
|
|
3389
|
+
}, Et = _s, xs = Os, $r = _n, Sr = xn, bt = wr, Bs = Sr("Object.prototype.toString"), Nn = br(), jr = typeof globalThis > "u" ? Yr : globalThis, sr = xs(), Ar = Sr("String.prototype.slice"), qt = Object.getPrototypeOf, ks = Sr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3401
3390
|
for (var o = 0; o < e.length; o += 1)
|
|
3402
3391
|
if (e[o] === r)
|
|
3403
3392
|
return o;
|
|
3404
3393
|
return -1;
|
|
3405
3394
|
}, It = { __proto__: null };
|
|
3406
|
-
|
|
3395
|
+
Nn && bt && qt ? Et(sr, function(t) {
|
|
3407
3396
|
var e = new jr[t]();
|
|
3408
3397
|
if (Symbol.toStringTag in e) {
|
|
3409
3398
|
var r = qt(e), o = bt(r, Symbol.toStringTag);
|
|
@@ -3417,7 +3406,7 @@ Rn && bt && qt ? Et(sr, function(t) {
|
|
|
3417
3406
|
var e = new jr[t](), r = e.slice || e.set;
|
|
3418
3407
|
r && (It["$" + t] = $r(r));
|
|
3419
3408
|
});
|
|
3420
|
-
var
|
|
3409
|
+
var Ps = function(e) {
|
|
3421
3410
|
var r = !1;
|
|
3422
3411
|
return Et(It, function(o, s) {
|
|
3423
3412
|
if (!r)
|
|
@@ -3426,7 +3415,7 @@ var ks = function(e) {
|
|
|
3426
3415
|
} catch {
|
|
3427
3416
|
}
|
|
3428
3417
|
}), r;
|
|
3429
|
-
},
|
|
3418
|
+
}, Rs = function(e) {
|
|
3430
3419
|
var r = !1;
|
|
3431
3420
|
return Et(It, function(o, s) {
|
|
3432
3421
|
if (!r)
|
|
@@ -3435,202 +3424,202 @@ var ks = function(e) {
|
|
|
3435
3424
|
} catch {
|
|
3436
3425
|
}
|
|
3437
3426
|
}), r;
|
|
3438
|
-
},
|
|
3427
|
+
}, Ln = function(e) {
|
|
3439
3428
|
if (!e || typeof e != "object")
|
|
3440
3429
|
return !1;
|
|
3441
|
-
if (!
|
|
3442
|
-
var r = Ar(
|
|
3443
|
-
return
|
|
3430
|
+
if (!Nn) {
|
|
3431
|
+
var r = Ar(Bs(e), 8, -1);
|
|
3432
|
+
return ks(sr, r) > -1 ? r : r !== "Object" ? !1 : Rs(e);
|
|
3444
3433
|
}
|
|
3445
|
-
return bt ?
|
|
3446
|
-
},
|
|
3447
|
-
return !!
|
|
3434
|
+
return bt ? Ps(e) : null;
|
|
3435
|
+
}, Ns = Ln, Ls = function(e) {
|
|
3436
|
+
return !!Ns(e);
|
|
3448
3437
|
};
|
|
3449
3438
|
(function(t) {
|
|
3450
|
-
var e =
|
|
3451
|
-
function u(
|
|
3452
|
-
return
|
|
3439
|
+
var e = is, r = cs, o = Ln, s = Ls;
|
|
3440
|
+
function u(S) {
|
|
3441
|
+
return S.call.bind(S);
|
|
3453
3442
|
}
|
|
3454
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString),
|
|
3443
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString), v = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), b = u(Boolean.prototype.valueOf);
|
|
3455
3444
|
if (l)
|
|
3456
3445
|
var E = u(BigInt.prototype.valueOf);
|
|
3457
3446
|
if (f)
|
|
3458
|
-
var
|
|
3459
|
-
function N(
|
|
3460
|
-
if (typeof
|
|
3447
|
+
var F = u(Symbol.prototype.valueOf);
|
|
3448
|
+
function N(S, ht) {
|
|
3449
|
+
if (typeof S != "object")
|
|
3461
3450
|
return !1;
|
|
3462
3451
|
try {
|
|
3463
|
-
return ht(
|
|
3452
|
+
return ht(S), !0;
|
|
3464
3453
|
} catch {
|
|
3465
3454
|
return !1;
|
|
3466
3455
|
}
|
|
3467
3456
|
}
|
|
3468
3457
|
t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
|
|
3469
|
-
function P(
|
|
3470
|
-
return typeof Promise < "u" &&
|
|
3458
|
+
function P(S) {
|
|
3459
|
+
return typeof Promise < "u" && S instanceof Promise || S !== null && typeof S == "object" && typeof S.then == "function" && typeof S.catch == "function";
|
|
3471
3460
|
}
|
|
3472
3461
|
t.isPromise = P;
|
|
3473
|
-
function K(
|
|
3474
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(
|
|
3462
|
+
function K(S) {
|
|
3463
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(S) : s(S) || w(S);
|
|
3475
3464
|
}
|
|
3476
3465
|
t.isArrayBufferView = K;
|
|
3477
|
-
function I(
|
|
3478
|
-
return o(
|
|
3466
|
+
function I(S) {
|
|
3467
|
+
return o(S) === "Uint8Array";
|
|
3479
3468
|
}
|
|
3480
3469
|
t.isUint8Array = I;
|
|
3481
|
-
function _(
|
|
3482
|
-
return o(
|
|
3470
|
+
function _(S) {
|
|
3471
|
+
return o(S) === "Uint8ClampedArray";
|
|
3483
3472
|
}
|
|
3484
3473
|
t.isUint8ClampedArray = _;
|
|
3485
|
-
function j(
|
|
3486
|
-
return o(
|
|
3474
|
+
function j(S) {
|
|
3475
|
+
return o(S) === "Uint16Array";
|
|
3487
3476
|
}
|
|
3488
3477
|
t.isUint16Array = j;
|
|
3489
|
-
function U(
|
|
3490
|
-
return o(
|
|
3478
|
+
function U(S) {
|
|
3479
|
+
return o(S) === "Uint32Array";
|
|
3491
3480
|
}
|
|
3492
3481
|
t.isUint32Array = U;
|
|
3493
|
-
function
|
|
3494
|
-
return o(
|
|
3482
|
+
function T(S) {
|
|
3483
|
+
return o(S) === "Int8Array";
|
|
3495
3484
|
}
|
|
3496
|
-
t.isInt8Array =
|
|
3497
|
-
function x(
|
|
3498
|
-
return o(
|
|
3485
|
+
t.isInt8Array = T;
|
|
3486
|
+
function x(S) {
|
|
3487
|
+
return o(S) === "Int16Array";
|
|
3499
3488
|
}
|
|
3500
3489
|
t.isInt16Array = x;
|
|
3501
|
-
function k(
|
|
3502
|
-
return o(
|
|
3490
|
+
function k(S) {
|
|
3491
|
+
return o(S) === "Int32Array";
|
|
3503
3492
|
}
|
|
3504
3493
|
t.isInt32Array = k;
|
|
3505
|
-
function G(
|
|
3506
|
-
return o(
|
|
3494
|
+
function G(S) {
|
|
3495
|
+
return o(S) === "Float32Array";
|
|
3507
3496
|
}
|
|
3508
3497
|
t.isFloat32Array = G;
|
|
3509
|
-
function ie(
|
|
3510
|
-
return o(
|
|
3498
|
+
function ie(S) {
|
|
3499
|
+
return o(S) === "Float64Array";
|
|
3511
3500
|
}
|
|
3512
3501
|
t.isFloat64Array = ie;
|
|
3513
|
-
function Ce(
|
|
3514
|
-
return o(
|
|
3502
|
+
function Ce(S) {
|
|
3503
|
+
return o(S) === "BigInt64Array";
|
|
3515
3504
|
}
|
|
3516
3505
|
t.isBigInt64Array = Ce;
|
|
3517
|
-
function Se(
|
|
3518
|
-
return o(
|
|
3506
|
+
function Se(S) {
|
|
3507
|
+
return o(S) === "BigUint64Array";
|
|
3519
3508
|
}
|
|
3520
3509
|
t.isBigUint64Array = Se;
|
|
3521
|
-
function
|
|
3522
|
-
return p(
|
|
3510
|
+
function ce(S) {
|
|
3511
|
+
return p(S) === "[object Map]";
|
|
3523
3512
|
}
|
|
3524
|
-
|
|
3525
|
-
function rt(
|
|
3526
|
-
return typeof Map > "u" ? !1 :
|
|
3513
|
+
ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
|
|
3514
|
+
function rt(S) {
|
|
3515
|
+
return typeof Map > "u" ? !1 : ce.working ? ce(S) : S instanceof Map;
|
|
3527
3516
|
}
|
|
3528
3517
|
t.isMap = rt;
|
|
3529
|
-
function
|
|
3530
|
-
return p(
|
|
3518
|
+
function fe(S) {
|
|
3519
|
+
return p(S) === "[object Set]";
|
|
3531
3520
|
}
|
|
3532
|
-
|
|
3533
|
-
function Oe(
|
|
3534
|
-
return typeof Set > "u" ? !1 :
|
|
3521
|
+
fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
|
|
3522
|
+
function Oe(S) {
|
|
3523
|
+
return typeof Set > "u" ? !1 : fe.working ? fe(S) : S instanceof Set;
|
|
3535
3524
|
}
|
|
3536
3525
|
t.isSet = Oe;
|
|
3537
|
-
function xe(
|
|
3538
|
-
return p(
|
|
3526
|
+
function xe(S) {
|
|
3527
|
+
return p(S) === "[object WeakMap]";
|
|
3539
3528
|
}
|
|
3540
3529
|
xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
|
|
3541
|
-
function nt(
|
|
3542
|
-
return typeof WeakMap > "u" ? !1 : xe.working ? xe(
|
|
3530
|
+
function nt(S) {
|
|
3531
|
+
return typeof WeakMap > "u" ? !1 : xe.working ? xe(S) : S instanceof WeakMap;
|
|
3543
3532
|
}
|
|
3544
3533
|
t.isWeakMap = nt;
|
|
3545
|
-
function Be(
|
|
3546
|
-
return p(
|
|
3534
|
+
function Be(S) {
|
|
3535
|
+
return p(S) === "[object WeakSet]";
|
|
3547
3536
|
}
|
|
3548
3537
|
Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
|
|
3549
|
-
function
|
|
3550
|
-
return Be(
|
|
3538
|
+
function le(S) {
|
|
3539
|
+
return Be(S);
|
|
3551
3540
|
}
|
|
3552
|
-
t.isWeakSet =
|
|
3553
|
-
function ke(
|
|
3554
|
-
return p(
|
|
3541
|
+
t.isWeakSet = le;
|
|
3542
|
+
function ke(S) {
|
|
3543
|
+
return p(S) === "[object ArrayBuffer]";
|
|
3555
3544
|
}
|
|
3556
3545
|
ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
|
|
3557
|
-
function H(
|
|
3558
|
-
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(
|
|
3546
|
+
function H(S) {
|
|
3547
|
+
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(S) : S instanceof ArrayBuffer;
|
|
3559
3548
|
}
|
|
3560
3549
|
t.isArrayBuffer = H;
|
|
3561
|
-
function d(
|
|
3562
|
-
return p(
|
|
3550
|
+
function d(S) {
|
|
3551
|
+
return p(S) === "[object DataView]";
|
|
3563
3552
|
}
|
|
3564
3553
|
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3565
|
-
function w(
|
|
3566
|
-
return typeof DataView > "u" ? !1 : d.working ? d(
|
|
3554
|
+
function w(S) {
|
|
3555
|
+
return typeof DataView > "u" ? !1 : d.working ? d(S) : S instanceof DataView;
|
|
3567
3556
|
}
|
|
3568
3557
|
t.isDataView = w;
|
|
3569
3558
|
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3570
|
-
function C(
|
|
3571
|
-
return p(
|
|
3559
|
+
function C(S) {
|
|
3560
|
+
return p(S) === "[object SharedArrayBuffer]";
|
|
3572
3561
|
}
|
|
3573
|
-
function D(
|
|
3574
|
-
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(
|
|
3562
|
+
function D(S) {
|
|
3563
|
+
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(S) : S instanceof A);
|
|
3575
3564
|
}
|
|
3576
3565
|
t.isSharedArrayBuffer = D;
|
|
3577
|
-
function V(
|
|
3578
|
-
return p(
|
|
3566
|
+
function V(S) {
|
|
3567
|
+
return p(S) === "[object AsyncFunction]";
|
|
3579
3568
|
}
|
|
3580
3569
|
t.isAsyncFunction = V;
|
|
3581
|
-
function B(
|
|
3582
|
-
return p(
|
|
3570
|
+
function B(S) {
|
|
3571
|
+
return p(S) === "[object Map Iterator]";
|
|
3583
3572
|
}
|
|
3584
3573
|
t.isMapIterator = B;
|
|
3585
|
-
function L(
|
|
3586
|
-
return p(
|
|
3574
|
+
function L(S) {
|
|
3575
|
+
return p(S) === "[object Set Iterator]";
|
|
3587
3576
|
}
|
|
3588
3577
|
t.isSetIterator = L;
|
|
3589
|
-
function M(
|
|
3590
|
-
return p(
|
|
3578
|
+
function M(S) {
|
|
3579
|
+
return p(S) === "[object Generator]";
|
|
3591
3580
|
}
|
|
3592
3581
|
t.isGeneratorObject = M;
|
|
3593
|
-
function te(
|
|
3594
|
-
return p(
|
|
3582
|
+
function te(S) {
|
|
3583
|
+
return p(S) === "[object WebAssembly.Module]";
|
|
3595
3584
|
}
|
|
3596
3585
|
t.isWebAssemblyCompiledModule = te;
|
|
3597
|
-
function ye(
|
|
3598
|
-
return N(
|
|
3586
|
+
function ye(S) {
|
|
3587
|
+
return N(S, v);
|
|
3599
3588
|
}
|
|
3600
3589
|
t.isNumberObject = ye;
|
|
3601
|
-
function
|
|
3602
|
-
return N(
|
|
3590
|
+
function he(S) {
|
|
3591
|
+
return N(S, g);
|
|
3603
3592
|
}
|
|
3604
|
-
t.isStringObject =
|
|
3605
|
-
function oe(
|
|
3606
|
-
return N(
|
|
3593
|
+
t.isStringObject = he;
|
|
3594
|
+
function oe(S) {
|
|
3595
|
+
return N(S, b);
|
|
3607
3596
|
}
|
|
3608
3597
|
t.isBooleanObject = oe;
|
|
3609
|
-
function Me(
|
|
3610
|
-
return l && N(
|
|
3598
|
+
function Me(S) {
|
|
3599
|
+
return l && N(S, E);
|
|
3611
3600
|
}
|
|
3612
3601
|
t.isBigIntObject = Me;
|
|
3613
|
-
function lt(
|
|
3614
|
-
return f && N(
|
|
3602
|
+
function lt(S) {
|
|
3603
|
+
return f && N(S, F);
|
|
3615
3604
|
}
|
|
3616
3605
|
t.isSymbolObject = lt;
|
|
3617
|
-
function it(
|
|
3618
|
-
return ye(
|
|
3606
|
+
function it(S) {
|
|
3607
|
+
return ye(S) || he(S) || oe(S) || Me(S) || lt(S);
|
|
3619
3608
|
}
|
|
3620
3609
|
t.isBoxedPrimitive = it;
|
|
3621
|
-
function Pt(
|
|
3622
|
-
return typeof Uint8Array < "u" && (H(
|
|
3610
|
+
function Pt(S) {
|
|
3611
|
+
return typeof Uint8Array < "u" && (H(S) || D(S));
|
|
3623
3612
|
}
|
|
3624
|
-
t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(
|
|
3625
|
-
Object.defineProperty(t,
|
|
3613
|
+
t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
|
|
3614
|
+
Object.defineProperty(t, S, {
|
|
3626
3615
|
enumerable: !1,
|
|
3627
3616
|
value: function() {
|
|
3628
|
-
throw new Error(
|
|
3617
|
+
throw new Error(S + " is not supported in userland");
|
|
3629
3618
|
}
|
|
3630
3619
|
});
|
|
3631
3620
|
});
|
|
3632
|
-
})(
|
|
3633
|
-
var
|
|
3621
|
+
})(vn);
|
|
3622
|
+
var Us = function(e) {
|
|
3634
3623
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3635
3624
|
}, ar = { exports: {} };
|
|
3636
3625
|
typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
@@ -3650,7 +3639,7 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3650
3639
|
o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
|
|
3651
3640
|
}
|
|
3652
3641
|
};
|
|
3653
|
-
var
|
|
3642
|
+
var $s = ar.exports;
|
|
3654
3643
|
(function(t) {
|
|
3655
3644
|
var e = Object.getOwnPropertyDescriptors || function(w) {
|
|
3656
3645
|
for (var A = Object.keys(w), C = {}, D = 0; D < A.length; D++)
|
|
@@ -3658,7 +3647,7 @@ var Us = ar.exports;
|
|
|
3658
3647
|
return C;
|
|
3659
3648
|
}, r = /%[sdj%]/g;
|
|
3660
3649
|
t.format = function(d) {
|
|
3661
|
-
if (!
|
|
3650
|
+
if (!T(d)) {
|
|
3662
3651
|
for (var w = [], A = 0; A < arguments.length; A++)
|
|
3663
3652
|
w.push(l(arguments[A]));
|
|
3664
3653
|
return w.join(" ");
|
|
@@ -3760,27 +3749,27 @@ var Us = ar.exports;
|
|
|
3760
3749
|
function p(d, w) {
|
|
3761
3750
|
return d;
|
|
3762
3751
|
}
|
|
3763
|
-
function
|
|
3752
|
+
function v(d) {
|
|
3764
3753
|
var w = {};
|
|
3765
3754
|
return d.forEach(function(A, C) {
|
|
3766
3755
|
w[A] = !0;
|
|
3767
3756
|
}), w;
|
|
3768
3757
|
}
|
|
3769
3758
|
function g(d, w, A) {
|
|
3770
|
-
if (d.customInspect && w &&
|
|
3759
|
+
if (d.customInspect && w && ce(w.inspect) && // Filter out the util module, it's inspect function is special
|
|
3771
3760
|
w.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3772
3761
|
!(w.constructor && w.constructor.prototype === w)) {
|
|
3773
3762
|
var C = w.inspect(A, d);
|
|
3774
|
-
return
|
|
3763
|
+
return T(C) || (C = g(d, C, A)), C;
|
|
3775
3764
|
}
|
|
3776
3765
|
var D = b(d, w);
|
|
3777
3766
|
if (D)
|
|
3778
3767
|
return D;
|
|
3779
|
-
var V = Object.keys(w), B =
|
|
3768
|
+
var V = Object.keys(w), B = v(V);
|
|
3780
3769
|
if (d.showHidden && (V = Object.getOwnPropertyNames(w)), Se(w) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
|
|
3781
3770
|
return E(w);
|
|
3782
3771
|
if (V.length === 0) {
|
|
3783
|
-
if (
|
|
3772
|
+
if (ce(w)) {
|
|
3784
3773
|
var L = w.name ? ": " + w.name : "";
|
|
3785
3774
|
return d.stylize("[Function" + L + "]", "special");
|
|
3786
3775
|
}
|
|
@@ -3792,9 +3781,9 @@ var Us = ar.exports;
|
|
|
3792
3781
|
return E(w);
|
|
3793
3782
|
}
|
|
3794
3783
|
var M = "", te = !1, ye = ["{", "}"];
|
|
3795
|
-
if (K(w) && (te = !0, ye = ["[", "]"]),
|
|
3796
|
-
var
|
|
3797
|
-
M = " [Function" +
|
|
3784
|
+
if (K(w) && (te = !0, ye = ["[", "]"]), ce(w)) {
|
|
3785
|
+
var he = w.name ? ": " + w.name : "";
|
|
3786
|
+
M = " [Function" + he + "]";
|
|
3798
3787
|
}
|
|
3799
3788
|
if (G(w) && (M = " " + RegExp.prototype.toString.call(w)), Ce(w) && (M = " " + Date.prototype.toUTCString.call(w)), Se(w) && (M = " " + E(w)), V.length === 0 && (!te || w.length == 0))
|
|
3800
3789
|
return ye[0] + M + ye[1];
|
|
@@ -3802,14 +3791,14 @@ var Us = ar.exports;
|
|
|
3802
3791
|
return G(w) ? d.stylize(RegExp.prototype.toString.call(w), "regexp") : d.stylize("[Object]", "special");
|
|
3803
3792
|
d.seen.push(w);
|
|
3804
3793
|
var oe;
|
|
3805
|
-
return te ? oe =
|
|
3794
|
+
return te ? oe = F(d, w, A, B, V) : oe = V.map(function(Me) {
|
|
3806
3795
|
return N(d, w, A, B, Me, te);
|
|
3807
3796
|
}), d.seen.pop(), P(oe, M, ye);
|
|
3808
3797
|
}
|
|
3809
3798
|
function b(d, w) {
|
|
3810
3799
|
if (k(w))
|
|
3811
3800
|
return d.stylize("undefined", "undefined");
|
|
3812
|
-
if (
|
|
3801
|
+
if (T(w)) {
|
|
3813
3802
|
var A = "'" + JSON.stringify(w).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3814
3803
|
return d.stylize(A, "string");
|
|
3815
3804
|
}
|
|
@@ -3823,7 +3812,7 @@ var Us = ar.exports;
|
|
|
3823
3812
|
function E(d) {
|
|
3824
3813
|
return "[" + Error.prototype.toString.call(d) + "]";
|
|
3825
3814
|
}
|
|
3826
|
-
function
|
|
3815
|
+
function F(d, w, A, C, D) {
|
|
3827
3816
|
for (var V = [], B = 0, L = w.length; B < L; ++B)
|
|
3828
3817
|
Be(w, String(B)) ? V.push(N(
|
|
3829
3818
|
d,
|
|
@@ -3872,7 +3861,7 @@ var Us = ar.exports;
|
|
|
3872
3861
|
`) + " " + d.join(`,
|
|
3873
3862
|
`) + " " + A[1] : A[0] + w + " " + d.join(", ") + " " + A[1];
|
|
3874
3863
|
}
|
|
3875
|
-
t.types =
|
|
3864
|
+
t.types = vn;
|
|
3876
3865
|
function K(d) {
|
|
3877
3866
|
return Array.isArray(d);
|
|
3878
3867
|
}
|
|
@@ -3893,10 +3882,10 @@ var Us = ar.exports;
|
|
|
3893
3882
|
return typeof d == "number";
|
|
3894
3883
|
}
|
|
3895
3884
|
t.isNumber = U;
|
|
3896
|
-
function
|
|
3885
|
+
function T(d) {
|
|
3897
3886
|
return typeof d == "string";
|
|
3898
3887
|
}
|
|
3899
|
-
t.isString =
|
|
3888
|
+
t.isString = T;
|
|
3900
3889
|
function x(d) {
|
|
3901
3890
|
return typeof d == "symbol";
|
|
3902
3891
|
}
|
|
@@ -3906,7 +3895,7 @@ var Us = ar.exports;
|
|
|
3906
3895
|
}
|
|
3907
3896
|
t.isUndefined = k;
|
|
3908
3897
|
function G(d) {
|
|
3909
|
-
return ie(d) &&
|
|
3898
|
+
return ie(d) && fe(d) === "[object RegExp]";
|
|
3910
3899
|
}
|
|
3911
3900
|
t.isRegExp = G, t.types.isRegExp = G;
|
|
3912
3901
|
function ie(d) {
|
|
@@ -3914,23 +3903,23 @@ var Us = ar.exports;
|
|
|
3914
3903
|
}
|
|
3915
3904
|
t.isObject = ie;
|
|
3916
3905
|
function Ce(d) {
|
|
3917
|
-
return ie(d) &&
|
|
3906
|
+
return ie(d) && fe(d) === "[object Date]";
|
|
3918
3907
|
}
|
|
3919
3908
|
t.isDate = Ce, t.types.isDate = Ce;
|
|
3920
3909
|
function Se(d) {
|
|
3921
|
-
return ie(d) && (
|
|
3910
|
+
return ie(d) && (fe(d) === "[object Error]" || d instanceof Error);
|
|
3922
3911
|
}
|
|
3923
3912
|
t.isError = Se, t.types.isNativeError = Se;
|
|
3924
|
-
function
|
|
3913
|
+
function ce(d) {
|
|
3925
3914
|
return typeof d == "function";
|
|
3926
3915
|
}
|
|
3927
|
-
t.isFunction =
|
|
3916
|
+
t.isFunction = ce;
|
|
3928
3917
|
function rt(d) {
|
|
3929
3918
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3930
3919
|
typeof d > "u";
|
|
3931
3920
|
}
|
|
3932
|
-
t.isPrimitive = rt, t.isBuffer =
|
|
3933
|
-
function
|
|
3921
|
+
t.isPrimitive = rt, t.isBuffer = Us;
|
|
3922
|
+
function fe(d) {
|
|
3934
3923
|
return Object.prototype.toString.call(d);
|
|
3935
3924
|
}
|
|
3936
3925
|
function Oe(d) {
|
|
@@ -3960,7 +3949,7 @@ var Us = ar.exports;
|
|
|
3960
3949
|
}
|
|
3961
3950
|
t.log = function() {
|
|
3962
3951
|
console.log("%s - %s", nt(), t.format.apply(t, arguments));
|
|
3963
|
-
}, t.inherits =
|
|
3952
|
+
}, t.inherits = $s, t._extend = function(d, w) {
|
|
3964
3953
|
if (!w || !ie(w))
|
|
3965
3954
|
return d;
|
|
3966
3955
|
for (var A = Object.keys(w), C = A.length; C--; )
|
|
@@ -3970,15 +3959,15 @@ var Us = ar.exports;
|
|
|
3970
3959
|
function Be(d, w) {
|
|
3971
3960
|
return Object.prototype.hasOwnProperty.call(d, w);
|
|
3972
3961
|
}
|
|
3973
|
-
var
|
|
3962
|
+
var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
3974
3963
|
t.promisify = function(w) {
|
|
3975
3964
|
if (typeof w != "function")
|
|
3976
3965
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3977
|
-
if (
|
|
3978
|
-
var A = w[
|
|
3966
|
+
if (le && w[le]) {
|
|
3967
|
+
var A = w[le];
|
|
3979
3968
|
if (typeof A != "function")
|
|
3980
3969
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
3981
|
-
return Object.defineProperty(A,
|
|
3970
|
+
return Object.defineProperty(A, le, {
|
|
3982
3971
|
value: A,
|
|
3983
3972
|
enumerable: !1,
|
|
3984
3973
|
writable: !1,
|
|
@@ -4000,7 +3989,7 @@ var Us = ar.exports;
|
|
|
4000
3989
|
}
|
|
4001
3990
|
return V;
|
|
4002
3991
|
}
|
|
4003
|
-
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)),
|
|
3992
|
+
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)), le && Object.defineProperty(A, le, {
|
|
4004
3993
|
value: A,
|
|
4005
3994
|
enumerable: !1,
|
|
4006
3995
|
writable: !1,
|
|
@@ -4009,7 +3998,7 @@ var Us = ar.exports;
|
|
|
4009
3998
|
A,
|
|
4010
3999
|
e(w)
|
|
4011
4000
|
);
|
|
4012
|
-
}, t.promisify.custom =
|
|
4001
|
+
}, t.promisify.custom = le;
|
|
4013
4002
|
function ke(d, w) {
|
|
4014
4003
|
if (!d) {
|
|
4015
4004
|
var A = new Error("Promise was rejected with a falsy value");
|
|
@@ -4045,7 +4034,7 @@ var Us = ar.exports;
|
|
|
4045
4034
|
}
|
|
4046
4035
|
t.callbackify = H;
|
|
4047
4036
|
})(Bt);
|
|
4048
|
-
const { inherits:
|
|
4037
|
+
const { inherits: js, format: Qt } = Bt;
|
|
4049
4038
|
function Ne(t, e, r = Error) {
|
|
4050
4039
|
if (!t)
|
|
4051
4040
|
throw new Error("Avvio error code must not be empty");
|
|
@@ -4058,9 +4047,9 @@ function Ne(t, e, r = Error) {
|
|
|
4058
4047
|
}
|
|
4059
4048
|
return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
|
|
4060
4049
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
4061
|
-
},
|
|
4050
|
+
}, js(o, r), o;
|
|
4062
4051
|
}
|
|
4063
|
-
var
|
|
4052
|
+
var Un = {
|
|
4064
4053
|
createError: Ne,
|
|
4065
4054
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ne(
|
|
4066
4055
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
@@ -4086,30 +4075,30 @@ var Ln = {
|
|
|
4086
4075
|
"AVV_ERR_READY_TIMEOUT",
|
|
4087
4076
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
4088
4077
|
)
|
|
4089
|
-
},
|
|
4078
|
+
}, Ds = function t(e, r, o) {
|
|
4090
4079
|
r === void 0 && (r = ""), o || (o = {});
|
|
4091
4080
|
var s = function(p) {
|
|
4092
|
-
var
|
|
4081
|
+
var v = {
|
|
4093
4082
|
"│": "|",
|
|
4094
4083
|
"└": "`",
|
|
4095
4084
|
"├": "+",
|
|
4096
4085
|
"─": "-",
|
|
4097
4086
|
"┬": "-"
|
|
4098
4087
|
};
|
|
4099
|
-
return o.unicode === !1 ?
|
|
4088
|
+
return o.unicode === !1 ? v[p] : p;
|
|
4100
4089
|
};
|
|
4101
4090
|
typeof e == "string" && (e = { label: e });
|
|
4102
4091
|
var u = e.nodes || [], l = (e.label || "").split(`
|
|
4103
4092
|
`), f = `
|
|
4104
4093
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
4105
4094
|
return r + l.join(f) + `
|
|
4106
|
-
` + u.map(function(p,
|
|
4107
|
-
var g =
|
|
4095
|
+
` + u.map(function(p, v) {
|
|
4096
|
+
var g = v === u.length - 1, b = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
4108
4097
|
return r + s(g ? "└" : "├") + s("─") + s(b ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
4109
4098
|
}).join("");
|
|
4110
4099
|
};
|
|
4111
|
-
const
|
|
4112
|
-
let
|
|
4100
|
+
const Vs = Ds, Dr = Symbol("avvio.TimeTree.untrackNode"), Gt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
|
|
4101
|
+
let Ms = class {
|
|
4113
4102
|
constructor() {
|
|
4114
4103
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
4115
4104
|
}
|
|
@@ -4163,11 +4152,11 @@ let Vs = class {
|
|
|
4163
4152
|
}
|
|
4164
4153
|
prittyPrint() {
|
|
4165
4154
|
const e = (o) => (o.label = `${o.label} ${o.diff} ms`, o.nodes.length > 0 && (o.nodes = o.nodes.map((s) => e(s))), o), r = e(this.toJSON());
|
|
4166
|
-
return
|
|
4155
|
+
return Vs(r);
|
|
4167
4156
|
}
|
|
4168
4157
|
};
|
|
4169
|
-
var
|
|
4170
|
-
function
|
|
4158
|
+
var qs = Ms, Er = { exports: {} }, ur = { exports: {} }, zt, Qr;
|
|
4159
|
+
function Qs() {
|
|
4171
4160
|
if (Qr)
|
|
4172
4161
|
return zt;
|
|
4173
4162
|
Qr = 1;
|
|
@@ -4189,8 +4178,8 @@ function qs() {
|
|
|
4189
4178
|
g
|
|
4190
4179
|
);
|
|
4191
4180
|
if (b) {
|
|
4192
|
-
var E = parseFloat(b[1]),
|
|
4193
|
-
switch (
|
|
4181
|
+
var E = parseFloat(b[1]), F = (b[2] || "ms").toLowerCase();
|
|
4182
|
+
switch (F) {
|
|
4194
4183
|
case "years":
|
|
4195
4184
|
case "year":
|
|
4196
4185
|
case "yrs":
|
|
@@ -4241,16 +4230,16 @@ function qs() {
|
|
|
4241
4230
|
}
|
|
4242
4231
|
function p(g) {
|
|
4243
4232
|
var b = Math.abs(g);
|
|
4244
|
-
return b >= o ?
|
|
4233
|
+
return b >= o ? v(g, b, o, "day") : b >= r ? v(g, b, r, "hour") : b >= e ? v(g, b, e, "minute") : b >= t ? v(g, b, t, "second") : g + " ms";
|
|
4245
4234
|
}
|
|
4246
|
-
function
|
|
4235
|
+
function v(g, b, E, F) {
|
|
4247
4236
|
var N = b >= E * 1.5;
|
|
4248
|
-
return Math.round(g / E) + " " +
|
|
4237
|
+
return Math.round(g / E) + " " + F + (N ? "s" : "");
|
|
4249
4238
|
}
|
|
4250
4239
|
return zt;
|
|
4251
4240
|
}
|
|
4252
|
-
function
|
|
4253
|
-
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize =
|
|
4241
|
+
function Gs(t) {
|
|
4242
|
+
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Qs(), r.destroy = v, Object.keys(t).forEach((g) => {
|
|
4254
4243
|
r[g] = t[g];
|
|
4255
4244
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4256
4245
|
function e(g) {
|
|
@@ -4261,7 +4250,7 @@ function Qs(t) {
|
|
|
4261
4250
|
}
|
|
4262
4251
|
r.selectColor = e;
|
|
4263
4252
|
function r(g) {
|
|
4264
|
-
let b, E = null,
|
|
4253
|
+
let b, E = null, F, N;
|
|
4265
4254
|
function P(...K) {
|
|
4266
4255
|
if (!P.enabled)
|
|
4267
4256
|
return;
|
|
@@ -4283,7 +4272,7 @@ function Qs(t) {
|
|
|
4283
4272
|
return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
|
|
4284
4273
|
enumerable: !0,
|
|
4285
4274
|
configurable: !1,
|
|
4286
|
-
get: () => E !== null ? E : (
|
|
4275
|
+
get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces, N = r.enabled(g)), N),
|
|
4287
4276
|
set: (K) => {
|
|
4288
4277
|
E = K;
|
|
4289
4278
|
}
|
|
@@ -4296,8 +4285,8 @@ function Qs(t) {
|
|
|
4296
4285
|
function s(g) {
|
|
4297
4286
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4298
4287
|
let b;
|
|
4299
|
-
const E = (typeof g == "string" ? g : "").split(/[\s,]+/),
|
|
4300
|
-
for (b = 0; b <
|
|
4288
|
+
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), F = E.length;
|
|
4289
|
+
for (b = 0; b < F; b++)
|
|
4301
4290
|
E[b] && (g = E[b].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4302
4291
|
}
|
|
4303
4292
|
function u() {
|
|
@@ -4325,12 +4314,12 @@ function Qs(t) {
|
|
|
4325
4314
|
function p(g) {
|
|
4326
4315
|
return g instanceof Error ? g.stack || g.message : g;
|
|
4327
4316
|
}
|
|
4328
|
-
function
|
|
4317
|
+
function v() {
|
|
4329
4318
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4330
4319
|
}
|
|
4331
4320
|
return r.enable(r.load()), r;
|
|
4332
4321
|
}
|
|
4333
|
-
var
|
|
4322
|
+
var zs = Gs;
|
|
4334
4323
|
(function(t, e) {
|
|
4335
4324
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4336
4325
|
let p = !1;
|
|
@@ -4425,12 +4414,12 @@ var Gs = Qs;
|
|
|
4425
4414
|
function o(p) {
|
|
4426
4415
|
if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4427
4416
|
return;
|
|
4428
|
-
const
|
|
4429
|
-
p.splice(1, 0,
|
|
4417
|
+
const v = "color: " + this.color;
|
|
4418
|
+
p.splice(1, 0, v, "color: inherit");
|
|
4430
4419
|
let g = 0, b = 0;
|
|
4431
4420
|
p[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4432
4421
|
E !== "%%" && (g++, E === "%c" && (b = g));
|
|
4433
|
-
}), p.splice(b, 0,
|
|
4422
|
+
}), p.splice(b, 0, v);
|
|
4434
4423
|
}
|
|
4435
4424
|
e.log = console.debug || console.log || (() => {
|
|
4436
4425
|
});
|
|
@@ -4454,32 +4443,32 @@ var Gs = Qs;
|
|
|
4454
4443
|
} catch {
|
|
4455
4444
|
}
|
|
4456
4445
|
}
|
|
4457
|
-
t.exports =
|
|
4446
|
+
t.exports = zs(e);
|
|
4458
4447
|
const { formatters: f } = t.exports;
|
|
4459
4448
|
f.j = function(p) {
|
|
4460
4449
|
try {
|
|
4461
4450
|
return JSON.stringify(p);
|
|
4462
|
-
} catch (
|
|
4463
|
-
return "[UnexpectedJSONParseError]: " +
|
|
4451
|
+
} catch (v) {
|
|
4452
|
+
return "[UnexpectedJSONParseError]: " + v.message;
|
|
4464
4453
|
}
|
|
4465
4454
|
};
|
|
4466
4455
|
})(ur, ur.exports);
|
|
4467
|
-
var
|
|
4468
|
-
const
|
|
4469
|
-
function
|
|
4456
|
+
var $n = ur.exports;
|
|
4457
|
+
const Ks = fn, Hs = wn.EventEmitter, Ws = Bt.inherits, Z = $n("avvio"), { AVV_ERR_READY_TIMEOUT: Js } = Un, Kt = Symbol.for("plugin-meta");
|
|
4458
|
+
function Ys(t, e) {
|
|
4470
4459
|
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(`
|
|
4471
4460
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
4472
4461
|
}
|
|
4473
|
-
function
|
|
4462
|
+
function Xs() {
|
|
4474
4463
|
const t = {};
|
|
4475
4464
|
return t.promise = new Promise((e, r) => {
|
|
4476
4465
|
t.resolve = e, t.reject = r;
|
|
4477
4466
|
}), t;
|
|
4478
4467
|
}
|
|
4479
4468
|
function tt(t, e, r, o, s) {
|
|
4480
|
-
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 =
|
|
4469
|
+
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 = Ys(e, r), this.isAfter = o, this.q = Ks(t, Zs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4481
4470
|
}
|
|
4482
|
-
|
|
4471
|
+
Ws(tt, Hs);
|
|
4483
4472
|
tt.prototype.exec = function(t, e) {
|
|
4484
4473
|
const r = this.func;
|
|
4485
4474
|
let o = !1;
|
|
@@ -4507,7 +4496,7 @@ tt.prototype.exec = function(t, e) {
|
|
|
4507
4496
|
};
|
|
4508
4497
|
this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4509
4498
|
Z("timed out", s), u = null;
|
|
4510
|
-
const p = new
|
|
4499
|
+
const p = new Js(s);
|
|
4511
4500
|
p.fn = r, l(p);
|
|
4512
4501
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4513
4502
|
const f = r(this.server, this.opts, l);
|
|
@@ -4525,7 +4514,7 @@ tt.prototype.loadedSoFar = function() {
|
|
|
4525
4514
|
}), this.q.resume();
|
|
4526
4515
|
};
|
|
4527
4516
|
let e;
|
|
4528
|
-
return this._promise ? e = Promise.resolve() : (this._promise =
|
|
4517
|
+
return this._promise ? e = Promise.resolve() : (this._promise = Xs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4529
4518
|
};
|
|
4530
4519
|
tt.prototype.enqueue = function(t, e) {
|
|
4531
4520
|
Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
@@ -4550,12 +4539,12 @@ tt.prototype.finish = function(t, e) {
|
|
|
4550
4539
|
r();
|
|
4551
4540
|
else
|
|
4552
4541
|
Z("delayed", this.name), this.q.drain = () => {
|
|
4553
|
-
Z("drain", this.name), this.q.drain =
|
|
4542
|
+
Z("drain", this.name), this.q.drain = ea, queueMicrotask(o);
|
|
4554
4543
|
};
|
|
4555
4544
|
};
|
|
4556
4545
|
queueMicrotask(o), this.q.resume();
|
|
4557
4546
|
};
|
|
4558
|
-
function
|
|
4547
|
+
function Zs(t, e) {
|
|
4559
4548
|
const r = this;
|
|
4560
4549
|
O.process.nextTick(Ir.bind(r), t, e);
|
|
4561
4550
|
}
|
|
@@ -4573,19 +4562,19 @@ function Ir(t, e) {
|
|
|
4573
4562
|
});
|
|
4574
4563
|
});
|
|
4575
4564
|
}
|
|
4576
|
-
function
|
|
4565
|
+
function ea() {
|
|
4577
4566
|
}
|
|
4578
4567
|
Er.exports = tt;
|
|
4579
4568
|
Er.exports.loadPlugin = Ir;
|
|
4580
|
-
var
|
|
4581
|
-
const Gr =
|
|
4569
|
+
var ta = Er.exports;
|
|
4570
|
+
const Gr = fn, ra = wn.EventEmitter, na = Bt.inherits, {
|
|
4582
4571
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
|
|
4583
4572
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
4584
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4585
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4586
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4587
|
-
} =
|
|
4588
|
-
function
|
|
4573
|
+
AVV_ERR_PLUGIN_NOT_VALID: ia,
|
|
4574
|
+
AVV_ERR_ROOT_PLG_BOOTED: oa,
|
|
4575
|
+
AVV_ERR_READY_TIMEOUT: sa
|
|
4576
|
+
} = Un, aa = qs, cr = ta, Ze = $n("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
|
|
4577
|
+
function ua(t, e, r) {
|
|
4589
4578
|
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
|
|
4590
4579
|
if (t[s])
|
|
4591
4580
|
throw new Ht(s);
|
|
@@ -4593,37 +4582,37 @@ function aa(t, e, r) {
|
|
|
4593
4582
|
throw new Ht(u);
|
|
4594
4583
|
if (t[l])
|
|
4595
4584
|
throw new Ht(l);
|
|
4596
|
-
t[s] = function(
|
|
4597
|
-
return r.use(
|
|
4598
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4599
|
-
return typeof
|
|
4600
|
-
}, t[l] = function(
|
|
4601
|
-
if (
|
|
4602
|
-
throw new ct(l, typeof
|
|
4603
|
-
return r.ready(
|
|
4604
|
-
}, t[f] = function(
|
|
4605
|
-
if (typeof
|
|
4606
|
-
throw new ct(f, typeof
|
|
4607
|
-
return r.onClose(
|
|
4608
|
-
}, t[p] = function(
|
|
4609
|
-
if (
|
|
4610
|
-
throw new ct(p, typeof
|
|
4611
|
-
return
|
|
4585
|
+
t[s] = function(v, g) {
|
|
4586
|
+
return r.use(v, g), this;
|
|
4587
|
+
}, Object.defineProperty(t, "then", { get: jn.bind(r) }), t[Ft] = !0, t[u] = function(v) {
|
|
4588
|
+
return typeof v != "function" ? r._loadRegistered() : (r.after(Jt(v, this)), this);
|
|
4589
|
+
}, t[l] = function(v) {
|
|
4590
|
+
if (v && typeof v != "function")
|
|
4591
|
+
throw new ct(l, typeof v);
|
|
4592
|
+
return r.ready(v ? Jt(v, this) : void 0);
|
|
4593
|
+
}, t[f] = function(v) {
|
|
4594
|
+
if (typeof v != "function")
|
|
4595
|
+
throw new ct(f, typeof v);
|
|
4596
|
+
return r.onClose(pa(v, this)), this;
|
|
4597
|
+
}, t[p] = function(v) {
|
|
4598
|
+
if (v && typeof v != "function")
|
|
4599
|
+
throw new ct(p, typeof v);
|
|
4600
|
+
return v ? (r.close(Jt(v, this)), this) : r.close();
|
|
4612
4601
|
};
|
|
4613
4602
|
}
|
|
4614
4603
|
function ee(t, e, r) {
|
|
4615
4604
|
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
|
|
4616
4605
|
const o = new ee(t, e, r);
|
|
4617
|
-
return t &&
|
|
4606
|
+
return t && ua(t, e, o), o;
|
|
4618
4607
|
}
|
|
4619
|
-
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
|
|
4608
|
+
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 aa(), this._readyQ = Gr(this, Dn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4620
4609
|
this.emit("start"), this._readyQ.drain = zr;
|
|
4621
|
-
}, this._closeQ = Gr(this,
|
|
4610
|
+
}, this._closeQ = Gr(this, ha, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4622
4611
|
this.emit("close"), this._closeQ.drain = zr;
|
|
4623
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
4612
|
+
}, this._doStart = null, this._root = new cr(this, ca.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4624
4613
|
const l = this.pluginTree.start(null, s, u);
|
|
4625
|
-
this._root.once("loaded", (f, p,
|
|
4626
|
-
this.pluginTree.stop(l,
|
|
4614
|
+
this._root.once("loaded", (f, p, v) => {
|
|
4615
|
+
this.pluginTree.stop(l, v);
|
|
4627
4616
|
});
|
|
4628
4617
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4629
4618
|
Ze("root plugin ready");
|
|
@@ -4640,19 +4629,19 @@ function ee(t, e, r) {
|
|
|
4640
4629
|
this._readyQ.resume();
|
|
4641
4630
|
});
|
|
4642
4631
|
}
|
|
4643
|
-
function
|
|
4632
|
+
function ca(t, e, r) {
|
|
4644
4633
|
this._doStart = r, e.autostart && this.start();
|
|
4645
4634
|
}
|
|
4646
|
-
|
|
4635
|
+
na(ee, ra);
|
|
4647
4636
|
ee.prototype.start = function() {
|
|
4648
4637
|
return this.started = !0, O.process.nextTick(this._doStart), this;
|
|
4649
4638
|
};
|
|
4650
4639
|
ee.prototype.override = function(t, e, r) {
|
|
4651
4640
|
return t;
|
|
4652
4641
|
};
|
|
4653
|
-
function
|
|
4642
|
+
function fa(t) {
|
|
4654
4643
|
if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
|
|
4655
|
-
throw new
|
|
4644
|
+
throw new ia(typeof t);
|
|
4656
4645
|
return t;
|
|
4657
4646
|
}
|
|
4658
4647
|
ee.prototype[Ft] = !0;
|
|
@@ -4663,14 +4652,14 @@ ee.prototype._loadRegistered = function() {
|
|
|
4663
4652
|
const t = this._current[0];
|
|
4664
4653
|
return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4665
4654
|
};
|
|
4666
|
-
Object.defineProperty(ee.prototype, "then", { get:
|
|
4655
|
+
Object.defineProperty(ee.prototype, "then", { get: jn });
|
|
4667
4656
|
ee.prototype._addPlugin = function(t, e, r) {
|
|
4668
|
-
if (t =
|
|
4669
|
-
throw new
|
|
4657
|
+
if (t = fa(t), e = e || {}, this.booted)
|
|
4658
|
+
throw new oa();
|
|
4670
4659
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4671
4660
|
if (s.once("start", (u, l, f) => {
|
|
4672
4661
|
const p = this.pluginTree.start(o.name, l, f);
|
|
4673
|
-
s.once("loaded", (
|
|
4662
|
+
s.once("loaded", (v, g, b) => {
|
|
4674
4663
|
this.pluginTree.stop(p, b);
|
|
4675
4664
|
});
|
|
4676
4665
|
}), o.loaded)
|
|
@@ -4684,7 +4673,7 @@ ee.prototype.after = function(t) {
|
|
|
4684
4673
|
return this._loadRegistered();
|
|
4685
4674
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4686
4675
|
function e(r, o, s) {
|
|
4687
|
-
|
|
4676
|
+
Dn.call(this, t, s);
|
|
4688
4677
|
}
|
|
4689
4678
|
return this;
|
|
4690
4679
|
};
|
|
@@ -4737,7 +4726,7 @@ ee.prototype.toJSON = function() {
|
|
|
4737
4726
|
};
|
|
4738
4727
|
function zr() {
|
|
4739
4728
|
}
|
|
4740
|
-
function
|
|
4729
|
+
function jn() {
|
|
4741
4730
|
if (this.booted) {
|
|
4742
4731
|
Ze("thenify returning null because we are already booted");
|
|
4743
4732
|
return;
|
|
@@ -4748,7 +4737,7 @@ function $n() {
|
|
|
4748
4737
|
}
|
|
4749
4738
|
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
|
|
4750
4739
|
}
|
|
4751
|
-
function
|
|
4740
|
+
function Dn(t, e) {
|
|
4752
4741
|
const r = this._server, o = this._error;
|
|
4753
4742
|
let s;
|
|
4754
4743
|
if (this._error = null, t.length === 0)
|
|
@@ -4761,14 +4750,14 @@ function jn(t, e) {
|
|
|
4761
4750
|
};
|
|
4762
4751
|
t.length === 2 ? t(o, u) : t(o, r, u);
|
|
4763
4752
|
} else
|
|
4764
|
-
|
|
4753
|
+
la.call(this, t, o, r, e);
|
|
4765
4754
|
}
|
|
4766
|
-
function
|
|
4755
|
+
function la(t, e, r, o) {
|
|
4767
4756
|
const s = t.name;
|
|
4768
4757
|
Ze("setting up ready timeout", s, this._timeout);
|
|
4769
4758
|
let u = setTimeout(() => {
|
|
4770
4759
|
Ze("timed out", s), u = null;
|
|
4771
|
-
const f = new
|
|
4760
|
+
const f = new sa(s);
|
|
4772
4761
|
f.fn = t, this._error = f, o(f);
|
|
4773
4762
|
}, this._timeout);
|
|
4774
4763
|
t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
|
|
@@ -4776,7 +4765,7 @@ function fa(t, e, r, o) {
|
|
|
4776
4765
|
u && (clearTimeout(u), this._error = f, o(this._error));
|
|
4777
4766
|
}
|
|
4778
4767
|
}
|
|
4779
|
-
function
|
|
4768
|
+
function ha(t, e) {
|
|
4780
4769
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4781
4770
|
if (t.length === 0 || t.length === 1) {
|
|
4782
4771
|
let s;
|
|
@@ -4787,7 +4776,7 @@ function la(t, e) {
|
|
|
4787
4776
|
} else
|
|
4788
4777
|
t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
|
|
4789
4778
|
}
|
|
4790
|
-
function
|
|
4779
|
+
function pa(t, e) {
|
|
4791
4780
|
return r.bind(e);
|
|
4792
4781
|
function r(o, s) {
|
|
4793
4782
|
let u;
|
|
@@ -4817,11 +4806,11 @@ yr.exports.express = function(t) {
|
|
|
4817
4806
|
}
|
|
4818
4807
|
});
|
|
4819
4808
|
};
|
|
4820
|
-
var
|
|
4821
|
-
const
|
|
4822
|
-
function
|
|
4823
|
-
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s =
|
|
4824
|
-
return s.use(
|
|
4809
|
+
var da = yr.exports;
|
|
4810
|
+
const ya = /* @__PURE__ */ Yn(da);
|
|
4811
|
+
function Ra(t, e = !0, r = !0) {
|
|
4812
|
+
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ya(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4813
|
+
return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(ao), s.use(Ji), r && s.after(async (u, l, f) => {
|
|
4825
4814
|
if (u)
|
|
4826
4815
|
throw u;
|
|
4827
4816
|
await l.sdk.initializeApp(), f();
|
|
@@ -4830,5 +4819,5 @@ function Pa(t, e = !0, r = !0) {
|
|
|
4830
4819
|
}), s;
|
|
4831
4820
|
}
|
|
4832
4821
|
export {
|
|
4833
|
-
|
|
4822
|
+
Ra as StreamLayer
|
|
4834
4823
|
};
|