bt-core-app 1.4.31 → 1.4.32

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.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +652 -652
  2. package/package.json +1 -1
@@ -15,7 +15,7 @@ function jt(e) {
15
15
  function L(b) {
16
16
  t.value = t.value.filter((l) => l.id != b);
17
17
  }
18
- function _(b) {
18
+ function D(b) {
19
19
  const l = {
20
20
  id: Yt(),
21
21
  msg: b ?? "Loading"
@@ -29,16 +29,16 @@ function jt(e) {
29
29
  d.value = void 0;
30
30
  }
31
31
  async function W(b, l) {
32
- const s = { ...l };
33
- s.completionMsg ?? (s.completionMsg = e == null ? void 0 : e.completionMsg), s.confirmationMsg ?? (s.confirmationMsg = e == null ? void 0 : e.confirmationMsg), s.errorMsg ?? (s.errorMsg = e == null ? void 0 : e.errorMsg), s.loadingMsg ?? (s.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), s.requireConfirmation ?? (s.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
- const r = _(s.loadingMsg);
32
+ const o = { ...l };
33
+ o.completionMsg ?? (o.completionMsg = e == null ? void 0 : e.completionMsg), o.confirmationMsg ?? (o.confirmationMsg = e == null ? void 0 : e.confirmationMsg), o.errorMsg ?? (o.errorMsg = e == null ? void 0 : e.errorMsg), o.loadingMsg ?? (o.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), o.requireConfirmation ?? (o.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
+ const r = D(o.loadingMsg);
35
35
  let x = null;
36
36
  try {
37
- return s.requireConfirmation || s.confirmationMsg, x = await b(), s.completionMsg != null && (y.value = s.completionMsg), x;
37
+ return o.requireConfirmation || o.confirmationMsg, x = await b(), o.completionMsg != null && (y.value = o.completionMsg), x;
38
38
  } catch (w) {
39
- if (s.throwError == !0)
39
+ if (o.throwError == !0)
40
40
  return x;
41
- N(s.errorMsg ?? w ?? "error");
41
+ N(o.errorMsg ?? w ?? "error");
42
42
  } finally {
43
43
  L(r);
44
44
  }
@@ -57,7 +57,7 @@ function jt(e) {
57
57
  }
58
58
  function Kt(e) {
59
59
  const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: d, isLoading: y, doAction: v, logError: L } = jt(e);
60
- function _(r) {
60
+ function D(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 x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
63
63
  return r.nav != null && x != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => x().deleteItem(r))), v(async () => {
@@ -125,8 +125,8 @@ function Kt(e) {
125
125
  if (r.onGetSaveAsync != null && (w = await r.onGetSaveAsync(r.data)), w == null)
126
126
  return;
127
127
  if (r.onCanSaveAsync != null) {
128
- let D = await r.onCanSaveAsync(w);
129
- if (L(D), D == null)
128
+ let I = await r.onCanSaveAsync(w);
129
+ if (L(I), I == null)
130
130
  return;
131
131
  }
132
132
  let m;
@@ -143,16 +143,16 @@ function Kt(e) {
143
143
  function l(r) {
144
144
  return 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), v(async () => await r.api.post(r), e);
145
145
  }
146
- function s(r) {
146
+ function o(r) {
147
147
  return 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), v(async () => await r.api.get(r), e);
148
148
  }
149
149
  return {
150
- apiGet: s,
150
+ apiGet: o,
151
151
  apiPost: l,
152
152
  actionLoadingMsg: u,
153
153
  actionErrorMsg: t,
154
154
  clearErrors: d,
155
- deleteItem: _,
155
+ deleteItem: D,
156
156
  doAction: v,
157
157
  getAllItems: $,
158
158
  getItem: N,
@@ -181,11 +181,11 @@ var Fe = function() {
181
181
  };
182
182
  }
183
183
  if (y.length === 1) {
184
- var _ = y, N = v.ignoreCase ? t : e, $ = v.cmp || function(b, l) {
184
+ var D = y, N = v.ignoreCase ? t : e, $ = v.cmp || function(b, l) {
185
185
  return b < l ? -1 : b > l ? 1 : 0;
186
186
  };
187
187
  y = function(b, l) {
188
- return $(N(_(b)), N(_(l)));
188
+ return $(N(D(b)), N(D(l)));
189
189
  };
190
190
  }
191
191
  const W = { "-1": "", desc: "" };
@@ -194,9 +194,9 @@ var Fe = function() {
194
194
  } : y;
195
195
  }
196
196
  function d(y, v) {
197
- var L = typeof this == "function" && !this.firstBy ? this : !1, _ = u(y, v), N = L ? function($, W) {
198
- return L($, W) || _($, W);
199
- } : _;
197
+ var L = typeof this == "function" && !this.firstBy ? this : !1, D = u(y, v), N = L ? function($, W) {
198
+ return L($, W) || D($, W);
199
+ } : D;
200
200
  return N.thenBy = d, N;
201
201
  }
202
202
  return d.firstBy = d, d;
@@ -331,7 +331,7 @@ function jn(e, t) {
331
331
  function Kn(e, t) {
332
332
  if (t == null || e == null)
333
333
  return e;
334
- let u = e ?? "", d = t.replaceAll(" ", "").toLowerCase(), y = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((v) => ke.find((L) => L.values.some((_) => _ == v && _ != d))).filter((v) => v != null).sort(Fe.firstBy((v) => (v == null ? void 0 : v.value) ?? 0)).map((v) => v == null ? void 0 : v.short))].toString();
334
+ let u = e ?? "", d = t.replaceAll(" ", "").toLowerCase(), y = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((v) => ke.find((L) => L.values.some((D) => D == v && D != d))).filter((v) => v != null).sort(Fe.firstBy((v) => (v == null ? void 0 : v.value) ?? 0)).map((v) => v == null ? void 0 : v.short))].toString();
335
335
  return y.length > 0 ? y : void 0;
336
336
  }
337
337
  function Qn(e, t) {
@@ -461,118 +461,118 @@ function fn() {
461
461
  function sn(e) {
462
462
  const t = (e == null ? void 0 : e.buildHeaders) ?? L, u = (e == null ? void 0 : e.buildQuery) ?? y, d = (e == null ? void 0 : e.buildUrl) ?? v;
463
463
  function y(l) {
464
- let s = new URLSearchParams();
464
+ let o = new URLSearchParams();
465
465
  return Object.entries(l).forEach((r) => {
466
- r[1] != null && s.append(r[0], r[1]);
467
- }), l.filterBy && s.set("filterBy", l.filterBy), l.includeCount && s.set("includeCount", l.includeCount.toString()), l.includeDetails != null && s.set("includeDetails", l.includeDetails.toString()), l.includeInactive && s.set("includeInactive", l.includeInactive.toString()), l.properties && s.set("properties", l.properties.toString()), l.query && s.set("query", l.query.toString()), l.searchString && s.set("searchString", l.searchString), l.sortOrder && s.set("sortOrder", l.sortOrder), l.sortBy && s.set("sortBy", l.sortBy), l.takeFrom && s.set("takeFrom", l.takeFrom.toString()), l.takeAmount && s.set("takeAmount", l.takeAmount.toString()), l.other && Object.entries(l.other).forEach((r) => {
468
- r[1] != null && s.append(r[0], r[1].toString());
469
- }), s.toString();
466
+ r[1] != null && o.append(r[0], r[1]);
467
+ }), l.filterBy && o.set("filterBy", l.filterBy), l.includeCount && o.set("includeCount", l.includeCount.toString()), l.includeDetails != null && o.set("includeDetails", l.includeDetails.toString()), l.includeInactive && o.set("includeInactive", l.includeInactive.toString()), l.properties && o.set("properties", l.properties.toString()), l.query && o.set("query", l.query.toString()), l.searchString && o.set("searchString", l.searchString), l.sortOrder && o.set("sortOrder", l.sortOrder), l.sortBy && o.set("sortBy", l.sortBy), l.takeFrom && o.set("takeFrom", l.takeFrom.toString()), l.takeAmount && o.set("takeAmount", l.takeAmount.toString()), l.other && Object.entries(l.other).forEach((r) => {
468
+ r[1] != null && o.append(r[0], r[1].toString());
469
+ }), o.toString();
470
470
  }
471
471
  function v(l) {
472
- let s = Y(l.url) ?? void 0, r = Y(l.id);
473
- return s == null && l.nav != null && (e == null ? void 0 : e.findPath) != null && (s = e.findPath(l.nav)), l.additionalUrl != null && (s == null ? s = l.additionalUrl : s = _e(s, l.additionalUrl)), r != null && (s != null && s.includes("{id}") ? s = s.replaceAll("{id}", r) : s = _e(s, r)), l.params != null && (s = `${s}?${u(l.params)}`), l.finalUrl = s, l.finalUrl ?? "";
472
+ let o = Y(l.url) ?? void 0, r = Y(l.id);
473
+ return o == null && l.nav != null && (e == null ? void 0 : e.findPath) != null && (o = e.findPath(l.nav)), l.additionalUrl != null && (o == null ? o = l.additionalUrl : o = _e(o, l.additionalUrl)), r != null && (o != null && o.includes("{id}") ? o = o.replaceAll("{id}", r) : o = _e(o, r)), l.params != null && (o = `${o}?${u(l.params)}`), l.finalUrl = o, l.finalUrl ?? "";
474
474
  }
475
475
  function L(l) {
476
476
  var r, x;
477
- let s = { ...l.headers };
478
- return l.proxyID && (s.ManagedCompanyAccountID ?? (s.ManagedCompanyAccountID = l.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (s.authorization ?? (s.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), s["Content-Type"] ?? (s["Content-Type"] = l.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), s;
477
+ let o = { ...l.headers };
478
+ return l.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = l.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = l.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
479
479
  }
480
- async function _(l) {
481
- const s = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
480
+ async function D(l) {
481
+ const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
482
482
  let w = l.finalUrl, m = l.headers;
483
483
  w == null && (w = d(l)), l.overrideHeaders !== !0 && (m = t(l)), console.log(`Get from ${w}`);
484
- let D;
484
+ let I;
485
485
  try {
486
- if (D = await fetch(w, {
486
+ if (I = await fetch(w, {
487
487
  method: "GET",
488
488
  mode: "cors",
489
489
  cache: "no-cache",
490
490
  headers: m
491
- }), !D.ok) {
492
- let R = await D.text();
493
- throw new Error(R ?? D.statusText ?? "Get error");
491
+ }), !I.ok) {
492
+ let R = await I.text();
493
+ throw new Error(R ?? I.statusText ?? "Get error");
494
494
  }
495
- return x ? await D.text() : r ? await D.json() : D;
495
+ return x ? await I.text() : r ? await I.json() : I;
496
496
  } catch (R) {
497
- if (!s)
498
- return D;
497
+ if (!o)
498
+ return I;
499
499
  throw new Error(R);
500
500
  }
501
501
  }
502
502
  async function N(l) {
503
- const s = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
503
+ const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
504
504
  let w = l.finalUrl, m = l.headers;
505
505
  w == null && (w = d(l)), l.overrideHeaders !== !0 && (m = t(l)), console.log(`Get all from ${w}`);
506
- let D;
506
+ let I;
507
507
  try {
508
- if (D = await fetch(w, {
508
+ if (I = await fetch(w, {
509
509
  method: "GET",
510
510
  mode: "cors",
511
511
  cache: "no-cache",
512
512
  headers: m
513
- }), !D.ok) {
514
- let R = await D.text();
515
- throw new Error(R ?? D.statusText ?? "Get all error");
513
+ }), !I.ok) {
514
+ let R = await I.text();
515
+ throw new Error(R ?? I.statusText ?? "Get all error");
516
516
  }
517
- return x ? await D.text() : r ? await D.json() : D;
517
+ return x ? await I.text() : r ? await I.json() : I;
518
518
  } catch (R) {
519
- if (!s)
520
- return D;
519
+ if (!o)
520
+ return I;
521
521
  throw new Error(R);
522
522
  }
523
523
  }
524
524
  async function $(l) {
525
- const s = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
525
+ const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
526
526
  let w = l.finalUrl, m = l.headers;
527
527
  w == null && (w = d(l)), l.overrideHeaders !== !0 && (m = t(l)), console.log(`Post to ${w}`);
528
- let D;
528
+ let I;
529
529
  try {
530
- if (D = await fetch(w, {
530
+ if (I = await fetch(w, {
531
531
  method: "POST",
532
532
  mode: "cors",
533
533
  cache: "no-cache",
534
534
  headers: m,
535
535
  body: JSON.stringify(l.data)
536
- }), !D.ok) {
537
- let R = await D.text();
538
- throw new Error(R ?? D.statusText ?? "Post error!");
536
+ }), !I.ok) {
537
+ let R = await I.text();
538
+ throw new Error(R ?? I.statusText ?? "Post error!");
539
539
  }
540
- return x ? await D.text() : r ? await D.json() : D;
540
+ return x ? await I.text() : r ? await I.json() : I;
541
541
  } catch (R) {
542
- if (!s)
543
- return D;
544
- if (D.status == 200)
542
+ if (!o)
543
+ return I;
544
+ if (I.status == 200)
545
545
  return;
546
546
  throw new Error(R);
547
547
  }
548
548
  }
549
549
  async function W(l) {
550
- const s = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
550
+ const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
551
551
  let w = l.finalUrl, m = l.headers;
552
552
  w == null && (w = d(l)), l.overrideHeaders !== !0 && (m = t(l)), console.log(`Patch to ${w}`);
553
- let D;
553
+ let I;
554
554
  try {
555
- if (D = await fetch(w, {
555
+ if (I = await fetch(w, {
556
556
  method: "PATCH",
557
557
  mode: "cors",
558
558
  cache: "no-cache",
559
559
  headers: m,
560
560
  body: JSON.stringify(l.data)
561
- }), !D.ok) {
562
- let R = await D.text();
563
- throw new Error(R ?? D.statusText ?? "Patch error!");
561
+ }), !I.ok) {
562
+ let R = await I.text();
563
+ throw new Error(R ?? I.statusText ?? "Patch error!");
564
564
  }
565
- return x ? await D.text() : r ? await D.json() : D;
565
+ return x ? await I.text() : r ? await I.json() : I;
566
566
  } catch (R) {
567
- if (!s)
568
- return D;
569
- if (D.status == 200)
567
+ if (!o)
568
+ return I;
569
+ if (I.status == 200)
570
570
  return;
571
571
  throw new Error(R);
572
572
  }
573
573
  }
574
574
  async function b(l) {
575
- const s = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
575
+ const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
576
576
  let r = l.finalUrl, x = l.headers;
577
577
  r == null && (r = d(l)), l.overrideHeaders !== !0 && (x = t(l)), console.log(`Delete ${r}`);
578
578
  let w;
@@ -585,7 +585,7 @@ function sn(e) {
585
585
  body: JSON.stringify(l.data)
586
586
  }), w.status == 200 ? void 0 : w.statusText;
587
587
  } catch (m) {
588
- if (!s)
588
+ if (!o)
589
589
  return w;
590
590
  throw new Error(m);
591
591
  }
@@ -595,7 +595,7 @@ function sn(e) {
595
595
  buildQuery: u,
596
596
  buildUrl: d,
597
597
  deleteItem: b,
598
- get: _,
598
+ get: D,
599
599
  getAll: N,
600
600
  patch: W,
601
601
  post: $
@@ -633,29 +633,29 @@ function mn(e) {
633
633
  function y(g) {
634
634
  if (g == null)
635
635
  return !0;
636
- var A = e.getAuthItem != null ? e.getAuthItem(g) : null;
637
- if (A == null)
636
+ var _ = e.getAuthItem != null ? e.getAuthItem(g) : null;
637
+ if (_ == null)
638
638
  return !1;
639
- if (A.requiresAuth === !1)
639
+ if (_.requiresAuth === !1)
640
640
  return !0;
641
- const h = Y(d);
642
- if (h.isSuspended && A.ignoreSuspension !== !0)
641
+ const s = Y(d);
642
+ if (s.isSuspended && _.ignoreSuspension !== !0)
643
643
  return !1;
644
- if (h.isGlobalAdmin)
644
+ if (s.isGlobalAdmin)
645
645
  return !0;
646
- if (A.permissions != null) {
647
- for (var E = 0; E < A.permissions.length; E++)
648
- if (!v(A.permissions[E]))
646
+ if (_.permissions != null) {
647
+ for (var E = 0; E < _.permissions.length; E++)
648
+ if (!v(_.permissions[E]))
649
649
  return !1;
650
650
  }
651
651
  return !0;
652
652
  }
653
653
  function v(g) {
654
- const A = Y(d);
655
- if (A.userPermissions != null)
656
- for (var h = 0; h < A.userPermissions.length; h++) {
657
- var E = A.userPermissions[h].split(".");
658
- if (A.userPermissions[h] == "everything.edit" || g == E[0] && E.length > 1 && E[1] == "edit")
654
+ const _ = Y(d);
655
+ if (_.userPermissions != null)
656
+ for (var s = 0; s < _.userPermissions.length; s++) {
657
+ var E = _.userPermissions[s].split(".");
658
+ if (_.userPermissions[s] == "everything.edit" || g == E[0] && E.length > 1 && E[1] == "edit")
659
659
  return !0;
660
660
  }
661
661
  return !1;
@@ -663,71 +663,71 @@ function mn(e) {
663
663
  function L(g) {
664
664
  if (g == null)
665
665
  return !0;
666
- var A = e.getAuthItem != null ? e.getAuthItem(g) : null;
667
- if (A == null)
666
+ var _ = e.getAuthItem != null ? e.getAuthItem(g) : null;
667
+ if (_ == null)
668
668
  return !1;
669
- if (A.requiresAuth === !1)
669
+ if (_.requiresAuth === !1)
670
670
  return !0;
671
- const h = Y(d);
672
- if (h.isSuspended && A.ignoreSuspension !== !0)
671
+ const s = Y(d);
672
+ if (s.isSuspended && _.ignoreSuspension !== !0)
673
673
  return !1;
674
- if (h.isGlobalAdmin)
674
+ if (s.isGlobalAdmin)
675
675
  return !0;
676
- if (A.permissions != null) {
677
- for (var E = 0; E < A.permissions.length; E++)
678
- if (!_(A.permissions[E]))
676
+ if (_.permissions != null) {
677
+ for (var E = 0; E < _.permissions.length; E++)
678
+ if (!D(_.permissions[E]))
679
679
  return !1;
680
680
  }
681
681
  return !0;
682
682
  }
683
- function _(g) {
684
- const A = Y(d);
685
- if (A.userPermissions != null)
686
- for (var h = 0; h < A.userPermissions.length; h++) {
687
- var E = A.userPermissions[h].split(".");
688
- if (g == E[0] || g == "everything" || A.userPermissions[h] == "everything.view" || A.userPermissions[h] == "everything.edit")
683
+ function D(g) {
684
+ const _ = Y(d);
685
+ if (_.userPermissions != null)
686
+ for (var s = 0; s < _.userPermissions.length; s++) {
687
+ var E = _.userPermissions[s].split(".");
688
+ if (g == E[0] || g == "everything" || _.userPermissions[s] == "everything.view" || _.userPermissions[s] == "everything.edit")
689
689
  return !0;
690
690
  }
691
691
  return !1;
692
692
  }
693
- function N(g, A, h) {
693
+ function N(g, _, s) {
694
694
  let E = !0;
695
- return Y(d).isGlobalAdmin ? !0 : (A != null && A.length > 0 && A.forEach((Q) => {
696
- h == "edit" ? v(Q) || (E = !1) : _(Q) || (E = !1);
695
+ return Y(d).isGlobalAdmin ? !0 : (_ != null && _.length > 0 && _.forEach((Q) => {
696
+ s == "edit" ? v(Q) || (E = !1) : D(Q) || (E = !1);
697
697
  }), g != null && g.length > 0 && (g.some((Q) => l(Q)) || (E = !1)), E);
698
698
  }
699
- function $(g, A = !1) {
700
- var h = e.getAuthItem != null ? e.getAuthItem(g) : null;
699
+ function $(g, _ = !1) {
700
+ var s = e.getAuthItem != null ? e.getAuthItem(g) : null;
701
701
  let E = !1;
702
- if (h == null)
702
+ if (s == null)
703
703
  return !1;
704
- let j = h.subscriptions ?? [], Q = h.permissions ?? [], ee = N(j, Q, "view");
705
- return ee || !A || !Ne(h.children) ? ee : ((h == null ? void 0 : h.children) != null && h.children.forEach((le) => {
704
+ let j = s.subscriptions ?? [], Q = s.permissions ?? [], ee = N(j, Q, "view");
705
+ return ee || !_ || !Ne(s.children) ? ee : ((s == null ? void 0 : s.children) != null && s.children.forEach((le) => {
706
706
  $(le, !0) && (E = !0);
707
707
  }), E);
708
708
  }
709
709
  function W(g) {
710
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (A, h) => {
711
- const E = _e(Fr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${h}`);
712
- return A ? `${E}&redirect_path=${A}` : E;
710
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (_, s) => {
711
+ const E = _e(Fr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
712
+ return _ ? `${E}&redirect_path=${_}` : E;
713
713
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(g, u.value) ?? "" : "";
714
714
  }
715
715
  function b(g) {
716
- var h;
717
- return g == null ? 0 : ((h = (e.subscriptionOptions ?? []).find((E) => E.code == g)) == null ? void 0 : h.value) ?? 0;
716
+ var s;
717
+ return g == null ? 0 : ((s = (e.subscriptionOptions ?? []).find((E) => E.code == g)) == null ? void 0 : s.value) ?? 0;
718
718
  }
719
719
  function l(g) {
720
- const A = Y(d);
721
- if (A.subscriptionCode == null)
720
+ const _ = Y(d);
721
+ if (_.subscriptionCode == null)
722
722
  return !1;
723
- if (A.subscriptionCode == g)
723
+ if (_.subscriptionCode == g)
724
724
  return !0;
725
- const h = b(g), E = b(A.subscriptionCode);
726
- return h <= E;
725
+ const s = b(g), E = b(_.subscriptionCode);
726
+ return s <= E;
727
727
  }
728
- function s(g) {
729
- const h = g.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), E = decodeURIComponent(
730
- atob(h).split("").map(function(j) {
728
+ function o(g) {
729
+ const s = g.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), E = decodeURIComponent(
730
+ atob(s).split("").map(function(j) {
731
731
  return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
732
732
  }).join("")
733
733
  );
@@ -735,42 +735,42 @@ function mn(e) {
735
735
  }
736
736
  function r(g) {
737
737
  if (d.value = void 0, R(), g != null) {
738
- const A = jr();
739
- A.currentRoute.value.name != g && A.push({ name: g });
738
+ const _ = jr();
739
+ _.currentRoute.value.name != g && _.push({ name: g });
740
740
  }
741
741
  }
742
742
  function x(g) {
743
- var h;
744
- Y(d).isLoggedIn || ((h = e.demo) == null || h.endDemo(), T() && (r(), window.location.href = W(g)));
743
+ var s;
744
+ Y(d).isLoggedIn || ((s = e.demo) == null || s.endDemo(), T() && (r(), window.location.href = W(g)));
745
745
  }
746
- async function w(g, A) {
746
+ async function w(g, _) {
747
747
  return e.getToken ?? (e.getToken = async () => {
748
- let h = g, E = A, j = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
749
- if (h == null || E == null)
748
+ let s = g, E = _, j = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
749
+ if (s == null || E == null)
750
750
  throw new Error("Code and State required in OAuth token process");
751
751
  if (E != u.value)
752
752
  throw new Error("state does not match");
753
753
  let ee = "";
754
- e.getTokenUrl ?? (e.getTokenUrl = () => _e(Fr(), "token")), ee = e.getTokenUrl(h, `${window.location.origin}/authentication`, j, Q);
754
+ e.getTokenUrl ?? (e.getTokenUrl = () => _e(Fr(), "token")), ee = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
755
755
  const le = {};
756
- le.grant_type = j, le.code = h, le.redirect_uri = `${window.location.origin}/authentication`, le.client_id = Q;
756
+ le.grant_type = j, le.code = s, le.redirect_uri = `${window.location.origin}/authentication`, le.client_id = Q;
757
757
  const F = await fn().post({
758
758
  additionalUrl: ee,
759
759
  data: le
760
760
  });
761
761
  m(F.access_token);
762
- }), await e.getToken(g, A);
762
+ }), await e.getToken(g, _);
763
763
  }
764
764
  function m(g) {
765
765
  if (g != null && (e.demo == null || !e.demo.isDemoing.value)) {
766
- const A = s(g);
767
- D(A), e.processTokenPayload != null && e.processTokenPayload(d, A);
766
+ const _ = o(g);
767
+ I(_, g), e.processTokenPayload != null && e.processTokenPayload(d, _);
768
768
  }
769
769
  }
770
- function D(g) {
771
- var h;
772
- const A = d.value;
773
- A.expiresOn = g.ExpiresOn, A.isGlobalAdmin = g.IsGlobalAdmin == "True", A.isLoggedIn = !0, A.permissions = g.Permissions, A.subscriptionCode = g.Subscription, A.timeZone ?? (A.timeZone = e.defaultTimeZone ?? Ve), A.token = g, A.userID = g.UserLoginID, A.userPermissions = ((h = g.Permissions) == null ? void 0 : h.split(",")) ?? [];
770
+ function I(g, _) {
771
+ var E;
772
+ const s = d.value;
773
+ s.expiresOn = g.ExpiresOn, s.isGlobalAdmin = g.IsGlobalAdmin == "True", s.isLoggedIn = !0, s.permissions = g.Permissions, s.subscriptionCode = g.Subscription, s.timeZone ?? (s.timeZone = e.defaultTimeZone ?? Ve), s.token = _, s.userID = g.UserLoginID, s.userPermissions = ((E = g.Permissions) == null ? void 0 : E.split(",")) ?? [];
774
774
  }
775
775
  function R() {
776
776
  var g;
@@ -787,15 +787,15 @@ function mn(e) {
787
787
  const g = Y(d);
788
788
  if (g == null || g.expiresOn == null)
789
789
  return !0;
790
- const A = ue.fromFormat(g.expiresOn, t), h = ue.utc();
791
- return A <= h;
790
+ const _ = ue.fromFormat(g.expiresOn, t), s = ue.utc();
791
+ return _ <= s;
792
792
  }
793
793
  return R(), vr = {
794
794
  authState: u.value,
795
795
  canEdit: y,
796
796
  canEditPermit: v,
797
797
  canView: L,
798
- canViewPermit: _,
798
+ canViewPermit: D,
799
799
  credentials: d,
800
800
  doShow: N,
801
801
  doShowByNav: $,
@@ -880,11 +880,11 @@ function dn(e) {
880
880
  function L(b) {
881
881
  var l;
882
882
  if (u != null) {
883
- const s = u.themes.value.dark, r = u.themes.value.light;
884
- s.colors.primary = b, r.colors.primary = b, (l = document.querySelector('meta[name="theme-color"]')) == null || l.setAttribute("content", b);
883
+ const o = u.themes.value.dark, r = u.themes.value.light;
884
+ o.colors.primary = b, r.colors.primary = b, (l = document.querySelector('meta[name="theme-color"]')) == null || l.setAttribute("content", b);
885
885
  }
886
886
  }
887
- function _() {
887
+ function D() {
888
888
  t.value.drawer = !t.value.drawer;
889
889
  }
890
890
  function N() {
@@ -896,8 +896,8 @@ function dn(e) {
896
896
  function W() {
897
897
  var b;
898
898
  if (u != null) {
899
- const l = u.themes.value.dark, s = u.themes.value.light;
900
- l.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? ir).primary, s.colors.primary = (t.value.light ?? e.defaultLightTheme ?? cr).primary, (b = document.querySelector('meta[name="theme-color"]')) == null || b.setAttribute("content", "");
899
+ const l = u.themes.value.dark, o = u.themes.value.light;
900
+ l.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? ir).primary, o.colors.primary = (t.value.light ?? e.defaultLightTheme ?? cr).primary, (b = document.querySelector('meta[name="theme-color"]')) == null || b.setAttribute("content", "");
901
901
  }
902
902
  }
903
903
  return d(), $e(t, () => {
@@ -907,7 +907,7 @@ function dn(e) {
907
907
  resetCosmetics: v,
908
908
  setTemporaryColor: L,
909
909
  // setVuetifyInstance,
910
- toggleDrawer: _,
910
+ toggleDrawer: D,
911
911
  toggleDrawerStick: N,
912
912
  toggleLightDark: $,
913
913
  undoTemporaryColor: W
@@ -929,15 +929,15 @@ function vn() {
929
929
  var v = [];
930
930
  for (let r = 0; r < t.length; r++) {
931
931
  const x = t[r];
932
- var L = {}, _ = [];
932
+ var L = {}, D = [];
933
933
  for (let w = 0; w < y.length; w++) {
934
934
  const m = y[w];
935
935
  var N = null;
936
936
  typeof m.value == "function" ? N = m.value(x) : typeof m.value == "string" && (N = mr(x, m.value)), m.itemText != null ? L[m.header] = mr(N, m.itemText) : L[m.header] = N;
937
937
  }
938
- v.push(L), Ne(_) && _.forEach((w) => {
938
+ v.push(L), Ne(D) && D.forEach((w) => {
939
939
  v.push(w);
940
- }), _ = [];
940
+ }), D = [];
941
941
  }
942
942
  var $ = [];
943
943
  $.push(y.map((r) => r.header)), v.forEach((r) => {
@@ -952,9 +952,9 @@ function vn() {
952
952
  if (window.navigator.msSaveOrOpenBlob)
953
953
  window.navigator.msSaveOrOpenBlob(b, d);
954
954
  else {
955
- var l = document.createElement("a"), s = URL.createObjectURL(b);
956
- l.href = s, l.download = d, document.body.appendChild(l), l.click(), setTimeout(function() {
957
- document.body.removeChild(l), window.URL.revokeObjectURL(s);
955
+ var l = document.createElement("a"), o = URL.createObjectURL(b);
956
+ l.href = o, l.download = d, document.body.appendChild(l), l.click(), setTimeout(function() {
957
+ document.body.removeChild(l), window.URL.revokeObjectURL(o);
958
958
  }, 0);
959
959
  }
960
960
  }
@@ -968,34 +968,34 @@ function ia() {
968
968
  }
969
969
  function gn(e) {
970
970
  function t() {
971
- var _;
972
- return ((_ = d()) == null ? void 0 : _.startOf("day").toUTC().toString()) ?? "";
971
+ var D;
972
+ return ((D = d()) == null ? void 0 : D.startOf("day").toUTC().toString()) ?? "";
973
973
  }
974
974
  function u() {
975
- var _;
976
- return ((_ = d()) == null ? void 0 : _.endOf("day").toUTC().toString()) ?? "";
975
+ var D;
976
+ return ((D = d()) == null ? void 0 : D.endOf("day").toUTC().toString()) ?? "";
977
977
  }
978
- function d(_, N) {
979
- return _ == null ? ue.utc().setZone(e.getTimeZone()) : N ? ue.fromFormat(_, N, { zone: e.getTimeZone() }) : ue.fromISO(_, { zone: e.getTimeZone() });
978
+ function d(D, N) {
979
+ return D == null ? ue.utc().setZone(e.getTimeZone()) : N ? ue.fromFormat(D, N, { zone: e.getTimeZone() }) : ue.fromISO(D, { zone: e.getTimeZone() });
980
980
  }
981
- function y(_, N, $) {
982
- if (_ == null) {
981
+ function y(D, N, $) {
982
+ if (D == null) {
983
983
  const b = ue.utc().setZone(e.getTimeZone());
984
984
  return N ? b.toFormat(N) : b.toString();
985
985
  }
986
- if (_ == "Invalid DateTime")
986
+ if (D == "Invalid DateTime")
987
987
  return "";
988
- const W = $ ? ue.fromFormat(_, $, { zone: e.getTimeZone() }) : ue.fromISO(_, { zone: e.getTimeZone() });
988
+ const W = $ ? ue.fromFormat(D, $, { zone: e.getTimeZone() }) : ue.fromISO(D, { zone: e.getTimeZone() });
989
989
  return N ? W.toFormat(N) : W == null ? void 0 : W.toString();
990
990
  }
991
- function v(_, N) {
992
- return _ == null ? ue.utc() : N ? ue.fromFormat(_, N) : ue.fromISO(_);
991
+ function v(D, N) {
992
+ return D == null ? ue.utc() : N ? ue.fromFormat(D, N) : ue.fromISO(D);
993
993
  }
994
- function L(_, N, $) {
995
- if (_ == null)
994
+ function L(D, N, $) {
995
+ if (D == null)
996
996
  return N ? ue.utc().toFormat(N) : ue.utc().toString();
997
997
  {
998
- const W = $ ? ue.fromFormat(_, $) : ue.fromISO(_);
998
+ const W = $ ? ue.fromFormat(D, $) : ue.fromISO(D);
999
999
  return N ? W.toFormat(N) : W.toString();
1000
1000
  }
1001
1001
  }
@@ -1047,37 +1047,37 @@ function oa(e, t, u = {}) {
1047
1047
  stopPropagation: y = !1,
1048
1048
  axis: v = "both"
1049
1049
  } = u, L = { capture: u.capture ?? !0 };
1050
- let _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = { x: 0, y: 0 }, W = [], b = [], l = z(!1);
1051
- function s(B) {
1050
+ let D = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = { x: 0, y: 0 }, W = [], b = [], l = z(!1);
1051
+ function o(B) {
1052
1052
  Y(d) && B.preventDefault(), Y(y) && B.stopPropagation();
1053
1053
  }
1054
1054
  function r(B) {
1055
- var h;
1055
+ var s;
1056
1056
  const S = Y(e);
1057
1057
  if (!S)
1058
1058
  return;
1059
- const T = S.$el, A = B.type === "touchstart" && B.touches.length > 0 ? B.touches[0] : B;
1060
- $ = { x: A.clientX, y: A.clientY }, N = {
1059
+ const T = S.$el, _ = B.type === "touchstart" && B.touches.length > 0 ? B.touches[0] : B;
1060
+ $ = { x: _.clientX, y: _.clientY }, N = {
1061
1061
  x: T.offsetLeft,
1062
1062
  y: T.offsetTop
1063
- }, _ = {
1063
+ }, D = {
1064
1064
  x: T.offsetLeft,
1065
1065
  y: T.offsetTop
1066
- }, ((h = u.onStart) == null ? void 0 : h.call(u, $, B)) !== !1 && (b.push(se("mousemove", x)), b.push(se("touchmove", x)), b.push(se("mouseup", w)), b.push(se("touchend", w)), s(B));
1066
+ }, ((s = u.onStart) == null ? void 0 : s.call(u, $, B)) !== !1 && (b.push(se("mousemove", x)), b.push(se("touchmove", x)), b.push(se("mouseup", w)), b.push(se("touchend", w)), o(B));
1067
1067
  }
1068
1068
  function x(B) {
1069
1069
  var E;
1070
1070
  if (!$ || !Y(e))
1071
1071
  return;
1072
1072
  const g = B.type === "touchmove" && B.touches.length > 0 ? B.touches[0] : B;
1073
- let A = g.clientX - $.x, h = g.clientY - $.y;
1074
- (v === "x" || v === "both") && (_.x = N.x + A), (v === "y" || v === "both") && (_.y = N.y + h), (E = u.onMove) == null || E.call(u, _, B), s(B), m(_);
1073
+ let _ = g.clientX - $.x, s = g.clientY - $.y;
1074
+ (v === "x" || v === "both") && (D.x = N.x + _), (v === "y" || v === "both") && (D.y = N.y + s), (E = u.onMove) == null || E.call(u, D, B), o(B), m(D);
1075
1075
  }
1076
1076
  function w(B) {
1077
1077
  var S;
1078
1078
  document.documentElement.style.cursor = "", b.forEach((T) => {
1079
1079
  T();
1080
- }), b.length = 0, (S = u.onEnd) == null || S.call(u, _, B), s(B);
1080
+ }), b.length = 0, (S = u.onEnd) == null || S.call(u, D, B), o(B);
1081
1081
  }
1082
1082
  function m(B) {
1083
1083
  const S = Y(e);
@@ -1086,7 +1086,7 @@ function oa(e, t, u = {}) {
1086
1086
  const T = S.$el;
1087
1087
  T.style.left = `${B.x}px`, T.style.top = `${B.y}px`;
1088
1088
  }
1089
- function D() {
1089
+ function I() {
1090
1090
  if (Y(l))
1091
1091
  return;
1092
1092
  const B = Y(t);
@@ -1109,7 +1109,7 @@ function oa(e, t, u = {}) {
1109
1109
  return {
1110
1110
  draggingIsOn: l,
1111
1111
  turnDraggableOff: R,
1112
- turnDraggableOn: D
1112
+ turnDraggableOn: I
1113
1113
  };
1114
1114
  }
1115
1115
  let br;
@@ -1117,95 +1117,95 @@ function ha() {
1117
1117
  return br;
1118
1118
  }
1119
1119
  function bn(e) {
1120
- function t(h, E, j) {
1121
- return h ? pt(h) ? j ?? "" : e.dates.tzString(h, E) : j ?? h ?? "";
1120
+ function t(s, E, j) {
1121
+ return s ? pt(s) ? j ?? "" : e.dates.tzString(s, E) : j ?? s ?? "";
1122
1122
  }
1123
- function u(h) {
1124
- if (!h)
1123
+ function u(s) {
1124
+ if (!s)
1125
1125
  return "";
1126
- if (typeof h != "object")
1127
- return h;
1126
+ if (typeof s != "object")
1127
+ return s;
1128
1128
  var E = "";
1129
- return h.companyAccount != null && (E = h.companyAccount.companyName + " | "), h.addressLineOne != null && (E = E + h.addressLineOne + " "), h.streetNumber != null && (E = E + h.streetNumber + " "), h.streetName != null && (E = E + h.streetName + ", "), h.suburb != null && (E = E + h.suburb + " "), h.state != null && (E = E + h.state + " "), h.postcode != null && (E = E + h.postcode), E;
1129
+ return s.companyAccount != null && (E = s.companyAccount.companyName + " | "), s.addressLineOne != null && (E = E + s.addressLineOne + " "), s.streetNumber != null && (E = E + s.streetNumber + " "), s.streetName != null && (E = E + s.streetName + ", "), s.suburb != null && (E = E + s.suburb + " "), s.state != null && (E = E + s.state + " "), s.postcode != null && (E = E + s.postcode), E;
1130
1130
  }
1131
- function d(h) {
1132
- if (typeof h != "number")
1133
- return h;
1131
+ function d(s) {
1132
+ if (typeof s != "number")
1133
+ return s;
1134
1134
  var E = new Intl.NumberFormat("en-US", {
1135
1135
  style: "currency",
1136
1136
  currency: "AUD",
1137
1137
  minimumFractionDigits: 2
1138
1138
  });
1139
- return E.format(h);
1139
+ return E.format(s);
1140
1140
  }
1141
- function y(h, E) {
1142
- return t(h, "ccc | d LLL", E);
1141
+ function y(s, E) {
1142
+ return t(s, "ccc | d LLL", E);
1143
1143
  }
1144
- function v(h, E) {
1145
- return t(h, "d LLL", E);
1144
+ function v(s, E) {
1145
+ return t(s, "d LLL", E);
1146
1146
  }
1147
- function L(h, E) {
1148
- return t(h, "ccc", E);
1147
+ function L(s, E) {
1148
+ return t(s, "ccc", E);
1149
1149
  }
1150
- function _(h, E) {
1151
- return t(h, "ccc dd LLL yyyy", E);
1150
+ function D(s, E) {
1151
+ return t(s, "ccc dd LLL yyyy", E);
1152
1152
  }
1153
- function N(h, E) {
1154
- return t(h, "ccc dd LLL @ hh:mm a", E);
1153
+ function N(s, E) {
1154
+ return t(s, "ccc dd LLL @ hh:mm a", E);
1155
1155
  }
1156
- function $(h) {
1157
- return new Intl.NumberFormat().format(h);
1156
+ function $(s) {
1157
+ return new Intl.NumberFormat().format(s);
1158
1158
  }
1159
- function W(h) {
1160
- return h == 0 ? "" : new Intl.NumberFormat().format(h);
1159
+ function W(s) {
1160
+ return s == 0 ? "" : new Intl.NumberFormat().format(s);
1161
1161
  }
1162
- function b(h) {
1163
- if (h == 0)
1162
+ function b(s) {
1163
+ if (s == 0)
1164
1164
  return "";
1165
- var E = new Intl.NumberFormat().format(h);
1166
- return h > 0 ? "+" + E : E;
1165
+ var E = new Intl.NumberFormat().format(s);
1166
+ return s > 0 ? "+" + E : E;
1167
1167
  }
1168
- function l(h, E) {
1169
- return e.dates.utcString(h, E);
1168
+ function l(s, E) {
1169
+ return e.dates.utcString(s, E);
1170
1170
  }
1171
- function s(h) {
1172
- return Qr(h, !1);
1171
+ function o(s) {
1172
+ return Qr(s, !1);
1173
1173
  }
1174
- function r(h) {
1175
- if (!h)
1174
+ function r(s) {
1175
+ if (!s)
1176
1176
  return "";
1177
- if (typeof h != "object")
1178
- return h;
1177
+ if (typeof s != "object")
1178
+ return s;
1179
1179
  var E = "";
1180
- return h.addressLineOne != null && (E = h.addressLineOne + " "), h.streetNumber != null && (E = E + h.streetNumber + " "), h.streetName != null && (E = E + h.streetName + " "), h.suburb != null && (E = E + h.suburb + " "), h.state != null && (E = E + h.state + " "), h.postcode != null && (E = E + h.postcode), E = E.replaceAll(",", " "), E;
1180
+ return s.addressLineOne != null && (E = s.addressLineOne + " "), s.streetNumber != null && (E = E + s.streetNumber + " "), s.streetName != null && (E = E + s.streetName + " "), s.suburb != null && (E = E + s.suburb + " "), s.state != null && (E = E + s.state + " "), s.postcode != null && (E = E + s.postcode), E = E.replaceAll(",", " "), E;
1181
1181
  }
1182
- function x(h, E) {
1183
- return t(h, "ddd DD MMM YYYY", E);
1182
+ function x(s, E) {
1183
+ return t(s, "ddd DD MMM YYYY", E);
1184
1184
  }
1185
- function w(h, E) {
1186
- return t(h, "ccc dd LLL yyyy hh:mm a", E);
1185
+ function w(s, E) {
1186
+ return t(s, "ccc dd LLL yyyy hh:mm a", E);
1187
1187
  }
1188
- function m(h) {
1188
+ function m(s) {
1189
1189
  var E = new Intl.NumberFormat("en-US", {
1190
1190
  style: "percent",
1191
1191
  minimumFractionDigits: 2
1192
1192
  });
1193
- return E.format(h);
1193
+ return E.format(s);
1194
1194
  }
1195
- function D(h) {
1196
- return h.replaceAll(",", " ");
1195
+ function I(s) {
1196
+ return s.replaceAll(",", " ");
1197
1197
  }
1198
- function R(h, E) {
1199
- return t(h, "dd LLL yyyy", E);
1198
+ function R(s, E) {
1199
+ return t(s, "dd LLL yyyy", E);
1200
1200
  }
1201
- function B(h, E) {
1202
- return t(h, "dd LLL yyyy hh:mm a", E);
1201
+ function B(s, E) {
1202
+ return t(s, "dd LLL yyyy hh:mm a", E);
1203
1203
  }
1204
- function S(h, E) {
1205
- return t(h, "hh:mm a", E);
1204
+ function S(s, E) {
1205
+ return t(s, "hh:mm a", E);
1206
1206
  }
1207
- function T(h) {
1208
- return h == null ? "" : typeof h == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: h }).toFormat("T") : typeof h == "string" ? e.dates.tzString(h, "t") : "unknown";
1207
+ function T(s) {
1208
+ return s == null ? "" : typeof s == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: s }).toFormat("T") : typeof s == "string" ? e.dates.tzString(s, "t") : "unknown";
1209
1209
  }
1210
1210
  const g = {
1211
1211
  toCompanyNameAndLocationLine: u,
@@ -1213,33 +1213,33 @@ function bn(e) {
1213
1213
  toDayDate: y,
1214
1214
  toDayMonth: v,
1215
1215
  toDayOfWeek: L,
1216
- toDayShortDate: _,
1216
+ toDayShortDate: D,
1217
1217
  toDayShortDateAndTime: N,
1218
1218
  toDisplayNumber: $,
1219
1219
  toDisplayNumberOver: W,
1220
1220
  toDisplayNumberSigned: b,
1221
1221
  toFormat: l,
1222
- toLocationLine: s,
1222
+ toLocationLine: o,
1223
1223
  toLocationLineNoCommas: r,
1224
1224
  toLongDate: x,
1225
1225
  toLongDateAndTime: w,
1226
1226
  toPercent: m,
1227
- toPrettyCSV: D,
1227
+ toPrettyCSV: I,
1228
1228
  toShortDate: R,
1229
1229
  toShortDateAndTime: B,
1230
1230
  toTime: S,
1231
1231
  toTimeOfDay: T
1232
1232
  };
1233
- function A(h) {
1234
- if (h != null) {
1235
- let E = h;
1233
+ function _(s) {
1234
+ if (s != null) {
1235
+ let E = s;
1236
1236
  if (E != null && g[E] != null)
1237
1237
  return g[E];
1238
1238
  }
1239
1239
  return (E) => E;
1240
1240
  }
1241
1241
  return br = {
1242
- findFilter: A,
1242
+ findFilter: _,
1243
1243
  ...g
1244
1244
  }, br;
1245
1245
  }
@@ -1264,66 +1264,66 @@ var pr = { exports: {} };
1264
1264
  var b = typeof He == "function" && He;
1265
1265
  if (!W && b)
1266
1266
  return b($, !0);
1267
- if (_)
1268
- return _($, !0);
1267
+ if (D)
1268
+ return D($, !0);
1269
1269
  var l = new Error("Cannot find module '" + $ + "'");
1270
1270
  throw l.code = "MODULE_NOT_FOUND", l;
1271
1271
  }
1272
- var s = y[$] = { exports: {} };
1273
- d[$][0].call(s.exports, function(r) {
1272
+ var o = y[$] = { exports: {} };
1273
+ d[$][0].call(o.exports, function(r) {
1274
1274
  var x = d[$][1][r];
1275
1275
  return L(x || r);
1276
- }, s, s.exports, u, d, y, v);
1276
+ }, o, o.exports, u, d, y, v);
1277
1277
  }
1278
1278
  return y[$].exports;
1279
1279
  }
1280
- for (var _ = typeof He == "function" && He, N = 0; N < v.length; N++)
1280
+ for (var D = typeof He == "function" && He, N = 0; N < v.length; N++)
1281
1281
  L(v[N]);
1282
1282
  return L;
1283
1283
  }({ 1: [function(u, d, y) {
1284
1284
  (function(v) {
1285
- var L = v.MutationObserver || v.WebKitMutationObserver, _;
1285
+ var L = v.MutationObserver || v.WebKitMutationObserver, D;
1286
1286
  if (L) {
1287
1287
  var N = 0, $ = new L(r), W = v.document.createTextNode("");
1288
1288
  $.observe(W, {
1289
1289
  characterData: !0
1290
- }), _ = function() {
1290
+ }), D = function() {
1291
1291
  W.data = N = ++N % 2;
1292
1292
  };
1293
1293
  } else if (!v.setImmediate && typeof v.MessageChannel < "u") {
1294
1294
  var b = new v.MessageChannel();
1295
- b.port1.onmessage = r, _ = function() {
1295
+ b.port1.onmessage = r, D = function() {
1296
1296
  b.port2.postMessage(0);
1297
1297
  };
1298
1298
  } else
1299
- "document" in v && "onreadystatechange" in v.document.createElement("script") ? _ = function() {
1299
+ "document" in v && "onreadystatechange" in v.document.createElement("script") ? D = function() {
1300
1300
  var w = v.document.createElement("script");
1301
1301
  w.onreadystatechange = function() {
1302
1302
  r(), w.onreadystatechange = null, w.parentNode.removeChild(w), w = null;
1303
1303
  }, v.document.documentElement.appendChild(w);
1304
- } : _ = function() {
1304
+ } : D = function() {
1305
1305
  setTimeout(r, 0);
1306
1306
  };
1307
- var l, s = [];
1307
+ var l, o = [];
1308
1308
  function r() {
1309
1309
  l = !0;
1310
- for (var w, m, D = s.length; D; ) {
1311
- for (m = s, s = [], w = -1; ++w < D; )
1310
+ for (var w, m, I = o.length; I; ) {
1311
+ for (m = o, o = [], w = -1; ++w < I; )
1312
1312
  m[w]();
1313
- D = s.length;
1313
+ I = o.length;
1314
1314
  }
1315
1315
  l = !1;
1316
1316
  }
1317
1317
  d.exports = x;
1318
1318
  function x(w) {
1319
- s.push(w) === 1 && !l && _();
1319
+ o.push(w) === 1 && !l && D();
1320
1320
  }
1321
1321
  }).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
1322
1322
  }, {}], 2: [function(u, d, y) {
1323
1323
  var v = u(1);
1324
1324
  function L() {
1325
1325
  }
1326
- var _ = {}, N = ["REJECTED"], $ = ["FULFILLED"], W = ["PENDING"];
1326
+ var D = {}, N = ["REJECTED"], $ = ["FULFILLED"], W = ["PENDING"];
1327
1327
  d.exports = b;
1328
1328
  function b(S) {
1329
1329
  if (typeof S != "function")
@@ -1337,8 +1337,8 @@ var pr = { exports: {} };
1337
1337
  return this;
1338
1338
  var g = new this.constructor(L);
1339
1339
  if (this.state !== W) {
1340
- var A = this.state === $ ? S : T;
1341
- s(g, A, this.outcome);
1340
+ var _ = this.state === $ ? S : T;
1341
+ o(g, _, this.outcome);
1342
1342
  } else
1343
1343
  this.queue.push(new l(g, S, T));
1344
1344
  return g;
@@ -1347,41 +1347,41 @@ var pr = { exports: {} };
1347
1347
  this.promise = S, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof g == "function" && (this.onRejected = g, this.callRejected = this.otherCallRejected);
1348
1348
  }
1349
1349
  l.prototype.callFulfilled = function(S) {
1350
- _.resolve(this.promise, S);
1350
+ D.resolve(this.promise, S);
1351
1351
  }, l.prototype.otherCallFulfilled = function(S) {
1352
- s(this.promise, this.onFulfilled, S);
1352
+ o(this.promise, this.onFulfilled, S);
1353
1353
  }, l.prototype.callRejected = function(S) {
1354
- _.reject(this.promise, S);
1354
+ D.reject(this.promise, S);
1355
1355
  }, l.prototype.otherCallRejected = function(S) {
1356
- s(this.promise, this.onRejected, S);
1356
+ o(this.promise, this.onRejected, S);
1357
1357
  };
1358
- function s(S, T, g) {
1358
+ function o(S, T, g) {
1359
1359
  v(function() {
1360
- var A;
1360
+ var _;
1361
1361
  try {
1362
- A = T(g);
1363
- } catch (h) {
1364
- return _.reject(S, h);
1362
+ _ = T(g);
1363
+ } catch (s) {
1364
+ return D.reject(S, s);
1365
1365
  }
1366
- A === S ? _.reject(S, new TypeError("Cannot resolve promise with itself")) : _.resolve(S, A);
1366
+ _ === S ? D.reject(S, new TypeError("Cannot resolve promise with itself")) : D.resolve(S, _);
1367
1367
  });
1368
1368
  }
1369
- _.resolve = function(S, T) {
1369
+ D.resolve = function(S, T) {
1370
1370
  var g = w(r, T);
1371
1371
  if (g.status === "error")
1372
- return _.reject(S, g.value);
1373
- var A = g.value;
1374
- if (A)
1375
- x(S, A);
1372
+ return D.reject(S, g.value);
1373
+ var _ = g.value;
1374
+ if (_)
1375
+ x(S, _);
1376
1376
  else {
1377
1377
  S.state = $, S.outcome = T;
1378
- for (var h = -1, E = S.queue.length; ++h < E; )
1379
- S.queue[h].callFulfilled(T);
1378
+ for (var s = -1, E = S.queue.length; ++s < E; )
1379
+ S.queue[s].callFulfilled(T);
1380
1380
  }
1381
1381
  return S;
1382
- }, _.reject = function(S, T) {
1382
+ }, D.reject = function(S, T) {
1383
1383
  S.state = N, S.outcome = T;
1384
- for (var g = -1, A = S.queue.length; ++g < A; )
1384
+ for (var g = -1, _ = S.queue.length; ++g < _; )
1385
1385
  S.queue[g].callRejected(T);
1386
1386
  return S;
1387
1387
  };
@@ -1394,53 +1394,53 @@ var pr = { exports: {} };
1394
1394
  }
1395
1395
  function x(S, T) {
1396
1396
  var g = !1;
1397
- function A(Q) {
1398
- g || (g = !0, _.reject(S, Q));
1397
+ function _(Q) {
1398
+ g || (g = !0, D.reject(S, Q));
1399
1399
  }
1400
- function h(Q) {
1401
- g || (g = !0, _.resolve(S, Q));
1400
+ function s(Q) {
1401
+ g || (g = !0, D.resolve(S, Q));
1402
1402
  }
1403
1403
  function E() {
1404
- T(h, A);
1404
+ T(s, _);
1405
1405
  }
1406
1406
  var j = w(E);
1407
- j.status === "error" && A(j.value);
1407
+ j.status === "error" && _(j.value);
1408
1408
  }
1409
1409
  function w(S, T) {
1410
1410
  var g = {};
1411
1411
  try {
1412
1412
  g.value = S(T), g.status = "success";
1413
- } catch (A) {
1414
- g.status = "error", g.value = A;
1413
+ } catch (_) {
1414
+ g.status = "error", g.value = _;
1415
1415
  }
1416
1416
  return g;
1417
1417
  }
1418
1418
  b.resolve = m;
1419
1419
  function m(S) {
1420
- return S instanceof this ? S : _.resolve(new this(L), S);
1420
+ return S instanceof this ? S : D.resolve(new this(L), S);
1421
1421
  }
1422
- b.reject = D;
1423
- function D(S) {
1422
+ b.reject = I;
1423
+ function I(S) {
1424
1424
  var T = new this(L);
1425
- return _.reject(T, S);
1425
+ return D.reject(T, S);
1426
1426
  }
1427
1427
  b.all = R;
1428
1428
  function R(S) {
1429
1429
  var T = this;
1430
1430
  if (Object.prototype.toString.call(S) !== "[object Array]")
1431
1431
  return this.reject(new TypeError("must be an array"));
1432
- var g = S.length, A = !1;
1432
+ var g = S.length, _ = !1;
1433
1433
  if (!g)
1434
1434
  return this.resolve([]);
1435
- for (var h = new Array(g), E = 0, j = -1, Q = new this(L); ++j < g; )
1435
+ for (var s = new Array(g), E = 0, j = -1, Q = new this(L); ++j < g; )
1436
1436
  ee(S[j], j);
1437
1437
  return Q;
1438
1438
  function ee(le, Se) {
1439
1439
  T.resolve(le).then(F, function(V) {
1440
- A || (A = !0, _.reject(Q, V));
1440
+ _ || (_ = !0, D.reject(Q, V));
1441
1441
  });
1442
1442
  function F(V) {
1443
- h[Se] = V, ++E === g && !A && (A = !0, _.resolve(Q, h));
1443
+ s[Se] = V, ++E === g && !_ && (_ = !0, D.resolve(Q, s));
1444
1444
  }
1445
1445
  }
1446
1446
  }
@@ -1449,17 +1449,17 @@ var pr = { exports: {} };
1449
1449
  var T = this;
1450
1450
  if (Object.prototype.toString.call(S) !== "[object Array]")
1451
1451
  return this.reject(new TypeError("must be an array"));
1452
- var g = S.length, A = !1;
1452
+ var g = S.length, _ = !1;
1453
1453
  if (!g)
1454
1454
  return this.resolve([]);
1455
- for (var h = -1, E = new this(L); ++h < g; )
1456
- j(S[h]);
1455
+ for (var s = -1, E = new this(L); ++s < g; )
1456
+ j(S[s]);
1457
1457
  return E;
1458
1458
  function j(Q) {
1459
1459
  T.resolve(Q).then(function(ee) {
1460
- A || (A = !0, _.resolve(E, ee));
1460
+ _ || (_ = !0, D.resolve(E, ee));
1461
1461
  }, function(ee) {
1462
- A || (A = !0, _.reject(E, ee));
1462
+ _ || (_ = !0, D.reject(E, ee));
1463
1463
  });
1464
1464
  }
1465
1465
  }
@@ -1477,7 +1477,7 @@ var pr = { exports: {} };
1477
1477
  if (!(n instanceof c))
1478
1478
  throw new TypeError("Cannot call a class as a function");
1479
1479
  }
1480
- function _() {
1480
+ function D() {
1481
1481
  try {
1482
1482
  if (typeof indexedDB < "u")
1483
1483
  return indexedDB;
@@ -1493,7 +1493,7 @@ var pr = { exports: {} };
1493
1493
  return;
1494
1494
  }
1495
1495
  }
1496
- var N = _();
1496
+ var N = D();
1497
1497
  function $() {
1498
1498
  try {
1499
1499
  if (!N || !N.open)
@@ -1515,8 +1515,8 @@ var pr = { exports: {} };
1515
1515
  } catch (i) {
1516
1516
  if (i.name !== "TypeError")
1517
1517
  throw i;
1518
- for (var a = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, f = new a(), o = 0; o < n.length; o += 1)
1519
- f.append(n[o]);
1518
+ for (var a = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, f = new a(), h = 0; h < n.length; h += 1)
1519
+ f.append(n[h]);
1520
1520
  return f.getBlob(c.type);
1521
1521
  }
1522
1522
  }
@@ -1529,7 +1529,7 @@ var pr = { exports: {} };
1529
1529
  c(a);
1530
1530
  });
1531
1531
  }
1532
- function s(n, c, a) {
1532
+ function o(n, c, a) {
1533
1533
  typeof c == "function" && n.then(c), typeof a == "function" && n.catch(a);
1534
1534
  }
1535
1535
  function r(n) {
@@ -1539,75 +1539,75 @@ var pr = { exports: {} };
1539
1539
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
1540
1540
  return arguments[arguments.length - 1];
1541
1541
  }
1542
- var w = "local-forage-detect-blob-support", m = void 0, D = {}, R = Object.prototype.toString, B = "readonly", S = "readwrite";
1542
+ var w = "local-forage-detect-blob-support", m = void 0, I = {}, R = Object.prototype.toString, B = "readonly", S = "readwrite";
1543
1543
  function T(n) {
1544
- for (var c = n.length, a = new ArrayBuffer(c), f = new Uint8Array(a), o = 0; o < c; o++)
1545
- f[o] = n.charCodeAt(o);
1544
+ for (var c = n.length, a = new ArrayBuffer(c), f = new Uint8Array(a), h = 0; h < c; h++)
1545
+ f[h] = n.charCodeAt(h);
1546
1546
  return a;
1547
1547
  }
1548
1548
  function g(n) {
1549
1549
  return new b(function(c) {
1550
1550
  var a = n.transaction(w, S), f = W([""]);
1551
- a.objectStore(w).put(f, "key"), a.onabort = function(o) {
1552
- o.preventDefault(), o.stopPropagation(), c(!1);
1551
+ a.objectStore(w).put(f, "key"), a.onabort = function(h) {
1552
+ h.preventDefault(), h.stopPropagation(), c(!1);
1553
1553
  }, a.oncomplete = function() {
1554
- var o = navigator.userAgent.match(/Chrome\/(\d+)/), i = navigator.userAgent.match(/Edge\//);
1555
- c(i || !o || parseInt(o[1], 10) >= 43);
1554
+ var h = navigator.userAgent.match(/Chrome\/(\d+)/), i = navigator.userAgent.match(/Edge\//);
1555
+ c(i || !h || parseInt(h[1], 10) >= 43);
1556
1556
  };
1557
1557
  }).catch(function() {
1558
1558
  return !1;
1559
1559
  });
1560
1560
  }
1561
- function A(n) {
1561
+ function _(n) {
1562
1562
  return typeof m == "boolean" ? b.resolve(m) : g(n).then(function(c) {
1563
1563
  return m = c, m;
1564
1564
  });
1565
1565
  }
1566
- function h(n) {
1567
- var c = D[n.name], a = {};
1568
- a.promise = new b(function(f, o) {
1569
- a.resolve = f, a.reject = o;
1566
+ function s(n) {
1567
+ var c = I[n.name], a = {};
1568
+ a.promise = new b(function(f, h) {
1569
+ a.resolve = f, a.reject = h;
1570
1570
  }), c.deferredOperations.push(a), c.dbReady ? c.dbReady = c.dbReady.then(function() {
1571
1571
  return a.promise;
1572
1572
  }) : c.dbReady = a.promise;
1573
1573
  }
1574
1574
  function E(n) {
1575
- var c = D[n.name], a = c.deferredOperations.pop();
1575
+ var c = I[n.name], a = c.deferredOperations.pop();
1576
1576
  if (a)
1577
1577
  return a.resolve(), a.promise;
1578
1578
  }
1579
1579
  function j(n, c) {
1580
- var a = D[n.name], f = a.deferredOperations.pop();
1580
+ var a = I[n.name], f = a.deferredOperations.pop();
1581
1581
  if (f)
1582
1582
  return f.reject(c), f.promise;
1583
1583
  }
1584
1584
  function Q(n, c) {
1585
1585
  return new b(function(a, f) {
1586
- if (D[n.name] = D[n.name] || ce(), n.db)
1586
+ if (I[n.name] = I[n.name] || ce(), n.db)
1587
1587
  if (c)
1588
- h(n), n.db.close();
1588
+ s(n), n.db.close();
1589
1589
  else
1590
1590
  return a(n.db);
1591
- var o = [n.name];
1592
- c && o.push(n.version);
1593
- var i = N.open.apply(N, o);
1594
- c && (i.onupgradeneeded = function(I) {
1591
+ var h = [n.name];
1592
+ c && h.push(n.version);
1593
+ var i = N.open.apply(N, h);
1594
+ c && (i.onupgradeneeded = function(A) {
1595
1595
  var C = i.result;
1596
1596
  try {
1597
- C.createObjectStore(n.storeName), I.oldVersion <= 1 && C.createObjectStore(w);
1597
+ C.createObjectStore(n.storeName), A.oldVersion <= 1 && C.createObjectStore(w);
1598
1598
  } catch (M) {
1599
1599
  if (M.name === "ConstraintError")
1600
- console.warn('The database "' + n.name + '" has been upgraded from version ' + I.oldVersion + " to version " + I.newVersion + ', but the storage "' + n.storeName + '" already exists.');
1600
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + A.oldVersion + " to version " + A.newVersion + ', but the storage "' + n.storeName + '" already exists.');
1601
1601
  else
1602
1602
  throw M;
1603
1603
  }
1604
- }), i.onerror = function(I) {
1605
- I.preventDefault(), f(i.error);
1604
+ }), i.onerror = function(A) {
1605
+ A.preventDefault(), f(i.error);
1606
1606
  }, i.onsuccess = function() {
1607
- var I = i.result;
1608
- I.onversionchange = function(C) {
1607
+ var A = i.result;
1608
+ A.onversionchange = function(C) {
1609
1609
  C.target.close();
1610
- }, a(I), E(n);
1610
+ }, a(A), E(n);
1611
1611
  };
1612
1612
  });
1613
1613
  }
@@ -1620,8 +1620,8 @@ var pr = { exports: {} };
1620
1620
  function Se(n, c) {
1621
1621
  if (!n.db)
1622
1622
  return !0;
1623
- var a = !n.db.objectStoreNames.contains(n.storeName), f = n.version < n.db.version, o = n.version > n.db.version;
1624
- if (f && (n.version !== c && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), o || a) {
1623
+ var a = !n.db.objectStoreNames.contains(n.storeName), f = n.version < n.db.version, h = n.version > n.db.version;
1624
+ if (f && (n.version !== c && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), h || a) {
1625
1625
  if (a) {
1626
1626
  var i = n.db.version + 1;
1627
1627
  i > n.version && (n.version = i);
@@ -1633,8 +1633,8 @@ var pr = { exports: {} };
1633
1633
  function F(n) {
1634
1634
  return new b(function(c, a) {
1635
1635
  var f = new FileReader();
1636
- f.onerror = a, f.onloadend = function(o) {
1637
- var i = btoa(o.target.result || "");
1636
+ f.onerror = a, f.onloadend = function(h) {
1637
+ var i = btoa(h.target.result || "");
1638
1638
  c({
1639
1639
  __local_forage_encoded_blob: !0,
1640
1640
  data: i,
@@ -1652,24 +1652,24 @@ var pr = { exports: {} };
1652
1652
  }
1653
1653
  function ae(n) {
1654
1654
  var c = this, a = c._initReady().then(function() {
1655
- var f = D[c._dbInfo.name];
1655
+ var f = I[c._dbInfo.name];
1656
1656
  if (f && f.dbReady)
1657
1657
  return f.dbReady;
1658
1658
  });
1659
- return s(a, n, n), a;
1659
+ return o(a, n, n), a;
1660
1660
  }
1661
1661
  function Z(n) {
1662
- h(n);
1663
- for (var c = D[n.name], a = c.forages, f = 0; f < a.length; f++) {
1664
- var o = a[f];
1665
- o._dbInfo.db && (o._dbInfo.db.close(), o._dbInfo.db = null);
1662
+ s(n);
1663
+ for (var c = I[n.name], a = c.forages, f = 0; f < a.length; f++) {
1664
+ var h = a[f];
1665
+ h._dbInfo.db && (h._dbInfo.db.close(), h._dbInfo.db = null);
1666
1666
  }
1667
1667
  return n.db = null, ee(n).then(function(i) {
1668
1668
  return n.db = i, Se(n) ? le(n) : i;
1669
1669
  }).then(function(i) {
1670
1670
  n.db = c.db = i;
1671
- for (var I = 0; I < a.length; I++)
1672
- a[I]._dbInfo.db = i;
1671
+ for (var A = 0; A < a.length; A++)
1672
+ a[A]._dbInfo.db = i;
1673
1673
  }).catch(function(i) {
1674
1674
  throw j(n, i), i;
1675
1675
  });
@@ -1677,8 +1677,8 @@ var pr = { exports: {} };
1677
1677
  function p(n, c, a, f) {
1678
1678
  f === void 0 && (f = 1);
1679
1679
  try {
1680
- var o = n.db.transaction(n.storeName, c);
1681
- a(null, o);
1680
+ var h = n.db.transaction(n.storeName, c);
1681
+ a(null, h);
1682
1682
  } catch (i) {
1683
1683
  if (f > 0 && (!n.db || i.name === "InvalidStateError" || i.name === "NotFoundError"))
1684
1684
  return b.resolve().then(function() {
@@ -1711,23 +1711,23 @@ var pr = { exports: {} };
1711
1711
  if (n)
1712
1712
  for (var f in n)
1713
1713
  a[f] = n[f];
1714
- var o = D[a.name];
1715
- o || (o = ce(), D[a.name] = o), o.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
1714
+ var h = I[a.name];
1715
+ h || (h = ce(), I[a.name] = h), h.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
1716
1716
  var i = [];
1717
- function I() {
1717
+ function A() {
1718
1718
  return b.resolve();
1719
1719
  }
1720
- for (var C = 0; C < o.forages.length; C++) {
1721
- var M = o.forages[C];
1722
- M !== c && i.push(M._initReady().catch(I));
1720
+ for (var C = 0; C < h.forages.length; C++) {
1721
+ var M = h.forages[C];
1722
+ M !== c && i.push(M._initReady().catch(A));
1723
1723
  }
1724
- var P = o.forages.slice(0);
1724
+ var P = h.forages.slice(0);
1725
1725
  return b.all(i).then(function() {
1726
- return a.db = o.db, ee(a);
1726
+ return a.db = h.db, ee(a);
1727
1727
  }).then(function(U) {
1728
1728
  return a.db = U, Se(a, c._defaultConfig.version) ? le(a) : U;
1729
1729
  }).then(function(U) {
1730
- a.db = o.db = U, c._dbInfo = a;
1730
+ a.db = h.db = U, c._dbInfo = a;
1731
1731
  for (var G = 0; G < P.length; G++) {
1732
1732
  var H = P[G];
1733
1733
  H !== c && (H._dbInfo.db = a.db, H._dbInfo.version = a.version);
@@ -1737,16 +1737,16 @@ var pr = { exports: {} };
1737
1737
  function ve(n, c) {
1738
1738
  var a = this;
1739
1739
  n = r(n);
1740
- var f = new b(function(o, i) {
1740
+ var f = new b(function(h, i) {
1741
1741
  a.ready().then(function() {
1742
- p(a._dbInfo, B, function(I, C) {
1743
- if (I)
1744
- return i(I);
1742
+ p(a._dbInfo, B, function(A, C) {
1743
+ if (A)
1744
+ return i(A);
1745
1745
  try {
1746
1746
  var M = C.objectStore(a._dbInfo.storeName), P = M.get(n);
1747
1747
  P.onsuccess = function() {
1748
1748
  var U = P.result;
1749
- U === void 0 && (U = null), q(U) && (U = V(U)), o(U);
1749
+ U === void 0 && (U = null), q(U) && (U = V(U)), h(U);
1750
1750
  }, P.onerror = function() {
1751
1751
  i(P.error);
1752
1752
  };
@@ -1759,11 +1759,11 @@ var pr = { exports: {} };
1759
1759
  return l(f, c), f;
1760
1760
  }
1761
1761
  function Je(n, c) {
1762
- var a = this, f = new b(function(o, i) {
1762
+ var a = this, f = new b(function(h, i) {
1763
1763
  a.ready().then(function() {
1764
- p(a._dbInfo, B, function(I, C) {
1765
- if (I)
1766
- return i(I);
1764
+ p(a._dbInfo, B, function(A, C) {
1765
+ if (A)
1766
+ return i(A);
1767
1767
  try {
1768
1768
  var M = C.objectStore(a._dbInfo.storeName), P = M.openCursor(), U = 1;
1769
1769
  P.onsuccess = function() {
@@ -1772,9 +1772,9 @@ var pr = { exports: {} };
1772
1772
  var H = G.value;
1773
1773
  q(H) && (H = V(H));
1774
1774
  var K = n(H, G.key, U++);
1775
- K !== void 0 ? o(K) : G.continue();
1775
+ K !== void 0 ? h(K) : G.continue();
1776
1776
  } else
1777
- o();
1777
+ h();
1778
1778
  }, P.onerror = function() {
1779
1779
  i(P.error);
1780
1780
  };
@@ -1789,16 +1789,16 @@ var pr = { exports: {} };
1789
1789
  function xe(n, c, a) {
1790
1790
  var f = this;
1791
1791
  n = r(n);
1792
- var o = new b(function(i, I) {
1792
+ var h = new b(function(i, A) {
1793
1793
  var C;
1794
1794
  f.ready().then(function() {
1795
- return C = f._dbInfo, R.call(c) === "[object Blob]" ? A(C.db).then(function(M) {
1795
+ return C = f._dbInfo, R.call(c) === "[object Blob]" ? _(C.db).then(function(M) {
1796
1796
  return M ? c : F(c);
1797
1797
  }) : c;
1798
1798
  }).then(function(M) {
1799
1799
  p(f._dbInfo, S, function(P, U) {
1800
1800
  if (P)
1801
- return I(P);
1801
+ return A(P);
1802
1802
  try {
1803
1803
  var G = U.objectStore(f._dbInfo.storeName);
1804
1804
  M === null && (M = void 0);
@@ -1807,28 +1807,28 @@ var pr = { exports: {} };
1807
1807
  M === void 0 && (M = null), i(M);
1808
1808
  }, U.onabort = U.onerror = function() {
1809
1809
  var K = H.error ? H.error : H.transaction.error;
1810
- I(K);
1810
+ A(K);
1811
1811
  };
1812
1812
  } catch (K) {
1813
- I(K);
1813
+ A(K);
1814
1814
  }
1815
1815
  });
1816
- }).catch(I);
1816
+ }).catch(A);
1817
1817
  });
1818
- return l(o, a), o;
1818
+ return l(h, a), h;
1819
1819
  }
1820
1820
  function je(n, c) {
1821
1821
  var a = this;
1822
1822
  n = r(n);
1823
- var f = new b(function(o, i) {
1823
+ var f = new b(function(h, i) {
1824
1824
  a.ready().then(function() {
1825
- p(a._dbInfo, S, function(I, C) {
1826
- if (I)
1827
- return i(I);
1825
+ p(a._dbInfo, S, function(A, C) {
1826
+ if (A)
1827
+ return i(A);
1828
1828
  try {
1829
1829
  var M = C.objectStore(a._dbInfo.storeName), P = M.delete(n);
1830
1830
  C.oncomplete = function() {
1831
- o();
1831
+ h();
1832
1832
  }, C.onerror = function() {
1833
1833
  i(P.error);
1834
1834
  }, C.onabort = function() {
@@ -1844,67 +1844,67 @@ var pr = { exports: {} };
1844
1844
  return l(f, c), f;
1845
1845
  }
1846
1846
  function Ke(n) {
1847
- var c = this, a = new b(function(f, o) {
1847
+ var c = this, a = new b(function(f, h) {
1848
1848
  c.ready().then(function() {
1849
- p(c._dbInfo, S, function(i, I) {
1849
+ p(c._dbInfo, S, function(i, A) {
1850
1850
  if (i)
1851
- return o(i);
1851
+ return h(i);
1852
1852
  try {
1853
- var C = I.objectStore(c._dbInfo.storeName), M = C.clear();
1854
- I.oncomplete = function() {
1853
+ var C = A.objectStore(c._dbInfo.storeName), M = C.clear();
1854
+ A.oncomplete = function() {
1855
1855
  f();
1856
- }, I.onabort = I.onerror = function() {
1856
+ }, A.onabort = A.onerror = function() {
1857
1857
  var P = M.error ? M.error : M.transaction.error;
1858
- o(P);
1858
+ h(P);
1859
1859
  };
1860
1860
  } catch (P) {
1861
- o(P);
1861
+ h(P);
1862
1862
  }
1863
1863
  });
1864
- }).catch(o);
1864
+ }).catch(h);
1865
1865
  });
1866
1866
  return l(a, n), a;
1867
1867
  }
1868
1868
  function Qe(n) {
1869
- var c = this, a = new b(function(f, o) {
1869
+ var c = this, a = new b(function(f, h) {
1870
1870
  c.ready().then(function() {
1871
- p(c._dbInfo, B, function(i, I) {
1871
+ p(c._dbInfo, B, function(i, A) {
1872
1872
  if (i)
1873
- return o(i);
1873
+ return h(i);
1874
1874
  try {
1875
- var C = I.objectStore(c._dbInfo.storeName), M = C.count();
1875
+ var C = A.objectStore(c._dbInfo.storeName), M = C.count();
1876
1876
  M.onsuccess = function() {
1877
1877
  f(M.result);
1878
1878
  }, M.onerror = function() {
1879
- o(M.error);
1879
+ h(M.error);
1880
1880
  };
1881
1881
  } catch (P) {
1882
- o(P);
1882
+ h(P);
1883
1883
  }
1884
1884
  });
1885
- }).catch(o);
1885
+ }).catch(h);
1886
1886
  });
1887
1887
  return l(a, n), a;
1888
1888
  }
1889
1889
  function Xe(n, c) {
1890
- var a = this, f = new b(function(o, i) {
1890
+ var a = this, f = new b(function(h, i) {
1891
1891
  if (n < 0) {
1892
- o(null);
1892
+ h(null);
1893
1893
  return;
1894
1894
  }
1895
1895
  a.ready().then(function() {
1896
- p(a._dbInfo, B, function(I, C) {
1897
- if (I)
1898
- return i(I);
1896
+ p(a._dbInfo, B, function(A, C) {
1897
+ if (A)
1898
+ return i(A);
1899
1899
  try {
1900
1900
  var M = C.objectStore(a._dbInfo.storeName), P = !1, U = M.openKeyCursor();
1901
1901
  U.onsuccess = function() {
1902
1902
  var G = U.result;
1903
1903
  if (!G) {
1904
- o(null);
1904
+ h(null);
1905
1905
  return;
1906
1906
  }
1907
- n === 0 || P ? o(G.key) : (P = !0, G.advance(n));
1907
+ n === 0 || P ? h(G.key) : (P = !0, G.advance(n));
1908
1908
  }, U.onerror = function() {
1909
1909
  i(U.error);
1910
1910
  };
@@ -1917,13 +1917,13 @@ var pr = { exports: {} };
1917
1917
  return l(f, c), f;
1918
1918
  }
1919
1919
  function Oe(n) {
1920
- var c = this, a = new b(function(f, o) {
1920
+ var c = this, a = new b(function(f, h) {
1921
1921
  c.ready().then(function() {
1922
- p(c._dbInfo, B, function(i, I) {
1922
+ p(c._dbInfo, B, function(i, A) {
1923
1923
  if (i)
1924
- return o(i);
1924
+ return h(i);
1925
1925
  try {
1926
- var C = I.objectStore(c._dbInfo.storeName), M = C.openKeyCursor(), P = [];
1926
+ var C = A.objectStore(c._dbInfo.storeName), M = C.openKeyCursor(), P = [];
1927
1927
  M.onsuccess = function() {
1928
1928
  var U = M.result;
1929
1929
  if (!U) {
@@ -1932,13 +1932,13 @@ var pr = { exports: {} };
1932
1932
  }
1933
1933
  P.push(U.key), U.continue();
1934
1934
  }, M.onerror = function() {
1935
- o(M.error);
1935
+ h(M.error);
1936
1936
  };
1937
1937
  } catch (U) {
1938
- o(U);
1938
+ h(U);
1939
1939
  }
1940
1940
  });
1941
- }).catch(o);
1941
+ }).catch(h);
1942
1942
  });
1943
1943
  return l(a, n), a;
1944
1944
  }
@@ -1946,22 +1946,22 @@ var pr = { exports: {} };
1946
1946
  c = x.apply(this, arguments);
1947
1947
  var a = this.config();
1948
1948
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1949
- var f = this, o;
1949
+ var f = this, h;
1950
1950
  if (!n.name)
1951
- o = b.reject("Invalid arguments");
1951
+ h = b.reject("Invalid arguments");
1952
1952
  else {
1953
- var i = n.name === a.name && f._dbInfo.db, I = i ? b.resolve(f._dbInfo.db) : ee(n).then(function(C) {
1954
- var M = D[n.name], P = M.forages;
1953
+ var i = n.name === a.name && f._dbInfo.db, A = i ? b.resolve(f._dbInfo.db) : ee(n).then(function(C) {
1954
+ var M = I[n.name], P = M.forages;
1955
1955
  M.db = C;
1956
1956
  for (var U = 0; U < P.length; U++)
1957
1957
  P[U]._dbInfo.db = C;
1958
1958
  return C;
1959
1959
  });
1960
- n.storeName ? o = I.then(function(C) {
1960
+ n.storeName ? h = A.then(function(C) {
1961
1961
  if (C.objectStoreNames.contains(n.storeName)) {
1962
1962
  var M = C.version + 1;
1963
- h(n);
1964
- var P = D[n.name], U = P.forages;
1963
+ s(n);
1964
+ var P = I[n.name], U = P.forages;
1965
1965
  C.close();
1966
1966
  for (var G = 0; G < U.length; G++) {
1967
1967
  var H = U[G];
@@ -1991,9 +1991,9 @@ var pr = { exports: {} };
1991
1991
  }), X;
1992
1992
  });
1993
1993
  }
1994
- }) : o = I.then(function(C) {
1995
- h(n);
1996
- var M = D[n.name], P = M.forages;
1994
+ }) : h = A.then(function(C) {
1995
+ s(n);
1996
+ var M = I[n.name], P = M.forages;
1997
1997
  C.close();
1998
1998
  for (var U = 0; U < P.length; U++) {
1999
1999
  var G = P[U];
@@ -2023,7 +2023,7 @@ var pr = { exports: {} };
2023
2023
  });
2024
2024
  });
2025
2025
  }
2026
- return l(o, c), o;
2026
+ return l(h, c), h;
2027
2027
  }
2028
2028
  var er = {
2029
2029
  _driver: "asyncStorage",
@@ -2044,11 +2044,11 @@ var pr = { exports: {} };
2044
2044
  }
2045
2045
  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", Le = "si32", we = "ur16", ie = "ui32", Ae = "fl32", _r = "fl64", xr = Ce + k.length, Tr = Object.prototype.toString;
2046
2046
  function Cr(n) {
2047
- var c = n.length * 0.75, a = n.length, f, o = 0, i, I, C, M;
2047
+ var c = n.length * 0.75, a = n.length, f, h = 0, i, A, C, M;
2048
2048
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
2049
2049
  var P = new ArrayBuffer(c), U = new Uint8Array(P);
2050
2050
  for (f = 0; f < a; f += 4)
2051
- i = ye.indexOf(n[f]), I = ye.indexOf(n[f + 1]), C = ye.indexOf(n[f + 2]), M = ye.indexOf(n[f + 3]), U[o++] = i << 2 | I >> 4, U[o++] = (I & 15) << 4 | C >> 2, U[o++] = (C & 3) << 6 | M & 63;
2051
+ i = ye.indexOf(n[f]), A = ye.indexOf(n[f + 1]), C = ye.indexOf(n[f + 2]), M = ye.indexOf(n[f + 3]), U[h++] = i << 2 | A >> 4, U[h++] = (A & 15) << 4 | C >> 2, U[h++] = (C & 3) << 6 | M & 63;
2052
2052
  return P;
2053
2053
  }
2054
2054
  function rr(n) {
@@ -2060,19 +2060,19 @@ var pr = { exports: {} };
2060
2060
  function rt(n, c) {
2061
2061
  var a = "";
2062
2062
  if (n && (a = Tr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Tr.call(n.buffer) === "[object ArrayBuffer]")) {
2063
- var f, o = Te;
2064
- n instanceof ArrayBuffer ? (f = n, o += k) : (f = n.buffer, a === "[object Int8Array]" ? o += J : a === "[object Uint8Array]" ? o += O : a === "[object Uint8ClampedArray]" ? o += ge : a === "[object Int16Array]" ? o += Ee : a === "[object Uint16Array]" ? o += we : a === "[object Int32Array]" ? o += Le : a === "[object Uint32Array]" ? o += ie : a === "[object Float32Array]" ? o += Ae : a === "[object Float64Array]" ? o += _r : c(new Error("Failed to get type for BinaryArray"))), c(o + rr(f));
2063
+ var f, h = Te;
2064
+ n instanceof ArrayBuffer ? (f = n, h += k) : (f = n.buffer, a === "[object Int8Array]" ? h += J : a === "[object Uint8Array]" ? h += O : a === "[object Uint8ClampedArray]" ? h += ge : a === "[object Int16Array]" ? h += Ee : a === "[object Uint16Array]" ? h += we : a === "[object Int32Array]" ? h += Le : a === "[object Uint32Array]" ? h += ie : a === "[object Float32Array]" ? h += Ae : a === "[object Float64Array]" ? h += _r : c(new Error("Failed to get type for BinaryArray"))), c(h + rr(f));
2065
2065
  } else if (a === "[object Blob]") {
2066
2066
  var i = new FileReader();
2067
2067
  i.onload = function() {
2068
- var I = De + n.type + "~" + rr(this.result);
2069
- c(Te + re + I);
2068
+ var A = De + n.type + "~" + rr(this.result);
2069
+ c(Te + re + A);
2070
2070
  }, i.readAsArrayBuffer(n);
2071
2071
  } else
2072
2072
  try {
2073
2073
  c(JSON.stringify(n));
2074
- } catch (I) {
2075
- console.error("Couldn't convert value into a JSON string: ", n), c(null, I);
2074
+ } catch (A) {
2075
+ console.error("Couldn't convert value into a JSON string: ", n), c(null, A);
2076
2076
  }
2077
2077
  }
2078
2078
  function tt(n) {
@@ -2080,8 +2080,8 @@ var pr = { exports: {} };
2080
2080
  return JSON.parse(n);
2081
2081
  var c = n.substring(xr), a = n.substring(Ce, xr), f;
2082
2082
  if (a === re && We.test(c)) {
2083
- var o = c.match(We);
2084
- f = o[1], c = c.substring(o[0].length);
2083
+ var h = c.match(We);
2084
+ f = h[1], c = c.substring(h[0].length);
2085
2085
  }
2086
2086
  var i = Cr(c);
2087
2087
  switch (a) {
@@ -2127,41 +2127,41 @@ var pr = { exports: {} };
2127
2127
  if (n)
2128
2128
  for (var f in n)
2129
2129
  a[f] = typeof n[f] != "string" ? n[f].toString() : n[f];
2130
- var o = new b(function(i, I) {
2130
+ var h = new b(function(i, A) {
2131
2131
  try {
2132
2132
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
2133
2133
  } catch (C) {
2134
- return I(C);
2134
+ return A(C);
2135
2135
  }
2136
2136
  a.db.transaction(function(C) {
2137
2137
  Lr(C, a, function() {
2138
2138
  c._dbInfo = a, i();
2139
2139
  }, function(M, P) {
2140
- I(P);
2140
+ A(P);
2141
2141
  });
2142
- }, I);
2142
+ }, A);
2143
2143
  });
2144
- return a.serializer = tr, o;
2144
+ return a.serializer = tr, h;
2145
2145
  }
2146
- function Ie(n, c, a, f, o, i) {
2147
- n.executeSql(a, f, o, function(I, C) {
2148
- C.code === C.SYNTAX_ERR ? I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(M, P) {
2146
+ function Ie(n, c, a, f, h, i) {
2147
+ n.executeSql(a, f, h, function(A, C) {
2148
+ C.code === C.SYNTAX_ERR ? A.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(M, P) {
2149
2149
  P.rows.length ? i(M, C) : Lr(M, c, function() {
2150
- M.executeSql(a, f, o, i);
2150
+ M.executeSql(a, f, h, i);
2151
2151
  }, i);
2152
- }, i) : i(I, C);
2152
+ }, i) : i(A, C);
2153
2153
  }, i);
2154
2154
  }
2155
2155
  function at(n, c) {
2156
2156
  var a = this;
2157
2157
  n = r(n);
2158
- var f = new b(function(o, i) {
2158
+ var f = new b(function(h, i) {
2159
2159
  a.ready().then(function() {
2160
- var I = a._dbInfo;
2161
- I.db.transaction(function(C) {
2162
- Ie(C, I, "SELECT * FROM " + I.storeName + " WHERE key = ? LIMIT 1", [n], function(M, P) {
2160
+ var A = a._dbInfo;
2161
+ A.db.transaction(function(C) {
2162
+ Ie(C, A, "SELECT * FROM " + A.storeName + " WHERE key = ? LIMIT 1", [n], function(M, P) {
2163
2163
  var U = P.rows.length ? P.rows.item(0).value : null;
2164
- U && (U = I.serializer.deserialize(U)), o(U);
2164
+ U && (U = A.serializer.deserialize(U)), h(U);
2165
2165
  }, function(M, P) {
2166
2166
  i(P);
2167
2167
  });
@@ -2171,19 +2171,19 @@ var pr = { exports: {} };
2171
2171
  return l(f, c), f;
2172
2172
  }
2173
2173
  function ut(n, c) {
2174
- var a = this, f = new b(function(o, i) {
2174
+ var a = this, f = new b(function(h, i) {
2175
2175
  a.ready().then(function() {
2176
- var I = a._dbInfo;
2177
- I.db.transaction(function(C) {
2178
- Ie(C, I, "SELECT * FROM " + I.storeName, [], function(M, P) {
2176
+ var A = a._dbInfo;
2177
+ A.db.transaction(function(C) {
2178
+ Ie(C, A, "SELECT * FROM " + A.storeName, [], function(M, P) {
2179
2179
  for (var U = P.rows, G = U.length, H = 0; H < G; H++) {
2180
2180
  var K = U.item(H), X = K.value;
2181
- if (X && (X = I.serializer.deserialize(X)), X = n(X, K.key, H + 1), X !== void 0) {
2182
- o(X);
2181
+ if (X && (X = A.serializer.deserialize(X)), X = n(X, K.key, H + 1), X !== void 0) {
2182
+ h(X);
2183
2183
  return;
2184
2184
  }
2185
2185
  }
2186
- o();
2186
+ h();
2187
2187
  }, function(M, P) {
2188
2188
  i(P);
2189
2189
  });
@@ -2193,23 +2193,23 @@ var pr = { exports: {} };
2193
2193
  return l(f, c), f;
2194
2194
  }
2195
2195
  function Mr(n, c, a, f) {
2196
- var o = this;
2196
+ var h = this;
2197
2197
  n = r(n);
2198
- var i = new b(function(I, C) {
2199
- o.ready().then(function() {
2198
+ var i = new b(function(A, C) {
2199
+ h.ready().then(function() {
2200
2200
  c === void 0 && (c = null);
2201
- var M = c, P = o._dbInfo;
2201
+ var M = c, P = h._dbInfo;
2202
2202
  P.serializer.serialize(c, function(U, G) {
2203
2203
  G ? C(G) : P.db.transaction(function(H) {
2204
2204
  Ie(H, P, "INSERT OR REPLACE INTO " + P.storeName + " (key, value) VALUES (?, ?)", [n, U], function() {
2205
- I(M);
2205
+ A(M);
2206
2206
  }, function(K, X) {
2207
2207
  C(X);
2208
2208
  });
2209
2209
  }, function(H) {
2210
2210
  if (H.code === H.QUOTA_ERR) {
2211
2211
  if (f > 0) {
2212
- I(Mr.apply(o, [n, M, a, f - 1]));
2212
+ A(Mr.apply(h, [n, M, a, f - 1]));
2213
2213
  return;
2214
2214
  }
2215
2215
  C(H);
@@ -2226,12 +2226,12 @@ var pr = { exports: {} };
2226
2226
  function ct(n, c) {
2227
2227
  var a = this;
2228
2228
  n = r(n);
2229
- var f = new b(function(o, i) {
2229
+ var f = new b(function(h, i) {
2230
2230
  a.ready().then(function() {
2231
- var I = a._dbInfo;
2232
- I.db.transaction(function(C) {
2233
- Ie(C, I, "DELETE FROM " + I.storeName + " WHERE key = ?", [n], function() {
2234
- o();
2231
+ var A = a._dbInfo;
2232
+ A.db.transaction(function(C) {
2233
+ Ie(C, A, "DELETE FROM " + A.storeName + " WHERE key = ?", [n], function() {
2234
+ h();
2235
2235
  }, function(M, P) {
2236
2236
  i(P);
2237
2237
  });
@@ -2241,44 +2241,44 @@ var pr = { exports: {} };
2241
2241
  return l(f, c), f;
2242
2242
  }
2243
2243
  function it(n) {
2244
- var c = this, a = new b(function(f, o) {
2244
+ var c = this, a = new b(function(f, h) {
2245
2245
  c.ready().then(function() {
2246
2246
  var i = c._dbInfo;
2247
- i.db.transaction(function(I) {
2248
- Ie(I, i, "DELETE FROM " + i.storeName, [], function() {
2247
+ i.db.transaction(function(A) {
2248
+ Ie(A, i, "DELETE FROM " + i.storeName, [], function() {
2249
2249
  f();
2250
2250
  }, function(C, M) {
2251
- o(M);
2251
+ h(M);
2252
2252
  });
2253
2253
  });
2254
- }).catch(o);
2254
+ }).catch(h);
2255
2255
  });
2256
2256
  return l(a, n), a;
2257
2257
  }
2258
2258
  function ft(n) {
2259
- var c = this, a = new b(function(f, o) {
2259
+ var c = this, a = new b(function(f, h) {
2260
2260
  c.ready().then(function() {
2261
2261
  var i = c._dbInfo;
2262
- i.db.transaction(function(I) {
2263
- Ie(I, i, "SELECT COUNT(key) as c FROM " + i.storeName, [], function(C, M) {
2262
+ i.db.transaction(function(A) {
2263
+ Ie(A, i, "SELECT COUNT(key) as c FROM " + i.storeName, [], function(C, M) {
2264
2264
  var P = M.rows.item(0).c;
2265
2265
  f(P);
2266
2266
  }, function(C, M) {
2267
- o(M);
2267
+ h(M);
2268
2268
  });
2269
2269
  });
2270
- }).catch(o);
2270
+ }).catch(h);
2271
2271
  });
2272
2272
  return l(a, n), a;
2273
2273
  }
2274
2274
  function st(n, c) {
2275
- var a = this, f = new b(function(o, i) {
2275
+ var a = this, f = new b(function(h, i) {
2276
2276
  a.ready().then(function() {
2277
- var I = a._dbInfo;
2278
- I.db.transaction(function(C) {
2279
- Ie(C, I, "SELECT key FROM " + I.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(M, P) {
2277
+ var A = a._dbInfo;
2278
+ A.db.transaction(function(C) {
2279
+ Ie(C, A, "SELECT key FROM " + A.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(M, P) {
2280
2280
  var U = P.rows.length ? P.rows.item(0).key : null;
2281
- o(U);
2281
+ h(U);
2282
2282
  }, function(M, P) {
2283
2283
  i(P);
2284
2284
  });
@@ -2288,33 +2288,33 @@ var pr = { exports: {} };
2288
2288
  return l(f, c), f;
2289
2289
  }
2290
2290
  function ot(n) {
2291
- var c = this, a = new b(function(f, o) {
2291
+ var c = this, a = new b(function(f, h) {
2292
2292
  c.ready().then(function() {
2293
2293
  var i = c._dbInfo;
2294
- i.db.transaction(function(I) {
2295
- Ie(I, i, "SELECT key FROM " + i.storeName, [], function(C, M) {
2294
+ i.db.transaction(function(A) {
2295
+ Ie(A, i, "SELECT key FROM " + i.storeName, [], function(C, M) {
2296
2296
  for (var P = [], U = 0; U < M.rows.length; U++)
2297
2297
  P.push(M.rows.item(U).key);
2298
2298
  f(P);
2299
2299
  }, function(C, M) {
2300
- o(M);
2300
+ h(M);
2301
2301
  });
2302
2302
  });
2303
- }).catch(o);
2303
+ }).catch(h);
2304
2304
  });
2305
2305
  return l(a, n), a;
2306
2306
  }
2307
2307
  function ht(n) {
2308
2308
  return new b(function(c, a) {
2309
2309
  n.transaction(function(f) {
2310
- f.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(o, i) {
2311
- for (var I = [], C = 0; C < i.rows.length; C++)
2312
- I.push(i.rows.item(C).name);
2310
+ f.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(h, i) {
2311
+ for (var A = [], C = 0; C < i.rows.length; C++)
2312
+ A.push(i.rows.item(C).name);
2313
2313
  c({
2314
2314
  db: n,
2315
- storeNames: I
2315
+ storeNames: A
2316
2316
  });
2317
- }, function(o, i) {
2317
+ }, function(h, i) {
2318
2318
  a(i);
2319
2319
  });
2320
2320
  }, function(f) {
@@ -2326,15 +2326,15 @@ var pr = { exports: {} };
2326
2326
  c = x.apply(this, arguments);
2327
2327
  var a = this.config();
2328
2328
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
2329
- var f = this, o;
2330
- return n.name ? o = new b(function(i) {
2331
- var I;
2332
- n.name === a.name ? I = f._dbInfo.db : I = openDatabase(n.name, "", "", 0), n.storeName ? i({
2333
- db: I,
2329
+ var f = this, h;
2330
+ return n.name ? h = new b(function(i) {
2331
+ var A;
2332
+ n.name === a.name ? A = f._dbInfo.db : A = openDatabase(n.name, "", "", 0), n.storeName ? i({
2333
+ db: A,
2334
2334
  storeNames: [n.storeName]
2335
- }) : i(ht(I));
2335
+ }) : i(ht(A));
2336
2336
  }).then(function(i) {
2337
- return new b(function(I, C) {
2337
+ return new b(function(A, C) {
2338
2338
  i.db.transaction(function(M) {
2339
2339
  function P(K) {
2340
2340
  return new b(function(X, ne) {
@@ -2348,7 +2348,7 @@ var pr = { exports: {} };
2348
2348
  for (var U = [], G = 0, H = i.storeNames.length; G < H; G++)
2349
2349
  U.push(P(i.storeNames[G]));
2350
2350
  b.all(U).then(function() {
2351
- I();
2351
+ A();
2352
2352
  }).catch(function(K) {
2353
2353
  C(K);
2354
2354
  });
@@ -2356,7 +2356,7 @@ var pr = { exports: {} };
2356
2356
  C(M);
2357
2357
  });
2358
2358
  });
2359
- }) : o = b.reject("Invalid arguments"), l(o, c), o;
2359
+ }) : h = b.reject("Invalid arguments"), l(h, c), h;
2360
2360
  }
2361
2361
  var dt = {
2362
2362
  _driver: "webSQLStorage",
@@ -2404,8 +2404,8 @@ var pr = { exports: {} };
2404
2404
  }
2405
2405
  function bt(n) {
2406
2406
  var c = this, a = c.ready().then(function() {
2407
- for (var f = c._dbInfo.keyPrefix, o = localStorage.length - 1; o >= 0; o--) {
2408
- var i = localStorage.key(o);
2407
+ for (var f = c._dbInfo.keyPrefix, h = localStorage.length - 1; h >= 0; h--) {
2408
+ var i = localStorage.key(h);
2409
2409
  i.indexOf(f) === 0 && localStorage.removeItem(i);
2410
2410
  }
2411
2411
  });
@@ -2415,18 +2415,18 @@ var pr = { exports: {} };
2415
2415
  var a = this;
2416
2416
  n = r(n);
2417
2417
  var f = a.ready().then(function() {
2418
- var o = a._dbInfo, i = localStorage.getItem(o.keyPrefix + n);
2419
- return i && (i = o.serializer.deserialize(i)), i;
2418
+ var h = a._dbInfo, i = localStorage.getItem(h.keyPrefix + n);
2419
+ return i && (i = h.serializer.deserialize(i)), i;
2420
2420
  });
2421
2421
  return l(f, c), f;
2422
2422
  }
2423
2423
  function Et(n, c) {
2424
2424
  var a = this, f = a.ready().then(function() {
2425
- for (var o = a._dbInfo, i = o.keyPrefix, I = i.length, C = localStorage.length, M = 1, P = 0; P < C; P++) {
2425
+ for (var h = a._dbInfo, i = h.keyPrefix, A = i.length, C = localStorage.length, M = 1, P = 0; P < C; P++) {
2426
2426
  var U = localStorage.key(P);
2427
2427
  if (U.indexOf(i) === 0) {
2428
2428
  var G = localStorage.getItem(U);
2429
- if (G && (G = o.serializer.deserialize(G)), G = n(G, U.substring(I), M++), G !== void 0)
2429
+ if (G && (G = h.serializer.deserialize(G)), G = n(G, U.substring(A), M++), G !== void 0)
2430
2430
  return G;
2431
2431
  }
2432
2432
  }
@@ -2435,20 +2435,20 @@ var pr = { exports: {} };
2435
2435
  }
2436
2436
  function At(n, c) {
2437
2437
  var a = this, f = a.ready().then(function() {
2438
- var o = a._dbInfo, i;
2438
+ var h = a._dbInfo, i;
2439
2439
  try {
2440
2440
  i = localStorage.key(n);
2441
2441
  } catch {
2442
2442
  i = null;
2443
2443
  }
2444
- return i && (i = i.substring(o.keyPrefix.length)), i;
2444
+ return i && (i = i.substring(h.keyPrefix.length)), i;
2445
2445
  });
2446
2446
  return l(f, c), f;
2447
2447
  }
2448
2448
  function It(n) {
2449
2449
  var c = this, a = c.ready().then(function() {
2450
- for (var f = c._dbInfo, o = localStorage.length, i = [], I = 0; I < o; I++) {
2451
- var C = localStorage.key(I);
2450
+ for (var f = c._dbInfo, h = localStorage.length, i = [], A = 0; A < h; A++) {
2451
+ var C = localStorage.key(A);
2452
2452
  C.indexOf(f.keyPrefix) === 0 && i.push(C.substring(f.keyPrefix.length));
2453
2453
  }
2454
2454
  return i;
@@ -2465,47 +2465,47 @@ var pr = { exports: {} };
2465
2465
  var a = this;
2466
2466
  n = r(n);
2467
2467
  var f = a.ready().then(function() {
2468
- var o = a._dbInfo;
2469
- localStorage.removeItem(o.keyPrefix + n);
2468
+ var h = a._dbInfo;
2469
+ localStorage.removeItem(h.keyPrefix + n);
2470
2470
  });
2471
2471
  return l(f, c), f;
2472
2472
  }
2473
2473
  function xt(n, c, a) {
2474
2474
  var f = this;
2475
2475
  n = r(n);
2476
- var o = f.ready().then(function() {
2476
+ var h = f.ready().then(function() {
2477
2477
  c === void 0 && (c = null);
2478
2478
  var i = c;
2479
- return new b(function(I, C) {
2479
+ return new b(function(A, C) {
2480
2480
  var M = f._dbInfo;
2481
2481
  M.serializer.serialize(c, function(P, U) {
2482
2482
  if (U)
2483
2483
  C(U);
2484
2484
  else
2485
2485
  try {
2486
- localStorage.setItem(M.keyPrefix + n, P), I(i);
2486
+ localStorage.setItem(M.keyPrefix + n, P), A(i);
2487
2487
  } catch (G) {
2488
2488
  (G.name === "QuotaExceededError" || G.name === "NS_ERROR_DOM_QUOTA_REACHED") && C(G), C(G);
2489
2489
  }
2490
2490
  });
2491
2491
  });
2492
2492
  });
2493
- return l(o, a), o;
2493
+ return l(h, a), h;
2494
2494
  }
2495
2495
  function Tt(n, c) {
2496
2496
  if (c = x.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
2497
2497
  var a = this.config();
2498
2498
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
2499
2499
  }
2500
- var f = this, o;
2501
- return n.name ? o = new b(function(i) {
2500
+ var f = this, h;
2501
+ return n.name ? h = new b(function(i) {
2502
2502
  n.storeName ? i(Pr(n, f._defaultConfig)) : i(n.name + "/");
2503
2503
  }).then(function(i) {
2504
- for (var I = localStorage.length - 1; I >= 0; I--) {
2505
- var C = localStorage.key(I);
2504
+ for (var A = localStorage.length - 1; A >= 0; A--) {
2505
+ var C = localStorage.key(A);
2506
2506
  C.indexOf(i) === 0 && localStorage.removeItem(C);
2507
2507
  }
2508
- }) : o = b.reject("Invalid arguments"), l(o, c), o;
2508
+ }) : h = b.reject("Invalid arguments"), l(h, c), h;
2509
2509
  }
2510
2510
  var Ct = {
2511
2511
  _driver: "localStorageWrapper",
@@ -2523,10 +2523,10 @@ var pr = { exports: {} };
2523
2523
  }, Lt = function(c, a) {
2524
2524
  return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
2525
2525
  }, Mt = function(c, a) {
2526
- for (var f = c.length, o = 0; o < f; ) {
2527
- if (Lt(c[o], a))
2526
+ for (var f = c.length, h = 0; h < f; ) {
2527
+ if (Lt(c[h], a))
2528
2528
  return !0;
2529
- o++;
2529
+ h++;
2530
2530
  }
2531
2531
  return !1;
2532
2532
  }, Nr = Array.isArray || function(n) {
@@ -2567,8 +2567,8 @@ var pr = { exports: {} };
2567
2567
  L(this, n);
2568
2568
  for (var a in Me)
2569
2569
  if (Me.hasOwnProperty(a)) {
2570
- var f = Me[a], o = f._driver;
2571
- this[a] = o, Be[o] || this.defineDriver(f);
2570
+ var f = Me[a], h = f._driver;
2571
+ this[a] = h, Be[h] || this.defineDriver(f);
2572
2572
  }
2573
2573
  this._defaultConfig = ar({}, Nt), this._config = ar({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2574
2574
  });
@@ -2585,8 +2585,8 @@ var pr = { exports: {} };
2585
2585
  return "driver" in a && a.driver ? this.setDriver(this._config.driver) : !0;
2586
2586
  } else
2587
2587
  return typeof a == "string" ? this._config[a] : this._config;
2588
- }, n.prototype.defineDriver = function(a, f, o) {
2589
- var i = new b(function(I, C) {
2588
+ }, n.prototype.defineDriver = function(a, f, h) {
2589
+ var i = new b(function(A, C) {
2590
2590
  try {
2591
2591
  var M = a._driver, P = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2592
2592
  if (!a._driver) {
@@ -2613,31 +2613,31 @@ var pr = { exports: {} };
2613
2613
  };
2614
2614
  ne();
2615
2615
  var te = function(Ue) {
2616
- Be[M] && console.info("Redefining LocalForage driver: " + M), Be[M] = a, Rr[M] = Ue, I();
2616
+ Be[M] && console.info("Redefining LocalForage driver: " + M), Be[M] = a, Rr[M] = Ue, A();
2617
2617
  };
2618
2618
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(te, C) : te(!!a._support) : te(!0);
2619
2619
  } catch (me) {
2620
2620
  C(me);
2621
2621
  }
2622
2622
  });
2623
- return s(i, f, o), i;
2623
+ return o(i, f, h), i;
2624
2624
  }, n.prototype.driver = function() {
2625
2625
  return this._driver || null;
2626
- }, n.prototype.getDriver = function(a, f, o) {
2626
+ }, n.prototype.getDriver = function(a, f, h) {
2627
2627
  var i = Be[a] ? b.resolve(Be[a]) : b.reject(new Error("Driver not found."));
2628
- return s(i, f, o), i;
2628
+ return o(i, f, h), i;
2629
2629
  }, n.prototype.getSerializer = function(a) {
2630
2630
  var f = b.resolve(tr);
2631
- return s(f, a), f;
2631
+ return o(f, a), f;
2632
2632
  }, n.prototype.ready = function(a) {
2633
- var f = this, o = f._driverSet.then(function() {
2633
+ var f = this, h = f._driverSet.then(function() {
2634
2634
  return f._ready === null && (f._ready = f._initDriver()), f._ready;
2635
2635
  });
2636
- return s(o, a, a), o;
2637
- }, n.prototype.setDriver = function(a, f, o) {
2636
+ return o(h, a, a), h;
2637
+ }, n.prototype.setDriver = function(a, f, h) {
2638
2638
  var i = this;
2639
2639
  Nr(a) || (a = [a]);
2640
- var I = this._getSupportedDrivers(a);
2640
+ var A = this._getSupportedDrivers(a);
2641
2641
  function C() {
2642
2642
  i._config.driver = i.driver();
2643
2643
  }
@@ -2663,23 +2663,23 @@ var pr = { exports: {} };
2663
2663
  return b.resolve();
2664
2664
  }) : b.resolve();
2665
2665
  return this._driverSet = U.then(function() {
2666
- var G = I[0];
2666
+ var G = A[0];
2667
2667
  return i._dbInfo = null, i._ready = null, i.getDriver(G).then(function(H) {
2668
- i._driver = H._driver, C(), i._wrapLibraryMethodsWithReady(), i._initDriver = P(I);
2668
+ i._driver = H._driver, C(), i._wrapLibraryMethodsWithReady(), i._initDriver = P(A);
2669
2669
  });
2670
2670
  }).catch(function() {
2671
2671
  C();
2672
2672
  var G = new Error("No available storage method found.");
2673
2673
  return i._driverSet = b.reject(G), i._driverSet;
2674
- }), s(this._driverSet, f, o), this._driverSet;
2674
+ }), o(this._driverSet, f, h), this._driverSet;
2675
2675
  }, n.prototype.supports = function(a) {
2676
2676
  return !!Rr[a];
2677
2677
  }, n.prototype._extend = function(a) {
2678
2678
  ar(this, a);
2679
2679
  }, n.prototype._getSupportedDrivers = function(a) {
2680
- for (var f = [], o = 0, i = a.length; o < i; o++) {
2681
- var I = a[o];
2682
- this.supports(I) && f.push(I);
2680
+ for (var f = [], h = 0, i = a.length; h < i; h++) {
2681
+ var A = a[h];
2682
+ this.supports(A) && f.push(A);
2683
2683
  }
2684
2684
  return f;
2685
2685
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
@@ -2764,16 +2764,16 @@ const Dn = (e) => {
2764
2764
  };
2765
2765
  function _n(e) {
2766
2766
  return Kr(e.storeName, () => {
2767
- var s;
2768
- const t = ue.utc().toSeconds() / 86400, u = z({}), d = z({}), y = e.storageMode == "local-cache", v = e.buildUrl ?? ((s = e.api) == null ? void 0 : s.buildUrl) ?? Dn;
2767
+ var o;
2768
+ const t = ue.utc().toSeconds() / 86400, u = z({}), d = z({}), y = e.storageMode == "local-cache", v = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? Dn;
2769
2769
  function L(r) {
2770
2770
  var x, w;
2771
2771
  return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((w = r.data) == null ? void 0 : w.id) ?? "no-item-id"}`;
2772
2772
  }
2773
- async function _(r) {
2774
- var D;
2773
+ async function D(r) {
2774
+ var I;
2775
2775
  r.additionalUrl ?? (r.additionalUrl = "/getAll");
2776
- const x = v(r), w = `${e.storeName}_${((D = e.auth) == null ? void 0 : D.credentials.value.userID) ?? "no-user-id"}_${x}`, m = r.refresh;
2776
+ const x = v(r), w = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, m = r.refresh;
2777
2777
  if (!m && u.value[w] !== void 0)
2778
2778
  return u.value[w] ?? null;
2779
2779
  if (!m && y == !0) {
@@ -2788,13 +2788,13 @@ function _n(e) {
2788
2788
  R == null && (R = new Promise(async (S, T) => {
2789
2789
  var g;
2790
2790
  try {
2791
- let A = await ((g = e.api) == null ? void 0 : g.getAll(r));
2791
+ let _ = await ((g = e.api) == null ? void 0 : g.getAll(r));
2792
2792
  y == !0 && await oe().setItem(w, {
2793
2793
  meta: { storedOn: t },
2794
- ...A
2795
- }), S(A);
2796
- } catch (A) {
2797
- T(A);
2794
+ ..._
2795
+ }), S(_);
2796
+ } catch (_) {
2797
+ T(_);
2798
2798
  } finally {
2799
2799
  delete d.value[w];
2800
2800
  }
@@ -2834,11 +2834,11 @@ function _n(e) {
2834
2834
  delete d.value[x];
2835
2835
  }
2836
2836
  }), d.value[x] = m);
2837
- const D = await m;
2838
- return u.value[x] = D, D;
2837
+ const I = await m;
2838
+ return u.value[x] = I, I;
2839
2839
  } catch (m) {
2840
- let D = m;
2841
- throw new Error(D.message ?? "Problem");
2840
+ let I = m;
2841
+ throw new Error(I.message ?? "Problem");
2842
2842
  }
2843
2843
  }
2844
2844
  async function $(r) {
@@ -2850,8 +2850,8 @@ function _n(e) {
2850
2850
  let m = await e.api.patch(r);
2851
2851
  w = m == null ? void 0 : m.data;
2852
2852
  } catch (m) {
2853
- let D = m;
2854
- throw new Error(D.message ?? "Patch Problem");
2853
+ let I = m;
2854
+ throw new Error(I.message ?? "Patch Problem");
2855
2855
  }
2856
2856
  else
2857
2857
  w = r.data;
@@ -2883,8 +2883,8 @@ function _n(e) {
2883
2883
  let m = await e.api.post(r);
2884
2884
  w = m == null ? void 0 : m.data;
2885
2885
  } catch (m) {
2886
- let D = m;
2887
- throw new Error(D.message ?? "Patch Problem");
2886
+ let I = m;
2887
+ throw new Error(I.message ?? "Patch Problem");
2888
2888
  }
2889
2889
  else
2890
2890
  w = r.data;
@@ -2920,7 +2920,7 @@ function _n(e) {
2920
2920
  return {
2921
2921
  deleteItem: b,
2922
2922
  get: N,
2923
- getAll: _,
2923
+ getAll: D,
2924
2924
  patch: $,
2925
2925
  post: W,
2926
2926
  restore: l,
@@ -2931,13 +2931,13 @@ function _n(e) {
2931
2931
  }
2932
2932
  function kr(e) {
2933
2933
  return Kr(e.storeName, () => {
2934
- const t = z(), u = z(0), d = ue.utc().toSeconds() / 3600, y = z(), v = z(), L = z({}), _ = e.storageMode == "local-cache";
2934
+ const t = z(), u = z(0), d = ue.utc().toSeconds() / 3600, y = z(), v = z(), L = z({}), D = e.storageMode == "local-cache";
2935
2935
  function N() {
2936
2936
  var m;
2937
2937
  return `${e.storeName}_${((m = e.auth) == null ? void 0 : m.credentials.value.userID) ?? "no-user-id"}`;
2938
2938
  }
2939
2939
  async function $() {
2940
- _ == !0 && await oe().setItem(N(), {
2940
+ D == !0 && await oe().setItem(N(), {
2941
2941
  meta: v.value,
2942
2942
  data: t.value,
2943
2943
  count: u.value,
@@ -2945,8 +2945,8 @@ function kr(e) {
2945
2945
  });
2946
2946
  }
2947
2947
  function W(m) {
2948
- const D = N();
2949
- return L.value[D] || (L.value[D] = new Promise(async (R, B) => {
2948
+ const I = N();
2949
+ return L.value[I] || (L.value[I] = new Promise(async (R, B) => {
2950
2950
  var S, T;
2951
2951
  try {
2952
2952
  let g = await ((T = e.api) == null ? void 0 : T.getAll({
@@ -2956,10 +2956,10 @@ function kr(e) {
2956
2956
  lastUpdate: ((S = v.value) == null ? void 0 : S.lastUpdate) ?? en()
2957
2957
  }
2958
2958
  }));
2959
- g == null ? B(g) : (t.value ?? (t.value = []), g.data.forEach((A) => {
2959
+ g == null ? B(g) : (t.value ?? (t.value = []), g.data.forEach((_) => {
2960
2960
  var E, j;
2961
- const h = t.value.findIndex((Q) => Q.id == A.id);
2962
- h >= 0 ? (E = t.value) == null || E.splice(h, 1, A) : (j = t.value) == null || j.push(A);
2961
+ const s = t.value.findIndex((Q) => Q.id == _.id);
2962
+ s >= 0 ? (E = t.value) == null || E.splice(s, 1, _) : (j = t.value) == null || j.push(_);
2963
2963
  }), u.value = t.value.length, v.value = {
2964
2964
  lastUpdate: ue.utc().toString(),
2965
2965
  storedOn: d.toString()
@@ -2967,21 +2967,21 @@ function kr(e) {
2967
2967
  } catch (g) {
2968
2968
  B(g);
2969
2969
  } finally {
2970
- delete L.value[D];
2970
+ delete L.value[I];
2971
2971
  }
2972
- })), L.value[D];
2972
+ })), L.value[I];
2973
2973
  }
2974
2974
  async function b(m) {
2975
2975
  var B, S, T;
2976
- const D = N(), R = m.refresh;
2976
+ const I = N(), R = m.refresh;
2977
2977
  if (m.nav ?? (m.nav = e.storeName), !R && t.value != null)
2978
2978
  return {
2979
2979
  count: (B = t.value) == null ? void 0 : B.length,
2980
2980
  data: t.value,
2981
2981
  filters: []
2982
2982
  };
2983
- if (!R && _ == !0) {
2984
- const g = await oe().getItem(D);
2983
+ if (!R && D == !0) {
2984
+ const g = await oe().getItem(I);
2985
2985
  if (g != null && parseFloat(g.meta.storedOn) > d - 12)
2986
2986
  return t.value = g.data, u.value = g.data.length, y.value = g.filters ?? [], v.value = g.meta, {
2987
2987
  count: (S = t.value) == null ? void 0 : S.length,
@@ -2999,22 +2999,22 @@ function kr(e) {
2999
2999
  try {
3000
3000
  return await W(m);
3001
3001
  } catch (g) {
3002
- let A = g;
3003
- throw new Error(A.message ?? "Problem");
3002
+ let _ = g;
3003
+ throw new Error(_.message ?? "Problem");
3004
3004
  }
3005
3005
  }
3006
3006
  async function l(m) {
3007
3007
  var B, S;
3008
- const D = N(), R = m.refresh;
3008
+ const I = N(), R = m.refresh;
3009
3009
  if (m.nav ?? (m.nav = e.storeName), !R && t.value != null)
3010
3010
  return {
3011
3011
  data: t.value.find((T) => T.id == m.id)
3012
3012
  };
3013
- if (!R && _ == !0) {
3014
- const T = await oe().getItem(D);
3013
+ if (!R && D == !0) {
3014
+ const T = await oe().getItem(I);
3015
3015
  if (T != null && parseFloat(T.meta.storedOn) > d - 12) {
3016
3016
  t.value = T.data, u.value = T.data.length, y.value = T.filters ?? [], v.value = T.meta;
3017
- let g = t.value.find((A) => A.id == m.id);
3017
+ let g = t.value.find((_) => _.id == m.id);
3018
3018
  if (g != null)
3019
3019
  return { data: g };
3020
3020
  }
@@ -3031,41 +3031,41 @@ function kr(e) {
3031
3031
  throw new Error(g.message ?? "Problem");
3032
3032
  }
3033
3033
  }
3034
- async function s(m) {
3034
+ async function o(m) {
3035
3035
  var R, B, S;
3036
3036
  m.additionalUrl ?? (m.additionalUrl = "/patch"), m.nav ?? (m.nav = e.storeName);
3037
- let D;
3037
+ let I;
3038
3038
  if (e.api != null)
3039
3039
  try {
3040
3040
  let T = await e.api.patch(m);
3041
- D = { ...m.data, ...T == null ? void 0 : T.data };
3041
+ I = { ...m.data, ...T == null ? void 0 : T.data };
3042
3042
  } catch (T) {
3043
3043
  let g = T;
3044
3044
  throw new Error(g.message ?? "Patch Problem");
3045
3045
  }
3046
3046
  else
3047
- D = m.data;
3048
- if (D != null) {
3049
- let T = (R = t.value) == null ? void 0 : R.findIndex((g) => g.id == D.id);
3050
- T != null && T >= 0 && (t.value ?? (t.value = []), (B = t.value) == null || B.splice(T, 1, D), await $());
3047
+ I = m.data;
3048
+ if (I != null) {
3049
+ let T = (R = t.value) == null ? void 0 : R.findIndex((g) => g.id == I.id);
3050
+ T != null && T >= 0 && (t.value ?? (t.value = []), (B = t.value) == null || B.splice(T, 1, I), await $());
3051
3051
  }
3052
3052
  return (S = t.value) == null ? void 0 : S.find((T) => T.id == (m.id ?? m.data.id));
3053
3053
  }
3054
3054
  async function r(m) {
3055
3055
  var R, B;
3056
3056
  m.additionalUrl ?? (m.additionalUrl = "/post"), m.nav ?? (m.nav = e.storeName);
3057
- let D;
3057
+ let I;
3058
3058
  if (e.api != null)
3059
3059
  try {
3060
3060
  let S = await e.api.post(m);
3061
- D = S == null ? void 0 : S.data;
3061
+ I = S == null ? void 0 : S.data;
3062
3062
  } catch (S) {
3063
3063
  let T = S;
3064
3064
  throw new Error(T.message ?? "Patch Problem");
3065
3065
  }
3066
3066
  else
3067
- D = m.data;
3068
- return D != null && (t.value ?? (t.value = []), (R = t.value) == null || R.unshift(D), u.value += 1, await $()), (B = t.value) == null ? void 0 : B.find((S) => S.id == (m.id ?? m.data.id));
3067
+ I = m.data;
3068
+ return I != null && (t.value ?? (t.value = []), (R = t.value) == null || R.unshift(I), u.value += 1, await $()), (B = t.value) == null ? void 0 : B.find((S) => S.id == (m.id ?? m.data.id));
3069
3069
  }
3070
3070
  async function x(m) {
3071
3071
  var R, B;
@@ -3078,14 +3078,14 @@ function kr(e) {
3078
3078
  let T = S;
3079
3079
  throw new Error(T.message ?? "Patch Problem");
3080
3080
  }
3081
- const D = m.id ?? m.data.id;
3082
- if (D != null) {
3083
- let S = (R = t.value) == null ? void 0 : R.findIndex((T) => T.id == D);
3081
+ const I = m.id ?? m.data.id;
3082
+ if (I != null) {
3083
+ let S = (R = t.value) == null ? void 0 : R.findIndex((T) => T.id == I);
3084
3084
  S != null && S >= 0 && (t.value ?? (t.value = []), (B = t.value) == null || B.splice(S, 1), await $());
3085
3085
  }
3086
3086
  }
3087
3087
  async function w(m) {
3088
- var D;
3088
+ var I;
3089
3089
  if (m.additionalUrl ?? (m.additionalUrl = `/patch/restore?id=${m.data.id}`), m.nav ?? (m.nav = e.storeName), e.api != null)
3090
3090
  try {
3091
3091
  await e.api.patch(m);
@@ -3099,13 +3099,13 @@ function kr(e) {
3099
3099
  let B = R;
3100
3100
  throw new Error(B.message ?? "Problem");
3101
3101
  }
3102
- return (D = t.value) == null ? void 0 : D.find((R) => R.id == (m.id ?? m.data.id));
3102
+ return (I = t.value) == null ? void 0 : I.find((R) => R.id == (m.id ?? m.data.id));
3103
3103
  }
3104
3104
  return {
3105
3105
  deleteItem: x,
3106
3106
  get: l,
3107
3107
  getAll: b,
3108
- patch: s,
3108
+ patch: o,
3109
3109
  post: r,
3110
3110
  restore: w
3111
3111
  };
@@ -3113,19 +3113,19 @@ function kr(e) {
3113
3113
  }
3114
3114
  function va(e, t, u) {
3115
3115
  var Ce;
3116
- const d = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", y = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", v = e.nav ?? e.nav ?? "basic", L = vn(), _ = jr(), N = zt(), $ = z(1), W = Y(e.customFilters) ?? [], b = z([]);
3116
+ const d = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", y = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", v = e.nav ?? e.nav ?? "basic", L = vn(), D = jr(), N = zt(), $ = z(1), W = Y(e.customFilters) ?? [], b = z([]);
3117
3117
  let l = z(new Array());
3118
- const s = fe(() => qt([
3118
+ const o = fe(() => qt([
3119
3119
  ...W.filter((k) => k.name != null).map((k) => k.name),
3120
3120
  ...e.defaultFilters ?? [],
3121
3121
  ...b.value
3122
- ]).value), r = z((e.defaultFilters ?? []).map((k) => s.value.indexOf(k))), x = fe(() => $r(l, r).value.length > 0 || $r(r, l).value.length > 0), w = Y(e.proxyQueryKey), m = fe(() => {
3122
+ ]).value), r = z((e.defaultFilters ?? []).map((k) => o.value.indexOf(k))), x = fe(() => $r(l, r).value.length > 0 || $r(r, l).value.length > 0), w = Y(e.proxyQueryKey), m = fe(() => {
3123
3123
  var k;
3124
3124
  return Y(e.proxyID) ?? (w != null ? (k = N.query) == null ? void 0 : k[w] : void 0);
3125
- }), D = Y(e.searchQueryKey), R = z(D != null ? (Ce = N.query) == null ? void 0 : Ce[D] : void 0), B = z(Y(e.startShowingInactive) ?? !1), S = z(Y(e.sortOrder)), T = fe(() => [
3125
+ }), I = Y(e.searchQueryKey), R = z(I != null ? (Ce = N.query) == null ? void 0 : Ce[I] : void 0), B = z(Y(e.startShowingInactive) ?? !1), S = z(Y(e.sortOrder)), T = fe(() => [
3126
3126
  ...e.searchProps ?? [],
3127
3127
  ...(e.headers ?? []).filter((k) => k.searchable != null && k.value != null).map((k) => k.value ?? "")
3128
- ]), g = z([]), A = Pe([]), h = z([]);
3128
+ ]), g = z([]), _ = Pe([]), s = z([]);
3129
3129
  let E;
3130
3130
  const { actionErrorMsg: j, actionLoadingMsg: Q, deleteItem: ee, doAction: le, getItem: Se, getAllItems: F, restoreItem: V } = Kt({
3131
3131
  nav: e.nav ?? e.bladeName ?? e.itemBladeName,
@@ -3135,7 +3135,7 @@ function va(e, t, u) {
3135
3135
  storageMode: y,
3136
3136
  storeName: v
3137
3137
  })
3138
- }), q = fe(() => e.errorMsg ?? j.value), ae = fe(() => e.loadingMsg ?? Q.value), Z = fe(() => ae.value != null), p = Pe(!1), ce = Pe(e.showSearch ?? !1), he = z(0), ve = fe(() => (k) => e.onCanDelete != null ? e.onCanDelete(k) : !(k != null && k.isInactive === !0)), Je = fe(() => (k) => B.value ? e.onCanRestore != null ? e.onCanRestore(k) : (k == null ? void 0 : k.isInactive) === !0 : !1), xe = fe(() => h.value.filter((k) => !k.hide)), je = fe(() => {
3138
+ }), q = fe(() => e.errorMsg ?? j.value), ae = fe(() => e.loadingMsg ?? Q.value), Z = fe(() => ae.value != null), p = Pe(!1), ce = Pe(e.showSearch ?? !1), he = z(0), ve = fe(() => (k) => e.onCanDelete != null ? e.onCanDelete(k) : !(k != null && k.isInactive === !0)), Je = fe(() => (k) => B.value ? e.onCanRestore != null ? e.onCanRestore(k) : (k == null ? void 0 : k.isInactive) === !0 : !1), xe = fe(() => s.value.filter((k) => !k.hide)), je = fe(() => {
3139
3139
  let k = new Array();
3140
3140
  return xe.value.filter((J) => J.sublevel != null).forEach((J) => {
3141
3141
  let O = k.find((ge) => ge.position == J.sublevel);
@@ -3155,7 +3155,7 @@ function va(e, t, u) {
3155
3155
  id: "new",
3156
3156
  nav: v
3157
3157
  };
3158
- k == "page" && _.push({
3158
+ k == "page" && D.push({
3159
3159
  name: re.bladeName,
3160
3160
  params: { id: "new" }
3161
3161
  });
@@ -3206,7 +3206,7 @@ function va(e, t, u) {
3206
3206
  }
3207
3207
  function er() {
3208
3208
  le(() => {
3209
- L.exportToCSV(xe.value, A.value);
3209
+ L.exportToCSV(xe.value, _.value);
3210
3210
  }, { loadingMsg: "Exporting to CSV" });
3211
3211
  }
3212
3212
  function Re() {
@@ -3215,10 +3215,10 @@ function va(e, t, u) {
3215
3215
  let re = [...T.value];
3216
3216
  e.itemText && re.push(e.itemText), Ne(re) && (k = k.filter((J) => ln(J, R.value, re)));
3217
3217
  }
3218
- A.value = k;
3218
+ _.value = k;
3219
3219
  }
3220
3220
  function ye() {
3221
- e.headers != null && (h.value = [...e.headers], e.hideActions || h.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3221
+ e.headers != null && (s.value = [...e.headers], e.hideActions || s.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3222
3222
  }
3223
3223
  async function De(k) {
3224
3224
  if (p.value = !1, (k == null ? void 0 : k.resetSearch) === !0 && (ce.value = e.showSearch ?? !1, R.value = void 0), e.items != null) {
@@ -3262,7 +3262,7 @@ function va(e, t, u) {
3262
3262
  id: J.id,
3263
3263
  nav: e.nav
3264
3264
  };
3265
- re == "page" && _.push({
3265
+ re == "page" && D.push({
3266
3266
  name: O.bladeName,
3267
3267
  params: { id: O.id }
3268
3268
  });
@@ -3292,10 +3292,10 @@ function va(e, t, u) {
3292
3292
  displayHeaders: Qe,
3293
3293
  errorMsg: q,
3294
3294
  exportToCSV: er,
3295
- filteredItems: A,
3296
- filters: s,
3295
+ filteredItems: _,
3296
+ filters: o,
3297
3297
  filtersChanged: x,
3298
- headerOptions: h,
3298
+ headerOptions: s,
3299
3299
  isDeletable: ve,
3300
3300
  isLoading: Z,
3301
3301
  isRestorable: Je,
@@ -3335,51 +3335,51 @@ function xn(e) {
3335
3335
  ...l
3336
3336
  }));
3337
3337
  function d(l) {
3338
- var s;
3339
- return (s = _(l)) == null ? void 0 : s.archiveName;
3338
+ var o;
3339
+ return (o = D(l)) == null ? void 0 : o.archiveName;
3340
3340
  }
3341
3341
  function y(l) {
3342
- var s;
3343
- return ((s = _(l)) == null ? void 0 : s.cacheExpiryHours) ?? t;
3342
+ var o;
3343
+ return ((o = D(l)) == null ? void 0 : o.cacheExpiryHours) ?? t;
3344
3344
  }
3345
3345
  function v(l) {
3346
- var s;
3347
- return (s = _(l)) == null ? void 0 : s.displayName;
3346
+ var o;
3347
+ return (o = D(l)) == null ? void 0 : o.displayName;
3348
3348
  }
3349
3349
  function L(l) {
3350
- var s;
3351
- return (s = _(l)) == null ? void 0 : s.icon;
3350
+ var o;
3351
+ return (o = D(l)) == null ? void 0 : o.icon;
3352
3352
  }
3353
- function _(l) {
3353
+ function D(l) {
3354
3354
  return l == null ? null : typeof l != "string" ? l : Xr(u, (r) => r.children).find((r) => {
3355
3355
  var x;
3356
3356
  return r.name == l || r.singleName == l || ((x = r.aliases) == null ? void 0 : x.some((w) => w == l));
3357
3357
  }) ?? null;
3358
3358
  }
3359
3359
  function N(l) {
3360
- const s = _(l);
3361
- if (s == null)
3360
+ const o = D(l);
3361
+ if (o == null)
3362
3362
  return;
3363
- let r = on(s.microservice ?? "default") ?? "";
3364
- return s.path != null && (r = _e(r, s.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3363
+ let r = on(o.microservice ?? "default") ?? "";
3364
+ return o.path != null && (r = _e(r, o.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3365
3365
  }
3366
3366
  function $(l) {
3367
- const s = _(l);
3368
- if ((s == null ? void 0 : s.singleName) != null)
3369
- return s.singleName;
3370
- const r = s == null ? void 0 : s.displayName;
3367
+ const o = D(l);
3368
+ if ((o == null ? void 0 : o.singleName) != null)
3369
+ return o.singleName;
3370
+ const r = o == null ? void 0 : o.displayName;
3371
3371
  if (r != null)
3372
3372
  return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
3373
3373
  }
3374
3374
  function W(l) {
3375
- const s = _(l);
3376
- return (s == null ? void 0 : s.name) ?? (s == null ? void 0 : s.singleName) ?? "store";
3375
+ const o = D(l);
3376
+ return (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.singleName) ?? "store";
3377
3377
  }
3378
3378
  function b(l) {
3379
3379
  if (l == null)
3380
3380
  return;
3381
- const s = typeof l == "string" ? _(l) : l;
3382
- qr.value = s == null ? void 0 : s.background, Gr.value = (s == null ? void 0 : s.hideNavigation) !== !0, Wr.value = (s == null ? void 0 : s.hideAppBar) !== !0, sr != null && sr(), fr.value = (s == null ? void 0 : s.hesitate) === !0, fr.value && (sr = window.addEventListener("beforeunload", (r) => {
3381
+ const o = typeof l == "string" ? D(l) : l;
3382
+ qr.value = o == null ? void 0 : o.background, Gr.value = (o == null ? void 0 : o.hideNavigation) !== !0, Wr.value = (o == null ? void 0 : o.hideAppBar) !== !0, sr != null && sr(), fr.value = (o == null ? void 0 : o.hesitate) === !0, fr.value && (sr = window.addEventListener("beforeunload", (r) => {
3383
3383
  r.preventDefault();
3384
3384
  }));
3385
3385
  }
@@ -3393,7 +3393,7 @@ function xn(e) {
3393
3393
  findCacheHours: y,
3394
3394
  findDisplay: v,
3395
3395
  findIcon: L,
3396
- findItem: _,
3396
+ findItem: D,
3397
3397
  findStoreName: W,
3398
3398
  findPath: N,
3399
3399
  findSingleDisplay: $,
@@ -3453,11 +3453,11 @@ function Cn() {
3453
3453
  }
3454
3454
  const Ln = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
3455
3455
  function ba(e, t = {}) {
3456
- let u, d = t.handleWidth ?? 12, y = t.handleZIndex ?? 100, v = t.minWidth ?? 0, L = t.maxWidth ?? Number.MAX_SAFE_INTEGER, _ = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, $ = t.preventDefault ?? !1, W = t.stopPropagation ?? !1, b, l = [];
3457
- const s = z(!1);
3456
+ let u, d = t.handleWidth ?? 12, y = t.handleZIndex ?? 100, v = t.minWidth ?? 0, L = t.maxWidth ?? Number.MAX_SAFE_INTEGER, D = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, $ = t.preventDefault ?? !1, W = t.stopPropagation ?? !1, b, l = [];
3457
+ const o = z(!1);
3458
3458
  let r = [], x = [];
3459
3459
  const w = z(!1), m = z({ x: 0, y: 0 });
3460
- let D = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, R = {};
3460
+ let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, R = {};
3461
3461
  function B(F) {
3462
3462
  be($) && F.preventDefault(), be(W) && F.stopPropagation();
3463
3463
  }
@@ -3471,7 +3471,7 @@ function ba(e, t = {}) {
3471
3471
  const V = d + "px", q = -d / 2 + "px", ae = y + 1, Z = document.createElement("div");
3472
3472
  return Z.dataset.handle = F, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (F.length === 1 ? y : ae).toString(), Z.style.cursor = j(F), F.includes("t") && (Z.style.top = q, Z.style.height = V, F === "t" && (Z.style.left = "0", Z.style.width = "100%")), F.includes("b") && (Z.style.bottom = q, Z.style.height = V, F === "b" && (Z.style.left = "0", Z.style.width = "100%")), F.includes("r") && (Z.style.right = q, Z.style.width = V, F === "r" && (Z.style.top = "0", Z.style.height = "100%")), F.includes("l") && (Z.style.left = q, Z.style.width = V, F === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
3473
3473
  }
3474
- function A(F) {
3474
+ function _(F) {
3475
3475
  var ce;
3476
3476
  if (!l.some((he) => he == F.target))
3477
3477
  return;
@@ -3479,29 +3479,29 @@ function ba(e, t = {}) {
3479
3479
  if (!V)
3480
3480
  return;
3481
3481
  const q = V.$el, Z = F.type === "touchstart" && F.touches.length > 0 ? F.touches[0] : F;
3482
- if (m.value.x = Z.clientX, m.value.y = Z.clientY, D = {
3482
+ if (m.value.x = Z.clientX, m.value.y = Z.clientY, I = {
3483
3483
  left: q.offsetLeft,
3484
3484
  top: q.offsetTop,
3485
3485
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
3486
3486
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width"))
3487
- }, R = Ir(D), ((ce = t.onStart) == null ? void 0 : ce.call(t, m.value, F)) === !1)
3487
+ }, R = Ir(I), ((ce = t.onStart) == null ? void 0 : ce.call(t, m.value, F)) === !1)
3488
3488
  return;
3489
3489
  let p = F.target;
3490
- document.documentElement.style.cursor = j(p.dataset.handle), b = p.dataset.handle, x.push(se("mousemove", h)), x.push(se("mouseup", E)), x.push(se("touchmove", h)), x.push(se("touchend", E)), B(F);
3490
+ document.documentElement.style.cursor = j(p.dataset.handle), b = p.dataset.handle, x.push(se("mousemove", s)), x.push(se("mouseup", E)), x.push(se("touchmove", s)), x.push(se("touchend", E)), B(F);
3491
3491
  }
3492
- function h(F) {
3492
+ function s(F) {
3493
3493
  const V = be(e);
3494
3494
  if (!V)
3495
3495
  return;
3496
3496
  const q = V.$el, Z = F.type === "touchmove" && F.touches.length > 0 ? F.touches[0] : F;
3497
3497
  let p = Z.clientX - m.value.x, ce = Z.clientY - m.value.y;
3498
- const he = be(D);
3498
+ const he = be(I);
3499
3499
  if (b.includes("t")) {
3500
- const ve = Math.min(N, Math.max(_, (he.height ?? 0) - ce));
3500
+ const ve = Math.min(N, Math.max(D, (he.height ?? 0) - ce));
3501
3501
  R.height = ve, R.top = (he.top ?? 0) + ce;
3502
3502
  }
3503
3503
  if (b.includes("b")) {
3504
- const ve = Math.min(N, Math.max(_, (he.height ?? 0) + ce));
3504
+ const ve = Math.min(N, Math.max(D, (he.height ?? 0) + ce));
3505
3505
  R.height = ve;
3506
3506
  }
3507
3507
  if (b.includes("l")) {
@@ -3540,24 +3540,24 @@ function ba(e, t = {}) {
3540
3540
  const ce = window.getComputedStyle(Z);
3541
3541
  p = parseInt(ce.getPropertyValue("width")) - Z.offsetLeft;
3542
3542
  }
3543
- q.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", q.offsetHeight, s.value = !0, ee({
3543
+ q.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", q.offsetHeight, o.value = !0, ee({
3544
3544
  height: void 0,
3545
3545
  width: p,
3546
3546
  top: 0,
3547
3547
  left: 0,
3548
3548
  position: void 0
3549
3549
  }), se(q, "transitionend", () => {
3550
- q.style.width = "auto", q.style.top = "", q.style.left = "", q.style.position = "", q.style.transition = "", s.value = !1;
3550
+ q.style.width = "auto", q.style.top = "", q.style.left = "", q.style.position = "", q.style.transition = "", o.value = !1;
3551
3551
  }, { once: !0 });
3552
3552
  } else if ((u == "page" || V.$el.style.position !== "absolute") && F !== "page") {
3553
- q.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", s.value = !0, D = {
3553
+ q.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", o.value = !0, I = {
3554
3554
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
3555
3555
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width")),
3556
3556
  top: q.offsetTop,
3557
3557
  left: q.offsetLeft,
3558
3558
  position: "absolute"
3559
- }, ee(D), q.offsetHeight;
3560
- const ae = D;
3559
+ }, ee(I), q.offsetHeight;
3560
+ const ae = I;
3561
3561
  F == "freestyle" ? R = {
3562
3562
  height: ae.height,
3563
3563
  width: (ae.width ?? 100) / 2,
@@ -3571,7 +3571,7 @@ function ba(e, t = {}) {
3571
3571
  left: (ae.left ?? 0) + 2,
3572
3572
  position: "absolute"
3573
3573
  }), ee(R), se(q, "transitionend", () => {
3574
- q.style.transition = "", s.value = !1;
3574
+ q.style.transition = "", o.value = !1;
3575
3575
  }, { once: !0 });
3576
3576
  }
3577
3577
  }
@@ -3586,7 +3586,7 @@ function ba(e, t = {}) {
3586
3586
  if (w.value)
3587
3587
  return;
3588
3588
  const q = be(e);
3589
- q && (S(q, F ?? Ln), Q(V), r.push(se(q.$el, "mousedown", A)), r.push(se(q.$el, "touchstart", A)), w.value = !0, u = V);
3589
+ q && (S(q, F ?? Ln), Q(V), r.push(se(q.$el, "mousedown", _)), r.push(se(q.$el, "touchstart", _)), w.value = !0, u = V);
3590
3590
  }
3591
3591
  function Se(F) {
3592
3592
  if (!w.value)
@@ -3609,14 +3609,14 @@ function Sa(e) {
3609
3609
  function Ea(e, t) {
3610
3610
  const u = z(!1), d = Gt(e);
3611
3611
  let y = v(Y(e));
3612
- (t == null ? void 0 : t.useTracker) !== !1 && $e(d, (_) => {
3613
- u.value = v(_) != y;
3612
+ (t == null ? void 0 : t.useTracker) !== !1 && $e(d, (D) => {
3613
+ u.value = v(D) != y;
3614
3614
  }, { deep: !0 });
3615
- function v(_) {
3616
- const N = Ir(_);
3615
+ function v(D) {
3616
+ const N = Ir(D);
3617
3617
  return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach(($) => {
3618
3618
  delete N[$];
3619
- }) : t.propsToTrack != null && Object.keys(_).forEach((W) => {
3619
+ }) : t.propsToTrack != null && Object.keys(D).forEach((W) => {
3620
3620
  t.propsToTrack.some((b) => b == W) || delete N[W];
3621
3621
  })), JSON.stringify(N);
3622
3622
  }
@@ -3640,11 +3640,11 @@ function Aa(e) {
3640
3640
  auth: v,
3641
3641
  findPath: y.findPath,
3642
3642
  useBearerToken: !0
3643
- }), _ = gn({
3643
+ }), D = gn({
3644
3644
  getTimeZone: v.getTimeZone
3645
3645
  });
3646
3646
  bn({
3647
- dates: _
3647
+ dates: D
3648
3648
  }), Cn(), An({
3649
3649
  api: L,
3650
3650
  auth: v