buzzcasting-storage 2.3.0 → 2.3.1
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.d.ts +2 -4
- package/dist/buzzcasting-storage.esm.js +110 -110
- package/package.json +1 -1
|
@@ -114,7 +114,7 @@ declare interface Indicators {
|
|
|
114
114
|
value: number;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
declare interface IQuery {
|
|
118
118
|
[x: string]: any;
|
|
119
119
|
topics?: string;
|
|
120
120
|
dashboard?: string;
|
|
@@ -152,7 +152,7 @@ declare interface ISeries {
|
|
|
152
152
|
timestamp: number;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
declare interface IStorageOptions {
|
|
156
156
|
app: string;
|
|
157
157
|
version: string;
|
|
158
158
|
storage: string;
|
|
@@ -282,8 +282,6 @@ export declare const SUBSCRIBE = "subscribe";
|
|
|
282
282
|
|
|
283
283
|
export declare const SUBSCRIBE_CSS = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;";
|
|
284
284
|
|
|
285
|
-
export declare function sum(o: any): string | any[];
|
|
286
|
-
|
|
287
285
|
declare interface Topic {
|
|
288
286
|
topic: string;
|
|
289
287
|
engagement: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Bi = Object.defineProperty;
|
|
2
2
|
var Ii = (T, o, m) => o in T ? Bi(T, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : T[o] = m;
|
|
3
3
|
var j = (T, o, m) => (Ii(T, typeof o != "symbol" ? o + "" : o, m), m);
|
|
4
|
-
const Ri = "2.
|
|
5
|
-
class
|
|
4
|
+
const Ri = "2.3.0";
|
|
5
|
+
class Ni {
|
|
6
6
|
constructor(o) {
|
|
7
7
|
j(this, "options");
|
|
8
8
|
j(this, "url");
|
|
@@ -59,10 +59,10 @@ class Ui {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
62
|
-
function
|
|
62
|
+
function Fi(T) {
|
|
63
63
|
return T && T.__esModule && Object.prototype.hasOwnProperty.call(T, "default") ? T.default : T;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var Fr = { exports: {} };
|
|
66
66
|
(function(T, o) {
|
|
67
67
|
(function(m, v) {
|
|
68
68
|
T.exports = v();
|
|
@@ -3227,16 +3227,16 @@ var Ur = { exports: {} };
|
|
|
3227
3227
|
} }), t);
|
|
3228
3228
|
}, ar(me), v(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: Br, Entity: pr, cmp: W, default: Se, RangeSet: ae, mergeRanges: wt, rangesOverlap: Yt }), { default: Se }), Se;
|
|
3229
3229
|
});
|
|
3230
|
-
})(
|
|
3231
|
-
var
|
|
3232
|
-
const Qn = /* @__PURE__ */
|
|
3230
|
+
})(Fr);
|
|
3231
|
+
var $i = Fr.exports;
|
|
3232
|
+
const Qn = /* @__PURE__ */ Fi($i), Nr = Symbol.for("Dexie"), Xn = globalThis[Nr] || (globalThis[Nr] = Qn);
|
|
3233
3233
|
if (Qn.semVer !== Xn.semVer)
|
|
3234
3234
|
throw new Error(`Two different versions of Dexie loaded in the same app: ${Qn.semVer} and ${Xn.semVer}`);
|
|
3235
3235
|
function X(T) {
|
|
3236
3236
|
let o = `${T.type}.${T.topics}`;
|
|
3237
3237
|
return T.order && (o += `.${T.order}`), T.period && (o += `.${T.period}`), o;
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function kt(T, o) {
|
|
3240
3240
|
var z;
|
|
3241
3241
|
let m, v, S, M, D;
|
|
3242
3242
|
switch (T.moderation) {
|
|
@@ -3254,7 +3254,7 @@ function St(T, o) {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
return o;
|
|
3256
3256
|
}
|
|
3257
|
-
class
|
|
3257
|
+
class $r {
|
|
3258
3258
|
constructor(o) {
|
|
3259
3259
|
j(this, "db");
|
|
3260
3260
|
j(this, "subscribers", []);
|
|
@@ -3269,7 +3269,7 @@ class Vr {
|
|
|
3269
3269
|
"%capi%C %ccloud",
|
|
3270
3270
|
H,
|
|
3271
3271
|
q,
|
|
3272
|
-
|
|
3272
|
+
Yi,
|
|
3273
3273
|
o.slide,
|
|
3274
3274
|
o.widget
|
|
3275
3275
|
), { data: null, message: "Series Data error", success: !1 }));
|
|
@@ -3285,7 +3285,7 @@ class Vr {
|
|
|
3285
3285
|
"%capi%c %cseries",
|
|
3286
3286
|
H,
|
|
3287
3287
|
q,
|
|
3288
|
-
|
|
3288
|
+
Qi,
|
|
3289
3289
|
o.slide,
|
|
3290
3290
|
o.widget
|
|
3291
3291
|
), { data: null, message: "Series Data error", success: !1 }));
|
|
@@ -3303,7 +3303,7 @@ class Vr {
|
|
|
3303
3303
|
"%capi%c %cmessages",
|
|
3304
3304
|
H,
|
|
3305
3305
|
q,
|
|
3306
|
-
|
|
3306
|
+
Hi,
|
|
3307
3307
|
o.slide,
|
|
3308
3308
|
o.widget
|
|
3309
3309
|
), { data: null, message: "Messages Data error", success: !1 })), D = M[0] ? M[0].title : "No title", z = M.map(
|
|
@@ -3365,7 +3365,7 @@ class Vr {
|
|
|
3365
3365
|
try {
|
|
3366
3366
|
return m.data.messages.forEach(async (S) => {
|
|
3367
3367
|
var M, D, z;
|
|
3368
|
-
await this.db.table(ie).put({ id: S.id, utc: S.utc, data: S }), await this.db.table(
|
|
3368
|
+
await this.db.table(ie).put({ id: S.id, utc: S.utc, data: S }), await this.db.table(Vi).put({
|
|
3369
3369
|
widget_id: o.widget,
|
|
3370
3370
|
message_id: S.id,
|
|
3371
3371
|
dashboard_id: o.dashboard,
|
|
@@ -3396,11 +3396,11 @@ class Vr {
|
|
|
3396
3396
|
* @param query IQuery
|
|
3397
3397
|
* @returns number
|
|
3398
3398
|
*/
|
|
3399
|
-
j(this, "setWidget", async (o) => await this.db.table(
|
|
3399
|
+
j(this, "setWidget", async (o) => await this.db.table(Gi).put({
|
|
3400
3400
|
id: o.widget,
|
|
3401
3401
|
dashboard_id: o.dashboard,
|
|
3402
3402
|
type: o.type
|
|
3403
|
-
}).then(() => 201).catch((m) => (console.error("%cstorage", V,
|
|
3403
|
+
}).then(() => 201).catch((m) => (console.error("%cstorage", V, xt, o, m), 400)));
|
|
3404
3404
|
/**
|
|
3405
3405
|
* Add component subscriber
|
|
3406
3406
|
* @param query IQuery
|
|
@@ -3414,11 +3414,11 @@ class Vr {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
return this.subscribers.filter(
|
|
3416
3416
|
(S) => S.widget === o.widget
|
|
3417
|
-
).length > 0 || (o.type === ie && (o =
|
|
3417
|
+
).length > 0 || (o.type === ie && (o = kt(this.options, o)), console.debug(
|
|
3418
3418
|
"%cstorage%c %csubscribe",
|
|
3419
3419
|
V,
|
|
3420
3420
|
q,
|
|
3421
|
-
|
|
3421
|
+
St,
|
|
3422
3422
|
o.slide,
|
|
3423
3423
|
o.widget
|
|
3424
3424
|
), this.subscribers.push(o)), null;
|
|
@@ -3447,29 +3447,29 @@ function Jn(T) {
|
|
|
3447
3447
|
T.oncomplete = T.onsuccess = () => o(T.result), T.onabort = T.onerror = () => m(T.error);
|
|
3448
3448
|
});
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function zi(T, o) {
|
|
3451
3451
|
const m = indexedDB.open(T);
|
|
3452
3452
|
m.onupgradeneeded = () => m.result.createObjectStore(o);
|
|
3453
3453
|
const v = Jn(m);
|
|
3454
3454
|
return (S, M) => v.then((D) => M(D.transaction(o, S).objectStore(o)));
|
|
3455
3455
|
}
|
|
3456
|
-
let
|
|
3457
|
-
function
|
|
3458
|
-
return
|
|
3456
|
+
let Wn;
|
|
3457
|
+
function zr() {
|
|
3458
|
+
return Wn || (Wn = zi("keyval-store", "keyval")), Wn;
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function Un(T, o = zr()) {
|
|
3461
3461
|
return o("readonly", (m) => Jn(m.get(T)));
|
|
3462
3462
|
}
|
|
3463
|
-
function en(T, o, m =
|
|
3463
|
+
function en(T, o, m = zr()) {
|
|
3464
3464
|
return m("readwrite", (v) => (v.put(o, T), Jn(v.transaction)));
|
|
3465
3465
|
}
|
|
3466
|
-
class
|
|
3466
|
+
class Lr {
|
|
3467
3467
|
constructor(o) {
|
|
3468
3468
|
j(this, "subscribers", []);
|
|
3469
3469
|
j(this, "options");
|
|
3470
3470
|
j(this, "getCloud", async (o) => {
|
|
3471
3471
|
const m = X(o);
|
|
3472
|
-
return await
|
|
3472
|
+
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3473
3473
|
"%capi",
|
|
3474
3474
|
H,
|
|
3475
3475
|
de,
|
|
@@ -3479,7 +3479,7 @@ class Yr {
|
|
|
3479
3479
|
});
|
|
3480
3480
|
j(this, "getSeries", async (o) => {
|
|
3481
3481
|
const m = X(o);
|
|
3482
|
-
return await
|
|
3482
|
+
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3483
3483
|
"%capi",
|
|
3484
3484
|
H,
|
|
3485
3485
|
he,
|
|
@@ -3489,7 +3489,7 @@ class Yr {
|
|
|
3489
3489
|
});
|
|
3490
3490
|
j(this, "getMessages", async (o) => {
|
|
3491
3491
|
const m = X(o);
|
|
3492
|
-
return await
|
|
3492
|
+
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3493
3493
|
"%capi",
|
|
3494
3494
|
H,
|
|
3495
3495
|
ie,
|
|
@@ -3545,7 +3545,7 @@ class Yr {
|
|
|
3545
3545
|
dashboard_id: o.dashboard,
|
|
3546
3546
|
type: o.type
|
|
3547
3547
|
};
|
|
3548
|
-
return await en(m, v).then(() => 201).catch((S) => (console.error("%cstorage", V,
|
|
3548
|
+
return await en(m, v).then(() => 201).catch((S) => (console.error("%cstorage", V, xt, o, S), 400));
|
|
3549
3549
|
});
|
|
3550
3550
|
/**
|
|
3551
3551
|
* Add component subscriber
|
|
@@ -3558,9 +3558,9 @@ class Yr {
|
|
|
3558
3558
|
const S = (v = o.topics) == null ? void 0 : v.split("-");
|
|
3559
3559
|
o.dashboard = S ? S[0] : "", o.widget = S ? S[1] : "";
|
|
3560
3560
|
}
|
|
3561
|
-
return o.type === ie && (o =
|
|
3561
|
+
return o.type === ie && (o = kt(this.options, o)), this.subscribers.filter(
|
|
3562
3562
|
(S) => S.widget === o.widget
|
|
3563
|
-
).length > 0 || (console.debug("%cstorage%c %csubscribe", V, q,
|
|
3563
|
+
).length > 0 || (console.debug("%cstorage%c %csubscribe", V, q, St, o.slide, o.widget), this.subscribers.push(o)), null;
|
|
3564
3564
|
});
|
|
3565
3565
|
/**
|
|
3566
3566
|
* Get current subscribers
|
|
@@ -3570,7 +3570,7 @@ class Yr {
|
|
|
3570
3570
|
this.options = o;
|
|
3571
3571
|
}
|
|
3572
3572
|
}
|
|
3573
|
-
class
|
|
3573
|
+
class Wr {
|
|
3574
3574
|
constructor(o) {
|
|
3575
3575
|
j(this, "subscribers", []);
|
|
3576
3576
|
j(this, "options");
|
|
@@ -3648,7 +3648,7 @@ class Hr {
|
|
|
3648
3648
|
try {
|
|
3649
3649
|
return localStorage.setObject(m, o), 201;
|
|
3650
3650
|
} catch (v) {
|
|
3651
|
-
return console.error("%cstorage", V,
|
|
3651
|
+
return console.error("%cstorage", V, xt, o, v), 400;
|
|
3652
3652
|
}
|
|
3653
3653
|
});
|
|
3654
3654
|
/**
|
|
@@ -3662,13 +3662,13 @@ class Hr {
|
|
|
3662
3662
|
const S = (v = o.topics) == null ? void 0 : v.split("-");
|
|
3663
3663
|
o.dashboard = S ? S[0] : "", o.widget = S ? S[1] : "";
|
|
3664
3664
|
}
|
|
3665
|
-
return o.type === ie && (o =
|
|
3665
|
+
return o.type === ie && (o = kt(this.options, o)), this.subscribers.filter(
|
|
3666
3666
|
(S) => S.widget === o.widget
|
|
3667
3667
|
).length || (console.debug(
|
|
3668
3668
|
"%cstorage%c %csubscribe",
|
|
3669
3669
|
V,
|
|
3670
3670
|
q,
|
|
3671
|
-
|
|
3671
|
+
St,
|
|
3672
3672
|
o.slide,
|
|
3673
3673
|
o.widget
|
|
3674
3674
|
), this.subscribers.push(o)), null;
|
|
@@ -3686,7 +3686,7 @@ class Hr {
|
|
|
3686
3686
|
};
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
|
-
class
|
|
3689
|
+
class Ur {
|
|
3690
3690
|
constructor(o) {
|
|
3691
3691
|
j(this, "subscribers", []);
|
|
3692
3692
|
j(this, "options");
|
|
@@ -3764,7 +3764,7 @@ class Qr {
|
|
|
3764
3764
|
try {
|
|
3765
3765
|
return sessionStorage.setObject(m, o), 201;
|
|
3766
3766
|
} catch (v) {
|
|
3767
|
-
return console.error("%cstorage", V,
|
|
3767
|
+
return console.error("%cstorage", V, xt, o, v), 400;
|
|
3768
3768
|
}
|
|
3769
3769
|
});
|
|
3770
3770
|
/**
|
|
@@ -3778,13 +3778,13 @@ class Qr {
|
|
|
3778
3778
|
const S = (v = o.topics) == null ? void 0 : v.split("-");
|
|
3779
3779
|
o.dashboard = S ? S[0] : "", o.widget = S ? S[1] : "";
|
|
3780
3780
|
}
|
|
3781
|
-
return o.type === ie && (o =
|
|
3781
|
+
return o.type === ie && (o = kt(this.options, o)), this.subscribers.filter(
|
|
3782
3782
|
(S) => S.widget === o.widget
|
|
3783
3783
|
).length || (console.debug(
|
|
3784
3784
|
"%cstorage%c %csubscribe",
|
|
3785
3785
|
V,
|
|
3786
3786
|
q,
|
|
3787
|
-
|
|
3787
|
+
St,
|
|
3788
3788
|
o.slide,
|
|
3789
3789
|
o.widget
|
|
3790
3790
|
), this.subscribers.push(o)), null;
|
|
@@ -3802,7 +3802,7 @@ class Qr {
|
|
|
3802
3802
|
};
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
class
|
|
3805
|
+
class Vr {
|
|
3806
3806
|
constructor(o) {
|
|
3807
3807
|
j(this, "subscribers", []);
|
|
3808
3808
|
j(this, "options");
|
|
@@ -3880,7 +3880,7 @@ class Xr {
|
|
|
3880
3880
|
try {
|
|
3881
3881
|
return window.BuzzCasting.WidgetData[m] = o, 201;
|
|
3882
3882
|
} catch (v) {
|
|
3883
|
-
return console.error("%cstorage", V,
|
|
3883
|
+
return console.error("%cstorage", V, xt, o, v), 400;
|
|
3884
3884
|
}
|
|
3885
3885
|
});
|
|
3886
3886
|
/**
|
|
@@ -3894,13 +3894,13 @@ class Xr {
|
|
|
3894
3894
|
const S = (v = o.topics) == null ? void 0 : v.split("-");
|
|
3895
3895
|
o.dashboard = S ? S[0] : "", o.widget = S ? S[1] : "";
|
|
3896
3896
|
}
|
|
3897
|
-
return o.type === ie && (o =
|
|
3897
|
+
return o.type === ie && (o = kt(this.options, o)), this.subscribers.filter(
|
|
3898
3898
|
(S) => S.widget === o.widget
|
|
3899
3899
|
).length || (console.debug(
|
|
3900
3900
|
"%cstorage%c %csubscribe",
|
|
3901
3901
|
V,
|
|
3902
3902
|
q,
|
|
3903
|
-
|
|
3903
|
+
St,
|
|
3904
3904
|
o.slide,
|
|
3905
3905
|
o.widget
|
|
3906
3906
|
), this.subscribers.push(o)), null;
|
|
@@ -3913,7 +3913,7 @@ class Xr {
|
|
|
3913
3913
|
this.options = o, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
|
|
3914
3914
|
}
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function Li(T, o) {
|
|
3917
3917
|
for (; T.length < o; )
|
|
3918
3918
|
T = `0${T}`;
|
|
3919
3919
|
return T;
|
|
@@ -3926,14 +3926,14 @@ function Ee(T, o) {
|
|
|
3926
3926
|
v = o.charCodeAt(m), T = (T << 5) - T + v, T |= 0;
|
|
3927
3927
|
return T < 0 ? T * -2 : T;
|
|
3928
3928
|
}
|
|
3929
|
-
function
|
|
3929
|
+
function Wi(T, o, m) {
|
|
3930
3930
|
return Object.keys(o).sort().reduce(v, T);
|
|
3931
3931
|
function v(S, M) {
|
|
3932
|
-
return
|
|
3932
|
+
return Gr(S, o[M], M, m);
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
|
-
function
|
|
3936
|
-
const S = Ee(Ee(Ee(T, m),
|
|
3935
|
+
function Gr(T, o, m, v) {
|
|
3936
|
+
const S = Ee(Ee(Ee(T, m), Ui(o)), typeof o);
|
|
3937
3937
|
if (o === null)
|
|
3938
3938
|
return Ee(S, "null");
|
|
3939
3939
|
if (o === void 0)
|
|
@@ -3942,7 +3942,7 @@ function Jr(T, o, m, v) {
|
|
|
3942
3942
|
if (v.includes(o))
|
|
3943
3943
|
return Ee(S, `[Circular]${m}`);
|
|
3944
3944
|
v.push(o);
|
|
3945
|
-
const M =
|
|
3945
|
+
const M = Wi(S, o, v);
|
|
3946
3946
|
if (!("valueOf" in o) || typeof o.valueOf != "function")
|
|
3947
3947
|
return M;
|
|
3948
3948
|
try {
|
|
@@ -3953,13 +3953,13 @@ function Jr(T, o, m, v) {
|
|
|
3953
3953
|
}
|
|
3954
3954
|
return Ee(S, o.toString());
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3956
|
+
function Ui(T) {
|
|
3957
3957
|
return Object.prototype.toString.call(T);
|
|
3958
3958
|
}
|
|
3959
|
-
function
|
|
3960
|
-
return
|
|
3959
|
+
function Vn(T) {
|
|
3960
|
+
return Li(Gr(0, T, "", []).toString(16), 8);
|
|
3961
3961
|
}
|
|
3962
|
-
class
|
|
3962
|
+
class Zi {
|
|
3963
3963
|
constructor(o) {
|
|
3964
3964
|
j(this, "sm");
|
|
3965
3965
|
j(this, "api");
|
|
@@ -3988,12 +3988,12 @@ class no {
|
|
|
3988
3988
|
let J = "";
|
|
3989
3989
|
switch (D.query.type) {
|
|
3990
3990
|
case ie:
|
|
3991
|
-
if (J =
|
|
3991
|
+
if (J = Vn(D.data.messages), z.hash === J)
|
|
3992
3992
|
return console.debug(
|
|
3993
3993
|
"%capi%c %cno updates",
|
|
3994
3994
|
H,
|
|
3995
3995
|
q,
|
|
3996
|
-
|
|
3996
|
+
Yn,
|
|
3997
3997
|
ie,
|
|
3998
3998
|
D.query.slide,
|
|
3999
3999
|
D.query.widget
|
|
@@ -4001,22 +4001,22 @@ class no {
|
|
|
4001
4001
|
z.hash = J, M = await this.sm.setMessages(D.query, D);
|
|
4002
4002
|
break;
|
|
4003
4003
|
case de:
|
|
4004
|
-
J =
|
|
4004
|
+
J = Vn(D.data), z.hash === J ? (console.debug(
|
|
4005
4005
|
"%capi%c %cno updates",
|
|
4006
4006
|
H,
|
|
4007
4007
|
q,
|
|
4008
|
-
|
|
4008
|
+
Yn,
|
|
4009
4009
|
de,
|
|
4010
4010
|
D.query.slide,
|
|
4011
4011
|
D.query.widget
|
|
4012
4012
|
), M = 204) : (z.hash = J, M = await this.sm.setCloud(D.query, D));
|
|
4013
4013
|
break;
|
|
4014
4014
|
case he:
|
|
4015
|
-
J =
|
|
4015
|
+
J = Vn(D.data), z.hash === J ? (console.debug(
|
|
4016
4016
|
"%capi%c %cno updates",
|
|
4017
4017
|
H,
|
|
4018
4018
|
q,
|
|
4019
|
-
|
|
4019
|
+
Yn,
|
|
4020
4020
|
he,
|
|
4021
4021
|
D.query.slide,
|
|
4022
4022
|
D.query.widget
|
|
@@ -4040,7 +4040,7 @@ class no {
|
|
|
4040
4040
|
"%capp%c %cbroadcast",
|
|
4041
4041
|
H,
|
|
4042
4042
|
q,
|
|
4043
|
-
|
|
4043
|
+
Gn,
|
|
4044
4044
|
D.query.slide,
|
|
4045
4045
|
D.data.title ?? D.query.widget
|
|
4046
4046
|
), this.bc.postMessage({ event: "widget-update", data: D.query });
|
|
@@ -4050,7 +4050,7 @@ class no {
|
|
|
4050
4050
|
"%capp%c %cbroadcast",
|
|
4051
4051
|
H,
|
|
4052
4052
|
q,
|
|
4053
|
-
|
|
4053
|
+
Gn,
|
|
4054
4054
|
D.query.slide,
|
|
4055
4055
|
D.data.title ?? D.query.widget
|
|
4056
4056
|
);
|
|
@@ -4105,7 +4105,7 @@ class no {
|
|
|
4105
4105
|
"%cstorage%c %cslide",
|
|
4106
4106
|
V,
|
|
4107
4107
|
q,
|
|
4108
|
-
|
|
4108
|
+
Xi,
|
|
4109
4109
|
o.slide,
|
|
4110
4110
|
"version",
|
|
4111
4111
|
Ri
|
|
@@ -4115,31 +4115,31 @@ class no {
|
|
|
4115
4115
|
"%capi%c %cbroadcast",
|
|
4116
4116
|
H,
|
|
4117
4117
|
q,
|
|
4118
|
-
|
|
4118
|
+
Gn,
|
|
4119
4119
|
"channel",
|
|
4120
4120
|
m
|
|
4121
4121
|
), this.bc.onmessage = (v) => {
|
|
4122
4122
|
this.actions(v);
|
|
4123
|
-
}, this.bc.postMessage({ event: "sm-init", data: {} }), this.api = new
|
|
4124
|
-
case
|
|
4125
|
-
this.sm = new
|
|
4123
|
+
}, this.bc.postMessage({ event: "sm-init", data: {} }), this.api = new Ni(o), o.storage) {
|
|
4124
|
+
case Xr:
|
|
4125
|
+
this.sm = new $r(o);
|
|
4126
4126
|
break;
|
|
4127
|
-
case
|
|
4128
|
-
this.sm = new
|
|
4127
|
+
case Hr:
|
|
4128
|
+
this.sm = new Ur(o);
|
|
4129
4129
|
break;
|
|
4130
|
-
case
|
|
4131
|
-
this.sm = new
|
|
4130
|
+
case Qr:
|
|
4131
|
+
this.sm = new Wr(o);
|
|
4132
4132
|
break;
|
|
4133
|
-
case
|
|
4134
|
-
this.sm = new
|
|
4133
|
+
case Yr:
|
|
4134
|
+
this.sm = new Lr(o);
|
|
4135
4135
|
break;
|
|
4136
|
-
case
|
|
4137
|
-
this.sm = new
|
|
4136
|
+
case Jr:
|
|
4137
|
+
this.sm = new Vr(o);
|
|
4138
4138
|
break;
|
|
4139
4139
|
}
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
4142
|
-
class
|
|
4142
|
+
class qi {
|
|
4143
4143
|
constructor(o) {
|
|
4144
4144
|
j(this, "sm");
|
|
4145
4145
|
/**
|
|
@@ -4151,7 +4151,7 @@ class ro {
|
|
|
4151
4151
|
var m;
|
|
4152
4152
|
return o.type !== de ? (console.warn(
|
|
4153
4153
|
"%capp%c %get",
|
|
4154
|
-
|
|
4154
|
+
Hn,
|
|
4155
4155
|
q,
|
|
4156
4156
|
_t,
|
|
4157
4157
|
o.widget,
|
|
@@ -4172,7 +4172,7 @@ class ro {
|
|
|
4172
4172
|
var m;
|
|
4173
4173
|
return o.type !== ie ? (console.warn(
|
|
4174
4174
|
"%capp%c %get",
|
|
4175
|
-
|
|
4175
|
+
Hn,
|
|
4176
4176
|
q,
|
|
4177
4177
|
_t,
|
|
4178
4178
|
o.widget,
|
|
@@ -4193,7 +4193,7 @@ class ro {
|
|
|
4193
4193
|
var m;
|
|
4194
4194
|
return o.type !== he ? (console.warn(
|
|
4195
4195
|
"%capp%c %get",
|
|
4196
|
-
|
|
4196
|
+
Hn,
|
|
4197
4197
|
q,
|
|
4198
4198
|
_t,
|
|
4199
4199
|
o.widget,
|
|
@@ -4206,53 +4206,53 @@ class ro {
|
|
|
4206
4206
|
}) : await ((m = this.sm) == null ? void 0 : m.getMessages(o));
|
|
4207
4207
|
});
|
|
4208
4208
|
switch (this.sm = null, o.storage) {
|
|
4209
|
-
case
|
|
4210
|
-
this.sm = new
|
|
4209
|
+
case Xr:
|
|
4210
|
+
this.sm = new $r(o);
|
|
4211
4211
|
break;
|
|
4212
|
-
case
|
|
4213
|
-
this.sm = new
|
|
4212
|
+
case Hr:
|
|
4213
|
+
this.sm = new Ur(o);
|
|
4214
4214
|
break;
|
|
4215
|
-
case
|
|
4216
|
-
this.sm = new
|
|
4215
|
+
case Qr:
|
|
4216
|
+
this.sm = new Wr(o);
|
|
4217
4217
|
break;
|
|
4218
|
-
case
|
|
4219
|
-
this.sm = new
|
|
4218
|
+
case Yr:
|
|
4219
|
+
this.sm = new Lr(o);
|
|
4220
4220
|
break;
|
|
4221
|
-
case
|
|
4222
|
-
this.sm = new
|
|
4221
|
+
case Jr:
|
|
4222
|
+
this.sm = new Vr(o);
|
|
4223
4223
|
break;
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
4226
4226
|
}
|
|
4227
|
+
const ie = "messages", de = "cloud", he = "series", Vi = "topics", xt = "widget", Gi = "widgets", eo = "subscribe", Yr = "keyval", Hr = "local", Qr = "session", Xr = "dexie", Jr = "window", ce = "padding:0 4px 0 4px;border-radius:5px;", V = `color:black;background-color:cyan;${ce}`, Gn = `color:white;background-color:orange;${ce}`, H = `color:white;background-color:grey;${ce}`, _t = `color:black;background-color:lime;${ce}`, Yn = `color:grey;border:1px solid grey;${ce}`, q = "color:transparent;background-color:transparent;", Yi = `color:grey;background-color:mistyrose;${ce}`, Hi = `color:grey;background-color:tan;${ce}`, Qi = `color:grey;background-color:thistle;${ce}`, to = `color:white;background-color:red;${ce}`, Hn = `color:white;background-color:navy;${ce}`, no = `color:white;background-color:green;${ce}`, St = `color:white;background-color:dodgerblue;${ce}`, Xi = `color:black;background-color:yellow;${ce}`, ro = `color:white;background-color:darkred;${ce}`;
|
|
4227
4228
|
export {
|
|
4228
4229
|
H as API_CSS,
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4230
|
+
Hn as APP_CSS,
|
|
4231
|
+
Gn as BROADCAST_CSS,
|
|
4232
|
+
Zi as BuzzcastingStorageManager,
|
|
4233
|
+
qi as BuzzcastingStorageReader,
|
|
4233
4234
|
de as CLOUD,
|
|
4234
|
-
|
|
4235
|
+
Yi as CLOUD_CSS,
|
|
4235
4236
|
_t as GET_DATA,
|
|
4236
|
-
|
|
4237
|
+
to as HIDE_CSS,
|
|
4237
4238
|
ie as MESSAGES,
|
|
4238
|
-
|
|
4239
|
+
Hi as MESSAGES_CSS,
|
|
4239
4240
|
q as NONE,
|
|
4240
|
-
|
|
4241
|
-
|
|
4241
|
+
Yn as NO_UPDATES,
|
|
4242
|
+
ro as PRESENTATION_CSS,
|
|
4242
4243
|
he as SERIES,
|
|
4243
|
-
|
|
4244
|
-
|
|
4244
|
+
Qi as SERIES_CSS,
|
|
4245
|
+
Xi as SLIDE_CSS,
|
|
4245
4246
|
V as STORAGE_CSS,
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
Hn as sum
|
|
4247
|
+
Xr as STORAGE_DEXIE,
|
|
4248
|
+
Yr as STORAGE_KEYVAL,
|
|
4249
|
+
Hr as STORAGE_LOCAL,
|
|
4250
|
+
Qr as STORAGE_SESSION,
|
|
4251
|
+
Jr as STORAGE_WINDOW,
|
|
4252
|
+
eo as SUBSCRIBE,
|
|
4253
|
+
St as SUBSCRIBE_CSS,
|
|
4254
|
+
Vi as TOPICS,
|
|
4255
|
+
xt as WIDGET,
|
|
4256
|
+
Gi as WIDGETS,
|
|
4257
|
+
no as WS_CSS
|
|
4258
4258
|
};
|