buzzcasting-storage 2.16.21 → 2.16.23

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 xi = Object.defineProperty;
2
- var ki = (f, r, c) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : f[r] = c;
3
- var D = (f, r, c) => ki(f, typeof r != "symbol" ? r + "" : r, c);
2
+ var ki = (f, r, s) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : f[r] = s;
3
+ var D = (f, r, s) => ki(f, typeof r != "symbol" ? r + "" : r, s);
4
4
  var j = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(j || {}), _ = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(_ || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
- const Ai = "2.16.20";
5
+ const Ai = "2.16.22";
6
6
  class Di {
7
7
  constructor(r) {
8
8
  D(this, "options");
@@ -32,7 +32,7 @@ class Di {
32
32
  this.options = r, this.url = `https://${r.app}.buzzcasting.net`;
33
33
  }
34
34
  async get(r) {
35
- const { version: c } = this.options, l = this.headers(), A = Object.assign({}, r);
35
+ const { version: s } = this.options, l = this.headers(), A = Object.assign({}, r);
36
36
  delete A.slide, delete A.type, delete A.hash;
37
37
  const k = Object.keys(A).length > 0 ? `?${new URLSearchParams(A).toString()}` : "";
38
38
  return console.debug(
@@ -43,7 +43,7 @@ class Di {
43
43
  r.slide,
44
44
  r.widget
45
45
  ), await fetch(
46
- [this.url, "api", c, r.type].join("/") + k,
46
+ [this.url, "api", s, r.type].join("/") + k,
47
47
  { ...l, method: "get" }
48
48
  ).then(async (N) => {
49
49
  if (!N.ok)
@@ -52,7 +52,7 @@ class Di {
52
52
  }).then((N) => N.json()).then((N) => (N.query = r, N)).catch((N) => ({ success: !1, message: `${N}`, data: null }));
53
53
  }
54
54
  async hideMessage(r) {
55
- const { version: c } = this.options, l = this.headers(), A = "?action=visible";
55
+ const { version: s } = this.options, l = this.headers(), A = "?action=visible";
56
56
  return console.info(
57
57
  "%capi%c %cput",
58
58
  _.API,
@@ -62,7 +62,7 @@ class Di {
62
62
  r.widget,
63
63
  r.id
64
64
  ), await fetch(
65
- [this.url, "api", c, "messages", r.id].join("/") + A,
65
+ [this.url, "api", s, "messages", r.id].join("/") + A,
66
66
  { ...l, method: "put" }
67
67
  ).then((k) => {
68
68
  if (!k.ok)
@@ -71,9 +71,9 @@ class Di {
71
71
  }).then((k) => k.json()).catch((k) => ({ succes: !1, message: k, data: [] }));
72
72
  }
73
73
  async hideLabels(r) {
74
- const { version: c } = this.options, l = this.formHeaders(), A = new URLSearchParams(), k = r.labels || [];
75
- for (const [N, L] of k.entries())
76
- A.append(`custom_filters[${N}]`, L);
74
+ const { version: s } = this.options, l = this.formHeaders(), A = new URLSearchParams(), k = r.labels || [];
75
+ for (const [N, B] of k.entries())
76
+ A.append(`custom_filters[${N}]`, B);
77
77
  return console.info(
78
78
  "%capi%c %cput",
79
79
  _.API,
@@ -83,7 +83,7 @@ class Di {
83
83
  r.widget,
84
84
  k
85
85
  ), await fetch(
86
- [this.url, "api", c, r.type, r.widget].join("/"),
86
+ [this.url, "api", s, r.type, r.widget].join("/"),
87
87
  { ...l, body: A, method: "put" }
88
88
  ).then((N) => {
89
89
  if (!N.ok)
@@ -92,7 +92,7 @@ class Di {
92
92
  }).then((N) => N.json()).catch((N) => ({ succes: !1, message: N, data: [] }));
93
93
  }
94
94
  async loadSlide(r) {
95
- const { version: c } = this.options, l = this.headers(), A = Object.assign({}, r);
95
+ const { version: s } = this.options, l = this.headers(), A = Object.assign({}, r);
96
96
  return delete A.slide, delete A.type, delete A.hash, console.debug(
97
97
  "%capi%c %cget",
98
98
  _.API,
@@ -101,7 +101,7 @@ class Di {
101
101
  re.SLIDE_LOAD,
102
102
  r.slide
103
103
  ), await fetch(
104
- [this.url, "api", c, "slides", r.id].join("/"),
104
+ [this.url, "api", s, "slides", r.id].join("/"),
105
105
  { ...l, method: "get" }
106
106
  ).then(async (k) => {
107
107
  if (!k.ok)
@@ -117,7 +117,7 @@ class Di {
117
117
  * @returns
118
118
  */
119
119
  async storeSlide(r) {
120
- const { version: c } = this.options, l = this.formHeaders();
120
+ const { version: s } = this.options, l = this.formHeaders();
121
121
  delete r.update, delete r.type;
122
122
  const A = JSON.stringify(r);
123
123
  return console.info(
@@ -128,7 +128,7 @@ class Di {
128
128
  re.SLIDE_STORE,
129
129
  r.id
130
130
  ), await fetch(
131
- [this.url, "api", c, "slides", r.id].join("/"),
131
+ [this.url, "api", s, "slides", r.id].join("/"),
132
132
  { ...l, body: A, method: "put" }
133
133
  ).then((k) => {
134
134
  if (!k.ok)
@@ -143,11 +143,11 @@ function Pi(f) {
143
143
  }
144
144
  var Mr = { exports: {} };
145
145
  (function(f, r) {
146
- (function(c, l) {
146
+ (function(s, l) {
147
147
  f.exports = l();
148
148
  })(Rr, function() {
149
- var c = function(e, t) {
150
- return (c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
149
+ var s = function(e, t) {
150
+ return (s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
151
151
  n.__proto__ = i;
152
152
  } || function(n, i) {
153
153
  for (var a in i) Object.prototype.hasOwnProperty.call(i, a) && (n[a] = i[a]);
@@ -162,8 +162,8 @@ var Mr = { exports: {} };
162
162
  for (var i, a = 0, o = t.length; a < o; a++) !i && a in t || ((i = i || Array.prototype.slice.call(t, 0, a))[a] = t[a]);
163
163
  return e.concat(i || Array.prototype.slice.call(t));
164
164
  }
165
- var k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Rr, N = Object.keys, L = Array.isArray;
166
- function J(e, t) {
165
+ var k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Rr, N = Object.keys, B = Array.isArray;
166
+ function Q(e, t) {
167
167
  return typeof t != "object" || N(t).forEach(function(n) {
168
168
  e[n] = t[n];
169
169
  }), e;
@@ -180,7 +180,7 @@ var Mr = { exports: {} };
180
180
  }
181
181
  var zn = Object.defineProperty;
182
182
  function ke(e, t, n, i) {
183
- zn(e, t, J(n && ne(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
183
+ zn(e, t, Q(n && ne(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
184
184
  }
185
185
  function He(e) {
186
186
  return { from: function(t) {
@@ -210,10 +210,10 @@ var Mr = { exports: {} };
210
210
  }
211
211
  return n;
212
212
  }
213
- var s = t.indexOf(".");
214
- if (s !== -1) {
215
- var u = e[t.substr(0, s)];
216
- return u == null ? void 0 : ve(u, t.substr(s + 1));
213
+ var c = t.indexOf(".");
214
+ if (c !== -1) {
215
+ var u = e[t.substr(0, c)];
216
+ return u == null ? void 0 : ve(u, t.substr(c + 1));
217
217
  }
218
218
  }
219
219
  function de(e, t, n) {
@@ -221,8 +221,8 @@ var Mr = { exports: {} };
221
221
  it(typeof n != "string" && "length" in n);
222
222
  for (var i = 0, a = t.length; i < a; ++i) de(e, t[i], n[i]);
223
223
  } else {
224
- var o, s, u = t.indexOf(".");
225
- u !== -1 ? (o = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? L(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !ne(e, o) ? e[o] = {} : u, s, n)) : n === void 0 ? L(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
224
+ var o, c, u = t.indexOf(".");
225
+ u !== -1 ? (o = t.substr(0, u), (c = t.substr(u + 1)) === "" ? n === void 0 ? B(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !ne(e, o) ? e[o] = {} : u, c, n)) : n === void 0 ? B(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
226
226
  }
227
227
  }
228
228
  function Qn(e) {
@@ -248,13 +248,13 @@ var Mr = { exports: {} };
248
248
  if (!n || typeof n != "object") return n;
249
249
  var i = at.get(n);
250
250
  if (i) return i;
251
- if (L(n)) {
251
+ if (B(n)) {
252
252
  i = [], at.set(n, i);
253
253
  for (var a = 0, o = n.length; a < o; ++a) i.push(t(n[a]));
254
254
  } else if (Jn.has(n.constructor)) i = n;
255
255
  else {
256
- var s, u = q(n);
257
- for (s in i = u === Object.prototype ? {} : Object.create(u), at.set(n, i), n) ne(n, s) && (i[s] = t(n[s]));
256
+ var c, u = q(n);
257
+ for (c in i = u === Object.prototype ? {} : Object.create(u), at.set(n, i), n) ne(n, c) && (i[c] = t(n[c]));
258
258
  }
259
259
  return i;
260
260
  }(e), at = null, e;
@@ -276,7 +276,7 @@ var Mr = { exports: {} };
276
276
  function we(e) {
277
277
  var t, n, i, a;
278
278
  if (arguments.length === 1) {
279
- if (L(e)) return e.slice();
279
+ if (B(e)) return e.slice();
280
280
  if (this === Ye && typeof e == "string") return [e];
281
281
  if (a = Hr(e)) {
282
282
  for (n = []; !(i = a.next()).done; ) n.push(i.value);
@@ -333,7 +333,7 @@ var Mr = { exports: {} };
333
333
  }, {}), Ot = pe.reduce(function(e, t) {
334
334
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = $[t]), e;
335
335
  }, {});
336
- function Q() {
336
+ function X() {
337
337
  }
338
338
  function ot(e) {
339
339
  return e;
@@ -349,7 +349,7 @@ var Mr = { exports: {} };
349
349
  };
350
350
  }
351
351
  function Jr(e, t) {
352
- return e === Q ? t : function() {
352
+ return e === X ? t : function() {
353
353
  var n = e.apply(this, arguments);
354
354
  n !== void 0 && (arguments[0] = n);
355
355
  var i = this.onsuccess, a = this.onerror;
@@ -359,27 +359,27 @@ var Mr = { exports: {} };
359
359
  };
360
360
  }
361
361
  function Vr(e, t) {
362
- return e === Q ? t : function() {
362
+ return e === X ? t : function() {
363
363
  e.apply(this, arguments);
364
364
  var n = this.onsuccess, i = this.onerror;
365
365
  this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ke(n, this.onsuccess) : n), i && (this.onerror = this.onerror ? Ke(i, this.onerror) : i);
366
366
  };
367
367
  }
368
368
  function Zr(e, t) {
369
- return e === Q ? t : function(n) {
369
+ return e === X ? t : function(n) {
370
370
  var i = e.apply(this, arguments);
371
- J(n, i);
371
+ Q(n, i);
372
372
  var a = this.onsuccess, o = this.onerror;
373
- return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), a && (this.onsuccess = this.onsuccess ? Ke(a, this.onsuccess) : a), o && (this.onerror = this.onerror ? Ke(o, this.onerror) : o), i === void 0 ? n === void 0 ? void 0 : n : J(i, n);
373
+ return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), a && (this.onsuccess = this.onsuccess ? Ke(a, this.onsuccess) : a), o && (this.onerror = this.onerror ? Ke(o, this.onerror) : o), i === void 0 ? n === void 0 ? void 0 : n : Q(i, n);
374
374
  };
375
375
  }
376
376
  function qr(e, t) {
377
- return e === Q ? t : function() {
377
+ return e === X ? t : function() {
378
378
  return t.apply(this, arguments) !== !1 && e.apply(this, arguments);
379
379
  };
380
380
  }
381
381
  function rn(e, t) {
382
- return e === Q ? t : function() {
382
+ return e === X ? t : function() {
383
383
  var n = e.apply(this, arguments);
384
384
  if (n && typeof n.then == "function") {
385
385
  for (var i = this, a = arguments.length, o = new Array(a); a--; ) o[a] = arguments[a];
@@ -402,7 +402,7 @@ var Mr = { exports: {} };
402
402
  return [t, q(t), e];
403
403
  }(), ct = Se[0], pe = Se[1], Se = Se[2], pe = pe && pe.then, Ne = ct && ct.constructor, an = !!Se, ut = function(e, t) {
404
404
  lt.push([e, t]), xt && (queueMicrotask(ti), xt = !1);
405
- }, on = !0, xt = !0, Be = [], kt = [], sn = ot, Ae = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, G = Ae, lt = [], Le = 0, At = [];
405
+ }, on = !0, xt = !0, Be = [], kt = [], sn = ot, Ae = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: X, pgp: !1, env: {}, finalize: X }, G = Ae, lt = [], Le = 0, At = [];
406
406
  function K(e) {
407
407
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
408
408
  this._listeners = [], this._lib = !1;
@@ -416,10 +416,10 @@ var Mr = { exports: {} };
416
416
  a(function(o) {
417
417
  if (i._state === null) {
418
418
  if (o === i) throw new TypeError("A promise cannot be resolved with itself.");
419
- var s = i._lib && Je();
419
+ var c = i._lib && Je();
420
420
  o && typeof o.then == "function" ? n(i, function(u, h) {
421
421
  o instanceof K ? o._then(u, h) : o.then(u, h);
422
- }) : (i._state = !0, i._value = o, nr(i)), s && Ve();
422
+ }) : (i._state = !0, i._value = o, nr(i)), c && Ve();
423
423
  }
424
424
  }, un.bind(null, i));
425
425
  } catch (o) {
@@ -430,8 +430,8 @@ var Mr = { exports: {} };
430
430
  var cn = { get: function() {
431
431
  var e = G, t = Ct;
432
432
  function n(i, a) {
433
- var o = this, s = !e.global && (e !== G || t !== Ct), u = s && !Pe(), h = new K(function(g, b) {
434
- ln(o, new tr(ir(i, e, s, u), ir(a, e, s, u), g, b, e));
433
+ var o = this, c = !e.global && (e !== G || t !== Ct), u = c && !Pe(), h = new K(function(g, b) {
434
+ ln(o, new tr(ir(i, e, c, u), ir(a, e, c, u), g, b, e));
435
435
  });
436
436
  return this._consoleTask && (h._consoleTask = this._consoleTask), h;
437
437
  }
@@ -472,7 +472,7 @@ var Mr = { exports: {} };
472
472
  !t._state && kt.length && (kt = []), i = ye && t._consoleTask ? t._consoleTask.run(function() {
473
473
  return e(a);
474
474
  }) : e(a), t._state || kt.indexOf(a) !== -1 || function(o) {
475
- for (var s = Be.length; s; ) if (Be[--s]._value === o._value) return Be.splice(s, 1);
475
+ for (var c = Be.length; c; ) if (Be[--c]._value === o._value) return Be.splice(c, 1);
476
476
  }(t), n.resolve(i);
477
477
  } catch (o) {
478
478
  n.reject(o);
@@ -556,8 +556,8 @@ var Mr = { exports: {} };
556
556
  e.length === 0 && t([]);
557
557
  var i = e.length;
558
558
  e.forEach(function(a, o) {
559
- return K.resolve(a).then(function(s) {
560
- e[o] = s, --i || t(e);
559
+ return K.resolve(a).then(function(c) {
560
+ e[o] = c, --i || t(e);
561
561
  }, n);
562
562
  });
563
563
  });
@@ -589,8 +589,8 @@ var Mr = { exports: {} };
589
589
  } }, follow: function(e, t) {
590
590
  return new K(function(n, i) {
591
591
  return De(function(a, o) {
592
- var s = G;
593
- s.unhandleds = [], s.onunhandled = o, s.finalize = Ke(function() {
592
+ var c = G;
593
+ c.unhandleds = [], c.onunhandled = o, c.finalize = Ke(function() {
594
594
  var u, h = this;
595
595
  u = function() {
596
596
  h.unhandleds.length === 0 ? a() : o(h.unhandleds[0]);
@@ -599,7 +599,7 @@ var Mr = { exports: {} };
599
599
  }), ++Le, ut(function() {
600
600
  --Le == 0 && dn();
601
601
  }, []);
602
- }, s.finalize), e();
602
+ }, c.finalize), e();
603
603
  }, t, n, i);
604
604
  });
605
605
  } }), Ne && (Ne.allSettled && ke(K, "allSettled", function() {
@@ -608,10 +608,10 @@ var Mr = { exports: {} };
608
608
  e.length === 0 && t([]);
609
609
  var n = e.length, i = new Array(n);
610
610
  e.forEach(function(a, o) {
611
- return K.resolve(a).then(function(s) {
612
- return i[o] = { status: "fulfilled", value: s };
613
- }, function(s) {
614
- return i[o] = { status: "rejected", reason: s };
611
+ return K.resolve(a).then(function(c) {
612
+ return i[o] = { status: "fulfilled", value: c };
613
+ }, function(c) {
614
+ return i[o] = { status: "rejected", reason: c };
615
615
  }).then(function() {
616
616
  return --n || t(i);
617
617
  });
@@ -622,11 +622,11 @@ var Mr = { exports: {} };
622
622
  return new K(function(t, n) {
623
623
  e.length === 0 && n(new AggregateError([]));
624
624
  var i = e.length, a = new Array(i);
625
- e.forEach(function(o, s) {
625
+ e.forEach(function(o, c) {
626
626
  return K.resolve(o).then(function(u) {
627
627
  return t(u);
628
628
  }, function(u) {
629
- a[s] = u, --i || n(new AggregateError(a));
629
+ a[c] = u, --i || n(new AggregateError(a));
630
630
  });
631
631
  });
632
632
  });
@@ -634,7 +634,7 @@ var Mr = { exports: {} };
634
634
  var ie = { awaits: 0, echoes: 0, id: 0 }, ni = 0, Pt = [], It = 0, Ct = 0, ri = 0;
635
635
  function De(e, t, n, i) {
636
636
  var a = G, o = Object.create(a);
637
- return o.parent = a, o.ref = 0, o.global = !1, o.id = ++ri, Ae.env, o.env = an ? { Promise: K, PromiseProp: { value: K, configurable: !0, writable: !0 }, all: K.all, race: K.race, allSettled: K.allSettled, any: K.any, resolve: K.resolve, reject: K.reject } : {}, t && J(o, t), ++a.ref, o.finalize = function() {
637
+ return o.parent = a, o.ref = 0, o.global = !1, o.id = ++ri, Ae.env, o.env = an ? { Promise: K, PromiseProp: { value: K, configurable: !0, writable: !0 }, all: K.all, race: K.race, allSettled: K.allSettled, any: K.any, resolve: K.resolve, reject: K.reject } : {}, t && Q(o, t), ++a.ref, o.finalize = function() {
638
638
  --this.parent.ref || this.parent.finalize();
639
639
  }, i = Ge(o, e, n, i), o.ref === 0 && o.finalize(), i;
640
640
  }
@@ -687,7 +687,7 @@ var Mr = { exports: {} };
687
687
  function fn(e) {
688
688
  Promise === Ne && ie.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
689
689
  }
690
- ("" + pe).indexOf("[native code]") === -1 && (Ze = Pe = Q);
690
+ ("" + pe).indexOf("[native code]") === -1 && (Ze = Pe = X);
691
691
  var ee = K.reject, $e = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ar = "String expected.", qe = [], Tt = "__dbnames", hn = "readonly", pn = "readwrite";
692
692
  function Fe(e, t) {
693
693
  return e ? t ? function() {
@@ -716,16 +716,16 @@ var Mr = { exports: {} };
716
716
  return t < e ? 1 : e < t ? -1 : 0;
717
717
  case "binary":
718
718
  return function(a, o) {
719
- for (var s = a.length, u = o.length, h = s < u ? s : u, g = 0; g < h; ++g) if (a[g] !== o[g]) return a[g] < o[g] ? -1 : 1;
720
- return s === u ? 0 : s < u ? -1 : 1;
719
+ for (var c = a.length, u = o.length, h = c < u ? c : u, g = 0; g < h; ++g) if (a[g] !== o[g]) return a[g] < o[g] ? -1 : 1;
720
+ return c === u ? 0 : c < u ? -1 : 1;
721
721
  }(ur(e), ur(t));
722
722
  case "Array":
723
723
  return function(a, o) {
724
- for (var s = a.length, u = o.length, h = s < u ? s : u, g = 0; g < h; ++g) {
724
+ for (var c = a.length, u = o.length, h = c < u ? c : u, g = 0; g < h; ++g) {
725
725
  var b = H(a[g], o[g]);
726
726
  if (b !== 0) return b;
727
727
  }
728
- return s === u ? 0 : s < u ? -1 : 1;
728
+ return c === u ? 0 : c < u ? -1 : 1;
729
729
  }(e, t);
730
730
  }
731
731
  } catch {
@@ -741,14 +741,14 @@ var Mr = { exports: {} };
741
741
  }
742
742
  var lr = (V.prototype._trans = function(e, t, n) {
743
743
  var i = this._tx || G.trans, a = this.name, o = ye && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
744
- function s(g, b, d) {
744
+ function c(g, b, d) {
745
745
  if (!d.schema[a]) throw new $.NotFound("Table " + a + " not part of transaction");
746
746
  return t(d.idbtrans, d);
747
747
  }
748
748
  var u = Je();
749
749
  try {
750
- var h = i && i.db._novip === this.db._novip ? i === G.trans ? i._promise(e, s, n) : De(function() {
751
- return i._promise(e, s, n);
750
+ var h = i && i.db._novip === this.db._novip ? i === G.trans ? i._promise(e, c, n) : De(function() {
751
+ return i._promise(e, c, n);
752
752
  }, { trans: i, transless: G.transless || G }) : function g(b, d, w, p) {
753
753
  if (b.idbdb && (b._state.openComplete || G.letThrough || b._vip)) {
754
754
  var m = b._createTransaction(d, w, b._dbSchema);
@@ -776,12 +776,12 @@ var Mr = { exports: {} };
776
776
  if (b._state.openComplete) return ee(new $.DatabaseClosed(b._state.dbOpenError));
777
777
  if (!b._state.isBeingOpened) {
778
778
  if (!b._state.autoOpen) return ee(new $.DatabaseClosed());
779
- b.open().catch(Q);
779
+ b.open().catch(X);
780
780
  }
781
781
  return b._state.dbReadyPromise.then(function() {
782
782
  return g(b, d, w, p);
783
783
  });
784
- }(this.db, e, [this.name], s);
784
+ }(this.db, e, [this.name], c);
785
785
  return o && (h._consoleTask = o, h = h.catch(function(g) {
786
786
  return console.trace(g), ee(g);
787
787
  })), h;
@@ -797,7 +797,7 @@ var Mr = { exports: {} };
797
797
  }).then(t);
798
798
  }, V.prototype.where = function(e) {
799
799
  if (typeof e == "string") return new this.db.WhereClause(this, e);
800
- if (L(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
800
+ if (B(e)) return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
801
801
  var t = N(e);
802
802
  if (t.length === 1) return this.where(t[0]).equals(e[t[0]]);
803
803
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(u) {
@@ -822,17 +822,17 @@ var Mr = { exports: {} };
822
822
  function a(u, h) {
823
823
  return H(u, h) === 0;
824
824
  }
825
- var s = t.reduce(function(d, h) {
825
+ var c = t.reduce(function(d, h) {
826
826
  var g = d[0], b = d[1], d = i[h], w = e[h];
827
827
  return [g || d, g || !d ? Fe(b, d && d.multi ? function(p) {
828
- return p = ve(p, h), L(p) && p.some(function(m) {
828
+ return p = ve(p, h), B(p) && p.some(function(m) {
829
829
  return a(w, m);
830
830
  });
831
831
  } : function(p) {
832
832
  return a(w, ve(p, h));
833
833
  }) : b];
834
- }, [null, null]), o = s[0], s = s[1];
835
- return o ? this.where(o.name).equals(e[o.keyPath]).filter(s) : n ? this.filter(s) : this.where(t).equals("");
834
+ }, [null, null]), o = c[0], c = c[1];
835
+ return o ? this.where(o.name).equals(e[o.keyPath]).filter(c) : n ? this.filter(c) : this.where(t).equals("");
836
836
  }, V.prototype.filter = function(e) {
837
837
  return this.toCollection().and(e);
838
838
  }, V.prototype.count = function(e) {
@@ -848,7 +848,7 @@ var Mr = { exports: {} };
848
848
  }, V.prototype.toCollection = function() {
849
849
  return new this.db.Collection(new this.db.WhereClause(this));
850
850
  }, V.prototype.orderBy = function(e) {
851
- return new this.db.Collection(new this.db.WhereClause(this, L(e) ? "[".concat(e.join("+"), "]") : e));
851
+ return new this.db.Collection(new this.db.WhereClause(this, B(e) ? "[".concat(e.join("+"), "]") : e));
852
852
  }, V.prototype.reverse = function() {
853
853
  return this.toCollection().reverse();
854
854
  }, V.prototype.mapToClass = function(e) {
@@ -861,13 +861,13 @@ var Mr = { exports: {} };
861
861
  function b() {
862
862
  this.constructor = h;
863
863
  }
864
- c(h, g), h.prototype = g === null ? Object.create(g) : (b.prototype = g.prototype, new b());
864
+ s(h, g), h.prototype = g === null ? Object.create(g) : (b.prototype = g.prototype, new b());
865
865
  }(a, t = e), Object.defineProperty(a.prototype, "db", { get: function() {
866
866
  return n;
867
867
  }, enumerable: !1, configurable: !0 }), a.prototype.table = function() {
868
868
  return i;
869
869
  }, e = a);
870
- for (var o = /* @__PURE__ */ new Set(), s = e.prototype; s; s = q(s)) Object.getOwnPropertyNames(s).forEach(function(h) {
870
+ for (var o = /* @__PURE__ */ new Set(), c = e.prototype; c; c = q(c)) Object.getOwnPropertyNames(c).forEach(function(h) {
871
871
  return o.add(h);
872
872
  });
873
873
  function u(h) {
@@ -882,12 +882,12 @@ var Mr = { exports: {} };
882
882
  return this.schema.readHook && this.hook.reading.unsubscribe(this.schema.readHook), this.schema.readHook = u, this.hook("reading", u), e;
883
883
  }, V.prototype.defineClass = function() {
884
884
  return this.mapToClass(function(e) {
885
- J(this, e);
885
+ Q(this, e);
886
886
  });
887
887
  }, V.prototype.add = function(e, t) {
888
- var n = this, i = this.schema.primKey, a = i.auto, o = i.keyPath, s = e;
889
- return o && a && (s = Mt(o)(e)), this._trans("readwrite", function(u) {
890
- return n.core.mutate({ trans: u, type: "add", keys: t != null ? [t] : null, values: [s] });
888
+ var n = this, i = this.schema.primKey, a = i.auto, o = i.keyPath, c = e;
889
+ return o && a && (c = Mt(o)(e)), this._trans("readwrite", function(u) {
890
+ return n.core.mutate({ trans: u, type: "add", keys: t != null ? [t] : null, values: [c] });
891
891
  }).then(function(u) {
892
892
  return u.numFailures ? K.reject(u.failures[0]) : u.lastResult;
893
893
  }).then(function(u) {
@@ -898,11 +898,11 @@ var Mr = { exports: {} };
898
898
  return u;
899
899
  });
900
900
  }, V.prototype.update = function(e, t) {
901
- return typeof e != "object" || L(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? ee(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
901
+ return typeof e != "object" || B(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? ee(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
902
902
  }, V.prototype.put = function(e, t) {
903
- var n = this, i = this.schema.primKey, a = i.auto, o = i.keyPath, s = e;
904
- return o && a && (s = Mt(o)(e)), this._trans("readwrite", function(u) {
905
- return n.core.mutate({ trans: u, type: "put", values: [s], keys: t != null ? [t] : null });
903
+ var n = this, i = this.schema.primKey, a = i.auto, o = i.keyPath, c = e;
904
+ return o && a && (c = Mt(o)(e)), this._trans("readwrite", function(u) {
905
+ return n.core.mutate({ trans: u, type: "put", values: [c], keys: t != null ? [t] : null });
906
906
  }).then(function(u) {
907
907
  return u.numFailures ? K.reject(u.failures[0]) : u.lastResult;
908
908
  }).then(function(u) {
@@ -937,12 +937,12 @@ var Mr = { exports: {} };
937
937
  });
938
938
  }, V.prototype.bulkAdd = function(e, t, n) {
939
939
  var i = this, a = Array.isArray(t) ? t : void 0, o = (n = n || (a ? void 0 : t)) ? n.allKeys : void 0;
940
- return this._trans("readwrite", function(s) {
940
+ return this._trans("readwrite", function(c) {
941
941
  var g = i.schema.primKey, u = g.auto, g = g.keyPath;
942
942
  if (g && a) throw new $.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
943
943
  if (a && a.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
944
944
  var h = e.length, g = g && u ? e.map(Mt(g)) : e;
945
- return i.core.mutate({ trans: s, type: "add", keys: a, values: g, wantResults: o }).then(function(m) {
945
+ return i.core.mutate({ trans: c, type: "add", keys: a, values: g, wantResults: o }).then(function(m) {
946
946
  var d = m.numFailures, w = m.results, p = m.lastResult, m = m.failures;
947
947
  if (d === 0) return o ? w : p;
948
948
  throw new Xe("".concat(i.name, ".bulkAdd(): ").concat(d, " of ").concat(h, " operations failed"), m);
@@ -950,25 +950,25 @@ var Mr = { exports: {} };
950
950
  });
951
951
  }, V.prototype.bulkPut = function(e, t, n) {
952
952
  var i = this, a = Array.isArray(t) ? t : void 0, o = (n = n || (a ? void 0 : t)) ? n.allKeys : void 0;
953
- return this._trans("readwrite", function(s) {
953
+ return this._trans("readwrite", function(c) {
954
954
  var g = i.schema.primKey, u = g.auto, g = g.keyPath;
955
955
  if (g && a) throw new $.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
956
956
  if (a && a.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
957
957
  var h = e.length, g = g && u ? e.map(Mt(g)) : e;
958
- return i.core.mutate({ trans: s, type: "put", keys: a, values: g, wantResults: o }).then(function(m) {
958
+ return i.core.mutate({ trans: c, type: "put", keys: a, values: g, wantResults: o }).then(function(m) {
959
959
  var d = m.numFailures, w = m.results, p = m.lastResult, m = m.failures;
960
960
  if (d === 0) return o ? w : p;
961
961
  throw new Xe("".concat(i.name, ".bulkPut(): ").concat(d, " of ").concat(h, " operations failed"), m);
962
962
  });
963
963
  });
964
964
  }, V.prototype.bulkUpdate = function(e) {
965
- var t = this, n = this.core, i = e.map(function(s) {
966
- return s.key;
967
- }), a = e.map(function(s) {
968
- return s.changes;
965
+ var t = this, n = this.core, i = e.map(function(c) {
966
+ return c.key;
967
+ }), a = e.map(function(c) {
968
+ return c.changes;
969
969
  }), o = [];
970
- return this._trans("readwrite", function(s) {
971
- return n.getMany({ trans: s, keys: i, cache: "clone" }).then(function(u) {
970
+ return this._trans("readwrite", function(c) {
971
+ return n.getMany({ trans: c, keys: i, cache: "clone" }).then(function(u) {
972
972
  var h = [], g = [];
973
973
  e.forEach(function(d, w) {
974
974
  var p = d.key, m = d.changes, v = u[w];
@@ -983,7 +983,7 @@ var Mr = { exports: {} };
983
983
  }
984
984
  });
985
985
  var b = h.length;
986
- return n.mutate({ trans: s, type: "put", keys: h, values: g, updates: { keys: i, changeSpecs: a } }).then(function(d) {
986
+ return n.mutate({ trans: c, type: "put", keys: h, values: g, updates: { keys: i, changeSpecs: a } }).then(function(d) {
987
987
  var w = d.numFailures, p = d.failures;
988
988
  if (w === 0) return b;
989
989
  for (var m = 0, v = Object.keys(p); m < v.length; m++) {
@@ -998,42 +998,42 @@ var Mr = { exports: {} };
998
998
  var t = this, n = e.length;
999
999
  return this._trans("readwrite", function(i) {
1000
1000
  return t.core.mutate({ trans: i, type: "delete", keys: e });
1001
- }).then(function(s) {
1002
- var a = s.numFailures, o = s.lastResult, s = s.failures;
1001
+ }).then(function(c) {
1002
+ var a = c.numFailures, o = c.lastResult, c = c.failures;
1003
1003
  if (a === 0) return o;
1004
- throw new Xe("".concat(t.name, ".bulkDelete(): ").concat(a, " of ").concat(n, " operations failed"), s);
1004
+ throw new Xe("".concat(t.name, ".bulkDelete(): ").concat(a, " of ").concat(n, " operations failed"), c);
1005
1005
  });
1006
1006
  }, V);
1007
1007
  function V() {
1008
1008
  }
1009
1009
  function dt(e) {
1010
- function t(s, u) {
1010
+ function t(c, u) {
1011
1011
  if (u) {
1012
1012
  for (var h = arguments.length, g = new Array(h - 1); --h; ) g[h - 1] = arguments[h];
1013
- return n[s].subscribe.apply(null, g), e;
1013
+ return n[c].subscribe.apply(null, g), e;
1014
1014
  }
1015
- if (typeof s == "string") return n[s];
1015
+ if (typeof c == "string") return n[c];
1016
1016
  }
1017
1017
  var n = {};
1018
1018
  t.addEventType = o;
1019
1019
  for (var i = 1, a = arguments.length; i < a; ++i) o(arguments[i]);
1020
1020
  return t;
1021
- function o(s, u, h) {
1022
- if (typeof s != "object") {
1021
+ function o(c, u, h) {
1022
+ if (typeof c != "object") {
1023
1023
  var g;
1024
1024
  u = u || qr;
1025
- var b = { subscribers: [], fire: h = h || Q, subscribe: function(d) {
1025
+ var b = { subscribers: [], fire: h = h || X, subscribe: function(d) {
1026
1026
  b.subscribers.indexOf(d) === -1 && (b.subscribers.push(d), b.fire = u(b.fire, d));
1027
1027
  }, unsubscribe: function(d) {
1028
1028
  b.subscribers = b.subscribers.filter(function(w) {
1029
1029
  return w !== d;
1030
1030
  }), b.fire = b.subscribers.reduce(u, h);
1031
1031
  } };
1032
- return n[s] = t[s] = b;
1032
+ return n[c] = t[c] = b;
1033
1033
  }
1034
- N(g = s).forEach(function(d) {
1034
+ N(g = c).forEach(function(d) {
1035
1035
  var w = g[d];
1036
- if (L(w)) o(d, g[d][0], g[d][1]);
1036
+ if (B(w)) o(d, g[d][0], g[d][1]);
1037
1037
  else {
1038
1038
  if (w !== "asap") throw new $.InvalidArgument("Invalid event config");
1039
1039
  var p = o(d, ot, function() {
@@ -1076,7 +1076,7 @@ var Mr = { exports: {} };
1076
1076
  function Kt(e, t, n, i) {
1077
1077
  var a = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1078
1078
  if (e.or) {
1079
- var o = {}, s = function(u, h, g) {
1079
+ var o = {}, c = function(u, h, g) {
1080
1080
  var b, d;
1081
1081
  a && !a(h, g, function(w) {
1082
1082
  return h.stop(w);
@@ -1084,35 +1084,35 @@ var Mr = { exports: {} };
1084
1084
  return h.fail(w);
1085
1085
  }) || ((d = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (d = "" + new Uint8Array(b)), ne(o, d) || (o[d] = !0, t(u, h, g)));
1086
1086
  };
1087
- return Promise.all([e.or._iterate(s, n), fr(dr(e, i, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1087
+ return Promise.all([e.or._iterate(c, n), fr(dr(e, i, n), e.algorithm, c, !e.keysOnly && e.valueMapper)]);
1088
1088
  }
1089
1089
  return fr(dr(e, i, n), Fe(e.algorithm, a), t, !e.keysOnly && e.valueMapper);
1090
1090
  }
1091
1091
  function fr(e, t, n, i) {
1092
- var a = Z(i ? function(o, s, u) {
1093
- return n(i(o), s, u);
1092
+ var a = Z(i ? function(o, c, u) {
1093
+ return n(i(o), c, u);
1094
1094
  } : n);
1095
1095
  return e.then(function(o) {
1096
1096
  if (o) return o.start(function() {
1097
- var s = function() {
1097
+ var c = function() {
1098
1098
  return o.continue();
1099
1099
  };
1100
1100
  t && !t(o, function(u) {
1101
- return s = u;
1101
+ return c = u;
1102
1102
  }, function(u) {
1103
- o.stop(u), s = Q;
1103
+ o.stop(u), c = X;
1104
1104
  }, function(u) {
1105
- o.fail(u), s = Q;
1105
+ o.fail(u), c = X;
1106
1106
  }) || a(o.value, o, function(u) {
1107
- return s = u;
1108
- }), s();
1107
+ return c = u;
1108
+ }), c();
1109
1109
  });
1110
1110
  });
1111
1111
  }
1112
1112
  var Se = Symbol(), ht = (hr.prototype.execute = function(e) {
1113
1113
  if (this.add !== void 0) {
1114
1114
  var t = this.add;
1115
- if (L(t)) return A(A([], L(e) ? e : [], !0), t).sort();
1115
+ if (B(t)) return A(A([], B(e) ? e : [], !0), t).sort();
1116
1116
  if (typeof t == "number") return (Number(e) || 0) + t;
1117
1117
  if (typeof t == "bigint") try {
1118
1118
  return BigInt(e) + t;
@@ -1123,7 +1123,7 @@ var Mr = { exports: {} };
1123
1123
  }
1124
1124
  if (this.remove !== void 0) {
1125
1125
  var n = this.remove;
1126
- if (L(n)) return L(e) ? e.filter(function(i) {
1126
+ if (B(n)) return B(e) ? e.filter(function(i) {
1127
1127
  return !n.includes(i);
1128
1128
  }).sort() : [];
1129
1129
  if (typeof n == "number") return Number(e) - n;
@@ -1152,7 +1152,7 @@ var Mr = { exports: {} };
1152
1152
  return Kt(this._ctx, e, t, this._ctx.table.core);
1153
1153
  }, Y.prototype.clone = function(e) {
1154
1154
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1155
- return e && J(n, e), t._ctx = n, t;
1155
+ return e && Q(n, e), t._ctx = n, t;
1156
1156
  }, Y.prototype.raw = function() {
1157
1157
  return this._ctx.valueMapper = null, this;
1158
1158
  }, Y.prototype.each = function(e) {
@@ -1164,8 +1164,8 @@ var Mr = { exports: {} };
1164
1164
  var t = this;
1165
1165
  return this._read(function(n) {
1166
1166
  var i = t._ctx, a = i.table.core;
1167
- if (et(i, !0)) return a.count({ trans: n, query: { index: jt(i, a.schema), range: i.range } }).then(function(s) {
1168
- return Math.min(s, i.limit);
1167
+ if (et(i, !0)) return a.count({ trans: n, query: { index: jt(i, a.schema), range: i.range } }).then(function(c) {
1168
+ return Math.min(c, i.limit);
1169
1169
  });
1170
1170
  var o = 0;
1171
1171
  return Kt(i, function() {
@@ -1179,9 +1179,9 @@ var Mr = { exports: {} };
1179
1179
  function o(h, g) {
1180
1180
  return g ? o(h[n[g]], g - 1) : h[i];
1181
1181
  }
1182
- var s = this._ctx.dir === "next" ? 1 : -1;
1182
+ var c = this._ctx.dir === "next" ? 1 : -1;
1183
1183
  function u(h, g) {
1184
- return H(o(h, a), o(g, a)) * s;
1184
+ return H(o(h, a), o(g, a)) * c;
1185
1185
  }
1186
1186
  return this.toArray(function(h) {
1187
1187
  return h.sort(u);
@@ -1196,11 +1196,11 @@ var Mr = { exports: {} };
1196
1196
  return u = u.result, a ? u.map(a) : u;
1197
1197
  });
1198
1198
  }
1199
- var s = [];
1199
+ var c = [];
1200
1200
  return Kt(i, function(u) {
1201
- return s.push(u);
1201
+ return c.push(u);
1202
1202
  }, n, i.table.core).then(function() {
1203
- return s;
1203
+ return c;
1204
1204
  });
1205
1205
  }, e);
1206
1206
  }, Y.prototype.offset = function(e) {
@@ -1303,8 +1303,8 @@ var Mr = { exports: {} };
1303
1303
  }, Y.prototype.modify = function(e) {
1304
1304
  var t = this, n = this._ctx;
1305
1305
  return this._write(function(i) {
1306
- var a, o, s;
1307
- s = typeof e == "function" ? e : (a = N(e), o = a.length, function(y) {
1306
+ var a, o, c;
1307
+ c = typeof e == "function" ? e : (a = N(e), o = a.length, function(y) {
1308
1308
  for (var S = !1, E = 0; E < o; ++E) {
1309
1309
  var O = a[E], x = e[O], P = ve(y, O);
1310
1310
  x instanceof ht ? (de(y, O, x.execute(P)), S = !0) : P !== x && (de(y, O, x), S = !0);
@@ -1327,8 +1327,8 @@ var Mr = { exports: {} };
1327
1327
  var x = Math.min(b, y.length - O);
1328
1328
  return u.getMany({ trans: i, keys: y.slice(O, O + x), cache: "immutable" }).then(function(P) {
1329
1329
  for (var T = [], I = [], C = h ? [] : null, M = [], R = 0; R < x; ++R) {
1330
- var B = P[R], U = { value: Me(B), primKey: y[O + R] };
1331
- s.call(U, U.value, U) !== !1 && (U.value == null ? M.push(y[O + R]) : h || H(g(B), g(U.value)) === 0 ? (I.push(U.value), h && C.push(y[O + R])) : (M.push(y[O + R]), T.push(U.value)));
1330
+ var L = P[R], U = { value: Me(L), primKey: y[O + R] };
1331
+ c.call(U, U.value, U) !== !1 && (U.value == null ? M.push(y[O + R]) : h || H(g(L), g(U.value)) === 0 ? (I.push(U.value), h && C.push(y[O + R])) : (M.push(y[O + R]), T.push(U.value)));
1332
1332
  }
1333
1333
  return Promise.resolve(0 < T.length && u.mutate({ trans: i, type: "add", values: T }).then(function(W) {
1334
1334
  for (var z in W.failures) M.splice(parseInt(z), 1);
@@ -1358,12 +1358,12 @@ var Mr = { exports: {} };
1358
1358
  return et(e) && (e.isPrimKey || t.type === 3) ? this._write(function(n) {
1359
1359
  var i = e.table.core.schema.primaryKey, a = t;
1360
1360
  return e.table.core.count({ trans: n, query: { index: i, range: a } }).then(function(o) {
1361
- return e.table.core.mutate({ trans: n, type: "deleteRange", range: a }).then(function(s) {
1362
- var u = s.failures;
1363
- if (s.lastResult, s.results, s = s.numFailures, s) throw new Et("Could not delete some values", Object.keys(u).map(function(h) {
1361
+ return e.table.core.mutate({ trans: n, type: "deleteRange", range: a }).then(function(c) {
1362
+ var u = c.failures;
1363
+ if (c.lastResult, c.results, c = c.numFailures, c) throw new Et("Could not delete some values", Object.keys(u).map(function(h) {
1364
1364
  return u[h];
1365
- }), o - s);
1366
- return o - s;
1365
+ }), o - c);
1366
+ return o - c;
1367
1367
  });
1368
1368
  });
1369
1369
  }) : this.modify(mn);
@@ -1388,7 +1388,7 @@ var Mr = { exports: {} };
1388
1388
  }).limit(0);
1389
1389
  }
1390
1390
  function Nt(e, t, n, i) {
1391
- var a, o, s, u, h, g, b, d = n.length;
1391
+ var a, o, c, u, h, g, b, d = n.length;
1392
1392
  if (!n.every(function(m) {
1393
1393
  return typeof m == "string";
1394
1394
  })) return fe(e, ar);
@@ -1401,11 +1401,11 @@ var Mr = { exports: {} };
1401
1401
  return y.toLowerCase();
1402
1402
  } : function(y) {
1403
1403
  return y.toUpperCase();
1404
- }, s = m === "next" ? oi : si;
1404
+ }, c = m === "next" ? oi : si;
1405
1405
  var v = n.map(function(y) {
1406
1406
  return { lower: o(y), upper: a(y) };
1407
1407
  }).sort(function(y, S) {
1408
- return s(y.lower, S.lower);
1408
+ return c(y.lower, S.lower);
1409
1409
  });
1410
1410
  u = v.map(function(y) {
1411
1411
  return y.upper;
@@ -1425,15 +1425,15 @@ var Mr = { exports: {} };
1425
1425
  var E = o(S);
1426
1426
  if (t(E, h, p)) return !0;
1427
1427
  for (var O = null, x = p; x < d; ++x) {
1428
- var P = function(T, I, C, M, R, B) {
1428
+ var P = function(T, I, C, M, R, L) {
1429
1429
  for (var U = Math.min(T.length, M.length), W = -1, z = 0; z < U; ++z) {
1430
1430
  var he = I[z];
1431
1431
  if (he !== M[z]) return R(T[z], C[z]) < 0 ? T.substr(0, z) + C[z] + C.substr(z + 1) : R(T[z], M[z]) < 0 ? T.substr(0, z) + M[z] + C.substr(z + 1) : 0 <= W ? T.substr(0, W) + I[W] + C.substr(W + 1) : null;
1432
1432
  R(T[z], he) < 0 && (W = z);
1433
1433
  }
1434
- return U < M.length && B === "next" ? T + C.substr(T.length) : U < T.length && B === "prev" ? T.substr(0, C.length) : W < 0 ? null : T.substr(0, W) + M[W] + C.substr(W + 1);
1435
- }(S, E, u[x], h[x], s, g);
1436
- P === null && O === null ? p = x + 1 : (O === null || 0 < s(O, P)) && (O = P);
1434
+ return U < M.length && L === "next" ? T + C.substr(T.length) : U < T.length && L === "prev" ? T.substr(0, C.length) : W < 0 ? null : T.substr(0, W) + M[W] + C.substr(W + 1);
1435
+ }(S, E, u[x], h[x], c, g);
1436
+ P === null && O === null ? p = x + 1 : (O === null || 0 < c(O, P)) && (O = P);
1437
1437
  }
1438
1438
  return v(O !== null ? function() {
1439
1439
  m.continue(O + b);
@@ -1514,9 +1514,9 @@ var Mr = { exports: {} };
1514
1514
  n = o === "next" ? e._ascending : e._descending, t.sort(n);
1515
1515
  };
1516
1516
  var a = 0;
1517
- return i._addAlgorithm(function(o, s, u) {
1518
- for (var h = o.key; 0 < n(h, t[a]); ) if (++a === t.length) return s(u), !1;
1519
- return n(h, t[a]) === 0 || (s(function() {
1517
+ return i._addAlgorithm(function(o, c, u) {
1518
+ for (var h = o.key; 0 < n(h, t[a]); ) if (++a === t.length) return c(u), !1;
1519
+ return n(h, t[a]) === 0 || (c(function() {
1520
1520
  o.continue(t[a]);
1521
1521
  }), !1);
1522
1522
  }), i;
@@ -1535,7 +1535,7 @@ var Mr = { exports: {} };
1535
1535
  }, null);
1536
1536
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
1537
1537
  }, ae.prototype.inAnyRange = function(S, t) {
1538
- var n = this, i = this._cmp, a = this._ascending, o = this._descending, s = this._min, u = this._max;
1538
+ var n = this, i = this._cmp, a = this._ascending, o = this._descending, c = this._min, u = this._max;
1539
1539
  if (S.length === 0) return tt(this);
1540
1540
  if (!S.every(function(E) {
1541
1541
  return E[0] !== void 0 && E[1] !== void 0 && a(E[0], E[1]) <= 0;
@@ -1549,7 +1549,7 @@ var Mr = { exports: {} };
1549
1549
  for (var x = 0, P = E.length; x < P; ++x) {
1550
1550
  var T = E[x];
1551
1551
  if (i(O[0], T[1]) < 0 && 0 < i(O[1], T[0])) {
1552
- T[0] = s(T[0], O[0]), T[1] = u(T[1], O[1]);
1552
+ T[0] = c(T[0], O[0]), T[1] = u(T[1], O[1]);
1553
1553
  break;
1554
1554
  }
1555
1555
  }
@@ -1632,24 +1632,24 @@ var Mr = { exports: {} };
1632
1632
  var i = this;
1633
1633
  if (e === "readwrite" && this.mode !== "readwrite") return ee(new $.ReadOnly("Transaction is readonly"));
1634
1634
  if (!this.active) return ee(new $.TransactionInactive());
1635
- if (this._locked()) return new K(function(o, s) {
1635
+ if (this._locked()) return new K(function(o, c) {
1636
1636
  i._blockedFuncs.push([function() {
1637
- i._promise(e, t, n).then(o, s);
1637
+ i._promise(e, t, n).then(o, c);
1638
1638
  }, G]);
1639
1639
  });
1640
1640
  if (n) return De(function() {
1641
- var o = new K(function(s, u) {
1641
+ var o = new K(function(c, u) {
1642
1642
  i._lock();
1643
- var h = t(s, u, i);
1644
- h && h.then && h.then(s, u);
1643
+ var h = t(c, u, i);
1644
+ h && h.then && h.then(c, u);
1645
1645
  });
1646
1646
  return o.finally(function() {
1647
1647
  return i._unlock();
1648
1648
  }), o._lib = !0, o;
1649
1649
  });
1650
- var a = new K(function(o, s) {
1651
- var u = t(o, s, i);
1652
- u && u.then && u.then(o, s);
1650
+ var a = new K(function(o, c) {
1651
+ var u = t(o, c, i);
1652
+ u && u.then && u.then(o, c);
1653
1653
  });
1654
1654
  return a._lib = !0, a;
1655
1655
  }, be.prototype._root = function() {
@@ -1663,11 +1663,11 @@ var Mr = { exports: {} };
1663
1663
  n._waitingFor && (t.get(-1 / 0).onsuccess = o);
1664
1664
  }());
1665
1665
  var a = n._waitingFor;
1666
- return new K(function(o, s) {
1666
+ return new K(function(o, c) {
1667
1667
  i.then(function(u) {
1668
1668
  return n._waitingQueue.push(Z(o.bind(null, u)));
1669
1669
  }, function(u) {
1670
- return n._waitingQueue.push(Z(s.bind(null, u)));
1670
+ return n._waitingQueue.push(Z(c.bind(null, u)));
1671
1671
  }).finally(function() {
1672
1672
  n._waitingFor === a && (n._waitingFor = null);
1673
1673
  });
@@ -1683,8 +1683,8 @@ var Mr = { exports: {} };
1683
1683
  }, be);
1684
1684
  function be() {
1685
1685
  }
1686
- function vn(e, t, n, i, a, o, s) {
1687
- return { name: e, keyPath: t, unique: n, multi: i, auto: a, compound: o, src: (n && !s ? "&" : "") + (i ? "*" : "") + (a ? "++" : "") + yr(t) };
1686
+ function vn(e, t, n, i, a, o, c) {
1687
+ return { name: e, keyPath: t, unique: n, multi: i, auto: a, compound: o, src: (n && !c ? "&" : "") + (i ? "*" : "") + (a ? "++" : "") + yr(t) };
1688
1688
  }
1689
1689
  function yr(e) {
1690
1690
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
@@ -1692,8 +1692,8 @@ var Mr = { exports: {} };
1692
1692
  function wn(e, t, n) {
1693
1693
  return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (i = function(a) {
1694
1694
  return [a.name, a];
1695
- }, n.reduce(function(a, o, s) {
1696
- return s = i(o, s), s && (a[s[0]] = s[1]), a;
1695
+ }, n.reduce(function(a, o, c) {
1696
+ return c = i(o, c), c && (a[c[0]] = c[1]), a;
1697
1697
  }, {})) };
1698
1698
  var i;
1699
1699
  }
@@ -1741,9 +1741,9 @@ var Mr = { exports: {} };
1741
1741
  P = Z(P);
1742
1742
  var I = y.objectStore(m), C = I.keyPath == null, M = S === "put" || S === "add";
1743
1743
  if (!M && S !== "delete" && S !== "deleteRange") throw new Error("Invalid operation type: " + S);
1744
- var R, B = (E || O || { length: 1 }).length;
1744
+ var R, L = (E || O || { length: 1 }).length;
1745
1745
  if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
1746
- if (B === 0) return P({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1746
+ if (L === 0) return P({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1747
1747
  function U(ue) {
1748
1748
  ++he, pt(ue);
1749
1749
  }
@@ -1753,8 +1753,8 @@ var Mr = { exports: {} };
1753
1753
  x.type === 3 ? W.push(R = I.clear()) : W.push(R = I.delete(i(x)));
1754
1754
  } else {
1755
1755
  var C = M ? C ? [O, E] : [O, null] : [E, null], F = C[0], se = C[1];
1756
- if (M) for (var ce = 0; ce < B; ++ce) W.push(R = se && se[ce] !== void 0 ? I[S](F[ce], se[ce]) : I[S](F[ce])), R.onerror = U;
1757
- else for (ce = 0; ce < B; ++ce) W.push(R = I[S](F[ce])), R.onerror = U;
1756
+ if (M) for (var ce = 0; ce < L; ++ce) W.push(R = se && se[ce] !== void 0 ? I[S](F[ce], se[ce]) : I[S](F[ce])), R.onerror = U;
1757
+ else for (ce = 0; ce < L; ++ce) W.push(R = I[S](F[ce])), R.onerror = U;
1758
1758
  }
1759
1759
  function Jt(ue) {
1760
1760
  ue = ue.target.result, W.forEach(function(ze, Ln) {
@@ -1773,7 +1773,7 @@ var Mr = { exports: {} };
1773
1773
  E = Z(E);
1774
1774
  for (var x, P = y.objectStore(m), T = S.length, I = new Array(T), C = 0, M = 0, R = function(W) {
1775
1775
  W = W.target, I[W._pos] = W.result, ++M === C && E(I);
1776
- }, B = me(O), U = 0; U < T; ++U) S[U] != null && ((x = P.get(S[U]))._pos = U, x.onsuccess = R, x.onerror = B, ++C);
1776
+ }, L = me(O), U = 0; U < T; ++U) S[U] != null && ((x = P.get(S[U]))._pos = U, x.onsuccess = R, x.onerror = L, ++C);
1777
1777
  C === 0 && E(I);
1778
1778
  });
1779
1779
  }, get: function(v) {
@@ -1790,9 +1790,9 @@ var Mr = { exports: {} };
1790
1790
  y = Z(y);
1791
1791
  var E, O, x, C = v.trans, P = v.values, T = v.limit, R = v.query, I = T === 1 / 0 ? void 0 : T, M = R.index, R = R.range, C = C.objectStore(m), M = M.isPrimaryKey ? C : C.index(M.name), R = i(R);
1792
1792
  if (T === 0) return y({ result: [] });
1793
- p ? ((I = P ? M.getAll(R, I) : M.getAllKeys(R, I)).onsuccess = function(B) {
1794
- return y({ result: B.target.result });
1795
- }, I.onerror = me(S)) : (E = 0, O = !P && "openKeyCursor" in M ? M.openKeyCursor(R) : M.openCursor(R), x = [], O.onsuccess = function(B) {
1793
+ p ? ((I = P ? M.getAll(R, I) : M.getAllKeys(R, I)).onsuccess = function(L) {
1794
+ return y({ result: L.target.result });
1795
+ }, I.onerror = me(S)) : (E = 0, O = !P && "openKeyCursor" in M ? M.openKeyCursor(R) : M.openCursor(R), x = [], O.onsuccess = function(L) {
1796
1796
  var U = O.result;
1797
1797
  return U ? (x.push(P ? U.value : U.primaryKey), ++E === T ? y({ result: x }) : void U.continue()) : y({ result: x });
1798
1798
  }, O.onerror = me(S));
@@ -1802,7 +1802,7 @@ var Mr = { exports: {} };
1802
1802
  return new Promise(function(P, T) {
1803
1803
  P = Z(P);
1804
1804
  var M = E.index, I = E.range, C = y.objectStore(m), C = M.isPrimaryKey ? C : C.index(M.name), M = O ? x ? "prevunique" : "prev" : x ? "nextunique" : "next", R = !S && "openKeyCursor" in C ? C.openKeyCursor(i(I), M) : C.openCursor(i(I), M);
1805
- R.onerror = me(T), R.onsuccess = Z(function(B) {
1805
+ R.onerror = me(T), R.onsuccess = Z(function(L) {
1806
1806
  var U, W, z, he, F = R.result;
1807
1807
  F ? (F.___id = ++ui, F.done = !1, U = F.continue.bind(F), W = (W = F.continuePrimaryKey) && W.bind(F), z = F.advance.bind(F), he = function() {
1808
1808
  throw new Error("Cursor not stopped");
@@ -1847,19 +1847,19 @@ var Mr = { exports: {} };
1847
1847
  });
1848
1848
  } };
1849
1849
  }
1850
- var o, s, u, b = (s = h, u = mr((o = e).objectStoreNames), { schema: { name: o.name, tables: u.map(function(w) {
1851
- return s.objectStore(w);
1850
+ var o, c, u, b = (c = h, u = mr((o = e).objectStoreNames), { schema: { name: o.name, tables: u.map(function(w) {
1851
+ return c.objectStore(w);
1852
1852
  }).map(function(w) {
1853
- var p = w.keyPath, y = w.autoIncrement, m = L(p), v = {}, y = { name: w.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: _n(p) }, indexes: mr(w.indexNames).map(function(S) {
1853
+ var p = w.keyPath, y = w.autoIncrement, m = B(p), v = {}, y = { name: w.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: _n(p) }, indexes: mr(w.indexNames).map(function(S) {
1854
1854
  return w.index(S);
1855
1855
  }).map(function(x) {
1856
- var E = x.name, O = x.unique, P = x.multiEntry, x = x.keyPath, P = { name: E, compound: L(x), keyPath: x, unique: O, multiEntry: P, extractKey: _n(x) };
1856
+ var E = x.name, O = x.unique, P = x.multiEntry, x = x.keyPath, P = { name: E, compound: B(x), keyPath: x, unique: O, multiEntry: P, extractKey: _n(x) };
1857
1857
  return v[mt(x)] = P;
1858
1858
  }), getIndexByKeyPath: function(S) {
1859
1859
  return v[mt(S)];
1860
1860
  } };
1861
1861
  return v[":id"] = y.primaryKey, p != null && (v[mt(p)] = y.primaryKey), y;
1862
- }) }, hasGetAll: 0 < u.length && "getAll" in s.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, g = b.hasGetAll, b = h.tables.map(a), d = {};
1862
+ }) }, hasGetAll: 0 < u.length && "getAll" in c.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, g = b.hasGetAll, b = h.tables.map(a), d = {};
1863
1863
  return b.forEach(function(w) {
1864
1864
  return d[w.name] = w;
1865
1865
  }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(w) {
@@ -1869,31 +1869,31 @@ var Mr = { exports: {} };
1869
1869
  }
1870
1870
  function di(e, t, n, i) {
1871
1871
  var a = n.IDBKeyRange;
1872
- return n.indexedDB, { dbcore: (i = li(t, a, i), e.dbcore.reduce(function(o, s) {
1873
- return s = s.create, l(l({}, o), s(o));
1872
+ return n.indexedDB, { dbcore: (i = li(t, a, i), e.dbcore.reduce(function(o, c) {
1873
+ return c = c.create, l(l({}, o), c(o));
1874
1874
  }, i)) };
1875
1875
  }
1876
1876
  function Bt(e, i) {
1877
1877
  var n = i.db, i = di(e._middlewares, n, e._deps, i);
1878
1878
  e.core = i.dbcore, e.tables.forEach(function(a) {
1879
1879
  var o = a.name;
1880
- e.core.schema.tables.some(function(s) {
1881
- return s.name === o;
1880
+ e.core.schema.tables.some(function(c) {
1881
+ return c.name === o;
1882
1882
  }) && (a.core = e.core.table(o), e[o] instanceof e.Table && (e[o].core = a.core));
1883
1883
  });
1884
1884
  }
1885
1885
  function Lt(e, t, n, i) {
1886
1886
  n.forEach(function(a) {
1887
1887
  var o = i[a];
1888
- t.forEach(function(s) {
1888
+ t.forEach(function(c) {
1889
1889
  var u = function h(g, b) {
1890
1890
  return Fr(g, b) || (g = q(g)) && h(g, b);
1891
- }(s, a);
1892
- (!u || "value" in u && u.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, a, { get: function() {
1891
+ }(c, a);
1892
+ (!u || "value" in u && u.value === void 0) && (c === e.Transaction.prototype || c instanceof e.Transaction ? ke(c, a, { get: function() {
1893
1893
  return this.table(a);
1894
1894
  }, set: function(h) {
1895
1895
  zn(this, a, { value: h, writable: !0, configurable: !0, enumerable: !0 });
1896
- } }) : s[a] = new e.Table(a, o));
1896
+ } }) : c[a] = new e.Table(a, o));
1897
1897
  });
1898
1898
  });
1899
1899
  }
@@ -1910,7 +1910,7 @@ var Mr = { exports: {} };
1910
1910
  n.objectStoreNames.contains("$meta") && !a.$meta && (a.$meta = wn("$meta", vr("")[0], []), e._storeNames.push("$meta"));
1911
1911
  var o = e._createTransaction("readwrite", e._storeNames, a);
1912
1912
  o.create(n), o._completion.catch(i);
1913
- var s = o._reject.bind(o), u = G.transless || G;
1913
+ var c = o._reject.bind(o), u = G.transless || G;
1914
1914
  De(function() {
1915
1915
  return G.trans = o, G.transless = u, t !== 0 ? (Bt(e, n), g = t, ((h = o).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1916
1916
  return b ?? g;
@@ -1927,12 +1927,12 @@ var Mr = { exports: {} };
1927
1927
  }), x.change.forEach(function(M) {
1928
1928
  if (M.recreate) throw new $.Upgrade("Not yet support for changing primary key");
1929
1929
  var R = m.objectStore(M.name);
1930
- M.add.forEach(function(B) {
1931
- return Gt(R, B);
1932
- }), M.change.forEach(function(B) {
1933
- R.deleteIndex(B.name), Gt(R, B);
1934
- }), M.del.forEach(function(B) {
1935
- return R.deleteIndex(B);
1930
+ M.add.forEach(function(L) {
1931
+ return Gt(R, L);
1932
+ }), M.change.forEach(function(L) {
1933
+ R.deleteIndex(L.name), Gt(R, L);
1934
+ }), M.del.forEach(function(L) {
1935
+ return R.deleteIndex(L);
1936
1936
  });
1937
1937
  });
1938
1938
  var P = S._cfg.contentUpgrade;
@@ -1966,11 +1966,11 @@ var Mr = { exports: {} };
1966
1966
  br(y, m);
1967
1967
  })) : K.resolve();
1968
1968
  var d, w, p, m, v, y;
1969
- }).catch(s)) : (N(a).forEach(function(b) {
1969
+ }).catch(c)) : (N(a).forEach(function(b) {
1970
1970
  On(n, b, a[b].primKey, a[b].indexes);
1971
1971
  }), Bt(e, n), void K.follow(function() {
1972
1972
  return e.on.populate.fire(o);
1973
- }).catch(s));
1973
+ }).catch(c));
1974
1974
  var h, g;
1975
1975
  });
1976
1976
  }
@@ -1979,11 +1979,11 @@ var Mr = { exports: {} };
1979
1979
  var n = $t(0, e.idbdb, t);
1980
1980
  Ft(e, e._dbSchema, t);
1981
1981
  for (var i = 0, a = En(n, e._dbSchema).change; i < a.length; i++) {
1982
- var o = function(s) {
1983
- if (s.change.length || s.recreate) return console.warn("Unable to patch indexes of table ".concat(s.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1984
- var u = t.objectStore(s.name);
1985
- s.add.forEach(function(h) {
1986
- ye && console.debug("Dexie upgrade patch: Creating missing index ".concat(s.name, ".").concat(h.src)), Gt(u, h);
1982
+ var o = function(c) {
1983
+ if (c.change.length || c.recreate) return console.warn("Unable to patch indexes of table ".concat(c.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1984
+ var u = t.objectStore(c.name);
1985
+ c.add.forEach(function(h) {
1986
+ ye && console.debug("Dexie upgrade patch: Creating missing index ".concat(c.name, ".").concat(h.src)), Gt(u, h);
1987
1987
  });
1988
1988
  }(a[i]);
1989
1989
  if (typeof o == "object") return o.value;
@@ -1995,16 +1995,16 @@ var Mr = { exports: {} };
1995
1995
  for (n in t) {
1996
1996
  var a = e[n], o = t[n];
1997
1997
  if (a) {
1998
- var s = { name: n, def: o, recreate: !1, del: [], add: [], change: [] };
1999
- if ("" + (a.primKey.keyPath || "") != "" + (o.primKey.keyPath || "") || a.primKey.auto !== o.primKey.auto) s.recreate = !0, i.change.push(s);
1998
+ var c = { name: n, def: o, recreate: !1, del: [], add: [], change: [] };
1999
+ if ("" + (a.primKey.keyPath || "") != "" + (o.primKey.keyPath || "") || a.primKey.auto !== o.primKey.auto) c.recreate = !0, i.change.push(c);
2000
2000
  else {
2001
2001
  var u = a.idxByName, h = o.idxByName, g = void 0;
2002
- for (g in u) h[g] || s.del.push(g);
2002
+ for (g in u) h[g] || c.del.push(g);
2003
2003
  for (g in h) {
2004
2004
  var b = u[g], d = h[g];
2005
- b ? b.src !== d.src && s.change.push(d) : s.add.push(d);
2005
+ b ? b.src !== d.src && c.change.push(d) : c.add.push(d);
2006
2006
  }
2007
- (0 < s.del.length || 0 < s.add.length || 0 < s.change.length) && i.change.push(s);
2007
+ (0 < c.del.length || 0 < c.add.length || 0 < c.change.length) && i.change.push(c);
2008
2008
  }
2009
2009
  } else i.add.push([n, o]);
2010
2010
  }
@@ -2027,19 +2027,19 @@ var Mr = { exports: {} };
2027
2027
  function $t(e, t, n) {
2028
2028
  var i = {};
2029
2029
  return St(t.objectStoreNames, 0).forEach(function(a) {
2030
- for (var o = n.objectStore(a), s = vn(yr(g = o.keyPath), g || "", !0, !1, !!o.autoIncrement, g && typeof g != "string", !0), u = [], h = 0; h < o.indexNames.length; ++h) {
2030
+ for (var o = n.objectStore(a), c = vn(yr(g = o.keyPath), g || "", !0, !1, !!o.autoIncrement, g && typeof g != "string", !0), u = [], h = 0; h < o.indexNames.length; ++h) {
2031
2031
  var b = o.index(o.indexNames[h]), g = b.keyPath, b = vn(b.name, g, !!b.unique, !!b.multiEntry, !1, g && typeof g != "string", !1);
2032
2032
  u.push(b);
2033
2033
  }
2034
- i[a] = wn(a, s, u);
2034
+ i[a] = wn(a, c, u);
2035
2035
  }), i;
2036
2036
  }
2037
2037
  function Ft(e, t, n) {
2038
2038
  for (var i = n.db.objectStoreNames, a = 0; a < i.length; ++a) {
2039
- var o = i[a], s = n.objectStore(o);
2040
- e._hasGetAll = "getAll" in s;
2041
- for (var u = 0; u < s.indexNames.length; ++u) {
2042
- var h = s.indexNames[u], g = s.index(h).keyPath, b = typeof g == "string" ? g : "[" + St(g).join("+") + "]";
2039
+ var o = i[a], c = n.objectStore(o);
2040
+ e._hasGetAll = "getAll" in c;
2041
+ for (var u = 0; u < c.indexNames.length; ++u) {
2042
+ var h = c.indexNames[u], g = c.index(h).keyPath, b = typeof g == "string" ? g : "[" + St(g).join("+") + "]";
2043
2043
  !t[o] || (g = t[o].idxByName[b]) && (g.name = h, delete t[o].idxByName[b], t[o].idxByName[h] = g);
2044
2044
  }
2045
2045
  }
@@ -2048,7 +2048,7 @@ var Mr = { exports: {} };
2048
2048
  function vr(e) {
2049
2049
  return e.split(",").map(function(t, n) {
2050
2050
  var i = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), a = /^\[/.test(i) ? i.match(/^\[(.*)\]$/)[1].split("+") : i;
2051
- return vn(i, a || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), L(a), n === 0);
2051
+ return vn(i, a || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), B(a), n === 0);
2052
2052
  });
2053
2053
  }
2054
2054
  var gi = (Ut.prototype._parseStoresSpec = function(e, t) {
@@ -2064,13 +2064,13 @@ var Mr = { exports: {} };
2064
2064
  });
2065
2065
  }, Ut.prototype.stores = function(n) {
2066
2066
  var t = this.db;
2067
- this._cfg.storesSource = this._cfg.storesSource ? J(this._cfg.storesSource, n) : n;
2067
+ this._cfg.storesSource = this._cfg.storesSource ? Q(this._cfg.storesSource, n) : n;
2068
2068
  var n = t._versions, i = {}, a = {};
2069
2069
  return n.forEach(function(o) {
2070
- J(i, o._cfg.storesSource), a = o._cfg.dbschema = {}, o._parseStoresSpec(i, a);
2070
+ Q(i, o._cfg.storesSource), a = o._cfg.dbschema = {}, o._parseStoresSpec(i, a);
2071
2071
  }), t._dbSchema = a, Sn(t, [t._allTables, t, t.Transaction.prototype]), Lt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], N(a), a), t._storeNames = N(a), this;
2072
2072
  }, Ut.prototype.upgrade = function(e) {
2073
- return this._cfg.contentUpgrade = rn(this._cfg.contentUpgrade || Q, e), this;
2073
+ return this._cfg.contentUpgrade = rn(this._cfg.contentUpgrade || X, e), this;
2074
2074
  }, Ut);
2075
2075
  function Ut() {
2076
2076
  }
@@ -2092,15 +2092,15 @@ var Mr = { exports: {} };
2092
2092
  var oe = function(e, t) {
2093
2093
  if (!this) {
2094
2094
  var n = new oe();
2095
- return e && "d" in e && J(n, e), n;
2095
+ return e && "d" in e && Q(n, e), n;
2096
2096
  }
2097
- J(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2097
+ Q(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
2098
2098
  };
2099
2099
  function bt(e, t, n) {
2100
2100
  var i = H(t, n);
2101
2101
  if (!isNaN(i)) {
2102
2102
  if (0 < i) throw RangeError();
2103
- if (Dn(e)) return J(e, { from: t, to: n, d: 1 });
2103
+ if (Dn(e)) return Q(e, { from: t, to: n, d: 1 });
2104
2104
  var a = e.l, i = e.r;
2105
2105
  if (H(n, e.from) < 0) return a ? bt(a, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2106
2106
  if (0 < H(t, e.to)) return i ? bt(i, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
@@ -2109,16 +2109,16 @@ var Mr = { exports: {} };
2109
2109
  }
2110
2110
  function vt(e, t) {
2111
2111
  Dn(t) || function n(i, h) {
2112
- var o = h.from, s = h.to, u = h.l, h = h.r;
2113
- bt(i, o, s), u && n(i, u), h && n(i, h);
2112
+ var o = h.from, c = h.to, u = h.l, h = h.r;
2113
+ bt(i, o, c), u && n(i, u), h && n(i, h);
2114
2114
  }(e, t);
2115
2115
  }
2116
2116
  function wr(e, t) {
2117
2117
  var n = Wt(t), i = n.next();
2118
2118
  if (i.done) return !1;
2119
- for (var a = i.value, o = Wt(e), s = o.next(a.from), u = s.value; !i.done && !s.done; ) {
2119
+ for (var a = i.value, o = Wt(e), c = o.next(a.from), u = c.value; !i.done && !c.done; ) {
2120
2120
  if (H(u.from, a.to) <= 0 && 0 <= H(u.to, a.from)) return !0;
2121
- H(a.from, u.from) < 0 ? a = (i = n.next(u.from)).value : u = (s = o.next(a.from)).value;
2121
+ H(a.from, u.from) < 0 ? a = (i = n.next(u.from)).value : u = (c = o.next(a.from)).value;
2122
2122
  }
2123
2123
  return !1;
2124
2124
  }
@@ -2153,8 +2153,8 @@ var Mr = { exports: {} };
2153
2153
  function zt(e, t) {
2154
2154
  return N(t).forEach(function(n) {
2155
2155
  e[n] ? vt(e[n], t[n]) : e[n] = function i(a) {
2156
- var o, s, u = {};
2157
- for (o in a) ne(a, o) && (s = a[o], u[o] = !s || typeof s != "object" || Jn.has(s.constructor) ? s : i(s));
2156
+ var o, c, u = {};
2157
+ for (o in a) ne(a, o) && (c = a[o], u[o] = !c || typeof c != "object" || Jn.has(c.constructor) ? c : i(c));
2158
2158
  return u;
2159
2159
  }(t[n]);
2160
2160
  }), e;
@@ -2188,18 +2188,18 @@ var Mr = { exports: {} };
2188
2188
  function Rn(e, t) {
2189
2189
  t === void 0 && (t = !1);
2190
2190
  var n = /* @__PURE__ */ new Set();
2191
- if (e.all) for (var i = 0, a = Object.values(Ue); i < a.length; i++) Er(s = a[i], e, n, t);
2191
+ if (e.all) for (var i = 0, a = Object.values(Ue); i < a.length; i++) Er(c = a[i], e, n, t);
2192
2192
  else for (var o in e) {
2193
- var s, u = /^idb\:\/\/(.*)\/(.*)\//.exec(o);
2194
- u && (o = u[1], u = u[2], (s = Ue["idb://".concat(o, "/").concat(u)]) && Er(s, e, n, t));
2193
+ var c, u = /^idb\:\/\/(.*)\/(.*)\//.exec(o);
2194
+ u && (o = u[1], u = u[2], (c = Ue["idb://".concat(o, "/").concat(u)]) && Er(c, e, n, t));
2195
2195
  }
2196
2196
  n.forEach(function(h) {
2197
2197
  return h();
2198
2198
  });
2199
2199
  }
2200
2200
  function Er(e, t, n, i) {
2201
- for (var a = [], o = 0, s = Object.entries(e.queries.query); o < s.length; o++) {
2202
- for (var u = s[o], h = u[0], g = [], b = 0, d = u[1]; b < d.length; b++) {
2201
+ for (var a = [], o = 0, c = Object.entries(e.queries.query); o < c.length; o++) {
2202
+ for (var u = c[o], h = u[0], g = [], b = 0, d = u[1]; b < d.length; b++) {
2203
2203
  var w = d[b];
2204
2204
  Pn(t, w.obsSet) ? w.subscribers.forEach(function(y) {
2205
2205
  return n.add(y);
@@ -2219,12 +2219,12 @@ var Mr = { exports: {} };
2219
2219
  });
2220
2220
  t.isBeingOpened = !0, t.dbOpenError = null, t.openComplete = !1;
2221
2221
  var i = t.openCanceller, a = Math.round(10 * e.verno), o = !1;
2222
- function s() {
2222
+ function c() {
2223
2223
  if (t.openCanceller !== i) throw new $.DatabaseClosed("db.open() was cancelled");
2224
2224
  }
2225
2225
  function u() {
2226
2226
  return new K(function(w, p) {
2227
- if (s(), !n) throw new $.MissingAPI();
2227
+ if (c(), !n) throw new $.MissingAPI();
2228
2228
  var m = e.name, v = t.autoSchema || !a ? n.open(m) : n.open(m, a);
2229
2229
  if (!v) throw new $.MissingAPI();
2230
2230
  v.onerror = me(p), v.onblocked = Z(e._fireOnBlocked), v.onupgradeneeded = Z(function(y) {
@@ -2248,7 +2248,7 @@ var Mr = { exports: {} };
2248
2248
  t.vcFired = !0, e.on("versionchange").fire(C);
2249
2249
  }), P.onclose = Z(function(C) {
2250
2250
  e.on("close").fire(C);
2251
- }), d && (x = e._deps, I = m, P = x.indexedDB, x = x.IDBKeyRange, kn(P) || I === Tt || xn(P, x).put({ name: I }).catch(Q)), w();
2251
+ }), d && (x = e._deps, I = m, P = x.indexedDB, x = x.IDBKeyRange, kn(P) || I === Tt || xn(P, x).put({ name: I }).catch(X)), w();
2252
2252
  }, p);
2253
2253
  }).catch(function(w) {
2254
2254
  switch (w == null ? void 0 : w.name) {
@@ -2270,11 +2270,11 @@ var Mr = { exports: {} };
2270
2270
  }).finally(function() {
2271
2271
  return clearInterval(h);
2272
2272
  }) : Promise.resolve()).then(u)]).then(function() {
2273
- return s(), t.onReadyBeingFired = [], K.resolve(An(function() {
2273
+ return c(), t.onReadyBeingFired = [], K.resolve(An(function() {
2274
2274
  return e.on.ready.fire(e.vip);
2275
2275
  })).then(function w() {
2276
2276
  if (0 < t.onReadyBeingFired.length) {
2277
- var p = t.onReadyBeingFired.reduce(rn, Q);
2277
+ var p = t.onReadyBeingFired.reduce(rn, X);
2278
2278
  return t.onReadyBeingFired = [], K.resolve(An(function() {
2279
2279
  return p(e.vip);
2280
2280
  })).then(w);
@@ -2310,28 +2310,28 @@ var Mr = { exports: {} };
2310
2310
  function a(o) {
2311
2311
  return function(h) {
2312
2312
  var u = o(h), h = u.value;
2313
- return u.done ? h : h && typeof h.then == "function" ? h.then(n, i) : L(h) ? Promise.all(h).then(n, i) : n(h);
2313
+ return u.done ? h : h && typeof h.then == "function" ? h.then(n, i) : B(h) ? Promise.all(h).then(n, i) : n(h);
2314
2314
  };
2315
2315
  }
2316
2316
  return a(t)();
2317
2317
  }
2318
2318
  function Yt(e, t, n) {
2319
- for (var i = L(e) ? e.slice() : [e], a = 0; a < n; ++a) i.push(t);
2319
+ for (var i = B(e) ? e.slice() : [e], a = 0; a < n; ++a) i.push(t);
2320
2320
  return i;
2321
2321
  }
2322
2322
  var mi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2323
2323
  return l(l({}, e), { table: function(t) {
2324
2324
  var n = e.table(t), i = n.schema, a = {}, o = [];
2325
- function s(d, w, p) {
2325
+ function c(d, w, p) {
2326
2326
  var m = mt(d), v = a[m] = a[m] || [], y = d == null ? 0 : typeof d == "string" ? 1 : d.length, S = 0 < w, S = l(l({}, p), { name: S ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: S, keyTail: w, keyLength: y, extractKey: _n(d), unique: !S && p.unique });
2327
- return v.push(S), S.isPrimaryKey || o.push(S), 1 < y && s(y === 2 ? d[0] : d.slice(0, y - 1), w + 1, p), v.sort(function(E, O) {
2327
+ return v.push(S), S.isPrimaryKey || o.push(S), 1 < y && c(y === 2 ? d[0] : d.slice(0, y - 1), w + 1, p), v.sort(function(E, O) {
2328
2328
  return E.keyTail - O.keyTail;
2329
2329
  }), S;
2330
2330
  }
2331
- t = s(i.primaryKey.keyPath, 0, i.primaryKey), a[":id"] = [t];
2331
+ t = c(i.primaryKey.keyPath, 0, i.primaryKey), a[":id"] = [t];
2332
2332
  for (var u = 0, h = i.indexes; u < h.length; u++) {
2333
2333
  var g = h[u];
2334
- s(g.keyPath, 0, g);
2334
+ c(g.keyPath, 0, g);
2335
2335
  }
2336
2336
  function b(d) {
2337
2337
  var w, p = d.query.index;
@@ -2367,8 +2367,8 @@ var Mr = { exports: {} };
2367
2367
  } };
2368
2368
  function Mn(e, t, n, i) {
2369
2369
  return n = n || {}, i = i || "", N(e).forEach(function(a) {
2370
- var o, s, u;
2371
- ne(t, a) ? (o = e[a], s = t[a], typeof o == "object" && typeof s == "object" && o && s ? (u = qt(o)) !== qt(s) ? n[i + a] = t[a] : u === "Object" ? Mn(o, s, n, i + a + ".") : o !== s && (n[i + a] = t[a]) : o !== s && (n[i + a] = t[a])) : n[i + a] = void 0;
2370
+ var o, c, u;
2371
+ ne(t, a) ? (o = e[a], c = t[a], typeof o == "object" && typeof c == "object" && o && c ? (u = qt(o)) !== qt(c) ? n[i + a] = t[a] : u === "Object" ? Mn(o, c, n, i + a + ".") : o !== c && (n[i + a] = t[a]) : o !== c && (n[i + a] = t[a])) : n[i + a] = void 0;
2372
2372
  }), N(t).forEach(function(a) {
2373
2373
  ne(e, a) || (n[i + a] = t[a]);
2374
2374
  }), n;
@@ -2380,25 +2380,25 @@ var Mr = { exports: {} };
2380
2380
  return l(l({}, e), { table: function(t) {
2381
2381
  var n = e.table(t), i = n.schema.primaryKey;
2382
2382
  return l(l({}, n), { mutate: function(a) {
2383
- var o = G.trans, s = o.table(t).hook, u = s.deleting, h = s.creating, g = s.updating;
2383
+ var o = G.trans, c = o.table(t).hook, u = c.deleting, h = c.creating, g = c.updating;
2384
2384
  switch (a.type) {
2385
2385
  case "add":
2386
- if (h.fire === Q) break;
2386
+ if (h.fire === X) break;
2387
2387
  return o._promise("readwrite", function() {
2388
2388
  return b(a);
2389
2389
  }, !0);
2390
2390
  case "put":
2391
- if (h.fire === Q && g.fire === Q) break;
2391
+ if (h.fire === X && g.fire === X) break;
2392
2392
  return o._promise("readwrite", function() {
2393
2393
  return b(a);
2394
2394
  }, !0);
2395
2395
  case "delete":
2396
- if (u.fire === Q) break;
2396
+ if (u.fire === X) break;
2397
2397
  return o._promise("readwrite", function() {
2398
2398
  return b(a);
2399
2399
  }, !0);
2400
2400
  case "deleteRange":
2401
- if (u.fire === Q) break;
2401
+ if (u.fire === X) break;
2402
2402
  return o._promise("readwrite", function() {
2403
2403
  return function d(w, p, m) {
2404
2404
  return n.query({ trans: w, values: !1, query: { index: i, range: p }, limit: m }).then(function(v) {
@@ -2480,24 +2480,24 @@ var Mr = { exports: {} };
2480
2480
  if (G.subscr && a !== "readonly") throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(G.querier));
2481
2481
  return e.transaction(i, a, o);
2482
2482
  }, table: function(i) {
2483
- var a = e.table(i), o = a.schema, s = o.primaryKey, d = o.indexes, u = s.extractKey, h = s.outbound, g = s.autoIncrement && d.filter(function(p) {
2484
- return p.compound && p.keyPath.includes(s.keyPath);
2483
+ var a = e.table(i), o = a.schema, c = o.primaryKey, d = o.indexes, u = c.extractKey, h = c.outbound, g = c.autoIncrement && d.filter(function(p) {
2484
+ return p.compound && p.keyPath.includes(c.keyPath);
2485
2485
  }), b = l(l({}, a), { mutate: function(p) {
2486
2486
  function m(R) {
2487
2487
  return R = "idb://".concat(t, "/").concat(i, "/").concat(R), O[R] || (O[R] = new oe());
2488
2488
  }
2489
- var v, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), P = m(":dels"), T = p.type, M = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [jn(s, p).filter(function(R) {
2489
+ var v, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), P = m(":dels"), T = p.type, M = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [jn(c, p).filter(function(R) {
2490
2490
  return R;
2491
2491
  }), p.values] : [], I = M[0], C = M[1], M = p.trans._cache;
2492
- return L(I) ? (x.addKeys(I), (M = T === "delete" || I.length === C.length ? Or(I, M) : null) || P.addKeys(I), (M || C) && (v = m, y = M, S = C, o.indexes.forEach(function(R) {
2493
- var B = v(R.name || "");
2492
+ return B(I) ? (x.addKeys(I), (M = T === "delete" || I.length === C.length ? Or(I, M) : null) || P.addKeys(I), (M || C) && (v = m, y = M, S = C, o.indexes.forEach(function(R) {
2493
+ var L = v(R.name || "");
2494
2494
  function U(z) {
2495
2495
  return z != null ? R.extractKey(z) : null;
2496
2496
  }
2497
2497
  function W(z) {
2498
- return R.multiEntry && L(z) ? z.forEach(function(he) {
2499
- return B.addKey(he);
2500
- }) : B.addKey(z);
2498
+ return R.multiEntry && B(z) ? z.forEach(function(he) {
2499
+ return L.addKey(he);
2500
+ }) : L.addKey(z);
2501
2501
  }
2502
2502
  (y || S).forEach(function(z, se) {
2503
2503
  var F = y && U(y[se]), se = S && U(S[se]);
@@ -2506,22 +2506,22 @@ var Mr = { exports: {} };
2506
2506
  }))) : 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), x.add(C)) : (x.add(n), P.add(n), o.indexes.forEach(function(R) {
2507
2507
  return m(R.name).add(n);
2508
2508
  })), a.mutate(p).then(function(R) {
2509
- return !I || p.type !== "add" && p.type !== "put" || (x.addKeys(R.results), g && g.forEach(function(B) {
2509
+ return !I || p.type !== "add" && p.type !== "put" || (x.addKeys(R.results), g && g.forEach(function(L) {
2510
2510
  for (var U = p.values.map(function(F) {
2511
- return B.extractKey(F);
2512
- }), W = B.keyPath.findIndex(function(F) {
2513
- return F === s.keyPath;
2511
+ return L.extractKey(F);
2512
+ }), W = L.keyPath.findIndex(function(F) {
2513
+ return F === c.keyPath;
2514
2514
  }), z = 0, he = R.results.length; z < he; ++z) U[z][W] = R.results[z];
2515
- m(B.name).addKeys(U);
2515
+ m(L.name).addKeys(U);
2516
2516
  })), E.mutatedParts = zt(E.mutatedParts || {}, O), R;
2517
2517
  });
2518
2518
  } }), d = function(m) {
2519
2519
  var v = m.query, m = v.index, v = v.range;
2520
2520
  return [m, new oe((m = v.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (v = v.upper) !== null && v !== void 0 ? v : e.MAX_KEY)];
2521
2521
  }, w = { get: function(p) {
2522
- return [s, new oe(p.key)];
2522
+ return [c, new oe(p.key)];
2523
2523
  }, getMany: function(p) {
2524
- return [s, new oe().addKeys(p.keys)];
2524
+ return [c, new oe().addKeys(p.keys)];
2525
2525
  }, count: d, query: d, openCursor: d };
2526
2526
  return N(w).forEach(function(p) {
2527
2527
  b[p] = function(m) {
@@ -2541,14 +2541,14 @@ var Mr = { exports: {} };
2541
2541
  var M = m.values ? C.result.map(u) : C.result;
2542
2542
  (m.values ? O : x).addKeys(M);
2543
2543
  } else if (p === "openCursor") {
2544
- var R = C, B = m.values;
2544
+ var R = C, L = m.values;
2545
2545
  return R && Object.create(R, { key: { get: function() {
2546
2546
  return x.addKey(R.primaryKey), R.key;
2547
2547
  } }, primaryKey: { get: function() {
2548
2548
  var U = R.primaryKey;
2549
2549
  return x.addKey(U), U;
2550
2550
  } }, value: { get: function() {
2551
- return B && O.addKey(R.primaryKey), R.value;
2551
+ return L && O.addKey(R.primaryKey), R.value;
2552
2552
  } } });
2553
2553
  }
2554
2554
  return C;
@@ -2566,9 +2566,9 @@ var Mr = { exports: {} };
2566
2566
  if (n.numFailures === 0) return t;
2567
2567
  if (t.type === "deleteRange") return null;
2568
2568
  var i = t.keys ? t.keys.length : "values" in t && t.values ? t.values.length : 1;
2569
- return n.numFailures === i ? null : (t = l({}, t), L(t.keys) && (t.keys = t.keys.filter(function(a, o) {
2569
+ return n.numFailures === i ? null : (t = l({}, t), B(t.keys) && (t.keys = t.keys.filter(function(a, o) {
2570
2570
  return !(o in n.failures);
2571
- })), "values" in t && L(t.values) && (t.values = t.values.filter(function(a, o) {
2571
+ })), "values" in t && B(t.values) && (t.values = t.values.filter(function(a, o) {
2572
2572
  return !(o in n.failures);
2573
2573
  })), t);
2574
2574
  }
@@ -2578,46 +2578,46 @@ var Mr = { exports: {} };
2578
2578
  }
2579
2579
  function Dr(e, t, w, i, a, o) {
2580
2580
  if (!w || w.length === 0) return e;
2581
- var s = t.query.index, u = s.multiEntry, h = t.query.range, g = i.schema.primaryKey.extractKey, b = s.extractKey, d = (s.lowLevelIndex || s).extractKey, w = w.reduce(function(p, m) {
2581
+ var c = t.query.index, u = c.multiEntry, h = t.query.range, g = i.schema.primaryKey.extractKey, b = c.extractKey, d = (c.lowLevelIndex || c).extractKey, w = w.reduce(function(p, m) {
2582
2582
  var v = p, y = [];
2583
2583
  if (m.type === "add" || m.type === "put") for (var S = new oe(), E = m.values.length - 1; 0 <= E; --E) {
2584
2584
  var O, x = m.values[E], P = g(x);
2585
- S.hasKey(P) || (O = b(x), (u && L(O) ? O.some(function(R) {
2585
+ S.hasKey(P) || (O = b(x), (u && B(O) ? O.some(function(R) {
2586
2586
  return Kn(R, h);
2587
2587
  }) : Kn(O, h)) && (S.addKey(P), y.push(x)));
2588
2588
  }
2589
2589
  switch (m.type) {
2590
2590
  case "add":
2591
- var T = new oe().addKeys(t.values ? p.map(function(B) {
2592
- return g(B);
2593
- }) : p), v = p.concat(t.values ? y.filter(function(B) {
2594
- return B = g(B), !T.hasKey(B) && (T.addKey(B), !0);
2595
- }) : y.map(function(B) {
2596
- return g(B);
2597
- }).filter(function(B) {
2598
- return !T.hasKey(B) && (T.addKey(B), !0);
2591
+ var T = new oe().addKeys(t.values ? p.map(function(L) {
2592
+ return g(L);
2593
+ }) : p), v = p.concat(t.values ? y.filter(function(L) {
2594
+ return L = g(L), !T.hasKey(L) && (T.addKey(L), !0);
2595
+ }) : y.map(function(L) {
2596
+ return g(L);
2597
+ }).filter(function(L) {
2598
+ return !T.hasKey(L) && (T.addKey(L), !0);
2599
2599
  }));
2600
2600
  break;
2601
2601
  case "put":
2602
- var I = new oe().addKeys(m.values.map(function(B) {
2603
- return g(B);
2602
+ var I = new oe().addKeys(m.values.map(function(L) {
2603
+ return g(L);
2604
2604
  }));
2605
- v = p.filter(function(B) {
2606
- return !I.hasKey(t.values ? g(B) : B);
2607
- }).concat(t.values ? y : y.map(function(B) {
2608
- return g(B);
2605
+ v = p.filter(function(L) {
2606
+ return !I.hasKey(t.values ? g(L) : L);
2607
+ }).concat(t.values ? y : y.map(function(L) {
2608
+ return g(L);
2609
2609
  }));
2610
2610
  break;
2611
2611
  case "delete":
2612
2612
  var C = new oe().addKeys(m.keys);
2613
- v = p.filter(function(B) {
2614
- return !C.hasKey(t.values ? g(B) : B);
2613
+ v = p.filter(function(L) {
2614
+ return !C.hasKey(t.values ? g(L) : L);
2615
2615
  });
2616
2616
  break;
2617
2617
  case "deleteRange":
2618
2618
  var M = m.range;
2619
- v = p.filter(function(B) {
2620
- return !Kn(g(B), M);
2619
+ v = p.filter(function(L) {
2620
+ return !Kn(g(L), M);
2621
2621
  });
2622
2622
  }
2623
2623
  return v;
@@ -2661,50 +2661,50 @@ var Mr = { exports: {} };
2661
2661
  var Ei = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2662
2662
  var t = e.schema.name;
2663
2663
  return l(l({}, e), { transaction: function(n, i, a) {
2664
- var o, s, u = e.transaction(n, i, a);
2665
- return i === "readwrite" && (s = (o = new AbortController()).signal, a = function(h) {
2664
+ var o, c, u = e.transaction(n, i, a);
2665
+ return i === "readwrite" && (c = (o = new AbortController()).signal, a = function(h) {
2666
2666
  return function() {
2667
2667
  if (o.abort(), i === "readwrite") {
2668
2668
  for (var g = /* @__PURE__ */ new Set(), b = 0, d = n; b < d.length; b++) {
2669
2669
  var w = d[b], p = Ue["idb://".concat(t, "/").concat(w)];
2670
2670
  if (p) {
2671
- var m = e.table(w), v = p.optimisticOps.filter(function(B) {
2672
- return B.trans === u;
2671
+ var m = e.table(w), v = p.optimisticOps.filter(function(L) {
2672
+ return L.trans === u;
2673
2673
  });
2674
- if (u._explicit && h && u.mutatedParts) for (var y = 0, S = Object.values(p.queries.query); y < S.length; y++) for (var E = 0, O = (T = S[y]).slice(); E < O.length; E++) Pn((I = O[E]).obsSet, u.mutatedParts) && (je(T, I), I.subscribers.forEach(function(B) {
2675
- return g.add(B);
2674
+ if (u._explicit && h && u.mutatedParts) for (var y = 0, S = Object.values(p.queries.query); y < S.length; y++) for (var E = 0, O = (T = S[y]).slice(); E < O.length; E++) Pn((I = O[E]).obsSet, u.mutatedParts) && (je(T, I), I.subscribers.forEach(function(L) {
2675
+ return g.add(L);
2676
2676
  }));
2677
2677
  else if (0 < v.length) {
2678
- p.optimisticOps = p.optimisticOps.filter(function(B) {
2679
- return B.trans !== u;
2678
+ p.optimisticOps = p.optimisticOps.filter(function(L) {
2679
+ return L.trans !== u;
2680
2680
  });
2681
- for (var x = 0, P = Object.values(p.queries.query); x < P.length; x++) for (var T, I, C, M = 0, R = (T = P[x]).slice(); M < R.length; M++) (I = R[M]).res != null && u.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = Dr(I.res, I.req, v, m, I, C), I.dirty ? (je(T, I), I.subscribers.forEach(function(B) {
2682
- return g.add(B);
2683
- })) : C !== I.res && (I.res = C, I.promise = K.resolve({ result: C }))) : (I.dirty && je(T, I), I.subscribers.forEach(function(B) {
2684
- return g.add(B);
2681
+ for (var x = 0, P = Object.values(p.queries.query); x < P.length; x++) for (var T, I, C, M = 0, R = (T = P[x]).slice(); M < R.length; M++) (I = R[M]).res != null && u.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = Dr(I.res, I.req, v, m, I, C), I.dirty ? (je(T, I), I.subscribers.forEach(function(L) {
2682
+ return g.add(L);
2683
+ })) : C !== I.res && (I.res = C, I.promise = K.resolve({ result: C }))) : (I.dirty && je(T, I), I.subscribers.forEach(function(L) {
2684
+ return g.add(L);
2685
2685
  })));
2686
2686
  }
2687
2687
  }
2688
2688
  }
2689
- g.forEach(function(B) {
2690
- return B();
2689
+ g.forEach(function(L) {
2690
+ return L();
2691
2691
  });
2692
2692
  }
2693
2693
  };
2694
- }, u.addEventListener("abort", a(!1), { signal: s }), u.addEventListener("error", a(!1), { signal: s }), u.addEventListener("complete", a(!0), { signal: s })), u;
2694
+ }, u.addEventListener("abort", a(!1), { signal: c }), u.addEventListener("error", a(!1), { signal: c }), u.addEventListener("complete", a(!0), { signal: c })), u;
2695
2695
  }, table: function(n) {
2696
2696
  var i = e.table(n), a = i.schema.primaryKey;
2697
2697
  return l(l({}, i), { mutate: function(o) {
2698
- var s = G.trans;
2699
- if (a.outbound || s.db._options.cache === "disabled" || s.explicit || s.idbtrans.mode !== "readwrite") return i.mutate(o);
2698
+ var c = G.trans;
2699
+ if (a.outbound || c.db._options.cache === "disabled" || c.explicit || c.idbtrans.mode !== "readwrite") return i.mutate(o);
2700
2700
  var u = Ue["idb://".concat(t, "/").concat(n)];
2701
- return u ? (s = i.mutate(o), o.type !== "add" && o.type !== "put" || !(50 <= o.values.length || jn(a, o).some(function(h) {
2701
+ return u ? (c = i.mutate(o), o.type !== "add" && o.type !== "put" || !(50 <= o.values.length || jn(a, o).some(function(h) {
2702
2702
  return h == null;
2703
- })) ? (u.optimisticOps.push(o), o.mutatedParts && Ht(o.mutatedParts), s.then(function(h) {
2703
+ })) ? (u.optimisticOps.push(o), o.mutatedParts && Ht(o.mutatedParts), c.then(function(h) {
2704
2704
  0 < h.numFailures && (je(u.optimisticOps, o), (h = Ar(0, o, h)) && u.optimisticOps.push(h), o.mutatedParts && Ht(o.mutatedParts));
2705
- }), s.catch(function() {
2705
+ }), c.catch(function() {
2706
2706
  je(u.optimisticOps, o), o.mutatedParts && Ht(o.mutatedParts);
2707
- })) : s.then(function(h) {
2707
+ })) : c.then(function(h) {
2708
2708
  var g = Ar(0, l(l({}, o), { values: o.values.map(function(b, d) {
2709
2709
  var w;
2710
2710
  return h.failures[d] ? b : (b = (w = a.keyPath) !== null && w !== void 0 && w.includes(".") ? Me(b) : l({}, b), de(b, a.keyPath, h.results[d]), b);
@@ -2712,10 +2712,10 @@ var Mr = { exports: {} };
2712
2712
  u.optimisticOps.push(g), queueMicrotask(function() {
2713
2713
  return o.mutatedParts && Ht(o.mutatedParts);
2714
2714
  });
2715
- }), s) : i.mutate(o);
2715
+ }), c) : i.mutate(o);
2716
2716
  }, query: function(o) {
2717
2717
  if (!xr(G, i) || !kr("query", o)) return i.query(o);
2718
- var s = ((g = G.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", d = G, u = d.requery, h = d.signal, g = function(m, v, y, S) {
2718
+ var c = ((g = G.trans) === null || g === void 0 ? void 0 : g.db._options.cache) === "immutable", d = G, u = d.requery, h = d.signal, g = function(m, v, y, S) {
2719
2719
  var E = Ue["idb://".concat(m, "/").concat(v)];
2720
2720
  if (!E) return [];
2721
2721
  if (!(v = E.queries[y])) return [null, !1, E, null];
@@ -2737,7 +2737,7 @@ var Mr = { exports: {} };
2737
2737
  }(t, n, "query", o), b = g[0], d = g[1], w = g[2], p = g[3];
2738
2738
  return b && d ? b.obsSet = o.obsSet : (d = i.query(o).then(function(m) {
2739
2739
  var v = m.result;
2740
- if (b && (b.res = v), s) {
2740
+ if (b && (b.res = v), c) {
2741
2741
  for (var y = 0, S = v.length; y < S; ++y) Object.freeze(v[y]);
2742
2742
  Object.freeze(v);
2743
2743
  } else m.result = Me(v);
@@ -2745,7 +2745,7 @@ var Mr = { exports: {} };
2745
2745
  }).catch(function(m) {
2746
2746
  return p && b && je(p, b), Promise.reject(m);
2747
2747
  }), b = { obsSet: o.obsSet, promise: d, subscribers: /* @__PURE__ */ new Set(), type: "query", req: o, dirty: !1 }, p ? p.push(b) : (p = [b], (w = w || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[o.query.index.name || ""] = p)), Si(b, p, u, h), b.promise.then(function(m) {
2748
- return { result: Dr(m.result, o, w == null ? void 0 : w.optimisticOps, i, b, s) };
2748
+ return { result: Dr(m.result, o, w == null ? void 0 : w.optimisticOps, i, b, c) };
2749
2749
  });
2750
2750
  } });
2751
2751
  } });
@@ -2769,14 +2769,14 @@ var Mr = { exports: {} };
2769
2769
  if (t._state.openComplete) return i(new $.DatabaseClosed(t._state.dbOpenError));
2770
2770
  if (!t._state.isBeingOpened) {
2771
2771
  if (!t._state.autoOpen) return void i(new $.DatabaseClosed());
2772
- t.open().catch(Q);
2772
+ t.open().catch(X);
2773
2773
  }
2774
2774
  t._state.dbReadyPromise.then(n, i);
2775
2775
  }).then(e);
2776
2776
  }, te.prototype.use = function(e) {
2777
2777
  var t = e.stack, n = e.create, i = e.level, a = e.name;
2778
- return a && this.unuse({ stack: t, name: a }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: n, level: i ?? 10, name: a }), e.sort(function(o, s) {
2779
- return o.level - s.level;
2778
+ return a && this.unuse({ stack: t, name: a }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: n, level: i ?? 10, name: a }), e.sort(function(o, c) {
2779
+ return o.level - c.level;
2780
2780
  }), this;
2781
2781
  }, te.prototype.unuse = function(e) {
2782
2782
  var t = e.stack, n = e.name, i = e.create;
@@ -2810,16 +2810,16 @@ var Mr = { exports: {} };
2810
2810
  e === void 0 && (e = { disableAutoOpen: !0 });
2811
2811
  var n = 0 < arguments.length && typeof arguments[0] != "object", i = this._state;
2812
2812
  return new K(function(a, o) {
2813
- function s() {
2813
+ function c() {
2814
2814
  t.close(e);
2815
2815
  var u = t._deps.indexedDB.deleteDatabase(t.name);
2816
2816
  u.onsuccess = Z(function() {
2817
2817
  var h, g, b;
2818
- h = t._deps, g = t.name, b = h.indexedDB, h = h.IDBKeyRange, kn(b) || g === Tt || xn(b, h).delete(g).catch(Q), a();
2818
+ h = t._deps, g = t.name, b = h.indexedDB, h = h.IDBKeyRange, kn(b) || g === Tt || xn(b, h).delete(g).catch(X), a();
2819
2819
  }), u.onerror = me(o), u.onblocked = t._fireOnBlocked;
2820
2820
  }
2821
2821
  if (n) throw new $.InvalidArgument("Invalid closeOptions argument to db.delete()");
2822
- i.isBeingOpened ? i.dbReadyPromise.then(s) : s();
2822
+ i.isBeingOpened ? i.dbReadyPromise.then(c) : c();
2823
2823
  });
2824
2824
  }, te.prototype.backendDB = function() {
2825
2825
  return this.idbdb;
@@ -2848,10 +2848,10 @@ var Mr = { exports: {} };
2848
2848
  }, te.prototype._transaction = function(e, t, n) {
2849
2849
  var i = this, a = G.trans;
2850
2850
  a && a.db === this && e.indexOf("!") === -1 || (a = null);
2851
- var o, s, u = e.indexOf("?") !== -1;
2851
+ var o, c, u = e.indexOf("?") !== -1;
2852
2852
  e = e.replace("!", "").replace("?", "");
2853
2853
  try {
2854
- if (s = t.map(function(g) {
2854
+ if (c = t.map(function(g) {
2855
2855
  if (g = g instanceof i.Table ? g.name : g, typeof g != "string") throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
2856
2856
  return g;
2857
2857
  }), e == "r" || e === hn) o = hn;
@@ -2864,7 +2864,7 @@ var Mr = { exports: {} };
2864
2864
  if (!u) throw new $.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2865
2865
  a = null;
2866
2866
  }
2867
- a && s.forEach(function(g) {
2867
+ a && c.forEach(function(g) {
2868
2868
  if (a && a.storeNames.indexOf(g) === -1) {
2869
2869
  if (!u) throw new $.SubTransaction("Table " + g + " not included in parent transaction.");
2870
2870
  a = null;
@@ -2903,7 +2903,7 @@ var Mr = { exports: {} };
2903
2903
  return y._reject(O), ee(O);
2904
2904
  });
2905
2905
  });
2906
- }).bind(null, this, o, s, a, n);
2906
+ }).bind(null, this, o, c, a, n);
2907
2907
  return a ? a._promise(o, h, "lock") : G.trans ? Ge(G.transless, function() {
2908
2908
  return i._whenReady(h);
2909
2909
  }) : this._whenReady(h);
@@ -2916,12 +2916,12 @@ var Mr = { exports: {} };
2916
2916
  this._middlewares = {}, this.verno = 0;
2917
2917
  var i = te.dependencies;
2918
2918
  this._options = t = l({ addons: te.addons, autoOpen: !0, indexedDB: i.indexedDB, IDBKeyRange: i.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, i = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
2919
- var a, o, s, u, h, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2919
+ var a, o, c, u, h, g = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: X, dbReadyPromise: null, cancelOpen: X, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2920
2920
  g.dbReadyPromise = new K(function(d) {
2921
2921
  g.dbReadyResolve = d;
2922
2922
  }), g.openCanceller = new K(function(d, w) {
2923
2923
  g.cancelOpen = w;
2924
- }), this._state = g, this.name = e, this.on = dt(this, "populate", "blocked", "versionchange", "close", { ready: [rn, Q] }), this.on.ready.subscribe = Hn(this.on.ready.subscribe, function(d) {
2924
+ }), this._state = g, this.name = e, this.on = dt(this, "populate", "blocked", "versionchange", "close", { ready: [rn, X] }), this.on.ready.subscribe = Hn(this.on.ready.subscribe, function(d) {
2925
2925
  return function(w, p) {
2926
2926
  te.vip(function() {
2927
2927
  var m, v = n._state;
@@ -2941,10 +2941,10 @@ var Mr = { exports: {} };
2941
2941
  var v = S._ctx, y = v.table, S = y.hook.reading.fire;
2942
2942
  this._ctx = { table: y, index: v.index, isPrimKey: !v.index || y.schema.primKey.keyPath && v.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: m, or: v.or, valueMapper: S !== ot ? S : null };
2943
2943
  })), this.Table = (o = this, ft(lr.prototype, function(d, w, p) {
2944
- this.db = o, this._tx = p, this.name = d, this.schema = w, this.hook = o._allTables[d] ? o._allTables[d].hook : dt(null, { creating: [Jr, Q], reading: [Xr, ot], updating: [Zr, Q], deleting: [Vr, Q] });
2945
- })), this.Transaction = (s = this, ft(ci.prototype, function(d, w, p, m, v) {
2944
+ this.db = o, this._tx = p, this.name = d, this.schema = w, this.hook = o._allTables[d] ? o._allTables[d].hook : dt(null, { creating: [Jr, X], reading: [Xr, ot], updating: [Zr, X], deleting: [Vr, X] });
2945
+ })), this.Transaction = (c = this, ft(ci.prototype, function(d, w, p, m, v) {
2946
2946
  var y = this;
2947
- this.db = s, this.mode = d, this.storeNames = w, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = v || 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 K(function(S, E) {
2947
+ this.db = c, this.mode = d, this.storeNames = w, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = v || 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 K(function(S, E) {
2948
2948
  y._resolve = S, y._reject = E;
2949
2949
  }), this._completion.then(function() {
2950
2950
  y.active = !1, y.on.complete.fire();
@@ -3006,10 +3006,10 @@ var Mr = { exports: {} };
3006
3006
  }
3007
3007
  function Ir(e) {
3008
3008
  var t, n = !1, i = new Oi(function(a) {
3009
- var o = tn(e), s, u = !1, h = {}, g = {}, b = { get closed() {
3009
+ var o = tn(e), c, u = !1, h = {}, g = {}, b = { get closed() {
3010
3010
  return u;
3011
3011
  }, unsubscribe: function() {
3012
- u || (u = !0, s && s.abort(), d && Re.storagemutated.unsubscribe(p));
3012
+ u || (u = !0, c && c.abort(), d && Re.storagemutated.unsubscribe(p));
3013
3013
  } };
3014
3014
  a.start && a.start(b);
3015
3015
  var d = !1, w = function() {
@@ -3018,7 +3018,7 @@ var Mr = { exports: {} };
3018
3018
  zt(h, v), Pn(g, h) && w();
3019
3019
  }, m = function() {
3020
3020
  var v, y, S;
3021
- !u && Xt.indexedDB && (h = {}, v = {}, s && s.abort(), s = new AbortController(), S = function(E) {
3021
+ !u && Xt.indexedDB && (h = {}, v = {}, c && c.abort(), c = new AbortController(), S = function(E) {
3022
3022
  var O = Je();
3023
3023
  try {
3024
3024
  o && Ze();
@@ -3027,7 +3027,7 @@ var Mr = { exports: {} };
3027
3027
  } finally {
3028
3028
  O && Ve();
3029
3029
  }
3030
- }(y = { subscr: v, signal: s.signal, requery: w, querier: e, trans: null }), Promise.resolve(S).then(function(E) {
3030
+ }(y = { subscr: v, signal: c.signal, requery: w, querier: e, trans: null }), Promise.resolve(S).then(function(E) {
3031
3031
  n = !0, t = E, u || y.signal.aborted || (h = {}, function(O) {
3032
3032
  for (var x in O) if (ne(O, x)) return;
3033
3033
  return 1;
@@ -3080,7 +3080,7 @@ var Mr = { exports: {} };
3080
3080
  var t, n;
3081
3081
  }, defineClass: function() {
3082
3082
  return function(e) {
3083
- J(this, e);
3083
+ Q(this, e);
3084
3084
  };
3085
3085
  }, ignoreTransaction: function(e) {
3086
3086
  return G.trans ? Ge(G.transless, e) : e();
@@ -3108,7 +3108,7 @@ var Mr = { exports: {} };
3108
3108
  return ye;
3109
3109
  }, set: function(e) {
3110
3110
  qn(e);
3111
- } }, derive: He, extend: J, props: xe, override: Hn, Events: dt, on: Re, liveQuery: Ir, extendObservabilitySet: zt, getByKeyPath: ve, setByKeyPath: de, delByKeyPath: function(e, t) {
3111
+ } }, derive: He, extend: Q, props: xe, override: Hn, Events: dt, on: Re, liveQuery: Ir, extendObservabilitySet: zt, getByKeyPath: ve, setByKeyPath: de, delByKeyPath: function(e, t) {
3112
3112
  typeof t == "string" ? de(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3113
3113
  de(e, n, void 0);
3114
3114
  });
@@ -3153,24 +3153,24 @@ var Ii = Mr.exports;
3153
3153
  const Fn = /* @__PURE__ */ Pi(Ii), Tr = Symbol.for("Dexie"), Un = globalThis[Tr] || (globalThis[Tr] = Fn);
3154
3154
  if (Fn.semVer !== Un.semVer)
3155
3155
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Fn.semVer} and ${Un.semVer}`);
3156
- function X(f) {
3156
+ function J(f) {
3157
3157
  let r = `${f.type}.${f.topics}`;
3158
3158
  return f.order && (r += `.${f.order}`), f.period && (r += `.${f.period}`), r;
3159
3159
  }
3160
3160
  function rt(f) {
3161
3161
  var r;
3162
3162
  if (f.widget === void 0) {
3163
- const c = (r = f.topics) == null ? void 0 : r.split("-");
3164
- c && c.length > 1 ? (f.dashboard = c ? c[0] : "", f.widget = c ? c[1] : "") : (f.widget = f.topics, f.dashboard = f.slide);
3163
+ const s = (r = f.topics) == null ? void 0 : r.split("-");
3164
+ s && s.length > 1 ? (f.dashboard = s ? s[0] : "", f.widget = s ? s[1] : "") : (f.widget = f.topics, f.dashboard = f.slide);
3165
3165
  }
3166
3166
  return f.topics === void 0 && (f.topics = `${f.dashboard}-${f.widget}`), f;
3167
3167
  }
3168
3168
  function _t(f, r) {
3169
- var L;
3170
- let c, l, A, k, N;
3169
+ var B;
3170
+ let s, l, A, k, N;
3171
3171
  switch (f.moderation) {
3172
3172
  case Zt.BEFORE:
3173
- c = /* @__PURE__ */ new Date(), l = (L = f.beforeTime) == null ? void 0 : L.split(":"), A = Number.parseInt(l ? l[0] : "00"), k = Number.parseInt(l ? l[1] : "00"), N = Number.parseInt(l ? l[2] : "00"), r.before = c.setHours(A, k, N, 0) / 1e3, r.period || (r.period = c.getDay() === 1 ? 72 : 24);
3173
+ s = /* @__PURE__ */ new Date(), l = (B = f.beforeTime) == null ? void 0 : B.split(":"), A = Number.parseInt(l ? l[0] : "00"), k = Number.parseInt(l ? l[1] : "00"), N = Number.parseInt(l ? l[2] : "00"), r.before = s.setHours(A, k, N, 0) / 1e3, r.period || (r.period = s.getDay() === 1 ? 72 : 24);
3174
3174
  break;
3175
3175
  case Zt.DELAYED:
3176
3176
  f.delay && f.delay > 0 && (r.delay = `${f.delay}`);
@@ -3194,7 +3194,7 @@ class jr {
3194
3194
  * @returns IResponse
3195
3195
  */
3196
3196
  D(this, "getCloud", async (r) => {
3197
- const c = await this.db.table(j.CLOUD).where({ id: r.widget }).last().catch(() => {
3197
+ const s = await this.db.table(j.CLOUD).where({ id: r.widget }).last().catch(() => {
3198
3198
  console.warn(
3199
3199
  "%capi%C %ccloud",
3200
3200
  _.API,
@@ -3204,7 +3204,7 @@ class jr {
3204
3204
  r.widget
3205
3205
  );
3206
3206
  });
3207
- return c === void 0 ? { data: null, message: "Cloud Data error", success: !1 } : (c.data.presentation = (r == null ? void 0 : r.presentation) || "not set", c.data.slide = (r == null ? void 0 : r.slide) || "not set", c.message = "Messages retrieved successfully", c.success = !0, c);
3207
+ return s === void 0 ? { data: null, message: "Cloud Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.message = "Messages retrieved successfully", s.success = !0, s);
3208
3208
  });
3209
3209
  /**
3210
3210
  * Retrieve Cloud Data
@@ -3212,7 +3212,7 @@ class jr {
3212
3212
  * @returns IResponse
3213
3213
  */
3214
3214
  D(this, "getSeries", async (r) => {
3215
- const c = await this.db.table(j.SERIES).where({ id: r.widget }).last().catch(() => {
3215
+ const s = await this.db.table(j.SERIES).where({ id: r.widget }).last().catch(() => {
3216
3216
  console.warn(
3217
3217
  "%capi%c %cseries",
3218
3218
  _.API,
@@ -3222,7 +3222,7 @@ class jr {
3222
3222
  r.widget
3223
3223
  );
3224
3224
  });
3225
- return c === void 0 ? { data: null, message: "Series Data error", success: !1 } : (c.data.presentation = (r == null ? void 0 : r.presentation) || "not set", c.data.slide = (r == null ? void 0 : r.slide) || "not set", c.message = "Messages retrieved successfully", c.success = !0, c);
3225
+ return s === void 0 ? { data: null, message: "Series Data error", success: !1 } : (s.data.presentation = (r == null ? void 0 : r.presentation) || "not set", s.data.slide = (r == null ? void 0 : r.slide) || "not set", s.message = "Messages retrieved successfully", s.success = !0, s);
3226
3226
  });
3227
3227
  /**
3228
3228
  * Retrieve Cloud Data
@@ -3230,9 +3230,9 @@ class jr {
3230
3230
  * @returns IResponse
3231
3231
  */
3232
3232
  D(this, "getMessages", async (r) => {
3233
- const c = (k) => k.widget_id === r.widget, l = (k) => k.utc > ((r == null ? void 0 : r.since) || 0), A = (k) => (k == null ? void 0 : k.visible) !== 0;
3233
+ const s = (k) => k.widget_id === r.widget, l = (k) => k.utc > ((r == null ? void 0 : r.since) || 0), A = (k) => (k == null ? void 0 : k.visible) !== 0;
3234
3234
  try {
3235
- const k = await this.db.table(j.TOPICS).orderBy("utc").reverse().filter(c).filter(l).filter(A).limit((r == null ? void 0 : r.limit) ?? 25).toArray().catch(() => {
3235
+ const k = await this.db.table(j.TOPICS).orderBy("utc").reverse().filter(s).filter(l).filter(A).limit((r == null ? void 0 : r.limit) ?? 25).toArray().catch(() => {
3236
3236
  console.warn(
3237
3237
  "%capi%c %cmessages",
3238
3238
  _.API,
@@ -3244,9 +3244,9 @@ class jr {
3244
3244
  });
3245
3245
  if (k.length === 0)
3246
3246
  return { data: null, message: "No Messages error", success: !1 };
3247
- const N = k[0] ? k[0].title : "No title", L = k.map(
3247
+ const N = k[0] ? k[0].title : "No title", B = k.map(
3248
3248
  (le) => le.message_id
3249
- ), q = (await this.db.table(j.MESSAGES).where("id").anyOf(L).toArray().then((le) => le.sort((ne, xe) => xe.utc - ne.utc))).map(
3249
+ ), q = (await this.db.table(j.MESSAGES).where("id").anyOf(B).toArray().then((le) => le.sort((ne, xe) => xe.utc - ne.utc))).map(
3250
3250
  (le) => le.data
3251
3251
  );
3252
3252
  return {
@@ -3273,10 +3273,10 @@ class jr {
3273
3273
  * @param data
3274
3274
  * @returns number
3275
3275
  */
3276
- D(this, "setCloud", async (r, c) => r.type === j.CLOUD && c !== "" ? await this.db.table(j.CLOUD).put({
3276
+ D(this, "setCloud", async (r, s) => r.type === j.CLOUD && s !== "" ? await this.db.table(j.CLOUD).put({
3277
3277
  id: r.widget,
3278
3278
  dashboard_id: r.dashboard,
3279
- data: c.data
3279
+ data: s.data
3280
3280
  }).then(() => 201).catch((l) => (console.error("%cstorage", _.STORAGE, "set", r, l.message), 400)) : 400);
3281
3281
  /**
3282
3282
  * Update Series
@@ -3284,10 +3284,10 @@ class jr {
3284
3284
  * @param data
3285
3285
  * @returns number
3286
3286
  */
3287
- D(this, "setSeries", async (r, c) => r.type === j.SERIES && c !== "" ? await this.db.table(j.SERIES).put({
3287
+ D(this, "setSeries", async (r, s) => r.type === j.SERIES && s !== "" ? await this.db.table(j.SERIES).put({
3288
3288
  id: r.widget,
3289
3289
  dashboard_id: r.dashboard,
3290
- data: c.data
3290
+ data: s.data
3291
3291
  }).then(() => 201).catch((l) => (console.error("%cstorage", _.STORAGE, "set", r, l.message), 400)) : 400);
3292
3292
  /**
3293
3293
  * Update Messages
@@ -3295,13 +3295,13 @@ class jr {
3295
3295
  * @param data any
3296
3296
  * @returns number
3297
3297
  */
3298
- D(this, "setMessages", async (r, c) => {
3298
+ D(this, "setMessages", async (r, s) => {
3299
3299
  if (r.type !== j.MESSAGES)
3300
3300
  return 400;
3301
- const l = c.data.title;
3301
+ const l = s.data.title;
3302
3302
  let A = 0;
3303
- return c.data.messages.forEach(async (k) => {
3304
- var N, L, J, q;
3303
+ return s.data.messages.forEach(async (k) => {
3304
+ var N, B, Q, q;
3305
3305
  k.id !== null && (await this.db.table(j.MESSAGES).put({
3306
3306
  id: k.id,
3307
3307
  utc: k.utc,
@@ -3322,8 +3322,8 @@ class jr {
3322
3322
  message_id: k.id,
3323
3323
  dashboard_id: r.dashboard,
3324
3324
  engagement: (N = k.dynamics) == null ? void 0 : N.engagement,
3325
- impressions: (L = k.dynamics) == null ? void 0 : L.semrush_visits,
3326
- reach: (J = k.dynamics) == null ? void 0 : J.potential_reach,
3325
+ impressions: (B = k.dynamics) == null ? void 0 : B.semrush_visits,
3326
+ reach: (Q = k.dynamics) == null ? void 0 : Q.potential_reach,
3327
3327
  sentiment: ((q = k.topics[0]) == null ? void 0 : q.sentiment) || 0,
3328
3328
  utc: k.utc,
3329
3329
  expires: k.expires
@@ -3337,14 +3337,14 @@ class jr {
3337
3337
  le.message
3338
3338
  );
3339
3339
  }));
3340
- }), c.data.topics.forEach(async (k) => {
3341
- const N = k.message_id, L = k.visible ? 1 : 0, J = k.title;
3342
- await this.db.table(j.TOPICS).where("message_id").equals(N).modify({ visible: L }).catch((q) => {
3340
+ }), s.data.topics.forEach(async (k) => {
3341
+ const N = k.message_id, B = k.visible ? 1 : 0, Q = k.title;
3342
+ await this.db.table(j.TOPICS).where("message_id").equals(N).modify({ visible: B }).catch((q) => {
3343
3343
  A++, console.error(
3344
3344
  "%cstorage",
3345
3345
  _.STORAGE,
3346
3346
  "update message visibility",
3347
- `title: ${J}`,
3347
+ `title: ${Q}`,
3348
3348
  `widget: ${k.widget_id}`,
3349
3349
  q.message
3350
3350
  );
@@ -3355,8 +3355,8 @@ class jr {
3355
3355
  * Wipe Message data after expires timestamp
3356
3356
  */
3357
3357
  D(this, "cleanMessages", async () => {
3358
- const r = Date.now() / 1e3, c = (k) => k.expires < r, l = (k) => k.expires < r;
3359
- return await this.db.table(j.TOPICS).orderBy("expires").filter(c).delete().catch((k) => (console.error(
3358
+ const r = Date.now() / 1e3, s = (k) => k.expires < r, l = (k) => k.expires < r;
3359
+ return await this.db.table(j.TOPICS).orderBy("expires").filter(s).delete().catch((k) => (console.error(
3360
3360
  "%cstorage%c %cclean",
3361
3361
  _.STORAGE,
3362
3362
  _.NONE,
@@ -3370,8 +3370,8 @@ class jr {
3370
3370
  k.message
3371
3371
  ), 0));
3372
3372
  });
3373
- D(this, "hideMessage", async (r, c) => {
3374
- await this.db.table(j.TOPICS).where("message_id").equals(r).modify({ visible: c ? 1 : 0 }).catch((l) => (console.error(
3373
+ D(this, "hideMessage", async (r, s) => {
3374
+ await this.db.table(j.TOPICS).where("message_id").equals(r).modify({ visible: s ? 1 : 0 }).catch((l) => (console.error(
3375
3375
  "%cstorage%c %chide",
3376
3376
  _.STORAGE,
3377
3377
  _.NONE,
@@ -3388,12 +3388,12 @@ class jr {
3388
3388
  id: r.widget,
3389
3389
  dashboard_id: r.dashboard,
3390
3390
  type: r.type
3391
- }).then(() => 201).catch((c) => (console.error(
3391
+ }).then(() => 201).catch((s) => (console.error(
3392
3392
  "%cstorage",
3393
3393
  _.STORAGE,
3394
3394
  j.WIDGET,
3395
3395
  r,
3396
- c.message
3396
+ s.message
3397
3397
  ), 400)));
3398
3398
  /**
3399
3399
  * Add component subscriber
@@ -3421,7 +3421,7 @@ class jr {
3421
3421
  * @returns IResponse
3422
3422
  */
3423
3423
  D(this, "loadSlide", async (r) => {
3424
- const c = await this.db.table(j.SLIDE).where({ id: r.id }).last().catch(() => {
3424
+ const s = await this.db.table(j.SLIDE).where({ id: r.id }).last().catch(() => {
3425
3425
  console.warn(
3426
3426
  "%capi%c %cseries",
3427
3427
  _.API,
@@ -3430,7 +3430,7 @@ class jr {
3430
3430
  r.id
3431
3431
  );
3432
3432
  });
3433
- return c === void 0 ? { data: null, message: "Slide Load error", success: !1 } : (c.data.id = (r == null ? void 0 : r.id) || "not set", c.message = "Slide retrieved successfully", c.success = !0, c);
3433
+ return s === void 0 ? { data: null, message: "Slide Load error", success: !1 } : (s.data.id = (r == null ? void 0 : r.id) || "not set", s.message = "Slide retrieved successfully", s.success = !0, s);
3434
3434
  });
3435
3435
  /**
3436
3436
  * Update Slide
@@ -3443,12 +3443,12 @@ class jr {
3443
3443
  json: r.data.json || {},
3444
3444
  html: r.data.html || "",
3445
3445
  css: r.data.css || ""
3446
- }).then(() => 200).catch((c) => (console.error(
3446
+ }).then(() => 200).catch((s) => (console.error(
3447
3447
  "%cstorage",
3448
3448
  _.STORAGE,
3449
3449
  re.SLIDE_STORE,
3450
3450
  r,
3451
- c.message
3451
+ s.message
3452
3452
  ), 422)) : 422);
3453
3453
  this.options = r, this.db = new Un(r.app), this.db.version(6).stores({
3454
3454
  player: "id,title,name,location",
@@ -3466,14 +3466,14 @@ class jr {
3466
3466
  }
3467
3467
  }
3468
3468
  function Wn(f) {
3469
- return new Promise((r, c) => {
3470
- f.oncomplete = f.onsuccess = () => r(f.result), f.onabort = f.onerror = () => c(f.error);
3469
+ return new Promise((r, s) => {
3470
+ f.oncomplete = f.onsuccess = () => r(f.result), f.onabort = f.onerror = () => s(f.error);
3471
3471
  });
3472
3472
  }
3473
3473
  function Ci(f, r) {
3474
- const c = indexedDB.open(f);
3475
- c.onupgradeneeded = () => c.result.createObjectStore(r);
3476
- const l = Wn(c);
3474
+ const s = indexedDB.open(f);
3475
+ s.onupgradeneeded = () => s.result.createObjectStore(r);
3476
+ const l = Wn(s);
3477
3477
  return (A, k) => l.then((N) => k(N.transaction(r, A).objectStore(r)));
3478
3478
  }
3479
3479
  let Gn;
@@ -3481,26 +3481,26 @@ function Kr() {
3481
3481
  return Gn || (Gn = Ci("keyval-store", "keyval")), Gn;
3482
3482
  }
3483
3483
  function Vt(f, r = Kr()) {
3484
- return r("readonly", (c) => Wn(c.get(f)));
3484
+ return r("readonly", (s) => Wn(s.get(f)));
3485
3485
  }
3486
- function wt(f, r, c = Kr()) {
3487
- return c("readwrite", (l) => (l.put(r, f), Wn(l.transaction)));
3486
+ function wt(f, r, s = Kr()) {
3487
+ return s("readwrite", (l) => (l.put(r, f), Wn(l.transaction)));
3488
3488
  }
3489
3489
  class Nr {
3490
3490
  constructor(r) {
3491
3491
  D(this, "subscribers", []);
3492
3492
  D(this, "options");
3493
3493
  D(this, "getCloud", async (r) => {
3494
- const c = X(r);
3495
- return await Vt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, j.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3494
+ const s = J(r);
3495
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", _.API, j.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3496
3496
  });
3497
3497
  D(this, "getSeries", async (r) => {
3498
- const c = X(r);
3499
- return await Vt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, j.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3498
+ const s = J(r);
3499
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", _.API, j.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3500
3500
  });
3501
3501
  D(this, "getMessages", async (r) => {
3502
- const c = X(r);
3503
- return await Vt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, j.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3502
+ const s = J(r);
3503
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", _.API, j.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3504
3504
  });
3505
3505
  /**
3506
3506
  * Update Cloud
@@ -3508,11 +3508,11 @@ class Nr {
3508
3508
  * @param data
3509
3509
  * @returns number
3510
3510
  */
3511
- D(this, "setCloud", async (r, c) => {
3512
- if (!c.success)
3511
+ D(this, "setCloud", async (r, s) => {
3512
+ if (!s.success)
3513
3513
  return 400;
3514
- const l = X(r);
3515
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.CLOUD, r, A.message), 400));
3514
+ const l = J(r);
3515
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.CLOUD, r, A.message), 400));
3516
3516
  });
3517
3517
  /**
3518
3518
  * Update Series
@@ -3520,11 +3520,11 @@ class Nr {
3520
3520
  * @param data
3521
3521
  * @returns bumber
3522
3522
  */
3523
- D(this, "setSeries", async (r, c) => {
3524
- if (!c.success)
3523
+ D(this, "setSeries", async (r, s) => {
3524
+ if (!s.success)
3525
3525
  return 400;
3526
- const l = X(r);
3527
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.SERIES, r, A.message), 400));
3526
+ const l = J(r);
3527
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.SERIES, r, A.message), 400));
3528
3528
  });
3529
3529
  /**
3530
3530
  * Update Messages
@@ -3532,16 +3532,16 @@ class Nr {
3532
3532
  * @param data
3533
3533
  * @returns number
3534
3534
  */
3535
- D(this, "setMessages", async (r, c) => {
3536
- if (!c.success)
3535
+ D(this, "setMessages", async (r, s) => {
3536
+ if (!s.success)
3537
3537
  return 400;
3538
- const l = X(r);
3539
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.MESSAGES, r, A.message), 400));
3538
+ const l = J(r);
3539
+ return delete s.success, delete s.message, await wt(l, s).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.MESSAGES, r, A.message), 400));
3540
3540
  });
3541
- D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
3542
- D(this, "hideMessage", async (r, c) => {
3541
+ D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
3542
+ D(this, "hideMessage", async (r, s) => {
3543
3543
  console.debug(
3544
- `hideMessage ${r} ${c} not implemented for ${this.options.storage}`
3544
+ `hideMessage ${r} ${s} not implemented for ${this.options.storage}`
3545
3545
  );
3546
3546
  });
3547
3547
  /**
@@ -3550,12 +3550,12 @@ class Nr {
3550
3550
  * @returns number
3551
3551
  */
3552
3552
  D(this, "setWidget", async (r) => {
3553
- const c = X(r), l = {
3553
+ const s = J(r), l = {
3554
3554
  id: r.widget,
3555
3555
  dashboard_id: r.dashboard,
3556
3556
  type: r.type
3557
3557
  };
3558
- return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.WIDGET, r, A.message), 400));
3558
+ return await wt(s, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.WIDGET, r, A.message), 400));
3559
3559
  });
3560
3560
  /**
3561
3561
  * Add component subscriber
@@ -3578,8 +3578,8 @@ class Nr {
3578
3578
  */
3579
3579
  D(this, "getSubscribers", async () => await new Promise((r) => r(this.subscribers)));
3580
3580
  D(this, "loadSlide", async (r) => {
3581
- const c = X(r);
3582
- return await Vt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, j.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3581
+ const s = J(r);
3582
+ return await Vt(s).then((l) => l).catch(() => (console.warn("%capi", _.API, j.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3583
3583
  });
3584
3584
  /**
3585
3585
  * Update Slide
@@ -3587,14 +3587,14 @@ class Nr {
3587
3587
  * @returns number
3588
3588
  */
3589
3589
  D(this, "storeSlide", async (r) => {
3590
- const c = X(r), l = {
3590
+ const s = J(r), l = {
3591
3591
  id: r.id,
3592
3592
  title: r.data.title || "Not set",
3593
3593
  json: r.data.json || {},
3594
3594
  html: r.data.html || "",
3595
3595
  css: r.data.css || ""
3596
3596
  };
3597
- return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.SLIDE, r, A.message), 400));
3597
+ return await wt(s, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, j.SLIDE, r, A.message), 400));
3598
3598
  });
3599
3599
  this.options = r;
3600
3600
  }
@@ -3604,25 +3604,25 @@ class Br {
3604
3604
  D(this, "subscribers", []);
3605
3605
  D(this, "options");
3606
3606
  D(this, "getCloud", async (r) => {
3607
- const c = X(r);
3607
+ const s = J(r);
3608
3608
  try {
3609
- return localStorage.getObject(c);
3609
+ return localStorage.getObject(s);
3610
3610
  } catch (l) {
3611
3611
  return console.warn("%capi", _.API, j.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3612
3612
  }
3613
3613
  });
3614
3614
  D(this, "getSeries", async (r) => {
3615
- const c = X(r);
3615
+ const s = J(r);
3616
3616
  try {
3617
- return localStorage.getObject(c);
3617
+ return localStorage.getObject(s);
3618
3618
  } catch (l) {
3619
3619
  return console.warn("%capi", _.API, j.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3620
3620
  }
3621
3621
  });
3622
3622
  D(this, "getMessages", async (r) => {
3623
- const c = X(r);
3623
+ const s = J(r);
3624
3624
  try {
3625
- return localStorage.getObject(c);
3625
+ return localStorage.getObject(s);
3626
3626
  } catch (l) {
3627
3627
  return console.warn("%capi", _.API, j.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3628
3628
  }
@@ -3633,10 +3633,10 @@ class Br {
3633
3633
  * @param data
3634
3634
  * @returns number
3635
3635
  */
3636
- D(this, "setCloud", async (r, c) => {
3637
- const l = X(r);
3636
+ D(this, "setCloud", async (r, s) => {
3637
+ const l = J(r);
3638
3638
  try {
3639
- return localStorage.setObject(l, c), 201;
3639
+ return localStorage.setObject(l, s), 201;
3640
3640
  } catch (A) {
3641
3641
  return console.error("%cstorage", _.STORAGE, j.CLOUD, r, A), 400;
3642
3642
  }
@@ -3647,10 +3647,10 @@ class Br {
3647
3647
  * @param data
3648
3648
  * @returns number
3649
3649
  */
3650
- D(this, "setSeries", async (r, c) => {
3651
- const l = X(r);
3650
+ D(this, "setSeries", async (r, s) => {
3651
+ const l = J(r);
3652
3652
  try {
3653
- return localStorage.setObject(l, c), 201;
3653
+ return localStorage.setObject(l, s), 201;
3654
3654
  } catch (A) {
3655
3655
  return console.error("%cstorage", _.STORAGE, j.SERIES, r, A), 400;
3656
3656
  }
@@ -3661,22 +3661,22 @@ class Br {
3661
3661
  * @param data
3662
3662
  * @returns number
3663
3663
  */
3664
- D(this, "setMessages", async (r, c) => {
3665
- const l = X(r);
3664
+ D(this, "setMessages", async (r, s) => {
3665
+ const l = J(r);
3666
3666
  try {
3667
- return localStorage.setObject(l, c), 200;
3667
+ return localStorage.setObject(l, s), 200;
3668
3668
  } catch (A) {
3669
3669
  return console.error("%cstorage", _.STORAGE, j.MESSAGES, r, A), 400;
3670
3670
  }
3671
3671
  });
3672
- D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
3673
- D(this, "hideMessage", async (r, c) => {
3674
- console.debug(`hideMessage ${r} ${c} not implemented for ${this.options.storage}`);
3672
+ D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
3673
+ D(this, "hideMessage", async (r, s) => {
3674
+ console.debug(`hideMessage ${r} ${s} not implemented for ${this.options.storage}`);
3675
3675
  });
3676
3676
  D(this, "setWidget", async (r) => {
3677
- const c = `widget.${r.widget}`;
3677
+ const s = `widget.${r.widget}`;
3678
3678
  try {
3679
- return localStorage.setObject(c, r), 201;
3679
+ return localStorage.setObject(s, r), 201;
3680
3680
  } catch (l) {
3681
3681
  return console.error("%cstorage", _.STORAGE, j.WIDGET, r, l), 400;
3682
3682
  }
@@ -3704,8 +3704,8 @@ class Br {
3704
3704
  D(this, "loadSlide", async (r) => {
3705
3705
  try {
3706
3706
  return localStorage.getObject(`${r.type}.${r.id}`);
3707
- } catch (c) {
3708
- return console.warn("%capi", _.API, j.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3707
+ } catch (s) {
3708
+ return console.warn("%capi", _.API, j.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3709
3709
  }
3710
3710
  });
3711
3711
  D(this, "storeSlide", async (r) => {
@@ -3717,14 +3717,14 @@ class Br {
3717
3717
  html: r.data.html || "",
3718
3718
  css: r.data.css || ""
3719
3719
  }), 201;
3720
- } catch (c) {
3721
- return console.error("%cstorage", _.STORAGE, j.SLIDE, r, c), 400;
3720
+ } catch (s) {
3721
+ return console.error("%cstorage", _.STORAGE, j.SLIDE, r, s), 400;
3722
3722
  }
3723
3723
  });
3724
- this.options = r, Storage.prototype.setObject = function(c, l) {
3725
- this.setObject(c, JSON.stringify(l));
3726
- }, Storage.prototype.getObject = function(c) {
3727
- const l = this.getObject(c);
3724
+ this.options = r, Storage.prototype.setObject = function(s, l) {
3725
+ this.setObject(s, JSON.stringify(l));
3726
+ }, Storage.prototype.getObject = function(s) {
3727
+ const l = this.getObject(s);
3728
3728
  return l && JSON.parse(l);
3729
3729
  };
3730
3730
  }
@@ -3734,25 +3734,25 @@ class Lr {
3734
3734
  D(this, "subscribers", []);
3735
3735
  D(this, "options");
3736
3736
  D(this, "getCloud", async (r) => {
3737
- const c = X(r);
3737
+ const s = J(r);
3738
3738
  try {
3739
- return sessionStorage.getObject(c);
3739
+ return sessionStorage.getObject(s);
3740
3740
  } catch (l) {
3741
3741
  return console.warn("%capi", _.API, j.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3742
3742
  }
3743
3743
  });
3744
3744
  D(this, "getSeries", async (r) => {
3745
- const c = X(r);
3745
+ const s = J(r);
3746
3746
  try {
3747
- return sessionStorage.getObject(c);
3747
+ return sessionStorage.getObject(s);
3748
3748
  } catch (l) {
3749
3749
  return console.warn("%capi", _.API, j.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3750
3750
  }
3751
3751
  });
3752
3752
  D(this, "getMessages", async (r) => {
3753
- const c = X(r);
3753
+ const s = J(r);
3754
3754
  try {
3755
- return sessionStorage.getObject(c);
3755
+ return sessionStorage.getObject(s);
3756
3756
  } catch (l) {
3757
3757
  return console.warn("%capi", _.API, j.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3758
3758
  }
@@ -3763,10 +3763,10 @@ class Lr {
3763
3763
  * @param data
3764
3764
  * @returns number
3765
3765
  */
3766
- D(this, "setCloud", async (r, c) => {
3767
- const l = X(r);
3766
+ D(this, "setCloud", async (r, s) => {
3767
+ const l = J(r);
3768
3768
  try {
3769
- return sessionStorage.setObject(l, c), 201;
3769
+ return sessionStorage.setObject(l, s), 201;
3770
3770
  } catch (A) {
3771
3771
  return console.error("%cstorage", _.STORAGE, j.CLOUD, r, A), 400;
3772
3772
  }
@@ -3777,10 +3777,10 @@ class Lr {
3777
3777
  * @param data
3778
3778
  * @returns number
3779
3779
  */
3780
- D(this, "setSeries", async (r, c) => {
3781
- const l = X(r);
3780
+ D(this, "setSeries", async (r, s) => {
3781
+ const l = J(r);
3782
3782
  try {
3783
- return sessionStorage.setObject(l, c), 201;
3783
+ return sessionStorage.setObject(l, s), 201;
3784
3784
  } catch (A) {
3785
3785
  return console.error("%cstorage", _.STORAGE, j.SERIES, r, A), 400;
3786
3786
  }
@@ -3791,22 +3791,22 @@ class Lr {
3791
3791
  * @param data
3792
3792
  * @returns number
3793
3793
  */
3794
- D(this, "setMessages", async (r, c) => {
3795
- const l = X(r);
3794
+ D(this, "setMessages", async (r, s) => {
3795
+ const l = J(r);
3796
3796
  try {
3797
- return sessionStorage.setObject(l, c), 200;
3797
+ return sessionStorage.setObject(l, s), 200;
3798
3798
  } catch (A) {
3799
3799
  return console.error("%cstorage", _.STORAGE, j.MESSAGES, r, A), 400;
3800
3800
  }
3801
3801
  });
3802
- D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
3803
- D(this, "hideMessage", async (r, c) => {
3804
- console.debug(`hideMessage ${r} ${c} not implemented for ${this.options.storage}`);
3802
+ D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
3803
+ D(this, "hideMessage", async (r, s) => {
3804
+ console.debug(`hideMessage ${r} ${s} not implemented for ${this.options.storage}`);
3805
3805
  });
3806
3806
  D(this, "setWidget", async (r) => {
3807
- const c = `widget.${r.widget}`;
3807
+ const s = `widget.${r.widget}`;
3808
3808
  try {
3809
- return sessionStorage.setObject(c, r), 201;
3809
+ return sessionStorage.setObject(s, r), 201;
3810
3810
  } catch (l) {
3811
3811
  return console.error("%cstorage", _.STORAGE, j.WIDGET, r, l), 400;
3812
3812
  }
@@ -3834,8 +3834,8 @@ class Lr {
3834
3834
  D(this, "loadSlide", async (r) => {
3835
3835
  try {
3836
3836
  return sessionStorage.getObject(`${r.type}.${r.id}`);
3837
- } catch (c) {
3838
- return console.warn("%capi", _.API, j.SLIDE, r.id, c), { data: null, message: "Store Load error", success: !1 };
3837
+ } catch (s) {
3838
+ return console.warn("%capi", _.API, j.SLIDE, r.id, s), { data: null, message: "Store Load error", success: !1 };
3839
3839
  }
3840
3840
  });
3841
3841
  /**
@@ -3852,14 +3852,14 @@ class Lr {
3852
3852
  html: r.data.html || "",
3853
3853
  css: r.data.css || ""
3854
3854
  }), 200;
3855
- } catch (c) {
3856
- return console.error("%cstorage", _.STORAGE, j.SLIDE, r, c), 400;
3855
+ } catch (s) {
3856
+ return console.error("%cstorage", _.STORAGE, j.SLIDE, r, s), 400;
3857
3857
  }
3858
3858
  });
3859
- this.options = r, Storage.prototype.setObject = function(c, l) {
3860
- this.setItem(c, JSON.stringify(l));
3861
- }, Storage.prototype.getObject = function(c) {
3862
- const l = this.getItem(c);
3859
+ this.options = r, Storage.prototype.setObject = function(s, l) {
3860
+ this.setItem(s, JSON.stringify(l));
3861
+ }, Storage.prototype.getObject = function(s) {
3862
+ const l = this.getItem(s);
3863
3863
  return l && JSON.parse(l);
3864
3864
  };
3865
3865
  }
@@ -3869,25 +3869,25 @@ class Gr {
3869
3869
  D(this, "subscribers", []);
3870
3870
  D(this, "options");
3871
3871
  D(this, "getCloud", async (r) => {
3872
- const c = X(r);
3872
+ const s = J(r);
3873
3873
  try {
3874
- return window.BuzzCasting.WidgetData[c];
3874
+ return window.BuzzCasting.WidgetData[s];
3875
3875
  } catch (l) {
3876
3876
  return console.warn("%capi", _.API, j.CLOUD, r.slide, r.widget, l), { data: null, message: "Cloud Data error", success: !1 };
3877
3877
  }
3878
3878
  });
3879
3879
  D(this, "getSeries", async (r) => {
3880
- const c = X(r);
3880
+ const s = J(r);
3881
3881
  try {
3882
- return window.BuzzCasting.WidgetData[c];
3882
+ return window.BuzzCasting.WidgetData[s];
3883
3883
  } catch (l) {
3884
3884
  return console.warn("%capi", _.API, j.SERIES, r.slide, r.widget, l), { data: null, message: "Series Data error", success: !1 };
3885
3885
  }
3886
3886
  });
3887
3887
  D(this, "getMessages", async (r) => {
3888
- const c = X(r);
3888
+ const s = J(r);
3889
3889
  try {
3890
- return window.BuzzCasting.WidgetData[c];
3890
+ return window.BuzzCasting.WidgetData[s];
3891
3891
  } catch (l) {
3892
3892
  return console.warn("%capi", _.API, j.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3893
3893
  }
@@ -3898,10 +3898,10 @@ class Gr {
3898
3898
  * @param data
3899
3899
  * @returns number
3900
3900
  */
3901
- D(this, "setCloud", async (r, c) => {
3902
- const l = X(r);
3901
+ D(this, "setCloud", async (r, s) => {
3902
+ const l = J(r);
3903
3903
  try {
3904
- return window.BuzzCasting.WidgetData[l] = c, 201;
3904
+ return window.BuzzCasting.WidgetData[l] = s, 201;
3905
3905
  } catch (A) {
3906
3906
  return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3907
3907
  }
@@ -3912,10 +3912,10 @@ class Gr {
3912
3912
  * @param data
3913
3913
  * @returns number
3914
3914
  */
3915
- D(this, "setSeries", async (r, c) => {
3916
- const l = X(r);
3915
+ D(this, "setSeries", async (r, s) => {
3916
+ const l = J(r);
3917
3917
  try {
3918
- return window.BuzzCasting.WidgetData[l] = c, 201;
3918
+ return window.BuzzCasting.WidgetData[l] = s, 201;
3919
3919
  } catch (A) {
3920
3920
  return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3921
3921
  }
@@ -3926,22 +3926,22 @@ class Gr {
3926
3926
  * @param data
3927
3927
  * @returns number
3928
3928
  */
3929
- D(this, "setMessages", async (r, c) => {
3930
- const l = X(r);
3929
+ D(this, "setMessages", async (r, s) => {
3930
+ const l = J(r);
3931
3931
  try {
3932
- return window.BuzzCasting.WidgetData[l] = c, 201;
3932
+ return window.BuzzCasting.WidgetData[l] = s, 201;
3933
3933
  } catch (A) {
3934
3934
  return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3935
3935
  }
3936
3936
  });
3937
- D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
3938
- D(this, "hideMessage", async (r, c) => {
3939
- console.debug(`hideMessage ${r} ${c} not implemented for ${this.options.storage}`);
3937
+ D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((s) => s(0))));
3938
+ D(this, "hideMessage", async (r, s) => {
3939
+ console.debug(`hideMessage ${r} ${s} not implemented for ${this.options.storage}`);
3940
3940
  });
3941
3941
  D(this, "setWidget", async (r) => {
3942
- const c = `widget.${r.widget}`;
3942
+ const s = `widget.${r.widget}`;
3943
3943
  try {
3944
- return window.BuzzCasting.WidgetData[c] = r, 201;
3944
+ return window.BuzzCasting.WidgetData[s] = r, 201;
3945
3945
  } catch (l) {
3946
3946
  return console.error("%cstorage", _.STORAGE, j.WIDGET, r, l), 400;
3947
3947
  }
@@ -3969,8 +3969,8 @@ class Gr {
3969
3969
  D(this, "loadSlide", async (r) => {
3970
3970
  try {
3971
3971
  return window.BuzzCasting.SlideData[r.id];
3972
- } catch (c) {
3973
- return console.warn("%capi", _.API, j.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3972
+ } catch (s) {
3973
+ return console.warn("%capi", _.API, j.SLIDE, r.id, s), { data: null, message: "Slide Load error", success: !1 };
3974
3974
  }
3975
3975
  });
3976
3976
  D(this, "storeSlide", async (r) => {
@@ -3982,8 +3982,8 @@ class Gr {
3982
3982
  html: r.data.html || "",
3983
3983
  css: r.data.css || ""
3984
3984
  }, 201;
3985
- } catch (c) {
3986
- return console.error("%cstorage", _.STORAGE, j.SLIDE, r, c), 400;
3985
+ } catch (s) {
3986
+ return console.error("%cstorage", _.STORAGE, j.SLIDE, r, s), 400;
3987
3987
  }
3988
3988
  });
3989
3989
  this.options = r, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
@@ -3991,36 +3991,36 @@ class Gr {
3991
3991
  }
3992
3992
  function Li(f) {
3993
3993
  const r = f.toUpperCase().split(/[\s_-]+/);
3994
- return r.length > 0 ? (r.forEach((c, l) => {
3995
- r[l] = `${c.charAt(0)}.`;
3994
+ return r.length > 0 ? (r.forEach((s, l) => {
3995
+ r[l] = `${s.charAt(0)}.`;
3996
3996
  }), r.join(" ")) : "";
3997
3997
  }
3998
3998
  function Gi(f) {
3999
- let r = "", c = "", l = {
3999
+ let r = "", s = "", l = {
4000
4000
  backgroundImage: ""
4001
4001
  };
4002
4002
  return typeof f.media < "u" && f.media.forEach((A) => {
4003
4003
  (A.type === "photo" || A.type === "image") && (l = {
4004
4004
  backgroundImage: `url(${A.url})`
4005
- }, c = A.url), A.type === "video" && (r = A.url);
4005
+ }, s = A.url), A.type === "video" && (r = A.url);
4006
4006
  }), {
4007
- image: c,
4007
+ image: s,
4008
4008
  background: l || null,
4009
4009
  video: r
4010
4010
  };
4011
4011
  }
4012
4012
  function Ri(f) {
4013
4013
  const r = {};
4014
- for (let c = 0; c < f.length; c++) {
4015
- const l = f.item(c);
4014
+ for (let s = 0; s < f.length; s++) {
4015
+ const l = f.item(s);
4016
4016
  l != null && l.name && (r[l.name] = l.value);
4017
4017
  }
4018
4018
  return r;
4019
4019
  }
4020
4020
  function $i(f) {
4021
4021
  const r = {};
4022
- for (let c = 0; c < f.length; c++) {
4023
- const l = f[c];
4022
+ for (let s = 0; s < f.length; s++) {
4023
+ const l = f[s];
4024
4024
  l.name !== "class" && !l.name.includes("data") && (r[l.name] = l.value);
4025
4025
  }
4026
4026
  return r;
@@ -4068,10 +4068,10 @@ function Fi(f, r) {
4068
4068
  }
4069
4069
  }
4070
4070
  function Ui(f) {
4071
- return f.replace(/^\w|[A-Z]|\b\w/g, (r, c) => c === 0 ? r.toLowerCase() : r.toUpperCase()).replace(/\s+/g, "");
4071
+ return f.replace(/^\w|[A-Z]|\b\w/g, (r, s) => s === 0 ? r.toLowerCase() : r.toUpperCase()).replace(/\s+/g, "");
4072
4072
  }
4073
4073
  function Wi(f) {
4074
- return f.toLowerCase().split("-").reduce((r, c) => r + (c.charAt(0).toUpperCase() + c.slice(1)));
4074
+ return f.toLowerCase().split("-").reduce((r, s) => r + (s.charAt(0).toUpperCase() + s.slice(1)));
4075
4075
  }
4076
4076
  function Ti(f) {
4077
4077
  const r = document.createRange();
@@ -4087,28 +4087,28 @@ function Mi(f, r) {
4087
4087
  return f;
4088
4088
  }
4089
4089
  function Oe(f, r) {
4090
- let c, l, A;
4090
+ let s, l, A;
4091
4091
  if (r.length === 0)
4092
4092
  return f;
4093
- for (c = 0, A = r.length; c < A; c++)
4094
- l = r.charCodeAt(c), f = (f << 5) - f + l, f |= 0;
4093
+ for (s = 0, A = r.length; s < A; s++)
4094
+ l = r.charCodeAt(s), f = (f << 5) - f + l, f |= 0;
4095
4095
  return f < 0 ? f * -2 : f;
4096
4096
  }
4097
- function ji(f, r, c) {
4097
+ function ji(f, r, s) {
4098
4098
  return Object.keys(r).sort().reduce(l, f);
4099
4099
  function l(A, k) {
4100
- return $r(A, r[k], k, c);
4100
+ return $r(A, r[k], k, s);
4101
4101
  }
4102
4102
  }
4103
- function $r(f, r, c, l) {
4104
- const A = Oe(Oe(Oe(f, c), Ki(r)), typeof r);
4103
+ function $r(f, r, s, l) {
4104
+ const A = Oe(Oe(Oe(f, s), Ki(r)), typeof r);
4105
4105
  if (r === null)
4106
4106
  return Oe(A, "null");
4107
4107
  if (r === void 0)
4108
4108
  return Oe(A, "undefined");
4109
4109
  if (typeof r == "object" || typeof r == "function") {
4110
4110
  if (l.includes(r))
4111
- return Oe(A, `[Circular]${c}`);
4111
+ return Oe(A, `[Circular]${s}`);
4112
4112
  l.push(r);
4113
4113
  const k = ji(A, r, l);
4114
4114
  if (!("valueOf" in r) || typeof r.valueOf != "function")
@@ -4130,7 +4130,7 @@ function $n(f) {
4130
4130
  function Hi(f, r) {
4131
4131
  if (f = f.toString().replace(/[^0-9.]/g, ""), f < 1e3)
4132
4132
  return f;
4133
- const c = [
4133
+ const s = [
4134
4134
  { v: 1e3, s: "K" },
4135
4135
  { v: 1e6, s: "M" },
4136
4136
  { v: 1e9, s: "B" },
@@ -4139,12 +4139,12 @@ function Hi(f, r) {
4139
4139
  { v: 1e18, s: "E" }
4140
4140
  ];
4141
4141
  let l;
4142
- for (l = c.length - 1; l > 0 && !(f >= c[l].v); l--)
4142
+ for (l = s.length - 1; l > 0 && !(f >= s[l].v); l--)
4143
4143
  ;
4144
- return (f / c[l].v).toFixed(r).replace(/\.0+$|(\.\d*[1-9])0+$/, "$1") + c[l].s;
4144
+ return (f / s[l].v).toFixed(r).replace(/\.0+$|(\.\d*[1-9])0+$/, "$1") + s[l].s;
4145
4145
  }
4146
4146
  function Yi(f, r) {
4147
- const c = [
4147
+ const s = [
4148
4148
  { value: 1, symbol: "" },
4149
4149
  { value: 1e3, symbol: "K" },
4150
4150
  { value: 1e6, symbol: "M" },
@@ -4154,9 +4154,9 @@ function Yi(f, r) {
4154
4154
  { value: 1e18, symbol: "E" }
4155
4155
  ], l = /\.0+$|(\.\d*[1-9])0+$/;
4156
4156
  let A;
4157
- for (A = c.length - 1; A > 0 && !(f >= c[A].value); A--)
4157
+ for (A = s.length - 1; A > 0 && !(f >= s[A].value); A--)
4158
4158
  ;
4159
- return (f / c[A].value).toFixed(r).replace(l, "$1") + c[A].symbol;
4159
+ return (f / s[A].value).toFixed(r).replace(l, "$1") + s[A].symbol;
4160
4160
  }
4161
4161
  function Qi(f) {
4162
4162
  switch (f.language) {
@@ -4170,19 +4170,20 @@ function Qi(f) {
4170
4170
  }
4171
4171
  }
4172
4172
  function Xi(f) {
4173
- return f.forEach((r) => {
4174
- var c, l, A, k, N;
4175
- if (r.content = ((c = r.content) == null ? void 0 : c.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g, "")) || "", r.sender !== null ? ((((l = r.sender) == null ? void 0 : l.title) === "Unknown author" || ((A = r.sender) == null ? void 0 : A.title) === null) && (r.sender.title = ""), ((k = r.sender) == null ? void 0 : k.name) !== "" && r.sender.title === "" && (r.sender.title = r.sender.name), ((N = r.sender) == null ? void 0 : N.name) !== "" && r.channel === "tw" && (r.sender.name = `@${r.sender.name}`)) : r.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, r.sender.title === "" && r.link !== "") {
4176
- const L = new URL(r.link);
4177
- r.sender.title = L.hostname.replace("www.", "");
4173
+ const r = window.BuzzCasting.getOptions().suspended ?? !1;
4174
+ return f.forEach((s) => {
4175
+ var l, A, k, N, B;
4176
+ if (r ? s.content = "License suspended, please contact your Sales Representative to restore service" : s.content = ((l = s.content) == null ? void 0 : l.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g, "")) || "", s.sender !== null ? ((((A = s.sender) == null ? void 0 : A.title) === "Unknown author" || ((k = s.sender) == null ? void 0 : k.title) === null) && (s.sender.title = ""), ((N = s.sender) == null ? void 0 : N.name) !== "" && s.sender.title === "" && (s.sender.title = s.sender.name), ((B = s.sender) == null ? void 0 : B.name) !== "" && s.channel === "tw" && (s.sender.name = `@${s.sender.name}`)) : s.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, s.sender.title === "" && s.link !== "") {
4177
+ const Q = new URL(s.link);
4178
+ s.sender.title = Q.hostname.replace("www.", "");
4178
4179
  }
4179
4180
  }), f;
4180
4181
  }
4181
4182
  function Ji(f) {
4182
4183
  const r = [...f];
4183
- for (let c = r.length - 1; c > 0; c--) {
4184
- const l = Math.floor(Math.random() * (c + 1));
4185
- [r[c], r[l]] = [r[l], r[c]];
4184
+ for (let s = r.length - 1; s > 0; s--) {
4185
+ const l = Math.floor(Math.random() * (s + 1));
4186
+ [r[s], r[l]] = [r[l], r[s]];
4186
4187
  }
4187
4188
  return r;
4188
4189
  }
@@ -4195,59 +4196,59 @@ class Vi {
4195
4196
  D(this, "update", async (r) => {
4196
4197
  if (this.sm === null)
4197
4198
  return;
4198
- const c = await this.sm.getSubscribers();
4199
- if (c.length === 0)
4199
+ const s = await this.sm.getSubscribers();
4200
+ if (s.length === 0)
4200
4201
  return;
4201
4202
  const l = [];
4202
- r ? l.push(this.api.get(r)) : c == null || c.forEach((A) => {
4203
+ r ? l.push(this.api.get(r)) : s == null || s.forEach((A) => {
4203
4204
  l.push(this.api.get(A));
4204
4205
  }), await Promise.allSettled(l).then(
4205
4206
  (A) => A.forEach(async (k) => {
4206
4207
  let N = 400;
4207
4208
  if (k.status === "fulfilled") {
4208
- const L = k.value;
4209
+ const B = k.value;
4209
4210
  if (this.sm === null)
4210
4211
  return 400;
4211
- if (L.success === !0) {
4212
- const J = this.sm.subscribers.filter(
4213
- (ne) => ne.widget === L.query.widget
4212
+ if (B.success === !0) {
4213
+ const Q = this.sm.subscribers.filter(
4214
+ (ne) => ne.widget === B.query.widget
4214
4215
  )[0];
4215
4216
  let q = "", le;
4216
- switch (L.query.type) {
4217
+ switch (B.query.type) {
4217
4218
  case j.MESSAGES:
4218
- if (le = L.data.messages.filter((ne) => ne.id !== null), L.data.messages = le, q = $n(L.data.messages), J.hash === q)
4219
+ if (le = B.data.messages.filter((ne) => ne.id !== null), B.data.messages = le, q = $n(B.data.messages), Q.hash === q)
4219
4220
  return console.debug(
4220
4221
  "%capi%c %cno updates",
4221
4222
  _.API,
4222
4223
  _.NONE,
4223
4224
  _.NO_UPDATES,
4224
4225
  j.MESSAGES,
4225
- L.query.slide,
4226
- L.query.widget
4226
+ B.query.slide,
4227
+ B.query.widget
4227
4228
  ), 204;
4228
- J.hash = q, N = await this.sm.setMessages(L.query, L);
4229
+ Q.hash = q, N = await this.sm.setMessages(B.query, B);
4229
4230
  break;
4230
4231
  case j.CLOUD:
4231
- q = $n(L.data), J.hash === q ? (console.debug(
4232
+ q = $n(B.data), Q.hash === q ? (console.debug(
4232
4233
  "%capi%c %cno updates",
4233
4234
  _.API,
4234
4235
  _.NONE,
4235
4236
  _.NO_UPDATES,
4236
4237
  j.CLOUD,
4237
- L.query.slide,
4238
- L.query.widget
4239
- ), N = 204) : (J.hash = q, N = await this.sm.setCloud(L.query, L));
4238
+ B.query.slide,
4239
+ B.query.widget
4240
+ ), N = 204) : (Q.hash = q, N = await this.sm.setCloud(B.query, B));
4240
4241
  break;
4241
4242
  case j.SERIES:
4242
- q = $n(L.data), J.hash === q ? (console.debug(
4243
+ q = $n(B.data), Q.hash === q ? (console.debug(
4243
4244
  "%capi%c %cno updates",
4244
4245
  _.API,
4245
4246
  _.NONE,
4246
4247
  _.NO_UPDATES,
4247
4248
  j.SERIES,
4248
- L.query.slide,
4249
- L.query.widget
4250
- ), N = 204) : (J.hash = q, N = await this.sm.setSeries(L.query, L));
4249
+ B.query.slide,
4250
+ B.query.widget
4251
+ ), N = 204) : (Q.hash = q, N = await this.sm.setSeries(B.query, B));
4251
4252
  break;
4252
4253
  default:
4253
4254
  console.warn(
@@ -4256,7 +4257,7 @@ class Vi {
4256
4257
  _.NONE,
4257
4258
  _.STORAGE,
4258
4259
  "error",
4259
- `data type ${L.query.type} unknown`
4260
+ `data type ${B.query.type} unknown`
4260
4261
  );
4261
4262
  }
4262
4263
  } else
@@ -4268,9 +4269,9 @@ class Vi {
4268
4269
  _.API,
4269
4270
  _.NONE,
4270
4271
  _.BROADCAST,
4271
- L.query.slide,
4272
- L.data.title ?? L.query.widget
4273
- ), this.bc.postMessage({ event: re.WIDGET_UPDATE, data: L });
4272
+ B.query.slide,
4273
+ B.data.title ?? B.query.widget
4274
+ ), this.bc.postMessage({ event: re.WIDGET_UPDATE, data: B });
4274
4275
  break;
4275
4276
  case 400:
4276
4277
  console.warn(
@@ -4278,8 +4279,8 @@ class Vi {
4278
4279
  _.API,
4279
4280
  _.NONE,
4280
4281
  _.BROADCAST,
4281
- L.query.slide,
4282
- L.data.title ?? L.query.widget
4282
+ B.query.slide,
4283
+ B.data.title ?? B.query.widget
4283
4284
  );
4284
4285
  break;
4285
4286
  }
@@ -4299,10 +4300,10 @@ class Vi {
4299
4300
  this.api.hideMessage(r);
4300
4301
  });
4301
4302
  D(this, "actions", async (r) => {
4302
- var c;
4303
+ var s;
4303
4304
  switch (r.data.event) {
4304
4305
  case re.SUBSCRIBE:
4305
- (c = this.sm) == null || c.subscribe(r.data.data);
4306
+ (s = this.sm) == null || s.subscribe(r.data.data);
4306
4307
  break;
4307
4308
  case re.UPDATE:
4308
4309
  console.debug(
@@ -4318,7 +4319,7 @@ class Vi {
4318
4319
  });
4319
4320
  D(this, "cleanMessages", async () => {
4320
4321
  var l, A;
4321
- const r = ((l = this.options) == null ? void 0 : l.retention) || 345600, c = await ((A = this.sm) == null ? void 0 : A.cleanMessages(
4322
+ const r = ((l = this.options) == null ? void 0 : l.retention) || 345600, s = await ((A = this.sm) == null ? void 0 : A.cleanMessages(
4322
4323
  r
4323
4324
  ));
4324
4325
  console.info(
@@ -4326,18 +4327,18 @@ class Vi {
4326
4327
  _.STORAGE,
4327
4328
  _.NONE,
4328
4329
  _.MESSAGES,
4329
- `${c} messages deleted`
4330
+ `${s} messages deleted`
4330
4331
  );
4331
4332
  });
4332
4333
  D(this, "hideMessage", async (r) => {
4333
4334
  var l;
4334
- const c = await ((l = this.sm) == null ? void 0 : l.hideMessage(r.id, 0));
4335
+ const s = await ((l = this.sm) == null ? void 0 : l.hideMessage(r.id, 0));
4335
4336
  return console.info(
4336
4337
  "%cstorage%c %cstorage",
4337
4338
  _.STORAGE,
4338
4339
  _.NONE,
4339
4340
  _.HIDE,
4340
- `${c} messages hidden`
4341
+ `${s} messages hidden`
4341
4342
  ), await this.api.hideMessage(r);
4342
4343
  });
4343
4344
  D(this, "hideLabels", async (r) => await this.api.hideLabels(r));
@@ -4347,8 +4348,8 @@ class Vi {
4347
4348
  });
4348
4349
  D(this, "loadSlide", async (r) => await this.api.loadSlide(r));
4349
4350
  D(this, "storeSlide", async (r) => {
4350
- var c;
4351
- return console.log(r), await ((c = this.sm) == null ? void 0 : c.storeSlide(r).then(async () => r != null && r.update && r.update ? await this.api.storeSlide(r) : new Promise((l, A) => {
4351
+ var s;
4352
+ return console.log(r), await ((s = this.sm) == null ? void 0 : s.storeSlide(r).then(async () => r != null && r.update && r.update ? await this.api.storeSlide(r) : new Promise((l, A) => {
4352
4353
  l(201);
4353
4354
  })));
4354
4355
  });
@@ -4361,14 +4362,14 @@ class Vi {
4361
4362
  re.VERSION,
4362
4363
  Ai
4363
4364
  ), this.options = r, this.sm = null;
4364
- const c = (r == null ? void 0 : r.slide) || r.app;
4365
- switch (this.bc = new BroadcastChannel(c), console.info(
4365
+ const s = (r == null ? void 0 : r.slide) || r.app;
4366
+ switch (this.bc = new BroadcastChannel(s), console.info(
4366
4367
  "%capi%c %cbroadcast",
4367
4368
  _.API,
4368
4369
  _.NONE,
4369
4370
  _.BROADCAST,
4370
4371
  re.CHANNEL,
4371
- c
4372
+ s
4372
4373
  ), this.bc.onmessage = (l) => {
4373
4374
  this.actions(l);
4374
4375
  }, this.bc.postMessage({ event: re.STORAGE_INIT, data: {} }), this.api = new Di(r), r.storage) {
@@ -4399,7 +4400,7 @@ class Ni {
4399
4400
  * @returns IResponse
4400
4401
  */
4401
4402
  D(this, "getCloud", async (r) => {
4402
- var c;
4403
+ var s;
4403
4404
  return r.type !== j.CLOUD ? (console.warn(
4404
4405
  "%capp%c %get",
4405
4406
  _.APP,
@@ -4412,7 +4413,7 @@ class Ni {
4412
4413
  data: null,
4413
4414
  message: `'wrong method call for getMessages, type used is ${r.type}`,
4414
4415
  success: !1
4415
- }) : await ((c = this.sm) == null ? void 0 : c.getCloud(r));
4416
+ }) : await ((s = this.sm) == null ? void 0 : s.getCloud(r));
4416
4417
  });
4417
4418
  /**
4418
4419
  * Retieve Message Data
@@ -4420,7 +4421,7 @@ class Ni {
4420
4421
  * @returns IResponse
4421
4422
  */
4422
4423
  D(this, "getMessages", async (r) => {
4423
- var c;
4424
+ var s;
4424
4425
  return r.type !== j.MESSAGES ? (console.warn(
4425
4426
  "%capp%c %get",
4426
4427
  _.APP,
@@ -4433,7 +4434,7 @@ class Ni {
4433
4434
  data: null,
4434
4435
  message: `'wrong method call for getMessages, type used is ${r.type}`,
4435
4436
  success: !1
4436
- }) : await ((c = this.sm) == null ? void 0 : c.getMessages(r));
4437
+ }) : await ((s = this.sm) == null ? void 0 : s.getMessages(r));
4437
4438
  });
4438
4439
  /**
4439
4440
  * Retrieve Series Data
@@ -4441,7 +4442,7 @@ class Ni {
4441
4442
  * @returns IResponse
4442
4443
  */
4443
4444
  D(this, "getSeries", async (r) => {
4444
- var c;
4445
+ var s;
4445
4446
  return r.type !== j.SERIES ? (console.warn(
4446
4447
  "%capp%c %get",
4447
4448
  _.APP,
@@ -4454,7 +4455,7 @@ class Ni {
4454
4455
  data: null,
4455
4456
  message: `'wrong method call for getSeries, type used is ${r.type}`,
4456
4457
  success: !1
4457
- }) : await ((c = this.sm) == null ? void 0 : c.getSeries(r));
4458
+ }) : await ((s = this.sm) == null ? void 0 : s.getSeries(r));
4458
4459
  });
4459
4460
  switch (this.sm = null, r.storage) {
4460
4461
  case ge.DEXIE:
@@ -4483,7 +4484,7 @@ class Zi {
4483
4484
  * @param callbacks functions in the widget that will receive the update
4484
4485
  * @param selector container for the element - by default buzzcasting-slide (optional)
4485
4486
  */
4486
- constructor(r, c, l) {
4487
+ constructor(r, s, l) {
4487
4488
  D(this, "storageReader");
4488
4489
  D(this, "broadcastChannel");
4489
4490
  D(this, "element");
@@ -4570,19 +4571,19 @@ class Zi {
4570
4571
  * @param modal IModal
4571
4572
  */
4572
4573
  D(this, "showModal", (r) => {
4573
- const c = Ri(this.element.attributes);
4574
- if (Object.prototype.hasOwnProperty.call(c, "data-topics")) {
4575
- const k = c["data-topics"].split("-");
4576
- k.length > 1 ? (c["data-widget"] = k[1], c["data-dashboard"] = k[0]) : (c["data-widget"] = k[0], c["data-dashboard"] = this.query.slide);
4574
+ const s = Ri(this.element.attributes);
4575
+ if (Object.prototype.hasOwnProperty.call(s, "data-topics")) {
4576
+ const k = s["data-topics"].split("-");
4577
+ k.length > 1 ? (s["data-widget"] = k[1], s["data-dashboard"] = k[0]) : (s["data-widget"] = k[0], s["data-dashboard"] = this.query.slide);
4577
4578
  }
4578
- const l = { ...r.props, ...c };
4579
+ const l = { ...r.props, ...s };
4579
4580
  console.debug(
4580
4581
  "%cwidget",
4581
4582
  _.WIDGET,
4582
4583
  re.SHOW_MODAL,
4583
4584
  r.showComponent,
4584
4585
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
4585
- c["data-widget"]
4586
+ s["data-widget"]
4586
4587
  );
4587
4588
  const A = new CustomEvent(re.SHOW_MODAL, {
4588
4589
  detail: {
@@ -4597,7 +4598,7 @@ class Zi {
4597
4598
  window.dispatchEvent(A);
4598
4599
  });
4599
4600
  var N;
4600
- this.element = r, this.listeners = c, l = typeof l < "u" ? l : "buzzcasting-slide";
4601
+ this.element = r, this.listeners = s, l = typeof l < "u" ? l : "buzzcasting-slide";
4601
4602
  let A;
4602
4603
  A = { ...r.dataset }, delete A.hmr, A.slide = ((N = r.closest(l.toUpperCase())) == null ? void 0 : N.id) ?? `${l} not found`, A = rt(A), this.query = A, Ti(r);
4603
4604
  const k = window.BuzzCasting.getOptions();
@@ -4611,12 +4612,12 @@ class Zi {
4611
4612
  */
4612
4613
  startListener() {
4613
4614
  const r = this.query;
4614
- this.broadcastChannel.onmessage = async (c) => {
4615
- const l = c.data.data;
4616
- switch (c.data.event) {
4615
+ this.broadcastChannel.onmessage = async (s) => {
4616
+ const l = s.data.data;
4617
+ switch (s.data.event) {
4617
4618
  case re.WIDGET_UPDATE:
4618
4619
  l.query.slide === r.slide && l.query.widget === r.widget && this.listeners.forEach((A) => {
4619
- A(c.data.data);
4620
+ A(s.data.data);
4620
4621
  });
4621
4622
  break;
4622
4623
  case re.SLIDE_READY: