nve-designsystem 4.2.0 → 4.4.2

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 (86) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +4 -4
  2. package/chunks/chunk.36O46B5H.js +2 -2
  3. package/chunks/chunk.4TUIT776.js +1 -1
  4. package/chunks/chunk.5JY5FUCG.js +325 -344
  5. package/chunks/chunk.5P45LHIX.js +3 -3
  6. package/chunks/chunk.6CTB5ZDJ.js +16 -4
  7. package/chunks/chunk.B4BZKR24.js +2 -2
  8. package/chunks/chunk.D5YQDJ7X.js +3 -3
  9. package/chunks/chunk.EA437WHD.js +1 -1
  10. package/chunks/chunk.GI7VDIWX.js +1 -1
  11. package/chunks/chunk.GMYPQTFK.js +1 -1
  12. package/chunks/chunk.HVTXQL7M.js +3 -3
  13. package/chunks/chunk.IKV4VH3T.js +3 -3
  14. package/chunks/chunk.IVVHNXMC.js +2 -2
  15. package/chunks/chunk.JHOXTQXA.js +3 -3
  16. package/chunks/chunk.JXOKFADN.js +3 -3
  17. package/chunks/chunk.K7JGTRV7.js +1 -1
  18. package/chunks/chunk.KPLQLAWP.js +3 -3
  19. package/chunks/chunk.LD4M4QGE.js +1 -1
  20. package/chunks/chunk.MSKEYBDI.js +3 -3
  21. package/chunks/chunk.NYIIDP5N.js +1 -1
  22. package/chunks/chunk.RWUUFNUL.js +3 -3
  23. package/chunks/chunk.SAPQLUO4.js +4 -4
  24. package/chunks/chunk.SI4ACBFK.js +1 -1
  25. package/chunks/chunk.TP2GB2HO.js +4 -4
  26. package/chunks/chunk.UDWRA64J.js +3 -3
  27. package/chunks/chunk.URTPIBTY.js +3 -3
  28. package/chunks/chunk.VESXC477.js +1 -1
  29. package/chunks/chunk.XA43ZQPC.js +3 -3
  30. package/chunks/chunk.XQ2OKYYA.js +3 -3
  31. package/chunks/chunk.XZNBUGX7.js +1 -1
  32. package/chunks/chunk.YHLNUJ7P.js +2 -2
  33. package/chunks/chunk.ZH2AND3P.js +8 -8
  34. package/chunks/chunk.ZL53POKZ.js +2 -2
  35. package/chunks/class-map.js +3 -3
  36. package/chunks/decorate.js +11 -11
  37. package/chunks/directive-helpers.js +3 -3
  38. package/chunks/if-defined.js +1 -1
  39. package/chunks/lit.js +88 -86
  40. package/chunks/live.js +8 -8
  41. package/chunks/nve-alert.component.js +9 -9
  42. package/chunks/nve-carousel-item.component.js +1 -1
  43. package/chunks/nve-checkbox-group.component.js +7 -7
  44. package/chunks/nve-label.component.js +1 -1
  45. package/chunks/nve-warning-level.component.js +4 -4
  46. package/chunks/ref.js +4 -4
  47. package/chunks/shoelace.js +771 -771
  48. package/chunks/static-html.js +16 -13
  49. package/chunks/unsafe-html.js +1 -1
  50. package/components/nve-accordion/nve-accordion.component.js +1 -1
  51. package/components/nve-badge/nve-badge.component.js +1 -1
  52. package/components/nve-button/nve-button.component.js +1 -1
  53. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +1 -1
  54. package/components/nve-combobox/nve-combobox.component.js +1 -1
  55. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +3 -2
  56. package/components/nve-heading/nve-heading.component.d.ts +29 -0
  57. package/components/nve-heading/nve-heading.component.js +45 -0
  58. package/components/nve-heading/nve-heading.styles.d.ts +2 -0
  59. package/components/nve-heading/nve-heading.styles.js +41 -0
  60. package/components/nve-icon/nve-icon.component.js +1 -1
  61. package/components/nve-link-card/nve-link-card.component.js +6 -6
  62. package/components/nve-message-card/nve-message-card.component.js +1 -1
  63. package/components/nve-navigation-card/nve-navigation-card.component.js +8 -8
  64. package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
  65. package/components/nve-paragraph/nve-paragraph.component.js +26 -0
  66. package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
  67. package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
  68. package/components/nve-stepper/nve-step/nve-step.component.js +21 -21
  69. package/components/nve-stepper/nve-stepper-mobile.component.js +1 -1
  70. package/components/nve-stepper/nve-stepper.component.js +1 -1
  71. package/components/nve-switch/nve-switch.component.js +1 -1
  72. package/components/nve-tab/nve-tab.component.js +1 -1
  73. package/components/nve-tab-group/nve-tab-group.component.js +6 -6
  74. package/components/nve-tab-panel/nve-tab-panel.component.js +1 -1
  75. package/components/nve-tag/nve-tag.component.js +6 -6
  76. package/components/nve-textarea/nve-textarea.component.js +12 -12
  77. package/css/nve.css +54 -45
  78. package/css/nve_dark.css +16 -7
  79. package/css/rme.css +54 -45
  80. package/css/rme_dark.css +16 -7
  81. package/css/varsom.css +54 -45
  82. package/css/varsom_dark.css +16 -7
  83. package/custom-elements.json +170 -1
  84. package/nve-designsystem.d.ts +3 -1
  85. package/nve-designsystem.js +23 -21
  86. package/package.json +15 -7
@@ -1,9 +1,9 @@
1
- import { s as e, u as t } from "./lit.js";
1
+ import { a as e, u as t } from "./lit.js";
2
2
  import { o as n, r } from "./decorate.js";
3
3
  import { a as i, i as a, n as o, r as s, t as c } from "./chunk.4TUIT776.js";
4
4
  import { t as l } from "./class-map.js";
5
5
  import { t as u } from "./chunk.6CTB5ZDJ.js";
6
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js
6
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js
7
7
  var d = t`
8
8
  :host {
9
9
  --arrow-color: var(--sl-color-neutral-1000);
@@ -70,68 +70,67 @@ var d = t`
70
70
  right: "left",
71
71
  bottom: "top",
72
72
  top: "bottom"
73
- }, v = {
74
- start: "end",
75
- end: "start"
76
73
  };
77
- function y(e, t, n) {
74
+ function v(e, t, n) {
78
75
  return p(e, f(t, n));
79
76
  }
80
- function b(e, t) {
77
+ function y(e, t) {
81
78
  return typeof e == "function" ? e(t) : e;
82
79
  }
83
- function x(e) {
80
+ function b(e) {
84
81
  return e.split("-")[0];
85
82
  }
86
- function S(e) {
83
+ function x(e) {
87
84
  return e.split("-")[1];
88
85
  }
89
- function C(e) {
86
+ function S(e) {
90
87
  return e === "x" ? "y" : "x";
91
88
  }
92
- function w(e) {
89
+ function C(e) {
93
90
  return e === "y" ? "height" : "width";
94
91
  }
95
- function T(e) {
96
- return ["top", "bottom"].includes(x(e)) ? "y" : "x";
92
+ function w(e) {
93
+ let t = e[0];
94
+ return t === "t" || t === "b" ? "y" : "x";
97
95
  }
98
- function E(e) {
99
- return C(T(e));
96
+ function T(e) {
97
+ return S(w(e));
100
98
  }
101
99
  function ee(e, t, n) {
102
100
  n === void 0 && (n = !1);
103
- let r = S(e), i = E(e), a = w(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
101
+ let r = x(e), i = T(e), a = C(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
104
102
  return t.reference[a] > t.floating[a] && (o = j(o)), [o, j(o)];
105
103
  }
106
- function D(e) {
104
+ function te(e) {
107
105
  let t = j(e);
108
106
  return [
109
- O(e),
107
+ E(e),
110
108
  t,
111
- O(t)
109
+ E(t)
112
110
  ];
113
111
  }
114
- function O(e) {
115
- return e.replace(/start|end/g, (e) => v[e]);
112
+ function E(e) {
113
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
116
114
  }
117
- function k(e, t, n) {
118
- let r = ["left", "right"], i = ["right", "left"], a = ["top", "bottom"], o = ["bottom", "top"];
115
+ var D = ["left", "right"], O = ["right", "left"], k = ["top", "bottom"], ne = ["bottom", "top"];
116
+ function re(e, t, n) {
119
117
  switch (e) {
120
118
  case "top":
121
- case "bottom": return n ? t ? i : r : t ? r : i;
119
+ case "bottom": return n ? t ? O : D : t ? D : O;
122
120
  case "left":
123
- case "right": return t ? a : o;
121
+ case "right": return t ? k : ne;
124
122
  default: return [];
125
123
  }
126
124
  }
127
125
  function A(e, t, n, r) {
128
- let i = S(e), a = k(x(e), n === "start", r);
129
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(O)))), a;
126
+ let i = x(e), a = re(b(e), n === "start", r);
127
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(E)))), a;
130
128
  }
131
129
  function j(e) {
132
- return e.replace(/left|right|bottom|top/g, (e) => _[e]);
130
+ let t = b(e);
131
+ return _[t] + e.slice(t.length);
133
132
  }
134
- function te(e) {
133
+ function M(e) {
135
134
  return {
136
135
  top: 0,
137
136
  right: 0,
@@ -140,15 +139,15 @@ function te(e) {
140
139
  ...e
141
140
  };
142
141
  }
143
- function ne(e) {
142
+ function ie(e) {
144
143
  return typeof e == "number" ? {
145
144
  top: e,
146
145
  right: e,
147
146
  bottom: e,
148
147
  left: e
149
- } : te(e);
148
+ } : M(e);
150
149
  }
151
- function M(e) {
150
+ function N(e) {
152
151
  let { x: t, y: n, width: r, height: i } = e;
153
152
  return {
154
153
  width: r,
@@ -162,9 +161,9 @@ function M(e) {
162
161
  };
163
162
  }
164
163
  //#endregion
165
- //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
166
- function re(e, t, n) {
167
- let { reference: r, floating: i } = e, a = T(t), o = E(t), s = w(o), c = x(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
164
+ //#region .pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
165
+ function P(e, t, n) {
166
+ let { reference: r, floating: i } = e, a = w(t), o = T(t), s = C(o), c = b(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
168
167
  switch (c) {
169
168
  case "top":
170
169
  p = {
@@ -195,7 +194,7 @@ function re(e, t, n) {
195
194
  y: r.y
196
195
  };
197
196
  }
198
- switch (S(t)) {
197
+ switch (x(t)) {
199
198
  case "start":
200
199
  p[o] -= f * (n && l ? -1 : 1);
201
200
  break;
@@ -205,130 +204,131 @@ function re(e, t, n) {
205
204
  }
206
205
  return p;
207
206
  }
208
- var N = async (e, t, n) => {
209
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
207
+ async function F(e, t) {
208
+ t === void 0 && (t = {});
209
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = y(t, e), p = ie(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = N(await i.getClippingRect({
210
+ element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
211
+ boundary: c,
212
+ rootBoundary: l,
213
+ strategy: s
214
+ })), g = u === "floating" ? {
215
+ x: n,
216
+ y: r,
217
+ width: a.floating.width,
218
+ height: a.floating.height
219
+ } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
220
+ x: 1,
221
+ y: 1
222
+ }, b = N(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
223
+ elements: o,
224
+ rect: g,
225
+ offsetParent: _,
226
+ strategy: s
227
+ }) : g);
228
+ return {
229
+ top: (h.top - b.top + p.top) / v.y,
230
+ bottom: (b.bottom - h.bottom + p.bottom) / v.y,
231
+ left: (h.left - b.left + p.left) / v.x,
232
+ right: (b.right - h.right + p.right) / v.x
233
+ };
234
+ }
235
+ var ae = 50, oe = async (e, t, n) => {
236
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
237
+ ...o,
238
+ detectOverflow: F
239
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
210
240
  reference: e,
211
241
  floating: t,
212
242
  strategy: i
213
- }), { x: u, y: d } = re(l, r, c), f = r, p = {}, m = 0;
214
- for (let n = 0; n < s.length; n++) {
215
- let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
243
+ }), { x: u, y: d } = P(l, r, c), f = r, p = 0, m = {};
244
+ for (let n = 0; n < a.length; n++) {
245
+ let h = a[n];
246
+ if (!h) continue;
247
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
216
248
  x: u,
217
249
  y: d,
218
250
  initialPlacement: r,
219
251
  placement: f,
220
252
  strategy: i,
221
- middlewareData: p,
253
+ middlewareData: m,
222
254
  rects: l,
223
- platform: o,
255
+ platform: s,
224
256
  elements: {
225
257
  reference: e,
226
258
  floating: t
227
259
  }
228
260
  });
229
- u = g ?? u, d = _ ?? d, p = {
230
- ...p,
231
- [a]: {
232
- ...p[a],
233
- ...v
234
- }
235
- }, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (l = y.rects === !0 ? await o.getElementRects({
261
+ u = v ?? u, d = y ?? d, m[g] = {
262
+ ...m[g],
263
+ ...b
264
+ }, x && p < ae && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
236
265
  reference: e,
237
266
  floating: t,
238
267
  strategy: i
239
- }) : y.rects), {x: u, y: d} = re(l, f, c)), n = -1);
268
+ }) : x.rects), {x: u, y: d} = P(l, f, c)), n = -1);
240
269
  }
241
270
  return {
242
271
  x: u,
243
272
  y: d,
244
273
  placement: f,
245
274
  strategy: i,
246
- middlewareData: p
275
+ middlewareData: m
247
276
  };
248
- };
249
- async function P(e, t) {
250
- t === void 0 && (t = {});
251
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = b(t, e), p = ne(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = M(await i.getClippingRect({
252
- element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
253
- boundary: c,
254
- rootBoundary: l,
255
- strategy: s
256
- })), g = u === "floating" ? {
257
- x: n,
258
- y: r,
259
- width: a.floating.width,
260
- height: a.floating.height
261
- } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
262
- x: 1,
263
- y: 1
264
- }, y = M(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
265
- elements: o,
266
- rect: g,
267
- offsetParent: _,
268
- strategy: s
269
- }) : g);
270
- return {
271
- top: (h.top - y.top + p.top) / v.y,
272
- bottom: (y.bottom - h.bottom + p.bottom) / v.y,
273
- left: (h.left - y.left + p.left) / v.x,
274
- right: (y.right - h.right + p.right) / v.x
275
- };
276
- }
277
- var F = (e) => ({
277
+ }, se = (e) => ({
278
278
  name: "arrow",
279
279
  options: e,
280
280
  async fn(t) {
281
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = b(e, t) || {};
281
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = y(e, t) || {};
282
282
  if (l == null) return {};
283
- let d = ne(u), p = {
283
+ let d = ie(u), p = {
284
284
  x: n,
285
285
  y: r
286
- }, m = E(i), h = w(m), g = await o.getDimensions(l), _ = m === "y", v = _ ? "top" : "left", x = _ ? "bottom" : "right", C = _ ? "clientHeight" : "clientWidth", T = a.reference[h] + a.reference[m] - p[m] - a.floating[h], ee = p[m] - a.reference[m], D = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), O = D ? D[C] : 0;
287
- (!O || !await (o.isElement == null ? void 0 : o.isElement(D))) && (O = s.floating[C] || a.floating[h]);
288
- let k = T / 2 - ee / 2, A = O / 2 - g[h] / 2 - 1, j = f(d[v], A), te = f(d[x], A), M = j, re = O - g[h] - te, N = O / 2 - g[h] / 2 + k, P = y(M, N, re), F = !c.arrow && S(i) != null && N !== P && a.reference[h] / 2 - (N < M ? j : te) - g[h] / 2 < 0, I = F ? N < M ? N - M : N - re : 0;
286
+ }, m = T(i), h = C(m), g = await o.getDimensions(l), _ = m === "y", b = _ ? "top" : "left", S = _ ? "bottom" : "right", w = _ ? "clientHeight" : "clientWidth", ee = a.reference[h] + a.reference[m] - p[m] - a.floating[h], te = p[m] - a.reference[m], E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), D = E ? E[w] : 0;
287
+ (!D || !await (o.isElement == null ? void 0 : o.isElement(E))) && (D = s.floating[w] || a.floating[h]);
288
+ let O = ee / 2 - te / 2, k = D / 2 - g[h] / 2 - 1, ne = f(d[b], k), re = f(d[S], k), A = ne, j = D - g[h] - re, M = D / 2 - g[h] / 2 + O, N = v(A, M, j), P = !c.arrow && x(i) != null && M !== N && a.reference[h] / 2 - (M < A ? ne : re) - g[h] / 2 < 0, F = P ? M < A ? M - A : M - j : 0;
289
289
  return {
290
- [m]: p[m] + I,
290
+ [m]: p[m] + F,
291
291
  data: {
292
- [m]: P,
293
- centerOffset: N - P - I,
294
- ...F && { alignmentOffset: I }
292
+ [m]: N,
293
+ centerOffset: M - N - F,
294
+ ...P && { alignmentOffset: F }
295
295
  },
296
- reset: F
296
+ reset: P
297
297
  };
298
298
  }
299
- }), I = function(e) {
299
+ }), ce = function(e) {
300
300
  return e === void 0 && (e = {}), {
301
301
  name: "flip",
302
302
  options: e,
303
303
  async fn(t) {
304
304
  var n;
305
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = b(e, t);
305
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = y(e, t);
306
306
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
307
- let g = x(r), _ = T(o), v = x(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = d || (v || !m ? [j(o)] : D(o)), C = p !== "none";
308
- !d && C && S.push(...A(o, m, p, y));
309
- let w = [o, ...S], E = await P(t, h), O = [], k = i.flip?.overflows || [];
310
- if (l && O.push(E[g]), u) {
311
- let e = ee(r, a, y);
312
- O.push(E[e[0]], E[e[1]]);
307
+ let g = b(r), _ = w(o), v = b(o) === o, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = d || (v || !m ? [j(o)] : te(o)), C = p !== "none";
308
+ !d && C && S.push(...A(o, m, p, x));
309
+ let T = [o, ...S], E = await s.detectOverflow(t, h), D = [], O = i.flip?.overflows || [];
310
+ if (l && D.push(E[g]), u) {
311
+ let e = ee(r, a, x);
312
+ D.push(E[e[0]], E[e[1]]);
313
313
  }
314
- if (k = [...k, {
314
+ if (O = [...O, {
315
315
  placement: r,
316
- overflows: O
317
- }], !O.every((e) => e <= 0)) {
318
- let e = (i.flip?.index || 0) + 1, t = w[e];
319
- if (t && (!(u === "alignment" && _ !== T(t)) || k.every((e) => e.overflows[0] > 0 && T(e.placement) === _))) return {
316
+ overflows: D
317
+ }], !D.every((e) => e <= 0)) {
318
+ let e = (i.flip?.index || 0) + 1, t = T[e];
319
+ if (t && (!(u === "alignment" && _ !== w(t)) || O.every((e) => w(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
320
320
  data: {
321
321
  index: e,
322
- overflows: k
322
+ overflows: O
323
323
  },
324
324
  reset: { placement: t }
325
325
  };
326
- let n = k.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
326
+ let n = O.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
327
327
  if (!n) switch (f) {
328
328
  case "bestFit": {
329
- let e = k.filter((e) => {
329
+ let e = O.filter((e) => {
330
330
  if (C) {
331
- let t = T(e.placement);
331
+ let t = w(e.placement);
332
332
  return t === _ || t === "y";
333
333
  }
334
334
  return !0;
@@ -345,9 +345,9 @@ var F = (e) => ({
345
345
  return {};
346
346
  }
347
347
  };
348
- };
349
- async function ie(e, t) {
350
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = x(n), s = S(n), c = T(n) === "y", l = ["left", "top"].includes(o) ? -1 : 1, u = a && c ? -1 : 1, d = b(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
348
+ }, le = /*#__PURE__*/ new Set(["left", "top"]);
349
+ async function ue(e, t) {
350
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = b(n), s = x(n), c = w(n) === "y", l = le.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = y(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
351
351
  mainAxis: d,
352
352
  crossAxis: 0,
353
353
  alignmentAxis: null
@@ -364,13 +364,13 @@ async function ie(e, t) {
364
364
  y: p * u
365
365
  };
366
366
  }
367
- var ae = function(e) {
367
+ var de = function(e) {
368
368
  return e === void 0 && (e = 0), {
369
369
  name: "offset",
370
370
  options: e,
371
371
  async fn(t) {
372
372
  var n;
373
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ie(t, e);
373
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ue(t, e);
374
374
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
375
375
  x: r + s.x,
376
376
  y: i + s.y,
@@ -381,163 +381,139 @@ var ae = function(e) {
381
381
  };
382
382
  }
383
383
  };
384
- }, oe = function(e) {
384
+ }, fe = function(e) {
385
385
  return e === void 0 && (e = {}), {
386
386
  name: "shift",
387
387
  options: e,
388
388
  async fn(t) {
389
- let { x: n, y: r, placement: i } = t, { mainAxis: a = !0, crossAxis: o = !1, limiter: s = { fn: (e) => {
389
+ let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
390
390
  let { x: t, y: n } = e;
391
391
  return {
392
392
  x: t,
393
393
  y: n
394
394
  };
395
- } }, ...c } = b(e, t), l = {
395
+ } }, ...l } = y(e, t), u = {
396
396
  x: n,
397
397
  y: r
398
- }, u = await P(t, c), d = T(x(i)), f = C(d), p = l[f], m = l[d];
399
- if (a) {
400
- let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = p + u[e], r = p - u[t];
401
- p = y(n, p, r);
402
- }
398
+ }, d = await a.detectOverflow(t, l), f = w(b(i)), p = S(f), m = u[p], h = u[f];
403
399
  if (o) {
404
- let e = d === "y" ? "top" : "left", t = d === "y" ? "bottom" : "right", n = m + u[e], r = m - u[t];
405
- m = y(n, m, r);
400
+ let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
401
+ m = v(n, m, r);
406
402
  }
407
- let h = s.fn({
403
+ if (s) {
404
+ let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
405
+ h = v(n, h, r);
406
+ }
407
+ let g = c.fn({
408
408
  ...t,
409
- [f]: p,
410
- [d]: m
409
+ [p]: m,
410
+ [f]: h
411
411
  });
412
412
  return {
413
- ...h,
413
+ ...g,
414
414
  data: {
415
- x: h.x - n,
416
- y: h.y - r,
415
+ x: g.x - n,
416
+ y: g.y - r,
417
417
  enabled: {
418
- [f]: a,
419
- [d]: o
418
+ [p]: o,
419
+ [f]: s
420
420
  }
421
421
  }
422
422
  };
423
423
  }
424
424
  };
425
- }, se = function(e) {
425
+ }, pe = function(e) {
426
426
  return e === void 0 && (e = {}), {
427
427
  name: "size",
428
428
  options: e,
429
429
  async fn(t) {
430
430
  var n, r;
431
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = b(e, t), u = await P(t, l), d = x(i), m = S(i), h = T(i) === "y", { width: g, height: _ } = a.floating, v, y;
432
- d === "top" || d === "bottom" ? (v = d, y = m === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = m === "end" ? "top" : "bottom");
433
- let C = _ - u.top - u.bottom, w = g - u.left - u.right, E = f(_ - u[v], C), ee = f(g - u[y], w), D = !t.middlewareData.shift, O = E, k = ee;
434
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (O = C), D && !m) {
431
+ let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = y(e, t), u = await o.detectOverflow(t, l), d = b(i), m = x(i), h = w(i) === "y", { width: g, height: _ } = a.floating, v, S;
432
+ d === "top" || d === "bottom" ? (v = d, S = m === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (S = d, v = m === "end" ? "top" : "bottom");
433
+ let C = _ - u.top - u.bottom, T = g - u.left - u.right, ee = f(_ - u[v], C), te = f(g - u[S], T), E = !t.middlewareData.shift, D = ee, O = te;
434
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = T), (r = t.middlewareData.shift) != null && r.enabled.y && (D = C), E && !m) {
435
435
  let e = p(u.left, 0), t = p(u.right, 0), n = p(u.top, 0), r = p(u.bottom, 0);
436
- h ? k = g - 2 * (e !== 0 || t !== 0 ? e + t : p(u.left, u.right)) : O = _ - 2 * (n !== 0 || r !== 0 ? n + r : p(u.top, u.bottom));
436
+ h ? O = g - 2 * (e !== 0 || t !== 0 ? e + t : p(u.left, u.right)) : D = _ - 2 * (n !== 0 || r !== 0 ? n + r : p(u.top, u.bottom));
437
437
  }
438
438
  await c({
439
439
  ...t,
440
- availableWidth: k,
441
- availableHeight: O
440
+ availableWidth: O,
441
+ availableHeight: D
442
442
  });
443
- let A = await o.getDimensions(s.floating);
444
- return g !== A.width || _ !== A.height ? { reset: { rects: !0 } } : {};
443
+ let k = await o.getDimensions(s.floating);
444
+ return g !== k.width || _ !== k.height ? { reset: { rects: !0 } } : {};
445
445
  }
446
446
  };
447
447
  };
448
448
  //#endregion
449
- //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
450
- function L() {
449
+ //#region .pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
450
+ function I() {
451
451
  return typeof window < "u";
452
452
  }
453
- function R(e) {
454
- return ce(e) ? (e.nodeName || "").toLowerCase() : "#document";
453
+ function L(e) {
454
+ return me(e) ? (e.nodeName || "").toLowerCase() : "#document";
455
455
  }
456
- function z(e) {
456
+ function R(e) {
457
457
  var t;
458
458
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
459
459
  }
460
- function B(e) {
461
- return ((ce(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
460
+ function z(e) {
461
+ return ((me(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
462
+ }
463
+ function me(e) {
464
+ return I() ? e instanceof Node || e instanceof R(e).Node : !1;
462
465
  }
463
- function ce(e) {
464
- return L() ? e instanceof Node || e instanceof z(e).Node : !1;
466
+ function B(e) {
467
+ return I() ? e instanceof Element || e instanceof R(e).Element : !1;
465
468
  }
466
469
  function V(e) {
467
- return L() ? e instanceof Element || e instanceof z(e).Element : !1;
468
- }
469
- function H(e) {
470
- return L() ? e instanceof HTMLElement || e instanceof z(e).HTMLElement : !1;
470
+ return I() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
471
471
  }
472
- function le(e) {
473
- return !L() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof z(e).ShadowRoot;
472
+ function he(e) {
473
+ return !I() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
474
474
  }
475
- function U(e) {
475
+ function H(e) {
476
476
  let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
477
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
477
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
478
478
  }
479
- function ue(e) {
480
- return [
481
- "table",
482
- "td",
483
- "th"
484
- ].includes(R(e));
479
+ function ge(e) {
480
+ return /^(table|td|th)$/.test(L(e));
485
481
  }
486
- function W(e) {
487
- return [":popover-open", ":modal"].some((t) => {
488
- try {
489
- return e.matches(t);
490
- } catch {
491
- return !1;
492
- }
493
- });
482
+ function U(e) {
483
+ try {
484
+ if (e.matches(":popover-open")) return !0;
485
+ } catch {}
486
+ try {
487
+ return e.matches(":modal");
488
+ } catch {
489
+ return !1;
490
+ }
494
491
  }
492
+ var _e = /transform|translate|scale|rotate|perspective|filter/, ve = /paint|layout|strict|content/, W = (e) => !!e && e !== "none", ye;
495
493
  function G(e) {
496
- let t = fe(), n = V(e) ? q(e) : e;
497
- return [
498
- "transform",
499
- "translate",
500
- "scale",
501
- "rotate",
502
- "perspective"
503
- ].some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || [
504
- "transform",
505
- "translate",
506
- "scale",
507
- "rotate",
508
- "perspective",
509
- "filter"
510
- ].some((e) => (n.willChange || "").includes(e)) || [
511
- "paint",
512
- "layout",
513
- "strict",
514
- "content"
515
- ].some((e) => (n.contain || "").includes(e));
516
- }
517
- function de(e) {
494
+ let t = B(e) ? q(e) : e;
495
+ return W(t.transform) || W(t.translate) || W(t.scale) || W(t.rotate) || W(t.perspective) || !xe() && (W(t.backdropFilter) || W(t.filter)) || _e.test(t.willChange || "") || ve.test(t.contain || "");
496
+ }
497
+ function be(e) {
518
498
  let t = Y(e);
519
- for (; H(t) && !K(t);) {
499
+ for (; V(t) && !K(t);) {
520
500
  if (G(t)) return t;
521
- if (W(t)) return null;
501
+ if (U(t)) return null;
522
502
  t = Y(t);
523
503
  }
524
504
  return null;
525
505
  }
526
- function fe() {
527
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
506
+ function xe() {
507
+ return ye ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ye;
528
508
  }
529
509
  function K(e) {
530
- return [
531
- "html",
532
- "body",
533
- "#document"
534
- ].includes(R(e));
510
+ return /^(html|body|#document)$/.test(L(e));
535
511
  }
536
512
  function q(e) {
537
- return z(e).getComputedStyle(e);
513
+ return R(e).getComputedStyle(e);
538
514
  }
539
515
  function J(e) {
540
- return V(e) ? {
516
+ return B(e) ? {
541
517
  scrollLeft: e.scrollLeft,
542
518
  scrollTop: e.scrollTop
543
519
  } : {
@@ -546,102 +522,100 @@ function J(e) {
546
522
  };
547
523
  }
548
524
  function Y(e) {
549
- if (R(e) === "html") return e;
550
- let t = e.assignedSlot || e.parentNode || le(e) && e.host || B(e);
551
- return le(t) ? t.host : t;
525
+ if (L(e) === "html") return e;
526
+ let t = e.assignedSlot || e.parentNode || he(e) && e.host || z(e);
527
+ return he(t) ? t.host : t;
552
528
  }
553
- function pe(e) {
529
+ function Se(e) {
554
530
  let t = Y(e);
555
- return K(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : H(t) && U(t) ? t : pe(t);
531
+ return K(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && H(t) ? t : Se(t);
556
532
  }
557
533
  function X(e, t, n) {
558
534
  t === void 0 && (t = []), n === void 0 && (n = !0);
559
- let r = pe(e), i = r === e.ownerDocument?.body, a = z(r);
535
+ let r = Se(e), i = r === e.ownerDocument?.body, a = R(r);
560
536
  if (i) {
561
- let e = me(a);
562
- return t.concat(a, a.visualViewport || [], U(r) ? r : [], e && n ? X(e) : []);
563
- }
564
- return t.concat(r, X(r, [], n));
537
+ let e = Ce(a);
538
+ return t.concat(a, a.visualViewport || [], H(r) ? r : [], e && n ? X(e) : []);
539
+ } else return t.concat(r, X(r, [], n));
565
540
  }
566
- function me(e) {
541
+ function Ce(e) {
567
542
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
568
543
  }
569
544
  //#endregion
570
- //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
571
- function he(e) {
572
- let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = H(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = m(n) !== a || m(r) !== o;
545
+ //#region .pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
546
+ function we(e) {
547
+ let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = V(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = m(n) !== a || m(r) !== o;
573
548
  return s && (n = a, r = o), {
574
549
  width: n,
575
550
  height: r,
576
551
  $: s
577
552
  };
578
553
  }
579
- function ge(e) {
580
- return V(e) ? e : e.contextElement;
554
+ function Te(e) {
555
+ return B(e) ? e : e.contextElement;
581
556
  }
582
557
  function Z(e) {
583
- let t = ge(e);
584
- if (!H(t)) return g(1);
585
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = he(t), o = (a ? m(n.width) : n.width) / r, s = (a ? m(n.height) : n.height) / i;
558
+ let t = Te(e);
559
+ if (!V(t)) return g(1);
560
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = we(t), o = (a ? m(n.width) : n.width) / r, s = (a ? m(n.height) : n.height) / i;
586
561
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
587
562
  x: o,
588
563
  y: s
589
564
  };
590
565
  }
591
- var _e = /* @__PURE__ */ g(0);
592
- function ve(e) {
593
- let t = z(e);
594
- return !fe() || !t.visualViewport ? _e : {
566
+ var Ee = /*#__PURE__*/ g(0);
567
+ function De(e) {
568
+ let t = R(e);
569
+ return !xe() || !t.visualViewport ? Ee : {
595
570
  x: t.visualViewport.offsetLeft,
596
571
  y: t.visualViewport.offsetTop
597
572
  };
598
573
  }
599
- function ye(e, t, n) {
600
- return t === void 0 && (t = !1), !n || t && n !== z(e) ? !1 : t;
574
+ function Oe(e, t, n) {
575
+ return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
601
576
  }
602
577
  function Q(e, t, n, r) {
603
578
  t === void 0 && (t = !1), n === void 0 && (n = !1);
604
- let i = e.getBoundingClientRect(), a = ge(e), o = g(1);
605
- t && (r ? V(r) && (o = Z(r)) : o = Z(e));
606
- let s = ye(a, n, r) ? ve(a) : g(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
579
+ let i = e.getBoundingClientRect(), a = Te(e), o = g(1);
580
+ t && (r ? B(r) && (o = Z(r)) : o = Z(e));
581
+ let s = Oe(a, n, r) ? De(a) : g(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
607
582
  if (a) {
608
- let e = z(a), t = r && V(r) ? z(r) : r, n = e, i = me(n);
583
+ let e = R(a), t = r && B(r) ? R(r) : r, n = e, i = Ce(n);
609
584
  for (; i && r && t !== n;) {
610
585
  let e = Z(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
611
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = z(i), i = me(n);
586
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = R(i), i = Ce(n);
612
587
  }
613
588
  }
614
- return M({
589
+ return N({
615
590
  width: u,
616
591
  height: d,
617
592
  x: c,
618
593
  y: l
619
594
  });
620
595
  }
621
- function be(e, t) {
596
+ function ke(e, t) {
622
597
  let n = J(e).scrollLeft;
623
- return t ? t.left + n : Q(B(e)).left + n;
598
+ return t ? t.left + n : Q(z(e)).left + n;
624
599
  }
625
- function xe(e, t, n) {
626
- n === void 0 && (n = !1);
627
- let r = e.getBoundingClientRect();
600
+ function Ae(e, t) {
601
+ let n = e.getBoundingClientRect();
628
602
  return {
629
- x: r.left + t.scrollLeft - (n ? 0 : be(e, r)),
630
- y: r.top + t.scrollTop
603
+ x: n.left + t.scrollLeft - ke(e, n),
604
+ y: n.top + t.scrollTop
631
605
  };
632
606
  }
633
- function Se(e) {
634
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = B(r), s = t ? W(t.floating) : !1;
607
+ function je(e) {
608
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = z(r), s = t ? U(t.floating) : !1;
635
609
  if (r === o || s && a) return n;
636
610
  let c = {
637
611
  scrollLeft: 0,
638
612
  scrollTop: 0
639
- }, l = g(1), u = g(0), d = H(r);
640
- if ((d || !d && !a) && ((R(r) !== "body" || U(o)) && (c = J(r)), H(r))) {
613
+ }, l = g(1), u = g(0), d = V(r);
614
+ if ((d || !d && !a) && ((L(r) !== "body" || H(o)) && (c = J(r)), d)) {
641
615
  let e = Q(r);
642
616
  l = Z(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
643
617
  }
644
- let f = o && !d && !a ? xe(o, c, !0) : g(0);
618
+ let f = o && !d && !a ? Ae(o, c) : g(0);
645
619
  return {
646
620
  width: n.width * l.x,
647
621
  height: n.height * l.y,
@@ -649,11 +623,11 @@ function Se(e) {
649
623
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
650
624
  };
651
625
  }
652
- function Ce(e) {
626
+ function Me(e) {
653
627
  return Array.from(e.getClientRects());
654
628
  }
655
- function we(e) {
656
- let t = B(e), n = J(e), r = e.ownerDocument.body, i = p(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = p(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + be(e), s = -n.scrollTop;
629
+ function Ne(e) {
630
+ let t = z(e), n = J(e), r = e.ownerDocument.body, i = p(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = p(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ke(e), s = -n.scrollTop;
657
631
  return q(r).direction === "rtl" && (o += p(t.clientWidth, r.clientWidth) - i), {
658
632
  width: i,
659
633
  height: a,
@@ -661,13 +635,19 @@ function we(e) {
661
635
  y: s
662
636
  };
663
637
  }
664
- function Te(e, t) {
665
- let n = z(e), r = B(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
638
+ var Pe = 25;
639
+ function Fe(e, t) {
640
+ let n = R(e), r = z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
666
641
  if (i) {
667
642
  a = i.width, o = i.height;
668
- let e = fe();
643
+ let e = xe();
669
644
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
670
645
  }
646
+ let l = ke(r);
647
+ if (l <= 0) {
648
+ let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
649
+ o <= Pe && (a -= o);
650
+ } else l <= Pe && (a += l);
671
651
  return {
672
652
  width: a,
673
653
  height: o,
@@ -675,8 +655,8 @@ function Te(e, t) {
675
655
  y: c
676
656
  };
677
657
  }
678
- function Ee(e, t) {
679
- let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = H(e) ? Z(e) : g(1);
658
+ function Ie(e, t) {
659
+ let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = V(e) ? Z(e) : g(1);
680
660
  return {
681
661
  width: e.clientWidth * a.x,
682
662
  height: e.clientHeight * a.y,
@@ -684,13 +664,13 @@ function Ee(e, t) {
684
664
  y: r * a.y
685
665
  };
686
666
  }
687
- function De(e, t, n) {
667
+ function Le(e, t, n) {
688
668
  let r;
689
- if (t === "viewport") r = Te(e, n);
690
- else if (t === "document") r = we(B(e));
691
- else if (V(t)) r = Ee(t, n);
669
+ if (t === "viewport") r = Fe(e, n);
670
+ else if (t === "document") r = Ne(z(e));
671
+ else if (B(t)) r = Ie(t, n);
692
672
  else {
693
- let n = ve(e);
673
+ let n = De(e);
694
674
  r = {
695
675
  x: t.x - n.x,
696
676
  y: t.y - n.y,
@@ -698,55 +678,56 @@ function De(e, t, n) {
698
678
  height: t.height
699
679
  };
700
680
  }
701
- return M(r);
681
+ return N(r);
702
682
  }
703
- function Oe(e, t) {
683
+ function Re(e, t) {
704
684
  let n = Y(e);
705
- return n === t || !V(n) || K(n) ? !1 : q(n).position === "fixed" || Oe(n, t);
685
+ return n === t || !B(n) || K(n) ? !1 : q(n).position === "fixed" || Re(n, t);
706
686
  }
707
- function ke(e, t) {
687
+ function ze(e, t) {
708
688
  let n = t.get(e);
709
689
  if (n) return n;
710
- let r = X(e, [], !1).filter((e) => V(e) && R(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Y(e) : e;
711
- for (; V(o) && !K(o);) {
690
+ let r = X(e, [], !1).filter((e) => B(e) && L(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Y(e) : e;
691
+ for (; B(o) && !K(o);) {
712
692
  let t = q(o), n = G(o);
713
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && ["absolute", "fixed"].includes(i.position) || U(o) && !n && Oe(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Y(o);
693
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || H(o) && !n && Re(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Y(o);
714
694
  }
715
695
  return t.set(e, r), r;
716
696
  }
717
- function Ae(e) {
718
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? W(t) ? [] : ke(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
719
- let r = De(t, n, i);
720
- return e.top = p(r.top, e.top), e.right = f(r.right, e.right), e.bottom = f(r.bottom, e.bottom), e.left = p(r.left, e.left), e;
721
- }, De(t, o, i));
697
+ function Be(e) {
698
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? U(t) ? [] : ze(t, this._c) : [].concat(n), r], o = Le(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
699
+ for (let e = 1; e < a.length; e++) {
700
+ let n = Le(t, a[e], i);
701
+ s = p(n.top, s), c = f(n.right, c), l = f(n.bottom, l), u = p(n.left, u);
702
+ }
722
703
  return {
723
- width: s.right - s.left,
724
- height: s.bottom - s.top,
725
- x: s.left,
726
- y: s.top
704
+ width: c - u,
705
+ height: l - s,
706
+ x: u,
707
+ y: s
727
708
  };
728
709
  }
729
- function je(e) {
730
- let { width: t, height: n } = he(e);
710
+ function Ve(e) {
711
+ let { width: t, height: n } = we(e);
731
712
  return {
732
713
  width: t,
733
714
  height: n
734
715
  };
735
716
  }
736
- function Me(e, t, n) {
737
- let r = H(t), i = B(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
717
+ function He(e, t, n) {
718
+ let r = V(t), i = z(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
738
719
  scrollLeft: 0,
739
720
  scrollTop: 0
740
721
  }, c = g(0);
741
722
  function l() {
742
- c.x = be(i);
723
+ c.x = ke(i);
743
724
  }
744
- if (r || !r && !a) if ((R(t) !== "body" || U(i)) && (s = J(t)), r) {
725
+ if (r || !r && !a) if ((L(t) !== "body" || H(i)) && (s = J(t)), r) {
745
726
  let e = Q(t, !0, a, t);
746
727
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
747
728
  } else i && l();
748
729
  a && !r && i && l();
749
- let u = i && !r && !a ? xe(i, s) : g(0);
730
+ let u = i && !r && !a ? Ae(i, s) : g(0);
750
731
  return {
751
732
  x: o.left + s.scrollLeft - c.x - u.x,
752
733
  y: o.top + s.scrollTop - c.y - u.y,
@@ -754,34 +735,34 @@ function Me(e, t, n) {
754
735
  height: o.height
755
736
  };
756
737
  }
757
- function Ne(e) {
738
+ function Ue(e) {
758
739
  return q(e).position === "static";
759
740
  }
760
- function Pe(e, t) {
761
- if (!H(e) || q(e).position === "fixed") return null;
741
+ function We(e, t) {
742
+ if (!V(e) || q(e).position === "fixed") return null;
762
743
  if (t) return t(e);
763
744
  let n = e.offsetParent;
764
- return B(e) === n && (n = n.ownerDocument.body), n;
745
+ return z(e) === n && (n = n.ownerDocument.body), n;
765
746
  }
766
- function Fe(e, t) {
767
- let n = z(e);
768
- if (W(e)) return n;
769
- if (!H(e)) {
747
+ function Ge(e, t) {
748
+ let n = R(e);
749
+ if (U(e)) return n;
750
+ if (!V(e)) {
770
751
  let t = Y(e);
771
752
  for (; t && !K(t);) {
772
- if (V(t) && !Ne(t)) return t;
753
+ if (B(t) && !Ue(t)) return t;
773
754
  t = Y(t);
774
755
  }
775
756
  return n;
776
757
  }
777
- let r = Pe(e, t);
778
- for (; r && ue(r) && Ne(r);) r = Pe(r, t);
779
- return r && K(r) && Ne(r) && !G(r) ? n : r || de(e) || n;
758
+ let r = We(e, t);
759
+ for (; r && ge(r) && Ue(r);) r = We(r, t);
760
+ return r && K(r) && Ue(r) && !G(r) ? n : r || be(e) || n;
780
761
  }
781
- var Ie = async function(e) {
782
- let t = this.getOffsetParent || Fe, n = this.getDimensions, r = await n(e.floating);
762
+ var Ke = async function(e) {
763
+ let t = this.getOffsetParent || Ge, n = this.getDimensions, r = await n(e.floating);
783
764
  return {
784
- reference: Me(e.reference, await t(e.floating), e.strategy),
765
+ reference: He(e.reference, await t(e.floating), e.strategy),
785
766
  floating: {
786
767
  x: 0,
787
768
  y: 0,
@@ -790,26 +771,26 @@ var Ie = async function(e) {
790
771
  }
791
772
  };
792
773
  };
793
- function Le(e) {
774
+ function qe(e) {
794
775
  return q(e).direction === "rtl";
795
776
  }
796
- var Re = {
797
- convertOffsetParentRelativeRectToViewportRelativeRect: Se,
798
- getDocumentElement: B,
799
- getClippingRect: Ae,
800
- getOffsetParent: Fe,
801
- getElementRects: Ie,
802
- getClientRects: Ce,
803
- getDimensions: je,
777
+ var Je = {
778
+ convertOffsetParentRelativeRectToViewportRelativeRect: je,
779
+ getDocumentElement: z,
780
+ getClippingRect: Be,
781
+ getOffsetParent: Ge,
782
+ getElementRects: Ke,
783
+ getClientRects: Me,
784
+ getDimensions: Ve,
804
785
  getScale: Z,
805
- isElement: V,
806
- isRTL: Le
786
+ isElement: B,
787
+ isRTL: qe
807
788
  };
808
- function ze(e, t) {
789
+ function Ye(e, t) {
809
790
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
810
791
  }
811
- function Be(e, t) {
812
- let n = null, r, i = B(e);
792
+ function Xe(e, t) {
793
+ let n = null, r, i = z(e);
813
794
  function a() {
814
795
  var e;
815
796
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -830,7 +811,7 @@ function Be(e, t) {
830
811
  o(!1, 1e-7);
831
812
  }, 1e3);
832
813
  }
833
- n === 1 && !ze(l, e.getBoundingClientRect()) && o(), S = !1;
814
+ n === 1 && !Ye(l, e.getBoundingClientRect()) && o(), S = !1;
834
815
  }
835
816
  try {
836
817
  n = new IntersectionObserver(C, {
@@ -844,25 +825,25 @@ function Be(e, t) {
844
825
  }
845
826
  return o(!0), a;
846
827
  }
847
- function Ve(e, t, n, r) {
828
+ function Ze(e, t, n, r) {
848
829
  r === void 0 && (r = {});
849
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ge(e), u = i || a ? [...l ? X(l) : [], ...X(t)] : [];
830
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Te(e), u = i || a ? [...l ? X(l) : [], ...t ? X(t) : []] : [];
850
831
  u.forEach((e) => {
851
832
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
852
833
  });
853
- let d = l && s ? Be(l, n) : null, f = -1, p = null;
834
+ let d = l && s ? Xe(l, n) : null, f = -1, p = null;
854
835
  o && (p = new ResizeObserver((e) => {
855
836
  let [r] = e;
856
- r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
837
+ r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
857
838
  var e;
858
839
  (e = p) == null || e.observe(t);
859
840
  })), n();
860
- }), l && !c && p.observe(l), p.observe(t));
841
+ }), l && !c && p.observe(l), t && p.observe(t));
861
842
  let m, h = c ? Q(e) : null;
862
843
  c && g();
863
844
  function g() {
864
845
  let t = Q(e);
865
- h && !ze(h, t) && n(), h = t, m = requestAnimationFrame(g);
846
+ h && !Ye(h, t) && n(), h = t, m = requestAnimationFrame(g);
866
847
  }
867
848
  return n(), () => {
868
849
  var e;
@@ -871,30 +852,30 @@ function Ve(e, t, n, r) {
871
852
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
872
853
  };
873
854
  }
874
- var He = ae, Ue = oe, We = I, Ge = se, Ke = F, qe = (e, t, n) => {
855
+ var Qe = de, $e = fe, et = ce, tt = pe, nt = se, rt = (e, t, n) => {
875
856
  let r = /* @__PURE__ */ new Map(), i = {
876
- platform: Re,
857
+ platform: Je,
877
858
  ...n
878
859
  }, a = {
879
860
  ...i.platform,
880
861
  _c: r
881
862
  };
882
- return N(e, t, {
863
+ return oe(e, t, {
883
864
  ...i,
884
865
  platform: a
885
866
  });
886
867
  };
887
868
  //#endregion
888
- //#region node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
889
- function Je(e) {
890
- return Xe(e);
869
+ //#region .pnpm/composed-offset-position@0.0.6_@floating-ui+utils@0.2.11/node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
870
+ function it(e) {
871
+ return ot(e);
891
872
  }
892
- function Ye(e) {
873
+ function at(e) {
893
874
  return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
894
875
  }
895
- function Xe(e) {
896
- for (let t = e; t; t = Ye(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
897
- for (let t = Ye(e); t; t = Ye(t)) {
876
+ function ot(e) {
877
+ for (let t = e; t; t = at(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
878
+ for (let t = at(e); t; t = at(t)) {
898
879
  if (!(t instanceof Element)) continue;
899
880
  let e = getComputedStyle(t);
900
881
  if (e.display !== "contents" && (e.position !== "static" || G(e) || t.tagName === "BODY")) return t;
@@ -902,8 +883,8 @@ function Xe(e) {
902
883
  return null;
903
884
  }
904
885
  //#endregion
905
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5JY5FUCG.js
906
- function Ze(e) {
886
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5JY5FUCG.js
887
+ function st(e) {
907
888
  return typeof e == "object" && !!e && "getBoundingClientRect" in e && ("contextElement" in e ? e.contextElement instanceof Element : !0);
908
889
  }
909
890
  var $ = class extends c {
@@ -928,11 +909,11 @@ var $ = class extends c {
928
909
  if (await this.stop(), this.anchor && typeof this.anchor == "string") {
929
910
  let e = this.getRootNode();
930
911
  this.anchorEl = e.getElementById(this.anchor);
931
- } else this.anchor instanceof Element || Ze(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector("[slot=\"anchor\"]");
912
+ } else this.anchor instanceof Element || st(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector("[slot=\"anchor\"]");
932
913
  this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({ flatten: !0 })[0]), this.anchorEl && this.active && this.start();
933
914
  }
934
915
  start() {
935
- !this.anchorEl || !this.active || (this.cleanup = Ve(this.anchorEl, this.popup, () => {
916
+ !this.anchorEl || !this.active || (this.cleanup = Ze(this.anchorEl, this.popup, () => {
936
917
  this.reposition();
937
918
  }));
938
919
  }
@@ -943,37 +924,37 @@ var $ = class extends c {
943
924
  }
944
925
  reposition() {
945
926
  if (!this.active || !this.anchorEl) return;
946
- let e = [He({
927
+ let e = [Qe({
947
928
  mainAxis: this.distance,
948
929
  crossAxis: this.skidding
949
930
  })];
950
- this.sync ? e.push(Ge({ apply: ({ rects: e }) => {
931
+ this.sync ? e.push(tt({ apply: ({ rects: e }) => {
951
932
  let t = this.sync === "width" || this.sync === "both", n = this.sync === "height" || this.sync === "both";
952
933
  this.popup.style.width = t ? `${e.reference.width}px` : "", this.popup.style.height = n ? `${e.reference.height}px` : "";
953
- } })) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip && e.push(We({
934
+ } })) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip && e.push(et({
954
935
  boundary: this.flipBoundary,
955
936
  fallbackPlacements: this.flipFallbackPlacements,
956
937
  fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
957
938
  padding: this.flipPadding
958
- })), this.shift && e.push(Ue({
939
+ })), this.shift && e.push($e({
959
940
  boundary: this.shiftBoundary,
960
941
  padding: this.shiftPadding
961
- })), this.autoSize ? e.push(Ge({
942
+ })), this.autoSize ? e.push(tt({
962
943
  boundary: this.autoSizeBoundary,
963
944
  padding: this.autoSizePadding,
964
945
  apply: ({ availableWidth: e, availableHeight: t }) => {
965
946
  this.autoSize === "vertical" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-height", `${t}px`) : this.style.removeProperty("--auto-size-available-height"), this.autoSize === "horizontal" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-width", `${e}px`) : this.style.removeProperty("--auto-size-available-width");
966
947
  }
967
- })) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(Ke({
948
+ })) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(nt({
968
949
  element: this.arrowEl,
969
950
  padding: this.arrowPadding
970
951
  }));
971
- let t = this.strategy === "absolute" ? (e) => Re.getOffsetParent(e, Je) : Re.getOffsetParent;
972
- qe(this.anchorEl, this.popup, {
952
+ let t = this.strategy === "absolute" ? (e) => Je.getOffsetParent(e, it) : Je.getOffsetParent;
953
+ rt(this.anchorEl, this.popup, {
973
954
  placement: this.placement,
974
955
  middleware: e,
975
956
  strategy: this.strategy,
976
- platform: a(i({}, Re), { getOffsetParent: t })
957
+ platform: a(i({}, Je), { getOffsetParent: t })
977
958
  }).then(({ x: e, y: t, middlewareData: n, placement: r }) => {
978
959
  let i = this.localize.dir() === "rtl", a = {
979
960
  top: "bottom",