bt-core-app 1.4.39 → 1.4.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +559 -562
  2. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { ref as z, shallowRef as Te, computed as ee, toValue as V, watch as xe, toRef as Yt, onMounted as jr } from "vue";
2
- import { watchArray as Kr, useStorage as zt, useEventListener as de, toValue as Se, useParentElement as Zt, useResizeObserver as Jt, useArrayUnique as jt, useArrayDifference as $r, watchDebounced as Kt, tryOnMounted as Qt } from "@vueuse/core";
1
+ import { ref as z, shallowRef as Te, computed as ee, toValue as V, watch as xe, toRef as zt, onMounted as Jr } from "vue";
2
+ import { watchArray as jr, useStorage as Zt, useEventListener as de, toValue as Se, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Br, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
3
3
  import { DateTime as oe } from "luxon";
4
- import { useRouter as Dr, useRoute as Qr } from "vue-router";
5
- import { defineStore as Xr } from "pinia";
6
- function Xt(e) {
7
- return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, Ot);
8
- }
4
+ import { defineStore as Kr } from "pinia";
5
+ import { useRouter as Qr, useRoute as Xr } from "vue-router";
9
6
  function Ot(e) {
7
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
8
+ }
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
  }
@@ -17,7 +17,7 @@ function Or(e) {
17
17
  }
18
18
  function C(h) {
19
19
  const r = {
20
- id: Xt(),
20
+ id: Ot(),
21
21
  msg: h ?? "Loading"
22
22
  };
23
23
  return t.value.push(r), r.id;
@@ -25,10 +25,10 @@ function Or(e) {
25
25
  function L(h) {
26
26
  h != null && (S.value = h.toString());
27
27
  }
28
- function x() {
28
+ function B() {
29
29
  S.value = void 0;
30
30
  }
31
- async function $(h, r) {
31
+ async function _(h, r) {
32
32
  const l = { ...r };
33
33
  l.completionMsg ?? (l.completionMsg = e == null ? void 0 : e.completionMsg), l.confirmationMsg ?? (l.confirmationMsg = e == null ? void 0 : e.confirmationMsg), l.errorMsg ?? (l.errorMsg = e == null ? void 0 : e.errorMsg), l.loadingMsg ?? (l.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), l.requireConfirmation ?? (l.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
34
  const i = C(l.loadingMsg);
@@ -43,14 +43,14 @@ function Or(e) {
43
43
  T(i);
44
44
  }
45
45
  }
46
- return Kr(t, (h) => {
46
+ return jr(t, (h) => {
47
47
  u.value = h.length > 0 ? h[0].msg : void 0;
48
48
  }, { deep: !0 }), {
49
49
  actionErrorMsg: S,
50
50
  actionLoadingMsg: u,
51
51
  actionCompleteMsg: o,
52
- clearErrors: x,
53
- doAction: $,
52
+ clearErrors: B,
53
+ doAction: _,
54
54
  isLoading: g,
55
55
  logError: L
56
56
  };
@@ -98,7 +98,7 @@ function pr(e) {
98
98
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
99
99
  });
100
100
  }
101
- function x(r) {
101
+ function B(r) {
102
102
  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);
103
103
  const l = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store), i = (e == null ? void 0 : e.items) ?? [];
104
104
  return l != null ? r.onGetAsync ?? (r.onGetAsync = () => l().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(i)), g(async () => {
@@ -113,7 +113,7 @@ function pr(e) {
113
113
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
114
114
  });
115
115
  }
116
- function $(r) {
116
+ function _(r) {
117
117
  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);
118
118
  const l = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
119
119
  return l != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => l().restore(r))), g(async () => {
@@ -163,35 +163,16 @@ function pr(e) {
163
163
  clearErrors: S,
164
164
  deleteItem: C,
165
165
  doAction: g,
166
- getAllItems: x,
166
+ getAllItems: B,
167
167
  getItem: L,
168
168
  isLoading: o,
169
169
  logError: T,
170
- restoreItem: $,
170
+ restoreItem: _,
171
171
  saveItem: h
172
172
  };
173
173
  }
174
- function qn(e) {
175
- const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: S, isLoading: o, doAction: g, logError: T } = Or(e);
176
- function C(x) {
177
- return x.nav ?? (x.nav = e == null ? void 0 : e.nav), x.proxyID ?? (x.proxyID = e == null ? void 0 : e.proxyID), x.throwError ?? (x.throwError = e == null ? void 0 : e.throwError), x.url ?? (x.url = e == null ? void 0 : e.url), g(async () => await e.api.post(x), { ...e, ...x });
178
- }
179
- function L(x) {
180
- return x.nav ?? (x.nav = e == null ? void 0 : e.nav), x.proxyID ?? (x.proxyID = e == null ? void 0 : e.proxyID), x.throwError ?? (x.throwError = e == null ? void 0 : e.throwError), x.url ?? (x.url = e == null ? void 0 : e.url), g(async () => await e.api.get(x), { ...e, ...x });
181
- }
182
- return {
183
- apiGet: L,
184
- apiPost: C,
185
- actionLoadingMsg: u,
186
- actionErrorMsg: t,
187
- clearErrors: S,
188
- doAction: g,
189
- isLoading: o,
190
- logError: T
191
- };
192
- }
193
174
  var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
194
- function pt(e) {
175
+ function en(e) {
195
176
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
196
177
  }
197
178
  var Ge = function() {
@@ -209,21 +190,21 @@ var Ge = function() {
209
190
  };
210
191
  }
211
192
  if (o.length === 1) {
212
- var C = o, L = g.ignoreCase ? t : e, x = g.cmp || function(h, r) {
193
+ var C = o, L = g.ignoreCase ? t : e, B = g.cmp || function(h, r) {
213
194
  return h < r ? -1 : h > r ? 1 : 0;
214
195
  };
215
196
  o = function(h, r) {
216
- return x(L(C(h)), L(C(r)));
197
+ return B(L(C(h)), L(C(r)));
217
198
  };
218
199
  }
219
- const $ = { "-1": "", desc: "" };
220
- return g.direction in $ ? function(h, r) {
200
+ const _ = { "-1": "", desc: "" };
201
+ return g.direction in _ ? function(h, r) {
221
202
  return -o(h, r);
222
203
  } : o;
223
204
  }
224
205
  function S(o, g) {
225
- var T = typeof this == "function" && !this.firstBy ? this : !1, C = u(o, g), L = T ? function(x, $) {
226
- return T(x, $) || C(x, $);
206
+ var T = typeof this == "function" && !this.firstBy ? this : !1, C = u(o, g), L = T ? function(B, _) {
207
+ return T(B, _) || C(B, _);
227
208
  } : C;
228
209
  return L.thenBy = S, L;
229
210
  }
@@ -241,18 +222,18 @@ function Ce(e, t) {
241
222
  while (S.startsWith("/"));
242
223
  return `${u}/${S}`;
243
224
  }
244
- function Hn(e) {
225
+ function qn(e) {
245
226
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
246
227
  }
247
- function Vn(e = "blitzItExtensionExists") {
228
+ function Hn(e = "blitzItExtensionExists") {
248
229
  try {
249
230
  var t = document.getElementById(e);
250
231
  return t != null;
251
232
  } catch (u) {
252
- return console.log(cn(u)), !1;
233
+ return console.log(fn(u)), !1;
253
234
  }
254
235
  }
255
- function Yn(e, t) {
236
+ function Vn(e, t) {
256
237
  return [
257
238
  { lat: e.lat - t, lng: e.lng + t },
258
239
  { lat: e.lat - t, lng: e.lng - t },
@@ -260,7 +241,7 @@ function Yn(e, t) {
260
241
  { lat: e.lat + t, lng: e.lng + t }
261
242
  ];
262
243
  }
263
- function zn(e, t) {
244
+ function Yn(e, t) {
264
245
  return [
265
246
  { lat: e.lat - t * 2, lng: e.lng + t },
266
247
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -268,7 +249,7 @@ function zn(e, t) {
268
249
  { lat: e.lat, lng: e.lng + t }
269
250
  ];
270
251
  }
271
- function Zn(e, t) {
252
+ function zn(e, t) {
272
253
  return [
273
254
  { lat: e.lat, lng: e.lng + t },
274
255
  { lat: e.lat, lng: e.lng - t },
@@ -276,7 +257,7 @@ function Zn(e, t) {
276
257
  { lat: e.lat + t * 2, lng: e.lng + t }
277
258
  ];
278
259
  }
279
- function Jn(e) {
260
+ function Zn(e) {
280
261
  var t = et(e, !0);
281
262
  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(" ", "");
282
263
  }
@@ -288,13 +269,13 @@ function et(e, t = !1) {
288
269
  var u = "";
289
270
  return e.addressLineOne != null && !t && (u = e.addressLineOne + " "), e.streetNumber != null && (u = u + e.streetNumber + " "), e.streetName != null && (u = u + e.streetName + ", "), e.suburb != null && (u = u + e.suburb + " "), e.state != null && (u = u + e.state + " "), e.postcode != null && (u = u + e.postcode), u;
290
271
  }
291
- function jn(e, t, u) {
272
+ function Jn(e, t, u) {
292
273
  if (e) {
293
274
  var S = new Image();
294
275
  S.onload = t, S.onerror = u, S.src = e;
295
276
  }
296
277
  }
297
- async function Kn(e, t = !0) {
278
+ async function jn(e, t = !0) {
298
279
  return new Promise((u, S) => {
299
280
  e == null && S("no url given");
300
281
  var o = new Image();
@@ -308,16 +289,16 @@ async function Kn(e, t = !0) {
308
289
  }, e != null && (o.src = e);
309
290
  });
310
291
  }
311
- function en(e) {
292
+ function rn(e) {
312
293
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
313
294
  }
314
- function Qn(e) {
295
+ function Kn(e) {
315
296
  if (e != null && typeof e == "object")
316
297
  for (var t in e)
317
298
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
318
299
  return e;
319
300
  }
320
- function rn(e) {
301
+ function tn(e) {
321
302
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (u) => u.toUpperCase()));
322
303
  }
323
304
  const We = [
@@ -330,25 +311,25 @@ const We = [
330
311
  { value: 7, short: "sat", values: ["sat", "saturday"] },
331
312
  { value: 0, short: "always", values: ["always", null, void 0] }
332
313
  ];
333
- function Xn(e) {
314
+ function Qn(e) {
334
315
  if (e == null)
335
316
  return 0;
336
317
  const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), u = We.filter((S) => S.values.some((o) => t.some((g) => o == g))).map((S) => S.value);
337
318
  return u.length == 0 ? 8 : Math.min(...u);
338
319
  }
339
- function On(e) {
320
+ function Xn(e) {
340
321
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
341
322
  let u = We.find((S) => S.values.some((o) => o == t));
342
323
  return u != null ? u.short : "";
343
324
  }).filter((t) => t != null && t.length > 0).toString();
344
325
  }
345
- function pn(e, t) {
326
+ function On(e, t) {
346
327
  if (e == null || t == null)
347
328
  return !0;
348
329
  const u = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), o = We.find((g) => g.values.some((T) => T == S));
349
330
  return o != null && u.some((g) => g == o.short || o.values.some((T) => T == g));
350
331
  }
351
- function ea(e, t) {
332
+ function pn(e, t) {
352
333
  if (t == null)
353
334
  return e;
354
335
  let u = e ?? "";
@@ -356,28 +337,28 @@ function ea(e, t) {
356
337
  let S = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((o) => We.find((g) => g.values.some((T) => T == o))).filter((o) => o != null).sort(Ge.firstBy((o) => (o == null ? void 0 : o.value) ?? 0)).map((o) => o == null ? void 0 : o.short))].toString();
357
338
  return S.length > 0 ? S : void 0;
358
339
  }
359
- function ra(e, t) {
340
+ function ea(e, t) {
360
341
  if (t == null || e == null)
361
342
  return e;
362
343
  let u = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), o = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((g) => We.find((T) => T.values.some((C) => C == g && C != S))).filter((g) => g != null).sort(Ge.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
363
344
  return o.length > 0 ? o : void 0;
364
345
  }
365
- function ta(e, t) {
346
+ function ra(e, t) {
366
347
  return e != null && Array.isArray(e) && e.length == t;
367
348
  }
368
349
  function Re(e, t = 0) {
369
350
  return e != null && Array.isArray(e) && e.length > t;
370
351
  }
371
- function tn(e) {
352
+ function nn(e) {
372
353
  return e == "0001-01-01T00:00:00Z";
373
354
  }
374
- function na() {
355
+ function ta() {
375
356
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
376
357
  }
377
- function nn() {
358
+ function an() {
378
359
  return "0001-01-01T00:00:00Z";
379
360
  }
380
- function aa(e, t) {
361
+ function na(e, t) {
381
362
  let u = "1", S = 0;
382
363
  if (S < t)
383
364
  do
@@ -386,11 +367,11 @@ function aa(e, t) {
386
367
  let o = Number.parseInt(u);
387
368
  return Math.round(e * o) / o;
388
369
  }
389
- function la(e, t) {
370
+ function aa(e, t) {
390
371
  let u = e ?? "";
391
- return t != null && (an(u, t) ? u = u.split(",").filter((S) => S != t).toString() : u != null ? u = `${u},${t}` : u = t), u != null && u.length > 0 ? u : null;
372
+ return t != null && (ln(u, t) ? u = u.split(",").filter((S) => S != t).toString() : u != null ? u = `${u},${t}` : u = t), u != null && u.length > 0 ? u : null;
392
373
  }
393
- function an(e, t) {
374
+ function ln(e, t) {
394
375
  if (e == null || e.length == 0)
395
376
  return !1;
396
377
  if (!t)
@@ -398,21 +379,21 @@ function an(e, t) {
398
379
  var u = e.split(","), S = t.split(",");
399
380
  return u.some((o) => S.some((g) => g == o));
400
381
  }
401
- function xr(e) {
382
+ function Dr(e) {
402
383
  if (!e)
403
384
  return e;
404
385
  let t, u = Array.isArray(e) ? [] : {};
405
386
  for (const S in e)
406
- t = e[S], u[S] = typeof t == "object" ? xr(t) : t;
387
+ t = e[S], u[S] = typeof t == "object" ? Dr(t) : t;
407
388
  return u;
408
389
  }
409
- function ln(e) {
390
+ function un(e) {
410
391
  return e && Object.keys(e).sort().reduce(function(t, u) {
411
392
  let S = e[u];
412
- return t[u] = typeof S == "object" && S !== null ? ln(S) : S, t;
393
+ return t[u] = typeof S == "object" && S !== null ? un(S) : S, t;
413
394
  }, Array.isArray(e) ? [] : {});
414
395
  }
415
- function un(e, t) {
396
+ function cn(e, t) {
416
397
  return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
417
398
  }
418
399
  function rt(e, t = (u) => u) {
@@ -425,13 +406,13 @@ function rt(e, t = (u) => u) {
425
406
  return Re(g) && S.push(...g), S;
426
407
  }, [])] : [];
427
408
  }
428
- function ua(e) {
409
+ function la(e) {
429
410
  const t = e.split(","), u = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], o = new Uint8Array(u.length);
430
411
  for (let g = 0; g < u.length; g++)
431
412
  o[g] = u.charCodeAt(g);
432
413
  return new Blob([o], { type: S });
433
414
  }
434
- function cn(e) {
415
+ function fn(e) {
435
416
  var t = "";
436
417
  if (e) {
437
418
  if (e.message && (t = e.message), e.response && e.response.data) {
@@ -444,11 +425,11 @@ function cn(e) {
444
425
  }
445
426
  return "hmmm no error was supplied";
446
427
  }
447
- function fn() {
428
+ function sn() {
448
429
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
449
- return e.length !== 7 ? fn() : e;
430
+ return e.length !== 7 ? sn() : e;
450
431
  }
451
- function sn(e, t, u) {
432
+ function on(e, t, u) {
452
433
  if (t == null)
453
434
  return !0;
454
435
  if (e == null || u == null)
@@ -456,15 +437,15 @@ function sn(e, t, u) {
456
437
  for (let o = 0; o < u.length; o++) {
457
438
  const g = u[o];
458
439
  var S = mr(e, g);
459
- if (S != null && typeof S == "string" && un(S, t))
440
+ if (S != null && typeof S == "string" && cn(S, t))
460
441
  return !0;
461
442
  }
462
443
  return !1;
463
444
  }
464
- function ia(e) {
445
+ function ua(e) {
465
446
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
466
447
  }
467
- function ca(e = 2e3) {
448
+ function ia(e = 2e3) {
468
449
  return new Promise((t) => {
469
450
  setTimeout(() => t(), e);
470
451
  });
@@ -479,11 +460,11 @@ function mr(e, t) {
479
460
  return null;
480
461
  return o;
481
462
  }
482
- function on(e) {
463
+ function dn(e) {
483
464
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
484
465
  }
485
466
  let vr;
486
- function dn() {
467
+ function tt() {
487
468
  return vr;
488
469
  }
489
470
  function hn(e) {
@@ -534,7 +515,7 @@ function hn(e) {
534
515
  throw new Error(A);
535
516
  }
536
517
  }
537
- async function x(l) {
518
+ async function B(l) {
538
519
  const i = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
539
520
  let v = l.finalUrl, M = l.headers;
540
521
  if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (M = t(l)), o != null && o.isDemoing.value)
@@ -563,7 +544,7 @@ function hn(e) {
563
544
  throw new Error(A);
564
545
  }
565
546
  }
566
- async function $(l) {
547
+ async function _(l) {
567
548
  const i = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, w = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
568
549
  let v = l.finalUrl, M = l.headers;
569
550
  if (v == null && (v = S(l)), l.overrideHeaders !== !0 && (M = t(l)), o != null && o.isDemoing.value)
@@ -651,23 +632,42 @@ function hn(e) {
651
632
  buildUrl: S,
652
633
  deleteItem: r,
653
634
  get: L,
654
- getAll: x,
635
+ getAll: B,
655
636
  patch: h,
656
- post: $
637
+ post: _
657
638
  }, vr;
658
639
  }
659
- var _r = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
640
+ function ca(e) {
641
+ const { actionErrorMsg: t, actionLoadingMsg: u, clearErrors: S, isLoading: o, doAction: g, logError: T } = Or(e), C = e.api ?? tt();
642
+ function L(_) {
643
+ return _.nav ?? (_.nav = e == null ? void 0 : e.nav), _.proxyID ?? (_.proxyID = e == null ? void 0 : e.proxyID), _.throwError ?? (_.throwError = e == null ? void 0 : e.throwError), _.url ?? (_.url = e == null ? void 0 : e.url), g(async () => await C.post(_), { ...e, ..._ });
644
+ }
645
+ function B(_) {
646
+ return _.nav ?? (_.nav = e == null ? void 0 : e.nav), _.proxyID ?? (_.proxyID = e == null ? void 0 : e.proxyID), _.throwError ?? (_.throwError = e == null ? void 0 : e.throwError), _.url ?? (_.url = e == null ? void 0 : e.url), g(async () => await C.get(_), { ...e, ..._ });
647
+ }
648
+ return {
649
+ apiGet: B,
650
+ apiPost: L,
651
+ actionLoadingMsg: u,
652
+ actionErrorMsg: t,
653
+ clearErrors: S,
654
+ doAction: g,
655
+ isLoading: o,
656
+ logError: T
657
+ };
658
+ }
659
+ var xr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
660
660
  let ge;
661
- function tt() {
662
- const e = _r.NODE_ENV;
661
+ function nt() {
662
+ const e = xr.NODE_ENV;
663
663
  return ge == null ? e : (ge[e] ?? ge.development).localDbName ?? e;
664
664
  }
665
- function Fr() {
666
- const e = _r.NODE_ENV;
665
+ function $r() {
666
+ const e = xr.NODE_ENV;
667
667
  return ge == null ? "" : (ge[e] ?? ge.development).auth ?? "";
668
668
  }
669
669
  function mn(e) {
670
- const t = _r.NODE_ENV;
670
+ const t = xr.NODE_ENV;
671
671
  if (ge == null)
672
672
  return "";
673
673
  const u = ge[t] ?? ge.development;
@@ -680,18 +680,18 @@ function vn(e) {
680
680
  return ge = e, ge;
681
681
  }
682
682
  let ir = "Australia/Melbourne", gr;
683
- const kr = "auth-credentials-state";
683
+ const Fr = "auth-credentials-state";
684
684
  function sa() {
685
685
  return gr;
686
686
  }
687
687
  function gn(e) {
688
688
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
689
- let u = z(localStorage.getItem(kr) ?? "");
689
+ let u = z(localStorage.getItem(Fr) ?? "");
690
690
  u.value.length == 0 && S();
691
691
  function S() {
692
- u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(kr, u.value);
692
+ u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Fr, u.value);
693
693
  }
694
- const o = zt("auth-credentials", {});
694
+ const o = Zt("auth-credentials", {});
695
695
  function g(b) {
696
696
  if (b == null)
697
697
  return !0;
@@ -752,25 +752,25 @@ function gn(e) {
752
752
  }
753
753
  return !1;
754
754
  }
755
- function x(b, D, s) {
755
+ function B(b, D, s) {
756
756
  let I = !0;
757
757
  return V(o).isGlobalAdmin ? !0 : (D != null && D.length > 0 && D.forEach((Q) => {
758
758
  s == "edit" ? T(Q) || (I = !1) : L(Q) || (I = !1);
759
759
  }), b != null && b.length > 0 && (b.some((Q) => l(Q)) || (I = !1)), I);
760
760
  }
761
- function $(b, D = !1) {
761
+ function _(b, D = !1) {
762
762
  var s = e.getAuthItem != null ? e.getAuthItem(b) : null;
763
763
  let I = !1;
764
764
  if (s == null)
765
765
  return !1;
766
- let j = s.subscriptions ?? [], Q = s.permissions ?? [], te = x(j, Q, "view");
766
+ let j = s.subscriptions ?? [], Q = s.permissions ?? [], te = B(j, Q, "view");
767
767
  return te || !D || !Re(s.children) ? te : ((s == null ? void 0 : s.children) != null && s.children.forEach((ie) => {
768
- $(ie, !0) && (I = !0);
768
+ _(ie, !0) && (I = !0);
769
769
  }), I);
770
770
  }
771
771
  function h(b) {
772
772
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, s) => {
773
- const I = Ce(Fr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
773
+ const I = Ce($r(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
774
774
  return D ? `${I}&redirect_path=${D}` : I;
775
775
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(b, u.value) ?? "" : "";
776
776
  }
@@ -795,11 +795,8 @@ function gn(e) {
795
795
  );
796
796
  return JSON.parse(I);
797
797
  }
798
- function y(b) {
799
- if (o.value = void 0, P(), b != null) {
800
- const D = Dr();
801
- D.currentRoute.value.path != b && D.push({ path: b });
802
- }
798
+ function y(b, D) {
799
+ o.value = void 0, P(), b != null && D != null && D.currentRoute.value.path != b && D.push({ path: b });
803
800
  }
804
801
  function w(b) {
805
802
  var s;
@@ -813,10 +810,10 @@ function gn(e) {
813
810
  if (I != u.value)
814
811
  throw new Error("state does not match");
815
812
  let te = "";
816
- e.getTokenUrl ?? (e.getTokenUrl = () => Ce(Fr(), "token")), te = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
813
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ce($r(), "token")), te = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
817
814
  const ie = {};
818
815
  ie.grant_type = j, ie.code = s, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
819
- const W = await dn().post({
816
+ const W = await tt().post({
820
817
  additionalUrl: te,
821
818
  data: ie
822
819
  });
@@ -856,8 +853,8 @@ function gn(e) {
856
853
  canView: C,
857
854
  canViewPermit: L,
858
855
  credentials: o,
859
- doShow: x,
860
- doShowByNav: $,
856
+ doShow: B,
857
+ doShowByNav: _,
861
858
  getAuthorizeUrl: h,
862
859
  getToken: v,
863
860
  isLoggedIn: ee(() => o.value.isLoggedIn === !0),
@@ -875,7 +872,7 @@ function yn(e, t, u = {}) {
875
872
  stopPropagation: o = !1,
876
873
  axis: g = "both"
877
874
  } = u, T = { capture: u.capture ?? !0 };
878
- let C = { x: 0, y: 0 }, L = { x: 0, y: 0 }, x = { x: 0, y: 0 }, $ = [], h = [], r = z(!1);
875
+ let C = { x: 0, y: 0 }, L = { x: 0, y: 0 }, B = { x: 0, y: 0 }, _ = [], h = [], r = z(!1);
879
876
  function l(P) {
880
877
  V(S) && P.preventDefault(), V(o) && P.stopPropagation();
881
878
  }
@@ -885,20 +882,20 @@ function yn(e, t, u = {}) {
885
882
  if (!A)
886
883
  return;
887
884
  const N = A.$el, D = P.type === "touchstart" && P.touches.length > 0 ? P.touches[0] : P;
888
- x = { x: D.clientX, y: D.clientY }, L = {
885
+ B = { x: D.clientX, y: D.clientY }, L = {
889
886
  x: N.offsetLeft,
890
887
  y: N.offsetTop
891
888
  }, C = {
892
889
  x: N.offsetLeft,
893
890
  y: N.offsetTop
894
- }, ((s = u.onStart) == null ? void 0 : s.call(u, x, P)) !== !1 && (h.push(de("mousemove", y)), h.push(de("touchmove", y)), h.push(de("mouseup", w)), h.push(de("touchend", w)), l(P));
891
+ }, ((s = u.onStart) == null ? void 0 : s.call(u, B, P)) !== !1 && (h.push(de("mousemove", y)), h.push(de("touchmove", y)), h.push(de("mouseup", w)), h.push(de("touchend", w)), l(P));
895
892
  }
896
893
  function y(P) {
897
894
  var I;
898
- if (!x || !V(e))
895
+ if (!B || !V(e))
899
896
  return;
900
897
  const b = P.type === "touchmove" && P.touches.length > 0 ? P.touches[0] : P;
901
- let D = b.clientX - x.x, s = b.clientY - x.y;
898
+ let D = b.clientX - B.x, s = b.clientY - B.y;
902
899
  (g === "x" || g === "both") && (C.x = L.x + D), (g === "y" || g === "both") && (C.y = L.y + s), (I = u.onMove) == null || I.call(u, C, P), l(P), v(C);
903
900
  }
904
901
  function w(P) {
@@ -921,7 +918,7 @@ function yn(e, t, u = {}) {
921
918
  if (!P)
922
919
  return;
923
920
  const A = P.$el;
924
- A.style.cursor = "move", $.push(de(A, "mousedown", i, T)), $.push(de(A, "touchstart", i, T)), r.value = !0;
921
+ A.style.cursor = "move", _.push(de(A, "mousedown", i, T)), _.push(de(A, "touchstart", i, T)), r.value = !0;
925
922
  }
926
923
  function E() {
927
924
  if (!V(r))
@@ -930,9 +927,9 @@ function yn(e, t, u = {}) {
930
927
  if (!P)
931
928
  return;
932
929
  const A = P.$el;
933
- A.style.cursor = "", $.forEach((N) => {
930
+ A.style.cursor = "", _.forEach((N) => {
934
931
  N();
935
- }), $.length = 0, r.value = !1;
932
+ }), _.length = 0, r.value = !1;
936
933
  }
937
934
  return {
938
935
  draggingIsOn: r,
@@ -942,13 +939,13 @@ function yn(e, t, u = {}) {
942
939
  }
943
940
  const wn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
944
941
  function bn(e, t = {}) {
945
- let u, S = t.handleWidth ?? 12, o = t.handleZIndex ?? 100, g = t.minWidth ?? 0, T = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, L = t.maxHeight ?? Number.MAX_SAFE_INTEGER, x = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, h, r = [];
942
+ let u, S = t.handleWidth ?? 12, o = t.handleZIndex ?? 100, g = t.minWidth ?? 0, T = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, L = t.maxHeight ?? Number.MAX_SAFE_INTEGER, B = t.preventDefault ?? !1, _ = t.stopPropagation ?? !1, h, r = [];
946
943
  const l = z(!1);
947
944
  let i = [], y = [];
948
945
  const w = z(!1), v = z({ x: 0, y: 0 });
949
946
  let M = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, E = {};
950
947
  function P(W) {
951
- Se(x) && W.preventDefault(), Se($) && W.stopPropagation();
948
+ Se(B) && W.preventDefault(), Se(_) && W.stopPropagation();
952
949
  }
953
950
  function A(W, Y) {
954
951
  r = Y.map(b), r.forEach((q) => W.$el.appendChild(q));
@@ -973,7 +970,7 @@ function bn(e, t = {}) {
973
970
  top: q.offsetTop,
974
971
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
975
972
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width"))
976
- }, E = xr(M), ((re = t.onStart) == null ? void 0 : re.call(t, v.value, W)) === !1)
973
+ }, E = Dr(M), ((re = t.onStart) == null ? void 0 : re.call(t, v.value, W)) === !1)
977
974
  return;
978
975
  let J = W.target;
979
976
  document.documentElement.style.cursor = j(J.dataset.handle), h = J.dataset.handle, y.push(de("mousemove", s)), y.push(de("mouseup", I)), y.push(de("touchmove", s)), y.push(de("touchend", I)), P(W);
@@ -1023,7 +1020,7 @@ function bn(e, t = {}) {
1023
1020
  return;
1024
1021
  const q = Y.$el;
1025
1022
  if (console.log(u), u !== "page" && W == "page") {
1026
- const ne = Zt(q), G = Se(ne) ?? null;
1023
+ const ne = Jt(q), G = Se(ne) ?? null;
1027
1024
  let J = 0;
1028
1025
  if (G != null) {
1029
1026
  const re = window.getComputedStyle(G);
@@ -1093,14 +1090,14 @@ function bn(e, t = {}) {
1093
1090
  }
1094
1091
  function oa(e, t, u) {
1095
1092
  const S = z(!1), o = z(e.variant), { turnResizingOff: g, turnResizingOn: T } = bn(t), { turnDraggableOff: C, turnDraggableOn: L } = yn(t, u);
1096
- Jt(t, ($) => {
1097
- const h = $[0], { width: r } = h.contentRect;
1093
+ jt(t, (_) => {
1094
+ const h = _[0], { width: r } = h.contentRect;
1098
1095
  S.value = r < (V(e.mobileBreakpoint) ?? 500);
1099
1096
  });
1100
- function x($) {
1101
- C(), $ == "page" ? g($) : $ == "blade" ? T(["l", "r"], $) : $ == "freestyle" ? (g(), T(void 0, $), L()) : $ == "inline" && g();
1097
+ function B(_) {
1098
+ C(), _ == "page" ? g(_) : _ == "blade" ? T(["l", "r"], _) : _ == "freestyle" ? (g(), T(void 0, _), L()) : _ == "inline" && g();
1102
1099
  }
1103
- return x(o.value), xe(o, ($) => x($)), {
1100
+ return B(o.value), xe(o, (_) => B(_)), {
1104
1101
  isMobile: S,
1105
1102
  variant: o
1106
1103
  };
@@ -1185,10 +1182,10 @@ function Sn(e) {
1185
1182
  function L() {
1186
1183
  t.value.drawerStick = !t.value.drawerStick;
1187
1184
  }
1188
- function x() {
1185
+ function B() {
1189
1186
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", u != null && (u.global.name.value = t.value.theme);
1190
1187
  }
1191
- function $() {
1188
+ function _() {
1192
1189
  var h;
1193
1190
  if (u != null) {
1194
1191
  const r = u.themes.value.dark, l = u.themes.value.light;
@@ -1203,8 +1200,8 @@ function Sn(e) {
1203
1200
  setTemporaryColor: T,
1204
1201
  toggleDrawer: C,
1205
1202
  toggleDrawerStick: L,
1206
- toggleLightDark: x,
1207
- undoTemporaryColor: $
1203
+ toggleLightDark: B,
1204
+ undoTemporaryColor: _
1208
1205
  }, yr;
1209
1206
  }
1210
1207
  const ma = {
@@ -1225,19 +1222,19 @@ function An() {
1225
1222
  header: w.title ?? w.value ?? "",
1226
1223
  itemText: w.itemText,
1227
1224
  value: w.value
1228
- })) : T = Object.keys(u[0]).map((w) => ({ header: en(w) ?? "", value: w })), T = T.filter((w) => w.header.length > 0);
1225
+ })) : T = Object.keys(u[0]).map((w) => ({ header: rn(w) ?? "", value: w })), T = T.filter((w) => w.header.length > 0);
1229
1226
  var C = [];
1230
1227
  for (let w = 0; w < u.length; w++) {
1231
1228
  const v = u[w];
1232
- var L = {}, x = [];
1229
+ var L = {}, B = [];
1233
1230
  for (let M = 0; M < T.length; M++) {
1234
1231
  const E = T[M];
1235
- var $ = null;
1236
- typeof E.value == "function" ? $ = E.value(v) : typeof E.value == "string" && ($ = mr(v, E.value)), E.itemText != null ? L[E.header] = mr($, E.itemText) : L[E.header] = $;
1232
+ var _ = null;
1233
+ typeof E.value == "function" ? _ = E.value(v) : typeof E.value == "string" && (_ = mr(v, E.value)), E.itemText != null ? L[E.header] = mr(_, E.itemText) : L[E.header] = _;
1237
1234
  }
1238
- C.push(L), Re(x) && x.forEach((M) => {
1235
+ C.push(L), Re(B) && B.forEach((M) => {
1239
1236
  C.push(M);
1240
- }), x = [];
1237
+ }), B = [];
1241
1238
  }
1242
1239
  var h = [];
1243
1240
  if (h.push(T.map((w) => w.header).toString()), C.forEach((w) => {
@@ -1275,28 +1272,28 @@ function En(e) {
1275
1272
  function S() {
1276
1273
  return o().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
1277
1274
  }
1278
- function o(L, x) {
1279
- return L == null ? t().setZone(e.getTimeZone()) : x ? oe.fromFormat(L, x, { zone: e.getTimeZone() }) : oe.fromISO(L, { zone: e.getTimeZone() });
1275
+ function o(L, B) {
1276
+ return L == null ? t().setZone(e.getTimeZone()) : B ? oe.fromFormat(L, B, { zone: e.getTimeZone() }) : oe.fromISO(L, { zone: e.getTimeZone() });
1280
1277
  }
1281
- function g(L, x, $) {
1278
+ function g(L, B, _) {
1282
1279
  if (L == null) {
1283
1280
  const r = t().setZone(e.getTimeZone());
1284
- return x ? r.toFormat(x) : r.toString();
1281
+ return B ? r.toFormat(B) : r.toString();
1285
1282
  }
1286
1283
  if (L == "Invalid DateTime")
1287
1284
  return "";
1288
- const h = $ ? oe.fromFormat(L, $, { zone: e.getTimeZone() }) : oe.fromISO(L, { zone: e.getTimeZone() });
1289
- return x ? h.toFormat(x) : h == null ? void 0 : h.toString();
1285
+ const h = _ ? oe.fromFormat(L, _, { zone: e.getTimeZone() }) : oe.fromISO(L, { zone: e.getTimeZone() });
1286
+ return B ? h.toFormat(B) : h == null ? void 0 : h.toString();
1290
1287
  }
1291
- function T(L, x) {
1292
- return L == null ? t() : x ? oe.fromFormat(L, x) : oe.fromISO(L);
1288
+ function T(L, B) {
1289
+ return L == null ? t() : B ? oe.fromFormat(L, B) : oe.fromISO(L);
1293
1290
  }
1294
- function C(L, x, $) {
1291
+ function C(L, B, _) {
1295
1292
  if (L == null)
1296
- return x ? t().toFormat(x) : t().toString();
1293
+ return B ? t().toFormat(B) : t().toString();
1297
1294
  {
1298
- const h = $ ? oe.fromFormat(L, $) : oe.fromISO(L);
1299
- return x ? h.toFormat(x) : h.toString();
1295
+ const h = _ ? oe.fromFormat(L, _) : oe.fromISO(L);
1296
+ return B ? h.toFormat(B) : h.toString();
1300
1297
  }
1301
1298
  }
1302
1299
  return wr = {
@@ -1372,7 +1369,7 @@ function In(e) {
1372
1369
  });
1373
1370
  });
1374
1371
  }
1375
- function x(h) {
1372
+ function B(h) {
1376
1373
  var i, y;
1377
1374
  if (u == null)
1378
1375
  throw new Error("no demo data available for this api");
@@ -1386,7 +1383,7 @@ function In(e) {
1386
1383
  });
1387
1384
  });
1388
1385
  }
1389
- function $(h) {
1386
+ function _(h) {
1390
1387
  var i, y;
1391
1388
  if (u == null)
1392
1389
  throw new Error("no demo data available for this api");
@@ -1416,8 +1413,8 @@ function In(e) {
1416
1413
  deleteItem: T,
1417
1414
  get: C,
1418
1415
  getAll: L,
1419
- post: x,
1420
- patch: $
1416
+ post: B,
1417
+ patch: _
1421
1418
  }, br;
1422
1419
  }
1423
1420
  var Dn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
@@ -1443,7 +1440,7 @@ function wa() {
1443
1440
  }
1444
1441
  function xn(e) {
1445
1442
  function t(s, I, j) {
1446
- return s ? tn(s) ? j ?? "" : e.dates.tzString(s, I) : j ?? s ?? "";
1443
+ return s ? nn(s) ? j ?? "" : e.dates.tzString(s, I) : j ?? s ?? "";
1447
1444
  }
1448
1445
  function u(s) {
1449
1446
  if (!s)
@@ -1478,10 +1475,10 @@ function xn(e) {
1478
1475
  function L(s, I) {
1479
1476
  return t(s, "ccc dd LLL @ hh:mm a", I);
1480
1477
  }
1481
- function x(s) {
1478
+ function B(s) {
1482
1479
  return new Intl.NumberFormat().format(s);
1483
1480
  }
1484
- function $(s) {
1481
+ function _(s) {
1485
1482
  return s == 0 ? "" : new Intl.NumberFormat().format(s);
1486
1483
  }
1487
1484
  function h(s) {
@@ -1540,8 +1537,8 @@ function xn(e) {
1540
1537
  toDayOfWeek: T,
1541
1538
  toDayShortDate: C,
1542
1539
  toDayShortDateAndTime: L,
1543
- toDisplayNumber: x,
1544
- toDisplayNumberOver: $,
1540
+ toDisplayNumber: B,
1541
+ toDisplayNumberOver: _,
1545
1542
  toDisplayNumberSigned: h,
1546
1543
  toFormat: r,
1547
1544
  toLocationLine: l,
@@ -1571,7 +1568,7 @@ function xn(e) {
1571
1568
  function Ve(e) {
1572
1569
  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.');
1573
1570
  }
1574
- var nt = { exports: {} };
1571
+ var at = { exports: {} };
1575
1572
  /*!
1576
1573
  localForage -- Offline Storage, Improved
1577
1574
  Version 1.10.0
@@ -1583,24 +1580,24 @@ var nt = { exports: {} };
1583
1580
  e.exports = u();
1584
1581
  })(function() {
1585
1582
  return function u(S, o, g) {
1586
- function T(x, $) {
1587
- if (!o[x]) {
1588
- if (!S[x]) {
1583
+ function T(B, _) {
1584
+ if (!o[B]) {
1585
+ if (!S[B]) {
1589
1586
  var h = typeof Ve == "function" && Ve;
1590
- if (!$ && h)
1591
- return h(x, !0);
1587
+ if (!_ && h)
1588
+ return h(B, !0);
1592
1589
  if (C)
1593
- return C(x, !0);
1594
- var r = new Error("Cannot find module '" + x + "'");
1590
+ return C(B, !0);
1591
+ var r = new Error("Cannot find module '" + B + "'");
1595
1592
  throw r.code = "MODULE_NOT_FOUND", r;
1596
1593
  }
1597
- var l = o[x] = { exports: {} };
1598
- S[x][0].call(l.exports, function(i) {
1599
- var y = S[x][1][i];
1594
+ var l = o[B] = { exports: {} };
1595
+ S[B][0].call(l.exports, function(i) {
1596
+ var y = S[B][1][i];
1600
1597
  return T(y || i);
1601
1598
  }, l, l.exports, u, S, o, g);
1602
1599
  }
1603
- return o[x].exports;
1600
+ return o[B].exports;
1604
1601
  }
1605
1602
  for (var C = typeof Ve == "function" && Ve, L = 0; L < g.length; L++)
1606
1603
  T(g[L]);
@@ -1609,11 +1606,11 @@ var nt = { exports: {} };
1609
1606
  (function(g) {
1610
1607
  var T = g.MutationObserver || g.WebKitMutationObserver, C;
1611
1608
  if (T) {
1612
- var L = 0, x = new T(i), $ = g.document.createTextNode("");
1613
- x.observe($, {
1609
+ var L = 0, B = new T(i), _ = g.document.createTextNode("");
1610
+ B.observe(_, {
1614
1611
  characterData: !0
1615
1612
  }), C = function() {
1616
- $.data = L = ++L % 2;
1613
+ _.data = L = ++L % 2;
1617
1614
  };
1618
1615
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
1619
1616
  var h = new g.MessageChannel();
@@ -1648,21 +1645,21 @@ var nt = { exports: {} };
1648
1645
  var g = u(1);
1649
1646
  function T() {
1650
1647
  }
1651
- var C = {}, L = ["REJECTED"], x = ["FULFILLED"], $ = ["PENDING"];
1648
+ var C = {}, L = ["REJECTED"], B = ["FULFILLED"], _ = ["PENDING"];
1652
1649
  S.exports = h;
1653
1650
  function h(A) {
1654
1651
  if (typeof A != "function")
1655
1652
  throw new TypeError("resolver must be a function");
1656
- this.state = $, this.queue = [], this.outcome = void 0, A !== T && y(this, A);
1653
+ this.state = _, this.queue = [], this.outcome = void 0, A !== T && y(this, A);
1657
1654
  }
1658
1655
  h.prototype.catch = function(A) {
1659
1656
  return this.then(null, A);
1660
1657
  }, h.prototype.then = function(A, N) {
1661
- if (typeof A != "function" && this.state === x || typeof N != "function" && this.state === L)
1658
+ if (typeof A != "function" && this.state === B || typeof N != "function" && this.state === L)
1662
1659
  return this;
1663
1660
  var b = new this.constructor(T);
1664
- if (this.state !== $) {
1665
- var D = this.state === x ? A : N;
1661
+ if (this.state !== _) {
1662
+ var D = this.state === B ? A : N;
1666
1663
  l(b, D, this.outcome);
1667
1664
  } else
1668
1665
  this.queue.push(new r(b, A, N));
@@ -1699,7 +1696,7 @@ var nt = { exports: {} };
1699
1696
  if (D)
1700
1697
  y(A, D);
1701
1698
  else {
1702
- A.state = x, A.outcome = N;
1699
+ A.state = B, A.outcome = N;
1703
1700
  for (var s = -1, I = A.queue.length; ++s < I; )
1704
1701
  A.queue[s].callFulfilled(N);
1705
1702
  }
@@ -1819,7 +1816,7 @@ var nt = { exports: {} };
1819
1816
  }
1820
1817
  }
1821
1818
  var L = C();
1822
- function x() {
1819
+ function B() {
1823
1820
  try {
1824
1821
  if (!L || !L.open)
1825
1822
  return !1;
@@ -1833,7 +1830,7 @@ var nt = { exports: {} };
1833
1830
  return !1;
1834
1831
  }
1835
1832
  }
1836
- function $(n, c) {
1833
+ function _(n, c) {
1837
1834
  n = n || [], c = c || {};
1838
1835
  try {
1839
1836
  return new Blob(n, c);
@@ -1872,7 +1869,7 @@ var nt = { exports: {} };
1872
1869
  }
1873
1870
  function b(n) {
1874
1871
  return new h(function(c) {
1875
- var a = n.transaction(w, A), d = $([""]);
1872
+ var a = n.transaction(w, A), d = _([""]);
1876
1873
  a.objectStore(w).put(d, "key"), a.onabort = function(m) {
1877
1874
  m.preventDefault(), m.stopPropagation(), c(!1);
1878
1875
  }, a.oncomplete = function() {
@@ -1916,23 +1913,23 @@ var nt = { exports: {} };
1916
1913
  var m = [n.name];
1917
1914
  c && m.push(n.version);
1918
1915
  var f = L.open.apply(L, m);
1919
- c && (f.onupgradeneeded = function(_) {
1916
+ c && (f.onupgradeneeded = function(x) {
1920
1917
  var R = f.result;
1921
1918
  try {
1922
- R.createObjectStore(n.storeName), _.oldVersion <= 1 && R.createObjectStore(w);
1919
+ R.createObjectStore(n.storeName), x.oldVersion <= 1 && R.createObjectStore(w);
1923
1920
  } catch (U) {
1924
1921
  if (U.name === "ConstraintError")
1925
- console.warn('The database "' + n.name + '" has been upgraded from version ' + _.oldVersion + " to version " + _.newVersion + ', but the storage "' + n.storeName + '" already exists.');
1922
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + x.oldVersion + " to version " + x.newVersion + ', but the storage "' + n.storeName + '" already exists.');
1926
1923
  else
1927
1924
  throw U;
1928
1925
  }
1929
- }), f.onerror = function(_) {
1930
- _.preventDefault(), d(f.error);
1926
+ }), f.onerror = function(x) {
1927
+ x.preventDefault(), d(f.error);
1931
1928
  }, f.onsuccess = function() {
1932
- var _ = f.result;
1933
- _.onversionchange = function(R) {
1929
+ var x = f.result;
1930
+ x.onversionchange = function(R) {
1934
1931
  R.target.close();
1935
- }, a(_), I(n);
1932
+ }, a(x), I(n);
1936
1933
  };
1937
1934
  });
1938
1935
  }
@@ -1970,7 +1967,7 @@ var nt = { exports: {} };
1970
1967
  }
1971
1968
  function Y(n) {
1972
1969
  var c = N(atob(n.data));
1973
- return $([c], { type: n.type });
1970
+ return _([c], { type: n.type });
1974
1971
  }
1975
1972
  function q(n) {
1976
1973
  return n && n.__local_forage_encoded_blob;
@@ -1993,8 +1990,8 @@ var nt = { exports: {} };
1993
1990
  return n.db = f, ye(n) ? ie(n) : f;
1994
1991
  }).then(function(f) {
1995
1992
  n.db = c.db = f;
1996
- for (var _ = 0; _ < a.length; _++)
1997
- a[_]._dbInfo.db = f;
1993
+ for (var x = 0; x < a.length; x++)
1994
+ a[x]._dbInfo.db = f;
1998
1995
  }).catch(function(f) {
1999
1996
  throw j(n, f), f;
2000
1997
  });
@@ -2039,22 +2036,22 @@ var nt = { exports: {} };
2039
2036
  var m = M[a.name];
2040
2037
  m || (m = re(), M[a.name] = m), m.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ne);
2041
2038
  var f = [];
2042
- function _() {
2039
+ function x() {
2043
2040
  return h.resolve();
2044
2041
  }
2045
2042
  for (var R = 0; R < m.forages.length; R++) {
2046
2043
  var U = m.forages[R];
2047
- U !== c && f.push(U._initReady().catch(_));
2044
+ U !== c && f.push(U._initReady().catch(x));
2048
2045
  }
2049
- var B = m.forages.slice(0);
2046
+ var $ = m.forages.slice(0);
2050
2047
  return h.all(f).then(function() {
2051
2048
  return a.db = m.db, te(a);
2052
2049
  }).then(function(F) {
2053
2050
  return a.db = F, ye(a, c._defaultConfig.version) ? ie(a) : F;
2054
2051
  }).then(function(F) {
2055
2052
  a.db = m.db = F, c._dbInfo = a;
2056
- for (var H = 0; H < B.length; H++) {
2057
- var Z = B[H];
2053
+ for (var H = 0; H < $.length; H++) {
2054
+ var Z = $[H];
2058
2055
  Z !== c && (Z._dbInfo.db = a.db, Z._dbInfo.version = a.version);
2059
2056
  }
2060
2057
  });
@@ -2064,16 +2061,16 @@ var nt = { exports: {} };
2064
2061
  n = i(n);
2065
2062
  var d = new h(function(m, f) {
2066
2063
  a.ready().then(function() {
2067
- J(a._dbInfo, P, function(_, R) {
2068
- if (_)
2069
- return f(_);
2064
+ J(a._dbInfo, P, function(x, R) {
2065
+ if (x)
2066
+ return f(x);
2070
2067
  try {
2071
- var U = R.objectStore(a._dbInfo.storeName), B = U.get(n);
2072
- B.onsuccess = function() {
2073
- var F = B.result;
2068
+ var U = R.objectStore(a._dbInfo.storeName), $ = U.get(n);
2069
+ $.onsuccess = function() {
2070
+ var F = $.result;
2074
2071
  F === void 0 && (F = null), q(F) && (F = Y(F)), m(F);
2075
- }, B.onerror = function() {
2076
- f(B.error);
2072
+ }, $.onerror = function() {
2073
+ f($.error);
2077
2074
  };
2078
2075
  } catch (F) {
2079
2076
  f(F);
@@ -2086,13 +2083,13 @@ var nt = { exports: {} };
2086
2083
  function Ue(n, c) {
2087
2084
  var a = this, d = new h(function(m, f) {
2088
2085
  a.ready().then(function() {
2089
- J(a._dbInfo, P, function(_, R) {
2090
- if (_)
2091
- return f(_);
2086
+ J(a._dbInfo, P, function(x, R) {
2087
+ if (x)
2088
+ return f(x);
2092
2089
  try {
2093
- var U = R.objectStore(a._dbInfo.storeName), B = U.openCursor(), F = 1;
2094
- B.onsuccess = function() {
2095
- var H = B.result;
2090
+ var U = R.objectStore(a._dbInfo.storeName), $ = U.openCursor(), F = 1;
2091
+ $.onsuccess = function() {
2092
+ var H = $.result;
2096
2093
  if (H) {
2097
2094
  var Z = H.value;
2098
2095
  q(Z) && (Z = Y(Z));
@@ -2100,8 +2097,8 @@ var nt = { exports: {} };
2100
2097
  X !== void 0 ? m(X) : H.continue();
2101
2098
  } else
2102
2099
  m();
2103
- }, B.onerror = function() {
2104
- f(B.error);
2100
+ }, $.onerror = function() {
2101
+ f($.error);
2105
2102
  };
2106
2103
  } catch (H) {
2107
2104
  f(H);
@@ -2114,16 +2111,16 @@ var nt = { exports: {} };
2114
2111
  function Be(n, c, a) {
2115
2112
  var d = this;
2116
2113
  n = i(n);
2117
- var m = new h(function(f, _) {
2114
+ var m = new h(function(f, x) {
2118
2115
  var R;
2119
2116
  d.ready().then(function() {
2120
2117
  return R = d._dbInfo, E.call(c) === "[object Blob]" ? D(R.db).then(function(U) {
2121
2118
  return U ? c : W(c);
2122
2119
  }) : c;
2123
2120
  }).then(function(U) {
2124
- J(d._dbInfo, A, function(B, F) {
2125
- if (B)
2126
- return _(B);
2121
+ J(d._dbInfo, A, function($, F) {
2122
+ if ($)
2123
+ return x($);
2127
2124
  try {
2128
2125
  var H = F.objectStore(d._dbInfo.storeName);
2129
2126
  U === null && (U = void 0);
@@ -2132,13 +2129,13 @@ var nt = { exports: {} };
2132
2129
  U === void 0 && (U = null), f(U);
2133
2130
  }, F.onabort = F.onerror = function() {
2134
2131
  var X = Z.error ? Z.error : Z.transaction.error;
2135
- _(X);
2132
+ x(X);
2136
2133
  };
2137
2134
  } catch (X) {
2138
- _(X);
2135
+ x(X);
2139
2136
  }
2140
2137
  });
2141
- }).catch(_);
2138
+ }).catch(x);
2142
2139
  });
2143
2140
  return r(m, a), m;
2144
2141
  }
@@ -2147,17 +2144,17 @@ var nt = { exports: {} };
2147
2144
  n = i(n);
2148
2145
  var d = new h(function(m, f) {
2149
2146
  a.ready().then(function() {
2150
- J(a._dbInfo, A, function(_, R) {
2151
- if (_)
2152
- return f(_);
2147
+ J(a._dbInfo, A, function(x, R) {
2148
+ if (x)
2149
+ return f(x);
2153
2150
  try {
2154
- var U = R.objectStore(a._dbInfo.storeName), B = U.delete(n);
2151
+ var U = R.objectStore(a._dbInfo.storeName), $ = U.delete(n);
2155
2152
  R.oncomplete = function() {
2156
2153
  m();
2157
2154
  }, R.onerror = function() {
2158
- f(B.error);
2155
+ f($.error);
2159
2156
  }, R.onabort = function() {
2160
- var F = B.error ? B.error : B.transaction.error;
2157
+ var F = $.error ? $.error : $.transaction.error;
2161
2158
  f(F);
2162
2159
  };
2163
2160
  } catch (F) {
@@ -2171,19 +2168,19 @@ var nt = { exports: {} };
2171
2168
  function Je(n) {
2172
2169
  var c = this, a = new h(function(d, m) {
2173
2170
  c.ready().then(function() {
2174
- J(c._dbInfo, A, function(f, _) {
2171
+ J(c._dbInfo, A, function(f, x) {
2175
2172
  if (f)
2176
2173
  return m(f);
2177
2174
  try {
2178
- var R = _.objectStore(c._dbInfo.storeName), U = R.clear();
2179
- _.oncomplete = function() {
2175
+ var R = x.objectStore(c._dbInfo.storeName), U = R.clear();
2176
+ x.oncomplete = function() {
2180
2177
  d();
2181
- }, _.onabort = _.onerror = function() {
2182
- var B = U.error ? U.error : U.transaction.error;
2183
- m(B);
2178
+ }, x.onabort = x.onerror = function() {
2179
+ var $ = U.error ? U.error : U.transaction.error;
2180
+ m($);
2184
2181
  };
2185
- } catch (B) {
2186
- m(B);
2182
+ } catch ($) {
2183
+ m($);
2187
2184
  }
2188
2185
  });
2189
2186
  }).catch(m);
@@ -2193,18 +2190,18 @@ var nt = { exports: {} };
2193
2190
  function je(n) {
2194
2191
  var c = this, a = new h(function(d, m) {
2195
2192
  c.ready().then(function() {
2196
- J(c._dbInfo, P, function(f, _) {
2193
+ J(c._dbInfo, P, function(f, x) {
2197
2194
  if (f)
2198
2195
  return m(f);
2199
2196
  try {
2200
- var R = _.objectStore(c._dbInfo.storeName), U = R.count();
2197
+ var R = x.objectStore(c._dbInfo.storeName), U = R.count();
2201
2198
  U.onsuccess = function() {
2202
2199
  d(U.result);
2203
2200
  }, U.onerror = function() {
2204
2201
  m(U.error);
2205
2202
  };
2206
- } catch (B) {
2207
- m(B);
2203
+ } catch ($) {
2204
+ m($);
2208
2205
  }
2209
2206
  });
2210
2207
  }).catch(m);
@@ -2218,18 +2215,18 @@ var nt = { exports: {} };
2218
2215
  return;
2219
2216
  }
2220
2217
  a.ready().then(function() {
2221
- J(a._dbInfo, P, function(_, R) {
2222
- if (_)
2223
- return f(_);
2218
+ J(a._dbInfo, P, function(x, R) {
2219
+ if (x)
2220
+ return f(x);
2224
2221
  try {
2225
- var U = R.objectStore(a._dbInfo.storeName), B = !1, F = U.openKeyCursor();
2222
+ var U = R.objectStore(a._dbInfo.storeName), $ = !1, F = U.openKeyCursor();
2226
2223
  F.onsuccess = function() {
2227
2224
  var H = F.result;
2228
2225
  if (!H) {
2229
2226
  m(null);
2230
2227
  return;
2231
2228
  }
2232
- n === 0 || B ? m(H.key) : (B = !0, H.advance(n));
2229
+ n === 0 || $ ? m(H.key) : ($ = !0, H.advance(n));
2233
2230
  }, F.onerror = function() {
2234
2231
  f(F.error);
2235
2232
  };
@@ -2244,18 +2241,18 @@ var nt = { exports: {} };
2244
2241
  function Qe(n) {
2245
2242
  var c = this, a = new h(function(d, m) {
2246
2243
  c.ready().then(function() {
2247
- J(c._dbInfo, P, function(f, _) {
2244
+ J(c._dbInfo, P, function(f, x) {
2248
2245
  if (f)
2249
2246
  return m(f);
2250
2247
  try {
2251
- var R = _.objectStore(c._dbInfo.storeName), U = R.openKeyCursor(), B = [];
2248
+ var R = x.objectStore(c._dbInfo.storeName), U = R.openKeyCursor(), $ = [];
2252
2249
  U.onsuccess = function() {
2253
2250
  var F = U.result;
2254
2251
  if (!F) {
2255
- d(B);
2252
+ d($);
2256
2253
  return;
2257
2254
  }
2258
- B.push(F.key), F.continue();
2255
+ $.push(F.key), F.continue();
2259
2256
  }, U.onerror = function() {
2260
2257
  m(U.error);
2261
2258
  };
@@ -2275,18 +2272,18 @@ var nt = { exports: {} };
2275
2272
  if (!n.name)
2276
2273
  m = h.reject("Invalid arguments");
2277
2274
  else {
2278
- var f = n.name === a.name && d._dbInfo.db, _ = f ? h.resolve(d._dbInfo.db) : te(n).then(function(R) {
2279
- var U = M[n.name], B = U.forages;
2275
+ var f = n.name === a.name && d._dbInfo.db, x = f ? h.resolve(d._dbInfo.db) : te(n).then(function(R) {
2276
+ var U = M[n.name], $ = U.forages;
2280
2277
  U.db = R;
2281
- for (var F = 0; F < B.length; F++)
2282
- B[F]._dbInfo.db = R;
2278
+ for (var F = 0; F < $.length; F++)
2279
+ $[F]._dbInfo.db = R;
2283
2280
  return R;
2284
2281
  });
2285
- n.storeName ? m = _.then(function(R) {
2282
+ n.storeName ? m = x.then(function(R) {
2286
2283
  if (R.objectStoreNames.contains(n.storeName)) {
2287
2284
  var U = R.version + 1;
2288
2285
  s(n);
2289
- var B = M[n.name], F = B.forages;
2286
+ var $ = M[n.name], F = $.forages;
2290
2287
  R.close();
2291
2288
  for (var H = 0; H < F.length; H++) {
2292
2289
  var Z = F[H];
@@ -2306,7 +2303,7 @@ var nt = { exports: {} };
2306
2303
  };
2307
2304
  });
2308
2305
  return X.then(function(O) {
2309
- B.db = O;
2306
+ $.db = O;
2310
2307
  for (var ue = 0; ue < F.length; ue++) {
2311
2308
  var ae = F[ue];
2312
2309
  ae._dbInfo.db = O, I(ae._dbInfo);
@@ -2316,12 +2313,12 @@ var nt = { exports: {} };
2316
2313
  }), O;
2317
2314
  });
2318
2315
  }
2319
- }) : m = _.then(function(R) {
2316
+ }) : m = x.then(function(R) {
2320
2317
  s(n);
2321
- var U = M[n.name], B = U.forages;
2318
+ var U = M[n.name], $ = U.forages;
2322
2319
  R.close();
2323
- for (var F = 0; F < B.length; F++) {
2324
- var H = B[F];
2320
+ for (var F = 0; F < $.length; F++) {
2321
+ var H = $[F];
2325
2322
  H._dbInfo.db = null;
2326
2323
  }
2327
2324
  var Z = new h(function(X, O) {
@@ -2338,8 +2335,8 @@ var nt = { exports: {} };
2338
2335
  });
2339
2336
  return Z.then(function(X) {
2340
2337
  U.db = X;
2341
- for (var O = 0; O < B.length; O++) {
2342
- var ue = B[O];
2338
+ for (var O = 0; O < $.length; O++) {
2339
+ var ue = $[O];
2343
2340
  I(ue._dbInfo);
2344
2341
  }
2345
2342
  }).catch(function(X) {
@@ -2353,7 +2350,7 @@ var nt = { exports: {} };
2353
2350
  var Oe = {
2354
2351
  _driver: "asyncStorage",
2355
2352
  _initStorage: ce,
2356
- _support: x(),
2353
+ _support: B(),
2357
2354
  iterate: Ue,
2358
2355
  getItem: fe,
2359
2356
  setItem: Be,
@@ -2367,14 +2364,14 @@ var nt = { exports: {} };
2367
2364
  function pe() {
2368
2365
  return typeof openDatabase == "function";
2369
2366
  }
2370
- var me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", er = "~~local_forage_type~", Ee = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", $e = Me.length, Pe = "arbf", k = "blob", le = "si08", K = "ui08", p = "uic8", we = "si16", Ae = "si32", Le = "ur16", be = "ui32", se = "fl32", Ie = "fl64", Tr = $e + Pe.length, Cr = Object.prototype.toString;
2371
- function Mr(n) {
2372
- var c = n.length * 0.75, a = n.length, d, m = 0, f, _, R, U;
2367
+ var me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", er = "~~local_forage_type~", Ee = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", $e = Me.length, Pe = "arbf", k = "blob", le = "si08", K = "ui08", p = "uic8", we = "si16", Ae = "si32", Le = "ur16", be = "ui32", se = "fl32", Ie = "fl64", _r = $e + Pe.length, Tr = Object.prototype.toString;
2368
+ function Cr(n) {
2369
+ var c = n.length * 0.75, a = n.length, d, m = 0, f, x, R, U;
2373
2370
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
2374
- var B = new ArrayBuffer(c), F = new Uint8Array(B);
2371
+ var $ = new ArrayBuffer(c), F = new Uint8Array($);
2375
2372
  for (d = 0; d < a; d += 4)
2376
- f = me.indexOf(n[d]), _ = me.indexOf(n[d + 1]), R = me.indexOf(n[d + 2]), U = me.indexOf(n[d + 3]), F[m++] = f << 2 | _ >> 4, F[m++] = (_ & 15) << 4 | R >> 2, F[m++] = (R & 3) << 6 | U & 63;
2377
- return B;
2373
+ f = me.indexOf(n[d]), x = me.indexOf(n[d + 1]), R = me.indexOf(n[d + 2]), U = me.indexOf(n[d + 3]), F[m++] = f << 2 | x >> 4, F[m++] = (x & 15) << 4 | R >> 2, F[m++] = (R & 3) << 6 | U & 63;
2374
+ return $;
2378
2375
  }
2379
2376
  function rr(n) {
2380
2377
  var c = new Uint8Array(n), a = "", d;
@@ -2382,38 +2379,38 @@ var nt = { exports: {} };
2382
2379
  a += me[c[d] >> 2], a += me[(c[d] & 3) << 4 | c[d + 1] >> 4], a += me[(c[d + 1] & 15) << 2 | c[d + 2] >> 6], a += me[c[d + 2] & 63];
2383
2380
  return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
2384
2381
  }
2385
- function ut(n, c) {
2382
+ function it(n, c) {
2386
2383
  var a = "";
2387
- if (n && (a = Cr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Cr.call(n.buffer) === "[object ArrayBuffer]")) {
2384
+ if (n && (a = Tr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Tr.call(n.buffer) === "[object ArrayBuffer]")) {
2388
2385
  var d, m = Me;
2389
2386
  n instanceof ArrayBuffer ? (d = n, m += Pe) : (d = n.buffer, a === "[object Int8Array]" ? m += le : a === "[object Uint8Array]" ? m += K : a === "[object Uint8ClampedArray]" ? m += p : a === "[object Int16Array]" ? m += we : a === "[object Uint16Array]" ? m += Le : a === "[object Int32Array]" ? m += Ae : a === "[object Uint32Array]" ? m += be : a === "[object Float32Array]" ? m += se : a === "[object Float64Array]" ? m += Ie : c(new Error("Failed to get type for BinaryArray"))), c(m + rr(d));
2390
2387
  } else if (a === "[object Blob]") {
2391
2388
  var f = new FileReader();
2392
2389
  f.onload = function() {
2393
- var _ = er + n.type + "~" + rr(this.result);
2394
- c(Me + k + _);
2390
+ var x = er + n.type + "~" + rr(this.result);
2391
+ c(Me + k + x);
2395
2392
  }, f.readAsArrayBuffer(n);
2396
2393
  } else
2397
2394
  try {
2398
2395
  c(JSON.stringify(n));
2399
- } catch (_) {
2400
- console.error("Couldn't convert value into a JSON string: ", n), c(null, _);
2396
+ } catch (x) {
2397
+ console.error("Couldn't convert value into a JSON string: ", n), c(null, x);
2401
2398
  }
2402
2399
  }
2403
- function it(n) {
2400
+ function ct(n) {
2404
2401
  if (n.substring(0, $e) !== Me)
2405
2402
  return JSON.parse(n);
2406
- var c = n.substring(Tr), a = n.substring($e, Tr), d;
2403
+ var c = n.substring(_r), a = n.substring($e, _r), d;
2407
2404
  if (a === k && Ee.test(c)) {
2408
2405
  var m = c.match(Ee);
2409
2406
  d = m[1], c = c.substring(m[0].length);
2410
2407
  }
2411
- var f = Mr(c);
2408
+ var f = Cr(c);
2412
2409
  switch (a) {
2413
2410
  case Pe:
2414
2411
  return f;
2415
2412
  case k:
2416
- return $([f], { type: d });
2413
+ return _([f], { type: d });
2417
2414
  case le:
2418
2415
  return new Int8Array(f);
2419
2416
  case K:
@@ -2437,104 +2434,104 @@ var nt = { exports: {} };
2437
2434
  }
2438
2435
  }
2439
2436
  var tr = {
2440
- serialize: ut,
2441
- deserialize: it,
2442
- stringToBuffer: Mr,
2437
+ serialize: it,
2438
+ deserialize: ct,
2439
+ stringToBuffer: Cr,
2443
2440
  bufferToString: rr
2444
2441
  };
2445
- function Pr(n, c, a, d) {
2442
+ function Mr(n, c, a, d) {
2446
2443
  n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, d);
2447
2444
  }
2448
- function ct(n) {
2445
+ function ft(n) {
2449
2446
  var c = this, a = {
2450
2447
  db: null
2451
2448
  };
2452
2449
  if (n)
2453
2450
  for (var d in n)
2454
2451
  a[d] = typeof n[d] != "string" ? n[d].toString() : n[d];
2455
- var m = new h(function(f, _) {
2452
+ var m = new h(function(f, x) {
2456
2453
  try {
2457
2454
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
2458
2455
  } catch (R) {
2459
- return _(R);
2456
+ return x(R);
2460
2457
  }
2461
2458
  a.db.transaction(function(R) {
2462
- Pr(R, a, function() {
2459
+ Mr(R, a, function() {
2463
2460
  c._dbInfo = a, f();
2464
- }, function(U, B) {
2465
- _(B);
2461
+ }, function(U, $) {
2462
+ x($);
2466
2463
  });
2467
- }, _);
2464
+ }, x);
2468
2465
  });
2469
2466
  return a.serializer = tr, m;
2470
2467
  }
2471
2468
  function De(n, c, a, d, m, f) {
2472
- n.executeSql(a, d, m, function(_, R) {
2473
- R.code === R.SYNTAX_ERR ? _.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(U, B) {
2474
- B.rows.length ? f(U, R) : Pr(U, c, function() {
2469
+ n.executeSql(a, d, m, function(x, R) {
2470
+ R.code === R.SYNTAX_ERR ? x.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(U, $) {
2471
+ $.rows.length ? f(U, R) : Mr(U, c, function() {
2475
2472
  U.executeSql(a, d, m, f);
2476
2473
  }, f);
2477
- }, f) : f(_, R);
2474
+ }, f) : f(x, R);
2478
2475
  }, f);
2479
2476
  }
2480
- function ft(n, c) {
2477
+ function st(n, c) {
2481
2478
  var a = this;
2482
2479
  n = i(n);
2483
2480
  var d = new h(function(m, f) {
2484
2481
  a.ready().then(function() {
2485
- var _ = a._dbInfo;
2486
- _.db.transaction(function(R) {
2487
- De(R, _, "SELECT * FROM " + _.storeName + " WHERE key = ? LIMIT 1", [n], function(U, B) {
2488
- var F = B.rows.length ? B.rows.item(0).value : null;
2489
- F && (F = _.serializer.deserialize(F)), m(F);
2490
- }, function(U, B) {
2491
- f(B);
2482
+ var x = a._dbInfo;
2483
+ x.db.transaction(function(R) {
2484
+ De(R, x, "SELECT * FROM " + x.storeName + " WHERE key = ? LIMIT 1", [n], function(U, $) {
2485
+ var F = $.rows.length ? $.rows.item(0).value : null;
2486
+ F && (F = x.serializer.deserialize(F)), m(F);
2487
+ }, function(U, $) {
2488
+ f($);
2492
2489
  });
2493
2490
  });
2494
2491
  }).catch(f);
2495
2492
  });
2496
2493
  return r(d, c), d;
2497
2494
  }
2498
- function st(n, c) {
2495
+ function ot(n, c) {
2499
2496
  var a = this, d = new h(function(m, f) {
2500
2497
  a.ready().then(function() {
2501
- var _ = a._dbInfo;
2502
- _.db.transaction(function(R) {
2503
- De(R, _, "SELECT * FROM " + _.storeName, [], function(U, B) {
2504
- for (var F = B.rows, H = F.length, Z = 0; Z < H; Z++) {
2498
+ var x = a._dbInfo;
2499
+ x.db.transaction(function(R) {
2500
+ De(R, x, "SELECT * FROM " + x.storeName, [], function(U, $) {
2501
+ for (var F = $.rows, H = F.length, Z = 0; Z < H; Z++) {
2505
2502
  var X = F.item(Z), O = X.value;
2506
- if (O && (O = _.serializer.deserialize(O)), O = n(O, X.key, Z + 1), O !== void 0) {
2503
+ if (O && (O = x.serializer.deserialize(O)), O = n(O, X.key, Z + 1), O !== void 0) {
2507
2504
  m(O);
2508
2505
  return;
2509
2506
  }
2510
2507
  }
2511
2508
  m();
2512
- }, function(U, B) {
2513
- f(B);
2509
+ }, function(U, $) {
2510
+ f($);
2514
2511
  });
2515
2512
  });
2516
2513
  }).catch(f);
2517
2514
  });
2518
2515
  return r(d, c), d;
2519
2516
  }
2520
- function Lr(n, c, a, d) {
2517
+ function Pr(n, c, a, d) {
2521
2518
  var m = this;
2522
2519
  n = i(n);
2523
- var f = new h(function(_, R) {
2520
+ var f = new h(function(x, R) {
2524
2521
  m.ready().then(function() {
2525
2522
  c === void 0 && (c = null);
2526
- var U = c, B = m._dbInfo;
2527
- B.serializer.serialize(c, function(F, H) {
2528
- H ? R(H) : B.db.transaction(function(Z) {
2529
- De(Z, B, "INSERT OR REPLACE INTO " + B.storeName + " (key, value) VALUES (?, ?)", [n, F], function() {
2530
- _(U);
2523
+ var U = c, $ = m._dbInfo;
2524
+ $.serializer.serialize(c, function(F, H) {
2525
+ H ? R(H) : $.db.transaction(function(Z) {
2526
+ De(Z, $, "INSERT OR REPLACE INTO " + $.storeName + " (key, value) VALUES (?, ?)", [n, F], function() {
2527
+ x(U);
2531
2528
  }, function(X, O) {
2532
2529
  R(O);
2533
2530
  });
2534
2531
  }, function(Z) {
2535
2532
  if (Z.code === Z.QUOTA_ERR) {
2536
2533
  if (d > 0) {
2537
- _(Lr.apply(m, [n, U, a, d - 1]));
2534
+ x(Pr.apply(m, [n, U, a, d - 1]));
2538
2535
  return;
2539
2536
  }
2540
2537
  R(Z);
@@ -2545,32 +2542,32 @@ var nt = { exports: {} };
2545
2542
  });
2546
2543
  return r(f, a), f;
2547
2544
  }
2548
- function ot(n, c, a) {
2549
- return Lr.apply(this, [n, c, a, 1]);
2545
+ function dt(n, c, a) {
2546
+ return Pr.apply(this, [n, c, a, 1]);
2550
2547
  }
2551
- function dt(n, c) {
2548
+ function ht(n, c) {
2552
2549
  var a = this;
2553
2550
  n = i(n);
2554
2551
  var d = new h(function(m, f) {
2555
2552
  a.ready().then(function() {
2556
- var _ = a._dbInfo;
2557
- _.db.transaction(function(R) {
2558
- De(R, _, "DELETE FROM " + _.storeName + " WHERE key = ?", [n], function() {
2553
+ var x = a._dbInfo;
2554
+ x.db.transaction(function(R) {
2555
+ De(R, x, "DELETE FROM " + x.storeName + " WHERE key = ?", [n], function() {
2559
2556
  m();
2560
- }, function(U, B) {
2561
- f(B);
2557
+ }, function(U, $) {
2558
+ f($);
2562
2559
  });
2563
2560
  });
2564
2561
  }).catch(f);
2565
2562
  });
2566
2563
  return r(d, c), d;
2567
2564
  }
2568
- function ht(n) {
2565
+ function mt(n) {
2569
2566
  var c = this, a = new h(function(d, m) {
2570
2567
  c.ready().then(function() {
2571
2568
  var f = c._dbInfo;
2572
- f.db.transaction(function(_) {
2573
- De(_, f, "DELETE FROM " + f.storeName, [], function() {
2569
+ f.db.transaction(function(x) {
2570
+ De(x, f, "DELETE FROM " + f.storeName, [], function() {
2574
2571
  d();
2575
2572
  }, function(R, U) {
2576
2573
  m(U);
@@ -2580,14 +2577,14 @@ var nt = { exports: {} };
2580
2577
  });
2581
2578
  return r(a, n), a;
2582
2579
  }
2583
- function mt(n) {
2580
+ function vt(n) {
2584
2581
  var c = this, a = new h(function(d, m) {
2585
2582
  c.ready().then(function() {
2586
2583
  var f = c._dbInfo;
2587
- f.db.transaction(function(_) {
2588
- De(_, f, "SELECT COUNT(key) as c FROM " + f.storeName, [], function(R, U) {
2589
- var B = U.rows.item(0).c;
2590
- d(B);
2584
+ f.db.transaction(function(x) {
2585
+ De(x, f, "SELECT COUNT(key) as c FROM " + f.storeName, [], function(R, U) {
2586
+ var $ = U.rows.item(0).c;
2587
+ d($);
2591
2588
  }, function(R, U) {
2592
2589
  m(U);
2593
2590
  });
@@ -2596,31 +2593,31 @@ var nt = { exports: {} };
2596
2593
  });
2597
2594
  return r(a, n), a;
2598
2595
  }
2599
- function vt(n, c) {
2596
+ function gt(n, c) {
2600
2597
  var a = this, d = new h(function(m, f) {
2601
2598
  a.ready().then(function() {
2602
- var _ = a._dbInfo;
2603
- _.db.transaction(function(R) {
2604
- De(R, _, "SELECT key FROM " + _.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(U, B) {
2605
- var F = B.rows.length ? B.rows.item(0).key : null;
2599
+ var x = a._dbInfo;
2600
+ x.db.transaction(function(R) {
2601
+ De(R, x, "SELECT key FROM " + x.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(U, $) {
2602
+ var F = $.rows.length ? $.rows.item(0).key : null;
2606
2603
  m(F);
2607
- }, function(U, B) {
2608
- f(B);
2604
+ }, function(U, $) {
2605
+ f($);
2609
2606
  });
2610
2607
  });
2611
2608
  }).catch(f);
2612
2609
  });
2613
2610
  return r(d, c), d;
2614
2611
  }
2615
- function gt(n) {
2612
+ function yt(n) {
2616
2613
  var c = this, a = new h(function(d, m) {
2617
2614
  c.ready().then(function() {
2618
2615
  var f = c._dbInfo;
2619
- f.db.transaction(function(_) {
2620
- De(_, f, "SELECT key FROM " + f.storeName, [], function(R, U) {
2621
- for (var B = [], F = 0; F < U.rows.length; F++)
2622
- B.push(U.rows.item(F).key);
2623
- d(B);
2616
+ f.db.transaction(function(x) {
2617
+ De(x, f, "SELECT key FROM " + f.storeName, [], function(R, U) {
2618
+ for (var $ = [], F = 0; F < U.rows.length; F++)
2619
+ $.push(U.rows.item(F).key);
2620
+ d($);
2624
2621
  }, function(R, U) {
2625
2622
  m(U);
2626
2623
  });
@@ -2629,15 +2626,15 @@ var nt = { exports: {} };
2629
2626
  });
2630
2627
  return r(a, n), a;
2631
2628
  }
2632
- function yt(n) {
2629
+ function wt(n) {
2633
2630
  return new h(function(c, a) {
2634
2631
  n.transaction(function(d) {
2635
2632
  d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(m, f) {
2636
- for (var _ = [], R = 0; R < f.rows.length; R++)
2637
- _.push(f.rows.item(R).name);
2633
+ for (var x = [], R = 0; R < f.rows.length; R++)
2634
+ x.push(f.rows.item(R).name);
2638
2635
  c({
2639
2636
  db: n,
2640
- storeNames: _
2637
+ storeNames: x
2641
2638
  });
2642
2639
  }, function(m, f) {
2643
2640
  a(f);
@@ -2647,21 +2644,21 @@ var nt = { exports: {} };
2647
2644
  });
2648
2645
  });
2649
2646
  }
2650
- function wt(n, c) {
2647
+ function bt(n, c) {
2651
2648
  c = y.apply(this, arguments);
2652
2649
  var a = this.config();
2653
2650
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
2654
2651
  var d = this, m;
2655
2652
  return n.name ? m = new h(function(f) {
2656
- var _;
2657
- n.name === a.name ? _ = d._dbInfo.db : _ = openDatabase(n.name, "", "", 0), n.storeName ? f({
2658
- db: _,
2653
+ var x;
2654
+ n.name === a.name ? x = d._dbInfo.db : x = openDatabase(n.name, "", "", 0), n.storeName ? f({
2655
+ db: x,
2659
2656
  storeNames: [n.storeName]
2660
- }) : f(yt(_));
2657
+ }) : f(wt(x));
2661
2658
  }).then(function(f) {
2662
- return new h(function(_, R) {
2659
+ return new h(function(x, R) {
2663
2660
  f.db.transaction(function(U) {
2664
- function B(X) {
2661
+ function $(X) {
2665
2662
  return new h(function(O, ue) {
2666
2663
  U.executeSql("DROP TABLE IF EXISTS " + X, [], function() {
2667
2664
  O();
@@ -2671,9 +2668,9 @@ var nt = { exports: {} };
2671
2668
  });
2672
2669
  }
2673
2670
  for (var F = [], H = 0, Z = f.storeNames.length; H < Z; H++)
2674
- F.push(B(f.storeNames[H]));
2671
+ F.push($(f.storeNames[H]));
2675
2672
  h.all(F).then(function() {
2676
- _();
2673
+ x();
2677
2674
  }).catch(function(X) {
2678
2675
  R(X);
2679
2676
  });
@@ -2683,21 +2680,21 @@ var nt = { exports: {} };
2683
2680
  });
2684
2681
  }) : m = h.reject("Invalid arguments"), r(m, c), m;
2685
2682
  }
2686
- var bt = {
2683
+ var St = {
2687
2684
  _driver: "webSQLStorage",
2688
- _initStorage: ct,
2685
+ _initStorage: ft,
2689
2686
  _support: pe(),
2690
- iterate: st,
2691
- getItem: ft,
2692
- setItem: ot,
2693
- removeItem: dt,
2694
- clear: ht,
2695
- length: mt,
2696
- key: vt,
2697
- keys: gt,
2698
- dropInstance: wt
2687
+ iterate: ot,
2688
+ getItem: st,
2689
+ setItem: dt,
2690
+ removeItem: ht,
2691
+ clear: mt,
2692
+ length: vt,
2693
+ key: gt,
2694
+ keys: yt,
2695
+ dropInstance: bt
2699
2696
  };
2700
- function St() {
2697
+ function At() {
2701
2698
  try {
2702
2699
  return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
2703
2700
  !!localStorage.setItem;
@@ -2705,11 +2702,11 @@ var nt = { exports: {} };
2705
2702
  return !1;
2706
2703
  }
2707
2704
  }
2708
- function Nr(n, c) {
2705
+ function Lr(n, c) {
2709
2706
  var a = n.name + "/";
2710
2707
  return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
2711
2708
  }
2712
- function At() {
2709
+ function Et() {
2713
2710
  var n = "_localforage_support_test";
2714
2711
  try {
2715
2712
  return localStorage.setItem(n, !0), localStorage.removeItem(n), !1;
@@ -2717,17 +2714,17 @@ var nt = { exports: {} };
2717
2714
  return !0;
2718
2715
  }
2719
2716
  }
2720
- function Et() {
2721
- return !At() || localStorage.length > 0;
2717
+ function It() {
2718
+ return !Et() || localStorage.length > 0;
2722
2719
  }
2723
- function It(n) {
2720
+ function Dt(n) {
2724
2721
  var c = this, a = {};
2725
2722
  if (n)
2726
2723
  for (var d in n)
2727
2724
  a[d] = n[d];
2728
- return a.keyPrefix = Nr(n, c._defaultConfig), Et() ? (c._dbInfo = a, a.serializer = tr, h.resolve()) : h.reject();
2725
+ return a.keyPrefix = Lr(n, c._defaultConfig), It() ? (c._dbInfo = a, a.serializer = tr, h.resolve()) : h.reject();
2729
2726
  }
2730
- function Dt(n) {
2727
+ function xt(n) {
2731
2728
  var c = this, a = c.ready().then(function() {
2732
2729
  for (var d = c._dbInfo.keyPrefix, m = localStorage.length - 1; m >= 0; m--) {
2733
2730
  var f = localStorage.key(m);
@@ -2736,7 +2733,7 @@ var nt = { exports: {} };
2736
2733
  });
2737
2734
  return r(a, n), a;
2738
2735
  }
2739
- function xt(n, c) {
2736
+ function _t(n, c) {
2740
2737
  var a = this;
2741
2738
  n = i(n);
2742
2739
  var d = a.ready().then(function() {
@@ -2745,20 +2742,20 @@ var nt = { exports: {} };
2745
2742
  });
2746
2743
  return r(d, c), d;
2747
2744
  }
2748
- function _t(n, c) {
2745
+ function Tt(n, c) {
2749
2746
  var a = this, d = a.ready().then(function() {
2750
- for (var m = a._dbInfo, f = m.keyPrefix, _ = f.length, R = localStorage.length, U = 1, B = 0; B < R; B++) {
2751
- var F = localStorage.key(B);
2747
+ for (var m = a._dbInfo, f = m.keyPrefix, x = f.length, R = localStorage.length, U = 1, $ = 0; $ < R; $++) {
2748
+ var F = localStorage.key($);
2752
2749
  if (F.indexOf(f) === 0) {
2753
2750
  var H = localStorage.getItem(F);
2754
- if (H && (H = m.serializer.deserialize(H)), H = n(H, F.substring(_), U++), H !== void 0)
2751
+ if (H && (H = m.serializer.deserialize(H)), H = n(H, F.substring(x), U++), H !== void 0)
2755
2752
  return H;
2756
2753
  }
2757
2754
  }
2758
2755
  });
2759
2756
  return r(d, c), d;
2760
2757
  }
2761
- function Tt(n, c) {
2758
+ function Ct(n, c) {
2762
2759
  var a = this, d = a.ready().then(function() {
2763
2760
  var m = a._dbInfo, f;
2764
2761
  try {
@@ -2770,23 +2767,23 @@ var nt = { exports: {} };
2770
2767
  });
2771
2768
  return r(d, c), d;
2772
2769
  }
2773
- function Ct(n) {
2770
+ function Mt(n) {
2774
2771
  var c = this, a = c.ready().then(function() {
2775
- for (var d = c._dbInfo, m = localStorage.length, f = [], _ = 0; _ < m; _++) {
2776
- var R = localStorage.key(_);
2772
+ for (var d = c._dbInfo, m = localStorage.length, f = [], x = 0; x < m; x++) {
2773
+ var R = localStorage.key(x);
2777
2774
  R.indexOf(d.keyPrefix) === 0 && f.push(R.substring(d.keyPrefix.length));
2778
2775
  }
2779
2776
  return f;
2780
2777
  });
2781
2778
  return r(a, n), a;
2782
2779
  }
2783
- function Mt(n) {
2780
+ function Pt(n) {
2784
2781
  var c = this, a = c.keys().then(function(d) {
2785
2782
  return d.length;
2786
2783
  });
2787
2784
  return r(a, n), a;
2788
2785
  }
2789
- function Pt(n, c) {
2786
+ function Lt(n, c) {
2790
2787
  var a = this;
2791
2788
  n = i(n);
2792
2789
  var d = a.ready().then(function() {
@@ -2795,20 +2792,20 @@ var nt = { exports: {} };
2795
2792
  });
2796
2793
  return r(d, c), d;
2797
2794
  }
2798
- function Lt(n, c, a) {
2795
+ function Nt(n, c, a) {
2799
2796
  var d = this;
2800
2797
  n = i(n);
2801
2798
  var m = d.ready().then(function() {
2802
2799
  c === void 0 && (c = null);
2803
2800
  var f = c;
2804
- return new h(function(_, R) {
2801
+ return new h(function(x, R) {
2805
2802
  var U = d._dbInfo;
2806
- U.serializer.serialize(c, function(B, F) {
2803
+ U.serializer.serialize(c, function($, F) {
2807
2804
  if (F)
2808
2805
  R(F);
2809
2806
  else
2810
2807
  try {
2811
- localStorage.setItem(U.keyPrefix + n, B), _(f);
2808
+ localStorage.setItem(U.keyPrefix + n, $), x(f);
2812
2809
  } catch (H) {
2813
2810
  (H.name === "QuotaExceededError" || H.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(H), R(H);
2814
2811
  }
@@ -2817,52 +2814,52 @@ var nt = { exports: {} };
2817
2814
  });
2818
2815
  return r(m, a), m;
2819
2816
  }
2820
- function Nt(n, c) {
2817
+ function Rt(n, c) {
2821
2818
  if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
2822
2819
  var a = this.config();
2823
2820
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
2824
2821
  }
2825
2822
  var d = this, m;
2826
2823
  return n.name ? m = new h(function(f) {
2827
- n.storeName ? f(Nr(n, d._defaultConfig)) : f(n.name + "/");
2824
+ n.storeName ? f(Lr(n, d._defaultConfig)) : f(n.name + "/");
2828
2825
  }).then(function(f) {
2829
- for (var _ = localStorage.length - 1; _ >= 0; _--) {
2830
- var R = localStorage.key(_);
2826
+ for (var x = localStorage.length - 1; x >= 0; x--) {
2827
+ var R = localStorage.key(x);
2831
2828
  R.indexOf(f) === 0 && localStorage.removeItem(R);
2832
2829
  }
2833
2830
  }) : m = h.reject("Invalid arguments"), r(m, c), m;
2834
2831
  }
2835
- var Rt = {
2832
+ var Ut = {
2836
2833
  _driver: "localStorageWrapper",
2837
- _initStorage: It,
2838
- _support: St(),
2839
- iterate: _t,
2840
- getItem: xt,
2841
- setItem: Lt,
2842
- removeItem: Pt,
2843
- clear: Dt,
2844
- length: Mt,
2845
- key: Tt,
2846
- keys: Ct,
2847
- dropInstance: Nt
2848
- }, Ut = function(c, a) {
2849
- return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
2834
+ _initStorage: Dt,
2835
+ _support: At(),
2836
+ iterate: Tt,
2837
+ getItem: _t,
2838
+ setItem: Nt,
2839
+ removeItem: Lt,
2840
+ clear: xt,
2841
+ length: Pt,
2842
+ key: Ct,
2843
+ keys: Mt,
2844
+ dropInstance: Rt
2850
2845
  }, Bt = function(c, a) {
2846
+ return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
2847
+ }, $t = function(c, a) {
2851
2848
  for (var d = c.length, m = 0; m < d; ) {
2852
- if (Ut(c[m], a))
2849
+ if (Bt(c[m], a))
2853
2850
  return !0;
2854
2851
  m++;
2855
2852
  }
2856
2853
  return !1;
2857
- }, Rr = Array.isArray || function(n) {
2854
+ }, Nr = Array.isArray || function(n) {
2858
2855
  return Object.prototype.toString.call(n) === "[object Array]";
2859
- }, Fe = {}, Ur = {}, Ne = {
2856
+ }, Fe = {}, Rr = {}, Ne = {
2860
2857
  INDEXEDDB: Oe,
2861
- WEBSQL: bt,
2862
- LOCALSTORAGE: Rt
2863
- }, $t = [Ne.INDEXEDDB._driver, Ne.WEBSQL._driver, Ne.LOCALSTORAGE._driver], qe = ["dropInstance"], nr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(qe), Ft = {
2858
+ WEBSQL: St,
2859
+ LOCALSTORAGE: Ut
2860
+ }, Ft = [Ne.INDEXEDDB._driver, Ne.WEBSQL._driver, Ne.LOCALSTORAGE._driver], qe = ["dropInstance"], nr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(qe), kt = {
2864
2861
  description: "",
2865
- driver: $t.slice(),
2862
+ driver: Ft.slice(),
2866
2863
  name: "localforage",
2867
2864
  // Default DB size is _JUST UNDER_ 5MB, as it's the highest size
2868
2865
  // we can use without a prompt.
@@ -2870,7 +2867,7 @@ var nt = { exports: {} };
2870
2867
  storeName: "keyvaluepairs",
2871
2868
  version: 1
2872
2869
  };
2873
- function kt(n, c) {
2870
+ function Gt(n, c) {
2874
2871
  n[c] = function() {
2875
2872
  var a = arguments;
2876
2873
  return n.ready().then(function() {
@@ -2883,11 +2880,11 @@ var nt = { exports: {} };
2883
2880
  var c = arguments[n];
2884
2881
  if (c)
2885
2882
  for (var a in c)
2886
- c.hasOwnProperty(a) && (Rr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
2883
+ c.hasOwnProperty(a) && (Nr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
2887
2884
  }
2888
2885
  return arguments[0];
2889
2886
  }
2890
- var Gt = function() {
2887
+ var Wt = function() {
2891
2888
  function n(c) {
2892
2889
  T(this, n);
2893
2890
  for (var a in Ne)
@@ -2895,7 +2892,7 @@ var nt = { exports: {} };
2895
2892
  var d = Ne[a], m = d._driver;
2896
2893
  this[a] = m, Fe[m] || this.defineDriver(d);
2897
2894
  }
2898
- this._defaultConfig = ar({}, Ft), this._config = ar({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2895
+ this._defaultConfig = ar({}, kt), this._config = ar({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2899
2896
  });
2900
2897
  }
2901
2898
  return n.prototype.config = function(a) {
@@ -2911,34 +2908,34 @@ var nt = { exports: {} };
2911
2908
  } else
2912
2909
  return typeof a == "string" ? this._config[a] : this._config;
2913
2910
  }, n.prototype.defineDriver = function(a, d, m) {
2914
- var f = new h(function(_, R) {
2911
+ var f = new h(function(x, R) {
2915
2912
  try {
2916
- var U = a._driver, B = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2913
+ var U = a._driver, $ = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2917
2914
  if (!a._driver) {
2918
- R(B);
2915
+ R($);
2919
2916
  return;
2920
2917
  }
2921
2918
  for (var F = nr.concat("_initStorage"), H = 0, Z = F.length; H < Z; H++) {
2922
- var X = F[H], O = !Bt(qe, X);
2919
+ var X = F[H], O = !$t(qe, X);
2923
2920
  if ((O || a[X]) && typeof a[X] != "function") {
2924
- R(B);
2921
+ R($);
2925
2922
  return;
2926
2923
  }
2927
2924
  }
2928
2925
  var ue = function() {
2929
- for (var ke = function(Ht) {
2926
+ for (var ke = function(Vt) {
2930
2927
  return function() {
2931
- var Vt = new Error("Method " + Ht + " is not implemented by the current driver"), Br = h.reject(Vt);
2932
- return r(Br, arguments[arguments.length - 1]), Br;
2928
+ var Yt = new Error("Method " + Vt + " is not implemented by the current driver"), Ur = h.reject(Yt);
2929
+ return r(Ur, arguments[arguments.length - 1]), Ur;
2933
2930
  };
2934
- }, lr = 0, qt = qe.length; lr < qt; lr++) {
2931
+ }, lr = 0, Ht = qe.length; lr < Ht; lr++) {
2935
2932
  var ur = qe[lr];
2936
2933
  a[ur] || (a[ur] = ke(ur));
2937
2934
  }
2938
2935
  };
2939
2936
  ue();
2940
2937
  var ae = function(ke) {
2941
- Fe[U] && console.info("Redefining LocalForage driver: " + U), Fe[U] = a, Ur[U] = ke, _();
2938
+ Fe[U] && console.info("Redefining LocalForage driver: " + U), Fe[U] = a, Rr[U] = ke, x();
2942
2939
  };
2943
2940
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
2944
2941
  } catch (ve) {
@@ -2961,15 +2958,15 @@ var nt = { exports: {} };
2961
2958
  return l(m, a, a), m;
2962
2959
  }, n.prototype.setDriver = function(a, d, m) {
2963
2960
  var f = this;
2964
- Rr(a) || (a = [a]);
2965
- var _ = this._getSupportedDrivers(a);
2961
+ Nr(a) || (a = [a]);
2962
+ var x = this._getSupportedDrivers(a);
2966
2963
  function R() {
2967
2964
  f._config.driver = f.driver();
2968
2965
  }
2969
2966
  function U(H) {
2970
2967
  return f._extend(H), R(), f._ready = f._initStorage(f._config), f._ready;
2971
2968
  }
2972
- function B(H) {
2969
+ function $(H) {
2973
2970
  return function() {
2974
2971
  var Z = 0;
2975
2972
  function X() {
@@ -2988,9 +2985,9 @@ var nt = { exports: {} };
2988
2985
  return h.resolve();
2989
2986
  }) : h.resolve();
2990
2987
  return this._driverSet = F.then(function() {
2991
- var H = _[0];
2988
+ var H = x[0];
2992
2989
  return f._dbInfo = null, f._ready = null, f.getDriver(H).then(function(Z) {
2993
- f._driver = Z._driver, R(), f._wrapLibraryMethodsWithReady(), f._initDriver = B(_);
2990
+ f._driver = Z._driver, R(), f._wrapLibraryMethodsWithReady(), f._initDriver = $(x);
2994
2991
  });
2995
2992
  }).catch(function() {
2996
2993
  R();
@@ -2998,35 +2995,35 @@ var nt = { exports: {} };
2998
2995
  return f._driverSet = h.reject(H), f._driverSet;
2999
2996
  }), l(this._driverSet, d, m), this._driverSet;
3000
2997
  }, n.prototype.supports = function(a) {
3001
- return !!Ur[a];
2998
+ return !!Rr[a];
3002
2999
  }, n.prototype._extend = function(a) {
3003
3000
  ar(this, a);
3004
3001
  }, n.prototype._getSupportedDrivers = function(a) {
3005
3002
  for (var d = [], m = 0, f = a.length; m < f; m++) {
3006
- var _ = a[m];
3007
- this.supports(_) && d.push(_);
3003
+ var x = a[m];
3004
+ this.supports(x) && d.push(x);
3008
3005
  }
3009
3006
  return d;
3010
3007
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
3011
3008
  for (var a = 0, d = nr.length; a < d; a++)
3012
- kt(this, nr[a]);
3009
+ Gt(this, nr[a]);
3013
3010
  }, n.prototype.createInstance = function(a) {
3014
3011
  return new n(a);
3015
3012
  }, n;
3016
- }(), Wt = new Gt();
3017
- S.exports = Wt;
3013
+ }(), qt = new Wt();
3014
+ S.exports = qt;
3018
3015
  }, { 3: 3 }] }, {}, [4])(4);
3019
3016
  });
3020
- })(nt);
3021
- var _n = nt.exports;
3022
- const at = /* @__PURE__ */ pt(_n);
3017
+ })(at);
3018
+ var _n = at.exports;
3019
+ const lt = /* @__PURE__ */ en(_n);
3023
3020
  let Ye = null;
3024
- at.config({
3025
- name: tt()
3021
+ lt.config({
3022
+ name: nt()
3026
3023
  });
3027
3024
  function he() {
3028
- const e = tt();
3029
- return (Ye == null || Ye.config.name != e) && (Ye = at.createInstance({ name: e })), Ye;
3025
+ const e = nt();
3026
+ return (Ye == null || Ye.config.name != e) && (Ye = lt.createInstance({ name: e })), Ye;
3030
3027
  }
3031
3028
  function ba() {
3032
3029
  async function e(o) {
@@ -3055,7 +3052,7 @@ let Ze;
3055
3052
  function Sa(e) {
3056
3053
  return Ze(e)();
3057
3054
  }
3058
- function lt(e) {
3055
+ function ut(e) {
3059
3056
  return Ze(e);
3060
3057
  }
3061
3058
  function Tn(e) {
@@ -3074,11 +3071,11 @@ function Cn(e) {
3074
3071
  if (e.storeMode == "whole-last-updated") {
3075
3072
  if (e.api == null)
3076
3073
  throw new Error("Must supply an api object to use store");
3077
- return Gr({ ...e, storeName: e.storeName ?? "" });
3074
+ return kr({ ...e, storeName: e.storeName ?? "" });
3078
3075
  } else if (e.storeMode == "partial-last-updated") {
3079
3076
  if (e.api == null)
3080
3077
  throw new Error("Must supply an api object to use store");
3081
- return Gr({ ...e, storeName: e.storeName ?? "" });
3078
+ return kr({ ...e, storeName: e.storeName ?? "" });
3082
3079
  } else
3083
3080
  return Pn({ ...e, storeName: e.storeName ?? "" });
3084
3081
  }
@@ -3094,7 +3091,7 @@ const Mn = (e) => {
3094
3091
  return e.finalUrl = t, e.finalUrl ?? "";
3095
3092
  };
3096
3093
  function Pn(e) {
3097
- return Xr(e.storeName, () => {
3094
+ return Kr(e.storeName, () => {
3098
3095
  var l;
3099
3096
  const t = oe.utc().toSeconds() / 86400, u = z({}), S = z({}), o = e.storageMode == "local-cache", g = e.buildUrl ?? ((l = e.api) == null ? void 0 : l.buildUrl) ?? Mn;
3100
3097
  function T(i) {
@@ -3172,7 +3169,7 @@ function Pn(e) {
3172
3169
  throw new Error(M.message ?? "Problem");
3173
3170
  }
3174
3171
  }
3175
- async function x(i) {
3172
+ async function B(i) {
3176
3173
  i.additionalUrl ?? (i.additionalUrl = "/patch");
3177
3174
  const y = T(i);
3178
3175
  let w;
@@ -3205,7 +3202,7 @@ function Pn(e) {
3205
3202
  }
3206
3203
  return w;
3207
3204
  }
3208
- async function $(i) {
3205
+ async function _(i) {
3209
3206
  i.additionalUrl ?? (i.additionalUrl = "/post");
3210
3207
  const y = T(i);
3211
3208
  let w;
@@ -3252,22 +3249,22 @@ function Pn(e) {
3252
3249
  deleteItem: h,
3253
3250
  get: L,
3254
3251
  getAll: C,
3255
- patch: x,
3256
- post: $,
3252
+ patch: B,
3253
+ post: _,
3257
3254
  restore: r,
3258
3255
  searchMemory: u
3259
3256
  //mainly for testing
3260
3257
  };
3261
3258
  });
3262
3259
  }
3263
- function Gr(e) {
3264
- return Xr(e.storeName, () => {
3260
+ function kr(e) {
3261
+ return Kr(e.storeName, () => {
3265
3262
  const t = z(), u = z(0), S = oe.utc().toSeconds() / 3600, o = z(), g = z(), T = z({}), C = e.storageMode == "local-cache";
3266
3263
  function L() {
3267
3264
  var v;
3268
3265
  return `${e.storeName}_${((v = e.auth) == null ? void 0 : v.credentials.value.userID) ?? "no-user-id"}`;
3269
3266
  }
3270
- async function x() {
3267
+ async function B() {
3271
3268
  C == !0 && await he().setItem(L(), {
3272
3269
  meta: g.value,
3273
3270
  data: t.value,
@@ -3275,7 +3272,7 @@ function Gr(e) {
3275
3272
  filters: []
3276
3273
  });
3277
3274
  }
3278
- function $(v) {
3275
+ function _(v) {
3279
3276
  const M = L();
3280
3277
  return T.value[M] || (T.value[M] = new Promise(async (E, P) => {
3281
3278
  var A, N;
@@ -3284,7 +3281,7 @@ function Gr(e) {
3284
3281
  additionalUrl: "/getAll",
3285
3282
  nav: v.nav,
3286
3283
  params: {
3287
- lastUpdate: ((A = g.value) == null ? void 0 : A.lastUpdate) ?? nn()
3284
+ lastUpdate: ((A = g.value) == null ? void 0 : A.lastUpdate) ?? an()
3288
3285
  }
3289
3286
  }));
3290
3287
  b == null ? P(b) : (t.value ?? (t.value = []), b.data.forEach((D) => {
@@ -3294,7 +3291,7 @@ function Gr(e) {
3294
3291
  }), u.value = t.value.length, g.value = {
3295
3292
  lastUpdate: oe.utc().toString(),
3296
3293
  storedOn: S.toString()
3297
- }, await x(), E(b));
3294
+ }, await B(), E(b));
3298
3295
  } catch (b) {
3299
3296
  P(b);
3300
3297
  } finally {
@@ -3328,7 +3325,7 @@ function Gr(e) {
3328
3325
  };
3329
3326
  t.value ?? (t.value = []);
3330
3327
  try {
3331
- return await $(v);
3328
+ return await _(v);
3332
3329
  } catch (b) {
3333
3330
  let D = b;
3334
3331
  throw new Error(D.message ?? "Problem");
@@ -3360,7 +3357,7 @@ function Gr(e) {
3360
3357
  };
3361
3358
  t.value ?? (t.value = []);
3362
3359
  try {
3363
- return await $(v), { data: (b = t.value) == null ? void 0 : b.find((D) => D.id == v.id) };
3360
+ return await _(v), { data: (b = t.value) == null ? void 0 : b.find((D) => D.id == v.id) };
3364
3361
  } catch (D) {
3365
3362
  let s = D;
3366
3363
  throw new Error(s.message ?? "Problem");
@@ -3382,7 +3379,7 @@ function Gr(e) {
3382
3379
  M = v.data;
3383
3380
  if (M != null) {
3384
3381
  let N = (E = t.value) == null ? void 0 : E.findIndex((b) => b.id == M.id);
3385
- N != null && N >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(N, 1, M), await x());
3382
+ N != null && N >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(N, 1, M), await B());
3386
3383
  }
3387
3384
  return (A = t.value) == null ? void 0 : A.find((N) => N.id == (v.id ?? v.data.id));
3388
3385
  }
@@ -3400,7 +3397,7 @@ function Gr(e) {
3400
3397
  }
3401
3398
  else
3402
3399
  M = v.data;
3403
- return M != null && (t.value ?? (t.value = []), (E = t.value) == null || E.unshift(M), u.value += 1, await x()), (P = t.value) == null ? void 0 : P.find((A) => A.id == (v.id ?? v.data.id));
3400
+ return M != null && (t.value ?? (t.value = []), (E = t.value) == null || E.unshift(M), u.value += 1, await B()), (P = t.value) == null ? void 0 : P.find((A) => A.id == (v.id ?? v.data.id));
3404
3401
  }
3405
3402
  async function y(v) {
3406
3403
  var E, P;
@@ -3416,7 +3413,7 @@ function Gr(e) {
3416
3413
  const M = v.id ?? v.data.id;
3417
3414
  if (M != null) {
3418
3415
  let A = (E = t.value) == null ? void 0 : E.findIndex((N) => N.id == M);
3419
- A != null && A >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(A, 1), await x());
3416
+ A != null && A >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(A, 1), await B());
3420
3417
  }
3421
3418
  }
3422
3419
  async function w(v) {
@@ -3429,7 +3426,7 @@ function Gr(e) {
3429
3426
  throw new Error(P.message ?? "Patch Problem");
3430
3427
  }
3431
3428
  try {
3432
- v.additionalUrl = "/getAll", await $(v);
3429
+ v.additionalUrl = "/getAll", await _(v);
3433
3430
  } catch (E) {
3434
3431
  let P = E;
3435
3432
  throw new Error(P.message ?? "Problem");
@@ -3447,17 +3444,17 @@ function Gr(e) {
3447
3444
  });
3448
3445
  }
3449
3446
  function Ln(e, t) {
3450
- const u = z(!1), S = Yt(e);
3447
+ const u = z(!1), S = zt(e);
3451
3448
  let o = g(V(e));
3452
3449
  (t == null ? void 0 : t.useTracker) !== !1 && xe(S, (C) => {
3453
3450
  u.value = g(C) != o;
3454
3451
  }, { deep: !0 });
3455
3452
  function g(C) {
3456
- const L = xr(C);
3457
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((x) => {
3458
- delete L[x];
3459
- }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
3460
- t.propsToTrack.some((h) => h == $) || delete L[$];
3453
+ const L = Dr(C);
3454
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((B) => {
3455
+ delete L[B];
3456
+ }) : t.propsToTrack != null && Object.keys(C).forEach((_) => {
3457
+ t.propsToTrack.some((h) => h == _) || delete L[_];
3461
3458
  })), JSON.stringify(L);
3462
3459
  }
3463
3460
  function T() {
@@ -3474,13 +3471,13 @@ function Aa(e, t) {
3474
3471
  const {
3475
3472
  // useBladeSrc = true,
3476
3473
  useRouteSrc: u = !0
3477
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", o = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", T = Dr(), C = Qr(), L = V(e.proxyQueryKey), x = ee(() => {
3474
+ } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", o = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", T = Qr(), C = Xr(), L = V(e.proxyQueryKey), B = ee(() => {
3478
3475
  var G;
3479
3476
  return V(e.proxyID) ?? (L != null ? (G = C == null ? void 0 : C.query) == null ? void 0 : G[L] : void 0);
3480
- }), $ = z(void 0), { actionErrorMsg: h, actionLoadingMsg: r, deleteItem: l, getItem: i, getAllItems: y, restoreItem: w, saveItem: v } = pr({
3477
+ }), _ = z(void 0), { actionErrorMsg: h, actionLoadingMsg: r, deleteItem: l, getItem: i, getAllItems: y, restoreItem: w, saveItem: v } = pr({
3481
3478
  nav: g,
3482
- proxyID: x.value,
3483
- store: lt({
3479
+ proxyID: B.value,
3480
+ store: ut({
3484
3481
  storeMode: S,
3485
3482
  storageMode: o,
3486
3483
  nav: g
@@ -3488,22 +3485,22 @@ function Aa(e, t) {
3488
3485
  }), M = ee(() => e.errorMsg ?? h.value), E = ee(() => e.loadingMsg ?? r.value), P = ee(() => E.value != null), A = z(e.itemID ?? (u ? (ne = C == null ? void 0 : C.params) == null ? void 0 : ne.id : void 0)), N = z(A.value == "new" ? "new" : e.startEditing ? "edit" : "view"), b = Te(!1), D = ee(() => {
3489
3486
  if (N.value == "new")
3490
3487
  return !1;
3491
- const G = V($);
3488
+ const G = V(_);
3492
3489
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3493
3490
  }), s = ee(() => {
3494
3491
  if (N.value == "new")
3495
3492
  return !1;
3496
- const G = V($);
3493
+ const G = V(_);
3497
3494
  return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3498
3495
  }), I = ee(() => {
3499
3496
  if (N.value == "new")
3500
3497
  return !1;
3501
- const G = V($);
3498
+ const G = V(_);
3502
3499
  return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
3503
3500
  }), j = ee(() => {
3504
- const G = V($);
3501
+ const G = V(_);
3505
3502
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3506
- }), { isChanged: Q, restartTracker: te } = Ln($, {
3503
+ }), { isChanged: Q, restartTracker: te } = Ln(_, {
3507
3504
  useTracker: e.trackChanges,
3508
3505
  propsToIgnore: e.trackIgnoreProps,
3509
3506
  propsToTrack: e.trackProps
@@ -3547,12 +3544,12 @@ function Aa(e, t) {
3547
3544
  }
3548
3545
  async function W(G) {
3549
3546
  if (b.value = !1, e.item != null)
3550
- $.value = e.item;
3547
+ _.value = e.item;
3551
3548
  else {
3552
3549
  const J = {
3553
3550
  additionalUrl: e.additionalUrl,
3554
3551
  id: A.value,
3555
- proxyID: x.value,
3552
+ proxyID: B.value,
3556
3553
  params: e.params,
3557
3554
  // ...(useBladeSrc ? bladeData.value : {}),
3558
3555
  refresh: (G == null ? void 0 : G.deepRefresh) ?? !1,
@@ -3560,10 +3557,10 @@ function Aa(e, t) {
3560
3557
  onGetSuccessAsync: e.onGetSuccessAsync
3561
3558
  };
3562
3559
  if (e.isSingle === !0)
3563
- J.id === "new" ? $.value = e.onGetNew ? e.onGetNew() : {} : $.value = await i(J);
3560
+ J.id === "new" ? _.value = e.onGetNew ? e.onGetNew() : {} : _.value = await i(J);
3564
3561
  else {
3565
3562
  const re = await y(J);
3566
- $.value = re.data;
3563
+ _.value = re.data;
3567
3564
  }
3568
3565
  }
3569
3566
  te();
@@ -3584,7 +3581,7 @@ function Aa(e, t) {
3584
3581
  onGetSaveAsync: fe,
3585
3582
  onSaveAsync: Ue,
3586
3583
  onSaveSuccessAsync: Be,
3587
- proxyID: x.value,
3584
+ proxyID: B.value,
3588
3585
  // ...params.getOptions(),
3589
3586
  // ...(useBladeSrc ? bladeData.value : {}),
3590
3587
  mode: N.value
@@ -3598,11 +3595,11 @@ function Aa(e, t) {
3598
3595
  b.value = G != null;
3599
3596
  }), xe(() => e.refreshToggle, () => {
3600
3597
  W({ deepRefresh: !0 });
3601
- }), jr(async () => {
3598
+ }), Jr(async () => {
3602
3599
  var G;
3603
3600
  e.eager == !0 && await W({ deepRefresh: ((G = C == null ? void 0 : C.params) == null ? void 0 : G.refresh) == "true" });
3604
3601
  }), {
3605
- asyncItem: $,
3602
+ asyncItem: _,
3606
3603
  deleteItem: ie,
3607
3604
  errorMsg: M,
3608
3605
  isChanged: Q,
@@ -3623,13 +3620,13 @@ function Aa(e, t) {
3623
3620
  }
3624
3621
  function Ea(e, t, u) {
3625
3622
  var Pe;
3626
- const S = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", o = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", T = An(), C = Dr(), L = Qr(), x = z(1), $ = V(e.customFilters) ?? [], h = z([]);
3623
+ const S = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", o = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", T = An(), C = Qr(), L = Xr(), B = z(1), _ = V(e.customFilters) ?? [], h = z([]);
3627
3624
  let r = z(new Array());
3628
- const l = ee(() => jt([
3629
- ...$.filter((k) => k.name != null).map((k) => k.name),
3625
+ const l = ee(() => Kt([
3626
+ ..._.filter((k) => k.name != null).map((k) => k.name),
3630
3627
  ...e.defaultFilters ?? [],
3631
3628
  ...h.value
3632
- ]).value), i = z((e.defaultFilters ?? []).map((k) => l.value.indexOf(k))), y = ee(() => $r(r, i).value.length > 0 || $r(i, r).value.length > 0), w = V(e.proxyQueryKey), v = ee(() => {
3629
+ ]).value), i = z((e.defaultFilters ?? []).map((k) => l.value.indexOf(k))), y = ee(() => Br(r, i).value.length > 0 || Br(i, r).value.length > 0), w = V(e.proxyQueryKey), v = ee(() => {
3633
3630
  var k;
3634
3631
  return V(e.proxyID) ?? (w != null ? (k = L == null ? void 0 : L.query) == null ? void 0 : k[w] : void 0);
3635
3632
  }), M = V(e.searchQueryKey), E = z(M != null ? (Pe = L == null ? void 0 : L.query) == null ? void 0 : Pe[M] : void 0), P = z(V(e.startShowingInactive) ?? !1), A = z(V(e.sortOrder)), N = ee(() => [
@@ -3640,7 +3637,7 @@ function Ea(e, t, u) {
3640
3637
  const { actionErrorMsg: j, actionLoadingMsg: Q, deleteItem: te, doAction: ie, getItem: ye, getAllItems: W, restoreItem: Y } = pr({
3641
3638
  nav: g,
3642
3639
  proxyID: v.value,
3643
- store: lt({
3640
+ store: ut({
3644
3641
  storeMode: S,
3645
3642
  storageMode: o,
3646
3643
  nav: g
@@ -3726,7 +3723,7 @@ function Ea(e, t, u) {
3726
3723
  let k = V(b);
3727
3724
  if (k = e.onFilter ? e.onFilter(k) : k, E.value != null && E.value.length > 0) {
3728
3725
  let le = [...N.value];
3729
- e.itemText && le.push(e.itemText), Re(le) && (k = k.filter((K) => sn(K, E.value, le)));
3726
+ e.itemText && le.push(e.itemText), Re(le) && (k = k.filter((K) => on(K, E.value, le)));
3730
3727
  }
3731
3728
  D.value = k;
3732
3729
  }
@@ -3786,23 +3783,23 @@ function Ea(e, t, u) {
3786
3783
  function $e() {
3787
3784
  re.value ? (re.value = e.showSearch ?? !1, E.value = void 0, Ee()) : re.value = e.showSearch ?? !0;
3788
3785
  }
3789
- return er(), Kt([E], () => {
3786
+ return er(), Qt([E], () => {
3790
3787
  me();
3791
- }, { debounce: 500, maxWait: 500 }), xe([P, x], async () => {
3788
+ }, { debounce: 500, maxWait: 500 }), xe([P, B], async () => {
3792
3789
  await Ee();
3793
3790
  }), xe([q, () => e.errorMsg], ([k, le]) => {
3794
3791
  J.value = k != null || le != null;
3795
3792
  }), xe(() => e.refreshToggle, () => {
3796
3793
  Ee({ deepRefresh: !0 });
3797
- }), Kr([b, () => e.items], () => {
3794
+ }), jr([b, () => e.items], () => {
3798
3795
  me();
3799
- }), jr(async () => {
3796
+ }), Jr(async () => {
3800
3797
  var k;
3801
3798
  e.eager == !0 && await Ee({ deepRefresh: ((k = L == null ? void 0 : L.params) == null ? void 0 : k.refresh) == "true" });
3802
3799
  }), {
3803
3800
  add: Qe,
3804
3801
  asyncItems: b,
3805
- currentPage: x,
3802
+ currentPage: B,
3806
3803
  deleteItem: Xe,
3807
3804
  displayHeaders: Ke,
3808
3805
  errorMsg: q,
@@ -3832,7 +3829,7 @@ function Ea(e, t, u) {
3832
3829
  totalPages: ce
3833
3830
  };
3834
3831
  }
3835
- const Wr = z(!0), qr = z(!1), Hr = z(), sr = z(!1);
3832
+ const Gr = z(!0), Wr = z(!1), qr = z(), sr = z(!1);
3836
3833
  let or = null, Ar;
3837
3834
  function Ia() {
3838
3835
  return Ar;
@@ -3843,7 +3840,7 @@ function Nn(e) {
3843
3840
  if (r.displayName != null)
3844
3841
  return r.displayName;
3845
3842
  if (r.name != null)
3846
- return rn(r.name.replaceAll("-", " "));
3843
+ return tn(r.name.replaceAll("-", " "));
3847
3844
  });
3848
3845
  const u = (e.navItems ?? []).map((r) => ({
3849
3846
  displayName: r.displayName ?? e.getDisplayName(r),
@@ -3878,7 +3875,7 @@ function Nn(e) {
3878
3875
  let i = mn(l.microservice ?? "default") ?? "";
3879
3876
  return l.path != null && (i = Ce(i, l.path)), i != null && i.endsWith("/") && (i = i.slice(0, i.length - 1)), i;
3880
3877
  }
3881
- function x(r) {
3878
+ function B(r) {
3882
3879
  const l = C(r);
3883
3880
  if ((l == null ? void 0 : l.singleName) != null)
3884
3881
  return l.singleName;
@@ -3886,7 +3883,7 @@ function Nn(e) {
3886
3883
  if (i != null)
3887
3884
  return i.endsWith("ies") ? i.slice(0, i.length - 3) : i.endsWith("es") ? i.slice(0, i.length - 2) : i.endsWith("s") ? i.slice(0, i.length - 1) : i;
3888
3885
  }
3889
- function $(r) {
3886
+ function _(r) {
3890
3887
  const l = C(r);
3891
3888
  return (l == null ? void 0 : l.name) ?? (l == null ? void 0 : l.singleName);
3892
3889
  }
@@ -3894,14 +3891,14 @@ function Nn(e) {
3894
3891
  if (r == null)
3895
3892
  return;
3896
3893
  const l = typeof r == "string" ? C(r) : r;
3897
- Hr.value = l == null ? void 0 : l.background, qr.value = (l == null ? void 0 : l.hideNavigation) !== !0, Wr.value = (l == null ? void 0 : l.hideAppBar) !== !0, or != null && or(), sr.value = (l == null ? void 0 : l.hesitate) === !0, sr.value && (or = window.addEventListener("beforeunload", (i) => {
3894
+ qr.value = l == null ? void 0 : l.background, Wr.value = (l == null ? void 0 : l.hideNavigation) !== !0, Gr.value = (l == null ? void 0 : l.hideAppBar) !== !0, or != null && or(), sr.value = (l == null ? void 0 : l.hesitate) === !0, sr.value && (or = window.addEventListener("beforeunload", (i) => {
3898
3895
  i.preventDefault();
3899
3896
  }));
3900
3897
  }
3901
3898
  return Ar = {
3902
- showAppBar: Wr,
3903
- showAppNavigation: qr,
3904
- backgroundName: Hr,
3899
+ showAppBar: Gr,
3900
+ showAppNavigation: Wr,
3901
+ backgroundName: qr,
3905
3902
  hesitate: sr,
3906
3903
  navigationItems: u,
3907
3904
  findArchiveName: S,
@@ -3909,9 +3906,9 @@ function Nn(e) {
3909
3906
  findDisplay: g,
3910
3907
  findIcon: T,
3911
3908
  findItem: C,
3912
- findStoreName: $,
3909
+ findStoreName: _,
3913
3910
  findPath: L,
3914
- findSingleDisplay: x,
3911
+ findSingleDisplay: B,
3915
3912
  updateNavigationProperties: h
3916
3913
  }, Ar;
3917
3914
  }
@@ -3930,8 +3927,8 @@ function Rn(e) {
3930
3927
  usePresets: t
3931
3928
  }, Er;
3932
3929
  }
3933
- let Vr, Yr, zr, Zr = !1;
3934
- const dr = z(!1), hr = z(!1), Jr = z(), ze = z();
3930
+ let Hr, Vr, Yr, zr = !1;
3931
+ const dr = z(!1), hr = z(!1), Zr = z(), ze = z();
3935
3932
  let Ir;
3936
3933
  function xa() {
3937
3934
  return Ir;
@@ -3941,23 +3938,23 @@ function Un() {
3941
3938
  ze.value = T.detail, hr.value = !0;
3942
3939
  }
3943
3940
  function t() {
3944
- Zr || (Zr = !0, window.location.reload());
3941
+ zr || (zr = !0, window.location.reload());
3945
3942
  }
3946
3943
  function u() {
3947
3944
  var T;
3948
- (T = Jr.value) == null || T.prompt(), dr.value = !1;
3945
+ (T = Zr.value) == null || T.prompt(), dr.value = !1;
3949
3946
  }
3950
3947
  function S() {
3951
3948
  return !!window.matchMedia("(display-mode: standalone)").matches;
3952
3949
  }
3953
3950
  function o(T) {
3954
- T.preventDefault(), dr.value = !0, Jr.value = T;
3951
+ T.preventDefault(), dr.value = !0, Zr.value = T;
3955
3952
  }
3956
3953
  function g() {
3957
3954
  hr.value = !1, !(!ze.value || !ze.value.waiting) && ze.value.waiting.postMessage({ type: "SKIP_WAITING" });
3958
3955
  }
3959
- return Qt(() => {
3960
- Vr == null && (Vr = document.addEventListener("swUpdated", e, { once: !0 })), Yr == null && (Yr = navigator.serviceWorker.addEventListener("controllerchange", t)), zr == null && (zr = window.addEventListener("beforeinstallprompt", o));
3956
+ return Xt(() => {
3957
+ Hr == null && (Hr = document.addEventListener("swUpdated", e, { once: !0 })), Vr == null && (Vr = navigator.serviceWorker.addEventListener("controllerchange", t)), Yr == null && (Yr = window.addEventListener("beforeinstallprompt", o));
3961
3958
  }), Ir = {
3962
3959
  canInstallApp: dr,
3963
3960
  canUpdateApp: hr,
@@ -3968,7 +3965,7 @@ function Un() {
3968
3965
  }
3969
3966
  function _a(e) {
3970
3967
  const t = [];
3971
- return (e == null ? void 0 : e.required) == !0 && t.push((u) => !!u || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((u) => !!u || "Password is required"), t.push((u) => u != null && u.length > 9 || "Password must be 10 or more characters"), t.push((u) => /^(.*[a-z].*)$/.test(u) || "Password must contain a lowercase letter"), t.push((u) => /^(.*[A-Z].*)$/.test(u) || "Password must contain an uppercase letter"), t.push((u) => /^(.*\d.*)$/.test(u) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((u) => !!u || "Email is required"), t.push((u) => on(u) || "Email must be valid")), t;
3968
+ return (e == null ? void 0 : e.required) == !0 && t.push((u) => !!u || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((u) => !!u || "Password is required"), t.push((u) => u != null && u.length > 9 || "Password must be 10 or more characters"), t.push((u) => /^(.*[a-z].*)$/.test(u) || "Password must contain a lowercase letter"), t.push((u) => /^(.*[A-Z].*)$/.test(u) || "Password must contain an uppercase letter"), t.push((u) => /^(.*\d.*)$/.test(u) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((u) => !!u || "Email is required"), t.push((u) => dn(u) || "Email must be valid")), t;
3972
3969
  }
3973
3970
  function Ta(e) {
3974
3971
  return {
@@ -3995,15 +3992,15 @@ function Ta(e) {
3995
3992
  };
3996
3993
  }
3997
3994
  export {
3998
- ua as DataURIToBlob,
3999
- ea as addWeekday,
3995
+ la as DataURIToBlob,
3996
+ pn as addWeekday,
4000
3997
  Ce as appendUrl,
4001
- rn as capitalizeWords,
4002
- jn as checkImage,
4003
- un as containsSearch,
4004
- pn as containsWeekday,
4005
- xr as copyDeep,
4006
- ln as copyItemByAlphabet,
3998
+ tn as capitalizeWords,
3999
+ Jn as checkImage,
4000
+ cn as containsSearch,
4001
+ On as containsWeekday,
4002
+ Dr as copyDeep,
4003
+ un as copyItemByAlphabet,
4007
4004
  hn as createApi,
4008
4005
  gn as createAuth,
4009
4006
  Ta as createCore,
@@ -4017,51 +4014,51 @@ export {
4017
4014
  Pn as createSessionStoreDefinition,
4018
4015
  Tn as createStoreBuilder,
4019
4016
  vn as createUrl,
4020
- Gr as createWholeLastUpdateStoreDefinition,
4021
- an as csvContains,
4017
+ kr as createWholeLastUpdateStoreDefinition,
4018
+ ln as csvContains,
4022
4019
  ma as csvDefaults,
4023
4020
  rt as deepSelect,
4024
- Hn as distinct,
4025
- Vn as extensionExists,
4026
- cn as extractErrorDescription,
4027
- en as fromCamelCase,
4028
- Yn as getAreaAround,
4029
- zn as getAreaToLeft,
4030
- Zn as getAreaToRight,
4031
- Jn as getGoogleMapsLocationLine,
4032
- Kn as getImageData,
4021
+ qn as distinct,
4022
+ Hn as extensionExists,
4023
+ fn as extractErrorDescription,
4024
+ rn as fromCamelCase,
4025
+ Vn as getAreaAround,
4026
+ Yn as getAreaToLeft,
4027
+ zn as getAreaToRight,
4028
+ Zn as getGoogleMapsLocationLine,
4029
+ jn as getImageData,
4033
4030
  et as getLocationLine,
4034
- na as getMinDate,
4035
- nn as getMinDateString,
4036
- fn as getRandomColor,
4037
- sn as hasSearch,
4038
- ta as isArrayOfLength,
4031
+ ta as getMinDate,
4032
+ an as getMinDateString,
4033
+ sn as getRandomColor,
4034
+ on as hasSearch,
4035
+ ra as isArrayOfLength,
4039
4036
  Re as isLengthyArray,
4040
- tn as isMinDate,
4037
+ nn as isMinDate,
4041
4038
  mr as nestedValue,
4042
- ra as removeWeekday,
4043
- aa as roundTo,
4044
- Qn as toCamelCase,
4045
- ia as toCompareString,
4046
- la as toggleCSV,
4047
- ca as twiddleThumbs,
4039
+ ea as removeWeekday,
4040
+ na as roundTo,
4041
+ Kn as toCamelCase,
4042
+ ua as toCompareString,
4043
+ aa as toggleCSV,
4044
+ ia as twiddleThumbs,
4048
4045
  pr as useActions,
4049
4046
  Or as useActionsTracker,
4050
- dn as useApi,
4051
- qn as useApiActions,
4047
+ tt as useApi,
4048
+ ca as useApiActions,
4052
4049
  sa as useAuth,
4053
- Fr as useAuthUrl,
4050
+ $r as useAuthUrl,
4054
4051
  oa as useBladeUI,
4055
4052
  An as useCSV,
4056
4053
  da as useCosmetics,
4057
4054
  mn as useDataUrl,
4058
4055
  va as useDates,
4059
- tt as useDbName,
4056
+ nt as useDbName,
4060
4057
  ga as useDemo,
4061
4058
  ya as useDocumentMeta,
4062
4059
  yn as useDraggable,
4063
4060
  wa as useFilters,
4064
- Xt as useId,
4061
+ Ot as useId,
4065
4062
  Aa as useItem,
4066
4063
  Ea as useList,
4067
4064
  ba as useLocalCache,
@@ -4073,11 +4070,11 @@ export {
4073
4070
  bn as useResizable,
4074
4071
  _a as useRules,
4075
4072
  Sa as useStore,
4076
- lt as useStoreDefinition,
4073
+ ut as useStoreDefinition,
4077
4074
  Ln as useTracker,
4078
4075
  fa as useUrls,
4079
- on as validEmail,
4076
+ dn as validEmail,
4080
4077
  We as weekdayPairs,
4081
- On as weekdayShortName,
4082
- Xn as weekdayValue
4078
+ Xn as weekdayShortName,
4079
+ Qn as weekdayValue
4083
4080
  };