vrembem 4.0.0-next.19 → 4.0.0-next.20

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/index.js CHANGED
@@ -1,26 +1,26 @@
1
- var Oe = (t) => {
1
+ var Ee = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var $e = (t, e, i) => e.has(t) || Oe("Cannot " + i);
5
- var E = (t, e, i) => ($e(t, e, "read from private field"), i ? i.call(t) : e.get(t)), H = (t, e, i) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), I = (t, e, i, s) => ($e(t, e, "write to private field"), s ? s.call(t, i) : e.set(t, i), i);
4
+ var Oe = (t, e, i) => e.has(t) || Ee("Cannot " + i);
5
+ var E = (t, e, i) => (Oe(t, e, "read from private field"), i ? i.call(t) : e.get(t)), H = (t, e, i) => e.has(t) ? Ee("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), M = (t, e, i, s) => (Oe(t, e, "write to private field"), s ? s.call(t, i) : e.set(t, i), i);
6
6
  var B;
7
7
  class Ie {
8
8
  constructor(e, i) {
9
9
  H(this, B);
10
- this.value = e, I(this, B, i), this.mql = null;
10
+ this.value = e, M(this, B, i), this.mql = null;
11
11
  }
12
12
  get handler() {
13
13
  return E(this, B);
14
14
  }
15
15
  // Unmount existing handler before setting a new one.
16
16
  set handler(e) {
17
- this.mql && this.mql.removeEventListener("change", E(this, B)), I(this, B, e);
17
+ this.mql && this.mql.removeEventListener("change", E(this, B)), M(this, B, e);
18
18
  }
19
19
  mount(e, i) {
20
- return e && (this.value = e), i && I(this, B, i), this.value ? (this.mql = window.matchMedia(`(min-width: ${this.value})`), this.mql.addEventListener("change", E(this, B)), E(this, B).call(this, this.mql), this) : this;
20
+ return e && (this.value = e), i && M(this, B, i), this.value ? (this.mql = window.matchMedia(`(min-width: ${this.value})`), this.mql.addEventListener("change", E(this, B)), E(this, B).call(this, this.mql), this) : this;
21
21
  }
22
22
  unmount() {
23
- return this.mql ? (this.mql.removeEventListener("change", E(this, B)), this.value = null, I(this, B, null), this.mql = null, this) : this;
23
+ return this.mql ? (this.mql.removeEventListener("change", E(this, B)), this.value = null, M(this, B, null), this.mql = null, this) : this;
24
24
  }
25
25
  }
26
26
  B = new WeakMap();
@@ -59,7 +59,7 @@ const g = {
59
59
  inert: ":not([inert]):not([inert] *)",
60
60
  negTabIndex: ':not([tabindex^="-"])',
61
61
  disabled: ":not(:disabled)"
62
- }, oi = [
62
+ }, ai = [
63
63
  `a[href]${g.inert}${g.negTabIndex}`,
64
64
  `area[href]${g.inert}${g.negTabIndex}`,
65
65
  `input:not([type="hidden"]):not([type="radio"])${g.inert}${g.negTabIndex}${g.disabled}`,
@@ -83,13 +83,13 @@ class Qt {
83
83
  H(this, rt);
84
84
  H(this, Z);
85
85
  H(this, tt);
86
- this.el = e, this.selectorFocus = i, I(this, Z, ai.bind(this)), I(this, tt, li.bind(this));
86
+ this.el = e, this.selectorFocus = i, M(this, Z, li.bind(this)), M(this, tt, ci.bind(this));
87
87
  }
88
88
  get focusable() {
89
89
  return E(this, rt);
90
90
  }
91
91
  set focusable(e) {
92
- I(this, rt, e), E(this, rt).length ? (document.removeEventListener("keydown", E(this, tt)), document.addEventListener("keydown", E(this, Z))) : (document.removeEventListener("keydown", E(this, Z)), document.addEventListener("keydown", E(this, tt)));
92
+ M(this, rt, e), E(this, rt).length ? (document.removeEventListener("keydown", E(this, tt)), document.addEventListener("keydown", E(this, Z))) : (document.removeEventListener("keydown", E(this, Z)), document.addEventListener("keydown", E(this, tt)));
93
93
  }
94
94
  get focusableFirst() {
95
95
  return this.focusable[0];
@@ -108,16 +108,16 @@ class Qt {
108
108
  }
109
109
  getFocusable(e = this.el) {
110
110
  const i = [], s = document.activeElement, n = e.scrollTop;
111
- return e.querySelectorAll(oi.join(",")).forEach((a) => {
111
+ return e.querySelectorAll(ai.join(",")).forEach((a) => {
112
112
  a.focus(), document.activeElement === a && i.push(a);
113
113
  }), e.scrollTop = n, s.focus(), i;
114
114
  }
115
115
  }
116
116
  rt = new WeakMap(), Z = new WeakMap(), tt = new WeakMap();
117
- function ai(t) {
117
+ function li(t) {
118
118
  (t.key === "Tab" || t.keyCode === 9) && (t.shiftKey ? (document.activeElement === this.focusableFirst || document.activeElement === this.el) && (t.preventDefault(), this.focusableLast.focus()) : (document.activeElement === this.focusableLast || document.activeElement === this.el) && (t.preventDefault(), this.focusableFirst.focus()));
119
119
  }
120
- function li(t) {
120
+ function ci(t) {
121
121
  (t.key === "Tab" || t.keyCode === 9) && t.preventDefault();
122
122
  }
123
123
  function Bt() {
@@ -162,7 +162,7 @@ function Kt(t, e, i) {
162
162
  let r = null;
163
163
  return s || (r = document.createComment("teleported #" + t.id), t.before(r)), e[i](t), s && e.remove(), r;
164
164
  }
165
- function ci(t) {
165
+ function di(t) {
166
166
  const e = {
167
167
  prefix: Zt("prefix-themes", { fallback: "vb-theme-" }),
168
168
  themes: ["root", "light", "dark"],
@@ -223,20 +223,20 @@ function Ot(t, e, i, s = "transition-duration") {
223
223
  }, s);
224
224
  });
225
225
  }
226
- function di(t, e) {
226
+ function ui(t, e) {
227
227
  e && document.querySelectorAll(e).forEach((s) => {
228
228
  t ? s.style.overflow = "hidden" : s.style.removeProperty("overflow");
229
229
  });
230
230
  }
231
- function ui(t, e) {
231
+ function fi(t, e) {
232
232
  e && document.querySelectorAll(e).forEach((s) => {
233
233
  t ? (s.inert = !0, s.setAttribute("aria-hidden", !0)) : (s.inert = null, s.removeAttribute("aria-hidden"));
234
234
  });
235
235
  }
236
236
  function $t(t, e) {
237
- ui(!!t, e.selectorInert), di(!!t, e.selectorOverflow);
237
+ fi(!!t, e.selectorInert), ui(!!t, e.selectorOverflow);
238
238
  }
239
- const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
239
+ const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
240
240
  __proto__: null,
241
241
  Breakpoint: Ie,
242
242
  Collection: Rt,
@@ -246,10 +246,10 @@ const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
246
246
  getPrefix: Bt,
247
247
  localStore: ee,
248
248
  teleport: Kt,
249
- themeStore: ci,
249
+ themeStore: di,
250
250
  transition: Ot,
251
251
  updateGlobalState: $t
252
- }, Symbol.toStringTag, { value: "Module" })), fi = {
252
+ }, Symbol.toStringTag, { value: "Module" })), hi = {
253
253
  autoMount: !1,
254
254
  // Data attributes
255
255
  dataOpen: "drawer-open",
@@ -284,10 +284,10 @@ const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
284
284
  function pi(t) {
285
285
  t.store === "opened" ? t.open(!1, !1) : t.store === "closed" ? t.close(!1, !1) : t.store === "indeterminate" ? t.state = "indeterminate" : t.el.classList.contains(t.getSetting("stateOpened")) ? t.open(!1, !1) : t.el.classList.contains(t.getSetting("stateClosed")) ? t.close(!1, !1) : t.state = "indeterminate";
286
286
  }
287
- async function hi(t) {
287
+ async function gi(t) {
288
288
  t.store === "opened" ? await t.open(!1, !1) : t.store === "closed" ? await t.close(!1, !1) : t.store === "indeterminate" ? t.state != "indeterminate" && (t.state = "indeterminate") : (t.state != t.inlineState && (t.state = t.inlineState), t.inlineState === "opened" ? await t.open(!1, !1) : t.inlineState === "closed" && await t.close(!1, !1));
289
289
  }
290
- function gi(t) {
290
+ function vi(t) {
291
291
  const e = Bt(), i = t.getAttribute(`data-${this.settings.dataBreakpoint}`);
292
292
  return this.settings.breakpoints && this.settings.breakpoints[i] ? this.settings.breakpoints[i] : getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim() ? getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim() : i;
293
293
  }
@@ -297,10 +297,10 @@ function nt(t) {
297
297
  return e;
298
298
  throw new Error(`Drawer not found in collection with id of "${t.id || t}".`);
299
299
  }
300
- function Re(t) {
300
+ function Me(t) {
301
301
  t.state === "opened" ? t.mode === "modal" ? this.focusTrap.mount(t.dialog, this.settings.selectorFocus) : this.focusTrap.focus(t.dialog, this.settings.selectorFocus) : (t.trigger && (t.trigger.focus(), t.trigger = null), this.focusTrap.unmount());
302
302
  }
303
- async function vi(t) {
303
+ async function mi(t) {
304
304
  const e = t.target.closest(`
305
305
  [data-${this.settings.dataOpen}],
306
306
  [data-${this.settings.dataToggle}],
@@ -327,7 +327,7 @@ async function vi(t) {
327
327
  if (this.activeModal && t.target.matches(this.settings.selectorScreen))
328
328
  return this.close(this.activeModal.id);
329
329
  }
330
- function mi(t) {
330
+ function bi(t) {
331
331
  if (t.key === "Escape" && this.activeModal)
332
332
  return this.close(this.activeModal);
333
333
  }
@@ -349,7 +349,7 @@ async function ie(t, e, i = !0) {
349
349
  }, {
350
350
  start: n.stateOpening,
351
351
  finish: n.stateOpened
352
- }, n.transitionDuration) : (s.el.classList.add(n.stateOpened), s.el.classList.remove(n.stateClosed)), s.state = "opened", s.mode === "modal" && $t(!0, n), i && Re.call(this, s), s.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "opened", {
352
+ }, n.transitionDuration) : (s.el.classList.add(n.stateOpened), s.el.classList.remove(n.stateClosed)), s.state = "opened", s.mode === "modal" && $t(!0, n), i && Me.call(this, s), s.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "opened", {
353
353
  detail: this,
354
354
  bubbles: !0
355
355
  }))), s;
@@ -362,38 +362,38 @@ async function jt(t, e, i = !0) {
362
362
  }, {
363
363
  start: n.stateClosing,
364
364
  finish: n.stateClosed
365
- }, n.transitionDuration) : (s.el.classList.add(n.stateClosed), s.el.classList.remove(n.stateOpened)), s.state = "closed", s.mode === "modal" && $t(!1, n), i && Re.call(this, s), s.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "closed", {
365
+ }, n.transitionDuration) : (s.el.classList.add(n.stateClosed), s.el.classList.remove(n.stateOpened)), s.state = "closed", s.mode === "modal" && $t(!1, n), i && Me.call(this, s), s.el.dispatchEvent(new CustomEvent(n.customEventPrefix + "closed", {
366
366
  detail: this,
367
367
  bubbles: !0
368
368
  }))), s;
369
369
  }
370
- async function Be(t, e, i) {
370
+ async function Re(t, e, i) {
371
371
  const s = nt.call(this, t);
372
372
  return s.state === "closed" ? ie.call(this, s, e, i) : jt.call(this, s, e, i);
373
373
  }
374
- function bi(t) {
374
+ function wi(t) {
375
375
  switch (t.mode) {
376
376
  case "inline":
377
- return wi.call(this, t);
378
- case "modal":
379
377
  return yi.call(this, t);
378
+ case "modal":
379
+ return xi.call(this, t);
380
380
  default:
381
381
  throw new Error(`"${t.mode}" is not a valid drawer mode.`);
382
382
  }
383
383
  }
384
- async function wi(t) {
385
- return t.el.classList.remove(t.getSetting("classModal")), t.dialog.removeAttribute("aria-modal"), $t(!1, { ...this.settings, ...t.settings }), this.focusTrap.unmount(), await hi(t), t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix") + "switchMode", {
384
+ async function yi(t) {
385
+ return t.el.classList.remove(t.getSetting("classModal")), t.dialog.removeAttribute("aria-modal"), $t(!1, { ...this.settings, ...t.settings }), this.focusTrap.unmount(), await gi(t), t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix") + "switchMode", {
386
386
  detail: this,
387
387
  bubbles: !0
388
388
  })), t;
389
389
  }
390
- async function yi(t) {
390
+ async function xi(t) {
391
391
  return t.el.classList.add(t.getSetting("classModal")), t.dialog.setAttribute("aria-modal", "true"), await jt.call(this, t, !1, !1), t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix") + "switchMode", {
392
392
  detail: this,
393
393
  bubbles: !0
394
394
  })), t;
395
395
  }
396
- async function xi(t, e = {}) {
396
+ async function Ei(t, e = {}) {
397
397
  await Xt.call(this, t, !1);
398
398
  const i = this, s = new Ie();
399
399
  let n, r = "indeterminate";
@@ -405,7 +405,7 @@ async function xi(t, e = {}) {
405
405
  settings: { ...te(t, this.settings.dataConfig), ...e },
406
406
  inlineState: "indeterminate",
407
407
  get breakpoint() {
408
- return gi.call(i, t);
408
+ return vi.call(i, t);
409
409
  },
410
410
  get store() {
411
411
  return i.store.get(this.id);
@@ -414,7 +414,7 @@ async function xi(t, e = {}) {
414
414
  return n;
415
415
  },
416
416
  set mode(o) {
417
- n = o, bi.call(i, this);
417
+ n = o, wi.call(i, this);
418
418
  },
419
419
  get state() {
420
420
  return r;
@@ -429,7 +429,7 @@ async function xi(t, e = {}) {
429
429
  return jt.call(i, this, o, d);
430
430
  },
431
431
  toggle(o, d) {
432
- return Be.call(i, this, o, d);
432
+ return Re.call(i, this, o, d);
433
433
  },
434
434
  deregister() {
435
435
  return Xt.call(i, this);
@@ -454,12 +454,12 @@ async function xi(t, e = {}) {
454
454
  return a.dialog = l || t, a.getSetting("setTabindex") && a.dialog.setAttribute("tabindex", "-1"), await pi(a), a.inlineState = a.state, a.mode = t.classList.contains(a.getSetting("classModal")) ? "modal" : "inline", a.breakpoint && a.mountBreakpoint(), a;
455
455
  }
456
456
  var ot, at;
457
- class Hs extends Rt {
457
+ class zs extends Rt {
458
458
  constructor(i) {
459
459
  super();
460
460
  H(this, ot);
461
461
  H(this, at);
462
- this.defaults = fi, this.settings = { ...this.defaults, ...i }, this.focusTrap = new Qt(), this.store = ee(this.settings.storeKey, this.settings.store), I(this, ot, vi.bind(this)), I(this, at, mi.bind(this)), this.settings.autoMount && this.mount();
462
+ this.defaults = hi, this.settings = { ...this.defaults, ...i }, this.focusTrap = new Qt(), this.store = ee(this.settings.storeKey, this.settings.store), M(this, ot, mi.bind(this)), M(this, at, bi.bind(this)), this.settings.autoMount && this.mount();
463
463
  }
464
464
  get activeModal() {
465
465
  return this.collection.find((i) => i.state === "opened" && i.mode === "modal");
@@ -480,7 +480,7 @@ class Hs extends Rt {
480
480
  }
481
481
  register(i, s = {}) {
482
482
  let n = typeof i == "string" ? document.getElementById(i) : i;
483
- return n ? xi.call(this, n, s) : Promise.reject(new Error(`Failed to register; drawer not found with ID of: "${i.id || i}".`));
483
+ return n ? Ei.call(this, n, s) : Promise.reject(new Error(`Failed to register; drawer not found with ID of: "${i.id || i}".`));
484
484
  }
485
485
  deregister(i) {
486
486
  let s = this.get(i.id || i);
@@ -493,11 +493,11 @@ class Hs extends Rt {
493
493
  return jt.call(this, i, s, n);
494
494
  }
495
495
  toggle(i, s, n) {
496
- return Be.call(this, i, s, n);
496
+ return Re.call(this, i, s, n);
497
497
  }
498
498
  }
499
499
  ot = new WeakMap(), at = new WeakMap();
500
- const Ei = {
500
+ const Oi = {
501
501
  autoMount: !1,
502
502
  // Data attributes
503
503
  dataOpen: "modal-open",
@@ -535,7 +535,7 @@ function yt(t) {
535
535
  function Ft() {
536
536
  this.active ? this.focusTrap.mount(this.active.dialog, this.settings.selectorFocus) : (this.trigger && (this.trigger.focus(), this.trigger = null), this.focusTrap.unmount());
537
537
  }
538
- async function Oi(t) {
538
+ async function $i(t) {
539
539
  const e = t.target.closest(`
540
540
  [data-${this.settings.dataOpen}],
541
541
  [data-${this.settings.dataReplace}],
@@ -558,7 +558,7 @@ async function Oi(t) {
558
558
  if (this.active && t.target.matches(this.settings.selectorScreen) && !this.active.required)
559
559
  return this.close(this.active.id);
560
560
  }
561
- function $i(t) {
561
+ function Li(t) {
562
562
  if (t.key === "Escape" && this.active && !this.active.dialog.matches(this.settings.selectorRequired))
563
563
  return this.close();
564
564
  }
@@ -609,12 +609,12 @@ async function qt(t, e) {
609
609
  t && t === s.id ? Promise.resolve() : i.push(await ne.call(this, s, e, !1)), s.trigger = null;
610
610
  })), i;
611
611
  }
612
- async function je(t, e, i = !0) {
612
+ async function Be(t, e, i = !0) {
613
613
  const s = yt.call(this, t);
614
614
  let n, r;
615
615
  return s.state === "opened" ? (n = s, r = await qt.call(this, s.id, e)) : (r = qt.call(this, !1, e), n = se.call(this, s, e, !1), await Promise.all([n, r])), i && Ft.call(this), { opened: n, closed: r };
616
616
  }
617
- async function Li(t, e = {}) {
617
+ async function Ci(t, e = {}) {
618
618
  await Yt.call(this, t, !1);
619
619
  const i = this, s = {
620
620
  id: t.id,
@@ -633,7 +633,7 @@ async function Li(t, e = {}) {
633
633
  return ne.call(i, this, r, a);
634
634
  },
635
635
  replace(r, a) {
636
- return je.call(i, this, r, a);
636
+ return Be.call(i, this, r, a);
637
637
  },
638
638
  deregister() {
639
639
  return Yt.call(i, this);
@@ -650,7 +650,7 @@ async function Li(t, e = {}) {
650
650
  }, n = t.querySelector(s.getSetting("selectorDialog"));
651
651
  return s.dialog = n || t, s.dialog.setAttribute("aria-modal", "true"), s.dialog.hasAttribute("role") || s.dialog.setAttribute("role", "dialog"), s.getSetting("setTabindex") && s.dialog.setAttribute("tabindex", "-1"), s.getSetting("teleport") && s.teleport(), this.collection.push(s), s.el.classList.contains(this.settings.stateOpened) ? await s.open(!1) : (s.el.classList.remove(this.settings.stateOpening), s.el.classList.remove(this.settings.stateClosing), s.el.classList.add(this.settings.stateClosed)), s;
652
652
  }
653
- function Ci(t) {
653
+ function ki(t) {
654
654
  const e = [];
655
655
  return {
656
656
  get value() {
@@ -685,12 +685,12 @@ function Ci(t) {
685
685
  };
686
686
  }
687
687
  var lt, ct;
688
- class _s extends Rt {
688
+ class Ks extends Rt {
689
689
  constructor(i) {
690
690
  super();
691
691
  H(this, lt);
692
692
  H(this, ct);
693
- this.defaults = Ei, this.settings = { ...this.defaults, ...i }, this.trigger = null, this.focusTrap = new Qt(), this.stack = Ci(this.settings), I(this, lt, Oi.bind(this)), I(this, ct, $i.bind(this)), this.settings.autoMount && this.mount();
693
+ this.defaults = Oi, this.settings = { ...this.defaults, ...i }, this.trigger = null, this.focusTrap = new Qt(), this.stack = ki(this.settings), M(this, lt, $i.bind(this)), M(this, ct, Li.bind(this)), this.settings.autoMount && this.mount();
694
694
  }
695
695
  get active() {
696
696
  return this.stack.top;
@@ -711,7 +711,7 @@ class _s extends Rt {
711
711
  }
712
712
  register(i, s = {}) {
713
713
  let n = typeof i == "string" ? document.getElementById(i) : i;
714
- return n ? Li.call(this, n, s) : Promise.reject(new Error(`Failed to register; modal not found with ID of: "${i.id || i}".`));
714
+ return n ? Ci.call(this, n, s) : Promise.reject(new Error(`Failed to register; modal not found with ID of: "${i.id || i}".`));
715
715
  }
716
716
  deregister(i) {
717
717
  let s = this.get(i.id || i);
@@ -724,7 +724,7 @@ class _s extends Rt {
724
724
  return ne.call(this, i, s, n);
725
725
  }
726
726
  replace(i, s, n) {
727
- return je.call(this, i, s, n);
727
+ return Be.call(this, i, s, n);
728
728
  }
729
729
  async closeAll(i = !1, s, n = !0) {
730
730
  const r = await qt.call(this, i, s);
@@ -732,7 +732,7 @@ class _s extends Rt {
732
732
  }
733
733
  }
734
734
  lt = new WeakMap(), ct = new WeakMap();
735
- const ki = {
735
+ const Ai = {
736
736
  autoMount: !1,
737
737
  // Selectors
738
738
  selectorPopover: ".popover",
@@ -742,9 +742,10 @@ const ki = {
742
742
  // Feature settings
743
743
  eventListeners: !0,
744
744
  eventType: "click",
745
- placement: "bottom"
745
+ placement: "bottom",
746
+ hoverToggleDelay: 0
746
747
  };
747
- function Fe(t, e) {
748
+ function je(t, e) {
748
749
  const i = getComputedStyle(t), s = {
749
750
  placement: e.placement,
750
751
  event: e.eventType,
@@ -752,7 +753,8 @@ function Fe(t, e) {
752
753
  "overflow-padding": 0,
753
754
  "flip-padding": 0,
754
755
  "arrow-element": e.selectorArrow,
755
- "arrow-padding": 0
756
+ "arrow-padding": 0,
757
+ "toggle-delay": e.hoverToggleDelay
756
758
  };
757
759
  for (const n in s) {
758
760
  const r = Bt(), a = i.getPropertyValue(`--${r}popover-${n}`).trim();
@@ -799,7 +801,7 @@ function zt(t) {
799
801
  }
800
802
  return e;
801
803
  }
802
- function Si(t) {
804
+ function Fe(t) {
803
805
  return [{
804
806
  name: "offset",
805
807
  options: {
@@ -829,11 +831,11 @@ function Ne(t) {
829
831
  return e;
830
832
  throw new Error(`Popover not found in collection with id of "${t}".`);
831
833
  }
832
- function Ai(t) {
834
+ function Si(t) {
833
835
  return typeof t == "string" ? t : typeof t.hasAttribute == "function" ? t.closest(this.settings.selectorPopover) ? (t = t.closest(this.settings.selectorPopover), t.id) : t.hasAttribute("aria-controls") ? t.getAttribute("aria-controls") : t.hasAttribute("aria-describedby") ? t.getAttribute("aria-describedby") : !1 : !1;
834
836
  }
835
- function Pi(t) {
836
- const e = Ai.call(this, t);
837
+ function Ti(t) {
838
+ const e = Si.call(this, t);
837
839
  if (e) {
838
840
  const i = document.querySelector(`#${e}`), s = document.querySelector(`[aria-controls="${e}"]`) || document.querySelector(`[aria-describedby="${e}"]`);
839
841
  return !s && !i ? { error: new Error(`No popover elements found using the ID: "${e}".`) } : s ? i ? { popover: i, trigger: s } : { error: new Error("No popover associated with the provided popover trigger.") } : { error: new Error("No popover trigger associated with the provided popover.") };
@@ -843,7 +845,11 @@ function Pi(t) {
843
845
  async function re(t) {
844
846
  const e = t ? Ne.call(this, t) : await Ve.call(this);
845
847
  return e && e.state === "opened" && (e.el.classList.remove(this.settings.stateActive), e.trigger.hasAttribute("aria-controls") && e.trigger.setAttribute("aria-expanded", "false"), e.popper.setOptions({
846
- modifiers: [{ name: "eventListeners", enabled: !1 }]
848
+ placement: e.config.placement,
849
+ modifiers: [
850
+ { name: "eventListeners", enabled: !1 },
851
+ ...Fe(e.config)
852
+ ]
847
853
  }), e.state = "closed", e.trigger === this.trigger && (this.trigger = null)), e;
848
854
  }
849
855
  async function Ve() {
@@ -860,10 +866,22 @@ function We(t) {
860
866
  return !e && !i && t.close(), t;
861
867
  }, 1);
862
868
  }
863
- function Ti(t) {
869
+ function Pi(t) {
864
870
  t.state === "opened" ? t.close() : (this.trigger = t.trigger, t.open(), He.call(this, t));
865
871
  }
866
872
  function Di(t) {
873
+ t.toggleDelayId && clearTimeout(t.toggleDelayId);
874
+ const e = this.activeTooltip ? 0 : t.config["toggle-delay"];
875
+ this.activeTooltip && this.activeTooltip.close(), t.toggleDelayId = setTimeout(() => {
876
+ t.open();
877
+ }, e);
878
+ }
879
+ function Ii(t) {
880
+ t.toggleDelayId && clearTimeout(t.toggleDelayId), t.toggleDelayId = setTimeout(() => {
881
+ We.call(this, t);
882
+ }, t.config["toggle-delay"]);
883
+ }
884
+ function Mi(t) {
867
885
  switch (t.key) {
868
886
  case "Escape":
869
887
  this.trigger && this.trigger.focus(), Ve.call(this);
@@ -885,11 +903,11 @@ function He(t) {
885
903
  ) ? t.el && !t.el.classList.contains(e.settings.stateActive) && this.removeEventListener("click", i) : (t.el && t.el.classList.contains(e.settings.stateActive) && t.close(), this.removeEventListener("click", i));
886
904
  });
887
905
  }
888
- var T = "top", F = "bottom", N = "right", D = "left", oe = "auto", Lt = [T, F, N, D], ut = "start", xt = "end", Mi = "clippingParents", _e = "viewport", mt = "popper", Ii = "reference", Le = /* @__PURE__ */ Lt.reduce(function(t, e) {
906
+ var P = "top", F = "bottom", N = "right", D = "left", oe = "auto", Lt = [P, F, N, D], ut = "start", xt = "end", Ri = "clippingParents", _e = "viewport", mt = "popper", Bi = "reference", $e = /* @__PURE__ */ Lt.reduce(function(t, e) {
889
907
  return t.concat([e + "-" + ut, e + "-" + xt]);
890
908
  }, []), ze = /* @__PURE__ */ [].concat(Lt, [oe]).reduce(function(t, e) {
891
909
  return t.concat([e, e + "-" + ut, e + "-" + xt]);
892
- }, []), Ri = "beforeRead", Bi = "read", ji = "afterRead", Fi = "beforeMain", Ni = "main", Vi = "afterMain", Wi = "beforeWrite", Hi = "write", _i = "afterWrite", zi = [Ri, Bi, ji, Fi, Ni, Vi, Wi, Hi, _i];
910
+ }, []), ji = "beforeRead", Fi = "read", Ni = "afterRead", Vi = "beforeMain", Wi = "main", Hi = "afterMain", _i = "beforeWrite", zi = "write", Ki = "afterWrite", Xi = [ji, Fi, Ni, Vi, Wi, Hi, _i, zi, Ki];
893
911
  function z(t) {
894
912
  return t ? (t.nodeName || "").toLowerCase() : null;
895
913
  }
@@ -916,7 +934,7 @@ function ae(t) {
916
934
  var e = R(t).ShadowRoot;
917
935
  return t instanceof e || t instanceof ShadowRoot;
918
936
  }
919
- function Ki(t) {
937
+ function Yi(t) {
920
938
  var e = t.state;
921
939
  Object.keys(e.elements).forEach(function(i) {
922
940
  var s = e.styles[i] || {}, n = e.attributes[i] || {}, r = e.elements[i];
@@ -926,7 +944,7 @@ function Ki(t) {
926
944
  }));
927
945
  });
928
946
  }
929
- function Xi(t) {
947
+ function qi(t) {
930
948
  var e = t.state, i = {
931
949
  popper: {
932
950
  position: e.options.strategy,
@@ -950,18 +968,18 @@ function Xi(t) {
950
968
  });
951
969
  };
952
970
  }
953
- const Yi = {
971
+ const Ui = {
954
972
  name: "applyStyles",
955
973
  enabled: !0,
956
974
  phase: "write",
957
- fn: Ki,
958
- effect: Xi,
975
+ fn: Yi,
976
+ effect: qi,
959
977
  requires: ["computeStyles"]
960
978
  };
961
979
  function _(t) {
962
980
  return t.split("-")[0];
963
981
  }
964
- var et = Math.max, It = Math.min, ft = Math.round;
982
+ var et = Math.max, Mt = Math.min, ft = Math.round;
965
983
  function Ut() {
966
984
  var t = navigator.userAgentData;
967
985
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
@@ -971,7 +989,7 @@ function Ut() {
971
989
  function Ke() {
972
990
  return !/^((?!chrome|android).)*safari/i.test(Ut());
973
991
  }
974
- function pt(t, e, i) {
992
+ function ht(t, e, i) {
975
993
  e === void 0 && (e = !1), i === void 0 && (i = !1);
976
994
  var s = t.getBoundingClientRect(), n = 1, r = 1;
977
995
  e && j(t) && (n = t.offsetWidth > 0 && ft(s.width) / t.offsetWidth || 1, r = t.offsetHeight > 0 && ft(s.height) / t.offsetHeight || 1);
@@ -988,7 +1006,7 @@ function pt(t, e, i) {
988
1006
  };
989
1007
  }
990
1008
  function le(t) {
991
- var e = pt(t), i = t.offsetWidth, s = t.offsetHeight;
1009
+ var e = ht(t), i = t.offsetWidth, s = t.offsetHeight;
992
1010
  return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - s) <= 1 && (s = e.height), {
993
1011
  x: t.offsetLeft,
994
1012
  y: t.offsetTop,
@@ -1013,7 +1031,7 @@ function Xe(t, e) {
1013
1031
  function K(t) {
1014
1032
  return R(t).getComputedStyle(t);
1015
1033
  }
1016
- function qi(t) {
1034
+ function Gi(t) {
1017
1035
  return ["table", "td", "th"].indexOf(z(t)) >= 0;
1018
1036
  }
1019
1037
  function Y(t) {
@@ -1034,11 +1052,11 @@ function Nt(t) {
1034
1052
  Y(t)
1035
1053
  );
1036
1054
  }
1037
- function Ce(t) {
1055
+ function Le(t) {
1038
1056
  return !j(t) || // https://github.com/popperjs/popper-core/issues/837
1039
1057
  K(t).position === "fixed" ? null : t.offsetParent;
1040
1058
  }
1041
- function Ui(t) {
1059
+ function Ji(t) {
1042
1060
  var e = /firefox/i.test(Ut()), i = /Trident/i.test(Ut());
1043
1061
  if (i && j(t)) {
1044
1062
  var s = K(t);
@@ -1055,17 +1073,17 @@ function Ui(t) {
1055
1073
  return null;
1056
1074
  }
1057
1075
  function Ct(t) {
1058
- for (var e = R(t), i = Ce(t); i && qi(i) && K(i).position === "static"; )
1059
- i = Ce(i);
1060
- return i && (z(i) === "html" || z(i) === "body" && K(i).position === "static") ? e : i || Ui(t) || e;
1076
+ for (var e = R(t), i = Le(t); i && Gi(i) && K(i).position === "static"; )
1077
+ i = Le(i);
1078
+ return i && (z(i) === "html" || z(i) === "body" && K(i).position === "static") ? e : i || Ji(t) || e;
1061
1079
  }
1062
1080
  function ce(t) {
1063
1081
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
1064
1082
  }
1065
1083
  function bt(t, e, i) {
1066
- return et(t, It(e, i));
1084
+ return et(t, Mt(e, i));
1067
1085
  }
1068
- function Gi(t, e, i) {
1086
+ function Qi(t, e, i) {
1069
1087
  var s = bt(t, e, i);
1070
1088
  return s > i ? i : s;
1071
1089
  }
@@ -1085,106 +1103,106 @@ function Ue(t, e) {
1085
1103
  return i[s] = t, i;
1086
1104
  }, {});
1087
1105
  }
1088
- var Ji = function(e, i) {
1106
+ var Zi = function(e, i) {
1089
1107
  return e = typeof e == "function" ? e(Object.assign({}, i.rects, {
1090
1108
  placement: i.placement
1091
1109
  })) : e, qe(typeof e != "number" ? e : Ue(e, Lt));
1092
1110
  };
1093
- function Qi(t) {
1111
+ function ts(t) {
1094
1112
  var e, i = t.state, s = t.name, n = t.options, r = i.elements.arrow, a = i.modifiersData.popperOffsets, l = _(i.placement), o = ce(l), d = [D, N].indexOf(l) >= 0, c = d ? "height" : "width";
1095
1113
  if (!(!r || !a)) {
1096
- var v = Ji(n.padding, i), w = le(r), u = o === "y" ? T : D, x = o === "y" ? F : N, h = i.rects.reference[c] + i.rects.reference[o] - a[o] - i.rects.popper[c], p = a[o] - i.rects.reference[o], y = Ct(r), $ = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, L = h / 2 - p / 2, f = v[u], m = $ - w[c] - v[x], b = $ / 2 - w[c] / 2 + L, O = bt(f, b, m), S = o;
1097
- i.modifiersData[s] = (e = {}, e[S] = O, e.centerOffset = O - b, e);
1114
+ var v = Zi(n.padding, i), w = le(r), u = o === "y" ? P : D, x = o === "y" ? F : N, p = i.rects.reference[c] + i.rects.reference[o] - a[o] - i.rects.popper[c], h = a[o] - i.rects.reference[o], y = Ct(r), $ = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, L = p / 2 - h / 2, f = v[u], m = $ - w[c] - v[x], b = $ / 2 - w[c] / 2 + L, O = bt(f, b, m), A = o;
1115
+ i.modifiersData[s] = (e = {}, e[A] = O, e.centerOffset = O - b, e);
1098
1116
  }
1099
1117
  }
1100
- function Zi(t) {
1118
+ function es(t) {
1101
1119
  var e = t.state, i = t.options, s = i.element, n = s === void 0 ? "[data-popper-arrow]" : s;
1102
1120
  n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || Xe(e.elements.popper, n) && (e.elements.arrow = n));
1103
1121
  }
1104
- const ts = {
1122
+ const is = {
1105
1123
  name: "arrow",
1106
1124
  enabled: !0,
1107
1125
  phase: "main",
1108
- fn: Qi,
1109
- effect: Zi,
1126
+ fn: ts,
1127
+ effect: es,
1110
1128
  requires: ["popperOffsets"],
1111
1129
  requiresIfExists: ["preventOverflow"]
1112
1130
  };
1113
- function ht(t) {
1131
+ function pt(t) {
1114
1132
  return t.split("-")[1];
1115
1133
  }
1116
- var es = {
1134
+ var ss = {
1117
1135
  top: "auto",
1118
1136
  right: "auto",
1119
1137
  bottom: "auto",
1120
1138
  left: "auto"
1121
1139
  };
1122
- function is(t, e) {
1140
+ function ns(t, e) {
1123
1141
  var i = t.x, s = t.y, n = e.devicePixelRatio || 1;
1124
1142
  return {
1125
1143
  x: ft(i * n) / n || 0,
1126
1144
  y: ft(s * n) / n || 0
1127
1145
  };
1128
1146
  }
1129
- function ke(t) {
1130
- var e, i = t.popper, s = t.popperRect, n = t.placement, r = t.variation, a = t.offsets, l = t.position, o = t.gpuAcceleration, d = t.adaptive, c = t.roundOffsets, v = t.isFixed, w = a.x, u = w === void 0 ? 0 : w, x = a.y, h = x === void 0 ? 0 : x, p = typeof c == "function" ? c({
1147
+ function Ce(t) {
1148
+ var e, i = t.popper, s = t.popperRect, n = t.placement, r = t.variation, a = t.offsets, l = t.position, o = t.gpuAcceleration, d = t.adaptive, c = t.roundOffsets, v = t.isFixed, w = a.x, u = w === void 0 ? 0 : w, x = a.y, p = x === void 0 ? 0 : x, h = typeof c == "function" ? c({
1131
1149
  x: u,
1132
- y: h
1150
+ y: p
1133
1151
  }) : {
1134
1152
  x: u,
1135
- y: h
1153
+ y: p
1136
1154
  };
1137
- u = p.x, h = p.y;
1138
- var y = a.hasOwnProperty("x"), $ = a.hasOwnProperty("y"), L = D, f = T, m = window;
1155
+ u = h.x, p = h.y;
1156
+ var y = a.hasOwnProperty("x"), $ = a.hasOwnProperty("y"), L = D, f = P, m = window;
1139
1157
  if (d) {
1140
- var b = Ct(i), O = "clientHeight", S = "clientWidth";
1141
- if (b === R(i) && (b = Y(i), K(b).position !== "static" && l === "absolute" && (O = "scrollHeight", S = "scrollWidth")), b = b, n === T || (n === D || n === N) && r === xt) {
1158
+ var b = Ct(i), O = "clientHeight", A = "clientWidth";
1159
+ if (b === R(i) && (b = Y(i), K(b).position !== "static" && l === "absolute" && (O = "scrollHeight", A = "scrollWidth")), b = b, n === P || (n === D || n === N) && r === xt) {
1142
1160
  f = F;
1143
1161
  var k = v && b === m && m.visualViewport ? m.visualViewport.height : (
1144
1162
  // $FlowFixMe[prop-missing]
1145
1163
  b[O]
1146
1164
  );
1147
- h -= k - s.height, h *= o ? 1 : -1;
1165
+ p -= k - s.height, p *= o ? 1 : -1;
1148
1166
  }
1149
- if (n === D || (n === T || n === F) && r === xt) {
1167
+ if (n === D || (n === P || n === F) && r === xt) {
1150
1168
  L = N;
1151
1169
  var C = v && b === m && m.visualViewport ? m.visualViewport.width : (
1152
1170
  // $FlowFixMe[prop-missing]
1153
- b[S]
1171
+ b[A]
1154
1172
  );
1155
1173
  u -= C - s.width, u *= o ? 1 : -1;
1156
1174
  }
1157
1175
  }
1158
- var A = Object.assign({
1176
+ var S = Object.assign({
1159
1177
  position: l
1160
- }, d && es), V = c === !0 ? is({
1178
+ }, d && ss), V = c === !0 ? ns({
1161
1179
  x: u,
1162
- y: h
1180
+ y: p
1163
1181
  }, R(i)) : {
1164
1182
  x: u,
1165
- y: h
1183
+ y: p
1166
1184
  };
1167
- if (u = V.x, h = V.y, o) {
1168
- var P;
1169
- return Object.assign({}, A, (P = {}, P[f] = $ ? "0" : "", P[L] = y ? "0" : "", P.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + h + "px)" : "translate3d(" + u + "px, " + h + "px, 0)", P));
1185
+ if (u = V.x, p = V.y, o) {
1186
+ var T;
1187
+ return Object.assign({}, S, (T = {}, T[f] = $ ? "0" : "", T[L] = y ? "0" : "", T.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + p + "px)" : "translate3d(" + u + "px, " + p + "px, 0)", T));
1170
1188
  }
1171
- return Object.assign({}, A, (e = {}, e[f] = $ ? h + "px" : "", e[L] = y ? u + "px" : "", e.transform = "", e));
1189
+ return Object.assign({}, S, (e = {}, e[f] = $ ? p + "px" : "", e[L] = y ? u + "px" : "", e.transform = "", e));
1172
1190
  }
1173
- function ss(t) {
1191
+ function rs(t) {
1174
1192
  var e = t.state, i = t.options, s = i.gpuAcceleration, n = s === void 0 ? !0 : s, r = i.adaptive, a = r === void 0 ? !0 : r, l = i.roundOffsets, o = l === void 0 ? !0 : l, d = {
1175
1193
  placement: _(e.placement),
1176
- variation: ht(e.placement),
1194
+ variation: pt(e.placement),
1177
1195
  popper: e.elements.popper,
1178
1196
  popperRect: e.rects.popper,
1179
1197
  gpuAcceleration: n,
1180
1198
  isFixed: e.options.strategy === "fixed"
1181
1199
  };
1182
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ke(Object.assign({}, d, {
1200
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ce(Object.assign({}, d, {
1183
1201
  offsets: e.modifiersData.popperOffsets,
1184
1202
  position: e.options.strategy,
1185
1203
  adaptive: a,
1186
1204
  roundOffsets: o
1187
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ke(Object.assign({}, d, {
1205
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ce(Object.assign({}, d, {
1188
1206
  offsets: e.modifiersData.arrow,
1189
1207
  position: "absolute",
1190
1208
  adaptive: !1,
@@ -1193,17 +1211,17 @@ function ss(t) {
1193
1211
  "data-popper-placement": e.placement
1194
1212
  });
1195
1213
  }
1196
- const ns = {
1214
+ const os = {
1197
1215
  name: "computeStyles",
1198
1216
  enabled: !0,
1199
1217
  phase: "beforeWrite",
1200
- fn: ss,
1218
+ fn: rs,
1201
1219
  data: {}
1202
1220
  };
1203
1221
  var Dt = {
1204
1222
  passive: !0
1205
1223
  };
1206
- function rs(t) {
1224
+ function as(t) {
1207
1225
  var e = t.state, i = t.instance, s = t.options, n = s.scroll, r = n === void 0 ? !0 : n, a = s.resize, l = a === void 0 ? !0 : a, o = R(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper);
1208
1226
  return r && d.forEach(function(c) {
1209
1227
  c.addEventListener("scroll", i.update, Dt);
@@ -1213,33 +1231,33 @@ function rs(t) {
1213
1231
  }), l && o.removeEventListener("resize", i.update, Dt);
1214
1232
  };
1215
1233
  }
1216
- const os = {
1234
+ const ls = {
1217
1235
  name: "eventListeners",
1218
1236
  enabled: !0,
1219
1237
  phase: "write",
1220
1238
  fn: function() {
1221
1239
  },
1222
- effect: rs,
1240
+ effect: as,
1223
1241
  data: {}
1224
1242
  };
1225
- var as = {
1243
+ var cs = {
1226
1244
  left: "right",
1227
1245
  right: "left",
1228
1246
  bottom: "top",
1229
1247
  top: "bottom"
1230
1248
  };
1231
- function Mt(t) {
1249
+ function It(t) {
1232
1250
  return t.replace(/left|right|bottom|top/g, function(e) {
1233
- return as[e];
1251
+ return cs[e];
1234
1252
  });
1235
1253
  }
1236
- var ls = {
1254
+ var ds = {
1237
1255
  start: "end",
1238
1256
  end: "start"
1239
1257
  };
1240
- function Se(t) {
1258
+ function ke(t) {
1241
1259
  return t.replace(/start|end/g, function(e) {
1242
- return ls[e];
1260
+ return ds[e];
1243
1261
  });
1244
1262
  }
1245
1263
  function de(t) {
@@ -1250,9 +1268,9 @@ function de(t) {
1250
1268
  };
1251
1269
  }
1252
1270
  function ue(t) {
1253
- return pt(Y(t)).left + de(t).scrollLeft;
1271
+ return ht(Y(t)).left + de(t).scrollLeft;
1254
1272
  }
1255
- function cs(t, e) {
1273
+ function us(t, e) {
1256
1274
  var i = R(t), s = Y(t), n = i.visualViewport, r = s.clientWidth, a = s.clientHeight, l = 0, o = 0;
1257
1275
  if (n) {
1258
1276
  r = n.width, a = n.height;
@@ -1266,7 +1284,7 @@ function cs(t, e) {
1266
1284
  y: o
1267
1285
  };
1268
1286
  }
1269
- function ds(t) {
1287
+ function fs(t) {
1270
1288
  var e, i = Y(t), s = de(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, r = et(i.scrollWidth, i.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), a = et(i.scrollHeight, i.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), l = -s.scrollLeft + ue(t), o = -s.scrollTop;
1271
1289
  return K(n || i).direction === "rtl" && (l += et(i.clientWidth, n ? n.clientWidth : 0) - r), {
1272
1290
  width: r,
@@ -1299,30 +1317,30 @@ function Gt(t) {
1299
1317
  bottom: t.y + t.height
1300
1318
  });
1301
1319
  }
1302
- function us(t, e) {
1303
- var i = pt(t, !1, e === "fixed");
1320
+ function hs(t, e) {
1321
+ var i = ht(t, !1, e === "fixed");
1304
1322
  return i.top = i.top + t.clientTop, i.left = i.left + t.clientLeft, i.bottom = i.top + t.clientHeight, i.right = i.left + t.clientWidth, i.width = t.clientWidth, i.height = t.clientHeight, i.x = i.left, i.y = i.top, i;
1305
1323
  }
1306
1324
  function Ae(t, e, i) {
1307
- return e === _e ? Gt(cs(t, i)) : it(e) ? us(e, i) : Gt(ds(Y(t)));
1325
+ return e === _e ? Gt(us(t, i)) : it(e) ? hs(e, i) : Gt(fs(Y(t)));
1308
1326
  }
1309
- function fs(t) {
1327
+ function ps(t) {
1310
1328
  var e = wt(Nt(t)), i = ["absolute", "fixed"].indexOf(K(t).position) >= 0, s = i && j(t) ? Ct(t) : t;
1311
1329
  return it(s) ? e.filter(function(n) {
1312
1330
  return it(n) && Xe(n, s) && z(n) !== "body";
1313
1331
  }) : [];
1314
1332
  }
1315
- function ps(t, e, i, s) {
1316
- var n = e === "clippingParents" ? fs(t) : [].concat(e), r = [].concat(n, [i]), a = r[0], l = r.reduce(function(o, d) {
1333
+ function gs(t, e, i, s) {
1334
+ var n = e === "clippingParents" ? ps(t) : [].concat(e), r = [].concat(n, [i]), a = r[0], l = r.reduce(function(o, d) {
1317
1335
  var c = Ae(t, d, s);
1318
- return o.top = et(c.top, o.top), o.right = It(c.right, o.right), o.bottom = It(c.bottom, o.bottom), o.left = et(c.left, o.left), o;
1336
+ return o.top = et(c.top, o.top), o.right = Mt(c.right, o.right), o.bottom = Mt(c.bottom, o.bottom), o.left = et(c.left, o.left), o;
1319
1337
  }, Ae(t, a, s));
1320
1338
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
1321
1339
  }
1322
1340
  function Je(t) {
1323
- var e = t.reference, i = t.element, s = t.placement, n = s ? _(s) : null, r = s ? ht(s) : null, a = e.x + e.width / 2 - i.width / 2, l = e.y + e.height / 2 - i.height / 2, o;
1341
+ var e = t.reference, i = t.element, s = t.placement, n = s ? _(s) : null, r = s ? pt(s) : null, a = e.x + e.width / 2 - i.width / 2, l = e.y + e.height / 2 - i.height / 2, o;
1324
1342
  switch (n) {
1325
- case T:
1343
+ case P:
1326
1344
  o = {
1327
1345
  x: a,
1328
1346
  y: e.y - i.height
@@ -1368,86 +1386,86 @@ function Je(t) {
1368
1386
  }
1369
1387
  function Et(t, e) {
1370
1388
  e === void 0 && (e = {});
1371
- var i = e, s = i.placement, n = s === void 0 ? t.placement : s, r = i.strategy, a = r === void 0 ? t.strategy : r, l = i.boundary, o = l === void 0 ? Mi : l, d = i.rootBoundary, c = d === void 0 ? _e : d, v = i.elementContext, w = v === void 0 ? mt : v, u = i.altBoundary, x = u === void 0 ? !1 : u, h = i.padding, p = h === void 0 ? 0 : h, y = qe(typeof p != "number" ? p : Ue(p, Lt)), $ = w === mt ? Ii : mt, L = t.rects.popper, f = t.elements[x ? $ : w], m = ps(it(f) ? f : f.contextElement || Y(t.elements.popper), o, c, a), b = pt(t.elements.reference), O = Je({
1389
+ var i = e, s = i.placement, n = s === void 0 ? t.placement : s, r = i.strategy, a = r === void 0 ? t.strategy : r, l = i.boundary, o = l === void 0 ? Ri : l, d = i.rootBoundary, c = d === void 0 ? _e : d, v = i.elementContext, w = v === void 0 ? mt : v, u = i.altBoundary, x = u === void 0 ? !1 : u, p = i.padding, h = p === void 0 ? 0 : p, y = qe(typeof h != "number" ? h : Ue(h, Lt)), $ = w === mt ? Bi : mt, L = t.rects.popper, f = t.elements[x ? $ : w], m = gs(it(f) ? f : f.contextElement || Y(t.elements.popper), o, c, a), b = ht(t.elements.reference), O = Je({
1372
1390
  reference: b,
1373
1391
  element: L,
1374
1392
  strategy: "absolute",
1375
1393
  placement: n
1376
- }), S = Gt(Object.assign({}, L, O)), k = w === mt ? S : b, C = {
1394
+ }), A = Gt(Object.assign({}, L, O)), k = w === mt ? A : b, C = {
1377
1395
  top: m.top - k.top + y.top,
1378
1396
  bottom: k.bottom - m.bottom + y.bottom,
1379
1397
  left: m.left - k.left + y.left,
1380
1398
  right: k.right - m.right + y.right
1381
- }, A = t.modifiersData.offset;
1382
- if (w === mt && A) {
1383
- var V = A[n];
1384
- Object.keys(C).forEach(function(P) {
1385
- var q = [N, F].indexOf(P) >= 0 ? 1 : -1, U = [T, F].indexOf(P) >= 0 ? "y" : "x";
1386
- C[P] += V[U] * q;
1399
+ }, S = t.modifiersData.offset;
1400
+ if (w === mt && S) {
1401
+ var V = S[n];
1402
+ Object.keys(C).forEach(function(T) {
1403
+ var q = [N, F].indexOf(T) >= 0 ? 1 : -1, U = [P, F].indexOf(T) >= 0 ? "y" : "x";
1404
+ C[T] += V[U] * q;
1387
1405
  });
1388
1406
  }
1389
1407
  return C;
1390
1408
  }
1391
- function hs(t, e) {
1409
+ function vs(t, e) {
1392
1410
  e === void 0 && (e = {});
1393
- var i = e, s = i.placement, n = i.boundary, r = i.rootBoundary, a = i.padding, l = i.flipVariations, o = i.allowedAutoPlacements, d = o === void 0 ? ze : o, c = ht(s), v = c ? l ? Le : Le.filter(function(x) {
1394
- return ht(x) === c;
1411
+ var i = e, s = i.placement, n = i.boundary, r = i.rootBoundary, a = i.padding, l = i.flipVariations, o = i.allowedAutoPlacements, d = o === void 0 ? ze : o, c = pt(s), v = c ? l ? $e : $e.filter(function(x) {
1412
+ return pt(x) === c;
1395
1413
  }) : Lt, w = v.filter(function(x) {
1396
1414
  return d.indexOf(x) >= 0;
1397
1415
  });
1398
1416
  w.length === 0 && (w = v);
1399
- var u = w.reduce(function(x, h) {
1400
- return x[h] = Et(t, {
1401
- placement: h,
1417
+ var u = w.reduce(function(x, p) {
1418
+ return x[p] = Et(t, {
1419
+ placement: p,
1402
1420
  boundary: n,
1403
1421
  rootBoundary: r,
1404
1422
  padding: a
1405
- })[_(h)], x;
1423
+ })[_(p)], x;
1406
1424
  }, {});
1407
- return Object.keys(u).sort(function(x, h) {
1408
- return u[x] - u[h];
1425
+ return Object.keys(u).sort(function(x, p) {
1426
+ return u[x] - u[p];
1409
1427
  });
1410
1428
  }
1411
- function gs(t) {
1429
+ function ms(t) {
1412
1430
  if (_(t) === oe)
1413
1431
  return [];
1414
- var e = Mt(t);
1415
- return [Se(t), e, Se(e)];
1432
+ var e = It(t);
1433
+ return [ke(t), e, ke(e)];
1416
1434
  }
1417
- function vs(t) {
1435
+ function bs(t) {
1418
1436
  var e = t.state, i = t.options, s = t.name;
1419
1437
  if (!e.modifiersData[s]._skip) {
1420
- for (var n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !0 : a, o = i.fallbackPlacements, d = i.padding, c = i.boundary, v = i.rootBoundary, w = i.altBoundary, u = i.flipVariations, x = u === void 0 ? !0 : u, h = i.allowedAutoPlacements, p = e.options.placement, y = _(p), $ = y === p, L = o || ($ || !x ? [Mt(p)] : gs(p)), f = [p].concat(L).reduce(function(st, X) {
1421
- return st.concat(_(X) === oe ? hs(e, {
1438
+ for (var n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !0 : a, o = i.fallbackPlacements, d = i.padding, c = i.boundary, v = i.rootBoundary, w = i.altBoundary, u = i.flipVariations, x = u === void 0 ? !0 : u, p = i.allowedAutoPlacements, h = e.options.placement, y = _(h), $ = y === h, L = o || ($ || !x ? [It(h)] : ms(h)), f = [h].concat(L).reduce(function(st, X) {
1439
+ return st.concat(_(X) === oe ? vs(e, {
1422
1440
  placement: X,
1423
1441
  boundary: c,
1424
1442
  rootBoundary: v,
1425
1443
  padding: d,
1426
1444
  flipVariations: x,
1427
- allowedAutoPlacements: h
1445
+ allowedAutoPlacements: p
1428
1446
  }) : X);
1429
- }, []), m = e.rects.reference, b = e.rects.popper, O = /* @__PURE__ */ new Map(), S = !0, k = f[0], C = 0; C < f.length; C++) {
1430
- var A = f[C], V = _(A), P = ht(A) === ut, q = [T, F].indexOf(V) >= 0, U = q ? "width" : "height", M = Et(e, {
1431
- placement: A,
1447
+ }, []), m = e.rects.reference, b = e.rects.popper, O = /* @__PURE__ */ new Map(), A = !0, k = f[0], C = 0; C < f.length; C++) {
1448
+ var S = f[C], V = _(S), T = pt(S) === ut, q = [P, F].indexOf(V) >= 0, U = q ? "width" : "height", I = Et(e, {
1449
+ placement: S,
1432
1450
  boundary: c,
1433
1451
  rootBoundary: v,
1434
1452
  altBoundary: w,
1435
1453
  padding: d
1436
- }), W = q ? P ? N : D : P ? F : T;
1437
- m[U] > b[U] && (W = Mt(W));
1438
- var kt = Mt(W), G = [];
1439
- if (r && G.push(M[V] <= 0), l && G.push(M[W] <= 0, M[kt] <= 0), G.every(function(st) {
1454
+ }), W = q ? T ? N : D : T ? F : P;
1455
+ m[U] > b[U] && (W = It(W));
1456
+ var kt = It(W), G = [];
1457
+ if (r && G.push(I[V] <= 0), l && G.push(I[W] <= 0, I[kt] <= 0), G.every(function(st) {
1440
1458
  return st;
1441
1459
  })) {
1442
- k = A, S = !1;
1460
+ k = S, A = !1;
1443
1461
  break;
1444
1462
  }
1445
- O.set(A, G);
1463
+ O.set(S, G);
1446
1464
  }
1447
- if (S)
1448
- for (var St = x ? 3 : 1, Vt = function(X) {
1449
- var vt = f.find(function(Pt) {
1450
- var J = O.get(Pt);
1465
+ if (A)
1466
+ for (var At = x ? 3 : 1, Vt = function(X) {
1467
+ var vt = f.find(function(Tt) {
1468
+ var J = O.get(Tt);
1451
1469
  if (J)
1452
1470
  return J.slice(0, X).every(function(Wt) {
1453
1471
  return Wt;
@@ -1455,24 +1473,24 @@ function vs(t) {
1455
1473
  });
1456
1474
  if (vt)
1457
1475
  return k = vt, "break";
1458
- }, gt = St; gt > 0; gt--) {
1459
- var At = Vt(gt);
1460
- if (At === "break") break;
1476
+ }, gt = At; gt > 0; gt--) {
1477
+ var St = Vt(gt);
1478
+ if (St === "break") break;
1461
1479
  }
1462
1480
  e.placement !== k && (e.modifiersData[s]._skip = !0, e.placement = k, e.reset = !0);
1463
1481
  }
1464
1482
  }
1465
- const ms = {
1483
+ const ws = {
1466
1484
  name: "flip",
1467
1485
  enabled: !0,
1468
1486
  phase: "main",
1469
- fn: vs,
1487
+ fn: bs,
1470
1488
  requiresIfExists: ["offset"],
1471
1489
  data: {
1472
1490
  _skip: !1
1473
1491
  }
1474
1492
  };
1475
- function Pe(t, e, i) {
1493
+ function Se(t, e, i) {
1476
1494
  return i === void 0 && (i = {
1477
1495
  x: 0,
1478
1496
  y: 0
@@ -1484,16 +1502,16 @@ function Pe(t, e, i) {
1484
1502
  };
1485
1503
  }
1486
1504
  function Te(t) {
1487
- return [T, N, F, D].some(function(e) {
1505
+ return [P, N, F, D].some(function(e) {
1488
1506
  return t[e] >= 0;
1489
1507
  });
1490
1508
  }
1491
- function bs(t) {
1509
+ function ys(t) {
1492
1510
  var e = t.state, i = t.name, s = e.rects.reference, n = e.rects.popper, r = e.modifiersData.preventOverflow, a = Et(e, {
1493
1511
  elementContext: "reference"
1494
1512
  }), l = Et(e, {
1495
1513
  altBoundary: !0
1496
- }), o = Pe(a, s), d = Pe(l, n, r), c = Te(o), v = Te(d);
1514
+ }), o = Se(a, s), d = Se(l, n, r), c = Te(o), v = Te(d);
1497
1515
  e.modifiersData[i] = {
1498
1516
  referenceClippingOffsets: o,
1499
1517
  popperEscapeOffsets: d,
@@ -1504,15 +1522,15 @@ function bs(t) {
1504
1522
  "data-popper-escaped": v
1505
1523
  });
1506
1524
  }
1507
- const ws = {
1525
+ const xs = {
1508
1526
  name: "hide",
1509
1527
  enabled: !0,
1510
1528
  phase: "main",
1511
1529
  requiresIfExists: ["preventOverflow"],
1512
- fn: bs
1530
+ fn: ys
1513
1531
  };
1514
- function ys(t, e, i) {
1515
- var s = _(t), n = [D, T].indexOf(s) >= 0 ? -1 : 1, r = typeof i == "function" ? i(Object.assign({}, e, {
1532
+ function Es(t, e, i) {
1533
+ var s = _(t), n = [D, P].indexOf(s) >= 0 ? -1 : 1, r = typeof i == "function" ? i(Object.assign({}, e, {
1516
1534
  placement: t
1517
1535
  })) : i, a = r[0], l = r[1];
1518
1536
  return a = a || 0, l = (l || 0) * n, [D, N].indexOf(s) >= 0 ? {
@@ -1523,20 +1541,20 @@ function ys(t, e, i) {
1523
1541
  y: l
1524
1542
  };
1525
1543
  }
1526
- function xs(t) {
1544
+ function Os(t) {
1527
1545
  var e = t.state, i = t.options, s = t.name, n = i.offset, r = n === void 0 ? [0, 0] : n, a = ze.reduce(function(c, v) {
1528
- return c[v] = ys(v, e.rects, r), c;
1546
+ return c[v] = Es(v, e.rects, r), c;
1529
1547
  }, {}), l = a[e.placement], o = l.x, d = l.y;
1530
1548
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += d), e.modifiersData[s] = a;
1531
1549
  }
1532
- const Es = {
1550
+ const $s = {
1533
1551
  name: "offset",
1534
1552
  enabled: !0,
1535
1553
  phase: "main",
1536
1554
  requires: ["popperOffsets"],
1537
- fn: xs
1555
+ fn: Os
1538
1556
  };
1539
- function Os(t) {
1557
+ function Ls(t) {
1540
1558
  var e = t.state, i = t.name;
1541
1559
  e.modifiersData[i] = Je({
1542
1560
  reference: e.rects.reference,
@@ -1545,72 +1563,72 @@ function Os(t) {
1545
1563
  placement: e.placement
1546
1564
  });
1547
1565
  }
1548
- const $s = {
1566
+ const Cs = {
1549
1567
  name: "popperOffsets",
1550
1568
  enabled: !0,
1551
1569
  phase: "read",
1552
- fn: Os,
1570
+ fn: Ls,
1553
1571
  data: {}
1554
1572
  };
1555
- function Ls(t) {
1573
+ function ks(t) {
1556
1574
  return t === "x" ? "y" : "x";
1557
1575
  }
1558
- function Cs(t) {
1559
- var e = t.state, i = t.options, s = t.name, n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !1 : a, o = i.boundary, d = i.rootBoundary, c = i.altBoundary, v = i.padding, w = i.tether, u = w === void 0 ? !0 : w, x = i.tetherOffset, h = x === void 0 ? 0 : x, p = Et(e, {
1576
+ function As(t) {
1577
+ var e = t.state, i = t.options, s = t.name, n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !1 : a, o = i.boundary, d = i.rootBoundary, c = i.altBoundary, v = i.padding, w = i.tether, u = w === void 0 ? !0 : w, x = i.tetherOffset, p = x === void 0 ? 0 : x, h = Et(e, {
1560
1578
  boundary: o,
1561
1579
  rootBoundary: d,
1562
1580
  padding: v,
1563
1581
  altBoundary: c
1564
- }), y = _(e.placement), $ = ht(e.placement), L = !$, f = ce(y), m = Ls(f), b = e.modifiersData.popperOffsets, O = e.rects.reference, S = e.rects.popper, k = typeof h == "function" ? h(Object.assign({}, e.rects, {
1582
+ }), y = _(e.placement), $ = pt(e.placement), L = !$, f = ce(y), m = ks(f), b = e.modifiersData.popperOffsets, O = e.rects.reference, A = e.rects.popper, k = typeof p == "function" ? p(Object.assign({}, e.rects, {
1565
1583
  placement: e.placement
1566
- })) : h, C = typeof k == "number" ? {
1584
+ })) : p, C = typeof k == "number" ? {
1567
1585
  mainAxis: k,
1568
1586
  altAxis: k
1569
1587
  } : Object.assign({
1570
1588
  mainAxis: 0,
1571
1589
  altAxis: 0
1572
- }, k), A = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, V = {
1590
+ }, k), S = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, V = {
1573
1591
  x: 0,
1574
1592
  y: 0
1575
1593
  };
1576
1594
  if (b) {
1577
1595
  if (r) {
1578
- var P, q = f === "y" ? T : D, U = f === "y" ? F : N, M = f === "y" ? "height" : "width", W = b[f], kt = W + p[q], G = W - p[U], St = u ? -S[M] / 2 : 0, Vt = $ === ut ? O[M] : S[M], gt = $ === ut ? -S[M] : -O[M], At = e.elements.arrow, st = u && At ? le(At) : {
1596
+ var T, q = f === "y" ? P : D, U = f === "y" ? F : N, I = f === "y" ? "height" : "width", W = b[f], kt = W + h[q], G = W - h[U], At = u ? -A[I] / 2 : 0, Vt = $ === ut ? O[I] : A[I], gt = $ === ut ? -A[I] : -O[I], St = e.elements.arrow, st = u && St ? le(St) : {
1579
1597
  width: 0,
1580
1598
  height: 0
1581
- }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ye(), vt = X[q], Pt = X[U], J = bt(0, O[M], st[M]), Wt = L ? O[M] / 2 - St - J - vt - C.mainAxis : Vt - J - vt - C.mainAxis, ti = L ? -O[M] / 2 + St + J + Pt + C.mainAxis : gt + J + Pt + C.mainAxis, Ht = e.elements.arrow && Ct(e.elements.arrow), ei = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, he = (P = A == null ? void 0 : A[f]) != null ? P : 0, ii = W + Wt - he - ei, si = W + ti - he, ge = bt(u ? It(kt, ii) : kt, W, u ? et(G, si) : G);
1582
- b[f] = ge, V[f] = ge - W;
1599
+ }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ye(), vt = X[q], Tt = X[U], J = bt(0, O[I], st[I]), Wt = L ? O[I] / 2 - At - J - vt - C.mainAxis : Vt - J - vt - C.mainAxis, ei = L ? -O[I] / 2 + At + J + Tt + C.mainAxis : gt + J + Tt + C.mainAxis, Ht = e.elements.arrow && Ct(e.elements.arrow), ii = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, he = (T = S == null ? void 0 : S[f]) != null ? T : 0, si = W + Wt - he - ii, ni = W + ei - he, pe = bt(u ? Mt(kt, si) : kt, W, u ? et(G, ni) : G);
1600
+ b[f] = pe, V[f] = pe - W;
1583
1601
  }
1584
1602
  if (l) {
1585
- var ve, ni = f === "x" ? T : D, ri = f === "x" ? F : N, Q = b[m], Tt = m === "y" ? "height" : "width", me = Q + p[ni], be = Q - p[ri], _t = [T, D].indexOf(y) !== -1, we = (ve = A == null ? void 0 : A[m]) != null ? ve : 0, ye = _t ? me : Q - O[Tt] - S[Tt] - we + C.altAxis, xe = _t ? Q + O[Tt] + S[Tt] - we - C.altAxis : be, Ee = u && _t ? Gi(ye, Q, xe) : bt(u ? ye : me, Q, u ? xe : be);
1586
- b[m] = Ee, V[m] = Ee - Q;
1603
+ var ge, ri = f === "x" ? P : D, oi = f === "x" ? F : N, Q = b[m], Pt = m === "y" ? "height" : "width", ve = Q + h[ri], me = Q - h[oi], _t = [P, D].indexOf(y) !== -1, be = (ge = S == null ? void 0 : S[m]) != null ? ge : 0, we = _t ? ve : Q - O[Pt] - A[Pt] - be + C.altAxis, ye = _t ? Q + O[Pt] + A[Pt] - be - C.altAxis : me, xe = u && _t ? Qi(we, Q, ye) : bt(u ? we : ve, Q, u ? ye : me);
1604
+ b[m] = xe, V[m] = xe - Q;
1587
1605
  }
1588
1606
  e.modifiersData[s] = V;
1589
1607
  }
1590
1608
  }
1591
- const ks = {
1609
+ const Ss = {
1592
1610
  name: "preventOverflow",
1593
1611
  enabled: !0,
1594
1612
  phase: "main",
1595
- fn: Cs,
1613
+ fn: As,
1596
1614
  requiresIfExists: ["offset"]
1597
1615
  };
1598
- function Ss(t) {
1616
+ function Ts(t) {
1599
1617
  return {
1600
1618
  scrollLeft: t.scrollLeft,
1601
1619
  scrollTop: t.scrollTop
1602
1620
  };
1603
1621
  }
1604
- function As(t) {
1605
- return t === R(t) || !j(t) ? de(t) : Ss(t);
1606
- }
1607
1622
  function Ps(t) {
1623
+ return t === R(t) || !j(t) ? de(t) : Ts(t);
1624
+ }
1625
+ function Ds(t) {
1608
1626
  var e = t.getBoundingClientRect(), i = ft(e.width) / t.offsetWidth || 1, s = ft(e.height) / t.offsetHeight || 1;
1609
1627
  return i !== 1 || s !== 1;
1610
1628
  }
1611
- function Ts(t, e, i) {
1629
+ function Is(t, e, i) {
1612
1630
  i === void 0 && (i = !1);
1613
- var s = j(e), n = j(e) && Ps(e), r = Y(e), a = pt(t, n, i), l = {
1631
+ var s = j(e), n = j(e) && Ds(e), r = Y(e), a = ht(t, n, i), l = {
1614
1632
  scrollLeft: 0,
1615
1633
  scrollTop: 0
1616
1634
  }, o = {
@@ -1618,14 +1636,14 @@ function Ts(t, e, i) {
1618
1636
  y: 0
1619
1637
  };
1620
1638
  return (s || !s && !i) && ((z(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1621
- fe(r)) && (l = As(e)), j(e) ? (o = pt(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : r && (o.x = ue(r))), {
1639
+ fe(r)) && (l = Ps(e)), j(e) ? (o = ht(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : r && (o.x = ue(r))), {
1622
1640
  x: a.left + l.scrollLeft - o.x,
1623
1641
  y: a.top + l.scrollTop - o.y,
1624
1642
  width: a.width,
1625
1643
  height: a.height
1626
1644
  };
1627
1645
  }
1628
- function Ds(t) {
1646
+ function Ms(t) {
1629
1647
  var e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), s = [];
1630
1648
  t.forEach(function(r) {
1631
1649
  e.set(r.name, r);
@@ -1644,15 +1662,15 @@ function Ds(t) {
1644
1662
  i.has(r.name) || n(r);
1645
1663
  }), s;
1646
1664
  }
1647
- function Ms(t) {
1648
- var e = Ds(t);
1649
- return zi.reduce(function(i, s) {
1665
+ function Rs(t) {
1666
+ var e = Ms(t);
1667
+ return Xi.reduce(function(i, s) {
1650
1668
  return i.concat(e.filter(function(n) {
1651
1669
  return n.phase === s;
1652
1670
  }));
1653
1671
  }, []);
1654
1672
  }
1655
- function Is(t) {
1673
+ function Bs(t) {
1656
1674
  var e;
1657
1675
  return function() {
1658
1676
  return e || (e = new Promise(function(i) {
@@ -1662,7 +1680,7 @@ function Is(t) {
1662
1680
  })), e;
1663
1681
  };
1664
1682
  }
1665
- function Rs(t) {
1683
+ function js(t) {
1666
1684
  var e = t.reduce(function(i, s) {
1667
1685
  var n = i[s.name];
1668
1686
  return i[s.name] = n ? Object.assign({}, n, s, {
@@ -1674,27 +1692,27 @@ function Rs(t) {
1674
1692
  return e[i];
1675
1693
  });
1676
1694
  }
1677
- var De = {
1695
+ var Pe = {
1678
1696
  placement: "bottom",
1679
1697
  modifiers: [],
1680
1698
  strategy: "absolute"
1681
1699
  };
1682
- function Me() {
1700
+ function De() {
1683
1701
  for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
1684
1702
  e[i] = arguments[i];
1685
1703
  return !e.some(function(s) {
1686
1704
  return !(s && typeof s.getBoundingClientRect == "function");
1687
1705
  });
1688
1706
  }
1689
- function Bs(t) {
1707
+ function Fs(t) {
1690
1708
  t === void 0 && (t = {});
1691
- var e = t, i = e.defaultModifiers, s = i === void 0 ? [] : i, n = e.defaultOptions, r = n === void 0 ? De : n;
1709
+ var e = t, i = e.defaultModifiers, s = i === void 0 ? [] : i, n = e.defaultOptions, r = n === void 0 ? Pe : n;
1692
1710
  return function(l, o, d) {
1693
1711
  d === void 0 && (d = r);
1694
1712
  var c = {
1695
1713
  placement: "bottom",
1696
1714
  orderedModifiers: [],
1697
- options: Object.assign({}, De, r),
1715
+ options: Object.assign({}, Pe, r),
1698
1716
  modifiersData: {},
1699
1717
  elements: {
1700
1718
  reference: l,
@@ -1706,11 +1724,11 @@ function Bs(t) {
1706
1724
  state: c,
1707
1725
  setOptions: function(y) {
1708
1726
  var $ = typeof y == "function" ? y(c.options) : y;
1709
- h(), c.options = Object.assign({}, r, c.options, $), c.scrollParents = {
1727
+ p(), c.options = Object.assign({}, r, c.options, $), c.scrollParents = {
1710
1728
  reference: it(l) ? wt(l) : l.contextElement ? wt(l.contextElement) : [],
1711
1729
  popper: wt(o)
1712
1730
  };
1713
- var L = Ms(Rs([].concat(s, c.options.modifiers)));
1731
+ var L = Rs(js([].concat(s, c.options.modifiers)));
1714
1732
  return c.orderedModifiers = L.filter(function(f) {
1715
1733
  return f.enabled;
1716
1734
  }), x(), u.update();
@@ -1723,9 +1741,9 @@ function Bs(t) {
1723
1741
  forceUpdate: function() {
1724
1742
  if (!w) {
1725
1743
  var y = c.elements, $ = y.reference, L = y.popper;
1726
- if (Me($, L)) {
1744
+ if (De($, L)) {
1727
1745
  c.rects = {
1728
- reference: Ts($, Ct(L), c.options.strategy === "fixed"),
1746
+ reference: Is($, Ct(L), c.options.strategy === "fixed"),
1729
1747
  popper: le(L)
1730
1748
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(C) {
1731
1749
  return c.modifiersData[C.name] = Object.assign({}, C.data);
@@ -1735,10 +1753,10 @@ function Bs(t) {
1735
1753
  c.reset = !1, f = -1;
1736
1754
  continue;
1737
1755
  }
1738
- var m = c.orderedModifiers[f], b = m.fn, O = m.options, S = O === void 0 ? {} : O, k = m.name;
1756
+ var m = c.orderedModifiers[f], b = m.fn, O = m.options, A = O === void 0 ? {} : O, k = m.name;
1739
1757
  typeof b == "function" && (c = b({
1740
1758
  state: c,
1741
- options: S,
1759
+ options: A,
1742
1760
  name: k,
1743
1761
  instance: u
1744
1762
  }) || c);
@@ -1748,23 +1766,23 @@ function Bs(t) {
1748
1766
  },
1749
1767
  // Async and optimistically optimized update – it will not be executed if
1750
1768
  // not necessary (debounced to run at most once-per-tick)
1751
- update: Is(function() {
1752
- return new Promise(function(p) {
1753
- u.forceUpdate(), p(c);
1769
+ update: Bs(function() {
1770
+ return new Promise(function(h) {
1771
+ u.forceUpdate(), h(c);
1754
1772
  });
1755
1773
  }),
1756
1774
  destroy: function() {
1757
- h(), w = !0;
1775
+ p(), w = !0;
1758
1776
  }
1759
1777
  };
1760
- if (!Me(l, o))
1778
+ if (!De(l, o))
1761
1779
  return u;
1762
- u.setOptions(d).then(function(p) {
1763
- !w && d.onFirstUpdate && d.onFirstUpdate(p);
1780
+ u.setOptions(d).then(function(h) {
1781
+ !w && d.onFirstUpdate && d.onFirstUpdate(h);
1764
1782
  });
1765
1783
  function x() {
1766
- c.orderedModifiers.forEach(function(p) {
1767
- var y = p.name, $ = p.options, L = $ === void 0 ? {} : $, f = p.effect;
1784
+ c.orderedModifiers.forEach(function(h) {
1785
+ var y = h.name, $ = h.options, L = $ === void 0 ? {} : $, f = h.effect;
1768
1786
  if (typeof f == "function") {
1769
1787
  var m = f({
1770
1788
  state: c,
@@ -1777,16 +1795,16 @@ function Bs(t) {
1777
1795
  }
1778
1796
  });
1779
1797
  }
1780
- function h() {
1781
- v.forEach(function(p) {
1782
- return p();
1798
+ function p() {
1799
+ v.forEach(function(h) {
1800
+ return h();
1783
1801
  }), v = [];
1784
1802
  }
1785
1803
  return u;
1786
1804
  };
1787
1805
  }
1788
- var js = [os, $s, ns, Yi, Es, ms, ks, ts, ws], Fs = /* @__PURE__ */ Bs({
1789
- defaultModifiers: js
1806
+ var Ns = [ls, Cs, os, Ui, $s, ws, Ss, is, xs], Vs = /* @__PURE__ */ Fs({
1807
+ defaultModifiers: Ns
1790
1808
  });
1791
1809
  async function Jt(t) {
1792
1810
  const e = this.collection.findIndex((i) => i.id === t.id);
@@ -1807,27 +1825,31 @@ function Qe(t) {
1807
1825
  });
1808
1826
  }), delete t.__eventListeners), t;
1809
1827
  }
1810
- async function pe(t) {
1828
+ async function Ze(t) {
1811
1829
  const e = Ne.call(this, t);
1812
- return e.el.classList.add(this.settings.stateActive), e.trigger.hasAttribute("aria-controls") && e.trigger.setAttribute("aria-expanded", "true"), e.config = Fe(e.el, this.settings), e.popper.setOptions({
1830
+ return e.el.classList.add(this.settings.stateActive), e.trigger.hasAttribute("aria-controls") && e.trigger.setAttribute("aria-expanded", "true"), e.config = je(e.el, this.settings), e.popper.setOptions({
1813
1831
  placement: e.config.placement,
1814
1832
  modifiers: [
1815
1833
  { name: "eventListeners", enabled: !0 },
1816
- ...Si(e.config)
1834
+ ...Fe(e.config)
1817
1835
  ]
1818
1836
  }), e.popper.update(), e.state = "opened", e;
1819
1837
  }
1820
- async function Ns(t, e) {
1838
+ async function Ws(t, e) {
1821
1839
  Jt.call(this, t);
1822
1840
  const i = this, s = {
1823
1841
  id: t.id,
1824
1842
  state: "closed",
1825
1843
  el: t,
1826
1844
  trigger: e,
1827
- popper: Fs(e, t),
1828
- config: Fe(t, this.settings),
1845
+ toggleDelayId: null,
1846
+ popper: Vs(e, t),
1847
+ config: je(t, this.settings),
1848
+ get isTooltip() {
1849
+ return e.hasAttribute("aria-describedby");
1850
+ },
1829
1851
  open() {
1830
- return pe.call(i, this);
1852
+ return Ze.call(i, this);
1831
1853
  },
1832
1854
  close() {
1833
1855
  return re.call(i, this);
@@ -1836,17 +1858,19 @@ async function Ns(t, e) {
1836
1858
  return Jt.call(i, this);
1837
1859
  }
1838
1860
  };
1839
- return s.trigger.hasAttribute("aria-controls") && s.trigger.setAttribute("aria-expanded", "false"), Ze.call(this, s), this.collection.push(s), s.el.classList.contains(this.settings.stateActive) && (await s.open(), He.call(this, s)), s;
1861
+ return s.trigger.hasAttribute("aria-controls") && s.trigger.setAttribute("aria-expanded", "false"), ti.call(this, s), this.collection.push(s), s.el.classList.contains(this.settings.stateActive) && (await s.open(), He.call(this, s)), s.popper.setOptions({
1862
+ placement: s.config.placement
1863
+ }), s;
1840
1864
  }
1841
- function Ze(t) {
1865
+ function ti(t) {
1842
1866
  return t.__eventListeners || (t.config.event === "hover" ? (t.__eventListeners = [{
1843
1867
  el: ["trigger"],
1844
1868
  type: ["mouseenter", "focus"],
1845
- listener: pe.bind(this, t)
1869
+ listener: Di.bind(this, t)
1846
1870
  }, {
1847
1871
  el: ["el", "trigger"],
1848
1872
  type: ["mouseleave", "focusout"],
1849
- listener: We.bind(this, t)
1873
+ listener: Ii.bind(this, t)
1850
1874
  }], t.__eventListeners.forEach((i) => {
1851
1875
  i.el.forEach((s) => {
1852
1876
  i.type.forEach((n) => {
@@ -1856,7 +1880,7 @@ function Ze(t) {
1856
1880
  })) : (t.__eventListeners = [{
1857
1881
  el: ["trigger"],
1858
1882
  type: ["click"],
1859
- listener: Ti.bind(this, t)
1883
+ listener: Pi.bind(this, t)
1860
1884
  }], t.__eventListeners.forEach((i) => {
1861
1885
  i.el.forEach((s) => {
1862
1886
  i.type.forEach((n) => {
@@ -1866,11 +1890,17 @@ function Ze(t) {
1866
1890
  }))), t;
1867
1891
  }
1868
1892
  var dt;
1869
- class zs extends Rt {
1893
+ class Xs extends Rt {
1870
1894
  constructor(i) {
1871
1895
  super();
1872
1896
  H(this, dt);
1873
- this.defaults = ki, this.settings = { ...this.defaults, ...i }, this.trigger = null, I(this, dt, Di.bind(this)), this.settings.autoMount && this.mount();
1897
+ this.defaults = Ai, this.settings = { ...this.defaults, ...i }, this.trigger = null, M(this, dt, Mi.bind(this)), this.settings.autoMount && this.mount();
1898
+ }
1899
+ get active() {
1900
+ return this.collection.find((i) => i.state == "opened");
1901
+ }
1902
+ get activeTooltip() {
1903
+ return this.collection.find((i) => i.state == "opened" && i.isTooltip);
1874
1904
  }
1875
1905
  async mount(i) {
1876
1906
  i && (this.settings = { ...this.settings, ...i });
@@ -1882,7 +1912,7 @@ class zs extends Rt {
1882
1912
  }
1883
1913
  mountEventListeners(i = !0) {
1884
1914
  i && this.collection.forEach((s) => {
1885
- Ze.call(this, s);
1915
+ ti.call(this, s);
1886
1916
  }), document.addEventListener("keydown", E(this, dt), !1);
1887
1917
  }
1888
1918
  unmountEventListeners(i = !0) {
@@ -1891,15 +1921,15 @@ class zs extends Rt {
1891
1921
  }), document.removeEventListener("keydown", E(this, dt), !1);
1892
1922
  }
1893
1923
  register(i) {
1894
- const s = Pi.call(this, i);
1895
- return s.error ? Promise.reject(s.error) : Ns.call(this, s.popover, s.trigger);
1924
+ const s = Ti.call(this, i);
1925
+ return s.error ? Promise.reject(s.error) : Ws.call(this, s.popover, s.trigger);
1896
1926
  }
1897
1927
  deregister(i) {
1898
1928
  let s = this.get(i.id || i);
1899
1929
  return s ? Jt.call(this, s) : Promise.reject(new Error(`Failed to deregister; popover does not exist in collection with ID of: "${i.id || i}".`));
1900
1930
  }
1901
1931
  open(i) {
1902
- return pe.call(this, i);
1932
+ return Ze.call(this, i);
1903
1933
  }
1904
1934
  close(i) {
1905
1935
  return re.call(this, i);
@@ -1907,9 +1937,9 @@ class zs extends Rt {
1907
1937
  }
1908
1938
  dt = new WeakMap();
1909
1939
  export {
1910
- Hs as Drawer,
1911
- _s as Modal,
1912
- zs as Popover,
1913
- Ws as core
1940
+ zs as Drawer,
1941
+ Ks as Modal,
1942
+ Xs as Popover,
1943
+ _s as core
1914
1944
  };
1915
1945
  //# sourceMappingURL=index.js.map