buzzcasting-storage 3.2.3 → 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.
@@ -1,8 +1,8 @@
1
1
  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
- var N = /* @__PURE__ */ ((l) => (l.MESSAGES = "messages", l.CLOUD = "cloud", l.SERIES = "series", l.TOPICS = "topics", l.WIDGET = "widget", l.WIDGETS = "widgets", l.SLIDE = "slide", l))(N || {}), 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.2";
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.4";
6
6
  class Da {
7
7
  constructor(r) {
8
8
  k(this, "options");
@@ -150,28 +150,28 @@ 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;
166
- function M(e, t) {
166
+ function N(e, t) {
167
167
  return typeof t != "object" || K(t).forEach(function(n) {
168
168
  e[n] = t[n];
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) {
@@ -180,7 +180,7 @@ function Ra() {
180
180
  }
181
181
  var He = Object.defineProperty;
182
182
  function xe(e, t, n, a) {
183
- He(e, t, M(n && ee(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
183
+ He(e, t, N(n && ee(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
184
184
  }
185
185
  function Ye(e) {
186
186
  return { from: function(t) {
@@ -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) {
@@ -368,9 +368,9 @@ function Ra() {
368
368
  function Zr(e, t) {
369
369
  return e === J ? t : function(n) {
370
370
  var a = e.apply(this, arguments);
371
- M(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 : M(a, n);
371
+ N(n, a);
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 && M(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
  }
@@ -882,17 +882,17 @@ function Ra() {
882
882
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = c, this.hook("reading", c), e;
883
883
  }, Z.prototype.defineClass = function() {
884
884
  return this.mapToClass(function(e) {
885
- M(this, e);
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) {
@@ -1153,7 +1153,7 @@ function Ra() {
1153
1153
  return Nt(this._ctx, e, t, this._ctx.table.core);
1154
1154
  }, Q.prototype.clone = function(e) {
1155
1155
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1156
- return e && M(n, e), t._ctx = n, t;
1156
+ return e && N(n, e), t._ctx = n, t;
1157
1157
  }, Q.prototype.raw = function() {
1158
1158
  return this._ctx.valueMapper = null, this;
1159
1159
  }, Q.prototype.each = 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;
@@ -1327,20 +1327,20 @@ function Ra() {
1327
1327
  function S(O) {
1328
1328
  var A = Math.min(v, y.length - O);
1329
1329
  return c.getMany({ trans: a, keys: y.slice(O, O + A), cache: "immutable" }).then(function(P) {
1330
- for (var T = [], I = [], C = h ? [] : null, j = [], R = 0; R < A; ++R) {
1330
+ for (var T = [], I = [], C = h ? [] : null, M = [], R = 0; R < A; ++R) {
1331
1331
  var L = P[R], W = { value: Te(L), primKey: y[O + R] };
1332
- u.call(W, W.value, W) !== !1 && (W.value == null ? j.push(y[O + R]) : h || Y(g(L), g(W.value)) === 0 ? (I.push(W.value), h && C.push(y[O + R])) : (j.push(y[O + R]), T.push(W.value)));
1332
+ u.call(W, W.value, W) !== !1 && (W.value == null ? M.push(y[O + R]) : h || Y(g(L), g(W.value)) === 0 ? (I.push(W.value), h && C.push(y[O + R])) : (M.push(y[O + R]), T.push(W.value)));
1333
1333
  }
1334
1334
  return Promise.resolve(0 < T.length && c.mutate({ trans: a, type: "add", values: T }).then(function(z) {
1335
- for (var H in z.failures) j.splice(parseInt(H), 1);
1335
+ for (var H in z.failures) M.splice(parseInt(H), 1);
1336
1336
  _(T.length, z);
1337
1337
  })).then(function() {
1338
1338
  return (0 < I.length || E && typeof e == "object") && c.mutate({ trans: a, type: "put", keys: C, values: I, criteria: E, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < O }).then(function(z) {
1339
1339
  return _(I.length, z);
1340
1340
  });
1341
1341
  }).then(function() {
1342
- return (0 < j.length || E && e === vn) && c.mutate({ trans: a, type: "delete", keys: j, criteria: E, isAdditionalChunk: 0 < O }).then(function(z) {
1343
- return _(j.length, z);
1342
+ return (0 < M.length || E && e === vn) && c.mutate({ trans: a, type: "delete", keys: M, criteria: E, isAdditionalChunk: 0 < O }).then(function(z) {
1343
+ return _(M.length, z);
1344
1344
  });
1345
1345
  }).then(function() {
1346
1346
  return y.length > O + A && S(O + v);
@@ -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,16 +1423,16 @@ 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
- var P = function(T, I, C, j, R, L) {
1430
- for (var W = Math.min(T.length, j.length), z = -1, H = 0; H < W; ++H) {
1429
+ var P = function(T, I, C, M, R, L) {
1430
+ for (var W = Math.min(T.length, M.length), z = -1, H = 0; H < W; ++H) {
1431
1431
  var pe = I[H];
1432
- if (pe !== j[H]) return R(T[H], C[H]) < 0 ? T.substr(0, H) + C[H] + C.substr(H + 1) : R(T[H], j[H]) < 0 ? T.substr(0, H) + j[H] + C.substr(H + 1) : 0 <= z ? T.substr(0, z) + I[z] + C.substr(z + 1) : null;
1432
+ if (pe !== M[H]) return R(T[H], C[H]) < 0 ? T.substr(0, H) + C[H] + C.substr(H + 1) : R(T[H], M[H]) < 0 ? T.substr(0, H) + M[H] + C.substr(H + 1) : 0 <= z ? T.substr(0, z) + I[z] + C.substr(z + 1) : null;
1433
1433
  R(T[H], pe) < 0 && (z = H);
1434
1434
  }
1435
- return W < j.length && L === "next" ? T + C.substr(T.length) : W < T.length && L === "prev" ? T.substr(0, C.length) : z < 0 ? null : T.substr(0, z) + j[z] + C.substr(z + 1);
1435
+ return W < M.length && L === "next" ? T + C.substr(T.length) : W < T.length && L === "prev" ? T.substr(0, C.length) : z < 0 ? null : T.substr(0, z) + M[z] + C.substr(z + 1);
1436
1436
  }(S, E, c[A], h[A], u, g);
1437
1437
  P === null && O === null ? p = A + 1 : (O === null || 0 < u(O, P)) && (O = P);
1438
1438
  }
@@ -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,14 +1734,14 @@ 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;
1741
1741
  return new Promise(function(P, T) {
1742
1742
  P = q(P);
1743
- var I = y.objectStore(b), C = I.keyPath == null, j = S === "put" || S === "add";
1744
- if (!j && S !== "delete" && S !== "deleteRange") throw new Error("Invalid operation type: " + S);
1743
+ var I = y.objectStore(b), C = I.keyPath == null, M = S === "put" || S === "add";
1744
+ if (!M && S !== "delete" && S !== "deleteRange") throw new Error("Invalid operation type: " + S);
1745
1745
  var R, L = (E || O || { length: 1 }).length;
1746
1746
  if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
1747
1747
  if (L === 0) return P({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
@@ -1753,8 +1753,8 @@ function Ra() {
1753
1753
  if (A.type === 4) return P({ numFailures: pe, failures: H, results: [], lastResult: void 0 });
1754
1754
  A.type === 3 ? z.push(R = I.clear()) : z.push(R = I.delete(a(A)));
1755
1755
  } else {
1756
- var C = j ? C ? [O, E] : [O, null] : [E, null], F = C[0], ue = C[1];
1757
- if (j) for (var ce = 0; ce < L; ++ce) z.push(R = ue && ue[ce] !== void 0 ? I[S](F[ce], ue[ce]) : I[S](F[ce])), R.onerror = W;
1756
+ var C = M ? C ? [O, E] : [O, null] : [E, null], F = C[0], ue = C[1];
1757
+ if (M) for (var ce = 0; ce < L; ++ce) z.push(R = ue && ue[ce] !== void 0 ? I[S](F[ce], ue[ce]) : I[S](F[ce])), R.onerror = W;
1758
1758
  else for (ce = 0; ce < L; ++ce) z.push(R = I[S](F[ce])), R.onerror = W;
1759
1759
  }
1760
1760
  function Jt(de) {
@@ -1772,8 +1772,8 @@ function Ra() {
1772
1772
  var y = w.trans, S = w.keys;
1773
1773
  return new Promise(function(E, O) {
1774
1774
  E = q(E);
1775
- for (var A, P = y.objectStore(b), T = S.length, I = new Array(T), C = 0, j = 0, R = function(z) {
1776
- z = z.target, I[z._pos] = z.result, ++j === C && E(I);
1775
+ for (var A, P = y.objectStore(b), T = S.length, I = new Array(T), C = 0, M = 0, R = function(z) {
1776
+ z = z.target, I[z._pos] = z.result, ++M === C && E(I);
1777
1777
  }, L = be(O), W = 0; W < T; ++W) S[W] != null && ((A = P.get(S[W]))._pos = W, A.onsuccess = R, A.onerror = L, ++C);
1778
1778
  C === 0 && E(I);
1779
1779
  });
@@ -1789,11 +1789,11 @@ function Ra() {
1789
1789
  }, query: (p = g, function(w) {
1790
1790
  return new Promise(function(y, S) {
1791
1791
  y = q(y);
1792
- var E, O, A, C = w.trans, P = w.values, T = w.limit, R = w.query, I = T === 1 / 0 ? void 0 : T, j = R.index, R = R.range, C = C.objectStore(b), j = j.isPrimaryKey ? C : C.index(j.name), R = a(R);
1792
+ var E, O, A, C = w.trans, P = w.values, T = w.limit, R = w.query, I = T === 1 / 0 ? void 0 : T, M = R.index, R = R.range, C = C.objectStore(b), M = M.isPrimaryKey ? C : C.index(M.name), R = a(R);
1793
1793
  if (T === 0) return y({ result: [] });
1794
- p ? ((I = P ? j.getAll(R, I) : j.getAllKeys(R, I)).onsuccess = function(L) {
1794
+ p ? ((I = P ? M.getAll(R, I) : M.getAllKeys(R, I)).onsuccess = function(L) {
1795
1795
  return y({ result: L.target.result });
1796
- }, I.onerror = be(S)) : (E = 0, O = !P && "openKeyCursor" in j ? j.openKeyCursor(R) : j.openCursor(R), A = [], O.onsuccess = function(L) {
1796
+ }, I.onerror = be(S)) : (E = 0, O = !P && "openKeyCursor" in M ? M.openKeyCursor(R) : M.openCursor(R), A = [], O.onsuccess = function(L) {
1797
1797
  var W = O.result;
1798
1798
  return W ? (A.push(P ? W.value : W.primaryKey), ++E === T ? y({ result: A }) : void W.continue()) : y({ result: A });
1799
1799
  }, O.onerror = be(S));
@@ -1802,7 +1802,7 @@ function Ra() {
1802
1802
  var y = w.trans, S = w.values, E = w.query, O = w.reverse, A = w.unique;
1803
1803
  return new Promise(function(P, T) {
1804
1804
  P = q(P);
1805
- var j = E.index, I = E.range, C = y.objectStore(b), C = j.isPrimaryKey ? C : C.index(j.name), j = O ? A ? "prevunique" : "prev" : A ? "nextunique" : "next", R = !S && "openKeyCursor" in C ? C.openKeyCursor(a(I), j) : C.openCursor(a(I), j);
1805
+ var M = E.index, I = E.range, C = y.objectStore(b), C = M.isPrimaryKey ? C : C.index(M.name), M = O ? A ? "prevunique" : "prev" : A ? "nextunique" : "next", R = !S && "openKeyCursor" in C ? C.openKeyCursor(a(I), M) : C.openCursor(a(I), M);
1806
1806
  R.onerror = be(T), R.onsuccess = q(function(L) {
1807
1807
  var W, z, H, pe, F = R.result;
1808
1808
  F ? (F.___id = ++ca, F.done = !1, W = F.continue.bind(F), z = (z = F.continuePrimaryKey) && z.bind(F), H = F.advance.bind(F), pe = function() {
@@ -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,32 +1907,32 @@ 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() {
1923
1923
  var E = y, O = S._cfg.dbschema;
1924
1924
  Ut(f, E, b), Ut(f, O, b), y = f._dbSchema = O;
1925
1925
  var A = xn(E, O);
1926
- A.add.forEach(function(j) {
1927
- An(b, j[0], j[1].primKey, j[1].indexes);
1928
- }), A.change.forEach(function(j) {
1929
- if (j.recreate) throw new $.Upgrade("Not yet support for changing primary key");
1930
- var R = b.objectStore(j.name);
1931
- j.add.forEach(function(L) {
1926
+ A.add.forEach(function(M) {
1927
+ An(b, M[0], M[1].primKey, M[1].indexes);
1928
+ }), A.change.forEach(function(M) {
1929
+ if (M.recreate) throw new $.Upgrade("Not yet support for changing primary key");
1930
+ var R = b.objectStore(M.name);
1931
+ M.add.forEach(function(L) {
1932
1932
  return Gt(R, L);
1933
- }), j.change.forEach(function(L) {
1933
+ }), M.change.forEach(function(L) {
1934
1934
  R.deleteIndex(L.name), Gt(R, L);
1935
- }), j.del.forEach(function(L) {
1935
+ }), M.del.forEach(function(L) {
1936
1936
  return R.deleteIndex(L);
1937
1937
  });
1938
1938
  });
@@ -1940,13 +1940,13 @@ function Ra() {
1940
1940
  if (P && S._cfg.version > _) {
1941
1941
  Bt(f, b), p._memoizedTables = {};
1942
1942
  var T = Qn(O);
1943
- A.del.forEach(function(j) {
1944
- T[j] = E[j];
1943
+ A.del.forEach(function(M) {
1944
+ T[M] = E[M];
1945
1945
  }), On(f, [f.Transaction.prototype]), Lt(f, [f.Transaction.prototype], K(T), T), p.schema = T;
1946
1946
  var I, C = rn(P);
1947
1947
  return C && qe(), A = B.follow(function() {
1948
- var j;
1949
- (I = P(p)) && C && (j = De.bind(null, null), I.then(j, j));
1948
+ var M;
1949
+ (I = P(p)) && C && (M = De.bind(null, null), I.then(M, M));
1950
1950
  }), I && typeof I.then == "function" ? B.resolve(I) : A.then(function() {
1951
1951
  return I;
1952
1952
  });
@@ -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
- this._cfg.storesSource = this._cfg.storesSource ? M(this._cfg.storesSource, n) : n;
2069
- var n = t._versions, a = {}, i = {};
2070
- return n.forEach(function(s) {
2071
- M(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;
2068
+ this._cfg.storesSource = this._cfg.storesSource ? N(this._cfg.storesSource, n) : n;
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);
@@ -2093,33 +2093,33 @@ function Ra() {
2093
2093
  var oe = function(e, t) {
2094
2094
  if (!this) {
2095
2095
  var n = new oe();
2096
- return e && "d" in e && M(n, e), n;
2096
+ return e && "d" in e && N(n, e), n;
2097
2097
  }
2098
- M(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2098
+ N(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2099
2099
  };
2100
2100
  function bt(e, t, n) {
2101
2101
  var a = Y(t, n);
2102
2102
  if (!isNaN(a)) {
2103
2103
  if (0 < a) throw RangeError();
2104
- if (In(e)) return M(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);
2104
+ if (In(e)) return N(e, { from: t, to: n, d: 1 });
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,24 +2408,24 @@ 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");
2418
2418
  return (f = f.type === "add" || f.type === "put" ? d(d({}, f), { keys: y }) : d({}, f)).type !== "delete" && (f.values = x([], f.values)), f.keys && (f.keys = x([], f.keys)), _ = n, b = y, ((p = f).type === "add" ? Promise.resolve([]) : _.getMany({ trans: p.trans, keys: b, cache: "immutable" })).then(function(S) {
2419
2419
  var E = y.map(function(O, A) {
2420
- var P, T, I, C = S[A], j = { onerror: null, onsuccess: null };
2421
- return f.type === "delete" ? c.fire.call(j, O, C, w) : f.type === "add" || C === void 0 ? (P = h.fire.call(j, O, f.values[A], w), O == null && P != null && (f.keys[A] = O = P, a.outbound || fe(f.values[A], a.keyPath, O))) : (P = Nn(C, f.values[A]), (T = g.fire.call(j, P, O, C, w)) && (I = f.values[A], Object.keys(T).forEach(function(R) {
2420
+ var P, T, I, C = S[A], M = { onerror: null, onsuccess: null };
2421
+ return f.type === "delete" ? c.fire.call(M, O, C, w) : f.type === "add" || C === void 0 ? (P = h.fire.call(M, O, f.values[A], w), O == null && P != null && (f.keys[A] = O = P, a.outbound || fe(f.values[A], a.keyPath, O))) : (P = Nn(C, f.values[A]), (T = g.fire.call(M, P, O, C, w)) && (I = f.values[A], Object.keys(T).forEach(function(R) {
2422
2422
  ee(I, R) ? I[R] = T[R] : fe(I, R, T[R]);
2423
- }))), j;
2423
+ }))), M;
2424
2424
  });
2425
2425
  return n.mutate(f).then(function(O) {
2426
2426
  for (var A = O.failures, P = O.results, T = O.numFailures, O = O.lastResult, I = 0; I < y.length; ++I) {
2427
- var C = (P || y)[I], j = E[I];
2428
- C == null ? j.onerror && j.onerror(A[I]) : j.onsuccess && j.onsuccess(f.type === "put" && S[I] ? f.values[I] : C);
2427
+ var C = (P || y)[I], M = E[I];
2428
+ C == null ? M.onerror && M.onerror(A[I]) : M.onsuccess && M.onsuccess(f.type === "put" && S[I] ? f.values[I] : C);
2429
2429
  }
2430
2430
  return { failures: A, results: P, numFailures: T, lastResult: O };
2431
2431
  }).catch(function(O) {
@@ -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
- var w, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), A = b(""), P = b(":dels"), T = p.type, j = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Kn(u, p).filter(function(R) {
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
- }), p.values] : [], I = j[0], C = j[1], j = p.trans._cache;
2493
- return U(I) ? (A.addKeys(I), (j = T === "delete" || I.length === C.length ? Or(I, j) : null) || P.addKeys(I), (j || C) && (w = b, y = j, S = C, s.indexes.forEach(function(R) {
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, 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,21 +2526,21 @@ 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;
2541
2541
  });
2542
- var j = b.values ? C.result.map(c) : C.result;
2543
- (b.values ? O : A).addKeys(j);
2542
+ var M = b.values ? C.result.map(c) : C.result;
2543
+ (b.values ? O : A).addKeys(M);
2544
2544
  } else if (p === "openCursor") {
2545
2545
  var R = C, L = b.values;
2546
2546
  return R && Object.create(R, { key: { get: function() {
@@ -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 = [];
@@ -2616,56 +2616,56 @@ function Ra() {
2616
2616
  });
2617
2617
  break;
2618
2618
  case "deleteRange":
2619
- var j = b.range;
2619
+ var M = b.range;
2620
2620
  w = p.filter(function(L) {
2621
- return !Bn(g(L), j);
2621
+ return !Bn(g(L), M);
2622
2622
  });
2623
2623
  }
2624
2624
  return w;
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) {
@@ -2679,7 +2679,7 @@ function Ra() {
2679
2679
  p.optimisticOps = p.optimisticOps.filter(function(L) {
2680
2680
  return L.trans !== c;
2681
2681
  });
2682
- for (var A = 0, P = Object.values(p.queries.query); A < P.length; A++) for (var T, I, C, j = 0, R = (T = P[A]).slice(); j < R.length; j++) (I = R[j]).res != null && c.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = Dr(I.res, I.req, w, b, I, C), I.dirty ? (Me(T, I), I.subscribers.forEach(function(L) {
2682
+ for (var A = 0, P = Object.values(p.queries.query); A < P.length; A++) for (var T, I, C, M = 0, R = (T = P[A]).slice(); M < R.length; M++) (I = R[M]).res != null && c.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = Dr(I.res, I.req, w, b, I, C), I.dirty ? (Me(T, I), I.subscribers.forEach(function(L) {
2683
2683
  return g.add(L);
2684
2684
  })) : C !== I.res && (I.res = C, I.promise = B.resolve({ result: C }))) : (I.dirty && Me(T, I), I.subscribers.forEach(function(L) {
2685
2685
  return g.add(L);
@@ -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 {
@@ -3081,7 +3081,7 @@ function Ra() {
3081
3081
  var t, n;
3082
3082
  }, defineClass: function() {
3083
3083
  return function(e) {
3084
- M(this, e);
3084
+ N(this, e);
3085
3085
  };
3086
3086
  }, ignoreTransaction: function(e) {
3087
3087
  return G.trans ? Ge(G.transless, e) : e();
@@ -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;
@@ -3109,7 +3109,7 @@ function Ra() {
3109
3109
  return me;
3110
3110
  }, set: function(e) {
3111
3111
  qn(e);
3112
- } }, derive: Ye, extend: M, props: le, override: Hn, Events: dt, on: Ce, liveQuery: Ir, extendObservabilitySet: zt, getByKeyPath: we, setByKeyPath: fe, delByKeyPath: function(e, t) {
3112
+ } }, derive: Ye, extend: N, props: le, override: Hn, Events: dt, on: Ce, liveQuery: Ir, extendObservabilitySet: zt, getByKeyPath: we, setByKeyPath: fe, delByKeyPath: function(e, t) {
3113
3113
  typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3114
3114
  fe(e, n, void 0);
3115
3115
  });
@@ -3196,7 +3196,7 @@ class jr {
3196
3196
  * @returns IResponse
3197
3197
  */
3198
3198
  k(this, "getCloud", async (r) => {
3199
- const o = await this.db.table(N.CLOUD).where({ id: r.widget }).last().catch(() => {
3199
+ const o = await this.db.table(j.CLOUD).where({ id: r.widget }).last().catch(() => {
3200
3200
  console.warn(
3201
3201
  "%capi%C %ccloud",
3202
3202
  m.API,
@@ -3214,7 +3214,7 @@ class jr {
3214
3214
  * @returns IResponse
3215
3215
  */
3216
3216
  k(this, "getSeries", async (r) => {
3217
- const o = await this.db.table(N.SERIES).where({ id: r.widget }).last().catch(() => {
3217
+ const o = await this.db.table(j.SERIES).where({ id: r.widget }).last().catch(() => {
3218
3218
  console.warn(
3219
3219
  "%capi%c %cseries",
3220
3220
  m.API,
@@ -3236,16 +3236,16 @@ class jr {
3236
3236
  o !== "utc" && (r.since = Math.floor(Date.now() / 1e3) - 60 * 60 * 24 * 7), this.options.delay != 0 ? r.before = Math.floor(Date.now() / 1e3) - (this.options.delay || 0) : r.before = Math.floor(Date.now() / 1e3);
3237
3237
  const d = (K) => K.utc > ((r == null ? void 0 : r.since) || 0), x = (K) => K.utc < ((r == null ? void 0 : r.before) || Date.now() / 1e3), D = (K) => (K == null ? void 0 : K.visible) !== 0;
3238
3238
  try {
3239
- const U = await this.db.table(N.TOPICS).where("widget_id").equals(r.widget).filter(D).filter(d).filter(x).reverse().limit((r == null ? void 0 : r.limit) ?? 25).sortBy(o);
3239
+ const U = await this.db.table(j.TOPICS).where("widget_id").equals(r.widget).filter(D).filter(d).filter(x).reverse().limit((r == null ? void 0 : r.limit) ?? 25).sortBy(o);
3240
3240
  if (U.length === 0)
3241
3241
  return { data: null, message: "No Messages error", success: !1 };
3242
- let M = U.map((X) => this.db.table(N.MESSAGES).get({ id: X.message_id }));
3243
- return en.Promise.all(M).then(async (X) => {
3244
- const se = X.map((le) => le.data), ee = {
3242
+ let N = U.map((X) => this.db.table(j.MESSAGES).get({ id: X.message_id }));
3243
+ return en.Promise.all(N).then(async (X) => {
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
@@ -3278,7 +3278,7 @@ class jr {
3278
3278
  * @param data
3279
3279
  * @returns number
3280
3280
  */
3281
- k(this, "setCloud", async (r, o) => r.type === N.CLOUD && o !== "" ? await this.db.table(N.CLOUD).put({
3281
+ k(this, "setCloud", async (r, o) => r.type === j.CLOUD && o !== "" ? await this.db.table(j.CLOUD).put({
3282
3282
  id: r.widget,
3283
3283
  dashboard_id: r.dashboard,
3284
3284
  //data: data.data,
@@ -3290,7 +3290,7 @@ class jr {
3290
3290
  * @param data
3291
3291
  * @returns number
3292
3292
  */
3293
- k(this, "setSeries", async (r, o) => r.type === N.SERIES && o !== "" ? await this.db.table(N.SERIES).put({
3293
+ k(this, "setSeries", async (r, o) => r.type === j.SERIES && o !== "" ? await this.db.table(j.SERIES).put({
3294
3294
  id: r.widget,
3295
3295
  dashboard_id: r.dashboard,
3296
3296
  //data: data.data,
@@ -3303,13 +3303,13 @@ class jr {
3303
3303
  * @returns number
3304
3304
  */
3305
3305
  k(this, "setMessages", async (r, o) => {
3306
- if (r.type !== N.MESSAGES)
3306
+ if (r.type !== j.MESSAGES)
3307
3307
  return 400;
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, M, X, se, ee, le;
3312
- D.id !== null && (await this.db.table(N.MESSAGES).put({
3311
+ var K, U, N, X, ie, ee, le;
3312
+ D.id !== null && (await this.db.table(j.MESSAGES).put({
3313
3313
  id: D.id,
3314
3314
  utc: D.utc,
3315
3315
  data: D,
@@ -3323,14 +3323,14 @@ class jr {
3323
3323
  D,
3324
3324
  He.message
3325
3325
  );
3326
- }), await this.db.table(N.TOPICS).put({
3326
+ }), await this.db.table(j.TOPICS).put({
3327
3327
  title: d,
3328
3328
  widget_id: r.widget,
3329
3329
  message_id: D.id,
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
- impressions: ((M = D.topics[0]) == null ? void 0 : M.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,
3332
+ impressions: ((N = D.topics[0]) == null ? void 0 : N.impressions) || ((X = D.dynamics) == null ? void 0 : X.semrush_visits) || 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
@@ -3345,13 +3345,13 @@ class jr {
3345
3345
  );
3346
3346
  }));
3347
3347
  }), o.data.topics.forEach(async (D) => {
3348
- const K = D.message_id, U = D.visible ? 1 : 0, M = D.title;
3349
- await this.db.table(N.TOPICS).where("message_id").equals(K).modify({ visible: U }).catch((X) => {
3348
+ const K = D.message_id, U = D.visible ? 1 : 0, N = D.title;
3349
+ await this.db.table(j.TOPICS).where("message_id").equals(K).modify({ visible: U }).catch((X) => {
3350
3350
  x++, console.error(
3351
3351
  "%cstorage",
3352
3352
  m.STORAGE,
3353
3353
  "update message visibility",
3354
- `title: ${M}`,
3354
+ `title: ${N}`,
3355
3355
  `widget: ${D.widget_id}`,
3356
3356
  X.message
3357
3357
  );
@@ -3363,13 +3363,13 @@ class jr {
3363
3363
  */
3364
3364
  k(this, "cleanMessages", async () => {
3365
3365
  const r = Date.now() / 1e3, o = (D) => D.expires < r, d = (D) => D.expires < r;
3366
- return await this.db.table(N.TOPICS).orderBy("expires").filter(o).delete().catch((D) => (console.error(
3366
+ return await this.db.table(j.TOPICS).orderBy("expires").filter(o).delete().catch((D) => (console.error(
3367
3367
  "%cstorage%c %cclean",
3368
3368
  m.STORAGE,
3369
3369
  m.NONE,
3370
3370
  m.MESSAGES,
3371
3371
  D.message
3372
- ), 0)), await this.db.table(N.MESSAGES).orderBy("expires").filter(d).delete().catch((D) => (console.error(
3372
+ ), 0)), await this.db.table(j.MESSAGES).orderBy("expires").filter(d).delete().catch((D) => (console.error(
3373
3373
  "%cstorage%c %clean",
3374
3374
  m.STORAGE,
3375
3375
  m.NONE,
@@ -3378,7 +3378,7 @@ class jr {
3378
3378
  ), 0));
3379
3379
  });
3380
3380
  k(this, "hideMessage", async (r, o) => {
3381
- await this.db.table(N.TOPICS).where("message_id").equals(r).modify({ visible: o ? 1 : 0 }).catch((d) => (console.error(
3381
+ await this.db.table(j.TOPICS).where("message_id").equals(r).modify({ visible: o ? 1 : 0 }).catch((d) => (console.error(
3382
3382
  "%cstorage%c %chide",
3383
3383
  m.STORAGE,
3384
3384
  m.NONE,
@@ -3391,14 +3391,14 @@ class jr {
3391
3391
  * @param query IQuery
3392
3392
  * @returns number
3393
3393
  */
3394
- k(this, "setWidget", async (r) => await this.db.table(N.WIDGETS).put({
3394
+ k(this, "setWidget", async (r) => await this.db.table(j.WIDGETS).put({
3395
3395
  id: r.widget,
3396
3396
  dashboard_id: r.dashboard,
3397
3397
  type: r.type
3398
3398
  }).then(() => 201).catch((o) => (console.error(
3399
3399
  "%cstorage",
3400
3400
  m.STORAGE,
3401
- N.WIDGET,
3401
+ j.WIDGET,
3402
3402
  r,
3403
3403
  o.message
3404
3404
  ), 400)));
@@ -3409,7 +3409,7 @@ class jr {
3409
3409
  */
3410
3410
  k(this, "subscribe", (r) => (r = Mr(r), this.subscribers.filter(
3411
3411
  (d) => d.widget === r.widget
3412
- ).length > 0 || (r.type === N.MESSAGES && (r = _t(this.options, r)), console.info(
3412
+ ).length > 0 || (r.type === j.MESSAGES && (r = _t(this.options, r)), console.info(
3413
3413
  "%cstorage%c %csubscribe",
3414
3414
  m.STORAGE,
3415
3415
  m.NONE,
@@ -3434,7 +3434,7 @@ class jr {
3434
3434
  * @returns IResponse
3435
3435
  */
3436
3436
  k(this, "loadSlide", async (r) => {
3437
- const o = await this.db.table(N.SLIDE).where({ id: r.id }).last().catch(() => {
3437
+ const o = await this.db.table(j.SLIDE).where({ id: r.id }).last().catch(() => {
3438
3438
  console.warn(
3439
3439
  "%capi%c %cseries",
3440
3440
  m.API,
@@ -3450,7 +3450,7 @@ class jr {
3450
3450
  * @param query IQuery
3451
3451
  * @returns number
3452
3452
  */
3453
- k(this, "storeSlide", async (r) => r.type === N.SLIDE && r.data !== "" ? await this.db.table(N.SLIDE).put({
3453
+ k(this, "storeSlide", async (r) => r.type === j.SLIDE && r.data !== "" ? await this.db.table(j.SLIDE).put({
3454
3454
  id: r.id,
3455
3455
  title: r.data.title || "Not set",
3456
3456
  json: r.data.json || {},
@@ -3505,15 +3505,15 @@ class Kr {
3505
3505
  k(this, "options");
3506
3506
  k(this, "getCloud", async (r) => {
3507
3507
  const o = V(r);
3508
- return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, N.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3508
+ return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, j.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3509
3509
  });
3510
3510
  k(this, "getSeries", async (r) => {
3511
3511
  const o = V(r);
3512
- return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, N.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3512
+ return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, j.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3513
3513
  });
3514
3514
  k(this, "getMessages", async (r) => {
3515
3515
  const o = V(r);
3516
- return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, N.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3516
+ return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, j.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3517
3517
  });
3518
3518
  /**
3519
3519
  * Update Cloud
@@ -3525,7 +3525,7 @@ class Kr {
3525
3525
  if (!o.success)
3526
3526
  return 400;
3527
3527
  const d = V(r);
3528
- return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, N.CLOUD, r, x.message), 400));
3528
+ return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, j.CLOUD, r, x.message), 400));
3529
3529
  });
3530
3530
  /**
3531
3531
  * Update Series
@@ -3537,7 +3537,7 @@ class Kr {
3537
3537
  if (!o.success)
3538
3538
  return 400;
3539
3539
  const d = V(r);
3540
- return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, N.SERIES, r, x.message), 400));
3540
+ return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, j.SERIES, r, x.message), 400));
3541
3541
  });
3542
3542
  /**
3543
3543
  * Update Messages
@@ -3549,7 +3549,7 @@ class Kr {
3549
3549
  if (!o.success)
3550
3550
  return 400;
3551
3551
  const d = V(r);
3552
- return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, N.MESSAGES, r, x.message), 400));
3552
+ return delete o.success, delete o.message, await wt(d, o).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, j.MESSAGES, r, x.message), 400));
3553
3553
  });
3554
3554
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0))));
3555
3555
  k(this, "hideMessage", async (r, o) => {
@@ -3568,14 +3568,14 @@ class Kr {
3568
3568
  dashboard_id: r.dashboard,
3569
3569
  type: r.type
3570
3570
  };
3571
- return await wt(o, d).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, N.WIDGET, r, x.message), 400));
3571
+ return await wt(o, d).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, j.WIDGET, r, x.message), 400));
3572
3572
  });
3573
3573
  /**
3574
3574
  * Add component subscriber
3575
3575
  * @param query IQuery
3576
3576
  * @returns null
3577
3577
  */
3578
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3578
+ k(this, "subscribe", (r) => (r.type === j.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3579
3579
  (d) => d.widget === r.widget
3580
3580
  ).length > 0 || (console.debug(
3581
3581
  "%cstorage%c %csubscribe",
@@ -3592,7 +3592,7 @@ class Kr {
3592
3592
  k(this, "getSubscribers", async () => await new Promise((r) => r(this.subscribers)));
3593
3593
  k(this, "loadSlide", async (r) => {
3594
3594
  const o = V(r);
3595
- return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, N.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3595
+ return await Vt(o).then((d) => d).catch(() => (console.warn("%capi", m.API, j.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3596
3596
  });
3597
3597
  /**
3598
3598
  * Update Slide
@@ -3607,7 +3607,7 @@ class Kr {
3607
3607
  html: r.data.html || "",
3608
3608
  css: r.data.css || ""
3609
3609
  };
3610
- return await wt(o, d).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, N.SLIDE, r, x.message), 400));
3610
+ return await wt(o, d).then(() => 201).catch((x) => (console.error("%cstorage", m.STORAGE, j.SLIDE, r, x.message), 400));
3611
3611
  });
3612
3612
  this.options = r;
3613
3613
  }
@@ -3621,7 +3621,7 @@ class Br {
3621
3621
  try {
3622
3622
  return localStorage.getObject(o);
3623
3623
  } catch (d) {
3624
- return console.warn("%capi", m.API, N.CLOUD, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3624
+ return console.warn("%capi", m.API, j.CLOUD, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3625
3625
  }
3626
3626
  });
3627
3627
  k(this, "getSeries", async (r) => {
@@ -3629,7 +3629,7 @@ class Br {
3629
3629
  try {
3630
3630
  return localStorage.getObject(o);
3631
3631
  } catch (d) {
3632
- return console.warn("%capi", m.API, N.SERIES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3632
+ return console.warn("%capi", m.API, j.SERIES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3633
3633
  }
3634
3634
  });
3635
3635
  k(this, "getMessages", async (r) => {
@@ -3637,7 +3637,7 @@ class Br {
3637
3637
  try {
3638
3638
  return localStorage.getObject(o);
3639
3639
  } catch (d) {
3640
- return console.warn("%capi", m.API, N.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3640
+ return console.warn("%capi", m.API, j.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3641
3641
  }
3642
3642
  });
3643
3643
  /**
@@ -3651,7 +3651,7 @@ class Br {
3651
3651
  try {
3652
3652
  return localStorage.setObject(d, o), 201;
3653
3653
  } catch (x) {
3654
- return console.error("%cstorage", m.STORAGE, N.CLOUD, r, x), 400;
3654
+ return console.error("%cstorage", m.STORAGE, j.CLOUD, r, x), 400;
3655
3655
  }
3656
3656
  });
3657
3657
  /**
@@ -3665,7 +3665,7 @@ class Br {
3665
3665
  try {
3666
3666
  return localStorage.setObject(d, o), 201;
3667
3667
  } catch (x) {
3668
- return console.error("%cstorage", m.STORAGE, N.SERIES, r, x), 400;
3668
+ return console.error("%cstorage", m.STORAGE, j.SERIES, r, x), 400;
3669
3669
  }
3670
3670
  });
3671
3671
  /**
@@ -3679,7 +3679,7 @@ class Br {
3679
3679
  try {
3680
3680
  return localStorage.setObject(d, o), 200;
3681
3681
  } catch (x) {
3682
- return console.error("%cstorage", m.STORAGE, N.MESSAGES, r, x), 400;
3682
+ return console.error("%cstorage", m.STORAGE, j.MESSAGES, r, x), 400;
3683
3683
  }
3684
3684
  });
3685
3685
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0))));
@@ -3691,7 +3691,7 @@ class Br {
3691
3691
  try {
3692
3692
  return localStorage.setObject(o, r), 201;
3693
3693
  } catch (d) {
3694
- return console.error("%cstorage", m.STORAGE, N.WIDGET, r, d), 400;
3694
+ return console.error("%cstorage", m.STORAGE, j.WIDGET, r, d), 400;
3695
3695
  }
3696
3696
  });
3697
3697
  /**
@@ -3699,7 +3699,7 @@ class Br {
3699
3699
  * @param query IQuery
3700
3700
  * @returns null
3701
3701
  */
3702
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3702
+ k(this, "subscribe", (r) => (r.type === j.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3703
3703
  (d) => d.widget === r.widget
3704
3704
  ).length || (console.debug(
3705
3705
  "%cstorage%c %csubscribe",
@@ -3718,7 +3718,7 @@ class Br {
3718
3718
  try {
3719
3719
  return localStorage.getObject(`${r.type}.${r.id}`);
3720
3720
  } catch (o) {
3721
- return console.warn("%capi", m.API, N.SLIDE, r.id, o), { data: null, message: "Slide Load error", success: !1 };
3721
+ return console.warn("%capi", m.API, j.SLIDE, r.id, o), { data: null, message: "Slide Load error", success: !1 };
3722
3722
  }
3723
3723
  });
3724
3724
  k(this, "storeSlide", async (r) => {
@@ -3731,7 +3731,7 @@ class Br {
3731
3731
  css: r.data.css || ""
3732
3732
  }), 201;
3733
3733
  } catch (o) {
3734
- return console.error("%cstorage", m.STORAGE, N.SLIDE, r, o), 400;
3734
+ return console.error("%cstorage", m.STORAGE, j.SLIDE, r, o), 400;
3735
3735
  }
3736
3736
  });
3737
3737
  this.options = r, Storage.prototype.setObject = function(o, d) {
@@ -3751,7 +3751,7 @@ class Lr {
3751
3751
  try {
3752
3752
  return sessionStorage.getObject(o);
3753
3753
  } catch (d) {
3754
- return console.warn("%capi", m.API, N.CLOUD, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3754
+ return console.warn("%capi", m.API, j.CLOUD, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3755
3755
  }
3756
3756
  });
3757
3757
  k(this, "getSeries", async (r) => {
@@ -3759,7 +3759,7 @@ class Lr {
3759
3759
  try {
3760
3760
  return sessionStorage.getObject(o);
3761
3761
  } catch (d) {
3762
- return console.warn("%capi", m.API, N.SERIES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3762
+ return console.warn("%capi", m.API, j.SERIES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3763
3763
  }
3764
3764
  });
3765
3765
  k(this, "getMessages", async (r) => {
@@ -3767,7 +3767,7 @@ class Lr {
3767
3767
  try {
3768
3768
  return sessionStorage.getObject(o);
3769
3769
  } catch (d) {
3770
- return console.warn("%capi", m.API, N.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3770
+ return console.warn("%capi", m.API, j.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3771
3771
  }
3772
3772
  });
3773
3773
  /**
@@ -3781,7 +3781,7 @@ class Lr {
3781
3781
  try {
3782
3782
  return sessionStorage.setObject(d, o), 201;
3783
3783
  } catch (x) {
3784
- return console.error("%cstorage", m.STORAGE, N.CLOUD, r, x), 400;
3784
+ return console.error("%cstorage", m.STORAGE, j.CLOUD, r, x), 400;
3785
3785
  }
3786
3786
  });
3787
3787
  /**
@@ -3795,7 +3795,7 @@ class Lr {
3795
3795
  try {
3796
3796
  return sessionStorage.setObject(d, o), 201;
3797
3797
  } catch (x) {
3798
- return console.error("%cstorage", m.STORAGE, N.SERIES, r, x), 400;
3798
+ return console.error("%cstorage", m.STORAGE, j.SERIES, r, x), 400;
3799
3799
  }
3800
3800
  });
3801
3801
  /**
@@ -3809,7 +3809,7 @@ class Lr {
3809
3809
  try {
3810
3810
  return sessionStorage.setObject(d, o), 200;
3811
3811
  } catch (x) {
3812
- return console.error("%cstorage", m.STORAGE, N.MESSAGES, r, x), 400;
3812
+ return console.error("%cstorage", m.STORAGE, j.MESSAGES, r, x), 400;
3813
3813
  }
3814
3814
  });
3815
3815
  k(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((o) => o(0))));
@@ -3821,7 +3821,7 @@ class Lr {
3821
3821
  try {
3822
3822
  return sessionStorage.setObject(o, r), 201;
3823
3823
  } catch (d) {
3824
- return console.error("%cstorage", m.STORAGE, N.WIDGET, r, d), 400;
3824
+ return console.error("%cstorage", m.STORAGE, j.WIDGET, r, d), 400;
3825
3825
  }
3826
3826
  });
3827
3827
  /**
@@ -3829,7 +3829,7 @@ class Lr {
3829
3829
  * @param query IQuery
3830
3830
  * @returns null
3831
3831
  */
3832
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3832
+ k(this, "subscribe", (r) => (r.type === j.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3833
3833
  (d) => d.widget === r.widget
3834
3834
  ).length || (console.debug(
3835
3835
  "%cstorage%c %csubscribe",
@@ -3848,7 +3848,7 @@ class Lr {
3848
3848
  try {
3849
3849
  return sessionStorage.getObject(`${r.type}.${r.id}`);
3850
3850
  } catch (o) {
3851
- return console.warn("%capi", m.API, N.SLIDE, r.id, o), { data: null, message: "Store Load error", success: !1 };
3851
+ return console.warn("%capi", m.API, j.SLIDE, r.id, o), { data: null, message: "Store Load error", success: !1 };
3852
3852
  }
3853
3853
  });
3854
3854
  /**
@@ -3866,7 +3866,7 @@ class Lr {
3866
3866
  css: r.data.css || ""
3867
3867
  }), 200;
3868
3868
  } catch (o) {
3869
- return console.error("%cstorage", m.STORAGE, N.SLIDE, r, o), 400;
3869
+ return console.error("%cstorage", m.STORAGE, j.SLIDE, r, o), 400;
3870
3870
  }
3871
3871
  });
3872
3872
  this.options = r, Storage.prototype.setObject = function(o, d) {
@@ -3886,7 +3886,7 @@ class Gr {
3886
3886
  try {
3887
3887
  return window.BuzzCasting.WidgetData[o];
3888
3888
  } catch (d) {
3889
- return console.warn("%capi", m.API, N.CLOUD, r.slide, r.widget, d), { data: null, message: "Cloud Data error", success: !1 };
3889
+ return console.warn("%capi", m.API, j.CLOUD, r.slide, r.widget, d), { data: null, message: "Cloud Data error", success: !1 };
3890
3890
  }
3891
3891
  });
3892
3892
  k(this, "getSeries", async (r) => {
@@ -3894,7 +3894,7 @@ class Gr {
3894
3894
  try {
3895
3895
  return window.BuzzCasting.WidgetData[o];
3896
3896
  } catch (d) {
3897
- return console.warn("%capi", m.API, N.SERIES, r.slide, r.widget, d), { data: null, message: "Series Data error", success: !1 };
3897
+ return console.warn("%capi", m.API, j.SERIES, r.slide, r.widget, d), { data: null, message: "Series Data error", success: !1 };
3898
3898
  }
3899
3899
  });
3900
3900
  k(this, "getMessages", async (r) => {
@@ -3902,7 +3902,7 @@ class Gr {
3902
3902
  try {
3903
3903
  return window.BuzzCasting.WidgetData[o];
3904
3904
  } catch (d) {
3905
- return console.warn("%capi", m.API, N.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3905
+ return console.warn("%capi", m.API, j.MESSAGES, r.slide, r.widget, d), { data: null, message: "Messages Data error", success: !1 };
3906
3906
  }
3907
3907
  });
3908
3908
  /**
@@ -3956,7 +3956,7 @@ class Gr {
3956
3956
  try {
3957
3957
  return window.BuzzCasting.WidgetData[o] = r, 201;
3958
3958
  } catch (d) {
3959
- return console.error("%cstorage", m.STORAGE, N.WIDGET, r, d), 400;
3959
+ return console.error("%cstorage", m.STORAGE, j.WIDGET, r, d), 400;
3960
3960
  }
3961
3961
  });
3962
3962
  /**
@@ -3964,7 +3964,7 @@ class Gr {
3964
3964
  * @param query IQuery
3965
3965
  * @returns null
3966
3966
  */
3967
- k(this, "subscribe", (r) => (r.type === N.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3967
+ k(this, "subscribe", (r) => (r.type === j.MESSAGES && (r = _t(this.options, r)), this.subscribers.filter(
3968
3968
  (d) => d.widget === r.widget
3969
3969
  ).length || (console.debug(
3970
3970
  "%cstorage%c %csubscribe",
@@ -3983,7 +3983,7 @@ class Gr {
3983
3983
  try {
3984
3984
  return window.BuzzCasting.SlideData[r.id];
3985
3985
  } catch (o) {
3986
- return console.warn("%capi", m.API, N.SLIDE, r.id, o), { data: null, message: "Slide Load error", success: !1 };
3986
+ return console.warn("%capi", m.API, j.SLIDE, r.id, o), { data: null, message: "Slide Load error", success: !1 };
3987
3987
  }
3988
3988
  });
3989
3989
  k(this, "storeSlide", async (r) => {
@@ -3996,7 +3996,7 @@ class Gr {
3996
3996
  css: r.data.css || ""
3997
3997
  }, 201;
3998
3998
  } catch (o) {
3999
- return console.error("%cstorage", m.STORAGE, N.SLIDE, r, o), 400;
3999
+ return console.error("%cstorage", m.STORAGE, j.SLIDE, r, o), 400;
4000
4000
  }
4001
4001
  });
4002
4002
  this.options = r, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
@@ -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,23 +4197,54 @@ 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
- var d, x, D, K, U;
4202
- if (r ? o.content = "License suspended, please contact your Sales Representative to restore service" : o.content = ((d = o.content) == null ? void 0 : d.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g, "")) || "", o.sender !== null ? ((((x = o.sender) == null ? void 0 : x.title) === "Unknown author" || ((D = o.sender) == null ? void 0 : D.title) === null) && (o.sender.title = ""), ((K = o.sender) == null ? void 0 : K.name) !== "" && o.sender.title === "" && (o.sender.title = o.sender.name), ((U = o.sender) == null ? void 0 : U.name) !== "" && o.channel === "tw" && (o.sender.name = `@${o.sender.name}`)) : o.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, o.sender.title === "" && o.link !== "") {
4203
- const M = new URL(o.link);
4204
- o.sender.title = M.hostname.replace("www.", "");
4203
+ var d;
4204
+ if (r ? o.content = "License suspended, please contact your Sales Representative to restore service" : o.content = ((d = o.content) == null ? void 0 : d.replace(
4205
+ /(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g,
4206
+ ""
4207
+ )) || "", o.sender !== null)
4208
+ switch (!0) {
4209
+ case o.sender.title === "Unknown author":
4210
+ o.sender.title = "", o.sender.name = "";
4211
+ break;
4212
+ case o.sender.title === o.sender.name:
4213
+ o.sender.name = "";
4214
+ break;
4215
+ case o.channel === "tw":
4216
+ o.sender.name = `@${o.sender.name}`;
4217
+ break;
4218
+ }
4219
+ else
4220
+ o.sender = {
4221
+ title: "",
4222
+ name: "",
4223
+ id: "",
4224
+ avatar: "default",
4225
+ bio: "",
4226
+ location: "",
4227
+ following: 0,
4228
+ verified: 0,
4229
+ listed: 0,
4230
+ followers: 0,
4231
+ favourites: 0,
4232
+ messages: 0,
4233
+ influence: 0
4234
+ };
4235
+ if (o.sender.title === "" && o.link !== "") {
4236
+ const x = new URL(o.link);
4237
+ o.sender.title = x.hostname.replace("www.", "");
4205
4238
  }
4206
4239
  }), l;
4207
4240
  }
4208
- function ti(l, r, o, d) {
4241
+ function ts(l, r, o, d) {
4209
4242
  l.stopPropagation(), r.showModal({
4210
4243
  showComponent: "card-modal",
4211
4244
  props: { data: o, options: d }
4212
4245
  });
4213
4246
  }
4214
- function ni(l) {
4247
+ function ns(l) {
4215
4248
  const r = [...l];
4216
4249
  for (let o = r.length - 1; o > 0; o--) {
4217
4250
  const d = Math.floor(Math.random() * (o + 1));
@@ -4219,16 +4252,16 @@ function ni(l) {
4219
4252
  }
4220
4253
  return r;
4221
4254
  }
4222
- function ri() {
4255
+ function rs() {
4223
4256
  let l = "";
4224
4257
  const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4225
4258
  for (let o = 0; o < 7; o++) l += r.charAt(Math.floor(Math.random() * r.length));
4226
4259
  return l;
4227
4260
  }
4228
- function ai(l) {
4261
+ function as(l) {
4229
4262
  return l[Math.floor(Math.random() * l.length)];
4230
4263
  }
4231
- const ii = (l) => {
4264
+ const ss = (l) => {
4232
4265
  switch (!0) {
4233
4266
  case l < 0:
4234
4267
  return "text-down text-xs";
@@ -4238,7 +4271,7 @@ const ii = (l) => {
4238
4271
  return "text-white text-xs";
4239
4272
  }
4240
4273
  };
4241
- class si {
4274
+ class is {
4242
4275
  constructor(r) {
4243
4276
  k(this, "sm");
4244
4277
  k(this, "api");
@@ -4257,96 +4290,96 @@ class si {
4257
4290
  (x) => x.forEach(async (D) => {
4258
4291
  let K, U = 400;
4259
4292
  if (D.status === "fulfilled") {
4260
- let M = D.value;
4293
+ let N = D.value;
4261
4294
  if (this.sm === null)
4262
4295
  return 400;
4263
- if (M.success === !0) {
4296
+ if (N.success === !0) {
4264
4297
  const X = this.sm.subscribers.filter(
4265
- (le) => le.widget === M.query.widget
4298
+ (le) => le.widget === N.query.widget
4266
4299
  )[0];
4267
- let se = "", ee;
4268
- switch (M.query.type) {
4269
- case N.MESSAGES:
4270
- if (ee = M.data.messages.filter(
4300
+ let ie = "", ee;
4301
+ switch (N.query.type) {
4302
+ case j.MESSAGES:
4303
+ if (ee = N.data.messages.filter(
4271
4304
  (le) => le.id !== null
4272
- ), M.data.messages = ee, se = Fn(M.data.messages), X.hash === se)
4305
+ ), N.data.messages = ee, ie = Fn(N.data.messages), X.hash === ie)
4273
4306
  return console.info(
4274
4307
  "%capi%c %cno updates",
4275
4308
  m.API,
4276
4309
  m.NONE,
4277
4310
  m.NO_UPDATES,
4278
- N.MESSAGES,
4279
- M.query.slide,
4280
- M.query.widget
4311
+ j.MESSAGES,
4312
+ N.query.slide,
4313
+ N.query.widget
4281
4314
  ), console.debug(
4282
4315
  "%capi%c %cno updates",
4283
4316
  m.API,
4284
4317
  m.NONE,
4285
4318
  m.NO_UPDATES,
4286
- N.MESSAGES,
4287
- M
4319
+ j.MESSAGES,
4320
+ N
4288
4321
  ), 204;
4289
- K = M, X.hash = se, U = await this.sm.setMessages(M.query, M);
4322
+ K = N, X.hash = ie, U = await this.sm.setMessages(N.query, N);
4290
4323
  break;
4291
- case N.CLOUD:
4292
- se = Fn(M.data), X.hash === se ? (console.info(
4324
+ case j.CLOUD:
4325
+ ie = Fn(N.data), X.hash === ie ? (console.info(
4293
4326
  "%capi%c %cno updates",
4294
4327
  m.API,
4295
4328
  m.NONE,
4296
4329
  m.NO_UPDATES,
4297
- N.CLOUD,
4298
- M.query.slide,
4299
- M.query.widget
4330
+ j.CLOUD,
4331
+ N.query.slide,
4332
+ N.query.widget
4300
4333
  ), console.debug(
4301
4334
  "%capi%c %cno updates",
4302
4335
  m.API,
4303
4336
  m.NONE,
4304
4337
  m.NO_UPDATES,
4305
- N.CLOUD,
4306
- M
4307
- ), U = 204) : (X.hash = se, K = {
4338
+ j.CLOUD,
4339
+ N
4340
+ ), U = 204) : (X.hash = ie, K = {
4308
4341
  data: {
4309
- dashboard: M.query.dashboard,
4310
- cloud: M.data,
4311
- query: M.query,
4312
- slide: M.query.slide
4342
+ dashboard: N.query.dashboard,
4343
+ cloud: N.data,
4344
+ query: N.query,
4345
+ slide: N.query.slide
4313
4346
  },
4314
- query: M.query,
4315
- message: M.message,
4316
- success: M.success
4347
+ query: N.query,
4348
+ message: N.message,
4349
+ success: N.success
4317
4350
  }, U = await this.sm.setCloud(
4318
- M.query,
4351
+ N.query,
4319
4352
  K.data.cloud
4320
4353
  ));
4321
4354
  break;
4322
- case N.SERIES:
4323
- se = Fn(M.data), X.hash === se ? (console.info(
4355
+ case j.SERIES:
4356
+ ie = Fn(N.data), X.hash === ie ? (console.info(
4324
4357
  "%capi%c %cno updates",
4325
4358
  m.API,
4326
4359
  m.NONE,
4327
4360
  m.NO_UPDATES,
4328
- N.SERIES,
4329
- M.query.slide,
4330
- M.query.widget
4361
+ j.SERIES,
4362
+ N.query.slide,
4363
+ N.query.widget
4331
4364
  ), console.debug(
4332
4365
  "%capi%c %cno updates",
4333
4366
  m.API,
4334
4367
  m.NONE,
4335
4368
  m.NO_UPDATES,
4336
- N.SERIES,
4337
- M
4338
- ), U = 204) : (X.hash = se, K = {
4369
+ j.SERIES,
4370
+ N
4371
+ ), U = 204) : (X.hash = ie, K = {
4339
4372
  data: {
4340
- dashboard: M.query.dashboard,
4341
- series: M.data,
4342
- query: M.query,
4343
- slide: M.query.slide
4373
+ dashboard: N.query.dashboard,
4374
+ series: N.data,
4375
+ query: N.query,
4376
+ slide: N.query.slide
4344
4377
  },
4345
- query: M.query,
4346
- message: M.message,
4347
- success: M.success
4378
+ query: N.query,
4379
+ message: N.message,
4380
+ success: N.success
4348
4381
  }, U = await this.sm.setSeries(
4349
- M.query,
4382
+ N.query,
4350
4383
  K.data.series
4351
4384
  ));
4352
4385
  break;
@@ -4357,7 +4390,7 @@ class si {
4357
4390
  m.NONE,
4358
4391
  m.STORAGE,
4359
4392
  "error",
4360
- `data type ${M.query.type} unknown`
4393
+ `data type ${N.query.type} unknown`
4361
4394
  );
4362
4395
  }
4363
4396
  } else
@@ -4369,25 +4402,25 @@ class si {
4369
4402
  m.API,
4370
4403
  m.NONE,
4371
4404
  m.BROADCAST,
4372
- M.query.slide,
4373
- M.data.title ?? M.query.widget
4405
+ N.query.slide,
4406
+ N.data.title ?? N.query.widget
4374
4407
  ), console.debug(
4375
4408
  "%capp%c %cbroadcast",
4376
4409
  m.API,
4377
4410
  m.NONE,
4378
4411
  m.BROADCAST,
4379
- M
4412
+ N
4380
4413
  );
4381
4414
  const X = structuredClone(K.query);
4382
- switch (M.query.type) {
4415
+ switch (N.query.type) {
4383
4416
  case "messages":
4384
- M = await this.sm.getMessages(X);
4417
+ N = await this.sm.getMessages(X);
4385
4418
  break;
4386
4419
  case "cloud":
4387
- M = await this.sm.getCloud(X), M && (M.query = X);
4420
+ N = await this.sm.getCloud(X), N && (N.query = X);
4388
4421
  break;
4389
4422
  case "series":
4390
- M = await this.sm.getSeries(X), M && (M.query = X);
4423
+ N = await this.sm.getSeries(X), N && (N.query = X);
4391
4424
  break;
4392
4425
  default:
4393
4426
  console.warn(
@@ -4396,12 +4429,12 @@ class si {
4396
4429
  m.NONE,
4397
4430
  m.BROADCAST,
4398
4431
  "Unhandled data type",
4399
- M.query
4432
+ N.query
4400
4433
  );
4401
4434
  }
4402
- M && this.bc.postMessage({
4435
+ N && this.bc.postMessage({
4403
4436
  event: re.WIDGET_UPDATE,
4404
- data: M.data
4437
+ data: N.data
4405
4438
  });
4406
4439
  break;
4407
4440
  case 204:
@@ -4413,8 +4446,8 @@ class si {
4413
4446
  m.NONE,
4414
4447
  m.BROADCAST,
4415
4448
  "Fetch error",
4416
- M.query.slide,
4417
- M.data.title ?? M.query.widget
4449
+ N.query.slide,
4450
+ N.data.title ?? N.query.widget
4418
4451
  );
4419
4452
  break;
4420
4453
  }
@@ -4546,7 +4579,7 @@ class $a {
4546
4579
  */
4547
4580
  k(this, "getCloud", async (r) => {
4548
4581
  var o;
4549
- return r.type !== N.CLOUD ? (console.warn(
4582
+ return r.type !== j.CLOUD ? (console.warn(
4550
4583
  "%capp%c %get",
4551
4584
  m.APP,
4552
4585
  m.NONE,
@@ -4567,7 +4600,7 @@ class $a {
4567
4600
  */
4568
4601
  k(this, "getMessages", async (r) => {
4569
4602
  var o;
4570
- return r.type !== N.MESSAGES ? (console.warn(
4603
+ return r.type !== j.MESSAGES ? (console.warn(
4571
4604
  "%capp%c %get",
4572
4605
  m.APP,
4573
4606
  m.NONE,
@@ -4588,7 +4621,7 @@ class $a {
4588
4621
  */
4589
4622
  k(this, "getSeries", async (r) => {
4590
4623
  var o;
4591
- return r.type !== N.SERIES ? (console.warn(
4624
+ return r.type !== j.SERIES ? (console.warn(
4592
4625
  "%capp%c %get",
4593
4626
  m.APP,
4594
4627
  m.NONE,
@@ -4621,7 +4654,7 @@ class $a {
4621
4654
  }
4622
4655
  }
4623
4656
  }
4624
- class oi {
4657
+ class os {
4625
4658
  /**
4626
4659
  * Main container for managing widgets and data updates
4627
4660
  *
@@ -4642,11 +4675,11 @@ class oi {
4642
4675
  */
4643
4676
  k(this, "getData", async () => {
4644
4677
  switch (this.query.type) {
4645
- case N.CLOUD:
4678
+ case j.CLOUD:
4646
4679
  return await this.getCloud();
4647
- case N.MESSAGES:
4680
+ case j.MESSAGES:
4648
4681
  return await this.getMessages();
4649
- case N.SERIES:
4682
+ case j.SERIES:
4650
4683
  return await this.getSeries();
4651
4684
  }
4652
4685
  return {
@@ -4660,7 +4693,7 @@ class oi {
4660
4693
  *
4661
4694
  * @returns IResponse
4662
4695
  */
4663
- k(this, "getCloud", async () => this.query.type !== N.CLOUD ? (console.warn(
4696
+ k(this, "getCloud", async () => this.query.type !== j.CLOUD ? (console.warn(
4664
4697
  "%cstorage%c %cwidget",
4665
4698
  m.STORAGE,
4666
4699
  m.NONE,
@@ -4678,7 +4711,7 @@ class oi {
4678
4711
  *
4679
4712
  * @returns IResponse
4680
4713
  */
4681
- k(this, "getMessages", async () => this.query.type !== N.MESSAGES ? (console.warn(
4714
+ k(this, "getMessages", async () => this.query.type !== j.MESSAGES ? (console.warn(
4682
4715
  "%cstorage%c %cwidget",
4683
4716
  m.STORAGE,
4684
4717
  m.NONE,
@@ -4702,7 +4735,7 @@ class oi {
4702
4735
  *
4703
4736
  * @returns IResponse
4704
4737
  */
4705
- k(this, "getSeries", async () => this.query.type !== N.SERIES ? (console.warn(
4738
+ k(this, "getSeries", async () => this.query.type !== j.SERIES ? (console.warn(
4706
4739
  "%cstorage%c %cwidget",
4707
4740
  m.STORAGE,
4708
4741
  m.NONE,
@@ -4801,14 +4834,14 @@ class oi {
4801
4834
  }
4802
4835
  }
4803
4836
  export {
4804
- N as API,
4805
- si as BuzzcastingStorageManager,
4837
+ j as API,
4838
+ is as BuzzcastingStorageManager,
4806
4839
  $a as BuzzcastingStorageReader,
4807
4840
  m as CSS,
4808
4841
  re as EVENTS,
4809
4842
  Zt as MODERATION,
4810
4843
  ye as STORAGE,
4811
- oi as Widget,
4844
+ os as Widget,
4812
4845
  Fa as anonymize,
4813
4846
  Wa as attachedMedia,
4814
4847
  ja as attrs,
@@ -4823,12 +4856,12 @@ export {
4823
4856
  Fn as hashSum,
4824
4857
  Va as intToString,
4825
4858
  Za as numberFormatter,
4826
- ai as randomValue,
4859
+ as as randomValue,
4827
4860
  qa as rtl,
4828
- ei as sanitize,
4829
- ti as showModal,
4830
- ni as shuffleMessages,
4831
- ri as stringGen,
4832
- ii as upDownColor,
4861
+ es as sanitize,
4862
+ ts as showModal,
4863
+ ns as shuffleMessages,
4864
+ rs as stringGen,
4865
+ ss as upDownColor,
4833
4866
  Mr as widgetParams
4834
4867
  };