@squirrel-cloud/ui-vue 0.2.0 → 0.2.1

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