bt-core-app 1.4.67 → 1.4.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as _e, toRef as Zt, onMounted as Or } from "vue";
2
- import { watchArray as pr, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Wr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
3
- import { defineStore as et } from "pinia";
1
+ import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
2
+ import { watchArray as Or, useStorage as Zt, useEventListener as he, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
3
+ import { defineStore as pr } from "pinia";
4
4
  import { DateTime as de } from "luxon";
5
- import { useRouter as Mr, useRoute as rt } from "vue-router";
6
- function pt(e) {
7
- return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, en);
5
+ import { useRouter as Mr, useRoute as et } from "vue-router";
6
+ function Ot(e) {
7
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
8
8
  }
9
- function en(e) {
9
+ function pt(e) {
10
10
  const t = Math.random() * 16 | 0;
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
- function rn(e) {
13
+ function en(e) {
14
14
  const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
15
15
  function x(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
18
18
  function P(d) {
19
19
  const h = {
20
- id: pt(),
20
+ id: Ot(),
21
21
  msg: d ?? "Loading"
22
22
  };
23
23
  return t.value.push(h), h.id;
24
24
  }
25
- function T(d) {
25
+ function _(d) {
26
26
  d != null && (S.value = d.toString());
27
27
  }
28
28
  function N() {
@@ -35,19 +35,19 @@ function rn(e) {
35
35
  let y = null;
36
36
  try {
37
37
  return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
38
- } catch (I) {
38
+ } catch (E) {
39
39
  if ((e == null ? void 0 : e.onError) != null)
40
- e.onError(I);
40
+ e.onError(E);
41
41
  else {
42
42
  if (u.throwError == !0)
43
- return I;
44
- T(u.errorMsg ?? I ?? "error");
43
+ return E;
44
+ _(u.errorMsg ?? E ?? "error");
45
45
  }
46
46
  } finally {
47
47
  x(r);
48
48
  }
49
49
  }
50
- return pr(t, (d) => {
50
+ return Or(t, (d) => {
51
51
  l.value = d.length > 0 ? d[0].msg : void 0;
52
52
  }, { deep: !0 }), {
53
53
  actionErrorMsg: S,
@@ -56,11 +56,11 @@ function rn(e) {
56
56
  clearErrors: N,
57
57
  doAction: $,
58
58
  isLoading: g,
59
- logError: T
59
+ logError: _
60
60
  };
61
61
  }
62
62
  var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63
- function tn(e) {
63
+ function rn(e) {
64
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
65
65
  }
66
66
  var Ue = function() {
@@ -78,11 +78,11 @@ var Ue = function() {
78
78
  };
79
79
  }
80
80
  if (s.length === 1) {
81
- var P = s, T = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
81
+ var P = s, _ = g.ignoreCase ? t : e, N = 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 N(T(P(d)), T(P(h)));
85
+ return N(_(P(d)), _(P(h)));
86
86
  };
87
87
  }
88
88
  const $ = { "-1": "", desc: "" };
@@ -91,10 +91,10 @@ var Ue = function() {
91
91
  } : s;
92
92
  }
93
93
  function S(s, g) {
94
- var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), T = x ? function(N, $) {
94
+ var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(N, $) {
95
95
  return x(N, $) || P(N, $);
96
96
  } : P;
97
- return T.thenBy = S, T;
97
+ return _.thenBy = S, _;
98
98
  }
99
99
  return S.firstBy = S, S;
100
100
  }();
@@ -110,18 +110,18 @@ function Be(e, t) {
110
110
  while (S.startsWith("/"));
111
111
  return `${l}/${S}`;
112
112
  }
113
- function Jn(e) {
113
+ function Zn(e) {
114
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
115
115
  }
116
- function jn(e = "blitzItExtensionExists") {
116
+ function Jn(e = "blitzItExtensionExists") {
117
117
  try {
118
118
  var t = document.getElementById(e);
119
119
  return t != null;
120
120
  } catch (l) {
121
- return console.log(on(l)), !1;
121
+ return console.log(sn(l)), !1;
122
122
  }
123
123
  }
124
- function Kn(e, t) {
124
+ function jn(e, t) {
125
125
  return [
126
126
  { lat: e.lat - t, lng: e.lng + t },
127
127
  { lat: e.lat - t, lng: e.lng - t },
@@ -129,7 +129,7 @@ function Kn(e, t) {
129
129
  { lat: e.lat + t, lng: e.lng + t }
130
130
  ];
131
131
  }
132
- function Qn(e, t) {
132
+ function Kn(e, t) {
133
133
  return [
134
134
  { lat: e.lat - t * 2, lng: e.lng + t },
135
135
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -137,7 +137,7 @@ function Qn(e, t) {
137
137
  { lat: e.lat, lng: e.lng + t }
138
138
  ];
139
139
  }
140
- function Xn(e, t) {
140
+ function Qn(e, t) {
141
141
  return [
142
142
  { lat: e.lat, lng: e.lng + t },
143
143
  { lat: e.lat, lng: e.lng - t },
@@ -145,11 +145,11 @@ function Xn(e, t) {
145
145
  { lat: e.lat + t * 2, lng: e.lng + t }
146
146
  ];
147
147
  }
148
- function On(e) {
149
- var t = tt(e, !0);
148
+ function Xn(e) {
149
+ var t = rt(e, !0);
150
150
  return t = t.toLowerCase(), t = t.replace(" victoria ", "vic"), t = t.replace(" queensland ", "qld"), t = t.replace(" new south wales ", "nsw"), t = t.replace(" northern territory ", "nt"), t = t.replace(" western australia ", "wa"), t = t.replace(" tasmania ", "tas"), t = t.replace(" south australia ", "sa"), t = t.replace(" australian captial territory ", "act"), t = t.replace(" & ", " and "), t = t.replace(" road", " rd"), t = t.replace(" street", " st"), t = t.replace(" lane", " ln"), t = t.replace(" alley", " aly"), t = t.replace(" arcade", " arc"), t = t.replace(" boulevard", " blvd"), t = t.replace(" court", " ct"), t = t.replace(" cove", " cv"), t = t.replace(" highway", " hwy"), t.replaceAll(" ", "");
151
151
  }
152
- function tt(e, t = !1) {
152
+ function rt(e, t = !1) {
153
153
  if (e == null)
154
154
  return "";
155
155
  if (typeof e != "object")
@@ -157,13 +157,13 @@ function tt(e, t = !1) {
157
157
  var l = "";
158
158
  return e.addressLineOne != null && !t && (l = e.addressLineOne + " "), e.streetNumber != null && (l = l + e.streetNumber + " "), e.streetName != null && (l = l + e.streetName + ", "), e.suburb != null && (l = l + e.suburb + " "), e.state != null && (l = l + e.state + " "), e.postcode != null && (l = l + e.postcode), l;
159
159
  }
160
- function pn(e, t, l) {
160
+ function On(e, t, l) {
161
161
  if (e) {
162
162
  var S = new Image();
163
163
  S.onload = t, S.onerror = l, S.src = e;
164
164
  }
165
165
  }
166
- async function ea(e, t = !0) {
166
+ async function pn(e, t = !0) {
167
167
  return new Promise((l, S) => {
168
168
  e == null && S("no url given");
169
169
  var s = new Image();
@@ -177,16 +177,16 @@ async function ea(e, t = !0) {
177
177
  }, e != null && (s.src = e);
178
178
  });
179
179
  }
180
- function nn(e) {
180
+ function tn(e) {
181
181
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
182
182
  }
183
- function ra(e) {
183
+ function ea(e) {
184
184
  if (e != null && typeof e == "object")
185
185
  for (var t in e)
186
186
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
187
187
  return e;
188
188
  }
189
- function an(e) {
189
+ function nn(e) {
190
190
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
191
191
  }
192
192
  const Ye = [
@@ -199,25 +199,25 @@ const Ye = [
199
199
  { value: 7, short: "sat", values: ["sat", "saturday"] },
200
200
  { value: 0, short: "always", values: ["always", null, void 0] }
201
201
  ];
202
- function ta(e) {
202
+ function ra(e) {
203
203
  if (e == null)
204
204
  return 0;
205
205
  const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
206
206
  return l.length == 0 ? 8 : Math.min(...l);
207
207
  }
208
- function na(e) {
208
+ function ta(e) {
209
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
210
210
  let l = Ye.find((S) => S.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
- function aa(e, t) {
214
+ function na(e, t) {
215
215
  if (e == null || t == null)
216
216
  return !0;
217
217
  const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
218
218
  return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
219
219
  }
220
- function la(e, t) {
220
+ function aa(e, t) {
221
221
  if (t == null)
222
222
  return e;
223
223
  let l = e ?? "";
@@ -225,28 +225,28 @@ function la(e, t) {
225
225
  let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ue.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
226
  return S.length > 0 ? S : void 0;
227
227
  }
228
- function ua(e, t) {
228
+ function la(e, t) {
229
229
  if (t == null || e == null)
230
230
  return e;
231
231
  let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.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
- function ia(e, t) {
234
+ function ua(e, t) {
235
235
  return e != null && Array.isArray(e) && e.length == t;
236
236
  }
237
- function Te(e, t = 0) {
237
+ function _e(e, t = 0) {
238
238
  return e != null && Array.isArray(e) && e.length > t;
239
239
  }
240
- function ln(e) {
240
+ function an(e) {
241
241
  return e == "0001-01-01T00:00:00Z";
242
242
  }
243
- function ca() {
243
+ function ia() {
244
244
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
245
245
  }
246
- function un() {
246
+ function ln() {
247
247
  return "0001-01-01T00:00:00Z";
248
248
  }
249
- function fa(e, t) {
249
+ function ca(e, t) {
250
250
  let l = "1", S = 0;
251
251
  if (S < t)
252
252
  do
@@ -255,11 +255,11 @@ function fa(e, t) {
255
255
  let s = Number.parseInt(l);
256
256
  return Math.round(e * s) / s;
257
257
  }
258
- function sa(e, t) {
258
+ function fa(e, t) {
259
259
  let l = e ?? "";
260
- return t != null && (cn(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((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
261
261
  }
262
- function cn(e, t) {
262
+ function un(e, t) {
263
263
  if (e == null || e.length == 0)
264
264
  return !1;
265
265
  if (!t)
@@ -275,32 +275,32 @@ function Lr(e) {
275
275
  t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
276
276
  return l;
277
277
  }
278
- function fn(e) {
278
+ function cn(e) {
279
279
  return e && Object.keys(e).sort().reduce(function(t, l) {
280
280
  let S = e[l];
281
- return t[l] = typeof S == "object" && S !== null ? fn(S) : S, t;
281
+ return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
282
282
  }, Array.isArray(e) ? [] : {});
283
283
  }
284
- function sn(e, t) {
284
+ function fn(e, t) {
285
285
  return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
286
286
  }
287
- function nt(e, t = (l) => l) {
287
+ 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 Te(l) ? [...l.reduce((S, s) => {
291
+ return _e(l) ? [...l.reduce((S, s) => {
292
292
  S.push(s);
293
- const g = nt(s, t);
294
- return Te(g) && S.push(...g), S;
293
+ const g = tt(s, t);
294
+ return _e(g) && S.push(...g), S;
295
295
  }, [])] : [];
296
296
  }
297
- function oa(e) {
297
+ function sa(e) {
298
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);
299
299
  for (let g = 0; g < l.length; g++)
300
300
  s[g] = l.charCodeAt(g);
301
301
  return new Blob([s], { type: S });
302
302
  }
303
- function on(e) {
303
+ function sn(e) {
304
304
  var t = "";
305
305
  if (e) {
306
306
  if (e.message && (t = e.message), e.response && e.response.data) {
@@ -313,11 +313,11 @@ function on(e) {
313
313
  }
314
314
  return "hmmm no error was supplied";
315
315
  }
316
- function dn() {
316
+ function on() {
317
317
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
318
- return e.length !== 7 ? dn() : e;
318
+ return e.length !== 7 ? on() : e;
319
319
  }
320
- function hn(e, t, l) {
320
+ function dn(e, t, l) {
321
321
  if (t == null)
322
322
  return !0;
323
323
  if (e == null || l == null)
@@ -325,15 +325,15 @@ function hn(e, t, l) {
325
325
  for (let s = 0; s < l.length; s++) {
326
326
  const g = l[s];
327
327
  var S = Sr(e, g);
328
- if (S != null && typeof S == "string" && sn(S, t))
328
+ if (S != null && typeof S == "string" && fn(S, t))
329
329
  return !0;
330
330
  }
331
331
  return !1;
332
332
  }
333
- function da(e) {
333
+ function oa(e) {
334
334
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
335
335
  }
336
- function ha(e = 2e3) {
336
+ function da(e = 2e3) {
337
337
  return new Promise((t) => {
338
338
  setTimeout(() => t(), e);
339
339
  });
@@ -348,16 +348,16 @@ function Sr(e, t) {
348
348
  return null;
349
349
  return s;
350
350
  }
351
- function mn(e) {
351
+ function hn(e) {
352
352
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
353
353
  }
354
- function vn(e) {
354
+ function mn(e) {
355
355
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
356
356
  }
357
357
  function Xe(e) {
358
358
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
359
359
  }
360
- var at = { exports: {} };
360
+ var nt = { exports: {} };
361
361
  /*!
362
362
  localForage -- Offline Storage, Improved
363
363
  Version 1.10.0
@@ -388,18 +388,18 @@ var at = { exports: {} };
388
388
  }
389
389
  return s[N].exports;
390
390
  }
391
- for (var P = typeof Xe == "function" && Xe, T = 0; T < g.length; T++)
392
- x(g[T]);
391
+ for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
392
+ x(g[_]);
393
393
  return x;
394
394
  }({ 1: [function(l, S, s) {
395
395
  (function(g) {
396
396
  var x = g.MutationObserver || g.WebKitMutationObserver, P;
397
397
  if (x) {
398
- var T = 0, N = new x(r), $ = g.document.createTextNode("");
398
+ var _ = 0, N = new x(r), $ = g.document.createTextNode("");
399
399
  N.observe($, {
400
400
  characterData: !0
401
401
  }), P = function() {
402
- $.data = T = ++T % 2;
402
+ $.data = _ = ++_ % 2;
403
403
  };
404
404
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
405
405
  var d = new g.MessageChannel();
@@ -408,33 +408,33 @@ var at = { exports: {} };
408
408
  };
409
409
  } else
410
410
  "document" in g && "onreadystatechange" in g.document.createElement("script") ? P = function() {
411
- var I = g.document.createElement("script");
412
- I.onreadystatechange = function() {
413
- r(), I.onreadystatechange = null, I.parentNode.removeChild(I), I = null;
414
- }, g.document.documentElement.appendChild(I);
411
+ var E = g.document.createElement("script");
412
+ E.onreadystatechange = function() {
413
+ r(), E.onreadystatechange = null, E.parentNode.removeChild(E), E = null;
414
+ }, g.document.documentElement.appendChild(E);
415
415
  } : P = function() {
416
416
  setTimeout(r, 0);
417
417
  };
418
418
  var h, u = [];
419
419
  function r() {
420
420
  h = !0;
421
- for (var I, i, E = u.length; E; ) {
422
- for (i = u, u = [], I = -1; ++I < E; )
423
- i[I]();
424
- E = u.length;
421
+ for (var E, i, I = u.length; I; ) {
422
+ for (i = u, u = [], E = -1; ++E < I; )
423
+ i[E]();
424
+ I = u.length;
425
425
  }
426
426
  h = !1;
427
427
  }
428
428
  S.exports = y;
429
- function y(I) {
430
- u.push(I) === 1 && !h && P();
429
+ function y(E) {
430
+ u.push(E) === 1 && !h && P();
431
431
  }
432
432
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
433
433
  }, {}], 2: [function(l, S, s) {
434
434
  var g = l(1);
435
435
  function x() {
436
436
  }
437
- var P = {}, T = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
437
+ var P = {}, _ = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
438
438
  S.exports = d;
439
439
  function d(b) {
440
440
  if (typeof b != "function")
@@ -443,19 +443,19 @@ var at = { exports: {} };
443
443
  }
444
444
  d.prototype.catch = function(b) {
445
445
  return this.then(null, b);
446
- }, d.prototype.then = function(b, _) {
447
- if (typeof b != "function" && this.state === N || typeof _ != "function" && this.state === T)
446
+ }, d.prototype.then = function(b, T) {
447
+ if (typeof b != "function" && this.state === N || typeof T != "function" && this.state === _)
448
448
  return this;
449
449
  var D = new this.constructor(x);
450
450
  if (this.state !== $) {
451
- var L = this.state === N ? b : _;
451
+ var L = this.state === N ? b : T;
452
452
  u(D, L, this.outcome);
453
453
  } else
454
- this.queue.push(new h(D, b, _));
454
+ this.queue.push(new h(D, b, T));
455
455
  return D;
456
456
  };
457
- function h(b, _, D) {
458
- this.promise = b, typeof _ == "function" && (this.onFulfilled = _, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
457
+ function h(b, T, D) {
458
+ this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
459
459
  }
460
460
  h.prototype.callFulfilled = function(b) {
461
461
  P.resolve(this.promise, b);
@@ -466,44 +466,44 @@ var at = { exports: {} };
466
466
  }, h.prototype.otherCallRejected = function(b) {
467
467
  u(this.promise, this.onRejected, b);
468
468
  };
469
- function u(b, _, D) {
469
+ function u(b, T, D) {
470
470
  g(function() {
471
471
  var L;
472
472
  try {
473
- L = _(D);
473
+ L = T(D);
474
474
  } catch (f) {
475
475
  return P.reject(b, f);
476
476
  }
477
477
  L === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, L);
478
478
  });
479
479
  }
480
- P.resolve = function(b, _) {
481
- var D = I(r, _);
480
+ P.resolve = function(b, T) {
481
+ var D = E(r, T);
482
482
  if (D.status === "error")
483
483
  return P.reject(b, D.value);
484
484
  var L = D.value;
485
485
  if (L)
486
486
  y(b, L);
487
487
  else {
488
- b.state = N, b.outcome = _;
488
+ b.state = N, b.outcome = T;
489
489
  for (var f = -1, A = b.queue.length; ++f < A; )
490
- b.queue[f].callFulfilled(_);
490
+ b.queue[f].callFulfilled(T);
491
491
  }
492
492
  return b;
493
- }, P.reject = function(b, _) {
494
- b.state = T, b.outcome = _;
493
+ }, P.reject = function(b, T) {
494
+ b.state = _, b.outcome = T;
495
495
  for (var D = -1, L = b.queue.length; ++D < L; )
496
- b.queue[D].callRejected(_);
496
+ b.queue[D].callRejected(T);
497
497
  return b;
498
498
  };
499
499
  function r(b) {
500
- var _ = b && b.then;
501
- if (b && (typeof b == "object" || typeof b == "function") && typeof _ == "function")
500
+ var T = b && b.then;
501
+ if (b && (typeof b == "object" || typeof b == "function") && typeof T == "function")
502
502
  return function() {
503
- _.apply(b, arguments);
503
+ T.apply(b, arguments);
504
504
  };
505
505
  }
506
- function y(b, _) {
506
+ function y(b, T) {
507
507
  var D = !1;
508
508
  function L(Q) {
509
509
  D || (D = !0, P.reject(b, Q));
@@ -512,15 +512,15 @@ var at = { exports: {} };
512
512
  D || (D = !0, P.resolve(b, Q));
513
513
  }
514
514
  function A() {
515
- _(f, L);
515
+ T(f, L);
516
516
  }
517
- var J = I(A);
517
+ var J = E(A);
518
518
  J.status === "error" && L(J.value);
519
519
  }
520
- function I(b, _) {
520
+ function E(b, T) {
521
521
  var D = {};
522
522
  try {
523
- D.value = b(_), D.status = "success";
523
+ D.value = b(T), D.status = "success";
524
524
  } catch (L) {
525
525
  D.status = "error", D.value = L;
526
526
  }
@@ -530,14 +530,14 @@ var at = { exports: {} };
530
530
  function i(b) {
531
531
  return b instanceof this ? b : P.resolve(new this(x), b);
532
532
  }
533
- d.reject = E;
534
- function E(b) {
535
- var _ = new this(x);
536
- return P.reject(_, b);
533
+ d.reject = I;
534
+ function I(b) {
535
+ var T = new this(x);
536
+ return P.reject(T, b);
537
537
  }
538
538
  d.all = w;
539
539
  function w(b) {
540
- var _ = this;
540
+ var T = this;
541
541
  if (Object.prototype.toString.call(b) !== "[object Array]")
542
542
  return this.reject(new TypeError("must be an array"));
543
543
  var D = b.length, L = !1;
@@ -547,7 +547,7 @@ var at = { exports: {} };
547
547
  ee(b[J], J);
548
548
  return Q;
549
549
  function ee(ie, we) {
550
- _.resolve(ie).then(W, function(Y) {
550
+ T.resolve(ie).then(W, function(Y) {
551
551
  L || (L = !0, P.reject(Q, Y));
552
552
  });
553
553
  function W(Y) {
@@ -557,7 +557,7 @@ var at = { exports: {} };
557
557
  }
558
558
  d.race = M;
559
559
  function M(b) {
560
- var _ = this;
560
+ var T = this;
561
561
  if (Object.prototype.toString.call(b) !== "[object Array]")
562
562
  return this.reject(new TypeError("must be an array"));
563
563
  var D = b.length, L = !1;
@@ -567,7 +567,7 @@ var at = { exports: {} };
567
567
  J(b[f]);
568
568
  return A;
569
569
  function J(Q) {
570
- _.resolve(Q).then(function(ee) {
570
+ T.resolve(Q).then(function(ee) {
571
571
  L || (L = !0, P.resolve(A, ee));
572
572
  }, function(ee) {
573
573
  L || (L = !0, P.reject(A, ee));
@@ -604,10 +604,10 @@ var at = { exports: {} };
604
604
  return;
605
605
  }
606
606
  }
607
- var T = P();
607
+ var _ = P();
608
608
  function N() {
609
609
  try {
610
- if (!T || !T.open)
610
+ if (!_ || !_.open)
611
611
  return !1;
612
612
  var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
613
613
  return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
@@ -650,16 +650,16 @@ var at = { exports: {} };
650
650
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
- var I = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
654
- function _(n) {
653
+ var E = "local-forage-detect-blob-support", i = void 0, I = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
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);
657
657
  return a;
658
658
  }
659
659
  function D(n) {
660
660
  return new d(function(c) {
661
- var a = n.transaction(I, b), m = $([""]);
662
- a.objectStore(I).put(m, "key"), a.onabort = function(v) {
661
+ var a = n.transaction(E, b), m = $([""]);
662
+ a.objectStore(E).put(m, "key"), a.onabort = function(v) {
663
663
  v.preventDefault(), v.stopPropagation(), c(!1);
664
664
  }, a.oncomplete = function() {
665
665
  var v = navigator.userAgent.match(/Chrome\/(\d+)/), o = navigator.userAgent.match(/Edge\//);
@@ -675,7 +675,7 @@ var at = { exports: {} };
675
675
  });
676
676
  }
677
677
  function f(n) {
678
- var c = E[n.name], a = {};
678
+ var c = I[n.name], a = {};
679
679
  a.promise = new d(function(m, v) {
680
680
  a.resolve = m, a.reject = v;
681
681
  }), c.deferredOperations.push(a), c.dbReady ? c.dbReady = c.dbReady.then(function() {
@@ -683,29 +683,29 @@ var at = { exports: {} };
683
683
  }) : c.dbReady = a.promise;
684
684
  }
685
685
  function A(n) {
686
- var c = E[n.name], a = c.deferredOperations.pop();
686
+ var c = I[n.name], a = c.deferredOperations.pop();
687
687
  if (a)
688
688
  return a.resolve(), a.promise;
689
689
  }
690
690
  function J(n, c) {
691
- var a = E[n.name], m = a.deferredOperations.pop();
691
+ var a = I[n.name], m = a.deferredOperations.pop();
692
692
  if (m)
693
693
  return m.reject(c), m.promise;
694
694
  }
695
695
  function Q(n, c) {
696
696
  return new d(function(a, m) {
697
- if (E[n.name] = E[n.name] || ne(), n.db)
697
+ if (I[n.name] = I[n.name] || ne(), n.db)
698
698
  if (c)
699
699
  f(n), n.db.close();
700
700
  else
701
701
  return a(n.db);
702
702
  var v = [n.name];
703
703
  c && v.push(n.version);
704
- var o = T.open.apply(T, v);
704
+ var o = _.open.apply(_, v);
705
705
  c && (o.onupgradeneeded = function(C) {
706
706
  var R = o.result;
707
707
  try {
708
- R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(I);
708
+ R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(E);
709
709
  } catch (B) {
710
710
  if (B.name === "ConstraintError")
711
711
  console.warn('The database "' + n.name + '" has been upgraded from version ' + C.oldVersion + " to version " + C.newVersion + ', but the storage "' + n.storeName + '" already exists.');
@@ -755,15 +755,15 @@ var at = { exports: {} };
755
755
  });
756
756
  }
757
757
  function Y(n) {
758
- var c = _(atob(n.data));
758
+ var c = T(atob(n.data));
759
759
  return $([c], { type: n.type });
760
760
  }
761
- function V(n) {
761
+ function H(n) {
762
762
  return n && n.__local_forage_encoded_blob;
763
763
  }
764
764
  function ae(n) {
765
765
  var c = this, a = c._initReady().then(function() {
766
- var m = E[c._dbInfo.name];
766
+ var m = I[c._dbInfo.name];
767
767
  if (m && m.dbReady)
768
768
  return m.dbReady;
769
769
  });
@@ -771,7 +771,7 @@ var at = { exports: {} };
771
771
  }
772
772
  function G(n) {
773
773
  f(n);
774
- for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
774
+ for (var c = I[n.name], a = c.forages, m = 0; m < a.length; m++) {
775
775
  var v = a[m];
776
776
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
777
777
  }
@@ -822,8 +822,8 @@ var at = { exports: {} };
822
822
  if (n)
823
823
  for (var m in n)
824
824
  a[m] = n[m];
825
- var v = E[a.name];
826
- v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
825
+ var v = I[a.name];
826
+ v || (v = ne(), I[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
827
827
  var o = [];
828
828
  function C() {
829
829
  return d.resolve();
@@ -857,7 +857,7 @@ var at = { exports: {} };
857
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
858
858
  F.onsuccess = function() {
859
859
  var k = F.result;
860
- k === void 0 && (k = null), V(k) && (k = Y(k)), v(k);
860
+ k === void 0 && (k = null), H(k) && (k = Y(k)), v(k);
861
861
  }, F.onerror = function() {
862
862
  o(F.error);
863
863
  };
@@ -869,7 +869,7 @@ var at = { exports: {} };
869
869
  });
870
870
  return h(m, c), m;
871
871
  }
872
- function Ee(n, c) {
872
+ function Ie(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
875
  X(a._dbInfo, M, function(C, R) {
@@ -881,7 +881,7 @@ var at = { exports: {} };
881
881
  var q = F.result;
882
882
  if (q) {
883
883
  var Z = q.value;
884
- V(Z) && (Z = Y(Z));
884
+ H(Z) && (Z = Y(Z));
885
885
  var p = n(Z, q.key, k++);
886
886
  p !== void 0 ? v(p) : q.continue();
887
887
  } else
@@ -1062,7 +1062,7 @@ var at = { exports: {} };
1062
1062
  v = d.reject("Invalid arguments");
1063
1063
  else {
1064
1064
  var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1065
- var B = E[n.name], F = B.forages;
1065
+ var B = I[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;
@@ -1072,23 +1072,23 @@ var at = { exports: {} };
1072
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1073
1073
  var B = R.version + 1;
1074
1074
  f(n);
1075
- var F = E[n.name], k = F.forages;
1075
+ var F = I[n.name], k = F.forages;
1076
1076
  R.close();
1077
1077
  for (var q = 0; q < k.length; q++) {
1078
1078
  var Z = k[q];
1079
1079
  Z._dbInfo.db = null, Z._dbInfo.version = B;
1080
1080
  }
1081
1081
  var p = new d(function(re, ue) {
1082
- var le = T.open(n.name, B);
1083
- le.onerror = function(ge) {
1082
+ var le = _.open(n.name, B);
1083
+ le.onerror = function(ye) {
1084
1084
  var ze = le.result;
1085
- ze.close(), ue(ge);
1085
+ ze.close(), ue(ye);
1086
1086
  }, le.onupgradeneeded = function() {
1087
- var ge = le.result;
1088
- ge.deleteObjectStore(n.storeName);
1087
+ var ye = le.result;
1088
+ ye.deleteObjectStore(n.storeName);
1089
1089
  }, le.onsuccess = function() {
1090
- var ge = le.result;
1091
- ge.close(), re(ge);
1090
+ var ye = le.result;
1091
+ ye.close(), re(ye);
1092
1092
  };
1093
1093
  });
1094
1094
  return p.then(function(re) {
@@ -1104,14 +1104,14 @@ var at = { exports: {} };
1104
1104
  }
1105
1105
  }) : v = C.then(function(R) {
1106
1106
  f(n);
1107
- var B = E[n.name], F = B.forages;
1107
+ var B = I[n.name], F = B.forages;
1108
1108
  R.close();
1109
1109
  for (var k = 0; k < F.length; k++) {
1110
1110
  var q = F[k];
1111
1111
  q._dbInfo.db = null;
1112
1112
  }
1113
1113
  var Z = new d(function(p, re) {
1114
- var ue = T.deleteDatabase(n.name);
1114
+ var ue = _.deleteDatabase(n.name);
1115
1115
  ue.onerror = function() {
1116
1116
  var le = ue.result;
1117
1117
  le && le.close(), re(ue.error);
@@ -1140,7 +1140,7 @@ var at = { exports: {} };
1140
1140
  _driver: "asyncStorage",
1141
1141
  _initStorage: fe,
1142
1142
  _support: N(),
1143
- iterate: Ee,
1143
+ iterate: Ie,
1144
1144
  getItem: ce,
1145
1145
  setItem: $e,
1146
1146
  removeItem: Ce,
@@ -1153,7 +1153,7 @@ var at = { exports: {} };
1153
1153
  function ur() {
1154
1154
  return typeof openDatabase == "function";
1155
1155
  }
1156
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", j = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
1156
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ee = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
1157
1157
  function Se(n) {
1158
1158
  var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
@@ -1172,12 +1172,12 @@ var at = { exports: {} };
1172
1172
  var a = "";
1173
1173
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1174
1174
  var m, v = Fe;
1175
- n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1175
+ n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
1179
  var C = ir + n.type + "~" + se(this.result);
1180
- c(Fe + Ie + C);
1180
+ c(Fe + Ee + C);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
@@ -1186,11 +1186,11 @@ var at = { exports: {} };
1186
1186
  console.error("Couldn't convert value into a JSON string: ", n), c(null, C);
1187
1187
  }
1188
1188
  }
1189
- function ft(n) {
1189
+ function ct(n) {
1190
1190
  if (n.substring(0, Ne) !== Fe)
1191
1191
  return JSON.parse(n);
1192
1192
  var c = n.substring(ve), a = n.substring(Ne, ve), m;
1193
- if (a === Ie && Ze.test(c)) {
1193
+ if (a === Ee && Ze.test(c)) {
1194
1194
  var v = c.match(Ze);
1195
1195
  m = v[1], c = c.substring(v[0].length);
1196
1196
  }
@@ -1198,7 +1198,7 @@ var at = { exports: {} };
1198
1198
  switch (a) {
1199
1199
  case We:
1200
1200
  return o;
1201
- case Ie:
1201
+ case Ee:
1202
1202
  return $([o], { type: m });
1203
1203
  case Je:
1204
1204
  return new Int8Array(o);
@@ -1206,13 +1206,13 @@ var at = { exports: {} };
1206
1206
  return new Uint8Array(o);
1207
1207
  case qe:
1208
1208
  return new Uint8ClampedArray(o);
1209
- case Ve:
1209
+ case He:
1210
1210
  return new Int16Array(o);
1211
1211
  case j:
1212
1212
  return new Uint16Array(o);
1213
1213
  case U:
1214
1214
  return new Int32Array(o);
1215
- case H:
1215
+ case V:
1216
1216
  return new Uint32Array(o);
1217
1217
  case O:
1218
1218
  return new Float32Array(o);
@@ -1224,14 +1224,14 @@ var at = { exports: {} };
1224
1224
  }
1225
1225
  var cr = {
1226
1226
  serialize: Me,
1227
- deserialize: ft,
1227
+ deserialize: ct,
1228
1228
  stringToBuffer: Se,
1229
1229
  bufferToString: se
1230
1230
  };
1231
- function Ur(n, c, a, m) {
1231
+ function Rr(n, c, a, m) {
1232
1232
  n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
1233
1233
  }
1234
- function st(n) {
1234
+ function ft(n) {
1235
1235
  var c = this, a = {
1236
1236
  db: null
1237
1237
  };
@@ -1245,7 +1245,7 @@ var at = { exports: {} };
1245
1245
  return C(R);
1246
1246
  }
1247
1247
  a.db.transaction(function(R) {
1248
- Ur(R, a, function() {
1248
+ Rr(R, a, function() {
1249
1249
  c._dbInfo = a, o();
1250
1250
  }, function(B, F) {
1251
1251
  C(F);
@@ -1257,13 +1257,13 @@ var at = { exports: {} };
1257
1257
  function xe(n, c, a, m, v, o) {
1258
1258
  n.executeSql(a, m, v, function(C, R) {
1259
1259
  R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1260
- F.rows.length ? o(B, R) : Ur(B, c, function() {
1260
+ F.rows.length ? o(B, R) : Rr(B, c, function() {
1261
1261
  B.executeSql(a, m, v, o);
1262
1262
  }, o);
1263
1263
  }, o) : o(C, R);
1264
1264
  }, o);
1265
1265
  }
1266
- function ot(n, c) {
1266
+ function st(n, c) {
1267
1267
  var a = this;
1268
1268
  n = r(n);
1269
1269
  var m = new d(function(v, o) {
@@ -1281,7 +1281,7 @@ var at = { exports: {} };
1281
1281
  });
1282
1282
  return h(m, c), m;
1283
1283
  }
1284
- function dt(n, c) {
1284
+ function ot(n, c) {
1285
1285
  var a = this, m = new d(function(v, o) {
1286
1286
  a.ready().then(function() {
1287
1287
  var C = a._dbInfo;
@@ -1303,7 +1303,7 @@ var at = { exports: {} };
1303
1303
  });
1304
1304
  return h(m, c), m;
1305
1305
  }
1306
- function Br(n, c, a, m) {
1306
+ function Ur(n, c, a, m) {
1307
1307
  var v = this;
1308
1308
  n = r(n);
1309
1309
  var o = new d(function(C, R) {
@@ -1320,7 +1320,7 @@ var at = { exports: {} };
1320
1320
  }, function(Z) {
1321
1321
  if (Z.code === Z.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
- C(Br.apply(v, [n, B, a, m - 1]));
1323
+ C(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
1326
  R(Z);
@@ -1331,10 +1331,10 @@ var at = { exports: {} };
1331
1331
  });
1332
1332
  return h(o, a), o;
1333
1333
  }
1334
- function ht(n, c, a) {
1335
- return Br.apply(this, [n, c, a, 1]);
1334
+ function dt(n, c, a) {
1335
+ return Ur.apply(this, [n, c, a, 1]);
1336
1336
  }
1337
- function mt(n, c) {
1337
+ function ht(n, c) {
1338
1338
  var a = this;
1339
1339
  n = r(n);
1340
1340
  var m = new d(function(v, o) {
@@ -1351,7 +1351,7 @@ var at = { exports: {} };
1351
1351
  });
1352
1352
  return h(m, c), m;
1353
1353
  }
1354
- function vt(n) {
1354
+ function mt(n) {
1355
1355
  var c = this, a = new d(function(m, v) {
1356
1356
  c.ready().then(function() {
1357
1357
  var o = c._dbInfo;
@@ -1366,7 +1366,7 @@ var at = { exports: {} };
1366
1366
  });
1367
1367
  return h(a, n), a;
1368
1368
  }
1369
- function gt(n) {
1369
+ function vt(n) {
1370
1370
  var c = this, a = new d(function(m, v) {
1371
1371
  c.ready().then(function() {
1372
1372
  var o = c._dbInfo;
@@ -1382,7 +1382,7 @@ var at = { exports: {} };
1382
1382
  });
1383
1383
  return h(a, n), a;
1384
1384
  }
1385
- function yt(n, c) {
1385
+ function gt(n, c) {
1386
1386
  var a = this, m = new d(function(v, o) {
1387
1387
  a.ready().then(function() {
1388
1388
  var C = a._dbInfo;
@@ -1398,7 +1398,7 @@ var at = { exports: {} };
1398
1398
  });
1399
1399
  return h(m, c), m;
1400
1400
  }
1401
- function wt(n) {
1401
+ function yt(n) {
1402
1402
  var c = this, a = new d(function(m, v) {
1403
1403
  c.ready().then(function() {
1404
1404
  var o = c._dbInfo;
@@ -1415,7 +1415,7 @@ var at = { exports: {} };
1415
1415
  });
1416
1416
  return h(a, n), a;
1417
1417
  }
1418
- function bt(n) {
1418
+ function wt(n) {
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) {
@@ -1433,7 +1433,7 @@ var at = { exports: {} };
1433
1433
  });
1434
1434
  });
1435
1435
  }
1436
- function St(n, c) {
1436
+ function bt(n, c) {
1437
1437
  c = y.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);
@@ -1443,7 +1443,7 @@ var at = { exports: {} };
1443
1443
  n.name === a.name ? C = m._dbInfo.db : C = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
1444
  db: C,
1445
1445
  storeNames: [n.storeName]
1446
- }) : o(bt(C));
1446
+ }) : o(wt(C));
1447
1447
  }).then(function(o) {
1448
1448
  return new d(function(C, R) {
1449
1449
  o.db.transaction(function(B) {
@@ -1451,8 +1451,8 @@ var at = { exports: {} };
1451
1451
  return new d(function(re, ue) {
1452
1452
  B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1453
1453
  re();
1454
- }, function(le, ge) {
1455
- ue(ge);
1454
+ }, function(le, ye) {
1455
+ ue(ye);
1456
1456
  });
1457
1457
  });
1458
1458
  }
@@ -1469,21 +1469,21 @@ var at = { exports: {} };
1469
1469
  });
1470
1470
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
1471
1471
  }
1472
- var At = {
1472
+ var St = {
1473
1473
  _driver: "webSQLStorage",
1474
- _initStorage: st,
1474
+ _initStorage: ft,
1475
1475
  _support: ur(),
1476
- iterate: dt,
1477
- getItem: ot,
1478
- setItem: ht,
1479
- removeItem: mt,
1480
- clear: vt,
1481
- length: gt,
1482
- key: yt,
1483
- keys: wt,
1484
- dropInstance: St
1476
+ iterate: ot,
1477
+ getItem: st,
1478
+ setItem: dt,
1479
+ removeItem: ht,
1480
+ clear: mt,
1481
+ length: vt,
1482
+ key: gt,
1483
+ keys: yt,
1484
+ dropInstance: bt
1485
1485
  };
1486
- function Et() {
1486
+ function At() {
1487
1487
  try {
1488
1488
  return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
1489
1489
  !!localStorage.setItem;
@@ -1491,7 +1491,7 @@ var at = { exports: {} };
1491
1491
  return !1;
1492
1492
  }
1493
1493
  }
1494
- function $r(n, c) {
1494
+ function Br(n, c) {
1495
1495
  var a = n.name + "/";
1496
1496
  return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
1497
1497
  }
@@ -1503,17 +1503,17 @@ var at = { exports: {} };
1503
1503
  return !0;
1504
1504
  }
1505
1505
  }
1506
- function Dt() {
1506
+ function Et() {
1507
1507
  return !It() || localStorage.length > 0;
1508
1508
  }
1509
- function xt(n) {
1509
+ function Dt(n) {
1510
1510
  var c = this, a = {};
1511
1511
  if (n)
1512
1512
  for (var m in n)
1513
1513
  a[m] = n[m];
1514
- return a.keyPrefix = $r(n, c._defaultConfig), Dt() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1514
+ return a.keyPrefix = Br(n, c._defaultConfig), Et() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1515
1515
  }
1516
- function _t(n) {
1516
+ function xt(n) {
1517
1517
  var c = this, a = c.ready().then(function() {
1518
1518
  for (var m = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
1519
1519
  var o = localStorage.key(v);
@@ -1531,7 +1531,7 @@ var at = { exports: {} };
1531
1531
  });
1532
1532
  return h(m, c), m;
1533
1533
  }
1534
- function Ct(n, c) {
1534
+ function _t(n, c) {
1535
1535
  var a = this, m = a.ready().then(function() {
1536
1536
  for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1537
1537
  var k = localStorage.key(F);
@@ -1544,7 +1544,7 @@ var at = { exports: {} };
1544
1544
  });
1545
1545
  return h(m, c), m;
1546
1546
  }
1547
- function Pt(n, c) {
1547
+ function Ct(n, c) {
1548
1548
  var a = this, m = a.ready().then(function() {
1549
1549
  var v = a._dbInfo, o;
1550
1550
  try {
@@ -1556,7 +1556,7 @@ var at = { exports: {} };
1556
1556
  });
1557
1557
  return h(m, c), m;
1558
1558
  }
1559
- function Nt(n) {
1559
+ function Pt(n) {
1560
1560
  var c = this, a = c.ready().then(function() {
1561
1561
  for (var m = c._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
1562
1562
  var R = localStorage.key(C);
@@ -1566,13 +1566,13 @@ var at = { exports: {} };
1566
1566
  });
1567
1567
  return h(a, n), a;
1568
1568
  }
1569
- function Mt(n) {
1569
+ function Nt(n) {
1570
1570
  var c = this, a = c.keys().then(function(m) {
1571
1571
  return m.length;
1572
1572
  });
1573
1573
  return h(a, n), a;
1574
1574
  }
1575
- function Lt(n, c) {
1575
+ function Mt(n, c) {
1576
1576
  var a = this;
1577
1577
  n = r(n);
1578
1578
  var m = a.ready().then(function() {
@@ -1581,7 +1581,7 @@ var at = { exports: {} };
1581
1581
  });
1582
1582
  return h(m, c), m;
1583
1583
  }
1584
- function Rt(n, c, a) {
1584
+ function Lt(n, c, a) {
1585
1585
  var m = this;
1586
1586
  n = r(n);
1587
1587
  var v = m.ready().then(function() {
@@ -1603,14 +1603,14 @@ var at = { exports: {} };
1603
1603
  });
1604
1604
  return h(v, a), v;
1605
1605
  }
1606
- function Ut(n, c) {
1606
+ function Rt(n, c) {
1607
1607
  if (c = y.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
  }
1611
1611
  var m = this, v;
1612
1612
  return n.name ? v = new d(function(o) {
1613
- n.storeName ? o($r(n, m._defaultConfig)) : o(n.name + "/");
1613
+ n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
1614
1614
  }).then(function(o) {
1615
1615
  for (var C = localStorage.length - 1; C >= 0; C--) {
1616
1616
  var R = localStorage.key(C);
@@ -1618,37 +1618,37 @@ var at = { exports: {} };
1618
1618
  }
1619
1619
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
1620
1620
  }
1621
- var Bt = {
1621
+ var Ut = {
1622
1622
  _driver: "localStorageWrapper",
1623
- _initStorage: xt,
1624
- _support: Et(),
1625
- iterate: Ct,
1623
+ _initStorage: Dt,
1624
+ _support: At(),
1625
+ iterate: _t,
1626
1626
  getItem: Tt,
1627
- setItem: Rt,
1628
- removeItem: Lt,
1629
- clear: _t,
1630
- length: Mt,
1631
- key: Pt,
1632
- keys: Nt,
1633
- dropInstance: Ut
1634
- }, $t = function(c, a) {
1627
+ setItem: Lt,
1628
+ removeItem: Mt,
1629
+ clear: xt,
1630
+ length: Nt,
1631
+ key: Ct,
1632
+ keys: Pt,
1633
+ dropInstance: Rt
1634
+ }, Bt = function(c, a) {
1635
1635
  return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
1636
- }, Ft = function(c, a) {
1636
+ }, $t = function(c, a) {
1637
1637
  for (var m = c.length, v = 0; v < m; ) {
1638
- if ($t(c[v], a))
1638
+ if (Bt(c[v], a))
1639
1639
  return !0;
1640
1640
  v++;
1641
1641
  }
1642
1642
  return !1;
1643
- }, Fr = Array.isArray || function(n) {
1643
+ }, $r = Array.isArray || function(n) {
1644
1644
  return Object.prototype.toString.call(n) === "[object Array]";
1645
- }, He = {}, kr = {}, ke = {
1645
+ }, Ve = {}, Fr = {}, ke = {
1646
1646
  INDEXEDDB: lr,
1647
- WEBSQL: At,
1648
- LOCALSTORAGE: Bt
1649
- }, kt = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1647
+ WEBSQL: St,
1648
+ LOCALSTORAGE: Ut
1649
+ }, Ft = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), kt = {
1650
1650
  description: "",
1651
- driver: kt.slice(),
1651
+ driver: Ft.slice(),
1652
1652
  name: "localforage",
1653
1653
  // Default DB size is _JUST UNDER_ 5MB, as it's the highest size
1654
1654
  // we can use without a prompt.
@@ -1656,7 +1656,7 @@ var at = { exports: {} };
1656
1656
  storeName: "keyvaluepairs",
1657
1657
  version: 1
1658
1658
  };
1659
- function Wt(n, c) {
1659
+ function Gt(n, c) {
1660
1660
  n[c] = function() {
1661
1661
  var a = arguments;
1662
1662
  return n.ready().then(function() {
@@ -1669,19 +1669,19 @@ var at = { exports: {} };
1669
1669
  var c = arguments[n];
1670
1670
  if (c)
1671
1671
  for (var a in c)
1672
- c.hasOwnProperty(a) && (Fr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
1672
+ c.hasOwnProperty(a) && ($r(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
1673
1673
  }
1674
1674
  return arguments[0];
1675
1675
  }
1676
- var qt = function() {
1676
+ var Wt = function() {
1677
1677
  function n(c) {
1678
1678
  x(this, n);
1679
1679
  for (var a in ke)
1680
1680
  if (ke.hasOwnProperty(a)) {
1681
1681
  var m = ke[a], v = m._driver;
1682
- this[a] = v, He[v] || this.defineDriver(m);
1682
+ this[a] = v, Ve[v] || this.defineDriver(m);
1683
1683
  }
1684
- this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1684
+ this._defaultConfig = sr({}, kt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1685
1685
  });
1686
1686
  }
1687
1687
  return n.prototype.config = function(a) {
@@ -1705,17 +1705,17 @@ var at = { exports: {} };
1705
1705
  return;
1706
1706
  }
1707
1707
  for (var k = fr.concat("_initStorage"), q = 0, Z = k.length; q < Z; q++) {
1708
- var p = k[q], re = !Ft(Ke, p);
1708
+ var p = k[q], re = !$t(Ke, p);
1709
1709
  if ((re || a[p]) && typeof a[p] != "function") {
1710
1710
  R(F);
1711
1711
  return;
1712
1712
  }
1713
1713
  }
1714
1714
  var ue = function() {
1715
- for (var ze = function(zt) {
1715
+ for (var ze = function(Vt) {
1716
1716
  return function() {
1717
- var Yt = new Error("Method " + zt + " is not implemented by the current driver"), Gr = d.reject(Yt);
1718
- return h(Gr, arguments[arguments.length - 1]), Gr;
1717
+ var zt = new Error("Method " + Vt + " is not implemented by the current driver"), kr = d.reject(zt);
1718
+ return h(kr, arguments[arguments.length - 1]), kr;
1719
1719
  };
1720
1720
  }, or = 0, Ht = Ke.length; or < Ht; or++) {
1721
1721
  var dr = Ke[or];
@@ -1724,18 +1724,18 @@ var at = { exports: {} };
1724
1724
  };
1725
1725
  ue();
1726
1726
  var le = function(ze) {
1727
- He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = ze, C();
1727
+ Ve[B] && console.info("Redefining LocalForage driver: " + B), Ve[B] = a, Fr[B] = ze, C();
1728
1728
  };
1729
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1730
- } catch (ge) {
1731
- R(ge);
1730
+ } catch (ye) {
1731
+ R(ye);
1732
1732
  }
1733
1733
  });
1734
1734
  return u(o, m, v), o;
1735
1735
  }, n.prototype.driver = function() {
1736
1736
  return this._driver || null;
1737
1737
  }, n.prototype.getDriver = function(a, m, v) {
1738
- var o = He[a] ? d.resolve(He[a]) : d.reject(new Error("Driver not found."));
1738
+ var o = Ve[a] ? d.resolve(Ve[a]) : d.reject(new Error("Driver not found."));
1739
1739
  return u(o, m, v), o;
1740
1740
  }, n.prototype.getSerializer = function(a) {
1741
1741
  var m = d.resolve(cr);
@@ -1747,7 +1747,7 @@ var at = { exports: {} };
1747
1747
  return u(v, a, a), v;
1748
1748
  }, n.prototype.setDriver = function(a, m, v) {
1749
1749
  var o = this;
1750
- Fr(a) || (a = [a]);
1750
+ $r(a) || (a = [a]);
1751
1751
  var C = this._getSupportedDrivers(a);
1752
1752
  function R() {
1753
1753
  o._config.driver = o.driver();
@@ -1784,7 +1784,7 @@ var at = { exports: {} };
1784
1784
  return o._driverSet = d.reject(q), o._driverSet;
1785
1785
  }), u(this._driverSet, m, v), this._driverSet;
1786
1786
  }, n.prototype.supports = function(a) {
1787
- return !!kr[a];
1787
+ return !!Fr[a];
1788
1788
  }, n.prototype._extend = function(a) {
1789
1789
  sr(this, a);
1790
1790
  }, n.prototype._getSupportedDrivers = function(a) {
@@ -1795,53 +1795,47 @@ var at = { exports: {} };
1795
1795
  return m;
1796
1796
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
1797
1797
  for (var a = 0, m = fr.length; a < m; a++)
1798
- Wt(this, fr[a]);
1798
+ Gt(this, fr[a]);
1799
1799
  }, n.prototype.createInstance = function(a) {
1800
1800
  return new n(a);
1801
1801
  }, n;
1802
- }(), Vt = new qt();
1803
- S.exports = Vt;
1802
+ }(), qt = new Wt();
1803
+ S.exports = qt;
1804
1804
  }, { 3: 3 }] }, {}, [4])(4);
1805
1805
  });
1806
- })(at);
1807
- var gn = at.exports;
1808
- const lt = /* @__PURE__ */ tn(gn);
1809
- var Rr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1810
- let ye;
1811
- function ut() {
1812
- const e = Rr.NODE_ENV;
1813
- return ye == null ? e : (ye[e] ?? ye.development).localDbName ?? e;
1806
+ })(nt);
1807
+ var vn = nt.exports;
1808
+ const at = /* @__PURE__ */ rn(vn);
1809
+ let ge;
1810
+ function lt() {
1811
+ return (ge[ge.environment] ?? ge.development).localDbName ?? ge.environment;
1814
1812
  }
1815
- function qr() {
1816
- const e = Rr.NODE_ENV;
1817
- return ye == null ? "" : (ye[e] ?? ye.development).auth ?? "";
1813
+ function Wr() {
1814
+ return (ge[ge.environment] ?? ge.development).auth ?? "";
1818
1815
  }
1819
- function yn(e) {
1820
- const t = Rr.NODE_ENV;
1821
- if (ye == null)
1822
- return "";
1823
- const l = ye[t] ?? ye.development;
1824
- return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1816
+ function gn(e) {
1817
+ const t = ge[ge.environment] ?? ge.development;
1818
+ return e == null ? t.data ?? "" : t.other[e] ?? t.data ?? "";
1825
1819
  }
1826
- function ma() {
1827
- return ye;
1820
+ function ha() {
1821
+ return ge;
1828
1822
  }
1829
- function wn(e) {
1830
- return ye = e, ye;
1823
+ function yn(e) {
1824
+ return ge = e, ge;
1831
1825
  }
1832
1826
  let Oe = null;
1833
- lt.config({
1834
- name: ut()
1827
+ at.config({
1828
+ name: lt()
1835
1829
  });
1836
1830
  function me() {
1837
- const e = ut();
1838
- return (Oe == null || Oe.config.name != e) && (Oe = lt.createInstance({ name: e })), Oe;
1831
+ const e = lt();
1832
+ return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1839
1833
  }
1840
- function va() {
1834
+ function ma() {
1841
1835
  async function e(s) {
1842
1836
  const g = me();
1843
- (await g.keys()).filter((T) => T.startsWith(s)).forEach((T) => {
1844
- g.removeItem(T);
1837
+ (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
1838
+ g.removeItem(_);
1845
1839
  });
1846
1840
  }
1847
1841
  async function t(s) {
@@ -1861,34 +1855,34 @@ function va() {
1861
1855
  };
1862
1856
  }
1863
1857
  let er;
1864
- function ga(e) {
1858
+ function va(e) {
1865
1859
  return er(e)();
1866
1860
  }
1867
1861
  function Le(e) {
1868
1862
  return er(e);
1869
1863
  }
1870
- function bn(e) {
1871
- return er = (t) => Sn({
1864
+ function wn(e) {
1865
+ return er = (t) => bn({
1872
1866
  ...e,
1873
1867
  ...t
1874
1868
  }), er;
1875
1869
  }
1876
- function Sn(e) {
1870
+ function bn(e) {
1877
1871
  var t, l, S, s, g;
1878
1872
  if (e.storeMode ?? (e.storeMode = ((l = (t = e.navigation) == null ? void 0 : t.findItem(e.nav)) == null ? void 0 : l.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((s = (S = e.navigation) == null ? void 0 : S.findItem(e.nav)) == null ? void 0 : s.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
1879
1873
  throw new Error("no store name provided");
1880
1874
  if (e.storeMode == "whole-last-updated") {
1881
1875
  if (e.api == null)
1882
1876
  throw new Error("Must supply an api object to use store");
1883
- return Vr({ ...e, storeName: e.storeName ?? "" });
1877
+ return qr({ ...e, storeName: e.storeName ?? "" });
1884
1878
  } else if (e.storeMode == "partial-last-updated") {
1885
1879
  if (e.api == null)
1886
1880
  throw new Error("Must supply an api object to use store");
1887
- return Vr({ ...e, storeName: e.storeName ?? "" });
1881
+ return qr({ ...e, storeName: e.storeName ?? "" });
1888
1882
  } else
1889
- return En({ ...e, storeName: e.storeName ?? "" });
1883
+ return An({ ...e, storeName: e.storeName ?? "" });
1890
1884
  }
1891
- const An = (e) => {
1885
+ const Sn = (e) => {
1892
1886
  let t = K(e.url) ?? void 0;
1893
1887
  if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Be(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Be(t, e.id)), e.params != null) {
1894
1888
  t ?? (t = "");
@@ -1899,22 +1893,22 @@ const An = (e) => {
1899
1893
  }
1900
1894
  return e.finalUrl = t, e.finalUrl ?? "";
1901
1895
  };
1902
- function En(e) {
1903
- return et(e.storeName, () => {
1896
+ function An(e) {
1897
+ return pr(e.storeName, () => {
1904
1898
  var u;
1905
- const t = de.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? An;
1899
+ const t = de.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
1900
  function x(r) {
1907
- var i, E;
1901
+ var i, I;
1908
1902
  let y = "";
1909
- const I = r.params ?? {};
1910
- return I != null && (y = Object.entries(I).sort(Ue.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"}`;
1903
+ const E = r.params ?? {};
1904
+ return E != null && (y = Object.entries(E).sort(Ue.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 ?? ((I = r.data) == null ? void 0 : I.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1911
1905
  }
1912
1906
  async function P(r) {
1913
1907
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1914
- const y = x(r), I = r.refresh;
1915
- if (!I && l.value[y] !== void 0)
1908
+ const y = x(r), E = r.refresh;
1909
+ if (!E && l.value[y] !== void 0)
1916
1910
  return l.value[y];
1917
- if (!I && s == !0) {
1911
+ if (!E && s == !0) {
1918
1912
  const i = await me().getItem(y);
1919
1913
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1920
1914
  return l.value[y] = i, i;
@@ -1926,35 +1920,35 @@ function En(e) {
1926
1920
  i == null && (i = new Promise(async (w, M) => {
1927
1921
  var b;
1928
1922
  try {
1929
- const _ = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
1923
+ const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
1930
1924
  meta: { storedOn: t.toString() },
1931
- data: _ == null ? void 0 : _.data,
1932
- count: _ == null ? void 0 : _.count,
1933
- filters: (_ == null ? void 0 : _.filters) ?? []
1925
+ data: T == null ? void 0 : T.data,
1926
+ count: T == null ? void 0 : T.count,
1927
+ filters: (T == null ? void 0 : T.filters) ?? []
1934
1928
  };
1935
1929
  s == !0 && await me().setItem(y, D), w(D);
1936
- } catch (_) {
1937
- M(_);
1930
+ } catch (T) {
1931
+ M(T);
1938
1932
  } finally {
1939
1933
  delete S.value[y];
1940
1934
  }
1941
1935
  }), S.value[y] = i);
1942
- const E = await i;
1943
- return l.value[y] = E, {
1944
- data: E == null ? void 0 : E.data,
1945
- filters: E == null ? void 0 : E.filters,
1946
- count: E == null ? void 0 : E.count
1936
+ const I = await i;
1937
+ return l.value[y] = I, {
1938
+ data: I == null ? void 0 : I.data,
1939
+ filters: I == null ? void 0 : I.filters,
1940
+ count: I == null ? void 0 : I.count
1947
1941
  };
1948
1942
  } catch (i) {
1949
1943
  throw i;
1950
1944
  }
1951
1945
  }
1952
- async function T(r) {
1946
+ async function _(r) {
1953
1947
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1954
- const y = x(r), I = r.refresh;
1955
- if (!I && l.value[y] !== void 0)
1948
+ const y = x(r), E = r.refresh;
1949
+ if (!E && l.value[y] !== void 0)
1956
1950
  return l.value[y];
1957
- if (!I && s == !0) {
1951
+ if (!E && s == !0) {
1958
1952
  const i = await me().getItem(y);
1959
1953
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1960
1954
  return l.value[y] = i, { data: i.data };
@@ -1966,20 +1960,20 @@ function En(e) {
1966
1960
  i == null && (i = new Promise(async (w, M) => {
1967
1961
  var b;
1968
1962
  try {
1969
- let _ = await ((b = e.api) == null ? void 0 : b.get(r));
1963
+ let T = await ((b = e.api) == null ? void 0 : b.get(r));
1970
1964
  const D = {
1971
1965
  meta: { storedOn: t.toString() },
1972
- data: _ == null ? void 0 : _.data
1966
+ data: T == null ? void 0 : T.data
1973
1967
  };
1974
1968
  s == !0 && await me().setItem(y, D), w(D);
1975
- } catch (_) {
1976
- M(_);
1969
+ } catch (T) {
1970
+ M(T);
1977
1971
  } finally {
1978
1972
  delete S.value[y];
1979
1973
  }
1980
1974
  }), S.value[y] = i);
1981
- const E = await i;
1982
- return l.value[y] = E, { data: E.data };
1975
+ const I = await i;
1976
+ return l.value[y] = I, { data: I.data };
1983
1977
  } catch (i) {
1984
1978
  throw i;
1985
1979
  }
@@ -1988,54 +1982,54 @@ function En(e) {
1988
1982
  var i;
1989
1983
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1990
1984
  const y = x(r);
1991
- let I;
1985
+ let E;
1992
1986
  if (e.api != null)
1993
1987
  try {
1994
- let E = await e.api.patch(r);
1995
- I = E == null ? void 0 : E.data;
1996
- } catch (E) {
1997
- throw E;
1988
+ let I = await e.api.patch(r);
1989
+ E = I == null ? void 0 : I.data;
1990
+ } catch (I) {
1991
+ throw I;
1998
1992
  }
1999
1993
  else
2000
- I = r.data;
2001
- if (I != null) {
2002
- let E = {
1994
+ E = r.data;
1995
+ if (E != null) {
1996
+ let I = {
2003
1997
  meta: { storedOn: t.toString() },
2004
- data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
1998
+ data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...E }
2005
1999
  };
2006
- return l.value[y] = E, s == !0 && await me().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2000
+ return l.value[y] = I, s == !0 && await me().setItem(y, I), E.id != null && E.rowVersion != null && Object.entries(l.value).forEach((M) => {
2007
2001
  const b = M[1].data;
2008
2002
  if (b != null)
2009
2003
  if (Array.isArray(b))
2010
- for (let _ = 0; _ < b.length; _++)
2011
- b[_].id == I.id && b.splice(_, 1, E.data);
2004
+ for (let T = 0; T < b.length; T++)
2005
+ b[T].id == E.id && b.splice(T, 1, I.data);
2012
2006
  else
2013
- b.id == I.id && (l.value[M[0]] = E);
2014
- }), E.data;
2007
+ b.id == E.id && (l.value[M[0]] = I);
2008
+ }), I.data;
2015
2009
  }
2016
- return I;
2010
+ return E;
2017
2011
  }
2018
2012
  async function $(r) {
2019
2013
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2020
2014
  const y = x(r);
2021
- let I;
2015
+ let E;
2022
2016
  if (e.api != null)
2023
2017
  try {
2024
2018
  let i = await e.api.post(r);
2025
- I = i == null ? void 0 : i.data;
2019
+ E = i == null ? void 0 : i.data;
2026
2020
  } catch (i) {
2027
2021
  throw i;
2028
2022
  }
2029
2023
  else
2030
- I = r.data;
2031
- if (I != null) {
2024
+ E = r.data;
2025
+ if (E != null) {
2032
2026
  let i = {
2033
2027
  meta: { storedOn: t.toString() },
2034
- data: I
2028
+ data: E
2035
2029
  };
2036
2030
  return s == !0 && await me().setItem(y, i), l.value[y] = i, i.data;
2037
2031
  }
2038
- return I;
2032
+ return E;
2039
2033
  }
2040
2034
  async function d(r) {
2041
2035
  var i;
@@ -2043,20 +2037,20 @@ function En(e) {
2043
2037
  const y = x(r);
2044
2038
  if (e.api != null)
2045
2039
  try {
2046
- let E = await e.api.deleteItem(r);
2047
- if (E != null)
2048
- return E;
2049
- } catch (E) {
2050
- throw E;
2040
+ let I = await e.api.deleteItem(r);
2041
+ if (I != null)
2042
+ return I;
2043
+ } catch (I) {
2044
+ throw I;
2051
2045
  }
2052
2046
  delete l.value[y];
2053
- const I = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2054
- I != null && Object.entries(l.value).forEach((w) => {
2047
+ const E = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2048
+ E != null && Object.entries(l.value).forEach((w) => {
2055
2049
  const M = w[1].data;
2056
2050
  if (M != null)
2057
2051
  if (Array.isArray(M))
2058
2052
  for (let b = 0; b < M.length; b++)
2059
- M[b].id == I && M.splice(b, 1);
2053
+ M[b].id == E && M.splice(b, 1);
2060
2054
  else
2061
2055
  delete l.value[w[0]];
2062
2056
  }), s == !0 && await me().removeItem(y);
@@ -2072,7 +2066,7 @@ function En(e) {
2072
2066
  }
2073
2067
  return {
2074
2068
  deleteItem: d,
2075
- get: T,
2069
+ get: _,
2076
2070
  getAll: P,
2077
2071
  patch: N,
2078
2072
  post: $,
@@ -2082,15 +2076,15 @@ function En(e) {
2082
2076
  };
2083
2077
  });
2084
2078
  }
2085
- function Vr(e) {
2086
- return et(e.storeName, () => {
2079
+ function qr(e) {
2080
+ return pr(e.storeName, () => {
2087
2081
  const t = z(), l = z(0), S = de.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2088
- function T() {
2082
+ function _() {
2089
2083
  var i;
2090
2084
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2091
2085
  }
2092
2086
  async function N() {
2093
- P == !0 && await me().setItem(T(), {
2087
+ P == !0 && await me().setItem(_(), {
2094
2088
  meta: g.value,
2095
2089
  data: t.value,
2096
2090
  count: l.value,
@@ -2098,15 +2092,15 @@ function Vr(e) {
2098
2092
  });
2099
2093
  }
2100
2094
  function $(i) {
2101
- const E = T();
2102
- return x.value[E] || (x.value[E] = new Promise(async (w, M) => {
2103
- var b, _;
2095
+ const I = _();
2096
+ return x.value[I] || (x.value[I] = new Promise(async (w, M) => {
2097
+ var b, T;
2104
2098
  try {
2105
- let D = await ((_ = e.api) == null ? void 0 : _.getAll({
2099
+ let D = await ((T = e.api) == null ? void 0 : T.getAll({
2106
2100
  additionalUrl: "/getAll",
2107
2101
  nav: i.nav,
2108
2102
  params: {
2109
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? un()
2103
+ lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2110
2104
  }
2111
2105
  }));
2112
2106
  D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
@@ -2120,13 +2114,13 @@ function Vr(e) {
2120
2114
  } catch (D) {
2121
2115
  M(D);
2122
2116
  } finally {
2123
- delete x.value[E];
2117
+ delete x.value[I];
2124
2118
  }
2125
- })), x.value[E];
2119
+ })), x.value[I];
2126
2120
  }
2127
2121
  async function d(i) {
2128
- var M, b, _;
2129
- const E = T(), w = i.refresh;
2122
+ var M, b, T;
2123
+ const I = _(), w = i.refresh;
2130
2124
  if (!w && t.value != null)
2131
2125
  return {
2132
2126
  count: (M = t.value) == null ? void 0 : M.length,
@@ -2134,7 +2128,7 @@ function Vr(e) {
2134
2128
  filters: []
2135
2129
  };
2136
2130
  if (!w && P == !0) {
2137
- const D = await me().getItem(E);
2131
+ const D = await me().getItem(I);
2138
2132
  if (D != null && parseFloat(D.meta.storedOn) > S - 7)
2139
2133
  return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2140
2134
  count: (b = t.value) == null ? void 0 : b.length,
@@ -2144,7 +2138,7 @@ function Vr(e) {
2144
2138
  }
2145
2139
  if (e.api == null)
2146
2140
  return {
2147
- count: (_ = t.value) == null ? void 0 : _.length,
2141
+ count: (T = t.value) == null ? void 0 : T.length,
2148
2142
  data: t.value ?? [],
2149
2143
  filters: s.value
2150
2144
  };
@@ -2157,8 +2151,8 @@ function Vr(e) {
2157
2151
  }
2158
2152
  }
2159
2153
  async function h(i) {
2160
- var b, _, D, L;
2161
- const E = T(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2154
+ var b, T, D, L;
2155
+ const I = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2162
2156
  if (w == null)
2163
2157
  throw new Error("no id provided");
2164
2158
  let M = i.refresh;
@@ -2168,10 +2162,10 @@ function Vr(e) {
2168
2162
  return { data: f };
2169
2163
  }
2170
2164
  if (!M && P == !0) {
2171
- const f = await me().getItem(E);
2165
+ const f = await me().getItem(I);
2172
2166
  if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2173
2167
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2174
- let A = (_ = t.value) == null ? void 0 : _.find((J) => J.id == i.id);
2168
+ let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2175
2169
  if (A != null)
2176
2170
  return { data: A };
2177
2171
  }
@@ -2191,38 +2185,38 @@ function Vr(e) {
2191
2185
  async function u(i) {
2192
2186
  var w, M, b;
2193
2187
  i.additionalUrl ?? (i.additionalUrl = "/patch");
2194
- let E;
2188
+ let I;
2195
2189
  if (e.api != null)
2196
2190
  try {
2197
- let _ = await e.api.patch(i);
2198
- E = { ...i.data, ..._ == null ? void 0 : _.data };
2199
- } catch (_) {
2200
- let D = _;
2191
+ let T = await e.api.patch(i);
2192
+ I = { ...i.data, ...T == null ? void 0 : T.data };
2193
+ } catch (T) {
2194
+ let D = T;
2201
2195
  throw new Error(D.message ?? "Patch Problem");
2202
2196
  }
2203
2197
  else
2204
- E = i.data;
2205
- if (E != null) {
2206
- let _ = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
2207
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(_, 1, E), await N());
2198
+ I = i.data;
2199
+ if (I != null) {
2200
+ let T = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == I.id);
2201
+ T != null && T >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(T, 1, I), await N());
2208
2202
  }
2209
- return (b = t.value) == null ? void 0 : b.find((_) => _.id == (i.id ?? i.data.id));
2203
+ return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2210
2204
  }
2211
2205
  async function r(i) {
2212
2206
  var w, M;
2213
2207
  i.additionalUrl ?? (i.additionalUrl = "/post");
2214
- let E;
2208
+ let I;
2215
2209
  if (e.api != null)
2216
2210
  try {
2217
2211
  let b = await e.api.post(i);
2218
- E = b == null ? void 0 : b.data;
2212
+ I = b == null ? void 0 : b.data;
2219
2213
  } catch (b) {
2220
- let _ = b;
2221
- throw new Error(_.message ?? "Patch Problem");
2214
+ let T = b;
2215
+ throw new Error(T.message ?? "Patch Problem");
2222
2216
  }
2223
2217
  else
2224
- E = i.data;
2225
- return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (i.id ?? i.data.id));
2218
+ I = i.data;
2219
+ return I != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(I), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (i.id ?? i.data.id));
2226
2220
  }
2227
2221
  async function y(i) {
2228
2222
  var w, M;
@@ -2232,17 +2226,17 @@ function Vr(e) {
2232
2226
  if (b != null)
2233
2227
  return b;
2234
2228
  } catch (b) {
2235
- let _ = b;
2236
- throw new Error(_.message ?? "Patch Problem");
2229
+ let T = b;
2230
+ throw new Error(T.message ?? "Patch Problem");
2237
2231
  }
2238
- const E = i.id ?? i.data.id;
2239
- if (E != null) {
2240
- let b = (w = t.value) == null ? void 0 : w.findIndex((_) => _.id == E);
2232
+ const I = i.id ?? i.data.id;
2233
+ if (I != null) {
2234
+ let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == I);
2241
2235
  b != null && b >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(b, 1), await N());
2242
2236
  }
2243
2237
  }
2244
- async function I(i) {
2245
- var E;
2238
+ async function E(i) {
2239
+ var I;
2246
2240
  if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
2247
2241
  try {
2248
2242
  await e.api.patch(i);
@@ -2256,7 +2250,7 @@ function Vr(e) {
2256
2250
  let M = w;
2257
2251
  throw new Error(M.message ?? "Problem");
2258
2252
  }
2259
- return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
2253
+ return (I = t.value) == null ? void 0 : I.find((w) => w.id == (i.id ?? i.data.id));
2260
2254
  }
2261
2255
  return {
2262
2256
  deleteItem: y,
@@ -2264,12 +2258,12 @@ function Vr(e) {
2264
2258
  getAll: d,
2265
2259
  patch: u,
2266
2260
  post: r,
2267
- restore: I
2261
+ restore: E
2268
2262
  };
2269
2263
  });
2270
2264
  }
2271
2265
  let Ar;
2272
- function Er() {
2266
+ function Ir() {
2273
2267
  return Ar;
2274
2268
  }
2275
2269
  function In(e) {
@@ -2287,14 +2281,14 @@ function In(e) {
2287
2281
  return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Be(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Be(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2288
2282
  }
2289
2283
  function P(u) {
2290
- var y, I;
2284
+ var y, E;
2291
2285
  let r = { ...u.headers };
2292
- 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 ${(I = e == null ? void 0 : e.auth) == null ? void 0 : I.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2286
+ 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 ${(E = e == null ? void 0 : e.auth) == null ? void 0 : E.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2293
2287
  }
2294
- async function T(u) {
2295
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2296
- let i = u.finalUrl, E = u.headers;
2297
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2288
+ async function _(u) {
2289
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2290
+ let i = u.finalUrl, I = u.headers;
2291
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2298
2292
  return console.log(`DEMO: Get from ${i}`), s.get(u);
2299
2293
  console.log(`Get from ${i}`);
2300
2294
  let w;
@@ -2303,7 +2297,7 @@ function In(e) {
2303
2297
  method: "GET",
2304
2298
  mode: "cors",
2305
2299
  cache: "no-cache",
2306
- headers: E
2300
+ headers: I
2307
2301
  }), !w.ok) {
2308
2302
  if (w.status == 401)
2309
2303
  throw {
@@ -2314,7 +2308,7 @@ function In(e) {
2314
2308
  let M = await w.text();
2315
2309
  throw new Error(M ?? w.statusText ?? "Get error");
2316
2310
  }
2317
- if (I)
2311
+ if (E)
2318
2312
  return await w.text();
2319
2313
  if (y)
2320
2314
  return await w.json();
@@ -2327,9 +2321,9 @@ function In(e) {
2327
2321
  }
2328
2322
  }
2329
2323
  async function N(u) {
2330
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2331
- let i = u.finalUrl, E = u.headers;
2332
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2324
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2325
+ let i = u.finalUrl, I = u.headers;
2326
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2333
2327
  return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2334
2328
  console.log(`Get all from ${i}`);
2335
2329
  let w;
@@ -2338,7 +2332,7 @@ function In(e) {
2338
2332
  method: "GET",
2339
2333
  mode: "cors",
2340
2334
  cache: "no-cache",
2341
- headers: E
2335
+ headers: I
2342
2336
  }), !w.ok) {
2343
2337
  if (w.status == 401)
2344
2338
  throw {
@@ -2349,7 +2343,7 @@ function In(e) {
2349
2343
  let M = await w.text();
2350
2344
  throw new Error(M ?? w.statusText ?? "Get all error");
2351
2345
  }
2352
- if (I)
2346
+ if (E)
2353
2347
  return await w.text();
2354
2348
  if (y)
2355
2349
  return await w.json();
@@ -2362,9 +2356,9 @@ function In(e) {
2362
2356
  }
2363
2357
  }
2364
2358
  async function $(u) {
2365
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2366
- let i = u.finalUrl, E = u.headers;
2367
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2359
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2360
+ let i = u.finalUrl, I = u.headers;
2361
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2368
2362
  return console.log(`DEMO: Post to ${i}`), s.post(u);
2369
2363
  console.log(`Post to ${i}`);
2370
2364
  let w;
@@ -2373,7 +2367,7 @@ function In(e) {
2373
2367
  method: "POST",
2374
2368
  mode: "cors",
2375
2369
  cache: "no-cache",
2376
- headers: E,
2370
+ headers: I,
2377
2371
  body: JSON.stringify(u.data)
2378
2372
  }), !w.ok) {
2379
2373
  if (w.status == 401)
@@ -2385,7 +2379,7 @@ function In(e) {
2385
2379
  let M = await w.text();
2386
2380
  throw new Error(M ?? w.statusText ?? "Post error!");
2387
2381
  }
2388
- if (I)
2382
+ if (E)
2389
2383
  return await w.text();
2390
2384
  if (y)
2391
2385
  return await w.json();
@@ -2398,9 +2392,9 @@ function In(e) {
2398
2392
  }
2399
2393
  }
2400
2394
  async function d(u) {
2401
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2402
- let i = u.finalUrl, E = u.headers;
2403
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2395
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2396
+ let i = u.finalUrl, I = u.headers;
2397
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2404
2398
  return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2405
2399
  console.log(`Patch to ${i}`);
2406
2400
  let w;
@@ -2409,7 +2403,7 @@ function In(e) {
2409
2403
  method: "PATCH",
2410
2404
  mode: "cors",
2411
2405
  cache: "no-cache",
2412
- headers: E,
2406
+ headers: I,
2413
2407
  body: JSON.stringify(u.data)
2414
2408
  }), !w.ok) {
2415
2409
  if (w.status == 401)
@@ -2421,7 +2415,7 @@ function In(e) {
2421
2415
  let M = await w.text();
2422
2416
  throw new Error(M ?? w.statusText ?? "Patch error!");
2423
2417
  }
2424
- if (I)
2418
+ if (E)
2425
2419
  return await w.text();
2426
2420
  if (y)
2427
2421
  return await w.json();
@@ -2435,8 +2429,8 @@ function In(e) {
2435
2429
  }
2436
2430
  async function h(u) {
2437
2431
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2438
- let y = u.finalUrl, I = u.headers;
2439
- if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2432
+ let y = u.finalUrl, E = u.headers;
2433
+ if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2440
2434
  return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2441
2435
  console.log(`Delete ${y}`);
2442
2436
  let i;
@@ -2445,7 +2439,7 @@ function In(e) {
2445
2439
  method: "DELETE",
2446
2440
  mode: "cors",
2447
2441
  cache: "no-cache",
2448
- headers: I,
2442
+ headers: E,
2449
2443
  body: JSON.stringify(u.data)
2450
2444
  }), i.status == 401)
2451
2445
  throw {
@@ -2454,11 +2448,11 @@ function In(e) {
2454
2448
  message: i.statusText
2455
2449
  };
2456
2450
  return i.status == 200 ? void 0 : i.statusText;
2457
- } catch (E) {
2458
- const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2451
+ } catch (I) {
2452
+ const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${I.message}`;
2459
2453
  if (!r)
2460
2454
  return w;
2461
- throw E.code == 401 ? E : new Error(`${i.status} ${i.statusText} ${E.message}`);
2455
+ throw I.code == 401 ? I : new Error(`${i.status} ${i.statusText} ${I.message}`);
2462
2456
  }
2463
2457
  }
2464
2458
  return Ar = {
@@ -2466,25 +2460,25 @@ function In(e) {
2466
2460
  buildQuery: l,
2467
2461
  buildUrl: S,
2468
2462
  deleteItem: h,
2469
- get: T,
2463
+ get: _,
2470
2464
  getAll: N,
2471
2465
  patch: d,
2472
2466
  post: $
2473
2467
  }, Ar;
2474
2468
  }
2475
- function it(e) {
2476
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = rn(e);
2469
+ function ut(e) {
2470
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = en(e);
2477
2471
  function P(r) {
2478
2472
  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);
2479
2473
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2480
- const I = (e == null ? void 0 : e.items) ?? [];
2474
+ const E = (e == null ? void 0 : e.items) ?? [];
2481
2475
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2482
2476
  var w;
2483
2477
  const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2484
2478
  if (i == null)
2485
2479
  return Promise.resolve("No id found in delete action");
2486
- const E = I.findIndex((M) => M.id == i);
2487
- return E >= 0 && I.splice(E, 1), Promise.resolve(void 0);
2480
+ const I = E.findIndex((M) => M.id == i);
2481
+ return I >= 0 && E.splice(I, 1), Promise.resolve(void 0);
2488
2482
  }), g(async () => {
2489
2483
  let i;
2490
2484
  r.onCanDeleteAsync != null && (i = await r.onCanDeleteAsync(r.data)), i == null && r.onDeleteAsync != null && (i = await r.onDeleteAsync(r.data)), i == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), x(i);
@@ -2497,14 +2491,14 @@ function it(e) {
2497
2491
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2498
2492
  });
2499
2493
  }
2500
- function T(r) {
2494
+ function _(r) {
2501
2495
  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);
2502
2496
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2503
- const I = (e == null ? void 0 : e.items) ?? [];
2497
+ const E = (e == null ? void 0 : e.items) ?? [];
2504
2498
  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 = () => {
2505
- var E;
2506
- const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2507
- return i == null ? Promise.resolve(void 0) : Promise.resolve(I.find((w) => w.id == i));
2499
+ var I;
2500
+ const i = r.id ?? ((I = r.data) == null ? void 0 : I.id);
2501
+ return i == null ? Promise.resolve(void 0) : Promise.resolve(E.find((w) => w.id == i));
2508
2502
  }), g(async () => {
2509
2503
  let i;
2510
2504
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
@@ -2520,8 +2514,8 @@ function it(e) {
2520
2514
  function N(r) {
2521
2515
  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);
2522
2516
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2523
- const I = (e == null ? void 0 : e.items) ?? [];
2524
- 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(I)), g(async () => {
2517
+ const E = (e == null ? void 0 : e.items) ?? [];
2518
+ 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(E)), g(async () => {
2525
2519
  let i;
2526
2520
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2527
2521
  }, {
@@ -2537,8 +2531,8 @@ function it(e) {
2537
2531
  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);
2538
2532
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2539
2533
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2540
- let I, i;
2541
- return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(I), i;
2534
+ let E, i;
2535
+ return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(E), i;
2542
2536
  }, {
2543
2537
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2544
2538
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2551,13 +2545,13 @@ function it(e) {
2551
2545
  function d(r) {
2552
2546
  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);
2553
2547
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2554
- const I = (e == null ? void 0 : e.items) ?? [];
2548
+ const E = (e == null ? void 0 : e.items) ?? [];
2555
2549
  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 () => {
2556
2550
  var i;
2557
2551
  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);
2558
2552
  }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
2559
- const E = I.findIndex((w) => w.id == i.id);
2560
- return E >= 0 ? I.splice(E, 1, i) : I.push(i), Promise.resolve(i);
2553
+ const I = E.findIndex((w) => w.id == i.id);
2554
+ return I >= 0 ? E.splice(I, 1, i) : E.push(i), Promise.resolve(i);
2561
2555
  }), g(async () => {
2562
2556
  let i;
2563
2557
  if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
@@ -2567,8 +2561,8 @@ function it(e) {
2567
2561
  if (x(w), w != null)
2568
2562
  return;
2569
2563
  }
2570
- let E;
2571
- return r.onSaveAsync != null && (E = await r.onSaveAsync(i), E = E.data != null ? E.data : E), r.onSaveSuccessAsync != null && (E = await r.onSaveSuccessAsync(E)), E;
2564
+ let I;
2565
+ return r.onSaveAsync != null && (I = await r.onSaveAsync(i), I = I.data != null ? I.data : I), r.onSaveSuccessAsync != null && (I = await r.onSaveSuccessAsync(I)), I;
2572
2566
  }, {
2573
2567
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2574
2568
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2579,10 +2573,10 @@ function it(e) {
2579
2573
  });
2580
2574
  }
2581
2575
  function h(r) {
2582
- return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Er()).get(r), { ...e, ...r });
2576
+ return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Ir()).get(r), { ...e, ...r });
2583
2577
  }
2584
2578
  function u(r) {
2585
- return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Er()).post(r), { ...e, ...r });
2579
+ return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Ir()).post(r), { ...e, ...r });
2586
2580
  }
2587
2581
  return {
2588
2582
  actionLoadingMsg: l,
@@ -2593,26 +2587,26 @@ function it(e) {
2593
2587
  deleteItem: P,
2594
2588
  doAction: g,
2595
2589
  getAllItems: N,
2596
- getItem: T,
2590
+ getItem: _,
2597
2591
  isLoading: s,
2598
2592
  logError: x,
2599
2593
  restoreItem: $,
2600
2594
  saveItem: d
2601
2595
  };
2602
2596
  }
2603
- let hr = "Australia/Melbourne", Ir;
2597
+ let hr = "Australia/Melbourne", Er;
2604
2598
  const Hr = "auth-credentials-state";
2605
- function Dn() {
2606
- return Ir;
2599
+ function En() {
2600
+ return Er;
2607
2601
  }
2608
- function xn(e) {
2602
+ function Dn(e) {
2609
2603
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2610
2604
  let l = z(localStorage.getItem(Hr) ?? "");
2611
2605
  l.value.length == 0 && S();
2612
2606
  function S() {
2613
2607
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2614
2608
  }
2615
- const s = Jt("auth-credentials", {});
2609
+ const s = Zt("auth-credentials", {});
2616
2610
  function g(D) {
2617
2611
  if (D == null)
2618
2612
  return !0;
@@ -2658,12 +2652,12 @@ function xn(e) {
2658
2652
  return !0;
2659
2653
  if (L.permissions != null) {
2660
2654
  for (var A = 0; A < L.permissions.length; A++)
2661
- if (!T(L.permissions[A]))
2655
+ if (!_(L.permissions[A]))
2662
2656
  return !1;
2663
2657
  }
2664
2658
  return !0;
2665
2659
  }
2666
- function T(D) {
2660
+ function _(D) {
2667
2661
  const L = K(s);
2668
2662
  if (L.userPermissions != null)
2669
2663
  for (var f = 0; f < L.userPermissions.length; f++) {
@@ -2676,7 +2670,7 @@ function xn(e) {
2676
2670
  function N(D, L, f) {
2677
2671
  let A = !0;
2678
2672
  return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2679
- f == "edit" ? x(Q) || (A = !1) : T(Q) || (A = !1);
2673
+ f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2680
2674
  }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2681
2675
  }
2682
2676
  function $(D, L = !1) {
@@ -2685,13 +2679,13 @@ function xn(e) {
2685
2679
  if (f == null)
2686
2680
  return !1;
2687
2681
  let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2688
- return ee || !L || !Te(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
2682
+ return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
2689
2683
  $(ie, !0) && (A = !0);
2690
2684
  }), A);
2691
2685
  }
2692
2686
  function d(D) {
2693
2687
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2694
- const A = Be(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2688
+ const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2695
2689
  return L ? `${A}&redirect_path=${L}` : A;
2696
2690
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2697
2691
  }
@@ -2719,9 +2713,9 @@ function xn(e) {
2719
2713
  function y(D, L) {
2720
2714
  s.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2721
2715
  }
2722
- function I(D) {
2716
+ function E(D) {
2723
2717
  var f;
2724
- K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), _() && (y(), window.location.href = d(D)));
2718
+ K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2725
2719
  }
2726
2720
  async function i(D, L) {
2727
2721
  return e.getToken ?? (e.getToken = async () => {
@@ -2731,17 +2725,17 @@ function xn(e) {
2731
2725
  if (A != l.value)
2732
2726
  throw new Error("state does not match");
2733
2727
  let ee = "";
2734
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(qr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2728
+ e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2735
2729
  const ie = {};
2736
2730
  ie.grant_type = J, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
2737
- const W = await Er().post({
2731
+ const W = await Ir().post({
2738
2732
  additionalUrl: ee,
2739
2733
  data: ie
2740
2734
  });
2741
- E(W.access_token);
2735
+ I(W.access_token);
2742
2736
  }), await e.getToken(D, L);
2743
2737
  }
2744
- function E(D) {
2738
+ function I(D) {
2745
2739
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
2746
2740
  const L = r(D);
2747
2741
  w(L, D), e.processTokenPayload != null && e.processTokenPayload(s, L);
@@ -2758,42 +2752,42 @@ function xn(e) {
2758
2752
  }
2759
2753
  function b() {
2760
2754
  const D = K(s);
2761
- return D.isLoggedIn && _() && (y(), window.location.href = d()), D.isLoggedIn;
2755
+ return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
2762
2756
  }
2763
- function _() {
2757
+ function T() {
2764
2758
  const D = K(s);
2765
2759
  if (D == null || D.expiresOn == null)
2766
2760
  return !0;
2767
2761
  const L = de.fromFormat(D.expiresOn, t), f = de.utc();
2768
2762
  return L <= f;
2769
2763
  }
2770
- return M(), Ir = {
2764
+ return M(), Er = {
2771
2765
  authState: l,
2772
2766
  canEdit: g,
2773
2767
  canEditPermit: x,
2774
2768
  canView: P,
2775
- canViewPermit: T,
2769
+ canViewPermit: _,
2776
2770
  credentials: s,
2777
2771
  doShow: N,
2778
2772
  doShowByNav: $,
2779
2773
  getAuthorizeUrl: d,
2780
2774
  getToken: i,
2781
2775
  isLoggedIn: te(() => s.value.isLoggedIn === !0),
2782
- login: I,
2776
+ login: E,
2783
2777
  logout: y,
2784
2778
  resetAuthState: S,
2785
- setAuth: E,
2779
+ setAuth: I,
2786
2780
  timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2787
2781
  tryLogin: b
2788
- }, Ir;
2782
+ }, Er;
2789
2783
  }
2790
- function _n(e, t, l = {}) {
2784
+ function xn(e, t, l = {}) {
2791
2785
  const {
2792
2786
  preventDefault: S = !1,
2793
2787
  stopPropagation: s = !1,
2794
2788
  axis: g = "both"
2795
2789
  } = l, x = { capture: l.capture ?? !0 };
2796
- let P = { x: 0, y: 0 }, T = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2790
+ let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2797
2791
  function u(M) {
2798
2792
  K(S) && M.preventDefault(), K(s) && M.stopPropagation();
2799
2793
  }
@@ -2802,14 +2796,14 @@ function _n(e, t, l = {}) {
2802
2796
  const b = K(e);
2803
2797
  if (!b)
2804
2798
  return;
2805
- const _ = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
2806
- N = { x: L.clientX, y: L.clientY }, T = {
2807
- x: _.offsetLeft,
2808
- y: _.offsetTop
2799
+ const T = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
2800
+ N = { x: L.clientX, y: L.clientY }, _ = {
2801
+ x: T.offsetLeft,
2802
+ y: T.offsetTop
2809
2803
  }, P = {
2810
- x: _.offsetLeft,
2811
- y: _.offsetTop
2812
- }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", I)), d.push(he("touchend", I)), u(M));
2804
+ x: T.offsetLeft,
2805
+ y: T.offsetTop
2806
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", E)), d.push(he("touchend", E)), u(M));
2813
2807
  }
2814
2808
  function y(M) {
2815
2809
  var A;
@@ -2817,22 +2811,22 @@ function _n(e, t, l = {}) {
2817
2811
  return;
2818
2812
  const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
2819
2813
  let L = D.clientX - N.x, f = D.clientY - N.y;
2820
- (g === "x" || g === "both") && (P.x = T.x + L), (g === "y" || g === "both") && (P.y = T.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2814
+ (g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2821
2815
  }
2822
- function I(M) {
2816
+ function E(M) {
2823
2817
  var b;
2824
- document.documentElement.style.cursor = "", d.forEach((_) => {
2825
- _();
2818
+ document.documentElement.style.cursor = "", d.forEach((T) => {
2819
+ T();
2826
2820
  }), d.length = 0, (b = l.onEnd) == null || b.call(l, P, M), u(M);
2827
2821
  }
2828
2822
  function i(M) {
2829
2823
  const b = K(e);
2830
2824
  if (!b)
2831
2825
  return;
2832
- const _ = b.$el;
2833
- _.style.left = `${M.x}px`, _.style.top = `${M.y}px`;
2826
+ const T = b.$el;
2827
+ T.style.left = `${M.x}px`, T.style.top = `${M.y}px`;
2834
2828
  }
2835
- function E() {
2829
+ function I() {
2836
2830
  if (K(h))
2837
2831
  return;
2838
2832
  const M = K(t);
@@ -2848,35 +2842,35 @@ function _n(e, t, l = {}) {
2848
2842
  if (!M)
2849
2843
  return;
2850
2844
  const b = M.$el;
2851
- b.style.cursor = "", $.forEach((_) => {
2852
- _();
2845
+ b.style.cursor = "", $.forEach((T) => {
2846
+ T();
2853
2847
  }), $.length = 0, h.value = !1;
2854
2848
  }
2855
2849
  return {
2856
2850
  draggingIsOn: h,
2857
2851
  turnDraggableOff: w,
2858
- turnDraggableOn: E
2852
+ turnDraggableOn: I
2859
2853
  };
2860
2854
  }
2861
2855
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2862
- function Cn(e, t = {}) {
2863
- let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2856
+ function _n(e, t = {}) {
2857
+ let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2864
2858
  const u = z(!1);
2865
2859
  let r = [], y = [];
2866
- const I = z(!1), i = z({ x: 0, y: 0 });
2867
- let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2860
+ const E = z(!1), i = z({ x: 0, y: 0 });
2861
+ let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2868
2862
  function M(W) {
2869
2863
  Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2870
2864
  }
2871
2865
  function b(W, Y) {
2872
- h = Y.map(D), h.forEach((V) => W.$el.appendChild(V));
2866
+ h = Y.map(D), h.forEach((H) => W.$el.appendChild(H));
2873
2867
  }
2874
- function _(W) {
2868
+ function T(W) {
2875
2869
  h.forEach((Y) => W.$el.removeChild(Y));
2876
2870
  }
2877
2871
  function D(W) {
2878
- const Y = S + "px", V = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2879
- return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = V, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2872
+ const Y = S + "px", H = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2873
+ return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = H, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2880
2874
  }
2881
2875
  function L(W) {
2882
2876
  var ne;
@@ -2885,13 +2879,13 @@ function Cn(e, t = {}) {
2885
2879
  const Y = Ae(e);
2886
2880
  if (!Y)
2887
2881
  return;
2888
- const V = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2889
- if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
2890
- left: V.offsetLeft,
2891
- top: V.offsetTop,
2892
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2893
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
2894
- }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2882
+ const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2883
+ if (i.value.x = G.clientX, i.value.y = G.clientY, I = {
2884
+ left: H.offsetLeft,
2885
+ top: H.offsetTop,
2886
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2887
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2888
+ }, w = Lr(I), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2895
2889
  return;
2896
2890
  let X = W.target;
2897
2891
  document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", A)), y.push(he("touchmove", f)), y.push(he("touchend", A)), M(W);
@@ -2900,15 +2894,15 @@ function Cn(e, t = {}) {
2900
2894
  const Y = Ae(e);
2901
2895
  if (!Y)
2902
2896
  return;
2903
- const V = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2897
+ const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2904
2898
  let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2905
- const fe = Ae(E);
2899
+ const fe = Ae(I);
2906
2900
  if (d.includes("t")) {
2907
- const ce = Math.min(T, Math.max(P, (fe.height ?? 0) - ne));
2901
+ const ce = Math.min(_, Math.max(P, (fe.height ?? 0) - ne));
2908
2902
  w.height = ce, w.top = (fe.top ?? 0) + ne;
2909
2903
  }
2910
2904
  if (d.includes("b")) {
2911
- const ce = Math.min(T, Math.max(P, (fe.height ?? 0) + ne));
2905
+ const ce = Math.min(_, Math.max(P, (fe.height ?? 0) + ne));
2912
2906
  w.height = ce;
2913
2907
  }
2914
2908
  if (d.includes("l")) {
@@ -2919,7 +2913,7 @@ function Cn(e, t = {}) {
2919
2913
  const ce = Math.min(x, Math.max(g, (fe.width ?? 0) + X));
2920
2914
  w.width = ce;
2921
2915
  }
2922
- V.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
2916
+ H.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
2923
2917
  }
2924
2918
  function A() {
2925
2919
  document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
@@ -2933,38 +2927,38 @@ function Cn(e, t = {}) {
2933
2927
  b: "s",
2934
2928
  l: "w"
2935
2929
  };
2936
- return W.split("").map((V) => Y[V]).join("") + "-resize";
2930
+ return W.split("").map((H) => Y[H]).join("") + "-resize";
2937
2931
  }
2938
2932
  function Q(W) {
2939
2933
  const Y = Ae(e);
2940
2934
  if (!Y)
2941
2935
  return;
2942
- const V = Y.$el;
2936
+ const H = Y.$el;
2943
2937
  if (console.log(l), l !== "page" && W == "page") {
2944
- const ae = jt(V), G = Ae(ae) ?? null;
2938
+ const ae = Jt(H), G = Ae(ae) ?? null;
2945
2939
  let X = 0;
2946
2940
  if (G != null) {
2947
2941
  const ne = window.getComputedStyle(G);
2948
2942
  X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
2949
2943
  }
2950
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", V.offsetHeight, u.value = !0, ee({
2944
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, ee({
2951
2945
  height: void 0,
2952
2946
  width: X,
2953
2947
  top: 0,
2954
2948
  left: 0,
2955
2949
  position: void 0
2956
- }), he(V, "transitionend", () => {
2957
- V.style.width = "auto", V.style.top = "", V.style.left = "", V.style.position = "", V.style.transition = "", u.value = !1;
2950
+ }), he(H, "transitionend", () => {
2951
+ H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2958
2952
  }, { once: !0 });
2959
2953
  } else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
2960
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2961
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2962
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width")),
2963
- top: V.offsetTop,
2964
- left: V.offsetLeft,
2954
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, I = {
2955
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2956
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2957
+ top: H.offsetTop,
2958
+ left: H.offsetLeft,
2965
2959
  position: "absolute"
2966
- }, ee(E), V.offsetHeight;
2967
- const ae = E;
2960
+ }, ee(I), H.offsetHeight;
2961
+ const ae = I;
2968
2962
  W == "freestyle" ? w = {
2969
2963
  height: ae.height,
2970
2964
  width: (ae.width ?? 100) / 2,
@@ -2977,8 +2971,8 @@ function Cn(e, t = {}) {
2977
2971
  top: (ae.top ?? 0) + 2,
2978
2972
  left: (ae.left ?? 0) + 2,
2979
2973
  position: "absolute"
2980
- }), ee(w), he(V, "transitionend", () => {
2981
- V.style.transition = "", u.value = !1;
2974
+ }), ee(w), he(H, "transitionend", () => {
2975
+ H.style.transition = "", u.value = !1;
2982
2976
  }, { once: !0 });
2983
2977
  }
2984
2978
  }
@@ -2986,39 +2980,39 @@ function Cn(e, t = {}) {
2986
2980
  const Y = Ae(e);
2987
2981
  if (!Y)
2988
2982
  return;
2989
- const V = Y.$el;
2990
- W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
2983
+ const H = Y.$el;
2984
+ W.top ? H.style.top = `${W.top}px` : H.style.top = void 0, W.left ? H.style.left = `${W.left}px` : H.style.left = void 0, W.height ? H.style.height = `${W.height}px` : H.style.height = void 0, W.width ? H.style.width = `${W.width}px` : H.style.width = void 0, W.position ? H.style.position = `${W.position}` : H.style.position = void 0, console.log(H.style.position);
2991
2985
  }
2992
2986
  function ie(W, Y) {
2993
- if (I.value)
2987
+ if (E.value)
2994
2988
  return;
2995
- const V = Ae(e);
2996
- V && (b(V, W ?? Tn), Q(Y), r.push(he(V.$el, "mousedown", L)), r.push(he(V.$el, "touchstart", L)), I.value = !0, l = Y);
2989
+ const H = Ae(e);
2990
+ H && (b(H, W ?? Tn), Q(Y), r.push(he(H.$el, "mousedown", L)), r.push(he(H.$el, "touchstart", L)), E.value = !0, l = Y);
2997
2991
  }
2998
2992
  function we(W) {
2999
- if (!I.value)
2993
+ if (!E.value)
3000
2994
  return;
3001
2995
  const Y = Ae(e);
3002
- Y && (_(Y), Q(W), r.forEach((V) => {
3003
- V();
3004
- }), r.length = 0, I.value = !1);
2996
+ Y && (T(Y), Q(W), r.forEach((H) => {
2997
+ H();
2998
+ }), r.length = 0, E.value = !1);
3005
2999
  }
3006
3000
  return {
3007
- resizingIsOn: I,
3001
+ resizingIsOn: E,
3008
3002
  turnResizingOn: ie,
3009
3003
  turnResizingOff: we
3010
3004
  };
3011
3005
  }
3012
- function Pn(e) {
3013
- 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"), x = z({}), { turnResizingOff: P, turnResizingOn: T } = Cn(t), { turnDraggableOff: N, turnDraggableOn: $ } = _n(t, l);
3014
- Kt(t, (h) => {
3006
+ function Cn(e) {
3007
+ 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"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = _n(t), { turnDraggableOff: N, turnDraggableOn: $ } = xn(t, l);
3008
+ jt(t, (h) => {
3015
3009
  const u = h[0], { width: r } = u.contentRect;
3016
3010
  S.value = r < s;
3017
3011
  });
3018
3012
  function d(h) {
3019
- N(), h == "page" ? P(h) : h == "blade" ? T(["l", "r"], h) : h == "freestyle" ? (P(), T(void 0, h), $()) : h == "inline" && P();
3013
+ N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
3020
3014
  }
3021
- return d(g.value), _e(g, (h) => d(h)), {
3015
+ return d(g.value), Te(g, (h) => d(h)), {
3022
3016
  isMobile: S,
3023
3017
  variant: g,
3024
3018
  bladeData: x
@@ -3042,10 +3036,10 @@ const mr = {
3042
3036
  warning: "#FB8C00"
3043
3037
  };
3044
3038
  let Dr;
3045
- function ya() {
3039
+ function ga() {
3046
3040
  return Dr;
3047
3041
  }
3048
- function wa(e) {
3042
+ function ya(e) {
3049
3043
  const t = localStorage.getItem("cosmetics");
3050
3044
  let l;
3051
3045
  return t != null && t.length > 0 && (l = JSON.parse(t)), l ?? (l = {}), l.dark ?? (l.dark = e == null ? void 0 : e.dark), l.light ?? (l.light = e == null ? void 0 : e.light), l.theme ?? (l.theme = e == null ? void 0 : e.defaultTheme), {
@@ -3060,7 +3054,7 @@ function wa(e) {
3060
3054
  }
3061
3055
  };
3062
3056
  }
3063
- function Nn(e) {
3057
+ function Pn(e) {
3064
3058
  const t = z({});
3065
3059
  let l = e.vuetifyInstance;
3066
3060
  function S() {
@@ -3101,7 +3095,7 @@ function Nn(e) {
3101
3095
  function P() {
3102
3096
  t.value.drawer = !t.value.drawer;
3103
3097
  }
3104
- function T() {
3098
+ function _() {
3105
3099
  t.value.drawerStick = !t.value.drawerStick;
3106
3100
  }
3107
3101
  function N() {
@@ -3114,22 +3108,22 @@ function Nn(e) {
3114
3108
  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", "");
3115
3109
  }
3116
3110
  }
3117
- return S(), _e(t, () => {
3111
+ return S(), Te(t, () => {
3118
3112
  s();
3119
3113
  }), Dr = {
3120
3114
  state: t,
3121
3115
  resetCosmetics: g,
3122
3116
  setTemporaryColor: x,
3123
3117
  toggleDrawer: P,
3124
- toggleDrawerStick: T,
3118
+ toggleDrawerStick: _,
3125
3119
  toggleLightDark: N,
3126
3120
  undoTemporaryColor: $
3127
3121
  }, Dr;
3128
3122
  }
3129
- const ba = {
3123
+ const wa = {
3130
3124
  canExportCSV: !1
3131
3125
  };
3132
- function Mn() {
3126
+ function Nn() {
3133
3127
  function e(t) {
3134
3128
  const {
3135
3129
  items: l,
@@ -3137,32 +3131,32 @@ function Mn() {
3137
3131
  fileName: s = "data.csv",
3138
3132
  format: g = "file"
3139
3133
  } = t;
3140
- if (!Te(l))
3134
+ if (!_e(l))
3141
3135
  return;
3142
3136
  let x = [];
3143
- S != null ? x = S == null ? void 0 : S.filter((I) => (I.csv ?? I.csvText ?? I.csvFilter ?? I.csvArray) != null).map((I) => ({
3144
- header: I.title ?? I.value ?? "",
3145
- itemText: I.itemText,
3146
- value: I.value
3147
- })) : x = Object.keys(l[0]).map((I) => ({ header: nn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3137
+ S != null ? x = S == null ? void 0 : S.filter((E) => (E.csv ?? E.csvText ?? E.csvFilter ?? E.csvArray) != null).map((E) => ({
3138
+ header: E.title ?? E.value ?? "",
3139
+ itemText: E.itemText,
3140
+ value: E.value
3141
+ })) : x = Object.keys(l[0]).map((E) => ({ header: tn(E) ?? "", value: E })), x = x.filter((E) => E.header.length > 0);
3148
3142
  var P = [];
3149
- for (let I = 0; I < l.length; I++) {
3150
- const i = l[I];
3151
- var T = {}, N = [];
3152
- for (let E = 0; E < x.length; E++) {
3153
- const w = x[E];
3143
+ for (let E = 0; E < l.length; E++) {
3144
+ const i = l[E];
3145
+ var _ = {}, N = [];
3146
+ for (let I = 0; I < x.length; I++) {
3147
+ const w = x[I];
3154
3148
  var $ = null;
3155
- typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? T[w.header] = Sr($, w.itemText) : T[w.header] = $;
3149
+ 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] = $;
3156
3150
  }
3157
- P.push(T), Te(N) && N.forEach((E) => {
3158
- P.push(E);
3151
+ P.push(_), _e(N) && N.forEach((I) => {
3152
+ P.push(I);
3159
3153
  }), N = [];
3160
3154
  }
3161
3155
  var d = [];
3162
- if (d.push(x.map((I) => I.header).toString()), P.forEach((I) => {
3156
+ if (d.push(x.map((E) => E.header).toString()), P.forEach((E) => {
3163
3157
  let i = [];
3164
- x.forEach(function(E) {
3165
- var w = I[E.header];
3158
+ x.forEach(function(I) {
3159
+ var w = E[I.header];
3166
3160
  i.push(w ?? "");
3167
3161
  }), d.push(i.join(","));
3168
3162
  }), g == "array")
@@ -3183,10 +3177,10 @@ function Mn() {
3183
3177
  };
3184
3178
  }
3185
3179
  let xr;
3186
- function Sa() {
3180
+ function ba() {
3187
3181
  return xr;
3188
3182
  }
3189
- function Ln(e) {
3183
+ function Mn(e) {
3190
3184
  const t = e.getUTC ?? de.utc;
3191
3185
  function l() {
3192
3186
  return s().startOf("day").toUTC().toString() ?? "";
@@ -3194,27 +3188,27 @@ function Ln(e) {
3194
3188
  function S() {
3195
3189
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3196
3190
  }
3197
- function s(T, N) {
3198
- return T == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(T, N, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3191
+ function s(_, N) {
3192
+ return _ == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(_, N, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
3199
3193
  }
3200
- function g(T, N, $) {
3201
- if (T == null) {
3194
+ function g(_, N, $) {
3195
+ if (_ == null) {
3202
3196
  const h = t().setZone(e.getTimeZone());
3203
3197
  return N ? h.toFormat(N) : h.toString();
3204
3198
  }
3205
- if (T == "Invalid DateTime")
3199
+ if (_ == "Invalid DateTime")
3206
3200
  return "";
3207
- const d = $ ? de.fromFormat(T, $, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3201
+ const d = $ ? de.fromFormat(_, $, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
3208
3202
  return N ? d.toFormat(N) : d == null ? void 0 : d.toString();
3209
3203
  }
3210
- function x(T, N) {
3211
- return T == null ? t() : N ? de.fromFormat(T, N) : de.fromISO(T);
3204
+ function x(_, N) {
3205
+ return _ == null ? t() : N ? de.fromFormat(_, N) : de.fromISO(_);
3212
3206
  }
3213
- function P(T, N, $) {
3214
- if (T == null)
3207
+ function P(_, N, $) {
3208
+ if (_ == null)
3215
3209
  return N ? t().toFormat(N) : t().toString();
3216
3210
  {
3217
- const d = $ ? de.fromFormat(T, $) : de.fromISO(T);
3211
+ const d = $ ? de.fromFormat(_, $) : de.fromISO(_);
3218
3212
  return N ? d.toFormat(N) : d.toString();
3219
3213
  }
3220
3214
  }
@@ -3227,11 +3221,11 @@ function Ln(e) {
3227
3221
  utcString: P
3228
3222
  }, xr;
3229
3223
  }
3230
- let _r;
3231
- function Aa() {
3232
- return _r;
3224
+ let Tr;
3225
+ function Sa() {
3226
+ return Tr;
3233
3227
  }
3234
- function Rn(e) {
3228
+ function Ln(e) {
3235
3229
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3236
3230
  function S() {
3237
3231
  t.value = !0;
@@ -3253,7 +3247,7 @@ function Rn(e) {
3253
3247
  return Promise.resolve("no demo data available for this api");
3254
3248
  const h = d.id ?? ((r = d.data) == null ? void 0 : r.id), u = g(d);
3255
3249
  if (h != null && (u == null ? void 0 : u.data) != null) {
3256
- const y = u.data.findIndex((I) => I.id == h);
3250
+ const y = u.data.findIndex((E) => E.id == h);
3257
3251
  y >= 0 && u.data.splice(y, 1);
3258
3252
  }
3259
3253
  return new Promise(function(y) {
@@ -3263,20 +3257,20 @@ function Rn(e) {
3263
3257
  });
3264
3258
  }
3265
3259
  function P(d) {
3266
- var y, I, i;
3260
+ var y, E, i;
3267
3261
  if (l == null)
3268
3262
  throw new Error("no demo data available for this api");
3269
3263
  const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
3270
3264
  let r;
3271
- return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (I = u.data) == null ? void 0 : I.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) => {
3265
+ return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (E = u.data) == null ? void 0 : E.find((I) => I.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((I) => {
3272
3266
  setTimeout(() => {
3273
- E({
3267
+ I({
3274
3268
  data: r
3275
3269
  });
3276
3270
  });
3277
3271
  });
3278
3272
  }
3279
- function T(d) {
3273
+ function _(d) {
3280
3274
  if (l == null)
3281
3275
  throw new Error("no demo data available for this api");
3282
3276
  const h = g(d);
@@ -3297,9 +3291,9 @@ function Rn(e) {
3297
3291
  throw new Error("no demo data available for this api");
3298
3292
  const h = g(d);
3299
3293
  let u;
3300
- 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((I) => {
3294
+ 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((E) => {
3301
3295
  setTimeout(() => {
3302
- I({
3296
+ E({
3303
3297
  data: u
3304
3298
  });
3305
3299
  });
@@ -3315,39 +3309,39 @@ function Rn(e) {
3315
3309
  if (h.data ?? (h.data = []), h.patchAction != null)
3316
3310
  u = h.patchAction(h.data, d.data);
3317
3311
  else if (d.data.id != null) {
3318
- const I = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3319
- I != null && I > -1 && ((y = h.data) == null || y.splice(I, 1, d.data)), u = d.data;
3312
+ const E = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3313
+ E != null && E > -1 && ((y = h.data) == null || y.splice(E, 1, d.data)), u = d.data;
3320
3314
  }
3321
3315
  }
3322
- return u == null ? Promise.resolve(void 0) : new Promise((I) => {
3316
+ return u == null ? Promise.resolve(void 0) : new Promise((E) => {
3323
3317
  setTimeout(() => {
3324
- I({
3318
+ E({
3325
3319
  data: u
3326
3320
  });
3327
3321
  });
3328
3322
  });
3329
3323
  }
3330
- return _r = {
3324
+ return Tr = {
3331
3325
  endDemo: s,
3332
3326
  isDemoing: t,
3333
3327
  startDemo: S,
3334
3328
  data: l,
3335
3329
  deleteItem: x,
3336
3330
  get: P,
3337
- getAll: T,
3331
+ getAll: _,
3338
3332
  post: N,
3339
3333
  patch: $
3340
- }, _r;
3334
+ }, Tr;
3341
3335
  }
3342
- var Un = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
- function Ea(e) {
3336
+ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3337
+ function Aa(e) {
3344
3338
  function t(l) {
3345
3339
  var s;
3346
3340
  const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3347
3341
  if (S)
3348
3342
  document.title = S.meta.title;
3349
3343
  else {
3350
- const g = Un.NODE_ENV;
3344
+ const g = Rn.VITE_NODE_ENV;
3351
3345
  let x = "";
3352
3346
  g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
3353
3347
  }
@@ -3356,13 +3350,13 @@ function Ea(e) {
3356
3350
  updateMeta: t
3357
3351
  };
3358
3352
  }
3359
- let Tr;
3353
+ let _r;
3360
3354
  function Ia() {
3361
- return Tr;
3355
+ return _r;
3362
3356
  }
3363
- function Bn(e) {
3357
+ function Un(e) {
3364
3358
  function t(f, A, J) {
3365
- return f ? ln(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3359
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3366
3360
  }
3367
3361
  function l(f) {
3368
3362
  if (!f)
@@ -3394,7 +3388,7 @@ function Bn(e) {
3394
3388
  function P(f, A) {
3395
3389
  return t(f, "ccc dd LLL yyyy", A);
3396
3390
  }
3397
- function T(f, A) {
3391
+ function _(f, A) {
3398
3392
  return t(f, "ccc dd LLL @ hh:mm a", A);
3399
3393
  }
3400
3394
  function N(f) {
@@ -3413,7 +3407,7 @@ function Bn(e) {
3413
3407
  return e.dates.utcString(f, A);
3414
3408
  }
3415
3409
  function u(f) {
3416
- return tt(f, !1);
3410
+ return rt(f, !1);
3417
3411
  }
3418
3412
  function r(f) {
3419
3413
  if (!f)
@@ -3426,7 +3420,7 @@ function Bn(e) {
3426
3420
  function y(f, A) {
3427
3421
  return t(f, "ddd DD MMM YYYY", A);
3428
3422
  }
3429
- function I(f, A) {
3423
+ function E(f, A) {
3430
3424
  return t(f, "ccc dd LLL yyyy hh:mm a", A);
3431
3425
  }
3432
3426
  function i(f) {
@@ -3436,7 +3430,7 @@ function Bn(e) {
3436
3430
  });
3437
3431
  return A.format(f);
3438
3432
  }
3439
- function E(f) {
3433
+ function I(f) {
3440
3434
  return f.replaceAll(",", " ");
3441
3435
  }
3442
3436
  function w(f, A) {
@@ -3448,7 +3442,7 @@ function Bn(e) {
3448
3442
  function b(f, A) {
3449
3443
  return t(f, "hh:mm a", A);
3450
3444
  }
3451
- function _(f) {
3445
+ function T(f) {
3452
3446
  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";
3453
3447
  }
3454
3448
  const D = {
@@ -3458,7 +3452,7 @@ function Bn(e) {
3458
3452
  toDayMonth: g,
3459
3453
  toDayOfWeek: x,
3460
3454
  toDayShortDate: P,
3461
- toDayShortDateAndTime: T,
3455
+ toDayShortDateAndTime: _,
3462
3456
  toDisplayNumber: N,
3463
3457
  toDisplayNumberOver: $,
3464
3458
  toDisplayNumberSigned: d,
@@ -3466,13 +3460,13 @@ function Bn(e) {
3466
3460
  toLocationLine: u,
3467
3461
  toLocationLineNoCommas: r,
3468
3462
  toLongDate: y,
3469
- toLongDateAndTime: I,
3463
+ toLongDateAndTime: E,
3470
3464
  toPercent: i,
3471
- toPrettyCSV: E,
3465
+ toPrettyCSV: I,
3472
3466
  toShortDate: w,
3473
3467
  toShortDateAndTime: M,
3474
3468
  toTime: b,
3475
- toTimeOfDay: _
3469
+ toTimeOfDay: T
3476
3470
  };
3477
3471
  function L(f) {
3478
3472
  if (f != null) {
@@ -3482,24 +3476,24 @@ function Bn(e) {
3482
3476
  }
3483
3477
  return (A) => A;
3484
3478
  }
3485
- return Tr = {
3479
+ return _r = {
3486
3480
  findFilter: L,
3487
3481
  ...D
3488
- }, Tr;
3482
+ }, _r;
3489
3483
  }
3490
- function $n(e, t) {
3491
- const l = z(!1), S = Zt(e);
3484
+ function Bn(e, t) {
3485
+ const l = z(!1), S = Yt(e);
3492
3486
  let s = g(K(e));
3493
- (t == null ? void 0 : t.useTracker) !== !1 && _e(S, (P) => {
3487
+ (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3494
3488
  l.value = g(P) != s;
3495
3489
  }, { deep: !0 });
3496
3490
  function g(P) {
3497
- const T = Lr(P);
3491
+ const _ = Lr(P);
3498
3492
  return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((N) => {
3499
- delete T[N];
3493
+ delete _[N];
3500
3494
  }) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
3501
- t.propsToTrack.some((d) => d == $) || delete T[$];
3502
- })), JSON.stringify(T);
3495
+ t.propsToTrack.some((d) => d == $) || delete _[$];
3496
+ })), JSON.stringify(_);
3503
3497
  }
3504
3498
  function x() {
3505
3499
  s = g(K(S)), l.value = !1;
@@ -3510,15 +3504,15 @@ function $n(e, t) {
3510
3504
  restartTracker: x
3511
3505
  };
3512
3506
  }
3513
- function Da(e, t) {
3507
+ function Ea(e, t) {
3514
3508
  var ae;
3515
3509
  const {
3516
3510
  // useBladeSrc = true,
3517
3511
  useRouteSrc: l = !0
3518
- } = 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", x = Mr(), P = rt(), T = K(e.proxyQueryKey), N = te(() => {
3512
+ } = 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", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3519
3513
  var G;
3520
- return K(e.proxyID) ?? (T != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[T] : void 0);
3521
- }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = it({
3514
+ return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3515
+ }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: E, saveItem: i } = ut({
3522
3516
  nav: g,
3523
3517
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3524
3518
  proxyID: N.value,
@@ -3527,25 +3521,25 @@ function Da(e, t) {
3527
3521
  storageMode: s,
3528
3522
  nav: g
3529
3523
  })
3530
- }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), _ = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3531
- if (_.value == "new")
3524
+ }), I = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3525
+ if (T.value == "new")
3532
3526
  return !1;
3533
3527
  const G = K($);
3534
3528
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3535
3529
  }), f = te(() => {
3536
- if (_.value == "new")
3530
+ if (T.value == "new")
3537
3531
  return !1;
3538
3532
  const G = K($);
3539
3533
  return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3540
3534
  }), A = te(() => {
3541
- if (_.value == "new")
3535
+ if (T.value == "new")
3542
3536
  return !1;
3543
3537
  const G = K($);
3544
3538
  return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
3545
3539
  }), J = te(() => {
3546
3540
  const G = K($);
3547
3541
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3548
- }), { isChanged: Q, restartTracker: ee } = $n($, {
3542
+ }), { isChanged: Q, restartTracker: ee } = Bn($, {
3549
3543
  useTracker: e.trackChanges,
3550
3544
  propsToIgnore: e.trackIgnoreProps,
3551
3545
  propsToTrack: e.trackProps
@@ -3576,7 +3570,7 @@ function Da(e, t) {
3576
3570
  onRestoreSuccessAsync: fe,
3577
3571
  proxyID: ce
3578
3572
  } = { ...e };
3579
- I({
3573
+ E({
3580
3574
  additionalUrl: X,
3581
3575
  data: G,
3582
3576
  nav: g,
@@ -3616,8 +3610,8 @@ function Da(e, t) {
3616
3610
  additionalUrl: ne,
3617
3611
  onCanSaveAsync: fe,
3618
3612
  onGetSaveAsync: ce,
3619
- onSaveAsync: Ee,
3620
- onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), _.value = "view"), Promise.resolve(void 0))
3613
+ onSaveAsync: Ie,
3614
+ onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), T.value = "view"), Promise.resolve(void 0))
3621
3615
  } = { ...e };
3622
3616
  i({
3623
3617
  additionalUrl: ne,
@@ -3625,58 +3619,58 @@ function Da(e, t) {
3625
3619
  nav: g,
3626
3620
  onCanSaveAsync: fe,
3627
3621
  onGetSaveAsync: ce,
3628
- onSaveAsync: Ee,
3622
+ onSaveAsync: Ie,
3629
3623
  onSaveSuccessAsync: $e,
3630
3624
  proxyID: N.value,
3631
3625
  // ...params.getOptions(),
3632
3626
  // ...(useBladeSrc ? bladeData.value : {}),
3633
- mode: _.value
3627
+ mode: T.value
3634
3628
  });
3635
3629
  }
3636
- function V() {
3637
- const G = K(_);
3638
- !G || G == "view" ? _.value = "edit" : G == "edit" && (_.value = "view");
3630
+ function H() {
3631
+ const G = K(T);
3632
+ !G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
3639
3633
  }
3640
- return _e(E, (G) => {
3634
+ return Te(I, (G) => {
3641
3635
  D.value = G != null;
3642
- }), _e(() => e.refreshToggle, () => {
3636
+ }), Te(() => e.refreshToggle, () => {
3643
3637
  W({ deepRefresh: !0 });
3644
- }), Or(async () => {
3638
+ }), Xr(async () => {
3645
3639
  var G;
3646
3640
  e.eager == !0 && await W({ deepRefresh: ((G = P == null ? void 0 : P.params) == null ? void 0 : G.refresh) == "true" });
3647
3641
  }), {
3648
3642
  asyncItem: $,
3649
3643
  deleteItem: ie,
3650
- errorMsg: E,
3644
+ errorMsg: I,
3651
3645
  isChanged: Q,
3652
3646
  isDeletable: L,
3653
- isEditing: te(() => _.value == "new" || _.value == "edit"),
3647
+ isEditing: te(() => T.value == "new" || T.value == "edit"),
3654
3648
  isEditable: f,
3655
3649
  isLoading: M,
3656
- isNew: te(() => _.value == "new"),
3650
+ isNew: te(() => T.value == "new"),
3657
3651
  isRestorable: A,
3658
3652
  isSaveable: J,
3659
3653
  loadingMsg: w,
3660
- mode: _,
3654
+ mode: T,
3661
3655
  refresh: W,
3662
3656
  restoreItem: we,
3663
3657
  saveItem: Y,
3664
3658
  showError: D,
3665
- toggleMode: V
3659
+ toggleMode: H
3666
3660
  };
3667
3661
  }
3668
- const zr = z(!0), Yr = z(!1), Zr = z(), gr = z(!1);
3662
+ const Vr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
3669
3663
  let yr = null, Cr;
3670
- function ct() {
3664
+ function it() {
3671
3665
  return Cr;
3672
3666
  }
3673
- function Fn(e) {
3667
+ function $n(e) {
3674
3668
  const t = e.defaultCacheExpiryHours ?? 7;
3675
3669
  e.getDisplayName ?? (e.getDisplayName = (h) => {
3676
3670
  if (h.displayName != null)
3677
3671
  return h.displayName;
3678
3672
  if (h.name != null)
3679
- return an(h.name.replaceAll("-", " "));
3673
+ return nn(h.name.replaceAll("-", " "));
3680
3674
  });
3681
3675
  const l = (e.navItems ?? []).map((h) => ({
3682
3676
  displayName: h.displayName ?? e.getDisplayName(h),
@@ -3699,16 +3693,16 @@ function Fn(e) {
3699
3693
  return (u = P(h)) == null ? void 0 : u.icon;
3700
3694
  }
3701
3695
  function P(h) {
3702
- return h == null ? null : typeof h != "string" ? h : nt(l, (r) => r.children).find((r) => {
3696
+ return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3703
3697
  var y;
3704
- return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((I) => I == h));
3698
+ return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((E) => E == h));
3705
3699
  }) ?? null;
3706
3700
  }
3707
- function T(h) {
3701
+ function _(h) {
3708
3702
  const u = P(h);
3709
3703
  if (u == null)
3710
3704
  return;
3711
- let r = yn(u.microservice ?? "default") ?? "";
3705
+ let r = gn(u.microservice ?? "default") ?? "";
3712
3706
  return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3713
3707
  }
3714
3708
  function N(h) {
@@ -3717,7 +3711,7 @@ function Fn(e) {
3717
3711
  return u.singleName;
3718
3712
  const r = u == null ? void 0 : u.displayName;
3719
3713
  if (r != null)
3720
- return vn(r);
3714
+ return mn(r);
3721
3715
  }
3722
3716
  function $(h) {
3723
3717
  const u = P(h);
@@ -3727,14 +3721,14 @@ function Fn(e) {
3727
3721
  if (h == null)
3728
3722
  return;
3729
3723
  const u = typeof h == "string" ? P(h) : h;
3730
- Zr.value = u == null ? void 0 : u.background, Yr.value = (u == null ? void 0 : u.hideNavigation) !== !0, zr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3724
+ Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Vr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3731
3725
  r.preventDefault();
3732
3726
  }));
3733
3727
  }
3734
3728
  return Cr = {
3735
- showAppBar: zr,
3736
- showAppNavigation: Yr,
3737
- backgroundName: Zr,
3729
+ showAppBar: Vr,
3730
+ showAppNavigation: zr,
3731
+ backgroundName: Yr,
3738
3732
  hesitate: gr,
3739
3733
  navigationItems: l,
3740
3734
  findArchiveName: S,
@@ -3743,59 +3737,59 @@ function Fn(e) {
3743
3737
  findIcon: x,
3744
3738
  findItem: P,
3745
3739
  findStoreName: $,
3746
- findPath: T,
3740
+ findPath: _,
3747
3741
  findSingleDisplay: N,
3748
3742
  updateNavigationProperties: d
3749
3743
  }, Cr;
3750
3744
  }
3751
- function xa(e, t, l) {
3752
- var qe, Ve;
3753
- const S = Mn(), s = ct(), g = Mr(), x = rt(), { bladeData: P } = Pn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Qt([
3745
+ function Da(e, t, l) {
3746
+ var qe, He;
3747
+ const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((He = s.findItem($)) == null ? void 0 : He.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Kt([
3754
3748
  ...u.filter((U) => U.name != null).map((U) => U.name),
3755
3749
  ...e.defaultFilters ?? [],
3756
3750
  ...r.value
3757
- ]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3758
- let i = z([...I.value]);
3759
- const E = te(() => Wr(i, I).value.length > 0 || Wr(I, i).value.length > 0), w = z(M());
3751
+ ]).value), E = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3752
+ let i = z([...E.value]);
3753
+ const I = te(() => Gr(i, E).value.length > 0 || Gr(E, i).value.length > 0), w = z(M());
3760
3754
  function M() {
3761
3755
  var U, j;
3762
- if (T) {
3763
- const H = (U = P.value) == null ? void 0 : U.page;
3764
- if (H != null)
3765
- return Number.parseInt(H);
3756
+ if (_) {
3757
+ const V = (U = P.value) == null ? void 0 : U.page;
3758
+ if (V != null)
3759
+ return Number.parseInt(V);
3766
3760
  }
3767
3761
  if (N) {
3768
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3769
- if (H != null)
3770
- return Number.parseInt(typeof H == "string" ? H : H.toString());
3762
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3763
+ if (V != null)
3764
+ return Number.parseInt(typeof V == "string" ? V : V.toString());
3771
3765
  }
3772
3766
  return 1;
3773
3767
  }
3774
3768
  const b = te(() => {
3775
3769
  var U, j;
3776
- if (T) {
3777
- const H = (U = P.value) == null ? void 0 : U.proxyID;
3778
- if (H != null)
3779
- return H;
3770
+ if (_) {
3771
+ const V = (U = P.value) == null ? void 0 : U.proxyID;
3772
+ if (V != null)
3773
+ return V;
3780
3774
  }
3781
3775
  if (N) {
3782
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3783
- if (H != null)
3784
- return H;
3776
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3777
+ if (V != null)
3778
+ return V;
3785
3779
  }
3786
3780
  return e.proxyID;
3787
- }), _ = z(D());
3781
+ }), T = z(D());
3788
3782
  function D() {
3789
3783
  var U, j;
3790
- if (T) {
3791
- const H = (U = P.value) == null ? void 0 : U.search;
3792
- if (H != null)
3793
- return H;
3784
+ if (_) {
3785
+ const V = (U = P.value) == null ? void 0 : U.search;
3786
+ if (V != null)
3787
+ return V;
3794
3788
  }
3795
3789
  if (N) {
3796
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3797
- if (H != null)
3798
- return H;
3790
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3791
+ if (V != null)
3792
+ return V;
3799
3793
  }
3800
3794
  }
3801
3795
  const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
@@ -3803,7 +3797,7 @@ function xa(e, t, l) {
3803
3797
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3804
3798
  ]), A = z([]), J = Re([]), Q = z([]);
3805
3799
  let ee;
3806
- const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: V, getAllItems: ae, restoreItem: G } = it({
3800
+ const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = ut({
3807
3801
  nav: $,
3808
3802
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3809
3803
  proxyID: b.value,
@@ -3812,30 +3806,30 @@ function xa(e, t, l) {
3812
3806
  storageMode: h,
3813
3807
  nav: $
3814
3808
  })
3815
- }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3809
+ }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ie = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3816
3810
  let U, j = [];
3817
- I.value.forEach((O) => {
3811
+ E.value.forEach((O) => {
3818
3812
  const oe = y.value[O], ve = u.find((De) => De.name == oe);
3819
3813
  ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : j.push(oe);
3820
3814
  });
3821
- const H = {};
3822
- return Te(j) && (H.filterBy = j.toString()), U != null && (H.query = U), H;
3815
+ const V = {};
3816
+ return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
3823
3817
  }), rr = te(() => {
3824
3818
  var j;
3825
3819
  let U = e.params != null ? { ...e.params } : {};
3826
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), _.value != null && (U.searchString = _.value), U;
3820
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), T.value != null && (U.searchString = T.value), U;
3827
3821
  }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3828
3822
  let U = new Array();
3829
- return Pe.value.filter((H) => H.sublevel != null).forEach((H) => {
3830
- let O = U.find((oe) => oe.position == H.sublevel);
3831
- O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3832
- }), U.sort(Ue.firstBy((H) => H.position));
3823
+ return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
3824
+ let O = U.find((oe) => oe.position == V.sublevel);
3825
+ O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
3826
+ }), U.sort(Ue.firstBy((V) => V.position));
3833
3827
  }), lr = te(() => {
3834
3828
  let U = new Array();
3835
- return Pe.value.filter((H) => H.level != null).forEach((H) => {
3836
- let O = U.find((oe) => oe.position == H.level);
3837
- O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3838
- }), U.sort(Ue.firstBy((H) => H.position));
3829
+ return Pe.value.filter((V) => V.level != null).forEach((V) => {
3830
+ let O = U.find((oe) => oe.position == V.level);
3831
+ O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
3832
+ }), U.sort(Ue.firstBy((V) => V.position));
3839
3833
  }), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3840
3834
  function be(U) {
3841
3835
  if (e.itemBladeName != null) {
@@ -3853,7 +3847,7 @@ function xa(e, t, l) {
3853
3847
  function ir(U) {
3854
3848
  const {
3855
3849
  additionalUrl: j,
3856
- onDeleteAsync: H
3850
+ onDeleteAsync: V
3857
3851
  } = { ...e }, O = K(U), oe = O.id, ve = (De) => {
3858
3852
  if (De != null) {
3859
3853
  let Se = A.value.findIndex((se) => se.id == De);
@@ -3874,7 +3868,7 @@ function xa(e, t, l) {
3874
3868
  data: O,
3875
3869
  nav: $,
3876
3870
  onCanDeleteAsync: e.onCanDeleteAsync,
3877
- onDeleteAsync: H,
3871
+ onDeleteAsync: V,
3878
3872
  onDeleteSuccessAsync: async () => (ve(oe), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3879
3873
  proxyID: b.value,
3880
3874
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -3900,9 +3894,9 @@ function xa(e, t, l) {
3900
3894
  }
3901
3895
  function Ne() {
3902
3896
  let U = K(A);
3903
- if (U = e.onFilter ? e.onFilter(U) : U, _.value != null && _.value.length > 0) {
3897
+ if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3904
3898
  let j = [...f.value];
3905
- e.itemText && j.push(e.itemText), Te(j) && (U = U.filter((H) => hn(H, _.value, j)));
3899
+ e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((V) => dn(V, T.value, j)));
3906
3900
  }
3907
3901
  J.value = U;
3908
3902
  }
@@ -3910,8 +3904,8 @@ function xa(e, t, l) {
3910
3904
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3911
3905
  e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3912
3906
  }
3913
- async function Ie(U) {
3914
- if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, _.value = void 0), e.items != null) {
3907
+ async function Ee(U) {
3908
+ if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ie.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3915
3909
  A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3916
3910
  return;
3917
3911
  }
@@ -3930,28 +3924,28 @@ function xa(e, t, l) {
3930
3924
  onGetSuccessAsync: e.onGetSuccessAsync
3931
3925
  };
3932
3926
  if (e.isSingle === !0)
3933
- j.id === "new" ? A.value = [] : A.value = await V(j);
3927
+ j.id === "new" ? A.value = [] : A.value = await H(j);
3934
3928
  else {
3935
- let H = await ae({
3929
+ let V = await ae({
3936
3930
  ...j,
3937
3931
  onGetSuccessAsync: async (O, oe) => {
3938
3932
  let ve = O == null ? void 0 : O.data;
3939
3933
  return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3940
3934
  }
3941
3935
  });
3942
- A.value = H, i.value = [...I.value];
3936
+ A.value = V, i.value = [...E.value];
3943
3937
  }
3944
3938
  Ne();
3945
3939
  }
3946
3940
  function Je(U, j) {
3947
- const H = K(U);
3948
- if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
3941
+ const V = K(U);
3942
+ if (V != null && V === ee && e.canUnselect ? ee = null : ee = V, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
3949
3943
  if (e.onSelectItem != null)
3950
3944
  e.onSelectItem(ee);
3951
3945
  else {
3952
3946
  let O = {
3953
3947
  bladeName: e.itemBladeName,
3954
- id: H.id,
3948
+ id: V.id,
3955
3949
  nav: $
3956
3950
  };
3957
3951
  j == "page" && g.push({
@@ -3961,21 +3955,21 @@ function xa(e, t, l) {
3961
3955
  }
3962
3956
  }
3963
3957
  function je() {
3964
- Ee.value ? (Ee.value = e.showSearch ?? !1, _.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3958
+ Ie.value ? (Ie.value = e.showSearch ?? !1, T.value = void 0, Ee()) : Ie.value = e.showSearch ?? !0;
3965
3959
  }
3966
- return We(), Xt([_], () => {
3960
+ return We(), Qt([T], () => {
3967
3961
  Ne();
3968
- }, { debounce: 500, maxWait: 500 }), _e([L, w], async () => {
3969
- await Ie();
3970
- }), _e([X, () => e.errorMsg], ([U, j]) => {
3962
+ }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3963
+ await Ee();
3964
+ }), Te([X, () => e.errorMsg], ([U, j]) => {
3971
3965
  ce.value = U != null || j != null;
3972
- }), _e(() => e.refreshToggle, () => {
3973
- Ie({ deepRefresh: !0 });
3974
- }), pr([A, () => e.items], () => {
3966
+ }), Te(() => e.refreshToggle, () => {
3967
+ Ee({ deepRefresh: !0 });
3968
+ }), Or([A, () => e.items], () => {
3975
3969
  Ne();
3976
- }), Or(async () => {
3970
+ }), Xr(async () => {
3977
3971
  var U;
3978
- e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3972
+ e.eager == !0 && await Ee({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3979
3973
  }), {
3980
3974
  add: be,
3981
3975
  asyncItems: A,
@@ -3986,21 +3980,21 @@ function xa(e, t, l) {
3986
3980
  exportToCSV: Fe,
3987
3981
  filteredItems: J,
3988
3982
  filters: y,
3989
- filtersChanged: E,
3983
+ filtersChanged: I,
3990
3984
  headerOptions: Q,
3991
3985
  isDeletable: tr,
3992
3986
  isLoading: fe,
3993
3987
  isRestorable: nr,
3994
3988
  loadingMsg: ne,
3995
- refresh: Ie,
3989
+ refresh: Ee,
3996
3990
  restoreItem: Ze,
3997
- searchString: _,
3998
- selectedFilters: I,
3991
+ searchString: T,
3992
+ selectedFilters: E,
3999
3993
  selectItem: Je,
4000
3994
  // serverFilters,
4001
3995
  showError: ce,
4002
3996
  showInactive: L,
4003
- showSearch: Ee,
3997
+ showSearch: Ie,
4004
3998
  subtitleOptions: ar,
4005
3999
  tableHeaders: Pe,
4006
4000
  titleOptions: lr,
@@ -4009,7 +4003,7 @@ function xa(e, t, l) {
4009
4003
  };
4010
4004
  }
4011
4005
  let Ge;
4012
- function kn(e) {
4006
+ function Fn(e) {
4013
4007
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
4008
  return Ge = {
4015
4009
  currentGroup: t,
@@ -4017,8 +4011,8 @@ function kn(e) {
4017
4011
  useRoutes: e == null ? void 0 : e.useRoutes
4018
4012
  }, Ge;
4019
4013
  }
4020
- function _a() {
4021
- const e = Mr(), t = ct(), l = Dn();
4014
+ function xa() {
4015
+ const e = Mr(), t = it(), l = En();
4022
4016
  let S = e.getRoutes();
4023
4017
  return {
4024
4018
  ...Ge,
@@ -4028,25 +4022,25 @@ function _a() {
4028
4022
  const s = [];
4029
4023
  return S.forEach((x) => {
4030
4024
  var d;
4031
- const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), T = t.findItem(x.meta.nav), N = x.meta;
4025
+ const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
4032
4026
  let $ = s.find((h) => h.displayName == N.menuGroup);
4033
4027
  $ == null && ($ = {
4034
4028
  displayName: N.menuGroup,
4035
- icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (T == null ? void 0 : T.icon),
4029
+ icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
4036
4030
  isGroup: !0,
4037
4031
  items: []
4038
4032
  }, s.push($)), (d = $.items) == null || d.push({
4039
- displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(T ?? void 0),
4040
- icon: (N == null ? void 0 : N.icon) ?? t.findIcon(T ?? void 0),
4041
- permissions: (N == null ? void 0 : N.permissions) ?? (T == null ? void 0 : T.permissions) ?? [],
4033
+ displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
4034
+ icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
4035
+ permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4042
4036
  requiresAuth: (N == null ? void 0 : N.requiresAuth) !== !1,
4043
- subscriptions: (N == null ? void 0 : N.subscriptions) ?? (T == null ? void 0 : T.subscriptions) ?? [],
4044
- subFilters: (N == null ? void 0 : N.subFilters) ?? (T == null ? void 0 : T.subFilters) ?? [],
4037
+ subscriptions: (N == null ? void 0 : N.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4038
+ subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4045
4039
  routeName: x.name
4046
4040
  });
4047
4041
  }), s.forEach((x) => {
4048
4042
  var P;
4049
- x.items = (P = x.items) == null ? void 0 : P.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Ue.firstBy((T) => T.displayName));
4043
+ x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Ue.firstBy((_) => _.displayName));
4050
4044
  }), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4051
4045
  })
4052
4046
  };
@@ -4055,7 +4049,7 @@ let Pr;
4055
4049
  function Ta(e) {
4056
4050
  return Pr.usePresets(e);
4057
4051
  }
4058
- function Gn(e) {
4052
+ function kn(e) {
4059
4053
  function t(l) {
4060
4054
  if (!l)
4061
4055
  return {};
@@ -4066,34 +4060,34 @@ function Gn(e) {
4066
4060
  usePresets: t
4067
4061
  }, Pr;
4068
4062
  }
4069
- let Jr, jr, Kr, Qr = !1;
4070
- const wr = z(!1), br = z(!1), Xr = z(), pe = z();
4063
+ let Zr, Jr, jr, Kr = !1;
4064
+ const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4071
4065
  let Nr;
4072
- function Ca() {
4066
+ function _a() {
4073
4067
  return Nr;
4074
4068
  }
4075
- function Wn() {
4069
+ function Gn() {
4076
4070
  function e(x) {
4077
4071
  pe.value = x.detail, br.value = !0;
4078
4072
  }
4079
4073
  function t() {
4080
- Qr || (Qr = !0, window.location.reload());
4074
+ Kr || (Kr = !0, window.location.reload());
4081
4075
  }
4082
4076
  function l() {
4083
4077
  var x;
4084
- (x = Xr.value) == null || x.prompt(), wr.value = !1;
4078
+ (x = Qr.value) == null || x.prompt(), wr.value = !1;
4085
4079
  }
4086
4080
  function S() {
4087
4081
  return !!window.matchMedia("(display-mode: standalone)").matches;
4088
4082
  }
4089
4083
  function s(x) {
4090
- x.preventDefault(), wr.value = !0, Xr.value = x;
4084
+ x.preventDefault(), wr.value = !0, Qr.value = x;
4091
4085
  }
4092
4086
  function g() {
4093
4087
  br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4088
  }
4095
- return Ot(() => {
4096
- Jr == null && (Jr = document.addEventListener("swUpdated", e, { once: !0 })), jr == null && (jr = navigator.serviceWorker.addEventListener("controllerchange", t)), Kr == null && (Kr = window.addEventListener("beforeinstallprompt", s));
4089
+ return Xt(() => {
4090
+ Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
4097
4091
  }), Nr = {
4098
4092
  canInstallApp: wr,
4099
4093
  canUpdateApp: br,
@@ -4102,122 +4096,122 @@ function Wn() {
4102
4096
  updateApp: g
4103
4097
  }, Nr;
4104
4098
  }
4105
- function Pa(e) {
4099
+ function Ca(e) {
4106
4100
  const t = [];
4107
- return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => mn(l) || "Email must be valid")), t;
4101
+ return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => hn(l) || "Email must be valid")), t;
4108
4102
  }
4109
- function Na(e) {
4103
+ function Pa(e) {
4110
4104
  return {
4111
4105
  install(t, l) {
4112
- var T;
4113
- console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Nn(e);
4114
- const S = Rn(), s = Fn(e);
4115
- Gn(e), (T = e.auth).demo ?? (T.demo = S), e.auth.getAuthItem = s.findItem;
4116
- const g = xn(e.auth);
4117
- kn(e.menu);
4106
+ var _;
4107
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Pn(e);
4108
+ const S = Ln(), s = $n(e);
4109
+ kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4110
+ const g = Dn(e.auth);
4111
+ Fn(e.menu);
4118
4112
  const x = In({
4119
4113
  auth: g,
4120
4114
  findPath: s.findPath,
4121
4115
  useBearerToken: !0
4122
- }), P = Ln({
4116
+ }), P = Mn({
4123
4117
  getTimeZone: () => g.timeZone.value
4124
4118
  });
4125
- Bn({
4119
+ Un({
4126
4120
  dates: P
4127
- }), Wn(), bn({
4121
+ }), Gn(), wn({
4128
4122
  api: x,
4129
4123
  auth: g,
4130
4124
  navigation: s
4131
- }), wn(e.urls);
4125
+ }), yn(e.urls);
4132
4126
  }
4133
4127
  };
4134
4128
  }
4135
4129
  export {
4136
- oa as DataURIToBlob,
4137
- la as addWeekday,
4130
+ sa as DataURIToBlob,
4131
+ aa as addWeekday,
4138
4132
  Be as appendUrl,
4139
- an as capitalizeWords,
4140
- pn as checkImage,
4141
- sn as containsSearch,
4142
- aa as containsWeekday,
4133
+ nn as capitalizeWords,
4134
+ On as checkImage,
4135
+ fn as containsSearch,
4136
+ na as containsWeekday,
4143
4137
  Lr as copyDeep,
4144
- fn as copyItemByAlphabet,
4138
+ cn as copyItemByAlphabet,
4145
4139
  In as createApi,
4146
- xn as createAuth,
4147
- Na as createCore,
4148
- Nn as createCosmetics,
4149
- Ln as createDates,
4150
- Rn as createDemo,
4151
- Bn as createFilters,
4152
- kn as createMenu,
4153
- Fn as createNavigation,
4154
- Wn as createPWA,
4155
- Gn as createPresets,
4156
- En as createSessionStoreDefinition,
4157
- bn as createStoreBuilder,
4158
- wn as createUrl,
4159
- Vr as createWholeLastUpdateStoreDefinition,
4160
- cn as csvContains,
4161
- ba as csvDefaults,
4162
- nt as deepSelect,
4163
- Jn as distinct,
4164
- jn as extensionExists,
4165
- on as extractErrorDescription,
4166
- nn as fromCamelCase,
4167
- Kn as getAreaAround,
4168
- Qn as getAreaToLeft,
4169
- Xn as getAreaToRight,
4170
- On as getGoogleMapsLocationLine,
4171
- ea as getImageData,
4172
- tt as getLocationLine,
4173
- ca as getMinDate,
4174
- un as getMinDateString,
4175
- dn as getRandomColor,
4176
- hn as hasSearch,
4177
- ia as isArrayOfLength,
4178
- Te as isLengthyArray,
4179
- ln as isMinDate,
4140
+ Dn as createAuth,
4141
+ Pa as createCore,
4142
+ Pn as createCosmetics,
4143
+ Mn as createDates,
4144
+ Ln as createDemo,
4145
+ Un as createFilters,
4146
+ Fn as createMenu,
4147
+ $n as createNavigation,
4148
+ Gn as createPWA,
4149
+ kn as createPresets,
4150
+ An as createSessionStoreDefinition,
4151
+ wn as createStoreBuilder,
4152
+ yn as createUrl,
4153
+ qr as createWholeLastUpdateStoreDefinition,
4154
+ un as csvContains,
4155
+ wa as csvDefaults,
4156
+ tt as deepSelect,
4157
+ Zn as distinct,
4158
+ Jn as extensionExists,
4159
+ sn as extractErrorDescription,
4160
+ tn as fromCamelCase,
4161
+ jn as getAreaAround,
4162
+ Kn as getAreaToLeft,
4163
+ Qn as getAreaToRight,
4164
+ Xn as getGoogleMapsLocationLine,
4165
+ pn as getImageData,
4166
+ rt as getLocationLine,
4167
+ ia as getMinDate,
4168
+ ln as getMinDateString,
4169
+ on as getRandomColor,
4170
+ dn as hasSearch,
4171
+ ua as isArrayOfLength,
4172
+ _e as isLengthyArray,
4173
+ an as isMinDate,
4180
4174
  Sr as nestedValue,
4181
- ua as removeWeekday,
4182
- fa as roundTo,
4183
- vn as singularize,
4184
- ra as toCamelCase,
4185
- da as toCompareString,
4186
- sa as toggleCSV,
4187
- ha as twiddleThumbs,
4188
- it as useActions,
4189
- rn as useActionsTracker,
4190
- Er as useApi,
4191
- Dn as useAuth,
4192
- qr as useAuthUrl,
4193
- Pn as useBlade,
4194
- Mn as useCSV,
4195
- ya as useCosmetics,
4196
- yn as useDataUrl,
4197
- Sa as useDates,
4198
- ut as useDbName,
4199
- Aa as useDemo,
4200
- Ea as useDocumentMeta,
4201
- _n as useDraggable,
4175
+ la as removeWeekday,
4176
+ ca as roundTo,
4177
+ mn as singularize,
4178
+ ea as toCamelCase,
4179
+ oa as toCompareString,
4180
+ fa as toggleCSV,
4181
+ da as twiddleThumbs,
4182
+ ut as useActions,
4183
+ en as useActionsTracker,
4184
+ Ir as useApi,
4185
+ En as useAuth,
4186
+ Wr as useAuthUrl,
4187
+ Cn as useBlade,
4188
+ Nn as useCSV,
4189
+ ga as useCosmetics,
4190
+ gn as useDataUrl,
4191
+ ba as useDates,
4192
+ lt as useDbName,
4193
+ Sa as useDemo,
4194
+ Aa as useDocumentMeta,
4195
+ xn as useDraggable,
4202
4196
  Ia as useFilters,
4203
- pt as useId,
4204
- Da as useItem,
4205
- xa as useList,
4206
- va as useLocalCache,
4207
- wa as useLocalCosmetics,
4197
+ Ot as useId,
4198
+ Ea as useItem,
4199
+ Da as useList,
4200
+ ma as useLocalCache,
4201
+ ya as useLocalCosmetics,
4208
4202
  me as useLocalDb,
4209
- _a as useMenu,
4210
- ct as useNavigation,
4211
- Ca as usePWA,
4203
+ xa as useMenu,
4204
+ it as useNavigation,
4205
+ _a as usePWA,
4212
4206
  Ta as usePresets,
4213
- Cn as useResizable,
4214
- Pa as useRules,
4215
- ga as useStore,
4207
+ _n as useResizable,
4208
+ Ca as useRules,
4209
+ va as useStore,
4216
4210
  Le as useStoreDefinition,
4217
- $n as useTracker,
4218
- ma as useUrls,
4219
- mn as validEmail,
4211
+ Bn as useTracker,
4212
+ ha as useUrls,
4213
+ hn as validEmail,
4220
4214
  Ye as weekdayPairs,
4221
- na as weekdayShortName,
4222
- ta as weekdayValue
4215
+ ta as weekdayShortName,
4216
+ ra as weekdayValue
4223
4217
  };