@fluidattacks/design 3.1.11 → 3.1.12

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 (204) 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 +9 -1
  4. package/dist/components/accordion/index.js +21 -1
  5. package/dist/components/alert/index.js +111 -4
  6. package/dist/components/button/index.js +18 -1
  7. package/dist/components/card/card-header/index.js +14 -1
  8. package/dist/components/card/card-with-image/index.js +18 -1
  9. package/dist/components/card/card-with-input/index.js +57 -3
  10. package/dist/components/card/card-with-selector/index.js +16 -1
  11. package/dist/components/card/card-with-switch/index.js +12 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +36 -10
  14. package/dist/components/checkbox/index.js +84 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +27 -1
  17. package/dist/components/code-snippet/location-code/index.js +125 -1
  18. package/dist/components/colors/index.js +9 -1
  19. package/dist/components/confirm-dialog/index.js +23 -1
  20. package/dist/components/container/index.js +27 -3
  21. package/dist/components/content-card/category-tag/index.js +13 -1
  22. package/dist/components/content-card/event-date/index.js +18 -1
  23. package/dist/components/content-card/index.js +63 -3
  24. package/dist/components/content-card-carousel/index.js +15 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +10 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +21 -8
  29. package/dist/components/file-preview/index.js +15 -3
  30. package/dist/components/form/index.js +26 -3
  31. package/dist/components/grid-container/index.js +26 -5
  32. package/dist/components/group-selector/index.js +26 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +42 -4
  35. package/dist/components/icon-button/index.js +27 -3
  36. package/dist/components/indicator-card/index.js +15 -1
  37. package/dist/components/info-sidebar/index.js +16 -1
  38. package/dist/components/inputs/fields/combobox/index.js +26 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +15 -1
  44. package/dist/components/inputs/fields/date/index.js +18 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
  46. package/dist/components/inputs/fields/date-range/index.js +28 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
  48. package/dist/components/inputs/fields/date-time/index.js +18 -1
  49. package/dist/components/inputs/fields/editable/index.js +16 -1
  50. package/dist/components/inputs/fields/input/index.js +13 -1
  51. package/dist/components/inputs/fields/input-file/index.js +24 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +14 -2
  53. package/dist/components/inputs/fields/number/index.js +10 -1
  54. package/dist/components/inputs/fields/number-range/index.js +11 -1
  55. package/dist/components/inputs/fields/phone/index.js +414 -11
  56. package/dist/components/inputs/fields/text-area/index.js +13 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +12 -1
  59. package/dist/components/inputs/outline-container/index.js +18 -1
  60. package/dist/components/inputs/utils/action-button/index.js +10 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +13 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +8 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +32 -1
  64. package/dist/components/inputs/utils/dialog/index.js +11 -1
  65. package/dist/components/inputs/utils/number-field/index.js +13 -1
  66. package/dist/components/inputs/utils/popover/index.js +13 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +15 -1
  69. package/dist/components/language-selector/index.js +13 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +52 -7
  72. package/dist/components/list-item/index.js +16 -1
  73. package/dist/components/little-flag/index.js +15 -3
  74. package/dist/components/loading/index.js +28 -14
  75. package/dist/components/logo/index.js +7 -1
  76. package/dist/components/logo-carousel/index.js +10 -4
  77. package/dist/components/lottie/index.js +15 -3
  78. package/dist/components/menu/index.js +23 -1
  79. package/dist/components/message-banner/index.js +21 -4
  80. package/dist/components/modal/index.js +19 -1
  81. package/dist/components/modal/modal-confirm/index.js +10 -1
  82. package/dist/components/modal/modal-footer/index.js +16 -1
  83. package/dist/components/modal/modal-header/index.js +25 -1
  84. package/dist/components/notification/index.js +68 -5
  85. package/dist/components/notification-sign/index.js +26 -6
  86. package/dist/components/number-input/index.js +25 -7
  87. package/dist/components/oauth-selector/index.js +26 -1
  88. package/dist/components/oauth-selector/option-container/index.js +15 -1
  89. package/dist/components/plan-card/index.js +84 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +10 -1
  91. package/dist/components/pop-up/description/index.js +13 -1
  92. package/dist/components/pop-up/index.js +23 -1
  93. package/dist/components/premium-feature/index.js +45 -3
  94. package/dist/components/priority-score/index.js +14 -1
  95. package/dist/components/progress/index.js +23 -3
  96. package/dist/components/progress-bar/index.js +95 -5
  97. package/dist/components/radio-button/index.js +88 -3
  98. package/dist/components/scroll-button/index.js +20 -2
  99. package/dist/components/search/index.js +63 -7
  100. package/dist/components/search-bar/index.js +32 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +14 -1
  103. package/dist/components/severity-overview/badge/index.js +18 -1
  104. package/dist/components/severity-overview/index.js +7 -1
  105. package/dist/components/show-on-hover/index.js +25 -3
  106. package/dist/components/slide-out-menu/index.js +2009 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +15 -1
  108. package/dist/components/slider/index.js +93 -7
  109. package/dist/components/slider/thumb/index.js +10 -1
  110. package/dist/components/step-lapse/index.js +95 -9
  111. package/dist/components/table-button/index.js +56 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +9 -1
  113. package/dist/components/tabs/index.js +14 -1
  114. package/dist/components/tabs/tab/index.js +8 -1
  115. package/dist/components/tag/index.js +116 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +7 -1
  118. package/dist/components/toggle/index.js +45 -14
  119. package/dist/components/toggle-buttons/index.js +74 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +2481 -4
  122. package/dist/components/typography/heading/index.js +9 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +9 -1
  125. package/dist/components/typography/text/index.js +9 -1
  126. package/dist/components/web-form/index.js +59 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-38JqtnAI.mjs +122 -0
  129. package/dist/index-B5yoGFs6.mjs +54 -0
  130. package/dist/index-BLbKylyw.mjs +209 -0
  131. package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
  132. package/dist/index-BwFnfaRh.mjs +2310 -0
  133. package/dist/index-Co_k0WFk.mjs +75 -0
  134. package/dist/index-Cu7uUMlx.mjs +82 -0
  135. package/dist/index-D-lcuEHY.mjs +1018 -0
  136. package/dist/index-DrfjITyT.mjs +61 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-7_q7nHce.mjs +110 -0
  139. package/dist/styles-BA0WIQL-.mjs +74 -0
  140. package/dist/styles-C3cZmKVJ.mjs +131 -0
  141. package/dist/styles-CI-I6joH.mjs +144 -0
  142. package/dist/styles-Cx93EcVo.mjs +76 -0
  143. package/dist/styles-D85YYIjM.mjs +131 -0
  144. package/dist/styles-EIbGRPlk.mjs +106 -0
  145. package/dist/styles-Q1VXuWI7.mjs +65 -0
  146. package/dist/styles-fH2c4cfc.mjs +77 -0
  147. package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
  148. package/dist/use-carousel-CvRxi2FI.mjs +17 -0
  149. package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
  150. package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
  151. package/dist/use-modal-CkrZ-_-M.mjs +14 -0
  152. package/dist/use-search-DpLNvt7Q.mjs +12 -0
  153. package/dist/utils-CQvBF-wY.mjs +4 -0
  154. package/package.json +1 -1
  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-C8zdgAVH.mjs +0 -82
  160. package/dist/index-CA_9DXWd.js +0 -5
  161. package/dist/index-CmylnDrF.js +0 -14
  162. package/dist/index-DUMgwAbO.js +0 -26
  163. package/dist/index-DpQYiwGu.js +0 -5
  164. package/dist/index-Dy8ZUIYs.js +0 -5
  165. package/dist/index-JPf5Yzg6.js +0 -17
  166. package/dist/index-OBZtKZuT.mjs +0 -1021
  167. package/dist/index-SsXlDjK4.mjs +0 -122
  168. package/dist/index-TKLFHcRp.js +0 -18
  169. package/dist/index-TnyKqJHo.mjs +0 -61
  170. package/dist/index-Yr95Cb7Z.mjs +0 -54
  171. package/dist/index-h9-U5wxq.mjs +0 -209
  172. package/dist/index-qCiUU4sZ.js +0 -9
  173. package/dist/index-qe0nJwzl.js +0 -15
  174. package/dist/styles--Elze-LV.js +0 -3
  175. package/dist/styles-3pR4Xdvy.js +0 -33
  176. package/dist/styles-59h91S9m.mjs +0 -65
  177. package/dist/styles-BCwLWpC3.mjs +0 -126
  178. package/dist/styles-BJ7-0I5X.mjs +0 -74
  179. package/dist/styles-BKObp9bh.mjs +0 -76
  180. package/dist/styles-BWVdbvFu.js +0 -5
  181. package/dist/styles-Bl-CstrT.js +0 -5
  182. package/dist/styles-Bn42XCW5.js +0 -7
  183. package/dist/styles-C2CoGJl7.js +0 -33
  184. package/dist/styles-CNzziAXG.js +0 -5
  185. package/dist/styles-CdD9waPD.js +0 -29
  186. package/dist/styles-CnKTwnFk.mjs +0 -110
  187. package/dist/styles-D4R-eerv.mjs +0 -77
  188. package/dist/styles-DNIIhyRC.mjs +0 -144
  189. package/dist/styles-DV8yOaqV.mjs +0 -131
  190. package/dist/styles-DYoftbd3.js +0 -42
  191. package/dist/styles-DlmKLhPh.js +0 -7
  192. package/dist/styles-be8gOdgy.mjs +0 -106
  193. package/dist/use-carousel-64dKFW4E.js +0 -1
  194. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  195. package/dist/use-click-outside-BqkLISED.js +0 -1
  196. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  197. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  198. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  199. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  200. package/dist/use-modal-_bYY6M_n.js +0 -1
  201. package/dist/use-search-75ip5xR-.mjs +0 -12
  202. package/dist/use-search-DeL4UDMh.js +0 -1
  203. package/dist/utils-C2whpEd3.js +0 -1
  204. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1,1021 +0,0 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import n, { useLayoutEffect as r, useEffect as l, createContext as i, useState as c, useRef as s, useContext as a, useCallback as u, useImperativeHandle as d, forwardRef as f, StrictMode as p } from "react";
4
- import * as m from "react-dom";
5
- import { createPortal as y } from "react-dom";
6
- import { isEmpty as h } from "lodash";
7
- import { g as v } from "./_commonjsHelpers-D6CrkqQz.mjs";
8
- import { styled as g, useTheme as w } from "styled-components";
9
- import { B as b } from "./styles-DV8yOaqV.mjs";
10
- import { Icon as x } from "./components/icon/index.js";
11
- import "./components/typography/heading/index.js";
12
- import "./components/typography/span/index.js";
13
- import { Text as _ } from "./components/typography/text/index.js";
14
- const S = Math.min, E = Math.max, A = Math.round, T = Math.floor, k = (e2) => ({ x: e2, y: e2 }), R = { left: "right", right: "left", bottom: "top", top: "bottom" }, O = { start: "end", end: "start" };
15
- function L(e2, t2, o2) {
16
- return E(e2, S(t2, o2));
17
- }
18
- function C(e2, t2) {
19
- return "function" == typeof e2 ? e2(t2) : e2;
20
- }
21
- function D(e2) {
22
- return e2.split("-")[0];
23
- }
24
- function $(e2) {
25
- return e2.split("-")[1];
26
- }
27
- function j(e2) {
28
- return "x" === e2 ? "y" : "x";
29
- }
30
- function N(e2) {
31
- return "y" === e2 ? "height" : "width";
32
- }
33
- function P(e2) {
34
- return ["top", "bottom"].includes(D(e2)) ? "y" : "x";
35
- }
36
- function B(e2) {
37
- return j(P(e2));
38
- }
39
- function M(e2) {
40
- return e2.replace(/start|end/g, (e3) => O[e3]);
41
- }
42
- function z(e2) {
43
- return e2.replace(/left|right|bottom|top/g, (e3) => R[e3]);
44
- }
45
- function W(e2) {
46
- return "number" != typeof e2 ? function(e3) {
47
- return { top: 0, right: 0, bottom: 0, left: 0, ...e3 };
48
- }(e2) : { top: e2, right: e2, bottom: e2, left: e2 };
49
- }
50
- function I(e2) {
51
- const { x: t2, y: o2, width: n2, height: r2 } = e2;
52
- return { width: n2, height: r2, top: o2, left: t2, right: t2 + n2, bottom: o2 + r2, x: t2, y: o2 };
53
- }
54
- function H(e2, t2, o2) {
55
- let { reference: n2, floating: r2 } = e2;
56
- const l2 = P(t2), i2 = B(t2), c2 = N(i2), s2 = D(t2), a2 = "y" === l2, u2 = n2.x + n2.width / 2 - r2.width / 2, d2 = n2.y + n2.height / 2 - r2.height / 2, f2 = n2[c2] / 2 - r2[c2] / 2;
57
- let p2;
58
- switch (s2) {
59
- case "top":
60
- p2 = { x: u2, y: n2.y - r2.height };
61
- break;
62
- case "bottom":
63
- p2 = { x: u2, y: n2.y + n2.height };
64
- break;
65
- case "right":
66
- p2 = { x: n2.x + n2.width, y: d2 };
67
- break;
68
- case "left":
69
- p2 = { x: n2.x - r2.width, y: d2 };
70
- break;
71
- default:
72
- p2 = { x: n2.x, y: n2.y };
73
- }
74
- switch ($(t2)) {
75
- case "start":
76
- p2[i2] -= f2 * (o2 && a2 ? -1 : 1);
77
- break;
78
- case "end":
79
- p2[i2] += f2 * (o2 && a2 ? -1 : 1);
80
- }
81
- return p2;
82
- }
83
- async function F(e2, t2) {
84
- var o2;
85
- void 0 === t2 && (t2 = {});
86
- const { x: n2, y: r2, platform: l2, rects: i2, elements: c2, strategy: s2 } = e2, { boundary: a2 = "clippingAncestors", rootBoundary: u2 = "viewport", elementContext: d2 = "floating", altBoundary: f2 = false, padding: p2 = 0 } = C(t2, e2), m2 = W(p2), y2 = c2[f2 ? "floating" === d2 ? "reference" : "floating" : d2], h2 = I(await l2.getClippingRect({ element: null == (o2 = await (null == l2.isElement ? void 0 : l2.isElement(y2))) || o2 ? y2 : y2.contextElement || await (null == l2.getDocumentElement ? void 0 : l2.getDocumentElement(c2.floating)), boundary: a2, rootBoundary: u2, strategy: s2 })), v2 = "floating" === d2 ? { x: n2, y: r2, width: i2.floating.width, height: i2.floating.height } : i2.reference, g2 = await (null == l2.getOffsetParent ? void 0 : l2.getOffsetParent(c2.floating)), w2 = await (null == l2.isElement ? void 0 : l2.isElement(g2)) && await (null == l2.getScale ? void 0 : l2.getScale(g2)) || { x: 1, y: 1 }, b2 = I(l2.convertOffsetParentRelativeRectToViewportRelativeRect ? await l2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: c2, rect: v2, offsetParent: g2, strategy: s2 }) : v2);
87
- return { top: (h2.top - b2.top + m2.top) / w2.y, bottom: (b2.bottom - h2.bottom + m2.bottom) / w2.y, left: (h2.left - b2.left + m2.left) / w2.x, right: (b2.right - h2.right + m2.right) / w2.x };
88
- }
89
- function V() {
90
- return "undefined" != typeof window;
91
- }
92
- function q(e2) {
93
- return Y(e2) ? (e2.nodeName || "").toLowerCase() : "#document";
94
- }
95
- function K(e2) {
96
- var t2;
97
- return (null == e2 || null == (t2 = e2.ownerDocument) ? void 0 : t2.defaultView) || window;
98
- }
99
- function X(e2) {
100
- var t2;
101
- return null == (t2 = (Y(e2) ? e2.ownerDocument : e2.document) || window.document) ? void 0 : t2.documentElement;
102
- }
103
- function Y(e2) {
104
- return !!V() && (e2 instanceof Node || e2 instanceof K(e2).Node);
105
- }
106
- function Z(e2) {
107
- return !!V() && (e2 instanceof Element || e2 instanceof K(e2).Element);
108
- }
109
- function G(e2) {
110
- return !!V() && (e2 instanceof HTMLElement || e2 instanceof K(e2).HTMLElement);
111
- }
112
- function U(e2) {
113
- return !(!V() || "undefined" == typeof ShadowRoot) && (e2 instanceof ShadowRoot || e2 instanceof K(e2).ShadowRoot);
114
- }
115
- function J(e2) {
116
- const { overflow: t2, overflowX: o2, overflowY: n2, display: r2 } = re(e2);
117
- return /auto|scroll|overlay|hidden|clip/.test(t2 + n2 + o2) && !["inline", "contents"].includes(r2);
118
- }
119
- function Q(e2) {
120
- return ["table", "td", "th"].includes(q(e2));
121
- }
122
- function ee(e2) {
123
- return [":popover-open", ":modal"].some((t2) => {
124
- try {
125
- return e2.matches(t2);
126
- } catch (e3) {
127
- return false;
128
- }
129
- });
130
- }
131
- function te(e2) {
132
- const t2 = oe(), o2 = Z(e2) ? re(e2) : e2;
133
- return ["transform", "translate", "scale", "rotate", "perspective"].some((e3) => !!o2[e3] && "none" !== o2[e3]) || !!o2.containerType && "normal" !== o2.containerType || !t2 && !!o2.backdropFilter && "none" !== o2.backdropFilter || !t2 && !!o2.filter && "none" !== o2.filter || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((e3) => (o2.willChange || "").includes(e3)) || ["paint", "layout", "strict", "content"].some((e3) => (o2.contain || "").includes(e3));
134
- }
135
- function oe() {
136
- return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
137
- }
138
- function ne(e2) {
139
- return ["html", "body", "#document"].includes(q(e2));
140
- }
141
- function re(e2) {
142
- return K(e2).getComputedStyle(e2);
143
- }
144
- function le(e2) {
145
- return Z(e2) ? { scrollLeft: e2.scrollLeft, scrollTop: e2.scrollTop } : { scrollLeft: e2.scrollX, scrollTop: e2.scrollY };
146
- }
147
- function ie(e2) {
148
- if ("html" === q(e2)) return e2;
149
- const t2 = e2.assignedSlot || e2.parentNode || U(e2) && e2.host || X(e2);
150
- return U(t2) ? t2.host : t2;
151
- }
152
- function ce(e2) {
153
- const t2 = ie(e2);
154
- return ne(t2) ? e2.ownerDocument ? e2.ownerDocument.body : e2.body : G(t2) && J(t2) ? t2 : ce(t2);
155
- }
156
- function se(e2, t2, o2) {
157
- var n2;
158
- void 0 === t2 && (t2 = []), void 0 === o2 && (o2 = true);
159
- const r2 = ce(e2), l2 = r2 === (null == (n2 = e2.ownerDocument) ? void 0 : n2.body), i2 = K(r2);
160
- if (l2) {
161
- const e3 = ae(i2);
162
- return t2.concat(i2, i2.visualViewport || [], J(r2) ? r2 : [], e3 && o2 ? se(e3) : []);
163
- }
164
- return t2.concat(r2, se(r2, [], o2));
165
- }
166
- function ae(e2) {
167
- return e2.parent && Object.getPrototypeOf(e2.parent) ? e2.frameElement : null;
168
- }
169
- function ue(e2) {
170
- const t2 = re(e2);
171
- let o2 = parseFloat(t2.width) || 0, n2 = parseFloat(t2.height) || 0;
172
- const r2 = G(e2), l2 = r2 ? e2.offsetWidth : o2, i2 = r2 ? e2.offsetHeight : n2, c2 = A(o2) !== l2 || A(n2) !== i2;
173
- return c2 && (o2 = l2, n2 = i2), { width: o2, height: n2, $: c2 };
174
- }
175
- function de(e2) {
176
- return Z(e2) ? e2 : e2.contextElement;
177
- }
178
- function fe(e2) {
179
- const t2 = de(e2);
180
- if (!G(t2)) return k(1);
181
- const o2 = t2.getBoundingClientRect(), { width: n2, height: r2, $: l2 } = ue(t2);
182
- let i2 = (l2 ? A(o2.width) : o2.width) / n2, c2 = (l2 ? A(o2.height) : o2.height) / r2;
183
- return i2 && Number.isFinite(i2) || (i2 = 1), c2 && Number.isFinite(c2) || (c2 = 1), { x: i2, y: c2 };
184
- }
185
- const pe = k(0);
186
- function me(e2) {
187
- const t2 = K(e2);
188
- return oe() && t2.visualViewport ? { x: t2.visualViewport.offsetLeft, y: t2.visualViewport.offsetTop } : pe;
189
- }
190
- function ye(e2, t2, o2, n2) {
191
- void 0 === t2 && (t2 = false), void 0 === o2 && (o2 = false);
192
- const r2 = e2.getBoundingClientRect(), l2 = de(e2);
193
- let i2 = k(1);
194
- t2 && (n2 ? Z(n2) && (i2 = fe(n2)) : i2 = fe(e2));
195
- const c2 = function(e3, t3, o3) {
196
- return void 0 === t3 && (t3 = false), !(!o3 || t3 && o3 !== K(e3)) && t3;
197
- }(l2, o2, n2) ? me(l2) : k(0);
198
- let s2 = (r2.left + c2.x) / i2.x, a2 = (r2.top + c2.y) / i2.y, u2 = r2.width / i2.x, d2 = r2.height / i2.y;
199
- if (l2) {
200
- const e3 = K(l2), t3 = n2 && Z(n2) ? K(n2) : n2;
201
- let o3 = e3, r3 = ae(o3);
202
- for (; r3 && n2 && t3 !== o3; ) {
203
- const e4 = fe(r3), t4 = r3.getBoundingClientRect(), n3 = re(r3), l3 = t4.left + (r3.clientLeft + parseFloat(n3.paddingLeft)) * e4.x, i3 = t4.top + (r3.clientTop + parseFloat(n3.paddingTop)) * e4.y;
204
- s2 *= e4.x, a2 *= e4.y, u2 *= e4.x, d2 *= e4.y, s2 += l3, a2 += i3, o3 = K(r3), r3 = ae(o3);
205
- }
206
- }
207
- return I({ width: u2, height: d2, x: s2, y: a2 });
208
- }
209
- function he(e2, t2) {
210
- const o2 = le(e2).scrollLeft;
211
- return t2 ? t2.left + o2 : ye(X(e2)).left + o2;
212
- }
213
- function ve(e2, t2, o2) {
214
- void 0 === o2 && (o2 = false);
215
- const n2 = e2.getBoundingClientRect();
216
- return { x: n2.left + t2.scrollLeft - (o2 ? 0 : he(e2, n2)), y: n2.top + t2.scrollTop };
217
- }
218
- function ge(e2, t2, o2) {
219
- let n2;
220
- if ("viewport" === t2) n2 = function(e3, t3) {
221
- const o3 = K(e3), n3 = X(e3), r2 = o3.visualViewport;
222
- let l2 = n3.clientWidth, i2 = n3.clientHeight, c2 = 0, s2 = 0;
223
- if (r2) {
224
- l2 = r2.width, i2 = r2.height;
225
- const e4 = oe();
226
- (!e4 || e4 && "fixed" === t3) && (c2 = r2.offsetLeft, s2 = r2.offsetTop);
227
- }
228
- return { width: l2, height: i2, x: c2, y: s2 };
229
- }(e2, o2);
230
- else if ("document" === t2) n2 = function(e3) {
231
- const t3 = X(e3), o3 = le(e3), n3 = e3.ownerDocument.body, r2 = E(t3.scrollWidth, t3.clientWidth, n3.scrollWidth, n3.clientWidth), l2 = E(t3.scrollHeight, t3.clientHeight, n3.scrollHeight, n3.clientHeight);
232
- let i2 = -o3.scrollLeft + he(e3);
233
- const c2 = -o3.scrollTop;
234
- return "rtl" === re(n3).direction && (i2 += E(t3.clientWidth, n3.clientWidth) - r2), { width: r2, height: l2, x: i2, y: c2 };
235
- }(X(e2));
236
- else if (Z(t2)) n2 = function(e3, t3) {
237
- const o3 = ye(e3, true, "fixed" === t3), n3 = o3.top + e3.clientTop, r2 = o3.left + e3.clientLeft, l2 = G(e3) ? fe(e3) : k(1);
238
- return { width: e3.clientWidth * l2.x, height: e3.clientHeight * l2.y, x: r2 * l2.x, y: n3 * l2.y };
239
- }(t2, o2);
240
- else {
241
- const o3 = me(e2);
242
- n2 = { x: t2.x - o3.x, y: t2.y - o3.y, width: t2.width, height: t2.height };
243
- }
244
- return I(n2);
245
- }
246
- function we(e2, t2) {
247
- const o2 = ie(e2);
248
- return !(o2 === t2 || !Z(o2) || ne(o2)) && ("fixed" === re(o2).position || we(o2, t2));
249
- }
250
- function be(e2, t2, o2) {
251
- const n2 = G(t2), r2 = X(t2), l2 = "fixed" === o2, i2 = ye(e2, true, l2, t2);
252
- let c2 = { scrollLeft: 0, scrollTop: 0 };
253
- const s2 = k(0);
254
- if (n2 || !n2 && !l2) if (("body" !== q(t2) || J(r2)) && (c2 = le(t2)), n2) {
255
- const e3 = ye(t2, true, l2, t2);
256
- s2.x = e3.x + t2.clientLeft, s2.y = e3.y + t2.clientTop;
257
- } else r2 && (s2.x = he(r2));
258
- const a2 = !r2 || n2 || l2 ? k(0) : ve(r2, c2);
259
- return { x: i2.left + c2.scrollLeft - s2.x - a2.x, y: i2.top + c2.scrollTop - s2.y - a2.y, width: i2.width, height: i2.height };
260
- }
261
- function xe(e2) {
262
- return "static" === re(e2).position;
263
- }
264
- function _e(e2, t2) {
265
- if (!G(e2) || "fixed" === re(e2).position) return null;
266
- if (t2) return t2(e2);
267
- let o2 = e2.offsetParent;
268
- return X(e2) === o2 && (o2 = o2.ownerDocument.body), o2;
269
- }
270
- function Se(e2, t2) {
271
- const o2 = K(e2);
272
- if (ee(e2)) return o2;
273
- if (!G(e2)) {
274
- let t3 = ie(e2);
275
- for (; t3 && !ne(t3); ) {
276
- if (Z(t3) && !xe(t3)) return t3;
277
- t3 = ie(t3);
278
- }
279
- return o2;
280
- }
281
- let n2 = _e(e2, t2);
282
- for (; n2 && Q(n2) && xe(n2); ) n2 = _e(n2, t2);
283
- return n2 && ne(n2) && xe(n2) && !te(n2) ? o2 : n2 || function(e3) {
284
- let t3 = ie(e3);
285
- for (; G(t3) && !ne(t3); ) {
286
- if (te(t3)) return t3;
287
- if (ee(t3)) return null;
288
- t3 = ie(t3);
289
- }
290
- return null;
291
- }(e2) || o2;
292
- }
293
- const Ee = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e2) {
294
- let { elements: t2, rect: o2, offsetParent: n2, strategy: r2 } = e2;
295
- const l2 = "fixed" === r2, i2 = X(n2), c2 = !!t2 && ee(t2.floating);
296
- if (n2 === i2 || c2 && l2) return o2;
297
- let s2 = { scrollLeft: 0, scrollTop: 0 }, a2 = k(1);
298
- const u2 = k(0), d2 = G(n2);
299
- if ((d2 || !d2 && !l2) && (("body" !== q(n2) || J(i2)) && (s2 = le(n2)), G(n2))) {
300
- const e3 = ye(n2);
301
- a2 = fe(n2), u2.x = e3.x + n2.clientLeft, u2.y = e3.y + n2.clientTop;
302
- }
303
- const f2 = !i2 || d2 || l2 ? k(0) : ve(i2, s2, true);
304
- return { width: o2.width * a2.x, height: o2.height * a2.y, x: o2.x * a2.x - s2.scrollLeft * a2.x + u2.x + f2.x, y: o2.y * a2.y - s2.scrollTop * a2.y + u2.y + f2.y };
305
- }, getDocumentElement: X, getClippingRect: function(e2) {
306
- let { element: t2, boundary: o2, rootBoundary: n2, strategy: r2 } = e2;
307
- const l2 = [..."clippingAncestors" === o2 ? ee(t2) ? [] : function(e3, t3) {
308
- const o3 = t3.get(e3);
309
- if (o3) return o3;
310
- let n3 = se(e3, [], false).filter((e4) => Z(e4) && "body" !== q(e4)), r3 = null;
311
- const l3 = "fixed" === re(e3).position;
312
- let i3 = l3 ? ie(e3) : e3;
313
- for (; Z(i3) && !ne(i3); ) {
314
- const t4 = re(i3), o4 = te(i3);
315
- o4 || "fixed" !== t4.position || (r3 = null), (l3 ? !o4 && !r3 : !o4 && "static" === t4.position && r3 && ["absolute", "fixed"].includes(r3.position) || J(i3) && !o4 && we(e3, i3)) ? n3 = n3.filter((e4) => e4 !== i3) : r3 = t4, i3 = ie(i3);
316
- }
317
- return t3.set(e3, n3), n3;
318
- }(t2, this._c) : [].concat(o2), n2], i2 = l2[0], c2 = l2.reduce((e3, o3) => {
319
- const n3 = ge(t2, o3, r2);
320
- return e3.top = E(n3.top, e3.top), e3.right = S(n3.right, e3.right), e3.bottom = S(n3.bottom, e3.bottom), e3.left = E(n3.left, e3.left), e3;
321
- }, ge(t2, i2, r2));
322
- return { width: c2.right - c2.left, height: c2.bottom - c2.top, x: c2.left, y: c2.top };
323
- }, getOffsetParent: Se, getElementRects: async function(e2) {
324
- const t2 = this.getOffsetParent || Se, o2 = this.getDimensions, n2 = await o2(e2.floating);
325
- return { reference: be(e2.reference, await t2(e2.floating), e2.strategy), floating: { x: 0, y: 0, width: n2.width, height: n2.height } };
326
- }, getClientRects: function(e2) {
327
- return Array.from(e2.getClientRects());
328
- }, getDimensions: function(e2) {
329
- const { width: t2, height: o2 } = ue(e2);
330
- return { width: t2, height: o2 };
331
- }, getScale: fe, isElement: Z, isRTL: function(e2) {
332
- return "rtl" === re(e2).direction;
333
- } };
334
- function Ae(e2, t2) {
335
- return e2.x === t2.x && e2.y === t2.y && e2.width === t2.width && e2.height === t2.height;
336
- }
337
- function Te(e2, t2, o2, n2) {
338
- void 0 === n2 && (n2 = {});
339
- const { ancestorScroll: r2 = true, ancestorResize: l2 = true, elementResize: i2 = "function" == typeof ResizeObserver, layoutShift: c2 = "function" == typeof IntersectionObserver, animationFrame: s2 = false } = n2, a2 = de(e2), u2 = r2 || l2 ? [...a2 ? se(a2) : [], ...se(t2)] : [];
340
- u2.forEach((e3) => {
341
- r2 && e3.addEventListener("scroll", o2, { passive: true }), l2 && e3.addEventListener("resize", o2);
342
- });
343
- const d2 = a2 && c2 ? function(e3, t3) {
344
- let o3, n3 = null;
345
- const r3 = X(e3);
346
- function l3() {
347
- var e4;
348
- clearTimeout(o3), null == (e4 = n3) || e4.disconnect(), n3 = null;
349
- }
350
- return function i3(c3, s3) {
351
- void 0 === c3 && (c3 = false), void 0 === s3 && (s3 = 1), l3();
352
- const a3 = e3.getBoundingClientRect(), { left: u3, top: d3, width: f3, height: p3 } = a3;
353
- if (c3 || t3(), !f3 || !p3) return;
354
- const m3 = { rootMargin: -T(d3) + "px " + -T(r3.clientWidth - (u3 + f3)) + "px " + -T(r3.clientHeight - (d3 + p3)) + "px " + -T(u3) + "px", threshold: E(0, S(1, s3)) || 1 };
355
- let y3 = true;
356
- function h2(t4) {
357
- const n4 = t4[0].intersectionRatio;
358
- if (n4 !== s3) {
359
- if (!y3) return i3();
360
- n4 ? i3(false, n4) : o3 = setTimeout(() => {
361
- i3(false, 1e-7);
362
- }, 1e3);
363
- }
364
- 1 !== n4 || Ae(a3, e3.getBoundingClientRect()) || i3(), y3 = false;
365
- }
366
- try {
367
- n3 = new IntersectionObserver(h2, { ...m3, root: r3.ownerDocument });
368
- } catch (e4) {
369
- n3 = new IntersectionObserver(h2, m3);
370
- }
371
- n3.observe(e3);
372
- }(true), l3;
373
- }(a2, o2) : null;
374
- let f2, p2 = -1, m2 = null;
375
- i2 && (m2 = new ResizeObserver((e3) => {
376
- let [n3] = e3;
377
- n3 && n3.target === a2 && m2 && (m2.unobserve(t2), cancelAnimationFrame(p2), p2 = requestAnimationFrame(() => {
378
- var e4;
379
- null == (e4 = m2) || e4.observe(t2);
380
- })), o2();
381
- }), a2 && !s2 && m2.observe(a2), m2.observe(t2));
382
- let y2 = s2 ? ye(e2) : null;
383
- return s2 && function t3() {
384
- const n3 = ye(e2);
385
- y2 && !Ae(y2, n3) && o2();
386
- y2 = n3, f2 = requestAnimationFrame(t3);
387
- }(), o2(), () => {
388
- var e3;
389
- u2.forEach((e4) => {
390
- r2 && e4.removeEventListener("scroll", o2), l2 && e4.removeEventListener("resize", o2);
391
- }), null == d2 || d2(), null == (e3 = m2) || e3.disconnect(), m2 = null, s2 && cancelAnimationFrame(f2);
392
- };
393
- }
394
- const ke = function(e2) {
395
- return void 0 === e2 && (e2 = 0), { name: "offset", options: e2, async fn(t2) {
396
- var o2, n2;
397
- const { x: r2, y: l2, placement: i2, middlewareData: c2 } = t2, s2 = await async function(e3, t3) {
398
- const { placement: o3, platform: n3, elements: r3 } = e3, l3 = await (null == n3.isRTL ? void 0 : n3.isRTL(r3.floating)), i3 = D(o3), c3 = $(o3), s3 = "y" === P(o3), a2 = ["left", "top"].includes(i3) ? -1 : 1, u2 = l3 && s3 ? -1 : 1, d2 = C(t3, e3);
399
- let { mainAxis: f2, crossAxis: p2, alignmentAxis: m2 } = "number" == typeof d2 ? { mainAxis: d2, crossAxis: 0, alignmentAxis: null } : { mainAxis: d2.mainAxis || 0, crossAxis: d2.crossAxis || 0, alignmentAxis: d2.alignmentAxis };
400
- return c3 && "number" == typeof m2 && (p2 = "end" === c3 ? -1 * m2 : m2), s3 ? { x: p2 * u2, y: f2 * a2 } : { x: f2 * a2, y: p2 * u2 };
401
- }(t2, e2);
402
- return i2 === (null == (o2 = c2.offset) ? void 0 : o2.placement) && null != (n2 = c2.arrow) && n2.alignmentOffset ? {} : { x: r2 + s2.x, y: l2 + s2.y, data: { ...s2, placement: i2 } };
403
- } };
404
- }, Re = function(e2) {
405
- return void 0 === e2 && (e2 = {}), { name: "shift", options: e2, async fn(t2) {
406
- const { x: o2, y: n2, placement: r2 } = t2, { mainAxis: l2 = true, crossAxis: i2 = false, limiter: c2 = { fn: (e3) => {
407
- let { x: t3, y: o3 } = e3;
408
- return { x: t3, y: o3 };
409
- } }, ...s2 } = C(e2, t2), a2 = { x: o2, y: n2 }, u2 = await F(t2, s2), d2 = P(D(r2)), f2 = j(d2);
410
- let p2 = a2[f2], m2 = a2[d2];
411
- if (l2) {
412
- const e3 = "y" === f2 ? "bottom" : "right";
413
- p2 = L(p2 + u2["y" === f2 ? "top" : "left"], p2, p2 - u2[e3]);
414
- }
415
- if (i2) {
416
- const e3 = "y" === d2 ? "bottom" : "right";
417
- m2 = L(m2 + u2["y" === d2 ? "top" : "left"], m2, m2 - u2[e3]);
418
- }
419
- const y2 = c2.fn({ ...t2, [f2]: p2, [d2]: m2 });
420
- return { ...y2, data: { x: y2.x - o2, y: y2.y - n2, enabled: { [f2]: l2, [d2]: i2 } } };
421
- } };
422
- }, Oe = function(e2) {
423
- return void 0 === e2 && (e2 = {}), { name: "flip", options: e2, async fn(t2) {
424
- var o2, n2;
425
- const { placement: r2, middlewareData: l2, rects: i2, initialPlacement: c2, platform: s2, elements: a2 } = t2, { mainAxis: u2 = true, crossAxis: d2 = true, fallbackPlacements: f2, fallbackStrategy: p2 = "bestFit", fallbackAxisSideDirection: m2 = "none", flipAlignment: y2 = true, ...h2 } = C(e2, t2);
426
- if (null != (o2 = l2.arrow) && o2.alignmentOffset) return {};
427
- const v2 = D(r2), g2 = P(c2), w2 = D(c2) === c2, b2 = await (null == s2.isRTL ? void 0 : s2.isRTL(a2.floating)), x2 = f2 || (w2 || !y2 ? [z(c2)] : function(e3) {
428
- const t3 = z(e3);
429
- return [M(e3), t3, M(t3)];
430
- }(c2)), _2 = "none" !== m2;
431
- !f2 && _2 && x2.push(...function(e3, t3, o3, n3) {
432
- const r3 = $(e3);
433
- let l3 = function(e4, t4, o4) {
434
- const n4 = ["left", "right"], r4 = ["right", "left"], l4 = ["top", "bottom"], i3 = ["bottom", "top"];
435
- switch (e4) {
436
- case "top":
437
- case "bottom":
438
- return o4 ? t4 ? r4 : n4 : t4 ? n4 : r4;
439
- case "left":
440
- case "right":
441
- return t4 ? l4 : i3;
442
- default:
443
- return [];
444
- }
445
- }(D(e3), "start" === o3, n3);
446
- return r3 && (l3 = l3.map((e4) => e4 + "-" + r3), t3 && (l3 = l3.concat(l3.map(M)))), l3;
447
- }(c2, y2, m2, b2));
448
- const S2 = [c2, ...x2], E2 = await F(t2, h2), A2 = [];
449
- let T2 = (null == (n2 = l2.flip) ? void 0 : n2.overflows) || [];
450
- if (u2 && A2.push(E2[v2]), d2) {
451
- const e3 = function(e4, t3, o3) {
452
- void 0 === o3 && (o3 = false);
453
- const n3 = $(e4), r3 = B(e4), l3 = N(r3);
454
- let i3 = "x" === r3 ? n3 === (o3 ? "end" : "start") ? "right" : "left" : "start" === n3 ? "bottom" : "top";
455
- return t3.reference[l3] > t3.floating[l3] && (i3 = z(i3)), [i3, z(i3)];
456
- }(r2, i2, b2);
457
- A2.push(E2[e3[0]], E2[e3[1]]);
458
- }
459
- if (T2 = [...T2, { placement: r2, overflows: A2 }], !A2.every((e3) => e3 <= 0)) {
460
- var k2, R2;
461
- const e3 = ((null == (k2 = l2.flip) ? void 0 : k2.index) || 0) + 1, t3 = S2[e3];
462
- if (t3) return { data: { index: e3, overflows: T2 }, reset: { placement: t3 } };
463
- let o3 = null == (R2 = T2.filter((e4) => e4.overflows[0] <= 0).sort((e4, t4) => e4.overflows[1] - t4.overflows[1])[0]) ? void 0 : R2.placement;
464
- if (!o3) switch (p2) {
465
- case "bestFit": {
466
- var O2;
467
- const e4 = null == (O2 = T2.filter((e5) => {
468
- if (_2) {
469
- const t4 = P(e5.placement);
470
- return t4 === g2 || "y" === t4;
471
- }
472
- return true;
473
- }).map((e5) => [e5.placement, e5.overflows.filter((e6) => e6 > 0).reduce((e6, t4) => e6 + t4, 0)]).sort((e5, t4) => e5[1] - t4[1])[0]) ? void 0 : O2[0];
474
- e4 && (o3 = e4);
475
- break;
476
- }
477
- case "initialPlacement":
478
- o3 = c2;
479
- }
480
- if (r2 !== o3) return { reset: { placement: o3 } };
481
- }
482
- return {};
483
- } };
484
- }, Le = (e2) => ({ name: "arrow", options: e2, async fn(t2) {
485
- const { x: o2, y: n2, placement: r2, rects: l2, platform: i2, elements: c2, middlewareData: s2 } = t2, { element: a2, padding: u2 = 0 } = C(e2, t2) || {};
486
- if (null == a2) return {};
487
- const d2 = W(u2), f2 = { x: o2, y: n2 }, p2 = B(r2), m2 = N(p2), y2 = await i2.getDimensions(a2), h2 = "y" === p2, v2 = h2 ? "top" : "left", g2 = h2 ? "bottom" : "right", w2 = h2 ? "clientHeight" : "clientWidth", b2 = l2.reference[m2] + l2.reference[p2] - f2[p2] - l2.floating[m2], x2 = f2[p2] - l2.reference[p2], _2 = await (null == i2.getOffsetParent ? void 0 : i2.getOffsetParent(a2));
488
- let E2 = _2 ? _2[w2] : 0;
489
- E2 && await (null == i2.isElement ? void 0 : i2.isElement(_2)) || (E2 = c2.floating[w2] || l2.floating[m2]);
490
- const A2 = b2 / 2 - x2 / 2, T2 = E2 / 2 - y2[m2] / 2 - 1, k2 = S(d2[v2], T2), R2 = S(d2[g2], T2), O2 = k2, D2 = E2 - y2[m2] - R2, j2 = E2 / 2 - y2[m2] / 2 + A2, P2 = L(O2, j2, D2), M2 = !s2.arrow && null != $(r2) && j2 !== P2 && l2.reference[m2] / 2 - (j2 < O2 ? k2 : R2) - y2[m2] / 2 < 0, z2 = M2 ? j2 < O2 ? j2 - O2 : j2 - D2 : 0;
491
- return { [p2]: f2[p2] + z2, data: { [p2]: P2, centerOffset: j2 - P2 - z2, ...M2 && { alignmentOffset: z2 } }, reset: M2 };
492
- } }), Ce = (e2, t2, o2) => {
493
- const n2 = /* @__PURE__ */ new Map(), r2 = { platform: Ee, ...o2 }, l2 = { ...r2.platform, _c: n2 };
494
- return (async (e3, t3, o3) => {
495
- const { placement: n3 = "bottom", strategy: r3 = "absolute", middleware: l3 = [], platform: i2 } = o3, c2 = l3.filter(Boolean), s2 = await (null == i2.isRTL ? void 0 : i2.isRTL(t3));
496
- let a2 = await i2.getElementRects({ reference: e3, floating: t3, strategy: r3 }), { x: u2, y: d2 } = H(a2, n3, s2), f2 = n3, p2 = {}, m2 = 0;
497
- for (let o4 = 0; o4 < c2.length; o4++) {
498
- const { name: l4, fn: y2 } = c2[o4], { x: h2, y: v2, data: g2, reset: w2 } = await y2({ x: u2, y: d2, initialPlacement: n3, placement: f2, strategy: r3, middlewareData: p2, rects: a2, platform: i2, elements: { reference: e3, floating: t3 } });
499
- u2 = null != h2 ? h2 : u2, d2 = null != v2 ? v2 : d2, p2 = { ...p2, [l4]: { ...p2[l4], ...g2 } }, w2 && m2 <= 50 && (m2++, "object" == typeof w2 && (w2.placement && (f2 = w2.placement), w2.rects && (a2 = true === w2.rects ? await i2.getElementRects({ reference: e3, floating: t3, strategy: r3 }) : w2.rects), { x: u2, y: d2 } = H(a2, f2, s2)), o4 = -1);
500
- }
501
- return { x: u2, y: d2, placement: f2, strategy: r3, middlewareData: p2 };
502
- })(e2, t2, { ...r2, platform: l2 });
503
- };
504
- var De = "undefined" != typeof document ? r : l;
505
- function $e(e2, t2) {
506
- if (e2 === t2) return true;
507
- if (typeof e2 != typeof t2) return false;
508
- if ("function" == typeof e2 && e2.toString() === t2.toString()) return true;
509
- let o2, n2, r2;
510
- if (e2 && t2 && "object" == typeof e2) {
511
- if (Array.isArray(e2)) {
512
- if (o2 = e2.length, o2 !== t2.length) return false;
513
- for (n2 = o2; 0 != n2--; ) if (!$e(e2[n2], t2[n2])) return false;
514
- return true;
515
- }
516
- if (r2 = Object.keys(e2), o2 = r2.length, o2 !== Object.keys(t2).length) return false;
517
- for (n2 = o2; 0 != n2--; ) if (!{}.hasOwnProperty.call(t2, r2[n2])) return false;
518
- for (n2 = o2; 0 != n2--; ) {
519
- const o3 = r2[n2];
520
- if (("_owner" !== o3 || !e2.$$typeof) && !$e(e2[o3], t2[o3])) return false;
521
- }
522
- return true;
523
- }
524
- return e2 != e2 && t2 != t2;
525
- }
526
- function je(e2) {
527
- if ("undefined" == typeof window) return 1;
528
- return (e2.ownerDocument.defaultView || window).devicePixelRatio || 1;
529
- }
530
- function Ne(e2, t2) {
531
- const o2 = je(e2);
532
- return Math.round(t2 * o2) / o2;
533
- }
534
- function Pe(e2) {
535
- const t2 = o.useRef(e2);
536
- return De(() => {
537
- t2.current = e2;
538
- }), t2;
539
- }
540
- function Be(e2) {
541
- void 0 === e2 && (e2 = {});
542
- const { placement: t2 = "bottom", strategy: n2 = "absolute", middleware: r2 = [], platform: l2, elements: { reference: i2, floating: c2 } = {}, transform: s2 = true, whileElementsMounted: a2, open: u2 } = e2, [d2, f2] = o.useState({ x: 0, y: 0, strategy: n2, placement: t2, middlewareData: {}, isPositioned: false }), [p2, y2] = o.useState(r2);
543
- $e(p2, r2) || y2(r2);
544
- const [h2, v2] = o.useState(null), [g2, w2] = o.useState(null), b2 = o.useCallback((e3) => {
545
- e3 !== E2.current && (E2.current = e3, v2(e3));
546
- }, []), x2 = o.useCallback((e3) => {
547
- e3 !== A2.current && (A2.current = e3, w2(e3));
548
- }, []), _2 = i2 || h2, S2 = c2 || g2, E2 = o.useRef(null), A2 = o.useRef(null), T2 = o.useRef(d2), k2 = null != a2, R2 = Pe(a2), O2 = Pe(l2), L2 = Pe(u2), C2 = o.useCallback(() => {
549
- if (!E2.current || !A2.current) return;
550
- const e3 = { placement: t2, strategy: n2, middleware: p2 };
551
- O2.current && (e3.platform = O2.current), Ce(E2.current, A2.current, e3).then((e4) => {
552
- const t3 = { ...e4, isPositioned: false !== L2.current };
553
- D2.current && !$e(T2.current, t3) && (T2.current = t3, m.flushSync(() => {
554
- f2(t3);
555
- }));
556
- });
557
- }, [p2, t2, n2, O2, L2]);
558
- De(() => {
559
- false === u2 && T2.current.isPositioned && (T2.current.isPositioned = false, f2((e3) => ({ ...e3, isPositioned: false })));
560
- }, [u2]);
561
- const D2 = o.useRef(false);
562
- De(() => (D2.current = true, () => {
563
- D2.current = false;
564
- }), []), De(() => {
565
- if (_2 && (E2.current = _2), S2 && (A2.current = S2), _2 && S2) {
566
- if (R2.current) return R2.current(_2, S2, C2);
567
- C2();
568
- }
569
- }, [_2, S2, C2, R2, k2]);
570
- const $2 = o.useMemo(() => ({ reference: E2, floating: A2, setReference: b2, setFloating: x2 }), [b2, x2]), j2 = o.useMemo(() => ({ reference: _2, floating: S2 }), [_2, S2]), N2 = o.useMemo(() => {
571
- const e3 = { position: n2, left: 0, top: 0 };
572
- if (!j2.floating) return e3;
573
- const t3 = Ne(j2.floating, d2.x), o2 = Ne(j2.floating, d2.y);
574
- return s2 ? { ...e3, transform: "translate(" + t3 + "px, " + o2 + "px)", ...je(j2.floating) >= 1.5 && { willChange: "transform" } } : { position: n2, left: t3, top: o2 };
575
- }, [n2, s2, j2.floating, d2.x, d2.y]);
576
- return o.useMemo(() => ({ ...d2, update: C2, refs: $2, elements: j2, floatingStyles: N2 }), [d2, C2, $2, j2, N2]);
577
- }
578
- const Me = (e2, t2) => ({ ...ke(e2), options: [e2, t2] });
579
- var ze, We, Ie = { exports: {} };
580
- /*!
581
- Copyright (c) 2018 Jed Watson.
582
- Licensed under the MIT License (MIT), see
583
- http://jedwatson.github.io/classnames
584
- */
585
- const He = v((ze || (ze = 1, We = Ie, function() {
586
- var e2 = {}.hasOwnProperty;
587
- function t2() {
588
- for (var e3 = "", t3 = 0; t3 < arguments.length; t3++) {
589
- var r2 = arguments[t3];
590
- r2 && (e3 = n2(e3, o2(r2)));
591
- }
592
- return e3;
593
- }
594
- function o2(o3) {
595
- if ("string" == typeof o3 || "number" == typeof o3) return o3;
596
- if ("object" != typeof o3) return "";
597
- if (Array.isArray(o3)) return t2.apply(null, o3);
598
- if (o3.toString !== Object.prototype.toString && !o3.toString.toString().includes("[native code]")) return o3.toString();
599
- var r2 = "";
600
- for (var l2 in o3) e2.call(o3, l2) && o3[l2] && (r2 = n2(r2, l2));
601
- return r2;
602
- }
603
- function n2(e3, t3) {
604
- return t3 ? e3 ? e3 + " " + t3 : e3 + t3 : e3;
605
- }
606
- We.exports ? (t2.default = t2, We.exports = t2) : window.classNames = t2;
607
- }()), Ie.exports)), Fe = { core: false, base: false };
608
- /*
609
- * React Tooltip
610
- * {@link https://github.com/ReactTooltip/react-tooltip}
611
- * @copyright ReactTooltip Team
612
- * @license MIT
613
- */
614
- function Ve({ css: e2, id: t2 = "react-tooltip-base-styles", type: o2 = "base", ref: n2 }) {
615
- var r2, l2;
616
- if (!e2 || "undefined" == typeof document || Fe[o2]) return;
617
- if ("core" === o2 && "undefined" != typeof process && (null === (r2 = null === process || void 0 === process ? void 0 : process.env) || void 0 === r2 ? void 0 : r2.REACT_TOOLTIP_DISABLE_CORE_STYLES)) return;
618
- if ("base" !== o2 && "undefined" != typeof process && (null === (l2 = null === process || void 0 === process ? void 0 : process.env) || void 0 === l2 ? void 0 : l2.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
619
- "core" === o2 && (t2 = "react-tooltip-core-styles"), n2 || (n2 = {});
620
- const { insertAt: i2 } = n2;
621
- if (document.getElementById(t2)) return;
622
- const c2 = document.head || document.getElementsByTagName("head")[0], s2 = document.createElement("style");
623
- s2.id = t2, s2.type = "text/css", "top" === i2 && c2.firstChild ? c2.insertBefore(s2, c2.firstChild) : c2.appendChild(s2), s2.styleSheet ? s2.styleSheet.cssText = e2 : s2.appendChild(document.createTextNode(e2)), Fe[o2] = true;
624
- }
625
- const qe = async ({ elementReference: e2 = null, tooltipReference: t2 = null, tooltipArrowReference: o2 = null, place: n2 = "top", offset: r2 = 10, strategy: l2 = "absolute", middlewares: i2 = [ke(Number(r2)), Oe({ fallbackAxisSideDirection: "start" }), Re({ padding: 5 })], border: c2 }) => {
626
- if (!e2) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: n2 };
627
- if (null === t2) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: n2 };
628
- const s2 = i2;
629
- return o2 ? (s2.push(Le({ element: o2, padding: 5 })), Ce(e2, t2, { placement: n2, strategy: l2, middleware: s2 }).then(({ x: e3, y: t3, placement: o3, middlewareData: n3 }) => {
630
- var r3, l3;
631
- const i3 = { left: `${e3}px`, top: `${t3}px`, border: c2 }, { x: s3, y: a2 } = null !== (r3 = n3.arrow) && void 0 !== r3 ? r3 : { x: 0, y: 0 }, u2 = null !== (l3 = { top: "bottom", right: "left", bottom: "top", left: "right" }[o3.split("-")[0]]) && void 0 !== l3 ? l3 : "bottom", d2 = c2 && { borderBottom: c2, borderRight: c2 };
632
- let f2 = 0;
633
- if (c2) {
634
- const e4 = `${c2}`.match(/(\d+)px/);
635
- f2 = (null == e4 ? void 0 : e4[1]) ? Number(e4[1]) : 1;
636
- }
637
- return { tooltipStyles: i3, tooltipArrowStyles: { left: null != s3 ? `${s3}px` : "", top: null != a2 ? `${a2}px` : "", right: "", bottom: "", ...d2, [u2]: `-${4 + f2}px` }, place: o3 };
638
- })) : Ce(e2, t2, { placement: "bottom", strategy: l2, middleware: s2 }).then(({ x: e3, y: t3, placement: o3 }) => ({ tooltipStyles: { left: `${e3}px`, top: `${t3}px` }, tooltipArrowStyles: {}, place: o3 }));
639
- }, Ke = (e2, t2) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e2, t2), Xe = (e2, t2, o2) => {
640
- let n2 = null;
641
- const r2 = function(...o3) {
642
- !n2 && (e2.apply(this, o3), n2 = setTimeout(() => {
643
- n2 = null;
644
- }, t2));
645
- };
646
- return r2.cancel = () => {
647
- n2 && (clearTimeout(n2), n2 = null);
648
- }, r2;
649
- }, Ye = (e2) => null !== e2 && !Array.isArray(e2) && "object" == typeof e2, Ze = (e2, t2) => {
650
- if (e2 === t2) return true;
651
- if (Array.isArray(e2) && Array.isArray(t2)) return e2.length === t2.length && e2.every((e3, o3) => Ze(e3, t2[o3]));
652
- if (Array.isArray(e2) !== Array.isArray(t2)) return false;
653
- if (!Ye(e2) || !Ye(t2)) return e2 === t2;
654
- const o2 = Object.keys(e2), n2 = Object.keys(t2);
655
- return o2.length === n2.length && o2.every((o3) => Ze(e2[o3], t2[o3]));
656
- }, Ge = (e2) => {
657
- if (!(e2 instanceof HTMLElement || e2 instanceof SVGElement)) return false;
658
- const t2 = getComputedStyle(e2);
659
- return ["overflow", "overflow-x", "overflow-y"].some((e3) => {
660
- const o2 = t2.getPropertyValue(e3);
661
- return "auto" === o2 || "scroll" === o2;
662
- });
663
- }, Ue = (e2) => {
664
- if (!e2) return null;
665
- let t2 = e2.parentElement;
666
- for (; t2; ) {
667
- if (Ge(t2)) return t2;
668
- t2 = t2.parentElement;
669
- }
670
- return document.scrollingElement || document.documentElement;
671
- }, Je = "undefined" != typeof window ? r : l, Qe = (e2) => {
672
- e2.current && (clearTimeout(e2.current), e2.current = null);
673
- }, et = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
674
- }, detach: () => {
675
- }, setActiveAnchor: () => {
676
- } }, tt = i({ getTooltipData: () => et });
677
- function ot(e2 = "DEFAULT_TOOLTIP_ID") {
678
- return a(tt).getTooltipData(e2);
679
- }
680
- var nt = { 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" }, rt = { 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" };
681
- const lt = ({ forwardRef: e2, id: t2, className: o2, classNameArrow: r2, variant: i2 = "dark", anchorId: a2, anchorSelect: f2, place: p2 = "top", offset: m2 = 10, events: y2 = ["hover"], openOnClick: h2 = false, positionStrategy: v2 = "absolute", middlewares: g2, wrapper: w2, delayShow: b2 = 0, delayHide: x2 = 0, float: _2 = false, hidden: S2 = false, noArrow: E2 = false, clickable: A2 = false, closeOnEsc: T2 = false, closeOnScroll: k2 = false, closeOnResize: R2 = false, openEvents: O2, closeEvents: L2, globalCloseEvents: C2, imperativeModeOnly: D2, style: $2, position: j2, afterShow: N2, afterHide: P2, disableTooltip: B2, content: M2, contentWrapperRef: z2, isOpen: W2, defaultIsOpen: I2 = false, setIsOpen: H2, activeAnchor: F2, setActiveAnchor: V2, border: q2, opacity: K2, arrowColor: X2, role: Y2 = "tooltip" }) => {
682
- var Z2;
683
- const G2 = s(null), U2 = s(null), J2 = s(null), Q2 = s(null), ee2 = s(null), [te2, oe2] = c({ tooltipStyles: {}, tooltipArrowStyles: {}, place: p2 }), [ne2, re2] = c(false), [le2, ie2] = c(false), [ce2, se2] = c(null), ae2 = s(false), ue2 = s(null), { anchorRefs: de2, setActiveAnchor: fe2 } = ot(t2), pe2 = s(false), [me2, ye2] = c([]), he2 = s(false), ve2 = h2 || y2.includes("click"), ge2 = ve2 || (null == O2 ? void 0 : O2.click) || (null == O2 ? void 0 : O2.dblclick) || (null == O2 ? void 0 : O2.mousedown), we2 = O2 ? { ...O2 } : { mouseover: true, focus: true, mouseenter: false, click: false, dblclick: false, mousedown: false };
684
- !O2 && ve2 && Object.assign(we2, { mouseenter: false, focus: false, mouseover: false, click: true });
685
- const be2 = L2 ? { ...L2 } : { mouseout: true, blur: true, mouseleave: false, click: false, dblclick: false, mouseup: false };
686
- !L2 && ve2 && Object.assign(be2, { mouseleave: false, blur: false, mouseout: false });
687
- const xe2 = C2 ? { ...C2 } : { escape: T2 || false, scroll: k2 || false, resize: R2 || false, clickOutsideAnchor: ge2 || false };
688
- D2 && (Object.assign(we2, { mouseenter: false, focus: false, click: false, dblclick: false, mousedown: false }), Object.assign(be2, { mouseleave: false, blur: false, click: false, dblclick: false, mouseup: false }), Object.assign(xe2, { escape: false, scroll: false, resize: false, clickOutsideAnchor: false })), Je(() => (he2.current = true, () => {
689
- he2.current = false;
690
- }), []);
691
- const _e2 = (e3) => {
692
- he2.current && (e3 && ie2(true), setTimeout(() => {
693
- he2.current && (null == H2 || H2(e3), void 0 === W2 && re2(e3));
694
- }, 10));
695
- };
696
- l(() => {
697
- if (void 0 === W2) return () => null;
698
- W2 && ie2(true);
699
- const e3 = setTimeout(() => {
700
- re2(W2);
701
- }, 10);
702
- return () => {
703
- clearTimeout(e3);
704
- };
705
- }, [W2]), l(() => {
706
- if (ne2 !== ae2.current) if (Qe(ee2), ae2.current = ne2, ne2) null == N2 || N2();
707
- else {
708
- const e3 = (() => {
709
- const e4 = getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);
710
- if (!e4) return 0;
711
- const [, t3, o3] = e4;
712
- return Number(t3) * ("ms" === o3 ? 1 : 1e3);
713
- })();
714
- ee2.current = setTimeout(() => {
715
- ie2(false), se2(null), null == P2 || P2();
716
- }, e3 + 25);
717
- }
718
- }, [ne2]);
719
- const Se2 = (e3) => {
720
- oe2((t3) => Ze(t3, e3) ? t3 : e3);
721
- }, Ee2 = (e3 = b2) => {
722
- Qe(J2), le2 ? _e2(true) : J2.current = setTimeout(() => {
723
- _e2(true);
724
- }, e3);
725
- }, Ae2 = (e3 = x2) => {
726
- Qe(Q2), Q2.current = setTimeout(() => {
727
- pe2.current || _e2(false);
728
- }, e3);
729
- }, ke2 = (e3) => {
730
- var t3;
731
- if (!e3) return;
732
- const o3 = null !== (t3 = e3.currentTarget) && void 0 !== t3 ? t3 : e3.target;
733
- if (!(null == o3 ? void 0 : o3.isConnected)) return V2(null), void fe2({ current: null });
734
- b2 ? Ee2() : _e2(true), V2(o3), fe2({ current: o3 }), Qe(Q2);
735
- }, Re2 = () => {
736
- A2 ? Ae2(x2 || 100) : x2 ? Ae2() : _e2(false), Qe(J2);
737
- }, Oe2 = ({ x: e3, y: t3 }) => {
738
- var o3;
739
- const n2 = { getBoundingClientRect: () => ({ x: e3, y: t3, width: 0, height: 0, top: t3, left: e3, right: e3, bottom: t3 }) };
740
- qe({ place: null !== (o3 = null == ce2 ? void 0 : ce2.place) && void 0 !== o3 ? o3 : p2, offset: m2, elementReference: n2, tooltipReference: G2.current, tooltipArrowReference: U2.current, strategy: v2, middlewares: g2, border: q2 }).then((e4) => {
741
- Se2(e4);
742
- });
743
- }, Le2 = (e3) => {
744
- if (!e3) return;
745
- const t3 = e3, o3 = { x: t3.clientX, y: t3.clientY };
746
- Oe2(o3), ue2.current = o3;
747
- }, Ce2 = (e3) => {
748
- var t3;
749
- if (!ne2) return;
750
- const o3 = e3.target;
751
- o3.isConnected && ((null === (t3 = G2.current) || void 0 === t3 ? void 0 : t3.contains(o3)) || [document.querySelector(`[id='${a2}']`), ...me2].some((e4) => null == e4 ? void 0 : e4.contains(o3)) || (_e2(false), Qe(J2)));
752
- }, De2 = Xe(ke2, 50), $e2 = Xe(Re2, 50), je2 = (e3) => {
753
- $e2.cancel(), De2(e3);
754
- }, Ne2 = () => {
755
- De2.cancel(), $e2();
756
- }, Pe2 = u(() => {
757
- var e3, t3;
758
- const o3 = null !== (e3 = null == ce2 ? void 0 : ce2.position) && void 0 !== e3 ? e3 : j2;
759
- o3 ? Oe2(o3) : _2 ? ue2.current && Oe2(ue2.current) : (null == F2 ? void 0 : F2.isConnected) && qe({ place: null !== (t3 = null == ce2 ? void 0 : ce2.place) && void 0 !== t3 ? t3 : p2, offset: m2, elementReference: F2, tooltipReference: G2.current, tooltipArrowReference: U2.current, strategy: v2, middlewares: g2, border: q2 }).then((e4) => {
760
- he2.current && Se2(e4);
761
- });
762
- }, [ne2, F2, M2, $2, p2, null == ce2 ? void 0 : ce2.place, m2, v2, j2, null == ce2 ? void 0 : ce2.position, _2]);
763
- l(() => {
764
- var e3, t3;
765
- const o3 = new Set(de2);
766
- me2.forEach((e4) => {
767
- (null == B2 ? void 0 : B2(e4)) || o3.add({ current: e4 });
768
- });
769
- const n2 = document.querySelector(`[id='${a2}']`);
770
- n2 && !(null == B2 ? void 0 : B2(n2)) && o3.add({ current: n2 });
771
- const r3 = () => {
772
- _e2(false);
773
- }, l2 = Ue(F2), i3 = Ue(G2.current);
774
- xe2.scroll && (window.addEventListener("scroll", r3), null == l2 || l2.addEventListener("scroll", r3), null == i3 || i3.addEventListener("scroll", r3));
775
- let c2 = null;
776
- xe2.resize ? window.addEventListener("resize", r3) : F2 && G2.current && (c2 = Te(F2, G2.current, Pe2, { ancestorResize: true, elementResize: true, layoutShift: true }));
777
- const s2 = (e4) => {
778
- "Escape" === e4.key && _e2(false);
779
- };
780
- xe2.escape && window.addEventListener("keydown", s2), xe2.clickOutsideAnchor && window.addEventListener("click", Ce2);
781
- const u2 = [], d2 = (e4) => {
782
- ne2 && (null == e4 ? void 0 : e4.target) === F2 || ke2(e4);
783
- }, f3 = (e4) => {
784
- ne2 && (null == e4 ? void 0 : e4.target) === F2 && Re2();
785
- }, p3 = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], m3 = ["click", "dblclick", "mousedown", "mouseup"];
786
- Object.entries(we2).forEach(([e4, t4]) => {
787
- t4 && (p3.includes(e4) ? u2.push({ event: e4, listener: je2 }) : m3.includes(e4) && u2.push({ event: e4, listener: d2 }));
788
- }), Object.entries(be2).forEach(([e4, t4]) => {
789
- t4 && (p3.includes(e4) ? u2.push({ event: e4, listener: Ne2 }) : m3.includes(e4) && u2.push({ event: e4, listener: f3 }));
790
- }), _2 && u2.push({ event: "pointermove", listener: Le2 });
791
- const y3 = () => {
792
- pe2.current = true;
793
- }, h3 = () => {
794
- pe2.current = false, Re2();
795
- };
796
- return A2 && !ge2 && (null === (e3 = G2.current) || void 0 === e3 || e3.addEventListener("mouseenter", y3), null === (t3 = G2.current) || void 0 === t3 || t3.addEventListener("mouseleave", h3)), u2.forEach(({ event: e4, listener: t4 }) => {
797
- o3.forEach((o4) => {
798
- var n3;
799
- null === (n3 = o4.current) || void 0 === n3 || n3.addEventListener(e4, t4);
800
- });
801
- }), () => {
802
- var e4, t4;
803
- xe2.scroll && (window.removeEventListener("scroll", r3), null == l2 || l2.removeEventListener("scroll", r3), null == i3 || i3.removeEventListener("scroll", r3)), xe2.resize ? window.removeEventListener("resize", r3) : null == c2 || c2(), xe2.clickOutsideAnchor && window.removeEventListener("click", Ce2), xe2.escape && window.removeEventListener("keydown", s2), A2 && !ge2 && (null === (e4 = G2.current) || void 0 === e4 || e4.removeEventListener("mouseenter", y3), null === (t4 = G2.current) || void 0 === t4 || t4.removeEventListener("mouseleave", h3)), u2.forEach(({ event: e5, listener: t5 }) => {
804
- o3.forEach((o4) => {
805
- var n3;
806
- null === (n3 = o4.current) || void 0 === n3 || n3.removeEventListener(e5, t5);
807
- });
808
- });
809
- };
810
- }, [F2, Pe2, le2, de2, me2, O2, L2, C2, ve2, b2, x2]), l(() => {
811
- var e3, o3;
812
- let n2 = null !== (o3 = null !== (e3 = null == ce2 ? void 0 : ce2.anchorSelect) && void 0 !== e3 ? e3 : f2) && void 0 !== o3 ? o3 : "";
813
- !n2 && t2 && (n2 = `[data-tooltip-id='${t2.replace(/'/g, "\\'")}']`);
814
- const r3 = new MutationObserver((e4) => {
815
- const o4 = [], r4 = [];
816
- e4.forEach((e5) => {
817
- if ("attributes" === e5.type && "data-tooltip-id" === e5.attributeName && (e5.target.getAttribute("data-tooltip-id") === t2 ? o4.push(e5.target) : e5.oldValue === t2 && r4.push(e5.target)), "childList" === e5.type) {
818
- if (F2) {
819
- const t3 = [...e5.removedNodes].filter((e6) => 1 === e6.nodeType);
820
- if (n2) try {
821
- r4.push(...t3.filter((e6) => e6.matches(n2))), r4.push(...t3.flatMap((e6) => [...e6.querySelectorAll(n2)]));
822
- } catch (e6) {
823
- }
824
- t3.some((e6) => {
825
- var t4;
826
- return !!(null === (t4 = null == e6 ? void 0 : e6.contains) || void 0 === t4 ? void 0 : t4.call(e6, F2)) && (ie2(false), _e2(false), V2(null), Qe(J2), Qe(Q2), true);
827
- });
828
- }
829
- if (n2) try {
830
- const t3 = [...e5.addedNodes].filter((e6) => 1 === e6.nodeType);
831
- o4.push(...t3.filter((e6) => e6.matches(n2))), o4.push(...t3.flatMap((e6) => [...e6.querySelectorAll(n2)]));
832
- } catch (e6) {
833
- }
834
- }
835
- }), (o4.length || r4.length) && ye2((e5) => [...e5.filter((e6) => !r4.includes(e6)), ...o4]);
836
- });
837
- return r3.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-tooltip-id"], attributeOldValue: true }), () => {
838
- r3.disconnect();
839
- };
840
- }, [t2, f2, null == ce2 ? void 0 : ce2.anchorSelect, F2]), l(() => {
841
- Pe2();
842
- }, [Pe2]), l(() => {
843
- if (!(null == z2 ? void 0 : z2.current)) return () => null;
844
- const e3 = new ResizeObserver(() => {
845
- setTimeout(() => Pe2());
846
- });
847
- return e3.observe(z2.current), () => {
848
- e3.disconnect();
849
- };
850
- }, [M2, null == z2 ? void 0 : z2.current]), l(() => {
851
- var e3;
852
- const t3 = document.querySelector(`[id='${a2}']`), o3 = [...me2, t3];
853
- F2 && o3.includes(F2) || V2(null !== (e3 = me2[0]) && void 0 !== e3 ? e3 : t3);
854
- }, [a2, me2, F2]), l(() => (I2 && _e2(true), () => {
855
- Qe(J2), Qe(Q2);
856
- }), []), l(() => {
857
- var e3;
858
- let o3 = null !== (e3 = null == ce2 ? void 0 : ce2.anchorSelect) && void 0 !== e3 ? e3 : f2;
859
- if (!o3 && t2 && (o3 = `[data-tooltip-id='${t2.replace(/'/g, "\\'")}']`), o3) try {
860
- const e4 = Array.from(document.querySelectorAll(o3));
861
- ye2(e4);
862
- } catch (e4) {
863
- ye2([]);
864
- }
865
- }, [t2, f2, null == ce2 ? void 0 : ce2.anchorSelect]), l(() => {
866
- J2.current && (Qe(J2), Ee2(b2));
867
- }, [b2]);
868
- const Be2 = null !== (Z2 = null == ce2 ? void 0 : ce2.content) && void 0 !== Z2 ? Z2 : M2, Me2 = ne2 && Object.keys(te2.tooltipStyles).length > 0;
869
- return d(e2, () => ({ open: (e3) => {
870
- if (null == e3 ? void 0 : e3.anchorSelect) try {
871
- document.querySelector(e3.anchorSelect);
872
- } catch (t3) {
873
- return void console.warn(`[react-tooltip] "${e3.anchorSelect}" is not a valid CSS selector`);
874
- }
875
- se2(null != e3 ? e3 : null), (null == e3 ? void 0 : e3.delay) ? Ee2(e3.delay) : _e2(true);
876
- }, close: (e3) => {
877
- (null == e3 ? void 0 : e3.delay) ? Ae2(e3.delay) : _e2(false);
878
- }, activeAnchor: F2, place: te2.place, isOpen: Boolean(le2 && !S2 && Be2 && Me2) })), le2 && !S2 && Be2 ? n.createElement(w2, { id: t2, role: Y2, className: He("react-tooltip", nt.tooltip, rt.tooltip, rt[i2], o2, `react-tooltip__place-${te2.place}`, nt[Me2 ? "show" : "closing"], Me2 ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === v2 && nt.fixed, A2 && nt.clickable), onTransitionEnd: (e3) => {
879
- Qe(ee2), ne2 || "opacity" !== e3.propertyName || (ie2(false), se2(null), null == P2 || P2());
880
- }, style: { ...$2, ...te2.tooltipStyles, opacity: void 0 !== K2 && Me2 ? K2 : void 0 }, ref: G2 }, Be2, n.createElement(w2, { className: He("react-tooltip-arrow", nt.arrow, rt.arrow, r2, E2 && nt.noArrow), style: { ...te2.tooltipArrowStyles, background: X2 ? `linear-gradient(to right bottom, transparent 50%, ${X2} 50%)` : void 0 }, ref: U2 })) : null;
881
- }, it = ({ content: e2 }) => n.createElement("span", { dangerouslySetInnerHTML: { __html: e2 } }), ct = n.forwardRef(({ id: e2, anchorId: t2, anchorSelect: o2, content: r2, html: i2, render: a2, className: u2, classNameArrow: d2, variant: f2 = "dark", place: p2 = "top", offset: m2 = 10, wrapper: y2 = "div", children: h2 = null, events: v2 = ["hover"], openOnClick: g2 = false, positionStrategy: w2 = "absolute", middlewares: b2, delayShow: x2 = 0, delayHide: _2 = 0, float: S2 = false, hidden: E2 = false, noArrow: A2 = false, clickable: T2 = false, closeOnEsc: k2 = false, closeOnScroll: R2 = false, closeOnResize: O2 = false, openEvents: L2, closeEvents: C2, globalCloseEvents: D2, imperativeModeOnly: $2 = false, style: j2, position: N2, isOpen: P2, defaultIsOpen: B2 = false, disableStyleInjection: M2 = false, border: z2, opacity: W2, arrowColor: I2, setIsOpen: H2, afterShow: F2, afterHide: V2, disableTooltip: q2, role: K2 = "tooltip" }, X2) => {
882
- const [Y2, Z2] = c(r2), [G2, U2] = c(i2), [J2, Q2] = c(p2), [ee2, te2] = c(f2), [oe2, ne2] = c(m2), [re2, le2] = c(x2), [ie2, ce2] = c(_2), [se2, ae2] = c(S2), [ue2, de2] = c(E2), [fe2, pe2] = c(y2), [me2, ye2] = c(v2), [he2, ve2] = c(w2), [ge2, we2] = c(null), [be2, xe2] = c(null), _e2 = s(M2), { anchorRefs: Se2, activeAnchor: Ee2 } = ot(e2), Ae2 = (e3) => null == e3 ? void 0 : e3.getAttributeNames().reduce((t3, o3) => {
883
- var n2;
884
- return o3.startsWith("data-tooltip-") && (t3[o3.replace(/^data-tooltip-/, "")] = null !== (n2 = null == e3 ? void 0 : e3.getAttribute(o3)) && void 0 !== n2 ? n2 : null), t3;
885
- }, {}), Te2 = (e3) => {
886
- const t3 = { place: (e4) => {
887
- var t4;
888
- Q2(null !== (t4 = e4) && void 0 !== t4 ? t4 : p2);
889
- }, content: (e4) => {
890
- Z2(null != e4 ? e4 : r2);
891
- }, html: (e4) => {
892
- U2(null != e4 ? e4 : i2);
893
- }, variant: (e4) => {
894
- var t4;
895
- te2(null !== (t4 = e4) && void 0 !== t4 ? t4 : f2);
896
- }, offset: (e4) => {
897
- ne2(null === e4 ? m2 : Number(e4));
898
- }, wrapper: (e4) => {
899
- var t4;
900
- pe2(null !== (t4 = e4) && void 0 !== t4 ? t4 : y2);
901
- }, events: (e4) => {
902
- const t4 = null == e4 ? void 0 : e4.split(" ");
903
- ye2(null != t4 ? t4 : v2);
904
- }, "position-strategy": (e4) => {
905
- var t4;
906
- ve2(null !== (t4 = e4) && void 0 !== t4 ? t4 : w2);
907
- }, "delay-show": (e4) => {
908
- le2(null === e4 ? x2 : Number(e4));
909
- }, "delay-hide": (e4) => {
910
- ce2(null === e4 ? _2 : Number(e4));
911
- }, float: (e4) => {
912
- ae2(null === e4 ? S2 : "true" === e4);
913
- }, hidden: (e4) => {
914
- de2(null === e4 ? E2 : "true" === e4);
915
- }, "class-name": (e4) => {
916
- we2(e4);
917
- } };
918
- Object.values(t3).forEach((e4) => e4(null)), Object.entries(e3).forEach(([e4, o3]) => {
919
- var n2;
920
- null === (n2 = t3[e4]) || void 0 === n2 || n2.call(t3, o3);
921
- });
922
- };
923
- l(() => {
924
- Z2(r2);
925
- }, [r2]), l(() => {
926
- U2(i2);
927
- }, [i2]), l(() => {
928
- Q2(p2);
929
- }, [p2]), l(() => {
930
- te2(f2);
931
- }, [f2]), l(() => {
932
- ne2(m2);
933
- }, [m2]), l(() => {
934
- le2(x2);
935
- }, [x2]), l(() => {
936
- ce2(_2);
937
- }, [_2]), l(() => {
938
- ae2(S2);
939
- }, [S2]), l(() => {
940
- de2(E2);
941
- }, [E2]), l(() => {
942
- ve2(w2);
943
- }, [w2]), l(() => {
944
- _e2.current !== M2 && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
945
- }, [M2]), l(() => {
946
- "undefined" != typeof window && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: "core" === M2, disableBase: M2 } }));
947
- }, []), l(() => {
948
- var n2;
949
- const r3 = new Set(Se2);
950
- let l2 = o2;
951
- if (!l2 && e2 && (l2 = `[data-tooltip-id='${e2.replace(/'/g, "\\'")}']`), l2) try {
952
- document.querySelectorAll(l2).forEach((e3) => {
953
- r3.add({ current: e3 });
954
- });
955
- } catch (n3) {
956
- console.warn(`[react-tooltip] "${l2}" is not a valid CSS selector`);
957
- }
958
- const i3 = document.querySelector(`[id='${t2}']`);
959
- if (i3 && r3.add({ current: i3 }), !r3.size) return () => null;
960
- const c2 = null !== (n2 = null != be2 ? be2 : i3) && void 0 !== n2 ? n2 : Ee2.current, s2 = new MutationObserver((e3) => {
961
- e3.forEach((e4) => {
962
- var t3;
963
- if (!c2 || "attributes" !== e4.type || !(null === (t3 = e4.attributeName) || void 0 === t3 ? void 0 : t3.startsWith("data-tooltip-"))) return;
964
- const o3 = Ae2(c2);
965
- Te2(o3);
966
- });
967
- }), a3 = { attributes: true, childList: false, subtree: false };
968
- if (c2) {
969
- const e3 = Ae2(c2);
970
- Te2(e3), s2.observe(c2, a3);
971
- }
972
- return () => {
973
- s2.disconnect();
974
- };
975
- }, [Se2, Ee2, be2, t2, o2]), l(() => {
976
- (null == j2 ? void 0 : j2.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), z2 && !Ke("border", `${z2}`) && console.warn(`[react-tooltip] "${z2}" is not a valid \`border\`.`), (null == j2 ? void 0 : j2.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), W2 && !Ke("opacity", `${W2}`) && console.warn(`[react-tooltip] "${W2}" is not a valid \`opacity\`.`);
977
- }, []);
978
- let ke2 = h2;
979
- const Re2 = s(null);
980
- if (a2) {
981
- const e3 = a2({ content: (null == be2 ? void 0 : be2.getAttribute("data-tooltip-content")) || Y2 || null, activeAnchor: be2 });
982
- ke2 = e3 ? n.createElement("div", { ref: Re2, className: "react-tooltip-content-wrapper" }, e3) : null;
983
- } else Y2 && (ke2 = Y2);
984
- G2 && (ke2 = n.createElement(it, { content: G2 }));
985
- const Oe2 = { forwardRef: X2, id: e2, anchorId: t2, anchorSelect: o2, className: He(u2, ge2), classNameArrow: d2, content: ke2, contentWrapperRef: Re2, place: J2, variant: ee2, offset: oe2, wrapper: fe2, events: me2, openOnClick: g2, positionStrategy: he2, middlewares: b2, delayShow: re2, delayHide: ie2, float: se2, hidden: ue2, noArrow: A2, clickable: T2, closeOnEsc: k2, closeOnScroll: R2, closeOnResize: O2, openEvents: L2, closeEvents: C2, globalCloseEvents: D2, imperativeModeOnly: $2, style: j2, position: N2, isOpen: P2, defaultIsOpen: B2, border: z2, opacity: W2, arrowColor: I2, setIsOpen: H2, afterShow: F2, afterHide: V2, disableTooltip: q2, activeAnchor: be2, setActiveAnchor: (e3) => xe2(e3), role: K2 };
986
- return n.createElement(lt, { ...Oe2 });
987
- });
988
- "undefined" != typeof window && window.addEventListener("react-tooltip-inject-styles", (e2) => {
989
- e2.detail.disableCore || Ve({ 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" }), e2.detail.disableBase || Ve({ css: "\n.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" });
990
- });
991
- const st = g(b)``, at = g.div`
992
- ${({ theme: e2, $maxWidth: t2 = "320px" }) => `
993
- > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
994
- background-color: ${e2.palette.gray[700]};
995
- border-radius: 8px;
996
- color: ${e2.palette.white};
997
- font-size: ${e2.typography.text.xs};
998
- max-width: ${t2};
999
- padding: ${e2.spacing[0.75]};
1000
- z-index: 999999;
1001
- --rt-opacity: 1;
1002
- }
1003
- `}
1004
- `, ut = f(function({ children: o2, disabled: n2 = false, display: r2 = "inline-block", effect: l2 = "solid", icon: i2, iconColor: a2, iconSize: d2, id: f2, maxWidth: m2, nodeTip: v2, place: g2 = "bottom", tip: b2 = "", title: S2 = "", hide: E2 = "" === b2 && "" === S2 && void 0 === v2, ...A2 }, T2) {
1005
- const k2 = w(), [R2, O2] = c(false), L2 = s(null), C2 = u(() => {
1006
- null !== L2.current && clearTimeout(L2.current), L2.current = setTimeout(() => {
1007
- O2(true);
1008
- }, 100);
1009
- }, []), D2 = u(() => {
1010
- null !== L2.current && clearTimeout(L2.current), L2.current = setTimeout(() => {
1011
- O2(false);
1012
- }, 100);
1013
- }, []);
1014
- return n2 ? e(p, { children: o2 }) : t(st, { "data-tooltip-id": f2, display: r2, onMouseLeave: D2, onMouseMove: C2, ref: T2, role: "tooltip", ...A2, children: [i2 ? e(x, { clickable: true, disabled: n2, icon: i2, iconColor: a2, iconSize: d2 ?? "xxs", iconType: R2 ? "fa-solid" : "fa-light" }) : o2, y(e(at, { $maxWidth: m2, children: t(ct, { delayShow: 500, float: "float" === l2 || void 0, globalCloseEvents: { resize: true }, hidden: E2 || !R2, id: f2, middlewares: [($2 = { fallbackAxisSideDirection: "start" }, { ...Oe($2), options: [$2, j2] }), Me({ mainAxis: 10 })], noArrow: "float" === l2, place: g2, children: [h(S2) ? void 0 : e(_, { color: k2.palette.white, fontWeight: "bold", lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: S2 }), h(b2) ? void 0 : e(_, { color: k2.palette.gray[100], lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: b2 }), h(v2) ? void 0 : v2] }) }), document.getElementById("root") ?? document.body)] });
1015
- var $2, j2;
1016
- });
1017
- export {
1018
- ut as T,
1019
- Te as a,
1020
- Be as u
1021
- };