@qikdev/sdk 0.1.204 → 0.1.206
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 +1456 -1439
- package/package.json +1 -1
- package/src/api/qik.content.js +37 -4
- package/src/version.js +1 -1
package/dist/main.js
CHANGED
|
@@ -44,12 +44,12 @@ function Qr() {
|
|
|
44
44
|
return !1;
|
|
45
45
|
if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
|
|
46
46
|
return !1;
|
|
47
|
-
var
|
|
48
|
-
if (
|
|
47
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
48
|
+
if (o.length !== 1 || o[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
|
|
49
49
|
return !1;
|
|
50
50
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
51
|
+
var m = Object.getOwnPropertyDescriptor(r, a);
|
|
52
|
+
if (m.value !== n || m.enumerable !== !0)
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
55
|
return !0;
|
|
@@ -68,45 +68,45 @@ 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]", n = function(
|
|
72
|
-
for (var
|
|
73
|
-
|
|
74
|
-
for (var c = 0; c <
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
for (var
|
|
79
|
-
|
|
80
|
-
return
|
|
81
|
-
},
|
|
82
|
-
for (var
|
|
83
|
-
|
|
84
|
-
return
|
|
71
|
+
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(d, h) {
|
|
72
|
+
for (var w = [], i = 0; i < d.length; i += 1)
|
|
73
|
+
w[i] = d[i];
|
|
74
|
+
for (var c = 0; c < h.length; c += 1)
|
|
75
|
+
w[c + d.length] = h[c];
|
|
76
|
+
return w;
|
|
77
|
+
}, o = function(d, h) {
|
|
78
|
+
for (var w = [], i = h, c = 0; i < d.length; i += 1, c += 1)
|
|
79
|
+
w[c] = d[i];
|
|
80
|
+
return w;
|
|
81
|
+
}, m = function(u, d) {
|
|
82
|
+
for (var h = "", w = 0; w < u.length; w += 1)
|
|
83
|
+
h += u[w], w + 1 < u.length && (h += d);
|
|
84
|
+
return h;
|
|
85
85
|
};
|
|
86
|
-
return Ye = function(
|
|
87
|
-
var
|
|
88
|
-
if (typeof
|
|
89
|
-
throw new TypeError(e +
|
|
90
|
-
for (var
|
|
91
|
-
if (this instanceof
|
|
92
|
-
var
|
|
86
|
+
return Ye = function(d) {
|
|
87
|
+
var h = this;
|
|
88
|
+
if (typeof h != "function" || r.apply(h) !== t)
|
|
89
|
+
throw new TypeError(e + h);
|
|
90
|
+
for (var w = o(arguments, 1), i, c = function() {
|
|
91
|
+
if (this instanceof i) {
|
|
92
|
+
var l = h.apply(
|
|
93
93
|
this,
|
|
94
|
-
n(
|
|
94
|
+
n(w, arguments)
|
|
95
95
|
);
|
|
96
|
-
return Object(
|
|
96
|
+
return Object(l) === l ? l : this;
|
|
97
97
|
}
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
n(
|
|
98
|
+
return h.apply(
|
|
99
|
+
d,
|
|
100
|
+
n(w, arguments)
|
|
101
101
|
);
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
if (
|
|
105
|
-
var
|
|
102
|
+
}, s = a(0, h.length - w.length), p = [], A = 0; A < s; A++)
|
|
103
|
+
p[A] = "$" + A;
|
|
104
|
+
if (i = Function("binder", "return function (" + m(p, ",") + "){ return binder.apply(this,arguments); }")(c), h.prototype) {
|
|
105
|
+
var y = function() {
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
y.prototype = h.prototype, i.prototype = new y(), y.prototype = null;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return i;
|
|
110
110
|
}, Ye;
|
|
111
111
|
}
|
|
112
112
|
var Xe, Mr;
|
|
@@ -116,53 +116,53 @@ function yr() {
|
|
|
116
116
|
var e = Xr();
|
|
117
117
|
return Xe = Function.prototype.bind || e, Xe;
|
|
118
118
|
}
|
|
119
|
-
var er,
|
|
119
|
+
var er, kr;
|
|
120
120
|
function et() {
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if (kr) return er;
|
|
122
|
+
kr = 1;
|
|
123
123
|
var e = yr();
|
|
124
124
|
return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
|
|
125
125
|
}
|
|
126
|
-
var rr,
|
|
126
|
+
var rr, Ir;
|
|
127
127
|
function hr() {
|
|
128
|
-
if (
|
|
129
|
-
|
|
128
|
+
if (Ir) return rr;
|
|
129
|
+
Ir = 1;
|
|
130
130
|
var e, r = SyntaxError, a = Function, t = TypeError, n = function(F) {
|
|
131
131
|
try {
|
|
132
132
|
return a('"use strict"; return (' + F + ").constructor;")();
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
135
|
+
}, o = Object.getOwnPropertyDescriptor;
|
|
136
|
+
if (o)
|
|
137
137
|
try {
|
|
138
|
-
|
|
138
|
+
o({}, "");
|
|
139
139
|
} catch {
|
|
140
|
-
|
|
140
|
+
o = null;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
142
|
+
var m = function() {
|
|
143
143
|
throw new t();
|
|
144
|
-
}, u =
|
|
144
|
+
}, u = o ? (function() {
|
|
145
145
|
try {
|
|
146
|
-
return arguments.callee,
|
|
146
|
+
return arguments.callee, m;
|
|
147
147
|
} catch {
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return o(arguments, "callee").get;
|
|
150
150
|
} catch {
|
|
151
|
-
return
|
|
151
|
+
return m;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
})() :
|
|
154
|
+
})() : m, d = Yr()(), h = Object.getPrototypeOf || function(F) {
|
|
155
155
|
return F.__proto__;
|
|
156
|
-
},
|
|
156
|
+
}, w = {}, i = typeof Uint8Array > "u" ? e : h(Uint8Array), c = {
|
|
157
157
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
158
158
|
"%Array%": Array,
|
|
159
159
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
160
|
-
"%ArrayIteratorPrototype%":
|
|
160
|
+
"%ArrayIteratorPrototype%": d ? h([][Symbol.iterator]()) : e,
|
|
161
161
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
162
|
-
"%AsyncFunction%":
|
|
163
|
-
"%AsyncGenerator%":
|
|
164
|
-
"%AsyncGeneratorFunction%":
|
|
165
|
-
"%AsyncIteratorPrototype%":
|
|
162
|
+
"%AsyncFunction%": w,
|
|
163
|
+
"%AsyncGenerator%": w,
|
|
164
|
+
"%AsyncGeneratorFunction%": w,
|
|
165
|
+
"%AsyncIteratorPrototype%": w,
|
|
166
166
|
"%Atomics%": typeof Atomics > "u" ? e : Atomics,
|
|
167
167
|
"%BigInt%": typeof BigInt > "u" ? e : BigInt,
|
|
168
168
|
"%Boolean%": Boolean,
|
|
@@ -180,16 +180,16 @@ function hr() {
|
|
|
180
180
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
181
181
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
182
182
|
"%Function%": a,
|
|
183
|
-
"%GeneratorFunction%":
|
|
183
|
+
"%GeneratorFunction%": w,
|
|
184
184
|
"%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
|
|
185
185
|
"%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
|
|
186
186
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
187
187
|
"%isFinite%": isFinite,
|
|
188
188
|
"%isNaN%": isNaN,
|
|
189
|
-
"%IteratorPrototype%":
|
|
189
|
+
"%IteratorPrototype%": d ? h(h([][Symbol.iterator]())) : e,
|
|
190
190
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
191
191
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
192
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
192
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !d ? e : h((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
193
193
|
"%Math%": Math,
|
|
194
194
|
"%Number%": Number,
|
|
195
195
|
"%Object%": Object,
|
|
@@ -202,14 +202,14 @@ 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" || !
|
|
205
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !d ? e : h((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
206
206
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
207
207
|
"%String%": String,
|
|
208
|
-
"%StringIteratorPrototype%":
|
|
209
|
-
"%Symbol%":
|
|
208
|
+
"%StringIteratorPrototype%": d ? h(""[Symbol.iterator]()) : e,
|
|
209
|
+
"%Symbol%": d ? Symbol : e,
|
|
210
210
|
"%SyntaxError%": r,
|
|
211
211
|
"%ThrowTypeError%": u,
|
|
212
|
-
"%TypedArray%":
|
|
212
|
+
"%TypedArray%": i,
|
|
213
213
|
"%TypeError%": t,
|
|
214
214
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
215
215
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
@@ -219,23 +219,23 @@ function hr() {
|
|
|
219
219
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
220
220
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
221
221
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet
|
|
222
|
-
},
|
|
222
|
+
}, s = function F(L) {
|
|
223
223
|
var R;
|
|
224
|
-
if (
|
|
224
|
+
if (L === "%AsyncFunction%")
|
|
225
225
|
R = n("async function () {}");
|
|
226
|
-
else if (
|
|
226
|
+
else if (L === "%GeneratorFunction%")
|
|
227
227
|
R = n("function* () {}");
|
|
228
|
-
else if (
|
|
228
|
+
else if (L === "%AsyncGeneratorFunction%")
|
|
229
229
|
R = n("async function* () {}");
|
|
230
|
-
else if (
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
} else if (
|
|
234
|
-
var
|
|
235
|
-
|
|
230
|
+
else if (L === "%AsyncGenerator%") {
|
|
231
|
+
var T = F("%AsyncGeneratorFunction%");
|
|
232
|
+
T && (R = T.prototype);
|
|
233
|
+
} else if (L === "%AsyncIteratorPrototype%") {
|
|
234
|
+
var $ = F("%AsyncGenerator%");
|
|
235
|
+
$ && (R = h($.prototype));
|
|
236
236
|
}
|
|
237
|
-
return c[
|
|
238
|
-
},
|
|
237
|
+
return c[L] = R, R;
|
|
238
|
+
}, p = {
|
|
239
239
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
240
240
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
241
241
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -287,56 +287,56 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
},
|
|
291
|
-
var R = C(
|
|
292
|
-
if (R === "%" &&
|
|
290
|
+
}, A = yr(), y = et(), l = A.call(Function.call, Array.prototype.concat), S = A.call(Function.apply, Array.prototype.splice), b = A.call(Function.call, String.prototype.replace), C = A.call(Function.call, String.prototype.slice), P = A.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, _ = /\\(\\)?/g, k = function(L) {
|
|
291
|
+
var R = C(L, 0, 1), T = C(L, -1);
|
|
292
|
+
if (R === "%" && T !== "%")
|
|
293
293
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
294
|
-
if (
|
|
294
|
+
if (T === "%" && R !== "%")
|
|
295
295
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
296
|
-
var
|
|
297
|
-
return b(
|
|
298
|
-
|
|
299
|
-
}),
|
|
300
|
-
}, V = function(
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
var B = c[
|
|
304
|
-
if (B ===
|
|
305
|
-
throw new t("intrinsic " +
|
|
296
|
+
var $ = [];
|
|
297
|
+
return b(L, I, function(B, z, N, Z) {
|
|
298
|
+
$[$.length] = N ? b(Z, _, "$1") : z || B;
|
|
299
|
+
}), $;
|
|
300
|
+
}, V = function(L, R) {
|
|
301
|
+
var T = L, $;
|
|
302
|
+
if (y(p, T) && ($ = p[T], T = "%" + $[0] + "%"), y(c, T)) {
|
|
303
|
+
var B = c[T];
|
|
304
|
+
if (B === w && (B = s(T)), typeof B > "u" && !R)
|
|
305
|
+
throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
|
|
306
306
|
return {
|
|
307
|
-
alias:
|
|
308
|
-
name:
|
|
307
|
+
alias: $,
|
|
308
|
+
name: T,
|
|
309
309
|
value: B
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
throw new r("intrinsic " +
|
|
312
|
+
throw new r("intrinsic " + L + " does not exist!");
|
|
313
313
|
};
|
|
314
|
-
return rr = function(
|
|
315
|
-
if (typeof
|
|
314
|
+
return rr = function(L, R) {
|
|
315
|
+
if (typeof L != "string" || L.length === 0)
|
|
316
316
|
throw new t("intrinsic name must be a non-empty string");
|
|
317
317
|
if (arguments.length > 1 && typeof R != "boolean")
|
|
318
318
|
throw new t('"allowMissing" argument must be a boolean');
|
|
319
|
-
if (
|
|
319
|
+
if (P(/^%?[^%]*%?$/, L) === null)
|
|
320
320
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
321
|
-
var
|
|
322
|
-
Q && (
|
|
323
|
-
for (var ne = 1, X = !0; ne <
|
|
324
|
-
var W =
|
|
321
|
+
var T = k(L), $ = T.length > 0 ? T[0] : "", B = V("%" + $ + "%", R), z = B.name, N = B.value, Z = !1, Q = B.alias;
|
|
322
|
+
Q && ($ = Q[0], S(T, l([0, 1], Q)));
|
|
323
|
+
for (var ne = 1, X = !0; ne < T.length; ne += 1) {
|
|
324
|
+
var W = T[ne], ie = C(W, 0, 1), re = C(W, -1);
|
|
325
325
|
if ((ie === '"' || ie === "'" || ie === "`" || re === '"' || re === "'" || re === "`") && ie !== re)
|
|
326
326
|
throw new r("property names with quotes must have matching quotes");
|
|
327
|
-
if ((W === "constructor" || !X) && (Z = !0),
|
|
327
|
+
if ((W === "constructor" || !X) && (Z = !0), $ += "." + W, z = "%" + $ + "%", y(c, z))
|
|
328
328
|
N = c[z];
|
|
329
329
|
else if (N != null) {
|
|
330
330
|
if (!(W in N)) {
|
|
331
331
|
if (!R)
|
|
332
|
-
throw new t("base intrinsic for " +
|
|
332
|
+
throw new t("base intrinsic for " + L + " exists, but the property is not available.");
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (
|
|
336
|
-
var te =
|
|
335
|
+
if (o && ne + 1 >= T.length) {
|
|
336
|
+
var te = o(N, W);
|
|
337
337
|
X = !!te, X && "get" in te && !("originalValue" in te.get) ? N = te.get : N = N[W];
|
|
338
338
|
} else
|
|
339
|
-
X =
|
|
339
|
+
X = y(N, W), N = N[W];
|
|
340
340
|
X && !Z && (c[z] = N);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -346,29 +346,29 @@ function hr() {
|
|
|
346
346
|
var tr = { exports: {} }, Tr;
|
|
347
347
|
function rt() {
|
|
348
348
|
return Tr || (Tr = 1, (function(e) {
|
|
349
|
-
var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"),
|
|
349
|
+
var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), o = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), u = a("%Object.defineProperty%", !0), d = a("%Math.max%");
|
|
350
350
|
if (u)
|
|
351
351
|
try {
|
|
352
352
|
u({}, "a", { value: 1 });
|
|
353
353
|
} catch {
|
|
354
354
|
u = null;
|
|
355
355
|
}
|
|
356
|
-
e.exports = function(
|
|
357
|
-
var c =
|
|
358
|
-
if (
|
|
359
|
-
var
|
|
360
|
-
|
|
356
|
+
e.exports = function(i) {
|
|
357
|
+
var c = o(r, n, arguments);
|
|
358
|
+
if (m && u) {
|
|
359
|
+
var s = m(c, "length");
|
|
360
|
+
s.configurable && u(
|
|
361
361
|
c,
|
|
362
362
|
"length",
|
|
363
|
-
{ value: 1 +
|
|
363
|
+
{ value: 1 + d(0, i.length - (arguments.length - 1)) }
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
return c;
|
|
367
367
|
};
|
|
368
|
-
var
|
|
369
|
-
return
|
|
368
|
+
var h = function() {
|
|
369
|
+
return o(r, t, arguments);
|
|
370
370
|
};
|
|
371
|
-
u ? u(e.exports, "apply", { value:
|
|
371
|
+
u ? u(e.exports, "apply", { value: h }) : e.exports.apply = h;
|
|
372
372
|
})(tr)), tr.exports;
|
|
373
373
|
}
|
|
374
374
|
var ar, Rr;
|
|
@@ -376,9 +376,9 @@ function tt() {
|
|
|
376
376
|
if (Rr) return ar;
|
|
377
377
|
Rr = 1;
|
|
378
378
|
var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
|
|
379
|
-
return ar = function(n,
|
|
380
|
-
var
|
|
381
|
-
return typeof
|
|
379
|
+
return ar = function(n, o) {
|
|
380
|
+
var m = e(n, !!o);
|
|
381
|
+
return typeof m == "function" && a(n, ".prototype.") > -1 ? r(m) : m;
|
|
382
382
|
}, ar;
|
|
383
383
|
}
|
|
384
384
|
const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -389,353 +389,353 @@ 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, n = typeof Set == "function" && Set.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, n = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, u = n && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype, h = d ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, i = w ? WeakSet.prototype.has : null, c = typeof WeakRef == "function" && WeakRef.prototype, s = c ? WeakRef.prototype.deref : null, p = Boolean.prototype.valueOf, A = Object.prototype.toString, y = Function.prototype.toString, l = String.prototype.match, S = String.prototype.slice, b = String.prototype.replace, C = String.prototype.toUpperCase, P = String.prototype.toLowerCase, I = RegExp.prototype.test, _ = Array.prototype.concat, k = Array.prototype.join, V = Array.prototype.slice, F = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, R = Object.getOwnPropertySymbols, T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, $ = typeof Symbol == "function" && typeof Symbol.iterator == "object", B = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === $ || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, N = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(g) {
|
|
393
|
+
return g.__proto__;
|
|
394
394
|
} : null);
|
|
395
|
-
function Z(
|
|
396
|
-
if (
|
|
397
|
-
return
|
|
395
|
+
function Z(g, v) {
|
|
396
|
+
if (g === 1 / 0 || g === -1 / 0 || g !== g || g && g > -1e3 && g < 1e3 || I.call(/e/, v))
|
|
397
|
+
return v;
|
|
398
398
|
var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
399
|
-
if (typeof
|
|
400
|
-
var
|
|
401
|
-
if (
|
|
402
|
-
var
|
|
403
|
-
return b.call(
|
|
399
|
+
if (typeof g == "number") {
|
|
400
|
+
var f = g < 0 ? -F(-g) : F(g);
|
|
401
|
+
if (f !== g) {
|
|
402
|
+
var E = String(f), x = S.call(v, E.length + 1);
|
|
403
|
+
return b.call(E, D, "$&_") + "." + b.call(b.call(x, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
return b.call(
|
|
406
|
+
return b.call(v, D, "$&_");
|
|
407
407
|
}
|
|
408
408
|
var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
|
|
409
|
-
nr = function
|
|
410
|
-
var
|
|
411
|
-
if (J(
|
|
409
|
+
nr = function g(v, D, f, E) {
|
|
410
|
+
var x = D || {};
|
|
411
|
+
if (J(x, "quoteStyle") && x.quoteStyle !== "single" && x.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
413
|
-
if (J(
|
|
413
|
+
if (J(x, "maxStringLength") && (typeof x.maxStringLength == "number" ? x.maxStringLength < 0 && x.maxStringLength !== 1 / 0 : x.maxStringLength !== null))
|
|
414
414
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
415
|
-
var G = J(
|
|
415
|
+
var G = J(x, "customInspect") ? x.customInspect : !0;
|
|
416
416
|
if (typeof G != "boolean" && G !== "symbol")
|
|
417
417
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
418
|
-
if (J(
|
|
418
|
+
if (J(x, "indent") && x.indent !== null && x.indent !== " " && !(parseInt(x.indent, 10) === x.indent && x.indent > 0))
|
|
419
419
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
420
|
-
if (J(
|
|
420
|
+
if (J(x, "numericSeparator") && typeof x.numericSeparator != "boolean")
|
|
421
421
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
422
|
-
var ae =
|
|
423
|
-
if (typeof
|
|
422
|
+
var ae = x.numericSeparator;
|
|
423
|
+
if (typeof v > "u")
|
|
424
424
|
return "undefined";
|
|
425
|
-
if (
|
|
425
|
+
if (v === null)
|
|
426
426
|
return "null";
|
|
427
|
-
if (typeof
|
|
428
|
-
return
|
|
429
|
-
if (typeof
|
|
430
|
-
return Ce(
|
|
431
|
-
if (typeof
|
|
432
|
-
if (
|
|
433
|
-
return 1 / 0 /
|
|
434
|
-
var K = String(
|
|
435
|
-
return ae ? Z(
|
|
427
|
+
if (typeof v == "boolean")
|
|
428
|
+
return v ? "true" : "false";
|
|
429
|
+
if (typeof v == "string")
|
|
430
|
+
return Ce(v, x);
|
|
431
|
+
if (typeof v == "number") {
|
|
432
|
+
if (v === 0)
|
|
433
|
+
return 1 / 0 / v > 0 ? "0" : "-0";
|
|
434
|
+
var K = String(v);
|
|
435
|
+
return ae ? Z(v, K) : K;
|
|
436
436
|
}
|
|
437
|
-
if (typeof
|
|
438
|
-
var O = String(
|
|
439
|
-
return ae ? Z(
|
|
437
|
+
if (typeof v == "bigint") {
|
|
438
|
+
var O = String(v) + "n";
|
|
439
|
+
return ae ? Z(v, O) : O;
|
|
440
440
|
}
|
|
441
|
-
var
|
|
442
|
-
if (typeof
|
|
443
|
-
return re(
|
|
444
|
-
var j = Le(
|
|
445
|
-
if (typeof
|
|
446
|
-
|
|
447
|
-
else if (Pe(
|
|
441
|
+
var U = typeof x.depth > "u" ? 5 : x.depth;
|
|
442
|
+
if (typeof f > "u" && (f = 0), f >= U && U > 0 && typeof v == "object")
|
|
443
|
+
return re(v) ? "[Array]" : "[Object]";
|
|
444
|
+
var j = Le(x, f);
|
|
445
|
+
if (typeof E > "u")
|
|
446
|
+
E = [];
|
|
447
|
+
else if (Pe(E, v) >= 0)
|
|
448
448
|
return "[Circular]";
|
|
449
449
|
function H(Me, Ge, Jr) {
|
|
450
|
-
if (Ge && (
|
|
450
|
+
if (Ge && (E = V.call(E), E.push(Ge)), Jr) {
|
|
451
451
|
var Pr = {
|
|
452
|
-
depth:
|
|
452
|
+
depth: x.depth
|
|
453
453
|
};
|
|
454
|
-
return J(
|
|
454
|
+
return J(x, "quoteStyle") && (Pr.quoteStyle = x.quoteStyle), g(Me, Pr, f + 1, E);
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return g(Me, x, f + 1, E);
|
|
457
457
|
}
|
|
458
|
-
if (typeof
|
|
459
|
-
var Y =
|
|
460
|
-
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " +
|
|
458
|
+
if (typeof v == "function" && !ce(v)) {
|
|
459
|
+
var Y = ke(v), we = ge(v, H);
|
|
460
|
+
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + k.call(we, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
|
-
if (se(
|
|
463
|
-
var Ar =
|
|
464
|
-
return typeof
|
|
462
|
+
if (se(v)) {
|
|
463
|
+
var Ar = $ ? b.call(String(v), /^(Symbol\(.*\))_[^)]*$/, "$1") : T.call(v);
|
|
464
|
+
return typeof v == "object" && !$ ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
|
-
if (_e(
|
|
467
|
-
for (var Fe = "<" +
|
|
468
|
-
Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double",
|
|
469
|
-
return Fe += ">",
|
|
466
|
+
if (_e(v)) {
|
|
467
|
+
for (var Fe = "<" + P.call(String(v.nodeName)), ze = v.attributes || [], Be = 0; Be < ze.length; Be++)
|
|
468
|
+
Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double", x);
|
|
469
|
+
return Fe += ">", v.childNodes && v.childNodes.length && (Fe += "..."), Fe += "</" + P.call(String(v.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
|
-
if (re(
|
|
472
|
-
if (
|
|
471
|
+
if (re(v)) {
|
|
472
|
+
if (v.length === 0)
|
|
473
473
|
return "[]";
|
|
474
|
-
var We = ge(
|
|
475
|
-
return j && !Oe(We) ? "[" + he(We, j) + "]" : "[ " +
|
|
474
|
+
var We = ge(v, H);
|
|
475
|
+
return j && !Oe(We) ? "[" + he(We, j) + "]" : "[ " + k.call(We, ", ") + " ]";
|
|
476
476
|
}
|
|
477
|
-
if (ue(
|
|
478
|
-
var Ke = ge(
|
|
479
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
477
|
+
if (ue(v)) {
|
|
478
|
+
var Ke = ge(v, H);
|
|
479
|
+
return !("cause" in Error.prototype) && "cause" in v && !z.call(v, "cause") ? "{ [" + String(v) + "] " + k.call(_.call("[cause]: " + H(v.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(v) + "]" : "{ [" + String(v) + "] " + k.call(Ke, ", ") + " }";
|
|
480
480
|
}
|
|
481
|
-
if (typeof
|
|
482
|
-
if (X && typeof
|
|
483
|
-
return Q(
|
|
484
|
-
if (G !== "symbol" && typeof
|
|
485
|
-
return
|
|
481
|
+
if (typeof v == "object" && G) {
|
|
482
|
+
if (X && typeof v[X] == "function" && Q)
|
|
483
|
+
return Q(v, { depth: U - f });
|
|
484
|
+
if (G !== "symbol" && typeof v.inspect == "function")
|
|
485
|
+
return v.inspect();
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (Ie(v)) {
|
|
488
488
|
var br = [];
|
|
489
|
-
return t.call(
|
|
490
|
-
br.push(H(Ge,
|
|
491
|
-
}), Se("Map", a.call(
|
|
489
|
+
return t.call(v, function(Me, Ge) {
|
|
490
|
+
br.push(H(Ge, v, !0) + " => " + H(Me, v));
|
|
491
|
+
}), Se("Map", a.call(v), br, j);
|
|
492
492
|
}
|
|
493
|
-
if (Te(
|
|
493
|
+
if (Te(v)) {
|
|
494
494
|
var Sr = [];
|
|
495
|
-
return u.call(
|
|
496
|
-
Sr.push(H(Me,
|
|
497
|
-
}), Se("Set",
|
|
495
|
+
return u.call(v, function(Me) {
|
|
496
|
+
Sr.push(H(Me, v));
|
|
497
|
+
}), Se("Set", m.call(v), Sr, j);
|
|
498
498
|
}
|
|
499
|
-
if (me(
|
|
499
|
+
if (me(v))
|
|
500
500
|
return fe("WeakMap");
|
|
501
|
-
if (Re(
|
|
501
|
+
if (Re(v))
|
|
502
502
|
return fe("WeakSet");
|
|
503
|
-
if (xe(
|
|
503
|
+
if (xe(v))
|
|
504
504
|
return fe("WeakRef");
|
|
505
|
-
if (de(
|
|
506
|
-
return le(H(Number(
|
|
507
|
-
if (ye(
|
|
508
|
-
return le(H(
|
|
509
|
-
if (pe(
|
|
510
|
-
return le(
|
|
511
|
-
if (oe(
|
|
512
|
-
return le(H(String(
|
|
513
|
-
if (!te(
|
|
514
|
-
var He = ge(
|
|
515
|
-
return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " +
|
|
505
|
+
if (de(v))
|
|
506
|
+
return le(H(Number(v)));
|
|
507
|
+
if (ye(v))
|
|
508
|
+
return le(H(L.call(v)));
|
|
509
|
+
if (pe(v))
|
|
510
|
+
return le(p.call(v));
|
|
511
|
+
if (oe(v))
|
|
512
|
+
return le(H(String(v)));
|
|
513
|
+
if (!te(v) && !ce(v)) {
|
|
514
|
+
var He = ge(v, H), wr = N ? N(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && B && Object(v) === v && B in v ? S.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + k.call(_.call([], Er || [], Je || []), ": ") + "] " : "");
|
|
515
|
+
return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + k.call(He, ", ") + " }";
|
|
516
516
|
}
|
|
517
|
-
return String(
|
|
517
|
+
return String(v);
|
|
518
518
|
};
|
|
519
|
-
function W(
|
|
520
|
-
var
|
|
521
|
-
return
|
|
519
|
+
function W(g, v, D) {
|
|
520
|
+
var f = (D.quoteStyle || v) === "double" ? '"' : "'";
|
|
521
|
+
return f + g + f;
|
|
522
522
|
}
|
|
523
|
-
function ie(
|
|
524
|
-
return b.call(String(
|
|
523
|
+
function ie(g) {
|
|
524
|
+
return b.call(String(g), /"/g, """);
|
|
525
525
|
}
|
|
526
|
-
function re(
|
|
527
|
-
return ee(
|
|
526
|
+
function re(g) {
|
|
527
|
+
return ee(g) === "[object Array]" && (!B || !(typeof g == "object" && B in g));
|
|
528
528
|
}
|
|
529
|
-
function te(
|
|
530
|
-
return ee(
|
|
529
|
+
function te(g) {
|
|
530
|
+
return ee(g) === "[object Date]" && (!B || !(typeof g == "object" && B in g));
|
|
531
531
|
}
|
|
532
|
-
function ce(
|
|
533
|
-
return ee(
|
|
532
|
+
function ce(g) {
|
|
533
|
+
return ee(g) === "[object RegExp]" && (!B || !(typeof g == "object" && B in g));
|
|
534
534
|
}
|
|
535
|
-
function ue(
|
|
536
|
-
return ee(
|
|
535
|
+
function ue(g) {
|
|
536
|
+
return ee(g) === "[object Error]" && (!B || !(typeof g == "object" && B in g));
|
|
537
537
|
}
|
|
538
|
-
function oe(
|
|
539
|
-
return ee(
|
|
538
|
+
function oe(g) {
|
|
539
|
+
return ee(g) === "[object String]" && (!B || !(typeof g == "object" && B in g));
|
|
540
540
|
}
|
|
541
|
-
function de(
|
|
542
|
-
return ee(
|
|
541
|
+
function de(g) {
|
|
542
|
+
return ee(g) === "[object Number]" && (!B || !(typeof g == "object" && B in g));
|
|
543
543
|
}
|
|
544
|
-
function pe(
|
|
545
|
-
return ee(
|
|
544
|
+
function pe(g) {
|
|
545
|
+
return ee(g) === "[object Boolean]" && (!B || !(typeof g == "object" && B in g));
|
|
546
546
|
}
|
|
547
|
-
function se(
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
550
|
-
if (typeof
|
|
547
|
+
function se(g) {
|
|
548
|
+
if ($)
|
|
549
|
+
return g && typeof g == "object" && g instanceof Symbol;
|
|
550
|
+
if (typeof g == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!
|
|
552
|
+
if (!g || typeof g != "object" || !T)
|
|
553
553
|
return !1;
|
|
554
554
|
try {
|
|
555
|
-
return
|
|
555
|
+
return T.call(g), !0;
|
|
556
556
|
} catch {
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
|
-
function ye(
|
|
561
|
-
if (!
|
|
560
|
+
function ye(g) {
|
|
561
|
+
if (!g || typeof g != "object" || !L)
|
|
562
562
|
return !1;
|
|
563
563
|
try {
|
|
564
|
-
return
|
|
564
|
+
return L.call(g), !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(g) {
|
|
570
|
+
return g in this;
|
|
571
571
|
};
|
|
572
|
-
function J(
|
|
573
|
-
return be.call(
|
|
574
|
-
}
|
|
575
|
-
function ee(
|
|
576
|
-
return
|
|
577
|
-
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
581
|
-
var
|
|
582
|
-
return
|
|
583
|
-
}
|
|
584
|
-
function Pe(
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
for (var D = 0,
|
|
588
|
-
if (
|
|
572
|
+
function J(g, v) {
|
|
573
|
+
return be.call(g, v);
|
|
574
|
+
}
|
|
575
|
+
function ee(g) {
|
|
576
|
+
return A.call(g);
|
|
577
|
+
}
|
|
578
|
+
function ke(g) {
|
|
579
|
+
if (g.name)
|
|
580
|
+
return g.name;
|
|
581
|
+
var v = l.call(y.call(g), /^function\s*([\w$]+)/);
|
|
582
|
+
return v ? v[1] : null;
|
|
583
|
+
}
|
|
584
|
+
function Pe(g, v) {
|
|
585
|
+
if (g.indexOf)
|
|
586
|
+
return g.indexOf(v);
|
|
587
|
+
for (var D = 0, f = g.length; D < f; D++)
|
|
588
|
+
if (g[D] === v)
|
|
589
589
|
return D;
|
|
590
590
|
return -1;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
if (!a || !
|
|
592
|
+
function Ie(g) {
|
|
593
|
+
if (!a || !g || typeof g != "object")
|
|
594
594
|
return !1;
|
|
595
595
|
try {
|
|
596
|
-
a.call(
|
|
596
|
+
a.call(g);
|
|
597
597
|
try {
|
|
598
|
-
|
|
598
|
+
m.call(g);
|
|
599
599
|
} catch {
|
|
600
600
|
return !0;
|
|
601
601
|
}
|
|
602
|
-
return
|
|
602
|
+
return g instanceof Map;
|
|
603
603
|
} catch {
|
|
604
604
|
}
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
|
-
function me(
|
|
608
|
-
if (!
|
|
607
|
+
function me(g) {
|
|
608
|
+
if (!h || !g || typeof g != "object")
|
|
609
609
|
return !1;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
h.call(g, h);
|
|
612
612
|
try {
|
|
613
|
-
|
|
613
|
+
i.call(g, i);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return g instanceof WeakMap;
|
|
618
618
|
} catch {
|
|
619
619
|
}
|
|
620
620
|
return !1;
|
|
621
621
|
}
|
|
622
|
-
function xe(
|
|
623
|
-
if (!
|
|
622
|
+
function xe(g) {
|
|
623
|
+
if (!s || !g || typeof g != "object")
|
|
624
624
|
return !1;
|
|
625
625
|
try {
|
|
626
|
-
return
|
|
626
|
+
return s.call(g), !0;
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function Te(
|
|
632
|
-
if (!
|
|
631
|
+
function Te(g) {
|
|
632
|
+
if (!m || !g || typeof g != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
635
|
-
|
|
635
|
+
m.call(g);
|
|
636
636
|
try {
|
|
637
|
-
a.call(
|
|
637
|
+
a.call(g);
|
|
638
638
|
} catch {
|
|
639
639
|
return !0;
|
|
640
640
|
}
|
|
641
|
-
return
|
|
641
|
+
return g instanceof Set;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function Re(
|
|
647
|
-
if (!
|
|
646
|
+
function Re(g) {
|
|
647
|
+
if (!i || !g || typeof g != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
i.call(g, i);
|
|
651
651
|
try {
|
|
652
|
-
|
|
652
|
+
h.call(g, h);
|
|
653
653
|
} catch {
|
|
654
654
|
return !0;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return g instanceof WeakSet;
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
function _e(
|
|
662
|
-
return !
|
|
661
|
+
function _e(g) {
|
|
662
|
+
return !g || typeof g != "object" ? !1 : typeof HTMLElement < "u" && g instanceof HTMLElement ? !0 : typeof g.nodeName == "string" && typeof g.getAttribute == "function";
|
|
663
663
|
}
|
|
664
|
-
function Ce(
|
|
665
|
-
if (
|
|
666
|
-
var D =
|
|
667
|
-
return Ce(
|
|
664
|
+
function Ce(g, v) {
|
|
665
|
+
if (g.length > v.maxStringLength) {
|
|
666
|
+
var D = g.length - v.maxStringLength, f = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
+
return Ce(S.call(g, 0, v.maxStringLength), v) + f;
|
|
668
668
|
}
|
|
669
|
-
var
|
|
670
|
-
return W(
|
|
669
|
+
var E = b.call(b.call(g, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
|
+
return W(E, "single", v);
|
|
671
671
|
}
|
|
672
|
-
function Ne(
|
|
673
|
-
var
|
|
672
|
+
function Ne(g) {
|
|
673
|
+
var v = g.charCodeAt(0), D = {
|
|
674
674
|
8: "b",
|
|
675
675
|
9: "t",
|
|
676
676
|
10: "n",
|
|
677
677
|
12: "f",
|
|
678
678
|
13: "r"
|
|
679
|
-
}[
|
|
680
|
-
return D ? "\\" + D : "\\x" + (
|
|
679
|
+
}[v];
|
|
680
|
+
return D ? "\\" + D : "\\x" + (v < 16 ? "0" : "") + C.call(v.toString(16));
|
|
681
681
|
}
|
|
682
|
-
function le(
|
|
683
|
-
return "Object(" +
|
|
682
|
+
function le(g) {
|
|
683
|
+
return "Object(" + g + ")";
|
|
684
684
|
}
|
|
685
|
-
function fe(
|
|
686
|
-
return
|
|
685
|
+
function fe(g) {
|
|
686
|
+
return g + " { ? }";
|
|
687
687
|
}
|
|
688
|
-
function Se(
|
|
689
|
-
var
|
|
690
|
-
return
|
|
688
|
+
function Se(g, v, D, f) {
|
|
689
|
+
var E = f ? he(D, f) : k.call(D, ", ");
|
|
690
|
+
return g + " (" + v + ") {" + E + "}";
|
|
691
691
|
}
|
|
692
|
-
function Oe(
|
|
693
|
-
for (var
|
|
694
|
-
if (Pe(
|
|
692
|
+
function Oe(g) {
|
|
693
|
+
for (var v = 0; v < g.length; v++)
|
|
694
|
+
if (Pe(g[v], `
|
|
695
695
|
`) >= 0)
|
|
696
696
|
return !1;
|
|
697
697
|
return !0;
|
|
698
698
|
}
|
|
699
|
-
function Le(
|
|
699
|
+
function Le(g, v) {
|
|
700
700
|
var D;
|
|
701
|
-
if (
|
|
701
|
+
if (g.indent === " ")
|
|
702
702
|
D = " ";
|
|
703
|
-
else if (typeof
|
|
704
|
-
D =
|
|
703
|
+
else if (typeof g.indent == "number" && g.indent > 0)
|
|
704
|
+
D = k.call(Array(g.indent + 1), " ");
|
|
705
705
|
else
|
|
706
706
|
return null;
|
|
707
707
|
return {
|
|
708
708
|
base: D,
|
|
709
|
-
prev:
|
|
709
|
+
prev: k.call(Array(v + 1), D)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function he(
|
|
713
|
-
if (
|
|
712
|
+
function he(g, v) {
|
|
713
|
+
if (g.length === 0)
|
|
714
714
|
return "";
|
|
715
715
|
var D = `
|
|
716
|
-
` +
|
|
717
|
-
return D +
|
|
718
|
-
` +
|
|
716
|
+
` + v.prev + v.base;
|
|
717
|
+
return D + k.call(g, "," + D) + `
|
|
718
|
+
` + v.prev;
|
|
719
719
|
}
|
|
720
|
-
function ge(
|
|
721
|
-
var D = re(
|
|
720
|
+
function ge(g, v) {
|
|
721
|
+
var D = re(g), f = [];
|
|
722
722
|
if (D) {
|
|
723
|
-
|
|
724
|
-
for (var
|
|
725
|
-
|
|
723
|
+
f.length = g.length;
|
|
724
|
+
for (var E = 0; E < g.length; E++)
|
|
725
|
+
f[E] = J(g, E) ? v(g[E], g) : "";
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
727
|
+
var x = typeof R == "function" ? R(g) : [], G;
|
|
728
|
+
if ($) {
|
|
729
729
|
G = {};
|
|
730
|
-
for (var ae = 0; ae <
|
|
731
|
-
G["$" +
|
|
730
|
+
for (var ae = 0; ae < x.length; ae++)
|
|
731
|
+
G["$" + x[ae]] = x[ae];
|
|
732
732
|
}
|
|
733
|
-
for (var K in
|
|
734
|
-
J(
|
|
733
|
+
for (var K in g)
|
|
734
|
+
J(g, K) && (D && String(Number(K)) === K && K < g.length || $ && G["$" + K] instanceof Symbol || (I.call(/[^\w$]/, K) ? f.push(v(K, g) + ": " + v(g[K], g)) : f.push(K + ": " + v(g[K], g))));
|
|
735
735
|
if (typeof R == "function")
|
|
736
|
-
for (var O = 0; O <
|
|
737
|
-
z.call(
|
|
738
|
-
return
|
|
736
|
+
for (var O = 0; O < x.length; O++)
|
|
737
|
+
z.call(g, x[O]) && f.push("[" + v(x[O]) + "]: " + v(g[x[O]], g));
|
|
738
|
+
return f;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
741
741
|
}
|
|
@@ -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%"), n = e("%WeakMap%", !0),
|
|
747
|
-
for (var
|
|
748
|
-
if (b.key ===
|
|
749
|
-
return
|
|
750
|
-
},
|
|
751
|
-
var
|
|
752
|
-
return
|
|
753
|
-
},
|
|
754
|
-
var b = c(
|
|
755
|
-
b ? b.value =
|
|
746
|
+
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), u = r("WeakMap.prototype.set", !0), d = r("WeakMap.prototype.has", !0), h = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), i = r("Map.prototype.has", !0), c = function(y, l) {
|
|
747
|
+
for (var S = y, b; (b = S.next) !== null; S = b)
|
|
748
|
+
if (b.key === l)
|
|
749
|
+
return S.next = b.next, b.next = y.next, y.next = b, b;
|
|
750
|
+
}, s = function(y, l) {
|
|
751
|
+
var S = c(y, l);
|
|
752
|
+
return S && S.value;
|
|
753
|
+
}, p = function(y, l, S) {
|
|
754
|
+
var b = c(y, l);
|
|
755
|
+
b ? b.value = S : y.next = {
|
|
756
756
|
// eslint-disable-line no-param-reassign
|
|
757
|
-
key:
|
|
758
|
-
next:
|
|
759
|
-
value:
|
|
757
|
+
key: l,
|
|
758
|
+
next: y.next,
|
|
759
|
+
value: S
|
|
760
760
|
};
|
|
761
|
-
},
|
|
762
|
-
return !!c(
|
|
761
|
+
}, A = function(y, l) {
|
|
762
|
+
return !!c(y, l);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
765
|
-
var
|
|
766
|
-
assert: function(
|
|
767
|
-
if (!C.has(
|
|
768
|
-
throw new t("Side channel does not contain " + a(
|
|
765
|
+
var l, S, b, C = {
|
|
766
|
+
assert: function(P) {
|
|
767
|
+
if (!C.has(P))
|
|
768
|
+
throw new t("Side channel does not contain " + a(P));
|
|
769
769
|
},
|
|
770
|
-
get: function(
|
|
771
|
-
if (n &&
|
|
772
|
-
if (
|
|
773
|
-
return
|
|
774
|
-
} else if (
|
|
775
|
-
if (
|
|
776
|
-
return
|
|
770
|
+
get: function(P) {
|
|
771
|
+
if (n && P && (typeof P == "object" || typeof P == "function")) {
|
|
772
|
+
if (l)
|
|
773
|
+
return m(l, P);
|
|
774
|
+
} else if (o) {
|
|
775
|
+
if (S)
|
|
776
|
+
return h(S, P);
|
|
777
777
|
} else if (b)
|
|
778
|
-
return
|
|
778
|
+
return s(b, P);
|
|
779
779
|
},
|
|
780
|
-
has: function(
|
|
781
|
-
if (n &&
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
784
|
-
} else if (
|
|
785
|
-
if (
|
|
786
|
-
return
|
|
780
|
+
has: function(P) {
|
|
781
|
+
if (n && P && (typeof P == "object" || typeof P == "function")) {
|
|
782
|
+
if (l)
|
|
783
|
+
return d(l, P);
|
|
784
|
+
} else if (o) {
|
|
785
|
+
if (S)
|
|
786
|
+
return i(S, P);
|
|
787
787
|
} else if (b)
|
|
788
|
-
return
|
|
788
|
+
return A(b, P);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
|
-
set: function(
|
|
792
|
-
n &&
|
|
791
|
+
set: function(P, I) {
|
|
792
|
+
n && P && (typeof P == "object" || typeof P == "function") ? (l || (l = new n()), u(l, P, I)) : o ? (S || (S = new o()), w(S, P, I)) : (b || (b = { key: {}, next: null }), p(b, P, I));
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
return C;
|
|
@@ -822,121 +822,121 @@ function Wr() {
|
|
|
822
822
|
if (Fr) return sr;
|
|
823
823
|
Fr = 1;
|
|
824
824
|
var e = gr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = (function() {
|
|
825
|
-
for (var
|
|
826
|
-
|
|
827
|
-
return
|
|
828
|
-
})(), n = function(
|
|
829
|
-
for (;
|
|
830
|
-
var
|
|
831
|
-
if (a(
|
|
832
|
-
for (var b = [], C = 0; C <
|
|
833
|
-
typeof
|
|
834
|
-
|
|
825
|
+
for (var A = [], y = 0; y < 256; ++y)
|
|
826
|
+
A.push("%" + ((y < 16 ? "0" : "") + y.toString(16)).toUpperCase());
|
|
827
|
+
return A;
|
|
828
|
+
})(), n = function(y) {
|
|
829
|
+
for (; y.length > 1; ) {
|
|
830
|
+
var l = y.pop(), S = l.obj[l.prop];
|
|
831
|
+
if (a(S)) {
|
|
832
|
+
for (var b = [], C = 0; C < S.length; ++C)
|
|
833
|
+
typeof S[C] < "u" && b.push(S[C]);
|
|
834
|
+
l.obj[l.prop] = b;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
},
|
|
838
|
-
for (var
|
|
839
|
-
typeof
|
|
840
|
-
return
|
|
841
|
-
},
|
|
842
|
-
if (!
|
|
843
|
-
return
|
|
844
|
-
if (typeof
|
|
845
|
-
if (a(
|
|
846
|
-
|
|
847
|
-
else if (
|
|
848
|
-
(
|
|
837
|
+
}, o = function(y, l) {
|
|
838
|
+
for (var S = l && l.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = 0; b < y.length; ++b)
|
|
839
|
+
typeof y[b] < "u" && (S[b] = y[b]);
|
|
840
|
+
return S;
|
|
841
|
+
}, m = function A(y, l, S) {
|
|
842
|
+
if (!l)
|
|
843
|
+
return y;
|
|
844
|
+
if (typeof l != "object") {
|
|
845
|
+
if (a(y))
|
|
846
|
+
y.push(l);
|
|
847
|
+
else if (y && typeof y == "object")
|
|
848
|
+
(S && (S.plainObjects || S.allowPrototypes) || !r.call(Object.prototype, l)) && (y[l] = !0);
|
|
849
849
|
else
|
|
850
|
-
return [
|
|
851
|
-
return
|
|
850
|
+
return [y, l];
|
|
851
|
+
return y;
|
|
852
852
|
}
|
|
853
|
-
if (!
|
|
854
|
-
return [
|
|
855
|
-
var b =
|
|
856
|
-
return a(
|
|
857
|
-
if (r.call(
|
|
858
|
-
var
|
|
859
|
-
|
|
853
|
+
if (!y || typeof y != "object")
|
|
854
|
+
return [y].concat(l);
|
|
855
|
+
var b = y;
|
|
856
|
+
return a(y) && !a(l) && (b = o(y, S)), a(y) && a(l) ? (l.forEach(function(C, P) {
|
|
857
|
+
if (r.call(y, P)) {
|
|
858
|
+
var I = y[P];
|
|
859
|
+
I && typeof I == "object" && C && typeof C == "object" ? y[P] = A(I, C, S) : y.push(C);
|
|
860
860
|
} else
|
|
861
|
-
|
|
862
|
-
}),
|
|
863
|
-
var
|
|
864
|
-
return r.call(C,
|
|
861
|
+
y[P] = C;
|
|
862
|
+
}), y) : Object.keys(l).reduce(function(C, P) {
|
|
863
|
+
var I = l[P];
|
|
864
|
+
return r.call(C, P) ? C[P] = A(C[P], I, S) : C[P] = I, C;
|
|
865
865
|
}, b);
|
|
866
|
-
}, u = function(
|
|
867
|
-
return Object.keys(
|
|
868
|
-
return
|
|
869
|
-
},
|
|
870
|
-
},
|
|
871
|
-
var
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
866
|
+
}, u = function(y, l) {
|
|
867
|
+
return Object.keys(l).reduce(function(S, b) {
|
|
868
|
+
return S[b] = l[b], S;
|
|
869
|
+
}, y);
|
|
870
|
+
}, d = function(A, y, l) {
|
|
871
|
+
var S = A.replace(/\+/g, " ");
|
|
872
|
+
if (l === "iso-8859-1")
|
|
873
|
+
return S.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
874
874
|
try {
|
|
875
|
-
return decodeURIComponent(
|
|
875
|
+
return decodeURIComponent(S);
|
|
876
876
|
} catch {
|
|
877
|
-
return
|
|
877
|
+
return S;
|
|
878
878
|
}
|
|
879
|
-
},
|
|
880
|
-
if (
|
|
881
|
-
return
|
|
882
|
-
var
|
|
883
|
-
if (typeof
|
|
884
|
-
return escape(
|
|
879
|
+
}, h = function(y, l, S, b, C) {
|
|
880
|
+
if (y.length === 0)
|
|
881
|
+
return y;
|
|
882
|
+
var P = y;
|
|
883
|
+
if (typeof y == "symbol" ? P = Symbol.prototype.toString.call(y) : typeof y != "string" && (P = String(y)), S === "iso-8859-1")
|
|
884
|
+
return escape(P).replace(/%u[0-9a-f]{4}/gi, function(V) {
|
|
885
885
|
return "%26%23" + parseInt(V.slice(2), 16) + "%3B";
|
|
886
886
|
});
|
|
887
|
-
for (var
|
|
888
|
-
var
|
|
889
|
-
if (
|
|
890
|
-
|
|
887
|
+
for (var I = "", _ = 0; _ < P.length; ++_) {
|
|
888
|
+
var k = P.charCodeAt(_);
|
|
889
|
+
if (k === 45 || k === 46 || k === 95 || k === 126 || k >= 48 && k <= 57 || k >= 65 && k <= 90 || k >= 97 && k <= 122 || C === e.RFC1738 && (k === 40 || k === 41)) {
|
|
890
|
+
I += P.charAt(_);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
|
-
if (
|
|
894
|
-
|
|
893
|
+
if (k < 128) {
|
|
894
|
+
I = I + t[k];
|
|
895
895
|
continue;
|
|
896
896
|
}
|
|
897
|
-
if (
|
|
898
|
-
|
|
897
|
+
if (k < 2048) {
|
|
898
|
+
I = I + (t[192 | k >> 6] + t[128 | k & 63]);
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
902
|
-
|
|
901
|
+
if (k < 55296 || k >= 57344) {
|
|
902
|
+
I = I + (t[224 | k >> 12] + t[128 | k >> 6 & 63] + t[128 | k & 63]);
|
|
903
903
|
continue;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
_ += 1, k = 65536 + ((k & 1023) << 10 | P.charCodeAt(_) & 1023), I += t[240 | k >> 18] + t[128 | k >> 12 & 63] + t[128 | k >> 6 & 63] + t[128 | k & 63];
|
|
906
906
|
}
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
for (var
|
|
910
|
-
for (var C =
|
|
911
|
-
var
|
|
912
|
-
typeof V == "object" && V !== null &&
|
|
907
|
+
return I;
|
|
908
|
+
}, w = function(y) {
|
|
909
|
+
for (var l = [{ obj: { o: y }, prop: "o" }], S = [], b = 0; b < l.length; ++b)
|
|
910
|
+
for (var C = l[b], P = C.obj[C.prop], I = Object.keys(P), _ = 0; _ < I.length; ++_) {
|
|
911
|
+
var k = I[_], V = P[k];
|
|
912
|
+
typeof V == "object" && V !== null && S.indexOf(V) === -1 && (l.push({ obj: P, prop: k }), S.push(V));
|
|
913
913
|
}
|
|
914
|
-
return n(
|
|
915
|
-
},
|
|
916
|
-
return Object.prototype.toString.call(
|
|
917
|
-
}, c = function(
|
|
918
|
-
return !
|
|
919
|
-
},
|
|
920
|
-
return [].concat(
|
|
921
|
-
},
|
|
922
|
-
if (a(
|
|
923
|
-
for (var
|
|
924
|
-
|
|
925
|
-
return
|
|
914
|
+
return n(l), y;
|
|
915
|
+
}, i = function(y) {
|
|
916
|
+
return Object.prototype.toString.call(y) === "[object RegExp]";
|
|
917
|
+
}, c = function(y) {
|
|
918
|
+
return !y || typeof y != "object" ? !1 : !!(y.constructor && y.constructor.isBuffer && y.constructor.isBuffer(y));
|
|
919
|
+
}, s = function(y, l) {
|
|
920
|
+
return [].concat(y, l);
|
|
921
|
+
}, p = function(y, l) {
|
|
922
|
+
if (a(y)) {
|
|
923
|
+
for (var S = [], b = 0; b < y.length; b += 1)
|
|
924
|
+
S.push(l(y[b]));
|
|
925
|
+
return S;
|
|
926
926
|
}
|
|
927
|
-
return
|
|
927
|
+
return l(y);
|
|
928
928
|
};
|
|
929
929
|
return sr = {
|
|
930
|
-
arrayToObject:
|
|
930
|
+
arrayToObject: o,
|
|
931
931
|
assign: u,
|
|
932
|
-
combine:
|
|
933
|
-
compact:
|
|
934
|
-
decode:
|
|
935
|
-
encode:
|
|
932
|
+
combine: s,
|
|
933
|
+
compact: w,
|
|
934
|
+
decode: d,
|
|
935
|
+
encode: h,
|
|
936
936
|
isBuffer: c,
|
|
937
|
-
isRegExp:
|
|
938
|
-
maybeMap:
|
|
939
|
-
merge:
|
|
937
|
+
isRegExp: i,
|
|
938
|
+
maybeMap: p,
|
|
939
|
+
merge: m
|
|
940
940
|
}, sr;
|
|
941
941
|
}
|
|
942
942
|
var ur, $r;
|
|
@@ -944,19 +944,19 @@ function ut() {
|
|
|
944
944
|
if ($r) return ur;
|
|
945
945
|
$r = 1;
|
|
946
946
|
var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
|
|
947
|
-
brackets: function(
|
|
948
|
-
return
|
|
947
|
+
brackets: function(l) {
|
|
948
|
+
return l + "[]";
|
|
949
949
|
},
|
|
950
950
|
comma: "comma",
|
|
951
|
-
indices: function(
|
|
952
|
-
return
|
|
951
|
+
indices: function(l, S) {
|
|
952
|
+
return l + "[" + S + "]";
|
|
953
953
|
},
|
|
954
|
-
repeat: function(
|
|
955
|
-
return
|
|
954
|
+
repeat: function(l) {
|
|
955
|
+
return l;
|
|
956
956
|
}
|
|
957
|
-
},
|
|
958
|
-
u.apply(
|
|
959
|
-
},
|
|
957
|
+
}, o = Array.isArray, m = String.prototype.split, u = Array.prototype.push, d = function(y, l) {
|
|
958
|
+
u.apply(y, o(l) ? l : [l]);
|
|
959
|
+
}, h = Date.prototype.toISOString, w = a.default, i = {
|
|
960
960
|
addQueryPrefix: !1,
|
|
961
961
|
allowDots: !1,
|
|
962
962
|
charset: "utf-8",
|
|
@@ -965,137 +965,137 @@ function ut() {
|
|
|
965
965
|
encode: !0,
|
|
966
966
|
encoder: r.encode,
|
|
967
967
|
encodeValuesOnly: !1,
|
|
968
|
-
format:
|
|
969
|
-
formatter: a.formatters[
|
|
968
|
+
format: w,
|
|
969
|
+
formatter: a.formatters[w],
|
|
970
970
|
// deprecated
|
|
971
971
|
indices: !1,
|
|
972
|
-
serializeDate: function(
|
|
973
|
-
return
|
|
972
|
+
serializeDate: function(l) {
|
|
973
|
+
return h.call(l);
|
|
974
974
|
},
|
|
975
975
|
skipNulls: !1,
|
|
976
976
|
strictNullHandling: !1
|
|
977
|
-
}, c = function(
|
|
978
|
-
return typeof
|
|
979
|
-
},
|
|
980
|
-
for (var N =
|
|
981
|
-
var X = Z.get(
|
|
977
|
+
}, c = function(l) {
|
|
978
|
+
return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint";
|
|
979
|
+
}, s = {}, p = function y(l, S, b, C, P, I, _, k, V, F, L, R, T, $, B, z) {
|
|
980
|
+
for (var N = l, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
|
|
981
|
+
var X = Z.get(l);
|
|
982
982
|
if (Q += 1, typeof X < "u") {
|
|
983
983
|
if (X === Q)
|
|
984
984
|
throw new RangeError("Cyclic object value");
|
|
985
985
|
ne = !0;
|
|
986
986
|
}
|
|
987
|
-
typeof Z.get(
|
|
987
|
+
typeof Z.get(s) > "u" && (Q = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof
|
|
990
|
-
return ee instanceof Date ?
|
|
989
|
+
if (typeof k == "function" ? N = k(S, N) : N instanceof Date ? N = L(N) : b === "comma" && o(N) && (N = r.maybeMap(N, function(ee) {
|
|
990
|
+
return ee instanceof Date ? L(ee) : ee;
|
|
991
991
|
})), N === null) {
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
992
|
+
if (P)
|
|
993
|
+
return _ && !$ ? _(S, i.encoder, B, "key", R) : S;
|
|
994
994
|
N = "";
|
|
995
995
|
}
|
|
996
996
|
if (c(N) || r.isBuffer(N)) {
|
|
997
|
-
if (
|
|
998
|
-
var W =
|
|
999
|
-
if (b === "comma" &&
|
|
1000
|
-
for (var ie =
|
|
1001
|
-
re += (te === 0 ? "" : ",") + _(
|
|
1002
|
-
return [
|
|
997
|
+
if (_) {
|
|
998
|
+
var W = $ ? S : _(S, i.encoder, B, "key", R);
|
|
999
|
+
if (b === "comma" && $) {
|
|
1000
|
+
for (var ie = m.call(String(N), ","), re = "", te = 0; te < ie.length; ++te)
|
|
1001
|
+
re += (te === 0 ? "" : ",") + T(_(ie[te], i.encoder, B, "value", R));
|
|
1002
|
+
return [T(W) + (C && o(N) && ie.length === 1 ? "[]" : "") + "=" + re];
|
|
1003
1003
|
}
|
|
1004
|
-
return [
|
|
1004
|
+
return [T(W) + "=" + T(_(N, i.encoder, B, "value", R))];
|
|
1005
1005
|
}
|
|
1006
|
-
return [
|
|
1006
|
+
return [T(S) + "=" + T(String(N))];
|
|
1007
1007
|
}
|
|
1008
1008
|
var ce = [];
|
|
1009
1009
|
if (typeof N > "u")
|
|
1010
1010
|
return ce;
|
|
1011
1011
|
var ue;
|
|
1012
|
-
if (b === "comma" &&
|
|
1012
|
+
if (b === "comma" && o(N))
|
|
1013
1013
|
ue = [{ value: N.length > 0 ? N.join(",") || null : void 0 }];
|
|
1014
|
-
else if (
|
|
1015
|
-
ue =
|
|
1014
|
+
else if (o(k))
|
|
1015
|
+
ue = k;
|
|
1016
1016
|
else {
|
|
1017
1017
|
var oe = Object.keys(N);
|
|
1018
1018
|
ue = V ? oe.sort(V) : oe;
|
|
1019
1019
|
}
|
|
1020
|
-
for (var de = C &&
|
|
1020
|
+
for (var de = C && o(N) && N.length === 1 ? S + "[]" : S, pe = 0; pe < ue.length; ++pe) {
|
|
1021
1021
|
var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : N[se];
|
|
1022
|
-
if (!(
|
|
1023
|
-
var be =
|
|
1024
|
-
z.set(
|
|
1022
|
+
if (!(I && ye === null)) {
|
|
1023
|
+
var be = o(N) ? typeof b == "function" ? b(de, se) : de : de + (F ? "." + se : "[" + se + "]");
|
|
1024
|
+
z.set(l, Q);
|
|
1025
1025
|
var J = e();
|
|
1026
|
-
J.set(
|
|
1026
|
+
J.set(s, z), d(ce, y(
|
|
1027
1027
|
ye,
|
|
1028
1028
|
be,
|
|
1029
1029
|
b,
|
|
1030
1030
|
C,
|
|
1031
|
-
|
|
1032
|
-
k,
|
|
1033
|
-
L,
|
|
1031
|
+
P,
|
|
1034
1032
|
I,
|
|
1033
|
+
_,
|
|
1034
|
+
k,
|
|
1035
1035
|
V,
|
|
1036
1036
|
F,
|
|
1037
|
-
|
|
1037
|
+
L,
|
|
1038
1038
|
R,
|
|
1039
|
-
|
|
1040
|
-
|
|
1039
|
+
T,
|
|
1040
|
+
$,
|
|
1041
1041
|
B,
|
|
1042
1042
|
J
|
|
1043
1043
|
));
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
return ce;
|
|
1047
|
-
},
|
|
1048
|
-
if (!
|
|
1049
|
-
return
|
|
1050
|
-
if (
|
|
1047
|
+
}, A = function(l) {
|
|
1048
|
+
if (!l)
|
|
1049
|
+
return i;
|
|
1050
|
+
if (l.encoder !== null && typeof l.encoder < "u" && typeof l.encoder != "function")
|
|
1051
1051
|
throw new TypeError("Encoder has to be a function.");
|
|
1052
|
-
var
|
|
1053
|
-
if (typeof
|
|
1052
|
+
var S = l.charset || i.charset;
|
|
1053
|
+
if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1")
|
|
1054
1054
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1055
1055
|
var b = a.default;
|
|
1056
|
-
if (typeof
|
|
1057
|
-
if (!t.call(a.formatters,
|
|
1056
|
+
if (typeof l.format < "u") {
|
|
1057
|
+
if (!t.call(a.formatters, l.format))
|
|
1058
1058
|
throw new TypeError("Unknown format option provided.");
|
|
1059
|
-
b =
|
|
1059
|
+
b = l.format;
|
|
1060
1060
|
}
|
|
1061
|
-
var C = a.formatters[b],
|
|
1062
|
-
return (typeof
|
|
1063
|
-
addQueryPrefix: typeof
|
|
1064
|
-
allowDots: typeof
|
|
1065
|
-
charset:
|
|
1066
|
-
charsetSentinel: typeof
|
|
1067
|
-
delimiter: typeof
|
|
1068
|
-
encode: typeof
|
|
1069
|
-
encoder: typeof
|
|
1070
|
-
encodeValuesOnly: typeof
|
|
1071
|
-
filter:
|
|
1061
|
+
var C = a.formatters[b], P = i.filter;
|
|
1062
|
+
return (typeof l.filter == "function" || o(l.filter)) && (P = l.filter), {
|
|
1063
|
+
addQueryPrefix: typeof l.addQueryPrefix == "boolean" ? l.addQueryPrefix : i.addQueryPrefix,
|
|
1064
|
+
allowDots: typeof l.allowDots > "u" ? i.allowDots : !!l.allowDots,
|
|
1065
|
+
charset: S,
|
|
1066
|
+
charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : i.charsetSentinel,
|
|
1067
|
+
delimiter: typeof l.delimiter > "u" ? i.delimiter : l.delimiter,
|
|
1068
|
+
encode: typeof l.encode == "boolean" ? l.encode : i.encode,
|
|
1069
|
+
encoder: typeof l.encoder == "function" ? l.encoder : i.encoder,
|
|
1070
|
+
encodeValuesOnly: typeof l.encodeValuesOnly == "boolean" ? l.encodeValuesOnly : i.encodeValuesOnly,
|
|
1071
|
+
filter: P,
|
|
1072
1072
|
format: b,
|
|
1073
1073
|
formatter: C,
|
|
1074
|
-
serializeDate: typeof
|
|
1075
|
-
skipNulls: typeof
|
|
1076
|
-
sort: typeof
|
|
1077
|
-
strictNullHandling: typeof
|
|
1074
|
+
serializeDate: typeof l.serializeDate == "function" ? l.serializeDate : i.serializeDate,
|
|
1075
|
+
skipNulls: typeof l.skipNulls == "boolean" ? l.skipNulls : i.skipNulls,
|
|
1076
|
+
sort: typeof l.sort == "function" ? l.sort : null,
|
|
1077
|
+
strictNullHandling: typeof l.strictNullHandling == "boolean" ? l.strictNullHandling : i.strictNullHandling
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
|
-
return ur = function(
|
|
1081
|
-
var
|
|
1082
|
-
typeof b.filter == "function" ? (
|
|
1083
|
-
var
|
|
1084
|
-
if (typeof
|
|
1080
|
+
return ur = function(y, l) {
|
|
1081
|
+
var S = y, b = A(l), C, P;
|
|
1082
|
+
typeof b.filter == "function" ? (P = b.filter, S = P("", S)) : o(b.filter) && (P = b.filter, C = P);
|
|
1083
|
+
var I = [];
|
|
1084
|
+
if (typeof S != "object" || S === null)
|
|
1085
1085
|
return "";
|
|
1086
|
-
var
|
|
1087
|
-
|
|
1088
|
-
var
|
|
1089
|
-
if (
|
|
1086
|
+
var _;
|
|
1087
|
+
l && l.arrayFormat in n ? _ = l.arrayFormat : l && "indices" in l ? _ = l.indices ? "indices" : "repeat" : _ = "indices";
|
|
1088
|
+
var k = n[_];
|
|
1089
|
+
if (l && "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
|
-
var V =
|
|
1092
|
-
C || (C = Object.keys(
|
|
1093
|
-
for (var F = e(),
|
|
1094
|
-
var R = C[
|
|
1095
|
-
b.skipNulls &&
|
|
1096
|
-
|
|
1091
|
+
var V = k === "comma" && l && l.commaRoundTrip;
|
|
1092
|
+
C || (C = Object.keys(S)), b.sort && C.sort(b.sort);
|
|
1093
|
+
for (var F = e(), L = 0; L < C.length; ++L) {
|
|
1094
|
+
var R = C[L];
|
|
1095
|
+
b.skipNulls && S[R] === null || d(I, p(
|
|
1096
|
+
S[R],
|
|
1097
1097
|
R,
|
|
1098
|
-
|
|
1098
|
+
k,
|
|
1099
1099
|
V,
|
|
1100
1100
|
b.strictNullHandling,
|
|
1101
1101
|
b.skipNulls,
|
|
@@ -1111,8 +1111,8 @@ function ut() {
|
|
|
1111
1111
|
F
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return b.charsetSentinel && (b.charset === "iso-8859-1" ?
|
|
1114
|
+
var T = I.join(b.delimiter), $ = b.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return b.charsetSentinel && (b.charset === "iso-8859-1" ? $ += "utf8=%26%2310003%3B&" : $ += "utf8=%E2%9C%93&"), T.length > 0 ? $ + T : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, Ur;
|
|
@@ -1137,92 +1137,92 @@ function ct() {
|
|
|
1137
1137
|
plainObjects: !1,
|
|
1138
1138
|
strictNullHandling: !1
|
|
1139
1139
|
}, n = function(c) {
|
|
1140
|
-
return c.replace(/&#(\d+);/g, function(
|
|
1141
|
-
return String.fromCharCode(parseInt(
|
|
1140
|
+
return c.replace(/&#(\d+);/g, function(s, p) {
|
|
1141
|
+
return String.fromCharCode(parseInt(p, 10));
|
|
1142
1142
|
});
|
|
1143
|
-
},
|
|
1144
|
-
return c && typeof c == "string" &&
|
|
1145
|
-
},
|
|
1146
|
-
var
|
|
1147
|
-
if (
|
|
1148
|
-
for (C = 0; C <
|
|
1149
|
-
|
|
1150
|
-
for (C = 0; C <
|
|
1143
|
+
}, o = function(c, s) {
|
|
1144
|
+
return c && typeof c == "string" && s.comma && c.indexOf(",") > -1 ? c.split(",") : c;
|
|
1145
|
+
}, m = "utf8=%26%2310003%3B", u = "utf8=%E2%9C%93", d = function(s, p) {
|
|
1146
|
+
var A = {}, y = p.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, l = p.parameterLimit === 1 / 0 ? void 0 : p.parameterLimit, S = y.split(p.delimiter, l), b = -1, C, P = p.charset;
|
|
1147
|
+
if (p.charsetSentinel)
|
|
1148
|
+
for (C = 0; C < S.length; ++C)
|
|
1149
|
+
S[C].indexOf("utf8=") === 0 && (S[C] === u ? P = "utf-8" : S[C] === m && (P = "iso-8859-1"), b = C, C = S.length);
|
|
1150
|
+
for (C = 0; C < S.length; ++C)
|
|
1151
1151
|
if (C !== b) {
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
function(
|
|
1156
|
-
return
|
|
1152
|
+
var I = S[C], _ = I.indexOf("]="), k = _ === -1 ? I.indexOf("=") : _ + 1, V, F;
|
|
1153
|
+
k === -1 ? (V = p.decoder(I, t.decoder, P, "key"), F = p.strictNullHandling ? null : "") : (V = p.decoder(I.slice(0, k), t.decoder, P, "key"), F = e.maybeMap(
|
|
1154
|
+
o(I.slice(k + 1), p),
|
|
1155
|
+
function(L) {
|
|
1156
|
+
return p.decoder(L, t.decoder, P, "value");
|
|
1157
1157
|
}
|
|
1158
|
-
)), F &&
|
|
1158
|
+
)), F && p.interpretNumericEntities && P === "iso-8859-1" && (F = n(F)), I.indexOf("[]=") > -1 && (F = a(F) ? [F] : F), r.call(A, V) ? A[V] = e.combine(A[V], F) : A[V] = F;
|
|
1159
1159
|
}
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
for (var
|
|
1163
|
-
var
|
|
1164
|
-
if (b === "[]" &&
|
|
1165
|
-
|
|
1160
|
+
return A;
|
|
1161
|
+
}, h = function(c, s, p, A) {
|
|
1162
|
+
for (var y = A ? s : o(s, p), l = c.length - 1; l >= 0; --l) {
|
|
1163
|
+
var S, b = c[l];
|
|
1164
|
+
if (b === "[]" && p.parseArrays)
|
|
1165
|
+
S = [].concat(y);
|
|
1166
1166
|
else {
|
|
1167
|
-
|
|
1168
|
-
var C = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b,
|
|
1169
|
-
!
|
|
1167
|
+
S = p.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1168
|
+
var C = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, P = parseInt(C, 10);
|
|
1169
|
+
!p.parseArrays && C === "" ? S = { 0: y } : !isNaN(P) && b !== C && String(P) === C && P >= 0 && p.parseArrays && P <= p.arrayLimit ? (S = [], S[P] = y) : C !== "__proto__" && (S[C] = y);
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1171
|
+
y = S;
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1174
|
-
},
|
|
1175
|
-
if (
|
|
1176
|
-
var
|
|
1177
|
-
if (
|
|
1178
|
-
if (!
|
|
1173
|
+
return y;
|
|
1174
|
+
}, w = function(s, p, A, y) {
|
|
1175
|
+
if (s) {
|
|
1176
|
+
var l = A.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, S = /(\[[^[\]]*])/, b = /(\[[^[\]]*])/g, C = A.depth > 0 && S.exec(l), P = C ? l.slice(0, C.index) : l, I = [];
|
|
1177
|
+
if (P) {
|
|
1178
|
+
if (!A.plainObjects && r.call(Object.prototype, P) && !A.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
|
-
|
|
1180
|
+
I.push(P);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var
|
|
1183
|
-
if (
|
|
1182
|
+
for (var _ = 0; A.depth > 0 && (C = b.exec(l)) !== null && _ < A.depth; ) {
|
|
1183
|
+
if (_ += 1, !A.plainObjects && r.call(Object.prototype, C[1].slice(1, -1)) && !A.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
|
-
|
|
1185
|
+
I.push(C[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return C &&
|
|
1187
|
+
return C && I.push("[" + l.slice(C.index) + "]"), h(I, p, A, y);
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1190
|
-
if (!
|
|
1189
|
+
}, i = function(s) {
|
|
1190
|
+
if (!s)
|
|
1191
1191
|
return t;
|
|
1192
|
-
if (
|
|
1192
|
+
if (s.decoder !== null && s.decoder !== void 0 && typeof s.decoder != "function")
|
|
1193
1193
|
throw new TypeError("Decoder has to be a function.");
|
|
1194
|
-
if (typeof
|
|
1194
|
+
if (typeof s.charset < "u" && s.charset !== "utf-8" && s.charset !== "iso-8859-1")
|
|
1195
1195
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1196
|
-
var
|
|
1196
|
+
var p = typeof s.charset > "u" ? t.charset : s.charset;
|
|
1197
1197
|
return {
|
|
1198
|
-
allowDots: typeof
|
|
1199
|
-
allowPrototypes: typeof
|
|
1200
|
-
allowSparse: typeof
|
|
1201
|
-
arrayLimit: typeof
|
|
1202
|
-
charset:
|
|
1203
|
-
charsetSentinel: typeof
|
|
1204
|
-
comma: typeof
|
|
1205
|
-
decoder: typeof
|
|
1206
|
-
delimiter: typeof
|
|
1198
|
+
allowDots: typeof s.allowDots > "u" ? t.allowDots : !!s.allowDots,
|
|
1199
|
+
allowPrototypes: typeof s.allowPrototypes == "boolean" ? s.allowPrototypes : t.allowPrototypes,
|
|
1200
|
+
allowSparse: typeof s.allowSparse == "boolean" ? s.allowSparse : t.allowSparse,
|
|
1201
|
+
arrayLimit: typeof s.arrayLimit == "number" ? s.arrayLimit : t.arrayLimit,
|
|
1202
|
+
charset: p,
|
|
1203
|
+
charsetSentinel: typeof s.charsetSentinel == "boolean" ? s.charsetSentinel : t.charsetSentinel,
|
|
1204
|
+
comma: typeof s.comma == "boolean" ? s.comma : t.comma,
|
|
1205
|
+
decoder: typeof s.decoder == "function" ? s.decoder : t.decoder,
|
|
1206
|
+
delimiter: typeof s.delimiter == "string" || e.isRegExp(s.delimiter) ? s.delimiter : t.delimiter,
|
|
1207
1207
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1208
|
-
depth: typeof
|
|
1209
|
-
ignoreQueryPrefix:
|
|
1210
|
-
interpretNumericEntities: typeof
|
|
1211
|
-
parameterLimit: typeof
|
|
1212
|
-
parseArrays:
|
|
1213
|
-
plainObjects: typeof
|
|
1214
|
-
strictNullHandling: typeof
|
|
1208
|
+
depth: typeof s.depth == "number" || s.depth === !1 ? +s.depth : t.depth,
|
|
1209
|
+
ignoreQueryPrefix: s.ignoreQueryPrefix === !0,
|
|
1210
|
+
interpretNumericEntities: typeof s.interpretNumericEntities == "boolean" ? s.interpretNumericEntities : t.interpretNumericEntities,
|
|
1211
|
+
parameterLimit: typeof s.parameterLimit == "number" ? s.parameterLimit : t.parameterLimit,
|
|
1212
|
+
parseArrays: s.parseArrays !== !1,
|
|
1213
|
+
plainObjects: typeof s.plainObjects == "boolean" ? s.plainObjects : t.plainObjects,
|
|
1214
|
+
strictNullHandling: typeof s.strictNullHandling == "boolean" ? s.strictNullHandling : t.strictNullHandling
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
|
-
return cr = function(c,
|
|
1218
|
-
var
|
|
1217
|
+
return cr = function(c, s) {
|
|
1218
|
+
var p = i(s);
|
|
1219
1219
|
if (c === "" || c === null || typeof c > "u")
|
|
1220
|
-
return
|
|
1221
|
-
for (var
|
|
1222
|
-
var b =
|
|
1223
|
-
|
|
1220
|
+
return p.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
+
for (var A = typeof c == "string" ? d(c, p) : c, y = p.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, l = Object.keys(A), S = 0; S < l.length; ++S) {
|
|
1222
|
+
var b = l[S], C = w(b, A[b], p, typeof c == "string");
|
|
1223
|
+
y = e.merge(y, C, p);
|
|
1224
1224
|
}
|
|
1225
|
-
return
|
|
1225
|
+
return p.allowSparse === !0 ? y : e.compact(y);
|
|
1226
1226
|
}, cr;
|
|
1227
1227
|
}
|
|
1228
1228
|
var lr, Br;
|
|
@@ -1237,200 +1237,200 @@ 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.205", 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
|
-
function t(
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1245
|
+
function t(d) {
|
|
1246
|
+
var h = [
|
|
1247
|
+
d.method,
|
|
1248
|
+
d.url,
|
|
1249
|
+
d.headers?.Authorization,
|
|
1250
|
+
d.headers.Accept,
|
|
1251
1251
|
JSON.stringify({
|
|
1252
|
-
params:
|
|
1253
|
-
data:
|
|
1252
|
+
params: d.params,
|
|
1253
|
+
data: d.data
|
|
1254
1254
|
})
|
|
1255
1255
|
].filter(Boolean).join("-");
|
|
1256
|
-
return
|
|
1256
|
+
return h;
|
|
1257
1257
|
}
|
|
1258
|
-
const n = {},
|
|
1259
|
-
var
|
|
1260
|
-
return n[
|
|
1261
|
-
var c,
|
|
1262
|
-
switch (String(
|
|
1258
|
+
const n = {}, m = u(function(d) {
|
|
1259
|
+
var h = t(d);
|
|
1260
|
+
return n[h] || (n[h] = new Promise(function(w, i) {
|
|
1261
|
+
var c, s;
|
|
1262
|
+
switch (String(d.method).toLowerCase()) {
|
|
1263
1263
|
case "post":
|
|
1264
1264
|
case "patch":
|
|
1265
1265
|
case "put":
|
|
1266
1266
|
case "delete":
|
|
1267
|
-
|
|
1267
|
+
d.cache || (d.cache = !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
|
-
return
|
|
1271
|
-
function(
|
|
1272
|
-
delete n[
|
|
1270
|
+
return d.cache === !1 || (c = d.cache || r, c && (s = c.get(h))), s ? w(s) : (Object.assign(d, { adapter: a }), Ee.request(d).then(
|
|
1271
|
+
function(p) {
|
|
1272
|
+
delete n[h], w(p);
|
|
1273
1273
|
},
|
|
1274
|
-
function(
|
|
1275
|
-
delete n[
|
|
1274
|
+
function(p) {
|
|
1275
|
+
delete n[h], i(p);
|
|
1276
1276
|
}
|
|
1277
1277
|
));
|
|
1278
|
-
})), n[
|
|
1278
|
+
})), n[h];
|
|
1279
1279
|
});
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
var
|
|
1283
|
-
const c =
|
|
1284
|
-
|
|
1285
|
-
var
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
return
|
|
1289
|
-
},
|
|
1290
|
-
return Ee.isCancel(
|
|
1280
|
+
m.generateEndpointURL = function(d, h, w) {
|
|
1281
|
+
w = w || {}, h = h || {};
|
|
1282
|
+
var i;
|
|
1283
|
+
const c = w.file && e.fileAPI || e.apiURL;
|
|
1284
|
+
w.withoutToken || (delete h.access_token, i = e.auth.getCurrentToken()), d[0] == "/" && d.slice(1);
|
|
1285
|
+
var s = e.utils.mapParameters(h);
|
|
1286
|
+
i ? s = s ? `?access_token=${i}&${s}` : `?access_token=${i}` : s = s ? `?${s}` : "";
|
|
1287
|
+
var p = `${c}${d}${s}`;
|
|
1288
|
+
return p;
|
|
1289
|
+
}, m.wasCancelled = function(d) {
|
|
1290
|
+
return Ee.isCancel(d);
|
|
1291
1291
|
};
|
|
1292
|
-
function u(
|
|
1293
|
-
var
|
|
1294
|
-
paramsSerializer: (
|
|
1295
|
-
adapter:
|
|
1292
|
+
function u(d) {
|
|
1293
|
+
var h = Ee.create({
|
|
1294
|
+
paramsSerializer: (i) => dt.stringify(i, { arrayFormat: "repeat" }),
|
|
1295
|
+
adapter: d
|
|
1296
1296
|
});
|
|
1297
|
-
|
|
1298
|
-
if (t(
|
|
1299
|
-
return
|
|
1300
|
-
if (
|
|
1301
|
-
const
|
|
1302
|
-
|
|
1297
|
+
h.defaults.baseURL = e.apiURL, h.defaults.headers.common.Accept = "application/json", h.interceptors.request.use(function(i) {
|
|
1298
|
+
if (t(i), i.withoutToken)
|
|
1299
|
+
return i;
|
|
1300
|
+
if (i.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
|
|
1301
|
+
const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1302
|
+
s && (i.headers["qik-request-timezone"] = s);
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1304
|
+
i.headers["qik-api-version"] = vr, e?.socket?.windowID && (i.headers["qik-socket-window"] = e.socket.windowID);
|
|
1305
1305
|
var c = e.auth.getCurrentToken();
|
|
1306
|
-
return c && (
|
|
1306
|
+
return c && (i.headers.Authorization = `Bearer ${c}`, i.params && i.params.access_token && delete i.params.access_token), i;
|
|
1307
1307
|
});
|
|
1308
|
-
let
|
|
1309
|
-
return
|
|
1310
|
-
function(
|
|
1311
|
-
var c =
|
|
1312
|
-
switch (
|
|
1308
|
+
let w = 0;
|
|
1309
|
+
return h.interceptors.response.use(
|
|
1310
|
+
function(i) {
|
|
1311
|
+
var c = i.config, s = i.status;
|
|
1312
|
+
switch (s) {
|
|
1313
1313
|
case 204:
|
|
1314
|
-
if (
|
|
1315
|
-
return
|
|
1314
|
+
if (w < 5)
|
|
1315
|
+
return w++, new Promise(function(p, A) {
|
|
1316
1316
|
setTimeout(function() {
|
|
1317
|
-
return
|
|
1317
|
+
return h.request(c).then(p, A);
|
|
1318
1318
|
}, 800);
|
|
1319
1319
|
});
|
|
1320
|
-
console.log("Failed after 5 retries"),
|
|
1320
|
+
console.log("Failed after 5 retries"), w = 0;
|
|
1321
1321
|
break;
|
|
1322
1322
|
}
|
|
1323
|
-
return
|
|
1323
|
+
return i;
|
|
1324
1324
|
},
|
|
1325
|
-
function(
|
|
1326
|
-
if (Ee.isCancel(
|
|
1327
|
-
return Promise.reject(
|
|
1328
|
-
var c =
|
|
1325
|
+
function(i) {
|
|
1326
|
+
if (Ee.isCancel(i))
|
|
1327
|
+
return Promise.reject(i);
|
|
1328
|
+
var c = i?.response?.status || i.status;
|
|
1329
1329
|
switch (c) {
|
|
1330
1330
|
case 401:
|
|
1331
1331
|
break;
|
|
1332
1332
|
case 502:
|
|
1333
1333
|
case 504:
|
|
1334
|
-
if (
|
|
1335
|
-
return
|
|
1334
|
+
if (w < 5)
|
|
1335
|
+
return w++, new Promise(function(s, p) {
|
|
1336
1336
|
setTimeout(function() {
|
|
1337
|
-
return
|
|
1337
|
+
return h.request(i.config).then(s, p);
|
|
1338
1338
|
}, 800);
|
|
1339
1339
|
});
|
|
1340
|
-
console.log("Failed after 5 retries"),
|
|
1340
|
+
console.log("Failed after 5 retries"), w = 0;
|
|
1341
1341
|
break;
|
|
1342
1342
|
}
|
|
1343
|
-
return Promise.reject(
|
|
1343
|
+
return Promise.reject(i);
|
|
1344
1344
|
}
|
|
1345
|
-
),
|
|
1345
|
+
), h;
|
|
1346
1346
|
}
|
|
1347
|
-
return
|
|
1347
|
+
return m.CancelToken = pt, m.axios = Ee, m;
|
|
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]", n = "[object Symbol]",
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1352
|
+
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, u = /^\./, d = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, h = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, i = /^\[object .+?Constructor\]$/, c = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, s = typeof self == "object" && self && self.Object === Object && self, p = c || s || Function("return this")();
|
|
1353
|
+
function A(f, E) {
|
|
1354
|
+
return f?.[E];
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1356
|
+
function y(f) {
|
|
1357
|
+
var E = !1;
|
|
1358
|
+
if (f != null && typeof f.toString != "function")
|
|
1359
1359
|
try {
|
|
1360
|
-
|
|
1360
|
+
E = !!(f + "");
|
|
1361
1361
|
} catch {
|
|
1362
1362
|
}
|
|
1363
|
-
return
|
|
1363
|
+
return E;
|
|
1364
1364
|
}
|
|
1365
|
-
var
|
|
1366
|
-
var
|
|
1367
|
-
return
|
|
1368
|
-
})(),
|
|
1369
|
-
"^" +
|
|
1370
|
-
), F =
|
|
1371
|
-
function z(
|
|
1372
|
-
var
|
|
1373
|
-
for (this.clear(); ++
|
|
1374
|
-
var G =
|
|
1365
|
+
var l = Array.prototype, S = Function.prototype, b = Object.prototype, C = p["__core-js_shared__"], P = (function() {
|
|
1366
|
+
var f = /[^.]+$/.exec(C && C.keys && C.keys.IE_PROTO || "");
|
|
1367
|
+
return f ? "Symbol(src)_1." + f : "";
|
|
1368
|
+
})(), I = S.toString, _ = b.hasOwnProperty, k = b.toString, V = RegExp(
|
|
1369
|
+
"^" + I.call(_).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1370
|
+
), F = p.Symbol, L = l.splice, R = xe(p, "Map"), T = xe(Object, "create"), $ = F ? F.prototype : void 0, B = $ ? $.toString : void 0;
|
|
1371
|
+
function z(f) {
|
|
1372
|
+
var E = -1, x = f ? f.length : 0;
|
|
1373
|
+
for (this.clear(); ++E < x; ) {
|
|
1374
|
+
var G = f[E];
|
|
1375
1375
|
this.set(G[0], G[1]);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
function N() {
|
|
1379
|
-
this.__data__ =
|
|
1379
|
+
this.__data__ = T ? T(null) : {};
|
|
1380
1380
|
}
|
|
1381
|
-
function Z(
|
|
1382
|
-
return this.has(
|
|
1381
|
+
function Z(f) {
|
|
1382
|
+
return this.has(f) && delete this.__data__[f];
|
|
1383
1383
|
}
|
|
1384
|
-
function Q(
|
|
1385
|
-
var
|
|
1386
|
-
if (
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1384
|
+
function Q(f) {
|
|
1385
|
+
var E = this.__data__;
|
|
1386
|
+
if (T) {
|
|
1387
|
+
var x = E[f];
|
|
1388
|
+
return x === r ? void 0 : x;
|
|
1389
1389
|
}
|
|
1390
|
-
return
|
|
1390
|
+
return _.call(E, f) ? E[f] : void 0;
|
|
1391
1391
|
}
|
|
1392
|
-
function ne(
|
|
1393
|
-
var
|
|
1394
|
-
return
|
|
1392
|
+
function ne(f) {
|
|
1393
|
+
var E = this.__data__;
|
|
1394
|
+
return T ? E[f] !== void 0 : _.call(E, f);
|
|
1395
1395
|
}
|
|
1396
|
-
function X(
|
|
1397
|
-
var
|
|
1398
|
-
return
|
|
1396
|
+
function X(f, E) {
|
|
1397
|
+
var x = this.__data__;
|
|
1398
|
+
return x[f] = T && E === void 0 ? r : E, this;
|
|
1399
1399
|
}
|
|
1400
1400
|
z.prototype.clear = N, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
|
|
1401
|
-
function W(
|
|
1402
|
-
var
|
|
1403
|
-
for (this.clear(); ++
|
|
1404
|
-
var G =
|
|
1401
|
+
function W(f) {
|
|
1402
|
+
var E = -1, x = f ? f.length : 0;
|
|
1403
|
+
for (this.clear(); ++E < x; ) {
|
|
1404
|
+
var G = f[E];
|
|
1405
1405
|
this.set(G[0], G[1]);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
function ie() {
|
|
1409
1409
|
this.__data__ = [];
|
|
1410
1410
|
}
|
|
1411
|
-
function re(
|
|
1412
|
-
var
|
|
1413
|
-
if (
|
|
1411
|
+
function re(f) {
|
|
1412
|
+
var E = this.__data__, x = J(E, f);
|
|
1413
|
+
if (x < 0)
|
|
1414
1414
|
return !1;
|
|
1415
|
-
var G =
|
|
1416
|
-
return
|
|
1415
|
+
var G = E.length - 1;
|
|
1416
|
+
return x == G ? E.pop() : L.call(E, x, 1), !0;
|
|
1417
1417
|
}
|
|
1418
|
-
function te(
|
|
1419
|
-
var
|
|
1420
|
-
return
|
|
1418
|
+
function te(f) {
|
|
1419
|
+
var E = this.__data__, x = J(E, f);
|
|
1420
|
+
return x < 0 ? void 0 : E[x][1];
|
|
1421
1421
|
}
|
|
1422
|
-
function ce(
|
|
1423
|
-
return J(this.__data__,
|
|
1422
|
+
function ce(f) {
|
|
1423
|
+
return J(this.__data__, f) > -1;
|
|
1424
1424
|
}
|
|
1425
|
-
function ue(
|
|
1426
|
-
var
|
|
1427
|
-
return G < 0 ?
|
|
1425
|
+
function ue(f, E) {
|
|
1426
|
+
var x = this.__data__, G = J(x, f);
|
|
1427
|
+
return G < 0 ? x.push([f, E]) : x[G][1] = E, this;
|
|
1428
1428
|
}
|
|
1429
1429
|
W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
|
|
1430
|
-
function oe(
|
|
1431
|
-
var
|
|
1432
|
-
for (this.clear(); ++
|
|
1433
|
-
var G =
|
|
1430
|
+
function oe(f) {
|
|
1431
|
+
var E = -1, x = f ? f.length : 0;
|
|
1432
|
+
for (this.clear(); ++E < x; ) {
|
|
1433
|
+
var G = f[E];
|
|
1434
1434
|
this.set(G[0], G[1]);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
@@ -1441,132 +1441,132 @@ function yt() {
|
|
|
1441
1441
|
string: new z()
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
function pe(
|
|
1445
|
-
return me(this,
|
|
1444
|
+
function pe(f) {
|
|
1445
|
+
return me(this, f).delete(f);
|
|
1446
1446
|
}
|
|
1447
|
-
function se(
|
|
1448
|
-
return me(this,
|
|
1447
|
+
function se(f) {
|
|
1448
|
+
return me(this, f).get(f);
|
|
1449
1449
|
}
|
|
1450
|
-
function ye(
|
|
1451
|
-
return me(this,
|
|
1450
|
+
function ye(f) {
|
|
1451
|
+
return me(this, f).has(f);
|
|
1452
1452
|
}
|
|
1453
|
-
function be(
|
|
1454
|
-
return me(this,
|
|
1453
|
+
function be(f, E) {
|
|
1454
|
+
return me(this, f).set(f, E), this;
|
|
1455
1455
|
}
|
|
1456
1456
|
oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = be;
|
|
1457
|
-
function J(
|
|
1458
|
-
for (var
|
|
1459
|
-
if (Se(
|
|
1460
|
-
return
|
|
1457
|
+
function J(f, E) {
|
|
1458
|
+
for (var x = f.length; x--; )
|
|
1459
|
+
if (Se(f[x][0], E))
|
|
1460
|
+
return x;
|
|
1461
1461
|
return -1;
|
|
1462
1462
|
}
|
|
1463
|
-
function ee(
|
|
1464
|
-
|
|
1465
|
-
for (var
|
|
1466
|
-
|
|
1467
|
-
return
|
|
1463
|
+
function ee(f, E) {
|
|
1464
|
+
E = Te(E, f) ? [E] : Ie(E);
|
|
1465
|
+
for (var x = 0, G = E.length; f != null && x < G; )
|
|
1466
|
+
f = f[Ne(E[x++])];
|
|
1467
|
+
return x && x == G ? f : void 0;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1470
|
-
if (!he(
|
|
1469
|
+
function ke(f) {
|
|
1470
|
+
if (!he(f) || _e(f))
|
|
1471
1471
|
return !1;
|
|
1472
|
-
var
|
|
1473
|
-
return
|
|
1472
|
+
var E = Le(f) || y(f) ? V : i;
|
|
1473
|
+
return E.test(le(f));
|
|
1474
1474
|
}
|
|
1475
|
-
function Pe(
|
|
1476
|
-
if (typeof
|
|
1477
|
-
return
|
|
1478
|
-
if (
|
|
1479
|
-
return B ? B.call(
|
|
1480
|
-
var
|
|
1481
|
-
return
|
|
1475
|
+
function Pe(f) {
|
|
1476
|
+
if (typeof f == "string")
|
|
1477
|
+
return f;
|
|
1478
|
+
if (g(f))
|
|
1479
|
+
return B ? B.call(f) : "";
|
|
1480
|
+
var E = f + "";
|
|
1481
|
+
return E == "0" && 1 / f == -1 / 0 ? "-0" : E;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return Oe(
|
|
1483
|
+
function Ie(f) {
|
|
1484
|
+
return Oe(f) ? f : Ce(f);
|
|
1485
1485
|
}
|
|
1486
|
-
function me(
|
|
1487
|
-
var
|
|
1488
|
-
return Re(
|
|
1486
|
+
function me(f, E) {
|
|
1487
|
+
var x = f.__data__;
|
|
1488
|
+
return Re(E) ? x[typeof E == "string" ? "string" : "hash"] : x.map;
|
|
1489
1489
|
}
|
|
1490
|
-
function xe(
|
|
1491
|
-
var
|
|
1492
|
-
return
|
|
1490
|
+
function xe(f, E) {
|
|
1491
|
+
var x = A(f, E);
|
|
1492
|
+
return ke(x) ? x : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
function Te(
|
|
1495
|
-
if (Oe(
|
|
1494
|
+
function Te(f, E) {
|
|
1495
|
+
if (Oe(f))
|
|
1496
1496
|
return !1;
|
|
1497
|
-
var
|
|
1498
|
-
return
|
|
1499
|
-
}
|
|
1500
|
-
function Re(
|
|
1501
|
-
var
|
|
1502
|
-
return
|
|
1503
|
-
}
|
|
1504
|
-
function _e(
|
|
1505
|
-
return !!
|
|
1506
|
-
}
|
|
1507
|
-
var Ce = fe(function(
|
|
1508
|
-
|
|
1509
|
-
var
|
|
1510
|
-
return u.test(
|
|
1511
|
-
|
|
1512
|
-
}),
|
|
1497
|
+
var x = typeof f;
|
|
1498
|
+
return x == "number" || x == "symbol" || x == "boolean" || f == null || g(f) ? !0 : m.test(f) || !o.test(f) || E != null && f in Object(E);
|
|
1499
|
+
}
|
|
1500
|
+
function Re(f) {
|
|
1501
|
+
var E = typeof f;
|
|
1502
|
+
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? f !== "__proto__" : f === null;
|
|
1503
|
+
}
|
|
1504
|
+
function _e(f) {
|
|
1505
|
+
return !!P && P in f;
|
|
1506
|
+
}
|
|
1507
|
+
var Ce = fe(function(f) {
|
|
1508
|
+
f = v(f);
|
|
1509
|
+
var E = [];
|
|
1510
|
+
return u.test(f) && E.push(""), f.replace(d, function(x, G, ae, K) {
|
|
1511
|
+
E.push(ae ? K.replace(w, "$1") : G || x);
|
|
1512
|
+
}), E;
|
|
1513
1513
|
});
|
|
1514
|
-
function Ne(
|
|
1515
|
-
if (typeof
|
|
1516
|
-
return
|
|
1517
|
-
var
|
|
1518
|
-
return
|
|
1514
|
+
function Ne(f) {
|
|
1515
|
+
if (typeof f == "string" || g(f))
|
|
1516
|
+
return f;
|
|
1517
|
+
var E = f + "";
|
|
1518
|
+
return E == "0" && 1 / f == -1 / 0 ? "-0" : E;
|
|
1519
1519
|
}
|
|
1520
|
-
function le(
|
|
1521
|
-
if (
|
|
1520
|
+
function le(f) {
|
|
1521
|
+
if (f != null) {
|
|
1522
1522
|
try {
|
|
1523
|
-
return
|
|
1523
|
+
return I.call(f);
|
|
1524
1524
|
} catch {
|
|
1525
1525
|
}
|
|
1526
1526
|
try {
|
|
1527
|
-
return
|
|
1527
|
+
return f + "";
|
|
1528
1528
|
} catch {
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
return "";
|
|
1532
1532
|
}
|
|
1533
|
-
function fe(
|
|
1534
|
-
if (typeof
|
|
1533
|
+
function fe(f, E) {
|
|
1534
|
+
if (typeof f != "function" || E && typeof E != "function")
|
|
1535
1535
|
throw new TypeError(e);
|
|
1536
|
-
var
|
|
1537
|
-
var G = arguments, ae =
|
|
1536
|
+
var x = function() {
|
|
1537
|
+
var G = arguments, ae = E ? E.apply(this, G) : G[0], K = x.cache;
|
|
1538
1538
|
if (K.has(ae))
|
|
1539
1539
|
return K.get(ae);
|
|
1540
|
-
var O =
|
|
1541
|
-
return
|
|
1540
|
+
var O = f.apply(this, G);
|
|
1541
|
+
return x.cache = K.set(ae, O), O;
|
|
1542
1542
|
};
|
|
1543
|
-
return
|
|
1543
|
+
return x.cache = new (fe.Cache || oe)(), x;
|
|
1544
1544
|
}
|
|
1545
1545
|
fe.Cache = oe;
|
|
1546
|
-
function Se(
|
|
1547
|
-
return
|
|
1546
|
+
function Se(f, E) {
|
|
1547
|
+
return f === E || f !== f && E !== E;
|
|
1548
1548
|
}
|
|
1549
1549
|
var Oe = Array.isArray;
|
|
1550
|
-
function Le(
|
|
1551
|
-
var
|
|
1552
|
-
return
|
|
1550
|
+
function Le(f) {
|
|
1551
|
+
var E = he(f) ? k.call(f) : "";
|
|
1552
|
+
return E == a || E == t;
|
|
1553
1553
|
}
|
|
1554
|
-
function he(
|
|
1555
|
-
var
|
|
1556
|
-
return !!
|
|
1554
|
+
function he(f) {
|
|
1555
|
+
var E = typeof f;
|
|
1556
|
+
return !!f && (E == "object" || E == "function");
|
|
1557
1557
|
}
|
|
1558
|
-
function ge(
|
|
1559
|
-
return !!
|
|
1558
|
+
function ge(f) {
|
|
1559
|
+
return !!f && typeof f == "object";
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return typeof
|
|
1561
|
+
function g(f) {
|
|
1562
|
+
return typeof f == "symbol" || ge(f) && k.call(f) == n;
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1565
|
-
return
|
|
1564
|
+
function v(f) {
|
|
1565
|
+
return f == null ? "" : Pe(f);
|
|
1566
1566
|
}
|
|
1567
|
-
function D(
|
|
1568
|
-
var G =
|
|
1569
|
-
return G === void 0 ?
|
|
1567
|
+
function D(f, E, x) {
|
|
1568
|
+
var G = f == null ? void 0 : ee(f, E);
|
|
1569
|
+
return G === void 0 ? x : G;
|
|
1570
1570
|
}
|
|
1571
1571
|
return fr = D, fr;
|
|
1572
1572
|
}
|
|
@@ -1576,14 +1576,14 @@ 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", n = "\\u0300-\\u036f\\ufe20-\\ufe23",
|
|
1580
|
-
R + "?" +
|
|
1581
|
-
B + "+" + N + "(?=" + [
|
|
1582
|
-
R + "?" +
|
|
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", n = "\\u0300-\\u036f\\ufe20-\\ufe23", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", u = "a-z\\xdf-\\xf6\\xf8-\\xff", d = "\\xac\\xb1\\xd7\\xf7", h = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", i = " \\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", c = "A-Z\\xc0-\\xd6\\xd8-\\xde", s = "\\ufe0e\\ufe0f", p = d + h + w + i, A = "['’]", y = "[" + t + "]", l = "[" + p + "]", S = "[" + n + o + "]", b = "\\d+", C = "[" + m + "]", P = "[" + u + "]", I = "[^" + t + p + b + m + u + c + "]", _ = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + S + "|" + _ + ")", V = "[^" + t + "]", F = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", R = "[" + c + "]", T = "\\u200d", $ = "(?:" + P + "|" + I + ")", B = "(?:" + R + "|" + I + ")", z = "(?:" + A + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + A + "(?:D|LL|M|RE|S|T|VE))?", Z = k + "?", Q = "[" + s + "]?", ne = "(?:" + T + "(?:" + [V, F, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [C, F, L].join("|") + ")" + X, ie = "(?:" + [V + S + "?", S, F, L, y].join("|") + ")", re = RegExp(A, "g"), te = RegExp(S, "g"), ce = RegExp(_ + "(?=" + _ + ")|" + ie + X, "g"), ue = RegExp([
|
|
1580
|
+
R + "?" + P + "+" + z + "(?=" + [l, R, "$"].join("|") + ")",
|
|
1581
|
+
B + "+" + N + "(?=" + [l, R + $, "$"].join("|") + ")",
|
|
1582
|
+
R + "?" + $ + "+" + z,
|
|
1583
1583
|
R + "+" + N,
|
|
1584
1584
|
b,
|
|
1585
1585
|
W
|
|
1586
|
-
].join("|"), "g"), oe = RegExp("[" +
|
|
1586
|
+
].join("|"), "g"), oe = RegExp("[" + T + t + n + o + s + "]"), 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.
|
|
1588
1588
|
À: "A",
|
|
1589
1589
|
Á: "A",
|
|
@@ -1777,23 +1777,23 @@ function gt() {
|
|
|
1777
1777
|
ʼn: "'n",
|
|
1778
1778
|
ſ: "ss"
|
|
1779
1779
|
}, se = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, ye = typeof self == "object" && self && self.Object === Object && self, be = se || ye || Function("return this")();
|
|
1780
|
-
function J(O,
|
|
1780
|
+
function J(O, U, j, H) {
|
|
1781
1781
|
for (var Y = -1, we = O ? O.length : 0; ++Y < we; )
|
|
1782
|
-
j =
|
|
1782
|
+
j = U(j, O[Y], Y, O);
|
|
1783
1783
|
return j;
|
|
1784
1784
|
}
|
|
1785
1785
|
function ee(O) {
|
|
1786
1786
|
return O.split("");
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function ke(O) {
|
|
1789
1789
|
return O.match(r) || [];
|
|
1790
1790
|
}
|
|
1791
1791
|
function Pe(O) {
|
|
1792
|
-
return function(
|
|
1793
|
-
return O?.[
|
|
1792
|
+
return function(U) {
|
|
1793
|
+
return O?.[U];
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
var
|
|
1796
|
+
var Ie = Pe(pe);
|
|
1797
1797
|
function me(O) {
|
|
1798
1798
|
return oe.test(O);
|
|
1799
1799
|
}
|
|
@@ -1810,11 +1810,11 @@ function gt() {
|
|
|
1810
1810
|
return O.match(ue) || [];
|
|
1811
1811
|
}
|
|
1812
1812
|
var Ce = Object.prototype, Ne = Ce.toString, le = be.Symbol, fe = le ? le.prototype : void 0, Se = fe ? fe.toString : void 0;
|
|
1813
|
-
function Oe(O,
|
|
1813
|
+
function Oe(O, U, j) {
|
|
1814
1814
|
var H = -1, Y = O.length;
|
|
1815
|
-
|
|
1815
|
+
U < 0 && (U = -U > Y ? 0 : Y + U), j = j > Y ? Y : j, j < 0 && (j += Y), Y = U > j ? 0 : j - U >>> 0, U >>>= 0;
|
|
1816
1816
|
for (var we = Array(Y); ++H < Y; )
|
|
1817
|
-
we[H] = O[H +
|
|
1817
|
+
we[H] = O[H + U];
|
|
1818
1818
|
return we;
|
|
1819
1819
|
}
|
|
1820
1820
|
function Le(O) {
|
|
@@ -1822,48 +1822,48 @@ function gt() {
|
|
|
1822
1822
|
return O;
|
|
1823
1823
|
if (D(O))
|
|
1824
1824
|
return Se ? Se.call(O) : "";
|
|
1825
|
-
var
|
|
1826
|
-
return
|
|
1825
|
+
var U = O + "";
|
|
1826
|
+
return U == "0" && 1 / O == -1 / 0 ? "-0" : U;
|
|
1827
1827
|
}
|
|
1828
|
-
function he(O,
|
|
1828
|
+
function he(O, U, j) {
|
|
1829
1829
|
var H = O.length;
|
|
1830
|
-
return j = j === void 0 ? H : j,
|
|
1830
|
+
return j = j === void 0 ? H : j, !U && j >= H ? O : Oe(O, U, j);
|
|
1831
1831
|
}
|
|
1832
1832
|
function ge(O) {
|
|
1833
|
-
return function(
|
|
1834
|
-
|
|
1835
|
-
var j = me(
|
|
1833
|
+
return function(U) {
|
|
1834
|
+
U = f(U);
|
|
1835
|
+
var j = me(U) ? Te(U) : void 0, H = j ? j[0] : U.charAt(0), Y = j ? he(j, 1).join("") : U.slice(1);
|
|
1836
1836
|
return H[O]() + Y;
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return function(
|
|
1841
|
-
return J(K(G(
|
|
1839
|
+
function g(O) {
|
|
1840
|
+
return function(U) {
|
|
1841
|
+
return J(K(G(U).replace(re, "")), O, "");
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function v(O) {
|
|
1845
1845
|
return !!O && typeof O == "object";
|
|
1846
1846
|
}
|
|
1847
1847
|
function D(O) {
|
|
1848
|
-
return typeof O == "symbol" ||
|
|
1848
|
+
return typeof O == "symbol" || v(O) && Ne.call(O) == e;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function f(O) {
|
|
1851
1851
|
return O == null ? "" : Le(O);
|
|
1852
1852
|
}
|
|
1853
|
-
var
|
|
1854
|
-
return
|
|
1853
|
+
var E = g(function(O, U, j) {
|
|
1854
|
+
return U = U.toLowerCase(), O + (j ? x(U) : U);
|
|
1855
1855
|
});
|
|
1856
|
-
function
|
|
1857
|
-
return ae(
|
|
1856
|
+
function x(O) {
|
|
1857
|
+
return ae(f(O).toLowerCase());
|
|
1858
1858
|
}
|
|
1859
1859
|
function G(O) {
|
|
1860
|
-
return O =
|
|
1860
|
+
return O = f(O), O && O.replace(a, Ie).replace(te, "");
|
|
1861
1861
|
}
|
|
1862
1862
|
var ae = ge("toUpperCase");
|
|
1863
|
-
function K(O,
|
|
1864
|
-
return O =
|
|
1863
|
+
function K(O, U, j) {
|
|
1864
|
+
return O = f(O), U = U, U === void 0 ? xe(O) ? _e(O) : ke(O) : O.match(U) || [];
|
|
1865
1865
|
}
|
|
1866
|
-
return dr =
|
|
1866
|
+
return dr = E, dr;
|
|
1867
1867
|
}
|
|
1868
1868
|
var vt = gt();
|
|
1869
1869
|
const At = /* @__PURE__ */ mr(vt);
|
|
@@ -1873,12 +1873,12 @@ function bt() {
|
|
|
1873
1873
|
jr = 1, Object.defineProperty(ve, "__esModule", {
|
|
1874
1874
|
value: !0
|
|
1875
1875
|
});
|
|
1876
|
-
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
1877
|
-
return typeof
|
|
1878
|
-
} : function(
|
|
1879
|
-
return
|
|
1880
|
-
}, r = typeof window < "u" && typeof window.document < "u", a = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", n = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")),
|
|
1881
|
-
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno =
|
|
1876
|
+
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
|
|
1877
|
+
return typeof m;
|
|
1878
|
+
} : function(m) {
|
|
1879
|
+
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
|
|
1880
|
+
}, r = typeof window < "u" && typeof window.document < "u", a = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", n = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), o = typeof Deno < "u" && typeof Deno.core < "u";
|
|
1881
|
+
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = o, ve;
|
|
1882
1882
|
}
|
|
1883
1883
|
bt();
|
|
1884
1884
|
const M = {}, De = {};
|
|
@@ -1889,10 +1889,10 @@ M.loadExternalScript = function(e) {
|
|
|
1889
1889
|
function a(t, n) {
|
|
1890
1890
|
if (!document)
|
|
1891
1891
|
return delete De[e], n("document is undefined");
|
|
1892
|
-
var
|
|
1893
|
-
|
|
1892
|
+
var o = document.createElement("script");
|
|
1893
|
+
o.type = "text/javascript", o.async = !0, o.onload = function() {
|
|
1894
1894
|
return console.log("Loaded external script", e), t(e);
|
|
1895
|
-
},
|
|
1895
|
+
}, o.src = e, document.head.appendChild(o);
|
|
1896
1896
|
}
|
|
1897
1897
|
return r;
|
|
1898
1898
|
};
|
|
@@ -1905,10 +1905,10 @@ M.loadExternalStyle = function(e) {
|
|
|
1905
1905
|
if (Vr[e])
|
|
1906
1906
|
return t(e);
|
|
1907
1907
|
Vr[e] = !0;
|
|
1908
|
-
var
|
|
1909
|
-
|
|
1908
|
+
var o = document.createElement("link");
|
|
1909
|
+
o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", e), o.onload = function() {
|
|
1910
1910
|
return console.log("Loaded external stylesheet", e), t(e);
|
|
1911
|
-
}, document.head.appendChild(
|
|
1911
|
+
}, document.head.appendChild(o);
|
|
1912
1912
|
}
|
|
1913
1913
|
return r;
|
|
1914
1914
|
};
|
|
@@ -1951,7 +1951,7 @@ M.parseURL = function(e) {
|
|
|
1951
1951
|
var a = M.parseEmail(e);
|
|
1952
1952
|
if (a && a === e)
|
|
1953
1953
|
return `mailto:${a}`;
|
|
1954
|
-
const t = (
|
|
1954
|
+
const t = (o) => /^https?:\/\//i.test(o) ? o : `http://${o}`;
|
|
1955
1955
|
e = t(e), e = e.replace(/\s/g, "");
|
|
1956
1956
|
var n = RegExp(
|
|
1957
1957
|
"(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+@]*)*(\\?[;&a-z\\d%_.~+=-@]*)?(\\#[-a-z\\d_@]*)?$",
|
|
@@ -1976,9 +1976,9 @@ M.isValidEmailAddress = function(e) {
|
|
|
1976
1976
|
var t = a[0], n = a[1];
|
|
1977
1977
|
if (t.length > 64) return !1;
|
|
1978
1978
|
if (n.length > 255) return !1;
|
|
1979
|
-
var
|
|
1980
|
-
return !(
|
|
1981
|
-
return
|
|
1979
|
+
var o = n.split(".");
|
|
1980
|
+
return !(o.some(function(m) {
|
|
1981
|
+
return m.length > 63;
|
|
1982
1982
|
}) || !r.test(e));
|
|
1983
1983
|
};
|
|
1984
1984
|
M.parseEmail = function(e) {
|
|
@@ -2012,19 +2012,19 @@ M.cleanValue = function(e, r, a) {
|
|
|
2012
2012
|
case "number":
|
|
2013
2013
|
case "decimal":
|
|
2014
2014
|
case "float":
|
|
2015
|
-
var
|
|
2016
|
-
return String(
|
|
2015
|
+
var o = M.parseNumber(e);
|
|
2016
|
+
return String(o) == String(Number(e)) ? o : void 0;
|
|
2017
2017
|
case "integer":
|
|
2018
|
-
var
|
|
2019
|
-
return String(
|
|
2018
|
+
var o = M.parseInt(e);
|
|
2019
|
+
return String(o) == String(parseInt(e)) ? o : void 0;
|
|
2020
2020
|
case "group":
|
|
2021
2021
|
return e;
|
|
2022
2022
|
case "object":
|
|
2023
2023
|
return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
|
|
2024
2024
|
case "string":
|
|
2025
2025
|
if (M.exists(e)) {
|
|
2026
|
-
var
|
|
2027
|
-
return
|
|
2026
|
+
var m = String(e);
|
|
2027
|
+
return m == "[object Object]" ? void 0 : m;
|
|
2028
2028
|
} else
|
|
2029
2029
|
return;
|
|
2030
2030
|
// if(!data) {
|
|
@@ -2043,56 +2043,56 @@ M.cleanValue = function(e, r, a) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
};
|
|
2045
2045
|
M.isValidValue = function(e, r, a) {
|
|
2046
|
-
var t = M.exists(e), n = typeof e == "number",
|
|
2046
|
+
var t = M.exists(e), n = typeof e == "number", o = !1;
|
|
2047
2047
|
if (!t)
|
|
2048
2048
|
return !1;
|
|
2049
2049
|
switch (r) {
|
|
2050
2050
|
case "url":
|
|
2051
|
-
a ?
|
|
2051
|
+
a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === M.parseURL(e);
|
|
2052
2052
|
break;
|
|
2053
2053
|
case "key":
|
|
2054
|
-
|
|
2054
|
+
o = String(e) === M.machineName(e);
|
|
2055
2055
|
break;
|
|
2056
2056
|
case "date":
|
|
2057
2057
|
if (a && (typeof e != "object" || !(e instanceof Date)))
|
|
2058
2058
|
return !1;
|
|
2059
|
-
var
|
|
2060
|
-
return
|
|
2059
|
+
var m = M.parseDate(e);
|
|
2060
|
+
return m !== void 0;
|
|
2061
2061
|
case "email":
|
|
2062
|
-
a ?
|
|
2062
|
+
a ? o = e === M.parseEmail(e) : o = String(e).toLowerCase() === M.parseEmail(e);
|
|
2063
2063
|
break;
|
|
2064
2064
|
case "number":
|
|
2065
2065
|
case "decimal":
|
|
2066
2066
|
case "float":
|
|
2067
|
-
a ?
|
|
2067
|
+
a ? o = n && Number(e) === M.parseNumber(e) : o = Number(e) === M.parseNumber(e);
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "integer":
|
|
2070
|
-
a ?
|
|
2070
|
+
a ? o = n && Number(e) === M.parseInt(e) : o = Number(e) === M.parseInt(e);
|
|
2071
2071
|
break;
|
|
2072
2072
|
case "boolean":
|
|
2073
|
-
var
|
|
2074
|
-
a ? (e === !0 || e === !1) && (
|
|
2073
|
+
var m = M.parseBoolean(e);
|
|
2074
|
+
a ? (e === !0 || e === !1) && (o = e === m) : o = m === !0 || m === !1;
|
|
2075
2075
|
break;
|
|
2076
2076
|
case "reference":
|
|
2077
|
-
a ?
|
|
2077
|
+
a ? o = String(e) === M.id(e) : o = !!M.id(e);
|
|
2078
2078
|
break;
|
|
2079
2079
|
case "string":
|
|
2080
2080
|
var u = String(e);
|
|
2081
2081
|
if (a && typeof e != "string" || u == "[object Object]")
|
|
2082
2082
|
return !1;
|
|
2083
|
-
|
|
2083
|
+
o = !0;
|
|
2084
2084
|
break;
|
|
2085
2085
|
// case 'group':
|
|
2086
2086
|
// isValidEntry = _isObject(value);
|
|
2087
2087
|
// break;
|
|
2088
2088
|
case "object":
|
|
2089
|
-
|
|
2089
|
+
o = typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2090
2090
|
break;
|
|
2091
2091
|
case "array":
|
|
2092
|
-
|
|
2092
|
+
o = Array.isArray(e);
|
|
2093
2093
|
break;
|
|
2094
2094
|
}
|
|
2095
|
-
return
|
|
2095
|
+
return o;
|
|
2096
2096
|
};
|
|
2097
2097
|
M.parseBoolean = function(e) {
|
|
2098
2098
|
switch (String(e).toLowerCase()) {
|
|
@@ -2125,7 +2125,7 @@ M.getAllFields = function(e) {
|
|
|
2125
2125
|
var t = [...e.fields], n = e.definedFields || [];
|
|
2126
2126
|
if (n.length)
|
|
2127
2127
|
if (a) {
|
|
2128
|
-
var
|
|
2128
|
+
var o = {
|
|
2129
2129
|
title: "Form Data",
|
|
2130
2130
|
minimum: 1,
|
|
2131
2131
|
maximum: 1,
|
|
@@ -2134,21 +2134,21 @@ M.getAllFields = function(e) {
|
|
|
2134
2134
|
type: "group",
|
|
2135
2135
|
fields: n
|
|
2136
2136
|
};
|
|
2137
|
-
t.push(
|
|
2138
|
-
var
|
|
2137
|
+
t.push(o);
|
|
2138
|
+
var m = {
|
|
2139
2139
|
title: "Data",
|
|
2140
2140
|
minimum: 1,
|
|
2141
2141
|
maximum: 1,
|
|
2142
2142
|
key: "data",
|
|
2143
2143
|
asObject: !0,
|
|
2144
2144
|
type: "group",
|
|
2145
|
-
fields: n.map(function(
|
|
2146
|
-
return
|
|
2145
|
+
fields: n.map(function(h) {
|
|
2146
|
+
return h.type === "reference" && (h = JSON.parse(JSON.stringify(h)), delete h.fields), h;
|
|
2147
2147
|
})
|
|
2148
2148
|
};
|
|
2149
|
-
t.push(
|
|
2149
|
+
t.push(m);
|
|
2150
2150
|
} else {
|
|
2151
|
-
var
|
|
2151
|
+
var m = {
|
|
2152
2152
|
title: `${e.title}`,
|
|
2153
2153
|
minimum: 1,
|
|
2154
2154
|
maximum: 1,
|
|
@@ -2157,7 +2157,7 @@ M.getAllFields = function(e) {
|
|
|
2157
2157
|
type: "group",
|
|
2158
2158
|
fields: n
|
|
2159
2159
|
};
|
|
2160
|
-
t.push(
|
|
2160
|
+
t.push(m);
|
|
2161
2161
|
}
|
|
2162
2162
|
r && (t.push({
|
|
2163
2163
|
title: "Age",
|
|
@@ -2172,33 +2172,33 @@ M.getAllFields = function(e) {
|
|
|
2172
2172
|
maximum: 1,
|
|
2173
2173
|
type: "date"
|
|
2174
2174
|
}));
|
|
2175
|
-
var u = M.mapFields(t).filter(function(
|
|
2176
|
-
var
|
|
2177
|
-
return !
|
|
2178
|
-
}).map(function(
|
|
2179
|
-
return
|
|
2180
|
-
}).sort(function(
|
|
2181
|
-
return
|
|
2175
|
+
var u = M.mapFields(t).filter(function(d) {
|
|
2176
|
+
var h = d.type == "group" && d.asObject && d.minimum == 1 && d.maximum == 1;
|
|
2177
|
+
return !h;
|
|
2178
|
+
}).map(function(d) {
|
|
2179
|
+
return d.title = d.filterTitle || d.titles.filter(Boolean).join(" › "), d;
|
|
2180
|
+
}).sort(function(d, h) {
|
|
2181
|
+
return d.title < h.title ? -1 : 1;
|
|
2182
2182
|
});
|
|
2183
2183
|
return u;
|
|
2184
2184
|
};
|
|
2185
2185
|
M.mapFields = function(e, r) {
|
|
2186
2186
|
r || (r = {});
|
|
2187
|
-
var a = [], t = [], n = [],
|
|
2188
|
-
e.forEach(
|
|
2189
|
-
function
|
|
2190
|
-
var
|
|
2191
|
-
|
|
2192
|
-
var
|
|
2193
|
-
if (
|
|
2194
|
-
if (
|
|
2195
|
-
|
|
2187
|
+
var a = [], t = [], n = [], o = 1, m = r.depth, u = r.arrayDelimeter || "[]";
|
|
2188
|
+
e.forEach(d);
|
|
2189
|
+
function d(h, w) {
|
|
2190
|
+
var i = h.key, c = h.type == "group", s = h.minimum === h.maximum && h.minimum === 1, p = h.asObject, A = c && !p, y = r.original ? h : M.clone(h);
|
|
2191
|
+
y.trail = t.slice(), y.trail.push(i), y.path = y.trail.join("."), y.titles = n.slice(), y.titles.push(h.filterTitle || h.title || ""), (!A || r.includeLayout) && a.push(y);
|
|
2192
|
+
var S = m && o >= m;
|
|
2193
|
+
if (h.fields && h.fields.length)
|
|
2194
|
+
if (A)
|
|
2195
|
+
h.fields.forEach(d);
|
|
2196
2196
|
else {
|
|
2197
|
-
if (
|
|
2197
|
+
if (S)
|
|
2198
2198
|
return;
|
|
2199
|
-
|
|
2200
|
-
let b =
|
|
2201
|
-
r.includeArrayDelimeter && (
|
|
2199
|
+
o++;
|
|
2200
|
+
let b = i;
|
|
2201
|
+
r.includeArrayDelimeter && (s || (b = `${i}${u}`)), t.push(b), n.push(h.filterTitle || h.title), h.fields.forEach(d), o--, t.pop(), n.pop();
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
return a;
|
|
@@ -2320,9 +2320,9 @@ M.getAvailableCurrencies = function(e) {
|
|
|
2320
2320
|
var a = r.findIndex(function(n) {
|
|
2321
2321
|
return n.countryCode[e];
|
|
2322
2322
|
});
|
|
2323
|
-
const t = (n,
|
|
2323
|
+
const t = (n, o, m) => {
|
|
2324
2324
|
const u = [...n];
|
|
2325
|
-
return u.splice(
|
|
2325
|
+
return u.splice(m, 0, ...u.splice(o, 1)), u;
|
|
2326
2326
|
};
|
|
2327
2327
|
a != -1 && (r = t(r, a, 0));
|
|
2328
2328
|
}
|
|
@@ -2334,38 +2334,38 @@ M.hash = function(e, r) {
|
|
|
2334
2334
|
return a[n] = t, a;
|
|
2335
2335
|
}, {});
|
|
2336
2336
|
};
|
|
2337
|
-
M.extractFromArray = function(e, r, a, t, n,
|
|
2338
|
-
|
|
2339
|
-
var u = e.reduce(function(
|
|
2340
|
-
var
|
|
2341
|
-
return
|
|
2337
|
+
M.extractFromArray = function(e, r, a, t, n, o, m) {
|
|
2338
|
+
m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), o && (m.excludeNull = !0);
|
|
2339
|
+
var u = e.reduce(function(d, h) {
|
|
2340
|
+
var w = Ue(h, r), i = !w && w !== !1 && w !== 0;
|
|
2341
|
+
return m.excludeNull && i || d.push(w), d;
|
|
2342
2342
|
}, []);
|
|
2343
|
-
return
|
|
2344
|
-
return
|
|
2343
|
+
return m.flatten && (u = u.flat()), m.unique && (u = [...new Set(u)]), m.sum && (u = u.reduce(function(d, h) {
|
|
2344
|
+
return d + h;
|
|
2345
2345
|
}, 0)), u;
|
|
2346
2346
|
};
|
|
2347
2347
|
M.matchInArray = function(e, r, a, t) {
|
|
2348
|
-
var n = e.filter(function(
|
|
2349
|
-
var
|
|
2348
|
+
var n = e.filter(function(o) {
|
|
2349
|
+
var m = Ue(o, r), u;
|
|
2350
2350
|
switch (t) {
|
|
2351
2351
|
case "in":
|
|
2352
|
-
u =
|
|
2352
|
+
u = m.includes(a);
|
|
2353
2353
|
break;
|
|
2354
2354
|
case ">=":
|
|
2355
|
-
u =
|
|
2355
|
+
u = m >= a;
|
|
2356
2356
|
break;
|
|
2357
2357
|
case "<=":
|
|
2358
|
-
u =
|
|
2358
|
+
u = m <= a;
|
|
2359
2359
|
break;
|
|
2360
2360
|
case "<":
|
|
2361
|
-
u =
|
|
2361
|
+
u = m < a;
|
|
2362
2362
|
break;
|
|
2363
2363
|
case ">":
|
|
2364
|
-
u =
|
|
2364
|
+
u = m > a;
|
|
2365
2365
|
break;
|
|
2366
2366
|
case "==":
|
|
2367
2367
|
default:
|
|
2368
|
-
a === void 0 ? u =
|
|
2368
|
+
a === void 0 ? u = m : u = m == a;
|
|
2369
2369
|
break;
|
|
2370
2370
|
}
|
|
2371
2371
|
return u;
|
|
@@ -2569,8 +2569,8 @@ class St extends Ve {
|
|
|
2569
2569
|
_setCookie(r, a, t = {}) {
|
|
2570
2570
|
if (typeof document > "u") return;
|
|
2571
2571
|
const n = { ...this.options, ...t };
|
|
2572
|
-
let
|
|
2573
|
-
n.domain && (
|
|
2572
|
+
let o = `${r}=${a}`;
|
|
2573
|
+
n.domain && (o += `; Domain=${n.domain}`), n.secure && (o += "; Secure"), n.sameSite && (o += `; SameSite=${n.sameSite}`), n.maxAge && (o += `; Max-Age=${n.maxAge}`), document.cookie = o;
|
|
2574
2574
|
}
|
|
2575
2575
|
/**
|
|
2576
2576
|
* Delete a cookie
|
|
@@ -2652,200 +2652,200 @@ var Et = function(e) {
|
|
|
2652
2652
|
});
|
|
2653
2653
|
const n = new je();
|
|
2654
2654
|
n.bootstrap(t);
|
|
2655
|
-
function
|
|
2656
|
-
var
|
|
2657
|
-
t.onChange && t.onChange(
|
|
2658
|
-
}
|
|
2659
|
-
t.set = function(u,
|
|
2660
|
-
const
|
|
2661
|
-
if (JSON.stringify(
|
|
2662
|
-
return
|
|
2655
|
+
function o(u) {
|
|
2656
|
+
var d = r.getUser();
|
|
2657
|
+
t.onChange && t.onChange(d), n.dispatch("change", d, u);
|
|
2658
|
+
}
|
|
2659
|
+
t.set = function(u, d, h) {
|
|
2660
|
+
const w = r.getUser();
|
|
2661
|
+
if (JSON.stringify(w) != JSON.stringify(u) && (r.setUser(u), !h))
|
|
2662
|
+
return o(d);
|
|
2663
2663
|
}, t.logout = function() {
|
|
2664
|
-
return r.clearUser(), e.cache.reset(),
|
|
2665
|
-
}, t.changeOrganisation = function(u,
|
|
2666
|
-
u = e.utils.id(u),
|
|
2667
|
-
var
|
|
2668
|
-
return
|
|
2664
|
+
return r.clearUser(), e.cache.reset(), o();
|
|
2665
|
+
}, t.changeOrganisation = function(u, d) {
|
|
2666
|
+
u = e.utils.id(u), d || (d = {});
|
|
2667
|
+
var h = !0;
|
|
2668
|
+
return d.disableAutoAuthentication && (h = !1), new Promise(function(w, i) {
|
|
2669
2669
|
e.api.post(`/user/switch/${u}`).then(function(c) {
|
|
2670
|
-
|
|
2671
|
-
}).catch(
|
|
2670
|
+
h && (e.cache.reset(), t.set(c.data)), w(c.data);
|
|
2671
|
+
}).catch(i);
|
|
2672
2672
|
});
|
|
2673
|
-
}, t.impersonate = function(u,
|
|
2674
|
-
u = e.utils.id(u),
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2677
|
-
var
|
|
2678
|
-
return
|
|
2679
|
-
|
|
2680
|
-
}, function(
|
|
2681
|
-
}),
|
|
2682
|
-
}, t.login = async function(u,
|
|
2683
|
-
|
|
2684
|
-
var
|
|
2685
|
-
|
|
2686
|
-
var
|
|
2687
|
-
function
|
|
2673
|
+
}, t.impersonate = function(u, d) {
|
|
2674
|
+
u = e.utils.id(u), d || (d = {});
|
|
2675
|
+
var h = !0;
|
|
2676
|
+
d.disableAutoAuthentication && (h = !1);
|
|
2677
|
+
var w = e.api.post(`/user/impersonate/${u}`);
|
|
2678
|
+
return w.then(function(i) {
|
|
2679
|
+
h && (e.cache.reset(), t.set(i.data));
|
|
2680
|
+
}, function(i) {
|
|
2681
|
+
}), w;
|
|
2682
|
+
}, t.login = async function(u, d) {
|
|
2683
|
+
d || (d = {});
|
|
2684
|
+
var h = !0;
|
|
2685
|
+
d.disableAutoAuthentication && (h = !1);
|
|
2686
|
+
var w = new Promise(i);
|
|
2687
|
+
function i(c, s) {
|
|
2688
2688
|
if (!u)
|
|
2689
|
-
return
|
|
2689
|
+
return s({
|
|
2690
2690
|
message: "Missing credentials!"
|
|
2691
2691
|
});
|
|
2692
2692
|
if (!u.email || !u.email.length)
|
|
2693
|
-
return
|
|
2693
|
+
return s({
|
|
2694
2694
|
message: "Username was not provided"
|
|
2695
2695
|
});
|
|
2696
2696
|
if (!u.password || !u.password.length)
|
|
2697
|
-
return
|
|
2697
|
+
return s({
|
|
2698
2698
|
message: "Password was not provided"
|
|
2699
2699
|
});
|
|
2700
|
-
var
|
|
2700
|
+
var p = {
|
|
2701
2701
|
bypassInterceptor: !0
|
|
2702
2702
|
};
|
|
2703
|
-
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0,
|
|
2704
|
-
var
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
},
|
|
2703
|
+
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, p.withCredentials = !0);
|
|
2704
|
+
var y = `${e.apiURL}/user/login`;
|
|
2705
|
+
d.url && (y = d.url), e.api.post(y, u, p).then(function(l) {
|
|
2706
|
+
h && t.set(l.data), c(l);
|
|
2707
|
+
}, s);
|
|
2708
2708
|
}
|
|
2709
|
-
return
|
|
2710
|
-
}, t.signup = async function(u,
|
|
2711
|
-
|
|
2712
|
-
var
|
|
2713
|
-
|
|
2714
|
-
var
|
|
2715
|
-
function
|
|
2709
|
+
return w;
|
|
2710
|
+
}, t.signup = async function(u, d) {
|
|
2711
|
+
d || (d = {});
|
|
2712
|
+
var h = !0;
|
|
2713
|
+
d.disableAutoAuthentication && (h = !1);
|
|
2714
|
+
var w = new Promise(i);
|
|
2715
|
+
function i(c, s) {
|
|
2716
2716
|
if (!u)
|
|
2717
|
-
return
|
|
2717
|
+
return s({
|
|
2718
2718
|
message: "No details provided"
|
|
2719
2719
|
});
|
|
2720
2720
|
if (!u.firstName || !u.firstName.length)
|
|
2721
|
-
return
|
|
2721
|
+
return s({
|
|
2722
2722
|
message: "First Name was not provided"
|
|
2723
2723
|
});
|
|
2724
2724
|
if (!u.lastName || !u.lastName.length)
|
|
2725
|
-
return
|
|
2725
|
+
return s({
|
|
2726
2726
|
message: "Last Name was not provided"
|
|
2727
2727
|
});
|
|
2728
2728
|
if (!u.email || !u.email.length)
|
|
2729
|
-
return
|
|
2729
|
+
return s({
|
|
2730
2730
|
message: "Email/Username was not provided"
|
|
2731
2731
|
});
|
|
2732
2732
|
if (!u.password || !u.password.length)
|
|
2733
|
-
return
|
|
2733
|
+
return s({
|
|
2734
2734
|
message: "Password was not provided"
|
|
2735
2735
|
});
|
|
2736
2736
|
if (!u.confirmPassword || !u.confirmPassword.length)
|
|
2737
|
-
return
|
|
2737
|
+
return s({
|
|
2738
2738
|
message: "Confirm Password was not provided"
|
|
2739
2739
|
});
|
|
2740
2740
|
if (u.confirmPassword != u.password)
|
|
2741
|
-
return
|
|
2741
|
+
return s({
|
|
2742
2742
|
message: "Your passwords do not match"
|
|
2743
2743
|
});
|
|
2744
|
-
var
|
|
2744
|
+
var p = {
|
|
2745
2745
|
bypassInterceptor: !0
|
|
2746
2746
|
};
|
|
2747
|
-
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0,
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
},
|
|
2747
|
+
r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, p.withCredentials = !0);
|
|
2748
|
+
var y = `${e.apiURL}/user/signup`;
|
|
2749
|
+
d.application && (y = `${e.domain || ""}/qik/application/signup`), d.url && (y = d.url), e.api.post(y, u, p).then(function(l) {
|
|
2750
|
+
h && t.set(l.data), c(l);
|
|
2751
|
+
}, s);
|
|
2752
2752
|
}
|
|
2753
|
-
return
|
|
2754
|
-
}, t.retrieveUserFromResetToken = async function(u,
|
|
2755
|
-
|
|
2756
|
-
var
|
|
2753
|
+
return w;
|
|
2754
|
+
}, t.retrieveUserFromResetToken = async function(u, d) {
|
|
2755
|
+
d || (d = {});
|
|
2756
|
+
var h = {
|
|
2757
2757
|
bypassInterceptor: !0
|
|
2758
2758
|
};
|
|
2759
|
-
return new Promise(function(
|
|
2760
|
-
e.api.get(
|
|
2761
|
-
return
|
|
2762
|
-
},
|
|
2759
|
+
return new Promise(function(w, i) {
|
|
2760
|
+
e.api.get(d.url || `${e.apiURL}/user/reset/${u}`, h).then(function(c) {
|
|
2761
|
+
return w(c.data);
|
|
2762
|
+
}, i);
|
|
2763
2763
|
});
|
|
2764
|
-
}, t.updateUserWithToken = async function(u,
|
|
2765
|
-
|
|
2766
|
-
var
|
|
2767
|
-
return
|
|
2768
|
-
var
|
|
2764
|
+
}, t.updateUserWithToken = async function(u, d, h) {
|
|
2765
|
+
h || (h = {});
|
|
2766
|
+
var w = !0;
|
|
2767
|
+
return h.disableAutoAuthentication && (w = !1), new Promise(function(i, c) {
|
|
2768
|
+
var s = {
|
|
2769
2769
|
bypassInterceptor: !0
|
|
2770
2770
|
};
|
|
2771
|
-
e.api.post(
|
|
2772
|
-
return
|
|
2771
|
+
e.api.post(h.url || `${e.apiURL}/user/reset/${u}`, d, s).then(function(p) {
|
|
2772
|
+
return w && (e.cache.reset(), t.set(p.data)), i(p.data);
|
|
2773
2773
|
}, c);
|
|
2774
2774
|
});
|
|
2775
|
-
}, t.sendResetPasswordRequest = function(u,
|
|
2776
|
-
return
|
|
2775
|
+
}, t.sendResetPasswordRequest = function(u, d) {
|
|
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(
|
|
2779
|
-
var
|
|
2778
|
+
}) : new Promise(function(h, w) {
|
|
2779
|
+
var i = {
|
|
2780
2780
|
bypassInterceptor: !0
|
|
2781
2781
|
};
|
|
2782
|
-
e.api.post(
|
|
2782
|
+
e.api.post(d.url || `${e.apiURL}/user/forgot`, u, i).then(h, w);
|
|
2783
2783
|
}) : Promise.reject({
|
|
2784
2784
|
message: "No details were provided for password reset request"
|
|
2785
2785
|
});
|
|
2786
2786
|
}, t.ensureValidToken = async function(u) {
|
|
2787
|
-
var
|
|
2788
|
-
if (!
|
|
2787
|
+
var d = t.getCurrentUser();
|
|
2788
|
+
if (!d)
|
|
2789
2789
|
return Promise.reject("No user");
|
|
2790
2790
|
if (r.isCookieMode && r.isCookieMode())
|
|
2791
2791
|
return u ? await t.refreshAccessToken() : "cookie_mode_token";
|
|
2792
|
-
var { token:
|
|
2793
|
-
if (!
|
|
2792
|
+
var { token: w } = d;
|
|
2793
|
+
if (!w)
|
|
2794
2794
|
return Promise.reject("No token");
|
|
2795
|
-
var
|
|
2796
|
-
|
|
2797
|
-
var c = new Date(
|
|
2798
|
-
return u ? await t.refreshAccessToken(
|
|
2795
|
+
var i = /* @__PURE__ */ new Date();
|
|
2796
|
+
i.setSeconds(i.getSeconds() + a);
|
|
2797
|
+
var c = new Date(w.expires);
|
|
2798
|
+
return u ? await t.refreshAccessToken(w.refreshToken) : i < c ? w : await t.refreshAccessToken(w.refreshToken);
|
|
2799
2799
|
};
|
|
2800
|
-
const
|
|
2800
|
+
const m = {};
|
|
2801
2801
|
return t.refreshAccessToken = async function(u) {
|
|
2802
|
-
if (
|
|
2803
|
-
return
|
|
2804
|
-
const
|
|
2805
|
-
return
|
|
2806
|
-
let
|
|
2802
|
+
if (m.inflightRefreshRequest)
|
|
2803
|
+
return m.inflightRefreshRequest;
|
|
2804
|
+
const d = r.isCookieMode && r.isCookieMode();
|
|
2805
|
+
return m.inflightRefreshRequest = new Promise(function(h, w) {
|
|
2806
|
+
let i = {}, c = {
|
|
2807
2807
|
bypassInterceptor: !0,
|
|
2808
2808
|
withoutToken: !0
|
|
2809
2809
|
};
|
|
2810
|
-
if (
|
|
2810
|
+
if (d)
|
|
2811
2811
|
c.withCredentials = !0;
|
|
2812
2812
|
else {
|
|
2813
2813
|
if (!u)
|
|
2814
|
-
return
|
|
2815
|
-
|
|
2814
|
+
return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
|
|
2815
|
+
i.refreshToken = u;
|
|
2816
2816
|
}
|
|
2817
|
-
e.api.post("/user/refresh",
|
|
2818
|
-
if (!
|
|
2819
|
-
return
|
|
2820
|
-
if (t.set(
|
|
2821
|
-
|
|
2817
|
+
e.api.post("/user/refresh", i, c).then(function(p) {
|
|
2818
|
+
if (!p || !p.data)
|
|
2819
|
+
return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
|
|
2820
|
+
if (t.set(p.data), o(), d)
|
|
2821
|
+
h("cookie_token_refreshed");
|
|
2822
2822
|
else {
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2823
|
+
const A = p.data.token?.accessToken;
|
|
2824
|
+
A ? h(A) : w(new Error("No access token in refresh response"));
|
|
2825
2825
|
}
|
|
2826
2826
|
setTimeout(function() {
|
|
2827
|
-
|
|
2827
|
+
m.inflightRefreshRequest = null;
|
|
2828
2828
|
});
|
|
2829
|
-
}).catch(function(
|
|
2829
|
+
}).catch(function(s) {
|
|
2830
2830
|
setTimeout(function() {
|
|
2831
|
-
|
|
2832
|
-
}), s
|
|
2831
|
+
m.inflightRefreshRequest = null;
|
|
2832
|
+
}), w(s);
|
|
2833
2833
|
});
|
|
2834
|
-
}),
|
|
2834
|
+
}), m.inflightRefreshRequest;
|
|
2835
2835
|
}, t.sync = function() {
|
|
2836
2836
|
return e.api.get("/user").then(function(u) {
|
|
2837
2837
|
if (u.data) {
|
|
2838
|
-
const
|
|
2839
|
-
if (
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2838
|
+
const d = r.getUser();
|
|
2839
|
+
if (d) {
|
|
2840
|
+
const h = { ...d };
|
|
2841
|
+
h.session ? Object.assign(h.session, u.data) : h.session = u.data, t.set(h);
|
|
2842
2842
|
} else
|
|
2843
2843
|
t.set(u.data);
|
|
2844
2844
|
} else
|
|
2845
2845
|
t.set(null);
|
|
2846
|
-
|
|
2846
|
+
o();
|
|
2847
2847
|
}).catch(function(u) {
|
|
2848
|
-
t.set(null),
|
|
2848
|
+
t.set(null), o();
|
|
2849
2849
|
});
|
|
2850
2850
|
}, t.getCurrentUser = function() {
|
|
2851
2851
|
return r.getUser();
|
|
@@ -2853,38 +2853,38 @@ var Et = function(e) {
|
|
|
2853
2853
|
var u = r.getAccessToken();
|
|
2854
2854
|
if (u)
|
|
2855
2855
|
return u;
|
|
2856
|
-
var
|
|
2857
|
-
if (!
|
|
2856
|
+
var d = t.getCurrentUser();
|
|
2857
|
+
if (!d)
|
|
2858
2858
|
return e.applicationToken ? e.applicationToken : void 0;
|
|
2859
|
-
var { token:
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2859
|
+
var { token: h } = d;
|
|
2860
|
+
if (h)
|
|
2861
|
+
return h.accessToken;
|
|
2862
2862
|
}, e.api.interceptors.request.use(
|
|
2863
2863
|
async function(u) {
|
|
2864
2864
|
if (u.bypassInterceptor)
|
|
2865
2865
|
return u;
|
|
2866
|
-
var
|
|
2866
|
+
var d = u;
|
|
2867
2867
|
if (r.isCookieMode && r.isCookieMode())
|
|
2868
|
-
return
|
|
2869
|
-
var
|
|
2870
|
-
if (
|
|
2871
|
-
var { token:
|
|
2872
|
-
|
|
2868
|
+
return d.withCredentials || (d.withCredentials = !0), d;
|
|
2869
|
+
var w = t.getCurrentUser(), i, c, s;
|
|
2870
|
+
if (w) {
|
|
2871
|
+
var { token: p } = w;
|
|
2872
|
+
p && (i = p.accessToken, c = p.refreshToken, s = p.expires);
|
|
2873
2873
|
}
|
|
2874
|
-
if (
|
|
2875
|
-
|
|
2874
|
+
if (i)
|
|
2875
|
+
d.headers.Authorization = `Bearer ${i}`;
|
|
2876
2876
|
else
|
|
2877
|
-
return
|
|
2877
|
+
return d;
|
|
2878
2878
|
if (!c)
|
|
2879
|
-
return
|
|
2880
|
-
var
|
|
2881
|
-
|
|
2882
|
-
var
|
|
2883
|
-
return
|
|
2879
|
+
return d;
|
|
2880
|
+
var A = /* @__PURE__ */ new Date();
|
|
2881
|
+
A.setSeconds(A.getSeconds() + a);
|
|
2882
|
+
var y = new Date(s);
|
|
2883
|
+
return A < y ? d : new Promise(async function(l, S) {
|
|
2884
2884
|
await t.refreshAccessToken(c).then(function(b) {
|
|
2885
|
-
return
|
|
2885
|
+
return d.headers.Authorization = `Bearer ${b}`, l(d);
|
|
2886
2886
|
}).catch(function(b) {
|
|
2887
|
-
return
|
|
2887
|
+
return S(b);
|
|
2888
2888
|
});
|
|
2889
2889
|
});
|
|
2890
2890
|
},
|
|
@@ -2894,8 +2894,8 @@ var Et = function(e) {
|
|
|
2894
2894
|
), e.api.interceptors.response.use(function(u) {
|
|
2895
2895
|
return u;
|
|
2896
2896
|
}, function(u) {
|
|
2897
|
-
var
|
|
2898
|
-
switch (
|
|
2897
|
+
var d = u && u.response && u.response.status || u.status;
|
|
2898
|
+
switch (d) {
|
|
2899
2899
|
case 401:
|
|
2900
2900
|
t.logout();
|
|
2901
2901
|
break;
|
|
@@ -2946,20 +2946,20 @@ q.activeFilters = function(e) {
|
|
|
2946
2946
|
return a(e, r), r;
|
|
2947
2947
|
function a(t, n) {
|
|
2948
2948
|
if (t) {
|
|
2949
|
-
var
|
|
2950
|
-
|
|
2951
|
-
a(
|
|
2949
|
+
var o = q.isValidFilter(t);
|
|
2950
|
+
o && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(m) {
|
|
2951
|
+
a(m, n);
|
|
2952
2952
|
});
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
q.activeFilterKeys = function(e, r) {
|
|
2957
2957
|
r = r || {};
|
|
2958
|
-
var a = q.activeFilters(e), t = a.filter(function(
|
|
2959
|
-
return !
|
|
2960
|
-
}).reduce(function(
|
|
2961
|
-
var u = q.cleanKey(
|
|
2962
|
-
return r.trimArrayDelimeters !== !1 && (u = u.split("[]").join("")),
|
|
2958
|
+
var a = q.activeFilters(e), t = a.filter(function(o) {
|
|
2959
|
+
return !o.operator;
|
|
2960
|
+
}).reduce(function(o, m) {
|
|
2961
|
+
var u = q.cleanKey(m.key);
|
|
2962
|
+
return r.trimArrayDelimeters !== !1 && (u = u.split("[]").join("")), o[u] = !0, o;
|
|
2963
2963
|
}, {}), n = Object.keys(t);
|
|
2964
2964
|
return n;
|
|
2965
2965
|
};
|
|
@@ -2981,14 +2981,14 @@ q.activeFilterOperators = function(e) {
|
|
|
2981
2981
|
};
|
|
2982
2982
|
q.activeFilterValues = function(e, r) {
|
|
2983
2983
|
var a = q.activeFilters(e);
|
|
2984
|
-
function t(
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2987
|
-
}
|
|
2988
|
-
var n = a.filter(function(
|
|
2989
|
-
return !
|
|
2990
|
-
}).reduce(function(
|
|
2991
|
-
return
|
|
2984
|
+
function t(o) {
|
|
2985
|
+
if (o)
|
|
2986
|
+
return o._id || o.id || o.title || o.name || o;
|
|
2987
|
+
}
|
|
2988
|
+
var n = a.filter(function(o) {
|
|
2989
|
+
return !o.operator;
|
|
2990
|
+
}).reduce(function(o, m) {
|
|
2991
|
+
return o = [...o, ...(m.values || []).map(t), t(m.value), t(m.value2)], o;
|
|
2992
2992
|
}, []).filter(Kr);
|
|
2993
2993
|
return n;
|
|
2994
2994
|
};
|
|
@@ -2998,19 +2998,19 @@ q.filterChangeString = function(e) {
|
|
|
2998
2998
|
};
|
|
2999
2999
|
function Pt(e) {
|
|
3000
3000
|
var r = {};
|
|
3001
|
-
return r.downloadUrl = function(a, t, n,
|
|
3002
|
-
return
|
|
3001
|
+
return r.downloadUrl = function(a, t, n, o) {
|
|
3002
|
+
return o = o || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, o);
|
|
3003
3003
|
}, r.duration = function(a) {
|
|
3004
|
-
const t = Math.round(a), n = Math.floor(t / 3600),
|
|
3005
|
-
return n > 0 ? `${n}:${
|
|
3006
|
-
}, r.mediaUrl = function(a, t, n,
|
|
3007
|
-
|
|
3008
|
-
let
|
|
3009
|
-
return
|
|
3004
|
+
const t = Math.round(a), n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60), m = t % 60;
|
|
3005
|
+
return n > 0 ? `${n}:${o.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}` : `${o}:${m.toString().padStart(2, "0")}`;
|
|
3006
|
+
}, r.mediaUrl = function(a, t, n, o) {
|
|
3007
|
+
o = o || {}, n = n || {}, t = e.utils.id(t);
|
|
3008
|
+
let m = `/${a}/${t}`;
|
|
3009
|
+
return o.extension?.length && (o.extension.includes(".") ? m = `${m}/${o.extension}` : m = `${m}/${a}.${o.extension}`), e.api.generateEndpointURL(m, n, o);
|
|
3010
3010
|
}, r.filesize = function(a, t) {
|
|
3011
3011
|
if (a == 0) return "0 Bytes";
|
|
3012
|
-
var n = 1024,
|
|
3013
|
-
return parseFloat((a / Math.pow(n, u)).toFixed(
|
|
3012
|
+
var n = 1024, o = t || 2, m = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], u = Math.floor(Math.log(a) / Math.log(n));
|
|
3013
|
+
return parseFloat((a / Math.pow(n, u)).toFixed(o)) + " " + m[u];
|
|
3014
3014
|
}, r.getBinaryTypeFromMime = function(a) {
|
|
3015
3015
|
if (!a)
|
|
3016
3016
|
return "file";
|
|
@@ -3109,19 +3109,19 @@ var $e = {}, xt = {
|
|
|
3109
3109
|
}, r.featureIsIncludedInByteflag = function(a, t) {
|
|
3110
3110
|
return (a & r.featureFlags[t]) === r.featureFlags[t];
|
|
3111
3111
|
}, r.hasFeature = function(a, t) {
|
|
3112
|
-
const n = a?.organisation || {},
|
|
3113
|
-
if (
|
|
3112
|
+
const n = a?.organisation || {}, o = n.features || {};
|
|
3113
|
+
if (o.all || o[t])
|
|
3114
3114
|
return !0;
|
|
3115
|
-
const
|
|
3116
|
-
return r.featureIsIncludedInByteflag(
|
|
3115
|
+
const m = n.ff;
|
|
3116
|
+
return r.featureIsIncludedInByteflag(m, "all") ? !0 : r.featureIsIncludedInByteflag(m, t);
|
|
3117
3117
|
}, r.isAdministrator = function(a) {
|
|
3118
3118
|
return a && a?.userType == "administrator";
|
|
3119
3119
|
}, r.getAllDescendants = function(a) {
|
|
3120
3120
|
var t = [];
|
|
3121
3121
|
n(a);
|
|
3122
|
-
function n(
|
|
3123
|
-
var
|
|
3124
|
-
t.push(
|
|
3122
|
+
function n(o) {
|
|
3123
|
+
var m = e.utils.id(o);
|
|
3124
|
+
t.push(m), (o.children || []).forEach(function(u) {
|
|
3125
3125
|
n(u);
|
|
3126
3126
|
});
|
|
3127
3127
|
}
|
|
@@ -3129,113 +3129,113 @@ var $e = {}, xt = {
|
|
|
3129
3129
|
}, r.hashPermissions = function(a) {
|
|
3130
3130
|
var t = {};
|
|
3131
3131
|
for (var n in a?.permissions || {}) {
|
|
3132
|
-
var
|
|
3133
|
-
(
|
|
3132
|
+
var o = a?.permissions[n], m = r.getAllDescendants(o);
|
|
3133
|
+
(o.permissions || []).forEach(function(u) {
|
|
3134
3134
|
t[u] || (t[u] = []), t[u] = [
|
|
3135
|
-
...new Set(t[u].concat(
|
|
3135
|
+
...new Set(t[u].concat(m))
|
|
3136
3136
|
];
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
3139
3139
|
return t;
|
|
3140
3140
|
}, r.allUserScopes = function(a) {
|
|
3141
3141
|
var t = {}, n = a?.permissions || {};
|
|
3142
|
-
function
|
|
3142
|
+
function o(u) {
|
|
3143
3143
|
if (u) {
|
|
3144
|
-
var
|
|
3145
|
-
|
|
3146
|
-
|
|
3144
|
+
var d = e.utils.id(u);
|
|
3145
|
+
d && (t[d] = 1, u.children && u.children.length && u.children.forEach(function(h) {
|
|
3146
|
+
o(h);
|
|
3147
3147
|
}));
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
|
-
for (var
|
|
3151
|
-
|
|
3150
|
+
for (var m in n)
|
|
3151
|
+
o(n[m]);
|
|
3152
3152
|
return Object.keys(t);
|
|
3153
|
-
}, r.actionableScopes = function(a, t, n,
|
|
3154
|
-
|
|
3153
|
+
}, r.actionableScopes = function(a, t, n, o, m) {
|
|
3154
|
+
m = m || {};
|
|
3155
3155
|
var u = [];
|
|
3156
3156
|
if (a?.userType == "administrator")
|
|
3157
|
-
u = r.allUserScopes(a,
|
|
3157
|
+
u = r.allUserScopes(a, m);
|
|
3158
3158
|
else {
|
|
3159
|
-
var
|
|
3160
|
-
if (!
|
|
3159
|
+
var d = r.hashPermissions(a), h = n || o;
|
|
3160
|
+
if (!h)
|
|
3161
3161
|
return u;
|
|
3162
|
-
let
|
|
3163
|
-
u = [...
|
|
3162
|
+
let w = n ? d[`${n}.${t}`] || [] : [], i = o ? d[`${o}.${t}`] || [] : [];
|
|
3163
|
+
u = [...w, ...i];
|
|
3164
3164
|
}
|
|
3165
3165
|
return u || [];
|
|
3166
3166
|
}, r.isOwner = function(a, t) {
|
|
3167
|
-
var n = e.utils.id(a),
|
|
3168
|
-
if (!
|
|
3167
|
+
var n = e.utils.id(a), o = e.utils.id(a?.persona), m = t.meta;
|
|
3168
|
+
if (!m)
|
|
3169
3169
|
return !1;
|
|
3170
|
-
var u =
|
|
3171
|
-
if (
|
|
3170
|
+
var u = m.userOwners || [], d = e.utils.ids([...u, m.userAuthor]), h = e.utils.hash(d);
|
|
3171
|
+
if (h[n])
|
|
3172
3172
|
return !0;
|
|
3173
|
-
var
|
|
3174
|
-
...
|
|
3175
|
-
|
|
3176
|
-
]), c = e.utils.hash(
|
|
3177
|
-
return c[
|
|
3173
|
+
var w = m.personaOwners || [], i = e.utils.ids([
|
|
3174
|
+
...w,
|
|
3175
|
+
m.personaAuthor
|
|
3176
|
+
]), c = e.utils.hash(i);
|
|
3177
|
+
return c[o] ? !0 : r.isAssignee(a, t);
|
|
3178
3178
|
}, r.isAssignee = function(a, t) {
|
|
3179
3179
|
const n = e.utils.ids(a?.profiles);
|
|
3180
3180
|
if (!n.length)
|
|
3181
3181
|
return !1;
|
|
3182
|
-
const
|
|
3183
|
-
if (!
|
|
3182
|
+
const o = e.utils.ids(t.assignees);
|
|
3183
|
+
if (!o.length)
|
|
3184
3184
|
return !1;
|
|
3185
|
-
const
|
|
3186
|
-
return !!n.filter((
|
|
3185
|
+
const m = new Set(o);
|
|
3186
|
+
return !!n.filter((h) => m.has(h)).length;
|
|
3187
3187
|
}, r.allPermissions = function(a) {
|
|
3188
3188
|
var t = Object.values(a?.permissions || {}).map(function(n) {
|
|
3189
3189
|
return n.permissions;
|
|
3190
3190
|
}).flat();
|
|
3191
3191
|
return t;
|
|
3192
3192
|
}, r.allPermissionTypes = function(a, t) {
|
|
3193
|
-
return t ? r.allPermissions(a).reduce(function(n,
|
|
3194
|
-
var
|
|
3195
|
-
return n[
|
|
3193
|
+
return t ? r.allPermissions(a).reduce(function(n, o) {
|
|
3194
|
+
var m = o.split(".")[0];
|
|
3195
|
+
return n[m] = !0, n;
|
|
3196
3196
|
}, {}) : r.allPermissions(a).map(function(n) {
|
|
3197
3197
|
return n.split(".")[0];
|
|
3198
3198
|
});
|
|
3199
3199
|
}, r.canKnowOf = function(a, t, n) {
|
|
3200
3200
|
return n = n || {}, n.cache = n.cache || {}, r.allPermissionTypes(a, !0)[t];
|
|
3201
|
-
}, r.checkActionAccess = function(a, t, n,
|
|
3202
|
-
if (
|
|
3201
|
+
}, r.checkActionAccess = function(a, t, n, o, m) {
|
|
3202
|
+
if (m = m || {}, m.cache = m.cache || {}, r.isAdministrator(a))
|
|
3203
3203
|
return !0;
|
|
3204
|
-
var u = t.meta?.type,
|
|
3205
|
-
if (!
|
|
3204
|
+
var u = t.meta?.type, d = t.meta?.definition || u;
|
|
3205
|
+
if (!d)
|
|
3206
3206
|
return !1;
|
|
3207
|
-
var
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
3207
|
+
var h = e.utils.ids(t.meta.scopes || []), w, i = `access-${a?.cacheKey}-${n}-${d}-${u}`;
|
|
3208
|
+
if (m.cache[i])
|
|
3209
|
+
w = m.cache[i];
|
|
3210
3210
|
else {
|
|
3211
3211
|
var c = e.utils.ids(
|
|
3212
|
-
r.actionableScopes(a, n,
|
|
3212
|
+
r.actionableScopes(a, n, d, u, m)
|
|
3213
3213
|
);
|
|
3214
|
-
|
|
3214
|
+
w = e.utils.hash(c), m.cache[i] = w;
|
|
3215
3215
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
-
return
|
|
3216
|
+
if (w) {
|
|
3217
|
+
var s = h.some(function(b) {
|
|
3218
|
+
return w[b];
|
|
3219
3219
|
});
|
|
3220
|
-
if (
|
|
3220
|
+
if (s)
|
|
3221
3221
|
return !0;
|
|
3222
3222
|
}
|
|
3223
|
-
var
|
|
3224
|
-
if (
|
|
3225
|
-
var
|
|
3226
|
-
if (
|
|
3227
|
-
|
|
3223
|
+
var p = r.isOwner(a, t);
|
|
3224
|
+
if (p) {
|
|
3225
|
+
var A, y = `access-${a?.cacheKey}-${o}-${d}-${u}`;
|
|
3226
|
+
if (m.cache[y])
|
|
3227
|
+
A = m.cache[y];
|
|
3228
3228
|
else {
|
|
3229
|
-
var
|
|
3230
|
-
r.actionableScopes(a,
|
|
3229
|
+
var l = e.utils.ids(
|
|
3230
|
+
r.actionableScopes(a, o, d, u, m)
|
|
3231
3231
|
);
|
|
3232
|
-
|
|
3232
|
+
A = e.utils.hash(l), m.cache[y] = A;
|
|
3233
3233
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
return
|
|
3234
|
+
if (A) {
|
|
3235
|
+
var S = h.some(function(b) {
|
|
3236
|
+
return A[b];
|
|
3237
3237
|
});
|
|
3238
|
-
if (
|
|
3238
|
+
if (S)
|
|
3239
3239
|
return !0;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
@@ -3245,52 +3245,52 @@ var $e = {}, xt = {
|
|
|
3245
3245
|
return !0;
|
|
3246
3246
|
var n = r.hashPermissions(a);
|
|
3247
3247
|
return n[t];
|
|
3248
|
-
}, r.canCreate = function(a, t, n,
|
|
3249
|
-
if (
|
|
3248
|
+
}, r.canCreate = function(a, t, n, o) {
|
|
3249
|
+
if (o = o || {}, o.cache = o.cache || {}, r.isAdministrator(a))
|
|
3250
3250
|
return !0;
|
|
3251
|
-
var
|
|
3251
|
+
var m = r.actionableScopes(
|
|
3252
3252
|
a,
|
|
3253
3253
|
"create",
|
|
3254
3254
|
t,
|
|
3255
3255
|
n
|
|
3256
3256
|
);
|
|
3257
|
-
return
|
|
3257
|
+
return m.length;
|
|
3258
3258
|
}, r.canListItem = function(a, t, n) {
|
|
3259
3259
|
n = n || {}, n.cache = n.cache || {};
|
|
3260
|
-
var
|
|
3260
|
+
var o = r.checkActionAccess(
|
|
3261
3261
|
a,
|
|
3262
3262
|
t,
|
|
3263
3263
|
"listany",
|
|
3264
3264
|
"listown",
|
|
3265
3265
|
n
|
|
3266
3266
|
);
|
|
3267
|
-
if (
|
|
3267
|
+
if (o)
|
|
3268
3268
|
return !0;
|
|
3269
|
-
var
|
|
3270
|
-
return !!
|
|
3269
|
+
var m = r.canViewItem(a, t, n);
|
|
3270
|
+
return !!m;
|
|
3271
3271
|
}, r.canViewItem = function(a, t, n) {
|
|
3272
3272
|
n = n || {}, n.cache = n.cache || {};
|
|
3273
|
-
var
|
|
3273
|
+
var o = r.checkActionAccess(
|
|
3274
3274
|
a,
|
|
3275
3275
|
t,
|
|
3276
3276
|
"viewany",
|
|
3277
3277
|
"viewOwn",
|
|
3278
3278
|
n
|
|
3279
3279
|
);
|
|
3280
|
-
if (
|
|
3280
|
+
if (o)
|
|
3281
3281
|
return !0;
|
|
3282
|
-
var
|
|
3283
|
-
return !!
|
|
3282
|
+
var m = r.canEditItem(a, t, n);
|
|
3283
|
+
return !!m;
|
|
3284
3284
|
}, r.canEditItem = function(a, t, n) {
|
|
3285
3285
|
n = n || {}, n.cache = n.cache || {};
|
|
3286
|
-
var
|
|
3286
|
+
var o = r.checkActionAccess(
|
|
3287
3287
|
a,
|
|
3288
3288
|
t,
|
|
3289
3289
|
"editany",
|
|
3290
3290
|
"editown",
|
|
3291
3291
|
n
|
|
3292
3292
|
);
|
|
3293
|
-
return
|
|
3293
|
+
return o;
|
|
3294
3294
|
}, r.canDeleteItem = function(a, t, n) {
|
|
3295
3295
|
return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
|
|
3296
3296
|
a,
|
|
@@ -3326,219 +3326,236 @@ function Ot(e) {
|
|
|
3326
3326
|
};
|
|
3327
3327
|
const a = {};
|
|
3328
3328
|
let t;
|
|
3329
|
-
r.variables = async function(
|
|
3330
|
-
|
|
3331
|
-
var
|
|
3332
|
-
if (
|
|
3329
|
+
r.variables = async function(i, c) {
|
|
3330
|
+
c = c || {}, i = i || [];
|
|
3331
|
+
var s = c.refresh || c.reload || !a.data;
|
|
3332
|
+
if (s) {
|
|
3333
3333
|
if (!t) {
|
|
3334
|
-
let
|
|
3334
|
+
let A = function() {
|
|
3335
3335
|
t = null;
|
|
3336
3336
|
};
|
|
3337
|
-
t = e.api.post("/variables", { keys:
|
|
3337
|
+
t = e.api.post("/variables", { keys: i }), t.then(A, A);
|
|
3338
3338
|
}
|
|
3339
|
-
const { data:
|
|
3340
|
-
a.data =
|
|
3339
|
+
const { data: p } = await t;
|
|
3340
|
+
a.data = p, e.dispatch("variables", p);
|
|
3341
3341
|
}
|
|
3342
3342
|
return a.data;
|
|
3343
3343
|
};
|
|
3344
3344
|
const n = e.cache.get("user:glossary");
|
|
3345
|
-
let
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
if (
|
|
3345
|
+
let o;
|
|
3346
|
+
function m({ _s: i, _k: c, types: s }) {
|
|
3347
|
+
function p(A) {
|
|
3348
|
+
if (typeof A == "string" && A[0] === "~")
|
|
3349
|
+
return i[parseInt(A.slice(1))];
|
|
3350
|
+
if (Array.isArray(A)) return A.map(p);
|
|
3351
|
+
if (A && typeof A == "object") {
|
|
3352
|
+
const y = {};
|
|
3353
|
+
for (const [l, S] of Object.entries(A))
|
|
3354
|
+
y[c[l] || l] = p(S);
|
|
3355
|
+
return y;
|
|
3356
|
+
}
|
|
3357
|
+
return A;
|
|
3358
|
+
}
|
|
3359
|
+
return s.map(p);
|
|
3360
|
+
}
|
|
3361
|
+
r.glossary = async function(i) {
|
|
3362
|
+
i = i || {};
|
|
3363
|
+
let c = n.get("glossary");
|
|
3364
|
+
var s = i.refresh || i.reload || !c;
|
|
3365
|
+
if (s) {
|
|
3366
|
+
if (!o) {
|
|
3352
3367
|
let S = function() {
|
|
3353
|
-
|
|
3368
|
+
o = null, r.loadingGlossary = !1;
|
|
3354
3369
|
};
|
|
3355
|
-
r.loadingGlossary = !0
|
|
3370
|
+
r.loadingGlossary = !0;
|
|
3371
|
+
const l = i.compressed ? "/glossary/compressed" : "/glossary";
|
|
3372
|
+
o = e.api.get(l, { cache: !1 }), o.then(S, S);
|
|
3356
3373
|
}
|
|
3357
|
-
const { data:
|
|
3358
|
-
n.set("glossary",
|
|
3374
|
+
const { data: A } = await o, y = A._s && A._k && A.types ? m(A) : A;
|
|
3375
|
+
n.set("glossary", y), c = y, e.dispatch("glossary", y);
|
|
3359
3376
|
}
|
|
3360
|
-
if (
|
|
3361
|
-
var
|
|
3362
|
-
return
|
|
3377
|
+
if (i.hash) {
|
|
3378
|
+
var p = e.utils.hash(c, "key");
|
|
3379
|
+
return p;
|
|
3363
3380
|
}
|
|
3364
|
-
if (
|
|
3365
|
-
var
|
|
3366
|
-
return
|
|
3381
|
+
if (i.hex) {
|
|
3382
|
+
var p = e.utils.hash(c, "hex");
|
|
3383
|
+
return p;
|
|
3367
3384
|
}
|
|
3368
|
-
return
|
|
3385
|
+
return c;
|
|
3369
3386
|
};
|
|
3370
|
-
const
|
|
3371
|
-
let
|
|
3372
|
-
r.scopeGlossary = async function(
|
|
3373
|
-
|
|
3374
|
-
var
|
|
3375
|
-
if (
|
|
3376
|
-
if (!
|
|
3377
|
-
let
|
|
3378
|
-
|
|
3387
|
+
const u = {};
|
|
3388
|
+
let d;
|
|
3389
|
+
r.scopeGlossary = async function(i) {
|
|
3390
|
+
i = i || {};
|
|
3391
|
+
var c = i.refresh || i.reload || !u.data;
|
|
3392
|
+
if (c) {
|
|
3393
|
+
if (!d) {
|
|
3394
|
+
let A = function() {
|
|
3395
|
+
d = null;
|
|
3379
3396
|
};
|
|
3380
|
-
|
|
3397
|
+
d = e.api.get("/scope/glossary", {
|
|
3381
3398
|
cache: !1
|
|
3382
|
-
}),
|
|
3399
|
+
}), d.then(A, A);
|
|
3383
3400
|
}
|
|
3384
|
-
const { data:
|
|
3385
|
-
|
|
3401
|
+
const { data: p } = await d;
|
|
3402
|
+
u.data = p;
|
|
3386
3403
|
}
|
|
3387
|
-
if (
|
|
3388
|
-
var
|
|
3389
|
-
return
|
|
3404
|
+
if (i.hash) {
|
|
3405
|
+
var s = e.utils.hash(u.data, "_id");
|
|
3406
|
+
return s;
|
|
3390
3407
|
}
|
|
3391
|
-
return
|
|
3408
|
+
return u.data;
|
|
3392
3409
|
};
|
|
3393
|
-
const
|
|
3394
|
-
r.comparators = async function(
|
|
3395
|
-
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3398
|
-
const { data:
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
return
|
|
3410
|
+
const h = {};
|
|
3411
|
+
r.comparators = async function(i) {
|
|
3412
|
+
i = i || {};
|
|
3413
|
+
var c = i.reload || i.refresh || !h.data;
|
|
3414
|
+
if (c) {
|
|
3415
|
+
const { data: s } = await e.api.get("/system/comparators");
|
|
3416
|
+
s.available = {}, Object.entries(s.types).forEach(([p, A]) => {
|
|
3417
|
+
s.available[p] = A.map(function(y) {
|
|
3418
|
+
return s.hash[y];
|
|
3402
3419
|
});
|
|
3403
|
-
}),
|
|
3420
|
+
}), h.data = s;
|
|
3404
3421
|
}
|
|
3405
|
-
return
|
|
3422
|
+
return h.data;
|
|
3406
3423
|
};
|
|
3407
|
-
function
|
|
3408
|
-
var { minimum:
|
|
3409
|
-
return
|
|
3410
|
-
}
|
|
3411
|
-
return r.meetsValidationRequirements = function(
|
|
3412
|
-
if (
|
|
3413
|
-
var
|
|
3414
|
-
if (
|
|
3415
|
-
return `Must be at least ${
|
|
3424
|
+
function w(i) {
|
|
3425
|
+
var { minimum: c, maximum: s } = i;
|
|
3426
|
+
return c = e.utils.parseInt(c), c = Math.max(c, 0), s = e.utils.parseInt(s), s = Math.max(s, 0), s == 0 || (s = Math.max(s, c)), { minimum: c, maximum: s };
|
|
3427
|
+
}
|
|
3428
|
+
return r.meetsValidationRequirements = function(i, c, s) {
|
|
3429
|
+
if (s.minLength) {
|
|
3430
|
+
var p = String(i).length;
|
|
3431
|
+
if (p < s.minLength)
|
|
3432
|
+
return `Must be at least ${s.minLength} characters`;
|
|
3416
3433
|
}
|
|
3417
|
-
if (
|
|
3418
|
-
var
|
|
3419
|
-
if (
|
|
3420
|
-
return `Can be no more than ${
|
|
3434
|
+
if (s.maxLength) {
|
|
3435
|
+
var p = String(i).length;
|
|
3436
|
+
if (p > s.maxLength)
|
|
3437
|
+
return `Can be no more than ${s.maxLength} characters`;
|
|
3421
3438
|
}
|
|
3422
|
-
if (
|
|
3423
|
-
var
|
|
3424
|
-
if (
|
|
3425
|
-
return `Must be at least ${
|
|
3439
|
+
if (s.minValue && i !== void 0) {
|
|
3440
|
+
var A = Number(i);
|
|
3441
|
+
if (A < s.minValue)
|
|
3442
|
+
return `Must be at least ${s.minValue}`;
|
|
3426
3443
|
}
|
|
3427
|
-
if (
|
|
3428
|
-
var
|
|
3429
|
-
if (
|
|
3430
|
-
return `Can be no greater than ${
|
|
3444
|
+
if (s.maxValue && i !== void 0) {
|
|
3445
|
+
var A = Number(i);
|
|
3446
|
+
if (A > s.maxValue)
|
|
3447
|
+
return `Can be no greater than ${s.maxValue}`;
|
|
3431
3448
|
}
|
|
3432
|
-
}, r.validateField = function(
|
|
3433
|
-
|
|
3434
|
-
var
|
|
3435
|
-
if (
|
|
3436
|
-
if (!
|
|
3449
|
+
}, r.validateField = function(i, c, s) {
|
|
3450
|
+
s = s || {};
|
|
3451
|
+
var p = c.type || "string", { minimum: A, maximum: y } = w(c), l = c.type == "group" && c.asObject, S = l ? A === y && y === 1 : y === 1, b = !S, C = e.utils.exists(i);
|
|
3452
|
+
if (A) {
|
|
3453
|
+
if (!C)
|
|
3437
3454
|
return {
|
|
3438
3455
|
valid: !1,
|
|
3439
|
-
message: `${
|
|
3456
|
+
message: `${c.title} is a required field`,
|
|
3440
3457
|
status: 400
|
|
3441
3458
|
};
|
|
3442
|
-
} else if (!
|
|
3459
|
+
} else if (!C)
|
|
3443
3460
|
return {
|
|
3444
3461
|
valid: !0
|
|
3445
3462
|
};
|
|
3446
|
-
if (
|
|
3447
|
-
if (!Array.isArray(
|
|
3448
|
-
return
|
|
3463
|
+
if (b) {
|
|
3464
|
+
if (!Array.isArray(i))
|
|
3465
|
+
return A ? {
|
|
3449
3466
|
valid: !1,
|
|
3450
|
-
message: `${
|
|
3467
|
+
message: `${c.title} requires at least ${A} values`,
|
|
3451
3468
|
status: 400
|
|
3452
|
-
} : (console.log("NOT PROVIDED AS ARRAY",
|
|
3469
|
+
} : (console.log("NOT PROVIDED AS ARRAY", c.title, i), {
|
|
3453
3470
|
valid: !1,
|
|
3454
|
-
message: `${
|
|
3471
|
+
message: `${c.title} must be provided as an array`,
|
|
3455
3472
|
status: 400
|
|
3456
3473
|
});
|
|
3457
|
-
var
|
|
3458
|
-
if (
|
|
3459
|
-
var
|
|
3460
|
-
return !
|
|
3461
|
-
}),
|
|
3474
|
+
var P = i;
|
|
3475
|
+
if (P = P.filter(function(R) {
|
|
3476
|
+
var T = R == null || R === "";
|
|
3477
|
+
return !T;
|
|
3478
|
+
}), A == y && A && P.length != A)
|
|
3462
3479
|
return {
|
|
3463
3480
|
valid: !1,
|
|
3464
|
-
message: `${
|
|
3481
|
+
message: `${c.title} requires exactly ${y} values`,
|
|
3465
3482
|
status: 400
|
|
3466
3483
|
};
|
|
3467
|
-
if (
|
|
3484
|
+
if (y && P.length > y)
|
|
3468
3485
|
return {
|
|
3469
3486
|
valid: !1,
|
|
3470
|
-
message: `${
|
|
3487
|
+
message: `${c.title} requires less than ${y + 1} values`,
|
|
3471
3488
|
status: 400
|
|
3472
3489
|
};
|
|
3473
|
-
if (
|
|
3490
|
+
if (P.length < A)
|
|
3474
3491
|
return {
|
|
3475
3492
|
valid: !1,
|
|
3476
|
-
message: `${
|
|
3493
|
+
message: `${c.title} requires at least ${A} values`,
|
|
3477
3494
|
status: 400
|
|
3478
3495
|
};
|
|
3479
|
-
var
|
|
3480
|
-
if (
|
|
3481
|
-
var
|
|
3482
|
-
|
|
3483
|
-
var
|
|
3484
|
-
T,
|
|
3496
|
+
var I;
|
|
3497
|
+
if (P.find(function(R) {
|
|
3498
|
+
var T = p;
|
|
3499
|
+
c.type === "group" && (T = "object"), c.type === "reference" && c.widget === "form" && (T = "object");
|
|
3500
|
+
var $ = e.utils.isValidValue(
|
|
3485
3501
|
R,
|
|
3486
|
-
|
|
3502
|
+
T,
|
|
3503
|
+
s.strict
|
|
3487
3504
|
);
|
|
3488
|
-
if (
|
|
3489
|
-
return
|
|
3490
|
-
if (
|
|
3491
|
-
var
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3505
|
+
if (!$)
|
|
3506
|
+
return I = !0, !0;
|
|
3507
|
+
if (c.validation) {
|
|
3508
|
+
var B = r.meetsValidationRequirements(
|
|
3509
|
+
R,
|
|
3510
|
+
p,
|
|
3511
|
+
c.validation
|
|
3495
3512
|
);
|
|
3496
|
-
if (
|
|
3497
|
-
return
|
|
3513
|
+
if (B)
|
|
3514
|
+
return I = !0, !0;
|
|
3498
3515
|
}
|
|
3499
|
-
}),
|
|
3516
|
+
}), I)
|
|
3500
3517
|
return {
|
|
3501
3518
|
valid: !1,
|
|
3502
|
-
message: `Invalid input for ${
|
|
3519
|
+
message: `Invalid input for ${c.title}`,
|
|
3503
3520
|
status: 400
|
|
3504
3521
|
};
|
|
3505
3522
|
} else {
|
|
3506
|
-
var
|
|
3507
|
-
|
|
3508
|
-
var
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3523
|
+
var _ = p, k = c.widget;
|
|
3524
|
+
_ === "group" && (_ = "object"), _ === "reference" && k === "form" && (_ = "object");
|
|
3525
|
+
var V = r.getCleanedValue(i, _, s), F = e.utils.isValidValue(
|
|
3526
|
+
V,
|
|
3527
|
+
_,
|
|
3528
|
+
s.strict
|
|
3512
3529
|
);
|
|
3513
|
-
if (!
|
|
3530
|
+
if (!F)
|
|
3514
3531
|
return {
|
|
3515
3532
|
valid: !1,
|
|
3516
|
-
message: `Single value '${
|
|
3533
|
+
message: `Single value '${i}' is not a valid ${_} for ${c.title}`,
|
|
3517
3534
|
criteria: {
|
|
3518
|
-
isValidValue:
|
|
3519
|
-
cleanedValue:
|
|
3520
|
-
fieldType:
|
|
3521
|
-
options:
|
|
3535
|
+
isValidValue: F,
|
|
3536
|
+
cleanedValue: V,
|
|
3537
|
+
fieldType: p,
|
|
3538
|
+
options: s
|
|
3522
3539
|
},
|
|
3523
3540
|
status: 400
|
|
3524
3541
|
};
|
|
3525
|
-
let
|
|
3526
|
-
const
|
|
3527
|
-
if (String(
|
|
3528
|
-
const
|
|
3542
|
+
let R = !1;
|
|
3543
|
+
const T = {};
|
|
3544
|
+
if (String(c.minValue) && (T.minValue = parseInt(c.minValue), R = !0), String(c.maxValue) && (T.maxValue = parseInt(c.maxValue), R = !0), String(c.minLength) && (T.minLength = parseInt(c.minLength), R = !0), String(c.maxLength) && (T.maxLength = parseInt(c.maxLength), R = !0), R) {
|
|
3545
|
+
const $ = Object.assign(
|
|
3529
3546
|
{},
|
|
3530
|
-
|
|
3531
|
-
|
|
3547
|
+
T,
|
|
3548
|
+
c.validation || {}
|
|
3532
3549
|
);
|
|
3533
|
-
var
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3550
|
+
var L = r.meetsValidationRequirements(
|
|
3551
|
+
i,
|
|
3552
|
+
p,
|
|
3553
|
+
$
|
|
3537
3554
|
);
|
|
3538
|
-
if (
|
|
3555
|
+
if (L)
|
|
3539
3556
|
return {
|
|
3540
3557
|
valid: !1,
|
|
3541
|
-
message:
|
|
3558
|
+
message: L,
|
|
3542
3559
|
status: 400
|
|
3543
3560
|
};
|
|
3544
3561
|
}
|
|
@@ -3546,106 +3563,106 @@ function Ot(e) {
|
|
|
3546
3563
|
return {
|
|
3547
3564
|
valid: !0
|
|
3548
3565
|
};
|
|
3549
|
-
}, r.getCleanedValue = function(
|
|
3550
|
-
switch (
|
|
3566
|
+
}, r.getCleanedValue = function(i, c, s) {
|
|
3567
|
+
switch (c) {
|
|
3551
3568
|
case "number":
|
|
3552
3569
|
case "float":
|
|
3553
3570
|
case "decimal":
|
|
3554
|
-
return e.utils.exists(
|
|
3571
|
+
return e.utils.exists(i) ? Number(i) : void 0;
|
|
3555
3572
|
case "integer":
|
|
3556
|
-
return e.utils.exists(
|
|
3573
|
+
return e.utils.exists(i) ? parseInt(i) : void 0;
|
|
3557
3574
|
case "boolean":
|
|
3558
|
-
return e.utils.exists(
|
|
3575
|
+
return e.utils.exists(i) ? e.utils.parseBoolean(i) : void 0;
|
|
3559
3576
|
case "email":
|
|
3560
|
-
return
|
|
3577
|
+
return s.strict ? i : String(i).toLowerCase();
|
|
3561
3578
|
case "reference":
|
|
3562
|
-
return
|
|
3579
|
+
return s.strict ? i : e.utils.id(i);
|
|
3563
3580
|
default:
|
|
3564
|
-
return
|
|
3581
|
+
return s.strict ? i : e.utils.cleanValue(i, c, s);
|
|
3565
3582
|
}
|
|
3566
|
-
return
|
|
3567
|
-
}, r.list = async function(
|
|
3568
|
-
|
|
3569
|
-
const
|
|
3570
|
-
if (
|
|
3571
|
-
|
|
3572
|
-
const
|
|
3573
|
-
return
|
|
3574
|
-
promise: e.api.post(
|
|
3575
|
-
cancel(
|
|
3576
|
-
|
|
3583
|
+
return i;
|
|
3584
|
+
}, r.list = async function(i, c, s) {
|
|
3585
|
+
s || (s = {});
|
|
3586
|
+
const p = s.remoteURL || `/content/${i}/list`;
|
|
3587
|
+
if (s.cancellable) {
|
|
3588
|
+
s.config || (s.config = {});
|
|
3589
|
+
const y = e.api.CancelToken.source();
|
|
3590
|
+
return s.config.cancelToken = y.token, {
|
|
3591
|
+
promise: e.api.post(p, c, s.config),
|
|
3592
|
+
cancel(S) {
|
|
3593
|
+
y.cancel(S || "Operation canceled by the user.");
|
|
3577
3594
|
}
|
|
3578
3595
|
};
|
|
3579
3596
|
} else {
|
|
3580
|
-
const { data:
|
|
3581
|
-
return
|
|
3597
|
+
const { data: A } = await e.api.post(p, c, s.config);
|
|
3598
|
+
return A;
|
|
3582
3599
|
}
|
|
3583
|
-
}, r.create = async function(
|
|
3584
|
-
const
|
|
3585
|
-
|
|
3586
|
-
const { data:
|
|
3587
|
-
return
|
|
3588
|
-
}, r.update = async function(
|
|
3589
|
-
|
|
3590
|
-
const
|
|
3591
|
-
|
|
3592
|
-
const { data:
|
|
3593
|
-
return
|
|
3594
|
-
}, r.patch = async function(
|
|
3595
|
-
|
|
3596
|
-
const
|
|
3597
|
-
|
|
3598
|
-
const { data:
|
|
3599
|
-
return
|
|
3600
|
-
}, r.get = async function(
|
|
3601
|
-
|
|
3602
|
-
const { data:
|
|
3603
|
-
return
|
|
3604
|
-
}, r.getFromID = async function(
|
|
3605
|
-
return r.get(
|
|
3606
|
-
}, r.delete = async function(
|
|
3607
|
-
|
|
3608
|
-
const { data:
|
|
3609
|
-
return
|
|
3610
|
-
}, r.restore = async function(
|
|
3611
|
-
|
|
3612
|
-
const { data:
|
|
3600
|
+
}, r.create = async function(i, c) {
|
|
3601
|
+
const s = { ...c };
|
|
3602
|
+
s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
|
|
3603
|
+
const { data: p } = await e.api.post(`/content/${i}/create`, s);
|
|
3604
|
+
return p;
|
|
3605
|
+
}, r.update = async function(i, c) {
|
|
3606
|
+
i = e.utils.id(i);
|
|
3607
|
+
const s = { ...c };
|
|
3608
|
+
s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
|
|
3609
|
+
const { data: p } = await e.api.put(`/content/${i}`, s);
|
|
3610
|
+
return p;
|
|
3611
|
+
}, r.patch = async function(i, c) {
|
|
3612
|
+
i = e.utils.id(i);
|
|
3613
|
+
const s = { ...c };
|
|
3614
|
+
s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
|
|
3615
|
+
const { data: p } = await e.api.patch(`/content/${i}`, s);
|
|
3616
|
+
return p;
|
|
3617
|
+
}, r.get = async function(i, c) {
|
|
3618
|
+
i = e.utils.id(i), c = c || {};
|
|
3619
|
+
const { data: s } = await e.api.get(`/content/${i}`, c);
|
|
3620
|
+
return s;
|
|
3621
|
+
}, r.getFromID = async function(i) {
|
|
3622
|
+
return r.get(i);
|
|
3623
|
+
}, r.delete = async function(i, c) {
|
|
3624
|
+
i = e.utils.id(i);
|
|
3625
|
+
const { data: s } = await e.api.delete(`/content/${i}`, c);
|
|
3626
|
+
return s;
|
|
3627
|
+
}, r.restore = async function(i, c) {
|
|
3628
|
+
i = e.utils.id(i);
|
|
3629
|
+
const { data: s } = await e.api.get(`/content/${i}/restore`, c);
|
|
3630
|
+
return s;
|
|
3631
|
+
}, r.getFromSlug = async function(i) {
|
|
3632
|
+
const { data: c } = await e.api.get(`/content/slug/${i}`);
|
|
3613
3633
|
return c;
|
|
3614
|
-
}, r.getFromSlug = async function(s) {
|
|
3615
|
-
const { data: o } = await e.api.get(`/content/slug/${s}`);
|
|
3616
|
-
return o;
|
|
3617
3634
|
}, r;
|
|
3618
3635
|
}
|
|
3619
3636
|
function Mt(e) {
|
|
3620
3637
|
var r = {}, a;
|
|
3621
3638
|
return r.countries = async function() {
|
|
3622
3639
|
return a || (a = new Promise(async function(t, n) {
|
|
3623
|
-
e.api.get("/system/countries").then(function(
|
|
3624
|
-
return t(
|
|
3640
|
+
e.api.get("/system/countries").then(function(o) {
|
|
3641
|
+
return t(o.data);
|
|
3625
3642
|
}).catch(n);
|
|
3626
3643
|
})), a;
|
|
3627
3644
|
}, r;
|
|
3628
3645
|
}
|
|
3629
|
-
function
|
|
3646
|
+
function kt(e) {
|
|
3630
3647
|
var r = {};
|
|
3631
3648
|
function a() {
|
|
3632
3649
|
return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
|
|
3633
3650
|
}
|
|
3634
|
-
return r.distance = function({ lat: t, lon: n }, { lat:
|
|
3635
|
-
function u(
|
|
3636
|
-
return
|
|
3651
|
+
return r.distance = function({ lat: t, lon: n }, { lat: o, lon: m }) {
|
|
3652
|
+
function u(p) {
|
|
3653
|
+
return p * (Math.PI / 180);
|
|
3637
3654
|
}
|
|
3638
|
-
var
|
|
3639
|
-
return
|
|
3655
|
+
var d = 6371e3, h = u(o - t), w = u(m - n), i = Math.sin(h / 2) * Math.sin(h / 2) + Math.cos(u(t)) * Math.cos(u(o)) * Math.sin(w / 2) * Math.sin(w / 2), c = 2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)), s = d * c;
|
|
3656
|
+
return s;
|
|
3640
3657
|
}, r.getPosition = async function() {
|
|
3641
3658
|
return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
|
|
3642
3659
|
navigator.geolocation.getCurrentPosition(t, n);
|
|
3643
3660
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3644
3661
|
}, r.watchPosition = async function(t) {
|
|
3645
|
-
return a() ? (console.log("qik:geo: watching location"), new Promise(function(n,
|
|
3646
|
-
const
|
|
3662
|
+
return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, o) {
|
|
3663
|
+
const m = navigator.geolocation.watchPosition(t, o);
|
|
3647
3664
|
n({
|
|
3648
|
-
id:
|
|
3665
|
+
id: m
|
|
3649
3666
|
});
|
|
3650
3667
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3651
3668
|
}, r.stopWatchPosition = async function(t) {
|
|
@@ -4360,16 +4377,16 @@ function It(e) {
|
|
|
4360
4377
|
if (t) {
|
|
4361
4378
|
const n = t?.organisation?.countryCode;
|
|
4362
4379
|
if (n) {
|
|
4363
|
-
const
|
|
4380
|
+
const o = r.countryLookup[n];
|
|
4364
4381
|
return {
|
|
4365
4382
|
code: n,
|
|
4366
|
-
name:
|
|
4383
|
+
name: o
|
|
4367
4384
|
};
|
|
4368
4385
|
}
|
|
4369
4386
|
}
|
|
4370
4387
|
}, r;
|
|
4371
4388
|
}
|
|
4372
|
-
const
|
|
4389
|
+
const It = function(e, r) {
|
|
4373
4390
|
if (r = r || "production", !e.auth)
|
|
4374
4391
|
throw new Error("Can't Instantiate QikSocket before QikAuth exists");
|
|
4375
4392
|
const a = e.utils.guid();
|
|
@@ -4379,88 +4396,88 @@ const kt = function(e, r) {
|
|
|
4379
4396
|
connected: !1,
|
|
4380
4397
|
windowID: a,
|
|
4381
4398
|
autoreconnect: !0
|
|
4382
|
-
}, n,
|
|
4383
|
-
const
|
|
4384
|
-
u.bootstrap(t), t.channel = async function(
|
|
4385
|
-
if (
|
|
4386
|
-
return
|
|
4387
|
-
const
|
|
4388
|
-
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4399
|
+
}, n, o = {};
|
|
4400
|
+
const m = {}, u = new je();
|
|
4401
|
+
u.bootstrap(t), t.channel = async function(p) {
|
|
4402
|
+
if (o[p])
|
|
4403
|
+
return o[p];
|
|
4404
|
+
const A = new je();
|
|
4405
|
+
o[p] = A, t.connected || await t.connect(), t.subscribe(p), t.addEventListener(p, y);
|
|
4406
|
+
function y(l) {
|
|
4407
|
+
A.dispatch("message", l);
|
|
4391
4408
|
}
|
|
4392
|
-
return
|
|
4393
|
-
t.removeAllListeners(),
|
|
4394
|
-
},
|
|
4409
|
+
return A.destroy = function() {
|
|
4410
|
+
t.removeAllListeners(), o[p] = null;
|
|
4411
|
+
}, o[p];
|
|
4395
4412
|
};
|
|
4396
|
-
function p
|
|
4397
|
-
t.debug && console.log("[socket] Connection open",
|
|
4413
|
+
function d(p) {
|
|
4414
|
+
t.debug && console.log("[socket] Connection open", p), t.connected = !0, u.dispatch("connected", p);
|
|
4398
4415
|
}
|
|
4399
|
-
async function
|
|
4400
|
-
|
|
4416
|
+
async function h(p) {
|
|
4417
|
+
p.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${p.code} reason=${p.reason}`) : t.debug && console.log("[socket] - connection closed due to error", p), t.connected = !1, u.dispatch("disconnected", p), n = null, t.autoreconnect && t.reconnect();
|
|
4401
4418
|
}
|
|
4402
|
-
function
|
|
4403
|
-
console.log("[event] socketError", event), t.debug && console.log("[socket] Error",
|
|
4419
|
+
function w(p) {
|
|
4420
|
+
console.log("[event] socketError", event), t.debug && console.log("[socket] Error", p), u.dispatch("error", p);
|
|
4404
4421
|
}
|
|
4405
|
-
function
|
|
4406
|
-
const
|
|
4407
|
-
t.debug && console.log("[socket] message received",
|
|
4422
|
+
function i(p) {
|
|
4423
|
+
const A = JSON.parse(p.data);
|
|
4424
|
+
t.debug && console.log("[socket] message received", A), u.dispatch("message", A), A.channel && u.dispatch(A.channel, A);
|
|
4408
4425
|
}
|
|
4409
|
-
async function c(
|
|
4410
|
-
n.send(JSON.stringify(
|
|
4426
|
+
async function c(p) {
|
|
4427
|
+
n.send(JSON.stringify(p));
|
|
4411
4428
|
}
|
|
4412
|
-
function
|
|
4413
|
-
return new Promise(function(
|
|
4414
|
-
function
|
|
4429
|
+
function s() {
|
|
4430
|
+
return new Promise(function(p) {
|
|
4431
|
+
function A() {
|
|
4415
4432
|
if (t.connected)
|
|
4416
|
-
return
|
|
4417
|
-
setTimeout(
|
|
4433
|
+
return p(n);
|
|
4434
|
+
setTimeout(A, 1e3);
|
|
4418
4435
|
}
|
|
4419
|
-
|
|
4436
|
+
A();
|
|
4420
4437
|
});
|
|
4421
4438
|
}
|
|
4422
4439
|
return t.connect = async function() {
|
|
4423
4440
|
if (n)
|
|
4424
|
-
return n.connected ? (console.log("[socket] - Socket is already connected"), n) :
|
|
4425
|
-
const
|
|
4426
|
-
if (!
|
|
4441
|
+
return n.connected ? (console.log("[socket] - Socket is already connected"), n) : s();
|
|
4442
|
+
const p = e.auth.getCurrentToken();
|
|
4443
|
+
if (!p) {
|
|
4427
4444
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4428
4445
|
return;
|
|
4429
4446
|
}
|
|
4430
|
-
return n = new WebSocket(`${t.url}?access_token=${
|
|
4447
|
+
return n = new WebSocket(`${t.url}?access_token=${p}&windowid=${a}`), n.addEventListener("close", h), n.addEventListener("error", w), n.addEventListener("open", d), n.addEventListener("message", i), t.debug && console.log("[socket] - Connected with event listeners"), s();
|
|
4431
4448
|
}, t.reconnect = async function() {
|
|
4432
4449
|
if (t.connected)
|
|
4433
4450
|
return;
|
|
4434
4451
|
t.debug && console.log("[socket] reconnecting...");
|
|
4435
|
-
const
|
|
4436
|
-
return Object.keys(
|
|
4437
|
-
t.subscribe(
|
|
4438
|
-
}),
|
|
4452
|
+
const p = await t.connect();
|
|
4453
|
+
return Object.keys(m).forEach(function(y) {
|
|
4454
|
+
t.subscribe(y);
|
|
4455
|
+
}), p;
|
|
4439
4456
|
}, t.close = async function() {
|
|
4440
4457
|
if (!n) {
|
|
4441
4458
|
console.log("[socket] - Socket is not connected");
|
|
4442
4459
|
return;
|
|
4443
4460
|
}
|
|
4444
|
-
const
|
|
4445
|
-
t.autoreconnect = !1, n.close(), n.removeEventListener("close",
|
|
4446
|
-
}, t.disconnect = t.close, t.subscribe = async function(
|
|
4461
|
+
const p = t.autoreconnect;
|
|
4462
|
+
t.autoreconnect = !1, n.close(), n.removeEventListener("close", h), n.removeEventListener("error", w), n.removeEventListener("open", d), n.removeEventListener("message", i), n = null, h({ wasClean: !0 }), t.autoreconnect = p;
|
|
4463
|
+
}, t.disconnect = t.close, t.subscribe = async function(p) {
|
|
4447
4464
|
if (!n) {
|
|
4448
4465
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
4449
4466
|
return;
|
|
4450
4467
|
}
|
|
4451
4468
|
c({
|
|
4452
4469
|
action: "subscribe",
|
|
4453
|
-
channel:
|
|
4454
|
-
}),
|
|
4455
|
-
}, t.unsubscribe = async function(
|
|
4470
|
+
channel: p
|
|
4471
|
+
}), m[p] = !0, u.dispatch("subscribe", p), t.debug && console.log(`[socket] - subscribed to ${p}`);
|
|
4472
|
+
}, t.unsubscribe = async function(p) {
|
|
4456
4473
|
if (!n) {
|
|
4457
4474
|
console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
|
|
4458
4475
|
return;
|
|
4459
4476
|
}
|
|
4460
4477
|
c({
|
|
4461
4478
|
action: "unsubscribe",
|
|
4462
|
-
channel:
|
|
4463
|
-
}), delete
|
|
4479
|
+
channel: p
|
|
4480
|
+
}), delete m[p], u.dispatch("unsubscribe", p), t.debug && console.log(`[socket] - unsubscribed from ${p}`);
|
|
4464
4481
|
}, t;
|
|
4465
4482
|
};
|
|
4466
4483
|
function Nt(e) {
|
|
@@ -4497,48 +4514,48 @@ function Nt(e) {
|
|
|
4497
4514
|
value: q,
|
|
4498
4515
|
writable: !1
|
|
4499
4516
|
});
|
|
4500
|
-
const
|
|
4517
|
+
const o = new Pt(r);
|
|
4501
4518
|
Object.defineProperty(r, "files", {
|
|
4502
|
-
value:
|
|
4519
|
+
value: o,
|
|
4503
4520
|
writable: !1
|
|
4504
|
-
}), new je().bootstrap(r), r.error = function(
|
|
4505
|
-
return r.dispatch("error", t.errorMessage(
|
|
4506
|
-
}, r.notify = function(
|
|
4507
|
-
return r.dispatch("notification", { message:
|
|
4521
|
+
}), new je().bootstrap(r), r.error = function(p) {
|
|
4522
|
+
return r.dispatch("error", t.errorMessage(p));
|
|
4523
|
+
}, r.notify = function(p, A) {
|
|
4524
|
+
return r.dispatch("notification", { message: p, options: A });
|
|
4508
4525
|
};
|
|
4509
4526
|
const u = new mt(r);
|
|
4510
4527
|
Object.defineProperty(r, "api", {
|
|
4511
4528
|
value: u,
|
|
4512
4529
|
writable: !1
|
|
4513
4530
|
});
|
|
4514
|
-
const
|
|
4531
|
+
const d = new Et(r);
|
|
4515
4532
|
Object.defineProperty(r, "auth", {
|
|
4516
|
-
value:
|
|
4533
|
+
value: d,
|
|
4517
4534
|
writable: !1
|
|
4518
4535
|
});
|
|
4519
|
-
const
|
|
4536
|
+
const h = new It(r);
|
|
4520
4537
|
Object.defineProperty(r, "socket", {
|
|
4521
|
-
value:
|
|
4538
|
+
value: h,
|
|
4522
4539
|
writable: !1
|
|
4523
4540
|
});
|
|
4524
|
-
const
|
|
4541
|
+
const w = new Ct(r);
|
|
4525
4542
|
Object.defineProperty(r, "access", {
|
|
4526
|
-
value:
|
|
4543
|
+
value: w,
|
|
4527
4544
|
writable: !1
|
|
4528
4545
|
});
|
|
4529
|
-
const
|
|
4546
|
+
const i = new Mt(r);
|
|
4530
4547
|
Object.defineProperty(r, "system", {
|
|
4531
|
-
value:
|
|
4548
|
+
value: i,
|
|
4532
4549
|
writable: !1
|
|
4533
4550
|
});
|
|
4534
|
-
const c = new
|
|
4551
|
+
const c = new kt(r);
|
|
4535
4552
|
Object.defineProperty(r, "geo", {
|
|
4536
4553
|
value: c,
|
|
4537
4554
|
writable: !1
|
|
4538
4555
|
});
|
|
4539
|
-
const
|
|
4556
|
+
const s = new Ot(r);
|
|
4540
4557
|
return Object.defineProperty(r, "content", {
|
|
4541
|
-
value:
|
|
4558
|
+
value: s,
|
|
4542
4559
|
writable: !1
|
|
4543
4560
|
}), r;
|
|
4544
4561
|
}
|