@qikdev/sdk 0.1.204 → 0.1.205

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