@streamlayer/sdk-web 0.28.13 → 0.28.15
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 +13 -13
- package/lib/es/index.js +1427 -1323
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { QuestionType as st, SilenceSetting as
|
|
1
|
+
import { QuestionType as st, SilenceSetting as Hr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
2
2
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
3
|
-
import { SdkOverlayType as
|
|
4
|
-
import { computed as fr, map as
|
|
3
|
+
import { SdkOverlayType as ue } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
|
+
import { computed as fr, map as Vn, atom as _t } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
|
-
import { Code as
|
|
8
|
-
import { createGrpcWebTransport as
|
|
9
|
-
import { nanoquery as
|
|
10
|
-
import { Events as
|
|
11
|
-
import { Client as
|
|
12
|
-
import { Users as
|
|
13
|
-
import { pino as
|
|
7
|
+
import { Code as qn, createPromiseClient as Qn, createCallbackClient as Gn } from "@connectrpc/connect";
|
|
8
|
+
import { createGrpcWebTransport as zn } from "@connectrpc/connect-web";
|
|
9
|
+
import { nanoquery as Kn } from "@nanostores/query";
|
|
10
|
+
import { Events as Hn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
|
+
import { Client as Ct } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
|
+
import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
|
+
import { pino as Wn } from "pino";
|
|
14
14
|
import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
|
-
import { Leaderboard as
|
|
15
|
+
import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
16
|
import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
17
|
-
var
|
|
18
|
-
function
|
|
17
|
+
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
+
function Jn(t) {
|
|
19
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var we = [],
|
|
26
|
-
for (var Me = 0,
|
|
27
|
-
we[Me] = Nt[Me],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function
|
|
21
|
+
var O = {}, Xr = {}, Tt = {};
|
|
22
|
+
Tt.byteLength = Zn;
|
|
23
|
+
Tt.toByteArray = ti;
|
|
24
|
+
Tt.fromByteArray = ii;
|
|
25
|
+
var we = [], se = [], Yn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
|
+
for (var Me = 0, Xn = Nt.length; Me < Xn; ++Me)
|
|
27
|
+
we[Me] = Nt[Me], se[Nt.charCodeAt(Me)] = Me;
|
|
28
|
+
se["-".charCodeAt(0)] = 62;
|
|
29
|
+
se["_".charCodeAt(0)] = 63;
|
|
30
|
+
function Zr(t) {
|
|
31
31
|
var e = t.length;
|
|
32
32
|
if (e % 4 > 0)
|
|
33
33
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -36,30 +36,30 @@ function Yr(t) {
|
|
|
36
36
|
var o = r === e ? 0 : 4 - r % 4;
|
|
37
37
|
return [r, o];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
var e =
|
|
39
|
+
function Zn(t) {
|
|
40
|
+
var e = Zr(t), r = e[0], o = e[1];
|
|
41
41
|
return (r + o) * 3 / 4 - o;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ei(t, e, r) {
|
|
44
44
|
return (e + r) * 3 / 4 - r;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var e, r =
|
|
48
|
-
for (
|
|
49
|
-
e =
|
|
50
|
-
return s === 2 && (e =
|
|
46
|
+
function ti(t) {
|
|
47
|
+
var e, r = Zr(t), o = r[0], s = r[1], u = new Yn(ei(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, p;
|
|
48
|
+
for (p = 0; p < f; p += 4)
|
|
49
|
+
e = se[t.charCodeAt(p)] << 18 | se[t.charCodeAt(p + 1)] << 12 | se[t.charCodeAt(p + 2)] << 6 | se[t.charCodeAt(p + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
|
|
50
|
+
return s === 2 && (e = se[t.charCodeAt(p)] << 2 | se[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(p)] << 10 | se[t.charCodeAt(p + 1)] << 4 | se[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ri(t) {
|
|
53
53
|
return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ni(t, e, r) {
|
|
56
56
|
for (var o, s = [], u = e; u < r; u += 3)
|
|
57
|
-
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(
|
|
57
|
+
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ri(o));
|
|
58
58
|
return s.join("");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ii(t) {
|
|
61
61
|
for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
|
|
62
|
-
s.push(
|
|
62
|
+
s.push(ni(t, l, l + u > f ? f : l + u));
|
|
63
63
|
return o === 1 ? (e = t[r - 1], s.push(
|
|
64
64
|
we[e >> 2] + we[e << 4 & 63] + "=="
|
|
65
65
|
)) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
|
|
@@ -69,27 +69,27 @@ function ri(t) {
|
|
|
69
69
|
var lr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
71
|
lr.read = function(t, e, r, o, s) {
|
|
72
|
-
var u, l, f = s * 8 - o - 1,
|
|
73
|
-
for (
|
|
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[e + b];
|
|
73
|
+
for (b += E, u = _ & (1 << -g) - 1, _ >>= -g, g += f; g > 0; u = u * 256 + t[e + b], b += E, g -= 8)
|
|
74
74
|
;
|
|
75
|
-
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e +
|
|
75
|
+
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + b], b += E, g -= 8)
|
|
76
76
|
;
|
|
77
77
|
if (u === 0)
|
|
78
|
-
u = 1 -
|
|
78
|
+
u = 1 - S;
|
|
79
79
|
else {
|
|
80
|
-
if (u ===
|
|
81
|
-
return l ? NaN : (
|
|
82
|
-
l = l + Math.pow(2, o), u = u -
|
|
80
|
+
if (u === p)
|
|
81
|
+
return l ? NaN : (_ ? -1 : 1) * (1 / 0);
|
|
82
|
+
l = l + Math.pow(2, o), u = u - S;
|
|
83
83
|
}
|
|
84
|
-
return (
|
|
84
|
+
return (_ ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
86
|
lr.write = function(t, e, r, o, s, u) {
|
|
87
|
-
var l, f,
|
|
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 * (
|
|
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, _ = o ? 0 : u - 1, N = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
88
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + _] = f & 255, _ += N, f /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
|
-
for (l = l << s | f,
|
|
90
|
+
for (l = l << s | f, S += s; S > 0; t[r + _] = l & 255, _ += N, l /= 256, S -= 8)
|
|
91
91
|
;
|
|
92
|
-
t[r +
|
|
92
|
+
t[r + _ - 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 = Tt, r = lr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
102
|
+
t.Buffer = f, t.SlowBuffer = C, 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."
|
|
@@ -139,22 +139,22 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
139
139
|
throw new TypeError(
|
|
140
140
|
'The "string" argument must be of type string. Received type number'
|
|
141
141
|
);
|
|
142
|
-
return
|
|
142
|
+
return b(a);
|
|
143
143
|
}
|
|
144
|
-
return
|
|
144
|
+
return p(a, n, i);
|
|
145
145
|
}
|
|
146
146
|
f.poolSize = 8192;
|
|
147
|
-
function
|
|
147
|
+
function p(a, n, i) {
|
|
148
148
|
if (typeof a == "string")
|
|
149
149
|
return E(a, n);
|
|
150
150
|
if (ArrayBuffer.isView(a))
|
|
151
|
-
return
|
|
151
|
+
return N(a);
|
|
152
152
|
if (a == null)
|
|
153
153
|
throw new TypeError(
|
|
154
154
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
|
|
155
155
|
);
|
|
156
156
|
if (ge(a, ArrayBuffer) || a && ge(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ge(a, SharedArrayBuffer) || a && ge(a.buffer, SharedArrayBuffer)))
|
|
157
|
-
return
|
|
157
|
+
return P(a, n, i);
|
|
158
158
|
if (typeof a == "number")
|
|
159
159
|
throw new TypeError(
|
|
160
160
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -162,7 +162,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
162
162
|
const c = a.valueOf && a.valueOf();
|
|
163
163
|
if (c != null && c !== a)
|
|
164
164
|
return f.from(c, n, i);
|
|
165
|
-
const h =
|
|
165
|
+
const h = K(a);
|
|
166
166
|
if (h)
|
|
167
167
|
return h;
|
|
168
168
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof a[Symbol.toPrimitive] == "function")
|
|
@@ -172,50 +172,50 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
f.from = function(a, n, i) {
|
|
175
|
-
return
|
|
175
|
+
return p(a, n, i);
|
|
176
176
|
}, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
|
|
177
|
-
function
|
|
177
|
+
function S(a) {
|
|
178
178
|
if (typeof a != "number")
|
|
179
179
|
throw new TypeError('"size" argument must be of type number');
|
|
180
180
|
if (a < 0)
|
|
181
181
|
throw new RangeError('The value "' + a + '" is invalid for option "size"');
|
|
182
182
|
}
|
|
183
183
|
function g(a, n, i) {
|
|
184
|
-
return
|
|
184
|
+
return S(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
|
|
185
185
|
}
|
|
186
186
|
f.alloc = function(a, n, i) {
|
|
187
187
|
return g(a, n, i);
|
|
188
188
|
};
|
|
189
|
-
function
|
|
190
|
-
return
|
|
189
|
+
function b(a) {
|
|
190
|
+
return S(a), l(a < 0 ? 0 : I(a) | 0);
|
|
191
191
|
}
|
|
192
192
|
f.allocUnsafe = function(a) {
|
|
193
|
-
return
|
|
193
|
+
return b(a);
|
|
194
194
|
}, f.allocUnsafeSlow = function(a) {
|
|
195
|
-
return
|
|
195
|
+
return b(a);
|
|
196
196
|
};
|
|
197
197
|
function E(a, n) {
|
|
198
198
|
if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
|
|
199
199
|
throw new TypeError("Unknown encoding: " + n);
|
|
200
|
-
const i =
|
|
200
|
+
const i = j(a, n) | 0;
|
|
201
201
|
let c = l(i);
|
|
202
202
|
const h = c.write(a, n);
|
|
203
203
|
return h !== i && (c = c.slice(0, h)), c;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
const n = a.length < 0 ? 0 :
|
|
205
|
+
function _(a) {
|
|
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;
|
|
209
209
|
return i;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function N(a) {
|
|
212
212
|
if (ge(a, Uint8Array)) {
|
|
213
213
|
const n = new Uint8Array(a);
|
|
214
|
-
return
|
|
214
|
+
return P(n.buffer, n.byteOffset, n.byteLength);
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return _(a);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function P(a, n, i) {
|
|
219
219
|
if (n < 0 || a.byteLength < n)
|
|
220
220
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
221
221
|
if (a.byteLength < n + (i || 0))
|
|
@@ -223,22 +223,22 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
223
223
|
let c;
|
|
224
224
|
return n === void 0 && i === void 0 ? c = new Uint8Array(a) : i === void 0 ? c = new Uint8Array(a, n) : c = new Uint8Array(a, n, i), Object.setPrototypeOf(c, f.prototype), c;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function K(a) {
|
|
227
227
|
if (f.isBuffer(a)) {
|
|
228
|
-
const n =
|
|
228
|
+
const n = I(a.length) | 0, i = l(n);
|
|
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) : _(a);
|
|
233
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
234
|
-
return
|
|
234
|
+
return _(a.data);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
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 C(a) {
|
|
242
242
|
return +a != a && (a = 0), f.alloc(+a);
|
|
243
243
|
}
|
|
244
244
|
f.isBuffer = function(n) {
|
|
@@ -301,7 +301,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
301
301
|
}
|
|
302
302
|
return h;
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function j(a, n) {
|
|
305
305
|
if (f.isBuffer(a))
|
|
306
306
|
return a.length;
|
|
307
307
|
if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
|
|
@@ -338,18 +338,18 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
338
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
f.byteLength =
|
|
342
|
-
function
|
|
341
|
+
f.byteLength = j;
|
|
342
|
+
function U(a, n, i) {
|
|
343
343
|
let c = !1;
|
|
344
344
|
if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, n >>>= 0, i <= n))
|
|
345
345
|
return "";
|
|
346
346
|
for (a || (a = "utf8"); ; )
|
|
347
347
|
switch (a) {
|
|
348
348
|
case "hex":
|
|
349
|
-
return
|
|
349
|
+
return he(this, n, i);
|
|
350
350
|
case "utf8":
|
|
351
351
|
case "utf-8":
|
|
352
|
-
return
|
|
352
|
+
return le(this, n, i);
|
|
353
353
|
case "ascii":
|
|
354
354
|
return rt(this, n, i);
|
|
355
355
|
case "latin1":
|
|
@@ -369,7 +369,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
f.prototype._isBuffer = !0;
|
|
372
|
-
function
|
|
372
|
+
function F(a, n, i) {
|
|
373
373
|
const c = a[n];
|
|
374
374
|
a[n] = a[i], a[i] = c;
|
|
375
375
|
}
|
|
@@ -378,25 +378,25 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
378
378
|
if (n % 2 !== 0)
|
|
379
379
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
380
380
|
for (let i = 0; i < n; i += 2)
|
|
381
|
-
|
|
381
|
+
F(this, i, i + 1);
|
|
382
382
|
return this;
|
|
383
383
|
}, f.prototype.swap32 = function() {
|
|
384
384
|
const n = this.length;
|
|
385
385
|
if (n % 4 !== 0)
|
|
386
386
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
387
387
|
for (let i = 0; i < n; i += 4)
|
|
388
|
-
|
|
388
|
+
F(this, i, i + 3), F(this, i + 1, i + 2);
|
|
389
389
|
return this;
|
|
390
390
|
}, f.prototype.swap64 = function() {
|
|
391
391
|
const n = this.length;
|
|
392
392
|
if (n % 8 !== 0)
|
|
393
393
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
394
394
|
for (let i = 0; i < n; i += 8)
|
|
395
|
-
|
|
395
|
+
F(this, i, i + 7), F(this, i + 1, i + 6), F(this, i + 2, i + 5), F(this, i + 3, i + 4);
|
|
396
396
|
return this;
|
|
397
397
|
}, f.prototype.toString = function() {
|
|
398
398
|
const n = this.length;
|
|
399
|
-
return n === 0 ? "" : arguments.length === 0 ?
|
|
399
|
+
return n === 0 ? "" : arguments.length === 0 ? le(this, 0, n) : U.apply(this, arguments);
|
|
400
400
|
}, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
|
|
401
401
|
if (!f.isBuffer(n))
|
|
402
402
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -420,16 +420,16 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
420
420
|
return 1;
|
|
421
421
|
if (i >>>= 0, c >>>= 0, h >>>= 0, y >>>= 0, this === n)
|
|
422
422
|
return 0;
|
|
423
|
-
let m = y - h,
|
|
424
|
-
const
|
|
425
|
-
for (let
|
|
426
|
-
if (
|
|
427
|
-
m =
|
|
423
|
+
let m = y - h, R = c - i;
|
|
424
|
+
const W = Math.min(m, R), z = this.slice(h, y), J = n.slice(i, c);
|
|
425
|
+
for (let Q = 0; Q < W; ++Q)
|
|
426
|
+
if (z[Q] !== J[Q]) {
|
|
427
|
+
m = z[Q], R = J[Q];
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
|
-
return m <
|
|
430
|
+
return m < R ? -1 : R < m ? 1 : 0;
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function x(a, n, i, c, h) {
|
|
433
433
|
if (a.length === 0)
|
|
434
434
|
return -1;
|
|
435
435
|
if (typeof i == "string" ? (c = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, Rt(i) && (i = h ? 0 : a.length - 1), i < 0 && (i = a.length + i), i >= a.length) {
|
|
@@ -442,51 +442,51 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
442
442
|
else
|
|
443
443
|
return -1;
|
|
444
444
|
if (typeof n == "string" && (n = f.from(n, c)), f.isBuffer(n))
|
|
445
|
-
return n.length === 0 ? -1 :
|
|
445
|
+
return n.length === 0 ? -1 : k(a, n, i, c, h);
|
|
446
446
|
if (typeof n == "number")
|
|
447
|
-
return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) :
|
|
447
|
+
return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : k(a, [n], i, c, h);
|
|
448
448
|
throw new TypeError("val must be string, number or Buffer");
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
let y = 1, m = a.length,
|
|
450
|
+
function k(a, n, i, c, h) {
|
|
451
|
+
let y = 1, m = a.length, R = n.length;
|
|
452
452
|
if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) {
|
|
453
453
|
if (a.length < 2 || n.length < 2)
|
|
454
454
|
return -1;
|
|
455
|
-
y = 2, m /= 2,
|
|
455
|
+
y = 2, m /= 2, R /= 2, i /= 2;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
return y === 1 ?
|
|
457
|
+
function W(J, Q) {
|
|
458
|
+
return y === 1 ? J[Q] : J.readUInt16BE(Q * y);
|
|
459
459
|
}
|
|
460
|
-
let
|
|
460
|
+
let z;
|
|
461
461
|
if (h) {
|
|
462
|
-
let
|
|
463
|
-
for (
|
|
464
|
-
if (
|
|
465
|
-
if (
|
|
466
|
-
return
|
|
462
|
+
let J = -1;
|
|
463
|
+
for (z = i; z < m; z++)
|
|
464
|
+
if (W(a, z) === W(n, J === -1 ? 0 : z - J)) {
|
|
465
|
+
if (J === -1 && (J = z), z - J + 1 === R)
|
|
466
|
+
return J * y;
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
J !== -1 && (z -= z - J), J = -1;
|
|
469
469
|
} else
|
|
470
|
-
for (i +
|
|
471
|
-
let
|
|
472
|
-
for (let
|
|
473
|
-
if (
|
|
474
|
-
|
|
470
|
+
for (i + R > m && (i = m - R), z = i; z >= 0; z--) {
|
|
471
|
+
let J = !0;
|
|
472
|
+
for (let Q = 0; Q < R; Q++)
|
|
473
|
+
if (W(a, z + Q) !== W(n, Q)) {
|
|
474
|
+
J = !1;
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
|
-
if (
|
|
478
|
-
return
|
|
477
|
+
if (J)
|
|
478
|
+
return z;
|
|
479
479
|
}
|
|
480
480
|
return -1;
|
|
481
481
|
}
|
|
482
482
|
f.prototype.includes = function(n, i, c) {
|
|
483
483
|
return this.indexOf(n, i, c) !== -1;
|
|
484
484
|
}, f.prototype.indexOf = function(n, i, c) {
|
|
485
|
-
return
|
|
485
|
+
return x(this, n, i, c, !0);
|
|
486
486
|
}, f.prototype.lastIndexOf = function(n, i, c) {
|
|
487
|
-
return
|
|
487
|
+
return x(this, n, i, c, !1);
|
|
488
488
|
};
|
|
489
|
-
function
|
|
489
|
+
function G(a, n, i, c) {
|
|
490
490
|
i = Number(i) || 0;
|
|
491
491
|
const h = a.length - i;
|
|
492
492
|
c ? (c = Number(c), c > h && (c = h)) : c = h;
|
|
@@ -494,23 +494,23 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
494
494
|
c > y / 2 && (c = y / 2);
|
|
495
495
|
let m;
|
|
496
496
|
for (m = 0; m < c; ++m) {
|
|
497
|
-
const
|
|
498
|
-
if (Rt(
|
|
497
|
+
const R = parseInt(n.substr(m * 2, 2), 16);
|
|
498
|
+
if (Rt(R))
|
|
499
499
|
return m;
|
|
500
|
-
a[i + m] =
|
|
500
|
+
a[i + m] = R;
|
|
501
501
|
}
|
|
502
502
|
return m;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function ie(a, n, i, c) {
|
|
505
505
|
return it(nt(n, a.length - i), a, i, c);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Te(a, n, i, c) {
|
|
508
508
|
return it(Pt(n), a, i, c);
|
|
509
509
|
}
|
|
510
510
|
function Se(a, n, i, c) {
|
|
511
511
|
return it(ht(n), a, i, c);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function fe(a, n, i, c) {
|
|
514
514
|
return it(v(n, a.length - i), a, i, c);
|
|
515
515
|
}
|
|
516
516
|
f.prototype.write = function(n, i, c, h) {
|
|
@@ -532,21 +532,21 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
532
532
|
for (; ; )
|
|
533
533
|
switch (h) {
|
|
534
534
|
case "hex":
|
|
535
|
-
return
|
|
535
|
+
return G(this, n, i, c);
|
|
536
536
|
case "utf8":
|
|
537
537
|
case "utf-8":
|
|
538
|
-
return
|
|
538
|
+
return ie(this, n, i, c);
|
|
539
539
|
case "ascii":
|
|
540
540
|
case "latin1":
|
|
541
541
|
case "binary":
|
|
542
|
-
return
|
|
542
|
+
return Te(this, n, i, c);
|
|
543
543
|
case "base64":
|
|
544
544
|
return Se(this, n, i, c);
|
|
545
545
|
case "ucs2":
|
|
546
546
|
case "ucs-2":
|
|
547
547
|
case "utf16le":
|
|
548
548
|
case "utf-16le":
|
|
549
|
-
return
|
|
549
|
+
return fe(this, n, i, c);
|
|
550
550
|
default:
|
|
551
551
|
if (m)
|
|
552
552
|
throw new TypeError("Unknown encoding: " + h);
|
|
@@ -561,30 +561,30 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
561
561
|
function tt(a, n, i) {
|
|
562
562
|
return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function le(a, n, i) {
|
|
565
565
|
i = Math.min(a.length, i);
|
|
566
566
|
const c = [];
|
|
567
567
|
let h = n;
|
|
568
568
|
for (; h < i; ) {
|
|
569
569
|
const y = a[h];
|
|
570
|
-
let m = null,
|
|
571
|
-
if (h +
|
|
572
|
-
let
|
|
573
|
-
switch (
|
|
570
|
+
let m = null, R = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
|
|
571
|
+
if (h + R <= i) {
|
|
572
|
+
let W, z, J, Q;
|
|
573
|
+
switch (R) {
|
|
574
574
|
case 1:
|
|
575
575
|
y < 128 && (m = y);
|
|
576
576
|
break;
|
|
577
577
|
case 2:
|
|
578
|
-
|
|
578
|
+
W = a[h + 1], (W & 192) === 128 && (Q = (y & 31) << 6 | W & 63, Q > 127 && (m = Q));
|
|
579
579
|
break;
|
|
580
580
|
case 3:
|
|
581
|
-
|
|
581
|
+
W = a[h + 1], z = a[h + 2], (W & 192) === 128 && (z & 192) === 128 && (Q = (y & 15) << 12 | (W & 63) << 6 | z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (m = Q));
|
|
582
582
|
break;
|
|
583
583
|
case 4:
|
|
584
|
-
|
|
584
|
+
W = a[h + 1], z = a[h + 2], J = a[h + 3], (W & 192) === 128 && (z & 192) === 128 && (J & 192) === 128 && (Q = (y & 15) << 18 | (W & 63) << 12 | (z & 63) << 6 | J & 63, Q > 65535 && Q < 1114112 && (m = Q));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
m === null ? (m = 65533,
|
|
587
|
+
m === null ? (m = 65533, R = 1) : m > 65535 && (m -= 65536, c.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), c.push(m), h += R;
|
|
588
588
|
}
|
|
589
589
|
return xe(c);
|
|
590
590
|
}
|
|
@@ -615,12 +615,12 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
615
615
|
c += String.fromCharCode(a[h]);
|
|
616
616
|
return c;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function he(a, n, i) {
|
|
619
619
|
const c = a.length;
|
|
620
620
|
(!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
|
|
621
621
|
let h = "";
|
|
622
622
|
for (let y = n; y < i; ++y)
|
|
623
|
-
h +=
|
|
623
|
+
h += Dn[a[y]];
|
|
624
624
|
return h;
|
|
625
625
|
}
|
|
626
626
|
function ke(a, n, i) {
|
|
@@ -636,95 +636,95 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
636
636
|
const h = this.subarray(n, i);
|
|
637
637
|
return Object.setPrototypeOf(h, f.prototype), h;
|
|
638
638
|
};
|
|
639
|
-
function
|
|
639
|
+
function H(a, n, i) {
|
|
640
640
|
if (a % 1 !== 0 || a < 0)
|
|
641
641
|
throw new RangeError("offset is not uint");
|
|
642
642
|
if (a + n > i)
|
|
643
643
|
throw new RangeError("Trying to access beyond buffer length");
|
|
644
644
|
}
|
|
645
645
|
f.prototype.readUintLE = f.prototype.readUIntLE = function(n, i, c) {
|
|
646
|
-
n = n >>> 0, i = i >>> 0, c ||
|
|
646
|
+
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
647
647
|
let h = this[n], y = 1, m = 0;
|
|
648
648
|
for (; ++m < i && (y *= 256); )
|
|
649
649
|
h += this[n + m] * y;
|
|
650
650
|
return h;
|
|
651
651
|
}, f.prototype.readUintBE = f.prototype.readUIntBE = function(n, i, c) {
|
|
652
|
-
n = n >>> 0, i = i >>> 0, c ||
|
|
652
|
+
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
653
653
|
let h = this[n + --i], y = 1;
|
|
654
654
|
for (; i > 0 && (y *= 256); )
|
|
655
655
|
h += this[n + --i] * y;
|
|
656
656
|
return h;
|
|
657
657
|
}, f.prototype.readUint8 = f.prototype.readUInt8 = function(n, i) {
|
|
658
|
-
return n = n >>> 0, i ||
|
|
658
|
+
return n = n >>> 0, i || H(n, 1, this.length), this[n];
|
|
659
659
|
}, f.prototype.readUint16LE = f.prototype.readUInt16LE = function(n, i) {
|
|
660
|
-
return n = n >>> 0, i ||
|
|
660
|
+
return n = n >>> 0, i || H(n, 2, this.length), this[n] | this[n + 1] << 8;
|
|
661
661
|
}, f.prototype.readUint16BE = f.prototype.readUInt16BE = function(n, i) {
|
|
662
|
-
return n = n >>> 0, i ||
|
|
662
|
+
return n = n >>> 0, i || H(n, 2, this.length), this[n] << 8 | this[n + 1];
|
|
663
663
|
}, f.prototype.readUint32LE = f.prototype.readUInt32LE = function(n, i) {
|
|
664
|
-
return n = n >>> 0, i ||
|
|
664
|
+
return n = n >>> 0, i || H(n, 4, this.length), (this[n] | this[n + 1] << 8 | this[n + 2] << 16) + this[n + 3] * 16777216;
|
|
665
665
|
}, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
|
|
666
|
-
return n = n >>> 0, i ||
|
|
666
|
+
return n = n >>> 0, i || H(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
|
|
667
667
|
}, f.prototype.readBigUInt64LE = Pe(function(n) {
|
|
668
|
-
n = n >>> 0,
|
|
668
|
+
n = n >>> 0, pe(n, "offset");
|
|
669
669
|
const i = this[n], c = this[n + 7];
|
|
670
|
-
(i === void 0 || c === void 0) &&
|
|
670
|
+
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
671
671
|
const h = i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + c * 2 ** 24;
|
|
672
672
|
return BigInt(h) + (BigInt(y) << BigInt(32));
|
|
673
673
|
}), f.prototype.readBigUInt64BE = Pe(function(n) {
|
|
674
|
-
n = n >>> 0,
|
|
674
|
+
n = n >>> 0, pe(n, "offset");
|
|
675
675
|
const i = this[n], c = this[n + 7];
|
|
676
|
-
(i === void 0 || c === void 0) &&
|
|
676
|
+
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
677
677
|
const h = i * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c;
|
|
678
678
|
return (BigInt(h) << BigInt(32)) + BigInt(y);
|
|
679
679
|
}), f.prototype.readIntLE = function(n, i, c) {
|
|
680
|
-
n = n >>> 0, i = i >>> 0, c ||
|
|
680
|
+
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
681
681
|
let h = this[n], y = 1, m = 0;
|
|
682
682
|
for (; ++m < i && (y *= 256); )
|
|
683
683
|
h += this[n + m] * y;
|
|
684
684
|
return y *= 128, h >= y && (h -= Math.pow(2, 8 * i)), h;
|
|
685
685
|
}, f.prototype.readIntBE = function(n, i, c) {
|
|
686
|
-
n = n >>> 0, i = i >>> 0, c ||
|
|
686
|
+
n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
|
|
687
687
|
let h = i, y = 1, m = this[n + --h];
|
|
688
688
|
for (; h > 0 && (y *= 256); )
|
|
689
689
|
m += this[n + --h] * y;
|
|
690
690
|
return y *= 128, m >= y && (m -= Math.pow(2, 8 * i)), m;
|
|
691
691
|
}, f.prototype.readInt8 = function(n, i) {
|
|
692
|
-
return n = n >>> 0, i ||
|
|
692
|
+
return n = n >>> 0, i || H(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
|
|
693
693
|
}, f.prototype.readInt16LE = function(n, i) {
|
|
694
|
-
n = n >>> 0, i ||
|
|
694
|
+
n = n >>> 0, i || H(n, 2, this.length);
|
|
695
695
|
const c = this[n] | this[n + 1] << 8;
|
|
696
696
|
return c & 32768 ? c | 4294901760 : c;
|
|
697
697
|
}, f.prototype.readInt16BE = function(n, i) {
|
|
698
|
-
n = n >>> 0, i ||
|
|
698
|
+
n = n >>> 0, i || H(n, 2, this.length);
|
|
699
699
|
const c = this[n + 1] | this[n] << 8;
|
|
700
700
|
return c & 32768 ? c | 4294901760 : c;
|
|
701
701
|
}, f.prototype.readInt32LE = function(n, i) {
|
|
702
|
-
return n = n >>> 0, i ||
|
|
702
|
+
return n = n >>> 0, i || H(n, 4, this.length), this[n] | this[n + 1] << 8 | this[n + 2] << 16 | this[n + 3] << 24;
|
|
703
703
|
}, f.prototype.readInt32BE = function(n, i) {
|
|
704
|
-
return n = n >>> 0, i ||
|
|
704
|
+
return n = n >>> 0, i || H(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
|
|
705
705
|
}, f.prototype.readBigInt64LE = Pe(function(n) {
|
|
706
|
-
n = n >>> 0,
|
|
706
|
+
n = n >>> 0, pe(n, "offset");
|
|
707
707
|
const i = this[n], c = this[n + 7];
|
|
708
|
-
(i === void 0 || c === void 0) &&
|
|
708
|
+
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
709
709
|
const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
|
|
710
710
|
return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
|
|
711
711
|
}), f.prototype.readBigInt64BE = Pe(function(n) {
|
|
712
|
-
n = n >>> 0,
|
|
712
|
+
n = n >>> 0, pe(n, "offset");
|
|
713
713
|
const i = this[n], c = this[n + 7];
|
|
714
|
-
(i === void 0 || c === void 0) &&
|
|
714
|
+
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
715
715
|
const h = (i << 24) + // Overflow
|
|
716
716
|
this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n];
|
|
717
717
|
return (BigInt(h) << BigInt(32)) + BigInt(this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c);
|
|
718
718
|
}), f.prototype.readFloatLE = function(n, i) {
|
|
719
|
-
return n = n >>> 0, i ||
|
|
719
|
+
return n = n >>> 0, i || H(n, 4, this.length), r.read(this, n, !0, 23, 4);
|
|
720
720
|
}, f.prototype.readFloatBE = function(n, i) {
|
|
721
|
-
return n = n >>> 0, i ||
|
|
721
|
+
return n = n >>> 0, i || H(n, 4, this.length), r.read(this, n, !1, 23, 4);
|
|
722
722
|
}, f.prototype.readDoubleLE = function(n, i) {
|
|
723
|
-
return n = n >>> 0, i ||
|
|
723
|
+
return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !0, 52, 8);
|
|
724
724
|
}, f.prototype.readDoubleBE = function(n, i) {
|
|
725
|
-
return n = n >>> 0, i ||
|
|
725
|
+
return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !1, 52, 8);
|
|
726
726
|
};
|
|
727
|
-
function
|
|
727
|
+
function d(a, n, i, c, h, y) {
|
|
728
728
|
if (!f.isBuffer(a))
|
|
729
729
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
730
730
|
if (n > h || n < y)
|
|
@@ -734,8 +734,8 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
734
734
|
}
|
|
735
735
|
f.prototype.writeUintLE = f.prototype.writeUIntLE = function(n, i, c, h) {
|
|
736
736
|
if (n = +n, i = i >>> 0, c = c >>> 0, !h) {
|
|
737
|
-
const
|
|
738
|
-
|
|
737
|
+
const R = Math.pow(2, 8 * c) - 1;
|
|
738
|
+
d(this, n, i, c, R, 0);
|
|
739
739
|
}
|
|
740
740
|
let y = 1, m = 0;
|
|
741
741
|
for (this[i] = n & 255; ++m < c && (y *= 256); )
|
|
@@ -743,32 +743,32 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
743
743
|
return i + c;
|
|
744
744
|
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(n, i, c, h) {
|
|
745
745
|
if (n = +n, i = i >>> 0, c = c >>> 0, !h) {
|
|
746
|
-
const
|
|
747
|
-
|
|
746
|
+
const R = Math.pow(2, 8 * c) - 1;
|
|
747
|
+
d(this, n, i, c, R, 0);
|
|
748
748
|
}
|
|
749
749
|
let y = c - 1, m = 1;
|
|
750
750
|
for (this[i + y] = n & 255; --y >= 0 && (m *= 256); )
|
|
751
751
|
this[i + y] = n / m & 255;
|
|
752
752
|
return i + c;
|
|
753
753
|
}, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(n, i, c) {
|
|
754
|
-
return n = +n, i = i >>> 0, c ||
|
|
754
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
|
|
755
755
|
}, f.prototype.writeUint16LE = f.prototype.writeUInt16LE = function(n, i, c) {
|
|
756
|
-
return n = +n, i = i >>> 0, c ||
|
|
756
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
|
|
757
757
|
}, f.prototype.writeUint16BE = f.prototype.writeUInt16BE = function(n, i, c) {
|
|
758
|
-
return n = +n, i = i >>> 0, c ||
|
|
758
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
|
|
759
759
|
}, f.prototype.writeUint32LE = f.prototype.writeUInt32LE = function(n, i, c) {
|
|
760
|
-
return n = +n, i = i >>> 0, c ||
|
|
760
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 4294967295, 0), this[i + 3] = n >>> 24, this[i + 2] = n >>> 16, this[i + 1] = n >>> 8, this[i] = n & 255, i + 4;
|
|
761
761
|
}, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(n, i, c) {
|
|
762
|
-
return n = +n, i = i >>> 0, c ||
|
|
762
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 4294967295, 0), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function w(a, n, i, c, h) {
|
|
765
765
|
ye(n, c, h, a, i, 7);
|
|
766
766
|
let y = Number(n & BigInt(4294967295));
|
|
767
767
|
a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
|
|
768
768
|
let m = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
769
769
|
return a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, i;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function A(a, n, i, c, h) {
|
|
772
772
|
ye(n, c, h, a, i, 7);
|
|
773
773
|
let y = Number(n & BigInt(4294967295));
|
|
774
774
|
a[i + 7] = y, y = y >> 8, a[i + 6] = y, y = y >> 8, a[i + 5] = y, y = y >> 8, a[i + 4] = y;
|
|
@@ -776,63 +776,63 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
776
776
|
return a[i + 3] = m, m = m >> 8, a[i + 2] = m, m = m >> 8, a[i + 1] = m, m = m >> 8, a[i] = m, i + 8;
|
|
777
777
|
}
|
|
778
778
|
f.prototype.writeBigUInt64LE = Pe(function(n, i = 0) {
|
|
779
|
-
return
|
|
779
|
+
return w(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
780
780
|
}), f.prototype.writeBigUInt64BE = Pe(function(n, i = 0) {
|
|
781
|
-
return
|
|
781
|
+
return A(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
782
782
|
}), f.prototype.writeIntLE = function(n, i, c, h) {
|
|
783
783
|
if (n = +n, i = i >>> 0, !h) {
|
|
784
|
-
const
|
|
785
|
-
|
|
784
|
+
const W = Math.pow(2, 8 * c - 1);
|
|
785
|
+
d(this, n, i, c, W - 1, -W);
|
|
786
786
|
}
|
|
787
|
-
let y = 0, m = 1,
|
|
787
|
+
let y = 0, m = 1, R = 0;
|
|
788
788
|
for (this[i] = n & 255; ++y < c && (m *= 256); )
|
|
789
|
-
n < 0 &&
|
|
789
|
+
n < 0 && R === 0 && this[i + y - 1] !== 0 && (R = 1), this[i + y] = (n / m >> 0) - R & 255;
|
|
790
790
|
return i + c;
|
|
791
791
|
}, f.prototype.writeIntBE = function(n, i, c, h) {
|
|
792
792
|
if (n = +n, i = i >>> 0, !h) {
|
|
793
|
-
const
|
|
794
|
-
|
|
793
|
+
const W = Math.pow(2, 8 * c - 1);
|
|
794
|
+
d(this, n, i, c, W - 1, -W);
|
|
795
795
|
}
|
|
796
|
-
let y = c - 1, m = 1,
|
|
796
|
+
let y = c - 1, m = 1, R = 0;
|
|
797
797
|
for (this[i + y] = n & 255; --y >= 0 && (m *= 256); )
|
|
798
|
-
n < 0 &&
|
|
798
|
+
n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n / m >> 0) - R & 255;
|
|
799
799
|
return i + c;
|
|
800
800
|
}, f.prototype.writeInt8 = function(n, i, c) {
|
|
801
|
-
return n = +n, i = i >>> 0, c ||
|
|
801
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
|
|
802
802
|
}, f.prototype.writeInt16LE = function(n, i, c) {
|
|
803
|
-
return n = +n, i = i >>> 0, c ||
|
|
803
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
|
|
804
804
|
}, f.prototype.writeInt16BE = function(n, i, c) {
|
|
805
|
-
return n = +n, i = i >>> 0, c ||
|
|
805
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
|
|
806
806
|
}, f.prototype.writeInt32LE = function(n, i, c) {
|
|
807
|
-
return n = +n, i = i >>> 0, c ||
|
|
807
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 2147483647, -2147483648), this[i] = n & 255, this[i + 1] = n >>> 8, this[i + 2] = n >>> 16, this[i + 3] = n >>> 24, i + 4;
|
|
808
808
|
}, f.prototype.writeInt32BE = function(n, i, c) {
|
|
809
|
-
return n = +n, i = i >>> 0, c ||
|
|
809
|
+
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
810
810
|
}, f.prototype.writeBigInt64LE = Pe(function(n, i = 0) {
|
|
811
|
-
return
|
|
811
|
+
return w(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
812
812
|
}), f.prototype.writeBigInt64BE = Pe(function(n, i = 0) {
|
|
813
|
-
return
|
|
813
|
+
return A(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
814
814
|
});
|
|
815
|
-
function
|
|
815
|
+
function T(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
|
-
function
|
|
822
|
-
return n = +n, i = i >>> 0, h ||
|
|
821
|
+
function D(a, n, i, c, h) {
|
|
822
|
+
return n = +n, i = i >>> 0, h || T(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
|
-
return
|
|
825
|
+
return D(this, n, i, !0, c);
|
|
826
826
|
}, f.prototype.writeFloatBE = function(n, i, c) {
|
|
827
|
-
return
|
|
827
|
+
return D(this, n, i, !1, c);
|
|
828
828
|
};
|
|
829
|
-
function
|
|
830
|
-
return n = +n, i = i >>> 0, h ||
|
|
829
|
+
function M(a, n, i, c, h) {
|
|
830
|
+
return n = +n, i = i >>> 0, h || T(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 M(this, n, i, !0, c);
|
|
834
834
|
}, f.prototype.writeDoubleBE = function(n, i, c) {
|
|
835
|
-
return
|
|
835
|
+
return M(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");
|
|
@@ -873,17 +873,17 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
873
873
|
for (y = i; y < c; ++y)
|
|
874
874
|
this[y] = n;
|
|
875
875
|
else {
|
|
876
|
-
const m = f.isBuffer(n) ? n : f.from(n, h),
|
|
877
|
-
if (
|
|
876
|
+
const m = f.isBuffer(n) ? n : f.from(n, h), R = m.length;
|
|
877
|
+
if (R === 0)
|
|
878
878
|
throw new TypeError('The value "' + n + '" is invalid for argument "value"');
|
|
879
879
|
for (y = 0; y < c - i; ++y)
|
|
880
|
-
this[y + i] = m[y %
|
|
880
|
+
this[y + i] = m[y % R];
|
|
881
881
|
}
|
|
882
882
|
return this;
|
|
883
883
|
};
|
|
884
|
-
const
|
|
885
|
-
function
|
|
886
|
-
|
|
884
|
+
const B = {};
|
|
885
|
+
function L(a, n, i) {
|
|
886
|
+
B[a] = class extends i {
|
|
887
887
|
constructor() {
|
|
888
888
|
super(), Object.defineProperty(this, "message", {
|
|
889
889
|
value: n.apply(this, arguments),
|
|
@@ -907,58 +907,58 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
|
-
|
|
910
|
+
L(
|
|
911
911
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
912
912
|
function(a) {
|
|
913
913
|
return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
914
914
|
},
|
|
915
915
|
RangeError
|
|
916
|
-
),
|
|
916
|
+
), L(
|
|
917
917
|
"ERR_INVALID_ARG_TYPE",
|
|
918
918
|
function(a, n) {
|
|
919
919
|
return `The "${a}" argument must be of type number. Received type ${typeof n}`;
|
|
920
920
|
},
|
|
921
921
|
TypeError
|
|
922
|
-
),
|
|
922
|
+
), L(
|
|
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 = V(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = V(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
|
|
927
927
|
},
|
|
928
928
|
RangeError
|
|
929
929
|
);
|
|
930
|
-
function
|
|
930
|
+
function V(a) {
|
|
931
931
|
let n = "", i = a.length;
|
|
932
932
|
const c = a[0] === "-" ? 1 : 0;
|
|
933
933
|
for (; i >= c + 4; i -= 3)
|
|
934
934
|
n = `_${a.slice(i - 3, i)}${n}`;
|
|
935
935
|
return `${a.slice(0, i)}${n}`;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
|
|
937
|
+
function te(a, n, i) {
|
|
938
|
+
pe(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && oe(n, a.length - (i + 1));
|
|
939
939
|
}
|
|
940
940
|
function ye(a, n, i, c, h, y) {
|
|
941
941
|
if (a > i || a < n) {
|
|
942
942
|
const m = typeof n == "bigint" ? "n" : "";
|
|
943
|
-
let
|
|
944
|
-
throw y > 3 ? n === 0 || n === BigInt(0) ?
|
|
943
|
+
let R;
|
|
944
|
+
throw y > 3 ? n === 0 || n === BigInt(0) ? R = `>= 0${m} and < 2${m} ** ${(y + 1) * 8}${m}` : R = `>= -(2${m} ** ${(y + 1) * 8 - 1}${m}) and < 2 ** ${(y + 1) * 8 - 1}${m}` : R = `>= ${n}${m} and <= ${i}${m}`, new B.ERR_OUT_OF_RANGE("value", R, a);
|
|
945
945
|
}
|
|
946
|
-
|
|
946
|
+
te(c, h, y);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function pe(a, n) {
|
|
949
949
|
if (typeof a != "number")
|
|
950
|
-
throw new
|
|
950
|
+
throw new B.ERR_INVALID_ARG_TYPE(n, "number", a);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
throw Math.floor(a) !== a ? (
|
|
952
|
+
function oe(a, n, i) {
|
|
953
|
+
throw Math.floor(a) !== a ? (pe(a, i), new B.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new B.ERR_BUFFER_OUT_OF_BOUNDS() : new B.ERR_OUT_OF_RANGE(
|
|
954
954
|
i || "offset",
|
|
955
955
|
`>= ${i ? 1 : 0} and <= ${n}`,
|
|
956
956
|
a
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const De = /[^+/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(De, ""), a.length < 2)
|
|
962
962
|
return "";
|
|
963
963
|
for (; a.length % 4 !== 0; )
|
|
964
964
|
a = a + "=";
|
|
@@ -1051,7 +1051,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
1051
1051
|
function Rt(a) {
|
|
1052
1052
|
return a !== a;
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Dn = function() {
|
|
1055
1055
|
const a = "0123456789abcdef", n = new Array(256);
|
|
1056
1056
|
for (let i = 0; i < 16; ++i) {
|
|
1057
1057
|
const c = i * 16;
|
|
@@ -1061,13 +1061,13 @@ 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" ? Mn : a;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Mn() {
|
|
1067
1067
|
throw new Error("BigInt not supported");
|
|
1068
1068
|
}
|
|
1069
|
-
})(
|
|
1070
|
-
var
|
|
1069
|
+
})(Xr);
|
|
1070
|
+
var en = { exports: {} }, Y = en.exports = {}, me, be;
|
|
1071
1071
|
function Xt() {
|
|
1072
1072
|
throw new Error("setTimeout has not been defined");
|
|
1073
1073
|
}
|
|
@@ -1086,7 +1086,7 @@ function Zt() {
|
|
|
1086
1086
|
be = Zt;
|
|
1087
1087
|
}
|
|
1088
1088
|
})();
|
|
1089
|
-
function
|
|
1089
|
+
function tn(t) {
|
|
1090
1090
|
if (me === setTimeout)
|
|
1091
1091
|
return setTimeout(t, 0);
|
|
1092
1092
|
if ((me === Xt || !me) && setTimeout)
|
|
@@ -1101,7 +1101,7 @@ function Zr(t) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function oi(t) {
|
|
1105
1105
|
if (be === clearTimeout)
|
|
1106
1106
|
return clearTimeout(t);
|
|
1107
1107
|
if ((be === Zt || !be) && clearTimeout)
|
|
@@ -1116,74 +1116,74 @@ function ni(t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
var
|
|
1120
|
-
function
|
|
1121
|
-
!Ke || !Ne || (Ke = !1, Ne.length ?
|
|
1119
|
+
var _e = [], Ke = !1, Ne, pt = -1;
|
|
1120
|
+
function si() {
|
|
1121
|
+
!Ke || !Ne || (Ke = !1, Ne.length ? _e = Ne.concat(_e) : pt = -1, _e.length && rn());
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function rn() {
|
|
1124
1124
|
if (!Ke) {
|
|
1125
|
-
var t =
|
|
1125
|
+
var t = tn(si);
|
|
1126
1126
|
Ke = !0;
|
|
1127
|
-
for (var e =
|
|
1128
|
-
for (Ne =
|
|
1127
|
+
for (var e = _e.length; e; ) {
|
|
1128
|
+
for (Ne = _e, _e = []; ++pt < e; )
|
|
1129
1129
|
Ne && Ne[pt].run();
|
|
1130
|
-
pt = -1, e =
|
|
1130
|
+
pt = -1, e = _e.length;
|
|
1131
1131
|
}
|
|
1132
|
-
Ne = null, Ke = !1,
|
|
1132
|
+
Ne = null, Ke = !1, oi(t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1135
|
+
Y.nextTick = function(t) {
|
|
1136
1136
|
var e = new Array(arguments.length - 1);
|
|
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
|
+
_e.push(new nn(t, e)), _e.length === 1 && !Ke && tn(rn);
|
|
1141
1141
|
};
|
|
1142
|
-
function
|
|
1142
|
+
function nn(t, e) {
|
|
1143
1143
|
this.fun = t, this.array = e;
|
|
1144
1144
|
}
|
|
1145
|
-
|
|
1145
|
+
nn.prototype.run = function() {
|
|
1146
1146
|
this.fun.apply(null, this.array);
|
|
1147
1147
|
};
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
function
|
|
1148
|
+
Y.title = "browser";
|
|
1149
|
+
Y.browser = !0;
|
|
1150
|
+
Y.env = {};
|
|
1151
|
+
Y.argv = [];
|
|
1152
|
+
Y.version = "";
|
|
1153
|
+
Y.versions = {};
|
|
1154
|
+
function Ce() {
|
|
1155
1155
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1156
|
+
Y.on = Ce;
|
|
1157
|
+
Y.addListener = Ce;
|
|
1158
|
+
Y.once = Ce;
|
|
1159
|
+
Y.off = Ce;
|
|
1160
|
+
Y.removeListener = Ce;
|
|
1161
|
+
Y.removeAllListeners = Ce;
|
|
1162
|
+
Y.emit = Ce;
|
|
1163
|
+
Y.prependListener = Ce;
|
|
1164
|
+
Y.prependOnceListener = Ce;
|
|
1165
|
+
Y.listeners = function(t) {
|
|
1166
1166
|
return [];
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
1168
|
+
Y.binding = function(t) {
|
|
1169
1169
|
throw new Error("process.binding is not supported");
|
|
1170
1170
|
};
|
|
1171
|
-
|
|
1171
|
+
Y.cwd = function() {
|
|
1172
1172
|
return "/";
|
|
1173
1173
|
};
|
|
1174
|
-
|
|
1174
|
+
Y.chdir = function(t) {
|
|
1175
1175
|
throw new Error("process.chdir is not supported");
|
|
1176
1176
|
};
|
|
1177
|
-
|
|
1177
|
+
Y.umask = function() {
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
};
|
|
1180
|
-
var
|
|
1180
|
+
var ai = en.exports;
|
|
1181
1181
|
(function(t) {
|
|
1182
1182
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
1183
|
-
const e =
|
|
1183
|
+
const e = Xr, r = ai, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
|
|
1184
1184
|
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
|
|
1185
|
-
})(
|
|
1186
|
-
class
|
|
1185
|
+
})(O);
|
|
1186
|
+
class ui {
|
|
1187
1187
|
}
|
|
1188
1188
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
1189
1189
|
class Ot {
|
|
@@ -1202,7 +1202,7 @@ class Ot {
|
|
|
1202
1202
|
return this.store;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1205
|
+
const ci = (t) => {
|
|
1206
1206
|
const e = Object.keys(t);
|
|
1207
1207
|
return fr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1208
1208
|
};
|
|
@@ -1213,16 +1213,16 @@ class at extends Ot {
|
|
|
1213
1213
|
subscribe = (...e) => this.getStore().subscribe(...e);
|
|
1214
1214
|
unsubscribe = () => this.getStore().off();
|
|
1215
1215
|
}
|
|
1216
|
-
const Le = (t) =>
|
|
1216
|
+
const Le = (t) => Vn(t);
|
|
1217
1217
|
var Ie;
|
|
1218
1218
|
(function(t) {
|
|
1219
1219
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1220
1220
|
})(Ie || (Ie = {}));
|
|
1221
|
-
const
|
|
1222
|
-
[
|
|
1223
|
-
[
|
|
1224
|
-
[
|
|
1225
|
-
[
|
|
1221
|
+
const fi = {
|
|
1222
|
+
[ue.BETTING]: "betting",
|
|
1223
|
+
[ue.GAMES]: "games",
|
|
1224
|
+
[ue.PUBLIC_CHAT]: "publicChat",
|
|
1225
|
+
[ue.TWITTER]: "twitter"
|
|
1226
1226
|
};
|
|
1227
1227
|
var Ue;
|
|
1228
1228
|
(function(t) {
|
|
@@ -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 =
|
|
1239
|
+
this.settingsKey = fi[r.type], this.status = _t(Ue.Suspended), this.config = new at(Le(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Le(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Le({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1240
1240
|
}
|
|
1241
1241
|
get featureConfig() {
|
|
1242
1242
|
return this.config.getStore();
|
|
@@ -1278,7 +1278,7 @@ class hr {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
class
|
|
1281
|
+
class ce extends Ot {
|
|
1282
1282
|
getValue = () => this.getStore().get();
|
|
1283
1283
|
getValues() {
|
|
1284
1284
|
throw new Error("not implemented");
|
|
@@ -1293,11 +1293,11 @@ class ue extends Ot {
|
|
|
1293
1293
|
return this.getStore().get();
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
const
|
|
1297
|
-
class
|
|
1296
|
+
const ne = (t) => _t(t), li = (t, e) => fr(t, e);
|
|
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 = _t(), o && e.subscribe((s) => {
|
|
1301
1301
|
this.atomStore.set(o(s));
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
@@ -1326,7 +1326,7 @@ class pe extends Ot {
|
|
|
1326
1326
|
key = () => this.getStore().key;
|
|
1327
1327
|
off = () => this.getStore().off();
|
|
1328
1328
|
}
|
|
1329
|
-
async function*
|
|
1329
|
+
async function* hi(t, e) {
|
|
1330
1330
|
for await (const r of e) {
|
|
1331
1331
|
t.response.message = r, t.received_at = Date.now();
|
|
1332
1332
|
const o = {
|
|
@@ -1336,7 +1336,7 @@ async function* fi(t, e) {
|
|
|
1336
1336
|
window.postMessage(o), yield r;
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const pi = () => (t) => async (e) => {
|
|
1340
1340
|
const r = {
|
|
1341
1341
|
name: e.url,
|
|
1342
1342
|
request: {},
|
|
@@ -1348,7 +1348,7 @@ const li = () => (t) => async (e) => {
|
|
|
1348
1348
|
if (r.received_at = Date.now(), r.stream = o.stream, r.response.header = Object.fromEntries(o.header.entries()), r.response.trailer = Object.fromEntries(o.trailer.entries()), o.stream)
|
|
1349
1349
|
return {
|
|
1350
1350
|
...o,
|
|
1351
|
-
message:
|
|
1351
|
+
message: hi(r, o.message)
|
|
1352
1352
|
};
|
|
1353
1353
|
{
|
|
1354
1354
|
r.request.message = e.message, r.response.message = o.message, r.latency = r.received_at - r.sent_at;
|
|
@@ -1376,7 +1376,7 @@ var Ae;
|
|
|
1376
1376
|
(function(t) {
|
|
1377
1377
|
t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
|
|
1378
1378
|
})(Ae || (Ae = {}));
|
|
1379
|
-
class
|
|
1379
|
+
class di {
|
|
1380
1380
|
params;
|
|
1381
1381
|
stream;
|
|
1382
1382
|
method;
|
|
@@ -1391,7 +1391,7 @@ class hi {
|
|
|
1391
1391
|
ts: /* @__PURE__ */ new Date(),
|
|
1392
1392
|
log: []
|
|
1393
1393
|
};
|
|
1394
|
-
this.state = new at(Le(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new
|
|
1394
|
+
this.state = new at(Le(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new 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
|
}
|
|
@@ -1433,10 +1433,10 @@ class hi {
|
|
|
1433
1433
|
this.addStateLog(`data routed to ${this.listeners.size} listeners`);
|
|
1434
1434
|
};
|
|
1435
1435
|
onStreamError = (e) => {
|
|
1436
|
-
e !== void 0 && (e.code !==
|
|
1436
|
+
e !== void 0 && (e.code !== qn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
class
|
|
1439
|
+
class yi {
|
|
1440
1440
|
toJsonOptions = {
|
|
1441
1441
|
emitDefaultValues: !1,
|
|
1442
1442
|
enumAsInteger: !0,
|
|
@@ -1452,10 +1452,10 @@ class pi {
|
|
|
1452
1452
|
subscriptions;
|
|
1453
1453
|
constructor(e) {
|
|
1454
1454
|
this.host = e, this.$headers = new at(Le({
|
|
1455
|
-
"sl-device-id":
|
|
1455
|
+
"sl-device-id": O.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
|
|
1456
1456
|
}), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
|
|
1457
|
-
const [r, o, s] =
|
|
1458
|
-
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport =
|
|
1457
|
+
const [r, o, s] = Kn();
|
|
1458
|
+
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = zn({
|
|
1459
1459
|
baseUrl: e,
|
|
1460
1460
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1461
1461
|
// @ts-ignore
|
|
@@ -1470,7 +1470,7 @@ class pi {
|
|
|
1470
1470
|
const s = this.subscriptions.get(r);
|
|
1471
1471
|
if (s)
|
|
1472
1472
|
return s;
|
|
1473
|
-
const u = new
|
|
1473
|
+
const u = new di(this.$headers, e, r, o);
|
|
1474
1474
|
return this.subscriptions.set(r, u), u;
|
|
1475
1475
|
};
|
|
1476
1476
|
removeSubscription = (e) => {
|
|
@@ -1491,14 +1491,14 @@ class pi {
|
|
|
1491
1491
|
const r = e.typeName;
|
|
1492
1492
|
if (this.clients.has(r))
|
|
1493
1493
|
return this.clients.get(r);
|
|
1494
|
-
const o =
|
|
1494
|
+
const o = Qn(e, this.transport);
|
|
1495
1495
|
return this.clients.set(r, o), o;
|
|
1496
1496
|
};
|
|
1497
1497
|
getCallbackClient = (e) => {
|
|
1498
1498
|
const r = e.typeName;
|
|
1499
1499
|
if (this.callbackClients.has(r))
|
|
1500
1500
|
return this.callbackClients.get(r);
|
|
1501
|
-
const o =
|
|
1501
|
+
const o = Gn(e, this.transport);
|
|
1502
1502
|
return this.callbackClients.set(r, o), o;
|
|
1503
1503
|
};
|
|
1504
1504
|
// create unary client, used for query request
|
|
@@ -1530,11 +1530,11 @@ class pi {
|
|
|
1530
1530
|
o.header.set(u, s[u]);
|
|
1531
1531
|
return r(o);
|
|
1532
1532
|
};
|
|
1533
|
-
this.interceptors.push(e), this.interceptors.push(
|
|
1533
|
+
this.interceptors.push(e), this.interceptors.push(pi());
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1537
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1536
|
+
const gi = (t, e) => {
|
|
1537
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Hn, {
|
|
1538
1538
|
method: "retrieveEventId",
|
|
1539
1539
|
params: [t]
|
|
1540
1540
|
});
|
|
@@ -1551,29 +1551,29 @@ const di = (t, e) => {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
|
-
},
|
|
1555
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1554
|
+
}, mi = (t, e) => {
|
|
1555
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Ct, { 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
|
-
},
|
|
1563
|
-
const { queryKey: r, client: o } = e.createPromiseClient(
|
|
1562
|
+
}, bi = (t, e) => {
|
|
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
|
-
},
|
|
1568
|
-
const { client: e } = t.createPromiseClient(
|
|
1567
|
+
}, wi = (t) => {
|
|
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
|
+
}, vi = (t, e) => {
|
|
1571
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Ct, { 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
|
+
}, Si = (t, e) => {
|
|
1576
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "getOrganization", params: [t] });
|
|
1577
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1578
1578
|
fetcher: async () => {
|
|
1579
1579
|
const s = await r.getOrganization({});
|
|
@@ -1583,16 +1583,16 @@ const di = (t, e) => {
|
|
|
1583
1583
|
} : void 0;
|
|
1584
1584
|
}
|
|
1585
1585
|
});
|
|
1586
|
-
},
|
|
1587
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1586
|
+
}, Ai = (t, e) => {
|
|
1587
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Ct, {
|
|
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
|
+
}, Ei = (t, e, r) => {
|
|
1595
|
+
t.transport = new yi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
|
|
1596
1596
|
};
|
|
1597
1597
|
class pr {
|
|
1598
1598
|
delimiter = ":";
|
|
@@ -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 Ge extends pr {
|
|
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 Ii = (t) => {
|
|
1652
|
+
const e = new Ge(), r = new ce(ne(e.getExternalToken()), "userKey"), o = new ce(ne(e.getToken()), "userToken"), s = new de(bi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new de(vi(o.getStore(), t), "userSettings");
|
|
1653
1653
|
return {
|
|
1654
1654
|
userKey: r,
|
|
1655
1655
|
userToken: o,
|
|
1656
1656
|
user: s,
|
|
1657
1657
|
userSettings: u
|
|
1658
1658
|
};
|
|
1659
|
-
},
|
|
1660
|
-
const e = new
|
|
1659
|
+
}, Fi = (t) => {
|
|
1660
|
+
const e = new ce(ne(void 0), "providerStreamId"), r = new de(gi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new de(mi(r.getAtomStore(), t), "streamSettings");
|
|
1661
1661
|
return r.getAtomStore().listen((s) => {
|
|
1662
1662
|
(s === "" || s === void 0) && o.getStore().mutate(void 0);
|
|
1663
1663
|
}), {
|
|
@@ -1665,8 +1665,8 @@ const Ai = (t) => {
|
|
|
1665
1665
|
slStreamId: r,
|
|
1666
1666
|
streamSettings: o
|
|
1667
1667
|
};
|
|
1668
|
-
},
|
|
1669
|
-
const e = new
|
|
1668
|
+
}, _i = (t) => {
|
|
1669
|
+
const e = new ce(ne(void 0), "enabled"), r = new ce(ne(Fe.DISABLED), "status"), o = new de(Si(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new de(Ai(o.getAtomStore(), t), "organizationAdvertising"), u = Ii(t), l = Fi(t);
|
|
1670
1670
|
return {
|
|
1671
1671
|
enabled: e,
|
|
1672
1672
|
status: r,
|
|
@@ -1681,10 +1681,10 @@ const Ai = (t) => {
|
|
|
1681
1681
|
organizationAdvertising: s
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
class
|
|
1684
|
+
class Ci extends Ot {
|
|
1685
1685
|
stores;
|
|
1686
1686
|
constructor(e) {
|
|
1687
|
-
const r =
|
|
1687
|
+
const r = _i(e), o = ci(r);
|
|
1688
1688
|
super(o, "core"), this.stores = r;
|
|
1689
1689
|
}
|
|
1690
1690
|
getValue() {
|
|
@@ -1705,12 +1705,12 @@ class Fi extends Ot {
|
|
|
1705
1705
|
};
|
|
1706
1706
|
unsubscribe = () => this.getStore().off();
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class Ti 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 = wi(this.transport), this.connect();
|
|
1714
1714
|
}
|
|
1715
1715
|
me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
|
|
1716
1716
|
/**
|
|
@@ -1731,14 +1731,14 @@ class Ci extends si {
|
|
|
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 Ge().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 Ge();
|
|
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 Ci extends si {
|
|
|
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 Ge(), 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 Ci extends si {
|
|
|
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 Ge().setToken(e);
|
|
1772
1772
|
};
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Add interceptor to the Transport to handle 401 and 403 errors.
|
|
@@ -1784,19 +1784,19 @@ class Ci extends si {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
|
-
const ot = new
|
|
1788
|
-
t.auth = new
|
|
1787
|
+
const ot = new Ge(), Oi = (t, e, r) => {
|
|
1788
|
+
t.auth = new Ti(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
|
ot.getSchema() === o && ot.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), ot.setSchema(o), ot.setExternalToken(s));
|
|
1792
1792
|
}, t.sdk.logout = () => {
|
|
1793
1793
|
t.auth.logout(), ot.clear();
|
|
1794
1794
|
}, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
|
|
1795
|
-
},
|
|
1796
|
-
t.store = new
|
|
1795
|
+
}, xi = (t, e, r) => {
|
|
1796
|
+
t.store = new Ci(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
|
|
1797
1797
|
t.store.unsubscribe();
|
|
1798
1798
|
}, r();
|
|
1799
|
-
},
|
|
1799
|
+
}, Bi = (t, e, r) => {
|
|
1800
1800
|
t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
|
|
1801
1801
|
if (t.stores.enabled.get() === "on")
|
|
1802
1802
|
return { enabled: !0 };
|
|
@@ -1812,30 +1812,30 @@ const ot = new Qe(), Ti = (t, e, r) => {
|
|
|
1812
1812
|
}, t.sdk.createEventSession = (o) => {
|
|
1813
1813
|
t.stores.providerStreamId.setValue(o);
|
|
1814
1814
|
}, r();
|
|
1815
|
-
},
|
|
1815
|
+
}, ki = Wn({
|
|
1816
1816
|
level: "trace"
|
|
1817
|
-
}),
|
|
1818
|
-
const { client: o, queryKey: s } = r.createPromiseClient(
|
|
1817
|
+
}), on = (t, e) => ki.child({ name: t }, e), Pi = (t, e, r) => {
|
|
1818
|
+
const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
|
|
1819
1819
|
method: "summary",
|
|
1820
1820
|
params: [t, e]
|
|
1821
1821
|
});
|
|
1822
1822
|
return r.nanoquery.createFetcherStore(s, {
|
|
1823
|
-
fetcher: async (u, l, f,
|
|
1823
|
+
fetcher: async (u, l, f, p) => (await o.summary({
|
|
1824
1824
|
eventId: f,
|
|
1825
|
-
userId:
|
|
1825
|
+
userId: p
|
|
1826
1826
|
})).data?.attributes
|
|
1827
1827
|
});
|
|
1828
|
-
},
|
|
1829
|
-
const { client: e } = t.createPromiseClient(
|
|
1828
|
+
}, Ri = (t) => {
|
|
1829
|
+
const { client: e } = t.createPromiseClient(Jr, { method: "list" });
|
|
1830
1830
|
return (r) => e.list(r);
|
|
1831
|
-
},
|
|
1831
|
+
}, Ni = (t, e) => {
|
|
1832
1832
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
|
|
1833
1833
|
return e.nanoquery.createFetcherStore(o, {
|
|
1834
1834
|
fetcher: async (s, u, l) => (await r.get({
|
|
1835
1835
|
eventId: l
|
|
1836
1836
|
})).data?.attributes
|
|
1837
1837
|
});
|
|
1838
|
-
},
|
|
1838
|
+
}, Li = (t, e) => {
|
|
1839
1839
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
|
|
1840
1840
|
return e.nanoquery.createFetcherStore(o, {
|
|
1841
1841
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
@@ -1844,37 +1844,128 @@ const ot = new Qe(), Ti = (t, e, r) => {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
})).data?.attributes : void 0
|
|
1846
1846
|
});
|
|
1847
|
-
},
|
|
1848
|
-
const { client: r } = e.createCallbackClient(ve), o =
|
|
1847
|
+
}, Ui = (t, e) => {
|
|
1848
|
+
const { client: r } = e.createCallbackClient(ve), o = _t({ eventId: t.get() || "", feedId: "" });
|
|
1849
1849
|
return t.subscribe((u = "") => {
|
|
1850
1850
|
o.set({ eventId: u, feedId: "" });
|
|
1851
1851
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
1852
|
-
},
|
|
1852
|
+
}, $i = (t, e) => {
|
|
1853
1853
|
const { client: r } = e.createCallbackClient(ve);
|
|
1854
1854
|
return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
|
|
1855
|
-
},
|
|
1855
|
+
}, sn = async (t, e) => {
|
|
1856
1856
|
const { client: r } = e.createPromiseClient(ve, { method: "questionByUser", params: [t] });
|
|
1857
1857
|
return (await r.questionByUser({
|
|
1858
1858
|
questionId: t
|
|
1859
1859
|
})).data?.attributes?.question;
|
|
1860
|
-
},
|
|
1860
|
+
}, ji = (t, e) => {
|
|
1861
1861
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
|
|
1862
1862
|
return e.nanoquery.createFetcherStore(o, {
|
|
1863
1863
|
fetcher: async (s, u, l) => l ? (await r.list({
|
|
1864
1864
|
eventId: l
|
|
1865
1865
|
})).data : []
|
|
1866
1866
|
});
|
|
1867
|
-
},
|
|
1867
|
+
}, Di = (t, e) => {
|
|
1868
1868
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
|
|
1869
1869
|
return e.nanoquery.createFetcherStore(o, {
|
|
1870
1870
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
1871
1871
|
eventId: l
|
|
1872
|
-
})).data?.map(({ attributes:
|
|
1872
|
+
})).data?.map(({ attributes: p }) => p) : void 0
|
|
1873
1873
|
});
|
|
1874
|
-
}
|
|
1874
|
+
};
|
|
1875
|
+
var dr = { exports: {} };
|
|
1876
|
+
const Mi = Object.getPrototypeOf({});
|
|
1877
|
+
function yr(t) {
|
|
1878
|
+
function e(I) {
|
|
1879
|
+
return I !== "constructor" && I !== "prototype" && I !== "__proto__";
|
|
1880
|
+
}
|
|
1881
|
+
function r(I) {
|
|
1882
|
+
let C = 0;
|
|
1883
|
+
const j = I.length, U = new Array(j);
|
|
1884
|
+
for (C = 0; C < j; ++C)
|
|
1885
|
+
U[C] = _(I[C]);
|
|
1886
|
+
return U;
|
|
1887
|
+
}
|
|
1888
|
+
function o(I) {
|
|
1889
|
+
const C = {};
|
|
1890
|
+
if (p && Object.getPrototypeOf(I) !== Mi)
|
|
1891
|
+
return p(I);
|
|
1892
|
+
const j = f(I);
|
|
1893
|
+
let U, F, x;
|
|
1894
|
+
for (U = 0, F = j.length; U < F; ++U)
|
|
1895
|
+
e(x = j[U]) && (C[x] = _(I[x]));
|
|
1896
|
+
return C;
|
|
1897
|
+
}
|
|
1898
|
+
function s(I, C) {
|
|
1899
|
+
const j = I.length, U = C.length;
|
|
1900
|
+
let F = 0;
|
|
1901
|
+
const x = new Array(j + U);
|
|
1902
|
+
for (F = 0; F < j; ++F)
|
|
1903
|
+
x[F] = _(I[F]);
|
|
1904
|
+
for (F = 0; F < U; ++F)
|
|
1905
|
+
x[F + j] = _(C[F]);
|
|
1906
|
+
return x;
|
|
1907
|
+
}
|
|
1908
|
+
const u = Object.prototype.propertyIsEnumerable;
|
|
1909
|
+
function l(I) {
|
|
1910
|
+
const C = Object.keys(I), j = Object.getOwnPropertySymbols(I);
|
|
1911
|
+
for (let U = 0, F = j.length; U < F; ++U)
|
|
1912
|
+
u.call(I, j[U]) && C.push(j[U]);
|
|
1913
|
+
return C;
|
|
1914
|
+
}
|
|
1915
|
+
const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1916
|
+
function S(I) {
|
|
1917
|
+
return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
|
|
1918
|
+
}
|
|
1919
|
+
function g(I) {
|
|
1920
|
+
return typeof I != "object" || I === null;
|
|
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: _, deepmerge: P, getKeys: f, isMergeableObject: S }) : s;
|
|
1923
|
+
function _(I) {
|
|
1924
|
+
return S(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1925
|
+
}
|
|
1926
|
+
function N(I, C) {
|
|
1927
|
+
const j = {}, U = f(I), F = f(C);
|
|
1928
|
+
let x, k, G;
|
|
1929
|
+
for (x = 0, k = U.length; x < k; ++x)
|
|
1930
|
+
e(G = U[x]) && F.indexOf(G) === -1 && (j[G] = _(I[G]));
|
|
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], C[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1933
|
+
(j[G] = _(C[G])));
|
|
1934
|
+
return j;
|
|
1935
|
+
}
|
|
1936
|
+
function P(I, C) {
|
|
1937
|
+
const j = Array.isArray(C), U = Array.isArray(I);
|
|
1938
|
+
return g(C) ? C : b(I) ? _(C) : j && U ? E(I, C) : j !== U ? _(C) : N(I, C);
|
|
1939
|
+
}
|
|
1940
|
+
function K() {
|
|
1941
|
+
switch (arguments.length) {
|
|
1942
|
+
case 0:
|
|
1943
|
+
return {};
|
|
1944
|
+
case 1:
|
|
1945
|
+
return _(arguments[0]);
|
|
1946
|
+
case 2:
|
|
1947
|
+
return P(arguments[0], arguments[1]);
|
|
1948
|
+
}
|
|
1949
|
+
let I;
|
|
1950
|
+
for (let C = 0, j = arguments.length; C < j; ++C)
|
|
1951
|
+
I = P(I, arguments[C]);
|
|
1952
|
+
return I;
|
|
1953
|
+
}
|
|
1954
|
+
return t && t.all ? K : P;
|
|
1955
|
+
}
|
|
1956
|
+
dr.exports = yr;
|
|
1957
|
+
dr.exports.default = yr;
|
|
1958
|
+
var Vi = dr.exports.deepmerge = yr;
|
|
1959
|
+
const qi = (t) => (e, r) => {
|
|
1960
|
+
let o = 0;
|
|
1961
|
+
const s = e.length, u = r.length, l = Math.max(s, u), f = new Array(l);
|
|
1962
|
+
for (o = 0; o < l; ++o)
|
|
1963
|
+
o < u ? f[o] = t.deepmerge(e[o], r[o]) : f[o] = t.clone(e[o]);
|
|
1964
|
+
return f;
|
|
1965
|
+
}, Qi = Vi({ mergeArray: qi }), Gi = (t, e, r) => {
|
|
1875
1966
|
const o = fr([e, r], (l, f) => {
|
|
1876
1967
|
if (l && f.data)
|
|
1877
|
-
return f.data.find((
|
|
1968
|
+
return f.data.find((p) => p.id === l);
|
|
1878
1969
|
}), s = Le({
|
|
1879
1970
|
data: void 0,
|
|
1880
1971
|
loading: void 0,
|
|
@@ -1883,16 +1974,20 @@ const ot = new Qe(), Ti = (t, e, r) => {
|
|
|
1883
1974
|
return o.subscribe(async (l) => {
|
|
1884
1975
|
if (l && l.type === "question") {
|
|
1885
1976
|
s.setKey("loading", !0);
|
|
1886
|
-
const f = await
|
|
1977
|
+
const f = await sn(l.id, t);
|
|
1887
1978
|
s.set({ data: f, loading: !1 });
|
|
1888
1979
|
return;
|
|
1889
1980
|
}
|
|
1890
1981
|
s.set({ data: void 0, loading: !1 });
|
|
1891
1982
|
}), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
|
|
1892
|
-
s.
|
|
1983
|
+
const f = s.get().data;
|
|
1984
|
+
if (f)
|
|
1985
|
+
for (const p of l?.answers || [])
|
|
1986
|
+
p.youVoted !== !0 && delete p.youVoted;
|
|
1987
|
+
s.set({ data: Qi(f, l) });
|
|
1893
1988
|
} };
|
|
1894
|
-
},
|
|
1895
|
-
class
|
|
1989
|
+
}, an = (t) => (t.gamification || (t.gamification = new zi(t)), t.gamification);
|
|
1990
|
+
class zi {
|
|
1896
1991
|
/** sl event id */
|
|
1897
1992
|
slStreamId;
|
|
1898
1993
|
/** organization id */
|
|
@@ -1919,13 +2014,13 @@ class ji {
|
|
|
1919
2014
|
constructor(e) {
|
|
1920
2015
|
if (e.gamification)
|
|
1921
2016
|
throw new Error("GamificationBackground Singleton error");
|
|
1922
|
-
this.log =
|
|
1923
|
-
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(Ni(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(ji(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new de(Li(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Gi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2018
|
+
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = $i(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
1924
2019
|
window.requestAnimationFrame(() => {
|
|
1925
2020
|
this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
|
|
1926
2021
|
});
|
|
1927
2022
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
1928
|
-
}), this.feedSubscription =
|
|
2023
|
+
}), this.feedSubscription = Ui(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
|
|
1929
2024
|
window.requestAnimationFrame(() => {
|
|
1930
2025
|
const o = this.activeQuestionId.getStore();
|
|
1931
2026
|
o && o.mutate(r.data?.attributes);
|
|
@@ -1960,7 +2055,7 @@ class ji {
|
|
|
1960
2055
|
this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
|
|
1961
2056
|
};
|
|
1962
2057
|
}
|
|
1963
|
-
class
|
|
2058
|
+
class Ki {
|
|
1964
2059
|
notificationsList;
|
|
1965
2060
|
notifications;
|
|
1966
2061
|
store;
|
|
@@ -1970,7 +2065,7 @@ class Mi {
|
|
|
1970
2065
|
options;
|
|
1971
2066
|
logger;
|
|
1972
2067
|
constructor(e) {
|
|
1973
|
-
this.options = e, this.logger =
|
|
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 = li(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
|
|
1974
2069
|
}
|
|
1975
2070
|
addToQueue = (e) => {
|
|
1976
2071
|
if (this.store.has(e.id)) {
|
|
@@ -2034,7 +2129,7 @@ var wt;
|
|
|
2034
2129
|
(function(t) {
|
|
2035
2130
|
t.OPENED = "opened";
|
|
2036
2131
|
})(wt || (wt = {}));
|
|
2037
|
-
class
|
|
2132
|
+
class Hi extends pr {
|
|
2038
2133
|
constructor() {
|
|
2039
2134
|
super("notification");
|
|
2040
2135
|
}
|
|
@@ -2050,11 +2145,11 @@ var He;
|
|
|
2050
2145
|
(function(t) {
|
|
2051
2146
|
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
|
|
2052
2147
|
})(He || (He = {}));
|
|
2053
|
-
class
|
|
2148
|
+
class Wi {
|
|
2054
2149
|
queue;
|
|
2055
2150
|
storage;
|
|
2056
2151
|
constructor(e = {}) {
|
|
2057
|
-
this.storage = new
|
|
2152
|
+
this.storage = new Hi(), this.queue = new Ki({ concurrency: 1, animationDelay: 300, ...e });
|
|
2058
2153
|
}
|
|
2059
2154
|
add = (e) => {
|
|
2060
2155
|
this.storage.isOpened(e.id) || this.queue.addToQueue(e);
|
|
@@ -2067,15 +2162,15 @@ class qi {
|
|
|
2067
2162
|
this.storage.setOpened(e);
|
|
2068
2163
|
};
|
|
2069
2164
|
}
|
|
2070
|
-
const
|
|
2071
|
-
t.notifications = new
|
|
2072
|
-
},
|
|
2165
|
+
const Ji = (t, e, r) => {
|
|
2166
|
+
t.notifications = new Wi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
|
|
2167
|
+
}, Yi = (t, e) => {
|
|
2073
2168
|
const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
|
|
2074
2169
|
return r.submitAnswer({ data: e });
|
|
2075
|
-
},
|
|
2170
|
+
}, Xi = (t, e) => {
|
|
2076
2171
|
const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
|
|
2077
2172
|
return r.submitInplay({ data: { eventId: +e } });
|
|
2078
|
-
},
|
|
2173
|
+
}, Zi = (t, e) => {
|
|
2079
2174
|
const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
|
|
2080
2175
|
return r.skipQuestion({ data: { id: e } });
|
|
2081
2176
|
};
|
|
@@ -2083,7 +2178,7 @@ var vt;
|
|
|
2083
2178
|
(function(t) {
|
|
2084
2179
|
t.ONBOARDING = "onboarding";
|
|
2085
2180
|
})(vt || (vt = {}));
|
|
2086
|
-
class
|
|
2181
|
+
class eo extends pr {
|
|
2087
2182
|
constructor() {
|
|
2088
2183
|
super("gamification");
|
|
2089
2184
|
}
|
|
@@ -2092,46 +2187,46 @@ class Hi extends pr {
|
|
|
2092
2187
|
};
|
|
2093
2188
|
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(vt.ONBOARDING, o, e, r);
|
|
2094
2189
|
}
|
|
2095
|
-
const
|
|
2190
|
+
const _r = {
|
|
2096
2191
|
pageSize: 10
|
|
2097
|
-
},
|
|
2098
|
-
const o =
|
|
2099
|
-
if (
|
|
2192
|
+
}, to = (t, e, r) => {
|
|
2193
|
+
const o = ne({ pageSize: r?.pageSize || _r.pageSize, page: 0 }), s = Le({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (S) => {
|
|
2194
|
+
if (S) {
|
|
2100
2195
|
s.setKey("loading", !0);
|
|
2101
2196
|
const g = {
|
|
2102
|
-
eventId:
|
|
2103
|
-
pagination: { page: 0, pageSize: r?.pageSize ||
|
|
2104
|
-
},
|
|
2105
|
-
s.set({ data:
|
|
2197
|
+
eventId: S,
|
|
2198
|
+
pagination: { page: 0, pageSize: r?.pageSize || _r.pageSize }
|
|
2199
|
+
}, b = await u(g);
|
|
2200
|
+
s.set({ data: b.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
|
|
2106
2201
|
}
|
|
2107
2202
|
};
|
|
2108
2203
|
e.listen(l);
|
|
2109
2204
|
const f = () => {
|
|
2110
2205
|
l(e.get());
|
|
2111
2206
|
};
|
|
2112
|
-
return o.listen(async (
|
|
2113
|
-
const g = e.get(),
|
|
2114
|
-
if (
|
|
2207
|
+
return o.listen(async (S) => {
|
|
2208
|
+
const g = e.get(), b = s.get().data?.length || 0;
|
|
2209
|
+
if (S.page > 0 && g && b >= S.page * S.pageSize) {
|
|
2115
2210
|
s.setKey("loading", !0);
|
|
2116
|
-
const
|
|
2211
|
+
const _ = await u({
|
|
2117
2212
|
eventId: g,
|
|
2118
|
-
pagination:
|
|
2119
|
-
}),
|
|
2213
|
+
pagination: S
|
|
2214
|
+
}), N = s.get().data || [];
|
|
2120
2215
|
s.set({
|
|
2121
|
-
data: [...
|
|
2216
|
+
data: [...N, ..._.data.map((P) => P.attributes)],
|
|
2122
2217
|
loading: !1
|
|
2123
2218
|
});
|
|
2124
2219
|
}
|
|
2125
2220
|
}), { $store: s, fetchMore: () => {
|
|
2126
|
-
const
|
|
2127
|
-
o.set({ ...
|
|
2221
|
+
const S = o.get();
|
|
2222
|
+
o.set({ ...S, page: S.page + 1 });
|
|
2128
2223
|
}, invalidate: f };
|
|
2129
|
-
},
|
|
2130
|
-
var
|
|
2224
|
+
}, ro = /* @__PURE__ */ new Set([st.POLL, st.PREDICTION, st.TRIVIA]);
|
|
2225
|
+
var re;
|
|
2131
2226
|
(function(t) {
|
|
2132
2227
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2133
|
-
})(
|
|
2134
|
-
class
|
|
2228
|
+
})(re || (re = {}));
|
|
2229
|
+
class no extends hr {
|
|
2135
2230
|
/** user statistics (leaderboard panel) */
|
|
2136
2231
|
userSummary;
|
|
2137
2232
|
/** feed list (pick history) */
|
|
@@ -2144,6 +2239,8 @@ class Yi extends hr {
|
|
|
2144
2239
|
onboardingStatus;
|
|
2145
2240
|
/** opened question */
|
|
2146
2241
|
openedQuestion;
|
|
2242
|
+
/** pinned leaderboard id */
|
|
2243
|
+
openedUser;
|
|
2147
2244
|
notifications;
|
|
2148
2245
|
transport;
|
|
2149
2246
|
closeFeature;
|
|
@@ -2153,14 +2250,14 @@ class Yi extends hr {
|
|
|
2153
2250
|
/** Browser cache */
|
|
2154
2251
|
storage;
|
|
2155
2252
|
constructor(e, r, o) {
|
|
2156
|
-
super(e, r), this.background =
|
|
2157
|
-
(s ===
|
|
2253
|
+
super(e, r), this.background = an(o), this.storage = new eo(), this.userSummary = new de(Pi(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 = to(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
|
|
2254
|
+
(s === re.Optional || re.Required) && this.showOnboardingInApp();
|
|
2158
2255
|
}), this.status.subscribe((s) => {
|
|
2159
2256
|
s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2160
2257
|
}), this.onboardingStatus.subscribe((s) => {
|
|
2161
2258
|
s && this.background.activeQuestionId.invalidate();
|
|
2162
2259
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2163
|
-
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2260
|
+
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Hr.ON && ro.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2164
2261
|
type: He.QUESTION,
|
|
2165
2262
|
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2166
2263
|
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
@@ -2192,12 +2289,12 @@ class Yi extends hr {
|
|
|
2192
2289
|
userId: e,
|
|
2193
2290
|
organizationId: this.background.organizationId.get() || "",
|
|
2194
2291
|
eventId: this.background.slStreamId.get() || ""
|
|
2195
|
-
}) ===
|
|
2292
|
+
}) === re.Completed && this.onboardingStatus.set(re.Completed);
|
|
2196
2293
|
const o = await this.background.moderation.getValue();
|
|
2197
|
-
if (this.onboardingStatus.get() ===
|
|
2294
|
+
if (this.onboardingStatus.get() === re.Completed)
|
|
2198
2295
|
return;
|
|
2199
2296
|
const s = !!(o?.options?.onboardingEnabled && this.featureSettings.get().inplayGame?.onboarding?.completed), u = !!this.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2200
|
-
s ? u ? this.onboardingStatus.set(
|
|
2297
|
+
s ? u ? this.onboardingStatus.set(re.Required) : this.onboardingStatus.set(re.Optional) : u ? this.onboardingStatus.set(re.Unavailable) : this.onboardingStatus.set(re.Disabled);
|
|
2201
2298
|
};
|
|
2202
2299
|
showOnboardingInApp = () => {
|
|
2203
2300
|
const { inplayGame: e } = this.featureSettings.get();
|
|
@@ -2231,7 +2328,7 @@ class Yi extends hr {
|
|
|
2231
2328
|
if (s === Yt.RESOLVED && u === st.PREDICTION) {
|
|
2232
2329
|
const f = this.background.getCurrentSessionId({
|
|
2233
2330
|
prefix: `notification-id:${l}`
|
|
2234
|
-
}),
|
|
2331
|
+
}), S = (await sn(l, e))?.answers.find(({ correct: g }) => g);
|
|
2235
2332
|
this.notifications.add({
|
|
2236
2333
|
type: He.ONBOARDING,
|
|
2237
2334
|
action: () => this.openQuestion(l),
|
|
@@ -2239,7 +2336,7 @@ class Yi extends hr {
|
|
|
2239
2336
|
autoHideDuration: 5e3,
|
|
2240
2337
|
id: f,
|
|
2241
2338
|
data: {
|
|
2242
|
-
title:
|
|
2339
|
+
title: S?.youVoted ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`
|
|
2243
2340
|
}
|
|
2244
2341
|
});
|
|
2245
2342
|
}
|
|
@@ -2256,22 +2353,29 @@ class Yi extends hr {
|
|
|
2256
2353
|
// onboarding
|
|
2257
2354
|
submitInplay = async () => {
|
|
2258
2355
|
const e = this.background.slStreamId.get();
|
|
2259
|
-
e && (await
|
|
2356
|
+
e && (await Xi(this.transport, e), this.onboardingStatus.set(re.Completed), this.storage.saveOnboardingStatus({
|
|
2260
2357
|
organizationId: this.background.organizationId.get() || "",
|
|
2261
2358
|
userId: this.background.userId.get() || "",
|
|
2262
2359
|
eventId: e
|
|
2263
|
-
},
|
|
2360
|
+
}, re.Completed));
|
|
2264
2361
|
};
|
|
2265
2362
|
submitAnswer = async (e, r) => {
|
|
2266
|
-
await
|
|
2363
|
+
await Yi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
|
|
2267
2364
|
};
|
|
2268
2365
|
skipQuestion = async (e) => {
|
|
2269
|
-
await
|
|
2366
|
+
await Zi(this.transport, e), this.feedList?.invalidate();
|
|
2270
2367
|
};
|
|
2271
2368
|
openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2272
2369
|
closeQuestion = (e) => this.background.closeQuestion(e);
|
|
2370
|
+
openUser = (e) => {
|
|
2371
|
+
const r = this.leaderboardList.$store.get().data?.find((o) => o.userId === e);
|
|
2372
|
+
this.openedUser.set(r);
|
|
2373
|
+
};
|
|
2374
|
+
closeUser = () => {
|
|
2375
|
+
this.openedUser.set(void 0);
|
|
2376
|
+
};
|
|
2273
2377
|
}
|
|
2274
|
-
class
|
|
2378
|
+
class io extends hr {
|
|
2275
2379
|
insights;
|
|
2276
2380
|
closeFeature;
|
|
2277
2381
|
openFeature;
|
|
@@ -2280,10 +2384,10 @@ class Xi extends hr {
|
|
|
2280
2384
|
transport;
|
|
2281
2385
|
background;
|
|
2282
2386
|
constructor(e, r, o) {
|
|
2283
|
-
super(e, r), this.background =
|
|
2387
|
+
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) => {
|
|
2284
2388
|
s === Ue.Ready ? this.connect() : this.disconnect();
|
|
2285
2389
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2286
|
-
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2390
|
+
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Hr.ON && s.data.question.type === st.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2287
2391
|
type: He.QUESTION,
|
|
2288
2392
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2289
2393
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
@@ -2300,7 +2404,7 @@ class Xi extends hr {
|
|
|
2300
2404
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2301
2405
|
}
|
|
2302
2406
|
connect = () => {
|
|
2303
|
-
this.insights ? this.insights.invalidate() : this.insights = new
|
|
2407
|
+
this.insights ? this.insights.invalidate() : this.insights = new de(Di(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2304
2408
|
window.requestAnimationFrame(() => {
|
|
2305
2409
|
this.insights?.invalidate();
|
|
2306
2410
|
});
|
|
@@ -2312,19 +2416,19 @@ class Xi extends hr {
|
|
|
2312
2416
|
openHighlight = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2313
2417
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2314
2418
|
}
|
|
2315
|
-
|
|
2316
|
-
class
|
|
2419
|
+
ue.GAMES + "", ue.HIGHLIGHTS + "";
|
|
2420
|
+
class oo extends hr {
|
|
2317
2421
|
constructor(e, r) {
|
|
2318
2422
|
super(e, r);
|
|
2319
2423
|
}
|
|
2320
2424
|
}
|
|
2321
|
-
const
|
|
2322
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new
|
|
2425
|
+
const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HIGHLIGHTS ? new io(t, e, r) : new oo(t, e), ao = (t, e, r) => {
|
|
2426
|
+
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) => {
|
|
2323
2427
|
t.activeFeature.setValue(o);
|
|
2324
2428
|
}, t.sdk.closeFeature = () => {
|
|
2325
|
-
t.activeFeature.setValue(
|
|
2429
|
+
t.activeFeature.setValue(ue.UNSET);
|
|
2326
2430
|
}, t.initFeature = (o, s = Ie.ORGANIZATION) => {
|
|
2327
|
-
const u =
|
|
2431
|
+
const u = so(o, s, t);
|
|
2328
2432
|
t.features.set(o.type, u);
|
|
2329
2433
|
}, t.updateFeature = (o, s) => {
|
|
2330
2434
|
t.features.get(o.type)?.update(o, s);
|
|
@@ -2374,8 +2478,8 @@ const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HI
|
|
|
2374
2478
|
t.store.subscribe(s);
|
|
2375
2479
|
}, r();
|
|
2376
2480
|
};
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2481
|
+
var gr = { exports: {} }, mr = { exports: {} };
|
|
2482
|
+
function uo(t) {
|
|
2379
2483
|
var e = new t(), r = e;
|
|
2380
2484
|
function o() {
|
|
2381
2485
|
var u = e;
|
|
@@ -2389,137 +2493,137 @@ function ro(t) {
|
|
|
2389
2493
|
release: s
|
|
2390
2494
|
};
|
|
2391
2495
|
}
|
|
2392
|
-
var
|
|
2393
|
-
function
|
|
2496
|
+
var co = uo, fo = co;
|
|
2497
|
+
function un(t, e, r) {
|
|
2394
2498
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2395
2499
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2396
|
-
var o =
|
|
2397
|
-
push:
|
|
2398
|
-
drain:
|
|
2399
|
-
saturated:
|
|
2500
|
+
var o = fo(lo), s = null, u = null, l = 0, f = null, p = {
|
|
2501
|
+
push: P,
|
|
2502
|
+
drain: ae,
|
|
2503
|
+
saturated: ae,
|
|
2400
2504
|
pause: g,
|
|
2401
2505
|
paused: !1,
|
|
2402
2506
|
concurrency: r,
|
|
2403
|
-
running:
|
|
2404
|
-
resume:
|
|
2405
|
-
idle:
|
|
2406
|
-
length:
|
|
2507
|
+
running: S,
|
|
2508
|
+
resume: _,
|
|
2509
|
+
idle: N,
|
|
2510
|
+
length: b,
|
|
2407
2511
|
getQueue: E,
|
|
2408
|
-
unshift:
|
|
2409
|
-
empty:
|
|
2410
|
-
kill:
|
|
2411
|
-
killAndDrain:
|
|
2412
|
-
error:
|
|
2512
|
+
unshift: K,
|
|
2513
|
+
empty: ae,
|
|
2514
|
+
kill: C,
|
|
2515
|
+
killAndDrain: j,
|
|
2516
|
+
error: U
|
|
2413
2517
|
};
|
|
2414
|
-
return
|
|
2415
|
-
function
|
|
2518
|
+
return p;
|
|
2519
|
+
function S() {
|
|
2416
2520
|
return l;
|
|
2417
2521
|
}
|
|
2418
2522
|
function g() {
|
|
2419
|
-
|
|
2523
|
+
p.paused = !0;
|
|
2420
2524
|
}
|
|
2421
|
-
function
|
|
2422
|
-
for (var
|
|
2423
|
-
|
|
2424
|
-
return
|
|
2525
|
+
function b() {
|
|
2526
|
+
for (var F = s, x = 0; F; )
|
|
2527
|
+
F = F.next, x++;
|
|
2528
|
+
return x;
|
|
2425
2529
|
}
|
|
2426
2530
|
function E() {
|
|
2427
|
-
for (var
|
|
2428
|
-
|
|
2429
|
-
return
|
|
2430
|
-
}
|
|
2431
|
-
function
|
|
2432
|
-
if (
|
|
2433
|
-
|
|
2434
|
-
for (var
|
|
2435
|
-
l++,
|
|
2531
|
+
for (var F = s, x = []; F; )
|
|
2532
|
+
x.push(F.value), F = F.next;
|
|
2533
|
+
return x;
|
|
2534
|
+
}
|
|
2535
|
+
function _() {
|
|
2536
|
+
if (p.paused) {
|
|
2537
|
+
p.paused = !1;
|
|
2538
|
+
for (var F = 0; F < p.concurrency; F++)
|
|
2539
|
+
l++, I();
|
|
2436
2540
|
}
|
|
2437
2541
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return l === 0 &&
|
|
2542
|
+
function N() {
|
|
2543
|
+
return l === 0 && p.length() === 0;
|
|
2440
2544
|
}
|
|
2441
|
-
function
|
|
2442
|
-
var
|
|
2443
|
-
|
|
2545
|
+
function P(F, x) {
|
|
2546
|
+
var k = o.get();
|
|
2547
|
+
k.context = t, k.release = I, k.value = F, k.callback = x || ae, k.errorHandler = f, l === p.concurrency || p.paused ? u ? (u.next = k, u = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2444
2548
|
}
|
|
2445
|
-
function
|
|
2446
|
-
var
|
|
2447
|
-
|
|
2549
|
+
function K(F, x) {
|
|
2550
|
+
var k = o.get();
|
|
2551
|
+
k.context = t, k.release = I, k.value = F, k.callback = x || ae, l === p.concurrency || p.paused ? s ? (k.next = s, s = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2448
2552
|
}
|
|
2449
|
-
function
|
|
2450
|
-
|
|
2451
|
-
var
|
|
2452
|
-
|
|
2553
|
+
function I(F) {
|
|
2554
|
+
F && o.release(F);
|
|
2555
|
+
var x = s;
|
|
2556
|
+
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();
|
|
2453
2557
|
}
|
|
2454
|
-
function
|
|
2455
|
-
s = null, u = null,
|
|
2558
|
+
function C() {
|
|
2559
|
+
s = null, u = null, p.drain = ae;
|
|
2456
2560
|
}
|
|
2457
|
-
function
|
|
2458
|
-
s = null, u = null,
|
|
2561
|
+
function j() {
|
|
2562
|
+
s = null, u = null, p.drain(), p.drain = ae;
|
|
2459
2563
|
}
|
|
2460
|
-
function
|
|
2461
|
-
f =
|
|
2564
|
+
function U(F) {
|
|
2565
|
+
f = F;
|
|
2462
2566
|
}
|
|
2463
2567
|
}
|
|
2464
|
-
function
|
|
2568
|
+
function ae() {
|
|
2465
2569
|
}
|
|
2466
|
-
function
|
|
2467
|
-
this.value = null, this.callback =
|
|
2570
|
+
function lo() {
|
|
2571
|
+
this.value = null, this.callback = ae, this.next = null, this.release = ae, this.context = null, this.errorHandler = null;
|
|
2468
2572
|
var t = this;
|
|
2469
2573
|
this.worked = function(r, o) {
|
|
2470
2574
|
var s = t.callback, u = t.errorHandler, l = t.value;
|
|
2471
|
-
t.value = null, t.callback =
|
|
2575
|
+
t.value = null, t.callback = ae, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
|
|
2472
2576
|
};
|
|
2473
2577
|
}
|
|
2474
|
-
function
|
|
2578
|
+
function ho(t, e, r) {
|
|
2475
2579
|
typeof t == "function" && (r = e, e = t, t = null);
|
|
2476
|
-
function o(g,
|
|
2580
|
+
function o(g, b) {
|
|
2477
2581
|
e.call(this, g).then(function(E) {
|
|
2478
|
-
|
|
2479
|
-
},
|
|
2582
|
+
b(null, E);
|
|
2583
|
+
}, b);
|
|
2480
2584
|
}
|
|
2481
|
-
var s =
|
|
2482
|
-
return s.push = f, s.unshift =
|
|
2585
|
+
var s = un(t, o, r), u = s.push, l = s.unshift;
|
|
2586
|
+
return s.push = f, s.unshift = p, s.drained = S, s;
|
|
2483
2587
|
function f(g) {
|
|
2484
|
-
var
|
|
2485
|
-
u(g, function(
|
|
2486
|
-
if (
|
|
2487
|
-
|
|
2588
|
+
var b = new Promise(function(E, _) {
|
|
2589
|
+
u(g, function(N, P) {
|
|
2590
|
+
if (N) {
|
|
2591
|
+
_(N);
|
|
2488
2592
|
return;
|
|
2489
2593
|
}
|
|
2490
|
-
E(
|
|
2594
|
+
E(P);
|
|
2491
2595
|
});
|
|
2492
2596
|
});
|
|
2493
|
-
return
|
|
2597
|
+
return b.catch(ae), b;
|
|
2494
2598
|
}
|
|
2495
|
-
function
|
|
2496
|
-
var
|
|
2497
|
-
l(g, function(
|
|
2498
|
-
if (
|
|
2499
|
-
|
|
2599
|
+
function p(g) {
|
|
2600
|
+
var b = new Promise(function(E, _) {
|
|
2601
|
+
l(g, function(N, P) {
|
|
2602
|
+
if (N) {
|
|
2603
|
+
_(N);
|
|
2500
2604
|
return;
|
|
2501
2605
|
}
|
|
2502
|
-
E(
|
|
2606
|
+
E(P);
|
|
2503
2607
|
});
|
|
2504
2608
|
});
|
|
2505
|
-
return
|
|
2609
|
+
return b.catch(ae), b;
|
|
2506
2610
|
}
|
|
2507
|
-
function
|
|
2611
|
+
function S() {
|
|
2508
2612
|
if (s.idle())
|
|
2509
2613
|
return new Promise(function(E) {
|
|
2510
2614
|
E();
|
|
2511
2615
|
});
|
|
2512
|
-
var g = s.drain,
|
|
2616
|
+
var g = s.drain, b = new Promise(function(E) {
|
|
2513
2617
|
s.drain = function() {
|
|
2514
2618
|
g(), E();
|
|
2515
2619
|
};
|
|
2516
2620
|
});
|
|
2517
|
-
return
|
|
2621
|
+
return b;
|
|
2518
2622
|
}
|
|
2519
2623
|
}
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
var
|
|
2624
|
+
mr.exports = un;
|
|
2625
|
+
mr.exports.promise = ho;
|
|
2626
|
+
var cn = mr.exports, br = { exports: {} }, We = typeof Reflect == "object" ? Reflect : null, Cr = We && typeof We.apply == "function" ? We.apply : function(e, r, o) {
|
|
2523
2627
|
return Function.prototype.apply.call(e, r, o);
|
|
2524
2628
|
}, dt;
|
|
2525
2629
|
We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
|
|
@@ -2527,52 +2631,52 @@ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertyS
|
|
|
2527
2631
|
} : dt = function(e) {
|
|
2528
2632
|
return Object.getOwnPropertyNames(e);
|
|
2529
2633
|
};
|
|
2530
|
-
function
|
|
2634
|
+
function po(t) {
|
|
2531
2635
|
console && console.warn && console.warn(t);
|
|
2532
2636
|
}
|
|
2533
|
-
var
|
|
2637
|
+
var fn = Number.isNaN || function(e) {
|
|
2534
2638
|
return e !== e;
|
|
2535
2639
|
};
|
|
2536
|
-
function
|
|
2537
|
-
|
|
2640
|
+
function q() {
|
|
2641
|
+
q.init.call(this);
|
|
2538
2642
|
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
var
|
|
2643
|
+
br.exports = q;
|
|
2644
|
+
br.exports.once = bo;
|
|
2645
|
+
q.EventEmitter = q;
|
|
2646
|
+
q.prototype._events = void 0;
|
|
2647
|
+
q.prototype._eventsCount = 0;
|
|
2648
|
+
q.prototype._maxListeners = void 0;
|
|
2649
|
+
var Tr = 10;
|
|
2546
2650
|
function xt(t) {
|
|
2547
2651
|
if (typeof t != "function")
|
|
2548
2652
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
2549
2653
|
}
|
|
2550
|
-
Object.defineProperty(
|
|
2654
|
+
Object.defineProperty(q, "defaultMaxListeners", {
|
|
2551
2655
|
enumerable: !0,
|
|
2552
2656
|
get: function() {
|
|
2553
|
-
return
|
|
2657
|
+
return Tr;
|
|
2554
2658
|
},
|
|
2555
2659
|
set: function(t) {
|
|
2556
|
-
if (typeof t != "number" || t < 0 ||
|
|
2660
|
+
if (typeof t != "number" || t < 0 || fn(t))
|
|
2557
2661
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
2558
|
-
|
|
2662
|
+
Tr = t;
|
|
2559
2663
|
}
|
|
2560
2664
|
});
|
|
2561
|
-
|
|
2665
|
+
q.init = function() {
|
|
2562
2666
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2563
2667
|
};
|
|
2564
|
-
|
|
2565
|
-
if (typeof e != "number" || e < 0 ||
|
|
2668
|
+
q.prototype.setMaxListeners = function(e) {
|
|
2669
|
+
if (typeof e != "number" || e < 0 || fn(e))
|
|
2566
2670
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2567
2671
|
return this._maxListeners = e, this;
|
|
2568
2672
|
};
|
|
2569
|
-
function
|
|
2570
|
-
return t._maxListeners === void 0 ?
|
|
2673
|
+
function ln(t) {
|
|
2674
|
+
return t._maxListeners === void 0 ? q.defaultMaxListeners : t._maxListeners;
|
|
2571
2675
|
}
|
|
2572
|
-
|
|
2573
|
-
return
|
|
2676
|
+
q.prototype.getMaxListeners = function() {
|
|
2677
|
+
return ln(this);
|
|
2574
2678
|
};
|
|
2575
|
-
|
|
2679
|
+
q.prototype.emit = function(e) {
|
|
2576
2680
|
for (var r = [], o = 1; o < arguments.length; o++)
|
|
2577
2681
|
r.push(arguments[o]);
|
|
2578
2682
|
var s = e === "error", u = this._events;
|
|
@@ -2587,17 +2691,17 @@ $.prototype.emit = function(e) {
|
|
|
2587
2691
|
var f = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
|
|
2588
2692
|
throw f.context = l, f;
|
|
2589
2693
|
}
|
|
2590
|
-
var
|
|
2591
|
-
if (
|
|
2694
|
+
var p = u[e];
|
|
2695
|
+
if (p === void 0)
|
|
2592
2696
|
return !1;
|
|
2593
|
-
if (typeof
|
|
2594
|
-
|
|
2697
|
+
if (typeof p == "function")
|
|
2698
|
+
Cr(p, this, r);
|
|
2595
2699
|
else
|
|
2596
|
-
for (var
|
|
2597
|
-
|
|
2700
|
+
for (var S = p.length, g = gn(p, S), o = 0; o < S; ++o)
|
|
2701
|
+
Cr(g[o], this, r);
|
|
2598
2702
|
return !0;
|
|
2599
2703
|
};
|
|
2600
|
-
function
|
|
2704
|
+
function hn(t, e, r, o) {
|
|
2601
2705
|
var s, u, l;
|
|
2602
2706
|
if (xt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
|
|
2603
2707
|
"newListener",
|
|
@@ -2605,35 +2709,35 @@ function fn(t, e, r, o) {
|
|
|
2605
2709
|
r.listener ? r.listener : r
|
|
2606
2710
|
), u = t._events), l = u[e]), l === void 0)
|
|
2607
2711
|
l = u[e] = r, ++t._eventsCount;
|
|
2608
|
-
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s =
|
|
2712
|
+
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) {
|
|
2609
2713
|
l.warned = !0;
|
|
2610
2714
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2611
|
-
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length,
|
|
2715
|
+
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, po(f);
|
|
2612
2716
|
}
|
|
2613
2717
|
return t;
|
|
2614
2718
|
}
|
|
2615
|
-
|
|
2616
|
-
return
|
|
2719
|
+
q.prototype.addListener = function(e, r) {
|
|
2720
|
+
return hn(this, e, r, !1);
|
|
2617
2721
|
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
return
|
|
2722
|
+
q.prototype.on = q.prototype.addListener;
|
|
2723
|
+
q.prototype.prependListener = function(e, r) {
|
|
2724
|
+
return hn(this, e, r, !0);
|
|
2621
2725
|
};
|
|
2622
|
-
function
|
|
2726
|
+
function yo() {
|
|
2623
2727
|
if (!this.fired)
|
|
2624
2728
|
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);
|
|
2625
2729
|
}
|
|
2626
|
-
function
|
|
2627
|
-
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s =
|
|
2730
|
+
function pn(t, e, r) {
|
|
2731
|
+
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = yo.bind(o);
|
|
2628
2732
|
return s.listener = r, o.wrapFn = s, s;
|
|
2629
2733
|
}
|
|
2630
|
-
|
|
2631
|
-
return xt(r), this.on(e,
|
|
2734
|
+
q.prototype.once = function(e, r) {
|
|
2735
|
+
return xt(r), this.on(e, pn(this, e, r)), this;
|
|
2632
2736
|
};
|
|
2633
|
-
|
|
2634
|
-
return xt(r), this.prependListener(e,
|
|
2737
|
+
q.prototype.prependOnceListener = function(e, r) {
|
|
2738
|
+
return xt(r), this.prependListener(e, pn(this, e, r)), this;
|
|
2635
2739
|
};
|
|
2636
|
-
|
|
2740
|
+
q.prototype.removeListener = function(e, r) {
|
|
2637
2741
|
var o, s, u, l, f;
|
|
2638
2742
|
if (xt(r), s = this._events, s === void 0)
|
|
2639
2743
|
return this;
|
|
@@ -2649,12 +2753,12 @@ $.prototype.removeListener = function(e, r) {
|
|
|
2649
2753
|
}
|
|
2650
2754
|
if (u < 0)
|
|
2651
2755
|
return this;
|
|
2652
|
-
u === 0 ? o.shift() :
|
|
2756
|
+
u === 0 ? o.shift() : go(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
|
|
2653
2757
|
}
|
|
2654
2758
|
return this;
|
|
2655
2759
|
};
|
|
2656
|
-
|
|
2657
|
-
|
|
2760
|
+
q.prototype.off = q.prototype.removeListener;
|
|
2761
|
+
q.prototype.removeAllListeners = function(e) {
|
|
2658
2762
|
var r, o, s;
|
|
2659
2763
|
if (o = this._events, o === void 0)
|
|
2660
2764
|
return this;
|
|
@@ -2673,24 +2777,24 @@ $.prototype.removeAllListeners = function(e) {
|
|
|
2673
2777
|
this.removeListener(e, r[s]);
|
|
2674
2778
|
return this;
|
|
2675
2779
|
};
|
|
2676
|
-
function
|
|
2780
|
+
function dn(t, e, r) {
|
|
2677
2781
|
var o = t._events;
|
|
2678
2782
|
if (o === void 0)
|
|
2679
2783
|
return [];
|
|
2680
2784
|
var s = o[e];
|
|
2681
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ?
|
|
2785
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? mo(s) : gn(s, s.length);
|
|
2682
2786
|
}
|
|
2683
|
-
|
|
2684
|
-
return
|
|
2787
|
+
q.prototype.listeners = function(e) {
|
|
2788
|
+
return dn(this, e, !0);
|
|
2685
2789
|
};
|
|
2686
|
-
|
|
2687
|
-
return
|
|
2790
|
+
q.prototype.rawListeners = function(e) {
|
|
2791
|
+
return dn(this, e, !1);
|
|
2688
2792
|
};
|
|
2689
|
-
|
|
2690
|
-
return typeof t.listenerCount == "function" ? t.listenerCount(e) :
|
|
2793
|
+
q.listenerCount = function(t, e) {
|
|
2794
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : yn.call(t, e);
|
|
2691
2795
|
};
|
|
2692
|
-
|
|
2693
|
-
function
|
|
2796
|
+
q.prototype.listenerCount = yn;
|
|
2797
|
+
function yn(t) {
|
|
2694
2798
|
var e = this._events;
|
|
2695
2799
|
if (e !== void 0) {
|
|
2696
2800
|
var r = e[t];
|
|
@@ -2701,25 +2805,25 @@ function pn(t) {
|
|
|
2701
2805
|
}
|
|
2702
2806
|
return 0;
|
|
2703
2807
|
}
|
|
2704
|
-
|
|
2808
|
+
q.prototype.eventNames = function() {
|
|
2705
2809
|
return this._eventsCount > 0 ? dt(this._events) : [];
|
|
2706
2810
|
};
|
|
2707
|
-
function
|
|
2811
|
+
function gn(t, e) {
|
|
2708
2812
|
for (var r = new Array(e), o = 0; o < e; ++o)
|
|
2709
2813
|
r[o] = t[o];
|
|
2710
2814
|
return r;
|
|
2711
2815
|
}
|
|
2712
|
-
function
|
|
2816
|
+
function go(t, e) {
|
|
2713
2817
|
for (; e + 1 < t.length; e++)
|
|
2714
2818
|
t[e] = t[e + 1];
|
|
2715
2819
|
t.pop();
|
|
2716
2820
|
}
|
|
2717
|
-
function
|
|
2821
|
+
function mo(t) {
|
|
2718
2822
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
2719
2823
|
e[r] = t[r].listener || t[r];
|
|
2720
2824
|
return e;
|
|
2721
2825
|
}
|
|
2722
|
-
function
|
|
2826
|
+
function bo(t, e) {
|
|
2723
2827
|
return new Promise(function(r, o) {
|
|
2724
2828
|
function s(l) {
|
|
2725
2829
|
t.removeListener(e, u), o(l);
|
|
@@ -2727,13 +2831,13 @@ function lo(t, e) {
|
|
|
2727
2831
|
function u() {
|
|
2728
2832
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2729
2833
|
}
|
|
2730
|
-
|
|
2834
|
+
mn(t, e, u, { once: !0 }), e !== "error" && wo(t, s, { once: !0 });
|
|
2731
2835
|
});
|
|
2732
2836
|
}
|
|
2733
|
-
function
|
|
2734
|
-
typeof t.on == "function" &&
|
|
2837
|
+
function wo(t, e, r) {
|
|
2838
|
+
typeof t.on == "function" && mn(t, "error", e, r);
|
|
2735
2839
|
}
|
|
2736
|
-
function
|
|
2840
|
+
function mn(t, e, r, o) {
|
|
2737
2841
|
if (typeof t.on == "function")
|
|
2738
2842
|
o.once ? t.once(e, r) : t.on(e, r);
|
|
2739
2843
|
else if (typeof t.addEventListener == "function")
|
|
@@ -2743,7 +2847,7 @@ function yn(t, e, r, o) {
|
|
|
2743
2847
|
else
|
|
2744
2848
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2745
2849
|
}
|
|
2746
|
-
var
|
|
2850
|
+
var bn = br.exports, Bt = {}, wn = {}, vn = function() {
|
|
2747
2851
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2748
2852
|
return !1;
|
|
2749
2853
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2766,57 +2870,57 @@ var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
|
|
|
2766
2870
|
return !1;
|
|
2767
2871
|
}
|
|
2768
2872
|
return !0;
|
|
2769
|
-
},
|
|
2770
|
-
return
|
|
2771
|
-
},
|
|
2772
|
-
return typeof
|
|
2773
|
-
},
|
|
2873
|
+
}, vo = vn, wr = function() {
|
|
2874
|
+
return vo() && !!Symbol.toStringTag;
|
|
2875
|
+
}, Or = typeof Symbol < "u" && Symbol, So = vn, Ao = function() {
|
|
2876
|
+
return typeof Or != "function" || typeof Symbol != "function" || typeof Or("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : So();
|
|
2877
|
+
}, xr = {
|
|
2774
2878
|
foo: {}
|
|
2775
|
-
},
|
|
2776
|
-
return { __proto__:
|
|
2777
|
-
},
|
|
2879
|
+
}, Eo = Object, Io = function() {
|
|
2880
|
+
return { __proto__: xr }.foo === xr.foo && !({ __proto__: null } instanceof Eo);
|
|
2881
|
+
}, Fo = "Function.prototype.bind called on incompatible ", _o = Object.prototype.toString, Co = Math.max, To = "[object Function]", Br = function(e, r) {
|
|
2778
2882
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2779
2883
|
o[s] = e[s];
|
|
2780
2884
|
for (var u = 0; u < r.length; u += 1)
|
|
2781
2885
|
o[u + e.length] = r[u];
|
|
2782
2886
|
return o;
|
|
2783
|
-
},
|
|
2887
|
+
}, Oo = function(e, r) {
|
|
2784
2888
|
for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
|
|
2785
2889
|
o[u] = e[s];
|
|
2786
2890
|
return o;
|
|
2787
|
-
},
|
|
2891
|
+
}, xo = function(t, e) {
|
|
2788
2892
|
for (var r = "", o = 0; o < t.length; o += 1)
|
|
2789
2893
|
r += t[o], o + 1 < t.length && (r += e);
|
|
2790
2894
|
return r;
|
|
2791
|
-
},
|
|
2895
|
+
}, Bo = function(e) {
|
|
2792
2896
|
var r = this;
|
|
2793
|
-
if (typeof r != "function" ||
|
|
2794
|
-
throw new TypeError(
|
|
2795
|
-
for (var o =
|
|
2897
|
+
if (typeof r != "function" || _o.apply(r) !== To)
|
|
2898
|
+
throw new TypeError(Fo + r);
|
|
2899
|
+
for (var o = Oo(arguments, 1), s, u = function() {
|
|
2796
2900
|
if (this instanceof s) {
|
|
2797
2901
|
var g = r.apply(
|
|
2798
2902
|
this,
|
|
2799
|
-
|
|
2903
|
+
Br(o, arguments)
|
|
2800
2904
|
);
|
|
2801
2905
|
return Object(g) === g ? g : this;
|
|
2802
2906
|
}
|
|
2803
2907
|
return r.apply(
|
|
2804
2908
|
e,
|
|
2805
|
-
|
|
2909
|
+
Br(o, arguments)
|
|
2806
2910
|
);
|
|
2807
|
-
}, l =
|
|
2808
|
-
f[
|
|
2809
|
-
if (s = Function("binder", "return function (" +
|
|
2810
|
-
var
|
|
2911
|
+
}, l = Co(0, r.length - o.length), f = [], p = 0; p < l; p++)
|
|
2912
|
+
f[p] = "$" + p;
|
|
2913
|
+
if (s = Function("binder", "return function (" + xo(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2914
|
+
var S = function() {
|
|
2811
2915
|
};
|
|
2812
|
-
|
|
2916
|
+
S.prototype = r.prototype, s.prototype = new S(), S.prototype = null;
|
|
2813
2917
|
}
|
|
2814
2918
|
return s;
|
|
2815
|
-
},
|
|
2816
|
-
return Lt.call(
|
|
2817
|
-
},
|
|
2919
|
+
}, ko = Bo, Sn = Function.prototype.bind || ko, kr = {}.hasOwnProperty, Lt = Function.prototype.call, Po = Lt.bind ? Lt.bind(kr) : function(t, e) {
|
|
2920
|
+
return Lt.call(kr, t, e);
|
|
2921
|
+
}, $, Ye = SyntaxError, An = Function, Je = TypeError, Ut = function(t) {
|
|
2818
2922
|
try {
|
|
2819
|
-
return
|
|
2923
|
+
return An('"use strict"; return (' + t + ").constructor;")();
|
|
2820
2924
|
} catch {
|
|
2821
2925
|
}
|
|
2822
2926
|
}, $e = Object.getOwnPropertyDescriptor;
|
|
@@ -2828,7 +2932,7 @@ if ($e)
|
|
|
2828
2932
|
}
|
|
2829
2933
|
var $t = function() {
|
|
2830
2934
|
throw new Je();
|
|
2831
|
-
},
|
|
2935
|
+
}, Ro = $e ? function() {
|
|
2832
2936
|
try {
|
|
2833
2937
|
return arguments.callee, $t;
|
|
2834
2938
|
} catch {
|
|
@@ -2838,24 +2942,24 @@ var $t = function() {
|
|
|
2838
2942
|
return $t;
|
|
2839
2943
|
}
|
|
2840
2944
|
}
|
|
2841
|
-
}() : $t, Ve =
|
|
2945
|
+
}() : $t, Ve = Ao(), No = Io(), X = Object.getPrototypeOf || (No ? function(t) {
|
|
2842
2946
|
return t.__proto__;
|
|
2843
|
-
} : null),
|
|
2844
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2947
|
+
} : null), Qe = {}, Lo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), je = {
|
|
2948
|
+
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
2845
2949
|
"%Array%": Array,
|
|
2846
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2847
|
-
"%ArrayIteratorPrototype%": Ve &&
|
|
2848
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2849
|
-
"%AsyncFunction%":
|
|
2850
|
-
"%AsyncGenerator%":
|
|
2851
|
-
"%AsyncGeneratorFunction%":
|
|
2852
|
-
"%AsyncIteratorPrototype%":
|
|
2853
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2854
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2855
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2856
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2950
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
2951
|
+
"%ArrayIteratorPrototype%": Ve && X ? X([][Symbol.iterator]()) : $,
|
|
2952
|
+
"%AsyncFromSyncIteratorPrototype%": $,
|
|
2953
|
+
"%AsyncFunction%": Qe,
|
|
2954
|
+
"%AsyncGenerator%": Qe,
|
|
2955
|
+
"%AsyncGeneratorFunction%": Qe,
|
|
2956
|
+
"%AsyncIteratorPrototype%": Qe,
|
|
2957
|
+
"%Atomics%": typeof Atomics > "u" ? $ : Atomics,
|
|
2958
|
+
"%BigInt%": typeof BigInt > "u" ? $ : BigInt,
|
|
2959
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
|
|
2960
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? $ : BigUint64Array,
|
|
2857
2961
|
"%Boolean%": Boolean,
|
|
2858
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2962
|
+
"%DataView%": typeof DataView > "u" ? $ : DataView,
|
|
2859
2963
|
"%Date%": Date,
|
|
2860
2964
|
"%decodeURI%": decodeURI,
|
|
2861
2965
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2865,58 +2969,58 @@ var $t = function() {
|
|
|
2865
2969
|
"%eval%": eval,
|
|
2866
2970
|
// eslint-disable-line no-eval
|
|
2867
2971
|
"%EvalError%": EvalError,
|
|
2868
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2869
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2870
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2871
|
-
"%Function%":
|
|
2872
|
-
"%GeneratorFunction%":
|
|
2873
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2874
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2875
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2972
|
+
"%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
|
|
2973
|
+
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
|
|
2974
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
|
|
2975
|
+
"%Function%": An,
|
|
2976
|
+
"%GeneratorFunction%": Qe,
|
|
2977
|
+
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
|
|
2978
|
+
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
|
|
2979
|
+
"%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
|
|
2876
2980
|
"%isFinite%": isFinite,
|
|
2877
2981
|
"%isNaN%": isNaN,
|
|
2878
|
-
"%IteratorPrototype%": Ve &&
|
|
2879
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2880
|
-
"%Map%": typeof Map > "u" ?
|
|
2881
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Ve || !
|
|
2982
|
+
"%IteratorPrototype%": Ve && X ? X(X([][Symbol.iterator]())) : $,
|
|
2983
|
+
"%JSON%": typeof JSON == "object" ? JSON : $,
|
|
2984
|
+
"%Map%": typeof Map > "u" ? $ : Map,
|
|
2985
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Ve || !X ? $ : X((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2882
2986
|
"%Math%": Math,
|
|
2883
2987
|
"%Number%": Number,
|
|
2884
2988
|
"%Object%": Object,
|
|
2885
2989
|
"%parseFloat%": parseFloat,
|
|
2886
2990
|
"%parseInt%": parseInt,
|
|
2887
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2888
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2991
|
+
"%Promise%": typeof Promise > "u" ? $ : Promise,
|
|
2992
|
+
"%Proxy%": typeof Proxy > "u" ? $ : Proxy,
|
|
2889
2993
|
"%RangeError%": RangeError,
|
|
2890
2994
|
"%ReferenceError%": ReferenceError,
|
|
2891
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2995
|
+
"%Reflect%": typeof Reflect > "u" ? $ : Reflect,
|
|
2892
2996
|
"%RegExp%": RegExp,
|
|
2893
|
-
"%Set%": typeof Set > "u" ?
|
|
2894
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Ve || !
|
|
2895
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2997
|
+
"%Set%": typeof Set > "u" ? $ : Set,
|
|
2998
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Ve || !X ? $ : X((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2999
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
|
|
2896
3000
|
"%String%": String,
|
|
2897
|
-
"%StringIteratorPrototype%": Ve &&
|
|
2898
|
-
"%Symbol%": Ve ? Symbol :
|
|
3001
|
+
"%StringIteratorPrototype%": Ve && X ? X(""[Symbol.iterator]()) : $,
|
|
3002
|
+
"%Symbol%": Ve ? Symbol : $,
|
|
2899
3003
|
"%SyntaxError%": Ye,
|
|
2900
|
-
"%ThrowTypeError%":
|
|
2901
|
-
"%TypedArray%":
|
|
3004
|
+
"%ThrowTypeError%": Ro,
|
|
3005
|
+
"%TypedArray%": Lo,
|
|
2902
3006
|
"%TypeError%": Je,
|
|
2903
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2904
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2905
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2906
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
3007
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
3008
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
3009
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
|
|
3010
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? $ : Uint32Array,
|
|
2907
3011
|
"%URIError%": URIError,
|
|
2908
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2909
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2910
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
3012
|
+
"%WeakMap%": typeof WeakMap > "u" ? $ : WeakMap,
|
|
3013
|
+
"%WeakRef%": typeof WeakRef > "u" ? $ : WeakRef,
|
|
3014
|
+
"%WeakSet%": typeof WeakSet > "u" ? $ : WeakSet
|
|
2911
3015
|
};
|
|
2912
|
-
if (
|
|
3016
|
+
if (X)
|
|
2913
3017
|
try {
|
|
2914
3018
|
null.error;
|
|
2915
3019
|
} catch (t) {
|
|
2916
|
-
var
|
|
2917
|
-
|
|
3020
|
+
var Uo = X(X(t));
|
|
3021
|
+
je["%Error.prototype%"] = Uo;
|
|
2918
3022
|
}
|
|
2919
|
-
var
|
|
3023
|
+
var $o = function t(e) {
|
|
2920
3024
|
var r;
|
|
2921
3025
|
if (e === "%AsyncFunction%")
|
|
2922
3026
|
r = Ut("async function () {}");
|
|
@@ -2929,10 +3033,10 @@ var ko = function t(e) {
|
|
|
2929
3033
|
o && (r = o.prototype);
|
|
2930
3034
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
2931
3035
|
var s = t("%AsyncGenerator%");
|
|
2932
|
-
s &&
|
|
3036
|
+
s && X && (r = X(s.prototype));
|
|
2933
3037
|
}
|
|
2934
|
-
return
|
|
2935
|
-
},
|
|
3038
|
+
return je[e] = r, r;
|
|
3039
|
+
}, Pr = {
|
|
2936
3040
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2937
3041
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
2938
3042
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -2984,21 +3088,21 @@ var ko = function t(e) {
|
|
|
2984
3088
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2985
3089
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2986
3090
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2987
|
-
}, ft =
|
|
3091
|
+
}, ft = Sn, St = Po, jo = ft.call(Function.call, Array.prototype.concat), Do = ft.call(Function.apply, Array.prototype.splice), Rr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), Mo = ft.call(Function.call, RegExp.prototype.exec), Vo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qo = /\\(\\)?/g, Qo = function(e) {
|
|
2988
3092
|
var r = At(e, 0, 1), o = At(e, -1);
|
|
2989
3093
|
if (r === "%" && o !== "%")
|
|
2990
3094
|
throw new Ye("invalid intrinsic syntax, expected closing `%`");
|
|
2991
3095
|
if (o === "%" && r !== "%")
|
|
2992
3096
|
throw new Ye("invalid intrinsic syntax, expected opening `%`");
|
|
2993
3097
|
var s = [];
|
|
2994
|
-
return
|
|
2995
|
-
s[s.length] = f ?
|
|
3098
|
+
return Rr(e, Vo, function(u, l, f, p) {
|
|
3099
|
+
s[s.length] = f ? Rr(p, qo, "$1") : l || u;
|
|
2996
3100
|
}), s;
|
|
2997
|
-
},
|
|
3101
|
+
}, Go = function(e, r) {
|
|
2998
3102
|
var o = e, s;
|
|
2999
|
-
if (St(
|
|
3000
|
-
var u =
|
|
3001
|
-
if (u ===
|
|
3103
|
+
if (St(Pr, o) && (s = Pr[o], o = "%" + s[0] + "%"), St(je, o)) {
|
|
3104
|
+
var u = je[o];
|
|
3105
|
+
if (u === Qe && (u = $o(o)), typeof u > "u" && !r)
|
|
3002
3106
|
throw new Je("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3003
3107
|
return {
|
|
3004
3108
|
alias: s,
|
|
@@ -3012,16 +3116,16 @@ var ko = function t(e) {
|
|
|
3012
3116
|
throw new Je("intrinsic name must be a non-empty string");
|
|
3013
3117
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3014
3118
|
throw new Je('"allowMissing" argument must be a boolean');
|
|
3015
|
-
if (
|
|
3119
|
+
if (Mo(/^%?[^%]*%?$/, e) === null)
|
|
3016
3120
|
throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3017
|
-
var o =
|
|
3018
|
-
|
|
3019
|
-
for (var g = 1,
|
|
3020
|
-
var E = o[g],
|
|
3021
|
-
if ((
|
|
3121
|
+
var o = Qo(e), s = o.length > 0 ? o[0] : "", u = Go("%" + s + "%", r), l = u.name, f = u.value, p = !1, S = u.alias;
|
|
3122
|
+
S && (s = S[0], Do(o, jo([0, 1], S)));
|
|
3123
|
+
for (var g = 1, b = !0; g < o.length; g += 1) {
|
|
3124
|
+
var E = o[g], _ = At(E, 0, 1), N = At(E, -1);
|
|
3125
|
+
if ((_ === '"' || _ === "'" || _ === "`" || N === '"' || N === "'" || N === "`") && _ !== N)
|
|
3022
3126
|
throw new Ye("property names with quotes must have matching quotes");
|
|
3023
|
-
if ((E === "constructor" || !
|
|
3024
|
-
f =
|
|
3127
|
+
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(je, l))
|
|
3128
|
+
f = je[l];
|
|
3025
3129
|
else if (f != null) {
|
|
3026
3130
|
if (!(E in f)) {
|
|
3027
3131
|
if (!r)
|
|
@@ -3029,15 +3133,15 @@ var ko = function t(e) {
|
|
|
3029
3133
|
return;
|
|
3030
3134
|
}
|
|
3031
3135
|
if ($e && g + 1 >= o.length) {
|
|
3032
|
-
var
|
|
3033
|
-
|
|
3136
|
+
var P = $e(f, E);
|
|
3137
|
+
b = !!P, b && "get" in P && !("originalValue" in P.get) ? f = P.get : f = f[E];
|
|
3034
3138
|
} else
|
|
3035
|
-
|
|
3036
|
-
|
|
3139
|
+
b = St(f, E), f = f[E];
|
|
3140
|
+
b && !p && (je[l] = f);
|
|
3037
3141
|
}
|
|
3038
3142
|
}
|
|
3039
3143
|
return f;
|
|
3040
|
-
},
|
|
3144
|
+
}, En = { exports: {} }, zo = Ze, er = zo("%Object.defineProperty%", !0), tr = function() {
|
|
3041
3145
|
if (er)
|
|
3042
3146
|
try {
|
|
3043
3147
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3055,21 +3159,21 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3055
3159
|
return !0;
|
|
3056
3160
|
}
|
|
3057
3161
|
};
|
|
3058
|
-
var
|
|
3162
|
+
var In = tr, Ko = Ze, yt = Ko("%Object.getOwnPropertyDescriptor%", !0);
|
|
3059
3163
|
if (yt)
|
|
3060
3164
|
try {
|
|
3061
3165
|
yt([], "length");
|
|
3062
3166
|
} catch {
|
|
3063
3167
|
yt = null;
|
|
3064
3168
|
}
|
|
3065
|
-
var
|
|
3169
|
+
var vr = yt, Ho = In(), Sr = Ze, ut = Ho && Sr("%Object.defineProperty%", !0);
|
|
3066
3170
|
if (ut)
|
|
3067
3171
|
try {
|
|
3068
3172
|
ut({}, "a", { value: 1 });
|
|
3069
3173
|
} catch {
|
|
3070
3174
|
ut = !1;
|
|
3071
3175
|
}
|
|
3072
|
-
var
|
|
3176
|
+
var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e, r, o) {
|
|
3073
3177
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3074
3178
|
throw new qe("`obj` must be an object or a function`");
|
|
3075
3179
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3082,88 +3186,88 @@ var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e,
|
|
|
3082
3186
|
throw new qe("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3083
3187
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3084
3188
|
throw new qe("`loose`, if provided, must be a boolean");
|
|
3085
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1,
|
|
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 = !!Nr && Nr(e, r);
|
|
3086
3190
|
if (ut)
|
|
3087
3191
|
ut(e, r, {
|
|
3088
|
-
configurable: l === null &&
|
|
3089
|
-
enumerable: s === null &&
|
|
3192
|
+
configurable: l === null && p ? p.configurable : !l,
|
|
3193
|
+
enumerable: s === null && p ? p.enumerable : !s,
|
|
3090
3194
|
value: o,
|
|
3091
|
-
writable: u === null &&
|
|
3195
|
+
writable: u === null && p ? p.writable : !u
|
|
3092
3196
|
});
|
|
3093
3197
|
else if (f || !s && !u && !l)
|
|
3094
3198
|
e[r] = o;
|
|
3095
3199
|
else
|
|
3096
|
-
throw new
|
|
3097
|
-
},
|
|
3200
|
+
throw new Wo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3201
|
+
}, Fn = Ze, Lr = Jo, Yo = In(), Ur = vr, $r = Fn("%TypeError%"), Xo = Fn("%Math.floor%"), Zo = function(e, r) {
|
|
3098
3202
|
if (typeof e != "function")
|
|
3099
|
-
throw new
|
|
3100
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3101
|
-
throw new
|
|
3203
|
+
throw new $r("`fn` is not a function");
|
|
3204
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || Xo(r) !== r)
|
|
3205
|
+
throw new $r("`length` must be a positive 32-bit integer");
|
|
3102
3206
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3103
|
-
if ("length" in e &&
|
|
3104
|
-
var l =
|
|
3207
|
+
if ("length" in e && Ur) {
|
|
3208
|
+
var l = Ur(e, "length");
|
|
3105
3209
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3106
3210
|
}
|
|
3107
|
-
return (s || u || !o) && (
|
|
3211
|
+
return (s || u || !o) && (Yo ? Lr(e, "length", r, !0, !0) : Lr(e, "length", r)), e;
|
|
3108
3212
|
};
|
|
3109
3213
|
(function(t) {
|
|
3110
|
-
var e =
|
|
3111
|
-
if (
|
|
3214
|
+
var e = Sn, r = Ze, o = Zo, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), S = r("%Math.max%");
|
|
3215
|
+
if (p)
|
|
3112
3216
|
try {
|
|
3113
|
-
|
|
3217
|
+
p({}, "a", { value: 1 });
|
|
3114
3218
|
} catch {
|
|
3115
|
-
|
|
3219
|
+
p = null;
|
|
3116
3220
|
}
|
|
3117
3221
|
t.exports = function(E) {
|
|
3118
3222
|
if (typeof E != "function")
|
|
3119
3223
|
throw new s("a function is required");
|
|
3120
|
-
var
|
|
3224
|
+
var _ = f(e, l, arguments);
|
|
3121
3225
|
return o(
|
|
3122
|
-
|
|
3123
|
-
1 +
|
|
3226
|
+
_,
|
|
3227
|
+
1 + S(0, E.length - (arguments.length - 1)),
|
|
3124
3228
|
!0
|
|
3125
3229
|
);
|
|
3126
3230
|
};
|
|
3127
3231
|
var g = function() {
|
|
3128
3232
|
return f(e, u, arguments);
|
|
3129
3233
|
};
|
|
3130
|
-
|
|
3131
|
-
})(
|
|
3132
|
-
var
|
|
3133
|
-
var o =
|
|
3134
|
-
return typeof o == "function" &&
|
|
3135
|
-
},
|
|
3136
|
-
return
|
|
3137
|
-
},
|
|
3234
|
+
p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3235
|
+
})(En);
|
|
3236
|
+
var _n = En.exports, Cn = Ze, Tn = _n, es = Tn(Cn("String.prototype.indexOf")), On = function(e, r) {
|
|
3237
|
+
var o = Cn(e, !!r);
|
|
3238
|
+
return typeof o == "function" && es(e, ".prototype.") > -1 ? Tn(o) : o;
|
|
3239
|
+
}, ts = wr(), rs = On, rr = rs("Object.prototype.toString"), kt = function(e) {
|
|
3240
|
+
return ts && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3241
|
+
}, xn = function(e) {
|
|
3138
3242
|
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]";
|
|
3139
|
-
},
|
|
3243
|
+
}, ns = function() {
|
|
3140
3244
|
return kt(arguments);
|
|
3141
3245
|
}();
|
|
3142
|
-
kt.isLegacyArguments =
|
|
3143
|
-
var
|
|
3144
|
-
if (!
|
|
3246
|
+
kt.isLegacyArguments = xn;
|
|
3247
|
+
var is = ns ? kt : xn, os = Object.prototype.toString, ss = Function.prototype.toString, as = /^\s*(?:function)?\*/, Bn = wr(), jt = Object.getPrototypeOf, us = function() {
|
|
3248
|
+
if (!Bn)
|
|
3145
3249
|
return !1;
|
|
3146
3250
|
try {
|
|
3147
3251
|
return Function("return function*() {}")();
|
|
3148
3252
|
} catch {
|
|
3149
3253
|
}
|
|
3150
|
-
},
|
|
3254
|
+
}, Dt, cs = function(e) {
|
|
3151
3255
|
if (typeof e != "function")
|
|
3152
3256
|
return !1;
|
|
3153
|
-
if (
|
|
3257
|
+
if (as.test(ss.call(e)))
|
|
3154
3258
|
return !0;
|
|
3155
|
-
if (!
|
|
3156
|
-
var r =
|
|
3259
|
+
if (!Bn) {
|
|
3260
|
+
var r = os.call(e);
|
|
3157
3261
|
return r === "[object GeneratorFunction]";
|
|
3158
3262
|
}
|
|
3159
|
-
if (!
|
|
3263
|
+
if (!jt)
|
|
3160
3264
|
return !1;
|
|
3161
|
-
if (typeof
|
|
3162
|
-
var o =
|
|
3163
|
-
|
|
3265
|
+
if (typeof Dt > "u") {
|
|
3266
|
+
var o = us();
|
|
3267
|
+
Dt = o ? jt(o) : !1;
|
|
3164
3268
|
}
|
|
3165
|
-
return
|
|
3166
|
-
},
|
|
3269
|
+
return jt(e) === Dt;
|
|
3270
|
+
}, kn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
|
|
3167
3271
|
if (typeof ze == "function" && typeof Object.defineProperty == "function")
|
|
3168
3272
|
try {
|
|
3169
3273
|
nr = Object.defineProperty({}, "length", {
|
|
@@ -3178,35 +3282,35 @@ if (typeof ze == "function" && typeof Object.defineProperty == "function")
|
|
|
3178
3282
|
}
|
|
3179
3283
|
else
|
|
3180
3284
|
ze = null;
|
|
3181
|
-
var
|
|
3285
|
+
var fs = /^\s*class\b/, ir = function(e) {
|
|
3182
3286
|
try {
|
|
3183
|
-
var r =
|
|
3184
|
-
return
|
|
3287
|
+
var r = kn.call(e);
|
|
3288
|
+
return fs.test(r);
|
|
3185
3289
|
} catch {
|
|
3186
3290
|
return !1;
|
|
3187
3291
|
}
|
|
3188
3292
|
}, Mt = function(e) {
|
|
3189
3293
|
try {
|
|
3190
|
-
return ir(e) ? !1 : (
|
|
3294
|
+
return ir(e) ? !1 : (kn.call(e), !0);
|
|
3191
3295
|
} catch {
|
|
3192
3296
|
return !1;
|
|
3193
3297
|
}
|
|
3194
|
-
}, mt = Object.prototype.toString,
|
|
3298
|
+
}, mt = Object.prototype.toString, ls = "[object Object]", hs = "[object Function]", ps = "[object GeneratorFunction]", ds = "[object HTMLAllCollection]", ys = "[object HTML document.all class]", gs = "[object HTMLCollection]", ms = typeof Symbol == "function" && !!Symbol.toStringTag, bs = !(0 in [,]), or = function() {
|
|
3195
3299
|
return !1;
|
|
3196
3300
|
};
|
|
3197
3301
|
if (typeof document == "object") {
|
|
3198
|
-
var
|
|
3199
|
-
mt.call(
|
|
3200
|
-
if ((
|
|
3302
|
+
var ws = document.all;
|
|
3303
|
+
mt.call(ws) === mt.call(document.all) && (or = function(e) {
|
|
3304
|
+
if ((bs || !e) && (typeof e > "u" || typeof e == "object"))
|
|
3201
3305
|
try {
|
|
3202
3306
|
var r = mt.call(e);
|
|
3203
|
-
return (r ===
|
|
3307
|
+
return (r === ds || r === ys || r === gs || r === ls) && e("") == null;
|
|
3204
3308
|
} catch {
|
|
3205
3309
|
}
|
|
3206
3310
|
return !1;
|
|
3207
3311
|
});
|
|
3208
3312
|
}
|
|
3209
|
-
var
|
|
3313
|
+
var vs = ze ? function(e) {
|
|
3210
3314
|
if (or(e))
|
|
3211
3315
|
return !0;
|
|
3212
3316
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
@@ -3223,27 +3327,27 @@ var ds = ze ? function(e) {
|
|
|
3223
3327
|
return !0;
|
|
3224
3328
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3225
3329
|
return !1;
|
|
3226
|
-
if (
|
|
3330
|
+
if (ms)
|
|
3227
3331
|
return Mt(e);
|
|
3228
3332
|
if (ir(e))
|
|
3229
3333
|
return !1;
|
|
3230
3334
|
var r = mt.call(e);
|
|
3231
|
-
return r !==
|
|
3232
|
-
},
|
|
3335
|
+
return r !== hs && r !== ps && !/^\[object HTML/.test(r) ? !1 : Mt(e);
|
|
3336
|
+
}, Ss = vs, As = Object.prototype.toString, Pn = Object.prototype.hasOwnProperty, Es = function(e, r, o) {
|
|
3233
3337
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3234
|
-
|
|
3235
|
-
},
|
|
3338
|
+
Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3339
|
+
}, Is = function(e, r, o) {
|
|
3236
3340
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3237
3341
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3238
|
-
},
|
|
3342
|
+
}, Fs = function(e, r, o) {
|
|
3239
3343
|
for (var s in e)
|
|
3240
|
-
|
|
3241
|
-
},
|
|
3242
|
-
if (!
|
|
3344
|
+
Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3345
|
+
}, _s = function(e, r, o) {
|
|
3346
|
+
if (!Ss(r))
|
|
3243
3347
|
throw new TypeError("iterator must be a function");
|
|
3244
3348
|
var s;
|
|
3245
|
-
arguments.length >= 3 && (s = o),
|
|
3246
|
-
},
|
|
3349
|
+
arguments.length >= 3 && (s = o), As.call(e) === "[object Array]" ? Es(e, r, s) : typeof e == "string" ? Is(e, r, s) : Fs(e, r, s);
|
|
3350
|
+
}, Cs = _s, Vt = [
|
|
3247
3351
|
"BigInt64Array",
|
|
3248
3352
|
"BigUint64Array",
|
|
3249
3353
|
"Float32Array",
|
|
@@ -3255,70 +3359,70 @@ var ds = ze ? function(e) {
|
|
|
3255
3359
|
"Uint32Array",
|
|
3256
3360
|
"Uint8Array",
|
|
3257
3361
|
"Uint8ClampedArray"
|
|
3258
|
-
],
|
|
3362
|
+
], Ts = typeof globalThis > "u" ? Yr : globalThis, Os = function() {
|
|
3259
3363
|
for (var e = [], r = 0; r < Vt.length; r++)
|
|
3260
|
-
typeof
|
|
3364
|
+
typeof Ts[Vt[r]] == "function" && (e[e.length] = Vt[r]);
|
|
3261
3365
|
return e;
|
|
3262
|
-
}, Et =
|
|
3366
|
+
}, Et = Cs, xs = Os, jr = _n, Ar = On, bt = vr, Bs = Ar("Object.prototype.toString"), Rn = wr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = xs(), Er = Ar("String.prototype.slice"), qt = Object.getPrototypeOf, ks = Ar("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3263
3367
|
for (var o = 0; o < e.length; o += 1)
|
|
3264
3368
|
if (e[o] === r)
|
|
3265
3369
|
return o;
|
|
3266
3370
|
return -1;
|
|
3267
3371
|
}, It = { __proto__: null };
|
|
3268
|
-
|
|
3269
|
-
var e = new
|
|
3372
|
+
Rn && bt && qt ? Et(sr, function(t) {
|
|
3373
|
+
var e = new Dr[t]();
|
|
3270
3374
|
if (Symbol.toStringTag in e) {
|
|
3271
3375
|
var r = qt(e), o = bt(r, Symbol.toStringTag);
|
|
3272
3376
|
if (!o) {
|
|
3273
3377
|
var s = qt(r);
|
|
3274
3378
|
o = bt(s, Symbol.toStringTag);
|
|
3275
3379
|
}
|
|
3276
|
-
It["$" + t] =
|
|
3380
|
+
It["$" + t] = jr(o.get);
|
|
3277
3381
|
}
|
|
3278
3382
|
}) : Et(sr, function(t) {
|
|
3279
|
-
var e = new
|
|
3280
|
-
r && (It["$" + t] =
|
|
3383
|
+
var e = new Dr[t](), r = e.slice || e.set;
|
|
3384
|
+
r && (It["$" + t] = jr(r));
|
|
3281
3385
|
});
|
|
3282
|
-
var
|
|
3386
|
+
var Ps = function(e) {
|
|
3283
3387
|
var r = !1;
|
|
3284
3388
|
return Et(It, function(o, s) {
|
|
3285
3389
|
if (!r)
|
|
3286
3390
|
try {
|
|
3287
|
-
"$" + o(e) === s && (r =
|
|
3391
|
+
"$" + o(e) === s && (r = Er(s, 1));
|
|
3288
3392
|
} catch {
|
|
3289
3393
|
}
|
|
3290
3394
|
}), r;
|
|
3291
|
-
},
|
|
3395
|
+
}, Rs = function(e) {
|
|
3292
3396
|
var r = !1;
|
|
3293
3397
|
return Et(It, function(o, s) {
|
|
3294
3398
|
if (!r)
|
|
3295
3399
|
try {
|
|
3296
|
-
o(e), r =
|
|
3400
|
+
o(e), r = Er(s, 1);
|
|
3297
3401
|
} catch {
|
|
3298
3402
|
}
|
|
3299
3403
|
}), r;
|
|
3300
|
-
},
|
|
3404
|
+
}, Nn = function(e) {
|
|
3301
3405
|
if (!e || typeof e != "object")
|
|
3302
3406
|
return !1;
|
|
3303
|
-
if (!
|
|
3304
|
-
var r =
|
|
3305
|
-
return
|
|
3407
|
+
if (!Rn) {
|
|
3408
|
+
var r = Er(Bs(e), 8, -1);
|
|
3409
|
+
return ks(sr, r) > -1 ? r : r !== "Object" ? !1 : Rs(e);
|
|
3306
3410
|
}
|
|
3307
|
-
return bt ?
|
|
3308
|
-
},
|
|
3309
|
-
return !!
|
|
3411
|
+
return bt ? Ps(e) : null;
|
|
3412
|
+
}, Ns = Nn, Ls = function(e) {
|
|
3413
|
+
return !!Ns(e);
|
|
3310
3414
|
};
|
|
3311
3415
|
(function(t) {
|
|
3312
|
-
var e =
|
|
3416
|
+
var e = is, r = cs, o = Nn, s = Ls;
|
|
3313
3417
|
function u(v) {
|
|
3314
3418
|
return v.call.bind(v);
|
|
3315
3419
|
}
|
|
3316
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u",
|
|
3420
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString), S = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), b = u(Boolean.prototype.valueOf);
|
|
3317
3421
|
if (l)
|
|
3318
3422
|
var E = u(BigInt.prototype.valueOf);
|
|
3319
3423
|
if (f)
|
|
3320
|
-
var
|
|
3321
|
-
function
|
|
3424
|
+
var _ = u(Symbol.prototype.valueOf);
|
|
3425
|
+
function N(v, ht) {
|
|
3322
3426
|
if (typeof v != "object")
|
|
3323
3427
|
return !1;
|
|
3324
3428
|
try {
|
|
@@ -3328,76 +3432,76 @@ var Ts = function(e) {
|
|
|
3328
3432
|
}
|
|
3329
3433
|
}
|
|
3330
3434
|
t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
|
|
3331
|
-
function
|
|
3435
|
+
function P(v) {
|
|
3332
3436
|
return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
|
|
3333
3437
|
}
|
|
3334
|
-
t.isPromise =
|
|
3335
|
-
function
|
|
3336
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) ||
|
|
3438
|
+
t.isPromise = P;
|
|
3439
|
+
function K(v) {
|
|
3440
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) || w(v);
|
|
3337
3441
|
}
|
|
3338
|
-
t.isArrayBufferView =
|
|
3339
|
-
function
|
|
3442
|
+
t.isArrayBufferView = K;
|
|
3443
|
+
function I(v) {
|
|
3340
3444
|
return o(v) === "Uint8Array";
|
|
3341
3445
|
}
|
|
3342
|
-
t.isUint8Array =
|
|
3343
|
-
function
|
|
3446
|
+
t.isUint8Array = I;
|
|
3447
|
+
function C(v) {
|
|
3344
3448
|
return o(v) === "Uint8ClampedArray";
|
|
3345
3449
|
}
|
|
3346
|
-
t.isUint8ClampedArray =
|
|
3347
|
-
function
|
|
3450
|
+
t.isUint8ClampedArray = C;
|
|
3451
|
+
function j(v) {
|
|
3348
3452
|
return o(v) === "Uint16Array";
|
|
3349
3453
|
}
|
|
3350
|
-
t.isUint16Array =
|
|
3351
|
-
function
|
|
3454
|
+
t.isUint16Array = j;
|
|
3455
|
+
function U(v) {
|
|
3352
3456
|
return o(v) === "Uint32Array";
|
|
3353
3457
|
}
|
|
3354
|
-
t.isUint32Array =
|
|
3355
|
-
function
|
|
3458
|
+
t.isUint32Array = U;
|
|
3459
|
+
function F(v) {
|
|
3356
3460
|
return o(v) === "Int8Array";
|
|
3357
3461
|
}
|
|
3358
|
-
t.isInt8Array =
|
|
3359
|
-
function
|
|
3462
|
+
t.isInt8Array = F;
|
|
3463
|
+
function x(v) {
|
|
3360
3464
|
return o(v) === "Int16Array";
|
|
3361
3465
|
}
|
|
3362
|
-
t.isInt16Array =
|
|
3363
|
-
function
|
|
3466
|
+
t.isInt16Array = x;
|
|
3467
|
+
function k(v) {
|
|
3364
3468
|
return o(v) === "Int32Array";
|
|
3365
3469
|
}
|
|
3366
|
-
t.isInt32Array =
|
|
3367
|
-
function
|
|
3470
|
+
t.isInt32Array = k;
|
|
3471
|
+
function G(v) {
|
|
3368
3472
|
return o(v) === "Float32Array";
|
|
3369
3473
|
}
|
|
3370
|
-
t.isFloat32Array =
|
|
3371
|
-
function
|
|
3474
|
+
t.isFloat32Array = G;
|
|
3475
|
+
function ie(v) {
|
|
3372
3476
|
return o(v) === "Float64Array";
|
|
3373
3477
|
}
|
|
3374
|
-
t.isFloat64Array =
|
|
3375
|
-
function
|
|
3478
|
+
t.isFloat64Array = ie;
|
|
3479
|
+
function Te(v) {
|
|
3376
3480
|
return o(v) === "BigInt64Array";
|
|
3377
3481
|
}
|
|
3378
|
-
t.isBigInt64Array =
|
|
3482
|
+
t.isBigInt64Array = Te;
|
|
3379
3483
|
function Se(v) {
|
|
3380
3484
|
return o(v) === "BigUint64Array";
|
|
3381
3485
|
}
|
|
3382
3486
|
t.isBigUint64Array = Se;
|
|
3383
|
-
function
|
|
3384
|
-
return
|
|
3487
|
+
function fe(v) {
|
|
3488
|
+
return p(v) === "[object Map]";
|
|
3385
3489
|
}
|
|
3386
|
-
|
|
3490
|
+
fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
|
|
3387
3491
|
function tt(v) {
|
|
3388
|
-
return typeof Map > "u" ? !1 :
|
|
3492
|
+
return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
|
|
3389
3493
|
}
|
|
3390
3494
|
t.isMap = tt;
|
|
3391
|
-
function
|
|
3392
|
-
return
|
|
3495
|
+
function le(v) {
|
|
3496
|
+
return p(v) === "[object Set]";
|
|
3393
3497
|
}
|
|
3394
|
-
|
|
3498
|
+
le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
|
|
3395
3499
|
function Oe(v) {
|
|
3396
|
-
return typeof Set > "u" ? !1 :
|
|
3500
|
+
return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
|
|
3397
3501
|
}
|
|
3398
3502
|
t.isSet = Oe;
|
|
3399
3503
|
function xe(v) {
|
|
3400
|
-
return
|
|
3504
|
+
return p(v) === "[object WeakMap]";
|
|
3401
3505
|
}
|
|
3402
3506
|
xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
|
|
3403
3507
|
function rt(v) {
|
|
@@ -3405,83 +3509,83 @@ var Ts = function(e) {
|
|
|
3405
3509
|
}
|
|
3406
3510
|
t.isWeakMap = rt;
|
|
3407
3511
|
function Be(v) {
|
|
3408
|
-
return
|
|
3512
|
+
return p(v) === "[object WeakSet]";
|
|
3409
3513
|
}
|
|
3410
3514
|
Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
|
|
3411
|
-
function
|
|
3515
|
+
function he(v) {
|
|
3412
3516
|
return Be(v);
|
|
3413
3517
|
}
|
|
3414
|
-
t.isWeakSet =
|
|
3518
|
+
t.isWeakSet = he;
|
|
3415
3519
|
function ke(v) {
|
|
3416
|
-
return
|
|
3520
|
+
return p(v) === "[object ArrayBuffer]";
|
|
3417
3521
|
}
|
|
3418
3522
|
ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
|
|
3419
|
-
function
|
|
3523
|
+
function H(v) {
|
|
3420
3524
|
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(v) : v instanceof ArrayBuffer;
|
|
3421
3525
|
}
|
|
3422
|
-
t.isArrayBuffer =
|
|
3423
|
-
function
|
|
3424
|
-
return
|
|
3526
|
+
t.isArrayBuffer = H;
|
|
3527
|
+
function d(v) {
|
|
3528
|
+
return p(v) === "[object DataView]";
|
|
3425
3529
|
}
|
|
3426
|
-
|
|
3427
|
-
function
|
|
3428
|
-
return typeof DataView > "u" ? !1 :
|
|
3530
|
+
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3531
|
+
function w(v) {
|
|
3532
|
+
return typeof DataView > "u" ? !1 : d.working ? d(v) : v instanceof DataView;
|
|
3429
3533
|
}
|
|
3430
|
-
t.isDataView =
|
|
3431
|
-
var
|
|
3432
|
-
function
|
|
3433
|
-
return
|
|
3534
|
+
t.isDataView = w;
|
|
3535
|
+
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3536
|
+
function T(v) {
|
|
3537
|
+
return p(v) === "[object SharedArrayBuffer]";
|
|
3434
3538
|
}
|
|
3435
|
-
function
|
|
3436
|
-
return typeof
|
|
3539
|
+
function D(v) {
|
|
3540
|
+
return typeof A > "u" ? !1 : (typeof T.working > "u" && (T.working = T(new A())), T.working ? T(v) : v instanceof A);
|
|
3437
3541
|
}
|
|
3438
|
-
t.isSharedArrayBuffer =
|
|
3439
|
-
function
|
|
3440
|
-
return
|
|
3542
|
+
t.isSharedArrayBuffer = D;
|
|
3543
|
+
function M(v) {
|
|
3544
|
+
return p(v) === "[object AsyncFunction]";
|
|
3441
3545
|
}
|
|
3442
|
-
t.isAsyncFunction =
|
|
3443
|
-
function
|
|
3444
|
-
return
|
|
3546
|
+
t.isAsyncFunction = M;
|
|
3547
|
+
function B(v) {
|
|
3548
|
+
return p(v) === "[object Map Iterator]";
|
|
3445
3549
|
}
|
|
3446
|
-
t.isMapIterator =
|
|
3447
|
-
function
|
|
3448
|
-
return
|
|
3550
|
+
t.isMapIterator = B;
|
|
3551
|
+
function L(v) {
|
|
3552
|
+
return p(v) === "[object Set Iterator]";
|
|
3449
3553
|
}
|
|
3450
|
-
t.isSetIterator =
|
|
3451
|
-
function
|
|
3452
|
-
return
|
|
3554
|
+
t.isSetIterator = L;
|
|
3555
|
+
function V(v) {
|
|
3556
|
+
return p(v) === "[object Generator]";
|
|
3453
3557
|
}
|
|
3454
|
-
t.isGeneratorObject =
|
|
3455
|
-
function
|
|
3456
|
-
return
|
|
3558
|
+
t.isGeneratorObject = V;
|
|
3559
|
+
function te(v) {
|
|
3560
|
+
return p(v) === "[object WebAssembly.Module]";
|
|
3457
3561
|
}
|
|
3458
|
-
t.isWebAssemblyCompiledModule =
|
|
3562
|
+
t.isWebAssemblyCompiledModule = te;
|
|
3459
3563
|
function ye(v) {
|
|
3460
|
-
return
|
|
3564
|
+
return N(v, S);
|
|
3461
3565
|
}
|
|
3462
3566
|
t.isNumberObject = ye;
|
|
3463
|
-
function
|
|
3464
|
-
return
|
|
3567
|
+
function pe(v) {
|
|
3568
|
+
return N(v, g);
|
|
3465
3569
|
}
|
|
3466
|
-
t.isStringObject =
|
|
3467
|
-
function
|
|
3468
|
-
return
|
|
3570
|
+
t.isStringObject = pe;
|
|
3571
|
+
function oe(v) {
|
|
3572
|
+
return N(v, b);
|
|
3469
3573
|
}
|
|
3470
|
-
t.isBooleanObject =
|
|
3471
|
-
function
|
|
3472
|
-
return l &&
|
|
3574
|
+
t.isBooleanObject = oe;
|
|
3575
|
+
function De(v) {
|
|
3576
|
+
return l && N(v, E);
|
|
3473
3577
|
}
|
|
3474
|
-
t.isBigIntObject =
|
|
3578
|
+
t.isBigIntObject = De;
|
|
3475
3579
|
function lt(v) {
|
|
3476
|
-
return f &&
|
|
3580
|
+
return f && N(v, _);
|
|
3477
3581
|
}
|
|
3478
3582
|
t.isSymbolObject = lt;
|
|
3479
3583
|
function nt(v) {
|
|
3480
|
-
return ye(v) ||
|
|
3584
|
+
return ye(v) || pe(v) || oe(v) || De(v) || lt(v);
|
|
3481
3585
|
}
|
|
3482
3586
|
t.isBoxedPrimitive = nt;
|
|
3483
3587
|
function Pt(v) {
|
|
3484
|
-
return typeof Uint8Array < "u" && (
|
|
3588
|
+
return typeof Uint8Array < "u" && (H(v) || D(v));
|
|
3485
3589
|
}
|
|
3486
3590
|
t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(v) {
|
|
3487
3591
|
Object.defineProperty(t, v, {
|
|
@@ -3491,8 +3595,8 @@ var Ts = function(e) {
|
|
|
3491
3595
|
}
|
|
3492
3596
|
});
|
|
3493
3597
|
});
|
|
3494
|
-
})(
|
|
3495
|
-
var
|
|
3598
|
+
})(wn);
|
|
3599
|
+
var Us = function(e) {
|
|
3496
3600
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3497
3601
|
}, ar = { exports: {} };
|
|
3498
3602
|
typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
@@ -3512,83 +3616,83 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3512
3616
|
o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
|
|
3513
3617
|
}
|
|
3514
3618
|
};
|
|
3515
|
-
var
|
|
3619
|
+
var $s = ar.exports;
|
|
3516
3620
|
(function(t) {
|
|
3517
|
-
var e = Object.getOwnPropertyDescriptors || function(
|
|
3518
|
-
for (var
|
|
3519
|
-
|
|
3520
|
-
return
|
|
3621
|
+
var e = Object.getOwnPropertyDescriptors || function(w) {
|
|
3622
|
+
for (var A = Object.keys(w), T = {}, D = 0; D < A.length; D++)
|
|
3623
|
+
T[A[D]] = Object.getOwnPropertyDescriptor(w, A[D]);
|
|
3624
|
+
return T;
|
|
3521
3625
|
}, r = /%[sdj%]/g;
|
|
3522
|
-
t.format = function(
|
|
3523
|
-
if (!
|
|
3524
|
-
for (var
|
|
3525
|
-
|
|
3526
|
-
return
|
|
3626
|
+
t.format = function(d) {
|
|
3627
|
+
if (!F(d)) {
|
|
3628
|
+
for (var w = [], A = 0; A < arguments.length; A++)
|
|
3629
|
+
w.push(l(arguments[A]));
|
|
3630
|
+
return w.join(" ");
|
|
3527
3631
|
}
|
|
3528
|
-
for (var
|
|
3529
|
-
if (
|
|
3632
|
+
for (var A = 1, T = arguments, D = T.length, M = String(d).replace(r, function(L) {
|
|
3633
|
+
if (L === "%%")
|
|
3530
3634
|
return "%";
|
|
3531
|
-
if (
|
|
3532
|
-
return
|
|
3533
|
-
switch (
|
|
3635
|
+
if (A >= D)
|
|
3636
|
+
return L;
|
|
3637
|
+
switch (L) {
|
|
3534
3638
|
case "%s":
|
|
3535
|
-
return String(
|
|
3639
|
+
return String(T[A++]);
|
|
3536
3640
|
case "%d":
|
|
3537
|
-
return Number(
|
|
3641
|
+
return Number(T[A++]);
|
|
3538
3642
|
case "%j":
|
|
3539
3643
|
try {
|
|
3540
|
-
return JSON.stringify(
|
|
3644
|
+
return JSON.stringify(T[A++]);
|
|
3541
3645
|
} catch {
|
|
3542
3646
|
return "[Circular]";
|
|
3543
3647
|
}
|
|
3544
3648
|
default:
|
|
3545
|
-
return
|
|
3649
|
+
return L;
|
|
3546
3650
|
}
|
|
3547
|
-
}),
|
|
3548
|
-
|
|
3549
|
-
return
|
|
3550
|
-
}, t.deprecate = function(
|
|
3551
|
-
if (typeof
|
|
3552
|
-
return
|
|
3553
|
-
if (typeof
|
|
3651
|
+
}), B = T[A]; A < D; B = T[++A])
|
|
3652
|
+
C(B) || !ie(B) ? M += " " + B : M += " " + l(B);
|
|
3653
|
+
return M;
|
|
3654
|
+
}, t.deprecate = function(d, w) {
|
|
3655
|
+
if (typeof O.process < "u" && O.process.noDeprecation === !0)
|
|
3656
|
+
return d;
|
|
3657
|
+
if (typeof O.process > "u")
|
|
3554
3658
|
return function() {
|
|
3555
|
-
return t.deprecate(
|
|
3659
|
+
return t.deprecate(d, w).apply(this, arguments);
|
|
3556
3660
|
};
|
|
3557
|
-
var
|
|
3558
|
-
function
|
|
3559
|
-
if (!
|
|
3560
|
-
if (
|
|
3561
|
-
throw new Error(
|
|
3562
|
-
|
|
3661
|
+
var A = !1;
|
|
3662
|
+
function T() {
|
|
3663
|
+
if (!A) {
|
|
3664
|
+
if (O.process.throwDeprecation)
|
|
3665
|
+
throw new Error(w);
|
|
3666
|
+
O.process.traceDeprecation ? console.trace(w) : console.error(w), A = !0;
|
|
3563
3667
|
}
|
|
3564
|
-
return
|
|
3668
|
+
return d.apply(this, arguments);
|
|
3565
3669
|
}
|
|
3566
|
-
return
|
|
3670
|
+
return T;
|
|
3567
3671
|
};
|
|
3568
3672
|
var o = {}, s = /^$/;
|
|
3569
|
-
if (
|
|
3570
|
-
var u =
|
|
3673
|
+
if (O.process.env.NODE_DEBUG) {
|
|
3674
|
+
var u = O.process.env.NODE_DEBUG;
|
|
3571
3675
|
u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
|
|
3572
3676
|
}
|
|
3573
|
-
t.debuglog = function(
|
|
3574
|
-
if (
|
|
3575
|
-
if (s.test(
|
|
3576
|
-
var
|
|
3577
|
-
o[
|
|
3578
|
-
var
|
|
3579
|
-
console.error("%s %d: %s",
|
|
3677
|
+
t.debuglog = function(d) {
|
|
3678
|
+
if (d = d.toUpperCase(), !o[d])
|
|
3679
|
+
if (s.test(d)) {
|
|
3680
|
+
var w = O.process.pid;
|
|
3681
|
+
o[d] = function() {
|
|
3682
|
+
var A = t.format.apply(t, arguments);
|
|
3683
|
+
console.error("%s %d: %s", d, w, A);
|
|
3580
3684
|
};
|
|
3581
3685
|
} else
|
|
3582
|
-
o[
|
|
3686
|
+
o[d] = function() {
|
|
3583
3687
|
};
|
|
3584
|
-
return o[
|
|
3688
|
+
return o[d];
|
|
3585
3689
|
};
|
|
3586
|
-
function l(
|
|
3587
|
-
var
|
|
3690
|
+
function l(d, w) {
|
|
3691
|
+
var A = {
|
|
3588
3692
|
seen: [],
|
|
3589
|
-
stylize:
|
|
3693
|
+
stylize: p
|
|
3590
3694
|
};
|
|
3591
|
-
return arguments.length >= 3 && (
|
|
3695
|
+
return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(w) ? A.showHidden = w : w && t._extend(A, w), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = f), g(A, d, A.depth);
|
|
3592
3696
|
}
|
|
3593
3697
|
t.inspect = l, l.colors = {
|
|
3594
3698
|
bold: [1, 22],
|
|
@@ -3615,188 +3719,188 @@ var ks = ar.exports;
|
|
|
3615
3719
|
// "name": intentionally not styling
|
|
3616
3720
|
regexp: "red"
|
|
3617
3721
|
};
|
|
3618
|
-
function f(
|
|
3619
|
-
var
|
|
3620
|
-
return
|
|
3621
|
-
}
|
|
3622
|
-
function d
|
|
3623
|
-
return
|
|
3624
|
-
}
|
|
3625
|
-
function
|
|
3626
|
-
var
|
|
3627
|
-
return
|
|
3628
|
-
|
|
3629
|
-
}),
|
|
3630
|
-
}
|
|
3631
|
-
function g(
|
|
3632
|
-
if (
|
|
3633
|
-
|
|
3634
|
-
!(
|
|
3635
|
-
var
|
|
3636
|
-
return
|
|
3722
|
+
function f(d, w) {
|
|
3723
|
+
var A = l.styles[w];
|
|
3724
|
+
return A ? "\x1B[" + l.colors[A][0] + "m" + d + "\x1B[" + l.colors[A][1] + "m" : d;
|
|
3725
|
+
}
|
|
3726
|
+
function p(d, w) {
|
|
3727
|
+
return d;
|
|
3728
|
+
}
|
|
3729
|
+
function S(d) {
|
|
3730
|
+
var w = {};
|
|
3731
|
+
return d.forEach(function(A, T) {
|
|
3732
|
+
w[A] = !0;
|
|
3733
|
+
}), w;
|
|
3734
|
+
}
|
|
3735
|
+
function g(d, w, A) {
|
|
3736
|
+
if (d.customInspect && w && fe(w.inspect) && // Filter out the util module, it's inspect function is special
|
|
3737
|
+
w.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3738
|
+
!(w.constructor && w.constructor.prototype === w)) {
|
|
3739
|
+
var T = w.inspect(A, d);
|
|
3740
|
+
return F(T) || (T = g(d, T, A)), T;
|
|
3637
3741
|
}
|
|
3638
|
-
var
|
|
3639
|
-
if (
|
|
3640
|
-
return
|
|
3641
|
-
var
|
|
3642
|
-
if (
|
|
3643
|
-
return E(
|
|
3644
|
-
if (
|
|
3645
|
-
if (
|
|
3646
|
-
var
|
|
3647
|
-
return
|
|
3742
|
+
var D = b(d, w);
|
|
3743
|
+
if (D)
|
|
3744
|
+
return D;
|
|
3745
|
+
var M = Object.keys(w), B = S(M);
|
|
3746
|
+
if (d.showHidden && (M = Object.getOwnPropertyNames(w)), Se(w) && (M.indexOf("message") >= 0 || M.indexOf("description") >= 0))
|
|
3747
|
+
return E(w);
|
|
3748
|
+
if (M.length === 0) {
|
|
3749
|
+
if (fe(w)) {
|
|
3750
|
+
var L = w.name ? ": " + w.name : "";
|
|
3751
|
+
return d.stylize("[Function" + L + "]", "special");
|
|
3648
3752
|
}
|
|
3649
|
-
if (
|
|
3650
|
-
return
|
|
3651
|
-
if (
|
|
3652
|
-
return
|
|
3653
|
-
if (Se(
|
|
3654
|
-
return E(
|
|
3753
|
+
if (G(w))
|
|
3754
|
+
return d.stylize(RegExp.prototype.toString.call(w), "regexp");
|
|
3755
|
+
if (Te(w))
|
|
3756
|
+
return d.stylize(Date.prototype.toString.call(w), "date");
|
|
3757
|
+
if (Se(w))
|
|
3758
|
+
return E(w);
|
|
3655
3759
|
}
|
|
3656
|
-
var
|
|
3657
|
-
if (
|
|
3658
|
-
var
|
|
3659
|
-
|
|
3760
|
+
var V = "", te = !1, ye = ["{", "}"];
|
|
3761
|
+
if (K(w) && (te = !0, ye = ["[", "]"]), fe(w)) {
|
|
3762
|
+
var pe = w.name ? ": " + w.name : "";
|
|
3763
|
+
V = " [Function" + pe + "]";
|
|
3660
3764
|
}
|
|
3661
|
-
if (
|
|
3662
|
-
return ye[0] +
|
|
3663
|
-
if (
|
|
3664
|
-
return
|
|
3665
|
-
|
|
3666
|
-
var
|
|
3667
|
-
return
|
|
3668
|
-
return
|
|
3669
|
-
}),
|
|
3670
|
-
}
|
|
3671
|
-
function
|
|
3672
|
-
if (
|
|
3673
|
-
return
|
|
3674
|
-
if (
|
|
3675
|
-
var
|
|
3676
|
-
return
|
|
3765
|
+
if (G(w) && (V = " " + RegExp.prototype.toString.call(w)), Te(w) && (V = " " + Date.prototype.toUTCString.call(w)), Se(w) && (V = " " + E(w)), M.length === 0 && (!te || w.length == 0))
|
|
3766
|
+
return ye[0] + V + ye[1];
|
|
3767
|
+
if (A < 0)
|
|
3768
|
+
return G(w) ? d.stylize(RegExp.prototype.toString.call(w), "regexp") : d.stylize("[Object]", "special");
|
|
3769
|
+
d.seen.push(w);
|
|
3770
|
+
var oe;
|
|
3771
|
+
return te ? oe = _(d, w, A, B, M) : oe = M.map(function(De) {
|
|
3772
|
+
return N(d, w, A, B, De, te);
|
|
3773
|
+
}), d.seen.pop(), P(oe, V, ye);
|
|
3774
|
+
}
|
|
3775
|
+
function b(d, w) {
|
|
3776
|
+
if (k(w))
|
|
3777
|
+
return d.stylize("undefined", "undefined");
|
|
3778
|
+
if (F(w)) {
|
|
3779
|
+
var A = "'" + JSON.stringify(w).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3780
|
+
return d.stylize(A, "string");
|
|
3677
3781
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
return
|
|
3680
|
-
if (
|
|
3681
|
-
return
|
|
3682
|
-
if (
|
|
3683
|
-
return
|
|
3684
|
-
}
|
|
3685
|
-
function E(
|
|
3686
|
-
return "[" + Error.prototype.toString.call(
|
|
3687
|
-
}
|
|
3688
|
-
function
|
|
3689
|
-
for (var
|
|
3690
|
-
Be(
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
String(
|
|
3782
|
+
if (U(w))
|
|
3783
|
+
return d.stylize("" + w, "number");
|
|
3784
|
+
if (I(w))
|
|
3785
|
+
return d.stylize("" + w, "boolean");
|
|
3786
|
+
if (C(w))
|
|
3787
|
+
return d.stylize("null", "null");
|
|
3788
|
+
}
|
|
3789
|
+
function E(d) {
|
|
3790
|
+
return "[" + Error.prototype.toString.call(d) + "]";
|
|
3791
|
+
}
|
|
3792
|
+
function _(d, w, A, T, D) {
|
|
3793
|
+
for (var M = [], B = 0, L = w.length; B < L; ++B)
|
|
3794
|
+
Be(w, String(B)) ? M.push(N(
|
|
3795
|
+
d,
|
|
3796
|
+
w,
|
|
3797
|
+
A,
|
|
3798
|
+
T,
|
|
3799
|
+
String(B),
|
|
3696
3800
|
!0
|
|
3697
|
-
)) :
|
|
3698
|
-
return
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3801
|
+
)) : M.push("");
|
|
3802
|
+
return D.forEach(function(V) {
|
|
3803
|
+
V.match(/^\d+$/) || M.push(N(
|
|
3804
|
+
d,
|
|
3805
|
+
w,
|
|
3806
|
+
A,
|
|
3807
|
+
T,
|
|
3808
|
+
V,
|
|
3705
3809
|
!0
|
|
3706
3810
|
));
|
|
3707
|
-
}),
|
|
3708
|
-
}
|
|
3709
|
-
function
|
|
3710
|
-
var
|
|
3711
|
-
if (
|
|
3712
|
-
`) > -1 && (
|
|
3713
|
-
`).map(function(
|
|
3714
|
-
return " " +
|
|
3811
|
+
}), M;
|
|
3812
|
+
}
|
|
3813
|
+
function N(d, w, A, T, D, M) {
|
|
3814
|
+
var B, L, V;
|
|
3815
|
+
if (V = Object.getOwnPropertyDescriptor(w, D) || { value: w[D] }, V.get ? V.set ? L = d.stylize("[Getter/Setter]", "special") : L = d.stylize("[Getter]", "special") : V.set && (L = d.stylize("[Setter]", "special")), Be(T, D) || (B = "[" + D + "]"), L || (d.seen.indexOf(V.value) < 0 ? (C(A) ? L = g(d, V.value, null) : L = g(d, V.value, A - 1), L.indexOf(`
|
|
3816
|
+
`) > -1 && (M ? L = L.split(`
|
|
3817
|
+
`).map(function(te) {
|
|
3818
|
+
return " " + te;
|
|
3715
3819
|
}).join(`
|
|
3716
|
-
`).slice(2) :
|
|
3717
|
-
` +
|
|
3718
|
-
`).map(function(
|
|
3719
|
-
return " " +
|
|
3820
|
+
`).slice(2) : L = `
|
|
3821
|
+
` + L.split(`
|
|
3822
|
+
`).map(function(te) {
|
|
3823
|
+
return " " + te;
|
|
3720
3824
|
}).join(`
|
|
3721
|
-
`))) :
|
|
3722
|
-
if (
|
|
3723
|
-
return
|
|
3724
|
-
|
|
3825
|
+
`))) : L = d.stylize("[Circular]", "special")), k(B)) {
|
|
3826
|
+
if (M && D.match(/^\d+$/))
|
|
3827
|
+
return L;
|
|
3828
|
+
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"));
|
|
3725
3829
|
}
|
|
3726
|
-
return
|
|
3830
|
+
return B + ": " + L;
|
|
3727
3831
|
}
|
|
3728
|
-
function
|
|
3729
|
-
var
|
|
3730
|
-
return
|
|
3731
|
-
`) >= 0,
|
|
3832
|
+
function P(d, w, A) {
|
|
3833
|
+
var T = d.reduce(function(D, M) {
|
|
3834
|
+
return M.indexOf(`
|
|
3835
|
+
`) >= 0, D + M.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3732
3836
|
}, 0);
|
|
3733
|
-
return
|
|
3734
|
-
`) + " " +
|
|
3735
|
-
`) + " " +
|
|
3837
|
+
return T > 60 ? A[0] + (w === "" ? "" : w + `
|
|
3838
|
+
`) + " " + d.join(`,
|
|
3839
|
+
`) + " " + A[1] : A[0] + w + " " + d.join(", ") + " " + A[1];
|
|
3736
3840
|
}
|
|
3737
|
-
t.types =
|
|
3738
|
-
function
|
|
3739
|
-
return Array.isArray(
|
|
3841
|
+
t.types = wn;
|
|
3842
|
+
function K(d) {
|
|
3843
|
+
return Array.isArray(d);
|
|
3740
3844
|
}
|
|
3741
|
-
t.isArray =
|
|
3742
|
-
function
|
|
3743
|
-
return typeof
|
|
3845
|
+
t.isArray = K;
|
|
3846
|
+
function I(d) {
|
|
3847
|
+
return typeof d == "boolean";
|
|
3744
3848
|
}
|
|
3745
|
-
t.isBoolean =
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3849
|
+
t.isBoolean = I;
|
|
3850
|
+
function C(d) {
|
|
3851
|
+
return d === null;
|
|
3748
3852
|
}
|
|
3749
|
-
t.isNull =
|
|
3750
|
-
function
|
|
3751
|
-
return
|
|
3853
|
+
t.isNull = C;
|
|
3854
|
+
function j(d) {
|
|
3855
|
+
return d == null;
|
|
3752
3856
|
}
|
|
3753
|
-
t.isNullOrUndefined =
|
|
3754
|
-
function
|
|
3755
|
-
return typeof
|
|
3857
|
+
t.isNullOrUndefined = j;
|
|
3858
|
+
function U(d) {
|
|
3859
|
+
return typeof d == "number";
|
|
3756
3860
|
}
|
|
3757
|
-
t.isNumber =
|
|
3758
|
-
function
|
|
3759
|
-
return typeof
|
|
3861
|
+
t.isNumber = U;
|
|
3862
|
+
function F(d) {
|
|
3863
|
+
return typeof d == "string";
|
|
3760
3864
|
}
|
|
3761
|
-
t.isString =
|
|
3762
|
-
function
|
|
3763
|
-
return typeof
|
|
3865
|
+
t.isString = F;
|
|
3866
|
+
function x(d) {
|
|
3867
|
+
return typeof d == "symbol";
|
|
3764
3868
|
}
|
|
3765
|
-
t.isSymbol =
|
|
3766
|
-
function
|
|
3767
|
-
return
|
|
3869
|
+
t.isSymbol = x;
|
|
3870
|
+
function k(d) {
|
|
3871
|
+
return d === void 0;
|
|
3768
3872
|
}
|
|
3769
|
-
t.isUndefined =
|
|
3770
|
-
function
|
|
3771
|
-
return
|
|
3873
|
+
t.isUndefined = k;
|
|
3874
|
+
function G(d) {
|
|
3875
|
+
return ie(d) && le(d) === "[object RegExp]";
|
|
3772
3876
|
}
|
|
3773
|
-
t.isRegExp =
|
|
3774
|
-
function
|
|
3775
|
-
return typeof
|
|
3877
|
+
t.isRegExp = G, t.types.isRegExp = G;
|
|
3878
|
+
function ie(d) {
|
|
3879
|
+
return typeof d == "object" && d !== null;
|
|
3776
3880
|
}
|
|
3777
|
-
t.isObject =
|
|
3778
|
-
function
|
|
3779
|
-
return
|
|
3881
|
+
t.isObject = ie;
|
|
3882
|
+
function Te(d) {
|
|
3883
|
+
return ie(d) && le(d) === "[object Date]";
|
|
3780
3884
|
}
|
|
3781
|
-
t.isDate =
|
|
3782
|
-
function Se(
|
|
3783
|
-
return
|
|
3885
|
+
t.isDate = Te, t.types.isDate = Te;
|
|
3886
|
+
function Se(d) {
|
|
3887
|
+
return ie(d) && (le(d) === "[object Error]" || d instanceof Error);
|
|
3784
3888
|
}
|
|
3785
3889
|
t.isError = Se, t.types.isNativeError = Se;
|
|
3786
|
-
function
|
|
3787
|
-
return typeof
|
|
3890
|
+
function fe(d) {
|
|
3891
|
+
return typeof d == "function";
|
|
3788
3892
|
}
|
|
3789
|
-
t.isFunction =
|
|
3790
|
-
function tt(
|
|
3791
|
-
return
|
|
3792
|
-
typeof
|
|
3893
|
+
t.isFunction = fe;
|
|
3894
|
+
function tt(d) {
|
|
3895
|
+
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3896
|
+
typeof d > "u";
|
|
3793
3897
|
}
|
|
3794
|
-
t.isPrimitive = tt, t.isBuffer =
|
|
3795
|
-
function
|
|
3796
|
-
return Object.prototype.toString.call(
|
|
3898
|
+
t.isPrimitive = tt, t.isBuffer = Us;
|
|
3899
|
+
function le(d) {
|
|
3900
|
+
return Object.prototype.toString.call(d);
|
|
3797
3901
|
}
|
|
3798
|
-
function Oe(
|
|
3799
|
-
return
|
|
3902
|
+
function Oe(d) {
|
|
3903
|
+
return d < 10 ? "0" + d.toString(10) : d.toString(10);
|
|
3800
3904
|
}
|
|
3801
3905
|
var xe = [
|
|
3802
3906
|
"Jan",
|
|
@@ -3813,101 +3917,101 @@ var ks = ar.exports;
|
|
|
3813
3917
|
"Dec"
|
|
3814
3918
|
];
|
|
3815
3919
|
function rt() {
|
|
3816
|
-
var
|
|
3817
|
-
Oe(
|
|
3818
|
-
Oe(
|
|
3819
|
-
Oe(
|
|
3920
|
+
var d = /* @__PURE__ */ new Date(), w = [
|
|
3921
|
+
Oe(d.getHours()),
|
|
3922
|
+
Oe(d.getMinutes()),
|
|
3923
|
+
Oe(d.getSeconds())
|
|
3820
3924
|
].join(":");
|
|
3821
|
-
return [
|
|
3925
|
+
return [d.getDate(), xe[d.getMonth()], w].join(" ");
|
|
3822
3926
|
}
|
|
3823
3927
|
t.log = function() {
|
|
3824
3928
|
console.log("%s - %s", rt(), t.format.apply(t, arguments));
|
|
3825
|
-
}, t.inherits =
|
|
3826
|
-
if (!
|
|
3827
|
-
return
|
|
3828
|
-
for (var
|
|
3829
|
-
|
|
3830
|
-
return
|
|
3929
|
+
}, t.inherits = $s, t._extend = function(d, w) {
|
|
3930
|
+
if (!w || !ie(w))
|
|
3931
|
+
return d;
|
|
3932
|
+
for (var A = Object.keys(w), T = A.length; T--; )
|
|
3933
|
+
d[A[T]] = w[A[T]];
|
|
3934
|
+
return d;
|
|
3831
3935
|
};
|
|
3832
|
-
function Be(
|
|
3833
|
-
return Object.prototype.hasOwnProperty.call(
|
|
3936
|
+
function Be(d, w) {
|
|
3937
|
+
return Object.prototype.hasOwnProperty.call(d, w);
|
|
3834
3938
|
}
|
|
3835
|
-
var
|
|
3836
|
-
t.promisify = function(
|
|
3837
|
-
if (typeof
|
|
3939
|
+
var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
3940
|
+
t.promisify = function(w) {
|
|
3941
|
+
if (typeof w != "function")
|
|
3838
3942
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3839
|
-
if (
|
|
3840
|
-
var
|
|
3841
|
-
if (typeof
|
|
3943
|
+
if (he && w[he]) {
|
|
3944
|
+
var A = w[he];
|
|
3945
|
+
if (typeof A != "function")
|
|
3842
3946
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
3843
|
-
return Object.defineProperty(
|
|
3844
|
-
value:
|
|
3947
|
+
return Object.defineProperty(A, he, {
|
|
3948
|
+
value: A,
|
|
3845
3949
|
enumerable: !1,
|
|
3846
3950
|
writable: !1,
|
|
3847
3951
|
configurable: !0
|
|
3848
|
-
}),
|
|
3952
|
+
}), A;
|
|
3849
3953
|
}
|
|
3850
|
-
function
|
|
3851
|
-
for (var
|
|
3852
|
-
|
|
3853
|
-
}),
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3954
|
+
function A() {
|
|
3955
|
+
for (var T, D, M = new Promise(function(V, te) {
|
|
3956
|
+
T = V, D = te;
|
|
3957
|
+
}), B = [], L = 0; L < arguments.length; L++)
|
|
3958
|
+
B.push(arguments[L]);
|
|
3959
|
+
B.push(function(V, te) {
|
|
3960
|
+
V ? D(V) : T(te);
|
|
3857
3961
|
});
|
|
3858
3962
|
try {
|
|
3859
|
-
|
|
3860
|
-
} catch (
|
|
3861
|
-
|
|
3963
|
+
w.apply(this, B);
|
|
3964
|
+
} catch (V) {
|
|
3965
|
+
D(V);
|
|
3862
3966
|
}
|
|
3863
|
-
return
|
|
3967
|
+
return M;
|
|
3864
3968
|
}
|
|
3865
|
-
return Object.setPrototypeOf(
|
|
3866
|
-
value:
|
|
3969
|
+
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)), he && Object.defineProperty(A, he, {
|
|
3970
|
+
value: A,
|
|
3867
3971
|
enumerable: !1,
|
|
3868
3972
|
writable: !1,
|
|
3869
3973
|
configurable: !0
|
|
3870
3974
|
}), Object.defineProperties(
|
|
3871
|
-
|
|
3872
|
-
e(
|
|
3975
|
+
A,
|
|
3976
|
+
e(w)
|
|
3873
3977
|
);
|
|
3874
|
-
}, t.promisify.custom =
|
|
3875
|
-
function ke(
|
|
3876
|
-
if (!
|
|
3877
|
-
var
|
|
3878
|
-
|
|
3978
|
+
}, t.promisify.custom = he;
|
|
3979
|
+
function ke(d, w) {
|
|
3980
|
+
if (!d) {
|
|
3981
|
+
var A = new Error("Promise was rejected with a falsy value");
|
|
3982
|
+
A.reason = d, d = A;
|
|
3879
3983
|
}
|
|
3880
|
-
return
|
|
3984
|
+
return w(d);
|
|
3881
3985
|
}
|
|
3882
|
-
function
|
|
3883
|
-
if (typeof
|
|
3986
|
+
function H(d) {
|
|
3987
|
+
if (typeof d != "function")
|
|
3884
3988
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3885
|
-
function
|
|
3886
|
-
for (var
|
|
3887
|
-
|
|
3888
|
-
var
|
|
3889
|
-
if (typeof
|
|
3989
|
+
function w() {
|
|
3990
|
+
for (var A = [], T = 0; T < arguments.length; T++)
|
|
3991
|
+
A.push(arguments[T]);
|
|
3992
|
+
var D = A.pop();
|
|
3993
|
+
if (typeof D != "function")
|
|
3890
3994
|
throw new TypeError("The last argument must be of type Function");
|
|
3891
|
-
var
|
|
3892
|
-
return
|
|
3995
|
+
var M = this, B = function() {
|
|
3996
|
+
return D.apply(M, arguments);
|
|
3893
3997
|
};
|
|
3894
|
-
|
|
3895
|
-
function(
|
|
3896
|
-
|
|
3998
|
+
d.apply(this, A).then(
|
|
3999
|
+
function(L) {
|
|
4000
|
+
O.process.nextTick(B.bind(null, null, L));
|
|
3897
4001
|
},
|
|
3898
|
-
function(
|
|
3899
|
-
|
|
4002
|
+
function(L) {
|
|
4003
|
+
O.process.nextTick(ke.bind(null, L, B));
|
|
3900
4004
|
}
|
|
3901
4005
|
);
|
|
3902
4006
|
}
|
|
3903
|
-
return Object.setPrototypeOf(
|
|
3904
|
-
|
|
3905
|
-
e(
|
|
3906
|
-
),
|
|
4007
|
+
return Object.setPrototypeOf(w, Object.getPrototypeOf(d)), Object.defineProperties(
|
|
4008
|
+
w,
|
|
4009
|
+
e(d)
|
|
4010
|
+
), w;
|
|
3907
4011
|
}
|
|
3908
|
-
t.callbackify =
|
|
4012
|
+
t.callbackify = H;
|
|
3909
4013
|
})(Bt);
|
|
3910
|
-
const { inherits:
|
|
4014
|
+
const { inherits: js, format: Qt } = Bt;
|
|
3911
4015
|
function Re(t, e, r = Error) {
|
|
3912
4016
|
if (!t)
|
|
3913
4017
|
throw new Error("Avvio error code must not be empty");
|
|
@@ -3916,13 +4020,13 @@ function Re(t, e, r = Error) {
|
|
|
3916
4020
|
function o(s, u, l) {
|
|
3917
4021
|
if (!new.target)
|
|
3918
4022
|
return new o(s, u, l);
|
|
3919
|
-
Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message =
|
|
4023
|
+
Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message = Qt(e, s, u, l) : s && u ? this.message = Qt(e, s, u) : s ? this.message = Qt(e, s) : this.message = e;
|
|
3920
4024
|
}
|
|
3921
4025
|
return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
|
|
3922
4026
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
3923
|
-
},
|
|
4027
|
+
}, js(o, r), o;
|
|
3924
4028
|
}
|
|
3925
|
-
var
|
|
4029
|
+
var Ln = {
|
|
3926
4030
|
createError: Re,
|
|
3927
4031
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
|
|
3928
4032
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
@@ -3948,37 +4052,37 @@ var Rn = {
|
|
|
3948
4052
|
"AVV_ERR_READY_TIMEOUT",
|
|
3949
4053
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
3950
4054
|
)
|
|
3951
|
-
},
|
|
4055
|
+
}, Ds = function t(e, r, o) {
|
|
3952
4056
|
r === void 0 && (r = ""), o || (o = {});
|
|
3953
|
-
var s = function(
|
|
3954
|
-
var
|
|
4057
|
+
var s = function(p) {
|
|
4058
|
+
var S = {
|
|
3955
4059
|
"│": "|",
|
|
3956
4060
|
"└": "`",
|
|
3957
4061
|
"├": "+",
|
|
3958
4062
|
"─": "-",
|
|
3959
4063
|
"┬": "-"
|
|
3960
4064
|
};
|
|
3961
|
-
return o.unicode === !1 ?
|
|
4065
|
+
return o.unicode === !1 ? S[p] : p;
|
|
3962
4066
|
};
|
|
3963
4067
|
typeof e == "string" && (e = { label: e });
|
|
3964
4068
|
var u = e.nodes || [], l = (e.label || "").split(`
|
|
3965
4069
|
`), f = `
|
|
3966
4070
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
3967
4071
|
return r + l.join(f) + `
|
|
3968
|
-
` + u.map(function(
|
|
3969
|
-
var g =
|
|
3970
|
-
return r + s(g ? "└" : "├") + s("─") + s(
|
|
4072
|
+
` + u.map(function(p, S) {
|
|
4073
|
+
var g = S === u.length - 1, b = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
4074
|
+
return r + s(g ? "└" : "├") + s("─") + s(b ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
3971
4075
|
}).join("");
|
|
3972
4076
|
};
|
|
3973
|
-
const
|
|
3974
|
-
let
|
|
4077
|
+
const Ms = Ds, Mr = Symbol("avvio.TimeTree.untrackNode"), Gt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), qr = Symbol("avvio.TimeTree.getNode"), Qr = Symbol("avvio.TimeTree.addNode");
|
|
4078
|
+
let Vs = class {
|
|
3975
4079
|
constructor() {
|
|
3976
4080
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
3977
4081
|
}
|
|
3978
|
-
[
|
|
4082
|
+
[Gt](e) {
|
|
3979
4083
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
3980
4084
|
}
|
|
3981
|
-
[
|
|
4085
|
+
[Mr](e) {
|
|
3982
4086
|
this.tableId.delete(e.id);
|
|
3983
4087
|
const r = this.tableLabel.get(e.label);
|
|
3984
4088
|
if (r.id) {
|
|
@@ -3987,72 +4091,72 @@ let Ls = class {
|
|
|
3987
4091
|
}
|
|
3988
4092
|
r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
|
|
3989
4093
|
}
|
|
3990
|
-
[
|
|
4094
|
+
[Vr](e) {
|
|
3991
4095
|
if (e === null)
|
|
3992
4096
|
return this.root;
|
|
3993
4097
|
const r = this.tableLabel.get(e);
|
|
3994
4098
|
return r.id ? r : r[r.length - 1];
|
|
3995
4099
|
}
|
|
3996
|
-
[
|
|
4100
|
+
[qr](e) {
|
|
3997
4101
|
return this.tableId.get(e);
|
|
3998
4102
|
}
|
|
3999
|
-
[
|
|
4103
|
+
[Qr](e, r, o) {
|
|
4000
4104
|
if (e === null)
|
|
4001
4105
|
return this.root = {
|
|
4002
4106
|
id: "root",
|
|
4003
4107
|
label: r,
|
|
4004
4108
|
start: o,
|
|
4005
4109
|
nodes: []
|
|
4006
|
-
}, this[
|
|
4007
|
-
const u = this[
|
|
4110
|
+
}, this[Gt](this.root), this.root.id;
|
|
4111
|
+
const u = this[Vr](e), l = `${r}-${Math.random()}`, f = {
|
|
4008
4112
|
id: l,
|
|
4009
4113
|
parent: e,
|
|
4010
4114
|
start: o,
|
|
4011
4115
|
label: r,
|
|
4012
4116
|
nodes: []
|
|
4013
4117
|
};
|
|
4014
|
-
return u.nodes.push(f), this[
|
|
4118
|
+
return u.nodes.push(f), this[Gt](f), l;
|
|
4015
4119
|
}
|
|
4016
4120
|
start(e, r, o = Date.now()) {
|
|
4017
|
-
return this[
|
|
4121
|
+
return this[Qr](e, r, o);
|
|
4018
4122
|
}
|
|
4019
4123
|
stop(e, r = Date.now()) {
|
|
4020
|
-
const o = this[
|
|
4021
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4124
|
+
const o = this[qr](e);
|
|
4125
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Mr](o));
|
|
4022
4126
|
}
|
|
4023
4127
|
toJSON() {
|
|
4024
4128
|
return Object.assign({}, this.root);
|
|
4025
4129
|
}
|
|
4026
4130
|
prittyPrint() {
|
|
4027
4131
|
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());
|
|
4028
|
-
return
|
|
4132
|
+
return Ms(r);
|
|
4029
4133
|
}
|
|
4030
4134
|
};
|
|
4031
|
-
var
|
|
4032
|
-
function
|
|
4033
|
-
if (
|
|
4135
|
+
var qs = Vs, Ir = { exports: {} }, ur = { exports: {} }, zt, Gr;
|
|
4136
|
+
function Qs() {
|
|
4137
|
+
if (Gr)
|
|
4034
4138
|
return zt;
|
|
4035
|
-
|
|
4139
|
+
Gr = 1;
|
|
4036
4140
|
var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
|
|
4037
|
-
zt = function(g,
|
|
4038
|
-
|
|
4141
|
+
zt = function(g, b) {
|
|
4142
|
+
b = b || {};
|
|
4039
4143
|
var E = typeof g;
|
|
4040
4144
|
if (E === "string" && g.length > 0)
|
|
4041
4145
|
return l(g);
|
|
4042
4146
|
if (E === "number" && isFinite(g))
|
|
4043
|
-
return
|
|
4147
|
+
return b.long ? p(g) : f(g);
|
|
4044
4148
|
throw new Error(
|
|
4045
4149
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
|
|
4046
4150
|
);
|
|
4047
4151
|
};
|
|
4048
4152
|
function l(g) {
|
|
4049
4153
|
if (g = String(g), !(g.length > 100)) {
|
|
4050
|
-
var
|
|
4154
|
+
var b = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
4051
4155
|
g
|
|
4052
4156
|
);
|
|
4053
|
-
if (
|
|
4054
|
-
var E = parseFloat(
|
|
4055
|
-
switch (
|
|
4157
|
+
if (b) {
|
|
4158
|
+
var E = parseFloat(b[1]), _ = (b[2] || "ms").toLowerCase();
|
|
4159
|
+
switch (_) {
|
|
4056
4160
|
case "years":
|
|
4057
4161
|
case "year":
|
|
4058
4162
|
case "yrs":
|
|
@@ -4098,106 +4202,106 @@ function $s() {
|
|
|
4098
4202
|
}
|
|
4099
4203
|
}
|
|
4100
4204
|
function f(g) {
|
|
4101
|
-
var
|
|
4102
|
-
return
|
|
4205
|
+
var b = Math.abs(g);
|
|
4206
|
+
return b >= o ? Math.round(g / o) + "d" : b >= r ? Math.round(g / r) + "h" : b >= e ? Math.round(g / e) + "m" : b >= t ? Math.round(g / t) + "s" : g + "ms";
|
|
4103
4207
|
}
|
|
4104
|
-
function
|
|
4105
|
-
var
|
|
4106
|
-
return
|
|
4208
|
+
function p(g) {
|
|
4209
|
+
var b = Math.abs(g);
|
|
4210
|
+
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";
|
|
4107
4211
|
}
|
|
4108
|
-
function
|
|
4109
|
-
var
|
|
4110
|
-
return Math.round(g / E) + " " +
|
|
4212
|
+
function S(g, b, E, _) {
|
|
4213
|
+
var N = b >= E * 1.5;
|
|
4214
|
+
return Math.round(g / E) + " " + _ + (N ? "s" : "");
|
|
4111
4215
|
}
|
|
4112
4216
|
return zt;
|
|
4113
4217
|
}
|
|
4114
|
-
function
|
|
4115
|
-
r.debug = r, r.default = r, r.coerce =
|
|
4218
|
+
function Gs(t) {
|
|
4219
|
+
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) => {
|
|
4116
4220
|
r[g] = t[g];
|
|
4117
4221
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4118
4222
|
function e(g) {
|
|
4119
|
-
let
|
|
4223
|
+
let b = 0;
|
|
4120
4224
|
for (let E = 0; E < g.length; E++)
|
|
4121
|
-
|
|
4122
|
-
return r.colors[Math.abs(
|
|
4225
|
+
b = (b << 5) - b + g.charCodeAt(E), b |= 0;
|
|
4226
|
+
return r.colors[Math.abs(b) % r.colors.length];
|
|
4123
4227
|
}
|
|
4124
4228
|
r.selectColor = e;
|
|
4125
4229
|
function r(g) {
|
|
4126
|
-
let
|
|
4127
|
-
function
|
|
4128
|
-
if (!
|
|
4230
|
+
let b, E = null, _, N;
|
|
4231
|
+
function P(...K) {
|
|
4232
|
+
if (!P.enabled)
|
|
4129
4233
|
return;
|
|
4130
|
-
const
|
|
4131
|
-
|
|
4132
|
-
let
|
|
4133
|
-
|
|
4134
|
-
if (
|
|
4234
|
+
const I = P, C = Number(/* @__PURE__ */ new Date()), j = C - (b || C);
|
|
4235
|
+
I.diff = j, I.prev = b, I.curr = C, b = C, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
|
|
4236
|
+
let U = 0;
|
|
4237
|
+
K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
|
|
4238
|
+
if (x === "%%")
|
|
4135
4239
|
return "%";
|
|
4136
|
-
|
|
4137
|
-
const
|
|
4138
|
-
if (typeof
|
|
4139
|
-
const
|
|
4140
|
-
|
|
4240
|
+
U++;
|
|
4241
|
+
const G = r.formatters[k];
|
|
4242
|
+
if (typeof G == "function") {
|
|
4243
|
+
const ie = K[U];
|
|
4244
|
+
x = G.call(I, ie), K.splice(U, 1), U--;
|
|
4141
4245
|
}
|
|
4142
|
-
return
|
|
4143
|
-
}), r.formatArgs.call(
|
|
4246
|
+
return x;
|
|
4247
|
+
}), r.formatArgs.call(I, K), (I.log || r.log).apply(I, K);
|
|
4144
4248
|
}
|
|
4145
|
-
return
|
|
4249
|
+
return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
|
|
4146
4250
|
enumerable: !0,
|
|
4147
4251
|
configurable: !1,
|
|
4148
|
-
get: () => E !== null ? E : (
|
|
4149
|
-
set: (
|
|
4150
|
-
E =
|
|
4252
|
+
get: () => E !== null ? E : (_ !== r.namespaces && (_ = r.namespaces, N = r.enabled(g)), N),
|
|
4253
|
+
set: (K) => {
|
|
4254
|
+
E = K;
|
|
4151
4255
|
}
|
|
4152
|
-
}), typeof r.init == "function" && r.init(
|
|
4256
|
+
}), typeof r.init == "function" && r.init(P), P;
|
|
4153
4257
|
}
|
|
4154
|
-
function o(g,
|
|
4155
|
-
const E = r(this.namespace + (typeof
|
|
4258
|
+
function o(g, b) {
|
|
4259
|
+
const E = r(this.namespace + (typeof b > "u" ? ":" : b) + g);
|
|
4156
4260
|
return E.log = this.log, E;
|
|
4157
4261
|
}
|
|
4158
4262
|
function s(g) {
|
|
4159
4263
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4160
|
-
let
|
|
4161
|
-
const E = (typeof g == "string" ? g : "").split(/[\s,]+/),
|
|
4162
|
-
for (
|
|
4163
|
-
E[
|
|
4264
|
+
let b;
|
|
4265
|
+
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), _ = E.length;
|
|
4266
|
+
for (b = 0; b < _; b++)
|
|
4267
|
+
E[b] && (g = E[b].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4164
4268
|
}
|
|
4165
4269
|
function u() {
|
|
4166
4270
|
const g = [
|
|
4167
4271
|
...r.names.map(f),
|
|
4168
|
-
...r.skips.map(f).map((
|
|
4272
|
+
...r.skips.map(f).map((b) => "-" + b)
|
|
4169
4273
|
].join(",");
|
|
4170
4274
|
return r.enable(""), g;
|
|
4171
4275
|
}
|
|
4172
4276
|
function l(g) {
|
|
4173
4277
|
if (g[g.length - 1] === "*")
|
|
4174
4278
|
return !0;
|
|
4175
|
-
let
|
|
4176
|
-
for (
|
|
4177
|
-
if (r.skips[
|
|
4279
|
+
let b, E;
|
|
4280
|
+
for (b = 0, E = r.skips.length; b < E; b++)
|
|
4281
|
+
if (r.skips[b].test(g))
|
|
4178
4282
|
return !1;
|
|
4179
|
-
for (
|
|
4180
|
-
if (r.names[
|
|
4283
|
+
for (b = 0, E = r.names.length; b < E; b++)
|
|
4284
|
+
if (r.names[b].test(g))
|
|
4181
4285
|
return !0;
|
|
4182
4286
|
return !1;
|
|
4183
4287
|
}
|
|
4184
4288
|
function f(g) {
|
|
4185
4289
|
return g.toString().substring(2, g.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
4186
4290
|
}
|
|
4187
|
-
function
|
|
4291
|
+
function p(g) {
|
|
4188
4292
|
return g instanceof Error ? g.stack || g.message : g;
|
|
4189
4293
|
}
|
|
4190
|
-
function
|
|
4294
|
+
function S() {
|
|
4191
4295
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4192
4296
|
}
|
|
4193
4297
|
return r.enable(r.load()), r;
|
|
4194
4298
|
}
|
|
4195
|
-
var
|
|
4299
|
+
var zs = Gs;
|
|
4196
4300
|
(function(t, e) {
|
|
4197
4301
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4198
|
-
let
|
|
4302
|
+
let p = !1;
|
|
4199
4303
|
return () => {
|
|
4200
|
-
|
|
4304
|
+
p || (p = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
4201
4305
|
};
|
|
4202
4306
|
})(), e.colors = [
|
|
4203
4307
|
"#0000CC",
|
|
@@ -4284,31 +4388,31 @@ var js = Ds;
|
|
|
4284
4388
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
4285
4389
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
4286
4390
|
}
|
|
4287
|
-
function o(
|
|
4288
|
-
if (
|
|
4391
|
+
function o(p) {
|
|
4392
|
+
if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4289
4393
|
return;
|
|
4290
|
-
const
|
|
4291
|
-
|
|
4292
|
-
let g = 0,
|
|
4293
|
-
|
|
4294
|
-
E !== "%%" && (g++, E === "%c" && (
|
|
4295
|
-
}),
|
|
4394
|
+
const S = "color: " + this.color;
|
|
4395
|
+
p.splice(1, 0, S, "color: inherit");
|
|
4396
|
+
let g = 0, b = 0;
|
|
4397
|
+
p[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4398
|
+
E !== "%%" && (g++, E === "%c" && (b = g));
|
|
4399
|
+
}), p.splice(b, 0, S);
|
|
4296
4400
|
}
|
|
4297
4401
|
e.log = console.debug || console.log || (() => {
|
|
4298
4402
|
});
|
|
4299
|
-
function s(
|
|
4403
|
+
function s(p) {
|
|
4300
4404
|
try {
|
|
4301
|
-
|
|
4405
|
+
p ? e.storage.setItem("debug", p) : e.storage.removeItem("debug");
|
|
4302
4406
|
} catch {
|
|
4303
4407
|
}
|
|
4304
4408
|
}
|
|
4305
4409
|
function u() {
|
|
4306
|
-
let
|
|
4410
|
+
let p;
|
|
4307
4411
|
try {
|
|
4308
|
-
|
|
4412
|
+
p = e.storage.getItem("debug");
|
|
4309
4413
|
} catch {
|
|
4310
4414
|
}
|
|
4311
|
-
return !
|
|
4415
|
+
return !p && typeof O.process < "u" && "env" in O.process && (p = O.process.env.DEBUG), p;
|
|
4312
4416
|
}
|
|
4313
4417
|
function l() {
|
|
4314
4418
|
try {
|
|
@@ -4316,38 +4420,38 @@ var js = Ds;
|
|
|
4316
4420
|
} catch {
|
|
4317
4421
|
}
|
|
4318
4422
|
}
|
|
4319
|
-
t.exports =
|
|
4423
|
+
t.exports = zs(e);
|
|
4320
4424
|
const { formatters: f } = t.exports;
|
|
4321
|
-
f.j = function(
|
|
4425
|
+
f.j = function(p) {
|
|
4322
4426
|
try {
|
|
4323
|
-
return JSON.stringify(
|
|
4324
|
-
} catch (
|
|
4325
|
-
return "[UnexpectedJSONParseError]: " +
|
|
4427
|
+
return JSON.stringify(p);
|
|
4428
|
+
} catch (S) {
|
|
4429
|
+
return "[UnexpectedJSONParseError]: " + S.message;
|
|
4326
4430
|
}
|
|
4327
4431
|
};
|
|
4328
4432
|
})(ur, ur.exports);
|
|
4329
|
-
var
|
|
4330
|
-
const
|
|
4331
|
-
function
|
|
4433
|
+
var Un = ur.exports;
|
|
4434
|
+
const Ks = cn, Hs = bn.EventEmitter, Ws = Bt.inherits, Z = Un("avvio"), { AVV_ERR_READY_TIMEOUT: Js } = Ln, Kt = Symbol.for("plugin-meta");
|
|
4435
|
+
function Ys(t, e) {
|
|
4332
4436
|
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(`
|
|
4333
4437
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
4334
4438
|
}
|
|
4335
|
-
function
|
|
4439
|
+
function Xs() {
|
|
4336
4440
|
const t = {};
|
|
4337
4441
|
return t.promise = new Promise((e, r) => {
|
|
4338
4442
|
t.resolve = e, t.reject = r;
|
|
4339
4443
|
}), t;
|
|
4340
4444
|
}
|
|
4341
4445
|
function et(t, e, r, o, s) {
|
|
4342
|
-
this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name =
|
|
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 = Ys(e, r), this.isAfter = o, this.q = Ks(t, Zs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4343
4447
|
}
|
|
4344
|
-
|
|
4448
|
+
Ws(et, Hs);
|
|
4345
4449
|
et.prototype.exec = function(t, e) {
|
|
4346
4450
|
const r = this.func;
|
|
4347
4451
|
let o = !1;
|
|
4348
4452
|
const s = this.name;
|
|
4349
4453
|
if (this.parent._error && !this.isAfter) {
|
|
4350
|
-
|
|
4454
|
+
Z("skipping loading of plugin as parent errored and it is not an after", s), O.process.nextTick(e);
|
|
4351
4455
|
return;
|
|
4352
4456
|
}
|
|
4353
4457
|
if (this.isAfter)
|
|
@@ -4355,27 +4459,27 @@ et.prototype.exec = function(t, e) {
|
|
|
4355
4459
|
else
|
|
4356
4460
|
try {
|
|
4357
4461
|
this.server = this.parent.override(t, r, this.opts);
|
|
4358
|
-
} catch (
|
|
4359
|
-
return
|
|
4462
|
+
} catch (p) {
|
|
4463
|
+
return Z("override errored", s), e(p);
|
|
4360
4464
|
}
|
|
4361
|
-
this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts,
|
|
4465
|
+
this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, Z("exec", s);
|
|
4362
4466
|
let u;
|
|
4363
|
-
const l = (
|
|
4467
|
+
const l = (p) => {
|
|
4364
4468
|
if (o) {
|
|
4365
|
-
|
|
4469
|
+
Z("loading complete", s);
|
|
4366
4470
|
return;
|
|
4367
4471
|
}
|
|
4368
|
-
this._error =
|
|
4472
|
+
this._error = p, Z(p ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(p);
|
|
4369
4473
|
};
|
|
4370
|
-
this.timeout > 0 && (
|
|
4371
|
-
|
|
4372
|
-
const
|
|
4373
|
-
|
|
4474
|
+
this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4475
|
+
Z("timed out", s), u = null;
|
|
4476
|
+
const p = new Js(s);
|
|
4477
|
+
p.fn = r, l(p);
|
|
4374
4478
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4375
4479
|
const f = r(this.server, this.opts, l);
|
|
4376
|
-
f && typeof f.then == "function" && (
|
|
4377
|
-
() =>
|
|
4378
|
-
(
|
|
4480
|
+
f && typeof f.then == "function" && (Z("exec: resolving promise", s), f.then(
|
|
4481
|
+
() => O.process.nextTick(l),
|
|
4482
|
+
(p) => O.process.nextTick(l, p)
|
|
4379
4483
|
));
|
|
4380
4484
|
};
|
|
4381
4485
|
et.prototype.loadedSoFar = function() {
|
|
@@ -4383,48 +4487,48 @@ et.prototype.loadedSoFar = function() {
|
|
|
4383
4487
|
return Promise.resolve();
|
|
4384
4488
|
const t = () => {
|
|
4385
4489
|
this.server.after((r, o) => {
|
|
4386
|
-
this._error = r, this.q.pause(), r ? (
|
|
4490
|
+
this._error = r, this.q.pause(), r ? (Z("rejecting promise", this.name, r), this._promise.reject(r)) : (Z("resolving promise", this.name), this._promise.resolve()), this._promise = null, O.process.nextTick(o, r);
|
|
4387
4491
|
}), this.q.resume();
|
|
4388
4492
|
};
|
|
4389
4493
|
let e;
|
|
4390
|
-
return this._promise ? e = Promise.resolve() : (this._promise =
|
|
4494
|
+
return this._promise ? e = Promise.resolve() : (this._promise = Xs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4391
4495
|
};
|
|
4392
4496
|
et.prototype.enqueue = function(t, e) {
|
|
4393
|
-
|
|
4497
|
+
Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
4394
4498
|
};
|
|
4395
4499
|
et.prototype.finish = function(t, e) {
|
|
4396
|
-
|
|
4500
|
+
Z("finish", this.name, t);
|
|
4397
4501
|
const r = () => {
|
|
4398
|
-
this.loaded || (
|
|
4502
|
+
this.loaded || (Z("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
|
|
4399
4503
|
};
|
|
4400
4504
|
if (t) {
|
|
4401
4505
|
this._promise && (this._promise.reject(t), this._promise = null), r();
|
|
4402
4506
|
return;
|
|
4403
4507
|
}
|
|
4404
4508
|
const o = () => {
|
|
4405
|
-
if (
|
|
4509
|
+
if (Z("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
|
|
4406
4510
|
if (this._promise) {
|
|
4407
4511
|
const s = () => {
|
|
4408
|
-
|
|
4512
|
+
Z("wrap"), queueMicrotask(o);
|
|
4409
4513
|
};
|
|
4410
4514
|
this._promise.resolve(), this._promise.promise.then(s, s), this._promise = null;
|
|
4411
4515
|
} else
|
|
4412
4516
|
r();
|
|
4413
4517
|
else
|
|
4414
|
-
|
|
4415
|
-
|
|
4518
|
+
Z("delayed", this.name), this.q.drain = () => {
|
|
4519
|
+
Z("drain", this.name), this.q.drain = ea, queueMicrotask(o);
|
|
4416
4520
|
};
|
|
4417
4521
|
};
|
|
4418
4522
|
queueMicrotask(o), this.q.resume();
|
|
4419
4523
|
};
|
|
4420
|
-
function
|
|
4524
|
+
function Zs(t, e) {
|
|
4421
4525
|
const r = this;
|
|
4422
|
-
|
|
4526
|
+
O.process.nextTick(Fr.bind(r), t, e);
|
|
4423
4527
|
}
|
|
4424
|
-
function
|
|
4528
|
+
function Fr(t, e) {
|
|
4425
4529
|
if (typeof t.func.then == "function") {
|
|
4426
4530
|
t.func.then((o) => {
|
|
4427
|
-
typeof o.default == "function" && (o = o.default), t.func = o,
|
|
4531
|
+
typeof o.default == "function" && (o = o.default), t.func = o, Fr.call(this, t, e);
|
|
4428
4532
|
}, e);
|
|
4429
4533
|
return;
|
|
4430
4534
|
}
|
|
@@ -4435,57 +4539,57 @@ function Er(t, e) {
|
|
|
4435
4539
|
});
|
|
4436
4540
|
});
|
|
4437
4541
|
}
|
|
4438
|
-
function
|
|
4542
|
+
function ea() {
|
|
4439
4543
|
}
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
var
|
|
4443
|
-
const
|
|
4544
|
+
Ir.exports = et;
|
|
4545
|
+
Ir.exports.loadPlugin = Fr;
|
|
4546
|
+
var ta = Ir.exports;
|
|
4547
|
+
const zr = cn, ra = bn.EventEmitter, na = Bt.inherits, {
|
|
4444
4548
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
|
|
4445
4549
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
4446
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4447
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4448
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4449
|
-
} =
|
|
4450
|
-
function
|
|
4451
|
-
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose",
|
|
4550
|
+
AVV_ERR_PLUGIN_NOT_VALID: ia,
|
|
4551
|
+
AVV_ERR_ROOT_PLG_BOOTED: oa,
|
|
4552
|
+
AVV_ERR_READY_TIMEOUT: sa
|
|
4553
|
+
} = Ln, aa = qs, cr = ta, Xe = Un("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
|
|
4554
|
+
function ua(t, e, r) {
|
|
4555
|
+
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
|
|
4452
4556
|
if (t[s])
|
|
4453
4557
|
throw new Ht(s);
|
|
4454
4558
|
if (t[u])
|
|
4455
4559
|
throw new Ht(u);
|
|
4456
4560
|
if (t[l])
|
|
4457
4561
|
throw new Ht(l);
|
|
4458
|
-
t[s] = function(
|
|
4459
|
-
return r.use(
|
|
4460
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4461
|
-
return typeof
|
|
4462
|
-
}, t[l] = function(
|
|
4463
|
-
if (
|
|
4464
|
-
throw new ct(l, typeof
|
|
4465
|
-
return r.ready(
|
|
4466
|
-
}, t[f] = function(
|
|
4467
|
-
if (typeof
|
|
4468
|
-
throw new ct(f, typeof
|
|
4469
|
-
return r.onClose(
|
|
4470
|
-
}, t[
|
|
4471
|
-
if (
|
|
4472
|
-
throw new ct(
|
|
4473
|
-
return
|
|
4562
|
+
t[s] = function(S, g) {
|
|
4563
|
+
return r.use(S, g), this;
|
|
4564
|
+
}, Object.defineProperty(t, "then", { get: $n.bind(r) }), t[Ft] = !0, t[u] = function(S) {
|
|
4565
|
+
return typeof S != "function" ? r._loadRegistered() : (r.after(Jt(S, this)), this);
|
|
4566
|
+
}, t[l] = function(S) {
|
|
4567
|
+
if (S && typeof S != "function")
|
|
4568
|
+
throw new ct(l, typeof S);
|
|
4569
|
+
return r.ready(S ? Jt(S, this) : void 0);
|
|
4570
|
+
}, t[f] = function(S) {
|
|
4571
|
+
if (typeof S != "function")
|
|
4572
|
+
throw new ct(f, typeof S);
|
|
4573
|
+
return r.onClose(pa(S, this)), this;
|
|
4574
|
+
}, t[p] = function(S) {
|
|
4575
|
+
if (S && typeof S != "function")
|
|
4576
|
+
throw new ct(p, typeof S);
|
|
4577
|
+
return S ? (r.close(Jt(S, this)), this) : r.close();
|
|
4474
4578
|
};
|
|
4475
4579
|
}
|
|
4476
|
-
function
|
|
4477
|
-
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof
|
|
4478
|
-
const o = new
|
|
4479
|
-
return t &&
|
|
4480
|
-
}
|
|
4481
|
-
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new
|
|
4482
|
-
this.emit("start"), this._readyQ.drain =
|
|
4483
|
-
}, this._closeQ =
|
|
4484
|
-
this.emit("close"), this._closeQ.drain =
|
|
4485
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
4580
|
+
function ee(t, e, r) {
|
|
4581
|
+
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
|
|
4582
|
+
const o = new ee(t, e, r);
|
|
4583
|
+
return t && ua(t, e, o), o;
|
|
4584
|
+
}
|
|
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 aa(), this._readyQ = zr(this, jn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4586
|
+
this.emit("start"), this._readyQ.drain = Kr;
|
|
4587
|
+
}, this._closeQ = zr(this, ha, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4588
|
+
this.emit("close"), this._closeQ.drain = Kr;
|
|
4589
|
+
}, this._doStart = null, this._root = new cr(this, ca.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4486
4590
|
const l = this.pluginTree.start(null, s, u);
|
|
4487
|
-
this._root.once("loaded", (f,
|
|
4488
|
-
this.pluginTree.stop(l,
|
|
4591
|
+
this._root.once("loaded", (f, p, S) => {
|
|
4592
|
+
this.pluginTree.stop(l, S);
|
|
4489
4593
|
});
|
|
4490
4594
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4491
4595
|
Xe("root plugin ready");
|
|
@@ -4502,38 +4606,38 @@ function J(t, e, r) {
|
|
|
4502
4606
|
this._readyQ.resume();
|
|
4503
4607
|
});
|
|
4504
4608
|
}
|
|
4505
|
-
function
|
|
4609
|
+
function ca(t, e, r) {
|
|
4506
4610
|
this._doStart = r, e.autostart && this.start();
|
|
4507
4611
|
}
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
return this.started = !0,
|
|
4612
|
+
na(ee, ra);
|
|
4613
|
+
ee.prototype.start = function() {
|
|
4614
|
+
return this.started = !0, O.process.nextTick(this._doStart), this;
|
|
4511
4615
|
};
|
|
4512
|
-
|
|
4616
|
+
ee.prototype.override = function(t, e, r) {
|
|
4513
4617
|
return t;
|
|
4514
4618
|
};
|
|
4515
|
-
function
|
|
4619
|
+
function fa(t) {
|
|
4516
4620
|
if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
|
|
4517
|
-
throw new
|
|
4621
|
+
throw new ia(typeof t);
|
|
4518
4622
|
return t;
|
|
4519
4623
|
}
|
|
4520
|
-
|
|
4521
|
-
|
|
4624
|
+
ee.prototype[Ft] = !0;
|
|
4625
|
+
ee.prototype.use = function(t, e) {
|
|
4522
4626
|
return this._lastUsed = this._addPlugin(t, e, !1), this;
|
|
4523
4627
|
};
|
|
4524
|
-
|
|
4628
|
+
ee.prototype._loadRegistered = function() {
|
|
4525
4629
|
const t = this._current[0];
|
|
4526
|
-
return !this.started && !this.booted &&
|
|
4630
|
+
return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4527
4631
|
};
|
|
4528
|
-
Object.defineProperty(
|
|
4529
|
-
|
|
4530
|
-
if (t =
|
|
4531
|
-
throw new
|
|
4632
|
+
Object.defineProperty(ee.prototype, "then", { get: $n });
|
|
4633
|
+
ee.prototype._addPlugin = function(t, e, r) {
|
|
4634
|
+
if (t = fa(t), e = e || {}, this.booted)
|
|
4635
|
+
throw new oa();
|
|
4532
4636
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4533
4637
|
if (s.once("start", (u, l, f) => {
|
|
4534
|
-
const
|
|
4535
|
-
s.once("loaded", (
|
|
4536
|
-
this.pluginTree.stop(
|
|
4638
|
+
const p = this.pluginTree.start(o.name, l, f);
|
|
4639
|
+
s.once("loaded", (S, g, b) => {
|
|
4640
|
+
this.pluginTree.stop(p, b);
|
|
4537
4641
|
});
|
|
4538
4642
|
}), o.loaded)
|
|
4539
4643
|
throw new Error(s.name, o.name);
|
|
@@ -4541,16 +4645,16 @@ J.prototype._addPlugin = function(t, e, r) {
|
|
|
4541
4645
|
u && (this._error = u);
|
|
4542
4646
|
}), s;
|
|
4543
4647
|
};
|
|
4544
|
-
|
|
4648
|
+
ee.prototype.after = function(t) {
|
|
4545
4649
|
if (!t)
|
|
4546
4650
|
return this._loadRegistered();
|
|
4547
4651
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4548
4652
|
function e(r, o, s) {
|
|
4549
|
-
|
|
4653
|
+
jn.call(this, t, s);
|
|
4550
4654
|
}
|
|
4551
4655
|
return this;
|
|
4552
4656
|
};
|
|
4553
|
-
|
|
4657
|
+
ee.prototype.onClose = function(t) {
|
|
4554
4658
|
if (typeof t != "function")
|
|
4555
4659
|
throw new Error("not a function");
|
|
4556
4660
|
t[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(t, e.bind(this));
|
|
@@ -4559,7 +4663,7 @@ J.prototype.onClose = function(t) {
|
|
|
4559
4663
|
}
|
|
4560
4664
|
return this;
|
|
4561
4665
|
};
|
|
4562
|
-
|
|
4666
|
+
ee.prototype.close = function(t) {
|
|
4563
4667
|
let e;
|
|
4564
4668
|
if (t) {
|
|
4565
4669
|
if (typeof t != "function")
|
|
@@ -4573,10 +4677,10 @@ J.prototype.close = function(t) {
|
|
|
4573
4677
|
};
|
|
4574
4678
|
});
|
|
4575
4679
|
return this.ready(() => {
|
|
4576
|
-
this._error = null, this._closeQ.push(t),
|
|
4680
|
+
this._error = null, this._closeQ.push(t), O.process.nextTick(this._closeQ.resume.bind(this._closeQ));
|
|
4577
4681
|
}), e;
|
|
4578
4682
|
};
|
|
4579
|
-
|
|
4683
|
+
ee.prototype.ready = function(t) {
|
|
4580
4684
|
if (t) {
|
|
4581
4685
|
if (typeof t != "function")
|
|
4582
4686
|
throw new ct("ready", typeof t);
|
|
@@ -4587,19 +4691,19 @@ J.prototype.ready = function(t) {
|
|
|
4587
4691
|
this._readyQ.push(s), this.start();
|
|
4588
4692
|
const o = this._current[0].server;
|
|
4589
4693
|
function s(u, l, f) {
|
|
4590
|
-
u ? r(u) : e(o),
|
|
4694
|
+
u ? r(u) : e(o), O.process.nextTick(f);
|
|
4591
4695
|
}
|
|
4592
4696
|
});
|
|
4593
4697
|
};
|
|
4594
|
-
|
|
4698
|
+
ee.prototype.prettyPrint = function() {
|
|
4595
4699
|
return this.pluginTree.prittyPrint();
|
|
4596
4700
|
};
|
|
4597
|
-
|
|
4701
|
+
ee.prototype.toJSON = function() {
|
|
4598
4702
|
return this.pluginTree.toJSON();
|
|
4599
4703
|
};
|
|
4600
|
-
function
|
|
4704
|
+
function Kr() {
|
|
4601
4705
|
}
|
|
4602
|
-
function
|
|
4706
|
+
function $n() {
|
|
4603
4707
|
if (this.booted) {
|
|
4604
4708
|
Xe("thenify returning null because we are already booted");
|
|
4605
4709
|
return;
|
|
@@ -4610,27 +4714,27 @@ function Ln() {
|
|
|
4610
4714
|
}
|
|
4611
4715
|
return Xe("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
|
|
4612
4716
|
}
|
|
4613
|
-
function
|
|
4717
|
+
function jn(t, e) {
|
|
4614
4718
|
const r = this._server, o = this._error;
|
|
4615
4719
|
let s;
|
|
4616
4720
|
if (this._error = null, t.length === 0)
|
|
4617
|
-
this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() =>
|
|
4721
|
+
this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
|
|
4618
4722
|
else if (t.length === 1)
|
|
4619
|
-
s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() =>
|
|
4723
|
+
s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
|
|
4620
4724
|
else if (this._timeout === 0) {
|
|
4621
4725
|
const u = (l) => {
|
|
4622
4726
|
this._error = l, e(this._error);
|
|
4623
4727
|
};
|
|
4624
4728
|
t.length === 2 ? t(o, u) : t(o, r, u);
|
|
4625
4729
|
} else
|
|
4626
|
-
|
|
4730
|
+
la.call(this, t, o, r, e);
|
|
4627
4731
|
}
|
|
4628
|
-
function
|
|
4732
|
+
function la(t, e, r, o) {
|
|
4629
4733
|
const s = t.name;
|
|
4630
4734
|
Xe("setting up ready timeout", s, this._timeout);
|
|
4631
4735
|
let u = setTimeout(() => {
|
|
4632
4736
|
Xe("timed out", s), u = null;
|
|
4633
|
-
const f = new
|
|
4737
|
+
const f = new sa(s);
|
|
4634
4738
|
f.fn = t, this._error = f, o(f);
|
|
4635
4739
|
}, this._timeout);
|
|
4636
4740
|
t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
|
|
@@ -4638,26 +4742,26 @@ function oa(t, e, r, o) {
|
|
|
4638
4742
|
u && (clearTimeout(u), this._error = f, o(this._error));
|
|
4639
4743
|
}
|
|
4640
4744
|
}
|
|
4641
|
-
function
|
|
4745
|
+
function ha(t, e) {
|
|
4642
4746
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4643
4747
|
if (t.length === 0 || t.length === 1) {
|
|
4644
4748
|
let s;
|
|
4645
4749
|
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Xe("resolving close/onClose promise"), s.then(
|
|
4646
|
-
() =>
|
|
4647
|
-
(u) =>
|
|
4648
|
-
)) :
|
|
4750
|
+
() => O.process.nextTick(e),
|
|
4751
|
+
(u) => O.process.nextTick(e, u)
|
|
4752
|
+
)) : O.process.nextTick(e);
|
|
4649
4753
|
} else
|
|
4650
4754
|
t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
|
|
4651
4755
|
}
|
|
4652
|
-
function
|
|
4756
|
+
function pa(t, e) {
|
|
4653
4757
|
return r.bind(e);
|
|
4654
4758
|
function r(o, s) {
|
|
4655
4759
|
let u;
|
|
4656
4760
|
t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
|
|
4657
|
-
|
|
4658
|
-
}, s) :
|
|
4659
|
-
|
|
4660
|
-
}, s) :
|
|
4761
|
+
O.process.nextTick(s);
|
|
4762
|
+
}, s) : O.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
|
|
4763
|
+
O.process.nextTick(s);
|
|
4764
|
+
}, s) : O.process.nextTick(s)) : t(this, s);
|
|
4661
4765
|
}
|
|
4662
4766
|
}
|
|
4663
4767
|
function Jt(t, e) {
|
|
@@ -4665,25 +4769,25 @@ function Jt(t, e) {
|
|
|
4665
4769
|
function r(o, s) {
|
|
4666
4770
|
let u;
|
|
4667
4771
|
t ? t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
|
|
4668
|
-
|
|
4669
|
-
}, s) :
|
|
4670
|
-
|
|
4671
|
-
}, s) :
|
|
4772
|
+
O.process.nextTick(s, o);
|
|
4773
|
+
}, s) : O.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
|
|
4774
|
+
O.process.nextTick(s);
|
|
4775
|
+
}, s) : O.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : O.process.nextTick(s);
|
|
4672
4776
|
}
|
|
4673
4777
|
}
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
return
|
|
4778
|
+
gr.exports = ee;
|
|
4779
|
+
gr.exports.express = function(t) {
|
|
4780
|
+
return ee(t, {
|
|
4677
4781
|
expose: {
|
|
4678
4782
|
use: "load"
|
|
4679
4783
|
}
|
|
4680
4784
|
});
|
|
4681
4785
|
};
|
|
4682
|
-
var
|
|
4683
|
-
const
|
|
4684
|
-
function
|
|
4685
|
-
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s =
|
|
4686
|
-
return s.use(
|
|
4786
|
+
var da = gr.exports;
|
|
4787
|
+
const ya = /* @__PURE__ */ Jn(da);
|
|
4788
|
+
function Ra(t, e = !0, r = !0) {
|
|
4789
|
+
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ya(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4790
|
+
return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(ao), s.use(Ji), r && s.after(async (u, l, f) => {
|
|
4687
4791
|
if (u)
|
|
4688
4792
|
throw u;
|
|
4689
4793
|
await l.sdk.initializeApp(), f();
|
|
@@ -4692,5 +4796,5 @@ function _a(t, e = !0, r = !0) {
|
|
|
4692
4796
|
}), s;
|
|
4693
4797
|
}
|
|
4694
4798
|
export {
|
|
4695
|
-
|
|
4799
|
+
Ra as StreamLayer
|
|
4696
4800
|
};
|