buzzcasting-storage 3.15.5 → 3.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var S = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(S || {}), o = /* @__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:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;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.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;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.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;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))(o || {}), X = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(X || {}), qt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(qt || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
1
+ var S = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(S || {}), o = /* @__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:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;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.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;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.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;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))(o || {}), Q = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(Q || {}), er = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(er || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
2
  function Pa(f) {
3
3
  const t = {};
4
4
  for (let i = 0; i < f.length; i++) {
@@ -91,7 +91,7 @@ const G = (f = 0, t) => {
91
91
  console.error(...t);
92
92
  break;
93
93
  }
94
- }, tr = (f) => {
94
+ }, wt = (f) => {
95
95
  switch (f?.type) {
96
96
  case S.MESSAGES:
97
97
  return o.MESSAGES;
@@ -114,16 +114,16 @@ function Ra(f) {
114
114
  }
115
115
  return f;
116
116
  }
117
- function St(f, t) {
117
+ function Ot(f, t) {
118
118
  let i, l, g, b, I;
119
119
  switch (f.moderation) {
120
- case qt.BEFORE:
120
+ case er.BEFORE:
121
121
  i = /* @__PURE__ */ new Date(), l = f.beforeTime?.split(":"), g = Number.parseInt(l ? l[0] : "00"), b = Number.parseInt(l ? l[1] : "00"), I = Number.parseInt(l ? l[2] : "00"), t.before = i.setHours(g, b, I, 0) / 1e3, t.period || (t.period = i.getDay() === 1 ? 72 : 24);
122
122
  break;
123
- case qt.DELAYED:
123
+ case er.DELAYED:
124
124
  f.delay && f.delay > 0 && (t.delay = `${f.delay}`);
125
125
  break;
126
- case qt.APPROVED:
126
+ case er.APPROVED:
127
127
  t.approved = "1";
128
128
  break;
129
129
  default:
@@ -131,7 +131,7 @@ function St(f, t) {
131
131
  }
132
132
  return t;
133
133
  }
134
- const xa = "3.15.4";
134
+ const xa = "3.15.5";
135
135
  class ka {
136
136
  options;
137
137
  url;
@@ -209,7 +209,7 @@ class ka {
209
209
  o.API,
210
210
  o.NONE,
211
211
  o.GET_DATA,
212
- X.HIDE_MESSAGE,
212
+ Q.HIDE_MESSAGE,
213
213
  t.widget,
214
214
  t.id
215
215
  ), await fetch(
@@ -230,7 +230,7 @@ class ka {
230
230
  o.API,
231
231
  o.NONE,
232
232
  o.GET_DATA,
233
- X.HIDE_LABELS,
233
+ Q.HIDE_LABELS,
234
234
  t.widget,
235
235
  b
236
236
  ), await fetch(
@@ -284,7 +284,7 @@ class ka {
284
284
  o.API,
285
285
  o.NONE,
286
286
  o.SLIDE,
287
- X.SLIDE_STORE,
287
+ Q.SLIDE_STORE,
288
288
  t.id
289
289
  ]), await fetch(
290
290
  [this.url, "api", i, "slides", t.id].join("/"),
@@ -467,8 +467,8 @@ var Ca = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
467
467
  function $a(f) {
468
468
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
469
469
  }
470
- var er = { exports: {} }, ja = er.exports, Cn;
471
- function Ma() {
470
+ var tr = { exports: {} }, ja = tr.exports, Cn;
471
+ function Ga() {
472
472
  return Cn || (Cn = 1, function(f, t) {
473
473
  (function(i, l) {
474
474
  f.exports = l();
@@ -496,9 +496,9 @@ function Ma() {
496
496
  }), e;
497
497
  }
498
498
  typeof Promise > "u" || b.Promise || (b.Promise = Promise);
499
- var se = Object.getPrototypeOf, Ot = {}.hasOwnProperty;
499
+ var se = Object.getPrototypeOf, _t = {}.hasOwnProperty;
500
500
  function re(e, r) {
501
- return Ot.call(e, r);
501
+ return _t.call(e, r);
502
502
  }
503
503
  function ge(e, r) {
504
504
  typeof r == "function" && (r = r(se(e))), (typeof Reflect > "u" ? I : Reflect.ownKeys)(r).forEach(function(n) {
@@ -515,7 +515,7 @@ function Ma() {
515
515
  } };
516
516
  }
517
517
  var Wn = Object.getOwnPropertyDescriptor, Fn = [].slice;
518
- function _t(e, r, n) {
518
+ function At(e, r, n) {
519
519
  return Fn.call(e, r, n);
520
520
  }
521
521
  function zr(e, r) {
@@ -552,22 +552,22 @@ function Ma() {
552
552
  d !== -1 ? (c = r.substr(0, d), (u = r.substr(d + 1)) === "" ? n === void 0 ? M(e) && !isNaN(parseInt(c)) ? e.splice(c, 1) : delete e[c] : e[c] = n : le(d = !(d = e[c]) || !re(e, c) ? e[c] = {} : d, u, n)) : n === void 0 ? M(e) && !isNaN(parseInt(r)) ? e.splice(r, 1) : delete e[r] : e[r] = n;
553
553
  }
554
554
  }
555
- function Qr(e) {
555
+ function Xr(e) {
556
556
  var r, n = {};
557
557
  for (r in e) re(e, r) && (n[r] = e[r]);
558
558
  return n;
559
559
  }
560
560
  var Hn = [].concat;
561
- function Xr(e) {
561
+ function Qr(e) {
562
562
  return Hn.apply([], e);
563
563
  }
564
- var Me = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Xr([8, 16, 32, 64].map(function(e) {
564
+ var Ge = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Qr([8, 16, 32, 64].map(function(e) {
565
565
  return ["Int", "Uint", "Float"].map(function(r) {
566
566
  return r + e + "Array";
567
567
  });
568
568
  }))).filter(function(e) {
569
569
  return b[e];
570
- }), Jr = new Set(Me.map(function(e) {
570
+ }), Jr = new Set(Ge.map(function(e) {
571
571
  return b[e];
572
572
  })), ot = null;
573
573
  function Ce(e) {
@@ -622,7 +622,7 @@ function Ma() {
622
622
  } : function() {
623
623
  return !1;
624
624
  }, ut = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], fe = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(ut), Yn = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
625
- function Qe(e, r) {
625
+ function Xe(e, r) {
626
626
  this.name = e, this.message = r;
627
627
  }
628
628
  function Zr(e, r) {
@@ -633,39 +633,39 @@ function Ma() {
633
633
  }).join(`
634
634
  `);
635
635
  }
636
- function At(e, r, n, a) {
636
+ function Pt(e, r, n, a) {
637
637
  this.failures = r, this.failedKeys = a, this.successCount = n, this.message = Zr(e, r);
638
638
  }
639
- function Xe(e, r) {
639
+ function Qe(e, r) {
640
640
  this.name = "BulkError", this.failures = Object.keys(r).map(function(n) {
641
641
  return r[n];
642
642
  }), this.failuresByPos = r, this.message = Zr(e, this.failures);
643
643
  }
644
- ze(Qe).from(Error).extend({ toString: function() {
644
+ ze(Xe).from(Error).extend({ toString: function() {
645
645
  return this.name + ": " + this.message;
646
- } }), ze(At).from(Qe), ze(Xe).from(Qe);
646
+ } }), ze(Pt).from(Xe), ze(Qe).from(Xe);
647
647
  var sr = fe.reduce(function(e, r) {
648
648
  return e[r] = r + "Error", e;
649
- }, {}), Qn = Qe, B = fe.reduce(function(e, r) {
649
+ }, {}), Xn = Xe, B = fe.reduce(function(e, r) {
650
650
  var n = r + "Error";
651
651
  function a(s, c) {
652
652
  this.name = n, s ? typeof s == "string" ? (this.message = "".concat(s).concat(c ? `
653
653
  ` + c : ""), this.inner = c || null) : typeof s == "object" && (this.message = "".concat(s.name, " ").concat(s.message), this.inner = s) : (this.message = Yn[r] || n, this.inner = null);
654
654
  }
655
- return ze(a).from(Qn), e[r] = a, e;
655
+ return ze(a).from(Xn), e[r] = a, e;
656
656
  }, {});
657
657
  B.Syntax = SyntaxError, B.Type = TypeError, B.Range = RangeError;
658
658
  var qr = ut.reduce(function(e, r) {
659
659
  return e[r + "Error"] = B[r], e;
660
- }, {}), Pt = fe.reduce(function(e, r) {
660
+ }, {}), Nt = fe.reduce(function(e, r) {
661
661
  return ["Syntax", "Type", "Range"].indexOf(r) === -1 && (e[r + "Error"] = B[r]), e;
662
662
  }, {});
663
- function Q() {
663
+ function X() {
664
664
  }
665
665
  function it(e) {
666
666
  return e;
667
667
  }
668
- function Xn(e, r) {
668
+ function Qn(e, r) {
669
669
  return e == null || e === it ? r : function(n) {
670
670
  return r(e(n));
671
671
  };
@@ -676,7 +676,7 @@ function Ma() {
676
676
  };
677
677
  }
678
678
  function Jn(e, r) {
679
- return e === Q ? r : function() {
679
+ return e === X ? r : function() {
680
680
  var n = e.apply(this, arguments);
681
681
  n !== void 0 && (arguments[0] = n);
682
682
  var a = this.onsuccess, s = this.onerror;
@@ -686,14 +686,14 @@ function Ma() {
686
686
  };
687
687
  }
688
688
  function Zn(e, r) {
689
- return e === Q ? r : function() {
689
+ return e === X ? r : function() {
690
690
  e.apply(this, arguments);
691
691
  var n = this.onsuccess, a = this.onerror;
692
692
  this.onsuccess = this.onerror = null, r.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? je(n, this.onsuccess) : n), a && (this.onerror = this.onerror ? je(a, this.onerror) : a);
693
693
  };
694
694
  }
695
695
  function qn(e, r) {
696
- return e === Q ? r : function(n) {
696
+ return e === X ? r : function(n) {
697
697
  var a = e.apply(this, arguments);
698
698
  te(n, a);
699
699
  var s = this.onsuccess, c = this.onerror;
@@ -701,12 +701,12 @@ function Ma() {
701
701
  };
702
702
  }
703
703
  function ea(e, r) {
704
- return e === Q ? r : function() {
704
+ return e === X ? r : function() {
705
705
  return r.apply(this, arguments) !== !1 && e.apply(this, arguments);
706
706
  };
707
707
  }
708
708
  function or(e, r) {
709
- return e === Q ? r : function() {
709
+ return e === X ? r : function() {
710
710
  var n = e.apply(this, arguments);
711
711
  if (n && typeof n.then == "function") {
712
712
  for (var a = this, s = arguments.length, c = new Array(s); s--; ) c[s] = arguments[s];
@@ -717,19 +717,19 @@ function Ma() {
717
717
  return r.apply(this, arguments);
718
718
  };
719
719
  }
720
- Pt.ModifyError = At, Pt.DexieError = Qe, Pt.BulkError = Xe;
720
+ Nt.ModifyError = Pt, Nt.DexieError = Xe, Nt.BulkError = Qe;
721
721
  var me = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
722
722
  function en(e) {
723
723
  me = e;
724
724
  }
725
- var ct = {}, tn = 100, Me = typeof Promise > "u" ? [] : function() {
725
+ var ct = {}, tn = 100, Ge = typeof Promise > "u" ? [] : function() {
726
726
  var e = Promise.resolve();
727
727
  if (typeof crypto > "u" || !crypto.subtle) return [e, se(e), e];
728
728
  var r = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
729
729
  return [r, se(r), e];
730
- }(), ut = Me[0], fe = Me[1], Me = Me[2], fe = fe && fe.then, Ge = ut && ut.constructor, ir = !!Me, lt = function(e, r) {
731
- dt.push([e, r]), Nt && (queueMicrotask(ra), Nt = !1);
732
- }, cr = !0, Nt = !0, Ke = [], Dt = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, L = Pe, dt = [], Le = 0, It = [];
730
+ }(), ut = Ge[0], fe = Ge[1], Ge = Ge[2], fe = fe && fe.then, Me = ut && ut.constructor, ir = !!Ge, lt = function(e, r) {
731
+ dt.push([e, r]), Dt && (queueMicrotask(ra), Dt = !1);
732
+ }, cr = !0, Dt = !0, Ke = [], It = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: X, pgp: !1, env: {}, finalize: X }, L = Pe, dt = [], Le = 0, Tt = [];
733
733
  function j(e) {
734
734
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
735
735
  this._listeners = [], this._lib = !1;
@@ -755,9 +755,9 @@ function Ma() {
755
755
  }(this, e);
756
756
  }
757
757
  var lr = { get: function() {
758
- var e = L, r = kt;
758
+ var e = L, r = Ct;
759
759
  function n(a, s) {
760
- var c = this, u = !e.global && (e !== L || r !== kt), d = u && !De(), p = new j(function(y, w) {
760
+ var c = this, u = !e.global && (e !== L || r !== Ct), d = u && !De(), p = new j(function(y, w) {
761
761
  hr(c, new rn(sn(a, e, u, d), sn(s, e, u, d), y, w, e));
762
762
  });
763
763
  return this._consoleTask && (p._consoleTask = this._consoleTask), p;
@@ -773,7 +773,7 @@ function Ma() {
773
773
  }
774
774
  function dr(e, r) {
775
775
  var n, a;
776
- Dt.push(r), e._state === null && (n = e._lib && Je(), r = ur(r), e._state = !1, e._value = r, a = e, Ke.some(function(s) {
776
+ It.push(r), e._state === null && (n = e._lib && Je(), r = ur(r), e._state = !1, e._value = r, a = e, Ke.some(function(s) {
777
777
  return s._value === a._value;
778
778
  }) || Ke.push(a), nn(e), n && Ze());
779
779
  }
@@ -796,9 +796,9 @@ function Ma() {
796
796
  function ta(e, r, n) {
797
797
  try {
798
798
  var a, s = r._value;
799
- !r._state && Dt.length && (Dt = []), a = me && r._consoleTask ? r._consoleTask.run(function() {
799
+ !r._state && It.length && (It = []), a = me && r._consoleTask ? r._consoleTask.run(function() {
800
800
  return e(s);
801
- }) : e(s), r._state || Dt.indexOf(s) !== -1 || function(c) {
801
+ }) : e(s), r._state || It.indexOf(s) !== -1 || function(c) {
802
802
  for (var u = Ke.length; u; ) if (Ke[--u]._value === c._value) return Ke.splice(u, 1);
803
803
  }(r), n.resolve(a);
804
804
  } catch (c) {
@@ -814,7 +814,7 @@ function Ma() {
814
814
  }
815
815
  function Je() {
816
816
  var e = cr;
817
- return Nt = cr = !1, e;
817
+ return Dt = cr = !1, e;
818
818
  }
819
819
  function Ze() {
820
820
  var e, r, n;
@@ -824,16 +824,16 @@ function Ma() {
824
824
  a[0].apply(null, a[1]);
825
825
  }
826
826
  while (0 < dt.length);
827
- Nt = cr = !0;
827
+ Dt = cr = !0;
828
828
  }
829
829
  function fr() {
830
830
  var e = Ke;
831
831
  Ke = [], e.forEach(function(a) {
832
832
  a._PSD.onunhandled.call(null, a._value, a);
833
833
  });
834
- for (var r = It.slice(0), n = r.length; n; ) r[--n]();
834
+ for (var r = Tt.slice(0), n = r.length; n; ) r[--n]();
835
835
  }
836
- function Tt(e) {
836
+ function Rt(e) {
837
837
  return new j(ct, !1, e);
838
838
  }
839
839
  function Z(e, r) {
@@ -855,9 +855,9 @@ function Ma() {
855
855
  if (arguments.length === 1) return this.then(null, e);
856
856
  var r = e, n = arguments[1];
857
857
  return typeof r == "function" ? this.then(null, function(a) {
858
- return (a instanceof r ? n : Tt)(a);
858
+ return (a instanceof r ? n : Rt)(a);
859
859
  }) : this.then(null, function(a) {
860
- return (a && a.name === r ? n : Tt)(a);
860
+ return (a && a.name === r ? n : Rt)(a);
861
861
  });
862
862
  }, finally: function(e) {
863
863
  return this.then(function(r) {
@@ -866,7 +866,7 @@ function Ma() {
866
866
  });
867
867
  }, function(r) {
868
868
  return j.resolve(e()).then(function() {
869
- return Tt(r);
869
+ return Rt(r);
870
870
  });
871
871
  });
872
872
  }, timeout: function(e, r) {
@@ -878,7 +878,7 @@ function Ma() {
878
878
  n.then(a, s).finally(clearTimeout.bind(null, c));
879
879
  }) : this;
880
880
  } }), typeof Symbol < "u" && Symbol.toStringTag && Ae(j.prototype, Symbol.toStringTag, "Dexie.Promise"), Pe.env = an(), ge(j, { all: function() {
881
- var e = Ee.apply(null, arguments).map(Ct);
881
+ var e = Ee.apply(null, arguments).map($t);
882
882
  return new j(function(r, n) {
883
883
  e.length === 0 && r([]);
884
884
  var a = e.length;
@@ -892,8 +892,8 @@ function Ma() {
892
892
  return e instanceof j ? e : e && typeof e.then == "function" ? new j(function(r, n) {
893
893
  e.then(r, n);
894
894
  }) : new j(ct, !0, e);
895
- }, reject: Tt, race: function() {
896
- var e = Ee.apply(null, arguments).map(Ct);
895
+ }, reject: Rt, race: function() {
896
+ var e = Ee.apply(null, arguments).map($t);
897
897
  return new j(function(r, n) {
898
898
  e.map(function(a) {
899
899
  return j.resolve(a).then(r, n);
@@ -904,7 +904,7 @@ function Ma() {
904
904
  }, set: function(e) {
905
905
  return L = e;
906
906
  } }, totalEchoes: { get: function() {
907
- return kt;
907
+ return Ct;
908
908
  } }, newPSD: Ne, usePSD: Be, scheduler: { get: function() {
909
909
  return lt;
910
910
  }, set: function(e) {
@@ -921,16 +921,16 @@ function Ma() {
921
921
  var d, p = this;
922
922
  d = function() {
923
923
  p.unhandleds.length === 0 ? s() : c(p.unhandleds[0]);
924
- }, It.push(function y() {
925
- d(), It.splice(It.indexOf(y), 1);
924
+ }, Tt.push(function y() {
925
+ d(), Tt.splice(Tt.indexOf(y), 1);
926
926
  }), ++Le, lt(function() {
927
927
  --Le == 0 && fr();
928
928
  }, []);
929
929
  }, u.finalize), e();
930
930
  }, r, n, a);
931
931
  });
932
- } }), Ge && (Ge.allSettled && Ae(j, "allSettled", function() {
933
- var e = Ee.apply(null, arguments).map(Ct);
932
+ } }), Me && (Me.allSettled && Ae(j, "allSettled", function() {
933
+ var e = Ee.apply(null, arguments).map($t);
934
934
  return new j(function(r) {
935
935
  e.length === 0 && r([]);
936
936
  var n = e.length, a = new Array(n);
@@ -944,8 +944,8 @@ function Ma() {
944
944
  });
945
945
  });
946
946
  });
947
- }), Ge.any && typeof AggregateError < "u" && Ae(j, "any", function() {
948
- var e = Ee.apply(null, arguments).map(Ct);
947
+ }), Me.any && typeof AggregateError < "u" && Ae(j, "any", function() {
948
+ var e = Ee.apply(null, arguments).map($t);
949
949
  return new j(function(r, n) {
950
950
  e.length === 0 && n(new AggregateError([]));
951
951
  var a = e.length, s = new Array(a);
@@ -957,8 +957,8 @@ function Ma() {
957
957
  });
958
958
  });
959
959
  });
960
- }), Ge.withResolvers && (j.withResolvers = Ge.withResolvers));
961
- var ne = { awaits: 0, echoes: 0, id: 0 }, na = 0, Rt = [], xt = 0, kt = 0, aa = 0;
960
+ }), Me.withResolvers && (j.withResolvers = Me.withResolvers));
961
+ var ne = { awaits: 0, echoes: 0, id: 0 }, na = 0, xt = [], kt = 0, Ct = 0, aa = 0;
962
962
  function Ne(e, r, n, a) {
963
963
  var s = L, c = Object.create(s);
964
964
  return c.parent = s, c.ref = 0, c.global = !1, c.id = ++aa, Pe.env, c.env = ir ? { Promise: j, PromiseProp: { value: j, configurable: !0, writable: !0 }, all: j.all, race: j.race, allSettled: j.allSettled, any: j.any, resolve: j.resolve, reject: j.reject } : {}, r && te(c, r), ++s.ref, c.finalize = function() {
@@ -971,21 +971,21 @@ function Ma() {
971
971
  function De() {
972
972
  return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * tn, !0);
973
973
  }
974
- function Ct(e) {
975
- return ne.echoes && e && e.constructor === Ge ? (qe(), e.then(function(r) {
974
+ function $t(e) {
975
+ return ne.echoes && e && e.constructor === Me ? (qe(), e.then(function(r) {
976
976
  return De(), r;
977
977
  }, function(r) {
978
978
  return De(), q(r);
979
979
  })) : e;
980
980
  }
981
981
  function sa() {
982
- var e = Rt[Rt.length - 1];
983
- Rt.pop(), Ie(e, !1);
982
+ var e = xt[xt.length - 1];
983
+ xt.pop(), Ie(e, !1);
984
984
  }
985
985
  function Ie(e, r) {
986
986
  var n, a = L;
987
- (r ? !ne.echoes || xt++ && e === L : !xt || --xt && e === L) || queueMicrotask(r ? function(s) {
988
- ++kt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), Rt.push(L), Ie(s, !0);
987
+ (r ? !ne.echoes || kt++ && e === L : !kt || --kt && e === L) || queueMicrotask(r ? function(s) {
988
+ ++Ct, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), xt.push(L), Ie(s, !0);
989
989
  }.bind(null, e) : sa), e !== L && (L = e, a === Pe && (Pe.env = an()), ir && (n = Pe.env.Promise, r = e.env, (a.global || e.global) && (Object.defineProperty(b, "Promise", r.PromiseProp), n.all = r.all, n.race = r.race, n.resolve = r.resolve, n.reject = r.reject, r.allSettled && (n.allSettled = r.allSettled), r.any && (n.any = r.any))));
990
990
  }
991
991
  function an() {
@@ -1012,17 +1012,17 @@ function Ma() {
1012
1012
  };
1013
1013
  }
1014
1014
  function gr(e) {
1015
- Promise === Ge && ne.echoes === 0 ? xt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1015
+ Promise === Me && ne.echoes === 0 ? kt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1016
1016
  }
1017
- ("" + fe).indexOf("[native code]") === -1 && (qe = De = Q);
1018
- var q = j.reject, Ue = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", et = [], $t = "__dbnames", pr = "readonly", mr = "readwrite";
1017
+ ("" + fe).indexOf("[native code]") === -1 && (qe = De = X);
1018
+ var q = j.reject, Ue = "￿", we = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", on = "String expected.", et = [], jt = "__dbnames", pr = "readonly", mr = "readwrite";
1019
1019
  function We(e, r) {
1020
1020
  return e ? r ? function() {
1021
1021
  return e.apply(this, arguments) && r.apply(this, arguments);
1022
1022
  } : e : r;
1023
1023
  }
1024
1024
  var cn = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
1025
- function jt(e) {
1025
+ function Gt(e) {
1026
1026
  return typeof e != "string" || /\./.test(e) ? function(r) {
1027
1027
  return r;
1028
1028
  } : function(r) {
@@ -1103,7 +1103,7 @@ function Ma() {
1103
1103
  if (w._state.openComplete) return q(new B.DatabaseClosed(w._state.dbOpenError));
1104
1104
  if (!w._state.isBeingOpened) {
1105
1105
  if (!w._state.autoOpen) return q(new B.DatabaseClosed());
1106
- w.open().catch(Q);
1106
+ w.open().catch(X);
1107
1107
  }
1108
1108
  return w._state.dbReadyPromise.then(function() {
1109
1109
  return y(w, h, _, m);
@@ -1213,7 +1213,7 @@ function Ma() {
1213
1213
  });
1214
1214
  }, J.prototype.add = function(e, r) {
1215
1215
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
1216
- return c && s && (u = jt(c)(e)), this._trans("readwrite", function(d) {
1216
+ return c && s && (u = Gt(c)(e)), this._trans("readwrite", function(d) {
1217
1217
  return n.core.mutate({ trans: d, type: "add", keys: r != null ? [r] : null, values: [u] });
1218
1218
  }).then(function(d) {
1219
1219
  return d.numFailures ? j.reject(d.failures[0]) : d.lastResult;
@@ -1228,7 +1228,7 @@ function Ma() {
1228
1228
  return typeof e != "object" || M(e) ? this.where(":id").equals(e).modify(r) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new B.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1229
1229
  }, J.prototype.put = function(e, r) {
1230
1230
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
1231
- return c && s && (u = jt(c)(e)), this._trans("readwrite", function(d) {
1231
+ return c && s && (u = Gt(c)(e)), this._trans("readwrite", function(d) {
1232
1232
  return n.core.mutate({ trans: d, type: "put", values: [u], keys: r != null ? [r] : null });
1233
1233
  }).then(function(d) {
1234
1234
  return d.numFailures ? j.reject(d.failures[0]) : d.lastResult;
@@ -1268,11 +1268,11 @@ function Ma() {
1268
1268
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1269
1269
  if (y && s) throw new B.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1270
1270
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1271
- var p = e.length, y = y && d ? e.map(jt(y)) : e;
1271
+ var p = e.length, y = y && d ? e.map(Gt(y)) : e;
1272
1272
  return a.core.mutate({ trans: u, type: "add", keys: s, values: y, wantResults: c }).then(function(E) {
1273
1273
  var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
1274
1274
  if (h === 0) return c ? _ : m;
1275
- throw new Xe("".concat(a.name, ".bulkAdd(): ").concat(h, " of ").concat(p, " operations failed"), E);
1275
+ throw new Qe("".concat(a.name, ".bulkAdd(): ").concat(h, " of ").concat(p, " operations failed"), E);
1276
1276
  });
1277
1277
  });
1278
1278
  }, J.prototype.bulkPut = function(e, r, n) {
@@ -1281,11 +1281,11 @@ function Ma() {
1281
1281
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1282
1282
  if (y && s) throw new B.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1283
1283
  if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1284
- var p = e.length, y = y && d ? e.map(jt(y)) : e;
1284
+ var p = e.length, y = y && d ? e.map(Gt(y)) : e;
1285
1285
  return a.core.mutate({ trans: u, type: "put", keys: s, values: y, wantResults: c }).then(function(E) {
1286
1286
  var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
1287
1287
  if (h === 0) return c ? _ : m;
1288
- throw new Xe("".concat(a.name, ".bulkPut(): ").concat(h, " of ").concat(p, " operations failed"), E);
1288
+ throw new Qe("".concat(a.name, ".bulkPut(): ").concat(h, " of ").concat(p, " operations failed"), E);
1289
1289
  });
1290
1290
  });
1291
1291
  }, J.prototype.bulkUpdate = function(e) {
@@ -1317,7 +1317,7 @@ function Ma() {
1317
1317
  var v, A = O[E], P = c[Number(A)];
1318
1318
  P != null && (v = m[A], delete m[A], m[P] = v);
1319
1319
  }
1320
- throw new Xe("".concat(r.name, ".bulkUpdate(): ").concat(_, " of ").concat(w, " operations failed"), m);
1320
+ throw new Qe("".concat(r.name, ".bulkUpdate(): ").concat(_, " of ").concat(w, " operations failed"), m);
1321
1321
  });
1322
1322
  });
1323
1323
  });
@@ -1328,7 +1328,7 @@ function Ma() {
1328
1328
  }).then(function(u) {
1329
1329
  var s = u.numFailures, c = u.lastResult, u = u.failures;
1330
1330
  if (s === 0) return c;
1331
- throw new Xe("".concat(r.name, ".bulkDelete(): ").concat(s, " of ").concat(n, " operations failed"), u);
1331
+ throw new Qe("".concat(r.name, ".bulkDelete(): ").concat(s, " of ").concat(n, " operations failed"), u);
1332
1332
  });
1333
1333
  }, J);
1334
1334
  function J() {
@@ -1349,7 +1349,7 @@ function Ma() {
1349
1349
  if (typeof u != "object") {
1350
1350
  var y;
1351
1351
  d = d || ea;
1352
- var w = { subscribers: [], fire: p = p || Q, subscribe: function(h) {
1352
+ var w = { subscribers: [], fire: p = p || X, subscribe: function(h) {
1353
1353
  w.subscribers.indexOf(h) === -1 && (w.subscribers.push(h), w.fire = d(w.fire, h));
1354
1354
  }, unsubscribe: function(h) {
1355
1355
  w.subscribers = w.subscribers.filter(function(_) {
@@ -1400,7 +1400,7 @@ function Ma() {
1400
1400
  var a = Mt(e, r.schema);
1401
1401
  return r.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: a, range: e.range } });
1402
1402
  }
1403
- function Gt(e, r, n, a) {
1403
+ function Kt(e, r, n, a) {
1404
1404
  var s = e.replayFilter ? We(e.filter, e.replayFilter()) : e.filter;
1405
1405
  if (e.or) {
1406
1406
  var c = {}, u = function(d, p, y) {
@@ -1427,9 +1427,9 @@ function Ma() {
1427
1427
  r && !r(c, function(d) {
1428
1428
  return u = d;
1429
1429
  }, function(d) {
1430
- c.stop(d), u = Q;
1430
+ c.stop(d), u = X;
1431
1431
  }, function(d) {
1432
- c.fail(d), u = Q;
1432
+ c.fail(d), u = X;
1433
1433
  }) || s(c.value, c, function(d) {
1434
1434
  return u = d;
1435
1435
  }), u();
@@ -1477,7 +1477,7 @@ function Ma() {
1477
1477
  var r = this._ctx;
1478
1478
  r.algorithm = We(r.algorithm, e);
1479
1479
  }, z.prototype._iterate = function(e, r) {
1480
- return Gt(this._ctx, e, r, this._ctx.table.core);
1480
+ return Kt(this._ctx, e, r, this._ctx.table.core);
1481
1481
  }, z.prototype.clone = function(e) {
1482
1482
  var r = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1483
1483
  return e && te(n, e), r._ctx = n, r;
@@ -1486,7 +1486,7 @@ function Ma() {
1486
1486
  }, z.prototype.each = function(e) {
1487
1487
  var r = this._ctx;
1488
1488
  return this._read(function(n) {
1489
- return Gt(r, e, n, r.table.core);
1489
+ return Kt(r, e, n, r.table.core);
1490
1490
  });
1491
1491
  }, z.prototype.count = function(e) {
1492
1492
  var r = this;
@@ -1496,7 +1496,7 @@ function Ma() {
1496
1496
  return Math.min(u, a.limit);
1497
1497
  });
1498
1498
  var c = 0;
1499
- return Gt(a, function() {
1499
+ return Kt(a, function() {
1500
1500
  return ++c, !1;
1501
1501
  }, n, s).then(function() {
1502
1502
  return c;
@@ -1525,7 +1525,7 @@ function Ma() {
1525
1525
  });
1526
1526
  }
1527
1527
  var u = [];
1528
- return Gt(a, function(d) {
1528
+ return Kt(a, function(d) {
1529
1529
  return u.push(d);
1530
1530
  }, n, a.table.core).then(function() {
1531
1531
  return u;
@@ -1676,7 +1676,7 @@ function Ma() {
1676
1676
  }
1677
1677
  var P = tt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === vr) && { index: n.index, range: n.range };
1678
1678
  return A(0).then(function() {
1679
- if (0 < m.length) throw new At("Error modifying one or more objects", m, E, O);
1679
+ if (0 < m.length) throw new Pt("Error modifying one or more objects", m, E, O);
1680
1680
  return v.length;
1681
1681
  });
1682
1682
  });
@@ -1688,7 +1688,7 @@ function Ma() {
1688
1688
  return e.table.core.count({ trans: n, query: { index: a, range: s } }).then(function(c) {
1689
1689
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: s }).then(function(u) {
1690
1690
  var d = u.failures;
1691
- if (u.lastResult, u.results, u = u.numFailures, u) throw new At("Could not delete some values", Object.keys(d).map(function(p) {
1691
+ if (u.lastResult, u.results, u = u.numFailures, u) throw new Pt("Could not delete some values", Object.keys(d).map(function(p) {
1692
1692
  return d[p];
1693
1693
  }), c - u);
1694
1694
  return c - u;
@@ -1715,7 +1715,7 @@ function Ma() {
1715
1715
  return mn("");
1716
1716
  }).limit(0);
1717
1717
  }
1718
- function Kt(e, r, n, a) {
1718
+ function Lt(e, r, n, a) {
1719
1719
  var s, c, u, d, p, y, w, h = n.length;
1720
1720
  if (!n.every(function(E) {
1721
1721
  return typeof E == "string";
@@ -1808,21 +1808,21 @@ function Ma() {
1808
1808
  }, ae.prototype.startsWith = function(e) {
1809
1809
  return typeof e != "string" ? de(this, on) : this.between(e, e + Ue, !0, !0);
1810
1810
  }, ae.prototype.startsWithIgnoreCase = function(e) {
1811
- return e === "" ? this.startsWith(e) : Kt(this, function(r, n) {
1811
+ return e === "" ? this.startsWith(e) : Lt(this, function(r, n) {
1812
1812
  return r.indexOf(n[0]) === 0;
1813
1813
  }, [e], Ue);
1814
1814
  }, ae.prototype.equalsIgnoreCase = function(e) {
1815
- return Kt(this, function(r, n) {
1815
+ return Lt(this, function(r, n) {
1816
1816
  return r === n[0];
1817
1817
  }, [e], "");
1818
1818
  }, ae.prototype.anyOfIgnoreCase = function() {
1819
1819
  var e = Ee.apply(Ye, arguments);
1820
- return e.length === 0 ? rt(this) : Kt(this, function(r, n) {
1820
+ return e.length === 0 ? rt(this) : Lt(this, function(r, n) {
1821
1821
  return n.indexOf(r) !== -1;
1822
1822
  }, e, "");
1823
1823
  }, ae.prototype.startsWithAnyOfIgnoreCase = function() {
1824
1824
  var e = Ee.apply(Ye, arguments);
1825
- return e.length === 0 ? rt(this) : Kt(this, function(r, n) {
1825
+ return e.length === 0 ? rt(this) : Lt(this, function(r, n) {
1826
1826
  return n.some(function(a) {
1827
1827
  return r.indexOf(a) === 0;
1828
1828
  });
@@ -2084,7 +2084,7 @@ function Ma() {
2084
2084
  if ($) for (var ce = 0; ce < K; ++ce) F.push(k = ie && ie[ce] !== void 0 ? R[A](U[ce], ie[ce]) : R[A](U[ce])), k.onerror = W;
2085
2085
  else for (ce = 0; ce < K; ++ce) F.push(k = R[A](U[ce])), k.onerror = W;
2086
2086
  }
2087
- function Zt(ue) {
2087
+ function qt(ue) {
2088
2088
  ue = ue.target.result, F.forEach(function(Ve, Br) {
2089
2089
  return Ve.error != null && (H[Br] = Ve.error);
2090
2090
  }), T({ numFailures: he, failures: H, results: A === "delete" ? P : F.map(function(Ve) {
@@ -2092,8 +2092,8 @@ function Ma() {
2092
2092
  }), lastResult: ue });
2093
2093
  }
2094
2094
  k.onerror = function(ue) {
2095
- W(ue), Zt(ue);
2096
- }, k.onsuccess = Zt;
2095
+ W(ue), qt(ue);
2096
+ }, k.onsuccess = qt;
2097
2097
  });
2098
2098
  }, getMany: function(O) {
2099
2099
  var v = O.trans, A = O.keys;
@@ -2154,14 +2154,14 @@ function Ma() {
2154
2154
  throw new Error("Cursor behind last entry");
2155
2155
  }, U.stop();
2156
2156
  }
2157
- var Zt = new Promise(function(ue, Ve) {
2157
+ var qt = new Promise(function(ue, Ve) {
2158
2158
  ue = Z(ue), k.onerror = ye(Ve), U.fail = Ve, U.stop = function(Br) {
2159
2159
  U.stop = U.continue = U.continuePrimaryKey = U.advance = he, ue(Br);
2160
2160
  };
2161
2161
  });
2162
2162
  return k.onsuccess = Z(function(ue) {
2163
2163
  k.onsuccess = ce, ce();
2164
- }), U.continue = W, U.continuePrimaryKey = F, U.advance = H, ce(), Zt;
2164
+ }), U.continue = W, U.continuePrimaryKey = F, U.advance = H, ce(), qt;
2165
2165
  }, T(U)) : T(null);
2166
2166
  }, C);
2167
2167
  });
@@ -2201,7 +2201,7 @@ function Ma() {
2201
2201
  return u = u.create, l(l({}, c), u(c));
2202
2202
  }, a)) };
2203
2203
  }
2204
- function Lt(e, a) {
2204
+ function Bt(e, a) {
2205
2205
  var n = a.db, a = ha(e._middlewares, n, e._deps, a);
2206
2206
  e.core = a.dbcore, e.tables.forEach(function(s) {
2207
2207
  var c = s.name;
@@ -2210,7 +2210,7 @@ function Ma() {
2210
2210
  }) && (s.core = e.core.table(c), e[c] instanceof e.Table && (e[c].core = s.core));
2211
2211
  });
2212
2212
  }
2213
- function Bt(e, r, n, a) {
2213
+ function Ut(e, r, n, a) {
2214
2214
  n.forEach(function(s) {
2215
2215
  var c = a[s];
2216
2216
  r.forEach(function(u) {
@@ -2240,15 +2240,15 @@ function Ma() {
2240
2240
  c.create(n), c._completion.catch(a);
2241
2241
  var u = c._reject.bind(c), d = L.transless || L;
2242
2242
  Ne(function() {
2243
- return L.trans = c, L.transless = d, r !== 0 ? (Lt(e, n), y = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2243
+ return L.trans = c, L.transless = d, r !== 0 ? (Bt(e, n), y = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2244
2244
  return w ?? y;
2245
2245
  }) : j.resolve(y)).then(function(w) {
2246
- return _ = w, m = c, E = n, O = [], w = (h = e)._versions, v = h._dbSchema = Wt(0, h.idbdb, E), (w = w.filter(function(A) {
2246
+ return _ = w, m = c, E = n, O = [], w = (h = e)._versions, v = h._dbSchema = Ft(0, h.idbdb, E), (w = w.filter(function(A) {
2247
2247
  return A._cfg.version >= _;
2248
2248
  })).length !== 0 ? (w.forEach(function(A) {
2249
2249
  O.push(function() {
2250
2250
  var P = v, N = A._cfg.dbschema;
2251
- Ft(h, P, E), Ft(h, N, E), v = h._dbSchema = N;
2251
+ Ht(h, P, E), Ht(h, N, E), v = h._dbSchema = N;
2252
2252
  var D = Ar(P, N);
2253
2253
  D.add.forEach(function($) {
2254
2254
  Pr(E, $[0], $[1].primKey, $[1].indexes);
@@ -2256,20 +2256,20 @@ function Ma() {
2256
2256
  if ($.recreate) throw new B.Upgrade("Not yet support for changing primary key");
2257
2257
  var k = E.objectStore($.name);
2258
2258
  $.add.forEach(function(K) {
2259
- return Ut(k, K);
2259
+ return Wt(k, K);
2260
2260
  }), $.change.forEach(function(K) {
2261
- k.deleteIndex(K.name), Ut(k, K);
2261
+ k.deleteIndex(K.name), Wt(k, K);
2262
2262
  }), $.del.forEach(function(K) {
2263
2263
  return k.deleteIndex(K);
2264
2264
  });
2265
2265
  });
2266
2266
  var T = A._cfg.contentUpgrade;
2267
2267
  if (T && A._cfg.version > _) {
2268
- Lt(h, E), m._memoizedTables = {};
2269
- var C = Qr(N);
2268
+ Bt(h, E), m._memoizedTables = {};
2269
+ var C = Xr(N);
2270
2270
  D.del.forEach(function($) {
2271
2271
  C[$] = P[$];
2272
- }), _r(h, [h.Transaction.prototype]), Bt(h, [h.Transaction.prototype], I(C), C), m.schema = C;
2272
+ }), _r(h, [h.Transaction.prototype]), Ut(h, [h.Transaction.prototype], I(C), C), m.schema = C;
2273
2273
  var R, x = ar(T);
2274
2274
  return x && qe(), D = j.follow(function() {
2275
2275
  var $;
@@ -2282,7 +2282,7 @@ function Ma() {
2282
2282
  var N, D, T = A._cfg.dbschema;
2283
2283
  N = T, D = P, [].slice.call(D.db.objectStoreNames).forEach(function(C) {
2284
2284
  return N[C] == null && D.db.deleteObjectStore(C);
2285
- }), _r(h, [h.Transaction.prototype]), Bt(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), m.schema = h._dbSchema;
2285
+ }), _r(h, [h.Transaction.prototype]), Ut(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), m.schema = h._dbSchema;
2286
2286
  }), O.push(function(P) {
2287
2287
  h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(N) {
2288
2288
  return N !== "$meta";
@@ -2296,7 +2296,7 @@ function Ma() {
2296
2296
  var h, _, m, E, O, v;
2297
2297
  }).catch(u)) : (I(s).forEach(function(w) {
2298
2298
  Pr(n, w, s[w].primKey, s[w].indexes);
2299
- }), Lt(e, n), void j.follow(function() {
2299
+ }), Bt(e, n), void j.follow(function() {
2300
2300
  return e.on.populate.fire(c);
2301
2301
  }).catch(u));
2302
2302
  var p, y;
@@ -2304,14 +2304,14 @@ function Ma() {
2304
2304
  }
2305
2305
  function pa(e, r) {
2306
2306
  En(e._dbSchema, r), r.db.version % 10 != 0 || r.objectStoreNames.contains("$meta") || r.db.createObjectStore("$meta").add(Math.ceil(r.db.version / 10 - 1), "version");
2307
- var n = Wt(0, e.idbdb, r);
2308
- Ft(e, e._dbSchema, r);
2307
+ var n = Ft(0, e.idbdb, r);
2308
+ Ht(e, e._dbSchema, r);
2309
2309
  for (var a = 0, s = Ar(n, e._dbSchema).change; a < s.length; a++) {
2310
2310
  var c = function(u) {
2311
2311
  if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
2312
2312
  var d = r.objectStore(u.name);
2313
2313
  u.add.forEach(function(p) {
2314
- me && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(p.src)), Ut(d, p);
2314
+ me && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(p.src)), Wt(d, p);
2315
2315
  });
2316
2316
  }(s[a]);
2317
2317
  if (typeof c == "object") return c.value;
@@ -2341,7 +2341,7 @@ function Ma() {
2341
2341
  function Pr(e, r, n, a) {
2342
2342
  var s = e.db.createObjectStore(r, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2343
2343
  return a.forEach(function(c) {
2344
- return Ut(s, c);
2344
+ return Wt(s, c);
2345
2345
  }), s;
2346
2346
  }
2347
2347
  function En(e, r) {
@@ -2349,12 +2349,12 @@ function Ma() {
2349
2349
  r.db.objectStoreNames.contains(n) || (me && console.debug("Dexie: Creating missing table", n), Pr(r, n, e[n].primKey, e[n].indexes));
2350
2350
  });
2351
2351
  }
2352
- function Ut(e, r) {
2352
+ function Wt(e, r) {
2353
2353
  e.createIndex(r.name, r.keyPath, { unique: r.unique, multiEntry: r.multi });
2354
2354
  }
2355
- function Wt(e, r, n) {
2355
+ function Ft(e, r, n) {
2356
2356
  var a = {};
2357
- return _t(r.objectStoreNames, 0).forEach(function(s) {
2357
+ return At(r.objectStoreNames, 0).forEach(function(s) {
2358
2358
  for (var c = n.objectStore(s), u = wr(bn(y = c.keyPath), y || "", !0, !1, !!c.autoIncrement, y && typeof y != "string", !0), d = [], p = 0; p < c.indexNames.length; ++p) {
2359
2359
  var w = c.index(c.indexNames[p]), y = w.keyPath, w = wr(w.name, y, !!w.unique, !!w.multiEntry, !1, y && typeof y != "string", !1);
2360
2360
  d.push(w);
@@ -2362,12 +2362,12 @@ function Ma() {
2362
2362
  a[s] = Sr(s, u, d);
2363
2363
  }), a;
2364
2364
  }
2365
- function Ft(e, r, n) {
2365
+ function Ht(e, r, n) {
2366
2366
  for (var a = n.db.objectStoreNames, s = 0; s < a.length; ++s) {
2367
2367
  var c = a[s], u = n.objectStore(c);
2368
2368
  e._hasGetAll = "getAll" in u;
2369
2369
  for (var d = 0; d < u.indexNames.length; ++d) {
2370
- var p = u.indexNames[d], y = u.index(p).keyPath, w = typeof y == "string" ? y : "[" + _t(y).join("+") + "]";
2370
+ var p = u.indexNames[d], y = u.index(p).keyPath, w = typeof y == "string" ? y : "[" + At(y).join("+") + "]";
2371
2371
  !r[c] || (y = r[c].idxByName[w]) && (y.name = p, delete r[c].idxByName[w], r[c].idxByName[p] = y);
2372
2372
  }
2373
2373
  }
@@ -2379,7 +2379,7 @@ function Ma() {
2379
2379
  return wr(a, s || null, /\&/.test(r), /\*/.test(r), /\+\+/.test(r), M(s), n === 0);
2380
2380
  });
2381
2381
  }
2382
- var ma = (Ht.prototype._parseStoresSpec = function(e, r) {
2382
+ var ma = (Vt.prototype._parseStoresSpec = function(e, r) {
2383
2383
  I(e).forEach(function(n) {
2384
2384
  if (e[n] !== null) {
2385
2385
  var a = wn(e[n]), s = a.shift();
@@ -2390,21 +2390,21 @@ function Ma() {
2390
2390
  }), r[n] = Sr(n, s, a);
2391
2391
  }
2392
2392
  });
2393
- }, Ht.prototype.stores = function(n) {
2393
+ }, Vt.prototype.stores = function(n) {
2394
2394
  var r = this.db;
2395
2395
  this._cfg.storesSource = this._cfg.storesSource ? te(this._cfg.storesSource, n) : n;
2396
2396
  var n = r._versions, a = {}, s = {};
2397
2397
  return n.forEach(function(c) {
2398
2398
  te(a, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(a, s);
2399
- }), r._dbSchema = s, _r(r, [r._allTables, r, r.Transaction.prototype]), Bt(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2400
- }, Ht.prototype.upgrade = function(e) {
2401
- return this._cfg.contentUpgrade = or(this._cfg.contentUpgrade || Q, e), this;
2402
- }, Ht);
2403
- function Ht() {
2399
+ }), r._dbSchema = s, _r(r, [r._allTables, r, r.Transaction.prototype]), Ut(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2400
+ }, Vt.prototype.upgrade = function(e) {
2401
+ return this._cfg.contentUpgrade = or(this._cfg.contentUpgrade || X, e), this;
2402
+ }, Vt);
2403
+ function Vt() {
2404
2404
  }
2405
2405
  function Nr(e, r) {
2406
2406
  var n = e._dbNamesDB;
2407
- return n || (n = e._dbNamesDB = new Se($t, { addons: [], indexedDB: e, IDBKeyRange: r })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2407
+ return n || (n = e._dbNamesDB = new Se(jt, { addons: [], indexedDB: e, IDBKeyRange: r })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2408
2408
  }
2409
2409
  function Dr(e) {
2410
2410
  return e && typeof e.databases == "function";
@@ -2442,15 +2442,15 @@ function Ma() {
2442
2442
  }(e, r);
2443
2443
  }
2444
2444
  function Sn(e, r) {
2445
- var n = Vt(r), a = n.next();
2445
+ var n = zt(r), a = n.next();
2446
2446
  if (a.done) return !1;
2447
- for (var s = a.value, c = Vt(e), u = c.next(s.from), d = u.value; !a.done && !u.done; ) {
2447
+ for (var s = a.value, c = zt(e), u = c.next(s.from), d = u.value; !a.done && !u.done; ) {
2448
2448
  if (V(d.from, s.to) <= 0 && 0 <= V(d.to, s.from)) return !0;
2449
2449
  V(s.from, d.from) < 0 ? s = (a = n.next(d.from)).value : d = (u = c.next(s.from)).value;
2450
2450
  }
2451
2451
  return !1;
2452
2452
  }
2453
- function Vt(e) {
2453
+ function zt(e) {
2454
2454
  var r = Tr(e) ? null : { s: 0, n: e };
2455
2455
  return { next: function(n) {
2456
2456
  for (var a = 0 < arguments.length; r; ) switch (r.s) {
@@ -2478,7 +2478,7 @@ function Ma() {
2478
2478
  var r = n.r, n = n.l;
2479
2479
  return (r ? n ? Math.max(r.d, n.d) : r.d : n ? n.d : 0) + 1;
2480
2480
  }
2481
- function zt(e, r) {
2481
+ function Yt(e, r) {
2482
2482
  return I(r).forEach(function(n) {
2483
2483
  e[n] ? Et(e[n], r[n]) : e[n] = function a(s) {
2484
2484
  var c, u, d = {};
@@ -2502,14 +2502,14 @@ function Ma() {
2502
2502
  return vt(r, n, n);
2503
2503
  }), this;
2504
2504
  }, hasKey: function(e) {
2505
- var r = Vt(this).next(e).value;
2505
+ var r = zt(this).next(e).value;
2506
2506
  return r && V(r.from, e) <= 0 && 0 <= V(r.to, e);
2507
2507
  } })[nr] = function() {
2508
- return Vt(this);
2508
+ return zt(this);
2509
2509
  }, fe));
2510
2510
  var Fe = {}, xr = {}, kr = !1;
2511
- function Yt(e) {
2512
- zt(xr, e), kr || (kr = !0, setTimeout(function() {
2511
+ function Xt(e) {
2512
+ Yt(xr, e), kr || (kr = !0, setTimeout(function() {
2513
2513
  kr = !1, Cr(xr, !(xr = {}));
2514
2514
  }, 0));
2515
2515
  }
@@ -2562,21 +2562,21 @@ function Ma() {
2562
2562
  })) : (w.onerror = ye(m), v = v.oldVersion > Math.pow(2, 62) ? 0 : v.oldVersion, h = v < 1, e.idbdb = O.result, c && pa(e, w), ga(e, v / 10, w, m));
2563
2563
  }, m), O.onsuccess = Z(function() {
2564
2564
  w = null;
2565
- var v, A, P, N, D, T = e.idbdb = O.result, C = _t(T.objectStoreNames);
2565
+ var v, A, P, N, D, T = e.idbdb = O.result, C = At(T.objectStoreNames);
2566
2566
  if (0 < C.length) try {
2567
2567
  var R = T.transaction((N = C).length === 1 ? N[0] : N, "readonly");
2568
- if (r.autoSchema) A = T, P = R, (v = e).verno = A.version / 10, P = v._dbSchema = Wt(0, A, P), v._storeNames = _t(A.objectStoreNames, 0), Bt(v, [v._allTables], I(P), P);
2569
- else if (Ft(e, e._dbSchema, R), ((D = Ar(Wt(0, (D = e).idbdb, R), D._dbSchema)).add.length || D.change.some(function(x) {
2568
+ if (r.autoSchema) A = T, P = R, (v = e).verno = A.version / 10, P = v._dbSchema = Ft(0, A, P), v._storeNames = At(A.objectStoreNames, 0), Ut(v, [v._allTables], I(P), P);
2569
+ else if (Ht(e, e._dbSchema, R), ((D = Ar(Ft(0, (D = e).idbdb, R), D._dbSchema)).add.length || D.change.some(function(x) {
2570
2570
  return x.add.length || x.change.length;
2571
2571
  })) && !c) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), T.close(), s = T.version + 1, c = !0, _(d());
2572
- Lt(e, R);
2572
+ Bt(e, R);
2573
2573
  } catch {
2574
2574
  }
2575
2575
  et.push(e), T.onversionchange = Z(function(x) {
2576
2576
  r.vcFired = !0, e.on("versionchange").fire(x);
2577
2577
  }), T.onclose = Z(function(x) {
2578
2578
  e.on("close").fire(x);
2579
- }), h && (D = e._deps, R = E, T = D.indexedDB, D = D.IDBKeyRange, Dr(T) || R === $t || Nr(T, D).put({ name: R }).catch(Q)), _();
2579
+ }), h && (D = e._deps, R = E, T = D.indexedDB, D = D.IDBKeyRange, Dr(T) || R === jt || Nr(T, D).put({ name: R }).catch(X)), _();
2580
2580
  }, m);
2581
2581
  }).catch(function(_) {
2582
2582
  switch (_?.name) {
@@ -2602,7 +2602,7 @@ function Ma() {
2602
2602
  return e.on.ready.fire(e.vip);
2603
2603
  })).then(function _() {
2604
2604
  if (0 < r.onReadyBeingFired.length) {
2605
- var m = r.onReadyBeingFired.reduce(or, Q);
2605
+ var m = r.onReadyBeingFired.reduce(or, X);
2606
2606
  return r.onReadyBeingFired = [], j.resolve(Ir(function() {
2607
2607
  return m(e.vip);
2608
2608
  })).then(_);
@@ -2701,7 +2701,7 @@ function Ma() {
2701
2701
  re(e, s) || (n[a + s] = r[s]);
2702
2702
  }), n;
2703
2703
  }
2704
- function Mr(e, r) {
2704
+ function Gr(e, r) {
2705
2705
  return r.type === "delete" ? r.keys : r.keys || r.values.map(e.extractKey);
2706
2706
  }
2707
2707
  var va = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
@@ -2711,22 +2711,22 @@ function Ma() {
2711
2711
  var c = L.trans, u = c.table(r).hook, d = u.deleting, p = u.creating, y = u.updating;
2712
2712
  switch (s.type) {
2713
2713
  case "add":
2714
- if (p.fire === Q) break;
2714
+ if (p.fire === X) break;
2715
2715
  return c._promise("readwrite", function() {
2716
2716
  return w(s);
2717
2717
  }, !0);
2718
2718
  case "put":
2719
- if (p.fire === Q && y.fire === Q) break;
2719
+ if (p.fire === X && y.fire === X) break;
2720
2720
  return c._promise("readwrite", function() {
2721
2721
  return w(s);
2722
2722
  }, !0);
2723
2723
  case "delete":
2724
- if (d.fire === Q) break;
2724
+ if (d.fire === X) break;
2725
2725
  return c._promise("readwrite", function() {
2726
2726
  return w(s);
2727
2727
  }, !0);
2728
2728
  case "deleteRange":
2729
- if (d.fire === Q) break;
2729
+ if (d.fire === X) break;
2730
2730
  return c._promise("readwrite", function() {
2731
2731
  return function h(_, m, E) {
2732
2732
  return n.query({ trans: _, values: !1, query: { index: a, range: m }, limit: E }).then(function(O) {
@@ -2740,7 +2740,7 @@ function Ma() {
2740
2740
  }
2741
2741
  return n.mutate(s);
2742
2742
  function w(h) {
2743
- var _, m, E, O = L.trans, v = h.keys || Mr(a, h);
2743
+ var _, m, E, O = L.trans, v = h.keys || Gr(a, h);
2744
2744
  if (!v) throw new Error("Keys missing");
2745
2745
  return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: v }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), _ = n, E = v, ((m = h).type === "add" ? Promise.resolve([]) : _.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2746
2746
  var P = v.map(function(N, D) {
@@ -2814,7 +2814,7 @@ function Ma() {
2814
2814
  function E(k) {
2815
2815
  return k = "idb://".concat(r, "/").concat(a, "/").concat(k), N[k] || (N[k] = new oe());
2816
2816
  }
2817
- var O, v, A, P = m.trans, N = m.mutatedParts || (m.mutatedParts = {}), D = E(""), T = E(":dels"), C = m.type, $ = m.type === "deleteRange" ? [m.range] : m.type === "delete" ? [m.keys] : m.values.length < 50 ? [Mr(u, m).filter(function(k) {
2817
+ var O, v, A, P = m.trans, N = m.mutatedParts || (m.mutatedParts = {}), D = E(""), T = E(":dels"), C = m.type, $ = m.type === "deleteRange" ? [m.range] : m.type === "delete" ? [m.keys] : m.values.length < 50 ? [Gr(u, m).filter(function(k) {
2818
2818
  return k;
2819
2819
  }), m.values] : [], R = $[0], x = $[1], $ = m.trans._cache;
2820
2820
  return M(R) ? (D.addKeys(R), ($ = C === "delete" || R.length === x.length ? Pn(R, $) : null) || T.addKeys(R), ($ || x) && (O = E, v = $, A = x, c.indexes.forEach(function(k) {
@@ -2841,7 +2841,7 @@ function Ma() {
2841
2841
  return U === u.keyPath;
2842
2842
  }), H = 0, he = k.results.length; H < he; ++H) W[H][F] = k.results[H];
2843
2843
  E(K.name).addKeys(W);
2844
- })), P.mutatedParts = zt(P.mutatedParts || {}, N), k;
2844
+ })), P.mutatedParts = Yt(P.mutatedParts || {}, N), k;
2845
2845
  });
2846
2846
  } }), h = function(E) {
2847
2847
  var O = E.query, E = O.index, O = O.range;
@@ -2900,7 +2900,7 @@ function Ma() {
2900
2900
  return !(c in n.failures);
2901
2901
  })), r);
2902
2902
  }
2903
- function Gr(e, r) {
2903
+ function Mr(e, r) {
2904
2904
  return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < V(n, a.lower) : 0 <= V(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? V(e, r.upper) < 0 : V(e, r.upper) <= 0));
2905
2905
  var n, a;
2906
2906
  }
@@ -2911,8 +2911,8 @@ function Ma() {
2911
2911
  if (E.type === "add" || E.type === "put") for (var A = new oe(), P = E.values.length - 1; 0 <= P; --P) {
2912
2912
  var N, D = E.values[P], T = y(D);
2913
2913
  A.hasKey(T) || (N = w(D), (d && M(N) ? N.some(function(k) {
2914
- return Gr(k, p);
2915
- }) : Gr(N, p)) && (A.addKey(T), v.push(D)));
2914
+ return Mr(k, p);
2915
+ }) : Mr(N, p)) && (A.addKey(T), v.push(D)));
2916
2916
  }
2917
2917
  switch (E.type) {
2918
2918
  case "add":
@@ -2945,7 +2945,7 @@ function Ma() {
2945
2945
  case "deleteRange":
2946
2946
  var $ = E.range;
2947
2947
  O = m.filter(function(K) {
2948
- return !Gr(y(K), $);
2948
+ return !Mr(y(K), $);
2949
2949
  });
2950
2950
  }
2951
2951
  return O;
@@ -3026,19 +3026,19 @@ function Ma() {
3026
3026
  var u = L.trans;
3027
3027
  if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(c);
3028
3028
  var d = Fe["idb://".concat(r, "/").concat(n)];
3029
- return d ? (u = a.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || Mr(s, c).some(function(p) {
3029
+ return d ? (u = a.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || Gr(s, c).some(function(p) {
3030
3030
  return p == null;
3031
- })) ? (d.optimisticOps.push(c), c.mutatedParts && Yt(c.mutatedParts), u.then(function(p) {
3032
- 0 < p.numFailures && ($e(d.optimisticOps, c), (p = In(0, c, p)) && d.optimisticOps.push(p), c.mutatedParts && Yt(c.mutatedParts));
3031
+ })) ? (d.optimisticOps.push(c), c.mutatedParts && Xt(c.mutatedParts), u.then(function(p) {
3032
+ 0 < p.numFailures && ($e(d.optimisticOps, c), (p = In(0, c, p)) && d.optimisticOps.push(p), c.mutatedParts && Xt(c.mutatedParts));
3033
3033
  }), u.catch(function() {
3034
- $e(d.optimisticOps, c), c.mutatedParts && Yt(c.mutatedParts);
3034
+ $e(d.optimisticOps, c), c.mutatedParts && Xt(c.mutatedParts);
3035
3035
  })) : u.then(function(p) {
3036
3036
  var y = In(0, l(l({}, c), { values: c.values.map(function(w, h) {
3037
3037
  var _;
3038
3038
  return p.failures[h] ? w : (w = (_ = s.keyPath) !== null && _ !== void 0 && _.includes(".") ? Ce(w) : l({}, w), le(w, s.keyPath, p.results[h]), w);
3039
3039
  }) }), p);
3040
3040
  d.optimisticOps.push(y), queueMicrotask(function() {
3041
- return c.mutatedParts && Yt(c.mutatedParts);
3041
+ return c.mutatedParts && Xt(c.mutatedParts);
3042
3042
  });
3043
3043
  }), u) : a.mutate(c);
3044
3044
  }, query: function(c) {
@@ -3078,7 +3078,7 @@ function Ma() {
3078
3078
  } });
3079
3079
  } });
3080
3080
  } };
3081
- function Xt(e, r) {
3081
+ function Jt(e, r) {
3082
3082
  return new Proxy(e, { get: function(n, a, s) {
3083
3083
  return a === "db" ? r : Reflect.get(n, a, s);
3084
3084
  } });
@@ -3097,7 +3097,7 @@ function Ma() {
3097
3097
  if (r._state.openComplete) return a(new B.DatabaseClosed(r._state.dbOpenError));
3098
3098
  if (!r._state.isBeingOpened) {
3099
3099
  if (!r._state.autoOpen) return void a(new B.DatabaseClosed());
3100
- r.open().catch(Q);
3100
+ r.open().catch(X);
3101
3101
  }
3102
3102
  r._state.dbReadyPromise.then(n, a);
3103
3103
  }).then(e);
@@ -3143,7 +3143,7 @@ function Ma() {
3143
3143
  var d = r._deps.indexedDB.deleteDatabase(r.name);
3144
3144
  d.onsuccess = Z(function() {
3145
3145
  var p, y, w;
3146
- p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Dr(w) || y === $t || Nr(w, p).delete(y).catch(Q), s();
3146
+ p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Dr(w) || y === jt || Nr(w, p).delete(y).catch(X), s();
3147
3147
  }), d.onerror = ye(c), d.onblocked = r._fireOnBlocked;
3148
3148
  }
3149
3149
  if (n) throw new B.InvalidArgument("Invalid closeOptions argument to db.delete()");
@@ -3170,7 +3170,7 @@ function Ma() {
3170
3170
  var s = arguments.length;
3171
3171
  if (s < 2) throw new B.InvalidArgument("Too few arguments");
3172
3172
  for (var c = new Array(s - 1); --s; ) c[s - 1] = arguments[s];
3173
- return a = c.pop(), [r, Xr(c), a];
3173
+ return a = c.pop(), [r, Qr(c), a];
3174
3174
  }.apply(this, arguments);
3175
3175
  return this._transaction.apply(this, e);
3176
3176
  }, ee.prototype._transaction = function(e, r, n) {
@@ -3244,12 +3244,12 @@ function Ma() {
3244
3244
  this._middlewares = {}, this.verno = 0;
3245
3245
  var a = ee.dependencies;
3246
3246
  this._options = r = l({ addons: ee.addons, autoOpen: !0, indexedDB: a.indexedDB, IDBKeyRange: a.IDBKeyRange, cache: "cloned" }, r), this._deps = { indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange }, a = r.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
3247
- var s, c, u, d, p, y = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Q, dbReadyPromise: null, cancelOpen: Q, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3247
+ var s, c, u, d, p, y = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: X, dbReadyPromise: null, cancelOpen: X, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: r.autoOpen };
3248
3248
  y.dbReadyPromise = new j(function(h) {
3249
3249
  y.dbReadyResolve = h;
3250
3250
  }), y.openCanceller = new j(function(h, _) {
3251
3251
  y.cancelOpen = _;
3252
- }), this._state = y, this.name = e, this.on = ht(this, "populate", "blocked", "versionchange", "close", { ready: [or, Q] }), this.on.ready.subscribe = zr(this.on.ready.subscribe, function(h) {
3252
+ }), this._state = y, this.name = e, this.on = ht(this, "populate", "blocked", "versionchange", "close", { ready: [or, X] }), this.on.ready.subscribe = zr(this.on.ready.subscribe, function(h) {
3253
3253
  return function(_, m) {
3254
3254
  ee.vip(function() {
3255
3255
  var E, O = n._state;
@@ -3269,7 +3269,7 @@ function Ma() {
3269
3269
  var O = A._ctx, v = O.table, A = v.hook.reading.fire;
3270
3270
  this._ctx = { table: v, index: O.index, isPrimKey: !O.index || v.schema.primKey.keyPath && O.index === v.schema.primKey.name, range: m, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: E, or: O.or, valueMapper: A !== it ? A : null };
3271
3271
  })), this.Table = (c = this, ft(hn.prototype, function(h, _, m) {
3272
- this.db = c, this._tx = m, this.name = h, this.schema = _, this.hook = c._allTables[h] ? c._allTables[h].hook : ht(null, { creating: [Jn, Q], reading: [Xn, it], updating: [qn, Q], deleting: [Zn, Q] });
3272
+ this.db = c, this._tx = m, this.name = h, this.schema = _, this.hook = c._allTables[h] ? c._allTables[h].hook : ht(null, { creating: [Jn, X], reading: [Qn, it], updating: [qn, X], deleting: [Zn, X] });
3273
3273
  })), this.Transaction = (u = this, ft(ua.prototype, function(h, _, m, E, O) {
3274
3274
  var v = this;
3275
3275
  this.db = u, this.mode = h, this.storeNames = _, this.schema = m, this.chromeTransactionDurability = E, this.idbtrans = null, this.on = ht(this, "complete", "error", "abort"), this.parent = O || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new j(function(A, P) {
@@ -3306,20 +3306,20 @@ function Ma() {
3306
3306
  var w = new Proxy(this, { get: function(h, _, m) {
3307
3307
  if (_ === "_vip") return !0;
3308
3308
  if (_ === "table") return function(O) {
3309
- return Xt(n.table(O), w);
3309
+ return Jt(n.table(O), w);
3310
3310
  };
3311
3311
  var E = Reflect.get(h, _, m);
3312
- return E instanceof hn ? Xt(E, w) : _ === "tables" ? E.map(function(O) {
3313
- return Xt(O, w);
3312
+ return E instanceof hn ? Jt(E, w) : _ === "tables" ? E.map(function(O) {
3313
+ return Jt(O, w);
3314
3314
  }) : _ === "_createTransaction" ? function() {
3315
- return Xt(E.apply(this, arguments), w);
3315
+ return Jt(E.apply(this, arguments), w);
3316
3316
  } : E;
3317
3317
  } });
3318
3318
  this.vip = w, a.forEach(function(h) {
3319
3319
  return h(n);
3320
3320
  });
3321
3321
  }
3322
- var Jt, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Aa = (Kr.prototype.subscribe = function(e, r, n) {
3322
+ var Zt, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Aa = (Kr.prototype.subscribe = function(e, r, n) {
3323
3323
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: r, complete: n });
3324
3324
  }, Kr.prototype[fe] = function() {
3325
3325
  return this;
@@ -3328,9 +3328,9 @@ function Ma() {
3328
3328
  this._subscribe = e;
3329
3329
  }
3330
3330
  try {
3331
- Jt = { indexedDB: b.indexedDB || b.mozIndexedDB || b.webkitIndexedDB || b.msIndexedDB, IDBKeyRange: b.IDBKeyRange || b.webkitIDBKeyRange };
3331
+ Zt = { indexedDB: b.indexedDB || b.mozIndexedDB || b.webkitIndexedDB || b.msIndexedDB, IDBKeyRange: b.IDBKeyRange || b.webkitIDBKeyRange };
3332
3332
  } catch {
3333
- Jt = { indexedDB: null, IDBKeyRange: null };
3333
+ Zt = { indexedDB: null, IDBKeyRange: null };
3334
3334
  }
3335
3335
  function xn(e) {
3336
3336
  var r, n = !1, a = new Aa(function(s) {
@@ -3343,10 +3343,10 @@ function Ma() {
3343
3343
  var h = !1, _ = function() {
3344
3344
  return gr(E);
3345
3345
  }, m = function(O) {
3346
- zt(p, O), Rr(y, p) && _();
3346
+ Yt(p, O), Rr(y, p) && _();
3347
3347
  }, E = function() {
3348
3348
  var O, v, A;
3349
- !d && Jt.indexedDB && (p = {}, O = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3349
+ !d && Zt.indexedDB && (p = {}, O = {}, u && u.abort(), u = new AbortController(), A = function(P) {
3350
3350
  var N = Je();
3351
3351
  try {
3352
3352
  c && qe();
@@ -3385,7 +3385,7 @@ function Ma() {
3385
3385
  xe = r;
3386
3386
  }
3387
3387
  }
3388
- ge(He, l(l({}, Pt), { delete: function(e) {
3388
+ ge(He, l(l({}, Nt), { delete: function(e) {
3389
3389
  return new He(e, { addons: [] }).delete();
3390
3390
  }, exists: function(e) {
3391
3391
  return new He(e, { addons: [] }).open().then(function(r) {
@@ -3399,7 +3399,7 @@ function Ma() {
3399
3399
  return a.map(function(s) {
3400
3400
  return s.name;
3401
3401
  }).filter(function(s) {
3402
- return s !== $t;
3402
+ return s !== jt;
3403
3403
  });
3404
3404
  }) : Nr(n, r).toCollection().primaryKeys()).then(e);
3405
3405
  } catch {
@@ -3436,11 +3436,11 @@ function Ma() {
3436
3436
  return me;
3437
3437
  }, set: function(e) {
3438
3438
  en(e);
3439
- } }, derive: ze, extend: te, props: ge, override: zr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: zt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3439
+ } }, derive: ze, extend: te, props: ge, override: zr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: Yt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3440
3440
  typeof r == "string" ? le(e, r, void 0) : "length" in r && [].map.call(r, function(n) {
3441
3441
  le(e, n, void 0);
3442
3442
  });
3443
- }, shallowClone: Qr, deepClone: Ce, getObjectDiff: jr, cmp: V, asap: Yr, minKey: -1 / 0, addons: [], connections: et, errnames: sr, dependencies: Jt, cache: Fe, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3443
+ }, shallowClone: Xr, deepClone: Ce, getObjectDiff: jr, cmp: V, asap: Yr, minKey: -1 / 0, addons: [], connections: et, errnames: sr, dependencies: Zt, cache: Fe, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3444
3444
  return parseInt(e);
3445
3445
  }).reduce(function(e, r, n) {
3446
3446
  return e + r / Math.pow(10, 2 * n);
@@ -3465,7 +3465,7 @@ function Ma() {
3465
3465
  }), addEventListener("pageshow", function(e) {
3466
3466
  !Se.disableBfCache && e.persisted && (me && console.debug("Dexie: handling persisted pageshow"), kn(), Lr({ all: new oe(-1 / 0, [[]]) }));
3467
3467
  })), j.rejectionMapper = function(e, r) {
3468
- return !e || e instanceof Qe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !qr[e.name] ? e : (r = new qr[e.name](r || e.message, e), "stack" in e && Ae(r, "stack", { get: function() {
3468
+ return !e || e instanceof Xe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !qr[e.name] ? e : (r = new qr[e.name](r || e.message, e), "stack" in e && Ae(r, "stack", { get: function() {
3469
3469
  return this.inner.stack;
3470
3470
  } }), r);
3471
3471
  }, en(me), l(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: xn, Entity: un, cmp: V, PropModification: gt, replacePrefix: function(e, r) {
@@ -3476,12 +3476,12 @@ function Ma() {
3476
3476
  return new gt({ remove: e });
3477
3477
  }, default: Se, RangeSet: oe, mergeRanges: Et, rangesOverlap: Sn }), { default: Se }), Se;
3478
3478
  });
3479
- }(er)), er.exports;
3479
+ }(tr)), tr.exports;
3480
3480
  }
3481
- var Ga = Ma();
3482
- const Fr = /* @__PURE__ */ $a(Ga), $n = Symbol.for("Dexie"), wt = globalThis[$n] || (globalThis[$n] = Fr);
3483
- if (Fr.semVer !== wt.semVer)
3484
- throw new Error(`Two different versions of Dexie loaded in the same app: ${Fr.semVer} and ${wt.semVer}`);
3481
+ var Ma = Ga();
3482
+ const Fr = /* @__PURE__ */ $a(Ma), $n = Symbol.for("Dexie"), St = globalThis[$n] || (globalThis[$n] = Fr);
3483
+ if (Fr.semVer !== St.semVer)
3484
+ throw new Error(`Two different versions of Dexie loaded in the same app: ${Fr.semVer} and ${St.semVer}`);
3485
3485
  const {
3486
3486
  liveQuery: Ba,
3487
3487
  mergeRanges: Ua,
@@ -3491,15 +3491,15 @@ const {
3491
3491
  Entity: Va,
3492
3492
  PropModification: za,
3493
3493
  replacePrefix: Ya,
3494
- add: Qa,
3495
- remove: Xa
3496
- } = wt;
3497
- class Mn {
3494
+ add: Xa,
3495
+ remove: Qa
3496
+ } = St;
3497
+ class Gn {
3498
3498
  db;
3499
3499
  subscribers = [];
3500
3500
  options;
3501
3501
  constructor(t) {
3502
- this.options = t, this.db = new wt(t.app), this.db.version(14).stores({
3502
+ this.options = t, this.db = new St(t.app), this.db.version(14).stores({
3503
3503
  cards: "id,dashboard_id,hash",
3504
3504
  channel: "id,slide_index",
3505
3505
  cloud: "id,dashboard_id,hash",
@@ -3639,7 +3639,7 @@ class Mn {
3639
3639
  ]), 400))) : 400;
3640
3640
  getDashboard = async (t) => {
3641
3641
  const i = await this.db.table(S.DASHBOARD).where({ id: t.id }).last().catch(() => {
3642
- G(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t.id]);
3642
+ G(2, ["%cstorage", o.STORAGE, Q.DASHBOARD_LOAD, t.id]);
3643
3643
  });
3644
3644
  return i === void 0 ? {
3645
3645
  data: null,
@@ -3649,7 +3649,7 @@ class Mn {
3649
3649
  };
3650
3650
  getDashboards = async (t) => {
3651
3651
  const i = (b) => t?.id === b.id, l = (b) => t?.name ? b.name.includes(t?.name) : !1, g = await this.db.table(S.DASHBOARD).toArray().then((b) => t?.id ? b.filter(i) : b).then((b) => t?.name ? b.filter(l) : b).catch(() => {
3652
- G(2, ["%cstorage", o.STORAGE, X.DASHBOARD_LOAD, t]);
3652
+ G(2, ["%cstorage", o.STORAGE, Q.DASHBOARD_LOAD, t]);
3653
3653
  });
3654
3654
  return g !== void 0 && G(3, [
3655
3655
  "%cstorage%c %cdashboards",
@@ -3742,7 +3742,7 @@ class Mn {
3742
3742
  query: t
3743
3743
  };
3744
3744
  const te = M.map((se) => this.db.table(S.MESSAGES).get({ id: se.message_id }));
3745
- return wt.Promise.all(te).then(async (se) => {
3745
+ return St.Promise.all(te).then(async (se) => {
3746
3746
  const re = {
3747
3747
  data: {
3748
3748
  messages: se.map((ge) => {
@@ -3860,8 +3860,8 @@ class Mn {
3860
3860
  M.message
3861
3861
  ]);
3862
3862
  }), await i.data.topics.forEach(async (M) => {
3863
- const te = M.message_id, se = M.visible ? 1 : 0, Ot = M.approve ? 1 : 0, re = M.title;
3864
- await this.db.table(S.TOPICS).where("message_id").equals(te).modify({ visible: se, approve: Ot }).catch((ge) => {
3863
+ const te = M.message_id, se = M.visible ? 1 : 0, _t = M.approve ? 1 : 0, re = M.title;
3864
+ await this.db.table(S.TOPICS).where("message_id").equals(te).modify({ visible: se, approve: _t }).catch((ge) => {
3865
3865
  g++, G(4, [
3866
3866
  "%cset%c %cstorage",
3867
3867
  o.KO,
@@ -3976,7 +3976,7 @@ class Mn {
3976
3976
  query: t
3977
3977
  };
3978
3978
  const i = await this.db.table(S.WIDGET).where({ id: t.id }).last().catch(() => {
3979
- console.warn("%cstorage", o.STORAGE, X.WIDGET_LOAD, t.id);
3979
+ console.warn("%cstorage", o.STORAGE, Q.WIDGET_LOAD, t.id);
3980
3980
  });
3981
3981
  return i === void 0 ? {
3982
3982
  data: null,
@@ -3991,7 +3991,7 @@ class Mn {
3991
3991
  */
3992
3992
  getWidgets = async (t) => {
3993
3993
  const i = (I) => t?.dashboard === I.dashboard_id, l = (I) => t?.type === I.type, g = (I) => t?.name ? I.name.includes(t?.name) : !1, b = await this.db.table(S.WIDGET).toArray().then((I) => t?.dashboard ? I.filter(i) : I).then((I) => t?.type ? I.filter(l) : I).then((I) => t?.name ? I.filter(g) : I).catch(() => {
3994
- G(2, ["%cstorage", o.STORAGE, X.WIDGET_LOAD, t]);
3994
+ G(2, ["%cstorage", o.STORAGE, Q.WIDGET_LOAD, t]);
3995
3995
  });
3996
3996
  return b !== void 0 && G(3, [
3997
3997
  "%cstorage%c %cwidgets",
@@ -4039,7 +4039,7 @@ class Mn {
4039
4039
  */
4040
4040
  subscribe = (t) => (t = Ra(t), this.subscribers.filter(
4041
4041
  (l) => l.widget === t.widget
4042
- ).length > 0 || (t.type === S.MESSAGES && (t = St(this.options, t)), console.info(
4042
+ ).length > 0 || (t.type === S.MESSAGES && (t = Ot(this.options, t)), console.info(
4043
4043
  "%cstorage%c %csubscribe",
4044
4044
  o.STORAGE,
4045
4045
  o.NONE,
@@ -4065,7 +4065,7 @@ class Mn {
4065
4065
  */
4066
4066
  getSlide = async (t) => {
4067
4067
  const i = await this.db.table(S.SLIDE).where({ id: t.id }).last().catch(() => {
4068
- G(2, ["%cstorage", o.STORAGE, X.SLIDE_LOAD, t.id]);
4068
+ G(2, ["%cstorage", o.STORAGE, Q.SLIDE_LOAD, t.id]);
4069
4069
  });
4070
4070
  return {
4071
4071
  data: i,
@@ -4099,7 +4099,7 @@ class Mn {
4099
4099
  id: t.data.id,
4100
4100
  presentation_id: t.data.presentation_id,
4101
4101
  order_index: t.data.order_index,
4102
- name: t.data.name || "Not set",
4102
+ name: t.data.name.replace("-copy", "") || "Not set",
4103
4103
  json: t.data.json || {},
4104
4104
  html: t.data.html || "",
4105
4105
  update: t.data.update
@@ -4110,7 +4110,7 @@ class Mn {
4110
4110
  })).catch((i) => (console.error(
4111
4111
  "%cstorage",
4112
4112
  o.STORAGE,
4113
- X.SLIDE_STORE,
4113
+ Q.SLIDE_STORE,
4114
4114
  t,
4115
4115
  i.message
4116
4116
  ), {
@@ -4128,7 +4128,7 @@ class Mn {
4128
4128
  console.warn(
4129
4129
  "%cstorage ",
4130
4130
  o.STORAGE,
4131
- X.PRESENTATION_LOAD,
4131
+ Q.PRESENTATION_LOAD,
4132
4132
  t.id
4133
4133
  );
4134
4134
  });
@@ -4176,7 +4176,7 @@ class Mn {
4176
4176
  })).catch((i) => (console.error(
4177
4177
  "%cstorage",
4178
4178
  o.STORAGE,
4179
- X.PRESENTATION_STORE,
4179
+ Q.PRESENTATION_STORE,
4180
4180
  t,
4181
4181
  i.message
4182
4182
  ), {
@@ -4195,7 +4195,7 @@ class Mn {
4195
4195
  G(2, [
4196
4196
  "%cstorage",
4197
4197
  o.STORAGE,
4198
- X.PREFERENCE_LOAD,
4198
+ Q.PREFERENCE_LOAD,
4199
4199
  t.id
4200
4200
  ]);
4201
4201
  });
@@ -4244,7 +4244,7 @@ class Mn {
4244
4244
  })).catch((i) => (console.error(
4245
4245
  "%cstorage",
4246
4246
  o.STORAGE,
4247
- X.PREFERENCE_STORE,
4247
+ Q.PREFERENCE_STORE,
4248
4248
  t,
4249
4249
  i.message
4250
4250
  ), {
@@ -4291,7 +4291,7 @@ class Mn {
4291
4291
  })).catch((i) => (console.error(
4292
4292
  "%cstorage",
4293
4293
  o.STORAGE,
4294
- X.IMAGE_SET,
4294
+ Q.IMAGE_SET,
4295
4295
  t,
4296
4296
  i.message
4297
4297
  ), {
@@ -4319,13 +4319,13 @@ function Ka(f, t) {
4319
4319
  return (g, b) => l().then((I) => b(I.transaction(t, g).objectStore(t)));
4320
4320
  }
4321
4321
  let Wr;
4322
- function Gn() {
4322
+ function Mn() {
4323
4323
  return Wr || (Wr = Ka("keyval-store", "keyval")), Wr;
4324
4324
  }
4325
- function _e(f, t = Gn()) {
4325
+ function _e(f, t = Mn()) {
4326
4326
  return t("readonly", (i) => Hr(i.get(f)));
4327
4327
  }
4328
- function ke(f, t, i = Gn()) {
4328
+ function ke(f, t, i = Mn()) {
4329
4329
  return i("readwrite", (l) => (l.put(t, f), Hr(l.transaction)));
4330
4330
  }
4331
4331
  class Kn {
@@ -4494,7 +4494,7 @@ class Kn {
4494
4494
  * @param query IQuery
4495
4495
  * @returns null
4496
4496
  */
4497
- subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4497
+ subscribe = (t) => (t.type === S.MESSAGES && (t = Ot(this.options, t)), this.subscribers.filter(
4498
4498
  (l) => l.widget === t.widget
4499
4499
  ).length > 0 || (console.debug(
4500
4500
  "%cstorage%c %csubscribe",
@@ -4803,7 +4803,7 @@ class Ln {
4803
4803
  * @param query IQuery
4804
4804
  * @returns null
4805
4805
  */
4806
- subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
4806
+ subscribe = (t) => (t.type === S.MESSAGES && (t = Ot(this.options, t)), this.subscribers.filter(
4807
4807
  (l) => l.widget === t.widget
4808
4808
  ).length || (console.debug(
4809
4809
  "%cstorage%c %csubscribe",
@@ -5141,7 +5141,7 @@ class Bn {
5141
5141
  * @param query IQuery
5142
5142
  * @returns null
5143
5143
  */
5144
- subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5144
+ subscribe = (t) => (t.type === S.MESSAGES && (t = Ot(this.options, t)), this.subscribers.filter(
5145
5145
  (l) => l.widget === t.widget
5146
5146
  ).length || (console.debug(
5147
5147
  "%cstorage%c %csubscribe",
@@ -5479,7 +5479,7 @@ class Un {
5479
5479
  * @param query IQuery
5480
5480
  * @returns null
5481
5481
  */
5482
- subscribe = (t) => (t.type === S.MESSAGES && (t = St(this.options, t)), this.subscribers.filter(
5482
+ subscribe = (t) => (t.type === S.MESSAGES && (t = Ot(this.options, t)), this.subscribers.filter(
5483
5483
  (l) => l.widget === t.widget
5484
5484
  ).length || (console.debug(
5485
5485
  "%cstorage%c %csubscribe",
@@ -5654,11 +5654,11 @@ class Ja {
5654
5654
  "%cpresentation",
5655
5655
  o.PRESENTATION,
5656
5656
  t.presentation,
5657
- X.VERSION,
5657
+ Q.VERSION,
5658
5658
  xa
5659
5659
  ]), this.options = t, this.sm = null, this.bc = new BroadcastChannel(this.options.presentation), this.api = new ka(t), t.storage) {
5660
5660
  case pe.DEXIE:
5661
- this.sm = new Mn(t);
5661
+ this.sm = new Gn(t);
5662
5662
  break;
5663
5663
  case pe.LOCAL:
5664
5664
  this.sm = new Bn(t);
@@ -5685,7 +5685,7 @@ class Ja {
5685
5685
  return;
5686
5686
  const i = [];
5687
5687
  Object.values(this.subscribers).forEach((l) => {
5688
- i.push(this.api.get(l));
5688
+ l.dashboard?.length && l.widget?.length && l.type?.length && i.push(this.api.get(l));
5689
5689
  }), i.forEach(async (l) => {
5690
5690
  await l.then(
5691
5691
  async (g) => await this.processResponse(g)
@@ -5793,7 +5793,7 @@ class Ja {
5793
5793
  const t = this.options.presentation;
5794
5794
  G(3, ["%cchannel%c %capi", o.BROADCAST, o.NONE, o.API, t]), this.bc && (this.bc.onmessage = (i) => {
5795
5795
  this.actions(i);
5796
- }, this.bc.postMessage({ event: X.STORAGE_INIT, data: {} }));
5796
+ }, this.bc.postMessage({ event: Q.STORAGE_INIT, data: {} }));
5797
5797
  };
5798
5798
  broadcastMessage = (t, i) => {
5799
5799
  this.bc && this.bc.postMessage({ event: t, data: i });
@@ -5807,7 +5807,7 @@ class Ja {
5807
5807
  o.NONE,
5808
5808
  o.WIDGET,
5809
5809
  o.NONE,
5810
- tr(i.query),
5810
+ wt(i.query),
5811
5811
  // @ts-expect-error query.widget is obligatory but not always
5812
5812
  `${i?.data?.title ?? ""} ${i.query.widget}`
5813
5813
  ]), G(4, [
@@ -5817,7 +5817,7 @@ class Ja {
5817
5817
  o.BROADCAST,
5818
5818
  i
5819
5819
  ]), this.bc?.postMessage({
5820
- event: X.WIDGET_UPDATE,
5820
+ event: Q.WIDGET_UPDATE,
5821
5821
  data: i.query
5822
5822
  });
5823
5823
  break;
@@ -5830,7 +5830,7 @@ class Ja {
5830
5830
  o.NONE,
5831
5831
  o.WIDGET,
5832
5832
  o.NONE,
5833
- tr(i.query),
5833
+ wt(i.query),
5834
5834
  "Fetch error",
5835
5835
  i.query
5836
5836
  ]);
@@ -5842,10 +5842,18 @@ class Ja {
5842
5842
  };
5843
5843
  actions = async (t) => {
5844
5844
  switch (t.data.event) {
5845
- case X.SUBSCRIBE:
5846
- this.addSubscriber(t.data.data);
5845
+ case Q.SUBSCRIBE:
5846
+ G(3, [
5847
+ `%csubscribe%c %cwidget%c %c${t.data.data.type}`,
5848
+ o.BROADCAST,
5849
+ o.NONE,
5850
+ o.WIDGET,
5851
+ o.NONE,
5852
+ wt(t.data.data),
5853
+ t.data.data
5854
+ ]), this.addSubscriber(t.data.data);
5847
5855
  break;
5848
- case X.UPDATE:
5856
+ case Q.UPDATE:
5849
5857
  G(3, [
5850
5858
  "%cupdate%c %capi%c %cstorage",
5851
5859
  o.BROADCAST,
@@ -5937,7 +5945,7 @@ class La {
5937
5945
  constructor(t) {
5938
5946
  switch (this.sm = null, t.storage) {
5939
5947
  case pe.DEXIE:
5940
- this.sm = new Mn(t);
5948
+ this.sm = new Gn(t);
5941
5949
  break;
5942
5950
  case pe.LOCAL:
5943
5951
  this.sm = new Bn(t);
@@ -6040,13 +6048,15 @@ class Za {
6040
6048
  /**
6041
6049
  * Data received from BroadcastChannel
6042
6050
  * data that is broadcast needs to be a IMessage[] |ICloud or ISeries structure
6051
+ * WIDGET_UPDATE is used to trigger fetching on the broadcast channel,
6052
+ * but also to trigger data retrieval on the widget
6043
6053
  */
6044
6054
  broadcastListener() {
6045
6055
  const t = this.query;
6046
6056
  this.broadcastChannel.onmessage = async (i) => {
6047
6057
  const l = i.data.data;
6048
6058
  switch (i.data.event) {
6049
- case X.WIDGET_UPDATE:
6059
+ case Q.WIDGET_UPDATE:
6050
6060
  try {
6051
6061
  if (l.dashboard === t.dashboard && l.widget === t.widget) {
6052
6062
  const g = await this.getData();
@@ -6057,17 +6067,17 @@ class Za {
6057
6067
  o.WIDGET,
6058
6068
  o.NONE,
6059
6069
  //@ts-ignore
6060
- tr(this.query),
6070
+ wt(this.query),
6061
6071
  this.query
6062
6072
  ]), this.callbacks.forEach(async (b) => {
6063
6073
  b(g);
6064
6074
  }));
6065
6075
  }
6066
6076
  } catch (g) {
6067
- G(4, [X.WIDGET_UPDATE, l, g.message, g]);
6077
+ G(4, [Q.WIDGET_UPDATE, l, g.message, g]);
6068
6078
  }
6069
6079
  break;
6070
- case X.APP_READY:
6080
+ case Q.APP_READY:
6071
6081
  this.subscribe();
6072
6082
  break;
6073
6083
  }
@@ -6084,7 +6094,7 @@ class Za {
6084
6094
  o.NONE,
6085
6095
  o.WIDGET,
6086
6096
  o.NONE,
6087
- tr(this.query),
6097
+ wt(this.query),
6088
6098
  this.query.widget
6089
6099
  ]), G(4, [
6090
6100
  "%cdebug%c %cwidget",
@@ -6092,8 +6102,8 @@ class Za {
6092
6102
  o.NONE,
6093
6103
  o.WIDGET,
6094
6104
  this.query
6095
- ]), this.broadcastChannel.postMessage({
6096
- event: X.SUBSCRIBE,
6105
+ ]), this.query.dashboard?.length && this.query.widget?.length && this.query.type?.length && this.broadcastChannel.postMessage({
6106
+ event: Q.SUBSCRIBE,
6097
6107
  data: this.query
6098
6108
  });
6099
6109
  }
@@ -6210,12 +6220,12 @@ class Za {
6210
6220
  o.OK,
6211
6221
  o.NONE,
6212
6222
  o.WIDGET,
6213
- X.SHOW_MODAL,
6223
+ Q.SHOW_MODAL,
6214
6224
  t.showComponent,
6215
6225
  Pa(this.element.attributes)
6216
6226
  // props['data-widget'],
6217
6227
  ]);
6218
- const i = new CustomEvent(X.SHOW_MODAL, {
6228
+ const i = new CustomEvent(Q.SHOW_MODAL, {
6219
6229
  detail: {
6220
6230
  component: t.showComponent,
6221
6231
  props: t.props,