@qikdev/sdk 0.1.213 → 0.1.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import Ee from "axios";
2
2
  import { Cache as Zr } from "axios-extensions";
3
3
  var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function yr(e) {
4
+ function mr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  function qr(e) {
@@ -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 i = Object.getOwnPropertySymbols(r);
48
- if (i.length !== 1 || i[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
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 l = Object.getOwnPropertyDescriptor(r, a);
52
- if (l.value !== n || l.enumerable !== !0)
51
+ var p = Object.getOwnPropertyDescriptor(r, a);
52
+ if (p.value !== n || p.enumerable !== !0)
53
53
  return !1;
54
54
  }
55
55
  return !0;
@@ -68,49 +68,49 @@ 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(u, f) {
72
- for (var w = [], g = 0; g < u.length; g += 1)
73
- w[g] = u[g];
74
- for (var P = 0; P < f.length; P += 1)
75
- w[P + u.length] = f[P];
76
- return w;
77
- }, i = function(u, f) {
78
- for (var w = [], g = f, P = 0; g < u.length; g += 1, P += 1)
79
- w[P] = u[g];
80
- return w;
81
- }, l = function(o, u) {
82
- for (var f = "", w = 0; w < o.length; w += 1)
83
- f += o[w], w + 1 < o.length && (f += u);
84
- return f;
71
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(f, m) {
72
+ for (var S = [], v = 0; v < f.length; v += 1)
73
+ S[v] = f[v];
74
+ for (var P = 0; P < m.length; P += 1)
75
+ S[P + f.length] = m[P];
76
+ return S;
77
+ }, o = function(f, m) {
78
+ for (var S = [], v = m, P = 0; v < f.length; v += 1, P += 1)
79
+ S[P] = f[v];
80
+ return S;
81
+ }, p = function(s, f) {
82
+ for (var m = "", S = 0; S < s.length; S += 1)
83
+ m += s[S], S + 1 < s.length && (m += f);
84
+ return m;
85
85
  };
86
- return Ye = function(u) {
87
- var f = this;
88
- if (typeof f != "function" || r.apply(f) !== t)
89
- throw new TypeError(e + f);
90
- for (var w = i(arguments, 1), g, P = function() {
91
- if (this instanceof g) {
92
- var c = f.apply(
86
+ return Ye = function(f) {
87
+ var m = this;
88
+ if (typeof m != "function" || r.apply(m) !== t)
89
+ throw new TypeError(e + m);
90
+ for (var S = o(arguments, 1), v, P = function() {
91
+ if (this instanceof v) {
92
+ var d = m.apply(
93
93
  this,
94
- n(w, arguments)
94
+ n(S, arguments)
95
95
  );
96
- return Object(c) === c ? c : this;
96
+ return Object(d) === d ? d : this;
97
97
  }
98
- return f.apply(
99
- u,
100
- n(w, arguments)
98
+ return m.apply(
99
+ f,
100
+ n(S, arguments)
101
101
  );
102
- }, A = a(0, f.length - w.length), v = [], C = 0; C < A; C++)
103
- v[C] = "$" + C;
104
- if (g = Function("binder", "return function (" + l(v, ",") + "){ return binder.apply(this,arguments); }")(P), f.prototype) {
105
- var m = function() {
102
+ }, b = a(0, m.length - S.length), A = [], C = 0; C < b; C++)
103
+ A[C] = "$" + C;
104
+ if (v = Function("binder", "return function (" + p(A, ",") + "){ return binder.apply(this,arguments); }")(P), m.prototype) {
105
+ var h = function() {
106
106
  };
107
- m.prototype = f.prototype, g.prototype = new m(), m.prototype = null;
107
+ h.prototype = m.prototype, v.prototype = new h(), h.prototype = null;
108
108
  }
109
- return g;
109
+ return v;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
113
- function mr() {
113
+ function yr() {
114
114
  if (Mr) return Xe;
115
115
  Mr = 1;
116
116
  var e = Xr();
@@ -120,49 +120,49 @@ var er, Ir;
120
120
  function et() {
121
121
  if (Ir) return er;
122
122
  Ir = 1;
123
- var e = mr();
123
+ var e = yr();
124
124
  return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
125
125
  }
126
- var rr, Rr;
126
+ var rr, Tr;
127
127
  function hr() {
128
- if (Rr) return rr;
129
- Rr = 1;
130
- var e, r = SyntaxError, a = Function, t = TypeError, n = function(O) {
128
+ if (Tr) return rr;
129
+ Tr = 1;
130
+ var e, r = SyntaxError, a = Function, t = TypeError, n = function(L) {
131
131
  try {
132
- return a('"use strict"; return (' + O + ").constructor;")();
132
+ return a('"use strict"; return (' + L + ").constructor;")();
133
133
  } catch {
134
134
  }
135
- }, i = Object.getOwnPropertyDescriptor;
136
- if (i)
135
+ }, o = Object.getOwnPropertyDescriptor;
136
+ if (o)
137
137
  try {
138
- i({}, "");
138
+ o({}, "");
139
139
  } catch {
140
- i = null;
140
+ o = null;
141
141
  }
142
- var l = function() {
142
+ var p = function() {
143
143
  throw new t();
144
- }, o = i ? (function() {
144
+ }, s = o ? (function() {
145
145
  try {
146
- return arguments.callee, l;
146
+ return arguments.callee, p;
147
147
  } catch {
148
148
  try {
149
- return i(arguments, "callee").get;
149
+ return o(arguments, "callee").get;
150
150
  } catch {
151
- return l;
151
+ return p;
152
152
  }
153
153
  }
154
- })() : l, u = Yr()(), f = Object.getPrototypeOf || function(O) {
155
- return O.__proto__;
156
- }, w = {}, g = typeof Uint8Array > "u" ? e : f(Uint8Array), P = {
154
+ })() : p, f = Yr()(), m = Object.getPrototypeOf || function(L) {
155
+ return L.__proto__;
156
+ }, S = {}, v = typeof Uint8Array > "u" ? e : m(Uint8Array), P = {
157
157
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
158
158
  "%Array%": Array,
159
159
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
160
- "%ArrayIteratorPrototype%": u ? f([][Symbol.iterator]()) : e,
160
+ "%ArrayIteratorPrototype%": f ? m([][Symbol.iterator]()) : e,
161
161
  "%AsyncFromSyncIteratorPrototype%": e,
162
- "%AsyncFunction%": w,
163
- "%AsyncGenerator%": w,
164
- "%AsyncGeneratorFunction%": w,
165
- "%AsyncIteratorPrototype%": w,
162
+ "%AsyncFunction%": S,
163
+ "%AsyncGenerator%": S,
164
+ "%AsyncGeneratorFunction%": S,
165
+ "%AsyncIteratorPrototype%": S,
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%": w,
183
+ "%GeneratorFunction%": S,
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%": u ? f(f([][Symbol.iterator]())) : e,
189
+ "%IteratorPrototype%": f ? m(m([][Symbol.iterator]())) : e,
190
190
  "%JSON%": typeof JSON == "object" ? JSON : e,
191
191
  "%Map%": typeof Map > "u" ? e : Map,
192
- "%MapIteratorPrototype%": typeof Map > "u" || !u ? e : f((/* @__PURE__ */ new Map())[Symbol.iterator]()),
192
+ "%MapIteratorPrototype%": typeof Map > "u" || !f ? e : m((/* @__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" || !u ? e : f((/* @__PURE__ */ new Set())[Symbol.iterator]()),
205
+ "%SetIteratorPrototype%": typeof Set > "u" || !f ? e : m((/* @__PURE__ */ new Set())[Symbol.iterator]()),
206
206
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
207
207
  "%String%": String,
208
- "%StringIteratorPrototype%": u ? f(""[Symbol.iterator]()) : e,
209
- "%Symbol%": u ? Symbol : e,
208
+ "%StringIteratorPrototype%": f ? m(""[Symbol.iterator]()) : e,
209
+ "%Symbol%": f ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
- "%ThrowTypeError%": o,
212
- "%TypedArray%": g,
211
+ "%ThrowTypeError%": s,
212
+ "%TypedArray%": v,
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
- }, A = function O(R) {
223
- var L;
224
- if (R === "%AsyncFunction%")
225
- L = n("async function () {}");
226
- else if (R === "%GeneratorFunction%")
227
- L = n("function* () {}");
228
- else if (R === "%AsyncGeneratorFunction%")
229
- L = n("async function* () {}");
230
- else if (R === "%AsyncGenerator%") {
231
- var N = O("%AsyncGeneratorFunction%");
232
- N && (L = N.prototype);
233
- } else if (R === "%AsyncIteratorPrototype%") {
234
- var $ = O("%AsyncGenerator%");
235
- $ && (L = f($.prototype));
222
+ }, b = function L(F) {
223
+ var _;
224
+ if (F === "%AsyncFunction%")
225
+ _ = n("async function () {}");
226
+ else if (F === "%GeneratorFunction%")
227
+ _ = n("function* () {}");
228
+ else if (F === "%AsyncGeneratorFunction%")
229
+ _ = n("async function* () {}");
230
+ else if (F === "%AsyncGenerator%") {
231
+ var R = L("%AsyncGeneratorFunction%");
232
+ R && (_ = R.prototype);
233
+ } else if (F === "%AsyncIteratorPrototype%") {
234
+ var N = L("%AsyncGenerator%");
235
+ N && (_ = m(N.prototype));
236
236
  }
237
- return P[R] = L, L;
238
- }, v = {
237
+ return P[F] = _, _;
238
+ }, A = {
239
239
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
240
240
  "%ArrayPrototype%": ["Array", "prototype"],
241
241
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -287,88 +287,88 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
290
- }, C = mr(), m = et(), c = C.call(Function.call, Array.prototype.concat), x = C.call(Function.apply, Array.prototype.splice), b = C.call(Function.call, String.prototype.replace), T = C.call(Function.call, String.prototype.slice), I = C.call(Function.call, RegExp.prototype.exec), B = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, p = /\\(\\)?/g, y = function(R) {
291
- var L = T(R, 0, 1), N = T(R, -1);
292
- if (L === "%" && N !== "%")
290
+ }, C = yr(), h = et(), d = C.call(Function.call, Array.prototype.concat), E = C.call(Function.apply, Array.prototype.splice), i = C.call(Function.call, String.prototype.replace), c = C.call(Function.call, String.prototype.slice), u = C.call(Function.call, RegExp.prototype.exec), x = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, I = /\\(\\)?/g, O = function(F) {
291
+ var _ = c(F, 0, 1), R = c(F, -1);
292
+ if (_ === "%" && R !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
294
- if (N === "%" && L !== "%")
294
+ if (R === "%" && _ !== "%")
295
295
  throw new r("invalid intrinsic syntax, expected opening `%`");
296
- var $ = [];
297
- return b(R, B, function(U, G, k, j) {
298
- $[$.length] = k ? b(j, p, "$1") : G || U;
299
- }), $;
300
- }, S = function(R, L) {
301
- var N = R, $;
302
- if (m(v, N) && ($ = v[N], N = "%" + $[0] + "%"), m(P, N)) {
303
- var U = P[N];
304
- if (U === w && (U = A(N)), typeof U > "u" && !L)
305
- throw new t("intrinsic " + R + " exists, but is not available. Please file an issue!");
296
+ var N = [];
297
+ return i(F, x, function(B, H, U, q) {
298
+ N[N.length] = U ? i(q, I, "$1") : H || B;
299
+ }), N;
300
+ }, $ = function(F, _) {
301
+ var R = F, N;
302
+ if (h(A, R) && (N = A[R], R = "%" + N[0] + "%"), h(P, R)) {
303
+ var B = P[R];
304
+ if (B === S && (B = b(R)), typeof B > "u" && !_)
305
+ throw new t("intrinsic " + F + " exists, but is not available. Please file an issue!");
306
306
  return {
307
- alias: $,
308
- name: N,
309
- value: U
307
+ alias: N,
308
+ name: R,
309
+ value: B
310
310
  };
311
311
  }
312
- throw new r("intrinsic " + R + " does not exist!");
312
+ throw new r("intrinsic " + F + " does not exist!");
313
313
  };
314
- return rr = function(R, L) {
315
- if (typeof R != "string" || R.length === 0)
314
+ return rr = function(F, _) {
315
+ if (typeof F != "string" || F.length === 0)
316
316
  throw new t("intrinsic name must be a non-empty string");
317
- if (arguments.length > 1 && typeof L != "boolean")
317
+ if (arguments.length > 1 && typeof _ != "boolean")
318
318
  throw new t('"allowMissing" argument must be a boolean');
319
- if (I(/^%?[^%]*%?$/, R) === null)
319
+ if (u(/^%?[^%]*%?$/, F) === null)
320
320
  throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
321
- var N = y(R), $ = N.length > 0 ? N[0] : "", U = S("%" + $ + "%", L), G = U.name, k = U.value, j = !1, Z = U.alias;
322
- Z && ($ = Z[0], x(N, c([0, 1], Z)));
323
- for (var ae = 1, Y = !0; ae < N.length; ae += 1) {
324
- var H = N[ae], re = T(H, 0, 1), K = T(H, -1);
325
- if ((re === '"' || re === "'" || re === "`" || K === '"' || K === "'" || K === "`") && re !== K)
321
+ var R = O(F), N = R.length > 0 ? R[0] : "", B = $("%" + N + "%", _), H = B.name, U = B.value, q = !1, Q = B.alias;
322
+ Q && (N = Q[0], E(R, d([0, 1], Q)));
323
+ for (var z = 1, W = !0; z < R.length; z += 1) {
324
+ var K = R[z], re = c(K, 0, 1), ae = c(K, -1);
325
+ if ((re === '"' || re === "'" || re === "`" || ae === '"' || ae === "'" || ae === "`") && re !== ae)
326
326
  throw new r("property names with quotes must have matching quotes");
327
- if ((H === "constructor" || !Y) && (j = !0), $ += "." + H, G = "%" + $ + "%", m(P, G))
328
- k = P[G];
329
- else if (k != null) {
330
- if (!(H in k)) {
331
- if (!L)
332
- throw new t("base intrinsic for " + R + " exists, but the property is not available.");
327
+ if ((K === "constructor" || !W) && (q = !0), N += "." + K, H = "%" + N + "%", h(P, H))
328
+ U = P[H];
329
+ else if (U != null) {
330
+ if (!(K in U)) {
331
+ if (!_)
332
+ throw new t("base intrinsic for " + F + " exists, but the property is not available.");
333
333
  return;
334
334
  }
335
- if (i && ae + 1 >= N.length) {
336
- var J = i(k, H);
337
- Y = !!J, Y && "get" in J && !("originalValue" in J.get) ? k = J.get : k = k[H];
335
+ if (o && z + 1 >= R.length) {
336
+ var ne = o(U, K);
337
+ W = !!ne, W && "get" in ne && !("originalValue" in ne.get) ? U = ne.get : U = U[K];
338
338
  } else
339
- Y = m(k, H), k = k[H];
340
- Y && !j && (P[G] = k);
339
+ W = h(U, K), U = U[K];
340
+ W && !q && (P[H] = U);
341
341
  }
342
342
  }
343
- return k;
343
+ return U;
344
344
  }, rr;
345
345
  }
346
- var tr = { exports: {} }, Tr;
346
+ var tr = { exports: {} }, Rr;
347
347
  function rt() {
348
- return Tr || (Tr = 1, (function(e) {
349
- var r = mr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), i = a("%Reflect.apply%", !0) || r.call(n, t), l = a("%Object.getOwnPropertyDescriptor%", !0), o = a("%Object.defineProperty%", !0), u = a("%Math.max%");
350
- if (o)
348
+ return Rr || (Rr = 1, (function(e) {
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), p = a("%Object.getOwnPropertyDescriptor%", !0), s = a("%Object.defineProperty%", !0), f = a("%Math.max%");
350
+ if (s)
351
351
  try {
352
- o({}, "a", { value: 1 });
352
+ s({}, "a", { value: 1 });
353
353
  } catch {
354
- o = null;
354
+ s = null;
355
355
  }
356
- e.exports = function(g) {
357
- var P = i(r, n, arguments);
358
- if (l && o) {
359
- var A = l(P, "length");
360
- A.configurable && o(
356
+ e.exports = function(v) {
357
+ var P = o(r, n, arguments);
358
+ if (p && s) {
359
+ var b = p(P, "length");
360
+ b.configurable && s(
361
361
  P,
362
362
  "length",
363
- { value: 1 + u(0, g.length - (arguments.length - 1)) }
363
+ { value: 1 + f(0, v.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
366
  return P;
367
367
  };
368
- var f = function() {
369
- return i(r, t, arguments);
368
+ var m = function() {
369
+ return o(r, t, arguments);
370
370
  };
371
- o ? o(e.exports, "apply", { value: f }) : e.exports.apply = f;
371
+ s ? s(e.exports, "apply", { value: m }) : e.exports.apply = m;
372
372
  })(tr)), tr.exports;
373
373
  }
374
374
  var ar, kr;
@@ -376,9 +376,9 @@ function tt() {
376
376
  if (kr) return ar;
377
377
  kr = 1;
378
378
  var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
379
- return ar = function(n, i) {
380
- var l = e(n, !!i);
381
- return typeof l == "function" && a(n, ".prototype.") > -1 ? r(l) : l;
379
+ return ar = function(n, o) {
380
+ var p = e(n, !!o);
381
+ return typeof p == "function" && a(n, ".prototype.") > -1 ? r(p) : p;
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, i = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, l = n && i && typeof i.get == "function" ? i.get : null, o = n && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype, f = u ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, g = w ? WeakSet.prototype.has : null, P = typeof WeakRef == "function" && WeakRef.prototype, A = P ? WeakRef.prototype.deref : null, v = Boolean.prototype.valueOf, C = Object.prototype.toString, m = Function.prototype.toString, c = String.prototype.match, x = String.prototype.slice, b = String.prototype.replace, T = String.prototype.toUpperCase, I = String.prototype.toLowerCase, B = RegExp.prototype.test, p = Array.prototype.concat, y = Array.prototype.join, S = Array.prototype.slice, O = Math.floor, R = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, L = Object.getOwnPropertySymbols, N = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, $ = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === $ || !0) ? Symbol.toStringTag : null, G = Object.prototype.propertyIsEnumerable, k = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(d) {
393
- return d.__proto__;
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, p = n && o && typeof o.get == "function" ? o.get : null, s = n && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, m = f ? WeakMap.prototype.has : null, S = typeof WeakSet == "function" && WeakSet.prototype, v = S ? WeakSet.prototype.has : null, P = typeof WeakRef == "function" && WeakRef.prototype, b = P ? WeakRef.prototype.deref : null, A = Boolean.prototype.valueOf, C = Object.prototype.toString, h = Function.prototype.toString, d = String.prototype.match, E = String.prototype.slice, i = String.prototype.replace, c = String.prototype.toUpperCase, u = String.prototype.toLowerCase, x = RegExp.prototype.test, I = Array.prototype.concat, O = Array.prototype.join, $ = Array.prototype.slice, L = Math.floor, F = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _ = Object.getOwnPropertySymbols, R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, N = typeof Symbol == "function" && typeof Symbol.iterator == "object", B = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === N || !0) ? Symbol.toStringTag : null, H = Object.prototype.propertyIsEnumerable, U = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(y) {
393
+ return y.__proto__;
394
394
  } : null);
395
- function j(d, h) {
396
- if (d === 1 / 0 || d === -1 / 0 || d !== d || d && d > -1e3 && d < 1e3 || B.call(/e/, h))
397
- return h;
398
- var z = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
- if (typeof d == "number") {
400
- var s = d < 0 ? -O(-d) : O(d);
401
- if (s !== d) {
402
- var E = String(s), M = x.call(h, E.length + 1);
403
- return b.call(E, z, "$&_") + "." + b.call(b.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
395
+ function q(y, g) {
396
+ if (y === 1 / 0 || y === -1 / 0 || y !== y || y && y > -1e3 && y < 1e3 || x.call(/e/, g))
397
+ return g;
398
+ var j = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
+ if (typeof y == "number") {
400
+ var l = y < 0 ? -L(-y) : L(y);
401
+ if (l !== y) {
402
+ var w = String(l), M = E.call(g, w.length + 1);
403
+ return i.call(w, j, "$&_") + "." + i.call(i.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
- return b.call(h, z, "$&_");
406
+ return i.call(g, j, "$&_");
407
407
  }
408
- var Z = it, ae = Z.custom, Y = ue(ae) ? ae : null;
409
- nr = function d(h, z, s, E) {
410
- var M = z || {};
411
- if (X(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
408
+ var Q = it, z = Q.custom, W = se(z) ? z : null;
409
+ nr = function y(g, j, l, w) {
410
+ var M = j || {};
411
+ if (Y(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
413
- if (X(M, "maxStringLength") && (typeof M.maxStringLength == "number" ? M.maxStringLength < 0 && M.maxStringLength !== 1 / 0 : M.maxStringLength !== null))
413
+ if (Y(M, "maxStringLength") && (typeof M.maxStringLength == "number" ? M.maxStringLength < 0 && M.maxStringLength !== 1 / 0 : M.maxStringLength !== null))
414
414
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
415
- var V = X(M, "customInspect") ? M.customInspect : !0;
416
- if (typeof V != "boolean" && V !== "symbol")
415
+ var D = Y(M, "customInspect") ? M.customInspect : !0;
416
+ if (typeof D != "boolean" && D !== "symbol")
417
417
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
418
- if (X(M, "indent") && M.indent !== null && M.indent !== " " && !(parseInt(M.indent, 10) === M.indent && M.indent > 0))
418
+ if (Y(M, "indent") && M.indent !== null && M.indent !== " " && !(parseInt(M.indent, 10) === M.indent && M.indent > 0))
419
419
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
420
- if (X(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
420
+ if (Y(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
421
421
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
422
422
  var ie = M.numericSeparator;
423
- if (typeof h > "u")
423
+ if (typeof g > "u")
424
424
  return "undefined";
425
- if (h === null)
425
+ if (g === null)
426
426
  return "null";
427
- if (typeof h == "boolean")
428
- return h ? "true" : "false";
429
- if (typeof h == "string")
430
- return Ce(h, M);
431
- if (typeof h == "number") {
432
- if (h === 0)
433
- return 1 / 0 / h > 0 ? "0" : "-0";
434
- var q = String(h);
435
- return ie ? j(h, q) : q;
427
+ if (typeof g == "boolean")
428
+ return g ? "true" : "false";
429
+ if (typeof g == "string")
430
+ return Ce(g, M);
431
+ if (typeof g == "number") {
432
+ if (g === 0)
433
+ return 1 / 0 / g > 0 ? "0" : "-0";
434
+ var J = String(g);
435
+ return ie ? q(g, J) : J;
436
436
  }
437
- if (typeof h == "bigint") {
438
- var _ = String(h) + "n";
439
- return ie ? j(h, _) : _;
437
+ if (typeof g == "bigint") {
438
+ var T = String(g) + "n";
439
+ return ie ? q(g, T) : T;
440
440
  }
441
- var D = typeof M.depth > "u" ? 5 : M.depth;
442
- if (typeof s > "u" && (s = 0), s >= D && D > 0 && typeof h == "object")
443
- return K(h) ? "[Array]" : "[Object]";
444
- var W = Le(M, s);
445
- if (typeof E > "u")
446
- E = [];
447
- else if (xe(E, h) >= 0)
441
+ var G = typeof M.depth > "u" ? 5 : M.depth;
442
+ if (typeof l > "u" && (l = 0), l >= G && G > 0 && typeof g == "object")
443
+ return ae(g) ? "[Array]" : "[Object]";
444
+ var V = Le(M, l);
445
+ if (typeof w > "u")
446
+ w = [];
447
+ else if (xe(w, g) >= 0)
448
448
  return "[Circular]";
449
- function Q(Me, Ge, Jr) {
450
- if (Ge && (E = S.call(E), E.push(Ge)), Jr) {
449
+ function Z(Me, Ge, Jr) {
450
+ if (Ge && (w = $.call(w), w.push(Ge)), Jr) {
451
451
  var xr = {
452
452
  depth: M.depth
453
453
  };
454
- return X(M, "quoteStyle") && (xr.quoteStyle = M.quoteStyle), d(Me, xr, s + 1, E);
454
+ return Y(M, "quoteStyle") && (xr.quoteStyle = M.quoteStyle), y(Me, xr, l + 1, w);
455
455
  }
456
- return d(Me, M, s + 1, E);
456
+ return y(Me, M, l + 1, w);
457
457
  }
458
- if (typeof h == "function" && !oe(h)) {
459
- var te = Ie(h), we = ge(h, Q);
460
- return "[Function" + (te ? ": " + te : " (anonymous)") + "]" + (we.length > 0 ? " { " + y.call(we, ", ") + " }" : "");
458
+ if (typeof g == "function" && !ce(g)) {
459
+ var ee = Ie(g), we = ge(g, Z);
460
+ return "[Function" + (ee ? ": " + ee : " (anonymous)") + "]" + (we.length > 0 ? " { " + O.call(we, ", ") + " }" : "");
461
461
  }
462
- if (ue(h)) {
463
- var Ar = $ ? b.call(String(h), /^(Symbol\(.*\))_[^)]*$/, "$1") : N.call(h);
464
- return typeof h == "object" && !$ ? le(Ar) : Ar;
462
+ if (se(g)) {
463
+ var Ar = N ? i.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : R.call(g);
464
+ return typeof g == "object" && !N ? le(Ar) : Ar;
465
465
  }
466
- if (_e(h)) {
467
- for (var Fe = "<" + I.call(String(h.nodeName)), ze = h.attributes || [], Be = 0; Be < ze.length; Be++)
468
- Fe += " " + ze[Be].name + "=" + H(re(ze[Be].value), "double", M);
469
- return Fe += ">", h.childNodes && h.childNodes.length && (Fe += "..."), Fe += "</" + I.call(String(h.nodeName)) + ">", Fe;
466
+ if (_e(g)) {
467
+ for (var Fe = "<" + u.call(String(g.nodeName)), ze = g.attributes || [], Be = 0; Be < ze.length; Be++)
468
+ Fe += " " + ze[Be].name + "=" + K(re(ze[Be].value), "double", M);
469
+ return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + u.call(String(g.nodeName)) + ">", Fe;
470
470
  }
471
- if (K(h)) {
472
- if (h.length === 0)
471
+ if (ae(g)) {
472
+ if (g.length === 0)
473
473
  return "[]";
474
- var We = ge(h, Q);
475
- return W && !Oe(We) ? "[" + he(We, W) + "]" : "[ " + y.call(We, ", ") + " ]";
474
+ var We = ge(g, Z);
475
+ return V && !Oe(We) ? "[" + he(We, V) + "]" : "[ " + O.call(We, ", ") + " ]";
476
476
  }
477
- if (ce(h)) {
478
- var Ke = ge(h, Q);
479
- return !("cause" in Error.prototype) && "cause" in h && !G.call(h, "cause") ? "{ [" + String(h) + "] " + y.call(p.call("[cause]: " + Q(h.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(h) + "]" : "{ [" + String(h) + "] " + y.call(Ke, ", ") + " }";
477
+ if (ue(g)) {
478
+ var Ke = ge(g, Z);
479
+ return !("cause" in Error.prototype) && "cause" in g && !H.call(g, "cause") ? "{ [" + String(g) + "] " + O.call(I.call("[cause]: " + Z(g.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(g) + "]" : "{ [" + String(g) + "] " + O.call(Ke, ", ") + " }";
480
480
  }
481
- if (typeof h == "object" && V) {
482
- if (Y && typeof h[Y] == "function" && Z)
483
- return Z(h, { depth: D - s });
484
- if (V !== "symbol" && typeof h.inspect == "function")
485
- return h.inspect();
481
+ if (typeof g == "object" && D) {
482
+ if (W && typeof g[W] == "function" && Q)
483
+ return Q(g, { depth: G - l });
484
+ if (D !== "symbol" && typeof g.inspect == "function")
485
+ return g.inspect();
486
486
  }
487
- if (Re(h)) {
487
+ if (Te(g)) {
488
488
  var br = [];
489
- return t.call(h, function(Me, Ge) {
490
- br.push(Q(Ge, h, !0) + " => " + Q(Me, h));
491
- }), Se("Map", a.call(h), br, W);
489
+ return t.call(g, function(Me, Ge) {
490
+ br.push(Z(Ge, g, !0) + " => " + Z(Me, g));
491
+ }), Se("Map", a.call(g), br, V);
492
492
  }
493
- if (Te(h)) {
493
+ if (Re(g)) {
494
494
  var Sr = [];
495
- return o.call(h, function(Me) {
496
- Sr.push(Q(Me, h));
497
- }), Se("Set", l.call(h), Sr, W);
495
+ return s.call(g, function(Me) {
496
+ Sr.push(Z(Me, g));
497
+ }), Se("Set", p.call(g), Sr, V);
498
498
  }
499
- if (ye(h))
499
+ if (me(g))
500
500
  return fe("WeakMap");
501
- if (ke(h))
501
+ if (ke(g))
502
502
  return fe("WeakSet");
503
- if (Pe(h))
503
+ if (Pe(g))
504
504
  return fe("WeakRef");
505
- if (de(h))
506
- return le(Q(Number(h)));
507
- if (me(h))
508
- return le(Q(R.call(h)));
509
- if (pe(h))
510
- return le(v.call(h));
511
- if (se(h))
512
- return le(Q(String(h)));
513
- if (!J(h) && !oe(h)) {
514
- var He = ge(h, Q), wr = k ? k(h) === Object.prototype : h instanceof Object || h.constructor === Object, Je = h instanceof Object ? "" : "null prototype", Er = !wr && U && Object(h) === h && U in h ? x.call(ne(h), 8, -1) : Je ? "Object" : "", Hr = wr || typeof h.constructor != "function" ? "" : h.constructor.name ? h.constructor.name + " " : "", Ze = Hr + (Er || Je ? "[" + y.call(p.call([], Er || [], Je || []), ": ") + "] " : "");
515
- return He.length === 0 ? Ze + "{}" : W ? Ze + "{" + he(He, W) + "}" : Ze + "{ " + y.call(He, ", ") + " }";
505
+ if (de(g))
506
+ return le(Z(Number(g)));
507
+ if (ye(g))
508
+ return le(Z(F.call(g)));
509
+ if (pe(g))
510
+ return le(A.call(g));
511
+ if (oe(g))
512
+ return le(Z(String(g)));
513
+ if (!ne(g) && !ce(g)) {
514
+ var He = ge(g, Z), wr = U ? U(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && B && Object(g) === g && B in g ? E.call(te(g), 8, -1) : Je ? "Object" : "", Hr = wr || typeof g.constructor != "function" ? "" : g.constructor.name ? g.constructor.name + " " : "", Ze = Hr + (Er || Je ? "[" + O.call(I.call([], Er || [], Je || []), ": ") + "] " : "");
515
+ return He.length === 0 ? Ze + "{}" : V ? Ze + "{" + he(He, V) + "}" : Ze + "{ " + O.call(He, ", ") + " }";
516
516
  }
517
- return String(h);
517
+ return String(g);
518
518
  };
519
- function H(d, h, z) {
520
- var s = (z.quoteStyle || h) === "double" ? '"' : "'";
521
- return s + d + s;
519
+ function K(y, g, j) {
520
+ var l = (j.quoteStyle || g) === "double" ? '"' : "'";
521
+ return l + y + l;
522
522
  }
523
- function re(d) {
524
- return b.call(String(d), /"/g, "&quot;");
523
+ function re(y) {
524
+ return i.call(String(y), /"/g, "&quot;");
525
525
  }
526
- function K(d) {
527
- return ne(d) === "[object Array]" && (!U || !(typeof d == "object" && U in d));
526
+ function ae(y) {
527
+ return te(y) === "[object Array]" && (!B || !(typeof y == "object" && B in y));
528
528
  }
529
- function J(d) {
530
- return ne(d) === "[object Date]" && (!U || !(typeof d == "object" && U in d));
529
+ function ne(y) {
530
+ return te(y) === "[object Date]" && (!B || !(typeof y == "object" && B in y));
531
531
  }
532
- function oe(d) {
533
- return ne(d) === "[object RegExp]" && (!U || !(typeof d == "object" && U in d));
532
+ function ce(y) {
533
+ return te(y) === "[object RegExp]" && (!B || !(typeof y == "object" && B in y));
534
534
  }
535
- function ce(d) {
536
- return ne(d) === "[object Error]" && (!U || !(typeof d == "object" && U in d));
535
+ function ue(y) {
536
+ return te(y) === "[object Error]" && (!B || !(typeof y == "object" && B in y));
537
537
  }
538
- function se(d) {
539
- return ne(d) === "[object String]" && (!U || !(typeof d == "object" && U in d));
538
+ function oe(y) {
539
+ return te(y) === "[object String]" && (!B || !(typeof y == "object" && B in y));
540
540
  }
541
- function de(d) {
542
- return ne(d) === "[object Number]" && (!U || !(typeof d == "object" && U in d));
541
+ function de(y) {
542
+ return te(y) === "[object Number]" && (!B || !(typeof y == "object" && B in y));
543
543
  }
544
- function pe(d) {
545
- return ne(d) === "[object Boolean]" && (!U || !(typeof d == "object" && U in d));
544
+ function pe(y) {
545
+ return te(y) === "[object Boolean]" && (!B || !(typeof y == "object" && B in y));
546
546
  }
547
- function ue(d) {
548
- if ($)
549
- return d && typeof d == "object" && d instanceof Symbol;
550
- if (typeof d == "symbol")
547
+ function se(y) {
548
+ if (N)
549
+ return y && typeof y == "object" && y instanceof Symbol;
550
+ if (typeof y == "symbol")
551
551
  return !0;
552
- if (!d || typeof d != "object" || !N)
552
+ if (!y || typeof y != "object" || !R)
553
553
  return !1;
554
554
  try {
555
- return N.call(d), !0;
555
+ return R.call(y), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
559
559
  }
560
- function me(d) {
561
- if (!d || typeof d != "object" || !R)
560
+ function ye(y) {
561
+ if (!y || typeof y != "object" || !F)
562
562
  return !1;
563
563
  try {
564
- return R.call(d), !0;
564
+ return F.call(y), !0;
565
565
  } catch {
566
566
  }
567
567
  return !1;
568
568
  }
569
- var be = Object.prototype.hasOwnProperty || function(d) {
570
- return d in this;
569
+ var be = Object.prototype.hasOwnProperty || function(y) {
570
+ return y in this;
571
571
  };
572
- function X(d, h) {
573
- return be.call(d, h);
574
- }
575
- function ne(d) {
576
- return C.call(d);
577
- }
578
- function Ie(d) {
579
- if (d.name)
580
- return d.name;
581
- var h = c.call(m.call(d), /^function\s*([\w$]+)/);
582
- return h ? h[1] : null;
583
- }
584
- function xe(d, h) {
585
- if (d.indexOf)
586
- return d.indexOf(h);
587
- for (var z = 0, s = d.length; z < s; z++)
588
- if (d[z] === h)
589
- return z;
572
+ function Y(y, g) {
573
+ return be.call(y, g);
574
+ }
575
+ function te(y) {
576
+ return C.call(y);
577
+ }
578
+ function Ie(y) {
579
+ if (y.name)
580
+ return y.name;
581
+ var g = d.call(h.call(y), /^function\s*([\w$]+)/);
582
+ return g ? g[1] : null;
583
+ }
584
+ function xe(y, g) {
585
+ if (y.indexOf)
586
+ return y.indexOf(g);
587
+ for (var j = 0, l = y.length; j < l; j++)
588
+ if (y[j] === g)
589
+ return j;
590
590
  return -1;
591
591
  }
592
- function Re(d) {
593
- if (!a || !d || typeof d != "object")
592
+ function Te(y) {
593
+ if (!a || !y || typeof y != "object")
594
594
  return !1;
595
595
  try {
596
- a.call(d);
596
+ a.call(y);
597
597
  try {
598
- l.call(d);
598
+ p.call(y);
599
599
  } catch {
600
600
  return !0;
601
601
  }
602
- return d instanceof Map;
602
+ return y instanceof Map;
603
603
  } catch {
604
604
  }
605
605
  return !1;
606
606
  }
607
- function ye(d) {
608
- if (!f || !d || typeof d != "object")
607
+ function me(y) {
608
+ if (!m || !y || typeof y != "object")
609
609
  return !1;
610
610
  try {
611
- f.call(d, f);
611
+ m.call(y, m);
612
612
  try {
613
- g.call(d, g);
613
+ v.call(y, v);
614
614
  } catch {
615
615
  return !0;
616
616
  }
617
- return d instanceof WeakMap;
617
+ return y instanceof WeakMap;
618
618
  } catch {
619
619
  }
620
620
  return !1;
621
621
  }
622
- function Pe(d) {
623
- if (!A || !d || typeof d != "object")
622
+ function Pe(y) {
623
+ if (!b || !y || typeof y != "object")
624
624
  return !1;
625
625
  try {
626
- return A.call(d), !0;
626
+ return b.call(y), !0;
627
627
  } catch {
628
628
  }
629
629
  return !1;
630
630
  }
631
- function Te(d) {
632
- if (!l || !d || typeof d != "object")
631
+ function Re(y) {
632
+ if (!p || !y || typeof y != "object")
633
633
  return !1;
634
634
  try {
635
- l.call(d);
635
+ p.call(y);
636
636
  try {
637
- a.call(d);
637
+ a.call(y);
638
638
  } catch {
639
639
  return !0;
640
640
  }
641
- return d instanceof Set;
641
+ return y instanceof Set;
642
642
  } catch {
643
643
  }
644
644
  return !1;
645
645
  }
646
- function ke(d) {
647
- if (!g || !d || typeof d != "object")
646
+ function ke(y) {
647
+ if (!v || !y || typeof y != "object")
648
648
  return !1;
649
649
  try {
650
- g.call(d, g);
650
+ v.call(y, v);
651
651
  try {
652
- f.call(d, f);
652
+ m.call(y, m);
653
653
  } catch {
654
654
  return !0;
655
655
  }
656
- return d instanceof WeakSet;
656
+ return y instanceof WeakSet;
657
657
  } catch {
658
658
  }
659
659
  return !1;
660
660
  }
661
- function _e(d) {
662
- return !d || typeof d != "object" ? !1 : typeof HTMLElement < "u" && d instanceof HTMLElement ? !0 : typeof d.nodeName == "string" && typeof d.getAttribute == "function";
661
+ function _e(y) {
662
+ return !y || typeof y != "object" ? !1 : typeof HTMLElement < "u" && y instanceof HTMLElement ? !0 : typeof y.nodeName == "string" && typeof y.getAttribute == "function";
663
663
  }
664
- function Ce(d, h) {
665
- if (d.length > h.maxStringLength) {
666
- var z = d.length - h.maxStringLength, s = "... " + z + " more character" + (z > 1 ? "s" : "");
667
- return Ce(x.call(d, 0, h.maxStringLength), h) + s;
664
+ function Ce(y, g) {
665
+ if (y.length > g.maxStringLength) {
666
+ var j = y.length - g.maxStringLength, l = "... " + j + " more character" + (j > 1 ? "s" : "");
667
+ return Ce(E.call(y, 0, g.maxStringLength), g) + l;
668
668
  }
669
- var E = b.call(b.call(d, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
- return H(E, "single", h);
669
+ var w = i.call(i.call(y, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
+ return K(w, "single", g);
671
671
  }
672
- function Ne(d) {
673
- var h = d.charCodeAt(0), z = {
672
+ function Ne(y) {
673
+ var g = y.charCodeAt(0), j = {
674
674
  8: "b",
675
675
  9: "t",
676
676
  10: "n",
677
677
  12: "f",
678
678
  13: "r"
679
- }[h];
680
- return z ? "\\" + z : "\\x" + (h < 16 ? "0" : "") + T.call(h.toString(16));
679
+ }[g];
680
+ return j ? "\\" + j : "\\x" + (g < 16 ? "0" : "") + c.call(g.toString(16));
681
681
  }
682
- function le(d) {
683
- return "Object(" + d + ")";
682
+ function le(y) {
683
+ return "Object(" + y + ")";
684
684
  }
685
- function fe(d) {
686
- return d + " { ? }";
685
+ function fe(y) {
686
+ return y + " { ? }";
687
687
  }
688
- function Se(d, h, z, s) {
689
- var E = s ? he(z, s) : y.call(z, ", ");
690
- return d + " (" + h + ") {" + E + "}";
688
+ function Se(y, g, j, l) {
689
+ var w = l ? he(j, l) : O.call(j, ", ");
690
+ return y + " (" + g + ") {" + w + "}";
691
691
  }
692
- function Oe(d) {
693
- for (var h = 0; h < d.length; h++)
694
- if (xe(d[h], `
692
+ function Oe(y) {
693
+ for (var g = 0; g < y.length; g++)
694
+ if (xe(y[g], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
698
698
  }
699
- function Le(d, h) {
700
- var z;
701
- if (d.indent === " ")
702
- z = " ";
703
- else if (typeof d.indent == "number" && d.indent > 0)
704
- z = y.call(Array(d.indent + 1), " ");
699
+ function Le(y, g) {
700
+ var j;
701
+ if (y.indent === " ")
702
+ j = " ";
703
+ else if (typeof y.indent == "number" && y.indent > 0)
704
+ j = O.call(Array(y.indent + 1), " ");
705
705
  else
706
706
  return null;
707
707
  return {
708
- base: z,
709
- prev: y.call(Array(h + 1), z)
708
+ base: j,
709
+ prev: O.call(Array(g + 1), j)
710
710
  };
711
711
  }
712
- function he(d, h) {
713
- if (d.length === 0)
712
+ function he(y, g) {
713
+ if (y.length === 0)
714
714
  return "";
715
- var z = `
716
- ` + h.prev + h.base;
717
- return z + y.call(d, "," + z) + `
718
- ` + h.prev;
719
- }
720
- function ge(d, h) {
721
- var z = K(d), s = [];
722
- if (z) {
723
- s.length = d.length;
724
- for (var E = 0; E < d.length; E++)
725
- s[E] = X(d, E) ? h(d[E], d) : "";
715
+ var j = `
716
+ ` + g.prev + g.base;
717
+ return j + O.call(y, "," + j) + `
718
+ ` + g.prev;
719
+ }
720
+ function ge(y, g) {
721
+ var j = ae(y), l = [];
722
+ if (j) {
723
+ l.length = y.length;
724
+ for (var w = 0; w < y.length; w++)
725
+ l[w] = Y(y, w) ? g(y[w], y) : "";
726
726
  }
727
- var M = typeof L == "function" ? L(d) : [], V;
728
- if ($) {
729
- V = {};
727
+ var M = typeof _ == "function" ? _(y) : [], D;
728
+ if (N) {
729
+ D = {};
730
730
  for (var ie = 0; ie < M.length; ie++)
731
- V["$" + M[ie]] = M[ie];
731
+ D["$" + M[ie]] = M[ie];
732
732
  }
733
- for (var q in d)
734
- X(d, q) && (z && String(Number(q)) === q && q < d.length || $ && V["$" + q] instanceof Symbol || (B.call(/[^\w$]/, q) ? s.push(h(q, d) + ": " + h(d[q], d)) : s.push(q + ": " + h(d[q], d))));
735
- if (typeof L == "function")
736
- for (var _ = 0; _ < M.length; _++)
737
- G.call(d, M[_]) && s.push("[" + h(M[_]) + "]: " + h(d[M[_]], d));
738
- return s;
733
+ for (var J in y)
734
+ Y(y, J) && (j && String(Number(J)) === J && J < y.length || N && D["$" + J] instanceof Symbol || (x.call(/[^\w$]/, J) ? l.push(g(J, y) + ": " + g(y[J], y)) : l.push(J + ": " + g(y[J], y))));
735
+ if (typeof _ == "function")
736
+ for (var T = 0; T < M.length; T++)
737
+ H.call(y, M[T]) && l.push("[" + g(M[T]) + "]: " + g(y[M[T]], y));
738
+ return l;
739
739
  }
740
740
  return nr;
741
741
  }
@@ -743,56 +743,56 @@ 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), i = e("%Map%", !0), l = r("WeakMap.prototype.get", !0), o = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), f = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), g = r("Map.prototype.has", !0), P = function(m, c) {
747
- for (var x = m, b; (b = x.next) !== null; x = b)
748
- if (b.key === c)
749
- return x.next = b.next, b.next = m.next, m.next = b, b;
750
- }, A = function(m, c) {
751
- var x = P(m, c);
752
- return x && x.value;
753
- }, v = function(m, c, x) {
754
- var b = P(m, c);
755
- b ? b.value = x : m.next = {
746
+ var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), p = r("WeakMap.prototype.get", !0), s = r("WeakMap.prototype.set", !0), f = r("WeakMap.prototype.has", !0), m = r("Map.prototype.get", !0), S = r("Map.prototype.set", !0), v = r("Map.prototype.has", !0), P = function(h, d) {
747
+ for (var E = h, i; (i = E.next) !== null; E = i)
748
+ if (i.key === d)
749
+ return E.next = i.next, i.next = h.next, h.next = i, i;
750
+ }, b = function(h, d) {
751
+ var E = P(h, d);
752
+ return E && E.value;
753
+ }, A = function(h, d, E) {
754
+ var i = P(h, d);
755
+ i ? i.value = E : h.next = {
756
756
  // eslint-disable-line no-param-reassign
757
- key: c,
758
- next: m.next,
759
- value: x
757
+ key: d,
758
+ next: h.next,
759
+ value: E
760
760
  };
761
- }, C = function(m, c) {
762
- return !!P(m, c);
761
+ }, C = function(h, d) {
762
+ return !!P(h, d);
763
763
  };
764
764
  return ir = function() {
765
- var c, x, b, T = {
766
- assert: function(I) {
767
- if (!T.has(I))
768
- throw new t("Side channel does not contain " + a(I));
765
+ var d, E, i, c = {
766
+ assert: function(u) {
767
+ if (!c.has(u))
768
+ throw new t("Side channel does not contain " + a(u));
769
769
  },
770
- get: function(I) {
771
- if (n && I && (typeof I == "object" || typeof I == "function")) {
772
- if (c)
773
- return l(c, I);
774
- } else if (i) {
775
- if (x)
776
- return f(x, I);
777
- } else if (b)
778
- return A(b, I);
770
+ get: function(u) {
771
+ if (n && u && (typeof u == "object" || typeof u == "function")) {
772
+ if (d)
773
+ return p(d, u);
774
+ } else if (o) {
775
+ if (E)
776
+ return m(E, u);
777
+ } else if (i)
778
+ return b(i, u);
779
779
  },
780
- has: function(I) {
781
- if (n && I && (typeof I == "object" || typeof I == "function")) {
782
- if (c)
783
- return u(c, I);
784
- } else if (i) {
785
- if (x)
786
- return g(x, I);
787
- } else if (b)
788
- return C(b, I);
780
+ has: function(u) {
781
+ if (n && u && (typeof u == "object" || typeof u == "function")) {
782
+ if (d)
783
+ return f(d, u);
784
+ } else if (o) {
785
+ if (E)
786
+ return v(E, u);
787
+ } else if (i)
788
+ return C(i, u);
789
789
  return !1;
790
790
  },
791
- set: function(I, B) {
792
- n && I && (typeof I == "object" || typeof I == "function") ? (c || (c = new n()), o(c, I, B)) : i ? (x || (x = new i()), w(x, I, B)) : (b || (b = { key: {}, next: null }), v(b, I, B));
791
+ set: function(u, x) {
792
+ n && u && (typeof u == "object" || typeof u == "function") ? (d || (d = new n()), s(d, u, x)) : o ? (E || (E = new o()), S(E, u, x)) : (i || (i = { key: {}, next: null }), A(i, u, x));
793
793
  }
794
794
  };
795
- return T;
795
+ return c;
796
796
  }, ir;
797
797
  }
798
798
  var or, Lr;
@@ -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 C = [], m = 0; m < 256; ++m)
826
- C.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
825
+ for (var C = [], h = 0; h < 256; ++h)
826
+ C.push("%" + ((h < 16 ? "0" : "") + h.toString(16)).toUpperCase());
827
827
  return C;
828
- })(), n = function(m) {
829
- for (; m.length > 1; ) {
830
- var c = m.pop(), x = c.obj[c.prop];
831
- if (a(x)) {
832
- for (var b = [], T = 0; T < x.length; ++T)
833
- typeof x[T] < "u" && b.push(x[T]);
834
- c.obj[c.prop] = b;
828
+ })(), n = function(h) {
829
+ for (; h.length > 1; ) {
830
+ var d = h.pop(), E = d.obj[d.prop];
831
+ if (a(E)) {
832
+ for (var i = [], c = 0; c < E.length; ++c)
833
+ typeof E[c] < "u" && i.push(E[c]);
834
+ d.obj[d.prop] = i;
835
835
  }
836
836
  }
837
- }, i = function(m, c) {
838
- for (var x = c && c.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = 0; b < m.length; ++b)
839
- typeof m[b] < "u" && (x[b] = m[b]);
840
- return x;
841
- }, l = function C(m, c, x) {
842
- if (!c)
843
- return m;
844
- if (typeof c != "object") {
845
- if (a(m))
846
- m.push(c);
847
- else if (m && typeof m == "object")
848
- (x && (x.plainObjects || x.allowPrototypes) || !r.call(Object.prototype, c)) && (m[c] = !0);
837
+ }, o = function(h, d) {
838
+ for (var E = d && d.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < h.length; ++i)
839
+ typeof h[i] < "u" && (E[i] = h[i]);
840
+ return E;
841
+ }, p = function C(h, d, E) {
842
+ if (!d)
843
+ return h;
844
+ if (typeof d != "object") {
845
+ if (a(h))
846
+ h.push(d);
847
+ else if (h && typeof h == "object")
848
+ (E && (E.plainObjects || E.allowPrototypes) || !r.call(Object.prototype, d)) && (h[d] = !0);
849
849
  else
850
- return [m, c];
851
- return m;
850
+ return [h, d];
851
+ return h;
852
852
  }
853
- if (!m || typeof m != "object")
854
- return [m].concat(c);
855
- var b = m;
856
- return a(m) && !a(c) && (b = i(m, x)), a(m) && a(c) ? (c.forEach(function(T, I) {
857
- if (r.call(m, I)) {
858
- var B = m[I];
859
- B && typeof B == "object" && T && typeof T == "object" ? m[I] = C(B, T, x) : m.push(T);
853
+ if (!h || typeof h != "object")
854
+ return [h].concat(d);
855
+ var i = h;
856
+ return a(h) && !a(d) && (i = o(h, E)), a(h) && a(d) ? (d.forEach(function(c, u) {
857
+ if (r.call(h, u)) {
858
+ var x = h[u];
859
+ x && typeof x == "object" && c && typeof c == "object" ? h[u] = C(x, c, E) : h.push(c);
860
860
  } else
861
- m[I] = T;
862
- }), m) : Object.keys(c).reduce(function(T, I) {
863
- var B = c[I];
864
- return r.call(T, I) ? T[I] = C(T[I], B, x) : T[I] = B, T;
865
- }, b);
866
- }, o = function(m, c) {
867
- return Object.keys(c).reduce(function(x, b) {
868
- return x[b] = c[b], x;
869
- }, m);
870
- }, u = function(C, m, c) {
871
- var x = C.replace(/\+/g, " ");
872
- if (c === "iso-8859-1")
873
- return x.replace(/%[0-9a-f]{2}/gi, unescape);
861
+ h[u] = c;
862
+ }), h) : Object.keys(d).reduce(function(c, u) {
863
+ var x = d[u];
864
+ return r.call(c, u) ? c[u] = C(c[u], x, E) : c[u] = x, c;
865
+ }, i);
866
+ }, s = function(h, d) {
867
+ return Object.keys(d).reduce(function(E, i) {
868
+ return E[i] = d[i], E;
869
+ }, h);
870
+ }, f = function(C, h, d) {
871
+ var E = C.replace(/\+/g, " ");
872
+ if (d === "iso-8859-1")
873
+ return E.replace(/%[0-9a-f]{2}/gi, unescape);
874
874
  try {
875
- return decodeURIComponent(x);
875
+ return decodeURIComponent(E);
876
876
  } catch {
877
- return x;
877
+ return E;
878
878
  }
879
- }, f = function(m, c, x, b, T) {
880
- if (m.length === 0)
881
- return m;
882
- var I = m;
883
- if (typeof m == "symbol" ? I = Symbol.prototype.toString.call(m) : typeof m != "string" && (I = String(m)), x === "iso-8859-1")
884
- return escape(I).replace(/%u[0-9a-f]{4}/gi, function(S) {
885
- return "%26%23" + parseInt(S.slice(2), 16) + "%3B";
879
+ }, m = function(h, d, E, i, c) {
880
+ if (h.length === 0)
881
+ return h;
882
+ var u = h;
883
+ if (typeof h == "symbol" ? u = Symbol.prototype.toString.call(h) : typeof h != "string" && (u = String(h)), E === "iso-8859-1")
884
+ return escape(u).replace(/%u[0-9a-f]{4}/gi, function($) {
885
+ return "%26%23" + parseInt($.slice(2), 16) + "%3B";
886
886
  });
887
- for (var B = "", p = 0; p < I.length; ++p) {
888
- var y = I.charCodeAt(p);
889
- if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || T === e.RFC1738 && (y === 40 || y === 41)) {
890
- B += I.charAt(p);
887
+ for (var x = "", I = 0; I < u.length; ++I) {
888
+ var O = u.charCodeAt(I);
889
+ if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || c === e.RFC1738 && (O === 40 || O === 41)) {
890
+ x += u.charAt(I);
891
891
  continue;
892
892
  }
893
- if (y < 128) {
894
- B = B + t[y];
893
+ if (O < 128) {
894
+ x = x + t[O];
895
895
  continue;
896
896
  }
897
- if (y < 2048) {
898
- B = B + (t[192 | y >> 6] + t[128 | y & 63]);
897
+ if (O < 2048) {
898
+ x = x + (t[192 | O >> 6] + t[128 | O & 63]);
899
899
  continue;
900
900
  }
901
- if (y < 55296 || y >= 57344) {
902
- B = B + (t[224 | y >> 12] + t[128 | y >> 6 & 63] + t[128 | y & 63]);
901
+ if (O < 55296 || O >= 57344) {
902
+ x = x + (t[224 | O >> 12] + t[128 | O >> 6 & 63] + t[128 | O & 63]);
903
903
  continue;
904
904
  }
905
- p += 1, y = 65536 + ((y & 1023) << 10 | I.charCodeAt(p) & 1023), B += t[240 | y >> 18] + t[128 | y >> 12 & 63] + t[128 | y >> 6 & 63] + t[128 | y & 63];
905
+ I += 1, O = 65536 + ((O & 1023) << 10 | u.charCodeAt(I) & 1023), x += t[240 | O >> 18] + t[128 | O >> 12 & 63] + t[128 | O >> 6 & 63] + t[128 | O & 63];
906
906
  }
907
- return B;
908
- }, w = function(m) {
909
- for (var c = [{ obj: { o: m }, prop: "o" }], x = [], b = 0; b < c.length; ++b)
910
- for (var T = c[b], I = T.obj[T.prop], B = Object.keys(I), p = 0; p < B.length; ++p) {
911
- var y = B[p], S = I[y];
912
- typeof S == "object" && S !== null && x.indexOf(S) === -1 && (c.push({ obj: I, prop: y }), x.push(S));
907
+ return x;
908
+ }, S = function(h) {
909
+ for (var d = [{ obj: { o: h }, prop: "o" }], E = [], i = 0; i < d.length; ++i)
910
+ for (var c = d[i], u = c.obj[c.prop], x = Object.keys(u), I = 0; I < x.length; ++I) {
911
+ var O = x[I], $ = u[O];
912
+ typeof $ == "object" && $ !== null && E.indexOf($) === -1 && (d.push({ obj: u, prop: O }), E.push($));
913
913
  }
914
- return n(c), m;
915
- }, g = function(m) {
916
- return Object.prototype.toString.call(m) === "[object RegExp]";
917
- }, P = function(m) {
918
- return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m));
919
- }, A = function(m, c) {
920
- return [].concat(m, c);
921
- }, v = function(m, c) {
922
- if (a(m)) {
923
- for (var x = [], b = 0; b < m.length; b += 1)
924
- x.push(c(m[b]));
925
- return x;
914
+ return n(d), h;
915
+ }, v = function(h) {
916
+ return Object.prototype.toString.call(h) === "[object RegExp]";
917
+ }, P = function(h) {
918
+ return !h || typeof h != "object" ? !1 : !!(h.constructor && h.constructor.isBuffer && h.constructor.isBuffer(h));
919
+ }, b = function(h, d) {
920
+ return [].concat(h, d);
921
+ }, A = function(h, d) {
922
+ if (a(h)) {
923
+ for (var E = [], i = 0; i < h.length; i += 1)
924
+ E.push(d(h[i]));
925
+ return E;
926
926
  }
927
- return c(m);
927
+ return d(h);
928
928
  };
929
929
  return sr = {
930
- arrayToObject: i,
931
- assign: o,
932
- combine: A,
933
- compact: w,
934
- decode: u,
935
- encode: f,
930
+ arrayToObject: o,
931
+ assign: s,
932
+ combine: b,
933
+ compact: S,
934
+ decode: f,
935
+ encode: m,
936
936
  isBuffer: P,
937
- isRegExp: g,
938
- maybeMap: v,
939
- merge: l
937
+ isRegExp: v,
938
+ maybeMap: A,
939
+ merge: p
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(c) {
948
- return c + "[]";
947
+ brackets: function(d) {
948
+ return d + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(c, x) {
952
- return c + "[" + x + "]";
951
+ indices: function(d, E) {
952
+ return d + "[" + E + "]";
953
953
  },
954
- repeat: function(c) {
955
- return c;
954
+ repeat: function(d) {
955
+ return d;
956
956
  }
957
- }, i = Array.isArray, l = String.prototype.split, o = Array.prototype.push, u = function(m, c) {
958
- o.apply(m, i(c) ? c : [c]);
959
- }, f = Date.prototype.toISOString, w = a.default, g = {
957
+ }, o = Array.isArray, p = String.prototype.split, s = Array.prototype.push, f = function(h, d) {
958
+ s.apply(h, o(d) ? d : [d]);
959
+ }, m = Date.prototype.toISOString, S = a.default, v = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -965,154 +965,154 @@ function ut() {
965
965
  encode: !0,
966
966
  encoder: r.encode,
967
967
  encodeValuesOnly: !1,
968
- format: w,
969
- formatter: a.formatters[w],
968
+ format: S,
969
+ formatter: a.formatters[S],
970
970
  // deprecated
971
971
  indices: !1,
972
- serializeDate: function(c) {
973
- return f.call(c);
972
+ serializeDate: function(d) {
973
+ return m.call(d);
974
974
  },
975
975
  skipNulls: !1,
976
976
  strictNullHandling: !1
977
- }, P = function(c) {
978
- return typeof c == "string" || typeof c == "number" || typeof c == "boolean" || typeof c == "symbol" || typeof c == "bigint";
979
- }, A = {}, v = function m(c, x, b, T, I, B, p, y, S, O, R, L, N, $, U, G) {
980
- for (var k = c, j = G, Z = 0, ae = !1; (j = j.get(A)) !== void 0 && !ae; ) {
981
- var Y = j.get(c);
982
- if (Z += 1, typeof Y < "u") {
983
- if (Y === Z)
977
+ }, P = function(d) {
978
+ return typeof d == "string" || typeof d == "number" || typeof d == "boolean" || typeof d == "symbol" || typeof d == "bigint";
979
+ }, b = {}, A = function h(d, E, i, c, u, x, I, O, $, L, F, _, R, N, B, H) {
980
+ for (var U = d, q = H, Q = 0, z = !1; (q = q.get(b)) !== void 0 && !z; ) {
981
+ var W = q.get(d);
982
+ if (Q += 1, typeof W < "u") {
983
+ if (W === Q)
984
984
  throw new RangeError("Cyclic object value");
985
- ae = !0;
985
+ z = !0;
986
986
  }
987
- typeof j.get(A) > "u" && (Z = 0);
987
+ typeof q.get(b) > "u" && (Q = 0);
988
988
  }
989
- if (typeof y == "function" ? k = y(x, k) : k instanceof Date ? k = R(k) : b === "comma" && i(k) && (k = r.maybeMap(k, function(ne) {
990
- return ne instanceof Date ? R(ne) : ne;
991
- })), k === null) {
992
- if (I)
993
- return p && !$ ? p(x, g.encoder, U, "key", L) : x;
994
- k = "";
989
+ if (typeof O == "function" ? U = O(E, U) : U instanceof Date ? U = F(U) : i === "comma" && o(U) && (U = r.maybeMap(U, function(te) {
990
+ return te instanceof Date ? F(te) : te;
991
+ })), U === null) {
992
+ if (u)
993
+ return I && !N ? I(E, v.encoder, B, "key", _) : E;
994
+ U = "";
995
995
  }
996
- if (P(k) || r.isBuffer(k)) {
997
- if (p) {
998
- var H = $ ? x : p(x, g.encoder, U, "key", L);
999
- if (b === "comma" && $) {
1000
- for (var re = l.call(String(k), ","), K = "", J = 0; J < re.length; ++J)
1001
- K += (J === 0 ? "" : ",") + N(p(re[J], g.encoder, U, "value", L));
1002
- return [N(H) + (T && i(k) && re.length === 1 ? "[]" : "") + "=" + K];
996
+ if (P(U) || r.isBuffer(U)) {
997
+ if (I) {
998
+ var K = N ? E : I(E, v.encoder, B, "key", _);
999
+ if (i === "comma" && N) {
1000
+ for (var re = p.call(String(U), ","), ae = "", ne = 0; ne < re.length; ++ne)
1001
+ ae += (ne === 0 ? "" : ",") + R(I(re[ne], v.encoder, B, "value", _));
1002
+ return [R(K) + (c && o(U) && re.length === 1 ? "[]" : "") + "=" + ae];
1003
1003
  }
1004
- return [N(H) + "=" + N(p(k, g.encoder, U, "value", L))];
1004
+ return [R(K) + "=" + R(I(U, v.encoder, B, "value", _))];
1005
1005
  }
1006
- return [N(x) + "=" + N(String(k))];
1006
+ return [R(E) + "=" + R(String(U))];
1007
1007
  }
1008
- var oe = [];
1009
- if (typeof k > "u")
1010
- return oe;
1011
- var ce;
1012
- if (b === "comma" && i(k))
1013
- ce = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
1014
- else if (i(y))
1015
- ce = y;
1008
+ var ce = [];
1009
+ if (typeof U > "u")
1010
+ return ce;
1011
+ var ue;
1012
+ if (i === "comma" && o(U))
1013
+ ue = [{ value: U.length > 0 ? U.join(",") || null : void 0 }];
1014
+ else if (o(O))
1015
+ ue = O;
1016
1016
  else {
1017
- var se = Object.keys(k);
1018
- ce = S ? se.sort(S) : se;
1017
+ var oe = Object.keys(U);
1018
+ ue = $ ? oe.sort($) : oe;
1019
1019
  }
1020
- for (var de = T && i(k) && k.length === 1 ? x + "[]" : x, pe = 0; pe < ce.length; ++pe) {
1021
- var ue = ce[pe], me = typeof ue == "object" && typeof ue.value < "u" ? ue.value : k[ue];
1022
- if (!(B && me === null)) {
1023
- var be = i(k) ? typeof b == "function" ? b(de, ue) : de : de + (O ? "." + ue : "[" + ue + "]");
1024
- G.set(c, Z);
1025
- var X = e();
1026
- X.set(A, G), u(oe, m(
1027
- me,
1020
+ for (var de = c && o(U) && U.length === 1 ? E + "[]" : E, pe = 0; pe < ue.length; ++pe) {
1021
+ var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : U[se];
1022
+ if (!(x && ye === null)) {
1023
+ var be = o(U) ? typeof i == "function" ? i(de, se) : de : de + (L ? "." + se : "[" + se + "]");
1024
+ H.set(d, Q);
1025
+ var Y = e();
1026
+ Y.set(b, H), f(ce, h(
1027
+ ye,
1028
1028
  be,
1029
- b,
1030
- T,
1029
+ i,
1030
+ c,
1031
+ u,
1032
+ x,
1031
1033
  I,
1032
- B,
1033
- p,
1034
- y,
1035
- S,
1036
1034
  O,
1037
- R,
1035
+ $,
1038
1036
  L,
1037
+ F,
1038
+ _,
1039
+ R,
1039
1040
  N,
1040
- $,
1041
- U,
1042
- X
1041
+ B,
1042
+ Y
1043
1043
  ));
1044
1044
  }
1045
1045
  }
1046
- return oe;
1047
- }, C = function(c) {
1048
- if (!c)
1049
- return g;
1050
- if (c.encoder !== null && typeof c.encoder < "u" && typeof c.encoder != "function")
1046
+ return ce;
1047
+ }, C = function(d) {
1048
+ if (!d)
1049
+ return v;
1050
+ if (d.encoder !== null && typeof d.encoder < "u" && typeof d.encoder != "function")
1051
1051
  throw new TypeError("Encoder has to be a function.");
1052
- var x = c.charset || g.charset;
1053
- if (typeof c.charset < "u" && c.charset !== "utf-8" && c.charset !== "iso-8859-1")
1052
+ var E = d.charset || v.charset;
1053
+ if (typeof d.charset < "u" && d.charset !== "utf-8" && d.charset !== "iso-8859-1")
1054
1054
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1055
- var b = a.default;
1056
- if (typeof c.format < "u") {
1057
- if (!t.call(a.formatters, c.format))
1055
+ var i = a.default;
1056
+ if (typeof d.format < "u") {
1057
+ if (!t.call(a.formatters, d.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- b = c.format;
1059
+ i = d.format;
1060
1060
  }
1061
- var T = a.formatters[b], I = g.filter;
1062
- return (typeof c.filter == "function" || i(c.filter)) && (I = c.filter), {
1063
- addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : g.addQueryPrefix,
1064
- allowDots: typeof c.allowDots > "u" ? g.allowDots : !!c.allowDots,
1065
- charset: x,
1066
- charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : g.charsetSentinel,
1067
- delimiter: typeof c.delimiter > "u" ? g.delimiter : c.delimiter,
1068
- encode: typeof c.encode == "boolean" ? c.encode : g.encode,
1069
- encoder: typeof c.encoder == "function" ? c.encoder : g.encoder,
1070
- encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : g.encodeValuesOnly,
1071
- filter: I,
1072
- format: b,
1073
- formatter: T,
1074
- serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : g.serializeDate,
1075
- skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : g.skipNulls,
1076
- sort: typeof c.sort == "function" ? c.sort : null,
1077
- strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : g.strictNullHandling
1061
+ var c = a.formatters[i], u = v.filter;
1062
+ return (typeof d.filter == "function" || o(d.filter)) && (u = d.filter), {
1063
+ addQueryPrefix: typeof d.addQueryPrefix == "boolean" ? d.addQueryPrefix : v.addQueryPrefix,
1064
+ allowDots: typeof d.allowDots > "u" ? v.allowDots : !!d.allowDots,
1065
+ charset: E,
1066
+ charsetSentinel: typeof d.charsetSentinel == "boolean" ? d.charsetSentinel : v.charsetSentinel,
1067
+ delimiter: typeof d.delimiter > "u" ? v.delimiter : d.delimiter,
1068
+ encode: typeof d.encode == "boolean" ? d.encode : v.encode,
1069
+ encoder: typeof d.encoder == "function" ? d.encoder : v.encoder,
1070
+ encodeValuesOnly: typeof d.encodeValuesOnly == "boolean" ? d.encodeValuesOnly : v.encodeValuesOnly,
1071
+ filter: u,
1072
+ format: i,
1073
+ formatter: c,
1074
+ serializeDate: typeof d.serializeDate == "function" ? d.serializeDate : v.serializeDate,
1075
+ skipNulls: typeof d.skipNulls == "boolean" ? d.skipNulls : v.skipNulls,
1076
+ sort: typeof d.sort == "function" ? d.sort : null,
1077
+ strictNullHandling: typeof d.strictNullHandling == "boolean" ? d.strictNullHandling : v.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
- return ur = function(m, c) {
1081
- var x = m, b = C(c), T, I;
1082
- typeof b.filter == "function" ? (I = b.filter, x = I("", x)) : i(b.filter) && (I = b.filter, T = I);
1083
- var B = [];
1084
- if (typeof x != "object" || x === null)
1080
+ return ur = function(h, d) {
1081
+ var E = h, i = C(d), c, u;
1082
+ typeof i.filter == "function" ? (u = i.filter, E = u("", E)) : o(i.filter) && (u = i.filter, c = u);
1083
+ var x = [];
1084
+ if (typeof E != "object" || E === null)
1085
1085
  return "";
1086
- var p;
1087
- c && c.arrayFormat in n ? p = c.arrayFormat : c && "indices" in c ? p = c.indices ? "indices" : "repeat" : p = "indices";
1088
- var y = n[p];
1089
- if (c && "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
1086
+ var I;
1087
+ d && d.arrayFormat in n ? I = d.arrayFormat : d && "indices" in d ? I = d.indices ? "indices" : "repeat" : I = "indices";
1088
+ var O = n[I];
1089
+ if (d && "commaRoundTrip" in d && typeof d.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
- var S = y === "comma" && c && c.commaRoundTrip;
1092
- T || (T = Object.keys(x)), b.sort && T.sort(b.sort);
1093
- for (var O = e(), R = 0; R < T.length; ++R) {
1094
- var L = T[R];
1095
- b.skipNulls && x[L] === null || u(B, v(
1096
- x[L],
1097
- L,
1098
- y,
1099
- S,
1100
- b.strictNullHandling,
1101
- b.skipNulls,
1102
- b.encode ? b.encoder : null,
1103
- b.filter,
1104
- b.sort,
1105
- b.allowDots,
1106
- b.serializeDate,
1107
- b.format,
1108
- b.formatter,
1109
- b.encodeValuesOnly,
1110
- b.charset,
1111
- O
1091
+ var $ = O === "comma" && d && d.commaRoundTrip;
1092
+ c || (c = Object.keys(E)), i.sort && c.sort(i.sort);
1093
+ for (var L = e(), F = 0; F < c.length; ++F) {
1094
+ var _ = c[F];
1095
+ i.skipNulls && E[_] === null || f(x, A(
1096
+ E[_],
1097
+ _,
1098
+ O,
1099
+ $,
1100
+ i.strictNullHandling,
1101
+ i.skipNulls,
1102
+ i.encode ? i.encoder : null,
1103
+ i.filter,
1104
+ i.sort,
1105
+ i.allowDots,
1106
+ i.serializeDate,
1107
+ i.format,
1108
+ i.formatter,
1109
+ i.encodeValuesOnly,
1110
+ i.charset,
1111
+ L
1112
1112
  ));
1113
1113
  }
1114
- var N = B.join(b.delimiter), $ = b.addQueryPrefix === !0 ? "?" : "";
1115
- return b.charsetSentinel && (b.charset === "iso-8859-1" ? $ += "utf8=%26%2310003%3B&" : $ += "utf8=%E2%9C%93&"), N.length > 0 ? $ + N : "";
1114
+ var R = x.join(i.delimiter), N = i.addQueryPrefix === !0 ? "?" : "";
1115
+ return i.charsetSentinel && (i.charset === "iso-8859-1" ? N += "utf8=%26%2310003%3B&" : N += "utf8=%E2%9C%93&"), R.length > 0 ? N + R : "";
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(P) {
1140
- return P.replace(/&#(\d+);/g, function(A, v) {
1141
- return String.fromCharCode(parseInt(v, 10));
1140
+ return P.replace(/&#(\d+);/g, function(b, A) {
1141
+ return String.fromCharCode(parseInt(A, 10));
1142
1142
  });
1143
- }, i = function(P, A) {
1144
- return P && typeof P == "string" && A.comma && P.indexOf(",") > -1 ? P.split(",") : P;
1145
- }, l = "utf8=%26%2310003%3B", o = "utf8=%E2%9C%93", u = function(A, v) {
1146
- var C = {}, m = v.ignoreQueryPrefix ? A.replace(/^\?/, "") : A, c = v.parameterLimit === 1 / 0 ? void 0 : v.parameterLimit, x = m.split(v.delimiter, c), b = -1, T, I = v.charset;
1147
- if (v.charsetSentinel)
1148
- for (T = 0; T < x.length; ++T)
1149
- x[T].indexOf("utf8=") === 0 && (x[T] === o ? I = "utf-8" : x[T] === l && (I = "iso-8859-1"), b = T, T = x.length);
1150
- for (T = 0; T < x.length; ++T)
1151
- if (T !== b) {
1152
- var B = x[T], p = B.indexOf("]="), y = p === -1 ? B.indexOf("=") : p + 1, S, O;
1153
- y === -1 ? (S = v.decoder(B, t.decoder, I, "key"), O = v.strictNullHandling ? null : "") : (S = v.decoder(B.slice(0, y), t.decoder, I, "key"), O = e.maybeMap(
1154
- i(B.slice(y + 1), v),
1155
- function(R) {
1156
- return v.decoder(R, t.decoder, I, "value");
1143
+ }, o = function(P, b) {
1144
+ return P && typeof P == "string" && b.comma && P.indexOf(",") > -1 ? P.split(",") : P;
1145
+ }, p = "utf8=%26%2310003%3B", s = "utf8=%E2%9C%93", f = function(b, A) {
1146
+ var C = {}, h = A.ignoreQueryPrefix ? b.replace(/^\?/, "") : b, d = A.parameterLimit === 1 / 0 ? void 0 : A.parameterLimit, E = h.split(A.delimiter, d), i = -1, c, u = A.charset;
1147
+ if (A.charsetSentinel)
1148
+ for (c = 0; c < E.length; ++c)
1149
+ E[c].indexOf("utf8=") === 0 && (E[c] === s ? u = "utf-8" : E[c] === p && (u = "iso-8859-1"), i = c, c = E.length);
1150
+ for (c = 0; c < E.length; ++c)
1151
+ if (c !== i) {
1152
+ var x = E[c], I = x.indexOf("]="), O = I === -1 ? x.indexOf("=") : I + 1, $, L;
1153
+ O === -1 ? ($ = A.decoder(x, t.decoder, u, "key"), L = A.strictNullHandling ? null : "") : ($ = A.decoder(x.slice(0, O), t.decoder, u, "key"), L = e.maybeMap(
1154
+ o(x.slice(O + 1), A),
1155
+ function(F) {
1156
+ return A.decoder(F, t.decoder, u, "value");
1157
1157
  }
1158
- )), O && v.interpretNumericEntities && I === "iso-8859-1" && (O = n(O)), B.indexOf("[]=") > -1 && (O = a(O) ? [O] : O), r.call(C, S) ? C[S] = e.combine(C[S], O) : C[S] = O;
1158
+ )), L && A.interpretNumericEntities && u === "iso-8859-1" && (L = n(L)), x.indexOf("[]=") > -1 && (L = a(L) ? [L] : L), r.call(C, $) ? C[$] = e.combine(C[$], L) : C[$] = L;
1159
1159
  }
1160
1160
  return C;
1161
- }, f = function(P, A, v, C) {
1162
- for (var m = C ? A : i(A, v), c = P.length - 1; c >= 0; --c) {
1163
- var x, b = P[c];
1164
- if (b === "[]" && v.parseArrays)
1165
- x = [].concat(m);
1161
+ }, m = function(P, b, A, C) {
1162
+ for (var h = C ? b : o(b, A), d = P.length - 1; d >= 0; --d) {
1163
+ var E, i = P[d];
1164
+ if (i === "[]" && A.parseArrays)
1165
+ E = [].concat(h);
1166
1166
  else {
1167
- x = v.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
- var T = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, I = parseInt(T, 10);
1169
- !v.parseArrays && T === "" ? x = { 0: m } : !isNaN(I) && b !== T && String(I) === T && I >= 0 && v.parseArrays && I <= v.arrayLimit ? (x = [], x[I] = m) : T !== "__proto__" && (x[T] = m);
1167
+ E = A.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
+ var c = i.charAt(0) === "[" && i.charAt(i.length - 1) === "]" ? i.slice(1, -1) : i, u = parseInt(c, 10);
1169
+ !A.parseArrays && c === "" ? E = { 0: h } : !isNaN(u) && i !== c && String(u) === c && u >= 0 && A.parseArrays && u <= A.arrayLimit ? (E = [], E[u] = h) : c !== "__proto__" && (E[c] = h);
1170
1170
  }
1171
- m = x;
1171
+ h = E;
1172
1172
  }
1173
- return m;
1174
- }, w = function(A, v, C, m) {
1175
- if (A) {
1176
- var c = C.allowDots ? A.replace(/\.([^.[]+)/g, "[$1]") : A, x = /(\[[^[\]]*])/, b = /(\[[^[\]]*])/g, T = C.depth > 0 && x.exec(c), I = T ? c.slice(0, T.index) : c, B = [];
1177
- if (I) {
1178
- if (!C.plainObjects && r.call(Object.prototype, I) && !C.allowPrototypes)
1173
+ return h;
1174
+ }, S = function(b, A, C, h) {
1175
+ if (b) {
1176
+ var d = C.allowDots ? b.replace(/\.([^.[]+)/g, "[$1]") : b, E = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, c = C.depth > 0 && E.exec(d), u = c ? d.slice(0, c.index) : d, x = [];
1177
+ if (u) {
1178
+ if (!C.plainObjects && r.call(Object.prototype, u) && !C.allowPrototypes)
1179
1179
  return;
1180
- B.push(I);
1180
+ x.push(u);
1181
1181
  }
1182
- for (var p = 0; C.depth > 0 && (T = b.exec(c)) !== null && p < C.depth; ) {
1183
- if (p += 1, !C.plainObjects && r.call(Object.prototype, T[1].slice(1, -1)) && !C.allowPrototypes)
1182
+ for (var I = 0; C.depth > 0 && (c = i.exec(d)) !== null && I < C.depth; ) {
1183
+ if (I += 1, !C.plainObjects && r.call(Object.prototype, c[1].slice(1, -1)) && !C.allowPrototypes)
1184
1184
  return;
1185
- B.push(T[1]);
1185
+ x.push(c[1]);
1186
1186
  }
1187
- return T && B.push("[" + c.slice(T.index) + "]"), f(B, v, C, m);
1187
+ return c && x.push("[" + d.slice(c.index) + "]"), m(x, A, C, h);
1188
1188
  }
1189
- }, g = function(A) {
1190
- if (!A)
1189
+ }, v = function(b) {
1190
+ if (!b)
1191
1191
  return t;
1192
- if (A.decoder !== null && A.decoder !== void 0 && typeof A.decoder != "function")
1192
+ if (b.decoder !== null && b.decoder !== void 0 && typeof b.decoder != "function")
1193
1193
  throw new TypeError("Decoder has to be a function.");
1194
- if (typeof A.charset < "u" && A.charset !== "utf-8" && A.charset !== "iso-8859-1")
1194
+ if (typeof b.charset < "u" && b.charset !== "utf-8" && b.charset !== "iso-8859-1")
1195
1195
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1196
- var v = typeof A.charset > "u" ? t.charset : A.charset;
1196
+ var A = typeof b.charset > "u" ? t.charset : b.charset;
1197
1197
  return {
1198
- allowDots: typeof A.allowDots > "u" ? t.allowDots : !!A.allowDots,
1199
- allowPrototypes: typeof A.allowPrototypes == "boolean" ? A.allowPrototypes : t.allowPrototypes,
1200
- allowSparse: typeof A.allowSparse == "boolean" ? A.allowSparse : t.allowSparse,
1201
- arrayLimit: typeof A.arrayLimit == "number" ? A.arrayLimit : t.arrayLimit,
1202
- charset: v,
1203
- charsetSentinel: typeof A.charsetSentinel == "boolean" ? A.charsetSentinel : t.charsetSentinel,
1204
- comma: typeof A.comma == "boolean" ? A.comma : t.comma,
1205
- decoder: typeof A.decoder == "function" ? A.decoder : t.decoder,
1206
- delimiter: typeof A.delimiter == "string" || e.isRegExp(A.delimiter) ? A.delimiter : t.delimiter,
1198
+ allowDots: typeof b.allowDots > "u" ? t.allowDots : !!b.allowDots,
1199
+ allowPrototypes: typeof b.allowPrototypes == "boolean" ? b.allowPrototypes : t.allowPrototypes,
1200
+ allowSparse: typeof b.allowSparse == "boolean" ? b.allowSparse : t.allowSparse,
1201
+ arrayLimit: typeof b.arrayLimit == "number" ? b.arrayLimit : t.arrayLimit,
1202
+ charset: A,
1203
+ charsetSentinel: typeof b.charsetSentinel == "boolean" ? b.charsetSentinel : t.charsetSentinel,
1204
+ comma: typeof b.comma == "boolean" ? b.comma : t.comma,
1205
+ decoder: typeof b.decoder == "function" ? b.decoder : t.decoder,
1206
+ delimiter: typeof b.delimiter == "string" || e.isRegExp(b.delimiter) ? b.delimiter : t.delimiter,
1207
1207
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1208
- depth: typeof A.depth == "number" || A.depth === !1 ? +A.depth : t.depth,
1209
- ignoreQueryPrefix: A.ignoreQueryPrefix === !0,
1210
- interpretNumericEntities: typeof A.interpretNumericEntities == "boolean" ? A.interpretNumericEntities : t.interpretNumericEntities,
1211
- parameterLimit: typeof A.parameterLimit == "number" ? A.parameterLimit : t.parameterLimit,
1212
- parseArrays: A.parseArrays !== !1,
1213
- plainObjects: typeof A.plainObjects == "boolean" ? A.plainObjects : t.plainObjects,
1214
- strictNullHandling: typeof A.strictNullHandling == "boolean" ? A.strictNullHandling : t.strictNullHandling
1208
+ depth: typeof b.depth == "number" || b.depth === !1 ? +b.depth : t.depth,
1209
+ ignoreQueryPrefix: b.ignoreQueryPrefix === !0,
1210
+ interpretNumericEntities: typeof b.interpretNumericEntities == "boolean" ? b.interpretNumericEntities : t.interpretNumericEntities,
1211
+ parameterLimit: typeof b.parameterLimit == "number" ? b.parameterLimit : t.parameterLimit,
1212
+ parseArrays: b.parseArrays !== !1,
1213
+ plainObjects: typeof b.plainObjects == "boolean" ? b.plainObjects : t.plainObjects,
1214
+ strictNullHandling: typeof b.strictNullHandling == "boolean" ? b.strictNullHandling : t.strictNullHandling
1215
1215
  };
1216
1216
  };
1217
- return cr = function(P, A) {
1218
- var v = g(A);
1217
+ return cr = function(P, b) {
1218
+ var A = v(b);
1219
1219
  if (P === "" || P === null || typeof P > "u")
1220
- return v.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
- for (var C = typeof P == "string" ? u(P, v) : P, m = v.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(C), x = 0; x < c.length; ++x) {
1222
- var b = c[x], T = w(b, C[b], v, typeof P == "string");
1223
- m = e.merge(m, T, v);
1220
+ return A.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
+ for (var C = typeof P == "string" ? f(P, A) : P, h = A.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, d = Object.keys(C), E = 0; E < d.length; ++E) {
1222
+ var i = d[E], c = S(i, C[i], A, typeof P == "string");
1223
+ h = e.merge(h, c, A);
1224
1224
  }
1225
- return v.allowSparse === !0 ? m : e.compact(m);
1225
+ return A.allowSparse === !0 ? h : e.compact(h);
1226
1226
  }, cr;
1227
1227
  }
1228
1228
  var lr, Br;
@@ -1237,353 +1237,353 @@ function lt() {
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ yr(ft), vr = "0.1.213", pt = Ee.CancelToken;
1241
- var yt = function(e) {
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "0.1.214", pt = Ee.CancelToken;
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(u) {
1246
- var f = [
1247
- u.method,
1248
- u.url,
1249
- u.headers?.Authorization,
1250
- u.headers.Accept,
1245
+ function t(f) {
1246
+ var m = [
1247
+ f.method,
1248
+ f.url,
1249
+ f.headers?.Authorization,
1250
+ f.headers.Accept,
1251
1251
  JSON.stringify({
1252
- params: u.params,
1253
- data: u.data
1252
+ params: f.params,
1253
+ data: f.data
1254
1254
  })
1255
1255
  ].filter(Boolean).join("-");
1256
- return f;
1256
+ return m;
1257
1257
  }
1258
- const n = {}, l = o(function(u) {
1259
- var f = t(u);
1260
- return n[f] || (n[f] = new Promise(function(w, g) {
1261
- var P, A;
1262
- switch (String(u.method).toLowerCase()) {
1258
+ const n = {}, p = s(function(f) {
1259
+ var m = t(f);
1260
+ return n[m] || (n[m] = new Promise(function(S, v) {
1261
+ var P, b;
1262
+ switch (String(f.method).toLowerCase()) {
1263
1263
  case "post":
1264
1264
  case "patch":
1265
1265
  case "put":
1266
1266
  case "delete":
1267
- u.cache || (u.cache = !1);
1267
+ f.cache || (f.cache = !1);
1268
1268
  break;
1269
1269
  }
1270
- return u.cache === !1 || (P = u.cache || r, P && (A = P.get(f))), A ? w(A) : (Object.assign(u, { adapter: a }), Ee.request(u).then(
1271
- function(v) {
1272
- delete n[f], w(v);
1270
+ return f.cache === !1 || (P = f.cache || r, P && (b = P.get(m))), b ? S(b) : (Object.assign(f, { adapter: a }), Ee.request(f).then(
1271
+ function(A) {
1272
+ delete n[m], S(A);
1273
1273
  },
1274
- function(v) {
1275
- delete n[f], g(v);
1274
+ function(A) {
1275
+ delete n[m], v(A);
1276
1276
  }
1277
1277
  ));
1278
- })), n[f];
1278
+ })), n[m];
1279
1279
  });
1280
- l.generateEndpointURL = function(u, f, w) {
1281
- w = w || {}, f = f || {};
1282
- var g;
1283
- const P = w.file && e.fileAPI || e.apiURL;
1284
- w.withoutToken || (delete f.access_token, g = e.auth.getCurrentToken()), u[0] == "/" && u.slice(1);
1285
- var A = e.utils.mapParameters(f);
1286
- g ? A = A ? `?access_token=${g}&${A}` : `?access_token=${g}` : A = A ? `?${A}` : "";
1287
- var v = `${P}${u}${A}`;
1288
- return v;
1289
- }, l.wasCancelled = function(u) {
1290
- return Ee.isCancel(u);
1280
+ p.generateEndpointURL = function(f, m, S) {
1281
+ S = S || {}, m = m || {};
1282
+ var v;
1283
+ const P = S.file && e.fileAPI || e.apiURL;
1284
+ S.withoutToken || (delete m.access_token, v = e.auth.getCurrentToken()), f[0] == "/" && f.slice(1);
1285
+ var b = e.utils.mapParameters(m);
1286
+ v ? b = b ? `?access_token=${v}&${b}` : `?access_token=${v}` : b = b ? `?${b}` : "";
1287
+ var A = `${P}${f}${b}`;
1288
+ return A;
1289
+ }, p.wasCancelled = function(f) {
1290
+ return Ee.isCancel(f);
1291
1291
  };
1292
- function o(u) {
1293
- var f = Ee.create({
1294
- paramsSerializer: (g) => dt.stringify(g, { arrayFormat: "repeat" }),
1295
- adapter: u
1292
+ function s(f) {
1293
+ var m = Ee.create({
1294
+ paramsSerializer: (v) => dt.stringify(v, { arrayFormat: "repeat" }),
1295
+ adapter: f
1296
1296
  });
1297
- f.defaults.baseURL = e.apiURL, f.defaults.headers.common.Accept = "application/json", f.interceptors.request.use(function(g) {
1298
- if (t(g), g.withoutToken)
1299
- return g;
1300
- if (g.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1301
- const A = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
- A && (g.headers["qik-request-timezone"] = A);
1297
+ m.defaults.baseURL = e.apiURL, m.defaults.headers.common.Accept = "application/json", m.interceptors.request.use(function(v) {
1298
+ if (t(v), v.withoutToken)
1299
+ return v;
1300
+ if (v.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1301
+ const b = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
+ b && (v.headers["qik-request-timezone"] = b);
1303
1303
  }
1304
- g.headers["qik-api-version"] = vr, e?.socket?.windowID && (g.headers["qik-socket-window"] = e.socket.windowID);
1304
+ v.headers["qik-api-version"] = vr, e?.socket?.windowID && (v.headers["qik-socket-window"] = e.socket.windowID);
1305
1305
  var P = e.auth.getCurrentToken();
1306
- return P && (g.headers.Authorization = `Bearer ${P}`, g.params && g.params.access_token && delete g.params.access_token), g;
1306
+ return P && (v.headers.Authorization = `Bearer ${P}`, v.params && v.params.access_token && delete v.params.access_token), v;
1307
1307
  });
1308
- let w = 0;
1309
- return f.interceptors.response.use(
1310
- function(g) {
1311
- var P = g.config, A = g.status;
1312
- switch (A) {
1308
+ let S = 0;
1309
+ return m.interceptors.response.use(
1310
+ function(v) {
1311
+ var P = v.config, b = v.status;
1312
+ switch (b) {
1313
1313
  case 204:
1314
- if (w < 5)
1315
- return w++, new Promise(function(v, C) {
1314
+ if (S < 5)
1315
+ return S++, new Promise(function(A, C) {
1316
1316
  setTimeout(function() {
1317
- return f.request(P).then(v, C);
1317
+ return m.request(P).then(A, C);
1318
1318
  }, 800);
1319
1319
  });
1320
- console.log("Failed after 5 retries"), w = 0;
1320
+ console.log("Failed after 5 retries"), S = 0;
1321
1321
  break;
1322
1322
  }
1323
- return g;
1323
+ return v;
1324
1324
  },
1325
- function(g) {
1326
- if (Ee.isCancel(g))
1327
- return Promise.reject(g);
1328
- var P = g?.response?.status || g.status;
1325
+ function(v) {
1326
+ if (Ee.isCancel(v))
1327
+ return Promise.reject(v);
1328
+ var P = v?.response?.status || v.status;
1329
1329
  switch (P) {
1330
1330
  case 401:
1331
1331
  break;
1332
1332
  case 502:
1333
1333
  case 504:
1334
- if (w < 5)
1335
- return w++, new Promise(function(A, v) {
1334
+ if (S < 5)
1335
+ return S++, new Promise(function(b, A) {
1336
1336
  setTimeout(function() {
1337
- return f.request(g.config).then(A, v);
1337
+ return m.request(v.config).then(b, A);
1338
1338
  }, 800);
1339
1339
  });
1340
- console.log("Failed after 5 retries"), w = 0;
1340
+ console.log("Failed after 5 retries"), S = 0;
1341
1341
  break;
1342
1342
  }
1343
- return Promise.reject(g);
1343
+ return Promise.reject(v);
1344
1344
  }
1345
- ), f;
1345
+ ), m;
1346
1346
  }
1347
- return l.CancelToken = pt, l.axios = Ee, l;
1347
+ return p.CancelToken = pt, p.axios = Ee, p;
1348
1348
  }, fr, Gr;
1349
- function mt() {
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]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, l = /^\w*$/, o = /^\./, u = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, f = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, g = /^\[object .+?Constructor\]$/, P = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, A = typeof self == "object" && self && self.Object === Object && self, v = P || A || Function("return this")();
1353
- function C(s, E) {
1354
- return s?.[E];
1352
+ var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, p = /^\w*$/, s = /^\./, f = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /[\\^$.*+?()[\]{}|]/g, S = /\\(\\)?/g, v = /^\[object .+?Constructor\]$/, P = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, b = typeof self == "object" && self && self.Object === Object && self, A = P || b || Function("return this")();
1353
+ function C(l, w) {
1354
+ return l?.[w];
1355
1355
  }
1356
- function m(s) {
1357
- var E = !1;
1358
- if (s != null && typeof s.toString != "function")
1356
+ function h(l) {
1357
+ var w = !1;
1358
+ if (l != null && typeof l.toString != "function")
1359
1359
  try {
1360
- E = !!(s + "");
1360
+ w = !!(l + "");
1361
1361
  } catch {
1362
1362
  }
1363
- return E;
1363
+ return w;
1364
1364
  }
1365
- var c = Array.prototype, x = Function.prototype, b = Object.prototype, T = v["__core-js_shared__"], I = (function() {
1366
- var s = /[^.]+$/.exec(T && T.keys && T.keys.IE_PROTO || "");
1367
- return s ? "Symbol(src)_1." + s : "";
1368
- })(), B = x.toString, p = b.hasOwnProperty, y = b.toString, S = RegExp(
1369
- "^" + B.call(p).replace(f, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
- ), O = v.Symbol, R = c.splice, L = Pe(v, "Map"), N = Pe(Object, "create"), $ = O ? O.prototype : void 0, U = $ ? $.toString : void 0;
1371
- function G(s) {
1372
- var E = -1, M = s ? s.length : 0;
1373
- for (this.clear(); ++E < M; ) {
1374
- var V = s[E];
1375
- this.set(V[0], V[1]);
1365
+ var d = Array.prototype, E = Function.prototype, i = Object.prototype, c = A["__core-js_shared__"], u = (function() {
1366
+ var l = /[^.]+$/.exec(c && c.keys && c.keys.IE_PROTO || "");
1367
+ return l ? "Symbol(src)_1." + l : "";
1368
+ })(), x = E.toString, I = i.hasOwnProperty, O = i.toString, $ = RegExp(
1369
+ "^" + x.call(I).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
+ ), L = A.Symbol, F = d.splice, _ = Pe(A, "Map"), R = Pe(Object, "create"), N = L ? L.prototype : void 0, B = N ? N.toString : void 0;
1371
+ function H(l) {
1372
+ var w = -1, M = l ? l.length : 0;
1373
+ for (this.clear(); ++w < M; ) {
1374
+ var D = l[w];
1375
+ this.set(D[0], D[1]);
1376
1376
  }
1377
1377
  }
1378
- function k() {
1379
- this.__data__ = N ? N(null) : {};
1378
+ function U() {
1379
+ this.__data__ = R ? R(null) : {};
1380
1380
  }
1381
- function j(s) {
1382
- return this.has(s) && delete this.__data__[s];
1381
+ function q(l) {
1382
+ return this.has(l) && delete this.__data__[l];
1383
1383
  }
1384
- function Z(s) {
1385
- var E = this.__data__;
1386
- if (N) {
1387
- var M = E[s];
1384
+ function Q(l) {
1385
+ var w = this.__data__;
1386
+ if (R) {
1387
+ var M = w[l];
1388
1388
  return M === r ? void 0 : M;
1389
1389
  }
1390
- return p.call(E, s) ? E[s] : void 0;
1390
+ return I.call(w, l) ? w[l] : void 0;
1391
1391
  }
1392
- function ae(s) {
1393
- var E = this.__data__;
1394
- return N ? E[s] !== void 0 : p.call(E, s);
1392
+ function z(l) {
1393
+ var w = this.__data__;
1394
+ return R ? w[l] !== void 0 : I.call(w, l);
1395
1395
  }
1396
- function Y(s, E) {
1396
+ function W(l, w) {
1397
1397
  var M = this.__data__;
1398
- return M[s] = N && E === void 0 ? r : E, this;
1399
- }
1400
- G.prototype.clear = k, G.prototype.delete = j, G.prototype.get = Z, G.prototype.has = ae, G.prototype.set = Y;
1401
- function H(s) {
1402
- var E = -1, M = s ? s.length : 0;
1403
- for (this.clear(); ++E < M; ) {
1404
- var V = s[E];
1405
- this.set(V[0], V[1]);
1398
+ return M[l] = R && w === void 0 ? r : w, this;
1399
+ }
1400
+ H.prototype.clear = U, H.prototype.delete = q, H.prototype.get = Q, H.prototype.has = z, H.prototype.set = W;
1401
+ function K(l) {
1402
+ var w = -1, M = l ? l.length : 0;
1403
+ for (this.clear(); ++w < M; ) {
1404
+ var D = l[w];
1405
+ this.set(D[0], D[1]);
1406
1406
  }
1407
1407
  }
1408
1408
  function re() {
1409
1409
  this.__data__ = [];
1410
1410
  }
1411
- function K(s) {
1412
- var E = this.__data__, M = X(E, s);
1411
+ function ae(l) {
1412
+ var w = this.__data__, M = Y(w, l);
1413
1413
  if (M < 0)
1414
1414
  return !1;
1415
- var V = E.length - 1;
1416
- return M == V ? E.pop() : R.call(E, M, 1), !0;
1417
- }
1418
- function J(s) {
1419
- var E = this.__data__, M = X(E, s);
1420
- return M < 0 ? void 0 : E[M][1];
1421
- }
1422
- function oe(s) {
1423
- return X(this.__data__, s) > -1;
1424
- }
1425
- function ce(s, E) {
1426
- var M = this.__data__, V = X(M, s);
1427
- return V < 0 ? M.push([s, E]) : M[V][1] = E, this;
1428
- }
1429
- H.prototype.clear = re, H.prototype.delete = K, H.prototype.get = J, H.prototype.has = oe, H.prototype.set = ce;
1430
- function se(s) {
1431
- var E = -1, M = s ? s.length : 0;
1432
- for (this.clear(); ++E < M; ) {
1433
- var V = s[E];
1434
- this.set(V[0], V[1]);
1415
+ var D = w.length - 1;
1416
+ return M == D ? w.pop() : F.call(w, M, 1), !0;
1417
+ }
1418
+ function ne(l) {
1419
+ var w = this.__data__, M = Y(w, l);
1420
+ return M < 0 ? void 0 : w[M][1];
1421
+ }
1422
+ function ce(l) {
1423
+ return Y(this.__data__, l) > -1;
1424
+ }
1425
+ function ue(l, w) {
1426
+ var M = this.__data__, D = Y(M, l);
1427
+ return D < 0 ? M.push([l, w]) : M[D][1] = w, this;
1428
+ }
1429
+ K.prototype.clear = re, K.prototype.delete = ae, K.prototype.get = ne, K.prototype.has = ce, K.prototype.set = ue;
1430
+ function oe(l) {
1431
+ var w = -1, M = l ? l.length : 0;
1432
+ for (this.clear(); ++w < M; ) {
1433
+ var D = l[w];
1434
+ this.set(D[0], D[1]);
1435
1435
  }
1436
1436
  }
1437
1437
  function de() {
1438
1438
  this.__data__ = {
1439
- hash: new G(),
1440
- map: new (L || H)(),
1441
- string: new G()
1439
+ hash: new H(),
1440
+ map: new (_ || K)(),
1441
+ string: new H()
1442
1442
  };
1443
1443
  }
1444
- function pe(s) {
1445
- return ye(this, s).delete(s);
1444
+ function pe(l) {
1445
+ return me(this, l).delete(l);
1446
1446
  }
1447
- function ue(s) {
1448
- return ye(this, s).get(s);
1447
+ function se(l) {
1448
+ return me(this, l).get(l);
1449
1449
  }
1450
- function me(s) {
1451
- return ye(this, s).has(s);
1450
+ function ye(l) {
1451
+ return me(this, l).has(l);
1452
1452
  }
1453
- function be(s, E) {
1454
- return ye(this, s).set(s, E), this;
1453
+ function be(l, w) {
1454
+ return me(this, l).set(l, w), this;
1455
1455
  }
1456
- se.prototype.clear = de, se.prototype.delete = pe, se.prototype.get = ue, se.prototype.has = me, se.prototype.set = be;
1457
- function X(s, E) {
1458
- for (var M = s.length; M--; )
1459
- if (Se(s[M][0], E))
1456
+ oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = be;
1457
+ function Y(l, w) {
1458
+ for (var M = l.length; M--; )
1459
+ if (Se(l[M][0], w))
1460
1460
  return M;
1461
1461
  return -1;
1462
1462
  }
1463
- function ne(s, E) {
1464
- E = Te(E, s) ? [E] : Re(E);
1465
- for (var M = 0, V = E.length; s != null && M < V; )
1466
- s = s[Ne(E[M++])];
1467
- return M && M == V ? s : void 0;
1463
+ function te(l, w) {
1464
+ w = Re(w, l) ? [w] : Te(w);
1465
+ for (var M = 0, D = w.length; l != null && M < D; )
1466
+ l = l[Ne(w[M++])];
1467
+ return M && M == D ? l : void 0;
1468
1468
  }
1469
- function Ie(s) {
1470
- if (!he(s) || _e(s))
1469
+ function Ie(l) {
1470
+ if (!he(l) || _e(l))
1471
1471
  return !1;
1472
- var E = Le(s) || m(s) ? S : g;
1473
- return E.test(le(s));
1474
- }
1475
- function xe(s) {
1476
- if (typeof s == "string")
1477
- return s;
1478
- if (d(s))
1479
- return U ? U.call(s) : "";
1480
- var E = s + "";
1481
- return E == "0" && 1 / s == -1 / 0 ? "-0" : E;
1472
+ var w = Le(l) || h(l) ? $ : v;
1473
+ return w.test(le(l));
1474
+ }
1475
+ function xe(l) {
1476
+ if (typeof l == "string")
1477
+ return l;
1478
+ if (y(l))
1479
+ return B ? B.call(l) : "";
1480
+ var w = l + "";
1481
+ return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
1482
+ }
1483
+ function Te(l) {
1484
+ return Oe(l) ? l : Ce(l);
1485
+ }
1486
+ function me(l, w) {
1487
+ var M = l.__data__;
1488
+ return ke(w) ? M[typeof w == "string" ? "string" : "hash"] : M.map;
1489
+ }
1490
+ function Pe(l, w) {
1491
+ var M = C(l, w);
1492
+ return Ie(M) ? M : void 0;
1482
1493
  }
1483
- function Re(s) {
1484
- return Oe(s) ? s : Ce(s);
1494
+ function Re(l, w) {
1495
+ if (Oe(l))
1496
+ return !1;
1497
+ var M = typeof l;
1498
+ return M == "number" || M == "symbol" || M == "boolean" || l == null || y(l) ? !0 : p.test(l) || !o.test(l) || w != null && l in Object(w);
1485
1499
  }
1486
- function ye(s, E) {
1487
- var M = s.__data__;
1488
- return ke(E) ? M[typeof E == "string" ? "string" : "hash"] : M.map;
1500
+ function ke(l) {
1501
+ var w = typeof l;
1502
+ return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? l !== "__proto__" : l === null;
1489
1503
  }
1490
- function Pe(s, E) {
1491
- var M = C(s, E);
1492
- return Ie(M) ? M : void 0;
1504
+ function _e(l) {
1505
+ return !!u && u in l;
1493
1506
  }
1494
- function Te(s, E) {
1495
- if (Oe(s))
1496
- return !1;
1497
- var M = typeof s;
1498
- return M == "number" || M == "symbol" || M == "boolean" || s == null || d(s) ? !0 : l.test(s) || !i.test(s) || E != null && s in Object(E);
1499
- }
1500
- function ke(s) {
1501
- var E = typeof s;
1502
- return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? s !== "__proto__" : s === null;
1503
- }
1504
- function _e(s) {
1505
- return !!I && I in s;
1506
- }
1507
- var Ce = fe(function(s) {
1508
- s = h(s);
1509
- var E = [];
1510
- return o.test(s) && E.push(""), s.replace(u, function(M, V, ie, q) {
1511
- E.push(ie ? q.replace(w, "$1") : V || M);
1512
- }), E;
1507
+ var Ce = fe(function(l) {
1508
+ l = g(l);
1509
+ var w = [];
1510
+ return s.test(l) && w.push(""), l.replace(f, function(M, D, ie, J) {
1511
+ w.push(ie ? J.replace(S, "$1") : D || M);
1512
+ }), w;
1513
1513
  });
1514
- function Ne(s) {
1515
- if (typeof s == "string" || d(s))
1516
- return s;
1517
- var E = s + "";
1518
- return E == "0" && 1 / s == -1 / 0 ? "-0" : E;
1519
- }
1520
- function le(s) {
1521
- if (s != null) {
1514
+ function Ne(l) {
1515
+ if (typeof l == "string" || y(l))
1516
+ return l;
1517
+ var w = l + "";
1518
+ return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
1519
+ }
1520
+ function le(l) {
1521
+ if (l != null) {
1522
1522
  try {
1523
- return B.call(s);
1523
+ return x.call(l);
1524
1524
  } catch {
1525
1525
  }
1526
1526
  try {
1527
- return s + "";
1527
+ return l + "";
1528
1528
  } catch {
1529
1529
  }
1530
1530
  }
1531
1531
  return "";
1532
1532
  }
1533
- function fe(s, E) {
1534
- if (typeof s != "function" || E && typeof E != "function")
1533
+ function fe(l, w) {
1534
+ if (typeof l != "function" || w && typeof w != "function")
1535
1535
  throw new TypeError(e);
1536
1536
  var M = function() {
1537
- var V = arguments, ie = E ? E.apply(this, V) : V[0], q = M.cache;
1538
- if (q.has(ie))
1539
- return q.get(ie);
1540
- var _ = s.apply(this, V);
1541
- return M.cache = q.set(ie, _), _;
1537
+ var D = arguments, ie = w ? w.apply(this, D) : D[0], J = M.cache;
1538
+ if (J.has(ie))
1539
+ return J.get(ie);
1540
+ var T = l.apply(this, D);
1541
+ return M.cache = J.set(ie, T), T;
1542
1542
  };
1543
- return M.cache = new (fe.Cache || se)(), M;
1543
+ return M.cache = new (fe.Cache || oe)(), M;
1544
1544
  }
1545
- fe.Cache = se;
1546
- function Se(s, E) {
1547
- return s === E || s !== s && E !== E;
1545
+ fe.Cache = oe;
1546
+ function Se(l, w) {
1547
+ return l === w || l !== l && w !== w;
1548
1548
  }
1549
1549
  var Oe = Array.isArray;
1550
- function Le(s) {
1551
- var E = he(s) ? y.call(s) : "";
1552
- return E == a || E == t;
1550
+ function Le(l) {
1551
+ var w = he(l) ? O.call(l) : "";
1552
+ return w == a || w == t;
1553
1553
  }
1554
- function he(s) {
1555
- var E = typeof s;
1556
- return !!s && (E == "object" || E == "function");
1554
+ function he(l) {
1555
+ var w = typeof l;
1556
+ return !!l && (w == "object" || w == "function");
1557
1557
  }
1558
- function ge(s) {
1559
- return !!s && typeof s == "object";
1558
+ function ge(l) {
1559
+ return !!l && typeof l == "object";
1560
1560
  }
1561
- function d(s) {
1562
- return typeof s == "symbol" || ge(s) && y.call(s) == n;
1561
+ function y(l) {
1562
+ return typeof l == "symbol" || ge(l) && O.call(l) == n;
1563
1563
  }
1564
- function h(s) {
1565
- return s == null ? "" : xe(s);
1564
+ function g(l) {
1565
+ return l == null ? "" : xe(l);
1566
1566
  }
1567
- function z(s, E, M) {
1568
- var V = s == null ? void 0 : ne(s, E);
1569
- return V === void 0 ? M : V;
1567
+ function j(l, w, M) {
1568
+ var D = l == null ? void 0 : te(l, w);
1569
+ return D === void 0 ? M : D;
1570
1570
  }
1571
- return fr = z, fr;
1571
+ return fr = j, fr;
1572
1572
  }
1573
- var ht = mt();
1574
- const Ue = /* @__PURE__ */ yr(ht);
1573
+ var ht = yt();
1574
+ const Ue = /* @__PURE__ */ mr(ht);
1575
1575
  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", i = "\\u20d0-\\u20f0", l = "\\u2700-\\u27bf", o = "a-z\\xdf-\\xf6\\xf8-\\xff", u = "\\xac\\xb1\\xd7\\xf7", f = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", g = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", P = "A-Z\\xc0-\\xd6\\xd8-\\xde", A = "\\ufe0e\\ufe0f", v = u + f + w + g, C = "['’]", m = "[" + t + "]", c = "[" + v + "]", x = "[" + n + i + "]", b = "\\d+", T = "[" + l + "]", I = "[" + o + "]", B = "[^" + t + v + b + l + o + P + "]", p = "\\ud83c[\\udffb-\\udfff]", y = "(?:" + x + "|" + p + ")", S = "[^" + t + "]", O = "(?:\\ud83c[\\udde6-\\uddff]){2}", R = "[\\ud800-\\udbff][\\udc00-\\udfff]", L = "[" + P + "]", N = "\\u200d", $ = "(?:" + I + "|" + B + ")", U = "(?:" + L + "|" + B + ")", G = "(?:" + C + "(?:d|ll|m|re|s|t|ve))?", k = "(?:" + C + "(?:D|LL|M|RE|S|T|VE))?", j = y + "?", Z = "[" + A + "]?", ae = "(?:" + N + "(?:" + [S, O, R].join("|") + ")" + Z + j + ")*", Y = Z + j + ae, H = "(?:" + [T, O, R].join("|") + ")" + Y, re = "(?:" + [S + x + "?", x, O, R, m].join("|") + ")", K = RegExp(C, "g"), J = RegExp(x, "g"), oe = RegExp(p + "(?=" + p + ")|" + re + Y, "g"), ce = RegExp([
1580
- L + "?" + I + "+" + G + "(?=" + [c, L, "$"].join("|") + ")",
1581
- U + "+" + k + "(?=" + [c, L + $, "$"].join("|") + ")",
1582
- L + "?" + $ + "+" + G,
1583
- L + "+" + k,
1584
- b,
1585
- H
1586
- ].join("|"), "g"), se = RegExp("[" + N + t + n + i + A + "]"), 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 = {
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", p = "\\u2700-\\u27bf", s = "a-z\\xdf-\\xf6\\xf8-\\xff", f = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", S = "\\u2000-\\u206f", v = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", P = "A-Z\\xc0-\\xd6\\xd8-\\xde", b = "\\ufe0e\\ufe0f", A = f + m + S + v, C = "['’]", h = "[" + t + "]", d = "[" + A + "]", E = "[" + n + o + "]", i = "\\d+", c = "[" + p + "]", u = "[" + s + "]", x = "[^" + t + A + i + p + s + P + "]", I = "\\ud83c[\\udffb-\\udfff]", O = "(?:" + E + "|" + I + ")", $ = "[^" + t + "]", L = "(?:\\ud83c[\\udde6-\\uddff]){2}", F = "[\\ud800-\\udbff][\\udc00-\\udfff]", _ = "[" + P + "]", R = "\\u200d", N = "(?:" + u + "|" + x + ")", B = "(?:" + _ + "|" + x + ")", H = "(?:" + C + "(?:d|ll|m|re|s|t|ve))?", U = "(?:" + C + "(?:D|LL|M|RE|S|T|VE))?", q = O + "?", Q = "[" + b + "]?", z = "(?:" + R + "(?:" + [$, L, F].join("|") + ")" + Q + q + ")*", W = Q + q + z, K = "(?:" + [c, L, F].join("|") + ")" + W, re = "(?:" + [$ + E + "?", E, L, F, h].join("|") + ")", ae = RegExp(C, "g"), ne = RegExp(E, "g"), ce = RegExp(I + "(?=" + I + ")|" + re + W, "g"), ue = RegExp([
1580
+ _ + "?" + u + "+" + H + "(?=" + [d, _, "$"].join("|") + ")",
1581
+ B + "+" + U + "(?=" + [d, _ + N, "$"].join("|") + ")",
1582
+ _ + "?" + N + "+" + H,
1583
+ _ + "+" + U,
1584
+ i,
1585
+ K
1586
+ ].join("|"), "g"), oe = RegExp("[" + R + t + n + o + b + "]"), 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",
@@ -1776,128 +1776,128 @@ function gt() {
1776
1776
  œ: "oe",
1777
1777
  ʼn: "'n",
1778
1778
  ſ: "ss"
1779
- }, ue = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, me = typeof self == "object" && self && self.Object === Object && self, be = ue || me || Function("return this")();
1780
- function X(_, D, W, Q) {
1781
- for (var te = -1, we = _ ? _.length : 0; ++te < we; )
1782
- W = D(W, _[te], te, _);
1783
- return W;
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 Y(T, G, V, Z) {
1781
+ for (var ee = -1, we = T ? T.length : 0; ++ee < we; )
1782
+ V = G(V, T[ee], ee, T);
1783
+ return V;
1784
1784
  }
1785
- function ne(_) {
1786
- return _.split("");
1785
+ function te(T) {
1786
+ return T.split("");
1787
1787
  }
1788
- function Ie(_) {
1789
- return _.match(r) || [];
1788
+ function Ie(T) {
1789
+ return T.match(r) || [];
1790
1790
  }
1791
- function xe(_) {
1792
- return function(D) {
1793
- return _?.[D];
1791
+ function xe(T) {
1792
+ return function(G) {
1793
+ return T?.[G];
1794
1794
  };
1795
1795
  }
1796
- var Re = xe(pe);
1797
- function ye(_) {
1798
- return se.test(_);
1796
+ var Te = xe(pe);
1797
+ function me(T) {
1798
+ return oe.test(T);
1799
1799
  }
1800
- function Pe(_) {
1801
- return de.test(_);
1800
+ function Pe(T) {
1801
+ return de.test(T);
1802
1802
  }
1803
- function Te(_) {
1804
- return ye(_) ? ke(_) : ne(_);
1803
+ function Re(T) {
1804
+ return me(T) ? ke(T) : te(T);
1805
1805
  }
1806
- function ke(_) {
1807
- return _.match(oe) || [];
1806
+ function ke(T) {
1807
+ return T.match(ce) || [];
1808
1808
  }
1809
- function _e(_) {
1810
- return _.match(ce) || [];
1809
+ function _e(T) {
1810
+ return T.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(_, D, W) {
1814
- var Q = -1, te = _.length;
1815
- D < 0 && (D = -D > te ? 0 : te + D), W = W > te ? te : W, W < 0 && (W += te), te = D > W ? 0 : W - D >>> 0, D >>>= 0;
1816
- for (var we = Array(te); ++Q < te; )
1817
- we[Q] = _[Q + D];
1813
+ function Oe(T, G, V) {
1814
+ var Z = -1, ee = T.length;
1815
+ G < 0 && (G = -G > ee ? 0 : ee + G), V = V > ee ? ee : V, V < 0 && (V += ee), ee = G > V ? 0 : V - G >>> 0, G >>>= 0;
1816
+ for (var we = Array(ee); ++Z < ee; )
1817
+ we[Z] = T[Z + G];
1818
1818
  return we;
1819
1819
  }
1820
- function Le(_) {
1821
- if (typeof _ == "string")
1822
- return _;
1823
- if (z(_))
1824
- return Se ? Se.call(_) : "";
1825
- var D = _ + "";
1826
- return D == "0" && 1 / _ == -1 / 0 ? "-0" : D;
1827
- }
1828
- function he(_, D, W) {
1829
- var Q = _.length;
1830
- return W = W === void 0 ? Q : W, !D && W >= Q ? _ : Oe(_, D, W);
1831
- }
1832
- function ge(_) {
1833
- return function(D) {
1834
- D = s(D);
1835
- var W = ye(D) ? Te(D) : void 0, Q = W ? W[0] : D.charAt(0), te = W ? he(W, 1).join("") : D.slice(1);
1836
- return Q[_]() + te;
1820
+ function Le(T) {
1821
+ if (typeof T == "string")
1822
+ return T;
1823
+ if (j(T))
1824
+ return Se ? Se.call(T) : "";
1825
+ var G = T + "";
1826
+ return G == "0" && 1 / T == -1 / 0 ? "-0" : G;
1827
+ }
1828
+ function he(T, G, V) {
1829
+ var Z = T.length;
1830
+ return V = V === void 0 ? Z : V, !G && V >= Z ? T : Oe(T, G, V);
1831
+ }
1832
+ function ge(T) {
1833
+ return function(G) {
1834
+ G = l(G);
1835
+ var V = me(G) ? Re(G) : void 0, Z = V ? V[0] : G.charAt(0), ee = V ? he(V, 1).join("") : G.slice(1);
1836
+ return Z[T]() + ee;
1837
1837
  };
1838
1838
  }
1839
- function d(_) {
1840
- return function(D) {
1841
- return X(q(V(D).replace(K, "")), _, "");
1839
+ function y(T) {
1840
+ return function(G) {
1841
+ return Y(J(D(G).replace(ae, "")), T, "");
1842
1842
  };
1843
1843
  }
1844
- function h(_) {
1845
- return !!_ && typeof _ == "object";
1844
+ function g(T) {
1845
+ return !!T && typeof T == "object";
1846
1846
  }
1847
- function z(_) {
1848
- return typeof _ == "symbol" || h(_) && Ne.call(_) == e;
1847
+ function j(T) {
1848
+ return typeof T == "symbol" || g(T) && Ne.call(T) == e;
1849
1849
  }
1850
- function s(_) {
1851
- return _ == null ? "" : Le(_);
1850
+ function l(T) {
1851
+ return T == null ? "" : Le(T);
1852
1852
  }
1853
- var E = d(function(_, D, W) {
1854
- return D = D.toLowerCase(), _ + (W ? M(D) : D);
1853
+ var w = y(function(T, G, V) {
1854
+ return G = G.toLowerCase(), T + (V ? M(G) : G);
1855
1855
  });
1856
- function M(_) {
1857
- return ie(s(_).toLowerCase());
1856
+ function M(T) {
1857
+ return ie(l(T).toLowerCase());
1858
1858
  }
1859
- function V(_) {
1860
- return _ = s(_), _ && _.replace(a, Re).replace(J, "");
1859
+ function D(T) {
1860
+ return T = l(T), T && T.replace(a, Te).replace(ne, "");
1861
1861
  }
1862
1862
  var ie = ge("toUpperCase");
1863
- function q(_, D, W) {
1864
- return _ = s(_), D = D, D === void 0 ? Pe(_) ? _e(_) : Ie(_) : _.match(D) || [];
1863
+ function J(T, G, V) {
1864
+ return T = l(T), G = G, G === void 0 ? Pe(T) ? _e(T) : Ie(T) : T.match(G) || [];
1865
1865
  }
1866
- return dr = E, dr;
1866
+ return dr = w, dr;
1867
1867
  }
1868
1868
  var vt = gt();
1869
- const At = /* @__PURE__ */ yr(vt);
1869
+ const At = /* @__PURE__ */ mr(vt);
1870
1870
  var ve = {}, jr;
1871
1871
  function bt() {
1872
1872
  if (jr) return ve;
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(l) {
1877
- return typeof l;
1878
- } : function(l) {
1879
- return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
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")), i = typeof Deno < "u" && typeof Deno.core < "u";
1881
- return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = i, ve;
1876
+ var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
1877
+ return typeof p;
1878
+ } : function(p) {
1879
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
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
- const F = {}, De = {};
1885
- F.loadExternalScript = function(e) {
1884
+ const k = {}, De = {};
1885
+ k.loadExternalScript = function(e) {
1886
1886
  if (De[e])
1887
1887
  return De[e];
1888
1888
  const r = De[e] = new Promise(a);
1889
1889
  function a(t, n) {
1890
1890
  if (!document)
1891
1891
  return delete De[e], n("document is undefined");
1892
- var i = document.createElement("script");
1893
- i.type = "text/javascript", i.async = !0, i.onload = function() {
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
- }, i.src = e, document.head.appendChild(i);
1895
+ }, o.src = e, document.head.appendChild(o);
1896
1896
  }
1897
1897
  return r;
1898
1898
  };
1899
1899
  const Vr = {};
1900
- F.loadExternalStyle = function(e) {
1900
+ k.loadExternalStyle = function(e) {
1901
1901
  const r = new Promise(a);
1902
1902
  function a(t, n) {
1903
1903
  if (!document)
@@ -1905,14 +1905,14 @@ F.loadExternalStyle = function(e) {
1905
1905
  if (Vr[e])
1906
1906
  return t(e);
1907
1907
  Vr[e] = !0;
1908
- var i = document.createElement("link");
1909
- i.setAttribute("rel", "stylesheet"), i.setAttribute("type", "text/css"), i.setAttribute("href", e), i.onload = function() {
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(i);
1911
+ }, document.head.appendChild(o);
1912
1912
  }
1913
1913
  return r;
1914
1914
  };
1915
- F.exists = function(e) {
1915
+ k.exists = function(e) {
1916
1916
  var r;
1917
1917
  if (Array.isArray(e) || e === 0)
1918
1918
  return !0;
@@ -1934,7 +1934,7 @@ F.exists = function(e) {
1934
1934
  }
1935
1935
  return !r;
1936
1936
  };
1937
- F.parseDate = function(e) {
1937
+ k.parseDate = function(e) {
1938
1938
  if (e) {
1939
1939
  if (e instanceof Date)
1940
1940
  return e;
@@ -1943,15 +1943,15 @@ F.parseDate = function(e) {
1943
1943
  return r;
1944
1944
  }
1945
1945
  };
1946
- F.parseURL = function(e) {
1946
+ k.parseURL = function(e) {
1947
1947
  if (!e)
1948
1948
  return !1;
1949
1949
  if (e.startsWith("/") || e.startsWith("://") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("sms:"))
1950
1950
  return e;
1951
- var a = F.parseEmail(e);
1951
+ var a = k.parseEmail(e);
1952
1952
  if (a && a === e)
1953
1953
  return `mailto:${a}`;
1954
- const t = (i) => /^https?:\/\//i.test(i) ? i : `http://${i}`;
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_@]*)?$",
@@ -1959,16 +1959,16 @@ F.parseURL = function(e) {
1959
1959
  ).test(e);
1960
1960
  return n ? t(e) : !1;
1961
1961
  };
1962
- F.parseNumber = function(e, r) {
1962
+ k.parseNumber = function(e, r) {
1963
1963
  if (!e || (e = Number(e), isNaN(e)))
1964
1964
  return 0;
1965
1965
  if (r) {
1966
1966
  var a = e.toFixed(r);
1967
- e = F.parseNumber(a);
1967
+ e = k.parseNumber(a);
1968
1968
  }
1969
1969
  return e;
1970
1970
  };
1971
- F.isValidEmailAddress = function(e) {
1971
+ k.isValidEmailAddress = function(e) {
1972
1972
  var r = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
1973
1973
  if (!e) return !1;
1974
1974
  var a = e.split("@");
@@ -1976,55 +1976,55 @@ F.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 i = n.split(".");
1980
- return !(i.some(function(l) {
1981
- return l.length > 63;
1979
+ var o = n.split(".");
1980
+ return !(o.some(function(p) {
1981
+ return p.length > 63;
1982
1982
  }) || !r.test(e));
1983
1983
  };
1984
- F.parseEmail = function(e) {
1984
+ k.parseEmail = function(e) {
1985
1985
  if (!e)
1986
1986
  return !1;
1987
- var r = String(e).toLowerCase(), a = F.isValidEmailAddress(r);
1987
+ var r = String(e).toLowerCase(), a = k.isValidEmailAddress(r);
1988
1988
  return a ? r : !1;
1989
1989
  };
1990
- F.parseInt = function(e) {
1990
+ k.parseInt = function(e) {
1991
1991
  return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
1992
1992
  };
1993
- F.cleanValue = function(e, r, a) {
1993
+ k.cleanValue = function(e, r, a) {
1994
1994
  a || (a = {});
1995
- var t = F.exists(e);
1995
+ var t = k.exists(e);
1996
1996
  if (a.strict && t && r != "boolean")
1997
1997
  return e;
1998
1998
  switch (r) {
1999
1999
  case "reference":
2000
- return F.id(e, !0);
2000
+ return k.id(e, !0);
2001
2001
  case "boolean":
2002
- return F.parseBoolean(e);
2002
+ return k.parseBoolean(e);
2003
2003
  case "url":
2004
- return F.parseURL(e);
2004
+ return k.parseURL(e);
2005
2005
  case "key":
2006
- return F.machineName(e);
2006
+ return k.machineName(e);
2007
2007
  case "email":
2008
- return F.parseEmail(e);
2008
+ return k.parseEmail(e);
2009
2009
  case "date":
2010
- var n = F.parseDate(e, a);
2010
+ var n = k.parseDate(e, a);
2011
2011
  return n === void 0 ? void 0 : n;
2012
2012
  case "number":
2013
2013
  case "decimal":
2014
2014
  case "float":
2015
- var i = F.parseNumber(e);
2016
- return String(i) == String(Number(e)) ? i : void 0;
2015
+ var o = k.parseNumber(e);
2016
+ return String(o) == String(Number(e)) ? o : void 0;
2017
2017
  case "integer":
2018
- var i = F.parseInt(e);
2019
- return String(i) == String(parseInt(e)) ? i : void 0;
2018
+ var o = k.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
- if (F.exists(e)) {
2026
- var l = String(e);
2027
- return l == "[object Object]" ? void 0 : l;
2025
+ if (k.exists(e)) {
2026
+ var p = String(e);
2027
+ return p == "[object Object]" ? void 0 : p;
2028
2028
  } else
2029
2029
  return;
2030
2030
  // if(!data) {
@@ -2042,59 +2042,59 @@ F.cleanValue = function(e, r, a) {
2042
2042
  return String(e);
2043
2043
  }
2044
2044
  };
2045
- F.isValidValue = function(e, r, a) {
2046
- var t = F.exists(e), n = typeof e == "number", i = !1;
2045
+ k.isValidValue = function(e, r, a) {
2046
+ var t = k.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 ? i = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : i = String(e) === F.parseURL(e);
2051
+ a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === k.parseURL(e);
2052
2052
  break;
2053
2053
  case "key":
2054
- i = String(e) === F.machineName(e);
2054
+ o = String(e) === k.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 l = F.parseDate(e);
2060
- return l !== void 0;
2059
+ var p = k.parseDate(e);
2060
+ return p !== void 0;
2061
2061
  case "email":
2062
- a ? i = e === F.parseEmail(e) : i = String(e).toLowerCase() === F.parseEmail(e);
2062
+ a ? o = e === k.parseEmail(e) : o = String(e).toLowerCase() === k.parseEmail(e);
2063
2063
  break;
2064
2064
  case "number":
2065
2065
  case "decimal":
2066
2066
  case "float":
2067
- a ? i = n && Number(e) === F.parseNumber(e) : i = Number(e) === F.parseNumber(e);
2067
+ a ? o = n && Number(e) === k.parseNumber(e) : o = Number(e) === k.parseNumber(e);
2068
2068
  break;
2069
2069
  case "integer":
2070
- a ? i = n && Number(e) === F.parseInt(e) : i = Number(e) === F.parseInt(e);
2070
+ a ? o = n && Number(e) === k.parseInt(e) : o = Number(e) === k.parseInt(e);
2071
2071
  break;
2072
2072
  case "boolean":
2073
- var l = F.parseBoolean(e);
2074
- a ? (e === !0 || e === !1) && (i = e === l) : i = l === !0 || l === !1;
2073
+ var p = k.parseBoolean(e);
2074
+ a ? (e === !0 || e === !1) && (o = e === p) : o = p === !0 || p === !1;
2075
2075
  break;
2076
2076
  case "reference":
2077
- a ? i = String(e) === F.id(e) : i = !!F.id(e);
2077
+ a ? o = String(e) === k.id(e) : o = !!k.id(e);
2078
2078
  break;
2079
2079
  case "string":
2080
- var o = String(e);
2081
- if (a && typeof e != "string" || o == "[object Object]")
2080
+ var s = String(e);
2081
+ if (a && typeof e != "string" || s == "[object Object]")
2082
2082
  return !1;
2083
- i = !0;
2083
+ o = !0;
2084
2084
  break;
2085
2085
  // case 'group':
2086
2086
  // isValidEntry = _isObject(value);
2087
2087
  // break;
2088
2088
  case "object":
2089
- i = typeof e == "object" && e !== null && !Array.isArray(e);
2089
+ o = typeof e == "object" && e !== null && !Array.isArray(e);
2090
2090
  break;
2091
2091
  case "array":
2092
- i = Array.isArray(e);
2092
+ o = Array.isArray(e);
2093
2093
  break;
2094
2094
  }
2095
- return i;
2095
+ return o;
2096
2096
  };
2097
- F.parseBoolean = function(e) {
2097
+ k.parseBoolean = function(e) {
2098
2098
  switch (String(e).toLowerCase()) {
2099
2099
  case "true":
2100
2100
  case "y":
@@ -2117,15 +2117,15 @@ F.parseBoolean = function(e) {
2117
2117
  }
2118
2118
  return !!e;
2119
2119
  };
2120
- F.clone = function(e) {
2120
+ k.clone = function(e) {
2121
2121
  return JSON.parse(JSON.stringify(e));
2122
2122
  };
2123
- F.getAllFields = function(e) {
2123
+ k.getAllFields = function(e) {
2124
2124
  const r = e.definesType === "profile" || e.key === "profile", a = e.definesType === "submission";
2125
2125
  var t = [...e.fields], n = e.definedFields || [];
2126
2126
  if (n.length)
2127
2127
  if (a) {
2128
- var i = {
2128
+ var o = {
2129
2129
  title: "Form Data",
2130
2130
  minimum: 1,
2131
2131
  maximum: 1,
@@ -2134,21 +2134,21 @@ F.getAllFields = function(e) {
2134
2134
  type: "group",
2135
2135
  fields: n
2136
2136
  };
2137
- t.push(i);
2138
- var l = {
2137
+ t.push(o);
2138
+ var p = {
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(f) {
2146
- return f.type === "reference" && (f = JSON.parse(JSON.stringify(f)), delete f.fields), f;
2145
+ fields: n.map(function(m) {
2146
+ return m.type === "reference" && (m = JSON.parse(JSON.stringify(m)), delete m.fields), m;
2147
2147
  })
2148
2148
  };
2149
- t.push(l);
2149
+ t.push(p);
2150
2150
  } else {
2151
- var l = {
2151
+ var p = {
2152
2152
  title: `${e.title}`,
2153
2153
  minimum: 1,
2154
2154
  maximum: 1,
@@ -2157,7 +2157,7 @@ F.getAllFields = function(e) {
2157
2157
  type: "group",
2158
2158
  fields: n
2159
2159
  };
2160
- t.push(l);
2160
+ t.push(p);
2161
2161
  }
2162
2162
  r && (t.push({
2163
2163
  title: "Age",
@@ -2172,38 +2172,38 @@ F.getAllFields = function(e) {
2172
2172
  maximum: 1,
2173
2173
  type: "date"
2174
2174
  }));
2175
- var o = F.mapFields(t).filter(function(u) {
2176
- var f = u.type == "group" && u.asObject && u.minimum == 1 && u.maximum == 1;
2177
- return !f;
2178
- }).map(function(u) {
2179
- return u.title = u.filterTitle || u.titles.filter(Boolean).join(" › "), u;
2180
- }).sort(function(u, f) {
2181
- return u.title < f.title ? -1 : 1;
2175
+ var s = k.mapFields(t).filter(function(f) {
2176
+ var m = f.type == "group" && f.asObject && f.minimum == 1 && f.maximum == 1;
2177
+ return !m;
2178
+ }).map(function(f) {
2179
+ return f.title = f.filterTitle || f.titles.filter(Boolean).join(" › "), f;
2180
+ }).sort(function(f, m) {
2181
+ return f.title < m.title ? -1 : 1;
2182
2182
  });
2183
- return o;
2183
+ return s;
2184
2184
  };
2185
- F.mapFields = function(e, r) {
2185
+ k.mapFields = function(e, r) {
2186
2186
  r || (r = {});
2187
- var a = [], t = [], n = [], i = 1, l = r.depth, o = r.arrayDelimeter || "[]";
2188
- e.forEach(u);
2189
- function u(f, w) {
2190
- var g = f.key, P = f.type == "group", A = f.minimum === f.maximum && f.minimum === 1, v = f.asObject, C = P && !v, m = r.original ? f : F.clone(f);
2191
- m.trail = t.slice(), m.trail.push(g), m.path = m.trail.join("."), m.titles = n.slice(), m.titles.push(f.filterTitle || f.title || ""), (!C || r.includeLayout) && a.push(m);
2192
- var x = l && i >= l;
2193
- if (f.fields && f.fields.length)
2187
+ var a = [], t = [], n = [], o = 1, p = r.depth, s = r.arrayDelimeter || "[]";
2188
+ e.forEach(f);
2189
+ function f(m, S) {
2190
+ var v = m.key, P = m.type == "group", b = m.minimum === m.maximum && m.minimum === 1, A = m.asObject, C = P && !A, h = r.original ? m : k.clone(m);
2191
+ h.trail = t.slice(), h.trail.push(v), h.path = h.trail.join("."), h.titles = n.slice(), h.titles.push(m.filterTitle || m.title || ""), (!C || r.includeLayout) && a.push(h);
2192
+ var E = p && o >= p;
2193
+ if (m.fields && m.fields.length)
2194
2194
  if (C)
2195
- f.fields.forEach(u);
2195
+ m.fields.forEach(f);
2196
2196
  else {
2197
- if (x)
2197
+ if (E)
2198
2198
  return;
2199
- i++;
2200
- let b = g;
2201
- r.includeArrayDelimeter && (A || (b = `${g}${o}`)), t.push(b), n.push(f.filterTitle || f.title), f.fields.forEach(u), i--, t.pop(), n.pop();
2199
+ o++;
2200
+ let i = v;
2201
+ r.includeArrayDelimeter && (b || (i = `${v}${s}`)), t.push(i), n.push(m.filterTitle || m.title), m.fields.forEach(f), o--, t.pop(), n.pop();
2202
2202
  }
2203
2203
  }
2204
2204
  return a;
2205
2205
  };
2206
- F.mapParameters = function(e) {
2206
+ k.mapParameters = function(e) {
2207
2207
  e = e || {};
2208
2208
  var r = [];
2209
2209
  return Object.entries(e).forEach(function([a, t]) {
@@ -2212,13 +2212,13 @@ F.mapParameters = function(e) {
2212
2212
  }) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
2213
2213
  }), r.join("&");
2214
2214
  };
2215
- F.formatCurrency = function(e, r, a) {
2215
+ k.formatCurrency = function(e, r, a) {
2216
2216
  (!e || isNaN(e)) && (e = 0), a = a || 2;
2217
- var t = F.currencySymbol(r);
2217
+ var t = k.currencySymbol(r);
2218
2218
  return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
2219
2219
  };
2220
- F.getTypeFromID = function(e) {
2221
- if (e = F.id(e), !e)
2220
+ k.getTypeFromID = function(e) {
2221
+ if (e = k.id(e), !e)
2222
2222
  return;
2223
2223
  const r = {
2224
2224
  21: "organisation",
@@ -2280,7 +2280,7 @@ F.getTypeFromID = function(e) {
2280
2280
  var a = e.slice(8, 10);
2281
2281
  return r[a];
2282
2282
  };
2283
- F.currencySymbol = function(e) {
2283
+ k.currencySymbol = function(e) {
2284
2284
  switch (e = String(e).toLowerCase(), String(e).toLowerCase()) {
2285
2285
  case "gbp":
2286
2286
  return "£";
@@ -2290,122 +2290,122 @@ F.currencySymbol = function(e) {
2290
2290
  return "$";
2291
2291
  }
2292
2292
  };
2293
- F.getAvailableCurrencies = function(e) {
2293
+ k.getAvailableCurrencies = function(e) {
2294
2294
  var r = [];
2295
2295
  if (r.push({
2296
- name: `USD (${F.currencySymbol("usd")})`,
2296
+ name: `USD (${k.currencySymbol("usd")})`,
2297
2297
  value: "usd",
2298
2298
  countryCode: { US: !0 }
2299
2299
  }), r.push({
2300
- name: `GBP (${F.currencySymbol("gbp")})`,
2300
+ name: `GBP (${k.currencySymbol("gbp")})`,
2301
2301
  value: "gbp",
2302
2302
  countryCode: { GB: !0, UK: !0 }
2303
2303
  }), r.push({
2304
- name: `CAD (${F.currencySymbol("cad")})`,
2304
+ name: `CAD (${k.currencySymbol("cad")})`,
2305
2305
  value: "cad",
2306
2306
  countryCode: { CA: !0 }
2307
2307
  }), r.push({
2308
- name: `AUD (${F.currencySymbol("aud")})`,
2308
+ name: `AUD (${k.currencySymbol("aud")})`,
2309
2309
  value: "aud",
2310
2310
  countryCode: { AU: !0 }
2311
2311
  }), r.push({
2312
- name: `NZD (${F.currencySymbol("nzd")})`,
2312
+ name: `NZD (${k.currencySymbol("nzd")})`,
2313
2313
  value: "nzd",
2314
2314
  countryCode: { NZ: !0 }
2315
2315
  }), r.push({
2316
- name: `SGD (${F.currencySymbol("sgd")})`,
2316
+ name: `SGD (${k.currencySymbol("sgd")})`,
2317
2317
  value: "sgd",
2318
2318
  countryCode: { SG: !0 }
2319
2319
  }), e) {
2320
2320
  var a = r.findIndex(function(n) {
2321
2321
  return n.countryCode[e];
2322
2322
  });
2323
- const t = (n, i, l) => {
2324
- const o = [...n];
2325
- return o.splice(l, 0, ...o.splice(i, 1)), o;
2323
+ const t = (n, o, p) => {
2324
+ const s = [...n];
2325
+ return s.splice(p, 0, ...s.splice(o, 1)), s;
2326
2326
  };
2327
2327
  a != -1 && (r = t(r, a, 0));
2328
2328
  }
2329
2329
  return r;
2330
2330
  };
2331
- F.hash = function(e, r) {
2331
+ k.hash = function(e, r) {
2332
2332
  return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
2333
2333
  const n = r ? Ue(t, r) : t;
2334
2334
  return a[n] = t, a;
2335
2335
  }, {});
2336
2336
  };
2337
- F.extractFromArray = function(e, r, a, t, n, i, l) {
2338
- l = l || {}, a && (l.sum = a), t && (l.flatten = !0), n && (l.unique = !0), i && (l.excludeNull = !0);
2339
- var o = e.reduce(function(u, f) {
2340
- var w = Ue(f, r), g = !w && w !== !1 && w !== 0;
2341
- return l.excludeNull && g || u.push(w), u;
2337
+ k.extractFromArray = function(e, r, a, t, n, o, p) {
2338
+ p = p || {}, a && (p.sum = a), t && (p.flatten = !0), n && (p.unique = !0), o && (p.excludeNull = !0);
2339
+ var s = e.reduce(function(f, m) {
2340
+ var S = Ue(m, r), v = !S && S !== !1 && S !== 0;
2341
+ return p.excludeNull && v || f.push(S), f;
2342
2342
  }, []);
2343
- return l.flatten && (o = o.flat()), l.unique && (o = [...new Set(o)]), l.sum && (o = o.reduce(function(u, f) {
2344
- return u + f;
2345
- }, 0)), o;
2343
+ return p.flatten && (s = s.flat()), p.unique && (s = [...new Set(s)]), p.sum && (s = s.reduce(function(f, m) {
2344
+ return f + m;
2345
+ }, 0)), s;
2346
2346
  };
2347
- F.matchInArray = function(e, r, a, t) {
2348
- var n = e.filter(function(i) {
2349
- var l = Ue(i, r), o;
2347
+ k.matchInArray = function(e, r, a, t) {
2348
+ var n = e.filter(function(o) {
2349
+ var p = Ue(o, r), s;
2350
2350
  switch (t) {
2351
2351
  case "in":
2352
- o = l.includes(a);
2352
+ s = p.includes(a);
2353
2353
  break;
2354
2354
  case ">=":
2355
- o = l >= a;
2355
+ s = p >= a;
2356
2356
  break;
2357
2357
  case "<=":
2358
- o = l <= a;
2358
+ s = p <= a;
2359
2359
  break;
2360
2360
  case "<":
2361
- o = l < a;
2361
+ s = p < a;
2362
2362
  break;
2363
2363
  case ">":
2364
- o = l > a;
2364
+ s = p > a;
2365
2365
  break;
2366
2366
  case "==":
2367
2367
  default:
2368
- a === void 0 ? o = l : o = l == a;
2368
+ a === void 0 ? s = p : s = p == a;
2369
2369
  break;
2370
2370
  }
2371
- return o;
2371
+ return s;
2372
2372
  });
2373
2373
  return n;
2374
2374
  };
2375
- F.comma = function(e, r, a) {
2375
+ k.comma = function(e, r, a) {
2376
2376
  return a && (e = e.slice(0, a)), e.filter(function(t) {
2377
2377
  return t != null && t !== void 0 && t !== "";
2378
2378
  }).map(function(t) {
2379
2379
  return r && r.length ? Ue(t, r) : t;
2380
2380
  }).join(", ");
2381
2381
  };
2382
- F.id = function(e) {
2382
+ k.id = function(e) {
2383
2383
  if (e) {
2384
2384
  var r;
2385
2385
  e._id ? r = String(e._id) : r = String(e);
2386
- var a = F.isValidID(r);
2386
+ var a = k.isValidID(r);
2387
2387
  if (a)
2388
2388
  return r;
2389
2389
  }
2390
2390
  };
2391
- F.ids = function(e) {
2391
+ k.ids = function(e) {
2392
2392
  if (!e)
2393
2393
  return [];
2394
2394
  var r = Object.keys(
2395
2395
  e.reduce(function(a, t) {
2396
2396
  if (!t)
2397
2397
  return a;
2398
- var n = F.id(t);
2398
+ var n = k.id(t);
2399
2399
  return n && (a[n] = 1), a;
2400
2400
  }, {})
2401
2401
  );
2402
2402
  return r;
2403
2403
  };
2404
- F.isValidID = function(e) {
2404
+ k.isValidID = function(e) {
2405
2405
  var r = new RegExp("^[0-9a-fA-F]{24}$");
2406
2406
  return r.test(String(e));
2407
2407
  };
2408
- F.errorMessage = function(e) {
2408
+ k.errorMessage = function(e) {
2409
2409
  if (e) {
2410
2410
  Array.isArray(e) && (e = e[0]);
2411
2411
  var r = ["response.data.message", "response.data", "message"], a;
@@ -2417,11 +2417,11 @@ F.errorMessage = function(e) {
2417
2417
  }), Array.isArray(a) && (a = a[0]), a = a || JSON.stringify(e), a;
2418
2418
  }
2419
2419
  };
2420
- F.guid = function() {
2420
+ k.guid = function() {
2421
2421
  var e = (/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substring(2) + "0".repeat(16);
2422
2422
  return e.substr(0, 8) + "-" + e.substr(8, 4) + "-4000-8" + e.substr(12, 3) + "-" + e.substr(15, 12);
2423
2423
  };
2424
- F.machineName = function(e) {
2424
+ k.machineName = function(e) {
2425
2425
  if (!(!e || !e.length)) {
2426
2426
  var r = /[^a-zA-Z0-9-_]+/g;
2427
2427
  return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
@@ -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 i = `${r}=${a}`;
2573
- n.domain && (i += `; Domain=${n.domain}`), n.secure && (i += "; Secure"), n.sameSite && (i += `; SameSite=${n.sameSite}`), n.maxAge && (i += `; Max-Age=${n.maxAge}`), document.cookie = i;
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,257 +2652,257 @@ var Et = function(e) {
2652
2652
  });
2653
2653
  const n = new je();
2654
2654
  n.bootstrap(t);
2655
- function i(o) {
2656
- var u = r.getUser();
2657
- t.onChange && t.onChange(u), n.dispatch("change", u, o);
2658
- }
2659
- t.set = function(o, u, f) {
2660
- const w = r.getUser();
2661
- if (JSON.stringify(w) != JSON.stringify(o) && (r.setUser(o), !f))
2662
- return i(u);
2655
+ function o(s) {
2656
+ var f = r.getUser();
2657
+ t.onChange && t.onChange(f), n.dispatch("change", f, s);
2658
+ }
2659
+ t.set = function(s, f, m) {
2660
+ const S = r.getUser();
2661
+ if (JSON.stringify(S) != JSON.stringify(s) && (r.setUser(s), !m))
2662
+ return o(f);
2663
2663
  }, t.logout = function() {
2664
- return r.clearUser(), e.cache.reset(), i();
2665
- }, t.changeOrganisation = function(o, u) {
2666
- o = e.utils.id(o), u || (u = {});
2667
- var f = !0;
2668
- return u.disableAutoAuthentication && (f = !1), new Promise(function(w, g) {
2669
- e.api.post(`/user/switch/${o}`).then(function(P) {
2670
- f && (e.cache.reset(), t.set(P.data)), w(P.data);
2671
- }).catch(g);
2664
+ return r.clearUser(), e.cache.reset(), o();
2665
+ }, t.changeOrganisation = function(s, f) {
2666
+ s = e.utils.id(s), f || (f = {});
2667
+ var m = !0;
2668
+ return f.disableAutoAuthentication && (m = !1), new Promise(function(S, v) {
2669
+ e.api.post(`/user/switch/${s}`).then(function(P) {
2670
+ m && (e.cache.reset(), t.set(P.data)), S(P.data);
2671
+ }).catch(v);
2672
2672
  });
2673
- }, t.impersonate = function(o, u) {
2674
- o = e.utils.id(o), u || (u = {});
2675
- var f = !0;
2676
- u.disableAutoAuthentication && (f = !1);
2677
- var w = e.api.post(`/user/impersonate/${o}`);
2678
- return w.then(function(g) {
2679
- f && (e.cache.reset(), t.set(g.data));
2680
- }, function(g) {
2681
- }), w;
2682
- }, t.login = async function(o, u) {
2683
- u || (u = {});
2684
- var f = !0;
2685
- u.disableAutoAuthentication && (f = !1);
2686
- var w = new Promise(g);
2687
- function g(P, A) {
2688
- if (!o)
2689
- return A({
2673
+ }, t.impersonate = function(s, f) {
2674
+ s = e.utils.id(s), f || (f = {});
2675
+ var m = !0;
2676
+ f.disableAutoAuthentication && (m = !1);
2677
+ var S = e.api.post(`/user/impersonate/${s}`);
2678
+ return S.then(function(v) {
2679
+ m && (e.cache.reset(), t.set(v.data));
2680
+ }, function(v) {
2681
+ }), S;
2682
+ }, t.login = async function(s, f) {
2683
+ f || (f = {});
2684
+ var m = !0;
2685
+ f.disableAutoAuthentication && (m = !1);
2686
+ var S = new Promise(v);
2687
+ function v(P, b) {
2688
+ if (!s)
2689
+ return b({
2690
2690
  message: "Missing credentials!"
2691
2691
  });
2692
- if (!o.email || !o.email.length)
2693
- return A({
2692
+ if (!s.email || !s.email.length)
2693
+ return b({
2694
2694
  message: "Username was not provided"
2695
2695
  });
2696
- if (!o.password || !o.password.length)
2697
- return A({
2696
+ if (!s.password || !s.password.length)
2697
+ return b({
2698
2698
  message: "Password was not provided"
2699
2699
  });
2700
- var v = {
2700
+ var A = {
2701
2701
  bypassInterceptor: !0
2702
2702
  };
2703
- r.isCookieMode && r.isCookieMode() && (o.useCookies = !0, v.withCredentials = !0);
2704
- var m = `${e.apiURL}/user/login`;
2705
- u.url && (m = u.url), e.api.post(m, o, v).then(function(c) {
2706
- f && t.set(c.data), P(c);
2707
- }, A);
2703
+ r.isCookieMode && r.isCookieMode() && (s.useCookies = !0, A.withCredentials = !0);
2704
+ var h = `${e.apiURL}/user/login`;
2705
+ f.url && (h = f.url), e.api.post(h, s, A).then(function(d) {
2706
+ m && t.set(d.data), P(d);
2707
+ }, b);
2708
2708
  }
2709
- return w;
2710
- }, t.signup = async function(o, u) {
2711
- u || (u = {});
2712
- var f = !0;
2713
- u.disableAutoAuthentication && (f = !1);
2714
- var w = new Promise(g);
2715
- function g(P, A) {
2716
- if (!o)
2717
- return A({
2709
+ return S;
2710
+ }, t.signup = async function(s, f) {
2711
+ f || (f = {});
2712
+ var m = !0;
2713
+ f.disableAutoAuthentication && (m = !1);
2714
+ var S = new Promise(v);
2715
+ function v(P, b) {
2716
+ if (!s)
2717
+ return b({
2718
2718
  message: "No details provided"
2719
2719
  });
2720
- if (!o.firstName || !o.firstName.length)
2721
- return A({
2720
+ if (!s.firstName || !s.firstName.length)
2721
+ return b({
2722
2722
  message: "First Name was not provided"
2723
2723
  });
2724
- if (!o.lastName || !o.lastName.length)
2725
- return A({
2724
+ if (!s.lastName || !s.lastName.length)
2725
+ return b({
2726
2726
  message: "Last Name was not provided"
2727
2727
  });
2728
- if (!o.email || !o.email.length)
2729
- return A({
2728
+ if (!s.email || !s.email.length)
2729
+ return b({
2730
2730
  message: "Email/Username was not provided"
2731
2731
  });
2732
- if (!o.password || !o.password.length)
2733
- return A({
2732
+ if (!s.password || !s.password.length)
2733
+ return b({
2734
2734
  message: "Password was not provided"
2735
2735
  });
2736
- if (!o.confirmPassword || !o.confirmPassword.length)
2737
- return A({
2736
+ if (!s.confirmPassword || !s.confirmPassword.length)
2737
+ return b({
2738
2738
  message: "Confirm Password was not provided"
2739
2739
  });
2740
- if (o.confirmPassword != o.password)
2741
- return A({
2740
+ if (s.confirmPassword != s.password)
2741
+ return b({
2742
2742
  message: "Your passwords do not match"
2743
2743
  });
2744
- var v = {
2744
+ var A = {
2745
2745
  bypassInterceptor: !0
2746
2746
  };
2747
- r.isCookieMode && r.isCookieMode() && (o.useCookies = !0, v.withCredentials = !0);
2748
- var m = `${e.apiURL}/user/signup`;
2749
- u.application && (m = `${e.domain || ""}/qik/application/signup`), u.url && (m = u.url), e.api.post(m, o, v).then(function(c) {
2750
- f && t.set(c.data), P(c);
2751
- }, A);
2747
+ r.isCookieMode && r.isCookieMode() && (s.useCookies = !0, A.withCredentials = !0);
2748
+ var h = `${e.apiURL}/user/signup`;
2749
+ f.application && (h = `${e.domain || ""}/qik/application/signup`), f.url && (h = f.url), e.api.post(h, s, A).then(function(d) {
2750
+ m && t.set(d.data), P(d);
2751
+ }, b);
2752
2752
  }
2753
- return w;
2754
- }, t.retrieveUserFromResetToken = async function(o, u) {
2755
- u || (u = {});
2756
- var f = {
2753
+ return S;
2754
+ }, t.retrieveUserFromResetToken = async function(s, f) {
2755
+ f || (f = {});
2756
+ var m = {
2757
2757
  bypassInterceptor: !0
2758
2758
  };
2759
- return new Promise(function(w, g) {
2760
- e.api.get(u.url || `${e.apiURL}/user/reset/${o}`, f).then(function(P) {
2761
- return w(P.data);
2762
- }, g);
2759
+ return new Promise(function(S, v) {
2760
+ e.api.get(f.url || `${e.apiURL}/user/reset/${s}`, m).then(function(P) {
2761
+ return S(P.data);
2762
+ }, v);
2763
2763
  });
2764
- }, t.updateUserWithToken = async function(o, u, f) {
2765
- f || (f = {});
2766
- var w = !0;
2767
- return f.disableAutoAuthentication && (w = !1), new Promise(function(g, P) {
2768
- var A = {
2764
+ }, t.updateUserWithToken = async function(s, f, m) {
2765
+ m || (m = {});
2766
+ var S = !0;
2767
+ return m.disableAutoAuthentication && (S = !1), new Promise(function(v, P) {
2768
+ var b = {
2769
2769
  bypassInterceptor: !0
2770
2770
  };
2771
- e.api.post(f.url || `${e.apiURL}/user/reset/${o}`, u, A).then(function(v) {
2772
- return w && (e.cache.reset(), t.set(v.data)), g(v.data);
2771
+ e.api.post(m.url || `${e.apiURL}/user/reset/${s}`, f, b).then(function(A) {
2772
+ return S && (e.cache.reset(), t.set(A.data)), v(A.data);
2773
2773
  }, P);
2774
2774
  });
2775
- }, t.sendResetPasswordRequest = function(o, u) {
2776
- return u || (u = {}), o ? !o.email || !o.email.length ? Promise.reject({
2775
+ }, t.sendResetPasswordRequest = function(s, f) {
2776
+ return f || (f = {}), s ? !s.email || !s.email.length ? Promise.reject({
2777
2777
  message: "Email is required but was not provided"
2778
- }) : new Promise(function(f, w) {
2779
- var g = {
2778
+ }) : new Promise(function(m, S) {
2779
+ var v = {
2780
2780
  bypassInterceptor: !0
2781
2781
  };
2782
- e.api.post(u.url || `${e.apiURL}/user/forgot`, o, g).then(f, w);
2782
+ e.api.post(f.url || `${e.apiURL}/user/forgot`, s, v).then(m, S);
2783
2783
  }) : Promise.reject({
2784
2784
  message: "No details were provided for password reset request"
2785
2785
  });
2786
- }, t.ensureValidToken = async function(o) {
2787
- var u = t.getCurrentUser();
2788
- if (!u)
2786
+ }, t.ensureValidToken = async function(s) {
2787
+ var f = t.getCurrentUser();
2788
+ if (!f)
2789
2789
  return Promise.reject("No user");
2790
2790
  if (r.isCookieMode && r.isCookieMode())
2791
- return o ? await t.refreshAccessToken() : "cookie_mode_token";
2792
- var { token: w } = u;
2793
- if (!w)
2791
+ return s ? await t.refreshAccessToken() : "cookie_mode_token";
2792
+ var { token: S } = f;
2793
+ if (!S)
2794
2794
  return Promise.reject("No token");
2795
- var g = /* @__PURE__ */ new Date();
2796
- g.setSeconds(g.getSeconds() + a);
2797
- var P = new Date(w.expires);
2798
- return o ? await t.refreshAccessToken(w.refreshToken) : g < P ? w : await t.refreshAccessToken(w.refreshToken);
2795
+ var v = /* @__PURE__ */ new Date();
2796
+ v.setSeconds(v.getSeconds() + a);
2797
+ var P = new Date(S.expires);
2798
+ return s ? await t.refreshAccessToken(S.refreshToken) : v < P ? S : await t.refreshAccessToken(S.refreshToken);
2799
2799
  };
2800
- const l = {};
2801
- return t.refreshAccessToken = async function(o) {
2802
- if (l.inflightRefreshRequest)
2803
- return l.inflightRefreshRequest;
2804
- const u = r.isCookieMode && r.isCookieMode();
2805
- return l.inflightRefreshRequest = new Promise(function(f, w) {
2806
- let g = {}, P = {
2800
+ const p = {};
2801
+ return t.refreshAccessToken = async function(s) {
2802
+ if (p.inflightRefreshRequest)
2803
+ return p.inflightRefreshRequest;
2804
+ const f = r.isCookieMode && r.isCookieMode();
2805
+ return p.inflightRefreshRequest = new Promise(function(m, S) {
2806
+ let v = {}, P = {
2807
2807
  bypassInterceptor: !0,
2808
2808
  withoutToken: !0
2809
2809
  };
2810
- if (u)
2810
+ if (f)
2811
2811
  P.withCredentials = !0;
2812
2812
  else {
2813
- if (!o)
2814
- return l.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2815
- g.refreshToken = o;
2813
+ if (!s)
2814
+ return p.inflightRefreshRequest = null, S(new Error("No refresh token provided for localStorage mode"));
2815
+ v.refreshToken = s;
2816
2816
  }
2817
- e.api.post("/user/refresh", g, P).then(function(v) {
2818
- if (!v || !v.data)
2819
- return l.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2820
- if (t.set(v.data), i(), u)
2821
- f("cookie_token_refreshed");
2817
+ e.api.post("/user/refresh", v, P).then(function(A) {
2818
+ if (!A || !A.data)
2819
+ return p.inflightRefreshRequest = null, S(new Error("Invalid refresh response"));
2820
+ if (t.set(A.data), o(), f)
2821
+ m("cookie_token_refreshed");
2822
2822
  else {
2823
- const C = v.data.token?.accessToken;
2824
- C ? f(C) : w(new Error("No access token in refresh response"));
2823
+ const C = A.data.token?.accessToken;
2824
+ C ? m(C) : S(new Error("No access token in refresh response"));
2825
2825
  }
2826
2826
  setTimeout(function() {
2827
- l.inflightRefreshRequest = null;
2827
+ p.inflightRefreshRequest = null;
2828
2828
  });
2829
- }).catch(function(A) {
2829
+ }).catch(function(b) {
2830
2830
  setTimeout(function() {
2831
- l.inflightRefreshRequest = null;
2832
- }), w(A);
2831
+ p.inflightRefreshRequest = null;
2832
+ }), S(b);
2833
2833
  });
2834
- }), l.inflightRefreshRequest;
2834
+ }), p.inflightRefreshRequest;
2835
2835
  }, t.sync = function() {
2836
- return e.api.get("/user").then(function(o) {
2837
- if (o.data) {
2838
- const u = r.getUser();
2839
- if (u) {
2840
- const f = { ...u };
2841
- f.session ? Object.assign(f.session, o.data) : f.session = o.data, t.set(f);
2836
+ return e.api.get("/user").then(function(s) {
2837
+ if (s.data) {
2838
+ const f = r.getUser();
2839
+ if (f) {
2840
+ const m = { ...f };
2841
+ m.session ? Object.assign(m.session, s.data) : m.session = s.data, t.set(m);
2842
2842
  } else
2843
- t.set(o.data);
2843
+ t.set(s.data);
2844
2844
  } else
2845
2845
  t.set(null);
2846
- i();
2847
- }).catch(function(o) {
2848
- t.set(null), i();
2846
+ o();
2847
+ }).catch(function(s) {
2848
+ t.set(null), o();
2849
2849
  });
2850
2850
  }, t.getCurrentUser = function() {
2851
2851
  return r.getUser();
2852
2852
  }, t.getCurrentToken = function() {
2853
- var o = r.getAccessToken();
2854
- if (o)
2855
- return o;
2856
- var u = t.getCurrentUser();
2857
- if (!u)
2853
+ var s = r.getAccessToken();
2854
+ if (s)
2855
+ return s;
2856
+ var f = t.getCurrentUser();
2857
+ if (!f)
2858
2858
  return e.applicationToken ? e.applicationToken : void 0;
2859
- var { token: f } = u;
2860
- if (f)
2861
- return f.accessToken;
2859
+ var { token: m } = f;
2860
+ if (m)
2861
+ return m.accessToken;
2862
2862
  }, e.api.interceptors.request.use(
2863
- async function(o) {
2864
- if (o.bypassInterceptor)
2865
- return o;
2866
- var u = o;
2863
+ async function(s) {
2864
+ if (s.bypassInterceptor)
2865
+ return s;
2866
+ var f = s;
2867
2867
  if (r.isCookieMode && r.isCookieMode())
2868
- return u.withCredentials || (u.withCredentials = !0), u;
2869
- var w = t.getCurrentUser(), g, P, A;
2870
- if (w) {
2871
- var { token: v } = w;
2872
- v && (g = v.accessToken, P = v.refreshToken, A = v.expires);
2868
+ return f.withCredentials || (f.withCredentials = !0), f;
2869
+ var S = t.getCurrentUser(), v, P, b;
2870
+ if (S) {
2871
+ var { token: A } = S;
2872
+ A && (v = A.accessToken, P = A.refreshToken, b = A.expires);
2873
2873
  }
2874
- if (g)
2875
- u.headers.Authorization = `Bearer ${g}`;
2874
+ if (v)
2875
+ f.headers.Authorization = `Bearer ${v}`;
2876
2876
  else
2877
- return u;
2877
+ return f;
2878
2878
  if (!P)
2879
- return u;
2879
+ return f;
2880
2880
  var C = /* @__PURE__ */ new Date();
2881
2881
  C.setSeconds(C.getSeconds() + a);
2882
- var m = new Date(A);
2883
- return C < m ? u : new Promise(async function(c, x) {
2884
- await t.refreshAccessToken(P).then(function(b) {
2885
- return u.headers.Authorization = `Bearer ${b}`, c(u);
2886
- }).catch(function(b) {
2887
- return x(b);
2882
+ var h = new Date(b);
2883
+ return C < h ? f : new Promise(async function(d, E) {
2884
+ await t.refreshAccessToken(P).then(function(i) {
2885
+ return f.headers.Authorization = `Bearer ${i}`, d(f);
2886
+ }).catch(function(i) {
2887
+ return E(i);
2888
2888
  });
2889
2889
  });
2890
2890
  },
2891
- function(o) {
2892
- return Promise.reject(o);
2891
+ function(s) {
2892
+ return Promise.reject(s);
2893
2893
  }
2894
- ), e.api.interceptors.response.use(function(o) {
2895
- return o;
2896
- }, function(o) {
2897
- var u = o && o.response && o.response.status || o.status;
2898
- switch (u) {
2894
+ ), e.api.interceptors.response.use(function(s) {
2895
+ return s;
2896
+ }, function(s) {
2897
+ var f = s && s.response && s.response.status || s.status;
2898
+ switch (f) {
2899
2899
  case 401:
2900
2900
  t.logout();
2901
2901
  break;
2902
2902
  }
2903
- return Promise.reject(o);
2903
+ return Promise.reject(s);
2904
2904
  }), t;
2905
- }, ee = {};
2905
+ }, X = {};
2906
2906
  function pr(e) {
2907
2907
  if (e === 0)
2908
2908
  return !1;
@@ -2912,15 +2912,15 @@ function pr(e) {
2912
2912
  function Kr(e) {
2913
2913
  return !pr(e);
2914
2914
  }
2915
- ee.cleanKey = function(e) {
2915
+ X.cleanKey = function(e) {
2916
2916
  return e = String(e).split("|")[0], e[0] == "." && (e = e.slice(1)), e;
2917
2917
  };
2918
- ee.isValidFilter = function(e) {
2918
+ X.isValidFilter = function(e) {
2919
2919
  if (!e)
2920
2920
  return !1;
2921
2921
  if (e.operator)
2922
- return !e.filters || !e.filters.length ? !1 : e.filters.some(ee.isValidFilter);
2923
- var r = ee.cleanKey(e.key);
2922
+ return !e.filters || !e.filters.length ? !1 : e.filters.some(X.isValidFilter);
2923
+ var r = X.cleanKey(e.key);
2924
2924
  if (!r)
2925
2925
  return !1;
2926
2926
  switch (e.comparator) {
@@ -2941,76 +2941,76 @@ ee.isValidFilter = function(e) {
2941
2941
  var a = (e.values || []).filter(Kr);
2942
2942
  return !pr(e.value) || !pr(e.value2) || a.length;
2943
2943
  };
2944
- ee.activeFilters = function(e) {
2944
+ X.activeFilters = function(e) {
2945
2945
  var r = [];
2946
2946
  return a(e, r), r;
2947
2947
  function a(t, n) {
2948
2948
  if (t) {
2949
- var i = ee.isValidFilter(t);
2950
- i && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(l) {
2951
- a(l, n);
2949
+ var o = X.isValidFilter(t);
2950
+ o && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(p) {
2951
+ a(p, n);
2952
2952
  });
2953
2953
  }
2954
2954
  }
2955
2955
  };
2956
- ee.activeFilterKeys = function(e, r) {
2956
+ X.activeFilterKeys = function(e, r) {
2957
2957
  r = r || {};
2958
- var a = ee.activeFilters(e), t = a.filter(function(i) {
2959
- return !i.operator;
2960
- }).reduce(function(i, l) {
2961
- var o = ee.cleanKey(l.key);
2962
- return r.trimArrayDelimeters !== !1 && (o = o.split("[]").join("")), i[o] = !0, i;
2958
+ var a = X.activeFilters(e), t = a.filter(function(o) {
2959
+ return !o.operator;
2960
+ }).reduce(function(o, p) {
2961
+ var s = X.cleanKey(p.key);
2962
+ return r.trimArrayDelimeters !== !1 && (s = s.split("[]").join("")), o[s] = !0, o;
2963
2963
  }, {}), n = Object.keys(t);
2964
2964
  return n;
2965
2965
  };
2966
- ee.activeFilterComparators = function(e) {
2967
- var r = ee.activeFilters(e).filter(function(a) {
2966
+ X.activeFilterComparators = function(e) {
2967
+ var r = X.activeFilters(e).filter(function(a) {
2968
2968
  return !a.operator;
2969
2969
  }).reduce(function(a, t) {
2970
2970
  return a[t.comparator] = !0, a;
2971
2971
  }, {});
2972
2972
  return Object.keys(r);
2973
2973
  };
2974
- ee.activeFilterOperators = function(e) {
2975
- var r = ee.activeFilters(e).filter(function(a) {
2974
+ X.activeFilterOperators = function(e) {
2975
+ var r = X.activeFilters(e).filter(function(a) {
2976
2976
  return a.operator;
2977
2977
  }).reduce(function(a, t) {
2978
2978
  return a[t.operator] = !0, a;
2979
2979
  }, {});
2980
2980
  return Object.keys(r);
2981
2981
  };
2982
- ee.activeFilterValues = function(e, r) {
2983
- var a = ee.activeFilters(e);
2984
- function t(i) {
2985
- if (i)
2986
- return i._id || i.id || i.title || i.name || i;
2987
- }
2988
- var n = a.filter(function(i) {
2989
- return !i.operator;
2990
- }).reduce(function(i, l) {
2991
- return i = [...i, ...(l.values || []).map(t), t(l.value), t(l.value2)], i;
2982
+ X.activeFilterValues = function(e, r) {
2983
+ var a = X.activeFilters(e);
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, p) {
2991
+ return o = [...o, ...(p.values || []).map(t), t(p.value), t(p.value2)], o;
2992
2992
  }, []).filter(Kr);
2993
2993
  return n;
2994
2994
  };
2995
- ee.filterChangeString = function(e) {
2996
- var r = ee.activeFilters(e);
2995
+ X.filterChangeString = function(e) {
2996
+ var r = X.activeFilters(e);
2997
2997
  return JSON.stringify(r);
2998
2998
  };
2999
2999
  function xt(e) {
3000
3000
  var r = {};
3001
- return r.downloadUrl = function(a, t, n, i) {
3002
- return i = i || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, i);
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), i = Math.floor(t % 3600 / 60), l = t % 60;
3005
- return n > 0 ? `${n}:${i.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}` : `${i}:${l.toString().padStart(2, "0")}`;
3006
- }, r.mediaUrl = function(a, t, n, i) {
3007
- i = i || {}, n = n || {}, t = e.utils.id(t);
3008
- let l = `/${a}/${t}`;
3009
- return i.extension?.length && (i.extension.includes(".") ? l = `${l}/${i.extension}` : l = `${l}/${a}.${i.extension}`), e.api.generateEndpointURL(l, n, i);
3004
+ const t = Math.round(a), n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60), p = t % 60;
3005
+ return n > 0 ? `${n}:${o.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}` : `${o}:${p.toString().padStart(2, "0")}`;
3006
+ }, r.mediaUrl = function(a, t, n, o) {
3007
+ o = o || {}, n = n || {}, t = e.utils.id(t);
3008
+ let p = `/${a}/${t}`;
3009
+ return o.extension?.length && (o.extension.includes(".") ? p = `${p}/${o.extension}` : p = `${p}/${a}.${o.extension}`), e.api.generateEndpointURL(p, n, o);
3010
3010
  }, r.filesize = function(a, t) {
3011
3011
  if (a == 0) return "0 Bytes";
3012
- var n = 1024, i = t || 2, l = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], o = Math.floor(Math.log(a) / Math.log(n));
3013
- return parseFloat((a / Math.pow(n, o)).toFixed(i)) + " " + l[o];
3012
+ var n = 1024, o = t || 2, p = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], s = Math.floor(Math.log(a) / Math.log(n));
3013
+ return parseFloat((a / Math.pow(n, s)).toFixed(o)) + " " + p[s];
3014
3014
  }, r.getBinaryTypeFromMime = function(a) {
3015
3015
  if (!a)
3016
3016
  return "file";
@@ -3109,133 +3109,133 @@ var $e = {}, Pt = {
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 || {}, i = n.features || {};
3113
- if (i.all || i[t])
3112
+ const n = a?.organisation || {}, o = n.features || {};
3113
+ if (o.all || o[t])
3114
3114
  return !0;
3115
- const l = n.ff;
3116
- return r.featureIsIncludedInByteflag(l, "all") ? !0 : r.featureIsIncludedInByteflag(l, t);
3115
+ const p = n.ff;
3116
+ return r.featureIsIncludedInByteflag(p, "all") ? !0 : r.featureIsIncludedInByteflag(p, 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(i) {
3123
- var l = e.utils.id(i);
3124
- t.push(l), (i.children || []).forEach(function(o) {
3125
- n(o);
3122
+ function n(o) {
3123
+ var p = e.utils.id(o);
3124
+ t.push(p), (o.children || []).forEach(function(s) {
3125
+ n(s);
3126
3126
  });
3127
3127
  }
3128
3128
  return t;
3129
3129
  }, r.hashPermissions = function(a) {
3130
3130
  var t = {};
3131
3131
  for (var n in a?.permissions || {}) {
3132
- var i = a?.permissions[n], l = r.getAllDescendants(i);
3133
- (i.permissions || []).forEach(function(o) {
3134
- t[o] || (t[o] = []), t[o] = [
3135
- ...new Set(t[o].concat(l))
3132
+ var o = a?.permissions[n], p = r.getAllDescendants(o);
3133
+ (o.permissions || []).forEach(function(s) {
3134
+ t[s] || (t[s] = []), t[s] = [
3135
+ ...new Set(t[s].concat(p))
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 i(o) {
3143
- if (o) {
3144
- var u = e.utils.id(o);
3145
- u && (t[u] = 1, o.children && o.children.length && o.children.forEach(function(f) {
3146
- i(f);
3142
+ function o(s) {
3143
+ if (s) {
3144
+ var f = e.utils.id(s);
3145
+ f && (t[f] = 1, s.children && s.children.length && s.children.forEach(function(m) {
3146
+ o(m);
3147
3147
  }));
3148
3148
  }
3149
3149
  }
3150
- for (var l in n)
3151
- i(n[l]);
3150
+ for (var p in n)
3151
+ o(n[p]);
3152
3152
  return Object.keys(t);
3153
- }, r.actionableScopes = function(a, t, n, i, l) {
3154
- l = l || {};
3155
- var o = [];
3153
+ }, r.actionableScopes = function(a, t, n, o, p) {
3154
+ p = p || {};
3155
+ var s = [];
3156
3156
  if (a?.userType == "administrator")
3157
- o = r.allUserScopes(a, l);
3157
+ s = r.allUserScopes(a, p);
3158
3158
  else {
3159
- var u = r.hashPermissions(a), f = n || i;
3160
- if (!f)
3161
- return o;
3162
- let w = n ? u[`${n}.${t}`] || [] : [], g = i ? u[`${i}.${t}`] || [] : [];
3163
- o = [...w, ...g];
3159
+ var f = r.hashPermissions(a), m = n || o;
3160
+ if (!m)
3161
+ return s;
3162
+ let S = n ? f[`${n}.${t}`] || [] : [], v = o ? f[`${o}.${t}`] || [] : [];
3163
+ s = [...S, ...v];
3164
3164
  }
3165
- return o || [];
3165
+ return s || [];
3166
3166
  }, r.isOwner = function(a, t) {
3167
- var n = e.utils.id(a), i = e.utils.id(a?.persona), l = t.meta;
3168
- if (!l)
3167
+ var n = e.utils.id(a), o = e.utils.id(a?.persona), p = t.meta;
3168
+ if (!p)
3169
3169
  return !1;
3170
- var o = l.userOwners || [], u = e.utils.ids([...o, l.userAuthor]), f = e.utils.hash(u);
3171
- if (f[n])
3170
+ var s = p.userOwners || [], f = e.utils.ids([...s, p.userAuthor]), m = e.utils.hash(f);
3171
+ if (m[n])
3172
3172
  return !0;
3173
- var w = l.personaOwners || [], g = e.utils.ids([
3174
- ...w,
3175
- l.personaAuthor
3176
- ]), P = e.utils.hash(g);
3177
- return P[i] ? !0 : r.isAssignee(a, t);
3173
+ var S = p.personaOwners || [], v = e.utils.ids([
3174
+ ...S,
3175
+ p.personaAuthor
3176
+ ]), P = e.utils.hash(v);
3177
+ return P[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 i = e.utils.ids(t.assignees);
3183
- if (!i.length)
3182
+ const o = e.utils.ids(t.assignees);
3183
+ if (!o.length)
3184
3184
  return !1;
3185
- const l = new Set(i);
3186
- return !!n.filter((f) => l.has(f)).length;
3185
+ const p = new Set(o);
3186
+ return !!n.filter((m) => p.has(m)).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, i) {
3194
- var l = i.split(".")[0];
3195
- return n[l] = !0, n;
3193
+ return t ? r.allPermissions(a).reduce(function(n, o) {
3194
+ var p = o.split(".")[0];
3195
+ return n[p] = !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, i, l) {
3202
- if (l = l || {}, l.cache = l.cache || {}, r.isAdministrator(a))
3201
+ }, r.checkActionAccess = function(a, t, n, o, p) {
3202
+ if (p = p || {}, p.cache = p.cache || {}, r.isAdministrator(a))
3203
3203
  return !0;
3204
- var o = t.meta?.type, u = t.meta?.definition || o;
3205
- if (!u)
3204
+ var s = t.meta?.type, f = t.meta?.definition || s;
3205
+ if (!f)
3206
3206
  return !1;
3207
- var f = e.utils.ids(t.meta.scopes || []), w, g = `access-${a?.cacheKey}-${n}-${u}-${o}`;
3208
- if (l.cache[g])
3209
- w = l.cache[g];
3207
+ var m = e.utils.ids(t.meta.scopes || []), S, v = `access-${a?.cacheKey}-${n}-${f}-${s}`;
3208
+ if (p.cache[v])
3209
+ S = p.cache[v];
3210
3210
  else {
3211
3211
  var P = e.utils.ids(
3212
- r.actionableScopes(a, n, u, o, l)
3212
+ r.actionableScopes(a, n, f, s, p)
3213
3213
  );
3214
- w = e.utils.hash(P), l.cache[g] = w;
3214
+ S = e.utils.hash(P), p.cache[v] = S;
3215
3215
  }
3216
- if (w) {
3217
- var A = f.some(function(b) {
3218
- return w[b];
3216
+ if (S) {
3217
+ var b = m.some(function(i) {
3218
+ return S[i];
3219
3219
  });
3220
- if (A)
3220
+ if (b)
3221
3221
  return !0;
3222
3222
  }
3223
- var v = r.isOwner(a, t);
3224
- if (v) {
3225
- var C, m = `access-${a?.cacheKey}-${i}-${u}-${o}`;
3226
- if (l.cache[m])
3227
- C = l.cache[m];
3223
+ var A = r.isOwner(a, t);
3224
+ if (A) {
3225
+ var C, h = `access-${a?.cacheKey}-${o}-${f}-${s}`;
3226
+ if (p.cache[h])
3227
+ C = p.cache[h];
3228
3228
  else {
3229
- var c = e.utils.ids(
3230
- r.actionableScopes(a, i, u, o, l)
3229
+ var d = e.utils.ids(
3230
+ r.actionableScopes(a, o, f, s, p)
3231
3231
  );
3232
- C = e.utils.hash(c), l.cache[m] = C;
3232
+ C = e.utils.hash(d), p.cache[h] = C;
3233
3233
  }
3234
3234
  if (C) {
3235
- var x = f.some(function(b) {
3236
- return C[b];
3235
+ var E = m.some(function(i) {
3236
+ return C[i];
3237
3237
  });
3238
- if (x)
3238
+ if (E)
3239
3239
  return !0;
3240
3240
  }
3241
3241
  }
@@ -3245,52 +3245,52 @@ var $e = {}, Pt = {
3245
3245
  return !0;
3246
3246
  var n = r.hashPermissions(a);
3247
3247
  return n[t];
3248
- }, r.canCreate = function(a, t, n, i) {
3249
- if (i = i || {}, i.cache = i.cache || {}, r.isAdministrator(a))
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 l = r.actionableScopes(
3251
+ var p = r.actionableScopes(
3252
3252
  a,
3253
3253
  "create",
3254
3254
  t,
3255
3255
  n
3256
3256
  );
3257
- return l.length;
3257
+ return p.length;
3258
3258
  }, r.canListItem = function(a, t, n) {
3259
3259
  n = n || {}, n.cache = n.cache || {};
3260
- var i = r.checkActionAccess(
3260
+ var o = r.checkActionAccess(
3261
3261
  a,
3262
3262
  t,
3263
3263
  "listany",
3264
3264
  "listown",
3265
3265
  n
3266
3266
  );
3267
- if (i)
3267
+ if (o)
3268
3268
  return !0;
3269
- var l = r.canViewItem(a, t, n);
3270
- return !!l;
3269
+ var p = r.canViewItem(a, t, n);
3270
+ return !!p;
3271
3271
  }, r.canViewItem = function(a, t, n) {
3272
3272
  n = n || {}, n.cache = n.cache || {};
3273
- var i = r.checkActionAccess(
3273
+ var o = r.checkActionAccess(
3274
3274
  a,
3275
3275
  t,
3276
3276
  "viewany",
3277
3277
  "viewOwn",
3278
3278
  n
3279
3279
  );
3280
- if (i)
3280
+ if (o)
3281
3281
  return !0;
3282
- var l = r.canEditItem(a, t, n);
3283
- return !!l;
3282
+ var p = r.canEditItem(a, t, n);
3283
+ return !!p;
3284
3284
  }, r.canEditItem = function(a, t, n) {
3285
3285
  n = n || {}, n.cache = n.cache || {};
3286
- var i = r.checkActionAccess(
3286
+ var o = r.checkActionAccess(
3287
3287
  a,
3288
3288
  t,
3289
3289
  "editany",
3290
3290
  "editown",
3291
3291
  n
3292
3292
  );
3293
- return i;
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,346 +3326,330 @@ function Ot(e) {
3326
3326
  };
3327
3327
  const a = {};
3328
3328
  let t;
3329
- r.variables = async function(p, y) {
3330
- y = y || {}, p = p || [];
3331
- var S = y.refresh || y.reload || !a.data;
3332
- if (S) {
3329
+ r.variables = async function(i, c) {
3330
+ c = c || {}, i = i || [];
3331
+ var u = c.refresh || c.reload || !a.data;
3332
+ if (u) {
3333
3333
  if (!t) {
3334
- let R = function() {
3334
+ let I = function() {
3335
3335
  t = null;
3336
3336
  };
3337
- t = e.api.post("/variables", { keys: p }), t.then(R, R);
3337
+ t = e.api.post("/variables", { keys: i }), t.then(I, I);
3338
3338
  }
3339
- const { data: O } = await t;
3340
- a.data = O, e.dispatch("variables", O);
3339
+ const { data: x } = await t;
3340
+ a.data = x, e.dispatch("variables", x);
3341
3341
  }
3342
3342
  return a.data;
3343
3343
  };
3344
- const n = e.cache.get("user:glossary"), i = e.cache.get("user:glossary:index"), l = e.cache.get("user:glossary:definitions");
3345
- let o, u, f = {}, w = {}, g = [], P = !1;
3346
- const A = 3;
3347
- async function v(p) {
3348
- if (g = [...p], P) return;
3349
- P = !0;
3350
- async function y() {
3351
- for (; g.length > 0; ) {
3352
- const O = g.shift();
3353
- if (!w[O]?.populated && !f[O])
3354
- try {
3355
- await C(O);
3356
- } catch (R) {
3357
- console.warn(`Failed to hydrate ${O}:`, R);
3358
- }
3359
- }
3344
+ const n = e.cache.get("user:glossary"), o = e.cache.get("user:glossary:index"), p = e.cache.get("user:glossary:definitions");
3345
+ let s, f, m = {};
3346
+ r.loadGlossaryIndex = async function(i) {
3347
+ i = i || {};
3348
+ let c = o.get("index");
3349
+ if (i.reload || i.refresh || !c) {
3350
+ f || (f = e.api.get("/glossary/index"), f.then(
3351
+ () => {
3352
+ f = null;
3353
+ },
3354
+ () => {
3355
+ f = null;
3356
+ }
3357
+ ));
3358
+ const { data: x } = await f;
3359
+ o.set("index", x), c = x, e.dispatch("glossary:index", x);
3360
3360
  }
3361
- const S = [];
3362
- for (let O = 0; O < A; O++)
3363
- S.push(y());
3364
- await Promise.all(S), P = !1;
3365
- }
3366
- async function C(p) {
3367
- f[p] = e.api.get(`/glossary/${p}`);
3361
+ return i.hash ? e.utils.hash(c, "key") : i.hex ? e.utils.hash(c, "hex") : c;
3362
+ }, r.getDefinition = async function(i, c) {
3363
+ c = c || {};
3364
+ let u = p.get(i);
3365
+ if (u && !c.reload && !c.refresh)
3366
+ return u;
3367
+ if (m[i])
3368
+ return await m[i], p.get(i);
3369
+ m[i] = e.api.get(`/glossary/index/${i}`);
3368
3370
  try {
3369
- const { data: y } = await f[p], S = w[p];
3370
- S && Object.assign(S, y, { populated: !0 });
3371
- const O = S || { ...y, populated: !0 };
3372
- return l.set(p, O), e.dispatch("glossary:definition", { key: p, data: O }), O;
3371
+ const { data: x } = await m[i];
3372
+ return p.set(i, x), e.dispatch("glossary:definition", { key: i, data: x }), x;
3373
3373
  } finally {
3374
- f[p] = null;
3374
+ m[i] = null;
3375
3375
  }
3376
- }
3377
- r.getDefinition = async function(p, y) {
3378
- y = y || {};
3379
- let S = l.get(p);
3380
- if (S && !y.reload && !y.refresh)
3381
- return S;
3382
- if (f[p])
3383
- return await f[p], l.get(p);
3384
- const O = g.indexOf(p);
3385
- return O > 0 && (g.splice(O, 1), g.unshift(p)), C(p);
3386
- }, r.hydrateInBackground = function() {
3387
- const p = i.get("index");
3388
- if (!p) {
3389
- console.warn(
3390
- "Call glossary({ index: true }) before hydrateInBackground()"
3391
- );
3392
- return;
3376
+ };
3377
+ let S = {}, v = {};
3378
+ r.loadDefinitionsForType = async function(i, c) {
3379
+ if (c = c || {}, v[i] && !c.reload && !c.refresh) {
3380
+ const u = v[i];
3381
+ return c.hash ? e.utils.hash(u, "key") : u;
3382
+ }
3383
+ if (S[i]) {
3384
+ await S[i];
3385
+ const u = v[i];
3386
+ return c.hash ? e.utils.hash(u, "key") : u;
3387
+ }
3388
+ S[i] = e.api.get(`/glossary/index/${i}/all`);
3389
+ try {
3390
+ const { data: u } = await S[i];
3391
+ return v[i] = u, u.forEach((x) => {
3392
+ p.set(x.key, x);
3393
+ }), e.dispatch("glossary:type", { type: i, definitions: u }), c.hash ? e.utils.hash(u, "key") : u;
3394
+ } finally {
3395
+ S[i] = null;
3393
3396
  }
3394
- const y = p.map((S) => S.key);
3395
- v(y);
3396
3397
  };
3397
- function m(p, y) {
3398
- return function S(O) {
3399
- if (typeof O == "string" && O[0] === "~")
3400
- return p[parseInt(O.slice(1))];
3401
- if (Array.isArray(O)) return O.map(S);
3402
- if (O && typeof O == "object") {
3403
- const R = {};
3404
- for (const [L, N] of Object.entries(O))
3405
- R[y[L] || L] = S(N);
3406
- return R;
3398
+ function P(i, c) {
3399
+ return function u(x) {
3400
+ if (typeof x == "string" && x[0] === "~")
3401
+ return i[parseInt(x.slice(1))];
3402
+ if (Array.isArray(x)) return x.map(u);
3403
+ if (x && typeof x == "object") {
3404
+ const I = {};
3405
+ for (const [O, $] of Object.entries(x))
3406
+ I[c[O] || O] = u($);
3407
+ return I;
3407
3408
  }
3408
- return O;
3409
+ return x;
3409
3410
  };
3410
3411
  }
3411
- function c({ _s: p, _k: y, types: S }) {
3412
- const O = m(p, y), R = new Array(S.length), L = new Array(S.length).fill(!1);
3413
- return new Proxy(S, {
3414
- get(N, $) {
3415
- if ($ === "length") return N.length;
3416
- if ($ === Symbol.iterator)
3412
+ function b({ _s: i, _k: c, types: u }) {
3413
+ const x = P(i, c), I = new Array(u.length), O = new Array(u.length).fill(!1);
3414
+ return new Proxy(u, {
3415
+ get($, L) {
3416
+ if (L === "length") return $.length;
3417
+ if (L === Symbol.iterator)
3417
3418
  return function* () {
3418
- for (let G = 0; G < N.length; G++)
3419
- L[G] || (R[G] = O(N[G]), L[G] = !0), yield R[G];
3419
+ for (let _ = 0; _ < $.length; _++)
3420
+ O[_] || (I[_] = x($[_]), O[_] = !0), yield I[_];
3420
3421
  };
3421
- if ($ === "map")
3422
- return function(G) {
3423
- const k = [];
3424
- for (let j = 0; j < N.length; j++)
3425
- L[j] || (R[j] = O(N[j]), L[j] = !0), k.push(G(R[j], j, this));
3426
- return k;
3422
+ if (L === "map")
3423
+ return function(_) {
3424
+ const R = [];
3425
+ for (let N = 0; N < $.length; N++)
3426
+ O[N] || (I[N] = x($[N]), O[N] = !0), R.push(_(I[N], N, this));
3427
+ return R;
3427
3428
  };
3428
- if ($ === "filter")
3429
- return function(G) {
3430
- const k = [];
3431
- for (let j = 0; j < N.length; j++)
3432
- L[j] || (R[j] = O(N[j]), L[j] = !0), G(R[j], j, this) && k.push(R[j]);
3433
- return k;
3429
+ if (L === "filter")
3430
+ return function(_) {
3431
+ const R = [];
3432
+ for (let N = 0; N < $.length; N++)
3433
+ O[N] || (I[N] = x($[N]), O[N] = !0), _(I[N], N, this) && R.push(I[N]);
3434
+ return R;
3434
3435
  };
3435
- if ($ === "find")
3436
- return function(G) {
3437
- for (let k = 0; k < N.length; k++)
3438
- if (L[k] || (R[k] = O(N[k]), L[k] = !0), G(R[k], k, this))
3439
- return R[k];
3436
+ if (L === "find")
3437
+ return function(_) {
3438
+ for (let R = 0; R < $.length; R++)
3439
+ if (O[R] || (I[R] = x($[R]), O[R] = !0), _(I[R], R, this))
3440
+ return I[R];
3440
3441
  };
3441
- if ($ === "forEach")
3442
- return function(G) {
3443
- for (let k = 0; k < N.length; k++)
3444
- L[k] || (R[k] = O(N[k]), L[k] = !0), G(R[k], k, this);
3442
+ if (L === "forEach")
3443
+ return function(_) {
3444
+ for (let R = 0; R < $.length; R++)
3445
+ O[R] || (I[R] = x($[R]), O[R] = !0), _(I[R], R, this);
3445
3446
  };
3446
- const U = typeof $ == "string" ? parseInt($, 10) : $;
3447
- return Number.isInteger(U) && U >= 0 && U < N.length ? (L[U] || (R[U] = O(N[U]), L[U] = !0), R[U]) : Reflect.get(N, $);
3447
+ const F = typeof L == "string" ? parseInt(L, 10) : L;
3448
+ return Number.isInteger(F) && F >= 0 && F < $.length ? (O[F] || (I[F] = x($[F]), O[F] = !0), I[F]) : Reflect.get($, L);
3448
3449
  }
3449
3450
  });
3450
3451
  }
3451
- function x(p) {
3452
- return c(p);
3453
- }
3454
- r.glossary = async function(p) {
3455
- if (p = p || {}, p.index) {
3456
- let N = i.get("index");
3457
- if (p.reload || p.refresh || !N) {
3458
- u || (u = e.api.get("/glossary/index"), u.then(
3459
- () => {
3460
- u = null;
3461
- },
3462
- () => {
3463
- u = null;
3464
- }
3465
- ));
3466
- const { data: U } = await u;
3467
- U.forEach((G) => {
3468
- G.populated = !1, w[G.key] = G;
3469
- }), i.set("index", U), N = U, e.dispatch("glossary:index", U);
3470
- }
3471
- return p.hash ? e.utils.hash(N, "key") : p.hex ? e.utils.hash(N, "hex") : N;
3472
- }
3473
- let y = n.get("glossary"), O = !!!p.uncompressed;
3474
- var R = p.refresh || p.reload || !y;
3475
- if (R) {
3476
- if (!o) {
3477
- let G = function() {
3478
- o = null, r.loadingGlossary = !1;
3452
+ function A(i) {
3453
+ return b(i);
3454
+ }
3455
+ r.glossary = async function(i) {
3456
+ i = i || {};
3457
+ let c = n.get("glossary"), x = !!!i.uncompressed;
3458
+ var I = i.refresh || i.reload || !c;
3459
+ if (I) {
3460
+ if (!s) {
3461
+ let _ = function() {
3462
+ s = null, r.loadingGlossary = !1;
3479
3463
  };
3480
3464
  r.loadingGlossary = !0;
3481
- const U = O ? "/glossary/compressed" : "/glossary";
3482
- o = e.api.get(U, { cache: !1 }), o.then(G, G);
3465
+ const F = x ? "/glossary/compressed" : "/glossary";
3466
+ s = e.api.get(F, { cache: !1 }), s.then(_, _);
3483
3467
  }
3484
- const { data: N } = await o, $ = N._s && N._k && N.types ? x(N) : N;
3485
- n.set("glossary", $), y = $, e.dispatch("glossary", $);
3468
+ const { data: $ } = await s, L = $._s && $._k && $.types ? A($) : $;
3469
+ n.set("glossary", L), c = L, e.dispatch("glossary", L);
3486
3470
  }
3487
- if (p.hash) {
3488
- var L = e.utils.hash(y, "key");
3489
- return L;
3471
+ if (i.hash) {
3472
+ var O = e.utils.hash(c, "key");
3473
+ return O;
3490
3474
  }
3491
- if (p.hex) {
3492
- var L = e.utils.hash(y, "hex");
3493
- return L;
3475
+ if (i.hex) {
3476
+ var O = e.utils.hash(c, "hex");
3477
+ return O;
3494
3478
  }
3495
- return y;
3479
+ return c;
3496
3480
  };
3497
- const b = {};
3498
- let T;
3499
- r.scopeGlossary = async function(p) {
3500
- p = p || {};
3501
- var y = p.refresh || p.reload || !b.data;
3502
- if (y) {
3503
- if (!T) {
3504
- let R = function() {
3505
- T = null;
3481
+ const C = {};
3482
+ let h;
3483
+ r.scopeGlossary = async function(i) {
3484
+ i = i || {};
3485
+ var c = i.refresh || i.reload || !C.data;
3486
+ if (c) {
3487
+ if (!h) {
3488
+ let I = function() {
3489
+ h = null;
3506
3490
  };
3507
- T = e.api.get("/scope/glossary", {
3491
+ h = e.api.get("/scope/glossary", {
3508
3492
  cache: !1
3509
- }), T.then(R, R);
3493
+ }), h.then(I, I);
3510
3494
  }
3511
- const { data: O } = await T;
3512
- b.data = O;
3495
+ const { data: x } = await h;
3496
+ C.data = x;
3513
3497
  }
3514
- if (p.hash) {
3515
- var S = e.utils.hash(b.data, "_id");
3516
- return S;
3498
+ if (i.hash) {
3499
+ var u = e.utils.hash(C.data, "_id");
3500
+ return u;
3517
3501
  }
3518
- return b.data;
3502
+ return C.data;
3519
3503
  };
3520
- const I = {};
3521
- r.comparators = async function(p) {
3522
- p = p || {};
3523
- var y = p.reload || p.refresh || !I.data;
3524
- if (y) {
3525
- const { data: S } = await e.api.get("/system/comparators");
3526
- S.available = {}, Object.entries(S.types).forEach(([O, R]) => {
3527
- S.available[O] = R.map(function(L) {
3528
- return S.hash[L];
3504
+ const d = {};
3505
+ r.comparators = async function(i) {
3506
+ i = i || {};
3507
+ var c = i.reload || i.refresh || !d.data;
3508
+ if (c) {
3509
+ const { data: u } = await e.api.get("/system/comparators");
3510
+ u.available = {}, Object.entries(u.types).forEach(([x, I]) => {
3511
+ u.available[x] = I.map(function(O) {
3512
+ return u.hash[O];
3529
3513
  });
3530
- }), I.data = S;
3514
+ }), d.data = u;
3531
3515
  }
3532
- return I.data;
3516
+ return d.data;
3533
3517
  };
3534
- function B(p) {
3535
- var { minimum: y, maximum: S } = p;
3536
- return y = e.utils.parseInt(y), y = Math.max(y, 0), S = e.utils.parseInt(S), S = Math.max(S, 0), S == 0 || (S = Math.max(S, y)), { minimum: y, maximum: S };
3537
- }
3538
- return r.meetsValidationRequirements = function(p, y, S) {
3539
- if (S.minLength) {
3540
- var O = String(p).length;
3541
- if (O < S.minLength)
3542
- return `Must be at least ${S.minLength} characters`;
3518
+ function E(i) {
3519
+ var { minimum: c, maximum: u } = i;
3520
+ return c = e.utils.parseInt(c), c = Math.max(c, 0), u = e.utils.parseInt(u), u = Math.max(u, 0), u == 0 || (u = Math.max(u, c)), { minimum: c, maximum: u };
3521
+ }
3522
+ return r.meetsValidationRequirements = function(i, c, u) {
3523
+ if (u.minLength) {
3524
+ var x = String(i).length;
3525
+ if (x < u.minLength)
3526
+ return `Must be at least ${u.minLength} characters`;
3543
3527
  }
3544
- if (S.maxLength) {
3545
- var O = String(p).length;
3546
- if (O > S.maxLength)
3547
- return `Can be no more than ${S.maxLength} characters`;
3528
+ if (u.maxLength) {
3529
+ var x = String(i).length;
3530
+ if (x > u.maxLength)
3531
+ return `Can be no more than ${u.maxLength} characters`;
3548
3532
  }
3549
- if (S.minValue && p !== void 0) {
3550
- var R = Number(p);
3551
- if (R < S.minValue)
3552
- return `Must be at least ${S.minValue}`;
3533
+ if (u.minValue && i !== void 0) {
3534
+ var I = Number(i);
3535
+ if (I < u.minValue)
3536
+ return `Must be at least ${u.minValue}`;
3553
3537
  }
3554
- if (S.maxValue && p !== void 0) {
3555
- var R = Number(p);
3556
- if (R > S.maxValue)
3557
- return `Can be no greater than ${S.maxValue}`;
3538
+ if (u.maxValue && i !== void 0) {
3539
+ var I = Number(i);
3540
+ if (I > u.maxValue)
3541
+ return `Can be no greater than ${u.maxValue}`;
3558
3542
  }
3559
- }, r.validateField = function(p, y, S) {
3560
- S = S || {};
3561
- var O = y.type || "string", { minimum: R, maximum: L } = B(y), N = y.type == "group" && y.asObject, $ = N ? R === L && L === 1 : L === 1, U = !$, G = e.utils.exists(p);
3562
- if (R) {
3563
- if (!G)
3543
+ }, r.validateField = function(i, c, u) {
3544
+ u = u || {};
3545
+ var x = c.type || "string", { minimum: I, maximum: O } = E(c), $ = c.type == "group" && c.asObject, L = $ ? I === O && O === 1 : O === 1, F = !L, _ = e.utils.exists(i);
3546
+ if (I) {
3547
+ if (!_)
3564
3548
  return {
3565
3549
  valid: !1,
3566
- message: `${y.title} is a required field`,
3550
+ message: `${c.title} is a required field`,
3567
3551
  status: 400
3568
3552
  };
3569
- } else if (!G)
3553
+ } else if (!_)
3570
3554
  return {
3571
3555
  valid: !0
3572
3556
  };
3573
- if (U) {
3574
- if (!Array.isArray(p))
3575
- return R ? {
3557
+ if (F) {
3558
+ if (!Array.isArray(i))
3559
+ return I ? {
3576
3560
  valid: !1,
3577
- message: `${y.title} requires at least ${R} values`,
3561
+ message: `${c.title} requires at least ${I} values`,
3578
3562
  status: 400
3579
- } : (console.log("NOT PROVIDED AS ARRAY", y.title, p), {
3563
+ } : (console.log("NOT PROVIDED AS ARRAY", c.title, i), {
3580
3564
  valid: !1,
3581
- message: `${y.title} must be provided as an array`,
3565
+ message: `${c.title} must be provided as an array`,
3582
3566
  status: 400
3583
3567
  });
3584
- var k = p;
3585
- if (k = k.filter(function(K) {
3586
- var J = K == null || K === "";
3587
- return !J;
3588
- }), R == L && R && k.length != R)
3568
+ var R = i;
3569
+ if (R = R.filter(function(z) {
3570
+ var W = z == null || z === "";
3571
+ return !W;
3572
+ }), I == O && I && R.length != I)
3589
3573
  return {
3590
3574
  valid: !1,
3591
- message: `${y.title} requires exactly ${L} values`,
3575
+ message: `${c.title} requires exactly ${O} values`,
3592
3576
  status: 400
3593
3577
  };
3594
- if (L && k.length > L)
3578
+ if (O && R.length > O)
3595
3579
  return {
3596
3580
  valid: !1,
3597
- message: `${y.title} requires less than ${L + 1} values`,
3581
+ message: `${c.title} requires less than ${O + 1} values`,
3598
3582
  status: 400
3599
3583
  };
3600
- if (k.length < R)
3584
+ if (R.length < I)
3601
3585
  return {
3602
3586
  valid: !1,
3603
- message: `${y.title} requires at least ${R} values`,
3587
+ message: `${c.title} requires at least ${I} values`,
3604
3588
  status: 400
3605
3589
  };
3606
- var j;
3607
- if (k.find(function(K) {
3608
- var J = O;
3609
- y.type === "group" && (J = "object"), y.type === "reference" && y.widget === "form" && (J = "object");
3610
- var oe = e.utils.isValidValue(
3611
- K,
3612
- J,
3613
- S.strict
3590
+ var N;
3591
+ if (R.find(function(z) {
3592
+ var W = x;
3593
+ c.type === "group" && (W = "object"), c.type === "reference" && c.widget === "form" && (W = "object");
3594
+ var K = e.utils.isValidValue(
3595
+ z,
3596
+ W,
3597
+ u.strict
3614
3598
  );
3615
- if (!oe)
3616
- return j = !0, !0;
3617
- if (y.validation) {
3618
- var ce = r.meetsValidationRequirements(
3619
- K,
3620
- O,
3621
- y.validation
3599
+ if (!K)
3600
+ return N = !0, !0;
3601
+ if (c.validation) {
3602
+ var re = r.meetsValidationRequirements(
3603
+ z,
3604
+ x,
3605
+ c.validation
3622
3606
  );
3623
- if (ce)
3624
- return j = !0, !0;
3607
+ if (re)
3608
+ return N = !0, !0;
3625
3609
  }
3626
- }), j)
3610
+ }), N)
3627
3611
  return {
3628
3612
  valid: !1,
3629
- message: `Invalid input for ${y.title}`,
3613
+ message: `Invalid input for ${c.title}`,
3630
3614
  status: 400
3631
3615
  };
3632
3616
  } else {
3633
- var Z = O, ae = y.widget;
3634
- Z === "group" && (Z = "object"), Z === "reference" && ae === "form" && (Z = "object");
3635
- var Y = r.getCleanedValue(p, Z, S), H = e.utils.isValidValue(
3636
- Y,
3637
- Z,
3638
- S.strict
3617
+ var B = x, H = c.widget;
3618
+ B === "group" && (B = "object"), B === "reference" && H === "form" && (B = "object");
3619
+ var U = r.getCleanedValue(i, B, u), q = e.utils.isValidValue(
3620
+ U,
3621
+ B,
3622
+ u.strict
3639
3623
  );
3640
- if (!H)
3624
+ if (!q)
3641
3625
  return {
3642
3626
  valid: !1,
3643
- message: `Single value '${p}' is not a valid ${Z} for ${y.title}`,
3627
+ message: `Single value '${i}' is not a valid ${B} for ${c.title}`,
3644
3628
  criteria: {
3645
- isValidValue: H,
3646
- cleanedValue: Y,
3647
- fieldType: O,
3648
- options: S
3629
+ isValidValue: q,
3630
+ cleanedValue: U,
3631
+ fieldType: x,
3632
+ options: u
3649
3633
  },
3650
3634
  status: 400
3651
3635
  };
3652
- let K = !1;
3653
- const J = {};
3654
- if (String(y.minValue) && (J.minValue = parseInt(y.minValue), K = !0), String(y.maxValue) && (J.maxValue = parseInt(y.maxValue), K = !0), String(y.minLength) && (J.minLength = parseInt(y.minLength), K = !0), String(y.maxLength) && (J.maxLength = parseInt(y.maxLength), K = !0), K) {
3655
- const oe = Object.assign(
3636
+ let z = !1;
3637
+ const W = {};
3638
+ if (String(c.minValue) && (W.minValue = parseInt(c.minValue), z = !0), String(c.maxValue) && (W.maxValue = parseInt(c.maxValue), z = !0), String(c.minLength) && (W.minLength = parseInt(c.minLength), z = !0), String(c.maxLength) && (W.maxLength = parseInt(c.maxLength), z = !0), z) {
3639
+ const K = Object.assign(
3656
3640
  {},
3657
- J,
3658
- y.validation || {}
3641
+ W,
3642
+ c.validation || {}
3659
3643
  );
3660
- var re = r.meetsValidationRequirements(
3661
- p,
3662
- O,
3663
- oe
3644
+ var Q = r.meetsValidationRequirements(
3645
+ i,
3646
+ x,
3647
+ K
3664
3648
  );
3665
- if (re)
3649
+ if (Q)
3666
3650
  return {
3667
3651
  valid: !1,
3668
- message: re,
3652
+ message: Q,
3669
3653
  status: 400
3670
3654
  };
3671
3655
  }
@@ -3673,82 +3657,82 @@ function Ot(e) {
3673
3657
  return {
3674
3658
  valid: !0
3675
3659
  };
3676
- }, r.getCleanedValue = function(p, y, S) {
3677
- switch (y) {
3660
+ }, r.getCleanedValue = function(i, c, u) {
3661
+ switch (c) {
3678
3662
  case "number":
3679
3663
  case "float":
3680
3664
  case "decimal":
3681
- return e.utils.exists(p) ? Number(p) : void 0;
3665
+ return e.utils.exists(i) ? Number(i) : void 0;
3682
3666
  case "integer":
3683
- return e.utils.exists(p) ? parseInt(p) : void 0;
3667
+ return e.utils.exists(i) ? parseInt(i) : void 0;
3684
3668
  case "boolean":
3685
- return e.utils.exists(p) ? e.utils.parseBoolean(p) : void 0;
3669
+ return e.utils.exists(i) ? e.utils.parseBoolean(i) : void 0;
3686
3670
  case "email":
3687
- return S.strict ? p : String(p).toLowerCase();
3671
+ return u.strict ? i : String(i).toLowerCase();
3688
3672
  case "reference":
3689
- return S.strict ? p : e.utils.id(p);
3673
+ return u.strict ? i : e.utils.id(i);
3690
3674
  default:
3691
- return S.strict ? p : e.utils.cleanValue(p, y, S);
3675
+ return u.strict ? i : e.utils.cleanValue(i, c, u);
3692
3676
  }
3693
- return p;
3694
- }, r.list = async function(p, y, S) {
3695
- S || (S = {});
3696
- const O = S.remoteURL || `/content/${p}/list`;
3697
- if (S.cancellable) {
3698
- S.config || (S.config = {});
3699
- const L = e.api.CancelToken.source();
3700
- return S.config.cancelToken = L.token, {
3701
- promise: e.api.post(O, y, S.config),
3702
- cancel($) {
3703
- L.cancel($ || "Operation canceled by the user.");
3677
+ return i;
3678
+ }, r.list = async function(i, c, u) {
3679
+ u || (u = {});
3680
+ const x = u.remoteURL || `/content/${i}/list`;
3681
+ if (u.cancellable) {
3682
+ u.config || (u.config = {});
3683
+ const O = e.api.CancelToken.source();
3684
+ return u.config.cancelToken = O.token, {
3685
+ promise: e.api.post(x, c, u.config),
3686
+ cancel(L) {
3687
+ O.cancel(L || "Operation canceled by the user.");
3704
3688
  }
3705
3689
  };
3706
3690
  } else {
3707
- const { data: R } = await e.api.post(O, y, S.config);
3708
- return R;
3691
+ const { data: I } = await e.api.post(x, c, u.config);
3692
+ return I;
3709
3693
  }
3710
- }, r.create = async function(p, y) {
3711
- const S = { ...y };
3712
- S.meta?.scopes && (S.meta.scopes = e.utils.ids(S.meta.scopes));
3713
- const { data: O } = await e.api.post(`/content/${p}/create`, S);
3714
- return O;
3715
- }, r.update = async function(p, y) {
3716
- p = e.utils.id(p);
3717
- const S = { ...y };
3718
- S.meta?.scopes && (S.meta.scopes = e.utils.ids(S.meta.scopes));
3719
- const { data: O } = await e.api.put(`/content/${p}`, S);
3720
- return O;
3721
- }, r.patch = async function(p, y) {
3722
- p = e.utils.id(p);
3723
- const S = { ...y };
3724
- S.meta?.scopes && (S.meta.scopes = e.utils.ids(S.meta.scopes));
3725
- const { data: O } = await e.api.patch(`/content/${p}`, S);
3726
- return O;
3727
- }, r.get = async function(p, y) {
3728
- p = e.utils.id(p), y = y || {};
3729
- const { data: S } = await e.api.get(`/content/${p}`, y);
3730
- return S;
3731
- }, r.getFromID = async function(p) {
3732
- return r.get(p);
3733
- }, r.delete = async function(p, y) {
3734
- p = e.utils.id(p);
3735
- const { data: S } = await e.api.delete(`/content/${p}`, y);
3736
- return S;
3737
- }, r.restore = async function(p, y) {
3738
- p = e.utils.id(p);
3739
- const { data: S } = await e.api.get(`/content/${p}/restore`, y);
3740
- return S;
3741
- }, r.getFromSlug = async function(p) {
3742
- const { data: y } = await e.api.get(`/content/slug/${p}`);
3743
- return y;
3694
+ }, r.create = async function(i, c) {
3695
+ const u = { ...c };
3696
+ u.meta?.scopes && (u.meta.scopes = e.utils.ids(u.meta.scopes));
3697
+ const { data: x } = await e.api.post(`/content/${i}/create`, u);
3698
+ return x;
3699
+ }, r.update = async function(i, c) {
3700
+ i = e.utils.id(i);
3701
+ const u = { ...c };
3702
+ u.meta?.scopes && (u.meta.scopes = e.utils.ids(u.meta.scopes));
3703
+ const { data: x } = await e.api.put(`/content/${i}`, u);
3704
+ return x;
3705
+ }, r.patch = async function(i, c) {
3706
+ i = e.utils.id(i);
3707
+ const u = { ...c };
3708
+ u.meta?.scopes && (u.meta.scopes = e.utils.ids(u.meta.scopes));
3709
+ const { data: x } = await e.api.patch(`/content/${i}`, u);
3710
+ return x;
3711
+ }, r.get = async function(i, c) {
3712
+ i = e.utils.id(i), c = c || {};
3713
+ const { data: u } = await e.api.get(`/content/${i}`, c);
3714
+ return u;
3715
+ }, r.getFromID = async function(i) {
3716
+ return r.get(i);
3717
+ }, r.delete = async function(i, c) {
3718
+ i = e.utils.id(i);
3719
+ const { data: u } = await e.api.delete(`/content/${i}`, c);
3720
+ return u;
3721
+ }, r.restore = async function(i, c) {
3722
+ i = e.utils.id(i);
3723
+ const { data: u } = await e.api.get(`/content/${i}/restore`, c);
3724
+ return u;
3725
+ }, r.getFromSlug = async function(i) {
3726
+ const { data: c } = await e.api.get(`/content/slug/${i}`);
3727
+ return c;
3744
3728
  }, r;
3745
3729
  }
3746
3730
  function Mt(e) {
3747
3731
  var r = {}, a;
3748
3732
  return r.countries = async function() {
3749
3733
  return a || (a = new Promise(async function(t, n) {
3750
- e.api.get("/system/countries").then(function(i) {
3751
- return t(i.data);
3734
+ e.api.get("/system/countries").then(function(o) {
3735
+ return t(o.data);
3752
3736
  }).catch(n);
3753
3737
  })), a;
3754
3738
  }, r;
@@ -3758,21 +3742,21 @@ function It(e) {
3758
3742
  function a() {
3759
3743
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
3760
3744
  }
3761
- return r.distance = function({ lat: t, lon: n }, { lat: i, lon: l }) {
3762
- function o(v) {
3763
- return v * (Math.PI / 180);
3745
+ return r.distance = function({ lat: t, lon: n }, { lat: o, lon: p }) {
3746
+ function s(A) {
3747
+ return A * (Math.PI / 180);
3764
3748
  }
3765
- var u = 6371e3, f = o(i - t), w = o(l - n), g = Math.sin(f / 2) * Math.sin(f / 2) + Math.cos(o(t)) * Math.cos(o(i)) * Math.sin(w / 2) * Math.sin(w / 2), P = 2 * Math.atan2(Math.sqrt(g), Math.sqrt(1 - g)), A = u * P;
3766
- return A;
3749
+ var f = 6371e3, m = s(o - t), S = s(p - n), v = Math.sin(m / 2) * Math.sin(m / 2) + Math.cos(s(t)) * Math.cos(s(o)) * Math.sin(S / 2) * Math.sin(S / 2), P = 2 * Math.atan2(Math.sqrt(v), Math.sqrt(1 - v)), b = f * P;
3750
+ return b;
3767
3751
  }, r.getPosition = async function() {
3768
3752
  return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
3769
3753
  navigator.geolocation.getCurrentPosition(t, n);
3770
3754
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3771
3755
  }, r.watchPosition = async function(t) {
3772
- return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, i) {
3773
- const l = navigator.geolocation.watchPosition(t, i);
3756
+ return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, o) {
3757
+ const p = navigator.geolocation.watchPosition(t, o);
3774
3758
  n({
3775
- id: l
3759
+ id: p
3776
3760
  });
3777
3761
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3778
3762
  }, r.stopWatchPosition = async function(t) {
@@ -4487,16 +4471,16 @@ function It(e) {
4487
4471
  if (t) {
4488
4472
  const n = t?.organisation?.countryCode;
4489
4473
  if (n) {
4490
- const i = r.countryLookup[n];
4474
+ const o = r.countryLookup[n];
4491
4475
  return {
4492
4476
  code: n,
4493
- name: i
4477
+ name: o
4494
4478
  };
4495
4479
  }
4496
4480
  }
4497
4481
  }, r;
4498
4482
  }
4499
- const Rt = function(e, r) {
4483
+ const Tt = function(e, r) {
4500
4484
  if (r = r || "production", !e.auth)
4501
4485
  throw new Error("Can't Instantiate QikSocket before QikAuth exists");
4502
4486
  const a = e.utils.guid();
@@ -4506,41 +4490,41 @@ const Rt = function(e, r) {
4506
4490
  connected: !1,
4507
4491
  windowID: a,
4508
4492
  autoreconnect: !0
4509
- }, n, i = {};
4510
- const l = {}, o = new je();
4511
- o.bootstrap(t), t.channel = async function(v) {
4512
- if (i[v])
4513
- return i[v];
4493
+ }, n, o = {};
4494
+ const p = {}, s = new je();
4495
+ s.bootstrap(t), t.channel = async function(A) {
4496
+ if (o[A])
4497
+ return o[A];
4514
4498
  const C = new je();
4515
- i[v] = C, t.connected || await t.connect(), t.subscribe(v), t.addEventListener(v, m);
4516
- function m(c) {
4517
- C.dispatch("message", c);
4499
+ o[A] = C, t.connected || await t.connect(), t.subscribe(A), t.addEventListener(A, h);
4500
+ function h(d) {
4501
+ C.dispatch("message", d);
4518
4502
  }
4519
4503
  return C.destroy = function() {
4520
- t.removeAllListeners(), i[v] = null;
4521
- }, i[v];
4504
+ t.removeAllListeners(), o[A] = null;
4505
+ }, o[A];
4522
4506
  };
4523
- function u(v) {
4524
- t.debug && console.log("[socket] Connection open", v), t.connected = !0, o.dispatch("connected", v);
4507
+ function f(A) {
4508
+ t.debug && console.log("[socket] Connection open", A), t.connected = !0, s.dispatch("connected", A);
4525
4509
  }
4526
- async function f(v) {
4527
- v.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${v.code} reason=${v.reason}`) : t.debug && console.log("[socket] - connection closed due to error", v), t.connected = !1, o.dispatch("disconnected", v), n = null, t.autoreconnect && t.reconnect();
4510
+ async function m(A) {
4511
+ A.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${A.code} reason=${A.reason}`) : t.debug && console.log("[socket] - connection closed due to error", A), t.connected = !1, s.dispatch("disconnected", A), n = null, t.autoreconnect && t.reconnect();
4528
4512
  }
4529
- function w(v) {
4530
- console.log("[event] socketError", event), t.debug && console.log("[socket] Error", v), o.dispatch("error", v);
4513
+ function S(A) {
4514
+ console.log("[event] socketError", event), t.debug && console.log("[socket] Error", A), s.dispatch("error", A);
4531
4515
  }
4532
- function g(v) {
4533
- const C = JSON.parse(v.data);
4534
- t.debug && console.log("[socket] message received", C), o.dispatch("message", C), C.channel && o.dispatch(C.channel, C);
4516
+ function v(A) {
4517
+ const C = JSON.parse(A.data);
4518
+ t.debug && console.log("[socket] message received", C), s.dispatch("message", C), C.channel && s.dispatch(C.channel, C);
4535
4519
  }
4536
- async function P(v) {
4537
- n.send(JSON.stringify(v));
4520
+ async function P(A) {
4521
+ n.send(JSON.stringify(A));
4538
4522
  }
4539
- function A() {
4540
- return new Promise(function(v) {
4523
+ function b() {
4524
+ return new Promise(function(A) {
4541
4525
  function C() {
4542
4526
  if (t.connected)
4543
- return v(n);
4527
+ return A(n);
4544
4528
  setTimeout(C, 1e3);
4545
4529
  }
4546
4530
  C();
@@ -4548,46 +4532,46 @@ const Rt = function(e, r) {
4548
4532
  }
4549
4533
  return t.connect = async function() {
4550
4534
  if (n)
4551
- return n.connected ? (console.log("[socket] - Socket is already connected"), n) : A();
4552
- const v = e.auth.getCurrentToken();
4553
- if (!v) {
4535
+ return n.connected ? (console.log("[socket] - Socket is already connected"), n) : b();
4536
+ const A = e.auth.getCurrentToken();
4537
+ if (!A) {
4554
4538
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4555
4539
  return;
4556
4540
  }
4557
- return n = new WebSocket(`${t.url}?access_token=${v}&windowid=${a}`), n.addEventListener("close", f), n.addEventListener("error", w), n.addEventListener("open", u), n.addEventListener("message", g), t.debug && console.log("[socket] - Connected with event listeners"), A();
4541
+ return n = new WebSocket(`${t.url}?access_token=${A}&windowid=${a}`), n.addEventListener("close", m), n.addEventListener("error", S), n.addEventListener("open", f), n.addEventListener("message", v), t.debug && console.log("[socket] - Connected with event listeners"), b();
4558
4542
  }, t.reconnect = async function() {
4559
4543
  if (t.connected)
4560
4544
  return;
4561
4545
  t.debug && console.log("[socket] reconnecting...");
4562
- const v = await t.connect();
4563
- return Object.keys(l).forEach(function(m) {
4564
- t.subscribe(m);
4565
- }), v;
4546
+ const A = await t.connect();
4547
+ return Object.keys(p).forEach(function(h) {
4548
+ t.subscribe(h);
4549
+ }), A;
4566
4550
  }, t.close = async function() {
4567
4551
  if (!n) {
4568
4552
  console.log("[socket] - Socket is not connected");
4569
4553
  return;
4570
4554
  }
4571
- const v = t.autoreconnect;
4572
- t.autoreconnect = !1, n.close(), n.removeEventListener("close", f), n.removeEventListener("error", w), n.removeEventListener("open", u), n.removeEventListener("message", g), n = null, f({ wasClean: !0 }), t.autoreconnect = v;
4573
- }, t.disconnect = t.close, t.subscribe = async function(v) {
4555
+ const A = t.autoreconnect;
4556
+ t.autoreconnect = !1, n.close(), n.removeEventListener("close", m), n.removeEventListener("error", S), n.removeEventListener("open", f), n.removeEventListener("message", v), n = null, m({ wasClean: !0 }), t.autoreconnect = A;
4557
+ }, t.disconnect = t.close, t.subscribe = async function(A) {
4574
4558
  if (!n) {
4575
4559
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
4576
4560
  return;
4577
4561
  }
4578
4562
  P({
4579
4563
  action: "subscribe",
4580
- channel: v
4581
- }), l[v] = !0, o.dispatch("subscribe", v), t.debug && console.log(`[socket] - subscribed to ${v}`);
4582
- }, t.unsubscribe = async function(v) {
4564
+ channel: A
4565
+ }), p[A] = !0, s.dispatch("subscribe", A), t.debug && console.log(`[socket] - subscribed to ${A}`);
4566
+ }, t.unsubscribe = async function(A) {
4583
4567
  if (!n) {
4584
4568
  console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
4585
4569
  return;
4586
4570
  }
4587
4571
  P({
4588
4572
  action: "unsubscribe",
4589
- channel: v
4590
- }), delete l[v], o.dispatch("unsubscribe", v), t.debug && console.log(`[socket] - unsubscribed from ${v}`);
4573
+ channel: A
4574
+ }), delete p[A], s.dispatch("unsubscribe", A), t.debug && console.log(`[socket] - unsubscribed from ${A}`);
4591
4575
  }, t;
4592
4576
  };
4593
4577
  function Nt(e) {
@@ -4616,46 +4600,46 @@ function Nt(e) {
4616
4600
  value: Pt,
4617
4601
  writable: !1
4618
4602
  });
4619
- const t = F;
4603
+ const t = k;
4620
4604
  Object.defineProperty(r, "utils", {
4621
4605
  value: t,
4622
4606
  writable: !1
4623
4607
  }), Object.defineProperty(r, "filter", {
4624
- value: ee,
4608
+ value: X,
4625
4609
  writable: !1
4626
4610
  });
4627
- const i = new xt(r);
4611
+ const o = new xt(r);
4628
4612
  Object.defineProperty(r, "files", {
4629
- value: i,
4613
+ value: o,
4630
4614
  writable: !1
4631
- }), new je().bootstrap(r), r.error = function(v) {
4632
- return r.dispatch("error", t.errorMessage(v));
4633
- }, r.notify = function(v, C) {
4634
- return r.dispatch("notification", { message: v, options: C });
4615
+ }), new je().bootstrap(r), r.error = function(A) {
4616
+ return r.dispatch("error", t.errorMessage(A));
4617
+ }, r.notify = function(A, C) {
4618
+ return r.dispatch("notification", { message: A, options: C });
4635
4619
  };
4636
- const o = new yt(r);
4620
+ const s = new mt(r);
4637
4621
  Object.defineProperty(r, "api", {
4638
- value: o,
4622
+ value: s,
4639
4623
  writable: !1
4640
4624
  });
4641
- const u = new Et(r);
4625
+ const f = new Et(r);
4642
4626
  Object.defineProperty(r, "auth", {
4643
- value: u,
4627
+ value: f,
4644
4628
  writable: !1
4645
4629
  });
4646
- const f = new Rt(r);
4630
+ const m = new Tt(r);
4647
4631
  Object.defineProperty(r, "socket", {
4648
- value: f,
4632
+ value: m,
4649
4633
  writable: !1
4650
4634
  });
4651
- const w = new Ct(r);
4635
+ const S = new Ct(r);
4652
4636
  Object.defineProperty(r, "access", {
4653
- value: w,
4637
+ value: S,
4654
4638
  writable: !1
4655
4639
  });
4656
- const g = new Mt(r);
4640
+ const v = new Mt(r);
4657
4641
  Object.defineProperty(r, "system", {
4658
- value: g,
4642
+ value: v,
4659
4643
  writable: !1
4660
4644
  });
4661
4645
  const P = new It(r);
@@ -4663,14 +4647,14 @@ function Nt(e) {
4663
4647
  value: P,
4664
4648
  writable: !1
4665
4649
  });
4666
- const A = new Ot(r);
4650
+ const b = new Ot(r);
4667
4651
  return Object.defineProperty(r, "content", {
4668
- value: A,
4652
+ value: b,
4669
4653
  writable: !1
4670
4654
  }), r;
4671
4655
  }
4672
- var Tt = `qik ${vr}`;
4673
- console.log(Tt);
4656
+ var Rt = `qik ${vr}`;
4657
+ console.log(Rt);
4674
4658
  export {
4675
4659
  je as EventDispatcher,
4676
4660
  Nt as default