buzzcasting-storage 3.2.4 → 3.2.5

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.
@@ -2,7 +2,7 @@ var xa = Object.defineProperty;
2
2
  var Aa = (l, r, o) => r in l ? xa(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o;
3
3
  var k = (l, r, o) => Aa(l, typeof r != "symbol" ? r + "" : r, o);
4
4
  var j = /* @__PURE__ */ ((l) => (l.MESSAGES = "messages", l.CLOUD = "cloud", l.SERIES = "series", l.TOPICS = "topics", l.WIDGET = "widget", l.WIDGETS = "widgets", l.SLIDE = "slide", l))(j || {}), m = /* @__PURE__ */ ((l) => (l.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", l.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", l.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", l.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", l.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", l.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", l.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", l.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", l.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", l.NONE = "color:transparent;background-color:transparent;", l.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", l.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", l.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", l.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", l.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", l.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", l.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", l))(m || {}), re = /* @__PURE__ */ ((l) => (l.ADD_SLIDE = "addSlide", l.APP_READY = "appReady", l.API_UPDATE = "apiUpdate", l.WS_API_REQUEST = "wsApiRequest", l.WS_API_RESPONSE = "wsApiResponse", l.WS_API_UPDATE = "wsApiRUpdate", l.APPROVE_MESSAGE = "approveMessage", l.CHANNEL = "channel", l.CLEAN_MESSAGES = "cleanMessages", l.CLOSE_MODAL = "closeModal", l.CLOSE_BUILDER_MODAL = "closeBuilderModal", l.ERROR = "error", l.HIDE_MESSAGE = "hideMessage", l.HIDE_LABELS = "hideLabels", l.MAUPPUT_UPDATE = "layoutUpdate", l.PAUSE_PRESENTATION = "pausePresentation", l.PRESENTATION_READY = "presentationReady", l.PREV_SLIDE = "prevSlide", l.RELOAD_PRESENTATION = "reloadPresentation", l.SHOW_MODAL = "showModal", l.STAR_MESSAGE = "starMessage", l.GOTO_SLIDE = "gotoSlide", l.NEXT_SLIDE = "nextSlide", l.SHOW_BUILDER_MODAL = "showBuilderModal", l.SLIDE_DID_LOAD = "slideDidLoad", l.SLIDE_GOTO = "slideGoto", l.SLIDE_READY = "slideReady", l.SLIDE_LOAD = "loadSlide", l.SLIDE_STORE = "storeSlide", l.SLIDE_TRANSITIONER = "slideTransitioner", l.START_TRANSITIONER = "startTransitioner", l.STORAGE_INIT = "storageInit", l.SUBSCRIBE = "subscribe", l.SUSPEND_ACCOUNT = "suspendAccount", l.REMOVE_CLOUD = "removeCloud", l.UPDATE = "update", l.VERSION = "version", l.WIDGET_UPDATE = "widgetUpdate", l))(re || {}), Zt = /* @__PURE__ */ ((l) => (l.APPROVED = "approved", l.BEFORE = "before", l.DELAYED = "delayed", l.NONE = "none", l.REALTIME = "realtime", l))(Zt || {}), ye = /* @__PURE__ */ ((l) => (l.KEYVAL = "keyval", l.LOCAL = "local", l.SESSION = "session", l.DEXIE = "dexie", l.WINDOW = "window", l))(ye || {});
5
- const ka = "3.2.3";
5
+ const ka = "3.2.4";
6
6
  class Da {
7
7
  constructor(r) {
8
8
  k(this, "options");
@@ -150,16 +150,16 @@ function Ra() {
150
150
  return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
151
151
  n.__proto__ = a;
152
152
  } || function(n, a) {
153
- for (var i in a) Object.prototype.hasOwnProperty.call(a, i) && (n[i] = a[i]);
153
+ for (var s in a) Object.prototype.hasOwnProperty.call(a, s) && (n[s] = a[s]);
154
154
  })(e, t);
155
155
  }, d = function() {
156
156
  return (d = Object.assign || function(e) {
157
- for (var t, n = 1, a = arguments.length; n < a; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
157
+ for (var t, n = 1, a = arguments.length; n < a; n++) for (var s in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
158
158
  return e;
159
159
  }).apply(this, arguments);
160
160
  };
161
161
  function x(e, t, n) {
162
- for (var a, i = 0, s = t.length; i < s; i++) !a && i in t || ((a = a || Array.prototype.slice.call(t, 0, i))[i] = t[i]);
162
+ for (var a, s = 0, i = t.length; s < i; s++) !a && s in t || ((a = a || Array.prototype.slice.call(t, 0, s))[s] = t[s]);
163
163
  return e.concat(a || Array.prototype.slice.call(t));
164
164
  }
165
165
  var D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Pa, K = Object.keys, U = Array.isArray;
@@ -169,9 +169,9 @@ function Ra() {
169
169
  }), e;
170
170
  }
171
171
  typeof Promise > "u" || D.Promise || (D.Promise = Promise);
172
- var X = Object.getPrototypeOf, se = {}.hasOwnProperty;
172
+ var X = Object.getPrototypeOf, ie = {}.hasOwnProperty;
173
173
  function ee(e, t) {
174
- return se.call(e, t);
174
+ return ie.call(e, t);
175
175
  }
176
176
  function le(e, t) {
177
177
  typeof t == "function" && (t = t(X(e))), (typeof Reflect > "u" ? K : Reflect.ownKeys)(t).forEach(function(n) {
@@ -204,9 +204,9 @@ function Ra() {
204
204
  if (typeof t == "string" && ee(e, t)) return e[t];
205
205
  if (!t) return e;
206
206
  if (typeof t != "string") {
207
- for (var n = [], a = 0, i = t.length; a < i; ++a) {
208
- var s = we(e, t[a]);
209
- n.push(s);
207
+ for (var n = [], a = 0, s = t.length; a < s; ++a) {
208
+ var i = we(e, t[a]);
209
+ n.push(i);
210
210
  }
211
211
  return n;
212
212
  }
@@ -219,10 +219,10 @@ function Ra() {
219
219
  function fe(e, t, n) {
220
220
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e))) if (typeof t != "string" && "length" in t) {
221
221
  at(typeof n != "string" && "length" in n);
222
- for (var a = 0, i = t.length; a < i; ++a) fe(e, t[a], n[a]);
222
+ for (var a = 0, s = t.length; a < s; ++a) fe(e, t[a], n[a]);
223
223
  } else {
224
- var s, u, c = t.indexOf(".");
225
- c !== -1 ? (s = t.substr(0, c), (u = t.substr(c + 1)) === "" ? n === void 0 ? U(e) && !isNaN(parseInt(s)) ? e.splice(s, 1) : delete e[s] : e[s] = n : fe(c = !(c = e[s]) || !ee(e, s) ? e[s] = {} : c, u, n)) : n === void 0 ? U(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
224
+ var i, u, c = t.indexOf(".");
225
+ c !== -1 ? (i = t.substr(0, c), (u = t.substr(c + 1)) === "" ? n === void 0 ? U(e) && !isNaN(parseInt(i)) ? e.splice(i, 1) : delete e[i] : e[i] = n : fe(c = !(c = e[i]) || !ee(e, i) ? e[i] = {} : c, u, n)) : n === void 0 ? U(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
226
226
  }
227
227
  }
228
228
  function Qn(e) {
@@ -242,22 +242,22 @@ function Ra() {
242
242
  return D[e];
243
243
  }), Jn = new Set(Ne.map(function(e) {
244
244
  return D[e];
245
- })), it = null;
245
+ })), st = null;
246
246
  function Te(e) {
247
- return it = /* @__PURE__ */ new WeakMap(), e = function t(n) {
247
+ return st = /* @__PURE__ */ new WeakMap(), e = function t(n) {
248
248
  if (!n || typeof n != "object") return n;
249
- var a = it.get(n);
249
+ var a = st.get(n);
250
250
  if (a) return a;
251
251
  if (U(n)) {
252
- a = [], it.set(n, a);
253
- for (var i = 0, s = n.length; i < s; ++i) a.push(t(n[i]));
252
+ a = [], st.set(n, a);
253
+ for (var s = 0, i = n.length; s < i; ++s) a.push(t(n[s]));
254
254
  } else if (Jn.has(n.constructor)) a = n;
255
255
  else {
256
256
  var u, c = X(n);
257
- for (u in a = c === Object.prototype ? {} : Object.create(c), it.set(n, a), n) ee(n, u) && (a[u] = t(n[u]));
257
+ for (u in a = c === Object.prototype ? {} : Object.create(c), st.set(n, a), n) ee(n, u) && (a[u] = t(n[u]));
258
258
  }
259
259
  return a;
260
- }(e), it = null, e;
260
+ }(e), st = null, e;
261
261
  }
262
262
  var zr = {}.toString;
263
263
  function tn(e) {
@@ -274,12 +274,12 @@ function Ra() {
274
274
  }
275
275
  var Qe = {};
276
276
  function _e(e) {
277
- var t, n, a, i;
277
+ var t, n, a, s;
278
278
  if (arguments.length === 1) {
279
279
  if (U(e)) return e.slice();
280
280
  if (this === Qe && typeof e == "string") return [e];
281
- if (i = Hr(e)) {
282
- for (n = []; !(a = i.next()).done; ) n.push(a.value);
281
+ if (s = Hr(e)) {
282
+ for (n = []; !(a = s.next()).done; ) n.push(a.value);
283
283
  return n;
284
284
  }
285
285
  if (e == null) return [e];
@@ -301,8 +301,8 @@ function Ra() {
301
301
  function Vn(e, t) {
302
302
  return e + ". Errors: " + Object.keys(t).map(function(n) {
303
303
  return t[n].toString();
304
- }).filter(function(n, a, i) {
305
- return i.indexOf(n) === a;
304
+ }).filter(function(n, a, s) {
305
+ return s.indexOf(n) === a;
306
306
  }).join(`
307
307
  `);
308
308
  }
@@ -321,9 +321,9 @@ function Ra() {
321
321
  return e[t] = t + "Error", e;
322
322
  }, {}), Qr = Xe, $ = ge.reduce(function(e, t) {
323
323
  var n = t + "Error";
324
- function a(i, s) {
325
- this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(s ? `
326
- ` + s : ""), this.inner = s || null) : typeof i == "object" && (this.message = "".concat(i.name, " ").concat(i.message), this.inner = i) : (this.message = Yr[t] || n, this.inner = null);
324
+ function a(s, i) {
325
+ this.name = n, s ? typeof s == "string" ? (this.message = "".concat(s).concat(i ? `
326
+ ` + i : ""), this.inner = i || null) : typeof s == "object" && (this.message = "".concat(s.name, " ").concat(s.message), this.inner = s) : (this.message = Yr[t] || n, this.inner = null);
327
327
  }
328
328
  return Ye(a).from(Qr), e[t] = a, e;
329
329
  }, {});
@@ -335,11 +335,11 @@ function Ra() {
335
335
  }, {});
336
336
  function J() {
337
337
  }
338
- function st(e) {
338
+ function it(e) {
339
339
  return e;
340
340
  }
341
341
  function Xr(e, t) {
342
- return e == null || e === st ? t : function(n) {
342
+ return e == null || e === it ? t : function(n) {
343
343
  return t(e(n));
344
344
  };
345
345
  }
@@ -352,10 +352,10 @@ function Ra() {
352
352
  return e === J ? t : function() {
353
353
  var n = e.apply(this, arguments);
354
354
  n !== void 0 && (arguments[0] = n);
355
- var a = this.onsuccess, i = this.onerror;
355
+ var a = this.onsuccess, s = this.onerror;
356
356
  this.onsuccess = null, this.onerror = null;
357
- var s = t.apply(this, arguments);
358
- return a && (this.onsuccess = this.onsuccess ? je(a, this.onsuccess) : a), i && (this.onerror = this.onerror ? je(i, this.onerror) : i), s !== void 0 ? s : n;
357
+ var i = t.apply(this, arguments);
358
+ return a && (this.onsuccess = this.onsuccess ? je(a, this.onsuccess) : a), s && (this.onerror = this.onerror ? je(s, this.onerror) : s), i !== void 0 ? i : n;
359
359
  };
360
360
  }
361
361
  function Vr(e, t) {
@@ -369,8 +369,8 @@ function Ra() {
369
369
  return e === J ? t : function(n) {
370
370
  var a = e.apply(this, arguments);
371
371
  N(n, a);
372
- var i = this.onsuccess, s = this.onerror;
373
- return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? je(i, this.onsuccess) : i), s && (this.onerror = this.onerror ? je(s, this.onerror) : s), a === void 0 ? n === void 0 ? void 0 : n : N(a, n);
372
+ var s = this.onsuccess, i = this.onerror;
373
+ return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), s && (this.onsuccess = this.onsuccess ? je(s, this.onsuccess) : s), i && (this.onerror = this.onerror ? je(i, this.onerror) : i), a === void 0 ? n === void 0 ? void 0 : n : N(a, n);
374
374
  };
375
375
  }
376
376
  function qr(e, t) {
@@ -382,9 +382,9 @@ function Ra() {
382
382
  return e === J ? t : function() {
383
383
  var n = e.apply(this, arguments);
384
384
  if (n && typeof n.then == "function") {
385
- for (var a = this, i = arguments.length, s = new Array(i); i--; ) s[i] = arguments[i];
385
+ for (var a = this, s = arguments.length, i = new Array(s); s--; ) i[s] = arguments[s];
386
386
  return n.then(function() {
387
- return t.apply(a, s);
387
+ return t.apply(a, i);
388
388
  });
389
389
  }
390
390
  return t.apply(this, arguments);
@@ -402,7 +402,7 @@ function Ra() {
402
402
  return [t, X(t), e];
403
403
  }(), ut = Ne[0], ge = Ne[1], Ne = Ne[2], ge = ge && ge.then, Ke = ut && ut.constructor, on = !!Ne, ct = function(e, t) {
404
404
  lt.push([e, t]), xt && (queueMicrotask(ta), xt = !1);
405
- }, un = !0, xt = !0, Be = [], At = [], cn = st, Ae = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: J, pgp: !1, env: {}, finalize: J }, G = Ae, lt = [], Le = 0, kt = [];
405
+ }, un = !0, xt = !0, Be = [], At = [], cn = it, Ae = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: J, pgp: !1, env: {}, finalize: J }, G = Ae, lt = [], Le = 0, kt = [];
406
406
  function B(e) {
407
407
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
408
408
  this._listeners = [], this._lib = !1;
@@ -411,27 +411,27 @@ function Ra() {
411
411
  if (e !== ot) throw new TypeError("Not a function");
412
412
  return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && dn(this, this._value));
413
413
  }
414
- this._state = null, this._value = null, ++t.ref, function n(a, i) {
414
+ this._state = null, this._value = null, ++t.ref, function n(a, s) {
415
415
  try {
416
- i(function(s) {
416
+ s(function(i) {
417
417
  if (a._state === null) {
418
- if (s === a) throw new TypeError("A promise cannot be resolved with itself.");
418
+ if (i === a) throw new TypeError("A promise cannot be resolved with itself.");
419
419
  var u = a._lib && Ve();
420
- s && typeof s.then == "function" ? n(a, function(c, h) {
421
- s instanceof B ? s._then(c, h) : s.then(c, h);
422
- }) : (a._state = !0, a._value = s, nr(a)), u && Ze();
420
+ i && typeof i.then == "function" ? n(a, function(c, h) {
421
+ i instanceof B ? i._then(c, h) : i.then(c, h);
422
+ }) : (a._state = !0, a._value = i, nr(a)), u && Ze();
423
423
  }
424
424
  }, dn.bind(null, a));
425
- } catch (s) {
426
- dn(a, s);
425
+ } catch (i) {
426
+ dn(a, i);
427
427
  }
428
428
  }(this, e);
429
429
  }
430
430
  var ln = { get: function() {
431
431
  var e = G, t = Ct;
432
- function n(a, i) {
433
- var s = this, u = !e.global && (e !== G || t !== Ct), c = u && !De(), h = new B(function(g, v) {
434
- fn(s, new tr(ar(a, e, u, c), ar(i, e, u, c), g, v, e));
432
+ function n(a, s) {
433
+ var i = this, u = !e.global && (e !== G || t !== Ct), c = u && !De(), h = new B(function(g, v) {
434
+ fn(i, new tr(ar(a, e, u, c), ar(s, e, u, c), g, v, e));
435
435
  });
436
436
  return this._consoleTask && (h._consoleTask = this._consoleTask), h;
437
437
  }
@@ -441,21 +441,21 @@ function Ra() {
441
441
  return e;
442
442
  }, set: ln.set });
443
443
  } };
444
- function tr(e, t, n, a, i) {
445
- this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.resolve = n, this.reject = a, this.psd = i;
444
+ function tr(e, t, n, a, s) {
445
+ this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.resolve = n, this.reject = a, this.psd = s;
446
446
  }
447
447
  function dn(e, t) {
448
448
  var n, a;
449
- At.push(t), e._state === null && (n = e._lib && Ve(), t = cn(t), e._state = !1, e._value = t, a = e, Be.some(function(i) {
450
- return i._value === a._value;
449
+ At.push(t), e._state === null && (n = e._lib && Ve(), t = cn(t), e._state = !1, e._value = t, a = e, Be.some(function(s) {
450
+ return s._value === a._value;
451
451
  }) || Be.push(a), nr(e), n && Ze());
452
452
  }
453
453
  function nr(e) {
454
454
  var t = e._listeners;
455
455
  e._listeners = [];
456
456
  for (var n = 0, a = t.length; n < a; ++n) fn(e, t[n]);
457
- var i = e._PSD;
458
- --i.ref || i.finalize(), Le === 0 && (++Le, ct(function() {
457
+ var s = e._PSD;
458
+ --s.ref || s.finalize(), Le === 0 && (++Le, ct(function() {
459
459
  --Le == 0 && hn();
460
460
  }, []));
461
461
  }
@@ -468,14 +468,14 @@ function Ra() {
468
468
  }
469
469
  function ea(e, t, n) {
470
470
  try {
471
- var a, i = t._value;
471
+ var a, s = t._value;
472
472
  !t._state && At.length && (At = []), a = me && t._consoleTask ? t._consoleTask.run(function() {
473
- return e(i);
474
- }) : e(i), t._state || At.indexOf(i) !== -1 || function(s) {
475
- for (var u = Be.length; u; ) if (Be[--u]._value === s._value) return Be.splice(u, 1);
473
+ return e(s);
474
+ }) : e(s), t._state || At.indexOf(s) !== -1 || function(i) {
475
+ for (var u = Be.length; u; ) if (Be[--u]._value === i._value) return Be.splice(u, 1);
476
476
  }(t), n.resolve(a);
477
- } catch (s) {
478
- n.reject(s);
477
+ } catch (i) {
478
+ n.reject(i);
479
479
  } finally {
480
480
  --Le == 0 && hn(), --n.psd.ref || n.psd.finalize();
481
481
  }
@@ -512,13 +512,13 @@ function Ra() {
512
512
  function q(e, t) {
513
513
  var n = G;
514
514
  return function() {
515
- var a = Ve(), i = G;
515
+ var a = Ve(), s = G;
516
516
  try {
517
517
  return Pe(n, !0), e.apply(this, arguments);
518
- } catch (s) {
519
- t && t(s);
518
+ } catch (i) {
519
+ t && t(i);
520
520
  } finally {
521
- Pe(i, !1), a && Ze();
521
+ Pe(s, !1), a && Ze();
522
522
  }
523
523
  };
524
524
  }
@@ -544,20 +544,20 @@ function Ra() {
544
544
  });
545
545
  }, timeout: function(e, t) {
546
546
  var n = this;
547
- return e < 1 / 0 ? new B(function(a, i) {
548
- var s = setTimeout(function() {
549
- return i(new $.Timeout(t));
547
+ return e < 1 / 0 ? new B(function(a, s) {
548
+ var i = setTimeout(function() {
549
+ return s(new $.Timeout(t));
550
550
  }, e);
551
- n.then(a, i).finally(clearTimeout.bind(null, s));
551
+ n.then(a, s).finally(clearTimeout.bind(null, i));
552
552
  }) : this;
553
553
  } }), typeof Symbol < "u" && Symbol.toStringTag && xe(B.prototype, Symbol.toStringTag, "Dexie.Promise"), Ae.env = rr(), le(B, { all: function() {
554
554
  var e = _e.apply(null, arguments).map(Rt);
555
555
  return new B(function(t, n) {
556
556
  e.length === 0 && t([]);
557
557
  var a = e.length;
558
- e.forEach(function(i, s) {
559
- return B.resolve(i).then(function(u) {
560
- e[s] = u, --a || t(e);
558
+ e.forEach(function(s, i) {
559
+ return B.resolve(s).then(function(u) {
560
+ e[i] = u, --a || t(e);
561
561
  }, n);
562
562
  });
563
563
  });
@@ -588,12 +588,12 @@ function Ra() {
588
588
  cn = e;
589
589
  } }, follow: function(e, t) {
590
590
  return new B(function(n, a) {
591
- return ke(function(i, s) {
591
+ return ke(function(s, i) {
592
592
  var u = G;
593
- u.unhandleds = [], u.onunhandled = s, u.finalize = je(function() {
593
+ u.unhandleds = [], u.onunhandled = i, u.finalize = je(function() {
594
594
  var c, h = this;
595
595
  c = function() {
596
- h.unhandleds.length === 0 ? i() : s(h.unhandleds[0]);
596
+ h.unhandleds.length === 0 ? s() : i(h.unhandleds[0]);
597
597
  }, kt.push(function g() {
598
598
  c(), kt.splice(kt.indexOf(g), 1);
599
599
  }), ++Le, ct(function() {
@@ -607,11 +607,11 @@ function Ra() {
607
607
  return new B(function(t) {
608
608
  e.length === 0 && t([]);
609
609
  var n = e.length, a = new Array(n);
610
- e.forEach(function(i, s) {
611
- return B.resolve(i).then(function(u) {
612
- return a[s] = { status: "fulfilled", value: u };
610
+ e.forEach(function(s, i) {
611
+ return B.resolve(s).then(function(u) {
612
+ return a[i] = { status: "fulfilled", value: u };
613
613
  }, function(u) {
614
- return a[s] = { status: "rejected", reason: u };
614
+ return a[i] = { status: "rejected", reason: u };
615
615
  }).then(function() {
616
616
  return --n || t(a);
617
617
  });
@@ -621,22 +621,22 @@ function Ra() {
621
621
  var e = _e.apply(null, arguments).map(Rt);
622
622
  return new B(function(t, n) {
623
623
  e.length === 0 && n(new AggregateError([]));
624
- var a = e.length, i = new Array(a);
625
- e.forEach(function(s, u) {
626
- return B.resolve(s).then(function(c) {
624
+ var a = e.length, s = new Array(a);
625
+ e.forEach(function(i, u) {
626
+ return B.resolve(i).then(function(c) {
627
627
  return t(c);
628
628
  }, function(c) {
629
- i[u] = c, --a || n(new AggregateError(i));
629
+ s[u] = c, --a || n(new AggregateError(s));
630
630
  });
631
631
  });
632
632
  });
633
633
  }), Ke.withResolvers && (B.withResolvers = Ke.withResolvers));
634
634
  var ae = { awaits: 0, echoes: 0, id: 0 }, na = 0, Pt = [], It = 0, Ct = 0, ra = 0;
635
635
  function ke(e, t, n, a) {
636
- var i = G, s = Object.create(i);
637
- return s.parent = i, s.ref = 0, s.global = !1, s.id = ++ra, Ae.env, s.env = on ? { Promise: B, PromiseProp: { value: B, configurable: !0, writable: !0 }, all: B.all, race: B.race, allSettled: B.allSettled, any: B.any, resolve: B.resolve, reject: B.reject } : {}, t && N(s, t), ++i.ref, s.finalize = function() {
636
+ var s = G, i = Object.create(s);
637
+ return i.parent = s, i.ref = 0, i.global = !1, i.id = ++ra, Ae.env, i.env = on ? { Promise: B, PromiseProp: { value: B, configurable: !0, writable: !0 }, all: B.all, race: B.race, allSettled: B.allSettled, any: B.any, resolve: B.resolve, reject: B.reject } : {}, t && N(i, t), ++s.ref, i.finalize = function() {
638
638
  --this.parent.ref || this.parent.finalize();
639
- }, a = Ge(s, e, n, a), s.ref === 0 && s.finalize(), a;
639
+ }, a = Ge(i, e, n, a), i.ref === 0 && i.finalize(), a;
640
640
  }
641
641
  function qe() {
642
642
  return ae.id || (ae.id = ++na), ++ae.awaits, ae.echoes += er, ae.id;
@@ -657,30 +657,30 @@ function Ra() {
657
657
  }
658
658
  function Pe(e, t) {
659
659
  var n, a = G;
660
- (t ? !ae.echoes || It++ && e === G : !It || --It && e === G) || queueMicrotask(t ? (function(i) {
661
- ++Ct, ae.echoes && --ae.echoes != 0 || (ae.echoes = ae.awaits = ae.id = 0), Pt.push(G), Pe(i, !0);
660
+ (t ? !ae.echoes || It++ && e === G : !It || --It && e === G) || queueMicrotask(t ? (function(s) {
661
+ ++Ct, ae.echoes && --ae.echoes != 0 || (ae.echoes = ae.awaits = ae.id = 0), Pt.push(G), Pe(s, !0);
662
662
  }).bind(null, e) : aa), e !== G && (G = e, a === Ae && (Ae.env = rr()), on && (n = Ae.env.Promise, t = e.env, (a.global || e.global) && (Object.defineProperty(D, "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))));
663
663
  }
664
664
  function rr() {
665
665
  var e = D.Promise;
666
666
  return on ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(D, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
667
667
  }
668
- function Ge(e, t, n, a, i) {
669
- var s = G;
668
+ function Ge(e, t, n, a, s) {
669
+ var i = G;
670
670
  try {
671
- return Pe(e, !0), t(n, a, i);
671
+ return Pe(e, !0), t(n, a, s);
672
672
  } finally {
673
- Pe(s, !1);
673
+ Pe(i, !1);
674
674
  }
675
675
  }
676
676
  function ar(e, t, n, a) {
677
677
  return typeof e != "function" ? e : function() {
678
- var i = G;
678
+ var s = G;
679
679
  n && qe(), Pe(t, !0);
680
680
  try {
681
681
  return e.apply(this, arguments);
682
682
  } finally {
683
- Pe(i, !1), a && queueMicrotask(De);
683
+ Pe(s, !1), a && queueMicrotask(De);
684
684
  }
685
685
  };
686
686
  }
@@ -688,13 +688,13 @@ function Ra() {
688
688
  Promise === Ke && ae.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
689
689
  }
690
690
  ("" + ge).indexOf("[native code]") === -1 && (qe = De = J);
691
- var te = B.reject, $e = "￿", Se = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ir = "String expected.", et = [], Tt = "__dbnames", gn = "readonly", yn = "readwrite";
691
+ var te = B.reject, $e = "￿", Se = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", sr = "String expected.", et = [], Tt = "__dbnames", gn = "readonly", yn = "readwrite";
692
692
  function Ue(e, t) {
693
693
  return e ? t ? function() {
694
694
  return e.apply(this, arguments) && t.apply(this, arguments);
695
695
  } : e : t;
696
696
  }
697
- var sr = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
697
+ var ir = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
698
698
  function Mt(e) {
699
699
  return typeof e != "string" || /\./.test(e) ? function(t) {
700
700
  return t;
@@ -715,14 +715,14 @@ function Ra() {
715
715
  case "string":
716
716
  return t < e ? 1 : e < t ? -1 : 0;
717
717
  case "binary":
718
- return function(i, s) {
719
- for (var u = i.length, c = s.length, h = u < c ? u : c, g = 0; g < h; ++g) if (i[g] !== s[g]) return i[g] < s[g] ? -1 : 1;
718
+ return function(s, i) {
719
+ for (var u = s.length, c = i.length, h = u < c ? u : c, g = 0; g < h; ++g) if (s[g] !== i[g]) return s[g] < i[g] ? -1 : 1;
720
720
  return u === c ? 0 : u < c ? -1 : 1;
721
721
  }(cr(e), cr(t));
722
722
  case "Array":
723
- return function(i, s) {
724
- for (var u = i.length, c = s.length, h = u < c ? u : c, g = 0; g < h; ++g) {
725
- var v = Y(i[g], s[g]);
723
+ return function(s, i) {
724
+ for (var u = s.length, c = i.length, h = u < c ? u : c, g = 0; g < h; ++g) {
725
+ var v = Y(s[g], i[g]);
726
726
  if (v !== 0) return v;
727
727
  }
728
728
  return u === c ? 0 : u < c ? -1 : 1;
@@ -740,9 +740,9 @@ function Ra() {
740
740
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
741
741
  }
742
742
  var lr = (Z.prototype._trans = function(e, t, n) {
743
- var a = this._tx || G.trans, i = this.name, s = me && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
743
+ var a = this._tx || G.trans, s = this.name, i = me && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
744
744
  function u(g, v, f) {
745
- if (!f.schema[i]) throw new $.NotFound("Table " + i + " not part of transaction");
745
+ if (!f.schema[s]) throw new $.NotFound("Table " + s + " not part of transaction");
746
746
  return t(f.idbtrans, f);
747
747
  }
748
748
  var c = Ve();
@@ -782,7 +782,7 @@ function Ra() {
782
782
  return g(v, f, _, p);
783
783
  });
784
784
  }(this.db, e, [this.name], u);
785
- return s && (h._consoleTask = s, h = h.catch(function(g) {
785
+ return i && (h._consoleTask = i, h = h.catch(function(g) {
786
786
  return console.trace(g), te(g);
787
787
  })), h;
788
788
  } finally {
@@ -791,8 +791,8 @@ function Ra() {
791
791
  }, Z.prototype.get = function(e, t) {
792
792
  var n = this;
793
793
  return e && e.constructor === Object ? this.where(e).first(t) : e == null ? te(new $.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(a) {
794
- return n.core.get({ trans: a, key: e }).then(function(i) {
795
- return n.hook.reading.fire(i);
794
+ return n.core.get({ trans: a, key: e }).then(function(s) {
795
+ return n.hook.reading.fire(s);
796
796
  });
797
797
  }).then(t);
798
798
  }, Z.prototype.where = function(e) {
@@ -812,27 +812,27 @@ function Ra() {
812
812
  return c.keyPath.length - h.keyPath.length;
813
813
  })[0];
814
814
  if (n && this.db._maxKey !== $e) {
815
- var s = n.keyPath.slice(0, t.length);
816
- return this.where(s).equals(s.map(function(h) {
815
+ var i = n.keyPath.slice(0, t.length);
816
+ return this.where(i).equals(i.map(function(h) {
817
817
  return e[h];
818
818
  }));
819
819
  }
820
820
  !n && me && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
821
821
  var a = this.schema.idxByName;
822
- function i(c, h) {
822
+ function s(c, h) {
823
823
  return Y(c, h) === 0;
824
824
  }
825
825
  var u = t.reduce(function(f, h) {
826
826
  var g = f[0], v = f[1], f = a[h], _ = e[h];
827
827
  return [g || f, g || !f ? Ue(v, f && f.multi ? function(p) {
828
828
  return p = we(p, h), U(p) && p.some(function(b) {
829
- return i(_, b);
829
+ return s(_, b);
830
830
  });
831
831
  } : function(p) {
832
- return i(_, we(p, h));
832
+ return s(_, we(p, h));
833
833
  }) : v];
834
- }, [null, null]), s = u[0], u = u[1];
835
- return s ? this.where(s.name).equals(e[s.keyPath]).filter(u) : n ? this.filter(u) : this.where(t).equals("");
834
+ }, [null, null]), i = u[0], u = u[1];
835
+ return i ? this.where(i.name).equals(e[i.keyPath]).filter(u) : n ? this.filter(u) : this.where(t).equals("");
836
836
  }, Z.prototype.filter = function(e) {
837
837
  return this.toCollection().and(e);
838
838
  }, Z.prototype.count = function(e) {
@@ -853,7 +853,7 @@ function Ra() {
853
853
  return this.toCollection().reverse();
854
854
  }, Z.prototype.mapToClass = function(e) {
855
855
  var t, n = this.db, a = this.name;
856
- function i() {
856
+ function s() {
857
857
  return t !== null && t.apply(this, arguments) || this;
858
858
  }
859
859
  (this.schema.mappedClass = e).prototype instanceof or && (function(h, g) {
@@ -862,18 +862,18 @@ function Ra() {
862
862
  this.constructor = h;
863
863
  }
864
864
  o(h, g), h.prototype = g === null ? Object.create(g) : (v.prototype = g.prototype, new v());
865
- }(i, t = e), Object.defineProperty(i.prototype, "db", { get: function() {
865
+ }(s, t = e), Object.defineProperty(s.prototype, "db", { get: function() {
866
866
  return n;
867
- }, enumerable: !1, configurable: !0 }), i.prototype.table = function() {
867
+ }, enumerable: !1, configurable: !0 }), s.prototype.table = function() {
868
868
  return a;
869
- }, e = i);
870
- for (var s = /* @__PURE__ */ new Set(), u = e.prototype; u; u = X(u)) Object.getOwnPropertyNames(u).forEach(function(h) {
871
- return s.add(h);
869
+ }, e = s);
870
+ for (var i = /* @__PURE__ */ new Set(), u = e.prototype; u; u = X(u)) Object.getOwnPropertyNames(u).forEach(function(h) {
871
+ return i.add(h);
872
872
  });
873
873
  function c(h) {
874
874
  if (!h) return h;
875
875
  var g, v = Object.create(e.prototype);
876
- for (g in h) if (!s.has(g)) try {
876
+ for (g in h) if (!i.has(g)) try {
877
877
  v[g] = h[g];
878
878
  } catch {
879
879
  }
@@ -885,14 +885,14 @@ function Ra() {
885
885
  N(this, e);
886
886
  });
887
887
  }, Z.prototype.add = function(e, t) {
888
- var n = this, a = this.schema.primKey, i = a.auto, s = a.keyPath, u = e;
889
- return s && i && (u = Mt(s)(e)), this._trans("readwrite", function(c) {
888
+ var n = this, a = this.schema.primKey, s = a.auto, i = a.keyPath, u = e;
889
+ return i && s && (u = Mt(i)(e)), this._trans("readwrite", function(c) {
890
890
  return n.core.mutate({ trans: c, type: "add", keys: t != null ? [t] : null, values: [u] });
891
891
  }).then(function(c) {
892
892
  return c.numFailures ? B.reject(c.failures[0]) : c.lastResult;
893
893
  }).then(function(c) {
894
- if (s) try {
895
- fe(e, s, c);
894
+ if (i) try {
895
+ fe(e, i, c);
896
896
  } catch {
897
897
  }
898
898
  return c;
@@ -900,14 +900,14 @@ function Ra() {
900
900
  }, Z.prototype.update = function(e, t) {
901
901
  return typeof e != "object" || U(e) ? this.where(":id").equals(e).modify(t) : (e = we(e, this.schema.primKey.keyPath), e === void 0 ? te(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
902
902
  }, Z.prototype.put = function(e, t) {
903
- var n = this, a = this.schema.primKey, i = a.auto, s = a.keyPath, u = e;
904
- return s && i && (u = Mt(s)(e)), this._trans("readwrite", function(c) {
903
+ var n = this, a = this.schema.primKey, s = a.auto, i = a.keyPath, u = e;
904
+ return i && s && (u = Mt(i)(e)), this._trans("readwrite", function(c) {
905
905
  return n.core.mutate({ trans: c, type: "put", values: [u], keys: t != null ? [t] : null });
906
906
  }).then(function(c) {
907
907
  return c.numFailures ? B.reject(c.failures[0]) : c.lastResult;
908
908
  }).then(function(c) {
909
- if (s) try {
910
- fe(e, s, c);
909
+ if (i) try {
910
+ fe(e, i, c);
911
911
  } catch {
912
912
  }
913
913
  return c;
@@ -922,7 +922,7 @@ function Ra() {
922
922
  }, Z.prototype.clear = function() {
923
923
  var e = this;
924
924
  return this._trans("readwrite", function(t) {
925
- return e.core.mutate({ trans: t, type: "deleteRange", range: sr });
925
+ return e.core.mutate({ trans: t, type: "deleteRange", range: ir });
926
926
  }).then(function(t) {
927
927
  return t.numFailures ? B.reject(t.failures[0]) : void 0;
928
928
  });
@@ -930,43 +930,43 @@ function Ra() {
930
930
  var t = this;
931
931
  return this._trans("readonly", function(n) {
932
932
  return t.core.getMany({ keys: e, trans: n }).then(function(a) {
933
- return a.map(function(i) {
934
- return t.hook.reading.fire(i);
933
+ return a.map(function(s) {
934
+ return t.hook.reading.fire(s);
935
935
  });
936
936
  });
937
937
  });
938
938
  }, Z.prototype.bulkAdd = function(e, t, n) {
939
- var a = this, i = Array.isArray(t) ? t : void 0, s = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
939
+ var a = this, s = Array.isArray(t) ? t : void 0, i = (n = n || (s ? void 0 : t)) ? n.allKeys : void 0;
940
940
  return this._trans("readwrite", function(u) {
941
941
  var g = a.schema.primKey, c = g.auto, g = g.keyPath;
942
- if (g && i) throw new $.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
943
- if (i && i.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
942
+ if (g && s) throw new $.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
943
+ if (s && s.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
944
944
  var h = e.length, g = g && c ? e.map(Mt(g)) : e;
945
- return a.core.mutate({ trans: u, type: "add", keys: i, values: g, wantResults: s }).then(function(b) {
945
+ return a.core.mutate({ trans: u, type: "add", keys: s, values: g, wantResults: i }).then(function(b) {
946
946
  var f = b.numFailures, _ = b.results, p = b.lastResult, b = b.failures;
947
- if (f === 0) return s ? _ : p;
947
+ if (f === 0) return i ? _ : p;
948
948
  throw new Je("".concat(a.name, ".bulkAdd(): ").concat(f, " of ").concat(h, " operations failed"), b);
949
949
  });
950
950
  });
951
951
  }, Z.prototype.bulkPut = function(e, t, n) {
952
- var a = this, i = Array.isArray(t) ? t : void 0, s = (n = n || (i ? void 0 : t)) ? n.allKeys : void 0;
952
+ var a = this, s = Array.isArray(t) ? t : void 0, i = (n = n || (s ? void 0 : t)) ? n.allKeys : void 0;
953
953
  return this._trans("readwrite", function(u) {
954
954
  var g = a.schema.primKey, c = g.auto, g = g.keyPath;
955
- if (g && i) throw new $.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
956
- if (i && i.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
955
+ if (g && s) throw new $.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
956
+ if (s && s.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
957
957
  var h = e.length, g = g && c ? e.map(Mt(g)) : e;
958
- return a.core.mutate({ trans: u, type: "put", keys: i, values: g, wantResults: s }).then(function(b) {
958
+ return a.core.mutate({ trans: u, type: "put", keys: s, values: g, wantResults: i }).then(function(b) {
959
959
  var f = b.numFailures, _ = b.results, p = b.lastResult, b = b.failures;
960
- if (f === 0) return s ? _ : p;
960
+ if (f === 0) return i ? _ : p;
961
961
  throw new Je("".concat(a.name, ".bulkPut(): ").concat(f, " of ").concat(h, " operations failed"), b);
962
962
  });
963
963
  });
964
964
  }, Z.prototype.bulkUpdate = function(e) {
965
965
  var t = this, n = this.core, a = e.map(function(u) {
966
966
  return u.key;
967
- }), i = e.map(function(u) {
967
+ }), s = e.map(function(u) {
968
968
  return u.changes;
969
- }), s = [];
969
+ }), i = [];
970
970
  return this._trans("readwrite", function(u) {
971
971
  return n.getMany({ trans: u, keys: a, cache: "clone" }).then(function(c) {
972
972
  var h = [], g = [];
@@ -979,15 +979,15 @@ function Ra() {
979
979
  if (Y(O, p) !== 0) throw new $.Constraint("Cannot update primary key in bulkUpdate()");
980
980
  } else fe(w, E, O);
981
981
  }
982
- s.push(_), h.push(p), g.push(w);
982
+ i.push(_), h.push(p), g.push(w);
983
983
  }
984
984
  });
985
985
  var v = h.length;
986
- return n.mutate({ trans: u, type: "put", keys: h, values: g, updates: { keys: a, changeSpecs: i } }).then(function(f) {
986
+ return n.mutate({ trans: u, type: "put", keys: h, values: g, updates: { keys: a, changeSpecs: s } }).then(function(f) {
987
987
  var _ = f.numFailures, p = f.failures;
988
988
  if (_ === 0) return v;
989
989
  for (var b = 0, w = Object.keys(p); b < w.length; b++) {
990
- var y, S = w[b], E = s[Number(S)];
990
+ var y, S = w[b], E = i[Number(S)];
991
991
  E != null && (y = p[S], delete p[S], p[E] = y);
992
992
  }
993
993
  throw new Je("".concat(t.name, ".bulkUpdate(): ").concat(_, " of ").concat(v, " operations failed"), p);
@@ -999,9 +999,9 @@ function Ra() {
999
999
  return this._trans("readwrite", function(a) {
1000
1000
  return t.core.mutate({ trans: a, type: "delete", keys: e });
1001
1001
  }).then(function(u) {
1002
- var i = u.numFailures, s = u.lastResult, u = u.failures;
1003
- if (i === 0) return s;
1004
- throw new Je("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), u);
1002
+ var s = u.numFailures, i = u.lastResult, u = u.failures;
1003
+ if (s === 0) return i;
1004
+ throw new Je("".concat(t.name, ".bulkDelete(): ").concat(s, " of ").concat(n, " operations failed"), u);
1005
1005
  });
1006
1006
  }, Z);
1007
1007
  function Z() {
@@ -1015,10 +1015,10 @@ function Ra() {
1015
1015
  if (typeof u == "string") return n[u];
1016
1016
  }
1017
1017
  var n = {};
1018
- t.addEventType = s;
1019
- for (var a = 1, i = arguments.length; a < i; ++a) s(arguments[a]);
1018
+ t.addEventType = i;
1019
+ for (var a = 1, s = arguments.length; a < s; ++a) i(arguments[a]);
1020
1020
  return t;
1021
- function s(u, c, h) {
1021
+ function i(u, c, h) {
1022
1022
  if (typeof u != "object") {
1023
1023
  var g;
1024
1024
  c = c || qr;
@@ -1033,10 +1033,10 @@ function Ra() {
1033
1033
  }
1034
1034
  K(g = u).forEach(function(f) {
1035
1035
  var _ = g[f];
1036
- if (U(_)) s(f, g[f][0], g[f][1]);
1036
+ if (U(_)) i(f, g[f][0], g[f][1]);
1037
1037
  else {
1038
1038
  if (_ !== "asap") throw new $.InvalidArgument("Invalid event config");
1039
- var p = s(f, st, function() {
1039
+ var p = i(f, it, function() {
1040
1040
  for (var b = arguments.length, w = new Array(b); b--; ) w[b] = arguments[b];
1041
1041
  p.subscribers.forEach(function(y) {
1042
1042
  Yn(function() {
@@ -1074,36 +1074,36 @@ function Ra() {
1074
1074
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: a, range: e.range } });
1075
1075
  }
1076
1076
  function Nt(e, t, n, a) {
1077
- var i = e.replayFilter ? Ue(e.filter, e.replayFilter()) : e.filter;
1077
+ var s = e.replayFilter ? Ue(e.filter, e.replayFilter()) : e.filter;
1078
1078
  if (e.or) {
1079
- var s = {}, u = function(c, h, g) {
1079
+ var i = {}, u = function(c, h, g) {
1080
1080
  var v, f;
1081
- i && !i(h, g, function(_) {
1081
+ s && !s(h, g, function(_) {
1082
1082
  return h.stop(_);
1083
1083
  }, function(_) {
1084
1084
  return h.fail(_);
1085
- }) || ((f = "" + (v = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(v)), ee(s, f) || (s[f] = !0, t(c, h, g)));
1085
+ }) || ((f = "" + (v = h.primaryKey)) == "[object ArrayBuffer]" && (f = "" + new Uint8Array(v)), ee(i, f) || (i[f] = !0, t(c, h, g)));
1086
1086
  };
1087
1087
  return Promise.all([e.or._iterate(u, n), fr(dr(e, a, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
1088
1088
  }
1089
- return fr(dr(e, a, n), Ue(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
1089
+ return fr(dr(e, a, n), Ue(e.algorithm, s), t, !e.keysOnly && e.valueMapper);
1090
1090
  }
1091
1091
  function fr(e, t, n, a) {
1092
- var i = q(a ? function(s, u, c) {
1093
- return n(a(s), u, c);
1092
+ var s = q(a ? function(i, u, c) {
1093
+ return n(a(i), u, c);
1094
1094
  } : n);
1095
- return e.then(function(s) {
1096
- if (s) return s.start(function() {
1095
+ return e.then(function(i) {
1096
+ if (i) return i.start(function() {
1097
1097
  var u = function() {
1098
- return s.continue();
1098
+ return i.continue();
1099
1099
  };
1100
- t && !t(s, function(c) {
1100
+ t && !t(i, function(c) {
1101
1101
  return u = c;
1102
1102
  }, function(c) {
1103
- s.stop(c), u = J;
1103
+ i.stop(c), u = J;
1104
1104
  }, function(c) {
1105
- s.fail(c), u = J;
1106
- }) || i(s.value, s, function(c) {
1105
+ i.fail(c), u = J;
1106
+ }) || s(i.value, i, function(c) {
1107
1107
  return u = c;
1108
1108
  }), u();
1109
1109
  });
@@ -1124,8 +1124,8 @@ function Ra() {
1124
1124
  }
1125
1125
  if (t.remove !== void 0) {
1126
1126
  var a = t.remove;
1127
- if (U(a)) return U(e) ? e.filter(function(i) {
1128
- return !a.includes(i);
1127
+ if (U(a)) return U(e) ? e.filter(function(s) {
1128
+ return !a.includes(s);
1129
1129
  }).sort() : [];
1130
1130
  if (typeof a == "number") return Number(e) - a;
1131
1131
  if (typeof a == "bigint") try {
@@ -1140,7 +1140,7 @@ function Ra() {
1140
1140
  function hr(e) {
1141
1141
  this["@@propmod"] = e;
1142
1142
  }
1143
- var ia = (Q.prototype._read = function(e, t) {
1143
+ var sa = (Q.prototype._read = function(e, t) {
1144
1144
  var n = this._ctx;
1145
1145
  return n.error ? n.table._trans(null, te.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
1146
1146
  }, Q.prototype._write = function(e) {
@@ -1164,25 +1164,25 @@ function Ra() {
1164
1164
  }, Q.prototype.count = function(e) {
1165
1165
  var t = this;
1166
1166
  return this._read(function(n) {
1167
- var a = t._ctx, i = a.table.core;
1168
- if (tt(a, !0)) return i.count({ trans: n, query: { index: jt(a, i.schema), range: a.range } }).then(function(u) {
1167
+ var a = t._ctx, s = a.table.core;
1168
+ if (tt(a, !0)) return s.count({ trans: n, query: { index: jt(a, s.schema), range: a.range } }).then(function(u) {
1169
1169
  return Math.min(u, a.limit);
1170
1170
  });
1171
- var s = 0;
1171
+ var i = 0;
1172
1172
  return Nt(a, function() {
1173
- return ++s, !1;
1174
- }, n, i).then(function() {
1175
- return s;
1173
+ return ++i, !1;
1174
+ }, n, s).then(function() {
1175
+ return i;
1176
1176
  });
1177
1177
  }).then(e);
1178
1178
  }, Q.prototype.sortBy = function(e, t) {
1179
- var n = e.split(".").reverse(), a = n[0], i = n.length - 1;
1180
- function s(h, g) {
1181
- return g ? s(h[n[g]], g - 1) : h[a];
1179
+ var n = e.split(".").reverse(), a = n[0], s = n.length - 1;
1180
+ function i(h, g) {
1181
+ return g ? i(h[n[g]], g - 1) : h[a];
1182
1182
  }
1183
1183
  var u = this._ctx.dir === "next" ? 1 : -1;
1184
1184
  function c(h, g) {
1185
- return Y(s(h, i), s(g, i)) * u;
1185
+ return Y(i(h, s), i(g, s)) * u;
1186
1186
  }
1187
1187
  return this.toArray(function(h) {
1188
1188
  return h.sort(c);
@@ -1192,9 +1192,9 @@ function Ra() {
1192
1192
  return this._read(function(n) {
1193
1193
  var a = t._ctx;
1194
1194
  if (a.dir === "next" && tt(a, !0) && 0 < a.limit) {
1195
- var i = a.valueMapper, s = jt(a, a.table.core.schema);
1196
- return a.table.core.query({ trans: n, limit: a.limit, values: !0, query: { index: s, range: a.range } }).then(function(c) {
1197
- return c = c.result, i ? c.map(i) : c;
1195
+ var s = a.valueMapper, i = jt(a, a.table.core.schema);
1196
+ return a.table.core.query({ trans: n, limit: a.limit, values: !0, query: { index: i, range: a.range } }).then(function(c) {
1197
+ return c = c.result, s ? c.map(s) : c;
1198
1198
  });
1199
1199
  }
1200
1200
  var u = [];
@@ -1208,8 +1208,8 @@ function Ra() {
1208
1208
  var t = this._ctx;
1209
1209
  return e <= 0 || (t.offset += e, tt(t) ? bn(t, function() {
1210
1210
  var n = e;
1211
- return function(a, i) {
1212
- return n === 0 || (n === 1 ? --n : i(function() {
1211
+ return function(a, s) {
1212
+ return n === 0 || (n === 1 ? --n : s(function() {
1213
1213
  a.advance(n), n = 0;
1214
1214
  }), !1);
1215
1215
  };
@@ -1222,13 +1222,13 @@ function Ra() {
1222
1222
  }, Q.prototype.limit = function(e) {
1223
1223
  return this._ctx.limit = Math.min(this._ctx.limit, e), bn(this._ctx, function() {
1224
1224
  var t = e;
1225
- return function(n, a, i) {
1226
- return --t <= 0 && a(i), 0 <= t;
1225
+ return function(n, a, s) {
1226
+ return --t <= 0 && a(s), 0 <= t;
1227
1227
  };
1228
1228
  }, !0), this;
1229
1229
  }, Q.prototype.until = function(e, t) {
1230
- return mn(this._ctx, function(n, a, i) {
1231
- return !e(n.value) || (a(i), t);
1230
+ return mn(this._ctx, function(n, a, s) {
1231
+ return !e(n.value) || (a(s), t);
1232
1232
  }), this;
1233
1233
  }, Q.prototype.first = function(e) {
1234
1234
  return this.limit(1).toArray(function(t) {
@@ -1265,23 +1265,23 @@ function Ra() {
1265
1265
  var t = this._ctx;
1266
1266
  t.keysOnly = !t.isMatch;
1267
1267
  var n = [];
1268
- return this.each(function(a, i) {
1269
- n.push(i.key);
1268
+ return this.each(function(a, s) {
1269
+ n.push(s.key);
1270
1270
  }).then(function() {
1271
1271
  return n;
1272
1272
  }).then(e);
1273
1273
  }, Q.prototype.primaryKeys = function(e) {
1274
1274
  var t = this._ctx;
1275
1275
  if (t.dir === "next" && tt(t, !0) && 0 < t.limit) return this._read(function(a) {
1276
- var i = jt(t, t.table.core.schema);
1277
- return t.table.core.query({ trans: a, values: !1, limit: t.limit, query: { index: i, range: t.range } });
1276
+ var s = jt(t, t.table.core.schema);
1277
+ return t.table.core.query({ trans: a, values: !1, limit: t.limit, query: { index: s, range: t.range } });
1278
1278
  }).then(function(a) {
1279
1279
  return a.result;
1280
1280
  }).then(e);
1281
1281
  t.keysOnly = !t.isMatch;
1282
1282
  var n = [];
1283
- return this.each(function(a, i) {
1284
- n.push(i.primaryKey);
1283
+ return this.each(function(a, s) {
1284
+ n.push(s.primaryKey);
1285
1285
  }).then(function() {
1286
1286
  return n;
1287
1287
  }).then(e);
@@ -1297,17 +1297,17 @@ function Ra() {
1297
1297
  var e = this._ctx, e = e.index && e.table.schema.idxByName[e.index];
1298
1298
  if (!e || !e.multi) return this;
1299
1299
  var t = {};
1300
- return mn(this._ctx, function(i) {
1301
- var a = i.primaryKey.toString(), i = ee(t, a);
1302
- return t[a] = !0, !i;
1300
+ return mn(this._ctx, function(s) {
1301
+ var a = s.primaryKey.toString(), s = ee(t, a);
1302
+ return t[a] = !0, !s;
1303
1303
  }), this;
1304
1304
  }, Q.prototype.modify = function(e) {
1305
1305
  var t = this, n = this._ctx;
1306
1306
  return this._write(function(a) {
1307
- var i, s, u;
1308
- u = typeof e == "function" ? e : (i = K(e), s = i.length, function(y) {
1309
- for (var S = !1, E = 0; E < s; ++E) {
1310
- var O = i[E], A = e[O], P = we(y, O);
1307
+ var s, i, u;
1308
+ u = typeof e == "function" ? e : (s = K(e), i = s.length, function(y) {
1309
+ for (var S = !1, E = 0; E < i; ++E) {
1310
+ var O = s[E], A = e[O], P = we(y, O);
1311
1311
  A instanceof ht ? (fe(y, O, A.execute(P)), S = !0) : P !== A && (fe(y, O, A), S = !0);
1312
1312
  }
1313
1313
  return S;
@@ -1357,14 +1357,14 @@ function Ra() {
1357
1357
  }, Q.prototype.delete = function() {
1358
1358
  var e = this._ctx, t = e.range;
1359
1359
  return tt(e) && (e.isPrimKey || t.type === 3) ? this._write(function(n) {
1360
- var a = e.table.core.schema.primaryKey, i = t;
1361
- return e.table.core.count({ trans: n, query: { index: a, range: i } }).then(function(s) {
1362
- return e.table.core.mutate({ trans: n, type: "deleteRange", range: i }).then(function(u) {
1360
+ var a = e.table.core.schema.primaryKey, s = t;
1361
+ return e.table.core.count({ trans: n, query: { index: a, range: s } }).then(function(i) {
1362
+ return e.table.core.mutate({ trans: n, type: "deleteRange", range: s }).then(function(u) {
1363
1363
  var c = u.failures;
1364
1364
  if (u.lastResult, u.results, u = u.numFailures, u) throw new Et("Could not delete some values", Object.keys(c).map(function(h) {
1365
1365
  return c[h];
1366
- }), s - u);
1367
- return s - u;
1366
+ }), i - u);
1367
+ return i - u;
1368
1368
  });
1369
1369
  });
1370
1370
  }) : this.modify(vn);
@@ -1374,7 +1374,7 @@ function Ra() {
1374
1374
  var vn = function(e, t) {
1375
1375
  return t.value = null;
1376
1376
  };
1377
- function sa(e, t) {
1377
+ function ia(e, t) {
1378
1378
  return e < t ? -1 : e === t ? 0 : 1;
1379
1379
  }
1380
1380
  function oa(e, t) {
@@ -1389,22 +1389,22 @@ function Ra() {
1389
1389
  }).limit(0);
1390
1390
  }
1391
1391
  function Kt(e, t, n, a) {
1392
- var i, s, u, c, h, g, v, f = n.length;
1392
+ var s, i, u, c, h, g, v, f = n.length;
1393
1393
  if (!n.every(function(b) {
1394
1394
  return typeof b == "string";
1395
- })) return he(e, ir);
1395
+ })) return he(e, sr);
1396
1396
  function _(b) {
1397
- i = b === "next" ? function(y) {
1397
+ s = b === "next" ? function(y) {
1398
1398
  return y.toUpperCase();
1399
1399
  } : function(y) {
1400
1400
  return y.toLowerCase();
1401
- }, s = b === "next" ? function(y) {
1401
+ }, i = b === "next" ? function(y) {
1402
1402
  return y.toLowerCase();
1403
1403
  } : function(y) {
1404
1404
  return y.toUpperCase();
1405
- }, u = b === "next" ? sa : oa;
1405
+ }, u = b === "next" ? ia : oa;
1406
1406
  var w = n.map(function(y) {
1407
- return { lower: s(y), upper: i(y) };
1407
+ return { lower: i(y), upper: s(y) };
1408
1408
  }).sort(function(y, S) {
1409
1409
  return u(y.lower, S.lower);
1410
1410
  });
@@ -1423,7 +1423,7 @@ function Ra() {
1423
1423
  return e._addAlgorithm(function(b, w, y) {
1424
1424
  var S = b.key;
1425
1425
  if (typeof S != "string") return !1;
1426
- var E = s(S);
1426
+ var E = i(S);
1427
1427
  if (t(E, h, p)) return !0;
1428
1428
  for (var O = null, A = p; A < f; ++A) {
1429
1429
  var P = function(T, I, C, M, R, L) {
@@ -1447,9 +1447,9 @@ function Ra() {
1447
1447
  function pr(e) {
1448
1448
  return { type: 1, lower: e, upper: e };
1449
1449
  }
1450
- var gr = (Object.defineProperty(ie.prototype, "Collection", { get: function() {
1450
+ var gr = (Object.defineProperty(se.prototype, "Collection", { get: function() {
1451
1451
  return this._ctx.table.db.Collection;
1452
- }, enumerable: !1, configurable: !0 }), ie.prototype.between = function(e, t, n, a) {
1452
+ }, enumerable: !1, configurable: !0 }), se.prototype.between = function(e, t, n, a) {
1453
1453
  n = n !== !1, a = a === !0;
1454
1454
  try {
1455
1455
  return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || a) && (!n || !a) ? nt(this) : new this.Collection(this, function() {
@@ -1458,49 +1458,49 @@ function Ra() {
1458
1458
  } catch {
1459
1459
  return he(this, Se);
1460
1460
  }
1461
- }, ie.prototype.equals = function(e) {
1461
+ }, se.prototype.equals = function(e) {
1462
1462
  return e == null ? he(this, Se) : new this.Collection(this, function() {
1463
1463
  return pr(e);
1464
1464
  });
1465
- }, ie.prototype.above = function(e) {
1465
+ }, se.prototype.above = function(e) {
1466
1466
  return e == null ? he(this, Se) : new this.Collection(this, function() {
1467
1467
  return Ie(e, void 0, !0);
1468
1468
  });
1469
- }, ie.prototype.aboveOrEqual = function(e) {
1469
+ }, se.prototype.aboveOrEqual = function(e) {
1470
1470
  return e == null ? he(this, Se) : new this.Collection(this, function() {
1471
1471
  return Ie(e, void 0, !1);
1472
1472
  });
1473
- }, ie.prototype.below = function(e) {
1473
+ }, se.prototype.below = function(e) {
1474
1474
  return e == null ? he(this, Se) : new this.Collection(this, function() {
1475
1475
  return Ie(void 0, e, !1, !0);
1476
1476
  });
1477
- }, ie.prototype.belowOrEqual = function(e) {
1477
+ }, se.prototype.belowOrEqual = function(e) {
1478
1478
  return e == null ? he(this, Se) : new this.Collection(this, function() {
1479
1479
  return Ie(void 0, e);
1480
1480
  });
1481
- }, ie.prototype.startsWith = function(e) {
1482
- return typeof e != "string" ? he(this, ir) : this.between(e, e + $e, !0, !0);
1483
- }, ie.prototype.startsWithIgnoreCase = function(e) {
1481
+ }, se.prototype.startsWith = function(e) {
1482
+ return typeof e != "string" ? he(this, sr) : this.between(e, e + $e, !0, !0);
1483
+ }, se.prototype.startsWithIgnoreCase = function(e) {
1484
1484
  return e === "" ? this.startsWith(e) : Kt(this, function(t, n) {
1485
1485
  return t.indexOf(n[0]) === 0;
1486
1486
  }, [e], $e);
1487
- }, ie.prototype.equalsIgnoreCase = function(e) {
1487
+ }, se.prototype.equalsIgnoreCase = function(e) {
1488
1488
  return Kt(this, function(t, n) {
1489
1489
  return t === n[0];
1490
1490
  }, [e], "");
1491
- }, ie.prototype.anyOfIgnoreCase = function() {
1491
+ }, se.prototype.anyOfIgnoreCase = function() {
1492
1492
  var e = _e.apply(Qe, arguments);
1493
1493
  return e.length === 0 ? nt(this) : Kt(this, function(t, n) {
1494
1494
  return n.indexOf(t) !== -1;
1495
1495
  }, e, "");
1496
- }, ie.prototype.startsWithAnyOfIgnoreCase = function() {
1496
+ }, se.prototype.startsWithAnyOfIgnoreCase = function() {
1497
1497
  var e = _e.apply(Qe, arguments);
1498
1498
  return e.length === 0 ? nt(this) : Kt(this, function(t, n) {
1499
1499
  return n.some(function(a) {
1500
1500
  return t.indexOf(a) === 0;
1501
1501
  });
1502
1502
  }, e, $e);
1503
- }, ie.prototype.anyOf = function() {
1503
+ }, se.prototype.anyOf = function() {
1504
1504
  var e = this, t = _e.apply(Qe, arguments), n = this._cmp;
1505
1505
  try {
1506
1506
  t.sort(n);
@@ -1511,19 +1511,19 @@ function Ra() {
1511
1511
  var a = new this.Collection(this, function() {
1512
1512
  return Ie(t[0], t[t.length - 1]);
1513
1513
  });
1514
- a._ondirectionchange = function(s) {
1515
- n = s === "next" ? e._ascending : e._descending, t.sort(n);
1514
+ a._ondirectionchange = function(i) {
1515
+ n = i === "next" ? e._ascending : e._descending, t.sort(n);
1516
1516
  };
1517
- var i = 0;
1518
- return a._addAlgorithm(function(s, u, c) {
1519
- for (var h = s.key; 0 < n(h, t[i]); ) if (++i === t.length) return u(c), !1;
1520
- return n(h, t[i]) === 0 || (u(function() {
1521
- s.continue(t[i]);
1517
+ var s = 0;
1518
+ return a._addAlgorithm(function(i, u, c) {
1519
+ for (var h = i.key; 0 < n(h, t[s]); ) if (++s === t.length) return u(c), !1;
1520
+ return n(h, t[s]) === 0 || (u(function() {
1521
+ i.continue(t[s]);
1522
1522
  }), !1);
1523
1523
  }), a;
1524
- }, ie.prototype.notEqual = function(e) {
1524
+ }, se.prototype.notEqual = function(e) {
1525
1525
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
1526
- }, ie.prototype.noneOf = function() {
1526
+ }, se.prototype.noneOf = function() {
1527
1527
  var e = _e.apply(Qe, arguments);
1528
1528
  if (e.length === 0) return new this.Collection(this);
1529
1529
  try {
@@ -1535,13 +1535,13 @@ function Ra() {
1535
1535
  return n ? n.concat([[n[n.length - 1][1], a]]) : [[-1 / 0, a]];
1536
1536
  }, null);
1537
1537
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
1538
- }, ie.prototype.inAnyRange = function(S, t) {
1539
- var n = this, a = this._cmp, i = this._ascending, s = this._descending, u = this._min, c = this._max;
1538
+ }, se.prototype.inAnyRange = function(S, t) {
1539
+ var n = this, a = this._cmp, s = this._ascending, i = this._descending, u = this._min, c = this._max;
1540
1540
  if (S.length === 0) return nt(this);
1541
1541
  if (!S.every(function(E) {
1542
- return E[0] !== void 0 && E[1] !== void 0 && i(E[0], E[1]) <= 0;
1542
+ return E[0] !== void 0 && E[1] !== void 0 && s(E[0], E[1]) <= 0;
1543
1543
  })) return he(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", $.InvalidArgument);
1544
- var h = !t || t.includeLowers !== !1, g = t && t.includeUppers === !0, v, f = i;
1544
+ var h = !t || t.includeLowers !== !1, g = t && t.includeUppers === !0, v, f = s;
1545
1545
  function _(E, O) {
1546
1546
  return f(E[0], O[0]);
1547
1547
  }
@@ -1560,33 +1560,33 @@ function Ra() {
1560
1560
  return he(this, Se);
1561
1561
  }
1562
1562
  var p = 0, b = g ? function(E) {
1563
- return 0 < i(E, v[p][1]);
1563
+ return 0 < s(E, v[p][1]);
1564
1564
  } : function(E) {
1565
- return 0 <= i(E, v[p][1]);
1565
+ return 0 <= s(E, v[p][1]);
1566
1566
  }, w = h ? function(E) {
1567
- return 0 < s(E, v[p][0]);
1567
+ return 0 < i(E, v[p][0]);
1568
1568
  } : function(E) {
1569
- return 0 <= s(E, v[p][0]);
1569
+ return 0 <= i(E, v[p][0]);
1570
1570
  }, y = b, S = new this.Collection(this, function() {
1571
1571
  return Ie(v[0][0], v[v.length - 1][1], !h, !g);
1572
1572
  });
1573
1573
  return S._ondirectionchange = function(E) {
1574
- f = E === "next" ? (y = b, i) : (y = w, s), v.sort(_);
1574
+ f = E === "next" ? (y = b, s) : (y = w, i), v.sort(_);
1575
1575
  }, S._addAlgorithm(function(E, O, A) {
1576
1576
  for (var P, T = E.key; y(T); ) if (++p === v.length) return O(A), !1;
1577
1577
  return !b(P = T) && !w(P) || (n._cmp(T, v[p][1]) === 0 || n._cmp(T, v[p][0]) === 0 || O(function() {
1578
- f === i ? E.continue(v[p][0]) : E.continue(v[p][1]);
1578
+ f === s ? E.continue(v[p][0]) : E.continue(v[p][1]);
1579
1579
  }), !1);
1580
1580
  }), S;
1581
- }, ie.prototype.startsWithAnyOf = function() {
1581
+ }, se.prototype.startsWithAnyOf = function() {
1582
1582
  var e = _e.apply(Qe, arguments);
1583
1583
  return e.every(function(t) {
1584
1584
  return typeof t == "string";
1585
1585
  }) ? e.length === 0 ? nt(this) : this.inAnyRange(e.map(function(t) {
1586
1586
  return [t, t + $e];
1587
1587
  })) : he(this, "startsWithAnyOf() only works with strings");
1588
- }, ie);
1589
- function ie() {
1588
+ }, se);
1589
+ function se() {
1590
1590
  }
1591
1591
  function be(e) {
1592
1592
  return q(function(t) {
@@ -1622,10 +1622,10 @@ function Ra() {
1622
1622
  throw new $.OpenFailed(a);
1623
1623
  }
1624
1624
  if (!this.active) throw new $.TransactionInactive();
1625
- return at(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = q(function(i) {
1626
- pt(i), t._reject(e.error);
1627
- }), e.onabort = q(function(i) {
1628
- pt(i), t.active && t._reject(new $.Abort(e.error)), t.active = !1, t.on("abort").fire(i);
1625
+ return at(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = q(function(s) {
1626
+ pt(s), t._reject(e.error);
1627
+ }), e.onabort = q(function(s) {
1628
+ pt(s), t.active && t._reject(new $.Abort(e.error)), t.active = !1, t.on("abort").fire(s);
1629
1629
  }), e.oncomplete = q(function() {
1630
1630
  t.active = !1, t._resolve(), "mutatedParts" in e && Ce.storagemutated.fire(e.mutatedParts);
1631
1631
  }), this;
@@ -1633,44 +1633,44 @@ function Ra() {
1633
1633
  var a = this;
1634
1634
  if (e === "readwrite" && this.mode !== "readwrite") return te(new $.ReadOnly("Transaction is readonly"));
1635
1635
  if (!this.active) return te(new $.TransactionInactive());
1636
- if (this._locked()) return new B(function(s, u) {
1636
+ if (this._locked()) return new B(function(i, u) {
1637
1637
  a._blockedFuncs.push([function() {
1638
- a._promise(e, t, n).then(s, u);
1638
+ a._promise(e, t, n).then(i, u);
1639
1639
  }, G]);
1640
1640
  });
1641
1641
  if (n) return ke(function() {
1642
- var s = new B(function(u, c) {
1642
+ var i = new B(function(u, c) {
1643
1643
  a._lock();
1644
1644
  var h = t(u, c, a);
1645
1645
  h && h.then && h.then(u, c);
1646
1646
  });
1647
- return s.finally(function() {
1647
+ return i.finally(function() {
1648
1648
  return a._unlock();
1649
- }), s._lib = !0, s;
1649
+ }), i._lib = !0, i;
1650
1650
  });
1651
- var i = new B(function(s, u) {
1652
- var c = t(s, u, a);
1653
- c && c.then && c.then(s, u);
1651
+ var s = new B(function(i, u) {
1652
+ var c = t(i, u, a);
1653
+ c && c.then && c.then(i, u);
1654
1654
  });
1655
- return i._lib = !0, i;
1655
+ return s._lib = !0, s;
1656
1656
  }, ve.prototype._root = function() {
1657
1657
  return this.parent ? this.parent._root() : this;
1658
1658
  }, ve.prototype.waitFor = function(e) {
1659
1659
  var t, n = this._root(), a = B.resolve(e);
1660
1660
  n._waitingFor ? n._waitingFor = n._waitingFor.then(function() {
1661
1661
  return a;
1662
- }) : (n._waitingFor = a, n._waitingQueue = [], t = n.idbtrans.objectStore(n.storeNames[0]), function s() {
1662
+ }) : (n._waitingFor = a, n._waitingQueue = [], t = n.idbtrans.objectStore(n.storeNames[0]), function i() {
1663
1663
  for (++n._spinCount; n._waitingQueue.length; ) n._waitingQueue.shift()();
1664
- n._waitingFor && (t.get(-1 / 0).onsuccess = s);
1664
+ n._waitingFor && (t.get(-1 / 0).onsuccess = i);
1665
1665
  }());
1666
- var i = n._waitingFor;
1667
- return new B(function(s, u) {
1666
+ var s = n._waitingFor;
1667
+ return new B(function(i, u) {
1668
1668
  a.then(function(c) {
1669
- return n._waitingQueue.push(q(s.bind(null, c)));
1669
+ return n._waitingQueue.push(q(i.bind(null, c)));
1670
1670
  }, function(c) {
1671
1671
  return n._waitingQueue.push(q(u.bind(null, c)));
1672
1672
  }).finally(function() {
1673
- n._waitingFor === i && (n._waitingFor = null);
1673
+ n._waitingFor === s && (n._waitingFor = null);
1674
1674
  });
1675
1675
  });
1676
1676
  }, ve.prototype.abort = function() {
@@ -1684,17 +1684,17 @@ function Ra() {
1684
1684
  }, ve);
1685
1685
  function ve() {
1686
1686
  }
1687
- function _n(e, t, n, a, i, s, u) {
1688
- return { name: e, keyPath: t, unique: n, multi: a, auto: i, compound: s, src: (n && !u ? "&" : "") + (a ? "*" : "") + (i ? "++" : "") + yr(t) };
1687
+ function _n(e, t, n, a, s, i, u) {
1688
+ return { name: e, keyPath: t, unique: n, multi: a, auto: s, compound: i, src: (n && !u ? "&" : "") + (a ? "*" : "") + (s ? "++" : "") + yr(t) };
1689
1689
  }
1690
1690
  function yr(e) {
1691
1691
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
1692
1692
  }
1693
1693
  function Sn(e, t, n) {
1694
- return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (a = function(i) {
1695
- return [i.name, i];
1696
- }, n.reduce(function(i, s, u) {
1697
- return u = a(s, u), u && (i[u[0]] = u[1]), i;
1694
+ return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (a = function(s) {
1695
+ return [s.name, s];
1696
+ }, n.reduce(function(s, i, u) {
1697
+ return u = a(i, u), u && (s[u[0]] = u[1]), s;
1698
1698
  }, {})) };
1699
1699
  var a;
1700
1700
  }
@@ -1734,7 +1734,7 @@ function Ra() {
1734
1734
  var p = y.lower, b = y.upper, w = y.lowerOpen, y = y.upperOpen;
1735
1735
  return p === void 0 ? b === void 0 ? null : t.upperBound(b, !!y) : b === void 0 ? t.lowerBound(p, !!w) : t.bound(p, b, !!w, !!y);
1736
1736
  }
1737
- function i(_) {
1737
+ function s(_) {
1738
1738
  var p, b = _.name;
1739
1739
  return { name: b, schema: _, mutate: function(w) {
1740
1740
  var y = w.trans, S = w.type, E = w.keys, O = w.values, A = w.range;
@@ -1848,7 +1848,7 @@ function Ra() {
1848
1848
  });
1849
1849
  } };
1850
1850
  }
1851
- var s, u, c, v = (u = h, c = mr((s = e).objectStoreNames), { schema: { name: s.name, tables: c.map(function(_) {
1851
+ var i, u, c, v = (u = h, c = mr((i = e).objectStoreNames), { schema: { name: i.name, tables: c.map(function(_) {
1852
1852
  return u.objectStore(_);
1853
1853
  }).map(function(_) {
1854
1854
  var p = _.keyPath, y = _.autoIncrement, b = U(p), w = {}, y = { name: _.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: b, keyPath: p, autoIncrement: y, unique: !0, extractKey: En(p) }, indexes: mr(_.indexNames).map(function(S) {
@@ -1860,7 +1860,7 @@ function Ra() {
1860
1860
  return w[mt(S)];
1861
1861
  } };
1862
1862
  return w[":id"] = y.primaryKey, p != null && (w[mt(p)] = y.primaryKey), y;
1863
- }) }, hasGetAll: 0 < c.length && "getAll" in u.objectStore(c[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = v.schema, g = v.hasGetAll, v = h.tables.map(i), f = {};
1863
+ }) }, hasGetAll: 0 < c.length && "getAll" in u.objectStore(c[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = v.schema, g = v.hasGetAll, v = h.tables.map(s), f = {};
1864
1864
  return v.forEach(function(_) {
1865
1865
  return f[_.name] = _;
1866
1866
  }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(_) {
@@ -1869,32 +1869,32 @@ function Ra() {
1869
1869
  }, MIN_KEY: -1 / 0, MAX_KEY: yt(t), schema: h };
1870
1870
  }
1871
1871
  function da(e, t, n, a) {
1872
- var i = n.IDBKeyRange;
1873
- return n.indexedDB, { dbcore: (a = la(t, i, a), e.dbcore.reduce(function(s, u) {
1874
- return u = u.create, d(d({}, s), u(s));
1872
+ var s = n.IDBKeyRange;
1873
+ return n.indexedDB, { dbcore: (a = la(t, s, a), e.dbcore.reduce(function(i, u) {
1874
+ return u = u.create, d(d({}, i), u(i));
1875
1875
  }, a)) };
1876
1876
  }
1877
1877
  function Bt(e, a) {
1878
1878
  var n = a.db, a = da(e._middlewares, n, e._deps, a);
1879
- e.core = a.dbcore, e.tables.forEach(function(i) {
1880
- var s = i.name;
1879
+ e.core = a.dbcore, e.tables.forEach(function(s) {
1880
+ var i = s.name;
1881
1881
  e.core.schema.tables.some(function(u) {
1882
- return u.name === s;
1883
- }) && (i.core = e.core.table(s), e[s] instanceof e.Table && (e[s].core = i.core));
1882
+ return u.name === i;
1883
+ }) && (s.core = e.core.table(i), e[i] instanceof e.Table && (e[i].core = s.core));
1884
1884
  });
1885
1885
  }
1886
1886
  function Lt(e, t, n, a) {
1887
- n.forEach(function(i) {
1888
- var s = a[i];
1887
+ n.forEach(function(s) {
1888
+ var i = a[s];
1889
1889
  t.forEach(function(u) {
1890
1890
  var c = function h(g, v) {
1891
1891
  return Ur(g, v) || (g = X(g)) && h(g, v);
1892
- }(u, i);
1893
- (!c || "value" in c && c.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? xe(u, i, { get: function() {
1894
- return this.table(i);
1892
+ }(u, s);
1893
+ (!c || "value" in c && c.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? xe(u, s, { get: function() {
1894
+ return this.table(s);
1895
1895
  }, set: function(h) {
1896
- He(this, i, { value: h, writable: !0, configurable: !0, enumerable: !0 });
1897
- } }) : u[i] = new e.Table(i, s));
1896
+ He(this, s, { value: h, writable: !0, configurable: !0, enumerable: !0 });
1897
+ } }) : u[s] = new e.Table(s, i));
1898
1898
  });
1899
1899
  });
1900
1900
  }
@@ -1907,16 +1907,16 @@ function Ra() {
1907
1907
  return e._cfg.version - t._cfg.version;
1908
1908
  }
1909
1909
  function ha(e, t, n, a) {
1910
- var i = e._dbSchema;
1911
- n.objectStoreNames.contains("$meta") && !i.$meta && (i.$meta = Sn("$meta", vr("")[0], []), e._storeNames.push("$meta"));
1912
- var s = e._createTransaction("readwrite", e._storeNames, i);
1913
- s.create(n), s._completion.catch(a);
1914
- var u = s._reject.bind(s), c = G.transless || G;
1910
+ var s = e._dbSchema;
1911
+ n.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = Sn("$meta", vr("")[0], []), e._storeNames.push("$meta"));
1912
+ var i = e._createTransaction("readwrite", e._storeNames, s);
1913
+ i.create(n), i._completion.catch(a);
1914
+ var u = i._reject.bind(i), c = G.transless || G;
1915
1915
  ke(function() {
1916
- return G.trans = s, G.transless = c, t !== 0 ? (Bt(e, n), g = t, ((h = s).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(v) {
1916
+ return G.trans = i, G.transless = c, t !== 0 ? (Bt(e, n), g = t, ((h = i).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(v) {
1917
1917
  return v ?? g;
1918
1918
  }) : B.resolve(g)).then(function(v) {
1919
- return _ = v, p = s, b = n, w = [], v = (f = e)._versions, y = f._dbSchema = $t(0, f.idbdb, b), (v = v.filter(function(S) {
1919
+ return _ = v, p = i, b = n, w = [], v = (f = e)._versions, y = f._dbSchema = $t(0, f.idbdb, b), (v = v.filter(function(S) {
1920
1920
  return S._cfg.version >= _;
1921
1921
  })).length !== 0 ? (v.forEach(function(S) {
1922
1922
  w.push(function() {
@@ -1967,10 +1967,10 @@ function Ra() {
1967
1967
  br(y, b);
1968
1968
  })) : B.resolve();
1969
1969
  var f, _, p, b, w, y;
1970
- }).catch(u)) : (K(i).forEach(function(v) {
1971
- An(n, v, i[v].primKey, i[v].indexes);
1970
+ }).catch(u)) : (K(s).forEach(function(v) {
1971
+ An(n, v, s[v].primKey, s[v].indexes);
1972
1972
  }), Bt(e, n), void B.follow(function() {
1973
- return e.on.populate.fire(s);
1973
+ return e.on.populate.fire(i);
1974
1974
  }).catch(u));
1975
1975
  var h, g;
1976
1976
  });
@@ -1979,27 +1979,27 @@ function Ra() {
1979
1979
  br(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");
1980
1980
  var n = $t(0, e.idbdb, t);
1981
1981
  Ut(e, e._dbSchema, t);
1982
- for (var a = 0, i = xn(n, e._dbSchema).change; a < i.length; a++) {
1983
- var s = function(u) {
1982
+ for (var a = 0, s = xn(n, e._dbSchema).change; a < s.length; a++) {
1983
+ var i = function(u) {
1984
1984
  if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1985
1985
  var c = t.objectStore(u.name);
1986
1986
  u.add.forEach(function(h) {
1987
1987
  me && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(h.src)), Gt(c, h);
1988
1988
  });
1989
- }(i[a]);
1990
- if (typeof s == "object") return s.value;
1989
+ }(s[a]);
1990
+ if (typeof i == "object") return i.value;
1991
1991
  }
1992
1992
  }
1993
1993
  function xn(e, t) {
1994
1994
  var n, a = { del: [], add: [], change: [] };
1995
1995
  for (n in e) t[n] || a.del.push(n);
1996
1996
  for (n in t) {
1997
- var i = e[n], s = t[n];
1998
- if (i) {
1999
- var u = { name: n, def: s, recreate: !1, del: [], add: [], change: [] };
2000
- if ("" + (i.primKey.keyPath || "") != "" + (s.primKey.keyPath || "") || i.primKey.auto !== s.primKey.auto) u.recreate = !0, a.change.push(u);
1997
+ var s = e[n], i = t[n];
1998
+ if (s) {
1999
+ var u = { name: n, def: i, recreate: !1, del: [], add: [], change: [] };
2000
+ if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto) u.recreate = !0, a.change.push(u);
2001
2001
  else {
2002
- var c = i.idxByName, h = s.idxByName, g = void 0;
2002
+ var c = s.idxByName, h = i.idxByName, g = void 0;
2003
2003
  for (g in c) h[g] || u.del.push(g);
2004
2004
  for (g in h) {
2005
2005
  var v = c[g], f = h[g];
@@ -2007,15 +2007,15 @@ function Ra() {
2007
2007
  }
2008
2008
  (0 < u.del.length || 0 < u.add.length || 0 < u.change.length) && a.change.push(u);
2009
2009
  }
2010
- } else a.add.push([n, s]);
2010
+ } else a.add.push([n, i]);
2011
2011
  }
2012
2012
  return a;
2013
2013
  }
2014
2014
  function An(e, t, n, a) {
2015
- var i = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2016
- return a.forEach(function(s) {
2017
- return Gt(i, s);
2018
- }), i;
2015
+ var s = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2016
+ return a.forEach(function(i) {
2017
+ return Gt(s, i);
2018
+ }), s;
2019
2019
  }
2020
2020
  function br(e, t) {
2021
2021
  K(e).forEach(function(n) {
@@ -2027,49 +2027,49 @@ function Ra() {
2027
2027
  }
2028
2028
  function $t(e, t, n) {
2029
2029
  var a = {};
2030
- return St(t.objectStoreNames, 0).forEach(function(i) {
2031
- for (var s = n.objectStore(i), u = _n(yr(g = s.keyPath), g || "", !0, !1, !!s.autoIncrement, g && typeof g != "string", !0), c = [], h = 0; h < s.indexNames.length; ++h) {
2032
- var v = s.index(s.indexNames[h]), g = v.keyPath, v = _n(v.name, g, !!v.unique, !!v.multiEntry, !1, g && typeof g != "string", !1);
2030
+ return St(t.objectStoreNames, 0).forEach(function(s) {
2031
+ for (var i = n.objectStore(s), u = _n(yr(g = i.keyPath), g || "", !0, !1, !!i.autoIncrement, g && typeof g != "string", !0), c = [], h = 0; h < i.indexNames.length; ++h) {
2032
+ var v = i.index(i.indexNames[h]), g = v.keyPath, v = _n(v.name, g, !!v.unique, !!v.multiEntry, !1, g && typeof g != "string", !1);
2033
2033
  c.push(v);
2034
2034
  }
2035
- a[i] = Sn(i, u, c);
2035
+ a[s] = Sn(s, u, c);
2036
2036
  }), a;
2037
2037
  }
2038
2038
  function Ut(e, t, n) {
2039
- for (var a = n.db.objectStoreNames, i = 0; i < a.length; ++i) {
2040
- var s = a[i], u = n.objectStore(s);
2039
+ for (var a = n.db.objectStoreNames, s = 0; s < a.length; ++s) {
2040
+ var i = a[s], u = n.objectStore(i);
2041
2041
  e._hasGetAll = "getAll" in u;
2042
2042
  for (var c = 0; c < u.indexNames.length; ++c) {
2043
2043
  var h = u.indexNames[c], g = u.index(h).keyPath, v = typeof g == "string" ? g : "[" + St(g).join("+") + "]";
2044
- !t[s] || (g = t[s].idxByName[v]) && (g.name = h, delete t[s].idxByName[v], t[s].idxByName[h] = g);
2044
+ !t[i] || (g = t[i].idxByName[v]) && (g.name = h, delete t[i].idxByName[v], t[i].idxByName[h] = g);
2045
2045
  }
2046
2046
  }
2047
2047
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && D.WorkerGlobalScope && D instanceof D.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2048
2048
  }
2049
2049
  function vr(e) {
2050
2050
  return e.split(",").map(function(t, n) {
2051
- var a = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), i = /^\[/.test(a) ? a.match(/^\[(.*)\]$/)[1].split("+") : a;
2052
- return _n(a, i || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), U(i), n === 0);
2051
+ var a = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), s = /^\[/.test(a) ? a.match(/^\[(.*)\]$/)[1].split("+") : a;
2052
+ return _n(a, s || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), U(s), n === 0);
2053
2053
  });
2054
2054
  }
2055
2055
  var ga = (Ft.prototype._parseStoresSpec = function(e, t) {
2056
2056
  K(e).forEach(function(n) {
2057
2057
  if (e[n] !== null) {
2058
- var a = vr(e[n]), i = a.shift();
2059
- if (i.unique = !0, i.multi) throw new $.Schema("Primary key cannot be multi-valued");
2060
- a.forEach(function(s) {
2061
- if (s.auto) throw new $.Schema("Only primary key can be marked as autoIncrement (++)");
2062
- if (!s.keyPath) throw new $.Schema("Index must have a name and cannot be an empty string");
2063
- }), t[n] = Sn(n, i, a);
2058
+ var a = vr(e[n]), s = a.shift();
2059
+ if (s.unique = !0, s.multi) throw new $.Schema("Primary key cannot be multi-valued");
2060
+ a.forEach(function(i) {
2061
+ if (i.auto) throw new $.Schema("Only primary key can be marked as autoIncrement (++)");
2062
+ if (!i.keyPath) throw new $.Schema("Index must have a name and cannot be an empty string");
2063
+ }), t[n] = Sn(n, s, a);
2064
2064
  }
2065
2065
  });
2066
2066
  }, Ft.prototype.stores = function(n) {
2067
2067
  var t = this.db;
2068
2068
  this._cfg.storesSource = this._cfg.storesSource ? N(this._cfg.storesSource, n) : n;
2069
- var n = t._versions, a = {}, i = {};
2070
- return n.forEach(function(s) {
2071
- N(a, s._cfg.storesSource), i = s._cfg.dbschema = {}, s._parseStoresSpec(a, i);
2072
- }), t._dbSchema = i, On(t, [t._allTables, t, t.Transaction.prototype]), Lt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], K(i), i), t._storeNames = K(i), this;
2069
+ var n = t._versions, a = {}, s = {};
2070
+ return n.forEach(function(i) {
2071
+ N(a, i._cfg.storesSource), s = i._cfg.dbschema = {}, i._parseStoresSpec(a, s);
2072
+ }), t._dbSchema = s, On(t, [t._allTables, t, t.Transaction.prototype]), Lt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], K(s), s), t._storeNames = K(s), this;
2073
2073
  }, Ft.prototype.upgrade = function(e) {
2074
2074
  return this._cfg.contentUpgrade = sn(this._cfg.contentUpgrade || J, e), this;
2075
2075
  }, Ft);
@@ -2102,24 +2102,24 @@ function Ra() {
2102
2102
  if (!isNaN(a)) {
2103
2103
  if (0 < a) throw RangeError();
2104
2104
  if (In(e)) return N(e, { from: t, to: n, d: 1 });
2105
- var i = e.l, a = e.r;
2106
- if (Y(n, e.from) < 0) return i ? bt(i, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2105
+ var s = e.l, a = e.r;
2106
+ if (Y(n, e.from) < 0) return s ? bt(s, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2107
2107
  if (0 < Y(t, e.to)) return a ? bt(a, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2108
- Y(t, e.from) < 0 && (e.from = t, e.l = null, e.d = a ? a.d + 1 : 1), 0 < Y(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, i && !e.l && vt(e, i), a && n && vt(e, a);
2108
+ Y(t, e.from) < 0 && (e.from = t, e.l = null, e.d = a ? a.d + 1 : 1), 0 < Y(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, s && !e.l && vt(e, s), a && n && vt(e, a);
2109
2109
  }
2110
2110
  }
2111
2111
  function vt(e, t) {
2112
2112
  In(t) || function n(a, h) {
2113
- var s = h.from, u = h.to, c = h.l, h = h.r;
2114
- bt(a, s, u), c && n(a, c), h && n(a, h);
2113
+ var i = h.from, u = h.to, c = h.l, h = h.r;
2114
+ bt(a, i, u), c && n(a, c), h && n(a, h);
2115
2115
  }(e, t);
2116
2116
  }
2117
2117
  function wr(e, t) {
2118
2118
  var n = Wt(t), a = n.next();
2119
2119
  if (a.done) return !1;
2120
- for (var i = a.value, s = Wt(e), u = s.next(i.from), c = u.value; !a.done && !u.done; ) {
2121
- if (Y(c.from, i.to) <= 0 && 0 <= Y(c.to, i.from)) return !0;
2122
- Y(i.from, c.from) < 0 ? i = (a = n.next(c.from)).value : c = (u = s.next(i.from)).value;
2120
+ for (var s = a.value, i = Wt(e), u = i.next(s.from), c = u.value; !a.done && !u.done; ) {
2121
+ if (Y(c.from, s.to) <= 0 && 0 <= Y(c.to, s.from)) return !0;
2122
+ Y(s.from, c.from) < 0 ? s = (a = n.next(c.from)).value : c = (u = i.next(s.from)).value;
2123
2123
  }
2124
2124
  return !1;
2125
2125
  }
@@ -2144,8 +2144,8 @@ function Ra() {
2144
2144
  } };
2145
2145
  }
2146
2146
  function _r(e) {
2147
- var t, n, a = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), i = 1 < a ? "r" : a < -1 ? "l" : "";
2148
- i && (t = i == "r" ? "l" : "r", n = d({}, e), a = e[i], e.from = a.from, e.to = a.to, e[i] = a[i], n[i] = a[t], (e[t] = n).d = Sr(n)), e.d = Sr(e);
2147
+ var t, n, a = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), s = 1 < a ? "r" : a < -1 ? "l" : "";
2148
+ s && (t = s == "r" ? "l" : "r", n = d({}, e), a = e[s], e.from = a.from, e.to = a.to, e[s] = a[s], n[s] = a[t], (e[t] = n).d = Sr(n)), e.d = Sr(e);
2149
2149
  }
2150
2150
  function Sr(n) {
2151
2151
  var t = n.r, n = n.l;
@@ -2153,9 +2153,9 @@ function Ra() {
2153
2153
  }
2154
2154
  function zt(e, t) {
2155
2155
  return K(t).forEach(function(n) {
2156
- e[n] ? vt(e[n], t[n]) : e[n] = function a(i) {
2157
- var s, u, c = {};
2158
- for (s in i) ee(i, s) && (u = i[s], c[s] = !u || typeof u != "object" || Jn.has(u.constructor) ? u : a(u));
2156
+ e[n] ? vt(e[n], t[n]) : e[n] = function a(s) {
2157
+ var i, u, c = {};
2158
+ for (i in s) ee(s, i) && (u = s[i], c[i] = !u || typeof u != "object" || Jn.has(u.constructor) ? u : a(u));
2159
2159
  return c;
2160
2160
  }(t[n]);
2161
2161
  }), e;
@@ -2189,26 +2189,26 @@ function Ra() {
2189
2189
  function Mn(e, t) {
2190
2190
  t === void 0 && (t = !1);
2191
2191
  var n = /* @__PURE__ */ new Set();
2192
- if (e.all) for (var a = 0, i = Object.values(Fe); a < i.length; a++) Er(u = i[a], e, n, t);
2193
- else for (var s in e) {
2194
- var u, c = /^idb\:\/\/(.*)\/(.*)\//.exec(s);
2195
- c && (s = c[1], c = c[2], (u = Fe["idb://".concat(s, "/").concat(c)]) && Er(u, e, n, t));
2192
+ if (e.all) for (var a = 0, s = Object.values(Fe); a < s.length; a++) Er(u = s[a], e, n, t);
2193
+ else for (var i in e) {
2194
+ var u, c = /^idb\:\/\/(.*)\/(.*)\//.exec(i);
2195
+ c && (i = c[1], c = c[2], (u = Fe["idb://".concat(i, "/").concat(c)]) && Er(u, e, n, t));
2196
2196
  }
2197
2197
  n.forEach(function(h) {
2198
2198
  return h();
2199
2199
  });
2200
2200
  }
2201
2201
  function Er(e, t, n, a) {
2202
- for (var i = [], s = 0, u = Object.entries(e.queries.query); s < u.length; s++) {
2203
- for (var c = u[s], h = c[0], g = [], v = 0, f = c[1]; v < f.length; v++) {
2202
+ for (var s = [], i = 0, u = Object.entries(e.queries.query); i < u.length; i++) {
2203
+ for (var c = u[i], h = c[0], g = [], v = 0, f = c[1]; v < f.length; v++) {
2204
2204
  var _ = f[v];
2205
2205
  Cn(t, _.obsSet) ? _.subscribers.forEach(function(y) {
2206
2206
  return n.add(y);
2207
2207
  }) : a && g.push(_);
2208
2208
  }
2209
- a && i.push([h, g]);
2209
+ a && s.push([h, g]);
2210
2210
  }
2211
- if (a) for (var p = 0, b = i; p < b.length; p++) {
2211
+ if (a) for (var p = 0, b = s; p < b.length; p++) {
2212
2212
  var w = b[p], h = w[0], g = w[1];
2213
2213
  e.queries.query[h] = g;
2214
2214
  }
@@ -2219,20 +2219,20 @@ function Ra() {
2219
2219
  return t.dbOpenError ? te(t.dbOpenError) : e;
2220
2220
  });
2221
2221
  t.isBeingOpened = !0, t.dbOpenError = null, t.openComplete = !1;
2222
- var a = t.openCanceller, i = Math.round(10 * e.verno), s = !1;
2222
+ var a = t.openCanceller, s = Math.round(10 * e.verno), i = !1;
2223
2223
  function u() {
2224
2224
  if (t.openCanceller !== a) throw new $.DatabaseClosed("db.open() was cancelled");
2225
2225
  }
2226
2226
  function c() {
2227
2227
  return new B(function(_, p) {
2228
2228
  if (u(), !n) throw new $.MissingAPI();
2229
- var b = e.name, w = t.autoSchema || !i ? n.open(b) : n.open(b, i);
2229
+ var b = e.name, w = t.autoSchema || !s ? n.open(b) : n.open(b, s);
2230
2230
  if (!w) throw new $.MissingAPI();
2231
2231
  w.onerror = be(p), w.onblocked = q(e._fireOnBlocked), w.onupgradeneeded = q(function(y) {
2232
2232
  var S;
2233
2233
  v = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = pt, v.abort(), w.result.close(), (S = n.deleteDatabase(b)).onsuccess = S.onerror = q(function() {
2234
2234
  p(new $.NoSuchDatabase("Database ".concat(b, " doesnt exist")));
2235
- })) : (v.onerror = be(p), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = w.result, s && pa(e, v), ha(e, y / 10, v, p));
2235
+ })) : (v.onerror = be(p), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = w.result, i && pa(e, v), ha(e, y / 10, v, p));
2236
2236
  }, p), w.onsuccess = q(function() {
2237
2237
  v = null;
2238
2238
  var y, S, E, O, A, P = e.idbdb = w.result, T = St(P.objectStoreNames);
@@ -2241,7 +2241,7 @@ function Ra() {
2241
2241
  if (t.autoSchema) S = P, E = I, (y = e).verno = S.version / 10, E = y._dbSchema = $t(0, S, E), y._storeNames = St(S.objectStoreNames, 0), Lt(y, [y._allTables], K(E), E);
2242
2242
  else if (Ut(e, e._dbSchema, I), ((A = xn($t(0, (A = e).idbdb, I), A._dbSchema)).add.length || A.change.some(function(C) {
2243
2243
  return C.add.length || C.change.length;
2244
- })) && !s) 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."), P.close(), i = P.version + 1, s = !0, _(c());
2244
+ })) && !i) 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."), P.close(), s = P.version + 1, i = !0, _(c());
2245
2245
  Bt(e, I);
2246
2246
  } catch {
2247
2247
  }
@@ -2257,7 +2257,7 @@ function Ra() {
2257
2257
  if (0 < t.PR1398_maxLoop) return t.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), c();
2258
2258
  break;
2259
2259
  case "VersionError":
2260
- if (0 < i) return i = 0, c();
2260
+ if (0 < s) return s = 0, c();
2261
2261
  }
2262
2262
  return B.reject(_);
2263
2263
  });
@@ -2302,34 +2302,34 @@ function Ra() {
2302
2302
  });
2303
2303
  }
2304
2304
  function jn(e) {
2305
- function t(s) {
2306
- return e.next(s);
2305
+ function t(i) {
2306
+ return e.next(i);
2307
2307
  }
2308
- var n = i(t), a = i(function(s) {
2309
- return e.throw(s);
2308
+ var n = s(t), a = s(function(i) {
2309
+ return e.throw(i);
2310
2310
  });
2311
- function i(s) {
2311
+ function s(i) {
2312
2312
  return function(h) {
2313
- var c = s(h), h = c.value;
2313
+ var c = i(h), h = c.value;
2314
2314
  return c.done ? h : h && typeof h.then == "function" ? h.then(n, a) : U(h) ? Promise.all(h).then(n, a) : n(h);
2315
2315
  };
2316
2316
  }
2317
- return i(t)();
2317
+ return s(t)();
2318
2318
  }
2319
2319
  function Yt(e, t, n) {
2320
- for (var a = U(e) ? e.slice() : [e], i = 0; i < n; ++i) a.push(t);
2320
+ for (var a = U(e) ? e.slice() : [e], s = 0; s < n; ++s) a.push(t);
2321
2321
  return a;
2322
2322
  }
2323
2323
  var ma = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2324
2324
  return d(d({}, e), { table: function(t) {
2325
- var n = e.table(t), a = n.schema, i = {}, s = [];
2325
+ var n = e.table(t), a = n.schema, s = {}, i = [];
2326
2326
  function u(f, _, p) {
2327
- var b = mt(f), w = i[b] = i[b] || [], y = f == null ? 0 : typeof f == "string" ? 1 : f.length, S = 0 < _, S = d(d({}, p), { name: S ? "".concat(b, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: S, keyTail: _, keyLength: y, extractKey: En(f), unique: !S && p.unique });
2328
- return w.push(S), S.isPrimaryKey || s.push(S), 1 < y && u(y === 2 ? f[0] : f.slice(0, y - 1), _ + 1, p), w.sort(function(E, O) {
2327
+ var b = mt(f), w = s[b] = s[b] || [], y = f == null ? 0 : typeof f == "string" ? 1 : f.length, S = 0 < _, S = d(d({}, p), { name: S ? "".concat(b, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: S, keyTail: _, keyLength: y, extractKey: En(f), unique: !S && p.unique });
2328
+ return w.push(S), S.isPrimaryKey || i.push(S), 1 < y && u(y === 2 ? f[0] : f.slice(0, y - 1), _ + 1, p), w.sort(function(E, O) {
2329
2329
  return E.keyTail - O.keyTail;
2330
2330
  }), S;
2331
2331
  }
2332
- t = u(a.primaryKey.keyPath, 0, a.primaryKey), i[":id"] = [t];
2332
+ t = u(a.primaryKey.keyPath, 0, a.primaryKey), s[":id"] = [t];
2333
2333
  for (var c = 0, h = a.indexes; c < h.length; c++) {
2334
2334
  var g = h[c];
2335
2335
  u(g.keyPath, 0, g);
@@ -2338,8 +2338,8 @@ function Ra() {
2338
2338
  var _, p = f.query.index;
2339
2339
  return p.isVirtual ? d(d({}, f), { query: { index: p.lowLevelIndex, range: (_ = f.query.range, p = p.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Yt(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: Yt(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : f;
2340
2340
  }
2341
- return d(d({}, n), { schema: d(d({}, a), { primaryKey: t, indexes: s, getIndexByKeyPath: function(f) {
2342
- return (f = i[mt(f)]) && f[0];
2341
+ return d(d({}, n), { schema: d(d({}, a), { primaryKey: t, indexes: i, getIndexByKeyPath: function(f) {
2342
+ return (f = s[mt(f)]) && f[0];
2343
2343
  } }), count: function(f) {
2344
2344
  return n.count(v(f));
2345
2345
  }, query: function(f) {
@@ -2367,11 +2367,11 @@ function Ra() {
2367
2367
  } });
2368
2368
  } };
2369
2369
  function Nn(e, t, n, a) {
2370
- return n = n || {}, a = a || "", K(e).forEach(function(i) {
2371
- var s, u, c;
2372
- ee(t, i) ? (s = e[i], u = t[i], typeof s == "object" && typeof u == "object" && s && u ? (c = tn(s)) !== tn(u) ? n[a + i] = t[i] : c === "Object" ? Nn(s, u, n, a + i + ".") : s !== u && (n[a + i] = t[i]) : s !== u && (n[a + i] = t[i])) : n[a + i] = void 0;
2373
- }), K(t).forEach(function(i) {
2374
- ee(e, i) || (n[a + i] = t[i]);
2370
+ return n = n || {}, a = a || "", K(e).forEach(function(s) {
2371
+ var i, u, c;
2372
+ ee(t, s) ? (i = e[s], u = t[s], typeof i == "object" && typeof u == "object" && i && u ? (c = tn(i)) !== tn(u) ? n[a + s] = t[s] : c === "Object" ? Nn(i, u, n, a + s + ".") : i !== u && (n[a + s] = t[s]) : i !== u && (n[a + s] = t[s])) : n[a + s] = void 0;
2373
+ }), K(t).forEach(function(s) {
2374
+ ee(e, s) || (n[a + s] = t[s]);
2375
2375
  }), n;
2376
2376
  }
2377
2377
  function Kn(e, t) {
@@ -2380,27 +2380,27 @@ function Ra() {
2380
2380
  var ba = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2381
2381
  return d(d({}, e), { table: function(t) {
2382
2382
  var n = e.table(t), a = n.schema.primaryKey;
2383
- return d(d({}, n), { mutate: function(i) {
2384
- var s = G.trans, u = s.table(t).hook, c = u.deleting, h = u.creating, g = u.updating;
2385
- switch (i.type) {
2383
+ return d(d({}, n), { mutate: function(s) {
2384
+ var i = G.trans, u = i.table(t).hook, c = u.deleting, h = u.creating, g = u.updating;
2385
+ switch (s.type) {
2386
2386
  case "add":
2387
2387
  if (h.fire === J) break;
2388
- return s._promise("readwrite", function() {
2389
- return v(i);
2388
+ return i._promise("readwrite", function() {
2389
+ return v(s);
2390
2390
  }, !0);
2391
2391
  case "put":
2392
2392
  if (h.fire === J && g.fire === J) break;
2393
- return s._promise("readwrite", function() {
2394
- return v(i);
2393
+ return i._promise("readwrite", function() {
2394
+ return v(s);
2395
2395
  }, !0);
2396
2396
  case "delete":
2397
2397
  if (c.fire === J) break;
2398
- return s._promise("readwrite", function() {
2399
- return v(i);
2398
+ return i._promise("readwrite", function() {
2399
+ return v(s);
2400
2400
  }, !0);
2401
2401
  case "deleteRange":
2402
2402
  if (c.fire === J) break;
2403
- return s._promise("readwrite", function() {
2403
+ return i._promise("readwrite", function() {
2404
2404
  return function f(_, p, b) {
2405
2405
  return n.query({ trans: _, values: !1, query: { index: a, range: p }, limit: b }).then(function(w) {
2406
2406
  var y = w.result;
@@ -2408,10 +2408,10 @@ function Ra() {
2408
2408
  return 0 < S.numFailures ? Promise.reject(S.failures[0]) : y.length < b ? { failures: [], numFailures: 0, lastResult: void 0 } : f(_, d(d({}, p), { lower: y[y.length - 1], lowerOpen: !0 }), b);
2409
2409
  });
2410
2410
  });
2411
- }(i.trans, i.range, 1e4);
2411
+ }(s.trans, s.range, 1e4);
2412
2412
  }, !0);
2413
2413
  }
2414
- return n.mutate(i);
2414
+ return n.mutate(s);
2415
2415
  function v(f) {
2416
2416
  var _, p, b, w = G.trans, y = f.keys || Kn(a, f);
2417
2417
  if (!y) throw new Error("Keys missing");
@@ -2441,7 +2441,7 @@ function Ra() {
2441
2441
  function Or(e, t, n) {
2442
2442
  try {
2443
2443
  if (!t || t.keys.length < e.length) return null;
2444
- for (var a = [], i = 0, s = 0; i < t.keys.length && s < e.length; ++i) Y(t.keys[i], e[s]) === 0 && (a.push(n ? Te(t.values[i]) : t.values[i]), ++s);
2444
+ for (var a = [], s = 0, i = 0; s < t.keys.length && i < e.length; ++s) Y(t.keys[s], e[i]) === 0 && (a.push(n ? Te(t.values[s]) : t.values[s]), ++i);
2445
2445
  return a.length === e.length ? a : null;
2446
2446
  } catch {
2447
2447
  return null;
@@ -2452,9 +2452,9 @@ function Ra() {
2452
2452
  var n = e.table(t);
2453
2453
  return d(d({}, n), { getMany: function(a) {
2454
2454
  if (!a.cache) return n.getMany(a);
2455
- var i = Or(a.keys, a.trans._cache, a.cache === "clone");
2456
- return i ? B.resolve(i) : n.getMany(a).then(function(s) {
2457
- return a.trans._cache = { keys: a.keys, values: a.cache === "clone" ? Te(s) : s }, s;
2455
+ var s = Or(a.keys, a.trans._cache, a.cache === "clone");
2456
+ return s ? B.resolve(s) : n.getMany(a).then(function(i) {
2457
+ return a.trans._cache = { keys: a.keys, values: a.cache === "clone" ? Te(i) : i }, i;
2458
2458
  });
2459
2459
  }, mutate: function(a) {
2460
2460
  return a.type !== "add" && (a.trans._cache = null), n.mutate(a);
@@ -2477,20 +2477,20 @@ function Ra() {
2477
2477
  }
2478
2478
  var wa = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2479
2479
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2480
- return d(d({}, e), { transaction: function(a, i, s) {
2481
- if (G.subscr && i !== "readonly") throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(G.querier));
2482
- return e.transaction(a, i, s);
2480
+ return d(d({}, e), { transaction: function(a, s, i) {
2481
+ if (G.subscr && s !== "readonly") throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(G.querier));
2482
+ return e.transaction(a, s, i);
2483
2483
  }, table: function(a) {
2484
- var i = e.table(a), s = i.schema, u = s.primaryKey, f = s.indexes, c = u.extractKey, h = u.outbound, g = u.autoIncrement && f.filter(function(p) {
2484
+ var s = e.table(a), i = s.schema, u = i.primaryKey, f = i.indexes, c = u.extractKey, h = u.outbound, g = u.autoIncrement && f.filter(function(p) {
2485
2485
  return p.compound && p.keyPath.includes(u.keyPath);
2486
- }), v = d(d({}, i), { mutate: function(p) {
2486
+ }), v = d(d({}, s), { mutate: function(p) {
2487
2487
  function b(R) {
2488
2488
  return R = "idb://".concat(t, "/").concat(a, "/").concat(R), O[R] || (O[R] = new oe());
2489
2489
  }
2490
2490
  var w, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), A = b(""), P = b(":dels"), T = p.type, M = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Kn(u, p).filter(function(R) {
2491
2491
  return R;
2492
2492
  }), p.values] : [], I = M[0], C = M[1], M = p.trans._cache;
2493
- return U(I) ? (A.addKeys(I), (M = T === "delete" || I.length === C.length ? Or(I, M) : null) || P.addKeys(I), (M || C) && (w = b, y = M, S = C, s.indexes.forEach(function(R) {
2493
+ return U(I) ? (A.addKeys(I), (M = T === "delete" || I.length === C.length ? Or(I, M) : null) || P.addKeys(I), (M || C) && (w = b, y = M, S = C, i.indexes.forEach(function(R) {
2494
2494
  var L = w(R.name || "");
2495
2495
  function W(H) {
2496
2496
  return H != null ? R.extractKey(H) : null;
@@ -2504,9 +2504,9 @@ function Ra() {
2504
2504
  var F = y && W(y[ue]), ue = S && W(S[ue]);
2505
2505
  Y(F, ue) !== 0 && (F != null && z(F), ue != null && z(ue));
2506
2506
  });
2507
- }))) : I ? (C = { from: (C = I.lower) !== null && C !== void 0 ? C : e.MIN_KEY, to: (C = I.upper) !== null && C !== void 0 ? C : e.MAX_KEY }, P.add(C), A.add(C)) : (A.add(n), P.add(n), s.indexes.forEach(function(R) {
2507
+ }))) : I ? (C = { from: (C = I.lower) !== null && C !== void 0 ? C : e.MIN_KEY, to: (C = I.upper) !== null && C !== void 0 ? C : e.MAX_KEY }, P.add(C), A.add(C)) : (A.add(n), P.add(n), i.indexes.forEach(function(R) {
2508
2508
  return b(R.name).add(n);
2509
- })), i.mutate(p).then(function(R) {
2509
+ })), s.mutate(p).then(function(R) {
2510
2510
  return !I || p.type !== "add" && p.type !== "put" || (A.addKeys(R.results), g && g.forEach(function(L) {
2511
2511
  for (var W = p.values.map(function(F) {
2512
2512
  return L.extractKey(F);
@@ -2526,15 +2526,15 @@ function Ra() {
2526
2526
  }, count: f, query: f, openCursor: f };
2527
2527
  return K(_).forEach(function(p) {
2528
2528
  v[p] = function(b) {
2529
- var w = G.subscr, y = !!w, S = xr(G, i) && Ar(p, b) ? b.obsSet = {} : w;
2529
+ var w = G.subscr, y = !!w, S = xr(G, s) && Ar(p, b) ? b.obsSet = {} : w;
2530
2530
  if (y) {
2531
2531
  var E = function(C) {
2532
2532
  return C = "idb://".concat(t, "/").concat(a, "/").concat(C), S[C] || (S[C] = new oe());
2533
2533
  }, O = E(""), A = E(":dels"), w = _[p](b), y = w[0], w = w[1];
2534
2534
  if ((p === "query" && y.isPrimaryKey && !b.values ? A : E(y.name || "")).add(w), !y.isPrimaryKey) {
2535
2535
  if (p !== "count") {
2536
- var P = p === "query" && h && b.values && i.query(d(d({}, b), { values: !1 }));
2537
- return i[p].apply(this, arguments).then(function(C) {
2536
+ var P = p === "query" && h && b.values && s.query(d(d({}, b), { values: !1 }));
2537
+ return s[p].apply(this, arguments).then(function(C) {
2538
2538
  if (p === "query") {
2539
2539
  if (h && b.values) return P.then(function(W) {
2540
2540
  return W = W.result, O.addKeys(W), C;
@@ -2558,7 +2558,7 @@ function Ra() {
2558
2558
  A.add(n);
2559
2559
  }
2560
2560
  }
2561
- return i[p].apply(this, arguments);
2561
+ return s[p].apply(this, arguments);
2562
2562
  };
2563
2563
  }), v;
2564
2564
  } });
@@ -2567,17 +2567,17 @@ function Ra() {
2567
2567
  if (n.numFailures === 0) return t;
2568
2568
  if (t.type === "deleteRange") return null;
2569
2569
  var a = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
2570
- return n.numFailures === a ? null : (t = d({}, t), U(t.keys) && (t.keys = t.keys.filter(function(i, s) {
2571
- return !(s in n.failures);
2572
- })), "values" in t && U(t.values) && (t.values = t.values.filter(function(i, s) {
2573
- return !(s in n.failures);
2570
+ return n.numFailures === a ? null : (t = d({}, t), U(t.keys) && (t.keys = t.keys.filter(function(s, i) {
2571
+ return !(i in n.failures);
2572
+ })), "values" in t && U(t.values) && (t.values = t.values.filter(function(s, i) {
2573
+ return !(i in n.failures);
2574
2574
  })), t);
2575
2575
  }
2576
2576
  function Bn(e, t) {
2577
2577
  return n = e, ((a = t).lower === void 0 || (a.lowerOpen ? 0 < Y(n, a.lower) : 0 <= Y(n, a.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? Y(e, t.upper) < 0 : Y(e, t.upper) <= 0));
2578
2578
  var n, a;
2579
2579
  }
2580
- function Dr(e, t, _, a, i, s) {
2580
+ function Dr(e, t, _, a, s, i) {
2581
2581
  if (!_ || _.length === 0) return e;
2582
2582
  var u = t.query.index, c = u.multiEntry, h = t.query.range, g = a.schema.primaryKey.extractKey, v = u.extractKey, f = (u.lowLevelIndex || u).extractKey, _ = _.reduce(function(p, b) {
2583
2583
  var w = p, y = [];
@@ -2625,47 +2625,47 @@ function Ra() {
2625
2625
  }, e);
2626
2626
  return _ === e ? e : (_.sort(function(p, b) {
2627
2627
  return Y(f(p), f(b)) || Y(g(p), g(b));
2628
- }), t.limit && t.limit < 1 / 0 && (_.length > t.limit ? _.length = t.limit : e.length === t.limit && _.length < t.limit && (i.dirty = !0)), s ? Object.freeze(_) : _);
2628
+ }), t.limit && t.limit < 1 / 0 && (_.length > t.limit ? _.length = t.limit : e.length === t.limit && _.length < t.limit && (s.dirty = !0)), i ? Object.freeze(_) : _);
2629
2629
  }
2630
2630
  function Pr(e, t) {
2631
2631
  return Y(e.lower, t.lower) === 0 && Y(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2632
2632
  }
2633
2633
  function _a(e, t) {
2634
- return function(n, a, i, s) {
2634
+ return function(n, a, s, i) {
2635
2635
  if (n === void 0) return a !== void 0 ? -1 : 0;
2636
2636
  if (a === void 0) return 1;
2637
2637
  if ((a = Y(n, a)) === 0) {
2638
- if (i && s) return 0;
2639
- if (i) return 1;
2640
- if (s) return -1;
2638
+ if (s && i) return 0;
2639
+ if (s) return 1;
2640
+ if (i) return -1;
2641
2641
  }
2642
2642
  return a;
2643
- }(e.lower, t.lower, e.lowerOpen, t.lowerOpen) <= 0 && 0 <= function(n, a, i, s) {
2643
+ }(e.lower, t.lower, e.lowerOpen, t.lowerOpen) <= 0 && 0 <= function(n, a, s, i) {
2644
2644
  if (n === void 0) return a !== void 0 ? 1 : 0;
2645
2645
  if (a === void 0) return -1;
2646
2646
  if ((a = Y(n, a)) === 0) {
2647
- if (i && s) return 0;
2648
- if (i) return -1;
2649
- if (s) return 1;
2647
+ if (s && i) return 0;
2648
+ if (s) return -1;
2649
+ if (i) return 1;
2650
2650
  }
2651
2651
  return a;
2652
2652
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
2653
2653
  }
2654
2654
  function Sa(e, t, n, a) {
2655
2655
  e.subscribers.add(n), a.addEventListener("abort", function() {
2656
- var i, s;
2657
- e.subscribers.delete(n), e.subscribers.size === 0 && (i = e, s = t, setTimeout(function() {
2658
- i.subscribers.size === 0 && Me(s, i);
2656
+ var s, i;
2657
+ e.subscribers.delete(n), e.subscribers.size === 0 && (s = e, i = t, setTimeout(function() {
2658
+ s.subscribers.size === 0 && Me(i, s);
2659
2659
  }, 3e3));
2660
2660
  });
2661
2661
  }
2662
2662
  var Ea = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2663
2663
  var t = e.schema.name;
2664
- return d(d({}, e), { transaction: function(n, a, i) {
2665
- var s, u, c = e.transaction(n, a, i);
2666
- return a === "readwrite" && (u = (s = new AbortController()).signal, i = function(h) {
2664
+ return d(d({}, e), { transaction: function(n, a, s) {
2665
+ var i, u, c = e.transaction(n, a, s);
2666
+ return a === "readwrite" && (u = (i = new AbortController()).signal, s = function(h) {
2667
2667
  return function() {
2668
- if (s.abort(), a === "readwrite") {
2668
+ if (i.abort(), a === "readwrite") {
2669
2669
  for (var g = /* @__PURE__ */ new Set(), v = 0, f = n; v < f.length; v++) {
2670
2670
  var _ = f[v], p = Fe["idb://".concat(t, "/").concat(_)];
2671
2671
  if (p) {
@@ -2692,30 +2692,30 @@ function Ra() {
2692
2692
  });
2693
2693
  }
2694
2694
  };
2695
- }, c.addEventListener("abort", i(!1), { signal: u }), c.addEventListener("error", i(!1), { signal: u }), c.addEventListener("complete", i(!0), { signal: u })), c;
2695
+ }, c.addEventListener("abort", s(!1), { signal: u }), c.addEventListener("error", s(!1), { signal: u }), c.addEventListener("complete", s(!0), { signal: u })), c;
2696
2696
  }, table: function(n) {
2697
- var a = e.table(n), i = a.schema.primaryKey;
2698
- return d(d({}, a), { mutate: function(s) {
2697
+ var a = e.table(n), s = a.schema.primaryKey;
2698
+ return d(d({}, a), { mutate: function(i) {
2699
2699
  var u = G.trans;
2700
- if (i.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(s);
2700
+ if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(i);
2701
2701
  var c = Fe["idb://".concat(t, "/").concat(n)];
2702
- return c ? (u = a.mutate(s), s.type !== "add" && s.type !== "put" || !(50 <= s.values.length || Kn(i, s).some(function(h) {
2702
+ return c ? (u = a.mutate(i), i.type !== "add" && i.type !== "put" || !(50 <= i.values.length || Kn(s, i).some(function(h) {
2703
2703
  return h == null;
2704
- })) ? (c.optimisticOps.push(s), s.mutatedParts && Ht(s.mutatedParts), u.then(function(h) {
2705
- 0 < h.numFailures && (Me(c.optimisticOps, s), (h = kr(0, s, h)) && c.optimisticOps.push(h), s.mutatedParts && Ht(s.mutatedParts));
2704
+ })) ? (c.optimisticOps.push(i), i.mutatedParts && Ht(i.mutatedParts), u.then(function(h) {
2705
+ 0 < h.numFailures && (Me(c.optimisticOps, i), (h = kr(0, i, h)) && c.optimisticOps.push(h), i.mutatedParts && Ht(i.mutatedParts));
2706
2706
  }), u.catch(function() {
2707
- Me(c.optimisticOps, s), s.mutatedParts && Ht(s.mutatedParts);
2707
+ Me(c.optimisticOps, i), i.mutatedParts && Ht(i.mutatedParts);
2708
2708
  })) : u.then(function(h) {
2709
- var g = kr(0, d(d({}, s), { values: s.values.map(function(v, f) {
2709
+ var g = kr(0, d(d({}, i), { values: i.values.map(function(v, f) {
2710
2710
  var _;
2711
- return h.failures[f] ? v : (v = (_ = i.keyPath) !== null && _ !== void 0 && _.includes(".") ? Te(v) : d({}, v), fe(v, i.keyPath, h.results[f]), v);
2711
+ return h.failures[f] ? v : (v = (_ = s.keyPath) !== null && _ !== void 0 && _.includes(".") ? Te(v) : d({}, v), fe(v, s.keyPath, h.results[f]), v);
2712
2712
  }) }), h);
2713
2713
  c.optimisticOps.push(g), queueMicrotask(function() {
2714
- return s.mutatedParts && Ht(s.mutatedParts);
2714
+ return i.mutatedParts && Ht(i.mutatedParts);
2715
2715
  });
2716
- }), u) : a.mutate(s);
2717
- }, query: function(s) {
2718
- if (!xr(G, a) || !Ar("query", s)) return a.query(s);
2716
+ }), u) : a.mutate(i);
2717
+ }, query: function(i) {
2718
+ if (!xr(G, a) || !Ar("query", i)) return a.query(i);
2719
2719
  var u = ((g = G.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", f = G, c = f.requery, h = f.signal, g = function(b, w, y, S) {
2720
2720
  var E = Fe["idb://".concat(b, "/").concat(w)];
2721
2721
  if (!E) return [];
@@ -2735,8 +2735,8 @@ function Ra() {
2735
2735
  return Pr(P.req.query.range, S.query.range);
2736
2736
  }), [A, !!A, E, O];
2737
2737
  }
2738
- }(t, n, "query", s), v = g[0], f = g[1], _ = g[2], p = g[3];
2739
- return v && f ? v.obsSet = s.obsSet : (f = a.query(s).then(function(b) {
2738
+ }(t, n, "query", i), v = g[0], f = g[1], _ = g[2], p = g[3];
2739
+ return v && f ? v.obsSet = i.obsSet : (f = a.query(i).then(function(b) {
2740
2740
  var w = b.result;
2741
2741
  if (v && (v.res = w), u) {
2742
2742
  for (var y = 0, S = w.length; y < S; ++y) Object.freeze(w[y]);
@@ -2745,15 +2745,15 @@ function Ra() {
2745
2745
  return b;
2746
2746
  }).catch(function(b) {
2747
2747
  return p && v && Me(p, v), Promise.reject(b);
2748
- }), v = { obsSet: s.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: s, dirty: !1 }, p ? p.push(v) : (p = [v], (_ = _ || (Fe["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[s.query.index.name || ""] = p)), Sa(v, p, c, h), v.promise.then(function(b) {
2749
- return { result: Dr(b.result, s, _ == null ? void 0 : _.optimisticOps, a, v, u) };
2748
+ }), v = { obsSet: i.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: i, dirty: !1 }, p ? p.push(v) : (p = [v], (_ = _ || (Fe["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[i.query.index.name || ""] = p)), Sa(v, p, c, h), v.promise.then(function(b) {
2749
+ return { result: Dr(b.result, i, _ == null ? void 0 : _.optimisticOps, a, v, u) };
2750
2750
  });
2751
2751
  } });
2752
2752
  } });
2753
2753
  } };
2754
2754
  function Qt(e, t) {
2755
- return new Proxy(e, { get: function(n, a, i) {
2756
- return a === "db" ? t : Reflect.get(n, a, i);
2755
+ return new Proxy(e, { get: function(n, a, s) {
2756
+ return a === "db" ? t : Reflect.get(n, a, s);
2757
2757
  } });
2758
2758
  }
2759
2759
  var Ee = (ne.prototype.version = function(e) {
@@ -2775,14 +2775,14 @@ function Ra() {
2775
2775
  t._state.dbReadyPromise.then(n, a);
2776
2776
  }).then(e);
2777
2777
  }, ne.prototype.use = function(e) {
2778
- var t = e.stack, n = e.create, a = e.level, i = e.name;
2779
- return i && this.unuse({ stack: t, name: i }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: n, level: a ?? 10, name: i }), e.sort(function(s, u) {
2780
- return s.level - u.level;
2778
+ var t = e.stack, n = e.create, a = e.level, s = e.name;
2779
+ return s && this.unuse({ stack: t, name: s }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: n, level: a ?? 10, name: s }), e.sort(function(i, u) {
2780
+ return i.level - u.level;
2781
2781
  }), this;
2782
2782
  }, ne.prototype.unuse = function(e) {
2783
2783
  var t = e.stack, n = e.name, a = e.create;
2784
- return t && this._middlewares[t] && (this._middlewares[t] = this._middlewares[t].filter(function(i) {
2785
- return a ? i.create !== a : !!n && i.name !== n;
2784
+ return t && this._middlewares[t] && (this._middlewares[t] = this._middlewares[t].filter(function(s) {
2785
+ return a ? s.create !== a : !!n && s.name !== n;
2786
2786
  })), this;
2787
2787
  }, ne.prototype.open = function() {
2788
2788
  var e = this;
@@ -2810,14 +2810,14 @@ function Ra() {
2810
2810
  var t = this;
2811
2811
  e === void 0 && (e = { disableAutoOpen: !0 });
2812
2812
  var n = 0 < arguments.length && typeof arguments[0] != "object", a = this._state;
2813
- return new B(function(i, s) {
2813
+ return new B(function(s, i) {
2814
2814
  function u() {
2815
2815
  t.close(e);
2816
2816
  var c = t._deps.indexedDB.deleteDatabase(t.name);
2817
2817
  c.onsuccess = q(function() {
2818
2818
  var h, g, v;
2819
- h = t._deps, g = t.name, v = h.indexedDB, h = h.IDBKeyRange, Dn(v) || g === Tt || kn(v, h).delete(g).catch(J), i();
2820
- }), c.onerror = be(s), c.onblocked = t._fireOnBlocked;
2819
+ h = t._deps, g = t.name, v = h.indexedDB, h = h.IDBKeyRange, Dn(v) || g === Tt || kn(v, h).delete(g).catch(J), s();
2820
+ }), c.onerror = be(i), c.onblocked = t._fireOnBlocked;
2821
2821
  }
2822
2822
  if (n) throw new $.InvalidArgument("Invalid closeOptions argument to db.delete()");
2823
2823
  a.isBeingOpened ? a.dbReadyPromise.then(u) : u();
@@ -2840,40 +2840,40 @@ function Ra() {
2840
2840
  });
2841
2841
  }, enumerable: !1, configurable: !0 }), ne.prototype.transaction = function() {
2842
2842
  var e = (function(t, n, a) {
2843
- var i = arguments.length;
2844
- if (i < 2) throw new $.InvalidArgument("Too few arguments");
2845
- for (var s = new Array(i - 1); --i; ) s[i - 1] = arguments[i];
2846
- return a = s.pop(), [t, Xn(s), a];
2843
+ var s = arguments.length;
2844
+ if (s < 2) throw new $.InvalidArgument("Too few arguments");
2845
+ for (var i = new Array(s - 1); --s; ) i[s - 1] = arguments[s];
2846
+ return a = i.pop(), [t, Xn(i), a];
2847
2847
  }).apply(this, arguments);
2848
2848
  return this._transaction.apply(this, e);
2849
2849
  }, ne.prototype._transaction = function(e, t, n) {
2850
- var a = this, i = G.trans;
2851
- i && i.db === this && e.indexOf("!") === -1 || (i = null);
2852
- var s, u, c = e.indexOf("?") !== -1;
2850
+ var a = this, s = G.trans;
2851
+ s && s.db === this && e.indexOf("!") === -1 || (s = null);
2852
+ var i, u, c = e.indexOf("?") !== -1;
2853
2853
  e = e.replace("!", "").replace("?", "");
2854
2854
  try {
2855
2855
  if (u = t.map(function(g) {
2856
2856
  if (g = g instanceof a.Table ? g.name : g, typeof g != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
2857
2857
  return g;
2858
- }), e == "r" || e === gn) s = gn;
2858
+ }), e == "r" || e === gn) i = gn;
2859
2859
  else {
2860
2860
  if (e != "rw" && e != yn) throw new $.InvalidArgument("Invalid transaction mode: " + e);
2861
- s = yn;
2861
+ i = yn;
2862
2862
  }
2863
- if (i) {
2864
- if (i.mode === gn && s === yn) {
2863
+ if (s) {
2864
+ if (s.mode === gn && i === yn) {
2865
2865
  if (!c) throw new $.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2866
- i = null;
2866
+ s = null;
2867
2867
  }
2868
- i && u.forEach(function(g) {
2869
- if (i && i.storeNames.indexOf(g) === -1) {
2868
+ s && u.forEach(function(g) {
2869
+ if (s && s.storeNames.indexOf(g) === -1) {
2870
2870
  if (!c) throw new $.SubTransaction("Table " + g + " not included in parent transaction.");
2871
- i = null;
2871
+ s = null;
2872
2872
  }
2873
- }), c && i && !i.active && (i = null);
2873
+ }), c && s && !s.active && (s = null);
2874
2874
  }
2875
2875
  } catch (g) {
2876
- return i ? i._promise(null, function(v, f) {
2876
+ return s ? s._promise(null, function(v, f) {
2877
2877
  f(g);
2878
2878
  }) : te(g);
2879
2879
  }
@@ -2904,8 +2904,8 @@ function Ra() {
2904
2904
  return y._reject(O), te(O);
2905
2905
  });
2906
2906
  });
2907
- }).bind(null, this, s, u, i, n);
2908
- return i ? i._promise(s, h, "lock") : G.trans ? Ge(G.transless, function() {
2907
+ }).bind(null, this, i, u, s, n);
2908
+ return s ? s._promise(i, h, "lock") : G.trans ? Ge(G.transless, function() {
2909
2909
  return a._whenReady(h);
2910
2910
  }) : this._whenReady(h);
2911
2911
  }, ne.prototype.table = function(e) {
@@ -2917,7 +2917,7 @@ function Ra() {
2917
2917
  this._middlewares = {}, this.verno = 0;
2918
2918
  var a = ne.dependencies;
2919
2919
  this._options = t = d({ addons: ne.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, a = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
2920
- var i, s, u, c, h, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: J, dbReadyPromise: null, cancelOpen: J, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2920
+ var s, i, u, c, h, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: J, dbReadyPromise: null, cancelOpen: J, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2921
2921
  g.dbReadyPromise = new B(function(f) {
2922
2922
  g.dbReadyResolve = f;
2923
2923
  }), g.openCanceller = new B(function(f, _) {
@@ -2931,18 +2931,18 @@ function Ra() {
2931
2931
  }));
2932
2932
  });
2933
2933
  };
2934
- }), this.Collection = (i = this, ft(ia.prototype, function(S, y) {
2935
- this.db = i;
2936
- var p = sr, b = null;
2934
+ }), this.Collection = (s = this, ft(sa.prototype, function(S, y) {
2935
+ this.db = s;
2936
+ var p = ir, b = null;
2937
2937
  if (y) try {
2938
2938
  p = y();
2939
2939
  } catch (E) {
2940
2940
  b = E;
2941
2941
  }
2942
2942
  var w = S._ctx, y = w.table, S = y.hook.reading.fire;
2943
- this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.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: b, or: w.or, valueMapper: S !== st ? S : null };
2944
- })), this.Table = (s = this, ft(lr.prototype, function(f, _, p) {
2945
- this.db = s, this._tx = p, this.name = f, this.schema = _, this.hook = s._allTables[f] ? s._allTables[f].hook : dt(null, { creating: [Jr, J], reading: [Xr, st], updating: [Zr, J], deleting: [Vr, J] });
2943
+ this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.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: b, or: w.or, valueMapper: S !== it ? S : null };
2944
+ })), this.Table = (i = this, ft(lr.prototype, function(f, _, p) {
2945
+ this.db = i, this._tx = p, this.name = f, this.schema = _, this.hook = i._allTables[f] ? i._allTables[f].hook : dt(null, { creating: [Jr, J], reading: [Xr, it], updating: [Zr, J], deleting: [Vr, J] });
2946
2946
  })), this.Transaction = (u = this, ft(ua.prototype, function(f, _, p, b, w) {
2947
2947
  var y = this;
2948
2948
  this.db = u, this.mode = f, this.storeNames = _, this.schema = p, this.chromeTransactionDurability = b, 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 B(function(S, E) {
@@ -3006,13 +3006,13 @@ function Ra() {
3006
3006
  Xt = { indexedDB: null, IDBKeyRange: null };
3007
3007
  }
3008
3008
  function Ir(e) {
3009
- var t, n = !1, a = new Oa(function(i) {
3010
- var s = rn(e), u, c = !1, h = {}, g = {}, v = { get closed() {
3009
+ var t, n = !1, a = new Oa(function(s) {
3010
+ var i = rn(e), u, c = !1, h = {}, g = {}, v = { get closed() {
3011
3011
  return c;
3012
3012
  }, unsubscribe: function() {
3013
3013
  c || (c = !0, u && u.abort(), f && Ce.storagemutated.unsubscribe(p));
3014
3014
  } };
3015
- i.start && i.start(v);
3015
+ s.start && s.start(v);
3016
3016
  var f = !1, _ = function() {
3017
3017
  return pn(b);
3018
3018
  }, p = function(w) {
@@ -3022,9 +3022,9 @@ function Ra() {
3022
3022
  !c && Xt.indexedDB && (h = {}, w = {}, u && u.abort(), u = new AbortController(), S = function(E) {
3023
3023
  var O = Ve();
3024
3024
  try {
3025
- s && qe();
3025
+ i && qe();
3026
3026
  var A = ke(e, E);
3027
- return A = s ? A.finally(De) : A;
3027
+ return A = i ? A.finally(De) : A;
3028
3028
  } finally {
3029
3029
  O && Ze();
3030
3030
  }
@@ -3033,11 +3033,11 @@ function Ra() {
3033
3033
  for (var A in O) if (ee(O, A)) return;
3034
3034
  return 1;
3035
3035
  }(g = w) || f || (Ce(gt, p), f = !0), pn(function() {
3036
- return !c && i.next && i.next(E);
3036
+ return !c && s.next && s.next(E);
3037
3037
  }));
3038
3038
  }, function(E) {
3039
3039
  n = !1, ["DatabaseClosedError", "AbortError"].includes(E == null ? void 0 : E.name) || c || pn(function() {
3040
- c || i.error && i.error(E);
3040
+ c || s.error && s.error(E);
3041
3041
  });
3042
3042
  }));
3043
3043
  };
@@ -3069,10 +3069,10 @@ function Ra() {
3069
3069
  }, getDatabaseNames: function(e) {
3070
3070
  try {
3071
3071
  return t = We.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (Dn(n) ? Promise.resolve(n.databases()).then(function(a) {
3072
- return a.map(function(i) {
3073
- return i.name;
3074
- }).filter(function(i) {
3075
- return i !== Tt;
3072
+ return a.map(function(s) {
3073
+ return s.name;
3074
+ }).filter(function(s) {
3075
+ return s !== Tt;
3076
3076
  });
3077
3077
  }) : kn(n, t).toCollection().primaryKeys()).then(e);
3078
3078
  } catch {
@@ -3098,8 +3098,8 @@ function Ra() {
3098
3098
  try {
3099
3099
  var a = jn(e.apply(n, t || []));
3100
3100
  return a && typeof a.then == "function" ? a : B.resolve(a);
3101
- } catch (i) {
3102
- return te(i);
3101
+ } catch (s) {
3102
+ return te(s);
3103
3103
  }
3104
3104
  }, currentTransaction: { get: function() {
3105
3105
  return G.trans || null;
@@ -3241,11 +3241,11 @@ class jr {
3241
3241
  return { data: null, message: "No Messages error", success: !1 };
3242
3242
  let N = U.map((X) => this.db.table(j.MESSAGES).get({ id: X.message_id }));
3243
3243
  return en.Promise.all(N).then(async (X) => {
3244
- const se = X.map((le) => le.data), ee = {
3244
+ const ie = X.map((le) => le.data), ee = {
3245
3245
  data: {
3246
3246
  presentation: (r == null ? void 0 : r.presentation) || "not set",
3247
3247
  slide: (r == null ? void 0 : r.slide) || "not set",
3248
- messages: se,
3248
+ messages: ie,
3249
3249
  dashboard: r.dashboard,
3250
3250
  widget: r.widget,
3251
3251
  query: r
@@ -3308,7 +3308,7 @@ class jr {
3308
3308
  const d = o.data.title;
3309
3309
  let x = 0;
3310
3310
  return o.data.messages.forEach(async (D) => {
3311
- var K, U, N, X, se, ee, le;
3311
+ var K, U, N, X, ie, ee, le;
3312
3312
  D.id !== null && (await this.db.table(j.MESSAGES).put({
3313
3313
  id: D.id,
3314
3314
  utc: D.utc,
@@ -3330,7 +3330,7 @@ class jr {
3330
3330
  dashboard_id: r.dashboard,
3331
3331
  engagement: ((K = D.topics[0]) == null ? void 0 : K.engagement) || ((U = D.dynamics) == null ? void 0 : U.engagement) || 0,
3332
3332
  impressions: ((N = D.topics[0]) == null ? void 0 : N.impressions) || ((X = D.dynamics) == null ? void 0 : X.semrush_visits) || 0,
3333
- reach: ((se = D.topics[0]) == null ? void 0 : se.reach) || ((ee = D.dynamics) == null ? void 0 : ee.potential_reach) || 0,
3333
+ reach: ((ie = D.topics[0]) == null ? void 0 : ie.reach) || ((ee = D.dynamics) == null ? void 0 : ee.potential_reach) || 0,
3334
3334
  sentiment: ((le = D.topics[0]) == null ? void 0 : le.sentiment) || 0,
3335
3335
  utc: D.utc,
3336
3336
  expires: D.expires
@@ -4040,42 +4040,44 @@ function za(l) {
4040
4040
  }
4041
4041
  function Ha(l, r) {
4042
4042
  switch (l) {
4043
+ case "ax":
4044
+ return '<div class="axa-switch-small bg-center bg-cover w-6 h-6"></div>';
4043
4045
  case "bl":
4044
- return `text-blue fa-solid fa-rss fa-${r}`;
4046
+ return `<li class="text-blue fa-solid fa-rss fa-${r}"/>`;
4045
4047
  case "co":
4046
- return `fa-solid fa-comment fa-${r}`;
4048
+ return `<li class="fa-solid fa-comment fa-${r}"/>`;
4047
4049
  case "da":
4048
- return `fa-brands fa-dailymotion fa-${r}`;
4050
+ return `<li class="fa-brands fa-dailymotion fa-${r}"/>`;
4049
4051
  case "fb":
4050
- return `text-blue-900 fa-brands fa-facebook fa-${r}`;
4052
+ return `<li class="text-blue-900 fa-brands fa-facebook fa-${r}"/>`;
4051
4053
  case "fo":
4052
- return `fa-solid fa-messages fa-${r}`;
4054
+ return `<li class="fa-solid fa-messages fa-${r}"/>`;
4053
4055
  case "ig":
4054
- return `fa-brands fa-instagram fa-${r}`;
4056
+ return `<li class="fa-brands fa-instagram fa-${r}"/>`;
4055
4057
  case "lb":
4056
- return `fa-solid fa-comment fa-${r}`;
4058
+ return `<li class="fa-solid fa-comment fa-${r}"/>`;
4057
4059
  case "li":
4058
- return `fa-brands fa-linkedin fa-${r}`;
4060
+ return `<li class="fa-brands fa-linkedin fa-${r}"/>`;
4059
4061
  case "me":
4060
- return `fa-solid fa-rss fa-${r}`;
4062
+ return `<li class="fa-solid fa-rss fa-${r}"/>`;
4061
4063
  case "pi":
4062
- return `fa-brands fa-pinterest fa-${r}`;
4064
+ return `<li class="fa-brands fa-pinterest fa-${r}"/>`;
4063
4065
  case "qq":
4064
- return `fa-brands fa-weibo fa-${r}`;
4066
+ return `<li class="fa-brands fa-weibo fa-${r}"/>`;
4065
4067
  case "rd":
4066
- return `fa-brands fa-reddit fa-${r}`;
4068
+ return `<li class="fa-brands fa-reddit fa-${r}"/>`;
4067
4069
  case "re":
4068
- return `fa-solid fa-star-sharp-half-stroke fa-${r}`;
4070
+ return `<li class="fa-solid fa-star-sharp-half-stroke fa-${r}"/>`;
4069
4071
  case "ti":
4070
- return `fa-brands fa-tiktok fa-${r}`;
4072
+ return `<li class="fa-brands fa-tiktok fa-${r}"/>`;
4071
4073
  case "tw":
4072
- return `fa-brands fa-x-twitter fa-${r}`;
4074
+ return `<li class="fa-brands fa-x-twitter fa-${r}"/>`;
4073
4075
  case "vk":
4074
- return `fa-brands fa-vk fa-${r}`;
4076
+ return `<li class="fa-brands fa-vk fa-${r}"/>`;
4075
4077
  case "ws":
4076
- return `fa-solid fa-rss fa-${r}`;
4078
+ return `<li class="fa-solid fa-rss fa-${r}"/>`;
4077
4079
  case "yt":
4078
- return `text-red fa-brands fa-youtube fa-${r}`;
4080
+ return `<li class="text-red fa-brands fa-youtube fa-${r}"/>`;
4079
4081
  default:
4080
4082
  return "";
4081
4083
  }
@@ -4195,7 +4197,7 @@ function qa(l) {
4195
4197
  return {};
4196
4198
  }
4197
4199
  }
4198
- function ei(l) {
4200
+ function es(l) {
4199
4201
  const r = window.BuzzCasting.getOptions().suspended ?? !1;
4200
4202
  return l.forEach((o) => {
4201
4203
  var d;
@@ -4236,13 +4238,13 @@ function ei(l) {
4236
4238
  }
4237
4239
  }), l;
4238
4240
  }
4239
- function ti(l, r, o, d) {
4241
+ function ts(l, r, o, d) {
4240
4242
  l.stopPropagation(), r.showModal({
4241
4243
  showComponent: "card-modal",
4242
4244
  props: { data: o, options: d }
4243
4245
  });
4244
4246
  }
4245
- function ni(l) {
4247
+ function ns(l) {
4246
4248
  const r = [...l];
4247
4249
  for (let o = r.length - 1; o > 0; o--) {
4248
4250
  const d = Math.floor(Math.random() * (o + 1));
@@ -4250,16 +4252,16 @@ function ni(l) {
4250
4252
  }
4251
4253
  return r;
4252
4254
  }
4253
- function ri() {
4255
+ function rs() {
4254
4256
  let l = "";
4255
4257
  const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4256
4258
  for (let o = 0; o < 7; o++) l += r.charAt(Math.floor(Math.random() * r.length));
4257
4259
  return l;
4258
4260
  }
4259
- function ai(l) {
4261
+ function as(l) {
4260
4262
  return l[Math.floor(Math.random() * l.length)];
4261
4263
  }
4262
- const ii = (l) => {
4264
+ const ss = (l) => {
4263
4265
  switch (!0) {
4264
4266
  case l < 0:
4265
4267
  return "text-down text-xs";
@@ -4269,7 +4271,7 @@ const ii = (l) => {
4269
4271
  return "text-white text-xs";
4270
4272
  }
4271
4273
  };
4272
- class si {
4274
+ class is {
4273
4275
  constructor(r) {
4274
4276
  k(this, "sm");
4275
4277
  k(this, "api");
@@ -4295,12 +4297,12 @@ class si {
4295
4297
  const X = this.sm.subscribers.filter(
4296
4298
  (le) => le.widget === N.query.widget
4297
4299
  )[0];
4298
- let se = "", ee;
4300
+ let ie = "", ee;
4299
4301
  switch (N.query.type) {
4300
4302
  case j.MESSAGES:
4301
4303
  if (ee = N.data.messages.filter(
4302
4304
  (le) => le.id !== null
4303
- ), N.data.messages = ee, se = Fn(N.data.messages), X.hash === se)
4305
+ ), N.data.messages = ee, ie = Fn(N.data.messages), X.hash === ie)
4304
4306
  return console.info(
4305
4307
  "%capi%c %cno updates",
4306
4308
  m.API,
@@ -4317,10 +4319,10 @@ class si {
4317
4319
  j.MESSAGES,
4318
4320
  N
4319
4321
  ), 204;
4320
- K = N, X.hash = se, U = await this.sm.setMessages(N.query, N);
4322
+ K = N, X.hash = ie, U = await this.sm.setMessages(N.query, N);
4321
4323
  break;
4322
4324
  case j.CLOUD:
4323
- se = Fn(N.data), X.hash === se ? (console.info(
4325
+ ie = Fn(N.data), X.hash === ie ? (console.info(
4324
4326
  "%capi%c %cno updates",
4325
4327
  m.API,
4326
4328
  m.NONE,
@@ -4335,7 +4337,7 @@ class si {
4335
4337
  m.NO_UPDATES,
4336
4338
  j.CLOUD,
4337
4339
  N
4338
- ), U = 204) : (X.hash = se, K = {
4340
+ ), U = 204) : (X.hash = ie, K = {
4339
4341
  data: {
4340
4342
  dashboard: N.query.dashboard,
4341
4343
  cloud: N.data,
@@ -4351,7 +4353,7 @@ class si {
4351
4353
  ));
4352
4354
  break;
4353
4355
  case j.SERIES:
4354
- se = Fn(N.data), X.hash === se ? (console.info(
4356
+ ie = Fn(N.data), X.hash === ie ? (console.info(
4355
4357
  "%capi%c %cno updates",
4356
4358
  m.API,
4357
4359
  m.NONE,
@@ -4366,7 +4368,7 @@ class si {
4366
4368
  m.NO_UPDATES,
4367
4369
  j.SERIES,
4368
4370
  N
4369
- ), U = 204) : (X.hash = se, K = {
4371
+ ), U = 204) : (X.hash = ie, K = {
4370
4372
  data: {
4371
4373
  dashboard: N.query.dashboard,
4372
4374
  series: N.data,
@@ -4652,7 +4654,7 @@ class $a {
4652
4654
  }
4653
4655
  }
4654
4656
  }
4655
- class oi {
4657
+ class os {
4656
4658
  /**
4657
4659
  * Main container for managing widgets and data updates
4658
4660
  *
@@ -4833,13 +4835,13 @@ class oi {
4833
4835
  }
4834
4836
  export {
4835
4837
  j as API,
4836
- si as BuzzcastingStorageManager,
4838
+ is as BuzzcastingStorageManager,
4837
4839
  $a as BuzzcastingStorageReader,
4838
4840
  m as CSS,
4839
4841
  re as EVENTS,
4840
4842
  Zt as MODERATION,
4841
4843
  ye as STORAGE,
4842
- oi as Widget,
4844
+ os as Widget,
4843
4845
  Fa as anonymize,
4844
4846
  Wa as attachedMedia,
4845
4847
  ja as attrs,
@@ -4854,12 +4856,12 @@ export {
4854
4856
  Fn as hashSum,
4855
4857
  Va as intToString,
4856
4858
  Za as numberFormatter,
4857
- ai as randomValue,
4859
+ as as randomValue,
4858
4860
  qa as rtl,
4859
- ei as sanitize,
4860
- ti as showModal,
4861
- ni as shuffleMessages,
4862
- ri as stringGen,
4863
- ii as upDownColor,
4861
+ es as sanitize,
4862
+ ts as showModal,
4863
+ ns as shuffleMessages,
4864
+ rs as stringGen,
4865
+ ss as upDownColor,
4864
4866
  Mr as widgetParams
4865
4867
  };