buzzcasting-storage 3.0.10 → 3.0.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 +127 -126
- package/package.json +7 -7
|
@@ -2,7 +2,7 @@ var xi = Object.defineProperty;
|
|
|
2
2
|
var Ai = (d, r, s) => r in d ? xi(d, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[r] = s;
|
|
3
3
|
var k = (d, r, s) => Ai(d, typeof r != "symbol" ? r + "" : r, s);
|
|
4
4
|
var K = /* @__PURE__ */ ((d) => (d.MESSAGES = "messages", d.CLOUD = "cloud", d.SERIES = "series", d.TOPICS = "topics", d.WIDGET = "widget", d.WIDGETS = "widgets", d.SLIDE = "slide", d))(K || {}), v = /* @__PURE__ */ ((d) => (d.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", d.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", d.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", d.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", d.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", d.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", d.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", d.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", d.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", d.NONE = "color:transparent;background-color:transparent;", d.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", d.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", d.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", d.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", d.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", d.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", d.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", d))(v || {}), re = /* @__PURE__ */ ((d) => (d.ADD_SLIDE = "addSlide", d.APP_READY = "appReady", d.API_UPDATE = "apiUpdate", d.APPROVE_MESSAGE = "approveMessage", d.CHANNEL = "channel", d.CLEAN_MESSAGES = "cleanMessages", d.CLOSE_MODAL = "closeModal", d.CLOSE_BUILDER_MODAL = "closeBuilderModal", d.ERROR = "error", d.HIDE_MESSAGE = "hideMessage", d.HIDE_LABELS = "hideLabels", d.PAUSE_PRESENTATION = "pausePresentation", d.PRESENTATION_READY = "presentationReady", d.PREV_SLIDE = "prevSlide", d.RELOAD_PRESENTATION = "reloadPresentation", d.SHOW_MODAL = "showModal", d.STAR_MESSAGE = "starMessage", d.GOTO_SLIDE = "gotoSlide", d.NEXT_SLIDE = "nextSlide", d.SHOW_BUILDER_MODAL = "showBuilderModal", d.SLIDE_DID_LOAD = "slideDidLoad", d.SLIDE_GOTO = "slideGoto", d.SLIDE_READY = "slideReady", d.SLIDE_LOAD = "loadSlide", d.SLIDE_STORE = "storeSlide", d.SLIDE_TRANSITIONER = "slideTransitioner", d.START_TRANSITIONER = "startTransitioner", d.STORAGE_INIT = "storageInit", d.SUBSCRIBE = "subscribe", d.SUSPEND_ACCOUNT = "suspendAccount", d.REMOVE_CLOUD = "removeCloud", d.UPDATE = "update", d.VERSION = "version", d.WIDGET_UPDATE = "widgetUpdate", d))(re || {}), Zt = /* @__PURE__ */ ((d) => (d.APPROVED = "approved", d.BEFORE = "before", d.DELAYED = "delayed", d.NONE = "none", d.REALTIME = "realtime", d))(Zt || {}), ye = /* @__PURE__ */ ((d) => (d.KEYVAL = "keyval", d.LOCAL = "local", d.SESSION = "session", d.DEXIE = "dexie", d.WINDOW = "window", d))(ye || {});
|
|
5
|
-
const ki = "3.0.
|
|
5
|
+
const ki = "3.0.11";
|
|
6
6
|
class Di {
|
|
7
7
|
constructor(r) {
|
|
8
8
|
k(this, "options");
|
|
@@ -174,16 +174,16 @@ var Tr = { exports: {} };
|
|
|
174
174
|
}
|
|
175
175
|
function le(e, t) {
|
|
176
176
|
typeof t == "function" && (t = t(X(e))), (typeof Reflect > "u" ? j : Reflect.ownKeys)(t).forEach(function(n) {
|
|
177
|
-
|
|
177
|
+
xe(e, n, t[n]);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
var He = Object.defineProperty;
|
|
181
|
-
function
|
|
181
|
+
function xe(e, t, n, i) {
|
|
182
182
|
He(e, t, N(n && ee(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, i));
|
|
183
183
|
}
|
|
184
184
|
function Ye(e) {
|
|
185
185
|
return { from: function(t) {
|
|
186
|
-
return e.prototype = Object.create(t.prototype),
|
|
186
|
+
return e.prototype = Object.create(t.prototype), xe(e.prototype, "constructor", e), { extend: le.bind(null, e.prototype) };
|
|
187
187
|
} };
|
|
188
188
|
}
|
|
189
189
|
var Fr = Object.getOwnPropertyDescriptor, Ur = [].slice;
|
|
@@ -233,16 +233,16 @@ var Tr = { exports: {} };
|
|
|
233
233
|
function Qn(e) {
|
|
234
234
|
return Wr.apply([], e);
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var Ne = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Qn([8, 16, 32, 64].map(function(e) {
|
|
237
237
|
return ["Int", "Uint", "Float"].map(function(t) {
|
|
238
238
|
return t + e + "Array";
|
|
239
239
|
});
|
|
240
240
|
}))).filter(function(e) {
|
|
241
241
|
return D[e];
|
|
242
|
-
}), Xn = new Set(
|
|
242
|
+
}), Xn = new Set(Ne.map(function(e) {
|
|
243
243
|
return D[e];
|
|
244
244
|
})), ot = null;
|
|
245
|
-
function
|
|
245
|
+
function Te(e) {
|
|
246
246
|
return ot = /* @__PURE__ */ new WeakMap(), e = function t(n) {
|
|
247
247
|
if (!n || typeof n != "object") return n;
|
|
248
248
|
var i = ot.get(n);
|
|
@@ -268,7 +268,7 @@ var Tr = { exports: {} };
|
|
|
268
268
|
} : function() {
|
|
269
269
|
return null;
|
|
270
270
|
};
|
|
271
|
-
function
|
|
271
|
+
function Me(e, t) {
|
|
272
272
|
return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
|
|
273
273
|
}
|
|
274
274
|
var Qe = {};
|
|
@@ -342,7 +342,7 @@ var Tr = { exports: {} };
|
|
|
342
342
|
return t(e(n));
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function je(e, t) {
|
|
346
346
|
return function() {
|
|
347
347
|
e.apply(this, arguments), t.apply(this, arguments);
|
|
348
348
|
};
|
|
@@ -354,14 +354,14 @@ var Tr = { exports: {} };
|
|
|
354
354
|
var i = this.onsuccess, o = this.onerror;
|
|
355
355
|
this.onsuccess = null, this.onerror = null;
|
|
356
356
|
var a = t.apply(this, arguments);
|
|
357
|
-
return i && (this.onsuccess = this.onsuccess ?
|
|
357
|
+
return i && (this.onsuccess = this.onsuccess ? je(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? je(o, this.onerror) : o), a !== void 0 ? a : n;
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
function Vr(e, t) {
|
|
361
361
|
return e === J ? t : function() {
|
|
362
362
|
e.apply(this, arguments);
|
|
363
363
|
var n = this.onsuccess, i = this.onerror;
|
|
364
|
-
this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ?
|
|
364
|
+
this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? je(n, this.onsuccess) : n), i && (this.onerror = this.onerror ? je(i, this.onerror) : i);
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
function Zr(e, t) {
|
|
@@ -369,7 +369,7 @@ var Tr = { exports: {} };
|
|
|
369
369
|
var i = e.apply(this, arguments);
|
|
370
370
|
N(n, i);
|
|
371
371
|
var o = this.onsuccess, a = this.onerror;
|
|
372
|
-
return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), o && (this.onsuccess = this.onsuccess ?
|
|
372
|
+
return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), o && (this.onsuccess = this.onsuccess ? je(o, this.onsuccess) : o), a && (this.onerror = this.onerror ? je(a, this.onerror) : a), i === void 0 ? n === void 0 ? void 0 : n : N(i, n);
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
375
|
function qr(e, t) {
|
|
@@ -394,14 +394,14 @@ var Tr = { exports: {} };
|
|
|
394
394
|
function Zn(e) {
|
|
395
395
|
me = e;
|
|
396
396
|
}
|
|
397
|
-
var st = {}, qn = 100,
|
|
397
|
+
var st = {}, qn = 100, Ne = typeof Promise > "u" ? [] : function() {
|
|
398
398
|
var e = Promise.resolve();
|
|
399
399
|
if (typeof crypto > "u" || !crypto.subtle) return [e, X(e), e];
|
|
400
400
|
var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
401
401
|
return [t, X(t), e];
|
|
402
|
-
}(), ct =
|
|
402
|
+
}(), ct = Ne[0], ge = Ne[1], Ne = Ne[2], ge = ge && ge.then, Ke = ct && ct.constructor, an = !!Ne, ut = function(e, t) {
|
|
403
403
|
lt.push([e, t]), xt && (queueMicrotask(ti), xt = !1);
|
|
404
|
-
}, sn = !0, xt = !0, Be = [], At = [], cn = at,
|
|
404
|
+
}, sn = !0, xt = !0, Be = [], At = [], cn = at, Ae = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: J, pgp: !1, env: {}, finalize: J }, G = Ae, lt = [], Le = 0, kt = [];
|
|
405
405
|
function B(e) {
|
|
406
406
|
if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
|
|
407
407
|
this._listeners = [], this._lib = !1;
|
|
@@ -429,14 +429,14 @@ var Tr = { exports: {} };
|
|
|
429
429
|
var un = { get: function() {
|
|
430
430
|
var e = G, t = Ct;
|
|
431
431
|
function n(i, o) {
|
|
432
|
-
var a = this, c = !e.global && (e !== G || t !== Ct), u = c && !
|
|
432
|
+
var a = this, c = !e.global && (e !== G || t !== Ct), u = c && !De(), h = new B(function(g, b) {
|
|
433
433
|
dn(a, new er(rr(i, e, c, u), rr(o, e, c, u), g, b, e));
|
|
434
434
|
});
|
|
435
435
|
return this._consoleTask && (h._consoleTask = this._consoleTask), h;
|
|
436
436
|
}
|
|
437
437
|
return n.prototype = st, n;
|
|
438
438
|
}, set: function(e) {
|
|
439
|
-
|
|
439
|
+
xe(this, "then", e && e.prototype === st ? un : { get: function() {
|
|
440
440
|
return e;
|
|
441
441
|
}, set: un.set });
|
|
442
442
|
} };
|
|
@@ -480,7 +480,7 @@ var Tr = { exports: {} };
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
function ti() {
|
|
483
|
-
Ge(
|
|
483
|
+
Ge(Ae, function() {
|
|
484
484
|
Ve() && Ze();
|
|
485
485
|
});
|
|
486
486
|
}
|
|
@@ -513,11 +513,11 @@ var Tr = { exports: {} };
|
|
|
513
513
|
return function() {
|
|
514
514
|
var i = Ve(), o = G;
|
|
515
515
|
try {
|
|
516
|
-
return
|
|
516
|
+
return Pe(n, !0), e.apply(this, arguments);
|
|
517
517
|
} catch (a) {
|
|
518
518
|
t && t(a);
|
|
519
519
|
} finally {
|
|
520
|
-
|
|
520
|
+
Pe(o, !1), i && Ze();
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
}
|
|
@@ -549,7 +549,7 @@ var Tr = { exports: {} };
|
|
|
549
549
|
}, e);
|
|
550
550
|
n.then(i, o).finally(clearTimeout.bind(null, a));
|
|
551
551
|
}) : this;
|
|
552
|
-
} }), typeof Symbol < "u" && Symbol.toStringTag &&
|
|
552
|
+
} }), typeof Symbol < "u" && Symbol.toStringTag && xe(B.prototype, Symbol.toStringTag, "Dexie.Promise"), Ae.env = nr(), le(B, { all: function() {
|
|
553
553
|
var e = Se.apply(null, arguments).map(Rt);
|
|
554
554
|
return new B(function(t, n) {
|
|
555
555
|
e.length === 0 && t([]);
|
|
@@ -577,7 +577,7 @@ var Tr = { exports: {} };
|
|
|
577
577
|
return G = e;
|
|
578
578
|
} }, totalEchoes: { get: function() {
|
|
579
579
|
return Ct;
|
|
580
|
-
} }, newPSD:
|
|
580
|
+
} }, newPSD: ke, usePSD: Ge, scheduler: { get: function() {
|
|
581
581
|
return ut;
|
|
582
582
|
}, set: function(e) {
|
|
583
583
|
ut = e;
|
|
@@ -587,9 +587,9 @@ var Tr = { exports: {} };
|
|
|
587
587
|
cn = e;
|
|
588
588
|
} }, follow: function(e, t) {
|
|
589
589
|
return new B(function(n, i) {
|
|
590
|
-
return
|
|
590
|
+
return ke(function(o, a) {
|
|
591
591
|
var c = G;
|
|
592
|
-
c.unhandleds = [], c.onunhandled = a, c.finalize =
|
|
592
|
+
c.unhandleds = [], c.onunhandled = a, c.finalize = je(function() {
|
|
593
593
|
var u, h = this;
|
|
594
594
|
u = function() {
|
|
595
595
|
h.unhandleds.length === 0 ? o() : a(h.unhandleds[0]);
|
|
@@ -601,7 +601,7 @@ var Tr = { exports: {} };
|
|
|
601
601
|
}, c.finalize), e();
|
|
602
602
|
}, t, n, i);
|
|
603
603
|
});
|
|
604
|
-
} }), Ke && (Ke.allSettled &&
|
|
604
|
+
} }), Ke && (Ke.allSettled && xe(B, "allSettled", function() {
|
|
605
605
|
var e = Se.apply(null, arguments).map(Rt);
|
|
606
606
|
return new B(function(t) {
|
|
607
607
|
e.length === 0 && t([]);
|
|
@@ -616,7 +616,7 @@ var Tr = { exports: {} };
|
|
|
616
616
|
});
|
|
617
617
|
});
|
|
618
618
|
});
|
|
619
|
-
}), Ke.any && typeof AggregateError < "u" &&
|
|
619
|
+
}), Ke.any && typeof AggregateError < "u" && xe(B, "any", function() {
|
|
620
620
|
var e = Se.apply(null, arguments).map(Rt);
|
|
621
621
|
return new B(function(t, n) {
|
|
622
622
|
e.length === 0 && n(new AggregateError([]));
|
|
@@ -631,34 +631,34 @@ var Tr = { exports: {} };
|
|
|
631
631
|
});
|
|
632
632
|
}), Ke.withResolvers && (B.withResolvers = Ke.withResolvers));
|
|
633
633
|
var ie = { awaits: 0, echoes: 0, id: 0 }, ni = 0, Pt = [], It = 0, Ct = 0, ri = 0;
|
|
634
|
-
function
|
|
634
|
+
function ke(e, t, n, i) {
|
|
635
635
|
var o = G, a = Object.create(o);
|
|
636
|
-
return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ri,
|
|
636
|
+
return a.parent = o, a.ref = 0, a.global = !1, a.id = ++ri, Ae.env, a.env = an ? { Promise: B, PromiseProp: { value: B, configurable: !0, writable: !0 }, all: B.all, race: B.race, allSettled: B.allSettled, any: B.any, resolve: B.resolve, reject: B.reject } : {}, t && N(a, t), ++o.ref, a.finalize = function() {
|
|
637
637
|
--this.parent.ref || this.parent.finalize();
|
|
638
638
|
}, i = Ge(a, e, n, i), a.ref === 0 && a.finalize(), i;
|
|
639
639
|
}
|
|
640
640
|
function qe() {
|
|
641
641
|
return ie.id || (ie.id = ++ni), ++ie.awaits, ie.echoes += qn, ie.id;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function De() {
|
|
644
644
|
return !!ie.awaits && (--ie.awaits == 0 && (ie.id = 0), ie.echoes = ie.awaits * qn, !0);
|
|
645
645
|
}
|
|
646
646
|
function Rt(e) {
|
|
647
647
|
return ie.echoes && e && e.constructor === Ke ? (qe(), e.then(function(t) {
|
|
648
|
-
return
|
|
648
|
+
return De(), t;
|
|
649
649
|
}, function(t) {
|
|
650
|
-
return
|
|
650
|
+
return De(), te(t);
|
|
651
651
|
})) : e;
|
|
652
652
|
}
|
|
653
653
|
function ii() {
|
|
654
654
|
var e = Pt[Pt.length - 1];
|
|
655
|
-
Pt.pop(),
|
|
655
|
+
Pt.pop(), Pe(e, !1);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Pe(e, t) {
|
|
658
658
|
var n, i = G;
|
|
659
659
|
(t ? !ie.echoes || It++ && e === G : !It || --It && e === G) || queueMicrotask(t ? (function(o) {
|
|
660
|
-
++Ct, ie.echoes && --ie.echoes != 0 || (ie.echoes = ie.awaits = ie.id = 0), Pt.push(G),
|
|
661
|
-
}).bind(null, e) : ii), e !== G && (G = e, i ===
|
|
660
|
+
++Ct, ie.echoes && --ie.echoes != 0 || (ie.echoes = ie.awaits = ie.id = 0), Pt.push(G), Pe(o, !0);
|
|
661
|
+
}).bind(null, e) : ii), e !== G && (G = e, i === Ae && (Ae.env = nr()), an && (n = Ae.env.Promise, t = e.env, (i.global || e.global) && (Object.defineProperty(D, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
|
|
662
662
|
}
|
|
663
663
|
function nr() {
|
|
664
664
|
var e = D.Promise;
|
|
@@ -667,26 +667,26 @@ var Tr = { exports: {} };
|
|
|
667
667
|
function Ge(e, t, n, i, o) {
|
|
668
668
|
var a = G;
|
|
669
669
|
try {
|
|
670
|
-
return
|
|
670
|
+
return Pe(e, !0), t(n, i, o);
|
|
671
671
|
} finally {
|
|
672
|
-
|
|
672
|
+
Pe(a, !1);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
function rr(e, t, n, i) {
|
|
676
676
|
return typeof e != "function" ? e : function() {
|
|
677
677
|
var o = G;
|
|
678
|
-
n && qe(),
|
|
678
|
+
n && qe(), Pe(t, !0);
|
|
679
679
|
try {
|
|
680
680
|
return e.apply(this, arguments);
|
|
681
681
|
} finally {
|
|
682
|
-
|
|
682
|
+
Pe(o, !1), i && queueMicrotask(De);
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
686
|
function hn(e) {
|
|
687
687
|
Promise === Ke && ie.echoes === 0 ? It === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
|
|
688
688
|
}
|
|
689
|
-
("" + ge).indexOf("[native code]") === -1 && (qe =
|
|
689
|
+
("" + ge).indexOf("[native code]") === -1 && (qe = De = J);
|
|
690
690
|
var te = B.reject, $e = "", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ir = "String expected.", et = [], Tt = "__dbnames", pn = "readonly", gn = "readwrite";
|
|
691
691
|
function Fe(e, t) {
|
|
692
692
|
return e ? t ? function() {
|
|
@@ -698,7 +698,7 @@ var Tr = { exports: {} };
|
|
|
698
698
|
return typeof e != "string" || /\./.test(e) ? function(t) {
|
|
699
699
|
return t;
|
|
700
700
|
} : function(t) {
|
|
701
|
-
return t[e] === void 0 && e in t && delete (t =
|
|
701
|
+
return t[e] === void 0 && e in t && delete (t = Te(t))[e], t;
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
function ar() {
|
|
@@ -746,7 +746,7 @@ var Tr = { exports: {} };
|
|
|
746
746
|
}
|
|
747
747
|
var u = Ve();
|
|
748
748
|
try {
|
|
749
|
-
var h = i && i.db._novip === this.db._novip ? i === G.trans ? i._promise(e, c, n) :
|
|
749
|
+
var h = i && i.db._novip === this.db._novip ? i === G.trans ? i._promise(e, c, n) : ke(function() {
|
|
750
750
|
return i._promise(e, c, n);
|
|
751
751
|
}, { trans: i, transless: G.transless || G }) : function g(b, f, S, p) {
|
|
752
752
|
if (b.idbdb && (b._state.openComplete || G.letThrough || b._vip)) {
|
|
@@ -759,7 +759,7 @@ var Tr = { exports: {} };
|
|
|
759
759
|
})) : te(w);
|
|
760
760
|
}
|
|
761
761
|
return m._promise(f, function(w, y) {
|
|
762
|
-
return
|
|
762
|
+
return ke(function() {
|
|
763
763
|
return G.trans = m, p(w, y, m);
|
|
764
764
|
});
|
|
765
765
|
}).then(function(w) {
|
|
@@ -1108,35 +1108,36 @@ var Tr = { exports: {} };
|
|
|
1108
1108
|
});
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
if (
|
|
1116
|
-
if (typeof
|
|
1117
|
-
|
|
1111
|
+
var ht = (fr.prototype.execute = function(e) {
|
|
1112
|
+
var t = this["@@propmod"];
|
|
1113
|
+
if (t.add !== void 0) {
|
|
1114
|
+
var n = t.add;
|
|
1115
|
+
if (F(n)) return x(x([], F(e) ? e : [], !0), n).sort();
|
|
1116
|
+
if (typeof n == "number") return (Number(e) || 0) + n;
|
|
1117
|
+
if (typeof n == "bigint") try {
|
|
1118
|
+
return BigInt(e) + n;
|
|
1118
1119
|
} catch {
|
|
1119
|
-
return BigInt(0) +
|
|
1120
|
+
return BigInt(0) + n;
|
|
1120
1121
|
}
|
|
1121
|
-
throw new TypeError("Invalid term ".concat(
|
|
1122
|
+
throw new TypeError("Invalid term ".concat(n));
|
|
1122
1123
|
}
|
|
1123
|
-
if (
|
|
1124
|
-
var
|
|
1125
|
-
if (F(
|
|
1126
|
-
return !
|
|
1124
|
+
if (t.remove !== void 0) {
|
|
1125
|
+
var i = t.remove;
|
|
1126
|
+
if (F(i)) return F(e) ? e.filter(function(o) {
|
|
1127
|
+
return !i.includes(o);
|
|
1127
1128
|
}).sort() : [];
|
|
1128
|
-
if (typeof
|
|
1129
|
-
if (typeof
|
|
1130
|
-
return BigInt(e) -
|
|
1129
|
+
if (typeof i == "number") return Number(e) - i;
|
|
1130
|
+
if (typeof i == "bigint") try {
|
|
1131
|
+
return BigInt(e) - i;
|
|
1131
1132
|
} catch {
|
|
1132
|
-
return BigInt(0) -
|
|
1133
|
+
return BigInt(0) - i;
|
|
1133
1134
|
}
|
|
1134
|
-
throw new TypeError("Invalid subtrahend ".concat(
|
|
1135
|
+
throw new TypeError("Invalid subtrahend ".concat(i));
|
|
1135
1136
|
}
|
|
1136
|
-
return
|
|
1137
|
+
return n = (n = t.replacePrefix) === null || n === void 0 ? void 0 : n[0], n && typeof e == "string" && e.startsWith(n) ? t.replacePrefix[1] + e.substring(n.length) : e;
|
|
1137
1138
|
}, fr);
|
|
1138
1139
|
function fr(e) {
|
|
1139
|
-
|
|
1140
|
+
this["@@propmod"] = e;
|
|
1140
1141
|
}
|
|
1141
1142
|
var oi = (Q.prototype._read = function(e, t) {
|
|
1142
1143
|
var n = this._ctx;
|
|
@@ -1326,7 +1327,7 @@ var Tr = { exports: {} };
|
|
|
1326
1327
|
var A = Math.min(b, y.length - O);
|
|
1327
1328
|
return u.getMany({ trans: i, keys: y.slice(O, O + A), cache: "immutable" }).then(function(P) {
|
|
1328
1329
|
for (var T = [], I = [], C = h ? [] : null, M = [], R = 0; R < A; ++R) {
|
|
1329
|
-
var L = P[R], W = { value:
|
|
1330
|
+
var L = P[R], W = { value: Te(L), primKey: y[O + R] };
|
|
1330
1331
|
c.call(W, W.value, W) !== !1 && (W.value == null ? M.push(y[O + R]) : h || Y(g(L), g(W.value)) === 0 ? (I.push(W.value), h && C.push(y[O + R])) : (M.push(y[O + R]), T.push(W.value)));
|
|
1331
1332
|
}
|
|
1332
1333
|
return Promise.resolve(0 < T.length && u.mutate({ trans: i, type: "add", values: T }).then(function(z) {
|
|
@@ -1413,7 +1414,7 @@ var Tr = { exports: {} };
|
|
|
1413
1414
|
}), b = (g = m) === "next" ? "" : i;
|
|
1414
1415
|
}
|
|
1415
1416
|
S("next"), e = new e.Collection(e, function() {
|
|
1416
|
-
return
|
|
1417
|
+
return Ie(u[0], h[f - 1] + i);
|
|
1417
1418
|
}), e._ondirectionchange = function(m) {
|
|
1418
1419
|
S(m);
|
|
1419
1420
|
};
|
|
@@ -1439,7 +1440,7 @@ var Tr = { exports: {} };
|
|
|
1439
1440
|
} : y), !1;
|
|
1440
1441
|
}), e;
|
|
1441
1442
|
}
|
|
1442
|
-
function
|
|
1443
|
+
function Ie(e, t, n, i) {
|
|
1443
1444
|
return { type: 2, lower: e, upper: t, lowerOpen: n, upperOpen: i };
|
|
1444
1445
|
}
|
|
1445
1446
|
function hr(e) {
|
|
@@ -1451,7 +1452,7 @@ var Tr = { exports: {} };
|
|
|
1451
1452
|
n = n !== !1, i = i === !0;
|
|
1452
1453
|
try {
|
|
1453
1454
|
return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || i) && (!n || !i) ? nt(this) : new this.Collection(this, function() {
|
|
1454
|
-
return
|
|
1455
|
+
return Ie(e, t, !n, !i);
|
|
1455
1456
|
});
|
|
1456
1457
|
} catch {
|
|
1457
1458
|
return he(this, _e);
|
|
@@ -1462,19 +1463,19 @@ var Tr = { exports: {} };
|
|
|
1462
1463
|
});
|
|
1463
1464
|
}, oe.prototype.above = function(e) {
|
|
1464
1465
|
return e == null ? he(this, _e) : new this.Collection(this, function() {
|
|
1465
|
-
return
|
|
1466
|
+
return Ie(e, void 0, !0);
|
|
1466
1467
|
});
|
|
1467
1468
|
}, oe.prototype.aboveOrEqual = function(e) {
|
|
1468
1469
|
return e == null ? he(this, _e) : new this.Collection(this, function() {
|
|
1469
|
-
return
|
|
1470
|
+
return Ie(e, void 0, !1);
|
|
1470
1471
|
});
|
|
1471
1472
|
}, oe.prototype.below = function(e) {
|
|
1472
1473
|
return e == null ? he(this, _e) : new this.Collection(this, function() {
|
|
1473
|
-
return
|
|
1474
|
+
return Ie(void 0, e, !1, !0);
|
|
1474
1475
|
});
|
|
1475
1476
|
}, oe.prototype.belowOrEqual = function(e) {
|
|
1476
1477
|
return e == null ? he(this, _e) : new this.Collection(this, function() {
|
|
1477
|
-
return
|
|
1478
|
+
return Ie(void 0, e);
|
|
1478
1479
|
});
|
|
1479
1480
|
}, oe.prototype.startsWith = function(e) {
|
|
1480
1481
|
return typeof e != "string" ? he(this, ir) : this.between(e, e + $e, !0, !0);
|
|
@@ -1507,7 +1508,7 @@ var Tr = { exports: {} };
|
|
|
1507
1508
|
}
|
|
1508
1509
|
if (t.length === 0) return nt(this);
|
|
1509
1510
|
var i = new this.Collection(this, function() {
|
|
1510
|
-
return
|
|
1511
|
+
return Ie(t[0], t[t.length - 1]);
|
|
1511
1512
|
});
|
|
1512
1513
|
i._ondirectionchange = function(a) {
|
|
1513
1514
|
n = a === "next" ? e._ascending : e._descending, t.sort(n);
|
|
@@ -1566,7 +1567,7 @@ var Tr = { exports: {} };
|
|
|
1566
1567
|
} : function(E) {
|
|
1567
1568
|
return 0 <= a(E, b[p][0]);
|
|
1568
1569
|
}, y = m, _ = new this.Collection(this, function() {
|
|
1569
|
-
return
|
|
1570
|
+
return Ie(b[0][0], b[b.length - 1][1], !h, !g);
|
|
1570
1571
|
});
|
|
1571
1572
|
return _._ondirectionchange = function(E) {
|
|
1572
1573
|
f = E === "next" ? (y = m, o) : (y = w, a), b.sort(S);
|
|
@@ -1594,7 +1595,7 @@ var Tr = { exports: {} };
|
|
|
1594
1595
|
function pt(e) {
|
|
1595
1596
|
e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
|
|
1596
1597
|
}
|
|
1597
|
-
var gt = "storagemutated", vn = "x-storagemutated-1",
|
|
1598
|
+
var gt = "storagemutated", vn = "x-storagemutated-1", Ce = dt(null, gt), ci = (ve.prototype._lock = function() {
|
|
1598
1599
|
return it(!G.global), ++this._reculock, this._reculock !== 1 || G.global || (G.lockOwnerFor = this), this;
|
|
1599
1600
|
}, ve.prototype._unlock = function() {
|
|
1600
1601
|
if (it(!G.global), --this._reculock == 0) for (G.global || (G.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
|
|
@@ -1625,7 +1626,7 @@ var Tr = { exports: {} };
|
|
|
1625
1626
|
}), e.onabort = q(function(o) {
|
|
1626
1627
|
pt(o), t.active && t._reject(new $.Abort(e.error)), t.active = !1, t.on("abort").fire(o);
|
|
1627
1628
|
}), e.oncomplete = q(function() {
|
|
1628
|
-
t.active = !1, t._resolve(), "mutatedParts" in e &&
|
|
1629
|
+
t.active = !1, t._resolve(), "mutatedParts" in e && Ce.storagemutated.fire(e.mutatedParts);
|
|
1629
1630
|
}), this;
|
|
1630
1631
|
}, ve.prototype._promise = function(e, t, n) {
|
|
1631
1632
|
var i = this;
|
|
@@ -1636,7 +1637,7 @@ var Tr = { exports: {} };
|
|
|
1636
1637
|
i._promise(e, t, n).then(a, c);
|
|
1637
1638
|
}, G]);
|
|
1638
1639
|
});
|
|
1639
|
-
if (n) return
|
|
1640
|
+
if (n) return ke(function() {
|
|
1640
1641
|
var a = new B(function(c, u) {
|
|
1641
1642
|
i._lock();
|
|
1642
1643
|
var h = t(c, u, i);
|
|
@@ -1888,7 +1889,7 @@ var Tr = { exports: {} };
|
|
|
1888
1889
|
var u = function h(g, b) {
|
|
1889
1890
|
return Fr(g, b) || (g = X(g)) && h(g, b);
|
|
1890
1891
|
}(c, o);
|
|
1891
|
-
(!u || "value" in u && u.value === void 0) && (c === e.Transaction.prototype || c instanceof e.Transaction ?
|
|
1892
|
+
(!u || "value" in u && u.value === void 0) && (c === e.Transaction.prototype || c instanceof e.Transaction ? xe(c, o, { get: function() {
|
|
1892
1893
|
return this.table(o);
|
|
1893
1894
|
}, set: function(h) {
|
|
1894
1895
|
He(this, o, { value: h, writable: !0, configurable: !0, enumerable: !0 });
|
|
@@ -1910,7 +1911,7 @@ var Tr = { exports: {} };
|
|
|
1910
1911
|
var a = e._createTransaction("readwrite", e._storeNames, o);
|
|
1911
1912
|
a.create(n), a._completion.catch(i);
|
|
1912
1913
|
var c = a._reject.bind(a), u = G.transless || G;
|
|
1913
|
-
|
|
1914
|
+
ke(function() {
|
|
1914
1915
|
return G.trans = a, G.transless = u, t !== 0 ? (Bt(e, n), g = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
|
|
1915
1916
|
return b ?? g;
|
|
1916
1917
|
}) : B.resolve(g)).then(function(b) {
|
|
@@ -1944,7 +1945,7 @@ var Tr = { exports: {} };
|
|
|
1944
1945
|
var I, C = nn(P);
|
|
1945
1946
|
return C && qe(), A = B.follow(function() {
|
|
1946
1947
|
var M;
|
|
1947
|
-
(I = P(p)) && C && (M =
|
|
1948
|
+
(I = P(p)) && C && (M = De.bind(null, null), I.then(M, M));
|
|
1948
1949
|
}), I && typeof I.then == "function" ? B.resolve(I) : A.then(function() {
|
|
1949
1950
|
return I;
|
|
1950
1951
|
});
|
|
@@ -2075,13 +2076,13 @@ var Tr = { exports: {} };
|
|
|
2075
2076
|
}
|
|
2076
2077
|
function An(e, t) {
|
|
2077
2078
|
var n = e._dbNamesDB;
|
|
2078
|
-
return n || (n = e._dbNamesDB = new
|
|
2079
|
+
return n || (n = e._dbNamesDB = new Ee(Tt, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
|
|
2079
2080
|
}
|
|
2080
2081
|
function kn(e) {
|
|
2081
2082
|
return e && typeof e.databases == "function";
|
|
2082
2083
|
}
|
|
2083
2084
|
function Dn(e) {
|
|
2084
|
-
return
|
|
2085
|
+
return ke(function() {
|
|
2085
2086
|
return G.letThrough = !0, e();
|
|
2086
2087
|
});
|
|
2087
2088
|
}
|
|
@@ -2296,7 +2297,7 @@ var Tr = { exports: {} };
|
|
|
2296
2297
|
p.schema.indexes.forEach(function(m) {
|
|
2297
2298
|
m.name && (S["idb://".concat(e.name, "/").concat(p.name, "/").concat(m.name)] = new se(-1 / 0, [[[]]]));
|
|
2298
2299
|
}), S["idb://".concat(e.name, "/").concat(p.name, "/")] = S["idb://".concat(e.name, "/").concat(p.name, "/:dels")] = new se(-1 / 0, [[[]]]);
|
|
2299
|
-
}),
|
|
2300
|
+
}), Ce(gt).fire(S), Tn(S, !0)), e;
|
|
2300
2301
|
});
|
|
2301
2302
|
}
|
|
2302
2303
|
function Mn(e) {
|
|
@@ -2439,7 +2440,7 @@ var Tr = { exports: {} };
|
|
|
2439
2440
|
function Er(e, t, n) {
|
|
2440
2441
|
try {
|
|
2441
2442
|
if (!t || t.keys.length < e.length) return null;
|
|
2442
|
-
for (var i = [], o = 0, a = 0; o < t.keys.length && a < e.length; ++o) Y(t.keys[o], e[a]) === 0 && (i.push(n ?
|
|
2443
|
+
for (var i = [], o = 0, a = 0; o < t.keys.length && a < e.length; ++o) Y(t.keys[o], e[a]) === 0 && (i.push(n ? Te(t.values[o]) : t.values[o]), ++a);
|
|
2443
2444
|
return i.length === e.length ? i : null;
|
|
2444
2445
|
} catch {
|
|
2445
2446
|
return null;
|
|
@@ -2452,7 +2453,7 @@ var Tr = { exports: {} };
|
|
|
2452
2453
|
if (!i.cache) return n.getMany(i);
|
|
2453
2454
|
var o = Er(i.keys, i.trans._cache, i.cache === "clone");
|
|
2454
2455
|
return o ? B.resolve(o) : n.getMany(i).then(function(a) {
|
|
2455
|
-
return i.trans._cache = { keys: i.keys, values: i.cache === "clone" ?
|
|
2456
|
+
return i.trans._cache = { keys: i.keys, values: i.cache === "clone" ? Te(a) : a }, a;
|
|
2456
2457
|
});
|
|
2457
2458
|
}, mutate: function(i) {
|
|
2458
2459
|
return i.type !== "add" && (i.trans._cache = null), n.mutate(i);
|
|
@@ -2653,7 +2654,7 @@ var Tr = { exports: {} };
|
|
|
2653
2654
|
e.subscribers.add(n), i.addEventListener("abort", function() {
|
|
2654
2655
|
var o, a;
|
|
2655
2656
|
e.subscribers.delete(n), e.subscribers.size === 0 && (o = e, a = t, setTimeout(function() {
|
|
2656
|
-
o.subscribers.size === 0 &&
|
|
2657
|
+
o.subscribers.size === 0 && Me(a, o);
|
|
2657
2658
|
}, 3e3));
|
|
2658
2659
|
});
|
|
2659
2660
|
}
|
|
@@ -2670,16 +2671,16 @@ var Tr = { exports: {} };
|
|
|
2670
2671
|
var m = e.table(S), w = p.optimisticOps.filter(function(L) {
|
|
2671
2672
|
return L.trans === u;
|
|
2672
2673
|
});
|
|
2673
|
-
if (u._explicit && h && u.mutatedParts) for (var y = 0, _ = Object.values(p.queries.query); y < _.length; y++) for (var E = 0, O = (T = _[y]).slice(); E < O.length; E++) In((I = O[E]).obsSet, u.mutatedParts) && (
|
|
2674
|
+
if (u._explicit && h && u.mutatedParts) for (var y = 0, _ = Object.values(p.queries.query); y < _.length; y++) for (var E = 0, O = (T = _[y]).slice(); E < O.length; E++) In((I = O[E]).obsSet, u.mutatedParts) && (Me(T, I), I.subscribers.forEach(function(L) {
|
|
2674
2675
|
return g.add(L);
|
|
2675
2676
|
}));
|
|
2676
2677
|
else if (0 < w.length) {
|
|
2677
2678
|
p.optimisticOps = p.optimisticOps.filter(function(L) {
|
|
2678
2679
|
return L.trans !== u;
|
|
2679
2680
|
});
|
|
2680
|
-
for (var A = 0, P = Object.values(p.queries.query); A < P.length; A++) for (var T, I, C, M = 0, R = (T = P[A]).slice(); M < R.length; M++) (I = R[M]).res != null && u.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = kr(I.res, I.req, w, m, I, C), I.dirty ? (
|
|
2681
|
+
for (var A = 0, P = Object.values(p.queries.query); A < P.length; A++) for (var T, I, C, M = 0, R = (T = P[A]).slice(); M < R.length; M++) (I = R[M]).res != null && u.mutatedParts && (h && !I.dirty ? (C = Object.isFrozen(I.res), C = kr(I.res, I.req, w, m, I, C), I.dirty ? (Me(T, I), I.subscribers.forEach(function(L) {
|
|
2681
2682
|
return g.add(L);
|
|
2682
|
-
})) : C !== I.res && (I.res = C, I.promise = B.resolve({ result: C }))) : (I.dirty &&
|
|
2683
|
+
})) : C !== I.res && (I.res = C, I.promise = B.resolve({ result: C }))) : (I.dirty && Me(T, I), I.subscribers.forEach(function(L) {
|
|
2683
2684
|
return g.add(L);
|
|
2684
2685
|
})));
|
|
2685
2686
|
}
|
|
@@ -2700,13 +2701,13 @@ var Tr = { exports: {} };
|
|
|
2700
2701
|
return u ? (c = i.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || Nn(o, a).some(function(h) {
|
|
2701
2702
|
return h == null;
|
|
2702
2703
|
})) ? (u.optimisticOps.push(a), a.mutatedParts && Ht(a.mutatedParts), c.then(function(h) {
|
|
2703
|
-
0 < h.numFailures && (
|
|
2704
|
+
0 < h.numFailures && (Me(u.optimisticOps, a), (h = Ar(0, a, h)) && u.optimisticOps.push(h), a.mutatedParts && Ht(a.mutatedParts));
|
|
2704
2705
|
}), c.catch(function() {
|
|
2705
|
-
|
|
2706
|
+
Me(u.optimisticOps, a), a.mutatedParts && Ht(a.mutatedParts);
|
|
2706
2707
|
})) : c.then(function(h) {
|
|
2707
2708
|
var g = Ar(0, l(l({}, a), { values: a.values.map(function(b, f) {
|
|
2708
2709
|
var S;
|
|
2709
|
-
return h.failures[f] ? b : (b = (S = o.keyPath) !== null && S !== void 0 && S.includes(".") ?
|
|
2710
|
+
return h.failures[f] ? b : (b = (S = o.keyPath) !== null && S !== void 0 && S.includes(".") ? Te(b) : l({}, b), fe(b, o.keyPath, h.results[f]), b);
|
|
2710
2711
|
}) }), h);
|
|
2711
2712
|
u.optimisticOps.push(g), queueMicrotask(function() {
|
|
2712
2713
|
return a.mutatedParts && Ht(a.mutatedParts);
|
|
@@ -2739,10 +2740,10 @@ var Tr = { exports: {} };
|
|
|
2739
2740
|
if (b && (b.res = w), c) {
|
|
2740
2741
|
for (var y = 0, _ = w.length; y < _; ++y) Object.freeze(w[y]);
|
|
2741
2742
|
Object.freeze(w);
|
|
2742
|
-
} else m.result =
|
|
2743
|
+
} else m.result = Te(w);
|
|
2743
2744
|
return m;
|
|
2744
2745
|
}).catch(function(m) {
|
|
2745
|
-
return p && b &&
|
|
2746
|
+
return p && b && Me(p, b), Promise.reject(m);
|
|
2746
2747
|
}), b = { obsSet: a.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (S = S || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), _i(b, p, u, h), b.promise.then(function(m) {
|
|
2747
2748
|
return { result: kr(m.result, a, S == null ? void 0 : S.optimisticOps, i, b, c) };
|
|
2748
2749
|
});
|
|
@@ -2754,7 +2755,7 @@ var Tr = { exports: {} };
|
|
|
2754
2755
|
return i === "db" ? t : Reflect.get(n, i, o);
|
|
2755
2756
|
} });
|
|
2756
2757
|
}
|
|
2757
|
-
var
|
|
2758
|
+
var Ee = (ne.prototype.version = function(e) {
|
|
2758
2759
|
if (isNaN(e) || e < 0.1) throw new $.Type("Given version is not a positive number");
|
|
2759
2760
|
if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened) throw new $.Schema("Cannot add version when database is open");
|
|
2760
2761
|
this.verno = Math.max(this.verno, e);
|
|
@@ -2784,7 +2785,7 @@ var Tr = { exports: {} };
|
|
|
2784
2785
|
})), this;
|
|
2785
2786
|
}, ne.prototype.open = function() {
|
|
2786
2787
|
var e = this;
|
|
2787
|
-
return Ge(
|
|
2788
|
+
return Ge(Ae, function() {
|
|
2788
2789
|
return yi(e);
|
|
2789
2790
|
});
|
|
2790
2791
|
}, ne.prototype._close = function() {
|
|
@@ -2889,7 +2890,7 @@ var Tr = { exports: {} };
|
|
|
2889
2890
|
var _, E = nn(m);
|
|
2890
2891
|
return E && qe(), w = B.follow(function() {
|
|
2891
2892
|
var O;
|
|
2892
|
-
(_ = m.call(y, y)) && (E ? (O =
|
|
2893
|
+
(_ = m.call(y, y)) && (E ? (O = De.bind(null, null), _.then(O, O)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Mn(_)));
|
|
2893
2894
|
}, w), (_ && typeof _.then == "function" ? B.resolve(_).then(function(O) {
|
|
2894
2895
|
return y.active ? O : te(new $.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
|
|
2895
2896
|
}) : w.then(function() {
|
|
@@ -3008,7 +3009,7 @@ var Tr = { exports: {} };
|
|
|
3008
3009
|
var a = nn(e), c, u = !1, h = {}, g = {}, b = { get closed() {
|
|
3009
3010
|
return u;
|
|
3010
3011
|
}, unsubscribe: function() {
|
|
3011
|
-
u || (u = !0, c && c.abort(), f &&
|
|
3012
|
+
u || (u = !0, c && c.abort(), f && Ce.storagemutated.unsubscribe(p));
|
|
3012
3013
|
} };
|
|
3013
3014
|
o.start && o.start(b);
|
|
3014
3015
|
var f = !1, S = function() {
|
|
@@ -3021,8 +3022,8 @@ var Tr = { exports: {} };
|
|
|
3021
3022
|
var O = Ve();
|
|
3022
3023
|
try {
|
|
3023
3024
|
a && qe();
|
|
3024
|
-
var A =
|
|
3025
|
-
return A = a ? A.finally(
|
|
3025
|
+
var A = ke(e, E);
|
|
3026
|
+
return A = a ? A.finally(De) : A;
|
|
3026
3027
|
} finally {
|
|
3027
3028
|
O && Ze();
|
|
3028
3029
|
}
|
|
@@ -3030,7 +3031,7 @@ var Tr = { exports: {} };
|
|
|
3030
3031
|
n = !0, t = E, u || y.signal.aborted || (h = {}, function(O) {
|
|
3031
3032
|
for (var A in O) if (ee(O, A)) return;
|
|
3032
3033
|
return 1;
|
|
3033
|
-
}(g = w) || f || (
|
|
3034
|
+
}(g = w) || f || (Ce(gt, p), f = !0), hn(function() {
|
|
3034
3035
|
return !u && o.next && o.next(E);
|
|
3035
3036
|
}));
|
|
3036
3037
|
}, function(E) {
|
|
@@ -3047,13 +3048,13 @@ var Tr = { exports: {} };
|
|
|
3047
3048
|
return t;
|
|
3048
3049
|
}, i;
|
|
3049
3050
|
}
|
|
3050
|
-
var We =
|
|
3051
|
+
var We = Ee;
|
|
3051
3052
|
function Ln(e) {
|
|
3052
|
-
var t =
|
|
3053
|
+
var t = Re;
|
|
3053
3054
|
try {
|
|
3054
|
-
|
|
3055
|
+
Re = !0, Ce.storagemutated.fire(e), Tn(e, !0);
|
|
3055
3056
|
} finally {
|
|
3056
|
-
|
|
3057
|
+
Re = t;
|
|
3057
3058
|
}
|
|
3058
3059
|
}
|
|
3059
3060
|
le(We, l(l({}, Ot), { delete: function(e) {
|
|
@@ -3107,45 +3108,45 @@ var Tr = { exports: {} };
|
|
|
3107
3108
|
return me;
|
|
3108
3109
|
}, set: function(e) {
|
|
3109
3110
|
Zn(e);
|
|
3110
|
-
} }, derive: Ye, extend: N, props: le, override: zn, Events: dt, on:
|
|
3111
|
+
} }, derive: Ye, extend: N, props: le, override: zn, Events: dt, on: Ce, liveQuery: Pr, extendObservabilitySet: zt, getByKeyPath: we, setByKeyPath: fe, delByKeyPath: function(e, t) {
|
|
3111
3112
|
typeof t == "string" ? fe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
|
|
3112
3113
|
fe(e, n, void 0);
|
|
3113
3114
|
});
|
|
3114
|
-
}, shallowClone: Yn, deepClone:
|
|
3115
|
+
}, shallowClone: Yn, deepClone: Te, getObjectDiff: jn, cmp: Y, asap: Hn, minKey: -1 / 0, addons: [], connections: et, errnames: rn, dependencies: Xt, cache: Ue, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
|
|
3115
3116
|
return parseInt(e);
|
|
3116
3117
|
}).reduce(function(e, t, n) {
|
|
3117
3118
|
return e + t / Math.pow(10, 2 * n);
|
|
3118
|
-
}) })), We.maxKey = yt(We.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (
|
|
3119
|
-
|
|
3119
|
+
}) })), We.maxKey = yt(We.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Ce(gt, function(e) {
|
|
3120
|
+
Re || (e = new CustomEvent(vn, { detail: e }), Re = !0, dispatchEvent(e), Re = !1);
|
|
3120
3121
|
}), addEventListener(vn, function(e) {
|
|
3121
|
-
e = e.detail,
|
|
3122
|
+
e = e.detail, Re || Ln(e);
|
|
3122
3123
|
}));
|
|
3123
|
-
var rt,
|
|
3124
|
+
var rt, Re = !1, Ir = function() {
|
|
3124
3125
|
};
|
|
3125
3126
|
return typeof BroadcastChannel < "u" && ((Ir = function() {
|
|
3126
3127
|
(rt = new BroadcastChannel(vn)).onmessage = function(e) {
|
|
3127
3128
|
return e.data && Ln(e.data);
|
|
3128
3129
|
};
|
|
3129
|
-
})(), typeof rt.unref == "function" && rt.unref(),
|
|
3130
|
-
|
|
3130
|
+
})(), typeof rt.unref == "function" && rt.unref(), Ce(gt, function(e) {
|
|
3131
|
+
Re || rt.postMessage(e);
|
|
3131
3132
|
})), typeof addEventListener < "u" && (addEventListener("pagehide", function(e) {
|
|
3132
|
-
if (!
|
|
3133
|
+
if (!Ee.disableBfCache && e.persisted) {
|
|
3133
3134
|
me && console.debug("Dexie: handling persisted pagehide"), rt != null && rt.close();
|
|
3134
3135
|
for (var t = 0, n = et; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
|
|
3135
3136
|
}
|
|
3136
3137
|
}), addEventListener("pageshow", function(e) {
|
|
3137
|
-
!
|
|
3138
|
+
!Ee.disableBfCache && e.persisted && (me && console.debug("Dexie: handling persisted pageshow"), Ir(), Ln({ all: new se(-1 / 0, [[]]) }));
|
|
3138
3139
|
})), B.rejectionMapper = function(e, t) {
|
|
3139
|
-
return !e || e instanceof Xe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Vn[e.name] ? e : (t = new Vn[e.name](t || e.message, e), "stack" in e &&
|
|
3140
|
+
return !e || e instanceof Xe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Vn[e.name] ? e : (t = new Vn[e.name](t || e.message, e), "stack" in e && xe(t, "stack", { get: function() {
|
|
3140
3141
|
return this.inner.stack;
|
|
3141
3142
|
} }), t);
|
|
3142
|
-
}, Zn(me), l(
|
|
3143
|
+
}, Zn(me), l(Ee, Object.freeze({ __proto__: null, Dexie: Ee, liveQuery: Pr, Entity: ar, cmp: Y, PropModification: ht, replacePrefix: function(e, t) {
|
|
3143
3144
|
return new ht({ replacePrefix: [e, t] });
|
|
3144
3145
|
}, add: function(e) {
|
|
3145
3146
|
return new ht({ add: e });
|
|
3146
3147
|
}, remove: function(e) {
|
|
3147
3148
|
return new ht({ remove: e });
|
|
3148
|
-
}, default:
|
|
3149
|
+
}, default: Ee, RangeSet: se, mergeRanges: vt, rangesOverlap: vr }), { default: Ee }), Ee;
|
|
3149
3150
|
});
|
|
3150
3151
|
})(Tr);
|
|
3151
3152
|
var Ii = Tr.exports;
|
|
@@ -4109,7 +4110,7 @@ function ji(d, r) {
|
|
|
4109
4110
|
d = `0${d}`;
|
|
4110
4111
|
return d;
|
|
4111
4112
|
}
|
|
4112
|
-
function
|
|
4113
|
+
function Oe(d, r) {
|
|
4113
4114
|
let s, l, x;
|
|
4114
4115
|
if (r.length === 0)
|
|
4115
4116
|
return d;
|
|
@@ -4124,25 +4125,25 @@ function Ni(d, r, s) {
|
|
|
4124
4125
|
}
|
|
4125
4126
|
}
|
|
4126
4127
|
function $r(d, r, s, l) {
|
|
4127
|
-
const x =
|
|
4128
|
+
const x = Oe(Oe(Oe(d, s), Ki(r)), typeof r);
|
|
4128
4129
|
if (r === null)
|
|
4129
|
-
return
|
|
4130
|
+
return Oe(x, "null");
|
|
4130
4131
|
if (r === void 0)
|
|
4131
|
-
return
|
|
4132
|
+
return Oe(x, "undefined");
|
|
4132
4133
|
if (typeof r == "object" || typeof r == "function") {
|
|
4133
4134
|
if (l.includes(r))
|
|
4134
|
-
return
|
|
4135
|
+
return Oe(x, `[Circular]${s}`);
|
|
4135
4136
|
l.push(r);
|
|
4136
4137
|
const D = Ni(x, r, l);
|
|
4137
4138
|
if (!("valueOf" in r) || typeof r.valueOf != "function")
|
|
4138
4139
|
return D;
|
|
4139
4140
|
try {
|
|
4140
|
-
return
|
|
4141
|
+
return Oe(D, String(r.valueOf()));
|
|
4141
4142
|
} catch (j) {
|
|
4142
|
-
return
|
|
4143
|
+
return Oe(D, `[valueOf exception]${j.stack || j.message}`);
|
|
4143
4144
|
}
|
|
4144
4145
|
}
|
|
4145
|
-
return
|
|
4146
|
+
return Oe(x, r.toString());
|
|
4146
4147
|
}
|
|
4147
4148
|
function Ki(d) {
|
|
4148
4149
|
return Object.prototype.toString.call(d);
|
|
@@ -4728,7 +4729,7 @@ class io {
|
|
|
4728
4729
|
const r = this.query;
|
|
4729
4730
|
this.broadcastChannel.onmessage = async (s) => {
|
|
4730
4731
|
const l = s.data.data;
|
|
4731
|
-
switch (
|
|
4732
|
+
switch (s.data.event) {
|
|
4732
4733
|
case re.WIDGET_UPDATE:
|
|
4733
4734
|
l.query.slide === r.slide && l.query.widget === r.widget && this.listeners.forEach((x) => {
|
|
4734
4735
|
x(s.data);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"test:coverage": "vitest --coverage"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"dexie": "^4.0.
|
|
31
|
+
"dexie": "^4.0.11",
|
|
32
32
|
"idb-keyval": "^6.2.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@antfu/eslint-config": "^3.
|
|
35
|
+
"@antfu/eslint-config": "^3.14.0",
|
|
36
36
|
"@commitlint/cli": "^19.6.1",
|
|
37
37
|
"@commitlint/config-conventional": "^19.6.0",
|
|
38
|
-
"@types/node": "^22.10.
|
|
38
|
+
"@types/node": "^22.10.7",
|
|
39
39
|
"@vitest/coverage-v8": "^2.1.8",
|
|
40
40
|
"camelcase": "^8.0.0",
|
|
41
41
|
"changelogen": "^0.5.7",
|
|
42
|
-
"eslint": "^9.
|
|
43
|
-
"lint-staged": "^15.
|
|
44
|
-
"typescript": "^5.7.
|
|
42
|
+
"eslint": "^9.18.0",
|
|
43
|
+
"lint-staged": "^15.4.1",
|
|
44
|
+
"typescript": "^5.7.3",
|
|
45
45
|
"vite": "^5.4.11",
|
|
46
46
|
"vite-plugin-dts": "^4.4.0",
|
|
47
47
|
"vitest": "^2.1.8"
|