@purpurds/tooltip 5.5.0 → 5.6.0

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,25 +1,25 @@
1
- import { jsxs as Ve, jsx as I } from "react/jsx-runtime";
1
+ import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
2
2
  import * as N from "react";
3
- import { forwardRef as M, useCallback as k, createContext as Ge, useMemo as we, createElement as _, useContext as Ct, Fragment as xn, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as j, useLayoutEffect as Et, useReducer as $n } from "react";
4
- import * as wn from "react-dom";
5
- import _n, { flushSync as Tt } from "react-dom";
6
- const Pn = {
3
+ import { forwardRef as M, useCallback as k, createContext as Ve, useMemo as $e, createElement as _, useContext as Ot, Fragment as bn, Children as ie, isValidElement as Me, cloneElement as Ze, useEffect as R, useRef as L, useState as j, useLayoutEffect as Ct, useReducer as xn } from "react";
4
+ import * as $n from "react-dom";
5
+ import wn, { flushSync as Et } from "react-dom";
6
+ const _n = {
7
7
  SM: "sm",
8
8
  MD: "md",
9
9
  LG: "lg"
10
- }, An = {
10
+ }, Pn = {
11
11
  PRIMARY: "primary",
12
12
  SECONDARY: "secondary",
13
13
  EXPRESSIVE: "expressive"
14
- }, ft = {
14
+ }, dt = {
15
15
  SM: "sm",
16
16
  MD: "md",
17
17
  LG: "lg"
18
18
  };
19
- function On(e) {
19
+ function An(e) {
20
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21
21
  }
22
- var Rt = { exports: {} };
22
+ var Tt = { exports: {} };
23
23
  /*!
24
24
  Copyright (c) 2018 Jed Watson.
25
25
  Licensed under the MIT License (MIT), see
@@ -54,44 +54,44 @@ var Rt = { exports: {} };
54
54
  }
55
55
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
56
56
  })();
57
- })(Rt);
58
- var Cn = Rt.exports;
59
- const pt = /* @__PURE__ */ On(Cn), En = "_rotate_1xozj_1", Tn = "_dash_1xozj_1", ye = {
57
+ })(Tt);
58
+ var On = Tt.exports;
59
+ const ft = /* @__PURE__ */ An(On), Cn = "_rotate_1xozj_1", En = "_dash_1xozj_1", ve = {
60
60
  "purpur-spinner": "_purpur-spinner_1xozj_1",
61
- rotate: En,
61
+ rotate: Cn,
62
62
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
63
63
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
64
64
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
65
65
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
66
66
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
67
67
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
68
- dash: Tn,
68
+ dash: En,
69
69
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
70
70
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
71
- }, be = "purpur-spinner", Rn = {
71
+ }, ye = "purpur-spinner", Tn = {
72
72
  XXS: "xxs",
73
73
  XS: "xs",
74
74
  SM: "sm",
75
75
  MD: "md",
76
76
  LG: "lg"
77
- }, Sn = ({
77
+ }, Rn = ({
78
78
  ["data-testid"]: e,
79
79
  disabled: t = !1,
80
80
  negative: n = !1,
81
- size: o = Rn.SM,
81
+ size: o = Tn.SM,
82
82
  ...i
83
83
  }) => /* @__PURE__ */ I(
84
84
  "div",
85
85
  {
86
- className: pt([ye[be], ye[`${be}--${o}`]]),
86
+ className: ft([ve[ye], ve[`${ye}--${o}`]]),
87
87
  "data-testid": e,
88
88
  ...i,
89
89
  children: /* @__PURE__ */ I("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ I(
90
90
  "circle",
91
91
  {
92
- className: pt(ye[`${be}__circle`], {
93
- [ye[`${be}__circle--disabled`]]: t,
94
- [ye[`${be}__circle--negative`]]: n
92
+ className: ft(ve[`${ye}__circle`], {
93
+ [ve[`${ye}__circle--disabled`]]: t,
94
+ [ve[`${ye}__circle--negative`]]: n
95
95
  }),
96
96
  cx: "25",
97
97
  cy: "25",
@@ -100,10 +100,10 @@ const pt = /* @__PURE__ */ On(Cn), En = "_rotate_1xozj_1", Tn = "_dash_1xozj_1",
100
100
  ) })
101
101
  }
102
102
  );
103
- function Dn(e) {
103
+ function Sn(e) {
104
104
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
105
105
  }
106
- var St = { exports: {} };
106
+ var Rt = { exports: {} };
107
107
  /*!
108
108
  Copyright (c) 2018 Jed Watson.
109
109
  Licensed under the MIT License (MIT), see
@@ -115,22 +115,22 @@ var St = { exports: {} };
115
115
  function n() {
116
116
  for (var r = "", s = 0; s < arguments.length; s++) {
117
117
  var a = arguments[s];
118
- a && (r = i(r, o(a)));
118
+ a && (r = i(r, o.call(this, a)));
119
119
  }
120
120
  return r;
121
121
  }
122
122
  function o(r) {
123
123
  if (typeof r == "string" || typeof r == "number")
124
- return r;
124
+ return this && this[r] || r;
125
125
  if (typeof r != "object")
126
126
  return "";
127
127
  if (Array.isArray(r))
128
- return n.apply(null, r);
128
+ return n.apply(this, r);
129
129
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
130
130
  return r.toString();
131
131
  var s = "";
132
132
  for (var a in r)
133
- t.call(r, a) && r[a] && (s = i(s, a));
133
+ t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
134
134
  return s;
135
135
  }
136
136
  function i(r, s) {
@@ -138,9 +138,9 @@ var St = { exports: {} };
138
138
  }
139
139
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
140
140
  })();
141
- })(St);
142
- var Nn = St.exports;
143
- const Ln = /* @__PURE__ */ Dn(Nn), re = {
141
+ })(Rt);
142
+ var Dn = Rt.exports;
143
+ const Nn = /* @__PURE__ */ Sn(Dn), Ln = {
144
144
  "purpur-button": "_purpur-button_u2yv5_1",
145
145
  "purpur-button--sm": "_purpur-button--sm_u2yv5_33",
146
146
  "purpur-button--icon-only": "_purpur-button--icon-only_u2yv5_36",
@@ -162,11 +162,11 @@ const Ln = /* @__PURE__ */ Dn(Nn), re = {
162
162
  "purpur-button--text-negative": "_purpur-button--text-negative_u2yv5_175",
163
163
  "purpur-button--text": "_purpur-button--text_u2yv5_175"
164
164
  }, Mn = {
165
- ...An,
165
+ ...Pn,
166
166
  DESTRUCTIVE: "destructive",
167
167
  TERTIARY_PURPLE: "tertiary-purple",
168
168
  TEXT: "text"
169
- }, oe = "purpur-button", In = ({
169
+ }, In = Nn.bind(Ln), re = "purpur-button", Fn = ({
170
170
  children: e,
171
171
  className: t,
172
172
  ["data-testid"]: n,
@@ -176,52 +176,52 @@ const Ln = /* @__PURE__ */ Dn(Nn), re = {
176
176
  loading: s = !1,
177
177
  negative: a = !1,
178
178
  onClick: c,
179
- size: l = ft.MD,
179
+ size: l = dt.MD,
180
180
  variant: u,
181
181
  type: d = "button",
182
182
  ...p
183
183
  }, f) => {
184
184
  if (r && u === "destructive")
185
185
  return null;
186
- const h = Ln(
186
+ const h = In(
187
187
  [
188
- re[oe],
189
- re[`${oe}--${a ? `${u}-negative` : u}`],
190
- re[`${oe}--${l}`]
188
+ re,
189
+ `${re}--${a ? `${u}-negative` : u}`,
190
+ `${re}--${l}`
191
191
  ],
192
192
  {
193
- [re[`${oe}--icon-only`]]: r,
194
- [re[`${oe}--negative`]]: a,
195
- [re[`${oe}--full-width`]]: i,
196
- [re[`${oe}--disabled`]]: o || s
193
+ [`${re}--icon-only`]: r,
194
+ [`${re}--negative`]: a,
195
+ [`${re}--full-width`]: i,
196
+ [`${re}--disabled`]: o || s
197
197
  },
198
198
  t
199
- ), m = (g) => {
200
- o || s ? g.preventDefault() : c && c(g);
201
- };
202
- return /* @__PURE__ */ Ve(
199
+ ), m = (v) => {
200
+ o || s ? v.preventDefault() : c && c(v);
201
+ }, g = !!p["aria-disabled"] || o || s;
202
+ return /* @__PURE__ */ Ue(
203
203
  "button",
204
204
  {
205
205
  className: h,
206
206
  "data-testid": n,
207
207
  type: d,
208
208
  ref: f,
209
- "aria-disabled": p["aria-disabled"] || o || s,
209
+ "aria-disabled": g,
210
210
  onClick: m,
211
211
  ...p,
212
212
  children: [
213
- s && /* @__PURE__ */ I(Sn, { size: l === ft.LG ? "xs" : "xxs", negative: a, disabled: o }),
213
+ s && /* @__PURE__ */ I(Rn, { size: l === dt.LG ? "xs" : "xxs", negative: a, disabled: g }),
214
214
  " ",
215
215
  e
216
216
  ]
217
217
  }
218
218
  );
219
- }, Dt = M(In);
220
- Dt.displayName = "Button";
221
- function Fn(e) {
219
+ }, St = M(Fn);
220
+ St.displayName = "Button";
221
+ function kn(e) {
222
222
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
223
223
  }
224
- var Nt = { exports: {} };
224
+ var Dt = { exports: {} };
225
225
  /*!
226
226
  Copyright (c) 2018 Jed Watson.
227
227
  Licensed under the MIT License (MIT), see
@@ -256,9 +256,9 @@ var Nt = { exports: {} };
256
256
  }
257
257
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
258
258
  })();
259
- })(Nt);
260
- var kn = Nt.exports;
261
- const Hn = /* @__PURE__ */ Fn(kn), Bn = {
259
+ })(Dt);
260
+ var Hn = Dt.exports;
261
+ const Bn = /* @__PURE__ */ kn(Hn), jn = {
262
262
  "purpur-icon": "_purpur-icon_8u1lq_1",
263
263
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
264
264
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -266,39 +266,39 @@ const Hn = /* @__PURE__ */ Fn(kn), Bn = {
266
266
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
267
267
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
268
268
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
269
- }, jn = {
269
+ }, zn = {
270
270
  name: "info",
271
271
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
272
272
  keywords: ["info"],
273
273
  category: "status"
274
- }, Lt = (e) => /* @__PURE__ */ I(
275
- Xn,
274
+ }, Nt = (e) => /* @__PURE__ */ I(
275
+ Yn,
276
276
  {
277
277
  ...e,
278
- svg: jn
278
+ svg: zn
279
279
  }
280
280
  );
281
- Lt.displayName = "IconInfo";
282
- const zn = Hn.bind(Bn), ht = "purpur-icon", Wn = "md", Un = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Vn = ({ content: e = "", title: t } = {}) => {
281
+ Nt.displayName = "IconInfo";
282
+ const Wn = Bn.bind(jn), pt = "purpur-icon", Un = "md", Vn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Gn = ({ content: e = "", title: t } = {}) => {
283
283
  const n = [
284
284
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
285
285
  { name: "fill", value: "currentColor" },
286
286
  { name: "viewBox", value: "0 0 24 24" },
287
287
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
288
288
  ], o = t ? `<title>${t}</title>` : "";
289
- return `<svg ${Un(n)}>${o}${e}</svg>`;
290
- }, Gn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xn = ({
289
+ return `<svg ${Vn(n)}>${o}${e}</svg>`;
290
+ }, Xn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
291
291
  ["data-testid"]: e,
292
292
  svg: t,
293
293
  allyTitle: n,
294
294
  className: o = "",
295
- size: i = Wn,
295
+ size: i = Un,
296
296
  ...r
297
297
  }) => {
298
- const s = Vn({
299
- content: Gn(t.svg),
298
+ const s = Gn({
299
+ content: Xn(t.svg),
300
300
  title: n
301
- }), a = zn(o, ht, `${ht}--${i}`);
301
+ }), a = Wn(o, pt, `${pt}--${i}`);
302
302
  return /* @__PURE__ */ I(
303
303
  "span",
304
304
  {
@@ -310,10 +310,10 @@ const zn = Hn.bind(Bn), ht = "purpur-icon", Wn = "md", Un = (e) => e.filter((t)
310
310
  }
311
311
  );
312
312
  };
313
- function Yn(e) {
313
+ function qn(e) {
314
314
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
315
315
  }
316
- var Mt = { exports: {} };
316
+ var Lt = { exports: {} };
317
317
  /*!
318
318
  Copyright (c) 2018 Jed Watson.
319
319
  Licensed under the MIT License (MIT), see
@@ -348,9 +348,9 @@ var Mt = { exports: {} };
348
348
  }
349
349
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
350
350
  })();
351
- })(Mt);
352
- var qn = Mt.exports;
353
- const Kn = /* @__PURE__ */ Yn(qn), xe = {
351
+ })(Lt);
352
+ var Kn = Lt.exports;
353
+ const Zn = /* @__PURE__ */ qn(Kn), be = {
354
354
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
355
355
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
356
356
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -365,7 +365,7 @@ const Kn = /* @__PURE__ */ Yn(qn), xe = {
365
365
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
366
366
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
367
367
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
368
- }, It = {
368
+ }, Mt = {
369
369
  PARAGRAPH100: "paragraph-100",
370
370
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
371
371
  PARAGRAPH100BOLD: "paragraph-100-bold",
@@ -376,28 +376,28 @@ const Kn = /* @__PURE__ */ Yn(qn), xe = {
376
376
  ADDITIONAL100MEDIUM: "additional-100-medium",
377
377
  OVERLINE100: "overline-100",
378
378
  OVERLINE200: "overline-200"
379
- }, $e = "purpur-paragraph", Zn = ({
379
+ }, xe = "purpur-paragraph", Jn = ({
380
380
  ["data-testid"]: e,
381
381
  children: t,
382
382
  className: n = "",
383
383
  disabled: o,
384
384
  enableHyphenation: i = !1,
385
385
  negative: r = !1,
386
- variant: s = It.PARAGRAPH100,
386
+ variant: s = Mt.PARAGRAPH100,
387
387
  ...a
388
388
  }) => {
389
- const c = Kn([
389
+ const c = Zn([
390
390
  n,
391
- xe[$e],
392
- xe[`${$e}--${s}`],
391
+ be[xe],
392
+ be[`${xe}--${s}`],
393
393
  {
394
- [xe[`${$e}--hyphens`]]: i,
395
- [xe[`${$e}--disabled`]]: o,
396
- [xe[`${$e}--negative`]]: r
394
+ [be[`${xe}--hyphens`]]: i,
395
+ [be[`${xe}--disabled`]]: o,
396
+ [be[`${xe}--negative`]]: r
397
397
  }
398
398
  ]);
399
399
  return /* @__PURE__ */ I("p", { ...a, className: c, "data-testid": e, children: t });
400
- }, Jn = "400ms";
400
+ }, Qn = "400ms";
401
401
  function S() {
402
402
  return S = Object.assign ? Object.assign.bind() : function(e) {
403
403
  for (var t = 1; t < arguments.length; t++) {
@@ -414,27 +414,27 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
414
414
  return t == null ? void 0 : t(i);
415
415
  };
416
416
  }
417
- function Qn(e, t) {
417
+ function er(e, t) {
418
418
  typeof e == "function" ? e(t) : e != null && (e.current = t);
419
419
  }
420
- function Ft(...e) {
420
+ function It(...e) {
421
421
  return (t) => e.forEach(
422
- (n) => Qn(n, t)
422
+ (n) => er(n, t)
423
423
  );
424
424
  }
425
- function pe(...e) {
426
- return k(Ft(...e), e);
425
+ function fe(...e) {
426
+ return k(It(...e), e);
427
427
  }
428
- function kt(e, t = []) {
428
+ function Ft(e, t = []) {
429
429
  let n = [];
430
430
  function o(r, s) {
431
- const a = /* @__PURE__ */ Ge(s), c = n.length;
431
+ const a = /* @__PURE__ */ Ve(s), c = n.length;
432
432
  n = [
433
433
  ...n,
434
434
  s
435
435
  ];
436
436
  function l(d) {
437
- const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][c]) || a, g = we(
437
+ const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][c]) || a, g = $e(
438
438
  () => h,
439
439
  Object.values(h)
440
440
  );
@@ -443,7 +443,7 @@ function kt(e, t = []) {
443
443
  }, f);
444
444
  }
445
445
  function u(d, p) {
446
- const f = (p == null ? void 0 : p[e][c]) || a, h = Ct(f);
446
+ const f = (p == null ? void 0 : p[e][c]) || a, h = Ot(f);
447
447
  if (h)
448
448
  return h;
449
449
  if (s !== void 0)
@@ -456,10 +456,10 @@ function kt(e, t = []) {
456
456
  ];
457
457
  }
458
458
  const i = () => {
459
- const r = n.map((s) => /* @__PURE__ */ Ge(s));
459
+ const r = n.map((s) => /* @__PURE__ */ Ve(s));
460
460
  return function(a) {
461
461
  const c = (a == null ? void 0 : a[e]) || r;
462
- return we(
462
+ return $e(
463
463
  () => ({
464
464
  [`__scope${e}`]: {
465
465
  ...a,
@@ -475,10 +475,10 @@ function kt(e, t = []) {
475
475
  };
476
476
  return i.scopeName = e, [
477
477
  o,
478
- er(i, ...t)
478
+ tr(i, ...t)
479
479
  ];
480
480
  }
481
- function er(...e) {
481
+ function tr(...e) {
482
482
  const t = e[0];
483
483
  if (e.length === 1)
484
484
  return t;
@@ -497,7 +497,7 @@ function er(...e) {
497
497
  ...d
498
498
  };
499
499
  }, {});
500
- return we(
500
+ return $e(
501
501
  () => ({
502
502
  [`__scope${t.scopeName}`]: s
503
503
  }),
@@ -509,32 +509,32 @@ function er(...e) {
509
509
  };
510
510
  return n.scopeName = t.scopeName, n;
511
511
  }
512
- const Ht = /* @__PURE__ */ M((e, t) => {
513
- const { children: n, ...o } = e, i = se.toArray(n), r = i.find(tr);
512
+ const kt = /* @__PURE__ */ M((e, t) => {
513
+ const { children: n, ...o } = e, i = ie.toArray(n), r = i.find(nr);
514
514
  if (r) {
515
- const s = r.props.children, a = i.map((c) => c === r ? se.count(s) > 1 ? se.only(null) : /* @__PURE__ */ Ie(s) ? s.props.children : null : c);
516
- return /* @__PURE__ */ _(Xe, S({}, o, {
515
+ const s = r.props.children, a = i.map((c) => c === r ? ie.count(s) > 1 ? ie.only(null) : /* @__PURE__ */ Me(s) ? s.props.children : null : c);
516
+ return /* @__PURE__ */ _(Ge, S({}, o, {
517
517
  ref: t
518
- }), /* @__PURE__ */ Ie(s) ? /* @__PURE__ */ Je(s, void 0, a) : null);
518
+ }), /* @__PURE__ */ Me(s) ? /* @__PURE__ */ Ze(s, void 0, a) : null);
519
519
  }
520
- return /* @__PURE__ */ _(Xe, S({}, o, {
520
+ return /* @__PURE__ */ _(Ge, S({}, o, {
521
521
  ref: t
522
522
  }), n);
523
523
  });
524
- Ht.displayName = "Slot";
525
- const Xe = /* @__PURE__ */ M((e, t) => {
524
+ kt.displayName = "Slot";
525
+ const Ge = /* @__PURE__ */ M((e, t) => {
526
526
  const { children: n, ...o } = e;
527
- return /* @__PURE__ */ Ie(n) ? /* @__PURE__ */ Je(n, {
528
- ...nr(o, n.props),
529
- ref: t ? Ft(t, n.ref) : n.ref
530
- }) : se.count(n) > 1 ? se.only(null) : null;
527
+ return /* @__PURE__ */ Me(n) ? /* @__PURE__ */ Ze(n, {
528
+ ...rr(o, n.props),
529
+ ref: t ? It(t, n.ref) : n.ref
530
+ }) : ie.count(n) > 1 ? ie.only(null) : null;
531
531
  });
532
- Xe.displayName = "SlotClone";
533
- const Bt = ({ children: e }) => /* @__PURE__ */ _(xn, null, e);
534
- function tr(e) {
535
- return /* @__PURE__ */ Ie(e) && e.type === Bt;
532
+ Ge.displayName = "SlotClone";
533
+ const Ht = ({ children: e }) => /* @__PURE__ */ _(bn, null, e);
534
+ function nr(e) {
535
+ return /* @__PURE__ */ Me(e) && e.type === Ht;
536
536
  }
537
- function nr(e, t) {
537
+ function rr(e, t) {
538
538
  const n = {
539
539
  ...t
540
540
  };
@@ -555,7 +555,7 @@ function nr(e, t) {
555
555
  ...n
556
556
  };
557
557
  }
558
- const rr = [
558
+ const or = [
559
559
  "a",
560
560
  "button",
561
561
  "div",
@@ -572,9 +572,9 @@ const rr = [
572
572
  "span",
573
573
  "svg",
574
574
  "ul"
575
- ], ce = rr.reduce((e, t) => {
575
+ ], ae = or.reduce((e, t) => {
576
576
  const n = /* @__PURE__ */ M((o, i) => {
577
- const { asChild: r, ...s } = o, a = r ? Ht : t;
577
+ const { asChild: r, ...s } = o, a = r ? kt : t;
578
578
  return R(() => {
579
579
  window[Symbol.for("radix-ui")] = !0;
580
580
  }, []), /* @__PURE__ */ _(a, S({}, s, {
@@ -586,16 +586,16 @@ const rr = [
586
586
  [t]: n
587
587
  };
588
588
  }, {});
589
- function or(e, t) {
590
- e && Tt(
589
+ function ir(e, t) {
590
+ e && Et(
591
591
  () => e.dispatchEvent(t)
592
592
  );
593
593
  }
594
- function he(e) {
594
+ function pe(e) {
595
595
  const t = L(e);
596
596
  return R(() => {
597
597
  t.current = e;
598
- }), we(
598
+ }), $e(
599
599
  () => (...n) => {
600
600
  var o;
601
601
  return (o = t.current) === null || o === void 0 ? void 0 : o.call(t, ...n);
@@ -603,8 +603,8 @@ function he(e) {
603
603
  []
604
604
  );
605
605
  }
606
- function ir(e, t = globalThis == null ? void 0 : globalThis.document) {
607
- const n = he(e);
606
+ function sr(e, t = globalThis == null ? void 0 : globalThis.document) {
607
+ const n = pe(e);
608
608
  R(() => {
609
609
  const o = (i) => {
610
610
  i.key === "Escape" && n(i);
@@ -615,27 +615,27 @@ function ir(e, t = globalThis == null ? void 0 : globalThis.document) {
615
615
  t
616
616
  ]);
617
617
  }
618
- const Ye = "dismissableLayer.update", sr = "dismissableLayer.pointerDownOutside", ar = "dismissableLayer.focusOutside";
619
- let mt;
620
- const cr = /* @__PURE__ */ Ge({
618
+ const Xe = "dismissableLayer.update", ar = "dismissableLayer.pointerDownOutside", cr = "dismissableLayer.focusOutside";
619
+ let ht;
620
+ const lr = /* @__PURE__ */ Ve({
621
621
  layers: /* @__PURE__ */ new Set(),
622
622
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
623
623
  branches: /* @__PURE__ */ new Set()
624
- }), lr = /* @__PURE__ */ M((e, t) => {
624
+ }), ur = /* @__PURE__ */ M((e, t) => {
625
625
  var n;
626
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = Ct(cr), [d, p] = j(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), m = pe(
626
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = Ot(lr), [d, p] = j(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), m = fe(
627
627
  t,
628
628
  (P) => p(P)
629
629
  ), g = Array.from(u.layers), [v] = [
630
630
  ...u.layersWithOutsidePointerEventsDisabled
631
- ].slice(-1), y = g.indexOf(v), x = d ? g.indexOf(d) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = ur((P) => {
631
+ ].slice(-1), y = g.indexOf(v), x = d ? g.indexOf(d) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = dr((P) => {
632
632
  const T = P.target, F = [
633
633
  ...u.branches
634
634
  ].some(
635
635
  (E) => E.contains(T)
636
636
  );
637
637
  !b || F || (r == null || r(P), a == null || a(P), P.defaultPrevented || c == null || c());
638
- }, f), O = dr((P) => {
638
+ }, f), O = fr((P) => {
639
639
  const T = P.target;
640
640
  [
641
641
  ...u.branches
@@ -643,12 +643,12 @@ const cr = /* @__PURE__ */ Ge({
643
643
  (E) => E.contains(T)
644
644
  ) || (s == null || s(P), a == null || a(P), P.defaultPrevented || c == null || c());
645
645
  }, f);
646
- return ir((P) => {
646
+ return sr((P) => {
647
647
  x === u.layers.size - 1 && (i == null || i(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
648
648
  }, f), R(() => {
649
649
  if (d)
650
- return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (mt = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), gt(), () => {
651
- o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = mt);
650
+ return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ht = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), mt(), () => {
651
+ o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = ht);
652
652
  };
653
653
  }, [
654
654
  d,
@@ -656,14 +656,14 @@ const cr = /* @__PURE__ */ Ge({
656
656
  o,
657
657
  u
658
658
  ]), R(() => () => {
659
- d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), gt());
659
+ d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), mt());
660
660
  }, [
661
661
  d,
662
662
  u
663
663
  ]), R(() => {
664
664
  const P = () => h({});
665
- return document.addEventListener(Ye, P), () => document.removeEventListener(Ye, P);
666
- }, []), /* @__PURE__ */ _(ce.div, S({}, l, {
665
+ return document.addEventListener(Xe, P), () => document.removeEventListener(Xe, P);
666
+ }, []), /* @__PURE__ */ _(ae.div, S({}, l, {
667
667
  ref: m,
668
668
  style: {
669
669
  pointerEvents: $ ? b ? "auto" : "none" : void 0,
@@ -674,14 +674,14 @@ const cr = /* @__PURE__ */ Ge({
674
674
  onPointerDownCapture: G(e.onPointerDownCapture, w.onPointerDownCapture)
675
675
  }));
676
676
  });
677
- function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
678
- const n = he(e), o = L(!1), i = L(() => {
677
+ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
678
+ const n = pe(e), o = L(!1), i = L(() => {
679
679
  });
680
680
  return R(() => {
681
681
  const r = (a) => {
682
682
  if (a.target && !o.current) {
683
683
  let l = function() {
684
- jt(sr, n, c, {
684
+ Bt(ar, n, c, {
685
685
  discrete: !0
686
686
  });
687
687
  };
@@ -708,11 +708,11 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
708
708
  onPointerDownCapture: () => o.current = !0
709
709
  };
710
710
  }
711
- function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
712
- const n = he(e), o = L(!1);
711
+ function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
712
+ const n = pe(e), o = L(!1);
713
713
  return R(() => {
714
714
  const i = (r) => {
715
- r.target && !o.current && jt(ar, n, {
715
+ r.target && !o.current && Bt(cr, n, {
716
716
  originalEvent: r
717
717
  }, {
718
718
  discrete: !1
@@ -727,11 +727,11 @@ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
727
727
  onBlurCapture: () => o.current = !1
728
728
  };
729
729
  }
730
- function gt() {
731
- const e = new CustomEvent(Ye);
730
+ function mt() {
731
+ const e = new CustomEvent(Xe);
732
732
  document.dispatchEvent(e);
733
733
  }
734
- function jt(e, t, n, { discrete: o }) {
734
+ function Bt(e, t, n, { discrete: o }) {
735
735
  const i = n.originalEvent.target, r = new CustomEvent(e, {
736
736
  bubbles: !1,
737
737
  cancelable: !0,
@@ -739,35 +739,35 @@ function jt(e, t, n, { discrete: o }) {
739
739
  });
740
740
  t && i.addEventListener(e, t, {
741
741
  once: !0
742
- }), o ? or(i, r) : i.dispatchEvent(r);
742
+ }), o ? ir(i, r) : i.dispatchEvent(r);
743
743
  }
744
- const de = globalThis != null && globalThis.document ? Et : () => {
745
- }, fr = N.useId || (() => {
744
+ const ue = globalThis != null && globalThis.document ? Ct : () => {
745
+ }, pr = N.useId || (() => {
746
746
  });
747
- let pr = 0;
748
- function hr(e) {
749
- const [t, n] = N.useState(fr());
750
- return de(() => {
747
+ let hr = 0;
748
+ function mr(e) {
749
+ const [t, n] = N.useState(pr());
750
+ return ue(() => {
751
751
  n(
752
- (o) => o ?? String(pr++)
752
+ (o) => o ?? String(hr++)
753
753
  );
754
754
  }, [
755
755
  e
756
756
  ]), t ? `radix-${t}` : "";
757
757
  }
758
- const mr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Fe = Math.round, De = Math.floor, te = (e) => ({
758
+ const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Ie = Math.round, Se = Math.floor, te = (e) => ({
759
759
  x: e,
760
760
  y: e
761
- }), gr = {
761
+ }), vr = {
762
762
  left: "right",
763
763
  right: "left",
764
764
  bottom: "top",
765
765
  top: "bottom"
766
- }, vr = {
766
+ }, yr = {
767
767
  start: "end",
768
768
  end: "start"
769
769
  };
770
- function qe(e, t, n) {
770
+ function Ye(e, t, n) {
771
771
  return B(e, ee(t, n));
772
772
  }
773
773
  function X(e, t) {
@@ -776,35 +776,35 @@ function X(e, t) {
776
776
  function Y(e) {
777
777
  return e.split("-")[0];
778
778
  }
779
- function me(e) {
779
+ function he(e) {
780
780
  return e.split("-")[1];
781
781
  }
782
- function Qe(e) {
782
+ function Je(e) {
783
783
  return e === "x" ? "y" : "x";
784
784
  }
785
- function et(e) {
785
+ function Qe(e) {
786
786
  return e === "y" ? "height" : "width";
787
787
  }
788
- function ge(e) {
788
+ function me(e) {
789
789
  return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
790
790
  }
791
- function tt(e) {
792
- return Qe(ge(e));
791
+ function et(e) {
792
+ return Je(me(e));
793
793
  }
794
- function yr(e, t, n) {
794
+ function br(e, t, n) {
795
795
  n === void 0 && (n = !1);
796
- const o = me(e), i = tt(e), r = et(i);
796
+ const o = he(e), i = et(e), r = Qe(i);
797
797
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
798
- return t.reference[r] > t.floating[r] && (s = ke(s)), [s, ke(s)];
798
+ return t.reference[r] > t.floating[r] && (s = Fe(s)), [s, Fe(s)];
799
799
  }
800
- function br(e) {
801
- const t = ke(e);
802
- return [Ke(e), t, Ke(t)];
800
+ function xr(e) {
801
+ const t = Fe(e);
802
+ return [qe(e), t, qe(t)];
803
803
  }
804
- function Ke(e) {
805
- return e.replace(/start|end/g, (t) => vr[t]);
804
+ function qe(e) {
805
+ return e.replace(/start|end/g, (t) => yr[t]);
806
806
  }
807
- function xr(e, t, n) {
807
+ function $r(e, t, n) {
808
808
  const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
809
809
  switch (e) {
810
810
  case "top":
@@ -817,15 +817,15 @@ function xr(e, t, n) {
817
817
  return [];
818
818
  }
819
819
  }
820
- function $r(e, t, n, o) {
821
- const i = me(e);
822
- let r = xr(Y(e), n === "start", o);
823
- return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ke)))), r;
820
+ function wr(e, t, n, o) {
821
+ const i = he(e);
822
+ let r = $r(Y(e), n === "start", o);
823
+ return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(qe)))), r;
824
824
  }
825
- function ke(e) {
826
- return e.replace(/left|right|bottom|top/g, (t) => gr[t]);
825
+ function Fe(e) {
826
+ return e.replace(/left|right|bottom|top/g, (t) => vr[t]);
827
827
  }
828
- function wr(e) {
828
+ function _r(e) {
829
829
  return {
830
830
  top: 0,
831
831
  right: 0,
@@ -834,15 +834,15 @@ function wr(e) {
834
834
  ...e
835
835
  };
836
836
  }
837
- function zt(e) {
838
- return typeof e != "number" ? wr(e) : {
837
+ function jt(e) {
838
+ return typeof e != "number" ? _r(e) : {
839
839
  top: e,
840
840
  right: e,
841
841
  bottom: e,
842
842
  left: e
843
843
  };
844
844
  }
845
- function He(e) {
845
+ function ke(e) {
846
846
  return {
847
847
  ...e,
848
848
  top: e.y,
@@ -851,12 +851,12 @@ function He(e) {
851
851
  bottom: e.y + e.height
852
852
  };
853
853
  }
854
- function vt(e, t, n) {
854
+ function gt(e, t, n) {
855
855
  let {
856
856
  reference: o,
857
857
  floating: i
858
858
  } = e;
859
- const r = ge(t), s = tt(t), a = et(s), c = Y(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
859
+ const r = me(t), s = et(t), a = Qe(s), c = Y(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
860
860
  let f;
861
861
  switch (c) {
862
862
  case "top":
@@ -889,7 +889,7 @@ function vt(e, t, n) {
889
889
  y: o.y
890
890
  };
891
891
  }
892
- switch (me(t)) {
892
+ switch (he(t)) {
893
893
  case "start":
894
894
  f[s] -= p * (n && l ? -1 : 1);
895
895
  break;
@@ -899,7 +899,7 @@ function vt(e, t, n) {
899
899
  }
900
900
  return f;
901
901
  }
902
- const _r = async (e, t, n) => {
902
+ const Pr = async (e, t, n) => {
903
903
  const {
904
904
  placement: o = "bottom",
905
905
  strategy: i = "absolute",
@@ -913,7 +913,7 @@ const _r = async (e, t, n) => {
913
913
  }), {
914
914
  x: u,
915
915
  y: d
916
- } = vt(l, o, c), p = o, f = {}, h = 0;
916
+ } = gt(l, o, c), p = o, f = {}, h = 0;
917
917
  for (let m = 0; m < a.length; m++) {
918
918
  const {
919
919
  name: g,
@@ -951,7 +951,7 @@ const _r = async (e, t, n) => {
951
951
  }) : b.rects), {
952
952
  x: u,
953
953
  y: d
954
- } = vt(l, p, c)), m = -1;
954
+ } = gt(l, p, c)), m = -1;
955
955
  continue;
956
956
  }
957
957
  }
@@ -963,7 +963,7 @@ const _r = async (e, t, n) => {
963
963
  middlewareData: f
964
964
  };
965
965
  };
966
- async function _e(e, t) {
966
+ async function we(e, t) {
967
967
  var n;
968
968
  t === void 0 && (t = {});
969
969
  const {
@@ -979,7 +979,7 @@ async function _e(e, t) {
979
979
  elementContext: d = "floating",
980
980
  altBoundary: p = !1,
981
981
  padding: f = 0
982
- } = X(t, e), h = zt(f), g = a[p ? d === "floating" ? "reference" : "floating" : d], v = He(await r.getClippingRect({
982
+ } = X(t, e), h = jt(f), g = a[p ? d === "floating" ? "reference" : "floating" : d], v = ke(await r.getClippingRect({
983
983
  element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
984
984
  boundary: l,
985
985
  rootBoundary: u,
@@ -994,7 +994,7 @@ async function _e(e, t) {
994
994
  } : {
995
995
  x: 1,
996
996
  y: 1
997
- }, b = He(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
997
+ }, b = ke(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
998
998
  rect: y,
999
999
  offsetParent: x,
1000
1000
  strategy: c
@@ -1006,7 +1006,7 @@ async function _e(e, t) {
1006
1006
  right: (b.right - v.right + h.right) / $.x
1007
1007
  };
1008
1008
  }
1009
- const yt = (e) => ({
1009
+ const vt = (e) => ({
1010
1010
  name: "arrow",
1011
1011
  options: e,
1012
1012
  async fn(t) {
@@ -1023,13 +1023,13 @@ const yt = (e) => ({
1023
1023
  } = X(e, t) || {};
1024
1024
  if (c == null)
1025
1025
  return {};
1026
- const u = zt(l), d = {
1026
+ const u = jt(l), d = {
1027
1027
  x: n,
1028
1028
  y: o
1029
- }, p = tt(i), f = et(p), h = await s.getDimensions(c), m = p === "y", g = m ? "top" : "left", v = m ? "bottom" : "right", y = m ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - d[p] - r.floating[f], $ = d[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1029
+ }, p = et(i), f = Qe(p), h = await s.getDimensions(c), m = p === "y", g = m ? "top" : "left", v = m ? "bottom" : "right", y = m ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - d[p] - r.floating[f], $ = d[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1030
1030
  let w = b ? b[y] : 0;
1031
1031
  (!w || !await (s.isElement == null ? void 0 : s.isElement(b))) && (w = a.floating[y] || r.floating[f]);
1032
- const O = x / 2 - $ / 2, P = w / 2 - h[f] / 2 - 1, T = ee(u[g], P), F = ee(u[v], P), E = T, H = w - h[f] - F, D = w / 2 - h[f] / 2 + O, C = qe(E, D, H), A = me(i) != null && D != C && r.reference[f] / 2 - (D < E ? T : F) - h[f] / 2 < 0 ? D < E ? E - D : H - D : 0;
1032
+ const O = x / 2 - $ / 2, P = w / 2 - h[f] / 2 - 1, T = ee(u[g], P), F = ee(u[v], P), E = T, H = w - h[f] - F, D = w / 2 - h[f] / 2 + O, C = Ye(E, D, H), A = he(i) != null && D != C && r.reference[f] / 2 - (D < E ? T : F) - h[f] / 2 < 0 ? D < E ? E - D : H - D : 0;
1033
1033
  return {
1034
1034
  [p]: d[p] - A,
1035
1035
  data: {
@@ -1038,7 +1038,7 @@ const yt = (e) => ({
1038
1038
  }
1039
1039
  };
1040
1040
  }
1041
- }), Pr = function(e) {
1041
+ }), Ar = function(e) {
1042
1042
  return e === void 0 && (e = {}), {
1043
1043
  name: "flip",
1044
1044
  options: e,
@@ -1059,12 +1059,12 @@ const yt = (e) => ({
1059
1059
  fallbackAxisSideDirection: f = "none",
1060
1060
  flipAlignment: h = !0,
1061
1061
  ...m
1062
- } = X(e, t), g = Y(o), v = Y(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (v || !h ? [ke(s)] : br(s));
1063
- !d && f !== "none" && x.push(...$r(s, h, f, y));
1064
- const $ = [s, ...x], b = await _e(t, m), w = [];
1062
+ } = X(e, t), g = Y(o), v = Y(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (v || !h ? [Fe(s)] : xr(s));
1063
+ !d && f !== "none" && x.push(...wr(s, h, f, y));
1064
+ const $ = [s, ...x], b = await we(t, m), w = [];
1065
1065
  let O = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1066
1066
  if (l && w.push(b[g]), u) {
1067
- const E = yr(o, r, y);
1067
+ const E = br(o, r, y);
1068
1068
  w.push(b[E[0]], b[E[1]]);
1069
1069
  }
1070
1070
  if (O = [...O, {
@@ -1107,7 +1107,7 @@ const yt = (e) => ({
1107
1107
  }
1108
1108
  };
1109
1109
  };
1110
- function bt(e, t) {
1110
+ function yt(e, t) {
1111
1111
  return {
1112
1112
  top: e.top - t.height,
1113
1113
  right: e.right - t.width,
@@ -1115,10 +1115,10 @@ function bt(e, t) {
1115
1115
  left: e.left - t.width
1116
1116
  };
1117
1117
  }
1118
- function xt(e) {
1119
- return mr.some((t) => e[t] >= 0);
1118
+ function bt(e) {
1119
+ return gr.some((t) => e[t] >= 0);
1120
1120
  }
1121
- const Ar = function(e) {
1121
+ const Or = function(e) {
1122
1122
  return e === void 0 && (e = {}), {
1123
1123
  name: "hide",
1124
1124
  options: e,
@@ -1131,26 +1131,26 @@ const Ar = function(e) {
1131
1131
  } = X(e, t);
1132
1132
  switch (o) {
1133
1133
  case "referenceHidden": {
1134
- const r = await _e(t, {
1134
+ const r = await we(t, {
1135
1135
  ...i,
1136
1136
  elementContext: "reference"
1137
- }), s = bt(r, n.reference);
1137
+ }), s = yt(r, n.reference);
1138
1138
  return {
1139
1139
  data: {
1140
1140
  referenceHiddenOffsets: s,
1141
- referenceHidden: xt(s)
1141
+ referenceHidden: bt(s)
1142
1142
  }
1143
1143
  };
1144
1144
  }
1145
1145
  case "escaped": {
1146
- const r = await _e(t, {
1146
+ const r = await we(t, {
1147
1147
  ...i,
1148
1148
  altBoundary: !0
1149
- }), s = bt(r, n.floating);
1149
+ }), s = yt(r, n.floating);
1150
1150
  return {
1151
1151
  data: {
1152
1152
  escapedOffsets: s,
1153
- escaped: xt(s)
1153
+ escaped: bt(s)
1154
1154
  }
1155
1155
  };
1156
1156
  }
@@ -1160,12 +1160,12 @@ const Ar = function(e) {
1160
1160
  }
1161
1161
  };
1162
1162
  };
1163
- async function Or(e, t) {
1163
+ async function Cr(e, t) {
1164
1164
  const {
1165
1165
  placement: n,
1166
1166
  platform: o,
1167
1167
  elements: i
1168
- } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), a = me(n), c = ge(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = X(t, e);
1168
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Y(n), a = he(n), c = me(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = X(t, e);
1169
1169
  let {
1170
1170
  mainAxis: p,
1171
1171
  crossAxis: f,
@@ -1188,7 +1188,7 @@ async function Or(e, t) {
1188
1188
  y: f * u
1189
1189
  };
1190
1190
  }
1191
- const Cr = function(e) {
1191
+ const Er = function(e) {
1192
1192
  return e === void 0 && (e = 0), {
1193
1193
  name: "offset",
1194
1194
  options: e,
@@ -1196,7 +1196,7 @@ const Cr = function(e) {
1196
1196
  const {
1197
1197
  x: n,
1198
1198
  y: o
1199
- } = t, i = await Or(t, e);
1199
+ } = t, i = await Cr(t, e);
1200
1200
  return {
1201
1201
  x: n + i.x,
1202
1202
  y: o + i.y,
@@ -1204,7 +1204,7 @@ const Cr = function(e) {
1204
1204
  };
1205
1205
  }
1206
1206
  };
1207
- }, Er = function(e) {
1207
+ }, Tr = function(e) {
1208
1208
  return e === void 0 && (e = {}), {
1209
1209
  name: "shift",
1210
1210
  options: e,
@@ -1232,15 +1232,15 @@ const Cr = function(e) {
1232
1232
  } = X(e, t), l = {
1233
1233
  x: n,
1234
1234
  y: o
1235
- }, u = await _e(t, c), d = ge(Y(i)), p = Qe(d);
1235
+ }, u = await we(t, c), d = me(Y(i)), p = Je(d);
1236
1236
  let f = l[p], h = l[d];
1237
1237
  if (r) {
1238
1238
  const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[g], x = f - u[v];
1239
- f = qe(y, f, x);
1239
+ f = Ye(y, f, x);
1240
1240
  }
1241
1241
  if (s) {
1242
1242
  const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[g], x = h - u[v];
1243
- h = qe(y, h, x);
1243
+ h = Ye(y, h, x);
1244
1244
  }
1245
1245
  const m = a.fn({
1246
1246
  ...t,
@@ -1256,7 +1256,7 @@ const Cr = function(e) {
1256
1256
  };
1257
1257
  }
1258
1258
  };
1259
- }, Tr = function(e) {
1259
+ }, Rr = function(e) {
1260
1260
  return e === void 0 && (e = {}), {
1261
1261
  options: e,
1262
1262
  fn(t) {
@@ -1273,7 +1273,7 @@ const Cr = function(e) {
1273
1273
  } = X(e, t), u = {
1274
1274
  x: n,
1275
1275
  y: o
1276
- }, d = ge(i), p = Qe(d);
1276
+ }, d = me(i), p = Je(d);
1277
1277
  let f = u[p], h = u[d];
1278
1278
  const m = X(a, t), g = typeof m == "number" ? {
1279
1279
  mainAxis: m,
@@ -1298,7 +1298,7 @@ const Cr = function(e) {
1298
1298
  };
1299
1299
  }
1300
1300
  };
1301
- }, Rr = function(e) {
1301
+ }, Sr = function(e) {
1302
1302
  return e === void 0 && (e = {}), {
1303
1303
  name: "size",
1304
1304
  options: e,
@@ -1312,7 +1312,7 @@ const Cr = function(e) {
1312
1312
  apply: s = () => {
1313
1313
  },
1314
1314
  ...a
1315
- } = X(e, t), c = await _e(t, a), l = Y(n), u = me(n), d = ge(n) === "y", {
1315
+ } = X(e, t), c = await we(t, a), l = Y(n), u = he(n), d = me(n) === "y", {
1316
1316
  width: p,
1317
1317
  height: f
1318
1318
  } = o.floating;
@@ -1346,7 +1346,7 @@ const Cr = function(e) {
1346
1346
  };
1347
1347
  };
1348
1348
  function ne(e) {
1349
- return Wt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1349
+ return zt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1350
1350
  }
1351
1351
  function z(e) {
1352
1352
  var t;
@@ -1354,9 +1354,9 @@ function z(e) {
1354
1354
  }
1355
1355
  function K(e) {
1356
1356
  var t;
1357
- return (t = (Wt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1357
+ return (t = (zt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1358
1358
  }
1359
- function Wt(e) {
1359
+ function zt(e) {
1360
1360
  return e instanceof Node || e instanceof z(e).Node;
1361
1361
  }
1362
1362
  function q(e) {
@@ -1365,10 +1365,10 @@ function q(e) {
1365
1365
  function V(e) {
1366
1366
  return e instanceof HTMLElement || e instanceof z(e).HTMLElement;
1367
1367
  }
1368
- function $t(e) {
1368
+ function xt(e) {
1369
1369
  return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof z(e).ShadowRoot;
1370
1370
  }
1371
- function Oe(e) {
1371
+ function Ae(e) {
1372
1372
  const {
1373
1373
  overflow: t,
1374
1374
  overflowX: n,
@@ -1377,32 +1377,32 @@ function Oe(e) {
1377
1377
  } = U(e);
1378
1378
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1379
1379
  }
1380
- function Sr(e) {
1380
+ function Dr(e) {
1381
1381
  return ["table", "td", "th"].includes(ne(e));
1382
1382
  }
1383
- function nt(e) {
1384
- const t = rt(), n = U(e);
1383
+ function tt(e) {
1384
+ const t = nt(), n = U(e);
1385
1385
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1386
1386
  }
1387
- function Dr(e) {
1388
- let t = fe(e);
1389
- for (; V(t) && !je(t); ) {
1390
- if (nt(t))
1387
+ function Nr(e) {
1388
+ let t = de(e);
1389
+ for (; V(t) && !Be(t); ) {
1390
+ if (tt(t))
1391
1391
  return t;
1392
- t = fe(t);
1392
+ t = de(t);
1393
1393
  }
1394
1394
  return null;
1395
1395
  }
1396
- function rt() {
1396
+ function nt() {
1397
1397
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1398
1398
  }
1399
- function je(e) {
1399
+ function Be(e) {
1400
1400
  return ["html", "body", "#document"].includes(ne(e));
1401
1401
  }
1402
1402
  function U(e) {
1403
1403
  return z(e).getComputedStyle(e);
1404
1404
  }
1405
- function ze(e) {
1405
+ function je(e) {
1406
1406
  return q(e) ? {
1407
1407
  scrollLeft: e.scrollLeft,
1408
1408
  scrollTop: e.scrollTop
@@ -1411,90 +1411,90 @@ function ze(e) {
1411
1411
  scrollTop: e.pageYOffset
1412
1412
  };
1413
1413
  }
1414
- function fe(e) {
1414
+ function de(e) {
1415
1415
  if (ne(e) === "html")
1416
1416
  return e;
1417
1417
  const t = (
1418
1418
  // Step into the shadow DOM of the parent of a slotted node.
1419
1419
  e.assignedSlot || // DOM Element detected.
1420
1420
  e.parentNode || // ShadowRoot detected.
1421
- $t(e) && e.host || // Fallback.
1421
+ xt(e) && e.host || // Fallback.
1422
1422
  K(e)
1423
1423
  );
1424
- return $t(t) ? t.host : t;
1424
+ return xt(t) ? t.host : t;
1425
1425
  }
1426
- function Ut(e) {
1427
- const t = fe(e);
1428
- return je(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && Oe(t) ? t : Ut(t);
1426
+ function Wt(e) {
1427
+ const t = de(e);
1428
+ return Be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && Ae(t) ? t : Wt(t);
1429
1429
  }
1430
- function Pe(e, t) {
1430
+ function _e(e, t) {
1431
1431
  var n;
1432
1432
  t === void 0 && (t = []);
1433
- const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = z(o);
1434
- return i ? t.concat(r, r.visualViewport || [], Oe(o) ? o : [], r.frameElement ? Pe(r.frameElement) : []) : t.concat(o, Pe(o));
1433
+ const o = Wt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = z(o);
1434
+ return i ? t.concat(r, r.visualViewport || [], Ae(o) ? o : [], r.frameElement ? _e(r.frameElement) : []) : t.concat(o, _e(o));
1435
1435
  }
1436
- function Vt(e) {
1436
+ function Ut(e) {
1437
1437
  const t = U(e);
1438
1438
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1439
- const i = V(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
1439
+ const i = V(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Ie(n) !== r || Ie(o) !== s;
1440
1440
  return a && (n = r, o = s), {
1441
1441
  width: n,
1442
1442
  height: o,
1443
1443
  $: a
1444
1444
  };
1445
1445
  }
1446
- function ot(e) {
1446
+ function rt(e) {
1447
1447
  return q(e) ? e : e.contextElement;
1448
1448
  }
1449
- function ue(e) {
1450
- const t = ot(e);
1449
+ function le(e) {
1450
+ const t = rt(e);
1451
1451
  if (!V(t))
1452
1452
  return te(1);
1453
1453
  const n = t.getBoundingClientRect(), {
1454
1454
  width: o,
1455
1455
  height: i,
1456
1456
  $: r
1457
- } = Vt(t);
1458
- let s = (r ? Fe(n.width) : n.width) / o, a = (r ? Fe(n.height) : n.height) / i;
1457
+ } = Ut(t);
1458
+ let s = (r ? Ie(n.width) : n.width) / o, a = (r ? Ie(n.height) : n.height) / i;
1459
1459
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1460
1460
  x: s,
1461
1461
  y: a
1462
1462
  };
1463
1463
  }
1464
- const Nr = /* @__PURE__ */ te(0);
1465
- function Gt(e) {
1464
+ const Lr = /* @__PURE__ */ te(0);
1465
+ function Vt(e) {
1466
1466
  const t = z(e);
1467
- return !rt() || !t.visualViewport ? Nr : {
1467
+ return !nt() || !t.visualViewport ? Lr : {
1468
1468
  x: t.visualViewport.offsetLeft,
1469
1469
  y: t.visualViewport.offsetTop
1470
1470
  };
1471
1471
  }
1472
- function Lr(e, t, n) {
1472
+ function Mr(e, t, n) {
1473
1473
  return t === void 0 && (t = !1), !n || t && n !== z(e) ? !1 : t;
1474
1474
  }
1475
- function ae(e, t, n, o) {
1475
+ function se(e, t, n, o) {
1476
1476
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1477
- const i = e.getBoundingClientRect(), r = ot(e);
1477
+ const i = e.getBoundingClientRect(), r = rt(e);
1478
1478
  let s = te(1);
1479
- t && (o ? q(o) && (s = ue(o)) : s = ue(e));
1480
- const a = Lr(r, n, o) ? Gt(r) : te(0);
1479
+ t && (o ? q(o) && (s = le(o)) : s = le(e));
1480
+ const a = Mr(r, n, o) ? Vt(r) : te(0);
1481
1481
  let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
1482
1482
  if (r) {
1483
1483
  const p = z(r), f = o && q(o) ? z(o) : o;
1484
1484
  let h = p.frameElement;
1485
1485
  for (; h && o && f !== p; ) {
1486
- const m = ue(h), g = h.getBoundingClientRect(), v = U(h), y = g.left + (h.clientLeft + parseFloat(v.paddingLeft)) * m.x, x = g.top + (h.clientTop + parseFloat(v.paddingTop)) * m.y;
1486
+ const m = le(h), g = h.getBoundingClientRect(), v = U(h), y = g.left + (h.clientLeft + parseFloat(v.paddingLeft)) * m.x, x = g.top + (h.clientTop + parseFloat(v.paddingTop)) * m.y;
1487
1487
  c *= m.x, l *= m.y, u *= m.x, d *= m.y, c += y, l += x, h = z(h).frameElement;
1488
1488
  }
1489
1489
  }
1490
- return He({
1490
+ return ke({
1491
1491
  width: u,
1492
1492
  height: d,
1493
1493
  x: c,
1494
1494
  y: l
1495
1495
  });
1496
1496
  }
1497
- function Mr(e) {
1497
+ function Ir(e) {
1498
1498
  let {
1499
1499
  rect: t,
1500
1500
  offsetParent: n,
@@ -1508,9 +1508,9 @@ function Mr(e) {
1508
1508
  scrollTop: 0
1509
1509
  }, a = te(1);
1510
1510
  const c = te(0);
1511
- if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Oe(r)) && (s = ze(n)), V(n))) {
1512
- const l = ae(n);
1513
- a = ue(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1511
+ if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Ae(r)) && (s = je(n)), V(n))) {
1512
+ const l = se(n);
1513
+ a = le(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1514
1514
  }
1515
1515
  return {
1516
1516
  width: t.width * a.x,
@@ -1519,15 +1519,15 @@ function Mr(e) {
1519
1519
  y: t.y * a.y - s.scrollTop * a.y + c.y
1520
1520
  };
1521
1521
  }
1522
- function Ir(e) {
1522
+ function Fr(e) {
1523
1523
  return Array.from(e.getClientRects());
1524
1524
  }
1525
- function Xt(e) {
1526
- return ae(K(e)).left + ze(e).scrollLeft;
1525
+ function Gt(e) {
1526
+ return se(K(e)).left + je(e).scrollLeft;
1527
1527
  }
1528
- function Fr(e) {
1529
- const t = K(e), n = ze(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1530
- let s = -n.scrollLeft + Xt(e);
1528
+ function kr(e) {
1529
+ const t = K(e), n = je(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1530
+ let s = -n.scrollLeft + Gt(e);
1531
1531
  const a = -n.scrollTop;
1532
1532
  return U(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1533
1533
  width: i,
@@ -1536,12 +1536,12 @@ function Fr(e) {
1536
1536
  y: a
1537
1537
  };
1538
1538
  }
1539
- function kr(e, t) {
1539
+ function Hr(e, t) {
1540
1540
  const n = z(e), o = K(e), i = n.visualViewport;
1541
1541
  let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
1542
1542
  if (i) {
1543
1543
  r = i.width, s = i.height;
1544
- const l = rt();
1544
+ const l = nt();
1545
1545
  (!l || l && t === "fixed") && (a = i.offsetLeft, c = i.offsetTop);
1546
1546
  }
1547
1547
  return {
@@ -1551,8 +1551,8 @@ function kr(e, t) {
1551
1551
  y: c
1552
1552
  };
1553
1553
  }
1554
- function Hr(e, t) {
1555
- const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = V(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1554
+ function Br(e, t) {
1555
+ const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = V(e) ? le(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1556
1556
  return {
1557
1557
  width: s,
1558
1558
  height: a,
@@ -1560,52 +1560,52 @@ function Hr(e, t) {
1560
1560
  y: l
1561
1561
  };
1562
1562
  }
1563
- function wt(e, t, n) {
1563
+ function $t(e, t, n) {
1564
1564
  let o;
1565
1565
  if (t === "viewport")
1566
- o = kr(e, n);
1566
+ o = Hr(e, n);
1567
1567
  else if (t === "document")
1568
- o = Fr(K(e));
1568
+ o = kr(K(e));
1569
1569
  else if (q(t))
1570
- o = Hr(t, n);
1570
+ o = Br(t, n);
1571
1571
  else {
1572
- const i = Gt(e);
1572
+ const i = Vt(e);
1573
1573
  o = {
1574
1574
  ...t,
1575
1575
  x: t.x - i.x,
1576
1576
  y: t.y - i.y
1577
1577
  };
1578
1578
  }
1579
- return He(o);
1579
+ return ke(o);
1580
1580
  }
1581
- function Yt(e, t) {
1582
- const n = fe(e);
1583
- return n === t || !q(n) || je(n) ? !1 : U(n).position === "fixed" || Yt(n, t);
1581
+ function Xt(e, t) {
1582
+ const n = de(e);
1583
+ return n === t || !q(n) || Be(n) ? !1 : U(n).position === "fixed" || Xt(n, t);
1584
1584
  }
1585
- function Br(e, t) {
1585
+ function jr(e, t) {
1586
1586
  const n = t.get(e);
1587
1587
  if (n)
1588
1588
  return n;
1589
- let o = Pe(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
1589
+ let o = _e(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
1590
1590
  const r = U(e).position === "fixed";
1591
- let s = r ? fe(e) : e;
1592
- for (; q(s) && !je(s); ) {
1593
- const a = U(s), c = nt(s);
1594
- !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Oe(s) && !c && Yt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = fe(s);
1591
+ let s = r ? de(e) : e;
1592
+ for (; q(s) && !Be(s); ) {
1593
+ const a = U(s), c = tt(s);
1594
+ !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ae(s) && !c && Xt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = de(s);
1595
1595
  }
1596
1596
  return t.set(e, o), o;
1597
1597
  }
1598
- function jr(e) {
1598
+ function zr(e) {
1599
1599
  let {
1600
1600
  element: t,
1601
1601
  boundary: n,
1602
1602
  rootBoundary: o,
1603
1603
  strategy: i
1604
1604
  } = e;
1605
- const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
1606
- const d = wt(t, u, i);
1605
+ const s = [...n === "clippingAncestors" ? jr(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
1606
+ const d = $t(t, u, i);
1607
1607
  return l.top = B(d.top, l.top), l.right = ee(d.right, l.right), l.bottom = ee(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
1608
- }, wt(t, a, i));
1608
+ }, $t(t, a, i));
1609
1609
  return {
1610
1610
  width: c.right - c.left,
1611
1611
  height: c.bottom - c.top,
@@ -1613,22 +1613,22 @@ function jr(e) {
1613
1613
  y: c.top
1614
1614
  };
1615
1615
  }
1616
- function zr(e) {
1617
- return Vt(e);
1616
+ function Wr(e) {
1617
+ return Ut(e);
1618
1618
  }
1619
- function Wr(e, t, n) {
1620
- const o = V(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
1619
+ function Ur(e, t, n) {
1620
+ const o = V(t), i = K(t), r = n === "fixed", s = se(e, !0, r, t);
1621
1621
  let a = {
1622
1622
  scrollLeft: 0,
1623
1623
  scrollTop: 0
1624
1624
  };
1625
1625
  const c = te(0);
1626
1626
  if (o || !o && !r)
1627
- if ((ne(t) !== "body" || Oe(i)) && (a = ze(t)), o) {
1628
- const l = ae(t, !0, r, t);
1627
+ if ((ne(t) !== "body" || Ae(i)) && (a = je(t)), o) {
1628
+ const l = se(t, !0, r, t);
1629
1629
  c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
1630
1630
  } else
1631
- i && (c.x = Xt(i));
1631
+ i && (c.x = Gt(i));
1632
1632
  return {
1633
1633
  x: s.left + a.scrollLeft - c.x,
1634
1634
  y: s.top + a.scrollTop - c.y,
@@ -1636,27 +1636,27 @@ function Wr(e, t, n) {
1636
1636
  height: s.height
1637
1637
  };
1638
1638
  }
1639
- function _t(e, t) {
1639
+ function wt(e, t) {
1640
1640
  return !V(e) || U(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1641
1641
  }
1642
- function qt(e, t) {
1642
+ function Yt(e, t) {
1643
1643
  const n = z(e);
1644
1644
  if (!V(e))
1645
1645
  return n;
1646
- let o = _t(e, t);
1647
- for (; o && Sr(o) && U(o).position === "static"; )
1648
- o = _t(o, t);
1649
- return o && (ne(o) === "html" || ne(o) === "body" && U(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
1646
+ let o = wt(e, t);
1647
+ for (; o && Dr(o) && U(o).position === "static"; )
1648
+ o = wt(o, t);
1649
+ return o && (ne(o) === "html" || ne(o) === "body" && U(o).position === "static" && !tt(o)) ? n : o || Nr(e) || n;
1650
1650
  }
1651
- const Ur = async function(e) {
1651
+ const Vr = async function(e) {
1652
1652
  let {
1653
1653
  reference: t,
1654
1654
  floating: n,
1655
1655
  strategy: o
1656
1656
  } = e;
1657
- const i = this.getOffsetParent || qt, r = this.getDimensions;
1657
+ const i = this.getOffsetParent || Yt, r = this.getDimensions;
1658
1658
  return {
1659
- reference: Wr(t, await i(n), o),
1659
+ reference: Ur(t, await i(n), o),
1660
1660
  floating: {
1661
1661
  x: 0,
1662
1662
  y: 0,
@@ -1664,22 +1664,22 @@ const Ur = async function(e) {
1664
1664
  }
1665
1665
  };
1666
1666
  };
1667
- function Vr(e) {
1667
+ function Gr(e) {
1668
1668
  return U(e).direction === "rtl";
1669
1669
  }
1670
- const Gr = {
1671
- convertOffsetParentRelativeRectToViewportRelativeRect: Mr,
1670
+ const Xr = {
1671
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ir,
1672
1672
  getDocumentElement: K,
1673
- getClippingRect: jr,
1674
- getOffsetParent: qt,
1675
- getElementRects: Ur,
1676
- getClientRects: Ir,
1677
- getDimensions: zr,
1678
- getScale: ue,
1673
+ getClippingRect: zr,
1674
+ getOffsetParent: Yt,
1675
+ getElementRects: Vr,
1676
+ getClientRects: Fr,
1677
+ getDimensions: Wr,
1678
+ getScale: le,
1679
1679
  isElement: q,
1680
- isRTL: Vr
1680
+ isRTL: Gr
1681
1681
  };
1682
- function Xr(e, t) {
1682
+ function Yr(e, t) {
1683
1683
  let n = null, o;
1684
1684
  const i = K(e);
1685
1685
  function r() {
@@ -1695,7 +1695,7 @@ function Xr(e, t) {
1695
1695
  } = e.getBoundingClientRect();
1696
1696
  if (a || t(), !d || !p)
1697
1697
  return;
1698
- const f = De(u), h = De(i.clientWidth - (l + d)), m = De(i.clientHeight - (u + p)), g = De(l), y = {
1698
+ const f = Se(u), h = Se(i.clientWidth - (l + d)), m = Se(i.clientHeight - (u + p)), g = Se(l), y = {
1699
1699
  rootMargin: -f + "px " + -h + "px " + -m + "px " + -g + "px",
1700
1700
  threshold: B(0, ee(1, c)) || 1
1701
1701
  };
@@ -1724,7 +1724,7 @@ function Xr(e, t) {
1724
1724
  }
1725
1725
  return s(!0), r;
1726
1726
  }
1727
- function Yr(e, t, n, o) {
1727
+ function qr(e, t, n, o) {
1728
1728
  o === void 0 && (o = {});
1729
1729
  const {
1730
1730
  ancestorScroll: i = !0,
@@ -1732,13 +1732,13 @@ function Yr(e, t, n, o) {
1732
1732
  elementResize: s = typeof ResizeObserver == "function",
1733
1733
  layoutShift: a = typeof IntersectionObserver == "function",
1734
1734
  animationFrame: c = !1
1735
- } = o, l = ot(e), u = i || r ? [...l ? Pe(l) : [], ...Pe(t)] : [];
1735
+ } = o, l = rt(e), u = i || r ? [...l ? _e(l) : [], ..._e(t)] : [];
1736
1736
  u.forEach((v) => {
1737
1737
  i && v.addEventListener("scroll", n, {
1738
1738
  passive: !0
1739
1739
  }), r && v.addEventListener("resize", n);
1740
1740
  });
1741
- const d = l && a ? Xr(l, n) : null;
1741
+ const d = l && a ? Yr(l, n) : null;
1742
1742
  let p = -1, f = null;
1743
1743
  s && (f = new ResizeObserver((v) => {
1744
1744
  let [y] = v;
@@ -1746,10 +1746,10 @@ function Yr(e, t, n, o) {
1746
1746
  f && f.observe(t);
1747
1747
  })), n();
1748
1748
  }), l && !c && f.observe(l), f.observe(t));
1749
- let h, m = c ? ae(e) : null;
1749
+ let h, m = c ? se(e) : null;
1750
1750
  c && g();
1751
1751
  function g() {
1752
- const v = ae(e);
1752
+ const v = se(e);
1753
1753
  m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), m = v, h = requestAnimationFrame(g);
1754
1754
  }
1755
1755
  return n(), () => {
@@ -1758,19 +1758,19 @@ function Yr(e, t, n, o) {
1758
1758
  }), d && d(), f && f.disconnect(), f = null, c && cancelAnimationFrame(h);
1759
1759
  };
1760
1760
  }
1761
- const qr = (e, t, n) => {
1761
+ const Kr = (e, t, n) => {
1762
1762
  const o = /* @__PURE__ */ new Map(), i = {
1763
- platform: Gr,
1763
+ platform: Xr,
1764
1764
  ...n
1765
1765
  }, r = {
1766
1766
  ...i.platform,
1767
1767
  _c: o
1768
1768
  };
1769
- return _r(e, t, {
1769
+ return Pr(e, t, {
1770
1770
  ...i,
1771
1771
  platform: r
1772
1772
  });
1773
- }, Kr = (e) => {
1773
+ }, Zr = (e) => {
1774
1774
  function t(n) {
1775
1775
  return {}.hasOwnProperty.call(n, "current");
1776
1776
  }
@@ -1782,18 +1782,18 @@ const qr = (e, t, n) => {
1782
1782
  element: o,
1783
1783
  padding: i
1784
1784
  } = typeof e == "function" ? e(n) : e;
1785
- return o && t(o) ? o.current != null ? yt({
1785
+ return o && t(o) ? o.current != null ? vt({
1786
1786
  element: o.current,
1787
1787
  padding: i
1788
- }).fn(n) : {} : o ? yt({
1788
+ }).fn(n) : {} : o ? vt({
1789
1789
  element: o,
1790
1790
  padding: i
1791
1791
  }).fn(n) : {};
1792
1792
  }
1793
1793
  };
1794
1794
  };
1795
- var Me = typeof document < "u" ? Et : R;
1796
- function Be(e, t) {
1795
+ var Le = typeof document < "u" ? Ct : R;
1796
+ function He(e, t) {
1797
1797
  if (e === t)
1798
1798
  return !0;
1799
1799
  if (typeof e != typeof t)
@@ -1806,7 +1806,7 @@ function Be(e, t) {
1806
1806
  if (n = e.length, n != t.length)
1807
1807
  return !1;
1808
1808
  for (o = n; o-- !== 0; )
1809
- if (!Be(e[o], t[o]))
1809
+ if (!He(e[o], t[o]))
1810
1810
  return !1;
1811
1811
  return !0;
1812
1812
  }
@@ -1817,27 +1817,27 @@ function Be(e, t) {
1817
1817
  return !1;
1818
1818
  for (o = n; o-- !== 0; ) {
1819
1819
  const r = i[o];
1820
- if (!(r === "_owner" && e.$$typeof) && !Be(e[r], t[r]))
1820
+ if (!(r === "_owner" && e.$$typeof) && !He(e[r], t[r]))
1821
1821
  return !1;
1822
1822
  }
1823
1823
  return !0;
1824
1824
  }
1825
1825
  return e !== e && t !== t;
1826
1826
  }
1827
- function Kt(e) {
1827
+ function qt(e) {
1828
1828
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1829
1829
  }
1830
- function Pt(e, t) {
1831
- const n = Kt(e);
1830
+ function _t(e, t) {
1831
+ const n = qt(e);
1832
1832
  return Math.round(t * n) / n;
1833
1833
  }
1834
- function At(e) {
1834
+ function Pt(e) {
1835
1835
  const t = N.useRef(e);
1836
- return Me(() => {
1836
+ return Le(() => {
1837
1837
  t.current = e;
1838
1838
  }), t;
1839
1839
  }
1840
- function Zr(e) {
1840
+ function Jr(e) {
1841
1841
  e === void 0 && (e = {});
1842
1842
  const {
1843
1843
  placement: t = "bottom",
@@ -1859,12 +1859,12 @@ function Zr(e) {
1859
1859
  middlewareData: {},
1860
1860
  isPositioned: !1
1861
1861
  }), [p, f] = N.useState(o);
1862
- Be(p, o) || f(o);
1862
+ He(p, o) || f(o);
1863
1863
  const [h, m] = N.useState(null), [g, v] = N.useState(null), y = N.useCallback((A) => {
1864
1864
  A != w.current && (w.current = A, m(A));
1865
1865
  }, [m]), x = N.useCallback((A) => {
1866
1866
  A !== O.current && (O.current = A, v(A));
1867
- }, [v]), $ = r || h, b = s || g, w = N.useRef(null), O = N.useRef(null), P = N.useRef(u), T = At(c), F = At(i), E = N.useCallback(() => {
1867
+ }, [v]), $ = r || h, b = s || g, w = N.useRef(null), O = N.useRef(null), P = N.useRef(u), T = Pt(c), F = Pt(i), E = N.useCallback(() => {
1868
1868
  if (!w.current || !O.current)
1869
1869
  return;
1870
1870
  const A = {
@@ -1872,26 +1872,26 @@ function Zr(e) {
1872
1872
  strategy: n,
1873
1873
  middleware: p
1874
1874
  };
1875
- F.current && (A.platform = F.current), qr(w.current, O.current, A).then((Z) => {
1875
+ F.current && (A.platform = F.current), Kr(w.current, O.current, A).then((Z) => {
1876
1876
  const J = {
1877
1877
  ...Z,
1878
1878
  isPositioned: !0
1879
1879
  };
1880
- H.current && !Be(P.current, J) && (P.current = J, wn.flushSync(() => {
1880
+ H.current && !He(P.current, J) && (P.current = J, $n.flushSync(() => {
1881
1881
  d(J);
1882
1882
  }));
1883
1883
  });
1884
1884
  }, [p, t, n, F]);
1885
- Me(() => {
1885
+ Le(() => {
1886
1886
  l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((A) => ({
1887
1887
  ...A,
1888
1888
  isPositioned: !1
1889
1889
  })));
1890
1890
  }, [l]);
1891
1891
  const H = N.useRef(!1);
1892
- Me(() => (H.current = !0, () => {
1892
+ Le(() => (H.current = !0, () => {
1893
1893
  H.current = !1;
1894
- }), []), Me(() => {
1894
+ }), []), Le(() => {
1895
1895
  if ($ && (w.current = $), b && (O.current = b), $ && b) {
1896
1896
  if (T.current)
1897
1897
  return T.current($, b, E);
@@ -1914,11 +1914,11 @@ function Zr(e) {
1914
1914
  };
1915
1915
  if (!C.floating)
1916
1916
  return A;
1917
- const Z = Pt(C.floating, u.x), J = Pt(C.floating, u.y);
1917
+ const Z = _t(C.floating, u.x), J = _t(C.floating, u.y);
1918
1918
  return a ? {
1919
1919
  ...A,
1920
1920
  transform: "translate(" + Z + "px, " + J + "px)",
1921
- ...Kt(C.floating) >= 1.5 && {
1921
+ ...qt(C.floating) >= 1.5 && {
1922
1922
  willChange: "transform"
1923
1923
  }
1924
1924
  } : {
@@ -1935,9 +1935,9 @@ function Zr(e) {
1935
1935
  floatingStyles: W
1936
1936
  }), [u, E, D, C, W]);
1937
1937
  }
1938
- const Jr = /* @__PURE__ */ M((e, t) => {
1938
+ const Qr = /* @__PURE__ */ M((e, t) => {
1939
1939
  const { children: n, width: o = 10, height: i = 5, ...r } = e;
1940
- return /* @__PURE__ */ _(ce.svg, S({}, r, {
1940
+ return /* @__PURE__ */ _(ae.svg, S({}, r, {
1941
1941
  ref: t,
1942
1942
  width: o,
1943
1943
  height: i,
@@ -1946,10 +1946,10 @@ const Jr = /* @__PURE__ */ M((e, t) => {
1946
1946
  }), e.asChild ? n : /* @__PURE__ */ _("polygon", {
1947
1947
  points: "0,0 30,0 15,10"
1948
1948
  }));
1949
- }), Qr = Jr;
1950
- function eo(e) {
1949
+ }), eo = Qr;
1950
+ function to(e) {
1951
1951
  const [t, n] = j(void 0);
1952
- return de(() => {
1952
+ return ue(() => {
1953
1953
  if (e) {
1954
1954
  n({
1955
1955
  width: e.offsetWidth,
@@ -1979,137 +1979,137 @@ function eo(e) {
1979
1979
  e
1980
1980
  ]), t;
1981
1981
  }
1982
- const Zt = "Popper", [Jt, Qt] = kt(Zt), [to, en] = Jt(Zt), no = (e) => {
1982
+ const Kt = "Popper", [Zt, Jt] = Ft(Kt), [no, Qt] = Zt(Kt), ro = (e) => {
1983
1983
  const { __scopePopper: t, children: n } = e, [o, i] = j(null);
1984
- return /* @__PURE__ */ _(to, {
1984
+ return /* @__PURE__ */ _(no, {
1985
1985
  scope: t,
1986
1986
  anchor: o,
1987
1987
  onAnchorChange: i
1988
1988
  }, n);
1989
- }, ro = "PopperAnchor", oo = /* @__PURE__ */ M((e, t) => {
1990
- const { __scopePopper: n, virtualRef: o, ...i } = e, r = en(ro, n), s = L(null), a = pe(t, s);
1989
+ }, oo = "PopperAnchor", io = /* @__PURE__ */ M((e, t) => {
1990
+ const { __scopePopper: n, virtualRef: o, ...i } = e, r = Qt(oo, n), s = L(null), a = fe(t, s);
1991
1991
  return R(() => {
1992
1992
  r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1993
- }), o ? null : /* @__PURE__ */ _(ce.div, S({}, i, {
1993
+ }), o ? null : /* @__PURE__ */ _(ae.div, S({}, i, {
1994
1994
  ref: a
1995
1995
  }));
1996
- }), tn = "PopperContent", [io, so] = Jt(tn), ao = /* @__PURE__ */ M((e, t) => {
1996
+ }), en = "PopperContent", [so, ao] = Zt(en), co = /* @__PURE__ */ M((e, t) => {
1997
1997
  var n, o, i, r, s, a, c, l;
1998
- const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...O } = e, P = en(tn, u), [T, F] = j(null), E = pe(
1998
+ const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...O } = e, P = Qt(en, u), [T, F] = j(null), E = fe(
1999
1999
  t,
2000
- (ve) => F(ve)
2001
- ), [H, D] = j(null), C = eo(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, A = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, Z = d + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2000
+ (ge) => F(ge)
2001
+ ), [H, D] = j(null), C = to(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, A = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, Z = d + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2002
2002
  top: 0,
2003
2003
  right: 0,
2004
2004
  bottom: 0,
2005
2005
  left: 0,
2006
2006
  ...y
2007
- }, ct = Array.isArray(v) ? v : [
2007
+ }, at = Array.isArray(v) ? v : [
2008
2008
  v
2009
- ], an = ct.length > 0, Ee = {
2009
+ ], sn = at.length > 0, Ce = {
2010
2010
  padding: J,
2011
- boundary: ct.filter(fo),
2011
+ boundary: at.filter(po),
2012
2012
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2013
- altBoundary: an
2014
- }, { refs: cn, floatingStyles: lt, placement: ln, isPositioned: Te, middlewareData: le } = Zr({
2013
+ altBoundary: sn
2014
+ }, { refs: an, floatingStyles: ct, placement: cn, isPositioned: Ee, middlewareData: ce } = Jr({
2015
2015
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2016
2016
  strategy: "fixed",
2017
2017
  placement: Z,
2018
- whileElementsMounted: (...ve) => Yr(...ve, {
2018
+ whileElementsMounted: (...ge) => qr(...ge, {
2019
2019
  animationFrame: b === "always"
2020
2020
  }),
2021
2021
  elements: {
2022
2022
  reference: P.anchor
2023
2023
  },
2024
2024
  middleware: [
2025
- Cr({
2025
+ Er({
2026
2026
  mainAxis: p + A,
2027
2027
  alignmentAxis: h
2028
2028
  }),
2029
- g && Er({
2029
+ g && Tr({
2030
2030
  mainAxis: !0,
2031
2031
  crossAxis: !1,
2032
- limiter: x === "partial" ? Tr() : void 0,
2033
- ...Ee
2032
+ limiter: x === "partial" ? Rr() : void 0,
2033
+ ...Ce
2034
2034
  }),
2035
- g && Pr({
2036
- ...Ee
2035
+ g && Ar({
2036
+ ...Ce
2037
2037
  }),
2038
- Rr({
2039
- ...Ee,
2040
- apply: ({ elements: ve, rects: dt, availableWidth: gn, availableHeight: vn }) => {
2041
- const { width: yn, height: bn } = dt.reference, Se = ve.floating.style;
2042
- Se.setProperty("--radix-popper-available-width", `${gn}px`), Se.setProperty("--radix-popper-available-height", `${vn}px`), Se.setProperty("--radix-popper-anchor-width", `${yn}px`), Se.setProperty("--radix-popper-anchor-height", `${bn}px`);
2038
+ Sr({
2039
+ ...Ce,
2040
+ apply: ({ elements: ge, rects: ut, availableWidth: mn, availableHeight: gn }) => {
2041
+ const { width: vn, height: yn } = ut.reference, Re = ge.floating.style;
2042
+ Re.setProperty("--radix-popper-available-width", `${mn}px`), Re.setProperty("--radix-popper-available-height", `${gn}px`), Re.setProperty("--radix-popper-anchor-width", `${vn}px`), Re.setProperty("--radix-popper-anchor-height", `${yn}px`);
2043
2043
  }
2044
2044
  }),
2045
- H && Kr({
2045
+ H && Zr({
2046
2046
  element: H,
2047
2047
  padding: m
2048
2048
  }),
2049
- po({
2049
+ ho({
2050
2050
  arrowWidth: W,
2051
2051
  arrowHeight: A
2052
2052
  }),
2053
- $ && Ar({
2053
+ $ && Or({
2054
2054
  strategy: "referenceHidden",
2055
- ...Ee
2055
+ ...Ce
2056
2056
  })
2057
2057
  ]
2058
- }), [ut, un] = nn(ln), Re = he(w);
2059
- de(() => {
2060
- Te && (Re == null || Re());
2058
+ }), [lt, ln] = tn(cn), Te = pe(w);
2059
+ ue(() => {
2060
+ Ee && (Te == null || Te());
2061
2061
  }, [
2062
- Te,
2063
- Re
2062
+ Ee,
2063
+ Te
2064
2064
  ]);
2065
- const dn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, fn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, pn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [hn, mn] = j();
2066
- return de(() => {
2067
- T && mn(window.getComputedStyle(T).zIndex);
2065
+ const un = (i = ce.arrow) === null || i === void 0 ? void 0 : i.x, dn = (r = ce.arrow) === null || r === void 0 ? void 0 : r.y, fn = ((s = ce.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [pn, hn] = j();
2066
+ return ue(() => {
2067
+ T && hn(window.getComputedStyle(T).zIndex);
2068
2068
  }, [
2069
2069
  T
2070
2070
  ]), /* @__PURE__ */ _("div", {
2071
- ref: cn.setFloating,
2071
+ ref: an.setFloating,
2072
2072
  "data-radix-popper-content-wrapper": "",
2073
2073
  style: {
2074
- ...lt,
2075
- transform: Te ? lt.transform : "translate(0, -200%)",
2074
+ ...ct,
2075
+ transform: Ee ? ct.transform : "translate(0, -200%)",
2076
2076
  // keep off the page when measuring
2077
2077
  minWidth: "max-content",
2078
- zIndex: hn,
2078
+ zIndex: pn,
2079
2079
  "--radix-popper-transform-origin": [
2080
- (a = le.transformOrigin) === null || a === void 0 ? void 0 : a.x,
2081
- (c = le.transformOrigin) === null || c === void 0 ? void 0 : c.y
2080
+ (a = ce.transformOrigin) === null || a === void 0 ? void 0 : a.x,
2081
+ (c = ce.transformOrigin) === null || c === void 0 ? void 0 : c.y
2082
2082
  ].join(" ")
2083
2083
  },
2084
2084
  dir: e.dir
2085
- }, /* @__PURE__ */ _(io, {
2085
+ }, /* @__PURE__ */ _(so, {
2086
2086
  scope: u,
2087
- placedSide: ut,
2087
+ placedSide: lt,
2088
2088
  onArrowChange: D,
2089
- arrowX: dn,
2090
- arrowY: fn,
2091
- shouldHideArrow: pn
2092
- }, /* @__PURE__ */ _(ce.div, S({
2093
- "data-side": ut,
2094
- "data-align": un
2089
+ arrowX: un,
2090
+ arrowY: dn,
2091
+ shouldHideArrow: fn
2092
+ }, /* @__PURE__ */ _(ae.div, S({
2093
+ "data-side": lt,
2094
+ "data-align": ln
2095
2095
  }, O, {
2096
2096
  ref: E,
2097
2097
  style: {
2098
2098
  ...O.style,
2099
2099
  // if the PopperContent hasn't been placed yet (not all measurements done)
2100
2100
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2101
- animation: Te ? void 0 : "none",
2101
+ animation: Ee ? void 0 : "none",
2102
2102
  // hide the content if using the hide middleware and should be hidden
2103
- opacity: (l = le.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
2103
+ opacity: (l = ce.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
2104
2104
  }
2105
2105
  }))));
2106
- }), co = "PopperArrow", lo = {
2106
+ }), lo = "PopperArrow", uo = {
2107
2107
  top: "bottom",
2108
2108
  right: "left",
2109
2109
  bottom: "top",
2110
2110
  left: "right"
2111
- }, uo = /* @__PURE__ */ M(function(t, n) {
2112
- const { __scopePopper: o, ...i } = t, r = so(co, o), s = lo[r.placedSide];
2111
+ }, fo = /* @__PURE__ */ M(function(t, n) {
2112
+ const { __scopePopper: o, ...i } = t, r = ao(lo, o), s = uo[r.placedSide];
2113
2113
  return (
2114
2114
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2115
2115
  // doesn't report size as we'd expect on SVG elements.
@@ -2135,7 +2135,7 @@ const Zt = "Popper", [Jt, Qt] = kt(Zt), [to, en] = Jt(Zt), no = (e) => {
2135
2135
  }[r.placedSide],
2136
2136
  visibility: r.shouldHideArrow ? "hidden" : void 0
2137
2137
  }
2138
- }, /* @__PURE__ */ _(Qr, S({}, i, {
2138
+ }, /* @__PURE__ */ _(eo, S({}, i, {
2139
2139
  ref: n,
2140
2140
  style: {
2141
2141
  ...i.style,
@@ -2145,15 +2145,15 @@ const Zt = "Popper", [Jt, Qt] = kt(Zt), [to, en] = Jt(Zt), no = (e) => {
2145
2145
  })))
2146
2146
  );
2147
2147
  });
2148
- function fo(e) {
2148
+ function po(e) {
2149
2149
  return e !== null;
2150
2150
  }
2151
- const po = (e) => ({
2151
+ const ho = (e) => ({
2152
2152
  name: "transformOrigin",
2153
2153
  options: e,
2154
2154
  fn(t) {
2155
2155
  var n, o, i, r, s;
2156
- const { placement: a, rects: c, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, m] = nn(a), g = {
2156
+ const { placement: a, rects: c, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, m] = tn(a), g = {
2157
2157
  start: "0%",
2158
2158
  center: "50%",
2159
2159
  end: "100%"
@@ -2167,37 +2167,37 @@ const po = (e) => ({
2167
2167
  };
2168
2168
  }
2169
2169
  });
2170
- function nn(e) {
2170
+ function tn(e) {
2171
2171
  const [t, n = "center"] = e.split("-");
2172
2172
  return [
2173
2173
  t,
2174
2174
  n
2175
2175
  ];
2176
2176
  }
2177
- const ho = no, mo = oo, go = ao, vo = uo, yo = /* @__PURE__ */ M((e, t) => {
2177
+ const mo = ro, go = io, vo = co, yo = fo, bo = /* @__PURE__ */ M((e, t) => {
2178
2178
  var n;
2179
2179
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
2180
- return o ? /* @__PURE__ */ _n.createPortal(/* @__PURE__ */ _(ce.div, S({}, i, {
2180
+ return o ? /* @__PURE__ */ wn.createPortal(/* @__PURE__ */ _(ae.div, S({}, i, {
2181
2181
  ref: t
2182
2182
  })), o) : null;
2183
2183
  });
2184
- function bo(e, t) {
2185
- return $n((n, o) => {
2184
+ function xo(e, t) {
2185
+ return xn((n, o) => {
2186
2186
  const i = t[n][o];
2187
2187
  return i ?? n;
2188
2188
  }, e);
2189
2189
  }
2190
- const it = (e) => {
2191
- const { present: t, children: n } = e, o = xo(t), i = typeof n == "function" ? n({
2190
+ const ot = (e) => {
2191
+ const { present: t, children: n } = e, o = $o(t), i = typeof n == "function" ? n({
2192
2192
  present: o.isPresent
2193
- }) : se.only(n), r = pe(o.ref, i.ref);
2194
- return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Je(i, {
2193
+ }) : ie.only(n), r = fe(o.ref, i.ref);
2194
+ return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Ze(i, {
2195
2195
  ref: r
2196
2196
  }) : null;
2197
2197
  };
2198
- it.displayName = "Presence";
2199
- function xo(e) {
2200
- const [t, n] = j(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2198
+ ot.displayName = "Presence";
2199
+ function $o(e) {
2200
+ const [t, n] = j(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = xo(s, {
2201
2201
  mounted: {
2202
2202
  UNMOUNT: "unmounted",
2203
2203
  ANIMATION_OUT: "unmountSuspended"
@@ -2211,28 +2211,28 @@ function xo(e) {
2211
2211
  }
2212
2212
  });
2213
2213
  return R(() => {
2214
- const l = Ne(o.current);
2214
+ const l = De(o.current);
2215
2215
  r.current = a === "mounted" ? l : "none";
2216
2216
  }, [
2217
2217
  a
2218
- ]), de(() => {
2218
+ ]), ue(() => {
2219
2219
  const l = o.current, u = i.current;
2220
2220
  if (u !== e) {
2221
- const p = r.current, f = Ne(l);
2221
+ const p = r.current, f = De(l);
2222
2222
  e ? c("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && p !== f ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
2223
2223
  }
2224
2224
  }, [
2225
2225
  e,
2226
2226
  c
2227
- ]), de(() => {
2227
+ ]), ue(() => {
2228
2228
  if (t) {
2229
2229
  const l = (d) => {
2230
- const f = Ne(o.current).includes(d.animationName);
2231
- d.target === t && f && Tt(
2230
+ const f = De(o.current).includes(d.animationName);
2231
+ d.target === t && f && Et(
2232
2232
  () => c("ANIMATION_END")
2233
2233
  );
2234
2234
  }, u = (d) => {
2235
- d.target === t && (r.current = Ne(o.current));
2235
+ d.target === t && (r.current = De(o.current));
2236
2236
  };
2237
2237
  return t.addEventListener("animationstart", u), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
2238
2238
  t.removeEventListener("animationstart", u), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
@@ -2252,15 +2252,15 @@ function xo(e) {
2252
2252
  }, [])
2253
2253
  };
2254
2254
  }
2255
- function Ne(e) {
2255
+ function De(e) {
2256
2256
  return (e == null ? void 0 : e.animationName) || "none";
2257
2257
  }
2258
- function $o({ prop: e, defaultProp: t, onChange: n = () => {
2258
+ function wo({ prop: e, defaultProp: t, onChange: n = () => {
2259
2259
  } }) {
2260
- const [o, i] = wo({
2260
+ const [o, i] = _o({
2261
2261
  defaultProp: t,
2262
2262
  onChange: n
2263
- }), r = e !== void 0, s = r ? e : o, a = he(n), c = k((l) => {
2263
+ }), r = e !== void 0, s = r ? e : o, a = pe(n), c = k((l) => {
2264
2264
  if (r) {
2265
2265
  const d = typeof l == "function" ? l(e) : l;
2266
2266
  d !== e && a(d);
@@ -2277,8 +2277,8 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
2277
2277
  c
2278
2278
  ];
2279
2279
  }
2280
- function wo({ defaultProp: e, onChange: t }) {
2281
- const n = j(e), [o] = n, i = L(o), r = he(t);
2280
+ function _o({ defaultProp: e, onChange: t }) {
2281
+ const n = j(e), [o] = n, i = L(o), r = pe(t);
2282
2282
  return R(() => {
2283
2283
  i.current !== o && (r(o), i.current = o);
2284
2284
  }, [
@@ -2287,7 +2287,7 @@ function wo({ defaultProp: e, onChange: t }) {
2287
2287
  r
2288
2288
  ]), n;
2289
2289
  }
2290
- const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2290
+ const Po = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ae.span, S({}, e, {
2291
2291
  ref: t,
2292
2292
  style: {
2293
2293
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -2303,14 +2303,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2303
2303
  wordWrap: "normal",
2304
2304
  ...e.style
2305
2305
  }
2306
- }))), Po = _o, [We, fi] = kt("Tooltip", [
2307
- Qt
2308
- ]), Ue = Qt(), Ao = "TooltipProvider", Oo = 700, Ze = "tooltip.open", [Co, st] = We(Ao), Eo = (e) => {
2309
- const { __scopeTooltip: t, delayDuration: n = Oo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
2306
+ }))), Ao = Po, [ze, pi] = Ft("Tooltip", [
2307
+ Jt
2308
+ ]), We = Jt(), Oo = "TooltipProvider", Co = 700, Ke = "tooltip.open", [Eo, it] = ze(Oo), To = (e) => {
2309
+ const { __scopeTooltip: t, delayDuration: n = Co, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
2310
2310
  return R(() => {
2311
2311
  const u = l.current;
2312
2312
  return () => window.clearTimeout(u);
2313
- }, []), /* @__PURE__ */ _(Co, {
2313
+ }, []), /* @__PURE__ */ _(Eo, {
2314
2314
  scope: t,
2315
2315
  isOpenDelayed: s,
2316
2316
  delayDuration: n,
@@ -2331,14 +2331,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2331
2331
  }, []),
2332
2332
  disableHoverableContent: i
2333
2333
  }, r);
2334
- }, at = "Tooltip", [To, Ce] = We(at), Ro = (e) => {
2335
- const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = Ue(t), [u, d] = j(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, g = L(!1), [v = !1, y] = $o({
2334
+ }, st = "Tooltip", [Ro, Oe] = ze(st), So = (e) => {
2335
+ const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = it(st, e.__scopeTooltip), l = We(t), [u, d] = j(null), p = mr(), f = L(0), h = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, g = L(!1), [v = !1, y] = wo({
2336
2336
  prop: o,
2337
2337
  defaultProp: i,
2338
2338
  onChange: (O) => {
2339
- O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ze))) : c.onClose(), r == null || r(O);
2339
+ O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ke))) : c.onClose(), r == null || r(O);
2340
2340
  }
2341
- }), x = we(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [
2341
+ }), x = $e(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [
2342
2342
  v
2343
2343
  ]), $ = k(() => {
2344
2344
  window.clearTimeout(f.current), g.current = !1, y(!0);
@@ -2356,7 +2356,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2356
2356
  m,
2357
2357
  y
2358
2358
  ]);
2359
- return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(ho, l, /* @__PURE__ */ _(To, {
2359
+ return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(mo, l, /* @__PURE__ */ _(Ro, {
2360
2360
  scope: t,
2361
2361
  contentId: p,
2362
2362
  open: v,
@@ -2380,16 +2380,16 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2380
2380
  onClose: b,
2381
2381
  disableHoverableContent: h
2382
2382
  }, n));
2383
- }, Ot = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
2384
- const { __scopeTooltip: n, ...o } = e, i = Ce(Ot, n), r = st(Ot, n), s = Ue(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = k(
2383
+ }, At = "TooltipTrigger", Do = /* @__PURE__ */ M((e, t) => {
2384
+ const { __scopeTooltip: n, ...o } = e, i = Oe(At, n), r = it(At, n), s = We(n), a = L(null), c = fe(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = k(
2385
2385
  () => l.current = !1,
2386
2386
  []
2387
2387
  );
2388
2388
  return R(() => () => document.removeEventListener("pointerup", d), [
2389
2389
  d
2390
- ]), /* @__PURE__ */ _(mo, S({
2390
+ ]), /* @__PURE__ */ _(go, S({
2391
2391
  asChild: !0
2392
- }, s), /* @__PURE__ */ _(ce.button, S({
2392
+ }, s), /* @__PURE__ */ _(ae.button, S({
2393
2393
  // We purposefully avoid adding `type=button` here because tooltip triggers are also
2394
2394
  // commonly anchors and the anchor `type` attribute signifies MIME type.
2395
2395
  "aria-describedby": i.open ? i.contentId : void 0,
@@ -2413,34 +2413,34 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2413
2413
  onBlur: G(e.onBlur, i.onClose),
2414
2414
  onClick: G(e.onClick, i.onClose)
2415
2415
  })));
2416
- }), rn = "TooltipPortal", [Do, No] = We(rn, {
2416
+ }), nn = "TooltipPortal", [No, Lo] = ze(nn, {
2417
2417
  forceMount: void 0
2418
- }), Lo = (e) => {
2419
- const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ce(rn, t);
2420
- return /* @__PURE__ */ _(Do, {
2418
+ }), Mo = (e) => {
2419
+ const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Oe(nn, t);
2420
+ return /* @__PURE__ */ _(No, {
2421
2421
  scope: t,
2422
2422
  forceMount: n
2423
- }, /* @__PURE__ */ _(it, {
2423
+ }, /* @__PURE__ */ _(ot, {
2424
2424
  present: n || r.open
2425
- }, /* @__PURE__ */ _(yo, {
2425
+ }, /* @__PURE__ */ _(bo, {
2426
2426
  asChild: !0,
2427
2427
  container: i
2428
2428
  }, o)));
2429
- }, Ae = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
2430
- const n = No(Ae, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ce(Ae, e.__scopeTooltip);
2431
- return /* @__PURE__ */ _(it, {
2429
+ }, Pe = "TooltipContent", Io = /* @__PURE__ */ M((e, t) => {
2430
+ const n = Lo(Pe, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Oe(Pe, e.__scopeTooltip);
2431
+ return /* @__PURE__ */ _(ot, {
2432
2432
  present: o || s.open
2433
- }, s.disableHoverableContent ? /* @__PURE__ */ _(on, S({
2433
+ }, s.disableHoverableContent ? /* @__PURE__ */ _(rn, S({
2434
2434
  side: i
2435
2435
  }, r, {
2436
2436
  ref: t
2437
- })) : /* @__PURE__ */ _(Io, S({
2437
+ })) : /* @__PURE__ */ _(Fo, S({
2438
2438
  side: i
2439
2439
  }, r, {
2440
2440
  ref: t
2441
2441
  })));
2442
- }), Io = /* @__PURE__ */ M((e, t) => {
2443
- const n = Ce(Ae, e.__scopeTooltip), o = st(Ae, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = k(() => {
2442
+ }), Fo = /* @__PURE__ */ M((e, t) => {
2443
+ const n = Oe(Pe, e.__scopeTooltip), o = it(Pe, e.__scopeTooltip), i = L(null), r = fe(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = k(() => {
2444
2444
  a(null), d(!1);
2445
2445
  }, [
2446
2446
  d
@@ -2448,7 +2448,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2448
2448
  const g = h.currentTarget, v = {
2449
2449
  x: h.clientX,
2450
2450
  y: h.clientY
2451
- }, y = jo(v, g.getBoundingClientRect()), x = zo(v, y), $ = Wo(m.getBoundingClientRect()), b = Vo([
2451
+ }, y = zo(v, g.getBoundingClientRect()), x = Wo(v, y), $ = Uo(m.getBoundingClientRect()), b = Go([
2452
2452
  ...x,
2453
2453
  ...$
2454
2454
  ]);
@@ -2476,7 +2476,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2476
2476
  const g = m.target, v = {
2477
2477
  x: m.clientX,
2478
2478
  y: m.clientY
2479
- }, y = (c == null ? void 0 : c.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !Uo(v, s);
2479
+ }, y = (c == null ? void 0 : c.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !Vo(v, s);
2480
2480
  y ? p() : x && (p(), l());
2481
2481
  };
2482
2482
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
@@ -2487,14 +2487,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2487
2487
  s,
2488
2488
  l,
2489
2489
  p
2490
- ]), /* @__PURE__ */ _(on, S({}, e, {
2490
+ ]), /* @__PURE__ */ _(rn, S({}, e, {
2491
2491
  ref: r
2492
2492
  }));
2493
- }), [Fo, ko] = We(at, {
2493
+ }), [ko, Ho] = ze(st, {
2494
2494
  isInside: !1
2495
- }), on = /* @__PURE__ */ M((e, t) => {
2496
- const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ce(Ae, n), l = Ue(n), { onClose: u } = c;
2497
- return R(() => (document.addEventListener(Ze, u), () => document.removeEventListener(Ze, u)), [
2495
+ }), rn = /* @__PURE__ */ M((e, t) => {
2496
+ const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Oe(Pe, n), l = We(n), { onClose: u } = c;
2497
+ return R(() => (document.addEventListener(Ke, u), () => document.removeEventListener(Ke, u)), [
2498
2498
  u
2499
2499
  ]), R(() => {
2500
2500
  if (c.trigger) {
@@ -2511,14 +2511,14 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2511
2511
  }, [
2512
2512
  c.trigger,
2513
2513
  u
2514
- ]), /* @__PURE__ */ _(lr, {
2514
+ ]), /* @__PURE__ */ _(ur, {
2515
2515
  asChild: !0,
2516
2516
  disableOutsidePointerEvents: !1,
2517
2517
  onEscapeKeyDown: r,
2518
2518
  onPointerDownOutside: s,
2519
2519
  onFocusOutside: (d) => d.preventDefault(),
2520
2520
  onDismiss: u
2521
- }, /* @__PURE__ */ _(go, S({
2521
+ }, /* @__PURE__ */ _(vo, S({
2522
2522
  "data-state": c.stateAttribute
2523
2523
  }, l, a, {
2524
2524
  ref: t,
@@ -2530,20 +2530,20 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2530
2530
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
2531
2531
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
2532
2532
  }
2533
- }), /* @__PURE__ */ _(Bt, null, o), /* @__PURE__ */ _(Fo, {
2533
+ }), /* @__PURE__ */ _(Ht, null, o), /* @__PURE__ */ _(ko, {
2534
2534
  scope: n,
2535
2535
  isInside: !0
2536
- }, /* @__PURE__ */ _(Po, {
2536
+ }, /* @__PURE__ */ _(Ao, {
2537
2537
  id: c.contentId,
2538
2538
  role: "tooltip"
2539
2539
  }, i || o))));
2540
- }), Ho = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
2541
- const { __scopeTooltip: n, ...o } = e, i = Ue(n);
2542
- return ko(Ho, n).isInside ? null : /* @__PURE__ */ _(vo, S({}, i, o, {
2540
+ }), Bo = "TooltipArrow", jo = /* @__PURE__ */ M((e, t) => {
2541
+ const { __scopeTooltip: n, ...o } = e, i = We(n);
2542
+ return Ho(Bo, n).isInside ? null : /* @__PURE__ */ _(yo, S({}, i, o, {
2543
2543
  ref: t
2544
2544
  }));
2545
2545
  });
2546
- function jo(e, t) {
2546
+ function zo(e, t) {
2547
2547
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
2548
2548
  switch (Math.min(n, o, i, r)) {
2549
2549
  case r:
@@ -2558,7 +2558,7 @@ function jo(e, t) {
2558
2558
  throw new Error("unreachable");
2559
2559
  }
2560
2560
  }
2561
- function zo(e, t, n = 5) {
2561
+ function Wo(e, t, n = 5) {
2562
2562
  const o = [];
2563
2563
  switch (t) {
2564
2564
  case "top":
@@ -2600,7 +2600,7 @@ function zo(e, t, n = 5) {
2600
2600
  }
2601
2601
  return o;
2602
2602
  }
2603
- function Wo(e) {
2603
+ function Uo(e) {
2604
2604
  const { top: t, right: n, bottom: o, left: i } = e;
2605
2605
  return [
2606
2606
  {
@@ -2621,7 +2621,7 @@ function Wo(e) {
2621
2621
  }
2622
2622
  ];
2623
2623
  }
2624
- function Uo(e, t) {
2624
+ function Vo(e, t) {
2625
2625
  const { x: n, y: o } = e;
2626
2626
  let i = !1;
2627
2627
  for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
@@ -2630,11 +2630,11 @@ function Uo(e, t) {
2630
2630
  }
2631
2631
  return i;
2632
2632
  }
2633
- function Vo(e) {
2633
+ function Go(e) {
2634
2634
  const t = e.slice();
2635
- return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Go(t);
2635
+ return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Xo(t);
2636
2636
  }
2637
- function Go(e) {
2637
+ function Xo(e) {
2638
2638
  if (e.length <= 1)
2639
2639
  return e.slice();
2640
2640
  const t = [];
@@ -2664,11 +2664,11 @@ function Go(e) {
2664
2664
  }
2665
2665
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
2666
2666
  }
2667
- const Xo = Eo, Yo = Ro, qo = So, Ko = Lo, Zo = Mo, Jo = Bo;
2668
- function Qo(e) {
2667
+ const Yo = To, qo = So, Ko = Do, Zo = Mo, Jo = Io, Qo = jo;
2668
+ function ei(e) {
2669
2669
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2670
2670
  }
2671
- var sn = { exports: {} };
2671
+ var on = { exports: {} };
2672
2672
  /*!
2673
2673
  Copyright (c) 2018 Jed Watson.
2674
2674
  Licensed under the MIT License (MIT), see
@@ -2703,50 +2703,50 @@ var sn = { exports: {} };
2703
2703
  }
2704
2704
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
2705
2705
  })();
2706
- })(sn);
2707
- var ei = sn.exports;
2708
- const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slideLeftAndFade_1dyp8_1", oi = "_slideUpAndFade_1dyp8_1", ii = "_slideRightAndFade_1dyp8_1", ie = {
2706
+ })(on);
2707
+ var ti = on.exports;
2708
+ const ni = /* @__PURE__ */ ei(ti), ri = "_slideDownAndFade_1dyp8_1", oi = "_slideLeftAndFade_1dyp8_1", ii = "_slideUpAndFade_1dyp8_1", si = "_slideRightAndFade_1dyp8_1", oe = {
2709
2709
  "purpur-tooltip": "_purpur-tooltip_1dyp8_1",
2710
2710
  "purpur-tooltip__content": "_purpur-tooltip__content_1dyp8_4",
2711
2711
  "purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_1dyp8_14",
2712
2712
  "purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_1dyp8_17",
2713
- slideDownAndFade: ni,
2714
- slideLeftAndFade: ri,
2715
- slideUpAndFade: oi,
2716
- slideRightAndFade: ii,
2713
+ slideDownAndFade: ri,
2714
+ slideLeftAndFade: oi,
2715
+ slideUpAndFade: ii,
2716
+ slideRightAndFade: si,
2717
2717
  "purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_1dyp8_32",
2718
2718
  "purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_1dyp8_35",
2719
2719
  "purpur-tooltip__paragraph--primary": "_purpur-tooltip__paragraph--primary_1dyp8_38",
2720
2720
  "purpur-tooltip__paragraph--primary-negative": "_purpur-tooltip__paragraph--primary-negative_1dyp8_41"
2721
- }, Le = ti.bind(ie), si = {
2721
+ }, Ne = ni.bind(oe), ai = {
2722
2722
  TOP: "top",
2723
2723
  BOTTOM: "bottom",
2724
2724
  LEFT: "left",
2725
2725
  RIGHT: "right"
2726
- }, ai = {
2726
+ }, ci = {
2727
2727
  START: "start",
2728
2728
  CENTER: "center",
2729
2729
  END: "end"
2730
- }, Q = "purpur-tooltip", ci = M(
2730
+ }, Q = "purpur-tooltip", li = M(
2731
2731
  ({
2732
2732
  ["data-testid"]: e,
2733
- buttonSize: t = Pn.MD,
2733
+ buttonSize: t = _n.MD,
2734
2734
  children: n,
2735
2735
  className: o,
2736
2736
  contentClassName: i,
2737
2737
  negative: r = !1,
2738
- position: s = si.TOP,
2739
- align: a = ai.CENTER,
2738
+ position: s = ai.TOP,
2739
+ align: a = ci.CENTER,
2740
2740
  triggerAriaLabel: c = "",
2741
2741
  triggerElement: l,
2742
2742
  ...u
2743
2743
  }, d) => {
2744
- const [p, f] = j(!1), h = Le([
2744
+ const [p, f] = j(!1), h = Ne([
2745
2745
  o,
2746
2746
  Q,
2747
2747
  `${Q}--primary${r ? "-negative" : ""}`
2748
2748
  ]), m = /* @__PURE__ */ I(
2749
- Dt,
2749
+ St,
2750
2750
  {
2751
2751
  ref: d,
2752
2752
  "aria-label": c,
@@ -2755,51 +2755,51 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2755
2755
  iconOnly: !0,
2756
2756
  "data-testid": `${e}-trigger-button`,
2757
2757
  size: t,
2758
- children: /* @__PURE__ */ I(Lt, { size: "md" })
2758
+ children: /* @__PURE__ */ I(Nt, { size: "md" })
2759
2759
  }
2760
2760
  );
2761
- return /* @__PURE__ */ I("div", { "data-testid": e, className: h, children: /* @__PURE__ */ I(Xo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ Ve(Yo, { open: p, onOpenChange: f, ...u, children: [
2761
+ return /* @__PURE__ */ I("div", { "data-testid": e, className: h, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Qn), children: /* @__PURE__ */ Ue(qo, { open: p, onOpenChange: f, ...u, children: [
2762
2762
  /* @__PURE__ */ I(
2763
- qo,
2763
+ Ko,
2764
2764
  {
2765
2765
  asChild: !0,
2766
2766
  onClick: (g) => {
2767
2767
  g.preventDefault(), f(!0);
2768
2768
  },
2769
- children: se.count(l) === 0 ? m : l
2769
+ children: ie.count(l) === 0 ? m : l
2770
2770
  }
2771
2771
  ),
2772
- /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ Ve(
2773
- Zo,
2772
+ /* @__PURE__ */ I(Zo, { children: /* @__PURE__ */ Ue(
2773
+ Jo,
2774
2774
  {
2775
2775
  side: s,
2776
2776
  align: a,
2777
- className: Le([
2777
+ className: Ne([
2778
2778
  i,
2779
- ie[`${Q}__content`],
2780
- ie[`${Q}__content--primary${r ? "-negative" : ""}`]
2779
+ oe[`${Q}__content`],
2780
+ oe[`${Q}__content--primary${r ? "-negative" : ""}`]
2781
2781
  ]),
2782
2782
  sideOffset: -5,
2783
2783
  "data-testid": `${e}-content`,
2784
2784
  children: [
2785
2785
  typeof n == "string" ? /* @__PURE__ */ I(
2786
- Zn,
2786
+ Jn,
2787
2787
  {
2788
- className: Le([
2789
- ie[`${Q}__paragraph`],
2790
- ie[`${Q}__paragraph--primary${r ? "-negative" : ""}`]
2788
+ className: Ne([
2789
+ oe[`${Q}__paragraph`],
2790
+ oe[`${Q}__paragraph--primary${r ? "-negative" : ""}`]
2791
2791
  ]),
2792
- variant: It.PARAGRAPH100,
2792
+ variant: Mt.PARAGRAPH100,
2793
2793
  "data-testid": `${e}-paragraph`,
2794
2794
  children: n
2795
2795
  }
2796
2796
  ) : n,
2797
2797
  /* @__PURE__ */ I(
2798
- Jo,
2798
+ Qo,
2799
2799
  {
2800
- className: Le([
2801
- ie[`${Q}__arrow`],
2802
- ie[`${Q}__arrow--primary${r ? "-negative" : ""}`]
2800
+ className: Ne([
2801
+ oe[`${Q}__arrow`],
2802
+ oe[`${Q}__arrow--primary${r ? "-negative" : ""}`]
2803
2803
  ])
2804
2804
  }
2805
2805
  )
@@ -2809,10 +2809,10 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2809
2809
  ] }) }) });
2810
2810
  }
2811
2811
  );
2812
- ci.displayName = "Tooltip";
2812
+ li.displayName = "Tooltip";
2813
2813
  export {
2814
- ai as TOOLTIP_ALIGN,
2815
- si as TOOLTIP_POSITION,
2816
- ci as Tooltip
2814
+ ci as TOOLTIP_ALIGN,
2815
+ ai as TOOLTIP_POSITION,
2816
+ li as Tooltip
2817
2817
  };
2818
2818
  //# sourceMappingURL=tooltip.es.js.map