bt-core-app 1.4.35 → 1.4.37

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.
@@ -1,5 +1,5 @@
1
- import { ref as Z, shallowRef as Le, computed as ce, toValue as z, watch as Be, onMounted as Gt, toRef as qt } from "vue";
2
- import { watchArray as Jr, useStorage as Vt, useEventListener as se, useArrayUnique as Ht, useArrayDifference as $r, watchDebounced as Yt, tryOnMounted as Zt, toValue as be, useParentElement as zt } from "@vueuse/core";
1
+ import { ref as Z, shallowRef as Le, computed as ie, toValue as z, watch as $e, onMounted as Gt, toRef as qt } from "vue";
2
+ import { watchArray as Jr, useStorage as Vt, useEventListener as se, useArrayUnique as Ht, useArrayDifference as Br, watchDebounced as Yt, tryOnMounted as Zt, toValue as be, useParentElement as zt } from "@vueuse/core";
3
3
  import { DateTime as fe } from "luxon";
4
4
  import { useRouter as jr, useRoute as Jt } from "vue-router";
5
5
  import { defineStore as Kr } from "pinia";
@@ -11,34 +11,34 @@ function Kt(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function Qr(e) {
14
- const t = Z([]), u = Le(), S = Le(), h = Le(), y = ce(() => u.value != null);
14
+ const t = Z([]), u = Le(), E = Le(), h = Le(), y = ie(() => u.value != null);
15
15
  function T(d) {
16
16
  t.value = t.value.filter((r) => r.id != d);
17
17
  }
18
- function L(d) {
18
+ function N(d) {
19
19
  const r = {
20
20
  id: jt(),
21
21
  msg: d ?? "Loading"
22
22
  };
23
23
  return t.value.push(r), r.id;
24
24
  }
25
- function N(d) {
26
- d != null && (S.value = d.toString());
25
+ function P(d) {
26
+ d != null && (E.value = d.toString());
27
27
  }
28
28
  function x() {
29
- S.value = void 0;
29
+ E.value = void 0;
30
30
  }
31
31
  async function W(d, r) {
32
32
  const l = { ...r };
33
33
  l.completionMsg ?? (l.completionMsg = e == null ? void 0 : e.completionMsg), l.confirmationMsg ?? (l.confirmationMsg = e == null ? void 0 : e.confirmationMsg), l.errorMsg ?? (l.errorMsg = e == null ? void 0 : e.errorMsg), l.loadingMsg ?? (l.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), l.requireConfirmation ?? (l.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
- const c = L(l.loadingMsg);
34
+ const c = N(l.loadingMsg);
35
35
  let g = null;
36
36
  try {
37
37
  return l.requireConfirmation || l.confirmationMsg, g = await d(), l.completionMsg != null && (h.value = l.completionMsg), g;
38
38
  } catch (w) {
39
39
  if (l.throwError == !0)
40
40
  return g;
41
- N(l.errorMsg ?? w ?? "error");
41
+ P(l.errorMsg ?? w ?? "error");
42
42
  } finally {
43
43
  T(c);
44
44
  }
@@ -46,18 +46,18 @@ function Qr(e) {
46
46
  return Jr(t, (d) => {
47
47
  u.value = d.length > 0 ? d[0].msg : void 0;
48
48
  }, { deep: !0 }), {
49
- actionErrorMsg: S,
49
+ actionErrorMsg: E,
50
50
  actionLoadingMsg: u,
51
51
  actionCompleteMsg: h,
52
52
  clearErrors: x,
53
53
  doAction: W,
54
54
  isLoading: y,
55
- logError: N
55
+ logError: P
56
56
  };
57
57
  }
58
58
  function Qt(e) {
59
- const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: S, isLoading: h, doAction: y, logError: T } = Qr(e);
60
- function L(r) {
59
+ const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: E, isLoading: h, doAction: y, logError: T } = Qr(e);
60
+ function N(r) {
61
61
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
62
62
  const l = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store), c = (e == null ? void 0 : e.items) ?? [];
63
63
  return l != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => l().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
@@ -79,7 +79,7 @@ function Qt(e) {
79
79
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
80
80
  });
81
81
  }
82
- function N(r) {
82
+ function P(r) {
83
83
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
84
84
  const l = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store), c = (e == null ? void 0 : e.items) ?? [];
85
85
  return l != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await l().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
@@ -160,11 +160,11 @@ function Qt(e) {
160
160
  return {
161
161
  actionLoadingMsg: u,
162
162
  actionErrorMsg: t,
163
- clearErrors: S,
164
- deleteItem: L,
163
+ clearErrors: E,
164
+ deleteItem: N,
165
165
  doAction: y,
166
166
  getAllItems: x,
167
- getItem: N,
167
+ getItem: P,
168
168
  isLoading: h,
169
169
  logError: T,
170
170
  restoreItem: W,
@@ -172,25 +172,25 @@ function Qt(e) {
172
172
  };
173
173
  }
174
174
  function Fn(e) {
175
- const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: S, isLoading: h, doAction: y, logError: T } = Qr(e);
176
- function L(x) {
175
+ const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: E, isLoading: h, doAction: y, logError: T } = Qr(e);
176
+ function N(x) {
177
177
  return x.nav ?? (x.nav = e == null ? void 0 : e.nav), x.proxyID ?? (x.proxyID = e == null ? void 0 : e.proxyID), x.throwError ?? (x.throwError = e == null ? void 0 : e.throwError), x.url ?? (x.url = e == null ? void 0 : e.url), y(async () => await e.api.post(x), { ...e, ...x });
178
178
  }
179
- function N(x) {
179
+ function P(x) {
180
180
  return x.nav ?? (x.nav = e == null ? void 0 : e.nav), x.proxyID ?? (x.proxyID = e == null ? void 0 : e.proxyID), x.throwError ?? (x.throwError = e == null ? void 0 : e.throwError), x.url ?? (x.url = e == null ? void 0 : e.url), y(async () => await e.api.get(x), { ...e, ...x });
181
181
  }
182
182
  return {
183
- apiGet: N,
184
- apiPost: L,
183
+ apiGet: P,
184
+ apiPost: N,
185
185
  actionLoadingMsg: u,
186
186
  actionErrorMsg: t,
187
- clearErrors: S,
187
+ clearErrors: E,
188
188
  doAction: y,
189
189
  isLoading: h,
190
190
  logError: T
191
191
  };
192
192
  }
193
- var qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
193
+ var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
194
194
  function Xt(e) {
195
195
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
196
196
  }
@@ -209,11 +209,11 @@ var Fe = function() {
209
209
  };
210
210
  }
211
211
  if (h.length === 1) {
212
- var L = h, N = y.ignoreCase ? t : e, x = y.cmp || function(d, r) {
212
+ var N = h, P = y.ignoreCase ? t : e, x = y.cmp || function(d, r) {
213
213
  return d < r ? -1 : d > r ? 1 : 0;
214
214
  };
215
215
  h = function(d, r) {
216
- return x(N(L(d)), N(L(r)));
216
+ return x(P(N(d)), P(N(r)));
217
217
  };
218
218
  }
219
219
  const W = { "-1": "", desc: "" };
@@ -221,25 +221,25 @@ var Fe = function() {
221
221
  return -h(d, r);
222
222
  } : h;
223
223
  }
224
- function S(h, y) {
225
- var T = typeof this == "function" && !this.firstBy ? this : !1, L = u(h, y), N = T ? function(x, W) {
226
- return T(x, W) || L(x, W);
227
- } : L;
228
- return N.thenBy = S, N;
224
+ function E(h, y) {
225
+ var T = typeof this == "function" && !this.firstBy ? this : !1, N = u(h, y), P = T ? function(x, W) {
226
+ return T(x, W) || N(x, W);
227
+ } : N;
228
+ return P.thenBy = E, P;
229
229
  }
230
- return S.firstBy = S, S;
230
+ return E.firstBy = E, E;
231
231
  }();
232
- function _e(e, t) {
233
- let u = e ?? "", S = t ?? "";
232
+ function xe(e, t) {
233
+ let u = e ?? "", E = t ?? "";
234
234
  if (u.endsWith("/"))
235
235
  do
236
236
  u = u.slice(0, u.length - 1);
237
237
  while (u.endsWith("/"));
238
- if (S.startsWith("/"))
238
+ if (E.startsWith("/"))
239
239
  do
240
- S = S.slice(1, S.length);
241
- while (S.startsWith("/"));
242
- return `${u}/${S}`;
240
+ E = E.slice(1, E.length);
241
+ while (E.startsWith("/"));
242
+ return `${u}/${E}`;
243
243
  }
244
244
  function kn(e) {
245
245
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
@@ -290,13 +290,13 @@ function Xr(e, t = !1) {
290
290
  }
291
291
  function Yn(e, t, u) {
292
292
  if (e) {
293
- var S = new Image();
294
- S.onload = t, S.onerror = u, S.src = e;
293
+ var E = new Image();
294
+ E.onload = t, E.onerror = u, E.src = e;
295
295
  }
296
296
  }
297
297
  async function Zn(e, t = !0) {
298
- return new Promise((u, S) => {
299
- e == null && S("no url given");
298
+ return new Promise((u, E) => {
299
+ e == null && E("no url given");
300
300
  var h = new Image();
301
301
  h.setAttribute("crossOrigin", "anonymous"), h.onload = function() {
302
302
  var y = document.createElement("canvas");
@@ -304,7 +304,7 @@ async function Zn(e, t = !0) {
304
304
  var T = y.getContext("2d");
305
305
  T == null || T.drawImage(this, 0, 0), u(y.toDataURL("image/png"));
306
306
  }, h.onerror = function() {
307
- console.log("errr"), t ? S("image could not be loaded for some reason") : u(null);
307
+ console.log("errr"), t ? E("image could not be loaded for some reason") : u(null);
308
308
  }, e != null && (h.src = e);
309
309
  });
310
310
  }
@@ -333,19 +333,19 @@ const ke = [
333
333
  function Jn(e) {
334
334
  if (e == null)
335
335
  return 0;
336
- const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), u = ke.filter((S) => S.values.some((h) => t.some((y) => h == y))).map((S) => S.value);
336
+ const t = e.replaceAll(" ", "").split(",").map((E) => E.toLowerCase()), u = ke.filter((E) => E.values.some((h) => t.some((y) => h == y))).map((E) => E.value);
337
337
  return u.length == 0 ? 8 : Math.min(...u);
338
338
  }
339
339
  function jn(e) {
340
340
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
341
- let u = ke.find((S) => S.values.some((h) => h == t));
341
+ let u = ke.find((E) => E.values.some((h) => h == t));
342
342
  return u != null ? u.short : "";
343
343
  }).filter((t) => t != null && t.length > 0).toString();
344
344
  }
345
345
  function Kn(e, t) {
346
346
  if (e == null || t == null)
347
347
  return !0;
348
- const u = e.replaceAll(" ", "").split(",").map((y) => y.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), h = ke.find((y) => y.values.some((T) => T == S));
348
+ const u = e.replaceAll(" ", "").split(",").map((y) => y.toLowerCase()), E = t.replaceAll(" ", "").toLowerCase(), h = ke.find((y) => y.values.some((T) => T == E));
349
349
  return h != null && u.some((y) => y == h.short || h.values.some((T) => T == y));
350
350
  }
351
351
  function Qn(e, t) {
@@ -353,13 +353,13 @@ function Qn(e, t) {
353
353
  return e;
354
354
  let u = e ?? "";
355
355
  u = `${u},${t}`;
356
- let S = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((h) => ke.find((y) => y.values.some((T) => T == h))).filter((h) => h != null).sort(Fe.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
357
- return S.length > 0 ? S : void 0;
356
+ let E = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((h) => ke.find((y) => y.values.some((T) => T == h))).filter((h) => h != null).sort(Fe.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
357
+ return E.length > 0 ? E : void 0;
358
358
  }
359
359
  function Xn(e, t) {
360
360
  if (t == null || e == null)
361
361
  return e;
362
- let u = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), h = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((y) => ke.find((T) => T.values.some((L) => L == y && L != S))).filter((y) => y != null).sort(Fe.firstBy((y) => (y == null ? void 0 : y.value) ?? 0)).map((y) => y == null ? void 0 : y.short))].toString();
362
+ let u = e ?? "", E = t.replaceAll(" ", "").toLowerCase(), h = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((y) => ke.find((T) => T.values.some((N) => N == y && N != E))).filter((y) => y != null).sort(Fe.firstBy((y) => (y == null ? void 0 : y.value) ?? 0)).map((y) => y == null ? void 0 : y.short))].toString();
363
363
  return h.length > 0 ? h : void 0;
364
364
  }
365
365
  function On(e, t) {
@@ -378,38 +378,38 @@ function rn() {
378
378
  return "0001-01-01T00:00:00Z";
379
379
  }
380
380
  function ea(e, t) {
381
- let u = "1", S = 0;
382
- if (S < t)
381
+ let u = "1", E = 0;
382
+ if (E < t)
383
383
  do
384
- u = u + "0", S += 1;
385
- while (S < t);
384
+ u = u + "0", E += 1;
385
+ while (E < t);
386
386
  let h = Number.parseInt(u);
387
387
  return Math.round(e * h) / h;
388
388
  }
389
389
  function ra(e, t) {
390
390
  let u = e ?? "";
391
- return t != null && (tn(u, t) ? u = u.split(",").filter((S) => S != t).toString() : u != null ? u = `${u},${t}` : u = t), u != null && u.length > 0 ? u : null;
391
+ return t != null && (tn(u, t) ? u = u.split(",").filter((E) => E != t).toString() : u != null ? u = `${u},${t}` : u = t), u != null && u.length > 0 ? u : null;
392
392
  }
393
393
  function tn(e, t) {
394
394
  if (e == null || e.length == 0)
395
395
  return !1;
396
396
  if (!t)
397
397
  return !0;
398
- var u = e.split(","), S = t.split(",");
399
- return u.some((h) => S.some((y) => y == h));
398
+ var u = e.split(","), E = t.split(",");
399
+ return u.some((h) => E.some((y) => y == h));
400
400
  }
401
- function Ir(e) {
401
+ function Dr(e) {
402
402
  if (!e)
403
403
  return e;
404
404
  let t, u = Array.isArray(e) ? [] : {};
405
- for (const S in e)
406
- t = e[S], u[S] = typeof t == "object" ? Ir(t) : t;
405
+ for (const E in e)
406
+ t = e[E], u[E] = typeof t == "object" ? Dr(t) : t;
407
407
  return u;
408
408
  }
409
409
  function nn(e) {
410
410
  return e && Object.keys(e).sort().reduce(function(t, u) {
411
- let S = e[u];
412
- return t[u] = typeof S == "object" && S !== null ? nn(S) : S, t;
411
+ let E = e[u];
412
+ return t[u] = typeof E == "object" && E !== null ? nn(E) : E, t;
413
413
  }, Array.isArray(e) ? [] : {});
414
414
  }
415
415
  function an(e, t) {
@@ -419,17 +419,17 @@ function Or(e, t = (u) => u) {
419
419
  if (e == null)
420
420
  return [];
421
421
  const u = Array.isArray(e) ? e : t(e);
422
- return Ne(u) ? [...u.reduce((S, h) => {
423
- S.push(h);
422
+ return Ne(u) ? [...u.reduce((E, h) => {
423
+ E.push(h);
424
424
  const y = Or(h, t);
425
- return Ne(y) && S.push(...y), S;
425
+ return Ne(y) && E.push(...y), E;
426
426
  }, [])] : [];
427
427
  }
428
428
  function ta(e) {
429
- const t = e.split(","), u = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], h = new Uint8Array(u.length);
429
+ const t = e.split(","), u = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), E = t[0].split(":")[1].split(";")[0], h = new Uint8Array(u.length);
430
430
  for (let y = 0; y < u.length; y++)
431
431
  h[y] = u.charCodeAt(y);
432
- return new Blob([h], { type: S });
432
+ return new Blob([h], { type: E });
433
433
  }
434
434
  function ln(e) {
435
435
  var t = "";
@@ -455,8 +455,8 @@ function cn(e, t, u) {
455
455
  return !1;
456
456
  for (let h = 0; h < u.length; h++) {
457
457
  const y = u[h];
458
- var S = dr(e, y);
459
- if (S != null && typeof S == "string" && an(S, t))
458
+ var E = mr(e, y);
459
+ if (E != null && typeof E == "string" && an(E, t))
460
460
  return !0;
461
461
  }
462
462
  return !1;
@@ -469,12 +469,12 @@ function aa(e = 2e3) {
469
469
  setTimeout(() => t(), e);
470
470
  });
471
471
  }
472
- function dr(e, t) {
472
+ function mr(e, t) {
473
473
  if (e == null || e == null || !t)
474
474
  return null;
475
475
  var u = t.split(".");
476
- let S = u.length;
477
- for (var h = e, y = 0; y < S; y++)
476
+ let E = u.length;
477
+ for (var h = e, y = 0; y < E; y++)
478
478
  if (h = h[u[y]], h == null)
479
479
  return null;
480
480
  return h;
@@ -482,12 +482,12 @@ function dr(e, t) {
482
482
  function fn(e) {
483
483
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
484
484
  }
485
- let mr;
485
+ let vr;
486
486
  function sn() {
487
- return mr;
487
+ return vr;
488
488
  }
489
489
  function on(e) {
490
- const t = (e == null ? void 0 : e.buildHeaders) ?? L, u = (e == null ? void 0 : e.buildQuery) ?? y, S = (e == null ? void 0 : e.buildUrl) ?? T, h = e == null ? void 0 : e.demo;
490
+ const t = (e == null ? void 0 : e.buildHeaders) ?? N, u = (e == null ? void 0 : e.buildQuery) ?? y, E = (e == null ? void 0 : e.buildUrl) ?? T, h = e == null ? void 0 : e.demo;
491
491
  function y(l) {
492
492
  let c = new URLSearchParams();
493
493
  return Object.entries(l).forEach((g) => {
@@ -498,17 +498,17 @@ function on(e) {
498
498
  }
499
499
  function T(l) {
500
500
  let c = z(l.url) ?? void 0, g = z(l.id);
501
- return c == null && (e == null ? void 0 : e.findPath) != null && (c = e.findPath(l.nav)), l.additionalUrl != null && (c == null ? c = l.additionalUrl : c = _e(c, l.additionalUrl)), g != null && (c != null && c.includes("{id}") ? c = c.replaceAll("{id}", g) : c = _e(c, g)), l.params != null && (c = `${c}?${u(l.params)}`), l.finalUrl = c, l.finalUrl ?? "";
501
+ return c == null && (e == null ? void 0 : e.findPath) != null && (c = e.findPath(l.nav)), l.additionalUrl != null && (c == null ? c = l.additionalUrl : c = xe(c, l.additionalUrl)), g != null && (c != null && c.includes("{id}") ? c = c.replaceAll("{id}", g) : c = xe(c, g)), l.params != null && (c = `${c}?${u(l.params)}`), l.finalUrl = c, l.finalUrl ?? "";
502
502
  }
503
- function L(l) {
503
+ function N(l) {
504
504
  var g, w;
505
505
  let c = { ...l.headers };
506
506
  return l.proxyID && (c.ManagedCompanyAccountID ?? (c.ManagedCompanyAccountID = l.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((g = e == null ? void 0 : e.auth) == null ? void 0 : g.isLoggedIn.value) == !0 && (c.authorization ?? (c.authorization = `bearer ${(w = e == null ? void 0 : e.auth) == null ? void 0 : w.credentials.value.token}`)), c["Content-Type"] ?? (c["Content-Type"] = l.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), c;
507
507
  }
508
- async function N(l) {
508
+ async function P(l) {
509
509
  const c = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, g = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
510
510
  let v = l.finalUrl, C = l.headers;
511
- if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
511
+ if (v == null && (v = E(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
512
512
  return console.log(`DEMO: Get from ${v}`), h.get(l);
513
513
  console.log(`Get from ${v}`);
514
514
  let A;
@@ -528,16 +528,16 @@ function on(e) {
528
528
  return await A.json();
529
529
  throw new Error();
530
530
  } catch (M) {
531
- const E = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
531
+ const S = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
532
532
  if (!c)
533
533
  return;
534
- throw new Error(E);
534
+ throw new Error(S);
535
535
  }
536
536
  }
537
537
  async function x(l) {
538
538
  const c = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, g = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
539
539
  let v = l.finalUrl, C = l.headers;
540
- if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
540
+ if (v == null && (v = E(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
541
541
  return console.log(`DEMO: Get all from ${v}`), h.getAll(l);
542
542
  console.log(`Get all from ${v}`);
543
543
  let A;
@@ -557,16 +557,16 @@ function on(e) {
557
557
  return await A.json();
558
558
  throw new Error();
559
559
  } catch (M) {
560
- const E = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
560
+ const S = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
561
561
  if (!c)
562
562
  return;
563
- throw new Error(E);
563
+ throw new Error(S);
564
564
  }
565
565
  }
566
566
  async function W(l) {
567
567
  const c = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, g = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
568
568
  let v = l.finalUrl, C = l.headers;
569
- if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
569
+ if (v == null && (v = E(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
570
570
  return console.log(`DEMO: Post to ${v}`), h.post(l);
571
571
  console.log(`Post to ${v}`);
572
572
  let A;
@@ -589,14 +589,14 @@ function on(e) {
589
589
  } catch (M) {
590
590
  if (A.status == 200 || !c)
591
591
  return;
592
- const E = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
593
- throw new Error(E);
592
+ const S = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
593
+ throw new Error(S);
594
594
  }
595
595
  }
596
596
  async function d(l) {
597
597
  const c = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, g = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
598
598
  let v = l.finalUrl, C = l.headers;
599
- if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
599
+ if (v == null && (v = E(l)), l.overrideHeaders !== !0 && (C = t(l)), h != null && h.isDemoing.value)
600
600
  return console.log(`DEMO: Patch to ${v}`), h.patch(l);
601
601
  console.log(`Patch to ${v}`);
602
602
  let A;
@@ -619,14 +619,14 @@ function on(e) {
619
619
  } catch (M) {
620
620
  if (A.status == 200 || !c)
621
621
  return;
622
- const E = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
623
- throw new Error(E);
622
+ const S = `${(A == null ? void 0 : A.status) ?? ""} ${(A == null ? void 0 : A.statusText) ?? ""} ${M.message}`;
623
+ throw new Error(S);
624
624
  }
625
625
  }
626
626
  async function r(l) {
627
627
  const c = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
628
628
  let g = l.finalUrl, w = l.headers;
629
- if (g == null && (g = S(l)), l.overrideHeaders !== !0 && (w = t(l)), h != null && h.isDemoing.value)
629
+ if (g == null && (g = E(l)), l.overrideHeaders !== !0 && (w = t(l)), h != null && h.isDemoing.value)
630
630
  return console.log(`DEMO: Delete ${g}`), h.deleteItem(l);
631
631
  console.log(`Delete ${g}`);
632
632
  let v;
@@ -645,50 +645,50 @@ function on(e) {
645
645
  throw new Error(`${v.status} ${v.statusText} ${C.message}`);
646
646
  }
647
647
  }
648
- return mr = {
648
+ return vr = {
649
649
  buildHeaders: t,
650
650
  buildQuery: u,
651
- buildUrl: S,
651
+ buildUrl: E,
652
652
  deleteItem: r,
653
- get: N,
653
+ get: P,
654
654
  getAll: x,
655
655
  patch: d,
656
656
  post: W
657
- }, mr;
657
+ }, vr;
658
658
  }
659
- var Dr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
660
- let me;
659
+ var _r = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
660
+ let ve;
661
661
  function pr() {
662
- const e = Dr.NODE_ENV;
663
- return me == null ? e : (me[e] ?? me.development).localDbName ?? e;
662
+ const e = _r.NODE_ENV;
663
+ return ve == null ? e : (ve[e] ?? ve.development).localDbName ?? e;
664
664
  }
665
- function Br() {
666
- const e = Dr.NODE_ENV;
667
- return me == null ? "" : (me[e] ?? me.development).auth ?? "";
665
+ function $r() {
666
+ const e = _r.NODE_ENV;
667
+ return ve == null ? "" : (ve[e] ?? ve.development).auth ?? "";
668
668
  }
669
669
  function hn(e) {
670
- const t = Dr.NODE_ENV;
671
- if (me == null)
670
+ const t = _r.NODE_ENV;
671
+ if (ve == null)
672
672
  return "";
673
- const u = me[t] ?? me.development;
673
+ const u = ve[t] ?? ve.development;
674
674
  return e == null ? u.data ?? "" : u.other[e] ?? u.data ?? "";
675
675
  }
676
676
  function la() {
677
- return me;
677
+ return ve;
678
678
  }
679
679
  function dn(e) {
680
- return me = e, me;
680
+ return ve = e, ve;
681
681
  }
682
- let ur = "Australia/Melbourne", vr;
682
+ let ir = "Australia/Melbourne", gr;
683
683
  const Fr = "auth-credentials-state";
684
684
  function ua() {
685
- return vr;
685
+ return gr;
686
686
  }
687
687
  function mn(e) {
688
688
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
689
689
  let u = Z(localStorage.getItem(Fr) ?? "");
690
- u.value.length == 0 && S();
691
- function S() {
690
+ u.value.length == 0 && E();
691
+ function E() {
692
692
  u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Fr, u.value);
693
693
  }
694
694
  const h = Vt("auth-credentials", {});
@@ -722,7 +722,7 @@ function mn(e) {
722
722
  }
723
723
  return !1;
724
724
  }
725
- function L(b) {
725
+ function N(b) {
726
726
  if (b == null)
727
727
  return !0;
728
728
  var D = e.getAuthItem != null ? e.getAuthItem(b) : null;
@@ -737,12 +737,12 @@ function mn(e) {
737
737
  return !0;
738
738
  if (D.permissions != null) {
739
739
  for (var I = 0; I < D.permissions.length; I++)
740
- if (!N(D.permissions[I]))
740
+ if (!P(D.permissions[I]))
741
741
  return !1;
742
742
  }
743
743
  return !0;
744
744
  }
745
- function N(b) {
745
+ function P(b) {
746
746
  const D = z(h);
747
747
  if (D.userPermissions != null)
748
748
  for (var s = 0; s < D.userPermissions.length; s++) {
@@ -755,7 +755,7 @@ function mn(e) {
755
755
  function x(b, D, s) {
756
756
  let I = !0;
757
757
  return z(h).isGlobalAdmin ? !0 : (D != null && D.length > 0 && D.forEach((Q) => {
758
- s == "edit" ? T(Q) || (I = !1) : N(Q) || (I = !1);
758
+ s == "edit" ? T(Q) || (I = !1) : P(Q) || (I = !1);
759
759
  }), b != null && b.length > 0 && (b.some((Q) => l(Q)) || (I = !1)), I);
760
760
  }
761
761
  function W(b, D = !1) {
@@ -770,7 +770,7 @@ function mn(e) {
770
770
  }
771
771
  function d(b) {
772
772
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, s) => {
773
- const I = _e(Br(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
773
+ const I = xe($r(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
774
774
  return D ? `${I}&redirect_path=${D}` : I;
775
775
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(b, u.value) ?? "" : "";
776
776
  }
@@ -813,14 +813,14 @@ function mn(e) {
813
813
  if (I != u.value)
814
814
  throw new Error("state does not match");
815
815
  let ee = "";
816
- e.getTokenUrl ?? (e.getTokenUrl = () => _e(Br(), "token")), ee = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
816
+ e.getTokenUrl ?? (e.getTokenUrl = () => xe($r(), "token")), ee = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
817
817
  const le = {};
818
818
  le.grant_type = j, le.code = s, le.redirect_uri = `${window.location.origin}/authentication`, le.client_id = Q;
819
- const F = await sn().post({
819
+ const k = await sn().post({
820
820
  additionalUrl: ee,
821
821
  data: le
822
822
  });
823
- C(F.access_token);
823
+ C(k.access_token);
824
824
  }), await e.getToken(b, D);
825
825
  }
826
826
  function C(b) {
@@ -832,13 +832,13 @@ function mn(e) {
832
832
  function A(b, D) {
833
833
  var I;
834
834
  const s = h.value;
835
- s.expiresOn = b.ExpiresOn, s.isGlobalAdmin = b.IsGlobalAdmin == "True", s.isLoggedIn = !0, s.permissions = b.Permissions, s.subscriptionCode = b.Subscription, s.timeZone ?? (s.timeZone = e.defaultTimeZone ?? ur), s.token = D, s.userID = b.UserLoginID, s.userPermissions = ((I = b.Permissions) == null ? void 0 : I.split(",")) ?? [];
835
+ s.expiresOn = b.ExpiresOn, s.isGlobalAdmin = b.IsGlobalAdmin == "True", s.isLoggedIn = !0, s.permissions = b.Permissions, s.subscriptionCode = b.Subscription, s.timeZone ?? (s.timeZone = e.defaultTimeZone ?? ir), s.token = D, s.userID = b.UserLoginID, s.userPermissions = ((I = b.Permissions) == null ? void 0 : I.split(",")) ?? [];
836
836
  }
837
837
  function M() {
838
838
  var b;
839
- h.value ?? (h.value = {}), (b = h.value).timeZone ?? (b.timeZone = e.defaultTimeZone ?? ur);
839
+ h.value ?? (h.value = {}), (b = h.value).timeZone ?? (b.timeZone = e.defaultTimeZone ?? ir);
840
840
  }
841
- function E() {
841
+ function S() {
842
842
  const b = z(h);
843
843
  return b.isLoggedIn && U() && (g(), window.location.href = d()), b.isLoggedIn;
844
844
  }
@@ -849,27 +849,27 @@ function mn(e) {
849
849
  const D = fe.fromFormat(b.expiresOn, t), s = fe.utc();
850
850
  return D <= s;
851
851
  }
852
- return M(), vr = {
852
+ return M(), gr = {
853
853
  authState: u,
854
854
  canEdit: y,
855
855
  canEditPermit: T,
856
- canView: L,
857
- canViewPermit: N,
856
+ canView: N,
857
+ canViewPermit: P,
858
858
  credentials: h,
859
859
  doShow: x,
860
860
  doShowByNav: W,
861
861
  getAuthorizeUrl: d,
862
862
  getToken: v,
863
- isLoggedIn: ce(() => h.value.isLoggedIn === !0),
863
+ isLoggedIn: ie(() => h.value.isLoggedIn === !0),
864
864
  login: w,
865
865
  logout: g,
866
- resetAuthState: S,
866
+ resetAuthState: E,
867
867
  setAuth: C,
868
- timeZone: ce(() => h.value.timeZone ?? e.defaultTimeZone ?? ur),
869
- tryLogin: E
870
- }, vr;
868
+ timeZone: ie(() => h.value.timeZone ?? e.defaultTimeZone ?? ir),
869
+ tryLogin: S
870
+ }, gr;
871
871
  }
872
- const ir = {
872
+ const cr = {
873
873
  primary: "#192233",
874
874
  secondary: "#192233",
875
875
  accent: "#2a76a2",
@@ -877,7 +877,7 @@ const ir = {
877
877
  info: "#2196F3",
878
878
  success: "#4CAF50",
879
879
  warning: "#FB8C00"
880
- }, cr = {
880
+ }, fr = {
881
881
  primary: "#1d5474",
882
882
  secondary: "#192233",
883
883
  accent: "#7fcbf7",
@@ -886,9 +886,9 @@ const ir = {
886
886
  success: "#4CAF50",
887
887
  warning: "#FB8C00"
888
888
  };
889
- let gr;
889
+ let yr;
890
890
  function ia() {
891
- return gr;
891
+ return yr;
892
892
  }
893
893
  function ca(e) {
894
894
  const t = localStorage.getItem("cosmetics");
@@ -908,12 +908,12 @@ function ca(e) {
908
908
  function vn(e) {
909
909
  const t = Z({});
910
910
  let u = e.vuetifyInstance;
911
- function S() {
911
+ function E() {
912
912
  const d = localStorage.getItem("cosmetics");
913
913
  d != null && d.length > 0 ? t.value = JSON.parse(d) : t.value = {
914
914
  theme: e.defaultTheme ?? "light",
915
- light: e.defaultLightTheme ?? ir,
916
- dark: e.defaultDarkTheme ?? cr,
915
+ light: e.defaultLightTheme ?? cr,
916
+ dark: e.defaultDarkTheme ?? fr,
917
917
  drawer: e.defaultDrawer ?? !0,
918
918
  drawerStick: e.defaultDrawerStick ?? !1
919
919
  };
@@ -922,13 +922,13 @@ function vn(e) {
922
922
  localStorage.setItem("cosmetics", JSON.stringify(t.value));
923
923
  }
924
924
  function y(d) {
925
- u != null && (u.global.name.value = t.value.theme, u.global.name.value == "dark" ? (d && (t.value.dark = { ...e.defaultDarkTheme ?? cr }), u.themes.value.dark = {
925
+ u != null && (u.global.name.value = t.value.theme, u.global.name.value == "dark" ? (d && (t.value.dark = { ...e.defaultDarkTheme ?? fr }), u.themes.value.dark = {
926
926
  ...u.themes.value.dark,
927
927
  colors: {
928
928
  ...u.themes.value.dark.colors,
929
929
  ...t.value.dark
930
930
  }
931
- }) : (d && (t.value.light = { ...e.defaultLightTheme ?? ir }), u.themes.value.light = {
931
+ }) : (d && (t.value.light = { ...e.defaultLightTheme ?? cr }), u.themes.value.light = {
932
932
  ...u.themes.value.light,
933
933
  colors: {
934
934
  ...u.themes.value.light.colors,
@@ -943,10 +943,10 @@ function vn(e) {
943
943
  l.colors.primary = d, c.colors.primary = d, (r = document.querySelector('meta[name="theme-color"]')) == null || r.setAttribute("content", d);
944
944
  }
945
945
  }
946
- function L() {
946
+ function N() {
947
947
  t.value.drawer = !t.value.drawer;
948
948
  }
949
- function N() {
949
+ function P() {
950
950
  t.value.drawerStick = !t.value.drawerStick;
951
951
  }
952
952
  function x() {
@@ -956,20 +956,20 @@ function vn(e) {
956
956
  var d;
957
957
  if (u != null) {
958
958
  const r = u.themes.value.dark, l = u.themes.value.light;
959
- r.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? cr).primary, l.colors.primary = (t.value.light ?? e.defaultLightTheme ?? ir).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
959
+ r.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? fr).primary, l.colors.primary = (t.value.light ?? e.defaultLightTheme ?? cr).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
960
960
  }
961
961
  }
962
- return S(), Be(t, () => {
962
+ return E(), $e(t, () => {
963
963
  h();
964
- }), gr = {
964
+ }), yr = {
965
965
  state: t,
966
966
  resetCosmetics: y,
967
967
  setTemporaryColor: T,
968
- toggleDrawer: L,
969
- toggleDrawerStick: N,
968
+ toggleDrawer: N,
969
+ toggleDrawerStick: P,
970
970
  toggleLightDark: x,
971
971
  undoTemporaryColor: W
972
- }, gr;
972
+ }, yr;
973
973
  }
974
974
  const fa = {
975
975
  canExportCSV: !1
@@ -978,33 +978,33 @@ function gn() {
978
978
  function e(t) {
979
979
  const {
980
980
  items: u,
981
- headers: S,
981
+ headers: E,
982
982
  fileName: h = "data.csv",
983
983
  format: y = "file"
984
984
  } = t;
985
985
  if (!Ne(u))
986
986
  return;
987
987
  let T = [];
988
- S != null ? T = S == null ? void 0 : S.filter((w) => (w.csv ?? w.csvText ?? w.csvFilter ?? w.csvArray) != null).map((w) => ({
988
+ E != null ? T = E == null ? void 0 : E.filter((w) => (w.csv ?? w.csvText ?? w.csvFilter ?? w.csvArray) != null).map((w) => ({
989
989
  header: w.title ?? w.value ?? "",
990
990
  itemText: w.itemText,
991
991
  value: w.value
992
992
  })) : T = Object.keys(u[0]).map((w) => ({ header: Ot(w) ?? "", value: w })), T = T.filter((w) => w.header.length > 0);
993
- var L = [];
993
+ var N = [];
994
994
  for (let w = 0; w < u.length; w++) {
995
995
  const v = u[w];
996
- var N = {}, x = [];
996
+ var P = {}, x = [];
997
997
  for (let C = 0; C < T.length; C++) {
998
998
  const A = T[C];
999
999
  var W = null;
1000
- typeof A.value == "function" ? W = A.value(v) : typeof A.value == "string" && (W = dr(v, A.value)), A.itemText != null ? N[A.header] = dr(W, A.itemText) : N[A.header] = W;
1000
+ typeof A.value == "function" ? W = A.value(v) : typeof A.value == "string" && (W = mr(v, A.value)), A.itemText != null ? P[A.header] = mr(W, A.itemText) : P[A.header] = W;
1001
1001
  }
1002
- L.push(N), Ne(x) && x.forEach((C) => {
1003
- L.push(C);
1002
+ N.push(P), Ne(x) && x.forEach((C) => {
1003
+ N.push(C);
1004
1004
  }), x = [];
1005
1005
  }
1006
1006
  var d = [];
1007
- if (d.push(T.map((w) => w.header).toString()), L.forEach((w) => {
1007
+ if (d.push(T.map((w) => w.header).toString()), N.forEach((w) => {
1008
1008
  let v = [];
1009
1009
  T.forEach(function(C) {
1010
1010
  var A = w[C.header];
@@ -1027,58 +1027,58 @@ function gn() {
1027
1027
  exportToCSV: e
1028
1028
  };
1029
1029
  }
1030
- let yr;
1030
+ let wr;
1031
1031
  function sa() {
1032
- return yr;
1032
+ return wr;
1033
1033
  }
1034
1034
  function yn(e) {
1035
1035
  const t = e.getUTC ?? fe.utc;
1036
1036
  function u() {
1037
1037
  return h().startOf("day").toUTC().toString() ?? "";
1038
1038
  }
1039
- function S() {
1039
+ function E() {
1040
1040
  return h().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
1041
1041
  }
1042
- function h(N, x) {
1043
- return N == null ? t().setZone(e.getTimeZone()) : x ? fe.fromFormat(N, x, { zone: e.getTimeZone() }) : fe.fromISO(N, { zone: e.getTimeZone() });
1042
+ function h(P, x) {
1043
+ return P == null ? t().setZone(e.getTimeZone()) : x ? fe.fromFormat(P, x, { zone: e.getTimeZone() }) : fe.fromISO(P, { zone: e.getTimeZone() });
1044
1044
  }
1045
- function y(N, x, W) {
1046
- if (N == null) {
1045
+ function y(P, x, W) {
1046
+ if (P == null) {
1047
1047
  const r = t().setZone(e.getTimeZone());
1048
1048
  return x ? r.toFormat(x) : r.toString();
1049
1049
  }
1050
- if (N == "Invalid DateTime")
1050
+ if (P == "Invalid DateTime")
1051
1051
  return "";
1052
- const d = W ? fe.fromFormat(N, W, { zone: e.getTimeZone() }) : fe.fromISO(N, { zone: e.getTimeZone() });
1052
+ const d = W ? fe.fromFormat(P, W, { zone: e.getTimeZone() }) : fe.fromISO(P, { zone: e.getTimeZone() });
1053
1053
  return x ? d.toFormat(x) : d == null ? void 0 : d.toString();
1054
1054
  }
1055
- function T(N, x) {
1056
- return N == null ? t() : x ? fe.fromFormat(N, x) : fe.fromISO(N);
1055
+ function T(P, x) {
1056
+ return P == null ? t() : x ? fe.fromFormat(P, x) : fe.fromISO(P);
1057
1057
  }
1058
- function L(N, x, W) {
1059
- if (N == null)
1058
+ function N(P, x, W) {
1059
+ if (P == null)
1060
1060
  return x ? t().toFormat(x) : t().toString();
1061
1061
  {
1062
- const d = W ? fe.fromFormat(N, W) : fe.fromISO(N);
1062
+ const d = W ? fe.fromFormat(P, W) : fe.fromISO(P);
1063
1063
  return x ? d.toFormat(x) : d.toString();
1064
1064
  }
1065
1065
  }
1066
- return yr = {
1066
+ return wr = {
1067
1067
  getToday: u,
1068
- getTomorrow: S,
1068
+ getTomorrow: E,
1069
1069
  tzDate: h,
1070
1070
  tzString: y,
1071
1071
  utcDate: T,
1072
- utcString: L
1073
- }, yr;
1072
+ utcString: N
1073
+ }, wr;
1074
1074
  }
1075
- let wr;
1075
+ let br;
1076
1076
  function oa() {
1077
- return wr;
1077
+ return br;
1078
1078
  }
1079
1079
  function wn(e) {
1080
1080
  const t = Z(!1), u = (e == null ? void 0 : e.apis) ?? [];
1081
- function S() {
1081
+ function E() {
1082
1082
  t.value = !0;
1083
1083
  }
1084
1084
  function h() {
@@ -1107,7 +1107,7 @@ function wn(e) {
1107
1107
  }, 200);
1108
1108
  });
1109
1109
  }
1110
- function L(d) {
1110
+ function N(d) {
1111
1111
  var g, w, v;
1112
1112
  if (u == null)
1113
1113
  throw new Error("no demo data available for this api");
@@ -1121,7 +1121,7 @@ function wn(e) {
1121
1121
  });
1122
1122
  });
1123
1123
  }
1124
- function N(d) {
1124
+ function P(d) {
1125
1125
  if (u == null)
1126
1126
  throw new Error("no demo data available for this api");
1127
1127
  const r = y(d);
@@ -1172,25 +1172,25 @@ function wn(e) {
1172
1172
  });
1173
1173
  });
1174
1174
  }
1175
- return wr = {
1175
+ return br = {
1176
1176
  endDemo: h,
1177
1177
  isDemoing: t,
1178
- startDemo: S,
1178
+ startDemo: E,
1179
1179
  data: u,
1180
1180
  deleteItem: T,
1181
- get: L,
1182
- getAll: N,
1181
+ get: N,
1182
+ getAll: P,
1183
1183
  post: x,
1184
1184
  patch: W
1185
- }, wr;
1185
+ }, br;
1186
1186
  }
1187
1187
  var bn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1188
1188
  function ha(e) {
1189
1189
  function t(u) {
1190
1190
  var h;
1191
- const S = u.matched.slice().reverse().find((y) => y.meta && y.meta.title);
1192
- if (S)
1193
- document.title = S.meta.title;
1191
+ const E = u.matched.slice().reverse().find((y) => y.meta && y.meta.title);
1192
+ if (E)
1193
+ document.title = E.meta.title;
1194
1194
  else {
1195
1195
  const y = bn.NODE_ENV;
1196
1196
  let T = "";
@@ -1203,24 +1203,24 @@ function ha(e) {
1203
1203
  }
1204
1204
  function da(e, t, u = {}) {
1205
1205
  const {
1206
- preventDefault: S = !1,
1206
+ preventDefault: E = !1,
1207
1207
  stopPropagation: h = !1,
1208
1208
  axis: y = "both"
1209
1209
  } = u, T = { capture: u.capture ?? !0 };
1210
- let L = { x: 0, y: 0 }, N = { x: 0, y: 0 }, x = { x: 0, y: 0 }, W = [], d = [], r = Z(!1);
1210
+ let N = { x: 0, y: 0 }, P = { x: 0, y: 0 }, x = { x: 0, y: 0 }, W = [], d = [], r = Z(!1);
1211
1211
  function l(M) {
1212
- z(S) && M.preventDefault(), z(h) && M.stopPropagation();
1212
+ z(E) && M.preventDefault(), z(h) && M.stopPropagation();
1213
1213
  }
1214
1214
  function c(M) {
1215
1215
  var s;
1216
- const E = z(e);
1217
- if (!E)
1216
+ const S = z(e);
1217
+ if (!S)
1218
1218
  return;
1219
- const U = E.$el, D = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
1220
- x = { x: D.clientX, y: D.clientY }, N = {
1219
+ const U = S.$el, D = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
1220
+ x = { x: D.clientX, y: D.clientY }, P = {
1221
1221
  x: U.offsetLeft,
1222
1222
  y: U.offsetTop
1223
- }, L = {
1223
+ }, N = {
1224
1224
  x: U.offsetLeft,
1225
1225
  y: U.offsetTop
1226
1226
  }, ((s = u.onStart) == null ? void 0 : s.call(u, x, M)) !== !1 && (d.push(se("mousemove", g)), d.push(se("touchmove", g)), d.push(se("mouseup", w)), d.push(se("touchend", w)), l(M));
@@ -1231,19 +1231,19 @@ function da(e, t, u = {}) {
1231
1231
  return;
1232
1232
  const b = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
1233
1233
  let D = b.clientX - x.x, s = b.clientY - x.y;
1234
- (y === "x" || y === "both") && (L.x = N.x + D), (y === "y" || y === "both") && (L.y = N.y + s), (I = u.onMove) == null || I.call(u, L, M), l(M), v(L);
1234
+ (y === "x" || y === "both") && (N.x = P.x + D), (y === "y" || y === "both") && (N.y = P.y + s), (I = u.onMove) == null || I.call(u, N, M), l(M), v(N);
1235
1235
  }
1236
1236
  function w(M) {
1237
- var E;
1237
+ var S;
1238
1238
  document.documentElement.style.cursor = "", d.forEach((U) => {
1239
1239
  U();
1240
- }), d.length = 0, (E = u.onEnd) == null || E.call(u, L, M), l(M);
1240
+ }), d.length = 0, (S = u.onEnd) == null || S.call(u, N, M), l(M);
1241
1241
  }
1242
1242
  function v(M) {
1243
- const E = z(e);
1244
- if (!E)
1243
+ const S = z(e);
1244
+ if (!S)
1245
1245
  return;
1246
- const U = E.$el;
1246
+ const U = S.$el;
1247
1247
  U.style.left = `${M.x}px`, U.style.top = `${M.y}px`;
1248
1248
  }
1249
1249
  function C() {
@@ -1252,8 +1252,8 @@ function da(e, t, u = {}) {
1252
1252
  const M = z(t);
1253
1253
  if (!M)
1254
1254
  return;
1255
- const E = M.$el;
1256
- E.style.cursor = "move", W.push(se(E, "mousedown", c, T)), W.push(se(E, "touchstart", c, T)), r.value = !0;
1255
+ const S = M.$el;
1256
+ S.style.cursor = "move", W.push(se(S, "mousedown", c, T)), W.push(se(S, "touchstart", c, T)), r.value = !0;
1257
1257
  }
1258
1258
  function A() {
1259
1259
  if (!z(r))
@@ -1261,8 +1261,8 @@ function da(e, t, u = {}) {
1261
1261
  const M = z(t);
1262
1262
  if (!M)
1263
1263
  return;
1264
- const E = M.$el;
1265
- E.style.cursor = "", W.forEach((U) => {
1264
+ const S = M.$el;
1265
+ S.style.cursor = "", W.forEach((U) => {
1266
1266
  U();
1267
1267
  }), W.length = 0, r.value = !1;
1268
1268
  }
@@ -1272,9 +1272,9 @@ function da(e, t, u = {}) {
1272
1272
  turnDraggableOn: C
1273
1273
  };
1274
1274
  }
1275
- let br;
1275
+ let Sr;
1276
1276
  function ma() {
1277
- return br;
1277
+ return Sr;
1278
1278
  }
1279
1279
  function Sn(e) {
1280
1280
  function t(s, I, j) {
@@ -1288,7 +1288,7 @@ function Sn(e) {
1288
1288
  var I = "";
1289
1289
  return s.companyAccount != null && (I = s.companyAccount.companyName + " | "), s.addressLineOne != null && (I = I + s.addressLineOne + " "), s.streetNumber != null && (I = I + s.streetNumber + " "), s.streetName != null && (I = I + s.streetName + ", "), s.suburb != null && (I = I + s.suburb + " "), s.state != null && (I = I + s.state + " "), s.postcode != null && (I = I + s.postcode), I;
1290
1290
  }
1291
- function S(s) {
1291
+ function E(s) {
1292
1292
  if (typeof s != "number")
1293
1293
  return s;
1294
1294
  var I = new Intl.NumberFormat("en-US", {
@@ -1307,10 +1307,10 @@ function Sn(e) {
1307
1307
  function T(s, I) {
1308
1308
  return t(s, "ccc", I);
1309
1309
  }
1310
- function L(s, I) {
1310
+ function N(s, I) {
1311
1311
  return t(s, "ccc dd LLL yyyy", I);
1312
1312
  }
1313
- function N(s, I) {
1313
+ function P(s, I) {
1314
1314
  return t(s, "ccc dd LLL @ hh:mm a", I);
1315
1315
  }
1316
1316
  function x(s) {
@@ -1361,7 +1361,7 @@ function Sn(e) {
1361
1361
  function M(s, I) {
1362
1362
  return t(s, "dd LLL yyyy hh:mm a", I);
1363
1363
  }
1364
- function E(s, I) {
1364
+ function S(s, I) {
1365
1365
  return t(s, "hh:mm a", I);
1366
1366
  }
1367
1367
  function U(s) {
@@ -1369,12 +1369,12 @@ function Sn(e) {
1369
1369
  }
1370
1370
  const b = {
1371
1371
  toCompanyNameAndLocationLine: u,
1372
- toCurrency: S,
1372
+ toCurrency: E,
1373
1373
  toDayDate: h,
1374
1374
  toDayMonth: y,
1375
1375
  toDayOfWeek: T,
1376
- toDayShortDate: L,
1377
- toDayShortDateAndTime: N,
1376
+ toDayShortDate: N,
1377
+ toDayShortDateAndTime: P,
1378
1378
  toDisplayNumber: x,
1379
1379
  toDisplayNumberOver: W,
1380
1380
  toDisplayNumberSigned: d,
@@ -1387,7 +1387,7 @@ function Sn(e) {
1387
1387
  toPrettyCSV: C,
1388
1388
  toShortDate: A,
1389
1389
  toShortDateAndTime: M,
1390
- toTime: E,
1390
+ toTime: S,
1391
1391
  toTimeOfDay: U
1392
1392
  };
1393
1393
  function D(s) {
@@ -1398,12 +1398,12 @@ function Sn(e) {
1398
1398
  }
1399
1399
  return (I) => I;
1400
1400
  }
1401
- return br = {
1401
+ return Sr = {
1402
1402
  findFilter: D,
1403
1403
  ...b
1404
- }, br;
1404
+ }, Sr;
1405
1405
  }
1406
- function Ve(e) {
1406
+ function qe(e) {
1407
1407
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1408
1408
  }
1409
1409
  var et = { exports: {} };
@@ -1417,51 +1417,51 @@ var et = { exports: {} };
1417
1417
  (function(u) {
1418
1418
  e.exports = u();
1419
1419
  })(function() {
1420
- return function u(S, h, y) {
1420
+ return function u(E, h, y) {
1421
1421
  function T(x, W) {
1422
1422
  if (!h[x]) {
1423
- if (!S[x]) {
1424
- var d = typeof Ve == "function" && Ve;
1423
+ if (!E[x]) {
1424
+ var d = typeof qe == "function" && qe;
1425
1425
  if (!W && d)
1426
1426
  return d(x, !0);
1427
- if (L)
1428
- return L(x, !0);
1427
+ if (N)
1428
+ return N(x, !0);
1429
1429
  var r = new Error("Cannot find module '" + x + "'");
1430
1430
  throw r.code = "MODULE_NOT_FOUND", r;
1431
1431
  }
1432
1432
  var l = h[x] = { exports: {} };
1433
- S[x][0].call(l.exports, function(c) {
1434
- var g = S[x][1][c];
1433
+ E[x][0].call(l.exports, function(c) {
1434
+ var g = E[x][1][c];
1435
1435
  return T(g || c);
1436
- }, l, l.exports, u, S, h, y);
1436
+ }, l, l.exports, u, E, h, y);
1437
1437
  }
1438
1438
  return h[x].exports;
1439
1439
  }
1440
- for (var L = typeof Ve == "function" && Ve, N = 0; N < y.length; N++)
1441
- T(y[N]);
1440
+ for (var N = typeof qe == "function" && qe, P = 0; P < y.length; P++)
1441
+ T(y[P]);
1442
1442
  return T;
1443
- }({ 1: [function(u, S, h) {
1443
+ }({ 1: [function(u, E, h) {
1444
1444
  (function(y) {
1445
- var T = y.MutationObserver || y.WebKitMutationObserver, L;
1445
+ var T = y.MutationObserver || y.WebKitMutationObserver, N;
1446
1446
  if (T) {
1447
- var N = 0, x = new T(c), W = y.document.createTextNode("");
1447
+ var P = 0, x = new T(c), W = y.document.createTextNode("");
1448
1448
  x.observe(W, {
1449
1449
  characterData: !0
1450
- }), L = function() {
1451
- W.data = N = ++N % 2;
1450
+ }), N = function() {
1451
+ W.data = P = ++P % 2;
1452
1452
  };
1453
1453
  } else if (!y.setImmediate && typeof y.MessageChannel < "u") {
1454
1454
  var d = new y.MessageChannel();
1455
- d.port1.onmessage = c, L = function() {
1455
+ d.port1.onmessage = c, N = function() {
1456
1456
  d.port2.postMessage(0);
1457
1457
  };
1458
1458
  } else
1459
- "document" in y && "onreadystatechange" in y.document.createElement("script") ? L = function() {
1459
+ "document" in y && "onreadystatechange" in y.document.createElement("script") ? N = function() {
1460
1460
  var w = y.document.createElement("script");
1461
1461
  w.onreadystatechange = function() {
1462
1462
  c(), w.onreadystatechange = null, w.parentNode.removeChild(w), w = null;
1463
1463
  }, y.document.documentElement.appendChild(w);
1464
- } : L = function() {
1464
+ } : N = function() {
1465
1465
  setTimeout(c, 0);
1466
1466
  };
1467
1467
  var r, l = [];
@@ -1474,91 +1474,91 @@ var et = { exports: {} };
1474
1474
  }
1475
1475
  r = !1;
1476
1476
  }
1477
- S.exports = g;
1477
+ E.exports = g;
1478
1478
  function g(w) {
1479
- l.push(w) === 1 && !r && L();
1479
+ l.push(w) === 1 && !r && N();
1480
1480
  }
1481
- }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
1482
- }, {}], 2: [function(u, S, h) {
1481
+ }).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
1482
+ }, {}], 2: [function(u, E, h) {
1483
1483
  var y = u(1);
1484
1484
  function T() {
1485
1485
  }
1486
- var L = {}, N = ["REJECTED"], x = ["FULFILLED"], W = ["PENDING"];
1487
- S.exports = d;
1488
- function d(E) {
1489
- if (typeof E != "function")
1486
+ var N = {}, P = ["REJECTED"], x = ["FULFILLED"], W = ["PENDING"];
1487
+ E.exports = d;
1488
+ function d(S) {
1489
+ if (typeof S != "function")
1490
1490
  throw new TypeError("resolver must be a function");
1491
- this.state = W, this.queue = [], this.outcome = void 0, E !== T && g(this, E);
1491
+ this.state = W, this.queue = [], this.outcome = void 0, S !== T && g(this, S);
1492
1492
  }
1493
- d.prototype.catch = function(E) {
1494
- return this.then(null, E);
1495
- }, d.prototype.then = function(E, U) {
1496
- if (typeof E != "function" && this.state === x || typeof U != "function" && this.state === N)
1493
+ d.prototype.catch = function(S) {
1494
+ return this.then(null, S);
1495
+ }, d.prototype.then = function(S, U) {
1496
+ if (typeof S != "function" && this.state === x || typeof U != "function" && this.state === P)
1497
1497
  return this;
1498
1498
  var b = new this.constructor(T);
1499
1499
  if (this.state !== W) {
1500
- var D = this.state === x ? E : U;
1500
+ var D = this.state === x ? S : U;
1501
1501
  l(b, D, this.outcome);
1502
1502
  } else
1503
- this.queue.push(new r(b, E, U));
1503
+ this.queue.push(new r(b, S, U));
1504
1504
  return b;
1505
1505
  };
1506
- function r(E, U, b) {
1507
- this.promise = E, typeof U == "function" && (this.onFulfilled = U, this.callFulfilled = this.otherCallFulfilled), typeof b == "function" && (this.onRejected = b, this.callRejected = this.otherCallRejected);
1508
- }
1509
- r.prototype.callFulfilled = function(E) {
1510
- L.resolve(this.promise, E);
1511
- }, r.prototype.otherCallFulfilled = function(E) {
1512
- l(this.promise, this.onFulfilled, E);
1513
- }, r.prototype.callRejected = function(E) {
1514
- L.reject(this.promise, E);
1515
- }, r.prototype.otherCallRejected = function(E) {
1516
- l(this.promise, this.onRejected, E);
1506
+ function r(S, U, b) {
1507
+ this.promise = S, typeof U == "function" && (this.onFulfilled = U, this.callFulfilled = this.otherCallFulfilled), typeof b == "function" && (this.onRejected = b, this.callRejected = this.otherCallRejected);
1508
+ }
1509
+ r.prototype.callFulfilled = function(S) {
1510
+ N.resolve(this.promise, S);
1511
+ }, r.prototype.otherCallFulfilled = function(S) {
1512
+ l(this.promise, this.onFulfilled, S);
1513
+ }, r.prototype.callRejected = function(S) {
1514
+ N.reject(this.promise, S);
1515
+ }, r.prototype.otherCallRejected = function(S) {
1516
+ l(this.promise, this.onRejected, S);
1517
1517
  };
1518
- function l(E, U, b) {
1518
+ function l(S, U, b) {
1519
1519
  y(function() {
1520
1520
  var D;
1521
1521
  try {
1522
1522
  D = U(b);
1523
1523
  } catch (s) {
1524
- return L.reject(E, s);
1524
+ return N.reject(S, s);
1525
1525
  }
1526
- D === E ? L.reject(E, new TypeError("Cannot resolve promise with itself")) : L.resolve(E, D);
1526
+ D === S ? N.reject(S, new TypeError("Cannot resolve promise with itself")) : N.resolve(S, D);
1527
1527
  });
1528
1528
  }
1529
- L.resolve = function(E, U) {
1529
+ N.resolve = function(S, U) {
1530
1530
  var b = w(c, U);
1531
1531
  if (b.status === "error")
1532
- return L.reject(E, b.value);
1532
+ return N.reject(S, b.value);
1533
1533
  var D = b.value;
1534
1534
  if (D)
1535
- g(E, D);
1535
+ g(S, D);
1536
1536
  else {
1537
- E.state = x, E.outcome = U;
1538
- for (var s = -1, I = E.queue.length; ++s < I; )
1539
- E.queue[s].callFulfilled(U);
1537
+ S.state = x, S.outcome = U;
1538
+ for (var s = -1, I = S.queue.length; ++s < I; )
1539
+ S.queue[s].callFulfilled(U);
1540
1540
  }
1541
- return E;
1542
- }, L.reject = function(E, U) {
1543
- E.state = N, E.outcome = U;
1544
- for (var b = -1, D = E.queue.length; ++b < D; )
1545
- E.queue[b].callRejected(U);
1546
- return E;
1541
+ return S;
1542
+ }, N.reject = function(S, U) {
1543
+ S.state = P, S.outcome = U;
1544
+ for (var b = -1, D = S.queue.length; ++b < D; )
1545
+ S.queue[b].callRejected(U);
1546
+ return S;
1547
1547
  };
1548
- function c(E) {
1549
- var U = E && E.then;
1550
- if (E && (typeof E == "object" || typeof E == "function") && typeof U == "function")
1548
+ function c(S) {
1549
+ var U = S && S.then;
1550
+ if (S && (typeof S == "object" || typeof S == "function") && typeof U == "function")
1551
1551
  return function() {
1552
- U.apply(E, arguments);
1552
+ U.apply(S, arguments);
1553
1553
  };
1554
1554
  }
1555
- function g(E, U) {
1555
+ function g(S, U) {
1556
1556
  var b = !1;
1557
1557
  function D(Q) {
1558
- b || (b = !0, L.reject(E, Q));
1558
+ b || (b = !0, N.reject(S, Q));
1559
1559
  }
1560
1560
  function s(Q) {
1561
- b || (b = !0, L.resolve(E, Q));
1561
+ b || (b = !0, N.resolve(S, Q));
1562
1562
  }
1563
1563
  function I() {
1564
1564
  U(s, D);
@@ -1566,68 +1566,68 @@ var et = { exports: {} };
1566
1566
  var j = w(I);
1567
1567
  j.status === "error" && D(j.value);
1568
1568
  }
1569
- function w(E, U) {
1569
+ function w(S, U) {
1570
1570
  var b = {};
1571
1571
  try {
1572
- b.value = E(U), b.status = "success";
1572
+ b.value = S(U), b.status = "success";
1573
1573
  } catch (D) {
1574
1574
  b.status = "error", b.value = D;
1575
1575
  }
1576
1576
  return b;
1577
1577
  }
1578
1578
  d.resolve = v;
1579
- function v(E) {
1580
- return E instanceof this ? E : L.resolve(new this(T), E);
1579
+ function v(S) {
1580
+ return S instanceof this ? S : N.resolve(new this(T), S);
1581
1581
  }
1582
1582
  d.reject = C;
1583
- function C(E) {
1583
+ function C(S) {
1584
1584
  var U = new this(T);
1585
- return L.reject(U, E);
1585
+ return N.reject(U, S);
1586
1586
  }
1587
1587
  d.all = A;
1588
- function A(E) {
1588
+ function A(S) {
1589
1589
  var U = this;
1590
- if (Object.prototype.toString.call(E) !== "[object Array]")
1590
+ if (Object.prototype.toString.call(S) !== "[object Array]")
1591
1591
  return this.reject(new TypeError("must be an array"));
1592
- var b = E.length, D = !1;
1592
+ var b = S.length, D = !1;
1593
1593
  if (!b)
1594
1594
  return this.resolve([]);
1595
1595
  for (var s = new Array(b), I = 0, j = -1, Q = new this(T); ++j < b; )
1596
- ee(E[j], j);
1596
+ ee(S[j], j);
1597
1597
  return Q;
1598
1598
  function ee(le, Se) {
1599
- U.resolve(le).then(F, function(V) {
1600
- D || (D = !0, L.reject(Q, V));
1599
+ U.resolve(le).then(k, function(V) {
1600
+ D || (D = !0, N.reject(Q, V));
1601
1601
  });
1602
- function F(V) {
1603
- s[Se] = V, ++I === b && !D && (D = !0, L.resolve(Q, s));
1602
+ function k(V) {
1603
+ s[Se] = V, ++I === b && !D && (D = !0, N.resolve(Q, s));
1604
1604
  }
1605
1605
  }
1606
1606
  }
1607
1607
  d.race = M;
1608
- function M(E) {
1608
+ function M(S) {
1609
1609
  var U = this;
1610
- if (Object.prototype.toString.call(E) !== "[object Array]")
1610
+ if (Object.prototype.toString.call(S) !== "[object Array]")
1611
1611
  return this.reject(new TypeError("must be an array"));
1612
- var b = E.length, D = !1;
1612
+ var b = S.length, D = !1;
1613
1613
  if (!b)
1614
1614
  return this.resolve([]);
1615
1615
  for (var s = -1, I = new this(T); ++s < b; )
1616
- j(E[s]);
1616
+ j(S[s]);
1617
1617
  return I;
1618
1618
  function j(Q) {
1619
1619
  U.resolve(Q).then(function(ee) {
1620
- D || (D = !0, L.resolve(I, ee));
1620
+ D || (D = !0, N.resolve(I, ee));
1621
1621
  }, function(ee) {
1622
- D || (D = !0, L.reject(I, ee));
1622
+ D || (D = !0, N.reject(I, ee));
1623
1623
  });
1624
1624
  }
1625
1625
  }
1626
- }, { 1: 1 }], 3: [function(u, S, h) {
1626
+ }, { 1: 1 }], 3: [function(u, E, h) {
1627
1627
  (function(y) {
1628
1628
  typeof y.Promise != "function" && (y.Promise = u(2));
1629
- }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
1630
- }, { 2: 2 }], 4: [function(u, S, h) {
1629
+ }).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
1630
+ }, { 2: 2 }], 4: [function(u, E, h) {
1631
1631
  var y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1632
1632
  return typeof n;
1633
1633
  } : function(n) {
@@ -1637,7 +1637,7 @@ var et = { exports: {} };
1637
1637
  if (!(n instanceof i))
1638
1638
  throw new TypeError("Cannot call a class as a function");
1639
1639
  }
1640
- function L() {
1640
+ function N() {
1641
1641
  try {
1642
1642
  if (typeof indexedDB < "u")
1643
1643
  return indexedDB;
@@ -1653,10 +1653,10 @@ var et = { exports: {} };
1653
1653
  return;
1654
1654
  }
1655
1655
  }
1656
- var N = L();
1656
+ var P = N();
1657
1657
  function x() {
1658
1658
  try {
1659
- if (!N || !N.open)
1659
+ if (!P || !P.open)
1660
1660
  return !1;
1661
1661
  var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), i = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
1662
1662
  return (!n || i) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
@@ -1699,7 +1699,7 @@ var et = { exports: {} };
1699
1699
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
1700
1700
  return arguments[arguments.length - 1];
1701
1701
  }
1702
- var w = "local-forage-detect-blob-support", v = void 0, C = {}, A = Object.prototype.toString, M = "readonly", E = "readwrite";
1702
+ var w = "local-forage-detect-blob-support", v = void 0, C = {}, A = Object.prototype.toString, M = "readonly", S = "readwrite";
1703
1703
  function U(n) {
1704
1704
  for (var i = n.length, a = new ArrayBuffer(i), o = new Uint8Array(a), m = 0; m < i; m++)
1705
1705
  o[m] = n.charCodeAt(m);
@@ -1707,7 +1707,7 @@ var et = { exports: {} };
1707
1707
  }
1708
1708
  function b(n) {
1709
1709
  return new d(function(i) {
1710
- var a = n.transaction(w, E), o = W([""]);
1710
+ var a = n.transaction(w, S), o = W([""]);
1711
1711
  a.objectStore(w).put(o, "key"), a.onabort = function(m) {
1712
1712
  m.preventDefault(), m.stopPropagation(), i(!1);
1713
1713
  }, a.oncomplete = function() {
@@ -1750,11 +1750,11 @@ var et = { exports: {} };
1750
1750
  return a(n.db);
1751
1751
  var m = [n.name];
1752
1752
  i && m.push(n.version);
1753
- var f = N.open.apply(N, m);
1753
+ var f = P.open.apply(P, m);
1754
1754
  i && (f.onupgradeneeded = function(_) {
1755
- var P = f.result;
1755
+ var L = f.result;
1756
1756
  try {
1757
- P.createObjectStore(n.storeName), _.oldVersion <= 1 && P.createObjectStore(w);
1757
+ L.createObjectStore(n.storeName), _.oldVersion <= 1 && L.createObjectStore(w);
1758
1758
  } catch (R) {
1759
1759
  if (R.name === "ConstraintError")
1760
1760
  console.warn('The database "' + n.name + '" has been upgraded from version ' + _.oldVersion + " to version " + _.newVersion + ', but the storage "' + n.storeName + '" already exists.');
@@ -1765,8 +1765,8 @@ var et = { exports: {} };
1765
1765
  _.preventDefault(), o(f.error);
1766
1766
  }, f.onsuccess = function() {
1767
1767
  var _ = f.result;
1768
- _.onversionchange = function(P) {
1769
- P.target.close();
1768
+ _.onversionchange = function(L) {
1769
+ L.target.close();
1770
1770
  }, a(_), I(n);
1771
1771
  };
1772
1772
  });
@@ -1790,7 +1790,7 @@ var et = { exports: {} };
1790
1790
  }
1791
1791
  return !1;
1792
1792
  }
1793
- function F(n) {
1793
+ function k(n) {
1794
1794
  return new d(function(i, a) {
1795
1795
  var o = new FileReader();
1796
1796
  o.onerror = a, o.onloadend = function(m) {
@@ -1877,66 +1877,66 @@ var et = { exports: {} };
1877
1877
  function _() {
1878
1878
  return d.resolve();
1879
1879
  }
1880
- for (var P = 0; P < m.forages.length; P++) {
1881
- var R = m.forages[P];
1880
+ for (var L = 0; L < m.forages.length; L++) {
1881
+ var R = m.forages[L];
1882
1882
  R !== i && f.push(R._initReady().catch(_));
1883
1883
  }
1884
- var $ = m.forages.slice(0);
1884
+ var B = m.forages.slice(0);
1885
1885
  return d.all(f).then(function() {
1886
1886
  return a.db = m.db, ee(a);
1887
- }).then(function(B) {
1888
- return a.db = B, Se(a, i._defaultConfig.version) ? le(a) : B;
1889
- }).then(function(B) {
1890
- a.db = m.db = B, i._dbInfo = a;
1891
- for (var G = 0; G < $.length; G++) {
1892
- var H = $[G];
1887
+ }).then(function($) {
1888
+ return a.db = $, Se(a, i._defaultConfig.version) ? le(a) : $;
1889
+ }).then(function($) {
1890
+ a.db = m.db = $, i._dbInfo = a;
1891
+ for (var G = 0; G < B.length; G++) {
1892
+ var H = B[G];
1893
1893
  H !== i && (H._dbInfo.db = a.db, H._dbInfo.version = a.version);
1894
1894
  }
1895
1895
  });
1896
1896
  }
1897
- function ve(n, i) {
1897
+ function ge(n, i) {
1898
1898
  var a = this;
1899
1899
  n = c(n);
1900
1900
  var o = new d(function(m, f) {
1901
1901
  a.ready().then(function() {
1902
- p(a._dbInfo, M, function(_, P) {
1902
+ p(a._dbInfo, M, function(_, L) {
1903
1903
  if (_)
1904
1904
  return f(_);
1905
1905
  try {
1906
- var R = P.objectStore(a._dbInfo.storeName), $ = R.get(n);
1907
- $.onsuccess = function() {
1908
- var B = $.result;
1909
- B === void 0 && (B = null), q(B) && (B = V(B)), m(B);
1910
- }, $.onerror = function() {
1911
- f($.error);
1906
+ var R = L.objectStore(a._dbInfo.storeName), B = R.get(n);
1907
+ B.onsuccess = function() {
1908
+ var $ = B.result;
1909
+ $ === void 0 && ($ = null), q($) && ($ = V($)), m($);
1910
+ }, B.onerror = function() {
1911
+ f(B.error);
1912
1912
  };
1913
- } catch (B) {
1914
- f(B);
1913
+ } catch ($) {
1914
+ f($);
1915
1915
  }
1916
1916
  });
1917
1917
  }).catch(f);
1918
1918
  });
1919
1919
  return r(o, i), o;
1920
1920
  }
1921
- function ze(n, i) {
1921
+ function Ze(n, i) {
1922
1922
  var a = this, o = new d(function(m, f) {
1923
1923
  a.ready().then(function() {
1924
- p(a._dbInfo, M, function(_, P) {
1924
+ p(a._dbInfo, M, function(_, L) {
1925
1925
  if (_)
1926
1926
  return f(_);
1927
1927
  try {
1928
- var R = P.objectStore(a._dbInfo.storeName), $ = R.openCursor(), B = 1;
1929
- $.onsuccess = function() {
1930
- var G = $.result;
1928
+ var R = L.objectStore(a._dbInfo.storeName), B = R.openCursor(), $ = 1;
1929
+ B.onsuccess = function() {
1930
+ var G = B.result;
1931
1931
  if (G) {
1932
1932
  var H = G.value;
1933
1933
  q(H) && (H = V(H));
1934
- var K = n(H, G.key, B++);
1934
+ var K = n(H, G.key, $++);
1935
1935
  K !== void 0 ? m(K) : G.continue();
1936
1936
  } else
1937
1937
  m();
1938
- }, $.onerror = function() {
1939
- f($.error);
1938
+ }, B.onerror = function() {
1939
+ f(B.error);
1940
1940
  };
1941
1941
  } catch (G) {
1942
1942
  f(G);
@@ -1946,26 +1946,26 @@ var et = { exports: {} };
1946
1946
  });
1947
1947
  return r(o, i), o;
1948
1948
  }
1949
- function xe(n, i, a) {
1949
+ function ze(n, i, a) {
1950
1950
  var o = this;
1951
1951
  n = c(n);
1952
1952
  var m = new d(function(f, _) {
1953
- var P;
1953
+ var L;
1954
1954
  o.ready().then(function() {
1955
- return P = o._dbInfo, A.call(i) === "[object Blob]" ? D(P.db).then(function(R) {
1956
- return R ? i : F(i);
1955
+ return L = o._dbInfo, A.call(i) === "[object Blob]" ? D(L.db).then(function(R) {
1956
+ return R ? i : k(i);
1957
1957
  }) : i;
1958
1958
  }).then(function(R) {
1959
- p(o._dbInfo, E, function($, B) {
1960
- if ($)
1961
- return _($);
1959
+ p(o._dbInfo, S, function(B, $) {
1960
+ if (B)
1961
+ return _(B);
1962
1962
  try {
1963
- var G = B.objectStore(o._dbInfo.storeName);
1963
+ var G = $.objectStore(o._dbInfo.storeName);
1964
1964
  R === null && (R = void 0);
1965
1965
  var H = G.put(R, n);
1966
- B.oncomplete = function() {
1966
+ $.oncomplete = function() {
1967
1967
  R === void 0 && (R = null), f(R);
1968
- }, B.onabort = B.onerror = function() {
1968
+ }, $.onabort = $.onerror = function() {
1969
1969
  var K = H.error ? H.error : H.transaction.error;
1970
1970
  _(K);
1971
1971
  };
@@ -1977,96 +1977,96 @@ var et = { exports: {} };
1977
1977
  });
1978
1978
  return r(m, a), m;
1979
1979
  }
1980
- function Je(n, i) {
1980
+ function _e(n, i) {
1981
1981
  var a = this;
1982
1982
  n = c(n);
1983
1983
  var o = new d(function(m, f) {
1984
1984
  a.ready().then(function() {
1985
- p(a._dbInfo, E, function(_, P) {
1985
+ p(a._dbInfo, S, function(_, L) {
1986
1986
  if (_)
1987
1987
  return f(_);
1988
1988
  try {
1989
- var R = P.objectStore(a._dbInfo.storeName), $ = R.delete(n);
1990
- P.oncomplete = function() {
1989
+ var R = L.objectStore(a._dbInfo.storeName), B = R.delete(n);
1990
+ L.oncomplete = function() {
1991
1991
  m();
1992
- }, P.onerror = function() {
1993
- f($.error);
1994
- }, P.onabort = function() {
1995
- var B = $.error ? $.error : $.transaction.error;
1996
- f(B);
1992
+ }, L.onerror = function() {
1993
+ f(B.error);
1994
+ }, L.onabort = function() {
1995
+ var $ = B.error ? B.error : B.transaction.error;
1996
+ f($);
1997
1997
  };
1998
- } catch (B) {
1999
- f(B);
1998
+ } catch ($) {
1999
+ f($);
2000
2000
  }
2001
2001
  });
2002
2002
  }).catch(f);
2003
2003
  });
2004
2004
  return r(o, i), o;
2005
2005
  }
2006
- function je(n) {
2006
+ function Je(n) {
2007
2007
  var i = this, a = new d(function(o, m) {
2008
2008
  i.ready().then(function() {
2009
- p(i._dbInfo, E, function(f, _) {
2009
+ p(i._dbInfo, S, function(f, _) {
2010
2010
  if (f)
2011
2011
  return m(f);
2012
2012
  try {
2013
- var P = _.objectStore(i._dbInfo.storeName), R = P.clear();
2013
+ var L = _.objectStore(i._dbInfo.storeName), R = L.clear();
2014
2014
  _.oncomplete = function() {
2015
2015
  o();
2016
2016
  }, _.onabort = _.onerror = function() {
2017
- var $ = R.error ? R.error : R.transaction.error;
2018
- m($);
2017
+ var B = R.error ? R.error : R.transaction.error;
2018
+ m(B);
2019
2019
  };
2020
- } catch ($) {
2021
- m($);
2020
+ } catch (B) {
2021
+ m(B);
2022
2022
  }
2023
2023
  });
2024
2024
  }).catch(m);
2025
2025
  });
2026
2026
  return r(a, n), a;
2027
2027
  }
2028
- function Ke(n) {
2028
+ function je(n) {
2029
2029
  var i = this, a = new d(function(o, m) {
2030
2030
  i.ready().then(function() {
2031
2031
  p(i._dbInfo, M, function(f, _) {
2032
2032
  if (f)
2033
2033
  return m(f);
2034
2034
  try {
2035
- var P = _.objectStore(i._dbInfo.storeName), R = P.count();
2035
+ var L = _.objectStore(i._dbInfo.storeName), R = L.count();
2036
2036
  R.onsuccess = function() {
2037
2037
  o(R.result);
2038
2038
  }, R.onerror = function() {
2039
2039
  m(R.error);
2040
2040
  };
2041
- } catch ($) {
2042
- m($);
2041
+ } catch (B) {
2042
+ m(B);
2043
2043
  }
2044
2044
  });
2045
2045
  }).catch(m);
2046
2046
  });
2047
2047
  return r(a, n), a;
2048
2048
  }
2049
- function Qe(n, i) {
2049
+ function Ke(n, i) {
2050
2050
  var a = this, o = new d(function(m, f) {
2051
2051
  if (n < 0) {
2052
2052
  m(null);
2053
2053
  return;
2054
2054
  }
2055
2055
  a.ready().then(function() {
2056
- p(a._dbInfo, M, function(_, P) {
2056
+ p(a._dbInfo, M, function(_, L) {
2057
2057
  if (_)
2058
2058
  return f(_);
2059
2059
  try {
2060
- var R = P.objectStore(a._dbInfo.storeName), $ = !1, B = R.openKeyCursor();
2061
- B.onsuccess = function() {
2062
- var G = B.result;
2060
+ var R = L.objectStore(a._dbInfo.storeName), B = !1, $ = R.openKeyCursor();
2061
+ $.onsuccess = function() {
2062
+ var G = $.result;
2063
2063
  if (!G) {
2064
2064
  m(null);
2065
2065
  return;
2066
2066
  }
2067
- n === 0 || $ ? m(G.key) : ($ = !0, G.advance(n));
2068
- }, B.onerror = function() {
2069
- f(B.error);
2067
+ n === 0 || B ? m(G.key) : (B = !0, G.advance(n));
2068
+ }, $.onerror = function() {
2069
+ f($.error);
2070
2070
  };
2071
2071
  } catch (G) {
2072
2072
  f(G);
@@ -2076,33 +2076,33 @@ var et = { exports: {} };
2076
2076
  });
2077
2077
  return r(o, i), o;
2078
2078
  }
2079
- function Xe(n) {
2079
+ function Qe(n) {
2080
2080
  var i = this, a = new d(function(o, m) {
2081
2081
  i.ready().then(function() {
2082
2082
  p(i._dbInfo, M, function(f, _) {
2083
2083
  if (f)
2084
2084
  return m(f);
2085
2085
  try {
2086
- var P = _.objectStore(i._dbInfo.storeName), R = P.openKeyCursor(), $ = [];
2086
+ var L = _.objectStore(i._dbInfo.storeName), R = L.openKeyCursor(), B = [];
2087
2087
  R.onsuccess = function() {
2088
- var B = R.result;
2089
- if (!B) {
2090
- o($);
2088
+ var $ = R.result;
2089
+ if (!$) {
2090
+ o(B);
2091
2091
  return;
2092
2092
  }
2093
- $.push(B.key), B.continue();
2093
+ B.push($.key), $.continue();
2094
2094
  }, R.onerror = function() {
2095
2095
  m(R.error);
2096
2096
  };
2097
- } catch (B) {
2098
- m(B);
2097
+ } catch ($) {
2098
+ m($);
2099
2099
  }
2100
2100
  });
2101
2101
  }).catch(m);
2102
2102
  });
2103
2103
  return r(a, n), a;
2104
2104
  }
2105
- function Oe(n, i) {
2105
+ function Xe(n, i) {
2106
2106
  i = g.apply(this, arguments);
2107
2107
  var a = this.config();
2108
2108
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
@@ -2110,71 +2110,71 @@ var et = { exports: {} };
2110
2110
  if (!n.name)
2111
2111
  m = d.reject("Invalid arguments");
2112
2112
  else {
2113
- var f = n.name === a.name && o._dbInfo.db, _ = f ? d.resolve(o._dbInfo.db) : ee(n).then(function(P) {
2114
- var R = C[n.name], $ = R.forages;
2115
- R.db = P;
2116
- for (var B = 0; B < $.length; B++)
2117
- $[B]._dbInfo.db = P;
2118
- return P;
2113
+ var f = n.name === a.name && o._dbInfo.db, _ = f ? d.resolve(o._dbInfo.db) : ee(n).then(function(L) {
2114
+ var R = C[n.name], B = R.forages;
2115
+ R.db = L;
2116
+ for (var $ = 0; $ < B.length; $++)
2117
+ B[$]._dbInfo.db = L;
2118
+ return L;
2119
2119
  });
2120
- n.storeName ? m = _.then(function(P) {
2121
- if (P.objectStoreNames.contains(n.storeName)) {
2122
- var R = P.version + 1;
2120
+ n.storeName ? m = _.then(function(L) {
2121
+ if (L.objectStoreNames.contains(n.storeName)) {
2122
+ var R = L.version + 1;
2123
2123
  s(n);
2124
- var $ = C[n.name], B = $.forages;
2125
- P.close();
2126
- for (var G = 0; G < B.length; G++) {
2127
- var H = B[G];
2124
+ var B = C[n.name], $ = B.forages;
2125
+ L.close();
2126
+ for (var G = 0; G < $.length; G++) {
2127
+ var H = $[G];
2128
2128
  H._dbInfo.db = null, H._dbInfo.version = R;
2129
2129
  }
2130
2130
  var K = new d(function(X, ne) {
2131
- var te = N.open(n.name, R);
2132
- te.onerror = function(de) {
2133
- var $e = te.result;
2134
- $e.close(), ne(de);
2135
- }, te.onupgradeneeded = function() {
2136
- var de = te.result;
2137
- de.deleteObjectStore(n.storeName);
2138
- }, te.onsuccess = function() {
2139
- var de = te.result;
2140
- de.close(), X(de);
2131
+ var re = P.open(n.name, R);
2132
+ re.onerror = function(me) {
2133
+ var Be = re.result;
2134
+ Be.close(), ne(me);
2135
+ }, re.onupgradeneeded = function() {
2136
+ var me = re.result;
2137
+ me.deleteObjectStore(n.storeName);
2138
+ }, re.onsuccess = function() {
2139
+ var me = re.result;
2140
+ me.close(), X(me);
2141
2141
  };
2142
2142
  });
2143
2143
  return K.then(function(X) {
2144
- $.db = X;
2145
- for (var ne = 0; ne < B.length; ne++) {
2146
- var te = B[ne];
2147
- te._dbInfo.db = X, I(te._dbInfo);
2144
+ B.db = X;
2145
+ for (var ne = 0; ne < $.length; ne++) {
2146
+ var re = $[ne];
2147
+ re._dbInfo.db = X, I(re._dbInfo);
2148
2148
  }
2149
2149
  }).catch(function(X) {
2150
2150
  throw (j(n, X) || d.resolve()).catch(function() {
2151
2151
  }), X;
2152
2152
  });
2153
2153
  }
2154
- }) : m = _.then(function(P) {
2154
+ }) : m = _.then(function(L) {
2155
2155
  s(n);
2156
- var R = C[n.name], $ = R.forages;
2157
- P.close();
2158
- for (var B = 0; B < $.length; B++) {
2159
- var G = $[B];
2156
+ var R = C[n.name], B = R.forages;
2157
+ L.close();
2158
+ for (var $ = 0; $ < B.length; $++) {
2159
+ var G = B[$];
2160
2160
  G._dbInfo.db = null;
2161
2161
  }
2162
2162
  var H = new d(function(K, X) {
2163
- var ne = N.deleteDatabase(n.name);
2163
+ var ne = P.deleteDatabase(n.name);
2164
2164
  ne.onerror = function() {
2165
- var te = ne.result;
2166
- te && te.close(), X(ne.error);
2165
+ var re = ne.result;
2166
+ re && re.close(), X(ne.error);
2167
2167
  }, ne.onblocked = function() {
2168
2168
  console.warn('dropInstance blocked for database "' + n.name + '" until all open connections are closed');
2169
2169
  }, ne.onsuccess = function() {
2170
- var te = ne.result;
2171
- te && te.close(), K(te);
2170
+ var re = ne.result;
2171
+ re && re.close(), K(re);
2172
2172
  };
2173
2173
  });
2174
2174
  return H.then(function(K) {
2175
2175
  R.db = K;
2176
- for (var X = 0; X < $.length; X++) {
2177
- var ne = $[X];
2176
+ for (var X = 0; X < B.length; X++) {
2177
+ var ne = B[X];
2178
2178
  I(ne._dbInfo);
2179
2179
  }
2180
2180
  }).catch(function(K) {
@@ -2185,48 +2185,48 @@ var et = { exports: {} };
2185
2185
  }
2186
2186
  return r(m, i), m;
2187
2187
  }
2188
- var pe = {
2188
+ var Oe = {
2189
2189
  _driver: "asyncStorage",
2190
2190
  _initStorage: he,
2191
2191
  _support: x(),
2192
- iterate: ze,
2193
- getItem: ve,
2194
- setItem: xe,
2195
- removeItem: Je,
2196
- clear: je,
2197
- length: Ke,
2198
- key: Qe,
2199
- keys: Xe,
2200
- dropInstance: Oe
2192
+ iterate: Ze,
2193
+ getItem: ge,
2194
+ setItem: ze,
2195
+ removeItem: _e,
2196
+ clear: Je,
2197
+ length: je,
2198
+ key: Ke,
2199
+ keys: Qe,
2200
+ dropInstance: Xe
2201
2201
  };
2202
- function Re() {
2202
+ function pe() {
2203
2203
  return typeof openDatabase == "function";
2204
2204
  }
2205
- var ye = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", De = "~~local_forage_type~", We = /^~~local_forage_type~([^~]+)~/, Te = "__lfsc__:", Ce = Te.length, k = "arbf", re = "blob", J = "si08", O = "ui08", ge = "uic8", Ee = "si16", Me = "si32", we = "ur16", ie = "ui32", Ae = "fl32", _r = "fl64", xr = Ce + k.length, Tr = Object.prototype.toString;
2205
+ var de = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", er = "~~local_forage_type~", Ae = /^~~local_forage_type~([^~]+)~/, Te = "__lfsc__:", Re = Te.length, Ce = "arbf", F = "blob", te = "si08", J = "ui08", O = "uic8", ye = "si16", Ee = "si32", Me = "ur16", we = "ui32", ce = "fl32", Ie = "fl64", xr = Re + Ce.length, Tr = Object.prototype.toString;
2206
2206
  function Cr(n) {
2207
- var i = n.length * 0.75, a = n.length, o, m = 0, f, _, P, R;
2207
+ var i = n.length * 0.75, a = n.length, o, m = 0, f, _, L, R;
2208
2208
  n[n.length - 1] === "=" && (i--, n[n.length - 2] === "=" && i--);
2209
- var $ = new ArrayBuffer(i), B = new Uint8Array($);
2209
+ var B = new ArrayBuffer(i), $ = new Uint8Array(B);
2210
2210
  for (o = 0; o < a; o += 4)
2211
- f = ye.indexOf(n[o]), _ = ye.indexOf(n[o + 1]), P = ye.indexOf(n[o + 2]), R = ye.indexOf(n[o + 3]), B[m++] = f << 2 | _ >> 4, B[m++] = (_ & 15) << 4 | P >> 2, B[m++] = (P & 3) << 6 | R & 63;
2212
- return $;
2211
+ f = de.indexOf(n[o]), _ = de.indexOf(n[o + 1]), L = de.indexOf(n[o + 2]), R = de.indexOf(n[o + 3]), $[m++] = f << 2 | _ >> 4, $[m++] = (_ & 15) << 4 | L >> 2, $[m++] = (L & 3) << 6 | R & 63;
2212
+ return B;
2213
2213
  }
2214
- function er(n) {
2214
+ function rr(n) {
2215
2215
  var i = new Uint8Array(n), a = "", o;
2216
2216
  for (o = 0; o < i.length; o += 3)
2217
- a += ye[i[o] >> 2], a += ye[(i[o] & 3) << 4 | i[o + 1] >> 4], a += ye[(i[o + 1] & 15) << 2 | i[o + 2] >> 6], a += ye[i[o + 2] & 63];
2217
+ a += de[i[o] >> 2], a += de[(i[o] & 3) << 4 | i[o + 1] >> 4], a += de[(i[o + 1] & 15) << 2 | i[o + 2] >> 6], a += de[i[o + 2] & 63];
2218
2218
  return i.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : i.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
2219
2219
  }
2220
2220
  function tt(n, i) {
2221
2221
  var a = "";
2222
2222
  if (n && (a = Tr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Tr.call(n.buffer) === "[object ArrayBuffer]")) {
2223
2223
  var o, m = Te;
2224
- n instanceof ArrayBuffer ? (o = n, m += k) : (o = n.buffer, a === "[object Int8Array]" ? m += J : a === "[object Uint8Array]" ? m += O : a === "[object Uint8ClampedArray]" ? m += ge : a === "[object Int16Array]" ? m += Ee : a === "[object Uint16Array]" ? m += we : a === "[object Int32Array]" ? m += Me : a === "[object Uint32Array]" ? m += ie : a === "[object Float32Array]" ? m += Ae : a === "[object Float64Array]" ? m += _r : i(new Error("Failed to get type for BinaryArray"))), i(m + er(o));
2224
+ n instanceof ArrayBuffer ? (o = n, m += Ce) : (o = n.buffer, a === "[object Int8Array]" ? m += te : a === "[object Uint8Array]" ? m += J : a === "[object Uint8ClampedArray]" ? m += O : a === "[object Int16Array]" ? m += ye : a === "[object Uint16Array]" ? m += Me : a === "[object Int32Array]" ? m += Ee : a === "[object Uint32Array]" ? m += we : a === "[object Float32Array]" ? m += ce : a === "[object Float64Array]" ? m += Ie : i(new Error("Failed to get type for BinaryArray"))), i(m + rr(o));
2225
2225
  } else if (a === "[object Blob]") {
2226
2226
  var f = new FileReader();
2227
2227
  f.onload = function() {
2228
- var _ = De + n.type + "~" + er(this.result);
2229
- i(Te + re + _);
2228
+ var _ = er + n.type + "~" + rr(this.result);
2229
+ i(Te + F + _);
2230
2230
  }, f.readAsArrayBuffer(n);
2231
2231
  } else
2232
2232
  try {
@@ -2236,46 +2236,46 @@ var et = { exports: {} };
2236
2236
  }
2237
2237
  }
2238
2238
  function nt(n) {
2239
- if (n.substring(0, Ce) !== Te)
2239
+ if (n.substring(0, Re) !== Te)
2240
2240
  return JSON.parse(n);
2241
- var i = n.substring(xr), a = n.substring(Ce, xr), o;
2242
- if (a === re && We.test(i)) {
2243
- var m = i.match(We);
2241
+ var i = n.substring(xr), a = n.substring(Re, xr), o;
2242
+ if (a === F && Ae.test(i)) {
2243
+ var m = i.match(Ae);
2244
2244
  o = m[1], i = i.substring(m[0].length);
2245
2245
  }
2246
2246
  var f = Cr(i);
2247
2247
  switch (a) {
2248
- case k:
2248
+ case Ce:
2249
2249
  return f;
2250
- case re:
2250
+ case F:
2251
2251
  return W([f], { type: o });
2252
- case J:
2252
+ case te:
2253
2253
  return new Int8Array(f);
2254
- case O:
2254
+ case J:
2255
2255
  return new Uint8Array(f);
2256
- case ge:
2256
+ case O:
2257
2257
  return new Uint8ClampedArray(f);
2258
- case Ee:
2258
+ case ye:
2259
2259
  return new Int16Array(f);
2260
- case we:
2261
- return new Uint16Array(f);
2262
2260
  case Me:
2261
+ return new Uint16Array(f);
2262
+ case Ee:
2263
2263
  return new Int32Array(f);
2264
- case ie:
2264
+ case we:
2265
2265
  return new Uint32Array(f);
2266
- case Ae:
2266
+ case ce:
2267
2267
  return new Float32Array(f);
2268
- case _r:
2268
+ case Ie:
2269
2269
  return new Float64Array(f);
2270
2270
  default:
2271
2271
  throw new Error("Unkown type: " + a);
2272
2272
  }
2273
2273
  }
2274
- var rr = {
2274
+ var tr = {
2275
2275
  serialize: tt,
2276
2276
  deserialize: nt,
2277
2277
  stringToBuffer: Cr,
2278
- bufferToString: er
2278
+ bufferToString: rr
2279
2279
  };
2280
2280
  function Mr(n, i, a, o) {
2281
2281
  n.executeSql("CREATE TABLE IF NOT EXISTS " + i.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, o);
@@ -2290,26 +2290,26 @@ var et = { exports: {} };
2290
2290
  var m = new d(function(f, _) {
2291
2291
  try {
2292
2292
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
2293
- } catch (P) {
2294
- return _(P);
2293
+ } catch (L) {
2294
+ return _(L);
2295
2295
  }
2296
- a.db.transaction(function(P) {
2297
- Mr(P, a, function() {
2296
+ a.db.transaction(function(L) {
2297
+ Mr(L, a, function() {
2298
2298
  i._dbInfo = a, f();
2299
- }, function(R, $) {
2300
- _($);
2299
+ }, function(R, B) {
2300
+ _(B);
2301
2301
  });
2302
2302
  }, _);
2303
2303
  });
2304
- return a.serializer = rr, m;
2304
+ return a.serializer = tr, m;
2305
2305
  }
2306
- function Ie(n, i, a, o, m, f) {
2307
- n.executeSql(a, o, m, function(_, P) {
2308
- P.code === P.SYNTAX_ERR ? _.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function(R, $) {
2309
- $.rows.length ? f(R, P) : Mr(R, i, function() {
2306
+ function De(n, i, a, o, m, f) {
2307
+ n.executeSql(a, o, m, function(_, L) {
2308
+ L.code === L.SYNTAX_ERR ? _.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function(R, B) {
2309
+ B.rows.length ? f(R, L) : Mr(R, i, function() {
2310
2310
  R.executeSql(a, o, m, f);
2311
2311
  }, f);
2312
- }, f) : f(_, P);
2312
+ }, f) : f(_, L);
2313
2313
  }, f);
2314
2314
  }
2315
2315
  function lt(n, i) {
@@ -2318,12 +2318,12 @@ var et = { exports: {} };
2318
2318
  var o = new d(function(m, f) {
2319
2319
  a.ready().then(function() {
2320
2320
  var _ = a._dbInfo;
2321
- _.db.transaction(function(P) {
2322
- Ie(P, _, "SELECT * FROM " + _.storeName + " WHERE key = ? LIMIT 1", [n], function(R, $) {
2323
- var B = $.rows.length ? $.rows.item(0).value : null;
2324
- B && (B = _.serializer.deserialize(B)), m(B);
2325
- }, function(R, $) {
2326
- f($);
2321
+ _.db.transaction(function(L) {
2322
+ De(L, _, "SELECT * FROM " + _.storeName + " WHERE key = ? LIMIT 1", [n], function(R, B) {
2323
+ var $ = B.rows.length ? B.rows.item(0).value : null;
2324
+ $ && ($ = _.serializer.deserialize($)), m($);
2325
+ }, function(R, B) {
2326
+ f(B);
2327
2327
  });
2328
2328
  });
2329
2329
  }).catch(f);
@@ -2334,18 +2334,18 @@ var et = { exports: {} };
2334
2334
  var a = this, o = new d(function(m, f) {
2335
2335
  a.ready().then(function() {
2336
2336
  var _ = a._dbInfo;
2337
- _.db.transaction(function(P) {
2338
- Ie(P, _, "SELECT * FROM " + _.storeName, [], function(R, $) {
2339
- for (var B = $.rows, G = B.length, H = 0; H < G; H++) {
2340
- var K = B.item(H), X = K.value;
2337
+ _.db.transaction(function(L) {
2338
+ De(L, _, "SELECT * FROM " + _.storeName, [], function(R, B) {
2339
+ for (var $ = B.rows, G = $.length, H = 0; H < G; H++) {
2340
+ var K = $.item(H), X = K.value;
2341
2341
  if (X && (X = _.serializer.deserialize(X)), X = n(X, K.key, H + 1), X !== void 0) {
2342
2342
  m(X);
2343
2343
  return;
2344
2344
  }
2345
2345
  }
2346
2346
  m();
2347
- }, function(R, $) {
2348
- f($);
2347
+ }, function(R, B) {
2348
+ f(B);
2349
2349
  });
2350
2350
  });
2351
2351
  }).catch(f);
@@ -2355,16 +2355,16 @@ var et = { exports: {} };
2355
2355
  function Pr(n, i, a, o) {
2356
2356
  var m = this;
2357
2357
  n = c(n);
2358
- var f = new d(function(_, P) {
2358
+ var f = new d(function(_, L) {
2359
2359
  m.ready().then(function() {
2360
2360
  i === void 0 && (i = null);
2361
- var R = i, $ = m._dbInfo;
2362
- $.serializer.serialize(i, function(B, G) {
2363
- G ? P(G) : $.db.transaction(function(H) {
2364
- Ie(H, $, "INSERT OR REPLACE INTO " + $.storeName + " (key, value) VALUES (?, ?)", [n, B], function() {
2361
+ var R = i, B = m._dbInfo;
2362
+ B.serializer.serialize(i, function($, G) {
2363
+ G ? L(G) : B.db.transaction(function(H) {
2364
+ De(H, B, "INSERT OR REPLACE INTO " + B.storeName + " (key, value) VALUES (?, ?)", [n, $], function() {
2365
2365
  _(R);
2366
2366
  }, function(K, X) {
2367
- P(X);
2367
+ L(X);
2368
2368
  });
2369
2369
  }, function(H) {
2370
2370
  if (H.code === H.QUOTA_ERR) {
@@ -2372,11 +2372,11 @@ var et = { exports: {} };
2372
2372
  _(Pr.apply(m, [n, R, a, o - 1]));
2373
2373
  return;
2374
2374
  }
2375
- P(H);
2375
+ L(H);
2376
2376
  }
2377
2377
  });
2378
2378
  });
2379
- }).catch(P);
2379
+ }).catch(L);
2380
2380
  });
2381
2381
  return r(f, a), f;
2382
2382
  }
@@ -2389,11 +2389,11 @@ var et = { exports: {} };
2389
2389
  var o = new d(function(m, f) {
2390
2390
  a.ready().then(function() {
2391
2391
  var _ = a._dbInfo;
2392
- _.db.transaction(function(P) {
2393
- Ie(P, _, "DELETE FROM " + _.storeName + " WHERE key = ?", [n], function() {
2392
+ _.db.transaction(function(L) {
2393
+ De(L, _, "DELETE FROM " + _.storeName + " WHERE key = ?", [n], function() {
2394
2394
  m();
2395
- }, function(R, $) {
2396
- f($);
2395
+ }, function(R, B) {
2396
+ f(B);
2397
2397
  });
2398
2398
  });
2399
2399
  }).catch(f);
@@ -2405,9 +2405,9 @@ var et = { exports: {} };
2405
2405
  i.ready().then(function() {
2406
2406
  var f = i._dbInfo;
2407
2407
  f.db.transaction(function(_) {
2408
- Ie(_, f, "DELETE FROM " + f.storeName, [], function() {
2408
+ De(_, f, "DELETE FROM " + f.storeName, [], function() {
2409
2409
  o();
2410
- }, function(P, R) {
2410
+ }, function(L, R) {
2411
2411
  m(R);
2412
2412
  });
2413
2413
  });
@@ -2420,10 +2420,10 @@ var et = { exports: {} };
2420
2420
  i.ready().then(function() {
2421
2421
  var f = i._dbInfo;
2422
2422
  f.db.transaction(function(_) {
2423
- Ie(_, f, "SELECT COUNT(key) as c FROM " + f.storeName, [], function(P, R) {
2424
- var $ = R.rows.item(0).c;
2425
- o($);
2426
- }, function(P, R) {
2423
+ De(_, f, "SELECT COUNT(key) as c FROM " + f.storeName, [], function(L, R) {
2424
+ var B = R.rows.item(0).c;
2425
+ o(B);
2426
+ }, function(L, R) {
2427
2427
  m(R);
2428
2428
  });
2429
2429
  });
@@ -2435,12 +2435,12 @@ var et = { exports: {} };
2435
2435
  var a = this, o = new d(function(m, f) {
2436
2436
  a.ready().then(function() {
2437
2437
  var _ = a._dbInfo;
2438
- _.db.transaction(function(P) {
2439
- Ie(P, _, "SELECT key FROM " + _.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(R, $) {
2440
- var B = $.rows.length ? $.rows.item(0).key : null;
2441
- m(B);
2442
- }, function(R, $) {
2443
- f($);
2438
+ _.db.transaction(function(L) {
2439
+ De(L, _, "SELECT key FROM " + _.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(R, B) {
2440
+ var $ = B.rows.length ? B.rows.item(0).key : null;
2441
+ m($);
2442
+ }, function(R, B) {
2443
+ f(B);
2444
2444
  });
2445
2445
  });
2446
2446
  }).catch(f);
@@ -2452,11 +2452,11 @@ var et = { exports: {} };
2452
2452
  i.ready().then(function() {
2453
2453
  var f = i._dbInfo;
2454
2454
  f.db.transaction(function(_) {
2455
- Ie(_, f, "SELECT key FROM " + f.storeName, [], function(P, R) {
2456
- for (var $ = [], B = 0; B < R.rows.length; B++)
2457
- $.push(R.rows.item(B).key);
2458
- o($);
2459
- }, function(P, R) {
2455
+ De(_, f, "SELECT key FROM " + f.storeName, [], function(L, R) {
2456
+ for (var B = [], $ = 0; $ < R.rows.length; $++)
2457
+ B.push(R.rows.item($).key);
2458
+ o(B);
2459
+ }, function(L, R) {
2460
2460
  m(R);
2461
2461
  });
2462
2462
  });
@@ -2468,8 +2468,8 @@ var et = { exports: {} };
2468
2468
  return new d(function(i, a) {
2469
2469
  n.transaction(function(o) {
2470
2470
  o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(m, f) {
2471
- for (var _ = [], P = 0; P < f.rows.length; P++)
2472
- _.push(f.rows.item(P).name);
2471
+ for (var _ = [], L = 0; L < f.rows.length; L++)
2472
+ _.push(f.rows.item(L).name);
2473
2473
  i({
2474
2474
  db: n,
2475
2475
  storeNames: _
@@ -2494,26 +2494,26 @@ var et = { exports: {} };
2494
2494
  storeNames: [n.storeName]
2495
2495
  }) : f(dt(_));
2496
2496
  }).then(function(f) {
2497
- return new d(function(_, P) {
2497
+ return new d(function(_, L) {
2498
2498
  f.db.transaction(function(R) {
2499
- function $(K) {
2499
+ function B(K) {
2500
2500
  return new d(function(X, ne) {
2501
2501
  R.executeSql("DROP TABLE IF EXISTS " + K, [], function() {
2502
2502
  X();
2503
- }, function(te, de) {
2504
- ne(de);
2503
+ }, function(re, me) {
2504
+ ne(me);
2505
2505
  });
2506
2506
  });
2507
2507
  }
2508
- for (var B = [], G = 0, H = f.storeNames.length; G < H; G++)
2509
- B.push($(f.storeNames[G]));
2510
- d.all(B).then(function() {
2508
+ for (var $ = [], G = 0, H = f.storeNames.length; G < H; G++)
2509
+ $.push(B(f.storeNames[G]));
2510
+ d.all($).then(function() {
2511
2511
  _();
2512
2512
  }).catch(function(K) {
2513
- P(K);
2513
+ L(K);
2514
2514
  });
2515
2515
  }, function(R) {
2516
- P(R);
2516
+ L(R);
2517
2517
  });
2518
2518
  });
2519
2519
  }) : m = d.reject("Invalid arguments"), r(m, i), m;
@@ -2521,7 +2521,7 @@ var et = { exports: {} };
2521
2521
  var vt = {
2522
2522
  _driver: "webSQLStorage",
2523
2523
  _initStorage: at,
2524
- _support: Re(),
2524
+ _support: pe(),
2525
2525
  iterate: ut,
2526
2526
  getItem: lt,
2527
2527
  setItem: it,
@@ -2560,7 +2560,7 @@ var et = { exports: {} };
2560
2560
  if (n)
2561
2561
  for (var o in n)
2562
2562
  a[o] = n[o];
2563
- return a.keyPrefix = Lr(n, i._defaultConfig), wt() ? (i._dbInfo = a, a.serializer = rr, d.resolve()) : d.reject();
2563
+ return a.keyPrefix = Lr(n, i._defaultConfig), wt() ? (i._dbInfo = a, a.serializer = tr, d.resolve()) : d.reject();
2564
2564
  }
2565
2565
  function St(n) {
2566
2566
  var i = this, a = i.ready().then(function() {
@@ -2582,11 +2582,11 @@ var et = { exports: {} };
2582
2582
  }
2583
2583
  function At(n, i) {
2584
2584
  var a = this, o = a.ready().then(function() {
2585
- for (var m = a._dbInfo, f = m.keyPrefix, _ = f.length, P = localStorage.length, R = 1, $ = 0; $ < P; $++) {
2586
- var B = localStorage.key($);
2587
- if (B.indexOf(f) === 0) {
2588
- var G = localStorage.getItem(B);
2589
- if (G && (G = m.serializer.deserialize(G)), G = n(G, B.substring(_), R++), G !== void 0)
2585
+ for (var m = a._dbInfo, f = m.keyPrefix, _ = f.length, L = localStorage.length, R = 1, B = 0; B < L; B++) {
2586
+ var $ = localStorage.key(B);
2587
+ if ($.indexOf(f) === 0) {
2588
+ var G = localStorage.getItem($);
2589
+ if (G && (G = m.serializer.deserialize(G)), G = n(G, $.substring(_), R++), G !== void 0)
2590
2590
  return G;
2591
2591
  }
2592
2592
  }
@@ -2608,8 +2608,8 @@ var et = { exports: {} };
2608
2608
  function Dt(n) {
2609
2609
  var i = this, a = i.ready().then(function() {
2610
2610
  for (var o = i._dbInfo, m = localStorage.length, f = [], _ = 0; _ < m; _++) {
2611
- var P = localStorage.key(_);
2612
- P.indexOf(o.keyPrefix) === 0 && f.push(P.substring(o.keyPrefix.length));
2611
+ var L = localStorage.key(_);
2612
+ L.indexOf(o.keyPrefix) === 0 && f.push(L.substring(o.keyPrefix.length));
2613
2613
  }
2614
2614
  return f;
2615
2615
  });
@@ -2636,16 +2636,16 @@ var et = { exports: {} };
2636
2636
  var m = o.ready().then(function() {
2637
2637
  i === void 0 && (i = null);
2638
2638
  var f = i;
2639
- return new d(function(_, P) {
2639
+ return new d(function(_, L) {
2640
2640
  var R = o._dbInfo;
2641
- R.serializer.serialize(i, function($, B) {
2642
- if (B)
2643
- P(B);
2641
+ R.serializer.serialize(i, function(B, $) {
2642
+ if ($)
2643
+ L($);
2644
2644
  else
2645
2645
  try {
2646
- localStorage.setItem(R.keyPrefix + n, $), _(f);
2646
+ localStorage.setItem(R.keyPrefix + n, B), _(f);
2647
2647
  } catch (G) {
2648
- (G.name === "QuotaExceededError" || G.name === "NS_ERROR_DOM_QUOTA_REACHED") && P(G), P(G);
2648
+ (G.name === "QuotaExceededError" || G.name === "NS_ERROR_DOM_QUOTA_REACHED") && L(G), L(G);
2649
2649
  }
2650
2650
  });
2651
2651
  });
@@ -2662,8 +2662,8 @@ var et = { exports: {} };
2662
2662
  n.storeName ? f(Lr(n, o._defaultConfig)) : f(n.name + "/");
2663
2663
  }).then(function(f) {
2664
2664
  for (var _ = localStorage.length - 1; _ >= 0; _--) {
2665
- var P = localStorage.key(_);
2666
- P.indexOf(f) === 0 && localStorage.removeItem(P);
2665
+ var L = localStorage.key(_);
2666
+ L.indexOf(f) === 0 && localStorage.removeItem(L);
2667
2667
  }
2668
2668
  }) : m = d.reject("Invalid arguments"), r(m, i), m;
2669
2669
  }
@@ -2692,10 +2692,10 @@ var et = { exports: {} };
2692
2692
  }, Nr = Array.isArray || function(n) {
2693
2693
  return Object.prototype.toString.call(n) === "[object Array]";
2694
2694
  }, Ue = {}, Rr = {}, Pe = {
2695
- INDEXEDDB: pe,
2695
+ INDEXEDDB: Oe,
2696
2696
  WEBSQL: vt,
2697
2697
  LOCALSTORAGE: Mt
2698
- }, Nt = [Pe.INDEXEDDB._driver, Pe.WEBSQL._driver, Pe.LOCALSTORAGE._driver], Ge = ["dropInstance"], tr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ge), Rt = {
2698
+ }, Nt = [Pe.INDEXEDDB._driver, Pe.WEBSQL._driver, Pe.LOCALSTORAGE._driver], We = ["dropInstance"], nr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(We), Rt = {
2699
2699
  description: "",
2700
2700
  driver: Nt.slice(),
2701
2701
  name: "localforage",
@@ -2713,7 +2713,7 @@ var et = { exports: {} };
2713
2713
  });
2714
2714
  };
2715
2715
  }
2716
- function nr() {
2716
+ function ar() {
2717
2717
  for (var n = 1; n < arguments.length; n++) {
2718
2718
  var i = arguments[n];
2719
2719
  if (i)
@@ -2722,7 +2722,7 @@ var et = { exports: {} };
2722
2722
  }
2723
2723
  return arguments[0];
2724
2724
  }
2725
- var $t = function() {
2725
+ var Bt = function() {
2726
2726
  function n(i) {
2727
2727
  T(this, n);
2728
2728
  for (var a in Pe)
@@ -2730,7 +2730,7 @@ var et = { exports: {} };
2730
2730
  var o = Pe[a], m = o._driver;
2731
2731
  this[a] = m, Ue[m] || this.defineDriver(o);
2732
2732
  }
2733
- this._defaultConfig = nr({}, Rt), this._config = nr({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2733
+ this._defaultConfig = ar({}, Rt), this._config = ar({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2734
2734
  });
2735
2735
  }
2736
2736
  return n.prototype.config = function(a) {
@@ -2746,38 +2746,38 @@ var et = { exports: {} };
2746
2746
  } else
2747
2747
  return typeof a == "string" ? this._config[a] : this._config;
2748
2748
  }, n.prototype.defineDriver = function(a, o, m) {
2749
- var f = new d(function(_, P) {
2749
+ var f = new d(function(_, L) {
2750
2750
  try {
2751
- var R = a._driver, $ = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2751
+ var R = a._driver, B = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2752
2752
  if (!a._driver) {
2753
- P($);
2753
+ L(B);
2754
2754
  return;
2755
2755
  }
2756
- for (var B = tr.concat("_initStorage"), G = 0, H = B.length; G < H; G++) {
2757
- var K = B[G], X = !Lt(Ge, K);
2756
+ for (var $ = nr.concat("_initStorage"), G = 0, H = $.length; G < H; G++) {
2757
+ var K = $[G], X = !Lt(We, K);
2758
2758
  if ((X || a[K]) && typeof a[K] != "function") {
2759
- P($);
2759
+ L(B);
2760
2760
  return;
2761
2761
  }
2762
2762
  }
2763
2763
  var ne = function() {
2764
- for (var $e = function(kt) {
2764
+ for (var Be = function(kt) {
2765
2765
  return function() {
2766
2766
  var Wt = new Error("Method " + kt + " is not implemented by the current driver"), Ur = d.reject(Wt);
2767
2767
  return r(Ur, arguments[arguments.length - 1]), Ur;
2768
2768
  };
2769
- }, ar = 0, Ft = Ge.length; ar < Ft; ar++) {
2770
- var lr = Ge[ar];
2771
- a[lr] || (a[lr] = $e(lr));
2769
+ }, lr = 0, Ft = We.length; lr < Ft; lr++) {
2770
+ var ur = We[lr];
2771
+ a[ur] || (a[ur] = Be(ur));
2772
2772
  }
2773
2773
  };
2774
2774
  ne();
2775
- var te = function($e) {
2776
- Ue[R] && console.info("Redefining LocalForage driver: " + R), Ue[R] = a, Rr[R] = $e, _();
2775
+ var re = function(Be) {
2776
+ Ue[R] && console.info("Redefining LocalForage driver: " + R), Ue[R] = a, Rr[R] = Be, _();
2777
2777
  };
2778
- "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(te, P) : te(!!a._support) : te(!0);
2779
- } catch (de) {
2780
- P(de);
2778
+ "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(re, L) : re(!!a._support) : re(!0);
2779
+ } catch (me) {
2780
+ L(me);
2781
2781
  }
2782
2782
  });
2783
2783
  return l(f, o, m), f;
@@ -2787,7 +2787,7 @@ var et = { exports: {} };
2787
2787
  var f = Ue[a] ? d.resolve(Ue[a]) : d.reject(new Error("Driver not found."));
2788
2788
  return l(f, o, m), f;
2789
2789
  }, n.prototype.getSerializer = function(a) {
2790
- var o = d.resolve(rr);
2790
+ var o = d.resolve(tr);
2791
2791
  return l(o, a), o;
2792
2792
  }, n.prototype.ready = function(a) {
2793
2793
  var o = this, m = o._driverSet.then(function() {
@@ -2798,13 +2798,13 @@ var et = { exports: {} };
2798
2798
  var f = this;
2799
2799
  Nr(a) || (a = [a]);
2800
2800
  var _ = this._getSupportedDrivers(a);
2801
- function P() {
2801
+ function L() {
2802
2802
  f._config.driver = f.driver();
2803
2803
  }
2804
2804
  function R(G) {
2805
- return f._extend(G), P(), f._ready = f._initStorage(f._config), f._ready;
2805
+ return f._extend(G), L(), f._ready = f._initStorage(f._config), f._ready;
2806
2806
  }
2807
- function $(G) {
2807
+ function B(G) {
2808
2808
  return function() {
2809
2809
  var H = 0;
2810
2810
  function K() {
@@ -2812,30 +2812,30 @@ var et = { exports: {} };
2812
2812
  var X = G[H];
2813
2813
  return H++, f._dbInfo = null, f._ready = null, f.getDriver(X).then(R).catch(K);
2814
2814
  }
2815
- P();
2815
+ L();
2816
2816
  var ne = new Error("No available storage method found.");
2817
2817
  return f._driverSet = d.reject(ne), f._driverSet;
2818
2818
  }
2819
2819
  return K();
2820
2820
  };
2821
2821
  }
2822
- var B = this._driverSet !== null ? this._driverSet.catch(function() {
2822
+ var $ = this._driverSet !== null ? this._driverSet.catch(function() {
2823
2823
  return d.resolve();
2824
2824
  }) : d.resolve();
2825
- return this._driverSet = B.then(function() {
2825
+ return this._driverSet = $.then(function() {
2826
2826
  var G = _[0];
2827
2827
  return f._dbInfo = null, f._ready = null, f.getDriver(G).then(function(H) {
2828
- f._driver = H._driver, P(), f._wrapLibraryMethodsWithReady(), f._initDriver = $(_);
2828
+ f._driver = H._driver, L(), f._wrapLibraryMethodsWithReady(), f._initDriver = B(_);
2829
2829
  });
2830
2830
  }).catch(function() {
2831
- P();
2831
+ L();
2832
2832
  var G = new Error("No available storage method found.");
2833
2833
  return f._driverSet = d.reject(G), f._driverSet;
2834
2834
  }), l(this._driverSet, o, m), this._driverSet;
2835
2835
  }, n.prototype.supports = function(a) {
2836
2836
  return !!Rr[a];
2837
2837
  }, n.prototype._extend = function(a) {
2838
- nr(this, a);
2838
+ ar(this, a);
2839
2839
  }, n.prototype._getSupportedDrivers = function(a) {
2840
2840
  for (var o = [], m = 0, f = a.length; m < f; m++) {
2841
2841
  var _ = a[m];
@@ -2843,31 +2843,31 @@ var et = { exports: {} };
2843
2843
  }
2844
2844
  return o;
2845
2845
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
2846
- for (var a = 0, o = tr.length; a < o; a++)
2847
- Ut(this, tr[a]);
2846
+ for (var a = 0, o = nr.length; a < o; a++)
2847
+ Ut(this, nr[a]);
2848
2848
  }, n.prototype.createInstance = function(a) {
2849
2849
  return new n(a);
2850
2850
  }, n;
2851
- }(), Bt = new $t();
2852
- S.exports = Bt;
2851
+ }(), $t = new Bt();
2852
+ E.exports = $t;
2853
2853
  }, { 3: 3 }] }, {}, [4])(4);
2854
2854
  });
2855
2855
  })(et);
2856
2856
  var En = et.exports;
2857
2857
  const rt = /* @__PURE__ */ Xt(En);
2858
- let He = null;
2858
+ let Ve = null;
2859
2859
  rt.config({
2860
2860
  name: pr()
2861
2861
  });
2862
2862
  function oe() {
2863
2863
  const e = pr();
2864
- return (He == null || He.config.name != e) && (He = rt.createInstance({ name: e })), He;
2864
+ return (Ve == null || Ve.config.name != e) && (Ve = rt.createInstance({ name: e })), Ve;
2865
2865
  }
2866
2866
  function va() {
2867
2867
  async function e(h) {
2868
2868
  const y = oe();
2869
- (await y.keys()).filter((N) => N.startsWith(h)).forEach((N) => {
2870
- y.removeItem(N);
2869
+ (await y.keys()).filter((P) => P.startsWith(h)).forEach((P) => {
2870
+ y.removeItem(P);
2871
2871
  });
2872
2872
  }
2873
2873
  async function t(h) {
@@ -2876,28 +2876,28 @@ function va() {
2876
2876
  async function u(h) {
2877
2877
  return await oe().removeItem(h);
2878
2878
  }
2879
- async function S(h, y) {
2879
+ async function E(h, y) {
2880
2880
  await oe().setItem(y, h);
2881
2881
  }
2882
2882
  return {
2883
2883
  clearAsync: e,
2884
2884
  getAsync: t,
2885
2885
  removeAsync: u,
2886
- saveAsync: S
2886
+ saveAsync: E
2887
2887
  };
2888
2888
  }
2889
- let Ze;
2889
+ let Ye;
2890
2890
  function ga(e) {
2891
- return Ze(e)();
2891
+ return Ye(e)();
2892
2892
  }
2893
2893
  function An(e) {
2894
- return Ze(e);
2894
+ return Ye(e);
2895
2895
  }
2896
2896
  function In(e) {
2897
- return Ze = (t) => Dn({
2897
+ return Ye = (t) => Dn({
2898
2898
  ...e,
2899
2899
  ...t
2900
- }), Ze;
2900
+ }), Ye;
2901
2901
  }
2902
2902
  function Dn(e) {
2903
2903
  if (console.log("getting store definition"), e.storeMode == null && e.nav != null && e.navigation != null) {
@@ -2919,7 +2919,7 @@ function Dn(e) {
2919
2919
  }
2920
2920
  const _n = (e) => {
2921
2921
  let t = z(e.url) ?? void 0;
2922
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = _e(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = _e(t, e.id)), e.params != null) {
2922
+ if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = xe(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = xe(t, e.id)), e.params != null) {
2923
2923
  t ?? (t = "");
2924
2924
  let u = new URLSearchParams();
2925
2925
  Object.entries(e.params).sort(Fe.firstBy((h) => h[0])).forEach((h) => {
@@ -2931,12 +2931,12 @@ const _n = (e) => {
2931
2931
  function xn(e) {
2932
2932
  return Kr(e.storeName, () => {
2933
2933
  var l;
2934
- const t = fe.utc().toSeconds() / 86400, u = Z({}), S = Z({}), h = e.storageMode == "local-cache", y = e.buildUrl ?? ((l = e.api) == null ? void 0 : l.buildUrl) ?? _n;
2934
+ const t = fe.utc().toSeconds() / 86400, u = Z({}), E = Z({}), h = e.storageMode == "local-cache", y = e.buildUrl ?? ((l = e.api) == null ? void 0 : l.buildUrl) ?? _n;
2935
2935
  function T(c) {
2936
2936
  var g, w;
2937
2937
  return `${e.storeName ?? "base"}_${((g = e.auth) == null ? void 0 : g.credentials.value.userID) ?? "no-user-id"}_${c.id ?? ((w = c.data) == null ? void 0 : w.id) ?? "no-item-id"}`;
2938
2938
  }
2939
- async function L(c) {
2939
+ async function N(c) {
2940
2940
  var C;
2941
2941
  c.additionalUrl ?? (c.additionalUrl = "/getAll");
2942
2942
  const g = y(c), w = `${e.storeName}_${((C = e.auth) == null ? void 0 : C.credentials.value.userID) ?? "no-user-id"}_${g}`, v = c.refresh;
@@ -2950,21 +2950,21 @@ function xn(e) {
2950
2950
  if (e.api == null)
2951
2951
  return u.value[w];
2952
2952
  try {
2953
- let A = S.value[w];
2954
- A == null && (A = new Promise(async (E, U) => {
2953
+ let A = E.value[w];
2954
+ A == null && (A = new Promise(async (S, U) => {
2955
2955
  var b;
2956
2956
  try {
2957
2957
  let D = await ((b = e.api) == null ? void 0 : b.getAll(c));
2958
2958
  h == !0 && await oe().setItem(w, {
2959
2959
  meta: { storedOn: t },
2960
2960
  ...D
2961
- }), E(D);
2961
+ }), S(D);
2962
2962
  } catch (D) {
2963
2963
  U(D);
2964
2964
  } finally {
2965
- delete S.value[w];
2965
+ delete E.value[w];
2966
2966
  }
2967
- }), S.value[w] = A);
2967
+ }), E.value[w] = A);
2968
2968
  const M = await A;
2969
2969
  return u.value[w] = M, M;
2970
2970
  } catch (A) {
@@ -2972,7 +2972,7 @@ function xn(e) {
2972
2972
  throw new Error(M.message ?? "Problem");
2973
2973
  }
2974
2974
  }
2975
- async function N(c) {
2975
+ async function P(c) {
2976
2976
  c.additionalUrl ?? (c.additionalUrl = "/get");
2977
2977
  const g = T(c), w = c.refresh;
2978
2978
  if (!w && u.value[g] !== void 0)
@@ -2985,11 +2985,11 @@ function xn(e) {
2985
2985
  if (e.api == null)
2986
2986
  return u.value[g];
2987
2987
  try {
2988
- let v = S.value[g];
2988
+ let v = E.value[g];
2989
2989
  v == null && (v = new Promise(async (A, M) => {
2990
- var E;
2990
+ var S;
2991
2991
  try {
2992
- let U = await ((E = e.api) == null ? void 0 : E.get(c));
2992
+ let U = await ((S = e.api) == null ? void 0 : S.get(c));
2993
2993
  h == !0 && await oe().setItem(g, {
2994
2994
  meta: { storedOn: t },
2995
2995
  ...U
@@ -2997,9 +2997,9 @@ function xn(e) {
2997
2997
  } catch (U) {
2998
2998
  M(U);
2999
2999
  } finally {
3000
- delete S.value[g];
3000
+ delete E.value[g];
3001
3001
  }
3002
- }), S.value[g] = v);
3002
+ }), E.value[g] = v);
3003
3003
  const C = await v;
3004
3004
  return u.value[g] = C, C;
3005
3005
  } catch (v) {
@@ -3030,9 +3030,9 @@ function xn(e) {
3030
3030
  let M = A[1];
3031
3031
  if (M = M.data, M != null)
3032
3032
  if (Array.isArray(M))
3033
- for (let E = 0; E < M.length; E++) {
3034
- const U = M[E];
3035
- U.id == w.id && M.splice(E, 1, { ...U, ...w });
3033
+ for (let S = 0; S < M.length; S++) {
3034
+ const U = M[S];
3035
+ U.id == w.id && M.splice(S, 1, { ...U, ...w });
3036
3036
  }
3037
3037
  else
3038
3038
  M.id == w.id && (u.value[A[0]].data = { ...M, ...w });
@@ -3085,8 +3085,8 @@ function xn(e) {
3085
3085
  }
3086
3086
  return {
3087
3087
  deleteItem: d,
3088
- get: N,
3089
- getAll: L,
3088
+ get: P,
3089
+ getAll: N,
3090
3090
  patch: x,
3091
3091
  post: W,
3092
3092
  restore: r,
@@ -3097,13 +3097,13 @@ function xn(e) {
3097
3097
  }
3098
3098
  function kr(e) {
3099
3099
  return Kr(e.storeName, () => {
3100
- const t = Z(), u = Z(0), S = fe.utc().toSeconds() / 3600, h = Z(), y = Z(), T = Z({}), L = e.storageMode == "local-cache";
3101
- function N() {
3100
+ const t = Z(), u = Z(0), E = fe.utc().toSeconds() / 3600, h = Z(), y = Z(), T = Z({}), N = e.storageMode == "local-cache";
3101
+ function P() {
3102
3102
  var v;
3103
3103
  return `${e.storeName}_${((v = e.auth) == null ? void 0 : v.credentials.value.userID) ?? "no-user-id"}`;
3104
3104
  }
3105
3105
  async function x() {
3106
- L == !0 && await oe().setItem(N(), {
3106
+ N == !0 && await oe().setItem(P(), {
3107
3107
  meta: y.value,
3108
3108
  data: t.value,
3109
3109
  count: u.value,
@@ -3111,15 +3111,15 @@ function kr(e) {
3111
3111
  });
3112
3112
  }
3113
3113
  function W(v) {
3114
- const C = N();
3114
+ const C = P();
3115
3115
  return T.value[C] || (T.value[C] = new Promise(async (A, M) => {
3116
- var E, U;
3116
+ var S, U;
3117
3117
  try {
3118
3118
  let b = await ((U = e.api) == null ? void 0 : U.getAll({
3119
3119
  additionalUrl: "/getAll",
3120
3120
  nav: v.nav,
3121
3121
  params: {
3122
- lastUpdate: ((E = y.value) == null ? void 0 : E.lastUpdate) ?? rn()
3122
+ lastUpdate: ((S = y.value) == null ? void 0 : S.lastUpdate) ?? rn()
3123
3123
  }
3124
3124
  }));
3125
3125
  b == null ? M(b) : (t.value ?? (t.value = []), b.data.forEach((D) => {
@@ -3128,7 +3128,7 @@ function kr(e) {
3128
3128
  s >= 0 ? (I = t.value) == null || I.splice(s, 1, D) : (j = t.value) == null || j.push(D);
3129
3129
  }), u.value = t.value.length, y.value = {
3130
3130
  lastUpdate: fe.utc().toString(),
3131
- storedOn: S.toString()
3131
+ storedOn: E.toString()
3132
3132
  }, await x(), A(b));
3133
3133
  } catch (b) {
3134
3134
  M(b);
@@ -3138,19 +3138,19 @@ function kr(e) {
3138
3138
  })), T.value[C];
3139
3139
  }
3140
3140
  async function d(v) {
3141
- var M, E, U;
3142
- const C = N(), A = v.refresh;
3141
+ var M, S, U;
3142
+ const C = P(), A = v.refresh;
3143
3143
  if (!A && t.value != null)
3144
3144
  return {
3145
3145
  count: (M = t.value) == null ? void 0 : M.length,
3146
3146
  data: t.value,
3147
3147
  filters: []
3148
3148
  };
3149
- if (!A && L == !0) {
3149
+ if (!A && N == !0) {
3150
3150
  const b = await oe().getItem(C);
3151
- if (b != null && parseFloat(b.meta.storedOn) > S - 12)
3151
+ if (b != null && parseFloat(b.meta.storedOn) > E - 12)
3152
3152
  return t.value = b.data, u.value = b.data.length, h.value = b.filters ?? [], y.value = b.meta, {
3153
- count: (E = t.value) == null ? void 0 : E.length,
3153
+ count: (S = t.value) == null ? void 0 : S.length,
3154
3154
  data: t.value,
3155
3155
  filters: []
3156
3156
  };
@@ -3170,8 +3170,8 @@ function kr(e) {
3170
3170
  }
3171
3171
  }
3172
3172
  async function r(v) {
3173
- var E, U, b;
3174
- const C = N(), A = v.id ?? ((E = v.data) == null ? void 0 : E.id);
3173
+ var S, U, b;
3174
+ const C = P(), A = v.id ?? ((S = v.data) == null ? void 0 : S.id);
3175
3175
  if (A == null)
3176
3176
  throw new Error("no id provided");
3177
3177
  let M = v.refresh;
@@ -3180,9 +3180,9 @@ function kr(e) {
3180
3180
  if (D != null)
3181
3181
  return { data: D };
3182
3182
  }
3183
- if (!M && L == !0) {
3183
+ if (!M && N == !0) {
3184
3184
  const D = await oe().getItem(C);
3185
- if (D != null && parseFloat(D.meta.storedOn) > S - 12) {
3185
+ if (D != null && parseFloat(D.meta.storedOn) > E - 12) {
3186
3186
  t.value = D.data, u.value = D.data.length, h.value = D.filters ?? [], y.value = D.meta;
3187
3187
  let s = t.value.find((I) => I.id == v.id);
3188
3188
  if (s != null)
@@ -3202,7 +3202,7 @@ function kr(e) {
3202
3202
  }
3203
3203
  }
3204
3204
  async function l(v) {
3205
- var A, M, E;
3205
+ var A, M, S;
3206
3206
  v.additionalUrl ?? (v.additionalUrl = "/patch");
3207
3207
  let C;
3208
3208
  if (e.api != null)
@@ -3219,7 +3219,7 @@ function kr(e) {
3219
3219
  let U = (A = t.value) == null ? void 0 : A.findIndex((b) => b.id == C.id);
3220
3220
  U != null && U >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(U, 1, C), await x());
3221
3221
  }
3222
- return (E = t.value) == null ? void 0 : E.find((U) => U.id == (v.id ?? v.data.id));
3222
+ return (S = t.value) == null ? void 0 : S.find((U) => U.id == (v.id ?? v.data.id));
3223
3223
  }
3224
3224
  async function c(v) {
3225
3225
  var A, M;
@@ -3227,31 +3227,31 @@ function kr(e) {
3227
3227
  let C;
3228
3228
  if (e.api != null)
3229
3229
  try {
3230
- let E = await e.api.post(v);
3231
- C = E == null ? void 0 : E.data;
3232
- } catch (E) {
3233
- let U = E;
3230
+ let S = await e.api.post(v);
3231
+ C = S == null ? void 0 : S.data;
3232
+ } catch (S) {
3233
+ let U = S;
3234
3234
  throw new Error(U.message ?? "Patch Problem");
3235
3235
  }
3236
3236
  else
3237
3237
  C = v.data;
3238
- return C != null && (t.value ?? (t.value = []), (A = t.value) == null || A.unshift(C), u.value += 1, await x()), (M = t.value) == null ? void 0 : M.find((E) => E.id == (v.id ?? v.data.id));
3238
+ return C != null && (t.value ?? (t.value = []), (A = t.value) == null || A.unshift(C), u.value += 1, await x()), (M = t.value) == null ? void 0 : M.find((S) => S.id == (v.id ?? v.data.id));
3239
3239
  }
3240
3240
  async function g(v) {
3241
3241
  var A, M;
3242
3242
  if (v.additionalUrl ?? (v.additionalUrl = "/delete"), e.api != null)
3243
3243
  try {
3244
- let E = await e.api.deleteItem(v);
3245
- if (E != null)
3246
- return E;
3247
- } catch (E) {
3248
- let U = E;
3244
+ let S = await e.api.deleteItem(v);
3245
+ if (S != null)
3246
+ return S;
3247
+ } catch (S) {
3248
+ let U = S;
3249
3249
  throw new Error(U.message ?? "Patch Problem");
3250
3250
  }
3251
3251
  const C = v.id ?? v.data.id;
3252
3252
  if (C != null) {
3253
- let E = (A = t.value) == null ? void 0 : A.findIndex((U) => U.id == C);
3254
- E != null && E >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(E, 1), await x());
3253
+ let S = (A = t.value) == null ? void 0 : A.findIndex((U) => U.id == C);
3254
+ S != null && S >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(S, 1), await x());
3255
3255
  }
3256
3256
  }
3257
3257
  async function w(v) {
@@ -3283,88 +3283,91 @@ function kr(e) {
3283
3283
  }
3284
3284
  function ya(e, t, u) {
3285
3285
  var Ce;
3286
- const S = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", h = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", y = e.nav ?? e.nav ?? "basic", T = gn(), L = jr(), N = Jt(), x = Z(1), W = z(e.customFilters) ?? [], d = Z([]);
3286
+ const E = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", h = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", y = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", T = gn(), N = jr(), P = Jt(), x = Z(1), W = z(e.customFilters) ?? [], d = Z([]);
3287
3287
  let r = Z(new Array());
3288
- const l = ce(() => Ht([
3289
- ...W.filter((k) => k.name != null).map((k) => k.name),
3288
+ const l = ie(() => Ht([
3289
+ ...W.filter((F) => F.name != null).map((F) => F.name),
3290
3290
  ...e.defaultFilters ?? [],
3291
3291
  ...d.value
3292
- ]).value), c = Z((e.defaultFilters ?? []).map((k) => l.value.indexOf(k))), g = ce(() => $r(r, c).value.length > 0 || $r(c, r).value.length > 0), w = z(e.proxyQueryKey), v = ce(() => {
3293
- var k;
3294
- return z(e.proxyID) ?? (w != null ? (k = N.query) == null ? void 0 : k[w] : void 0);
3295
- }), C = z(e.searchQueryKey), A = Z(C != null ? (Ce = N.query) == null ? void 0 : Ce[C] : void 0), M = Z(z(e.startShowingInactive) ?? !1), E = Z(z(e.sortOrder)), U = ce(() => [
3292
+ ]).value), c = Z((e.defaultFilters ?? []).map((F) => l.value.indexOf(F))), g = ie(() => Br(r, c).value.length > 0 || Br(c, r).value.length > 0), w = z(e.proxyQueryKey), v = ie(() => {
3293
+ var F;
3294
+ return z(e.proxyID) ?? (w != null ? (F = P == null ? void 0 : P.query) == null ? void 0 : F[w] : void 0);
3295
+ }), C = z(e.searchQueryKey), A = Z(C != null ? (Ce = P == null ? void 0 : P.query) == null ? void 0 : Ce[C] : void 0), M = Z(z(e.startShowingInactive) ?? !1), S = Z(z(e.sortOrder)), U = ie(() => [
3296
3296
  ...e.searchProps ?? [],
3297
- ...(e.headers ?? []).filter((k) => k.searchable != null && k.value != null).map((k) => k.value ?? "")
3297
+ ...(e.headers ?? []).filter((F) => F.searchable != null && F.value != null).map((F) => F.value ?? "")
3298
3298
  ]), b = Z([]), D = Le([]), s = Z([]);
3299
3299
  let I;
3300
- const { actionErrorMsg: j, actionLoadingMsg: Q, deleteItem: ee, doAction: le, getItem: Se, getAllItems: F, restoreItem: V } = Qt({
3301
- nav: e.nav ?? e.bladeName ?? e.itemBladeName,
3300
+ const { actionErrorMsg: j, actionLoadingMsg: Q, deleteItem: ee, doAction: le, getItem: Se, getAllItems: k, restoreItem: V } = Qt({
3301
+ nav: y,
3302
3302
  proxyID: v.value,
3303
3303
  store: An({
3304
- storeMode: S,
3304
+ storeMode: E,
3305
3305
  storageMode: h,
3306
3306
  nav: y
3307
3307
  })
3308
- }), q = ce(() => e.errorMsg ?? j.value), ae = ce(() => e.loadingMsg ?? Q.value), Y = ce(() => ae.value != null), p = Le(!1), ue = Le(e.showSearch ?? !1), he = Z(0), ve = ce(() => (k) => e.onCanDelete != null ? e.onCanDelete(k) : !(k != null && k.isInactive === !0)), ze = ce(() => (k) => M.value ? e.onCanRestore != null ? e.onCanRestore(k) : (k == null ? void 0 : k.isInactive) === !0 : !1), xe = ce(() => s.value.filter((k) => !k.hide)), Je = ce(() => {
3309
- let k = new Array();
3310
- return xe.value.filter((J) => J.sublevel != null).forEach((J) => {
3311
- let O = k.find((ge) => ge.position == J.sublevel);
3312
- O == null ? k.push({ position: J.sublevel ?? 0, values: [J] }) : O.values.push(J);
3313
- }), k.sort(Fe.firstBy((J) => J.position));
3314
- }), je = ce(() => {
3315
- let k = new Array();
3316
- return xe.value.filter((J) => J.level != null).forEach((J) => {
3317
- let O = k.find((ge) => ge.position == J.level);
3318
- O == null ? k.push({ position: J.level ?? 0, values: [J] }) : O.values.push(J);
3319
- }), k.sort(Fe.firstBy((J) => J.position));
3320
- }), Ke = ce(() => []);
3321
- function Qe(k) {
3308
+ }), q = ie(() => e.errorMsg ?? j.value), ae = ie(() => e.loadingMsg ?? Q.value), Y = ie(() => ae.value != null), p = Le(!1), ue = Le(e.showSearch ?? !0), he = Z(0), ge = ie(() => {
3309
+ const F = e.params != null ? { ...e.params } : {};
3310
+ return S.value != null && (F.sortOrder = S.value), e.sortBy != null && (F.sortBy = e.sortBy), F;
3311
+ }), Ze = ie(() => (F) => e.onCanDelete != null ? e.onCanDelete(F) : !(F != null && F.isInactive === !0)), ze = ie(() => (F) => M.value ? e.onCanRestore != null ? e.onCanRestore(F) : (F == null ? void 0 : F.isInactive) === !0 : !1), _e = ie(() => s.value.filter((F) => !F.hide)), Je = ie(() => {
3312
+ let F = new Array();
3313
+ return _e.value.filter((J) => J.sublevel != null).forEach((J) => {
3314
+ let O = F.find((ye) => ye.position == J.sublevel);
3315
+ O == null ? F.push({ position: J.sublevel ?? 0, values: [J] }) : O.values.push(J);
3316
+ }), F.sort(Fe.firstBy((J) => J.position));
3317
+ }), je = ie(() => {
3318
+ let F = new Array();
3319
+ return _e.value.filter((J) => J.level != null).forEach((J) => {
3320
+ let O = F.find((ye) => ye.position == J.level);
3321
+ O == null ? F.push({ position: J.level ?? 0, values: [J] }) : O.values.push(J);
3322
+ }), F.sort(Fe.firstBy((J) => J.position));
3323
+ }), Ke = ie(() => _e.value.filter((F) => F.nav != null && F.itemText != null || F.textFilter != null || F.display != null || F.bool != null));
3324
+ function Qe(F) {
3322
3325
  if (e.itemBladeName != null) {
3323
- let re = {
3326
+ let te = {
3324
3327
  bladeName: e.itemBladeName,
3325
3328
  id: "new",
3326
3329
  nav: y
3327
3330
  };
3328
- k == "page" && L.push({
3329
- name: re.bladeName,
3331
+ F == "page" && N.push({
3332
+ name: te.bladeName,
3330
3333
  params: { id: "new" }
3331
3334
  });
3332
3335
  }
3333
3336
  }
3334
- function Xe(k) {
3337
+ function Xe(F) {
3335
3338
  const {
3336
- additionalUrl: re,
3339
+ additionalUrl: te,
3337
3340
  onDeleteAsync: J
3338
- } = { ...e }, O = z(k), ge = O.id, Ee = (Me) => {
3341
+ } = { ...e }, O = z(F), ye = O.id, Ee = (Me) => {
3339
3342
  if (Me != null) {
3340
- let we = b.value.findIndex((ie) => ie.id == Me);
3343
+ let we = b.value.findIndex((ce) => ce.id == Me);
3341
3344
  if (we > -1 && b.value.splice(we, 1), e.items != null) {
3342
- let ie = e.items.findIndex((Ae) => Ae.id == Me);
3343
- ie > -1 && e.items.splice(ie, 1);
3345
+ let ce = e.items.findIndex((Ie) => Ie.id == Me);
3346
+ ce > -1 && e.items.splice(ce, 1);
3344
3347
  }
3345
3348
  } else {
3346
- let we = b.value.findIndex((ie) => ie === O);
3347
- if (we == -1 && (we = b.value.findIndex((ie) => ie == O)), we > -1 && b.value.splice(we, 1), e.items != null) {
3348
- let ie = e.items.findIndex((Ae) => Ae === O);
3349
- ie == -1 && (ie = e.items.findIndex((Ae) => Ae == O)), ie > -1 && e.items.splice(ie, 1);
3349
+ let we = b.value.findIndex((ce) => ce === O);
3350
+ if (we == -1 && (we = b.value.findIndex((ce) => ce == O)), we > -1 && b.value.splice(we, 1), e.items != null) {
3351
+ let ce = e.items.findIndex((Ie) => Ie === O);
3352
+ ce == -1 && (ce = e.items.findIndex((Ie) => Ie == O)), ce > -1 && e.items.splice(ce, 1);
3350
3353
  }
3351
3354
  }
3352
3355
  };
3353
- e.localOnly == !0 || y == null ? Ee(ge) : ee({
3354
- additionalUrl: re,
3356
+ e.localOnly == !0 || y == null ? Ee(ye) : ee({
3357
+ additionalUrl: te,
3355
3358
  data: O,
3356
3359
  nav: y,
3357
3360
  onCanDeleteAsync: e.onCanDeleteAsync,
3358
3361
  onDeleteAsync: J,
3359
- onDeleteSuccessAsync: async () => (Ee(ge), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3362
+ onDeleteSuccessAsync: async () => (Ee(ye), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3360
3363
  proxyID: v.value,
3361
3364
  // ...(useBladeSrc ? bladeData.value : {}),
3362
3365
  requireConfirmation: !0
3363
- }), t && t("deleted", k);
3366
+ }), t && t("deleted", F);
3364
3367
  }
3365
- function Oe(k) {
3368
+ function Oe(F) {
3366
3369
  V({
3367
- data: z(k),
3370
+ data: z(F),
3368
3371
  additionalUrl: e.additionalUrl,
3369
3372
  nav: y,
3370
3373
  onCanRestoreAsync: e.onCanRestoreAsync,
@@ -3376,53 +3379,55 @@ function ya(e, t, u) {
3376
3379
  }
3377
3380
  function pe() {
3378
3381
  le(() => {
3379
- T.exportToCSV(xe.value, D.value);
3382
+ T.exportToCSV(_e.value, D.value);
3380
3383
  }, { loadingMsg: "Exporting to CSV" });
3381
3384
  }
3382
- function Re() {
3383
- let k = z(b);
3384
- if (k = e.onFilter ? e.onFilter(k) : k, A.value != null && A.value.length > 0) {
3385
- let re = [...U.value];
3386
- e.itemText && re.push(e.itemText), Ne(re) && (k = k.filter((J) => cn(J, A.value, re)));
3385
+ function de() {
3386
+ let F = z(b);
3387
+ if (F = e.onFilter ? e.onFilter(F) : F, A.value != null && A.value.length > 0) {
3388
+ let te = [...U.value];
3389
+ e.itemText && te.push(e.itemText), Ne(te) && (F = F.filter((J) => cn(J, A.value, te)));
3387
3390
  }
3388
- D.value = k;
3391
+ D.value = F;
3389
3392
  }
3390
- function ye() {
3393
+ function er() {
3391
3394
  e.headers != null && (s.value = [...e.headers], e.hideActions || s.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3392
3395
  }
3393
- async function De(k) {
3394
- if (p.value = !1, (k == null ? void 0 : k.resetSearch) === !0 && (ue.value = e.showSearch ?? !1, A.value = void 0), e.items != null) {
3396
+ async function Ae(F) {
3397
+ if (p.value = !1, (F == null ? void 0 : F.resetSearch) === !0 && (ue.value = e.showSearch ?? !1, A.value = void 0), e.items != null) {
3395
3398
  b.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3396
3399
  return;
3397
3400
  }
3398
- const re = {
3401
+ const te = {
3399
3402
  additionalUrl: e.additionalUrl,
3400
3403
  id: e.itemID,
3401
3404
  nav: e.nav,
3405
+ params: ge.value,
3406
+ //params,
3402
3407
  // params: params.getParamOptions(),
3403
3408
  proxyID: v.value,
3404
3409
  // ...(useBladeSrc ? bladeData.value : {}),
3405
3410
  // ...(props.useInterEvents ? eventData : {}),
3406
- refresh: (k == null ? void 0 : k.deepRefresh) ?? !1,
3411
+ refresh: (F == null ? void 0 : F.deepRefresh) ?? !1,
3407
3412
  onGetAsync: e.onGetAsync,
3408
3413
  onGetSuccessAsync: e.onGetSuccessAsync
3409
3414
  };
3410
3415
  if (e.isSingle === !0)
3411
- re.id === "new" ? b.value = [] : console.log("getting"), b.value = await Se(re), console.log("gottne");
3416
+ te.id === "new" ? b.value = [] : b.value = await Se(te);
3412
3417
  else {
3413
- let J = await F({
3414
- ...re,
3415
- onGetSuccessAsync: async (O, ge) => {
3418
+ let J = await k({
3419
+ ...te,
3420
+ onGetSuccessAsync: async (O, ye) => {
3416
3421
  let Ee = O == null ? void 0 : O.data;
3417
- return d.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (he.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (Ee = await e.onGetSuccessAsync(Ee, ge)), Ee;
3422
+ return d.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (he.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (Ee = await e.onGetSuccessAsync(Ee, ye)), Ee;
3418
3423
  }
3419
3424
  });
3420
3425
  b.value = J;
3421
3426
  }
3422
- Re();
3427
+ de();
3423
3428
  }
3424
- function We(k, re) {
3425
- const J = z(k);
3429
+ function Te(F, te) {
3430
+ const J = z(F);
3426
3431
  if (J != null && J === I && e.canUnselect ? I = null : I = J, t != null && t("select", I), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(J)))
3427
3432
  if (e.onSelectItem != null)
3428
3433
  e.onSelectItem(I);
@@ -3432,28 +3437,28 @@ function ya(e, t, u) {
3432
3437
  id: J.id,
3433
3438
  nav: e.nav
3434
3439
  };
3435
- re == "page" && L.push({
3440
+ te == "page" && N.push({
3436
3441
  name: O.bladeName,
3437
3442
  params: { id: O.id }
3438
3443
  });
3439
3444
  }
3440
3445
  }
3441
- function Te() {
3442
- ue.value ? (ue.value = e.showSearch ?? !1, A.value = void 0, De()) : ue.value = e.showSearch ?? !0;
3443
- }
3444
- return ye(), Yt([A], () => {
3445
- Re();
3446
- }, { debounce: 500, maxWait: 500 }), Be([M, x], async () => {
3447
- await De();
3448
- }), Be([q, () => e.errorMsg], ([k, re]) => {
3449
- p.value = k != null || re != null;
3450
- }), Be(() => e.refreshToggle, () => {
3451
- De({ deepRefresh: !0 });
3446
+ function Re() {
3447
+ ue.value ? (ue.value = e.showSearch ?? !1, A.value = void 0, Ae()) : ue.value = e.showSearch ?? !0;
3448
+ }
3449
+ return er(), Yt([A], () => {
3450
+ de();
3451
+ }, { debounce: 500, maxWait: 500 }), $e([M, x], async () => {
3452
+ await Ae();
3453
+ }), $e([q, () => e.errorMsg], ([F, te]) => {
3454
+ p.value = F != null || te != null;
3455
+ }), $e(() => e.refreshToggle, () => {
3456
+ Ae({ deepRefresh: !0 });
3452
3457
  }), Jr([b, () => e.items], () => {
3453
- Re();
3458
+ de();
3454
3459
  }), Gt(async () => {
3455
- var k;
3456
- e.eager == !0 && await De({ deepRefresh: ((k = N.params) == null ? void 0 : k.refresh) == "true" });
3460
+ var F;
3461
+ e.eager == !0 && await Ae({ deepRefresh: ((F = P == null ? void 0 : P.params) == null ? void 0 : F.refresh) == "true" });
3457
3462
  }), {
3458
3463
  add: Qe,
3459
3464
  asyncItems: b,
@@ -3466,31 +3471,31 @@ function ya(e, t, u) {
3466
3471
  filters: l,
3467
3472
  filtersChanged: g,
3468
3473
  headerOptions: s,
3469
- isDeletable: ve,
3474
+ isDeletable: Ze,
3470
3475
  isLoading: Y,
3471
3476
  isRestorable: ze,
3472
3477
  loadingMsg: ae,
3473
- refresh: De,
3478
+ refresh: Ae,
3474
3479
  restoreItem: Oe,
3475
3480
  searchString: A,
3476
3481
  selectedFilters: c,
3477
- selectItem: We,
3478
- serverFilters: d,
3482
+ selectItem: Te,
3483
+ // serverFilters,
3479
3484
  showError: p,
3480
3485
  showInactive: M,
3481
3486
  showSearch: ue,
3482
- sortOrder: E,
3487
+ sortOrder: S,
3483
3488
  subtitleOptions: Je,
3484
- tableHeaders: xe,
3489
+ tableHeaders: _e,
3485
3490
  titleOptions: je,
3486
- toggleSearch: Te,
3491
+ toggleSearch: Re,
3487
3492
  totalPages: he
3488
3493
  };
3489
3494
  }
3490
- const Wr = Z(!0), Gr = Z(!1), qr = Z(), fr = Z(!1);
3491
- let sr = null, Sr;
3495
+ const Wr = Z(!0), Gr = Z(!1), qr = Z(), sr = Z(!1);
3496
+ let or = null, Er;
3492
3497
  function wa() {
3493
- return Sr;
3498
+ return Er;
3494
3499
  }
3495
3500
  function Tn(e) {
3496
3501
  const t = e.defaultCacheExpiryHours ?? 7;
@@ -3504,37 +3509,37 @@ function Tn(e) {
3504
3509
  displayName: r.displayName ?? e.getDisplayName(r),
3505
3510
  ...r
3506
3511
  }));
3507
- function S(r) {
3512
+ function E(r) {
3508
3513
  var l;
3509
- return (l = L(r)) == null ? void 0 : l.archiveName;
3514
+ return (l = N(r)) == null ? void 0 : l.archiveName;
3510
3515
  }
3511
3516
  function h(r) {
3512
3517
  var l;
3513
- return ((l = L(r)) == null ? void 0 : l.cacheExpiryHours) ?? t;
3518
+ return ((l = N(r)) == null ? void 0 : l.cacheExpiryHours) ?? t;
3514
3519
  }
3515
3520
  function y(r) {
3516
3521
  var l;
3517
- return (l = L(r)) == null ? void 0 : l.displayName;
3522
+ return (l = N(r)) == null ? void 0 : l.displayName;
3518
3523
  }
3519
3524
  function T(r) {
3520
3525
  var l;
3521
- return (l = L(r)) == null ? void 0 : l.icon;
3526
+ return (l = N(r)) == null ? void 0 : l.icon;
3522
3527
  }
3523
- function L(r) {
3528
+ function N(r) {
3524
3529
  return r == null ? null : typeof r != "string" ? r : Or(u, (c) => c.children).find((c) => {
3525
3530
  var g;
3526
3531
  return c.name == r || c.singleName == r || ((g = c.aliases) == null ? void 0 : g.some((w) => w == r));
3527
3532
  }) ?? null;
3528
3533
  }
3529
- function N(r) {
3530
- const l = L(r);
3534
+ function P(r) {
3535
+ const l = N(r);
3531
3536
  if (l == null)
3532
3537
  return;
3533
3538
  let c = hn(l.microservice ?? "default") ?? "";
3534
- return l.path != null && (c = _e(c, l.path)), c != null && c.endsWith("/") && (c = c.slice(0, c.length - 1)), c;
3539
+ return l.path != null && (c = xe(c, l.path)), c != null && c.endsWith("/") && (c = c.slice(0, c.length - 1)), c;
3535
3540
  }
3536
3541
  function x(r) {
3537
- const l = L(r);
3542
+ const l = N(r);
3538
3543
  if ((l == null ? void 0 : l.singleName) != null)
3539
3544
  return l.singleName;
3540
3545
  const c = l == null ? void 0 : l.displayName;
@@ -3542,168 +3547,168 @@ function Tn(e) {
3542
3547
  return c.endsWith("ies") ? c.slice(0, c.length - 3) : c.endsWith("es") ? c.slice(0, c.length - 2) : c.endsWith("s") ? c.slice(0, c.length - 1) : c;
3543
3548
  }
3544
3549
  function W(r) {
3545
- const l = L(r);
3550
+ const l = N(r);
3546
3551
  return (l == null ? void 0 : l.name) ?? (l == null ? void 0 : l.singleName);
3547
3552
  }
3548
3553
  function d(r) {
3549
3554
  if (r == null)
3550
3555
  return;
3551
- const l = typeof r == "string" ? L(r) : r;
3552
- qr.value = l == null ? void 0 : l.background, Gr.value = (l == null ? void 0 : l.hideNavigation) !== !0, Wr.value = (l == null ? void 0 : l.hideAppBar) !== !0, sr != null && sr(), fr.value = (l == null ? void 0 : l.hesitate) === !0, fr.value && (sr = window.addEventListener("beforeunload", (c) => {
3556
+ const l = typeof r == "string" ? N(r) : r;
3557
+ qr.value = l == null ? void 0 : l.background, Gr.value = (l == null ? void 0 : l.hideNavigation) !== !0, Wr.value = (l == null ? void 0 : l.hideAppBar) !== !0, or != null && or(), sr.value = (l == null ? void 0 : l.hesitate) === !0, sr.value && (or = window.addEventListener("beforeunload", (c) => {
3553
3558
  c.preventDefault();
3554
3559
  }));
3555
3560
  }
3556
- return Sr = {
3561
+ return Er = {
3557
3562
  showAppBar: Wr,
3558
3563
  showAppNavigation: Gr,
3559
3564
  backgroundName: qr,
3560
- hesitate: fr,
3565
+ hesitate: sr,
3561
3566
  navigationItems: u,
3562
- findArchiveName: S,
3567
+ findArchiveName: E,
3563
3568
  findCacheHours: h,
3564
3569
  findDisplay: y,
3565
3570
  findIcon: T,
3566
- findItem: L,
3571
+ findItem: N,
3567
3572
  findStoreName: W,
3568
- findPath: N,
3573
+ findPath: P,
3569
3574
  findSingleDisplay: x,
3570
3575
  updateNavigationProperties: d
3571
- }, Sr;
3576
+ }, Er;
3572
3577
  }
3573
- let Er;
3578
+ let Ar;
3574
3579
  function ba(e) {
3575
- return Er.usePresets(e);
3580
+ return Ar.usePresets(e);
3576
3581
  }
3577
3582
  function Cn(e) {
3578
3583
  function t(u) {
3579
3584
  if (!u)
3580
3585
  return {};
3581
- let S = u;
3582
- return e.presets[S] ?? {};
3586
+ let E = u;
3587
+ return e.presets[E] ?? {};
3583
3588
  }
3584
- return Er = {
3589
+ return Ar = {
3585
3590
  usePresets: t
3586
- }, Er;
3591
+ }, Ar;
3587
3592
  }
3588
3593
  let Vr, Hr, Yr, Zr = !1;
3589
- const or = Z(!1), hr = Z(!1), zr = Z(), Ye = Z();
3590
- let Ar;
3594
+ const hr = Z(!1), dr = Z(!1), zr = Z(), He = Z();
3595
+ let Ir;
3591
3596
  function Sa() {
3592
- return Ar;
3597
+ return Ir;
3593
3598
  }
3594
3599
  function Mn() {
3595
3600
  function e(T) {
3596
- Ye.value = T.detail, hr.value = !0;
3601
+ He.value = T.detail, dr.value = !0;
3597
3602
  }
3598
3603
  function t() {
3599
3604
  Zr || (Zr = !0, window.location.reload());
3600
3605
  }
3601
3606
  function u() {
3602
3607
  var T;
3603
- (T = zr.value) == null || T.prompt(), or.value = !1;
3608
+ (T = zr.value) == null || T.prompt(), hr.value = !1;
3604
3609
  }
3605
- function S() {
3610
+ function E() {
3606
3611
  return !!window.matchMedia("(display-mode: standalone)").matches;
3607
3612
  }
3608
3613
  function h(T) {
3609
- T.preventDefault(), or.value = !0, zr.value = T;
3614
+ T.preventDefault(), hr.value = !0, zr.value = T;
3610
3615
  }
3611
3616
  function y() {
3612
- hr.value = !1, !(!Ye.value || !Ye.value.waiting) && Ye.value.waiting.postMessage({ type: "SKIP_WAITING" });
3617
+ dr.value = !1, !(!He.value || !He.value.waiting) && He.value.waiting.postMessage({ type: "SKIP_WAITING" });
3613
3618
  }
3614
3619
  return Zt(() => {
3615
3620
  Vr == null && (Vr = document.addEventListener("swUpdated", e, { once: !0 })), Hr == null && (Hr = navigator.serviceWorker.addEventListener("controllerchange", t)), Yr == null && (Yr = window.addEventListener("beforeinstallprompt", h));
3616
- }), Ar = {
3617
- canInstallApp: or,
3618
- canUpdateApp: hr,
3621
+ }), Ir = {
3622
+ canInstallApp: hr,
3623
+ canUpdateApp: dr,
3619
3624
  installApp: u,
3620
- isInstalled: S,
3625
+ isInstalled: E,
3621
3626
  updateApp: y
3622
- }, Ar;
3627
+ }, Ir;
3623
3628
  }
3624
3629
  const Pn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
3625
3630
  function Ea(e, t = {}) {
3626
- let u, S = t.handleWidth ?? 12, h = t.handleZIndex ?? 100, y = t.minWidth ?? 0, T = t.maxWidth ?? Number.MAX_SAFE_INTEGER, L = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, x = t.preventDefault ?? !1, W = t.stopPropagation ?? !1, d, r = [];
3631
+ let u, E = t.handleWidth ?? 12, h = t.handleZIndex ?? 100, y = t.minWidth ?? 0, T = t.maxWidth ?? Number.MAX_SAFE_INTEGER, N = t.minHeight ?? 0, P = t.maxHeight ?? Number.MAX_SAFE_INTEGER, x = t.preventDefault ?? !1, W = t.stopPropagation ?? !1, d, r = [];
3627
3632
  const l = Z(!1);
3628
3633
  let c = [], g = [];
3629
3634
  const w = Z(!1), v = Z({ x: 0, y: 0 });
3630
3635
  let C = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, A = {};
3631
- function M(F) {
3632
- be(x) && F.preventDefault(), be(W) && F.stopPropagation();
3636
+ function M(k) {
3637
+ be(x) && k.preventDefault(), be(W) && k.stopPropagation();
3633
3638
  }
3634
- function E(F, V) {
3635
- r = V.map(b), r.forEach((q) => F.$el.appendChild(q));
3639
+ function S(k, V) {
3640
+ r = V.map(b), r.forEach((q) => k.$el.appendChild(q));
3636
3641
  }
3637
- function U(F) {
3638
- r.forEach((V) => F.$el.removeChild(V));
3642
+ function U(k) {
3643
+ r.forEach((V) => k.$el.removeChild(V));
3639
3644
  }
3640
- function b(F) {
3641
- const V = S + "px", q = -S / 2 + "px", ae = h + 1, Y = document.createElement("div");
3642
- return Y.dataset.handle = F, Y.style.position = "absolute", Y.style.touchAction = "none", Y.style.userSelect = "none", Y.style.zIndex = (F.length === 1 ? h : ae).toString(), Y.style.cursor = j(F), F.includes("t") && (Y.style.top = q, Y.style.height = V, F === "t" && (Y.style.left = "0", Y.style.width = "100%")), F.includes("b") && (Y.style.bottom = q, Y.style.height = V, F === "b" && (Y.style.left = "0", Y.style.width = "100%")), F.includes("r") && (Y.style.right = q, Y.style.width = V, F === "r" && (Y.style.top = "0", Y.style.height = "100%")), F.includes("l") && (Y.style.left = q, Y.style.width = V, F === "l" && (Y.style.top = "0", Y.style.height = "100%")), Y;
3645
+ function b(k) {
3646
+ const V = E + "px", q = -E / 2 + "px", ae = h + 1, Y = document.createElement("div");
3647
+ return Y.dataset.handle = k, Y.style.position = "absolute", Y.style.touchAction = "none", Y.style.userSelect = "none", Y.style.zIndex = (k.length === 1 ? h : ae).toString(), Y.style.cursor = j(k), k.includes("t") && (Y.style.top = q, Y.style.height = V, k === "t" && (Y.style.left = "0", Y.style.width = "100%")), k.includes("b") && (Y.style.bottom = q, Y.style.height = V, k === "b" && (Y.style.left = "0", Y.style.width = "100%")), k.includes("r") && (Y.style.right = q, Y.style.width = V, k === "r" && (Y.style.top = "0", Y.style.height = "100%")), k.includes("l") && (Y.style.left = q, Y.style.width = V, k === "l" && (Y.style.top = "0", Y.style.height = "100%")), Y;
3643
3648
  }
3644
- function D(F) {
3649
+ function D(k) {
3645
3650
  var ue;
3646
- if (!r.some((he) => he == F.target))
3651
+ if (!r.some((he) => he == k.target))
3647
3652
  return;
3648
3653
  const V = be(e);
3649
3654
  if (!V)
3650
3655
  return;
3651
- const q = V.$el, Y = F.type === "touchstart" && F.touches.length > 0 ? F.touches[0] : F;
3656
+ const q = V.$el, Y = k.type === "touchstart" && k.touches.length > 0 ? k.touches[0] : k;
3652
3657
  if (v.value.x = Y.clientX, v.value.y = Y.clientY, C = {
3653
3658
  left: q.offsetLeft,
3654
3659
  top: q.offsetTop,
3655
3660
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
3656
3661
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width"))
3657
- }, A = Ir(C), ((ue = t.onStart) == null ? void 0 : ue.call(t, v.value, F)) === !1)
3662
+ }, A = Dr(C), ((ue = t.onStart) == null ? void 0 : ue.call(t, v.value, k)) === !1)
3658
3663
  return;
3659
- let p = F.target;
3660
- document.documentElement.style.cursor = j(p.dataset.handle), d = p.dataset.handle, g.push(se("mousemove", s)), g.push(se("mouseup", I)), g.push(se("touchmove", s)), g.push(se("touchend", I)), M(F);
3664
+ let p = k.target;
3665
+ document.documentElement.style.cursor = j(p.dataset.handle), d = p.dataset.handle, g.push(se("mousemove", s)), g.push(se("mouseup", I)), g.push(se("touchmove", s)), g.push(se("touchend", I)), M(k);
3661
3666
  }
3662
- function s(F) {
3667
+ function s(k) {
3663
3668
  const V = be(e);
3664
3669
  if (!V)
3665
3670
  return;
3666
- const q = V.$el, Y = F.type === "touchmove" && F.touches.length > 0 ? F.touches[0] : F;
3671
+ const q = V.$el, Y = k.type === "touchmove" && k.touches.length > 0 ? k.touches[0] : k;
3667
3672
  let p = Y.clientX - v.value.x, ue = Y.clientY - v.value.y;
3668
3673
  const he = be(C);
3669
3674
  if (d.includes("t")) {
3670
- const ve = Math.min(N, Math.max(L, (he.height ?? 0) - ue));
3671
- A.height = ve, A.top = (he.top ?? 0) + ue;
3675
+ const ge = Math.min(P, Math.max(N, (he.height ?? 0) - ue));
3676
+ A.height = ge, A.top = (he.top ?? 0) + ue;
3672
3677
  }
3673
3678
  if (d.includes("b")) {
3674
- const ve = Math.min(N, Math.max(L, (he.height ?? 0) + ue));
3675
- A.height = ve;
3679
+ const ge = Math.min(P, Math.max(N, (he.height ?? 0) + ue));
3680
+ A.height = ge;
3676
3681
  }
3677
3682
  if (d.includes("l")) {
3678
- const ve = Math.min(T, Math.max(y, (he.width ?? 0) - p));
3679
- A.width = ve, A.left = (he.left ?? 0) + p;
3683
+ const ge = Math.min(T, Math.max(y, (he.width ?? 0) - p));
3684
+ A.width = ge, A.left = (he.left ?? 0) + p;
3680
3685
  }
3681
3686
  if (d.includes("r")) {
3682
- const ve = Math.min(T, Math.max(y, (he.width ?? 0) + p));
3683
- A.width = ve;
3687
+ const ge = Math.min(T, Math.max(y, (he.width ?? 0) + p));
3688
+ A.width = ge;
3684
3689
  }
3685
- q.dispatchEvent(new CustomEvent("resize")), M(F), ee(A);
3690
+ q.dispatchEvent(new CustomEvent("resize")), M(k), ee(A);
3686
3691
  }
3687
3692
  function I() {
3688
- document.documentElement.style.cursor = "", d = null, g.forEach((F) => {
3689
- F();
3693
+ document.documentElement.style.cursor = "", d = null, g.forEach((k) => {
3694
+ k();
3690
3695
  }), g.length = 0;
3691
3696
  }
3692
- function j(F) {
3697
+ function j(k) {
3693
3698
  const V = {
3694
3699
  t: "n",
3695
3700
  r: "e",
3696
3701
  b: "s",
3697
3702
  l: "w"
3698
3703
  };
3699
- return F.split("").map((q) => V[q]).join("") + "-resize";
3704
+ return k.split("").map((q) => V[q]).join("") + "-resize";
3700
3705
  }
3701
- function Q(F) {
3706
+ function Q(k) {
3702
3707
  const V = be(e);
3703
3708
  if (!V)
3704
3709
  return;
3705
3710
  const q = V.$el;
3706
- if (console.log(u), u !== "page" && F == "page") {
3711
+ if (console.log(u), u !== "page" && k == "page") {
3707
3712
  const ae = zt(q), Y = be(ae) ?? null;
3708
3713
  let p = 0;
3709
3714
  if (Y != null) {
@@ -3719,7 +3724,7 @@ function Ea(e, t = {}) {
3719
3724
  }), se(q, "transitionend", () => {
3720
3725
  q.style.width = "auto", q.style.top = "", q.style.left = "", q.style.position = "", q.style.transition = "", l.value = !1;
3721
3726
  }, { once: !0 });
3722
- } else if ((u == "page" || V.$el.style.position !== "absolute") && F !== "page") {
3727
+ } else if ((u == "page" || V.$el.style.position !== "absolute") && k !== "page") {
3723
3728
  q.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", l.value = !0, C = {
3724
3729
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
3725
3730
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width")),
@@ -3728,13 +3733,13 @@ function Ea(e, t = {}) {
3728
3733
  position: "absolute"
3729
3734
  }, ee(C), q.offsetHeight;
3730
3735
  const ae = C;
3731
- F == "freestyle" ? A = {
3736
+ k == "freestyle" ? A = {
3732
3737
  height: ae.height,
3733
3738
  width: (ae.width ?? 100) / 2,
3734
3739
  top: (ae.top ?? 0) + 2,
3735
3740
  left: (ae.left ?? 0) + 2,
3736
3741
  position: "absolute"
3737
- } : F == "blade" && (A = {
3742
+ } : k == "blade" && (A = {
3738
3743
  height: ae.height,
3739
3744
  width: (ae.width ?? 100) / 2,
3740
3745
  top: (ae.top ?? 0) + 2,
@@ -3745,24 +3750,24 @@ function Ea(e, t = {}) {
3745
3750
  }, { once: !0 });
3746
3751
  }
3747
3752
  }
3748
- function ee(F) {
3753
+ function ee(k) {
3749
3754
  const V = be(e);
3750
3755
  if (!V)
3751
3756
  return;
3752
3757
  const q = V.$el;
3753
- F.top ? q.style.top = `${F.top}px` : q.style.top = void 0, F.left ? q.style.left = `${F.left}px` : q.style.left = void 0, F.height ? q.style.height = `${F.height}px` : q.style.height = void 0, F.width ? q.style.width = `${F.width}px` : q.style.width = void 0, F.position ? q.style.position = `${F.position}` : q.style.position = void 0, console.log(q.style.position);
3758
+ k.top ? q.style.top = `${k.top}px` : q.style.top = void 0, k.left ? q.style.left = `${k.left}px` : q.style.left = void 0, k.height ? q.style.height = `${k.height}px` : q.style.height = void 0, k.width ? q.style.width = `${k.width}px` : q.style.width = void 0, k.position ? q.style.position = `${k.position}` : q.style.position = void 0, console.log(q.style.position);
3754
3759
  }
3755
- function le(F, V) {
3760
+ function le(k, V) {
3756
3761
  if (w.value)
3757
3762
  return;
3758
3763
  const q = be(e);
3759
- q && (E(q, F ?? Pn), Q(V), c.push(se(q.$el, "mousedown", D)), c.push(se(q.$el, "touchstart", D)), w.value = !0, u = V);
3764
+ q && (S(q, k ?? Pn), Q(V), c.push(se(q.$el, "mousedown", D)), c.push(se(q.$el, "touchstart", D)), w.value = !0, u = V);
3760
3765
  }
3761
- function Se(F) {
3766
+ function Se(k) {
3762
3767
  if (!w.value)
3763
3768
  return;
3764
3769
  const V = be(e);
3765
- V && (U(V), Q(F), c.forEach((q) => {
3770
+ V && (U(V), Q(k), c.forEach((q) => {
3766
3771
  q();
3767
3772
  }), c.length = 0, w.value = !1);
3768
3773
  }
@@ -3777,24 +3782,24 @@ function Aa(e) {
3777
3782
  return (e == null ? void 0 : e.required) == !0 && t.push((u) => !!u || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((u) => !!u || "Password is required"), t.push((u) => u != null && u.length > 9 || "Password must be 10 or more characters"), t.push((u) => /^(.*[a-z].*)$/.test(u) || "Password must contain a lowercase letter"), t.push((u) => /^(.*[A-Z].*)$/.test(u) || "Password must contain an uppercase letter"), t.push((u) => /^(.*\d.*)$/.test(u) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((u) => !!u || "Email is required"), t.push((u) => fn(u) || "Email must be valid")), t;
3778
3783
  }
3779
3784
  function Ia(e, t) {
3780
- const u = Z(!1), S = qt(e);
3785
+ const u = Z(!1), E = qt(e);
3781
3786
  let h = y(z(e));
3782
- (t == null ? void 0 : t.useTracker) !== !1 && Be(S, (L) => {
3783
- u.value = y(L) != h;
3787
+ (t == null ? void 0 : t.useTracker) !== !1 && $e(E, (N) => {
3788
+ u.value = y(N) != h;
3784
3789
  }, { deep: !0 });
3785
- function y(L) {
3786
- const N = Ir(L);
3790
+ function y(N) {
3791
+ const P = Dr(N);
3787
3792
  return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((x) => {
3788
- delete N[x];
3789
- }) : t.propsToTrack != null && Object.keys(L).forEach((W) => {
3790
- t.propsToTrack.some((d) => d == W) || delete N[W];
3791
- })), JSON.stringify(N);
3793
+ delete P[x];
3794
+ }) : t.propsToTrack != null && Object.keys(N).forEach((W) => {
3795
+ t.propsToTrack.some((d) => d == W) || delete P[W];
3796
+ })), JSON.stringify(P);
3792
3797
  }
3793
3798
  function T() {
3794
- h = y(z(S)), u.value = !1;
3799
+ h = y(z(E)), u.value = !1;
3795
3800
  }
3796
3801
  return {
3797
- asyncItem: S,
3802
+ asyncItem: E,
3798
3803
  isChanged: u,
3799
3804
  restartTracker: T
3800
3805
  };
@@ -3802,19 +3807,19 @@ function Ia(e, t) {
3802
3807
  function Da(e) {
3803
3808
  return {
3804
3809
  install(t, u) {
3805
- var N;
3810
+ var P;
3806
3811
  console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = u.vuetifyInstance), vn(e);
3807
- const S = wn(), h = Tn(e);
3808
- Cn(e), (N = e.auth).demo ?? (N.demo = S), e.auth.getAuthItem = h.findItem;
3812
+ const E = wn(), h = Tn(e);
3813
+ Cn(e), (P = e.auth).demo ?? (P.demo = E), e.auth.getAuthItem = h.findItem;
3809
3814
  const y = mn(e.auth), T = on({
3810
3815
  auth: y,
3811
3816
  findPath: h.findPath,
3812
3817
  useBearerToken: !0
3813
- }), L = yn({
3818
+ }), N = yn({
3814
3819
  getTimeZone: () => y.timeZone.value
3815
3820
  });
3816
3821
  Sn({
3817
- dates: L
3822
+ dates: N
3818
3823
  }), Mn(), In({
3819
3824
  api: T,
3820
3825
  auth: y,
@@ -3826,12 +3831,12 @@ function Da(e) {
3826
3831
  export {
3827
3832
  ta as DataURIToBlob,
3828
3833
  Qn as addWeekday,
3829
- _e as appendUrl,
3834
+ xe as appendUrl,
3830
3835
  pt as capitalizeWords,
3831
3836
  Yn as checkImage,
3832
3837
  an as containsSearch,
3833
3838
  Kn as containsWeekday,
3834
- Ir as copyDeep,
3839
+ Dr as copyDeep,
3835
3840
  nn as copyItemByAlphabet,
3836
3841
  on as createApi,
3837
3842
  mn as createAuth,
@@ -3867,7 +3872,7 @@ export {
3867
3872
  On as isArrayOfLength,
3868
3873
  Ne as isLengthyArray,
3869
3874
  en as isMinDate,
3870
- dr as nestedValue,
3875
+ mr as nestedValue,
3871
3876
  Xn as removeWeekday,
3872
3877
  ea as roundTo,
3873
3878
  zn as toCamelCase,
@@ -3879,7 +3884,7 @@ export {
3879
3884
  sn as useApi,
3880
3885
  Fn as useApiActions,
3881
3886
  ua as useAuth,
3882
- Br as useAuthUrl,
3887
+ $r as useAuthUrl,
3883
3888
  gn as useCSV,
3884
3889
  ia as useCosmetics,
3885
3890
  hn as useDataUrl,