@cfx-dev/ui-components 0.0.5

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 (188) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/dist/Button.module-Z6njvP9Z.js +17 -0
  4. package/dist/Combination-AG9vHdSx.js +1478 -0
  5. package/dist/Icons-B26SczGZ.js +162 -0
  6. package/dist/Rail-DoYzqKk4.js +89 -0
  7. package/dist/assets/Avatar.css +1 -0
  8. package/dist/assets/Badge.css +1 -0
  9. package/dist/assets/Box.css +1 -0
  10. package/dist/assets/Button.css +1 -0
  11. package/dist/assets/Center.css +1 -0
  12. package/dist/assets/Checkbox.css +1 -0
  13. package/dist/assets/ControlBox.css +1 -0
  14. package/dist/assets/CountryFlag.css +1 -0
  15. package/dist/assets/Decorate.css +1 -0
  16. package/dist/assets/Dot.css +1 -0
  17. package/dist/assets/Flex.css +1 -0
  18. package/dist/assets/FlexRestricter.css +1 -0
  19. package/dist/assets/Flyout.css +1 -0
  20. package/dist/assets/Icon.css +1 -0
  21. package/dist/assets/Indicator.css +1 -0
  22. package/dist/assets/InfoPanel.css +1 -0
  23. package/dist/assets/Input.css +1 -0
  24. package/dist/assets/Interactive.css +1 -0
  25. package/dist/assets/Island.css +1 -0
  26. package/dist/assets/Loaf.css +1 -0
  27. package/dist/assets/Modal.css +1 -0
  28. package/dist/assets/NavList.css +1 -0
  29. package/dist/assets/Overlay.css +1 -0
  30. package/dist/assets/Pad.css +1 -0
  31. package/dist/assets/Page.css +1 -0
  32. package/dist/assets/Popover.css +1 -0
  33. package/dist/assets/PremiumBadge.css +1 -0
  34. package/dist/assets/Prose.css +1 -0
  35. package/dist/assets/Radio.css +1 -0
  36. package/dist/assets/Rail.css +1 -0
  37. package/dist/assets/RichInput.css +1 -0
  38. package/dist/assets/Select.css +1 -0
  39. package/dist/assets/Separator.css +1 -0
  40. package/dist/assets/Shroud.css +1 -0
  41. package/dist/assets/Spacer.css +1 -0
  42. package/dist/assets/Switch.css +1 -0
  43. package/dist/assets/Tabular.css +1 -0
  44. package/dist/assets/Text.css +1 -0
  45. package/dist/assets/Textarea.css +1 -0
  46. package/dist/assets/Title.css +1 -0
  47. package/dist/assets/global.css +1 -0
  48. package/dist/assets/themes.css +1 -0
  49. package/dist/components/Avatar/Avatar.d.ts +8 -0
  50. package/dist/components/Avatar/Avatar.js +22 -0
  51. package/dist/components/BackdropPortal/BackdropPortal.d.ts +6 -0
  52. package/dist/components/BackdropPortal/BackdropPortal.js +11 -0
  53. package/dist/components/Badge/Badge.d.ts +9 -0
  54. package/dist/components/Badge/Badge.js +18 -0
  55. package/dist/components/Button/Button.d.ts +22 -0
  56. package/dist/components/Button/Button.js +56 -0
  57. package/dist/components/Button/ButtonBar.d.ts +6 -0
  58. package/dist/components/Button/ButtonBar.js +13 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  60. package/dist/components/Checkbox/Checkbox.js +42 -0
  61. package/dist/components/ControlBox/ControlBox.d.ts +9 -0
  62. package/dist/components/ControlBox/ControlBox.js +19 -0
  63. package/dist/components/CountryFlag/CountryFlag.d.ts +9 -0
  64. package/dist/components/CountryFlag/CountryFlag.js +21 -0
  65. package/dist/components/Decorate/Decorate.d.ts +9 -0
  66. package/dist/components/Decorate/Decorate.js +20 -0
  67. package/dist/components/Dot/Dot.d.ts +6 -0
  68. package/dist/components/Dot/Dot.js +14 -0
  69. package/dist/components/Flyout/Flyout.d.ts +17 -0
  70. package/dist/components/Flyout/Flyout.js +60 -0
  71. package/dist/components/Icon/Icon.d.ts +11 -0
  72. package/dist/components/Icon/Icon.js +24 -0
  73. package/dist/components/Icons.d.ts +38 -0
  74. package/dist/components/Icons.js +6 -0
  75. package/dist/components/Indicator/Indicator.d.ts +6 -0
  76. package/dist/components/Indicator/Indicator.js +19 -0
  77. package/dist/components/InfoPanel/InfoPanel.d.ts +13 -0
  78. package/dist/components/InfoPanel/InfoPanel.js +34 -0
  79. package/dist/components/Input/Input.d.ts +37 -0
  80. package/dist/components/Input/Input.js +96 -0
  81. package/dist/components/Input/RichInput.d.ts +18 -0
  82. package/dist/components/Input/RichInput.js +63 -0
  83. package/dist/components/Interactive/Interactive.d.ts +6 -0
  84. package/dist/components/Interactive/Interactive.js +18 -0
  85. package/dist/components/Island/Island.d.ts +26 -0
  86. package/dist/components/Island/Island.js +34 -0
  87. package/dist/components/Layout/Box/Box.d.ts +21 -0
  88. package/dist/components/Layout/Box/Box.js +38 -0
  89. package/dist/components/Layout/Center/Center.d.ts +9 -0
  90. package/dist/components/Layout/Center/Center.js +22 -0
  91. package/dist/components/Layout/Flex/Flex.d.ts +26 -0
  92. package/dist/components/Layout/Flex/Flex.js +75 -0
  93. package/dist/components/Layout/Flex/FlexRestricter.d.ts +12 -0
  94. package/dist/components/Layout/Flex/FlexRestricter.js +20 -0
  95. package/dist/components/Layout/Pad/Pad.d.ts +15 -0
  96. package/dist/components/Layout/Pad/Pad.js +36 -0
  97. package/dist/components/Layout/Page/Page.d.ts +8 -0
  98. package/dist/components/Layout/Page/Page.js +21 -0
  99. package/dist/components/Layout/Scrollable/Rail.d.ts +13 -0
  100. package/dist/components/Layout/Scrollable/Rail.js +10 -0
  101. package/dist/components/Layout/Scrollable/Scrollable.d.ts +14 -0
  102. package/dist/components/Layout/Scrollable/Scrollable.js +89 -0
  103. package/dist/components/Layout/Scrollable/VirtualScrollable.d.ts +11 -0
  104. package/dist/components/Layout/Scrollable/VirtualScrollable.js +426 -0
  105. package/dist/components/Loaf/Loaf.d.ts +12 -0
  106. package/dist/components/Loaf/Loaf.js +27 -0
  107. package/dist/components/Modal/Modal.d.ts +18 -0
  108. package/dist/components/Modal/Modal.js +42 -0
  109. package/dist/components/NavList/NavList.d.ts +14 -0
  110. package/dist/components/NavList/NavList.js +33 -0
  111. package/dist/components/OnScreenSensor.d.ts +5 -0
  112. package/dist/components/OnScreenSensor.js +26 -0
  113. package/dist/components/Overlay/Overlay.d.ts +20 -0
  114. package/dist/components/Overlay/Overlay.js +28 -0
  115. package/dist/components/Popover/Popover.d.ts +12 -0
  116. package/dist/components/Popover/Popover.js +40 -0
  117. package/dist/components/PremiumBadge/PremiumBadge.d.ts +15 -0
  118. package/dist/components/PremiumBadge/PremiumBadge.js +38 -0
  119. package/dist/components/Prose/Prose.d.ts +6 -0
  120. package/dist/components/Prose/Prose.js +12 -0
  121. package/dist/components/Radio/Radio.d.ts +12 -0
  122. package/dist/components/Radio/Radio.js +45 -0
  123. package/dist/components/Select/Select.d.ts +16 -0
  124. package/dist/components/Select/Select.js +3293 -0
  125. package/dist/components/Separator/Separator.d.ts +8 -0
  126. package/dist/components/Separator/Separator.js +29 -0
  127. package/dist/components/Shroud/Shroud.d.ts +6 -0
  128. package/dist/components/Shroud/Shroud.js +41 -0
  129. package/dist/components/Spacer/Spacer.d.ts +5 -0
  130. package/dist/components/Spacer/Spacer.js +26 -0
  131. package/dist/components/Style/Style.d.ts +12 -0
  132. package/dist/components/Style/Style.js +23 -0
  133. package/dist/components/Switch/Switch.d.ts +17 -0
  134. package/dist/components/Switch/Switch.js +65 -0
  135. package/dist/components/Symbols.d.ts +5 -0
  136. package/dist/components/Symbols.js +7 -0
  137. package/dist/components/Tabular/Tabular.d.ts +30 -0
  138. package/dist/components/Tabular/Tabular.js +64 -0
  139. package/dist/components/Text/Text.d.ts +8 -0
  140. package/dist/components/Text/Text.js +61 -0
  141. package/dist/components/Text/Text.types.d.ts +33 -0
  142. package/dist/components/Text/Text.types.js +1 -0
  143. package/dist/components/Textarea/Textarea.d.ts +15 -0
  144. package/dist/components/Textarea/Textarea.js +57 -0
  145. package/dist/components/Title/Title.d.ts +13 -0
  146. package/dist/components/Title/Title.js +113 -0
  147. package/dist/components/outlets.d.ts +10 -0
  148. package/dist/components/outlets.js +7 -0
  149. package/dist/components/ui.d.ts +28 -0
  150. package/dist/components/ui.js +29 -0
  151. package/dist/functional-C0pE183N.js +30 -0
  152. package/dist/hooks-Bv1kQUpO.js +65 -0
  153. package/dist/index-C75OpfGQ.js +19577 -0
  154. package/dist/links-CgOD-Vfj.js +1142 -0
  155. package/dist/main.d.ts +68 -0
  156. package/dist/main.js +118 -0
  157. package/dist/math-i2ceybzU.js +16 -0
  158. package/dist/medium-Dc7QRuE0.js +118 -0
  159. package/dist/outlet-C4wpavcH.js +25 -0
  160. package/dist/outlets-BsMV5obW.js +13 -0
  161. package/dist/string-NVxCUbqk.js +54 -0
  162. package/dist/styles-scss/_colors.scss +211 -0
  163. package/dist/styles-scss/_ui.scss +195 -0
  164. package/dist/styles-scss/global.scss +71 -0
  165. package/dist/styles-scss/themes/dark.scss +24 -0
  166. package/dist/styles-scss/themes/light.scss +54 -0
  167. package/dist/styles-scss/themes.scss +2 -0
  168. package/dist/styles-scss/tokens.scss +274 -0
  169. package/dist/tslib.es6-Dd_EkEfR.js +48 -0
  170. package/dist/utils/clsx.d.ts +7 -0
  171. package/dist/utils/clsx.js +14 -0
  172. package/dist/utils/functional.d.ts +5 -0
  173. package/dist/utils/functional.js +8 -0
  174. package/dist/utils/getValue.d.ts +2 -0
  175. package/dist/utils/getValue.js +6 -0
  176. package/dist/utils/hooks.d.ts +13 -0
  177. package/dist/utils/hooks.js +9 -0
  178. package/dist/utils/links.d.ts +27 -0
  179. package/dist/utils/links.js +14 -0
  180. package/dist/utils/math.d.ts +2 -0
  181. package/dist/utils/math.js +5 -0
  182. package/dist/utils/mergeRefs.d.ts +3 -0
  183. package/dist/utils/mergeRefs.js +10 -0
  184. package/dist/utils/outlet.d.ts +4 -0
  185. package/dist/utils/outlet.js +6 -0
  186. package/dist/utils/string.d.ts +6 -0
  187. package/dist/utils/string.js +9 -0
  188. package/package.json +82 -0
@@ -0,0 +1,1478 @@
1
+ import * as D from "react";
2
+ import $r, { createContext as Lr, PureComponent as Wr } from "react";
3
+ import { g as Ur } from "./index-C75OpfGQ.js";
4
+ import { a as Ne, c as qr, u as Br } from "./medium-Dc7QRuE0.js";
5
+ function Yr(e, r) {
6
+ if (e == null)
7
+ return {};
8
+ var t = {};
9
+ for (var n in e)
10
+ if ({}.hasOwnProperty.call(e, n)) {
11
+ if (r.indexOf(n) >= 0)
12
+ continue;
13
+ t[n] = e[n];
14
+ }
15
+ return t;
16
+ }
17
+ function ve() {
18
+ return ve = Object.assign ? Object.assign.bind() : function(e) {
19
+ for (var r = 1; r < arguments.length; r++) {
20
+ var t = arguments[r];
21
+ for (var n in t)
22
+ ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
23
+ }
24
+ return e;
25
+ }, ve.apply(null, arguments);
26
+ }
27
+ var Ae = { exports: {} }, he = { exports: {} }, C = {};
28
+ /** @license React v16.13.1
29
+ * react-is.production.min.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var Xe;
37
+ function Gr() {
38
+ if (Xe)
39
+ return C;
40
+ Xe = 1;
41
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
42
+ function I(u) {
43
+ if (typeof u == "object" && u !== null) {
44
+ var q = u.$$typeof;
45
+ switch (q) {
46
+ case r:
47
+ switch (u = u.type, u) {
48
+ case b:
49
+ case l:
50
+ case n:
51
+ case a:
52
+ case o:
53
+ case v:
54
+ return u;
55
+ default:
56
+ switch (u = u && u.$$typeof, u) {
57
+ case s:
58
+ case p:
59
+ case h:
60
+ case E:
61
+ case f:
62
+ return u;
63
+ default:
64
+ return q;
65
+ }
66
+ }
67
+ case t:
68
+ return q;
69
+ }
70
+ }
71
+ }
72
+ function k(u) {
73
+ return I(u) === l;
74
+ }
75
+ return C.AsyncMode = b, C.ConcurrentMode = l, C.ContextConsumer = s, C.ContextProvider = f, C.Element = r, C.ForwardRef = p, C.Fragment = n, C.Lazy = h, C.Memo = E, C.Portal = t, C.Profiler = a, C.StrictMode = o, C.Suspense = v, C.isAsyncMode = function(u) {
76
+ return k(u) || I(u) === b;
77
+ }, C.isConcurrentMode = k, C.isContextConsumer = function(u) {
78
+ return I(u) === s;
79
+ }, C.isContextProvider = function(u) {
80
+ return I(u) === f;
81
+ }, C.isElement = function(u) {
82
+ return typeof u == "object" && u !== null && u.$$typeof === r;
83
+ }, C.isForwardRef = function(u) {
84
+ return I(u) === p;
85
+ }, C.isFragment = function(u) {
86
+ return I(u) === n;
87
+ }, C.isLazy = function(u) {
88
+ return I(u) === h;
89
+ }, C.isMemo = function(u) {
90
+ return I(u) === E;
91
+ }, C.isPortal = function(u) {
92
+ return I(u) === t;
93
+ }, C.isProfiler = function(u) {
94
+ return I(u) === a;
95
+ }, C.isStrictMode = function(u) {
96
+ return I(u) === o;
97
+ }, C.isSuspense = function(u) {
98
+ return I(u) === v;
99
+ }, C.isValidElementType = function(u) {
100
+ return typeof u == "string" || typeof u == "function" || u === n || u === l || u === a || u === o || u === v || u === m || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === E || u.$$typeof === f || u.$$typeof === s || u.$$typeof === p || u.$$typeof === A || u.$$typeof === j || u.$$typeof === N || u.$$typeof === y);
101
+ }, C.typeOf = I, C;
102
+ }
103
+ var F = {};
104
+ /** @license React v16.13.1
105
+ * react-is.development.js
106
+ *
107
+ * Copyright (c) Facebook, Inc. and its affiliates.
108
+ *
109
+ * This source code is licensed under the MIT license found in the
110
+ * LICENSE file in the root directory of this source tree.
111
+ */
112
+ var Ze;
113
+ function Hr() {
114
+ return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
115
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
116
+ function I(c) {
117
+ return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
118
+ c === n || c === l || c === a || c === o || c === v || c === m || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === E || c.$$typeof === f || c.$$typeof === s || c.$$typeof === p || c.$$typeof === A || c.$$typeof === j || c.$$typeof === N || c.$$typeof === y);
119
+ }
120
+ function k(c) {
121
+ if (typeof c == "object" && c !== null) {
122
+ var W = c.$$typeof;
123
+ switch (W) {
124
+ case r:
125
+ var re = c.type;
126
+ switch (re) {
127
+ case b:
128
+ case l:
129
+ case n:
130
+ case a:
131
+ case o:
132
+ case v:
133
+ return re;
134
+ default:
135
+ var be = re && re.$$typeof;
136
+ switch (be) {
137
+ case s:
138
+ case p:
139
+ case h:
140
+ case E:
141
+ case f:
142
+ return be;
143
+ default:
144
+ return W;
145
+ }
146
+ }
147
+ case t:
148
+ return W;
149
+ }
150
+ }
151
+ }
152
+ var u = b, q = l, ce = s, fe = f, se = r, de = p, K = n, X = h, H = E, B = t, Z = a, L = o, Y = v, Q = !1;
153
+ function ee(c) {
154
+ return Q || (Q = !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.")), i(c) || k(c) === b;
155
+ }
156
+ function i(c) {
157
+ return k(c) === l;
158
+ }
159
+ function d(c) {
160
+ return k(c) === s;
161
+ }
162
+ function O(c) {
163
+ return k(c) === f;
164
+ }
165
+ function T(c) {
166
+ return typeof c == "object" && c !== null && c.$$typeof === r;
167
+ }
168
+ function g(c) {
169
+ return k(c) === p;
170
+ }
171
+ function P(c) {
172
+ return k(c) === n;
173
+ }
174
+ function S(c) {
175
+ return k(c) === h;
176
+ }
177
+ function x(c) {
178
+ return k(c) === E;
179
+ }
180
+ function w(c) {
181
+ return k(c) === t;
182
+ }
183
+ function R(c) {
184
+ return k(c) === a;
185
+ }
186
+ function _(c) {
187
+ return k(c) === o;
188
+ }
189
+ function $(c) {
190
+ return k(c) === v;
191
+ }
192
+ F.AsyncMode = u, F.ConcurrentMode = q, F.ContextConsumer = ce, F.ContextProvider = fe, F.Element = se, F.ForwardRef = de, F.Fragment = K, F.Lazy = X, F.Memo = H, F.Portal = B, F.Profiler = Z, F.StrictMode = L, F.Suspense = Y, F.isAsyncMode = ee, F.isConcurrentMode = i, F.isContextConsumer = d, F.isContextProvider = O, F.isElement = T, F.isForwardRef = g, F.isFragment = P, F.isLazy = S, F.isMemo = x, F.isPortal = w, F.isProfiler = R, F.isStrictMode = _, F.isSuspense = $, F.isValidElementType = I, F.typeOf = k;
193
+ }()), F;
194
+ }
195
+ var Qe;
196
+ function lr() {
197
+ return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? he.exports = Gr() : he.exports = Hr()), he.exports;
198
+ }
199
+ /*
200
+ object-assign
201
+ (c) Sindre Sorhus
202
+ @license MIT
203
+ */
204
+ var Te, er;
205
+ function Vr() {
206
+ if (er)
207
+ return Te;
208
+ er = 1;
209
+ var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
210
+ function n(a) {
211
+ if (a == null)
212
+ throw new TypeError("Object.assign cannot be called with null or undefined");
213
+ return Object(a);
214
+ }
215
+ function o() {
216
+ try {
217
+ if (!Object.assign)
218
+ return !1;
219
+ var a = new String("abc");
220
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
221
+ return !1;
222
+ for (var f = {}, s = 0; s < 10; s++)
223
+ f["_" + String.fromCharCode(s)] = s;
224
+ var b = Object.getOwnPropertyNames(f).map(function(p) {
225
+ return f[p];
226
+ });
227
+ if (b.join("") !== "0123456789")
228
+ return !1;
229
+ var l = {};
230
+ return "abcdefghijklmnopqrst".split("").forEach(function(p) {
231
+ l[p] = p;
232
+ }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
233
+ } catch {
234
+ return !1;
235
+ }
236
+ }
237
+ return Te = o() ? Object.assign : function(a, f) {
238
+ for (var s, b = n(a), l, p = 1; p < arguments.length; p++) {
239
+ s = Object(arguments[p]);
240
+ for (var v in s)
241
+ r.call(s, v) && (b[v] = s[v]);
242
+ if (e) {
243
+ l = e(s);
244
+ for (var m = 0; m < l.length; m++)
245
+ t.call(s, l[m]) && (b[l[m]] = s[l[m]]);
246
+ }
247
+ }
248
+ return b;
249
+ }, Te;
250
+ }
251
+ var Oe, rr;
252
+ function $e() {
253
+ if (rr)
254
+ return Oe;
255
+ rr = 1;
256
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
257
+ return Oe = e, Oe;
258
+ }
259
+ var Se, tr;
260
+ function vr() {
261
+ return tr || (tr = 1, Se = Function.call.bind(Object.prototype.hasOwnProperty)), Se;
262
+ }
263
+ var xe, nr;
264
+ function zr() {
265
+ if (nr)
266
+ return xe;
267
+ nr = 1;
268
+ var e = function() {
269
+ };
270
+ if (process.env.NODE_ENV !== "production") {
271
+ var r = $e(), t = {}, n = vr();
272
+ e = function(a) {
273
+ var f = "Warning: " + a;
274
+ typeof console < "u" && console.error(f);
275
+ try {
276
+ throw new Error(f);
277
+ } catch {
278
+ }
279
+ };
280
+ }
281
+ function o(a, f, s, b, l) {
282
+ if (process.env.NODE_ENV !== "production") {
283
+ for (var p in a)
284
+ if (n(a, p)) {
285
+ var v;
286
+ try {
287
+ if (typeof a[p] != "function") {
288
+ var m = Error(
289
+ (b || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
290
+ );
291
+ throw m.name = "Invariant Violation", m;
292
+ }
293
+ v = a[p](f, p, b, s, null, r);
294
+ } catch (h) {
295
+ v = h;
296
+ }
297
+ if (v && !(v instanceof Error) && e(
298
+ (b || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
299
+ ), v instanceof Error && !(v.message in t)) {
300
+ t[v.message] = !0;
301
+ var E = l ? l() : "";
302
+ e(
303
+ "Failed " + s + " type: " + v.message + (E ?? "")
304
+ );
305
+ }
306
+ }
307
+ }
308
+ }
309
+ return o.resetWarningCache = function() {
310
+ process.env.NODE_ENV !== "production" && (t = {});
311
+ }, xe = o, xe;
312
+ }
313
+ var Pe, or;
314
+ function Jr() {
315
+ if (or)
316
+ return Pe;
317
+ or = 1;
318
+ var e = lr(), r = Vr(), t = $e(), n = vr(), o = zr(), a = function() {
319
+ };
320
+ process.env.NODE_ENV !== "production" && (a = function(s) {
321
+ var b = "Warning: " + s;
322
+ typeof console < "u" && console.error(b);
323
+ try {
324
+ throw new Error(b);
325
+ } catch {
326
+ }
327
+ });
328
+ function f() {
329
+ return null;
330
+ }
331
+ return Pe = function(s, b) {
332
+ var l = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
333
+ function v(i) {
334
+ var d = i && (l && i[l] || i[p]);
335
+ if (typeof d == "function")
336
+ return d;
337
+ }
338
+ var m = "<<anonymous>>", E = {
339
+ array: j("array"),
340
+ bigint: j("bigint"),
341
+ bool: j("boolean"),
342
+ func: j("function"),
343
+ number: j("number"),
344
+ object: j("object"),
345
+ string: j("string"),
346
+ symbol: j("symbol"),
347
+ any: N(),
348
+ arrayOf: I,
349
+ element: k(),
350
+ elementType: u(),
351
+ instanceOf: q,
352
+ node: de(),
353
+ objectOf: fe,
354
+ oneOf: ce,
355
+ oneOfType: se,
356
+ shape: X,
357
+ exact: H
358
+ };
359
+ function h(i, d) {
360
+ return i === d ? i !== 0 || 1 / i === 1 / d : i !== i && d !== d;
361
+ }
362
+ function y(i, d) {
363
+ this.message = i, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
364
+ }
365
+ y.prototype = Error.prototype;
366
+ function A(i) {
367
+ if (process.env.NODE_ENV !== "production")
368
+ var d = {}, O = 0;
369
+ function T(P, S, x, w, R, _, $) {
370
+ if (w = w || m, _ = _ || x, $ !== t) {
371
+ if (b) {
372
+ var c = new Error(
373
+ "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"
374
+ );
375
+ throw c.name = "Invariant Violation", c;
376
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
377
+ var W = w + ":" + x;
378
+ !d[W] && // Avoid spamming the console because they are often not actionable except for lib authors
379
+ O < 3 && (a(
380
+ "You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + w + "`. 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."
381
+ ), d[W] = !0, O++);
382
+ }
383
+ }
384
+ return S[x] == null ? P ? S[x] === null ? new y("The " + R + " `" + _ + "` is marked as required " + ("in `" + w + "`, but its value is `null`.")) : new y("The " + R + " `" + _ + "` is marked as required in " + ("`" + w + "`, but its value is `undefined`.")) : null : i(S, x, w, R, _);
385
+ }
386
+ var g = T.bind(null, !1);
387
+ return g.isRequired = T.bind(null, !0), g;
388
+ }
389
+ function j(i) {
390
+ function d(O, T, g, P, S, x) {
391
+ var w = O[T], R = L(w);
392
+ if (R !== i) {
393
+ var _ = Y(w);
394
+ return new y(
395
+ "Invalid " + P + " `" + S + "` of type " + ("`" + _ + "` supplied to `" + g + "`, expected ") + ("`" + i + "`."),
396
+ { expectedType: i }
397
+ );
398
+ }
399
+ return null;
400
+ }
401
+ return A(d);
402
+ }
403
+ function N() {
404
+ return A(f);
405
+ }
406
+ function I(i) {
407
+ function d(O, T, g, P, S) {
408
+ if (typeof i != "function")
409
+ return new y("Property `" + S + "` of component `" + g + "` has invalid PropType notation inside arrayOf.");
410
+ var x = O[T];
411
+ if (!Array.isArray(x)) {
412
+ var w = L(x);
413
+ return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + g + "`, expected an array."));
414
+ }
415
+ for (var R = 0; R < x.length; R++) {
416
+ var _ = i(x, R, g, P, S + "[" + R + "]", t);
417
+ if (_ instanceof Error)
418
+ return _;
419
+ }
420
+ return null;
421
+ }
422
+ return A(d);
423
+ }
424
+ function k() {
425
+ function i(d, O, T, g, P) {
426
+ var S = d[O];
427
+ if (!s(S)) {
428
+ var x = L(S);
429
+ return new y("Invalid " + g + " `" + P + "` of type " + ("`" + x + "` supplied to `" + T + "`, expected a single ReactElement."));
430
+ }
431
+ return null;
432
+ }
433
+ return A(i);
434
+ }
435
+ function u() {
436
+ function i(d, O, T, g, P) {
437
+ var S = d[O];
438
+ if (!e.isValidElementType(S)) {
439
+ var x = L(S);
440
+ return new y("Invalid " + g + " `" + P + "` of type " + ("`" + x + "` supplied to `" + T + "`, expected a single ReactElement type."));
441
+ }
442
+ return null;
443
+ }
444
+ return A(i);
445
+ }
446
+ function q(i) {
447
+ function d(O, T, g, P, S) {
448
+ if (!(O[T] instanceof i)) {
449
+ var x = i.name || m, w = ee(O[T]);
450
+ return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + g + "`, expected ") + ("instance of `" + x + "`."));
451
+ }
452
+ return null;
453
+ }
454
+ return A(d);
455
+ }
456
+ function ce(i) {
457
+ if (!Array.isArray(i))
458
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
459
+ "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])."
460
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), f;
461
+ function d(O, T, g, P, S) {
462
+ for (var x = O[T], w = 0; w < i.length; w++)
463
+ if (h(x, i[w]))
464
+ return null;
465
+ var R = JSON.stringify(i, function($, c) {
466
+ var W = Y(c);
467
+ return W === "symbol" ? String(c) : c;
468
+ });
469
+ return new y("Invalid " + P + " `" + S + "` of value `" + String(x) + "` " + ("supplied to `" + g + "`, expected one of " + R + "."));
470
+ }
471
+ return A(d);
472
+ }
473
+ function fe(i) {
474
+ function d(O, T, g, P, S) {
475
+ if (typeof i != "function")
476
+ return new y("Property `" + S + "` of component `" + g + "` has invalid PropType notation inside objectOf.");
477
+ var x = O[T], w = L(x);
478
+ if (w !== "object")
479
+ return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + g + "`, expected an object."));
480
+ for (var R in x)
481
+ if (n(x, R)) {
482
+ var _ = i(x, R, g, P, S + "." + R, t);
483
+ if (_ instanceof Error)
484
+ return _;
485
+ }
486
+ return null;
487
+ }
488
+ return A(d);
489
+ }
490
+ function se(i) {
491
+ if (!Array.isArray(i))
492
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), f;
493
+ for (var d = 0; d < i.length; d++) {
494
+ var O = i[d];
495
+ if (typeof O != "function")
496
+ return a(
497
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(O) + " at index " + d + "."
498
+ ), f;
499
+ }
500
+ function T(g, P, S, x, w) {
501
+ for (var R = [], _ = 0; _ < i.length; _++) {
502
+ var $ = i[_], c = $(g, P, S, x, w, t);
503
+ if (c == null)
504
+ return null;
505
+ c.data && n(c.data, "expectedType") && R.push(c.data.expectedType);
506
+ }
507
+ var W = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
508
+ return new y("Invalid " + x + " `" + w + "` supplied to " + ("`" + S + "`" + W + "."));
509
+ }
510
+ return A(T);
511
+ }
512
+ function de() {
513
+ function i(d, O, T, g, P) {
514
+ return B(d[O]) ? null : new y("Invalid " + g + " `" + P + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
515
+ }
516
+ return A(i);
517
+ }
518
+ function K(i, d, O, T, g) {
519
+ return new y(
520
+ (i || "React class") + ": " + d + " type `" + O + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + g + "`."
521
+ );
522
+ }
523
+ function X(i) {
524
+ function d(O, T, g, P, S) {
525
+ var x = O[T], w = L(x);
526
+ if (w !== "object")
527
+ return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" + g + "`, expected `object`."));
528
+ for (var R in i) {
529
+ var _ = i[R];
530
+ if (typeof _ != "function")
531
+ return K(g, P, S, R, Y(_));
532
+ var $ = _(x, R, g, P, S + "." + R, t);
533
+ if ($)
534
+ return $;
535
+ }
536
+ return null;
537
+ }
538
+ return A(d);
539
+ }
540
+ function H(i) {
541
+ function d(O, T, g, P, S) {
542
+ var x = O[T], w = L(x);
543
+ if (w !== "object")
544
+ return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" + g + "`, expected `object`."));
545
+ var R = r({}, O[T], i);
546
+ for (var _ in R) {
547
+ var $ = i[_];
548
+ if (n(i, _) && typeof $ != "function")
549
+ return K(g, P, S, _, Y($));
550
+ if (!$)
551
+ return new y(
552
+ "Invalid " + P + " `" + S + "` key `" + _ + "` supplied to `" + g + "`.\nBad object: " + JSON.stringify(O[T], null, " ") + `
553
+ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
554
+ );
555
+ var c = $(x, _, g, P, S + "." + _, t);
556
+ if (c)
557
+ return c;
558
+ }
559
+ return null;
560
+ }
561
+ return A(d);
562
+ }
563
+ function B(i) {
564
+ switch (typeof i) {
565
+ case "number":
566
+ case "string":
567
+ case "undefined":
568
+ return !0;
569
+ case "boolean":
570
+ return !i;
571
+ case "object":
572
+ if (Array.isArray(i))
573
+ return i.every(B);
574
+ if (i === null || s(i))
575
+ return !0;
576
+ var d = v(i);
577
+ if (d) {
578
+ var O = d.call(i), T;
579
+ if (d !== i.entries) {
580
+ for (; !(T = O.next()).done; )
581
+ if (!B(T.value))
582
+ return !1;
583
+ } else
584
+ for (; !(T = O.next()).done; ) {
585
+ var g = T.value;
586
+ if (g && !B(g[1]))
587
+ return !1;
588
+ }
589
+ } else
590
+ return !1;
591
+ return !0;
592
+ default:
593
+ return !1;
594
+ }
595
+ }
596
+ function Z(i, d) {
597
+ return i === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
598
+ }
599
+ function L(i) {
600
+ var d = typeof i;
601
+ return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : Z(d, i) ? "symbol" : d;
602
+ }
603
+ function Y(i) {
604
+ if (typeof i > "u" || i === null)
605
+ return "" + i;
606
+ var d = L(i);
607
+ if (d === "object") {
608
+ if (i instanceof Date)
609
+ return "date";
610
+ if (i instanceof RegExp)
611
+ return "regexp";
612
+ }
613
+ return d;
614
+ }
615
+ function Q(i) {
616
+ var d = Y(i);
617
+ switch (d) {
618
+ case "array":
619
+ case "object":
620
+ return "an " + d;
621
+ case "boolean":
622
+ case "date":
623
+ case "regexp":
624
+ return "a " + d;
625
+ default:
626
+ return d;
627
+ }
628
+ }
629
+ function ee(i) {
630
+ return !i.constructor || !i.constructor.name ? m : i.constructor.name;
631
+ }
632
+ return E.checkPropTypes = o, E.resetWarningCache = o.resetWarningCache, E.PropTypes = E, E;
633
+ }, Pe;
634
+ }
635
+ var we, ar;
636
+ function Kr() {
637
+ if (ar)
638
+ return we;
639
+ ar = 1;
640
+ var e = $e();
641
+ function r() {
642
+ }
643
+ function t() {
644
+ }
645
+ return t.resetWarningCache = r, we = function() {
646
+ function n(f, s, b, l, p, v) {
647
+ if (v !== e) {
648
+ var m = new Error(
649
+ "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"
650
+ );
651
+ throw m.name = "Invariant Violation", m;
652
+ }
653
+ }
654
+ n.isRequired = n;
655
+ function o() {
656
+ return n;
657
+ }
658
+ var a = {
659
+ array: n,
660
+ bigint: n,
661
+ bool: n,
662
+ func: n,
663
+ number: n,
664
+ object: n,
665
+ string: n,
666
+ symbol: n,
667
+ any: n,
668
+ arrayOf: o,
669
+ element: n,
670
+ elementType: n,
671
+ instanceOf: o,
672
+ node: n,
673
+ objectOf: o,
674
+ oneOf: o,
675
+ oneOfType: o,
676
+ shape: o,
677
+ exact: o,
678
+ checkPropTypes: t,
679
+ resetWarningCache: r
680
+ };
681
+ return a.PropTypes = a, a;
682
+ }, we;
683
+ }
684
+ if (process.env.NODE_ENV !== "production") {
685
+ var Xr = lr(), Zr = !0;
686
+ Ae.exports = Jr()(Xr.isElement, Zr);
687
+ } else
688
+ Ae.exports = Kr()();
689
+ var M = Ae.exports;
690
+ const pr = /* @__PURE__ */ Ur(M);
691
+ var Ie = "data-focus-lock", yr = "data-focus-lock-disabled", Qr = "data-no-focus-lock", et = "data-autofocus-inside", rt = "data-no-autofocus", _e = {
692
+ width: "1px",
693
+ height: "0px",
694
+ padding: 0,
695
+ overflow: "hidden",
696
+ position: "fixed",
697
+ top: "1px",
698
+ left: "1px"
699
+ };
700
+ process.env.NODE_ENV !== "production" && pr.node;
701
+ var mr = Ne({}, function(e) {
702
+ var r = e.target, t = e.currentTarget;
703
+ return {
704
+ target: r,
705
+ currentTarget: t
706
+ };
707
+ }), br = Ne(), tt = Ne(), nt = qr({
708
+ async: !0,
709
+ ssr: typeof document < "u"
710
+ }), ot = /* @__PURE__ */ Lr(void 0), at = [], Le = /* @__PURE__ */ D.forwardRef(function(r, t) {
711
+ var n, o = D.useState(), a = o[0], f = o[1], s = D.useRef(), b = D.useRef(!1), l = D.useRef(null), p = D.useState({}), v = p[1], m = r.children, E = r.disabled, h = E === void 0 ? !1 : E, y = r.noFocusGuards, A = y === void 0 ? !1 : y, j = r.persistentFocus, N = j === void 0 ? !1 : j, I = r.crossFrame, k = I === void 0 ? !0 : I, u = r.autoFocus, q = u === void 0 ? !0 : u, ce = r.allowTextSelection, fe = r.group, se = r.className, de = r.whiteList, K = r.hasPositiveIndices, X = r.shards, H = X === void 0 ? at : X, B = r.as, Z = B === void 0 ? "div" : B, L = r.lockProps, Y = L === void 0 ? {} : L, Q = r.sideCar, ee = r.returnFocus, i = ee === void 0 ? !1 : ee, d = r.focusOptions, O = r.onActivation, T = r.onDeactivation, g = D.useState({}), P = g[0], S = D.useCallback(function(G) {
712
+ var te = G.captureFocusRestore;
713
+ if (!l.current) {
714
+ var ne, V = (ne = document) == null ? void 0 : ne.activeElement;
715
+ l.current = V, V !== document.body && (l.current = te(V));
716
+ }
717
+ s.current && O && O(s.current), b.current = !0, v();
718
+ }, [O]), x = D.useCallback(function() {
719
+ b.current = !1, T && T(s.current), v();
720
+ }, [T]), w = D.useCallback(function(G) {
721
+ var te = l.current;
722
+ if (te) {
723
+ var ne = (typeof te == "function" ? te() : te) || document.body, V = typeof i == "function" ? i(ne) : i;
724
+ if (V) {
725
+ var Ke = typeof V == "object" ? V : void 0;
726
+ l.current = null, G ? Promise.resolve().then(function() {
727
+ return ne.focus(Ke);
728
+ }) : ne.focus(Ke);
729
+ }
730
+ }
731
+ }, [i]), R = D.useCallback(function(G) {
732
+ b.current && mr.useMedium(G);
733
+ }, []), _ = br.useMedium, $ = D.useCallback(function(G) {
734
+ s.current !== G && (s.current = G, f(G));
735
+ }, []);
736
+ process.env.NODE_ENV !== "production" && (typeof ce < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), D.useEffect(function() {
737
+ !s.current && typeof Z != "string" && console.error("FocusLock: could not obtain ref to internal node");
738
+ }, []));
739
+ var c = ve((n = {}, n[yr] = h && "disabled", n[Ie] = fe, n), Y), W = A !== !0, re = W && A !== "tail", be = Br([t, $]), Nr = D.useMemo(function() {
740
+ return {
741
+ observed: s,
742
+ shards: H,
743
+ enabled: !h,
744
+ active: b.current
745
+ };
746
+ }, [h, b.current, H, a]);
747
+ return /* @__PURE__ */ D.createElement(D.Fragment, null, W && [
748
+ /* @__PURE__ */ D.createElement("div", {
749
+ key: "guard-first",
750
+ "data-focus-guard": !0,
751
+ tabIndex: h ? -1 : 0,
752
+ style: _e
753
+ }),
754
+ K ? /* @__PURE__ */ D.createElement("div", {
755
+ key: "guard-nearest",
756
+ "data-focus-guard": !0,
757
+ tabIndex: h ? -1 : 1,
758
+ style: _e
759
+ }) : null
760
+ ], !h && /* @__PURE__ */ D.createElement(Q, {
761
+ id: P,
762
+ sideCar: nt,
763
+ observed: a,
764
+ disabled: h,
765
+ persistentFocus: N,
766
+ crossFrame: k,
767
+ autoFocus: q,
768
+ whiteList: de,
769
+ shards: H,
770
+ onActivation: S,
771
+ onDeactivation: x,
772
+ returnFocus: w,
773
+ focusOptions: d
774
+ }), /* @__PURE__ */ D.createElement(Z, ve({
775
+ ref: be
776
+ }, c, {
777
+ className: se,
778
+ onBlur: _,
779
+ onFocus: R
780
+ }), /* @__PURE__ */ D.createElement(ot.Provider, {
781
+ value: Nr
782
+ }, m)), re && /* @__PURE__ */ D.createElement("div", {
783
+ "data-focus-guard": !0,
784
+ tabIndex: h ? -1 : 0,
785
+ style: _e
786
+ }));
787
+ });
788
+ Le.propTypes = process.env.NODE_ENV !== "production" ? {
789
+ children: M.node,
790
+ disabled: M.bool,
791
+ returnFocus: M.oneOfType([M.bool, M.object, M.func]),
792
+ focusOptions: M.object,
793
+ noFocusGuards: M.bool,
794
+ hasPositiveIndices: M.bool,
795
+ allowTextSelection: M.bool,
796
+ autoFocus: M.bool,
797
+ persistentFocus: M.bool,
798
+ crossFrame: M.bool,
799
+ group: M.string,
800
+ className: M.string,
801
+ whiteList: M.func,
802
+ shards: M.arrayOf(M.any),
803
+ as: M.oneOfType([M.string, M.func, M.object]),
804
+ lockProps: M.object,
805
+ onActivation: M.func,
806
+ onDeactivation: M.func,
807
+ sideCar: M.any.isRequired
808
+ } : {};
809
+ function Me(e, r) {
810
+ return Me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
811
+ return t.__proto__ = n, t;
812
+ }, Me(e, r);
813
+ }
814
+ function it(e, r) {
815
+ e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Me(e, r);
816
+ }
817
+ function pe(e) {
818
+ "@babel/helpers - typeof";
819
+ return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
820
+ return typeof r;
821
+ } : function(r) {
822
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
823
+ }, pe(e);
824
+ }
825
+ function ut(e, r) {
826
+ if (pe(e) != "object" || !e)
827
+ return e;
828
+ var t = e[Symbol.toPrimitive];
829
+ if (t !== void 0) {
830
+ var n = t.call(e, r || "default");
831
+ if (pe(n) != "object")
832
+ return n;
833
+ throw new TypeError("@@toPrimitive must return a primitive value.");
834
+ }
835
+ return (r === "string" ? String : Number)(e);
836
+ }
837
+ function ct(e) {
838
+ var r = ut(e, "string");
839
+ return pe(r) == "symbol" ? r : r + "";
840
+ }
841
+ function ft(e, r, t) {
842
+ return (r = ct(r)) in e ? Object.defineProperty(e, r, {
843
+ value: t,
844
+ enumerable: !0,
845
+ configurable: !0,
846
+ writable: !0
847
+ }) : e[r] = t, e;
848
+ }
849
+ function st(e, r) {
850
+ if (process.env.NODE_ENV !== "production") {
851
+ if (typeof e != "function")
852
+ throw new Error("Expected reducePropsToState to be a function.");
853
+ if (typeof r != "function")
854
+ throw new Error("Expected handleStateChangeOnClient to be a function.");
855
+ }
856
+ function t(n) {
857
+ return n.displayName || n.name || "Component";
858
+ }
859
+ return function(o) {
860
+ if (process.env.NODE_ENV !== "production" && typeof o != "function")
861
+ throw new Error("Expected WrappedComponent to be a React component.");
862
+ var a = [], f;
863
+ function s() {
864
+ f = e(a.map(function(l) {
865
+ return l.props;
866
+ })), r(f);
867
+ }
868
+ var b = /* @__PURE__ */ function(l) {
869
+ it(p, l);
870
+ function p() {
871
+ return l.apply(this, arguments) || this;
872
+ }
873
+ p.peek = function() {
874
+ return f;
875
+ };
876
+ var v = p.prototype;
877
+ return v.componentDidMount = function() {
878
+ a.push(this), s();
879
+ }, v.componentDidUpdate = function() {
880
+ s();
881
+ }, v.componentWillUnmount = function() {
882
+ var E = a.indexOf(this);
883
+ a.splice(E, 1), s();
884
+ }, v.render = function() {
885
+ return /* @__PURE__ */ $r.createElement(o, this.props);
886
+ }, p;
887
+ }(Wr);
888
+ return ft(b, "displayName", "SideEffect(" + t(o) + ")"), b;
889
+ };
890
+ }
891
+ var U = function(e) {
892
+ for (var r = Array(e.length), t = 0; t < e.length; ++t)
893
+ r[t] = e[t];
894
+ return r;
895
+ }, J = function(e) {
896
+ return Array.isArray(e) ? e : [e];
897
+ }, hr = function(e) {
898
+ return Array.isArray(e) ? e[0] : e;
899
+ }, dt = function(e) {
900
+ if (e.nodeType !== Node.ELEMENT_NODE)
901
+ return !1;
902
+ var r = window.getComputedStyle(e, null);
903
+ return !r || !r.getPropertyValue ? !1 : r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
904
+ }, gr = function(e) {
905
+ return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
906
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
907
+ e.parentNode.host
908
+ ) : e.parentNode;
909
+ }, Er = function(e) {
910
+ return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
911
+ }, lt = function(e) {
912
+ return e.hasAttribute("inert");
913
+ }, vt = function(e, r) {
914
+ return !e || Er(e) || !dt(e) && !lt(e) && r(gr(e));
915
+ }, Tr = function(e, r) {
916
+ var t = e.get(r);
917
+ if (t !== void 0)
918
+ return t;
919
+ var n = vt(r, Tr.bind(void 0, e));
920
+ return e.set(r, n), n;
921
+ }, pt = function(e, r) {
922
+ return e && !Er(e) ? bt(e) ? r(gr(e)) : !1 : !0;
923
+ }, Or = function(e, r) {
924
+ var t = e.get(r);
925
+ if (t !== void 0)
926
+ return t;
927
+ var n = pt(r, Or.bind(void 0, e));
928
+ return e.set(r, n), n;
929
+ }, Sr = function(e) {
930
+ return e.dataset;
931
+ }, yt = function(e) {
932
+ return e.tagName === "BUTTON";
933
+ }, xr = function(e) {
934
+ return e.tagName === "INPUT";
935
+ }, Pr = function(e) {
936
+ return xr(e) && e.type === "radio";
937
+ }, mt = function(e) {
938
+ return !((xr(e) || yt(e)) && (e.type === "hidden" || e.disabled));
939
+ }, bt = function(e) {
940
+ var r = e.getAttribute(rt);
941
+ return ![!0, "true", ""].includes(r);
942
+ }, We = function(e) {
943
+ var r;
944
+ return !!(e && (!((r = Sr(e)) === null || r === void 0) && r.focusGuard));
945
+ }, De = function(e) {
946
+ return !We(e);
947
+ }, ht = function(e) {
948
+ return !!e;
949
+ }, gt = function(e, r) {
950
+ var t = Math.max(0, e.tabIndex), n = Math.max(0, r.tabIndex), o = t - n, a = e.index - r.index;
951
+ if (o) {
952
+ if (!t)
953
+ return 1;
954
+ if (!n)
955
+ return -1;
956
+ }
957
+ return o || a;
958
+ }, Et = function(e) {
959
+ return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
960
+ }, Ue = function(e, r, t) {
961
+ return U(e).map(function(n, o) {
962
+ var a = Et(n);
963
+ return {
964
+ node: n,
965
+ index: o,
966
+ tabIndex: t && a === -1 ? (n.dataset || {}).focusGuard ? 0 : -1 : a
967
+ };
968
+ }).filter(function(n) {
969
+ return !r || n.tabIndex >= 0;
970
+ }).sort(gt);
971
+ }, Tt = [
972
+ "button:enabled",
973
+ "select:enabled",
974
+ "textarea:enabled",
975
+ "input:enabled",
976
+ // elements with explicit roles will also use explicit tabindex
977
+ // '[role="button"]',
978
+ "a[href]",
979
+ "area[href]",
980
+ "summary",
981
+ "iframe",
982
+ "object",
983
+ "embed",
984
+ "audio[controls]",
985
+ "video[controls]",
986
+ "[tabindex]",
987
+ "[contenteditable]",
988
+ "[autofocus]"
989
+ ], qe = Tt.join(","), Ot = "".concat(qe, ", [data-focus-guard]"), wr = function(e, r) {
990
+ return U((e.shadowRoot || e).children).reduce(function(t, n) {
991
+ return t.concat(n.matches(r ? Ot : qe) ? [n] : [], wr(n));
992
+ }, []);
993
+ }, St = function(e, r) {
994
+ var t;
995
+ return e instanceof HTMLIFrameElement && (!((t = e.contentDocument) === null || t === void 0) && t.body) ? ue([e.contentDocument.body], r) : [e];
996
+ }, ue = function(e, r) {
997
+ return e.reduce(function(t, n) {
998
+ var o, a = wr(n, r), f = (o = []).concat.apply(o, a.map(function(s) {
999
+ return St(s, r);
1000
+ }));
1001
+ return t.concat(
1002
+ // add all tabbables inside and within shadow DOMs in DOM order
1003
+ f,
1004
+ // add if node is tabbable itself
1005
+ n.parentNode ? U(n.parentNode.querySelectorAll(qe)).filter(function(s) {
1006
+ return s === n;
1007
+ }) : []
1008
+ );
1009
+ }, []);
1010
+ }, xt = function(e) {
1011
+ var r = e.querySelectorAll("[".concat(et, "]"));
1012
+ return U(r).map(function(t) {
1013
+ return ue([t]);
1014
+ }).reduce(function(t, n) {
1015
+ return t.concat(n);
1016
+ }, []);
1017
+ }, Be = function(e, r) {
1018
+ return U(e).filter(function(t) {
1019
+ return Tr(r, t);
1020
+ }).filter(function(t) {
1021
+ return mt(t);
1022
+ });
1023
+ }, ir = function(e, r) {
1024
+ return r === void 0 && (r = /* @__PURE__ */ new Map()), U(e).filter(function(t) {
1025
+ return Or(r, t);
1026
+ });
1027
+ }, Ye = function(e, r, t) {
1028
+ return Ue(Be(ue(e, t), r), !0, t);
1029
+ }, ge = function(e, r) {
1030
+ return Ue(Be(ue(e), r), !1);
1031
+ }, Pt = function(e, r) {
1032
+ return Be(xt(e), r);
1033
+ }, z = function(e, r) {
1034
+ return e.shadowRoot ? z(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : U(e.children).some(function(t) {
1035
+ var n;
1036
+ if (t instanceof HTMLIFrameElement) {
1037
+ var o = (n = t.contentDocument) === null || n === void 0 ? void 0 : n.body;
1038
+ return o ? z(o, r) : !1;
1039
+ }
1040
+ return z(t, r);
1041
+ });
1042
+ }, wt = function(e) {
1043
+ for (var r = /* @__PURE__ */ new Set(), t = e.length, n = 0; n < t; n += 1)
1044
+ for (var o = n + 1; o < t; o += 1) {
1045
+ var a = e[n].compareDocumentPosition(e[o]);
1046
+ (a & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && r.add(o), (a & Node.DOCUMENT_POSITION_CONTAINS) > 0 && r.add(n);
1047
+ }
1048
+ return e.filter(function(f, s) {
1049
+ return !r.has(s);
1050
+ });
1051
+ }, _r = function(e) {
1052
+ return e.parentNode ? _r(e.parentNode) : e;
1053
+ }, Ge = function(e) {
1054
+ var r = J(e);
1055
+ return r.filter(Boolean).reduce(function(t, n) {
1056
+ var o = n.getAttribute(Ie);
1057
+ return t.push.apply(t, o ? wt(U(_r(n).querySelectorAll("[".concat(Ie, '="').concat(o, '"]:not([').concat(yr, '="disabled"])')))) : [n]), t;
1058
+ }, []);
1059
+ }, _t = function(e) {
1060
+ try {
1061
+ return e();
1062
+ } catch {
1063
+ return;
1064
+ }
1065
+ }, ye = function(e) {
1066
+ if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
1067
+ var r = e.activeElement;
1068
+ return r.shadowRoot ? ye(r.shadowRoot) : r instanceof HTMLIFrameElement && _t(function() {
1069
+ return r.contentWindow.document;
1070
+ }) ? ye(r.contentWindow.document) : r;
1071
+ }
1072
+ }, Rt = function(e, r) {
1073
+ return e === r;
1074
+ }, Ct = function(e, r) {
1075
+ return !!U(e.querySelectorAll("iframe")).some(function(t) {
1076
+ return Rt(t, r);
1077
+ });
1078
+ }, Rr = function(e, r) {
1079
+ return r === void 0 && (r = ye(hr(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : Ge(e).some(function(t) {
1080
+ return z(t, r) || Ct(t, r);
1081
+ });
1082
+ }, Ft = function(e) {
1083
+ e === void 0 && (e = document);
1084
+ var r = ye(e);
1085
+ return r ? U(e.querySelectorAll("[".concat(Qr, "]"))).some(function(t) {
1086
+ return z(t, r);
1087
+ }) : !1;
1088
+ }, At = function(e, r) {
1089
+ return r.filter(Pr).filter(function(t) {
1090
+ return t.name === e.name;
1091
+ }).filter(function(t) {
1092
+ return t.checked;
1093
+ })[0] || e;
1094
+ }, He = function(e, r) {
1095
+ return Pr(e) && e.name ? At(e, r) : e;
1096
+ }, It = function(e) {
1097
+ var r = /* @__PURE__ */ new Set();
1098
+ return e.forEach(function(t) {
1099
+ return r.add(He(t, e));
1100
+ }), e.filter(function(t) {
1101
+ return r.has(t);
1102
+ });
1103
+ }, ur = function(e) {
1104
+ return e[0] && e.length > 1 ? He(e[0], e) : e[0];
1105
+ }, cr = function(e, r) {
1106
+ return e.indexOf(He(r, e));
1107
+ }, je = "NEW_FOCUS", Mt = function(e, r, t, n, o) {
1108
+ var a = e.length, f = e[0], s = e[a - 1], b = We(n);
1109
+ if (!(n && e.indexOf(n) >= 0)) {
1110
+ var l = n !== void 0 ? t.indexOf(n) : -1, p = o ? t.indexOf(o) : l, v = o ? e.indexOf(o) : -1;
1111
+ if (l === -1)
1112
+ return v !== -1 ? v : je;
1113
+ if (v === -1)
1114
+ return je;
1115
+ var m = l - p, E = t.indexOf(f), h = t.indexOf(s), y = It(t), A = n !== void 0 ? y.indexOf(n) : -1, j = A - (o ? y.indexOf(o) : l);
1116
+ if (!m && v >= 0 || r.length === 0)
1117
+ return v;
1118
+ var N = cr(e, r[0]), I = cr(e, r[r.length - 1]);
1119
+ if (l <= E && b && Math.abs(m) > 1)
1120
+ return I;
1121
+ if (l >= h && b && Math.abs(m) > 1)
1122
+ return N;
1123
+ if (m && Math.abs(j) > 1)
1124
+ return v;
1125
+ if (l <= E)
1126
+ return I;
1127
+ if (l > h)
1128
+ return N;
1129
+ if (m)
1130
+ return Math.abs(m) > 1 ? v : (a + v + m) % a;
1131
+ }
1132
+ }, Dt = function(e) {
1133
+ return function(r) {
1134
+ var t, n = (t = Sr(r)) === null || t === void 0 ? void 0 : t.autofocus;
1135
+ return (
1136
+ // @ts-expect-error
1137
+ r.autofocus || //
1138
+ n !== void 0 && n !== "false" || //
1139
+ e.indexOf(r) >= 0
1140
+ );
1141
+ };
1142
+ }, fr = function(e, r, t) {
1143
+ var n = e.map(function(a) {
1144
+ var f = a.node;
1145
+ return f;
1146
+ }), o = ir(n.filter(Dt(t)));
1147
+ return o && o.length ? ur(o) : ur(ir(r));
1148
+ }, ke = function(e, r) {
1149
+ return r === void 0 && (r = []), r.push(e), e.parentNode && ke(e.parentNode.host || e.parentNode, r), r;
1150
+ }, Re = function(e, r) {
1151
+ for (var t = ke(e), n = ke(r), o = 0; o < t.length; o += 1) {
1152
+ var a = t[o];
1153
+ if (n.indexOf(a) >= 0)
1154
+ return a;
1155
+ }
1156
+ return !1;
1157
+ }, Cr = function(e, r, t) {
1158
+ var n = J(e), o = J(r), a = n[0], f = !1;
1159
+ return o.filter(Boolean).forEach(function(s) {
1160
+ f = Re(f || s, s) || f, t.filter(Boolean).forEach(function(b) {
1161
+ var l = Re(a, b);
1162
+ l && (!f || z(l, f) ? f = l : f = Re(l, f));
1163
+ });
1164
+ }), f;
1165
+ }, sr = function(e, r) {
1166
+ return e.reduce(function(t, n) {
1167
+ return t.concat(Pt(n, r));
1168
+ }, []);
1169
+ }, jt = function(e, r) {
1170
+ var t = /* @__PURE__ */ new Map();
1171
+ return r.forEach(function(n) {
1172
+ return t.set(n.node, n);
1173
+ }), e.map(function(n) {
1174
+ return t.get(n);
1175
+ }).filter(ht);
1176
+ }, kt = function(e, r) {
1177
+ var t = ye(J(e).length > 0 ? document : hr(e).ownerDocument), n = Ge(e).filter(De), o = Cr(t || e, e, n), a = /* @__PURE__ */ new Map(), f = ge(n, a), s = f.filter(function(h) {
1178
+ var y = h.node;
1179
+ return De(y);
1180
+ });
1181
+ if (s[0]) {
1182
+ var b = ge([o], a).map(function(h) {
1183
+ var y = h.node;
1184
+ return y;
1185
+ }), l = jt(b, s), p = l.map(function(h) {
1186
+ var y = h.node;
1187
+ return y;
1188
+ }), v = l.filter(function(h) {
1189
+ var y = h.tabIndex;
1190
+ return y >= 0;
1191
+ }).map(function(h) {
1192
+ var y = h.node;
1193
+ return y;
1194
+ }), m = Mt(p, v, b, t, r);
1195
+ if (m === je) {
1196
+ var E = (
1197
+ // first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
1198
+ fr(f, v, sr(n, a)) || fr(f, p, sr(n, a))
1199
+ );
1200
+ if (E)
1201
+ return { node: E };
1202
+ console.warn("focus-lock: cannot find any node to move focus into");
1203
+ return;
1204
+ }
1205
+ return m === void 0 ? m : l[m];
1206
+ }
1207
+ }, Nt = function(e) {
1208
+ var r = Ge(e).filter(De), t = Cr(e, e, r), n = Ue(ue([t], !0), !0, !0), o = ue(r, !1);
1209
+ return n.map(function(a) {
1210
+ var f = a.node, s = a.index;
1211
+ return {
1212
+ node: f,
1213
+ index: s,
1214
+ lockItem: o.indexOf(f) >= 0,
1215
+ guard: We(f)
1216
+ };
1217
+ });
1218
+ }, Ve = function(e, r) {
1219
+ e && ("focus" in e && e.focus(r), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
1220
+ }, Ce = 0, Fe = !1, Fr = function(e, r, t) {
1221
+ t === void 0 && (t = {});
1222
+ var n = kt(e, r);
1223
+ if (!Fe && n) {
1224
+ if (Ce > 2) {
1225
+ console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), Fe = !0, setTimeout(function() {
1226
+ Fe = !1;
1227
+ }, 1);
1228
+ return;
1229
+ }
1230
+ Ce++, Ve(n.node, t.focusOptions), Ce--;
1231
+ }
1232
+ };
1233
+ function le(e) {
1234
+ if (!e)
1235
+ return null;
1236
+ if (typeof WeakRef > "u")
1237
+ return function() {
1238
+ return e || null;
1239
+ };
1240
+ var r = e ? new WeakRef(e) : null;
1241
+ return function() {
1242
+ return (r == null ? void 0 : r.deref()) || null;
1243
+ };
1244
+ }
1245
+ var $t = function(e) {
1246
+ if (!e)
1247
+ return null;
1248
+ for (var r = [], t = e; t && t !== document.body; )
1249
+ r.push({
1250
+ current: le(t),
1251
+ parent: le(t.parentElement),
1252
+ left: le(t.previousElementSibling),
1253
+ right: le(t.nextElementSibling)
1254
+ }), t = t.parentElement;
1255
+ return {
1256
+ element: le(e),
1257
+ stack: r,
1258
+ ownerDocument: e.ownerDocument
1259
+ };
1260
+ }, Lt = function(e) {
1261
+ var r, t, n, o, a;
1262
+ if (e)
1263
+ for (var f = e.stack, s = e.ownerDocument, b = /* @__PURE__ */ new Map(), l = 0, p = f; l < p.length; l++) {
1264
+ var v = p[l], m = (r = v.parent) === null || r === void 0 ? void 0 : r.call(v);
1265
+ if (m && s.contains(m)) {
1266
+ for (var E = (t = v.left) === null || t === void 0 ? void 0 : t.call(v), h = v.current(), y = m.contains(h) ? h : void 0, A = (n = v.right) === null || n === void 0 ? void 0 : n.call(v), j = Ye([m], b), N = (
1267
+ // that is element itself
1268
+ (a = (o = y ?? // or something in it's place
1269
+ (E == null ? void 0 : E.nextElementSibling)) !== null && o !== void 0 ? o : (
1270
+ // or somebody to the right, still close enough
1271
+ A
1272
+ )) !== null && a !== void 0 ? a : (
1273
+ // or somebody to the left, something?
1274
+ E
1275
+ )
1276
+ ); N; ) {
1277
+ for (var I = 0, k = j; I < k.length; I++) {
1278
+ var u = k[I];
1279
+ if (N != null && N.contains(u.node))
1280
+ return u.node;
1281
+ }
1282
+ N = N.nextElementSibling;
1283
+ }
1284
+ if (j.length)
1285
+ return j[0].node;
1286
+ }
1287
+ }
1288
+ }, Wt = function(e) {
1289
+ var r = $t(e);
1290
+ return function() {
1291
+ return Lt(r);
1292
+ };
1293
+ }, Ut = function(e, r, t) {
1294
+ if (!e || !r)
1295
+ return console.error("no element or scope given"), {};
1296
+ var n = J(r);
1297
+ if (n.every(function(f) {
1298
+ return !z(f, e);
1299
+ }))
1300
+ return console.error("Active element is not contained in the scope"), {};
1301
+ var o = t ? Ye(n, /* @__PURE__ */ new Map()) : ge(n, /* @__PURE__ */ new Map()), a = o.findIndex(function(f) {
1302
+ var s = f.node;
1303
+ return s === e;
1304
+ });
1305
+ if (a !== -1)
1306
+ return {
1307
+ prev: o[a - 1],
1308
+ next: o[a + 1],
1309
+ first: o[0],
1310
+ last: o[o.length - 1]
1311
+ };
1312
+ }, qt = function(e, r) {
1313
+ var t = r ? Ye(J(e), /* @__PURE__ */ new Map()) : ge(J(e), /* @__PURE__ */ new Map());
1314
+ return {
1315
+ first: t[0],
1316
+ last: t[t.length - 1]
1317
+ };
1318
+ }, Bt = function(e) {
1319
+ return Object.assign({
1320
+ scope: document.body,
1321
+ cycle: !0,
1322
+ onlyTabbable: !0
1323
+ }, e);
1324
+ }, Ar = function(e, r, t) {
1325
+ r === void 0 && (r = {});
1326
+ var n = Bt(r), o = Ut(e, n.scope, n.onlyTabbable);
1327
+ if (o) {
1328
+ var a = t(o, n.cycle);
1329
+ a && Ve(a.node, n.focusOptions);
1330
+ }
1331
+ }, Yt = function(e, r) {
1332
+ r === void 0 && (r = {}), Ar(e, r, function(t, n) {
1333
+ var o = t.next, a = t.first;
1334
+ return o || n && a;
1335
+ });
1336
+ }, Gt = function(e, r) {
1337
+ r === void 0 && (r = {}), Ar(e, r, function(t, n) {
1338
+ var o = t.prev, a = t.last;
1339
+ return o || n && a;
1340
+ });
1341
+ }, Ir = function(e, r, t) {
1342
+ var n, o = qt(e, (n = r.onlyTabbable) !== null && n !== void 0 ? n : !0), a = o[t];
1343
+ a && Ve(a.node, r.focusOptions);
1344
+ }, Ht = function(e, r) {
1345
+ r === void 0 && (r = {}), Ir(e, r, "first");
1346
+ }, Vt = function(e, r) {
1347
+ r === void 0 && (r = {}), Ir(e, r, "last");
1348
+ };
1349
+ function ze(e) {
1350
+ setTimeout(e, 1);
1351
+ }
1352
+ var zt = function(r) {
1353
+ return r && "current" in r ? r.current : r;
1354
+ }, Jt = function() {
1355
+ return document && document.activeElement === document.body;
1356
+ }, Kt = function() {
1357
+ return Jt() || Ft();
1358
+ }, ae = null, oe = null, ie = null, me = !1, Xt = function() {
1359
+ return !0;
1360
+ }, Zt = function(r) {
1361
+ return (ae.whiteList || Xt)(r);
1362
+ }, Qt = function(r, t) {
1363
+ ie = {
1364
+ observerNode: r,
1365
+ portaledElement: t
1366
+ };
1367
+ }, en = function(r) {
1368
+ return ie && ie.portaledElement === r;
1369
+ };
1370
+ function dr(e, r, t, n) {
1371
+ var o = null, a = e;
1372
+ do {
1373
+ var f = n[a];
1374
+ if (f.guard)
1375
+ f.node.dataset.focusAutoGuard && (o = f);
1376
+ else if (f.lockItem) {
1377
+ if (a !== e)
1378
+ return;
1379
+ o = null;
1380
+ } else
1381
+ break;
1382
+ } while ((a += t) !== r);
1383
+ o && (o.node.tabIndex = 0);
1384
+ }
1385
+ var rn = function(r) {
1386
+ return r ? !!me : me === "meanwhile";
1387
+ }, tn = function e(r, t, n) {
1388
+ return t && (t.host === r && (!t.activeElement || n.contains(t.activeElement)) || t.parentNode && e(r, t.parentNode, n));
1389
+ }, nn = function(r, t) {
1390
+ return t.some(function(n) {
1391
+ return tn(r, n, n);
1392
+ });
1393
+ }, Ee = function() {
1394
+ var r = !1;
1395
+ if (ae) {
1396
+ var t = ae, n = t.observed, o = t.persistentFocus, a = t.autoFocus, f = t.shards, s = t.crossFrame, b = t.focusOptions, l = n || ie && ie.portaledElement, p = document && document.activeElement;
1397
+ if (l) {
1398
+ var v = [l].concat(f.map(zt).filter(Boolean));
1399
+ if ((!p || Zt(p)) && (o || rn(s) || !Kt() || !oe && a) && (l && !(Rr(v) || p && nn(p, v) || en(p)) && (document && !oe && p && !a ? (p.blur && p.blur(), document.body.focus()) : (r = Fr(v, oe, {
1400
+ focusOptions: b
1401
+ }), ie = {})), me = !1, oe = document && document.activeElement), document && p !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
1402
+ var m = document && document.activeElement, E = Nt(v), h = E.map(function(y) {
1403
+ var A = y.node;
1404
+ return A;
1405
+ }).indexOf(m);
1406
+ h > -1 && (E.filter(function(y) {
1407
+ var A = y.guard, j = y.node;
1408
+ return A && j.dataset.focusAutoGuard;
1409
+ }).forEach(function(y) {
1410
+ var A = y.node;
1411
+ return A.removeAttribute("tabIndex");
1412
+ }), dr(h, E.length, 1, E), dr(h, -1, -1, E));
1413
+ }
1414
+ }
1415
+ }
1416
+ return r;
1417
+ }, Mr = function(r) {
1418
+ Ee() && r && (r.stopPropagation(), r.preventDefault());
1419
+ }, Je = function() {
1420
+ return ze(Ee);
1421
+ }, on = function(r) {
1422
+ var t = r.target, n = r.currentTarget;
1423
+ n.contains(t) || Qt(n, t);
1424
+ }, an = function() {
1425
+ return null;
1426
+ };
1427
+ process.env.NODE_ENV !== "production" && pr.node.isRequired;
1428
+ var Dr = function() {
1429
+ me = "just", ze(function() {
1430
+ me = "meanwhile";
1431
+ });
1432
+ }, un = function() {
1433
+ document.addEventListener("focusin", Mr), document.addEventListener("focusout", Je), window.addEventListener("blur", Dr);
1434
+ }, cn = function() {
1435
+ document.removeEventListener("focusin", Mr), document.removeEventListener("focusout", Je), window.removeEventListener("blur", Dr);
1436
+ };
1437
+ function fn(e) {
1438
+ return e.filter(function(r) {
1439
+ var t = r.disabled;
1440
+ return !t;
1441
+ });
1442
+ }
1443
+ var jr = {
1444
+ moveFocusInside: Fr,
1445
+ focusInside: Rr,
1446
+ focusNextElement: Yt,
1447
+ focusPrevElement: Gt,
1448
+ focusFirstElement: Ht,
1449
+ focusLastElement: Vt,
1450
+ captureFocusRestore: Wt
1451
+ };
1452
+ function sn(e) {
1453
+ var r = e.slice(-1)[0];
1454
+ r && !ae && un();
1455
+ var t = ae, n = t && r && r.id === t.id;
1456
+ ae = r, t && !n && (t.onDeactivation(), e.filter(function(o) {
1457
+ var a = o.id;
1458
+ return a === t.id;
1459
+ }).length || t.returnFocus(!r)), r ? (oe = null, (!n || t.observed !== r.observed) && r.onActivation(jr), Ee(), ze(Ee)) : (cn(), oe = null);
1460
+ }
1461
+ mr.assignSyncMedium(on);
1462
+ br.assignMedium(Je);
1463
+ tt.assignMedium(function(e) {
1464
+ return e(jr);
1465
+ });
1466
+ const dn = st(fn, sn)(an);
1467
+ var ln = /* @__PURE__ */ D.forwardRef(function(r, t) {
1468
+ return /* @__PURE__ */ D.createElement(Le, ve({
1469
+ sideCar: dn,
1470
+ ref: t
1471
+ }, r));
1472
+ }), kr = Le.propTypes || {};
1473
+ kr.sideCar;
1474
+ var vn = Yr(kr, ["sideCar"]);
1475
+ ln.propTypes = process.env.NODE_ENV !== "production" ? vn : {};
1476
+ export {
1477
+ ln as F
1478
+ };