@streamlayer/sdk-web 0.28.16 → 0.28.17
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 +8 -8
- package/lib/es/index.js +660 -626
- package/package.json +7 -7
package/lib/es/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { QuestionType as
|
|
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
|
|
4
|
+
import { computed as Hr, map as Mn, atom as Tt } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
7
|
import { Code as qn, createPromiseClient as Qn, createCallbackClient as Gn } from "@connectrpc/connect";
|
|
8
8
|
import { createGrpcWebTransport as zn } from "@connectrpc/connect-web";
|
|
9
9
|
import { nanoquery as Kn } from "@nanostores/query";
|
|
10
10
|
import { Events as Hn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
|
-
import { Client as
|
|
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
13
|
import { pino as Wn } from "pino";
|
|
14
14
|
import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
@@ -18,13 +18,13 @@ var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
18
18
|
function Jn(t) {
|
|
19
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
20
20
|
}
|
|
21
|
-
var O = {}, Xr = {},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
var O = {}, Xr = {}, Ct = {};
|
|
22
|
+
Ct.byteLength = Zn;
|
|
23
|
+
Ct.toByteArray = ti;
|
|
24
|
+
Ct.fromByteArray = ii;
|
|
25
25
|
var we = [], se = [], Yn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
|
-
for (var
|
|
27
|
-
we[
|
|
26
|
+
for (var qe = 0, Xn = Nt.length; qe < Xn; ++qe)
|
|
27
|
+
we[qe] = Nt[qe], se[Nt.charCodeAt(qe)] = qe;
|
|
28
28
|
se["-".charCodeAt(0)] = 62;
|
|
29
29
|
se["_".charCodeAt(0)] = 63;
|
|
30
30
|
function Zr(t) {
|
|
@@ -66,11 +66,11 @@ function ii(t) {
|
|
|
66
66
|
we[e >> 10] + we[e >> 4 & 63] + we[e << 2 & 63] + "="
|
|
67
67
|
)), s.join("");
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var fr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
|
-
|
|
72
|
-
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, S = p >> 1, g = -7, b = r ? s - 1 : 0, E = r ? -1 : 1,
|
|
73
|
-
for (b += E, u =
|
|
71
|
+
fr.read = function(t, e, r, o, s) {
|
|
72
|
+
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, S = p >> 1, g = -7, b = r ? s - 1 : 0, E = r ? -1 : 1, T = t[e + b];
|
|
73
|
+
for (b += E, u = T & (1 << -g) - 1, T >>= -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
|
;
|
|
@@ -78,18 +78,18 @@ lr.read = function(t, e, r, o, s) {
|
|
|
78
78
|
u = 1 - S;
|
|
79
79
|
else {
|
|
80
80
|
if (u === p)
|
|
81
|
-
return l ? NaN : (
|
|
81
|
+
return l ? NaN : (T ? -1 : 1) * (1 / 0);
|
|
82
82
|
l = l + Math.pow(2, o), u = u - S;
|
|
83
83
|
}
|
|
84
|
-
return (
|
|
84
|
+
return (T ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
var l, f, p, S = u * 8 - s - 1, g = (1 << S) - 1, b = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 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 +
|
|
86
|
+
fr.write = function(t, e, r, o, s, u) {
|
|
87
|
+
var l, f, p, S = u * 8 - s - 1, g = (1 << S) - 1, b = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = 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 + T] = f & 255, T += N, f /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
|
-
for (l = l << s | f, S += s; S > 0; t[r +
|
|
90
|
+
for (l = l << s | f, S += s; S > 0; t[r + T] = l & 255, T += N, l /= 256, S -= 8)
|
|
91
91
|
;
|
|
92
|
-
t[r +
|
|
92
|
+
t[r + T - N] |= P * 128;
|
|
93
93
|
};
|
|
94
94
|
/*!
|
|
95
95
|
* The buffer module from node.js, for the browser.
|
|
@@ -98,8 +98,8 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
98
98
|
* @license MIT
|
|
99
99
|
*/
|
|
100
100
|
(function(t) {
|
|
101
|
-
const e =
|
|
102
|
-
t.Buffer = f, t.SlowBuffer =
|
|
101
|
+
const e = Ct, r = fr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
102
|
+
t.Buffer = f, t.SlowBuffer = _, t.INSPECT_MAX_BYTES = 50;
|
|
103
103
|
const s = 2147483647;
|
|
104
104
|
t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
105
105
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -202,7 +202,7 @@ lr.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 T(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 @@ lr.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 T(a);
|
|
217
217
|
}
|
|
218
218
|
function P(a, n, i) {
|
|
219
219
|
if (n < 0 || a.byteLength < n)
|
|
@@ -229,16 +229,16 @@ lr.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) : T(a);
|
|
233
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
234
|
-
return
|
|
234
|
+
return T(a.data);
|
|
235
235
|
}
|
|
236
236
|
function I(a) {
|
|
237
237
|
if (a >= s)
|
|
238
238
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
|
|
239
239
|
return a | 0;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function _(a) {
|
|
242
242
|
return +a != a && (a = 0), f.alloc(+a);
|
|
243
243
|
}
|
|
244
244
|
f.isBuffer = function(n) {
|
|
@@ -322,7 +322,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
322
322
|
return i;
|
|
323
323
|
case "utf8":
|
|
324
324
|
case "utf-8":
|
|
325
|
-
return
|
|
325
|
+
return it(a).length;
|
|
326
326
|
case "ucs2":
|
|
327
327
|
case "ucs-2":
|
|
328
328
|
case "utf16le":
|
|
@@ -334,7 +334,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
334
334
|
return ht(a).length;
|
|
335
335
|
default:
|
|
336
336
|
if (h)
|
|
337
|
-
return c ? -1 :
|
|
337
|
+
return c ? -1 : it(a).length;
|
|
338
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -351,12 +351,12 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
351
351
|
case "utf-8":
|
|
352
352
|
return le(this, n, i);
|
|
353
353
|
case "ascii":
|
|
354
|
-
return
|
|
354
|
+
return nt(this, n, i);
|
|
355
355
|
case "latin1":
|
|
356
356
|
case "binary":
|
|
357
357
|
return Be(this, n, i);
|
|
358
358
|
case "base64":
|
|
359
|
-
return
|
|
359
|
+
return rt(this, n, i);
|
|
360
360
|
case "ucs2":
|
|
361
361
|
case "ucs-2":
|
|
362
362
|
case "utf16le":
|
|
@@ -502,16 +502,16 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
502
502
|
return m;
|
|
503
503
|
}
|
|
504
504
|
function ie(a, n, i, c) {
|
|
505
|
-
return it(
|
|
505
|
+
return ot(it(n, a.length - i), a, i, c);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function Ce(a, n, i, c) {
|
|
508
|
+
return ot(Pt(n), a, i, c);
|
|
509
509
|
}
|
|
510
510
|
function Se(a, n, i, c) {
|
|
511
|
-
return
|
|
511
|
+
return ot(ht(n), a, i, c);
|
|
512
512
|
}
|
|
513
513
|
function fe(a, n, i, c) {
|
|
514
|
-
return
|
|
514
|
+
return ot(v(n, a.length - i), a, i, c);
|
|
515
515
|
}
|
|
516
516
|
f.prototype.write = function(n, i, c, h) {
|
|
517
517
|
if (i === void 0)
|
|
@@ -539,7 +539,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
539
539
|
case "ascii":
|
|
540
540
|
case "latin1":
|
|
541
541
|
case "binary":
|
|
542
|
-
return
|
|
542
|
+
return Ce(this, n, i, c);
|
|
543
543
|
case "base64":
|
|
544
544
|
return Se(this, n, i, c);
|
|
545
545
|
case "ucs2":
|
|
@@ -558,7 +558,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
558
558
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
|
-
function
|
|
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
564
|
function le(a, n, i) {
|
|
@@ -601,7 +601,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
601
601
|
);
|
|
602
602
|
return i;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function nt(a, n, i) {
|
|
605
605
|
let c = "";
|
|
606
606
|
i = Math.min(a.length, i);
|
|
607
607
|
for (let h = n; h < i; ++h)
|
|
@@ -812,27 +812,27 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
812
812
|
}), f.prototype.writeBigInt64BE = Pe(function(n, i = 0) {
|
|
813
813
|
return A(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
814
814
|
});
|
|
815
|
-
function
|
|
815
|
+
function C(a, n, i, c, h, y) {
|
|
816
816
|
if (i + c > a.length)
|
|
817
817
|
throw new RangeError("Index out of range");
|
|
818
818
|
if (i < 0)
|
|
819
819
|
throw new RangeError("Index out of range");
|
|
820
820
|
}
|
|
821
821
|
function D(a, n, i, c, h) {
|
|
822
|
-
return n = +n, i = i >>> 0, h ||
|
|
822
|
+
return n = +n, i = i >>> 0, h || C(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
|
|
823
823
|
}
|
|
824
824
|
f.prototype.writeFloatLE = function(n, i, c) {
|
|
825
825
|
return D(this, n, i, !0, c);
|
|
826
826
|
}, f.prototype.writeFloatBE = function(n, i, c) {
|
|
827
827
|
return D(this, n, i, !1, c);
|
|
828
828
|
};
|
|
829
|
-
function
|
|
830
|
-
return n = +n, i = i >>> 0, h ||
|
|
829
|
+
function V(a, n, i, c, h) {
|
|
830
|
+
return n = +n, i = i >>> 0, h || C(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
|
|
831
831
|
}
|
|
832
832
|
f.prototype.writeDoubleLE = function(n, i, c) {
|
|
833
|
-
return
|
|
833
|
+
return V(this, n, i, !0, c);
|
|
834
834
|
}, f.prototype.writeDoubleBE = function(n, i, c) {
|
|
835
|
-
return
|
|
835
|
+
return V(this, n, i, !1, c);
|
|
836
836
|
}, f.prototype.copy = function(n, i, c, h) {
|
|
837
837
|
if (!f.isBuffer(n))
|
|
838
838
|
throw new TypeError("argument should be a Buffer");
|
|
@@ -923,11 +923,11 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
923
923
|
"ERR_OUT_OF_RANGE",
|
|
924
924
|
function(a, n, i) {
|
|
925
925
|
let c = `The value of "${a}" is out of range.`, h = i;
|
|
926
|
-
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h =
|
|
926
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = M(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = M(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
|
|
927
927
|
},
|
|
928
928
|
RangeError
|
|
929
929
|
);
|
|
930
|
-
function
|
|
930
|
+
function M(a) {
|
|
931
931
|
let n = "", i = a.length;
|
|
932
932
|
const c = a[0] === "-" ? 1 : 0;
|
|
933
933
|
for (; i >= c + 4; i -= 3)
|
|
@@ -956,15 +956,15 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
956
956
|
a
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const Me = /[^+/0-9A-Za-z-_]/g;
|
|
960
960
|
function lt(a) {
|
|
961
|
-
if (a = a.split("=")[0], a = a.trim().replace(
|
|
961
|
+
if (a = a.split("=")[0], a = a.trim().replace(Me, ""), a.length < 2)
|
|
962
962
|
return "";
|
|
963
963
|
for (; a.length % 4 !== 0; )
|
|
964
964
|
a = a + "=";
|
|
965
965
|
return a;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function it(a, n) {
|
|
968
968
|
n = n || 1 / 0;
|
|
969
969
|
let i;
|
|
970
970
|
const c = a.length;
|
|
@@ -1039,7 +1039,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
1039
1039
|
function ht(a) {
|
|
1040
1040
|
return e.toByteArray(lt(a));
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function ot(a, n, i, c) {
|
|
1043
1043
|
let h;
|
|
1044
1044
|
for (h = 0; h < c && !(h + i >= n.length || h >= a.length); ++h)
|
|
1045
1045
|
n[h + i] = a[h];
|
|
@@ -1061,9 +1061,9 @@ lr.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" ? Vn : a;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Vn() {
|
|
1067
1067
|
throw new Error("BigInt not supported");
|
|
1068
1068
|
}
|
|
1069
1069
|
})(Xr);
|
|
@@ -1116,20 +1116,20 @@ function oi(t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
var
|
|
1119
|
+
var Te = [], We = !1, Le, pt = -1;
|
|
1120
1120
|
function si() {
|
|
1121
|
-
!
|
|
1121
|
+
!We || !Le || (We = !1, Le.length ? Te = Le.concat(Te) : pt = -1, Te.length && rn());
|
|
1122
1122
|
}
|
|
1123
1123
|
function rn() {
|
|
1124
|
-
if (!
|
|
1124
|
+
if (!We) {
|
|
1125
1125
|
var t = tn(si);
|
|
1126
|
-
|
|
1127
|
-
for (var e =
|
|
1128
|
-
for (
|
|
1129
|
-
|
|
1130
|
-
pt = -1, e =
|
|
1126
|
+
We = !0;
|
|
1127
|
+
for (var e = Te.length; e; ) {
|
|
1128
|
+
for (Le = Te, Te = []; ++pt < e; )
|
|
1129
|
+
Le && Le[pt].run();
|
|
1130
|
+
pt = -1, e = Te.length;
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
Le = null, We = !1, oi(t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
Y.nextTick = function(t) {
|
|
@@ -1137,7 +1137,7 @@ Y.nextTick = function(t) {
|
|
|
1137
1137
|
if (arguments.length > 1)
|
|
1138
1138
|
for (var r = 1; r < arguments.length; r++)
|
|
1139
1139
|
e[r - 1] = arguments[r];
|
|
1140
|
-
|
|
1140
|
+
Te.push(new nn(t, e)), Te.length === 1 && !We && tn(rn);
|
|
1141
1141
|
};
|
|
1142
1142
|
function nn(t, e) {
|
|
1143
1143
|
this.fun = t, this.array = e;
|
|
@@ -1151,17 +1151,17 @@ Y.env = {};
|
|
|
1151
1151
|
Y.argv = [];
|
|
1152
1152
|
Y.version = "";
|
|
1153
1153
|
Y.versions = {};
|
|
1154
|
-
function
|
|
1154
|
+
function _e() {
|
|
1155
1155
|
}
|
|
1156
|
-
Y.on =
|
|
1157
|
-
Y.addListener =
|
|
1158
|
-
Y.once =
|
|
1159
|
-
Y.off =
|
|
1160
|
-
Y.removeListener =
|
|
1161
|
-
Y.removeAllListeners =
|
|
1162
|
-
Y.emit =
|
|
1163
|
-
Y.prependListener =
|
|
1164
|
-
Y.prependOnceListener =
|
|
1156
|
+
Y.on = _e;
|
|
1157
|
+
Y.addListener = _e;
|
|
1158
|
+
Y.once = _e;
|
|
1159
|
+
Y.off = _e;
|
|
1160
|
+
Y.removeListener = _e;
|
|
1161
|
+
Y.removeAllListeners = _e;
|
|
1162
|
+
Y.emit = _e;
|
|
1163
|
+
Y.prependListener = _e;
|
|
1164
|
+
Y.prependOnceListener = _e;
|
|
1165
1165
|
Y.listeners = function(t) {
|
|
1166
1166
|
return [];
|
|
1167
1167
|
};
|
|
@@ -1204,7 +1204,7 @@ class Ot {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
const ci = (t) => {
|
|
1206
1206
|
const e = Object.keys(t);
|
|
1207
|
-
return
|
|
1207
|
+
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1208
1208
|
};
|
|
1209
1209
|
class at extends Ot {
|
|
1210
1210
|
getValues = () => this.getStore().get();
|
|
@@ -1213,7 +1213,7 @@ class at extends Ot {
|
|
|
1213
1213
|
subscribe = (...e) => this.getStore().subscribe(...e);
|
|
1214
1214
|
unsubscribe = () => this.getStore().off();
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const $e = (t) => Mn(t);
|
|
1217
1217
|
var Ie;
|
|
1218
1218
|
(function(t) {
|
|
1219
1219
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
@@ -1224,11 +1224,11 @@ const fi = {
|
|
|
1224
1224
|
[ue.PUBLIC_CHAT]: "publicChat",
|
|
1225
1225
|
[ue.TWITTER]: "twitter"
|
|
1226
1226
|
};
|
|
1227
|
-
var
|
|
1227
|
+
var je;
|
|
1228
1228
|
(function(t) {
|
|
1229
1229
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
1230
|
-
})(
|
|
1231
|
-
class
|
|
1230
|
+
})(je || (je = {}));
|
|
1231
|
+
class lr {
|
|
1232
1232
|
status;
|
|
1233
1233
|
source;
|
|
1234
1234
|
config;
|
|
@@ -1236,7 +1236,7 @@ class hr {
|
|
|
1236
1236
|
listeners = /* @__PURE__ */ new Set();
|
|
1237
1237
|
settingsKey;
|
|
1238
1238
|
constructor({ settings: e, ...r }, o) {
|
|
1239
|
-
this.settingsKey = fi[r.type], this.status =
|
|
1239
|
+
this.settingsKey = fi[r.type], this.status = Tt(je.Suspended), this.config = new at($e(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at($e(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at($e({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1240
1240
|
}
|
|
1241
1241
|
get featureConfig() {
|
|
1242
1242
|
return this.config.getStore();
|
|
@@ -1248,10 +1248,10 @@ class hr {
|
|
|
1248
1248
|
this.listeners.add(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
enable = () => {
|
|
1251
|
-
this.status.set(
|
|
1251
|
+
this.status.set(je.Ready);
|
|
1252
1252
|
};
|
|
1253
1253
|
disable = () => {
|
|
1254
|
-
this.status.set(
|
|
1254
|
+
this.status.set(je.Suspended);
|
|
1255
1255
|
};
|
|
1256
1256
|
setFeatureConfig = ({ settings: e, ...r }) => {
|
|
1257
1257
|
let o;
|
|
@@ -1293,11 +1293,11 @@ class ce extends Ot {
|
|
|
1293
1293
|
return this.getStore().get();
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
const ne = (t) =>
|
|
1296
|
+
const ne = (t) => Tt(t);
|
|
1297
1297
|
class de extends Ot {
|
|
1298
1298
|
atomStore;
|
|
1299
1299
|
constructor(e, r, o) {
|
|
1300
|
-
super(e, `api:${r}`), this.atomStore =
|
|
1300
|
+
super(e, `api:${r}`), this.atomStore = Tt(), o && e.subscribe((s) => {
|
|
1301
1301
|
this.atomStore.set(o(s));
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
@@ -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* li(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* hi(t, e) {
|
|
|
1336
1336
|
window.postMessage(o), yield r;
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const hi = () => (t) => async (e) => {
|
|
1340
1340
|
const r = {
|
|
1341
1341
|
name: e.url,
|
|
1342
1342
|
request: {},
|
|
@@ -1348,7 +1348,7 @@ const pi = () => (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: li(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 pi {
|
|
1380
1380
|
params;
|
|
1381
1381
|
stream;
|
|
1382
1382
|
method;
|
|
@@ -1391,7 +1391,7 @@ class di {
|
|
|
1391
1391
|
ts: /* @__PURE__ */ new Date(),
|
|
1392
1392
|
log: []
|
|
1393
1393
|
};
|
|
1394
|
-
this.state = new at(
|
|
1394
|
+
this.state = new at($e(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new ce(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
|
}
|
|
@@ -1436,7 +1436,7 @@ class di {
|
|
|
1436
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 di {
|
|
1440
1440
|
toJsonOptions = {
|
|
1441
1441
|
emitDefaultValues: !1,
|
|
1442
1442
|
enumAsInteger: !0,
|
|
@@ -1451,7 +1451,7 @@ class yi {
|
|
|
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($e({
|
|
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
1457
|
const [r, o, s] = Kn();
|
|
@@ -1470,7 +1470,7 @@ class yi {
|
|
|
1470
1470
|
const s = this.subscriptions.get(r);
|
|
1471
1471
|
if (s)
|
|
1472
1472
|
return s;
|
|
1473
|
-
const u = new
|
|
1473
|
+
const u = new pi(this.$headers, e, r, o);
|
|
1474
1474
|
return this.subscriptions.set(r, u), u;
|
|
1475
1475
|
};
|
|
1476
1476
|
removeSubscription = (e) => {
|
|
@@ -1530,10 +1530,10 @@ class yi {
|
|
|
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(hi());
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const yi = (t, e) => {
|
|
1537
1537
|
const { client: r, queryKey: o } = e.createPromiseClient(Hn, {
|
|
1538
1538
|
method: "retrieveEventId",
|
|
1539
1539
|
params: [t]
|
|
@@ -1551,29 +1551,29 @@ const gi = (t, e) => {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
|
-
},
|
|
1555
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1554
|
+
}, gi = (t, e) => {
|
|
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({
|
|
1558
1558
|
id: l
|
|
1559
1559
|
// we are sure that id is a string
|
|
1560
1560
|
})).data?.attributes : void 0
|
|
1561
1561
|
});
|
|
1562
|
-
},
|
|
1562
|
+
}, mi = (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
|
+
}, bi = (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
|
-
},
|
|
1571
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1570
|
+
}, wi = (t, e) => {
|
|
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
|
-
},
|
|
1576
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1575
|
+
}, vi = (t, e) => {
|
|
1576
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "getOrganization", params: [t] });
|
|
1577
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1578
1578
|
fetcher: async () => {
|
|
1579
1579
|
const s = await r.getOrganization({});
|
|
@@ -1583,18 +1583,18 @@ const gi = (t, e) => {
|
|
|
1583
1583
|
} : void 0;
|
|
1584
1584
|
}
|
|
1585
1585
|
});
|
|
1586
|
-
},
|
|
1587
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1586
|
+
}, Si = (t, e) => {
|
|
1587
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, {
|
|
1588
1588
|
method: "getOrganizationAdvertising",
|
|
1589
1589
|
params: [t]
|
|
1590
1590
|
});
|
|
1591
1591
|
return e.nanoquery.createFetcherStore(o, {
|
|
1592
1592
|
fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
|
|
1593
1593
|
});
|
|
1594
|
-
},
|
|
1595
|
-
t.transport = new
|
|
1594
|
+
}, Ai = (t, e, r) => {
|
|
1595
|
+
t.transport = new di(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
|
|
1596
1596
|
};
|
|
1597
|
-
class
|
|
1597
|
+
class hr {
|
|
1598
1598
|
delimiter = ":";
|
|
1599
1599
|
prefix;
|
|
1600
1600
|
constructor(e = "main") {
|
|
@@ -1621,7 +1621,7 @@ var Ee;
|
|
|
1621
1621
|
(function(t) {
|
|
1622
1622
|
t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
|
|
1623
1623
|
})(Ee || (Ee = {}));
|
|
1624
|
-
class
|
|
1624
|
+
class Ke extends hr {
|
|
1625
1625
|
constructor() {
|
|
1626
1626
|
super("user");
|
|
1627
1627
|
}
|
|
@@ -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
|
|
1651
|
+
const Ei = (t) => {
|
|
1652
|
+
const e = new Ke(), r = new ce(ne(e.getExternalToken()), "userKey"), o = new ce(ne(e.getToken()), "userToken"), s = new de(mi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new de(wi(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 ce(ne(void 0), "providerStreamId"), r = new de(
|
|
1659
|
+
}, Ii = (t) => {
|
|
1660
|
+
const e = new ce(ne(void 0), "providerStreamId"), r = new de(yi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new de(gi(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 Ii = (t) => {
|
|
|
1665
1665
|
slStreamId: r,
|
|
1666
1666
|
streamSettings: o
|
|
1667
1667
|
};
|
|
1668
|
-
},
|
|
1669
|
-
const e = new ce(ne(void 0), "enabled"), r = new ce(ne(Fe.DISABLED), "status"), o = new de(
|
|
1668
|
+
}, Fi = (t) => {
|
|
1669
|
+
const e = new ce(ne(void 0), "enabled"), r = new ce(ne(Fe.DISABLED), "status"), o = new de(vi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new de(Si(o.getAtomStore(), t), "organizationAdvertising"), u = Ei(t), l = Ii(t);
|
|
1670
1670
|
return {
|
|
1671
1671
|
enabled: e,
|
|
1672
1672
|
status: r,
|
|
@@ -1681,10 +1681,10 @@ const Ii = (t) => {
|
|
|
1681
1681
|
organizationAdvertising: s
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
class
|
|
1684
|
+
class Ti extends Ot {
|
|
1685
1685
|
stores;
|
|
1686
1686
|
constructor(e) {
|
|
1687
|
-
const r =
|
|
1687
|
+
const r = Fi(e), o = ci(r);
|
|
1688
1688
|
super(o, "core"), this.stores = r;
|
|
1689
1689
|
}
|
|
1690
1690
|
getValue() {
|
|
@@ -1705,12 +1705,12 @@ class Ci extends Ot {
|
|
|
1705
1705
|
};
|
|
1706
1706
|
unsubscribe = () => this.getStore().off();
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class _i extends ui {
|
|
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 = bi(this.transport), this.connect();
|
|
1714
1714
|
}
|
|
1715
1715
|
me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
|
|
1716
1716
|
/**
|
|
@@ -1731,14 +1731,14 @@ class Ti extends ui {
|
|
|
1731
1731
|
* Logout user. Clears the all user data from the store.
|
|
1732
1732
|
*/
|
|
1733
1733
|
logout = () => {
|
|
1734
|
-
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new
|
|
1734
|
+
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Ke().clear();
|
|
1735
1735
|
};
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Soft logout, only clears the StreamLayer user data from the store.
|
|
1738
1738
|
* Does not clear the external token. And automatically tries to re-login by external token.
|
|
1739
1739
|
*/
|
|
1740
1740
|
softLogout = () => {
|
|
1741
|
-
const e = new
|
|
1741
|
+
const e = new Ke();
|
|
1742
1742
|
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
|
|
1743
1743
|
};
|
|
1744
1744
|
/**
|
|
@@ -1749,7 +1749,7 @@ class Ti extends ui {
|
|
|
1749
1749
|
* - If no one of the above is true, then logout.
|
|
1750
1750
|
*/
|
|
1751
1751
|
reLogin = () => {
|
|
1752
|
-
const e = new
|
|
1752
|
+
const e = new Ke(), r = e.getToken(), o = e.getExternalToken();
|
|
1753
1753
|
if (this.$coreStore.getValues().userKey.setValue(o), this.$coreStore.getValues().userToken.setValue(r), r)
|
|
1754
1754
|
return this.saveUser(r, ""), this.me().then((s) => {
|
|
1755
1755
|
if (console.log("user", s), s?.id) {
|
|
@@ -1768,7 +1768,7 @@ class Ti extends ui {
|
|
|
1768
1768
|
* Write token to the Transport and UserStore
|
|
1769
1769
|
*/
|
|
1770
1770
|
saveUser = (e, r) => {
|
|
1771
|
-
this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new
|
|
1771
|
+
this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Ke().setToken(e);
|
|
1772
1772
|
};
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Add interceptor to the Transport to handle 401 and 403 errors.
|
|
@@ -1784,19 +1784,19 @@ class Ti extends ui {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1788
|
-
t.auth = new
|
|
1787
|
+
const st = new Ke(), Ci = (t, e, r) => {
|
|
1788
|
+
t.auth = new _i(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
|
-
t.auth.logout(),
|
|
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
|
+
}, Oi = (t, e, r) => {
|
|
1796
|
+
t.store = new Ti(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
|
+
}, xi = (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 ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1812
1812
|
}, t.sdk.createEventSession = (o) => {
|
|
1813
1813
|
t.stores.providerStreamId.setValue(o);
|
|
1814
1814
|
}, r();
|
|
1815
|
-
},
|
|
1815
|
+
}, Bi = Wn({
|
|
1816
1816
|
level: "trace"
|
|
1817
|
-
}), on = (t, e) =>
|
|
1817
|
+
}), on = (t, e) => Bi.child({ name: t }, e), ki = (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 ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1825
1825
|
userId: p
|
|
1826
1826
|
})).data?.attributes
|
|
1827
1827
|
});
|
|
1828
|
-
},
|
|
1828
|
+
}, Pi = (t) => {
|
|
1829
1829
|
const { client: e } = t.createPromiseClient(Jr, { method: "list" });
|
|
1830
1830
|
return (r) => e.list(r);
|
|
1831
|
-
},
|
|
1831
|
+
}, Ri = (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
|
+
}, Ni = (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 ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
})).data?.attributes : void 0
|
|
1846
1846
|
});
|
|
1847
|
-
},
|
|
1848
|
-
const { client: r } = e.createCallbackClient(ve), o =
|
|
1847
|
+
}, Li = (t, e) => {
|
|
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
|
+
}, Ui = (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 ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1857
1857
|
return (await r.questionByUser({
|
|
1858
1858
|
questionId: t
|
|
1859
1859
|
})).data?.attributes?.question;
|
|
1860
|
-
},
|
|
1860
|
+
}, $i = (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
|
+
}, ji = (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({
|
|
@@ -1872,45 +1872,45 @@ const ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1872
1872
|
})).data?.map(({ attributes: p }) => p) : void 0
|
|
1873
1873
|
});
|
|
1874
1874
|
};
|
|
1875
|
-
var
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1875
|
+
var pr = { exports: {} };
|
|
1876
|
+
const Di = Object.getPrototypeOf({});
|
|
1877
|
+
function dr(t) {
|
|
1878
1878
|
function e(I) {
|
|
1879
1879
|
return I !== "constructor" && I !== "prototype" && I !== "__proto__";
|
|
1880
1880
|
}
|
|
1881
1881
|
function r(I) {
|
|
1882
|
-
let
|
|
1882
|
+
let _ = 0;
|
|
1883
1883
|
const j = I.length, U = new Array(j);
|
|
1884
|
-
for (
|
|
1885
|
-
U[
|
|
1884
|
+
for (_ = 0; _ < j; ++_)
|
|
1885
|
+
U[_] = T(I[_]);
|
|
1886
1886
|
return U;
|
|
1887
1887
|
}
|
|
1888
1888
|
function o(I) {
|
|
1889
|
-
const
|
|
1890
|
-
if (p && Object.getPrototypeOf(I) !==
|
|
1889
|
+
const _ = {};
|
|
1890
|
+
if (p && Object.getPrototypeOf(I) !== Di)
|
|
1891
1891
|
return p(I);
|
|
1892
1892
|
const j = f(I);
|
|
1893
1893
|
let U, F, x;
|
|
1894
1894
|
for (U = 0, F = j.length; U < F; ++U)
|
|
1895
|
-
e(x = j[U]) && (
|
|
1896
|
-
return
|
|
1895
|
+
e(x = j[U]) && (_[x] = T(I[x]));
|
|
1896
|
+
return _;
|
|
1897
1897
|
}
|
|
1898
|
-
function s(I,
|
|
1899
|
-
const j = I.length, U =
|
|
1898
|
+
function s(I, _) {
|
|
1899
|
+
const j = I.length, U = _.length;
|
|
1900
1900
|
let F = 0;
|
|
1901
1901
|
const x = new Array(j + U);
|
|
1902
1902
|
for (F = 0; F < j; ++F)
|
|
1903
|
-
x[F] =
|
|
1903
|
+
x[F] = T(I[F]);
|
|
1904
1904
|
for (F = 0; F < U; ++F)
|
|
1905
|
-
x[F + j] = _
|
|
1905
|
+
x[F + j] = T(_[F]);
|
|
1906
1906
|
return x;
|
|
1907
1907
|
}
|
|
1908
1908
|
const u = Object.prototype.propertyIsEnumerable;
|
|
1909
1909
|
function l(I) {
|
|
1910
|
-
const
|
|
1910
|
+
const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
|
|
1911
1911
|
for (let U = 0, F = j.length; U < F; ++U)
|
|
1912
|
-
u.call(I, j[U]) &&
|
|
1913
|
-
return
|
|
1912
|
+
u.call(I, j[U]) && _.push(j[U]);
|
|
1913
|
+
return _;
|
|
1914
1914
|
}
|
|
1915
1915
|
const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1916
1916
|
function S(I) {
|
|
@@ -1919,54 +1919,54 @@ function yr(t) {
|
|
|
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
|
|
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: T, deepmerge: P, getKeys: f, isMergeableObject: S }) : s;
|
|
1923
|
+
function T(I) {
|
|
1924
1924
|
return S(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1925
1925
|
}
|
|
1926
|
-
function N(I,
|
|
1927
|
-
const j = {}, U = f(I), F = f(
|
|
1926
|
+
function N(I, _) {
|
|
1927
|
+
const j = {}, U = f(I), F = f(_);
|
|
1928
1928
|
let x, k, G;
|
|
1929
1929
|
for (x = 0, k = U.length; x < k; ++x)
|
|
1930
|
-
e(G = U[x]) && F.indexOf(G) === -1 && (j[G] =
|
|
1930
|
+
e(G = U[x]) && F.indexOf(G) === -1 && (j[G] = T(I[G]));
|
|
1931
1931
|
for (x = 0, k = F.length; x < k; ++x)
|
|
1932
|
-
e(G = F[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G],
|
|
1933
|
-
(j[G] = _
|
|
1932
|
+
e(G = F[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1933
|
+
(j[G] = T(_[G])));
|
|
1934
1934
|
return j;
|
|
1935
1935
|
}
|
|
1936
|
-
function P(I,
|
|
1937
|
-
const j = Array.isArray(
|
|
1938
|
-
return g(
|
|
1936
|
+
function P(I, _) {
|
|
1937
|
+
const j = Array.isArray(_), U = Array.isArray(I);
|
|
1938
|
+
return g(_) ? _ : b(I) ? T(_) : j && U ? E(I, _) : j !== U ? T(_) : 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 T(arguments[0]);
|
|
1946
1946
|
case 2:
|
|
1947
1947
|
return P(arguments[0], arguments[1]);
|
|
1948
1948
|
}
|
|
1949
1949
|
let I;
|
|
1950
|
-
for (let
|
|
1951
|
-
I = P(I, arguments[
|
|
1950
|
+
for (let _ = 0, j = arguments.length; _ < j; ++_)
|
|
1951
|
+
I = P(I, arguments[_]);
|
|
1952
1952
|
return I;
|
|
1953
1953
|
}
|
|
1954
1954
|
return t && t.all ? K : P;
|
|
1955
1955
|
}
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
var Vi =
|
|
1959
|
-
const
|
|
1956
|
+
pr.exports = dr;
|
|
1957
|
+
pr.exports.default = dr;
|
|
1958
|
+
var Vi = pr.exports.deepmerge = dr;
|
|
1959
|
+
const Mi = (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
|
-
},
|
|
1966
|
-
const o =
|
|
1965
|
+
}, qi = Vi({ mergeArray: Mi }), Qi = (t, e, r) => {
|
|
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 = $e({
|
|
1970
1970
|
data: void 0,
|
|
1971
1971
|
loading: void 0,
|
|
1972
1972
|
error: void 0
|
|
@@ -1984,10 +1984,10 @@ const qi = (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 Gi(t)), t.gamification);
|
|
1990
|
+
class Gi {
|
|
1991
1991
|
/** sl event id */
|
|
1992
1992
|
slStreamId;
|
|
1993
1993
|
/** organization id */
|
|
@@ -2014,13 +2014,13 @@ class zi {
|
|
|
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 ce(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de(
|
|
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 ce(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de(Ri(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de($i(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new de(Ni(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Qi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2018
|
+
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Ui(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 = Li(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 zi {
|
|
|
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 zi {
|
|
2059
2059
|
notificationsList;
|
|
2060
2060
|
notifications;
|
|
2061
2061
|
store;
|
|
@@ -2065,7 +2065,7 @@ class Ki {
|
|
|
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 ce(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList =
|
|
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 ce(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)) {
|
|
@@ -2104,7 +2104,7 @@ class Ki {
|
|
|
2104
2104
|
const s = e, u = new Map(this.notifications.getValue());
|
|
2105
2105
|
u.set(r.id, r), this.notifications.setValue(u);
|
|
2106
2106
|
const l = setTimeout(() => {
|
|
2107
|
-
this.logger.debug({ notificationId: s }, "notification hiding by autoHideDuration"), this.closeNotification(s);
|
|
2107
|
+
this.logger.debug({ notificationId: s, delay: r.autoHideDuration || 5e3 }, "notification hiding by autoHideDuration"), this.closeNotification(s);
|
|
2108
2108
|
}, r.autoHideDuration || 5e3);
|
|
2109
2109
|
this.timeouts.set(s, l), this.logger.debug({ notificationId: s, queue: [...u.values()] }, "notification displayed");
|
|
2110
2110
|
}, r.delay || 0);
|
|
@@ -2129,7 +2129,7 @@ var wt;
|
|
|
2129
2129
|
(function(t) {
|
|
2130
2130
|
t.OPENED = "opened";
|
|
2131
2131
|
})(wt || (wt = {}));
|
|
2132
|
-
class
|
|
2132
|
+
class Ki extends hr {
|
|
2133
2133
|
constructor() {
|
|
2134
2134
|
super("notification");
|
|
2135
2135
|
}
|
|
@@ -2141,15 +2141,15 @@ class Hi extends pr {
|
|
|
2141
2141
|
this.clear();
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var Ue;
|
|
2145
2145
|
(function(t) {
|
|
2146
|
-
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
|
|
2147
|
-
})(
|
|
2148
|
-
class
|
|
2146
|
+
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
2147
|
+
})(Ue || (Ue = {}));
|
|
2148
|
+
class Hi {
|
|
2149
2149
|
queue;
|
|
2150
2150
|
storage;
|
|
2151
2151
|
constructor(e = {}) {
|
|
2152
|
-
this.storage = new
|
|
2152
|
+
this.storage = new Ki(), this.queue = new zi({ 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 Wi {
|
|
|
2162
2162
|
this.storage.setOpened(e);
|
|
2163
2163
|
};
|
|
2164
2164
|
}
|
|
2165
|
-
const
|
|
2166
|
-
t.notifications = new
|
|
2167
|
-
},
|
|
2165
|
+
const Wi = (t, e, r) => {
|
|
2166
|
+
t.notifications = new Hi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
|
|
2167
|
+
}, Ji = (t, e) => {
|
|
2168
2168
|
const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
|
|
2169
2169
|
return r.submitAnswer({ data: e });
|
|
2170
|
-
},
|
|
2170
|
+
}, Yi = (t, e) => {
|
|
2171
2171
|
const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
|
|
2172
2172
|
return r.submitInplay({ data: { eventId: +e } });
|
|
2173
|
-
},
|
|
2173
|
+
}, Xi = (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 Zi extends hr {
|
|
2182
2182
|
constructor() {
|
|
2183
2183
|
super("gamification");
|
|
2184
2184
|
}
|
|
@@ -2187,15 +2187,15 @@ class eo extends pr {
|
|
|
2187
2187
|
};
|
|
2188
2188
|
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(vt.ONBOARDING, o, e, r);
|
|
2189
2189
|
}
|
|
2190
|
-
const
|
|
2190
|
+
const Fr = {
|
|
2191
2191
|
pageSize: 10
|
|
2192
|
-
},
|
|
2193
|
-
const o = ne({ pageSize: r?.pageSize ||
|
|
2192
|
+
}, eo = (t, e, r) => {
|
|
2193
|
+
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s = $e({ data: [], loading: void 0, error: void 0 }), u = Pi(t), l = async (S) => {
|
|
2194
2194
|
if (S) {
|
|
2195
2195
|
s.setKey("loading", !0);
|
|
2196
2196
|
const g = {
|
|
2197
2197
|
eventId: S,
|
|
2198
|
-
pagination: { page: 0, pageSize: r?.pageSize ||
|
|
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);
|
|
2201
2201
|
}
|
|
@@ -2208,12 +2208,12 @@ const _r = {
|
|
|
2208
2208
|
const g = e.get(), b = s.get().data?.length || 0;
|
|
2209
2209
|
if (S.page > 0 && g && b >= S.page * S.pageSize) {
|
|
2210
2210
|
s.setKey("loading", !0);
|
|
2211
|
-
const
|
|
2211
|
+
const T = await u({
|
|
2212
2212
|
eventId: g,
|
|
2213
2213
|
pagination: S
|
|
2214
2214
|
}), N = s.get().data || [];
|
|
2215
2215
|
s.set({
|
|
2216
|
-
data: [...N, ...
|
|
2216
|
+
data: [...N, ...T.data.map((P) => P.attributes)],
|
|
2217
2217
|
loading: !1
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
@@ -2221,12 +2221,12 @@ const _r = {
|
|
|
2221
2221
|
const S = o.get();
|
|
2222
2222
|
o.set({ ...S, page: S.page + 1 });
|
|
2223
2223
|
}, invalidate: f };
|
|
2224
|
-
},
|
|
2224
|
+
}, to = /* @__PURE__ */ new Set([Re.POLL, Re.PREDICTION, Re.TRIVIA]);
|
|
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
|
-
class
|
|
2229
|
+
class ro extends lr {
|
|
2230
2230
|
/** user statistics (leaderboard panel) */
|
|
2231
2231
|
userSummary;
|
|
2232
2232
|
/** feed list (pick history) */
|
|
@@ -2250,27 +2250,56 @@ class no extends hr {
|
|
|
2250
2250
|
/** Browser cache */
|
|
2251
2251
|
storage;
|
|
2252
2252
|
constructor(e, r, o) {
|
|
2253
|
-
super(e, r), this.background = an(o), this.storage = new
|
|
2253
|
+
super(e, r), this.background = an(o), this.storage = new Zi(), this.userSummary = new de(ki(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new ce(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ce(ne(re.Unset), "onboardingStatus").getStore(), 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.onboardingStatus.subscribe((s) => {
|
|
2254
2254
|
(s === re.Optional || re.Required) && this.showOnboardingInApp();
|
|
2255
2255
|
}), this.status.subscribe((s) => {
|
|
2256
|
-
s ===
|
|
2256
|
+
s === je.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2257
2257
|
}), this.onboardingStatus.subscribe((s) => {
|
|
2258
2258
|
s && this.background.activeQuestionId.invalidate();
|
|
2259
2259
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2260
|
-
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
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 (to.has(s.data.question.type))
|
|
2262
|
+
this.notifications.add({
|
|
2263
|
+
type: Ue.QUESTION,
|
|
2264
|
+
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2265
|
+
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2266
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2267
|
+
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2268
|
+
data: {
|
|
2269
|
+
questionType: s.data.question.type,
|
|
2270
|
+
question: {
|
|
2271
|
+
title: s.data.question.notification.title
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
});
|
|
2275
|
+
else if (s.data.question.type === Re.FACTOID) {
|
|
2276
|
+
const u = {
|
|
2277
|
+
heading: "",
|
|
2278
|
+
body: "",
|
|
2279
|
+
image: "",
|
|
2280
|
+
video: {
|
|
2281
|
+
id: "",
|
|
2282
|
+
url: "",
|
|
2283
|
+
thumbnailUrl: ""
|
|
2284
|
+
},
|
|
2285
|
+
webLink: {
|
|
2286
|
+
label: "",
|
|
2287
|
+
url: ""
|
|
2288
|
+
}
|
|
2289
|
+
};
|
|
2290
|
+
this.notifications.add({
|
|
2291
|
+
type: Ue.QUESTION,
|
|
2292
|
+
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2293
|
+
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2294
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2295
|
+
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2296
|
+
data: {
|
|
2297
|
+
questionType: s.data.question.type,
|
|
2298
|
+
insight: u
|
|
2299
|
+
}
|
|
2300
|
+
});
|
|
2272
2301
|
}
|
|
2273
|
-
}
|
|
2302
|
+
}
|
|
2274
2303
|
}), this.onboardingProcess(), this.background.userId.subscribe((s) => {
|
|
2275
2304
|
s && this.onboardingProcess();
|
|
2276
2305
|
}), this.background.moderation.subscribe((s) => {
|
|
@@ -2302,19 +2331,22 @@ class no extends hr {
|
|
|
2302
2331
|
return;
|
|
2303
2332
|
const { titleCard: r, overview: o } = e;
|
|
2304
2333
|
this.notifications.add({
|
|
2305
|
-
type:
|
|
2334
|
+
type: Ue.ONBOARDING,
|
|
2306
2335
|
id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
|
|
2307
2336
|
action: this.openFeature,
|
|
2308
2337
|
close: this.closeFeature,
|
|
2309
2338
|
autoHideDuration: 1e5,
|
|
2310
2339
|
data: {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
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
|
+
}
|
|
2318
2350
|
}
|
|
2319
2351
|
});
|
|
2320
2352
|
};
|
|
@@ -2325,18 +2357,21 @@ class no extends hr {
|
|
|
2325
2357
|
if (!o)
|
|
2326
2358
|
return;
|
|
2327
2359
|
const { status: s, type: u, id: l } = o;
|
|
2328
|
-
if (s === Yt.RESOLVED && u ===
|
|
2360
|
+
if (s === Yt.RESOLVED && u === Re.PREDICTION) {
|
|
2329
2361
|
const f = this.background.getCurrentSessionId({
|
|
2330
2362
|
prefix: `notification-id:${l}`
|
|
2331
2363
|
}), S = (await sn(l, e))?.answers.find(({ correct: g }) => g);
|
|
2332
2364
|
this.notifications.add({
|
|
2333
|
-
type:
|
|
2365
|
+
type: Ue.QUESTION_RESOLVED,
|
|
2334
2366
|
action: () => this.openQuestion(l),
|
|
2335
2367
|
close: () => this.closeQuestion(l),
|
|
2336
2368
|
autoHideDuration: 5e3,
|
|
2337
2369
|
id: f,
|
|
2338
2370
|
data: {
|
|
2339
|
-
|
|
2371
|
+
questionType: Re.PREDICTION,
|
|
2372
|
+
question: {
|
|
2373
|
+
title: S?.youVoted ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`
|
|
2374
|
+
}
|
|
2340
2375
|
}
|
|
2341
2376
|
});
|
|
2342
2377
|
}
|
|
@@ -2353,17 +2388,17 @@ class no extends hr {
|
|
|
2353
2388
|
// onboarding
|
|
2354
2389
|
submitInplay = async () => {
|
|
2355
2390
|
const e = this.background.slStreamId.get();
|
|
2356
|
-
e && (await
|
|
2391
|
+
e && (await Yi(this.transport, e), this.onboardingStatus.set(re.Completed), this.storage.saveOnboardingStatus({
|
|
2357
2392
|
organizationId: this.background.organizationId.get() || "",
|
|
2358
2393
|
userId: this.background.userId.get() || "",
|
|
2359
2394
|
eventId: e
|
|
2360
2395
|
}, re.Completed));
|
|
2361
2396
|
};
|
|
2362
2397
|
submitAnswer = async (e, r) => {
|
|
2363
|
-
await
|
|
2398
|
+
await Ji(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
|
|
2364
2399
|
};
|
|
2365
2400
|
skipQuestion = async (e) => {
|
|
2366
|
-
await
|
|
2401
|
+
await Xi(this.transport, e), this.feedList?.invalidate();
|
|
2367
2402
|
};
|
|
2368
2403
|
openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2369
2404
|
closeQuestion = (e) => this.background.closeQuestion(e);
|
|
@@ -2375,7 +2410,7 @@ class no extends hr {
|
|
|
2375
2410
|
this.openedUser.set(void 0);
|
|
2376
2411
|
};
|
|
2377
2412
|
}
|
|
2378
|
-
class
|
|
2413
|
+
class no extends lr {
|
|
2379
2414
|
insights;
|
|
2380
2415
|
closeFeature;
|
|
2381
2416
|
openFeature;
|
|
@@ -2385,26 +2420,25 @@ class io extends hr {
|
|
|
2385
2420
|
background;
|
|
2386
2421
|
constructor(e, r, o) {
|
|
2387
2422
|
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) => {
|
|
2388
|
-
s ===
|
|
2423
|
+
s === je.Ready ? this.connect() : this.disconnect();
|
|
2389
2424
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2390
|
-
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2391
|
-
type:
|
|
2425
|
+
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: Ue.QUESTION,
|
|
2392
2427
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2393
2428
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
2394
|
-
autoHideDuration: +(s.data.
|
|
2429
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2395
2430
|
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2396
2431
|
data: {
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
imagePosition: s.data.question.notification.imagePosition
|
|
2432
|
+
questionType: s.data.question.type,
|
|
2433
|
+
question: {
|
|
2434
|
+
title: s.data.question.notification.title
|
|
2435
|
+
}
|
|
2402
2436
|
}
|
|
2403
2437
|
});
|
|
2404
2438
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2405
2439
|
}
|
|
2406
2440
|
connect = () => {
|
|
2407
|
-
this.insights ? this.insights.invalidate() : this.insights = new de(
|
|
2441
|
+
this.insights ? this.insights.invalidate() : this.insights = new de(ji(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2408
2442
|
window.requestAnimationFrame(() => {
|
|
2409
2443
|
this.insights?.invalidate();
|
|
2410
2444
|
});
|
|
@@ -2417,18 +2451,18 @@ class io extends hr {
|
|
|
2417
2451
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2418
2452
|
}
|
|
2419
2453
|
ue.GAMES + "", ue.HIGHLIGHTS + "";
|
|
2420
|
-
class
|
|
2454
|
+
class io extends lr {
|
|
2421
2455
|
constructor(e, r) {
|
|
2422
2456
|
super(e, r);
|
|
2423
2457
|
}
|
|
2424
2458
|
}
|
|
2425
|
-
const
|
|
2459
|
+
const oo = (t, e, r) => t.type === ue.GAMES ? new ro(t, e, r) : t.type === ue.HIGHLIGHTS ? new no(t, e, r) : new io(t, e), so = (t, e, r) => {
|
|
2426
2460
|
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ce(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) => {
|
|
2427
2461
|
t.activeFeature.setValue(o);
|
|
2428
2462
|
}, t.sdk.closeFeature = () => {
|
|
2429
2463
|
t.activeFeature.setValue(ue.UNSET);
|
|
2430
2464
|
}, t.initFeature = (o, s = Ie.ORGANIZATION) => {
|
|
2431
|
-
const u =
|
|
2465
|
+
const u = oo(o, s, t);
|
|
2432
2466
|
t.features.set(o.type, u);
|
|
2433
2467
|
}, t.updateFeature = (o, s) => {
|
|
2434
2468
|
t.features.get(o.type)?.update(o, s);
|
|
@@ -2478,8 +2512,8 @@ const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HI
|
|
|
2478
2512
|
t.store.subscribe(s);
|
|
2479
2513
|
}, r();
|
|
2480
2514
|
};
|
|
2481
|
-
var
|
|
2482
|
-
function
|
|
2515
|
+
var yr = { exports: {} }, gr = { exports: {} };
|
|
2516
|
+
function ao(t) {
|
|
2483
2517
|
var e = new t(), r = e;
|
|
2484
2518
|
function o() {
|
|
2485
2519
|
var u = e;
|
|
@@ -2493,11 +2527,11 @@ function uo(t) {
|
|
|
2493
2527
|
release: s
|
|
2494
2528
|
};
|
|
2495
2529
|
}
|
|
2496
|
-
var
|
|
2530
|
+
var uo = ao, co = uo;
|
|
2497
2531
|
function un(t, e, r) {
|
|
2498
2532
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2499
2533
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2500
|
-
var o = fo
|
|
2534
|
+
var o = co(fo), s = null, u = null, l = 0, f = null, p = {
|
|
2501
2535
|
push: P,
|
|
2502
2536
|
drain: ae,
|
|
2503
2537
|
saturated: ae,
|
|
@@ -2505,13 +2539,13 @@ function un(t, e, r) {
|
|
|
2505
2539
|
paused: !1,
|
|
2506
2540
|
concurrency: r,
|
|
2507
2541
|
running: S,
|
|
2508
|
-
resume:
|
|
2542
|
+
resume: T,
|
|
2509
2543
|
idle: N,
|
|
2510
2544
|
length: b,
|
|
2511
2545
|
getQueue: E,
|
|
2512
2546
|
unshift: K,
|
|
2513
2547
|
empty: ae,
|
|
2514
|
-
kill:
|
|
2548
|
+
kill: _,
|
|
2515
2549
|
killAndDrain: j,
|
|
2516
2550
|
error: U
|
|
2517
2551
|
};
|
|
@@ -2532,7 +2566,7 @@ function un(t, e, r) {
|
|
|
2532
2566
|
x.push(F.value), F = F.next;
|
|
2533
2567
|
return x;
|
|
2534
2568
|
}
|
|
2535
|
-
function
|
|
2569
|
+
function T() {
|
|
2536
2570
|
if (p.paused) {
|
|
2537
2571
|
p.paused = !1;
|
|
2538
2572
|
for (var F = 0; F < p.concurrency; F++)
|
|
@@ -2555,7 +2589,7 @@ function un(t, e, r) {
|
|
|
2555
2589
|
var x = s;
|
|
2556
2590
|
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();
|
|
2557
2591
|
}
|
|
2558
|
-
function
|
|
2592
|
+
function _() {
|
|
2559
2593
|
s = null, u = null, p.drain = ae;
|
|
2560
2594
|
}
|
|
2561
2595
|
function j() {
|
|
@@ -2567,7 +2601,7 @@ function un(t, e, r) {
|
|
|
2567
2601
|
}
|
|
2568
2602
|
function ae() {
|
|
2569
2603
|
}
|
|
2570
|
-
function
|
|
2604
|
+
function fo() {
|
|
2571
2605
|
this.value = null, this.callback = ae, this.next = null, this.release = ae, this.context = null, this.errorHandler = null;
|
|
2572
2606
|
var t = this;
|
|
2573
2607
|
this.worked = function(r, o) {
|
|
@@ -2575,7 +2609,7 @@ function lo() {
|
|
|
2575
2609
|
t.value = null, t.callback = ae, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
|
|
2576
2610
|
};
|
|
2577
2611
|
}
|
|
2578
|
-
function
|
|
2612
|
+
function lo(t, e, r) {
|
|
2579
2613
|
typeof t == "function" && (r = e, e = t, t = null);
|
|
2580
2614
|
function o(g, b) {
|
|
2581
2615
|
e.call(this, g).then(function(E) {
|
|
@@ -2585,10 +2619,10 @@ function ho(t, e, r) {
|
|
|
2585
2619
|
var s = un(t, o, r), u = s.push, l = s.unshift;
|
|
2586
2620
|
return s.push = f, s.unshift = p, s.drained = S, s;
|
|
2587
2621
|
function f(g) {
|
|
2588
|
-
var b = new Promise(function(E,
|
|
2622
|
+
var b = new Promise(function(E, T) {
|
|
2589
2623
|
u(g, function(N, P) {
|
|
2590
2624
|
if (N) {
|
|
2591
|
-
|
|
2625
|
+
T(N);
|
|
2592
2626
|
return;
|
|
2593
2627
|
}
|
|
2594
2628
|
E(P);
|
|
@@ -2597,10 +2631,10 @@ function ho(t, e, r) {
|
|
|
2597
2631
|
return b.catch(ae), b;
|
|
2598
2632
|
}
|
|
2599
2633
|
function p(g) {
|
|
2600
|
-
var b = new Promise(function(E,
|
|
2634
|
+
var b = new Promise(function(E, T) {
|
|
2601
2635
|
l(g, function(N, P) {
|
|
2602
2636
|
if (N) {
|
|
2603
|
-
|
|
2637
|
+
T(N);
|
|
2604
2638
|
return;
|
|
2605
2639
|
}
|
|
2606
2640
|
E(P);
|
|
@@ -2621,17 +2655,17 @@ function ho(t, e, r) {
|
|
|
2621
2655
|
return b;
|
|
2622
2656
|
}
|
|
2623
2657
|
}
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
var cn =
|
|
2658
|
+
gr.exports = un;
|
|
2659
|
+
gr.exports.promise = lo;
|
|
2660
|
+
var cn = gr.exports, mr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
|
|
2627
2661
|
return Function.prototype.apply.call(e, r, o);
|
|
2628
2662
|
}, dt;
|
|
2629
|
-
|
|
2663
|
+
Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
|
|
2630
2664
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
2631
2665
|
} : dt = function(e) {
|
|
2632
2666
|
return Object.getOwnPropertyNames(e);
|
|
2633
2667
|
};
|
|
2634
|
-
function
|
|
2668
|
+
function ho(t) {
|
|
2635
2669
|
console && console.warn && console.warn(t);
|
|
2636
2670
|
}
|
|
2637
2671
|
var fn = Number.isNaN || function(e) {
|
|
@@ -2640,13 +2674,13 @@ var fn = Number.isNaN || function(e) {
|
|
|
2640
2674
|
function q() {
|
|
2641
2675
|
q.init.call(this);
|
|
2642
2676
|
}
|
|
2643
|
-
|
|
2644
|
-
|
|
2677
|
+
mr.exports = q;
|
|
2678
|
+
mr.exports.once = mo;
|
|
2645
2679
|
q.EventEmitter = q;
|
|
2646
2680
|
q.prototype._events = void 0;
|
|
2647
2681
|
q.prototype._eventsCount = 0;
|
|
2648
2682
|
q.prototype._maxListeners = void 0;
|
|
2649
|
-
var
|
|
2683
|
+
var _r = 10;
|
|
2650
2684
|
function xt(t) {
|
|
2651
2685
|
if (typeof t != "function")
|
|
2652
2686
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
@@ -2654,12 +2688,12 @@ function xt(t) {
|
|
|
2654
2688
|
Object.defineProperty(q, "defaultMaxListeners", {
|
|
2655
2689
|
enumerable: !0,
|
|
2656
2690
|
get: function() {
|
|
2657
|
-
return
|
|
2691
|
+
return _r;
|
|
2658
2692
|
},
|
|
2659
2693
|
set: function(t) {
|
|
2660
2694
|
if (typeof t != "number" || t < 0 || fn(t))
|
|
2661
2695
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
2662
|
-
|
|
2696
|
+
_r = t;
|
|
2663
2697
|
}
|
|
2664
2698
|
});
|
|
2665
2699
|
q.init = function() {
|
|
@@ -2695,10 +2729,10 @@ q.prototype.emit = function(e) {
|
|
|
2695
2729
|
if (p === void 0)
|
|
2696
2730
|
return !1;
|
|
2697
2731
|
if (typeof p == "function")
|
|
2698
|
-
|
|
2732
|
+
Tr(p, this, r);
|
|
2699
2733
|
else
|
|
2700
2734
|
for (var S = p.length, g = gn(p, S), o = 0; o < S; ++o)
|
|
2701
|
-
|
|
2735
|
+
Tr(g[o], this, r);
|
|
2702
2736
|
return !0;
|
|
2703
2737
|
};
|
|
2704
2738
|
function hn(t, e, r, o) {
|
|
@@ -2712,7 +2746,7 @@ function hn(t, e, r, o) {
|
|
|
2712
2746
|
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = ln(t), s > 0 && l.length > s && !l.warned) {
|
|
2713
2747
|
l.warned = !0;
|
|
2714
2748
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2715
|
-
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length,
|
|
2749
|
+
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ho(f);
|
|
2716
2750
|
}
|
|
2717
2751
|
return t;
|
|
2718
2752
|
}
|
|
@@ -2723,12 +2757,12 @@ q.prototype.on = q.prototype.addListener;
|
|
|
2723
2757
|
q.prototype.prependListener = function(e, r) {
|
|
2724
2758
|
return hn(this, e, r, !0);
|
|
2725
2759
|
};
|
|
2726
|
-
function
|
|
2760
|
+
function po() {
|
|
2727
2761
|
if (!this.fired)
|
|
2728
2762
|
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);
|
|
2729
2763
|
}
|
|
2730
2764
|
function pn(t, e, r) {
|
|
2731
|
-
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s =
|
|
2765
|
+
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = po.bind(o);
|
|
2732
2766
|
return s.listener = r, o.wrapFn = s, s;
|
|
2733
2767
|
}
|
|
2734
2768
|
q.prototype.once = function(e, r) {
|
|
@@ -2753,7 +2787,7 @@ q.prototype.removeListener = function(e, r) {
|
|
|
2753
2787
|
}
|
|
2754
2788
|
if (u < 0)
|
|
2755
2789
|
return this;
|
|
2756
|
-
u === 0 ? o.shift() :
|
|
2790
|
+
u === 0 ? o.shift() : yo(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
|
|
2757
2791
|
}
|
|
2758
2792
|
return this;
|
|
2759
2793
|
};
|
|
@@ -2782,7 +2816,7 @@ function dn(t, e, r) {
|
|
|
2782
2816
|
if (o === void 0)
|
|
2783
2817
|
return [];
|
|
2784
2818
|
var s = o[e];
|
|
2785
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ?
|
|
2819
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? go(s) : gn(s, s.length);
|
|
2786
2820
|
}
|
|
2787
2821
|
q.prototype.listeners = function(e) {
|
|
2788
2822
|
return dn(this, e, !0);
|
|
@@ -2813,17 +2847,17 @@ function gn(t, e) {
|
|
|
2813
2847
|
r[o] = t[o];
|
|
2814
2848
|
return r;
|
|
2815
2849
|
}
|
|
2816
|
-
function
|
|
2850
|
+
function yo(t, e) {
|
|
2817
2851
|
for (; e + 1 < t.length; e++)
|
|
2818
2852
|
t[e] = t[e + 1];
|
|
2819
2853
|
t.pop();
|
|
2820
2854
|
}
|
|
2821
|
-
function
|
|
2855
|
+
function go(t) {
|
|
2822
2856
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
2823
2857
|
e[r] = t[r].listener || t[r];
|
|
2824
2858
|
return e;
|
|
2825
2859
|
}
|
|
2826
|
-
function
|
|
2860
|
+
function mo(t, e) {
|
|
2827
2861
|
return new Promise(function(r, o) {
|
|
2828
2862
|
function s(l) {
|
|
2829
2863
|
t.removeListener(e, u), o(l);
|
|
@@ -2831,10 +2865,10 @@ function bo(t, e) {
|
|
|
2831
2865
|
function u() {
|
|
2832
2866
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2833
2867
|
}
|
|
2834
|
-
mn(t, e, u, { once: !0 }), e !== "error" &&
|
|
2868
|
+
mn(t, e, u, { once: !0 }), e !== "error" && bo(t, s, { once: !0 });
|
|
2835
2869
|
});
|
|
2836
2870
|
}
|
|
2837
|
-
function
|
|
2871
|
+
function bo(t, e, r) {
|
|
2838
2872
|
typeof t.on == "function" && mn(t, "error", e, r);
|
|
2839
2873
|
}
|
|
2840
2874
|
function mn(t, e, r, o) {
|
|
@@ -2847,7 +2881,7 @@ function mn(t, e, r, o) {
|
|
|
2847
2881
|
else
|
|
2848
2882
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2849
2883
|
}
|
|
2850
|
-
var bn =
|
|
2884
|
+
var bn = mr.exports, Bt = {}, wn = {}, vn = function() {
|
|
2851
2885
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2852
2886
|
return !1;
|
|
2853
2887
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2870,90 +2904,90 @@ var bn = br.exports, Bt = {}, wn = {}, vn = function() {
|
|
|
2870
2904
|
return !1;
|
|
2871
2905
|
}
|
|
2872
2906
|
return !0;
|
|
2873
|
-
},
|
|
2874
|
-
return
|
|
2875
|
-
},
|
|
2876
|
-
return typeof
|
|
2877
|
-
},
|
|
2907
|
+
}, wo = vn, br = function() {
|
|
2908
|
+
return wo() && !!Symbol.toStringTag;
|
|
2909
|
+
}, Cr = typeof Symbol < "u" && Symbol, vo = vn, So = function() {
|
|
2910
|
+
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vo();
|
|
2911
|
+
}, Or = {
|
|
2878
2912
|
foo: {}
|
|
2879
|
-
},
|
|
2880
|
-
return { __proto__:
|
|
2881
|
-
},
|
|
2913
|
+
}, Ao = Object, Eo = function() {
|
|
2914
|
+
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof Ao);
|
|
2915
|
+
}, Io = "Function.prototype.bind called on incompatible ", Fo = Object.prototype.toString, To = Math.max, _o = "[object Function]", xr = function(e, r) {
|
|
2882
2916
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2883
2917
|
o[s] = e[s];
|
|
2884
2918
|
for (var u = 0; u < r.length; u += 1)
|
|
2885
2919
|
o[u + e.length] = r[u];
|
|
2886
2920
|
return o;
|
|
2887
|
-
},
|
|
2921
|
+
}, Co = function(e, r) {
|
|
2888
2922
|
for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
|
|
2889
2923
|
o[u] = e[s];
|
|
2890
2924
|
return o;
|
|
2891
|
-
},
|
|
2925
|
+
}, Oo = function(t, e) {
|
|
2892
2926
|
for (var r = "", o = 0; o < t.length; o += 1)
|
|
2893
2927
|
r += t[o], o + 1 < t.length && (r += e);
|
|
2894
2928
|
return r;
|
|
2895
|
-
},
|
|
2929
|
+
}, xo = function(e) {
|
|
2896
2930
|
var r = this;
|
|
2897
|
-
if (typeof r != "function" ||
|
|
2898
|
-
throw new TypeError(
|
|
2899
|
-
for (var o =
|
|
2931
|
+
if (typeof r != "function" || Fo.apply(r) !== _o)
|
|
2932
|
+
throw new TypeError(Io + r);
|
|
2933
|
+
for (var o = Co(arguments, 1), s, u = function() {
|
|
2900
2934
|
if (this instanceof s) {
|
|
2901
2935
|
var g = r.apply(
|
|
2902
2936
|
this,
|
|
2903
|
-
|
|
2937
|
+
xr(o, arguments)
|
|
2904
2938
|
);
|
|
2905
2939
|
return Object(g) === g ? g : this;
|
|
2906
2940
|
}
|
|
2907
2941
|
return r.apply(
|
|
2908
2942
|
e,
|
|
2909
|
-
|
|
2943
|
+
xr(o, arguments)
|
|
2910
2944
|
);
|
|
2911
|
-
}, l =
|
|
2945
|
+
}, l = To(0, r.length - o.length), f = [], p = 0; p < l; p++)
|
|
2912
2946
|
f[p] = "$" + p;
|
|
2913
|
-
if (s = Function("binder", "return function (" +
|
|
2947
|
+
if (s = Function("binder", "return function (" + Oo(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2914
2948
|
var S = function() {
|
|
2915
2949
|
};
|
|
2916
2950
|
S.prototype = r.prototype, s.prototype = new S(), S.prototype = null;
|
|
2917
2951
|
}
|
|
2918
2952
|
return s;
|
|
2919
|
-
},
|
|
2920
|
-
return Lt.call(
|
|
2921
|
-
}, $,
|
|
2953
|
+
}, Bo = xo, Sn = Function.prototype.bind || Bo, Br = {}.hasOwnProperty, Lt = Function.prototype.call, ko = Lt.bind ? Lt.bind(Br) : function(t, e) {
|
|
2954
|
+
return Lt.call(Br, t, e);
|
|
2955
|
+
}, $, Xe = SyntaxError, An = Function, Ye = TypeError, Ut = function(t) {
|
|
2922
2956
|
try {
|
|
2923
2957
|
return An('"use strict"; return (' + t + ").constructor;")();
|
|
2924
2958
|
} catch {
|
|
2925
2959
|
}
|
|
2926
|
-
},
|
|
2927
|
-
if (
|
|
2960
|
+
}, De = Object.getOwnPropertyDescriptor;
|
|
2961
|
+
if (De)
|
|
2928
2962
|
try {
|
|
2929
|
-
|
|
2963
|
+
De({}, "");
|
|
2930
2964
|
} catch {
|
|
2931
|
-
|
|
2965
|
+
De = null;
|
|
2932
2966
|
}
|
|
2933
2967
|
var $t = function() {
|
|
2934
|
-
throw new
|
|
2935
|
-
},
|
|
2968
|
+
throw new Ye();
|
|
2969
|
+
}, Po = De ? function() {
|
|
2936
2970
|
try {
|
|
2937
2971
|
return arguments.callee, $t;
|
|
2938
2972
|
} catch {
|
|
2939
2973
|
try {
|
|
2940
|
-
return
|
|
2974
|
+
return De(arguments, "callee").get;
|
|
2941
2975
|
} catch {
|
|
2942
2976
|
return $t;
|
|
2943
2977
|
}
|
|
2944
2978
|
}
|
|
2945
|
-
}() : $t,
|
|
2979
|
+
}() : $t, Qe = So(), Ro = Eo(), X = Object.getPrototypeOf || (Ro ? function(t) {
|
|
2946
2980
|
return t.__proto__;
|
|
2947
|
-
} : null),
|
|
2981
|
+
} : null), ze = {}, No = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
|
|
2948
2982
|
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
2949
2983
|
"%Array%": Array,
|
|
2950
2984
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
2951
|
-
"%ArrayIteratorPrototype%":
|
|
2985
|
+
"%ArrayIteratorPrototype%": Qe && X ? X([][Symbol.iterator]()) : $,
|
|
2952
2986
|
"%AsyncFromSyncIteratorPrototype%": $,
|
|
2953
|
-
"%AsyncFunction%":
|
|
2954
|
-
"%AsyncGenerator%":
|
|
2955
|
-
"%AsyncGeneratorFunction%":
|
|
2956
|
-
"%AsyncIteratorPrototype%":
|
|
2987
|
+
"%AsyncFunction%": ze,
|
|
2988
|
+
"%AsyncGenerator%": ze,
|
|
2989
|
+
"%AsyncGeneratorFunction%": ze,
|
|
2990
|
+
"%AsyncIteratorPrototype%": ze,
|
|
2957
2991
|
"%Atomics%": typeof Atomics > "u" ? $ : Atomics,
|
|
2958
2992
|
"%BigInt%": typeof BigInt > "u" ? $ : BigInt,
|
|
2959
2993
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
|
|
@@ -2973,16 +3007,16 @@ var $t = function() {
|
|
|
2973
3007
|
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
|
|
2974
3008
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
|
|
2975
3009
|
"%Function%": An,
|
|
2976
|
-
"%GeneratorFunction%":
|
|
3010
|
+
"%GeneratorFunction%": ze,
|
|
2977
3011
|
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
|
|
2978
3012
|
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
|
|
2979
3013
|
"%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
|
|
2980
3014
|
"%isFinite%": isFinite,
|
|
2981
3015
|
"%isNaN%": isNaN,
|
|
2982
|
-
"%IteratorPrototype%":
|
|
3016
|
+
"%IteratorPrototype%": Qe && X ? X(X([][Symbol.iterator]())) : $,
|
|
2983
3017
|
"%JSON%": typeof JSON == "object" ? JSON : $,
|
|
2984
3018
|
"%Map%": typeof Map > "u" ? $ : Map,
|
|
2985
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
3019
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Qe || !X ? $ : X((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2986
3020
|
"%Math%": Math,
|
|
2987
3021
|
"%Number%": Number,
|
|
2988
3022
|
"%Object%": Object,
|
|
@@ -2995,15 +3029,15 @@ var $t = function() {
|
|
|
2995
3029
|
"%Reflect%": typeof Reflect > "u" ? $ : Reflect,
|
|
2996
3030
|
"%RegExp%": RegExp,
|
|
2997
3031
|
"%Set%": typeof Set > "u" ? $ : Set,
|
|
2998
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
3032
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Qe || !X ? $ : X((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2999
3033
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
|
|
3000
3034
|
"%String%": String,
|
|
3001
|
-
"%StringIteratorPrototype%":
|
|
3002
|
-
"%Symbol%":
|
|
3003
|
-
"%SyntaxError%":
|
|
3004
|
-
"%ThrowTypeError%":
|
|
3005
|
-
"%TypedArray%":
|
|
3006
|
-
"%TypeError%":
|
|
3035
|
+
"%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
|
|
3036
|
+
"%Symbol%": Qe ? Symbol : $,
|
|
3037
|
+
"%SyntaxError%": Xe,
|
|
3038
|
+
"%ThrowTypeError%": Po,
|
|
3039
|
+
"%TypedArray%": No,
|
|
3040
|
+
"%TypeError%": Ye,
|
|
3007
3041
|
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
3008
3042
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
3009
3043
|
"%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
|
|
@@ -3017,10 +3051,10 @@ if (X)
|
|
|
3017
3051
|
try {
|
|
3018
3052
|
null.error;
|
|
3019
3053
|
} catch (t) {
|
|
3020
|
-
var
|
|
3021
|
-
|
|
3054
|
+
var Lo = X(X(t));
|
|
3055
|
+
Ve["%Error.prototype%"] = Lo;
|
|
3022
3056
|
}
|
|
3023
|
-
var
|
|
3057
|
+
var Uo = function t(e) {
|
|
3024
3058
|
var r;
|
|
3025
3059
|
if (e === "%AsyncFunction%")
|
|
3026
3060
|
r = Ut("async function () {}");
|
|
@@ -3035,8 +3069,8 @@ var $o = function t(e) {
|
|
|
3035
3069
|
var s = t("%AsyncGenerator%");
|
|
3036
3070
|
s && X && (r = X(s.prototype));
|
|
3037
3071
|
}
|
|
3038
|
-
return
|
|
3039
|
-
},
|
|
3072
|
+
return Ve[e] = r, r;
|
|
3073
|
+
}, kr = {
|
|
3040
3074
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
3041
3075
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
3042
3076
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -3088,60 +3122,60 @@ var $o = function t(e) {
|
|
|
3088
3122
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3089
3123
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3090
3124
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3091
|
-
}, ft = Sn, St =
|
|
3125
|
+
}, ft = Sn, St = ko, $o = ft.call(Function.call, Array.prototype.concat), jo = ft.call(Function.apply, Array.prototype.splice), Pr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), Do = ft.call(Function.call, RegExp.prototype.exec), Vo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Mo = /\\(\\)?/g, qo = function(e) {
|
|
3092
3126
|
var r = At(e, 0, 1), o = At(e, -1);
|
|
3093
3127
|
if (r === "%" && o !== "%")
|
|
3094
|
-
throw new
|
|
3128
|
+
throw new Xe("invalid intrinsic syntax, expected closing `%`");
|
|
3095
3129
|
if (o === "%" && r !== "%")
|
|
3096
|
-
throw new
|
|
3130
|
+
throw new Xe("invalid intrinsic syntax, expected opening `%`");
|
|
3097
3131
|
var s = [];
|
|
3098
|
-
return
|
|
3099
|
-
s[s.length] = f ?
|
|
3132
|
+
return Pr(e, Vo, function(u, l, f, p) {
|
|
3133
|
+
s[s.length] = f ? Pr(p, Mo, "$1") : l || u;
|
|
3100
3134
|
}), s;
|
|
3101
|
-
},
|
|
3135
|
+
}, Qo = function(e, r) {
|
|
3102
3136
|
var o = e, s;
|
|
3103
|
-
if (St(
|
|
3104
|
-
var u =
|
|
3105
|
-
if (u ===
|
|
3106
|
-
throw new
|
|
3137
|
+
if (St(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), St(Ve, o)) {
|
|
3138
|
+
var u = Ve[o];
|
|
3139
|
+
if (u === ze && (u = Uo(o)), typeof u > "u" && !r)
|
|
3140
|
+
throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3107
3141
|
return {
|
|
3108
3142
|
alias: s,
|
|
3109
3143
|
name: o,
|
|
3110
3144
|
value: u
|
|
3111
3145
|
};
|
|
3112
3146
|
}
|
|
3113
|
-
throw new
|
|
3114
|
-
},
|
|
3147
|
+
throw new Xe("intrinsic " + e + " does not exist!");
|
|
3148
|
+
}, et = function(e, r) {
|
|
3115
3149
|
if (typeof e != "string" || e.length === 0)
|
|
3116
|
-
throw new
|
|
3150
|
+
throw new Ye("intrinsic name must be a non-empty string");
|
|
3117
3151
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3118
|
-
throw new
|
|
3119
|
-
if (
|
|
3120
|
-
throw new
|
|
3121
|
-
var o =
|
|
3122
|
-
S && (s = S[0],
|
|
3152
|
+
throw new Ye('"allowMissing" argument must be a boolean');
|
|
3153
|
+
if (Do(/^%?[^%]*%?$/, e) === null)
|
|
3154
|
+
throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3155
|
+
var o = qo(e), s = o.length > 0 ? o[0] : "", u = Qo("%" + s + "%", r), l = u.name, f = u.value, p = !1, S = u.alias;
|
|
3156
|
+
S && (s = S[0], jo(o, $o([0, 1], S)));
|
|
3123
3157
|
for (var g = 1, b = !0; g < o.length; g += 1) {
|
|
3124
|
-
var E = o[g],
|
|
3125
|
-
if ((
|
|
3126
|
-
throw new
|
|
3127
|
-
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(
|
|
3128
|
-
f =
|
|
3158
|
+
var E = o[g], T = At(E, 0, 1), N = At(E, -1);
|
|
3159
|
+
if ((T === '"' || T === "'" || T === "`" || N === '"' || N === "'" || N === "`") && T !== N)
|
|
3160
|
+
throw new Xe("property names with quotes must have matching quotes");
|
|
3161
|
+
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(Ve, l))
|
|
3162
|
+
f = Ve[l];
|
|
3129
3163
|
else if (f != null) {
|
|
3130
3164
|
if (!(E in f)) {
|
|
3131
3165
|
if (!r)
|
|
3132
|
-
throw new
|
|
3166
|
+
throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
|
|
3133
3167
|
return;
|
|
3134
3168
|
}
|
|
3135
|
-
if (
|
|
3136
|
-
var P =
|
|
3169
|
+
if (De && g + 1 >= o.length) {
|
|
3170
|
+
var P = De(f, E);
|
|
3137
3171
|
b = !!P, b && "get" in P && !("originalValue" in P.get) ? f = P.get : f = f[E];
|
|
3138
3172
|
} else
|
|
3139
3173
|
b = St(f, E), f = f[E];
|
|
3140
|
-
b && !p && (
|
|
3174
|
+
b && !p && (Ve[l] = f);
|
|
3141
3175
|
}
|
|
3142
3176
|
}
|
|
3143
3177
|
return f;
|
|
3144
|
-
}, En = { exports: {} },
|
|
3178
|
+
}, En = { exports: {} }, Go = et, er = Go("%Object.defineProperty%", !0), tr = function() {
|
|
3145
3179
|
if (er)
|
|
3146
3180
|
try {
|
|
3147
3181
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3159,34 +3193,34 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3159
3193
|
return !0;
|
|
3160
3194
|
}
|
|
3161
3195
|
};
|
|
3162
|
-
var In = tr,
|
|
3196
|
+
var In = tr, zo = et, yt = zo("%Object.getOwnPropertyDescriptor%", !0);
|
|
3163
3197
|
if (yt)
|
|
3164
3198
|
try {
|
|
3165
3199
|
yt([], "length");
|
|
3166
3200
|
} catch {
|
|
3167
3201
|
yt = null;
|
|
3168
3202
|
}
|
|
3169
|
-
var
|
|
3203
|
+
var wr = yt, Ko = In(), vr = et, ut = Ko && vr("%Object.defineProperty%", !0);
|
|
3170
3204
|
if (ut)
|
|
3171
3205
|
try {
|
|
3172
3206
|
ut({}, "a", { value: 1 });
|
|
3173
3207
|
} catch {
|
|
3174
3208
|
ut = !1;
|
|
3175
3209
|
}
|
|
3176
|
-
var
|
|
3210
|
+
var Ho = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Wo = function(e, r, o) {
|
|
3177
3211
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3178
|
-
throw new
|
|
3212
|
+
throw new Ge("`obj` must be an object or a function`");
|
|
3179
3213
|
if (typeof r != "string" && typeof r != "symbol")
|
|
3180
|
-
throw new
|
|
3214
|
+
throw new Ge("`property` must be a string or a symbol`");
|
|
3181
3215
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
3182
|
-
throw new
|
|
3216
|
+
throw new Ge("`nonEnumerable`, if provided, must be a boolean or null");
|
|
3183
3217
|
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
3184
|
-
throw new
|
|
3218
|
+
throw new Ge("`nonWritable`, if provided, must be a boolean or null");
|
|
3185
3219
|
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
3186
|
-
throw new
|
|
3220
|
+
throw new Ge("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3187
3221
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3188
|
-
throw new
|
|
3189
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, p = !!
|
|
3222
|
+
throw new Ge("`loose`, if provided, must be a boolean");
|
|
3223
|
+
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, p = !!Rr && Rr(e, r);
|
|
3190
3224
|
if (ut)
|
|
3191
3225
|
ut(e, r, {
|
|
3192
3226
|
configurable: l === null && p ? p.configurable : !l,
|
|
@@ -3197,21 +3231,21 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3197
3231
|
else if (f || !s && !u && !l)
|
|
3198
3232
|
e[r] = o;
|
|
3199
3233
|
else
|
|
3200
|
-
throw new
|
|
3201
|
-
}, Fn =
|
|
3234
|
+
throw new Ho("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3235
|
+
}, Fn = et, Nr = Wo, Jo = In(), Lr = wr, Ur = Fn("%TypeError%"), Yo = Fn("%Math.floor%"), Xo = function(e, r) {
|
|
3202
3236
|
if (typeof e != "function")
|
|
3203
|
-
throw new
|
|
3204
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3205
|
-
throw new
|
|
3237
|
+
throw new Ur("`fn` is not a function");
|
|
3238
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Yo(r) !== r)
|
|
3239
|
+
throw new Ur("`length` must be a positive 32-bit integer");
|
|
3206
3240
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3207
|
-
if ("length" in e &&
|
|
3208
|
-
var l =
|
|
3241
|
+
if ("length" in e && Lr) {
|
|
3242
|
+
var l = Lr(e, "length");
|
|
3209
3243
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3210
3244
|
}
|
|
3211
|
-
return (s || u || !o) && (
|
|
3245
|
+
return (s || u || !o) && (Jo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
|
|
3212
3246
|
};
|
|
3213
3247
|
(function(t) {
|
|
3214
|
-
var e = Sn, r =
|
|
3248
|
+
var e = Sn, r = et, o = Xo, 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), S = r("%Math.max%");
|
|
3215
3249
|
if (p)
|
|
3216
3250
|
try {
|
|
3217
3251
|
p({}, "a", { value: 1 });
|
|
@@ -3221,9 +3255,9 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3221
3255
|
t.exports = function(E) {
|
|
3222
3256
|
if (typeof E != "function")
|
|
3223
3257
|
throw new s("a function is required");
|
|
3224
|
-
var
|
|
3258
|
+
var T = f(e, l, arguments);
|
|
3225
3259
|
return o(
|
|
3226
|
-
|
|
3260
|
+
T,
|
|
3227
3261
|
1 + S(0, E.length - (arguments.length - 1)),
|
|
3228
3262
|
!0
|
|
3229
3263
|
);
|
|
@@ -3233,121 +3267,121 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3233
3267
|
};
|
|
3234
3268
|
p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3235
3269
|
})(En);
|
|
3236
|
-
var
|
|
3237
|
-
var o =
|
|
3238
|
-
return typeof o == "function" &&
|
|
3239
|
-
},
|
|
3240
|
-
return
|
|
3270
|
+
var Tn = En.exports, _n = et, Cn = Tn, Zo = Cn(_n("String.prototype.indexOf")), On = function(e, r) {
|
|
3271
|
+
var o = _n(e, !!r);
|
|
3272
|
+
return typeof o == "function" && Zo(e, ".prototype.") > -1 ? Cn(o) : o;
|
|
3273
|
+
}, es = br(), ts = On, rr = ts("Object.prototype.toString"), kt = function(e) {
|
|
3274
|
+
return es && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3241
3275
|
}, xn = function(e) {
|
|
3242
3276
|
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]";
|
|
3243
|
-
},
|
|
3277
|
+
}, rs = function() {
|
|
3244
3278
|
return kt(arguments);
|
|
3245
3279
|
}();
|
|
3246
3280
|
kt.isLegacyArguments = xn;
|
|
3247
|
-
var
|
|
3281
|
+
var ns = rs ? kt : xn, is = Object.prototype.toString, os = Function.prototype.toString, ss = /^\s*(?:function)?\*/, Bn = br(), jt = Object.getPrototypeOf, as = function() {
|
|
3248
3282
|
if (!Bn)
|
|
3249
3283
|
return !1;
|
|
3250
3284
|
try {
|
|
3251
3285
|
return Function("return function*() {}")();
|
|
3252
3286
|
} catch {
|
|
3253
3287
|
}
|
|
3254
|
-
}, Dt,
|
|
3288
|
+
}, Dt, us = function(e) {
|
|
3255
3289
|
if (typeof e != "function")
|
|
3256
3290
|
return !1;
|
|
3257
|
-
if (
|
|
3291
|
+
if (ss.test(os.call(e)))
|
|
3258
3292
|
return !0;
|
|
3259
3293
|
if (!Bn) {
|
|
3260
|
-
var r =
|
|
3294
|
+
var r = is.call(e);
|
|
3261
3295
|
return r === "[object GeneratorFunction]";
|
|
3262
3296
|
}
|
|
3263
3297
|
if (!jt)
|
|
3264
3298
|
return !1;
|
|
3265
3299
|
if (typeof Dt > "u") {
|
|
3266
|
-
var o =
|
|
3300
|
+
var o = as();
|
|
3267
3301
|
Dt = o ? jt(o) : !1;
|
|
3268
3302
|
}
|
|
3269
3303
|
return jt(e) === Dt;
|
|
3270
|
-
}, kn = Function.prototype.toString,
|
|
3271
|
-
if (typeof
|
|
3304
|
+
}, kn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
|
|
3305
|
+
if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
3272
3306
|
try {
|
|
3273
3307
|
nr = Object.defineProperty({}, "length", {
|
|
3274
3308
|
get: function() {
|
|
3275
3309
|
throw gt;
|
|
3276
3310
|
}
|
|
3277
|
-
}), gt = {},
|
|
3311
|
+
}), gt = {}, He(function() {
|
|
3278
3312
|
throw 42;
|
|
3279
3313
|
}, null, nr);
|
|
3280
3314
|
} catch (t) {
|
|
3281
|
-
t !== gt && (
|
|
3315
|
+
t !== gt && (He = null);
|
|
3282
3316
|
}
|
|
3283
3317
|
else
|
|
3284
|
-
|
|
3285
|
-
var
|
|
3318
|
+
He = null;
|
|
3319
|
+
var cs = /^\s*class\b/, ir = function(e) {
|
|
3286
3320
|
try {
|
|
3287
3321
|
var r = kn.call(e);
|
|
3288
|
-
return
|
|
3322
|
+
return cs.test(r);
|
|
3289
3323
|
} catch {
|
|
3290
3324
|
return !1;
|
|
3291
3325
|
}
|
|
3292
|
-
},
|
|
3326
|
+
}, Vt = function(e) {
|
|
3293
3327
|
try {
|
|
3294
3328
|
return ir(e) ? !1 : (kn.call(e), !0);
|
|
3295
3329
|
} catch {
|
|
3296
3330
|
return !1;
|
|
3297
3331
|
}
|
|
3298
|
-
}, mt = Object.prototype.toString,
|
|
3332
|
+
}, mt = Object.prototype.toString, fs = "[object Object]", ls = "[object Function]", hs = "[object GeneratorFunction]", ps = "[object HTMLAllCollection]", ds = "[object HTML document.all class]", ys = "[object HTMLCollection]", gs = typeof Symbol == "function" && !!Symbol.toStringTag, ms = !(0 in [,]), or = function() {
|
|
3299
3333
|
return !1;
|
|
3300
3334
|
};
|
|
3301
3335
|
if (typeof document == "object") {
|
|
3302
|
-
var
|
|
3303
|
-
mt.call(
|
|
3304
|
-
if ((
|
|
3336
|
+
var bs = document.all;
|
|
3337
|
+
mt.call(bs) === mt.call(document.all) && (or = function(e) {
|
|
3338
|
+
if ((ms || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3305
3339
|
try {
|
|
3306
3340
|
var r = mt.call(e);
|
|
3307
|
-
return (r ===
|
|
3341
|
+
return (r === ps || r === ds || r === ys || r === fs) && e("") == null;
|
|
3308
3342
|
} catch {
|
|
3309
3343
|
}
|
|
3310
3344
|
return !1;
|
|
3311
3345
|
});
|
|
3312
3346
|
}
|
|
3313
|
-
var
|
|
3347
|
+
var ws = He ? function(e) {
|
|
3314
3348
|
if (or(e))
|
|
3315
3349
|
return !0;
|
|
3316
3350
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3317
3351
|
return !1;
|
|
3318
3352
|
try {
|
|
3319
|
-
|
|
3353
|
+
He(e, null, nr);
|
|
3320
3354
|
} catch (r) {
|
|
3321
3355
|
if (r !== gt)
|
|
3322
3356
|
return !1;
|
|
3323
3357
|
}
|
|
3324
|
-
return !ir(e) &&
|
|
3358
|
+
return !ir(e) && Vt(e);
|
|
3325
3359
|
} : function(e) {
|
|
3326
3360
|
if (or(e))
|
|
3327
3361
|
return !0;
|
|
3328
3362
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3329
3363
|
return !1;
|
|
3330
|
-
if (
|
|
3331
|
-
return
|
|
3364
|
+
if (gs)
|
|
3365
|
+
return Vt(e);
|
|
3332
3366
|
if (ir(e))
|
|
3333
3367
|
return !1;
|
|
3334
3368
|
var r = mt.call(e);
|
|
3335
|
-
return r !==
|
|
3336
|
-
},
|
|
3369
|
+
return r !== ls && r !== hs && !/^\[object HTML/.test(r) ? !1 : Vt(e);
|
|
3370
|
+
}, vs = ws, Ss = Object.prototype.toString, Pn = Object.prototype.hasOwnProperty, As = function(e, r, o) {
|
|
3337
3371
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3338
3372
|
Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3339
|
-
},
|
|
3373
|
+
}, Es = function(e, r, o) {
|
|
3340
3374
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3341
3375
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3342
|
-
},
|
|
3376
|
+
}, Is = function(e, r, o) {
|
|
3343
3377
|
for (var s in e)
|
|
3344
3378
|
Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3345
|
-
},
|
|
3346
|
-
if (!
|
|
3379
|
+
}, Fs = function(e, r, o) {
|
|
3380
|
+
if (!vs(r))
|
|
3347
3381
|
throw new TypeError("iterator must be a function");
|
|
3348
3382
|
var s;
|
|
3349
|
-
arguments.length >= 3 && (s = o),
|
|
3350
|
-
},
|
|
3383
|
+
arguments.length >= 3 && (s = o), Ss.call(e) === "[object Array]" ? As(e, r, s) : typeof e == "string" ? Es(e, r, s) : Is(e, r, s);
|
|
3384
|
+
}, Ts = Fs, Mt = [
|
|
3351
3385
|
"BigInt64Array",
|
|
3352
3386
|
"BigUint64Array",
|
|
3353
3387
|
"Float32Array",
|
|
@@ -3359,45 +3393,45 @@ var vs = ze ? function(e) {
|
|
|
3359
3393
|
"Uint32Array",
|
|
3360
3394
|
"Uint8Array",
|
|
3361
3395
|
"Uint8ClampedArray"
|
|
3362
|
-
],
|
|
3363
|
-
for (var e = [], r = 0; r <
|
|
3364
|
-
typeof
|
|
3396
|
+
], _s = typeof globalThis > "u" ? Yr : globalThis, Cs = function() {
|
|
3397
|
+
for (var e = [], r = 0; r < Mt.length; r++)
|
|
3398
|
+
typeof _s[Mt[r]] == "function" && (e[e.length] = Mt[r]);
|
|
3365
3399
|
return e;
|
|
3366
|
-
}, Et =
|
|
3400
|
+
}, Et = Ts, Os = Cs, $r = Tn, Sr = On, bt = wr, xs = Sr("Object.prototype.toString"), Rn = br(), jr = typeof globalThis > "u" ? Yr : globalThis, sr = Os(), Ar = Sr("String.prototype.slice"), qt = Object.getPrototypeOf, Bs = Sr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3367
3401
|
for (var o = 0; o < e.length; o += 1)
|
|
3368
3402
|
if (e[o] === r)
|
|
3369
3403
|
return o;
|
|
3370
3404
|
return -1;
|
|
3371
3405
|
}, It = { __proto__: null };
|
|
3372
3406
|
Rn && bt && qt ? Et(sr, function(t) {
|
|
3373
|
-
var e = new
|
|
3407
|
+
var e = new jr[t]();
|
|
3374
3408
|
if (Symbol.toStringTag in e) {
|
|
3375
3409
|
var r = qt(e), o = bt(r, Symbol.toStringTag);
|
|
3376
3410
|
if (!o) {
|
|
3377
3411
|
var s = qt(r);
|
|
3378
3412
|
o = bt(s, Symbol.toStringTag);
|
|
3379
3413
|
}
|
|
3380
|
-
It["$" + t] =
|
|
3414
|
+
It["$" + t] = $r(o.get);
|
|
3381
3415
|
}
|
|
3382
3416
|
}) : Et(sr, function(t) {
|
|
3383
|
-
var e = new
|
|
3384
|
-
r && (It["$" + t] =
|
|
3417
|
+
var e = new jr[t](), r = e.slice || e.set;
|
|
3418
|
+
r && (It["$" + t] = $r(r));
|
|
3385
3419
|
});
|
|
3386
|
-
var
|
|
3420
|
+
var ks = function(e) {
|
|
3387
3421
|
var r = !1;
|
|
3388
3422
|
return Et(It, function(o, s) {
|
|
3389
3423
|
if (!r)
|
|
3390
3424
|
try {
|
|
3391
|
-
"$" + o(e) === s && (r =
|
|
3425
|
+
"$" + o(e) === s && (r = Ar(s, 1));
|
|
3392
3426
|
} catch {
|
|
3393
3427
|
}
|
|
3394
3428
|
}), r;
|
|
3395
|
-
},
|
|
3429
|
+
}, Ps = function(e) {
|
|
3396
3430
|
var r = !1;
|
|
3397
3431
|
return Et(It, function(o, s) {
|
|
3398
3432
|
if (!r)
|
|
3399
3433
|
try {
|
|
3400
|
-
o(e), r =
|
|
3434
|
+
o(e), r = Ar(s, 1);
|
|
3401
3435
|
} catch {
|
|
3402
3436
|
}
|
|
3403
3437
|
}), r;
|
|
@@ -3405,15 +3439,15 @@ var Ps = function(e) {
|
|
|
3405
3439
|
if (!e || typeof e != "object")
|
|
3406
3440
|
return !1;
|
|
3407
3441
|
if (!Rn) {
|
|
3408
|
-
var r =
|
|
3409
|
-
return
|
|
3442
|
+
var r = Ar(xs(e), 8, -1);
|
|
3443
|
+
return Bs(sr, r) > -1 ? r : r !== "Object" ? !1 : Ps(e);
|
|
3410
3444
|
}
|
|
3411
|
-
return bt ?
|
|
3412
|
-
},
|
|
3413
|
-
return !!
|
|
3445
|
+
return bt ? ks(e) : null;
|
|
3446
|
+
}, Rs = Nn, Ns = function(e) {
|
|
3447
|
+
return !!Rs(e);
|
|
3414
3448
|
};
|
|
3415
3449
|
(function(t) {
|
|
3416
|
-
var e =
|
|
3450
|
+
var e = ns, r = us, o = Nn, s = Ns;
|
|
3417
3451
|
function u(v) {
|
|
3418
3452
|
return v.call.bind(v);
|
|
3419
3453
|
}
|
|
@@ -3421,7 +3455,7 @@ var Ps = function(e) {
|
|
|
3421
3455
|
if (l)
|
|
3422
3456
|
var E = u(BigInt.prototype.valueOf);
|
|
3423
3457
|
if (f)
|
|
3424
|
-
var
|
|
3458
|
+
var T = u(Symbol.prototype.valueOf);
|
|
3425
3459
|
function N(v, ht) {
|
|
3426
3460
|
if (typeof v != "object")
|
|
3427
3461
|
return !1;
|
|
@@ -3444,10 +3478,10 @@ var Ps = function(e) {
|
|
|
3444
3478
|
return o(v) === "Uint8Array";
|
|
3445
3479
|
}
|
|
3446
3480
|
t.isUint8Array = I;
|
|
3447
|
-
function
|
|
3481
|
+
function _(v) {
|
|
3448
3482
|
return o(v) === "Uint8ClampedArray";
|
|
3449
3483
|
}
|
|
3450
|
-
t.isUint8ClampedArray =
|
|
3484
|
+
t.isUint8ClampedArray = _;
|
|
3451
3485
|
function j(v) {
|
|
3452
3486
|
return o(v) === "Uint16Array";
|
|
3453
3487
|
}
|
|
@@ -3476,10 +3510,10 @@ var Ps = function(e) {
|
|
|
3476
3510
|
return o(v) === "Float64Array";
|
|
3477
3511
|
}
|
|
3478
3512
|
t.isFloat64Array = ie;
|
|
3479
|
-
function
|
|
3513
|
+
function Ce(v) {
|
|
3480
3514
|
return o(v) === "BigInt64Array";
|
|
3481
3515
|
}
|
|
3482
|
-
t.isBigInt64Array =
|
|
3516
|
+
t.isBigInt64Array = Ce;
|
|
3483
3517
|
function Se(v) {
|
|
3484
3518
|
return o(v) === "BigUint64Array";
|
|
3485
3519
|
}
|
|
@@ -3488,10 +3522,10 @@ var Ps = function(e) {
|
|
|
3488
3522
|
return p(v) === "[object Map]";
|
|
3489
3523
|
}
|
|
3490
3524
|
fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
|
|
3491
|
-
function
|
|
3525
|
+
function rt(v) {
|
|
3492
3526
|
return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
|
|
3493
3527
|
}
|
|
3494
|
-
t.isMap =
|
|
3528
|
+
t.isMap = rt;
|
|
3495
3529
|
function le(v) {
|
|
3496
3530
|
return p(v) === "[object Set]";
|
|
3497
3531
|
}
|
|
@@ -3504,10 +3538,10 @@ var Ps = function(e) {
|
|
|
3504
3538
|
return p(v) === "[object WeakMap]";
|
|
3505
3539
|
}
|
|
3506
3540
|
xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
|
|
3507
|
-
function
|
|
3541
|
+
function nt(v) {
|
|
3508
3542
|
return typeof WeakMap > "u" ? !1 : xe.working ? xe(v) : v instanceof WeakMap;
|
|
3509
3543
|
}
|
|
3510
|
-
t.isWeakMap =
|
|
3544
|
+
t.isWeakMap = nt;
|
|
3511
3545
|
function Be(v) {
|
|
3512
3546
|
return p(v) === "[object WeakSet]";
|
|
3513
3547
|
}
|
|
@@ -3533,17 +3567,17 @@ var Ps = function(e) {
|
|
|
3533
3567
|
}
|
|
3534
3568
|
t.isDataView = w;
|
|
3535
3569
|
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3536
|
-
function
|
|
3570
|
+
function C(v) {
|
|
3537
3571
|
return p(v) === "[object SharedArrayBuffer]";
|
|
3538
3572
|
}
|
|
3539
3573
|
function D(v) {
|
|
3540
|
-
return typeof A > "u" ? !1 : (typeof
|
|
3574
|
+
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(v) : v instanceof A);
|
|
3541
3575
|
}
|
|
3542
3576
|
t.isSharedArrayBuffer = D;
|
|
3543
|
-
function
|
|
3577
|
+
function V(v) {
|
|
3544
3578
|
return p(v) === "[object AsyncFunction]";
|
|
3545
3579
|
}
|
|
3546
|
-
t.isAsyncFunction =
|
|
3580
|
+
t.isAsyncFunction = V;
|
|
3547
3581
|
function B(v) {
|
|
3548
3582
|
return p(v) === "[object Map Iterator]";
|
|
3549
3583
|
}
|
|
@@ -3552,10 +3586,10 @@ var Ps = function(e) {
|
|
|
3552
3586
|
return p(v) === "[object Set Iterator]";
|
|
3553
3587
|
}
|
|
3554
3588
|
t.isSetIterator = L;
|
|
3555
|
-
function
|
|
3589
|
+
function M(v) {
|
|
3556
3590
|
return p(v) === "[object Generator]";
|
|
3557
3591
|
}
|
|
3558
|
-
t.isGeneratorObject =
|
|
3592
|
+
t.isGeneratorObject = M;
|
|
3559
3593
|
function te(v) {
|
|
3560
3594
|
return p(v) === "[object WebAssembly.Module]";
|
|
3561
3595
|
}
|
|
@@ -3572,18 +3606,18 @@ var Ps = function(e) {
|
|
|
3572
3606
|
return N(v, b);
|
|
3573
3607
|
}
|
|
3574
3608
|
t.isBooleanObject = oe;
|
|
3575
|
-
function
|
|
3609
|
+
function Me(v) {
|
|
3576
3610
|
return l && N(v, E);
|
|
3577
3611
|
}
|
|
3578
|
-
t.isBigIntObject =
|
|
3612
|
+
t.isBigIntObject = Me;
|
|
3579
3613
|
function lt(v) {
|
|
3580
|
-
return f && N(v,
|
|
3614
|
+
return f && N(v, T);
|
|
3581
3615
|
}
|
|
3582
3616
|
t.isSymbolObject = lt;
|
|
3583
|
-
function
|
|
3584
|
-
return ye(v) || pe(v) || oe(v) ||
|
|
3617
|
+
function it(v) {
|
|
3618
|
+
return ye(v) || pe(v) || oe(v) || Me(v) || lt(v);
|
|
3585
3619
|
}
|
|
3586
|
-
t.isBoxedPrimitive =
|
|
3620
|
+
t.isBoxedPrimitive = it;
|
|
3587
3621
|
function Pt(v) {
|
|
3588
3622
|
return typeof Uint8Array < "u" && (H(v) || D(v));
|
|
3589
3623
|
}
|
|
@@ -3596,7 +3630,7 @@ var Ps = function(e) {
|
|
|
3596
3630
|
});
|
|
3597
3631
|
});
|
|
3598
3632
|
})(wn);
|
|
3599
|
-
var
|
|
3633
|
+
var Ls = function(e) {
|
|
3600
3634
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3601
3635
|
}, ar = { exports: {} };
|
|
3602
3636
|
typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
@@ -3616,12 +3650,12 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3616
3650
|
o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
|
|
3617
3651
|
}
|
|
3618
3652
|
};
|
|
3619
|
-
var
|
|
3653
|
+
var Us = ar.exports;
|
|
3620
3654
|
(function(t) {
|
|
3621
3655
|
var e = Object.getOwnPropertyDescriptors || function(w) {
|
|
3622
|
-
for (var A = Object.keys(w),
|
|
3623
|
-
|
|
3624
|
-
return
|
|
3656
|
+
for (var A = Object.keys(w), C = {}, D = 0; D < A.length; D++)
|
|
3657
|
+
C[A[D]] = Object.getOwnPropertyDescriptor(w, A[D]);
|
|
3658
|
+
return C;
|
|
3625
3659
|
}, r = /%[sdj%]/g;
|
|
3626
3660
|
t.format = function(d) {
|
|
3627
3661
|
if (!F(d)) {
|
|
@@ -3629,28 +3663,28 @@ var $s = ar.exports;
|
|
|
3629
3663
|
w.push(l(arguments[A]));
|
|
3630
3664
|
return w.join(" ");
|
|
3631
3665
|
}
|
|
3632
|
-
for (var A = 1,
|
|
3666
|
+
for (var A = 1, C = arguments, D = C.length, V = String(d).replace(r, function(L) {
|
|
3633
3667
|
if (L === "%%")
|
|
3634
3668
|
return "%";
|
|
3635
3669
|
if (A >= D)
|
|
3636
3670
|
return L;
|
|
3637
3671
|
switch (L) {
|
|
3638
3672
|
case "%s":
|
|
3639
|
-
return String(
|
|
3673
|
+
return String(C[A++]);
|
|
3640
3674
|
case "%d":
|
|
3641
|
-
return Number(
|
|
3675
|
+
return Number(C[A++]);
|
|
3642
3676
|
case "%j":
|
|
3643
3677
|
try {
|
|
3644
|
-
return JSON.stringify(
|
|
3678
|
+
return JSON.stringify(C[A++]);
|
|
3645
3679
|
} catch {
|
|
3646
3680
|
return "[Circular]";
|
|
3647
3681
|
}
|
|
3648
3682
|
default:
|
|
3649
3683
|
return L;
|
|
3650
3684
|
}
|
|
3651
|
-
}), B =
|
|
3652
|
-
|
|
3653
|
-
return
|
|
3685
|
+
}), B = C[A]; A < D; B = C[++A])
|
|
3686
|
+
_(B) || !ie(B) ? V += " " + B : V += " " + l(B);
|
|
3687
|
+
return V;
|
|
3654
3688
|
}, t.deprecate = function(d, w) {
|
|
3655
3689
|
if (typeof O.process < "u" && O.process.noDeprecation === !0)
|
|
3656
3690
|
return d;
|
|
@@ -3659,7 +3693,7 @@ var $s = ar.exports;
|
|
|
3659
3693
|
return t.deprecate(d, w).apply(this, arguments);
|
|
3660
3694
|
};
|
|
3661
3695
|
var A = !1;
|
|
3662
|
-
function
|
|
3696
|
+
function C() {
|
|
3663
3697
|
if (!A) {
|
|
3664
3698
|
if (O.process.throwDeprecation)
|
|
3665
3699
|
throw new Error(w);
|
|
@@ -3667,7 +3701,7 @@ var $s = ar.exports;
|
|
|
3667
3701
|
}
|
|
3668
3702
|
return d.apply(this, arguments);
|
|
3669
3703
|
}
|
|
3670
|
-
return
|
|
3704
|
+
return C;
|
|
3671
3705
|
};
|
|
3672
3706
|
var o = {}, s = /^$/;
|
|
3673
3707
|
if (O.process.env.NODE_DEBUG) {
|
|
@@ -3728,7 +3762,7 @@ var $s = ar.exports;
|
|
|
3728
3762
|
}
|
|
3729
3763
|
function S(d) {
|
|
3730
3764
|
var w = {};
|
|
3731
|
-
return d.forEach(function(A,
|
|
3765
|
+
return d.forEach(function(A, C) {
|
|
3732
3766
|
w[A] = !0;
|
|
3733
3767
|
}), w;
|
|
3734
3768
|
}
|
|
@@ -3736,41 +3770,41 @@ var $s = ar.exports;
|
|
|
3736
3770
|
if (d.customInspect && w && fe(w.inspect) && // Filter out the util module, it's inspect function is special
|
|
3737
3771
|
w.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3738
3772
|
!(w.constructor && w.constructor.prototype === w)) {
|
|
3739
|
-
var
|
|
3740
|
-
return F(
|
|
3773
|
+
var C = w.inspect(A, d);
|
|
3774
|
+
return F(C) || (C = g(d, C, A)), C;
|
|
3741
3775
|
}
|
|
3742
3776
|
var D = b(d, w);
|
|
3743
3777
|
if (D)
|
|
3744
3778
|
return D;
|
|
3745
|
-
var
|
|
3746
|
-
if (d.showHidden && (
|
|
3779
|
+
var V = Object.keys(w), B = S(V);
|
|
3780
|
+
if (d.showHidden && (V = Object.getOwnPropertyNames(w)), Se(w) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
|
|
3747
3781
|
return E(w);
|
|
3748
|
-
if (
|
|
3782
|
+
if (V.length === 0) {
|
|
3749
3783
|
if (fe(w)) {
|
|
3750
3784
|
var L = w.name ? ": " + w.name : "";
|
|
3751
3785
|
return d.stylize("[Function" + L + "]", "special");
|
|
3752
3786
|
}
|
|
3753
3787
|
if (G(w))
|
|
3754
3788
|
return d.stylize(RegExp.prototype.toString.call(w), "regexp");
|
|
3755
|
-
if (
|
|
3789
|
+
if (Ce(w))
|
|
3756
3790
|
return d.stylize(Date.prototype.toString.call(w), "date");
|
|
3757
3791
|
if (Se(w))
|
|
3758
3792
|
return E(w);
|
|
3759
3793
|
}
|
|
3760
|
-
var
|
|
3794
|
+
var M = "", te = !1, ye = ["{", "}"];
|
|
3761
3795
|
if (K(w) && (te = !0, ye = ["[", "]"]), fe(w)) {
|
|
3762
3796
|
var pe = w.name ? ": " + w.name : "";
|
|
3763
|
-
|
|
3797
|
+
M = " [Function" + pe + "]";
|
|
3764
3798
|
}
|
|
3765
|
-
if (G(w) && (
|
|
3766
|
-
return ye[0] +
|
|
3799
|
+
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
|
+
return ye[0] + M + ye[1];
|
|
3767
3801
|
if (A < 0)
|
|
3768
3802
|
return G(w) ? d.stylize(RegExp.prototype.toString.call(w), "regexp") : d.stylize("[Object]", "special");
|
|
3769
3803
|
d.seen.push(w);
|
|
3770
3804
|
var oe;
|
|
3771
|
-
return te ? oe =
|
|
3772
|
-
return N(d, w, A, B,
|
|
3773
|
-
}), d.seen.pop(), P(oe,
|
|
3805
|
+
return te ? oe = T(d, w, A, B, V) : oe = V.map(function(Me) {
|
|
3806
|
+
return N(d, w, A, B, Me, te);
|
|
3807
|
+
}), d.seen.pop(), P(oe, M, ye);
|
|
3774
3808
|
}
|
|
3775
3809
|
function b(d, w) {
|
|
3776
3810
|
if (k(w))
|
|
@@ -3783,37 +3817,37 @@ var $s = ar.exports;
|
|
|
3783
3817
|
return d.stylize("" + w, "number");
|
|
3784
3818
|
if (I(w))
|
|
3785
3819
|
return d.stylize("" + w, "boolean");
|
|
3786
|
-
if (
|
|
3820
|
+
if (_(w))
|
|
3787
3821
|
return d.stylize("null", "null");
|
|
3788
3822
|
}
|
|
3789
3823
|
function E(d) {
|
|
3790
3824
|
return "[" + Error.prototype.toString.call(d) + "]";
|
|
3791
3825
|
}
|
|
3792
|
-
function
|
|
3793
|
-
for (var
|
|
3794
|
-
Be(w, String(B)) ?
|
|
3826
|
+
function T(d, w, A, C, D) {
|
|
3827
|
+
for (var V = [], B = 0, L = w.length; B < L; ++B)
|
|
3828
|
+
Be(w, String(B)) ? V.push(N(
|
|
3795
3829
|
d,
|
|
3796
3830
|
w,
|
|
3797
3831
|
A,
|
|
3798
|
-
|
|
3832
|
+
C,
|
|
3799
3833
|
String(B),
|
|
3800
3834
|
!0
|
|
3801
|
-
)) :
|
|
3802
|
-
return D.forEach(function(
|
|
3803
|
-
|
|
3835
|
+
)) : V.push("");
|
|
3836
|
+
return D.forEach(function(M) {
|
|
3837
|
+
M.match(/^\d+$/) || V.push(N(
|
|
3804
3838
|
d,
|
|
3805
3839
|
w,
|
|
3806
3840
|
A,
|
|
3807
|
-
|
|
3808
|
-
|
|
3841
|
+
C,
|
|
3842
|
+
M,
|
|
3809
3843
|
!0
|
|
3810
3844
|
));
|
|
3811
|
-
}),
|
|
3845
|
+
}), V;
|
|
3812
3846
|
}
|
|
3813
|
-
function N(d, w, A,
|
|
3814
|
-
var B, L,
|
|
3815
|
-
if (
|
|
3816
|
-
`) > -1 && (
|
|
3847
|
+
function N(d, w, A, C, D, V) {
|
|
3848
|
+
var B, L, M;
|
|
3849
|
+
if (M = Object.getOwnPropertyDescriptor(w, D) || { value: w[D] }, M.get ? M.set ? L = d.stylize("[Getter/Setter]", "special") : L = d.stylize("[Getter]", "special") : M.set && (L = d.stylize("[Setter]", "special")), Be(C, D) || (B = "[" + D + "]"), L || (d.seen.indexOf(M.value) < 0 ? (_(A) ? L = g(d, M.value, null) : L = g(d, M.value, A - 1), L.indexOf(`
|
|
3850
|
+
`) > -1 && (V ? L = L.split(`
|
|
3817
3851
|
`).map(function(te) {
|
|
3818
3852
|
return " " + te;
|
|
3819
3853
|
}).join(`
|
|
@@ -3823,18 +3857,18 @@ var $s = ar.exports;
|
|
|
3823
3857
|
return " " + te;
|
|
3824
3858
|
}).join(`
|
|
3825
3859
|
`))) : L = d.stylize("[Circular]", "special")), k(B)) {
|
|
3826
|
-
if (
|
|
3860
|
+
if (V && D.match(/^\d+$/))
|
|
3827
3861
|
return L;
|
|
3828
3862
|
B = JSON.stringify("" + D), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = d.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = d.stylize(B, "string"));
|
|
3829
3863
|
}
|
|
3830
3864
|
return B + ": " + L;
|
|
3831
3865
|
}
|
|
3832
3866
|
function P(d, w, A) {
|
|
3833
|
-
var
|
|
3834
|
-
return
|
|
3835
|
-
`) >= 0, D +
|
|
3867
|
+
var C = d.reduce(function(D, V) {
|
|
3868
|
+
return V.indexOf(`
|
|
3869
|
+
`) >= 0, D + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3836
3870
|
}, 0);
|
|
3837
|
-
return
|
|
3871
|
+
return C > 60 ? A[0] + (w === "" ? "" : w + `
|
|
3838
3872
|
`) + " " + d.join(`,
|
|
3839
3873
|
`) + " " + A[1] : A[0] + w + " " + d.join(", ") + " " + A[1];
|
|
3840
3874
|
}
|
|
@@ -3847,10 +3881,10 @@ var $s = ar.exports;
|
|
|
3847
3881
|
return typeof d == "boolean";
|
|
3848
3882
|
}
|
|
3849
3883
|
t.isBoolean = I;
|
|
3850
|
-
function
|
|
3884
|
+
function _(d) {
|
|
3851
3885
|
return d === null;
|
|
3852
3886
|
}
|
|
3853
|
-
t.isNull =
|
|
3887
|
+
t.isNull = _;
|
|
3854
3888
|
function j(d) {
|
|
3855
3889
|
return d == null;
|
|
3856
3890
|
}
|
|
@@ -3879,10 +3913,10 @@ var $s = ar.exports;
|
|
|
3879
3913
|
return typeof d == "object" && d !== null;
|
|
3880
3914
|
}
|
|
3881
3915
|
t.isObject = ie;
|
|
3882
|
-
function
|
|
3916
|
+
function Ce(d) {
|
|
3883
3917
|
return ie(d) && le(d) === "[object Date]";
|
|
3884
3918
|
}
|
|
3885
|
-
t.isDate =
|
|
3919
|
+
t.isDate = Ce, t.types.isDate = Ce;
|
|
3886
3920
|
function Se(d) {
|
|
3887
3921
|
return ie(d) && (le(d) === "[object Error]" || d instanceof Error);
|
|
3888
3922
|
}
|
|
@@ -3891,11 +3925,11 @@ var $s = ar.exports;
|
|
|
3891
3925
|
return typeof d == "function";
|
|
3892
3926
|
}
|
|
3893
3927
|
t.isFunction = fe;
|
|
3894
|
-
function
|
|
3928
|
+
function rt(d) {
|
|
3895
3929
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3896
3930
|
typeof d > "u";
|
|
3897
3931
|
}
|
|
3898
|
-
t.isPrimitive =
|
|
3932
|
+
t.isPrimitive = rt, t.isBuffer = Ls;
|
|
3899
3933
|
function le(d) {
|
|
3900
3934
|
return Object.prototype.toString.call(d);
|
|
3901
3935
|
}
|
|
@@ -3916,7 +3950,7 @@ var $s = ar.exports;
|
|
|
3916
3950
|
"Nov",
|
|
3917
3951
|
"Dec"
|
|
3918
3952
|
];
|
|
3919
|
-
function
|
|
3953
|
+
function nt() {
|
|
3920
3954
|
var d = /* @__PURE__ */ new Date(), w = [
|
|
3921
3955
|
Oe(d.getHours()),
|
|
3922
3956
|
Oe(d.getMinutes()),
|
|
@@ -3925,12 +3959,12 @@ var $s = ar.exports;
|
|
|
3925
3959
|
return [d.getDate(), xe[d.getMonth()], w].join(" ");
|
|
3926
3960
|
}
|
|
3927
3961
|
t.log = function() {
|
|
3928
|
-
console.log("%s - %s",
|
|
3929
|
-
}, t.inherits =
|
|
3962
|
+
console.log("%s - %s", nt(), t.format.apply(t, arguments));
|
|
3963
|
+
}, t.inherits = Us, t._extend = function(d, w) {
|
|
3930
3964
|
if (!w || !ie(w))
|
|
3931
3965
|
return d;
|
|
3932
|
-
for (var A = Object.keys(w),
|
|
3933
|
-
d[A[
|
|
3966
|
+
for (var A = Object.keys(w), C = A.length; C--; )
|
|
3967
|
+
d[A[C]] = w[A[C]];
|
|
3934
3968
|
return d;
|
|
3935
3969
|
};
|
|
3936
3970
|
function Be(d, w) {
|
|
@@ -3952,19 +3986,19 @@ var $s = ar.exports;
|
|
|
3952
3986
|
}), A;
|
|
3953
3987
|
}
|
|
3954
3988
|
function A() {
|
|
3955
|
-
for (var
|
|
3956
|
-
|
|
3989
|
+
for (var C, D, V = new Promise(function(M, te) {
|
|
3990
|
+
C = M, D = te;
|
|
3957
3991
|
}), B = [], L = 0; L < arguments.length; L++)
|
|
3958
3992
|
B.push(arguments[L]);
|
|
3959
|
-
B.push(function(
|
|
3960
|
-
|
|
3993
|
+
B.push(function(M, te) {
|
|
3994
|
+
M ? D(M) : C(te);
|
|
3961
3995
|
});
|
|
3962
3996
|
try {
|
|
3963
3997
|
w.apply(this, B);
|
|
3964
|
-
} catch (
|
|
3965
|
-
D(
|
|
3998
|
+
} catch (M) {
|
|
3999
|
+
D(M);
|
|
3966
4000
|
}
|
|
3967
|
-
return
|
|
4001
|
+
return V;
|
|
3968
4002
|
}
|
|
3969
4003
|
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)), he && Object.defineProperty(A, he, {
|
|
3970
4004
|
value: A,
|
|
@@ -3987,13 +4021,13 @@ var $s = ar.exports;
|
|
|
3987
4021
|
if (typeof d != "function")
|
|
3988
4022
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3989
4023
|
function w() {
|
|
3990
|
-
for (var A = [],
|
|
3991
|
-
A.push(arguments[
|
|
4024
|
+
for (var A = [], C = 0; C < arguments.length; C++)
|
|
4025
|
+
A.push(arguments[C]);
|
|
3992
4026
|
var D = A.pop();
|
|
3993
4027
|
if (typeof D != "function")
|
|
3994
4028
|
throw new TypeError("The last argument must be of type Function");
|
|
3995
|
-
var
|
|
3996
|
-
return D.apply(
|
|
4029
|
+
var V = this, B = function() {
|
|
4030
|
+
return D.apply(V, arguments);
|
|
3997
4031
|
};
|
|
3998
4032
|
d.apply(this, A).then(
|
|
3999
4033
|
function(L) {
|
|
@@ -4011,8 +4045,8 @@ var $s = ar.exports;
|
|
|
4011
4045
|
}
|
|
4012
4046
|
t.callbackify = H;
|
|
4013
4047
|
})(Bt);
|
|
4014
|
-
const { inherits:
|
|
4015
|
-
function
|
|
4048
|
+
const { inherits: $s, format: Qt } = Bt;
|
|
4049
|
+
function Ne(t, e, r = Error) {
|
|
4016
4050
|
if (!t)
|
|
4017
4051
|
throw new Error("Avvio error code must not be empty");
|
|
4018
4052
|
if (!e)
|
|
@@ -4024,35 +4058,35 @@ function Re(t, e, r = Error) {
|
|
|
4024
4058
|
}
|
|
4025
4059
|
return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
|
|
4026
4060
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
4027
|
-
},
|
|
4061
|
+
}, $s(o, r), o;
|
|
4028
4062
|
}
|
|
4029
4063
|
var Ln = {
|
|
4030
|
-
createError:
|
|
4031
|
-
AVV_ERR_EXPOSE_ALREADY_DEFINED:
|
|
4064
|
+
createError: Ne,
|
|
4065
|
+
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ne(
|
|
4032
4066
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
4033
4067
|
"'%s' () is already defined, specify an expose option"
|
|
4034
4068
|
),
|
|
4035
|
-
AVV_ERR_CALLBACK_NOT_FN:
|
|
4069
|
+
AVV_ERR_CALLBACK_NOT_FN: Ne(
|
|
4036
4070
|
"AVV_ERR_CALLBACK_NOT_FN",
|
|
4037
4071
|
"Callback for '%s' hook is not a function. Received: '%s'"
|
|
4038
4072
|
),
|
|
4039
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4073
|
+
AVV_ERR_PLUGIN_NOT_VALID: Ne(
|
|
4040
4074
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4041
4075
|
"Plugin must be a function or a promise. Received: '%s'"
|
|
4042
4076
|
),
|
|
4043
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4077
|
+
AVV_ERR_ROOT_PLG_BOOTED: Ne(
|
|
4044
4078
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4045
4079
|
"Root plugin has already booted"
|
|
4046
4080
|
),
|
|
4047
|
-
AVV_ERR_PARENT_PLG_LOADED:
|
|
4081
|
+
AVV_ERR_PARENT_PLG_LOADED: Ne(
|
|
4048
4082
|
"AVV_ERR_PARENT_PLG_LOADED",
|
|
4049
4083
|
"Impossible to load '%s' plugin because the parent '%s' was already loaded"
|
|
4050
4084
|
),
|
|
4051
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4085
|
+
AVV_ERR_READY_TIMEOUT: Ne(
|
|
4052
4086
|
"AVV_ERR_READY_TIMEOUT",
|
|
4053
4087
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
4054
4088
|
)
|
|
4055
|
-
},
|
|
4089
|
+
}, js = function t(e, r, o) {
|
|
4056
4090
|
r === void 0 && (r = ""), o || (o = {});
|
|
4057
4091
|
var s = function(p) {
|
|
4058
4092
|
var S = {
|
|
@@ -4074,7 +4108,7 @@ var Ln = {
|
|
|
4074
4108
|
return r + s(g ? "└" : "├") + s("─") + s(b ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
4075
4109
|
}).join("");
|
|
4076
4110
|
};
|
|
4077
|
-
const
|
|
4111
|
+
const Ds = js, 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");
|
|
4078
4112
|
let Vs = class {
|
|
4079
4113
|
constructor() {
|
|
4080
4114
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
@@ -4082,7 +4116,7 @@ let Vs = class {
|
|
|
4082
4116
|
[Gt](e) {
|
|
4083
4117
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
4084
4118
|
}
|
|
4085
|
-
[
|
|
4119
|
+
[Dr](e) {
|
|
4086
4120
|
this.tableId.delete(e.id);
|
|
4087
4121
|
const r = this.tableLabel.get(e.label);
|
|
4088
4122
|
if (r.id) {
|
|
@@ -4097,10 +4131,10 @@ let Vs = class {
|
|
|
4097
4131
|
const r = this.tableLabel.get(e);
|
|
4098
4132
|
return r.id ? r : r[r.length - 1];
|
|
4099
4133
|
}
|
|
4100
|
-
[
|
|
4134
|
+
[Mr](e) {
|
|
4101
4135
|
return this.tableId.get(e);
|
|
4102
4136
|
}
|
|
4103
|
-
[
|
|
4137
|
+
[qr](e, r, o) {
|
|
4104
4138
|
if (e === null)
|
|
4105
4139
|
return this.root = {
|
|
4106
4140
|
id: "root",
|
|
@@ -4118,25 +4152,25 @@ let Vs = class {
|
|
|
4118
4152
|
return u.nodes.push(f), this[Gt](f), l;
|
|
4119
4153
|
}
|
|
4120
4154
|
start(e, r, o = Date.now()) {
|
|
4121
|
-
return this[
|
|
4155
|
+
return this[qr](e, r, o);
|
|
4122
4156
|
}
|
|
4123
4157
|
stop(e, r = Date.now()) {
|
|
4124
|
-
const o = this[
|
|
4125
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4158
|
+
const o = this[Mr](e);
|
|
4159
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
|
|
4126
4160
|
}
|
|
4127
4161
|
toJSON() {
|
|
4128
4162
|
return Object.assign({}, this.root);
|
|
4129
4163
|
}
|
|
4130
4164
|
prittyPrint() {
|
|
4131
4165
|
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());
|
|
4132
|
-
return
|
|
4166
|
+
return Ds(r);
|
|
4133
4167
|
}
|
|
4134
4168
|
};
|
|
4135
|
-
var
|
|
4136
|
-
function
|
|
4137
|
-
if (
|
|
4169
|
+
var Ms = Vs, Er = { exports: {} }, ur = { exports: {} }, zt, Qr;
|
|
4170
|
+
function qs() {
|
|
4171
|
+
if (Qr)
|
|
4138
4172
|
return zt;
|
|
4139
|
-
|
|
4173
|
+
Qr = 1;
|
|
4140
4174
|
var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
|
|
4141
4175
|
zt = function(g, b) {
|
|
4142
4176
|
b = b || {};
|
|
@@ -4155,8 +4189,8 @@ function Qs() {
|
|
|
4155
4189
|
g
|
|
4156
4190
|
);
|
|
4157
4191
|
if (b) {
|
|
4158
|
-
var E = parseFloat(b[1]),
|
|
4159
|
-
switch (
|
|
4192
|
+
var E = parseFloat(b[1]), T = (b[2] || "ms").toLowerCase();
|
|
4193
|
+
switch (T) {
|
|
4160
4194
|
case "years":
|
|
4161
4195
|
case "year":
|
|
4162
4196
|
case "yrs":
|
|
@@ -4209,14 +4243,14 @@ function Qs() {
|
|
|
4209
4243
|
var b = Math.abs(g);
|
|
4210
4244
|
return b >= o ? S(g, b, o, "day") : b >= r ? S(g, b, r, "hour") : b >= e ? S(g, b, e, "minute") : b >= t ? S(g, b, t, "second") : g + " ms";
|
|
4211
4245
|
}
|
|
4212
|
-
function S(g, b, E,
|
|
4246
|
+
function S(g, b, E, T) {
|
|
4213
4247
|
var N = b >= E * 1.5;
|
|
4214
|
-
return Math.round(g / E) + " " +
|
|
4248
|
+
return Math.round(g / E) + " " + T + (N ? "s" : "");
|
|
4215
4249
|
}
|
|
4216
4250
|
return zt;
|
|
4217
4251
|
}
|
|
4218
|
-
function
|
|
4219
|
-
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize =
|
|
4252
|
+
function Qs(t) {
|
|
4253
|
+
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = qs(), r.destroy = S, Object.keys(t).forEach((g) => {
|
|
4220
4254
|
r[g] = t[g];
|
|
4221
4255
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4222
4256
|
function e(g) {
|
|
@@ -4227,12 +4261,12 @@ function Gs(t) {
|
|
|
4227
4261
|
}
|
|
4228
4262
|
r.selectColor = e;
|
|
4229
4263
|
function r(g) {
|
|
4230
|
-
let b, E = null,
|
|
4264
|
+
let b, E = null, T, N;
|
|
4231
4265
|
function P(...K) {
|
|
4232
4266
|
if (!P.enabled)
|
|
4233
4267
|
return;
|
|
4234
|
-
const I = P,
|
|
4235
|
-
I.diff = j, I.prev = b, I.curr =
|
|
4268
|
+
const I = P, _ = Number(/* @__PURE__ */ new Date()), j = _ - (b || _);
|
|
4269
|
+
I.diff = j, I.prev = b, I.curr = _, b = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
|
|
4236
4270
|
let U = 0;
|
|
4237
4271
|
K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
|
|
4238
4272
|
if (x === "%%")
|
|
@@ -4249,7 +4283,7 @@ function Gs(t) {
|
|
|
4249
4283
|
return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
|
|
4250
4284
|
enumerable: !0,
|
|
4251
4285
|
configurable: !1,
|
|
4252
|
-
get: () => E !== null ? E : (
|
|
4286
|
+
get: () => E !== null ? E : (T !== r.namespaces && (T = r.namespaces, N = r.enabled(g)), N),
|
|
4253
4287
|
set: (K) => {
|
|
4254
4288
|
E = K;
|
|
4255
4289
|
}
|
|
@@ -4262,8 +4296,8 @@ function Gs(t) {
|
|
|
4262
4296
|
function s(g) {
|
|
4263
4297
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4264
4298
|
let b;
|
|
4265
|
-
const E = (typeof g == "string" ? g : "").split(/[\s,]+/),
|
|
4266
|
-
for (b = 0; b <
|
|
4299
|
+
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), T = E.length;
|
|
4300
|
+
for (b = 0; b < T; b++)
|
|
4267
4301
|
E[b] && (g = E[b].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4268
4302
|
}
|
|
4269
4303
|
function u() {
|
|
@@ -4296,7 +4330,7 @@ function Gs(t) {
|
|
|
4296
4330
|
}
|
|
4297
4331
|
return r.enable(r.load()), r;
|
|
4298
4332
|
}
|
|
4299
|
-
var
|
|
4333
|
+
var Gs = Qs;
|
|
4300
4334
|
(function(t, e) {
|
|
4301
4335
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4302
4336
|
let p = !1;
|
|
@@ -4420,7 +4454,7 @@ var zs = Gs;
|
|
|
4420
4454
|
} catch {
|
|
4421
4455
|
}
|
|
4422
4456
|
}
|
|
4423
|
-
t.exports =
|
|
4457
|
+
t.exports = Gs(e);
|
|
4424
4458
|
const { formatters: f } = t.exports;
|
|
4425
4459
|
f.j = function(p) {
|
|
4426
4460
|
try {
|
|
@@ -4431,22 +4465,22 @@ var zs = Gs;
|
|
|
4431
4465
|
};
|
|
4432
4466
|
})(ur, ur.exports);
|
|
4433
4467
|
var Un = ur.exports;
|
|
4434
|
-
const
|
|
4435
|
-
function
|
|
4468
|
+
const zs = cn, Ks = bn.EventEmitter, Hs = Bt.inherits, Z = Un("avvio"), { AVV_ERR_READY_TIMEOUT: Ws } = Ln, Kt = Symbol.for("plugin-meta");
|
|
4469
|
+
function Js(t, e) {
|
|
4436
4470
|
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(`
|
|
4437
4471
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
4438
4472
|
}
|
|
4439
|
-
function
|
|
4473
|
+
function Ys() {
|
|
4440
4474
|
const t = {};
|
|
4441
4475
|
return t.promise = new Promise((e, r) => {
|
|
4442
4476
|
t.resolve = e, t.reject = r;
|
|
4443
4477
|
}), t;
|
|
4444
4478
|
}
|
|
4445
|
-
function
|
|
4446
|
-
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 =
|
|
4479
|
+
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 = Js(e, r), this.isAfter = o, this.q = zs(t, Xs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4447
4481
|
}
|
|
4448
|
-
|
|
4449
|
-
|
|
4482
|
+
Hs(tt, Ks);
|
|
4483
|
+
tt.prototype.exec = function(t, e) {
|
|
4450
4484
|
const r = this.func;
|
|
4451
4485
|
let o = !1;
|
|
4452
4486
|
const s = this.name;
|
|
@@ -4473,7 +4507,7 @@ et.prototype.exec = function(t, e) {
|
|
|
4473
4507
|
};
|
|
4474
4508
|
this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4475
4509
|
Z("timed out", s), u = null;
|
|
4476
|
-
const p = new
|
|
4510
|
+
const p = new Ws(s);
|
|
4477
4511
|
p.fn = r, l(p);
|
|
4478
4512
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4479
4513
|
const f = r(this.server, this.opts, l);
|
|
@@ -4482,7 +4516,7 @@ et.prototype.exec = function(t, e) {
|
|
|
4482
4516
|
(p) => O.process.nextTick(l, p)
|
|
4483
4517
|
));
|
|
4484
4518
|
};
|
|
4485
|
-
|
|
4519
|
+
tt.prototype.loadedSoFar = function() {
|
|
4486
4520
|
if (this.loaded)
|
|
4487
4521
|
return Promise.resolve();
|
|
4488
4522
|
const t = () => {
|
|
@@ -4491,12 +4525,12 @@ et.prototype.loadedSoFar = function() {
|
|
|
4491
4525
|
}), this.q.resume();
|
|
4492
4526
|
};
|
|
4493
4527
|
let e;
|
|
4494
|
-
return this._promise ? e = Promise.resolve() : (this._promise =
|
|
4528
|
+
return this._promise ? e = Promise.resolve() : (this._promise = Ys(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4495
4529
|
};
|
|
4496
|
-
|
|
4530
|
+
tt.prototype.enqueue = function(t, e) {
|
|
4497
4531
|
Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
4498
4532
|
};
|
|
4499
|
-
|
|
4533
|
+
tt.prototype.finish = function(t, e) {
|
|
4500
4534
|
Z("finish", this.name, t);
|
|
4501
4535
|
const r = () => {
|
|
4502
4536
|
this.loaded || (Z("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
|
|
@@ -4516,19 +4550,19 @@ et.prototype.finish = function(t, e) {
|
|
|
4516
4550
|
r();
|
|
4517
4551
|
else
|
|
4518
4552
|
Z("delayed", this.name), this.q.drain = () => {
|
|
4519
|
-
Z("drain", this.name), this.q.drain =
|
|
4553
|
+
Z("drain", this.name), this.q.drain = Zs, queueMicrotask(o);
|
|
4520
4554
|
};
|
|
4521
4555
|
};
|
|
4522
4556
|
queueMicrotask(o), this.q.resume();
|
|
4523
4557
|
};
|
|
4524
|
-
function
|
|
4558
|
+
function Xs(t, e) {
|
|
4525
4559
|
const r = this;
|
|
4526
|
-
O.process.nextTick(
|
|
4560
|
+
O.process.nextTick(Ir.bind(r), t, e);
|
|
4527
4561
|
}
|
|
4528
|
-
function
|
|
4562
|
+
function Ir(t, e) {
|
|
4529
4563
|
if (typeof t.func.then == "function") {
|
|
4530
4564
|
t.func.then((o) => {
|
|
4531
|
-
typeof o.default == "function" && (o = o.default), t.func = o,
|
|
4565
|
+
typeof o.default == "function" && (o = o.default), t.func = o, Ir.call(this, t, e);
|
|
4532
4566
|
}, e);
|
|
4533
4567
|
return;
|
|
4534
4568
|
}
|
|
@@ -4539,19 +4573,19 @@ function Fr(t, e) {
|
|
|
4539
4573
|
});
|
|
4540
4574
|
});
|
|
4541
4575
|
}
|
|
4542
|
-
function
|
|
4576
|
+
function Zs() {
|
|
4543
4577
|
}
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
var
|
|
4547
|
-
const
|
|
4578
|
+
Er.exports = tt;
|
|
4579
|
+
Er.exports.loadPlugin = Ir;
|
|
4580
|
+
var ea = Er.exports;
|
|
4581
|
+
const Gr = cn, ta = bn.EventEmitter, ra = Bt.inherits, {
|
|
4548
4582
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
|
|
4549
4583
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
4550
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4551
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4552
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4553
|
-
} = Ln,
|
|
4554
|
-
function
|
|
4584
|
+
AVV_ERR_PLUGIN_NOT_VALID: na,
|
|
4585
|
+
AVV_ERR_ROOT_PLG_BOOTED: ia,
|
|
4586
|
+
AVV_ERR_READY_TIMEOUT: oa
|
|
4587
|
+
} = Ln, sa = Ms, cr = ea, Ze = Un("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
|
|
4588
|
+
function aa(t, e, r) {
|
|
4555
4589
|
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
|
|
4556
4590
|
if (t[s])
|
|
4557
4591
|
throw new Ht(s);
|
|
@@ -4570,7 +4604,7 @@ function ua(t, e, r) {
|
|
|
4570
4604
|
}, t[f] = function(S) {
|
|
4571
4605
|
if (typeof S != "function")
|
|
4572
4606
|
throw new ct(f, typeof S);
|
|
4573
|
-
return r.onClose(
|
|
4607
|
+
return r.onClose(ha(S, this)), this;
|
|
4574
4608
|
}, t[p] = function(S) {
|
|
4575
4609
|
if (S && typeof S != "function")
|
|
4576
4610
|
throw new ct(p, typeof S);
|
|
@@ -4580,19 +4614,19 @@ function ua(t, e, r) {
|
|
|
4580
4614
|
function ee(t, e, r) {
|
|
4581
4615
|
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
|
|
4582
4616
|
const o = new ee(t, e, r);
|
|
4583
|
-
return t &&
|
|
4617
|
+
return t && aa(t, e, o), o;
|
|
4584
4618
|
}
|
|
4585
|
-
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
|
|
4586
|
-
this.emit("start"), this._readyQ.drain =
|
|
4587
|
-
}, this._closeQ =
|
|
4588
|
-
this.emit("close"), this._closeQ.drain =
|
|
4589
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
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 sa(), this._readyQ = Gr(this, jn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4620
|
+
this.emit("start"), this._readyQ.drain = zr;
|
|
4621
|
+
}, this._closeQ = Gr(this, la, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4622
|
+
this.emit("close"), this._closeQ.drain = zr;
|
|
4623
|
+
}, this._doStart = null, this._root = new cr(this, ua.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4590
4624
|
const l = this.pluginTree.start(null, s, u);
|
|
4591
4625
|
this._root.once("loaded", (f, p, S) => {
|
|
4592
4626
|
this.pluginTree.stop(l, S);
|
|
4593
4627
|
});
|
|
4594
4628
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4595
|
-
|
|
4629
|
+
Ze("root plugin ready");
|
|
4596
4630
|
try {
|
|
4597
4631
|
this.emit("preReady"), this._root = null;
|
|
4598
4632
|
} catch (s) {
|
|
@@ -4606,19 +4640,19 @@ function ee(t, e, r) {
|
|
|
4606
4640
|
this._readyQ.resume();
|
|
4607
4641
|
});
|
|
4608
4642
|
}
|
|
4609
|
-
function
|
|
4643
|
+
function ua(t, e, r) {
|
|
4610
4644
|
this._doStart = r, e.autostart && this.start();
|
|
4611
4645
|
}
|
|
4612
|
-
|
|
4646
|
+
ra(ee, ta);
|
|
4613
4647
|
ee.prototype.start = function() {
|
|
4614
4648
|
return this.started = !0, O.process.nextTick(this._doStart), this;
|
|
4615
4649
|
};
|
|
4616
4650
|
ee.prototype.override = function(t, e, r) {
|
|
4617
4651
|
return t;
|
|
4618
4652
|
};
|
|
4619
|
-
function
|
|
4653
|
+
function ca(t) {
|
|
4620
4654
|
if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
|
|
4621
|
-
throw new
|
|
4655
|
+
throw new na(typeof t);
|
|
4622
4656
|
return t;
|
|
4623
4657
|
}
|
|
4624
4658
|
ee.prototype[Ft] = !0;
|
|
@@ -4631,8 +4665,8 @@ ee.prototype._loadRegistered = function() {
|
|
|
4631
4665
|
};
|
|
4632
4666
|
Object.defineProperty(ee.prototype, "then", { get: $n });
|
|
4633
4667
|
ee.prototype._addPlugin = function(t, e, r) {
|
|
4634
|
-
if (t =
|
|
4635
|
-
throw new
|
|
4668
|
+
if (t = ca(t), e = e || {}, this.booted)
|
|
4669
|
+
throw new ia();
|
|
4636
4670
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4637
4671
|
if (s.once("start", (u, l, f) => {
|
|
4638
4672
|
const p = this.pluginTree.start(o.name, l, f);
|
|
@@ -4701,18 +4735,18 @@ ee.prototype.prettyPrint = function() {
|
|
|
4701
4735
|
ee.prototype.toJSON = function() {
|
|
4702
4736
|
return this.pluginTree.toJSON();
|
|
4703
4737
|
};
|
|
4704
|
-
function
|
|
4738
|
+
function zr() {
|
|
4705
4739
|
}
|
|
4706
4740
|
function $n() {
|
|
4707
4741
|
if (this.booted) {
|
|
4708
|
-
|
|
4742
|
+
Ze("thenify returning null because we are already booted");
|
|
4709
4743
|
return;
|
|
4710
4744
|
}
|
|
4711
4745
|
if (this[Wt]) {
|
|
4712
4746
|
this[Wt] = !1;
|
|
4713
4747
|
return;
|
|
4714
4748
|
}
|
|
4715
|
-
return
|
|
4749
|
+
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
|
|
4716
4750
|
}
|
|
4717
4751
|
function jn(t, e) {
|
|
4718
4752
|
const r = this._server, o = this._error;
|
|
@@ -4727,14 +4761,14 @@ function jn(t, e) {
|
|
|
4727
4761
|
};
|
|
4728
4762
|
t.length === 2 ? t(o, u) : t(o, r, u);
|
|
4729
4763
|
} else
|
|
4730
|
-
|
|
4764
|
+
fa.call(this, t, o, r, e);
|
|
4731
4765
|
}
|
|
4732
|
-
function
|
|
4766
|
+
function fa(t, e, r, o) {
|
|
4733
4767
|
const s = t.name;
|
|
4734
|
-
|
|
4768
|
+
Ze("setting up ready timeout", s, this._timeout);
|
|
4735
4769
|
let u = setTimeout(() => {
|
|
4736
|
-
|
|
4737
|
-
const f = new
|
|
4770
|
+
Ze("timed out", s), u = null;
|
|
4771
|
+
const f = new oa(s);
|
|
4738
4772
|
f.fn = t, this._error = f, o(f);
|
|
4739
4773
|
}, this._timeout);
|
|
4740
4774
|
t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
|
|
@@ -4742,18 +4776,18 @@ function la(t, e, r, o) {
|
|
|
4742
4776
|
u && (clearTimeout(u), this._error = f, o(this._error));
|
|
4743
4777
|
}
|
|
4744
4778
|
}
|
|
4745
|
-
function
|
|
4779
|
+
function la(t, e) {
|
|
4746
4780
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4747
4781
|
if (t.length === 0 || t.length === 1) {
|
|
4748
4782
|
let s;
|
|
4749
|
-
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (
|
|
4783
|
+
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
|
|
4750
4784
|
() => O.process.nextTick(e),
|
|
4751
4785
|
(u) => O.process.nextTick(e, u)
|
|
4752
4786
|
)) : O.process.nextTick(e);
|
|
4753
4787
|
} else
|
|
4754
4788
|
t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
|
|
4755
4789
|
}
|
|
4756
|
-
function
|
|
4790
|
+
function ha(t, e) {
|
|
4757
4791
|
return r.bind(e);
|
|
4758
4792
|
function r(o, s) {
|
|
4759
4793
|
let u;
|
|
@@ -4775,19 +4809,19 @@ function Jt(t, e) {
|
|
|
4775
4809
|
}, s) : O.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : O.process.nextTick(s);
|
|
4776
4810
|
}
|
|
4777
4811
|
}
|
|
4778
|
-
|
|
4779
|
-
|
|
4812
|
+
yr.exports = ee;
|
|
4813
|
+
yr.exports.express = function(t) {
|
|
4780
4814
|
return ee(t, {
|
|
4781
4815
|
expose: {
|
|
4782
4816
|
use: "load"
|
|
4783
4817
|
}
|
|
4784
4818
|
});
|
|
4785
4819
|
};
|
|
4786
|
-
var
|
|
4787
|
-
const
|
|
4788
|
-
function
|
|
4789
|
-
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s =
|
|
4790
|
-
return s.use(
|
|
4820
|
+
var pa = yr.exports;
|
|
4821
|
+
const da = /* @__PURE__ */ Jn(pa);
|
|
4822
|
+
function Pa(t, e = !0, r = !0) {
|
|
4823
|
+
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = da(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4824
|
+
return s.use(xi), s.use(Ai, { sdkKey: t, host: o }), s.use(Oi), s.use(Ci), s.use(so), s.use(Wi), r && s.after(async (u, l, f) => {
|
|
4791
4825
|
if (u)
|
|
4792
4826
|
throw u;
|
|
4793
4827
|
await l.sdk.initializeApp(), f();
|
|
@@ -4796,5 +4830,5 @@ function Ra(t, e = !0, r = !0) {
|
|
|
4796
4830
|
}), s;
|
|
4797
4831
|
}
|
|
4798
4832
|
export {
|
|
4799
|
-
|
|
4833
|
+
Pa as StreamLayer
|
|
4800
4834
|
};
|