@fluidattacks/design 3.1.11 → 3.1.13

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 (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -0,0 +1,1678 @@
1
+ import { jsx as lt, jsxs as Zt } from "react/jsx-runtime";
2
+ import * as U from "react";
3
+ import Re, { useLayoutEffect as mn, useEffect as L, createContext as Nn, useState as W, useRef as se, useContext as Mn, useCallback as $t, useImperativeHandle as $n, forwardRef as Pn, StrictMode as Bn } from "react";
4
+ import * as jn from "react-dom";
5
+ import { createPortal as Wn } from "react-dom";
6
+ import { isEmpty as kt } from "lodash";
7
+ import { g as Fn } from "./_commonjsHelpers-C6fGbg64.mjs";
8
+ import { styled as hn, useTheme as In } from "styled-components";
9
+ import { B as zn } from "./styles-CplEd2kw.mjs";
10
+ import { Icon as Vn } from "./components/icon/index.js";
11
+ import "./components/typography/heading/index.js";
12
+ import "./components/typography/span/index.js";
13
+ import { Text as Gt } from "./components/typography/text/index.js";
14
+ const Ie = Math.min, Oe = Math.max, vt = Math.round, gt = Math.floor, me = (e) => ({
15
+ x: e,
16
+ y: e
17
+ }), qn = {
18
+ left: "right",
19
+ right: "left",
20
+ bottom: "top",
21
+ top: "bottom"
22
+ }, Hn = {
23
+ start: "end",
24
+ end: "start"
25
+ };
26
+ function Pt(e, t, n) {
27
+ return Oe(e, Ie(t, n));
28
+ }
29
+ function st(e, t) {
30
+ return typeof e == "function" ? e(t) : e;
31
+ }
32
+ function Te(e) {
33
+ return e.split("-")[0];
34
+ }
35
+ function ct(e) {
36
+ return e.split("-")[1];
37
+ }
38
+ function yn(e) {
39
+ return e === "x" ? "y" : "x";
40
+ }
41
+ function zt(e) {
42
+ return e === "y" ? "height" : "width";
43
+ }
44
+ function ze(e) {
45
+ return ["top", "bottom"].includes(Te(e)) ? "y" : "x";
46
+ }
47
+ function Vt(e) {
48
+ return yn(ze(e));
49
+ }
50
+ function Kn(e, t, n) {
51
+ n === void 0 && (n = !1);
52
+ const o = ct(e), l = Vt(e), r = zt(l);
53
+ let i = l === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
54
+ return t.reference[r] > t.floating[r] && (i = xt(i)), [i, xt(i)];
55
+ }
56
+ function Xn(e) {
57
+ const t = xt(e);
58
+ return [Bt(e), t, Bt(t)];
59
+ }
60
+ function Bt(e) {
61
+ return e.replace(/start|end/g, (t) => Hn[t]);
62
+ }
63
+ function Yn(e, t, n) {
64
+ const o = ["left", "right"], l = ["right", "left"], r = ["top", "bottom"], i = ["bottom", "top"];
65
+ switch (e) {
66
+ case "top":
67
+ case "bottom":
68
+ return n ? t ? l : o : t ? o : l;
69
+ case "left":
70
+ case "right":
71
+ return t ? r : i;
72
+ default:
73
+ return [];
74
+ }
75
+ }
76
+ function Un(e, t, n, o) {
77
+ const l = ct(e);
78
+ let r = Yn(Te(e), n === "start", o);
79
+ return l && (r = r.map((i) => i + "-" + l), t && (r = r.concat(r.map(Bt)))), r;
80
+ }
81
+ function xt(e) {
82
+ return e.replace(/left|right|bottom|top/g, (t) => qn[t]);
83
+ }
84
+ function Jn(e) {
85
+ return {
86
+ top: 0,
87
+ right: 0,
88
+ bottom: 0,
89
+ left: 0,
90
+ ...e
91
+ };
92
+ }
93
+ function gn(e) {
94
+ return typeof e != "number" ? Jn(e) : {
95
+ top: e,
96
+ right: e,
97
+ bottom: e,
98
+ left: e
99
+ };
100
+ }
101
+ function bt(e) {
102
+ const {
103
+ x: t,
104
+ y: n,
105
+ width: o,
106
+ height: l
107
+ } = e;
108
+ return {
109
+ width: o,
110
+ height: l,
111
+ top: n,
112
+ left: t,
113
+ right: t + o,
114
+ bottom: n + l,
115
+ x: t,
116
+ y: n
117
+ };
118
+ }
119
+ function en(e, t, n) {
120
+ let {
121
+ reference: o,
122
+ floating: l
123
+ } = e;
124
+ const r = ze(t), i = Vt(t), s = zt(i), c = Te(t), a = r === "y", p = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, h = o[s] / 2 - l[s] / 2;
125
+ let u;
126
+ switch (c) {
127
+ case "top":
128
+ u = {
129
+ x: p,
130
+ y: o.y - l.height
131
+ };
132
+ break;
133
+ case "bottom":
134
+ u = {
135
+ x: p,
136
+ y: o.y + o.height
137
+ };
138
+ break;
139
+ case "right":
140
+ u = {
141
+ x: o.x + o.width,
142
+ y: d
143
+ };
144
+ break;
145
+ case "left":
146
+ u = {
147
+ x: o.x - l.width,
148
+ y: d
149
+ };
150
+ break;
151
+ default:
152
+ u = {
153
+ x: o.x,
154
+ y: o.y
155
+ };
156
+ }
157
+ switch (ct(t)) {
158
+ case "start":
159
+ u[i] -= h * (n && a ? -1 : 1);
160
+ break;
161
+ case "end":
162
+ u[i] += h * (n && a ? -1 : 1);
163
+ break;
164
+ }
165
+ return u;
166
+ }
167
+ const Qn = async (e, t, n) => {
168
+ const {
169
+ placement: o = "bottom",
170
+ strategy: l = "absolute",
171
+ middleware: r = [],
172
+ platform: i
173
+ } = n, s = r.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
174
+ let a = await i.getElementRects({
175
+ reference: e,
176
+ floating: t,
177
+ strategy: l
178
+ }), {
179
+ x: p,
180
+ y: d
181
+ } = en(a, o, c), h = o, u = {}, m = 0;
182
+ for (let g = 0; g < s.length; g++) {
183
+ const {
184
+ name: x,
185
+ fn: w
186
+ } = s[g], {
187
+ x: S,
188
+ y: _,
189
+ data: A,
190
+ reset: E
191
+ } = await w({
192
+ x: p,
193
+ y: d,
194
+ initialPlacement: o,
195
+ placement: h,
196
+ strategy: l,
197
+ middlewareData: u,
198
+ rects: a,
199
+ platform: i,
200
+ elements: {
201
+ reference: e,
202
+ floating: t
203
+ }
204
+ });
205
+ p = S ?? p, d = _ ?? d, u = {
206
+ ...u,
207
+ [x]: {
208
+ ...u[x],
209
+ ...A
210
+ }
211
+ }, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (h = E.placement), E.rects && (a = E.rects === !0 ? await i.getElementRects({
212
+ reference: e,
213
+ floating: t,
214
+ strategy: l
215
+ }) : E.rects), {
216
+ x: p,
217
+ y: d
218
+ } = en(a, h, c)), g = -1);
219
+ }
220
+ return {
221
+ x: p,
222
+ y: d,
223
+ placement: h,
224
+ strategy: l,
225
+ middlewareData: u
226
+ };
227
+ };
228
+ async function wn(e, t) {
229
+ var n;
230
+ t === void 0 && (t = {});
231
+ const {
232
+ x: o,
233
+ y: l,
234
+ platform: r,
235
+ rects: i,
236
+ elements: s,
237
+ strategy: c
238
+ } = e, {
239
+ boundary: a = "clippingAncestors",
240
+ rootBoundary: p = "viewport",
241
+ elementContext: d = "floating",
242
+ altBoundary: h = !1,
243
+ padding: u = 0
244
+ } = st(t, e), m = gn(u), x = s[h ? d === "floating" ? "reference" : "floating" : d], w = bt(await r.getClippingRect({
245
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(x))) == null || n ? x : x.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
246
+ boundary: a,
247
+ rootBoundary: p,
248
+ strategy: c
249
+ })), S = d === "floating" ? {
250
+ x: o,
251
+ y: l,
252
+ width: i.floating.width,
253
+ height: i.floating.height
254
+ } : i.reference, _ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), A = await (r.isElement == null ? void 0 : r.isElement(_)) ? await (r.getScale == null ? void 0 : r.getScale(_)) || {
255
+ x: 1,
256
+ y: 1
257
+ } : {
258
+ x: 1,
259
+ y: 1
260
+ }, E = bt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
261
+ elements: s,
262
+ rect: S,
263
+ offsetParent: _,
264
+ strategy: c
265
+ }) : S);
266
+ return {
267
+ top: (w.top - E.top + m.top) / A.y,
268
+ bottom: (E.bottom - w.bottom + m.bottom) / A.y,
269
+ left: (w.left - E.left + m.left) / A.x,
270
+ right: (E.right - w.right + m.right) / A.x
271
+ };
272
+ }
273
+ const Zn = (e) => ({
274
+ name: "arrow",
275
+ options: e,
276
+ async fn(t) {
277
+ const {
278
+ x: n,
279
+ y: o,
280
+ placement: l,
281
+ rects: r,
282
+ platform: i,
283
+ elements: s,
284
+ middlewareData: c
285
+ } = t, {
286
+ element: a,
287
+ padding: p = 0
288
+ } = st(e, t) || {};
289
+ if (a == null)
290
+ return {};
291
+ const d = gn(p), h = {
292
+ x: n,
293
+ y: o
294
+ }, u = Vt(l), m = zt(u), g = await i.getDimensions(a), x = u === "y", w = x ? "top" : "left", S = x ? "bottom" : "right", _ = x ? "clientHeight" : "clientWidth", A = r.reference[m] + r.reference[u] - h[u] - r.floating[m], E = h[u] - r.reference[u], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
295
+ let T = $ ? $[_] : 0;
296
+ (!T || !await (i.isElement == null ? void 0 : i.isElement($))) && (T = s.floating[_] || r.floating[m]);
297
+ const V = A / 2 - E / 2, J = T / 2 - g[m] / 2 - 1, q = Ie(d[w], J), ee = Ie(d[S], J), Q = q, H = T - g[m] - ee, C = T / 2 - g[m] / 2 + V, K = Pt(Q, C, H), N = !c.arrow && ct(l) != null && C !== K && r.reference[m] / 2 - (C < Q ? q : ee) - g[m] / 2 < 0, P = N ? C < Q ? C - Q : C - H : 0;
298
+ return {
299
+ [u]: h[u] + P,
300
+ data: {
301
+ [u]: K,
302
+ centerOffset: C - K - P,
303
+ ...N && {
304
+ alignmentOffset: P
305
+ }
306
+ },
307
+ reset: N
308
+ };
309
+ }
310
+ }), Gn = function(e) {
311
+ return e === void 0 && (e = {}), {
312
+ name: "flip",
313
+ options: e,
314
+ async fn(t) {
315
+ var n, o;
316
+ const {
317
+ placement: l,
318
+ middlewareData: r,
319
+ rects: i,
320
+ initialPlacement: s,
321
+ platform: c,
322
+ elements: a
323
+ } = t, {
324
+ mainAxis: p = !0,
325
+ crossAxis: d = !0,
326
+ fallbackPlacements: h,
327
+ fallbackStrategy: u = "bestFit",
328
+ fallbackAxisSideDirection: m = "none",
329
+ flipAlignment: g = !0,
330
+ ...x
331
+ } = st(e, t);
332
+ if ((n = r.arrow) != null && n.alignmentOffset)
333
+ return {};
334
+ const w = Te(l), S = ze(s), _ = Te(s) === s, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), E = h || (_ || !g ? [xt(s)] : Xn(s)), $ = m !== "none";
335
+ !h && $ && E.push(...Un(s, g, m, A));
336
+ const T = [s, ...E], V = await wn(t, x), J = [];
337
+ let q = ((o = r.flip) == null ? void 0 : o.overflows) || [];
338
+ if (p && J.push(V[w]), d) {
339
+ const C = Kn(l, i, A);
340
+ J.push(V[C[0]], V[C[1]]);
341
+ }
342
+ if (q = [...q, {
343
+ placement: l,
344
+ overflows: J
345
+ }], !J.every((C) => C <= 0)) {
346
+ var ee, Q;
347
+ const C = (((ee = r.flip) == null ? void 0 : ee.index) || 0) + 1, K = T[C];
348
+ if (K)
349
+ return {
350
+ data: {
351
+ index: C,
352
+ overflows: q
353
+ },
354
+ reset: {
355
+ placement: K
356
+ }
357
+ };
358
+ let N = (Q = q.filter((P) => P.overflows[0] <= 0).sort((P, R) => P.overflows[1] - R.overflows[1])[0]) == null ? void 0 : Q.placement;
359
+ if (!N)
360
+ switch (u) {
361
+ case "bestFit": {
362
+ var H;
363
+ const P = (H = q.filter((R) => {
364
+ if ($) {
365
+ const B = ze(R.placement);
366
+ return B === S || // Create a bias to the `y` side axis due to horizontal
367
+ // reading directions favoring greater width.
368
+ B === "y";
369
+ }
370
+ return !0;
371
+ }).map((R) => [R.placement, R.overflows.filter((B) => B > 0).reduce((B, X) => B + X, 0)]).sort((R, B) => R[1] - B[1])[0]) == null ? void 0 : H[0];
372
+ P && (N = P);
373
+ break;
374
+ }
375
+ case "initialPlacement":
376
+ N = s;
377
+ break;
378
+ }
379
+ if (l !== N)
380
+ return {
381
+ reset: {
382
+ placement: N
383
+ }
384
+ };
385
+ }
386
+ return {};
387
+ }
388
+ };
389
+ };
390
+ async function eo(e, t) {
391
+ const {
392
+ placement: n,
393
+ platform: o,
394
+ elements: l
395
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Te(n), s = ct(n), c = ze(n) === "y", a = ["left", "top"].includes(i) ? -1 : 1, p = r && c ? -1 : 1, d = st(t, e);
396
+ let {
397
+ mainAxis: h,
398
+ crossAxis: u,
399
+ alignmentAxis: m
400
+ } = typeof d == "number" ? {
401
+ mainAxis: d,
402
+ crossAxis: 0,
403
+ alignmentAxis: null
404
+ } : {
405
+ mainAxis: d.mainAxis || 0,
406
+ crossAxis: d.crossAxis || 0,
407
+ alignmentAxis: d.alignmentAxis
408
+ };
409
+ return s && typeof m == "number" && (u = s === "end" ? m * -1 : m), c ? {
410
+ x: u * p,
411
+ y: h * a
412
+ } : {
413
+ x: h * a,
414
+ y: u * p
415
+ };
416
+ }
417
+ const to = function(e) {
418
+ return e === void 0 && (e = 0), {
419
+ name: "offset",
420
+ options: e,
421
+ async fn(t) {
422
+ var n, o;
423
+ const {
424
+ x: l,
425
+ y: r,
426
+ placement: i,
427
+ middlewareData: s
428
+ } = t, c = await eo(t, e);
429
+ return i === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
430
+ x: l + c.x,
431
+ y: r + c.y,
432
+ data: {
433
+ ...c,
434
+ placement: i
435
+ }
436
+ };
437
+ }
438
+ };
439
+ }, no = function(e) {
440
+ return e === void 0 && (e = {}), {
441
+ name: "shift",
442
+ options: e,
443
+ async fn(t) {
444
+ const {
445
+ x: n,
446
+ y: o,
447
+ placement: l
448
+ } = t, {
449
+ mainAxis: r = !0,
450
+ crossAxis: i = !1,
451
+ limiter: s = {
452
+ fn: (x) => {
453
+ let {
454
+ x: w,
455
+ y: S
456
+ } = x;
457
+ return {
458
+ x: w,
459
+ y: S
460
+ };
461
+ }
462
+ },
463
+ ...c
464
+ } = st(e, t), a = {
465
+ x: n,
466
+ y: o
467
+ }, p = await wn(t, c), d = ze(Te(l)), h = yn(d);
468
+ let u = a[h], m = a[d];
469
+ if (r) {
470
+ const x = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", S = u + p[x], _ = u - p[w];
471
+ u = Pt(S, u, _);
472
+ }
473
+ if (i) {
474
+ const x = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", S = m + p[x], _ = m - p[w];
475
+ m = Pt(S, m, _);
476
+ }
477
+ const g = s.fn({
478
+ ...t,
479
+ [h]: u,
480
+ [d]: m
481
+ });
482
+ return {
483
+ ...g,
484
+ data: {
485
+ x: g.x - n,
486
+ y: g.y - o,
487
+ enabled: {
488
+ [h]: r,
489
+ [d]: i
490
+ }
491
+ }
492
+ };
493
+ }
494
+ };
495
+ };
496
+ function At() {
497
+ return typeof window < "u";
498
+ }
499
+ function qe(e) {
500
+ return vn(e) ? (e.nodeName || "").toLowerCase() : "#document";
501
+ }
502
+ function oe(e) {
503
+ var t;
504
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
505
+ }
506
+ function ye(e) {
507
+ var t;
508
+ return (t = (vn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
509
+ }
510
+ function vn(e) {
511
+ return At() ? e instanceof Node || e instanceof oe(e).Node : !1;
512
+ }
513
+ function ue(e) {
514
+ return At() ? e instanceof Element || e instanceof oe(e).Element : !1;
515
+ }
516
+ function he(e) {
517
+ return At() ? e instanceof HTMLElement || e instanceof oe(e).HTMLElement : !1;
518
+ }
519
+ function tn(e) {
520
+ return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof oe(e).ShadowRoot;
521
+ }
522
+ function at(e) {
523
+ const {
524
+ overflow: t,
525
+ overflowX: n,
526
+ overflowY: o,
527
+ display: l
528
+ } = fe(e);
529
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(l);
530
+ }
531
+ function oo(e) {
532
+ return ["table", "td", "th"].includes(qe(e));
533
+ }
534
+ function St(e) {
535
+ return [":popover-open", ":modal"].some((t) => {
536
+ try {
537
+ return e.matches(t);
538
+ } catch {
539
+ return !1;
540
+ }
541
+ });
542
+ }
543
+ function qt(e) {
544
+ const t = Ht(), n = ue(e) ? fe(e) : e;
545
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
546
+ }
547
+ function ro(e) {
548
+ let t = be(e);
549
+ for (; he(t) && !Ve(t); ) {
550
+ if (qt(t))
551
+ return t;
552
+ if (St(t))
553
+ return null;
554
+ t = be(t);
555
+ }
556
+ return null;
557
+ }
558
+ function Ht() {
559
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
560
+ }
561
+ function Ve(e) {
562
+ return ["html", "body", "#document"].includes(qe(e));
563
+ }
564
+ function fe(e) {
565
+ return oe(e).getComputedStyle(e);
566
+ }
567
+ function Et(e) {
568
+ return ue(e) ? {
569
+ scrollLeft: e.scrollLeft,
570
+ scrollTop: e.scrollTop
571
+ } : {
572
+ scrollLeft: e.scrollX,
573
+ scrollTop: e.scrollY
574
+ };
575
+ }
576
+ function be(e) {
577
+ if (qe(e) === "html")
578
+ return e;
579
+ const t = (
580
+ // Step into the shadow DOM of the parent of a slotted node.
581
+ e.assignedSlot || // DOM Element detected.
582
+ e.parentNode || // ShadowRoot detected.
583
+ tn(e) && e.host || // Fallback.
584
+ ye(e)
585
+ );
586
+ return tn(t) ? t.host : t;
587
+ }
588
+ function xn(e) {
589
+ const t = be(e);
590
+ return Ve(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : he(t) && at(t) ? t : xn(t);
591
+ }
592
+ function it(e, t, n) {
593
+ var o;
594
+ t === void 0 && (t = []), n === void 0 && (n = !0);
595
+ const l = xn(e), r = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = oe(l);
596
+ if (r) {
597
+ const s = jt(i);
598
+ return t.concat(i, i.visualViewport || [], at(l) ? l : [], s && n ? it(s) : []);
599
+ }
600
+ return t.concat(l, it(l, [], n));
601
+ }
602
+ function jt(e) {
603
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
604
+ }
605
+ function bn(e) {
606
+ const t = fe(e);
607
+ let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
608
+ const l = he(e), r = l ? e.offsetWidth : n, i = l ? e.offsetHeight : o, s = vt(n) !== r || vt(o) !== i;
609
+ return s && (n = r, o = i), {
610
+ width: n,
611
+ height: o,
612
+ $: s
613
+ };
614
+ }
615
+ function Kt(e) {
616
+ return ue(e) ? e : e.contextElement;
617
+ }
618
+ function Fe(e) {
619
+ const t = Kt(e);
620
+ if (!he(t))
621
+ return me(1);
622
+ const n = t.getBoundingClientRect(), {
623
+ width: o,
624
+ height: l,
625
+ $: r
626
+ } = bn(t);
627
+ let i = (r ? vt(n.width) : n.width) / o, s = (r ? vt(n.height) : n.height) / l;
628
+ return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
629
+ x: i,
630
+ y: s
631
+ };
632
+ }
633
+ const lo = /* @__PURE__ */ me(0);
634
+ function _n(e) {
635
+ const t = oe(e);
636
+ return !Ht() || !t.visualViewport ? lo : {
637
+ x: t.visualViewport.offsetLeft,
638
+ y: t.visualViewport.offsetTop
639
+ };
640
+ }
641
+ function io(e, t, n) {
642
+ return t === void 0 && (t = !1), !n || t && n !== oe(e) ? !1 : t;
643
+ }
644
+ function Ce(e, t, n, o) {
645
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
646
+ const l = e.getBoundingClientRect(), r = Kt(e);
647
+ let i = me(1);
648
+ t && (o ? ue(o) && (i = Fe(o)) : i = Fe(e));
649
+ const s = io(r, n, o) ? _n(r) : me(0);
650
+ let c = (l.left + s.x) / i.x, a = (l.top + s.y) / i.y, p = l.width / i.x, d = l.height / i.y;
651
+ if (r) {
652
+ const h = oe(r), u = o && ue(o) ? oe(o) : o;
653
+ let m = h, g = jt(m);
654
+ for (; g && o && u !== m; ) {
655
+ const x = Fe(g), w = g.getBoundingClientRect(), S = fe(g), _ = w.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, A = w.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
656
+ c *= x.x, a *= x.y, p *= x.x, d *= x.y, c += _, a += A, m = oe(g), g = jt(m);
657
+ }
658
+ }
659
+ return bt({
660
+ width: p,
661
+ height: d,
662
+ x: c,
663
+ y: a
664
+ });
665
+ }
666
+ function Xt(e, t) {
667
+ const n = Et(e).scrollLeft;
668
+ return t ? t.left + n : Ce(ye(e)).left + n;
669
+ }
670
+ function An(e, t, n) {
671
+ n === void 0 && (n = !1);
672
+ const o = e.getBoundingClientRect(), l = o.left + t.scrollLeft - (n ? 0 : (
673
+ // RTL <body> scrollbar.
674
+ Xt(e, o)
675
+ )), r = o.top + t.scrollTop;
676
+ return {
677
+ x: l,
678
+ y: r
679
+ };
680
+ }
681
+ function so(e) {
682
+ let {
683
+ elements: t,
684
+ rect: n,
685
+ offsetParent: o,
686
+ strategy: l
687
+ } = e;
688
+ const r = l === "fixed", i = ye(o), s = t ? St(t.floating) : !1;
689
+ if (o === i || s && r)
690
+ return n;
691
+ let c = {
692
+ scrollLeft: 0,
693
+ scrollTop: 0
694
+ }, a = me(1);
695
+ const p = me(0), d = he(o);
696
+ if ((d || !d && !r) && ((qe(o) !== "body" || at(i)) && (c = Et(o)), he(o))) {
697
+ const u = Ce(o);
698
+ a = Fe(o), p.x = u.x + o.clientLeft, p.y = u.y + o.clientTop;
699
+ }
700
+ const h = i && !d && !r ? An(i, c, !0) : me(0);
701
+ return {
702
+ width: n.width * a.x,
703
+ height: n.height * a.y,
704
+ x: n.x * a.x - c.scrollLeft * a.x + p.x + h.x,
705
+ y: n.y * a.y - c.scrollTop * a.y + p.y + h.y
706
+ };
707
+ }
708
+ function co(e) {
709
+ return Array.from(e.getClientRects());
710
+ }
711
+ function ao(e) {
712
+ const t = ye(e), n = Et(e), o = e.ownerDocument.body, l = Oe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = Oe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
713
+ let i = -n.scrollLeft + Xt(e);
714
+ const s = -n.scrollTop;
715
+ return fe(o).direction === "rtl" && (i += Oe(t.clientWidth, o.clientWidth) - l), {
716
+ width: l,
717
+ height: r,
718
+ x: i,
719
+ y: s
720
+ };
721
+ }
722
+ function uo(e, t) {
723
+ const n = oe(e), o = ye(e), l = n.visualViewport;
724
+ let r = o.clientWidth, i = o.clientHeight, s = 0, c = 0;
725
+ if (l) {
726
+ r = l.width, i = l.height;
727
+ const a = Ht();
728
+ (!a || a && t === "fixed") && (s = l.offsetLeft, c = l.offsetTop);
729
+ }
730
+ return {
731
+ width: r,
732
+ height: i,
733
+ x: s,
734
+ y: c
735
+ };
736
+ }
737
+ function fo(e, t) {
738
+ const n = Ce(e, !0, t === "fixed"), o = n.top + e.clientTop, l = n.left + e.clientLeft, r = he(e) ? Fe(e) : me(1), i = e.clientWidth * r.x, s = e.clientHeight * r.y, c = l * r.x, a = o * r.y;
739
+ return {
740
+ width: i,
741
+ height: s,
742
+ x: c,
743
+ y: a
744
+ };
745
+ }
746
+ function nn(e, t, n) {
747
+ let o;
748
+ if (t === "viewport")
749
+ o = uo(e, n);
750
+ else if (t === "document")
751
+ o = ao(ye(e));
752
+ else if (ue(t))
753
+ o = fo(t, n);
754
+ else {
755
+ const l = _n(e);
756
+ o = {
757
+ x: t.x - l.x,
758
+ y: t.y - l.y,
759
+ width: t.width,
760
+ height: t.height
761
+ };
762
+ }
763
+ return bt(o);
764
+ }
765
+ function Sn(e, t) {
766
+ const n = be(e);
767
+ return n === t || !ue(n) || Ve(n) ? !1 : fe(n).position === "fixed" || Sn(n, t);
768
+ }
769
+ function po(e, t) {
770
+ const n = t.get(e);
771
+ if (n)
772
+ return n;
773
+ let o = it(e, [], !1).filter((s) => ue(s) && qe(s) !== "body"), l = null;
774
+ const r = fe(e).position === "fixed";
775
+ let i = r ? be(e) : e;
776
+ for (; ue(i) && !Ve(i); ) {
777
+ const s = fe(i), c = qt(i);
778
+ !c && s.position === "fixed" && (l = null), (r ? !c && !l : !c && s.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || at(i) && !c && Sn(e, i)) ? o = o.filter((p) => p !== i) : l = s, i = be(i);
779
+ }
780
+ return t.set(e, o), o;
781
+ }
782
+ function mo(e) {
783
+ let {
784
+ element: t,
785
+ boundary: n,
786
+ rootBoundary: o,
787
+ strategy: l
788
+ } = e;
789
+ const i = [...n === "clippingAncestors" ? St(t) ? [] : po(t, this._c) : [].concat(n), o], s = i[0], c = i.reduce((a, p) => {
790
+ const d = nn(t, p, l);
791
+ return a.top = Oe(d.top, a.top), a.right = Ie(d.right, a.right), a.bottom = Ie(d.bottom, a.bottom), a.left = Oe(d.left, a.left), a;
792
+ }, nn(t, s, l));
793
+ return {
794
+ width: c.right - c.left,
795
+ height: c.bottom - c.top,
796
+ x: c.left,
797
+ y: c.top
798
+ };
799
+ }
800
+ function ho(e) {
801
+ const {
802
+ width: t,
803
+ height: n
804
+ } = bn(e);
805
+ return {
806
+ width: t,
807
+ height: n
808
+ };
809
+ }
810
+ function yo(e, t, n) {
811
+ const o = he(t), l = ye(t), r = n === "fixed", i = Ce(e, !0, r, t);
812
+ let s = {
813
+ scrollLeft: 0,
814
+ scrollTop: 0
815
+ };
816
+ const c = me(0);
817
+ if (o || !o && !r)
818
+ if ((qe(t) !== "body" || at(l)) && (s = Et(t)), o) {
819
+ const h = Ce(t, !0, r, t);
820
+ c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
821
+ } else l && (c.x = Xt(l));
822
+ const a = l && !o && !r ? An(l, s) : me(0), p = i.left + s.scrollLeft - c.x - a.x, d = i.top + s.scrollTop - c.y - a.y;
823
+ return {
824
+ x: p,
825
+ y: d,
826
+ width: i.width,
827
+ height: i.height
828
+ };
829
+ }
830
+ function Lt(e) {
831
+ return fe(e).position === "static";
832
+ }
833
+ function on(e, t) {
834
+ if (!he(e) || fe(e).position === "fixed")
835
+ return null;
836
+ if (t)
837
+ return t(e);
838
+ let n = e.offsetParent;
839
+ return ye(e) === n && (n = n.ownerDocument.body), n;
840
+ }
841
+ function En(e, t) {
842
+ const n = oe(e);
843
+ if (St(e))
844
+ return n;
845
+ if (!he(e)) {
846
+ let l = be(e);
847
+ for (; l && !Ve(l); ) {
848
+ if (ue(l) && !Lt(l))
849
+ return l;
850
+ l = be(l);
851
+ }
852
+ return n;
853
+ }
854
+ let o = on(e, t);
855
+ for (; o && oo(o) && Lt(o); )
856
+ o = on(o, t);
857
+ return o && Ve(o) && Lt(o) && !qt(o) ? n : o || ro(e) || n;
858
+ }
859
+ const go = async function(e) {
860
+ const t = this.getOffsetParent || En, n = this.getDimensions, o = await n(e.floating);
861
+ return {
862
+ reference: yo(e.reference, await t(e.floating), e.strategy),
863
+ floating: {
864
+ x: 0,
865
+ y: 0,
866
+ width: o.width,
867
+ height: o.height
868
+ }
869
+ };
870
+ };
871
+ function wo(e) {
872
+ return fe(e).direction === "rtl";
873
+ }
874
+ const vo = {
875
+ convertOffsetParentRelativeRectToViewportRelativeRect: so,
876
+ getDocumentElement: ye,
877
+ getClippingRect: mo,
878
+ getOffsetParent: En,
879
+ getElementRects: go,
880
+ getClientRects: co,
881
+ getDimensions: ho,
882
+ getScale: Fe,
883
+ isElement: ue,
884
+ isRTL: wo
885
+ };
886
+ function Rn(e, t) {
887
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
888
+ }
889
+ function xo(e, t) {
890
+ let n = null, o;
891
+ const l = ye(e);
892
+ function r() {
893
+ var s;
894
+ clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
895
+ }
896
+ function i(s, c) {
897
+ s === void 0 && (s = !1), c === void 0 && (c = 1), r();
898
+ const a = e.getBoundingClientRect(), {
899
+ left: p,
900
+ top: d,
901
+ width: h,
902
+ height: u
903
+ } = a;
904
+ if (s || t(), !h || !u)
905
+ return;
906
+ const m = gt(d), g = gt(l.clientWidth - (p + h)), x = gt(l.clientHeight - (d + u)), w = gt(p), _ = {
907
+ rootMargin: -m + "px " + -g + "px " + -x + "px " + -w + "px",
908
+ threshold: Oe(0, Ie(1, c)) || 1
909
+ };
910
+ let A = !0;
911
+ function E($) {
912
+ const T = $[0].intersectionRatio;
913
+ if (T !== c) {
914
+ if (!A)
915
+ return i();
916
+ T ? i(!1, T) : o = setTimeout(() => {
917
+ i(!1, 1e-7);
918
+ }, 1e3);
919
+ }
920
+ T === 1 && !Rn(a, e.getBoundingClientRect()) && i(), A = !1;
921
+ }
922
+ try {
923
+ n = new IntersectionObserver(E, {
924
+ ..._,
925
+ // Handle <iframe>s
926
+ root: l.ownerDocument
927
+ });
928
+ } catch {
929
+ n = new IntersectionObserver(E, _);
930
+ }
931
+ n.observe(e);
932
+ }
933
+ return i(!0), r;
934
+ }
935
+ function bo(e, t, n, o) {
936
+ o === void 0 && (o = {});
937
+ const {
938
+ ancestorScroll: l = !0,
939
+ ancestorResize: r = !0,
940
+ elementResize: i = typeof ResizeObserver == "function",
941
+ layoutShift: s = typeof IntersectionObserver == "function",
942
+ animationFrame: c = !1
943
+ } = o, a = Kt(e), p = l || r ? [...a ? it(a) : [], ...it(t)] : [];
944
+ p.forEach((w) => {
945
+ l && w.addEventListener("scroll", n, {
946
+ passive: !0
947
+ }), r && w.addEventListener("resize", n);
948
+ });
949
+ const d = a && s ? xo(a, n) : null;
950
+ let h = -1, u = null;
951
+ i && (u = new ResizeObserver((w) => {
952
+ let [S] = w;
953
+ S && S.target === a && u && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
954
+ var _;
955
+ (_ = u) == null || _.observe(t);
956
+ })), n();
957
+ }), a && !c && u.observe(a), u.observe(t));
958
+ let m, g = c ? Ce(e) : null;
959
+ c && x();
960
+ function x() {
961
+ const w = Ce(e);
962
+ g && !Rn(g, w) && n(), g = w, m = requestAnimationFrame(x);
963
+ }
964
+ return n(), () => {
965
+ var w;
966
+ p.forEach((S) => {
967
+ l && S.removeEventListener("scroll", n), r && S.removeEventListener("resize", n);
968
+ }), d == null || d(), (w = u) == null || w.disconnect(), u = null, c && cancelAnimationFrame(m);
969
+ };
970
+ }
971
+ const On = to, _o = no, Tn = Gn, Ao = Zn, Wt = (e, t, n) => {
972
+ const o = /* @__PURE__ */ new Map(), l = {
973
+ platform: vo,
974
+ ...n
975
+ }, r = {
976
+ ...l.platform,
977
+ _c: o
978
+ };
979
+ return Qn(e, t, {
980
+ ...l,
981
+ platform: r
982
+ });
983
+ };
984
+ var wt = typeof document < "u" ? mn : L;
985
+ function _t(e, t) {
986
+ if (e === t)
987
+ return !0;
988
+ if (typeof e != typeof t)
989
+ return !1;
990
+ if (typeof e == "function" && e.toString() === t.toString())
991
+ return !0;
992
+ let n, o, l;
993
+ if (e && t && typeof e == "object") {
994
+ if (Array.isArray(e)) {
995
+ if (n = e.length, n !== t.length) return !1;
996
+ for (o = n; o-- !== 0; )
997
+ if (!_t(e[o], t[o]))
998
+ return !1;
999
+ return !0;
1000
+ }
1001
+ if (l = Object.keys(e), n = l.length, n !== Object.keys(t).length)
1002
+ return !1;
1003
+ for (o = n; o-- !== 0; )
1004
+ if (!{}.hasOwnProperty.call(t, l[o]))
1005
+ return !1;
1006
+ for (o = n; o-- !== 0; ) {
1007
+ const r = l[o];
1008
+ if (!(r === "_owner" && e.$$typeof) && !_t(e[r], t[r]))
1009
+ return !1;
1010
+ }
1011
+ return !0;
1012
+ }
1013
+ return e !== e && t !== t;
1014
+ }
1015
+ function Cn(e) {
1016
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1017
+ }
1018
+ function rn(e, t) {
1019
+ const n = Cn(e);
1020
+ return Math.round(t * n) / n;
1021
+ }
1022
+ function Dt(e) {
1023
+ const t = U.useRef(e);
1024
+ return wt(() => {
1025
+ t.current = e;
1026
+ }), t;
1027
+ }
1028
+ function Qo(e) {
1029
+ e === void 0 && (e = {});
1030
+ const {
1031
+ placement: t = "bottom",
1032
+ strategy: n = "absolute",
1033
+ middleware: o = [],
1034
+ platform: l,
1035
+ elements: {
1036
+ reference: r,
1037
+ floating: i
1038
+ } = {},
1039
+ transform: s = !0,
1040
+ whileElementsMounted: c,
1041
+ open: a
1042
+ } = e, [p, d] = U.useState({
1043
+ x: 0,
1044
+ y: 0,
1045
+ strategy: n,
1046
+ placement: t,
1047
+ middlewareData: {},
1048
+ isPositioned: !1
1049
+ }), [h, u] = U.useState(o);
1050
+ _t(h, o) || u(o);
1051
+ const [m, g] = U.useState(null), [x, w] = U.useState(null), S = U.useCallback((R) => {
1052
+ R !== $.current && ($.current = R, g(R));
1053
+ }, []), _ = U.useCallback((R) => {
1054
+ R !== T.current && (T.current = R, w(R));
1055
+ }, []), A = r || m, E = i || x, $ = U.useRef(null), T = U.useRef(null), V = U.useRef(p), J = c != null, q = Dt(c), ee = Dt(l), Q = Dt(a), H = U.useCallback(() => {
1056
+ if (!$.current || !T.current)
1057
+ return;
1058
+ const R = {
1059
+ placement: t,
1060
+ strategy: n,
1061
+ middleware: h
1062
+ };
1063
+ ee.current && (R.platform = ee.current), Wt($.current, T.current, R).then((B) => {
1064
+ const X = {
1065
+ ...B,
1066
+ // The floating element's position may be recomputed while it's closed
1067
+ // but still mounted (such as when transitioning out). To ensure
1068
+ // `isPositioned` will be `false` initially on the next open, avoid
1069
+ // setting it to `true` when `open === false` (must be specified).
1070
+ isPositioned: Q.current !== !1
1071
+ };
1072
+ C.current && !_t(V.current, X) && (V.current = X, jn.flushSync(() => {
1073
+ d(X);
1074
+ }));
1075
+ });
1076
+ }, [h, t, n, ee, Q]);
1077
+ wt(() => {
1078
+ a === !1 && V.current.isPositioned && (V.current.isPositioned = !1, d((R) => ({
1079
+ ...R,
1080
+ isPositioned: !1
1081
+ })));
1082
+ }, [a]);
1083
+ const C = U.useRef(!1);
1084
+ wt(() => (C.current = !0, () => {
1085
+ C.current = !1;
1086
+ }), []), wt(() => {
1087
+ if (A && ($.current = A), E && (T.current = E), A && E) {
1088
+ if (q.current)
1089
+ return q.current(A, E, H);
1090
+ H();
1091
+ }
1092
+ }, [A, E, H, q, J]);
1093
+ const K = U.useMemo(() => ({
1094
+ reference: $,
1095
+ floating: T,
1096
+ setReference: S,
1097
+ setFloating: _
1098
+ }), [S, _]), N = U.useMemo(() => ({
1099
+ reference: A,
1100
+ floating: E
1101
+ }), [A, E]), P = U.useMemo(() => {
1102
+ const R = {
1103
+ position: n,
1104
+ left: 0,
1105
+ top: 0
1106
+ };
1107
+ if (!N.floating)
1108
+ return R;
1109
+ const B = rn(N.floating, p.x), X = rn(N.floating, p.y);
1110
+ return s ? {
1111
+ ...R,
1112
+ transform: "translate(" + B + "px, " + X + "px)",
1113
+ ...Cn(N.floating) >= 1.5 && {
1114
+ willChange: "transform"
1115
+ }
1116
+ } : {
1117
+ position: n,
1118
+ left: B,
1119
+ top: X
1120
+ };
1121
+ }, [n, s, N.floating, p.x, p.y]);
1122
+ return U.useMemo(() => ({
1123
+ ...p,
1124
+ update: H,
1125
+ refs: K,
1126
+ elements: N,
1127
+ floatingStyles: P
1128
+ }), [p, H, K, N, P]);
1129
+ }
1130
+ const So = (e, t) => ({
1131
+ ...On(e),
1132
+ options: [e, t]
1133
+ }), Eo = (e, t) => ({
1134
+ ...Tn(e),
1135
+ options: [e, t]
1136
+ });
1137
+ var Nt = { exports: {} };
1138
+ /*!
1139
+ Copyright (c) 2018 Jed Watson.
1140
+ Licensed under the MIT License (MIT), see
1141
+ http://jedwatson.github.io/classnames
1142
+ */
1143
+ var ln;
1144
+ function Ro() {
1145
+ return ln || (ln = 1, function(e) {
1146
+ (function() {
1147
+ var t = {}.hasOwnProperty;
1148
+ function n() {
1149
+ for (var r = "", i = 0; i < arguments.length; i++) {
1150
+ var s = arguments[i];
1151
+ s && (r = l(r, o(s)));
1152
+ }
1153
+ return r;
1154
+ }
1155
+ function o(r) {
1156
+ if (typeof r == "string" || typeof r == "number")
1157
+ return r;
1158
+ if (typeof r != "object")
1159
+ return "";
1160
+ if (Array.isArray(r))
1161
+ return n.apply(null, r);
1162
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1163
+ return r.toString();
1164
+ var i = "";
1165
+ for (var s in r)
1166
+ t.call(r, s) && r[s] && (i = l(i, s));
1167
+ return i;
1168
+ }
1169
+ function l(r, i) {
1170
+ return i ? r ? r + " " + i : r + i : r;
1171
+ }
1172
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1173
+ })();
1174
+ }(Nt)), Nt.exports;
1175
+ }
1176
+ var Oo = Ro();
1177
+ const Ft = /* @__PURE__ */ Fn(Oo);
1178
+ /*
1179
+ * React Tooltip
1180
+ * {@link https://github.com/ReactTooltip/react-tooltip}
1181
+ * @copyright ReactTooltip Team
1182
+ * @license MIT
1183
+ */
1184
+ const To = "react-tooltip-core-styles", Co = "react-tooltip-base-styles", sn = { core: !1, base: !1 };
1185
+ function cn({ css: e, id: t = Co, type: n = "base", ref: o }) {
1186
+ var l, r;
1187
+ if (!e || typeof document > "u" || sn[n] || n === "core" && typeof process < "u" && (!((l = process == null ? void 0 : process.env) === null || l === void 0) && l.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((r = process == null ? void 0 : process.env) === null || r === void 0) && r.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
1188
+ n === "core" && (t = To), o || (o = {});
1189
+ const { insertAt: i } = o;
1190
+ if (document.getElementById(t)) return;
1191
+ const s = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
1192
+ c.id = t, c.type = "text/css", i === "top" && s.firstChild ? s.insertBefore(c, s.firstChild) : s.appendChild(c), c.styleSheet ? c.styleSheet.cssText = e : c.appendChild(document.createTextNode(e)), sn[n] = !0;
1193
+ }
1194
+ const an = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: o = "top", offset: l = 10, strategy: r = "absolute", middlewares: i = [On(Number(l)), Tn({ fallbackAxisSideDirection: "start" }), _o({ padding: 5 })], border: s }) => {
1195
+ if (!e) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
1196
+ if (t === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
1197
+ const c = i;
1198
+ return n ? (c.push(Ao({ element: n, padding: 5 })), Wt(e, t, { placement: o, strategy: r, middleware: c }).then(({ x: a, y: p, placement: d, middlewareData: h }) => {
1199
+ var u, m;
1200
+ const g = { left: `${a}px`, top: `${p}px`, border: s }, { x, y: w } = (u = h.arrow) !== null && u !== void 0 ? u : { x: 0, y: 0 }, S = (m = { top: "bottom", right: "left", bottom: "top", left: "right" }[d.split("-")[0]]) !== null && m !== void 0 ? m : "bottom", _ = s && { borderBottom: s, borderRight: s };
1201
+ let A = 0;
1202
+ if (s) {
1203
+ const E = `${s}`.match(/(\d+)px/);
1204
+ A = E != null && E[1] ? Number(E[1]) : 1;
1205
+ }
1206
+ return { tooltipStyles: g, tooltipArrowStyles: { left: x != null ? `${x}px` : "", top: w != null ? `${w}px` : "", right: "", bottom: "", ..._, [S]: `-${4 + A}px` }, place: d };
1207
+ })) : Wt(e, t, { placement: "bottom", strategy: r, middleware: c }).then(({ x: a, y: p, placement: d }) => ({ tooltipStyles: { left: `${a}px`, top: `${p}px` }, tooltipArrowStyles: {}, place: d }));
1208
+ }, un = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t), fn = (e, t, n) => {
1209
+ let o = null;
1210
+ const l = function(...r) {
1211
+ const i = () => {
1212
+ o = null;
1213
+ };
1214
+ !o && (e.apply(this, r), o = setTimeout(i, t));
1215
+ };
1216
+ return l.cancel = () => {
1217
+ o && (clearTimeout(o), o = null);
1218
+ }, l;
1219
+ }, dn = (e) => e !== null && !Array.isArray(e) && typeof e == "object", It = (e, t) => {
1220
+ if (e === t) return !0;
1221
+ if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every((l, r) => It(l, t[r]));
1222
+ if (Array.isArray(e) !== Array.isArray(t)) return !1;
1223
+ if (!dn(e) || !dn(t)) return e === t;
1224
+ const n = Object.keys(e), o = Object.keys(t);
1225
+ return n.length === o.length && n.every((l) => It(e[l], t[l]));
1226
+ }, ko = (e) => {
1227
+ if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
1228
+ const t = getComputedStyle(e);
1229
+ return ["overflow", "overflow-x", "overflow-y"].some((n) => {
1230
+ const o = t.getPropertyValue(n);
1231
+ return o === "auto" || o === "scroll";
1232
+ });
1233
+ }, pn = (e) => {
1234
+ if (!e) return null;
1235
+ let t = e.parentElement;
1236
+ for (; t; ) {
1237
+ if (ko(t)) return t;
1238
+ t = t.parentElement;
1239
+ }
1240
+ return document.scrollingElement || document.documentElement;
1241
+ }, Lo = typeof window < "u" ? mn : L, ie = (e) => {
1242
+ e.current && (clearTimeout(e.current), e.current = null);
1243
+ }, Do = "DEFAULT_TOOLTIP_ID", No = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
1244
+ }, detach: () => {
1245
+ }, setActiveAnchor: () => {
1246
+ } }, Mo = Nn({ getTooltipData: () => No });
1247
+ function kn(e = Do) {
1248
+ return Mn(Mo).getTooltipData(e);
1249
+ }
1250
+ var We = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Mt = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
1251
+ const $o = ({ forwardRef: e, id: t, className: n, classNameArrow: o, variant: l = "dark", anchorId: r, anchorSelect: i, place: s = "top", offset: c = 10, events: a = ["hover"], openOnClick: p = !1, positionStrategy: d = "absolute", middlewares: h, wrapper: u, delayShow: m = 0, delayHide: g = 0, float: x = !1, hidden: w = !1, noArrow: S = !1, clickable: _ = !1, closeOnEsc: A = !1, closeOnScroll: E = !1, closeOnResize: $ = !1, openEvents: T, closeEvents: V, globalCloseEvents: J, imperativeModeOnly: q, style: ee, position: Q, afterShow: H, afterHide: C, disableTooltip: K, content: N, contentWrapperRef: P, isOpen: R, defaultIsOpen: B = !1, setIsOpen: X, activeAnchor: F, setActiveAnchor: ke, border: ut, opacity: ft, arrowColor: dt, role: Rt = "tooltip" }) => {
1252
+ var He;
1253
+ const Z = se(null), Le = se(null), ce = se(null), we = se(null), Ke = se(null), [ve, Ot] = W({ tooltipStyles: {}, tooltipArrowStyles: {}, place: s }), [te, pt] = W(!1), [_e, Ae] = W(!1), [M, Xe] = W(null), Ye = se(!1), Ue = se(null), { anchorRefs: Je, setActiveAnchor: mt } = kn(t), De = se(!1), [xe, Qe] = W([]), Se = se(!1), Ne = p || a.includes("click"), Ze = Ne || (T == null ? void 0 : T.click) || (T == null ? void 0 : T.dblclick) || (T == null ? void 0 : T.mousedown), Me = T ? { ...T } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
1254
+ !T && Ne && Object.assign(Me, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
1255
+ const Ge = V ? { ...V } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
1256
+ !V && Ne && Object.assign(Ge, { mouseleave: !1, blur: !1, mouseout: !1 });
1257
+ const ae = J ? { ...J } : { escape: A || !1, scroll: E || !1, resize: $ || !1, clickOutsideAnchor: Ze || !1 };
1258
+ q && (Object.assign(Me, { mouseenter: !1, focus: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(Ge, { mouseleave: !1, blur: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(ae, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), Lo(() => (Se.current = !0, () => {
1259
+ Se.current = !1;
1260
+ }), []);
1261
+ const j = (f) => {
1262
+ Se.current && (f && Ae(!0), setTimeout(() => {
1263
+ Se.current && (X == null || X(f), R === void 0 && pt(f));
1264
+ }, 10));
1265
+ };
1266
+ L(() => {
1267
+ if (R === void 0) return () => null;
1268
+ R && Ae(!0);
1269
+ const f = setTimeout(() => {
1270
+ pt(R);
1271
+ }, 10);
1272
+ return () => {
1273
+ clearTimeout(f);
1274
+ };
1275
+ }, [R]), L(() => {
1276
+ if (te !== Ye.current) if (ie(Ke), Ye.current = te, te) H == null || H();
1277
+ else {
1278
+ const f = ((v) => {
1279
+ const b = v.match(/^([\d.]+)(ms|s)$/);
1280
+ if (!b) return 0;
1281
+ const [, I, Y] = b;
1282
+ return Number(I) * (Y === "ms" ? 1 : 1e3);
1283
+ })(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
1284
+ Ke.current = setTimeout(() => {
1285
+ Ae(!1), Xe(null), C == null || C();
1286
+ }, f + 25);
1287
+ }
1288
+ }, [te]);
1289
+ const ht = (f) => {
1290
+ Ot((v) => It(v, f) ? v : f);
1291
+ }, et = (f = m) => {
1292
+ ie(ce), _e ? j(!0) : ce.current = setTimeout(() => {
1293
+ j(!0);
1294
+ }, f);
1295
+ }, $e = (f = g) => {
1296
+ ie(we), we.current = setTimeout(() => {
1297
+ De.current || j(!1);
1298
+ }, f);
1299
+ }, tt = (f) => {
1300
+ var v;
1301
+ if (!f) return;
1302
+ const b = (v = f.currentTarget) !== null && v !== void 0 ? v : f.target;
1303
+ if (!(b != null && b.isConnected)) return ke(null), void mt({ current: null });
1304
+ m ? et() : j(!0), ke(b), mt({ current: b }), ie(we);
1305
+ }, Pe = () => {
1306
+ _ ? $e(g || 100) : g ? $e() : j(!1), ie(ce);
1307
+ }, Be = ({ x: f, y: v }) => {
1308
+ var b;
1309
+ const I = { getBoundingClientRect: () => ({ x: f, y: v, width: 0, height: 0, top: v, left: f, right: f, bottom: v }) };
1310
+ an({ place: (b = M == null ? void 0 : M.place) !== null && b !== void 0 ? b : s, offset: c, elementReference: I, tooltipReference: Z.current, tooltipArrowReference: Le.current, strategy: d, middlewares: h, border: ut }).then((Y) => {
1311
+ ht(Y);
1312
+ });
1313
+ }, je = (f) => {
1314
+ if (!f) return;
1315
+ const v = f, b = { x: v.clientX, y: v.clientY };
1316
+ Be(b), Ue.current = b;
1317
+ }, nt = (f) => {
1318
+ var v;
1319
+ if (!te) return;
1320
+ const b = f.target;
1321
+ b.isConnected && (!((v = Z.current) === null || v === void 0) && v.contains(b) || [document.querySelector(`[id='${r}']`), ...xe].some((I) => I == null ? void 0 : I.contains(b)) || (j(!1), ie(ce)));
1322
+ }, yt = fn(tt, 50), z = fn(Pe, 50), re = (f) => {
1323
+ z.cancel(), yt(f);
1324
+ }, y = () => {
1325
+ yt.cancel(), z();
1326
+ }, O = $t(() => {
1327
+ var f, v;
1328
+ const b = (f = M == null ? void 0 : M.position) !== null && f !== void 0 ? f : Q;
1329
+ b ? Be(b) : x ? Ue.current && Be(Ue.current) : F != null && F.isConnected && an({ place: (v = M == null ? void 0 : M.place) !== null && v !== void 0 ? v : s, offset: c, elementReference: F, tooltipReference: Z.current, tooltipArrowReference: Le.current, strategy: d, middlewares: h, border: ut }).then((I) => {
1330
+ Se.current && ht(I);
1331
+ });
1332
+ }, [te, F, N, ee, s, M == null ? void 0 : M.place, c, d, Q, M == null ? void 0 : M.position, x]);
1333
+ L(() => {
1334
+ var f, v;
1335
+ const b = new Set(Je);
1336
+ xe.forEach((k) => {
1337
+ K != null && K(k) || b.add({ current: k });
1338
+ });
1339
+ const I = document.querySelector(`[id='${r}']`);
1340
+ I && !(K != null && K(I)) && b.add({ current: I });
1341
+ const Y = () => {
1342
+ j(!1);
1343
+ }, de = pn(F), pe = pn(Z.current);
1344
+ ae.scroll && (window.addEventListener("scroll", Y), de == null || de.addEventListener("scroll", Y), pe == null || pe.addEventListener("scroll", Y));
1345
+ let G = null;
1346
+ ae.resize ? window.addEventListener("resize", Y) : F && Z.current && (G = bo(F, Z.current, O, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
1347
+ const le = (k) => {
1348
+ k.key === "Escape" && j(!1);
1349
+ };
1350
+ ae.escape && window.addEventListener("keydown", le), ae.clickOutsideAnchor && window.addEventListener("click", nt);
1351
+ const D = [], ot = (k) => {
1352
+ te && (k == null ? void 0 : k.target) === F || tt(k);
1353
+ }, Ln = (k) => {
1354
+ te && (k == null ? void 0 : k.target) === F && Pe();
1355
+ }, Yt = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], Ut = ["click", "dblclick", "mousedown", "mouseup"];
1356
+ Object.entries(Me).forEach(([k, ge]) => {
1357
+ ge && (Yt.includes(k) ? D.push({ event: k, listener: re }) : Ut.includes(k) && D.push({ event: k, listener: ot }));
1358
+ }), Object.entries(Ge).forEach(([k, ge]) => {
1359
+ ge && (Yt.includes(k) ? D.push({ event: k, listener: y }) : Ut.includes(k) && D.push({ event: k, listener: Ln }));
1360
+ }), x && D.push({ event: "pointermove", listener: je });
1361
+ const Jt = () => {
1362
+ De.current = !0;
1363
+ }, Qt = () => {
1364
+ De.current = !1, Pe();
1365
+ };
1366
+ return _ && !Ze && ((f = Z.current) === null || f === void 0 || f.addEventListener("mouseenter", Jt), (v = Z.current) === null || v === void 0 || v.addEventListener("mouseleave", Qt)), D.forEach(({ event: k, listener: ge }) => {
1367
+ b.forEach((Tt) => {
1368
+ var rt;
1369
+ (rt = Tt.current) === null || rt === void 0 || rt.addEventListener(k, ge);
1370
+ });
1371
+ }), () => {
1372
+ var k, ge;
1373
+ ae.scroll && (window.removeEventListener("scroll", Y), de == null || de.removeEventListener("scroll", Y), pe == null || pe.removeEventListener("scroll", Y)), ae.resize ? window.removeEventListener("resize", Y) : G == null || G(), ae.clickOutsideAnchor && window.removeEventListener("click", nt), ae.escape && window.removeEventListener("keydown", le), _ && !Ze && ((k = Z.current) === null || k === void 0 || k.removeEventListener("mouseenter", Jt), (ge = Z.current) === null || ge === void 0 || ge.removeEventListener("mouseleave", Qt)), D.forEach(({ event: Tt, listener: rt }) => {
1374
+ b.forEach((Dn) => {
1375
+ var Ct;
1376
+ (Ct = Dn.current) === null || Ct === void 0 || Ct.removeEventListener(Tt, rt);
1377
+ });
1378
+ });
1379
+ };
1380
+ }, [F, O, _e, Je, xe, T, V, J, Ne, m, g]), L(() => {
1381
+ var f, v;
1382
+ let b = (v = (f = M == null ? void 0 : M.anchorSelect) !== null && f !== void 0 ? f : i) !== null && v !== void 0 ? v : "";
1383
+ !b && t && (b = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
1384
+ const I = new MutationObserver((Y) => {
1385
+ const de = [], pe = [];
1386
+ Y.forEach((G) => {
1387
+ if (G.type === "attributes" && G.attributeName === "data-tooltip-id" && (G.target.getAttribute("data-tooltip-id") === t ? de.push(G.target) : G.oldValue === t && pe.push(G.target)), G.type === "childList") {
1388
+ if (F) {
1389
+ const le = [...G.removedNodes].filter((D) => D.nodeType === 1);
1390
+ if (b) try {
1391
+ pe.push(...le.filter((D) => D.matches(b))), pe.push(...le.flatMap((D) => [...D.querySelectorAll(b)]));
1392
+ } catch {
1393
+ }
1394
+ le.some((D) => {
1395
+ var ot;
1396
+ return !!(!((ot = D == null ? void 0 : D.contains) === null || ot === void 0) && ot.call(D, F)) && (Ae(!1), j(!1), ke(null), ie(ce), ie(we), !0);
1397
+ });
1398
+ }
1399
+ if (b) try {
1400
+ const le = [...G.addedNodes].filter((D) => D.nodeType === 1);
1401
+ de.push(...le.filter((D) => D.matches(b))), de.push(...le.flatMap((D) => [...D.querySelectorAll(b)]));
1402
+ } catch {
1403
+ }
1404
+ }
1405
+ }), (de.length || pe.length) && Qe((G) => [...G.filter((le) => !pe.includes(le)), ...de]);
1406
+ });
1407
+ return I.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
1408
+ I.disconnect();
1409
+ };
1410
+ }, [t, i, M == null ? void 0 : M.anchorSelect, F]), L(() => {
1411
+ O();
1412
+ }, [O]), L(() => {
1413
+ if (!(P != null && P.current)) return () => null;
1414
+ const f = new ResizeObserver(() => {
1415
+ setTimeout(() => O());
1416
+ });
1417
+ return f.observe(P.current), () => {
1418
+ f.disconnect();
1419
+ };
1420
+ }, [N, P == null ? void 0 : P.current]), L(() => {
1421
+ var f;
1422
+ const v = document.querySelector(`[id='${r}']`), b = [...xe, v];
1423
+ F && b.includes(F) || ke((f = xe[0]) !== null && f !== void 0 ? f : v);
1424
+ }, [r, xe, F]), L(() => (B && j(!0), () => {
1425
+ ie(ce), ie(we);
1426
+ }), []), L(() => {
1427
+ var f;
1428
+ let v = (f = M == null ? void 0 : M.anchorSelect) !== null && f !== void 0 ? f : i;
1429
+ if (!v && t && (v = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), v) try {
1430
+ const b = Array.from(document.querySelectorAll(v));
1431
+ Qe(b);
1432
+ } catch {
1433
+ Qe([]);
1434
+ }
1435
+ }, [t, i, M == null ? void 0 : M.anchorSelect]), L(() => {
1436
+ ce.current && (ie(ce), et(m));
1437
+ }, [m]);
1438
+ const ne = (He = M == null ? void 0 : M.content) !== null && He !== void 0 ? He : N, Ee = te && Object.keys(ve.tooltipStyles).length > 0;
1439
+ return $n(e, () => ({ open: (f) => {
1440
+ if (f != null && f.anchorSelect) try {
1441
+ document.querySelector(f.anchorSelect);
1442
+ } catch {
1443
+ return void console.warn(`[react-tooltip] "${f.anchorSelect}" is not a valid CSS selector`);
1444
+ }
1445
+ Xe(f ?? null), f != null && f.delay ? et(f.delay) : j(!0);
1446
+ }, close: (f) => {
1447
+ f != null && f.delay ? $e(f.delay) : j(!1);
1448
+ }, activeAnchor: F, place: ve.place, isOpen: !!(_e && !w && ne && Ee) })), _e && !w && ne ? Re.createElement(u, { id: t, role: Rt, className: Ft("react-tooltip", We.tooltip, Mt.tooltip, Mt[l], n, `react-tooltip__place-${ve.place}`, We[Ee ? "show" : "closing"], Ee ? "react-tooltip__show" : "react-tooltip__closing", d === "fixed" && We.fixed, _ && We.clickable), onTransitionEnd: (f) => {
1449
+ ie(Ke), te || f.propertyName !== "opacity" || (Ae(!1), Xe(null), C == null || C());
1450
+ }, style: { ...ee, ...ve.tooltipStyles, opacity: ft !== void 0 && Ee ? ft : void 0 }, ref: Z }, ne, Re.createElement(u, { className: Ft("react-tooltip-arrow", We.arrow, Mt.arrow, o, S && We.noArrow), style: { ...ve.tooltipArrowStyles, background: dt ? `linear-gradient(to right bottom, transparent 50%, ${dt} 50%)` : void 0 }, ref: Le })) : null;
1451
+ }, Po = ({ content: e }) => Re.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), Bo = Re.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: o, html: l, render: r, className: i, classNameArrow: s, variant: c = "dark", place: a = "top", offset: p = 10, wrapper: d = "div", children: h = null, events: u = ["hover"], openOnClick: m = !1, positionStrategy: g = "absolute", middlewares: x, delayShow: w = 0, delayHide: S = 0, float: _ = !1, hidden: A = !1, noArrow: E = !1, clickable: $ = !1, closeOnEsc: T = !1, closeOnScroll: V = !1, closeOnResize: J = !1, openEvents: q, closeEvents: ee, globalCloseEvents: Q, imperativeModeOnly: H = !1, style: C, position: K, isOpen: N, defaultIsOpen: P = !1, disableStyleInjection: R = !1, border: B, opacity: X, arrowColor: F, setIsOpen: ke, afterShow: ut, afterHide: ft, disableTooltip: dt, role: Rt = "tooltip" }, He) => {
1452
+ const [Z, Le] = W(o), [ce, we] = W(l), [Ke, ve] = W(a), [Ot, te] = W(c), [pt, _e] = W(p), [Ae, M] = W(w), [Xe, Ye] = W(S), [Ue, Je] = W(_), [mt, De] = W(A), [xe, Qe] = W(d), [Se, Ne] = W(u), [Ze, Me] = W(g), [Ge, ae] = W(null), [j, ht] = W(null), et = se(R), { anchorRefs: $e, activeAnchor: tt } = kn(e), Pe = (z) => z == null ? void 0 : z.getAttributeNames().reduce((re, y) => {
1453
+ var O;
1454
+ return y.startsWith("data-tooltip-") && (re[y.replace(/^data-tooltip-/, "")] = (O = z == null ? void 0 : z.getAttribute(y)) !== null && O !== void 0 ? O : null), re;
1455
+ }, {}), Be = (z) => {
1456
+ const re = { place: (y) => {
1457
+ var O;
1458
+ ve((O = y) !== null && O !== void 0 ? O : a);
1459
+ }, content: (y) => {
1460
+ Le(y ?? o);
1461
+ }, html: (y) => {
1462
+ we(y ?? l);
1463
+ }, variant: (y) => {
1464
+ var O;
1465
+ te((O = y) !== null && O !== void 0 ? O : c);
1466
+ }, offset: (y) => {
1467
+ _e(y === null ? p : Number(y));
1468
+ }, wrapper: (y) => {
1469
+ var O;
1470
+ Qe((O = y) !== null && O !== void 0 ? O : d);
1471
+ }, events: (y) => {
1472
+ const O = y == null ? void 0 : y.split(" ");
1473
+ Ne(O ?? u);
1474
+ }, "position-strategy": (y) => {
1475
+ var O;
1476
+ Me((O = y) !== null && O !== void 0 ? O : g);
1477
+ }, "delay-show": (y) => {
1478
+ M(y === null ? w : Number(y));
1479
+ }, "delay-hide": (y) => {
1480
+ Ye(y === null ? S : Number(y));
1481
+ }, float: (y) => {
1482
+ Je(y === null ? _ : y === "true");
1483
+ }, hidden: (y) => {
1484
+ De(y === null ? A : y === "true");
1485
+ }, "class-name": (y) => {
1486
+ ae(y);
1487
+ } };
1488
+ Object.values(re).forEach((y) => y(null)), Object.entries(z).forEach(([y, O]) => {
1489
+ var ne;
1490
+ (ne = re[y]) === null || ne === void 0 || ne.call(re, O);
1491
+ });
1492
+ };
1493
+ L(() => {
1494
+ Le(o);
1495
+ }, [o]), L(() => {
1496
+ we(l);
1497
+ }, [l]), L(() => {
1498
+ ve(a);
1499
+ }, [a]), L(() => {
1500
+ te(c);
1501
+ }, [c]), L(() => {
1502
+ _e(p);
1503
+ }, [p]), L(() => {
1504
+ M(w);
1505
+ }, [w]), L(() => {
1506
+ Ye(S);
1507
+ }, [S]), L(() => {
1508
+ Je(_);
1509
+ }, [_]), L(() => {
1510
+ De(A);
1511
+ }, [A]), L(() => {
1512
+ Me(g);
1513
+ }, [g]), L(() => {
1514
+ et.current !== R && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
1515
+ }, [R]), L(() => {
1516
+ typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: R === "core", disableBase: R } }));
1517
+ }, []), L(() => {
1518
+ var z;
1519
+ const re = new Set($e);
1520
+ let y = n;
1521
+ if (!y && e && (y = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), y) try {
1522
+ document.querySelectorAll(y).forEach((v) => {
1523
+ re.add({ current: v });
1524
+ });
1525
+ } catch {
1526
+ console.warn(`[react-tooltip] "${y}" is not a valid CSS selector`);
1527
+ }
1528
+ const O = document.querySelector(`[id='${t}']`);
1529
+ if (O && re.add({ current: O }), !re.size) return () => null;
1530
+ const ne = (z = j ?? O) !== null && z !== void 0 ? z : tt.current, Ee = new MutationObserver((v) => {
1531
+ v.forEach((b) => {
1532
+ var I;
1533
+ if (!ne || b.type !== "attributes" || !(!((I = b.attributeName) === null || I === void 0) && I.startsWith("data-tooltip-"))) return;
1534
+ const Y = Pe(ne);
1535
+ Be(Y);
1536
+ });
1537
+ }), f = { attributes: !0, childList: !1, subtree: !1 };
1538
+ if (ne) {
1539
+ const v = Pe(ne);
1540
+ Be(v), Ee.observe(ne, f);
1541
+ }
1542
+ return () => {
1543
+ Ee.disconnect();
1544
+ };
1545
+ }, [$e, tt, j, t, n]), L(() => {
1546
+ C != null && C.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), B && !un("border", `${B}`) && console.warn(`[react-tooltip] "${B}" is not a valid \`border\`.`), C != null && C.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), X && !un("opacity", `${X}`) && console.warn(`[react-tooltip] "${X}" is not a valid \`opacity\`.`);
1547
+ }, []);
1548
+ let je = h;
1549
+ const nt = se(null);
1550
+ if (r) {
1551
+ const z = r({ content: (j == null ? void 0 : j.getAttribute("data-tooltip-content")) || Z || null, activeAnchor: j });
1552
+ je = z ? Re.createElement("div", { ref: nt, className: "react-tooltip-content-wrapper" }, z) : null;
1553
+ } else Z && (je = Z);
1554
+ ce && (je = Re.createElement(Po, { content: ce }));
1555
+ const yt = { forwardRef: He, id: e, anchorId: t, anchorSelect: n, className: Ft(i, Ge), classNameArrow: s, content: je, contentWrapperRef: nt, place: Ke, variant: Ot, offset: pt, wrapper: xe, events: Se, openOnClick: m, positionStrategy: Ze, middlewares: x, delayShow: Ae, delayHide: Xe, float: Ue, hidden: mt, noArrow: E, clickable: $, closeOnEsc: T, closeOnScroll: V, closeOnResize: J, openEvents: q, closeEvents: ee, globalCloseEvents: Q, imperativeModeOnly: H, style: C, position: K, isOpen: N, defaultIsOpen: P, border: B, opacity: X, arrowColor: F, setIsOpen: ke, afterShow: ut, afterHide: ft, disableTooltip: dt, activeAnchor: j, setActiveAnchor: (z) => ht(z), role: Rt };
1556
+ return Re.createElement($o, { ...yt });
1557
+ });
1558
+ typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (e) => {
1559
+ e.detail.disableCore || cn({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), e.detail.disableBase || cn({ css: `
1560
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
1561
+ });
1562
+ const jo = hn(zn)``, Wo = hn.div`
1563
+ ${({ theme: e, $maxWidth: t = "320px" }) => `
1564
+ > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
1565
+ background-color: ${e.palette.gray[700]};
1566
+ border-radius: 8px;
1567
+ color: ${e.palette.white};
1568
+ font-size: ${e.typography.text.xs};
1569
+ max-width: ${t};
1570
+ padding: ${e.spacing[0.75]};
1571
+ z-index: 999999;
1572
+ --rt-opacity: 1;
1573
+ }
1574
+ `}
1575
+ `, Zo = Pn(function({
1576
+ children: t,
1577
+ disabled: n = !1,
1578
+ display: o = "inline-block",
1579
+ effect: l = "solid",
1580
+ icon: r,
1581
+ iconColor: i,
1582
+ iconSize: s,
1583
+ id: c,
1584
+ maxWidth: a,
1585
+ nodeTip: p,
1586
+ place: d = "bottom",
1587
+ tip: h = "",
1588
+ title: u = "",
1589
+ hide: m = h === "" && u === "" && p === void 0,
1590
+ ...g
1591
+ }, x) {
1592
+ const w = In(), [S, _] = W(!1), A = se(null), E = $t(() => {
1593
+ A.current !== null && clearTimeout(A.current), A.current = setTimeout(() => {
1594
+ _(!0);
1595
+ }, 100);
1596
+ }, []), $ = $t(() => {
1597
+ A.current !== null && clearTimeout(A.current), A.current = setTimeout(() => {
1598
+ _(!1);
1599
+ }, 100);
1600
+ }, []);
1601
+ return n ? /* @__PURE__ */ lt(Bn, { children: t }) : /* @__PURE__ */ Zt(
1602
+ jo,
1603
+ {
1604
+ "data-tooltip-id": c,
1605
+ display: o,
1606
+ onMouseLeave: $,
1607
+ onMouseMove: E,
1608
+ ref: x,
1609
+ role: "tooltip",
1610
+ ...g,
1611
+ children: [
1612
+ r ? /* @__PURE__ */ lt(
1613
+ Vn,
1614
+ {
1615
+ clickable: !0,
1616
+ disabled: n,
1617
+ icon: r,
1618
+ iconColor: i,
1619
+ iconSize: s ?? "xxs",
1620
+ iconType: S ? "fa-solid" : "fa-light"
1621
+ }
1622
+ ) : t,
1623
+ Wn(
1624
+ /* @__PURE__ */ lt(Wo, { $maxWidth: a, children: /* @__PURE__ */ Zt(
1625
+ Bo,
1626
+ {
1627
+ delayShow: 500,
1628
+ float: l === "float" ? !0 : void 0,
1629
+ globalCloseEvents: { resize: !0 },
1630
+ hidden: m || !S,
1631
+ id: c,
1632
+ middlewares: [
1633
+ Eo({
1634
+ fallbackAxisSideDirection: "start"
1635
+ }),
1636
+ So({ mainAxis: 10 })
1637
+ ],
1638
+ noArrow: l === "float",
1639
+ place: d,
1640
+ children: [
1641
+ kt(u) ? void 0 : /* @__PURE__ */ lt(
1642
+ Gt,
1643
+ {
1644
+ color: w.palette.white,
1645
+ fontWeight: "bold",
1646
+ lineSpacing: 1.5,
1647
+ size: "xs",
1648
+ textAlign: "start",
1649
+ wordWrap: "break-word",
1650
+ children: u
1651
+ }
1652
+ ),
1653
+ kt(h) ? void 0 : /* @__PURE__ */ lt(
1654
+ Gt,
1655
+ {
1656
+ color: w.palette.gray[100],
1657
+ lineSpacing: 1.5,
1658
+ size: "xs",
1659
+ textAlign: "start",
1660
+ wordWrap: "break-word",
1661
+ children: h
1662
+ }
1663
+ ),
1664
+ kt(p) ? void 0 : p
1665
+ ]
1666
+ }
1667
+ ) }),
1668
+ document.getElementById("root") ?? document.body
1669
+ )
1670
+ ]
1671
+ }
1672
+ );
1673
+ });
1674
+ export {
1675
+ Zo as T,
1676
+ bo as a,
1677
+ Qo as u
1678
+ };