buzzcasting-storage 2.12.8 → 2.12.9

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,12 +1,12 @@
1
- var Ei = Object.defineProperty;
2
- var Oi = (p, i, u) => i in p ? Ei(p, i, { enumerable: !0, configurable: !0, writable: !0, value: u }) : p[i] = u;
3
- var D = (p, i, u) => (Oi(p, typeof i != "symbol" ? i + "" : i, u), u);
4
- const xi = "2.12.7";
5
- class ki {
1
+ var xi = Object.defineProperty;
2
+ var ki = (p, i, u) => i in p ? xi(p, i, { enumerable: !0, configurable: !0, writable: !0, value: u }) : p[i] = u;
3
+ var P = (p, i, u) => (ki(p, typeof i != "symbol" ? i + "" : i, u), u);
4
+ const Ai = "2.12.8";
5
+ class Pi {
6
6
  constructor(i) {
7
- D(this, "options");
8
- D(this, "url");
9
- D(this, "headers", () => {
7
+ P(this, "options");
8
+ P(this, "url");
9
+ P(this, "headers", () => {
10
10
  const i = `Bearer ${this.options.bearer}`;
11
11
  return {
12
12
  headers: new Headers({
@@ -16,7 +16,7 @@ class ki {
16
16
  })
17
17
  };
18
18
  });
19
- D(this, "formHeaders", () => {
19
+ P(this, "formHeaders", () => {
20
20
  const i = `Bearer ${this.options.bearer}`;
21
21
  return {
22
22
  headers: new Headers({
@@ -32,71 +32,73 @@ class ki {
32
32
  async get(i) {
33
33
  const { version: u } = this.options, f = this.headers(), k = Object.assign({}, i);
34
34
  delete k.slide, delete k.type, delete k.hash;
35
- const I = Object.keys(k).length > 0 ? `?${new URLSearchParams(k).toString()}` : "";
35
+ const R = Object.keys(k).length > 0 ? `?${new URLSearchParams(k).toString()}` : "";
36
36
  return console.debug(
37
37
  "%capi%c %cget",
38
- E.API,
39
- E.NONE,
40
- E.GET_DATA,
38
+ O.API,
39
+ O.NONE,
40
+ O.GET_DATA,
41
41
  i.slide,
42
42
  i.widget
43
43
  ), await fetch(
44
- [this.url, "api", u, i.type].join("/") + I,
44
+ [this.url, "api", u, i.type].join("/") + R,
45
45
  { ...f, method: "get" }
46
- ).then(async (K) => {
47
- if (!K.ok)
48
- throw new Error(`${K.status}`);
49
- return K;
50
- }).then((K) => K.json()).then((K) => (K.query = i, K)).catch((K) => ({ success: !1, message: `${K}`, data: null }));
46
+ ).then(async (j) => {
47
+ if (!j.ok)
48
+ throw new Error(`${j.status}`);
49
+ return j;
50
+ }).then((j) => j.json()).then((j) => (j.query = i, j)).catch((j) => ({ success: !1, message: `${j}`, data: null }));
51
51
  }
52
52
  async hideMessage(i) {
53
53
  const { version: u } = this.options, f = this.headers(), k = "?action=visible";
54
54
  return console.info(
55
55
  "%capi%c %cput",
56
- E.API,
57
- E.NONE,
58
- E.GET_DATA,
56
+ O.API,
57
+ O.NONE,
58
+ O.GET_DATA,
59
59
  se.HIDE_MESSAGE,
60
60
  i.widget,
61
61
  i.id
62
62
  ), await fetch(
63
63
  [this.url, "api", u, i.type, i.id].join("/") + k,
64
64
  { ...f, method: "put" }
65
- ).then((I) => {
66
- if (!I.ok)
67
- throw new Error(I.statusText);
68
- return I;
69
- }).then((I) => I.json()).catch((I) => ({ succes: !1, message: I, data: [] }));
65
+ ).then((R) => {
66
+ if (!R.ok)
67
+ throw new Error(R.statusText);
68
+ return R;
69
+ }).then((R) => R.json()).catch((R) => ({ succes: !1, message: R, data: [] }));
70
70
  }
71
71
  async hideLabels(i) {
72
- const { version: u } = this.options, f = this.formHeaders(), k = JSON.stringify(i.labels);
72
+ const { version: u } = this.options, f = this.formHeaders(), k = new URLSearchParams(), R = i.labels || [];
73
+ for (const [j, N] of R.entries())
74
+ k.append(`custom_filters[${j}]`, N);
73
75
  return console.info(
74
76
  "%capi%c %cput",
75
- E.API,
76
- E.NONE,
77
- E.GET_DATA,
77
+ O.API,
78
+ O.NONE,
79
+ O.GET_DATA,
78
80
  se.HIDE_LABELS,
79
81
  i.widget,
80
- k
82
+ R
81
83
  ), await fetch(
82
84
  [this.url, "api", u, i.type, i.widget].join("/"),
83
85
  { ...f, body: k, method: "put" }
84
- ).then((I) => {
85
- if (!I.ok)
86
- throw new Error(I.statusText);
87
- return I;
88
- }).then((I) => I.json()).catch((I) => ({ succes: !1, message: I, data: [] }));
86
+ ).then((j) => {
87
+ if (!j.ok)
88
+ throw new Error(j.statusText);
89
+ return j;
90
+ }).then((j) => j.json()).catch((j) => ({ succes: !1, message: j, data: [] }));
89
91
  }
90
92
  }
91
- var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
92
- function Ai(p) {
93
+ var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
94
+ function Di(p) {
93
95
  return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
94
96
  }
95
- var Rr = { exports: {} };
97
+ var Mr = { exports: {} };
96
98
  (function(p, i) {
97
99
  (function(u, f) {
98
100
  p.exports = f();
99
- })(Cr, function() {
101
+ })(Rr, function() {
100
102
  var u = function(e, t) {
101
103
  return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
102
104
  n.__proto__ = r;
@@ -118,53 +120,53 @@ var Rr = { exports: {} };
118
120
  !r && o in t || ((r = r || Array.prototype.slice.call(t, 0, o))[o] = t[o]);
119
121
  return e.concat(r || Array.prototype.slice.call(t));
120
122
  }
121
- var I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Cr, K = Object.keys, N = Array.isArray;
123
+ var R = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Rr, j = Object.keys, N = Array.isArray;
122
124
  function Z(e, t) {
123
- return typeof t != "object" || K(t).forEach(function(n) {
125
+ return typeof t != "object" || j(t).forEach(function(n) {
124
126
  e[n] = t[n];
125
127
  }), e;
126
128
  }
127
- typeof Promise > "u" || I.Promise || (I.Promise = Promise);
128
- var te = Object.getPrototypeOf, be = {}.hasOwnProperty;
129
+ typeof Promise > "u" || R.Promise || (R.Promise = Promise);
130
+ var te = Object.getPrototypeOf, me = {}.hasOwnProperty;
129
131
  function ie(e, t) {
130
- return be.call(e, t);
132
+ return me.call(e, t);
131
133
  }
132
134
  function xe(e, t) {
133
- typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? K : Reflect.ownKeys)(t).forEach(function(n) {
135
+ typeof t == "function" && (t = t(te(e))), (typeof Reflect > "u" ? j : Reflect.ownKeys)(t).forEach(function(n) {
134
136
  ke(e, n, t[n]);
135
137
  });
136
138
  }
137
- var zn = Object.defineProperty;
139
+ var Hn = Object.defineProperty;
138
140
  function ke(e, t, n, r) {
139
- zn(e, t, Z(n && ie(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r));
141
+ Hn(e, t, Z(n && ie(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r));
140
142
  }
141
143
  function ze(e) {
142
144
  return { from: function(t) {
143
145
  return e.prototype = Object.create(t.prototype), ke(e.prototype, "constructor", e), { extend: xe.bind(null, e.prototype) };
144
146
  } };
145
147
  }
146
- var Lr = Object.getOwnPropertyDescriptor, Fr = [].slice;
148
+ var $r = Object.getOwnPropertyDescriptor, Ur = [].slice;
147
149
  function wt(e, t, n) {
148
- return Fr.call(e, t, n);
150
+ return Ur.call(e, t, n);
149
151
  }
150
- function Hn(e, t) {
152
+ function Yn(e, t) {
151
153
  return t(e);
152
154
  }
153
155
  function rt(e) {
154
156
  if (!e)
155
157
  throw new Error("Assertion Failed");
156
158
  }
157
- function Yn(e) {
158
- I.setImmediate ? setImmediate(e) : setTimeout(e, 0);
159
+ function Qn(e) {
160
+ R.setImmediate ? setImmediate(e) : setTimeout(e, 0);
159
161
  }
160
- function ve(e, t) {
162
+ function be(e, t) {
161
163
  if (typeof t == "string" && ie(e, t))
162
164
  return e[t];
163
165
  if (!t)
164
166
  return e;
165
167
  if (typeof t != "string") {
166
168
  for (var n = [], r = 0, o = t.length; r < o; ++r) {
167
- var a = ve(e, t[r]);
169
+ var a = be(e, t[r]);
168
170
  n.push(a);
169
171
  }
170
172
  return n;
@@ -172,38 +174,38 @@ var Rr = { exports: {} };
172
174
  var s = t.indexOf(".");
173
175
  if (s !== -1) {
174
176
  var c = e[t.substr(0, s)];
175
- return c == null ? void 0 : ve(c, t.substr(s + 1));
177
+ return c == null ? void 0 : be(c, t.substr(s + 1));
176
178
  }
177
179
  }
178
- function fe(e, t, n) {
180
+ function ce(e, t, n) {
179
181
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e)))
180
182
  if (typeof t != "string" && "length" in t) {
181
183
  rt(typeof n != "string" && "length" in n);
182
184
  for (var r = 0, o = t.length; r < o; ++r)
183
- fe(e, t[r], n[r]);
185
+ ce(e, t[r], n[r]);
184
186
  } else {
185
187
  var a, s, c = t.indexOf(".");
186
- c !== -1 ? (a = t.substr(0, c), (s = t.substr(c + 1)) === "" ? n === void 0 ? N(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : fe(c = !(c = e[a]) || !ie(e, a) ? e[a] = {} : c, s, n)) : n === void 0 ? N(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
188
+ c !== -1 ? (a = t.substr(0, c), (s = t.substr(c + 1)) === "" ? n === void 0 ? N(e) && !isNaN(parseInt(a)) ? e.splice(a, 1) : delete e[a] : e[a] = n : ce(c = !(c = e[a]) || !ie(e, a) ? e[a] = {} : c, s, n)) : n === void 0 ? N(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
187
189
  }
188
190
  }
189
- function Qn(e) {
191
+ function Xn(e) {
190
192
  var t, n = {};
191
193
  for (t in e)
192
194
  ie(e, t) && (n[t] = e[t]);
193
195
  return n;
194
196
  }
195
- var $r = [].concat;
196
- function Xn(e) {
197
- return $r.apply([], e);
197
+ var Wr = [].concat;
198
+ function Vn(e) {
199
+ return Wr.apply([], e);
198
200
  }
199
- var ge = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Xn([8, 16, 32, 64].map(function(e) {
201
+ var _e = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Vn([8, 16, 32, 64].map(function(e) {
200
202
  return ["Int", "Uint", "Float"].map(function(t) {
201
203
  return t + e + "Array";
202
204
  });
203
205
  }))).filter(function(e) {
204
- return I[e];
205
- }), Vn = new Set(ge.map(function(e) {
206
- return I[e];
206
+ return R[e];
207
+ }), Jn = new Set(_e.map(function(e) {
208
+ return R[e];
207
209
  })), it = null;
208
210
  function Ae(e) {
209
211
  return it = /* @__PURE__ */ new WeakMap(), e = function t(n) {
@@ -216,7 +218,7 @@ var Rr = { exports: {} };
216
218
  r = [], it.set(n, r);
217
219
  for (var o = 0, a = n.length; o < a; ++o)
218
220
  r.push(t(n[o]));
219
- } else if (Vn.has(n.constructor))
221
+ } else if (Jn.has(n.constructor))
220
222
  r = n;
221
223
  else {
222
224
  var s, c = te(n);
@@ -226,11 +228,11 @@ var Rr = { exports: {} };
226
228
  return r;
227
229
  }(e), it = null, e;
228
230
  }
229
- var Ur = {}.toString;
231
+ var zr = {}.toString;
230
232
  function Jt(e) {
231
- return Ur.call(e).slice(8, -1);
233
+ return zr.call(e).slice(8, -1);
232
234
  }
233
- var Zt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", Wr = typeof Zt == "symbol" ? function(e) {
235
+ var Zt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", Hr = typeof Zt == "symbol" ? function(e) {
234
236
  var t;
235
237
  return e != null && (t = e[Zt]) && t.apply(e);
236
238
  } : function() {
@@ -240,14 +242,14 @@ var Rr = { exports: {} };
240
242
  return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
241
243
  }
242
244
  var He = {};
243
- function we(e) {
245
+ function ve(e) {
244
246
  var t, n, r, o;
245
247
  if (arguments.length === 1) {
246
248
  if (N(e))
247
249
  return e.slice();
248
250
  if (this === He && typeof e == "string")
249
251
  return [e];
250
- if (o = Wr(e)) {
252
+ if (o = Hr(e)) {
251
253
  for (n = []; !(r = o.next()).done; )
252
254
  n.push(r.value);
253
255
  return n;
@@ -268,11 +270,11 @@ var Rr = { exports: {} };
268
270
  return e[Symbol.toStringTag] === "AsyncFunction";
269
271
  } : function() {
270
272
  return !1;
271
- }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], de = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), zr = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
273
+ }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], de = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), Yr = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
272
274
  function Ye(e, t) {
273
275
  this.name = e, this.message = t;
274
276
  }
275
- function Jn(e, t) {
277
+ function Zn(e, t) {
276
278
  return e + ". Errors: " + Object.keys(t).map(function(n) {
277
279
  return t[n].toString();
278
280
  }).filter(function(n, r, o) {
@@ -281,28 +283,28 @@ var Rr = { exports: {} };
281
283
  `);
282
284
  }
283
285
  function _t(e, t, n, r) {
284
- this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Jn(e, t);
286
+ this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Zn(e, t);
285
287
  }
286
288
  function Qe(e, t) {
287
289
  this.name = "BulkError", this.failures = Object.keys(t).map(function(n) {
288
290
  return t[n];
289
- }), this.failuresByPos = t, this.message = Jn(e, this.failures);
291
+ }), this.failuresByPos = t, this.message = Zn(e, this.failures);
290
292
  }
291
293
  ze(Ye).from(Error).extend({ toString: function() {
292
294
  return this.name + ": " + this.message;
293
295
  } }), ze(_t).from(Ye), ze(Qe).from(Ye);
294
296
  var en = de.reduce(function(e, t) {
295
297
  return e[t] = t + "Error", e;
296
- }, {}), Hr = Ye, L = de.reduce(function(e, t) {
298
+ }, {}), Qr = Ye, L = de.reduce(function(e, t) {
297
299
  var n = t + "Error";
298
300
  function r(o, a) {
299
301
  this.name = n, o ? typeof o == "string" ? (this.message = "".concat(o).concat(a ? `
300
- ` + a : ""), this.inner = a || null) : typeof o == "object" && (this.message = "".concat(o.name, " ").concat(o.message), this.inner = o) : (this.message = zr[t] || n, this.inner = null);
302
+ ` + a : ""), this.inner = a || null) : typeof o == "object" && (this.message = "".concat(o.name, " ").concat(o.message), this.inner = o) : (this.message = Yr[t] || n, this.inner = null);
301
303
  }
302
- return ze(r).from(Hr), e[t] = r, e;
304
+ return ze(r).from(Qr), e[t] = r, e;
303
305
  }, {});
304
306
  L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
305
- var Zn = st.reduce(function(e, t) {
307
+ var qn = st.reduce(function(e, t) {
306
308
  return e[t + "Error"] = L[t], e;
307
309
  }, {}), St = de.reduce(function(e, t) {
308
310
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = L[t]), e;
@@ -312,7 +314,7 @@ var Rr = { exports: {} };
312
314
  function ot(e) {
313
315
  return e;
314
316
  }
315
- function Yr(e, t) {
317
+ function Xr(e, t) {
316
318
  return e == null || e === ot ? t : function(n) {
317
319
  return t(e(n));
318
320
  };
@@ -322,7 +324,7 @@ var Rr = { exports: {} };
322
324
  e.apply(this, arguments), t.apply(this, arguments);
323
325
  };
324
326
  }
325
- function Qr(e, t) {
327
+ function Vr(e, t) {
326
328
  return e === Y ? t : function() {
327
329
  var n = e.apply(this, arguments);
328
330
  n !== void 0 && (arguments[0] = n);
@@ -332,14 +334,14 @@ var Rr = { exports: {} };
332
334
  return r && (this.onsuccess = this.onsuccess ? Ke(r, this.onsuccess) : r), o && (this.onerror = this.onerror ? Ke(o, this.onerror) : o), a !== void 0 ? a : n;
333
335
  };
334
336
  }
335
- function Xr(e, t) {
337
+ function Jr(e, t) {
336
338
  return e === Y ? t : function() {
337
339
  e.apply(this, arguments);
338
340
  var n = this.onsuccess, r = this.onerror;
339
341
  this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ke(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? Ke(r, this.onerror) : r);
340
342
  };
341
343
  }
342
- function Vr(e, t) {
344
+ function Zr(e, t) {
343
345
  return e === Y ? t : function(n) {
344
346
  var r = e.apply(this, arguments);
345
347
  Z(n, r);
@@ -347,7 +349,7 @@ var Rr = { exports: {} };
347
349
  return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), o && (this.onsuccess = this.onsuccess ? Ke(o, this.onsuccess) : o), a && (this.onerror = this.onerror ? Ke(a, this.onerror) : a), r === void 0 ? n === void 0 ? void 0 : n : Z(r, n);
348
350
  };
349
351
  }
350
- function Jr(e, t) {
352
+ function qr(e, t) {
351
353
  return e === Y ? t : function() {
352
354
  return t.apply(this, arguments) !== !1 && e.apply(this, arguments);
353
355
  };
@@ -367,18 +369,18 @@ var Rr = { exports: {} };
367
369
  }
368
370
  St.ModifyError = _t, St.DexieError = Ye, St.BulkError = Qe;
369
371
  var pe = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
370
- function qn(e) {
372
+ function er(e) {
371
373
  pe = e;
372
374
  }
373
- var at = {}, er = 100, ge = typeof Promise > "u" ? [] : function() {
375
+ var at = {}, tr = 100, _e = typeof Promise > "u" ? [] : function() {
374
376
  var e = Promise.resolve();
375
377
  if (typeof crypto > "u" || !crypto.subtle)
376
378
  return [e, te(e), e];
377
379
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
378
380
  return [t, te(t), e];
379
- }(), st = ge[0], de = ge[1], ge = ge[2], de = de && de.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
380
- lt.push([e, t]), Et && (queueMicrotask(qr), Et = !1);
381
- }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Y, pgp: !1, env: {}, finalize: Y }, B = De, lt = [], Ne = 0, xt = [];
381
+ }(), st = _e[0], de = _e[1], _e = _e[2], de = de && de.then, ut = st && st.constructor, nn = !!_e, ct = function(e, t) {
382
+ lt.push([e, t]), Et && (queueMicrotask(ti), Et = !1);
383
+ }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Y, pgp: !1, env: {}, finalize: Y }, B = Pe, lt = [], Ne = 0, xt = [];
382
384
  function M(e) {
383
385
  if (typeof this != "object")
384
386
  throw new TypeError("Promises must be constructed via new");
@@ -398,7 +400,7 @@ var Rr = { exports: {} };
398
400
  var s = r._lib && Xe();
399
401
  a && typeof a.then == "function" ? n(r, function(c, g) {
400
402
  a instanceof M ? a._then(c, g) : a.then(c, g);
401
- }) : (r._state = !0, r._value = a, nr(r)), s && Ve();
403
+ }) : (r._state = !0, r._value = a, rr(r)), s && Ve();
402
404
  }
403
405
  }, sn.bind(null, r));
404
406
  } catch (a) {
@@ -407,10 +409,10 @@ var Rr = { exports: {} };
407
409
  }(this, e);
408
410
  }
409
411
  var an = { get: function() {
410
- var e = B, t = Pt;
412
+ var e = B, t = Dt;
411
413
  function n(r, o) {
412
- var a = this, s = !e.global && (e !== B || t !== Pt), c = s && !Ce(), g = new M(function(d, v) {
413
- un(a, new tr(ir(r, e, s, c), ir(o, e, s, c), d, v, e));
414
+ var a = this, s = !e.global && (e !== B || t !== Dt), c = s && !Ie(), g = new M(function(d, v) {
415
+ un(a, new nr(or(r, e, s, c), or(o, e, s, c), d, v, e));
414
416
  });
415
417
  return this._consoleTask && (g._consoleTask = this._consoleTask), g;
416
418
  }
@@ -420,16 +422,16 @@ var Rr = { exports: {} };
420
422
  return e;
421
423
  }, set: an.set });
422
424
  } };
423
- function tr(e, t, n, r, o) {
425
+ function nr(e, t, n, r, o) {
424
426
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.resolve = n, this.reject = r, this.psd = o;
425
427
  }
426
428
  function sn(e, t) {
427
429
  var n, r;
428
430
  Ot.push(t), e._state === null && (n = e._lib && Xe(), t = on(t), e._state = !1, e._value = t, r = e, Be.some(function(o) {
429
431
  return o._value === r._value;
430
- }) || Be.push(r), nr(e), n && Ve());
432
+ }) || Be.push(r), rr(e), n && Ve());
431
433
  }
432
- function nr(e) {
434
+ function rr(e) {
433
435
  var t = e._listeners;
434
436
  e._listeners = [];
435
437
  for (var n = 0, r = t.length; n < r; ++n)
@@ -444,11 +446,11 @@ var Rr = { exports: {} };
444
446
  var n = e._state ? t.onFulfilled : t.onRejected;
445
447
  if (n === null)
446
448
  return (e._state ? t.resolve : t.reject)(e._value);
447
- ++t.psd.ref, ++Ne, ct(Zr, [n, e, t]);
449
+ ++t.psd.ref, ++Ne, ct(ei, [n, e, t]);
448
450
  } else
449
451
  e._listeners.push(t);
450
452
  }
451
- function Zr(e, t, n) {
453
+ function ei(e, t, n) {
452
454
  try {
453
455
  var r, o = t._value;
454
456
  !t._state && Ot.length && (Ot = []), r = pe && t._consoleTask ? t._consoleTask.run(function() {
@@ -464,8 +466,8 @@ var Rr = { exports: {} };
464
466
  --Ne == 0 && cn(), --n.psd.ref || n.psd.finalize();
465
467
  }
466
468
  }
467
- function qr() {
468
- Ge(De, function() {
469
+ function ti() {
470
+ Ge(Pe, function() {
469
471
  Xe() && Ve();
470
472
  });
471
473
  }
@@ -500,16 +502,16 @@ var Rr = { exports: {} };
500
502
  return function() {
501
503
  var r = Xe(), o = B;
502
504
  try {
503
- return Ie(n, !0), e.apply(this, arguments);
505
+ return Ce(n, !0), e.apply(this, arguments);
504
506
  } catch (a) {
505
507
  t && t(a);
506
508
  } finally {
507
- Ie(o, !1), r && Ve();
509
+ Ce(o, !1), r && Ve();
508
510
  }
509
511
  };
510
512
  }
511
513
  xe(M.prototype, { then: an, _then: function(e, t) {
512
- un(this, new tr(null, null, e, t, B));
514
+ un(this, new nr(null, null, e, t, B));
513
515
  }, catch: function(e) {
514
516
  if (arguments.length === 1)
515
517
  return this.then(null, e);
@@ -537,8 +539,8 @@ var Rr = { exports: {} };
537
539
  }, e);
538
540
  n.then(r, o).finally(clearTimeout.bind(null, a));
539
541
  }) : this;
540
- } }), typeof Symbol < "u" && Symbol.toStringTag && ke(M.prototype, Symbol.toStringTag, "Dexie.Promise"), De.env = rr(), xe(M, { all: function() {
541
- var e = we.apply(null, arguments).map(Ct);
542
+ } }), typeof Symbol < "u" && Symbol.toStringTag && ke(M.prototype, Symbol.toStringTag, "Dexie.Promise"), Pe.env = ir(), xe(M, { all: function() {
543
+ var e = ve.apply(null, arguments).map(It);
542
544
  return new M(function(t, n) {
543
545
  e.length === 0 && t([]);
544
546
  var r = e.length;
@@ -553,7 +555,7 @@ var Rr = { exports: {} };
553
555
  e.then(t, n);
554
556
  }) : new M(at, !0, e);
555
557
  }, reject: kt, race: function() {
556
- var e = we.apply(null, arguments).map(Ct);
558
+ var e = ve.apply(null, arguments).map(It);
557
559
  return new M(function(t, n) {
558
560
  e.map(function(r) {
559
561
  return M.resolve(r).then(t, n);
@@ -564,8 +566,8 @@ var Rr = { exports: {} };
564
566
  }, set: function(e) {
565
567
  return B = e;
566
568
  } }, totalEchoes: { get: function() {
567
- return Pt;
568
- } }, newPSD: Pe, usePSD: Ge, scheduler: { get: function() {
569
+ return Dt;
570
+ } }, newPSD: De, usePSD: Ge, scheduler: { get: function() {
569
571
  return ct;
570
572
  }, set: function(e) {
571
573
  ct = e;
@@ -575,7 +577,7 @@ var Rr = { exports: {} };
575
577
  on = e;
576
578
  } }, follow: function(e, t) {
577
579
  return new M(function(n, r) {
578
- return Pe(function(o, a) {
580
+ return De(function(o, a) {
579
581
  var s = B;
580
582
  s.unhandleds = [], s.onunhandled = a, s.finalize = Ke(function() {
581
583
  var c, g = this;
@@ -590,7 +592,7 @@ var Rr = { exports: {} };
590
592
  }, t, n, r);
591
593
  });
592
594
  } }), ut && (ut.allSettled && ke(M, "allSettled", function() {
593
- var e = we.apply(null, arguments).map(Ct);
595
+ var e = ve.apply(null, arguments).map(It);
594
596
  return new M(function(t) {
595
597
  e.length === 0 && t([]);
596
598
  var n = e.length, r = new Array(n);
@@ -605,7 +607,7 @@ var Rr = { exports: {} };
605
607
  });
606
608
  });
607
609
  }), ut.any && typeof AggregateError < "u" && ke(M, "any", function() {
608
- var e = we.apply(null, arguments).map(Ct);
610
+ var e = ve.apply(null, arguments).map(It);
609
611
  return new M(function(t, n) {
610
612
  e.length === 0 && n(new AggregateError([]));
611
613
  var r = e.length, o = new Array(r);
@@ -618,70 +620,70 @@ var Rr = { exports: {} };
618
620
  });
619
621
  });
620
622
  }));
621
- var ne = { awaits: 0, echoes: 0, id: 0 }, ei = 0, At = [], Dt = 0, Pt = 0, ti = 0;
622
- function Pe(e, t, n, r) {
623
+ var ne = { awaits: 0, echoes: 0, id: 0 }, ni = 0, At = [], Pt = 0, Dt = 0, ri = 0;
624
+ function De(e, t, n, r) {
623
625
  var o = B, a = Object.create(o);
624
- return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ti, De.env, a.env = nn ? { Promise: M, PromiseProp: { value: M, configurable: !0, writable: !0 }, all: M.all, race: M.race, allSettled: M.allSettled, any: M.any, resolve: M.resolve, reject: M.reject } : {}, t && Z(a, t), ++o.ref, a.finalize = function() {
626
+ return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ri, Pe.env, a.env = nn ? { Promise: M, PromiseProp: { value: M, configurable: !0, writable: !0 }, all: M.all, race: M.race, allSettled: M.allSettled, any: M.any, resolve: M.resolve, reject: M.reject } : {}, t && Z(a, t), ++o.ref, a.finalize = function() {
625
627
  --this.parent.ref || this.parent.finalize();
626
628
  }, r = Ge(a, e, n, r), a.ref === 0 && a.finalize(), r;
627
629
  }
628
630
  function Je() {
629
- return ne.id || (ne.id = ++ei), ++ne.awaits, ne.echoes += er, ne.id;
631
+ return ne.id || (ne.id = ++ni), ++ne.awaits, ne.echoes += tr, ne.id;
630
632
  }
631
- function Ce() {
632
- return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * er, !0);
633
+ function Ie() {
634
+ return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * tr, !0);
633
635
  }
634
- function Ct(e) {
636
+ function It(e) {
635
637
  return ne.echoes && e && e.constructor === ut ? (Je(), e.then(function(t) {
636
- return Ce(), t;
638
+ return Ie(), t;
637
639
  }, function(t) {
638
- return Ce(), q(t);
640
+ return Ie(), q(t);
639
641
  })) : e;
640
642
  }
641
- function ni() {
643
+ function ii() {
642
644
  var e = At[At.length - 1];
643
- At.pop(), Ie(e, !1);
645
+ At.pop(), Ce(e, !1);
644
646
  }
645
- function Ie(e, t) {
647
+ function Ce(e, t) {
646
648
  var n, r = B;
647
- (t ? !ne.echoes || Dt++ && e === B : !Dt || --Dt && e === B) || queueMicrotask(t ? (function(o) {
648
- ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(B), Ie(o, !0);
649
- }).bind(null, e) : ni), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(I, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
649
+ (t ? !ne.echoes || Pt++ && e === B : !Pt || --Pt && e === B) || queueMicrotask(t ? (function(o) {
650
+ ++Dt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(B), Ce(o, !0);
651
+ }).bind(null, e) : ii), e !== B && (B = e, r === Pe && (Pe.env = ir()), nn && (n = Pe.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(R, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
650
652
  }
651
- function rr() {
652
- var e = I.Promise;
653
- return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(I, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
653
+ function ir() {
654
+ var e = R.Promise;
655
+ return nn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(R, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
654
656
  }
655
657
  function Ge(e, t, n, r, o) {
656
658
  var a = B;
657
659
  try {
658
- return Ie(e, !0), t(n, r, o);
660
+ return Ce(e, !0), t(n, r, o);
659
661
  } finally {
660
- Ie(a, !1);
662
+ Ce(a, !1);
661
663
  }
662
664
  }
663
- function ir(e, t, n, r) {
665
+ function or(e, t, n, r) {
664
666
  return typeof e != "function" ? e : function() {
665
667
  var o = B;
666
- n && Je(), Ie(t, !0);
668
+ n && Je(), Ce(t, !0);
667
669
  try {
668
670
  return e.apply(this, arguments);
669
671
  } finally {
670
- Ie(o, !1), r && queueMicrotask(Ce);
672
+ Ce(o, !1), r && queueMicrotask(Ie);
671
673
  }
672
674
  };
673
675
  }
674
676
  function ln(e) {
675
- Promise === ut && ne.echoes === 0 ? Dt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
677
+ Promise === ut && ne.echoes === 0 ? Pt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
676
678
  }
677
- ("" + de).indexOf("[native code]") === -1 && (Je = Ce = Y);
678
- var q = M.reject, ge = "4.0.1-beta.10", Le = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", Ze = [], It = "__dbnames", fn = "readonly", dn = "readwrite";
679
+ ("" + de).indexOf("[native code]") === -1 && (Je = Ie = Y);
680
+ var q = M.reject, Le = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ar = "String expected.", Ze = [], Ct = "__dbnames", fn = "readonly", dn = "readwrite";
679
681
  function Fe(e, t) {
680
682
  return e ? t ? function() {
681
683
  return e.apply(this, arguments) && t.apply(this, arguments);
682
684
  } : e : t;
683
685
  }
684
- var ar = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
686
+ var sr = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
685
687
  function Rt(e) {
686
688
  return typeof e != "string" || /\./.test(e) ? function(t) {
687
689
  return t;
@@ -689,12 +691,12 @@ var Rr = { exports: {} };
689
691
  return t[e] === void 0 && e in t && delete (t = Ae(t))[e], t;
690
692
  };
691
693
  }
692
- function sr() {
694
+ function ur() {
693
695
  throw L.Type();
694
696
  }
695
697
  function z(e, t) {
696
698
  try {
697
- var n = ur(e), r = ur(t);
699
+ var n = cr(e), r = cr(t);
698
700
  if (n !== r)
699
701
  return n === "Array" ? 1 : r === "Array" ? -1 : n === "binary" ? 1 : r === "binary" ? -1 : n === "string" ? 1 : r === "string" ? -1 : n === "Date" ? 1 : r !== "Date" ? NaN : -1;
700
702
  switch (n) {
@@ -708,7 +710,7 @@ var Rr = { exports: {} };
708
710
  if (o[d] !== a[d])
709
711
  return o[d] < a[d] ? -1 : 1;
710
712
  return s === c ? 0 : s < c ? -1 : 1;
711
- }(cr(e), cr(t));
713
+ }(lr(e), lr(t));
712
714
  case "Array":
713
715
  return function(o, a) {
714
716
  for (var s = o.length, c = a.length, g = s < c ? s : c, d = 0; d < g; ++d) {
@@ -723,14 +725,14 @@ var Rr = { exports: {} };
723
725
  }
724
726
  return NaN;
725
727
  }
726
- function ur(e) {
728
+ function cr(e) {
727
729
  var t = typeof e;
728
730
  return t != "object" ? t : ArrayBuffer.isView(e) ? "binary" : (e = Jt(e), e === "ArrayBuffer" ? "binary" : e);
729
731
  }
730
- function cr(e) {
732
+ function lr(e) {
731
733
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
732
734
  }
733
- var lr = (X.prototype._trans = function(e, t, n) {
735
+ var fr = (X.prototype._trans = function(e, t, n) {
734
736
  var r = this._tx || B.trans, o = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
735
737
  function s(d, v, l) {
736
738
  if (!l.schema[o])
@@ -739,7 +741,7 @@ var Rr = { exports: {} };
739
741
  }
740
742
  var c = Xe();
741
743
  try {
742
- var g = r && r.db._novip === this.db._novip ? r === B.trans ? r._promise(e, s, n) : Pe(function() {
744
+ var g = r && r.db._novip === this.db._novip ? r === B.trans ? r._promise(e, s, n) : De(function() {
743
745
  return r._promise(e, s, n);
744
746
  }, { trans: r, transless: B.transless || B }) : function d(v, l, h, y) {
745
747
  if (v.idbdb && (v._state.openComplete || B.letThrough || v._vip)) {
@@ -752,7 +754,7 @@ var Rr = { exports: {} };
752
754
  })) : q(w);
753
755
  }
754
756
  return b._promise(l, function(w, m) {
755
- return Pe(function() {
757
+ return De(function() {
756
758
  return B.trans = b, y(w, m, b);
757
759
  });
758
760
  }).then(function(w) {
@@ -795,7 +797,7 @@ var Rr = { exports: {} };
795
797
  return new this.db.WhereClause(this, e);
796
798
  if (N(e))
797
799
  return new this.db.WhereClause(this, "[".concat(e.join("+"), "]"));
798
- var t = K(e);
800
+ var t = j(e);
799
801
  if (t.length === 1)
800
802
  return this.where(t[0]).equals(e[t[0]]);
801
803
  var n = this.schema.indexes.concat(this.schema.primKey).filter(function(g) {
@@ -825,11 +827,11 @@ var Rr = { exports: {} };
825
827
  var c = t.reduce(function(h, d) {
826
828
  var v = h[0], l = h[1], h = r[d], y = e[d];
827
829
  return [v || h, v || !h ? Fe(l, h && h.multi ? function(b) {
828
- return b = ve(b, d), N(b) && b.some(function(w) {
830
+ return b = be(b, d), N(b) && b.some(function(w) {
829
831
  return a(y, w);
830
832
  });
831
833
  } : function(b) {
832
- return a(y, ve(b, d));
834
+ return a(y, be(b, d));
833
835
  }) : l];
834
836
  }, [null, null]), s = c[0], c = c[1];
835
837
  return s ? this.where(s.name).equals(e[s.keyPath]).filter(c) : n ? this.filter(c) : this.where(t).equals("");
@@ -856,7 +858,7 @@ var Rr = { exports: {} };
856
858
  function o() {
857
859
  return t !== null && t.apply(this, arguments) || this;
858
860
  }
859
- (this.schema.mappedClass = e).prototype instanceof sr && (function(g, d) {
861
+ (this.schema.mappedClass = e).prototype instanceof ur && (function(g, d) {
860
862
  if (typeof d != "function" && d !== null)
861
863
  throw new TypeError("Class extends value " + String(d) + " is not a constructor or null");
862
864
  function v() {
@@ -898,13 +900,13 @@ var Rr = { exports: {} };
898
900
  }).then(function(c) {
899
901
  if (a)
900
902
  try {
901
- fe(e, a, c);
903
+ ce(e, a, c);
902
904
  } catch {
903
905
  }
904
906
  return c;
905
907
  });
906
908
  }, X.prototype.update = function(e, t) {
907
- return typeof e != "object" || N(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new L.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
909
+ return typeof e != "object" || N(e) ? this.where(":id").equals(e).modify(t) : (e = be(e, this.schema.primKey.keyPath), e === void 0 ? q(new L.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
908
910
  }, X.prototype.put = function(e, t) {
909
911
  var n = this, r = this.schema.primKey, o = r.auto, a = r.keyPath, s = e;
910
912
  return a && o && (s = Rt(a)(e)), this._trans("readwrite", function(c) {
@@ -914,7 +916,7 @@ var Rr = { exports: {} };
914
916
  }).then(function(c) {
915
917
  if (a)
916
918
  try {
917
- fe(e, a, c);
919
+ ce(e, a, c);
918
920
  } catch {
919
921
  }
920
922
  return c;
@@ -929,7 +931,7 @@ var Rr = { exports: {} };
929
931
  }, X.prototype.clear = function() {
930
932
  var e = this;
931
933
  return this._trans("readwrite", function(t) {
932
- return e.core.mutate({ trans: t, type: "deleteRange", range: ar });
934
+ return e.core.mutate({ trans: t, type: "deleteRange", range: sr });
933
935
  }).then(function(t) {
934
936
  return t.numFailures ? M.reject(t.failures[0]) : void 0;
935
937
  });
@@ -987,12 +989,12 @@ var Rr = { exports: {} };
987
989
  var y = l.key, b = l.changes, w = c[h];
988
990
  if (w) {
989
991
  for (var m = 0, _ = Object.keys(b); m < _.length; m++) {
990
- var S = _[m], O = b[S];
992
+ var S = _[m], E = b[S];
991
993
  if (S === t.schema.primKey.keyPath) {
992
- if (z(O, y) !== 0)
994
+ if (z(E, y) !== 0)
993
995
  throw new L.Constraint("Cannot update primary key in bulkUpdate()");
994
996
  } else
995
- fe(w, S, O);
997
+ ce(w, S, E);
996
998
  }
997
999
  a.push(h), g.push(y), d.push(w);
998
1000
  }
@@ -1041,7 +1043,7 @@ var Rr = { exports: {} };
1041
1043
  function a(s, c, g) {
1042
1044
  if (typeof s != "object") {
1043
1045
  var d;
1044
- c = c || Jr;
1046
+ c = c || qr;
1045
1047
  var v = { subscribers: [], fire: g = g || Y, subscribe: function(l) {
1046
1048
  v.subscribers.indexOf(l) === -1 && (v.subscribers.push(l), v.fire = c(v.fire, l));
1047
1049
  }, unsubscribe: function(l) {
@@ -1051,7 +1053,7 @@ var Rr = { exports: {} };
1051
1053
  } };
1052
1054
  return n[s] = t[s] = v;
1053
1055
  }
1054
- K(d = s).forEach(function(l) {
1056
+ j(d = s).forEach(function(l) {
1055
1057
  var h = d[l];
1056
1058
  if (N(h))
1057
1059
  a(l, d[l][0], d[l][1]);
@@ -1062,7 +1064,7 @@ var Rr = { exports: {} };
1062
1064
  for (var b = arguments.length, w = new Array(b); b--; )
1063
1065
  w[b] = arguments[b];
1064
1066
  y.subscribers.forEach(function(m) {
1065
- Yn(function() {
1067
+ Qn(function() {
1066
1068
  m.apply(null, w);
1067
1069
  });
1068
1070
  });
@@ -1094,7 +1096,7 @@ var Rr = { exports: {} };
1094
1096
  throw new L.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1095
1097
  return n;
1096
1098
  }
1097
- function fr(e, t, n) {
1099
+ function dr(e, t, n) {
1098
1100
  var r = Tt(e, t.schema);
1099
1101
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: r, range: e.range } });
1100
1102
  }
@@ -1109,11 +1111,11 @@ var Rr = { exports: {} };
1109
1111
  return g.fail(h);
1110
1112
  }) || ((l = "" + (v = g.primaryKey)) == "[object ArrayBuffer]" && (l = "" + new Uint8Array(v)), ie(a, l) || (a[l] = !0, t(c, g, d)));
1111
1113
  };
1112
- return Promise.all([e.or._iterate(s, n), dr(fr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1114
+ return Promise.all([e.or._iterate(s, n), hr(dr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1113
1115
  }
1114
- return dr(fr(e, r, n), Fe(e.algorithm, o), t, !e.keysOnly && e.valueMapper);
1116
+ return hr(dr(e, r, n), Fe(e.algorithm, o), t, !e.keysOnly && e.valueMapper);
1115
1117
  }
1116
- function dr(e, t, n, r) {
1118
+ function hr(e, t, n, r) {
1117
1119
  var o = J(r ? function(a, s, c) {
1118
1120
  return n(r(a), s, c);
1119
1121
  } : n);
@@ -1135,7 +1137,14 @@ var Rr = { exports: {} };
1135
1137
  });
1136
1138
  });
1137
1139
  }
1138
- var ri = (W.prototype._read = function(e, t) {
1140
+ var _e = Symbol(), gn = (pr.prototype.execute = function(e) {
1141
+ var t = (t = this.replacePrefix) === null || t === void 0 ? void 0 : t[0];
1142
+ return t && typeof e == "string" && e.startsWith(t) ? this.replacePrefix[1] + e.substring(t.length) : e;
1143
+ }, pr);
1144
+ function pr(e) {
1145
+ Object.assign(this, e);
1146
+ }
1147
+ var oi = (W.prototype._read = function(e, t) {
1139
1148
  var n = this._ctx;
1140
1149
  return n.error ? n.table._trans(null, q.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
1141
1150
  }, W.prototype._write = function(e) {
@@ -1303,45 +1312,45 @@ var Rr = { exports: {} };
1303
1312
  var t = this, n = this._ctx;
1304
1313
  return this._write(function(r) {
1305
1314
  var o, a, s;
1306
- s = typeof e == "function" ? e : (o = K(e), a = o.length, function(m) {
1315
+ s = typeof e == "function" ? e : (o = j(e), a = o.length, function(m) {
1307
1316
  for (var _ = !1, S = 0; S < a; ++S) {
1308
- var O = o[S], x = e[O];
1309
- ve(m, O) !== x && (fe(m, O, x), _ = !0);
1317
+ var E = o[S], x = e[E], A = be(m, E);
1318
+ x instanceof gn ? (ce(m, E, x.execute(A)), _ = !0) : A !== x && (ce(m, E, x), _ = !0);
1310
1319
  }
1311
1320
  return _;
1312
1321
  });
1313
- function c(m, O) {
1314
- var S = O.failures, O = O.numFailures;
1315
- b += m - O;
1316
- for (var x = 0, A = K(S); x < A.length; x++) {
1317
- var R = A[x];
1318
- y.push(S[R]);
1322
+ function c(m, E) {
1323
+ var S = E.failures, E = E.numFailures;
1324
+ b += m - E;
1325
+ for (var x = 0, A = j(S); x < A.length; x++) {
1326
+ var C = A[x];
1327
+ y.push(S[C]);
1319
1328
  }
1320
1329
  }
1321
1330
  var g = n.table.core, d = g.schema.primaryKey, v = d.outbound, l = d.extractKey, h = t.db._options.modifyChunkSize || 200, y = [], b = 0, w = [];
1322
1331
  return t.clone().primaryKeys().then(function(m) {
1323
1332
  function _(S) {
1324
- var O = Math.min(h, m.length - S);
1325
- return g.getMany({ trans: r, keys: m.slice(S, S + O), cache: "immutable" }).then(function(x) {
1326
- for (var A = [], R = [], P = v ? [] : null, T = [], C = 0; C < O; ++C) {
1327
- var G = x[C], F = { value: Ae(G), primKey: m[S + C] };
1328
- s.call(F, F.value, F) !== !1 && (F.value == null ? T.push(m[S + C]) : v || z(l(G), l(F.value)) === 0 ? (R.push(F.value), v && P.push(m[S + C])) : (T.push(m[S + C]), A.push(F.value)));
1333
+ var E = Math.min(h, m.length - S);
1334
+ return g.getMany({ trans: r, keys: m.slice(S, S + E), cache: "immutable" }).then(function(x) {
1335
+ for (var A = [], C = [], D = v ? [] : null, T = [], I = 0; I < E; ++I) {
1336
+ var G = x[I], F = { value: Ae(G), primKey: m[S + I] };
1337
+ s.call(F, F.value, F) !== !1 && (F.value == null ? T.push(m[S + I]) : v || z(l(G), l(F.value)) === 0 ? (C.push(F.value), v && D.push(m[S + I])) : (T.push(m[S + I]), A.push(F.value)));
1329
1338
  }
1330
- var H = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1339
+ var H = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === yn) && { index: n.index, range: n.range };
1331
1340
  return Promise.resolve(0 < A.length && g.mutate({ trans: r, type: "add", values: A }).then(function(U) {
1332
1341
  for (var Q in U.failures)
1333
1342
  T.splice(parseInt(Q), 1);
1334
1343
  c(A.length, U);
1335
1344
  })).then(function() {
1336
- return (0 < R.length || H && typeof e == "object") && g.mutate({ trans: r, type: "put", keys: P, values: R, criteria: H, changeSpec: typeof e != "function" && e }).then(function(U) {
1337
- return c(R.length, U);
1345
+ return (0 < C.length || H && typeof e == "object") && g.mutate({ trans: r, type: "put", keys: D, values: C, criteria: H, changeSpec: typeof e != "function" && e }).then(function(U) {
1346
+ return c(C.length, U);
1338
1347
  });
1339
1348
  }).then(function() {
1340
- return (0 < T.length || H && e === gn) && g.mutate({ trans: r, type: "delete", keys: T, criteria: H }).then(function(U) {
1349
+ return (0 < T.length || H && e === yn) && g.mutate({ trans: r, type: "delete", keys: T, criteria: H }).then(function(U) {
1341
1350
  return c(T.length, U);
1342
1351
  });
1343
1352
  }).then(function() {
1344
- return m.length > S + O && _(S + h);
1353
+ return m.length > S + E && _(S + h);
1345
1354
  });
1346
1355
  });
1347
1356
  }
@@ -1366,25 +1375,25 @@ var Rr = { exports: {} };
1366
1375
  return a - s;
1367
1376
  });
1368
1377
  });
1369
- }) : this.modify(gn);
1378
+ }) : this.modify(yn);
1370
1379
  }, W);
1371
1380
  function W() {
1372
1381
  }
1373
- var gn = function(e, t) {
1382
+ var yn = function(e, t) {
1374
1383
  return t.value = null;
1375
1384
  };
1376
- function ii(e, t) {
1385
+ function ai(e, t) {
1377
1386
  return e < t ? -1 : e === t ? 0 : 1;
1378
1387
  }
1379
- function oi(e, t) {
1388
+ function si(e, t) {
1380
1389
  return t < e ? -1 : e === t ? 0 : 1;
1381
1390
  }
1382
- function ce(e, t, n) {
1383
- return e = e instanceof pr ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1391
+ function le(e, t, n) {
1392
+ return e = e instanceof yr ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1384
1393
  }
1385
1394
  function et(e) {
1386
1395
  return new e.Collection(e, function() {
1387
- return hr("");
1396
+ return gr("");
1388
1397
  }).limit(0);
1389
1398
  }
1390
1399
  function jt(e, t, n, r) {
@@ -1392,7 +1401,7 @@ var Rr = { exports: {} };
1392
1401
  if (!n.every(function(b) {
1393
1402
  return typeof b == "string";
1394
1403
  }))
1395
- return ce(e, or);
1404
+ return le(e, ar);
1396
1405
  function h(b) {
1397
1406
  o = b === "next" ? function(m) {
1398
1407
  return m.toUpperCase();
@@ -1402,7 +1411,7 @@ var Rr = { exports: {} };
1402
1411
  return m.toLowerCase();
1403
1412
  } : function(m) {
1404
1413
  return m.toUpperCase();
1405
- }, s = b === "next" ? ii : oi;
1414
+ }, s = b === "next" ? ai : si;
1406
1415
  var w = n.map(function(m) {
1407
1416
  return { lower: a(m), upper: o(m) };
1408
1417
  }).sort(function(m, _) {
@@ -1427,30 +1436,30 @@ var Rr = { exports: {} };
1427
1436
  var S = a(_);
1428
1437
  if (t(S, g, y))
1429
1438
  return !0;
1430
- for (var O = null, x = y; x < l; ++x) {
1431
- var A = function(R, P, T, C, G, F) {
1432
- for (var H = Math.min(R.length, C.length), U = -1, Q = 0; Q < H; ++Q) {
1433
- var le = P[Q];
1434
- if (le !== C[Q])
1435
- return G(R[Q], T[Q]) < 0 ? R.substr(0, Q) + T[Q] + T.substr(Q + 1) : G(R[Q], C[Q]) < 0 ? R.substr(0, Q) + C[Q] + T.substr(Q + 1) : 0 <= U ? R.substr(0, U) + P[U] + T.substr(U + 1) : null;
1436
- G(R[Q], le) < 0 && (U = Q);
1439
+ for (var E = null, x = y; x < l; ++x) {
1440
+ var A = function(C, D, T, I, G, F) {
1441
+ for (var H = Math.min(C.length, I.length), U = -1, Q = 0; Q < H; ++Q) {
1442
+ var fe = D[Q];
1443
+ if (fe !== I[Q])
1444
+ return G(C[Q], T[Q]) < 0 ? C.substr(0, Q) + T[Q] + T.substr(Q + 1) : G(C[Q], I[Q]) < 0 ? C.substr(0, Q) + I[Q] + T.substr(Q + 1) : 0 <= U ? C.substr(0, U) + D[U] + T.substr(U + 1) : null;
1445
+ G(C[Q], fe) < 0 && (U = Q);
1437
1446
  }
1438
- return H < C.length && F === "next" ? R + T.substr(R.length) : H < R.length && F === "prev" ? R.substr(0, T.length) : U < 0 ? null : R.substr(0, U) + C[U] + T.substr(U + 1);
1447
+ return H < I.length && F === "next" ? C + T.substr(C.length) : H < C.length && F === "prev" ? C.substr(0, T.length) : U < 0 ? null : C.substr(0, U) + I[U] + T.substr(U + 1);
1439
1448
  }(_, S, c[x], g[x], s, d);
1440
- A === null && O === null ? y = x + 1 : (O === null || 0 < s(O, A)) && (O = A);
1449
+ A === null && E === null ? y = x + 1 : (E === null || 0 < s(E, A)) && (E = A);
1441
1450
  }
1442
- return w(O !== null ? function() {
1443
- b.continue(O + v);
1451
+ return w(E !== null ? function() {
1452
+ b.continue(E + v);
1444
1453
  } : m), !1;
1445
1454
  }), e;
1446
1455
  }
1447
1456
  function Re(e, t, n, r) {
1448
1457
  return { type: 2, lower: e, upper: t, lowerOpen: n, upperOpen: r };
1449
1458
  }
1450
- function hr(e) {
1459
+ function gr(e) {
1451
1460
  return { type: 1, lower: e, upper: e };
1452
1461
  }
1453
- var pr = (Object.defineProperty(re.prototype, "Collection", { get: function() {
1462
+ var yr = (Object.defineProperty(re.prototype, "Collection", { get: function() {
1454
1463
  return this._ctx.table.db.Collection;
1455
1464
  }, enumerable: !1, configurable: !0 }), re.prototype.between = function(e, t, n, r) {
1456
1465
  n = n !== !1, r = r === !0;
@@ -1459,30 +1468,30 @@ var Rr = { exports: {} };
1459
1468
  return Re(e, t, !n, !r);
1460
1469
  });
1461
1470
  } catch {
1462
- return ce(this, _e);
1471
+ return le(this, we);
1463
1472
  }
1464
1473
  }, re.prototype.equals = function(e) {
1465
- return e == null ? ce(this, _e) : new this.Collection(this, function() {
1466
- return hr(e);
1474
+ return e == null ? le(this, we) : new this.Collection(this, function() {
1475
+ return gr(e);
1467
1476
  });
1468
1477
  }, re.prototype.above = function(e) {
1469
- return e == null ? ce(this, _e) : new this.Collection(this, function() {
1478
+ return e == null ? le(this, we) : new this.Collection(this, function() {
1470
1479
  return Re(e, void 0, !0);
1471
1480
  });
1472
1481
  }, re.prototype.aboveOrEqual = function(e) {
1473
- return e == null ? ce(this, _e) : new this.Collection(this, function() {
1482
+ return e == null ? le(this, we) : new this.Collection(this, function() {
1474
1483
  return Re(e, void 0, !1);
1475
1484
  });
1476
1485
  }, re.prototype.below = function(e) {
1477
- return e == null ? ce(this, _e) : new this.Collection(this, function() {
1486
+ return e == null ? le(this, we) : new this.Collection(this, function() {
1478
1487
  return Re(void 0, e, !1, !0);
1479
1488
  });
1480
1489
  }, re.prototype.belowOrEqual = function(e) {
1481
- return e == null ? ce(this, _e) : new this.Collection(this, function() {
1490
+ return e == null ? le(this, we) : new this.Collection(this, function() {
1482
1491
  return Re(void 0, e);
1483
1492
  });
1484
1493
  }, re.prototype.startsWith = function(e) {
1485
- return typeof e != "string" ? ce(this, or) : this.between(e, e + Le, !0, !0);
1494
+ return typeof e != "string" ? le(this, ar) : this.between(e, e + Le, !0, !0);
1486
1495
  }, re.prototype.startsWithIgnoreCase = function(e) {
1487
1496
  return e === "" ? this.startsWith(e) : jt(this, function(t, n) {
1488
1497
  return t.indexOf(n[0]) === 0;
@@ -1492,23 +1501,23 @@ var Rr = { exports: {} };
1492
1501
  return t === n[0];
1493
1502
  }, [e], "");
1494
1503
  }, re.prototype.anyOfIgnoreCase = function() {
1495
- var e = we.apply(He, arguments);
1504
+ var e = ve.apply(He, arguments);
1496
1505
  return e.length === 0 ? et(this) : jt(this, function(t, n) {
1497
1506
  return n.indexOf(t) !== -1;
1498
1507
  }, e, "");
1499
1508
  }, re.prototype.startsWithAnyOfIgnoreCase = function() {
1500
- var e = we.apply(He, arguments);
1509
+ var e = ve.apply(He, arguments);
1501
1510
  return e.length === 0 ? et(this) : jt(this, function(t, n) {
1502
1511
  return n.some(function(r) {
1503
1512
  return t.indexOf(r) === 0;
1504
1513
  });
1505
1514
  }, e, Le);
1506
1515
  }, re.prototype.anyOf = function() {
1507
- var e = this, t = we.apply(He, arguments), n = this._cmp;
1516
+ var e = this, t = ve.apply(He, arguments), n = this._cmp;
1508
1517
  try {
1509
1518
  t.sort(n);
1510
1519
  } catch {
1511
- return ce(this, _e);
1520
+ return le(this, we);
1512
1521
  }
1513
1522
  if (t.length === 0)
1514
1523
  return et(this);
@@ -1530,13 +1539,13 @@ var Rr = { exports: {} };
1530
1539
  }, re.prototype.notEqual = function(e) {
1531
1540
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
1532
1541
  }, re.prototype.noneOf = function() {
1533
- var e = we.apply(He, arguments);
1542
+ var e = ve.apply(He, arguments);
1534
1543
  if (e.length === 0)
1535
1544
  return new this.Collection(this);
1536
1545
  try {
1537
1546
  e.sort(this._ascending);
1538
1547
  } catch {
1539
- return ce(this, _e);
1548
+ return le(this, we);
1540
1549
  }
1541
1550
  var t = e.reduce(function(n, r) {
1542
1551
  return n ? n.concat([[n[n.length - 1][1], r]]) : [[-1 / 0, r]];
@@ -1549,24 +1558,24 @@ var Rr = { exports: {} };
1549
1558
  if (!_.every(function(S) {
1550
1559
  return S[0] !== void 0 && S[1] !== void 0 && o(S[0], S[1]) <= 0;
1551
1560
  }))
1552
- return ce(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1561
+ return le(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1553
1562
  var g = !t || t.includeLowers !== !1, d = t && t.includeUppers === !0, v, l = o;
1554
- function h(S, O) {
1555
- return l(S[0], O[0]);
1563
+ function h(S, E) {
1564
+ return l(S[0], E[0]);
1556
1565
  }
1557
1566
  try {
1558
- (v = _.reduce(function(S, O) {
1567
+ (v = _.reduce(function(S, E) {
1559
1568
  for (var x = 0, A = S.length; x < A; ++x) {
1560
- var R = S[x];
1561
- if (r(O[0], R[1]) < 0 && 0 < r(O[1], R[0])) {
1562
- R[0] = s(R[0], O[0]), R[1] = c(R[1], O[1]);
1569
+ var C = S[x];
1570
+ if (r(E[0], C[1]) < 0 && 0 < r(E[1], C[0])) {
1571
+ C[0] = s(C[0], E[0]), C[1] = c(C[1], E[1]);
1563
1572
  break;
1564
1573
  }
1565
1574
  }
1566
- return x === A && S.push(O), S;
1575
+ return x === A && S.push(E), S;
1567
1576
  }, [])).sort(h);
1568
1577
  } catch {
1569
- return ce(this, _e);
1578
+ return le(this, we);
1570
1579
  }
1571
1580
  var y = 0, b = d ? function(S) {
1572
1581
  return 0 < o(S, v[y][1]);
@@ -1581,25 +1590,25 @@ var Rr = { exports: {} };
1581
1590
  });
1582
1591
  return _._ondirectionchange = function(S) {
1583
1592
  l = S === "next" ? (m = b, o) : (m = w, a), v.sort(h);
1584
- }, _._addAlgorithm(function(S, O, x) {
1585
- for (var A, R = S.key; m(R); )
1593
+ }, _._addAlgorithm(function(S, E, x) {
1594
+ for (var A, C = S.key; m(C); )
1586
1595
  if (++y === v.length)
1587
- return O(x), !1;
1588
- return !b(A = R) && !w(A) || (n._cmp(R, v[y][1]) === 0 || n._cmp(R, v[y][0]) === 0 || O(function() {
1596
+ return E(x), !1;
1597
+ return !b(A = C) && !w(A) || (n._cmp(C, v[y][1]) === 0 || n._cmp(C, v[y][0]) === 0 || E(function() {
1589
1598
  l === o ? S.continue(v[y][0]) : S.continue(v[y][1]);
1590
1599
  }), !1);
1591
1600
  }), _;
1592
1601
  }, re.prototype.startsWithAnyOf = function() {
1593
- var e = we.apply(He, arguments);
1602
+ var e = ve.apply(He, arguments);
1594
1603
  return e.every(function(t) {
1595
1604
  return typeof t == "string";
1596
1605
  }) ? e.length === 0 ? et(this) : this.inAnyRange(e.map(function(t) {
1597
1606
  return [t, t + Le];
1598
- })) : ce(this, "startsWithAnyOf() only works with strings");
1607
+ })) : le(this, "startsWithAnyOf() only works with strings");
1599
1608
  }, re);
1600
1609
  function re() {
1601
1610
  }
1602
- function ye(e) {
1611
+ function ge(e) {
1603
1612
  return J(function(t) {
1604
1613
  return ht(t), e(t.target.error), !1;
1605
1614
  });
@@ -1607,9 +1616,9 @@ var Rr = { exports: {} };
1607
1616
  function ht(e) {
1608
1617
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1609
1618
  }
1610
- var pt = "storagemutated", yn = "x-storagemutated-1", Te = ft(null, pt), ai = (me.prototype._lock = function() {
1619
+ var pt = "storagemutated", mn = "x-storagemutated-1", Te = ft(null, pt), ui = (ye.prototype._lock = function() {
1611
1620
  return rt(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1612
- }, me.prototype._unlock = function() {
1621
+ }, ye.prototype._unlock = function() {
1613
1622
  if (rt(!B.global), --this._reculock == 0)
1614
1623
  for (B.global || (B.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1615
1624
  var e = this._blockedFuncs.shift();
@@ -1619,9 +1628,9 @@ var Rr = { exports: {} };
1619
1628
  }
1620
1629
  }
1621
1630
  return this;
1622
- }, me.prototype._locked = function() {
1631
+ }, ye.prototype._locked = function() {
1623
1632
  return this._reculock && B.lockOwnerFor !== this;
1624
- }, me.prototype.create = function(e) {
1633
+ }, ye.prototype.create = function(e) {
1625
1634
  var t = this;
1626
1635
  if (!this.mode)
1627
1636
  return this;
@@ -1644,7 +1653,7 @@ var Rr = { exports: {} };
1644
1653
  }), e.oncomplete = J(function() {
1645
1654
  t.active = !1, t._resolve(), "mutatedParts" in e && Te.storagemutated.fire(e.mutatedParts);
1646
1655
  }), this;
1647
- }, me.prototype._promise = function(e, t, n) {
1656
+ }, ye.prototype._promise = function(e, t, n) {
1648
1657
  var r = this;
1649
1658
  if (e === "readwrite" && this.mode !== "readwrite")
1650
1659
  return q(new L.ReadOnly("Transaction is readonly"));
@@ -1657,7 +1666,7 @@ var Rr = { exports: {} };
1657
1666
  }, B]);
1658
1667
  });
1659
1668
  if (n)
1660
- return Pe(function() {
1669
+ return De(function() {
1661
1670
  var a = new M(function(s, c) {
1662
1671
  r._lock();
1663
1672
  var g = t(s, c, r);
@@ -1672,9 +1681,9 @@ var Rr = { exports: {} };
1672
1681
  c && c.then && c.then(a, s);
1673
1682
  });
1674
1683
  return o._lib = !0, o;
1675
- }, me.prototype._root = function() {
1684
+ }, ye.prototype._root = function() {
1676
1685
  return this.parent ? this.parent._root() : this;
1677
- }, me.prototype.waitFor = function(e) {
1686
+ }, ye.prototype.waitFor = function(e) {
1678
1687
  var t, n = this._root(), r = M.resolve(e);
1679
1688
  n._waitingFor ? n._waitingFor = n._waitingFor.then(function() {
1680
1689
  return r;
@@ -1693,9 +1702,9 @@ var Rr = { exports: {} };
1693
1702
  n._waitingFor === o && (n._waitingFor = null);
1694
1703
  });
1695
1704
  });
1696
- }, me.prototype.abort = function() {
1705
+ }, ye.prototype.abort = function() {
1697
1706
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new L.Abort()));
1698
- }, me.prototype.table = function(e) {
1707
+ }, ye.prototype.table = function(e) {
1699
1708
  var t = this._memoizedTables || (this._memoizedTables = {});
1700
1709
  if (ie(t, e))
1701
1710
  return t[e];
@@ -1703,16 +1712,16 @@ var Rr = { exports: {} };
1703
1712
  if (!n)
1704
1713
  throw new L.NotFound("Table " + e + " not part of transaction");
1705
1714
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
1706
- }, me);
1707
- function me() {
1715
+ }, ye);
1716
+ function ye() {
1708
1717
  }
1709
- function mn(e, t, n, r, o, a, s) {
1710
- return { name: e, keyPath: t, unique: n, multi: r, auto: o, compound: a, src: (n && !s ? "&" : "") + (r ? "*" : "") + (o ? "++" : "") + gr(t) };
1718
+ function bn(e, t, n, r, o, a, s) {
1719
+ return { name: e, keyPath: t, unique: n, multi: r, auto: o, compound: a, src: (n && !s ? "&" : "") + (r ? "*" : "") + (o ? "++" : "") + mr(t) };
1711
1720
  }
1712
- function gr(e) {
1721
+ function mr(e) {
1713
1722
  return typeof e == "string" ? e : e ? "[" + [].join.call(e, "+") + "]" : "";
1714
1723
  }
1715
- function bn(e, t, n) {
1724
+ function vn(e, t, n) {
1716
1725
  return { name: e, primKey: t, indexes: n, mappedClass: null, idxByName: (r = function(o) {
1717
1726
  return [o.name, o];
1718
1727
  }, n.reduce(function(o, a, s) {
@@ -1731,25 +1740,25 @@ var Rr = { exports: {} };
1731
1740
  }, Le;
1732
1741
  }
1733
1742
  };
1734
- function vn(e) {
1743
+ function wn(e) {
1735
1744
  return e == null ? function() {
1736
1745
  } : typeof e == "string" ? (t = e).split(".").length === 1 ? function(n) {
1737
1746
  return n[t];
1738
1747
  } : function(n) {
1739
- return ve(n, t);
1748
+ return be(n, t);
1740
1749
  } : function(n) {
1741
- return ve(n, e);
1750
+ return be(n, e);
1742
1751
  };
1743
1752
  var t;
1744
1753
  }
1745
- function yr(e) {
1754
+ function br(e) {
1746
1755
  return [].slice.call(e);
1747
1756
  }
1748
- var si = 0;
1757
+ var ci = 0;
1749
1758
  function yt(e) {
1750
1759
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
1751
1760
  }
1752
- function ui(e, t, g) {
1761
+ function li(e, t, g) {
1753
1762
  function r(m) {
1754
1763
  if (m.type === 3)
1755
1764
  return null;
@@ -1761,38 +1770,38 @@ var Rr = { exports: {} };
1761
1770
  function o(h) {
1762
1771
  var y, b = h.name;
1763
1772
  return { name: b, schema: h, mutate: function(w) {
1764
- var m = w.trans, _ = w.type, S = w.keys, O = w.values, x = w.range;
1765
- return new Promise(function(A, R) {
1773
+ var m = w.trans, _ = w.type, S = w.keys, E = w.values, x = w.range;
1774
+ return new Promise(function(A, C) {
1766
1775
  A = J(A);
1767
- var P = m.objectStore(b), T = P.keyPath == null, C = _ === "put" || _ === "add";
1768
- if (!C && _ !== "delete" && _ !== "deleteRange")
1776
+ var D = m.objectStore(b), T = D.keyPath == null, I = _ === "put" || _ === "add";
1777
+ if (!I && _ !== "delete" && _ !== "deleteRange")
1769
1778
  throw new Error("Invalid operation type: " + _);
1770
- var G, F = (S || O || { length: 1 }).length;
1771
- if (S && O && S.length !== O.length)
1779
+ var G, F = (S || E || { length: 1 }).length;
1780
+ if (S && E && S.length !== E.length)
1772
1781
  throw new Error("Given keys array must have same length as given values array.");
1773
1782
  if (F === 0)
1774
1783
  return A({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1775
1784
  function H(ue) {
1776
- ++le, ht(ue);
1785
+ ++fe, ht(ue);
1777
1786
  }
1778
- var U = [], Q = [], le = 0;
1787
+ var U = [], Q = [], fe = 0;
1779
1788
  if (_ === "deleteRange") {
1780
1789
  if (x.type === 4)
1781
- return A({ numFailures: le, failures: Q, results: [], lastResult: void 0 });
1782
- x.type === 3 ? U.push(G = P.clear()) : U.push(G = P.delete(r(x)));
1790
+ return A({ numFailures: fe, failures: Q, results: [], lastResult: void 0 });
1791
+ x.type === 3 ? U.push(G = D.clear()) : U.push(G = D.delete(r(x)));
1783
1792
  } else {
1784
- var T = C ? T ? [O, S] : [O, null] : [S, null], $ = T[0], Ee = T[1];
1785
- if (C)
1793
+ var T = I ? T ? [E, S] : [E, null] : [S, null], $ = T[0], Ee = T[1];
1794
+ if (I)
1786
1795
  for (var ae = 0; ae < F; ++ae)
1787
- U.push(G = Ee && Ee[ae] !== void 0 ? P[_]($[ae], Ee[ae]) : P[_]($[ae])), G.onerror = H;
1796
+ U.push(G = Ee && Ee[ae] !== void 0 ? D[_]($[ae], Ee[ae]) : D[_]($[ae])), G.onerror = H;
1788
1797
  else
1789
1798
  for (ae = 0; ae < F; ++ae)
1790
- U.push(G = P[_]($[ae])), G.onerror = H;
1799
+ U.push(G = D[_]($[ae])), G.onerror = H;
1791
1800
  }
1792
1801
  function Qt(ue) {
1793
- ue = ue.target.result, U.forEach(function(We, Nn) {
1794
- return We.error != null && (Q[Nn] = We.error);
1795
- }), A({ numFailures: le, failures: Q, results: _ === "delete" ? S : U.map(function(We) {
1802
+ ue = ue.target.result, U.forEach(function(We, Gn) {
1803
+ return We.error != null && (Q[Gn] = We.error);
1804
+ }), A({ numFailures: fe, failures: Q, results: _ === "delete" ? S : U.map(function(We) {
1796
1805
  return We.result;
1797
1806
  }), lastResult: ue });
1798
1807
  }
@@ -1802,48 +1811,48 @@ var Rr = { exports: {} };
1802
1811
  });
1803
1812
  }, getMany: function(w) {
1804
1813
  var m = w.trans, _ = w.keys;
1805
- return new Promise(function(S, O) {
1814
+ return new Promise(function(S, E) {
1806
1815
  S = J(S);
1807
- for (var x, A = m.objectStore(b), R = _.length, P = new Array(R), T = 0, C = 0, G = function(U) {
1808
- U = U.target, P[U._pos] = U.result, ++C === T && S(P);
1809
- }, F = ye(O), H = 0; H < R; ++H)
1816
+ for (var x, A = m.objectStore(b), C = _.length, D = new Array(C), T = 0, I = 0, G = function(U) {
1817
+ U = U.target, D[U._pos] = U.result, ++I === T && S(D);
1818
+ }, F = ge(E), H = 0; H < C; ++H)
1810
1819
  _[H] != null && ((x = A.get(_[H]))._pos = H, x.onsuccess = G, x.onerror = F, ++T);
1811
- T === 0 && S(P);
1820
+ T === 0 && S(D);
1812
1821
  });
1813
1822
  }, get: function(w) {
1814
1823
  var m = w.trans, _ = w.key;
1815
- return new Promise(function(S, O) {
1824
+ return new Promise(function(S, E) {
1816
1825
  S = J(S);
1817
1826
  var x = m.objectStore(b).get(_);
1818
1827
  x.onsuccess = function(A) {
1819
1828
  return S(A.target.result);
1820
- }, x.onerror = ye(O);
1829
+ }, x.onerror = ge(E);
1821
1830
  });
1822
1831
  }, query: (y = d, function(w) {
1823
1832
  return new Promise(function(m, _) {
1824
1833
  m = J(m);
1825
- var S, O, x, T = w.trans, A = w.values, R = w.limit, G = w.query, P = R === 1 / 0 ? void 0 : R, C = G.index, G = G.range, T = T.objectStore(b), C = C.isPrimaryKey ? T : T.index(C.name), G = r(G);
1826
- if (R === 0)
1834
+ var S, E, x, T = w.trans, A = w.values, C = w.limit, G = w.query, D = C === 1 / 0 ? void 0 : C, I = G.index, G = G.range, T = T.objectStore(b), I = I.isPrimaryKey ? T : T.index(I.name), G = r(G);
1835
+ if (C === 0)
1827
1836
  return m({ result: [] });
1828
- y ? ((P = A ? C.getAll(G, P) : C.getAllKeys(G, P)).onsuccess = function(F) {
1837
+ y ? ((D = A ? I.getAll(G, D) : I.getAllKeys(G, D)).onsuccess = function(F) {
1829
1838
  return m({ result: F.target.result });
1830
- }, P.onerror = ye(_)) : (S = 0, O = !A && "openKeyCursor" in C ? C.openKeyCursor(G) : C.openCursor(G), x = [], O.onsuccess = function(F) {
1831
- var H = O.result;
1832
- return H ? (x.push(A ? H.value : H.primaryKey), ++S === R ? m({ result: x }) : void H.continue()) : m({ result: x });
1833
- }, O.onerror = ye(_));
1839
+ }, D.onerror = ge(_)) : (S = 0, E = !A && "openKeyCursor" in I ? I.openKeyCursor(G) : I.openCursor(G), x = [], E.onsuccess = function(F) {
1840
+ var H = E.result;
1841
+ return H ? (x.push(A ? H.value : H.primaryKey), ++S === C ? m({ result: x }) : void H.continue()) : m({ result: x });
1842
+ }, E.onerror = ge(_));
1834
1843
  });
1835
1844
  }), openCursor: function(w) {
1836
- var m = w.trans, _ = w.values, S = w.query, O = w.reverse, x = w.unique;
1837
- return new Promise(function(A, R) {
1845
+ var m = w.trans, _ = w.values, S = w.query, E = w.reverse, x = w.unique;
1846
+ return new Promise(function(A, C) {
1838
1847
  A = J(A);
1839
- var C = S.index, P = S.range, T = m.objectStore(b), T = C.isPrimaryKey ? T : T.index(C.name), C = O ? x ? "prevunique" : "prev" : x ? "nextunique" : "next", G = !_ && "openKeyCursor" in T ? T.openKeyCursor(r(P), C) : T.openCursor(r(P), C);
1840
- G.onerror = ye(R), G.onsuccess = J(function(F) {
1841
- var H, U, Q, le, $ = G.result;
1842
- $ ? ($.___id = ++si, $.done = !1, H = $.continue.bind($), U = (U = $.continuePrimaryKey) && U.bind($), Q = $.advance.bind($), le = function() {
1848
+ var I = S.index, D = S.range, T = m.objectStore(b), T = I.isPrimaryKey ? T : T.index(I.name), I = E ? x ? "prevunique" : "prev" : x ? "nextunique" : "next", G = !_ && "openKeyCursor" in T ? T.openKeyCursor(r(D), I) : T.openCursor(r(D), I);
1849
+ G.onerror = ge(C), G.onsuccess = J(function(F) {
1850
+ var H, U, Q, fe, $ = G.result;
1851
+ $ ? ($.___id = ++ci, $.done = !1, H = $.continue.bind($), U = (U = $.continuePrimaryKey) && U.bind($), Q = $.advance.bind($), fe = function() {
1843
1852
  throw new Error("Cursor not stopped");
1844
1853
  }, $.trans = m, $.stop = $.continue = $.continuePrimaryKey = $.advance = function() {
1845
1854
  throw new Error("Cursor not started");
1846
- }, $.fail = J(R), $.next = function() {
1855
+ }, $.fail = J(C), $.next = function() {
1847
1856
  var Ee = this, ae = 1;
1848
1857
  return this.start(function() {
1849
1858
  return ae-- ? Ee.continue() : Ee.stop();
@@ -1864,33 +1873,33 @@ var Rr = { exports: {} };
1864
1873
  }, $.stop();
1865
1874
  }
1866
1875
  var Qt = new Promise(function(ue, We) {
1867
- ue = J(ue), G.onerror = ye(We), $.fail = We, $.stop = function(Nn) {
1868
- $.stop = $.continue = $.continuePrimaryKey = $.advance = le, ue(Nn);
1876
+ ue = J(ue), G.onerror = ge(We), $.fail = We, $.stop = function(Gn) {
1877
+ $.stop = $.continue = $.continuePrimaryKey = $.advance = fe, ue(Gn);
1869
1878
  };
1870
1879
  });
1871
1880
  return G.onsuccess = J(function(ue) {
1872
1881
  G.onsuccess = ae, ae();
1873
1882
  }), $.continue = H, $.continuePrimaryKey = U, $.advance = Q, ae(), Qt;
1874
1883
  }, A($)) : A(null);
1875
- }, R);
1884
+ }, C);
1876
1885
  });
1877
1886
  }, count: function(w) {
1878
- var m = w.query, _ = w.trans, S = m.index, O = m.range;
1887
+ var m = w.query, _ = w.trans, S = m.index, E = m.range;
1879
1888
  return new Promise(function(x, A) {
1880
- var R = _.objectStore(b), P = S.isPrimaryKey ? R : R.index(S.name), R = r(O), P = R ? P.count(R) : P.count();
1881
- P.onsuccess = J(function(T) {
1889
+ var C = _.objectStore(b), D = S.isPrimaryKey ? C : C.index(S.name), C = r(E), D = C ? D.count(C) : D.count();
1890
+ D.onsuccess = J(function(T) {
1882
1891
  return x(T.target.result);
1883
- }), P.onerror = ye(A);
1892
+ }), D.onerror = ge(A);
1884
1893
  });
1885
1894
  } };
1886
1895
  }
1887
- var a, s, c, v = (s = g, c = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: c.map(function(h) {
1896
+ var a, s, c, v = (s = g, c = br((a = e).objectStoreNames), { schema: { name: a.name, tables: c.map(function(h) {
1888
1897
  return s.objectStore(h);
1889
1898
  }).map(function(h) {
1890
- var y = h.keyPath, m = h.autoIncrement, b = N(y), w = {}, m = { name: h.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: b, keyPath: y, autoIncrement: m, unique: !0, extractKey: vn(y) }, indexes: yr(h.indexNames).map(function(_) {
1899
+ var y = h.keyPath, m = h.autoIncrement, b = N(y), w = {}, m = { name: h.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y == null, compound: b, keyPath: y, autoIncrement: m, unique: !0, extractKey: wn(y) }, indexes: br(h.indexNames).map(function(_) {
1891
1900
  return h.index(_);
1892
1901
  }).map(function(x) {
1893
- var S = x.name, O = x.unique, A = x.multiEntry, x = x.keyPath, A = { name: S, compound: N(x), keyPath: x, unique: O, multiEntry: A, extractKey: vn(x) };
1902
+ var S = x.name, E = x.unique, A = x.multiEntry, x = x.keyPath, A = { name: S, compound: N(x), keyPath: x, unique: E, multiEntry: A, extractKey: wn(x) };
1894
1903
  return w[yt(x)] = A;
1895
1904
  }), getIndexByKeyPath: function(_) {
1896
1905
  return w[yt(_)];
@@ -1905,14 +1914,14 @@ var Rr = { exports: {} };
1905
1914
  return l[h];
1906
1915
  }, MIN_KEY: -1 / 0, MAX_KEY: gt(t), schema: g };
1907
1916
  }
1908
- function ci(e, t, n, r) {
1917
+ function fi(e, t, n, r) {
1909
1918
  var o = n.IDBKeyRange;
1910
- return n.indexedDB, { dbcore: (r = ui(t, o, r), e.dbcore.reduce(function(a, s) {
1919
+ return n.indexedDB, { dbcore: (r = li(t, o, r), e.dbcore.reduce(function(a, s) {
1911
1920
  return s = s.create, f(f({}, a), s(a));
1912
1921
  }, r)) };
1913
1922
  }
1914
1923
  function Kt(e, r) {
1915
- var n = r.db, r = ci(e._middlewares, n, e._deps, r);
1924
+ var n = r.db, r = fi(e._middlewares, n, e._deps, r);
1916
1925
  e.core = r.dbcore, e.tables.forEach(function(o) {
1917
1926
  var a = o.name;
1918
1927
  e.core.schema.tables.some(function(s) {
@@ -1925,32 +1934,32 @@ var Rr = { exports: {} };
1925
1934
  var a = r[o];
1926
1935
  t.forEach(function(s) {
1927
1936
  var c = function g(d, v) {
1928
- return Lr(d, v) || (d = te(d)) && g(d, v);
1937
+ return $r(d, v) || (d = te(d)) && g(d, v);
1929
1938
  }(s, o);
1930
1939
  (!c || "value" in c && c.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, o, { get: function() {
1931
1940
  return this.table(o);
1932
1941
  }, set: function(g) {
1933
- zn(this, o, { value: g, writable: !0, configurable: !0, enumerable: !0 });
1942
+ Hn(this, o, { value: g, writable: !0, configurable: !0, enumerable: !0 });
1934
1943
  } }) : s[o] = new e.Table(o, a));
1935
1944
  });
1936
1945
  });
1937
1946
  }
1938
- function wn(e, t) {
1947
+ function _n(e, t) {
1939
1948
  t.forEach(function(n) {
1940
1949
  for (var r in n)
1941
1950
  n[r] instanceof e.Table && delete n[r];
1942
1951
  });
1943
1952
  }
1944
- function li(e, t) {
1953
+ function di(e, t) {
1945
1954
  return e._cfg.version - t._cfg.version;
1946
1955
  }
1947
- function fi(e, t, n, r) {
1956
+ function hi(e, t, n, r) {
1948
1957
  var o = e._dbSchema;
1949
- n.objectStoreNames.contains("$meta") && !o.$meta && (o.$meta = bn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1958
+ n.objectStoreNames.contains("$meta") && !o.$meta && (o.$meta = vn("$meta", wr("")[0], []), e._storeNames.push("$meta"));
1950
1959
  var a = e._createTransaction("readwrite", e._storeNames, o);
1951
1960
  a.create(n), a._completion.catch(r);
1952
1961
  var s = a._reject.bind(a), c = B.transless || B;
1953
- Pe(function() {
1962
+ De(function() {
1954
1963
  return B.trans = a, B.transless = c, t !== 0 ? (Kt(e, n), d = t, ((g = a).storeNames.includes("$meta") ? g.table("$meta").get("version").then(function(v) {
1955
1964
  return v ?? d;
1956
1965
  }) : M.resolve(d)).then(function(v) {
@@ -1958,67 +1967,67 @@ var Rr = { exports: {} };
1958
1967
  return _._cfg.version >= h;
1959
1968
  })).length !== 0 ? (v.forEach(function(_) {
1960
1969
  w.push(function() {
1961
- var S = m, O = _._cfg.dbschema;
1962
- Lt(l, S, b), Lt(l, O, b), m = l._dbSchema = O;
1963
- var x = _n(S, O);
1964
- x.add.forEach(function(C) {
1965
- Sn(b, C[0], C[1].primKey, C[1].indexes);
1966
- }), x.change.forEach(function(C) {
1967
- if (C.recreate)
1970
+ var S = m, E = _._cfg.dbschema;
1971
+ Lt(l, S, b), Lt(l, E, b), m = l._dbSchema = E;
1972
+ var x = Sn(S, E);
1973
+ x.add.forEach(function(I) {
1974
+ En(b, I[0], I[1].primKey, I[1].indexes);
1975
+ }), x.change.forEach(function(I) {
1976
+ if (I.recreate)
1968
1977
  throw new L.Upgrade("Not yet support for changing primary key");
1969
- var G = b.objectStore(C.name);
1970
- C.add.forEach(function(F) {
1978
+ var G = b.objectStore(I.name);
1979
+ I.add.forEach(function(F) {
1971
1980
  return Nt(G, F);
1972
- }), C.change.forEach(function(F) {
1981
+ }), I.change.forEach(function(F) {
1973
1982
  G.deleteIndex(F.name), Nt(G, F);
1974
- }), C.del.forEach(function(F) {
1983
+ }), I.del.forEach(function(F) {
1975
1984
  return G.deleteIndex(F);
1976
1985
  });
1977
1986
  });
1978
1987
  var A = _._cfg.contentUpgrade;
1979
1988
  if (A && _._cfg.version > h) {
1980
1989
  Kt(l, b), y._memoizedTables = {};
1981
- var R = Qn(O);
1982
- x.del.forEach(function(C) {
1983
- R[C] = S[C];
1984
- }), wn(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], K(R), R), y.schema = R;
1985
- var P, T = qt(A);
1990
+ var C = Xn(E);
1991
+ x.del.forEach(function(I) {
1992
+ C[I] = S[I];
1993
+ }), _n(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], j(C), C), y.schema = C;
1994
+ var D, T = qt(A);
1986
1995
  return T && Je(), x = M.follow(function() {
1987
- var C;
1988
- (P = A(y)) && T && (C = Ce.bind(null, null), P.then(C, C));
1989
- }), P && typeof P.then == "function" ? M.resolve(P) : x.then(function() {
1990
- return P;
1996
+ var I;
1997
+ (D = A(y)) && T && (I = Ie.bind(null, null), D.then(I, I));
1998
+ }), D && typeof D.then == "function" ? M.resolve(D) : x.then(function() {
1999
+ return D;
1991
2000
  });
1992
2001
  }
1993
2002
  }), w.push(function(S) {
1994
- var O, x, A = _._cfg.dbschema;
1995
- O = A, x = S, [].slice.call(x.db.objectStoreNames).forEach(function(R) {
1996
- return O[R] == null && x.db.deleteObjectStore(R);
1997
- }), wn(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], l._storeNames, l._dbSchema), y.schema = l._dbSchema;
2003
+ var E, x, A = _._cfg.dbschema;
2004
+ E = A, x = S, [].slice.call(x.db.objectStoreNames).forEach(function(C) {
2005
+ return E[C] == null && x.db.deleteObjectStore(C);
2006
+ }), _n(l, [l.Transaction.prototype]), Bt(l, [l.Transaction.prototype], l._storeNames, l._dbSchema), y.schema = l._dbSchema;
1998
2007
  }), w.push(function(S) {
1999
- l.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(l.idbdb.version / 10) === _._cfg.version ? (l.idbdb.deleteObjectStore("$meta"), delete l._dbSchema.$meta, l._storeNames = l._storeNames.filter(function(O) {
2000
- return O !== "$meta";
2008
+ l.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(l.idbdb.version / 10) === _._cfg.version ? (l.idbdb.deleteObjectStore("$meta"), delete l._dbSchema.$meta, l._storeNames = l._storeNames.filter(function(E) {
2009
+ return E !== "$meta";
2001
2010
  })) : S.objectStore("$meta").put(_._cfg.version, "version"));
2002
2011
  });
2003
2012
  }), function _() {
2004
2013
  return w.length ? M.resolve(w.shift()(y.idbtrans)).then(_) : M.resolve();
2005
2014
  }().then(function() {
2006
- mr(m, b);
2015
+ vr(m, b);
2007
2016
  })) : M.resolve();
2008
2017
  var l, h, y, b, w, m;
2009
- }).catch(s)) : (K(o).forEach(function(v) {
2010
- Sn(n, v, o[v].primKey, o[v].indexes);
2018
+ }).catch(s)) : (j(o).forEach(function(v) {
2019
+ En(n, v, o[v].primKey, o[v].indexes);
2011
2020
  }), Kt(e, n), void M.follow(function() {
2012
2021
  return e.on.populate.fire(a);
2013
2022
  }).catch(s));
2014
2023
  var g, d;
2015
2024
  });
2016
2025
  }
2017
- function di(e, t) {
2018
- mr(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
2026
+ function pi(e, t) {
2027
+ vr(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
2019
2028
  var n = Gt(0, e.idbdb, t);
2020
2029
  Lt(e, e._dbSchema, t);
2021
- for (var r = 0, o = _n(n, e._dbSchema).change; r < o.length; r++) {
2030
+ for (var r = 0, o = Sn(n, e._dbSchema).change; r < o.length; r++) {
2022
2031
  var a = function(s) {
2023
2032
  if (s.change.length || s.recreate)
2024
2033
  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 };
@@ -2031,7 +2040,7 @@ var Rr = { exports: {} };
2031
2040
  return a.value;
2032
2041
  }
2033
2042
  }
2034
- function _n(e, t) {
2043
+ function Sn(e, t) {
2035
2044
  var n, r = { del: [], add: [], change: [] };
2036
2045
  for (n in e)
2037
2046
  t[n] || r.del.push(n);
@@ -2056,15 +2065,15 @@ var Rr = { exports: {} };
2056
2065
  }
2057
2066
  return r;
2058
2067
  }
2059
- function Sn(e, t, n, r) {
2068
+ function En(e, t, n, r) {
2060
2069
  var o = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2061
2070
  return r.forEach(function(a) {
2062
2071
  return Nt(o, a);
2063
2072
  }), o;
2064
2073
  }
2065
- function mr(e, t) {
2066
- K(e).forEach(function(n) {
2067
- t.db.objectStoreNames.contains(n) || (pe && console.debug("Dexie: Creating missing table", n), Sn(t, n, e[n].primKey, e[n].indexes));
2074
+ function vr(e, t) {
2075
+ j(e).forEach(function(n) {
2076
+ t.db.objectStoreNames.contains(n) || (pe && console.debug("Dexie: Creating missing table", n), En(t, n, e[n].primKey, e[n].indexes));
2068
2077
  });
2069
2078
  }
2070
2079
  function Nt(e, t) {
@@ -2073,11 +2082,11 @@ var Rr = { exports: {} };
2073
2082
  function Gt(e, t, n) {
2074
2083
  var r = {};
2075
2084
  return wt(t.objectStoreNames, 0).forEach(function(o) {
2076
- for (var a = n.objectStore(o), s = mn(gr(d = a.keyPath), d || "", !0, !1, !!a.autoIncrement, d && typeof d != "string", !0), c = [], g = 0; g < a.indexNames.length; ++g) {
2077
- var v = a.index(a.indexNames[g]), d = v.keyPath, v = mn(v.name, d, !!v.unique, !!v.multiEntry, !1, d && typeof d != "string", !1);
2085
+ for (var a = n.objectStore(o), s = bn(mr(d = a.keyPath), d || "", !0, !1, !!a.autoIncrement, d && typeof d != "string", !0), c = [], g = 0; g < a.indexNames.length; ++g) {
2086
+ var v = a.index(a.indexNames[g]), d = v.keyPath, v = bn(v.name, d, !!v.unique, !!v.multiEntry, !1, d && typeof d != "string", !1);
2078
2087
  c.push(v);
2079
2088
  }
2080
- r[o] = bn(o, s, c);
2089
+ r[o] = vn(o, s, c);
2081
2090
  }), r;
2082
2091
  }
2083
2092
  function Lt(e, t, n) {
@@ -2089,18 +2098,18 @@ var Rr = { exports: {} };
2089
2098
  !t[a] || (d = t[a].idxByName[v]) && (d.name = g, delete t[a].idxByName[v], t[a].idxByName[g] = d);
2090
2099
  }
2091
2100
  }
2092
- typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && I.WorkerGlobalScope && I instanceof I.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2101
+ typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && R.WorkerGlobalScope && R instanceof R.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
2093
2102
  }
2094
- function br(e) {
2103
+ function wr(e) {
2095
2104
  return e.split(",").map(function(t, n) {
2096
2105
  var r = (t = t.trim()).replace(/([&*]|\+\+)/g, ""), o = /^\[/.test(r) ? r.match(/^\[(.*)\]$/)[1].split("+") : r;
2097
- return mn(r, o || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), N(o), n === 0);
2106
+ return bn(r, o || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), N(o), n === 0);
2098
2107
  });
2099
2108
  }
2100
- var hi = (Ft.prototype._parseStoresSpec = function(e, t) {
2101
- K(e).forEach(function(n) {
2109
+ var gi = (Ft.prototype._parseStoresSpec = function(e, t) {
2110
+ j(e).forEach(function(n) {
2102
2111
  if (e[n] !== null) {
2103
- var r = br(e[n]), o = r.shift();
2112
+ var r = wr(e[n]), o = r.shift();
2104
2113
  if (o.unique = !0, o.multi)
2105
2114
  throw new L.Schema("Primary key cannot be multi-valued");
2106
2115
  r.forEach(function(a) {
@@ -2108,7 +2117,7 @@ var Rr = { exports: {} };
2108
2117
  throw new L.Schema("Only primary key can be marked as autoIncrement (++)");
2109
2118
  if (!a.keyPath)
2110
2119
  throw new L.Schema("Index must have a name and cannot be an empty string");
2111
- }), t[n] = bn(n, o, r);
2120
+ }), t[n] = vn(n, o, r);
2112
2121
  }
2113
2122
  });
2114
2123
  }, Ft.prototype.stores = function(n) {
@@ -2117,25 +2126,25 @@ var Rr = { exports: {} };
2117
2126
  var n = t._versions, r = {}, o = {};
2118
2127
  return n.forEach(function(a) {
2119
2128
  Z(r, a._cfg.storesSource), o = a._cfg.dbschema = {}, a._parseStoresSpec(r, o);
2120
- }), t._dbSchema = o, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], K(o), o), t._storeNames = K(o), this;
2129
+ }), t._dbSchema = o, _n(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], j(o), o), t._storeNames = j(o), this;
2121
2130
  }, Ft.prototype.upgrade = function(e) {
2122
2131
  return this._cfg.contentUpgrade = tn(this._cfg.contentUpgrade || Y, e), this;
2123
2132
  }, Ft);
2124
2133
  function Ft() {
2125
2134
  }
2126
- function En(e, t) {
2135
+ function On(e, t) {
2127
2136
  var n = e._dbNamesDB;
2128
- return n || (n = e._dbNamesDB = new Se(It, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2137
+ return n || (n = e._dbNamesDB = new Se(Ct, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2129
2138
  }
2130
- function On(e) {
2139
+ function xn(e) {
2131
2140
  return e && typeof e.databases == "function";
2132
2141
  }
2133
- function xn(e) {
2134
- return Pe(function() {
2142
+ function kn(e) {
2143
+ return De(function() {
2135
2144
  return B.letThrough = !0, e();
2136
2145
  });
2137
2146
  }
2138
- function kn(e) {
2147
+ function An(e) {
2139
2148
  return !("from" in e);
2140
2149
  }
2141
2150
  var oe = function(e, t) {
@@ -2150,35 +2159,35 @@ var Rr = { exports: {} };
2150
2159
  if (!isNaN(r)) {
2151
2160
  if (0 < r)
2152
2161
  throw RangeError();
2153
- if (kn(e))
2162
+ if (An(e))
2154
2163
  return Z(e, { from: t, to: n, d: 1 });
2155
2164
  var o = e.l, r = e.r;
2156
2165
  if (z(n, e.from) < 0)
2157
- return o ? mt(o, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, vr(e);
2166
+ return o ? mt(o, t, n) : e.l = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2158
2167
  if (0 < z(t, e.to))
2159
- return r ? mt(r, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, vr(e);
2168
+ return r ? mt(r, t, n) : e.r = { from: t, to: n, d: 1, l: null, r: null }, _r(e);
2160
2169
  z(t, e.from) < 0 && (e.from = t, e.l = null, e.d = r ? r.d + 1 : 1), 0 < z(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, o && !e.l && bt(e, o), r && n && bt(e, r);
2161
2170
  }
2162
2171
  }
2163
2172
  function bt(e, t) {
2164
- kn(t) || function n(r, g) {
2173
+ An(t) || function n(r, g) {
2165
2174
  var a = g.from, s = g.to, c = g.l, g = g.r;
2166
2175
  mt(r, a, s), c && n(r, c), g && n(r, g);
2167
2176
  }(e, t);
2168
2177
  }
2169
2178
  function $t(e, t) {
2170
- var n = An(t), r = n.next();
2179
+ var n = Pn(t), r = n.next();
2171
2180
  if (r.done)
2172
2181
  return !1;
2173
- for (var o = r.value, a = An(e), s = a.next(o.from), c = s.value; !r.done && !s.done; ) {
2182
+ for (var o = r.value, a = Pn(e), s = a.next(o.from), c = s.value; !r.done && !s.done; ) {
2174
2183
  if (z(c.from, o.to) <= 0 && 0 <= z(c.to, o.from))
2175
2184
  return !0;
2176
2185
  z(o.from, c.from) < 0 ? o = (r = n.next(c.from)).value : c = (s = a.next(o.from)).value;
2177
2186
  }
2178
2187
  return !1;
2179
2188
  }
2180
- function An(e) {
2181
- var t = kn(e) ? null : { s: 0, n: e };
2189
+ function Pn(e) {
2190
+ var t = An(e) ? null : { s: 0, n: e };
2182
2191
  return { next: function(n) {
2183
2192
  for (var r = 0 < arguments.length; t; )
2184
2193
  switch (t.s) {
@@ -2203,20 +2212,20 @@ var Rr = { exports: {} };
2203
2212
  return { done: !0 };
2204
2213
  } };
2205
2214
  }
2206
- function vr(e) {
2215
+ function _r(e) {
2207
2216
  var t, n, r = (((t = e.r) === null || t === void 0 ? void 0 : t.d) || 0) - (((n = e.l) === null || n === void 0 ? void 0 : n.d) || 0), o = 1 < r ? "r" : r < -1 ? "l" : "";
2208
- o && (t = o == "r" ? "l" : "r", n = f({}, e), r = e[o], e.from = r.from, e.to = r.to, e[o] = r[o], n[o] = r[t], (e[t] = n).d = wr(n)), e.d = wr(e);
2217
+ o && (t = o == "r" ? "l" : "r", n = f({}, e), r = e[o], e.from = r.from, e.to = r.to, e[o] = r[o], n[o] = r[t], (e[t] = n).d = Sr(n)), e.d = Sr(e);
2209
2218
  }
2210
- function wr(n) {
2219
+ function Sr(n) {
2211
2220
  var t = n.r, n = n.l;
2212
2221
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2213
2222
  }
2214
2223
  function Ut(e, t) {
2215
- return K(t).forEach(function(n) {
2224
+ return j(t).forEach(function(n) {
2216
2225
  e[n] ? bt(e[n], t[n]) : e[n] = function r(o) {
2217
2226
  var a, s, c = {};
2218
2227
  for (a in o)
2219
- ie(o, a) && (s = o[a], c[a] = !s || typeof s != "object" || Vn.has(s.constructor) ? s : r(s));
2228
+ ie(o, a) && (s = o[a], c[a] = !s || typeof s != "object" || Jn.has(s.constructor) ? s : r(s));
2220
2229
  return c;
2221
2230
  }(t[n]);
2222
2231
  }), e;
@@ -2236,30 +2245,30 @@ var Rr = { exports: {} };
2236
2245
  return mt(t, n, n);
2237
2246
  }), this;
2238
2247
  } })[Zt] = function() {
2239
- return An(this);
2248
+ return Pn(this);
2240
2249
  }, de));
2241
- var $e = {}, Pn = {}, Cn = !1;
2250
+ var $e = {}, In = {}, Cn = !1;
2242
2251
  function Wt(e) {
2243
- Ut(Pn, e), Cn || (Cn = !0, setTimeout(function() {
2244
- Cn = !1, In(Pn, !(Pn = {}));
2252
+ Ut(In, e), Cn || (Cn = !0, setTimeout(function() {
2253
+ Cn = !1, Rn(In, !(In = {}));
2245
2254
  }, 0));
2246
2255
  }
2247
- function In(e, t) {
2256
+ function Rn(e, t) {
2248
2257
  t === void 0 && (t = !1);
2249
2258
  var n = /* @__PURE__ */ new Set();
2250
2259
  if (e.all)
2251
2260
  for (var r = 0, o = Object.values($e); r < o.length; r++)
2252
- _r(s = o[r], e, n, t);
2261
+ Er(s = o[r], e, n, t);
2253
2262
  else
2254
2263
  for (var a in e) {
2255
2264
  var s, c = /^idb\:\/\/(.*)\/(.*)\//.exec(a);
2256
- c && (a = c[1], c = c[2], (s = $e["idb://".concat(a, "/").concat(c)]) && _r(s, e, n, t));
2265
+ c && (a = c[1], c = c[2], (s = $e["idb://".concat(a, "/").concat(c)]) && Er(s, e, n, t));
2257
2266
  }
2258
2267
  n.forEach(function(g) {
2259
2268
  return g();
2260
2269
  });
2261
2270
  }
2262
- function _r(e, t, n, r) {
2271
+ function Er(e, t, n, r) {
2263
2272
  for (var o = [], a = 0, s = Object.entries(e.queries.query); a < s.length; a++) {
2264
2273
  for (var c = s[a], g = c[0], d = [], v = 0, l = c[1]; v < l.length; v++) {
2265
2274
  var h = l[v];
@@ -2275,7 +2284,7 @@ var Rr = { exports: {} };
2275
2284
  e.queries.query[g] = d;
2276
2285
  }
2277
2286
  }
2278
- function pi(e) {
2287
+ function yi(e) {
2279
2288
  var t = e._state, n = e._deps.indexedDB;
2280
2289
  if (t.isBeingOpened || e.idbdb)
2281
2290
  return t.dbReadyPromise.then(function() {
@@ -2294,31 +2303,31 @@ var Rr = { exports: {} };
2294
2303
  var b = e.name, w = t.autoSchema || !o ? n.open(b) : n.open(b, o);
2295
2304
  if (!w)
2296
2305
  throw new L.MissingAPI();
2297
- w.onerror = ye(y), w.onblocked = J(e._fireOnBlocked), w.onupgradeneeded = J(function(m) {
2306
+ w.onerror = ge(y), w.onblocked = J(e._fireOnBlocked), w.onupgradeneeded = J(function(m) {
2298
2307
  var _;
2299
2308
  v = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = ht, v.abort(), w.result.close(), (_ = n.deleteDatabase(b)).onsuccess = _.onerror = J(function() {
2300
2309
  y(new L.NoSuchDatabase("Database ".concat(b, " doesnt exist")));
2301
- })) : (v.onerror = ye(y), m = m.oldVersion > Math.pow(2, 62) ? 0 : m.oldVersion, l = m < 1, e.idbdb = w.result, a && di(e, v), fi(e, m / 10, v, y));
2310
+ })) : (v.onerror = ge(y), m = m.oldVersion > Math.pow(2, 62) ? 0 : m.oldVersion, l = m < 1, e.idbdb = w.result, a && pi(e, v), hi(e, m / 10, v, y));
2302
2311
  }, y), w.onsuccess = J(function() {
2303
2312
  v = null;
2304
- var m, _, S, O, x, A = e.idbdb = w.result, R = wt(A.objectStoreNames);
2305
- if (0 < R.length)
2313
+ var m, _, S, E, x, A = e.idbdb = w.result, C = wt(A.objectStoreNames);
2314
+ if (0 < C.length)
2306
2315
  try {
2307
- var P = A.transaction((O = R).length === 1 ? O[0] : O, "readonly");
2316
+ var D = A.transaction((E = C).length === 1 ? E[0] : E, "readonly");
2308
2317
  if (t.autoSchema)
2309
- _ = A, S = P, (m = e).verno = _.version / 10, S = m._dbSchema = Gt(0, _, S), m._storeNames = wt(_.objectStoreNames, 0), Bt(m, [m._allTables], K(S), S);
2310
- else if (Lt(e, e._dbSchema, P), ((x = _n(Gt(0, (x = e).idbdb, P), x._dbSchema)).add.length || x.change.some(function(T) {
2318
+ _ = A, S = D, (m = e).verno = _.version / 10, S = m._dbSchema = Gt(0, _, S), m._storeNames = wt(_.objectStoreNames, 0), Bt(m, [m._allTables], j(S), S);
2319
+ else if (Lt(e, e._dbSchema, D), ((x = Sn(Gt(0, (x = e).idbdb, D), x._dbSchema)).add.length || x.change.some(function(T) {
2311
2320
  return T.add.length || T.change.length;
2312
2321
  })) && !a)
2313
2322
  return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), A.close(), o = A.version + 1, a = !0, h(c());
2314
- Kt(e, P);
2323
+ Kt(e, D);
2315
2324
  } catch {
2316
2325
  }
2317
2326
  Ze.push(e), A.onversionchange = J(function(T) {
2318
2327
  t.vcFired = !0, e.on("versionchange").fire(T);
2319
2328
  }), A.onclose = J(function(T) {
2320
2329
  e.on("close").fire(T);
2321
- }), l && (x = e._deps, P = b, A = x.indexedDB, x = x.IDBKeyRange, On(A) || P === It || En(A, x).put({ name: P }).catch(Y)), h();
2330
+ }), l && (x = e._deps, D = b, A = x.indexedDB, x = x.IDBKeyRange, xn(A) || D === Ct || On(A, x).put({ name: D }).catch(Y)), h();
2322
2331
  }, y);
2323
2332
  }).catch(function(h) {
2324
2333
  switch (h == null ? void 0 : h.name) {
@@ -2342,12 +2351,12 @@ var Rr = { exports: {} };
2342
2351
  }).finally(function() {
2343
2352
  return clearInterval(g);
2344
2353
  }) : Promise.resolve()).then(c)]).then(function() {
2345
- return s(), t.onReadyBeingFired = [], M.resolve(xn(function() {
2354
+ return s(), t.onReadyBeingFired = [], M.resolve(kn(function() {
2346
2355
  return e.on.ready.fire(e.vip);
2347
2356
  })).then(function h() {
2348
2357
  if (0 < t.onReadyBeingFired.length) {
2349
2358
  var y = t.onReadyBeingFired.reduce(tn, Y);
2350
- return t.onReadyBeingFired = [], M.resolve(xn(function() {
2359
+ return t.onReadyBeingFired = [], M.resolve(kn(function() {
2351
2360
  return y(e.vip);
2352
2361
  })).then(h);
2353
2362
  }
@@ -2369,10 +2378,10 @@ var Rr = { exports: {} };
2369
2378
  y.schema.indexes.forEach(function(b) {
2370
2379
  b.name && (h["idb://".concat(e.name, "/").concat(y.name, "/").concat(b.name)] = new oe(-1 / 0, [[[]]]));
2371
2380
  }), h["idb://".concat(e.name, "/").concat(y.name, "/")] = h["idb://".concat(e.name, "/").concat(y.name, "/:dels")] = new oe(-1 / 0, [[[]]]);
2372
- }), Te(pt).fire(h), In(h, !0)), e;
2381
+ }), Te(pt).fire(h), Rn(h, !0)), e;
2373
2382
  });
2374
2383
  }
2375
- function Rn(e) {
2384
+ function Tn(e) {
2376
2385
  function t(a) {
2377
2386
  return e.next(a);
2378
2387
  }
@@ -2392,13 +2401,13 @@ var Rr = { exports: {} };
2392
2401
  r.push(t);
2393
2402
  return r;
2394
2403
  }
2395
- var gi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2404
+ var mi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2396
2405
  return f(f({}, e), { table: function(t) {
2397
2406
  var n = e.table(t), r = n.schema, o = {}, a = [];
2398
2407
  function s(l, h, y) {
2399
- var b = yt(l), w = o[b] = o[b] || [], m = l == null ? 0 : typeof l == "string" ? 1 : l.length, _ = 0 < h, _ = f(f({}, y), { name: _ ? "".concat(b, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: _, keyTail: h, keyLength: m, extractKey: vn(l), unique: !_ && y.unique });
2400
- return w.push(_), _.isPrimaryKey || a.push(_), 1 < m && s(m === 2 ? l[0] : l.slice(0, m - 1), h + 1, y), w.sort(function(S, O) {
2401
- return S.keyTail - O.keyTail;
2408
+ var b = yt(l), w = o[b] = o[b] || [], m = l == null ? 0 : typeof l == "string" ? 1 : l.length, _ = 0 < h, _ = f(f({}, y), { name: _ ? "".concat(b, "(virtual-from:").concat(y.name, ")") : y.name, lowLevelIndex: y, isVirtual: _, keyTail: h, keyLength: m, extractKey: wn(l), unique: !_ && y.unique });
2409
+ return w.push(_), _.isPrimaryKey || a.push(_), 1 < m && s(m === 2 ? l[0] : l.slice(0, m - 1), h + 1, y), w.sort(function(S, E) {
2410
+ return S.keyTail - E.keyTail;
2402
2411
  }), _;
2403
2412
  }
2404
2413
  t = s(r.primaryKey.keyPath, 0, r.primaryKey), o[":id"] = [t];
@@ -2424,8 +2433,8 @@ var Rr = { exports: {} };
2424
2433
  function m(_) {
2425
2434
  return Object.create(_, { continue: { value: function(S) {
2426
2435
  S != null ? _.continue(zt(S, l.reverse ? e.MAX_KEY : e.MIN_KEY, y)) : l.unique ? _.continue(_.key.slice(0, w).concat(l.reverse ? e.MIN_KEY : e.MAX_KEY, y)) : _.continue();
2427
- } }, continuePrimaryKey: { value: function(S, O) {
2428
- _.continuePrimaryKey(zt(S, e.MAX_KEY, y), O);
2436
+ } }, continuePrimaryKey: { value: function(S, E) {
2437
+ _.continuePrimaryKey(zt(S, e.MAX_KEY, y), E);
2429
2438
  } }, primaryKey: { get: function() {
2430
2439
  return _.primaryKey;
2431
2440
  } }, key: { get: function() {
@@ -2438,18 +2447,18 @@ var Rr = { exports: {} };
2438
2447
  } });
2439
2448
  } });
2440
2449
  } };
2441
- function Tn(e, t, n, r) {
2442
- return n = n || {}, r = r || "", K(e).forEach(function(o) {
2450
+ function Mn(e, t, n, r) {
2451
+ return n = n || {}, r = r || "", j(e).forEach(function(o) {
2443
2452
  var a, s, c;
2444
- ie(t, o) ? (a = e[o], s = t[o], typeof a == "object" && typeof s == "object" && a && s ? (c = Jt(a)) !== Jt(s) ? n[r + o] = t[o] : c === "Object" ? Tn(a, s, n, r + o + ".") : a !== s && (n[r + o] = t[o]) : a !== s && (n[r + o] = t[o])) : n[r + o] = void 0;
2445
- }), K(t).forEach(function(o) {
2453
+ ie(t, o) ? (a = e[o], s = t[o], typeof a == "object" && typeof s == "object" && a && s ? (c = Jt(a)) !== Jt(s) ? n[r + o] = t[o] : c === "Object" ? Mn(a, s, n, r + o + ".") : a !== s && (n[r + o] = t[o]) : a !== s && (n[r + o] = t[o])) : n[r + o] = void 0;
2454
+ }), j(t).forEach(function(o) {
2446
2455
  ie(e, o) || (n[r + o] = t[o]);
2447
2456
  }), n;
2448
2457
  }
2449
- function Mn(e, t) {
2458
+ function jn(e, t) {
2450
2459
  return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
2451
2460
  }
2452
- var yi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2461
+ var bi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2453
2462
  return f(f({}, e), { table: function(t) {
2454
2463
  var n = e.table(t), r = n.schema.primaryKey;
2455
2464
  return f(f({}, n), { mutate: function(o) {
@@ -2489,33 +2498,33 @@ var Rr = { exports: {} };
2489
2498
  }
2490
2499
  return n.mutate(o);
2491
2500
  function v(l) {
2492
- var h, y, b, w = B.trans, m = l.keys || Mn(r, l);
2501
+ var h, y, b, w = B.trans, m = l.keys || jn(r, l);
2493
2502
  if (!m)
2494
2503
  throw new Error("Keys missing");
2495
2504
  return (l = l.type === "add" || l.type === "put" ? f(f({}, l), { keys: m }) : f({}, l)).type !== "delete" && (l.values = k([], l.values, !0)), l.keys && (l.keys = k([], l.keys, !0)), h = n, b = m, ((y = l).type === "add" ? Promise.resolve([]) : h.getMany({ trans: y.trans, keys: b, cache: "immutable" })).then(function(_) {
2496
- var S = m.map(function(O, x) {
2497
- var A, R, P, T = _[x], C = { onerror: null, onsuccess: null };
2498
- return l.type === "delete" ? c.fire.call(C, O, T, w) : l.type === "add" || T === void 0 ? (A = g.fire.call(C, O, l.values[x], w), O == null && A != null && (l.keys[x] = O = A, r.outbound || fe(l.values[x], r.keyPath, O))) : (A = Tn(T, l.values[x]), (R = d.fire.call(C, A, O, T, w)) && (P = l.values[x], Object.keys(R).forEach(function(G) {
2499
- ie(P, G) ? P[G] = R[G] : fe(P, G, R[G]);
2500
- }))), C;
2505
+ var S = m.map(function(E, x) {
2506
+ var A, C, D, T = _[x], I = { onerror: null, onsuccess: null };
2507
+ return l.type === "delete" ? c.fire.call(I, E, T, w) : l.type === "add" || T === void 0 ? (A = g.fire.call(I, E, l.values[x], w), E == null && A != null && (l.keys[x] = E = A, r.outbound || ce(l.values[x], r.keyPath, E))) : (A = Mn(T, l.values[x]), (C = d.fire.call(I, A, E, T, w)) && (D = l.values[x], Object.keys(C).forEach(function(G) {
2508
+ ie(D, G) ? D[G] = C[G] : ce(D, G, C[G]);
2509
+ }))), I;
2501
2510
  });
2502
- return n.mutate(l).then(function(O) {
2503
- for (var x = O.failures, A = O.results, R = O.numFailures, O = O.lastResult, P = 0; P < m.length; ++P) {
2504
- var T = (A || m)[P], C = S[P];
2505
- T == null ? C.onerror && C.onerror(x[P]) : C.onsuccess && C.onsuccess(l.type === "put" && _[P] ? l.values[P] : T);
2511
+ return n.mutate(l).then(function(E) {
2512
+ for (var x = E.failures, A = E.results, C = E.numFailures, E = E.lastResult, D = 0; D < m.length; ++D) {
2513
+ var T = (A || m)[D], I = S[D];
2514
+ T == null ? I.onerror && I.onerror(x[D]) : I.onsuccess && I.onsuccess(l.type === "put" && _[D] ? l.values[D] : T);
2506
2515
  }
2507
- return { failures: x, results: A, numFailures: R, lastResult: O };
2508
- }).catch(function(O) {
2516
+ return { failures: x, results: A, numFailures: C, lastResult: E };
2517
+ }).catch(function(E) {
2509
2518
  return S.forEach(function(x) {
2510
- return x.onerror && x.onerror(O);
2511
- }), Promise.reject(O);
2519
+ return x.onerror && x.onerror(E);
2520
+ }), Promise.reject(E);
2512
2521
  });
2513
2522
  });
2514
2523
  }
2515
2524
  } });
2516
2525
  } });
2517
2526
  } };
2518
- function Sr(e, t, n) {
2527
+ function Or(e, t, n) {
2519
2528
  try {
2520
2529
  if (!t || t.keys.length < e.length)
2521
2530
  return null;
@@ -2526,13 +2535,13 @@ var Rr = { exports: {} };
2526
2535
  return null;
2527
2536
  }
2528
2537
  }
2529
- var mi = { stack: "dbcore", level: -1, create: function(e) {
2538
+ var vi = { stack: "dbcore", level: -1, create: function(e) {
2530
2539
  return { table: function(t) {
2531
2540
  var n = e.table(t);
2532
2541
  return f(f({}, n), { getMany: function(r) {
2533
2542
  if (!r.cache)
2534
2543
  return n.getMany(r);
2535
- var o = Sr(r.keys, r.trans._cache, r.cache === "clone");
2544
+ var o = Or(r.keys, r.trans._cache, r.cache === "clone");
2536
2545
  return o ? M.resolve(o) : n.getMany(r).then(function(a) {
2537
2546
  return r.trans._cache = { keys: r.keys, values: r.cache === "clone" ? Ae(a) : a }, a;
2538
2547
  });
@@ -2541,10 +2550,10 @@ var Rr = { exports: {} };
2541
2550
  } });
2542
2551
  } };
2543
2552
  } };
2544
- function Er(e, t) {
2553
+ function xr(e, t) {
2545
2554
  return e.trans.mode === "readonly" && !!e.subscr && !e.trans.explicit && e.trans.db._options.cache !== "disabled" && !t.schema.primaryKey.outbound;
2546
2555
  }
2547
- function Or(e, t) {
2556
+ function kr(e, t) {
2548
2557
  switch (e) {
2549
2558
  case "query":
2550
2559
  return t.values && !t.unique;
@@ -2555,7 +2564,7 @@ var Rr = { exports: {} };
2555
2564
  return !1;
2556
2565
  }
2557
2566
  }
2558
- var bi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2567
+ var wi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2559
2568
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2560
2569
  return f(f({}, e), { transaction: function(r, o, a) {
2561
2570
  if (B.subscr && o !== "readonly")
@@ -2567,69 +2576,69 @@ var Rr = { exports: {} };
2567
2576
  return [y, new oe((y = b.lower) !== null && y !== void 0 ? y : e.MIN_KEY, (b = b.upper) !== null && b !== void 0 ? b : e.MAX_KEY)];
2568
2577
  }
2569
2578
  var a = e.table(r), s = a.schema, c = s.primaryKey, g = c.extractKey, d = c.outbound, v = f(f({}, a), { mutate: function(h) {
2570
- function y(C) {
2571
- return C = "idb://".concat(t, "/").concat(r, "/").concat(C), S[C] || (S[C] = new oe());
2579
+ function y(I) {
2580
+ return I = "idb://".concat(t, "/").concat(r, "/").concat(I), S[I] || (S[I] = new oe());
2572
2581
  }
2573
- var b, w, m, _ = h.trans, S = h.mutatedParts || (h.mutatedParts = {}), O = y(""), x = y(":dels"), A = h.type, T = h.type === "deleteRange" ? [h.range] : h.type === "delete" ? [h.keys] : h.values.length < 50 ? [Mn(c, h).filter(function(C) {
2574
- return C;
2575
- }), h.values] : [], R = T[0], P = T[1], T = h.trans._cache;
2576
- return N(R) ? (O.addKeys(R), (T = A === "delete" || R.length === P.length ? Sr(R, T) : null) || x.addKeys(R), (T || P) && (b = y, w = T, m = P, s.indexes.forEach(function(C) {
2577
- var G = b(C.name || "");
2582
+ var b, w, m, _ = h.trans, S = h.mutatedParts || (h.mutatedParts = {}), E = y(""), x = y(":dels"), A = h.type, T = h.type === "deleteRange" ? [h.range] : h.type === "delete" ? [h.keys] : h.values.length < 50 ? [jn(c, h).filter(function(I) {
2583
+ return I;
2584
+ }), h.values] : [], C = T[0], D = T[1], T = h.trans._cache;
2585
+ return N(C) ? (E.addKeys(C), (T = A === "delete" || C.length === D.length ? Or(C, T) : null) || x.addKeys(C), (T || D) && (b = y, w = T, m = D, s.indexes.forEach(function(I) {
2586
+ var G = b(I.name || "");
2578
2587
  function F(U) {
2579
- return U != null ? C.extractKey(U) : null;
2588
+ return U != null ? I.extractKey(U) : null;
2580
2589
  }
2581
2590
  function H(U) {
2582
- return C.multiEntry && N(U) ? U.forEach(function(Q) {
2591
+ return I.multiEntry && N(U) ? U.forEach(function(Q) {
2583
2592
  return G.addKey(Q);
2584
2593
  }) : G.addKey(U);
2585
2594
  }
2586
2595
  (w || m).forEach(function(U, $) {
2587
- var le = w && F(w[$]), $ = m && F(m[$]);
2588
- z(le, $) !== 0 && (le != null && H(le), $ != null && H($));
2596
+ var fe = w && F(w[$]), $ = m && F(m[$]);
2597
+ z(fe, $) !== 0 && (fe != null && H(fe), $ != null && H($));
2589
2598
  });
2590
- }))) : R ? (P = { from: R.lower, to: R.upper }, x.add(P), O.add(P)) : (O.add(n), x.add(n), s.indexes.forEach(function(C) {
2591
- return y(C.name).add(n);
2592
- })), a.mutate(h).then(function(C) {
2593
- return !R || h.type !== "add" && h.type !== "put" || O.addKeys(C.results), _.mutatedParts = Ut(_.mutatedParts || {}, S), C;
2599
+ }))) : C ? (D = { from: C.lower, to: C.upper }, x.add(D), E.add(D)) : (E.add(n), x.add(n), s.indexes.forEach(function(I) {
2600
+ return y(I.name).add(n);
2601
+ })), a.mutate(h).then(function(I) {
2602
+ return !C || h.type !== "add" && h.type !== "put" || E.addKeys(I.results), _.mutatedParts = Ut(_.mutatedParts || {}, S), I;
2594
2603
  });
2595
2604
  } }), l = { get: function(h) {
2596
2605
  return [c, new oe(h.key)];
2597
2606
  }, getMany: function(h) {
2598
2607
  return [c, new oe().addKeys(h.keys)];
2599
2608
  }, count: o, query: o, openCursor: o };
2600
- return K(l).forEach(function(h) {
2609
+ return j(l).forEach(function(h) {
2601
2610
  v[h] = function(y) {
2602
- var b = B.subscr, w = !!b, m = Er(B, a) && Or(h, y) ? y.obsSet = {} : b;
2611
+ var b = B.subscr, w = !!b, m = xr(B, a) && kr(h, y) ? y.obsSet = {} : b;
2603
2612
  if (w) {
2604
- var _ = function(P) {
2605
- return P = "idb://".concat(t, "/").concat(r, "/").concat(P), m[P] || (m[P] = new oe());
2606
- }, S = _(""), O = _(":dels"), b = l[h](y), w = b[0], b = b[1];
2607
- if ((h === "query" && w.isPrimaryKey && !y.values ? O : _(w.name || "")).add(b), !w.isPrimaryKey) {
2613
+ var _ = function(D) {
2614
+ return D = "idb://".concat(t, "/").concat(r, "/").concat(D), m[D] || (m[D] = new oe());
2615
+ }, S = _(""), E = _(":dels"), b = l[h](y), w = b[0], b = b[1];
2616
+ if ((h === "query" && w.isPrimaryKey && !y.values ? E : _(w.name || "")).add(b), !w.isPrimaryKey) {
2608
2617
  if (h !== "count") {
2609
2618
  var x = h === "query" && d && y.values && a.query(f(f({}, y), { values: !1 }));
2610
- return a[h].apply(this, arguments).then(function(P) {
2619
+ return a[h].apply(this, arguments).then(function(D) {
2611
2620
  if (h === "query") {
2612
2621
  if (d && y.values)
2613
2622
  return x.then(function(F) {
2614
- return F = F.result, S.addKeys(F), P;
2623
+ return F = F.result, S.addKeys(F), D;
2615
2624
  });
2616
- var T = y.values ? P.result.map(g) : P.result;
2617
- (y.values ? S : O).addKeys(T);
2625
+ var T = y.values ? D.result.map(g) : D.result;
2626
+ (y.values ? S : E).addKeys(T);
2618
2627
  } else if (h === "openCursor") {
2619
- var C = P, G = y.values;
2620
- return C && Object.create(C, { key: { get: function() {
2621
- return O.addKey(C.primaryKey), C.key;
2628
+ var I = D, G = y.values;
2629
+ return I && Object.create(I, { key: { get: function() {
2630
+ return E.addKey(I.primaryKey), I.key;
2622
2631
  } }, primaryKey: { get: function() {
2623
- var F = C.primaryKey;
2624
- return O.addKey(F), F;
2632
+ var F = I.primaryKey;
2633
+ return E.addKey(F), F;
2625
2634
  } }, value: { get: function() {
2626
- return G && S.addKey(C.primaryKey), C.value;
2635
+ return G && S.addKey(I.primaryKey), I.value;
2627
2636
  } } });
2628
2637
  }
2629
- return P;
2638
+ return D;
2630
2639
  });
2631
2640
  }
2632
- O.add(n);
2641
+ E.add(n);
2633
2642
  }
2634
2643
  }
2635
2644
  return a[h].apply(this, arguments);
@@ -2637,7 +2646,7 @@ var Rr = { exports: {} };
2637
2646
  }), v;
2638
2647
  } });
2639
2648
  } };
2640
- function xr(e, t, n) {
2649
+ function Ar(e, t, n) {
2641
2650
  if (n.numFailures === 0)
2642
2651
  return t;
2643
2652
  if (t.type === "deleteRange")
@@ -2649,18 +2658,18 @@ var Rr = { exports: {} };
2649
2658
  return !(a in n.failures);
2650
2659
  })), t);
2651
2660
  }
2652
- function jn(e, t) {
2661
+ function Kn(e, t) {
2653
2662
  return n = e, ((r = t).lower === void 0 || (r.lowerOpen ? 0 < z(n, r.lower) : 0 <= z(n, r.lower))) && (e = e, (t = t).upper === void 0 || (t.upperOpen ? z(e, t.upper) < 0 : z(e, t.upper) <= 0));
2654
2663
  var n, r;
2655
2664
  }
2656
- function kr(e, t, h, r, o, a) {
2665
+ function Pr(e, t, h, r, o, a) {
2657
2666
  if (!h || h.length === 0)
2658
2667
  return e;
2659
2668
  var s = t.query.index, c = s.multiEntry, g = t.query.range, d = r.schema.primaryKey.extractKey, v = s.extractKey, l = (s.lowLevelIndex || s).extractKey, h = h.reduce(function(y, b) {
2660
2669
  var w = y, m = b.type === "add" || b.type === "put" ? b.values.filter(function(x) {
2661
2670
  return x = v(x), c && N(x) ? x.some(function(A) {
2662
- return jn(A, g);
2663
- }) : jn(x, g);
2671
+ return Kn(A, g);
2672
+ }) : Kn(x, g);
2664
2673
  }).map(function(x) {
2665
2674
  return x = Ae(x), a && Object.freeze(x), x;
2666
2675
  }) : [];
@@ -2686,9 +2695,9 @@ var Rr = { exports: {} };
2686
2695
  });
2687
2696
  break;
2688
2697
  case "deleteRange":
2689
- var O = b.range;
2698
+ var E = b.range;
2690
2699
  w = y.filter(function(A) {
2691
- return !jn(d(A), O);
2700
+ return !Kn(d(A), E);
2692
2701
  });
2693
2702
  }
2694
2703
  return w;
@@ -2697,10 +2706,10 @@ var Rr = { exports: {} };
2697
2706
  return z(l(y), l(b)) || z(d(y), d(b));
2698
2707
  }), t.limit && t.limit < 1 / 0 && (h.length > t.limit ? h.length = t.limit : e.length === t.limit && h.length < t.limit && (o.dirty = !0)), a ? Object.freeze(h) : h);
2699
2708
  }
2700
- function Ar(e, t) {
2709
+ function Dr(e, t) {
2701
2710
  return z(e.lower, t.lower) === 0 && z(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2702
2711
  }
2703
- function vi(e, t) {
2712
+ function _i(e, t) {
2704
2713
  return function(n, r, o, a) {
2705
2714
  if (n === void 0)
2706
2715
  return r !== void 0 ? -1 : 0;
@@ -2731,7 +2740,7 @@ var Rr = { exports: {} };
2731
2740
  return r;
2732
2741
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
2733
2742
  }
2734
- function wi(e, t, n, r) {
2743
+ function Si(e, t, n, r) {
2735
2744
  e.subscribers.add(n), r.addEventListener("abort", function() {
2736
2745
  var o, a;
2737
2746
  e.subscribers.delete(n), e.subscribers.size === 0 && (o = e, a = t, setTimeout(function() {
@@ -2739,7 +2748,7 @@ var Rr = { exports: {} };
2739
2748
  }, 3e3));
2740
2749
  });
2741
2750
  }
2742
- var _i = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2751
+ var Ei = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2743
2752
  var t = e.schema.name;
2744
2753
  return f(f({}, e), { transaction: function(n, r, o) {
2745
2754
  var a, s, c = e.transaction(n, r, o);
@@ -2754,8 +2763,8 @@ var Rr = { exports: {} };
2754
2763
  });
2755
2764
  if (c._explicit && g && c.mutatedParts)
2756
2765
  for (var m = 0, _ = Object.values(y.queries.query); m < _.length; m++)
2757
- for (var S = 0, O = (R = _[m]).slice(); S < O.length; S++)
2758
- Dn((P = O[S]).obsSet, c.mutatedParts) && (je(R, P), P.subscribers.forEach(function(F) {
2766
+ for (var S = 0, E = (C = _[m]).slice(); S < E.length; S++)
2767
+ Dn((D = E[S]).obsSet, c.mutatedParts) && (je(C, D), D.subscribers.forEach(function(F) {
2759
2768
  return d.add(F);
2760
2769
  }));
2761
2770
  else if (0 < w.length) {
@@ -2763,10 +2772,10 @@ var Rr = { exports: {} };
2763
2772
  return F.trans !== c;
2764
2773
  });
2765
2774
  for (var x = 0, A = Object.values(y.queries.query); x < A.length; x++)
2766
- for (var R, P, T, C = 0, G = (R = A[x]).slice(); C < G.length; C++)
2767
- (P = G[C]).res != null && c.mutatedParts && (g && !P.dirty ? (T = Object.isFrozen(P.res), T = kr(P.res, P.req, w, b, P, T), P.dirty ? (je(R, P), P.subscribers.forEach(function(F) {
2775
+ for (var C, D, T, I = 0, G = (C = A[x]).slice(); I < G.length; I++)
2776
+ (D = G[I]).res != null && c.mutatedParts && (g && !D.dirty ? (T = Object.isFrozen(D.res), T = Pr(D.res, D.req, w, b, D, T), D.dirty ? (je(C, D), D.subscribers.forEach(function(F) {
2768
2777
  return d.add(F);
2769
- })) : T !== P.res && (P.res = T, P.promise = M.resolve({ result: T }))) : (P.dirty && je(R, P), P.subscribers.forEach(function(F) {
2778
+ })) : T !== D.res && (D.res = T, D.promise = M.resolve({ result: T }))) : (D.dirty && je(C, D), D.subscribers.forEach(function(F) {
2770
2779
  return d.add(F);
2771
2780
  })));
2772
2781
  }
@@ -2785,23 +2794,23 @@ var Rr = { exports: {} };
2785
2794
  if (o.outbound || s.db._options.cache === "disabled" || s.explicit)
2786
2795
  return r.mutate(a);
2787
2796
  var c = $e["idb://".concat(t, "/").concat(n)];
2788
- return c ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || Mn(o, a).some(function(g) {
2797
+ return c ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || jn(o, a).some(function(g) {
2789
2798
  return g == null;
2790
2799
  })) ? (c.optimisticOps.push(a), a.mutatedParts && Wt(a.mutatedParts), s.then(function(g) {
2791
- 0 < g.numFailures && (je(c.optimisticOps, a), (g = xr(0, a, g)) && c.optimisticOps.push(g), a.mutatedParts && Wt(a.mutatedParts));
2800
+ 0 < g.numFailures && (je(c.optimisticOps, a), (g = Ar(0, a, g)) && c.optimisticOps.push(g), a.mutatedParts && Wt(a.mutatedParts));
2792
2801
  }), s.catch(function() {
2793
2802
  je(c.optimisticOps, a), a.mutatedParts && Wt(a.mutatedParts);
2794
2803
  })) : s.then(function(g) {
2795
- var d = xr(0, f(f({}, a), { values: a.values.map(function(y, l) {
2804
+ var d = Ar(0, f(f({}, a), { values: a.values.map(function(y, l) {
2796
2805
  var h, y = (h = o.keyPath) !== null && h !== void 0 && h.includes(".") ? Ae(y) : f({}, y);
2797
- return fe(y, o.keyPath, g.results[l]), y;
2806
+ return ce(y, o.keyPath, g.results[l]), y;
2798
2807
  }) }), g);
2799
2808
  c.optimisticOps.push(d), queueMicrotask(function() {
2800
2809
  return a.mutatedParts && Wt(a.mutatedParts);
2801
2810
  });
2802
2811
  }), s) : r.mutate(a);
2803
2812
  }, query: function(a) {
2804
- if (!Er(B, r) || !Or("query", a))
2813
+ if (!xr(B, r) || !kr("query", a))
2805
2814
  return r.query(a);
2806
2815
  var s = ((d = B.trans) === null || d === void 0 ? void 0 : d.db._options.cache) === "immutable", l = B, c = l.requery, g = l.signal, d = function(b, w, m, _) {
2807
2816
  var S = $e["idb://".concat(b, "/").concat(w)];
@@ -2809,21 +2818,21 @@ var Rr = { exports: {} };
2809
2818
  return [];
2810
2819
  if (!(w = S.queries[m]))
2811
2820
  return [null, !1, S, null];
2812
- var O = w[(_.query ? _.query.index.name : null) || ""];
2813
- if (!O)
2821
+ var E = w[(_.query ? _.query.index.name : null) || ""];
2822
+ if (!E)
2814
2823
  return [null, !1, S, null];
2815
2824
  switch (m) {
2816
2825
  case "query":
2817
- var x = O.find(function(A) {
2818
- return A.req.limit === _.limit && A.req.values === _.values && Ar(A.req.query.range, _.query.range);
2826
+ var x = E.find(function(A) {
2827
+ return A.req.limit === _.limit && A.req.values === _.values && Dr(A.req.query.range, _.query.range);
2819
2828
  });
2820
- return x ? [x, !0, S, O] : [O.find(function(A) {
2821
- return ("limit" in A.req ? A.req.limit : 1 / 0) >= _.limit && (!_.values || A.req.values) && vi(A.req.query.range, _.query.range);
2822
- }), !1, S, O];
2829
+ return x ? [x, !0, S, E] : [E.find(function(A) {
2830
+ return ("limit" in A.req ? A.req.limit : 1 / 0) >= _.limit && (!_.values || A.req.values) && _i(A.req.query.range, _.query.range);
2831
+ }), !1, S, E];
2823
2832
  case "count":
2824
- return x = O.find(function(A) {
2825
- return Ar(A.req.query.range, _.query.range);
2826
- }), [x, !!x, S, O];
2833
+ return x = E.find(function(A) {
2834
+ return Dr(A.req.query.range, _.query.range);
2835
+ }), [x, !!x, S, E];
2827
2836
  }
2828
2837
  }(t, n, "query", a), v = d[0], l = d[1], h = d[2], y = d[3];
2829
2838
  return v && l ? v.obsSet = a.obsSet : (l = r.query(a).then(function(b) {
@@ -2837,8 +2846,8 @@ var Rr = { exports: {} };
2837
2846
  return b;
2838
2847
  }).catch(function(b) {
2839
2848
  return y && v && je(y, v), Promise.reject(b);
2840
- }), v = { obsSet: a.obsSet, promise: l, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, y ? y.push(v) : (y = [v], (h = h || ($e["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = y)), wi(v, y, c, g), v.promise.then(function(b) {
2841
- return { result: kr(b.result, a, h == null ? void 0 : h.optimisticOps, r, v, s) };
2849
+ }), v = { obsSet: a.obsSet, promise: l, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, y ? y.push(v) : (y = [v], (h = h || ($e["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = y)), Si(v, y, c, g), v.promise.then(function(b) {
2850
+ return { result: Pr(b.result, a, h == null ? void 0 : h.optimisticOps, r, v, s) };
2842
2851
  });
2843
2852
  } });
2844
2853
  } });
@@ -2857,7 +2866,7 @@ var Rr = { exports: {} };
2857
2866
  var t = this._versions, n = t.filter(function(r) {
2858
2867
  return r._cfg.version === e;
2859
2868
  })[0];
2860
- return n || (n = new this.Version(e), t.push(n), t.sort(li), n.stores({}), this._state.autoSchema = !1, n);
2869
+ return n || (n = new this.Version(e), t.push(n), t.sort(di), n.stores({}), this._state.autoSchema = !1, n);
2861
2870
  }, ee.prototype._whenReady = function(e) {
2862
2871
  var t = this;
2863
2872
  return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new M(function(n, r) {
@@ -2882,8 +2891,8 @@ var Rr = { exports: {} };
2882
2891
  })), this;
2883
2892
  }, ee.prototype.open = function() {
2884
2893
  var e = this;
2885
- return Ge(De, function() {
2886
- return pi(e);
2894
+ return Ge(Pe, function() {
2895
+ return yi(e);
2887
2896
  });
2888
2897
  }, ee.prototype._close = function() {
2889
2898
  var e = this._state, t = Ze.indexOf(this);
@@ -2905,18 +2914,18 @@ var Rr = { exports: {} };
2905
2914
  }, ee.prototype.delete = function(e) {
2906
2915
  var t = this;
2907
2916
  e === void 0 && (e = { disableAutoOpen: !0 });
2908
- var n = 0 < arguments.length, r = this._state;
2917
+ var n = 0 < arguments.length && typeof arguments[0] != "object", r = this._state;
2909
2918
  return new M(function(o, a) {
2910
2919
  function s() {
2911
2920
  t.close(e);
2912
2921
  var c = t._deps.indexedDB.deleteDatabase(t.name);
2913
2922
  c.onsuccess = J(function() {
2914
2923
  var g, d, v;
2915
- g = t._deps, d = t.name, v = g.indexedDB, g = g.IDBKeyRange, On(v) || d === It || En(v, g).delete(d).catch(Y), o();
2916
- }), c.onerror = ye(a), c.onblocked = t._fireOnBlocked;
2924
+ g = t._deps, d = t.name, v = g.indexedDB, g = g.IDBKeyRange, xn(v) || d === Ct || On(v, g).delete(d).catch(Y), o();
2925
+ }), c.onerror = ge(a), c.onblocked = t._fireOnBlocked;
2917
2926
  }
2918
2927
  if (n)
2919
- throw new L.InvalidArgument("Arguments not allowed in db.delete()");
2928
+ throw new L.InvalidArgument("Invalid closeOptions argument to db.delete()");
2920
2929
  r.isBeingOpened ? r.dbReadyPromise.then(s) : s();
2921
2930
  });
2922
2931
  }, ee.prototype.backendDB = function() {
@@ -2932,7 +2941,7 @@ var Rr = { exports: {} };
2932
2941
  return this._state.autoSchema;
2933
2942
  }, Object.defineProperty(ee.prototype, "tables", { get: function() {
2934
2943
  var e = this;
2935
- return K(this._allTables).map(function(t) {
2944
+ return j(this._allTables).map(function(t) {
2936
2945
  return e._allTables[t];
2937
2946
  });
2938
2947
  }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
@@ -2942,7 +2951,7 @@ var Rr = { exports: {} };
2942
2951
  throw new L.InvalidArgument("Too few arguments");
2943
2952
  for (var a = new Array(o - 1); --o; )
2944
2953
  a[o - 1] = arguments[o];
2945
- return r = a.pop(), [t, Xn(a), r];
2954
+ return r = a.pop(), [t, Vn(a), r];
2946
2955
  }).apply(this, arguments);
2947
2956
  return this._transaction.apply(this, e);
2948
2957
  }, ee.prototype._transaction = function(e, t, n) {
@@ -2989,25 +2998,25 @@ var Rr = { exports: {} };
2989
2998
  else
2990
2999
  try {
2991
3000
  m.create(), m.idbtrans._explicit = !0, v._state.PR1398_maxLoop = 3;
2992
- } catch (O) {
2993
- return O.name === en.InvalidState && v.isOpen() && 0 < --v._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), v.close({ disableAutoOpen: !1 }), v.open().then(function() {
3001
+ } catch (E) {
3002
+ return E.name === en.InvalidState && v.isOpen() && 0 < --v._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), v.close({ disableAutoOpen: !1 }), v.open().then(function() {
2994
3003
  return d(v, l, h, null, b);
2995
- })) : q(O);
3004
+ })) : q(E);
2996
3005
  }
2997
3006
  var _, S = qt(b);
2998
3007
  return S && Je(), w = M.follow(function() {
2999
- var O;
3000
- (_ = b.call(m, m)) && (S ? (O = Ce.bind(null, null), _.then(O, O)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Rn(_)));
3001
- }, w), (_ && typeof _.then == "function" ? M.resolve(_).then(function(O) {
3002
- return m.active ? O : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3008
+ var E;
3009
+ (_ = b.call(m, m)) && (S ? (E = Ie.bind(null, null), _.then(E, E)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Tn(_)));
3010
+ }, w), (_ && typeof _.then == "function" ? M.resolve(_).then(function(E) {
3011
+ return m.active ? E : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3003
3012
  }) : w.then(function() {
3004
3013
  return _;
3005
- })).then(function(O) {
3014
+ })).then(function(E) {
3006
3015
  return y && m._resolve(), m._completion.then(function() {
3007
- return O;
3016
+ return E;
3008
3017
  });
3009
- }).catch(function(O) {
3010
- return m._reject(O), q(O);
3018
+ }).catch(function(E) {
3019
+ return m._reject(E), q(E);
3011
3020
  });
3012
3021
  });
3013
3022
  }).bind(null, this, a, s, o, n);
@@ -3029,7 +3038,7 @@ var Rr = { exports: {} };
3029
3038
  d.dbReadyResolve = l;
3030
3039
  }), d.openCanceller = new M(function(l, h) {
3031
3040
  d.cancelOpen = h;
3032
- }), this._state = d, this.name = e, this.on = ft(this, "populate", "blocked", "versionchange", "close", { ready: [tn, Y] }), this.on.ready.subscribe = Hn(this.on.ready.subscribe, function(l) {
3041
+ }), this._state = d, this.name = e, this.on = ft(this, "populate", "blocked", "versionchange", "close", { ready: [tn, Y] }), this.on.ready.subscribe = Yn(this.on.ready.subscribe, function(l) {
3033
3042
  return function(h, y) {
3034
3043
  ee.vip(function() {
3035
3044
  var b, w = n._state;
@@ -3038,9 +3047,9 @@ var Rr = { exports: {} };
3038
3047
  }));
3039
3048
  });
3040
3049
  };
3041
- }), this.Collection = (o = this, dt(ri.prototype, function(_, m) {
3050
+ }), this.Collection = (o = this, dt(oi.prototype, function(_, m) {
3042
3051
  this.db = o;
3043
- var y = ar, b = null;
3052
+ var y = sr, b = null;
3044
3053
  if (m)
3045
3054
  try {
3046
3055
  y = m();
@@ -3049,9 +3058,9 @@ var Rr = { exports: {} };
3049
3058
  }
3050
3059
  var w = _._ctx, m = w.table, _ = m.hook.reading.fire;
3051
3060
  this._ctx = { table: m, index: w.index, isPrimKey: !w.index || m.schema.primKey.keyPath && w.index === m.schema.primKey.name, range: y, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: b, or: w.or, valueMapper: _ !== ot ? _ : null };
3052
- })), this.Table = (a = this, dt(lr.prototype, function(l, h, y) {
3053
- this.db = a, this._tx = y, this.name = l, this.schema = h, this.hook = a._allTables[l] ? a._allTables[l].hook : ft(null, { creating: [Qr, Y], reading: [Yr, ot], updating: [Vr, Y], deleting: [Xr, Y] });
3054
- })), this.Transaction = (s = this, dt(ai.prototype, function(l, h, y, b, w) {
3061
+ })), this.Table = (a = this, dt(fr.prototype, function(l, h, y) {
3062
+ this.db = a, this._tx = y, this.name = l, this.schema = h, this.hook = a._allTables[l] ? a._allTables[l].hook : ft(null, { creating: [Vr, Y], reading: [Xr, ot], updating: [Zr, Y], deleting: [Jr, Y] });
3063
+ })), this.Transaction = (s = this, dt(ui.prototype, function(l, h, y, b, w) {
3055
3064
  var m = this;
3056
3065
  this.db = s, this.mode = l, this.storeNames = h, this.schema = y, this.chromeTransactionDurability = b, this.idbtrans = null, this.on = ft(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new M(function(_, S) {
3057
3066
  m._resolve = _, m._reject = S;
@@ -3061,9 +3070,9 @@ var Rr = { exports: {} };
3061
3070
  var S = m.active;
3062
3071
  return m.active = !1, m.on.error.fire(_), m.parent ? m.parent._reject(_) : S && m.idbtrans && m.idbtrans.abort(), q(_);
3063
3072
  });
3064
- })), this.Version = (c = this, dt(hi.prototype, function(l) {
3073
+ })), this.Version = (c = this, dt(gi.prototype, function(l) {
3065
3074
  this.db = c, this._cfg = { version: l, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3066
- })), this.WhereClause = (g = this, dt(pr.prototype, function(l, h, y) {
3075
+ })), this.WhereClause = (g = this, dt(yr.prototype, function(l, h, y) {
3067
3076
  if (this.db = g, this._ctx = { table: l, index: h === ":id" ? null : h, or: y }, this._cmp = this._ascending = z, this._descending = function(b, w) {
3068
3077
  return z(w, b);
3069
3078
  }, this._max = function(b, w) {
@@ -3084,7 +3093,7 @@ var Rr = { exports: {} };
3084
3093
  }).map(function(h) {
3085
3094
  return h.on("versionchange").fire(l);
3086
3095
  });
3087
- }, this.use(mi), this.use(_i), this.use(bi), this.use(gi), this.use(yi);
3096
+ }, this.use(vi), this.use(Ei), this.use(wi), this.use(mi), this.use(bi);
3088
3097
  var v = new Proxy(this, { get: function(l, h, y) {
3089
3098
  if (h === "_vip")
3090
3099
  return !0;
@@ -3093,7 +3102,7 @@ var Rr = { exports: {} };
3093
3102
  return Ht(n.table(w), v);
3094
3103
  };
3095
3104
  var b = Reflect.get(l, h, y);
3096
- return b instanceof lr ? Ht(b, v) : h === "tables" ? b.map(function(w) {
3105
+ return b instanceof fr ? Ht(b, v) : h === "tables" ? b.map(function(w) {
3097
3106
  return Ht(w, v);
3098
3107
  }) : h === "_createTransaction" ? function() {
3099
3108
  return Ht(b.apply(this, arguments), v);
@@ -3103,21 +3112,21 @@ var Rr = { exports: {} };
3103
3112
  return l(n);
3104
3113
  });
3105
3114
  }
3106
- var Yt, de = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Kn.prototype.subscribe = function(e, t, n) {
3115
+ var Yt, de = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Oi = (Bn.prototype.subscribe = function(e, t, n) {
3107
3116
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
3108
- }, Kn.prototype[de] = function() {
3117
+ }, Bn.prototype[de] = function() {
3109
3118
  return this;
3110
- }, Kn);
3111
- function Kn(e) {
3119
+ }, Bn);
3120
+ function Bn(e) {
3112
3121
  this._subscribe = e;
3113
3122
  }
3114
3123
  try {
3115
- Yt = { indexedDB: I.indexedDB || I.mozIndexedDB || I.webkitIndexedDB || I.msIndexedDB, IDBKeyRange: I.IDBKeyRange || I.webkitIDBKeyRange };
3124
+ Yt = { indexedDB: R.indexedDB || R.mozIndexedDB || R.webkitIndexedDB || R.msIndexedDB, IDBKeyRange: R.IDBKeyRange || R.webkitIDBKeyRange };
3116
3125
  } catch {
3117
3126
  Yt = { indexedDB: null, IDBKeyRange: null };
3118
3127
  }
3119
- function Dr(e) {
3120
- var t, n = !1, r = new Si(function(o) {
3128
+ function Ir(e) {
3129
+ var t, n = !1, r = new Oi(function(o) {
3121
3130
  var a = qt(e), s, c = !1, g = {}, d = {}, v = { get closed() {
3122
3131
  return c;
3123
3132
  }, unsubscribe: function() {
@@ -3131,18 +3140,18 @@ var Rr = { exports: {} };
3131
3140
  }, b = function() {
3132
3141
  var w, m, _;
3133
3142
  !c && Yt.indexedDB && (g = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3134
- var O = Xe();
3143
+ var E = Xe();
3135
3144
  try {
3136
3145
  a && Je();
3137
- var x = Pe(e, S);
3138
- return x = a ? x.finally(Ce) : x;
3146
+ var x = De(e, S);
3147
+ return x = a ? x.finally(Ie) : x;
3139
3148
  } finally {
3140
- O && Ve();
3149
+ E && Ve();
3141
3150
  }
3142
3151
  }(m = { subscr: w, signal: s.signal, requery: h, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3143
- n = !0, t = S, c || m.signal.aborted || (g = {}, function(O) {
3144
- for (var x in O)
3145
- if (ie(O, x))
3152
+ n = !0, t = S, c || m.signal.aborted || (g = {}, function(E) {
3153
+ for (var x in E)
3154
+ if (ie(E, x))
3146
3155
  return;
3147
3156
  return 1;
3148
3157
  }(d = w) || l || (Te(pt, y), l = !0), ln(function() {
@@ -3163,10 +3172,10 @@ var Rr = { exports: {} };
3163
3172
  }, r;
3164
3173
  }
3165
3174
  var Ue = Se;
3166
- function Bn(e) {
3175
+ function Nn(e) {
3167
3176
  var t = Me;
3168
3177
  try {
3169
- Me = !0, Te.storagemutated.fire(e), In(e, !0);
3178
+ Me = !0, Te.storagemutated.fire(e), Rn(e, !0);
3170
3179
  } finally {
3171
3180
  Me = t;
3172
3181
  }
@@ -3181,13 +3190,13 @@ var Rr = { exports: {} };
3181
3190
  });
3182
3191
  }, getDatabaseNames: function(e) {
3183
3192
  try {
3184
- return t = Ue.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (On(n) ? Promise.resolve(n.databases()).then(function(r) {
3193
+ return t = Ue.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (xn(n) ? Promise.resolve(n.databases()).then(function(r) {
3185
3194
  return r.map(function(o) {
3186
3195
  return o.name;
3187
3196
  }).filter(function(o) {
3188
- return o !== It;
3197
+ return o !== Ct;
3189
3198
  });
3190
- }) : En(n, t).toCollection().primaryKeys()).then(e);
3199
+ }) : On(n, t).toCollection().primaryKeys()).then(e);
3191
3200
  } catch {
3192
3201
  return q(new L.MissingAPI());
3193
3202
  }
@@ -3198,10 +3207,10 @@ var Rr = { exports: {} };
3198
3207
  };
3199
3208
  }, ignoreTransaction: function(e) {
3200
3209
  return B.trans ? Ge(B.transless, e) : e();
3201
- }, vip: xn, async: function(e) {
3210
+ }, vip: kn, async: function(e) {
3202
3211
  return function() {
3203
3212
  try {
3204
- var t = Rn(e.apply(this, arguments));
3213
+ var t = Tn(e.apply(this, arguments));
3205
3214
  return t && typeof t.then == "function" ? t : M.resolve(t);
3206
3215
  } catch (n) {
3207
3216
  return q(n);
@@ -3209,7 +3218,7 @@ var Rr = { exports: {} };
3209
3218
  };
3210
3219
  }, spawn: function(e, t, n) {
3211
3220
  try {
3212
- var r = Rn(e.apply(n, t || []));
3221
+ var r = Tn(e.apply(n, t || []));
3213
3222
  return r && typeof r.then == "function" ? r : M.resolve(r);
3214
3223
  } catch (o) {
3215
3224
  return q(o);
@@ -3221,25 +3230,25 @@ var Rr = { exports: {} };
3221
3230
  }, Promise: M, debug: { get: function() {
3222
3231
  return pe;
3223
3232
  }, set: function(e) {
3224
- qn(e);
3225
- } }, derive: ze, extend: Z, props: xe, override: Hn, Events: ft, on: Te, liveQuery: Dr, extendObservabilitySet: Ut, getByKeyPath: ve, setByKeyPath: fe, delByKeyPath: function(e, t) {
3226
- typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3227
- fe(e, n, void 0);
3233
+ er(e);
3234
+ } }, derive: ze, extend: Z, props: xe, override: Yn, Events: ft, on: Te, liveQuery: Ir, extendObservabilitySet: Ut, getByKeyPath: be, setByKeyPath: ce, delByKeyPath: function(e, t) {
3235
+ typeof t == "string" ? ce(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3236
+ ce(e, n, void 0);
3228
3237
  });
3229
- }, shallowClone: Qn, deepClone: Ae, getObjectDiff: Tn, cmp: z, asap: Yn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Yt, cache: $e, semVer: ge, version: ge.split(".").map(function(e) {
3238
+ }, shallowClone: Xn, deepClone: Ae, getObjectDiff: Mn, cmp: z, asap: Qn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Yt, cache: $e, semVer: "4.0.1", version: "4.0.1".split(".").map(function(e) {
3230
3239
  return parseInt(e);
3231
3240
  }).reduce(function(e, t, n) {
3232
3241
  return e + t / Math.pow(10, 2 * n);
3233
3242
  }) })), Ue.maxKey = gt(Ue.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Te(pt, function(e) {
3234
- Me || (e = new CustomEvent(yn, { detail: e }), Me = !0, dispatchEvent(e), Me = !1);
3235
- }), addEventListener(yn, function(e) {
3236
- e = e.detail, Me || Bn(e);
3243
+ Me || (e = new CustomEvent(mn, { detail: e }), Me = !0, dispatchEvent(e), Me = !1);
3244
+ }), addEventListener(mn, function(e) {
3245
+ e = e.detail, Me || Nn(e);
3237
3246
  }));
3238
- var tt, Me = !1, Pr = function() {
3247
+ var tt, Me = !1, Cr = function() {
3239
3248
  };
3240
- return typeof BroadcastChannel < "u" && ((Pr = function() {
3241
- (tt = new BroadcastChannel(yn)).onmessage = function(e) {
3242
- return e.data && Bn(e.data);
3249
+ return typeof BroadcastChannel < "u" && ((Cr = function() {
3250
+ (tt = new BroadcastChannel(mn)).onmessage = function(e) {
3251
+ return e.data && Nn(e.data);
3243
3252
  };
3244
3253
  })(), typeof tt.unref == "function" && tt.unref(), Te(pt, function(e) {
3245
3254
  Me || tt.postMessage(e);
@@ -3250,19 +3259,21 @@ var Rr = { exports: {} };
3250
3259
  n[t].close({ disableAutoOpen: !1 });
3251
3260
  }
3252
3261
  }), addEventListener("pageshow", function(e) {
3253
- !Se.disableBfCache && e.persisted && (pe && console.debug("Dexie: handling persisted pageshow"), Pr(), Bn({ all: new oe(-1 / 0, [[]]) }));
3262
+ !Se.disableBfCache && e.persisted && (pe && console.debug("Dexie: handling persisted pageshow"), Cr(), Nn({ all: new oe(-1 / 0, [[]]) }));
3254
3263
  })), M.rejectionMapper = function(e, t) {
3255
- return !e || e instanceof Ye || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Zn[e.name] ? e : (t = new Zn[e.name](t || e.message, e), "stack" in e && ke(t, "stack", { get: function() {
3264
+ return !e || e instanceof Ye || e instanceof TypeError || e instanceof SyntaxError || !e.name || !qn[e.name] ? e : (t = new qn[e.name](t || e.message, e), "stack" in e && ke(t, "stack", { get: function() {
3256
3265
  return this.inner.stack;
3257
3266
  } }), t);
3258
- }, qn(pe), f(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: Dr, Entity: sr, cmp: z, default: Se, RangeSet: oe, mergeRanges: bt, rangesOverlap: $t }), { default: Se }), Se;
3267
+ }, er(pe), f(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: Ir, Entity: ur, cmp: z, PropModSymbol: _e, PropModification: gn, replacePrefix: function(e, t) {
3268
+ return new gn({ replacePrefix: [e, t] });
3269
+ }, default: Se, RangeSet: oe, mergeRanges: bt, rangesOverlap: $t }), { default: Se }), Se;
3259
3270
  });
3260
- })(Rr);
3261
- var Di = Rr.exports;
3262
- const $n = /* @__PURE__ */ Ai(Di), Ir = Symbol.for("Dexie"), Un = globalThis[Ir] || (globalThis[Ir] = $n);
3263
- if ($n.semVer !== Un.semVer)
3264
- throw new Error(`Two different versions of Dexie loaded in the same app: ${$n.semVer} and ${Un.semVer}`);
3265
- var j = /* @__PURE__ */ ((p) => (p.MESSAGES = "messages", p.CLOUD = "cloud", p.SERIES = "series", p.TOPICS = "topics", p.WIDGET = "widget", p.WIDGETS = "widgets", p))(j || {}), E = /* @__PURE__ */ ((p) => (p.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", p.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", p.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", p.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", p.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", p.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", p.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", p.NONE = "color:transparent;background-color:transparent;", p.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", p.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", p.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", p.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", p.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", p.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", p.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", p))(E || {}), se = /* @__PURE__ */ ((p) => (p.ADD_SLIDE = "addSlide", p.APP_READY = "appReady", p.API_UPDATE = "apiUpdate", p.APPROVE_MESSAGE = "approveMessage", p.CHANNEL = "channel", p.CLEAN_MESSAGES = "cleanMessages", p.CLOSE_MODAL = "closeModal", p.ERROR = "error", p.GOTO_SLIDE = "gotoSlide", p.HIDE_MESSAGE = "hideMessage", p.HIDE_LABELS = "hideLabels", p.NEXT_SLIDE = "nextSlide", p.PAUSE_PRESENTATION = "pausePresentation", p.PRESENTATION_READY = "presentationReady", p.PREV_SLIDE = "prevSlide", p.RELOAD_PRESENTATION = "reloadPresentation", p.SHOW_MODAL = "showModal", p.STAR_MESSAGE = "starMessage", p.SLIDE_DID_LOAD = "slideDidLoad", p.SLIDE_GOTO = "slideGoto", p.SLIDE_READY = "slideReady", p.SLIDE_TRANSITIONER = "slideTransitioner", p.START_TRANSITIONER = "startTransitioner", p.STORAGE_INIT = "stroageInit", p.SUBSCRIBE = "subscribe", p.REMOVE_CLOUD = "removeCloud", p.UPDATE = "update", p.VERSION = "version", p.WIDGET_UPDATE = "widgetUpdate", p))(se || {}), Vt = /* @__PURE__ */ ((p) => (p.APPROVED = "approved", p.BEFORE = "before", p.DELAYED = "delayed", p.NONE = "none", p.REALTIME = "realtime", p))(Vt || {}), he = /* @__PURE__ */ ((p) => (p.KEYVAL = "keyval", p.LOCAL = "local", p.SESSION = "session", p.DEXIE = "dexie", p.WINDOW = "window", p))(he || {});
3271
+ })(Mr);
3272
+ var Ii = Mr.exports;
3273
+ const Un = /* @__PURE__ */ Di(Ii), Tr = Symbol.for("Dexie"), Wn = globalThis[Tr] || (globalThis[Tr] = Un);
3274
+ if (Un.semVer !== Wn.semVer)
3275
+ throw new Error(`Two different versions of Dexie loaded in the same app: ${Un.semVer} and ${Wn.semVer}`);
3276
+ var K = /* @__PURE__ */ ((p) => (p.MESSAGES = "messages", p.CLOUD = "cloud", p.SERIES = "series", p.TOPICS = "topics", p.WIDGET = "widget", p.WIDGETS = "widgets", p))(K || {}), O = /* @__PURE__ */ ((p) => (p.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", p.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", p.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", p.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", p.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", p.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", p.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", p.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", p.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", p.NONE = "color:transparent;background-color:transparent;", p.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", p.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", p.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", p.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", p.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", p.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", p.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", p))(O || {}), se = /* @__PURE__ */ ((p) => (p.ADD_SLIDE = "addSlide", p.APP_READY = "appReady", p.API_UPDATE = "apiUpdate", p.APPROVE_MESSAGE = "approveMessage", p.CHANNEL = "channel", p.CLEAN_MESSAGES = "cleanMessages", p.CLOSE_MODAL = "closeModal", p.ERROR = "error", p.GOTO_SLIDE = "gotoSlide", p.HIDE_MESSAGE = "hideMessage", p.HIDE_LABELS = "hideLabels", p.NEXT_SLIDE = "nextSlide", p.PAUSE_PRESENTATION = "pausePresentation", p.PRESENTATION_READY = "presentationReady", p.PREV_SLIDE = "prevSlide", p.RELOAD_PRESENTATION = "reloadPresentation", p.SHOW_MODAL = "showModal", p.STAR_MESSAGE = "starMessage", p.SLIDE_DID_LOAD = "slideDidLoad", p.SLIDE_GOTO = "slideGoto", p.SLIDE_READY = "slideReady", p.SLIDE_TRANSITIONER = "slideTransitioner", p.START_TRANSITIONER = "startTransitioner", p.STORAGE_INIT = "stroageInit", p.SUBSCRIBE = "subscribe", p.REMOVE_CLOUD = "removeCloud", p.UPDATE = "update", p.VERSION = "version", p.WIDGET_UPDATE = "widgetUpdate", p))(se || {}), Vt = /* @__PURE__ */ ((p) => (p.APPROVED = "approved", p.BEFORE = "before", p.DELAYED = "delayed", p.NONE = "none", p.REALTIME = "realtime", p))(Vt || {}), he = /* @__PURE__ */ ((p) => (p.KEYVAL = "keyval", p.LOCAL = "local", p.SESSION = "session", p.DEXIE = "dexie", p.WINDOW = "window", p))(he || {});
3266
3277
  function V(p) {
3267
3278
  let i = `${p.type}.${p.topics}`;
3268
3279
  return p.order && (i += `.${p.order}`), p.period && (i += `.${p.period}`), i;
@@ -3277,10 +3288,10 @@ function nt(p) {
3277
3288
  }
3278
3289
  function vt(p, i) {
3279
3290
  var N;
3280
- let u, f, k, I, K;
3291
+ let u, f, k, R, j;
3281
3292
  switch (p.moderation) {
3282
3293
  case Vt.BEFORE:
3283
- u = /* @__PURE__ */ new Date(), f = (N = p.beforeTime) == null ? void 0 : N.split(":"), k = Number.parseInt(f ? f[0] : "00"), I = Number.parseInt(f ? f[1] : "00"), K = Number.parseInt(f ? f[2] : "00"), i.before = u.setHours(k, I, K, 0) / 1e3, i.period || (i.period = u.getDay() === 1 ? 72 : 24);
3294
+ u = /* @__PURE__ */ new Date(), f = (N = p.beforeTime) == null ? void 0 : N.split(":"), k = Number.parseInt(f ? f[0] : "00"), R = Number.parseInt(f ? f[1] : "00"), j = Number.parseInt(f ? f[2] : "00"), i.before = u.setHours(k, R, j, 0) / 1e3, i.period || (i.period = u.getDay() === 1 ? 72 : 24);
3284
3295
  break;
3285
3296
  case Vt.DELAYED:
3286
3297
  p.delay && p.delay > 0 && (i.delay = `${p.delay}`);
@@ -3293,23 +3304,23 @@ function vt(p, i) {
3293
3304
  }
3294
3305
  return i;
3295
3306
  }
3296
- class Tr {
3307
+ class jr {
3297
3308
  constructor(i) {
3298
- D(this, "db");
3299
- D(this, "subscribers", []);
3300
- D(this, "options");
3309
+ P(this, "db");
3310
+ P(this, "subscribers", []);
3311
+ P(this, "options");
3301
3312
  /**
3302
3313
  * Retrieve Cloud Data
3303
3314
  * @param query IQuery
3304
3315
  * @returns IResponse
3305
3316
  */
3306
- D(this, "getCloud", async (i) => {
3307
- const u = await this.db.table(j.CLOUD).where({ id: i.widget }).last().catch(() => {
3317
+ P(this, "getCloud", async (i) => {
3318
+ const u = await this.db.table(K.CLOUD).where({ id: i.widget }).last().catch(() => {
3308
3319
  console.warn(
3309
3320
  "%capi%C %ccloud",
3310
- E.API,
3311
- E.NONE,
3312
- E.CLOUD,
3321
+ O.API,
3322
+ O.NONE,
3323
+ O.CLOUD,
3313
3324
  i.slide,
3314
3325
  i.widget
3315
3326
  );
@@ -3321,13 +3332,13 @@ class Tr {
3321
3332
  * @param query IQuery
3322
3333
  * @returns IResponse
3323
3334
  */
3324
- D(this, "getSeries", async (i) => {
3325
- const u = await this.db.table(j.SERIES).where({ id: i.widget }).last().catch(() => {
3335
+ P(this, "getSeries", async (i) => {
3336
+ const u = await this.db.table(K.SERIES).where({ id: i.widget }).last().catch(() => {
3326
3337
  console.warn(
3327
3338
  "%capi%c %cseries",
3328
- E.API,
3329
- E.NONE,
3330
- E.SERIES,
3339
+ O.API,
3340
+ O.NONE,
3341
+ O.SERIES,
3331
3342
  i.slide,
3332
3343
  i.widget
3333
3344
  );
@@ -3339,32 +3350,32 @@ class Tr {
3339
3350
  * @param query IQuery
3340
3351
  * @returns IResponse
3341
3352
  */
3342
- D(this, "getMessages", async (i) => {
3343
- const u = (I) => I.widget_id === i.widget, f = (I) => I.utc > ((i == null ? void 0 : i.since) || 0), k = (I) => (I == null ? void 0 : I.visible) !== 0;
3353
+ P(this, "getMessages", async (i) => {
3354
+ const u = (R) => R.widget_id === i.widget, f = (R) => R.utc > ((i == null ? void 0 : i.since) || 0), k = (R) => (R == null ? void 0 : R.visible) !== 0;
3344
3355
  try {
3345
- const I = await this.db.table(j.TOPICS).orderBy("utc").reverse().filter(u).filter(f).filter(k).limit((i == null ? void 0 : i.limit) ?? 25).toArray().catch(() => {
3356
+ const R = await this.db.table(K.TOPICS).orderBy("utc").reverse().filter(u).filter(f).filter(k).limit((i == null ? void 0 : i.limit) ?? 25).toArray().catch(() => {
3346
3357
  console.warn(
3347
3358
  "%capi%c %cmessages",
3348
- E.API,
3349
- E.NONE,
3350
- E.MESSAGES,
3359
+ O.API,
3360
+ O.NONE,
3361
+ O.MESSAGES,
3351
3362
  i.slide,
3352
3363
  i.widget
3353
3364
  );
3354
3365
  });
3355
- if (I.length === 0)
3366
+ if (R.length === 0)
3356
3367
  return { data: null, message: "No Messages error", success: !1 };
3357
- const K = I[0] ? I[0].title : "No title", N = I.map(
3358
- (be) => be.message_id
3359
- ), te = (await this.db.table(j.MESSAGES).where("id").anyOf(N).toArray().then((be) => be.sort((ie, xe) => xe.utc - ie.utc))).map(
3360
- (be) => be.data
3368
+ const j = R[0] ? R[0].title : "No title", N = R.map(
3369
+ (me) => me.message_id
3370
+ ), te = (await this.db.table(K.MESSAGES).where("id").anyOf(N).toArray().then((me) => me.sort((ie, xe) => xe.utc - ie.utc))).map(
3371
+ (me) => me.data
3361
3372
  );
3362
3373
  return {
3363
3374
  data: {
3364
3375
  presentation: (i == null ? void 0 : i.presentation) || "not set",
3365
3376
  slide: (i == null ? void 0 : i.slide) || "not set",
3366
3377
  messages: te,
3367
- title: K,
3378
+ title: j,
3368
3379
  topics: [i.dashboard, i.widget].join("-"),
3369
3380
  query: i
3370
3381
  },
@@ -3381,22 +3392,22 @@ class Tr {
3381
3392
  * @param data
3382
3393
  * @returns number
3383
3394
  */
3384
- D(this, "setCloud", async (i, u) => i.type === j.CLOUD && u !== "" ? await this.db.table(j.CLOUD).put({
3395
+ P(this, "setCloud", async (i, u) => i.type === K.CLOUD && u !== "" ? await this.db.table(K.CLOUD).put({
3385
3396
  id: i.widget,
3386
3397
  dashboard_id: i.dashboard,
3387
3398
  data: u.data
3388
- }).then(() => 201).catch((f) => (console.error("%cstorage", E.STORAGE, "set", i, f), 400)) : 400);
3399
+ }).then(() => 201).catch((f) => (console.error("%cstorage", O.STORAGE, "set", i, f), 400)) : 400);
3389
3400
  /**
3390
3401
  * Update Series
3391
3402
  * @param query IQuery
3392
3403
  * @param data
3393
3404
  * @returns number
3394
3405
  */
3395
- D(this, "setSeries", async (i, u) => i.type === j.SERIES && u !== "" ? await this.db.table(j.SERIES).put({
3406
+ P(this, "setSeries", async (i, u) => i.type === K.SERIES && u !== "" ? await this.db.table(K.SERIES).put({
3396
3407
  id: i.widget,
3397
3408
  dashboard_id: i.dashboard,
3398
3409
  data: u.data
3399
- }).then(() => 201).catch((f) => (console.error("%cstorage", E.STORAGE, "set", i, f), 400)) : 400);
3410
+ }).then(() => 201).catch((f) => (console.error("%cstorage", O.STORAGE, "set", i, f), 400)) : 400);
3400
3411
  /**
3401
3412
  * Update Messages
3402
3413
  * @param query IQuery
@@ -3406,59 +3417,59 @@ class Tr {
3406
3417
  * @param data.data.messages IMessages
3407
3418
  * @returns number
3408
3419
  */
3409
- D(this, "setMessages", async (i, u) => {
3410
- if (i.type !== j.MESSAGES)
3420
+ P(this, "setMessages", async (i, u) => {
3421
+ if (i.type !== K.MESSAGES)
3411
3422
  return 400;
3412
3423
  const f = u.title;
3413
3424
  try {
3414
3425
  return u.data.messages.forEach(async (k) => {
3415
- var I, K, N;
3416
- await this.db.table(j.MESSAGES).put({ id: k.id, utc: k.utc, data: k }), await this.db.table(j.TOPICS).put({
3426
+ var R, j, N;
3427
+ await this.db.table(K.MESSAGES).put({ id: k.id, utc: k.utc, data: k }), await this.db.table(K.TOPICS).put({
3417
3428
  widget_id: i.widget,
3418
3429
  message_id: k.id,
3419
3430
  dashboard_id: i.dashboard,
3420
3431
  title: f,
3421
- engagement: (I = k.dynamics) == null ? void 0 : I.engagement,
3422
- impressions: (K = k.dynamics) == null ? void 0 : K.semrush_visits,
3432
+ engagement: (R = k.dynamics) == null ? void 0 : R.engagement,
3433
+ impressions: (j = k.dynamics) == null ? void 0 : j.semrush_visits,
3423
3434
  reach: (N = k.dynamics) == null ? void 0 : N.potential_reach,
3424
3435
  sentiment: k.topics[0].sentiment,
3425
3436
  utc: k.utc
3426
3437
  });
3427
3438
  }), 201;
3428
3439
  } catch (k) {
3429
- return console.error("%cstorage", E.STORAGE, "set", i, k), 400;
3440
+ return console.error("%cstorage", O.STORAGE, "set", i, k), 400;
3430
3441
  }
3431
3442
  });
3432
3443
  /**
3433
3444
  * Wipe Message data after number of seconds
3434
3445
  * @param retentionDuration
3435
3446
  */
3436
- D(this, "cleanMessages", async (i) => {
3437
- const u = Date.now() / 1e3, f = (I) => I.utc < u - i, k = (I) => I.utc < u - i;
3438
- return await this.db.table(j.TOPICS).orderBy("utc").filter(f).modify((I, K) => {
3439
- delete K.value;
3440
- }).catch((I) => (console.error(
3447
+ P(this, "cleanMessages", async (i) => {
3448
+ const u = Date.now() / 1e3, f = (R) => R.utc < u - i, k = (R) => R.utc < u - i;
3449
+ return await this.db.table(K.TOPICS).orderBy("utc").filter(f).modify((R, j) => {
3450
+ delete j.value;
3451
+ }).catch((R) => (console.error(
3441
3452
  "%cstorage%c %clean",
3442
- E.STORAGE,
3443
- E.NONE,
3444
- E.MESSAGES,
3445
- I
3446
- ), 0)), await this.db.table(j.MESSAGES).orderBy("utc").filter(k).modify((I, K) => {
3447
- delete K.value;
3448
- }).catch((I) => (console.error(
3453
+ O.STORAGE,
3454
+ O.NONE,
3455
+ O.MESSAGES,
3456
+ R
3457
+ ), 0)), await this.db.table(K.MESSAGES).orderBy("utc").filter(k).modify((R, j) => {
3458
+ delete j.value;
3459
+ }).catch((R) => (console.error(
3449
3460
  "%cstorage%c %clean",
3450
- E.STORAGE,
3451
- E.NONE,
3452
- E.MESSAGES,
3453
- I
3461
+ O.STORAGE,
3462
+ O.NONE,
3463
+ O.MESSAGES,
3464
+ R
3454
3465
  ), 0));
3455
3466
  });
3456
- D(this, "hideMessage", async (i, u) => {
3457
- await this.db.table(j.TOPICS).where("message_id").equals(i).modify({ visible: u }).catch((f) => (console.error(
3467
+ P(this, "hideMessage", async (i, u) => {
3468
+ await this.db.table(K.TOPICS).where("message_id").equals(i).modify({ visible: u }).catch((f) => (console.error(
3458
3469
  "%cstorage%c %chide",
3459
- E.STORAGE,
3460
- E.NONE,
3461
- E.HIDE,
3470
+ O.STORAGE,
3471
+ O.NONE,
3472
+ O.HIDE,
3462
3473
  f
3463
3474
  ), 0));
3464
3475
  });
@@ -3467,23 +3478,23 @@ class Tr {
3467
3478
  * @param query IQuery
3468
3479
  * @returns number
3469
3480
  */
3470
- D(this, "setWidget", async (i) => await this.db.table(j.WIDGETS).put({
3481
+ P(this, "setWidget", async (i) => await this.db.table(K.WIDGETS).put({
3471
3482
  id: i.widget,
3472
3483
  dashboard_id: i.dashboard,
3473
3484
  type: i.type
3474
- }).then(() => 201).catch((u) => (console.error("%cstorage", E.STORAGE, j.WIDGET, i, u), 400)));
3485
+ }).then(() => 201).catch((u) => (console.error("%cstorage", O.STORAGE, K.WIDGET, i, u), 400)));
3475
3486
  /**
3476
3487
  * Add component subscriber
3477
3488
  * @param query IQuery
3478
3489
  * @returns null
3479
3490
  */
3480
- D(this, "subscribe", (i) => (i = nt(i), this.subscribers.filter(
3491
+ P(this, "subscribe", (i) => (i = nt(i), this.subscribers.filter(
3481
3492
  (f) => f.widget === i.widget
3482
- ).length > 0 || (i.type === j.MESSAGES && (i = vt(this.options, i)), console.debug(
3493
+ ).length > 0 || (i.type === K.MESSAGES && (i = vt(this.options, i)), console.debug(
3483
3494
  "%cstorage%c %csubscribe",
3484
- E.STORAGE,
3485
- E.NONE,
3486
- E.SUBSCRIBE,
3495
+ O.STORAGE,
3496
+ O.NONE,
3497
+ O.SUBSCRIBE,
3487
3498
  i.slide,
3488
3499
  i.widget
3489
3500
  ), this.subscribers.push(i)), null));
@@ -3491,8 +3502,8 @@ class Tr {
3491
3502
  * Get current subscribers
3492
3503
  * @returns IQuery[]
3493
3504
  */
3494
- D(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3495
- this.options = i, this.db = new Un(i.app), this.db.version(2).stores({
3505
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3506
+ this.options = i, this.db = new Wn(i.app), this.db.version(2).stores({
3496
3507
  player: "id,title,name,location",
3497
3508
  monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
3498
3509
  display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
@@ -3506,42 +3517,42 @@ class Tr {
3506
3517
  }), this.db.open();
3507
3518
  }
3508
3519
  }
3509
- function Wn(p) {
3520
+ function zn(p) {
3510
3521
  return new Promise((i, u) => {
3511
3522
  p.oncomplete = p.onsuccess = () => i(p.result), p.onabort = p.onerror = () => u(p.error);
3512
3523
  });
3513
3524
  }
3514
- function Pi(p, i) {
3525
+ function Ci(p, i) {
3515
3526
  const u = indexedDB.open(p);
3516
3527
  u.onupgradeneeded = () => u.result.createObjectStore(i);
3517
- const f = Wn(u);
3518
- return (k, I) => f.then((K) => I(K.transaction(i, k).objectStore(i)));
3528
+ const f = zn(u);
3529
+ return (k, R) => f.then((j) => R(j.transaction(i, k).objectStore(i)));
3519
3530
  }
3520
- let Gn;
3521
- function Mr() {
3522
- return Gn || (Gn = Pi("keyval-store", "keyval")), Gn;
3531
+ let Ln;
3532
+ function Kr() {
3533
+ return Ln || (Ln = Ci("keyval-store", "keyval")), Ln;
3523
3534
  }
3524
- function Ln(p, i = Mr()) {
3525
- return i("readonly", (u) => Wn(u.get(p)));
3535
+ function Fn(p, i = Kr()) {
3536
+ return i("readonly", (u) => zn(u.get(p)));
3526
3537
  }
3527
- function Xt(p, i, u = Mr()) {
3528
- return u("readwrite", (f) => (f.put(i, p), Wn(f.transaction)));
3538
+ function Xt(p, i, u = Kr()) {
3539
+ return u("readwrite", (f) => (f.put(i, p), zn(f.transaction)));
3529
3540
  }
3530
- class jr {
3541
+ class Br {
3531
3542
  constructor(i) {
3532
- D(this, "subscribers", []);
3533
- D(this, "options");
3534
- D(this, "getCloud", async (i) => {
3543
+ P(this, "subscribers", []);
3544
+ P(this, "options");
3545
+ P(this, "getCloud", async (i) => {
3535
3546
  const u = V(i);
3536
- return await Ln(u).then((f) => f).catch(() => (console.warn("%capi", E.API, j.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 }));
3547
+ return await Fn(u).then((f) => f).catch(() => (console.warn("%capi", O.API, K.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 }));
3537
3548
  });
3538
- D(this, "getSeries", async (i) => {
3549
+ P(this, "getSeries", async (i) => {
3539
3550
  const u = V(i);
3540
- return await Ln(u).then((f) => f).catch(() => (console.warn("%capi", E.API, j.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 }));
3551
+ return await Fn(u).then((f) => f).catch(() => (console.warn("%capi", O.API, K.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 }));
3541
3552
  });
3542
- D(this, "getMessages", async (i) => {
3553
+ P(this, "getMessages", async (i) => {
3543
3554
  const u = V(i);
3544
- return await Ln(u).then((f) => f).catch(() => (console.warn("%capi", E.API, j.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 }));
3555
+ return await Fn(u).then((f) => f).catch(() => (console.warn("%capi", O.API, K.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 }));
3545
3556
  });
3546
3557
  /**
3547
3558
  * Update Cloud
@@ -3549,11 +3560,11 @@ class jr {
3549
3560
  * @param data
3550
3561
  * @returns number
3551
3562
  */
3552
- D(this, "setCloud", async (i, u) => {
3563
+ P(this, "setCloud", async (i, u) => {
3553
3564
  if (!u.success)
3554
3565
  return 400;
3555
3566
  const f = V(i);
3556
- return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", E.STORAGE, j.CLOUD, i, k), 400));
3567
+ return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", O.STORAGE, K.CLOUD, i, k), 400));
3557
3568
  });
3558
3569
  /**
3559
3570
  * Update Series
@@ -3561,11 +3572,11 @@ class jr {
3561
3572
  * @param data
3562
3573
  * @returns bumber
3563
3574
  */
3564
- D(this, "setSeries", async (i, u) => {
3575
+ P(this, "setSeries", async (i, u) => {
3565
3576
  if (!u.success)
3566
3577
  return 400;
3567
3578
  const f = V(i);
3568
- return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", E.STORAGE, j.SERIES, i, k), 400));
3579
+ return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", O.STORAGE, K.SERIES, i, k), 400));
3569
3580
  });
3570
3581
  /**
3571
3582
  * Update Messages
@@ -3573,14 +3584,14 @@ class jr {
3573
3584
  * @param data
3574
3585
  * @returns number
3575
3586
  */
3576
- D(this, "setMessages", async (i, u) => {
3587
+ P(this, "setMessages", async (i, u) => {
3577
3588
  if (!u.success)
3578
3589
  return 400;
3579
3590
  const f = V(i);
3580
- return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", E.STORAGE, j.MESSAGES, i, k), 400));
3591
+ return delete u.success, delete u.message, await Xt(f, u).then(() => 201).catch((k) => (console.error("%cstorage", O.STORAGE, K.MESSAGES, i, k), 400));
3581
3592
  });
3582
- D(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3583
- D(this, "hideMessage", async (i, u) => {
3593
+ P(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3594
+ P(this, "hideMessage", async (i, u) => {
3584
3595
  console.debug(`hideMessage ${i} ${u} not implemented for ${this.options.storage}`);
3585
3596
  });
3586
3597
  /**
@@ -3588,26 +3599,26 @@ class jr {
3588
3599
  * @param query IQuery
3589
3600
  * @returns number
3590
3601
  */
3591
- D(this, "setWidget", async (i) => {
3602
+ P(this, "setWidget", async (i) => {
3592
3603
  const u = V(i), f = {
3593
3604
  id: i.widget,
3594
3605
  dashboard_id: i.dashboard,
3595
3606
  type: i.type
3596
3607
  };
3597
- return await Xt(u, f).then(() => 201).catch((k) => (console.error("%cstorage", E.STORAGE, j.WIDGET, i, k), 400));
3608
+ return await Xt(u, f).then(() => 201).catch((k) => (console.error("%cstorage", O.STORAGE, K.WIDGET, i, k), 400));
3598
3609
  });
3599
3610
  /**
3600
3611
  * Add component subscriber
3601
3612
  * @param query IQuery
3602
3613
  * @returns null
3603
3614
  */
3604
- D(this, "subscribe", (i) => (i = nt(i), i.type === j.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3615
+ P(this, "subscribe", (i) => (i = nt(i), i.type === K.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3605
3616
  (f) => f.widget === i.widget
3606
3617
  ).length > 0 || (console.debug(
3607
3618
  "%cstorage%c %csubscribe",
3608
- E.STORAGE,
3609
- E.NONE,
3610
- E.SUBSCRIBE,
3619
+ O.STORAGE,
3620
+ O.NONE,
3621
+ O.SUBSCRIBE,
3611
3622
  i.slide,
3612
3623
  i.widget
3613
3624
  ), this.subscribers.push(i)), null));
@@ -3615,36 +3626,36 @@ class jr {
3615
3626
  * Get current subscribers
3616
3627
  * @returns IQuery[]
3617
3628
  */
3618
- D(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3629
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3619
3630
  this.options = i;
3620
3631
  }
3621
3632
  }
3622
- class Kr {
3633
+ class Nr {
3623
3634
  constructor(i) {
3624
- D(this, "subscribers", []);
3625
- D(this, "options");
3626
- D(this, "getCloud", async (i) => {
3635
+ P(this, "subscribers", []);
3636
+ P(this, "options");
3637
+ P(this, "getCloud", async (i) => {
3627
3638
  const u = V(i);
3628
3639
  try {
3629
3640
  return localStorage.getObject(u);
3630
3641
  } catch {
3631
- return console.warn("%capi", E.API, j.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3642
+ return console.warn("%capi", O.API, K.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3632
3643
  }
3633
3644
  });
3634
- D(this, "getSeries", async (i) => {
3645
+ P(this, "getSeries", async (i) => {
3635
3646
  const u = V(i);
3636
3647
  try {
3637
3648
  return localStorage.getObject(u);
3638
3649
  } catch {
3639
- return console.warn("%capi", E.API, j.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3650
+ return console.warn("%capi", O.API, K.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3640
3651
  }
3641
3652
  });
3642
- D(this, "getMessages", async (i) => {
3653
+ P(this, "getMessages", async (i) => {
3643
3654
  const u = V(i);
3644
3655
  try {
3645
3656
  return localStorage.getObject(u);
3646
3657
  } catch {
3647
- return console.warn("%capi", E.API, j.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3658
+ return console.warn("%capi", O.API, K.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3648
3659
  }
3649
3660
  });
3650
3661
  /**
@@ -3653,12 +3664,12 @@ class Kr {
3653
3664
  * @param data
3654
3665
  * @returns number
3655
3666
  */
3656
- D(this, "setCloud", async (i, u) => {
3667
+ P(this, "setCloud", async (i, u) => {
3657
3668
  const f = V(i);
3658
3669
  try {
3659
3670
  return localStorage.setObject(f, u), 201;
3660
3671
  } catch (k) {
3661
- return console.error("%cstorage", E.STORAGE, j.CLOUD, i, k), 400;
3672
+ return console.error("%cstorage", O.STORAGE, K.CLOUD, i, k), 400;
3662
3673
  }
3663
3674
  });
3664
3675
  /**
@@ -3667,12 +3678,12 @@ class Kr {
3667
3678
  * @param data
3668
3679
  * @returns number
3669
3680
  */
3670
- D(this, "setSeries", async (i, u) => {
3681
+ P(this, "setSeries", async (i, u) => {
3671
3682
  const f = V(i);
3672
3683
  try {
3673
3684
  return localStorage.setObject(f, u), 201;
3674
3685
  } catch (k) {
3675
- return console.error("%cstorage", E.STORAGE, j.SERIES, i, k), 400;
3686
+ return console.error("%cstorage", O.STORAGE, K.SERIES, i, k), 400;
3676
3687
  }
3677
3688
  });
3678
3689
  /**
@@ -3681,24 +3692,24 @@ class Kr {
3681
3692
  * @param data
3682
3693
  * @returns number
3683
3694
  */
3684
- D(this, "setMessages", async (i, u) => {
3695
+ P(this, "setMessages", async (i, u) => {
3685
3696
  const f = V(i);
3686
3697
  try {
3687
3698
  return localStorage.setObject(f, u), 200;
3688
3699
  } catch (k) {
3689
- return console.error("%cstorage", E.STORAGE, j.MESSAGES, i, k), 400;
3700
+ return console.error("%cstorage", O.STORAGE, K.MESSAGES, i, k), 400;
3690
3701
  }
3691
3702
  });
3692
- D(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3693
- D(this, "hideMessage", async (i, u) => {
3703
+ P(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3704
+ P(this, "hideMessage", async (i, u) => {
3694
3705
  console.debug(`hideMessage ${i} ${u} not implemented for ${this.options.storage}`);
3695
3706
  });
3696
- D(this, "setWidget", async (i) => {
3707
+ P(this, "setWidget", async (i) => {
3697
3708
  const u = `widget.${i.widget}`;
3698
3709
  try {
3699
3710
  return localStorage.setObject(u, i), 201;
3700
3711
  } catch (f) {
3701
- return console.error("%cstorage", E.STORAGE, j.WIDGET, i, f), 400;
3712
+ return console.error("%cstorage", O.STORAGE, K.WIDGET, i, f), 400;
3702
3713
  }
3703
3714
  });
3704
3715
  /**
@@ -3706,13 +3717,13 @@ class Kr {
3706
3717
  * @param query IQuery
3707
3718
  * @returns null
3708
3719
  */
3709
- D(this, "subscribe", (i) => (i = nt(i), i.type === j.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3720
+ P(this, "subscribe", (i) => (i = nt(i), i.type === K.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3710
3721
  (f) => f.widget === i.widget
3711
3722
  ).length || (console.debug(
3712
3723
  "%cstorage%c %csubscribe",
3713
- E.STORAGE,
3714
- E.NONE,
3715
- E.SUBSCRIBE,
3724
+ O.STORAGE,
3725
+ O.NONE,
3726
+ O.SUBSCRIBE,
3716
3727
  i.slide,
3717
3728
  i.widget
3718
3729
  ), this.subscribers.push(i)), null));
@@ -3720,7 +3731,7 @@ class Kr {
3720
3731
  * Get current subscribers
3721
3732
  * @returns IQuery[]
3722
3733
  */
3723
- D(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3734
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3724
3735
  this.options = i, Storage.prototype.setObject = function(u, f) {
3725
3736
  this.setObject(u, JSON.stringify(f));
3726
3737
  }, Storage.prototype.getObject = function(u) {
@@ -3729,32 +3740,32 @@ class Kr {
3729
3740
  };
3730
3741
  }
3731
3742
  }
3732
- class Br {
3743
+ class Gr {
3733
3744
  constructor(i) {
3734
- D(this, "subscribers", []);
3735
- D(this, "options");
3736
- D(this, "getCloud", async (i) => {
3745
+ P(this, "subscribers", []);
3746
+ P(this, "options");
3747
+ P(this, "getCloud", async (i) => {
3737
3748
  const u = V(i);
3738
3749
  try {
3739
3750
  return sessionStorage.getObject(u);
3740
3751
  } catch {
3741
- return console.warn("%capi", E.API, j.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3752
+ return console.warn("%capi", O.API, K.CLOUD, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3742
3753
  }
3743
3754
  });
3744
- D(this, "getSeries", async (i) => {
3755
+ P(this, "getSeries", async (i) => {
3745
3756
  const u = V(i);
3746
3757
  try {
3747
3758
  return sessionStorage.getObject(u);
3748
3759
  } catch {
3749
- return console.warn("%capi", E.API, j.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3760
+ return console.warn("%capi", O.API, K.SERIES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3750
3761
  }
3751
3762
  });
3752
- D(this, "getMessages", async (i) => {
3763
+ P(this, "getMessages", async (i) => {
3753
3764
  const u = V(i);
3754
3765
  try {
3755
3766
  return sessionStorage.getObject(u);
3756
3767
  } catch {
3757
- return console.warn("%capi", E.API, j.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3768
+ return console.warn("%capi", O.API, K.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3758
3769
  }
3759
3770
  });
3760
3771
  /**
@@ -3763,12 +3774,12 @@ class Br {
3763
3774
  * @param data
3764
3775
  * @returns number
3765
3776
  */
3766
- D(this, "setCloud", async (i, u) => {
3777
+ P(this, "setCloud", async (i, u) => {
3767
3778
  const f = V(i);
3768
3779
  try {
3769
3780
  return sessionStorage.setObject(f, u), 201;
3770
3781
  } catch (k) {
3771
- return console.error("%cstorage", E.STORAGE, j.CLOUD, i, k), 400;
3782
+ return console.error("%cstorage", O.STORAGE, K.CLOUD, i, k), 400;
3772
3783
  }
3773
3784
  });
3774
3785
  /**
@@ -3777,12 +3788,12 @@ class Br {
3777
3788
  * @param data
3778
3789
  * @returns number
3779
3790
  */
3780
- D(this, "setSeries", async (i, u) => {
3791
+ P(this, "setSeries", async (i, u) => {
3781
3792
  const f = V(i);
3782
3793
  try {
3783
3794
  return sessionStorage.setObject(f, u), 201;
3784
3795
  } catch (k) {
3785
- return console.error("%cstorage", E.STORAGE, j.SERIES, i, k), 400;
3796
+ return console.error("%cstorage", O.STORAGE, K.SERIES, i, k), 400;
3786
3797
  }
3787
3798
  });
3788
3799
  /**
@@ -3791,24 +3802,24 @@ class Br {
3791
3802
  * @param data
3792
3803
  * @returns number
3793
3804
  */
3794
- D(this, "setMessages", async (i, u) => {
3805
+ P(this, "setMessages", async (i, u) => {
3795
3806
  const f = V(i);
3796
3807
  try {
3797
3808
  return sessionStorage.setObject(f, u), 200;
3798
3809
  } catch (k) {
3799
- return console.error("%cstorage", E.STORAGE, j.MESSAGES, i, k), 400;
3810
+ return console.error("%cstorage", O.STORAGE, K.MESSAGES, i, k), 400;
3800
3811
  }
3801
3812
  });
3802
- D(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3803
- D(this, "hideMessage", async (i, u) => {
3813
+ P(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3814
+ P(this, "hideMessage", async (i, u) => {
3804
3815
  console.debug(`hideMessage ${i} ${u} not implemented for ${this.options.storage}`);
3805
3816
  });
3806
- D(this, "setWidget", async (i) => {
3817
+ P(this, "setWidget", async (i) => {
3807
3818
  const u = `widget.${i.widget}`;
3808
3819
  try {
3809
3820
  return sessionStorage.setObject(u, i), 201;
3810
3821
  } catch (f) {
3811
- return console.error("%cstorage", E.STORAGE, j.WIDGET, i, f), 400;
3822
+ return console.error("%cstorage", O.STORAGE, K.WIDGET, i, f), 400;
3812
3823
  }
3813
3824
  });
3814
3825
  /**
@@ -3816,13 +3827,13 @@ class Br {
3816
3827
  * @param query IQuery
3817
3828
  * @returns null
3818
3829
  */
3819
- D(this, "subscribe", (i) => (i = nt(i), i.type === j.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3830
+ P(this, "subscribe", (i) => (i = nt(i), i.type === K.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3820
3831
  (f) => f.widget === i.widget
3821
3832
  ).length || (console.debug(
3822
3833
  "%cstorage%c %csubscribe",
3823
- E.STORAGE,
3824
- E.NONE,
3825
- E.SUBSCRIBE,
3834
+ O.STORAGE,
3835
+ O.NONE,
3836
+ O.SUBSCRIBE,
3826
3837
  i.slide,
3827
3838
  i.widget
3828
3839
  ), this.subscribers.push(i)), null));
@@ -3830,7 +3841,7 @@ class Br {
3830
3841
  * Get current subscribers
3831
3842
  * @returns IQuery[]
3832
3843
  */
3833
- D(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3844
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3834
3845
  this.options = i, Storage.prototype.setObject = function(u, f) {
3835
3846
  this.setItem(u, JSON.stringify(f));
3836
3847
  }, Storage.prototype.getObject = function(u) {
@@ -3839,32 +3850,32 @@ class Br {
3839
3850
  };
3840
3851
  }
3841
3852
  }
3842
- class Nr {
3853
+ class Lr {
3843
3854
  constructor(i) {
3844
- D(this, "subscribers", []);
3845
- D(this, "options");
3846
- D(this, "getCloud", async (i) => {
3855
+ P(this, "subscribers", []);
3856
+ P(this, "options");
3857
+ P(this, "getCloud", async (i) => {
3847
3858
  const u = V(i);
3848
3859
  try {
3849
3860
  return window.BuzzCasting.WidgetData[u];
3850
3861
  } catch {
3851
- return console.warn("%capi", E.API, j.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 };
3862
+ return console.warn("%capi", O.API, K.CLOUD, i.slide, i.widget), { data: null, message: "Cloud Data error", success: !1 };
3852
3863
  }
3853
3864
  });
3854
- D(this, "getSeries", async (i) => {
3865
+ P(this, "getSeries", async (i) => {
3855
3866
  const u = V(i);
3856
3867
  try {
3857
3868
  return window.BuzzCasting.WidgetData[u];
3858
3869
  } catch {
3859
- return console.warn("%capi", E.API, j.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 };
3870
+ return console.warn("%capi", O.API, K.SERIES, i.slide, i.widget), { data: null, message: "Series Data error", success: !1 };
3860
3871
  }
3861
3872
  });
3862
- D(this, "getMessages", async (i) => {
3873
+ P(this, "getMessages", async (i) => {
3863
3874
  const u = V(i);
3864
3875
  try {
3865
3876
  return window.BuzzCasting.WidgetData[u];
3866
3877
  } catch {
3867
- return console.warn("%capi", E.API, j.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3878
+ return console.warn("%capi", O.API, K.MESSAGES, i.slide, i.widget), { data: null, message: "Messages Data error", success: !1 };
3868
3879
  }
3869
3880
  });
3870
3881
  /**
@@ -3873,12 +3884,12 @@ class Nr {
3873
3884
  * @param data
3874
3885
  * @returns number
3875
3886
  */
3876
- D(this, "setCloud", async (i, u) => {
3887
+ P(this, "setCloud", async (i, u) => {
3877
3888
  const f = V(i);
3878
3889
  try {
3879
3890
  return window.BuzzCasting.WidgetData[f] = u, 201;
3880
3891
  } catch (k) {
3881
- return console.error("%cstorage", E.STORAGE, "set", i, k), 400;
3892
+ return console.error("%cstorage", O.STORAGE, "set", i, k), 400;
3882
3893
  }
3883
3894
  });
3884
3895
  /**
@@ -3887,12 +3898,12 @@ class Nr {
3887
3898
  * @param data
3888
3899
  * @returns number
3889
3900
  */
3890
- D(this, "setSeries", async (i, u) => {
3901
+ P(this, "setSeries", async (i, u) => {
3891
3902
  const f = V(i);
3892
3903
  try {
3893
3904
  return window.BuzzCasting.WidgetData[f] = u, 201;
3894
3905
  } catch (k) {
3895
- return console.error("%cstorage", E.STORAGE, "set", i, k), 400;
3906
+ return console.error("%cstorage", O.STORAGE, "set", i, k), 400;
3896
3907
  }
3897
3908
  });
3898
3909
  /**
@@ -3901,24 +3912,24 @@ class Nr {
3901
3912
  * @param data
3902
3913
  * @returns number
3903
3914
  */
3904
- D(this, "setMessages", async (i, u) => {
3915
+ P(this, "setMessages", async (i, u) => {
3905
3916
  const f = V(i);
3906
3917
  try {
3907
3918
  return window.BuzzCasting.WidgetData[f] = u, 201;
3908
3919
  } catch (k) {
3909
- return console.error("%cstorage", E.STORAGE, "set", i, k), 400;
3920
+ return console.error("%cstorage", O.STORAGE, "set", i, k), 400;
3910
3921
  }
3911
3922
  });
3912
- D(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3913
- D(this, "hideMessage", async (i, u) => {
3923
+ P(this, "cleanMessages", async (i) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((u) => u(0))));
3924
+ P(this, "hideMessage", async (i, u) => {
3914
3925
  console.debug(`hideMessage ${i} ${u} not implemented for ${this.options.storage}`);
3915
3926
  });
3916
- D(this, "setWidget", async (i) => {
3927
+ P(this, "setWidget", async (i) => {
3917
3928
  const u = `widget.${i.widget}`;
3918
3929
  try {
3919
3930
  return window.BuzzCasting.WidgetData[u] = i, 201;
3920
3931
  } catch (f) {
3921
- return console.error("%cstorage", E.STORAGE, j.WIDGET, i, f), 400;
3932
+ return console.error("%cstorage", O.STORAGE, K.WIDGET, i, f), 400;
3922
3933
  }
3923
3934
  });
3924
3935
  /**
@@ -3926,13 +3937,13 @@ class Nr {
3926
3937
  * @param query IQuery
3927
3938
  * @returns null
3928
3939
  */
3929
- D(this, "subscribe", (i) => (i = nt(i), i.type === j.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3940
+ P(this, "subscribe", (i) => (i = nt(i), i.type === K.MESSAGES && (i = vt(this.options, i)), this.subscribers.filter(
3930
3941
  (f) => f.widget === i.widget
3931
3942
  ).length || (console.debug(
3932
3943
  "%cstorage%c %csubscribe",
3933
- E.STORAGE,
3934
- E.NONE,
3935
- E.SUBSCRIBE,
3944
+ O.STORAGE,
3945
+ O.NONE,
3946
+ O.SUBSCRIBE,
3936
3947
  i.slide,
3937
3948
  i.widget
3938
3949
  ), this.subscribers.push(i)), null));
@@ -3940,17 +3951,17 @@ class Nr {
3940
3951
  * Get current subscribers
3941
3952
  * @returns IQuery[]
3942
3953
  */
3943
- D(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3954
+ P(this, "getSubscribers", async () => await new Promise((i) => i(this.subscribers)));
3944
3955
  this.options = i, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3945
3956
  }
3946
3957
  }
3947
- function Bi(p) {
3958
+ function Gi(p) {
3948
3959
  const i = p.toUpperCase().split(/[\s_-]+/);
3949
3960
  return i.length > 0 ? (i.forEach((u, f) => {
3950
3961
  i[f] = `${u.charAt(0)}.`;
3951
3962
  }), i.join(" ")) : "";
3952
3963
  }
3953
- function Ni(p) {
3964
+ function Li(p) {
3954
3965
  let i = "", u = "", f = {
3955
3966
  backgroundImage: ""
3956
3967
  };
@@ -3964,7 +3975,7 @@ function Ni(p) {
3964
3975
  video: i
3965
3976
  };
3966
3977
  }
3967
- function Ci(p) {
3978
+ function Ri(p) {
3968
3979
  const i = {};
3969
3980
  for (let u = 0; u < p.length; u++) {
3970
3981
  const f = p.item(u);
@@ -3972,7 +3983,7 @@ function Ci(p) {
3972
3983
  }
3973
3984
  return i;
3974
3985
  }
3975
- function Gi(p) {
3986
+ function Fi(p) {
3976
3987
  const i = {};
3977
3988
  for (let u = 0; u < p.length; u++) {
3978
3989
  const f = p[u];
@@ -3980,7 +3991,7 @@ function Gi(p) {
3980
3991
  }
3981
3992
  return i;
3982
3993
  }
3983
- function Li(p, i) {
3994
+ function $i(p, i) {
3984
3995
  switch (p) {
3985
3996
  case "bl":
3986
3997
  return `text-blue fa-solid fa-rss fa-${i}`;
@@ -4022,21 +4033,21 @@ function Li(p, i) {
4022
4033
  return "";
4023
4034
  }
4024
4035
  }
4025
- function Fi(p) {
4036
+ function Ui(p) {
4026
4037
  return p.replace(/(?:^\w|[A-Z]|\b\w)/g, (i, u) => u === 0 ? i.toLowerCase() : i.toUpperCase()).replace(/\s+/g, "");
4027
4038
  }
4028
- function $i(p) {
4039
+ function Wi(p) {
4029
4040
  return p.toLowerCase().split("-").reduce((i, u) => i + (u.charAt(0).toUpperCase() + u.slice(1)));
4030
4041
  }
4031
- function Ii(p) {
4042
+ function Ti(p) {
4032
4043
  const i = document.createRange();
4033
4044
  i.selectNodeContents(p), i.deleteContents();
4034
4045
  }
4035
- function Ui(p) {
4046
+ function zi(p) {
4036
4047
  return `${p.title.length > 0 ? `<p><strong>${p.title}</strong></p>` : ""}${p.content.replace(/\n\n/g, `
4037
4048
  `).replace(/\n/g, "<br/>")}`;
4038
4049
  }
4039
- function Ri(p, i) {
4050
+ function Mi(p, i) {
4040
4051
  for (; p.length < i; )
4041
4052
  p = `0${p}`;
4042
4053
  return p;
@@ -4049,14 +4060,14 @@ function Oe(p, i) {
4049
4060
  f = i.charCodeAt(u), p = (p << 5) - p + f, p |= 0;
4050
4061
  return p < 0 ? p * -2 : p;
4051
4062
  }
4052
- function Ti(p, i, u) {
4063
+ function ji(p, i, u) {
4053
4064
  return Object.keys(i).sort().reduce(f, p);
4054
- function f(k, I) {
4055
- return Gr(k, i[I], I, u);
4065
+ function f(k, R) {
4066
+ return Fr(k, i[R], R, u);
4056
4067
  }
4057
4068
  }
4058
- function Gr(p, i, u, f) {
4059
- const k = Oe(Oe(Oe(p, u), Mi(i)), typeof i);
4069
+ function Fr(p, i, u, f) {
4070
+ const k = Oe(Oe(Oe(p, u), Ki(i)), typeof i);
4060
4071
  if (i === null)
4061
4072
  return Oe(k, "null");
4062
4073
  if (i === void 0)
@@ -4065,24 +4076,24 @@ function Gr(p, i, u, f) {
4065
4076
  if (f.includes(i))
4066
4077
  return Oe(k, `[Circular]${u}`);
4067
4078
  f.push(i);
4068
- const I = Ti(k, i, f);
4079
+ const R = ji(k, i, f);
4069
4080
  if (!("valueOf" in i) || typeof i.valueOf != "function")
4070
- return I;
4081
+ return R;
4071
4082
  try {
4072
- return Oe(I, String(i.valueOf()));
4073
- } catch (K) {
4074
- return Oe(I, `[valueOf exception]${K.stack || K.message}`);
4083
+ return Oe(R, String(i.valueOf()));
4084
+ } catch (j) {
4085
+ return Oe(R, `[valueOf exception]${j.stack || j.message}`);
4075
4086
  }
4076
4087
  }
4077
4088
  return Oe(k, i.toString());
4078
4089
  }
4079
- function Mi(p) {
4090
+ function Ki(p) {
4080
4091
  return Object.prototype.toString.call(p);
4081
4092
  }
4082
- function Fn(p) {
4083
- return Ri(Gr(0, p, "", []).toString(16), 8);
4093
+ function $n(p) {
4094
+ return Mi(Fr(0, p, "", []).toString(16), 8);
4084
4095
  }
4085
- function Wi(p, i) {
4096
+ function Hi(p, i) {
4086
4097
  if (p = p.toString().replace(/[^0-9.]/g, ""), p < 1e3)
4087
4098
  return p;
4088
4099
  const u = [
@@ -4098,7 +4109,7 @@ function Wi(p, i) {
4098
4109
  ;
4099
4110
  return (p / u[f].v).toFixed(i).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + u[f].s;
4100
4111
  }
4101
- function zi(p, i) {
4112
+ function Yi(p, i) {
4102
4113
  const u = [
4103
4114
  { value: 1, symbol: "" },
4104
4115
  { value: 1e3, symbol: "K" },
@@ -4113,7 +4124,7 @@ function zi(p, i) {
4113
4124
  ;
4114
4125
  return (p / u[k].value).toFixed(i).replace(f, "$1") + u[k].symbol;
4115
4126
  }
4116
- function Hi(p) {
4127
+ function Qi(p) {
4117
4128
  switch (p.language) {
4118
4129
  case "ar":
4119
4130
  return {
@@ -4124,16 +4135,16 @@ function Hi(p) {
4124
4135
  return {};
4125
4136
  }
4126
4137
  }
4127
- function Yi(p) {
4138
+ function Xi(p) {
4128
4139
  return p.forEach((i) => {
4129
4140
  var u, f, k;
4130
4141
  if (i.content = i.content.replace(/(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)((\?.*)?)/g, ""), i.sender !== null ? (((u = i.sender) == null ? void 0 : u.title) === "Unknown author" && (i.sender.title = ""), ((f = i.sender) == null ? void 0 : f.name) !== "" && i.sender.title === "" && (i.sender.title = i.sender.name), ((k = i.sender) == null ? void 0 : k.name) !== "" && i.channel === "tw" && (i.sender.name = `@${i.sender.name}`)) : i.sender = { title: "", name: "", id: "", avatar: "default", bio: "", location: "", following: 0, verified: 0, listed: 0, followers: 0, favourites: 0, messages: 0, influence: 0 }, i.sender.title === "" && i.link !== "") {
4131
- const I = new URL(i.link);
4132
- i.sender.title = I.hostname.replace("www.", "");
4142
+ const R = new URL(i.link);
4143
+ i.sender.title = R.hostname.replace("www.", "");
4133
4144
  }
4134
4145
  }), p;
4135
4146
  }
4136
- function Qi(p) {
4147
+ function Vi(p) {
4137
4148
  const i = [...p];
4138
4149
  for (let u = i.length - 1; u > 0; u--) {
4139
4150
  const f = Math.floor(Math.random() * (u + 1));
@@ -4141,13 +4152,13 @@ function Qi(p) {
4141
4152
  }
4142
4153
  return i;
4143
4154
  }
4144
- class Xi {
4155
+ class Ji {
4145
4156
  constructor(i) {
4146
- D(this, "sm");
4147
- D(this, "api");
4148
- D(this, "bc");
4149
- D(this, "options");
4150
- D(this, "update", async (i) => {
4157
+ P(this, "sm");
4158
+ P(this, "api");
4159
+ P(this, "bc");
4160
+ P(this, "options");
4161
+ P(this, "update", async (i) => {
4151
4162
  if (this.sm === null)
4152
4163
  return;
4153
4164
  const u = await this.sm.getSubscribers();
@@ -4157,72 +4168,72 @@ class Xi {
4157
4168
  i ? f.push(this.api.get(i)) : u == null || u.forEach((k) => {
4158
4169
  f.push(this.api.get(k));
4159
4170
  }), await Promise.allSettled(f).then(
4160
- (k) => k.forEach(async (I) => {
4161
- let K = 400;
4162
- if (I.status === "fulfilled") {
4163
- const N = I.value;
4171
+ (k) => k.forEach(async (R) => {
4172
+ let j = 400;
4173
+ if (R.status === "fulfilled") {
4174
+ const N = R.value;
4164
4175
  if (this.sm === null)
4165
4176
  return 400;
4166
4177
  if (N.success === !0) {
4167
4178
  const Z = this.sm.subscribers.filter(
4168
- (be) => be.widget === N.query.widget
4179
+ (me) => me.widget === N.query.widget
4169
4180
  )[0];
4170
4181
  let te = "";
4171
4182
  switch (N.query.type) {
4172
- case j.MESSAGES:
4173
- if (te = Fn(N.data.messages), Z.hash === te)
4183
+ case K.MESSAGES:
4184
+ if (te = $n(N.data.messages), Z.hash === te)
4174
4185
  return console.debug(
4175
4186
  "%capi%c %cno updates",
4176
- E.API,
4177
- E.NONE,
4178
- E.NO_UPDATES,
4179
- j.MESSAGES,
4187
+ O.API,
4188
+ O.NONE,
4189
+ O.NO_UPDATES,
4190
+ K.MESSAGES,
4180
4191
  N.query.slide,
4181
4192
  N.query.widget
4182
4193
  ), 204;
4183
- Z.hash = te, K = await this.sm.setMessages(N.query, N);
4194
+ Z.hash = te, j = await this.sm.setMessages(N.query, N);
4184
4195
  break;
4185
- case j.CLOUD:
4186
- te = Fn(N.data), Z.hash === te ? (console.debug(
4196
+ case K.CLOUD:
4197
+ te = $n(N.data), Z.hash === te ? (console.debug(
4187
4198
  "%capi%c %cno updates",
4188
- E.API,
4189
- E.NONE,
4190
- E.NO_UPDATES,
4191
- j.CLOUD,
4199
+ O.API,
4200
+ O.NONE,
4201
+ O.NO_UPDATES,
4202
+ K.CLOUD,
4192
4203
  N.query.slide,
4193
4204
  N.query.widget
4194
- ), K = 204) : (Z.hash = te, K = await this.sm.setCloud(N.query, N));
4205
+ ), j = 204) : (Z.hash = te, j = await this.sm.setCloud(N.query, N));
4195
4206
  break;
4196
- case j.SERIES:
4197
- te = Fn(N.data), Z.hash === te ? (console.debug(
4207
+ case K.SERIES:
4208
+ te = $n(N.data), Z.hash === te ? (console.debug(
4198
4209
  "%capi%c %cno updates",
4199
- E.API,
4200
- E.NONE,
4201
- E.NO_UPDATES,
4202
- j.SERIES,
4210
+ O.API,
4211
+ O.NONE,
4212
+ O.NO_UPDATES,
4213
+ K.SERIES,
4203
4214
  N.query.slide,
4204
4215
  N.query.widget
4205
- ), K = 204) : (Z.hash = te, K = await this.sm.setSeries(N.query, N));
4216
+ ), j = 204) : (Z.hash = te, j = await this.sm.setSeries(N.query, N));
4206
4217
  break;
4207
4218
  default:
4208
4219
  console.warn(
4209
4220
  "%capi%c %cstorage",
4210
- E.API,
4211
- E.NONE,
4212
- E.STORAGE,
4221
+ O.API,
4222
+ O.NONE,
4223
+ O.STORAGE,
4213
4224
  "error",
4214
4225
  `data type ${N.query.type} unknown`
4215
4226
  );
4216
4227
  }
4217
4228
  } else
4218
- K = 401;
4219
- switch (K) {
4229
+ j = 401;
4230
+ switch (j) {
4220
4231
  case 201:
4221
4232
  console.info(
4222
4233
  "%capp%c %cbroadcast",
4223
- E.API,
4224
- E.NONE,
4225
- E.BROADCAST,
4234
+ O.API,
4235
+ O.NONE,
4236
+ O.BROADCAST,
4226
4237
  N.query.slide,
4227
4238
  N.data.title ?? N.query.widget
4228
4239
  ), this.bc.postMessage({ event: se.WIDGET_UPDATE, data: N });
@@ -4230,30 +4241,30 @@ class Xi {
4230
4241
  case 400:
4231
4242
  console.warn(
4232
4243
  "%capp%c %cbroadcast",
4233
- E.API,
4234
- E.NONE,
4235
- E.BROADCAST,
4244
+ O.API,
4245
+ O.NONE,
4246
+ O.BROADCAST,
4236
4247
  N.query.slide,
4237
4248
  N.data.title ?? N.query.widget
4238
4249
  );
4239
4250
  break;
4240
4251
  }
4241
- return K;
4252
+ return j;
4242
4253
  } else
4243
4254
  return console.warn(
4244
4255
  "%capi%c %cstorage",
4245
- E.API,
4246
- E.NONE,
4247
- E.STORAGE,
4256
+ O.API,
4257
+ O.NONE,
4258
+ O.STORAGE,
4248
4259
  se.ERROR
4249
4260
  ), 400;
4250
4261
  })
4251
4262
  );
4252
4263
  });
4253
- D(this, "hide", (i) => {
4264
+ P(this, "hide", (i) => {
4254
4265
  this.api.hideMessage(i);
4255
4266
  });
4256
- D(this, "actions", async (i) => {
4267
+ P(this, "actions", async (i) => {
4257
4268
  var u;
4258
4269
  switch (i.data.event) {
4259
4270
  case se.SUBSCRIBE:
@@ -4262,95 +4273,95 @@ class Xi {
4262
4273
  case se.UPDATE:
4263
4274
  console.debug(
4264
4275
  "%capi%c %cstorage",
4265
- E.API,
4266
- E.NONE,
4267
- E.STORAGE,
4276
+ O.API,
4277
+ O.NONE,
4278
+ O.STORAGE,
4268
4279
  se.UPDATE,
4269
4280
  i.data
4270
4281
  ), await this.update();
4271
4282
  break;
4272
4283
  }
4273
4284
  });
4274
- D(this, "cleanMessages", async () => {
4285
+ P(this, "cleanMessages", async () => {
4275
4286
  var f, k;
4276
4287
  const i = ((f = this.options) == null ? void 0 : f.retention) || 345600, u = await ((k = this.sm) == null ? void 0 : k.cleanMessages(i));
4277
4288
  console.info(
4278
4289
  "%cstorage%c %cstorage",
4279
- E.STORAGE,
4280
- E.NONE,
4281
- E.MESSAGES,
4290
+ O.STORAGE,
4291
+ O.NONE,
4292
+ O.MESSAGES,
4282
4293
  `${u} messages deleted`
4283
4294
  );
4284
4295
  });
4285
- D(this, "hideMessage", async (i) => {
4296
+ P(this, "hideMessage", async (i) => {
4286
4297
  var f;
4287
4298
  const u = await ((f = this.sm) == null ? void 0 : f.hideMessage(i.id, 0));
4288
4299
  return console.info(
4289
4300
  "%cstorage%c %cstorage",
4290
- E.STORAGE,
4291
- E.NONE,
4292
- E.HIDE,
4301
+ O.STORAGE,
4302
+ O.NONE,
4303
+ O.HIDE,
4293
4304
  `${u} messages hidden`
4294
4305
  ), await this.api.hideMessage(i);
4295
4306
  });
4296
- D(this, "hideLabels", async (i) => await this.api.hideLabels(i));
4297
- D(this, "getSubscribers", async () => {
4307
+ P(this, "hideLabels", async (i) => await this.api.hideLabels(i));
4308
+ P(this, "getSubscribers", async () => {
4298
4309
  var i;
4299
4310
  return await ((i = this.sm) == null ? void 0 : i.getSubscribers());
4300
4311
  });
4301
4312
  console.info(
4302
4313
  "%cstorage%c %cslide",
4303
- E.STORAGE,
4304
- E.NONE,
4305
- E.SLIDE,
4314
+ O.STORAGE,
4315
+ O.NONE,
4316
+ O.SLIDE,
4306
4317
  i.slide,
4307
4318
  se.VERSION,
4308
- xi
4319
+ Ai
4309
4320
  ), this.options = i, this.sm = null;
4310
4321
  const u = (i == null ? void 0 : i.slide) || i.app;
4311
4322
  switch (this.bc = new BroadcastChannel(u), console.info(
4312
4323
  "%capi%c %cbroadcast",
4313
- E.API,
4314
- E.NONE,
4315
- E.BROADCAST,
4324
+ O.API,
4325
+ O.NONE,
4326
+ O.BROADCAST,
4316
4327
  se.CHANNEL,
4317
4328
  u
4318
4329
  ), this.bc.onmessage = (f) => {
4319
4330
  this.actions(f);
4320
- }, this.bc.postMessage({ event: se.STORAGE_INIT, data: {} }), this.api = new ki(i), i.storage) {
4331
+ }, this.bc.postMessage({ event: se.STORAGE_INIT, data: {} }), this.api = new Pi(i), i.storage) {
4321
4332
  case he.DEXIE:
4322
- this.sm = new Tr(i);
4333
+ this.sm = new jr(i);
4323
4334
  break;
4324
4335
  case he.LOCAL:
4325
- this.sm = new Br(i);
4336
+ this.sm = new Gr(i);
4326
4337
  break;
4327
4338
  case he.SESSION:
4328
- this.sm = new Kr(i);
4339
+ this.sm = new Nr(i);
4329
4340
  break;
4330
4341
  case he.KEYVAL:
4331
- this.sm = new jr(i);
4342
+ this.sm = new Br(i);
4332
4343
  break;
4333
4344
  case he.WINDOW:
4334
- this.sm = new Nr(i);
4345
+ this.sm = new Lr(i);
4335
4346
  break;
4336
4347
  }
4337
4348
  }
4338
4349
  }
4339
- class ji {
4350
+ class Bi {
4340
4351
  constructor(i) {
4341
- D(this, "sm");
4352
+ P(this, "sm");
4342
4353
  /**
4343
4354
  * Retieve Cloud Data
4344
4355
  * @param query Widgets parameters, type "cloud"
4345
4356
  * @returns IResponse
4346
4357
  */
4347
- D(this, "getCloud", async (i) => {
4358
+ P(this, "getCloud", async (i) => {
4348
4359
  var u;
4349
- return i.type !== j.CLOUD ? (console.warn(
4360
+ return i.type !== K.CLOUD ? (console.warn(
4350
4361
  "%capp%c %get",
4351
- E.APP,
4352
- E.NONE,
4353
- E.GET_DATA,
4362
+ O.APP,
4363
+ O.NONE,
4364
+ O.GET_DATA,
4354
4365
  i.widget,
4355
4366
  "wrong method call for getMessages, type used is",
4356
4367
  i.type
@@ -4365,13 +4376,13 @@ class ji {
4365
4376
  * @param query Widgets parameters, type "messages"
4366
4377
  * @returns IResponse
4367
4378
  */
4368
- D(this, "getMessages", async (i) => {
4379
+ P(this, "getMessages", async (i) => {
4369
4380
  var u;
4370
- return i.type !== j.MESSAGES ? (console.warn(
4381
+ return i.type !== K.MESSAGES ? (console.warn(
4371
4382
  "%capp%c %get",
4372
- E.APP,
4373
- E.NONE,
4374
- E.GET_DATA,
4383
+ O.APP,
4384
+ O.NONE,
4385
+ O.GET_DATA,
4375
4386
  i.widget,
4376
4387
  "wrong method call for getMessages, type used is",
4377
4388
  i.type
@@ -4386,13 +4397,13 @@ class ji {
4386
4397
  * @param query Widgets parameters, type "series"
4387
4398
  * @returns IResponse
4388
4399
  */
4389
- D(this, "getSeries", async (i) => {
4400
+ P(this, "getSeries", async (i) => {
4390
4401
  var u;
4391
- return i.type !== j.SERIES ? (console.warn(
4402
+ return i.type !== K.SERIES ? (console.warn(
4392
4403
  "%capp%c %get",
4393
- E.APP,
4394
- E.NONE,
4395
- E.GET_DATA,
4404
+ O.APP,
4405
+ O.NONE,
4406
+ O.GET_DATA,
4396
4407
  i.widget,
4397
4408
  "wrong method call for getMessages, type used is",
4398
4409
  i.type
@@ -4404,24 +4415,24 @@ class ji {
4404
4415
  });
4405
4416
  switch (this.sm = null, i.storage) {
4406
4417
  case he.DEXIE:
4407
- this.sm = new Tr(i);
4418
+ this.sm = new jr(i);
4408
4419
  break;
4409
4420
  case he.LOCAL:
4410
- this.sm = new Br(i);
4421
+ this.sm = new Gr(i);
4411
4422
  break;
4412
4423
  case he.SESSION:
4413
- this.sm = new Kr(i);
4424
+ this.sm = new Nr(i);
4414
4425
  break;
4415
4426
  case he.KEYVAL:
4416
- this.sm = new jr(i);
4427
+ this.sm = new Br(i);
4417
4428
  break;
4418
4429
  case he.WINDOW:
4419
- this.sm = new Nr(i);
4430
+ this.sm = new Lr(i);
4420
4431
  break;
4421
4432
  }
4422
4433
  }
4423
4434
  }
4424
- class Vi {
4435
+ class Zi {
4425
4436
  /**
4426
4437
  * Main container for managing widgets and data updates
4427
4438
  *
@@ -4430,23 +4441,23 @@ class Vi {
4430
4441
  * @param selector container for the element - by default buzzcasting-slide (optional)
4431
4442
  */
4432
4443
  constructor(i, u, f) {
4433
- D(this, "storageReader");
4434
- D(this, "broadcastChannel");
4435
- D(this, "element");
4436
- D(this, "query");
4437
- D(this, "listeners");
4444
+ P(this, "storageReader");
4445
+ P(this, "broadcastChannel");
4446
+ P(this, "element");
4447
+ P(this, "query");
4448
+ P(this, "listeners");
4438
4449
  /**
4439
4450
  * Generic call to any query type
4440
4451
  *
4441
4452
  * @returns IResponse
4442
4453
  */
4443
- D(this, "getData", async () => {
4454
+ P(this, "getData", async () => {
4444
4455
  switch (this.query.type) {
4445
- case j.CLOUD:
4456
+ case K.CLOUD:
4446
4457
  return await this.getCloud();
4447
- case j.MESSAGES:
4458
+ case K.MESSAGES:
4448
4459
  return await this.getMessages();
4449
- case j.SERIES:
4460
+ case K.SERIES:
4450
4461
  return await this.getSeries();
4451
4462
  }
4452
4463
  return {
@@ -4460,11 +4471,11 @@ class Vi {
4460
4471
  *
4461
4472
  * @returns IResponse
4462
4473
  */
4463
- D(this, "getCloud", async () => this.query.type !== j.CLOUD ? (console.warn(
4474
+ P(this, "getCloud", async () => this.query.type !== K.CLOUD ? (console.warn(
4464
4475
  "%cstorage%c %cwidget",
4465
- E.STORAGE,
4466
- E.NONE,
4467
- E.WIDGET,
4476
+ O.STORAGE,
4477
+ O.NONE,
4478
+ O.WIDGET,
4468
4479
  this.query.widget,
4469
4480
  "Wrong method call for getCloud, expected type is",
4470
4481
  this.query.type
@@ -4478,11 +4489,11 @@ class Vi {
4478
4489
  *
4479
4490
  * @returns IResponse
4480
4491
  */
4481
- D(this, "getMessages", async () => this.query.type !== j.MESSAGES ? (console.warn(
4492
+ P(this, "getMessages", async () => this.query.type !== K.MESSAGES ? (console.warn(
4482
4493
  "%cstorage%c %cwidget",
4483
- E.STORAGE,
4484
- E.NONE,
4485
- E.WIDGET,
4494
+ O.STORAGE,
4495
+ O.NONE,
4496
+ O.WIDGET,
4486
4497
  this.query.widget,
4487
4498
  "Wrong method call for getMessages, expected type is",
4488
4499
  this.query.type
@@ -4496,11 +4507,11 @@ class Vi {
4496
4507
  *
4497
4508
  * @returns IResponse
4498
4509
  */
4499
- D(this, "getSeries", async () => this.query.type !== j.SERIES ? (console.warn(
4510
+ P(this, "getSeries", async () => this.query.type !== K.SERIES ? (console.warn(
4500
4511
  "%cstorage%c %cwidget",
4501
- E.STORAGE,
4502
- E.NONE,
4503
- E.WIDGET,
4512
+ O.STORAGE,
4513
+ O.NONE,
4514
+ O.WIDGET,
4504
4515
  this.query.widget,
4505
4516
  "Wrong method call for getSeries, expected type is",
4506
4517
  this.query.type
@@ -4515,16 +4526,16 @@ class Vi {
4515
4526
  *
4516
4527
  * @param modal IModal
4517
4528
  */
4518
- D(this, "showModal", (i) => {
4519
- const u = Ci(this.element.attributes);
4529
+ P(this, "showModal", (i) => {
4530
+ const u = Ri(this.element.attributes);
4520
4531
  if (Object.prototype.hasOwnProperty.call(u, "data-topics")) {
4521
- const I = u["data-topics"].split("-");
4522
- I.length > 1 ? (u["data-widget"] = I[1], u["data-dashboard"] = I[0]) : (u["data-widget"] = I[0], u["data-dashboard"] = this.query.slide);
4532
+ const R = u["data-topics"].split("-");
4533
+ R.length > 1 ? (u["data-widget"] = R[1], u["data-dashboard"] = R[0]) : (u["data-widget"] = R[0], u["data-dashboard"] = this.query.slide);
4523
4534
  }
4524
4535
  const f = { ...i.props, ...u };
4525
4536
  console.debug(
4526
4537
  "%cwidget",
4527
- E.WIDGET,
4538
+ O.WIDGET,
4528
4539
  se.SHOW_MODAL,
4529
4540
  i.showComponent,
4530
4541
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
@@ -4542,12 +4553,12 @@ class Vi {
4542
4553
  });
4543
4554
  window.dispatchEvent(k);
4544
4555
  });
4545
- var K;
4556
+ var j;
4546
4557
  this.element = i, this.listeners = u, f = typeof f < "u" ? f : "buzzcasting-slide";
4547
4558
  let k;
4548
- k = { ...i.dataset }, delete k.hmr, k.slide = ((K = i.closest(f.toUpperCase())) == null ? void 0 : K.id) ?? `${f} not found`, k = nt(k), this.query = k, Ii(i);
4549
- const I = window.BuzzCasting.getOptions();
4550
- this.storageReader = new ji(I), this.broadcastChannel = new BroadcastChannel(k.slide), this.startListener();
4559
+ k = { ...i.dataset }, delete k.hmr, k.slide = ((j = i.closest(f.toUpperCase())) == null ? void 0 : j.id) ?? `${f} not found`, k = nt(k), this.query = k, Ti(i);
4560
+ const R = window.BuzzCasting.getOptions();
4561
+ this.storageReader = new Bi(R), this.broadcastChannel = new BroadcastChannel(k.slide), this.startListener();
4551
4562
  }
4552
4563
  addListener(i) {
4553
4564
  this.listeners.push(i);
@@ -4578,9 +4589,9 @@ class Vi {
4578
4589
  subscribe() {
4579
4590
  console.debug(
4580
4591
  "%cwidget%c %csubscribe",
4581
- E.WIDGET,
4582
- E.NONE,
4583
- E.SUBSCRIBE,
4592
+ O.WIDGET,
4593
+ O.NONE,
4594
+ O.SUBSCRIBE,
4584
4595
  this.query.slide,
4585
4596
  this.query.widget
4586
4597
  ), this.broadcastChannel.postMessage({
@@ -4593,27 +4604,27 @@ class Vi {
4593
4604
  }
4594
4605
  }
4595
4606
  export {
4596
- j as API,
4597
- Xi as BuzzcastingStorageManager,
4598
- ji as BuzzcastingStorageReader,
4599
- E as CSS,
4607
+ K as API,
4608
+ Ji as BuzzcastingStorageManager,
4609
+ Bi as BuzzcastingStorageReader,
4610
+ O as CSS,
4600
4611
  se as EVENTS,
4601
4612
  Vt as MODERATION,
4602
4613
  he as STORAGE,
4603
- Vi as Widget,
4604
- Bi as anonymize,
4605
- Ni as attachedMedia,
4606
- Ci as attrs,
4607
- Li as brandLogo,
4608
- $i as camelCase,
4609
- Fi as camelize,
4610
- Ii as clearContents,
4611
- Gi as filterAttributes,
4612
- Ui as formatContent,
4613
- Wi as intToString,
4614
- zi as numberFormatter,
4615
- Hi as rtl,
4616
- Yi as sanitize,
4617
- Qi as shuffleMessages,
4614
+ Zi as Widget,
4615
+ Gi as anonymize,
4616
+ Li as attachedMedia,
4617
+ Ri as attrs,
4618
+ $i as brandLogo,
4619
+ Wi as camelCase,
4620
+ Ui as camelize,
4621
+ Ti as clearContents,
4622
+ Fi as filterAttributes,
4623
+ zi as formatContent,
4624
+ Hi as intToString,
4625
+ Yi as numberFormatter,
4626
+ Qi as rtl,
4627
+ Xi as sanitize,
4628
+ Vi as shuffleMessages,
4618
4629
  nt as widgetParams
4619
4630
  };