@squirrel-cloud/ui-vue 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/components/button/button-group.d.ts +20 -0
  2. package/dist/components/button/index.d.ts +3 -0
  3. package/dist/components/button/injection-keys.d.ts +6 -0
  4. package/dist/components/card/{SqCard.d.ts → card.d.ts} +2 -2
  5. package/dist/components/card/index.d.ts +2 -0
  6. package/dist/components/index.d.ts +8 -9
  7. package/dist/components/input/index.d.ts +2 -0
  8. package/dist/components/input/{SqInput.d.ts → input.d.ts} +2 -2
  9. package/dist/components/popover/index.d.ts +2 -0
  10. package/dist/components/popover/{SqPopover.d.ts → popover.d.ts} +5 -4
  11. package/dist/components/progress/index.d.ts +2 -0
  12. package/dist/components/progress/{SqProgress.d.ts → progress.d.ts} +1 -1
  13. package/dist/components/tag/{SqCheckTag.d.ts → check-tag.d.ts} +2 -1
  14. package/dist/components/tag/index.d.ts +3 -0
  15. package/dist/components/tag/{SqTag.d.ts → tag.d.ts} +1 -1
  16. package/dist/components/text/index.d.ts +2 -0
  17. package/dist/components/timeline/index.d.ts +3 -0
  18. package/dist/components/timeline/timeline-item.d.ts +20 -0
  19. package/dist/components/timeline/timeline.d.ts +20 -0
  20. package/dist/props/button/button-group.d.ts +8 -0
  21. package/dist/props/button/{SqButton.d.ts → button.d.ts} +2 -2
  22. package/dist/props/button/index.d.ts +2 -0
  23. package/dist/props/card/index.d.ts +1 -0
  24. package/dist/props/index.d.ts +8 -9
  25. package/dist/props/input/index.d.ts +1 -0
  26. package/dist/props/input/{SqInput.d.ts → input.d.ts} +2 -2
  27. package/dist/props/popover/index.d.ts +1 -0
  28. package/dist/props/popover/{SqPopover.d.ts → popover.d.ts} +8 -3
  29. package/dist/props/progress/index.d.ts +1 -0
  30. package/dist/props/progress/{SqProgress.d.ts → progress.d.ts} +2 -2
  31. package/dist/props/tag/{SqCheckTag.d.ts → check-tag.d.ts} +5 -0
  32. package/dist/props/tag/index.d.ts +2 -0
  33. package/dist/props/tag/{SqTag.d.ts → tag.d.ts} +3 -3
  34. package/dist/props/text/index.d.ts +1 -0
  35. package/dist/props/text/{SqText.d.ts → text.d.ts} +1 -1
  36. package/dist/props/timeline/index.d.ts +2 -0
  37. package/dist/props/timeline/timeline-item.d.ts +35 -0
  38. package/dist/props/timeline/timeline.d.ts +10 -0
  39. package/dist/squirrel-cloud-ui-vue.js +617 -522
  40. package/dist/squirrel-cloud-ui-vue.umd.cjs +1 -1
  41. package/dist/style.css +1 -1
  42. package/package.json +1 -1
  43. package/typings/Alignment.d.ts +4 -0
  44. package/typings/ButtonGroupContext.d.ts +21 -0
  45. package/typings/ComponentType.d.ts +3 -1
  46. package/typings/ComponentTypeBase.d.ts +4 -0
  47. package/typings/LineType.d.ts +4 -0
  48. package/typings/PopoverPlacement.d.ts +16 -0
  49. package/typings/PopoverTrigger.d.ts +4 -0
  50. package/typings/TagTheme.d.ts +6 -0
  51. package/typings/TagThemeBase.d.ts +4 -0
  52. package/typings/TimelineTheme.d.ts +4 -0
  53. package/typings/index.d.ts +11 -5
  54. package/typings/ComponentTypeExtend.d.ts +0 -6
  55. /package/dist/components/button/{SqButton.d.ts → button.d.ts} +0 -0
  56. /package/dist/components/text/{SqText.d.ts → text.d.ts} +0 -0
  57. /package/dist/props/card/{SqCard.d.ts → card.d.ts} +0 -0
@@ -1,21 +1,21 @@
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
- const ve = (t, e) => {
1
+ import { createElementBlock as C, openBlock as b, createElementVNode as q, defineComponent as B, inject as ae, computed as v, normalizeClass as T, createVNode as Ut, unref as X, withCtx as pt, createBlock as U, createCommentVNode as V, renderSlot as $, resolveDynamicComponent as at, provide as ue, ref as Q, toRef as xt, useSlots as Yt, toDisplayString as _t, mergeModels as Rt, useModel as Gt, useTemplateRef as fe, withDirectives as Kt, vModelText as de, shallowRef as Ct, watch as bt, getCurrentScope as pe, onScopeDispose as me, shallowReadonly as J, onBeforeUnmount as he, Fragment as ge, normalizeStyle as it, Teleport as ve, Transition as ye, withModifiers as we, vShow as xe } from "vue";
2
+ const be = (t, e) => {
3
3
  const n = t.__vccOpts || t;
4
4
  for (const [o, s] of e)
5
5
  n[o] = s;
6
6
  return n;
7
- }, ye = {}, we = {
7
+ }, Se = {}, _e = {
8
8
  class: "sq-icon is-loading",
9
9
  "data-icon": "loading"
10
10
  };
11
- function xe(t, e) {
12
- return R(), T("span", we, e[0] || (e[0] = [
13
- J("svg", {
11
+ function Re(t, e) {
12
+ return b(), C("span", _e, e[0] || (e[0] = [
13
+ q("svg", {
14
14
  viewBox: "0 0 48 48",
15
15
  version: "1.1",
16
16
  xmlns: "http://www.w3.org/2000/svg"
17
17
  }, [
18
- J("circle", {
18
+ q("circle", {
19
19
  cx: "24",
20
20
  cy: "24",
21
21
  r: "20"
@@ -23,8 +23,8 @@ function xe(t, e) {
23
23
  ], -1)
24
24
  ]));
25
25
  }
26
- const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ M({
27
- __name: "SqButton",
26
+ const Ce = /* @__PURE__ */ be(Se, [["render", Re]]), Jt = Symbol("button-group-context-keys"), $e = ["disabled"], qn = /* @__PURE__ */ B({
27
+ __name: "button",
28
28
  props: {
29
29
  type: {},
30
30
  round: { type: Boolean },
@@ -35,62 +35,91 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
35
35
  size: { default: "md" }
36
36
  },
37
37
  setup(t) {
38
- const e = t, n = w(() => {
39
- const i = [];
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
- }), o = w(() => e.loading ? be : e.icon), s = w(() => e.loading || e.disabled);
42
- return (i, r) => (R(), T("button", {
43
- class: D(["sq-button", n.value]),
44
- disabled: s.value
38
+ const e = ae(Jt, void 0), n = t, o = v(() => {
39
+ const c = [], u = r.value, d = l.value, m = a.value;
40
+ return u !== "md" && c.push(`sq-button--${u}`), d && c.push(`is-${d}`), m && c.push("is-round"), !(e != null && e.value) && n.text && c.push("is-text"), c;
41
+ }), s = v(() => n.loading ? Ce : n.icon), i = v(() => n.loading || n.disabled), r = v(() => {
42
+ var c;
43
+ return ((c = e == null ? void 0 : e.value) == null ? void 0 : c.size) ?? n.size;
44
+ }), l = v(() => {
45
+ var c;
46
+ return ((c = e == null ? void 0 : e.value) == null ? void 0 : c.type) ?? n.type;
47
+ }), a = v(() => {
48
+ var c;
49
+ return ((c = e == null ? void 0 : e.value) == null ? void 0 : c.round) ?? n.round;
50
+ });
51
+ return (c, u) => (b(), C("button", {
52
+ class: T(["sq-button", o.value]),
53
+ disabled: i.value
45
54
  }, [
46
- Xt(H(kt), {
47
- size: e.size
55
+ Ut(X(zt), {
56
+ size: n.size
48
57
  }, {
49
- default: dt(() => [
50
- o.value ? (R(), Q(bt(o.value), { key: 0 })) : st("", !0),
51
- _(i.$slots, "default")
58
+ default: pt(() => [
59
+ s.value ? (b(), U(at(s.value), { key: 0 })) : V("", !0),
60
+ $(c.$slots, "default")
52
61
  ]),
53
62
  _: 3
54
63
  }, 8, ["size"])
55
- ], 10, Se));
64
+ ], 10, $e));
65
+ }
66
+ }), Le = { class: "sq-button-group" }, Mn = /* @__PURE__ */ B({
67
+ __name: "button-group",
68
+ props: {
69
+ size: { default: "md" },
70
+ type: {},
71
+ round: { type: Boolean }
72
+ },
73
+ setup(t) {
74
+ const e = t;
75
+ return ue(
76
+ Jt,
77
+ Q({
78
+ size: xt(e, "size"),
79
+ type: xt(e, "type"),
80
+ round: xt(e, "round")
81
+ })
82
+ ), (n, o) => (b(), C("div", Le, [
83
+ $(n.$slots, "default")
84
+ ]));
56
85
  }
57
- }), Ce = { class: "sq-card" }, Re = {
86
+ }), Oe = { class: "sq-card" }, Ae = {
58
87
  key: 0,
59
88
  class: "sq-card-header"
60
- }, Le = ["textContent"], Ae = {
89
+ }, Te = ["textContent"], Ee = {
61
90
  key: 1,
62
91
  class: "sq-card-footer"
63
- }, Tn = /* @__PURE__ */ M({
64
- __name: "SqCard",
92
+ }, Vn = /* @__PURE__ */ B({
93
+ __name: "card",
65
94
  props: {
66
95
  title: {},
67
96
  decorative: { type: Boolean, default: !1 }
68
97
  },
69
98
  setup(t) {
70
- const e = Ut(), n = t;
71
- return (o, s) => (R(), T("div", Ce, [
72
- n.title || H(e).title ? (R(), T("div", Re, [
73
- J("h2", {
74
- class: D({ "has-decorative": n.decorative }),
75
- textContent: le(n.title)
76
- }, null, 10, Le),
77
- _(o.$slots, "title")
78
- ])) : st("", !0),
79
- _(o.$slots, "default"),
80
- H(e).footer ? (R(), T("div", Ae, [
81
- _(o.$slots, "footer")
82
- ])) : st("", !0)
99
+ const e = Yt(), n = t;
100
+ return (o, s) => (b(), C("section", Oe, [
101
+ n.title || X(e).title ? (b(), C("div", Ae, [
102
+ q("h2", {
103
+ class: T({ "has-decorative": n.decorative }),
104
+ textContent: _t(n.title)
105
+ }, null, 10, Te),
106
+ $(o.$slots, "title")
107
+ ])) : V("", !0),
108
+ $(o.$slots, "default"),
109
+ X(e).footer ? (b(), C("div", Ee, [
110
+ $(o.$slots, "footer")
111
+ ])) : V("", !0)
83
112
  ]));
84
113
  }
85
- }), Oe = {
114
+ }), ke = {
86
115
  key: 0,
87
116
  class: "sq-input-prefix"
88
- }, Te = ["disabled", "readonly"], _e = {
117
+ }, Be = ["disabled", "readonly"], ze = {
89
118
  key: 1,
90
119
  class: "sq-input-suffix"
91
- }, _n = /* @__PURE__ */ M({
92
- __name: "SqInput",
93
- props: /* @__PURE__ */ St({
120
+ }, Fn = /* @__PURE__ */ B({
121
+ __name: "input",
122
+ props: /* @__PURE__ */ Rt({
94
123
  status: {},
95
124
  round: { type: Boolean },
96
125
  showStatusIcon: { type: Boolean },
@@ -103,32 +132,32 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
103
132
  value: { type: String, default: "" },
104
133
  valueModifiers: {}
105
134
  }),
106
- emits: /* @__PURE__ */ St(["focus", "blur", "input", "change"], ["update:value"]),
135
+ emits: /* @__PURE__ */ Rt(["focus", "blur", "input", "change"], ["update:value"]),
107
136
  setup(t, { expose: e, emit: n }) {
108
- const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = ce("inputRef"), a = w(() => {
137
+ const o = Yt(), s = n, i = t, r = Gt(t, "value"), l = fe("inputRef"), a = v(() => {
109
138
  const p = [];
110
139
  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), f = w(() => {
140
+ }), c = v(() => o.prefix || i.prefixIcon), u = v(() => {
112
141
  const p = i.showStatusIcon && i.status;
113
142
  return o.suffix || p || i.suffixIcon;
114
- }), d = w(() => i.suffixIcon);
143
+ }), d = v(() => i.suffixIcon);
115
144
  function m() {
116
145
  var p;
117
146
  (p = l.value) == null || p.focus();
118
147
  }
119
- function u() {
148
+ function f() {
120
149
  var p;
121
150
  (p = l.value) == null || p.blur();
122
151
  }
123
- return e({ focus: m, blur: u }), (p, h) => (R(), T("section", {
124
- class: D(["sq-input", a.value])
152
+ return e({ focus: m, blur: f }), (p, h) => (b(), C("div", {
153
+ class: T(["sq-input", a.value])
125
154
  }, [
126
- c.value ? (R(), T("span", Oe, [
127
- _(p.$slots, "prefix", {}, () => [
128
- (R(), Q(bt(i.prefixIcon)))
155
+ c.value ? (b(), C("span", ke, [
156
+ $(p.$slots, "prefix", {}, () => [
157
+ (b(), U(at(i.prefixIcon)))
129
158
  ])
130
- ])) : st("", !0),
131
- Kt(J("input", {
159
+ ])) : V("", !0),
160
+ Kt(q("input", {
132
161
  "onUpdate:modelValue": h[0] || (h[0] = (g) => r.value = g),
133
162
  class: "sq-input-inner",
134
163
  disabled: i.disabled,
@@ -139,85 +168,85 @@ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /*
139
168
  onBlur: h[2] || (h[2] = (g) => s("blur", g)),
140
169
  onInput: h[3] || (h[3] = (g) => s("input", g)),
141
170
  onChange: h[4] || (h[4] = (g) => s("change", g))
142
- }, null, 40, Te), [
143
- [ae, r.value]
171
+ }, null, 40, Be), [
172
+ [de, r.value]
144
173
  ]),
145
- f.value ? (R(), T("span", _e, [
146
- _(p.$slots, "suffix", {}, () => [
147
- (R(), Q(bt(d.value)))
174
+ u.value ? (b(), C("span", ze, [
175
+ $(p.$slots, "suffix", {}, () => [
176
+ (b(), U(at(d.value)))
148
177
  ])
149
- ])) : st("", !0)
178
+ ])) : V("", !0)
150
179
  ], 2));
151
180
  }
152
- }), Rt = Math.min, K = Math.max, at = Math.round, lt = Math.floor, k = (t) => ({
181
+ }), $t = Math.min, Z = Math.max, ut = Math.round, ct = Math.floor, z = (t) => ({
153
182
  x: t,
154
183
  y: t
155
- }), Ee = {
184
+ }), Pe = {
156
185
  left: "right",
157
186
  right: "left",
158
187
  bottom: "top",
159
188
  top: "bottom"
160
- }, $e = {
189
+ }, De = {
161
190
  start: "end",
162
191
  end: "start"
163
192
  };
164
- function Ot(t, e) {
193
+ function At(t, e) {
165
194
  return typeof t == "function" ? t(e) : t;
166
195
  }
167
- function Z(t) {
196
+ function et(t) {
168
197
  return t.split("-")[0];
169
198
  }
170
- function pt(t) {
199
+ function mt(t) {
171
200
  return t.split("-")[1];
172
201
  }
173
- function ke(t) {
202
+ function qe(t) {
174
203
  return t === "x" ? "y" : "x";
175
204
  }
176
- function Gt(t) {
205
+ function Qt(t) {
177
206
  return t === "y" ? "height" : "width";
178
207
  }
179
- const Be = /* @__PURE__ */ new Set(["top", "bottom"]);
180
- function W(t) {
181
- return Be.has(Z(t)) ? "y" : "x";
208
+ const Me = /* @__PURE__ */ new Set(["top", "bottom"]);
209
+ function j(t) {
210
+ return Me.has(et(t)) ? "y" : "x";
182
211
  }
183
- function Jt(t) {
184
- return ke(W(t));
212
+ function Zt(t) {
213
+ return qe(j(t));
185
214
  }
186
- function Pe(t, e, n) {
215
+ function Ve(t, e, n) {
187
216
  n === void 0 && (n = !1);
188
- const o = pt(t), s = Jt(t), i = Gt(s);
217
+ const o = mt(t), s = Zt(t), i = Qt(s);
189
218
  let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
190
- return e.reference[i] > e.floating[i] && (r = ut(r)), [r, ut(r)];
219
+ return e.reference[i] > e.floating[i] && (r = ft(r)), [r, ft(r)];
191
220
  }
192
- function De(t) {
193
- const e = ut(t);
221
+ function Fe(t) {
222
+ const e = ft(t);
194
223
  return [Lt(t), e, Lt(e)];
195
224
  }
196
225
  function Lt(t) {
197
- return t.replace(/start|end/g, (e) => $e[e]);
226
+ return t.replace(/start|end/g, (e) => De[e]);
198
227
  }
199
- const zt = ["left", "right"], Mt = ["right", "left"], qe = ["top", "bottom"], ze = ["bottom", "top"];
200
- function Me(t, e, n) {
228
+ const Mt = ["left", "right"], Vt = ["right", "left"], Ne = ["top", "bottom"], Ie = ["bottom", "top"];
229
+ function We(t, e, n) {
201
230
  switch (t) {
202
231
  case "top":
203
232
  case "bottom":
204
- return n ? e ? Mt : zt : e ? zt : Mt;
233
+ return n ? e ? Vt : Mt : e ? Mt : Vt;
205
234
  case "left":
206
235
  case "right":
207
- return e ? qe : ze;
236
+ return e ? Ne : Ie;
208
237
  default:
209
238
  return [];
210
239
  }
211
240
  }
212
- function Ve(t, e, n, o) {
213
- const s = pt(t);
214
- let i = Me(Z(t), n === "start", o);
241
+ function He(t, e, n, o) {
242
+ const s = mt(t);
243
+ let i = We(et(t), n === "start", o);
215
244
  return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Lt)))), i;
216
245
  }
217
- function ut(t) {
218
- return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
246
+ function ft(t) {
247
+ return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
219
248
  }
220
- function Fe(t) {
249
+ function je(t) {
221
250
  return {
222
251
  top: 0,
223
252
  right: 0,
@@ -226,15 +255,15 @@ function Fe(t) {
226
255
  ...t
227
256
  };
228
257
  }
229
- function Ne(t) {
230
- return typeof t != "number" ? Fe(t) : {
258
+ function Xe(t) {
259
+ return typeof t != "number" ? je(t) : {
231
260
  top: t,
232
261
  right: t,
233
262
  bottom: t,
234
263
  left: t
235
264
  };
236
265
  }
237
- function ft(t) {
266
+ function dt(t) {
238
267
  const {
239
268
  x: e,
240
269
  y: n,
@@ -252,55 +281,55 @@ function ft(t) {
252
281
  y: n
253
282
  };
254
283
  }
255
- function Vt(t, e, n) {
284
+ function Ft(t, e, n) {
256
285
  let {
257
286
  reference: o,
258
287
  floating: s
259
288
  } = t;
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;
289
+ const i = j(e), r = Zt(e), l = Qt(r), a = et(e), c = i === "y", u = o.x + o.width / 2 - s.width / 2, d = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
290
+ let f;
262
291
  switch (a) {
263
292
  case "top":
264
- u = {
265
- x: f,
293
+ f = {
294
+ x: u,
266
295
  y: o.y - s.height
267
296
  };
268
297
  break;
269
298
  case "bottom":
270
- u = {
271
- x: f,
299
+ f = {
300
+ x: u,
272
301
  y: o.y + o.height
273
302
  };
274
303
  break;
275
304
  case "right":
276
- u = {
305
+ f = {
277
306
  x: o.x + o.width,
278
307
  y: d
279
308
  };
280
309
  break;
281
310
  case "left":
282
- u = {
311
+ f = {
283
312
  x: o.x - s.width,
284
313
  y: d
285
314
  };
286
315
  break;
287
316
  default:
288
- u = {
317
+ f = {
289
318
  x: o.x,
290
319
  y: o.y
291
320
  };
292
321
  }
293
- switch (pt(e)) {
322
+ switch (mt(e)) {
294
323
  case "start":
295
- u[r] -= m * (n && c ? -1 : 1);
324
+ f[r] -= m * (n && c ? -1 : 1);
296
325
  break;
297
326
  case "end":
298
- u[r] += m * (n && c ? -1 : 1);
327
+ f[r] += m * (n && c ? -1 : 1);
299
328
  break;
300
329
  }
301
- return u;
330
+ return f;
302
331
  }
303
- const Ie = async (t, e, n) => {
332
+ const Ue = async (t, e, n) => {
304
333
  const {
305
334
  placement: o = "bottom",
306
335
  strategy: s = "absolute",
@@ -312,25 +341,25 @@ const Ie = async (t, e, n) => {
312
341
  floating: e,
313
342
  strategy: s
314
343
  }), {
315
- x: f,
344
+ x: u,
316
345
  y: d
317
- } = Vt(c, o, a), m = o, u = {}, p = 0;
346
+ } = Ft(c, o, a), m = o, f = {}, p = 0;
318
347
  for (let h = 0; h < l.length; h++) {
319
348
  const {
320
349
  name: g,
321
- fn: v
350
+ fn: y
322
351
  } = l[h], {
323
- x: y,
324
- y: b,
325
- data: C,
326
- reset: S
327
- } = await v({
328
- x: f,
352
+ x: w,
353
+ y: S,
354
+ data: R,
355
+ reset: _
356
+ } = await y({
357
+ x: u,
329
358
  y: d,
330
359
  initialPlacement: o,
331
360
  placement: m,
332
361
  strategy: s,
333
- middlewareData: u,
362
+ middlewareData: f,
334
363
  rects: c,
335
364
  platform: r,
336
365
  elements: {
@@ -338,30 +367,30 @@ const Ie = async (t, e, n) => {
338
367
  floating: e
339
368
  }
340
369
  });
341
- f = y ?? f, d = b ?? d, u = {
342
- ...u,
370
+ u = w ?? u, d = S ?? d, f = {
371
+ ...f,
343
372
  [g]: {
344
- ...u[g],
345
- ...C
373
+ ...f[g],
374
+ ...R
346
375
  }
347
- }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await r.getElementRects({
376
+ }, _ && p <= 50 && (p++, typeof _ == "object" && (_.placement && (m = _.placement), _.rects && (c = _.rects === !0 ? await r.getElementRects({
348
377
  reference: t,
349
378
  floating: e,
350
379
  strategy: s
351
- }) : S.rects), {
352
- x: f,
380
+ }) : _.rects), {
381
+ x: u,
353
382
  y: d
354
- } = Vt(c, m, a)), h = -1);
383
+ } = Ft(c, m, a)), h = -1);
355
384
  }
356
385
  return {
357
- x: f,
386
+ x: u,
358
387
  y: d,
359
388
  placement: m,
360
389
  strategy: s,
361
- middlewareData: u
390
+ middlewareData: f
362
391
  };
363
392
  };
364
- async function We(t, e) {
393
+ async function Ye(t, e) {
365
394
  var n;
366
395
  e === void 0 && (e = {});
367
396
  const {
@@ -373,40 +402,40 @@ async function We(t, e) {
373
402
  strategy: a
374
403
  } = t, {
375
404
  boundary: c = "clippingAncestors",
376
- rootBoundary: f = "viewport",
405
+ rootBoundary: u = "viewport",
377
406
  elementContext: d = "floating",
378
407
  altBoundary: m = !1,
379
- padding: u = 0
380
- } = Ot(e, t), p = Ne(u), g = l[m ? d === "floating" ? "reference" : "floating" : d], v = ft(await i.getClippingRect({
408
+ padding: f = 0
409
+ } = At(e, t), p = Xe(f), g = l[m ? d === "floating" ? "reference" : "floating" : d], y = dt(await i.getClippingRect({
381
410
  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
411
  boundary: c,
383
- rootBoundary: f,
412
+ rootBoundary: u,
384
413
  strategy: a
385
- })), y = d === "floating" ? {
414
+ })), w = d === "floating" ? {
386
415
  x: o,
387
416
  y: s,
388
417
  width: r.floating.width,
389
418
  height: r.floating.height
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)) || {
419
+ } : r.reference, S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(S)) ? await (i.getScale == null ? void 0 : i.getScale(S)) || {
391
420
  x: 1,
392
421
  y: 1
393
422
  } : {
394
423
  x: 1,
395
424
  y: 1
396
- }, S = ft(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
425
+ }, _ = dt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
397
426
  elements: l,
398
- rect: y,
399
- offsetParent: b,
427
+ rect: w,
428
+ offsetParent: S,
400
429
  strategy: a
401
- }) : y);
430
+ }) : w);
402
431
  return {
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
432
+ top: (y.top - _.top + p.top) / R.y,
433
+ bottom: (_.bottom - y.bottom + p.bottom) / R.y,
434
+ left: (y.left - _.left + p.left) / R.x,
435
+ right: (_.right - y.right + p.right) / R.x
407
436
  };
408
437
  }
409
- const He = function(t) {
438
+ const Ge = function(t) {
410
439
  return t === void 0 && (t = {}), {
411
440
  name: "flip",
412
441
  options: t,
@@ -420,83 +449,83 @@ const He = function(t) {
420
449
  platform: a,
421
450
  elements: c
422
451
  } = e, {
423
- mainAxis: f = !0,
452
+ mainAxis: u = !0,
424
453
  crossAxis: d = !0,
425
454
  fallbackPlacements: m,
426
- fallbackStrategy: u = "bestFit",
455
+ fallbackStrategy: f = "bestFit",
427
456
  fallbackAxisSideDirection: p = "none",
428
457
  flipAlignment: h = !0,
429
458
  ...g
430
- } = Ot(t, e);
459
+ } = At(t, e);
431
460
  if ((n = i.arrow) != null && n.alignmentOffset)
432
461
  return {};
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
- const x = [l, ...S], A = await We(e, g), F = [];
436
- let U = ((o = i.flip) == null ? void 0 : o.overflows) || [];
437
- if (f && F.push(A[v]), d) {
438
- const N = Pe(s, r, C);
439
- F.push(A[N[0]], A[N[1]]);
462
+ const y = et(s), w = j(l), S = et(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), _ = m || (S || !h ? [ft(l)] : Fe(l)), N = p !== "none";
463
+ !m && N && _.push(...He(l, h, p, R));
464
+ const x = [l, ..._], O = await Ye(e, g), I = [];
465
+ let K = ((o = i.flip) == null ? void 0 : o.overflows) || [];
466
+ if (u && I.push(O[y]), d) {
467
+ const W = Ve(s, r, R);
468
+ I.push(O[W[0]], O[W[1]]);
440
469
  }
441
- if (U = [...U, {
470
+ if (K = [...K, {
442
471
  placement: s,
443
- overflows: F
444
- }], !F.every((N) => N <= 0)) {
445
- var Bt, Pt;
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
472
+ overflows: I
473
+ }], !I.every((W) => W <= 0)) {
474
+ var Pt, Dt;
475
+ const W = (((Pt = i.flip) == null ? void 0 : Pt.index) || 0) + 1, wt = x[W];
476
+ if (wt && (!(d === "alignment" ? w !== j(wt) : !1) || // We leave the current main axis only if every placement on that axis
448
477
  // overflows the main axis.
449
- U.every((O) => W(O.placement) === y ? O.overflows[0] > 0 : !0)))
478
+ K.every((A) => j(A.placement) === w ? A.overflows[0] > 0 : !0)))
450
479
  return {
451
480
  data: {
452
- index: N,
453
- overflows: U
481
+ index: W,
482
+ overflows: K
454
483
  },
455
484
  reset: {
456
- placement: yt
485
+ placement: wt
457
486
  }
458
487
  };
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
- if (!et)
461
- switch (u) {
488
+ let ot = (Dt = K.filter((H) => H.overflows[0] <= 0).sort((H, A) => H.overflows[1] - A.overflows[1])[0]) == null ? void 0 : Dt.placement;
489
+ if (!ot)
490
+ switch (f) {
462
491
  case "bestFit": {
463
- var Dt;
464
- const I = (Dt = U.filter((O) => {
465
- if (V) {
466
- const q = W(O.placement);
467
- return q === y || // Create a bias to the `y` side axis due to horizontal
492
+ var qt;
493
+ const H = (qt = K.filter((A) => {
494
+ if (N) {
495
+ const M = j(A.placement);
496
+ return M === w || // Create a bias to the `y` side axis due to horizontal
468
497
  // reading directions favoring greater width.
469
- q === "y";
498
+ M === "y";
470
499
  }
471
500
  return !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
- I && (et = I);
501
+ }).map((A) => [A.placement, A.overflows.filter((M) => M > 0).reduce((M, ce) => M + ce, 0)]).sort((A, M) => A[1] - M[1])[0]) == null ? void 0 : qt[0];
502
+ H && (ot = H);
474
503
  break;
475
504
  }
476
505
  case "initialPlacement":
477
- et = l;
506
+ ot = l;
478
507
  break;
479
508
  }
480
- if (s !== et)
509
+ if (s !== ot)
481
510
  return {
482
511
  reset: {
483
- placement: et
512
+ placement: ot
484
513
  }
485
514
  };
486
515
  }
487
516
  return {};
488
517
  }
489
518
  };
490
- }, je = /* @__PURE__ */ new Set(["left", "top"]);
491
- async function Xe(t, e) {
519
+ }, Ke = /* @__PURE__ */ new Set(["left", "top"]);
520
+ async function Je(t, e) {
492
521
  const {
493
522
  placement: n,
494
523
  platform: o,
495
524
  elements: s
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);
525
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = et(n), l = mt(n), a = j(n) === "y", c = Ke.has(r) ? -1 : 1, u = i && a ? -1 : 1, d = At(e, t);
497
526
  let {
498
527
  mainAxis: m,
499
- crossAxis: u,
528
+ crossAxis: f,
500
529
  alignmentAxis: p
501
530
  } = typeof d == "number" ? {
502
531
  mainAxis: d,
@@ -507,15 +536,15 @@ async function Xe(t, e) {
507
536
  crossAxis: d.crossAxis || 0,
508
537
  alignmentAxis: d.alignmentAxis
509
538
  };
510
- return l && typeof p == "number" && (u = l === "end" ? p * -1 : p), a ? {
511
- x: u * f,
539
+ return l && typeof p == "number" && (f = l === "end" ? p * -1 : p), a ? {
540
+ x: f * u,
512
541
  y: m * c
513
542
  } : {
514
543
  x: m * c,
515
- y: u * f
544
+ y: f * u
516
545
  };
517
546
  }
518
- const Ue = function(t) {
547
+ const Qe = function(t) {
519
548
  return t === void 0 && (t = 0), {
520
549
  name: "offset",
521
550
  options: t,
@@ -526,7 +555,7 @@ const Ue = function(t) {
526
555
  y: i,
527
556
  placement: r,
528
557
  middlewareData: l
529
- } = e, a = await Xe(e, t);
558
+ } = e, a = await Je(e, t);
530
559
  return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
531
560
  x: s + a.x,
532
561
  y: i + a.y,
@@ -538,49 +567,49 @@ const Ue = function(t) {
538
567
  }
539
568
  };
540
569
  };
541
- function mt() {
570
+ function ht() {
542
571
  return typeof window < "u";
543
572
  }
544
- function X(t) {
573
+ function G(t) {
545
574
  return Tt(t) ? (t.nodeName || "").toLowerCase() : "#document";
546
575
  }
547
576
  function L(t) {
548
577
  var e;
549
578
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
550
579
  }
551
- function P(t) {
580
+ function D(t) {
552
581
  var e;
553
582
  return (e = (Tt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
554
583
  }
555
584
  function Tt(t) {
556
- return mt() ? t instanceof Node || t instanceof L(t).Node : !1;
585
+ return ht() ? t instanceof Node || t instanceof L(t).Node : !1;
557
586
  }
558
587
  function E(t) {
559
- return mt() ? t instanceof Element || t instanceof L(t).Element : !1;
588
+ return ht() ? t instanceof Element || t instanceof L(t).Element : !1;
560
589
  }
561
- function B(t) {
562
- return mt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
590
+ function P(t) {
591
+ return ht() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
563
592
  }
564
- function Ft(t) {
565
- return !mt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
593
+ function Nt(t) {
594
+ return !ht() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
566
595
  }
567
- const Ye = /* @__PURE__ */ new Set(["inline", "contents"]);
568
- function rt(t) {
596
+ const Ze = /* @__PURE__ */ new Set(["inline", "contents"]);
597
+ function lt(t) {
569
598
  const {
570
599
  overflow: e,
571
600
  overflowX: n,
572
601
  overflowY: o,
573
602
  display: s
574
- } = $(t);
575
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ye.has(s);
603
+ } = k(t);
604
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ze.has(s);
576
605
  }
577
- const Ke = /* @__PURE__ */ new Set(["table", "td", "th"]);
578
- function Ge(t) {
579
- return Ke.has(X(t));
606
+ const tn = /* @__PURE__ */ new Set(["table", "td", "th"]);
607
+ function en(t) {
608
+ return tn.has(G(t));
580
609
  }
581
- const Je = [":popover-open", ":modal"];
582
- function ht(t) {
583
- return Je.some((e) => {
610
+ const nn = [":popover-open", ":modal"];
611
+ function gt(t) {
612
+ return nn.some((e) => {
584
613
  try {
585
614
  return t.matches(e);
586
615
  } catch {
@@ -588,33 +617,33 @@ function ht(t) {
588
617
  }
589
618
  });
590
619
  }
591
- const Qe = ["transform", "translate", "scale", "rotate", "perspective"], Ze = ["transform", "translate", "scale", "rotate", "perspective", "filter"], tn = ["paint", "layout", "strict", "content"];
592
- function _t(t) {
593
- const e = Et(), n = E(t) ? $(t) : t;
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));
620
+ const on = ["transform", "translate", "scale", "rotate", "perspective"], sn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], rn = ["paint", "layout", "strict", "content"];
621
+ function Et(t) {
622
+ const e = kt(), n = E(t) ? k(t) : t;
623
+ return on.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) || sn.some((o) => (n.willChange || "").includes(o)) || rn.some((o) => (n.contain || "").includes(o));
595
624
  }
596
- function en(t) {
597
- let e = z(t);
598
- for (; B(e) && !tt(e); ) {
599
- if (_t(e))
625
+ function ln(t) {
626
+ let e = F(t);
627
+ for (; P(e) && !nt(e); ) {
628
+ if (Et(e))
600
629
  return e;
601
- if (ht(e))
630
+ if (gt(e))
602
631
  return null;
603
- e = z(e);
632
+ e = F(e);
604
633
  }
605
634
  return null;
606
635
  }
607
- function Et() {
636
+ function kt() {
608
637
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
609
638
  }
610
- const nn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
611
- function tt(t) {
612
- return nn.has(X(t));
639
+ const cn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
640
+ function nt(t) {
641
+ return cn.has(G(t));
613
642
  }
614
- function $(t) {
643
+ function k(t) {
615
644
  return L(t).getComputedStyle(t);
616
645
  }
617
- function gt(t) {
646
+ function vt(t) {
618
647
  return E(t) ? {
619
648
  scrollLeft: t.scrollLeft,
620
649
  scrollTop: t.scrollTop
@@ -623,162 +652,162 @@ function gt(t) {
623
652
  scrollTop: t.scrollY
624
653
  };
625
654
  }
626
- function z(t) {
627
- if (X(t) === "html")
655
+ function F(t) {
656
+ if (G(t) === "html")
628
657
  return t;
629
658
  const e = (
630
659
  // Step into the shadow DOM of the parent of a slotted node.
631
660
  t.assignedSlot || // DOM Element detected.
632
661
  t.parentNode || // ShadowRoot detected.
633
- Ft(t) && t.host || // Fallback.
634
- P(t)
662
+ Nt(t) && t.host || // Fallback.
663
+ D(t)
635
664
  );
636
- return Ft(e) ? e.host : e;
665
+ return Nt(e) ? e.host : e;
637
666
  }
638
- function Qt(t) {
639
- const e = z(t);
640
- return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && rt(e) ? e : Qt(e);
667
+ function te(t) {
668
+ const e = F(t);
669
+ return nt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && lt(e) ? e : te(e);
641
670
  }
642
- function it(t, e, n) {
671
+ function rt(t, e, n) {
643
672
  var o;
644
673
  e === void 0 && (e = []), n === void 0 && (n = !0);
645
- const s = Qt(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
674
+ const s = te(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
646
675
  if (i) {
647
- const l = At(r);
648
- return e.concat(r, r.visualViewport || [], rt(s) ? s : [], l && n ? it(l) : []);
676
+ const l = Ot(r);
677
+ return e.concat(r, r.visualViewport || [], lt(s) ? s : [], l && n ? rt(l) : []);
649
678
  }
650
- return e.concat(s, it(s, [], n));
679
+ return e.concat(s, rt(s, [], n));
651
680
  }
652
- function At(t) {
681
+ function Ot(t) {
653
682
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
654
683
  }
655
- function Zt(t) {
656
- const e = $(t);
684
+ function ee(t) {
685
+ const e = k(t);
657
686
  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 = at(n) !== i || at(o) !== r;
687
+ const s = P(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = ut(n) !== i || ut(o) !== r;
659
688
  return l && (n = i, o = r), {
660
689
  width: n,
661
690
  height: o,
662
691
  $: l
663
692
  };
664
693
  }
665
- function $t(t) {
694
+ function Bt(t) {
666
695
  return E(t) ? t : t.contextElement;
667
696
  }
668
- function G(t) {
669
- const e = $t(t);
670
- if (!B(e))
671
- return k(1);
697
+ function tt(t) {
698
+ const e = Bt(t);
699
+ if (!P(e))
700
+ return z(1);
672
701
  const n = e.getBoundingClientRect(), {
673
702
  width: o,
674
703
  height: s,
675
704
  $: i
676
- } = Zt(e);
677
- let r = (i ? at(n.width) : n.width) / o, l = (i ? at(n.height) : n.height) / s;
705
+ } = ee(e);
706
+ let r = (i ? ut(n.width) : n.width) / o, l = (i ? ut(n.height) : n.height) / s;
678
707
  return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
679
708
  x: r,
680
709
  y: l
681
710
  };
682
711
  }
683
- const on = /* @__PURE__ */ k(0);
684
- function te(t) {
712
+ const an = /* @__PURE__ */ z(0);
713
+ function ne(t) {
685
714
  const e = L(t);
686
- return !Et() || !e.visualViewport ? on : {
715
+ return !kt() || !e.visualViewport ? an : {
687
716
  x: e.visualViewport.offsetLeft,
688
717
  y: e.visualViewport.offsetTop
689
718
  };
690
719
  }
691
- function sn(t, e, n) {
720
+ function un(t, e, n) {
692
721
  return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
693
722
  }
694
- function j(t, e, n, o) {
723
+ function Y(t, e, n, o) {
695
724
  e === void 0 && (e = !1), n === void 0 && (n = !1);
696
- const s = t.getBoundingClientRect(), i = $t(t);
697
- let r = k(1);
698
- e && (o ? E(o) && (r = G(o)) : r = G(t));
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, f = s.width / r.x, d = s.height / r.y;
725
+ const s = t.getBoundingClientRect(), i = Bt(t);
726
+ let r = z(1);
727
+ e && (o ? E(o) && (r = tt(o)) : r = tt(t));
728
+ const l = un(i, n, o) ? ne(i) : z(0);
729
+ let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, u = s.width / r.x, d = s.height / r.y;
701
730
  if (i) {
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);
731
+ const m = L(i), f = o && E(o) ? L(o) : o;
732
+ let p = m, h = Ot(p);
733
+ for (; h && o && f !== p; ) {
734
+ const g = tt(h), y = h.getBoundingClientRect(), w = k(h), S = y.left + (h.clientLeft + parseFloat(w.paddingLeft)) * g.x, R = y.top + (h.clientTop + parseFloat(w.paddingTop)) * g.y;
735
+ a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += S, c += R, p = L(h), h = Ot(p);
707
736
  }
708
737
  }
709
- return ft({
710
- width: f,
738
+ return dt({
739
+ width: u,
711
740
  height: d,
712
741
  x: a,
713
742
  y: c
714
743
  });
715
744
  }
716
- function vt(t, e) {
717
- const n = gt(t).scrollLeft;
718
- return e ? e.left + n : j(P(t)).left + n;
745
+ function yt(t, e) {
746
+ const n = vt(t).scrollLeft;
747
+ return e ? e.left + n : Y(D(t)).left + n;
719
748
  }
720
- function ee(t, e) {
721
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - vt(t, n), s = n.top + e.scrollTop;
749
+ function oe(t, e) {
750
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - yt(t, n), s = n.top + e.scrollTop;
722
751
  return {
723
752
  x: o,
724
753
  y: s
725
754
  };
726
755
  }
727
- function rn(t) {
756
+ function fn(t) {
728
757
  let {
729
758
  elements: e,
730
759
  rect: n,
731
760
  offsetParent: o,
732
761
  strategy: s
733
762
  } = t;
734
- const i = s === "fixed", r = P(o), l = e ? ht(e.floating) : !1;
763
+ const i = s === "fixed", r = D(o), l = e ? gt(e.floating) : !1;
735
764
  if (o === r || l && i)
736
765
  return n;
737
766
  let a = {
738
767
  scrollLeft: 0,
739
768
  scrollTop: 0
740
- }, c = k(1);
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;
769
+ }, c = z(1);
770
+ const u = z(0), d = P(o);
771
+ if ((d || !d && !i) && ((G(o) !== "body" || lt(r)) && (a = vt(o)), P(o))) {
772
+ const f = Y(o);
773
+ c = tt(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
745
774
  }
746
- const m = r && !d && !i ? ee(r, a) : k(0);
775
+ const m = r && !d && !i ? oe(r, a) : z(0);
747
776
  return {
748
777
  width: n.width * c.x,
749
778
  height: n.height * c.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
779
+ x: n.x * c.x - a.scrollLeft * c.x + u.x + m.x,
780
+ y: n.y * c.y - a.scrollTop * c.y + u.y + m.y
752
781
  };
753
782
  }
754
- function ln(t) {
783
+ function dn(t) {
755
784
  return Array.from(t.getClientRects());
756
785
  }
757
- function cn(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);
786
+ function pn(t) {
787
+ const e = D(t), n = vt(t), o = t.ownerDocument.body, s = Z(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = Z(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
788
+ let r = -n.scrollLeft + yt(t);
760
789
  const l = -n.scrollTop;
761
- return $(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - s), {
790
+ return k(o).direction === "rtl" && (r += Z(e.clientWidth, o.clientWidth) - s), {
762
791
  width: s,
763
792
  height: i,
764
793
  x: r,
765
794
  y: l
766
795
  };
767
796
  }
768
- const Nt = 25;
769
- function an(t, e) {
770
- const n = L(t), o = P(t), s = n.visualViewport;
797
+ const It = 25;
798
+ function mn(t, e) {
799
+ const n = L(t), o = D(t), s = n.visualViewport;
771
800
  let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
772
801
  if (s) {
773
802
  i = s.width, r = s.height;
774
- const f = Et();
775
- (!f || f && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
803
+ const u = kt();
804
+ (!u || u && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
776
805
  }
777
- const c = vt(o);
806
+ const c = yt(o);
778
807
  if (c <= 0) {
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
- p <= Nt && (i -= p);
781
- } else c <= Nt && (i += c);
808
+ const u = o.ownerDocument, d = u.body, m = getComputedStyle(d), f = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - f);
809
+ p <= It && (i -= p);
810
+ } else c <= It && (i += c);
782
811
  return {
783
812
  width: i,
784
813
  height: r,
@@ -786,9 +815,9 @@ function an(t, e) {
786
815
  y: a
787
816
  };
788
817
  }
789
- const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
790
- function fn(t, e) {
791
- const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = B(t) ? G(t) : k(1), r = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = o * i.y;
818
+ const hn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
819
+ function gn(t, e) {
820
+ const n = Y(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = P(t) ? tt(t) : z(1), r = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = o * i.y;
792
821
  return {
793
822
  width: r,
794
823
  height: l,
@@ -796,16 +825,16 @@ function fn(t, e) {
796
825
  y: c
797
826
  };
798
827
  }
799
- function It(t, e, n) {
828
+ function Wt(t, e, n) {
800
829
  let o;
801
830
  if (e === "viewport")
802
- o = an(t, n);
831
+ o = mn(t, n);
803
832
  else if (e === "document")
804
- o = cn(P(t));
833
+ o = pn(D(t));
805
834
  else if (E(e))
806
- o = fn(e, n);
835
+ o = gn(e, n);
807
836
  else {
808
- const s = te(t);
837
+ const s = ne(t);
809
838
  o = {
810
839
  x: e.x - s.x,
811
840
  y: e.y - s.y,
@@ -813,36 +842,36 @@ function It(t, e, n) {
813
842
  height: e.height
814
843
  };
815
844
  }
816
- return ft(o);
845
+ return dt(o);
817
846
  }
818
- function ne(t, e) {
819
- const n = z(t);
820
- return n === e || !E(n) || tt(n) ? !1 : $(n).position === "fixed" || ne(n, e);
847
+ function se(t, e) {
848
+ const n = F(t);
849
+ return n === e || !E(n) || nt(n) ? !1 : k(n).position === "fixed" || se(n, e);
821
850
  }
822
- function dn(t, e) {
851
+ function vn(t, e) {
823
852
  const n = e.get(t);
824
853
  if (n)
825
854
  return n;
826
- let o = it(t, [], !1).filter((l) => E(l) && X(l) !== "body"), s = null;
827
- const i = $(t).position === "fixed";
828
- let r = i ? z(t) : t;
829
- for (; E(r) && !tt(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);
855
+ let o = rt(t, [], !1).filter((l) => E(l) && G(l) !== "body"), s = null;
856
+ const i = k(t).position === "fixed";
857
+ let r = i ? F(t) : t;
858
+ for (; E(r) && !nt(r); ) {
859
+ const l = k(r), a = Et(r);
860
+ !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && hn.has(s.position) || lt(r) && !a && se(t, r)) ? o = o.filter((u) => u !== r) : s = l, r = F(r);
832
861
  }
833
862
  return e.set(t, o), o;
834
863
  }
835
- function pn(t) {
864
+ function yn(t) {
836
865
  let {
837
866
  element: e,
838
867
  boundary: n,
839
868
  rootBoundary: o,
840
869
  strategy: s
841
870
  } = t;
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
- }, It(e, l, s));
871
+ const r = [...n === "clippingAncestors" ? gt(e) ? [] : vn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
872
+ const d = Wt(e, u, s);
873
+ return c.top = Z(d.top, c.top), c.right = $t(d.right, c.right), c.bottom = $t(d.bottom, c.bottom), c.left = Z(d.left, c.left), c;
874
+ }, Wt(e, l, s));
846
875
  return {
847
876
  width: a.right - a.left,
848
877
  height: a.bottom - a.top,
@@ -850,33 +879,33 @@ function pn(t) {
850
879
  y: a.top
851
880
  };
852
881
  }
853
- function mn(t) {
882
+ function wn(t) {
854
883
  const {
855
884
  width: e,
856
885
  height: n
857
- } = Zt(t);
886
+ } = ee(t);
858
887
  return {
859
888
  width: e,
860
889
  height: n
861
890
  };
862
891
  }
863
- function hn(t, e, n) {
864
- const o = B(e), s = P(e), i = n === "fixed", r = j(t, !0, i, e);
892
+ function xn(t, e, n) {
893
+ const o = P(e), s = D(e), i = n === "fixed", r = Y(t, !0, i, e);
865
894
  let l = {
866
895
  scrollLeft: 0,
867
896
  scrollTop: 0
868
897
  };
869
- const a = k(0);
898
+ const a = z(0);
870
899
  function c() {
871
- a.x = vt(s);
900
+ a.x = yt(s);
872
901
  }
873
902
  if (o || !o && !i)
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;
903
+ if ((G(e) !== "body" || lt(s)) && (l = vt(e)), o) {
904
+ const f = Y(e, !0, i, e);
905
+ a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
877
906
  } else s && c();
878
907
  i && !o && s && c();
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;
908
+ const u = s && !o && !i ? oe(s, l) : z(0), d = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
880
909
  return {
881
910
  x: d,
882
911
  y: m,
@@ -884,39 +913,39 @@ function hn(t, e, n) {
884
913
  height: r.height
885
914
  };
886
915
  }
887
- function xt(t) {
888
- return $(t).position === "static";
916
+ function St(t) {
917
+ return k(t).position === "static";
889
918
  }
890
- function Wt(t, e) {
891
- if (!B(t) || $(t).position === "fixed")
919
+ function Ht(t, e) {
920
+ if (!P(t) || k(t).position === "fixed")
892
921
  return null;
893
922
  if (e)
894
923
  return e(t);
895
924
  let n = t.offsetParent;
896
- return P(t) === n && (n = n.ownerDocument.body), n;
925
+ return D(t) === n && (n = n.ownerDocument.body), n;
897
926
  }
898
- function oe(t, e) {
927
+ function ie(t, e) {
899
928
  const n = L(t);
900
- if (ht(t))
929
+ if (gt(t))
901
930
  return n;
902
- if (!B(t)) {
903
- let s = z(t);
904
- for (; s && !tt(s); ) {
905
- if (E(s) && !xt(s))
931
+ if (!P(t)) {
932
+ let s = F(t);
933
+ for (; s && !nt(s); ) {
934
+ if (E(s) && !St(s))
906
935
  return s;
907
- s = z(s);
936
+ s = F(s);
908
937
  }
909
938
  return n;
910
939
  }
911
- let o = Wt(t, e);
912
- for (; o && Ge(o) && xt(o); )
913
- o = Wt(o, e);
914
- return o && tt(o) && xt(o) && !_t(o) ? n : o || en(t) || n;
940
+ let o = Ht(t, e);
941
+ for (; o && en(o) && St(o); )
942
+ o = Ht(o, e);
943
+ return o && nt(o) && St(o) && !Et(o) ? n : o || ln(t) || n;
915
944
  }
916
- const gn = async function(t) {
917
- const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
945
+ const bn = async function(t) {
946
+ const e = this.getOffsetParent || ie, n = this.getDimensions, o = await n(t.floating);
918
947
  return {
919
- reference: hn(t.reference, await e(t.floating), t.strategy),
948
+ reference: xn(t.reference, await e(t.floating), t.strategy),
920
949
  floating: {
921
950
  x: 0,
922
951
  y: 0,
@@ -925,27 +954,27 @@ const gn = async function(t) {
925
954
  }
926
955
  };
927
956
  };
928
- function vn(t) {
929
- return $(t).direction === "rtl";
930
- }
931
- const yn = {
932
- convertOffsetParentRelativeRectToViewportRelativeRect: rn,
933
- getDocumentElement: P,
934
- getClippingRect: pn,
935
- getOffsetParent: oe,
936
- getElementRects: gn,
937
- getClientRects: ln,
938
- getDimensions: mn,
939
- getScale: G,
957
+ function Sn(t) {
958
+ return k(t).direction === "rtl";
959
+ }
960
+ const _n = {
961
+ convertOffsetParentRelativeRectToViewportRelativeRect: fn,
962
+ getDocumentElement: D,
963
+ getClippingRect: yn,
964
+ getOffsetParent: ie,
965
+ getElementRects: bn,
966
+ getClientRects: dn,
967
+ getDimensions: wn,
968
+ getScale: tt,
940
969
  isElement: E,
941
- isRTL: vn
970
+ isRTL: Sn
942
971
  };
943
- function se(t, e) {
972
+ function re(t, e) {
944
973
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
945
974
  }
946
- function wn(t, e) {
975
+ function Rn(t, e) {
947
976
  let n = null, o;
948
- const s = P(t);
977
+ const s = D(t);
949
978
  function i() {
950
979
  var l;
951
980
  clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
@@ -953,43 +982,43 @@ function wn(t, e) {
953
982
  function r(l, a) {
954
983
  l === void 0 && (l = !1), a === void 0 && (a = 1), i();
955
984
  const c = t.getBoundingClientRect(), {
956
- left: f,
985
+ left: u,
957
986
  top: d,
958
987
  width: m,
959
- height: u
988
+ height: f
960
989
  } = c;
961
- if (l || e(), !m || !u)
990
+ if (l || e(), !m || !f)
962
991
  return;
963
- const p = lt(d), h = lt(s.clientWidth - (f + m)), g = lt(s.clientHeight - (d + u)), v = lt(f), b = {
964
- rootMargin: -p + "px " + -h + "px " + -g + "px " + -v + "px",
965
- threshold: K(0, Rt(1, a)) || 1
992
+ const p = ct(d), h = ct(s.clientWidth - (u + m)), g = ct(s.clientHeight - (d + f)), y = ct(u), S = {
993
+ rootMargin: -p + "px " + -h + "px " + -g + "px " + -y + "px",
994
+ threshold: Z(0, $t(1, a)) || 1
966
995
  };
967
- let C = !0;
968
- function S(V) {
969
- const x = V[0].intersectionRatio;
996
+ let R = !0;
997
+ function _(N) {
998
+ const x = N[0].intersectionRatio;
970
999
  if (x !== a) {
971
- if (!C)
1000
+ if (!R)
972
1001
  return r();
973
1002
  x ? r(!1, x) : o = setTimeout(() => {
974
1003
  r(!1, 1e-7);
975
1004
  }, 1e3);
976
1005
  }
977
- x === 1 && !se(c, t.getBoundingClientRect()) && r(), C = !1;
1006
+ x === 1 && !re(c, t.getBoundingClientRect()) && r(), R = !1;
978
1007
  }
979
1008
  try {
980
- n = new IntersectionObserver(S, {
981
- ...b,
1009
+ n = new IntersectionObserver(_, {
1010
+ ...S,
982
1011
  // Handle <iframe>s
983
1012
  root: s.ownerDocument
984
1013
  });
985
1014
  } catch {
986
- n = new IntersectionObserver(S, b);
1015
+ n = new IntersectionObserver(_, S);
987
1016
  }
988
1017
  n.observe(t);
989
1018
  }
990
1019
  return r(!0), i;
991
1020
  }
992
- function xn(t, e, n, o) {
1021
+ function Cn(t, e, n, o) {
993
1022
  o === void 0 && (o = {});
994
1023
  const {
995
1024
  ancestorScroll: s = !0,
@@ -997,151 +1026,151 @@ function xn(t, e, n, o) {
997
1026
  elementResize: r = typeof ResizeObserver == "function",
998
1027
  layoutShift: l = typeof IntersectionObserver == "function",
999
1028
  animationFrame: a = !1
1000
- } = o, c = $t(t), f = s || i ? [...c ? it(c) : [], ...it(e)] : [];
1001
- f.forEach((v) => {
1002
- s && v.addEventListener("scroll", n, {
1029
+ } = o, c = Bt(t), u = s || i ? [...c ? rt(c) : [], ...rt(e)] : [];
1030
+ u.forEach((y) => {
1031
+ s && y.addEventListener("scroll", n, {
1003
1032
  passive: !0
1004
- }), i && v.addEventListener("resize", n);
1033
+ }), i && y.addEventListener("resize", n);
1005
1034
  });
1006
- const d = c && l ? wn(c, n) : null;
1007
- let m = -1, u = null;
1008
- r && (u = new ResizeObserver((v) => {
1009
- let [y] = v;
1010
- y && y.target === c && u && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1011
- var b;
1012
- (b = u) == null || b.observe(e);
1035
+ const d = c && l ? Rn(c, n) : null;
1036
+ let m = -1, f = null;
1037
+ r && (f = new ResizeObserver((y) => {
1038
+ let [w] = y;
1039
+ w && w.target === c && f && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1040
+ var S;
1041
+ (S = f) == null || S.observe(e);
1013
1042
  })), n();
1014
- }), c && !a && u.observe(c), u.observe(e));
1015
- let p, h = a ? j(t) : null;
1043
+ }), c && !a && f.observe(c), f.observe(e));
1044
+ let p, h = a ? Y(t) : null;
1016
1045
  a && g();
1017
1046
  function g() {
1018
- const v = j(t);
1019
- h && !se(h, v) && n(), h = v, p = requestAnimationFrame(g);
1047
+ const y = Y(t);
1048
+ h && !re(h, y) && n(), h = y, p = requestAnimationFrame(g);
1020
1049
  }
1021
1050
  return n(), () => {
1022
- var v;
1023
- f.forEach((y) => {
1024
- s && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
1025
- }), d == null || d(), (v = u) == null || v.disconnect(), u = null, a && cancelAnimationFrame(p);
1051
+ var y;
1052
+ u.forEach((w) => {
1053
+ s && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
1054
+ }), d == null || d(), (y = f) == null || y.disconnect(), f = null, a && cancelAnimationFrame(p);
1026
1055
  };
1027
1056
  }
1028
- const bn = Ue, Sn = He, Cn = (t, e, n) => {
1057
+ const $n = Qe, Ln = Ge, On = (t, e, n) => {
1029
1058
  const o = /* @__PURE__ */ new Map(), s = {
1030
- platform: yn,
1059
+ platform: _n,
1031
1060
  ...n
1032
1061
  }, i = {
1033
1062
  ...s.platform,
1034
1063
  _c: o
1035
1064
  };
1036
- return Ie(t, e, {
1065
+ return Ue(t, e, {
1037
1066
  ...s,
1038
1067
  platform: i
1039
1068
  });
1040
1069
  };
1041
- function Rn(t) {
1070
+ function An(t) {
1042
1071
  return t != null && typeof t == "object" && "$el" in t;
1043
1072
  }
1044
- function Ht(t) {
1045
- if (Rn(t)) {
1073
+ function jt(t) {
1074
+ if (An(t)) {
1046
1075
  const e = t.$el;
1047
- return Tt(e) && X(e) === "#comment" ? null : e;
1076
+ return Tt(e) && G(e) === "#comment" ? null : e;
1048
1077
  }
1049
1078
  return t;
1050
1079
  }
1051
- function ot(t) {
1052
- return typeof t == "function" ? t() : H(t);
1080
+ function st(t) {
1081
+ return typeof t == "function" ? t() : X(t);
1053
1082
  }
1054
- function ie(t) {
1083
+ function le(t) {
1055
1084
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1056
1085
  }
1057
- function jt(t, e) {
1058
- const n = ie(t);
1086
+ function Xt(t, e) {
1087
+ const n = le(t);
1059
1088
  return Math.round(e * n) / n;
1060
1089
  }
1061
- function Ln(t, e, n) {
1090
+ function Tn(t, e, n) {
1062
1091
  n === void 0 && (n = {});
1063
- const o = n.whileElementsMounted, s = w(() => {
1092
+ const o = n.whileElementsMounted, s = v(() => {
1064
1093
  var x;
1065
- return (x = ot(n.open)) != null ? x : !0;
1066
- }), i = w(() => ot(n.middleware)), r = w(() => {
1094
+ return (x = st(n.open)) != null ? x : !0;
1095
+ }), i = v(() => st(n.middleware)), r = v(() => {
1067
1096
  var x;
1068
- return (x = ot(n.placement)) != null ? x : "bottom";
1069
- }), l = w(() => {
1097
+ return (x = st(n.placement)) != null ? x : "bottom";
1098
+ }), l = v(() => {
1070
1099
  var x;
1071
- return (x = ot(n.strategy)) != null ? x : "absolute";
1072
- }), a = w(() => {
1100
+ return (x = st(n.strategy)) != null ? x : "absolute";
1101
+ }), a = v(() => {
1073
1102
  var x;
1074
- return (x = ot(n.transform)) != null ? x : !0;
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(() => {
1103
+ return (x = st(n.transform)) != null ? x : !0;
1104
+ }), c = v(() => jt(t.value)), u = v(() => jt(e.value)), d = Q(0), m = Q(0), f = Q(l.value), p = Q(r.value), h = Ct({}), g = Q(!1), y = v(() => {
1076
1105
  const x = {
1077
- position: u.value,
1106
+ position: f.value,
1078
1107
  left: "0",
1079
1108
  top: "0"
1080
1109
  };
1081
- if (!f.value)
1110
+ if (!u.value)
1082
1111
  return x;
1083
- const A = jt(f.value, d.value), F = jt(f.value, m.value);
1112
+ const O = Xt(u.value, d.value), I = Xt(u.value, m.value);
1084
1113
  return a.value ? {
1085
1114
  ...x,
1086
- transform: "translate(" + A + "px, " + F + "px)",
1087
- ...ie(f.value) >= 1.5 && {
1115
+ transform: "translate(" + O + "px, " + I + "px)",
1116
+ ...le(u.value) >= 1.5 && {
1088
1117
  willChange: "transform"
1089
1118
  }
1090
1119
  } : {
1091
- position: u.value,
1092
- left: A + "px",
1093
- top: F + "px"
1120
+ position: f.value,
1121
+ left: O + "px",
1122
+ top: I + "px"
1094
1123
  };
1095
1124
  });
1096
- let y;
1097
- function b() {
1098
- if (c.value == null || f.value == null)
1125
+ let w;
1126
+ function S() {
1127
+ if (c.value == null || u.value == null)
1099
1128
  return;
1100
1129
  const x = s.value;
1101
- Cn(c.value, f.value, {
1130
+ On(c.value, u.value, {
1102
1131
  middleware: i.value,
1103
1132
  placement: r.value,
1104
1133
  strategy: l.value
1105
- }).then((A) => {
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;
1134
+ }).then((O) => {
1135
+ d.value = O.x, m.value = O.y, f.value = O.strategy, p.value = O.placement, h.value = O.middlewareData, g.value = x !== !1;
1107
1136
  });
1108
1137
  }
1109
- function C() {
1110
- typeof y == "function" && (y(), y = void 0);
1138
+ function R() {
1139
+ typeof w == "function" && (w(), w = void 0);
1111
1140
  }
1112
- function S() {
1113
- if (C(), o === void 0) {
1114
- b();
1141
+ function _() {
1142
+ if (R(), o === void 0) {
1143
+ S();
1115
1144
  return;
1116
1145
  }
1117
- if (c.value != null && f.value != null) {
1118
- y = o(c.value, f.value, b);
1146
+ if (c.value != null && u.value != null) {
1147
+ w = o(c.value, u.value, S);
1119
1148
  return;
1120
1149
  }
1121
1150
  }
1122
- function V() {
1151
+ function N() {
1123
1152
  s.value || (g.value = !1);
1124
1153
  }
1125
- return wt([i, r, l, s], b, {
1154
+ return bt([i, r, l, s], S, {
1126
1155
  flush: "sync"
1127
- }), wt([c, f], S, {
1156
+ }), bt([c, u], _, {
1128
1157
  flush: "sync"
1129
- }), wt(s, V, {
1158
+ }), bt(s, N, {
1130
1159
  flush: "sync"
1131
- }), ue() && fe(C), {
1132
- x: Y(d),
1133
- y: Y(m),
1134
- strategy: Y(u),
1135
- placement: Y(p),
1136
- middlewareData: Y(h),
1137
- isPositioned: Y(g),
1138
- floatingStyles: v,
1139
- update: b
1160
+ }), pe() && me(R), {
1161
+ x: J(d),
1162
+ y: J(m),
1163
+ strategy: J(f),
1164
+ placement: J(p),
1165
+ middlewareData: J(h),
1166
+ isPositioned: J(g),
1167
+ floatingStyles: y,
1168
+ update: S
1140
1169
  };
1141
1170
  }
1142
- const En = /* @__PURE__ */ M({
1143
- __name: "SqPopover",
1144
- props: /* @__PURE__ */ St({
1171
+ const Nn = /* @__PURE__ */ B({
1172
+ __name: "popover",
1173
+ props: /* @__PURE__ */ Rt({
1145
1174
  placement: { default: "top" },
1146
1175
  offset: { default: 10 },
1147
1176
  teleported: { type: Boolean, default: !0 },
@@ -1149,6 +1178,7 @@ const En = /* @__PURE__ */ M({
1149
1178
  showAfter: { default: 0 },
1150
1179
  hideAfter: { default: 300 },
1151
1180
  disabled: { type: Boolean },
1181
+ transition: { default: "sq-fade" },
1152
1182
  popoverClass: {}
1153
1183
  }, {
1154
1184
  visible: { type: Boolean, default: !1 },
@@ -1157,18 +1187,18 @@ const En = /* @__PURE__ */ M({
1157
1187
  emits: ["update:visible"],
1158
1188
  setup(t) {
1159
1189
  let e;
1160
- const n = t, o = Ct(null), s = Ct(null), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
1190
+ const n = t, o = Ct(null), s = Ct(null), i = Gt(t, "visible"), { floatingStyles: r } = Tn(o, s, {
1161
1191
  placement: n.placement,
1162
- whileElementsMounted: xn,
1192
+ whileElementsMounted: Cn,
1163
1193
  transform: !1,
1164
- middleware: [bn(n.offset), Sn()]
1194
+ middleware: [$n(n.offset), Ln()]
1165
1195
  });
1166
- de(() => {
1196
+ he(() => {
1167
1197
  m(), document.removeEventListener("click", d);
1168
1198
  });
1169
1199
  function l() {
1170
1200
  n.trigger !== "hover" || n.disabled || (m(), e = setTimeout(() => {
1171
- f(!1);
1201
+ u(!1);
1172
1202
  }, n.showAfter));
1173
1203
  }
1174
1204
  function a() {
@@ -1176,11 +1206,11 @@ const En = /* @__PURE__ */ M({
1176
1206
  d();
1177
1207
  }, n.hideAfter));
1178
1208
  }
1179
- function c() {
1180
- n.trigger === "click" && (i.value ? d() : n.disabled || f());
1209
+ function c(f) {
1210
+ n.trigger === "click" && !n.disabled && !i.value && (f.stopPropagation(), u());
1181
1211
  }
1182
- function f(u = !0) {
1183
- i.value = !0, u && document.addEventListener("click", d);
1212
+ function u(f = !0) {
1213
+ i.value = !0, f && document.addEventListener("click", d);
1184
1214
  }
1185
1215
  function d() {
1186
1216
  i.value = !1, document.removeEventListener("click", d);
@@ -1188,44 +1218,46 @@ const En = /* @__PURE__ */ M({
1188
1218
  function m() {
1189
1219
  e && (clearTimeout(e), e = void 0);
1190
1220
  }
1191
- return (u, p) => (R(), T(pe, null, [
1192
- J("span", {
1193
- class: D(["sq-popover-trigger", u.$attrs.class]),
1194
- style: ct(u.$attrs.style),
1221
+ return (f, p) => (b(), C(ge, null, [
1222
+ q("span", {
1223
+ class: T(["sq-popover-trigger", f.$attrs.class]),
1224
+ style: it(f.$attrs.style),
1195
1225
  ref_key: "triggerRef",
1196
1226
  ref: o,
1197
1227
  onMouseenter: l,
1198
1228
  onMouseleave: a,
1199
- onClick: qt(c, ["stop"])
1229
+ onClick: c
1200
1230
  }, [
1201
- _(u.$slots, "reference")
1231
+ $(f.$slots, "reference")
1202
1232
  ], 38),
1203
- (R(), Q(me, {
1233
+ (b(), U(ve, {
1204
1234
  to: "body",
1205
1235
  disabled: !n.teleported
1206
1236
  }, [
1207
- Xt(he, { name: "sq-fade" }, {
1208
- default: dt(() => [
1209
- Kt(J("div", {
1210
- class: D(["sq-popover", u.popoverClass]),
1237
+ Ut(ye, {
1238
+ name: n.transition
1239
+ }, {
1240
+ default: pt(() => [
1241
+ Kt(q("div", {
1242
+ class: T(["sq-popover", f.popoverClass]),
1211
1243
  ref_key: "popverRef",
1212
1244
  ref: s,
1213
- style: ct(H(r)),
1214
- onClick: p[0] || (p[0] = qt(() => {
1245
+ style: it(X(r)),
1246
+ onClick: p[0] || (p[0] = we(() => {
1215
1247
  }, ["stop"]))
1216
1248
  }, [
1217
- _(u.$slots, "default")
1249
+ $(f.$slots, "default")
1218
1250
  ], 6), [
1219
- [ge, i.value]
1251
+ [xe, i.value]
1220
1252
  ])
1221
1253
  ]),
1222
1254
  _: 3
1223
- })
1255
+ }, 8, ["name"])
1224
1256
  ], 8, ["disabled"]))
1225
1257
  ], 64));
1226
1258
  }
1227
- }), $n = /* @__PURE__ */ M({
1228
- __name: "SqProgress",
1259
+ }), In = /* @__PURE__ */ B({
1260
+ __name: "progress",
1229
1261
  props: {
1230
1262
  value: {},
1231
1263
  min: { default: 0 },
@@ -1234,10 +1266,10 @@ const En = /* @__PURE__ */ M({
1234
1266
  type: { default: "primary" }
1235
1267
  },
1236
1268
  setup(t) {
1237
- const e = t, n = w(() => e.color ? [] : [`is-${e.type}`]), o = w(() => {
1269
+ const e = t, n = v(() => e.color ? [] : [`is-${e.type}`]), o = v(() => {
1238
1270
  const i = e.max - e.min;
1239
1271
  return (e.value - e.min) * 100 / i;
1240
- }), s = w(() => {
1272
+ }), s = v(() => {
1241
1273
  const i = {};
1242
1274
  if (i["--progress-value"] = `${o.value}%`, e.color) {
1243
1275
  const l = typeof e.color == "string" ? e.color : e.color(o.value);
@@ -1245,88 +1277,151 @@ const En = /* @__PURE__ */ M({
1245
1277
  }
1246
1278
  return i;
1247
1279
  });
1248
- return (i, r) => (R(), T("div", {
1249
- class: D(["sq-progress", n.value]),
1250
- style: ct(s.value)
1280
+ return (i, r) => (b(), C("div", {
1281
+ class: T(["sq-progress", n.value]),
1282
+ style: it(s.value)
1251
1283
  }, null, 6));
1252
1284
  }
1253
- }), kn = /* @__PURE__ */ M({
1254
- __name: "SqTag",
1285
+ }), Wn = /* @__PURE__ */ B({
1286
+ __name: "tag",
1255
1287
  props: {
1256
1288
  type: {},
1257
- theme: { default: "materialize" },
1289
+ theme: { default: "plain" },
1258
1290
  round: { type: Boolean },
1259
1291
  size: { default: "md" }
1260
1292
  },
1261
1293
  setup(t) {
1262
- const e = t, n = w(() => {
1294
+ const e = t, n = v(() => {
1263
1295
  const s = [];
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;
1265
- }), o = w(() => e.size === "lg" ? "md" : "sm");
1266
- return (s, i) => (R(), Q(H(kt), {
1267
- class: D(["sq-tag", n.value]),
1296
+ return e.size !== "md" && s.push(`sq-tag--${e.size}`), e.theme !== "plain" && e.type && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), s;
1297
+ }), o = v(() => e.size === "lg" ? "md" : "sm");
1298
+ return (s, i) => (b(), U(X(zt), {
1299
+ class: T(["sq-tag", n.value]),
1268
1300
  size: o.value
1269
1301
  }, {
1270
- default: dt(() => [
1271
- _(s.$slots, "default")
1302
+ default: pt(() => [
1303
+ $(s.$slots, "default")
1272
1304
  ]),
1273
1305
  _: 3
1274
1306
  }, 8, ["class", "size"]));
1275
1307
  }
1276
- }), Bn = /* @__PURE__ */ M({
1277
- __name: "SqCheckTag",
1308
+ }), Hn = /* @__PURE__ */ B({
1309
+ __name: "check-tag",
1278
1310
  props: {
1279
1311
  checked: { type: Boolean, default: !1 },
1312
+ theme: { default: "plain" },
1280
1313
  type: { default: "primary" },
1281
1314
  round: { type: Boolean },
1282
1315
  size: { default: "md" }
1283
1316
  },
1284
1317
  emits: ["change"],
1285
1318
  setup(t, { emit: e }) {
1286
- const n = e, o = t, s = w(() => {
1319
+ const n = e, o = t, s = v(() => {
1287
1320
  const r = [];
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;
1289
- }), i = w(() => o.size === "lg" ? "md" : "sm");
1290
- return (r, l) => (R(), Q(H(kt), {
1291
- class: D(["sq-check-tag", s.value]),
1321
+ return o.size !== "md" && r.push(`sq-tag--${o.size}`), o.theme !== "plain" && r.push(`is-${o.theme}`), o.type && r.push(`is-${o.type}`), o.round && r.push("is-round"), o.checked && r.push("is-checked"), r;
1322
+ }), i = v(() => o.size === "lg" ? "md" : "sm");
1323
+ return (r, l) => (b(), U(X(zt), {
1324
+ class: T(["sq-check-tag", s.value]),
1292
1325
  size: i.value,
1293
1326
  onClick: l[0] || (l[0] = (a) => n("change", !o.checked))
1294
1327
  }, {
1295
- default: dt(() => [
1296
- _(r.$slots, "default")
1328
+ default: pt(() => [
1329
+ $(r.$slots, "default")
1297
1330
  ]),
1298
1331
  _: 3
1299
1332
  }, 8, ["class", "size"]));
1300
1333
  }
1301
- }), kt = /* @__PURE__ */ M({
1302
- __name: "SqText",
1334
+ }), zt = /* @__PURE__ */ B({
1335
+ __name: "text",
1303
1336
  props: {
1304
1337
  rowNum: { default: 1 },
1305
1338
  ellipsis: { type: Boolean, default: !1 },
1306
1339
  size: { default: "md" }
1307
1340
  },
1308
1341
  setup(t) {
1309
- const e = t, n = w(() => {
1342
+ const e = t, n = v(() => {
1310
1343
  const s = [];
1311
1344
  return e.size !== "md" && s.push(`s-text--${e.size}`), e.ellipsis && s.push(e.rowNum > 1 ? "multi-line" : "single-line"), s;
1312
- }), o = w(
1345
+ }), o = v(
1313
1346
  () => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
1314
1347
  );
1315
- return (s, i) => (R(), T("span", {
1316
- class: D(["sq-text", n.value]),
1317
- style: ct(o.value)
1348
+ return (s, i) => (b(), C("span", {
1349
+ class: T(["sq-text", n.value]),
1350
+ style: it(o.value)
1318
1351
  }, [
1319
- _(s.$slots, "default")
1352
+ $(s.$slots, "default")
1353
+ ], 6));
1354
+ }
1355
+ }), jn = /* @__PURE__ */ B({
1356
+ __name: "timeline",
1357
+ props: {
1358
+ align: { default: "left" }
1359
+ },
1360
+ setup(t) {
1361
+ const e = t, n = v(() => {
1362
+ const o = [];
1363
+ return o.push(`align-${e.align}`), o;
1364
+ });
1365
+ return (o, s) => (b(), C("div", {
1366
+ class: T(["sq-timeline", n.value])
1367
+ }, [
1368
+ $(o.$slots, "default")
1369
+ ], 2));
1370
+ }
1371
+ }), En = { class: "sq-timeline-dot" }, kn = { class: "sq-timeline-content" }, Bn = ["textContent"], zn = ["textContent"], Pn = { class: "content-info" }, Xn = /* @__PURE__ */ B({
1372
+ __name: "timeline-item",
1373
+ props: {
1374
+ color: {},
1375
+ type: {},
1376
+ icon: {},
1377
+ hollow: { type: Boolean },
1378
+ timestamp: {},
1379
+ theme: { default: "card" },
1380
+ title: {}
1381
+ },
1382
+ setup(t) {
1383
+ const e = t, n = v(() => {
1384
+ const s = [];
1385
+ return e.theme !== "card" && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.hollow && s.push("is-hollow"), s;
1386
+ }), o = v(() => {
1387
+ const s = {};
1388
+ return e.color && (s["--timeline-dot-color"] = e.color), s;
1389
+ });
1390
+ return (s, i) => (b(), C("div", {
1391
+ class: T(["sq-timeline-item", n.value]),
1392
+ style: it(o.value)
1393
+ }, [
1394
+ q("span", En, [
1395
+ e.icon ? (b(), U(at(e.icon), { key: 0 })) : V("", !0)
1396
+ ]),
1397
+ q("div", kn, [
1398
+ e.title ? (b(), C("h2", {
1399
+ key: 0,
1400
+ class: "content-title",
1401
+ textContent: _t(e.title)
1402
+ }, null, 8, Bn)) : V("", !0),
1403
+ e.timestamp ? (b(), C("span", {
1404
+ key: 1,
1405
+ class: "content-time",
1406
+ textContent: _t(e.timestamp)
1407
+ }, null, 8, zn)) : V("", !0),
1408
+ q("div", Pn, [
1409
+ $(s.$slots, "default")
1410
+ ])
1411
+ ])
1320
1412
  ], 6));
1321
1413
  }
1322
1414
  });
1323
1415
  export {
1324
- On as SqButton,
1325
- Tn as SqCard,
1326
- Bn as SqCheckTag,
1327
- _n as SqInput,
1328
- En as SqPopover,
1329
- $n as SqProgress,
1330
- kn as SqTag,
1331
- kt as SqText
1416
+ qn as SqButton,
1417
+ Mn as SqButtonGroup,
1418
+ Vn as SqCard,
1419
+ Hn as SqCheckTag,
1420
+ Fn as SqInput,
1421
+ Nn as SqPopover,
1422
+ In as SqProgress,
1423
+ Wn as SqTag,
1424
+ zt as SqText,
1425
+ jn as SqTimeline,
1426
+ Xn as SqTimelineItem
1332
1427
  };