@qikdev/sdk 0.1.209 → 0.1.210
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/dist/main.js
CHANGED
|
@@ -68,43 +68,43 @@ var Ye, Or;
|
|
|
68
68
|
function Xr() {
|
|
69
69
|
if (Or) return Ye;
|
|
70
70
|
Or = 1;
|
|
71
|
-
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", i = function(d,
|
|
71
|
+
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", i = function(d, m) {
|
|
72
72
|
for (var S = [], A = 0; A < d.length; A += 1)
|
|
73
73
|
S[A] = d[A];
|
|
74
|
-
for (var
|
|
75
|
-
S[
|
|
74
|
+
for (var P = 0; P < m.length; P += 1)
|
|
75
|
+
S[P + d.length] = m[P];
|
|
76
76
|
return S;
|
|
77
|
-
}, s = function(d,
|
|
78
|
-
for (var S = [], A =
|
|
79
|
-
S[
|
|
77
|
+
}, s = function(d, m) {
|
|
78
|
+
for (var S = [], A = m, P = 0; A < d.length; A += 1, P += 1)
|
|
79
|
+
S[P] = d[A];
|
|
80
80
|
return S;
|
|
81
81
|
}, f = function(u, d) {
|
|
82
|
-
for (var
|
|
83
|
-
|
|
84
|
-
return
|
|
82
|
+
for (var m = "", S = 0; S < u.length; S += 1)
|
|
83
|
+
m += u[S], S + 1 < u.length && (m += d);
|
|
84
|
+
return m;
|
|
85
85
|
};
|
|
86
86
|
return Ye = function(d) {
|
|
87
|
-
var
|
|
88
|
-
if (typeof
|
|
89
|
-
throw new TypeError(e +
|
|
90
|
-
for (var S = s(arguments, 1), A,
|
|
87
|
+
var m = this;
|
|
88
|
+
if (typeof m != "function" || r.apply(m) !== t)
|
|
89
|
+
throw new TypeError(e + m);
|
|
90
|
+
for (var S = s(arguments, 1), A, P = function() {
|
|
91
91
|
if (this instanceof A) {
|
|
92
|
-
var n =
|
|
92
|
+
var n = m.apply(
|
|
93
93
|
this,
|
|
94
94
|
i(S, arguments)
|
|
95
95
|
);
|
|
96
96
|
return Object(n) === n ? n : this;
|
|
97
97
|
}
|
|
98
|
-
return
|
|
98
|
+
return m.apply(
|
|
99
99
|
d,
|
|
100
100
|
i(S, arguments)
|
|
101
101
|
);
|
|
102
|
-
}, v = a(0,
|
|
102
|
+
}, v = a(0, m.length - S.length), g = [], x = 0; x < v; x++)
|
|
103
103
|
g[x] = "$" + x;
|
|
104
|
-
if (A = Function("binder", "return function (" + f(g, ",") + "){ return binder.apply(this,arguments); }")(
|
|
104
|
+
if (A = Function("binder", "return function (" + f(g, ",") + "){ return binder.apply(this,arguments); }")(P), m.prototype) {
|
|
105
105
|
var o = function() {
|
|
106
106
|
};
|
|
107
|
-
o.prototype =
|
|
107
|
+
o.prototype = m.prototype, A.prototype = new o(), o.prototype = null;
|
|
108
108
|
}
|
|
109
109
|
return A;
|
|
110
110
|
}, Ye;
|
|
@@ -151,13 +151,13 @@ function hr() {
|
|
|
151
151
|
return f;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
})() : f, d = Yr()(),
|
|
154
|
+
})() : f, d = Yr()(), m = Object.getPrototypeOf || function(F) {
|
|
155
155
|
return F.__proto__;
|
|
156
|
-
}, S = {}, A = typeof Uint8Array > "u" ? e :
|
|
156
|
+
}, S = {}, A = typeof Uint8Array > "u" ? e : m(Uint8Array), P = {
|
|
157
157
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
158
158
|
"%Array%": Array,
|
|
159
159
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
160
|
-
"%ArrayIteratorPrototype%": d ?
|
|
160
|
+
"%ArrayIteratorPrototype%": d ? m([][Symbol.iterator]()) : e,
|
|
161
161
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
162
162
|
"%AsyncFunction%": S,
|
|
163
163
|
"%AsyncGenerator%": S,
|
|
@@ -186,10 +186,10 @@ function hr() {
|
|
|
186
186
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
187
187
|
"%isFinite%": isFinite,
|
|
188
188
|
"%isNaN%": isNaN,
|
|
189
|
-
"%IteratorPrototype%": d ?
|
|
189
|
+
"%IteratorPrototype%": d ? m(m([][Symbol.iterator]())) : e,
|
|
190
190
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
191
191
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
192
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !d ? e :
|
|
192
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !d ? e : m((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
193
193
|
"%Math%": Math,
|
|
194
194
|
"%Number%": Number,
|
|
195
195
|
"%Object%": Object,
|
|
@@ -202,10 +202,10 @@ function hr() {
|
|
|
202
202
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
203
203
|
"%RegExp%": RegExp,
|
|
204
204
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
205
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !d ? e :
|
|
205
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !d ? e : m((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
206
206
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
207
207
|
"%String%": String,
|
|
208
|
-
"%StringIteratorPrototype%": d ?
|
|
208
|
+
"%StringIteratorPrototype%": d ? m(""[Symbol.iterator]()) : e,
|
|
209
209
|
"%Symbol%": d ? Symbol : e,
|
|
210
210
|
"%SyntaxError%": r,
|
|
211
211
|
"%ThrowTypeError%": u,
|
|
@@ -232,9 +232,9 @@ function hr() {
|
|
|
232
232
|
L && (_ = L.prototype);
|
|
233
233
|
} else if (N === "%AsyncIteratorPrototype%") {
|
|
234
234
|
var B = F("%AsyncGenerator%");
|
|
235
|
-
B && (_ =
|
|
235
|
+
B && (_ = m(B.prototype));
|
|
236
236
|
}
|
|
237
|
-
return
|
|
237
|
+
return P[N] = _, _;
|
|
238
238
|
}, g = {
|
|
239
239
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
240
240
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -287,20 +287,20 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
}, x = yr(), o = et(), n = x.call(Function.call, Array.prototype.concat), c = x.call(Function.apply, Array.prototype.splice),
|
|
290
|
+
}, x = yr(), o = et(), n = x.call(Function.call, Array.prototype.concat), c = x.call(Function.apply, Array.prototype.splice), y = x.call(Function.call, String.prototype.replace), b = x.call(Function.call, String.prototype.slice), E = x.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, R = /\\(\\)?/g, k = function(N) {
|
|
291
291
|
var _ = b(N, 0, 1), L = b(N, -1);
|
|
292
292
|
if (_ === "%" && L !== "%")
|
|
293
293
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
294
294
|
if (L === "%" && _ !== "%")
|
|
295
295
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
296
296
|
var B = [];
|
|
297
|
-
return
|
|
298
|
-
B[B.length] = T ?
|
|
297
|
+
return y(N, I, function($, W, T, z) {
|
|
298
|
+
B[B.length] = T ? y(z, R, "$1") : W || $;
|
|
299
299
|
}), B;
|
|
300
300
|
}, j = function(N, _) {
|
|
301
301
|
var L = N, B;
|
|
302
|
-
if (o(g, L) && (B = g[L], L = "%" + B[0] + "%"), o(
|
|
303
|
-
var $ =
|
|
302
|
+
if (o(g, L) && (B = g[L], L = "%" + B[0] + "%"), o(P, L)) {
|
|
303
|
+
var $ = P[L];
|
|
304
304
|
if ($ === S && ($ = v(L)), typeof $ > "u" && !_)
|
|
305
305
|
throw new t("intrinsic " + N + " exists, but is not available. Please file an issue!");
|
|
306
306
|
return {
|
|
@@ -316,7 +316,7 @@ function hr() {
|
|
|
316
316
|
throw new t("intrinsic name must be a non-empty string");
|
|
317
317
|
if (arguments.length > 1 && typeof _ != "boolean")
|
|
318
318
|
throw new t('"allowMissing" argument must be a boolean');
|
|
319
|
-
if (
|
|
319
|
+
if (E(/^%?[^%]*%?$/, N) === null)
|
|
320
320
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
321
321
|
var L = k(N), B = L.length > 0 ? L[0] : "", $ = j("%" + B + "%", _), W = $.name, T = $.value, z = !1, H = $.alias;
|
|
322
322
|
H && (B = H[0], c(L, n([0, 1], H)));
|
|
@@ -324,8 +324,8 @@ function hr() {
|
|
|
324
324
|
var K = L[X], ie = b(K, 0, 1), te = b(K, -1);
|
|
325
325
|
if ((ie === '"' || ie === "'" || ie === "`" || te === '"' || te === "'" || te === "`") && ie !== te)
|
|
326
326
|
throw new r("property names with quotes must have matching quotes");
|
|
327
|
-
if ((K === "constructor" || !ee) && (z = !0), B += "." + K, W = "%" + B + "%", o(
|
|
328
|
-
T =
|
|
327
|
+
if ((K === "constructor" || !ee) && (z = !0), B += "." + K, W = "%" + B + "%", o(P, W))
|
|
328
|
+
T = P[W];
|
|
329
329
|
else if (T != null) {
|
|
330
330
|
if (!(K in T)) {
|
|
331
331
|
if (!_)
|
|
@@ -337,7 +337,7 @@ function hr() {
|
|
|
337
337
|
ee = !!ae, ee && "get" in ae && !("originalValue" in ae.get) ? T = ae.get : T = T[K];
|
|
338
338
|
} else
|
|
339
339
|
ee = o(T, K), T = T[K];
|
|
340
|
-
ee && !z && (
|
|
340
|
+
ee && !z && (P[W] = T);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return T;
|
|
@@ -354,21 +354,21 @@ function rt() {
|
|
|
354
354
|
u = null;
|
|
355
355
|
}
|
|
356
356
|
e.exports = function(A) {
|
|
357
|
-
var
|
|
357
|
+
var P = s(r, i, arguments);
|
|
358
358
|
if (f && u) {
|
|
359
|
-
var v = f(
|
|
359
|
+
var v = f(P, "length");
|
|
360
360
|
v.configurable && u(
|
|
361
|
-
|
|
361
|
+
P,
|
|
362
362
|
"length",
|
|
363
363
|
{ value: 1 + d(0, A.length - (arguments.length - 1)) }
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return P;
|
|
367
367
|
};
|
|
368
|
-
var
|
|
368
|
+
var m = function() {
|
|
369
369
|
return s(r, t, arguments);
|
|
370
370
|
};
|
|
371
|
-
u ? u(e.exports, "apply", { value:
|
|
371
|
+
u ? u(e.exports, "apply", { value: m }) : e.exports.apply = m;
|
|
372
372
|
})(tr)), tr.exports;
|
|
373
373
|
}
|
|
374
374
|
var ar, Rr;
|
|
@@ -389,24 +389,24 @@ var nr, _r;
|
|
|
389
389
|
function ot() {
|
|
390
390
|
if (_r) return nr;
|
|
391
391
|
_r = 1;
|
|
392
|
-
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, f = i && s && typeof s.get == "function" ? s.get : null, u = i && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype,
|
|
393
|
-
return
|
|
392
|
+
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, f = i && s && typeof s.get == "function" ? s.get : null, u = i && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype, m = d ? WeakMap.prototype.has : null, S = typeof WeakSet == "function" && WeakSet.prototype, A = S ? WeakSet.prototype.has : null, P = typeof WeakRef == "function" && WeakRef.prototype, v = P ? WeakRef.prototype.deref : null, g = Boolean.prototype.valueOf, x = Object.prototype.toString, o = Function.prototype.toString, n = String.prototype.match, c = String.prototype.slice, y = String.prototype.replace, b = String.prototype.toUpperCase, E = String.prototype.toLowerCase, I = RegExp.prototype.test, R = Array.prototype.concat, k = Array.prototype.join, j = Array.prototype.slice, F = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _ = Object.getOwnPropertySymbols, L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, W = Object.prototype.propertyIsEnumerable, T = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(p) {
|
|
393
|
+
return p.__proto__;
|
|
394
394
|
} : null);
|
|
395
|
-
function z(
|
|
396
|
-
if (
|
|
395
|
+
function z(p, h) {
|
|
396
|
+
if (p === 1 / 0 || p === -1 / 0 || p !== p || p && p > -1e3 && p < 1e3 || I.call(/e/, h))
|
|
397
397
|
return h;
|
|
398
398
|
var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
399
|
-
if (typeof
|
|
400
|
-
var l =
|
|
401
|
-
if (l !==
|
|
399
|
+
if (typeof p == "number") {
|
|
400
|
+
var l = p < 0 ? -F(-p) : F(p);
|
|
401
|
+
if (l !== p) {
|
|
402
402
|
var w = String(l), C = c.call(h, w.length + 1);
|
|
403
|
-
return
|
|
403
|
+
return y.call(w, D, "$&_") + "." + y.call(y.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return y.call(h, D, "$&_");
|
|
407
407
|
}
|
|
408
408
|
var H = it, X = H.custom, ee = se(X) ? X : null;
|
|
409
|
-
nr = function
|
|
409
|
+
nr = function p(h, D, l, w) {
|
|
410
410
|
var C = D || {};
|
|
411
411
|
if (Z(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -451,22 +451,22 @@ function ot() {
|
|
|
451
451
|
var Pr = {
|
|
452
452
|
depth: C.depth
|
|
453
453
|
};
|
|
454
|
-
return Z(C, "quoteStyle") && (Pr.quoteStyle = C.quoteStyle),
|
|
454
|
+
return Z(C, "quoteStyle") && (Pr.quoteStyle = C.quoteStyle), p(Me, Pr, l + 1, w);
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return p(Me, C, l + 1, w);
|
|
457
457
|
}
|
|
458
458
|
if (typeof h == "function" && !ce(h)) {
|
|
459
459
|
var Y = ke(h), we = ge(h, q);
|
|
460
460
|
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + k.call(we, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
462
|
if (se(h)) {
|
|
463
|
-
var Ar = B ?
|
|
463
|
+
var Ar = B ? y.call(String(h), /^(Symbol\(.*\))_[^)]*$/, "$1") : L.call(h);
|
|
464
464
|
return typeof h == "object" && !B ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
466
|
if (_e(h)) {
|
|
467
|
-
for (var Fe = "<" +
|
|
467
|
+
for (var Fe = "<" + E.call(String(h.nodeName)), ze = h.attributes || [], Be = 0; Be < ze.length; Be++)
|
|
468
468
|
Fe += " " + ze[Be].name + "=" + K(ie(ze[Be].value), "double", C);
|
|
469
|
-
return Fe += ">", h.childNodes && h.childNodes.length && (Fe += "..."), Fe += "</" +
|
|
469
|
+
return Fe += ">", h.childNodes && h.childNodes.length && (Fe += "..."), Fe += "</" + E.call(String(h.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
471
|
if (te(h)) {
|
|
472
472
|
if (h.length === 0)
|
|
@@ -516,161 +516,161 @@ function ot() {
|
|
|
516
516
|
}
|
|
517
517
|
return String(h);
|
|
518
518
|
};
|
|
519
|
-
function K(
|
|
519
|
+
function K(p, h, D) {
|
|
520
520
|
var l = (D.quoteStyle || h) === "double" ? '"' : "'";
|
|
521
|
-
return l +
|
|
521
|
+
return l + p + l;
|
|
522
522
|
}
|
|
523
|
-
function ie(
|
|
524
|
-
return
|
|
523
|
+
function ie(p) {
|
|
524
|
+
return y.call(String(p), /"/g, """);
|
|
525
525
|
}
|
|
526
|
-
function te(
|
|
527
|
-
return re(
|
|
526
|
+
function te(p) {
|
|
527
|
+
return re(p) === "[object Array]" && (!$ || !(typeof p == "object" && $ in p));
|
|
528
528
|
}
|
|
529
|
-
function ae(
|
|
530
|
-
return re(
|
|
529
|
+
function ae(p) {
|
|
530
|
+
return re(p) === "[object Date]" && (!$ || !(typeof p == "object" && $ in p));
|
|
531
531
|
}
|
|
532
|
-
function ce(
|
|
533
|
-
return re(
|
|
532
|
+
function ce(p) {
|
|
533
|
+
return re(p) === "[object RegExp]" && (!$ || !(typeof p == "object" && $ in p));
|
|
534
534
|
}
|
|
535
|
-
function ue(
|
|
536
|
-
return re(
|
|
535
|
+
function ue(p) {
|
|
536
|
+
return re(p) === "[object Error]" && (!$ || !(typeof p == "object" && $ in p));
|
|
537
537
|
}
|
|
538
|
-
function oe(
|
|
539
|
-
return re(
|
|
538
|
+
function oe(p) {
|
|
539
|
+
return re(p) === "[object String]" && (!$ || !(typeof p == "object" && $ in p));
|
|
540
540
|
}
|
|
541
|
-
function de(
|
|
542
|
-
return re(
|
|
541
|
+
function de(p) {
|
|
542
|
+
return re(p) === "[object Number]" && (!$ || !(typeof p == "object" && $ in p));
|
|
543
543
|
}
|
|
544
|
-
function pe(
|
|
545
|
-
return re(
|
|
544
|
+
function pe(p) {
|
|
545
|
+
return re(p) === "[object Boolean]" && (!$ || !(typeof p == "object" && $ in p));
|
|
546
546
|
}
|
|
547
|
-
function se(
|
|
547
|
+
function se(p) {
|
|
548
548
|
if (B)
|
|
549
|
-
return
|
|
550
|
-
if (typeof
|
|
549
|
+
return p && typeof p == "object" && p instanceof Symbol;
|
|
550
|
+
if (typeof p == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!
|
|
552
|
+
if (!p || typeof p != "object" || !L)
|
|
553
553
|
return !1;
|
|
554
554
|
try {
|
|
555
|
-
return L.call(
|
|
555
|
+
return L.call(p), !0;
|
|
556
556
|
} catch {
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
|
-
function ye(
|
|
561
|
-
if (!
|
|
560
|
+
function ye(p) {
|
|
561
|
+
if (!p || typeof p != "object" || !N)
|
|
562
562
|
return !1;
|
|
563
563
|
try {
|
|
564
|
-
return N.call(
|
|
564
|
+
return N.call(p), !0;
|
|
565
565
|
} catch {
|
|
566
566
|
}
|
|
567
567
|
return !1;
|
|
568
568
|
}
|
|
569
|
-
var be = Object.prototype.hasOwnProperty || function(
|
|
570
|
-
return
|
|
569
|
+
var be = Object.prototype.hasOwnProperty || function(p) {
|
|
570
|
+
return p in this;
|
|
571
571
|
};
|
|
572
|
-
function Z(
|
|
573
|
-
return be.call(
|
|
572
|
+
function Z(p, h) {
|
|
573
|
+
return be.call(p, h);
|
|
574
574
|
}
|
|
575
|
-
function re(
|
|
576
|
-
return x.call(
|
|
575
|
+
function re(p) {
|
|
576
|
+
return x.call(p);
|
|
577
577
|
}
|
|
578
|
-
function ke(
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
581
|
-
var h = n.call(o.call(
|
|
578
|
+
function ke(p) {
|
|
579
|
+
if (p.name)
|
|
580
|
+
return p.name;
|
|
581
|
+
var h = n.call(o.call(p), /^function\s*([\w$]+)/);
|
|
582
582
|
return h ? h[1] : null;
|
|
583
583
|
}
|
|
584
|
-
function Pe(
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
for (var D = 0, l =
|
|
588
|
-
if (
|
|
584
|
+
function Pe(p, h) {
|
|
585
|
+
if (p.indexOf)
|
|
586
|
+
return p.indexOf(h);
|
|
587
|
+
for (var D = 0, l = p.length; D < l; D++)
|
|
588
|
+
if (p[D] === h)
|
|
589
589
|
return D;
|
|
590
590
|
return -1;
|
|
591
591
|
}
|
|
592
|
-
function Ie(
|
|
593
|
-
if (!a || !
|
|
592
|
+
function Ie(p) {
|
|
593
|
+
if (!a || !p || typeof p != "object")
|
|
594
594
|
return !1;
|
|
595
595
|
try {
|
|
596
|
-
a.call(
|
|
596
|
+
a.call(p);
|
|
597
597
|
try {
|
|
598
|
-
f.call(
|
|
598
|
+
f.call(p);
|
|
599
599
|
} catch {
|
|
600
600
|
return !0;
|
|
601
601
|
}
|
|
602
|
-
return
|
|
602
|
+
return p instanceof Map;
|
|
603
603
|
} catch {
|
|
604
604
|
}
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
|
-
function me(
|
|
608
|
-
if (!
|
|
607
|
+
function me(p) {
|
|
608
|
+
if (!m || !p || typeof p != "object")
|
|
609
609
|
return !1;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
m.call(p, m);
|
|
612
612
|
try {
|
|
613
|
-
A.call(
|
|
613
|
+
A.call(p, A);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return p instanceof WeakMap;
|
|
618
618
|
} catch {
|
|
619
619
|
}
|
|
620
620
|
return !1;
|
|
621
621
|
}
|
|
622
|
-
function xe(
|
|
623
|
-
if (!v || !
|
|
622
|
+
function xe(p) {
|
|
623
|
+
if (!v || !p || typeof p != "object")
|
|
624
624
|
return !1;
|
|
625
625
|
try {
|
|
626
|
-
return v.call(
|
|
626
|
+
return v.call(p), !0;
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function Te(
|
|
632
|
-
if (!f || !
|
|
631
|
+
function Te(p) {
|
|
632
|
+
if (!f || !p || typeof p != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
635
|
-
f.call(
|
|
635
|
+
f.call(p);
|
|
636
636
|
try {
|
|
637
|
-
a.call(
|
|
637
|
+
a.call(p);
|
|
638
638
|
} catch {
|
|
639
639
|
return !0;
|
|
640
640
|
}
|
|
641
|
-
return
|
|
641
|
+
return p instanceof Set;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function Re(
|
|
647
|
-
if (!A || !
|
|
646
|
+
function Re(p) {
|
|
647
|
+
if (!A || !p || typeof p != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
A.call(
|
|
650
|
+
A.call(p, A);
|
|
651
651
|
try {
|
|
652
|
-
|
|
652
|
+
m.call(p, m);
|
|
653
653
|
} catch {
|
|
654
654
|
return !0;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return p instanceof WeakSet;
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
function _e(
|
|
662
|
-
return !
|
|
661
|
+
function _e(p) {
|
|
662
|
+
return !p || typeof p != "object" ? !1 : typeof HTMLElement < "u" && p instanceof HTMLElement ? !0 : typeof p.nodeName == "string" && typeof p.getAttribute == "function";
|
|
663
663
|
}
|
|
664
|
-
function Ce(
|
|
665
|
-
if (
|
|
666
|
-
var D =
|
|
667
|
-
return Ce(c.call(
|
|
664
|
+
function Ce(p, h) {
|
|
665
|
+
if (p.length > h.maxStringLength) {
|
|
666
|
+
var D = p.length - h.maxStringLength, l = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
+
return Ce(c.call(p, 0, h.maxStringLength), h) + l;
|
|
668
668
|
}
|
|
669
|
-
var w =
|
|
669
|
+
var w = y.call(y.call(p, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
670
|
return K(w, "single", h);
|
|
671
671
|
}
|
|
672
|
-
function Ne(
|
|
673
|
-
var h =
|
|
672
|
+
function Ne(p) {
|
|
673
|
+
var h = p.charCodeAt(0), D = {
|
|
674
674
|
8: "b",
|
|
675
675
|
9: "t",
|
|
676
676
|
10: "n",
|
|
@@ -679,29 +679,29 @@ function ot() {
|
|
|
679
679
|
}[h];
|
|
680
680
|
return D ? "\\" + D : "\\x" + (h < 16 ? "0" : "") + b.call(h.toString(16));
|
|
681
681
|
}
|
|
682
|
-
function le(
|
|
683
|
-
return "Object(" +
|
|
682
|
+
function le(p) {
|
|
683
|
+
return "Object(" + p + ")";
|
|
684
684
|
}
|
|
685
|
-
function fe(
|
|
686
|
-
return
|
|
685
|
+
function fe(p) {
|
|
686
|
+
return p + " { ? }";
|
|
687
687
|
}
|
|
688
|
-
function Se(
|
|
688
|
+
function Se(p, h, D, l) {
|
|
689
689
|
var w = l ? he(D, l) : k.call(D, ", ");
|
|
690
|
-
return
|
|
690
|
+
return p + " (" + h + ") {" + w + "}";
|
|
691
691
|
}
|
|
692
|
-
function Oe(
|
|
693
|
-
for (var h = 0; h <
|
|
694
|
-
if (Pe(
|
|
692
|
+
function Oe(p) {
|
|
693
|
+
for (var h = 0; h < p.length; h++)
|
|
694
|
+
if (Pe(p[h], `
|
|
695
695
|
`) >= 0)
|
|
696
696
|
return !1;
|
|
697
697
|
return !0;
|
|
698
698
|
}
|
|
699
|
-
function Le(
|
|
699
|
+
function Le(p, h) {
|
|
700
700
|
var D;
|
|
701
|
-
if (
|
|
701
|
+
if (p.indent === " ")
|
|
702
702
|
D = " ";
|
|
703
|
-
else if (typeof
|
|
704
|
-
D = k.call(Array(
|
|
703
|
+
else if (typeof p.indent == "number" && p.indent > 0)
|
|
704
|
+
D = k.call(Array(p.indent + 1), " ");
|
|
705
705
|
else
|
|
706
706
|
return null;
|
|
707
707
|
return {
|
|
@@ -709,32 +709,32 @@ function ot() {
|
|
|
709
709
|
prev: k.call(Array(h + 1), D)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function he(
|
|
713
|
-
if (
|
|
712
|
+
function he(p, h) {
|
|
713
|
+
if (p.length === 0)
|
|
714
714
|
return "";
|
|
715
715
|
var D = `
|
|
716
716
|
` + h.prev + h.base;
|
|
717
|
-
return D + k.call(
|
|
717
|
+
return D + k.call(p, "," + D) + `
|
|
718
718
|
` + h.prev;
|
|
719
719
|
}
|
|
720
|
-
function ge(
|
|
721
|
-
var D = te(
|
|
720
|
+
function ge(p, h) {
|
|
721
|
+
var D = te(p), l = [];
|
|
722
722
|
if (D) {
|
|
723
|
-
l.length =
|
|
724
|
-
for (var w = 0; w <
|
|
725
|
-
l[w] = Z(
|
|
723
|
+
l.length = p.length;
|
|
724
|
+
for (var w = 0; w < p.length; w++)
|
|
725
|
+
l[w] = Z(p, w) ? h(p[w], p) : "";
|
|
726
726
|
}
|
|
727
|
-
var C = typeof _ == "function" ? _(
|
|
727
|
+
var C = typeof _ == "function" ? _(p) : [], G;
|
|
728
728
|
if (B) {
|
|
729
729
|
G = {};
|
|
730
730
|
for (var ne = 0; ne < C.length; ne++)
|
|
731
731
|
G["$" + C[ne]] = C[ne];
|
|
732
732
|
}
|
|
733
|
-
for (var J in
|
|
734
|
-
Z(
|
|
733
|
+
for (var J in p)
|
|
734
|
+
Z(p, J) && (D && String(Number(J)) === J && J < p.length || B && G["$" + J] instanceof Symbol || (I.call(/[^\w$]/, J) ? l.push(h(J, p) + ": " + h(p[J], p)) : l.push(J + ": " + h(p[J], p))));
|
|
735
735
|
if (typeof _ == "function")
|
|
736
736
|
for (var O = 0; O < C.length; O++)
|
|
737
|
-
W.call(
|
|
737
|
+
W.call(p, C[O]) && l.push("[" + h(C[O]) + "]: " + h(p[C[O]], p));
|
|
738
738
|
return l;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
@@ -743,53 +743,53 @@ var ir, Nr;
|
|
|
743
743
|
function st() {
|
|
744
744
|
if (Nr) return ir;
|
|
745
745
|
Nr = 1;
|
|
746
|
-
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), i = e("%WeakMap%", !0), s = e("%Map%", !0), f = r("WeakMap.prototype.get", !0), u = r("WeakMap.prototype.set", !0), d = r("WeakMap.prototype.has", !0),
|
|
747
|
-
for (var c = o,
|
|
748
|
-
if (
|
|
749
|
-
return c.next =
|
|
746
|
+
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), i = e("%WeakMap%", !0), s = e("%Map%", !0), f = r("WeakMap.prototype.get", !0), u = r("WeakMap.prototype.set", !0), d = r("WeakMap.prototype.has", !0), m = r("Map.prototype.get", !0), S = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), P = function(o, n) {
|
|
747
|
+
for (var c = o, y; (y = c.next) !== null; c = y)
|
|
748
|
+
if (y.key === n)
|
|
749
|
+
return c.next = y.next, y.next = o.next, o.next = y, y;
|
|
750
750
|
}, v = function(o, n) {
|
|
751
|
-
var c =
|
|
751
|
+
var c = P(o, n);
|
|
752
752
|
return c && c.value;
|
|
753
753
|
}, g = function(o, n, c) {
|
|
754
|
-
var
|
|
755
|
-
|
|
754
|
+
var y = P(o, n);
|
|
755
|
+
y ? y.value = c : o.next = {
|
|
756
756
|
// eslint-disable-line no-param-reassign
|
|
757
757
|
key: n,
|
|
758
758
|
next: o.next,
|
|
759
759
|
value: c
|
|
760
760
|
};
|
|
761
761
|
}, x = function(o, n) {
|
|
762
|
-
return !!
|
|
762
|
+
return !!P(o, n);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
765
|
-
var n, c,
|
|
766
|
-
assert: function(
|
|
767
|
-
if (!b.has(
|
|
768
|
-
throw new t("Side channel does not contain " + a(
|
|
765
|
+
var n, c, y, b = {
|
|
766
|
+
assert: function(E) {
|
|
767
|
+
if (!b.has(E))
|
|
768
|
+
throw new t("Side channel does not contain " + a(E));
|
|
769
769
|
},
|
|
770
|
-
get: function(
|
|
771
|
-
if (i &&
|
|
770
|
+
get: function(E) {
|
|
771
|
+
if (i && E && (typeof E == "object" || typeof E == "function")) {
|
|
772
772
|
if (n)
|
|
773
|
-
return f(n,
|
|
773
|
+
return f(n, E);
|
|
774
774
|
} else if (s) {
|
|
775
775
|
if (c)
|
|
776
|
-
return
|
|
777
|
-
} else if (
|
|
778
|
-
return v(
|
|
776
|
+
return m(c, E);
|
|
777
|
+
} else if (y)
|
|
778
|
+
return v(y, E);
|
|
779
779
|
},
|
|
780
|
-
has: function(
|
|
781
|
-
if (i &&
|
|
780
|
+
has: function(E) {
|
|
781
|
+
if (i && E && (typeof E == "object" || typeof E == "function")) {
|
|
782
782
|
if (n)
|
|
783
|
-
return d(n,
|
|
783
|
+
return d(n, E);
|
|
784
784
|
} else if (s) {
|
|
785
785
|
if (c)
|
|
786
|
-
return A(c,
|
|
787
|
-
} else if (
|
|
788
|
-
return x(
|
|
786
|
+
return A(c, E);
|
|
787
|
+
} else if (y)
|
|
788
|
+
return x(y, E);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
|
-
set: function(
|
|
792
|
-
i &&
|
|
791
|
+
set: function(E, I) {
|
|
792
|
+
i && E && (typeof E == "object" || typeof E == "function") ? (n || (n = new i()), u(n, E, I)) : s ? (c || (c = new s()), S(c, E, I)) : (y || (y = { key: {}, next: null }), g(y, E, I));
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
return b;
|
|
@@ -829,14 +829,14 @@ function Wr() {
|
|
|
829
829
|
for (; o.length > 1; ) {
|
|
830
830
|
var n = o.pop(), c = n.obj[n.prop];
|
|
831
831
|
if (a(c)) {
|
|
832
|
-
for (var
|
|
833
|
-
typeof c[b] < "u" &&
|
|
834
|
-
n.obj[n.prop] =
|
|
832
|
+
for (var y = [], b = 0; b < c.length; ++b)
|
|
833
|
+
typeof c[b] < "u" && y.push(c[b]);
|
|
834
|
+
n.obj[n.prop] = y;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
}, s = function(o, n) {
|
|
838
|
-
for (var c = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {},
|
|
839
|
-
typeof o[
|
|
838
|
+
for (var c = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, y = 0; y < o.length; ++y)
|
|
839
|
+
typeof o[y] < "u" && (c[y] = o[y]);
|
|
840
840
|
return c;
|
|
841
841
|
}, f = function x(o, n, c) {
|
|
842
842
|
if (!n)
|
|
@@ -852,20 +852,20 @@ function Wr() {
|
|
|
852
852
|
}
|
|
853
853
|
if (!o || typeof o != "object")
|
|
854
854
|
return [o].concat(n);
|
|
855
|
-
var
|
|
856
|
-
return a(o) && !a(n) && (
|
|
857
|
-
if (r.call(o,
|
|
858
|
-
var I = o[
|
|
859
|
-
I && typeof I == "object" && b && typeof b == "object" ? o[
|
|
855
|
+
var y = o;
|
|
856
|
+
return a(o) && !a(n) && (y = s(o, c)), a(o) && a(n) ? (n.forEach(function(b, E) {
|
|
857
|
+
if (r.call(o, E)) {
|
|
858
|
+
var I = o[E];
|
|
859
|
+
I && typeof I == "object" && b && typeof b == "object" ? o[E] = x(I, b, c) : o.push(b);
|
|
860
860
|
} else
|
|
861
|
-
o[
|
|
862
|
-
}), o) : Object.keys(n).reduce(function(b,
|
|
863
|
-
var I = n[
|
|
864
|
-
return r.call(b,
|
|
865
|
-
},
|
|
861
|
+
o[E] = b;
|
|
862
|
+
}), o) : Object.keys(n).reduce(function(b, E) {
|
|
863
|
+
var I = n[E];
|
|
864
|
+
return r.call(b, E) ? b[E] = x(b[E], I, c) : b[E] = I, b;
|
|
865
|
+
}, y);
|
|
866
866
|
}, u = function(o, n) {
|
|
867
|
-
return Object.keys(n).reduce(function(c,
|
|
868
|
-
return c[
|
|
867
|
+
return Object.keys(n).reduce(function(c, y) {
|
|
868
|
+
return c[y] = n[y], c;
|
|
869
869
|
}, o);
|
|
870
870
|
}, d = function(x, o, n) {
|
|
871
871
|
var c = x.replace(/\+/g, " ");
|
|
@@ -876,18 +876,18 @@ function Wr() {
|
|
|
876
876
|
} catch {
|
|
877
877
|
return c;
|
|
878
878
|
}
|
|
879
|
-
},
|
|
879
|
+
}, m = function(o, n, c, y, b) {
|
|
880
880
|
if (o.length === 0)
|
|
881
881
|
return o;
|
|
882
|
-
var
|
|
883
|
-
if (typeof o == "symbol" ?
|
|
884
|
-
return escape(
|
|
882
|
+
var E = o;
|
|
883
|
+
if (typeof o == "symbol" ? E = Symbol.prototype.toString.call(o) : typeof o != "string" && (E = String(o)), c === "iso-8859-1")
|
|
884
|
+
return escape(E).replace(/%u[0-9a-f]{4}/gi, function(j) {
|
|
885
885
|
return "%26%23" + parseInt(j.slice(2), 16) + "%3B";
|
|
886
886
|
});
|
|
887
|
-
for (var I = "", R = 0; R <
|
|
888
|
-
var k =
|
|
887
|
+
for (var I = "", R = 0; R < E.length; ++R) {
|
|
888
|
+
var k = E.charCodeAt(R);
|
|
889
889
|
if (k === 45 || k === 46 || k === 95 || k === 126 || k >= 48 && k <= 57 || k >= 65 && k <= 90 || k >= 97 && k <= 122 || b === e.RFC1738 && (k === 40 || k === 41)) {
|
|
890
|
-
I +=
|
|
890
|
+
I += E.charAt(R);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
893
|
if (k < 128) {
|
|
@@ -902,26 +902,26 @@ function Wr() {
|
|
|
902
902
|
I = I + (t[224 | k >> 12] + t[128 | k >> 6 & 63] + t[128 | k & 63]);
|
|
903
903
|
continue;
|
|
904
904
|
}
|
|
905
|
-
R += 1, k = 65536 + ((k & 1023) << 10 |
|
|
905
|
+
R += 1, k = 65536 + ((k & 1023) << 10 | E.charCodeAt(R) & 1023), I += t[240 | k >> 18] + t[128 | k >> 12 & 63] + t[128 | k >> 6 & 63] + t[128 | k & 63];
|
|
906
906
|
}
|
|
907
907
|
return I;
|
|
908
908
|
}, S = function(o) {
|
|
909
|
-
for (var n = [{ obj: { o }, prop: "o" }], c = [],
|
|
910
|
-
for (var b = n[
|
|
911
|
-
var k = I[R], j =
|
|
912
|
-
typeof j == "object" && j !== null && c.indexOf(j) === -1 && (n.push({ obj:
|
|
909
|
+
for (var n = [{ obj: { o }, prop: "o" }], c = [], y = 0; y < n.length; ++y)
|
|
910
|
+
for (var b = n[y], E = b.obj[b.prop], I = Object.keys(E), R = 0; R < I.length; ++R) {
|
|
911
|
+
var k = I[R], j = E[k];
|
|
912
|
+
typeof j == "object" && j !== null && c.indexOf(j) === -1 && (n.push({ obj: E, prop: k }), c.push(j));
|
|
913
913
|
}
|
|
914
914
|
return i(n), o;
|
|
915
915
|
}, A = function(o) {
|
|
916
916
|
return Object.prototype.toString.call(o) === "[object RegExp]";
|
|
917
|
-
},
|
|
917
|
+
}, P = function(o) {
|
|
918
918
|
return !o || typeof o != "object" ? !1 : !!(o.constructor && o.constructor.isBuffer && o.constructor.isBuffer(o));
|
|
919
919
|
}, v = function(o, n) {
|
|
920
920
|
return [].concat(o, n);
|
|
921
921
|
}, g = function(o, n) {
|
|
922
922
|
if (a(o)) {
|
|
923
|
-
for (var c = [],
|
|
924
|
-
c.push(n(o[
|
|
923
|
+
for (var c = [], y = 0; y < o.length; y += 1)
|
|
924
|
+
c.push(n(o[y]));
|
|
925
925
|
return c;
|
|
926
926
|
}
|
|
927
927
|
return n(o);
|
|
@@ -932,8 +932,8 @@ function Wr() {
|
|
|
932
932
|
combine: v,
|
|
933
933
|
compact: S,
|
|
934
934
|
decode: d,
|
|
935
|
-
encode:
|
|
936
|
-
isBuffer:
|
|
935
|
+
encode: m,
|
|
936
|
+
isBuffer: P,
|
|
937
937
|
isRegExp: A,
|
|
938
938
|
maybeMap: g,
|
|
939
939
|
merge: f
|
|
@@ -956,7 +956,7 @@ function ut() {
|
|
|
956
956
|
}
|
|
957
957
|
}, s = Array.isArray, f = String.prototype.split, u = Array.prototype.push, d = function(o, n) {
|
|
958
958
|
u.apply(o, s(n) ? n : [n]);
|
|
959
|
-
},
|
|
959
|
+
}, m = Date.prototype.toISOString, S = a.default, A = {
|
|
960
960
|
addQueryPrefix: !1,
|
|
961
961
|
allowDots: !1,
|
|
962
962
|
charset: "utf-8",
|
|
@@ -970,13 +970,13 @@ function ut() {
|
|
|
970
970
|
// deprecated
|
|
971
971
|
indices: !1,
|
|
972
972
|
serializeDate: function(n) {
|
|
973
|
-
return
|
|
973
|
+
return m.call(n);
|
|
974
974
|
},
|
|
975
975
|
skipNulls: !1,
|
|
976
976
|
strictNullHandling: !1
|
|
977
|
-
},
|
|
977
|
+
}, P = function(n) {
|
|
978
978
|
return typeof n == "string" || typeof n == "number" || typeof n == "boolean" || typeof n == "symbol" || typeof n == "bigint";
|
|
979
|
-
}, v = {}, g = function o(n, c,
|
|
979
|
+
}, v = {}, g = function o(n, c, y, b, E, I, R, k, j, F, N, _, L, B, $, W) {
|
|
980
980
|
for (var T = n, z = W, H = 0, X = !1; (z = z.get(v)) !== void 0 && !X; ) {
|
|
981
981
|
var ee = z.get(n);
|
|
982
982
|
if (H += 1, typeof ee < "u") {
|
|
@@ -986,17 +986,17 @@ function ut() {
|
|
|
986
986
|
}
|
|
987
987
|
typeof z.get(v) > "u" && (H = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof k == "function" ? T = k(c, T) : T instanceof Date ? T = N(T) :
|
|
989
|
+
if (typeof k == "function" ? T = k(c, T) : T instanceof Date ? T = N(T) : y === "comma" && s(T) && (T = r.maybeMap(T, function(re) {
|
|
990
990
|
return re instanceof Date ? N(re) : re;
|
|
991
991
|
})), T === null) {
|
|
992
|
-
if (
|
|
992
|
+
if (E)
|
|
993
993
|
return R && !B ? R(c, A.encoder, $, "key", _) : c;
|
|
994
994
|
T = "";
|
|
995
995
|
}
|
|
996
|
-
if (
|
|
996
|
+
if (P(T) || r.isBuffer(T)) {
|
|
997
997
|
if (R) {
|
|
998
998
|
var K = B ? c : R(c, A.encoder, $, "key", _);
|
|
999
|
-
if (
|
|
999
|
+
if (y === "comma" && B) {
|
|
1000
1000
|
for (var ie = f.call(String(T), ","), te = "", ae = 0; ae < ie.length; ++ae)
|
|
1001
1001
|
te += (ae === 0 ? "" : ",") + L(R(ie[ae], A.encoder, $, "value", _));
|
|
1002
1002
|
return [L(K) + (b && s(T) && ie.length === 1 ? "[]" : "") + "=" + te];
|
|
@@ -1009,7 +1009,7 @@ function ut() {
|
|
|
1009
1009
|
if (typeof T > "u")
|
|
1010
1010
|
return ce;
|
|
1011
1011
|
var ue;
|
|
1012
|
-
if (
|
|
1012
|
+
if (y === "comma" && s(T))
|
|
1013
1013
|
ue = [{ value: T.length > 0 ? T.join(",") || null : void 0 }];
|
|
1014
1014
|
else if (s(k))
|
|
1015
1015
|
ue = k;
|
|
@@ -1020,15 +1020,15 @@ function ut() {
|
|
|
1020
1020
|
for (var de = b && s(T) && T.length === 1 ? c + "[]" : c, pe = 0; pe < ue.length; ++pe) {
|
|
1021
1021
|
var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : T[se];
|
|
1022
1022
|
if (!(I && ye === null)) {
|
|
1023
|
-
var be = s(T) ? typeof
|
|
1023
|
+
var be = s(T) ? typeof y == "function" ? y(de, se) : de : de + (F ? "." + se : "[" + se + "]");
|
|
1024
1024
|
W.set(n, H);
|
|
1025
1025
|
var Z = e();
|
|
1026
1026
|
Z.set(v, W), d(ce, o(
|
|
1027
1027
|
ye,
|
|
1028
1028
|
be,
|
|
1029
|
-
|
|
1029
|
+
y,
|
|
1030
1030
|
b,
|
|
1031
|
-
|
|
1031
|
+
E,
|
|
1032
1032
|
I,
|
|
1033
1033
|
R,
|
|
1034
1034
|
k,
|
|
@@ -1052,14 +1052,14 @@ function ut() {
|
|
|
1052
1052
|
var c = n.charset || A.charset;
|
|
1053
1053
|
if (typeof n.charset < "u" && n.charset !== "utf-8" && n.charset !== "iso-8859-1")
|
|
1054
1054
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1055
|
-
var
|
|
1055
|
+
var y = a.default;
|
|
1056
1056
|
if (typeof n.format < "u") {
|
|
1057
1057
|
if (!t.call(a.formatters, n.format))
|
|
1058
1058
|
throw new TypeError("Unknown format option provided.");
|
|
1059
|
-
|
|
1059
|
+
y = n.format;
|
|
1060
1060
|
}
|
|
1061
|
-
var b = a.formatters[
|
|
1062
|
-
return (typeof n.filter == "function" || s(n.filter)) && (
|
|
1061
|
+
var b = a.formatters[y], E = A.filter;
|
|
1062
|
+
return (typeof n.filter == "function" || s(n.filter)) && (E = n.filter), {
|
|
1063
1063
|
addQueryPrefix: typeof n.addQueryPrefix == "boolean" ? n.addQueryPrefix : A.addQueryPrefix,
|
|
1064
1064
|
allowDots: typeof n.allowDots > "u" ? A.allowDots : !!n.allowDots,
|
|
1065
1065
|
charset: c,
|
|
@@ -1068,8 +1068,8 @@ function ut() {
|
|
|
1068
1068
|
encode: typeof n.encode == "boolean" ? n.encode : A.encode,
|
|
1069
1069
|
encoder: typeof n.encoder == "function" ? n.encoder : A.encoder,
|
|
1070
1070
|
encodeValuesOnly: typeof n.encodeValuesOnly == "boolean" ? n.encodeValuesOnly : A.encodeValuesOnly,
|
|
1071
|
-
filter:
|
|
1072
|
-
format:
|
|
1071
|
+
filter: E,
|
|
1072
|
+
format: y,
|
|
1073
1073
|
formatter: b,
|
|
1074
1074
|
serializeDate: typeof n.serializeDate == "function" ? n.serializeDate : A.serializeDate,
|
|
1075
1075
|
skipNulls: typeof n.skipNulls == "boolean" ? n.skipNulls : A.skipNulls,
|
|
@@ -1078,8 +1078,8 @@ function ut() {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
1080
|
return ur = function(o, n) {
|
|
1081
|
-
var c = o,
|
|
1082
|
-
typeof
|
|
1081
|
+
var c = o, y = x(n), b, E;
|
|
1082
|
+
typeof y.filter == "function" ? (E = y.filter, c = E("", c)) : s(y.filter) && (E = y.filter, b = E);
|
|
1083
1083
|
var I = [];
|
|
1084
1084
|
if (typeof c != "object" || c === null)
|
|
1085
1085
|
return "";
|
|
@@ -1089,30 +1089,30 @@ function ut() {
|
|
|
1089
1089
|
if (n && "commaRoundTrip" in n && typeof n.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
1091
|
var j = k === "comma" && n && n.commaRoundTrip;
|
|
1092
|
-
b || (b = Object.keys(c)),
|
|
1092
|
+
b || (b = Object.keys(c)), y.sort && b.sort(y.sort);
|
|
1093
1093
|
for (var F = e(), N = 0; N < b.length; ++N) {
|
|
1094
1094
|
var _ = b[N];
|
|
1095
|
-
|
|
1095
|
+
y.skipNulls && c[_] === null || d(I, g(
|
|
1096
1096
|
c[_],
|
|
1097
1097
|
_,
|
|
1098
1098
|
k,
|
|
1099
1099
|
j,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1100
|
+
y.strictNullHandling,
|
|
1101
|
+
y.skipNulls,
|
|
1102
|
+
y.encode ? y.encoder : null,
|
|
1103
|
+
y.filter,
|
|
1104
|
+
y.sort,
|
|
1105
|
+
y.allowDots,
|
|
1106
|
+
y.serializeDate,
|
|
1107
|
+
y.format,
|
|
1108
|
+
y.formatter,
|
|
1109
|
+
y.encodeValuesOnly,
|
|
1110
|
+
y.charset,
|
|
1111
1111
|
F
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var L = I.join(
|
|
1115
|
-
return
|
|
1114
|
+
var L = I.join(y.delimiter), B = y.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return y.charsetSentinel && (y.charset === "iso-8859-1" ? B += "utf8=%26%2310003%3B&" : B += "utf8=%E2%9C%93&"), L.length > 0 ? B + L : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, Ur;
|
|
@@ -1136,55 +1136,55 @@ function ct() {
|
|
|
1136
1136
|
parseArrays: !0,
|
|
1137
1137
|
plainObjects: !1,
|
|
1138
1138
|
strictNullHandling: !1
|
|
1139
|
-
}, i = function(
|
|
1140
|
-
return
|
|
1139
|
+
}, i = function(P) {
|
|
1140
|
+
return P.replace(/&#(\d+);/g, function(v, g) {
|
|
1141
1141
|
return String.fromCharCode(parseInt(g, 10));
|
|
1142
1142
|
});
|
|
1143
|
-
}, s = function(
|
|
1144
|
-
return
|
|
1143
|
+
}, s = function(P, v) {
|
|
1144
|
+
return P && typeof P == "string" && v.comma && P.indexOf(",") > -1 ? P.split(",") : P;
|
|
1145
1145
|
}, f = "utf8=%26%2310003%3B", u = "utf8=%E2%9C%93", d = function(v, g) {
|
|
1146
|
-
var x = {}, o = g.ignoreQueryPrefix ? v.replace(/^\?/, "") : v, n = g.parameterLimit === 1 / 0 ? void 0 : g.parameterLimit, c = o.split(g.delimiter, n),
|
|
1146
|
+
var x = {}, o = g.ignoreQueryPrefix ? v.replace(/^\?/, "") : v, n = g.parameterLimit === 1 / 0 ? void 0 : g.parameterLimit, c = o.split(g.delimiter, n), y = -1, b, E = g.charset;
|
|
1147
1147
|
if (g.charsetSentinel)
|
|
1148
1148
|
for (b = 0; b < c.length; ++b)
|
|
1149
|
-
c[b].indexOf("utf8=") === 0 && (c[b] === u ?
|
|
1149
|
+
c[b].indexOf("utf8=") === 0 && (c[b] === u ? E = "utf-8" : c[b] === f && (E = "iso-8859-1"), y = b, b = c.length);
|
|
1150
1150
|
for (b = 0; b < c.length; ++b)
|
|
1151
|
-
if (b !==
|
|
1151
|
+
if (b !== y) {
|
|
1152
1152
|
var I = c[b], R = I.indexOf("]="), k = R === -1 ? I.indexOf("=") : R + 1, j, F;
|
|
1153
|
-
k === -1 ? (j = g.decoder(I, t.decoder,
|
|
1153
|
+
k === -1 ? (j = g.decoder(I, t.decoder, E, "key"), F = g.strictNullHandling ? null : "") : (j = g.decoder(I.slice(0, k), t.decoder, E, "key"), F = e.maybeMap(
|
|
1154
1154
|
s(I.slice(k + 1), g),
|
|
1155
1155
|
function(N) {
|
|
1156
|
-
return g.decoder(N, t.decoder,
|
|
1156
|
+
return g.decoder(N, t.decoder, E, "value");
|
|
1157
1157
|
}
|
|
1158
|
-
)), F && g.interpretNumericEntities &&
|
|
1158
|
+
)), F && g.interpretNumericEntities && E === "iso-8859-1" && (F = i(F)), I.indexOf("[]=") > -1 && (F = a(F) ? [F] : F), r.call(x, j) ? x[j] = e.combine(x[j], F) : x[j] = F;
|
|
1159
1159
|
}
|
|
1160
1160
|
return x;
|
|
1161
|
-
},
|
|
1162
|
-
for (var o = x ? v : s(v, g), n =
|
|
1163
|
-
var c,
|
|
1164
|
-
if (
|
|
1161
|
+
}, m = function(P, v, g, x) {
|
|
1162
|
+
for (var o = x ? v : s(v, g), n = P.length - 1; n >= 0; --n) {
|
|
1163
|
+
var c, y = P[n];
|
|
1164
|
+
if (y === "[]" && g.parseArrays)
|
|
1165
1165
|
c = [].concat(o);
|
|
1166
1166
|
else {
|
|
1167
1167
|
c = g.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1168
|
-
var b =
|
|
1169
|
-
!g.parseArrays && b === "" ? c = { 0: o } : !isNaN(
|
|
1168
|
+
var b = y.charAt(0) === "[" && y.charAt(y.length - 1) === "]" ? y.slice(1, -1) : y, E = parseInt(b, 10);
|
|
1169
|
+
!g.parseArrays && b === "" ? c = { 0: o } : !isNaN(E) && y !== b && String(E) === b && E >= 0 && g.parseArrays && E <= g.arrayLimit ? (c = [], c[E] = o) : b !== "__proto__" && (c[b] = o);
|
|
1170
1170
|
}
|
|
1171
1171
|
o = c;
|
|
1172
1172
|
}
|
|
1173
1173
|
return o;
|
|
1174
1174
|
}, S = function(v, g, x, o) {
|
|
1175
1175
|
if (v) {
|
|
1176
|
-
var n = x.allowDots ? v.replace(/\.([^.[]+)/g, "[$1]") : v, c = /(\[[^[\]]*])/,
|
|
1177
|
-
if (
|
|
1178
|
-
if (!x.plainObjects && r.call(Object.prototype,
|
|
1176
|
+
var n = x.allowDots ? v.replace(/\.([^.[]+)/g, "[$1]") : v, c = /(\[[^[\]]*])/, y = /(\[[^[\]]*])/g, b = x.depth > 0 && c.exec(n), E = b ? n.slice(0, b.index) : n, I = [];
|
|
1177
|
+
if (E) {
|
|
1178
|
+
if (!x.plainObjects && r.call(Object.prototype, E) && !x.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
|
-
I.push(
|
|
1180
|
+
I.push(E);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var R = 0; x.depth > 0 && (b =
|
|
1182
|
+
for (var R = 0; x.depth > 0 && (b = y.exec(n)) !== null && R < x.depth; ) {
|
|
1183
1183
|
if (R += 1, !x.plainObjects && r.call(Object.prototype, b[1].slice(1, -1)) && !x.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
1185
|
I.push(b[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return b && I.push("[" + n.slice(b.index) + "]"),
|
|
1187
|
+
return b && I.push("[" + n.slice(b.index) + "]"), m(I, g, x, o);
|
|
1188
1188
|
}
|
|
1189
1189
|
}, A = function(v) {
|
|
1190
1190
|
if (!v)
|
|
@@ -1214,12 +1214,12 @@ function ct() {
|
|
|
1214
1214
|
strictNullHandling: typeof v.strictNullHandling == "boolean" ? v.strictNullHandling : t.strictNullHandling
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
|
-
return cr = function(
|
|
1217
|
+
return cr = function(P, v) {
|
|
1218
1218
|
var g = A(v);
|
|
1219
|
-
if (
|
|
1219
|
+
if (P === "" || P === null || typeof P > "u")
|
|
1220
1220
|
return g.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
-
for (var x = typeof
|
|
1222
|
-
var
|
|
1221
|
+
for (var x = typeof P == "string" ? d(P, g) : P, o = g.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, n = Object.keys(x), c = 0; c < n.length; ++c) {
|
|
1222
|
+
var y = n[c], b = S(y, x[y], g, typeof P == "string");
|
|
1223
1223
|
o = e.merge(o, b, g);
|
|
1224
1224
|
}
|
|
1225
1225
|
return g.allowSparse === !0 ? o : e.compact(o);
|
|
@@ -1237,13 +1237,13 @@ function lt() {
|
|
|
1237
1237
|
}, lr;
|
|
1238
1238
|
}
|
|
1239
1239
|
var ft = lt();
|
|
1240
|
-
const dt = /* @__PURE__ */ mr(ft), vr = "0.1.
|
|
1240
|
+
const dt = /* @__PURE__ */ mr(ft), vr = "0.1.210", pt = Ee.CancelToken;
|
|
1241
1241
|
var mt = function(e) {
|
|
1242
1242
|
var r;
|
|
1243
1243
|
typeof window < "u" && (r = e.cache.get("api"));
|
|
1244
1244
|
const a = Ee.defaults.adapter;
|
|
1245
1245
|
function t(d) {
|
|
1246
|
-
var
|
|
1246
|
+
var m = [
|
|
1247
1247
|
d.method,
|
|
1248
1248
|
d.url,
|
|
1249
1249
|
d.headers?.Authorization,
|
|
@@ -1253,12 +1253,12 @@ var mt = function(e) {
|
|
|
1253
1253
|
data: d.data
|
|
1254
1254
|
})
|
|
1255
1255
|
].filter(Boolean).join("-");
|
|
1256
|
-
return
|
|
1256
|
+
return m;
|
|
1257
1257
|
}
|
|
1258
1258
|
const i = {}, f = u(function(d) {
|
|
1259
|
-
var
|
|
1260
|
-
return i[
|
|
1261
|
-
var
|
|
1259
|
+
var m = t(d);
|
|
1260
|
+
return i[m] || (i[m] = new Promise(function(S, A) {
|
|
1261
|
+
var P, v;
|
|
1262
1262
|
switch (String(d.method).toLowerCase()) {
|
|
1263
1263
|
case "post":
|
|
1264
1264
|
case "patch":
|
|
@@ -1267,34 +1267,34 @@ var mt = function(e) {
|
|
|
1267
1267
|
d.cache || (d.cache = !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
|
-
return d.cache === !1 || (
|
|
1270
|
+
return d.cache === !1 || (P = d.cache || r, P && (v = P.get(m))), v ? S(v) : (Object.assign(d, { adapter: a }), Ee.request(d).then(
|
|
1271
1271
|
function(g) {
|
|
1272
|
-
delete i[
|
|
1272
|
+
delete i[m], S(g);
|
|
1273
1273
|
},
|
|
1274
1274
|
function(g) {
|
|
1275
|
-
delete i[
|
|
1275
|
+
delete i[m], A(g);
|
|
1276
1276
|
}
|
|
1277
1277
|
));
|
|
1278
|
-
})), i[
|
|
1278
|
+
})), i[m];
|
|
1279
1279
|
});
|
|
1280
|
-
f.generateEndpointURL = function(d,
|
|
1281
|
-
S = S || {},
|
|
1280
|
+
f.generateEndpointURL = function(d, m, S) {
|
|
1281
|
+
S = S || {}, m = m || {};
|
|
1282
1282
|
var A;
|
|
1283
|
-
const
|
|
1284
|
-
S.withoutToken || (delete
|
|
1285
|
-
var v = e.utils.mapParameters(
|
|
1283
|
+
const P = S.file && e.fileAPI || e.apiURL;
|
|
1284
|
+
S.withoutToken || (delete m.access_token, A = e.auth.getCurrentToken()), d[0] == "/" && d.slice(1);
|
|
1285
|
+
var v = e.utils.mapParameters(m);
|
|
1286
1286
|
A ? v = v ? `?access_token=${A}&${v}` : `?access_token=${A}` : v = v ? `?${v}` : "";
|
|
1287
|
-
var g = `${
|
|
1287
|
+
var g = `${P}${d}${v}`;
|
|
1288
1288
|
return g;
|
|
1289
1289
|
}, f.wasCancelled = function(d) {
|
|
1290
1290
|
return Ee.isCancel(d);
|
|
1291
1291
|
};
|
|
1292
1292
|
function u(d) {
|
|
1293
|
-
var
|
|
1293
|
+
var m = Ee.create({
|
|
1294
1294
|
paramsSerializer: (A) => dt.stringify(A, { arrayFormat: "repeat" }),
|
|
1295
1295
|
adapter: d
|
|
1296
1296
|
});
|
|
1297
|
-
|
|
1297
|
+
m.defaults.baseURL = e.apiURL, m.defaults.headers.common.Accept = "application/json", m.interceptors.request.use(function(A) {
|
|
1298
1298
|
if (t(A), A.withoutToken)
|
|
1299
1299
|
return A;
|
|
1300
1300
|
if (A.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
|
|
@@ -1302,19 +1302,19 @@ var mt = function(e) {
|
|
|
1302
1302
|
v && (A.headers["qik-request-timezone"] = v);
|
|
1303
1303
|
}
|
|
1304
1304
|
A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
|
|
1305
|
-
var
|
|
1306
|
-
return
|
|
1305
|
+
var P = e.auth.getCurrentToken();
|
|
1306
|
+
return P && (A.headers.Authorization = `Bearer ${P}`, A.params && A.params.access_token && delete A.params.access_token), A;
|
|
1307
1307
|
});
|
|
1308
1308
|
let S = 0;
|
|
1309
|
-
return
|
|
1309
|
+
return m.interceptors.response.use(
|
|
1310
1310
|
function(A) {
|
|
1311
|
-
var
|
|
1311
|
+
var P = A.config, v = A.status;
|
|
1312
1312
|
switch (v) {
|
|
1313
1313
|
case 204:
|
|
1314
1314
|
if (S < 5)
|
|
1315
1315
|
return S++, new Promise(function(g, x) {
|
|
1316
1316
|
setTimeout(function() {
|
|
1317
|
-
return
|
|
1317
|
+
return m.request(P).then(g, x);
|
|
1318
1318
|
}, 800);
|
|
1319
1319
|
});
|
|
1320
1320
|
console.log("Failed after 5 retries"), S = 0;
|
|
@@ -1325,8 +1325,8 @@ var mt = function(e) {
|
|
|
1325
1325
|
function(A) {
|
|
1326
1326
|
if (Ee.isCancel(A))
|
|
1327
1327
|
return Promise.reject(A);
|
|
1328
|
-
var
|
|
1329
|
-
switch (
|
|
1328
|
+
var P = A?.response?.status || A.status;
|
|
1329
|
+
switch (P) {
|
|
1330
1330
|
case 401:
|
|
1331
1331
|
break;
|
|
1332
1332
|
case 502:
|
|
@@ -1334,7 +1334,7 @@ var mt = function(e) {
|
|
|
1334
1334
|
if (S < 5)
|
|
1335
1335
|
return S++, new Promise(function(v, g) {
|
|
1336
1336
|
setTimeout(function() {
|
|
1337
|
-
return
|
|
1337
|
+
return m.request(A.config).then(v, g);
|
|
1338
1338
|
}, 800);
|
|
1339
1339
|
});
|
|
1340
1340
|
console.log("Failed after 5 retries"), S = 0;
|
|
@@ -1342,14 +1342,14 @@ var mt = function(e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return Promise.reject(A);
|
|
1344
1344
|
}
|
|
1345
|
-
),
|
|
1345
|
+
), m;
|
|
1346
1346
|
}
|
|
1347
1347
|
return f.CancelToken = pt, f.axios = Ee, f;
|
|
1348
1348
|
}, fr, Gr;
|
|
1349
1349
|
function yt() {
|
|
1350
1350
|
if (Gr) return fr;
|
|
1351
1351
|
Gr = 1;
|
|
1352
|
-
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", i = "[object Symbol]", s = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, f = /^\w*$/, u = /^\./, d = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
|
|
1352
|
+
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", i = "[object Symbol]", s = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, f = /^\w*$/, u = /^\./, d = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /[\\^$.*+?()[\]{}|]/g, S = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, P = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, v = typeof self == "object" && self && self.Object === Object && self, g = P || v || Function("return this")();
|
|
1353
1353
|
function x(l, w) {
|
|
1354
1354
|
return l?.[w];
|
|
1355
1355
|
}
|
|
@@ -1362,11 +1362,11 @@ function yt() {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
return w;
|
|
1364
1364
|
}
|
|
1365
|
-
var n = Array.prototype, c = Function.prototype,
|
|
1365
|
+
var n = Array.prototype, c = Function.prototype, y = Object.prototype, b = g["__core-js_shared__"], E = (function() {
|
|
1366
1366
|
var l = /[^.]+$/.exec(b && b.keys && b.keys.IE_PROTO || "");
|
|
1367
1367
|
return l ? "Symbol(src)_1." + l : "";
|
|
1368
|
-
})(), I = c.toString, R =
|
|
1369
|
-
"^" + I.call(R).replace(
|
|
1368
|
+
})(), I = c.toString, R = y.hasOwnProperty, k = y.toString, j = RegExp(
|
|
1369
|
+
"^" + I.call(R).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1370
1370
|
), F = g.Symbol, N = n.splice, _ = xe(g, "Map"), L = xe(Object, "create"), B = F ? F.prototype : void 0, $ = B ? B.toString : void 0;
|
|
1371
1371
|
function W(l) {
|
|
1372
1372
|
var w = -1, C = l ? l.length : 0;
|
|
@@ -1475,7 +1475,7 @@ function yt() {
|
|
|
1475
1475
|
function Pe(l) {
|
|
1476
1476
|
if (typeof l == "string")
|
|
1477
1477
|
return l;
|
|
1478
|
-
if (
|
|
1478
|
+
if (p(l))
|
|
1479
1479
|
return $ ? $.call(l) : "";
|
|
1480
1480
|
var w = l + "";
|
|
1481
1481
|
return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
|
|
@@ -1495,14 +1495,14 @@ function yt() {
|
|
|
1495
1495
|
if (Oe(l))
|
|
1496
1496
|
return !1;
|
|
1497
1497
|
var C = typeof l;
|
|
1498
|
-
return C == "number" || C == "symbol" || C == "boolean" || l == null ||
|
|
1498
|
+
return C == "number" || C == "symbol" || C == "boolean" || l == null || p(l) ? !0 : f.test(l) || !s.test(l) || w != null && l in Object(w);
|
|
1499
1499
|
}
|
|
1500
1500
|
function Re(l) {
|
|
1501
1501
|
var w = typeof l;
|
|
1502
1502
|
return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? l !== "__proto__" : l === null;
|
|
1503
1503
|
}
|
|
1504
1504
|
function _e(l) {
|
|
1505
|
-
return !!
|
|
1505
|
+
return !!E && E in l;
|
|
1506
1506
|
}
|
|
1507
1507
|
var Ce = fe(function(l) {
|
|
1508
1508
|
l = h(l);
|
|
@@ -1512,7 +1512,7 @@ function yt() {
|
|
|
1512
1512
|
}), w;
|
|
1513
1513
|
});
|
|
1514
1514
|
function Ne(l) {
|
|
1515
|
-
if (typeof l == "string" ||
|
|
1515
|
+
if (typeof l == "string" || p(l))
|
|
1516
1516
|
return l;
|
|
1517
1517
|
var w = l + "";
|
|
1518
1518
|
return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
|
|
@@ -1558,7 +1558,7 @@ function yt() {
|
|
|
1558
1558
|
function ge(l) {
|
|
1559
1559
|
return !!l && typeof l == "object";
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function p(l) {
|
|
1562
1562
|
return typeof l == "symbol" || ge(l) && k.call(l) == i;
|
|
1563
1563
|
}
|
|
1564
1564
|
function h(l) {
|
|
@@ -1576,12 +1576,12 @@ var dr, Dr;
|
|
|
1576
1576
|
function gt() {
|
|
1577
1577
|
if (Dr) return dr;
|
|
1578
1578
|
Dr = 1;
|
|
1579
|
-
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", i = "\\u0300-\\u036f\\ufe20-\\ufe23", s = "\\u20d0-\\u20f0", f = "\\u2700-\\u27bf", u = "a-z\\xdf-\\xf6\\xf8-\\xff", d = "\\xac\\xb1\\xd7\\xf7",
|
|
1580
|
-
_ + "?" +
|
|
1579
|
+
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", i = "\\u0300-\\u036f\\ufe20-\\ufe23", s = "\\u20d0-\\u20f0", f = "\\u2700-\\u27bf", u = "a-z\\xdf-\\xf6\\xf8-\\xff", d = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", S = "\\u2000-\\u206f", A = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", P = "A-Z\\xc0-\\xd6\\xd8-\\xde", v = "\\ufe0e\\ufe0f", g = d + m + S + A, x = "['’]", o = "[" + t + "]", n = "[" + g + "]", c = "[" + i + s + "]", y = "\\d+", b = "[" + f + "]", E = "[" + u + "]", I = "[^" + t + g + y + f + u + P + "]", R = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + c + "|" + R + ")", j = "[^" + t + "]", F = "(?:\\ud83c[\\udde6-\\uddff]){2}", N = "[\\ud800-\\udbff][\\udc00-\\udfff]", _ = "[" + P + "]", L = "\\u200d", B = "(?:" + E + "|" + I + ")", $ = "(?:" + _ + "|" + I + ")", W = "(?:" + x + "(?:d|ll|m|re|s|t|ve))?", T = "(?:" + x + "(?:D|LL|M|RE|S|T|VE))?", z = k + "?", H = "[" + v + "]?", X = "(?:" + L + "(?:" + [j, F, N].join("|") + ")" + H + z + ")*", ee = H + z + X, K = "(?:" + [b, F, N].join("|") + ")" + ee, ie = "(?:" + [j + c + "?", c, F, N, o].join("|") + ")", te = RegExp(x, "g"), ae = RegExp(c, "g"), ce = RegExp(R + "(?=" + R + ")|" + ie + ee, "g"), ue = RegExp([
|
|
1580
|
+
_ + "?" + E + "+" + W + "(?=" + [n, _, "$"].join("|") + ")",
|
|
1581
1581
|
$ + "+" + T + "(?=" + [n, _ + B, "$"].join("|") + ")",
|
|
1582
1582
|
_ + "?" + B + "+" + W,
|
|
1583
1583
|
_ + "+" + T,
|
|
1584
|
-
|
|
1584
|
+
y,
|
|
1585
1585
|
K
|
|
1586
1586
|
].join("|"), "g"), oe = RegExp("[" + L + t + i + s + v + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
|
|
1587
1587
|
// Latin-1 Supplement block.
|
|
@@ -1836,7 +1836,7 @@ function gt() {
|
|
|
1836
1836
|
return q[O]() + Y;
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function p(O) {
|
|
1840
1840
|
return function(U) {
|
|
1841
1841
|
return Z(J(G(U).replace(te, "")), O, "");
|
|
1842
1842
|
};
|
|
@@ -1850,7 +1850,7 @@ function gt() {
|
|
|
1850
1850
|
function l(O) {
|
|
1851
1851
|
return O == null ? "" : Le(O);
|
|
1852
1852
|
}
|
|
1853
|
-
var w =
|
|
1853
|
+
var w = p(function(O, U, V) {
|
|
1854
1854
|
return U = U.toLowerCase(), O + (V ? C(U) : U);
|
|
1855
1855
|
});
|
|
1856
1856
|
function C(O) {
|
|
@@ -2142,8 +2142,8 @@ M.getAllFields = function(e) {
|
|
|
2142
2142
|
key: "data",
|
|
2143
2143
|
asObject: !0,
|
|
2144
2144
|
type: "group",
|
|
2145
|
-
fields: i.map(function(
|
|
2146
|
-
return
|
|
2145
|
+
fields: i.map(function(m) {
|
|
2146
|
+
return m.type === "reference" && (m = JSON.parse(JSON.stringify(m)), delete m.fields), m;
|
|
2147
2147
|
})
|
|
2148
2148
|
};
|
|
2149
2149
|
t.push(f);
|
|
@@ -2173,12 +2173,12 @@ M.getAllFields = function(e) {
|
|
|
2173
2173
|
type: "date"
|
|
2174
2174
|
}));
|
|
2175
2175
|
var u = M.mapFields(t).filter(function(d) {
|
|
2176
|
-
var
|
|
2177
|
-
return !
|
|
2176
|
+
var m = d.type == "group" && d.asObject && d.minimum == 1 && d.maximum == 1;
|
|
2177
|
+
return !m;
|
|
2178
2178
|
}).map(function(d) {
|
|
2179
2179
|
return d.title = d.filterTitle || d.titles.filter(Boolean).join(" › "), d;
|
|
2180
|
-
}).sort(function(d,
|
|
2181
|
-
return d.title <
|
|
2180
|
+
}).sort(function(d, m) {
|
|
2181
|
+
return d.title < m.title ? -1 : 1;
|
|
2182
2182
|
});
|
|
2183
2183
|
return u;
|
|
2184
2184
|
};
|
|
@@ -2186,19 +2186,19 @@ M.mapFields = function(e, r) {
|
|
|
2186
2186
|
r || (r = {});
|
|
2187
2187
|
var a = [], t = [], i = [], s = 1, f = r.depth, u = r.arrayDelimeter || "[]";
|
|
2188
2188
|
e.forEach(d);
|
|
2189
|
-
function d(
|
|
2190
|
-
var A =
|
|
2191
|
-
o.trail = t.slice(), o.trail.push(A), o.path = o.trail.join("."), o.titles = i.slice(), o.titles.push(
|
|
2189
|
+
function d(m, S) {
|
|
2190
|
+
var A = m.key, P = m.type == "group", v = m.minimum === m.maximum && m.minimum === 1, g = m.asObject, x = P && !g, o = r.original ? m : M.clone(m);
|
|
2191
|
+
o.trail = t.slice(), o.trail.push(A), o.path = o.trail.join("."), o.titles = i.slice(), o.titles.push(m.filterTitle || m.title || ""), (!x || r.includeLayout) && a.push(o);
|
|
2192
2192
|
var c = f && s >= f;
|
|
2193
|
-
if (
|
|
2193
|
+
if (m.fields && m.fields.length)
|
|
2194
2194
|
if (x)
|
|
2195
|
-
|
|
2195
|
+
m.fields.forEach(d);
|
|
2196
2196
|
else {
|
|
2197
2197
|
if (c)
|
|
2198
2198
|
return;
|
|
2199
2199
|
s++;
|
|
2200
|
-
let
|
|
2201
|
-
r.includeArrayDelimeter && (v || (
|
|
2200
|
+
let y = A;
|
|
2201
|
+
r.includeArrayDelimeter && (v || (y = `${A}${u}`)), t.push(y), i.push(m.filterTitle || m.title), m.fields.forEach(d), s--, t.pop(), i.pop();
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
return a;
|
|
@@ -2336,12 +2336,12 @@ M.hash = function(e, r) {
|
|
|
2336
2336
|
};
|
|
2337
2337
|
M.extractFromArray = function(e, r, a, t, i, s, f) {
|
|
2338
2338
|
f = f || {}, a && (f.sum = a), t && (f.flatten = !0), i && (f.unique = !0), s && (f.excludeNull = !0);
|
|
2339
|
-
var u = e.reduce(function(d,
|
|
2340
|
-
var S = Ue(
|
|
2339
|
+
var u = e.reduce(function(d, m) {
|
|
2340
|
+
var S = Ue(m, r), A = !S && S !== !1 && S !== 0;
|
|
2341
2341
|
return f.excludeNull && A || d.push(S), d;
|
|
2342
2342
|
}, []);
|
|
2343
|
-
return f.flatten && (u = u.flat()), f.unique && (u = [...new Set(u)]), f.sum && (u = u.reduce(function(d,
|
|
2344
|
-
return d +
|
|
2343
|
+
return f.flatten && (u = u.flat()), f.unique && (u = [...new Set(u)]), f.sum && (u = u.reduce(function(d, m) {
|
|
2344
|
+
return d + m;
|
|
2345
2345
|
}, 0)), u;
|
|
2346
2346
|
};
|
|
2347
2347
|
M.matchInArray = function(e, r, a, t) {
|
|
@@ -2656,35 +2656,35 @@ var Et = function(e) {
|
|
|
2656
2656
|
var d = r.getUser();
|
|
2657
2657
|
t.onChange && t.onChange(d), i.dispatch("change", d, u);
|
|
2658
2658
|
}
|
|
2659
|
-
t.set = function(u, d,
|
|
2659
|
+
t.set = function(u, d, m) {
|
|
2660
2660
|
const S = r.getUser();
|
|
2661
|
-
if (JSON.stringify(S) != JSON.stringify(u) && (r.setUser(u), !
|
|
2661
|
+
if (JSON.stringify(S) != JSON.stringify(u) && (r.setUser(u), !m))
|
|
2662
2662
|
return s(d);
|
|
2663
2663
|
}, t.logout = function() {
|
|
2664
2664
|
return r.clearUser(), e.cache.reset(), s();
|
|
2665
2665
|
}, t.changeOrganisation = function(u, d) {
|
|
2666
2666
|
u = e.utils.id(u), d || (d = {});
|
|
2667
|
-
var
|
|
2668
|
-
return d.disableAutoAuthentication && (
|
|
2669
|
-
e.api.post(`/user/switch/${u}`).then(function(
|
|
2670
|
-
|
|
2667
|
+
var m = !0;
|
|
2668
|
+
return d.disableAutoAuthentication && (m = !1), new Promise(function(S, A) {
|
|
2669
|
+
e.api.post(`/user/switch/${u}`).then(function(P) {
|
|
2670
|
+
m && (e.cache.reset(), t.set(P.data)), S(P.data);
|
|
2671
2671
|
}).catch(A);
|
|
2672
2672
|
});
|
|
2673
2673
|
}, t.impersonate = function(u, d) {
|
|
2674
2674
|
u = e.utils.id(u), d || (d = {});
|
|
2675
|
-
var
|
|
2676
|
-
d.disableAutoAuthentication && (
|
|
2675
|
+
var m = !0;
|
|
2676
|
+
d.disableAutoAuthentication && (m = !1);
|
|
2677
2677
|
var S = e.api.post(`/user/impersonate/${u}`);
|
|
2678
2678
|
return S.then(function(A) {
|
|
2679
|
-
|
|
2679
|
+
m && (e.cache.reset(), t.set(A.data));
|
|
2680
2680
|
}, function(A) {
|
|
2681
2681
|
}), S;
|
|
2682
2682
|
}, t.login = async function(u, d) {
|
|
2683
2683
|
d || (d = {});
|
|
2684
|
-
var
|
|
2685
|
-
d.disableAutoAuthentication && (
|
|
2684
|
+
var m = !0;
|
|
2685
|
+
d.disableAutoAuthentication && (m = !1);
|
|
2686
2686
|
var S = new Promise(A);
|
|
2687
|
-
function A(
|
|
2687
|
+
function A(P, v) {
|
|
2688
2688
|
if (!u)
|
|
2689
2689
|
return v({
|
|
2690
2690
|
message: "Missing credentials!"
|
|
@@ -2703,16 +2703,16 @@ var Et = function(e) {
|
|
|
2703
2703
|
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, g.withCredentials = !0);
|
|
2704
2704
|
var o = `${e.apiURL}/user/login`;
|
|
2705
2705
|
d.url && (o = d.url), e.api.post(o, u, g).then(function(n) {
|
|
2706
|
-
|
|
2706
|
+
m && t.set(n.data), P(n);
|
|
2707
2707
|
}, v);
|
|
2708
2708
|
}
|
|
2709
2709
|
return S;
|
|
2710
2710
|
}, t.signup = async function(u, d) {
|
|
2711
2711
|
d || (d = {});
|
|
2712
|
-
var
|
|
2713
|
-
d.disableAutoAuthentication && (
|
|
2712
|
+
var m = !0;
|
|
2713
|
+
d.disableAutoAuthentication && (m = !1);
|
|
2714
2714
|
var S = new Promise(A);
|
|
2715
|
-
function A(
|
|
2715
|
+
function A(P, v) {
|
|
2716
2716
|
if (!u)
|
|
2717
2717
|
return v({
|
|
2718
2718
|
message: "No details provided"
|
|
@@ -2747,39 +2747,39 @@ var Et = function(e) {
|
|
|
2747
2747
|
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, g.withCredentials = !0);
|
|
2748
2748
|
var o = `${e.apiURL}/user/signup`;
|
|
2749
2749
|
d.application && (o = `${e.domain || ""}/qik/application/signup`), d.url && (o = d.url), e.api.post(o, u, g).then(function(n) {
|
|
2750
|
-
|
|
2750
|
+
m && t.set(n.data), P(n);
|
|
2751
2751
|
}, v);
|
|
2752
2752
|
}
|
|
2753
2753
|
return S;
|
|
2754
2754
|
}, t.retrieveUserFromResetToken = async function(u, d) {
|
|
2755
2755
|
d || (d = {});
|
|
2756
|
-
var
|
|
2756
|
+
var m = {
|
|
2757
2757
|
bypassInterceptor: !0
|
|
2758
2758
|
};
|
|
2759
2759
|
return new Promise(function(S, A) {
|
|
2760
|
-
e.api.get(d.url || `${e.apiURL}/user/reset/${u}`,
|
|
2761
|
-
return S(
|
|
2760
|
+
e.api.get(d.url || `${e.apiURL}/user/reset/${u}`, m).then(function(P) {
|
|
2761
|
+
return S(P.data);
|
|
2762
2762
|
}, A);
|
|
2763
2763
|
});
|
|
2764
|
-
}, t.updateUserWithToken = async function(u, d,
|
|
2765
|
-
|
|
2764
|
+
}, t.updateUserWithToken = async function(u, d, m) {
|
|
2765
|
+
m || (m = {});
|
|
2766
2766
|
var S = !0;
|
|
2767
|
-
return
|
|
2767
|
+
return m.disableAutoAuthentication && (S = !1), new Promise(function(A, P) {
|
|
2768
2768
|
var v = {
|
|
2769
2769
|
bypassInterceptor: !0
|
|
2770
2770
|
};
|
|
2771
|
-
e.api.post(
|
|
2771
|
+
e.api.post(m.url || `${e.apiURL}/user/reset/${u}`, d, v).then(function(g) {
|
|
2772
2772
|
return S && (e.cache.reset(), t.set(g.data)), A(g.data);
|
|
2773
|
-
},
|
|
2773
|
+
}, P);
|
|
2774
2774
|
});
|
|
2775
2775
|
}, t.sendResetPasswordRequest = function(u, d) {
|
|
2776
2776
|
return d || (d = {}), u ? !u.email || !u.email.length ? Promise.reject({
|
|
2777
2777
|
message: "Email is required but was not provided"
|
|
2778
|
-
}) : new Promise(function(
|
|
2778
|
+
}) : new Promise(function(m, S) {
|
|
2779
2779
|
var A = {
|
|
2780
2780
|
bypassInterceptor: !0
|
|
2781
2781
|
};
|
|
2782
|
-
e.api.post(d.url || `${e.apiURL}/user/forgot`, u, A).then(
|
|
2782
|
+
e.api.post(d.url || `${e.apiURL}/user/forgot`, u, A).then(m, S);
|
|
2783
2783
|
}) : Promise.reject({
|
|
2784
2784
|
message: "No details were provided for password reset request"
|
|
2785
2785
|
});
|
|
@@ -2794,34 +2794,34 @@ var Et = function(e) {
|
|
|
2794
2794
|
return Promise.reject("No token");
|
|
2795
2795
|
var A = /* @__PURE__ */ new Date();
|
|
2796
2796
|
A.setSeconds(A.getSeconds() + a);
|
|
2797
|
-
var
|
|
2798
|
-
return u ? await t.refreshAccessToken(S.refreshToken) : A <
|
|
2797
|
+
var P = new Date(S.expires);
|
|
2798
|
+
return u ? await t.refreshAccessToken(S.refreshToken) : A < P ? S : await t.refreshAccessToken(S.refreshToken);
|
|
2799
2799
|
};
|
|
2800
2800
|
const f = {};
|
|
2801
2801
|
return t.refreshAccessToken = async function(u) {
|
|
2802
2802
|
if (f.inflightRefreshRequest)
|
|
2803
2803
|
return f.inflightRefreshRequest;
|
|
2804
2804
|
const d = r.isCookieMode && r.isCookieMode();
|
|
2805
|
-
return f.inflightRefreshRequest = new Promise(function(
|
|
2806
|
-
let A = {},
|
|
2805
|
+
return f.inflightRefreshRequest = new Promise(function(m, S) {
|
|
2806
|
+
let A = {}, P = {
|
|
2807
2807
|
bypassInterceptor: !0,
|
|
2808
2808
|
withoutToken: !0
|
|
2809
2809
|
};
|
|
2810
2810
|
if (d)
|
|
2811
|
-
|
|
2811
|
+
P.withCredentials = !0;
|
|
2812
2812
|
else {
|
|
2813
2813
|
if (!u)
|
|
2814
2814
|
return f.inflightRefreshRequest = null, S(new Error("No refresh token provided for localStorage mode"));
|
|
2815
2815
|
A.refreshToken = u;
|
|
2816
2816
|
}
|
|
2817
|
-
e.api.post("/user/refresh", A,
|
|
2817
|
+
e.api.post("/user/refresh", A, P).then(function(g) {
|
|
2818
2818
|
if (!g || !g.data)
|
|
2819
2819
|
return f.inflightRefreshRequest = null, S(new Error("Invalid refresh response"));
|
|
2820
2820
|
if (t.set(g.data), s(), d)
|
|
2821
|
-
|
|
2821
|
+
m("cookie_token_refreshed");
|
|
2822
2822
|
else {
|
|
2823
2823
|
const x = g.data.token?.accessToken;
|
|
2824
|
-
x ?
|
|
2824
|
+
x ? m(x) : S(new Error("No access token in refresh response"));
|
|
2825
2825
|
}
|
|
2826
2826
|
setTimeout(function() {
|
|
2827
2827
|
f.inflightRefreshRequest = null;
|
|
@@ -2837,8 +2837,8 @@ var Et = function(e) {
|
|
|
2837
2837
|
if (u.data) {
|
|
2838
2838
|
const d = r.getUser();
|
|
2839
2839
|
if (d) {
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2840
|
+
const m = { ...d };
|
|
2841
|
+
m.session ? Object.assign(m.session, u.data) : m.session = u.data, t.set(m);
|
|
2842
2842
|
} else
|
|
2843
2843
|
t.set(u.data);
|
|
2844
2844
|
} else
|
|
@@ -2856,9 +2856,9 @@ var Et = function(e) {
|
|
|
2856
2856
|
var d = t.getCurrentUser();
|
|
2857
2857
|
if (!d)
|
|
2858
2858
|
return e.applicationToken ? e.applicationToken : void 0;
|
|
2859
|
-
var { token:
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2859
|
+
var { token: m } = d;
|
|
2860
|
+
if (m)
|
|
2861
|
+
return m.accessToken;
|
|
2862
2862
|
}, e.api.interceptors.request.use(
|
|
2863
2863
|
async function(u) {
|
|
2864
2864
|
if (u.bypassInterceptor)
|
|
@@ -2866,25 +2866,25 @@ var Et = function(e) {
|
|
|
2866
2866
|
var d = u;
|
|
2867
2867
|
if (r.isCookieMode && r.isCookieMode())
|
|
2868
2868
|
return d.withCredentials || (d.withCredentials = !0), d;
|
|
2869
|
-
var S = t.getCurrentUser(), A,
|
|
2869
|
+
var S = t.getCurrentUser(), A, P, v;
|
|
2870
2870
|
if (S) {
|
|
2871
2871
|
var { token: g } = S;
|
|
2872
|
-
g && (A = g.accessToken,
|
|
2872
|
+
g && (A = g.accessToken, P = g.refreshToken, v = g.expires);
|
|
2873
2873
|
}
|
|
2874
2874
|
if (A)
|
|
2875
2875
|
d.headers.Authorization = `Bearer ${A}`;
|
|
2876
2876
|
else
|
|
2877
2877
|
return d;
|
|
2878
|
-
if (!
|
|
2878
|
+
if (!P)
|
|
2879
2879
|
return d;
|
|
2880
2880
|
var x = /* @__PURE__ */ new Date();
|
|
2881
2881
|
x.setSeconds(x.getSeconds() + a);
|
|
2882
2882
|
var o = new Date(v);
|
|
2883
2883
|
return x < o ? d : new Promise(async function(n, c) {
|
|
2884
|
-
await t.refreshAccessToken(
|
|
2885
|
-
return d.headers.Authorization = `Bearer ${
|
|
2886
|
-
}).catch(function(
|
|
2887
|
-
return c(
|
|
2884
|
+
await t.refreshAccessToken(P).then(function(y) {
|
|
2885
|
+
return d.headers.Authorization = `Bearer ${y}`, n(d);
|
|
2886
|
+
}).catch(function(y) {
|
|
2887
|
+
return c(y);
|
|
2888
2888
|
});
|
|
2889
2889
|
});
|
|
2890
2890
|
},
|
|
@@ -3142,8 +3142,8 @@ var $e = {}, xt = {
|
|
|
3142
3142
|
function s(u) {
|
|
3143
3143
|
if (u) {
|
|
3144
3144
|
var d = e.utils.id(u);
|
|
3145
|
-
d && (t[d] = 1, u.children && u.children.length && u.children.forEach(function(
|
|
3146
|
-
s(
|
|
3145
|
+
d && (t[d] = 1, u.children && u.children.length && u.children.forEach(function(m) {
|
|
3146
|
+
s(m);
|
|
3147
3147
|
}));
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
@@ -3156,8 +3156,8 @@ var $e = {}, xt = {
|
|
|
3156
3156
|
if (a?.userType == "administrator")
|
|
3157
3157
|
u = r.allUserScopes(a, f);
|
|
3158
3158
|
else {
|
|
3159
|
-
var d = r.hashPermissions(a),
|
|
3160
|
-
if (!
|
|
3159
|
+
var d = r.hashPermissions(a), m = i || s;
|
|
3160
|
+
if (!m)
|
|
3161
3161
|
return u;
|
|
3162
3162
|
let S = i ? d[`${i}.${t}`] || [] : [], A = s ? d[`${s}.${t}`] || [] : [];
|
|
3163
3163
|
u = [...S, ...A];
|
|
@@ -3167,14 +3167,14 @@ var $e = {}, xt = {
|
|
|
3167
3167
|
var i = e.utils.id(a), s = e.utils.id(a?.persona), f = t.meta;
|
|
3168
3168
|
if (!f)
|
|
3169
3169
|
return !1;
|
|
3170
|
-
var u = f.userOwners || [], d = e.utils.ids([...u, f.userAuthor]),
|
|
3171
|
-
if (
|
|
3170
|
+
var u = f.userOwners || [], d = e.utils.ids([...u, f.userAuthor]), m = e.utils.hash(d);
|
|
3171
|
+
if (m[i])
|
|
3172
3172
|
return !0;
|
|
3173
3173
|
var S = f.personaOwners || [], A = e.utils.ids([
|
|
3174
3174
|
...S,
|
|
3175
3175
|
f.personaAuthor
|
|
3176
|
-
]),
|
|
3177
|
-
return
|
|
3176
|
+
]), P = e.utils.hash(A);
|
|
3177
|
+
return P[s] ? !0 : r.isAssignee(a, t);
|
|
3178
3178
|
}, r.isAssignee = function(a, t) {
|
|
3179
3179
|
const i = e.utils.ids(a?.profiles);
|
|
3180
3180
|
if (!i.length)
|
|
@@ -3183,7 +3183,7 @@ var $e = {}, xt = {
|
|
|
3183
3183
|
if (!s.length)
|
|
3184
3184
|
return !1;
|
|
3185
3185
|
const f = new Set(s);
|
|
3186
|
-
return !!i.filter((
|
|
3186
|
+
return !!i.filter((m) => f.has(m)).length;
|
|
3187
3187
|
}, r.allPermissions = function(a) {
|
|
3188
3188
|
var t = Object.values(a?.permissions || {}).map(function(i) {
|
|
3189
3189
|
return i.permissions;
|
|
@@ -3204,18 +3204,18 @@ var $e = {}, xt = {
|
|
|
3204
3204
|
var u = t.meta?.type, d = t.meta?.definition || u;
|
|
3205
3205
|
if (!d)
|
|
3206
3206
|
return !1;
|
|
3207
|
-
var
|
|
3207
|
+
var m = e.utils.ids(t.meta.scopes || []), S, A = `access-${a?.cacheKey}-${i}-${d}-${u}`;
|
|
3208
3208
|
if (f.cache[A])
|
|
3209
3209
|
S = f.cache[A];
|
|
3210
3210
|
else {
|
|
3211
|
-
var
|
|
3211
|
+
var P = e.utils.ids(
|
|
3212
3212
|
r.actionableScopes(a, i, d, u, f)
|
|
3213
3213
|
);
|
|
3214
|
-
S = e.utils.hash(
|
|
3214
|
+
S = e.utils.hash(P), f.cache[A] = S;
|
|
3215
3215
|
}
|
|
3216
3216
|
if (S) {
|
|
3217
|
-
var v =
|
|
3218
|
-
return S[
|
|
3217
|
+
var v = m.some(function(y) {
|
|
3218
|
+
return S[y];
|
|
3219
3219
|
});
|
|
3220
3220
|
if (v)
|
|
3221
3221
|
return !0;
|
|
@@ -3232,8 +3232,8 @@ var $e = {}, xt = {
|
|
|
3232
3232
|
x = e.utils.hash(n), f.cache[o] = x;
|
|
3233
3233
|
}
|
|
3234
3234
|
if (x) {
|
|
3235
|
-
var c =
|
|
3236
|
-
return x[
|
|
3235
|
+
var c = m.some(function(y) {
|
|
3236
|
+
return x[y];
|
|
3237
3237
|
});
|
|
3238
3238
|
if (c)
|
|
3239
3239
|
return !0;
|
|
@@ -3336,48 +3336,49 @@ function Ot(e) {
|
|
|
3336
3336
|
};
|
|
3337
3337
|
t = e.api.post("/variables", { keys: o }), t.then(b, b);
|
|
3338
3338
|
}
|
|
3339
|
-
const { data:
|
|
3340
|
-
a.data =
|
|
3339
|
+
const { data: y } = await t;
|
|
3340
|
+
a.data = y, e.dispatch("variables", y);
|
|
3341
3341
|
}
|
|
3342
3342
|
return a.data;
|
|
3343
3343
|
};
|
|
3344
3344
|
const i = e.cache.get("user:glossary");
|
|
3345
3345
|
let s, f = null, u = null;
|
|
3346
3346
|
async function d() {
|
|
3347
|
-
return u || (u = import("./inflate-glossary.worker-
|
|
3347
|
+
return u || (u = import("./inflate-glossary.worker-CGZQmJtn.js"), u);
|
|
3348
3348
|
}
|
|
3349
|
-
async function
|
|
3349
|
+
async function m() {
|
|
3350
3350
|
if (f) return f;
|
|
3351
3351
|
const o = await d();
|
|
3352
3352
|
return f = new o.default(), f;
|
|
3353
3353
|
}
|
|
3354
3354
|
function S({ _s: o, _k: n, types: c }) {
|
|
3355
|
-
function
|
|
3355
|
+
function y(b) {
|
|
3356
3356
|
if (typeof b == "string" && b[0] === "~")
|
|
3357
3357
|
return o[parseInt(b.slice(1))];
|
|
3358
|
-
if (Array.isArray(b)) return b.map(
|
|
3358
|
+
if (Array.isArray(b)) return b.map(y);
|
|
3359
3359
|
if (b && typeof b == "object") {
|
|
3360
|
-
const
|
|
3360
|
+
const E = {};
|
|
3361
3361
|
for (const [I, R] of Object.entries(b))
|
|
3362
|
-
|
|
3363
|
-
return
|
|
3362
|
+
E[n[I] || I] = y(R);
|
|
3363
|
+
return E;
|
|
3364
3364
|
}
|
|
3365
3365
|
return b;
|
|
3366
3366
|
}
|
|
3367
|
-
return c.map(
|
|
3367
|
+
return c.map(y);
|
|
3368
3368
|
}
|
|
3369
3369
|
async function A(o) {
|
|
3370
3370
|
if (typeof Worker > "u")
|
|
3371
3371
|
return S(o);
|
|
3372
3372
|
try {
|
|
3373
|
-
const n = await
|
|
3373
|
+
const n = await m();
|
|
3374
3374
|
return new Promise((c) => {
|
|
3375
|
-
const
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3375
|
+
const y = [], b = (I) => {
|
|
3376
|
+
const { chunk: R, done: k } = I.data;
|
|
3377
|
+
y.push(...R), k && (n.removeEventListener("message", b), n.removeEventListener("error", E), c(y));
|
|
3378
|
+
}, E = () => {
|
|
3379
|
+
n.removeEventListener("message", b), n.removeEventListener("error", E), c(S(o));
|
|
3379
3380
|
};
|
|
3380
|
-
n.addEventListener("message",
|
|
3381
|
+
n.addEventListener("message", b), n.addEventListener("error", E), n.postMessage(o);
|
|
3381
3382
|
});
|
|
3382
3383
|
} catch {
|
|
3383
3384
|
return S(o);
|
|
@@ -3385,7 +3386,7 @@ function Ot(e) {
|
|
|
3385
3386
|
}
|
|
3386
3387
|
r.glossary = async function(o) {
|
|
3387
3388
|
o = o || {};
|
|
3388
|
-
let n = i.get("glossary"),
|
|
3389
|
+
let n = i.get("glossary"), y = !!!o.uncompressed;
|
|
3389
3390
|
var b = o.refresh || o.reload || !n;
|
|
3390
3391
|
if (b) {
|
|
3391
3392
|
if (!s) {
|
|
@@ -3393,27 +3394,27 @@ function Ot(e) {
|
|
|
3393
3394
|
s = null, r.loadingGlossary = !1;
|
|
3394
3395
|
};
|
|
3395
3396
|
r.loadingGlossary = !0;
|
|
3396
|
-
const k =
|
|
3397
|
+
const k = y ? "/glossary/compressed" : "/glossary";
|
|
3397
3398
|
s = e.api.get(k, { cache: !1 }), s.then(j, j);
|
|
3398
3399
|
}
|
|
3399
3400
|
const { data: I } = await s, R = I._s && I._k && I.types ? await A(I) : I;
|
|
3400
3401
|
i.set("glossary", R), n = R, e.dispatch("glossary", R);
|
|
3401
3402
|
}
|
|
3402
3403
|
if (o.hash) {
|
|
3403
|
-
var
|
|
3404
|
-
return
|
|
3404
|
+
var E = e.utils.hash(n, "key");
|
|
3405
|
+
return E;
|
|
3405
3406
|
}
|
|
3406
3407
|
if (o.hex) {
|
|
3407
|
-
var
|
|
3408
|
-
return
|
|
3408
|
+
var E = e.utils.hash(n, "hex");
|
|
3409
|
+
return E;
|
|
3409
3410
|
}
|
|
3410
3411
|
return n;
|
|
3411
3412
|
};
|
|
3412
|
-
const
|
|
3413
|
+
const P = {};
|
|
3413
3414
|
let v;
|
|
3414
3415
|
r.scopeGlossary = async function(o) {
|
|
3415
3416
|
o = o || {};
|
|
3416
|
-
var n = o.refresh || o.reload || !
|
|
3417
|
+
var n = o.refresh || o.reload || !P.data;
|
|
3417
3418
|
if (n) {
|
|
3418
3419
|
if (!v) {
|
|
3419
3420
|
let b = function() {
|
|
@@ -3423,14 +3424,14 @@ function Ot(e) {
|
|
|
3423
3424
|
cache: !1
|
|
3424
3425
|
}), v.then(b, b);
|
|
3425
3426
|
}
|
|
3426
|
-
const { data:
|
|
3427
|
-
|
|
3427
|
+
const { data: y } = await v;
|
|
3428
|
+
P.data = y;
|
|
3428
3429
|
}
|
|
3429
3430
|
if (o.hash) {
|
|
3430
|
-
var c = e.utils.hash(
|
|
3431
|
+
var c = e.utils.hash(P.data, "_id");
|
|
3431
3432
|
return c;
|
|
3432
3433
|
}
|
|
3433
|
-
return
|
|
3434
|
+
return P.data;
|
|
3434
3435
|
};
|
|
3435
3436
|
const g = {};
|
|
3436
3437
|
r.comparators = async function(o) {
|
|
@@ -3438,9 +3439,9 @@ function Ot(e) {
|
|
|
3438
3439
|
var n = o.reload || o.refresh || !g.data;
|
|
3439
3440
|
if (n) {
|
|
3440
3441
|
const { data: c } = await e.api.get("/system/comparators");
|
|
3441
|
-
c.available = {}, Object.entries(c.types).forEach(([
|
|
3442
|
-
c.available[
|
|
3443
|
-
return c.hash[
|
|
3442
|
+
c.available = {}, Object.entries(c.types).forEach(([y, b]) => {
|
|
3443
|
+
c.available[y] = b.map(function(E) {
|
|
3444
|
+
return c.hash[E];
|
|
3444
3445
|
});
|
|
3445
3446
|
}), g.data = c;
|
|
3446
3447
|
}
|
|
@@ -3452,13 +3453,13 @@ function Ot(e) {
|
|
|
3452
3453
|
}
|
|
3453
3454
|
return r.meetsValidationRequirements = function(o, n, c) {
|
|
3454
3455
|
if (c.minLength) {
|
|
3455
|
-
var
|
|
3456
|
-
if (
|
|
3456
|
+
var y = String(o).length;
|
|
3457
|
+
if (y < c.minLength)
|
|
3457
3458
|
return `Must be at least ${c.minLength} characters`;
|
|
3458
3459
|
}
|
|
3459
3460
|
if (c.maxLength) {
|
|
3460
|
-
var
|
|
3461
|
-
if (
|
|
3461
|
+
var y = String(o).length;
|
|
3462
|
+
if (y > c.maxLength)
|
|
3462
3463
|
return `Can be no more than ${c.maxLength} characters`;
|
|
3463
3464
|
}
|
|
3464
3465
|
if (c.minValue && o !== void 0) {
|
|
@@ -3473,7 +3474,7 @@ function Ot(e) {
|
|
|
3473
3474
|
}
|
|
3474
3475
|
}, r.validateField = function(o, n, c) {
|
|
3475
3476
|
c = c || {};
|
|
3476
|
-
var
|
|
3477
|
+
var y = n.type || "string", { minimum: b, maximum: E } = x(n), I = n.type == "group" && n.asObject, R = I ? b === E && E === 1 : E === 1, k = !R, j = e.utils.exists(o);
|
|
3477
3478
|
if (b) {
|
|
3478
3479
|
if (!j)
|
|
3479
3480
|
return {
|
|
@@ -3500,16 +3501,16 @@ function Ot(e) {
|
|
|
3500
3501
|
if (F = F.filter(function(T) {
|
|
3501
3502
|
var z = T == null || T === "";
|
|
3502
3503
|
return !z;
|
|
3503
|
-
}), b ==
|
|
3504
|
+
}), b == E && b && F.length != b)
|
|
3504
3505
|
return {
|
|
3505
3506
|
valid: !1,
|
|
3506
|
-
message: `${n.title} requires exactly ${
|
|
3507
|
+
message: `${n.title} requires exactly ${E} values`,
|
|
3507
3508
|
status: 400
|
|
3508
3509
|
};
|
|
3509
|
-
if (
|
|
3510
|
+
if (E && F.length > E)
|
|
3510
3511
|
return {
|
|
3511
3512
|
valid: !1,
|
|
3512
|
-
message: `${n.title} requires less than ${
|
|
3513
|
+
message: `${n.title} requires less than ${E + 1} values`,
|
|
3513
3514
|
status: 400
|
|
3514
3515
|
};
|
|
3515
3516
|
if (F.length < b)
|
|
@@ -3520,7 +3521,7 @@ function Ot(e) {
|
|
|
3520
3521
|
};
|
|
3521
3522
|
var N;
|
|
3522
3523
|
if (F.find(function(T) {
|
|
3523
|
-
var z =
|
|
3524
|
+
var z = y;
|
|
3524
3525
|
n.type === "group" && (z = "object"), n.type === "reference" && n.widget === "form" && (z = "object");
|
|
3525
3526
|
var H = e.utils.isValidValue(
|
|
3526
3527
|
T,
|
|
@@ -3532,7 +3533,7 @@ function Ot(e) {
|
|
|
3532
3533
|
if (n.validation) {
|
|
3533
3534
|
var X = r.meetsValidationRequirements(
|
|
3534
3535
|
T,
|
|
3535
|
-
|
|
3536
|
+
y,
|
|
3536
3537
|
n.validation
|
|
3537
3538
|
);
|
|
3538
3539
|
if (X)
|
|
@@ -3545,7 +3546,7 @@ function Ot(e) {
|
|
|
3545
3546
|
status: 400
|
|
3546
3547
|
};
|
|
3547
3548
|
} else {
|
|
3548
|
-
var _ =
|
|
3549
|
+
var _ = y, L = n.widget;
|
|
3549
3550
|
_ === "group" && (_ = "object"), _ === "reference" && L === "form" && (_ = "object");
|
|
3550
3551
|
var B = r.getCleanedValue(o, _, c), $ = e.utils.isValidValue(
|
|
3551
3552
|
B,
|
|
@@ -3559,7 +3560,7 @@ function Ot(e) {
|
|
|
3559
3560
|
criteria: {
|
|
3560
3561
|
isValidValue: $,
|
|
3561
3562
|
cleanedValue: B,
|
|
3562
|
-
fieldType:
|
|
3563
|
+
fieldType: y,
|
|
3563
3564
|
options: c
|
|
3564
3565
|
},
|
|
3565
3566
|
status: 400
|
|
@@ -3574,7 +3575,7 @@ function Ot(e) {
|
|
|
3574
3575
|
);
|
|
3575
3576
|
var W = r.meetsValidationRequirements(
|
|
3576
3577
|
o,
|
|
3577
|
-
|
|
3578
|
+
y,
|
|
3578
3579
|
H
|
|
3579
3580
|
);
|
|
3580
3581
|
if (W)
|
|
@@ -3608,37 +3609,37 @@ function Ot(e) {
|
|
|
3608
3609
|
return o;
|
|
3609
3610
|
}, r.list = async function(o, n, c) {
|
|
3610
3611
|
c || (c = {});
|
|
3611
|
-
const
|
|
3612
|
+
const y = c.remoteURL || `/content/${o}/list`;
|
|
3612
3613
|
if (c.cancellable) {
|
|
3613
3614
|
c.config || (c.config = {});
|
|
3614
|
-
const
|
|
3615
|
-
return c.config.cancelToken =
|
|
3616
|
-
promise: e.api.post(
|
|
3615
|
+
const E = e.api.CancelToken.source();
|
|
3616
|
+
return c.config.cancelToken = E.token, {
|
|
3617
|
+
promise: e.api.post(y, n, c.config),
|
|
3617
3618
|
cancel(R) {
|
|
3618
|
-
|
|
3619
|
+
E.cancel(R || "Operation canceled by the user.");
|
|
3619
3620
|
}
|
|
3620
3621
|
};
|
|
3621
3622
|
} else {
|
|
3622
|
-
const { data: b } = await e.api.post(
|
|
3623
|
+
const { data: b } = await e.api.post(y, n, c.config);
|
|
3623
3624
|
return b;
|
|
3624
3625
|
}
|
|
3625
3626
|
}, r.create = async function(o, n) {
|
|
3626
3627
|
const c = { ...n };
|
|
3627
3628
|
c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
|
|
3628
|
-
const { data:
|
|
3629
|
-
return
|
|
3629
|
+
const { data: y } = await e.api.post(`/content/${o}/create`, c);
|
|
3630
|
+
return y;
|
|
3630
3631
|
}, r.update = async function(o, n) {
|
|
3631
3632
|
o = e.utils.id(o);
|
|
3632
3633
|
const c = { ...n };
|
|
3633
3634
|
c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
|
|
3634
|
-
const { data:
|
|
3635
|
-
return
|
|
3635
|
+
const { data: y } = await e.api.put(`/content/${o}`, c);
|
|
3636
|
+
return y;
|
|
3636
3637
|
}, r.patch = async function(o, n) {
|
|
3637
3638
|
o = e.utils.id(o);
|
|
3638
3639
|
const c = { ...n };
|
|
3639
3640
|
c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
|
|
3640
|
-
const { data:
|
|
3641
|
-
return
|
|
3641
|
+
const { data: y } = await e.api.patch(`/content/${o}`, c);
|
|
3642
|
+
return y;
|
|
3642
3643
|
}, r.get = async function(o, n) {
|
|
3643
3644
|
o = e.utils.id(o), n = n || {};
|
|
3644
3645
|
const { data: c } = await e.api.get(`/content/${o}`, n);
|
|
@@ -3677,7 +3678,7 @@ function kt(e) {
|
|
|
3677
3678
|
function u(g) {
|
|
3678
3679
|
return g * (Math.PI / 180);
|
|
3679
3680
|
}
|
|
3680
|
-
var d = 6371e3,
|
|
3681
|
+
var d = 6371e3, m = u(s - t), S = u(f - i), A = Math.sin(m / 2) * Math.sin(m / 2) + Math.cos(u(t)) * Math.cos(u(s)) * Math.sin(S / 2) * Math.sin(S / 2), P = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), v = d * P;
|
|
3681
3682
|
return v;
|
|
3682
3683
|
}, r.getPosition = async function() {
|
|
3683
3684
|
return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, i) {
|
|
@@ -4438,7 +4439,7 @@ const It = function(e, r) {
|
|
|
4438
4439
|
function d(g) {
|
|
4439
4440
|
t.debug && console.log("[socket] Connection open", g), t.connected = !0, u.dispatch("connected", g);
|
|
4440
4441
|
}
|
|
4441
|
-
async function
|
|
4442
|
+
async function m(g) {
|
|
4442
4443
|
g.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${g.code} reason=${g.reason}`) : t.debug && console.log("[socket] - connection closed due to error", g), t.connected = !1, u.dispatch("disconnected", g), i = null, t.autoreconnect && t.reconnect();
|
|
4443
4444
|
}
|
|
4444
4445
|
function S(g) {
|
|
@@ -4448,7 +4449,7 @@ const It = function(e, r) {
|
|
|
4448
4449
|
const x = JSON.parse(g.data);
|
|
4449
4450
|
t.debug && console.log("[socket] message received", x), u.dispatch("message", x), x.channel && u.dispatch(x.channel, x);
|
|
4450
4451
|
}
|
|
4451
|
-
async function
|
|
4452
|
+
async function P(g) {
|
|
4452
4453
|
i.send(JSON.stringify(g));
|
|
4453
4454
|
}
|
|
4454
4455
|
function v() {
|
|
@@ -4469,7 +4470,7 @@ const It = function(e, r) {
|
|
|
4469
4470
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4470
4471
|
return;
|
|
4471
4472
|
}
|
|
4472
|
-
return i = new WebSocket(`${t.url}?access_token=${g}&windowid=${a}`), i.addEventListener("close",
|
|
4473
|
+
return i = new WebSocket(`${t.url}?access_token=${g}&windowid=${a}`), i.addEventListener("close", m), i.addEventListener("error", S), i.addEventListener("open", d), i.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), v();
|
|
4473
4474
|
}, t.reconnect = async function() {
|
|
4474
4475
|
if (t.connected)
|
|
4475
4476
|
return;
|
|
@@ -4484,13 +4485,13 @@ const It = function(e, r) {
|
|
|
4484
4485
|
return;
|
|
4485
4486
|
}
|
|
4486
4487
|
const g = t.autoreconnect;
|
|
4487
|
-
t.autoreconnect = !1, i.close(), i.removeEventListener("close",
|
|
4488
|
+
t.autoreconnect = !1, i.close(), i.removeEventListener("close", m), i.removeEventListener("error", S), i.removeEventListener("open", d), i.removeEventListener("message", A), i = null, m({ wasClean: !0 }), t.autoreconnect = g;
|
|
4488
4489
|
}, t.disconnect = t.close, t.subscribe = async function(g) {
|
|
4489
4490
|
if (!i) {
|
|
4490
4491
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
4491
4492
|
return;
|
|
4492
4493
|
}
|
|
4493
|
-
|
|
4494
|
+
P({
|
|
4494
4495
|
action: "subscribe",
|
|
4495
4496
|
channel: g
|
|
4496
4497
|
}), f[g] = !0, u.dispatch("subscribe", g), t.debug && console.log(`[socket] - subscribed to ${g}`);
|
|
@@ -4499,7 +4500,7 @@ const It = function(e, r) {
|
|
|
4499
4500
|
console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
|
|
4500
4501
|
return;
|
|
4501
4502
|
}
|
|
4502
|
-
|
|
4503
|
+
P({
|
|
4503
4504
|
action: "unsubscribe",
|
|
4504
4505
|
channel: g
|
|
4505
4506
|
}), delete f[g], u.dispatch("unsubscribe", g), t.debug && console.log(`[socket] - unsubscribed from ${g}`);
|
|
@@ -4558,9 +4559,9 @@ function Nt(e) {
|
|
|
4558
4559
|
value: d,
|
|
4559
4560
|
writable: !1
|
|
4560
4561
|
});
|
|
4561
|
-
const
|
|
4562
|
+
const m = new It(r);
|
|
4562
4563
|
Object.defineProperty(r, "socket", {
|
|
4563
|
-
value:
|
|
4564
|
+
value: m,
|
|
4564
4565
|
writable: !1
|
|
4565
4566
|
});
|
|
4566
4567
|
const S = new Ct(r);
|
|
@@ -4573,9 +4574,9 @@ function Nt(e) {
|
|
|
4573
4574
|
value: A,
|
|
4574
4575
|
writable: !1
|
|
4575
4576
|
});
|
|
4576
|
-
const
|
|
4577
|
+
const P = new kt(r);
|
|
4577
4578
|
Object.defineProperty(r, "geo", {
|
|
4578
|
-
value:
|
|
4579
|
+
value: P,
|
|
4579
4580
|
writable: !1
|
|
4580
4581
|
});
|
|
4581
4582
|
const v = new Ot(r);
|