bt-core-app 1.4.98 → 1.4.99

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 +820 -815
  2. package/package.json +1 -1
@@ -11,7 +11,7 @@ function pt(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function en(e) {
14
- const t = z([]), l = Ne(), S = Ne(), s = Ne(), g = ee(() => l.value != null);
14
+ const t = z([]), l = Ne(), A = Ne(), s = Ne(), g = ee(() => l.value != null);
15
15
  function I(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
@@ -23,18 +23,18 @@ function en(e) {
23
23
  return t.value.push(h), h.id;
24
24
  }
25
25
  function _(d) {
26
- d != null && (S.value = d.toString());
26
+ d != null && (A.value = d.toString());
27
27
  }
28
- function L() {
29
- S.value = void 0;
28
+ function M() {
29
+ A.value = void 0;
30
30
  }
31
31
  async function $(d, h) {
32
32
  const u = { ...h };
33
33
  u.completionMsg ?? (u.completionMsg = e == null ? void 0 : e.completionMsg), u.confirmationMsg ?? (u.confirmationMsg = e == null ? void 0 : e.confirmationMsg), u.errorMsg ?? (u.errorMsg = e == null ? void 0 : e.errorMsg), u.loadingMsg ?? (u.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), u.requireConfirmation ?? (u.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
34
  const r = C(u.loadingMsg);
35
- let y = null;
35
+ let w = null;
36
36
  try {
37
- return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
37
+ return u.requireConfirmation || u.confirmationMsg, w = await d(), u.completionMsg != null && (s.value = u.completionMsg), w;
38
38
  } catch (D) {
39
39
  if ((e == null ? void 0 : e.onError) != null)
40
40
  e.onError(D);
@@ -50,10 +50,10 @@ function en(e) {
50
50
  return Or(t, (d) => {
51
51
  l.value = d.length > 0 ? d[0].msg : void 0;
52
52
  }, { deep: !0 }), {
53
- actionErrorMsg: S,
53
+ actionErrorMsg: A,
54
54
  actionLoadingMsg: l,
55
55
  actionCompleteMsg: s,
56
- clearErrors: L,
56
+ clearErrors: M,
57
57
  doAction: $,
58
58
  isLoading: g,
59
59
  logError: _
@@ -78,11 +78,11 @@ var Re = function() {
78
78
  };
79
79
  }
80
80
  if (s.length === 1) {
81
- var C = s, _ = g.ignoreCase ? t : e, L = g.cmp || function(d, h) {
81
+ var C = s, _ = g.ignoreCase ? t : e, M = g.cmp || function(d, h) {
82
82
  return d < h ? -1 : d > h ? 1 : 0;
83
83
  };
84
84
  s = function(d, h) {
85
- return L(_(C(d)), _(C(h)));
85
+ return M(_(C(d)), _(C(h)));
86
86
  };
87
87
  }
88
88
  const $ = { "-1": "", desc: "" };
@@ -90,25 +90,25 @@ var Re = function() {
90
90
  return -s(d, h);
91
91
  } : s;
92
92
  }
93
- function S(s, g) {
94
- var I = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), _ = I ? function(L, $) {
95
- return I(L, $) || C(L, $);
93
+ function A(s, g) {
94
+ var I = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), _ = I ? function(M, $) {
95
+ return I(M, $) || C(M, $);
96
96
  } : C;
97
- return _.thenBy = S, _;
97
+ return _.thenBy = A, _;
98
98
  }
99
- return S.firstBy = S, S;
99
+ return A.firstBy = A, A;
100
100
  }();
101
101
  function Ue(e, t) {
102
- let l = e ?? "", S = t ?? "";
102
+ let l = e ?? "", A = t ?? "";
103
103
  if (l.endsWith("/"))
104
104
  do
105
105
  l = l.slice(0, l.length - 1);
106
106
  while (l.endsWith("/"));
107
- if (S.startsWith("/"))
107
+ if (A.startsWith("/"))
108
108
  do
109
- S = S.slice(1, S.length);
110
- while (S.startsWith("/"));
111
- return `${l}/${S}`;
109
+ A = A.slice(1, A.length);
110
+ while (A.startsWith("/"));
111
+ return `${l}/${A}`;
112
112
  }
113
113
  function Zn(e) {
114
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
@@ -159,13 +159,13 @@ function rt(e, t = !1) {
159
159
  }
160
160
  function On(e, t, l) {
161
161
  if (e) {
162
- var S = new Image();
163
- S.onload = t, S.onerror = l, S.src = e;
162
+ var A = new Image();
163
+ A.onload = t, A.onerror = l, A.src = e;
164
164
  }
165
165
  }
166
166
  async function pn(e, t = !0) {
167
- return new Promise((l, S) => {
168
- e == null && S("no url given");
167
+ return new Promise((l, A) => {
168
+ e == null && A("no url given");
169
169
  var s = new Image();
170
170
  s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
171
171
  var g = document.createElement("canvas");
@@ -173,7 +173,7 @@ async function pn(e, t = !0) {
173
173
  var I = g.getContext("2d");
174
174
  I == null || I.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
175
175
  }, s.onerror = function() {
176
- console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
176
+ console.log("errr"), t ? A("image could not be loaded for some reason") : l(null);
177
177
  }, e != null && (s.src = e);
178
178
  });
179
179
  }
@@ -202,19 +202,19 @@ const Ze = [
202
202
  function ra(e) {
203
203
  if (e == null)
204
204
  return 0;
205
- const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ze.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
205
+ const t = e.replaceAll(" ", "").split(",").map((A) => A.toLowerCase()), l = Ze.filter((A) => A.values.some((s) => t.some((g) => s == g))).map((A) => A.value);
206
206
  return l.length == 0 ? 8 : Math.min(...l);
207
207
  }
208
208
  function ta(e) {
209
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
210
- let l = Ze.find((S) => S.values.some((s) => s == t));
210
+ let l = Ze.find((A) => A.values.some((s) => s == t));
211
211
  return l != null ? l.short : "";
212
212
  }).filter((t) => t != null && t.length > 0).toString();
213
213
  }
214
214
  function na(e, t) {
215
215
  if (e == null || t == null)
216
216
  return !0;
217
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((I) => I == S));
217
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), A = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((I) => I == A));
218
218
  return s != null && l.some((g) => g == s.short || s.values.some((I) => I == g));
219
219
  }
220
220
  function aa(e, t) {
@@ -222,13 +222,13 @@ function aa(e, t) {
222
222
  return e;
223
223
  let l = e ?? "";
224
224
  l = `${l},${t}`;
225
- let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((I) => I == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
- return S.length > 0 ? S : void 0;
225
+ let A = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((I) => I == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
+ return A.length > 0 ? A : void 0;
227
227
  }
228
228
  function la(e, t) {
229
229
  if (t == null || e == null)
230
230
  return e;
231
- let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((I) => I.values.some((C) => C == g && C != S))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
231
+ let l = e ?? "", A = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((I) => I.values.some((C) => C == g && C != A))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
232
232
  return s.length > 0 ? s : void 0;
233
233
  }
234
234
  function ua(e, t) {
@@ -247,38 +247,38 @@ function ln() {
247
247
  return "0001-01-01T00:00:00Z";
248
248
  }
249
249
  function ca(e, t) {
250
- let l = "1", S = 0;
251
- if (S < t)
250
+ let l = "1", A = 0;
251
+ if (A < t)
252
252
  do
253
- l = l + "0", S += 1;
254
- while (S < t);
253
+ l = l + "0", A += 1;
254
+ while (A < t);
255
255
  let s = Number.parseInt(l);
256
256
  return Math.round(e * s) / s;
257
257
  }
258
258
  function fa(e, t) {
259
259
  let l = e ?? "";
260
- return t != null && (un(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
260
+ return t != null && (un(l, t) ? l = l.split(",").filter((A) => A != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
261
261
  }
262
262
  function un(e, t) {
263
263
  if (e == null || e.length == 0)
264
264
  return !1;
265
265
  if (!t)
266
266
  return !0;
267
- var l = e.split(","), S = t.split(",");
268
- return l.some((s) => S.some((g) => g == s));
267
+ var l = e.split(","), A = t.split(",");
268
+ return l.some((s) => A.some((g) => g == s));
269
269
  }
270
270
  function Nr(e) {
271
271
  if (!e)
272
272
  return e;
273
273
  let t, l = Array.isArray(e) ? [] : {};
274
- for (const S in e)
275
- t = e[S], l[S] = typeof t == "object" ? Nr(t) : t;
274
+ for (const A in e)
275
+ t = e[A], l[A] = typeof t == "object" ? Nr(t) : t;
276
276
  return l;
277
277
  }
278
278
  function cn(e) {
279
279
  return e && Object.keys(e).sort().reduce(function(t, l) {
280
- let S = e[l];
281
- return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
280
+ let A = e[l];
281
+ return t[l] = typeof A == "object" && A !== null ? cn(A) : A, t;
282
282
  }, Array.isArray(e) ? [] : {});
283
283
  }
284
284
  function fn(e, t) {
@@ -288,17 +288,17 @@ function tt(e, t = (l) => l) {
288
288
  if (e == null)
289
289
  return [];
290
290
  const l = Array.isArray(e) ? e : t(e);
291
- return _e(l) ? [...l.reduce((S, s) => {
292
- S.push(s);
291
+ return _e(l) ? [...l.reduce((A, s) => {
292
+ A.push(s);
293
293
  const g = tt(s, t);
294
- return _e(g) && S.push(...g), S;
294
+ return _e(g) && A.push(...g), A;
295
295
  }, [])] : [];
296
296
  }
297
297
  function sa(e) {
298
- const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
298
+ const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), A = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
299
299
  for (let g = 0; g < l.length; g++)
300
300
  s[g] = l.charCodeAt(g);
301
- return new Blob([s], { type: S });
301
+ return new Blob([s], { type: A });
302
302
  }
303
303
  function sn(e) {
304
304
  var t = "";
@@ -324,8 +324,8 @@ function dn(e, t, l) {
324
324
  return !1;
325
325
  for (let s = 0; s < l.length; s++) {
326
326
  const g = l[s];
327
- var S = Sr(e, g);
328
- if (S != null && typeof S == "string" && fn(S, t))
327
+ var A = Sr(e, g);
328
+ if (A != null && typeof A == "string" && fn(A, t))
329
329
  return !0;
330
330
  }
331
331
  return !1;
@@ -342,8 +342,8 @@ function Sr(e, t) {
342
342
  if (e == null || e == null || !t)
343
343
  return null;
344
344
  var l = t.split(".");
345
- let S = l.length;
346
- for (var s = e, g = 0; g < S; g++)
345
+ let A = l.length;
346
+ for (var s = e, g = 0; g < A; g++)
347
347
  if (s = s[l[g]], s == null)
348
348
  return null;
349
349
  return s;
@@ -368,35 +368,35 @@ var nt = { exports: {} };
368
368
  (function(l) {
369
369
  e.exports = l();
370
370
  })(function() {
371
- return function l(S, s, g) {
372
- function I(L, $) {
373
- if (!s[L]) {
374
- if (!S[L]) {
371
+ return function l(A, s, g) {
372
+ function I(M, $) {
373
+ if (!s[M]) {
374
+ if (!A[M]) {
375
375
  var d = typeof Oe == "function" && Oe;
376
376
  if (!$ && d)
377
- return d(L, !0);
377
+ return d(M, !0);
378
378
  if (C)
379
- return C(L, !0);
380
- var h = new Error("Cannot find module '" + L + "'");
379
+ return C(M, !0);
380
+ var h = new Error("Cannot find module '" + M + "'");
381
381
  throw h.code = "MODULE_NOT_FOUND", h;
382
382
  }
383
- var u = s[L] = { exports: {} };
384
- S[L][0].call(u.exports, function(r) {
385
- var y = S[L][1][r];
386
- return I(y || r);
387
- }, u, u.exports, l, S, s, g);
383
+ var u = s[M] = { exports: {} };
384
+ A[M][0].call(u.exports, function(r) {
385
+ var w = A[M][1][r];
386
+ return I(w || r);
387
+ }, u, u.exports, l, A, s, g);
388
388
  }
389
- return s[L].exports;
389
+ return s[M].exports;
390
390
  }
391
391
  for (var C = typeof Oe == "function" && Oe, _ = 0; _ < g.length; _++)
392
392
  I(g[_]);
393
393
  return I;
394
- }({ 1: [function(l, S, s) {
394
+ }({ 1: [function(l, A, s) {
395
395
  (function(g) {
396
396
  var I = g.MutationObserver || g.WebKitMutationObserver, C;
397
397
  if (I) {
398
- var _ = 0, L = new I(r), $ = g.document.createTextNode("");
399
- L.observe($, {
398
+ var _ = 0, M = new I(r), $ = g.document.createTextNode("");
399
+ M.observe($, {
400
400
  characterData: !0
401
401
  }), C = function() {
402
402
  $.data = _ = ++_ % 2;
@@ -425,160 +425,160 @@ var nt = { exports: {} };
425
425
  }
426
426
  h = !1;
427
427
  }
428
- S.exports = y;
429
- function y(D) {
428
+ A.exports = w;
429
+ function w(D) {
430
430
  u.push(D) === 1 && !h && C();
431
431
  }
432
432
  }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
433
- }, {}], 2: [function(l, S, s) {
433
+ }, {}], 2: [function(l, A, s) {
434
434
  var g = l(1);
435
435
  function I() {
436
436
  }
437
- var C = {}, _ = ["REJECTED"], L = ["FULFILLED"], $ = ["PENDING"];
438
- S.exports = d;
439
- function d(b) {
440
- if (typeof b != "function")
437
+ var C = {}, _ = ["REJECTED"], M = ["FULFILLED"], $ = ["PENDING"];
438
+ A.exports = d;
439
+ function d(S) {
440
+ if (typeof S != "function")
441
441
  throw new TypeError("resolver must be a function");
442
- this.state = $, this.queue = [], this.outcome = void 0, b !== I && y(this, b);
442
+ this.state = $, this.queue = [], this.outcome = void 0, S !== I && w(this, S);
443
443
  }
444
- d.prototype.catch = function(b) {
445
- return this.then(null, b);
446
- }, d.prototype.then = function(b, T) {
447
- if (typeof b != "function" && this.state === L || typeof T != "function" && this.state === _)
444
+ d.prototype.catch = function(S) {
445
+ return this.then(null, S);
446
+ }, d.prototype.then = function(S, T) {
447
+ if (typeof S != "function" && this.state === M || typeof T != "function" && this.state === _)
448
448
  return this;
449
449
  var x = new this.constructor(I);
450
450
  if (this.state !== $) {
451
- var P = this.state === L ? b : T;
452
- u(x, P, this.outcome);
451
+ var L = this.state === M ? S : T;
452
+ u(x, L, this.outcome);
453
453
  } else
454
- this.queue.push(new h(x, b, T));
454
+ this.queue.push(new h(x, S, T));
455
455
  return x;
456
456
  };
457
- function h(b, T, x) {
458
- this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
457
+ function h(S, T, x) {
458
+ this.promise = S, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
459
459
  }
460
- h.prototype.callFulfilled = function(b) {
461
- C.resolve(this.promise, b);
462
- }, h.prototype.otherCallFulfilled = function(b) {
463
- u(this.promise, this.onFulfilled, b);
464
- }, h.prototype.callRejected = function(b) {
465
- C.reject(this.promise, b);
466
- }, h.prototype.otherCallRejected = function(b) {
467
- u(this.promise, this.onRejected, b);
460
+ h.prototype.callFulfilled = function(S) {
461
+ C.resolve(this.promise, S);
462
+ }, h.prototype.otherCallFulfilled = function(S) {
463
+ u(this.promise, this.onFulfilled, S);
464
+ }, h.prototype.callRejected = function(S) {
465
+ C.reject(this.promise, S);
466
+ }, h.prototype.otherCallRejected = function(S) {
467
+ u(this.promise, this.onRejected, S);
468
468
  };
469
- function u(b, T, x) {
469
+ function u(S, T, x) {
470
470
  g(function() {
471
- var P;
471
+ var L;
472
472
  try {
473
- P = T(x);
473
+ L = T(x);
474
474
  } catch (f) {
475
- return C.reject(b, f);
475
+ return C.reject(S, f);
476
476
  }
477
- P === b ? C.reject(b, new TypeError("Cannot resolve promise with itself")) : C.resolve(b, P);
477
+ L === S ? C.reject(S, new TypeError("Cannot resolve promise with itself")) : C.resolve(S, L);
478
478
  });
479
479
  }
480
- C.resolve = function(b, T) {
480
+ C.resolve = function(S, T) {
481
481
  var x = D(r, T);
482
482
  if (x.status === "error")
483
- return C.reject(b, x.value);
484
- var P = x.value;
485
- if (P)
486
- y(b, P);
483
+ return C.reject(S, x.value);
484
+ var L = x.value;
485
+ if (L)
486
+ w(S, L);
487
487
  else {
488
- b.state = L, b.outcome = T;
489
- for (var f = -1, A = b.queue.length; ++f < A; )
490
- b.queue[f].callFulfilled(T);
488
+ S.state = M, S.outcome = T;
489
+ for (var f = -1, y = S.queue.length; ++f < y; )
490
+ S.queue[f].callFulfilled(T);
491
491
  }
492
- return b;
493
- }, C.reject = function(b, T) {
494
- b.state = _, b.outcome = T;
495
- for (var x = -1, P = b.queue.length; ++x < P; )
496
- b.queue[x].callRejected(T);
497
- return b;
492
+ return S;
493
+ }, C.reject = function(S, T) {
494
+ S.state = _, S.outcome = T;
495
+ for (var x = -1, L = S.queue.length; ++x < L; )
496
+ S.queue[x].callRejected(T);
497
+ return S;
498
498
  };
499
- function r(b) {
500
- var T = b && b.then;
501
- if (b && (typeof b == "object" || typeof b == "function") && typeof T == "function")
499
+ function r(S) {
500
+ var T = S && S.then;
501
+ if (S && (typeof S == "object" || typeof S == "function") && typeof T == "function")
502
502
  return function() {
503
- T.apply(b, arguments);
503
+ T.apply(S, arguments);
504
504
  };
505
505
  }
506
- function y(b, T) {
506
+ function w(S, T) {
507
507
  var x = !1;
508
- function P(X) {
509
- x || (x = !0, C.reject(b, X));
508
+ function L(X) {
509
+ x || (x = !0, C.reject(S, X));
510
510
  }
511
511
  function f(X) {
512
- x || (x = !0, C.resolve(b, X));
512
+ x || (x = !0, C.resolve(S, X));
513
513
  }
514
- function A() {
515
- T(f, P);
514
+ function y() {
515
+ T(f, L);
516
516
  }
517
- var j = D(A);
518
- j.status === "error" && P(j.value);
517
+ var J = D(y);
518
+ J.status === "error" && L(J.value);
519
519
  }
520
- function D(b, T) {
520
+ function D(S, T) {
521
521
  var x = {};
522
522
  try {
523
- x.value = b(T), x.status = "success";
524
- } catch (P) {
525
- x.status = "error", x.value = P;
523
+ x.value = S(T), x.status = "success";
524
+ } catch (L) {
525
+ x.status = "error", x.value = L;
526
526
  }
527
527
  return x;
528
528
  }
529
529
  d.resolve = i;
530
- function i(b) {
531
- return b instanceof this ? b : C.resolve(new this(I), b);
530
+ function i(S) {
531
+ return S instanceof this ? S : C.resolve(new this(I), S);
532
532
  }
533
533
  d.reject = E;
534
- function E(b) {
534
+ function E(S) {
535
535
  var T = new this(I);
536
- return C.reject(T, b);
536
+ return C.reject(T, S);
537
537
  }
538
- d.all = w;
539
- function w(b) {
538
+ d.all = b;
539
+ function b(S) {
540
540
  var T = this;
541
- if (Object.prototype.toString.call(b) !== "[object Array]")
541
+ if (Object.prototype.toString.call(S) !== "[object Array]")
542
542
  return this.reject(new TypeError("must be an array"));
543
- var x = b.length, P = !1;
543
+ var x = S.length, L = !1;
544
544
  if (!x)
545
545
  return this.resolve([]);
546
- for (var f = new Array(x), A = 0, j = -1, X = new this(I); ++j < x; )
547
- re(b[j], j);
546
+ for (var f = new Array(x), y = 0, J = -1, X = new this(I); ++J < x; )
547
+ re(S[J], J);
548
548
  return X;
549
549
  function re(ue, be) {
550
550
  T.resolve(ue).then(G, function(Y) {
551
- P || (P = !0, C.reject(X, Y));
551
+ L || (L = !0, C.reject(X, Y));
552
552
  });
553
553
  function G(Y) {
554
- f[be] = Y, ++A === x && !P && (P = !0, C.resolve(X, f));
554
+ f[be] = Y, ++y === x && !L && (L = !0, C.resolve(X, f));
555
555
  }
556
556
  }
557
557
  }
558
558
  d.race = N;
559
- function N(b) {
559
+ function N(S) {
560
560
  var T = this;
561
- if (Object.prototype.toString.call(b) !== "[object Array]")
561
+ if (Object.prototype.toString.call(S) !== "[object Array]")
562
562
  return this.reject(new TypeError("must be an array"));
563
- var x = b.length, P = !1;
563
+ var x = S.length, L = !1;
564
564
  if (!x)
565
565
  return this.resolve([]);
566
- for (var f = -1, A = new this(I); ++f < x; )
567
- j(b[f]);
568
- return A;
569
- function j(X) {
566
+ for (var f = -1, y = new this(I); ++f < x; )
567
+ J(S[f]);
568
+ return y;
569
+ function J(X) {
570
570
  T.resolve(X).then(function(re) {
571
- P || (P = !0, C.resolve(A, re));
571
+ L || (L = !0, C.resolve(y, re));
572
572
  }, function(re) {
573
- P || (P = !0, C.reject(A, re));
573
+ L || (L = !0, C.reject(y, re));
574
574
  });
575
575
  }
576
576
  }
577
- }, { 1: 1 }], 3: [function(l, S, s) {
577
+ }, { 1: 1 }], 3: [function(l, A, s) {
578
578
  (function(g) {
579
579
  typeof g.Promise != "function" && (g.Promise = l(2));
580
580
  }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
581
- }, { 2: 2 }], 4: [function(l, S, s) {
581
+ }, { 2: 2 }], 4: [function(l, A, s) {
582
582
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
583
583
  return typeof n;
584
584
  } : function(n) {
@@ -605,7 +605,7 @@ var nt = { exports: {} };
605
605
  }
606
606
  }
607
607
  var _ = C();
608
- function L() {
608
+ function M() {
609
609
  try {
610
610
  if (!_ || !_.open)
611
611
  return !1;
@@ -646,11 +646,11 @@ var nt = { exports: {} };
646
646
  function r(n) {
647
647
  return typeof n != "string" && (console.warn(n + " used as a key, but it is not a string."), n = String(n)), n;
648
648
  }
649
- function y() {
649
+ function w() {
650
650
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
- var D = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, N = "readonly", b = "readwrite";
653
+ var D = "local-forage-detect-blob-support", i = void 0, E = {}, b = Object.prototype.toString, N = "readonly", S = "readwrite";
654
654
  function T(n) {
655
655
  for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
656
656
  m[v] = n.charCodeAt(v);
@@ -658,7 +658,7 @@ var nt = { exports: {} };
658
658
  }
659
659
  function x(n) {
660
660
  return new d(function(c) {
661
- var a = n.transaction(D, b), m = $([""]);
661
+ var a = n.transaction(D, S), m = $([""]);
662
662
  a.objectStore(D).put(m, "key"), a.onabort = function(v) {
663
663
  v.preventDefault(), v.stopPropagation(), c(!1);
664
664
  }, a.oncomplete = function() {
@@ -669,7 +669,7 @@ var nt = { exports: {} };
669
669
  return !1;
670
670
  });
671
671
  }
672
- function P(n) {
672
+ function L(n) {
673
673
  return typeof i == "boolean" ? d.resolve(i) : x(n).then(function(c) {
674
674
  return i = c, i;
675
675
  });
@@ -682,12 +682,12 @@ var nt = { exports: {} };
682
682
  return a.promise;
683
683
  }) : c.dbReady = a.promise;
684
684
  }
685
- function A(n) {
685
+ function y(n) {
686
686
  var c = E[n.name], a = c.deferredOperations.pop();
687
687
  if (a)
688
688
  return a.resolve(), a.promise;
689
689
  }
690
- function j(n, c) {
690
+ function J(n, c) {
691
691
  var a = E[n.name], m = a.deferredOperations.pop();
692
692
  if (m)
693
693
  return m.reject(c), m.promise;
@@ -702,23 +702,23 @@ var nt = { exports: {} };
702
702
  var v = [n.name];
703
703
  c && v.push(n.version);
704
704
  var o = _.open.apply(_, v);
705
- c && (o.onupgradeneeded = function(M) {
705
+ c && (o.onupgradeneeded = function(P) {
706
706
  var R = o.result;
707
707
  try {
708
- R.createObjectStore(n.storeName), M.oldVersion <= 1 && R.createObjectStore(D);
708
+ R.createObjectStore(n.storeName), P.oldVersion <= 1 && R.createObjectStore(D);
709
709
  } catch (B) {
710
710
  if (B.name === "ConstraintError")
711
- console.warn('The database "' + n.name + '" has been upgraded from version ' + M.oldVersion + " to version " + M.newVersion + ', but the storage "' + n.storeName + '" already exists.');
711
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + P.oldVersion + " to version " + P.newVersion + ', but the storage "' + n.storeName + '" already exists.');
712
712
  else
713
713
  throw B;
714
714
  }
715
- }), o.onerror = function(M) {
716
- M.preventDefault(), m(o.error);
715
+ }), o.onerror = function(P) {
716
+ P.preventDefault(), m(o.error);
717
717
  }, o.onsuccess = function() {
718
- var M = o.result;
719
- M.onversionchange = function(R) {
718
+ var P = o.result;
719
+ P.onversionchange = function(R) {
720
720
  R.target.close();
721
- }, a(M), A(n);
721
+ }, a(P), y(n);
722
722
  };
723
723
  });
724
724
  }
@@ -779,10 +779,10 @@ var nt = { exports: {} };
779
779
  return n.db = o, be(n) ? ue(n) : o;
780
780
  }).then(function(o) {
781
781
  n.db = c.db = o;
782
- for (var M = 0; M < a.length; M++)
783
- a[M]._dbInfo.db = o;
782
+ for (var P = 0; P < a.length; P++)
783
+ a[P]._dbInfo.db = o;
784
784
  }).catch(function(o) {
785
- throw j(n, o), o;
785
+ throw J(n, o), o;
786
786
  });
787
787
  }
788
788
  function W(n, c, a, m) {
@@ -825,12 +825,12 @@ var nt = { exports: {} };
825
825
  var v = E[a.name];
826
826
  v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ie);
827
827
  var o = [];
828
- function M() {
828
+ function P() {
829
829
  return d.resolve();
830
830
  }
831
831
  for (var R = 0; R < v.forages.length; R++) {
832
832
  var B = v.forages[R];
833
- B !== c && o.push(B._initReady().catch(M));
833
+ B !== c && o.push(B._initReady().catch(P));
834
834
  }
835
835
  var F = v.forages.slice(0);
836
836
  return d.all(o).then(function() {
@@ -840,8 +840,8 @@ var nt = { exports: {} };
840
840
  }).then(function(k) {
841
841
  a.db = v.db = k, c._dbInfo = a;
842
842
  for (var q = 0; q < F.length; q++) {
843
- var J = F[q];
844
- J !== c && (J._dbInfo.db = a.db, J._dbInfo.version = a.version);
843
+ var j = F[q];
844
+ j !== c && (j._dbInfo.db = a.db, j._dbInfo.version = a.version);
845
845
  }
846
846
  });
847
847
  }
@@ -850,9 +850,9 @@ var nt = { exports: {} };
850
850
  n = r(n);
851
851
  var m = new d(function(v, o) {
852
852
  a.ready().then(function() {
853
- W(a._dbInfo, N, function(M, R) {
854
- if (M)
855
- return o(M);
853
+ W(a._dbInfo, N, function(P, R) {
854
+ if (P)
855
+ return o(P);
856
856
  try {
857
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
858
858
  F.onsuccess = function() {
@@ -872,17 +872,17 @@ var nt = { exports: {} };
872
872
  function ge(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
- W(a._dbInfo, N, function(M, R) {
876
- if (M)
877
- return o(M);
875
+ W(a._dbInfo, N, function(P, R) {
876
+ if (P)
877
+ return o(P);
878
878
  try {
879
879
  var B = R.objectStore(a._dbInfo.storeName), F = B.openCursor(), k = 1;
880
880
  F.onsuccess = function() {
881
881
  var q = F.result;
882
882
  if (q) {
883
- var J = q.value;
884
- H(J) && (J = Y(J));
885
- var p = n(J, q.key, k++);
883
+ var j = q.value;
884
+ H(j) && (j = Y(j));
885
+ var p = n(j, q.key, k++);
886
886
  p !== void 0 ? v(p) : q.continue();
887
887
  } else
888
888
  v();
@@ -900,31 +900,31 @@ var nt = { exports: {} };
900
900
  function Be(n, c, a) {
901
901
  var m = this;
902
902
  n = r(n);
903
- var v = new d(function(o, M) {
903
+ var v = new d(function(o, P) {
904
904
  var R;
905
905
  m.ready().then(function() {
906
- return R = m._dbInfo, w.call(c) === "[object Blob]" ? P(R.db).then(function(B) {
906
+ return R = m._dbInfo, b.call(c) === "[object Blob]" ? L(R.db).then(function(B) {
907
907
  return B ? c : G(c);
908
908
  }) : c;
909
909
  }).then(function(B) {
910
- W(m._dbInfo, b, function(F, k) {
910
+ W(m._dbInfo, S, function(F, k) {
911
911
  if (F)
912
- return M(F);
912
+ return P(F);
913
913
  try {
914
914
  var q = k.objectStore(m._dbInfo.storeName);
915
915
  B === null && (B = void 0);
916
- var J = q.put(B, n);
916
+ var j = q.put(B, n);
917
917
  k.oncomplete = function() {
918
918
  B === void 0 && (B = null), o(B);
919
919
  }, k.onabort = k.onerror = function() {
920
- var p = J.error ? J.error : J.transaction.error;
921
- M(p);
920
+ var p = j.error ? j.error : j.transaction.error;
921
+ P(p);
922
922
  };
923
923
  } catch (p) {
924
- M(p);
924
+ P(p);
925
925
  }
926
926
  });
927
- }).catch(M);
927
+ }).catch(P);
928
928
  });
929
929
  return h(v, a), v;
930
930
  }
@@ -933,9 +933,9 @@ var nt = { exports: {} };
933
933
  n = r(n);
934
934
  var m = new d(function(v, o) {
935
935
  a.ready().then(function() {
936
- W(a._dbInfo, b, function(M, R) {
937
- if (M)
938
- return o(M);
936
+ W(a._dbInfo, S, function(P, R) {
937
+ if (P)
938
+ return o(P);
939
939
  try {
940
940
  var B = R.objectStore(a._dbInfo.storeName), F = B.delete(n);
941
941
  R.oncomplete = function() {
@@ -957,14 +957,14 @@ var nt = { exports: {} };
957
957
  function Fe(n) {
958
958
  var c = this, a = new d(function(m, v) {
959
959
  c.ready().then(function() {
960
- W(c._dbInfo, b, function(o, M) {
960
+ W(c._dbInfo, S, function(o, P) {
961
961
  if (o)
962
962
  return v(o);
963
963
  try {
964
- var R = M.objectStore(c._dbInfo.storeName), B = R.clear();
965
- M.oncomplete = function() {
964
+ var R = P.objectStore(c._dbInfo.storeName), B = R.clear();
965
+ P.oncomplete = function() {
966
966
  m();
967
- }, M.onabort = M.onerror = function() {
967
+ }, P.onabort = P.onerror = function() {
968
968
  var F = B.error ? B.error : B.transaction.error;
969
969
  v(F);
970
970
  };
@@ -979,11 +979,11 @@ var nt = { exports: {} };
979
979
  function tr(n) {
980
980
  var c = this, a = new d(function(m, v) {
981
981
  c.ready().then(function() {
982
- W(c._dbInfo, N, function(o, M) {
982
+ W(c._dbInfo, N, function(o, P) {
983
983
  if (o)
984
984
  return v(o);
985
985
  try {
986
- var R = M.objectStore(c._dbInfo.storeName), B = R.count();
986
+ var R = P.objectStore(c._dbInfo.storeName), B = R.count();
987
987
  B.onsuccess = function() {
988
988
  m(B.result);
989
989
  }, B.onerror = function() {
@@ -1004,9 +1004,9 @@ var nt = { exports: {} };
1004
1004
  return;
1005
1005
  }
1006
1006
  a.ready().then(function() {
1007
- W(a._dbInfo, N, function(M, R) {
1008
- if (M)
1009
- return o(M);
1007
+ W(a._dbInfo, N, function(P, R) {
1008
+ if (P)
1009
+ return o(P);
1010
1010
  try {
1011
1011
  var B = R.objectStore(a._dbInfo.storeName), F = !1, k = B.openKeyCursor();
1012
1012
  k.onsuccess = function() {
@@ -1030,11 +1030,11 @@ var nt = { exports: {} };
1030
1030
  function Ce(n) {
1031
1031
  var c = this, a = new d(function(m, v) {
1032
1032
  c.ready().then(function() {
1033
- W(c._dbInfo, N, function(o, M) {
1033
+ W(c._dbInfo, N, function(o, P) {
1034
1034
  if (o)
1035
1035
  return v(o);
1036
1036
  try {
1037
- var R = M.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1037
+ var R = P.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1038
1038
  B.onsuccess = function() {
1039
1039
  var k = B.result;
1040
1040
  if (!k) {
@@ -1054,29 +1054,29 @@ var nt = { exports: {} };
1054
1054
  return h(a, n), a;
1055
1055
  }
1056
1056
  function ar(n, c) {
1057
- c = y.apply(this, arguments);
1057
+ c = w.apply(this, arguments);
1058
1058
  var a = this.config();
1059
1059
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1060
1060
  var m = this, v;
1061
1061
  if (!n.name)
1062
1062
  v = d.reject("Invalid arguments");
1063
1063
  else {
1064
- var o = n.name === a.name && m._dbInfo.db, M = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1064
+ var o = n.name === a.name && m._dbInfo.db, P = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1065
1065
  var B = E[n.name], F = B.forages;
1066
1066
  B.db = R;
1067
1067
  for (var k = 0; k < F.length; k++)
1068
1068
  F[k]._dbInfo.db = R;
1069
1069
  return R;
1070
1070
  });
1071
- n.storeName ? v = M.then(function(R) {
1071
+ n.storeName ? v = P.then(function(R) {
1072
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1073
1073
  var B = R.version + 1;
1074
1074
  f(n);
1075
1075
  var F = E[n.name], k = F.forages;
1076
1076
  R.close();
1077
1077
  for (var q = 0; q < k.length; q++) {
1078
- var J = k[q];
1079
- J._dbInfo.db = null, J._dbInfo.version = B;
1078
+ var j = k[q];
1079
+ j._dbInfo.db = null, j._dbInfo.version = B;
1080
1080
  }
1081
1081
  var p = new d(function(te, fe) {
1082
1082
  var ae = _.open(n.name, B);
@@ -1095,14 +1095,14 @@ var nt = { exports: {} };
1095
1095
  F.db = te;
1096
1096
  for (var fe = 0; fe < k.length; fe++) {
1097
1097
  var ae = k[fe];
1098
- ae._dbInfo.db = te, A(ae._dbInfo);
1098
+ ae._dbInfo.db = te, y(ae._dbInfo);
1099
1099
  }
1100
1100
  }).catch(function(te) {
1101
- throw (j(n, te) || d.resolve()).catch(function() {
1101
+ throw (J(n, te) || d.resolve()).catch(function() {
1102
1102
  }), te;
1103
1103
  });
1104
1104
  }
1105
- }) : v = M.then(function(R) {
1105
+ }) : v = P.then(function(R) {
1106
1106
  f(n);
1107
1107
  var B = E[n.name], F = B.forages;
1108
1108
  R.close();
@@ -1110,7 +1110,7 @@ var nt = { exports: {} };
1110
1110
  var q = F[k];
1111
1111
  q._dbInfo.db = null;
1112
1112
  }
1113
- var J = new d(function(p, te) {
1113
+ var j = new d(function(p, te) {
1114
1114
  var fe = _.deleteDatabase(n.name);
1115
1115
  fe.onerror = function() {
1116
1116
  var ae = fe.result;
@@ -1122,14 +1122,14 @@ var nt = { exports: {} };
1122
1122
  ae && ae.close(), p(ae);
1123
1123
  };
1124
1124
  });
1125
- return J.then(function(p) {
1125
+ return j.then(function(p) {
1126
1126
  B.db = p;
1127
1127
  for (var te = 0; te < F.length; te++) {
1128
1128
  var fe = F[te];
1129
- A(fe._dbInfo);
1129
+ y(fe._dbInfo);
1130
1130
  }
1131
1131
  }).catch(function(p) {
1132
- throw (j(n, p) || d.resolve()).catch(function() {
1132
+ throw (J(n, p) || d.resolve()).catch(function() {
1133
1133
  }), p;
1134
1134
  });
1135
1135
  });
@@ -1139,7 +1139,7 @@ var nt = { exports: {} };
1139
1139
  var lr = {
1140
1140
  _driver: "asyncStorage",
1141
1141
  _initStorage: ce,
1142
- _support: L(),
1142
+ _support: M(),
1143
1143
  iterate: ge,
1144
1144
  getItem: se,
1145
1145
  setItem: Be,
@@ -1155,11 +1155,11 @@ var nt = { exports: {} };
1155
1155
  }
1156
1156
  var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, ke = "__lfsc__:", Pe = ke.length, qe = "arbf", Ie = "blob", je = "si08", Ke = "ui08", He = "uic8", Ve = "si16", U = "si32", K = "ur16", V = "ui32", O = "fl32", de = "fl64", ye = Pe + qe.length, De = Object.prototype.toString;
1157
1157
  function Ae(n) {
1158
- var c = n.length * 0.75, a = n.length, m, v = 0, o, M, R, B;
1158
+ var c = n.length * 0.75, a = n.length, m, v = 0, o, P, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
1160
1160
  var F = new ArrayBuffer(c), k = new Uint8Array(F);
1161
1161
  for (m = 0; m < a; m += 4)
1162
- o = Se.indexOf(n[m]), M = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | M >> 4, k[v++] = (M & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1162
+ o = Se.indexOf(n[m]), P = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | P >> 4, k[v++] = (P & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1163
1163
  return F;
1164
1164
  }
1165
1165
  function oe(n) {
@@ -1176,14 +1176,14 @@ var nt = { exports: {} };
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
- var M = ir + n.type + "~" + oe(this.result);
1180
- c(ke + Ie + M);
1179
+ var P = ir + n.type + "~" + oe(this.result);
1180
+ c(ke + Ie + P);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
1184
1184
  c(JSON.stringify(n));
1185
- } catch (M) {
1186
- console.error("Couldn't convert value into a JSON string: ", n), c(null, M);
1185
+ } catch (P) {
1186
+ console.error("Couldn't convert value into a JSON string: ", n), c(null, P);
1187
1187
  }
1188
1188
  }
1189
1189
  function ct(n) {
@@ -1238,29 +1238,29 @@ var nt = { exports: {} };
1238
1238
  if (n)
1239
1239
  for (var m in n)
1240
1240
  a[m] = typeof n[m] != "string" ? n[m].toString() : n[m];
1241
- var v = new d(function(o, M) {
1241
+ var v = new d(function(o, P) {
1242
1242
  try {
1243
1243
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
1244
1244
  } catch (R) {
1245
- return M(R);
1245
+ return P(R);
1246
1246
  }
1247
1247
  a.db.transaction(function(R) {
1248
1248
  Rr(R, a, function() {
1249
1249
  c._dbInfo = a, o();
1250
1250
  }, function(B, F) {
1251
- M(F);
1251
+ P(F);
1252
1252
  });
1253
- }, M);
1253
+ }, P);
1254
1254
  });
1255
1255
  return a.serializer = cr, v;
1256
1256
  }
1257
1257
  function xe(n, c, a, m, v, o) {
1258
- n.executeSql(a, m, v, function(M, R) {
1259
- R.code === R.SYNTAX_ERR ? M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1258
+ n.executeSql(a, m, v, function(P, R) {
1259
+ R.code === R.SYNTAX_ERR ? P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1260
1260
  F.rows.length ? o(B, R) : Rr(B, c, function() {
1261
1261
  B.executeSql(a, m, v, o);
1262
1262
  }, o);
1263
- }, o) : o(M, R);
1263
+ }, o) : o(P, R);
1264
1264
  }, o);
1265
1265
  }
1266
1266
  function st(n, c) {
@@ -1268,11 +1268,11 @@ var nt = { exports: {} };
1268
1268
  n = r(n);
1269
1269
  var m = new d(function(v, o) {
1270
1270
  a.ready().then(function() {
1271
- var M = a._dbInfo;
1272
- M.db.transaction(function(R) {
1273
- xe(R, M, "SELECT * FROM " + M.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1271
+ var P = a._dbInfo;
1272
+ P.db.transaction(function(R) {
1273
+ xe(R, P, "SELECT * FROM " + P.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1274
1274
  var k = F.rows.length ? F.rows.item(0).value : null;
1275
- k && (k = M.serializer.deserialize(k)), v(k);
1275
+ k && (k = P.serializer.deserialize(k)), v(k);
1276
1276
  }, function(B, F) {
1277
1277
  o(F);
1278
1278
  });
@@ -1284,12 +1284,12 @@ var nt = { exports: {} };
1284
1284
  function ot(n, c) {
1285
1285
  var a = this, m = new d(function(v, o) {
1286
1286
  a.ready().then(function() {
1287
- var M = a._dbInfo;
1288
- M.db.transaction(function(R) {
1289
- xe(R, M, "SELECT * FROM " + M.storeName, [], function(B, F) {
1290
- for (var k = F.rows, q = k.length, J = 0; J < q; J++) {
1291
- var p = k.item(J), te = p.value;
1292
- if (te && (te = M.serializer.deserialize(te)), te = n(te, p.key, J + 1), te !== void 0) {
1287
+ var P = a._dbInfo;
1288
+ P.db.transaction(function(R) {
1289
+ xe(R, P, "SELECT * FROM " + P.storeName, [], function(B, F) {
1290
+ for (var k = F.rows, q = k.length, j = 0; j < q; j++) {
1291
+ var p = k.item(j), te = p.value;
1292
+ if (te && (te = P.serializer.deserialize(te)), te = n(te, p.key, j + 1), te !== void 0) {
1293
1293
  v(te);
1294
1294
  return;
1295
1295
  }
@@ -1306,24 +1306,24 @@ var nt = { exports: {} };
1306
1306
  function Ur(n, c, a, m) {
1307
1307
  var v = this;
1308
1308
  n = r(n);
1309
- var o = new d(function(M, R) {
1309
+ var o = new d(function(P, R) {
1310
1310
  v.ready().then(function() {
1311
1311
  c === void 0 && (c = null);
1312
1312
  var B = c, F = v._dbInfo;
1313
1313
  F.serializer.serialize(c, function(k, q) {
1314
- q ? R(q) : F.db.transaction(function(J) {
1315
- xe(J, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
- M(B);
1314
+ q ? R(q) : F.db.transaction(function(j) {
1315
+ xe(j, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
+ P(B);
1317
1317
  }, function(p, te) {
1318
1318
  R(te);
1319
1319
  });
1320
- }, function(J) {
1321
- if (J.code === J.QUOTA_ERR) {
1320
+ }, function(j) {
1321
+ if (j.code === j.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
- M(Ur.apply(v, [n, B, a, m - 1]));
1323
+ P(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
- R(J);
1326
+ R(j);
1327
1327
  }
1328
1328
  });
1329
1329
  });
@@ -1339,9 +1339,9 @@ var nt = { exports: {} };
1339
1339
  n = r(n);
1340
1340
  var m = new d(function(v, o) {
1341
1341
  a.ready().then(function() {
1342
- var M = a._dbInfo;
1343
- M.db.transaction(function(R) {
1344
- xe(R, M, "DELETE FROM " + M.storeName + " WHERE key = ?", [n], function() {
1342
+ var P = a._dbInfo;
1343
+ P.db.transaction(function(R) {
1344
+ xe(R, P, "DELETE FROM " + P.storeName + " WHERE key = ?", [n], function() {
1345
1345
  v();
1346
1346
  }, function(B, F) {
1347
1347
  o(F);
@@ -1355,8 +1355,8 @@ var nt = { exports: {} };
1355
1355
  var c = this, a = new d(function(m, v) {
1356
1356
  c.ready().then(function() {
1357
1357
  var o = c._dbInfo;
1358
- o.db.transaction(function(M) {
1359
- xe(M, o, "DELETE FROM " + o.storeName, [], function() {
1358
+ o.db.transaction(function(P) {
1359
+ xe(P, o, "DELETE FROM " + o.storeName, [], function() {
1360
1360
  m();
1361
1361
  }, function(R, B) {
1362
1362
  v(B);
@@ -1370,8 +1370,8 @@ var nt = { exports: {} };
1370
1370
  var c = this, a = new d(function(m, v) {
1371
1371
  c.ready().then(function() {
1372
1372
  var o = c._dbInfo;
1373
- o.db.transaction(function(M) {
1374
- xe(M, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1373
+ o.db.transaction(function(P) {
1374
+ xe(P, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1375
1375
  var F = B.rows.item(0).c;
1376
1376
  m(F);
1377
1377
  }, function(R, B) {
@@ -1385,9 +1385,9 @@ var nt = { exports: {} };
1385
1385
  function gt(n, c) {
1386
1386
  var a = this, m = new d(function(v, o) {
1387
1387
  a.ready().then(function() {
1388
- var M = a._dbInfo;
1389
- M.db.transaction(function(R) {
1390
- xe(R, M, "SELECT key FROM " + M.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1388
+ var P = a._dbInfo;
1389
+ P.db.transaction(function(R) {
1390
+ xe(R, P, "SELECT key FROM " + P.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1391
1391
  var k = F.rows.length ? F.rows.item(0).key : null;
1392
1392
  v(k);
1393
1393
  }, function(B, F) {
@@ -1402,8 +1402,8 @@ var nt = { exports: {} };
1402
1402
  var c = this, a = new d(function(m, v) {
1403
1403
  c.ready().then(function() {
1404
1404
  var o = c._dbInfo;
1405
- o.db.transaction(function(M) {
1406
- xe(M, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1405
+ o.db.transaction(function(P) {
1406
+ xe(P, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1407
1407
  for (var F = [], k = 0; k < B.rows.length; k++)
1408
1408
  F.push(B.rows.item(k).key);
1409
1409
  m(F);
@@ -1419,11 +1419,11 @@ var nt = { exports: {} };
1419
1419
  return new d(function(c, a) {
1420
1420
  n.transaction(function(m) {
1421
1421
  m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
1422
- for (var M = [], R = 0; R < o.rows.length; R++)
1423
- M.push(o.rows.item(R).name);
1422
+ for (var P = [], R = 0; R < o.rows.length; R++)
1423
+ P.push(o.rows.item(R).name);
1424
1424
  c({
1425
1425
  db: n,
1426
- storeNames: M
1426
+ storeNames: P
1427
1427
  });
1428
1428
  }, function(v, o) {
1429
1429
  a(o);
@@ -1434,18 +1434,18 @@ var nt = { exports: {} };
1434
1434
  });
1435
1435
  }
1436
1436
  function bt(n, c) {
1437
- c = y.apply(this, arguments);
1437
+ c = w.apply(this, arguments);
1438
1438
  var a = this.config();
1439
1439
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1440
1440
  var m = this, v;
1441
1441
  return n.name ? v = new d(function(o) {
1442
- var M;
1443
- n.name === a.name ? M = m._dbInfo.db : M = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
- db: M,
1442
+ var P;
1443
+ n.name === a.name ? P = m._dbInfo.db : P = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
+ db: P,
1445
1445
  storeNames: [n.storeName]
1446
- }) : o(wt(M));
1446
+ }) : o(wt(P));
1447
1447
  }).then(function(o) {
1448
- return new d(function(M, R) {
1448
+ return new d(function(P, R) {
1449
1449
  o.db.transaction(function(B) {
1450
1450
  function F(p) {
1451
1451
  return new d(function(te, fe) {
@@ -1456,10 +1456,10 @@ var nt = { exports: {} };
1456
1456
  });
1457
1457
  });
1458
1458
  }
1459
- for (var k = [], q = 0, J = o.storeNames.length; q < J; q++)
1459
+ for (var k = [], q = 0, j = o.storeNames.length; q < j; q++)
1460
1460
  k.push(F(o.storeNames[q]));
1461
1461
  d.all(k).then(function() {
1462
- M();
1462
+ P();
1463
1463
  }).catch(function(p) {
1464
1464
  R(p);
1465
1465
  });
@@ -1533,11 +1533,11 @@ var nt = { exports: {} };
1533
1533
  }
1534
1534
  function _t(n, c) {
1535
1535
  var a = this, m = a.ready().then(function() {
1536
- for (var v = a._dbInfo, o = v.keyPrefix, M = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1536
+ for (var v = a._dbInfo, o = v.keyPrefix, P = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1537
1537
  var k = localStorage.key(F);
1538
1538
  if (k.indexOf(o) === 0) {
1539
1539
  var q = localStorage.getItem(k);
1540
- if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(M), B++), q !== void 0)
1540
+ if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(P), B++), q !== void 0)
1541
1541
  return q;
1542
1542
  }
1543
1543
  }
@@ -1558,8 +1558,8 @@ var nt = { exports: {} };
1558
1558
  }
1559
1559
  function Pt(n) {
1560
1560
  var c = this, a = c.ready().then(function() {
1561
- for (var m = c._dbInfo, v = localStorage.length, o = [], M = 0; M < v; M++) {
1562
- var R = localStorage.key(M);
1561
+ for (var m = c._dbInfo, v = localStorage.length, o = [], P = 0; P < v; P++) {
1562
+ var R = localStorage.key(P);
1563
1563
  R.indexOf(m.keyPrefix) === 0 && o.push(R.substring(m.keyPrefix.length));
1564
1564
  }
1565
1565
  return o;
@@ -1587,14 +1587,14 @@ var nt = { exports: {} };
1587
1587
  var v = m.ready().then(function() {
1588
1588
  c === void 0 && (c = null);
1589
1589
  var o = c;
1590
- return new d(function(M, R) {
1590
+ return new d(function(P, R) {
1591
1591
  var B = m._dbInfo;
1592
1592
  B.serializer.serialize(c, function(F, k) {
1593
1593
  if (k)
1594
1594
  R(k);
1595
1595
  else
1596
1596
  try {
1597
- localStorage.setItem(B.keyPrefix + n, F), M(o);
1597
+ localStorage.setItem(B.keyPrefix + n, F), P(o);
1598
1598
  } catch (q) {
1599
1599
  (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(q), R(q);
1600
1600
  }
@@ -1604,7 +1604,7 @@ var nt = { exports: {} };
1604
1604
  return h(v, a), v;
1605
1605
  }
1606
1606
  function Rt(n, c) {
1607
- if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1607
+ if (c = w.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1608
1608
  var a = this.config();
1609
1609
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
1610
1610
  }
@@ -1612,8 +1612,8 @@ var nt = { exports: {} };
1612
1612
  return n.name ? v = new d(function(o) {
1613
1613
  n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
1614
1614
  }).then(function(o) {
1615
- for (var M = localStorage.length - 1; M >= 0; M--) {
1616
- var R = localStorage.key(M);
1615
+ for (var P = localStorage.length - 1; P >= 0; P--) {
1616
+ var R = localStorage.key(P);
1617
1617
  R.indexOf(o) === 0 && localStorage.removeItem(R);
1618
1618
  }
1619
1619
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
@@ -1697,14 +1697,14 @@ var nt = { exports: {} };
1697
1697
  } else
1698
1698
  return typeof a == "string" ? this._config[a] : this._config;
1699
1699
  }, n.prototype.defineDriver = function(a, m, v) {
1700
- var o = new d(function(M, R) {
1700
+ var o = new d(function(P, R) {
1701
1701
  try {
1702
1702
  var B = a._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
1703
1703
  if (!a._driver) {
1704
1704
  R(F);
1705
1705
  return;
1706
1706
  }
1707
- for (var k = fr.concat("_initStorage"), q = 0, J = k.length; q < J; q++) {
1707
+ for (var k = fr.concat("_initStorage"), q = 0, j = k.length; q < j; q++) {
1708
1708
  var p = k[q], te = !$t(Qe, p);
1709
1709
  if ((te || a[p]) && typeof a[p] != "function") {
1710
1710
  R(F);
@@ -1724,7 +1724,7 @@ var nt = { exports: {} };
1724
1724
  };
1725
1725
  fe();
1726
1726
  var ae = function(Ye) {
1727
- ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, M();
1727
+ ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, P();
1728
1728
  };
1729
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
1730
1730
  } catch (we) {
@@ -1748,7 +1748,7 @@ var nt = { exports: {} };
1748
1748
  }, n.prototype.setDriver = function(a, m, v) {
1749
1749
  var o = this;
1750
1750
  $r(a) || (a = [a]);
1751
- var M = this._getSupportedDrivers(a);
1751
+ var P = this._getSupportedDrivers(a);
1752
1752
  function R() {
1753
1753
  o._config.driver = o.driver();
1754
1754
  }
@@ -1757,11 +1757,11 @@ var nt = { exports: {} };
1757
1757
  }
1758
1758
  function F(q) {
1759
1759
  return function() {
1760
- var J = 0;
1760
+ var j = 0;
1761
1761
  function p() {
1762
- for (; J < q.length; ) {
1763
- var te = q[J];
1764
- return J++, o._dbInfo = null, o._ready = null, o.getDriver(te).then(B).catch(p);
1762
+ for (; j < q.length; ) {
1763
+ var te = q[j];
1764
+ return j++, o._dbInfo = null, o._ready = null, o.getDriver(te).then(B).catch(p);
1765
1765
  }
1766
1766
  R();
1767
1767
  var fe = new Error("No available storage method found.");
@@ -1774,9 +1774,9 @@ var nt = { exports: {} };
1774
1774
  return d.resolve();
1775
1775
  }) : d.resolve();
1776
1776
  return this._driverSet = k.then(function() {
1777
- var q = M[0];
1778
- return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(J) {
1779
- o._driver = J._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(M);
1777
+ var q = P[0];
1778
+ return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(j) {
1779
+ o._driver = j._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(P);
1780
1780
  });
1781
1781
  }).catch(function() {
1782
1782
  R();
@@ -1789,8 +1789,8 @@ var nt = { exports: {} };
1789
1789
  sr(this, a);
1790
1790
  }, n.prototype._getSupportedDrivers = function(a) {
1791
1791
  for (var m = [], v = 0, o = a.length; v < o; v++) {
1792
- var M = a[v];
1793
- this.supports(M) && m.push(M);
1792
+ var P = a[v];
1793
+ this.supports(P) && m.push(P);
1794
1794
  }
1795
1795
  return m;
1796
1796
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
@@ -1800,7 +1800,7 @@ var nt = { exports: {} };
1800
1800
  return new n(a);
1801
1801
  }, n;
1802
1802
  }(), qt = new Wt();
1803
- S.exports = qt;
1803
+ A.exports = qt;
1804
1804
  }, { 3: 3 }] }, {}, [4])(4);
1805
1805
  });
1806
1806
  })(nt);
@@ -1849,14 +1849,14 @@ function ma() {
1849
1849
  async function l(s) {
1850
1850
  return await ve().removeItem(s);
1851
1851
  }
1852
- async function S(s, g) {
1852
+ async function A(s, g) {
1853
1853
  await ve().setItem(g, s);
1854
1854
  }
1855
1855
  return {
1856
1856
  clearAsync: e,
1857
1857
  getAsync: t,
1858
1858
  removeAsync: l,
1859
- saveAsync: S
1859
+ saveAsync: A
1860
1860
  };
1861
1861
  }
1862
1862
  let rr;
@@ -1873,8 +1873,8 @@ function wn(e) {
1873
1873
  }), rr;
1874
1874
  }
1875
1875
  function bn(e) {
1876
- var l, S, s, g, I;
1877
- e.storeMode ?? (e.storeMode = ((S = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : S.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
1876
+ var l, A, s, g, I;
1877
+ e.storeMode ?? (e.storeMode = ((A = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : A.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
1878
1878
  const t = { ...e, storeName: e.storeName ?? "" };
1879
1879
  if (console.log("creating store def"), console.log(t), e.storeName == null)
1880
1880
  throw new Error("no store name provided");
@@ -1903,45 +1903,45 @@ const Sn = (e) => {
1903
1903
  function An(e) {
1904
1904
  return pr(e.storeName, () => {
1905
1905
  var u;
1906
- const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1906
+ const t = he.utc().toSeconds() / 86400, l = z({}), A = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1907
1907
  function I(r) {
1908
1908
  var i, E;
1909
- let y = "";
1909
+ let w = "";
1910
1910
  const D = r.params ?? {};
1911
- return D != null && (y = Object.entries(D).sort(Re.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1911
+ return D != null && (w = Object.entries(D).sort(Re.firstBy((b) => b[0])).map((b) => `${b[0]}=${JSON.stringify(b[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${w ?? "no-params"}`;
1912
1912
  }
1913
1913
  async function C(r) {
1914
1914
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1915
- const y = I(r), D = r.refresh;
1916
- if (!D && l.value[y] !== void 0)
1917
- return l.value[y];
1915
+ const w = I(r), D = r.refresh;
1916
+ if (!D && l.value[w] !== void 0)
1917
+ return l.value[w];
1918
1918
  if (!D && s == !0) {
1919
- const i = await ve().getItem(y);
1919
+ const i = await ve().getItem(w);
1920
1920
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1921
- return l.value[y] = i, i;
1921
+ return l.value[w] = i, i;
1922
1922
  }
1923
1923
  if (e.api == null)
1924
- return l.value[y];
1924
+ return l.value[w];
1925
1925
  try {
1926
- let i = S.value[y];
1927
- i == null && (i = new Promise(async (w, N) => {
1928
- var b;
1926
+ let i = A.value[w];
1927
+ i == null && (i = new Promise(async (b, N) => {
1928
+ var S;
1929
1929
  try {
1930
- const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), x = {
1930
+ const T = await ((S = e.api) == null ? void 0 : S.getAll(r)), x = {
1931
1931
  meta: { storedOn: t.toString() },
1932
1932
  data: T == null ? void 0 : T.data,
1933
1933
  count: T == null ? void 0 : T.count,
1934
1934
  filters: (T == null ? void 0 : T.filters) ?? []
1935
1935
  };
1936
- s == !0 && await ve().setItem(y, x), w(x);
1936
+ s == !0 && await ve().setItem(w, x), b(x);
1937
1937
  } catch (T) {
1938
1938
  N(T);
1939
1939
  } finally {
1940
- delete S.value[y];
1940
+ delete A.value[w];
1941
1941
  }
1942
- }), S.value[y] = i);
1942
+ }), A.value[w] = i);
1943
1943
  const E = await i;
1944
- return l.value[y] = E, {
1944
+ return l.value[w] = E, {
1945
1945
  data: E == null ? void 0 : E.data,
1946
1946
  filters: E == null ? void 0 : E.filters,
1947
1947
  count: E == null ? void 0 : E.count
@@ -1952,43 +1952,43 @@ function An(e) {
1952
1952
  }
1953
1953
  async function _(r) {
1954
1954
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1955
- const y = I(r), D = r.refresh;
1956
- if (!D && l.value[y] !== void 0)
1957
- return l.value[y];
1955
+ const w = I(r), D = r.refresh;
1956
+ if (!D && l.value[w] !== void 0)
1957
+ return l.value[w];
1958
1958
  if (!D && s == !0) {
1959
- const i = await ve().getItem(y);
1959
+ const i = await ve().getItem(w);
1960
1960
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1961
- return l.value[y] = i, { data: i.data };
1961
+ return l.value[w] = i, { data: i.data };
1962
1962
  }
1963
1963
  if (e.api == null)
1964
- return l.value[y];
1964
+ return l.value[w];
1965
1965
  try {
1966
- let i = S.value[y];
1967
- i == null && (i = new Promise(async (w, N) => {
1968
- var b;
1966
+ let i = A.value[w];
1967
+ i == null && (i = new Promise(async (b, N) => {
1968
+ var S;
1969
1969
  try {
1970
- let T = await ((b = e.api) == null ? void 0 : b.get(r));
1970
+ let T = await ((S = e.api) == null ? void 0 : S.get(r));
1971
1971
  const x = {
1972
1972
  meta: { storedOn: t.toString() },
1973
1973
  data: T == null ? void 0 : T.data
1974
1974
  };
1975
- s == !0 && await ve().setItem(y, x), w(x);
1975
+ s == !0 && await ve().setItem(w, x), b(x);
1976
1976
  } catch (T) {
1977
1977
  N(T);
1978
1978
  } finally {
1979
- delete S.value[y];
1979
+ delete A.value[w];
1980
1980
  }
1981
- }), S.value[y] = i);
1981
+ }), A.value[w] = i);
1982
1982
  const E = await i;
1983
- return l.value[y] = E, { data: E.data };
1983
+ return l.value[w] = E, { data: E.data };
1984
1984
  } catch (i) {
1985
1985
  throw i;
1986
1986
  }
1987
1987
  }
1988
- async function L(r) {
1988
+ async function M(r) {
1989
1989
  var i;
1990
1990
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1991
- const y = I(r);
1991
+ const w = I(r);
1992
1992
  let D;
1993
1993
  if (e.api != null)
1994
1994
  try {
@@ -2002,23 +2002,23 @@ function An(e) {
2002
2002
  if (D != null) {
2003
2003
  let E = {
2004
2004
  meta: { storedOn: t.toString() },
2005
- data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...D }
2005
+ data: { ...(i = l.value[w]) == null ? void 0 : i.data, ...D }
2006
2006
  };
2007
- return l.value[y] = E, s == !0 && await ve().setItem(y, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((N) => {
2008
- const b = N[1].data;
2009
- if (b != null)
2010
- if (Array.isArray(b))
2011
- for (let T = 0; T < b.length; T++)
2012
- b[T].id == D.id && b.splice(T, 1, E.data);
2007
+ return l.value[w] = E, s == !0 && await ve().setItem(w, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((N) => {
2008
+ const S = N[1].data;
2009
+ if (S != null)
2010
+ if (Array.isArray(S))
2011
+ for (let T = 0; T < S.length; T++)
2012
+ S[T].id == D.id && S.splice(T, 1, E.data);
2013
2013
  else
2014
- b.id == D.id && (l.value[N[0]] = E);
2014
+ S.id == D.id && (l.value[N[0]] = E);
2015
2015
  }), E.data;
2016
2016
  }
2017
2017
  return D;
2018
2018
  }
2019
2019
  async function $(r) {
2020
2020
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2021
- const y = I(r);
2021
+ const w = I(r);
2022
2022
  let D;
2023
2023
  if (e.api != null)
2024
2024
  try {
@@ -2034,14 +2034,14 @@ function An(e) {
2034
2034
  meta: { storedOn: t.toString() },
2035
2035
  data: D
2036
2036
  };
2037
- return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2037
+ return s == !0 && await ve().setItem(w, i), l.value[w] = i, i.data;
2038
2038
  }
2039
2039
  return D;
2040
2040
  }
2041
2041
  async function d(r) {
2042
2042
  var i;
2043
2043
  r.additionalUrl ?? (r.additionalUrl = "/delete"), g(r);
2044
- const y = I(r);
2044
+ const w = I(r);
2045
2045
  if (e.api != null)
2046
2046
  try {
2047
2047
  let E = await e.api.deleteItem(r);
@@ -2050,50 +2050,50 @@ function An(e) {
2050
2050
  } catch (E) {
2051
2051
  throw E;
2052
2052
  }
2053
- delete l.value[y];
2053
+ delete l.value[w];
2054
2054
  const D = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2055
- D != null && Object.entries(l.value).forEach((w) => {
2056
- const N = w[1].data;
2055
+ D != null && Object.entries(l.value).forEach((b) => {
2056
+ const N = b[1].data;
2057
2057
  if (N != null)
2058
2058
  if (Array.isArray(N))
2059
- for (let b = 0; b < N.length; b++)
2060
- N[b].id == D && N.splice(b, 1);
2059
+ for (let S = 0; S < N.length; S++)
2060
+ N[S].id == D && N.splice(S, 1);
2061
2061
  else
2062
- delete l.value[w[0]];
2063
- }), s == !0 && await ve().removeItem(y);
2062
+ delete l.value[b[0]];
2063
+ }), s == !0 && await ve().removeItem(w);
2064
2064
  }
2065
2065
  async function h(r) {
2066
2066
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
2067
2067
  try {
2068
- let y = await e.api.patch(r);
2069
- return y == null ? void 0 : y.data;
2070
- } catch (y) {
2071
- throw y;
2068
+ let w = await e.api.patch(r);
2069
+ return w == null ? void 0 : w.data;
2070
+ } catch (w) {
2071
+ throw w;
2072
2072
  }
2073
2073
  }
2074
2074
  return {
2075
2075
  deleteItem: d,
2076
2076
  get: _,
2077
2077
  getAll: C,
2078
- patch: L,
2078
+ patch: M,
2079
2079
  post: $,
2080
2080
  restore: h,
2081
2081
  searchMemory: l,
2082
2082
  //mainly for testing
2083
2083
  currentTimeStampDays: t,
2084
- promiseMemory: S,
2084
+ promiseMemory: A,
2085
2085
  cacheLocally: s
2086
2086
  };
2087
2087
  });
2088
2088
  }
2089
2089
  function qr(e) {
2090
2090
  return pr(e.storeName, () => {
2091
- const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), I = z({}), C = e.storageMode == "local-cache";
2091
+ const t = z(), l = z(0), A = he.utc().toSeconds() / 3600, s = z(), g = z(), I = z({}), C = e.storageMode == "local-cache";
2092
2092
  function _() {
2093
2093
  var i;
2094
2094
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2095
2095
  }
2096
- async function L() {
2096
+ async function M() {
2097
2097
  console.log("trying save"), C == !0 && (console.log("saving"), await ve().setItem(_(), {
2098
2098
  meta: g.value,
2099
2099
  data: t.value,
@@ -2103,24 +2103,24 @@ function qr(e) {
2103
2103
  }
2104
2104
  function $(i) {
2105
2105
  const E = _();
2106
- return I.value[E] || (I.value[E] = new Promise(async (w, N) => {
2107
- var b, T;
2106
+ return I.value[E] || (I.value[E] = new Promise(async (b, N) => {
2107
+ var S, T;
2108
2108
  try {
2109
2109
  let x = await ((T = e.api) == null ? void 0 : T.getAll({
2110
2110
  additionalUrl: "/getAll",
2111
2111
  nav: i.nav,
2112
2112
  params: {
2113
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2113
+ lastUpdate: ((S = g.value) == null ? void 0 : S.lastUpdate) ?? ln()
2114
2114
  }
2115
2115
  }));
2116
- console.log("res"), console.log(x), x == null ? N(x) : (t.value ?? (t.value = []), x.data.forEach((P) => {
2117
- var A, j;
2118
- const f = t.value.findIndex((X) => X.id == P.id);
2119
- f >= 0 ? (A = t.value) == null || A.splice(f, 1, P) : (j = t.value) == null || j.push(P);
2116
+ console.log("res"), console.log(x), x == null ? N(x) : (t.value ?? (t.value = []), x.data.forEach((L) => {
2117
+ var y, J;
2118
+ const f = t.value.findIndex((X) => X.id == L.id);
2119
+ f >= 0 ? (y = t.value) == null || y.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2120
2120
  }), l.value = t.value.length, g.value = {
2121
2121
  lastUpdate: he.utc().toString(),
2122
- storedOn: S.toString()
2123
- }, await L(), console.log("resolving"), console.log(x), w(x));
2122
+ storedOn: A.toString()
2123
+ }, await M(), b(x));
2124
2124
  } catch (x) {
2125
2125
  N(x);
2126
2126
  } finally {
@@ -2129,60 +2129,64 @@ function qr(e) {
2129
2129
  })), I.value[E];
2130
2130
  }
2131
2131
  async function d(i) {
2132
- var N, b, T, x;
2133
- const E = _(), w = i.refresh;
2134
- if (console.log("getting all from"), console.log(E), !w && t.value != null)
2132
+ var T, x, L, f;
2133
+ const E = _(), b = i.refresh;
2134
+ if (console.log("getting all from"), console.log(E), !b && t.value != null)
2135
2135
  return console.log("not refresh and ditems not null"), {
2136
- count: (N = t.value) == null ? void 0 : N.length,
2136
+ count: (T = t.value) == null ? void 0 : T.length,
2137
2137
  data: t.value,
2138
2138
  filters: []
2139
2139
  };
2140
- if (!w && C == !0) {
2140
+ if (!b && C == !0) {
2141
2141
  console.log("not refresh and caching locally");
2142
- const P = await ve().getItem(E);
2143
- if (console.log(P), P != null && parseFloat(P.meta.storedOn) > S - 7)
2144
- return t.value = P.data, l.value = P.data.length, s.value = P.filters ?? [], g.value = P.meta, {
2145
- count: (b = t.value) == null ? void 0 : b.length,
2142
+ const y = await ve().getItem(E);
2143
+ if (console.log(y), y != null && parseFloat(y.meta.storedOn) > A - 7)
2144
+ return t.value = y.data, l.value = y.data.length, s.value = y.filters ?? [], g.value = y.meta, {
2145
+ count: (x = t.value) == null ? void 0 : x.length,
2146
2146
  data: t.value ?? [],
2147
2147
  filters: []
2148
2148
  };
2149
2149
  }
2150
2150
  if (e.api == null)
2151
2151
  return console.log("no api"), {
2152
- count: (T = t.value) == null ? void 0 : T.length,
2152
+ count: (L = t.value) == null ? void 0 : L.length,
2153
2153
  data: t.value ?? [],
2154
2154
  filters: s.value
2155
2155
  };
2156
2156
  console.log("setting dataitems"), t.value ?? (t.value = []);
2157
2157
  try {
2158
- return console.log("create refresh promise"), await $(i), {
2159
- count: (x = t.value) == null ? void 0 : x.length,
2158
+ console.log("create refresh promise");
2159
+ var N = await $(i);
2160
+ console.log(N);
2161
+ var S = {
2162
+ count: (f = t.value) == null ? void 0 : f.length,
2160
2163
  data: t.value ?? [],
2161
2164
  filters: s.value
2162
2165
  };
2163
- } catch (P) {
2164
- let f = P;
2165
- throw new Error(f.message ?? "Problem");
2166
+ return console.log(S), S;
2167
+ } catch (y) {
2168
+ let J = y;
2169
+ throw new Error(J.message ?? "Problem");
2166
2170
  }
2167
2171
  }
2168
2172
  async function h(i) {
2169
- var b, T, x, P;
2170
- const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2171
- if (w == null)
2173
+ var S, T, x, L;
2174
+ const E = _(), b = i.id ?? ((S = i.data) == null ? void 0 : S.id);
2175
+ if (b == null)
2172
2176
  throw new Error("no id provided");
2173
2177
  let N = i.refresh;
2174
2178
  if (!N && t.value != null) {
2175
- const f = t.value.find((A) => A.id == w);
2179
+ const f = t.value.find((y) => y.id == b);
2176
2180
  if (f != null)
2177
2181
  return { data: f };
2178
2182
  }
2179
2183
  if (!N && C == !0) {
2180
2184
  const f = await ve().getItem(E);
2181
- if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2185
+ if (f != null && parseFloat(f.meta.storedOn) > A - 12) {
2182
2186
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2183
- let A = (T = t.value) == null ? void 0 : T.find((j) => j.id == i.id);
2184
- if (A != null)
2185
- return { data: A };
2187
+ let y = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2188
+ if (y != null)
2189
+ return { data: y };
2186
2190
  }
2187
2191
  }
2188
2192
  if (e.api == null)
@@ -2191,14 +2195,14 @@ function qr(e) {
2191
2195
  };
2192
2196
  t.value ?? (t.value = []);
2193
2197
  try {
2194
- return await $(i), { data: (P = t.value) == null ? void 0 : P.find((f) => f.id == i.id) };
2198
+ return await $(i), { data: (L = t.value) == null ? void 0 : L.find((f) => f.id == i.id) };
2195
2199
  } catch (f) {
2196
- let A = f;
2197
- throw new Error(A.message ?? "Problem");
2200
+ let y = f;
2201
+ throw new Error(y.message ?? "Problem");
2198
2202
  }
2199
2203
  }
2200
2204
  async function u(i) {
2201
- var w, N, b;
2205
+ var b, N, S;
2202
2206
  i.additionalUrl ?? (i.additionalUrl = "/patch");
2203
2207
  let E;
2204
2208
  if (e.api != null)
@@ -2212,42 +2216,42 @@ function qr(e) {
2212
2216
  else
2213
2217
  E = i.data;
2214
2218
  if (E != null) {
2215
- let T = (w = t.value) == null ? void 0 : w.findIndex((x) => x.id == E.id);
2216
- T != null && T >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(T, 1, E), await L());
2219
+ let T = (b = t.value) == null ? void 0 : b.findIndex((x) => x.id == E.id);
2220
+ T != null && T >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(T, 1, E), await M());
2217
2221
  }
2218
- return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2222
+ return (S = t.value) == null ? void 0 : S.find((T) => T.id == (i.id ?? i.data.id));
2219
2223
  }
2220
2224
  async function r(i) {
2221
- var w, N;
2225
+ var b, N;
2222
2226
  i.additionalUrl ?? (i.additionalUrl = "/post");
2223
2227
  let E;
2224
2228
  if (e.api != null)
2225
2229
  try {
2226
- let b = await e.api.post(i);
2227
- E = b == null ? void 0 : b.data;
2228
- } catch (b) {
2229
- let T = b;
2230
+ let S = await e.api.post(i);
2231
+ E = S == null ? void 0 : S.data;
2232
+ } catch (S) {
2233
+ let T = S;
2230
2234
  throw new Error(T.message ?? "Patch Problem");
2231
2235
  }
2232
2236
  else
2233
2237
  E = i.data;
2234
- return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await L()), (N = t.value) == null ? void 0 : N.find((b) => b.id == (i.id ?? i.data.id));
2238
+ return E != null && (t.value ?? (t.value = []), (b = t.value) == null || b.unshift(E), l.value += 1, await M()), (N = t.value) == null ? void 0 : N.find((S) => S.id == (i.id ?? i.data.id));
2235
2239
  }
2236
- async function y(i) {
2237
- var w, N;
2240
+ async function w(i) {
2241
+ var b, N;
2238
2242
  if (i.additionalUrl ?? (i.additionalUrl = "/delete"), e.api != null)
2239
2243
  try {
2240
- let b = await e.api.deleteItem(i);
2241
- if (b != null)
2242
- return b;
2243
- } catch (b) {
2244
- let T = b;
2244
+ let S = await e.api.deleteItem(i);
2245
+ if (S != null)
2246
+ return S;
2247
+ } catch (S) {
2248
+ let T = S;
2245
2249
  throw new Error(T.message ?? "Patch Problem");
2246
2250
  }
2247
2251
  const E = i.id ?? i.data.id;
2248
2252
  if (E != null) {
2249
- let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
2250
- b != null && b >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(b, 1), await L());
2253
+ let S = (b = t.value) == null ? void 0 : b.findIndex((T) => T.id == E);
2254
+ S != null && S >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(S, 1), await M());
2251
2255
  }
2252
2256
  }
2253
2257
  async function D(i) {
@@ -2255,20 +2259,20 @@ function qr(e) {
2255
2259
  if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
2256
2260
  try {
2257
2261
  await e.api.patch(i);
2258
- } catch (w) {
2259
- let N = w;
2262
+ } catch (b) {
2263
+ let N = b;
2260
2264
  throw new Error(N.message ?? "Patch Problem");
2261
2265
  }
2262
2266
  try {
2263
2267
  i.additionalUrl = "/getAll", await $(i);
2264
- } catch (w) {
2265
- let N = w;
2268
+ } catch (b) {
2269
+ let N = b;
2266
2270
  throw new Error(N.message ?? "Problem");
2267
2271
  }
2268
- return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
2272
+ return (E = t.value) == null ? void 0 : E.find((b) => b.id == (i.id ?? i.data.id));
2269
2273
  }
2270
2274
  return {
2271
- deleteItem: y,
2275
+ deleteItem: w,
2272
2276
  get: h,
2273
2277
  getAll: d,
2274
2278
  patch: u,
@@ -2277,7 +2281,7 @@ function qr(e) {
2277
2281
  //other stuff
2278
2282
  dataItems: t,
2279
2283
  count: l,
2280
- currentTimeStampHours: S,
2284
+ currentTimeStampHours: A,
2281
2285
  filters: s,
2282
2286
  meta: g,
2283
2287
  promiseMemory: I,
@@ -2290,175 +2294,175 @@ function Er() {
2290
2294
  return Ar;
2291
2295
  }
2292
2296
  function En(e) {
2293
- const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? I, s = e == null ? void 0 : e.demo;
2297
+ const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, A = (e == null ? void 0 : e.buildUrl) ?? I, s = e == null ? void 0 : e.demo;
2294
2298
  function g(u) {
2295
2299
  let r = new URLSearchParams();
2296
- return Object.entries(u).forEach((y) => {
2297
- y[1] != null && r.append(y[0], y[1]);
2298
- }), u.filterBy && r.set("filterBy", u.filterBy), u.includeCount && r.set("includeCount", u.includeCount.toString()), u.includeDetails != null && r.set("includeDetails", u.includeDetails.toString()), u.includeInactive && r.set("includeInactive", u.includeInactive.toString()), u.properties && r.set("properties", u.properties.toString()), u.query && r.set("query", u.query.toString()), u.searchString && r.set("searchString", u.searchString), u.sortOrder && r.set("sortOrder", u.sortOrder), u.sortBy && r.set("sortBy", u.sortBy), u.takeFrom && r.set("takeFrom", u.takeFrom.toString()), u.takeAmount && r.set("takeAmount", u.takeAmount.toString()), u.other && Object.entries(u.other).forEach((y) => {
2299
- y[1] != null && r.append(y[0], y[1].toString());
2300
+ return Object.entries(u).forEach((w) => {
2301
+ w[1] != null && r.append(w[0], w[1]);
2302
+ }), u.filterBy && r.set("filterBy", u.filterBy), u.includeCount && r.set("includeCount", u.includeCount.toString()), u.includeDetails != null && r.set("includeDetails", u.includeDetails.toString()), u.includeInactive && r.set("includeInactive", u.includeInactive.toString()), u.properties && r.set("properties", u.properties.toString()), u.query && r.set("query", u.query.toString()), u.searchString && r.set("searchString", u.searchString), u.sortOrder && r.set("sortOrder", u.sortOrder), u.sortBy && r.set("sortBy", u.sortBy), u.takeFrom && r.set("takeFrom", u.takeFrom.toString()), u.takeAmount && r.set("takeAmount", u.takeAmount.toString()), u.other && Object.entries(u.other).forEach((w) => {
2303
+ w[1] != null && r.append(w[0], w[1].toString());
2300
2304
  }), r.toString();
2301
2305
  }
2302
2306
  function I(u) {
2303
- let r = Q(u.url) ?? void 0, y = Q(u.id);
2304
- return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Ue(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2307
+ let r = Q(u.url) ?? void 0, w = Q(u.id);
2308
+ return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), w != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", w) : r = Ue(r, w)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2305
2309
  }
2306
2310
  function C(u) {
2307
- var y, D;
2311
+ var w, D;
2308
2312
  let r = { ...u.headers };
2309
- return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(D = e == null ? void 0 : e.auth) == null ? void 0 : D.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2313
+ return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((w = e == null ? void 0 : e.auth) == null ? void 0 : w.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(D = e == null ? void 0 : e.auth) == null ? void 0 : D.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2310
2314
  }
2311
2315
  async function _(u) {
2312
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2316
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2313
2317
  let i = u.finalUrl, E = u.headers;
2314
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2318
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2315
2319
  return console.log(`DEMO: Get from ${i}`), s.get(u);
2316
2320
  console.log(`Get from ${i}`);
2317
- let w;
2321
+ let b;
2318
2322
  try {
2319
- if (w = await fetch(i, {
2323
+ if (b = await fetch(i, {
2320
2324
  method: "GET",
2321
2325
  mode: "cors",
2322
2326
  cache: "no-cache",
2323
2327
  headers: E
2324
- }), !w.ok) {
2325
- if (w.status == 401)
2328
+ }), !b.ok) {
2329
+ if (b.status == 401)
2326
2330
  throw {
2327
- code: w.status,
2331
+ code: b.status,
2328
2332
  name: "Unauthorized",
2329
- message: w.statusText
2333
+ message: b.statusText
2330
2334
  };
2331
- let N = await w.text();
2332
- throw new Error(N ?? w.statusText ?? "Get error");
2335
+ let N = await b.text();
2336
+ throw new Error(N ?? b.statusText ?? "Get error");
2333
2337
  }
2334
2338
  if (D)
2335
- return await w.text();
2336
- if (y)
2337
- return await w.json();
2339
+ return await b.text();
2340
+ if (w)
2341
+ return await b.json();
2338
2342
  throw new Error();
2339
2343
  } catch (N) {
2340
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2344
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2341
2345
  if (!r)
2342
2346
  return;
2343
- throw N.code == 401 ? N : new Error(b);
2347
+ throw N.code == 401 ? N : new Error(S);
2344
2348
  }
2345
2349
  }
2346
- async function L(u) {
2347
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2350
+ async function M(u) {
2351
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2348
2352
  let i = u.finalUrl, E = u.headers;
2349
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2353
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2350
2354
  return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2351
2355
  console.log(`Get all from ${i}`);
2352
- let w;
2356
+ let b;
2353
2357
  try {
2354
- if (w = await fetch(i, {
2358
+ if (b = await fetch(i, {
2355
2359
  method: "GET",
2356
2360
  mode: "cors",
2357
2361
  cache: "no-cache",
2358
2362
  headers: E
2359
- }), !w.ok) {
2360
- if (w.status == 401)
2363
+ }), !b.ok) {
2364
+ if (b.status == 401)
2361
2365
  throw {
2362
- code: w.status,
2366
+ code: b.status,
2363
2367
  name: "Unauthorized",
2364
- message: w.statusText
2368
+ message: b.statusText
2365
2369
  };
2366
- let N = await w.text();
2367
- throw new Error(N ?? w.statusText ?? "Get all error");
2370
+ let N = await b.text();
2371
+ throw new Error(N ?? b.statusText ?? "Get all error");
2368
2372
  }
2369
2373
  if (D)
2370
- return await w.text();
2371
- if (y)
2372
- return await w.json();
2374
+ return await b.text();
2375
+ if (w)
2376
+ return await b.json();
2373
2377
  throw new Error();
2374
2378
  } catch (N) {
2375
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2379
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2376
2380
  if (!r)
2377
2381
  return;
2378
- throw N.code == 401 ? N : new Error(b);
2382
+ throw N.code == 401 ? N : new Error(S);
2379
2383
  }
2380
2384
  }
2381
2385
  async function $(u) {
2382
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2386
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2383
2387
  let i = u.finalUrl, E = u.headers;
2384
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2388
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2385
2389
  return console.log(`DEMO: Post to ${i}`), s.post(u);
2386
2390
  console.log(`Post to ${i}`);
2387
- let w;
2391
+ let b;
2388
2392
  try {
2389
- if (w = await fetch(i, {
2393
+ if (b = await fetch(i, {
2390
2394
  method: "POST",
2391
2395
  mode: "cors",
2392
2396
  cache: "no-cache",
2393
2397
  headers: E,
2394
2398
  body: JSON.stringify(u.data)
2395
- }), !w.ok) {
2396
- if (w.status == 401)
2399
+ }), !b.ok) {
2400
+ if (b.status == 401)
2397
2401
  throw {
2398
- code: w.status,
2402
+ code: b.status,
2399
2403
  name: "Unauthorized",
2400
- message: w.statusText
2404
+ message: b.statusText
2401
2405
  };
2402
- let N = await w.text();
2403
- throw new Error(N ?? w.statusText ?? "Post error!");
2406
+ let N = await b.text();
2407
+ throw new Error(N ?? b.statusText ?? "Post error!");
2404
2408
  }
2405
2409
  if (D)
2406
- return await w.text();
2407
- if (y)
2408
- return await w.json();
2410
+ return await b.text();
2411
+ if (w)
2412
+ return await b.json();
2409
2413
  throw new Error();
2410
2414
  } catch (N) {
2411
- if (w.status == 200 || !r)
2415
+ if (b.status == 200 || !r)
2412
2416
  return;
2413
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2414
- throw N.code == 401 ? N : new Error(b);
2417
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2418
+ throw N.code == 401 ? N : new Error(S);
2415
2419
  }
2416
2420
  }
2417
2421
  async function d(u) {
2418
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2422
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2419
2423
  let i = u.finalUrl, E = u.headers;
2420
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2424
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2421
2425
  return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2422
2426
  console.log(`Patch to ${i}`);
2423
- let w;
2427
+ let b;
2424
2428
  try {
2425
- if (w = await fetch(i, {
2429
+ if (b = await fetch(i, {
2426
2430
  method: "PATCH",
2427
2431
  mode: "cors",
2428
2432
  cache: "no-cache",
2429
2433
  headers: E,
2430
2434
  body: JSON.stringify(u.data)
2431
- }), !w.ok) {
2432
- if (w.status == 401)
2435
+ }), !b.ok) {
2436
+ if (b.status == 401)
2433
2437
  throw {
2434
- code: w.status,
2438
+ code: b.status,
2435
2439
  name: "Unauthorized",
2436
- message: w.statusText
2440
+ message: b.statusText
2437
2441
  };
2438
- let N = await w.text();
2439
- throw new Error(N ?? w.statusText ?? "Patch error!");
2442
+ let N = await b.text();
2443
+ throw new Error(N ?? b.statusText ?? "Patch error!");
2440
2444
  }
2441
2445
  if (D)
2442
- return await w.text();
2443
- if (y)
2444
- return await w.json();
2446
+ return await b.text();
2447
+ if (w)
2448
+ return await b.json();
2445
2449
  throw new Error();
2446
2450
  } catch (N) {
2447
- if (w.status == 200 || !r)
2451
+ if (b.status == 200 || !r)
2448
2452
  return;
2449
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2450
- throw N.code == 401 ? N : new Error(b);
2453
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2454
+ throw N.code == 401 ? N : new Error(S);
2451
2455
  }
2452
2456
  }
2453
2457
  async function h(u) {
2454
2458
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2455
- let y = u.finalUrl, D = u.headers;
2456
- if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (D = t(u)), s != null && s.isDemoing.value)
2457
- return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2458
- console.log(`Delete ${y}`);
2459
+ let w = u.finalUrl, D = u.headers;
2460
+ if (w == null && (w = A(u)), u.overrideHeaders !== !0 && (D = t(u)), s != null && s.isDemoing.value)
2461
+ return console.log(`DEMO: Delete ${w}`), s.deleteItem(u);
2462
+ console.log(`Delete ${w}`);
2459
2463
  let i;
2460
2464
  try {
2461
- if (i = await fetch(y, {
2465
+ if (i = await fetch(w, {
2462
2466
  method: "DELETE",
2463
2467
  mode: "cors",
2464
2468
  cache: "no-cache",
@@ -2472,32 +2476,32 @@ function En(e) {
2472
2476
  };
2473
2477
  return i.status == 200 ? void 0 : i.statusText;
2474
2478
  } catch (E) {
2475
- const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2479
+ const b = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2476
2480
  if (!r)
2477
- return w;
2481
+ return b;
2478
2482
  throw E.code == 401 ? E : new Error(`${i.status} ${i.statusText} ${E.message}`);
2479
2483
  }
2480
2484
  }
2481
2485
  return Ar = {
2482
2486
  buildHeaders: t,
2483
2487
  buildQuery: l,
2484
- buildUrl: S,
2488
+ buildUrl: A,
2485
2489
  deleteItem: h,
2486
2490
  get: _,
2487
- getAll: L,
2491
+ getAll: M,
2488
2492
  patch: d,
2489
2493
  post: $
2490
2494
  }, Ar;
2491
2495
  }
2492
2496
  function ut(e) {
2493
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: I } = en(e);
2497
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: A, isLoading: s, doAction: g, logError: I } = en(e);
2494
2498
  function C(r) {
2495
2499
  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);
2496
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2500
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2497
2501
  const D = (e == null ? void 0 : e.items) ?? [];
2498
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2499
- var w;
2500
- const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2502
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => w().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2503
+ var b;
2504
+ const i = r.id ?? ((b = r.data) == null ? void 0 : b.id);
2501
2505
  if (i == null)
2502
2506
  return Promise.resolve("No id found in delete action");
2503
2507
  const E = D.findIndex((N) => N.id == i);
@@ -2516,12 +2520,12 @@ function ut(e) {
2516
2520
  }
2517
2521
  function _(r) {
2518
2522
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
2519
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2523
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2520
2524
  const D = (e == null ? void 0 : e.items) ?? [];
2521
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2525
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await w().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2522
2526
  var E;
2523
2527
  const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2524
- return i == null ? Promise.resolve(void 0) : Promise.resolve(D.find((w) => w.id == i));
2528
+ return i == null ? Promise.resolve(void 0) : Promise.resolve(D.find((b) => b.id == i));
2525
2529
  }), g(async () => {
2526
2530
  let i;
2527
2531
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
@@ -2534,11 +2538,11 @@ function ut(e) {
2534
2538
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2535
2539
  });
2536
2540
  }
2537
- function L(r) {
2541
+ function M(r) {
2538
2542
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
2539
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2543
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2540
2544
  const D = (e == null ? void 0 : e.items) ?? [];
2541
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(D)), g(async () => {
2545
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onGetAsync ?? (r.onGetAsync = () => w().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(D)), g(async () => {
2542
2546
  let i;
2543
2547
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2544
2548
  }, {
@@ -2552,8 +2556,8 @@ function ut(e) {
2552
2556
  }
2553
2557
  function $(r) {
2554
2558
  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 restore this item?" : void 0);
2555
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2556
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2559
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2560
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => w().restore(r))), g(async () => {
2557
2561
  let D, i;
2558
2562
  return r.onCanRestoreAsync != null && (D = await r.onCanRestoreAsync(r.data)), D == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), I(D), i;
2559
2563
  }, {
@@ -2567,21 +2571,21 @@ function ut(e) {
2567
2571
  }
2568
2572
  function d(r) {
2569
2573
  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 save this item?" : void 0);
2570
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2574
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2571
2575
  const D = (e == null ? void 0 : e.items) ?? [];
2572
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2576
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2573
2577
  var i;
2574
- return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2578
+ return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await w().post(r) : await w().patch(r);
2575
2579
  }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
2576
- const E = D.findIndex((w) => w.id == i.id);
2580
+ const E = D.findIndex((b) => b.id == i.id);
2577
2581
  return E >= 0 ? D.splice(E, 1, i) : D.push(i), Promise.resolve(i);
2578
2582
  }), g(async () => {
2579
2583
  let i;
2580
2584
  if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
2581
2585
  return;
2582
2586
  if (r.onCanSaveAsync != null) {
2583
- let w = await r.onCanSaveAsync(i);
2584
- if (I(w), w != null)
2587
+ let b = await r.onCanSaveAsync(i);
2588
+ if (I(b), b != null)
2585
2589
  return;
2586
2590
  }
2587
2591
  let E;
@@ -2606,10 +2610,10 @@ function ut(e) {
2606
2610
  actionErrorMsg: t,
2607
2611
  apiGet: h,
2608
2612
  apiPost: u,
2609
- clearErrors: S,
2613
+ clearErrors: A,
2610
2614
  deleteItem: C,
2611
2615
  doAction: g,
2612
- getAllItems: L,
2616
+ getAllItems: M,
2613
2617
  getItem: _,
2614
2618
  isLoading: s,
2615
2619
  logError: I,
@@ -2625,37 +2629,37 @@ function In() {
2625
2629
  function Dn(e) {
2626
2630
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2627
2631
  let l = z(localStorage.getItem(Hr) ?? "");
2628
- l.value.length == 0 && S();
2629
- function S() {
2632
+ l.value.length == 0 && A();
2633
+ function A() {
2630
2634
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2631
2635
  }
2632
2636
  const s = Zt("auth-credentials", {});
2633
2637
  function g(x) {
2634
2638
  if (x == null)
2635
2639
  return !0;
2636
- var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2637
- if (P == null)
2640
+ var L = e.getAuthItem != null ? e.getAuthItem(x) : null;
2641
+ if (L == null)
2638
2642
  return !1;
2639
- if (P.requiresAuth === !1)
2643
+ if (L.requiresAuth === !1)
2640
2644
  return !0;
2641
2645
  const f = Q(s);
2642
- if (f.isSuspended && P.ignoreSuspension !== !0)
2646
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2643
2647
  return !1;
2644
2648
  if (f.isGlobalAdmin)
2645
2649
  return !0;
2646
- if (P.permissions != null) {
2647
- for (var A = 0; A < P.permissions.length; A++)
2648
- if (!I(P.permissions[A]))
2650
+ if (L.permissions != null) {
2651
+ for (var y = 0; y < L.permissions.length; y++)
2652
+ if (!I(L.permissions[y]))
2649
2653
  return !1;
2650
2654
  }
2651
2655
  return !0;
2652
2656
  }
2653
2657
  function I(x) {
2654
- const P = Q(s);
2655
- if (P.userPermissions != null)
2656
- for (var f = 0; f < P.userPermissions.length; f++) {
2657
- var A = P.userPermissions[f].split(".");
2658
- if (P.userPermissions[f] == "everything.edit" || x == A[0] && A.length > 1 && A[1] == "edit")
2658
+ const L = Q(s);
2659
+ if (L.userPermissions != null)
2660
+ for (var f = 0; f < L.userPermissions.length; f++) {
2661
+ var y = L.userPermissions[f].split(".");
2662
+ if (L.userPermissions[f] == "everything.edit" || x == y[0] && y.length > 1 && y[1] == "edit")
2659
2663
  return !0;
2660
2664
  }
2661
2665
  return !1;
@@ -2663,126 +2667,126 @@ function Dn(e) {
2663
2667
  function C(x) {
2664
2668
  if (x == null)
2665
2669
  return !0;
2666
- var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2667
- if (P == null)
2670
+ var L = e.getAuthItem != null ? e.getAuthItem(x) : null;
2671
+ if (L == null)
2668
2672
  return !1;
2669
- if (P.requiresAuth === !1)
2673
+ if (L.requiresAuth === !1)
2670
2674
  return !0;
2671
2675
  const f = Q(s);
2672
- if (f.isSuspended && P.ignoreSuspension !== !0)
2676
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2673
2677
  return !1;
2674
2678
  if (f.isGlobalAdmin)
2675
2679
  return !0;
2676
- if (P.permissions != null) {
2677
- for (var A = 0; A < P.permissions.length; A++)
2678
- if (!_(P.permissions[A]))
2680
+ if (L.permissions != null) {
2681
+ for (var y = 0; y < L.permissions.length; y++)
2682
+ if (!_(L.permissions[y]))
2679
2683
  return !1;
2680
2684
  }
2681
2685
  return !0;
2682
2686
  }
2683
2687
  function _(x) {
2684
- const P = Q(s);
2685
- if (P.userPermissions != null)
2686
- for (var f = 0; f < P.userPermissions.length; f++) {
2687
- var A = P.userPermissions[f].split(".");
2688
- if (x == A[0] || x == "everything" || P.userPermissions[f] == "everything.view" || P.userPermissions[f] == "everything.edit")
2688
+ const L = Q(s);
2689
+ if (L.userPermissions != null)
2690
+ for (var f = 0; f < L.userPermissions.length; f++) {
2691
+ var y = L.userPermissions[f].split(".");
2692
+ if (x == y[0] || x == "everything" || L.userPermissions[f] == "everything.view" || L.userPermissions[f] == "everything.edit")
2689
2693
  return !0;
2690
2694
  }
2691
2695
  return !1;
2692
2696
  }
2693
- function L(x, P, f) {
2694
- let A = !0;
2695
- return Q(s).isGlobalAdmin ? !0 : (P != null && P.length > 0 && P.forEach((X) => {
2696
- f == "edit" ? I(X) || (A = !1) : _(X) || (A = !1);
2697
- }), x != null && x.length > 0 && (x.some((X) => u(X)) || (A = !1)), A);
2697
+ function M(x, L, f) {
2698
+ let y = !0;
2699
+ return Q(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((X) => {
2700
+ f == "edit" ? I(X) || (y = !1) : _(X) || (y = !1);
2701
+ }), x != null && x.length > 0 && (x.some((X) => u(X)) || (y = !1)), y);
2698
2702
  }
2699
- function $(x, P = !1) {
2703
+ function $(x, L = !1) {
2700
2704
  var f = e.getAuthItem != null ? e.getAuthItem(x) : null;
2701
- let A = !1;
2705
+ let y = !1;
2702
2706
  if (f == null)
2703
2707
  return !1;
2704
- let j = f.subscriptions ?? [], X = f.permissions ?? [], re = L(j, X, "view");
2705
- return re || !P || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2706
- $(ue, !0) && (A = !0);
2707
- }), A);
2708
+ let J = f.subscriptions ?? [], X = f.permissions ?? [], re = M(J, X, "view");
2709
+ return re || !L || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2710
+ $(ue, !0) && (y = !0);
2711
+ }), y);
2708
2712
  }
2709
2713
  function d(x) {
2710
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (P, f) => {
2711
- const A = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2712
- return P ? `${A}&redirect_path=${P}` : A;
2714
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2715
+ const y = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2716
+ return L ? `${y}&redirect_path=${L}` : y;
2713
2717
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(x, l.value) ?? "" : "";
2714
2718
  }
2715
2719
  function h(x) {
2716
2720
  var f;
2717
- return x == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == x)) == null ? void 0 : f.value) ?? 0;
2721
+ return x == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((y) => y.code == x)) == null ? void 0 : f.value) ?? 0;
2718
2722
  }
2719
2723
  function u(x) {
2720
- const P = Q(s);
2721
- if (P.subscriptionCode == null)
2724
+ const L = Q(s);
2725
+ if (L.subscriptionCode == null)
2722
2726
  return !1;
2723
- if (P.subscriptionCode == x)
2727
+ if (L.subscriptionCode == x)
2724
2728
  return !0;
2725
- const f = h(x), A = h(P.subscriptionCode);
2726
- return f <= A;
2729
+ const f = h(x), y = h(L.subscriptionCode);
2730
+ return f <= y;
2727
2731
  }
2728
2732
  function r(x) {
2729
- const f = x.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2730
- atob(f).split("").map(function(j) {
2731
- return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
2733
+ const f = x.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), y = decodeURIComponent(
2734
+ atob(f).split("").map(function(J) {
2735
+ return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2732
2736
  }).join("")
2733
2737
  );
2734
- return JSON.parse(A);
2738
+ return JSON.parse(y);
2735
2739
  }
2736
- function y(x, P) {
2737
- s.value = void 0, N(), x != null && P != null && P.currentRoute.value.path != x && P.push({ path: x });
2740
+ function w(x, L) {
2741
+ s.value = void 0, N(), x != null && L != null && L.currentRoute.value.path != x && L.push({ path: x });
2738
2742
  }
2739
2743
  function D(x) {
2740
2744
  var f;
2741
- Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(x)));
2745
+ Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (w(), window.location.href = d(x)));
2742
2746
  }
2743
- async function i(x, P) {
2747
+ async function i(x, L) {
2744
2748
  return e.getToken ?? (e.getToken = async () => {
2745
- let f = x, A = P, j = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2746
- if (f == null || A == null)
2749
+ let f = x, y = L, J = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2750
+ if (f == null || y == null)
2747
2751
  throw new Error("Code and State required in OAuth token process");
2748
- if (A != l.value)
2752
+ if (y != l.value)
2749
2753
  throw new Error("state does not match");
2750
2754
  let re = "";
2751
- e.getTokenUrl ?? (e.getTokenUrl = () => Ue(Wr(), "token")), re = e.getTokenUrl(f, `${window.location.origin}/authentication`, j, X);
2755
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ue(Wr(), "token")), re = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, X);
2752
2756
  const ue = {};
2753
- ue.grant_type = j, ue.code = f, ue.redirect_uri = `${window.location.origin}/authentication`, ue.client_id = X;
2757
+ ue.grant_type = J, ue.code = f, ue.redirect_uri = `${window.location.origin}/authentication`, ue.client_id = X;
2754
2758
  const G = await Er().post({
2755
2759
  additionalUrl: re,
2756
2760
  data: ue
2757
2761
  });
2758
2762
  E(G.access_token);
2759
- }), await e.getToken(x, P);
2763
+ }), await e.getToken(x, L);
2760
2764
  }
2761
2765
  function E(x) {
2762
2766
  if (x != null && (e.demo == null || !e.demo.isDemoing.value)) {
2763
- const P = r(x);
2764
- w(P, x), e.processTokenPayload != null && e.processTokenPayload(s, P);
2767
+ const L = r(x);
2768
+ b(L, x), e.processTokenPayload != null && e.processTokenPayload(s, L);
2765
2769
  }
2766
2770
  }
2767
- function w(x, P) {
2768
- var A;
2771
+ function b(x, L) {
2772
+ var y;
2769
2773
  const f = s.value;
2770
- f.expiresOn = x.ExpiresOn, f.isGlobalAdmin = x.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = x.Permissions, f.subscriptionCode = x.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = P, f.userID = x.UserLoginID, f.userPermissions = ((A = x.Permissions) == null ? void 0 : A.split(",")) ?? [];
2774
+ f.expiresOn = x.ExpiresOn, f.isGlobalAdmin = x.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = x.Permissions, f.subscriptionCode = x.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = L, f.userID = x.UserLoginID, f.userPermissions = ((y = x.Permissions) == null ? void 0 : y.split(",")) ?? [];
2771
2775
  }
2772
2776
  function N() {
2773
2777
  var x;
2774
2778
  s.value ?? (s.value = {}), (x = s.value).timeZone ?? (x.timeZone = e.defaultTimeZone ?? hr);
2775
2779
  }
2776
- function b() {
2780
+ function S() {
2777
2781
  const x = Q(s);
2778
- return x.isLoggedIn && T() && (y(), window.location.href = d()), x.isLoggedIn;
2782
+ return x.isLoggedIn && T() && (w(), window.location.href = d()), x.isLoggedIn;
2779
2783
  }
2780
2784
  function T() {
2781
2785
  const x = Q(s);
2782
2786
  if (x == null || x.expiresOn == null)
2783
2787
  return !0;
2784
- const P = he.fromFormat(x.expiresOn, t), f = he.utc();
2785
- return P <= f;
2788
+ const L = he.fromFormat(x.expiresOn, t), f = he.utc();
2789
+ return L <= f;
2786
2790
  }
2787
2791
  return N(), Ir = {
2788
2792
  authState: l,
@@ -2791,62 +2795,62 @@ function Dn(e) {
2791
2795
  canView: C,
2792
2796
  canViewPermit: _,
2793
2797
  credentials: s,
2794
- doShow: L,
2798
+ doShow: M,
2795
2799
  doShowByNav: $,
2796
2800
  getAuthorizeUrl: d,
2797
2801
  getToken: i,
2798
2802
  isLoggedIn: ee(() => s.value.isLoggedIn === !0),
2799
2803
  login: D,
2800
- logout: y,
2801
- resetAuthState: S,
2804
+ logout: w,
2805
+ resetAuthState: A,
2802
2806
  setAuth: E,
2803
2807
  timeZone: ee(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2804
- tryLogin: b
2808
+ tryLogin: S
2805
2809
  }, Ir;
2806
2810
  }
2807
2811
  function xn(e, t, l = {}) {
2808
2812
  const {
2809
- preventDefault: S = !1,
2813
+ preventDefault: A = !1,
2810
2814
  stopPropagation: s = !1,
2811
2815
  axis: g = "both"
2812
2816
  } = l, I = { capture: l.capture ?? !0 };
2813
- let C = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, L = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2817
+ let C = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, M = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2814
2818
  function u(N) {
2815
- Q(S) && N.preventDefault(), Q(s) && N.stopPropagation();
2819
+ Q(A) && N.preventDefault(), Q(s) && N.stopPropagation();
2816
2820
  }
2817
2821
  function r(N) {
2818
2822
  var f;
2819
- const b = Q(e);
2820
- if (!b)
2823
+ const S = Q(e);
2824
+ if (!S)
2821
2825
  return;
2822
- const T = b.$el, P = N.type === "touchstart" && N.touches.length > 0 ? N.touches[0] : N;
2823
- L = { x: P.clientX, y: P.clientY }, _ = {
2826
+ const T = S.$el, L = N.type === "touchstart" && N.touches.length > 0 ? N.touches[0] : N;
2827
+ M = { x: L.clientX, y: L.clientY }, _ = {
2824
2828
  x: T.offsetLeft,
2825
2829
  y: T.offsetTop
2826
2830
  }, C = {
2827
2831
  x: T.offsetLeft,
2828
2832
  y: T.offsetTop
2829
- }, ((f = l.onStart) == null ? void 0 : f.call(l, L, N)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(N));
2833
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, M, N)) !== !1 && (d.push(me("mousemove", w)), d.push(me("touchmove", w)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(N));
2830
2834
  }
2831
- function y(N) {
2832
- var A;
2833
- if (!L || !Q(e))
2835
+ function w(N) {
2836
+ var y;
2837
+ if (!M || !Q(e))
2834
2838
  return;
2835
2839
  const x = N.type === "touchmove" && N.touches.length > 0 ? N.touches[0] : N;
2836
- let P = x.clientX - L.x, f = x.clientY - L.y;
2837
- (g === "x" || g === "both") && (C.x = _.x + P), (g === "y" || g === "both") && (C.y = _.y + f), (A = l.onMove) == null || A.call(l, C, N), u(N), i(C);
2840
+ let L = x.clientX - M.x, f = x.clientY - M.y;
2841
+ (g === "x" || g === "both") && (C.x = _.x + L), (g === "y" || g === "both") && (C.y = _.y + f), (y = l.onMove) == null || y.call(l, C, N), u(N), i(C);
2838
2842
  }
2839
2843
  function D(N) {
2840
- var b;
2844
+ var S;
2841
2845
  document.documentElement.style.cursor = "", d.forEach((T) => {
2842
2846
  T();
2843
- }), d.length = 0, (b = l.onEnd) == null || b.call(l, C, N), u(N);
2847
+ }), d.length = 0, (S = l.onEnd) == null || S.call(l, C, N), u(N);
2844
2848
  }
2845
2849
  function i(N) {
2846
- const b = Q(e);
2847
- if (!b)
2850
+ const S = Q(e);
2851
+ if (!S)
2848
2852
  return;
2849
- const T = b.$el;
2853
+ const T = S.$el;
2850
2854
  T.style.left = `${N.x}px`, T.style.top = `${N.y}px`;
2851
2855
  }
2852
2856
  function E() {
@@ -2855,47 +2859,47 @@ function xn(e, t, l = {}) {
2855
2859
  const N = Q(t);
2856
2860
  if (!N)
2857
2861
  return;
2858
- const b = N.$el;
2859
- b.style.cursor = "move", $.push(me(b, "mousedown", r, I)), $.push(me(b, "touchstart", r, I)), h.value = !0;
2862
+ const S = N.$el;
2863
+ S.style.cursor = "move", $.push(me(S, "mousedown", r, I)), $.push(me(S, "touchstart", r, I)), h.value = !0;
2860
2864
  }
2861
- function w() {
2865
+ function b() {
2862
2866
  if (!Q(h))
2863
2867
  return;
2864
2868
  const N = Q(t);
2865
2869
  if (!N)
2866
2870
  return;
2867
- const b = N.$el;
2868
- b.style.cursor = "", $.forEach((T) => {
2871
+ const S = N.$el;
2872
+ S.style.cursor = "", $.forEach((T) => {
2869
2873
  T();
2870
2874
  }), $.length = 0, h.value = !1;
2871
2875
  }
2872
2876
  return {
2873
2877
  draggingIsOn: h,
2874
- turnDraggableOff: w,
2878
+ turnDraggableOff: b,
2875
2879
  turnDraggableOn: E
2876
2880
  };
2877
2881
  }
2878
2882
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2879
2883
  function _n(e, t = {}) {
2880
- let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, I = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2884
+ let l, A = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, I = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, M = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2881
2885
  const u = z(!1);
2882
- let r = [], y = [];
2886
+ let r = [], w = [];
2883
2887
  const D = z(!1), i = z({ x: 0, y: 0 });
2884
- let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2888
+ let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, b = {};
2885
2889
  function N(G) {
2886
- Ee(L) && G.preventDefault(), Ee($) && G.stopPropagation();
2890
+ Ee(M) && G.preventDefault(), Ee($) && G.stopPropagation();
2887
2891
  }
2888
- function b(G, Y) {
2892
+ function S(G, Y) {
2889
2893
  h = Y.map(x), h.forEach((H) => G.$el.appendChild(H));
2890
2894
  }
2891
2895
  function T(G) {
2892
2896
  h.forEach((Y) => G.$el.removeChild(Y));
2893
2897
  }
2894
2898
  function x(G) {
2895
- const Y = S + "px", H = -S / 2 + "px", ie = s + 1, Z = document.createElement("div");
2896
- return Z.dataset.handle = G, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (G.length === 1 ? s : ie).toString(), Z.style.cursor = j(G), G.includes("t") && (Z.style.top = H, Z.style.height = Y, G === "t" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("b") && (Z.style.bottom = H, Z.style.height = Y, G === "b" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("r") && (Z.style.right = H, Z.style.width = Y, G === "r" && (Z.style.top = "0", Z.style.height = "100%")), G.includes("l") && (Z.style.left = H, Z.style.width = Y, G === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
2899
+ const Y = A + "px", H = -A / 2 + "px", ie = s + 1, Z = document.createElement("div");
2900
+ return Z.dataset.handle = G, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (G.length === 1 ? s : ie).toString(), Z.style.cursor = J(G), G.includes("t") && (Z.style.top = H, Z.style.height = Y, G === "t" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("b") && (Z.style.bottom = H, Z.style.height = Y, G === "b" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("r") && (Z.style.right = H, Z.style.width = Y, G === "r" && (Z.style.top = "0", Z.style.height = "100%")), G.includes("l") && (Z.style.left = H, Z.style.width = Y, G === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
2897
2901
  }
2898
- function P(G) {
2902
+ function L(G) {
2899
2903
  var ne;
2900
2904
  if (!h.some((ce) => ce == G.target))
2901
2905
  return;
@@ -2908,10 +2912,10 @@ function _n(e, t = {}) {
2908
2912
  top: H.offsetTop,
2909
2913
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2910
2914
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2911
- }, w = Nr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2915
+ }, b = Nr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2912
2916
  return;
2913
2917
  let W = G.target;
2914
- document.documentElement.style.cursor = j(W.dataset.handle), d = W.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), N(G);
2918
+ document.documentElement.style.cursor = J(W.dataset.handle), d = W.dataset.handle, w.push(me("mousemove", f)), w.push(me("mouseup", y)), w.push(me("touchmove", f)), w.push(me("touchend", y)), N(G);
2915
2919
  }
2916
2920
  function f(G) {
2917
2921
  const Y = Ee(e);
@@ -2922,28 +2926,28 @@ function _n(e, t = {}) {
2922
2926
  const ce = Ee(E);
2923
2927
  if (d.includes("t")) {
2924
2928
  const se = Math.min(_, Math.max(C, (ce.height ?? 0) - ne));
2925
- w.height = se, w.top = (ce.top ?? 0) + ne;
2929
+ b.height = se, b.top = (ce.top ?? 0) + ne;
2926
2930
  }
2927
2931
  if (d.includes("b")) {
2928
2932
  const se = Math.min(_, Math.max(C, (ce.height ?? 0) + ne));
2929
- w.height = se;
2933
+ b.height = se;
2930
2934
  }
2931
2935
  if (d.includes("l")) {
2932
2936
  const se = Math.min(I, Math.max(g, (ce.width ?? 0) - W));
2933
- w.width = se, w.left = (ce.left ?? 0) + W;
2937
+ b.width = se, b.left = (ce.left ?? 0) + W;
2934
2938
  }
2935
2939
  if (d.includes("r")) {
2936
2940
  const se = Math.min(I, Math.max(g, (ce.width ?? 0) + W));
2937
- w.width = se;
2941
+ b.width = se;
2938
2942
  }
2939
- H.dispatchEvent(new CustomEvent("resize")), N(G), re(w);
2943
+ H.dispatchEvent(new CustomEvent("resize")), N(G), re(b);
2940
2944
  }
2941
- function A() {
2942
- document.documentElement.style.cursor = "", d = null, y.forEach((G) => {
2945
+ function y() {
2946
+ document.documentElement.style.cursor = "", d = null, w.forEach((G) => {
2943
2947
  G();
2944
- }), y.length = 0;
2948
+ }), w.length = 0;
2945
2949
  }
2946
- function j(G) {
2950
+ function J(G) {
2947
2951
  const Y = {
2948
2952
  t: "n",
2949
2953
  r: "e",
@@ -2982,19 +2986,19 @@ function _n(e, t = {}) {
2982
2986
  position: "absolute"
2983
2987
  }, re(E), H.offsetHeight;
2984
2988
  const ie = E;
2985
- G == "freestyle" ? w = {
2989
+ G == "freestyle" ? b = {
2986
2990
  height: ie.height,
2987
2991
  width: (ie.width ?? 100) / 2,
2988
2992
  top: (ie.top ?? 0) + 2,
2989
2993
  left: (ie.left ?? 0) + 2,
2990
2994
  position: "absolute"
2991
- } : G == "blade" && (w = {
2995
+ } : G == "blade" && (b = {
2992
2996
  height: ie.height,
2993
2997
  width: (ie.width ?? 100) / 2,
2994
2998
  top: (ie.top ?? 0) + 2,
2995
2999
  left: (ie.left ?? 0) + 2,
2996
3000
  position: "absolute"
2997
- }), re(w), me(H, "transitionend", () => {
3001
+ }), re(b), me(H, "transitionend", () => {
2998
3002
  H.style.transition = "", u.value = !1;
2999
3003
  }, { once: !0 });
3000
3004
  }
@@ -3010,7 +3014,7 @@ function _n(e, t = {}) {
3010
3014
  if (D.value)
3011
3015
  return;
3012
3016
  const H = Ee(e);
3013
- H && (b(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", P)), r.push(me(H.$el, "touchstart", P)), D.value = !0, l = Y);
3017
+ H && (S(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), D.value = !0, l = Y);
3014
3018
  }
3015
3019
  function be(G) {
3016
3020
  if (!D.value)
@@ -3027,16 +3031,16 @@ function _n(e, t = {}) {
3027
3031
  };
3028
3032
  }
3029
3033
  function Cn(e) {
3030
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), I = z({}), { turnResizingOff: C, turnResizingOn: _ } = _n(t), { turnDraggableOff: L, turnDraggableOn: $ } = xn(t, l);
3034
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), A = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), I = z({}), { turnResizingOff: C, turnResizingOn: _ } = _n(t), { turnDraggableOff: M, turnDraggableOn: $ } = xn(t, l);
3031
3035
  jt(t, (h) => {
3032
3036
  const u = h[0], { width: r } = u.contentRect;
3033
- S.value = r < s;
3037
+ A.value = r < s;
3034
3038
  });
3035
3039
  function d(h) {
3036
- L(), h == "page" ? C(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (C(), _(void 0, h), $()) : h == "inline" && C();
3040
+ M(), h == "page" ? C(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (C(), _(void 0, h), $()) : h == "inline" && C();
3037
3041
  }
3038
3042
  return d(g.value), Te(g, (h) => d(h)), {
3039
- isMobile: S,
3043
+ isMobile: A,
3040
3044
  variant: g,
3041
3045
  bladeData: I
3042
3046
  };
@@ -3080,7 +3084,7 @@ function ya(e) {
3080
3084
  function Pn(e) {
3081
3085
  const t = z({});
3082
3086
  let l = e.vuetifyInstance;
3083
- function S() {
3087
+ function A() {
3084
3088
  const d = localStorage.getItem("cosmetics");
3085
3089
  d != null && d.length > 0 ? t.value = JSON.parse(d) : t.value = {
3086
3090
  theme: e.defaultTheme ?? "light",
@@ -3121,7 +3125,7 @@ function Pn(e) {
3121
3125
  function _() {
3122
3126
  t.value.drawerStick = !t.value.drawerStick;
3123
3127
  }
3124
- function L() {
3128
+ function M() {
3125
3129
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", l != null && (l.global.name.value = t.value.theme);
3126
3130
  }
3127
3131
  function $() {
@@ -3131,7 +3135,7 @@ function Pn(e) {
3131
3135
  h.colors.primary = (t.value.dark ?? { ...vr, ...e.defaultDarkTheme }).primary, u.colors.primary = (t.value.light ?? { ...mr, ...e.defaultLightTheme }).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
3132
3136
  }
3133
3137
  }
3134
- return S(), Te(t, () => {
3138
+ return A(), Te(t, () => {
3135
3139
  s();
3136
3140
  }), Dr = {
3137
3141
  state: t,
@@ -3139,7 +3143,7 @@ function Pn(e) {
3139
3143
  setTemporaryColor: I,
3140
3144
  toggleDrawer: C,
3141
3145
  toggleDrawerStick: _,
3142
- toggleLightDark: L,
3146
+ toggleLightDark: M,
3143
3147
  undoTemporaryColor: $
3144
3148
  }, Dr;
3145
3149
  }
@@ -3150,14 +3154,14 @@ function Mn() {
3150
3154
  function e(t) {
3151
3155
  const {
3152
3156
  items: l,
3153
- headers: S,
3157
+ headers: A,
3154
3158
  fileName: s = "data.csv",
3155
3159
  format: g = "file"
3156
3160
  } = t;
3157
3161
  if (!_e(l))
3158
3162
  return;
3159
3163
  let I = [];
3160
- S != null ? I = S == null ? void 0 : S.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3164
+ A != null ? I = A == null ? void 0 : A.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3161
3165
  header: D.title ?? D.value ?? "",
3162
3166
  itemText: D.itemText,
3163
3167
  value: D.value
@@ -3165,22 +3169,22 @@ function Mn() {
3165
3169
  var C = [];
3166
3170
  for (let D = 0; D < l.length; D++) {
3167
3171
  const i = l[D];
3168
- var _ = {}, L = [];
3172
+ var _ = {}, M = [];
3169
3173
  for (let E = 0; E < I.length; E++) {
3170
- const w = I[E];
3174
+ const b = I[E];
3171
3175
  var $ = null;
3172
- typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
3176
+ typeof b.value == "function" ? $ = b.value(i) : typeof b.value == "string" && ($ = Sr(i, b.value)), b.itemText != null ? _[b.header] = Sr($, b.itemText) : _[b.header] = $;
3173
3177
  }
3174
- C.push(_), _e(L) && L.forEach((E) => {
3178
+ C.push(_), _e(M) && M.forEach((E) => {
3175
3179
  C.push(E);
3176
- }), L = [];
3180
+ }), M = [];
3177
3181
  }
3178
3182
  var d = [];
3179
3183
  if (d.push(I.map((D) => D.header).toString()), C.forEach((D) => {
3180
3184
  let i = [];
3181
3185
  I.forEach(function(E) {
3182
- var w = D[E.header];
3183
- i.push(w ?? "");
3186
+ var b = D[E.header];
3187
+ i.push(b ?? "");
3184
3188
  }), d.push(i.join(","));
3185
3189
  }), g == "array")
3186
3190
  return d;
@@ -3189,9 +3193,9 @@ function Mn() {
3189
3193
  if (window.navigator.msSaveOrOpenBlob)
3190
3194
  window.navigator.msSaveOrOpenBlob(u, s);
3191
3195
  else {
3192
- var r = document.createElement("a"), y = URL.createObjectURL(u);
3193
- r.href = y, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3194
- document.body.removeChild(r), window.URL.revokeObjectURL(y);
3196
+ var r = document.createElement("a"), w = URL.createObjectURL(u);
3197
+ r.href = w, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3198
+ document.body.removeChild(r), window.URL.revokeObjectURL(w);
3195
3199
  }, 0);
3196
3200
  }
3197
3201
  }
@@ -3208,36 +3212,36 @@ function Ln(e) {
3208
3212
  function l() {
3209
3213
  return s().startOf("day").toUTC().toString() ?? "";
3210
3214
  }
3211
- function S() {
3215
+ function A() {
3212
3216
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3213
3217
  }
3214
- function s(_, L) {
3215
- return _ == null ? t().setZone(e.getTimeZone()) : L ? he.fromFormat(_, L, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3218
+ function s(_, M) {
3219
+ return _ == null ? t().setZone(e.getTimeZone()) : M ? he.fromFormat(_, M, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3216
3220
  }
3217
- function g(_, L, $) {
3221
+ function g(_, M, $) {
3218
3222
  if (_ == null) {
3219
3223
  const h = t().setZone(e.getTimeZone());
3220
- return L ? h.toFormat(L) : h.toString();
3224
+ return M ? h.toFormat(M) : h.toString();
3221
3225
  }
3222
3226
  if (_ == "Invalid DateTime")
3223
3227
  return "";
3224
3228
  const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3225
- return L ? d.toFormat(L) : d == null ? void 0 : d.toString();
3229
+ return M ? d.toFormat(M) : d == null ? void 0 : d.toString();
3226
3230
  }
3227
- function I(_, L) {
3228
- return _ == null ? t() : L ? he.fromFormat(_, L) : he.fromISO(_);
3231
+ function I(_, M) {
3232
+ return _ == null ? t() : M ? he.fromFormat(_, M) : he.fromISO(_);
3229
3233
  }
3230
- function C(_, L, $) {
3234
+ function C(_, M, $) {
3231
3235
  if (_ == null)
3232
- return L ? t().toFormat(L) : t().toString();
3236
+ return M ? t().toFormat(M) : t().toString();
3233
3237
  {
3234
3238
  const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
3235
- return L ? d.toFormat(L) : d.toString();
3239
+ return M ? d.toFormat(M) : d.toString();
3236
3240
  }
3237
3241
  }
3238
3242
  return xr = {
3239
3243
  getToday: l,
3240
- getTomorrow: S,
3244
+ getTomorrow: A,
3241
3245
  tzDate: s,
3242
3246
  tzString: g,
3243
3247
  utcDate: I,
@@ -3250,7 +3254,7 @@ function Sa() {
3250
3254
  }
3251
3255
  function Nn(e) {
3252
3256
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3253
- function S() {
3257
+ function A() {
3254
3258
  t.value = !0;
3255
3259
  }
3256
3260
  function s() {
@@ -3270,20 +3274,20 @@ function Nn(e) {
3270
3274
  return Promise.resolve("no demo data available for this api");
3271
3275
  const h = d.id ?? ((r = d.data) == null ? void 0 : r.id), u = g(d);
3272
3276
  if (h != null && (u == null ? void 0 : u.data) != null) {
3273
- const y = u.data.findIndex((D) => D.id == h);
3274
- y >= 0 && u.data.splice(y, 1);
3277
+ const w = u.data.findIndex((D) => D.id == h);
3278
+ w >= 0 && u.data.splice(w, 1);
3275
3279
  }
3276
- return new Promise(function(y) {
3280
+ return new Promise(function(w) {
3277
3281
  setTimeout(function() {
3278
- y(void 0);
3282
+ w(void 0);
3279
3283
  }, 200);
3280
3284
  });
3281
3285
  }
3282
3286
  function C(d) {
3283
- var y, D, i;
3287
+ var w, D, i;
3284
3288
  if (l == null)
3285
3289
  throw new Error("no demo data available for this api");
3286
- const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
3290
+ const h = d.id ?? ((w = d.data) == null ? void 0 : w.id), u = g(d);
3287
3291
  let r;
3288
3292
  return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (D = u.data) == null ? void 0 : D.find((E) => E.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((E) => {
3289
3293
  setTimeout(() => {
@@ -3308,13 +3312,13 @@ function Nn(e) {
3308
3312
  });
3309
3313
  });
3310
3314
  }
3311
- function L(d) {
3312
- var r, y;
3315
+ function M(d) {
3316
+ var r, w;
3313
3317
  if (l == null)
3314
3318
  throw new Error("no demo data available for this api");
3315
3319
  const h = g(d);
3316
3320
  let u;
3317
- return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((D) => {
3321
+ return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (w = h.data) == null || w.push(u))), u == null ? Promise.resolve(void 0) : new Promise((D) => {
3318
3322
  setTimeout(() => {
3319
3323
  D({
3320
3324
  data: u
@@ -3323,7 +3327,7 @@ function Nn(e) {
3323
3327
  });
3324
3328
  }
3325
3329
  function $(d) {
3326
- var r, y;
3330
+ var r, w;
3327
3331
  if (l == null)
3328
3332
  throw new Error("no demo data available for this api");
3329
3333
  const h = g(d);
@@ -3333,7 +3337,7 @@ function Nn(e) {
3333
3337
  u = h.patchAction(h.data, d.data);
3334
3338
  else if (d.data.id != null) {
3335
3339
  const D = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3336
- D != null && D > -1 && ((y = h.data) == null || y.splice(D, 1, d.data)), u = d.data;
3340
+ D != null && D > -1 && ((w = h.data) == null || w.splice(D, 1, d.data)), u = d.data;
3337
3341
  }
3338
3342
  }
3339
3343
  return u == null ? Promise.resolve(void 0) : new Promise((D) => {
@@ -3347,12 +3351,12 @@ function Nn(e) {
3347
3351
  return Tr = {
3348
3352
  endDemo: s,
3349
3353
  isDemoing: t,
3350
- startDemo: S,
3354
+ startDemo: A,
3351
3355
  data: l,
3352
3356
  deleteItem: I,
3353
3357
  get: C,
3354
3358
  getAll: _,
3355
- post: L,
3359
+ post: M,
3356
3360
  patch: $
3357
3361
  }, Tr;
3358
3362
  }
@@ -3360,9 +3364,9 @@ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3360
3364
  function Aa(e) {
3361
3365
  function t(l) {
3362
3366
  var s;
3363
- const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3364
- if (S)
3365
- document.title = S.meta.title;
3367
+ const A = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3368
+ if (A)
3369
+ document.title = A.meta.title;
3366
3370
  else {
3367
3371
  const g = Rn.VITE_NODE_ENV;
3368
3372
  let I = "";
@@ -3378,43 +3382,43 @@ function Ea() {
3378
3382
  return _r;
3379
3383
  }
3380
3384
  function Un(e) {
3381
- function t(f, A, j) {
3382
- return f ? an(f) ? j ?? "" : e.dates.tzString(f, A) : j ?? f ?? "";
3385
+ function t(f, y, J) {
3386
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, y) : J ?? f ?? "";
3383
3387
  }
3384
3388
  function l(f) {
3385
3389
  if (!f)
3386
3390
  return "";
3387
3391
  if (typeof f != "object")
3388
3392
  return f;
3389
- var A = "";
3390
- return f.companyAccount != null && (A = f.companyAccount.companyName + " | "), f.addressLineOne != null && (A = A + f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + ", "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A;
3393
+ var y = "";
3394
+ return f.companyAccount != null && (y = f.companyAccount.companyName + " | "), f.addressLineOne != null && (y = y + f.addressLineOne + " "), f.streetNumber != null && (y = y + f.streetNumber + " "), f.streetName != null && (y = y + f.streetName + ", "), f.suburb != null && (y = y + f.suburb + " "), f.state != null && (y = y + f.state + " "), f.postcode != null && (y = y + f.postcode), y;
3391
3395
  }
3392
- function S(f) {
3396
+ function A(f) {
3393
3397
  if (typeof f != "number")
3394
3398
  return f;
3395
- var A = new Intl.NumberFormat("en-US", {
3399
+ var y = new Intl.NumberFormat("en-US", {
3396
3400
  style: "currency",
3397
3401
  currency: "AUD",
3398
3402
  minimumFractionDigits: 2
3399
3403
  });
3400
- return A.format(f);
3404
+ return y.format(f);
3401
3405
  }
3402
- function s(f, A) {
3403
- return t(f, "ccc | d LLL", A);
3406
+ function s(f, y) {
3407
+ return t(f, "ccc | d LLL", y);
3404
3408
  }
3405
- function g(f, A) {
3406
- return t(f, "d LLL", A);
3409
+ function g(f, y) {
3410
+ return t(f, "d LLL", y);
3407
3411
  }
3408
- function I(f, A) {
3409
- return t(f, "ccc", A);
3412
+ function I(f, y) {
3413
+ return t(f, "ccc", y);
3410
3414
  }
3411
- function C(f, A) {
3412
- return t(f, "ccc dd LLL yyyy", A);
3415
+ function C(f, y) {
3416
+ return t(f, "ccc dd LLL yyyy", y);
3413
3417
  }
3414
- function _(f, A) {
3415
- return t(f, "ccc dd LLL @ hh:mm a", A);
3418
+ function _(f, y) {
3419
+ return t(f, "ccc dd LLL @ hh:mm a", y);
3416
3420
  }
3417
- function L(f) {
3421
+ function M(f) {
3418
3422
  return new Intl.NumberFormat().format(f);
3419
3423
  }
3420
3424
  function $(f) {
@@ -3423,11 +3427,11 @@ function Un(e) {
3423
3427
  function d(f) {
3424
3428
  if (f == 0)
3425
3429
  return "";
3426
- var A = new Intl.NumberFormat().format(f);
3427
- return f > 0 ? "+" + A : A;
3430
+ var y = new Intl.NumberFormat().format(f);
3431
+ return f > 0 ? "+" + y : y;
3428
3432
  }
3429
- function h(f, A) {
3430
- return e.dates.utcString(f, A);
3433
+ function h(f, y) {
3434
+ return e.dates.utcString(f, y);
3431
3435
  }
3432
3436
  function u(f) {
3433
3437
  return rt(f, !1);
@@ -3437,92 +3441,92 @@ function Un(e) {
3437
3441
  return "";
3438
3442
  if (typeof f != "object")
3439
3443
  return f;
3440
- var A = "";
3441
- return f.addressLineOne != null && (A = f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + " "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A = A.replaceAll(",", " "), A;
3444
+ var y = "";
3445
+ return f.addressLineOne != null && (y = f.addressLineOne + " "), f.streetNumber != null && (y = y + f.streetNumber + " "), f.streetName != null && (y = y + f.streetName + " "), f.suburb != null && (y = y + f.suburb + " "), f.state != null && (y = y + f.state + " "), f.postcode != null && (y = y + f.postcode), y = y.replaceAll(",", " "), y;
3442
3446
  }
3443
- function y(f, A) {
3444
- return t(f, "ddd DD MMM YYYY", A);
3447
+ function w(f, y) {
3448
+ return t(f, "ddd DD MMM YYYY", y);
3445
3449
  }
3446
- function D(f, A) {
3447
- return t(f, "ccc dd LLL yyyy hh:mm a", A);
3450
+ function D(f, y) {
3451
+ return t(f, "ccc dd LLL yyyy hh:mm a", y);
3448
3452
  }
3449
3453
  function i(f) {
3450
- var A = new Intl.NumberFormat("en-US", {
3454
+ var y = new Intl.NumberFormat("en-US", {
3451
3455
  style: "percent",
3452
3456
  minimumFractionDigits: 2
3453
3457
  });
3454
- return A.format(f);
3458
+ return y.format(f);
3455
3459
  }
3456
3460
  function E(f) {
3457
3461
  return f.replaceAll(",", " ");
3458
3462
  }
3459
- function w(f, A) {
3460
- return t(f, "dd LLL yyyy", A);
3463
+ function b(f, y) {
3464
+ return t(f, "dd LLL yyyy", y);
3461
3465
  }
3462
- function N(f, A) {
3463
- return t(f, "dd LLL yyyy hh:mm a", A);
3466
+ function N(f, y) {
3467
+ return t(f, "dd LLL yyyy hh:mm a", y);
3464
3468
  }
3465
- function b(f, A) {
3466
- return t(f, "hh:mm a", A);
3469
+ function S(f, y) {
3470
+ return t(f, "hh:mm a", y);
3467
3471
  }
3468
3472
  function T(f) {
3469
3473
  return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
3470
3474
  }
3471
3475
  const x = {
3472
3476
  toCompanyNameAndLocationLine: l,
3473
- toCurrency: S,
3477
+ toCurrency: A,
3474
3478
  toDayDate: s,
3475
3479
  toDayMonth: g,
3476
3480
  toDayOfWeek: I,
3477
3481
  toDayShortDate: C,
3478
3482
  toDayShortDateAndTime: _,
3479
- toDisplayNumber: L,
3483
+ toDisplayNumber: M,
3480
3484
  toDisplayNumberOver: $,
3481
3485
  toDisplayNumberSigned: d,
3482
3486
  toFormat: h,
3483
3487
  toLocationLine: u,
3484
3488
  toLocationLineNoCommas: r,
3485
- toLongDate: y,
3489
+ toLongDate: w,
3486
3490
  toLongDateAndTime: D,
3487
3491
  toPercent: i,
3488
3492
  toPrettyCSV: E,
3489
- toShortDate: w,
3493
+ toShortDate: b,
3490
3494
  toShortDateAndTime: N,
3491
- toTime: b,
3495
+ toTime: S,
3492
3496
  toTimeOfDay: T
3493
3497
  };
3494
- function P(f) {
3498
+ function L(f) {
3495
3499
  if (f != null) {
3496
- let A = f;
3497
- if (A != null && x[A] != null)
3498
- return x[A];
3500
+ let y = f;
3501
+ if (y != null && x[y] != null)
3502
+ return x[y];
3499
3503
  }
3500
- return (A) => A;
3504
+ return (y) => y;
3501
3505
  }
3502
3506
  return _r = {
3503
- findFilter: P,
3507
+ findFilter: L,
3504
3508
  ...x
3505
3509
  }, _r;
3506
3510
  }
3507
3511
  function Bn(e, t) {
3508
- const l = z(!1), S = Yt(e);
3512
+ const l = z(!1), A = Yt(e);
3509
3513
  let s = g(Q(e));
3510
- (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (C) => {
3514
+ (t == null ? void 0 : t.useTracker) !== !1 && Te(A, (C) => {
3511
3515
  l.value = g(C) != s;
3512
3516
  }, { deep: !0 });
3513
3517
  function g(C) {
3514
3518
  const _ = Nr(C);
3515
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
3516
- delete _[L];
3519
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((M) => {
3520
+ delete _[M];
3517
3521
  }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
3518
3522
  t.propsToTrack.some((d) => d == $) || delete _[$];
3519
3523
  })), JSON.stringify(_);
3520
3524
  }
3521
3525
  function I() {
3522
- s = g(Q(S)), l.value = !1;
3526
+ s = g(Q(A)), l.value = !1;
3523
3527
  }
3524
3528
  return {
3525
- asyncItem: S,
3529
+ asyncItem: A,
3526
3530
  isChanged: l,
3527
3531
  restartTracker: I
3528
3532
  };
@@ -3532,19 +3536,19 @@ function Ia(e, t) {
3532
3536
  const {
3533
3537
  // useBladeSrc = true,
3534
3538
  useRouteSrc: l = !0
3535
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", I = Lr(), C = et(), _ = Q(e.proxyQueryKey), L = ee(() => {
3539
+ } = t ?? {}, A = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", I = Lr(), C = et(), _ = Q(e.proxyQueryKey), M = ee(() => {
3536
3540
  var W;
3537
3541
  return Q(e.proxyID) ?? (_ != null ? (W = C == null ? void 0 : C.query) == null ? void 0 : W[_] : void 0);
3538
- }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: D, saveItem: i } = ut({
3542
+ }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: w, restoreItem: D, saveItem: i } = ut({
3539
3543
  nav: g,
3540
3544
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3541
- proxyID: L.value,
3545
+ proxyID: M.value,
3542
3546
  store: Le({
3543
- storeMode: S,
3547
+ storeMode: A,
3544
3548
  storageMode: s,
3545
3549
  nav: g
3546
3550
  })
3547
- }), E = ee(() => e.errorMsg ?? d.value), w = ee(() => e.loadingMsg ?? h.value), N = ee(() => w.value != null), b = z(e.itemID ?? (l ? (Z = C == null ? void 0 : C.params) == null ? void 0 : Z.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), x = Ne(!1), P = ee(() => {
3551
+ }), E = ee(() => e.errorMsg ?? d.value), b = ee(() => e.loadingMsg ?? h.value), N = ee(() => b.value != null), S = z(e.itemID ?? (l ? (Z = C == null ? void 0 : C.params) == null ? void 0 : Z.id : void 0)), T = z(S.value == "new" ? "new" : e.startEditing ? "edit" : "view"), x = Ne(!1), L = ee(() => {
3548
3552
  let W = e.params != null ? { ...e.params } : {};
3549
3553
  return e.includeDetails != null && (W.includeDetails = e.includeDetails), W;
3550
3554
  }), f = ee(() => {
@@ -3552,12 +3556,12 @@ function Ia(e, t) {
3552
3556
  return !1;
3553
3557
  const W = Q($);
3554
3558
  return e.onCanDelete != null ? e.onCanDelete(W) : (W == null ? void 0 : W.isInactive) !== !0;
3555
- }), A = ee(() => {
3559
+ }), y = ee(() => {
3556
3560
  if (T.value == "new")
3557
3561
  return !1;
3558
3562
  const W = Q($);
3559
3563
  return e.onCanEdit != null ? e.onCanEdit(W) : !0;
3560
- }), j = ee(() => {
3564
+ }), J = ee(() => {
3561
3565
  if (T.value == "new")
3562
3566
  return !1;
3563
3567
  const W = Q($);
@@ -3613,10 +3617,10 @@ function Ia(e, t) {
3613
3617
  else {
3614
3618
  const ne = {
3615
3619
  additionalUrl: e.additionalUrl,
3616
- id: b.value,
3620
+ id: S.value,
3617
3621
  nav: g,
3618
- proxyID: L.value,
3619
- params: P.value,
3622
+ proxyID: M.value,
3623
+ params: L.value,
3620
3624
  //props.params,
3621
3625
  // ...(useBladeSrc ? bladeData.value : {}),
3622
3626
  refresh: (W == null ? void 0 : W.deepRefresh) ?? !1,
@@ -3626,7 +3630,7 @@ function Ia(e, t) {
3626
3630
  if (e.isSingle === !0)
3627
3631
  ne.id === "new" ? $.value = e.onGetNew ? e.onGetNew() : {} : $.value = await r(ne);
3628
3632
  else {
3629
- const ce = await y(ne);
3633
+ const ce = await w(ne);
3630
3634
  $.value = ce.data;
3631
3635
  }
3632
3636
  }
@@ -3648,7 +3652,7 @@ function Ia(e, t) {
3648
3652
  onGetSaveAsync: ge,
3649
3653
  onSaveAsync: Be,
3650
3654
  onSaveSuccessAsync: $e,
3651
- proxyID: L.value,
3655
+ proxyID: M.value,
3652
3656
  // ...params.getOptions(),
3653
3657
  // ...(useBladeSrc ? bladeData.value : {}),
3654
3658
  mode: T.value
@@ -3672,12 +3676,12 @@ function Ia(e, t) {
3672
3676
  isChanged: re,
3673
3677
  isDeletable: f,
3674
3678
  isEditing: ee(() => T.value == "new" || T.value == "edit"),
3675
- isEditable: A,
3679
+ isEditable: y,
3676
3680
  isLoading: N,
3677
3681
  isNew: ee(() => T.value == "new"),
3678
- isRestorable: j,
3682
+ isRestorable: J,
3679
3683
  isSaveable: X,
3680
- loadingMsg: w,
3684
+ loadingMsg: b,
3681
3685
  mode: T,
3682
3686
  refresh: Y,
3683
3687
  restoreItem: G,
@@ -3703,7 +3707,7 @@ function $n(e) {
3703
3707
  displayName: h.displayName ?? e.getDisplayName(h),
3704
3708
  ...h
3705
3709
  }));
3706
- function S(h) {
3710
+ function A(h) {
3707
3711
  var u;
3708
3712
  return (u = C(h)) == null ? void 0 : u.archiveName;
3709
3713
  }
@@ -3721,8 +3725,8 @@ function $n(e) {
3721
3725
  }
3722
3726
  function C(h) {
3723
3727
  return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3724
- var y;
3725
- return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((D) => D == h));
3728
+ var w;
3729
+ return r.name == h || r.singleName == h || ((w = r.aliases) == null ? void 0 : w.some((D) => D == h));
3726
3730
  }) ?? null;
3727
3731
  }
3728
3732
  function _(h) {
@@ -3732,7 +3736,7 @@ function $n(e) {
3732
3736
  let r = gn(u.microservice ?? "default") ?? "";
3733
3737
  return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3734
3738
  }
3735
- function L(h) {
3739
+ function M(h) {
3736
3740
  const u = C(h);
3737
3741
  if ((u == null ? void 0 : u.singleName) != null)
3738
3742
  return u.singleName;
@@ -3758,26 +3762,26 @@ function $n(e) {
3758
3762
  backgroundName: Yr,
3759
3763
  hesitate: gr,
3760
3764
  navigationItems: l,
3761
- findArchiveName: S,
3765
+ findArchiveName: A,
3762
3766
  findCacheHours: s,
3763
3767
  findDisplay: g,
3764
3768
  findIcon: I,
3765
3769
  findItem: C,
3766
3770
  findStoreName: $,
3767
3771
  findPath: _,
3768
- findSingleDisplay: L,
3772
+ findSingleDisplay: M,
3769
3773
  updateNavigationProperties: d
3770
3774
  }, Cr;
3771
3775
  }
3772
3776
  function Da(e, t, l) {
3773
3777
  var He, Ve;
3774
- const S = Mn(), s = it(), g = Lr(), I = et(), { bladeData: C } = Cn({}), _ = e.useBladeSrc ?? !0, L = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), y = ee(() => Kt([
3778
+ const A = Mn(), s = it(), g = Lr(), I = et(), { bladeData: C } = Cn({}), _ = e.useBladeSrc ?? !0, M = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), w = ee(() => Kt([
3775
3779
  ...u.filter((U) => U.name != null).map((U) => U.name),
3776
3780
  ...e.defaultFilters ?? [],
3777
3781
  ...r.value
3778
- ]).value), D = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3782
+ ]).value), D = z((e.defaultFilters ?? []).map((U) => w.value.indexOf(U)));
3779
3783
  let i = z([...D.value]);
3780
- const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), w = z(N());
3784
+ const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), b = z(N());
3781
3785
  function N() {
3782
3786
  var U, K;
3783
3787
  if (_) {
@@ -3785,21 +3789,21 @@ function Da(e, t, l) {
3785
3789
  if (V != null)
3786
3790
  return Number.parseInt(V);
3787
3791
  }
3788
- if (L) {
3792
+ if (M) {
3789
3793
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.page;
3790
3794
  if (V != null)
3791
3795
  return Number.parseInt(typeof V == "string" ? V : V.toString());
3792
3796
  }
3793
3797
  return 1;
3794
3798
  }
3795
- const b = ee(() => {
3799
+ const S = ee(() => {
3796
3800
  var U, K;
3797
3801
  if (_) {
3798
3802
  const V = (U = C.value) == null ? void 0 : U.proxyID;
3799
3803
  if (V != null)
3800
3804
  return V;
3801
3805
  }
3802
- if (L) {
3806
+ if (M) {
3803
3807
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.query;
3804
3808
  if (V != null)
3805
3809
  return V;
@@ -3813,21 +3817,21 @@ function Da(e, t, l) {
3813
3817
  if (V != null)
3814
3818
  return V;
3815
3819
  }
3816
- if (L) {
3820
+ if (M) {
3817
3821
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.search;
3818
3822
  if (V != null)
3819
3823
  return V;
3820
3824
  }
3821
3825
  }
3822
- const P = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3826
+ const L = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3823
3827
  ...e.searchProps ?? [],
3824
3828
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3825
- ]), A = z([]), j = Ne([]), X = z([]);
3829
+ ]), y = z([]), J = Ne([]), X = z([]);
3826
3830
  let re;
3827
3831
  const { actionErrorMsg: ue, actionLoadingMsg: be, deleteItem: G, doAction: Y, getItem: H, getAllItems: ie, restoreItem: Z } = ut({
3828
3832
  nav: $,
3829
3833
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3830
- proxyID: b.value,
3834
+ proxyID: S.value,
3831
3835
  store: Le({
3832
3836
  storeMode: d,
3833
3837
  storageMode: h,
@@ -3836,7 +3840,7 @@ function Da(e, t, l) {
3836
3840
  }), W = ee(() => e.errorMsg ?? ue.value), ne = ee(() => e.loadingMsg ?? be.value), ce = ee(() => ne.value != null), se = Ne(!1), ge = Ne(e.showSearch ?? !0), Be = z(0), $e = ee(() => {
3837
3841
  let U, K = [];
3838
3842
  D.value.forEach((O) => {
3839
- const de = y.value[O], ye = u.find((De) => De.name == de);
3843
+ const de = w.value[O], ye = u.find((De) => De.name == de);
3840
3844
  ye != null ? U = U != null ? `${U}ANDALSO${ye.filterFunction()}` : ye.filterFunction() : K.push(de);
3841
3845
  });
3842
3846
  const V = {};
@@ -3844,8 +3848,8 @@ function Da(e, t, l) {
3844
3848
  }), Fe = ee(() => {
3845
3849
  var K;
3846
3850
  let U = e.params != null ? { ...e.params } : {};
3847
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), P.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3848
- }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => P.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3851
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (b.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3852
+ }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3849
3853
  let U = new Array();
3850
3854
  return Ce.value.filter((V) => V.sublevel != null).forEach((V) => {
3851
3855
  let O = U.find((de) => de.position == V.sublevel);
@@ -3877,14 +3881,14 @@ function Da(e, t, l) {
3877
3881
  onDeleteAsync: V
3878
3882
  } = { ...e }, O = Q(U), de = O.id, ye = (De) => {
3879
3883
  if (De != null) {
3880
- let Ae = A.value.findIndex((oe) => oe.id == De);
3881
- if (Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3884
+ let Ae = y.value.findIndex((oe) => oe.id == De);
3885
+ if (Ae > -1 && y.value.splice(Ae, 1), e.items != null) {
3882
3886
  let oe = e.items.findIndex((Me) => Me.id == De);
3883
3887
  oe > -1 && e.items.splice(oe, 1);
3884
3888
  }
3885
3889
  } else {
3886
- let Ae = A.value.findIndex((oe) => oe === O);
3887
- if (Ae == -1 && (Ae = A.value.findIndex((oe) => oe == O)), Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3890
+ let Ae = y.value.findIndex((oe) => oe === O);
3891
+ if (Ae == -1 && (Ae = y.value.findIndex((oe) => oe == O)), Ae > -1 && y.value.splice(Ae, 1), e.items != null) {
3888
3892
  let oe = e.items.findIndex((Me) => Me === O);
3889
3893
  oe == -1 && (oe = e.items.findIndex((Me) => Me == O)), oe > -1 && e.items.splice(oe, 1);
3890
3894
  }
@@ -3897,7 +3901,7 @@ function Da(e, t, l) {
3897
3901
  onCanDeleteAsync: e.onCanDeleteAsync,
3898
3902
  onDeleteAsync: V,
3899
3903
  onDeleteSuccessAsync: async () => (ye(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3900
- proxyID: b.value,
3904
+ proxyID: S.value,
3901
3905
  // ...(useBladeSrc ? bladeData.value : {}),
3902
3906
  requireConfirmation: !0
3903
3907
  }), t && t("deleted", U);
@@ -3910,22 +3914,22 @@ function Da(e, t, l) {
3910
3914
  onCanRestoreAsync: e.onCanRestoreAsync,
3911
3915
  onRestoreAsync: e.onRestoreAsync,
3912
3916
  onRestoreSuccessAsync: e.onRestoreSuccessAsync,
3913
- proxyID: b.value
3917
+ proxyID: S.value
3914
3918
  // ...(useBladeSrc ? bladeData.value : {})
3915
3919
  });
3916
3920
  }
3917
3921
  function ke() {
3918
3922
  Y(() => {
3919
- S.exportToCSV(Ce.value, j.value);
3923
+ A.exportToCSV(Ce.value, J.value);
3920
3924
  }, { loadingMsg: "Exporting to CSV" });
3921
3925
  }
3922
3926
  function Pe() {
3923
- let U = Q(A);
3927
+ let U = Q(y);
3924
3928
  if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3925
3929
  let K = [...f.value];
3926
3930
  e.itemText && K.push(e.itemText), _e(K) && (U = U.filter((V) => dn(V, T.value, K)));
3927
3931
  }
3928
- j.value = U;
3932
+ J.value = U;
3929
3933
  }
3930
3934
  function qe() {
3931
3935
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
@@ -3933,7 +3937,7 @@ function Da(e, t, l) {
3933
3937
  }
3934
3938
  async function Ie(U) {
3935
3939
  if (se.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (ge.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3936
- A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3940
+ y.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3937
3941
  return;
3938
3942
  }
3939
3943
  const K = {
@@ -3943,7 +3947,7 @@ function Da(e, t, l) {
3943
3947
  params: Fe.value,
3944
3948
  //params,
3945
3949
  // params: params.getParamOptions(),
3946
- proxyID: b.value,
3950
+ proxyID: S.value,
3947
3951
  // ...(useBladeSrc ? bladeData.value : {}),
3948
3952
  // ...(props.useInterEvents ? eventData : {}),
3949
3953
  refresh: (U == null ? void 0 : U.deepRefresh) ?? !1,
@@ -3951,16 +3955,17 @@ function Da(e, t, l) {
3951
3955
  onGetSuccessAsync: e.onGetSuccessAsync
3952
3956
  };
3953
3957
  if (e.isSingle === !0)
3954
- K.id === "new" ? A.value = [] : A.value = await H(K);
3958
+ K.id === "new" ? y.value = [] : y.value = await H(K);
3955
3959
  else {
3956
3960
  let V = await ie({
3957
3961
  ...K,
3958
3962
  onGetSuccessAsync: async (O, de) => {
3963
+ console.log("get suc"), console.log(O);
3959
3964
  let ye = O == null ? void 0 : O.data;
3960
3965
  return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ye = await e.onGetSuccessAsync(ye, de)), ye;
3961
3966
  }
3962
3967
  });
3963
- A.value = V, i.value = [...D.value];
3968
+ console.log("list res"), console.log(V), y.value = V, i.value = [...D.value];
3964
3969
  }
3965
3970
  Pe();
3966
3971
  }
@@ -3987,27 +3992,27 @@ function Da(e, t, l) {
3987
3992
  }
3988
3993
  return qe(), Qt([T], () => {
3989
3994
  Pe();
3990
- }, { debounce: 500, maxWait: 500 }), Te([P, w], async () => {
3995
+ }, { debounce: 500, maxWait: 500 }), Te([L, b], async () => {
3991
3996
  await Ie();
3992
3997
  }), Te([W, () => e.errorMsg], ([U, K]) => {
3993
3998
  se.value = U != null || K != null;
3994
3999
  }), Te(() => e.refreshToggle, () => {
3995
4000
  Ie({ deepRefresh: !0 });
3996
- }), Or([A, () => e.items], () => {
4001
+ }), Or([y, () => e.items], () => {
3997
4002
  Pe();
3998
4003
  }), Xr(async () => {
3999
4004
  var U;
4000
4005
  e.eager == !0 && await Ie({ deepRefresh: ((U = I == null ? void 0 : I.params) == null ? void 0 : U.refresh) == "true" });
4001
4006
  }), {
4002
4007
  add: Se,
4003
- asyncItems: A,
4004
- currentPage: w,
4008
+ asyncItems: y,
4009
+ currentPage: b,
4005
4010
  deleteItem: ir,
4006
4011
  displayHeaders: ur,
4007
4012
  errorMsg: W,
4008
4013
  exportToCSV: ke,
4009
- filteredItems: j,
4010
- filters: y,
4014
+ filteredItems: J,
4015
+ filters: w,
4011
4016
  filtersChanged: E,
4012
4017
  headerOptions: X,
4013
4018
  isDeletable: tr,
@@ -4021,7 +4026,7 @@ function Da(e, t, l) {
4021
4026
  selectItem: je,
4022
4027
  // serverFilters,
4023
4028
  showError: se,
4024
- showInactive: P,
4029
+ showInactive: L,
4025
4030
  showSearch: ge,
4026
4031
  subtitleOptions: ar,
4027
4032
  tableHeaders: Ce,
@@ -4041,29 +4046,29 @@ function Fn(e) {
4041
4046
  }
4042
4047
  function xa() {
4043
4048
  const e = Lr(), t = it(), l = In();
4044
- let S = e.getRoutes();
4049
+ let A = e.getRoutes();
4045
4050
  return {
4046
4051
  ...We,
4047
4052
  sidebarNavItems: ee(() => {
4048
4053
  var g;
4049
- S = S.filter((I) => I.meta != null && I.meta.menuGroup != null);
4054
+ A = A.filter((I) => I.meta != null && I.meta.menuGroup != null);
4050
4055
  const s = [];
4051
- return S.forEach((I) => {
4056
+ return A.forEach((I) => {
4052
4057
  var d;
4053
- const C = We.groupOptions.value.find((h) => h.displayName == I.meta.menuGroup), _ = t.findItem(I.meta.nav), L = I.meta;
4054
- let $ = s.find((h) => h.displayName == L.menuGroup);
4058
+ const C = We.groupOptions.value.find((h) => h.displayName == I.meta.menuGroup), _ = t.findItem(I.meta.nav), M = I.meta;
4059
+ let $ = s.find((h) => h.displayName == M.menuGroup);
4055
4060
  $ == null && ($ = {
4056
- displayName: L.menuGroup,
4057
- icon: (C == null ? void 0 : C.icon) ?? (L == null ? void 0 : L.icon) ?? (_ == null ? void 0 : _.icon),
4061
+ displayName: M.menuGroup,
4062
+ icon: (C == null ? void 0 : C.icon) ?? (M == null ? void 0 : M.icon) ?? (_ == null ? void 0 : _.icon),
4058
4063
  isGroup: !0,
4059
4064
  items: []
4060
4065
  }, s.push($)), (d = $.items) == null || d.push({
4061
- displayName: (L == null ? void 0 : L.displayName) ?? t.findDisplay(_ ?? void 0),
4062
- icon: (L == null ? void 0 : L.icon) ?? t.findIcon(_ ?? void 0),
4063
- permissions: (L == null ? void 0 : L.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4064
- requiresAuth: (L == null ? void 0 : L.requiresAuth) !== !1,
4065
- subscriptions: (L == null ? void 0 : L.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4066
- subFilters: (L == null ? void 0 : L.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4066
+ displayName: (M == null ? void 0 : M.displayName) ?? t.findDisplay(_ ?? void 0),
4067
+ icon: (M == null ? void 0 : M.icon) ?? t.findIcon(_ ?? void 0),
4068
+ permissions: (M == null ? void 0 : M.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4069
+ requiresAuth: (M == null ? void 0 : M.requiresAuth) !== !1,
4070
+ subscriptions: (M == null ? void 0 : M.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4071
+ subFilters: (M == null ? void 0 : M.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4067
4072
  routeName: I.name
4068
4073
  });
4069
4074
  }), s.forEach((I) => {
@@ -4081,8 +4086,8 @@ function kn(e) {
4081
4086
  function t(l) {
4082
4087
  if (!l)
4083
4088
  return {};
4084
- let S = l;
4085
- return e.presets[S] ?? {};
4089
+ let A = l;
4090
+ return e.presets[A] ?? {};
4086
4091
  }
4087
4092
  return Pr = {
4088
4093
  usePresets: t
@@ -4105,7 +4110,7 @@ function Gn() {
4105
4110
  var I;
4106
4111
  (I = Qr.value) == null || I.prompt(), wr.value = !1;
4107
4112
  }
4108
- function S() {
4113
+ function A() {
4109
4114
  return !!window.matchMedia("(display-mode: standalone)").matches;
4110
4115
  }
4111
4116
  function s(I) {
@@ -4120,7 +4125,7 @@ function Gn() {
4120
4125
  canInstallApp: wr,
4121
4126
  canUpdateApp: br,
4122
4127
  installApp: l,
4123
- isInstalled: S,
4128
+ isInstalled: A,
4124
4129
  updateApp: g
4125
4130
  }, Mr;
4126
4131
  }
@@ -4133,8 +4138,8 @@ function Pa(e) {
4133
4138
  install(t, l) {
4134
4139
  var _;
4135
4140
  console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), yn(e.urls), Pn(e);
4136
- const S = Nn(), s = $n(e);
4137
- kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4141
+ const A = Nn(), s = $n(e);
4142
+ kn(e), (_ = e.auth).demo ?? (_.demo = A), e.auth.getAuthItem = s.findItem;
4138
4143
  const g = Dn(e.auth);
4139
4144
  Fn(e.menu);
4140
4145
  const I = En({