buzzcasting-storage 2.10.5 → 2.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Ei = Object.defineProperty;
2
2
  var Oi = (v, o, l) => o in v ? Ei(v, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : v[o] = l;
3
3
  var P = (v, o, l) => (Oi(v, typeof o != "symbol" ? o + "" : o, l), l);
4
- const xi = "2.10.4";
4
+ const xi = "2.10.6";
5
5
  class ki {
6
6
  constructor(o) {
7
7
  P(this, "options");
@@ -21,7 +21,7 @@ class ki {
21
21
  async get(o) {
22
22
  const { version: l } = this.options, y = this.headers(), I = Object.assign({}, o);
23
23
  delete I.slide, delete I.type, delete I.hash;
24
- const M = Object.keys(I).length > 0 ? `?${new URLSearchParams(I).toString()}` : "";
24
+ const j = Object.keys(I).length > 0 ? `?${new URLSearchParams(I).toString()}` : "";
25
25
  return console.debug(
26
26
  "%capi%c %cget",
27
27
  x.API,
@@ -30,32 +30,32 @@ class ki {
30
30
  o.slide,
31
31
  o.widget
32
32
  ), await fetch(
33
- [this.url, "api", l, o.type].join("/") + M,
33
+ [this.url, "api", l, o.type].join("/") + j,
34
34
  { ...y, method: "get" }
35
- ).then(async (j) => {
36
- if (!j.ok)
37
- throw new Error(`${j.status}`);
38
- return j;
39
- }).then((j) => j.json()).then((j) => (j.query = o, j)).catch((j) => ({ success: !1, message: `${j}`, data: null }));
35
+ ).then(async (M) => {
36
+ if (!M.ok)
37
+ throw new Error(`${M.status}`);
38
+ return M;
39
+ }).then((M) => M.json()).then((M) => (M.query = o, M)).catch((M) => ({ success: !1, message: `${M}`, data: null }));
40
40
  }
41
41
  async hideMessage(o) {
42
- const { app: l, version: y } = this.options, I = this.headers(), M = "?action=visible";
42
+ const { app: l, version: y } = this.options, I = this.headers(), j = "?action=visible";
43
43
  return console.info(
44
44
  "%capi%c %cpost",
45
45
  x.API,
46
46
  x.NONE,
47
47
  x.GET_DATA,
48
48
  ue.HIDE_MESSAGE,
49
- [l, "api", y, o.type, o.id].join("/") + M,
49
+ [l, "api", y, o.type, o.id].join("/") + j,
50
50
  { ...I, method: "put" }
51
51
  ), await fetch(
52
- [l, "api", y, o.type, o.id].join("/") + M,
52
+ [l, "api", y, o.type, o.id].join("/") + j,
53
53
  { ...I, method: "put" }
54
- ).then((j) => {
55
- if (!j.ok)
56
- throw new Error(j.statusText);
57
- return j;
58
- }).then((j) => j.json()).catch((j) => ({ succes: !1, message: j, data: [] }));
54
+ ).then((M) => {
55
+ if (!M.ok)
56
+ throw new Error(M.statusText);
57
+ return M;
58
+ }).then((M) => M.json()).catch((M) => ({ succes: !1, message: M, data: [] }));
59
59
  }
60
60
  }
61
61
  var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -88,19 +88,19 @@ var Rr = { exports: {} };
88
88
  !r && i in t || ((r = r || Array.prototype.slice.call(t, 0, i))[i] = t[i]);
89
89
  return e.concat(r || Array.prototype.slice.call(t));
90
90
  }
91
- var M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ir, j = Object.keys, N = Array.isArray;
91
+ var j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ir, M = Object.keys, N = Array.isArray;
92
92
  function Z(e, t) {
93
- return typeof t != "object" || j(t).forEach(function(n) {
93
+ return typeof t != "object" || M(t).forEach(function(n) {
94
94
  e[n] = t[n];
95
95
  }), e;
96
96
  }
97
- typeof Promise > "u" || M.Promise || (M.Promise = Promise);
97
+ typeof Promise > "u" || j.Promise || (j.Promise = Promise);
98
98
  var te = Object.getPrototypeOf, be = {}.hasOwnProperty;
99
99
  function ie(e, t) {
100
100
  return be.call(e, t);
101
101
  }
102
102
  function xe(e, t) {
103
- typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? j : Reflect.ownKeys)(t).forEach(function(n) {
103
+ typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? M : Reflect.ownKeys)(t).forEach(function(n) {
104
104
  ke(e, n, t[n]);
105
105
  });
106
106
  }
@@ -125,7 +125,7 @@ var Rr = { exports: {} };
125
125
  throw new Error("Assertion Failed");
126
126
  }
127
127
  function Hn(e) {
128
- M.setImmediate ? setImmediate(e) : setTimeout(e, 0);
128
+ j.setImmediate ? setImmediate(e) : setTimeout(e, 0);
129
129
  }
130
130
  function ve(e, t) {
131
131
  if (typeof t == "string" && ie(e, t))
@@ -145,15 +145,15 @@ var Rr = { exports: {} };
145
145
  return u == null ? void 0 : ve(u, t.substr(s + 1));
146
146
  }
147
147
  }
148
- function fe(e, t, n) {
148
+ function de(e, t, n) {
149
149
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e)))
150
150
  if (typeof t != "string" && "length" in t) {
151
151
  rt(typeof n != "string" && "length" in n);
152
152
  for (var r = 0, i = t.length; r < i; ++r)
153
- fe(e, t[r], n[r]);
153
+ de(e, t[r], n[r]);
154
154
  } else {
155
155
  var a, s, u = t.indexOf(".");
156
- u !== -1 ? (a = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? N(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : fe(u = !(u = e[a]) || !ie(e, a) ? e[a] = {} : u, s, n)) : n === void 0 ? N(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
156
+ u !== -1 ? (a = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? N(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : de(u = !(u = e[a]) || !ie(e, a) ? e[a] = {} : u, s, n)) : n === void 0 ? N(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
157
157
  }
158
158
  }
159
159
  function Qn(e) {
@@ -171,9 +171,9 @@ var Rr = { exports: {} };
171
171
  return t + e + "Array";
172
172
  });
173
173
  }))).filter(function(e) {
174
- return M[e];
174
+ return j[e];
175
175
  }), Xn = new Set(ge.map(function(e) {
176
- return M[e];
176
+ return j[e];
177
177
  })), it = null;
178
178
  function Ae(e) {
179
179
  return it = /* @__PURE__ */ new WeakMap(), e = function t(n) {
@@ -238,7 +238,7 @@ var Rr = { exports: {} };
238
238
  return e[Symbol.toStringTag] === "AsyncFunction";
239
239
  } : function() {
240
240
  return !1;
241
- }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], de = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), $r = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
241
+ }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], fe = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), $r = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
242
242
  function He(e, t) {
243
243
  this.name = e, this.message = t;
244
244
  }
@@ -261,9 +261,9 @@ var Rr = { exports: {} };
261
261
  $e(He).from(Error).extend({ toString: function() {
262
262
  return this.name + ": " + this.message;
263
263
  } }), $e(_t).from(He), $e(Qe).from(He);
264
- var en = de.reduce(function(e, t) {
264
+ var en = fe.reduce(function(e, t) {
265
265
  return e[t] = t + "Error", e;
266
- }, {}), Yr = He, L = de.reduce(function(e, t) {
266
+ }, {}), Yr = He, L = fe.reduce(function(e, t) {
267
267
  var n = t + "Error";
268
268
  function r(i, a) {
269
269
  this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(a ? `
@@ -274,7 +274,7 @@ var Rr = { exports: {} };
274
274
  L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
275
275
  var Zn = st.reduce(function(e, t) {
276
276
  return e[t + "Error"] = L[t], e;
277
- }, {}), St = de.reduce(function(e, t) {
277
+ }, {}), St = fe.reduce(function(e, t) {
278
278
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = L[t]), e;
279
279
  }, {});
280
280
  function H() {
@@ -346,7 +346,7 @@ var Rr = { exports: {} };
346
346
  return [e, te(e), e];
347
347
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
348
348
  return [t, te(t), e];
349
- }(), st = ge[0], de = ge[1], ge = ge[2], de = de && de.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
349
+ }(), st = ge[0], fe = ge[1], ge = ge[2], fe = fe && fe.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
350
350
  lt.push([e, t]), Et && (queueMicrotask(qr), Et = !1);
351
351
  }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, B = De, lt = [], Ne = 0, xt = [];
352
352
  function T(e) {
@@ -379,8 +379,8 @@ var Rr = { exports: {} };
379
379
  var an = { get: function() {
380
380
  var e = B, t = Pt;
381
381
  function n(r, i) {
382
- var a = this, s = !e.global && (e !== B || t !== Pt), u = s && !Ie(), h = new T(function(f, b) {
383
- un(a, new tr(ir(r, e, s, u), ir(i, e, s, u), f, b, e));
382
+ var a = this, s = !e.global && (e !== B || t !== Pt), u = s && !Ie(), h = new T(function(d, b) {
383
+ un(a, new tr(ir(r, e, s, u), ir(i, e, s, u), d, b, e));
384
384
  });
385
385
  return this._consoleTask && (h._consoleTask = this._consoleTask), h;
386
386
  }
@@ -551,8 +551,8 @@ var Rr = { exports: {} };
551
551
  var u, h = this;
552
552
  u = function() {
553
553
  h.unhandleds.length === 0 ? i() : a(h.unhandleds[0]);
554
- }, xt.push(function f() {
555
- u(), xt.splice(xt.indexOf(f), 1);
554
+ }, xt.push(function d() {
555
+ u(), xt.splice(xt.indexOf(d), 1);
556
556
  }), ++Ne, ct(function() {
557
557
  --Ne == 0 && cn();
558
558
  }, []);
@@ -616,11 +616,11 @@ var Rr = { exports: {} };
616
616
  var n, r = B;
617
617
  (t ? !ne.echoes || Dt++ && e === B : !Dt || --Dt && e === B) || queueMicrotask(t ? (function(i) {
618
618
  ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(B), Ce(i, !0);
619
- }).bind(null, e) : ni), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(M, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
619
+ }).bind(null, e) : ni), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(j, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
620
620
  }
621
621
  function rr() {
622
- var e = M.Promise;
623
- return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(M, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
622
+ var e = j.Promise;
623
+ return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(j, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
624
624
  }
625
625
  function Ge(e, t, n, r, i) {
626
626
  var a = B;
@@ -644,8 +644,8 @@ var Rr = { exports: {} };
644
644
  function ln(e) {
645
645
  Promise === ut && ne.echoes === 0 ? Dt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
646
646
  }
647
- ("" + de).indexOf("[native code]") === -1 && (Je = Ie = H);
648
- var q = T.reject, ge = "4.0.1-beta.10", Le = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", Ze = [], Ct = "__dbnames", fn = "readonly", dn = "readwrite";
647
+ ("" + fe).indexOf("[native code]") === -1 && (Je = Ie = H);
648
+ var q = T.reject, ge = "4.0.1-beta.10", Le = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", Ze = [], Ct = "__dbnames", dn = "readonly", fn = "readwrite";
649
649
  function Fe(e, t) {
650
650
  return e ? t ? function() {
651
651
  return e.apply(this, arguments) && t.apply(this, arguments);
@@ -674,15 +674,15 @@ var Rr = { exports: {} };
674
674
  return t < e ? 1 : e < t ? -1 : 0;
675
675
  case "binary":
676
676
  return function(i, a) {
677
- for (var s = i.length, u = a.length, h = s < u ? s : u, f = 0; f < h; ++f)
678
- if (i[f] !== a[f])
679
- return i[f] < a[f] ? -1 : 1;
677
+ for (var s = i.length, u = a.length, h = s < u ? s : u, d = 0; d < h; ++d)
678
+ if (i[d] !== a[d])
679
+ return i[d] < a[d] ? -1 : 1;
680
680
  return s === u ? 0 : s < u ? -1 : 1;
681
681
  }(cr(e), cr(t));
682
682
  case "Array":
683
683
  return function(i, a) {
684
- for (var s = i.length, u = a.length, h = s < u ? s : u, f = 0; f < h; ++f) {
685
- var b = $(i[f], a[f]);
684
+ for (var s = i.length, u = a.length, h = s < u ? s : u, d = 0; d < h; ++d) {
685
+ var b = $(i[d], a[d]);
686
686
  if (b !== 0)
687
687
  return b;
688
688
  }
@@ -702,7 +702,7 @@ var Rr = { exports: {} };
702
702
  }
703
703
  var lr = (V.prototype._trans = function(e, t, n) {
704
704
  var r = this._tx || B.trans, i = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
705
- function s(f, b, c) {
705
+ function s(d, b, c) {
706
706
  if (!c.schema[i])
707
707
  throw new L.NotFound("Table " + i + " not part of transaction");
708
708
  return t(c.idbtrans, c);
@@ -711,14 +711,14 @@ var Rr = { exports: {} };
711
711
  try {
712
712
  var h = r && r.db._novip === this.db._novip ? r === B.trans ? r._promise(e, s, n) : Pe(function() {
713
713
  return r._promise(e, s, n);
714
- }, { trans: r, transless: B.transless || B }) : function f(b, c, d, p) {
714
+ }, { trans: r, transless: B.transless || B }) : function d(b, c, f, p) {
715
715
  if (b.idbdb && (b._state.openComplete || B.letThrough || b._vip)) {
716
- var m = b._createTransaction(c, d, b._dbSchema);
716
+ var m = b._createTransaction(c, f, b._dbSchema);
717
717
  try {
718
718
  m.create(), b._state.PR1398_maxLoop = 3;
719
719
  } catch (w) {
720
720
  return w.name === en.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
721
- return f(b, c, d, p);
721
+ return d(b, c, f, p);
722
722
  })) : q(w);
723
723
  }
724
724
  return m._promise(c, function(w, g) {
@@ -744,11 +744,11 @@ var Rr = { exports: {} };
744
744
  b.open().catch(H);
745
745
  }
746
746
  return b._state.dbReadyPromise.then(function() {
747
- return f(b, c, d, p);
747
+ return d(b, c, f, p);
748
748
  });
749
749
  }(this.db, e, [this.name], s);
750
- return a && (h._consoleTask = a, h = h.catch(function(f) {
751
- return console.trace(f), q(f);
750
+ return a && (h._consoleTask = a, h = h.catch(function(d) {
751
+ return console.trace(d), q(d);
752
752
  })), h;
753
753
  } finally {
754
754
  u && Xe();
@@ -765,41 +765,41 @@ var Rr = { exports: {} };
765
765
  return new this.db.WhereClause(this, e);
766
766
  if (N(e))
767
767
  return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
768
- var t = j(e);
768
+ var t = M(e);
769
769
  if (t.length === 1)
770
770
  return this.where(t[0]).equals(e[t[0]]);
771
771
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(h) {
772
772
  if (h.compound && t.every(function(b) {
773
773
  return 0 <= h.keyPath.indexOf(b);
774
774
  })) {
775
- for (var f = 0; f < t.length; ++f)
776
- if (t.indexOf(h.keyPath[f]) === -1)
775
+ for (var d = 0; d < t.length; ++d)
776
+ if (t.indexOf(h.keyPath[d]) === -1)
777
777
  return !1;
778
778
  return !0;
779
779
  }
780
780
  return !1;
781
- }).sort(function(h, f) {
782
- return h.keyPath.length - f.keyPath.length;
781
+ }).sort(function(h, d) {
782
+ return h.keyPath.length - d.keyPath.length;
783
783
  })[0];
784
784
  if (n && this.db._maxKey !== Le) {
785
785
  var s = n.keyPath.slice(0, t.length);
786
- return this.where(s).equals(s.map(function(f) {
787
- return e[f];
786
+ return this.where(s).equals(s.map(function(d) {
787
+ return e[d];
788
788
  }));
789
789
  }
790
790
  !n && pe && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
791
791
  var r = this.schema.idxByName, i = this.db._deps.indexedDB;
792
- function a(h, f) {
793
- return i.cmp(h, f) === 0;
792
+ function a(h, d) {
793
+ return i.cmp(h, d) === 0;
794
794
  }
795
- var u = t.reduce(function(d, f) {
796
- var b = d[0], c = d[1], d = r[f], p = e[f];
797
- return [b || d, b || !d ? Fe(c, d && d.multi ? function(m) {
798
- return m = ve(m, f), N(m) && m.some(function(w) {
795
+ var u = t.reduce(function(f, d) {
796
+ var b = f[0], c = f[1], f = r[d], p = e[d];
797
+ return [b || f, b || !f ? Fe(c, f && f.multi ? function(m) {
798
+ return m = ve(m, d), N(m) && m.some(function(w) {
799
799
  return a(p, w);
800
800
  });
801
801
  } : function(m) {
802
- return a(p, ve(m, f));
802
+ return a(p, ve(m, d));
803
803
  }) : c];
804
804
  }, [null, null]), s = u[0], u = u[1];
805
805
  return s ? this.where(s.name).equals(e[s.keyPath]).filter(u) : n ? this.filter(u) : this.where(t).equals("");
@@ -826,13 +826,13 @@ var Rr = { exports: {} };
826
826
  function i() {
827
827
  return t !== null && t.apply(this, arguments) || this;
828
828
  }
829
- (this.schema.mappedClass = e).prototype instanceof sr && (function(h, f) {
830
- if (typeof f != "function" && f !== null)
831
- throw new TypeError("Class extends value " + String(f) + " is not a constructor or null");
829
+ (this.schema.mappedClass = e).prototype instanceof sr && (function(h, d) {
830
+ if (typeof d != "function" && d !== null)
831
+ throw new TypeError("Class extends value " + String(d) + " is not a constructor or null");
832
832
  function b() {
833
833
  this.constructor = h;
834
834
  }
835
- l(h, f), h.prototype = f === null ? Object.create(f) : (b.prototype = f.prototype, new b());
835
+ l(h, d), h.prototype = d === null ? Object.create(d) : (b.prototype = d.prototype, new b());
836
836
  }(i, t = e), Object.defineProperty(i.prototype, "db", { get: function() {
837
837
  return n;
838
838
  }, enumerable: !1, configurable: !0 }), i.prototype.table = function() {
@@ -845,11 +845,11 @@ var Rr = { exports: {} };
845
845
  function u(h) {
846
846
  if (!h)
847
847
  return h;
848
- var f, b = Object.create(e.prototype);
849
- for (f in h)
850
- if (!a.has(f))
848
+ var d, b = Object.create(e.prototype);
849
+ for (d in h)
850
+ if (!a.has(d))
851
851
  try {
852
- b[f] = h[f];
852
+ b[d] = h[d];
853
853
  } catch {
854
854
  }
855
855
  return b;
@@ -868,7 +868,7 @@ var Rr = { exports: {} };
868
868
  }).then(function(u) {
869
869
  if (a)
870
870
  try {
871
- fe(e, a, u);
871
+ de(e, a, u);
872
872
  } catch {
873
873
  }
874
874
  return u;
@@ -884,7 +884,7 @@ var Rr = { exports: {} };
884
884
  }).then(function(u) {
885
885
  if (a)
886
886
  try {
887
- fe(e, a, u);
887
+ de(e, a, u);
888
888
  } catch {
889
889
  }
890
890
  return u;
@@ -915,32 +915,32 @@ var Rr = { exports: {} };
915
915
  }, V.prototype.bulkAdd = function(e, t, n) {
916
916
  var r = this, i = Array.isArray(t) ? t : void 0, a = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
917
917
  return this._trans("readwrite", function(s) {
918
- var f = r.schema.primKey, u = f.auto, f = f.keyPath;
919
- if (f && i)
918
+ var d = r.schema.primKey, u = d.auto, d = d.keyPath;
919
+ if (d && i)
920
920
  throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
921
921
  if (i && i.length !== e.length)
922
922
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
923
- var h = e.length, f = f && u ? e.map(Rt(f)) : e;
924
- return r.core.mutate({ trans: s, type: "add", keys: i, values: f, wantResults: a }).then(function(m) {
925
- var c = m.numFailures, d = m.results, p = m.lastResult, m = m.failures;
923
+ var h = e.length, d = d && u ? e.map(Rt(d)) : e;
924
+ return r.core.mutate({ trans: s, type: "add", keys: i, values: d, wantResults: a }).then(function(m) {
925
+ var c = m.numFailures, f = m.results, p = m.lastResult, m = m.failures;
926
926
  if (c === 0)
927
- return a ? d : p;
927
+ return a ? f : p;
928
928
  throw new Qe("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(h, " operations failed"), m);
929
929
  });
930
930
  });
931
931
  }, V.prototype.bulkPut = function(e, t, n) {
932
932
  var r = this, i = Array.isArray(t) ? t : void 0, a = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
933
933
  return this._trans("readwrite", function(s) {
934
- var f = r.schema.primKey, u = f.auto, f = f.keyPath;
935
- if (f && i)
934
+ var d = r.schema.primKey, u = d.auto, d = d.keyPath;
935
+ if (d && i)
936
936
  throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
937
937
  if (i && i.length !== e.length)
938
938
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
939
- var h = e.length, f = f && u ? e.map(Rt(f)) : e;
940
- return r.core.mutate({ trans: s, type: "put", keys: i, values: f, wantResults: a }).then(function(m) {
941
- var c = m.numFailures, d = m.results, p = m.lastResult, m = m.failures;
939
+ var h = e.length, d = d && u ? e.map(Rt(d)) : e;
940
+ return r.core.mutate({ trans: s, type: "put", keys: i, values: d, wantResults: a }).then(function(m) {
941
+ var c = m.numFailures, f = m.results, p = m.lastResult, m = m.failures;
942
942
  if (c === 0)
943
- return a ? d : p;
943
+ return a ? f : p;
944
944
  throw new Qe("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(h, " operations failed"), m);
945
945
  });
946
946
  });
@@ -952,9 +952,9 @@ var Rr = { exports: {} };
952
952
  }), a = [];
953
953
  return this._trans("readwrite", function(s) {
954
954
  return n.getMany({ trans: s, keys: r, cache: "clone" }).then(function(u) {
955
- var h = [], f = [];
956
- e.forEach(function(c, d) {
957
- var p = c.key, m = c.changes, w = u[d];
955
+ var h = [], d = [];
956
+ e.forEach(function(c, f) {
957
+ var p = c.key, m = c.changes, w = u[f];
958
958
  if (w) {
959
959
  for (var g = 0, _ = Object.keys(m); g < _.length; g++) {
960
960
  var S = _[g], E = m[S];
@@ -962,21 +962,21 @@ var Rr = { exports: {} };
962
962
  if ($(E, p) !== 0)
963
963
  throw new L.Constraint("Cannot update primary key in bulkUpdate()");
964
964
  } else
965
- fe(w, S, E);
965
+ de(w, S, E);
966
966
  }
967
- a.push(d), h.push(p), f.push(w);
967
+ a.push(f), h.push(p), d.push(w);
968
968
  }
969
969
  });
970
970
  var b = h.length;
971
- return n.mutate({ trans: s, type: "put", keys: h, values: f, updates: { keys: r, changeSpecs: i } }).then(function(c) {
972
- var d = c.numFailures, p = c.failures;
973
- if (d === 0)
971
+ return n.mutate({ trans: s, type: "put", keys: h, values: d, updates: { keys: r, changeSpecs: i } }).then(function(c) {
972
+ var f = c.numFailures, p = c.failures;
973
+ if (f === 0)
974
974
  return b;
975
975
  for (var m = 0, w = Object.keys(p); m < w.length; m++) {
976
976
  var g, _ = w[m], S = a[Number(_)];
977
977
  S != null && (g = p[_], delete p[_], p[S] = g);
978
978
  }
979
- throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(d, " of ").concat(b, " operations failed"), p);
979
+ throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
980
980
  });
981
981
  });
982
982
  });
@@ -993,12 +993,12 @@ var Rr = { exports: {} };
993
993
  }, V);
994
994
  function V() {
995
995
  }
996
- function ft(e) {
996
+ function dt(e) {
997
997
  function t(s, u) {
998
998
  if (u) {
999
- for (var h = arguments.length, f = new Array(h - 1); --h; )
1000
- f[h - 1] = arguments[h];
1001
- return n[s].subscribe.apply(null, f), e;
999
+ for (var h = arguments.length, d = new Array(h - 1); --h; )
1000
+ d[h - 1] = arguments[h];
1001
+ return n[s].subscribe.apply(null, d), e;
1002
1002
  }
1003
1003
  if (typeof s == "string")
1004
1004
  return n[s];
@@ -1010,23 +1010,23 @@ var Rr = { exports: {} };
1010
1010
  return t;
1011
1011
  function a(s, u, h) {
1012
1012
  if (typeof s != "object") {
1013
- var f;
1013
+ var d;
1014
1014
  u = u || Jr;
1015
1015
  var b = { subscribers: [], fire: h = h || H, subscribe: function(c) {
1016
1016
  b.subscribers.indexOf(c) === -1 && (b.subscribers.push(c), b.fire = u(b.fire, c));
1017
1017
  }, unsubscribe: function(c) {
1018
- b.subscribers = b.subscribers.filter(function(d) {
1019
- return d !== c;
1018
+ b.subscribers = b.subscribers.filter(function(f) {
1019
+ return f !== c;
1020
1020
  }), b.fire = b.subscribers.reduce(u, h);
1021
1021
  } };
1022
1022
  return n[s] = t[s] = b;
1023
1023
  }
1024
- j(f = s).forEach(function(c) {
1025
- var d = f[c];
1026
- if (N(d))
1027
- a(c, f[c][0], f[c][1]);
1024
+ M(d = s).forEach(function(c) {
1025
+ var f = d[c];
1026
+ if (N(f))
1027
+ a(c, d[c][0], d[c][1]);
1028
1028
  else {
1029
- if (d !== "asap")
1029
+ if (f !== "asap")
1030
1030
  throw new L.InvalidArgument("Invalid event config");
1031
1031
  var p = a(c, ot, function() {
1032
1032
  for (var m = arguments.length, w = new Array(m); m--; )
@@ -1041,7 +1041,7 @@ var Rr = { exports: {} };
1041
1041
  });
1042
1042
  }
1043
1043
  }
1044
- function dt(e, t) {
1044
+ function ft(e, t) {
1045
1045
  return $e(t).from({ prototype: e }), t;
1046
1046
  }
1047
1047
  function qe(e, t) {
@@ -1064,26 +1064,26 @@ var Rr = { exports: {} };
1064
1064
  throw new L.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1065
1065
  return n;
1066
1066
  }
1067
- function fr(e, t, n) {
1067
+ function dr(e, t, n) {
1068
1068
  var r = Tt(e, t.schema);
1069
1069
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: r, range: e.range } });
1070
1070
  }
1071
1071
  function jt(e, t, n, r) {
1072
1072
  var i = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1073
1073
  if (e.or) {
1074
- var a = {}, s = function(u, h, f) {
1074
+ var a = {}, s = function(u, h, d) {
1075
1075
  var b, c;
1076
- i && !i(h, f, function(d) {
1077
- return h.stop(d);
1078
- }, function(d) {
1079
- return h.fail(d);
1080
- }) || ((c = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (c = "" + new Uint8Array(b)), ie(a, c) || (a[c] = !0, t(u, h, f)));
1076
+ i && !i(h, d, function(f) {
1077
+ return h.stop(f);
1078
+ }, function(f) {
1079
+ return h.fail(f);
1080
+ }) || ((c = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (c = "" + new Uint8Array(b)), ie(a, c) || (a[c] = !0, t(u, h, d)));
1081
1081
  };
1082
- return Promise.all([e.or._iterate(s, n), dr(fr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1082
+ return Promise.all([e.or._iterate(s, n), fr(dr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1083
1083
  }
1084
- return dr(fr(e, r, n), Fe(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
1084
+ return fr(dr(e, r, n), Fe(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
1085
1085
  }
1086
- function dr(e, t, n, r) {
1086
+ function fr(e, t, n, r) {
1087
1087
  var i = J(r ? function(a, s, u) {
1088
1088
  return n(r(a), s, u);
1089
1089
  } : n);
@@ -1143,12 +1143,12 @@ var Rr = { exports: {} };
1143
1143
  }).then(e);
1144
1144
  }, z.prototype.sortBy = function(e, t) {
1145
1145
  var n = e.split(".").reverse(), r = n[0], i = n.length - 1;
1146
- function a(h, f) {
1147
- return f ? a(h[n[f]], f - 1) : h[r];
1146
+ function a(h, d) {
1147
+ return d ? a(h[n[d]], d - 1) : h[r];
1148
1148
  }
1149
1149
  var s = this._ctx.dir === "next" ? 1 : -1;
1150
- function u(h, f) {
1151
- return h = a(h, i), f = a(f, i), h < f ? -s : f < h ? s : 0;
1150
+ function u(h, d) {
1151
+ return h = a(h, i), d = a(d, i), h < d ? -s : d < h ? s : 0;
1152
1152
  }
1153
1153
  return this.toArray(function(h) {
1154
1154
  return h.sort(u);
@@ -1273,25 +1273,25 @@ var Rr = { exports: {} };
1273
1273
  var t = this, n = this._ctx;
1274
1274
  return this._write(function(r) {
1275
1275
  var i, a, s;
1276
- s = typeof e == "function" ? e : (i = j(e), a = i.length, function(g) {
1276
+ s = typeof e == "function" ? e : (i = M(e), a = i.length, function(g) {
1277
1277
  for (var _ = !1, S = 0; S < a; ++S) {
1278
1278
  var E = i[S], O = e[E];
1279
- ve(g, E) !== O && (fe(g, E, O), _ = !0);
1279
+ ve(g, E) !== O && (de(g, E, O), _ = !0);
1280
1280
  }
1281
1281
  return _;
1282
1282
  });
1283
1283
  function u(g, E) {
1284
1284
  var S = E.failures, E = E.numFailures;
1285
1285
  m += g - E;
1286
- for (var O = 0, k = j(S); O < k.length; O++) {
1286
+ for (var O = 0, k = M(S); O < k.length; O++) {
1287
1287
  var C = k[O];
1288
1288
  p.push(S[C]);
1289
1289
  }
1290
1290
  }
1291
- var h = n.table.core, f = h.schema.primaryKey, b = f.outbound, c = f.extractKey, d = t.db._options.modifyChunkSize || 200, p = [], m = 0, w = [];
1291
+ var h = n.table.core, d = h.schema.primaryKey, b = d.outbound, c = d.extractKey, f = t.db._options.modifyChunkSize || 200, p = [], m = 0, w = [];
1292
1292
  return t.clone().primaryKeys().then(function(g) {
1293
1293
  function _(S) {
1294
- var E = Math.min(d, g.length - S);
1294
+ var E = Math.min(f, g.length - S);
1295
1295
  return h.getMany({ trans: r, keys: g.slice(S, S + E), cache: "immutable" }).then(function(O) {
1296
1296
  for (var k = [], C = [], A = b ? [] : null, R = [], D = 0; D < E; ++D) {
1297
1297
  var G = O[D], F = { value: Ae(G), primKey: g[S + D] };
@@ -1311,7 +1311,7 @@ var Rr = { exports: {} };
1311
1311
  return u(R.length, W);
1312
1312
  });
1313
1313
  }).then(function() {
1314
- return g.length > S + E && _(S + d);
1314
+ return g.length > S + E && _(S + f);
1315
1315
  });
1316
1316
  });
1317
1317
  }
@@ -1358,12 +1358,12 @@ var Rr = { exports: {} };
1358
1358
  }).limit(0);
1359
1359
  }
1360
1360
  function Mt(e, t, n, r) {
1361
- var i, a, s, u, h, f, b, c = n.length;
1361
+ var i, a, s, u, h, d, b, c = n.length;
1362
1362
  if (!n.every(function(m) {
1363
1363
  return typeof m == "string";
1364
1364
  }))
1365
1365
  return ce(e, or);
1366
- function d(m) {
1366
+ function f(m) {
1367
1367
  i = m === "next" ? function(g) {
1368
1368
  return g.toUpperCase();
1369
1369
  } : function(g) {
@@ -1382,12 +1382,12 @@ var Rr = { exports: {} };
1382
1382
  return g.upper;
1383
1383
  }), h = w.map(function(g) {
1384
1384
  return g.lower;
1385
- }), b = (f = m) === "next" ? "" : r;
1385
+ }), b = (d = m) === "next" ? "" : r;
1386
1386
  }
1387
- d("next"), e = new e.Collection(e, function() {
1387
+ f("next"), e = new e.Collection(e, function() {
1388
1388
  return Re(u[0], h[c - 1] + r);
1389
1389
  }), e._ondirectionchange = function(m) {
1390
- d(m);
1390
+ f(m);
1391
1391
  };
1392
1392
  var p = 0;
1393
1393
  return e._addAlgorithm(function(m, w, g) {
@@ -1406,7 +1406,7 @@ var Rr = { exports: {} };
1406
1406
  G(C[Q], le) < 0 && (W = Q);
1407
1407
  }
1408
1408
  return Y < D.length && F === "next" ? C + R.substr(C.length) : Y < C.length && F === "prev" ? C.substr(0, R.length) : W < 0 ? null : C.substr(0, W) + D[W] + R.substr(W + 1);
1409
- }(_, S, u[O], h[O], s, f);
1409
+ }(_, S, u[O], h[O], s, d);
1410
1410
  k === null && E === null ? p = O + 1 : (E === null || 0 < s(E, k)) && (E = k);
1411
1411
  }
1412
1412
  return w(E !== null ? function() {
@@ -1520,8 +1520,8 @@ var Rr = { exports: {} };
1520
1520
  return S[0] !== void 0 && S[1] !== void 0 && i(S[0], S[1]) <= 0;
1521
1521
  }))
1522
1522
  return ce(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1523
- var h = !t || t.includeLowers !== !1, f = t && t.includeUppers === !0, b, c = i;
1524
- function d(S, E) {
1523
+ var h = !t || t.includeLowers !== !1, d = t && t.includeUppers === !0, b, c = i;
1524
+ function f(S, E) {
1525
1525
  return c(S[0], E[0]);
1526
1526
  }
1527
1527
  try {
@@ -1534,11 +1534,11 @@ var Rr = { exports: {} };
1534
1534
  }
1535
1535
  }
1536
1536
  return O === k && S.push(E), S;
1537
- }, [])).sort(d);
1537
+ }, [])).sort(f);
1538
1538
  } catch {
1539
1539
  return ce(this, _e);
1540
1540
  }
1541
- var p = 0, m = f ? function(S) {
1541
+ var p = 0, m = d ? function(S) {
1542
1542
  return 0 < i(S, b[p][1]);
1543
1543
  } : function(S) {
1544
1544
  return 0 <= i(S, b[p][1]);
@@ -1547,10 +1547,10 @@ var Rr = { exports: {} };
1547
1547
  } : function(S) {
1548
1548
  return 0 <= a(S, b[p][0]);
1549
1549
  }, g = m, _ = new this.Collection(this, function() {
1550
- return Re(b[0][0], b[b.length - 1][1], !h, !f);
1550
+ return Re(b[0][0], b[b.length - 1][1], !h, !d);
1551
1551
  });
1552
1552
  return _._ondirectionchange = function(S) {
1553
- c = S === "next" ? (g = m, i) : (g = w, a), b.sort(d);
1553
+ c = S === "next" ? (g = m, i) : (g = w, a), b.sort(f);
1554
1554
  }, _._addAlgorithm(function(S, E, O) {
1555
1555
  for (var k, C = S.key; g(C); )
1556
1556
  if (++p === b.length)
@@ -1577,7 +1577,7 @@ var Rr = { exports: {} };
1577
1577
  function ht(e) {
1578
1578
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1579
1579
  }
1580
- var pt = "storagemutated", yn = "x-storagemutated-1", Te = ft(null, pt), ai = (me.prototype._lock = function() {
1580
+ var pt = "storagemutated", yn = "x-storagemutated-1", Te = dt(null, pt), ai = (me.prototype._lock = function() {
1581
1581
  return rt(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1582
1582
  }, me.prototype._unlock = function() {
1583
1583
  if (rt(!B.global), --this._reculock == 0)
@@ -1728,9 +1728,9 @@ var Rr = { exports: {} };
1728
1728
  var p = g.lower, m = g.upper, w = g.lowerOpen, g = g.upperOpen;
1729
1729
  return p === void 0 ? m === void 0 ? null : t.upperBound(m, !!g) : m === void 0 ? t.lowerBound(p, !!w) : t.bound(p, m, !!w, !!g);
1730
1730
  }
1731
- function i(d) {
1732
- var p, m = d.name;
1733
- return { name: m, schema: d, mutate: function(w) {
1731
+ function i(f) {
1732
+ var p, m = f.name;
1733
+ return { name: m, schema: f, mutate: function(w) {
1734
1734
  var g = w.trans, _ = w.type, S = w.keys, E = w.values, O = w.range;
1735
1735
  return new Promise(function(k, C) {
1736
1736
  k = J(k);
@@ -1789,7 +1789,7 @@ var Rr = { exports: {} };
1789
1789
  return S(k.target.result);
1790
1790
  }, O.onerror = ye(E);
1791
1791
  });
1792
- }, query: (p = f, function(w) {
1792
+ }, query: (p = d, function(w) {
1793
1793
  return new Promise(function(g, _) {
1794
1794
  g = J(g);
1795
1795
  var S, E, O, R = w.trans, k = w.values, C = w.limit, G = w.query, A = C === 1 / 0 ? void 0 : C, D = G.index, G = G.range, R = R.objectStore(m), D = D.isPrimaryKey ? R : R.index(D.name), G = r(G);
@@ -1854,11 +1854,11 @@ var Rr = { exports: {} };
1854
1854
  });
1855
1855
  } };
1856
1856
  }
1857
- var a, s, u, b = (s = h, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(d) {
1858
- return s.objectStore(d);
1859
- }).map(function(d) {
1860
- var p = d.keyPath, g = d.autoIncrement, m = N(p), w = {}, g = { name: d.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: g, unique: !0, extractKey: vn(p) }, indexes: yr(d.indexNames).map(function(_) {
1861
- return d.index(_);
1857
+ var a, s, u, b = (s = h, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(f) {
1858
+ return s.objectStore(f);
1859
+ }).map(function(f) {
1860
+ var p = f.keyPath, g = f.autoIncrement, m = N(p), w = {}, g = { name: f.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: g, unique: !0, extractKey: vn(p) }, indexes: yr(f.indexNames).map(function(_) {
1861
+ return f.index(_);
1862
1862
  }).map(function(O) {
1863
1863
  var S = O.name, E = O.unique, k = O.multiEntry, O = O.keyPath, k = { name: S, compound: N(O), keyPath: O, unique: E, multiEntry: k, extractKey: vn(O) };
1864
1864
  return w[yt(O)] = k;
@@ -1866,13 +1866,13 @@ var Rr = { exports: {} };
1866
1866
  return w[yt(_)];
1867
1867
  } };
1868
1868
  return w[":id"] = g.primaryKey, p != null && (w[yt(p)] = g.primaryKey), g;
1869
- }) }, hasGetAll: 0 < u.length && "getAll" in s.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, f = b.hasGetAll, b = h.tables.map(i), c = {};
1870
- return b.forEach(function(d) {
1871
- return c[d.name] = d;
1872
- }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(d) {
1873
- if (!c[d])
1874
- throw new Error("Table '".concat(d, "' not found"));
1875
- return c[d];
1869
+ }) }, hasGetAll: 0 < u.length && "getAll" in s.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, d = b.hasGetAll, b = h.tables.map(i), c = {};
1870
+ return b.forEach(function(f) {
1871
+ return c[f.name] = f;
1872
+ }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(f) {
1873
+ if (!c[f])
1874
+ throw new Error("Table '".concat(f, "' not found"));
1875
+ return c[f];
1876
1876
  }, MIN_KEY: -1 / 0, MAX_KEY: gt(t), schema: h };
1877
1877
  }
1878
1878
  function ci(e, t, n, r) {
@@ -1894,8 +1894,8 @@ var Rr = { exports: {} };
1894
1894
  n.forEach(function(i) {
1895
1895
  var a = r[i];
1896
1896
  t.forEach(function(s) {
1897
- var u = function h(f, b) {
1898
- return Lr(f, b) || (f = te(f)) && h(f, b);
1897
+ var u = function h(d, b) {
1898
+ return Lr(d, b) || (d = te(d)) && h(d, b);
1899
1899
  }(s, i);
1900
1900
  (!u || "value" in u && u.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, i, { get: function() {
1901
1901
  return this.table(i);
@@ -1914,18 +1914,18 @@ var Rr = { exports: {} };
1914
1914
  function li(e, t) {
1915
1915
  return e._cfg.version - t._cfg.version;
1916
1916
  }
1917
- function fi(e, t, n, r) {
1917
+ function di(e, t, n, r) {
1918
1918
  var i = e._dbSchema;
1919
1919
  n.objectStoreNames.contains("$meta") && !i.$meta && (i.$meta = bn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1920
1920
  var a = e._createTransaction("readwrite", e._storeNames, i);
1921
1921
  a.create(n), a._completion.catch(r);
1922
1922
  var s = a._reject.bind(a), u = B.transless || B;
1923
1923
  Pe(function() {
1924
- return B.trans = a, B.transless = u, t !== 0 ? (Kt(e, n), f = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1925
- return b ?? f;
1926
- }) : T.resolve(f)).then(function(b) {
1927
- return d = b, p = a, m = n, w = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, m), (b = b.filter(function(_) {
1928
- return _._cfg.version >= d;
1924
+ return B.trans = a, B.transless = u, t !== 0 ? (Kt(e, n), d = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1925
+ return b ?? d;
1926
+ }) : T.resolve(d)).then(function(b) {
1927
+ return f = b, p = a, m = n, w = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, m), (b = b.filter(function(_) {
1928
+ return _._cfg.version >= f;
1929
1929
  })).length !== 0 ? (b.forEach(function(_) {
1930
1930
  w.push(function() {
1931
1931
  var S = g, E = _._cfg.dbschema;
@@ -1946,12 +1946,12 @@ var Rr = { exports: {} };
1946
1946
  });
1947
1947
  });
1948
1948
  var k = _._cfg.contentUpgrade;
1949
- if (k && _._cfg.version > d) {
1949
+ if (k && _._cfg.version > f) {
1950
1950
  Kt(c, m), p._memoizedTables = {};
1951
1951
  var C = Qn(E);
1952
1952
  O.del.forEach(function(D) {
1953
1953
  C[D] = S[D];
1954
- }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], j(C), C), p.schema = C;
1954
+ }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], M(C), C), p.schema = C;
1955
1955
  var A, R = qt(k);
1956
1956
  return R && Je(), O = T.follow(function() {
1957
1957
  var D;
@@ -1975,16 +1975,16 @@ var Rr = { exports: {} };
1975
1975
  }().then(function() {
1976
1976
  mr(g, m);
1977
1977
  })) : T.resolve();
1978
- var c, d, p, m, w, g;
1979
- }).catch(s)) : (j(i).forEach(function(b) {
1978
+ var c, f, p, m, w, g;
1979
+ }).catch(s)) : (M(i).forEach(function(b) {
1980
1980
  Sn(n, b, i[b].primKey, i[b].indexes);
1981
1981
  }), Kt(e, n), void T.follow(function() {
1982
1982
  return e.on.populate.fire(a);
1983
1983
  }).catch(s));
1984
- var h, f;
1984
+ var h, d;
1985
1985
  });
1986
1986
  }
1987
- function di(e, t) {
1987
+ function fi(e, t) {
1988
1988
  mr(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
1989
1989
  var n = Gt(0, e.idbdb, t);
1990
1990
  Lt(e, e._dbSchema, t);
@@ -2012,11 +2012,11 @@ var Rr = { exports: {} };
2012
2012
  if ("" + (i.primKey.keyPath || "") != "" + (a.primKey.keyPath || "") || i.primKey.auto !== a.primKey.auto)
2013
2013
  s.recreate = !0, r.change.push(s);
2014
2014
  else {
2015
- var u = i.idxByName, h = a.idxByName, f = void 0;
2016
- for (f in u)
2017
- h[f] || s.del.push(f);
2018
- for (f in h) {
2019
- var b = u[f], c = h[f];
2015
+ var u = i.idxByName, h = a.idxByName, d = void 0;
2016
+ for (d in u)
2017
+ h[d] || s.del.push(d);
2018
+ for (d in h) {
2019
+ var b = u[d], c = h[d];
2020
2020
  b ? b.src !== c.src && s.change.push(c) : s.add.push(c);
2021
2021
  }
2022
2022
  (0 < s.del.length || 0 < s.add.length || 0 < s.change.length) && r.change.push(s);
@@ -2033,7 +2033,7 @@ var Rr = { exports: {} };
2033
2033
  }), i;
2034
2034
  }
2035
2035
  function mr(e, t) {
2036
- j(e).forEach(function(n) {
2036
+ M(e).forEach(function(n) {
2037
2037
  t.db.objectStoreNames.contains(n) || (pe && console.debug("Dexie: Creating missing table", n), Sn(t, n, e[n].primKey, e[n].indexes));
2038
2038
  });
2039
2039
  }
@@ -2043,8 +2043,8 @@ var Rr = { exports: {} };
2043
2043
  function Gt(e, t, n) {
2044
2044
  var r = {};
2045
2045
  return wt(t.objectStoreNames, 0).forEach(function(i) {
2046
- for (var a = n.objectStore(i), s = mn(gr(f = a.keyPath), f || "", !0, !1, !!a.autoIncrement, f && typeof f != "string", !0), u = [], h = 0; h < a.indexNames.length; ++h) {
2047
- var b = a.index(a.indexNames[h]), f = b.keyPath, b = mn(b.name, f, !!b.unique, !!b.multiEntry, !1, f && typeof f != "string", !1);
2046
+ for (var a = n.objectStore(i), s = mn(gr(d = a.keyPath), d || "", !0, !1, !!a.autoIncrement, d && typeof d != "string", !0), u = [], h = 0; h < a.indexNames.length; ++h) {
2047
+ var b = a.index(a.indexNames[h]), d = b.keyPath, b = mn(b.name, d, !!b.unique, !!b.multiEntry, !1, d && typeof d != "string", !1);
2048
2048
  u.push(b);
2049
2049
  }
2050
2050
  r[i] = bn(i, s, u);
@@ -2055,11 +2055,11 @@ var Rr = { exports: {} };
2055
2055
  var a = r[i], s = n.objectStore(a);
2056
2056
  e._hasGetAll = "getAll" in s;
2057
2057
  for (var u = 0; u < s.indexNames.length; ++u) {
2058
- var h = s.indexNames[u], f = s.index(h).keyPath, b = typeof f == "string" ? f : "[" + wt(f).join("+") + "]";
2059
- !t[a] || (f = t[a].idxByName[b]) && (f.name = h, delete t[a].idxByName[b], t[a].idxByName[h] = f);
2058
+ var h = s.indexNames[u], d = s.index(h).keyPath, b = typeof d == "string" ? d : "[" + wt(d).join("+") + "]";
2059
+ !t[a] || (d = t[a].idxByName[b]) && (d.name = h, delete t[a].idxByName[b], t[a].idxByName[h] = d);
2060
2060
  }
2061
2061
  }
2062
- typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && M.WorkerGlobalScope && M instanceof M.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2062
+ typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && j.WorkerGlobalScope && j instanceof j.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2063
2063
  }
2064
2064
  function br(e) {
2065
2065
  return e.split(",").map(function(t, n) {
@@ -2068,7 +2068,7 @@ var Rr = { exports: {} };
2068
2068
  });
2069
2069
  }
2070
2070
  var hi = (Ft.prototype._parseStoresSpec = function(e, t) {
2071
- j(e).forEach(function(n) {
2071
+ M(e).forEach(function(n) {
2072
2072
  if (e[n] !== null) {
2073
2073
  var r = br(e[n]), i = r.shift();
2074
2074
  if (i.unique = !0, i.multi)
@@ -2087,7 +2087,7 @@ var Rr = { exports: {} };
2087
2087
  var n = t._versions, r = {}, i = {};
2088
2088
  return n.forEach(function(a) {
2089
2089
  Z(r, a._cfg.storesSource), i = a._cfg.dbschema = {}, a._parseStoresSpec(r, i);
2090
- }), t._dbSchema = i, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], j(i), i), t._storeNames = j(i), this;
2090
+ }), t._dbSchema = i, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], M(i), i), t._storeNames = M(i), this;
2091
2091
  }, Ft.prototype.upgrade = function(e) {
2092
2092
  return this._cfg.contentUpgrade = tn(this._cfg.contentUpgrade || H, e), this;
2093
2093
  }, Ft);
@@ -2182,7 +2182,7 @@ var Rr = { exports: {} };
2182
2182
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2183
2183
  }
2184
2184
  function Wt(e, t) {
2185
- return j(t).forEach(function(n) {
2185
+ return M(t).forEach(function(n) {
2186
2186
  e[n] ? bt(e[n], t[n]) : e[n] = function r(i) {
2187
2187
  var a, s, u = {};
2188
2188
  for (a in i)
@@ -2196,7 +2196,7 @@ var Rr = { exports: {} };
2196
2196
  return t[n] && Ut(t[n], e[n]);
2197
2197
  });
2198
2198
  }
2199
- xe(oe.prototype, ((de = { add: function(e) {
2199
+ xe(oe.prototype, ((fe = { add: function(e) {
2200
2200
  return bt(this, e), this;
2201
2201
  }, addKey: function(e) {
2202
2202
  return mt(this, e, e), this;
@@ -2207,7 +2207,7 @@ var Rr = { exports: {} };
2207
2207
  }), this;
2208
2208
  } })[Zt] = function() {
2209
2209
  return An(this);
2210
- }, de));
2210
+ }, fe));
2211
2211
  var Ue = {}, Pn = {}, In = !1;
2212
2212
  function zt(e) {
2213
2213
  Wt(Pn, e), In || (In = !0, setTimeout(function() {
@@ -2231,18 +2231,18 @@ var Rr = { exports: {} };
2231
2231
  }
2232
2232
  function _r(e, t, n, r) {
2233
2233
  for (var i = [], a = 0, s = Object.entries(e.queries.query); a < s.length; a++) {
2234
- for (var u = s[a], h = u[0], f = [], b = 0, c = u[1]; b < c.length; b++) {
2235
- var d = c[b];
2236
- Dn(t, d.obsSet) ? d.subscribers.forEach(function(g) {
2234
+ for (var u = s[a], h = u[0], d = [], b = 0, c = u[1]; b < c.length; b++) {
2235
+ var f = c[b];
2236
+ Dn(t, f.obsSet) ? f.subscribers.forEach(function(g) {
2237
2237
  return n.add(g);
2238
- }) : r && f.push(d);
2238
+ }) : r && d.push(f);
2239
2239
  }
2240
- r && i.push([h, f]);
2240
+ r && i.push([h, d]);
2241
2241
  }
2242
2242
  if (r)
2243
2243
  for (var p = 0, m = i; p < m.length; p++) {
2244
- var w = m[p], h = w[0], f = w[1];
2245
- e.queries.query[h] = f;
2244
+ var w = m[p], h = w[0], d = w[1];
2245
+ e.queries.query[h] = d;
2246
2246
  }
2247
2247
  }
2248
2248
  function pi(e) {
@@ -2258,7 +2258,7 @@ var Rr = { exports: {} };
2258
2258
  throw new L.DatabaseClosed("db.open() was cancelled");
2259
2259
  }
2260
2260
  function u() {
2261
- return new T(function(d, p) {
2261
+ return new T(function(f, p) {
2262
2262
  if (s(), !n)
2263
2263
  throw new L.MissingAPI();
2264
2264
  var m = e.name, w = t.autoSchema || !i ? n.open(m) : n.open(m, i);
@@ -2268,7 +2268,7 @@ var Rr = { exports: {} };
2268
2268
  var _;
2269
2269
  b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = ht, b.abort(), w.result.close(), (_ = n.deleteDatabase(m)).onsuccess = _.onerror = J(function() {
2270
2270
  p(new L.NoSuchDatabase("Database ".concat(m, " doesnt exist")));
2271
- })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = w.result, a && di(e, b), fi(e, g / 10, b, p));
2271
+ })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = w.result, a && fi(e, b), di(e, g / 10, b, p));
2272
2272
  }, p), w.onsuccess = J(function() {
2273
2273
  b = null;
2274
2274
  var g, _, S, E, O, k = e.idbdb = w.result, C = wt(k.objectStoreNames);
@@ -2276,11 +2276,11 @@ var Rr = { exports: {} };
2276
2276
  try {
2277
2277
  var A = k.transaction((E = C).length === 1 ? E[0] : E, "readonly");
2278
2278
  if (t.autoSchema)
2279
- _ = k, S = A, (g = e).verno = _.version / 10, S = g._dbSchema = Gt(0, _, S), g._storeNames = wt(_.objectStoreNames, 0), Bt(g, [g._allTables], j(S), S);
2279
+ _ = k, S = A, (g = e).verno = _.version / 10, S = g._dbSchema = Gt(0, _, S), g._storeNames = wt(_.objectStoreNames, 0), Bt(g, [g._allTables], M(S), S);
2280
2280
  else if (Lt(e, e._dbSchema, A), ((O = _n(Gt(0, (O = e).idbdb, A), O._dbSchema)).add.length || O.change.some(function(R) {
2281
2281
  return R.add.length || R.change.length;
2282
2282
  })) && !a)
2283
- return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), k.close(), i = k.version + 1, a = !0, d(u());
2283
+ return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), k.close(), i = k.version + 1, a = !0, f(u());
2284
2284
  Kt(e, A);
2285
2285
  } catch {
2286
2286
  }
@@ -2288,10 +2288,10 @@ var Rr = { exports: {} };
2288
2288
  t.vcFired = !0, e.on("versionchange").fire(R);
2289
2289
  }), k.onclose = J(function(R) {
2290
2290
  e.on("close").fire(R);
2291
- }), c && (O = e._deps, A = m, k = O.indexedDB, O = O.IDBKeyRange, On(k) || A === Ct || En(k, O).put({ name: A }).catch(H)), d();
2291
+ }), c && (O = e._deps, A = m, k = O.indexedDB, O = O.IDBKeyRange, On(k) || A === Ct || En(k, O).put({ name: A }).catch(H)), f();
2292
2292
  }, p);
2293
- }).catch(function(d) {
2294
- switch (d == null ? void 0 : d.name) {
2293
+ }).catch(function(f) {
2294
+ switch (f == null ? void 0 : f.name) {
2295
2295
  case "UnknownError":
2296
2296
  if (0 < t.PR1398_maxLoop)
2297
2297
  return t.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), u();
@@ -2300,13 +2300,13 @@ var Rr = { exports: {} };
2300
2300
  if (0 < i)
2301
2301
  return i = 0, u();
2302
2302
  }
2303
- return T.reject(d);
2303
+ return T.reject(f);
2304
2304
  });
2305
2305
  }
2306
- var h, f = t.dbReadyResolve, b = null, c = !1;
2307
- return T.race([r, (typeof navigator > "u" ? T.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(d) {
2306
+ var h, d = t.dbReadyResolve, b = null, c = !1;
2307
+ return T.race([r, (typeof navigator > "u" ? T.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(f) {
2308
2308
  function p() {
2309
- return indexedDB.databases().finally(d);
2309
+ return indexedDB.databases().finally(f);
2310
2310
  }
2311
2311
  h = setInterval(p, 100), p();
2312
2312
  }).finally(function() {
@@ -2314,32 +2314,32 @@ var Rr = { exports: {} };
2314
2314
  }) : Promise.resolve()).then(u)]).then(function() {
2315
2315
  return s(), t.onReadyBeingFired = [], T.resolve(xn(function() {
2316
2316
  return e.on.ready.fire(e.vip);
2317
- })).then(function d() {
2317
+ })).then(function f() {
2318
2318
  if (0 < t.onReadyBeingFired.length) {
2319
2319
  var p = t.onReadyBeingFired.reduce(tn, H);
2320
2320
  return t.onReadyBeingFired = [], T.resolve(xn(function() {
2321
2321
  return p(e.vip);
2322
- })).then(d);
2322
+ })).then(f);
2323
2323
  }
2324
2324
  });
2325
2325
  }).finally(function() {
2326
2326
  t.openCanceller === r && (t.onReadyBeingFired = null, t.isBeingOpened = !1);
2327
- }).catch(function(d) {
2328
- t.dbOpenError = d;
2327
+ }).catch(function(f) {
2328
+ t.dbOpenError = f;
2329
2329
  try {
2330
2330
  b && b.abort();
2331
2331
  } catch {
2332
2332
  }
2333
- return r === t.openCanceller && e._close(), q(d);
2333
+ return r === t.openCanceller && e._close(), q(f);
2334
2334
  }).finally(function() {
2335
- t.openComplete = !0, f();
2335
+ t.openComplete = !0, d();
2336
2336
  }).then(function() {
2337
- var d;
2338
- return c && (d = {}, e.tables.forEach(function(p) {
2337
+ var f;
2338
+ return c && (f = {}, e.tables.forEach(function(p) {
2339
2339
  p.schema.indexes.forEach(function(m) {
2340
- m.name && (d["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new oe(-1 / 0, [[[]]]));
2341
- }), d["idb://".concat(e.name, "/").concat(p.name, "/")] = d["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2342
- }), Te(pt).fire(d), Cn(d, !0)), e;
2340
+ m.name && (f["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new oe(-1 / 0, [[[]]]));
2341
+ }), f["idb://".concat(e.name, "/").concat(p.name, "/")] = f["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2342
+ }), Te(pt).fire(f), Cn(f, !0)), e;
2343
2343
  });
2344
2344
  }
2345
2345
  function Rn(e) {
@@ -2365,20 +2365,20 @@ var Rr = { exports: {} };
2365
2365
  var gi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2366
2366
  return y(y({}, e), { table: function(t) {
2367
2367
  var n = e.table(t), r = n.schema, i = {}, a = [];
2368
- function s(c, d, p) {
2369
- var m = yt(c), w = i[m] = i[m] || [], g = c == null ? 0 : typeof c == "string" ? 1 : c.length, _ = 0 < d, _ = y(y({}, p), { name: _ ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: d, keyLength: g, extractKey: vn(c), unique: !_ && p.unique });
2370
- return w.push(_), _.isPrimaryKey || a.push(_), 1 < g && s(g === 2 ? c[0] : c.slice(0, g - 1), d + 1, p), w.sort(function(S, E) {
2368
+ function s(c, f, p) {
2369
+ var m = yt(c), w = i[m] = i[m] || [], g = c == null ? 0 : typeof c == "string" ? 1 : c.length, _ = 0 < f, _ = y(y({}, p), { name: _ ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: f, keyLength: g, extractKey: vn(c), unique: !_ && p.unique });
2370
+ return w.push(_), _.isPrimaryKey || a.push(_), 1 < g && s(g === 2 ? c[0] : c.slice(0, g - 1), f + 1, p), w.sort(function(S, E) {
2371
2371
  return S.keyTail - E.keyTail;
2372
2372
  }), _;
2373
2373
  }
2374
2374
  t = s(r.primaryKey.keyPath, 0, r.primaryKey), i[":id"] = [t];
2375
2375
  for (var u = 0, h = r.indexes; u < h.length; u++) {
2376
- var f = h[u];
2377
- s(f.keyPath, 0, f);
2376
+ var d = h[u];
2377
+ s(d.keyPath, 0, d);
2378
2378
  }
2379
2379
  function b(c) {
2380
- var d, p = c.query.index;
2381
- return p.isVirtual ? y(y({}, c), { query: { index: p.lowLevelIndex, range: (d = c.query.range, p = p.keyTail, { type: d.type === 1 ? 2 : d.type, lower: $t(d.lower, d.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: $t(d.upper, d.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : c;
2380
+ var f, p = c.query.index;
2381
+ return p.isVirtual ? y(y({}, c), { query: { index: p.lowLevelIndex, range: (f = c.query.range, p = p.keyTail, { type: f.type === 1 ? 2 : f.type, lower: $t(f.lower, f.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: $t(f.upper, f.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : c;
2382
2382
  }
2383
2383
  return y(y({}, n), { schema: y(y({}, r), { primaryKey: t, indexes: a, getIndexByKeyPath: function(c) {
2384
2384
  return (c = i[yt(c)]) && c[0];
@@ -2387,7 +2387,7 @@ var Rr = { exports: {} };
2387
2387
  }, query: function(c) {
2388
2388
  return n.query(b(c));
2389
2389
  }, openCursor: function(c) {
2390
- var d = c.query.index, p = d.keyTail, m = d.isVirtual, w = d.keyLength;
2390
+ var f = c.query.index, p = f.keyTail, m = f.isVirtual, w = f.keyLength;
2391
2391
  return m ? n.openCursor(b(c)).then(function(_) {
2392
2392
  return _ && g(_);
2393
2393
  }) : n.openCursor(c);
@@ -2409,10 +2409,10 @@ var Rr = { exports: {} };
2409
2409
  } });
2410
2410
  } };
2411
2411
  function Tn(e, t, n, r) {
2412
- return n = n || {}, r = r || "", j(e).forEach(function(i) {
2412
+ return n = n || {}, r = r || "", M(e).forEach(function(i) {
2413
2413
  var a, s, u;
2414
2414
  ie(t, i) ? (a = e[i], s = t[i], typeof a == "object" && typeof s == "object" && a && s ? (u = Jt(a)) !== Jt(s) ? n[r + i] = t[i] : u === "Object" ? Tn(a, s, n, r + i + ".") : a !== s && (n[r + i] = t[i]) : a !== s && (n[r + i] = t[i])) : n[r + i] = void 0;
2415
- }), j(t).forEach(function(i) {
2415
+ }), M(t).forEach(function(i) {
2416
2416
  ie(e, i) || (n[r + i] = t[i]);
2417
2417
  }), n;
2418
2418
  }
@@ -2423,7 +2423,7 @@ var Rr = { exports: {} };
2423
2423
  return y(y({}, e), { table: function(t) {
2424
2424
  var n = e.table(t), r = n.schema.primaryKey;
2425
2425
  return y(y({}, n), { mutate: function(i) {
2426
- var a = B.trans, s = a.table(t).hook, u = s.deleting, h = s.creating, f = s.updating;
2426
+ var a = B.trans, s = a.table(t).hook, u = s.deleting, h = s.creating, d = s.updating;
2427
2427
  switch (i.type) {
2428
2428
  case "add":
2429
2429
  if (h.fire === H)
@@ -2432,7 +2432,7 @@ var Rr = { exports: {} };
2432
2432
  return b(i);
2433
2433
  }, !0);
2434
2434
  case "put":
2435
- if (h.fire === H && f.fire === H)
2435
+ if (h.fire === H && d.fire === H)
2436
2436
  break;
2437
2437
  return a._promise("readwrite", function() {
2438
2438
  return b(i);
@@ -2447,11 +2447,11 @@ var Rr = { exports: {} };
2447
2447
  if (u.fire === H)
2448
2448
  break;
2449
2449
  return a._promise("readwrite", function() {
2450
- return function c(d, p, m) {
2451
- return n.query({ trans: d, values: !1, query: { index: r, range: p }, limit: m }).then(function(w) {
2450
+ return function c(f, p, m) {
2451
+ return n.query({ trans: f, values: !1, query: { index: r, range: p }, limit: m }).then(function(w) {
2452
2452
  var g = w.result;
2453
- return b({ type: "delete", keys: g, trans: d }).then(function(_) {
2454
- return 0 < _.numFailures ? Promise.reject(_.failures[0]) : g.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : c(d, y(y({}, p), { lower: g[g.length - 1], lowerOpen: !0 }), m);
2453
+ return b({ type: "delete", keys: g, trans: f }).then(function(_) {
2454
+ return 0 < _.numFailures ? Promise.reject(_.failures[0]) : g.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : c(f, y(y({}, p), { lower: g[g.length - 1], lowerOpen: !0 }), m);
2455
2455
  });
2456
2456
  });
2457
2457
  }(i.trans, i.range, 1e4);
@@ -2459,14 +2459,14 @@ var Rr = { exports: {} };
2459
2459
  }
2460
2460
  return n.mutate(i);
2461
2461
  function b(c) {
2462
- var d, p, m, w = B.trans, g = c.keys || jn(r, c);
2462
+ var f, p, m, w = B.trans, g = c.keys || jn(r, c);
2463
2463
  if (!g)
2464
2464
  throw new Error("Keys missing");
2465
- return (c = c.type === "add" || c.type === "put" ? y(y({}, c), { keys: g }) : y({}, c)).type !== "delete" && (c.values = I([], c.values, !0)), c.keys && (c.keys = I([], c.keys, !0)), d = n, m = g, ((p = c).type === "add" ? Promise.resolve([]) : d.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(_) {
2465
+ return (c = c.type === "add" || c.type === "put" ? y(y({}, c), { keys: g }) : y({}, c)).type !== "delete" && (c.values = I([], c.values, !0)), c.keys && (c.keys = I([], c.keys, !0)), f = n, m = g, ((p = c).type === "add" ? Promise.resolve([]) : f.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(_) {
2466
2466
  var S = g.map(function(E, O) {
2467
2467
  var k, C, A, R = _[O], D = { onerror: null, onsuccess: null };
2468
- return c.type === "delete" ? u.fire.call(D, E, R, w) : c.type === "add" || R === void 0 ? (k = h.fire.call(D, E, c.values[O], w), E == null && k != null && (c.keys[O] = E = k, r.outbound || fe(c.values[O], r.keyPath, E))) : (k = Tn(R, c.values[O]), (C = f.fire.call(D, k, E, R, w)) && (A = c.values[O], Object.keys(C).forEach(function(G) {
2469
- ie(A, G) ? A[G] = C[G] : fe(A, G, C[G]);
2468
+ return c.type === "delete" ? u.fire.call(D, E, R, w) : c.type === "add" || R === void 0 ? (k = h.fire.call(D, E, c.values[O], w), E == null && k != null && (c.keys[O] = E = k, r.outbound || de(c.values[O], r.keyPath, E))) : (k = Tn(R, c.values[O]), (C = d.fire.call(D, k, E, R, w)) && (A = c.values[O], Object.keys(C).forEach(function(G) {
2469
+ ie(A, G) ? A[G] = C[G] : de(A, G, C[G]);
2470
2470
  }))), D;
2471
2471
  });
2472
2472
  return n.mutate(c).then(function(E) {
@@ -2536,13 +2536,13 @@ var Rr = { exports: {} };
2536
2536
  var p = (m = p.query).index, m = m.range;
2537
2537
  return [p, new oe((p = m.lower) !== null && p !== void 0 ? p : e.MIN_KEY, (m = m.upper) !== null && m !== void 0 ? m : e.MAX_KEY)];
2538
2538
  }
2539
- var a = e.table(r), s = a.schema, u = s.primaryKey, h = u.extractKey, f = u.outbound, b = y(y({}, a), { mutate: function(d) {
2539
+ var a = e.table(r), s = a.schema, u = s.primaryKey, h = u.extractKey, d = u.outbound, b = y(y({}, a), { mutate: function(f) {
2540
2540
  function p(D) {
2541
2541
  return D = "idb://".concat(t, "/").concat(r, "/").concat(D), S[D] || (S[D] = new oe());
2542
2542
  }
2543
- var m, w, g, _ = d.trans, S = d.mutatedParts || (d.mutatedParts = {}), E = p(""), O = p(":dels"), k = d.type, R = d.type === "deleteRange" ? [d.range] : d.type === "delete" ? [d.keys] : d.values.length < 50 ? [jn(u, d).filter(function(D) {
2543
+ var m, w, g, _ = f.trans, S = f.mutatedParts || (f.mutatedParts = {}), E = p(""), O = p(":dels"), k = f.type, R = f.type === "deleteRange" ? [f.range] : f.type === "delete" ? [f.keys] : f.values.length < 50 ? [jn(u, f).filter(function(D) {
2544
2544
  return D;
2545
- }), d.values] : [], C = R[0], A = R[1], R = d.trans._cache;
2545
+ }), f.values] : [], C = R[0], A = R[1], R = f.trans._cache;
2546
2546
  return N(C) ? (E.addKeys(C), (R = k === "delete" || C.length === A.length ? Sr(C, R) : null) || O.addKeys(C), (R || A) && (m = p, w = R, g = A, s.indexes.forEach(function(D) {
2547
2547
  var G = m(D.name || "");
2548
2548
  function F(W) {
@@ -2559,33 +2559,33 @@ var Rr = { exports: {} };
2559
2559
  });
2560
2560
  }))) : C ? (A = { from: C.lower, to: C.upper }, O.add(A), E.add(A)) : (E.add(n), O.add(n), s.indexes.forEach(function(D) {
2561
2561
  return p(D.name).add(n);
2562
- })), a.mutate(d).then(function(D) {
2563
- return !C || d.type !== "add" && d.type !== "put" || E.addKeys(D.results), _.mutatedParts = Wt(_.mutatedParts || {}, S), D;
2562
+ })), a.mutate(f).then(function(D) {
2563
+ return !C || f.type !== "add" && f.type !== "put" || E.addKeys(D.results), _.mutatedParts = Wt(_.mutatedParts || {}, S), D;
2564
2564
  });
2565
- } }), c = { get: function(d) {
2566
- return [u, new oe(d.key)];
2567
- }, getMany: function(d) {
2568
- return [u, new oe().addKeys(d.keys)];
2565
+ } }), c = { get: function(f) {
2566
+ return [u, new oe(f.key)];
2567
+ }, getMany: function(f) {
2568
+ return [u, new oe().addKeys(f.keys)];
2569
2569
  }, count: i, query: i, openCursor: i };
2570
- return j(c).forEach(function(d) {
2571
- b[d] = function(p) {
2572
- var m = B.subscr, w = !!m, g = Er(B, a) && Or(d, p) ? p.obsSet = {} : m;
2570
+ return M(c).forEach(function(f) {
2571
+ b[f] = function(p) {
2572
+ var m = B.subscr, w = !!m, g = Er(B, a) && Or(f, p) ? p.obsSet = {} : m;
2573
2573
  if (w) {
2574
2574
  var _ = function(A) {
2575
2575
  return A = "idb://".concat(t, "/").concat(r, "/").concat(A), g[A] || (g[A] = new oe());
2576
- }, S = _(""), E = _(":dels"), m = c[d](p), w = m[0], m = m[1];
2577
- if ((d === "query" && w.isPrimaryKey && !p.values ? E : _(w.name || "")).add(m), !w.isPrimaryKey) {
2578
- if (d !== "count") {
2579
- var O = d === "query" && f && p.values && a.query(y(y({}, p), { values: !1 }));
2580
- return a[d].apply(this, arguments).then(function(A) {
2581
- if (d === "query") {
2582
- if (f && p.values)
2576
+ }, S = _(""), E = _(":dels"), m = c[f](p), w = m[0], m = m[1];
2577
+ if ((f === "query" && w.isPrimaryKey && !p.values ? E : _(w.name || "")).add(m), !w.isPrimaryKey) {
2578
+ if (f !== "count") {
2579
+ var O = f === "query" && d && p.values && a.query(y(y({}, p), { values: !1 }));
2580
+ return a[f].apply(this, arguments).then(function(A) {
2581
+ if (f === "query") {
2582
+ if (d && p.values)
2583
2583
  return O.then(function(F) {
2584
2584
  return F = F.result, S.addKeys(F), A;
2585
2585
  });
2586
2586
  var R = p.values ? A.result.map(h) : A.result;
2587
2587
  (p.values ? S : E).addKeys(R);
2588
- } else if (d === "openCursor") {
2588
+ } else if (f === "openCursor") {
2589
2589
  var D = A, G = p.values;
2590
2590
  return D && Object.create(D, { key: { get: function() {
2591
2591
  return E.addKey(D.primaryKey), D.key;
@@ -2602,7 +2602,7 @@ var Rr = { exports: {} };
2602
2602
  E.add(n);
2603
2603
  }
2604
2604
  }
2605
- return a[d].apply(this, arguments);
2605
+ return a[f].apply(this, arguments);
2606
2606
  };
2607
2607
  }), b;
2608
2608
  } });
@@ -2623,10 +2623,10 @@ var Rr = { exports: {} };
2623
2623
  return n = e, ((r = t).lower === void 0 || (r.lowerOpen ? 0 < $(n, r.lower) : 0 <= $(n, r.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? $(e, t.upper) < 0 : $(e, t.upper) <= 0));
2624
2624
  var n, r;
2625
2625
  }
2626
- function kr(e, t, d, r, i, a) {
2627
- if (!d || d.length === 0)
2626
+ function kr(e, t, f, r, i, a) {
2627
+ if (!f || f.length === 0)
2628
2628
  return e;
2629
- var s = t.query.index, u = s.multiEntry, h = t.query.range, f = r.schema.primaryKey.extractKey, b = s.extractKey, c = (s.lowLevelIndex || s).extractKey, d = d.reduce(function(p, m) {
2629
+ var s = t.query.index, u = s.multiEntry, h = t.query.range, d = r.schema.primaryKey.extractKey, b = s.extractKey, c = (s.lowLevelIndex || s).extractKey, f = f.reduce(function(p, m) {
2630
2630
  var w = p, g = m.type === "add" || m.type === "put" ? m.values.filter(function(O) {
2631
2631
  return O = b(O), u && N(O) ? O.some(function(k) {
2632
2632
  return Mn(k, h);
@@ -2637,35 +2637,35 @@ var Rr = { exports: {} };
2637
2637
  switch (m.type) {
2638
2638
  case "add":
2639
2639
  w = p.concat(t.values ? g : g.map(function(k) {
2640
- return f(k);
2640
+ return d(k);
2641
2641
  }));
2642
2642
  break;
2643
2643
  case "put":
2644
2644
  var _ = new oe().addKeys(m.values.map(function(k) {
2645
- return f(k);
2645
+ return d(k);
2646
2646
  })), w = p.filter(function(k) {
2647
- return k = t.values ? f(k) : k, !Ut(new oe(k), _);
2647
+ return k = t.values ? d(k) : k, !Ut(new oe(k), _);
2648
2648
  }).concat(t.values ? g : g.map(function(k) {
2649
- return f(k);
2649
+ return d(k);
2650
2650
  }));
2651
2651
  break;
2652
2652
  case "delete":
2653
2653
  var S = new oe().addKeys(m.keys);
2654
2654
  w = p.filter(function(k) {
2655
- return k = t.values ? f(k) : k, !Ut(new oe(k), S);
2655
+ return k = t.values ? d(k) : k, !Ut(new oe(k), S);
2656
2656
  });
2657
2657
  break;
2658
2658
  case "deleteRange":
2659
2659
  var E = m.range;
2660
2660
  w = p.filter(function(k) {
2661
- return !Mn(f(k), E);
2661
+ return !Mn(d(k), E);
2662
2662
  });
2663
2663
  }
2664
2664
  return w;
2665
2665
  }, e);
2666
- return d === e ? e : (d.sort(function(p, m) {
2667
- return $(c(p), c(m)) || $(f(p), f(m));
2668
- }), t.limit && t.limit < 1 / 0 && (d.length > t.limit ? d.length = t.limit : e.length === t.limit && d.length < t.limit && (i.dirty = !0)), a ? Object.freeze(d) : d);
2666
+ return f === e ? e : (f.sort(function(p, m) {
2667
+ return $(c(p), c(m)) || $(d(p), d(m));
2668
+ }), t.limit && t.limit < 1 / 0 && (f.length > t.limit ? f.length = t.limit : e.length === t.limit && f.length < t.limit && (i.dirty = !0)), a ? Object.freeze(f) : f);
2669
2669
  }
2670
2670
  function Ar(e, t) {
2671
2671
  return $(e.lower, t.lower) === 0 && $(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
@@ -2716,17 +2716,17 @@ var Rr = { exports: {} };
2716
2716
  return r === "readwrite" && (s = (a = new AbortController()).signal, i = function(h) {
2717
2717
  return function() {
2718
2718
  if (a.abort(), r === "readwrite") {
2719
- for (var f = /* @__PURE__ */ new Set(), b = 0, c = n; b < c.length; b++) {
2720
- var d = c[b], p = Ue["idb://".concat(t, "/").concat(d)];
2719
+ for (var d = /* @__PURE__ */ new Set(), b = 0, c = n; b < c.length; b++) {
2720
+ var f = c[b], p = Ue["idb://".concat(t, "/").concat(f)];
2721
2721
  if (p) {
2722
- var m = e.table(d), w = p.optimisticOps.filter(function(F) {
2722
+ var m = e.table(f), w = p.optimisticOps.filter(function(F) {
2723
2723
  return F.trans === u;
2724
2724
  });
2725
2725
  if (u._explicit && h && u.mutatedParts)
2726
2726
  for (var g = 0, _ = Object.values(p.queries.query); g < _.length; g++)
2727
2727
  for (var S = 0, E = (C = _[g]).slice(); S < E.length; S++)
2728
2728
  Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(C, A), A.subscribers.forEach(function(F) {
2729
- return f.add(F);
2729
+ return d.add(F);
2730
2730
  }));
2731
2731
  else if (0 < w.length) {
2732
2732
  p.optimisticOps = p.optimisticOps.filter(function(F) {
@@ -2735,14 +2735,14 @@ var Rr = { exports: {} };
2735
2735
  for (var O = 0, k = Object.values(p.queries.query); O < k.length; O++)
2736
2736
  for (var C, A, R, D = 0, G = (C = k[O]).slice(); D < G.length; D++)
2737
2737
  (A = G[D]).res != null && u.mutatedParts && (h && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, w, m, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(F) {
2738
- return f.add(F);
2738
+ return d.add(F);
2739
2739
  })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Me(C, A), A.subscribers.forEach(function(F) {
2740
- return f.add(F);
2740
+ return d.add(F);
2741
2741
  })));
2742
2742
  }
2743
2743
  }
2744
2744
  }
2745
- f.forEach(function(F) {
2745
+ d.forEach(function(F) {
2746
2746
  return F();
2747
2747
  });
2748
2748
  }
@@ -2762,18 +2762,18 @@ var Rr = { exports: {} };
2762
2762
  }), s.catch(function() {
2763
2763
  Me(u.optimisticOps, a), a.mutatedParts && zt(a.mutatedParts);
2764
2764
  })) : s.then(function(h) {
2765
- var f = xr(0, y(y({}, a), { values: a.values.map(function(p, c) {
2766
- var d, p = (d = i.keyPath) !== null && d !== void 0 && d.includes(".") ? Ae(p) : y({}, p);
2767
- return fe(p, i.keyPath, h.results[c]), p;
2765
+ var d = xr(0, y(y({}, a), { values: a.values.map(function(p, c) {
2766
+ var f, p = (f = i.keyPath) !== null && f !== void 0 && f.includes(".") ? Ae(p) : y({}, p);
2767
+ return de(p, i.keyPath, h.results[c]), p;
2768
2768
  }) }), h);
2769
- u.optimisticOps.push(f), queueMicrotask(function() {
2769
+ u.optimisticOps.push(d), queueMicrotask(function() {
2770
2770
  return a.mutatedParts && zt(a.mutatedParts);
2771
2771
  });
2772
2772
  }), s) : r.mutate(a);
2773
2773
  }, query: function(a) {
2774
2774
  if (!Er(B, r) || !Or("query", a))
2775
2775
  return r.query(a);
2776
- var s = ((f = B.trans) === null || f === void 0 ? void 0 : f.db._options.cache) === "immutable", c = B, u = c.requery, h = c.signal, f = function(m, w, g, _) {
2776
+ var s = ((d = B.trans) === null || d === void 0 ? void 0 : d.db._options.cache) === "immutable", c = B, u = c.requery, h = c.signal, d = function(m, w, g, _) {
2777
2777
  var S = Ue["idb://".concat(m, "/").concat(w)];
2778
2778
  if (!S)
2779
2779
  return [];
@@ -2795,7 +2795,7 @@ var Rr = { exports: {} };
2795
2795
  return Ar(k.req.query.range, _.query.range);
2796
2796
  }), [O, !!O, S, E];
2797
2797
  }
2798
- }(t, n, "query", a), b = f[0], c = f[1], d = f[2], p = f[3];
2798
+ }(t, n, "query", a), b = d[0], c = d[1], f = d[2], p = d[3];
2799
2799
  return b && c ? b.obsSet = a.obsSet : (c = r.query(a).then(function(m) {
2800
2800
  var w = m.result;
2801
2801
  if (b && (b.res = w), s) {
@@ -2807,8 +2807,8 @@ var Rr = { exports: {} };
2807
2807
  return m;
2808
2808
  }).catch(function(m) {
2809
2809
  return p && b && Me(p, b), Promise.reject(m);
2810
- }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (d = d || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, h), b.promise.then(function(m) {
2811
- return { result: kr(m.result, a, d == null ? void 0 : d.optimisticOps, r, b, s) };
2810
+ }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, h), b.promise.then(function(m) {
2811
+ return { result: kr(m.result, a, f == null ? void 0 : f.optimisticOps, r, b, s) };
2812
2812
  });
2813
2813
  } });
2814
2814
  } });
@@ -2881,8 +2881,8 @@ var Rr = { exports: {} };
2881
2881
  t.close(e);
2882
2882
  var u = t._deps.indexedDB.deleteDatabase(t.name);
2883
2883
  u.onsuccess = J(function() {
2884
- var h, f, b;
2885
- h = t._deps, f = t.name, b = h.indexedDB, h = h.IDBKeyRange, On(b) || f === Ct || En(b, h).delete(f).catch(H), i();
2884
+ var h, d, b;
2885
+ h = t._deps, d = t.name, b = h.indexedDB, h = h.IDBKeyRange, On(b) || d === Ct || En(b, h).delete(d).catch(H), i();
2886
2886
  }), u.onerror = ye(a), u.onblocked = t._fireOnBlocked;
2887
2887
  }
2888
2888
  if (n)
@@ -2902,7 +2902,7 @@ var Rr = { exports: {} };
2902
2902
  return this._state.autoSchema;
2903
2903
  }, Object.defineProperty(ee.prototype, "tables", { get: function() {
2904
2904
  var e = this;
2905
- return j(this._allTables).map(function(t) {
2905
+ return M(this._allTables).map(function(t) {
2906
2906
  return e._allTables[t];
2907
2907
  });
2908
2908
  }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
@@ -2921,39 +2921,39 @@ var Rr = { exports: {} };
2921
2921
  var a, s, u = e.indexOf("?") !== -1;
2922
2922
  e = e.replace("!", "").replace("?", "");
2923
2923
  try {
2924
- if (s = t.map(function(f) {
2925
- if (f = f instanceof r.Table ? f.name : f, typeof f != "string")
2924
+ if (s = t.map(function(d) {
2925
+ if (d = d instanceof r.Table ? d.name : d, typeof d != "string")
2926
2926
  throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
2927
- return f;
2928
- }), e == "r" || e === fn)
2929
- a = fn;
2927
+ return d;
2928
+ }), e == "r" || e === dn)
2929
+ a = dn;
2930
2930
  else {
2931
- if (e != "rw" && e != dn)
2931
+ if (e != "rw" && e != fn)
2932
2932
  throw new L.InvalidArgument("Invalid transaction mode: " + e);
2933
- a = dn;
2933
+ a = fn;
2934
2934
  }
2935
2935
  if (i) {
2936
- if (i.mode === fn && a === dn) {
2936
+ if (i.mode === dn && a === fn) {
2937
2937
  if (!u)
2938
2938
  throw new L.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2939
2939
  i = null;
2940
2940
  }
2941
- i && s.forEach(function(f) {
2942
- if (i && i.storeNames.indexOf(f) === -1) {
2941
+ i && s.forEach(function(d) {
2942
+ if (i && i.storeNames.indexOf(d) === -1) {
2943
2943
  if (!u)
2944
- throw new L.SubTransaction("Table " + f + " not included in parent transaction.");
2944
+ throw new L.SubTransaction("Table " + d + " not included in parent transaction.");
2945
2945
  i = null;
2946
2946
  }
2947
2947
  }), u && i && !i.active && (i = null);
2948
2948
  }
2949
- } catch (f) {
2949
+ } catch (d) {
2950
2950
  return i ? i._promise(null, function(b, c) {
2951
- c(f);
2952
- }) : q(f);
2951
+ c(d);
2952
+ }) : q(d);
2953
2953
  }
2954
- var h = (function f(b, c, d, p, m) {
2954
+ var h = (function d(b, c, f, p, m) {
2955
2955
  return T.resolve().then(function() {
2956
- var w = B.transless || B, g = b._createTransaction(c, d, b._dbSchema, p);
2956
+ var w = B.transless || B, g = b._createTransaction(c, f, b._dbSchema, p);
2957
2957
  if (g.explicit = !0, w = { trans: g, transless: w }, p)
2958
2958
  g.idbtrans = p.idbtrans;
2959
2959
  else
@@ -2961,7 +2961,7 @@ var Rr = { exports: {} };
2961
2961
  g.create(), g.idbtrans._explicit = !0, b._state.PR1398_maxLoop = 3;
2962
2962
  } catch (E) {
2963
2963
  return E.name === en.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
2964
- return f(b, c, d, null, m);
2964
+ return d(b, c, f, null, m);
2965
2965
  })) : q(E);
2966
2966
  }
2967
2967
  var _, S = qt(m);
@@ -2994,21 +2994,21 @@ var Rr = { exports: {} };
2994
2994
  this._middlewares = {}, this.verno = 0;
2995
2995
  var r = ee.dependencies;
2996
2996
  this._options = t = y({ addons: ee.addons, autoOpen: !0, indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, r = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
2997
- var i, a, s, u, h, f = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: H, dbReadyPromise: null, cancelOpen: H, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2998
- f.dbReadyPromise = new T(function(c) {
2999
- f.dbReadyResolve = c;
3000
- }), f.openCanceller = new T(function(c, d) {
3001
- f.cancelOpen = d;
3002
- }), this._state = f, this.name = e, this.on = ft(this, "populate", "blocked", "versionchange", "close", { ready: [tn, H] }), this.on.ready.subscribe = Yn(this.on.ready.subscribe, function(c) {
3003
- return function(d, p) {
2997
+ var i, a, s, u, h, d = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: H, dbReadyPromise: null, cancelOpen: H, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2998
+ d.dbReadyPromise = new T(function(c) {
2999
+ d.dbReadyResolve = c;
3000
+ }), d.openCanceller = new T(function(c, f) {
3001
+ d.cancelOpen = f;
3002
+ }), this._state = d, this.name = e, this.on = dt(this, "populate", "blocked", "versionchange", "close", { ready: [tn, H] }), this.on.ready.subscribe = Yn(this.on.ready.subscribe, function(c) {
3003
+ return function(f, p) {
3004
3004
  ee.vip(function() {
3005
3005
  var m, w = n._state;
3006
- w.openComplete ? (w.dbOpenError || T.resolve().then(d), p && c(d)) : w.onReadyBeingFired ? (w.onReadyBeingFired.push(d), p && c(d)) : (c(d), m = n, p || c(function g() {
3007
- m.on.ready.unsubscribe(d), m.on.ready.unsubscribe(g);
3006
+ w.openComplete ? (w.dbOpenError || T.resolve().then(f), p && c(f)) : w.onReadyBeingFired ? (w.onReadyBeingFired.push(f), p && c(f)) : (c(f), m = n, p || c(function g() {
3007
+ m.on.ready.unsubscribe(f), m.on.ready.unsubscribe(g);
3008
3008
  }));
3009
3009
  });
3010
3010
  };
3011
- }), this.Collection = (i = this, dt(ri.prototype, function(_, g) {
3011
+ }), this.Collection = (i = this, ft(ri.prototype, function(_, g) {
3012
3012
  this.db = i;
3013
3013
  var p = ar, m = null;
3014
3014
  if (g)
@@ -3019,11 +3019,11 @@ var Rr = { exports: {} };
3019
3019
  }
3020
3020
  var w = _._ctx, g = w.table, _ = g.hook.reading.fire;
3021
3021
  this._ctx = { table: g, index: w.index, isPrimKey: !w.index || g.schema.primKey.keyPath && w.index === g.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: m, or: w.or, valueMapper: _ !== ot ? _ : null };
3022
- })), this.Table = (a = this, dt(lr.prototype, function(c, d, p) {
3023
- this.db = a, this._tx = p, this.name = c, this.schema = d, this.hook = a._allTables[c] ? a._allTables[c].hook : ft(null, { creating: [Qr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Vr, H] });
3024
- })), this.Transaction = (s = this, dt(ai.prototype, function(c, d, p, m, w) {
3022
+ })), this.Table = (a = this, ft(lr.prototype, function(c, f, p) {
3023
+ this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : dt(null, { creating: [Qr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Vr, H] });
3024
+ })), this.Transaction = (s = this, ft(ai.prototype, function(c, f, p, m, w) {
3025
3025
  var g = this;
3026
- this.db = s, this.mode = c, this.storeNames = d, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = ft(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new T(function(_, S) {
3026
+ this.db = s, this.mode = c, this.storeNames = f, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new T(function(_, S) {
3027
3027
  g._resolve = _, g._reject = S;
3028
3028
  }), this._completion.then(function() {
3029
3029
  g.active = !1, g.on.complete.fire();
@@ -3031,10 +3031,10 @@ var Rr = { exports: {} };
3031
3031
  var S = g.active;
3032
3032
  return g.active = !1, g.on.error.fire(_), g.parent ? g.parent._reject(_) : S && g.idbtrans && g.idbtrans.abort(), q(_);
3033
3033
  });
3034
- })), this.Version = (u = this, dt(hi.prototype, function(c) {
3034
+ })), this.Version = (u = this, ft(hi.prototype, function(c) {
3035
3035
  this.db = u, this._cfg = { version: c, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3036
- })), this.WhereClause = (h = this, dt(pr.prototype, function(c, d, p) {
3037
- if (this.db = h, this._ctx = { table: c, index: d === ":id" ? null : d, or: p }, this._cmp = this._ascending = $, this._descending = function(m, w) {
3036
+ })), this.WhereClause = (h = this, ft(pr.prototype, function(c, f, p) {
3037
+ if (this.db = h, this._ctx = { table: c, index: f === ":id" ? null : f, or: p }, this._cmp = this._ascending = $, this._descending = function(m, w) {
3038
3038
  return $(w, m);
3039
3039
  }, this._max = function(m, w) {
3040
3040
  return 0 < $(m, w) ? m : w;
@@ -3046,26 +3046,26 @@ var Rr = { exports: {} };
3046
3046
  0 < c.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
3047
3047
  }), this.on("blocked", function(c) {
3048
3048
  !c.newVersion || c.newVersion < c.oldVersion ? console.warn("Dexie.delete('".concat(n.name, "') was blocked")) : console.warn("Upgrade '".concat(n.name, "' blocked by other connection holding version ").concat(c.oldVersion / 10));
3049
- }), this._maxKey = gt(t.IDBKeyRange), this._createTransaction = function(c, d, p, m) {
3050
- return new n.Transaction(c, d, p, n._options.chromeTransactionDurability, m);
3049
+ }), this._maxKey = gt(t.IDBKeyRange), this._createTransaction = function(c, f, p, m) {
3050
+ return new n.Transaction(c, f, p, n._options.chromeTransactionDurability, m);
3051
3051
  }, this._fireOnBlocked = function(c) {
3052
- n.on("blocked").fire(c), Ze.filter(function(d) {
3053
- return d.name === n.name && d !== n && !d._state.vcFired;
3054
- }).map(function(d) {
3055
- return d.on("versionchange").fire(c);
3052
+ n.on("blocked").fire(c), Ze.filter(function(f) {
3053
+ return f.name === n.name && f !== n && !f._state.vcFired;
3054
+ }).map(function(f) {
3055
+ return f.on("versionchange").fire(c);
3056
3056
  });
3057
3057
  }, this.use(mi), this.use(_i), this.use(bi), this.use(gi), this.use(yi);
3058
- var b = new Proxy(this, { get: function(c, d, p) {
3059
- if (d === "_vip")
3058
+ var b = new Proxy(this, { get: function(c, f, p) {
3059
+ if (f === "_vip")
3060
3060
  return !0;
3061
- if (d === "table")
3061
+ if (f === "table")
3062
3062
  return function(w) {
3063
3063
  return Yt(n.table(w), b);
3064
3064
  };
3065
- var m = Reflect.get(c, d, p);
3066
- return m instanceof lr ? Yt(m, b) : d === "tables" ? m.map(function(w) {
3065
+ var m = Reflect.get(c, f, p);
3066
+ return m instanceof lr ? Yt(m, b) : f === "tables" ? m.map(function(w) {
3067
3067
  return Yt(w, b);
3068
- }) : d === "_createTransaction" ? function() {
3068
+ }) : f === "_createTransaction" ? function() {
3069
3069
  return Yt(m.apply(this, arguments), b);
3070
3070
  } : m;
3071
3071
  } });
@@ -3073,31 +3073,31 @@ var Rr = { exports: {} };
3073
3073
  return c(n);
3074
3074
  });
3075
3075
  }
3076
- var Ht, de = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Kn.prototype.subscribe = function(e, t, n) {
3076
+ var Ht, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Kn.prototype.subscribe = function(e, t, n) {
3077
3077
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
3078
- }, Kn.prototype[de] = function() {
3078
+ }, Kn.prototype[fe] = function() {
3079
3079
  return this;
3080
3080
  }, Kn);
3081
3081
  function Kn(e) {
3082
3082
  this._subscribe = e;
3083
3083
  }
3084
3084
  try {
3085
- Ht = { indexedDB: M.indexedDB || M.mozIndexedDB || M.webkitIndexedDB || M.msIndexedDB, IDBKeyRange: M.IDBKeyRange || M.webkitIDBKeyRange };
3085
+ Ht = { indexedDB: j.indexedDB || j.mozIndexedDB || j.webkitIndexedDB || j.msIndexedDB, IDBKeyRange: j.IDBKeyRange || j.webkitIDBKeyRange };
3086
3086
  } catch {
3087
3087
  Ht = { indexedDB: null, IDBKeyRange: null };
3088
3088
  }
3089
3089
  function Dr(e) {
3090
3090
  var t, n = !1, r = new Si(function(i) {
3091
- var a = qt(e), s, u = !1, h = {}, f = {}, b = { get closed() {
3091
+ var a = qt(e), s, u = !1, h = {}, d = {}, b = { get closed() {
3092
3092
  return u;
3093
3093
  }, unsubscribe: function() {
3094
3094
  u || (u = !0, s && s.abort(), c && Te.storagemutated.unsubscribe(p));
3095
3095
  } };
3096
3096
  i.start && i.start(b);
3097
- var c = !1, d = function() {
3097
+ var c = !1, f = function() {
3098
3098
  return ln(m);
3099
3099
  }, p = function(w) {
3100
- Wt(h, w), Dn(f, h) && d();
3100
+ Wt(h, w), Dn(d, h) && f();
3101
3101
  }, m = function() {
3102
3102
  var w, g, _;
3103
3103
  !u && Ht.indexedDB && (h = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
@@ -3109,13 +3109,13 @@ var Rr = { exports: {} };
3109
3109
  } finally {
3110
3110
  E && Xe();
3111
3111
  }
3112
- }(g = { subscr: w, signal: s.signal, requery: d, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3112
+ }(g = { subscr: w, signal: s.signal, requery: f, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3113
3113
  n = !0, t = S, u || g.signal.aborted || (h = {}, function(E) {
3114
3114
  for (var O in E)
3115
3115
  if (ie(E, O))
3116
3116
  return;
3117
3117
  return 1;
3118
- }(f = w) || c || (Te(pt, p), c = !0), ln(function() {
3118
+ }(d = w) || c || (Te(pt, p), c = !0), ln(function() {
3119
3119
  return !u && i.next && i.next(S);
3120
3120
  }));
3121
3121
  }, function(S) {
@@ -3124,7 +3124,7 @@ var Rr = { exports: {} };
3124
3124
  });
3125
3125
  }));
3126
3126
  };
3127
- return setTimeout(d, 0), b;
3127
+ return setTimeout(f, 0), b;
3128
3128
  });
3129
3129
  return r.hasValue = function() {
3130
3130
  return n;
@@ -3192,9 +3192,9 @@ var Rr = { exports: {} };
3192
3192
  return pe;
3193
3193
  }, set: function(e) {
3194
3194
  qn(e);
3195
- } }, derive: $e, extend: Z, props: xe, override: Yn, Events: ft, on: Te, liveQuery: Dr, extendObservabilitySet: Wt, getByKeyPath: ve, setByKeyPath: fe, delByKeyPath: function(e, t) {
3196
- typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3197
- fe(e, n, void 0);
3195
+ } }, derive: $e, extend: Z, props: xe, override: Yn, Events: dt, on: Te, liveQuery: Dr, extendObservabilitySet: Wt, getByKeyPath: ve, setByKeyPath: de, delByKeyPath: function(e, t) {
3196
+ typeof t == "string" ? de(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3197
+ de(e, n, void 0);
3198
3198
  });
3199
3199
  }, shallowClone: Qn, deepClone: Ae, getObjectDiff: Tn, cmp: $, asap: Hn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Ht, cache: Ue, semVer: ge, version: ge.split(".").map(function(e) {
3200
3200
  return parseInt(e);
@@ -3246,10 +3246,10 @@ function nt(v) {
3246
3246
  }
3247
3247
  function vt(v, o) {
3248
3248
  var N;
3249
- let l, y, I, M, j;
3249
+ let l, y, I, j, M;
3250
3250
  switch (v.moderation) {
3251
3251
  case Xt.BEFORE:
3252
- l = /* @__PURE__ */ new Date(), y = (N = v.beforeTime) == null ? void 0 : N.split(":"), I = Number.parseInt(y ? y[0] : "00"), M = Number.parseInt(y ? y[1] : "00"), j = Number.parseInt(y ? y[2] : "00"), o.before = l.setHours(I, M, j, 0) / 1e3, o.period || (o.period = l.getDay() === 1 ? 72 : 24);
3252
+ l = /* @__PURE__ */ new Date(), y = (N = v.beforeTime) == null ? void 0 : N.split(":"), I = Number.parseInt(y ? y[0] : "00"), j = Number.parseInt(y ? y[1] : "00"), M = Number.parseInt(y ? y[2] : "00"), o.before = l.setHours(I, j, M, 0) / 1e3, o.period || (o.period = l.getDay() === 1 ? 72 : 24);
3253
3253
  break;
3254
3254
  case Xt.DELAYED:
3255
3255
  v.delay && v.delay > 0 && (o.delay = `${v.delay}`);
@@ -3305,16 +3305,16 @@ class Tr {
3305
3305
  * @returns IResponse
3306
3306
  */
3307
3307
  P(this, "getMessages", async (o) => {
3308
- const l = (M) => M.widget_id === o.widget, y = (M) => M.utc > ((o == null ? void 0 : o.since) || 0), I = (M) => (M == null ? void 0 : M.visible) !== 0;
3308
+ const l = (j) => j.widget_id === o.widget, y = (j) => j.utc > ((o == null ? void 0 : o.since) || 0), I = (j) => (j == null ? void 0 : j.visible) !== 0;
3309
3309
  try {
3310
- const M = await this.db.table(K.TOPICS).orderBy("utc").reverse().filter(l).filter(y).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3310
+ const j = await this.db.table(K.TOPICS).orderBy("utc").reverse().filter(l).filter(y).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3311
3311
  "%capi%c %cmessages",
3312
3312
  x.API,
3313
3313
  x.NONE,
3314
3314
  x.MESSAGES,
3315
3315
  o.slide,
3316
3316
  o.widget
3317
- ), { data: null, message: "Messages Data error", success: !1 })), j = M[0] ? M[0].title : "No title", N = M.map(
3317
+ ), { data: null, message: "Messages Data error", success: !1 })), M = j[0] ? j[0].title : "No title", N = j.map(
3318
3318
  (be) => be.message_id
3319
3319
  ), te = (await this.db.table(K.MESSAGES).where("id").anyOf(N).toArray().then((be) => be.sort((ie, xe) => xe.utc - ie.utc))).map(
3320
3320
  (be) => be.data
@@ -3324,7 +3324,7 @@ class Tr {
3324
3324
  presentation: (o == null ? void 0 : o.presentation) || "not set",
3325
3325
  slide: (o == null ? void 0 : o.slide) || "not set",
3326
3326
  messages: te,
3327
- title: j,
3327
+ title: M,
3328
3328
  topics: [o.dashboard, o.widget].join("-"),
3329
3329
  query: o
3330
3330
  },
@@ -3372,14 +3372,14 @@ class Tr {
3372
3372
  const y = l.title;
3373
3373
  try {
3374
3374
  return l.data.messages.forEach(async (I) => {
3375
- var M, j, N;
3375
+ var j, M, N;
3376
3376
  await this.db.table(K.MESSAGES).put({ id: I.id, utc: I.utc, data: I }), await this.db.table(K.TOPICS).put({
3377
3377
  widget_id: o.widget,
3378
3378
  message_id: I.id,
3379
3379
  dashboard_id: o.dashboard,
3380
3380
  title: y,
3381
- engagement: (M = I.dynamics) == null ? void 0 : M.engagement,
3382
- impressions: (j = I.dynamics) == null ? void 0 : j.semrush_visits,
3381
+ engagement: (j = I.dynamics) == null ? void 0 : j.engagement,
3382
+ impressions: (M = I.dynamics) == null ? void 0 : M.semrush_visits,
3383
3383
  reach: (N = I.dynamics) == null ? void 0 : N.potential_reach,
3384
3384
  sentiment: I.topics[0].sentiment,
3385
3385
  utc: I.utc
@@ -3395,8 +3395,8 @@ class Tr {
3395
3395
  */
3396
3396
  P(this, "cleanMessages", async (o) => {
3397
3397
  const l = Date.now() / 1e3, y = (I) => I.utc < o - l;
3398
- await this.db.table("topics").orderBy("utc").filter(y).modify((I, M) => {
3399
- delete M.value;
3398
+ await this.db.table("topics").orderBy("utc").filter(y).modify((I, j) => {
3399
+ delete j.value;
3400
3400
  });
3401
3401
  });
3402
3402
  /**
@@ -3452,7 +3452,7 @@ function Pi(v, o) {
3452
3452
  const l = indexedDB.open(v);
3453
3453
  l.onupgradeneeded = () => l.result.createObjectStore(o);
3454
3454
  const y = zn(l);
3455
- return (I, M) => y.then((j) => M(j.transaction(o, I).objectStore(o)));
3455
+ return (I, j) => y.then((M) => j(M.transaction(o, I).objectStore(o)));
3456
3456
  }
3457
3457
  let Gn;
3458
3458
  function jr() {
@@ -3912,8 +3912,8 @@ function Oe(v, o) {
3912
3912
  }
3913
3913
  function Ri(v, o, l) {
3914
3914
  return Object.keys(o).sort().reduce(y, v);
3915
- function y(I, M) {
3916
- return Gr(I, o[M], M, l);
3915
+ function y(I, j) {
3916
+ return Gr(I, o[j], j, l);
3917
3917
  }
3918
3918
  }
3919
3919
  function Gr(v, o, l, y) {
@@ -3926,13 +3926,13 @@ function Gr(v, o, l, y) {
3926
3926
  if (y.includes(o))
3927
3927
  return Oe(I, `[Circular]${l}`);
3928
3928
  y.push(o);
3929
- const M = Ri(I, o, y);
3929
+ const j = Ri(I, o, y);
3930
3930
  if (!("valueOf" in o) || typeof o.valueOf != "function")
3931
- return M;
3931
+ return j;
3932
3932
  try {
3933
- return Oe(M, String(o.valueOf()));
3934
- } catch (j) {
3935
- return Oe(M, `[valueOf exception]${j.stack || j.message}`);
3933
+ return Oe(j, String(o.valueOf()));
3934
+ } catch (M) {
3935
+ return Oe(j, `[valueOf exception]${M.stack || M.message}`);
3936
3936
  }
3937
3937
  }
3938
3938
  return Oe(I, o.toString());
@@ -3959,10 +3959,10 @@ class Gi {
3959
3959
  o ? y.push(this.api.get(o)) : l == null || l.forEach((I) => {
3960
3960
  y.push(this.api.get(I));
3961
3961
  }), await Promise.allSettled(y).then(
3962
- (I) => I.forEach(async (M) => {
3963
- let j = 400;
3964
- if (M.status === "fulfilled") {
3965
- const N = M.value;
3962
+ (I) => I.forEach(async (j) => {
3963
+ let M = 400;
3964
+ if (j.status === "fulfilled") {
3965
+ const N = j.value;
3966
3966
  if (this.sm === null)
3967
3967
  return 400;
3968
3968
  if (N.success === !0) {
@@ -3982,7 +3982,7 @@ class Gi {
3982
3982
  N.query.slide,
3983
3983
  N.query.widget
3984
3984
  ), 204;
3985
- Z.hash = te, j = await this.sm.setMessages(N.query, N);
3985
+ Z.hash = te, M = await this.sm.setMessages(N.query, N);
3986
3986
  break;
3987
3987
  case K.CLOUD:
3988
3988
  te = Fn(N.data), Z.hash === te ? (console.debug(
@@ -3993,7 +3993,7 @@ class Gi {
3993
3993
  K.CLOUD,
3994
3994
  N.query.slide,
3995
3995
  N.query.widget
3996
- ), j = 204) : (Z.hash = te, j = await this.sm.setCloud(N.query, N));
3996
+ ), M = 204) : (Z.hash = te, M = await this.sm.setCloud(N.query, N));
3997
3997
  break;
3998
3998
  case K.SERIES:
3999
3999
  te = Fn(N.data), Z.hash === te ? (console.debug(
@@ -4004,7 +4004,7 @@ class Gi {
4004
4004
  K.SERIES,
4005
4005
  N.query.slide,
4006
4006
  N.query.widget
4007
- ), j = 204) : (Z.hash = te, j = await this.sm.setSeries(N.query, N));
4007
+ ), M = 204) : (Z.hash = te, M = await this.sm.setSeries(N.query, N));
4008
4008
  break;
4009
4009
  default:
4010
4010
  console.warn(
@@ -4017,8 +4017,8 @@ class Gi {
4017
4017
  );
4018
4018
  }
4019
4019
  } else
4020
- j = 401;
4021
- switch (j) {
4020
+ M = 401;
4021
+ switch (M) {
4022
4022
  case 201:
4023
4023
  console.info(
4024
4024
  "%capp%c %cbroadcast",
@@ -4040,7 +4040,7 @@ class Gi {
4040
4040
  );
4041
4041
  break;
4042
4042
  }
4043
- return j;
4043
+ return M;
4044
4044
  } else
4045
4045
  return console.warn(
4046
4046
  "%capi%c %cstorage",
@@ -4305,9 +4305,9 @@ class Li {
4305
4305
  */
4306
4306
  P(this, "showModal", (o) => {
4307
4307
  const l = Ii(this.element.attributes);
4308
- if (l.includes("data-topics")) {
4309
- const M = l["data-topics"].split("-");
4310
- l["data-widget"] = M[1], l["data-dashboard"] = M[0];
4308
+ if (Object.prototype.hasOwnProperty.call(l, "data-topics")) {
4309
+ const j = l["data-topics"].split("-");
4310
+ j.length > 1 ? (l["data-widget"] = j[1], l["data-dashboard"] = j[0]) : (l["data-widget"] = j[0], l["data-dashboard"] = this.query.slide);
4311
4311
  }
4312
4312
  const y = { ...o.props, ...l };
4313
4313
  console.debug(
@@ -4329,12 +4329,12 @@ class Li {
4329
4329
  });
4330
4330
  window.dispatchEvent(I);
4331
4331
  });
4332
- var j;
4332
+ var M;
4333
4333
  this.element = o, this.listeners = l, y = typeof y < "u" ? y : "buzzcasting-slide";
4334
4334
  let I;
4335
- I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(y.toUpperCase())) == null ? void 0 : j.id) ?? `${y} not found`, I = nt(I), this.query = I;
4336
- const M = window.BuzzCasting.getOptions();
4337
- this.storageReader = new ji(M), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4335
+ I = { ...o.dataset }, delete I.hmr, I.slide = ((M = o.closest(y.toUpperCase())) == null ? void 0 : M.id) ?? `${y} not found`, I = nt(I), this.query = I;
4336
+ const j = window.BuzzCasting.getOptions();
4337
+ this.storageReader = new ji(j), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4338
4338
  }
4339
4339
  addListener(o) {
4340
4340
  this.listeners.push(o);