@squirrel-cloud/ui-vue 0.2.2 → 0.2.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,4 +1,4 @@
1
- import { createElementBlock as _, openBlock as C, createElementVNode as J, defineComponent as z, computed as w, normalizeClass as M, createVNode as Xt, unref as H, withCtx as ft, createBlock as Q, createCommentVNode as st, renderSlot as T, resolveDynamicComponent as xt, useSlots as Ut, toDisplayString as le, mergeModels as bt, useModel as Yt, useTemplateRef as St, withDirectives as Kt, vModelText as ce, ref as nt, shallowRef as ae, watch as yt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as qt, Teleport as me, Transition as he, normalizeStyle as At, vShow as ge } from "vue";
1
+ import { createElementBlock as T, openBlock as R, createElementVNode as J, defineComponent as M, computed as w, normalizeClass as D, createVNode as Xt, unref as H, withCtx as dt, createBlock as Q, createCommentVNode as st, renderSlot as _, resolveDynamicComponent as bt, useSlots as Ut, toDisplayString as le, mergeModels as St, useModel as Yt, useTemplateRef as ce, withDirectives as Kt, vModelText as ae, ref as nt, shallowRef as Ct, watch as wt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as qt, normalizeStyle as ct, Teleport as me, Transition as he, vShow as ge } from "vue";
2
2
  const ve = (t, e) => {
3
3
  const n = t.__vccOpts || t;
4
4
  for (const [o, s] of e)
@@ -9,7 +9,7 @@ const ve = (t, e) => {
9
9
  "data-icon": "loading"
10
10
  };
11
11
  function xe(t, e) {
12
- return C(), _("span", we, e[0] || (e[0] = [
12
+ return R(), T("span", we, e[0] || (e[0] = [
13
13
  J("svg", {
14
14
  viewBox: "0 0 48 48",
15
15
  version: "1.1",
@@ -23,7 +23,7 @@ function xe(t, e) {
23
23
  ], -1)
24
24
  ]));
25
25
  }
26
- const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ z({
26
+ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ M({
27
27
  __name: "SqButton",
28
28
  props: {
29
29
  type: {},
@@ -39,28 +39,28 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
39
39
  const i = [];
40
40
  return e.size !== "md" && i.push(`sq-button--${e.size}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), e.text && i.push("is-text"), i;
41
41
  }), o = w(() => e.loading ? be : e.icon), s = w(() => e.loading || e.disabled);
42
- return (i, r) => (C(), _("button", {
43
- class: M(["sq-button", n.value]),
42
+ return (i, r) => (R(), T("button", {
43
+ class: D(["sq-button", n.value]),
44
44
  disabled: s.value
45
45
  }, [
46
46
  Xt(H(kt), {
47
47
  size: e.size
48
48
  }, {
49
- default: ft(() => [
50
- o.value ? (C(), Q(xt(o.value), { key: 0 })) : st("", !0),
51
- T(i.$slots, "default")
49
+ default: dt(() => [
50
+ o.value ? (R(), Q(bt(o.value), { key: 0 })) : st("", !0),
51
+ _(i.$slots, "default")
52
52
  ]),
53
53
  _: 3
54
54
  }, 8, ["size"])
55
55
  ], 10, Se));
56
56
  }
57
- }), Re = { class: "sq-card" }, Ce = {
57
+ }), Ce = { class: "sq-card" }, Re = {
58
58
  key: 0,
59
59
  class: "sq-card-header"
60
60
  }, Le = ["textContent"], Ae = {
61
61
  key: 1,
62
62
  class: "sq-card-footer"
63
- }, _n = /* @__PURE__ */ z({
63
+ }, Tn = /* @__PURE__ */ M({
64
64
  __name: "SqCard",
65
65
  props: {
66
66
  title: {},
@@ -68,29 +68,29 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
68
68
  },
69
69
  setup(t) {
70
70
  const e = Ut(), n = t;
71
- return (o, s) => (C(), _("div", Re, [
72
- n.title || H(e).title ? (C(), _("div", Ce, [
71
+ return (o, s) => (R(), T("div", Ce, [
72
+ n.title || H(e).title ? (R(), T("div", Re, [
73
73
  J("h2", {
74
- class: M({ "has-decorative": n.decorative }),
74
+ class: D({ "has-decorative": n.decorative }),
75
75
  textContent: le(n.title)
76
76
  }, null, 10, Le),
77
- T(o.$slots, "title")
77
+ _(o.$slots, "title")
78
78
  ])) : st("", !0),
79
- T(o.$slots, "default"),
80
- H(e).footer ? (C(), _("div", Ae, [
81
- T(o.$slots, "footer")
79
+ _(o.$slots, "default"),
80
+ H(e).footer ? (R(), T("div", Ae, [
81
+ _(o.$slots, "footer")
82
82
  ])) : st("", !0)
83
83
  ]));
84
84
  }
85
85
  }), Oe = {
86
86
  key: 0,
87
87
  class: "sq-input-prefix"
88
- }, _e = ["disabled", "readonly"], Te = {
88
+ }, Te = ["disabled", "readonly"], _e = {
89
89
  key: 1,
90
90
  class: "sq-input-suffix"
91
- }, Tn = /* @__PURE__ */ z({
91
+ }, _n = /* @__PURE__ */ M({
92
92
  __name: "SqInput",
93
- props: /* @__PURE__ */ bt({
93
+ props: /* @__PURE__ */ St({
94
94
  status: {},
95
95
  round: { type: Boolean },
96
96
  showStatusIcon: { type: Boolean },
@@ -103,29 +103,29 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
103
103
  value: { type: String, default: "" },
104
104
  valueModifiers: {}
105
105
  }),
106
- emits: /* @__PURE__ */ bt(["focus", "blur", "input", "change"], ["update:value"]),
106
+ emits: /* @__PURE__ */ St(["focus", "blur", "input", "change"], ["update:value"]),
107
107
  setup(t, { expose: e, emit: n }) {
108
- const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = St("inputRef"), a = w(() => {
108
+ const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = ce("inputRef"), a = w(() => {
109
109
  const p = [];
110
110
  return i.size !== "md" && p.push(`sq-input--${i.size}`), i.status && p.push(`is-${i.status}`), i.round && p.push("is-round"), i.disabled && p.push("is-disabled"), p;
111
- }), c = w(() => o.prefix || i.prefixIcon), u = w(() => {
111
+ }), c = w(() => o.prefix || i.prefixIcon), f = w(() => {
112
112
  const p = i.showStatusIcon && i.status;
113
113
  return o.suffix || p || i.suffixIcon;
114
- }), f = w(() => i.suffixIcon);
114
+ }), d = w(() => i.suffixIcon);
115
115
  function m() {
116
116
  var p;
117
117
  (p = l.value) == null || p.focus();
118
118
  }
119
- function d() {
119
+ function u() {
120
120
  var p;
121
121
  (p = l.value) == null || p.blur();
122
122
  }
123
- return e({ focus: m, blur: d }), (p, h) => (C(), _("section", {
124
- class: M(["sq-input", a.value])
123
+ return e({ focus: m, blur: u }), (p, h) => (R(), T("section", {
124
+ class: D(["sq-input", a.value])
125
125
  }, [
126
- c.value ? (C(), _("span", Oe, [
127
- T(p.$slots, "prefix", {}, () => [
128
- (C(), Q(xt(i.prefixIcon)))
126
+ c.value ? (R(), T("span", Oe, [
127
+ _(p.$slots, "prefix", {}, () => [
128
+ (R(), Q(bt(i.prefixIcon)))
129
129
  ])
130
130
  ])) : st("", !0),
131
131
  Kt(J("input", {
@@ -139,17 +139,17 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
139
139
  onBlur: h[2] || (h[2] = (g) => s("blur", g)),
140
140
  onInput: h[3] || (h[3] = (g) => s("input", g)),
141
141
  onChange: h[4] || (h[4] = (g) => s("change", g))
142
- }, null, 40, _e), [
143
- [ce, r.value]
142
+ }, null, 40, Te), [
143
+ [ae, r.value]
144
144
  ]),
145
- u.value ? (C(), _("span", Te, [
146
- T(p.$slots, "suffix", {}, () => [
147
- (C(), Q(xt(f.value)))
145
+ f.value ? (R(), T("span", _e, [
146
+ _(p.$slots, "suffix", {}, () => [
147
+ (R(), Q(bt(d.value)))
148
148
  ])
149
149
  ])) : st("", !0)
150
150
  ], 2));
151
151
  }
152
- }), Rt = Math.min, K = Math.max, ct = Math.round, lt = Math.floor, k = (t) => ({
152
+ }), Rt = Math.min, K = Math.max, at = Math.round, lt = Math.floor, k = (t) => ({
153
153
  x: t,
154
154
  y: t
155
155
  }), Ee = {
@@ -167,7 +167,7 @@ function Ot(t, e) {
167
167
  function Z(t) {
168
168
  return t.split("-")[0];
169
169
  }
170
- function dt(t) {
170
+ function pt(t) {
171
171
  return t.split("-")[1];
172
172
  }
173
173
  function ke(t) {
@@ -185,15 +185,15 @@ function Jt(t) {
185
185
  }
186
186
  function Pe(t, e, n) {
187
187
  n === void 0 && (n = !1);
188
- const o = dt(t), s = Jt(t), i = Gt(s);
188
+ const o = pt(t), s = Jt(t), i = Gt(s);
189
189
  let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
190
- return e.reference[i] > e.floating[i] && (r = at(r)), [r, at(r)];
190
+ return e.reference[i] > e.floating[i] && (r = ut(r)), [r, ut(r)];
191
191
  }
192
192
  function De(t) {
193
- const e = at(t);
194
- return [Ct(t), e, Ct(e)];
193
+ const e = ut(t);
194
+ return [Lt(t), e, Lt(e)];
195
195
  }
196
- function Ct(t) {
196
+ function Lt(t) {
197
197
  return t.replace(/start|end/g, (e) => $e[e]);
198
198
  }
199
199
  const zt = ["left", "right"], Mt = ["right", "left"], qe = ["top", "bottom"], ze = ["bottom", "top"];
@@ -210,11 +210,11 @@ function Me(t, e, n) {
210
210
  }
211
211
  }
212
212
  function Ve(t, e, n, o) {
213
- const s = dt(t);
213
+ const s = pt(t);
214
214
  let i = Me(Z(t), n === "start", o);
215
- return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Ct)))), i;
215
+ return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Lt)))), i;
216
216
  }
217
- function at(t) {
217
+ function ut(t) {
218
218
  return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
219
219
  }
220
220
  function Fe(t) {
@@ -234,7 +234,7 @@ function Ne(t) {
234
234
  left: t
235
235
  };
236
236
  }
237
- function ut(t) {
237
+ function ft(t) {
238
238
  const {
239
239
  x: e,
240
240
  y: n,
@@ -257,48 +257,48 @@ function Vt(t, e, n) {
257
257
  reference: o,
258
258
  floating: s
259
259
  } = t;
260
- const i = W(e), r = Jt(e), l = Gt(r), a = Z(e), c = i === "y", u = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
261
- let d;
260
+ const i = W(e), r = Jt(e), l = Gt(r), a = Z(e), c = i === "y", f = o.x + o.width / 2 - s.width / 2, d = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
261
+ let u;
262
262
  switch (a) {
263
263
  case "top":
264
- d = {
265
- x: u,
264
+ u = {
265
+ x: f,
266
266
  y: o.y - s.height
267
267
  };
268
268
  break;
269
269
  case "bottom":
270
- d = {
271
- x: u,
270
+ u = {
271
+ x: f,
272
272
  y: o.y + o.height
273
273
  };
274
274
  break;
275
275
  case "right":
276
- d = {
276
+ u = {
277
277
  x: o.x + o.width,
278
- y: f
278
+ y: d
279
279
  };
280
280
  break;
281
281
  case "left":
282
- d = {
282
+ u = {
283
283
  x: o.x - s.width,
284
- y: f
284
+ y: d
285
285
  };
286
286
  break;
287
287
  default:
288
- d = {
288
+ u = {
289
289
  x: o.x,
290
290
  y: o.y
291
291
  };
292
292
  }
293
- switch (dt(e)) {
293
+ switch (pt(e)) {
294
294
  case "start":
295
- d[r] -= m * (n && c ? -1 : 1);
295
+ u[r] -= m * (n && c ? -1 : 1);
296
296
  break;
297
297
  case "end":
298
- d[r] += m * (n && c ? -1 : 1);
298
+ u[r] += m * (n && c ? -1 : 1);
299
299
  break;
300
300
  }
301
- return d;
301
+ return u;
302
302
  }
303
303
  const Ie = async (t, e, n) => {
304
304
  const {
@@ -312,9 +312,9 @@ const Ie = async (t, e, n) => {
312
312
  floating: e,
313
313
  strategy: s
314
314
  }), {
315
- x: u,
316
- y: f
317
- } = Vt(c, o, a), m = o, d = {}, p = 0;
315
+ x: f,
316
+ y: d
317
+ } = Vt(c, o, a), m = o, u = {}, p = 0;
318
318
  for (let h = 0; h < l.length; h++) {
319
319
  const {
320
320
  name: g,
@@ -322,15 +322,15 @@ const Ie = async (t, e, n) => {
322
322
  } = l[h], {
323
323
  x: y,
324
324
  y: b,
325
- data: R,
325
+ data: C,
326
326
  reset: S
327
327
  } = await v({
328
- x: u,
329
- y: f,
328
+ x: f,
329
+ y: d,
330
330
  initialPlacement: o,
331
331
  placement: m,
332
332
  strategy: s,
333
- middlewareData: d,
333
+ middlewareData: u,
334
334
  rects: c,
335
335
  platform: r,
336
336
  elements: {
@@ -338,27 +338,27 @@ const Ie = async (t, e, n) => {
338
338
  floating: e
339
339
  }
340
340
  });
341
- u = y ?? u, f = b ?? f, d = {
342
- ...d,
341
+ f = y ?? f, d = b ?? d, u = {
342
+ ...u,
343
343
  [g]: {
344
- ...d[g],
345
- ...R
344
+ ...u[g],
345
+ ...C
346
346
  }
347
347
  }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await r.getElementRects({
348
348
  reference: t,
349
349
  floating: e,
350
350
  strategy: s
351
351
  }) : S.rects), {
352
- x: u,
353
- y: f
352
+ x: f,
353
+ y: d
354
354
  } = Vt(c, m, a)), h = -1);
355
355
  }
356
356
  return {
357
- x: u,
358
- y: f,
357
+ x: f,
358
+ y: d,
359
359
  placement: m,
360
360
  strategy: s,
361
- middlewareData: d
361
+ middlewareData: u
362
362
  };
363
363
  };
364
364
  async function We(t, e) {
@@ -373,37 +373,37 @@ async function We(t, e) {
373
373
  strategy: a
374
374
  } = t, {
375
375
  boundary: c = "clippingAncestors",
376
- rootBoundary: u = "viewport",
377
- elementContext: f = "floating",
376
+ rootBoundary: f = "viewport",
377
+ elementContext: d = "floating",
378
378
  altBoundary: m = !1,
379
- padding: d = 0
380
- } = Ot(e, t), p = Ne(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = ut(await i.getClippingRect({
379
+ padding: u = 0
380
+ } = Ot(e, t), p = Ne(u), g = l[m ? d === "floating" ? "reference" : "floating" : d], v = ft(await i.getClippingRect({
381
381
  element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
382
382
  boundary: c,
383
- rootBoundary: u,
383
+ rootBoundary: f,
384
384
  strategy: a
385
- })), y = f === "floating" ? {
385
+ })), y = d === "floating" ? {
386
386
  x: o,
387
387
  y: s,
388
388
  width: r.floating.width,
389
389
  height: r.floating.height
390
- } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
390
+ } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), C = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
391
391
  x: 1,
392
392
  y: 1
393
393
  } : {
394
394
  x: 1,
395
395
  y: 1
396
- }, S = ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
396
+ }, S = ft(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
397
397
  elements: l,
398
398
  rect: y,
399
399
  offsetParent: b,
400
400
  strategy: a
401
401
  }) : y);
402
402
  return {
403
- top: (v.top - S.top + p.top) / R.y,
404
- bottom: (S.bottom - v.bottom + p.bottom) / R.y,
405
- left: (v.left - S.left + p.left) / R.x,
406
- right: (S.right - v.right + p.right) / R.x
403
+ top: (v.top - S.top + p.top) / C.y,
404
+ bottom: (S.bottom - v.bottom + p.bottom) / C.y,
405
+ left: (v.left - S.left + p.left) / C.x,
406
+ right: (S.right - v.right + p.right) / C.x
407
407
  };
408
408
  }
409
409
  const He = function(t) {
@@ -420,22 +420,22 @@ const He = function(t) {
420
420
  platform: a,
421
421
  elements: c
422
422
  } = e, {
423
- mainAxis: u = !0,
424
- crossAxis: f = !0,
423
+ mainAxis: f = !0,
424
+ crossAxis: d = !0,
425
425
  fallbackPlacements: m,
426
- fallbackStrategy: d = "bestFit",
426
+ fallbackStrategy: u = "bestFit",
427
427
  fallbackAxisSideDirection: p = "none",
428
428
  flipAlignment: h = !0,
429
429
  ...g
430
430
  } = Ot(t, e);
431
431
  if ((n = i.arrow) != null && n.alignmentOffset)
432
432
  return {};
433
- const v = Z(s), y = W(l), b = Z(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (b || !h ? [at(l)] : De(l)), V = p !== "none";
434
- !m && V && S.push(...Ve(l, h, p, R));
433
+ const v = Z(s), y = W(l), b = Z(l) === l, C = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (b || !h ? [ut(l)] : De(l)), V = p !== "none";
434
+ !m && V && S.push(...Ve(l, h, p, C));
435
435
  const x = [l, ...S], A = await We(e, g), F = [];
436
436
  let U = ((o = i.flip) == null ? void 0 : o.overflows) || [];
437
- if (u && F.push(A[v]), f) {
438
- const N = Pe(s, r, R);
437
+ if (f && F.push(A[v]), d) {
438
+ const N = Pe(s, r, C);
439
439
  F.push(A[N[0]], A[N[1]]);
440
440
  }
441
441
  if (U = [...U, {
@@ -443,8 +443,8 @@ const He = function(t) {
443
443
  overflows: F
444
444
  }], !F.every((N) => N <= 0)) {
445
445
  var Bt, Pt;
446
- const N = (((Bt = i.flip) == null ? void 0 : Bt.index) || 0) + 1, vt = x[N];
447
- if (vt && (!(f === "alignment" ? y !== W(vt) : !1) || // We leave the current main axis only if every placement on that axis
446
+ const N = (((Bt = i.flip) == null ? void 0 : Bt.index) || 0) + 1, yt = x[N];
447
+ if (yt && (!(d === "alignment" ? y !== W(yt) : !1) || // We leave the current main axis only if every placement on that axis
448
448
  // overflows the main axis.
449
449
  U.every((O) => W(O.placement) === y ? O.overflows[0] > 0 : !0)))
450
450
  return {
@@ -453,23 +453,23 @@ const He = function(t) {
453
453
  overflows: U
454
454
  },
455
455
  reset: {
456
- placement: vt
456
+ placement: yt
457
457
  }
458
458
  };
459
459
  let et = (Pt = U.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Pt.placement;
460
460
  if (!et)
461
- switch (d) {
461
+ switch (u) {
462
462
  case "bestFit": {
463
463
  var Dt;
464
464
  const I = (Dt = U.filter((O) => {
465
465
  if (V) {
466
- const D = W(O.placement);
467
- return D === y || // Create a bias to the `y` side axis due to horizontal
466
+ const q = W(O.placement);
467
+ return q === y || // Create a bias to the `y` side axis due to horizontal
468
468
  // reading directions favoring greater width.
469
- D === "y";
469
+ q === "y";
470
470
  }
471
471
  return !0;
472
- }).map((O) => [O.placement, O.overflows.filter((D) => D > 0).reduce((D, re) => D + re, 0)]).sort((O, D) => O[1] - D[1])[0]) == null ? void 0 : Dt[0];
472
+ }).map((O) => [O.placement, O.overflows.filter((q) => q > 0).reduce((q, re) => q + re, 0)]).sort((O, q) => O[1] - q[1])[0]) == null ? void 0 : Dt[0];
473
473
  I && (et = I);
474
474
  break;
475
475
  }
@@ -493,26 +493,26 @@ async function Xe(t, e) {
493
493
  placement: n,
494
494
  platform: o,
495
495
  elements: s
496
- } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Z(n), l = dt(n), a = W(n) === "y", c = je.has(r) ? -1 : 1, u = i && a ? -1 : 1, f = Ot(e, t);
496
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Z(n), l = pt(n), a = W(n) === "y", c = je.has(r) ? -1 : 1, f = i && a ? -1 : 1, d = Ot(e, t);
497
497
  let {
498
498
  mainAxis: m,
499
- crossAxis: d,
499
+ crossAxis: u,
500
500
  alignmentAxis: p
501
- } = typeof f == "number" ? {
502
- mainAxis: f,
501
+ } = typeof d == "number" ? {
502
+ mainAxis: d,
503
503
  crossAxis: 0,
504
504
  alignmentAxis: null
505
505
  } : {
506
- mainAxis: f.mainAxis || 0,
507
- crossAxis: f.crossAxis || 0,
508
- alignmentAxis: f.alignmentAxis
506
+ mainAxis: d.mainAxis || 0,
507
+ crossAxis: d.crossAxis || 0,
508
+ alignmentAxis: d.alignmentAxis
509
509
  };
510
- return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), a ? {
511
- x: d * u,
510
+ return l && typeof p == "number" && (u = l === "end" ? p * -1 : p), a ? {
511
+ x: u * f,
512
512
  y: m * c
513
513
  } : {
514
514
  x: m * c,
515
- y: d * u
515
+ y: u * f
516
516
  };
517
517
  }
518
518
  const Ue = function(t) {
@@ -538,11 +538,11 @@ const Ue = function(t) {
538
538
  }
539
539
  };
540
540
  };
541
- function pt() {
541
+ function mt() {
542
542
  return typeof window < "u";
543
543
  }
544
544
  function X(t) {
545
- return _t(t) ? (t.nodeName || "").toLowerCase() : "#document";
545
+ return Tt(t) ? (t.nodeName || "").toLowerCase() : "#document";
546
546
  }
547
547
  function L(t) {
548
548
  var e;
@@ -550,19 +550,19 @@ function L(t) {
550
550
  }
551
551
  function P(t) {
552
552
  var e;
553
- return (e = (_t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
553
+ return (e = (Tt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
554
554
  }
555
- function _t(t) {
556
- return pt() ? t instanceof Node || t instanceof L(t).Node : !1;
555
+ function Tt(t) {
556
+ return mt() ? t instanceof Node || t instanceof L(t).Node : !1;
557
557
  }
558
558
  function E(t) {
559
- return pt() ? t instanceof Element || t instanceof L(t).Element : !1;
559
+ return mt() ? t instanceof Element || t instanceof L(t).Element : !1;
560
560
  }
561
561
  function B(t) {
562
- return pt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
562
+ return mt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
563
563
  }
564
564
  function Ft(t) {
565
- return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
565
+ return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
566
566
  }
567
567
  const Ye = /* @__PURE__ */ new Set(["inline", "contents"]);
568
568
  function rt(t) {
@@ -579,7 +579,7 @@ function Ge(t) {
579
579
  return Ke.has(X(t));
580
580
  }
581
581
  const Je = [":popover-open", ":modal"];
582
- function mt(t) {
582
+ function ht(t) {
583
583
  return Je.some((e) => {
584
584
  try {
585
585
  return t.matches(e);
@@ -589,18 +589,18 @@ function mt(t) {
589
589
  });
590
590
  }
591
591
  const Qe = ["transform", "translate", "scale", "rotate", "perspective"], Ze = ["transform", "translate", "scale", "rotate", "perspective", "filter"], tn = ["paint", "layout", "strict", "content"];
592
- function Tt(t) {
592
+ function _t(t) {
593
593
  const e = Et(), n = E(t) ? $(t) : t;
594
594
  return Qe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ze.some((o) => (n.willChange || "").includes(o)) || tn.some((o) => (n.contain || "").includes(o));
595
595
  }
596
596
  function en(t) {
597
- let e = q(t);
597
+ let e = z(t);
598
598
  for (; B(e) && !tt(e); ) {
599
- if (Tt(e))
599
+ if (_t(e))
600
600
  return e;
601
- if (mt(e))
601
+ if (ht(e))
602
602
  return null;
603
- e = q(e);
603
+ e = z(e);
604
604
  }
605
605
  return null;
606
606
  }
@@ -614,7 +614,7 @@ function tt(t) {
614
614
  function $(t) {
615
615
  return L(t).getComputedStyle(t);
616
616
  }
617
- function ht(t) {
617
+ function gt(t) {
618
618
  return E(t) ? {
619
619
  scrollLeft: t.scrollLeft,
620
620
  scrollTop: t.scrollTop
@@ -623,7 +623,7 @@ function ht(t) {
623
623
  scrollTop: t.scrollY
624
624
  };
625
625
  }
626
- function q(t) {
626
+ function z(t) {
627
627
  if (X(t) === "html")
628
628
  return t;
629
629
  const e = (
@@ -636,7 +636,7 @@ function q(t) {
636
636
  return Ft(e) ? e.host : e;
637
637
  }
638
638
  function Qt(t) {
639
- const e = q(t);
639
+ const e = z(t);
640
640
  return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && rt(e) ? e : Qt(e);
641
641
  }
642
642
  function it(t, e, n) {
@@ -644,18 +644,18 @@ function it(t, e, n) {
644
644
  e === void 0 && (e = []), n === void 0 && (n = !0);
645
645
  const s = Qt(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
646
646
  if (i) {
647
- const l = Lt(r);
647
+ const l = At(r);
648
648
  return e.concat(r, r.visualViewport || [], rt(s) ? s : [], l && n ? it(l) : []);
649
649
  }
650
650
  return e.concat(s, it(s, [], n));
651
651
  }
652
- function Lt(t) {
652
+ function At(t) {
653
653
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
654
654
  }
655
655
  function Zt(t) {
656
656
  const e = $(t);
657
657
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
658
- const s = B(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = ct(n) !== i || ct(o) !== r;
658
+ const s = B(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = at(n) !== i || at(o) !== r;
659
659
  return l && (n = i, o = r), {
660
660
  width: n,
661
661
  height: o,
@@ -674,7 +674,7 @@ function G(t) {
674
674
  height: s,
675
675
  $: i
676
676
  } = Zt(e);
677
- let r = (i ? ct(n.width) : n.width) / o, l = (i ? ct(n.height) : n.height) / s;
677
+ let r = (i ? at(n.width) : n.width) / o, l = (i ? at(n.height) : n.height) / s;
678
678
  return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
679
679
  x: r,
680
680
  y: l
@@ -697,28 +697,28 @@ function j(t, e, n, o) {
697
697
  let r = k(1);
698
698
  e && (o ? E(o) && (r = G(o)) : r = G(t));
699
699
  const l = sn(i, n, o) ? te(i) : k(0);
700
- let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, u = s.width / r.x, f = s.height / r.y;
700
+ let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, f = s.width / r.x, d = s.height / r.y;
701
701
  if (i) {
702
- const m = L(i), d = o && E(o) ? L(o) : o;
703
- let p = m, h = Lt(p);
704
- for (; h && o && d !== p; ) {
705
- const g = G(h), v = h.getBoundingClientRect(), y = $(h), b = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
706
- a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += b, c += R, p = L(h), h = Lt(p);
702
+ const m = L(i), u = o && E(o) ? L(o) : o;
703
+ let p = m, h = At(p);
704
+ for (; h && o && u !== p; ) {
705
+ const g = G(h), v = h.getBoundingClientRect(), y = $(h), b = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, C = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
706
+ a *= g.x, c *= g.y, f *= g.x, d *= g.y, a += b, c += C, p = L(h), h = At(p);
707
707
  }
708
708
  }
709
- return ut({
710
- width: u,
711
- height: f,
709
+ return ft({
710
+ width: f,
711
+ height: d,
712
712
  x: a,
713
713
  y: c
714
714
  });
715
715
  }
716
- function gt(t, e) {
717
- const n = ht(t).scrollLeft;
716
+ function vt(t, e) {
717
+ const n = gt(t).scrollLeft;
718
718
  return e ? e.left + n : j(P(t)).left + n;
719
719
  }
720
720
  function ee(t, e) {
721
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), s = n.top + e.scrollTop;
721
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - vt(t, n), s = n.top + e.scrollTop;
722
722
  return {
723
723
  x: o,
724
724
  y: s
@@ -731,32 +731,32 @@ function rn(t) {
731
731
  offsetParent: o,
732
732
  strategy: s
733
733
  } = t;
734
- const i = s === "fixed", r = P(o), l = e ? mt(e.floating) : !1;
734
+ const i = s === "fixed", r = P(o), l = e ? ht(e.floating) : !1;
735
735
  if (o === r || l && i)
736
736
  return n;
737
737
  let a = {
738
738
  scrollLeft: 0,
739
739
  scrollTop: 0
740
740
  }, c = k(1);
741
- const u = k(0), f = B(o);
742
- if ((f || !f && !i) && ((X(o) !== "body" || rt(r)) && (a = ht(o)), B(o))) {
743
- const d = j(o);
744
- c = G(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
741
+ const f = k(0), d = B(o);
742
+ if ((d || !d && !i) && ((X(o) !== "body" || rt(r)) && (a = gt(o)), B(o))) {
743
+ const u = j(o);
744
+ c = G(o), f.x = u.x + o.clientLeft, f.y = u.y + o.clientTop;
745
745
  }
746
- const m = r && !f && !i ? ee(r, a) : k(0);
746
+ const m = r && !d && !i ? ee(r, a) : k(0);
747
747
  return {
748
748
  width: n.width * c.x,
749
749
  height: n.height * c.y,
750
- x: n.x * c.x - a.scrollLeft * c.x + u.x + m.x,
751
- y: n.y * c.y - a.scrollTop * c.y + u.y + m.y
750
+ x: n.x * c.x - a.scrollLeft * c.x + f.x + m.x,
751
+ y: n.y * c.y - a.scrollTop * c.y + f.y + m.y
752
752
  };
753
753
  }
754
754
  function ln(t) {
755
755
  return Array.from(t.getClientRects());
756
756
  }
757
757
  function cn(t) {
758
- const e = P(t), n = ht(t), o = t.ownerDocument.body, s = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
759
- let r = -n.scrollLeft + gt(t);
758
+ const e = P(t), n = gt(t), o = t.ownerDocument.body, s = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
759
+ let r = -n.scrollLeft + vt(t);
760
760
  const l = -n.scrollTop;
761
761
  return $(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - s), {
762
762
  width: s,
@@ -771,12 +771,12 @@ function an(t, e) {
771
771
  let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
772
772
  if (s) {
773
773
  i = s.width, r = s.height;
774
- const u = Et();
775
- (!u || u && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
774
+ const f = Et();
775
+ (!f || f && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
776
776
  }
777
- const c = gt(o);
777
+ const c = vt(o);
778
778
  if (c <= 0) {
779
- const u = o.ownerDocument, f = u.body, m = getComputedStyle(f), d = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - d);
779
+ const f = o.ownerDocument, d = f.body, m = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - u);
780
780
  p <= Nt && (i -= p);
781
781
  } else c <= Nt && (i += c);
782
782
  return {
@@ -813,10 +813,10 @@ function It(t, e, n) {
813
813
  height: e.height
814
814
  };
815
815
  }
816
- return ut(o);
816
+ return ft(o);
817
817
  }
818
818
  function ne(t, e) {
819
- const n = q(t);
819
+ const n = z(t);
820
820
  return n === e || !E(n) || tt(n) ? !1 : $(n).position === "fixed" || ne(n, e);
821
821
  }
822
822
  function dn(t, e) {
@@ -825,10 +825,10 @@ function dn(t, e) {
825
825
  return n;
826
826
  let o = it(t, [], !1).filter((l) => E(l) && X(l) !== "body"), s = null;
827
827
  const i = $(t).position === "fixed";
828
- let r = i ? q(t) : t;
828
+ let r = i ? z(t) : t;
829
829
  for (; E(r) && !tt(r); ) {
830
- const l = $(r), a = Tt(r);
831
- !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && un.has(s.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((u) => u !== r) : s = l, r = q(r);
830
+ const l = $(r), a = _t(r);
831
+ !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && un.has(s.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((f) => f !== r) : s = l, r = z(r);
832
832
  }
833
833
  return e.set(t, o), o;
834
834
  }
@@ -839,9 +839,9 @@ function pn(t) {
839
839
  rootBoundary: o,
840
840
  strategy: s
841
841
  } = t;
842
- const r = [...n === "clippingAncestors" ? mt(e) ? [] : dn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
843
- const f = It(e, u, s);
844
- return c.top = K(f.top, c.top), c.right = Rt(f.right, c.right), c.bottom = Rt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
842
+ const r = [...n === "clippingAncestors" ? ht(e) ? [] : dn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
843
+ const d = It(e, f, s);
844
+ return c.top = K(d.top, c.top), c.right = Rt(d.right, c.right), c.bottom = Rt(d.bottom, c.bottom), c.left = K(d.left, c.left), c;
845
845
  }, It(e, l, s));
846
846
  return {
847
847
  width: a.right - a.left,
@@ -868,23 +868,23 @@ function hn(t, e, n) {
868
868
  };
869
869
  const a = k(0);
870
870
  function c() {
871
- a.x = gt(s);
871
+ a.x = vt(s);
872
872
  }
873
873
  if (o || !o && !i)
874
- if ((X(e) !== "body" || rt(s)) && (l = ht(e)), o) {
875
- const d = j(e, !0, i, e);
876
- a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
874
+ if ((X(e) !== "body" || rt(s)) && (l = gt(e)), o) {
875
+ const u = j(e, !0, i, e);
876
+ a.x = u.x + e.clientLeft, a.y = u.y + e.clientTop;
877
877
  } else s && c();
878
878
  i && !o && s && c();
879
- const u = s && !o && !i ? ee(s, l) : k(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
879
+ const f = s && !o && !i ? ee(s, l) : k(0), d = r.left + l.scrollLeft - a.x - f.x, m = r.top + l.scrollTop - a.y - f.y;
880
880
  return {
881
- x: f,
881
+ x: d,
882
882
  y: m,
883
883
  width: r.width,
884
884
  height: r.height
885
885
  };
886
886
  }
887
- function wt(t) {
887
+ function xt(t) {
888
888
  return $(t).position === "static";
889
889
  }
890
890
  function Wt(t, e) {
@@ -897,21 +897,21 @@ function Wt(t, e) {
897
897
  }
898
898
  function oe(t, e) {
899
899
  const n = L(t);
900
- if (mt(t))
900
+ if (ht(t))
901
901
  return n;
902
902
  if (!B(t)) {
903
- let s = q(t);
903
+ let s = z(t);
904
904
  for (; s && !tt(s); ) {
905
- if (E(s) && !wt(s))
905
+ if (E(s) && !xt(s))
906
906
  return s;
907
- s = q(s);
907
+ s = z(s);
908
908
  }
909
909
  return n;
910
910
  }
911
911
  let o = Wt(t, e);
912
- for (; o && Ge(o) && wt(o); )
912
+ for (; o && Ge(o) && xt(o); )
913
913
  o = Wt(o, e);
914
- return o && tt(o) && wt(o) && !Tt(o) ? n : o || en(t) || n;
914
+ return o && tt(o) && xt(o) && !_t(o) ? n : o || en(t) || n;
915
915
  }
916
916
  const gn = async function(t) {
917
917
  const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
@@ -953,28 +953,28 @@ function wn(t, e) {
953
953
  function r(l, a) {
954
954
  l === void 0 && (l = !1), a === void 0 && (a = 1), i();
955
955
  const c = t.getBoundingClientRect(), {
956
- left: u,
957
- top: f,
956
+ left: f,
957
+ top: d,
958
958
  width: m,
959
- height: d
959
+ height: u
960
960
  } = c;
961
- if (l || e(), !m || !d)
961
+ if (l || e(), !m || !u)
962
962
  return;
963
- const p = lt(f), h = lt(s.clientWidth - (u + m)), g = lt(s.clientHeight - (f + d)), v = lt(u), b = {
963
+ const p = lt(d), h = lt(s.clientWidth - (f + m)), g = lt(s.clientHeight - (d + u)), v = lt(f), b = {
964
964
  rootMargin: -p + "px " + -h + "px " + -g + "px " + -v + "px",
965
965
  threshold: K(0, Rt(1, a)) || 1
966
966
  };
967
- let R = !0;
967
+ let C = !0;
968
968
  function S(V) {
969
969
  const x = V[0].intersectionRatio;
970
970
  if (x !== a) {
971
- if (!R)
971
+ if (!C)
972
972
  return r();
973
973
  x ? r(!1, x) : o = setTimeout(() => {
974
974
  r(!1, 1e-7);
975
975
  }, 1e3);
976
976
  }
977
- x === 1 && !se(c, t.getBoundingClientRect()) && r(), R = !1;
977
+ x === 1 && !se(c, t.getBoundingClientRect()) && r(), C = !1;
978
978
  }
979
979
  try {
980
980
  n = new IntersectionObserver(S, {
@@ -997,21 +997,21 @@ function xn(t, e, n, o) {
997
997
  elementResize: r = typeof ResizeObserver == "function",
998
998
  layoutShift: l = typeof IntersectionObserver == "function",
999
999
  animationFrame: a = !1
1000
- } = o, c = $t(t), u = s || i ? [...c ? it(c) : [], ...it(e)] : [];
1001
- u.forEach((v) => {
1000
+ } = o, c = $t(t), f = s || i ? [...c ? it(c) : [], ...it(e)] : [];
1001
+ f.forEach((v) => {
1002
1002
  s && v.addEventListener("scroll", n, {
1003
1003
  passive: !0
1004
1004
  }), i && v.addEventListener("resize", n);
1005
1005
  });
1006
- const f = c && l ? wn(c, n) : null;
1007
- let m = -1, d = null;
1008
- r && (d = new ResizeObserver((v) => {
1006
+ const d = c && l ? wn(c, n) : null;
1007
+ let m = -1, u = null;
1008
+ r && (u = new ResizeObserver((v) => {
1009
1009
  let [y] = v;
1010
- y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1010
+ y && y.target === c && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1011
1011
  var b;
1012
- (b = d) == null || b.observe(e);
1012
+ (b = u) == null || b.observe(e);
1013
1013
  })), n();
1014
- }), c && !a && d.observe(c), d.observe(e));
1014
+ }), c && !a && u.observe(c), u.observe(e));
1015
1015
  let p, h = a ? j(t) : null;
1016
1016
  a && g();
1017
1017
  function g() {
@@ -1020,12 +1020,12 @@ function xn(t, e, n, o) {
1020
1020
  }
1021
1021
  return n(), () => {
1022
1022
  var v;
1023
- u.forEach((y) => {
1023
+ f.forEach((y) => {
1024
1024
  s && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
1025
- }), f == null || f(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(p);
1025
+ }), d == null || d(), (v = u) == null || v.disconnect(), u = null, a && cancelAnimationFrame(p);
1026
1026
  };
1027
1027
  }
1028
- const bn = Ue, Sn = He, Rn = (t, e, n) => {
1028
+ const bn = Ue, Sn = He, Cn = (t, e, n) => {
1029
1029
  const o = /* @__PURE__ */ new Map(), s = {
1030
1030
  platform: yn,
1031
1031
  ...n
@@ -1038,13 +1038,13 @@ const bn = Ue, Sn = He, Rn = (t, e, n) => {
1038
1038
  platform: i
1039
1039
  });
1040
1040
  };
1041
- function Cn(t) {
1041
+ function Rn(t) {
1042
1042
  return t != null && typeof t == "object" && "$el" in t;
1043
1043
  }
1044
1044
  function Ht(t) {
1045
- if (Cn(t)) {
1045
+ if (Rn(t)) {
1046
1046
  const e = t.$el;
1047
- return _t(e) && X(e) === "#comment" ? null : e;
1047
+ return Tt(e) && X(e) === "#comment" ? null : e;
1048
1048
  }
1049
1049
  return t;
1050
1050
  }
@@ -1072,66 +1072,66 @@ function Ln(t, e, n) {
1072
1072
  }), a = w(() => {
1073
1073
  var x;
1074
1074
  return (x = ot(n.transform)) != null ? x : !0;
1075
- }), c = w(() => Ht(t.value)), u = w(() => Ht(e.value)), f = nt(0), m = nt(0), d = nt(l.value), p = nt(r.value), h = ae({}), g = nt(!1), v = w(() => {
1075
+ }), c = w(() => Ht(t.value)), f = w(() => Ht(e.value)), d = nt(0), m = nt(0), u = nt(l.value), p = nt(r.value), h = Ct({}), g = nt(!1), v = w(() => {
1076
1076
  const x = {
1077
- position: d.value,
1077
+ position: u.value,
1078
1078
  left: "0",
1079
1079
  top: "0"
1080
1080
  };
1081
- if (!u.value)
1081
+ if (!f.value)
1082
1082
  return x;
1083
- const A = jt(u.value, f.value), F = jt(u.value, m.value);
1083
+ const A = jt(f.value, d.value), F = jt(f.value, m.value);
1084
1084
  return a.value ? {
1085
1085
  ...x,
1086
1086
  transform: "translate(" + A + "px, " + F + "px)",
1087
- ...ie(u.value) >= 1.5 && {
1087
+ ...ie(f.value) >= 1.5 && {
1088
1088
  willChange: "transform"
1089
1089
  }
1090
1090
  } : {
1091
- position: d.value,
1091
+ position: u.value,
1092
1092
  left: A + "px",
1093
1093
  top: F + "px"
1094
1094
  };
1095
1095
  });
1096
1096
  let y;
1097
1097
  function b() {
1098
- if (c.value == null || u.value == null)
1098
+ if (c.value == null || f.value == null)
1099
1099
  return;
1100
1100
  const x = s.value;
1101
- Rn(c.value, u.value, {
1101
+ Cn(c.value, f.value, {
1102
1102
  middleware: i.value,
1103
1103
  placement: r.value,
1104
1104
  strategy: l.value
1105
1105
  }).then((A) => {
1106
- f.value = A.x, m.value = A.y, d.value = A.strategy, p.value = A.placement, h.value = A.middlewareData, g.value = x !== !1;
1106
+ d.value = A.x, m.value = A.y, u.value = A.strategy, p.value = A.placement, h.value = A.middlewareData, g.value = x !== !1;
1107
1107
  });
1108
1108
  }
1109
- function R() {
1109
+ function C() {
1110
1110
  typeof y == "function" && (y(), y = void 0);
1111
1111
  }
1112
1112
  function S() {
1113
- if (R(), o === void 0) {
1113
+ if (C(), o === void 0) {
1114
1114
  b();
1115
1115
  return;
1116
1116
  }
1117
- if (c.value != null && u.value != null) {
1118
- y = o(c.value, u.value, b);
1117
+ if (c.value != null && f.value != null) {
1118
+ y = o(c.value, f.value, b);
1119
1119
  return;
1120
1120
  }
1121
1121
  }
1122
1122
  function V() {
1123
1123
  s.value || (g.value = !1);
1124
1124
  }
1125
- return yt([i, r, l, s], b, {
1125
+ return wt([i, r, l, s], b, {
1126
1126
  flush: "sync"
1127
- }), yt([c, u], S, {
1127
+ }), wt([c, f], S, {
1128
1128
  flush: "sync"
1129
- }), yt(s, V, {
1129
+ }), wt(s, V, {
1130
1130
  flush: "sync"
1131
- }), ue() && fe(R), {
1132
- x: Y(f),
1131
+ }), ue() && fe(C), {
1132
+ x: Y(d),
1133
1133
  y: Y(m),
1134
- strategy: Y(d),
1134
+ strategy: Y(u),
1135
1135
  placement: Y(p),
1136
1136
  middlewareData: Y(h),
1137
1137
  isPositioned: Y(g),
@@ -1139,81 +1139,82 @@ function Ln(t, e, n) {
1139
1139
  update: b
1140
1140
  };
1141
1141
  }
1142
- const En = /* @__PURE__ */ z({
1142
+ const En = /* @__PURE__ */ M({
1143
1143
  __name: "SqPopover",
1144
- props: /* @__PURE__ */ bt({
1144
+ props: /* @__PURE__ */ St({
1145
1145
  placement: { default: "top" },
1146
1146
  offset: { default: 10 },
1147
- teleported: { type: Boolean },
1147
+ teleported: { type: Boolean, default: !0 },
1148
1148
  trigger: { default: "hover" },
1149
1149
  showAfter: { default: 0 },
1150
1150
  hideAfter: { default: 300 },
1151
1151
  disabled: { type: Boolean },
1152
1152
  popoverClass: {}
1153
1153
  }, {
1154
- visible: { type: Boolean },
1154
+ visible: { type: Boolean, default: !1 },
1155
1155
  visibleModifiers: {}
1156
1156
  }),
1157
1157
  emits: ["update:visible"],
1158
1158
  setup(t) {
1159
1159
  let e;
1160
- const n = t, o = St("triggerRef"), s = St("popverRef"), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
1160
+ const n = t, o = Ct(null), s = Ct(null), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
1161
1161
  placement: n.placement,
1162
1162
  whileElementsMounted: xn,
1163
1163
  transform: !1,
1164
1164
  middleware: [bn(n.offset), Sn()]
1165
1165
  });
1166
1166
  de(() => {
1167
- m(), document.removeEventListener("click", f);
1167
+ m(), document.removeEventListener("click", d);
1168
1168
  });
1169
1169
  function l() {
1170
1170
  n.trigger !== "hover" || n.disabled || (m(), e = setTimeout(() => {
1171
- u();
1171
+ f(!1);
1172
1172
  }, n.showAfter));
1173
1173
  }
1174
1174
  function a() {
1175
1175
  n.trigger === "hover" && (m(), e = setTimeout(() => {
1176
- f();
1176
+ d();
1177
1177
  }, n.hideAfter));
1178
1178
  }
1179
1179
  function c() {
1180
- n.trigger === "click" && (i.value ? f() : n.disabled || u());
1180
+ n.trigger === "click" && (i.value ? d() : n.disabled || f());
1181
1181
  }
1182
- function u() {
1183
- i.value = !0, document.addEventListener("click", f);
1182
+ function f(u = !0) {
1183
+ i.value = !0, u && document.addEventListener("click", d);
1184
1184
  }
1185
- function f() {
1186
- i.value = !1, document.removeEventListener("click", f);
1185
+ function d() {
1186
+ i.value = !1, document.removeEventListener("click", d);
1187
1187
  }
1188
1188
  function m() {
1189
1189
  e && (clearTimeout(e), e = void 0);
1190
1190
  }
1191
- return (d, p) => (C(), _(pe, null, [
1191
+ return (u, p) => (R(), T(pe, null, [
1192
1192
  J("span", {
1193
- class: "sq-popover-trigger",
1193
+ class: D(["sq-popover-trigger", u.$attrs.class]),
1194
+ style: ct(u.$attrs.style),
1194
1195
  ref_key: "triggerRef",
1195
1196
  ref: o,
1196
1197
  onMouseenter: l,
1197
1198
  onMouseleave: a,
1198
1199
  onClick: qt(c, ["stop"])
1199
1200
  }, [
1200
- T(d.$slots, "reference")
1201
- ], 544),
1202
- (C(), Q(me, {
1201
+ _(u.$slots, "reference")
1202
+ ], 38),
1203
+ (R(), Q(me, {
1203
1204
  to: "body",
1204
1205
  disabled: !n.teleported
1205
1206
  }, [
1206
1207
  Xt(he, { name: "sq-fade" }, {
1207
- default: ft(() => [
1208
+ default: dt(() => [
1208
1209
  Kt(J("div", {
1209
- class: M(["sq-popover", d.popoverClass]),
1210
+ class: D(["sq-popover", u.popoverClass]),
1210
1211
  ref_key: "popverRef",
1211
1212
  ref: s,
1212
- style: At(H(r)),
1213
+ style: ct(H(r)),
1213
1214
  onClick: p[0] || (p[0] = qt(() => {
1214
1215
  }, ["stop"]))
1215
1216
  }, [
1216
- T(d.$slots, "default")
1217
+ _(u.$slots, "default")
1217
1218
  ], 6), [
1218
1219
  [ge, i.value]
1219
1220
  ])
@@ -1223,7 +1224,7 @@ const En = /* @__PURE__ */ z({
1223
1224
  ], 8, ["disabled"]))
1224
1225
  ], 64));
1225
1226
  }
1226
- }), $n = /* @__PURE__ */ z({
1227
+ }), $n = /* @__PURE__ */ M({
1227
1228
  __name: "SqProgress",
1228
1229
  props: {
1229
1230
  value: {},
@@ -1244,12 +1245,12 @@ const En = /* @__PURE__ */ z({
1244
1245
  }
1245
1246
  return i;
1246
1247
  });
1247
- return (i, r) => (C(), _("div", {
1248
- class: M(["sq-progress", n.value]),
1249
- style: At(s.value)
1248
+ return (i, r) => (R(), T("div", {
1249
+ class: D(["sq-progress", n.value]),
1250
+ style: ct(s.value)
1250
1251
  }, null, 6));
1251
1252
  }
1252
- }), kn = /* @__PURE__ */ z({
1253
+ }), kn = /* @__PURE__ */ M({
1253
1254
  __name: "SqTag",
1254
1255
  props: {
1255
1256
  type: {},
@@ -1262,17 +1263,17 @@ const En = /* @__PURE__ */ z({
1262
1263
  const s = [];
1263
1264
  return e.size !== "md" && s.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), s;
1264
1265
  }), o = w(() => e.size === "lg" ? "md" : "sm");
1265
- return (s, i) => (C(), Q(H(kt), {
1266
- class: M(["sq-tag", n.value]),
1266
+ return (s, i) => (R(), Q(H(kt), {
1267
+ class: D(["sq-tag", n.value]),
1267
1268
  size: o.value
1268
1269
  }, {
1269
- default: ft(() => [
1270
- T(s.$slots, "default")
1270
+ default: dt(() => [
1271
+ _(s.$slots, "default")
1271
1272
  ]),
1272
1273
  _: 3
1273
1274
  }, 8, ["class", "size"]));
1274
1275
  }
1275
- }), Bn = /* @__PURE__ */ z({
1276
+ }), Bn = /* @__PURE__ */ M({
1276
1277
  __name: "SqCheckTag",
1277
1278
  props: {
1278
1279
  checked: { type: Boolean, default: !1 },
@@ -1286,18 +1287,18 @@ const En = /* @__PURE__ */ z({
1286
1287
  const r = [];
1287
1288
  return o.size !== "md" && r.push(`sq-tag--${o.size}`), o.type && r.push(`is-${o.type}`), o.round && r.push("is-round"), o.checked && r.push("is-checked"), r;
1288
1289
  }), i = w(() => o.size === "lg" ? "md" : "sm");
1289
- return (r, l) => (C(), Q(H(kt), {
1290
- class: M(["sq-check-tag", s.value]),
1290
+ return (r, l) => (R(), Q(H(kt), {
1291
+ class: D(["sq-check-tag", s.value]),
1291
1292
  size: i.value,
1292
1293
  onClick: l[0] || (l[0] = (a) => n("change", !o.checked))
1293
1294
  }, {
1294
- default: ft(() => [
1295
- T(r.$slots, "default")
1295
+ default: dt(() => [
1296
+ _(r.$slots, "default")
1296
1297
  ]),
1297
1298
  _: 3
1298
1299
  }, 8, ["class", "size"]));
1299
1300
  }
1300
- }), kt = /* @__PURE__ */ z({
1301
+ }), kt = /* @__PURE__ */ M({
1301
1302
  __name: "SqText",
1302
1303
  props: {
1303
1304
  rowNum: { default: 1 },
@@ -1311,19 +1312,19 @@ const En = /* @__PURE__ */ z({
1311
1312
  }), o = w(
1312
1313
  () => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
1313
1314
  );
1314
- return (s, i) => (C(), _("span", {
1315
- class: M(["sq-text", n.value]),
1316
- style: At(o.value)
1315
+ return (s, i) => (R(), T("span", {
1316
+ class: D(["sq-text", n.value]),
1317
+ style: ct(o.value)
1317
1318
  }, [
1318
- T(s.$slots, "default")
1319
+ _(s.$slots, "default")
1319
1320
  ], 6));
1320
1321
  }
1321
1322
  });
1322
1323
  export {
1323
1324
  On as SqButton,
1324
- _n as SqCard,
1325
+ Tn as SqCard,
1325
1326
  Bn as SqCheckTag,
1326
- Tn as SqInput,
1327
+ _n as SqInput,
1327
1328
  En as SqPopover,
1328
1329
  $n as SqProgress,
1329
1330
  kn as SqTag,