buzzcasting-storage 2.16.10 → 2.16.12
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 +66 -66
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
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 || {}),
|
|
5
|
-
const Ai = "2.16.
|
|
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 || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.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))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
|
|
5
|
+
const Ai = "2.16.11";
|
|
6
6
|
class Di {
|
|
7
7
|
constructor(r) {
|
|
8
8
|
D(this, "options");
|
|
@@ -58,7 +58,7 @@ class Di {
|
|
|
58
58
|
S.API,
|
|
59
59
|
S.NONE,
|
|
60
60
|
S.GET_DATA,
|
|
61
|
-
|
|
61
|
+
re.HIDE_MESSAGE,
|
|
62
62
|
r.widget,
|
|
63
63
|
r.id
|
|
64
64
|
), await fetch(
|
|
@@ -79,7 +79,7 @@ class Di {
|
|
|
79
79
|
S.API,
|
|
80
80
|
S.NONE,
|
|
81
81
|
S.GET_DATA,
|
|
82
|
-
|
|
82
|
+
re.HIDE_LABELS,
|
|
83
83
|
r.widget,
|
|
84
84
|
k
|
|
85
85
|
), await fetch(
|
|
@@ -98,7 +98,7 @@ class Di {
|
|
|
98
98
|
S.API,
|
|
99
99
|
S.NONE,
|
|
100
100
|
S.SLIDE,
|
|
101
|
-
|
|
101
|
+
re.SLIDE_LOAD,
|
|
102
102
|
r.slide
|
|
103
103
|
), await fetch(
|
|
104
104
|
[this.url, "api", c, "slides", r.id].join("/"),
|
|
@@ -125,7 +125,7 @@ class Di {
|
|
|
125
125
|
S.API,
|
|
126
126
|
S.NONE,
|
|
127
127
|
S.SLIDE,
|
|
128
|
-
|
|
128
|
+
re.SLIDE_STORE,
|
|
129
129
|
r.id
|
|
130
130
|
), await fetch(
|
|
131
131
|
[this.url, "api", c, "slides", r.id].join("/"),
|
|
@@ -170,7 +170,7 @@ var jr = { exports: {} };
|
|
|
170
170
|
}
|
|
171
171
|
typeof Promise > "u" || k.Promise || (k.Promise = Promise);
|
|
172
172
|
var q = Object.getPrototypeOf, le = {}.hasOwnProperty;
|
|
173
|
-
function
|
|
173
|
+
function ne(e, t) {
|
|
174
174
|
return le.call(e, t);
|
|
175
175
|
}
|
|
176
176
|
function xe(e, t) {
|
|
@@ -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 && ne(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
|
|
184
184
|
}
|
|
185
185
|
function 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" && ne(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]) || !ne(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) ne(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) ne(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)), ne(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 = ne(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 (ne(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;
|
|
@@ -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) ne(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;
|
|
@@ -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
|
+
ne(t, a) ? (o = e[a], s = t[a], typeof o == "object" && typeof s == "object" && o && s ? (u = qt(o)) !== qt(s) ? n[i + a] = t[a] : u === "Object" ? 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
|
+
ne(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
|
+
ne(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) {
|
|
@@ -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 (!ne(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 (ne(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);
|
|
@@ -3239,7 +3239,7 @@ class Mr {
|
|
|
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
3241
|
(le) => le.message_id
|
|
3242
|
-
), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((le) => le.sort((
|
|
3242
|
+
), q = (await this.db.table(M.MESSAGES).where("id").anyOf(B).toArray().then((le) => le.sort((ne, xe) => xe.utc - ne.utc))).map(
|
|
3243
3243
|
(le) => le.data
|
|
3244
3244
|
);
|
|
3245
3245
|
return {
|
|
@@ -3420,7 +3420,7 @@ class Mr {
|
|
|
3420
3420
|
}).then(() => 200).catch((c) => (console.error(
|
|
3421
3421
|
"%cstorage",
|
|
3422
3422
|
S.STORAGE,
|
|
3423
|
-
|
|
3423
|
+
re.SLIDE_STORE,
|
|
3424
3424
|
r,
|
|
3425
3425
|
c.message
|
|
3426
3426
|
), 422)) : 422);
|
|
@@ -4184,12 +4184,12 @@ class Ji {
|
|
|
4184
4184
|
return 400;
|
|
4185
4185
|
if (B.success === !0) {
|
|
4186
4186
|
const J = this.sm.subscribers.filter(
|
|
4187
|
-
(
|
|
4187
|
+
(ne) => ne.widget === B.query.widget
|
|
4188
4188
|
)[0];
|
|
4189
|
-
let q = "";
|
|
4189
|
+
let q = "", le;
|
|
4190
4190
|
switch (B.query.type) {
|
|
4191
4191
|
case M.MESSAGES:
|
|
4192
|
-
if (q = $n(B.data.messages), J.hash === q)
|
|
4192
|
+
if (le = B.data.messages.filter((ne) => ne.id !== null), B.data.messages = le, q = $n(B.data.messages), J.hash === q)
|
|
4193
4193
|
return console.debug(
|
|
4194
4194
|
"%capi%c %cno updates",
|
|
4195
4195
|
S.API,
|
|
@@ -4244,7 +4244,7 @@ class Ji {
|
|
|
4244
4244
|
S.BROADCAST,
|
|
4245
4245
|
B.query.slide,
|
|
4246
4246
|
B.data.title ?? B.query.widget
|
|
4247
|
-
), this.bc.postMessage({ event:
|
|
4247
|
+
), this.bc.postMessage({ event: re.WIDGET_UPDATE, data: B });
|
|
4248
4248
|
break;
|
|
4249
4249
|
case 400:
|
|
4250
4250
|
console.warn(
|
|
@@ -4264,7 +4264,7 @@ class Ji {
|
|
|
4264
4264
|
S.API,
|
|
4265
4265
|
S.NONE,
|
|
4266
4266
|
S.STORAGE,
|
|
4267
|
-
|
|
4267
|
+
re.ERROR
|
|
4268
4268
|
), 400;
|
|
4269
4269
|
})
|
|
4270
4270
|
);
|
|
@@ -4275,16 +4275,16 @@ class Ji {
|
|
|
4275
4275
|
D(this, "actions", async (r) => {
|
|
4276
4276
|
var c;
|
|
4277
4277
|
switch (r.data.event) {
|
|
4278
|
-
case
|
|
4278
|
+
case re.SUBSCRIBE:
|
|
4279
4279
|
(c = this.sm) == null || c.subscribe(r.data.data);
|
|
4280
4280
|
break;
|
|
4281
|
-
case
|
|
4281
|
+
case re.UPDATE:
|
|
4282
4282
|
console.debug(
|
|
4283
4283
|
"%capi%c %cstorage",
|
|
4284
4284
|
S.API,
|
|
4285
4285
|
S.NONE,
|
|
4286
4286
|
S.STORAGE,
|
|
4287
|
-
|
|
4287
|
+
re.UPDATE,
|
|
4288
4288
|
r.data
|
|
4289
4289
|
), await this.update();
|
|
4290
4290
|
break;
|
|
@@ -4332,7 +4332,7 @@ class Ji {
|
|
|
4332
4332
|
S.NONE,
|
|
4333
4333
|
S.SLIDE,
|
|
4334
4334
|
r.slide,
|
|
4335
|
-
|
|
4335
|
+
re.VERSION,
|
|
4336
4336
|
Ai
|
|
4337
4337
|
), this.options = r, this.sm = null;
|
|
4338
4338
|
const c = (r == null ? void 0 : r.slide) || r.app;
|
|
@@ -4341,11 +4341,11 @@ class Ji {
|
|
|
4341
4341
|
S.API,
|
|
4342
4342
|
S.NONE,
|
|
4343
4343
|
S.BROADCAST,
|
|
4344
|
-
|
|
4344
|
+
re.CHANNEL,
|
|
4345
4345
|
c
|
|
4346
4346
|
), this.bc.onmessage = (l) => {
|
|
4347
4347
|
this.actions(l);
|
|
4348
|
-
}, this.bc.postMessage({ event:
|
|
4348
|
+
}, this.bc.postMessage({ event: re.STORAGE_INIT, data: {} }), this.api = new Di(r), r.storage) {
|
|
4349
4349
|
case ge.DEXIE:
|
|
4350
4350
|
this.sm = new Mr(r);
|
|
4351
4351
|
break;
|
|
@@ -4553,12 +4553,12 @@ class Zi {
|
|
|
4553
4553
|
console.debug(
|
|
4554
4554
|
"%cwidget",
|
|
4555
4555
|
S.WIDGET,
|
|
4556
|
-
|
|
4556
|
+
re.SHOW_MODAL,
|
|
4557
4557
|
r.showComponent,
|
|
4558
4558
|
// @ts-expect-error cannot get string type out of IFilteredAttributes props
|
|
4559
4559
|
c["data-widget"]
|
|
4560
4560
|
);
|
|
4561
|
-
const A = new CustomEvent(
|
|
4561
|
+
const A = new CustomEvent(re.SHOW_MODAL, {
|
|
4562
4562
|
detail: {
|
|
4563
4563
|
component: r.showComponent,
|
|
4564
4564
|
props: l,
|
|
@@ -4588,12 +4588,12 @@ class Zi {
|
|
|
4588
4588
|
this.broadcastChannel.onmessage = async (c) => {
|
|
4589
4589
|
const l = c.data.data;
|
|
4590
4590
|
switch (c.data.event) {
|
|
4591
|
-
case
|
|
4591
|
+
case re.WIDGET_UPDATE:
|
|
4592
4592
|
l.query.slide === r.slide && l.query.widget === r.widget && this.listeners.forEach((A) => {
|
|
4593
4593
|
A(c.data.data);
|
|
4594
4594
|
});
|
|
4595
4595
|
break;
|
|
4596
|
-
case
|
|
4596
|
+
case re.SLIDE_READY:
|
|
4597
4597
|
this.subscribe();
|
|
4598
4598
|
break;
|
|
4599
4599
|
}
|
|
@@ -4612,7 +4612,7 @@ class Zi {
|
|
|
4612
4612
|
this.query.slide,
|
|
4613
4613
|
this.query.widget
|
|
4614
4614
|
), this.broadcastChannel.postMessage({
|
|
4615
|
-
event:
|
|
4615
|
+
event: re.SUBSCRIBE,
|
|
4616
4616
|
data: this.query
|
|
4617
4617
|
});
|
|
4618
4618
|
}
|
|
@@ -4625,7 +4625,7 @@ export {
|
|
|
4625
4625
|
Ji as BuzzcastingStorageManager,
|
|
4626
4626
|
Ni as BuzzcastingStorageReader,
|
|
4627
4627
|
S as CSS,
|
|
4628
|
-
|
|
4628
|
+
re as EVENTS,
|
|
4629
4629
|
Zt as MODERATION,
|
|
4630
4630
|
ge as STORAGE,
|
|
4631
4631
|
Zi as Widget,
|