@vue-interface/btn-dropdown 2.0.0-beta.1 → 2.0.0-beta.4

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,13 +1,13 @@
1
- import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Ue, normalizeClass as F, h as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as Mt, createSlots as Lt } from "vue";
2
- var R = "top", I = "bottom", N = "right", j = "left", ze = "auto", $e = [R, I, N, j], ae = "start", Oe = "end", Vt = "clippingParents", wt = "viewport", ve = "popper", qt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
3
- return e.concat([t + "-" + ae, t + "-" + Oe]);
4
- }, []), Ot = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
5
- return e.concat([t, t + "-" + ae, t + "-" + Oe]);
6
- }, []), Ft = "beforeRead", Wt = "read", Ht = "afterRead", Ut = "beforeMain", Xt = "main", Yt = "afterMain", Gt = "beforeWrite", Jt = "write", Kt = "afterWrite", qe = [Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt, Kt];
1
+ import { defineComponent as Mt, openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as me, withCtx as B, renderSlot as P, createTextVNode as ge, toDisplayString as be, createElementBlock as Ue, normalizeClass as F, h as It, Fragment as Lt, resolveComponent as te, createVNode as ye, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, withKeys as bt, withModifiers as yt, normalizeStyle as Vt, createSlots as qt } from "vue";
2
+ var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j], ae = "start", we = "end", Ft = "clippingParents", wt = "viewport", ce = "popper", Wt = "reference", st = /* @__PURE__ */ xe.reduce(function(e, t) {
3
+ return e.concat([t + "-" + ae, t + "-" + we]);
4
+ }, []), Ot = /* @__PURE__ */ [].concat(xe, [Te]).reduce(function(e, t) {
5
+ return e.concat([t, t + "-" + ae, t + "-" + we]);
6
+ }, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite", qe = [Ht, Ut, Xt, Yt, Kt, Gt, Jt, Qt, Zt];
7
7
  function H(e) {
8
8
  return e ? (e.nodeName || "").toLowerCase() : null;
9
9
  }
10
- function M(e) {
10
+ function I(e) {
11
11
  if (e == null)
12
12
  return window;
13
13
  if (e.toString() !== "[object Window]") {
@@ -17,30 +17,30 @@ function M(e) {
17
17
  return e;
18
18
  }
19
19
  function ne(e) {
20
- var t = M(e).Element;
20
+ var t = I(e).Element;
21
21
  return e instanceof t || e instanceof Element;
22
22
  }
23
- function T(e) {
24
- var t = M(e).HTMLElement;
23
+ function z(e) {
24
+ var t = I(e).HTMLElement;
25
25
  return e instanceof t || e instanceof HTMLElement;
26
26
  }
27
27
  function Xe(e) {
28
28
  if (typeof ShadowRoot > "u")
29
29
  return !1;
30
- var t = M(e).ShadowRoot;
30
+ var t = I(e).ShadowRoot;
31
31
  return e instanceof t || e instanceof ShadowRoot;
32
32
  }
33
- function Qt(e) {
33
+ function _t(e) {
34
34
  var t = e.state;
35
35
  Object.keys(t.elements).forEach(function(r) {
36
36
  var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
37
- !T(i) || !H(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
37
+ !z(i) || !H(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
38
38
  var l = o[a];
39
39
  l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l);
40
40
  }));
41
41
  });
42
42
  }
43
- function Zt(e) {
43
+ function er(e) {
44
44
  var t = e.state, r = {
45
45
  popper: {
46
46
  position: t.options.strategy,
@@ -58,18 +58,18 @@ function Zt(e) {
58
58
  var o = t.elements[n], i = t.attributes[n] || {}, a = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = a.reduce(function(s, f) {
59
59
  return s[f] = "", s;
60
60
  }, {});
61
- !T(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
61
+ !z(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
62
62
  o.removeAttribute(s);
63
63
  }));
64
64
  });
65
65
  };
66
66
  }
67
- const _t = {
67
+ const tr = {
68
68
  name: "applyStyles",
69
69
  enabled: !0,
70
70
  phase: "write",
71
- fn: Qt,
72
- effect: Zt,
71
+ fn: _t,
72
+ effect: er,
73
73
  requires: ["computeStyles"]
74
74
  };
75
75
  function V(e) {
@@ -88,8 +88,8 @@ function xt() {
88
88
  function le(e, t, r) {
89
89
  t === void 0 && (t = !1), r === void 0 && (r = !1);
90
90
  var n = e.getBoundingClientRect(), o = 1, i = 1;
91
- t && T(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
92
- var a = ne(e) ? M(e) : window, l = a.visualViewport, s = !xt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
91
+ t && z(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
92
+ var a = ne(e) ? I(e) : window, l = a.visualViewport, s = !xt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
93
93
  return {
94
94
  width: h,
95
95
  height: y,
@@ -125,29 +125,29 @@ function $t(e, t) {
125
125
  return !1;
126
126
  }
127
127
  function q(e) {
128
- return M(e).getComputedStyle(e);
128
+ return I(e).getComputedStyle(e);
129
129
  }
130
- function er(e) {
130
+ function rr(e) {
131
131
  return ["table", "td", "th"].indexOf(H(e)) >= 0;
132
132
  }
133
133
  function Y(e) {
134
134
  return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
135
135
  }
136
- function Te(e) {
136
+ function ze(e) {
137
137
  return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (Xe(e) ? e.host : null) || Y(e);
138
138
  }
139
139
  function lt(e) {
140
- return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
140
+ return !z(e) || q(e).position === "fixed" ? null : e.offsetParent;
141
141
  }
142
- function tr(e) {
142
+ function nr(e) {
143
143
  var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
144
- if (r && T(e)) {
144
+ if (r && z(e)) {
145
145
  var n = q(e);
146
146
  if (n.position === "fixed")
147
147
  return null;
148
148
  }
149
- var o = Te(e);
150
- for (Xe(o) && (o = o.host); T(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
149
+ var o = ze(e);
150
+ for (Xe(o) && (o = o.host); z(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
151
151
  var i = q(o);
152
152
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
153
153
  return o;
@@ -155,19 +155,19 @@ function tr(e) {
155
155
  }
156
156
  return null;
157
157
  }
158
- function Ce(e) {
159
- for (var t = M(e), r = lt(e); r && er(r) && q(r).position === "static"; )
158
+ function $e(e) {
159
+ for (var t = I(e), r = lt(e); r && rr(r) && q(r).position === "static"; )
160
160
  r = lt(r);
161
- return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || tr(e) || t;
161
+ return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || nr(e) || t;
162
162
  }
163
- function Ge(e) {
163
+ function Ke(e) {
164
164
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
165
165
  }
166
- function he(e, t, r) {
166
+ function ve(e, t, r) {
167
167
  return re(e, je(t, r));
168
168
  }
169
- function rr(e, t, r) {
170
- var n = he(e, t, r);
169
+ function or(e, t, r) {
170
+ var n = ve(e, t, r);
171
171
  return n > r ? r : n;
172
172
  }
173
173
  function Ct() {
@@ -186,47 +186,47 @@ function Et(e, t) {
186
186
  return r[n] = e, r;
187
187
  }, {});
188
188
  }
189
- var nr = function(t, r) {
189
+ var ir = function(t, r) {
190
190
  return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
191
191
  placement: r.placement
192
- })) : t, Pt(typeof t != "number" ? t : Et(t, $e));
192
+ })) : t, Pt(typeof t != "number" ? t : Et(t, xe));
193
193
  };
194
- function or(e) {
195
- var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j, N].indexOf(l) >= 0, p = f ? "height" : "width";
194
+ function ar(e) {
195
+ var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ke(l), f = [j, M].indexOf(l) >= 0, p = f ? "height" : "width";
196
196
  if (!(!i || !a)) {
197
- var h = nr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? I : N, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = Ce(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, c = h[u], g = C - y[p] - h[O], d = C / 2 - y[p] / 2 + $, x = he(c, d, g), E = s;
198
- r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - d, t);
197
+ var h = ir(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : M, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = $e(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, d = h[u], g = C - y[p] - h[O], c = C / 2 - y[p] / 2 + $, x = ve(d, c, g), E = s;
198
+ r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - c, t);
199
199
  }
200
200
  }
201
- function ir(e) {
201
+ function sr(e) {
202
202
  var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
203
203
  if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
204
- if (process.env.NODE_ENV !== "production" && (T(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !$t(t.elements.popper, o)) {
204
+ if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !$t(t.elements.popper, o)) {
205
205
  process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
206
206
  return;
207
207
  }
208
208
  t.elements.arrow = o;
209
209
  }
210
210
  }
211
- const ar = {
211
+ const lr = {
212
212
  name: "arrow",
213
213
  enabled: !0,
214
214
  phase: "main",
215
- fn: or,
216
- effect: ir,
215
+ fn: ar,
216
+ effect: sr,
217
217
  requires: ["popperOffsets"],
218
218
  requiresIfExists: ["preventOverflow"]
219
219
  };
220
220
  function pe(e) {
221
221
  return e.split("-")[1];
222
222
  }
223
- var sr = {
223
+ var pr = {
224
224
  top: "auto",
225
225
  right: "auto",
226
226
  bottom: "auto",
227
227
  left: "auto"
228
228
  };
229
- function lr(e) {
229
+ function fr(e) {
230
230
  var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
231
231
  return {
232
232
  x: se(t * o) / o || 0,
@@ -242,23 +242,23 @@ function pt(e) {
242
242
  y: m
243
243
  };
244
244
  u = v.x, m = v.y;
245
- var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, c = R, g = window;
245
+ var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, d = R, g = window;
246
246
  if (f) {
247
- var d = Ce(r), x = "clientHeight", E = "clientWidth";
248
- if (d === M(r) && (d = Y(r), q(d).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o === N) && i === Oe) {
249
- c = I;
250
- var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[x];
247
+ var c = $e(r), x = "clientHeight", E = "clientWidth";
248
+ if (c === I(r) && (c = Y(r), q(c).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), c = c, o === R || (o === j || o === M) && i === we) {
249
+ d = N;
250
+ var S = h && c === g && g.visualViewport ? g.visualViewport.height : c[x];
251
251
  m -= S - n.height, m *= s ? 1 : -1;
252
252
  }
253
- if (o === j || (o === R || o === I) && i === Oe) {
254
- $ = N;
255
- var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
253
+ if (o === j || (o === R || o === N) && i === we) {
254
+ $ = M;
255
+ var k = h && c === g && g.visualViewport ? g.visualViewport.width : c[E];
256
256
  u -= k - n.width, u *= s ? 1 : -1;
257
257
  }
258
258
  }
259
259
  var b = Object.assign({
260
260
  position: l
261
- }, f && sr), D = p === !0 ? lr({
261
+ }, f && pr), D = p === !0 ? fr({
262
262
  x: u,
263
263
  y: m
264
264
  }) : {
@@ -267,11 +267,11 @@ function pt(e) {
267
267
  };
268
268
  if (u = D.x, m = D.y, s) {
269
269
  var A;
270
- return Object.assign({}, b, (A = {}, A[c] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
270
+ return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
271
271
  }
272
- return Object.assign({}, b, (t = {}, t[c] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
272
+ return Object.assign({}, b, (t = {}, t[d] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
273
273
  }
274
- function pr(e) {
274
+ function ur(e) {
275
275
  var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
276
276
  if (process.env.NODE_ENV !== "production") {
277
277
  var f = q(t.elements.popper).transitionProperty || "";
@@ -305,18 +305,18 @@ function pr(e) {
305
305
  "data-popper-placement": t.placement
306
306
  });
307
307
  }
308
- const fr = {
308
+ const dr = {
309
309
  name: "computeStyles",
310
310
  enabled: !0,
311
311
  phase: "beforeWrite",
312
- fn: pr,
312
+ fn: ur,
313
313
  data: {}
314
314
  };
315
315
  var De = {
316
316
  passive: !0
317
317
  };
318
- function ur(e) {
319
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = M(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
318
+ function cr(e) {
319
+ var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = I(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
320
320
  return i && f.forEach(function(p) {
321
321
  p.addEventListener("scroll", r.update, De);
322
322
  }), l && s.addEventListener("resize", r.update, De), function() {
@@ -325,16 +325,16 @@ function ur(e) {
325
325
  }), l && s.removeEventListener("resize", r.update, De);
326
326
  };
327
327
  }
328
- const cr = {
328
+ const vr = {
329
329
  name: "eventListeners",
330
330
  enabled: !0,
331
331
  phase: "write",
332
332
  fn: function() {
333
333
  },
334
- effect: ur,
334
+ effect: cr,
335
335
  data: {}
336
336
  };
337
- var dr = {
337
+ var hr = {
338
338
  left: "right",
339
339
  right: "left",
340
340
  bottom: "top",
@@ -342,30 +342,30 @@ var dr = {
342
342
  };
343
343
  function Ae(e) {
344
344
  return e.replace(/left|right|bottom|top/g, function(t) {
345
- return dr[t];
345
+ return hr[t];
346
346
  });
347
347
  }
348
- var vr = {
348
+ var mr = {
349
349
  start: "end",
350
350
  end: "start"
351
351
  };
352
352
  function ft(e) {
353
353
  return e.replace(/start|end/g, function(t) {
354
- return vr[t];
354
+ return mr[t];
355
355
  });
356
356
  }
357
- function Je(e) {
358
- var t = M(e), r = t.pageXOffset, n = t.pageYOffset;
357
+ function Ge(e) {
358
+ var t = I(e), r = t.pageXOffset, n = t.pageYOffset;
359
359
  return {
360
360
  scrollLeft: r,
361
361
  scrollTop: n
362
362
  };
363
363
  }
364
- function Ke(e) {
365
- return le(Y(e)).left + Je(e).scrollLeft;
364
+ function Je(e) {
365
+ return le(Y(e)).left + Ge(e).scrollLeft;
366
366
  }
367
- function hr(e, t) {
368
- var r = M(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
367
+ function gr(e, t) {
368
+ var r = I(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
369
369
  if (o) {
370
370
  i = o.width, a = o.height;
371
371
  var f = xt();
@@ -374,12 +374,12 @@ function hr(e, t) {
374
374
  return {
375
375
  width: i,
376
376
  height: a,
377
- x: l + Ke(e),
377
+ x: l + Je(e),
378
378
  y: s
379
379
  };
380
380
  }
381
- function mr(e) {
382
- var t, r = Y(e), n = Je(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Ke(e), s = -n.scrollTop;
381
+ function br(e) {
382
+ var t, r = Y(e), n = Ge(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Je(e), s = -n.scrollTop;
383
383
  return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
384
384
  width: i,
385
385
  height: a,
@@ -392,13 +392,13 @@ function Qe(e) {
392
392
  return /auto|scroll|overlay|hidden/.test(r + o + n);
393
393
  }
394
394
  function St(e) {
395
- return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : St(Te(e));
395
+ return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : z(e) && Qe(e) ? e : St(ze(e));
396
396
  }
397
- function me(e, t) {
397
+ function he(e, t) {
398
398
  var r;
399
399
  t === void 0 && (t = []);
400
- var n = St(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = M(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
401
- return o ? l : l.concat(me(Te(a)));
400
+ var n = St(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = I(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
401
+ return o ? l : l.concat(he(ze(a)));
402
402
  }
403
403
  function We(e) {
404
404
  return Object.assign({}, e, {
@@ -408,21 +408,21 @@ function We(e) {
408
408
  bottom: e.y + e.height
409
409
  });
410
410
  }
411
- function gr(e, t) {
411
+ function yr(e, t) {
412
412
  var r = le(e, !1, t === "fixed");
413
413
  return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
414
414
  }
415
415
  function ut(e, t, r) {
416
- return t === wt ? We(hr(e, r)) : ne(t) ? gr(t, r) : We(mr(Y(e)));
416
+ return t === wt ? We(gr(e, r)) : ne(t) ? yr(t, r) : We(br(Y(e)));
417
417
  }
418
- function br(e) {
419
- var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
418
+ function wr(e) {
419
+ var t = he(ze(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && z(e) ? $e(e) : e;
420
420
  return ne(n) ? t.filter(function(o) {
421
421
  return ne(o) && $t(o, n) && H(o) !== "body";
422
422
  }) : [];
423
423
  }
424
- function yr(e, t, r, n) {
425
- var o = t === "clippingParents" ? br(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
424
+ function Or(e, t, r, n) {
425
+ var o = t === "clippingParents" ? wr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
426
426
  var p = ut(e, f, n);
427
427
  return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
428
428
  }, ut(e, a, n));
@@ -437,13 +437,13 @@ function kt(e) {
437
437
  y: t.y - r.height
438
438
  };
439
439
  break;
440
- case I:
440
+ case N:
441
441
  s = {
442
442
  x: a,
443
443
  y: t.y + t.height
444
444
  };
445
445
  break;
446
- case N:
446
+ case M:
447
447
  s = {
448
448
  x: t.x + t.width,
449
449
  y: l
@@ -461,52 +461,52 @@ function kt(e) {
461
461
  y: t.y
462
462
  };
463
463
  }
464
- var f = o ? Ge(o) : null;
464
+ var f = o ? Ke(o) : null;
465
465
  if (f != null) {
466
466
  var p = f === "y" ? "height" : "width";
467
467
  switch (i) {
468
468
  case ae:
469
469
  s[f] = s[f] - (t[p] / 2 - r[p] / 2);
470
470
  break;
471
- case Oe:
471
+ case we:
472
472
  s[f] = s[f] + (t[p] / 2 - r[p] / 2);
473
473
  break;
474
474
  }
475
475
  }
476
476
  return s;
477
477
  }
478
- function xe(e, t) {
478
+ function Oe(e, t) {
479
479
  t === void 0 && (t = {});
480
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Vt : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = Pt(typeof v != "number" ? v : Et(v, $e)), C = y === ve ? qt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = yr(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = kt({
481
- reference: d,
480
+ var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ce : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = Pt(typeof v != "number" ? v : Et(v, xe)), C = y === ce ? Wt : ce, $ = e.rects.popper, d = e.elements[O ? C : y], g = Or(ne(d) ? d : d.contextElement || Y(e.elements.popper), s, p, a), c = le(e.elements.reference), x = kt({
481
+ reference: c,
482
482
  element: $,
483
483
  strategy: "absolute",
484
484
  placement: o
485
- }), E = We(Object.assign({}, $, x)), S = y === ve ? E : d, k = {
485
+ }), E = We(Object.assign({}, $, x)), S = y === ce ? E : c, k = {
486
486
  top: g.top - S.top + w.top,
487
487
  bottom: S.bottom - g.bottom + w.bottom,
488
488
  left: g.left - S.left + w.left,
489
489
  right: S.right - g.right + w.right
490
490
  }, b = e.modifiersData.offset;
491
- if (y === ve && b) {
491
+ if (y === ce && b) {
492
492
  var D = b[o];
493
493
  Object.keys(k).forEach(function(A) {
494
- var G = [N, I].indexOf(A) >= 0 ? 1 : -1, J = [R, I].indexOf(A) >= 0 ? "y" : "x";
495
- k[A] += D[J] * G;
494
+ var K = [M, N].indexOf(A) >= 0 ? 1 : -1, G = [R, N].indexOf(A) >= 0 ? "y" : "x";
495
+ k[A] += D[G] * K;
496
496
  });
497
497
  }
498
498
  return k;
499
499
  }
500
- function wr(e, t) {
500
+ function xr(e, t) {
501
501
  t === void 0 && (t = {});
502
502
  var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? Ot : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
503
503
  return pe(O) === p;
504
- }) : $e, y = h.filter(function(O) {
504
+ }) : xe, y = h.filter(function(O) {
505
505
  return f.indexOf(O) >= 0;
506
506
  });
507
507
  y.length === 0 && (y = h, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
508
508
  var u = y.reduce(function(O, m) {
509
- return O[m] = xe(e, {
509
+ return O[m] = Oe(e, {
510
510
  placement: m,
511
511
  boundary: o,
512
512
  rootBoundary: i,
@@ -517,17 +517,17 @@ function wr(e, t) {
517
517
  return u[O] - u[m];
518
518
  });
519
519
  }
520
- function Or(e) {
521
- if (V(e) === ze)
520
+ function $r(e) {
521
+ if (V(e) === Te)
522
522
  return [];
523
523
  var t = Ae(e);
524
524
  return [ft(e), t, ft(t)];
525
525
  }
526
- function xr(e) {
526
+ function Cr(e) {
527
527
  var t = e.state, r = e.options, n = e.name;
528
528
  if (!t.modifiersData[n]._skip) {
529
- for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : Or(v)), c = [v].concat($).reduce(function(oe, U) {
530
- return oe.concat(V(U) === ze ? wr(t, {
529
+ for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : $r(v)), d = [v].concat($).reduce(function(oe, U) {
530
+ return oe.concat(V(U) === Te ? xr(t, {
531
531
  placement: U,
532
532
  boundary: p,
533
533
  rootBoundary: h,
@@ -535,54 +535,54 @@ function xr(e) {
535
535
  flipVariations: O,
536
536
  allowedAutoPlacements: m
537
537
  }) : U);
538
- }, []), g = t.rects.reference, d = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = c[0], k = 0; k < c.length; k++) {
539
- var b = c[k], D = V(b), A = pe(b) === ae, G = [R, I].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
538
+ }, []), g = t.rects.reference, c = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = d[0], k = 0; k < d.length; k++) {
539
+ var b = d[k], D = V(b), A = pe(b) === ae, K = [R, N].indexOf(D) >= 0, G = K ? "width" : "height", T = Oe(t, {
540
540
  placement: b,
541
541
  boundary: p,
542
542
  rootBoundary: h,
543
543
  altBoundary: y,
544
544
  padding: f
545
- }), L = G ? A ? N : j : A ? I : R;
546
- g[J] > d[J] && (L = Ae(L));
547
- var Pe = Ae(L), K = [];
548
- if (i && K.push(z[D] <= 0), l && K.push(z[L] <= 0, z[Pe] <= 0), K.every(function(oe) {
545
+ }), L = K ? A ? M : j : A ? N : R;
546
+ g[G] > c[G] && (L = Ae(L));
547
+ var Pe = Ae(L), J = [];
548
+ if (i && J.push(T[D] <= 0), l && J.push(T[L] <= 0, T[Pe] <= 0), J.every(function(oe) {
549
549
  return oe;
550
550
  })) {
551
551
  S = b, E = !1;
552
552
  break;
553
553
  }
554
- x.set(b, K);
554
+ x.set(b, J);
555
555
  }
556
556
  if (E)
557
- for (var Ee = O ? 3 : 1, Ie = function(U) {
558
- var ce = c.find(function(ke) {
557
+ for (var Ee = O ? 3 : 1, Ne = function(U) {
558
+ var ue = d.find(function(ke) {
559
559
  var Q = x.get(ke);
560
560
  if (Q)
561
- return Q.slice(0, U).every(function(Ne) {
562
- return Ne;
561
+ return Q.slice(0, U).every(function(Me) {
562
+ return Me;
563
563
  });
564
564
  });
565
- if (ce)
566
- return S = ce, "break";
567
- }, ue = Ee; ue > 0; ue--) {
568
- var Se = Ie(ue);
565
+ if (ue)
566
+ return S = ue, "break";
567
+ }, fe = Ee; fe > 0; fe--) {
568
+ var Se = Ne(fe);
569
569
  if (Se === "break")
570
570
  break;
571
571
  }
572
572
  t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
573
573
  }
574
574
  }
575
- const $r = {
575
+ const Pr = {
576
576
  name: "flip",
577
577
  enabled: !0,
578
578
  phase: "main",
579
- fn: xr,
579
+ fn: Cr,
580
580
  requiresIfExists: ["offset"],
581
581
  data: {
582
582
  _skip: !1
583
583
  }
584
584
  };
585
- function ct(e, t, r) {
585
+ function dt(e, t, r) {
586
586
  return r === void 0 && (r = {
587
587
  x: 0,
588
588
  y: 0
@@ -593,17 +593,17 @@ function ct(e, t, r) {
593
593
  left: e.left - t.width - r.x
594
594
  };
595
595
  }
596
- function dt(e) {
597
- return [R, N, I, j].some(function(t) {
596
+ function ct(e) {
597
+ return [R, M, N, j].some(function(t) {
598
598
  return e[t] >= 0;
599
599
  });
600
600
  }
601
- function Cr(e) {
602
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = xe(t, {
601
+ function Er(e) {
602
+ var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = Oe(t, {
603
603
  elementContext: "reference"
604
- }), l = xe(t, {
604
+ }), l = Oe(t, {
605
605
  altBoundary: !0
606
- }), s = ct(a, n), f = ct(l, o, i), p = dt(s), h = dt(f);
606
+ }), s = dt(a, n), f = dt(l, o, i), p = ct(s), h = ct(f);
607
607
  t.modifiersData[r] = {
608
608
  referenceClippingOffsets: s,
609
609
  popperEscapeOffsets: f,
@@ -614,18 +614,18 @@ function Cr(e) {
614
614
  "data-popper-escaped": h
615
615
  });
616
616
  }
617
- const Pr = {
617
+ const Sr = {
618
618
  name: "hide",
619
619
  enabled: !0,
620
620
  phase: "main",
621
621
  requiresIfExists: ["preventOverflow"],
622
- fn: Cr
622
+ fn: Er
623
623
  };
624
- function Er(e, t, r) {
624
+ function kr(e, t, r) {
625
625
  var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
626
626
  placement: e
627
627
  })) : r, a = i[0], l = i[1];
628
- return a = a || 0, l = (l || 0) * o, [j, N].indexOf(n) >= 0 ? {
628
+ return a = a || 0, l = (l || 0) * o, [j, M].indexOf(n) >= 0 ? {
629
629
  x: l,
630
630
  y: a
631
631
  } : {
@@ -633,20 +633,20 @@ function Er(e, t, r) {
633
633
  y: l
634
634
  };
635
635
  }
636
- function Sr(e) {
636
+ function Br(e) {
637
637
  var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = Ot.reduce(function(p, h) {
638
- return p[h] = Er(h, t.rects, i), p;
638
+ return p[h] = kr(h, t.rects, i), p;
639
639
  }, {}), l = a[t.placement], s = l.x, f = l.y;
640
640
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
641
641
  }
642
- const kr = {
642
+ const Dr = {
643
643
  name: "offset",
644
644
  enabled: !0,
645
645
  phase: "main",
646
646
  requires: ["popperOffsets"],
647
- fn: Sr
647
+ fn: Br
648
648
  };
649
- function Br(e) {
649
+ function Ar(e) {
650
650
  var t = e.state, r = e.name;
651
651
  t.modifiersData[r] = kt({
652
652
  reference: t.rects.reference,
@@ -655,23 +655,23 @@ function Br(e) {
655
655
  placement: t.placement
656
656
  });
657
657
  }
658
- const Dr = {
658
+ const Rr = {
659
659
  name: "popperOffsets",
660
660
  enabled: !0,
661
661
  phase: "read",
662
- fn: Br,
662
+ fn: Ar,
663
663
  data: {}
664
664
  };
665
- function Ar(e) {
665
+ function jr(e) {
666
666
  return e === "x" ? "y" : "x";
667
667
  }
668
- function Rr(e) {
669
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = xe(t, {
668
+ function Tr(e) {
669
+ var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = Oe(t, {
670
670
  boundary: s,
671
671
  rootBoundary: f,
672
672
  padding: h,
673
673
  altBoundary: p
674
- }), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Ar(c), d = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
674
+ }), w = V(t.placement), C = pe(t.placement), $ = !C, d = Ke(w), g = jr(d), c = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
675
675
  placement: t.placement
676
676
  })) : m, k = typeof S == "number" ? {
677
677
  mainAxis: S,
@@ -683,58 +683,58 @@ function Rr(e) {
683
683
  x: 0,
684
684
  y: 0
685
685
  };
686
- if (!!d) {
686
+ if (!!c) {
687
687
  if (i) {
688
- var A, G = c === "y" ? R : j, J = c === "y" ? I : N, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ie = C === ae ? x[z] : E[z], ue = C === ae ? -E[z] : -x[z], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
688
+ var A, K = d === "y" ? R : j, G = d === "y" ? N : M, T = d === "y" ? "height" : "width", L = c[d], Pe = L + v[K], J = L - v[G], Ee = u ? -E[T] / 2 : 0, Ne = C === ae ? x[T] : E[T], fe = C === ae ? -E[T] : -x[T], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
689
689
  width: 0,
690
690
  height: 0
691
- }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ne = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ie - Q - ce - k.mainAxis, At = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Rt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, jt = L + Ne - Ze - Rt, zt = L + At - Ze, _e = he(u ? je(Pe, jt) : Pe, L, u ? re(K, zt) : K);
692
- d[c] = _e, D[c] = _e - L;
691
+ }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ue = U[K], ke = U[G], Q = ve(0, x[T], oe[T]), Me = $ ? x[T] / 2 - Ee - Q - ue - k.mainAxis : Ne - Q - ue - k.mainAxis, At = $ ? -x[T] / 2 + Ee + Q + ke + k.mainAxis : fe + Q + ke + k.mainAxis, Ie = t.elements.arrow && $e(t.elements.arrow), Rt = Ie ? d === "y" ? Ie.clientTop || 0 : Ie.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[d]) != null ? A : 0, jt = L + Me - Ze - Rt, Tt = L + At - Ze, _e = ve(u ? je(Pe, jt) : Pe, L, u ? re(J, Tt) : J);
692
+ c[d] = _e, D[d] = _e - L;
693
693
  }
694
694
  if (l) {
695
- var et, Tt = c === "x" ? R : j, It = c === "x" ? I : N, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[Tt], rt = Z - v[It], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? rr(ot, Z, it) : he(u ? ot : tt, Z, u ? it : rt);
696
- d[g] = at, D[g] = at - Z;
695
+ var et, zt = d === "x" ? R : j, Nt = d === "x" ? N : M, Z = c[g], Be = g === "y" ? "height" : "width", tt = Z + v[zt], rt = Z - v[Nt], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? or(ot, Z, it) : ve(u ? ot : tt, Z, u ? it : rt);
696
+ c[g] = at, D[g] = at - Z;
697
697
  }
698
698
  t.modifiersData[n] = D;
699
699
  }
700
700
  }
701
- const jr = {
701
+ const zr = {
702
702
  name: "preventOverflow",
703
703
  enabled: !0,
704
704
  phase: "main",
705
- fn: Rr,
705
+ fn: Tr,
706
706
  requiresIfExists: ["offset"]
707
707
  };
708
- function zr(e) {
708
+ function Nr(e) {
709
709
  return {
710
710
  scrollLeft: e.scrollLeft,
711
711
  scrollTop: e.scrollTop
712
712
  };
713
713
  }
714
- function Tr(e) {
715
- return e === M(e) || !T(e) ? Je(e) : zr(e);
714
+ function Mr(e) {
715
+ return e === I(e) || !z(e) ? Ge(e) : Nr(e);
716
716
  }
717
717
  function Ir(e) {
718
718
  var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
719
719
  return r !== 1 || n !== 1;
720
720
  }
721
- function Nr(e, t, r) {
721
+ function Lr(e, t, r) {
722
722
  r === void 0 && (r = !1);
723
- var n = T(t), o = T(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
723
+ var n = z(t), o = z(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
724
724
  scrollLeft: 0,
725
725
  scrollTop: 0
726
726
  }, s = {
727
727
  x: 0,
728
728
  y: 0
729
729
  };
730
- return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = Tr(t)), T(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Ke(i))), {
730
+ return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = Mr(t)), z(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Je(i))), {
731
731
  x: a.left + l.scrollLeft - s.x,
732
732
  y: a.top + l.scrollTop - s.y,
733
733
  width: a.width,
734
734
  height: a.height
735
735
  };
736
736
  }
737
- function Mr(e) {
737
+ function Vr(e) {
738
738
  var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
739
739
  e.forEach(function(i) {
740
740
  t.set(i.name, i);
@@ -753,15 +753,15 @@ function Mr(e) {
753
753
  r.has(i.name) || o(i);
754
754
  }), n;
755
755
  }
756
- function Lr(e) {
757
- var t = Mr(e);
756
+ function qr(e) {
757
+ var t = Vr(e);
758
758
  return qe.reduce(function(r, n) {
759
759
  return r.concat(t.filter(function(o) {
760
760
  return o.phase === n;
761
761
  }));
762
762
  }, []);
763
763
  }
764
- function Vr(e) {
764
+ function Fr(e) {
765
765
  var t;
766
766
  return function() {
767
767
  return t || (t = new Promise(function(r) {
@@ -778,8 +778,8 @@ function X(e) {
778
778
  return o.replace(/%s/, i);
779
779
  }, e);
780
780
  }
781
- var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', qr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
- function Fr(e) {
781
+ var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
+ function Hr(e) {
783
783
  e.forEach(function(t) {
784
784
  [].concat(Object.keys(t), vt).filter(function(r, n, o) {
785
785
  return o.indexOf(r) === n;
@@ -817,12 +817,12 @@ function Fr(e) {
817
817
  t.requires && t.requires.forEach(function(n) {
818
818
  e.find(function(o) {
819
819
  return o.name === n;
820
- }) == null && console.error(X(qr, String(t.name), n, n));
820
+ }) == null && console.error(X(Wr, String(t.name), n, n));
821
821
  });
822
822
  });
823
823
  });
824
824
  }
825
- function Wr(e, t) {
825
+ function Ur(e, t) {
826
826
  var r = /* @__PURE__ */ new Set();
827
827
  return e.filter(function(n) {
828
828
  var o = t(n);
@@ -830,7 +830,7 @@ function Wr(e, t) {
830
830
  return r.add(o), !0;
831
831
  });
832
832
  }
833
- function Hr(e) {
833
+ function Xr(e) {
834
834
  var t = e.reduce(function(r, n) {
835
835
  var o = r[n.name];
836
836
  return r[n.name] = o ? Object.assign({}, o, n, {
@@ -842,7 +842,7 @@ function Hr(e) {
842
842
  return t[r];
843
843
  });
844
844
  }
845
- var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Ur = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
845
+ var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Yr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
846
846
  placement: "bottom",
847
847
  modifiers: [],
848
848
  strategy: "absolute"
@@ -854,7 +854,7 @@ function gt() {
854
854
  return !(n && typeof n.getBoundingClientRect == "function");
855
855
  });
856
856
  }
857
- function Xr(e) {
857
+ function Kr(e) {
858
858
  e === void 0 && (e = {});
859
859
  var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? mt : o;
860
860
  return function(l, s, f) {
@@ -875,25 +875,25 @@ function Xr(e) {
875
875
  setOptions: function(w) {
876
876
  var C = typeof w == "function" ? w(p.options) : w;
877
877
  m(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
878
- reference: ne(l) ? me(l) : l.contextElement ? me(l.contextElement) : [],
879
- popper: me(s)
878
+ reference: ne(l) ? he(l) : l.contextElement ? he(l.contextElement) : [],
879
+ popper: he(s)
880
880
  };
881
- var $ = Lr(Hr([].concat(n, p.options.modifiers)));
881
+ var $ = qr(Xr([].concat(n, p.options.modifiers)));
882
882
  if (p.orderedModifiers = $.filter(function(b) {
883
883
  return b.enabled;
884
884
  }), process.env.NODE_ENV !== "production") {
885
- var c = Wr([].concat($, p.options.modifiers), function(b) {
885
+ var d = Ur([].concat($, p.options.modifiers), function(b) {
886
886
  var D = b.name;
887
887
  return D;
888
888
  });
889
- if (Fr(c), V(p.options.placement) === ze) {
889
+ if (Hr(d), V(p.options.placement) === Te) {
890
890
  var g = p.orderedModifiers.find(function(b) {
891
891
  var D = b.name;
892
892
  return D === "flip";
893
893
  });
894
894
  g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
895
895
  }
896
- var d = q(s), x = d.marginTop, E = d.marginRight, S = d.marginBottom, k = d.marginLeft;
896
+ var c = q(s), x = c.marginTop, E = c.marginRight, S = c.marginBottom, k = c.marginLeft;
897
897
  [x, E, S, k].some(function(b) {
898
898
  return parseFloat(b);
899
899
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
@@ -908,21 +908,21 @@ function Xr(e) {
908
908
  return;
909
909
  }
910
910
  p.rects = {
911
- reference: Nr(C, Ce($), p.options.strategy === "fixed"),
911
+ reference: Lr(C, $e($), p.options.strategy === "fixed"),
912
912
  popper: Ye($)
913
913
  }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
914
914
  return p.modifiersData[b.name] = Object.assign({}, b.data);
915
915
  });
916
- for (var c = 0, g = 0; g < p.orderedModifiers.length; g++) {
917
- if (process.env.NODE_ENV !== "production" && (c += 1, c > 100)) {
918
- console.error(Ur);
916
+ for (var d = 0, g = 0; g < p.orderedModifiers.length; g++) {
917
+ if (process.env.NODE_ENV !== "production" && (d += 1, d > 100)) {
918
+ console.error(Yr);
919
919
  break;
920
920
  }
921
921
  if (p.reset === !0) {
922
922
  p.reset = !1, g = -1;
923
923
  continue;
924
924
  }
925
- var d = p.orderedModifiers[g], x = d.fn, E = d.options, S = E === void 0 ? {} : E, k = d.name;
925
+ var c = p.orderedModifiers[g], x = c.fn, E = c.options, S = E === void 0 ? {} : E, k = c.name;
926
926
  typeof x == "function" && (p = x({
927
927
  state: p,
928
928
  options: S,
@@ -932,7 +932,7 @@ function Xr(e) {
932
932
  }
933
933
  }
934
934
  },
935
- update: Vr(function() {
935
+ update: Fr(function() {
936
936
  return new Promise(function(v) {
937
937
  u.forceUpdate(), v(p);
938
938
  });
@@ -948,16 +948,16 @@ function Xr(e) {
948
948
  });
949
949
  function O() {
950
950
  p.orderedModifiers.forEach(function(v) {
951
- var w = v.name, C = v.options, $ = C === void 0 ? {} : C, c = v.effect;
952
- if (typeof c == "function") {
953
- var g = c({
951
+ var w = v.name, C = v.options, $ = C === void 0 ? {} : C, d = v.effect;
952
+ if (typeof d == "function") {
953
+ var g = d({
954
954
  state: p,
955
955
  name: w,
956
956
  instance: u,
957
957
  options: $
958
- }), d = function() {
958
+ }), c = function() {
959
959
  };
960
- h.push(g || d);
960
+ h.push(g || c);
961
961
  }
962
962
  });
963
963
  }
@@ -969,10 +969,10 @@ function Xr(e) {
969
969
  return u;
970
970
  };
971
971
  }
972
- var Yr = [cr, Dr, fr, _t, kr, $r, jr, ar, Pr], Gr = /* @__PURE__ */ Xr({
973
- defaultModifiers: Yr
972
+ var Gr = [vr, Rr, dr, tr, Dr, Pr, zr, lr, Sr], Jr = /* @__PURE__ */ Kr({
973
+ defaultModifiers: Gr
974
974
  });
975
- const Jr = {
975
+ const Qr = {
976
976
  props: {
977
977
  componentPrefix: String,
978
978
  size: String,
@@ -983,15 +983,13 @@ const Jr = {
983
983
  return this.sizePrefix || this.componentPrefix;
984
984
  },
985
985
  hasSizeablePrefix() {
986
- return this.size && !!this.size.match(
987
- new RegExp(`^${this.sizeableClassPrefix}`)
988
- );
986
+ return this.size === void 0 ? !1 : !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
989
987
  },
990
988
  sizeableClass() {
991
989
  return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
992
990
  }
993
991
  }
994
- }, Kr = {
992
+ }, Zr = {
995
993
  props: {
996
994
  componentPrefix: String,
997
995
  variant: String,
@@ -1002,20 +1000,14 @@ const Jr = {
1002
1000
  return this.variantPrefix || this.componentPrefix;
1003
1001
  },
1004
1002
  hasVariantPrefix() {
1005
- return this.variant && !!this.variant.match(
1006
- new RegExp(`^${this.variantClassPrefix}`)
1007
- );
1003
+ return this.variant === void 0 ? !1 : !!this.variant.match(new RegExp(`^${this.variantClassPrefix}`));
1008
1004
  },
1009
1005
  variantClass() {
1010
1006
  return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
1011
1007
  }
1012
1008
  }
1013
- }, Qr = {
1014
- name: "Btn",
1015
- mixins: [
1016
- Jr,
1017
- Kr
1018
- ],
1009
+ }, _r = Mt({
1010
+ mixins: [Qr, Zr],
1019
1011
  props: {
1020
1012
  active: Boolean,
1021
1013
  block: Boolean,
@@ -1034,14 +1026,7 @@ const Jr = {
1034
1026
  },
1035
1027
  computed: {
1036
1028
  classes() {
1037
- return [
1038
- "btn",
1039
- this.variantClass,
1040
- this.sizeableClass,
1041
- this.active && "active",
1042
- this.block && "btn-block",
1043
- this.disabled && "disabled"
1044
- ];
1029
+ return ["btn", this.variantClass, this.sizeableClass, this.active && "active", this.block && "btn-block", this.disabled && "disabled"];
1045
1030
  },
1046
1031
  component() {
1047
1032
  return this.tag ? this.tag : this.$attrs.href ? "a" : "button";
@@ -1050,27 +1035,23 @@ const Jr = {
1050
1035
  return (this.variantPrefix || this.componentPrefix) + (this.outline ? "-outline" : "");
1051
1036
  }
1052
1037
  }
1053
- }, fe = (e, t) => {
1038
+ }), en = (e, t) => {
1054
1039
  const r = e.__vccOpts || e;
1055
1040
  for (const [n, o] of t)
1056
1041
  r[n] = o;
1057
1042
  return r;
1058
1043
  };
1059
- function Zr(e, t, r, n, o, i) {
1060
- return W(), ee(He(i.component), ge(e.$attrs, {
1061
- disabled: r.disabled,
1062
- class: i.classes,
1044
+ function tn(e, t, r, n, o, i) {
1045
+ return W(), ee(He(e.component), me(e.$attrs, {
1046
+ disabled: e.disabled,
1047
+ class: e.classes,
1063
1048
  role: "button"
1064
1049
  }), {
1065
- default: B(() => [
1066
- P(e.$slots, "default", {}, () => [
1067
- be(ye(r.label), 1)
1068
- ])
1069
- ]),
1050
+ default: B(() => [P(e.$slots, "default", {}, () => [ge(be(e.label), 1)])]),
1070
1051
  _: 3
1071
1052
  }, 16, ["disabled", "class"]);
1072
1053
  }
1073
- const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
1054
+ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
1074
1055
  props: {
1075
1056
  componentPrefix: String,
1076
1057
  size: String,
@@ -1087,14 +1068,14 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
1087
1068
  return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
1088
1069
  }
1089
1070
  }
1090
- }, tn = (e, t) => {
1071
+ }, on = (e, t) => {
1091
1072
  const r = e.__vccOpts || e;
1092
1073
  for (const [n, o] of t)
1093
1074
  r[n] = o;
1094
1075
  return r;
1095
- }, rn = {
1076
+ }, an = {
1096
1077
  name: "BtnGroup",
1097
- mixins: [en],
1078
+ mixins: [nn],
1098
1079
  props: {
1099
1080
  sizePrefix: {
1100
1081
  type: String,
@@ -1115,47 +1096,35 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
1115
1096
  };
1116
1097
  }
1117
1098
  }
1118
- }, nn = ["data-toggle"];
1119
- function on(e, t, r, n, o, i) {
1099
+ }, sn = ["data-toggle"];
1100
+ function ln(e, t, r, n, o, i) {
1120
1101
  return W(), Ue("div", {
1121
1102
  class: F(i.classes),
1122
1103
  "data-toggle": r.toggle ? "buttons" : !1,
1123
1104
  role: "group"
1124
- }, [P(e.$slots, "default")], 10, nn);
1105
+ }, [P(e.$slots, "default")], 10, sn);
1125
1106
  }
1126
- const an = /* @__PURE__ */ tn(rn, [["render", on]]);
1107
+ const pn = /* @__PURE__ */ on(an, [["render", ln]]);
1127
1108
  function Ve(e, t) {
1128
1109
  e.props.class = `${e.props.class || ""} ${t}`.trim();
1129
1110
  }
1130
- function bt(e, t) {
1131
- return (r) => {
1132
- typeof t == "function" && t(r), r.cancelBubble || e(r);
1133
- };
1134
- }
1135
- function yt(e, t) {
1136
- return e.attrs.on[t] || e.type && e.type.listeners && e.componentOptions.listeners[t];
1137
- }
1138
- function sn(e) {
1139
- return e && e.type && (e.type === "fragment" || typeof e.type == "symbol");
1140
- }
1141
1111
  function Bt(e) {
1142
1112
  for (const t of e) {
1143
- if (sn(t))
1144
- return Bt(t.children);
1145
- t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
1113
+ t.type === Lt && Bt(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
1146
1114
  const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
1147
- t.attrs.on.click = bt((o) => {
1148
- context.parent.$emit("click-item", o, t);
1149
- }, yt(t, "click")), t.attrs.on.blur = bt((o) => {
1150
- context.parent.$emit("blur-item", o, t);
1151
- }, yt(t, "blur")), typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
1115
+ typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
1152
1116
  }
1153
1117
  return e;
1154
1118
  }
1155
- const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
1119
+ const fn = (e, t) => It("div", {}, Bt(t.slots.default())), un = fn, Ce = (e, t) => {
1120
+ const r = e.__vccOpts || e;
1121
+ for (const [n, o] of t)
1122
+ r[n] = o;
1123
+ return r;
1124
+ }, dn = {
1156
1125
  name: "DropdownMenu",
1157
1126
  components: {
1158
- DropdownMenuItems: pn
1127
+ DropdownMenuItems: un
1159
1128
  },
1160
1129
  props: {
1161
1130
  align: {
@@ -1167,8 +1136,8 @@ const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
1167
1136
  },
1168
1137
  show: Boolean
1169
1138
  }
1170
- }, un = ["aria-labelledby"];
1171
- function cn(e, t, r, n, o, i) {
1139
+ }, cn = ["aria-labelledby"];
1140
+ function vn(e, t, r, n, o, i) {
1172
1141
  const a = te("dropdown-menu-items");
1173
1142
  return W(), Ue("div", {
1174
1143
  class: F(["dropdown-menu", {
@@ -1178,7 +1147,7 @@ function cn(e, t, r, n, o, i) {
1178
1147
  }]),
1179
1148
  "aria-labelledby": e.$attrs.id
1180
1149
  }, [
1181
- we(a, null, {
1150
+ ye(a, null, {
1182
1151
  default: B(() => [
1183
1152
  P(e.$slots, "default", {
1184
1153
  onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
@@ -1186,9 +1155,9 @@ function cn(e, t, r, n, o, i) {
1186
1155
  ]),
1187
1156
  _: 3
1188
1157
  })
1189
- ], 10, un);
1158
+ ], 10, cn);
1190
1159
  }
1191
- const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
1160
+ const hn = /* @__PURE__ */ Ce(dn, [["render", vn]]), mn = {
1192
1161
  props: {
1193
1162
  expanded: {
1194
1163
  type: Boolean,
@@ -1204,8 +1173,8 @@ const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
1204
1173
  }
1205
1174
  }
1206
1175
  };
1207
- function hn(e, t, r, n, o, i) {
1208
- return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
1176
+ function gn(e, t, r, n, o, i) {
1177
+ return W(), ee(He(i.is), me({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
1209
1178
  "aria-haspopup": "true",
1210
1179
  "aria-expanded": r.expanded,
1211
1180
  type: i.is === "button" ? "button" : void 0
@@ -1216,13 +1185,13 @@ function hn(e, t, r, n, o, i) {
1216
1185
  _: 3
1217
1186
  }, 16, ["id", "aria-expanded", "type"]);
1218
1187
  }
1219
- const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
1188
+ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1220
1189
  components: {
1221
- BtnDropdownAction: mn,
1222
- BtnGroup: an,
1223
- DropdownMenu: dn
1190
+ BtnDropdownAction: bn,
1191
+ BtnGroup: pn,
1192
+ DropdownMenu: hn
1224
1193
  },
1225
- extends: _r,
1194
+ extends: rn,
1226
1195
  emits: ["click-toggle", "show", "hide", "toggle"],
1227
1196
  props: {
1228
1197
  align: {
@@ -1380,7 +1349,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
1380
1349
  show() {
1381
1350
  this.expanded = !0;
1382
1351
  const e = this.$refs.split && this.$refs.split.$el || this.$el;
1383
- !this.nav && !this.popper ? this.popper = Gr(e, this.$refs.menu.$el, {
1352
+ !this.nav && !this.popper ? this.popper = Jr(e, this.$refs.menu.$el, {
1384
1353
  placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
1385
1354
  onFirstUpdate: () => {
1386
1355
  this.triggerAnimation = this.animated;
@@ -1397,37 +1366,45 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
1397
1366
  this.expanded = !1;
1398
1367
  },
1399
1368
  onBlur(e) {
1400
- this.$el.contains(e.relatedTarget) || this.hide();
1369
+ (!this.$refs.menu.$el.contains(e.relatedTarget) || !this.$el.contains(e.relatedTarget)) && this.hide();
1370
+ },
1371
+ onClickDocument(e) {
1372
+ this.$el.contains(e.target) || this.hide();
1401
1373
  },
1402
1374
  onClickItem(e) {
1403
1375
  this.isFocusable(e.target) || this.hide();
1404
1376
  },
1405
1377
  onClickToggle(e) {
1406
- this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
1378
+ e.target.dispatchEvent(new Event("focus", e)), this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
1379
+ },
1380
+ onKeydown(e) {
1381
+ e.target.parentElement.lastElementChild === e.target && this.hide();
1407
1382
  }
1408
1383
  },
1409
1384
  watch: {
1410
1385
  expanded(e) {
1411
1386
  this.$nextTick(() => {
1412
1387
  this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
1388
+ }), setTimeout(() => {
1389
+ e ? document.addEventListener("click", this.onClickDocument) : document.removeEventListener("click", this.onClickDocument);
1413
1390
  });
1414
1391
  }
1415
1392
  }
1416
- }, gn = {
1393
+ }, yn = {
1417
1394
  mixins: [
1418
1395
  Dt
1419
1396
  ],
1420
1397
  emits: [
1421
1398
  "click"
1422
1399
  ]
1423
- }, bn = ["id", "aria-expanded"];
1424
- function yn(e, t, r, n, o, i) {
1400
+ }, wn = ["id", "aria-expanded"];
1401
+ function On(e, t, r, n, o, i) {
1425
1402
  const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1426
1403
  return W(), ee(s, {
1427
1404
  class: F([e.classes, "btn-dropdown-split"])
1428
1405
  }, {
1429
1406
  default: B(() => [
1430
- e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
1407
+ e.dropleft ? de("", !0) : P(e.$slots, "button", ie(me({ key: 0 }, e.scope)), () => [
1431
1408
  e.dropleft ? de("", !0) : (W(), ee(a, {
1432
1409
  key: 0,
1433
1410
  id: e.$attrs.id,
@@ -1441,13 +1418,13 @@ function yn(e, t, r, n, o, i) {
1441
1418
  default: B(() => [
1442
1419
  P(e.$slots, "icon"),
1443
1420
  P(e.$slots, "label", {}, () => [
1444
- be(ye(e.label), 1)
1421
+ ge(be(e.label), 1)
1445
1422
  ])
1446
1423
  ]),
1447
1424
  _: 3
1448
1425
  }, 8, ["id", "expanded", "href", "to", "class"]))
1449
1426
  ]),
1450
- we(s, { ref: "split" }, {
1427
+ ye(s, { ref: "split" }, {
1451
1428
  default: B(() => [
1452
1429
  P(e.$slots, "split", ie(Re(e.scope)), () => [
1453
1430
  e.split ? (W(), Ue("button", {
@@ -1459,26 +1436,29 @@ function yn(e, t, r, n, o, i) {
1459
1436
  class: F(e.toggleClasses),
1460
1437
  onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
1461
1438
  onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
1462
- }, null, 42, bn)) : de("", !0)
1439
+ }, null, 42, wn)) : de("", !0)
1463
1440
  ]),
1464
- we(l, {
1441
+ ye(l, {
1465
1442
  id: e.$attrs.id,
1466
1443
  ref: "menu",
1467
1444
  align: e.align,
1468
1445
  show: e.expanded,
1469
1446
  class: F({ animated: e.triggerAnimation }),
1470
- onClickItem: e.onClickItem,
1471
- onBlurItem: e.onBlur
1447
+ onBlur: e.onBlur,
1448
+ onClick: e.onClickItem,
1449
+ onKeydown: bt(e.onKeydown, ["tab"]),
1450
+ onMousedown: t[3] || (t[3] = yt(() => {
1451
+ }, ["prevent"]))
1472
1452
  }, {
1473
1453
  default: B(() => [
1474
1454
  P(e.$slots, "default")
1475
1455
  ]),
1476
1456
  _: 3
1477
- }, 8, ["id", "align", "show", "class", "onClickItem", "onBlurItem"])
1457
+ }, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
1478
1458
  ]),
1479
1459
  _: 3
1480
1460
  }, 512),
1481
- e.dropleft ? P(e.$slots, "button", ie(ge({ key: 1 }, e.scope)), () => [
1461
+ e.dropleft ? P(e.$slots, "button", ie(me({ key: 1 }, e.scope)), () => [
1482
1462
  e.dropleft ? (W(), ee(a, {
1483
1463
  key: 0,
1484
1464
  id: e.$attrs.id,
@@ -1487,12 +1467,12 @@ function yn(e, t, r, n, o, i) {
1487
1467
  href: e.href,
1488
1468
  to: e.to,
1489
1469
  class: F(e.actionClasses),
1490
- onClick: t[3] || (t[3] = (f) => e.$emit("click", f))
1470
+ onClick: t[4] || (t[4] = (f) => e.$emit("click", f))
1491
1471
  }, {
1492
1472
  default: B(() => [
1493
1473
  P(e.$slots, "icon"),
1494
1474
  P(e.$slots, "label", {}, () => [
1495
- be(ye(e.label), 1)
1475
+ ge(be(e.label), 1)
1496
1476
  ])
1497
1477
  ]),
1498
1478
  _: 3
@@ -1502,25 +1482,25 @@ function yn(e, t, r, n, o, i) {
1502
1482
  _: 3
1503
1483
  }, 8, ["class"]);
1504
1484
  }
1505
- const wn = /* @__PURE__ */ fe(gn, [["render", yn]]), On = {
1485
+ const xn = /* @__PURE__ */ Ce(yn, [["render", On]]), $n = {
1506
1486
  mixins: [
1507
1487
  Dt
1508
1488
  ]
1509
1489
  };
1510
- function xn(e, t, r, n, o, i) {
1490
+ function Cn(e, t, r, n, o, i) {
1511
1491
  const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1512
1492
  return W(), ee(s, {
1513
1493
  class: F(e.classes)
1514
1494
  }, {
1515
1495
  default: B(() => [
1516
1496
  P(e.$slots, "button", ie(Re(e.scope)), () => [
1517
- we(a, {
1497
+ ye(a, {
1518
1498
  id: e.$attrs.id,
1519
1499
  ref: "button",
1520
1500
  expanded: e.expanded,
1521
1501
  href: e.href,
1522
1502
  to: e.to,
1523
- style: Mt(e.toggleStyle),
1503
+ style: Vt(e.toggleStyle),
1524
1504
  class: F(e.toggleClasses),
1525
1505
  onBlur: e.onBlur,
1526
1506
  onClick: e.onClickToggle
@@ -1528,36 +1508,39 @@ function xn(e, t, r, n, o, i) {
1528
1508
  default: B(() => [
1529
1509
  P(e.$slots, "icon"),
1530
1510
  P(e.$slots, "label", {}, () => [
1531
- be(ye(e.label), 1)
1511
+ ge(be(e.label), 1)
1532
1512
  ])
1533
1513
  ]),
1534
1514
  _: 3
1535
1515
  }, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
1536
1516
  ]),
1537
- we(l, {
1517
+ ye(l, {
1538
1518
  id: e.$attrs.id,
1539
1519
  ref: "menu",
1540
1520
  align: e.align,
1541
1521
  show: e.expanded,
1542
1522
  class: F({ animated: e.triggerAnimation }),
1543
- onBlurItem: e.onBlur,
1544
- onClickItem: e.onClickItem
1523
+ onBlur: e.onBlur,
1524
+ onClick: e.onClickItem,
1525
+ onKeydown: bt(e.onKeydown, ["tab"]),
1526
+ onMousedown: t[0] || (t[0] = yt(() => {
1527
+ }, ["prevent"]))
1545
1528
  }, {
1546
1529
  default: B(() => [
1547
1530
  P(e.$slots, "default")
1548
1531
  ]),
1549
1532
  _: 3
1550
- }, 8, ["id", "align", "show", "class", "onBlurItem", "onClickItem"])
1533
+ }, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
1551
1534
  ]),
1552
1535
  _: 3
1553
1536
  }, 8, ["class"]);
1554
1537
  }
1555
- const $n = /* @__PURE__ */ fe(On, [["render", xn]]);
1556
- const Cn = {
1538
+ const Pn = /* @__PURE__ */ Ce($n, [["render", Cn]]);
1539
+ const En = {
1557
1540
  name: "BtnDropdown",
1558
1541
  components: {
1559
- BtnDropdownSplit: wn,
1560
- BtnDropdownSingle: $n
1542
+ BtnDropdownSplit: xn,
1543
+ BtnDropdownSingle: Pn
1561
1544
  },
1562
1545
  inheritAttrs: !1,
1563
1546
  emits: [
@@ -1569,15 +1552,15 @@ const Cn = {
1569
1552
  "toggle"
1570
1553
  ]
1571
1554
  };
1572
- function Pn(e, t, r, n, o, i) {
1573
- return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), ge({ class: "btn-dropdown" }, e.$attrs, {
1555
+ function Sn(e, t, r, n, o, i) {
1556
+ return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), me({ class: "btn-dropdown" }, e.$attrs, {
1574
1557
  onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
1575
1558
  onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
1576
1559
  onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
1577
1560
  onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
1578
1561
  onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
1579
1562
  onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
1580
- }), Lt({
1563
+ }), qt({
1581
1564
  icon: B(() => [
1582
1565
  P(e.$slots, "icon")
1583
1566
  ]),
@@ -1596,14 +1579,14 @@ function Pn(e, t, r, n, o, i) {
1596
1579
  name: "label",
1597
1580
  fn: B(() => [
1598
1581
  P(e.$slots, "label", {}, () => [
1599
- be(ye(e.$attrs.label), 1)
1582
+ ge(be(e.$attrs.label), 1)
1600
1583
  ])
1601
1584
  ]),
1602
1585
  key: "0"
1603
1586
  } : void 0
1604
1587
  ]), 1040);
1605
1588
  }
1606
- const Sn = /* @__PURE__ */ fe(Cn, [["render", Pn]]);
1589
+ const Bn = /* @__PURE__ */ Ce(En, [["render", Sn]]);
1607
1590
  export {
1608
- Sn as BtnDropdown
1591
+ Bn as BtnDropdown
1609
1592
  };