buzzcasting-storage 2.16.10 → 2.16.11
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.
- package/dist/buzzcasting-storage.esm.js +83 -82
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var xi = Object.defineProperty;
|
|
|
2
2
|
var ki = (f, r, c) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : f[r] = c;
|
|
3
3
|
var D = (f, r, c) => ki(f, typeof r != "symbol" ? r + "" : r, c);
|
|
4
4
|
var M = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(M || {}), S = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(S || {}), ne = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(ne || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
|
|
5
|
-
const Ai = "2.16.
|
|
5
|
+
const Ai = "2.16.10";
|
|
6
6
|
class Di {
|
|
7
7
|
constructor(r) {
|
|
8
8
|
D(this, "options");
|
|
@@ -169,9 +169,9 @@ var jr = { exports: {} };
|
|
|
169
169
|
}), e;
|
|
170
170
|
}
|
|
171
171
|
typeof Promise > "u" || k.Promise || (k.Promise = Promise);
|
|
172
|
-
var q = Object.getPrototypeOf,
|
|
173
|
-
function
|
|
174
|
-
return
|
|
172
|
+
var q = Object.getPrototypeOf, ce = {}.hasOwnProperty;
|
|
173
|
+
function re(e, t) {
|
|
174
|
+
return ce.call(e, t);
|
|
175
175
|
}
|
|
176
176
|
function xe(e, t) {
|
|
177
177
|
typeof t == "function" && (t = t(q(e))), (typeof Reflect > "u" ? N : Reflect.ownKeys)(t).forEach(function(n) {
|
|
@@ -180,7 +180,7 @@ var jr = { exports: {} };
|
|
|
180
180
|
}
|
|
181
181
|
var zn = Object.defineProperty;
|
|
182
182
|
function ke(e, t, n, i) {
|
|
183
|
-
zn(e, t, J(n &&
|
|
183
|
+
zn(e, t, J(n && re(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
|
|
184
184
|
}
|
|
185
185
|
function ze(e) {
|
|
186
186
|
return { from: function(t) {
|
|
@@ -201,7 +201,7 @@ var jr = { exports: {} };
|
|
|
201
201
|
k.setImmediate ? setImmediate(e) : setTimeout(e, 0);
|
|
202
202
|
}
|
|
203
203
|
function ve(e, t) {
|
|
204
|
-
if (typeof t == "string" &&
|
|
204
|
+
if (typeof t == "string" && re(e, t)) return e[t];
|
|
205
205
|
if (!t) return e;
|
|
206
206
|
if (typeof t != "string") {
|
|
207
207
|
for (var n = [], i = 0, a = t.length; i < a; ++i) {
|
|
@@ -222,12 +222,12 @@ var jr = { exports: {} };
|
|
|
222
222
|
for (var i = 0, a = t.length; i < a; ++i) de(e, t[i], n[i]);
|
|
223
223
|
} else {
|
|
224
224
|
var o, s, u = t.indexOf(".");
|
|
225
|
-
u !== -1 ? (o = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? B(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !
|
|
225
|
+
u !== -1 ? (o = t.substr(0, u), (s = t.substr(u + 1)) === "" ? n === void 0 ? B(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(u = !(u = e[o]) || !re(e, o) ? e[o] = {} : u, s, n)) : n === void 0 ? B(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
function Qn(e) {
|
|
229
229
|
var t, n = {};
|
|
230
|
-
for (t in e)
|
|
230
|
+
for (t in e) re(e, t) && (n[t] = e[t]);
|
|
231
231
|
return n;
|
|
232
232
|
}
|
|
233
233
|
var Wr = [].concat;
|
|
@@ -254,7 +254,7 @@ var jr = { exports: {} };
|
|
|
254
254
|
} else if (Vn.has(n.constructor)) i = n;
|
|
255
255
|
else {
|
|
256
256
|
var s, u = q(n);
|
|
257
|
-
for (s in i = u === Object.prototype ? {} : Object.create(u), it.set(n, i), n)
|
|
257
|
+
for (s in i = u === Object.prototype ? {} : Object.create(u), it.set(n, i), n) re(n, s) && (i[s] = t(n[s]));
|
|
258
258
|
}
|
|
259
259
|
return i;
|
|
260
260
|
}(e), it = null, e;
|
|
@@ -631,7 +631,7 @@ var jr = { exports: {} };
|
|
|
631
631
|
});
|
|
632
632
|
});
|
|
633
633
|
}));
|
|
634
|
-
var
|
|
634
|
+
var ie = { awaits: 0, echoes: 0, id: 0 }, ni = 0, Pt = [], It = 0, Ct = 0, ri = 0;
|
|
635
635
|
function De(e, t, n, i) {
|
|
636
636
|
var a = L, o = Object.create(a);
|
|
637
637
|
return o.parent = a, o.ref = 0, o.global = !1, o.id = ++ri, Ae.env, o.env = an ? { Promise: K, PromiseProp: { value: K, configurable: !0, writable: !0 }, all: K.all, race: K.race, allSettled: K.allSettled, any: K.any, resolve: K.resolve, reject: K.reject } : {}, t && J(o, t), ++a.ref, o.finalize = function() {
|
|
@@ -639,13 +639,13 @@ var jr = { exports: {} };
|
|
|
639
639
|
}, i = Le(o, e, n, i), o.ref === 0 && o.finalize(), i;
|
|
640
640
|
}
|
|
641
641
|
function Je() {
|
|
642
|
-
return
|
|
642
|
+
return ie.id || (ie.id = ++ni), ++ie.awaits, ie.echoes += er, ie.id;
|
|
643
643
|
}
|
|
644
644
|
function Pe() {
|
|
645
|
-
return !!
|
|
645
|
+
return !!ie.awaits && (--ie.awaits == 0 && (ie.id = 0), ie.echoes = ie.awaits * er, !0);
|
|
646
646
|
}
|
|
647
647
|
function Rt(e) {
|
|
648
|
-
return
|
|
648
|
+
return ie.echoes && e && e.constructor === ct ? (Je(), e.then(function(t) {
|
|
649
649
|
return Pe(), t;
|
|
650
650
|
}, function(t) {
|
|
651
651
|
return Pe(), ee(t);
|
|
@@ -657,8 +657,8 @@ var jr = { exports: {} };
|
|
|
657
657
|
}
|
|
658
658
|
function Ie(e, t) {
|
|
659
659
|
var n, i = L;
|
|
660
|
-
(t ? !
|
|
661
|
-
++Ct,
|
|
660
|
+
(t ? !ie.echoes || It++ && e === L : !It || --It && e === L) || queueMicrotask(t ? (function(a) {
|
|
661
|
+
++Ct, ie.echoes && --ie.echoes != 0 || (ie.echoes = ie.awaits = ie.id = 0), Pt.push(L), Ie(a, !0);
|
|
662
662
|
}).bind(null, e) : ii), e !== L && (L = e, i === Ae && (Ae.env = rr()), an && (n = Ae.env.Promise, t = e.env, (i.global || e.global) && (Object.defineProperty(k, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
|
|
663
663
|
}
|
|
664
664
|
function rr() {
|
|
@@ -685,7 +685,7 @@ var jr = { exports: {} };
|
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
687
|
function fn(e) {
|
|
688
|
-
Promise === ct &&
|
|
688
|
+
Promise === ct && ie.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
|
|
689
689
|
}
|
|
690
690
|
("" + he).indexOf("[native code]") === -1 && (Je = Pe = Q);
|
|
691
691
|
var ee = K.reject, Ge = "", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ar = "String expected.", Ze = [], Tt = "__dbnames", hn = "readonly", pn = "readwrite";
|
|
@@ -1082,7 +1082,7 @@ var jr = { exports: {} };
|
|
|
1082
1082
|
return g.stop(v);
|
|
1083
1083
|
}, function(v) {
|
|
1084
1084
|
return g.fail(v);
|
|
1085
|
-
}) || ((d = "" + (b = g.primaryKey)) == "[object ArrayBuffer]" && (d = "" + new Uint8Array(b)),
|
|
1085
|
+
}) || ((d = "" + (b = g.primaryKey)) == "[object ArrayBuffer]" && (d = "" + new Uint8Array(b)), re(o, d) || (o[d] = !0, t(u, g, h)));
|
|
1086
1086
|
};
|
|
1087
1087
|
return Promise.all([e.or._iterate(s, n), fr(dr(e, i, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
|
|
1088
1088
|
}
|
|
@@ -1297,7 +1297,7 @@ var jr = { exports: {} };
|
|
|
1297
1297
|
if (!e || !e.multi) return this;
|
|
1298
1298
|
var t = {};
|
|
1299
1299
|
return gn(this._ctx, function(a) {
|
|
1300
|
-
var i = a.primaryKey.toString(), a =
|
|
1300
|
+
var i = a.primaryKey.toString(), a = re(t, i);
|
|
1301
1301
|
return t[i] = !0, !a;
|
|
1302
1302
|
}), this;
|
|
1303
1303
|
}, Y.prototype.modify = function(e) {
|
|
@@ -1444,9 +1444,9 @@ var jr = { exports: {} };
|
|
|
1444
1444
|
function pr(e) {
|
|
1445
1445
|
return { type: 1, lower: e, upper: e };
|
|
1446
1446
|
}
|
|
1447
|
-
var gr = (Object.defineProperty(
|
|
1447
|
+
var gr = (Object.defineProperty(ae.prototype, "Collection", { get: function() {
|
|
1448
1448
|
return this._ctx.table.db.Collection;
|
|
1449
|
-
}, enumerable: !1, configurable: !0 }),
|
|
1449
|
+
}, enumerable: !1, configurable: !0 }), ae.prototype.between = function(e, t, n, i) {
|
|
1450
1450
|
n = n !== !1, i = i === !0;
|
|
1451
1451
|
try {
|
|
1452
1452
|
return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || i) && (!n || !i) ? et(this) : new this.Collection(this, function() {
|
|
@@ -1455,49 +1455,49 @@ var jr = { exports: {} };
|
|
|
1455
1455
|
} catch {
|
|
1456
1456
|
return fe(this, _e);
|
|
1457
1457
|
}
|
|
1458
|
-
},
|
|
1458
|
+
}, ae.prototype.equals = function(e) {
|
|
1459
1459
|
return e == null ? fe(this, _e) : new this.Collection(this, function() {
|
|
1460
1460
|
return pr(e);
|
|
1461
1461
|
});
|
|
1462
|
-
},
|
|
1462
|
+
}, ae.prototype.above = function(e) {
|
|
1463
1463
|
return e == null ? fe(this, _e) : new this.Collection(this, function() {
|
|
1464
1464
|
return Ce(e, void 0, !0);
|
|
1465
1465
|
});
|
|
1466
|
-
},
|
|
1466
|
+
}, ae.prototype.aboveOrEqual = function(e) {
|
|
1467
1467
|
return e == null ? fe(this, _e) : new this.Collection(this, function() {
|
|
1468
1468
|
return Ce(e, void 0, !1);
|
|
1469
1469
|
});
|
|
1470
|
-
},
|
|
1470
|
+
}, ae.prototype.below = function(e) {
|
|
1471
1471
|
return e == null ? fe(this, _e) : new this.Collection(this, function() {
|
|
1472
1472
|
return Ce(void 0, e, !1, !0);
|
|
1473
1473
|
});
|
|
1474
|
-
},
|
|
1474
|
+
}, ae.prototype.belowOrEqual = function(e) {
|
|
1475
1475
|
return e == null ? fe(this, _e) : new this.Collection(this, function() {
|
|
1476
1476
|
return Ce(void 0, e);
|
|
1477
1477
|
});
|
|
1478
|
-
},
|
|
1478
|
+
}, ae.prototype.startsWith = function(e) {
|
|
1479
1479
|
return typeof e != "string" ? fe(this, ar) : this.between(e, e + Ge, !0, !0);
|
|
1480
|
-
},
|
|
1480
|
+
}, ae.prototype.startsWithIgnoreCase = function(e) {
|
|
1481
1481
|
return e === "" ? this.startsWith(e) : Nt(this, function(t, n) {
|
|
1482
1482
|
return t.indexOf(n[0]) === 0;
|
|
1483
1483
|
}, [e], Ge);
|
|
1484
|
-
},
|
|
1484
|
+
}, ae.prototype.equalsIgnoreCase = function(e) {
|
|
1485
1485
|
return Nt(this, function(t, n) {
|
|
1486
1486
|
return t === n[0];
|
|
1487
1487
|
}, [e], "");
|
|
1488
|
-
},
|
|
1488
|
+
}, ae.prototype.anyOfIgnoreCase = function() {
|
|
1489
1489
|
var e = we.apply(He, arguments);
|
|
1490
1490
|
return e.length === 0 ? et(this) : Nt(this, function(t, n) {
|
|
1491
1491
|
return n.indexOf(t) !== -1;
|
|
1492
1492
|
}, e, "");
|
|
1493
|
-
},
|
|
1493
|
+
}, ae.prototype.startsWithAnyOfIgnoreCase = function() {
|
|
1494
1494
|
var e = we.apply(He, arguments);
|
|
1495
1495
|
return e.length === 0 ? et(this) : Nt(this, function(t, n) {
|
|
1496
1496
|
return n.some(function(i) {
|
|
1497
1497
|
return t.indexOf(i) === 0;
|
|
1498
1498
|
});
|
|
1499
1499
|
}, e, Ge);
|
|
1500
|
-
},
|
|
1500
|
+
}, ae.prototype.anyOf = function() {
|
|
1501
1501
|
var e = this, t = we.apply(He, arguments), n = this._cmp;
|
|
1502
1502
|
try {
|
|
1503
1503
|
t.sort(n);
|
|
@@ -1518,9 +1518,9 @@ var jr = { exports: {} };
|
|
|
1518
1518
|
o.continue(t[a]);
|
|
1519
1519
|
}), !1);
|
|
1520
1520
|
}), i;
|
|
1521
|
-
},
|
|
1521
|
+
}, ae.prototype.notEqual = function(e) {
|
|
1522
1522
|
return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
|
|
1523
|
-
},
|
|
1523
|
+
}, ae.prototype.noneOf = function() {
|
|
1524
1524
|
var e = we.apply(He, arguments);
|
|
1525
1525
|
if (e.length === 0) return new this.Collection(this);
|
|
1526
1526
|
try {
|
|
@@ -1532,7 +1532,7 @@ var jr = { exports: {} };
|
|
|
1532
1532
|
return n ? n.concat([[n[n.length - 1][1], i]]) : [[-1 / 0, i]];
|
|
1533
1533
|
}, null);
|
|
1534
1534
|
return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
|
|
1535
|
-
},
|
|
1535
|
+
}, ae.prototype.inAnyRange = function(_, t) {
|
|
1536
1536
|
var n = this, i = this._cmp, a = this._ascending, o = this._descending, s = this._min, u = this._max;
|
|
1537
1537
|
if (_.length === 0) return et(this);
|
|
1538
1538
|
if (!_.every(function(E) {
|
|
@@ -1575,15 +1575,15 @@ var jr = { exports: {} };
|
|
|
1575
1575
|
d === a ? E.continue(b[p][0]) : E.continue(b[p][1]);
|
|
1576
1576
|
}), !1);
|
|
1577
1577
|
}), _;
|
|
1578
|
-
},
|
|
1578
|
+
}, ae.prototype.startsWithAnyOf = function() {
|
|
1579
1579
|
var e = we.apply(He, arguments);
|
|
1580
1580
|
return e.every(function(t) {
|
|
1581
1581
|
return typeof t == "string";
|
|
1582
1582
|
}) ? e.length === 0 ? et(this) : this.inAnyRange(e.map(function(t) {
|
|
1583
1583
|
return [t, t + Ge];
|
|
1584
1584
|
})) : fe(this, "startsWithAnyOf() only works with strings");
|
|
1585
|
-
},
|
|
1586
|
-
function
|
|
1585
|
+
}, ae);
|
|
1586
|
+
function ae() {
|
|
1587
1587
|
}
|
|
1588
1588
|
function me(e) {
|
|
1589
1589
|
return Z(function(t) {
|
|
@@ -1674,7 +1674,7 @@ var jr = { exports: {} };
|
|
|
1674
1674
|
this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new G.Abort()));
|
|
1675
1675
|
}, be.prototype.table = function(e) {
|
|
1676
1676
|
var t = this._memoizedTables || (this._memoizedTables = {});
|
|
1677
|
-
if (
|
|
1677
|
+
if (re(t, e)) return t[e];
|
|
1678
1678
|
var n = this.schema[e];
|
|
1679
1679
|
if (!n) throw new G.NotFound("Table " + e + " not part of transaction");
|
|
1680
1680
|
return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
|
|
@@ -1742,8 +1742,8 @@ var jr = { exports: {} };
|
|
|
1742
1742
|
var P, $ = (E || O || { length: 1 }).length;
|
|
1743
1743
|
if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
|
|
1744
1744
|
if ($ === 0) return I({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
1745
|
-
function F(
|
|
1746
|
-
++pe, pt(
|
|
1745
|
+
function F(le) {
|
|
1746
|
+
++pe, pt(le);
|
|
1747
1747
|
}
|
|
1748
1748
|
var z = [], U = [], pe = 0;
|
|
1749
1749
|
if (_ === "deleteRange") {
|
|
@@ -1754,15 +1754,15 @@ var jr = { exports: {} };
|
|
|
1754
1754
|
if (j) for (var se = 0; se < $; ++se) z.push(P = oe && oe[se] !== void 0 ? C[_](W[se], oe[se]) : C[_](W[se])), P.onerror = F;
|
|
1755
1755
|
else for (se = 0; se < $; ++se) z.push(P = C[_](W[se])), P.onerror = F;
|
|
1756
1756
|
}
|
|
1757
|
-
function Vt(
|
|
1758
|
-
|
|
1757
|
+
function Vt(le) {
|
|
1758
|
+
le = le.target.result, z.forEach(function(We, Ln) {
|
|
1759
1759
|
return We.error != null && (U[Ln] = We.error);
|
|
1760
1760
|
}), I({ numFailures: pe, failures: U, results: _ === "delete" ? E : z.map(function(We) {
|
|
1761
1761
|
return We.result;
|
|
1762
|
-
}), lastResult:
|
|
1762
|
+
}), lastResult: le });
|
|
1763
1763
|
}
|
|
1764
|
-
P.onerror = function(
|
|
1765
|
-
F(
|
|
1764
|
+
P.onerror = function(le) {
|
|
1765
|
+
F(le), Vt(le);
|
|
1766
1766
|
}, P.onsuccess = Vt;
|
|
1767
1767
|
});
|
|
1768
1768
|
}, getMany: function(w) {
|
|
@@ -1817,19 +1817,19 @@ var jr = { exports: {} };
|
|
|
1817
1817
|
function se() {
|
|
1818
1818
|
if (P.result) try {
|
|
1819
1819
|
oe();
|
|
1820
|
-
} catch (
|
|
1821
|
-
W.fail(
|
|
1820
|
+
} catch (le) {
|
|
1821
|
+
W.fail(le);
|
|
1822
1822
|
}
|
|
1823
1823
|
else W.done = !0, W.start = function() {
|
|
1824
1824
|
throw new Error("Cursor behind last entry");
|
|
1825
1825
|
}, W.stop();
|
|
1826
1826
|
}
|
|
1827
|
-
var Vt = new Promise(function(
|
|
1828
|
-
|
|
1829
|
-
W.stop = W.continue = W.continuePrimaryKey = W.advance = pe,
|
|
1827
|
+
var Vt = new Promise(function(le, We) {
|
|
1828
|
+
le = Z(le), P.onerror = me(We), W.fail = We, W.stop = function(Ln) {
|
|
1829
|
+
W.stop = W.continue = W.continuePrimaryKey = W.advance = pe, le(Ln);
|
|
1830
1830
|
};
|
|
1831
1831
|
});
|
|
1832
|
-
return P.onsuccess = Z(function(
|
|
1832
|
+
return P.onsuccess = Z(function(le) {
|
|
1833
1833
|
P.onsuccess = se, se();
|
|
1834
1834
|
}), W.continue = F, W.continuePrimaryKey = z, W.advance = U, se(), Vt;
|
|
1835
1835
|
}, I(W)) : I(null);
|
|
@@ -2087,9 +2087,9 @@ var jr = { exports: {} };
|
|
|
2087
2087
|
function Dn(e) {
|
|
2088
2088
|
return !("from" in e);
|
|
2089
2089
|
}
|
|
2090
|
-
var
|
|
2090
|
+
var ue = function(e, t) {
|
|
2091
2091
|
if (!this) {
|
|
2092
|
-
var n = new
|
|
2092
|
+
var n = new ue();
|
|
2093
2093
|
return e && "d" in e && J(n, e), n;
|
|
2094
2094
|
}
|
|
2095
2095
|
J(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
|
|
@@ -2152,7 +2152,7 @@ var jr = { exports: {} };
|
|
|
2152
2152
|
return N(t).forEach(function(n) {
|
|
2153
2153
|
e[n] ? vt(e[n], t[n]) : e[n] = function i(a) {
|
|
2154
2154
|
var o, s, u = {};
|
|
2155
|
-
for (o in a)
|
|
2155
|
+
for (o in a) re(a, o) && (s = a[o], u[o] = !s || typeof s != "object" || Vn.has(s.constructor) ? s : i(s));
|
|
2156
2156
|
return u;
|
|
2157
2157
|
}(t[n]);
|
|
2158
2158
|
}), e;
|
|
@@ -2162,7 +2162,7 @@ var jr = { exports: {} };
|
|
|
2162
2162
|
return t[n] && wr(t[n], e[n]);
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
|
-
xe(
|
|
2165
|
+
xe(ue.prototype, ((he = { add: function(e) {
|
|
2166
2166
|
return vt(this, e), this;
|
|
2167
2167
|
}, addKey: function(e) {
|
|
2168
2168
|
return bt(this, e, e), this;
|
|
@@ -2293,8 +2293,8 @@ var jr = { exports: {} };
|
|
|
2293
2293
|
var v;
|
|
2294
2294
|
return d && (v = {}, e.tables.forEach(function(p) {
|
|
2295
2295
|
p.schema.indexes.forEach(function(m) {
|
|
2296
|
-
m.name && (v["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new
|
|
2297
|
-
}), v["idb://".concat(e.name, "/").concat(p.name, "/")] = v["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new
|
|
2296
|
+
m.name && (v["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new ue(-1 / 0, [[[]]]));
|
|
2297
|
+
}), v["idb://".concat(e.name, "/").concat(p.name, "/")] = v["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new ue(-1 / 0, [[[]]]);
|
|
2298
2298
|
}), Re(gt).fire(v), Rn(v, !0)), e;
|
|
2299
2299
|
});
|
|
2300
2300
|
}
|
|
@@ -2366,9 +2366,9 @@ var jr = { exports: {} };
|
|
|
2366
2366
|
function jn(e, t, n, i) {
|
|
2367
2367
|
return n = n || {}, i = i || "", N(e).forEach(function(a) {
|
|
2368
2368
|
var o, s, u;
|
|
2369
|
-
|
|
2369
|
+
re(t, a) ? (o = e[a], s = t[a], typeof o == "object" && typeof s == "object" && o && s ? (u = qt(o)) !== qt(s) ? n[i + a] = t[a] : u === "Object" ? jn(o, s, n, i + a + ".") : o !== s && (n[i + a] = t[a]) : o !== s && (n[i + a] = t[a])) : n[i + a] = void 0;
|
|
2370
2370
|
}), N(t).forEach(function(a) {
|
|
2371
|
-
|
|
2371
|
+
re(e, a) || (n[i + a] = t[a]);
|
|
2372
2372
|
}), n;
|
|
2373
2373
|
}
|
|
2374
2374
|
function Mn(e, t) {
|
|
@@ -2416,7 +2416,7 @@ var jr = { exports: {} };
|
|
|
2416
2416
|
var E = y.map(function(O, x) {
|
|
2417
2417
|
var I, T, C, R = _[x], j = { onerror: null, onsuccess: null };
|
|
2418
2418
|
return d.type === "delete" ? u.fire.call(j, O, R, w) : d.type === "add" || R === void 0 ? (I = g.fire.call(j, O, d.values[x], w), O == null && I != null && (d.keys[x] = O = I, i.outbound || de(d.values[x], i.keyPath, O))) : (I = jn(R, d.values[x]), (T = h.fire.call(j, I, O, R, w)) && (C = d.values[x], Object.keys(T).forEach(function(P) {
|
|
2419
|
-
|
|
2419
|
+
re(C, P) ? C[P] = T[P] : de(C, P, T[P]);
|
|
2420
2420
|
}))), j;
|
|
2421
2421
|
});
|
|
2422
2422
|
return n.mutate(d).then(function(O) {
|
|
@@ -2473,7 +2473,7 @@ var jr = { exports: {} };
|
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
2475
|
var wi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
|
|
2476
|
-
var t = e.schema.name, n = new
|
|
2476
|
+
var t = e.schema.name, n = new ue(e.MIN_KEY, e.MAX_KEY);
|
|
2477
2477
|
return l(l({}, e), { transaction: function(i, a, o) {
|
|
2478
2478
|
if (L.subscr && a !== "readonly") throw new G.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(L.querier));
|
|
2479
2479
|
return e.transaction(i, a, o);
|
|
@@ -2482,7 +2482,7 @@ var jr = { exports: {} };
|
|
|
2482
2482
|
return p.compound && p.keyPath.includes(s.keyPath);
|
|
2483
2483
|
}), b = l(l({}, a), { mutate: function(p) {
|
|
2484
2484
|
function m(P) {
|
|
2485
|
-
return P = "idb://".concat(t, "/").concat(i, "/").concat(P), O[P] || (O[P] = new
|
|
2485
|
+
return P = "idb://".concat(t, "/").concat(i, "/").concat(P), O[P] || (O[P] = new ue());
|
|
2486
2486
|
}
|
|
2487
2487
|
var w, y, _, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), I = m(":dels"), T = p.type, j = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Mn(s, p).filter(function(P) {
|
|
2488
2488
|
return P;
|
|
@@ -2517,18 +2517,18 @@ var jr = { exports: {} };
|
|
|
2517
2517
|
});
|
|
2518
2518
|
} }), d = function(m) {
|
|
2519
2519
|
var w = m.query, m = w.index, w = w.range;
|
|
2520
|
-
return [m, new
|
|
2520
|
+
return [m, new ue((m = w.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (w = w.upper) !== null && w !== void 0 ? w : e.MAX_KEY)];
|
|
2521
2521
|
}, v = { get: function(p) {
|
|
2522
|
-
return [s, new
|
|
2522
|
+
return [s, new ue(p.key)];
|
|
2523
2523
|
}, getMany: function(p) {
|
|
2524
|
-
return [s, new
|
|
2524
|
+
return [s, new ue().addKeys(p.keys)];
|
|
2525
2525
|
}, count: d, query: d, openCursor: d };
|
|
2526
2526
|
return N(v).forEach(function(p) {
|
|
2527
2527
|
b[p] = function(m) {
|
|
2528
2528
|
var w = L.subscr, y = !!w, _ = xr(L, a) && kr(p, m) ? m.obsSet = {} : w;
|
|
2529
2529
|
if (y) {
|
|
2530
2530
|
var E = function(R) {
|
|
2531
|
-
return R = "idb://".concat(t, "/").concat(i, "/").concat(R), _[R] || (_[R] = new
|
|
2531
|
+
return R = "idb://".concat(t, "/").concat(i, "/").concat(R), _[R] || (_[R] = new ue());
|
|
2532
2532
|
}, O = E(""), x = E(":dels"), w = v[p](m), y = w[0], w = w[1];
|
|
2533
2533
|
if ((p === "query" && y.isPrimaryKey && !m.values ? x : E(y.name || "")).add(w), !y.isPrimaryKey) {
|
|
2534
2534
|
if (p !== "count") {
|
|
@@ -2580,7 +2580,7 @@ var jr = { exports: {} };
|
|
|
2580
2580
|
if (!v || v.length === 0) return e;
|
|
2581
2581
|
var s = t.query.index, u = s.multiEntry, g = t.query.range, h = i.schema.primaryKey.extractKey, b = s.extractKey, d = (s.lowLevelIndex || s).extractKey, v = v.reduce(function(p, m) {
|
|
2582
2582
|
var w = p, y = [];
|
|
2583
|
-
if (m.type === "add" || m.type === "put") for (var _ = new
|
|
2583
|
+
if (m.type === "add" || m.type === "put") for (var _ = new ue(), E = m.values.length - 1; 0 <= E; --E) {
|
|
2584
2584
|
var O, x = m.values[E], I = h(x);
|
|
2585
2585
|
_.hasKey(I) || (O = b(x), (u && B(O) ? O.some(function(j) {
|
|
2586
2586
|
return Kn(j, g);
|
|
@@ -2593,7 +2593,7 @@ var jr = { exports: {} };
|
|
|
2593
2593
|
}));
|
|
2594
2594
|
break;
|
|
2595
2595
|
case "put":
|
|
2596
|
-
var T = new
|
|
2596
|
+
var T = new ue().addKeys(m.values.map(function(P) {
|
|
2597
2597
|
return h(P);
|
|
2598
2598
|
})), w = p.filter(function(P) {
|
|
2599
2599
|
return !T.hasKey(t.values ? h(P) : P);
|
|
@@ -2602,7 +2602,7 @@ var jr = { exports: {} };
|
|
|
2602
2602
|
}));
|
|
2603
2603
|
break;
|
|
2604
2604
|
case "delete":
|
|
2605
|
-
var C = new
|
|
2605
|
+
var C = new ue().addKeys(m.keys);
|
|
2606
2606
|
w = p.filter(function(P) {
|
|
2607
2607
|
return !C.hasKey(t.values ? h(P) : P);
|
|
2608
2608
|
});
|
|
@@ -2901,7 +2901,7 @@ var jr = { exports: {} };
|
|
|
2901
2901
|
return i._whenReady(g);
|
|
2902
2902
|
}) : this._whenReady(g);
|
|
2903
2903
|
}, te.prototype.table = function(e) {
|
|
2904
|
-
if (!
|
|
2904
|
+
if (!re(this._allTables, e)) throw new G.InvalidTable("Table ".concat(e, " does not exist"));
|
|
2905
2905
|
return this._allTables[e];
|
|
2906
2906
|
}, te);
|
|
2907
2907
|
function te(e, t) {
|
|
@@ -3022,7 +3022,7 @@ var jr = { exports: {} };
|
|
|
3022
3022
|
}
|
|
3023
3023
|
}(y = { subscr: w, signal: s.signal, requery: v, querier: e, trans: null }), Promise.resolve(_).then(function(E) {
|
|
3024
3024
|
n = !0, t = E, u || y.signal.aborted || (g = {}, function(O) {
|
|
3025
|
-
for (var x in O) if (
|
|
3025
|
+
for (var x in O) if (re(O, x)) return;
|
|
3026
3026
|
return 1;
|
|
3027
3027
|
}(h = w) || d || (Re(gt, p), d = !0), fn(function() {
|
|
3028
3028
|
return !u && a.next && a.next(E);
|
|
@@ -3128,7 +3128,7 @@ var jr = { exports: {} };
|
|
|
3128
3128
|
for (var t = 0, n = Ze; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
|
|
3129
3129
|
}
|
|
3130
3130
|
}), addEventListener("pageshow", function(e) {
|
|
3131
|
-
!Ee.disableBfCache && e.persisted && (ye && console.debug("Dexie: handling persisted pageshow"), Cr(), Bn({ all: new
|
|
3131
|
+
!Ee.disableBfCache && e.persisted && (ye && console.debug("Dexie: handling persisted pageshow"), Cr(), Bn({ all: new ue(-1 / 0, [[]]) }));
|
|
3132
3132
|
})), K.rejectionMapper = function(e, t) {
|
|
3133
3133
|
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() {
|
|
3134
3134
|
return this.inner.stack;
|
|
@@ -3139,7 +3139,7 @@ var jr = { exports: {} };
|
|
|
3139
3139
|
return new ht({ add: e });
|
|
3140
3140
|
}, remove: function(e) {
|
|
3141
3141
|
return new ht({ remove: e });
|
|
3142
|
-
}, default: Ee, RangeSet:
|
|
3142
|
+
}, default: Ee, RangeSet: ue, mergeRanges: vt, rangesOverlap: wr }), { default: Ee }), Ee;
|
|
3143
3143
|
});
|
|
3144
3144
|
})(jr);
|
|
3145
3145
|
var Ii = jr.exports;
|
|
@@ -3238,9 +3238,9 @@ class Mr {
|
|
|
3238
3238
|
if (k.length === 0)
|
|
3239
3239
|
return { data: null, message: "No Messages error", success: !1 };
|
|
3240
3240
|
const N = k[0] ? k[0].title : "No title", B = k.map(
|
|
3241
|
-
(
|
|
3242
|
-
), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((
|
|
3243
|
-
(
|
|
3241
|
+
(ce) => ce.message_id
|
|
3242
|
+
), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((ce) => ce.sort((re, xe) => xe.utc - re.utc))).map(
|
|
3243
|
+
(ce) => ce.data
|
|
3244
3244
|
);
|
|
3245
3245
|
return {
|
|
3246
3246
|
data: {
|
|
@@ -3293,14 +3293,14 @@ class Mr {
|
|
|
3293
3293
|
let A = 0;
|
|
3294
3294
|
return c.data.messages.forEach(async (k) => {
|
|
3295
3295
|
var N, B, J, q;
|
|
3296
|
-
k.id !== null && (await this.db.table(M.MESSAGES).put({ id: k.id, utc: k.utc, data: k, expires: k.expires }).catch((
|
|
3296
|
+
k.id !== null && (await this.db.table(M.MESSAGES).put({ id: k.id, utc: k.utc, data: k, expires: k.expires }).catch((ce) => {
|
|
3297
3297
|
A++, console.error(
|
|
3298
3298
|
"%cstorage",
|
|
3299
3299
|
S.STORAGE,
|
|
3300
3300
|
"set message",
|
|
3301
3301
|
`title: ${l}`,
|
|
3302
3302
|
k,
|
|
3303
|
-
|
|
3303
|
+
ce.message
|
|
3304
3304
|
);
|
|
3305
3305
|
}), await this.db.table(M.TOPICS).put({
|
|
3306
3306
|
widget_id: r.widget,
|
|
@@ -3313,14 +3313,14 @@ class Mr {
|
|
|
3313
3313
|
sentiment: ((q = k.topics[0]) == null ? void 0 : q.sentiment) || 0,
|
|
3314
3314
|
utc: k.utc,
|
|
3315
3315
|
expires: k.expires
|
|
3316
|
-
}).catch((
|
|
3316
|
+
}).catch((ce) => {
|
|
3317
3317
|
A++, console.error(
|
|
3318
3318
|
"%cstorage",
|
|
3319
3319
|
S.STORAGE,
|
|
3320
3320
|
"set topic",
|
|
3321
3321
|
`title: ${l}`,
|
|
3322
3322
|
k,
|
|
3323
|
-
|
|
3323
|
+
ce.message
|
|
3324
3324
|
);
|
|
3325
3325
|
}));
|
|
3326
3326
|
}), A === 0 ? 201 : 400;
|
|
@@ -4184,12 +4184,13 @@ class Ji {
|
|
|
4184
4184
|
return 400;
|
|
4185
4185
|
if (B.success === !0) {
|
|
4186
4186
|
const J = this.sm.subscribers.filter(
|
|
4187
|
-
(
|
|
4187
|
+
(ce) => ce.widget === B.query.widget
|
|
4188
4188
|
)[0];
|
|
4189
4189
|
let q = "";
|
|
4190
4190
|
switch (B.query.type) {
|
|
4191
4191
|
case M.MESSAGES:
|
|
4192
|
-
|
|
4192
|
+
let ce = B.data.messages.filter((re) => re.id !== null);
|
|
4193
|
+
if (B.data.messages = ce, q = $n(B.data.messages), J.hash === q)
|
|
4193
4194
|
return console.debug(
|
|
4194
4195
|
"%capi%c %cno updates",
|
|
4195
4196
|
S.API,
|