@raspberrypifoundation/design-system-react 2.10.3 → 2.11.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.
Files changed (73) hide show
  1. package/README.md +6 -23
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +1289 -1312
  4. package/dist/design-system-react.umd.cjs +14 -14
  5. package/dist/scss/components/forms/fieldset.scss +3 -4
  6. package/dist/scss/components/forms/input-checkbox.scss +7 -5
  7. package/dist/scss/components/forms/input-label.scss +5 -13
  8. package/dist/scss/components/forms/input-radio.scss +16 -7
  9. package/dist/scss/properties/colors/_inputs.scss +2 -1
  10. package/dist/types/src/components/Accordion/index.d.ts +1 -1
  11. package/dist/types/src/components/Accordion/index.d.ts.map +1 -1
  12. package/dist/types/src/components/Alert/index.d.ts +1 -1
  13. package/dist/types/src/components/Alert/index.d.ts.map +1 -1
  14. package/dist/types/src/components/Button/index.d.ts +2 -1
  15. package/dist/types/src/components/Button/index.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
  17. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/Fieldset/index.d.ts +1 -1
  19. package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/InputField/index.d.ts +1 -1
  21. package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/InputLabel/index.d.ts +1 -1
  23. package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/PasswordInput/index.d.ts +1 -1
  25. package/dist/types/src/components/Form/PasswordInput/index.d.ts.map +1 -1
  26. package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
  27. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/SearchInput/index.d.ts +1 -1
  29. package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -1
  30. package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
  31. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
  33. package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
  34. package/dist/types/src/components/Form/TextareaInput/index.d.ts +1 -1
  35. package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
  36. package/dist/types/src/components/Menu/MenuButton/index.d.ts +1 -1
  37. package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -1
  38. package/dist/types/src/components/Menu/MenuItem/index.d.ts +1 -1
  39. package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -1
  40. package/dist/types/src/components/Menu/MenuTitle/index.d.ts +1 -1
  41. package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -1
  42. package/dist/types/src/components/Menu/index.d.ts +1 -1
  43. package/dist/types/src/components/Menu/index.d.ts.map +1 -1
  44. package/dist/types/src/components/Modal/index.d.ts +1 -1
  45. package/dist/types/src/components/Modal/index.d.ts.map +1 -1
  46. package/dist/types/src/components/ProgressBar/index.d.ts +1 -1
  47. package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -1
  48. package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts +2 -0
  49. package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts.map +1 -0
  50. package/dist/types/src/components/Squiggle/index.d.ts +4 -0
  51. package/dist/types/src/components/Squiggle/index.d.ts.map +1 -0
  52. package/dist/types/src/components/Table/BodyCell/index.d.ts +1 -1
  53. package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -1
  54. package/dist/types/src/components/Table/HeaderCell/index.d.ts +1 -1
  55. package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -1
  56. package/dist/types/src/components/Table/Table/index.d.ts +1 -1
  57. package/dist/types/src/components/Table/Table/index.d.ts.map +1 -1
  58. package/dist/types/src/components/Tag/index.d.ts +1 -1
  59. package/dist/types/src/components/Tag/index.d.ts.map +1 -1
  60. package/dist/types/src/stories/Accordion.stories.d.ts +1 -1
  61. package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -1
  62. package/dist/types/src/stories/Button.stories.d.ts +3 -3
  63. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +2 -1
  64. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -1
  65. package/dist/types/src/stories/Modal/Modal.stories.d.ts +1 -1
  66. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +2 -2
  67. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -1
  68. package/dist/types/src/stories/ProgressBar.stories.d.ts +3 -3
  69. package/dist/types/src/stories/Squiggle.stories.d.ts +8 -0
  70. package/dist/types/src/stories/Squiggle.stories.d.ts.map +1 -0
  71. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +1 -1
  72. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -1
  73. package/package.json +8 -8
@@ -1,8 +1,8 @@
1
- import { jsxs as B, jsx as w, Fragment as ke } from "react/jsx-runtime";
1
+ import { jsxs as B, jsx as g, Fragment as Ie } from "react/jsx-runtime";
2
2
  import * as E from "react";
3
- import or, { useState as On, forwardRef as It, useRef as Rt, useEffect as We, useLayoutEffect as An, createElement as Tt } from "react";
4
- import * as ir from "react-dom";
5
- function Pn(e) {
3
+ import tr, { useState as Sn, forwardRef as kt, useRef as Rt, useEffect as je, useLayoutEffect as _n, createElement as Tt } from "react";
4
+ import * as nr from "react-dom";
5
+ function On(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var at = { exports: {} };
@@ -11,9 +11,9 @@ var at = { exports: {} };
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
13
  */
14
- var Vt;
15
- function sr() {
16
- return Vt || (Vt = 1, (function(e) {
14
+ var qt;
15
+ function rr() {
16
+ return qt || (qt = 1, (function(e) {
17
17
  (function() {
18
18
  var t = {}.hasOwnProperty;
19
19
  function r() {
@@ -44,9 +44,9 @@ function sr() {
44
44
  })();
45
45
  })(at)), at.exports;
46
46
  }
47
- var ar = sr();
48
- const K = /* @__PURE__ */ Pn(ar);
49
- var Me = { exports: {} }, De = { exports: {} }, Y = {};
47
+ var or = rr();
48
+ const X = /* @__PURE__ */ On(or);
49
+ var ke = { exports: {} }, Me = { exports: {} }, Y = {};
50
50
  /** @license React v16.13.1
51
51
  * react-is.production.min.js
52
52
  *
@@ -56,17 +56,17 @@ var Me = { exports: {} }, De = { exports: {} }, Y = {};
56
56
  * LICENSE file in the root directory of this source tree.
57
57
  */
58
58
  var Yt;
59
- function cr() {
59
+ function ir() {
60
60
  if (Yt) return Y;
61
61
  Yt = 1;
62
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
63
- function y(b) {
62
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
63
+ function w(b) {
64
64
  if (typeof b == "object" && b !== null) {
65
- var I = b.$$typeof;
66
- switch (I) {
65
+ var k = b.$$typeof;
66
+ switch (k) {
67
67
  case t:
68
68
  switch (b = b.type, b) {
69
- case l:
69
+ case u:
70
70
  case c:
71
71
  case n:
72
72
  case i:
@@ -78,48 +78,48 @@ function cr() {
78
78
  case a:
79
79
  case f:
80
80
  case v:
81
- case u:
81
+ case l:
82
82
  case s:
83
83
  return b;
84
84
  default:
85
- return I;
85
+ return k;
86
86
  }
87
87
  }
88
88
  case r:
89
- return I;
89
+ return k;
90
90
  }
91
91
  }
92
92
  }
93
- function T(b) {
94
- return y(b) === c;
93
+ function _(b) {
94
+ return w(b) === c;
95
95
  }
96
- return Y.AsyncMode = l, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = u, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
97
- return T(b) || y(b) === l;
98
- }, Y.isConcurrentMode = T, Y.isContextConsumer = function(b) {
99
- return y(b) === a;
96
+ return Y.AsyncMode = u, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = l, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
97
+ return _(b) || w(b) === u;
98
+ }, Y.isConcurrentMode = _, Y.isContextConsumer = function(b) {
99
+ return w(b) === a;
100
100
  }, Y.isContextProvider = function(b) {
101
- return y(b) === s;
101
+ return w(b) === s;
102
102
  }, Y.isElement = function(b) {
103
103
  return typeof b == "object" && b !== null && b.$$typeof === t;
104
104
  }, Y.isForwardRef = function(b) {
105
- return y(b) === f;
105
+ return w(b) === f;
106
106
  }, Y.isFragment = function(b) {
107
- return y(b) === n;
107
+ return w(b) === n;
108
108
  }, Y.isLazy = function(b) {
109
- return y(b) === v;
109
+ return w(b) === v;
110
110
  }, Y.isMemo = function(b) {
111
- return y(b) === u;
111
+ return w(b) === l;
112
112
  }, Y.isPortal = function(b) {
113
- return y(b) === r;
113
+ return w(b) === r;
114
114
  }, Y.isProfiler = function(b) {
115
- return y(b) === i;
115
+ return w(b) === i;
116
116
  }, Y.isStrictMode = function(b) {
117
- return y(b) === o;
117
+ return w(b) === o;
118
118
  }, Y.isSuspense = function(b) {
119
- return y(b) === d;
119
+ return w(b) === d;
120
120
  }, Y.isValidElementType = function(b) {
121
- return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === u || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === k || b.$$typeof === p);
122
- }, Y.typeOf = y, Y;
121
+ return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === l || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === T || b.$$typeof === A || b.$$typeof === I || b.$$typeof === p);
122
+ }, Y.typeOf = w, Y;
123
123
  }
124
124
  var U = {};
125
125
  /** @license React v16.13.1
@@ -131,36 +131,36 @@ var U = {};
131
131
  * LICENSE file in the root directory of this source tree.
132
132
  */
133
133
  var Ut;
134
- function lr() {
134
+ function sr() {
135
135
  return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
136
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
137
- function y(C) {
138
- return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
- C === n || C === c || C === i || C === o || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === u || C.$$typeof === s || C.$$typeof === a || C.$$typeof === f || C.$$typeof === O || C.$$typeof === A || C.$$typeof === k || C.$$typeof === p);
140
- }
141
- function T(C) {
142
- if (typeof C == "object" && C !== null) {
143
- var re = C.$$typeof;
136
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
137
+ function w(S) {
138
+ return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
+ S === n || S === c || S === i || S === o || S === d || S === h || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === l || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === T || S.$$typeof === A || S.$$typeof === I || S.$$typeof === p);
140
+ }
141
+ function _(S) {
142
+ if (typeof S == "object" && S !== null) {
143
+ var re = S.$$typeof;
144
144
  switch (re) {
145
145
  case t:
146
- var fe = C.type;
147
- switch (fe) {
148
- case l:
146
+ var le = S.type;
147
+ switch (le) {
148
+ case u:
149
149
  case c:
150
150
  case n:
151
151
  case i:
152
152
  case o:
153
153
  case d:
154
- return fe;
154
+ return le;
155
155
  default:
156
- var ae = fe && fe.$$typeof;
157
- switch (ae) {
156
+ var se = le && le.$$typeof;
157
+ switch (se) {
158
158
  case a:
159
159
  case f:
160
160
  case v:
161
- case u:
161
+ case l:
162
162
  case s:
163
- return ae;
163
+ return se;
164
164
  default:
165
165
  return re;
166
166
  }
@@ -170,52 +170,52 @@ function lr() {
170
170
  }
171
171
  }
172
172
  }
173
- var b = l, I = c, H = a, z = s, Q = t, J = f, Z = n, q = v, te = u, X = r, L = i, j = o, V = d, M = !1;
174
- function R(C) {
175
- return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(C) || T(C) === l;
173
+ var b = u, k = c, z = a, H = s, G = t, K = f, Q = n, V = v, te = l, Z = r, L = i, j = o, q = d, M = !1;
174
+ function R(S) {
175
+ return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(S) || _(S) === u;
176
176
  }
177
- function m(C) {
178
- return T(C) === c;
177
+ function m(S) {
178
+ return _(S) === c;
179
179
  }
180
- function x(C) {
181
- return T(C) === a;
180
+ function x(S) {
181
+ return _(S) === a;
182
182
  }
183
- function F(C) {
184
- return T(C) === s;
183
+ function F(S) {
184
+ return _(S) === s;
185
185
  }
186
- function W(C) {
187
- return typeof C == "object" && C !== null && C.$$typeof === t;
186
+ function W(S) {
187
+ return typeof S == "object" && S !== null && S.$$typeof === t;
188
188
  }
189
- function S(C) {
190
- return T(C) === f;
189
+ function C(S) {
190
+ return _(S) === f;
191
191
  }
192
- function P(C) {
193
- return T(C) === n;
192
+ function P(S) {
193
+ return _(S) === n;
194
194
  }
195
- function g(C) {
196
- return T(C) === v;
195
+ function y(S) {
196
+ return _(S) === v;
197
197
  }
198
- function _(C) {
199
- return T(C) === u;
198
+ function O(S) {
199
+ return _(S) === l;
200
200
  }
201
- function N(C) {
202
- return T(C) === r;
201
+ function N(S) {
202
+ return _(S) === r;
203
203
  }
204
- function $(C) {
205
- return T(C) === i;
204
+ function $(S) {
205
+ return _(S) === i;
206
206
  }
207
- function D(C) {
208
- return T(C) === o;
207
+ function D(S) {
208
+ return _(S) === o;
209
209
  }
210
- function G(C) {
211
- return T(C) === d;
210
+ function J(S) {
211
+ return _(S) === d;
212
212
  }
213
- U.AsyncMode = b, U.ConcurrentMode = I, U.ContextConsumer = H, U.ContextProvider = z, U.Element = Q, U.ForwardRef = J, U.Fragment = Z, U.Lazy = q, U.Memo = te, U.Portal = X, U.Profiler = L, U.StrictMode = j, U.Suspense = V, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = x, U.isContextProvider = F, U.isElement = W, U.isForwardRef = S, U.isFragment = P, U.isLazy = g, U.isMemo = _, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = G, U.isValidElementType = y, U.typeOf = T;
213
+ U.AsyncMode = b, U.ConcurrentMode = k, U.ContextConsumer = z, U.ContextProvider = H, U.Element = G, U.ForwardRef = K, U.Fragment = Q, U.Lazy = V, U.Memo = te, U.Portal = Z, U.Profiler = L, U.StrictMode = j, U.Suspense = q, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = x, U.isContextProvider = F, U.isElement = W, U.isForwardRef = C, U.isFragment = P, U.isLazy = y, U.isMemo = O, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = J, U.isValidElementType = w, U.typeOf = _;
214
214
  })()), U;
215
215
  }
216
216
  var Ht;
217
- function Nn() {
218
- return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? De.exports = cr() : De.exports = lr()), De.exports;
217
+ function An() {
218
+ return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Me.exports = ir() : Me.exports = sr()), Me.exports;
219
219
  }
220
220
  /*
221
221
  object-assign
@@ -223,7 +223,7 @@ object-assign
223
223
  @license MIT
224
224
  */
225
225
  var ct, Kt;
226
- function ur() {
226
+ function ar() {
227
227
  if (Kt) return ct;
228
228
  Kt = 1;
229
229
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -241,10 +241,10 @@ function ur() {
241
241
  return !1;
242
242
  for (var s = {}, a = 0; a < 10; a++)
243
243
  s["_" + String.fromCharCode(a)] = a;
244
- var l = Object.getOwnPropertyNames(s).map(function(f) {
244
+ var u = Object.getOwnPropertyNames(s).map(function(f) {
245
245
  return s[f];
246
246
  });
247
- if (l.join("") !== "0123456789")
247
+ if (u.join("") !== "0123456789")
248
248
  return !1;
249
249
  var c = {};
250
250
  return "abcdefghijklmnopqrst".split("").forEach(function(f) {
@@ -255,17 +255,17 @@ function ur() {
255
255
  }
256
256
  }
257
257
  return ct = o() ? Object.assign : function(i, s) {
258
- for (var a, l = n(i), c, f = 1; f < arguments.length; f++) {
258
+ for (var a, u = n(i), c, f = 1; f < arguments.length; f++) {
259
259
  a = Object(arguments[f]);
260
260
  for (var d in a)
261
- t.call(a, d) && (l[d] = a[d]);
261
+ t.call(a, d) && (u[d] = a[d]);
262
262
  if (e) {
263
263
  c = e(a);
264
264
  for (var h = 0; h < c.length; h++)
265
- r.call(a, c[h]) && (l[c[h]] = a[c[h]]);
265
+ r.call(a, c[h]) && (u[c[h]] = a[c[h]]);
266
266
  }
267
267
  }
268
- return l;
268
+ return u;
269
269
  }, ct;
270
270
  }
271
271
  var lt, zt;
@@ -276,17 +276,17 @@ function Mt() {
276
276
  return lt = e, lt;
277
277
  }
278
278
  var ut, Xt;
279
- function kn() {
279
+ function Pn() {
280
280
  return Xt || (Xt = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
281
281
  }
282
282
  var ft, Gt;
283
- function fr() {
283
+ function cr() {
284
284
  if (Gt) return ft;
285
285
  Gt = 1;
286
286
  var e = function() {
287
287
  };
288
288
  if (process.env.NODE_ENV !== "production") {
289
- var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ kn();
289
+ var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ Pn();
290
290
  e = function(i) {
291
291
  var s = "Warning: " + i;
292
292
  typeof console < "u" && console.error(s);
@@ -296,7 +296,7 @@ function fr() {
296
296
  }
297
297
  };
298
298
  }
299
- function o(i, s, a, l, c) {
299
+ function o(i, s, a, u, c) {
300
300
  if (process.env.NODE_ENV !== "production") {
301
301
  for (var f in i)
302
302
  if (n(i, f)) {
@@ -304,21 +304,21 @@ function fr() {
304
304
  try {
305
305
  if (typeof i[f] != "function") {
306
306
  var h = Error(
307
- (l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
307
+ (u || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
308
308
  );
309
309
  throw h.name = "Invariant Violation", h;
310
310
  }
311
- d = i[f](s, f, l, a, null, t);
311
+ d = i[f](s, f, u, a, null, t);
312
312
  } catch (v) {
313
313
  d = v;
314
314
  }
315
315
  if (d && !(d instanceof Error) && e(
316
- (l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
316
+ (u || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
317
317
  ), d instanceof Error && !(d.message in r)) {
318
318
  r[d.message] = !0;
319
- var u = c ? c() : "";
319
+ var l = c ? c() : "";
320
320
  e(
321
- "Failed " + a + " type: " + d.message + (u ?? "")
321
+ "Failed " + a + " type: " + d.message + (l ?? "")
322
322
  );
323
323
  }
324
324
  }
@@ -329,30 +329,30 @@ function fr() {
329
329
  }, ft = o, ft;
330
330
  }
331
331
  var dt, Zt;
332
- function dr() {
332
+ function lr() {
333
333
  if (Zt) return dt;
334
334
  Zt = 1;
335
- var e = Nn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ kn(), o = /* @__PURE__ */ fr(), i = function() {
335
+ var e = An(), t = ar(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ Pn(), o = /* @__PURE__ */ cr(), i = function() {
336
336
  };
337
337
  process.env.NODE_ENV !== "production" && (i = function(a) {
338
- var l = "Warning: " + a;
339
- typeof console < "u" && console.error(l);
338
+ var u = "Warning: " + a;
339
+ typeof console < "u" && console.error(u);
340
340
  try {
341
- throw new Error(l);
341
+ throw new Error(u);
342
342
  } catch {
343
343
  }
344
344
  });
345
345
  function s() {
346
346
  return null;
347
347
  }
348
- return dt = function(a, l) {
348
+ return dt = function(a, u) {
349
349
  var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
350
350
  function d(m) {
351
351
  var x = m && (c && m[c] || m[f]);
352
352
  if (typeof x == "function")
353
353
  return x;
354
354
  }
355
- var h = "<<anonymous>>", u = {
355
+ var h = "<<anonymous>>", l = {
356
356
  array: A("array"),
357
357
  bigint: A("bigint"),
358
358
  bool: A("boolean"),
@@ -361,16 +361,16 @@ function dr() {
361
361
  object: A("object"),
362
362
  string: A("string"),
363
363
  symbol: A("symbol"),
364
- any: k(),
365
- arrayOf: y,
366
- element: T(),
364
+ any: I(),
365
+ arrayOf: w,
366
+ element: _(),
367
367
  elementType: b(),
368
- instanceOf: I,
369
- node: J(),
370
- objectOf: z,
371
- oneOf: H,
372
- oneOfType: Q,
373
- shape: q,
368
+ instanceOf: k,
369
+ node: K(),
370
+ objectOf: H,
371
+ oneOf: z,
372
+ oneOfType: G,
373
+ shape: V,
374
374
  exact: te
375
375
  };
376
376
  function v(m, x) {
@@ -380,131 +380,131 @@ function dr() {
380
380
  this.message = m, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
381
381
  }
382
382
  p.prototype = Error.prototype;
383
- function O(m) {
383
+ function T(m) {
384
384
  if (process.env.NODE_ENV !== "production")
385
385
  var x = {}, F = 0;
386
- function W(P, g, _, N, $, D, G) {
387
- if (N = N || h, D = D || _, G !== r) {
388
- if (l) {
389
- var C = new Error(
386
+ function W(P, y, O, N, $, D, J) {
387
+ if (N = N || h, D = D || O, J !== r) {
388
+ if (u) {
389
+ var S = new Error(
390
390
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
391
391
  );
392
- throw C.name = "Invariant Violation", C;
392
+ throw S.name = "Invariant Violation", S;
393
393
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
394
- var re = N + ":" + _;
394
+ var re = N + ":" + O;
395
395
  !x[re] && // Avoid spamming the console because they are often not actionable except for lib authors
396
396
  F < 3 && (i(
397
397
  "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
398
398
  ), x[re] = !0, F++);
399
399
  }
400
400
  }
401
- return g[_] == null ? P ? g[_] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(g, _, N, $, D);
401
+ return y[O] == null ? P ? y[O] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(y, O, N, $, D);
402
402
  }
403
- var S = W.bind(null, !1);
404
- return S.isRequired = W.bind(null, !0), S;
403
+ var C = W.bind(null, !1);
404
+ return C.isRequired = W.bind(null, !0), C;
405
405
  }
406
406
  function A(m) {
407
- function x(F, W, S, P, g, _) {
407
+ function x(F, W, C, P, y, O) {
408
408
  var N = F[W], $ = j(N);
409
409
  if ($ !== m) {
410
- var D = V(N);
410
+ var D = q(N);
411
411
  return new p(
412
- "Invalid " + P + " `" + g + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + m + "`."),
412
+ "Invalid " + P + " `" + y + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
413
413
  { expectedType: m }
414
414
  );
415
415
  }
416
416
  return null;
417
417
  }
418
- return O(x);
418
+ return T(x);
419
419
  }
420
- function k() {
421
- return O(s);
420
+ function I() {
421
+ return T(s);
422
422
  }
423
- function y(m) {
424
- function x(F, W, S, P, g) {
423
+ function w(m) {
424
+ function x(F, W, C, P, y) {
425
425
  if (typeof m != "function")
426
- return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
427
- var _ = F[W];
428
- if (!Array.isArray(_)) {
429
- var N = j(_);
430
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an array."));
426
+ return new p("Property `" + y + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
427
+ var O = F[W];
428
+ if (!Array.isArray(O)) {
429
+ var N = j(O);
430
+ return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected an array."));
431
431
  }
432
- for (var $ = 0; $ < _.length; $++) {
433
- var D = m(_, $, S, P, g + "[" + $ + "]", r);
432
+ for (var $ = 0; $ < O.length; $++) {
433
+ var D = m(O, $, C, P, y + "[" + $ + "]", r);
434
434
  if (D instanceof Error)
435
435
  return D;
436
436
  }
437
437
  return null;
438
438
  }
439
- return O(x);
440
- }
441
- function T() {
442
- function m(x, F, W, S, P) {
443
- var g = x[F];
444
- if (!a(g)) {
445
- var _ = j(g);
446
- return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement."));
439
+ return T(x);
440
+ }
441
+ function _() {
442
+ function m(x, F, W, C, P) {
443
+ var y = x[F];
444
+ if (!a(y)) {
445
+ var O = j(y);
446
+ return new p("Invalid " + C + " `" + P + "` of type " + ("`" + O + "` supplied to `" + W + "`, expected a single ReactElement."));
447
447
  }
448
448
  return null;
449
449
  }
450
- return O(m);
450
+ return T(m);
451
451
  }
452
452
  function b() {
453
- function m(x, F, W, S, P) {
454
- var g = x[F];
455
- if (!e.isValidElementType(g)) {
456
- var _ = j(g);
457
- return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement type."));
453
+ function m(x, F, W, C, P) {
454
+ var y = x[F];
455
+ if (!e.isValidElementType(y)) {
456
+ var O = j(y);
457
+ return new p("Invalid " + C + " `" + P + "` of type " + ("`" + O + "` supplied to `" + W + "`, expected a single ReactElement type."));
458
458
  }
459
459
  return null;
460
460
  }
461
- return O(m);
461
+ return T(m);
462
462
  }
463
- function I(m) {
464
- function x(F, W, S, P, g) {
463
+ function k(m) {
464
+ function x(F, W, C, P, y) {
465
465
  if (!(F[W] instanceof m)) {
466
- var _ = m.name || h, N = R(F[W]);
467
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + _ + "`."));
466
+ var O = m.name || h, N = R(F[W]);
467
+ return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected ") + ("instance of `" + O + "`."));
468
468
  }
469
469
  return null;
470
470
  }
471
- return O(x);
471
+ return T(x);
472
472
  }
473
- function H(m) {
473
+ function z(m) {
474
474
  if (!Array.isArray(m))
475
475
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
476
476
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
477
477
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
478
- function x(F, W, S, P, g) {
479
- for (var _ = F[W], N = 0; N < m.length; N++)
480
- if (v(_, m[N]))
478
+ function x(F, W, C, P, y) {
479
+ for (var O = F[W], N = 0; N < m.length; N++)
480
+ if (v(O, m[N]))
481
481
  return null;
482
- var $ = JSON.stringify(m, function(G, C) {
483
- var re = V(C);
484
- return re === "symbol" ? String(C) : C;
482
+ var $ = JSON.stringify(m, function(J, S) {
483
+ var re = q(S);
484
+ return re === "symbol" ? String(S) : S;
485
485
  });
486
- return new p("Invalid " + P + " `" + g + "` of value `" + String(_) + "` " + ("supplied to `" + S + "`, expected one of " + $ + "."));
486
+ return new p("Invalid " + P + " `" + y + "` of value `" + String(O) + "` " + ("supplied to `" + C + "`, expected one of " + $ + "."));
487
487
  }
488
- return O(x);
488
+ return T(x);
489
489
  }
490
- function z(m) {
491
- function x(F, W, S, P, g) {
490
+ function H(m) {
491
+ function x(F, W, C, P, y) {
492
492
  if (typeof m != "function")
493
- return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
494
- var _ = F[W], N = j(_);
493
+ return new p("Property `" + y + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
494
+ var O = F[W], N = j(O);
495
495
  if (N !== "object")
496
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an object."));
497
- for (var $ in _)
498
- if (n(_, $)) {
499
- var D = m(_, $, S, P, g + "." + $, r);
496
+ return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected an object."));
497
+ for (var $ in O)
498
+ if (n(O, $)) {
499
+ var D = m(O, $, C, P, y + "." + $, r);
500
500
  if (D instanceof Error)
501
501
  return D;
502
502
  }
503
503
  return null;
504
504
  }
505
- return O(x);
505
+ return T(x);
506
506
  }
507
- function Q(m) {
507
+ function G(m) {
508
508
  if (!Array.isArray(m))
509
509
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
510
510
  for (var x = 0; x < m.length; x++) {
@@ -514,70 +514,70 @@ function dr() {
514
514
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + x + "."
515
515
  ), s;
516
516
  }
517
- function W(S, P, g, _, N) {
517
+ function W(C, P, y, O, N) {
518
518
  for (var $ = [], D = 0; D < m.length; D++) {
519
- var G = m[D], C = G(S, P, g, _, N, r);
520
- if (C == null)
519
+ var J = m[D], S = J(C, P, y, O, N, r);
520
+ if (S == null)
521
521
  return null;
522
- C.data && n(C.data, "expectedType") && $.push(C.data.expectedType);
522
+ S.data && n(S.data, "expectedType") && $.push(S.data.expectedType);
523
523
  }
524
524
  var re = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
525
- return new p("Invalid " + _ + " `" + N + "` supplied to " + ("`" + g + "`" + re + "."));
525
+ return new p("Invalid " + O + " `" + N + "` supplied to " + ("`" + y + "`" + re + "."));
526
526
  }
527
- return O(W);
527
+ return T(W);
528
528
  }
529
- function J() {
530
- function m(x, F, W, S, P) {
531
- return X(x[F]) ? null : new p("Invalid " + S + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
529
+ function K() {
530
+ function m(x, F, W, C, P) {
531
+ return Z(x[F]) ? null : new p("Invalid " + C + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
532
532
  }
533
- return O(m);
533
+ return T(m);
534
534
  }
535
- function Z(m, x, F, W, S) {
535
+ function Q(m, x, F, W, C) {
536
536
  return new p(
537
- (m || "React class") + ": " + x + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
537
+ (m || "React class") + ": " + x + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
538
538
  );
539
539
  }
540
- function q(m) {
541
- function x(F, W, S, P, g) {
542
- var _ = F[W], N = j(_);
540
+ function V(m) {
541
+ function x(F, W, C, P, y) {
542
+ var O = F[W], N = j(O);
543
543
  if (N !== "object")
544
- return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
544
+ return new p("Invalid " + P + " `" + y + "` of type `" + N + "` " + ("supplied to `" + C + "`, expected `object`."));
545
545
  for (var $ in m) {
546
546
  var D = m[$];
547
547
  if (typeof D != "function")
548
- return Z(S, P, g, $, V(D));
549
- var G = D(_, $, S, P, g + "." + $, r);
550
- if (G)
551
- return G;
548
+ return Q(C, P, y, $, q(D));
549
+ var J = D(O, $, C, P, y + "." + $, r);
550
+ if (J)
551
+ return J;
552
552
  }
553
553
  return null;
554
554
  }
555
- return O(x);
555
+ return T(x);
556
556
  }
557
557
  function te(m) {
558
- function x(F, W, S, P, g) {
559
- var _ = F[W], N = j(_);
558
+ function x(F, W, C, P, y) {
559
+ var O = F[W], N = j(O);
560
560
  if (N !== "object")
561
- return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
561
+ return new p("Invalid " + P + " `" + y + "` of type `" + N + "` " + ("supplied to `" + C + "`, expected `object`."));
562
562
  var $ = t({}, F[W], m);
563
563
  for (var D in $) {
564
- var G = m[D];
565
- if (n(m, D) && typeof G != "function")
566
- return Z(S, P, g, D, V(G));
567
- if (!G)
564
+ var J = m[D];
565
+ if (n(m, D) && typeof J != "function")
566
+ return Q(C, P, y, D, q(J));
567
+ if (!J)
568
568
  return new p(
569
- "Invalid " + P + " `" + g + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
569
+ "Invalid " + P + " `" + y + "` key `" + D + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
570
570
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
571
571
  );
572
- var C = G(_, D, S, P, g + "." + D, r);
573
- if (C)
574
- return C;
572
+ var S = J(O, D, C, P, y + "." + D, r);
573
+ if (S)
574
+ return S;
575
575
  }
576
576
  return null;
577
577
  }
578
- return O(x);
578
+ return T(x);
579
579
  }
580
- function X(m) {
580
+ function Z(m) {
581
581
  switch (typeof m) {
582
582
  case "number":
583
583
  case "string":
@@ -587,7 +587,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
587
587
  return !m;
588
588
  case "object":
589
589
  if (Array.isArray(m))
590
- return m.every(X);
590
+ return m.every(Z);
591
591
  if (m === null || a(m))
592
592
  return !0;
593
593
  var x = d(m);
@@ -595,12 +595,12 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
595
595
  var F = x.call(m), W;
596
596
  if (x !== m.entries) {
597
597
  for (; !(W = F.next()).done; )
598
- if (!X(W.value))
598
+ if (!Z(W.value))
599
599
  return !1;
600
600
  } else
601
601
  for (; !(W = F.next()).done; ) {
602
- var S = W.value;
603
- if (S && !X(S[1]))
602
+ var C = W.value;
603
+ if (C && !Z(C[1]))
604
604
  return !1;
605
605
  }
606
606
  } else
@@ -617,7 +617,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
617
617
  var x = typeof m;
618
618
  return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(x, m) ? "symbol" : x;
619
619
  }
620
- function V(m) {
620
+ function q(m) {
621
621
  if (typeof m > "u" || m === null)
622
622
  return "" + m;
623
623
  var x = j(m);
@@ -630,7 +630,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
630
630
  return x;
631
631
  }
632
632
  function M(m) {
633
- var x = V(m);
633
+ var x = q(m);
634
634
  switch (x) {
635
635
  case "array":
636
636
  case "object":
@@ -646,11 +646,11 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
646
646
  function R(m) {
647
647
  return !m.constructor || !m.constructor.name ? h : m.constructor.name;
648
648
  }
649
- return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
649
+ return l.checkPropTypes = o, l.resetWarningCache = o.resetWarningCache, l.PropTypes = l, l;
650
650
  }, dt;
651
651
  }
652
652
  var pt, Jt;
653
- function pr() {
653
+ function ur() {
654
654
  if (Jt) return pt;
655
655
  Jt = 1;
656
656
  var e = /* @__PURE__ */ Mt();
@@ -659,7 +659,7 @@ function pr() {
659
659
  function r() {
660
660
  }
661
661
  return r.resetWarningCache = t, pt = function() {
662
- function n(s, a, l, c, f, d) {
662
+ function n(s, a, u, c, f, d) {
663
663
  if (d !== e) {
664
664
  var h = new Error(
665
665
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -698,33 +698,33 @@ function pr() {
698
698
  }, pt;
699
699
  }
700
700
  var Qt;
701
- function mr() {
702
- if (Qt) return Me.exports;
701
+ function fr() {
702
+ if (Qt) return ke.exports;
703
703
  if (Qt = 1, process.env.NODE_ENV !== "production") {
704
- var e = Nn(), t = !0;
705
- Me.exports = /* @__PURE__ */ dr()(e.isElement, t);
704
+ var e = An(), t = !0;
705
+ ke.exports = /* @__PURE__ */ lr()(e.isElement, t);
706
706
  } else
707
- Me.exports = /* @__PURE__ */ pr()();
708
- return Me.exports;
707
+ ke.exports = /* @__PURE__ */ ur()();
708
+ return ke.exports;
709
709
  }
710
- var hr = /* @__PURE__ */ mr();
711
- const Le = /* @__PURE__ */ Pn(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
712
- const o = K("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
710
+ var dr = /* @__PURE__ */ fr();
711
+ const De = /* @__PURE__ */ On(dr), pr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
712
+ const o = X("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
713
713
  return /* @__PURE__ */ B("details", { className: o, id: `${n}`, children: [
714
714
  /* @__PURE__ */ B("summary", { className: "rpf-accordion__title", role: "button", children: [
715
715
  t,
716
- /* @__PURE__ */ w("span", { className: "rpf-accordion__icon" })
716
+ /* @__PURE__ */ g("span", { className: "rpf-accordion__icon" })
717
717
  ] }),
718
- /* @__PURE__ */ w(i, { className: "rpf-accordion__text", children: e })
718
+ /* @__PURE__ */ g(i, { className: "rpf-accordion__text", children: e })
719
719
  ] });
720
720
  };
721
- vr.propTypes = {
722
- content: Le.node.isRequired,
723
- title: Le.string.isRequired,
724
- id: Le.string,
725
- className: Le.string
721
+ pr.propTypes = {
722
+ content: De.node.isRequired,
723
+ title: De.string.isRequired,
724
+ id: De.string,
725
+ className: De.string
726
726
  };
727
- const Re = ({
727
+ const Ee = ({
728
728
  text: e,
729
729
  href: t,
730
730
  title: r,
@@ -733,17 +733,17 @@ const Re = ({
733
733
  variant: i = "",
734
734
  size: s = "default",
735
735
  icon: a = "",
736
- iconOnly: l = !1,
736
+ iconOnly: u = !1,
737
737
  iconPosition: c = "left",
738
738
  fullWidth: f = !1,
739
739
  disabled: d = !1,
740
740
  onClick: h = () => {
741
741
  },
742
- "aria-label": u = "",
742
+ "aria-label": l = "",
743
743
  linkComponent: v
744
744
  // to pass in react-router-dom Link component
745
745
  }) => {
746
- const p = a && l, O = K(
746
+ const p = a && u, T = X(
747
747
  // Static classes
748
748
  "rpf-button",
749
749
  // Conditional classes
@@ -758,33 +758,33 @@ const Re = ({
758
758
  n
759
759
  );
760
760
  let A = "rpf-button__icon";
761
- or.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
762
- const k = (b, I) => !I || c !== b ? null : typeof I == "string" ? /* @__PURE__ */ w("span", { className: A, children: I }) : I, y = () => e && !p && /* @__PURE__ */ w("span", { className: "text", children: e }), T = /* @__PURE__ */ B(ke, { children: [
763
- k("left", a),
764
- y(),
765
- k("right", a)
761
+ tr.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
762
+ const I = (b, k) => !k || c !== b ? null : typeof k == "string" ? /* @__PURE__ */ g("span", { className: A, children: k }) : k, w = () => e && !p && /* @__PURE__ */ g("span", { className: "text", children: e }), _ = /* @__PURE__ */ B(Ie, { children: [
763
+ I("left", a),
764
+ w(),
765
+ I("right", a)
766
766
  ] });
767
- return t ? /* @__PURE__ */ w(
767
+ return t ? /* @__PURE__ */ g(
768
768
  v || "a",
769
769
  {
770
- className: O,
770
+ className: T,
771
771
  ...v ? { to: t } : { href: t, role: "button" },
772
772
  onClick: h,
773
- "aria-label": u,
774
- children: T
773
+ "aria-label": l,
774
+ children: _
775
775
  }
776
- ) : /* @__PURE__ */ w(
776
+ ) : /* @__PURE__ */ g(
777
777
  "button",
778
778
  {
779
- className: O,
779
+ className: T,
780
780
  title: r,
781
781
  onClick: h,
782
782
  disabled: d,
783
- "aria-label": u,
784
- children: T
783
+ "aria-label": l,
784
+ children: _
785
785
  }
786
786
  );
787
- }, Ni = ({
787
+ }, Pi = ({
788
788
  title: e,
789
789
  text: t,
790
790
  titleChildren: r,
@@ -794,10 +794,10 @@ const Re = ({
794
794
  onClose: s
795
795
  }) => /* @__PURE__ */ B("div", { className: `rpf-alert rpf-alert--${o}`, children: [
796
796
  /* @__PURE__ */ B("div", { className: "rpf-alert__header", children: [
797
- /* @__PURE__ */ w("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
- r ? /* @__PURE__ */ w("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ w("p", { className: "rpf-alert__title", children: e }) : null,
799
- !!s && /* @__PURE__ */ w("div", { className: "rpf-alert__close", children: /* @__PURE__ */ w(
800
- Re,
797
+ /* @__PURE__ */ g("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
+ r ? /* @__PURE__ */ g("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ g("p", { className: "rpf-alert__title", children: e }) : null,
799
+ !!s && /* @__PURE__ */ g("div", { className: "rpf-alert__close", children: /* @__PURE__ */ g(
800
+ Ee,
801
801
  {
802
802
  type: "tertiary",
803
803
  icon: "close",
@@ -808,9 +808,9 @@ const Re = ({
808
808
  ) })
809
809
  ] }),
810
810
  (t || n || i) && /* @__PURE__ */ B("div", { className: "rpf-alert__body", children: [
811
- t ? /* @__PURE__ */ w("p", { children: t }) : n ? /* @__PURE__ */ w("div", { children: n }) : null,
812
- i && i.length > 0 && /* @__PURE__ */ w("div", { className: "rpf-alert__actions", children: i.map((a, l) => /* @__PURE__ */ w(
813
- Re,
811
+ t ? /* @__PURE__ */ g("p", { children: t }) : n ? /* @__PURE__ */ g("div", { children: n }) : null,
812
+ i && i.length > 0 && /* @__PURE__ */ g("div", { className: "rpf-alert__actions", children: i.map((a, u) => /* @__PURE__ */ g(
813
+ Ee,
814
814
  {
815
815
  text: a.label,
816
816
  size: "small",
@@ -818,10 +818,10 @@ const Re = ({
818
818
  href: a.href,
819
819
  onClick: a.onClick
820
820
  },
821
- l
821
+ u
822
822
  )) })
823
823
  ] })
824
- ] }), ki = ({
824
+ ] }), Ni = ({
825
825
  label: e,
826
826
  id: t,
827
827
  name: r,
@@ -829,22 +829,22 @@ const Re = ({
829
829
  ...o
830
830
  }) => {
831
831
  const { className: i, ...s } = o;
832
- return /* @__PURE__ */ B(ke, { children: [
832
+ return /* @__PURE__ */ B(Ie, { children: [
833
833
  /* @__PURE__ */ B(
834
834
  "label",
835
835
  {
836
- className: K("rpf-input-checkbox", {
836
+ className: X("rpf-input-checkbox", {
837
837
  "rpf-input-checkbox--error": n,
838
838
  className: i
839
839
  }),
840
840
  children: [
841
- /* @__PURE__ */ w("input", { id: t, name: r, type: "checkbox", ...s }),
841
+ /* @__PURE__ */ g("input", { id: t, name: r, type: "checkbox", ...s }),
842
842
  e
843
843
  ]
844
844
  }
845
845
  ),
846
846
  n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
847
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
847
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
848
848
  n
849
849
  ] })
850
850
  ] });
@@ -858,7 +858,7 @@ const Re = ({
858
858
  }) => /* @__PURE__ */ B(
859
859
  "fieldset",
860
860
  {
861
- className: K("rpf-fieldset", {
861
+ className: X("rpf-fieldset", {
862
862
  "rpf-fieldset--disabled": e,
863
863
  "rpf-fieldset--full-width": r,
864
864
  "rpf-fieldset--error": t
@@ -867,11 +867,11 @@ const Re = ({
867
867
  children: [
868
868
  /* @__PURE__ */ B("legend", { className: "rpf-label", children: [
869
869
  n,
870
- o.length > 0 ? /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o }) : null
870
+ o.length > 0 ? /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: o }) : null
871
871
  ] }),
872
- /* @__PURE__ */ w("div", { className: "rpf-fieldset__inputs", children: i }),
872
+ /* @__PURE__ */ g("div", { className: "rpf-fieldset__inputs", children: i }),
873
873
  t.length > 0 ? /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
874
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
874
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
875
875
  t
876
876
  ] }) : null
877
877
  ]
@@ -888,38 +888,38 @@ const Re = ({
888
888
  "label",
889
889
  {
890
890
  htmlFor: e,
891
- className: K("rpf-label", {
891
+ className: X("rpf-label", {
892
892
  "rpf-label--disabled": n
893
893
  }),
894
894
  children: [
895
895
  t,
896
- /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: i })
896
+ /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: i })
897
897
  ]
898
898
  }
899
899
  ),
900
900
  r,
901
901
  o && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
902
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
902
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
903
903
  o
904
904
  ] })
905
- ] }), Mi = ({
905
+ ] }), ki = ({
906
906
  label: e,
907
907
  inputFieldId: t,
908
908
  disabled: r = !1,
909
909
  hint: n = ""
910
- }) => /* @__PURE__ */ w("div", { className: "rpf-label", children: /* @__PURE__ */ B(
910
+ }) => /* @__PURE__ */ g("div", { className: "rpf-label", children: /* @__PURE__ */ B(
911
911
  "label",
912
912
  {
913
913
  htmlFor: t,
914
- className: K("rpf-label", {
914
+ className: X("rpf-label", {
915
915
  "rpf-label--disabled": r
916
916
  }),
917
917
  children: [
918
918
  e,
919
- n && /* @__PURE__ */ w("div", { className: "rpf-label__hint", children: n })
919
+ n && /* @__PURE__ */ g("div", { className: "rpf-label__hint", children: n })
920
920
  ]
921
921
  }
922
- ) }), Di = ({
922
+ ) }), Mi = ({
923
923
  disabled: e = !1,
924
924
  readOnly: t = !1,
925
925
  fullWidth: r = !1,
@@ -928,41 +928,41 @@ const Re = ({
928
928
  id: i,
929
929
  hint: s = "",
930
930
  showPasswordLabel: a = "Show",
931
- hidePasswordLabel: l = "Hide",
931
+ hidePasswordLabel: u = "Hide",
932
932
  forgotPasswordLabel: c = "Forgot password?",
933
933
  forgotPasswordHref: f,
934
934
  ...d
935
935
  }) => {
936
- const [h, u] = On(!1);
936
+ const [h, l] = Sn(!1);
937
937
  return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
938
938
  /* @__PURE__ */ B(
939
939
  "label",
940
940
  {
941
941
  htmlFor: i,
942
- className: K("rpf-label", {
942
+ className: X("rpf-label", {
943
943
  "rpf-label--disabled": e,
944
944
  "rpf-label--readonly": t
945
945
  }),
946
946
  children: [
947
947
  o,
948
- s && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: s })
948
+ s && /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: s })
949
949
  ]
950
950
  }
951
951
  ),
952
952
  /* @__PURE__ */ B(
953
953
  "div",
954
954
  {
955
- className: K("rpf-input-password__container", {
955
+ className: X("rpf-input-password__container", {
956
956
  "rpf-input-password__container--full-width": r,
957
957
  "rpf-input-password__container--error": n,
958
958
  "rpf-input-password__container--disabled": e,
959
959
  "rpf-input-password__container--readonly": t
960
960
  }),
961
961
  children: [
962
- /* @__PURE__ */ w(
962
+ /* @__PURE__ */ g(
963
963
  "input",
964
964
  {
965
- className: K("rpf-input rpf-input-password", {
965
+ className: X("rpf-input rpf-input-password", {
966
966
  "rpf-input--disabled": e,
967
967
  "rpf-input--readonly": t,
968
968
  "rpf-input--error": n,
@@ -975,11 +975,11 @@ const Re = ({
975
975
  ...d
976
976
  }
977
977
  ),
978
- /* @__PURE__ */ w(
978
+ /* @__PURE__ */ g(
979
979
  "button",
980
980
  {
981
981
  type: "button",
982
- className: K(
982
+ className: X(
983
983
  "rpf-button rpf-button--tertiary rpf-input-password__button",
984
984
  {
985
985
  "rpf-button--disabled": e,
@@ -987,20 +987,20 @@ const Re = ({
987
987
  }
988
988
  ),
989
989
  disabled: e,
990
- onClick: () => u((v) => !v),
991
- children: h ? l : a
990
+ onClick: () => l((v) => !v),
991
+ children: h ? u : a
992
992
  }
993
993
  )
994
994
  ]
995
995
  }
996
996
  ),
997
997
  n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
998
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
998
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
999
999
  n
1000
1000
  ] }),
1001
- f && /* @__PURE__ */ w("a", { href: f, className: "rpf-link rpf-link--block", children: c })
1001
+ f && /* @__PURE__ */ g("a", { href: f, className: "rpf-link rpf-link--block", children: c })
1002
1002
  ] });
1003
- }, Li = ({
1003
+ }, Di = ({
1004
1004
  label: e,
1005
1005
  id: t,
1006
1006
  name: r,
@@ -1009,16 +1009,16 @@ const Re = ({
1009
1009
  }) => /* @__PURE__ */ B(
1010
1010
  "label",
1011
1011
  {
1012
- className: K("rpf-input-radio", {
1012
+ className: X("rpf-input-radio", {
1013
1013
  "rpf-input-radio--disabled": o.disabled,
1014
1014
  "rpf-input--full-width": n
1015
1015
  }),
1016
1016
  children: [
1017
- /* @__PURE__ */ w("input", { type: "radio", id: t, name: r, ...o }),
1017
+ /* @__PURE__ */ g("input", { type: "radio", id: t, name: r, ...o }),
1018
1018
  e
1019
1019
  ]
1020
1020
  }
1021
- ), Fi = ({
1021
+ ), Li = ({
1022
1022
  label: e,
1023
1023
  inputFieldId: t,
1024
1024
  disabled: r = !1,
@@ -1028,27 +1028,27 @@ const Re = ({
1028
1028
  defaultValue: s = "",
1029
1029
  onClick: a = () => {
1030
1030
  },
1031
- onChange: l = () => {
1031
+ onChange: u = () => {
1032
1032
  }
1033
- }) => /* @__PURE__ */ w("search", { children: /* @__PURE__ */ B("form", { className: "rpf-input-field", onSubmit: a, children: [
1033
+ }) => /* @__PURE__ */ g("search", { children: /* @__PURE__ */ B("form", { className: "rpf-input-field", onSubmit: a, children: [
1034
1034
  /* @__PURE__ */ B(
1035
1035
  "label",
1036
1036
  {
1037
1037
  htmlFor: t,
1038
- className: K("rpf-label", {
1038
+ className: X("rpf-label", {
1039
1039
  "rpf-label--disabled": r
1040
1040
  }),
1041
1041
  children: [
1042
1042
  e,
1043
- o && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o })
1043
+ o && /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: o })
1044
1044
  ]
1045
1045
  }
1046
1046
  ),
1047
1047
  /* @__PURE__ */ B("div", { className: "rpf-input-search-container", children: [
1048
- /* @__PURE__ */ w(
1048
+ /* @__PURE__ */ g(
1049
1049
  "input",
1050
1050
  {
1051
- className: K("rpf-input rpf-input-search", {
1051
+ className: X("rpf-input rpf-input-search", {
1052
1052
  "rpf-input--disabled": r,
1053
1053
  "rpf-input--error": n
1054
1054
  }),
@@ -1059,28 +1059,28 @@ const Re = ({
1059
1059
  "aria-label": "Search",
1060
1060
  defaultValue: s,
1061
1061
  placeholder: i,
1062
- onChange: l
1062
+ onChange: u
1063
1063
  }
1064
1064
  ),
1065
- /* @__PURE__ */ w(
1065
+ /* @__PURE__ */ g(
1066
1066
  "button",
1067
1067
  {
1068
1068
  type: "submit",
1069
- className: K("rpf-button rpf-button-search", {
1069
+ className: X("rpf-button rpf-button-search", {
1070
1070
  "rpf-button--disabled": r,
1071
1071
  "rpf-button--error": n
1072
1072
  }),
1073
1073
  disabled: r,
1074
1074
  onClick: a,
1075
- children: /* @__PURE__ */ w("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1075
+ children: /* @__PURE__ */ g("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1076
1076
  }
1077
1077
  )
1078
1078
  ] }),
1079
1079
  n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
1080
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1080
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1081
1081
  n
1082
1082
  ] })
1083
- ] }) }), $i = ({
1083
+ ] }) }), Fi = ({
1084
1084
  id: e,
1085
1085
  label: t,
1086
1086
  name: r,
@@ -1089,12 +1089,12 @@ const Re = ({
1089
1089
  error: i = "",
1090
1090
  fullWidth: s = !1,
1091
1091
  hint: a = "",
1092
- onChange: l = () => {
1092
+ onChange: u = () => {
1093
1093
  },
1094
1094
  placeholder: c = "",
1095
1095
  value: f = "",
1096
1096
  ...d
1097
- }) => /* @__PURE__ */ w(
1097
+ }) => /* @__PURE__ */ g(
1098
1098
  Dt,
1099
1099
  {
1100
1100
  id: e,
@@ -1105,24 +1105,24 @@ const Re = ({
1105
1105
  children: /* @__PURE__ */ B(
1106
1106
  "select",
1107
1107
  {
1108
- className: K("rpf-input rpf-input-select", {
1108
+ className: X("rpf-input rpf-input-select", {
1109
1109
  "rpf-input--error": i,
1110
1110
  "rpf-input--full-width": s
1111
1111
  }),
1112
1112
  disabled: o,
1113
1113
  id: e,
1114
1114
  name: r,
1115
- onChange: l,
1115
+ onChange: u,
1116
1116
  value: f,
1117
1117
  ...d,
1118
1118
  children: [
1119
- !f && !!c && /* @__PURE__ */ w("option", { value: "", disabled: !0, children: c }),
1120
- n.map((h) => /* @__PURE__ */ w("option", { value: h.key, children: h.value }, h.key))
1119
+ !f && !!c && /* @__PURE__ */ g("option", { value: "", disabled: !0, children: c }),
1120
+ n.map((h) => /* @__PURE__ */ g("option", { value: h.key, children: h.value }, h.key))
1121
1121
  ]
1122
1122
  }
1123
1123
  )
1124
1124
  }
1125
- ), br = It(
1125
+ ), mr = kt(
1126
1126
  ({
1127
1127
  label: e,
1128
1128
  id: t,
@@ -1132,19 +1132,19 @@ const Re = ({
1132
1132
  reverse: i = !1,
1133
1133
  hint: s = "",
1134
1134
  alignStart: a = !1,
1135
- hideLabel: l = !1,
1135
+ hideLabel: u = !1,
1136
1136
  icon: c = !1,
1137
1137
  className: f,
1138
1138
  disabled: d = !1,
1139
1139
  "aria-describedby": h,
1140
- ...u
1140
+ ...l
1141
1141
  }, v) => {
1142
- const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
1142
+ const p = n ? `${t}-error` : void 0, T = [h, p].filter(Boolean).join(" ") || void 0;
1143
1143
  return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
1144
1144
  /* @__PURE__ */ B(
1145
1145
  "label",
1146
1146
  {
1147
- className: K(
1147
+ className: X(
1148
1148
  "rpf-switch",
1149
1149
  {
1150
1150
  "rpf-switch--full-width": o,
@@ -1158,7 +1158,7 @@ const Re = ({
1158
1158
  ),
1159
1159
  children: [
1160
1160
  /* @__PURE__ */ B("span", { className: "rpf-switch__track", children: [
1161
- /* @__PURE__ */ w(
1161
+ /* @__PURE__ */ g(
1162
1162
  "input",
1163
1163
  {
1164
1164
  ref: v,
@@ -1169,22 +1169,22 @@ const Re = ({
1169
1169
  className: "rpf-switch__checkbox",
1170
1170
  disabled: d,
1171
1171
  "aria-invalid": n ? !0 : void 0,
1172
- "aria-describedby": O,
1173
- ...u
1172
+ "aria-describedby": T,
1173
+ ...l
1174
1174
  }
1175
1175
  ),
1176
- /* @__PURE__ */ w("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ w("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1176
+ /* @__PURE__ */ g("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ g("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1177
1177
  ] }),
1178
1178
  /* @__PURE__ */ B(
1179
1179
  "span",
1180
1180
  {
1181
- className: K("rpf-label", "rpf-switch__label", {
1181
+ className: X("rpf-label", "rpf-switch__label", {
1182
1182
  "rpf-label--disabled": d,
1183
- "rpf-visually-hidden": l
1183
+ "rpf-visually-hidden": u
1184
1184
  }),
1185
1185
  children: [
1186
- /* @__PURE__ */ w("span", { children: e }),
1187
- s ? /* @__PURE__ */ w("span", { className: "rpf-label__hint", children: s }) : null
1186
+ /* @__PURE__ */ g("span", { children: e }),
1187
+ s ? /* @__PURE__ */ g("span", { className: "rpf-label__hint", children: s }) : null
1188
1188
  ]
1189
1189
  }
1190
1190
  )
@@ -1192,14 +1192,14 @@ const Re = ({
1192
1192
  }
1193
1193
  ),
1194
1194
  n ? /* @__PURE__ */ B("div", { id: p, className: "rpf-error-message", children: [
1195
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
1195
+ /* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
1196
1196
  n
1197
1197
  ] }) : null
1198
1198
  ] });
1199
1199
  }
1200
1200
  );
1201
- br.displayName = "Switch";
1202
- const ji = ({
1201
+ mr.displayName = "Switch";
1202
+ const $i = ({
1203
1203
  id: e,
1204
1204
  label: t,
1205
1205
  name: r,
@@ -1208,21 +1208,21 @@ const ji = ({
1208
1208
  readOnly: i = !1,
1209
1209
  error: s = "",
1210
1210
  fullWidth: a = !1,
1211
- hint: l = "",
1211
+ hint: u = "",
1212
1212
  onChange: c = () => {
1213
1213
  }
1214
- }) => /* @__PURE__ */ w(
1214
+ }) => /* @__PURE__ */ g(
1215
1215
  Dt,
1216
1216
  {
1217
1217
  id: e,
1218
1218
  disabled: o,
1219
1219
  error: s,
1220
- hint: l,
1220
+ hint: u,
1221
1221
  label: t,
1222
- children: /* @__PURE__ */ w(
1222
+ children: /* @__PURE__ */ g(
1223
1223
  "textarea",
1224
1224
  {
1225
- className: K("rpf-input rpf-input-textarea", {
1225
+ className: X("rpf-input rpf-input-textarea", {
1226
1226
  "rpf-input--error": s,
1227
1227
  "rpf-input--full-width": a,
1228
1228
  "rpf-input--disabled": o
@@ -1236,7 +1236,7 @@ const ji = ({
1236
1236
  }
1237
1237
  )
1238
1238
  }
1239
- ), Wi = ({
1239
+ ), ji = ({
1240
1240
  id: e,
1241
1241
  name: t,
1242
1242
  label: r,
@@ -1245,7 +1245,7 @@ const ji = ({
1245
1245
  hint: i = "",
1246
1246
  type: s = "text",
1247
1247
  ...a
1248
- }) => /* @__PURE__ */ w(
1248
+ }) => /* @__PURE__ */ g(
1249
1249
  Dt,
1250
1250
  {
1251
1251
  id: e,
@@ -1253,10 +1253,10 @@ const ji = ({
1253
1253
  error: n,
1254
1254
  hint: i,
1255
1255
  label: r,
1256
- children: /* @__PURE__ */ w(
1256
+ children: /* @__PURE__ */ g(
1257
1257
  "input",
1258
1258
  {
1259
- className: K("rpf-input rpf-input-text", {
1259
+ className: X("rpf-input rpf-input-text", {
1260
1260
  "rpf-input--error": n,
1261
1261
  "rpf-input--full-width": o
1262
1262
  }),
@@ -1268,12 +1268,12 @@ const ji = ({
1268
1268
  )
1269
1269
  }
1270
1270
  );
1271
- function yr(e, t) {
1271
+ function hr(e, t) {
1272
1272
  const r = Rt(null), n = Rt(null);
1273
- return We(() => {
1273
+ return je(() => {
1274
1274
  const o = r.current;
1275
1275
  o && (e && !o.open ? o.showModal() : !e && o.open && o.close());
1276
- }, [e]), We(() => {
1276
+ }, [e]), je(() => {
1277
1277
  const o = r.current;
1278
1278
  if (!o) return;
1279
1279
  const i = () => t(!1), s = (a) => {
@@ -1282,7 +1282,7 @@ function yr(e, t) {
1282
1282
  return o.addEventListener("close", i), o.addEventListener("cancel", s), () => {
1283
1283
  o.removeEventListener("close", i), o.removeEventListener("cancel", s);
1284
1284
  };
1285
- }, [t]), We(() => {
1285
+ }, [t]), je(() => {
1286
1286
  const o = r.current, i = n.current;
1287
1287
  if (!o || !i) return;
1288
1288
  const s = (a) => {
@@ -1291,7 +1291,7 @@ function yr(e, t) {
1291
1291
  return o.addEventListener("mousedown", s), () => o.removeEventListener("mousedown", s);
1292
1292
  }, [e, t]), { dialogRef: r, contentRef: n };
1293
1293
  }
1294
- const Bi = ({
1294
+ const Wi = ({
1295
1295
  isOpen: e,
1296
1296
  setIsOpen: t,
1297
1297
  heading: r,
@@ -1300,15 +1300,15 @@ const Bi = ({
1300
1300
  primaryButtonText: i,
1301
1301
  onClickPrimaryButton: s,
1302
1302
  secondaryButtonText: a,
1303
- secondaryButtonLink: l,
1303
+ secondaryButtonLink: u,
1304
1304
  onClickSecondaryButton: c,
1305
1305
  tertiaryButtonText: f,
1306
1306
  tertiaryButtonLink: d,
1307
1307
  onClickTertiaryButton: h,
1308
- showCloseButton: u = !0
1308
+ showCloseButton: l = !0
1309
1309
  }) => {
1310
- const { dialogRef: v, contentRef: p } = yr(e, t);
1311
- return /* @__PURE__ */ w(
1310
+ const { dialogRef: v, contentRef: p } = hr(e, t);
1311
+ return /* @__PURE__ */ g(
1312
1312
  "dialog",
1313
1313
  {
1314
1314
  ref: v,
@@ -1317,9 +1317,9 @@ const Bi = ({
1317
1317
  "aria-describedby": "modal-description",
1318
1318
  children: /* @__PURE__ */ B("div", { ref: p, className: "rpf-modal__wrapper", children: [
1319
1319
  /* @__PURE__ */ B("div", { className: "rpf-modal__header", children: [
1320
- /* @__PURE__ */ w("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1321
- u && /* @__PURE__ */ w(
1322
- Re,
1320
+ /* @__PURE__ */ g("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1321
+ l && /* @__PURE__ */ g(
1322
+ Ee,
1323
1323
  {
1324
1324
  icon: "close",
1325
1325
  iconOnly: !0,
@@ -1329,10 +1329,10 @@ const Bi = ({
1329
1329
  }
1330
1330
  )
1331
1331
  ] }),
1332
- /* @__PURE__ */ w("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1332
+ /* @__PURE__ */ g("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1333
1333
  /* @__PURE__ */ B("div", { className: "rpf-modal__buttons", children: [
1334
- /* @__PURE__ */ w(
1335
- Re,
1334
+ /* @__PURE__ */ g(
1335
+ Ee,
1336
1336
  {
1337
1337
  text: i,
1338
1338
  href: o,
@@ -1340,17 +1340,17 @@ const Bi = ({
1340
1340
  type: "primary"
1341
1341
  }
1342
1342
  ),
1343
- a && /* @__PURE__ */ w(
1344
- Re,
1343
+ a && /* @__PURE__ */ g(
1344
+ Ee,
1345
1345
  {
1346
1346
  text: a,
1347
- href: l,
1347
+ href: u,
1348
1348
  onClick: c,
1349
1349
  type: "secondary"
1350
1350
  }
1351
1351
  ),
1352
- f && /* @__PURE__ */ w(
1353
- Re,
1352
+ f && /* @__PURE__ */ g(
1353
+ Ee,
1354
1354
  {
1355
1355
  text: f,
1356
1356
  href: d,
@@ -1362,47 +1362,47 @@ const Bi = ({
1362
1362
  ] })
1363
1363
  }
1364
1364
  );
1365
- }, gr = ({ className: e, children: t }) => {
1366
- const r = K("rpf-menu", e);
1367
- return /* @__PURE__ */ w("ul", { className: r, children: t });
1365
+ }, vr = ({ className: e, children: t }) => {
1366
+ const r = X("rpf-menu", e);
1367
+ return /* @__PURE__ */ g("ul", { className: r, children: t });
1368
1368
  };
1369
- function Qe() {
1369
+ function Je() {
1370
1370
  return typeof window < "u";
1371
1371
  }
1372
- function ye(e) {
1373
- return In(e) ? (e.nodeName || "").toLowerCase() : "#document";
1372
+ function be(e) {
1373
+ return Nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1374
1374
  }
1375
- function ie(e) {
1375
+ function oe(e) {
1376
1376
  var t;
1377
1377
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1378
1378
  }
1379
- function ue(e) {
1379
+ function de(e) {
1380
1380
  var t;
1381
- return (t = (In(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1381
+ return (t = (Nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1382
1382
  }
1383
- function In(e) {
1384
- return Qe() ? e instanceof Node || e instanceof ie(e).Node : !1;
1383
+ function Nn(e) {
1384
+ return Je() ? e instanceof Node || e instanceof oe(e).Node : !1;
1385
1385
  }
1386
1386
  function ee(e) {
1387
- return Qe() ? e instanceof Element || e instanceof ie(e).Element : !1;
1387
+ return Je() ? e instanceof Element || e instanceof oe(e).Element : !1;
1388
1388
  }
1389
1389
  function ne(e) {
1390
- return Qe() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
1390
+ return Je() ? e instanceof HTMLElement || e instanceof oe(e).HTMLElement : !1;
1391
1391
  }
1392
- function St(e) {
1393
- return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
1392
+ function Ct(e) {
1393
+ return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof oe(e).ShadowRoot;
1394
1394
  }
1395
- function Ie(e) {
1395
+ function Qe(e) {
1396
1396
  const {
1397
1397
  overflow: t,
1398
1398
  overflowX: r,
1399
1399
  overflowY: n,
1400
1400
  display: o
1401
- } = se(e);
1401
+ } = ce(e);
1402
1402
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
1403
1403
  }
1404
- function wr(e) {
1405
- return /^(table|td|th)$/.test(ye(e));
1404
+ function br(e) {
1405
+ return /^(table|td|th)$/.test(be(e));
1406
1406
  }
1407
1407
  function et(e) {
1408
1408
  try {
@@ -1416,31 +1416,31 @@ function et(e) {
1416
1416
  return !1;
1417
1417
  }
1418
1418
  }
1419
- const xr = /transform|translate|scale|rotate|perspective|filter/, Er = /paint|layout|strict|content/, ge = (e) => !!e && e !== "none";
1419
+ const yr = /transform|translate|scale|rotate|perspective|filter/, gr = /paint|layout|strict|content/, ye = (e) => !!e && e !== "none";
1420
1420
  let mt;
1421
1421
  function Lt(e) {
1422
- const t = ee(e) ? se(e) : e;
1423
- return ge(t.transform) || ge(t.translate) || ge(t.scale) || ge(t.rotate) || ge(t.perspective) || !tt() && (ge(t.backdropFilter) || ge(t.filter)) || xr.test(t.willChange || "") || Er.test(t.contain || "");
1422
+ const t = ee(e) ? ce(e) : e;
1423
+ return ye(t.transform) || ye(t.translate) || ye(t.scale) || ye(t.rotate) || ye(t.perspective) || !tt() && (ye(t.backdropFilter) || ye(t.filter)) || yr.test(t.willChange || "") || gr.test(t.contain || "");
1424
1424
  }
1425
- function Rr(e) {
1426
- let t = pe(e);
1427
- for (; ne(t) && !be(t); ) {
1425
+ function wr(e) {
1426
+ let t = ve(e);
1427
+ for (; ne(t) && !Te(t); ) {
1428
1428
  if (Lt(t))
1429
1429
  return t;
1430
1430
  if (et(t))
1431
1431
  return null;
1432
- t = pe(t);
1432
+ t = ve(t);
1433
1433
  }
1434
1434
  return null;
1435
1435
  }
1436
1436
  function tt() {
1437
1437
  return mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), mt;
1438
1438
  }
1439
- function be(e) {
1440
- return /^(html|body|#document)$/.test(ye(e));
1439
+ function Te(e) {
1440
+ return /^(html|body|#document)$/.test(be(e));
1441
1441
  }
1442
- function se(e) {
1443
- return ie(e).getComputedStyle(e);
1442
+ function ce(e) {
1443
+ return oe(e).getComputedStyle(e);
1444
1444
  }
1445
1445
  function nt(e) {
1446
1446
  return ee(e) ? {
@@ -1451,36 +1451,36 @@ function nt(e) {
1451
1451
  scrollTop: e.scrollY
1452
1452
  };
1453
1453
  }
1454
- function pe(e) {
1455
- if (ye(e) === "html")
1454
+ function ve(e) {
1455
+ if (be(e) === "html")
1456
1456
  return e;
1457
1457
  const t = (
1458
1458
  // Step into the shadow DOM of the parent of a slotted node.
1459
1459
  e.assignedSlot || // DOM Element detected.
1460
1460
  e.parentNode || // ShadowRoot detected.
1461
- St(e) && e.host || // Fallback.
1462
- ue(e)
1461
+ Ct(e) && e.host || // Fallback.
1462
+ de(e)
1463
1463
  );
1464
- return St(t) ? t.host : t;
1464
+ return Ct(t) ? t.host : t;
1465
1465
  }
1466
- function Mn(e) {
1467
- const t = pe(e);
1468
- return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && Ie(t) ? t : Mn(t);
1466
+ function In(e) {
1467
+ const t = ve(e);
1468
+ return Te(t) ? (e.ownerDocument || e).body : ne(t) && Qe(t) ? t : In(t);
1469
1469
  }
1470
- function ve(e, t, r) {
1470
+ function he(e, t, r) {
1471
1471
  var n;
1472
1472
  t === void 0 && (t = []), r === void 0 && (r = !0);
1473
- const o = Mn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
1473
+ const o = In(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = oe(o);
1474
1474
  if (i) {
1475
- const a = Ct(s);
1476
- return t.concat(s, s.visualViewport || [], Ie(o) ? o : [], a && r ? ve(a) : []);
1475
+ const a = St(s);
1476
+ return t.concat(s, s.visualViewport || [], Qe(o) ? o : [], a && r ? he(a) : []);
1477
1477
  } else
1478
- return t.concat(o, ve(o, [], r));
1478
+ return t.concat(o, he(o, [], r));
1479
1479
  }
1480
- function Ct(e) {
1480
+ function St(e) {
1481
1481
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1482
1482
  }
1483
- function we(e) {
1483
+ function ge(e) {
1484
1484
  let t = e.activeElement;
1485
1485
  for (; ((r = t) == null || (r = r.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
1486
1486
  var r;
@@ -1488,13 +1488,13 @@ function we(e) {
1488
1488
  }
1489
1489
  return t;
1490
1490
  }
1491
- function oe(e, t) {
1491
+ function ie(e, t) {
1492
1492
  if (!e || !t)
1493
1493
  return !1;
1494
1494
  const r = t.getRootNode == null ? void 0 : t.getRootNode();
1495
1495
  if (e.contains(t))
1496
1496
  return !0;
1497
- if (r && St(r)) {
1497
+ if (r && Ct(r)) {
1498
1498
  let n = t;
1499
1499
  for (; n; ) {
1500
1500
  if (e === n)
@@ -1504,11 +1504,11 @@ function oe(e, t) {
1504
1504
  }
1505
1505
  return !1;
1506
1506
  }
1507
- function Tr() {
1507
+ function xr() {
1508
1508
  const e = navigator.userAgentData;
1509
1509
  return e != null && e.platform ? e.platform : navigator.platform;
1510
1510
  }
1511
- function Dn() {
1511
+ function kn() {
1512
1512
  const e = navigator.userAgentData;
1513
1513
  return e && Array.isArray(e.brands) ? e.brands.map((t) => {
1514
1514
  let {
@@ -1518,33 +1518,33 @@ function Dn() {
1518
1518
  return r + "/" + n;
1519
1519
  }).join(" ") : navigator.userAgent;
1520
1520
  }
1521
- function Sr(e) {
1521
+ function Er(e) {
1522
1522
  return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
1523
1523
  }
1524
- function Cr(e) {
1525
- return Or() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1524
+ function Rr(e) {
1525
+ return Cr() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1526
1526
  e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
1527
1527
  }
1528
- function _r() {
1528
+ function Tr() {
1529
1529
  return /apple/i.test(navigator.vendor);
1530
1530
  }
1531
1531
  function _t() {
1532
1532
  const e = /android/i;
1533
- return e.test(Tr()) || e.test(Dn());
1533
+ return e.test(xr()) || e.test(kn());
1534
1534
  }
1535
- function Or() {
1536
- return Dn().includes("jsdom/");
1535
+ function Cr() {
1536
+ return kn().includes("jsdom/");
1537
1537
  }
1538
1538
  function en(e, t) {
1539
1539
  return ["mouse", "pen"].includes(e);
1540
1540
  }
1541
- function Ar(e) {
1541
+ function Sr(e) {
1542
1542
  return "nativeEvent" in e;
1543
1543
  }
1544
- function Pr(e) {
1544
+ function _r(e) {
1545
1545
  return e.matches("html,body");
1546
1546
  }
1547
- function ce(e) {
1547
+ function ae(e) {
1548
1548
  return (e == null ? void 0 : e.ownerDocument) || document;
1549
1549
  }
1550
1550
  function ht(e, t) {
@@ -1555,106 +1555,106 @@ function ht(e, t) {
1555
1555
  const r = e;
1556
1556
  return r.target != null && t.contains(r.target);
1557
1557
  }
1558
- function Ee(e) {
1558
+ function xe(e) {
1559
1559
  return "composedPath" in e ? e.composedPath()[0] : e.target;
1560
1560
  }
1561
- const Nr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1562
- function Ln(e) {
1563
- return ne(e) && e.matches(Nr);
1561
+ const Or = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1562
+ function Mn(e) {
1563
+ return ne(e) && e.matches(Or);
1564
1564
  }
1565
1565
  function vt(e) {
1566
1566
  e.preventDefault(), e.stopPropagation();
1567
1567
  }
1568
- function kr(e) {
1569
- return e ? e.getAttribute("role") === "combobox" && Ln(e) : !1;
1568
+ function Ar(e) {
1569
+ return e ? e.getAttribute("role") === "combobox" && Mn(e) : !1;
1570
1570
  }
1571
- const qe = Math.min, Te = Math.max, Ve = Math.round, Fe = Math.floor, le = (e) => ({
1571
+ const Be = Math.min, Re = Math.max, Ve = Math.round, Le = Math.floor, fe = (e) => ({
1572
1572
  x: e,
1573
1573
  y: e
1574
- }), Ir = {
1574
+ }), Pr = {
1575
1575
  left: "right",
1576
1576
  right: "left",
1577
1577
  bottom: "top",
1578
1578
  top: "bottom"
1579
1579
  };
1580
- function tn(e, t, r) {
1581
- return Te(e, qe(t, r));
1580
+ function Nr(e, t, r) {
1581
+ return Re(e, Be(t, r));
1582
1582
  }
1583
1583
  function rt(e, t) {
1584
1584
  return typeof e == "function" ? e(t) : e;
1585
1585
  }
1586
- function Se(e) {
1586
+ function Ae(e) {
1587
1587
  return e.split("-")[0];
1588
1588
  }
1589
1589
  function ot(e) {
1590
1590
  return e.split("-")[1];
1591
1591
  }
1592
- function Fn(e) {
1592
+ function Dn(e) {
1593
1593
  return e === "x" ? "y" : "x";
1594
1594
  }
1595
- function $n(e) {
1595
+ function Ln(e) {
1596
1596
  return e === "y" ? "height" : "width";
1597
1597
  }
1598
- function he(e) {
1598
+ function me(e) {
1599
1599
  const t = e[0];
1600
1600
  return t === "t" || t === "b" ? "y" : "x";
1601
1601
  }
1602
- function jn(e) {
1603
- return Fn(he(e));
1602
+ function Fn(e) {
1603
+ return Dn(me(e));
1604
1604
  }
1605
- function Mr(e, t, r) {
1605
+ function Ir(e, t, r) {
1606
1606
  r === void 0 && (r = !1);
1607
- const n = ot(e), o = jn(e), i = $n(o);
1607
+ const n = ot(e), o = Fn(e), i = Ln(o);
1608
1608
  let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1609
- return t.reference[i] > t.floating[i] && (s = Ye(s)), [s, Ye(s)];
1609
+ return t.reference[i] > t.floating[i] && (s = qe(s)), [s, qe(s)];
1610
1610
  }
1611
- function Dr(e) {
1612
- const t = Ye(e);
1611
+ function kr(e) {
1612
+ const t = qe(e);
1613
1613
  return [Ot(e), t, Ot(t)];
1614
1614
  }
1615
1615
  function Ot(e) {
1616
1616
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
1617
1617
  }
1618
- const nn = ["left", "right"], rn = ["right", "left"], Lr = ["top", "bottom"], Fr = ["bottom", "top"];
1619
- function $r(e, t, r) {
1618
+ const tn = ["left", "right"], nn = ["right", "left"], Mr = ["top", "bottom"], Dr = ["bottom", "top"];
1619
+ function Lr(e, t, r) {
1620
1620
  switch (e) {
1621
1621
  case "top":
1622
1622
  case "bottom":
1623
- return r ? t ? rn : nn : t ? nn : rn;
1623
+ return r ? t ? nn : tn : t ? tn : nn;
1624
1624
  case "left":
1625
1625
  case "right":
1626
- return t ? Lr : Fr;
1626
+ return t ? Mr : Dr;
1627
1627
  default:
1628
1628
  return [];
1629
1629
  }
1630
1630
  }
1631
- function jr(e, t, r, n) {
1631
+ function Fr(e, t, r, n) {
1632
1632
  const o = ot(e);
1633
- let i = $r(Se(e), r === "start", n);
1633
+ let i = Lr(Ae(e), r === "start", n);
1634
1634
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
1635
1635
  }
1636
- function Ye(e) {
1637
- const t = Se(e);
1638
- return Ir[t] + e.slice(t.length);
1636
+ function qe(e) {
1637
+ const t = Ae(e);
1638
+ return Pr[t] + e.slice(t.length);
1639
1639
  }
1640
- function Wr(e) {
1640
+ function $r(e) {
1641
+ var t, r, n, o;
1641
1642
  return {
1642
- top: 0,
1643
- right: 0,
1644
- bottom: 0,
1645
- left: 0,
1646
- ...e
1643
+ top: (t = e.top) != null ? t : 0,
1644
+ right: (r = e.right) != null ? r : 0,
1645
+ bottom: (n = e.bottom) != null ? n : 0,
1646
+ left: (o = e.left) != null ? o : 0
1647
1647
  };
1648
1648
  }
1649
- function Br(e) {
1650
- return typeof e != "number" ? Wr(e) : {
1649
+ function jr(e) {
1650
+ return typeof e != "number" ? $r(e) : {
1651
1651
  top: e,
1652
1652
  right: e,
1653
1653
  bottom: e,
1654
1654
  left: e
1655
1655
  };
1656
1656
  }
1657
- function Ue(e) {
1657
+ function Ye(e) {
1658
1658
  const {
1659
1659
  x: t,
1660
1660
  y: r,
@@ -1673,84 +1673,84 @@ function Ue(e) {
1673
1673
  };
1674
1674
  }
1675
1675
  /*!
1676
- * tabbable 6.4.0
1676
+ * tabbable 6.5.0
1677
1677
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1678
1678
  */
1679
- var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), Wn = typeof Element > "u", Pe = Wn ? function() {
1680
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !Wn && Element.prototype.getRootNode ? function(e) {
1679
+ var Wr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], Ue = /* @__PURE__ */ Wr.join(","), $n = typeof Element > "u", Pe = $n ? function() {
1680
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, He = !$n && Element.prototype.getRootNode ? function(e) {
1681
1681
  var t;
1682
1682
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1683
1683
  } : function(e) {
1684
1684
  return e == null ? void 0 : e.ownerDocument;
1685
- }, ze = function(t, r) {
1685
+ }, Ke = function(t, r) {
1686
1686
  var n;
1687
1687
  r === void 0 && (r = !0);
1688
1688
  var o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = o === "" || o === "true", s = i || r && t && // closest does not exist on shadow roots, so we fall back to a manual
1689
1689
  // lookup upward, in case it is not defined.
1690
- (typeof t.closest == "function" ? t.closest("[inert]") : ze(t.parentNode));
1690
+ (typeof t.closest == "function" ? t.closest("[inert]") : Ke(t.parentNode));
1691
1691
  return s;
1692
- }, Vr = function(t) {
1692
+ }, Br = function(t) {
1693
1693
  var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
1694
1694
  return n === "" || n === "true";
1695
- }, Yr = function(t, r, n) {
1696
- if (ze(t))
1695
+ }, Vr = function(t, r, n) {
1696
+ if (Ke(t))
1697
1697
  return [];
1698
- var o = Array.prototype.slice.apply(t.querySelectorAll(He));
1699
- return r && Pe.call(t, He) && o.unshift(t), o = o.filter(n), o;
1698
+ var o = Array.prototype.slice.apply(t.querySelectorAll(Ue));
1699
+ return r && Pe.call(t, Ue) && o.unshift(t), o = o.filter(n), o;
1700
1700
  }, At = function(t, r, n) {
1701
1701
  for (var o = [], i = Array.from(t); i.length; ) {
1702
1702
  var s = i.shift();
1703
- if (!ze(s, !1))
1703
+ if (!Ke(s, !1))
1704
1704
  if (s.tagName === "SLOT") {
1705
- var a = s.assignedElements(), l = a.length ? a : s.children, c = At(l, !0, n);
1705
+ var a = s.assignedElements(), u = a.length ? a : s.children, c = At(u, !0, n);
1706
1706
  n.flatten ? o.push.apply(o, c) : o.push({
1707
1707
  scopeParent: s,
1708
1708
  candidates: c
1709
1709
  });
1710
1710
  } else {
1711
- var f = Pe.call(s, He);
1711
+ var f = Pe.call(s, Ue);
1712
1712
  f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
1713
1713
  var d = s.shadowRoot || // check for an undisclosed shadow
1714
- typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !ze(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
1714
+ typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !Ke(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
1715
1715
  if (d && h) {
1716
- var u = At(d === !0 ? s.children : d.children, !0, n);
1717
- n.flatten ? o.push.apply(o, u) : o.push({
1716
+ var l = At(d === !0 ? s.children : d.children, !0, n);
1717
+ n.flatten ? o.push.apply(o, l) : o.push({
1718
1718
  scopeParent: s,
1719
- candidates: u
1719
+ candidates: l
1720
1720
  });
1721
1721
  } else
1722
1722
  i.unshift.apply(i, s.children);
1723
1723
  }
1724
1724
  }
1725
1725
  return o;
1726
- }, Bn = function(t) {
1726
+ }, jn = function(t) {
1727
1727
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
1728
- }, qn = function(t) {
1728
+ }, Wn = function(t) {
1729
1729
  if (!t)
1730
1730
  throw new Error("No node provided");
1731
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Vr(t)) && !Bn(t) ? 0 : t.tabIndex;
1732
- }, Ur = function(t, r) {
1733
- var n = qn(t);
1734
- return n < 0 && r && !Bn(t) ? 0 : n;
1735
- }, Hr = function(t, r) {
1731
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Br(t)) && !jn(t) ? 0 : t.tabIndex;
1732
+ }, qr = function(t, r) {
1733
+ var n = Wn(t);
1734
+ return n < 0 && r && !jn(t) ? 0 : n;
1735
+ }, Yr = function(t, r) {
1736
1736
  return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
1737
- }, Vn = function(t) {
1737
+ }, Bn = function(t) {
1738
1738
  return t.tagName === "INPUT";
1739
- }, Kr = function(t) {
1740
- return Vn(t) && t.type === "hidden";
1741
- }, zr = function(t) {
1739
+ }, Ur = function(t) {
1740
+ return Bn(t) && t.type === "hidden";
1741
+ }, Hr = function(t) {
1742
1742
  var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
1743
1743
  return n.tagName === "SUMMARY";
1744
1744
  });
1745
1745
  return r;
1746
- }, Xr = function(t, r) {
1746
+ }, Kr = function(t, r) {
1747
1747
  for (var n = 0; n < t.length; n++)
1748
1748
  if (t[n].checked && t[n].form === r)
1749
1749
  return t[n];
1750
- }, Gr = function(t) {
1750
+ }, zr = function(t) {
1751
1751
  if (!t.name)
1752
1752
  return !0;
1753
- var r = t.form || Ke(t), n = function(a) {
1753
+ var r = t.form || He(t), n = function(a) {
1754
1754
  return r.querySelectorAll('input[type="radio"][name="' + a + '"]');
1755
1755
  }, o;
1756
1756
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
@@ -1761,26 +1761,26 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1761
1761
  } catch (s) {
1762
1762
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
1763
1763
  }
1764
- var i = Xr(o, t.form);
1764
+ var i = Kr(o, t.form);
1765
1765
  return !i || i === t;
1766
+ }, Xr = function(t) {
1767
+ return Bn(t) && t.type === "radio";
1768
+ }, Gr = function(t) {
1769
+ return Xr(t) && !zr(t);
1766
1770
  }, Zr = function(t) {
1767
- return Vn(t) && t.type === "radio";
1768
- }, Jr = function(t) {
1769
- return Zr(t) && !Gr(t);
1770
- }, Qr = function(t) {
1771
- var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
1771
+ var r, n = t && He(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
1772
1772
  if (n && n !== t) {
1773
- var s, a, l;
1774
- for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && o; ) {
1773
+ var s, a, u;
1774
+ for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (u = t.ownerDocument) !== null && u !== void 0 && u.contains(t)); !i && o; ) {
1775
1775
  var c, f, d;
1776
- n = Ke(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
1776
+ n = He(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
1777
1777
  }
1778
1778
  }
1779
1779
  return i;
1780
- }, on = function(t) {
1780
+ }, rn = function(t) {
1781
1781
  var r = t.getBoundingClientRect(), n = r.width, o = r.height;
1782
1782
  return n === 0 && o === 0;
1783
- }, eo = function(t, r) {
1783
+ }, Jr = function(t, r) {
1784
1784
  var n = r.displayCheck, o = r.getShadowRoot;
1785
1785
  if (n === "full-native" && "checkVisibility" in t) {
1786
1786
  var i = t.checkVisibility({
@@ -1798,31 +1798,32 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1798
1798
  });
1799
1799
  return !i;
1800
1800
  }
1801
- if (getComputedStyle(t).visibility === "hidden")
1801
+ var s = getComputedStyle(t), a = s.visibility;
1802
+ if (a === "hidden" || a === "collapse")
1802
1803
  return !0;
1803
- var s = Pe.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
1804
- if (Pe.call(a, "details:not([open]) *"))
1804
+ var u = Pe.call(t, "details>summary:first-of-type"), c = u ? t.parentElement : t;
1805
+ if (Pe.call(c, "details:not([open]) *"))
1805
1806
  return !0;
1806
1807
  if (!n || n === "full" || // full-native can run this branch when it falls through in case
1807
1808
  // Element#checkVisibility is unsupported
1808
1809
  n === "full-native" || n === "legacy-full") {
1809
1810
  if (typeof o == "function") {
1810
- for (var l = t; t; ) {
1811
- var c = t.parentElement, f = Ke(t);
1812
- if (c && !c.shadowRoot && o(c) === !0)
1813
- return on(t);
1814
- t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c;
1811
+ for (var f = t; t; ) {
1812
+ var d = t.parentElement, h = He(t);
1813
+ if (d && !d.shadowRoot && o(d) === !0)
1814
+ return rn(t);
1815
+ t.assignedSlot ? t = t.assignedSlot : !d && h !== t.ownerDocument ? t = h.host : t = d;
1815
1816
  }
1816
- t = l;
1817
+ t = f;
1817
1818
  }
1818
- if (Qr(t))
1819
+ if (Zr(t))
1819
1820
  return !t.getClientRects().length;
1820
1821
  if (n !== "legacy-full")
1821
1822
  return !0;
1822
1823
  } else if (n === "non-zero-area")
1823
- return on(t);
1824
+ return rn(t);
1824
1825
  return !1;
1825
- }, to = function(t) {
1826
+ }, Qr = function(t) {
1826
1827
  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
1827
1828
  for (var r = t.parentElement; r; ) {
1828
1829
  if (r.tagName === "FIELDSET" && r.disabled) {
@@ -1836,26 +1837,26 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1836
1837
  r = r.parentElement;
1837
1838
  }
1838
1839
  return !1;
1839
- }, no = function(t, r) {
1840
- return !(r.disabled || Kr(r) || eo(r, t) || // For a details element with a summary, the summary element gets the focus
1841
- zr(r) || to(r));
1840
+ }, eo = function(t, r) {
1841
+ return !(r.disabled || Ur(r) || Jr(r, t) || // For a details element with a summary, the summary element gets the focus
1842
+ Hr(r) || Qr(r));
1842
1843
  }, Pt = function(t, r) {
1843
- return !(Jr(r) || qn(r) < 0 || !no(t, r));
1844
- }, ro = function(t) {
1844
+ return !(Gr(r) || Wn(r) < 0 || !eo(t, r));
1845
+ }, to = function(t) {
1845
1846
  var r = parseInt(t.getAttribute("tabindex"), 10);
1846
1847
  return !!(isNaN(r) || r >= 0);
1847
- }, Yn = function(t) {
1848
+ }, Vn = function(t) {
1848
1849
  var r = [], n = [];
1849
1850
  return t.forEach(function(o, i) {
1850
- var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Yn(o.candidates) : a;
1851
- l === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1851
+ var s = !!o.scopeParent, a = s ? o.scopeParent : o, u = qr(a, s), c = s ? Vn(o.candidates) : a;
1852
+ u === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1852
1853
  documentOrder: i,
1853
- tabIndex: l,
1854
+ tabIndex: u,
1854
1855
  item: o,
1855
1856
  isScope: s,
1856
1857
  content: c
1857
1858
  });
1858
- }), n.sort(Hr).reduce(function(o, i) {
1859
+ }), n.sort(Yr).reduce(function(o, i) {
1859
1860
  return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
1860
1861
  }, []).concat(r);
1861
1862
  }, Ft = function(t, r) {
@@ -1865,62 +1866,55 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1865
1866
  filter: Pt.bind(null, r),
1866
1867
  flatten: !1,
1867
1868
  getShadowRoot: r.getShadowRoot,
1868
- shadowRootFilter: ro
1869
- }) : n = Yr(t, r.includeContainer, Pt.bind(null, r)), Yn(n);
1870
- }, oo = function(t, r) {
1869
+ shadowRootFilter: to
1870
+ }) : n = Vr(t, r.includeContainer, Pt.bind(null, r)), Vn(n);
1871
+ }, no = function(t, r) {
1871
1872
  if (r = r || {}, !t)
1872
1873
  throw new Error("No node provided");
1873
- return Pe.call(t, He) === !1 ? !1 : Pt(r, t);
1874
+ return Pe.call(t, Ue) === !1 ? !1 : Pt(r, t);
1874
1875
  };
1875
- function sn(e, t, r) {
1876
+ function on(e, t, r) {
1876
1877
  let {
1877
1878
  reference: n,
1878
1879
  floating: o
1879
1880
  } = e;
1880
- const i = he(t), s = jn(t), a = $n(s), l = Se(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
1881
- let u;
1882
- switch (l) {
1881
+ const i = me(t), s = Fn(t), a = Ln(s), u = Ae(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
1882
+ let l;
1883
+ switch (u) {
1883
1884
  case "top":
1884
- u = {
1885
+ l = {
1885
1886
  x: f,
1886
1887
  y: n.y - o.height
1887
1888
  };
1888
1889
  break;
1889
1890
  case "bottom":
1890
- u = {
1891
+ l = {
1891
1892
  x: f,
1892
1893
  y: n.y + n.height
1893
1894
  };
1894
1895
  break;
1895
1896
  case "right":
1896
- u = {
1897
+ l = {
1897
1898
  x: n.x + n.width,
1898
1899
  y: d
1899
1900
  };
1900
1901
  break;
1901
1902
  case "left":
1902
- u = {
1903
+ l = {
1903
1904
  x: n.x - o.width,
1904
1905
  y: d
1905
1906
  };
1906
1907
  break;
1907
1908
  default:
1908
- u = {
1909
+ l = {
1909
1910
  x: n.x,
1910
1911
  y: n.y
1911
1912
  };
1912
1913
  }
1913
- switch (ot(t)) {
1914
- case "start":
1915
- u[s] -= h * (r && c ? -1 : 1);
1916
- break;
1917
- case "end":
1918
- u[s] += h * (r && c ? -1 : 1);
1919
- break;
1920
- }
1921
- return u;
1914
+ const v = ot(t);
1915
+ return v && (l[s] += h * (v === "end" ? 1 : -1) * (r && c ? -1 : 1)), l;
1922
1916
  }
1923
- async function io(e, t) {
1917
+ async function ro(e, t) {
1924
1918
  var r;
1925
1919
  t === void 0 && (t = {});
1926
1920
  const {
@@ -1929,43 +1923,40 @@ async function io(e, t) {
1929
1923
  platform: i,
1930
1924
  rects: s,
1931
1925
  elements: a,
1932
- strategy: l
1926
+ strategy: u
1933
1927
  } = e, {
1934
1928
  boundary: c = "clippingAncestors",
1935
1929
  rootBoundary: f = "viewport",
1936
1930
  elementContext: d = "floating",
1937
1931
  altBoundary: h = !1,
1938
- padding: u = 0
1939
- } = rt(t, e), v = Br(u), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
1940
- element: (r = await (i.isElement == null ? void 0 : i.isElement(O))) == null || r ? O : O.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1932
+ padding: l = 0
1933
+ } = rt(t, e), v = jr(l), T = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ye(await i.getClippingRect({
1934
+ element: (r = await (i.isElement == null ? void 0 : i.isElement(T))) == null || r ? T : T.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1941
1935
  boundary: c,
1942
1936
  rootBoundary: f,
1943
- strategy: l
1944
- })), k = d === "floating" ? {
1937
+ strategy: u
1938
+ })), I = d === "floating" ? {
1945
1939
  x: n,
1946
1940
  y: o,
1947
1941
  width: s.floating.width,
1948
1942
  height: s.floating.height
1949
- } : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
1950
- x: 1,
1951
- y: 1
1952
- } : {
1943
+ } : s.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), _ = await (i.isElement == null ? void 0 : i.isElement(w)) && await (i.getScale == null ? void 0 : i.getScale(w)) || {
1953
1944
  x: 1,
1954
1945
  y: 1
1955
- }, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1946
+ }, b = Ye(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1956
1947
  elements: a,
1957
- rect: k,
1958
- offsetParent: y,
1959
- strategy: l
1960
- }) : k);
1948
+ rect: I,
1949
+ offsetParent: w,
1950
+ strategy: u
1951
+ }) : I);
1961
1952
  return {
1962
- top: (A.top - b.top + v.top) / T.y,
1963
- bottom: (b.bottom - A.bottom + v.bottom) / T.y,
1964
- left: (A.left - b.left + v.left) / T.x,
1965
- right: (b.right - A.right + v.right) / T.x
1953
+ top: (A.top - b.top + v.top) / _.y,
1954
+ bottom: (b.bottom - A.bottom + v.bottom) / _.y,
1955
+ left: (A.left - b.left + v.left) / _.x,
1956
+ right: (b.right - A.right + v.right) / _.x
1966
1957
  };
1967
1958
  }
1968
- const so = 50, ao = async (e, t, r) => {
1959
+ const oo = 50, io = async (e, t, r) => {
1969
1960
  const {
1970
1961
  placement: n = "bottom",
1971
1962
  strategy: o = "absolute",
@@ -1973,8 +1964,8 @@ const so = 50, ao = async (e, t, r) => {
1973
1964
  platform: s
1974
1965
  } = r, a = s.detectOverflow ? s : {
1975
1966
  ...s,
1976
- detectOverflow: io
1977
- }, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
1967
+ detectOverflow: ro
1968
+ }, u = await (s.isRTL == null ? void 0 : s.isRTL(t));
1978
1969
  let c = await s.getElementRects({
1979
1970
  reference: e,
1980
1971
  floating: t,
@@ -1982,21 +1973,21 @@ const so = 50, ao = async (e, t, r) => {
1982
1973
  }), {
1983
1974
  x: f,
1984
1975
  y: d
1985
- } = sn(c, n, l), h = n, u = 0;
1976
+ } = on(c, n, u), h = n, l = 0;
1986
1977
  const v = {};
1987
1978
  for (let p = 0; p < i.length; p++) {
1988
- const O = i[p];
1989
- if (!O)
1979
+ const T = i[p];
1980
+ if (!T)
1990
1981
  continue;
1991
1982
  const {
1992
1983
  name: A,
1993
- fn: k
1994
- } = O, {
1995
- x: y,
1996
- y: T,
1984
+ fn: I
1985
+ } = T, {
1986
+ x: w,
1987
+ y: _,
1997
1988
  data: b,
1998
- reset: I
1999
- } = await k({
1989
+ reset: k
1990
+ } = await I({
2000
1991
  x: f,
2001
1992
  y: d,
2002
1993
  initialPlacement: n,
@@ -2010,17 +2001,17 @@ const so = 50, ao = async (e, t, r) => {
2010
2001
  floating: t
2011
2002
  }
2012
2003
  });
2013
- f = y ?? f, d = T ?? d, v[A] = {
2004
+ f = w ?? f, d = _ ?? d, v[A] = {
2014
2005
  ...v[A],
2015
2006
  ...b
2016
- }, I && u < so && (u++, typeof I == "object" && (I.placement && (h = I.placement), I.rects && (c = I.rects === !0 ? await s.getElementRects({
2007
+ }, k && l < oo && (l++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
2017
2008
  reference: e,
2018
2009
  floating: t,
2019
2010
  strategy: o
2020
- }) : I.rects), {
2011
+ }) : k.rects), {
2021
2012
  x: f,
2022
2013
  y: d
2023
- } = sn(c, h, l)), p = -1);
2014
+ } = on(c, h, u)), p = -1);
2024
2015
  }
2025
2016
  return {
2026
2017
  x: f,
@@ -2029,7 +2020,7 @@ const so = 50, ao = async (e, t, r) => {
2029
2020
  strategy: o,
2030
2021
  middlewareData: v
2031
2022
  };
2032
- }, co = function(e) {
2023
+ }, so = function(e) {
2033
2024
  return e === void 0 && (e = {}), {
2034
2025
  name: "flip",
2035
2026
  options: e,
@@ -2040,60 +2031,60 @@ const so = 50, ao = async (e, t, r) => {
2040
2031
  middlewareData: i,
2041
2032
  rects: s,
2042
2033
  initialPlacement: a,
2043
- platform: l,
2034
+ platform: u,
2044
2035
  elements: c
2045
2036
  } = t, {
2046
2037
  mainAxis: f = !0,
2047
2038
  crossAxis: d = !0,
2048
2039
  fallbackPlacements: h,
2049
- fallbackStrategy: u = "bestFit",
2040
+ fallbackStrategy: l = "bestFit",
2050
2041
  fallbackAxisSideDirection: v = "none",
2051
2042
  flipAlignment: p = !0,
2052
- ...O
2043
+ ...T
2053
2044
  } = rt(e, t);
2054
2045
  if ((r = i.arrow) != null && r.alignmentOffset)
2055
2046
  return {};
2056
- const A = Se(o), k = he(a), y = Se(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = h || (y || !p ? [Ye(a)] : Dr(a)), I = v !== "none";
2057
- !h && I && b.push(...jr(a, p, v, T));
2058
- const H = [a, ...b], z = await l.detectOverflow(t, O), Q = [];
2059
- let J = ((n = i.flip) == null ? void 0 : n.overflows) || [];
2060
- if (f && Q.push(z[A]), d) {
2061
- const X = Mr(o, s, T);
2062
- Q.push(z[X[0]], z[X[1]]);
2047
+ const A = Ae(o), I = me(a), w = Ae(a) === a, _ = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), b = h || (w || !p ? [qe(a)] : kr(a)), k = v !== "none";
2048
+ !h && k && b.push(...Fr(a, p, v, _));
2049
+ const z = [a, ...b], H = await u.detectOverflow(t, T), G = [];
2050
+ let K = ((n = i.flip) == null ? void 0 : n.overflows) || [];
2051
+ if (f && G.push(H[A]), d) {
2052
+ const Z = Ir(o, s, _);
2053
+ G.push(H[Z[0]], H[Z[1]]);
2063
2054
  }
2064
- if (J = [...J, {
2055
+ if (K = [...K, {
2065
2056
  placement: o,
2066
- overflows: Q
2067
- }], !Q.every((X) => X <= 0)) {
2068
- var Z, q;
2069
- const X = (((Z = i.flip) == null ? void 0 : Z.index) || 0) + 1, L = H[X];
2070
- if (L && (!(d === "alignment" ? k !== he(L) : !1) || // We leave the current main axis only if every placement on that axis
2057
+ overflows: G
2058
+ }], !G.every((Z) => Z <= 0)) {
2059
+ var Q, V;
2060
+ const Z = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, L = z[Z];
2061
+ if (L && (!(d === "alignment" ? I !== me(L) : !1) || // We leave the current main axis only if every placement on that axis
2071
2062
  // overflows the main axis.
2072
- J.every((M) => he(M.placement) === k ? M.overflows[0] > 0 : !0)))
2063
+ K.every((M) => me(M.placement) === I ? M.overflows[0] > 0 : !0)))
2073
2064
  return {
2074
2065
  data: {
2075
- index: X,
2076
- overflows: J
2066
+ index: Z,
2067
+ overflows: K
2077
2068
  },
2078
2069
  reset: {
2079
2070
  placement: L
2080
2071
  }
2081
2072
  };
2082
- let j = (q = J.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : q.placement;
2073
+ let j = (V = K.filter((q) => q.overflows[0] <= 0).sort((q, M) => q.overflows[1] - M.overflows[1])[0]) == null ? void 0 : V.placement;
2083
2074
  if (!j)
2084
- switch (u) {
2075
+ switch (l) {
2085
2076
  case "bestFit": {
2086
2077
  var te;
2087
- const V = (te = J.filter((M) => {
2088
- if (I) {
2089
- const R = he(M.placement);
2090
- return R === k || // Create a bias to the `y` side axis due to horizontal
2078
+ const q = (te = K.filter((M) => {
2079
+ if (k) {
2080
+ const R = me(M.placement);
2081
+ return R === I || // Create a bias to the `y` side axis due to horizontal
2091
2082
  // reading directions favoring greater width.
2092
2083
  R === "y";
2093
2084
  }
2094
2085
  return !0;
2095
2086
  }).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, m) => R + m, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : te[0];
2096
- V && (j = V);
2087
+ q && (j = q);
2097
2088
  break;
2098
2089
  }
2099
2090
  case "initialPlacement":
@@ -2110,16 +2101,16 @@ const so = 50, ao = async (e, t, r) => {
2110
2101
  return {};
2111
2102
  }
2112
2103
  };
2113
- }, lo = /* @__PURE__ */ new Set(["left", "top"]);
2114
- async function uo(e, t) {
2104
+ }, ao = /* @__PURE__ */ new Set(["left", "top"]);
2105
+ async function co(e, t) {
2115
2106
  const {
2116
2107
  placement: r,
2117
2108
  platform: n,
2118
2109
  elements: o
2119
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Se(r), a = ot(r), l = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = rt(t, e);
2110
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ae(r), a = ot(r), u = me(r) === "y", c = ao.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = rt(t, e);
2120
2111
  let {
2121
2112
  mainAxis: h,
2122
- crossAxis: u,
2113
+ crossAxis: l,
2123
2114
  alignmentAxis: v
2124
2115
  } = typeof d == "number" ? {
2125
2116
  mainAxis: d,
@@ -2130,15 +2121,15 @@ async function uo(e, t) {
2130
2121
  crossAxis: d.crossAxis || 0,
2131
2122
  alignmentAxis: d.alignmentAxis
2132
2123
  };
2133
- return a && typeof v == "number" && (u = a === "end" ? v * -1 : v), l ? {
2134
- x: u * f,
2124
+ return a && typeof v == "number" && (l = a === "end" ? v * -1 : v), u ? {
2125
+ x: l * f,
2135
2126
  y: h * c
2136
2127
  } : {
2137
2128
  x: h * c,
2138
- y: u * f
2129
+ y: l * f
2139
2130
  };
2140
2131
  }
2141
- const fo = function(e) {
2132
+ const lo = function(e) {
2142
2133
  return e === void 0 && (e = 0), {
2143
2134
  name: "offset",
2144
2135
  options: e,
@@ -2149,18 +2140,18 @@ const fo = function(e) {
2149
2140
  y: i,
2150
2141
  placement: s,
2151
2142
  middlewareData: a
2152
- } = t, l = await uo(t, e);
2143
+ } = t, u = await co(t, e);
2153
2144
  return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
2154
- x: o + l.x,
2155
- y: i + l.y,
2145
+ x: o + u.x,
2146
+ y: i + u.y,
2156
2147
  data: {
2157
- ...l,
2148
+ ...u,
2158
2149
  placement: s
2159
2150
  }
2160
2151
  };
2161
2152
  }
2162
2153
  };
2163
- }, po = function(e) {
2154
+ }, uo = function(e) {
2164
2155
  return e === void 0 && (e = {}), {
2165
2156
  name: "shift",
2166
2157
  options: e,
@@ -2173,15 +2164,15 @@ const fo = function(e) {
2173
2164
  } = t, {
2174
2165
  mainAxis: s = !0,
2175
2166
  crossAxis: a = !1,
2176
- limiter: l = {
2177
- fn: (A) => {
2167
+ limiter: u = {
2168
+ fn: (I) => {
2178
2169
  let {
2179
- x: k,
2180
- y
2181
- } = A;
2170
+ x: w,
2171
+ y: _
2172
+ } = I;
2182
2173
  return {
2183
- x: k,
2184
- y
2174
+ x: w,
2175
+ y: _
2185
2176
  };
2186
2177
  }
2187
2178
  },
@@ -2189,28 +2180,22 @@ const fo = function(e) {
2189
2180
  } = rt(e, t), f = {
2190
2181
  x: r,
2191
2182
  y: n
2192
- }, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Fn(h);
2193
- let v = f[u], p = f[h];
2194
- if (s) {
2195
- const A = u === "y" ? "top" : "left", k = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[k];
2196
- v = tn(y, v, T);
2197
- }
2198
- if (a) {
2199
- const A = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[k];
2200
- p = tn(y, p, T);
2201
- }
2202
- const O = l.fn({
2183
+ }, d = await i.detectOverflow(t, c), h = me(o), l = Dn(h);
2184
+ let v = f[l], p = f[h];
2185
+ const T = (I, w) => Nr(w + d[I === "y" ? "top" : "left"], w, w - d[I === "y" ? "bottom" : "right"]);
2186
+ s && (v = T(l, v)), a && (p = T(h, p));
2187
+ const A = u.fn({
2203
2188
  ...t,
2204
- [u]: v,
2189
+ [l]: v,
2205
2190
  [h]: p
2206
2191
  });
2207
2192
  return {
2208
- ...O,
2193
+ ...A,
2209
2194
  data: {
2210
- x: O.x - r,
2211
- y: O.y - n,
2195
+ x: A.x - r,
2196
+ y: A.y - n,
2212
2197
  enabled: {
2213
- [u]: s,
2198
+ [l]: s,
2214
2199
  [h]: a
2215
2200
  }
2216
2201
  }
@@ -2218,8 +2203,8 @@ const fo = function(e) {
2218
2203
  }
2219
2204
  };
2220
2205
  };
2221
- function Un(e) {
2222
- const t = se(e);
2206
+ function qn(e) {
2207
+ const t = ce(e);
2223
2208
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
2224
2209
  const o = ne(e), i = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, a = Ve(r) !== i || Ve(n) !== s;
2225
2210
  return a && (r = i, n = s), {
@@ -2231,146 +2216,145 @@ function Un(e) {
2231
2216
  function $t(e) {
2232
2217
  return ee(e) ? e : e.contextElement;
2233
2218
  }
2234
- function Ae(e) {
2219
+ function Oe(e) {
2235
2220
  const t = $t(e);
2236
2221
  if (!ne(t))
2237
- return le(1);
2222
+ return fe(1);
2238
2223
  const r = t.getBoundingClientRect(), {
2239
2224
  width: n,
2240
2225
  height: o,
2241
2226
  $: i
2242
- } = Un(t);
2227
+ } = qn(t);
2243
2228
  let s = (i ? Ve(r.width) : r.width) / n, a = (i ? Ve(r.height) : r.height) / o;
2244
2229
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2245
2230
  x: s,
2246
2231
  y: a
2247
2232
  };
2248
2233
  }
2249
- const mo = /* @__PURE__ */ le(0);
2250
- function Hn(e) {
2251
- const t = ie(e);
2252
- return !tt() || !t.visualViewport ? mo : {
2234
+ const fo = /* @__PURE__ */ fe(0);
2235
+ function Yn(e) {
2236
+ const t = oe(e);
2237
+ return !tt() || !t.visualViewport ? fo : {
2253
2238
  x: t.visualViewport.offsetLeft,
2254
2239
  y: t.visualViewport.offsetTop
2255
2240
  };
2256
2241
  }
2257
- function ho(e, t, r) {
2258
- return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
2242
+ function po(e, t, r) {
2243
+ return t === void 0 && (t = !1), !!r && t && r === oe(e);
2259
2244
  }
2260
2245
  function Ce(e, t, r, n) {
2261
2246
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2262
2247
  const o = e.getBoundingClientRect(), i = $t(e);
2263
- let s = le(1);
2264
- t && (n ? ee(n) && (s = Ae(n)) : s = Ae(e));
2265
- const a = ho(i, r, n) ? Hn(i) : le(0);
2266
- let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
2267
- if (i) {
2268
- const h = ie(i), u = n && ee(n) ? ie(n) : n;
2269
- let v = h, p = Ct(v);
2270
- for (; p && n && u !== v; ) {
2271
- const O = Ae(p), A = p.getBoundingClientRect(), k = se(p), y = A.left + (p.clientLeft + parseFloat(k.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(k.paddingTop)) * O.y;
2272
- l *= O.x, c *= O.y, f *= O.x, d *= O.y, l += y, c += T, v = ie(p), p = Ct(v);
2248
+ let s = fe(1);
2249
+ t && (n ? ee(n) && (s = Oe(n)) : s = Oe(e));
2250
+ const a = po(i, r, n) ? Yn(i) : fe(0);
2251
+ let u = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
2252
+ if (i && n) {
2253
+ const h = oe(i), l = ee(n) ? oe(n) : n;
2254
+ let v = h, p = St(v);
2255
+ for (; p && l !== v; ) {
2256
+ const T = Oe(p), A = p.getBoundingClientRect(), I = ce(p), w = A.left + (p.clientLeft + parseFloat(I.paddingLeft)) * T.x, _ = A.top + (p.clientTop + parseFloat(I.paddingTop)) * T.y;
2257
+ u *= T.x, c *= T.y, f *= T.x, d *= T.y, u += w, c += _, v = oe(p), p = St(v);
2273
2258
  }
2274
2259
  }
2275
- return Ue({
2260
+ return Ye({
2276
2261
  width: f,
2277
2262
  height: d,
2278
- x: l,
2263
+ x: u,
2279
2264
  y: c
2280
2265
  });
2281
2266
  }
2282
2267
  function it(e, t) {
2283
2268
  const r = nt(e).scrollLeft;
2284
- return t ? t.left + r : Ce(ue(e)).left + r;
2269
+ return t ? t.left + r : Ce(de(e)).left + r;
2285
2270
  }
2286
- function Kn(e, t) {
2271
+ function Un(e, t) {
2287
2272
  const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
2288
2273
  return {
2289
2274
  x: n,
2290
2275
  y: o
2291
2276
  };
2292
2277
  }
2293
- function vo(e) {
2278
+ function mo(e) {
2294
2279
  let {
2295
2280
  elements: t,
2296
2281
  rect: r,
2297
2282
  offsetParent: n,
2298
2283
  strategy: o
2299
2284
  } = e;
2300
- const i = o === "fixed", s = ue(n), a = t ? et(t.floating) : !1;
2285
+ const i = o === "fixed", s = de(n), a = t ? et(t.floating) : !1;
2301
2286
  if (n === s || a && i)
2302
2287
  return r;
2303
- let l = {
2288
+ let u = {
2304
2289
  scrollLeft: 0,
2305
2290
  scrollTop: 0
2306
- }, c = le(1);
2307
- const f = le(0), d = ne(n);
2308
- if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (l = nt(n)), d)) {
2309
- const u = Ce(n);
2310
- c = Ae(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
2291
+ }, c = fe(1);
2292
+ const f = fe(0), d = ne(n);
2293
+ if ((d || !i) && ((be(n) !== "body" || Qe(s)) && (u = nt(n)), d)) {
2294
+ const l = Ce(n);
2295
+ c = Oe(n), f.x = l.x + n.clientLeft, f.y = l.y + n.clientTop;
2311
2296
  }
2312
- const h = s && !d && !i ? Kn(s, l) : le(0);
2297
+ const h = s && !d && !i ? Un(s, u) : fe(0);
2313
2298
  return {
2314
2299
  width: r.width * c.x,
2315
2300
  height: r.height * c.y,
2316
- x: r.x * c.x - l.scrollLeft * c.x + f.x + h.x,
2317
- y: r.y * c.y - l.scrollTop * c.y + f.y + h.y
2301
+ x: r.x * c.x - u.scrollLeft * c.x + f.x + h.x,
2302
+ y: r.y * c.y - u.scrollTop * c.y + f.y + h.y
2318
2303
  };
2319
2304
  }
2320
- function bo(e) {
2321
- return Array.from(e.getClientRects());
2305
+ function ho(e) {
2306
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
2322
2307
  }
2323
- function yo(e) {
2324
- const t = ue(e), r = nt(e), n = e.ownerDocument.body, o = Te(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), i = Te(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
2325
- let s = -r.scrollLeft + it(e);
2326
- const a = -r.scrollTop;
2327
- return se(n).direction === "rtl" && (s += Te(t.clientWidth, n.clientWidth) - o), {
2328
- width: o,
2329
- height: i,
2330
- x: s,
2331
- y: a
2308
+ function vo(e) {
2309
+ const t = nt(e), r = e.ownerDocument.body, n = Re(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = Re(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
2310
+ let i = -t.scrollLeft + it(e);
2311
+ const s = -t.scrollTop;
2312
+ return ce(r).direction === "rtl" && (i += Re(e.clientWidth, r.clientWidth) - n), {
2313
+ width: n,
2314
+ height: o,
2315
+ x: i,
2316
+ y: s
2332
2317
  };
2333
2318
  }
2334
- const an = 25;
2335
- function go(e, t) {
2336
- const r = ie(e), n = ue(e), o = r.visualViewport;
2337
- let i = n.clientWidth, s = n.clientHeight, a = 0, l = 0;
2338
- if (o) {
2339
- i = o.width, s = o.height;
2340
- const f = tt();
2341
- (!f || f && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
2319
+ const bo = 25;
2320
+ function yo(e, t, r) {
2321
+ r === void 0 && (r = "viewport");
2322
+ const n = r === "layoutViewport", o = oe(e), i = de(e), s = o.visualViewport;
2323
+ let a = i.clientWidth, u = i.clientHeight, c = 0, f = 0;
2324
+ if (s) {
2325
+ const h = !tt() || t === "fixed";
2326
+ n ? h || (c = -s.offsetLeft, f = -s.offsetTop) : (a = s.width, u = s.height, h && (c = s.offsetLeft, f = s.offsetTop));
2327
+ }
2328
+ if (it(i) <= 0) {
2329
+ const h = i.ownerDocument, l = h.body, v = getComputedStyle(l), p = h.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, T = Math.abs(i.clientWidth - l.clientWidth - p), A = getComputedStyle(i).scrollbarGutter === "stable both-edges" ? T / 2 : T;
2330
+ A <= bo && (a -= A);
2342
2331
  }
2343
- const c = it(n);
2344
- if (c <= 0) {
2345
- const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - u);
2346
- v <= an && (i -= v);
2347
- } else c <= an && (i += c);
2348
2332
  return {
2349
- width: i,
2350
- height: s,
2351
- x: a,
2352
- y: l
2333
+ width: a,
2334
+ height: u,
2335
+ x: c,
2336
+ y: f
2353
2337
  };
2354
2338
  }
2355
- function wo(e, t) {
2356
- const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = n * i.y;
2339
+ function go(e, t) {
2340
+ const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = Oe(e), s = e.clientWidth * i.x, a = e.clientHeight * i.y, u = o * i.x, c = n * i.y;
2357
2341
  return {
2358
2342
  width: s,
2359
2343
  height: a,
2360
- x: l,
2344
+ x: u,
2361
2345
  y: c
2362
2346
  };
2363
2347
  }
2364
- function cn(e, t, r) {
2348
+ function sn(e, t, r) {
2365
2349
  let n;
2366
- if (t === "viewport")
2367
- n = go(e, r);
2350
+ if (t === "viewport" || t === "layoutViewport")
2351
+ n = yo(e, r, t);
2368
2352
  else if (t === "document")
2369
- n = yo(ue(e));
2353
+ n = vo(de(e));
2370
2354
  else if (ee(t))
2371
- n = wo(t, r);
2355
+ n = go(t, r);
2372
2356
  else {
2373
- const o = Hn(e);
2357
+ const o = Yn(e);
2374
2358
  n = {
2375
2359
  x: t.x - o.x,
2376
2360
  y: t.y - o.y,
@@ -2378,112 +2362,104 @@ function cn(e, t, r) {
2378
2362
  height: t.height
2379
2363
  };
2380
2364
  }
2381
- return Ue(n);
2365
+ return Ye(n);
2382
2366
  }
2383
- function zn(e, t) {
2384
- const r = pe(e);
2385
- return r === t || !ee(r) || be(r) ? !1 : se(r).position === "fixed" || zn(r, t);
2386
- }
2387
- function xo(e, t) {
2367
+ function wo(e, t) {
2388
2368
  const r = t.get(e);
2389
2369
  if (r)
2390
2370
  return r;
2391
- let n = ve(e, [], !1).filter((a) => ee(a) && ye(a) !== "body"), o = null;
2392
- const i = se(e).position === "fixed";
2393
- let s = i ? pe(e) : e;
2394
- for (; ee(s) && !be(s); ) {
2395
- const a = se(s), l = Lt(s);
2396
- !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ie(s) && !l && zn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
2371
+ let n = he(e, [], !1).filter((a) => ee(a) && be(a) !== "body"), o = null;
2372
+ const i = ce(e).position === "fixed";
2373
+ let s = i ? ve(e) : e;
2374
+ for (; ee(s) && !Te(s); ) {
2375
+ const a = ce(s), u = Lt(s), c = o ? o.position : i ? "fixed" : "";
2376
+ !u && (c === "fixed" || c === "absolute" && a.position === "static") ? n = n.filter((d) => d !== s) : o = a, s = ve(s);
2397
2377
  }
2398
2378
  return t.set(e, n), n;
2399
2379
  }
2400
- function Eo(e) {
2380
+ function xo(e) {
2401
2381
  let {
2402
2382
  element: t,
2403
2383
  boundary: r,
2404
2384
  rootBoundary: n,
2405
2385
  strategy: o
2406
2386
  } = e;
2407
- const s = [...r === "clippingAncestors" ? et(t) ? [] : xo(t, this._c) : [].concat(r), n], a = cn(t, s[0], o);
2408
- let l = a.top, c = a.right, f = a.bottom, d = a.left;
2387
+ const s = [...r === "clippingAncestors" ? et(t) ? [] : wo(t, this._c) : [].concat(r), n], a = sn(t, s[0], o);
2388
+ let u = a.top, c = a.right, f = a.bottom, d = a.left;
2409
2389
  for (let h = 1; h < s.length; h++) {
2410
- const u = cn(t, s[h], o);
2411
- l = Te(u.top, l), c = qe(u.right, c), f = qe(u.bottom, f), d = Te(u.left, d);
2390
+ const l = sn(t, s[h], o);
2391
+ u = Re(l.top, u), c = Be(l.right, c), f = Be(l.bottom, f), d = Re(l.left, d);
2412
2392
  }
2413
2393
  return {
2414
2394
  width: c - d,
2415
- height: f - l,
2395
+ height: f - u,
2416
2396
  x: d,
2417
- y: l
2397
+ y: u
2418
2398
  };
2419
2399
  }
2420
- function Ro(e) {
2400
+ function Eo(e) {
2421
2401
  const {
2422
2402
  width: t,
2423
2403
  height: r
2424
- } = Un(e);
2404
+ } = qn(e);
2425
2405
  return {
2426
2406
  width: t,
2427
2407
  height: r
2428
2408
  };
2429
2409
  }
2430
- function To(e, t, r) {
2431
- const n = ne(t), o = ue(t), i = r === "fixed", s = Ce(e, !0, i, t);
2410
+ function Ro(e, t, r) {
2411
+ const n = ne(t), o = de(t), i = r === "fixed", s = Ce(e, !0, i, t);
2432
2412
  let a = {
2433
2413
  scrollLeft: 0,
2434
2414
  scrollTop: 0
2435
2415
  };
2436
- const l = le(0);
2437
- function c() {
2438
- l.x = it(o);
2416
+ const u = fe(0);
2417
+ if ((n || !i) && ((be(t) !== "body" || Qe(o)) && (a = nt(t)), n)) {
2418
+ const h = Ce(t, !0, i, t);
2419
+ u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
2439
2420
  }
2440
- if (n || !n && !i)
2441
- if ((ye(t) !== "body" || Ie(o)) && (a = nt(t)), n) {
2442
- const u = Ce(t, !0, i, t);
2443
- l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
2444
- } else o && c();
2445
- i && !n && o && c();
2446
- const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
2421
+ !n && o && (u.x = it(o));
2422
+ const c = o && !n && !i ? Un(o, a) : fe(0), f = s.left + a.scrollLeft - u.x - c.x, d = s.top + a.scrollTop - u.y - c.y;
2447
2423
  return {
2448
- x: d,
2449
- y: h,
2424
+ x: f,
2425
+ y: d,
2450
2426
  width: s.width,
2451
2427
  height: s.height
2452
2428
  };
2453
2429
  }
2454
2430
  function bt(e) {
2455
- return se(e).position === "static";
2431
+ return ce(e).position === "static";
2456
2432
  }
2457
- function ln(e, t) {
2458
- if (!ne(e) || se(e).position === "fixed")
2433
+ function an(e, t) {
2434
+ if (!ne(e) || ce(e).position === "fixed")
2459
2435
  return null;
2460
2436
  if (t)
2461
2437
  return t(e);
2462
2438
  let r = e.offsetParent;
2463
- return ue(e) === r && (r = r.ownerDocument.body), r;
2439
+ return de(e) === r && (r = r.ownerDocument.body), r;
2464
2440
  }
2465
- function Xn(e, t) {
2466
- const r = ie(e);
2441
+ function Hn(e, t) {
2442
+ const r = oe(e);
2467
2443
  if (et(e))
2468
2444
  return r;
2469
2445
  if (!ne(e)) {
2470
- let o = pe(e);
2471
- for (; o && !be(o); ) {
2446
+ let o = ve(e);
2447
+ for (; o && !Te(o); ) {
2472
2448
  if (ee(o) && !bt(o))
2473
2449
  return o;
2474
- o = pe(o);
2450
+ o = ve(o);
2475
2451
  }
2476
2452
  return r;
2477
2453
  }
2478
- let n = ln(e, t);
2479
- for (; n && wr(n) && bt(n); )
2480
- n = ln(n, t);
2481
- return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
2454
+ let n = an(e, t);
2455
+ for (; n && br(n) && bt(n); )
2456
+ n = an(n, t);
2457
+ return n && Te(n) && bt(n) && !Lt(n) ? r : n || wr(e) || r;
2482
2458
  }
2483
- const So = async function(e) {
2484
- const t = this.getOffsetParent || Xn, r = this.getDimensions, n = await r(e.floating);
2459
+ const To = async function(e) {
2460
+ const t = this.getOffsetParent || Hn, r = this.getDimensions, n = await r(e.floating);
2485
2461
  return {
2486
- reference: To(e.reference, await t(e.floating), e.strategy),
2462
+ reference: Ro(e.reference, await t(e.floating), e.strategy),
2487
2463
  floating: {
2488
2464
  x: 0,
2489
2465
  y: 0,
@@ -2493,121 +2469,122 @@ const So = async function(e) {
2493
2469
  };
2494
2470
  };
2495
2471
  function Co(e) {
2496
- return se(e).direction === "rtl";
2497
- }
2498
- const _o = {
2499
- convertOffsetParentRelativeRectToViewportRelativeRect: vo,
2500
- getDocumentElement: ue,
2501
- getClippingRect: Eo,
2502
- getOffsetParent: Xn,
2503
- getElementRects: So,
2504
- getClientRects: bo,
2505
- getDimensions: Ro,
2506
- getScale: Ae,
2472
+ return ce(e).direction === "rtl";
2473
+ }
2474
+ const So = {
2475
+ convertOffsetParentRelativeRectToViewportRelativeRect: mo,
2476
+ getDocumentElement: de,
2477
+ getClippingRect: xo,
2478
+ getOffsetParent: Hn,
2479
+ getElementRects: To,
2480
+ getClientRects: ho,
2481
+ getDimensions: Eo,
2482
+ getScale: Oe,
2507
2483
  isElement: ee,
2508
2484
  isRTL: Co
2509
2485
  };
2510
- function Gn(e, t) {
2486
+ function Kn(e, t) {
2511
2487
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2512
2488
  }
2513
- function Oo(e, t) {
2514
- let r = null, n;
2515
- const o = ue(e);
2516
- function i() {
2517
- var a;
2518
- clearTimeout(n), (a = r) == null || a.disconnect(), r = null;
2489
+ function _o(e, t, r) {
2490
+ let n = null, o;
2491
+ const i = de(e);
2492
+ function s() {
2493
+ var f;
2494
+ clearTimeout(o), (f = n) == null || f.disconnect(), n = null;
2519
2495
  }
2520
- function s(a, l) {
2521
- a === void 0 && (a = !1), l === void 0 && (l = 1), i();
2522
- const c = e.getBoundingClientRect(), {
2523
- left: f,
2524
- top: d,
2525
- width: h,
2526
- height: u
2527
- } = c;
2528
- if (a || t(), !h || !u)
2496
+ function a(f, d) {
2497
+ f === void 0 && (f = !1), d === void 0 && (d = 1), s();
2498
+ const h = e.getBoundingClientRect(), {
2499
+ left: l,
2500
+ top: v,
2501
+ width: p,
2502
+ height: T
2503
+ } = h;
2504
+ if (f || t(), !p || !T)
2529
2505
  return;
2530
- const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + u)), A = Fe(f), y = {
2531
- rootMargin: -v + "px " + -p + "px " + -O + "px " + -A + "px",
2532
- threshold: Te(0, qe(1, l)) || 1
2506
+ const A = Le(v), I = Le(i.clientWidth - (l + p)), w = Le(i.clientHeight - (v + T)), _ = Le(l), k = {
2507
+ rootMargin: -A + "px " + -I + "px " + -w + "px " + -_ + "px",
2508
+ threshold: Re(0, Be(1, d)) || 1
2533
2509
  };
2534
- let T = !0;
2535
- function b(I) {
2536
- const H = I[0].intersectionRatio;
2537
- if (H !== l) {
2538
- if (!T)
2539
- return s();
2540
- H ? s(!1, H) : n = setTimeout(() => {
2541
- s(!1, 1e-7);
2510
+ let z = !0;
2511
+ function H(G) {
2512
+ const K = G[0].intersectionRatio;
2513
+ if (!Kn(h, e.getBoundingClientRect()))
2514
+ return a();
2515
+ if (K !== d) {
2516
+ if (!z)
2517
+ return a();
2518
+ K ? a(!1, K) : o = setTimeout(() => {
2519
+ a(!1, 1e-7);
2542
2520
  }, 1e3);
2543
2521
  }
2544
- H === 1 && !Gn(c, e.getBoundingClientRect()) && s(), T = !1;
2522
+ z = !1;
2545
2523
  }
2546
2524
  try {
2547
- r = new IntersectionObserver(b, {
2548
- ...y,
2525
+ n = new IntersectionObserver(H, {
2526
+ ...k,
2549
2527
  // Handle <iframe>s
2550
- root: o.ownerDocument
2528
+ root: i.ownerDocument
2551
2529
  });
2552
2530
  } catch {
2553
- r = new IntersectionObserver(b, y);
2531
+ n = new IntersectionObserver(H, k);
2554
2532
  }
2555
- r.observe(e);
2533
+ n.observe(e);
2556
2534
  }
2557
- return s(!0), i;
2535
+ const u = oe(e), c = () => a(r);
2536
+ return u.addEventListener("resize", c), a(!0), () => {
2537
+ u.removeEventListener("resize", c), s();
2538
+ };
2558
2539
  }
2559
- function Ao(e, t, r, n) {
2540
+ function Oo(e, t, r, n) {
2560
2541
  n === void 0 && (n = {});
2561
2542
  const {
2562
2543
  ancestorScroll: o = !0,
2563
2544
  ancestorResize: i = !0,
2564
2545
  elementResize: s = typeof ResizeObserver == "function",
2565
2546
  layoutShift: a = typeof IntersectionObserver == "function",
2566
- animationFrame: l = !1
2567
- } = n, c = $t(e), f = o || i ? [...c ? ve(c) : [], ...t ? ve(t) : []] : [];
2547
+ animationFrame: u = !1
2548
+ } = n, c = $t(e), f = o || i ? [...c ? he(c) : [], ...t ? he(t) : []] : [];
2568
2549
  f.forEach((A) => {
2569
- o && A.addEventListener("scroll", r, {
2570
- passive: !0
2571
- }), i && A.addEventListener("resize", r);
2550
+ o && A.addEventListener("scroll", r), i && A.addEventListener("resize", r);
2572
2551
  });
2573
- const d = c && a ? Oo(c, r) : null;
2574
- let h = -1, u = null;
2575
- s && (u = new ResizeObserver((A) => {
2576
- let [k] = A;
2577
- k && k.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2578
- var y;
2579
- (y = u) == null || y.observe(t);
2552
+ const d = c && a ? _o(c, r, i) : null;
2553
+ let h = -1, l = null;
2554
+ s && (l = new ResizeObserver((A) => {
2555
+ let [I] = A;
2556
+ I && I.target === c && l && t && (l.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2557
+ var w;
2558
+ (w = l) == null || w.observe(t);
2580
2559
  })), r();
2581
- }), c && !l && u.observe(c), t && u.observe(t));
2582
- let v, p = l ? Ce(e) : null;
2583
- l && O();
2584
- function O() {
2560
+ }), c && !u && l.observe(c), t && l.observe(t));
2561
+ let v, p = u ? Ce(e) : null;
2562
+ u && T();
2563
+ function T() {
2585
2564
  const A = Ce(e);
2586
- p && !Gn(p, A) && r(), p = A, v = requestAnimationFrame(O);
2565
+ p && !Kn(p, A) && r(), p = A, v = requestAnimationFrame(T);
2587
2566
  }
2588
2567
  return r(), () => {
2589
2568
  var A;
2590
- f.forEach((k) => {
2591
- o && k.removeEventListener("scroll", r), i && k.removeEventListener("resize", r);
2592
- }), d == null || d(), (A = u) == null || A.disconnect(), u = null, l && cancelAnimationFrame(v);
2569
+ f.forEach((I) => {
2570
+ o && I.removeEventListener("scroll", r), i && I.removeEventListener("resize", r);
2571
+ }), d == null || d(), (A = l) == null || A.disconnect(), l = null, u && cancelAnimationFrame(v);
2593
2572
  };
2594
2573
  }
2595
- const Po = fo, No = po, ko = co, Io = (e, t, r) => {
2596
- const n = /* @__PURE__ */ new Map(), o = {
2597
- platform: _o,
2598
- ...r
2599
- }, i = {
2574
+ const Ao = lo, Po = uo, No = so, Io = (e, t, r) => {
2575
+ const n = /* @__PURE__ */ new Map(), o = r ?? {}, i = {
2576
+ ...So,
2600
2577
  ...o.platform,
2601
2578
  _c: n
2602
2579
  };
2603
- return ao(e, t, {
2580
+ return io(e, t, {
2604
2581
  ...o,
2605
2582
  platform: i
2606
2583
  });
2607
2584
  };
2608
- var Mo = typeof document < "u", Do = function() {
2609
- }, Be = Mo ? An : Do;
2610
- function Xe(e, t) {
2585
+ var ko = typeof document < "u", Mo = function() {
2586
+ }, We = ko ? _n : Mo;
2587
+ function ze(e, t) {
2611
2588
  if (e === t)
2612
2589
  return !0;
2613
2590
  if (typeof e != typeof t)
@@ -2619,7 +2596,7 @@ function Xe(e, t) {
2619
2596
  if (Array.isArray(e)) {
2620
2597
  if (r = e.length, r !== t.length) return !1;
2621
2598
  for (n = r; n-- !== 0; )
2622
- if (!Xe(e[n], t[n]))
2599
+ if (!ze(e[n], t[n]))
2623
2600
  return !1;
2624
2601
  return !0;
2625
2602
  }
@@ -2630,27 +2607,27 @@ function Xe(e, t) {
2630
2607
  return !1;
2631
2608
  for (n = r; n-- !== 0; ) {
2632
2609
  const i = o[n];
2633
- if (!(i === "_owner" && e.$$typeof) && !Xe(e[i], t[i]))
2610
+ if (!(i === "_owner" && e.$$typeof) && !ze(e[i], t[i]))
2634
2611
  return !1;
2635
2612
  }
2636
2613
  return !0;
2637
2614
  }
2638
2615
  return e !== e && t !== t;
2639
2616
  }
2640
- function Zn(e) {
2617
+ function zn(e) {
2641
2618
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2642
2619
  }
2643
- function un(e, t) {
2644
- const r = Zn(e);
2620
+ function cn(e, t) {
2621
+ const r = zn(e);
2645
2622
  return Math.round(t * r) / r;
2646
2623
  }
2647
2624
  function yt(e) {
2648
2625
  const t = E.useRef(e);
2649
- return Be(() => {
2626
+ return We(() => {
2650
2627
  t.current = e;
2651
2628
  }), t;
2652
2629
  }
2653
- function Lo(e) {
2630
+ function Do(e) {
2654
2631
  e === void 0 && (e = {});
2655
2632
  const {
2656
2633
  placement: t = "bottom",
@@ -2662,7 +2639,7 @@ function Lo(e) {
2662
2639
  floating: s
2663
2640
  } = {},
2664
2641
  transform: a = !0,
2665
- whileElementsMounted: l,
2642
+ whileElementsMounted: u,
2666
2643
  open: c
2667
2644
  } = e, [f, d] = E.useState({
2668
2645
  x: 0,
@@ -2671,59 +2648,59 @@ function Lo(e) {
2671
2648
  placement: t,
2672
2649
  middlewareData: {},
2673
2650
  isPositioned: !1
2674
- }), [h, u] = E.useState(n);
2675
- Xe(h, n) || u(n);
2676
- const [v, p] = E.useState(null), [O, A] = E.useState(null), k = E.useCallback((M) => {
2677
- M !== I.current && (I.current = M, p(M));
2678
- }, []), y = E.useCallback((M) => {
2679
- M !== H.current && (H.current = M, A(M));
2680
- }, []), T = i || v, b = s || O, I = E.useRef(null), H = E.useRef(null), z = E.useRef(f), Q = l != null, J = yt(l), Z = yt(o), q = yt(c), te = E.useCallback(() => {
2681
- if (!I.current || !H.current)
2651
+ }), [h, l] = E.useState(n);
2652
+ ze(h, n) || l(n);
2653
+ const [v, p] = E.useState(null), [T, A] = E.useState(null), I = E.useCallback((M) => {
2654
+ M !== k.current && (k.current = M, p(M));
2655
+ }, []), w = E.useCallback((M) => {
2656
+ M !== z.current && (z.current = M, A(M));
2657
+ }, []), _ = i || v, b = s || T, k = E.useRef(null), z = E.useRef(null), H = E.useRef(f), G = u != null, K = yt(u), Q = yt(o), V = yt(c), te = E.useCallback(() => {
2658
+ if (!k.current || !z.current)
2682
2659
  return;
2683
2660
  const M = {
2684
2661
  placement: t,
2685
2662
  strategy: r,
2686
2663
  middleware: h
2687
2664
  };
2688
- Z.current && (M.platform = Z.current), Io(I.current, H.current, M).then((R) => {
2665
+ Q.current && (M.platform = Q.current), Io(k.current, z.current, M).then((R) => {
2689
2666
  const m = {
2690
2667
  ...R,
2691
2668
  // The floating element's position may be recomputed while it's closed
2692
2669
  // but still mounted (such as when transitioning out). To ensure
2693
2670
  // `isPositioned` will be `false` initially on the next open, avoid
2694
2671
  // setting it to `true` when `open === false` (must be specified).
2695
- isPositioned: q.current !== !1
2672
+ isPositioned: V.current !== !1
2696
2673
  };
2697
- X.current && !Xe(z.current, m) && (z.current = m, ir.flushSync(() => {
2674
+ Z.current && !ze(H.current, m) && (H.current = m, nr.flushSync(() => {
2698
2675
  d(m);
2699
2676
  }));
2700
2677
  });
2701
- }, [h, t, r, Z, q]);
2702
- Be(() => {
2703
- c === !1 && z.current.isPositioned && (z.current.isPositioned = !1, d((M) => ({
2678
+ }, [h, t, r, Q, V]);
2679
+ We(() => {
2680
+ c === !1 && H.current.isPositioned && (H.current.isPositioned = !1, d((M) => ({
2704
2681
  ...M,
2705
2682
  isPositioned: !1
2706
2683
  })));
2707
2684
  }, [c]);
2708
- const X = E.useRef(!1);
2709
- Be(() => (X.current = !0, () => {
2710
- X.current = !1;
2711
- }), []), Be(() => {
2712
- if (T && (I.current = T), b && (H.current = b), T && b) {
2713
- if (J.current)
2714
- return J.current(T, b, te);
2685
+ const Z = E.useRef(!1);
2686
+ We(() => (Z.current = !0, () => {
2687
+ Z.current = !1;
2688
+ }), []), We(() => {
2689
+ if (_ && (k.current = _), b && (z.current = b), _ && b) {
2690
+ if (K.current)
2691
+ return K.current(_, b, te);
2715
2692
  te();
2716
2693
  }
2717
- }, [T, b, te, J, Q]);
2694
+ }, [_, b, te, K, G]);
2718
2695
  const L = E.useMemo(() => ({
2719
- reference: I,
2720
- floating: H,
2721
- setReference: k,
2722
- setFloating: y
2723
- }), [k, y]), j = E.useMemo(() => ({
2724
- reference: T,
2696
+ reference: k,
2697
+ floating: z,
2698
+ setReference: I,
2699
+ setFloating: w
2700
+ }), [I, w]), j = E.useMemo(() => ({
2701
+ reference: _,
2725
2702
  floating: b
2726
- }), [T, b]), V = E.useMemo(() => {
2703
+ }), [_, b]), q = E.useMemo(() => {
2727
2704
  const M = {
2728
2705
  position: r,
2729
2706
  left: 0,
@@ -2731,11 +2708,11 @@ function Lo(e) {
2731
2708
  };
2732
2709
  if (!j.floating)
2733
2710
  return M;
2734
- const R = un(j.floating, f.x), m = un(j.floating, f.y);
2711
+ const R = cn(j.floating, f.x), m = cn(j.floating, f.y);
2735
2712
  return a ? {
2736
2713
  ...M,
2737
2714
  transform: "translate(" + R + "px, " + m + "px)",
2738
- ...Zn(j.floating) >= 1.5 && {
2715
+ ...zn(j.floating) >= 1.5 && {
2739
2716
  willChange: "transform"
2740
2717
  }
2741
2718
  } : {
@@ -2749,39 +2726,39 @@ function Lo(e) {
2749
2726
  update: te,
2750
2727
  refs: L,
2751
2728
  elements: j,
2752
- floatingStyles: V
2753
- }), [f, te, L, j, V]);
2729
+ floatingStyles: q
2730
+ }), [f, te, L, j, q]);
2754
2731
  }
2755
- const Fo = (e, t) => {
2756
- const r = Po(e);
2732
+ const Lo = (e, t) => {
2733
+ const r = Ao(e);
2757
2734
  return {
2758
2735
  name: r.name,
2759
2736
  fn: r.fn,
2760
2737
  options: [e, t]
2761
2738
  };
2762
- }, $o = (e, t) => {
2763
- const r = No(e);
2739
+ }, Fo = (e, t) => {
2740
+ const r = Po(e);
2764
2741
  return {
2765
2742
  name: r.name,
2766
2743
  fn: r.fn,
2767
2744
  options: [e, t]
2768
2745
  };
2769
- }, jo = (e, t) => {
2770
- const r = ko(e);
2746
+ }, $o = (e, t) => {
2747
+ const r = No(e);
2771
2748
  return {
2772
2749
  name: r.name,
2773
2750
  fn: r.fn,
2774
2751
  options: [e, t]
2775
2752
  };
2776
- }, Jn = {
2753
+ }, Xn = {
2777
2754
  ...E
2778
- }, Wo = Jn.useInsertionEffect, Bo = Wo || ((e) => e());
2779
- function me(e) {
2755
+ }, jo = Xn.useInsertionEffect, Wo = jo || ((e) => e());
2756
+ function pe(e) {
2780
2757
  const t = E.useRef(() => {
2781
2758
  if (process.env.NODE_ENV !== "production")
2782
2759
  throw new Error("Cannot call an event handler while rendering.");
2783
2760
  });
2784
- return Bo(() => {
2761
+ return Wo(() => {
2785
2762
  t.current = e;
2786
2763
  }), E.useCallback(function() {
2787
2764
  for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
@@ -2789,35 +2766,35 @@ function me(e) {
2789
2766
  return t.current == null ? void 0 : t.current(...n);
2790
2767
  }, []);
2791
2768
  }
2792
- var de = typeof document < "u" ? An : We;
2793
- function Ge() {
2794
- return Ge = Object.assign ? Object.assign.bind() : function(e) {
2769
+ var ue = typeof document < "u" ? _n : je;
2770
+ function Xe() {
2771
+ return Xe = Object.assign ? Object.assign.bind() : function(e) {
2795
2772
  for (var t = 1; t < arguments.length; t++) {
2796
2773
  var r = arguments[t];
2797
2774
  for (var n in r)
2798
2775
  Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
2799
2776
  }
2800
2777
  return e;
2801
- }, Ge.apply(this, arguments);
2778
+ }, Xe.apply(this, arguments);
2802
2779
  }
2803
- let fn = !1, qo = 0;
2804
- const dn = () => (
2780
+ let ln = !1, Bo = 0;
2781
+ const un = () => (
2805
2782
  // Ensure the id is unique with multiple independent versions of Floating UI
2806
2783
  // on <React 18
2807
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + qo++
2784
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Bo++
2808
2785
  );
2809
2786
  function Vo() {
2810
- const [e, t] = E.useState(() => fn ? dn() : void 0);
2811
- return de(() => {
2812
- e == null && t(dn());
2787
+ const [e, t] = E.useState(() => ln ? un() : void 0);
2788
+ return ue(() => {
2789
+ e == null && t(un());
2813
2790
  }, []), E.useEffect(() => {
2814
- fn = !0;
2791
+ ln = !0;
2815
2792
  }, []), e;
2816
2793
  }
2817
- const Yo = Jn.useId, Qn = Yo || Vo;
2794
+ const qo = Xn.useId, Gn = qo || Vo;
2818
2795
  let Nt;
2819
2796
  process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
2820
- function Uo() {
2797
+ function Yo() {
2821
2798
  for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
2822
2799
  r[n] = arguments[n];
2823
2800
  const o = "Floating UI: " + r.join(" ");
@@ -2826,7 +2803,7 @@ function Uo() {
2826
2803
  (i = Nt) == null || i.add(o), console.error(o);
2827
2804
  }
2828
2805
  }
2829
- function Ho() {
2806
+ function Uo() {
2830
2807
  const e = /* @__PURE__ */ new Map();
2831
2808
  return {
2832
2809
  emit(t, r) {
@@ -2842,34 +2819,34 @@ function Ho() {
2842
2819
  }
2843
2820
  };
2844
2821
  }
2845
- const Ko = /* @__PURE__ */ E.createContext(null), zo = /* @__PURE__ */ E.createContext(null), er = () => {
2822
+ const Ho = /* @__PURE__ */ E.createContext(null), Ko = /* @__PURE__ */ E.createContext(null), Zn = () => {
2846
2823
  var e;
2847
- return ((e = E.useContext(Ko)) == null ? void 0 : e.id) || null;
2848
- }, jt = () => E.useContext(zo);
2849
- function Ze(e) {
2824
+ return ((e = E.useContext(Ho)) == null ? void 0 : e.id) || null;
2825
+ }, jt = () => E.useContext(Ko);
2826
+ function Ge(e) {
2850
2827
  return "data-floating-ui-" + e;
2851
2828
  }
2852
2829
  function gt(e) {
2853
2830
  const t = Rt(e);
2854
- return de(() => {
2831
+ return ue(() => {
2855
2832
  t.current = e;
2856
2833
  }), t;
2857
2834
  }
2858
- let pn = 0;
2859
- function _e(e, t) {
2835
+ let fn = 0;
2836
+ function Se(e, t) {
2860
2837
  t === void 0 && (t = {});
2861
2838
  const {
2862
2839
  preventScroll: r = !1,
2863
2840
  cancelPrevious: n = !0,
2864
2841
  sync: o = !1
2865
2842
  } = t;
2866
- n && cancelAnimationFrame(pn);
2843
+ n && cancelAnimationFrame(fn);
2867
2844
  const i = () => e == null ? void 0 : e.focus({
2868
2845
  preventScroll: r
2869
2846
  });
2870
- o ? i() : pn = requestAnimationFrame(i);
2847
+ o ? i() : fn = requestAnimationFrame(i);
2871
2848
  }
2872
- function Xo(e, t) {
2849
+ function zo(e, t) {
2873
2850
  var r;
2874
2851
  let n = [], o = (r = e.find((i) => i.id === t)) == null ? void 0 : r.parentId;
2875
2852
  for (; o; ) {
@@ -2893,45 +2870,45 @@ function Ne(e, t) {
2893
2870
  }), r = r.concat(n);
2894
2871
  return r;
2895
2872
  }
2896
- let Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {}, wt = 0;
2897
- const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, tr = (e) => e && (e.host || tr(e.parentNode)), Zo = (e, t) => t.map((r) => {
2873
+ let _e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakSet(), $e = {}, wt = 0;
2874
+ const Xo = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, Jn = (e) => e && (e.host || Jn(e.parentNode)), Go = (e, t) => t.map((r) => {
2898
2875
  if (e.contains(r))
2899
2876
  return r;
2900
- const n = tr(r);
2877
+ const n = Jn(r);
2901
2878
  return e.contains(n) ? n : null;
2902
2879
  }).filter((r) => r != null);
2903
- function Jo(e, t, r, n) {
2904
- const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), c = [];
2905
- je[o] || (je[o] = /* @__PURE__ */ new WeakMap());
2906
- const f = je[o];
2880
+ function Zo(e, t, r, n) {
2881
+ const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Go(t, e), a = /* @__PURE__ */ new Set(), u = new Set(s), c = [];
2882
+ $e[o] || ($e[o] = /* @__PURE__ */ new WeakMap());
2883
+ const f = $e[o];
2907
2884
  s.forEach(d), h(t), a.clear();
2908
- function d(u) {
2909
- !u || a.has(u) || (a.add(u), u.parentNode && d(u.parentNode));
2885
+ function d(l) {
2886
+ !l || a.has(l) || (a.add(l), l.parentNode && d(l.parentNode));
2910
2887
  }
2911
- function h(u) {
2912
- !u || l.has(u) || [].forEach.call(u.children, (v) => {
2913
- if (ye(v) !== "script")
2888
+ function h(l) {
2889
+ !l || u.has(l) || [].forEach.call(l.children, (v) => {
2890
+ if (be(v) !== "script")
2914
2891
  if (a.has(v))
2915
2892
  h(v);
2916
2893
  else {
2917
- const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, k = (f.get(v) || 0) + 1;
2918
- Oe.set(v, A), f.set(v, k), c.push(v), A === 1 && O && $e.add(v), k === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
2894
+ const p = i ? v.getAttribute(i) : null, T = p !== null && p !== "false", A = (_e.get(v) || 0) + 1, I = (f.get(v) || 0) + 1;
2895
+ _e.set(v, A), f.set(v, I), c.push(v), A === 1 && T && Fe.add(v), I === 1 && v.setAttribute(o, ""), !T && i && v.setAttribute(i, "true");
2919
2896
  }
2920
2897
  });
2921
2898
  }
2922
2899
  return wt++, () => {
2923
- c.forEach((u) => {
2924
- const v = (Oe.get(u) || 0) - 1, p = (f.get(u) || 0) - 1;
2925
- Oe.set(u, v), f.set(u, p), v || (!$e.has(u) && i && u.removeAttribute(i), $e.delete(u)), p || u.removeAttribute(o);
2926
- }), wt--, wt || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {});
2900
+ c.forEach((l) => {
2901
+ const v = (_e.get(l) || 0) - 1, p = (f.get(l) || 0) - 1;
2902
+ _e.set(l, v), f.set(l, p), v || (!Fe.has(l) && i && l.removeAttribute(i), Fe.delete(l)), p || l.removeAttribute(o);
2903
+ }), wt--, wt || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakSet(), $e = {});
2927
2904
  };
2928
2905
  }
2929
- function mn(e, t, r) {
2906
+ function dn(e, t, r) {
2930
2907
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2931
- const n = ce(e[0]).body;
2932
- return Jo(e.concat(Array.from(n.querySelectorAll("[aria-live]"))), n, t, r);
2908
+ const n = ae(e[0]).body;
2909
+ return Zo(e.concat(Array.from(n.querySelectorAll("[aria-live]"))), n, t, r);
2933
2910
  }
2934
- const Je = () => ({
2911
+ const Ze = () => ({
2935
2912
  getShadowRoot: !0,
2936
2913
  displayCheck: (
2937
2914
  // JSDOM does not support the `tabbable` library. To solve this we can
@@ -2940,21 +2917,21 @@ const Je = () => ({
2940
2917
  typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
2941
2918
  )
2942
2919
  });
2943
- function nr(e, t) {
2944
- const r = Ft(e, Je());
2920
+ function Qn(e, t) {
2921
+ const r = Ft(e, Ze());
2945
2922
  t === "prev" && r.reverse();
2946
- const n = r.indexOf(we(ce(e)));
2923
+ const n = r.indexOf(ge(ae(e)));
2947
2924
  return r.slice(n + 1)[0];
2948
2925
  }
2949
- function Qo() {
2950
- return nr(document.body, "next");
2926
+ function Jo() {
2927
+ return Qn(document.body, "next");
2951
2928
  }
2952
- function ei() {
2953
- return nr(document.body, "prev");
2929
+ function Qo() {
2930
+ return Qn(document.body, "prev");
2954
2931
  }
2955
- function hn(e, t) {
2932
+ function pn(e, t) {
2956
2933
  const r = t || e.currentTarget, n = e.relatedTarget;
2957
- return !n || !oe(r, n);
2934
+ return !n || !ie(r, n);
2958
2935
  }
2959
2936
  const Wt = {
2960
2937
  border: 0,
@@ -2969,14 +2946,14 @@ const Wt = {
2969
2946
  top: 0,
2970
2947
  left: 0
2971
2948
  };
2972
- let ti;
2973
- function vn(e) {
2974
- e.key === "Tab" && (e.target, clearTimeout(ti));
2949
+ let ei;
2950
+ function mn(e) {
2951
+ e.key === "Tab" && (e.target, clearTimeout(ei));
2975
2952
  }
2976
- const bn = /* @__PURE__ */ E.forwardRef(function(t, r) {
2953
+ const hn = /* @__PURE__ */ E.forwardRef(function(t, r) {
2977
2954
  const [n, o] = E.useState();
2978
- de(() => (_r() && o("button"), document.addEventListener("keydown", vn), () => {
2979
- document.removeEventListener("keydown", vn);
2955
+ ue(() => (Tr() && o("button"), document.addEventListener("keydown", mn), () => {
2956
+ document.removeEventListener("keydown", mn);
2980
2957
  }), []);
2981
2958
  const i = {
2982
2959
  ref: r,
@@ -2984,39 +2961,39 @@ const bn = /* @__PURE__ */ E.forwardRef(function(t, r) {
2984
2961
  // Role is only for VoiceOver
2985
2962
  role: n,
2986
2963
  "aria-hidden": n ? void 0 : !0,
2987
- [Ze("focus-guard")]: "",
2964
+ [Ge("focus-guard")]: "",
2988
2965
  style: Wt
2989
2966
  };
2990
- return /* @__PURE__ */ E.createElement("span", Ge({}, t, i));
2991
- }), ni = /* @__PURE__ */ E.createContext(null), ri = () => E.useContext(ni), kt = "data-floating-ui-focusable";
2992
- function oi(e) {
2993
- return e ? e.hasAttribute(kt) ? e : e.querySelector("[" + kt + "]") || e : null;
2967
+ return /* @__PURE__ */ E.createElement("span", Xe({}, t, i));
2968
+ }), ti = /* @__PURE__ */ E.createContext(null), ni = () => E.useContext(ti), It = "data-floating-ui-focusable";
2969
+ function ri(e) {
2970
+ return e ? e.hasAttribute(It) ? e : e.querySelector("[" + It + "]") || e : null;
2994
2971
  }
2995
- const yn = 20;
2996
- let xe = [];
2972
+ const vn = 20;
2973
+ let we = [];
2997
2974
  function xt(e) {
2998
- xe = xe.filter((r) => r.isConnected);
2975
+ we = we.filter((r) => r.isConnected);
2999
2976
  let t = e;
3000
- if (!(!t || ye(t) === "body")) {
3001
- if (!oo(t, Je())) {
3002
- const r = Ft(t, Je())[0];
2977
+ if (!(!t || be(t) === "body")) {
2978
+ if (!no(t, Ze())) {
2979
+ const r = Ft(t, Ze())[0];
3003
2980
  r && (t = r);
3004
2981
  }
3005
- xe.push(t), xe.length > yn && (xe = xe.slice(-yn));
2982
+ we.push(t), we.length > vn && (we = we.slice(-vn));
3006
2983
  }
3007
2984
  }
3008
- function gn() {
3009
- return xe.slice().reverse().find((e) => e.isConnected);
2985
+ function bn() {
2986
+ return we.slice().reverse().find((e) => e.isConnected);
3010
2987
  }
3011
- const ii = /* @__PURE__ */ E.forwardRef(function(t, r) {
3012
- return /* @__PURE__ */ E.createElement("button", Ge({}, t, {
2988
+ const oi = /* @__PURE__ */ E.forwardRef(function(t, r) {
2989
+ return /* @__PURE__ */ E.createElement("button", Xe({}, t, {
3013
2990
  type: "button",
3014
2991
  ref: r,
3015
2992
  tabIndex: -1,
3016
2993
  style: Wt
3017
2994
  }));
3018
2995
  });
3019
- function si(e) {
2996
+ function ii(e) {
3020
2997
  const {
3021
2998
  context: t,
3022
2999
  children: r,
@@ -3025,161 +3002,161 @@ function si(e) {
3025
3002
  guards: i = !0,
3026
3003
  initialFocus: s = 0,
3027
3004
  returnFocus: a = !0,
3028
- restoreFocus: l = !1,
3005
+ restoreFocus: u = !1,
3029
3006
  modal: c = !0,
3030
3007
  visuallyHiddenDismiss: f = !1,
3031
3008
  closeOnFocusOut: d = !0
3032
3009
  } = e, {
3033
3010
  open: h,
3034
- refs: u,
3011
+ refs: l,
3035
3012
  nodeId: v,
3036
3013
  onOpenChange: p,
3037
- events: O,
3014
+ events: T,
3038
3015
  dataRef: A,
3039
- floatingId: k,
3016
+ floatingId: I,
3040
3017
  elements: {
3041
- domReference: y,
3042
- floating: T
3043
- }
3044
- } = t, b = typeof s == "number" && s < 0, I = kr(y) && b, H = Go() ? i : !0, z = gt(o), Q = gt(s), J = gt(a), Z = jt(), q = ri(), te = E.useRef(null), X = E.useRef(null), L = E.useRef(!1), j = E.useRef(!1), V = E.useRef(-1), M = q != null, R = oi(T), m = me(function(S) {
3045
- return S === void 0 && (S = R), S ? Ft(S, Je()) : [];
3046
- }), x = me((S) => {
3047
- const P = m(S);
3048
- return z.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
3018
+ domReference: w,
3019
+ floating: _
3020
+ }
3021
+ } = t, b = typeof s == "number" && s < 0, k = Ar(w) && b, z = Xo() ? i : !0, H = gt(o), G = gt(s), K = gt(a), Q = jt(), V = ni(), te = E.useRef(null), Z = E.useRef(null), L = E.useRef(!1), j = E.useRef(!1), q = E.useRef(-1), M = V != null, R = ri(_), m = pe(function(C) {
3022
+ return C === void 0 && (C = R), C ? Ft(C, Ze()) : [];
3023
+ }), x = pe((C) => {
3024
+ const P = m(C);
3025
+ return H.current.map((y) => w && y === "reference" ? w : R && y === "floating" ? R : P).filter(Boolean).flat();
3049
3026
  });
3050
3027
  E.useEffect(() => {
3051
3028
  if (n || !c) return;
3052
- function S(g) {
3053
- if (g.key === "Tab") {
3054
- oe(R, we(ce(R))) && m().length === 0 && !I && vt(g);
3055
- const _ = x(), N = Ee(g);
3056
- z.current[0] === "reference" && N === y && (vt(g), g.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), z.current[1] === "floating" && N === R && g.shiftKey && (vt(g), _e(_[0]));
3029
+ function C(y) {
3030
+ if (y.key === "Tab") {
3031
+ ie(R, ge(ae(R))) && m().length === 0 && !k && vt(y);
3032
+ const O = x(), N = xe(y);
3033
+ H.current[0] === "reference" && N === w && (vt(y), y.shiftKey ? Se(O[O.length - 1]) : Se(O[1])), H.current[1] === "floating" && N === R && y.shiftKey && (vt(y), Se(O[0]));
3057
3034
  }
3058
3035
  }
3059
- const P = ce(R);
3060
- return P.addEventListener("keydown", S), () => {
3061
- P.removeEventListener("keydown", S);
3036
+ const P = ae(R);
3037
+ return P.addEventListener("keydown", C), () => {
3038
+ P.removeEventListener("keydown", C);
3062
3039
  };
3063
- }, [n, y, R, c, z, I, m, x]), E.useEffect(() => {
3064
- if (n || !T) return;
3065
- function S(P) {
3066
- const g = Ee(P), N = m().indexOf(g);
3067
- N !== -1 && (V.current = N);
3068
- }
3069
- return T.addEventListener("focusin", S), () => {
3070
- T.removeEventListener("focusin", S);
3040
+ }, [n, w, R, c, H, k, m, x]), E.useEffect(() => {
3041
+ if (n || !_) return;
3042
+ function C(P) {
3043
+ const y = xe(P), N = m().indexOf(y);
3044
+ N !== -1 && (q.current = N);
3045
+ }
3046
+ return _.addEventListener("focusin", C), () => {
3047
+ _.removeEventListener("focusin", C);
3071
3048
  };
3072
- }, [n, T, m]), E.useEffect(() => {
3049
+ }, [n, _, m]), E.useEffect(() => {
3073
3050
  if (n || !d) return;
3074
- function S() {
3051
+ function C() {
3075
3052
  j.current = !0, setTimeout(() => {
3076
3053
  j.current = !1;
3077
3054
  });
3078
3055
  }
3079
- function P(g) {
3080
- const _ = g.relatedTarget;
3056
+ function P(y) {
3057
+ const O = y.relatedTarget;
3081
3058
  queueMicrotask(() => {
3082
- const N = !(oe(y, _) || oe(T, _) || oe(_, T) || oe(q == null ? void 0 : q.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || Z && (Ne(Z.nodesRef.current, v).find(($) => {
3083
- var D, G;
3084
- return oe((D = $.context) == null ? void 0 : D.elements.floating, _) || oe((G = $.context) == null ? void 0 : G.elements.domReference, _);
3085
- }) || Xo(Z.nodesRef.current, v).find(($) => {
3086
- var D, G;
3087
- return ((D = $.context) == null ? void 0 : D.elements.floating) === _ || ((G = $.context) == null ? void 0 : G.elements.domReference) === _;
3059
+ const N = !(ie(w, O) || ie(_, O) || ie(O, _) || ie(V == null ? void 0 : V.portalNode, O) || O != null && O.hasAttribute(Ge("focus-guard")) || Q && (Ne(Q.nodesRef.current, v).find(($) => {
3060
+ var D, J;
3061
+ return ie((D = $.context) == null ? void 0 : D.elements.floating, O) || ie((J = $.context) == null ? void 0 : J.elements.domReference, O);
3062
+ }) || zo(Q.nodesRef.current, v).find(($) => {
3063
+ var D, J;
3064
+ return ((D = $.context) == null ? void 0 : D.elements.floating) === O || ((J = $.context) == null ? void 0 : J.elements.domReference) === O;
3088
3065
  })));
3089
- if (l && N && we(ce(R)) === ce(R).body) {
3066
+ if (u && N && ge(ae(R)) === ae(R).body) {
3090
3067
  ne(R) && R.focus();
3091
- const $ = V.current, D = m(), G = D[$] || D[D.length - 1] || R;
3092
- ne(G) && G.focus();
3068
+ const $ = q.current, D = m(), J = D[$] || D[D.length - 1] || R;
3069
+ ne(J) && J.focus();
3093
3070
  }
3094
- (I || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3095
- _ !== gn() && (L.current = !0, p(!1, g, "focus-out"));
3071
+ (k || !c) && O && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3072
+ O !== bn() && (L.current = !0, p(!1, y, "focus-out"));
3096
3073
  });
3097
3074
  }
3098
- if (T && ne(y))
3099
- return y.addEventListener("focusout", P), y.addEventListener("pointerdown", S), T.addEventListener("focusout", P), () => {
3100
- y.removeEventListener("focusout", P), y.removeEventListener("pointerdown", S), T.removeEventListener("focusout", P);
3075
+ if (_ && ne(w))
3076
+ return w.addEventListener("focusout", P), w.addEventListener("pointerdown", C), _.addEventListener("focusout", P), () => {
3077
+ w.removeEventListener("focusout", P), w.removeEventListener("pointerdown", C), _.removeEventListener("focusout", P);
3101
3078
  };
3102
- }, [n, y, T, R, c, v, Z, q, p, d, l, m, I]), E.useEffect(() => {
3103
- var S;
3079
+ }, [n, w, _, R, c, v, Q, V, p, d, u, m, k]), E.useEffect(() => {
3080
+ var C;
3104
3081
  if (n) return;
3105
- const P = Array.from((q == null || (S = q.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
3106
- if (T) {
3107
- const g = [T, ...P, te.current, X.current, z.current.includes("reference") || I ? y : null].filter((N) => N != null), _ = c || I ? mn(g, H, !H) : mn(g);
3082
+ const P = Array.from((V == null || (C = V.portalNode) == null ? void 0 : C.querySelectorAll("[" + Ge("portal") + "]")) || []);
3083
+ if (_) {
3084
+ const y = [_, ...P, te.current, Z.current, H.current.includes("reference") || k ? w : null].filter((N) => N != null), O = c || k ? dn(y, z, !z) : dn(y);
3108
3085
  return () => {
3109
- _();
3086
+ O();
3110
3087
  };
3111
3088
  }
3112
- }, [n, y, T, c, z, q, I, H]), de(() => {
3089
+ }, [n, w, _, c, H, V, k, z]), ue(() => {
3113
3090
  if (n || !ne(R)) return;
3114
- const S = ce(R), P = we(S);
3091
+ const C = ae(R), P = ge(C);
3115
3092
  queueMicrotask(() => {
3116
- const g = x(R), _ = Q.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
3117
- !b && !$ && h && _e(N, {
3093
+ const y = x(R), O = G.current, N = (typeof O == "number" ? y[O] : O.current) || R, $ = ie(R, P);
3094
+ !b && !$ && h && Se(N, {
3118
3095
  preventScroll: N === R
3119
3096
  });
3120
3097
  });
3121
- }, [n, h, R, b, x, Q]), de(() => {
3098
+ }, [n, h, R, b, x, G]), ue(() => {
3122
3099
  if (n || !R) return;
3123
- let S = !1;
3124
- const P = ce(R), g = we(P);
3100
+ let C = !1;
3101
+ const P = ae(R), y = ge(P);
3125
3102
  let N = A.current.openEvent;
3126
- xt(g);
3127
- function $(C) {
3103
+ xt(y);
3104
+ function $(S) {
3128
3105
  let {
3129
3106
  open: re,
3130
- reason: fe,
3131
- event: ae,
3107
+ reason: le,
3108
+ event: se,
3132
3109
  nested: st
3133
- } = C;
3134
- re && (N = ae), fe === "escape-key" && u.domReference.current && xt(u.domReference.current), fe === "hover" && ae.type === "mouseleave" && (L.current = !0), fe === "outside-press" && (st ? (L.current = !1, S = !0) : L.current = !(Sr(ae) || Cr(ae)));
3110
+ } = S;
3111
+ re && (N = se), le === "escape-key" && l.domReference.current && xt(l.domReference.current), le === "hover" && se.type === "mouseleave" && (L.current = !0), le === "outside-press" && (st ? (L.current = !1, C = !0) : L.current = !(Er(se) || Rr(se)));
3135
3112
  }
3136
- O.on("openchange", $);
3113
+ T.on("openchange", $);
3137
3114
  const D = P.createElement("span");
3138
- D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && y && y.insertAdjacentElement("afterend", D);
3139
- function G() {
3140
- return typeof J.current == "boolean" ? gn() || D : J.current.current || D;
3115
+ D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && w && w.insertAdjacentElement("afterend", D);
3116
+ function J() {
3117
+ return typeof K.current == "boolean" ? bn() || D : K.current.current || D;
3141
3118
  }
3142
3119
  return () => {
3143
- O.off("openchange", $);
3144
- const C = we(P), re = oe(T, C) || Z && Ne(Z.nodesRef.current, v).some((st) => {
3145
- var qt;
3146
- return oe((qt = st.context) == null ? void 0 : qt.elements.floating, C);
3120
+ T.off("openchange", $);
3121
+ const S = ge(P), re = ie(_, S) || Q && Ne(Q.nodesRef.current, v).some((st) => {
3122
+ var Vt;
3123
+ return ie((Vt = st.context) == null ? void 0 : Vt.elements.floating, S);
3147
3124
  });
3148
- (re || N && ["click", "mousedown"].includes(N.type)) && u.domReference.current && xt(u.domReference.current);
3149
- const ae = G();
3125
+ (re || N && ["click", "mousedown"].includes(N.type)) && l.domReference.current && xt(l.domReference.current);
3126
+ const se = J();
3150
3127
  queueMicrotask(() => {
3151
3128
  // eslint-disable-next-line react-hooks/exhaustive-deps
3152
- J.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3129
+ K.current && !L.current && ne(se) && // If the focus moved somewhere else after mount, avoid returning focus
3153
3130
  // since it likely entered a different element which should be
3154
3131
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
3155
- (!(ae !== C && C !== P.body) || re) && ae.focus({
3156
- preventScroll: S
3132
+ (!(se !== S && S !== P.body) || re) && se.focus({
3133
+ preventScroll: C
3157
3134
  }), D.remove();
3158
3135
  });
3159
3136
  };
3160
- }, [n, T, R, J, A, u, O, Z, v, M, y]), E.useEffect(() => {
3137
+ }, [n, _, R, K, A, l, T, Q, v, M, w]), E.useEffect(() => {
3161
3138
  queueMicrotask(() => {
3162
3139
  L.current = !1;
3163
3140
  });
3164
- }, [n]), de(() => {
3165
- if (!n && q)
3166
- return q.setFocusManagerState({
3141
+ }, [n]), ue(() => {
3142
+ if (!n && V)
3143
+ return V.setFocusManagerState({
3167
3144
  modal: c,
3168
3145
  closeOnFocusOut: d,
3169
3146
  open: h,
3170
3147
  onOpenChange: p,
3171
- refs: u
3148
+ refs: l
3172
3149
  }), () => {
3173
- q.setFocusManagerState(null);
3150
+ V.setFocusManagerState(null);
3174
3151
  };
3175
- }, [n, q, c, h, p, u, d]), de(() => {
3152
+ }, [n, V, c, h, p, l, d]), ue(() => {
3176
3153
  if (n || !R || typeof MutationObserver != "function" || b) return;
3177
- const S = () => {
3178
- const g = R.getAttribute("tabindex"), _ = m(), N = we(ce(T)), $ = _.indexOf(N);
3179
- $ !== -1 && (V.current = $), z.current.includes("floating") || N !== u.domReference.current && _.length === 0 ? g !== "0" && R.setAttribute("tabindex", "0") : g !== "-1" && R.setAttribute("tabindex", "-1");
3154
+ const C = () => {
3155
+ const y = R.getAttribute("tabindex"), O = m(), N = ge(ae(_)), $ = O.indexOf(N);
3156
+ $ !== -1 && (q.current = $), H.current.includes("floating") || N !== l.domReference.current && O.length === 0 ? y !== "0" && R.setAttribute("tabindex", "0") : y !== "-1" && R.setAttribute("tabindex", "-1");
3180
3157
  };
3181
- S();
3182
- const P = new MutationObserver(S);
3158
+ C();
3159
+ const P = new MutationObserver(C);
3183
3160
  return P.observe(R, {
3184
3161
  childList: !0,
3185
3162
  subtree: !0,
@@ -3187,54 +3164,54 @@ function si(e) {
3187
3164
  }), () => {
3188
3165
  P.disconnect();
3189
3166
  };
3190
- }, [n, T, R, u, z, m, b]);
3191
- function F(S) {
3192
- return n || !f || !c ? null : /* @__PURE__ */ E.createElement(ii, {
3193
- ref: S === "start" ? te : X,
3167
+ }, [n, _, R, l, H, m, b]);
3168
+ function F(C) {
3169
+ return n || !f || !c ? null : /* @__PURE__ */ E.createElement(oi, {
3170
+ ref: C === "start" ? te : Z,
3194
3171
  onClick: (P) => p(!1, P.nativeEvent)
3195
3172
  }, typeof f == "string" ? f : "Dismiss");
3196
3173
  }
3197
- const W = !n && H && (c ? !I : !0) && (M || c);
3198
- return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(bn, {
3174
+ const W = !n && z && (c ? !k : !0) && (M || c);
3175
+ return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(hn, {
3199
3176
  "data-type": "inside",
3200
- ref: q == null ? void 0 : q.beforeInsideRef,
3201
- onFocus: (S) => {
3177
+ ref: V == null ? void 0 : V.beforeInsideRef,
3178
+ onFocus: (C) => {
3202
3179
  if (c) {
3203
- const g = x();
3204
- _e(o[0] === "reference" ? g[0] : g[g.length - 1]);
3205
- } else if (q != null && q.preserveTabOrder && q.portalNode)
3206
- if (L.current = !1, hn(S, q.portalNode)) {
3207
- const g = Qo() || y;
3208
- g == null || g.focus();
3180
+ const y = x();
3181
+ Se(o[0] === "reference" ? y[0] : y[y.length - 1]);
3182
+ } else if (V != null && V.preserveTabOrder && V.portalNode)
3183
+ if (L.current = !1, pn(C, V.portalNode)) {
3184
+ const y = Jo() || w;
3185
+ y == null || y.focus();
3209
3186
  } else {
3210
3187
  var P;
3211
- (P = q.beforeOutsideRef.current) == null || P.focus();
3188
+ (P = V.beforeOutsideRef.current) == null || P.focus();
3212
3189
  }
3213
3190
  }
3214
- }), !I && F("start"), r, F("end"), W && /* @__PURE__ */ E.createElement(bn, {
3191
+ }), !k && F("start"), r, F("end"), W && /* @__PURE__ */ E.createElement(hn, {
3215
3192
  "data-type": "inside",
3216
- ref: q == null ? void 0 : q.afterInsideRef,
3217
- onFocus: (S) => {
3193
+ ref: V == null ? void 0 : V.afterInsideRef,
3194
+ onFocus: (C) => {
3218
3195
  if (c)
3219
- _e(x()[0]);
3220
- else if (q != null && q.preserveTabOrder && q.portalNode)
3221
- if (d && (L.current = !0), hn(S, q.portalNode)) {
3222
- const g = ei() || y;
3223
- g == null || g.focus();
3196
+ Se(x()[0]);
3197
+ else if (V != null && V.preserveTabOrder && V.portalNode)
3198
+ if (d && (L.current = !0), pn(C, V.portalNode)) {
3199
+ const y = Qo() || w;
3200
+ y == null || y.focus();
3224
3201
  } else {
3225
3202
  var P;
3226
- (P = q.afterOutsideRef.current) == null || P.focus();
3203
+ (P = V.afterOutsideRef.current) == null || P.focus();
3227
3204
  }
3228
3205
  }
3229
3206
  }));
3230
3207
  }
3231
- function wn(e) {
3208
+ function yn(e) {
3232
3209
  return ne(e.target) && e.target.tagName === "BUTTON";
3233
3210
  }
3234
- function xn(e) {
3235
- return Ln(e);
3211
+ function gn(e) {
3212
+ return Mn(e);
3236
3213
  }
3237
- function ai(e, t) {
3214
+ function si(e, t) {
3238
3215
  t === void 0 && (t = {});
3239
3216
  const {
3240
3217
  open: r,
@@ -3246,53 +3223,53 @@ function ai(e, t) {
3246
3223
  } = e, {
3247
3224
  enabled: s = !0,
3248
3225
  event: a = "click",
3249
- toggle: l = !0,
3226
+ toggle: u = !0,
3250
3227
  ignoreMouse: c = !1,
3251
3228
  keyboardHandlers: f = !0,
3252
3229
  stickIfOpen: d = !0
3253
- } = t, h = E.useRef(), u = E.useRef(!1), v = E.useMemo(() => ({
3230
+ } = t, h = E.useRef(), l = E.useRef(!1), v = E.useMemo(() => ({
3254
3231
  onPointerDown(p) {
3255
3232
  h.current = p.pointerType;
3256
3233
  },
3257
3234
  onMouseDown(p) {
3258
- const O = h.current;
3259
- p.button === 0 && a !== "click" && (en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
3235
+ const T = h.current;
3236
+ p.button === 0 && a !== "click" && (en(T) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
3260
3237
  },
3261
3238
  onClick(p) {
3262
- const O = h.current;
3239
+ const T = h.current;
3263
3240
  if (a === "mousedown" && h.current) {
3264
3241
  h.current = void 0;
3265
3242
  return;
3266
3243
  }
3267
- en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
3244
+ en(T) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
3268
3245
  },
3269
3246
  onKeyDown(p) {
3270
- h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), u.current = !0), p.key === "Enter" && n(!(r && l), p.nativeEvent, "click"));
3247
+ h.current = void 0, !(p.defaultPrevented || !f || yn(p)) && (p.key === " " && !gn(i) && (p.preventDefault(), l.current = !0), p.key === "Enter" && n(!(r && u), p.nativeEvent, "click"));
3271
3248
  },
3272
3249
  onKeyUp(p) {
3273
- p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && u.current && (u.current = !1, n(!(r && l), p.nativeEvent, "click"));
3250
+ p.defaultPrevented || !f || yn(p) || gn(i) || p.key === " " && l.current && (l.current = !1, n(!(r && u), p.nativeEvent, "click"));
3274
3251
  }
3275
- }), [o, i, a, c, f, n, r, d, l]);
3252
+ }), [o, i, a, c, f, n, r, d, u]);
3276
3253
  return E.useMemo(() => s ? {
3277
3254
  reference: v
3278
3255
  } : {}, [s, v]);
3279
3256
  }
3280
- const ci = {
3257
+ const ai = {
3281
3258
  pointerdown: "onPointerDown",
3282
3259
  mousedown: "onMouseDown",
3283
3260
  click: "onClick"
3284
- }, li = {
3261
+ }, ci = {
3285
3262
  pointerdown: "onPointerDownCapture",
3286
3263
  mousedown: "onMouseDownCapture",
3287
3264
  click: "onClickCapture"
3288
- }, En = (e) => {
3265
+ }, wn = (e) => {
3289
3266
  var t, r;
3290
3267
  return {
3291
3268
  escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
3292
3269
  outsidePress: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.outsidePress) != null ? r : !0
3293
3270
  };
3294
3271
  };
3295
- function ui(e, t) {
3272
+ function li(e, t) {
3296
3273
  t === void 0 && (t = {});
3297
3274
  const {
3298
3275
  open: r,
@@ -3302,25 +3279,25 @@ function ui(e, t) {
3302
3279
  } = e, {
3303
3280
  enabled: s = !0,
3304
3281
  escapeKey: a = !0,
3305
- outsidePress: l = !0,
3282
+ outsidePress: u = !0,
3306
3283
  outsidePressEvent: c = "pointerdown",
3307
3284
  referencePress: f = !1,
3308
3285
  referencePressEvent: d = "pointerdown",
3309
3286
  ancestorScroll: h = !1,
3310
- bubbles: u,
3287
+ bubbles: l,
3311
3288
  capture: v
3312
- } = t, p = jt(), O = me(typeof l == "function" ? l : () => !1), A = typeof l == "function" ? O : l, k = E.useRef(!1), y = E.useRef(!1), {
3313
- escapeKey: T,
3289
+ } = t, p = jt(), T = pe(typeof u == "function" ? u : () => !1), A = typeof u == "function" ? T : u, I = E.useRef(!1), w = E.useRef(!1), {
3290
+ escapeKey: _,
3314
3291
  outsidePress: b
3315
- } = En(u), {
3316
- escapeKey: I,
3317
- outsidePress: H
3318
- } = En(v), z = E.useRef(!1), Q = me((L) => {
3292
+ } = wn(l), {
3293
+ escapeKey: k,
3294
+ outsidePress: z
3295
+ } = wn(v), H = E.useRef(!1), G = pe((L) => {
3319
3296
  var j;
3320
- if (!r || !s || !a || L.key !== "Escape" || z.current)
3297
+ if (!r || !s || !a || L.key !== "Escape" || H.current)
3321
3298
  return;
3322
- const V = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, V) : [];
3323
- if (!T && (L.stopPropagation(), M.length > 0)) {
3299
+ const q = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, q) : [];
3300
+ if (!_ && (L.stopPropagation(), M.length > 0)) {
3324
3301
  let R = !0;
3325
3302
  if (M.forEach((m) => {
3326
3303
  var x;
@@ -3331,92 +3308,92 @@ function ui(e, t) {
3331
3308
  }), !R)
3332
3309
  return;
3333
3310
  }
3334
- n(!1, Ar(L) ? L.nativeEvent : L, "escape-key");
3335
- }), J = me((L) => {
3311
+ n(!1, Sr(L) ? L.nativeEvent : L, "escape-key");
3312
+ }), K = pe((L) => {
3336
3313
  var j;
3337
- const V = () => {
3314
+ const q = () => {
3338
3315
  var M;
3339
- Q(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
3316
+ G(L), (M = xe(L)) == null || M.removeEventListener("keydown", q);
3340
3317
  };
3341
- (j = Ee(L)) == null || j.addEventListener("keydown", V);
3342
- }), Z = me((L) => {
3318
+ (j = xe(L)) == null || j.addEventListener("keydown", q);
3319
+ }), Q = pe((L) => {
3343
3320
  var j;
3344
- const V = k.current;
3345
- k.current = !1;
3346
- const M = y.current;
3347
- if (y.current = !1, c === "click" && M || V || typeof A == "function" && !A(L))
3321
+ const q = I.current;
3322
+ I.current = !1;
3323
+ const M = w.current;
3324
+ if (w.current = !1, c === "click" && M || q || typeof A == "function" && !A(L))
3348
3325
  return;
3349
- const R = Ee(L), m = "[" + Ze("inert") + "]", x = ce(o.floating).querySelectorAll(m);
3326
+ const R = xe(L), m = "[" + Ge("inert") + "]", x = ae(o.floating).querySelectorAll(m);
3350
3327
  let F = ee(R) ? R : null;
3351
- for (; F && !be(F); ) {
3352
- const g = pe(F);
3353
- if (be(g) || !ee(g))
3328
+ for (; F && !Te(F); ) {
3329
+ const y = ve(F);
3330
+ if (Te(y) || !ee(y))
3354
3331
  break;
3355
- F = g;
3332
+ F = y;
3356
3333
  }
3357
- if (x.length && ee(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3358
- !oe(R, o.floating) && // If the target root element contains none of the markers, then the
3334
+ if (x.length && ee(R) && !_r(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3335
+ !ie(R, o.floating) && // If the target root element contains none of the markers, then the
3359
3336
  // element was injected after the floating element rendered.
3360
- Array.from(x).every((g) => !oe(F, g)))
3337
+ Array.from(x).every((y) => !ie(F, y)))
3361
3338
  return;
3362
- if (ne(R) && X) {
3363
- const g = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3364
- let N = _ && L.offsetX > R.clientWidth;
3365
- if (_ && se(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || g && L.offsetY > R.clientHeight)
3339
+ if (ne(R) && Z) {
3340
+ const y = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, O = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3341
+ let N = O && L.offsetX > R.clientWidth;
3342
+ if (O && ce(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || y && L.offsetY > R.clientHeight)
3366
3343
  return;
3367
3344
  }
3368
- const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, S = p && Ne(p.nodesRef.current, W).some((g) => {
3369
- var _;
3370
- return ht(L, (_ = g.context) == null ? void 0 : _.elements.floating);
3345
+ const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, C = p && Ne(p.nodesRef.current, W).some((y) => {
3346
+ var O;
3347
+ return ht(L, (O = y.context) == null ? void 0 : O.elements.floating);
3371
3348
  });
3372
- if (ht(L, o.floating) || ht(L, o.domReference) || S)
3349
+ if (ht(L, o.floating) || ht(L, o.domReference) || C)
3373
3350
  return;
3374
3351
  const P = p ? Ne(p.nodesRef.current, W) : [];
3375
3352
  if (P.length > 0) {
3376
- let g = !0;
3377
- if (P.forEach((_) => {
3353
+ let y = !0;
3354
+ if (P.forEach((O) => {
3378
3355
  var N;
3379
- if ((N = _.context) != null && N.open && !_.context.dataRef.current.__outsidePressBubbles) {
3380
- g = !1;
3356
+ if ((N = O.context) != null && N.open && !O.context.dataRef.current.__outsidePressBubbles) {
3357
+ y = !1;
3381
3358
  return;
3382
3359
  }
3383
- }), !g)
3360
+ }), !y)
3384
3361
  return;
3385
3362
  }
3386
3363
  n(!1, L, "outside-press");
3387
- }), q = me((L) => {
3364
+ }), V = pe((L) => {
3388
3365
  var j;
3389
- const V = () => {
3366
+ const q = () => {
3390
3367
  var M;
3391
- Z(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
3368
+ Q(L), (M = xe(L)) == null || M.removeEventListener(c, q);
3392
3369
  };
3393
- (j = Ee(L)) == null || j.addEventListener(c, V);
3370
+ (j = xe(L)) == null || j.addEventListener(c, q);
3394
3371
  });
3395
3372
  E.useEffect(() => {
3396
3373
  if (!r || !s)
3397
3374
  return;
3398
- i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
3375
+ i.current.__escapeKeyBubbles = _, i.current.__outsidePressBubbles = b;
3399
3376
  let L = -1;
3400
3377
  function j(x) {
3401
3378
  n(!1, x, "ancestor-scroll");
3402
3379
  }
3403
- function V() {
3404
- window.clearTimeout(L), z.current = !0;
3380
+ function q() {
3381
+ window.clearTimeout(L), H.current = !0;
3405
3382
  }
3406
3383
  function M() {
3407
3384
  L = window.setTimeout(
3408
3385
  () => {
3409
- z.current = !1;
3386
+ H.current = !1;
3410
3387
  },
3411
3388
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3412
3389
  // Only apply to WebKit for the test to remain 0ms.
3413
3390
  tt() ? 5 : 0
3414
3391
  );
3415
3392
  }
3416
- const R = ce(o.floating);
3417
- a && (R.addEventListener("keydown", I ? J : Q, I), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, H ? q : Z, H);
3393
+ const R = ae(o.floating);
3394
+ a && (R.addEventListener("keydown", k ? K : G, k), R.addEventListener("compositionstart", q), R.addEventListener("compositionend", M)), A && R.addEventListener(c, z ? V : Q, z);
3418
3395
  let m = [];
3419
- return h && (ee(o.domReference) && (m = ve(o.domReference)), ee(o.floating) && (m = m.concat(ve(o.floating))), !ee(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((x) => {
3396
+ return h && (ee(o.domReference) && (m = he(o.domReference)), ee(o.floating) && (m = m.concat(he(o.floating))), !ee(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(he(o.reference.contextElement)))), m = m.filter((x) => {
3420
3397
  var F;
3421
3398
  return x !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
3422
3399
  }), m.forEach((x) => {
@@ -3424,59 +3401,59 @@ function ui(e, t) {
3424
3401
  passive: !0
3425
3402
  });
3426
3403
  }), () => {
3427
- a && (R.removeEventListener("keydown", I ? J : Q, I), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, H ? q : Z, H), m.forEach((x) => {
3404
+ a && (R.removeEventListener("keydown", k ? K : G, k), R.removeEventListener("compositionstart", q), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, z ? V : Q, z), m.forEach((x) => {
3428
3405
  x.removeEventListener("scroll", j);
3429
3406
  }), window.clearTimeout(L);
3430
3407
  };
3431
- }, [i, o, a, A, c, r, n, h, s, T, b, Q, I, J, Z, H, q]), E.useEffect(() => {
3432
- k.current = !1;
3408
+ }, [i, o, a, A, c, r, n, h, s, _, b, G, k, K, Q, z, V]), E.useEffect(() => {
3409
+ I.current = !1;
3433
3410
  }, [A, c]);
3434
3411
  const te = E.useMemo(() => ({
3435
- onKeyDown: Q,
3436
- [ci[d]]: (L) => {
3412
+ onKeyDown: G,
3413
+ [ai[d]]: (L) => {
3437
3414
  f && n(!1, L.nativeEvent, "reference-press");
3438
3415
  }
3439
- }), [Q, n, f, d]), X = E.useMemo(() => ({
3440
- onKeyDown: Q,
3416
+ }), [G, n, f, d]), Z = E.useMemo(() => ({
3417
+ onKeyDown: G,
3441
3418
  onMouseDown() {
3442
- y.current = !0;
3419
+ w.current = !0;
3443
3420
  },
3444
3421
  onMouseUp() {
3445
- y.current = !0;
3422
+ w.current = !0;
3446
3423
  },
3447
- [li[c]]: () => {
3448
- k.current = !0;
3424
+ [ci[c]]: () => {
3425
+ I.current = !0;
3449
3426
  }
3450
- }), [Q, c]);
3427
+ }), [G, c]);
3451
3428
  return E.useMemo(() => s ? {
3452
3429
  reference: te,
3453
- floating: X
3454
- } : {}, [s, te, X]);
3430
+ floating: Z
3431
+ } : {}, [s, te, Z]);
3455
3432
  }
3456
- function fi(e) {
3433
+ function ui(e) {
3457
3434
  const {
3458
3435
  open: t = !1,
3459
3436
  onOpenChange: r,
3460
3437
  elements: n
3461
- } = e, o = Qn(), i = E.useRef({}), [s] = E.useState(() => Ho()), a = er() != null;
3438
+ } = e, o = Gn(), i = E.useRef({}), [s] = E.useState(() => Uo()), a = Zn() != null;
3462
3439
  if (process.env.NODE_ENV !== "production") {
3463
- const u = n.reference;
3464
- u && !ee(u) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3440
+ const l = n.reference;
3441
+ l && !ee(l) && Yo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3465
3442
  }
3466
- const [l, c] = E.useState(n.reference), f = me((u, v, p) => {
3467
- i.current.openEvent = u ? v : void 0, s.emit("openchange", {
3468
- open: u,
3443
+ const [u, c] = E.useState(n.reference), f = pe((l, v, p) => {
3444
+ i.current.openEvent = l ? v : void 0, s.emit("openchange", {
3445
+ open: l,
3469
3446
  event: v,
3470
3447
  reason: p,
3471
3448
  nested: a
3472
- }), r == null || r(u, v, p);
3449
+ }), r == null || r(l, v, p);
3473
3450
  }), d = E.useMemo(() => ({
3474
3451
  setPositionReference: c
3475
3452
  }), []), h = E.useMemo(() => ({
3476
- reference: l || n.reference || null,
3453
+ reference: u || n.reference || null,
3477
3454
  floating: n.floating || null,
3478
3455
  domReference: n.reference
3479
- }), [l, n.reference, n.floating]);
3456
+ }), [u, n.reference, n.floating]);
3480
3457
  return E.useMemo(() => ({
3481
3458
  dataRef: i,
3482
3459
  open: t,
@@ -3487,22 +3464,22 @@ function fi(e) {
3487
3464
  refs: d
3488
3465
  }), [t, f, h, s, o, d]);
3489
3466
  }
3490
- function di(e) {
3467
+ function fi(e) {
3491
3468
  e === void 0 && (e = {});
3492
3469
  const {
3493
3470
  nodeId: t
3494
- } = e, r = fi({
3471
+ } = e, r = ui({
3495
3472
  ...e,
3496
3473
  elements: {
3497
3474
  reference: null,
3498
3475
  floating: null,
3499
3476
  ...e.elements
3500
3477
  }
3501
- }), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a, l] = E.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = E.useRef(null), h = jt();
3502
- de(() => {
3478
+ }), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a, u] = E.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = E.useRef(null), h = jt();
3479
+ ue(() => {
3503
3480
  f && (d.current = f);
3504
3481
  }, [f]);
3505
- const u = Lo({
3482
+ const l = Do({
3506
3483
  ...e,
3507
3484
  elements: {
3508
3485
  ...o,
@@ -3510,74 +3487,74 @@ function di(e) {
3510
3487
  reference: a
3511
3488
  }
3512
3489
  }
3513
- }), v = E.useCallback((y) => {
3514
- const T = ee(y) ? {
3515
- getBoundingClientRect: () => y.getBoundingClientRect(),
3516
- contextElement: y
3517
- } : y;
3518
- l(T), u.refs.setReference(T);
3519
- }, [u.refs]), p = E.useCallback((y) => {
3520
- (ee(y) || y === null) && (d.current = y, s(y)), (ee(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3490
+ }), v = E.useCallback((w) => {
3491
+ const _ = ee(w) ? {
3492
+ getBoundingClientRect: () => w.getBoundingClientRect(),
3493
+ contextElement: w
3494
+ } : w;
3495
+ u(_), l.refs.setReference(_);
3496
+ }, [l.refs]), p = E.useCallback((w) => {
3497
+ (ee(w) || w === null) && (d.current = w, s(w)), (ee(l.refs.reference.current) || l.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3521
3498
  // `null` to support `positionReference` + an unstable `reference`
3522
3499
  // callback ref.
3523
- y !== null && !ee(y)) && u.refs.setReference(y);
3524
- }, [u.refs]), O = E.useMemo(() => ({
3525
- ...u.refs,
3500
+ w !== null && !ee(w)) && l.refs.setReference(w);
3501
+ }, [l.refs]), T = E.useMemo(() => ({
3502
+ ...l.refs,
3526
3503
  setReference: p,
3527
3504
  setPositionReference: v,
3528
3505
  domReference: d
3529
- }), [u.refs, p, v]), A = E.useMemo(() => ({
3530
- ...u.elements,
3506
+ }), [l.refs, p, v]), A = E.useMemo(() => ({
3507
+ ...l.elements,
3531
3508
  domReference: f
3532
- }), [u.elements, f]), k = E.useMemo(() => ({
3533
- ...u,
3509
+ }), [l.elements, f]), I = E.useMemo(() => ({
3510
+ ...l,
3534
3511
  ...n,
3535
- refs: O,
3512
+ refs: T,
3536
3513
  elements: A,
3537
3514
  nodeId: t
3538
- }), [u, O, A, t, n]);
3539
- return de(() => {
3540
- n.dataRef.current.floatingContext = k;
3541
- const y = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
3542
- y && (y.context = k);
3515
+ }), [l, T, A, t, n]);
3516
+ return ue(() => {
3517
+ n.dataRef.current.floatingContext = I;
3518
+ const w = h == null ? void 0 : h.nodesRef.current.find((_) => _.id === t);
3519
+ w && (w.context = I);
3543
3520
  }), E.useMemo(() => ({
3544
- ...u,
3545
- context: k,
3546
- refs: O,
3521
+ ...l,
3522
+ context: I,
3523
+ refs: T,
3547
3524
  elements: A
3548
- }), [u, O, A, k]);
3525
+ }), [l, T, A, I]);
3549
3526
  }
3550
- const Rn = "active", Tn = "selected";
3527
+ const xn = "active", En = "selected";
3551
3528
  function Et(e, t, r) {
3552
3529
  const n = /* @__PURE__ */ new Map(), o = r === "item";
3553
3530
  let i = e;
3554
3531
  if (o && e) {
3555
3532
  const {
3556
- [Rn]: s,
3557
- [Tn]: a,
3558
- ...l
3533
+ [xn]: s,
3534
+ [En]: a,
3535
+ ...u
3559
3536
  } = e;
3560
- i = l;
3537
+ i = u;
3561
3538
  }
3562
3539
  return {
3563
3540
  ...r === "floating" && {
3564
3541
  tabIndex: -1,
3565
- [kt]: ""
3542
+ [It]: ""
3566
3543
  },
3567
3544
  ...i,
3568
3545
  ...t.map((s) => {
3569
3546
  const a = s ? s[r] : null;
3570
3547
  return typeof a == "function" ? e ? a(e) : null : a;
3571
- }).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((l) => {
3572
- let [c, f] = l;
3573
- if (!(o && [Rn, Tn].includes(c)))
3548
+ }).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((u) => {
3549
+ let [c, f] = u;
3550
+ if (!(o && [xn, En].includes(c)))
3574
3551
  if (c.indexOf("on") === 0) {
3575
3552
  if (n.has(c) || n.set(c, []), typeof f == "function") {
3576
3553
  var d;
3577
3554
  (d = n.get(c)) == null || d.push(f), s[c] = function() {
3578
- for (var h, u = arguments.length, v = new Array(u), p = 0; p < u; p++)
3555
+ for (var h, l = arguments.length, v = new Array(l), p = 0; p < l; p++)
3579
3556
  v[p] = arguments[p];
3580
- return (h = n.get(c)) == null ? void 0 : h.map((O) => O(...v)).find((O) => O !== void 0);
3557
+ return (h = n.get(c)) == null ? void 0 : h.map((T) => T(...v)).find((T) => T !== void 0);
3581
3558
  };
3582
3559
  }
3583
3560
  } else
@@ -3585,7 +3562,7 @@ function Et(e, t, r) {
3585
3562
  }), s), {})
3586
3563
  };
3587
3564
  }
3588
- function pi(e) {
3565
+ function di(e) {
3589
3566
  e === void 0 && (e = []);
3590
3567
  const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = E.useCallback(
3591
3568
  (a) => Et(a, e, "reference"),
@@ -3606,8 +3583,8 @@ function pi(e) {
3606
3583
  getItemProps: s
3607
3584
  }), [o, i, s]);
3608
3585
  }
3609
- const mi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
3610
- function hi(e, t) {
3586
+ const pi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
3587
+ function mi(e, t) {
3611
3588
  var r;
3612
3589
  t === void 0 && (t = {});
3613
3590
  const {
@@ -3616,7 +3593,7 @@ function hi(e, t) {
3616
3593
  } = e, {
3617
3594
  enabled: i = !0,
3618
3595
  role: s = "dialog"
3619
- } = t, a = (r = mi.get(s)) != null ? r : s, l = Qn(), f = er() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
3596
+ } = t, a = (r = pi.get(s)) != null ? r : s, u = Gn(), f = Zn() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
3620
3597
  ["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
3621
3598
  } : {
3622
3599
  "aria-expanded": n ? "true" : "false",
@@ -3626,7 +3603,7 @@ function hi(e, t) {
3626
3603
  role: "combobox"
3627
3604
  },
3628
3605
  ...a === "menu" && {
3629
- id: l
3606
+ id: u
3630
3607
  },
3631
3608
  ...a === "menu" && f && {
3632
3609
  role: "menuitem"
@@ -3637,7 +3614,7 @@ function hi(e, t) {
3637
3614
  ...s === "combobox" && {
3638
3615
  "aria-autocomplete": "list"
3639
3616
  }
3640
- }, [a, o, f, n, l, s]), h = E.useMemo(() => {
3617
+ }, [a, o, f, n, u, s]), h = E.useMemo(() => {
3641
3618
  const v = {
3642
3619
  id: o,
3643
3620
  ...a && {
@@ -3647,13 +3624,13 @@ function hi(e, t) {
3647
3624
  return a === "tooltip" || s === "label" ? v : {
3648
3625
  ...v,
3649
3626
  ...a === "menu" && {
3650
- "aria-labelledby": l
3627
+ "aria-labelledby": u
3651
3628
  }
3652
3629
  };
3653
- }, [a, o, l, s]), u = E.useCallback((v) => {
3630
+ }, [a, o, u, s]), l = E.useCallback((v) => {
3654
3631
  let {
3655
3632
  active: p,
3656
- selected: O
3633
+ selected: T
3657
3634
  } = v;
3658
3635
  const A = {
3659
3636
  role: "option",
@@ -3665,7 +3642,7 @@ function hi(e, t) {
3665
3642
  case "select":
3666
3643
  return {
3667
3644
  ...A,
3668
- "aria-selected": p && O
3645
+ "aria-selected": p && T
3669
3646
  };
3670
3647
  case "combobox":
3671
3648
  return {
@@ -3680,45 +3657,45 @@ function hi(e, t) {
3680
3657
  return E.useMemo(() => i ? {
3681
3658
  reference: d,
3682
3659
  floating: h,
3683
- item: u
3684
- } : {}, [i, d, h, u]);
3660
+ item: l
3661
+ } : {}, [i, d, h, l]);
3685
3662
  }
3686
- function vi({ className: e, children: t, buttonText: r }) {
3687
- const [n, o] = On(!1), { refs: i, floatingStyles: s, context: a } = di({
3663
+ function hi({ className: e, children: t, buttonText: r }) {
3664
+ const [n, o] = Sn(!1), { refs: i, floatingStyles: s, context: a } = fi({
3688
3665
  open: n,
3689
3666
  onOpenChange: o,
3690
- middleware: [Fo(16), jo(), $o()],
3691
- whileElementsMounted: Ao,
3667
+ middleware: [Lo(16), $o(), Fo()],
3668
+ whileElementsMounted: Oo,
3692
3669
  placement: "right"
3693
- }), l = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
3694
- l,
3670
+ }), u = si(a), c = li(a), f = mi(a), { getReferenceProps: d, getFloatingProps: h } = di([
3671
+ u,
3695
3672
  c,
3696
3673
  f
3697
3674
  ]);
3698
- return /* @__PURE__ */ B(ke, { children: [
3699
- /* @__PURE__ */ w("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ w(Re, { text: r }) }),
3700
- n && /* @__PURE__ */ w(si, { context: a, modal: !1, children: /* @__PURE__ */ w(
3675
+ return /* @__PURE__ */ B(Ie, { children: [
3676
+ /* @__PURE__ */ g("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ g(Ee, { text: r }) }),
3677
+ n && /* @__PURE__ */ g(ii, { context: a, modal: !1, children: /* @__PURE__ */ g(
3701
3678
  "div",
3702
3679
  {
3703
3680
  ref: i.setFloating,
3704
3681
  style: s,
3705
3682
  ...h(),
3706
- children: /* @__PURE__ */ w(gr, { children: t })
3683
+ children: /* @__PURE__ */ g(vr, { children: t })
3707
3684
  }
3708
3685
  ) })
3709
3686
  ] });
3710
3687
  }
3711
- const qi = ({
3688
+ const Bi = ({
3712
3689
  className: e,
3713
3690
  children: t,
3714
3691
  buttonText: r = "Menu button"
3715
3692
  }) => {
3716
- const n = K("rpf-menu-button", e);
3717
- return /* @__PURE__ */ w(vi, { className: n, buttonText: r, children: t });
3718
- }, Sn = (e) => e ? /* @__PURE__ */ w("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Cn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ B(ke, { children: [
3719
- t === "left" && r !== "" ? Sn(r) : null,
3693
+ const n = X("rpf-menu-button", e);
3694
+ return /* @__PURE__ */ g(hi, { className: n, buttonText: r, children: t });
3695
+ }, Rn = (e) => e ? /* @__PURE__ */ g("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Tn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ B(Ie, { children: [
3696
+ t === "left" && r !== "" ? Rn(r) : null,
3720
3697
  e,
3721
- t === "right" && r !== "" ? Sn(r) : null
3698
+ t === "right" && r !== "" ? Rn(r) : null
3722
3699
  ] }), Vi = ({
3723
3700
  text: e,
3724
3701
  href: t,
@@ -3728,43 +3705,43 @@ const qi = ({
3728
3705
  className: i,
3729
3706
  onClick: s
3730
3707
  }) => {
3731
- const a = K(
3708
+ const a = X(
3732
3709
  "rpf-menu__item",
3733
3710
  { "rpf-menu__item--danger": o },
3734
3711
  i
3735
3712
  );
3736
- return /* @__PURE__ */ w("li", { className: a, children: t ? /* @__PURE__ */ w("a", { href: t, children: /* @__PURE__ */ w(Cn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ w("button", { type: "button", onClick: s, children: /* @__PURE__ */ w(Cn, { text: e, iconPosition: n, icon: r }) }) });
3737
- }, Yi = ({ text: e }) => /* @__PURE__ */ w("li", { className: "rpf-menu__title", children: /* @__PURE__ */ w("span", { children: e }) }), Ui = ({
3713
+ return /* @__PURE__ */ g("li", { className: a, children: t ? /* @__PURE__ */ g("a", { href: t, children: /* @__PURE__ */ g(Tn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ g("button", { type: "button", onClick: s, children: /* @__PURE__ */ g(Tn, { text: e, iconPosition: n, icon: r }) }) });
3714
+ }, qi = ({ text: e }) => /* @__PURE__ */ g("li", { className: "rpf-menu__title", children: /* @__PURE__ */ g("span", { children: e }) }), Yi = ({
3738
3715
  text: e = "",
3739
3716
  percent: t,
3740
3717
  complete: r = !1,
3741
3718
  className: n
3742
- }) => /* @__PURE__ */ w(
3719
+ }) => /* @__PURE__ */ g(
3743
3720
  "div",
3744
3721
  {
3745
- className: K("rpf-progress-bar", {
3722
+ className: X("rpf-progress-bar", {
3746
3723
  "rpf-progress-bar--complete": r,
3747
3724
  className: n
3748
3725
  }),
3749
3726
  children: /* @__PURE__ */ B("label", { className: "rpf-progress-bar__label", children: [
3750
- /* @__PURE__ */ w("span", { children: e }),
3751
- /* @__PURE__ */ w("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
3727
+ /* @__PURE__ */ g("span", { children: e }),
3728
+ /* @__PURE__ */ g("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
3752
3729
  ] })
3753
3730
  }
3754
- ), Hi = ({ children: e }) => /* @__PURE__ */ w("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ w("div", { className: "rpf-table-cell__content", children: e }) });
3731
+ ), Ui = ({ children: e }) => /* @__PURE__ */ g("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ g("div", { className: "rpf-table-cell__content", children: e }) });
3755
3732
  /**
3756
3733
  * @license lucide-react v0.553.0 - ISC
3757
3734
  *
3758
3735
  * This source code is licensed under the ISC license.
3759
3736
  * See the LICENSE file in the root directory of this source tree.
3760
3737
  */
3761
- const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (e) => e.replace(
3738
+ const vi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), bi = (e) => e.replace(
3762
3739
  /^([A-Z])|[\s-_]+(\w)/g,
3763
3740
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
3764
- ), _n = (e) => {
3765
- const t = yi(e);
3741
+ ), Cn = (e) => {
3742
+ const t = bi(e);
3766
3743
  return t.charAt(0).toUpperCase() + t.slice(1);
3767
- }, rr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), gi = (e) => {
3744
+ }, er = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), yi = (e) => {
3768
3745
  for (const t in e)
3769
3746
  if (t.startsWith("aria-") || t === "role" || t === "title")
3770
3747
  return !0;
@@ -3775,7 +3752,7 @@ const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (
3775
3752
  * This source code is licensed under the ISC license.
3776
3753
  * See the LICENSE file in the root directory of this source tree.
3777
3754
  */
3778
- var wi = {
3755
+ var gi = {
3779
3756
  xmlns: "http://www.w3.org/2000/svg",
3780
3757
  width: 24,
3781
3758
  height: 24,
@@ -3792,7 +3769,7 @@ var wi = {
3792
3769
  * This source code is licensed under the ISC license.
3793
3770
  * See the LICENSE file in the root directory of this source tree.
3794
3771
  */
3795
- const xi = It(
3772
+ const wi = kt(
3796
3773
  ({
3797
3774
  color: e = "currentColor",
3798
3775
  size: t = 24,
@@ -3802,17 +3779,17 @@ const xi = It(
3802
3779
  children: i,
3803
3780
  iconNode: s,
3804
3781
  ...a
3805
- }, l) => Tt(
3782
+ }, u) => Tt(
3806
3783
  "svg",
3807
3784
  {
3808
- ref: l,
3809
- ...wi,
3785
+ ref: u,
3786
+ ...gi,
3810
3787
  width: t,
3811
3788
  height: t,
3812
3789
  stroke: e,
3813
3790
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
3814
- className: rr("lucide", o),
3815
- ...!i && !gi(a) && { "aria-hidden": "true" },
3791
+ className: er("lucide", o),
3792
+ ...!i && !yi(a) && { "aria-hidden": "true" },
3816
3793
  ...a
3817
3794
  },
3818
3795
  [
@@ -3828,19 +3805,19 @@ const xi = It(
3828
3805
  * See the LICENSE file in the root directory of this source tree.
3829
3806
  */
3830
3807
  const Bt = (e, t) => {
3831
- const r = It(
3832
- ({ className: n, ...o }, i) => Tt(xi, {
3808
+ const r = kt(
3809
+ ({ className: n, ...o }, i) => Tt(wi, {
3833
3810
  ref: i,
3834
3811
  iconNode: t,
3835
- className: rr(
3836
- `lucide-${bi(_n(e))}`,
3812
+ className: er(
3813
+ `lucide-${vi(Cn(e))}`,
3837
3814
  `lucide-${e}`,
3838
3815
  n
3839
3816
  ),
3840
3817
  ...o
3841
3818
  })
3842
3819
  );
3843
- return r.displayName = _n(e), r;
3820
+ return r.displayName = Cn(e), r;
3844
3821
  };
3845
3822
  /**
3846
3823
  * @license lucide-react v0.553.0 - ISC
@@ -3848,25 +3825,25 @@ const Bt = (e, t) => {
3848
3825
  * This source code is licensed under the ISC license.
3849
3826
  * See the LICENSE file in the root directory of this source tree.
3850
3827
  */
3851
- const Ei = [
3828
+ const xi = [
3852
3829
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
3853
3830
  ["path", { d: "M7 20V4", key: "1yoxec" }],
3854
3831
  ["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
3855
3832
  ["path", { d: "M17 4v16", key: "7dpous" }]
3856
- ], Ri = Bt("arrow-down-up", Ei);
3833
+ ], Ei = Bt("arrow-down-up", xi);
3857
3834
  /**
3858
3835
  * @license lucide-react v0.553.0 - ISC
3859
3836
  *
3860
3837
  * This source code is licensed under the ISC license.
3861
3838
  * See the LICENSE file in the root directory of this source tree.
3862
3839
  */
3863
- const Ti = [
3840
+ const Ri = [
3864
3841
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
3865
3842
  ["path", { d: "M7 20V4", key: "1yoxec" }],
3866
3843
  ["path", { d: "M11 4h10", key: "1w87gc" }],
3867
3844
  ["path", { d: "M11 8h7", key: "djye34" }],
3868
3845
  ["path", { d: "M11 12h4", key: "q8tih4" }]
3869
- ], Si = Bt("arrow-down-wide-narrow", Ti);
3846
+ ], Ti = Bt("arrow-down-wide-narrow", Ri);
3870
3847
  /**
3871
3848
  * @license lucide-react v0.553.0 - ISC
3872
3849
  *
@@ -3879,51 +3856,51 @@ const Ci = [
3879
3856
  ["path", { d: "M11 12h4", key: "q8tih4" }],
3880
3857
  ["path", { d: "M11 16h7", key: "uosisv" }],
3881
3858
  ["path", { d: "M11 20h10", key: "jvxblo" }]
3882
- ], _i = Bt("arrow-up-narrow-wide", Ci), Oi = (e, t) => {
3859
+ ], Si = Bt("arrow-up-narrow-wide", Ci), _i = (e, t) => {
3883
3860
  if (e)
3884
3861
  return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
3885
- }, Ki = ({
3862
+ }, Hi = ({
3886
3863
  sortDirection: e,
3887
3864
  children: t,
3888
3865
  onClick: r
3889
3866
  }) => {
3890
- const n = !!r, o = e === "up" ? _i : e === "down" ? Si : Ri, i = Oi(n, e);
3891
- return /* @__PURE__ */ w("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ w("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ B("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
3867
+ const n = !!r, o = e === "up" ? Si : e === "down" ? Ti : Ei, i = _i(n, e);
3868
+ return /* @__PURE__ */ g("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ g("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ B("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
3892
3869
  t,
3893
- /* @__PURE__ */ w(o, { size: 20 })
3894
- ] }) : /* @__PURE__ */ w(ke, { children: t }) }) });
3895
- }, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ w(
3870
+ /* @__PURE__ */ g(o, { size: 20 })
3871
+ ] }) : /* @__PURE__ */ g(Ie, { children: t }) }) });
3872
+ }, Ki = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ g(
3896
3873
  "div",
3897
3874
  {
3898
3875
  "data-testid": "table-container",
3899
- className: K("rpf-table", { "rpf-table--full-width": r }),
3876
+ className: X("rpf-table", { "rpf-table--full-width": r }),
3900
3877
  children: /* @__PURE__ */ B(
3901
3878
  "table",
3902
3879
  {
3903
- className: K("rpf-table__table", {
3880
+ className: X("rpf-table__table", {
3904
3881
  "rpf-table__table--full-width": r
3905
3882
  }),
3906
3883
  children: [
3907
- /* @__PURE__ */ w("thead", { children: /* @__PURE__ */ w("tr", { className: "rpf-table-row", children: e }) }),
3908
- /* @__PURE__ */ w("tbody", { children: t.map((n, o) => /* @__PURE__ */ w("tr", { className: "rpf-table-row", children: n }, o)) })
3884
+ /* @__PURE__ */ g("thead", { children: /* @__PURE__ */ g("tr", { className: "rpf-table-row", children: e }) }),
3885
+ /* @__PURE__ */ g("tbody", { children: t.map((n, o) => /* @__PURE__ */ g("tr", { className: "rpf-table-row", children: n }, o)) })
3909
3886
  ]
3910
3887
  }
3911
3888
  )
3912
3889
  }
3913
- ), Xi = ({
3890
+ ), zi = ({
3914
3891
  text: e,
3915
3892
  variant: t,
3916
3893
  secondary: r,
3917
3894
  icon: n,
3918
3895
  iconPosition: o
3919
3896
  }) => {
3920
- const i = n ? /* @__PURE__ */ w("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3897
+ const i = n ? /* @__PURE__ */ g("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3921
3898
  n && !o && (o = "left");
3922
3899
  const s = t && t !== "default" ? `rpf-tag--${t}` : null;
3923
3900
  return /* @__PURE__ */ B(
3924
3901
  "span",
3925
3902
  {
3926
- className: K("rpf-tag", s, {
3903
+ className: X("rpf-tag", s, {
3927
3904
  "rpf-tag--secondary": r
3928
3905
  }),
3929
3906
  children: [
@@ -3935,28 +3912,28 @@ const Ci = [
3935
3912
  );
3936
3913
  };
3937
3914
  export {
3938
- vr as Accordion,
3939
- Ni as Alert,
3940
- Re as Button,
3941
- ki as CheckboxInput,
3915
+ pr as Accordion,
3916
+ Pi as Alert,
3917
+ Ee as Button,
3918
+ Ni as CheckboxInput,
3942
3919
  Ii as Fieldset,
3943
3920
  Dt as InputField,
3944
- Mi as InputLabel,
3945
- gr as Menu,
3946
- qi as MenuButton,
3921
+ ki as InputLabel,
3922
+ vr as Menu,
3923
+ Bi as MenuButton,
3947
3924
  Vi as MenuItem,
3948
- Yi as MenuTitle,
3949
- Bi as Modal,
3950
- Di as PasswordInput,
3951
- Ui as ProgressBar,
3952
- Li as RadioInput,
3953
- Fi as SearchInput,
3954
- $i as SelectInput,
3955
- br as Switch,
3956
- zi as Table,
3957
- Hi as TableBodyCell,
3958
- Ki as TableHeaderCell,
3959
- Xi as Tag,
3960
- Wi as TextInput,
3961
- ji as TextareaInput
3925
+ qi as MenuTitle,
3926
+ Wi as Modal,
3927
+ Mi as PasswordInput,
3928
+ Yi as ProgressBar,
3929
+ Di as RadioInput,
3930
+ Li as SearchInput,
3931
+ Fi as SelectInput,
3932
+ mr as Switch,
3933
+ Ki as Table,
3934
+ Ui as TableBodyCell,
3935
+ Hi as TableHeaderCell,
3936
+ zi as Tag,
3937
+ ji as TextInput,
3938
+ $i as TextareaInput
3962
3939
  };