everest-npm-features 0.0.61 → 0.0.63

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 (247) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  3. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  4. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  5. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  6. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  7. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  8. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  9. package/dist/PlayArrow-71FP5PzJ.js +13 -0
  10. package/dist/Portal-BeS9yJCZ.js +968 -0
  11. package/dist/assets/styles.css +1 -1
  12. package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
  13. package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
  15. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
  17. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
  18. package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
  19. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  20. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  21. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  22. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  23. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
  24. package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
  25. package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
  26. package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
  27. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
  28. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
  29. package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
  30. package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
  31. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
  32. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  33. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  34. package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
  35. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  36. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  37. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  38. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  39. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  40. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  41. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  42. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  43. package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
  44. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
  45. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
  46. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  47. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  48. package/dist/components/RocketRamp/Transactions/index.js +23 -24
  49. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  50. package/dist/components/Shared/FullKyc/edd.js +51 -53
  51. package/dist/components/Shared/FullKyc/index.js +13 -11
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -13
  55. package/dist/components/Shared/HistoryItem/index.js +43 -48
  56. package/dist/components/Shared/Incode/index.js +31 -35
  57. package/dist/components/Shared/MinimalKyc/index.js +60 -65
  58. package/dist/components/Shared/Sumsub/index.js +75 -62
  59. package/dist/components/Shared/loader.js +4 -5
  60. package/dist/components/Shared/tooltip.js +2 -2
  61. package/dist/components/Shared/transition.js +4 -4
  62. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  63. package/dist/components/Wallet/Account/createIban.js +324 -102
  64. package/dist/components/Wallet/Account/eWallet.js +37 -43
  65. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  66. package/dist/components/Wallet/Account/iban.js +41 -45
  67. package/dist/components/Wallet/Account/ibanItem.js +70 -75
  68. package/dist/components/Wallet/Account/index.d.ts +1 -0
  69. package/dist/components/Wallet/Account/index.js +113 -118
  70. package/dist/components/Wallet/Account/sendIban.js +79 -88
  71. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
  72. package/dist/components/Wallet/Buy/form.js +8 -18
  73. package/dist/components/Wallet/Buy/index.js +6 -6
  74. package/dist/components/Wallet/Deposit/index.js +16 -18
  75. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  77. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  79. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  80. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  81. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
  82. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
  83. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  84. package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
  85. package/dist/components/Wallet/History/index.js +23 -797
  86. package/dist/components/Wallet/Home/index.js +13 -14
  87. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
  88. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  89. package/dist/components/Wallet/Portfolio/index.js +48 -51
  90. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  91. package/dist/components/Wallet/Profile/documents.js +164 -176
  92. package/dist/components/Wallet/Profile/index.js +39 -44
  93. package/dist/components/Wallet/Profile/storage.js +39 -47
  94. package/dist/components/Wallet/Receive/index.js +32 -37
  95. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
  96. package/dist/components/Wallet/Sell/form.js +8 -18
  97. package/dist/components/Wallet/Sell/index.js +6 -6
  98. package/dist/components/Wallet/Send/index.js +98 -107
  99. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  100. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  101. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  102. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
  103. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  104. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  105. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  106. package/dist/components/Wallet/Shared/Container/index.js +11 -11
  107. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  108. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  109. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  110. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  111. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  112. package/dist/components/Wallet/Shared/addBank.js +41 -45
  113. package/dist/components/Wallet/Shared/appButton.js +11 -15
  114. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  115. package/dist/components/Wallet/Shared/button.js +7 -7
  116. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  117. package/dist/components/Wallet/Shared/inputField.js +5 -5
  118. package/dist/components/Wallet/Shared/manualSend.js +9 -13
  119. package/dist/components/Wallet/Shared/noData.js +4 -5
  120. package/dist/components/Wallet/Shared/pin.js +25 -27
  121. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  122. package/dist/components/Wallet/Shared/step.js +12 -13
  123. package/dist/components/Wallet/Shared/timer.js +1 -1
  124. package/dist/components/Wallet/SignIn/index.js +17 -17
  125. package/dist/components/Wallet/SignUp/index.js +63 -153
  126. package/dist/components/Wallet/SignUp/terms.js +1 -1
  127. package/dist/components/Wallet/Stake/gems/index.js +71 -69
  128. package/dist/components/Wallet/Stake/id/index.js +77 -84
  129. package/dist/components/Wallet/Stake/index.js +65 -68
  130. package/dist/components/Wallet/Swap/form.js +11 -20
  131. package/dist/components/Wallet/Swap/index.js +5 -5
  132. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  133. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  134. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  135. package/dist/components/Wallet/Withdraw/form.js +6 -17
  136. package/dist/components/Wallet/Withdraw/index.js +5 -5
  137. package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
  138. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  139. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
  140. package/dist/hoc/withThemeProvider.js +5 -732
  141. package/dist/hooks/useDialog/index.js +22 -23
  142. package/dist/hooks/useRrDialog/index.js +43 -46
  143. package/dist/hooks/useSnackBar.js +24 -696
  144. package/dist/icons/buyIcon.js +1 -1
  145. package/dist/icons/canceledBuyIcon.js +1 -1
  146. package/dist/icons/canceledRedeemIcon.js +1 -1
  147. package/dist/icons/failedBuyIcon.js +2 -2
  148. package/dist/icons/failedRedeemIcon.js +2 -2
  149. package/dist/icons/pendingBuyIcon.js +1 -1
  150. package/dist/icons/pendingRedeemIcon.js +1 -1
  151. package/dist/icons/redeemIcon.js +1 -1
  152. package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
  153. package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
  154. package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
  155. package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
  156. package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
  157. package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
  158. package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
  159. package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
  160. package/dist/main.js +7 -7
  161. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  162. package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
  163. package/dist/otpForm-DeeegaX2.js +7378 -0
  164. package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
  165. package/dist/styles.module-DFoezEqS.js +28 -0
  166. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  167. package/dist/tooltip-BW0UyWw7.js +2129 -0
  168. package/dist/util/constants.d.ts +1 -0
  169. package/dist/util/constants.js +72 -71
  170. package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
  171. package/package.json +6 -6
  172. package/dist/Alert-DzsbFW3-.js +0 -369
  173. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  174. package/dist/Avatar-1XklXr4O.js +0 -281
  175. package/dist/Backdrop-CioURPVG.js +0 -359
  176. package/dist/Box-B0YSYLco.js +0 -59
  177. package/dist/Button-Df4vgU24.js +0 -663
  178. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  179. package/dist/CardContent-D9wTdpu-.js +0 -141
  180. package/dist/CircularProgress-xZA3lvba.js +0 -252
  181. package/dist/Close-CxzDL3J-.js +0 -9
  182. package/dist/Container-urNKV7hm.js +0 -181
  183. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  184. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  185. package/dist/DialogContent-BMwlOnbW.js +0 -567
  186. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  187. package/dist/Divider-BShhMFf4.js +0 -297
  188. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  189. package/dist/FormControl-RtZDQMdA.js +0 -258
  190. package/dist/FormControlLabel-BliKW48y.js +0 -519
  191. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  192. package/dist/Grid-CFe3amXO.js +0 -410
  193. package/dist/Grow-CnGtel3u.js +0 -196
  194. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  195. package/dist/IconButton-DHm-hucF.js +0 -297
  196. package/dist/InputAdornment-DMiED3JH.js +0 -173
  197. package/dist/Link-DBA9Yifs.js +0 -266
  198. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  199. package/dist/Menu-DLYFFrEk.js +0 -1239
  200. package/dist/MenuItem-DUdYOJr4.js +0 -271
  201. package/dist/Modal-CFIQ_s3T.js +0 -743
  202. package/dist/Paper-Bgt2WXI6.js +0 -186
  203. package/dist/PlayArrow-Bjz9LxhD.js +0 -13
  204. package/dist/Popper-BBAoiZKn.js +0 -1409
  205. package/dist/Portal-BMAxiQwe.js +0 -69
  206. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  207. package/dist/Select-CB5yWmyn.js +0 -1886
  208. package/dist/Slide-B9Nw0LZ4.js +0 -235
  209. package/dist/Stack-k55YTxET.js +0 -172
  210. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  211. package/dist/TextField-DPpRUQe3.js +0 -978
  212. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  213. package/dist/Typography-pAaje37G.js +0 -260
  214. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  215. package/dist/clsx-BTaloaeC.js +0 -264
  216. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  217. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  218. package/dist/createTheme-CD19zQB7.js +0 -3825
  219. package/dist/debounce-46wSf_lW.js +0 -15
  220. package/dist/defaultTheme-C35y5cLB.js +0 -5
  221. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  222. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  223. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  224. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  225. package/dist/exactProp-C1Lmtwf_.js +0 -13
  226. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  227. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  228. package/dist/index-B0Z-Gjno.js +0 -22
  229. package/dist/index-DUcLo3x5.js +0 -43
  230. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  231. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  232. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  233. package/dist/memoTheme-yHaPezod.js +0 -15
  234. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  235. package/dist/radioButton-CzlYB0Lh.js +0 -402
  236. package/dist/refType-BsTH3qnM.js +0 -56
  237. package/dist/styles.module-CHPRGltL.js +0 -28
  238. package/dist/tooltip-3UvETWtS.js +0 -740
  239. package/dist/useControlled-nm4pBabJ.js +0 -31
  240. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  241. package/dist/useFormControl-CatNKXAi.js +0 -10
  242. package/dist/useId-CK6Kn3Tn.js +0 -21
  243. package/dist/useSlot-CW7SOYlh.js +0 -125
  244. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  245. package/dist/useTheme-BQJ5lp0i.js +0 -11
  246. package/dist/useTheme-S5_DHFsQ.js +0 -17
  247. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -0,0 +1,2129 @@
1
+ import { jsx as ne, jsxs as wt } from "react/jsx-runtime";
2
+ import * as C from "react";
3
+ import uo from "react";
4
+ import { styled as mo, tooltipClasses as Ot } from "@mui/material";
5
+ import { g as Lt, a as Wt, P as r, d as It, s as tt, u as Vt, m as ct, c as Ut, b as xt, e as Ht } from "./memoTheme-DnE8lj0t.js";
6
+ import { o as Tt, P as vo, e as ho, H as Ze, r as Ft, c as st, h as Pt, i as go, j as qt, k as yo, b as Ye, l as bo, f as wo, d as Et, m as Oo, g as Xe, G as xo, n as To, p as Po } from "./Portal-BeS9yJCZ.js";
7
+ function Rt(t) {
8
+ try {
9
+ return t.matches(":focus-visible");
10
+ } catch {
11
+ process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
12
+ `));
13
+ }
14
+ return !1;
15
+ }
16
+ var W = "top", z = "bottom", Y = "right", I = "left", ft = "auto", Ve = [W, z, Y, I], Te = "start", We = "end", Eo = "clippingParents", zt = "viewport", ke = "popper", Ro = "reference", At = /* @__PURE__ */ Ve.reduce(function(t, e) {
17
+ return t.concat([e + "-" + Te, e + "-" + We]);
18
+ }, []), Yt = /* @__PURE__ */ [].concat(Ve, [ft]).reduce(function(t, e) {
19
+ return t.concat([e, e + "-" + Te, e + "-" + We]);
20
+ }, []), Ao = "beforeRead", Mo = "read", Co = "afterRead", jo = "beforeMain", $o = "main", Do = "afterMain", So = "beforeWrite", ko = "write", Bo = "afterWrite", No = [Ao, Mo, Co, jo, $o, Do, So, ko, Bo];
21
+ function te(t) {
22
+ return t ? (t.nodeName || "").toLowerCase() : null;
23
+ }
24
+ function V(t) {
25
+ if (t == null)
26
+ return window;
27
+ if (t.toString() !== "[object Window]") {
28
+ var e = t.ownerDocument;
29
+ return e && e.defaultView || window;
30
+ }
31
+ return t;
32
+ }
33
+ function me(t) {
34
+ var e = V(t).Element;
35
+ return t instanceof e || t instanceof Element;
36
+ }
37
+ function q(t) {
38
+ var e = V(t).HTMLElement;
39
+ return t instanceof e || t instanceof HTMLElement;
40
+ }
41
+ function ut(t) {
42
+ if (typeof ShadowRoot > "u")
43
+ return !1;
44
+ var e = V(t).ShadowRoot;
45
+ return t instanceof e || t instanceof ShadowRoot;
46
+ }
47
+ function Lo(t) {
48
+ var e = t.state;
49
+ Object.keys(e.elements).forEach(function(o) {
50
+ var n = e.styles[o] || {}, a = e.attributes[o] || {}, s = e.elements[o];
51
+ !q(s) || !te(s) || (Object.assign(s.style, n), Object.keys(a).forEach(function(c) {
52
+ var i = a[c];
53
+ i === !1 ? s.removeAttribute(c) : s.setAttribute(c, i === !0 ? "" : i);
54
+ }));
55
+ });
56
+ }
57
+ function Wo(t) {
58
+ var e = t.state, o = {
59
+ popper: {
60
+ position: e.options.strategy,
61
+ left: "0",
62
+ top: "0",
63
+ margin: "0"
64
+ },
65
+ arrow: {
66
+ position: "absolute"
67
+ },
68
+ reference: {}
69
+ };
70
+ return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
71
+ Object.keys(e.elements).forEach(function(n) {
72
+ var a = e.elements[n], s = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : o[n]), i = c.reduce(function(p, f) {
73
+ return p[f] = "", p;
74
+ }, {});
75
+ !q(a) || !te(a) || (Object.assign(a.style, i), Object.keys(s).forEach(function(p) {
76
+ a.removeAttribute(p);
77
+ }));
78
+ });
79
+ };
80
+ }
81
+ const Io = {
82
+ name: "applyStyles",
83
+ enabled: !0,
84
+ phase: "write",
85
+ fn: Lo,
86
+ effect: Wo,
87
+ requires: ["computeStyles"]
88
+ };
89
+ function ee(t) {
90
+ return t.split("-")[0];
91
+ }
92
+ var de = Math.max, _e = Math.min, Pe = Math.round;
93
+ function pt() {
94
+ var t = navigator.userAgentData;
95
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
96
+ return e.brand + "/" + e.version;
97
+ }).join(" ") : navigator.userAgent;
98
+ }
99
+ function Xt() {
100
+ return !/^((?!chrome|android).)*safari/i.test(pt());
101
+ }
102
+ function Ee(t, e, o) {
103
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
104
+ var n = t.getBoundingClientRect(), a = 1, s = 1;
105
+ e && q(t) && (a = t.offsetWidth > 0 && Pe(n.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && Pe(n.height) / t.offsetHeight || 1);
106
+ var c = me(t) ? V(t) : window, i = c.visualViewport, p = !Xt() && o, f = (n.left + (p && i ? i.offsetLeft : 0)) / a, l = (n.top + (p && i ? i.offsetTop : 0)) / s, g = n.width / a, x = n.height / s;
107
+ return {
108
+ width: g,
109
+ height: x,
110
+ top: l,
111
+ right: f + g,
112
+ bottom: l + x,
113
+ left: f,
114
+ x: f,
115
+ y: l
116
+ };
117
+ }
118
+ function dt(t) {
119
+ var e = Ee(t), o = t.offsetWidth, n = t.offsetHeight;
120
+ return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
121
+ x: t.offsetLeft,
122
+ y: t.offsetTop,
123
+ width: o,
124
+ height: n
125
+ };
126
+ }
127
+ function Gt(t, e) {
128
+ var o = e.getRootNode && e.getRootNode();
129
+ if (t.contains(e))
130
+ return !0;
131
+ if (o && ut(o)) {
132
+ var n = e;
133
+ do {
134
+ if (n && t.isSameNode(n))
135
+ return !0;
136
+ n = n.parentNode || n.host;
137
+ } while (n);
138
+ }
139
+ return !1;
140
+ }
141
+ function ae(t) {
142
+ return V(t).getComputedStyle(t);
143
+ }
144
+ function Vo(t) {
145
+ return ["table", "td", "th"].indexOf(te(t)) >= 0;
146
+ }
147
+ function pe(t) {
148
+ return ((me(t) ? t.ownerDocument : (
149
+ // $FlowFixMe[prop-missing]
150
+ t.document
151
+ )) || window.document).documentElement;
152
+ }
153
+ function ot(t) {
154
+ return te(t) === "html" ? t : (
155
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
156
+ // $FlowFixMe[incompatible-return]
157
+ // $FlowFixMe[prop-missing]
158
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
159
+ t.parentNode || // DOM Element detected
160
+ (ut(t) ? t.host : null) || // ShadowRoot detected
161
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
162
+ pe(t)
163
+ );
164
+ }
165
+ function Mt(t) {
166
+ return !q(t) || // https://github.com/popperjs/popper-core/issues/837
167
+ ae(t).position === "fixed" ? null : t.offsetParent;
168
+ }
169
+ function Uo(t) {
170
+ var e = /firefox/i.test(pt()), o = /Trident/i.test(pt());
171
+ if (o && q(t)) {
172
+ var n = ae(t);
173
+ if (n.position === "fixed")
174
+ return null;
175
+ }
176
+ var a = ot(t);
177
+ for (ut(a) && (a = a.host); q(a) && ["html", "body"].indexOf(te(a)) < 0; ) {
178
+ var s = ae(a);
179
+ if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
180
+ return a;
181
+ a = a.parentNode;
182
+ }
183
+ return null;
184
+ }
185
+ function Ue(t) {
186
+ for (var e = V(t), o = Mt(t); o && Vo(o) && ae(o).position === "static"; )
187
+ o = Mt(o);
188
+ return o && (te(o) === "html" || te(o) === "body" && ae(o).position === "static") ? e : o || Uo(t) || e;
189
+ }
190
+ function mt(t) {
191
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
192
+ }
193
+ function Ne(t, e, o) {
194
+ return de(t, _e(e, o));
195
+ }
196
+ function Ho(t, e, o) {
197
+ var n = Ne(t, e, o);
198
+ return n > o ? o : n;
199
+ }
200
+ function Kt() {
201
+ return {
202
+ top: 0,
203
+ right: 0,
204
+ bottom: 0,
205
+ left: 0
206
+ };
207
+ }
208
+ function Jt(t) {
209
+ return Object.assign({}, Kt(), t);
210
+ }
211
+ function Qt(t, e) {
212
+ return e.reduce(function(o, n) {
213
+ return o[n] = t, o;
214
+ }, {});
215
+ }
216
+ var Fo = function(e, o) {
217
+ return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
218
+ placement: o.placement
219
+ })) : e, Jt(typeof e != "number" ? e : Qt(e, Ve));
220
+ };
221
+ function qo(t) {
222
+ var e, o = t.state, n = t.name, a = t.options, s = o.elements.arrow, c = o.modifiersData.popperOffsets, i = ee(o.placement), p = mt(i), f = [I, Y].indexOf(i) >= 0, l = f ? "height" : "width";
223
+ if (!(!s || !c)) {
224
+ var g = Fo(a.padding, o), x = dt(s), u = p === "y" ? W : I, T = p === "y" ? z : Y, m = o.rects.reference[l] + o.rects.reference[p] - c[p] - o.rects.popper[l], h = c[p] - o.rects.reference[p], w = Ue(s), E = w ? p === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, O = m / 2 - h / 2, d = g[u], y = E - x[l] - g[T], b = E / 2 - x[l] / 2 + O, R = Ne(d, b, y), D = p;
225
+ o.modifiersData[n] = (e = {}, e[D] = R, e.centerOffset = R - b, e);
226
+ }
227
+ }
228
+ function zo(t) {
229
+ var e = t.state, o = t.options, n = o.element, a = n === void 0 ? "[data-popper-arrow]" : n;
230
+ a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Gt(e.elements.popper, a) && (e.elements.arrow = a));
231
+ }
232
+ const Yo = {
233
+ name: "arrow",
234
+ enabled: !0,
235
+ phase: "main",
236
+ fn: qo,
237
+ effect: zo,
238
+ requires: ["popperOffsets"],
239
+ requiresIfExists: ["preventOverflow"]
240
+ };
241
+ function Re(t) {
242
+ return t.split("-")[1];
243
+ }
244
+ var Xo = {
245
+ top: "auto",
246
+ right: "auto",
247
+ bottom: "auto",
248
+ left: "auto"
249
+ };
250
+ function Go(t, e) {
251
+ var o = t.x, n = t.y, a = e.devicePixelRatio || 1;
252
+ return {
253
+ x: Pe(o * a) / a || 0,
254
+ y: Pe(n * a) / a || 0
255
+ };
256
+ }
257
+ function Ct(t) {
258
+ var e, o = t.popper, n = t.popperRect, a = t.placement, s = t.variation, c = t.offsets, i = t.position, p = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, x = c.x, u = x === void 0 ? 0 : x, T = c.y, m = T === void 0 ? 0 : T, h = typeof l == "function" ? l({
259
+ x: u,
260
+ y: m
261
+ }) : {
262
+ x: u,
263
+ y: m
264
+ };
265
+ u = h.x, m = h.y;
266
+ var w = c.hasOwnProperty("x"), E = c.hasOwnProperty("y"), O = I, d = W, y = window;
267
+ if (f) {
268
+ var b = Ue(o), R = "clientHeight", D = "clientWidth";
269
+ if (b === V(o) && (b = pe(o), ae(b).position !== "static" && i === "absolute" && (R = "scrollHeight", D = "scrollWidth")), b = b, a === W || (a === I || a === Y) && s === We) {
270
+ d = z;
271
+ var A = g && b === y && y.visualViewport ? y.visualViewport.height : (
272
+ // $FlowFixMe[prop-missing]
273
+ b[R]
274
+ );
275
+ m -= A - n.height, m *= p ? 1 : -1;
276
+ }
277
+ if (a === I || (a === W || a === z) && s === We) {
278
+ O = Y;
279
+ var P = g && b === y && y.visualViewport ? y.visualViewport.width : (
280
+ // $FlowFixMe[prop-missing]
281
+ b[D]
282
+ );
283
+ u -= P - n.width, u *= p ? 1 : -1;
284
+ }
285
+ }
286
+ var M = Object.assign({
287
+ position: i
288
+ }, f && Xo), L = l === !0 ? Go({
289
+ x: u,
290
+ y: m
291
+ }, V(o)) : {
292
+ x: u,
293
+ y: m
294
+ };
295
+ if (u = L.x, m = L.y, p) {
296
+ var j;
297
+ return Object.assign({}, M, (j = {}, j[d] = E ? "0" : "", j[O] = w ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", j));
298
+ }
299
+ return Object.assign({}, M, (e = {}, e[d] = E ? m + "px" : "", e[O] = w ? u + "px" : "", e.transform = "", e));
300
+ }
301
+ function Ko(t) {
302
+ var e = t.state, o = t.options, n = o.gpuAcceleration, a = n === void 0 ? !0 : n, s = o.adaptive, c = s === void 0 ? !0 : s, i = o.roundOffsets, p = i === void 0 ? !0 : i, f = {
303
+ placement: ee(e.placement),
304
+ variation: Re(e.placement),
305
+ popper: e.elements.popper,
306
+ popperRect: e.rects.popper,
307
+ gpuAcceleration: a,
308
+ isFixed: e.options.strategy === "fixed"
309
+ };
310
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ct(Object.assign({}, f, {
311
+ offsets: e.modifiersData.popperOffsets,
312
+ position: e.options.strategy,
313
+ adaptive: c,
314
+ roundOffsets: p
315
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ct(Object.assign({}, f, {
316
+ offsets: e.modifiersData.arrow,
317
+ position: "absolute",
318
+ adaptive: !1,
319
+ roundOffsets: p
320
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
321
+ "data-popper-placement": e.placement
322
+ });
323
+ }
324
+ const Jo = {
325
+ name: "computeStyles",
326
+ enabled: !0,
327
+ phase: "beforeWrite",
328
+ fn: Ko,
329
+ data: {}
330
+ };
331
+ var Ge = {
332
+ passive: !0
333
+ };
334
+ function Qo(t) {
335
+ var e = t.state, o = t.instance, n = t.options, a = n.scroll, s = a === void 0 ? !0 : a, c = n.resize, i = c === void 0 ? !0 : c, p = V(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
336
+ return s && f.forEach(function(l) {
337
+ l.addEventListener("scroll", o.update, Ge);
338
+ }), i && p.addEventListener("resize", o.update, Ge), function() {
339
+ s && f.forEach(function(l) {
340
+ l.removeEventListener("scroll", o.update, Ge);
341
+ }), i && p.removeEventListener("resize", o.update, Ge);
342
+ };
343
+ }
344
+ const Zo = {
345
+ name: "eventListeners",
346
+ enabled: !0,
347
+ phase: "write",
348
+ fn: function() {
349
+ },
350
+ effect: Qo,
351
+ data: {}
352
+ };
353
+ var _o = {
354
+ left: "right",
355
+ right: "left",
356
+ bottom: "top",
357
+ top: "bottom"
358
+ };
359
+ function Qe(t) {
360
+ return t.replace(/left|right|bottom|top/g, function(e) {
361
+ return _o[e];
362
+ });
363
+ }
364
+ var er = {
365
+ start: "end",
366
+ end: "start"
367
+ };
368
+ function jt(t) {
369
+ return t.replace(/start|end/g, function(e) {
370
+ return er[e];
371
+ });
372
+ }
373
+ function vt(t) {
374
+ var e = V(t), o = e.pageXOffset, n = e.pageYOffset;
375
+ return {
376
+ scrollLeft: o,
377
+ scrollTop: n
378
+ };
379
+ }
380
+ function ht(t) {
381
+ return Ee(pe(t)).left + vt(t).scrollLeft;
382
+ }
383
+ function tr(t, e) {
384
+ var o = V(t), n = pe(t), a = o.visualViewport, s = n.clientWidth, c = n.clientHeight, i = 0, p = 0;
385
+ if (a) {
386
+ s = a.width, c = a.height;
387
+ var f = Xt();
388
+ (f || !f && e === "fixed") && (i = a.offsetLeft, p = a.offsetTop);
389
+ }
390
+ return {
391
+ width: s,
392
+ height: c,
393
+ x: i + ht(t),
394
+ y: p
395
+ };
396
+ }
397
+ function or(t) {
398
+ var e, o = pe(t), n = vt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, s = de(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = de(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + ht(t), p = -n.scrollTop;
399
+ return ae(a || o).direction === "rtl" && (i += de(o.clientWidth, a ? a.clientWidth : 0) - s), {
400
+ width: s,
401
+ height: c,
402
+ x: i,
403
+ y: p
404
+ };
405
+ }
406
+ function gt(t) {
407
+ var e = ae(t), o = e.overflow, n = e.overflowX, a = e.overflowY;
408
+ return /auto|scroll|overlay|hidden/.test(o + a + n);
409
+ }
410
+ function Zt(t) {
411
+ return ["html", "body", "#document"].indexOf(te(t)) >= 0 ? t.ownerDocument.body : q(t) && gt(t) ? t : Zt(ot(t));
412
+ }
413
+ function Le(t, e) {
414
+ var o;
415
+ e === void 0 && (e = []);
416
+ var n = Zt(t), a = n === ((o = t.ownerDocument) == null ? void 0 : o.body), s = V(n), c = a ? [s].concat(s.visualViewport || [], gt(n) ? n : []) : n, i = e.concat(c);
417
+ return a ? i : (
418
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
419
+ i.concat(Le(ot(c)))
420
+ );
421
+ }
422
+ function lt(t) {
423
+ return Object.assign({}, t, {
424
+ left: t.x,
425
+ top: t.y,
426
+ right: t.x + t.width,
427
+ bottom: t.y + t.height
428
+ });
429
+ }
430
+ function rr(t, e) {
431
+ var o = Ee(t, !1, e === "fixed");
432
+ return o.top = o.top + t.clientTop, o.left = o.left + t.clientLeft, o.bottom = o.top + t.clientHeight, o.right = o.left + t.clientWidth, o.width = t.clientWidth, o.height = t.clientHeight, o.x = o.left, o.y = o.top, o;
433
+ }
434
+ function $t(t, e, o) {
435
+ return e === zt ? lt(tr(t, o)) : me(e) ? rr(e, o) : lt(or(pe(t)));
436
+ }
437
+ function nr(t) {
438
+ var e = Le(ot(t)), o = ["absolute", "fixed"].indexOf(ae(t).position) >= 0, n = o && q(t) ? Ue(t) : t;
439
+ return me(n) ? e.filter(function(a) {
440
+ return me(a) && Gt(a, n) && te(a) !== "body";
441
+ }) : [];
442
+ }
443
+ function ar(t, e, o, n) {
444
+ var a = e === "clippingParents" ? nr(t) : [].concat(e), s = [].concat(a, [o]), c = s[0], i = s.reduce(function(p, f) {
445
+ var l = $t(t, f, n);
446
+ return p.top = de(l.top, p.top), p.right = _e(l.right, p.right), p.bottom = _e(l.bottom, p.bottom), p.left = de(l.left, p.left), p;
447
+ }, $t(t, c, n));
448
+ return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
449
+ }
450
+ function _t(t) {
451
+ var e = t.reference, o = t.element, n = t.placement, a = n ? ee(n) : null, s = n ? Re(n) : null, c = e.x + e.width / 2 - o.width / 2, i = e.y + e.height / 2 - o.height / 2, p;
452
+ switch (a) {
453
+ case W:
454
+ p = {
455
+ x: c,
456
+ y: e.y - o.height
457
+ };
458
+ break;
459
+ case z:
460
+ p = {
461
+ x: c,
462
+ y: e.y + e.height
463
+ };
464
+ break;
465
+ case Y:
466
+ p = {
467
+ x: e.x + e.width,
468
+ y: i
469
+ };
470
+ break;
471
+ case I:
472
+ p = {
473
+ x: e.x - o.width,
474
+ y: i
475
+ };
476
+ break;
477
+ default:
478
+ p = {
479
+ x: e.x,
480
+ y: e.y
481
+ };
482
+ }
483
+ var f = a ? mt(a) : null;
484
+ if (f != null) {
485
+ var l = f === "y" ? "height" : "width";
486
+ switch (s) {
487
+ case Te:
488
+ p[f] = p[f] - (e[l] / 2 - o[l] / 2);
489
+ break;
490
+ case We:
491
+ p[f] = p[f] + (e[l] / 2 - o[l] / 2);
492
+ break;
493
+ }
494
+ }
495
+ return p;
496
+ }
497
+ function Ie(t, e) {
498
+ e === void 0 && (e = {});
499
+ var o = e, n = o.placement, a = n === void 0 ? t.placement : n, s = o.strategy, c = s === void 0 ? t.strategy : s, i = o.boundary, p = i === void 0 ? Eo : i, f = o.rootBoundary, l = f === void 0 ? zt : f, g = o.elementContext, x = g === void 0 ? ke : g, u = o.altBoundary, T = u === void 0 ? !1 : u, m = o.padding, h = m === void 0 ? 0 : m, w = Jt(typeof h != "number" ? h : Qt(h, Ve)), E = x === ke ? Ro : ke, O = t.rects.popper, d = t.elements[T ? E : x], y = ar(me(d) ? d : d.contextElement || pe(t.elements.popper), p, l, c), b = Ee(t.elements.reference), R = _t({
500
+ reference: b,
501
+ element: O,
502
+ strategy: "absolute",
503
+ placement: a
504
+ }), D = lt(Object.assign({}, O, R)), A = x === ke ? D : b, P = {
505
+ top: y.top - A.top + w.top,
506
+ bottom: A.bottom - y.bottom + w.bottom,
507
+ left: y.left - A.left + w.left,
508
+ right: A.right - y.right + w.right
509
+ }, M = t.modifiersData.offset;
510
+ if (x === ke && M) {
511
+ var L = M[a];
512
+ Object.keys(P).forEach(function(j) {
513
+ var X = [Y, z].indexOf(j) >= 0 ? 1 : -1, G = [W, z].indexOf(j) >= 0 ? "y" : "x";
514
+ P[j] += L[G] * X;
515
+ });
516
+ }
517
+ return P;
518
+ }
519
+ function ir(t, e) {
520
+ e === void 0 && (e = {});
521
+ var o = e, n = o.placement, a = o.boundary, s = o.rootBoundary, c = o.padding, i = o.flipVariations, p = o.allowedAutoPlacements, f = p === void 0 ? Yt : p, l = Re(n), g = l ? i ? At : At.filter(function(T) {
522
+ return Re(T) === l;
523
+ }) : Ve, x = g.filter(function(T) {
524
+ return f.indexOf(T) >= 0;
525
+ });
526
+ x.length === 0 && (x = g);
527
+ var u = x.reduce(function(T, m) {
528
+ return T[m] = Ie(t, {
529
+ placement: m,
530
+ boundary: a,
531
+ rootBoundary: s,
532
+ padding: c
533
+ })[ee(m)], T;
534
+ }, {});
535
+ return Object.keys(u).sort(function(T, m) {
536
+ return u[T] - u[m];
537
+ });
538
+ }
539
+ function sr(t) {
540
+ if (ee(t) === ft)
541
+ return [];
542
+ var e = Qe(t);
543
+ return [jt(t), e, jt(e)];
544
+ }
545
+ function pr(t) {
546
+ var e = t.state, o = t.options, n = t.name;
547
+ if (!e.modifiersData[n]._skip) {
548
+ for (var a = o.mainAxis, s = a === void 0 ? !0 : a, c = o.altAxis, i = c === void 0 ? !0 : c, p = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u, m = o.allowedAutoPlacements, h = e.options.placement, w = ee(h), E = w === h, O = p || (E || !T ? [Qe(h)] : sr(h)), d = [h].concat(O).reduce(function(K, U) {
549
+ return K.concat(ee(U) === ft ? ir(e, {
550
+ placement: U,
551
+ boundary: l,
552
+ rootBoundary: g,
553
+ padding: f,
554
+ flipVariations: T,
555
+ allowedAutoPlacements: m
556
+ }) : U);
557
+ }, []), y = e.rects.reference, b = e.rects.popper, R = /* @__PURE__ */ new Map(), D = !0, A = d[0], P = 0; P < d.length; P++) {
558
+ var M = d[P], L = ee(M), j = Re(M) === Te, X = [W, z].indexOf(L) >= 0, G = X ? "width" : "height", S = Ie(e, {
559
+ placement: M,
560
+ boundary: l,
561
+ rootBoundary: g,
562
+ altBoundary: x,
563
+ padding: f
564
+ }), $ = X ? j ? Y : I : j ? z : W;
565
+ y[G] > b[G] && ($ = Qe($));
566
+ var N = Qe($), oe = [];
567
+ if (s && oe.push(S[L] <= 0), i && oe.push(S[$] <= 0, S[N] <= 0), oe.every(function(K) {
568
+ return K;
569
+ })) {
570
+ A = M, D = !1;
571
+ break;
572
+ }
573
+ R.set(M, oe);
574
+ }
575
+ if (D)
576
+ for (var B = T ? 3 : 1, ve = function(U) {
577
+ var ie = d.find(function(se) {
578
+ var H = R.get(se);
579
+ if (H)
580
+ return H.slice(0, U).every(function(ge) {
581
+ return ge;
582
+ });
583
+ });
584
+ if (ie)
585
+ return A = ie, "break";
586
+ }, re = B; re > 0; re--) {
587
+ var he = ve(re);
588
+ if (he === "break") break;
589
+ }
590
+ e.placement !== A && (e.modifiersData[n]._skip = !0, e.placement = A, e.reset = !0);
591
+ }
592
+ }
593
+ const lr = {
594
+ name: "flip",
595
+ enabled: !0,
596
+ phase: "main",
597
+ fn: pr,
598
+ requiresIfExists: ["offset"],
599
+ data: {
600
+ _skip: !1
601
+ }
602
+ };
603
+ function Dt(t, e, o) {
604
+ return o === void 0 && (o = {
605
+ x: 0,
606
+ y: 0
607
+ }), {
608
+ top: t.top - e.height - o.y,
609
+ right: t.right - e.width + o.x,
610
+ bottom: t.bottom - e.height + o.y,
611
+ left: t.left - e.width - o.x
612
+ };
613
+ }
614
+ function St(t) {
615
+ return [W, Y, z, I].some(function(e) {
616
+ return t[e] >= 0;
617
+ });
618
+ }
619
+ function cr(t) {
620
+ var e = t.state, o = t.name, n = e.rects.reference, a = e.rects.popper, s = e.modifiersData.preventOverflow, c = Ie(e, {
621
+ elementContext: "reference"
622
+ }), i = Ie(e, {
623
+ altBoundary: !0
624
+ }), p = Dt(c, n), f = Dt(i, a, s), l = St(p), g = St(f);
625
+ e.modifiersData[o] = {
626
+ referenceClippingOffsets: p,
627
+ popperEscapeOffsets: f,
628
+ isReferenceHidden: l,
629
+ hasPopperEscaped: g
630
+ }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
631
+ "data-popper-reference-hidden": l,
632
+ "data-popper-escaped": g
633
+ });
634
+ }
635
+ const fr = {
636
+ name: "hide",
637
+ enabled: !0,
638
+ phase: "main",
639
+ requiresIfExists: ["preventOverflow"],
640
+ fn: cr
641
+ };
642
+ function ur(t, e, o) {
643
+ var n = ee(t), a = [I, W].indexOf(n) >= 0 ? -1 : 1, s = typeof o == "function" ? o(Object.assign({}, e, {
644
+ placement: t
645
+ })) : o, c = s[0], i = s[1];
646
+ return c = c || 0, i = (i || 0) * a, [I, Y].indexOf(n) >= 0 ? {
647
+ x: i,
648
+ y: c
649
+ } : {
650
+ x: c,
651
+ y: i
652
+ };
653
+ }
654
+ function dr(t) {
655
+ var e = t.state, o = t.options, n = t.name, a = o.offset, s = a === void 0 ? [0, 0] : a, c = Yt.reduce(function(l, g) {
656
+ return l[g] = ur(g, e.rects, s), l;
657
+ }, {}), i = c[e.placement], p = i.x, f = i.y;
658
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += p, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = c;
659
+ }
660
+ const mr = {
661
+ name: "offset",
662
+ enabled: !0,
663
+ phase: "main",
664
+ requires: ["popperOffsets"],
665
+ fn: dr
666
+ };
667
+ function vr(t) {
668
+ var e = t.state, o = t.name;
669
+ e.modifiersData[o] = _t({
670
+ reference: e.rects.reference,
671
+ element: e.rects.popper,
672
+ strategy: "absolute",
673
+ placement: e.placement
674
+ });
675
+ }
676
+ const hr = {
677
+ name: "popperOffsets",
678
+ enabled: !0,
679
+ phase: "read",
680
+ fn: vr,
681
+ data: {}
682
+ };
683
+ function gr(t) {
684
+ return t === "x" ? "y" : "x";
685
+ }
686
+ function yr(t) {
687
+ var e = t.state, o = t.options, n = t.name, a = o.mainAxis, s = a === void 0 ? !0 : a, c = o.altAxis, i = c === void 0 ? !1 : c, p = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, T = o.tetherOffset, m = T === void 0 ? 0 : T, h = Ie(e, {
688
+ boundary: p,
689
+ rootBoundary: f,
690
+ padding: g,
691
+ altBoundary: l
692
+ }), w = ee(e.placement), E = Re(e.placement), O = !E, d = mt(w), y = gr(d), b = e.modifiersData.popperOffsets, R = e.rects.reference, D = e.rects.popper, A = typeof m == "function" ? m(Object.assign({}, e.rects, {
693
+ placement: e.placement
694
+ })) : m, P = typeof A == "number" ? {
695
+ mainAxis: A,
696
+ altAxis: A
697
+ } : Object.assign({
698
+ mainAxis: 0,
699
+ altAxis: 0
700
+ }, A), M = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, L = {
701
+ x: 0,
702
+ y: 0
703
+ };
704
+ if (b) {
705
+ if (s) {
706
+ var j, X = d === "y" ? W : I, G = d === "y" ? z : Y, S = d === "y" ? "height" : "width", $ = b[d], N = $ + h[X], oe = $ - h[G], B = u ? -D[S] / 2 : 0, ve = E === Te ? R[S] : D[S], re = E === Te ? -D[S] : -R[S], he = e.elements.arrow, K = u && he ? dt(he) : {
707
+ width: 0,
708
+ height: 0
709
+ }, U = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kt(), ie = U[X], se = U[G], H = Ne(0, R[S], K[S]), ge = O ? R[S] / 2 - B - H - ie - P.mainAxis : ve - H - ie - P.mainAxis, nt = O ? -R[S] / 2 + B + H + se + P.mainAxis : re + H + se + P.mainAxis, ye = e.elements.arrow && Ue(e.elements.arrow), J = ye ? d === "y" ? ye.clientTop || 0 : ye.clientLeft || 0 : 0, be = (j = M == null ? void 0 : M[d]) != null ? j : 0, le = $ + ge - be - J, we = $ + nt - be, Ae = Ne(u ? _e(N, le) : N, $, u ? de(oe, we) : oe);
710
+ b[d] = Ae, L[d] = Ae - $;
711
+ }
712
+ if (i) {
713
+ var ce, Oe = d === "x" ? W : I, Me = d === "x" ? z : Y, _ = b[y], fe = y === "y" ? "height" : "width", Ce = _ + h[Oe], je = _ - h[Me], $e = [W, I].indexOf(w) !== -1, He = (ce = M == null ? void 0 : M[y]) != null ? ce : 0, Fe = $e ? Ce : _ - R[fe] - D[fe] - He + P.altAxis, xe = $e ? _ + R[fe] + D[fe] - He - P.altAxis : je, qe = u && $e ? Ho(Fe, _, xe) : Ne(u ? Fe : Ce, _, u ? xe : je);
714
+ b[y] = qe, L[y] = qe - _;
715
+ }
716
+ e.modifiersData[n] = L;
717
+ }
718
+ }
719
+ const br = {
720
+ name: "preventOverflow",
721
+ enabled: !0,
722
+ phase: "main",
723
+ fn: yr,
724
+ requiresIfExists: ["offset"]
725
+ };
726
+ function wr(t) {
727
+ return {
728
+ scrollLeft: t.scrollLeft,
729
+ scrollTop: t.scrollTop
730
+ };
731
+ }
732
+ function Or(t) {
733
+ return t === V(t) || !q(t) ? vt(t) : wr(t);
734
+ }
735
+ function xr(t) {
736
+ var e = t.getBoundingClientRect(), o = Pe(e.width) / t.offsetWidth || 1, n = Pe(e.height) / t.offsetHeight || 1;
737
+ return o !== 1 || n !== 1;
738
+ }
739
+ function Tr(t, e, o) {
740
+ o === void 0 && (o = !1);
741
+ var n = q(e), a = q(e) && xr(e), s = pe(e), c = Ee(t, a, o), i = {
742
+ scrollLeft: 0,
743
+ scrollTop: 0
744
+ }, p = {
745
+ x: 0,
746
+ y: 0
747
+ };
748
+ return (n || !n && !o) && ((te(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
749
+ gt(s)) && (i = Or(e)), q(e) ? (p = Ee(e, !0), p.x += e.clientLeft, p.y += e.clientTop) : s && (p.x = ht(s))), {
750
+ x: c.left + i.scrollLeft - p.x,
751
+ y: c.top + i.scrollTop - p.y,
752
+ width: c.width,
753
+ height: c.height
754
+ };
755
+ }
756
+ function Pr(t) {
757
+ var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), n = [];
758
+ t.forEach(function(s) {
759
+ e.set(s.name, s);
760
+ });
761
+ function a(s) {
762
+ o.add(s.name);
763
+ var c = [].concat(s.requires || [], s.requiresIfExists || []);
764
+ c.forEach(function(i) {
765
+ if (!o.has(i)) {
766
+ var p = e.get(i);
767
+ p && a(p);
768
+ }
769
+ }), n.push(s);
770
+ }
771
+ return t.forEach(function(s) {
772
+ o.has(s.name) || a(s);
773
+ }), n;
774
+ }
775
+ function Er(t) {
776
+ var e = Pr(t);
777
+ return No.reduce(function(o, n) {
778
+ return o.concat(e.filter(function(a) {
779
+ return a.phase === n;
780
+ }));
781
+ }, []);
782
+ }
783
+ function Rr(t) {
784
+ var e;
785
+ return function() {
786
+ return e || (e = new Promise(function(o) {
787
+ Promise.resolve().then(function() {
788
+ e = void 0, o(t());
789
+ });
790
+ })), e;
791
+ };
792
+ }
793
+ function Ar(t) {
794
+ var e = t.reduce(function(o, n) {
795
+ var a = o[n.name];
796
+ return o[n.name] = a ? Object.assign({}, a, n, {
797
+ options: Object.assign({}, a.options, n.options),
798
+ data: Object.assign({}, a.data, n.data)
799
+ }) : n, o;
800
+ }, {});
801
+ return Object.keys(e).map(function(o) {
802
+ return e[o];
803
+ });
804
+ }
805
+ var kt = {
806
+ placement: "bottom",
807
+ modifiers: [],
808
+ strategy: "absolute"
809
+ };
810
+ function Bt() {
811
+ for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
812
+ e[o] = arguments[o];
813
+ return !e.some(function(n) {
814
+ return !(n && typeof n.getBoundingClientRect == "function");
815
+ });
816
+ }
817
+ function Mr(t) {
818
+ t === void 0 && (t = {});
819
+ var e = t, o = e.defaultModifiers, n = o === void 0 ? [] : o, a = e.defaultOptions, s = a === void 0 ? kt : a;
820
+ return function(i, p, f) {
821
+ f === void 0 && (f = s);
822
+ var l = {
823
+ placement: "bottom",
824
+ orderedModifiers: [],
825
+ options: Object.assign({}, kt, s),
826
+ modifiersData: {},
827
+ elements: {
828
+ reference: i,
829
+ popper: p
830
+ },
831
+ attributes: {},
832
+ styles: {}
833
+ }, g = [], x = !1, u = {
834
+ state: l,
835
+ setOptions: function(w) {
836
+ var E = typeof w == "function" ? w(l.options) : w;
837
+ m(), l.options = Object.assign({}, s, l.options, E), l.scrollParents = {
838
+ reference: me(i) ? Le(i) : i.contextElement ? Le(i.contextElement) : [],
839
+ popper: Le(p)
840
+ };
841
+ var O = Er(Ar([].concat(n, l.options.modifiers)));
842
+ return l.orderedModifiers = O.filter(function(d) {
843
+ return d.enabled;
844
+ }), T(), u.update();
845
+ },
846
+ // Sync update – it will always be executed, even if not necessary. This
847
+ // is useful for low frequency updates where sync behavior simplifies the
848
+ // logic.
849
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
850
+ // prefer the async Popper#update method
851
+ forceUpdate: function() {
852
+ if (!x) {
853
+ var w = l.elements, E = w.reference, O = w.popper;
854
+ if (Bt(E, O)) {
855
+ l.rects = {
856
+ reference: Tr(E, Ue(O), l.options.strategy === "fixed"),
857
+ popper: dt(O)
858
+ }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(P) {
859
+ return l.modifiersData[P.name] = Object.assign({}, P.data);
860
+ });
861
+ for (var d = 0; d < l.orderedModifiers.length; d++) {
862
+ if (l.reset === !0) {
863
+ l.reset = !1, d = -1;
864
+ continue;
865
+ }
866
+ var y = l.orderedModifiers[d], b = y.fn, R = y.options, D = R === void 0 ? {} : R, A = y.name;
867
+ typeof b == "function" && (l = b({
868
+ state: l,
869
+ options: D,
870
+ name: A,
871
+ instance: u
872
+ }) || l);
873
+ }
874
+ }
875
+ }
876
+ },
877
+ // Async and optimistically optimized update – it will not be executed if
878
+ // not necessary (debounced to run at most once-per-tick)
879
+ update: Rr(function() {
880
+ return new Promise(function(h) {
881
+ u.forceUpdate(), h(l);
882
+ });
883
+ }),
884
+ destroy: function() {
885
+ m(), x = !0;
886
+ }
887
+ };
888
+ if (!Bt(i, p))
889
+ return u;
890
+ u.setOptions(f).then(function(h) {
891
+ !x && f.onFirstUpdate && f.onFirstUpdate(h);
892
+ });
893
+ function T() {
894
+ l.orderedModifiers.forEach(function(h) {
895
+ var w = h.name, E = h.options, O = E === void 0 ? {} : E, d = h.effect;
896
+ if (typeof d == "function") {
897
+ var y = d({
898
+ state: l,
899
+ name: w,
900
+ instance: u,
901
+ options: O
902
+ }), b = function() {
903
+ };
904
+ g.push(y || b);
905
+ }
906
+ });
907
+ }
908
+ function m() {
909
+ g.forEach(function(h) {
910
+ return h();
911
+ }), g = [];
912
+ }
913
+ return u;
914
+ };
915
+ }
916
+ var Cr = [Zo, hr, Jo, Io, mr, lr, br, Yo, fr], jr = /* @__PURE__ */ Mr({
917
+ defaultModifiers: Cr
918
+ });
919
+ function $r(t) {
920
+ return Lt("MuiPopper", t);
921
+ }
922
+ Wt("MuiPopper", ["root"]);
923
+ function Dr(t, e) {
924
+ if (e === "ltr")
925
+ return t;
926
+ switch (t) {
927
+ case "bottom-end":
928
+ return "bottom-start";
929
+ case "bottom-start":
930
+ return "bottom-end";
931
+ case "top-end":
932
+ return "top-start";
933
+ case "top-start":
934
+ return "top-end";
935
+ default:
936
+ return t;
937
+ }
938
+ }
939
+ function et(t) {
940
+ return typeof t == "function" ? t() : t;
941
+ }
942
+ function rt(t) {
943
+ return t.nodeType !== void 0;
944
+ }
945
+ function Sr(t) {
946
+ return !rt(t);
947
+ }
948
+ const kr = (t) => {
949
+ const {
950
+ classes: e
951
+ } = t;
952
+ return It({
953
+ root: ["root"]
954
+ }, $r, e);
955
+ }, Br = {}, Nr = /* @__PURE__ */ C.forwardRef(function(e, o) {
956
+ const {
957
+ anchorEl: n,
958
+ children: a,
959
+ direction: s,
960
+ disablePortal: c,
961
+ modifiers: i,
962
+ open: p,
963
+ placement: f,
964
+ popperOptions: l,
965
+ popperRef: g,
966
+ slotProps: x = {},
967
+ slots: u = {},
968
+ TransitionProps: T,
969
+ // @ts-ignore internal logic
970
+ ownerState: m,
971
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
972
+ ...h
973
+ } = e, w = C.useRef(null), E = st(w, o), O = C.useRef(null), d = st(O, g), y = C.useRef(d);
974
+ Pt(() => {
975
+ y.current = d;
976
+ }, [d]), C.useImperativeHandle(g, () => O.current, []);
977
+ const b = Dr(f, s), [R, D] = C.useState(b), [A, P] = C.useState(et(n));
978
+ C.useEffect(() => {
979
+ O.current && O.current.forceUpdate();
980
+ }), C.useEffect(() => {
981
+ n && P(et(n));
982
+ }, [n]), Pt(() => {
983
+ if (!A || !p)
984
+ return;
985
+ const G = (N) => {
986
+ D(N.placement);
987
+ };
988
+ if (process.env.NODE_ENV !== "production" && A && rt(A) && A.nodeType === 1) {
989
+ const N = A.getBoundingClientRect();
990
+ process.env.NODE_ENV !== "test" && N.top === 0 && N.left === 0 && N.right === 0 && N.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
991
+ `));
992
+ }
993
+ let S = [{
994
+ name: "preventOverflow",
995
+ options: {
996
+ altBoundary: c
997
+ }
998
+ }, {
999
+ name: "flip",
1000
+ options: {
1001
+ altBoundary: c
1002
+ }
1003
+ }, {
1004
+ name: "onUpdate",
1005
+ enabled: !0,
1006
+ phase: "afterWrite",
1007
+ fn: ({
1008
+ state: N
1009
+ }) => {
1010
+ G(N);
1011
+ }
1012
+ }];
1013
+ i != null && (S = S.concat(i)), l && l.modifiers != null && (S = S.concat(l.modifiers));
1014
+ const $ = jr(A, w.current, {
1015
+ placement: b,
1016
+ ...l,
1017
+ modifiers: S
1018
+ });
1019
+ return y.current($), () => {
1020
+ $.destroy(), y.current(null);
1021
+ };
1022
+ }, [A, c, i, p, l, b]);
1023
+ const M = {
1024
+ placement: R
1025
+ };
1026
+ T !== null && (M.TransitionProps = T);
1027
+ const L = kr(e), j = u.root ?? "div", X = go({
1028
+ elementType: j,
1029
+ externalSlotProps: x.root,
1030
+ externalForwardedProps: h,
1031
+ additionalProps: {
1032
+ role: "tooltip",
1033
+ ref: E
1034
+ },
1035
+ ownerState: e,
1036
+ className: L.root
1037
+ });
1038
+ return /* @__PURE__ */ ne(j, {
1039
+ ...X,
1040
+ children: typeof a == "function" ? a(M) : a
1041
+ });
1042
+ }), eo = /* @__PURE__ */ C.forwardRef(function(e, o) {
1043
+ const {
1044
+ anchorEl: n,
1045
+ children: a,
1046
+ container: s,
1047
+ direction: c = "ltr",
1048
+ disablePortal: i = !1,
1049
+ keepMounted: p = !1,
1050
+ modifiers: f,
1051
+ open: l,
1052
+ placement: g = "bottom",
1053
+ popperOptions: x = Br,
1054
+ popperRef: u,
1055
+ style: T,
1056
+ transition: m = !1,
1057
+ slotProps: h = {},
1058
+ slots: w = {},
1059
+ ...E
1060
+ } = e, [O, d] = C.useState(!0), y = () => {
1061
+ d(!1);
1062
+ }, b = () => {
1063
+ d(!0);
1064
+ };
1065
+ if (!p && !l && (!m || O))
1066
+ return null;
1067
+ let R;
1068
+ if (s)
1069
+ R = s;
1070
+ else if (n) {
1071
+ const P = et(n);
1072
+ R = P && rt(P) ? Tt(P).body : Tt(null).body;
1073
+ }
1074
+ const D = !l && p && (!m || O) ? "none" : void 0, A = m ? {
1075
+ in: l,
1076
+ onEnter: y,
1077
+ onExited: b
1078
+ } : void 0;
1079
+ return /* @__PURE__ */ ne(vo, {
1080
+ disablePortal: i,
1081
+ container: R,
1082
+ children: /* @__PURE__ */ ne(Nr, {
1083
+ anchorEl: n,
1084
+ direction: c,
1085
+ disablePortal: i,
1086
+ modifiers: f,
1087
+ ref: o,
1088
+ open: m ? !O : l,
1089
+ placement: g,
1090
+ popperOptions: x,
1091
+ popperRef: u,
1092
+ slotProps: h,
1093
+ slots: w,
1094
+ ...E,
1095
+ style: {
1096
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1097
+ position: "fixed",
1098
+ // Fix Popper.js display issue
1099
+ top: 0,
1100
+ left: 0,
1101
+ display: D,
1102
+ ...T
1103
+ },
1104
+ TransitionProps: A,
1105
+ children: a
1106
+ })
1107
+ });
1108
+ });
1109
+ process.env.NODE_ENV !== "production" && (eo.propTypes = {
1110
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1111
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1112
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1113
+ // └─────────────────────────────────────────────────────────────────────┘
1114
+ /**
1115
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1116
+ * or a function that returns either.
1117
+ * It's used to set the position of the popper.
1118
+ * The return value will passed as the reference object of the Popper instance.
1119
+ */
1120
+ anchorEl: ho(r.oneOfType([Ze, r.object, r.func]), (t) => {
1121
+ if (t.open) {
1122
+ const e = et(t.anchorEl);
1123
+ if (e && rt(e) && e.nodeType === 1) {
1124
+ const o = e.getBoundingClientRect();
1125
+ if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1126
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1127
+ `));
1128
+ } else if (!e || typeof e.getBoundingClientRect != "function" || Sr(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1129
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1130
+ `));
1131
+ }
1132
+ return null;
1133
+ }),
1134
+ /**
1135
+ * Popper render function or node.
1136
+ */
1137
+ children: r.oneOfType([r.node, r.func]),
1138
+ /**
1139
+ * An HTML element or function that returns one.
1140
+ * The `container` will have the portal children appended to it.
1141
+ *
1142
+ * You can also provide a callback, which is called in a React layout effect.
1143
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1144
+ *
1145
+ * By default, it uses the body of the top-level document object,
1146
+ * so it's simply `document.body` most of the time.
1147
+ */
1148
+ container: r.oneOfType([Ze, r.func]),
1149
+ /**
1150
+ * Direction of the text.
1151
+ * @default 'ltr'
1152
+ */
1153
+ direction: r.oneOf(["ltr", "rtl"]),
1154
+ /**
1155
+ * The `children` will be under the DOM hierarchy of the parent component.
1156
+ * @default false
1157
+ */
1158
+ disablePortal: r.bool,
1159
+ /**
1160
+ * Always keep the children in the DOM.
1161
+ * This prop can be useful in SEO situation or
1162
+ * when you want to maximize the responsiveness of the Popper.
1163
+ * @default false
1164
+ */
1165
+ keepMounted: r.bool,
1166
+ /**
1167
+ * Popper.js is based on a "plugin-like" architecture,
1168
+ * most of its features are fully encapsulated "modifiers".
1169
+ *
1170
+ * A modifier is a function that is called each time Popper.js needs to
1171
+ * compute the position of the popper.
1172
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1173
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1174
+ */
1175
+ modifiers: r.arrayOf(r.shape({
1176
+ data: r.object,
1177
+ effect: r.func,
1178
+ enabled: r.bool,
1179
+ fn: r.func,
1180
+ name: r.any,
1181
+ options: r.object,
1182
+ phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1183
+ requires: r.arrayOf(r.string),
1184
+ requiresIfExists: r.arrayOf(r.string)
1185
+ })),
1186
+ /**
1187
+ * If `true`, the component is shown.
1188
+ */
1189
+ open: r.bool.isRequired,
1190
+ /**
1191
+ * Popper placement.
1192
+ * @default 'bottom'
1193
+ */
1194
+ placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1195
+ /**
1196
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1197
+ * @default {}
1198
+ */
1199
+ popperOptions: r.shape({
1200
+ modifiers: r.array,
1201
+ onFirstUpdate: r.func,
1202
+ placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1203
+ strategy: r.oneOf(["absolute", "fixed"])
1204
+ }),
1205
+ /**
1206
+ * A ref that points to the used popper instance.
1207
+ */
1208
+ popperRef: Ft,
1209
+ /**
1210
+ * The props used for each slot inside the Popper.
1211
+ * @default {}
1212
+ */
1213
+ slotProps: r.shape({
1214
+ root: r.oneOfType([r.func, r.object])
1215
+ }),
1216
+ /**
1217
+ * The components used for each slot inside the Popper.
1218
+ * Either a string to use a HTML element or a component.
1219
+ * @default {}
1220
+ */
1221
+ slots: r.shape({
1222
+ root: r.elementType
1223
+ }),
1224
+ /**
1225
+ * Help supporting a react-transition-group/Transition component.
1226
+ * @default false
1227
+ */
1228
+ transition: r.bool
1229
+ });
1230
+ const Lr = tt(eo, {
1231
+ name: "MuiPopper",
1232
+ slot: "Root"
1233
+ })({}), yt = /* @__PURE__ */ C.forwardRef(function(e, o) {
1234
+ const n = qt(), a = Vt({
1235
+ props: e,
1236
+ name: "MuiPopper"
1237
+ }), {
1238
+ anchorEl: s,
1239
+ component: c,
1240
+ components: i,
1241
+ componentsProps: p,
1242
+ container: f,
1243
+ disablePortal: l,
1244
+ keepMounted: g,
1245
+ modifiers: x,
1246
+ open: u,
1247
+ placement: T,
1248
+ popperOptions: m,
1249
+ popperRef: h,
1250
+ transition: w,
1251
+ slots: E,
1252
+ slotProps: O,
1253
+ ...d
1254
+ } = a, y = (E == null ? void 0 : E.root) ?? (i == null ? void 0 : i.Root), b = {
1255
+ anchorEl: s,
1256
+ container: f,
1257
+ disablePortal: l,
1258
+ keepMounted: g,
1259
+ modifiers: x,
1260
+ open: u,
1261
+ placement: T,
1262
+ popperOptions: m,
1263
+ popperRef: h,
1264
+ transition: w,
1265
+ ...d
1266
+ };
1267
+ return /* @__PURE__ */ ne(Lr, {
1268
+ as: c,
1269
+ direction: n ? "rtl" : "ltr",
1270
+ slots: {
1271
+ root: y
1272
+ },
1273
+ slotProps: O ?? p,
1274
+ ...b,
1275
+ ref: o
1276
+ });
1277
+ });
1278
+ process.env.NODE_ENV !== "production" && (yt.propTypes = {
1279
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1280
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1281
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1282
+ // └─────────────────────────────────────────────────────────────────────┘
1283
+ /**
1284
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1285
+ * or a function that returns either.
1286
+ * It's used to set the position of the popper.
1287
+ * The return value will passed as the reference object of the Popper instance.
1288
+ */
1289
+ anchorEl: r.oneOfType([Ze, r.object, r.func]),
1290
+ /**
1291
+ * Popper render function or node.
1292
+ */
1293
+ children: r.oneOfType([r.node, r.func]),
1294
+ /**
1295
+ * The component used for the root node.
1296
+ * Either a string to use a HTML element or a component.
1297
+ */
1298
+ component: r.elementType,
1299
+ /**
1300
+ * The components used for each slot inside the Popper.
1301
+ * Either a string to use a HTML element or a component.
1302
+ *
1303
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
1304
+ * @default {}
1305
+ */
1306
+ components: r.shape({
1307
+ Root: r.elementType
1308
+ }),
1309
+ /**
1310
+ * The props used for each slot inside the Popper.
1311
+ *
1312
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
1313
+ * @default {}
1314
+ */
1315
+ componentsProps: r.shape({
1316
+ root: r.oneOfType([r.func, r.object])
1317
+ }),
1318
+ /**
1319
+ * An HTML element or function that returns one.
1320
+ * The `container` will have the portal children appended to it.
1321
+ *
1322
+ * You can also provide a callback, which is called in a React layout effect.
1323
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1324
+ *
1325
+ * By default, it uses the body of the top-level document object,
1326
+ * so it's simply `document.body` most of the time.
1327
+ */
1328
+ container: r.oneOfType([Ze, r.func]),
1329
+ /**
1330
+ * The `children` will be under the DOM hierarchy of the parent component.
1331
+ * @default false
1332
+ */
1333
+ disablePortal: r.bool,
1334
+ /**
1335
+ * Always keep the children in the DOM.
1336
+ * This prop can be useful in SEO situation or
1337
+ * when you want to maximize the responsiveness of the Popper.
1338
+ * @default false
1339
+ */
1340
+ keepMounted: r.bool,
1341
+ /**
1342
+ * Popper.js is based on a "plugin-like" architecture,
1343
+ * most of its features are fully encapsulated "modifiers".
1344
+ *
1345
+ * A modifier is a function that is called each time Popper.js needs to
1346
+ * compute the position of the popper.
1347
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1348
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1349
+ */
1350
+ modifiers: r.arrayOf(r.shape({
1351
+ data: r.object,
1352
+ effect: r.func,
1353
+ enabled: r.bool,
1354
+ fn: r.func,
1355
+ name: r.any,
1356
+ options: r.object,
1357
+ phase: r.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1358
+ requires: r.arrayOf(r.string),
1359
+ requiresIfExists: r.arrayOf(r.string)
1360
+ })),
1361
+ /**
1362
+ * If `true`, the component is shown.
1363
+ */
1364
+ open: r.bool.isRequired,
1365
+ /**
1366
+ * Popper placement.
1367
+ * @default 'bottom'
1368
+ */
1369
+ placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1370
+ /**
1371
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1372
+ * @default {}
1373
+ */
1374
+ popperOptions: r.shape({
1375
+ modifiers: r.array,
1376
+ onFirstUpdate: r.func,
1377
+ placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1378
+ strategy: r.oneOf(["absolute", "fixed"])
1379
+ }),
1380
+ /**
1381
+ * A ref that points to the used popper instance.
1382
+ */
1383
+ popperRef: Ft,
1384
+ /**
1385
+ * The props used for each slot inside the Popper.
1386
+ * @default {}
1387
+ */
1388
+ slotProps: r.shape({
1389
+ root: r.oneOfType([r.func, r.object])
1390
+ }),
1391
+ /**
1392
+ * The components used for each slot inside the Popper.
1393
+ * Either a string to use a HTML element or a component.
1394
+ * @default {}
1395
+ */
1396
+ slots: r.shape({
1397
+ root: r.elementType
1398
+ }),
1399
+ /**
1400
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1401
+ */
1402
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
1403
+ /**
1404
+ * Help supporting a react-transition-group/Transition component.
1405
+ * @default false
1406
+ */
1407
+ transition: r.bool
1408
+ });
1409
+ function Wr(t) {
1410
+ return Lt("MuiTooltip", t);
1411
+ }
1412
+ const Ir = Wt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), k = Ir;
1413
+ function Vr(t) {
1414
+ return Math.round(t * 1e5) / 1e5;
1415
+ }
1416
+ const Ur = (t) => {
1417
+ const {
1418
+ classes: e,
1419
+ disableInteractive: o,
1420
+ arrow: n,
1421
+ touch: a,
1422
+ placement: s
1423
+ } = t, c = {
1424
+ popper: ["popper", !o && "popperInteractive", n && "popperArrow"],
1425
+ tooltip: ["tooltip", n && "tooltipArrow", a && "touch", `tooltipPlacement${Ut(s.split("-")[0])}`],
1426
+ arrow: ["arrow"]
1427
+ };
1428
+ return It(c, Wr, e);
1429
+ }, Hr = tt(yt, {
1430
+ name: "MuiTooltip",
1431
+ slot: "Popper",
1432
+ overridesResolver: (t, e) => {
1433
+ const {
1434
+ ownerState: o
1435
+ } = t;
1436
+ return [e.popper, !o.disableInteractive && e.popperInteractive, o.arrow && e.popperArrow, !o.open && e.popperClose];
1437
+ }
1438
+ })(ct(({
1439
+ theme: t
1440
+ }) => ({
1441
+ zIndex: (t.vars || t).zIndex.tooltip,
1442
+ pointerEvents: "none",
1443
+ variants: [{
1444
+ props: ({
1445
+ ownerState: e
1446
+ }) => !e.disableInteractive,
1447
+ style: {
1448
+ pointerEvents: "auto"
1449
+ }
1450
+ }, {
1451
+ props: ({
1452
+ open: e
1453
+ }) => !e,
1454
+ style: {
1455
+ pointerEvents: "none"
1456
+ }
1457
+ }, {
1458
+ props: ({
1459
+ ownerState: e
1460
+ }) => e.arrow,
1461
+ style: {
1462
+ [`&[data-popper-placement*="bottom"] .${k.arrow}`]: {
1463
+ top: 0,
1464
+ marginTop: "-0.71em",
1465
+ "&::before": {
1466
+ transformOrigin: "0 100%"
1467
+ }
1468
+ },
1469
+ [`&[data-popper-placement*="top"] .${k.arrow}`]: {
1470
+ bottom: 0,
1471
+ marginBottom: "-0.71em",
1472
+ "&::before": {
1473
+ transformOrigin: "100% 0"
1474
+ }
1475
+ },
1476
+ [`&[data-popper-placement*="right"] .${k.arrow}`]: {
1477
+ height: "1em",
1478
+ width: "0.71em",
1479
+ "&::before": {
1480
+ transformOrigin: "100% 100%"
1481
+ }
1482
+ },
1483
+ [`&[data-popper-placement*="left"] .${k.arrow}`]: {
1484
+ height: "1em",
1485
+ width: "0.71em",
1486
+ "&::before": {
1487
+ transformOrigin: "0 0"
1488
+ }
1489
+ }
1490
+ }
1491
+ }, {
1492
+ props: ({
1493
+ ownerState: e
1494
+ }) => e.arrow && !e.isRtl,
1495
+ style: {
1496
+ [`&[data-popper-placement*="right"] .${k.arrow}`]: {
1497
+ left: 0,
1498
+ marginLeft: "-0.71em"
1499
+ }
1500
+ }
1501
+ }, {
1502
+ props: ({
1503
+ ownerState: e
1504
+ }) => e.arrow && !!e.isRtl,
1505
+ style: {
1506
+ [`&[data-popper-placement*="right"] .${k.arrow}`]: {
1507
+ right: 0,
1508
+ marginRight: "-0.71em"
1509
+ }
1510
+ }
1511
+ }, {
1512
+ props: ({
1513
+ ownerState: e
1514
+ }) => e.arrow && !e.isRtl,
1515
+ style: {
1516
+ [`&[data-popper-placement*="left"] .${k.arrow}`]: {
1517
+ right: 0,
1518
+ marginRight: "-0.71em"
1519
+ }
1520
+ }
1521
+ }, {
1522
+ props: ({
1523
+ ownerState: e
1524
+ }) => e.arrow && !!e.isRtl,
1525
+ style: {
1526
+ [`&[data-popper-placement*="left"] .${k.arrow}`]: {
1527
+ left: 0,
1528
+ marginLeft: "-0.71em"
1529
+ }
1530
+ }
1531
+ }]
1532
+ }))), Fr = tt("div", {
1533
+ name: "MuiTooltip",
1534
+ slot: "Tooltip",
1535
+ overridesResolver: (t, e) => {
1536
+ const {
1537
+ ownerState: o
1538
+ } = t;
1539
+ return [e.tooltip, o.touch && e.touch, o.arrow && e.tooltipArrow, e[`tooltipPlacement${Ut(o.placement.split("-")[0])}`]];
1540
+ }
1541
+ })(ct(({
1542
+ theme: t
1543
+ }) => ({
1544
+ backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : Ht(t.palette.grey[700], 0.92),
1545
+ borderRadius: (t.vars || t).shape.borderRadius,
1546
+ color: (t.vars || t).palette.common.white,
1547
+ fontFamily: t.typography.fontFamily,
1548
+ padding: "4px 8px",
1549
+ fontSize: t.typography.pxToRem(11),
1550
+ maxWidth: 300,
1551
+ margin: 2,
1552
+ wordWrap: "break-word",
1553
+ fontWeight: t.typography.fontWeightMedium,
1554
+ [`.${k.popper}[data-popper-placement*="left"] &`]: {
1555
+ transformOrigin: "right center"
1556
+ },
1557
+ [`.${k.popper}[data-popper-placement*="right"] &`]: {
1558
+ transformOrigin: "left center"
1559
+ },
1560
+ [`.${k.popper}[data-popper-placement*="top"] &`]: {
1561
+ transformOrigin: "center bottom",
1562
+ marginBottom: "14px"
1563
+ },
1564
+ [`.${k.popper}[data-popper-placement*="bottom"] &`]: {
1565
+ transformOrigin: "center top",
1566
+ marginTop: "14px"
1567
+ },
1568
+ variants: [{
1569
+ props: ({
1570
+ ownerState: e
1571
+ }) => e.arrow,
1572
+ style: {
1573
+ position: "relative",
1574
+ margin: 0
1575
+ }
1576
+ }, {
1577
+ props: ({
1578
+ ownerState: e
1579
+ }) => e.touch,
1580
+ style: {
1581
+ padding: "8px 16px",
1582
+ fontSize: t.typography.pxToRem(14),
1583
+ lineHeight: `${Vr(16 / 14)}em`,
1584
+ fontWeight: t.typography.fontWeightRegular
1585
+ }
1586
+ }, {
1587
+ props: ({
1588
+ ownerState: e
1589
+ }) => !e.isRtl,
1590
+ style: {
1591
+ [`.${k.popper}[data-popper-placement*="left"] &`]: {
1592
+ marginRight: "14px"
1593
+ },
1594
+ [`.${k.popper}[data-popper-placement*="right"] &`]: {
1595
+ marginLeft: "14px"
1596
+ }
1597
+ }
1598
+ }, {
1599
+ props: ({
1600
+ ownerState: e
1601
+ }) => !e.isRtl && e.touch,
1602
+ style: {
1603
+ [`.${k.popper}[data-popper-placement*="left"] &`]: {
1604
+ marginRight: "24px"
1605
+ },
1606
+ [`.${k.popper}[data-popper-placement*="right"] &`]: {
1607
+ marginLeft: "24px"
1608
+ }
1609
+ }
1610
+ }, {
1611
+ props: ({
1612
+ ownerState: e
1613
+ }) => !!e.isRtl,
1614
+ style: {
1615
+ [`.${k.popper}[data-popper-placement*="left"] &`]: {
1616
+ marginLeft: "14px"
1617
+ },
1618
+ [`.${k.popper}[data-popper-placement*="right"] &`]: {
1619
+ marginRight: "14px"
1620
+ }
1621
+ }
1622
+ }, {
1623
+ props: ({
1624
+ ownerState: e
1625
+ }) => !!e.isRtl && e.touch,
1626
+ style: {
1627
+ [`.${k.popper}[data-popper-placement*="left"] &`]: {
1628
+ marginLeft: "24px"
1629
+ },
1630
+ [`.${k.popper}[data-popper-placement*="right"] &`]: {
1631
+ marginRight: "24px"
1632
+ }
1633
+ }
1634
+ }, {
1635
+ props: ({
1636
+ ownerState: e
1637
+ }) => e.touch,
1638
+ style: {
1639
+ [`.${k.popper}[data-popper-placement*="top"] &`]: {
1640
+ marginBottom: "24px"
1641
+ }
1642
+ }
1643
+ }, {
1644
+ props: ({
1645
+ ownerState: e
1646
+ }) => e.touch,
1647
+ style: {
1648
+ [`.${k.popper}[data-popper-placement*="bottom"] &`]: {
1649
+ marginTop: "24px"
1650
+ }
1651
+ }
1652
+ }]
1653
+ }))), qr = tt("span", {
1654
+ name: "MuiTooltip",
1655
+ slot: "Arrow"
1656
+ })(ct(({
1657
+ theme: t
1658
+ }) => ({
1659
+ overflow: "hidden",
1660
+ position: "absolute",
1661
+ width: "1em",
1662
+ height: "0.71em",
1663
+ boxSizing: "border-box",
1664
+ color: t.vars ? t.vars.palette.Tooltip.bg : Ht(t.palette.grey[700], 0.9),
1665
+ "&::before": {
1666
+ content: '""',
1667
+ margin: "auto",
1668
+ display: "block",
1669
+ width: "100%",
1670
+ height: "100%",
1671
+ backgroundColor: "currentColor",
1672
+ transform: "rotate(45deg)"
1673
+ }
1674
+ })));
1675
+ let Ke = !1;
1676
+ const Nt = new Po();
1677
+ let Be = {
1678
+ x: 0,
1679
+ y: 0
1680
+ };
1681
+ function Je(t, e) {
1682
+ return (o, ...n) => {
1683
+ e && e(o, ...n), t(o, ...n);
1684
+ };
1685
+ }
1686
+ const to = /* @__PURE__ */ C.forwardRef(function(e, o) {
1687
+ const n = Vt({
1688
+ props: e,
1689
+ name: "MuiTooltip"
1690
+ }), {
1691
+ arrow: a = !1,
1692
+ children: s,
1693
+ classes: c,
1694
+ components: i = {},
1695
+ componentsProps: p = {},
1696
+ describeChild: f = !1,
1697
+ disableFocusListener: l = !1,
1698
+ disableHoverListener: g = !1,
1699
+ disableInteractive: x = !1,
1700
+ disableTouchListener: u = !1,
1701
+ enterDelay: T = 100,
1702
+ enterNextDelay: m = 0,
1703
+ enterTouchDelay: h = 700,
1704
+ followCursor: w = !1,
1705
+ id: E,
1706
+ leaveDelay: O = 0,
1707
+ leaveTouchDelay: d = 1500,
1708
+ onClose: y,
1709
+ onOpen: b,
1710
+ open: R,
1711
+ placement: D = "bottom",
1712
+ PopperComponent: A,
1713
+ PopperProps: P = {},
1714
+ slotProps: M = {},
1715
+ slots: L = {},
1716
+ title: j,
1717
+ TransitionComponent: X,
1718
+ TransitionProps: G,
1719
+ ...S
1720
+ } = n, $ = /* @__PURE__ */ C.isValidElement(s) ? s : /* @__PURE__ */ ne("span", {
1721
+ children: s
1722
+ }), N = yo(), oe = qt(), [B, ve] = C.useState(), [re, he] = C.useState(null), K = C.useRef(!1), U = x || w, ie = Ye(), se = Ye(), H = Ye(), ge = Ye(), [nt, ye] = bo({
1723
+ controlled: R,
1724
+ default: !1,
1725
+ name: "Tooltip",
1726
+ state: "open"
1727
+ });
1728
+ let J = nt;
1729
+ if (process.env.NODE_ENV !== "production") {
1730
+ const {
1731
+ current: v
1732
+ } = C.useRef(R !== void 0);
1733
+ C.useEffect(() => {
1734
+ B && B.disabled && !v && j !== "" && B.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
1735
+ `));
1736
+ }, [j, B, v]);
1737
+ }
1738
+ const be = wo(E), le = C.useRef(), we = Et(() => {
1739
+ le.current !== void 0 && (document.body.style.WebkitUserSelect = le.current, le.current = void 0), ge.clear();
1740
+ });
1741
+ C.useEffect(() => we, [we]);
1742
+ const Ae = (v) => {
1743
+ Nt.clear(), Ke = !0, ye(!0), b && !J && b(v);
1744
+ }, ce = Et(
1745
+ /**
1746
+ * @param {React.SyntheticEvent | Event} event
1747
+ */
1748
+ (v) => {
1749
+ Nt.start(800 + O, () => {
1750
+ Ke = !1;
1751
+ }), ye(!1), y && J && y(v), ie.start(N.transitions.duration.shortest, () => {
1752
+ K.current = !1;
1753
+ });
1754
+ }
1755
+ ), Oe = (v) => {
1756
+ K.current && v.type !== "touchstart" || (B && B.removeAttribute("title"), se.clear(), H.clear(), T || Ke && m ? se.start(Ke ? m : T, () => {
1757
+ Ae(v);
1758
+ }) : Ae(v));
1759
+ }, Me = (v) => {
1760
+ se.clear(), H.start(O, () => {
1761
+ ce(v);
1762
+ });
1763
+ }, [, _] = C.useState(!1), fe = (v) => {
1764
+ Rt(v.target) || (_(!1), Me(v));
1765
+ }, Ce = (v) => {
1766
+ B || ve(v.currentTarget), Rt(v.target) && (_(!0), Oe(v));
1767
+ }, je = (v) => {
1768
+ K.current = !0;
1769
+ const Z = $.props;
1770
+ Z.onTouchStart && Z.onTouchStart(v);
1771
+ }, $e = (v) => {
1772
+ je(v), H.clear(), ie.clear(), we(), le.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ge.start(h, () => {
1773
+ document.body.style.WebkitUserSelect = le.current, Oe(v);
1774
+ });
1775
+ }, He = (v) => {
1776
+ $.props.onTouchEnd && $.props.onTouchEnd(v), we(), H.start(d, () => {
1777
+ ce(v);
1778
+ });
1779
+ };
1780
+ C.useEffect(() => {
1781
+ if (!J)
1782
+ return;
1783
+ function v(Z) {
1784
+ Z.key === "Escape" && ce(Z);
1785
+ }
1786
+ return document.addEventListener("keydown", v), () => {
1787
+ document.removeEventListener("keydown", v);
1788
+ };
1789
+ }, [ce, J]);
1790
+ const Fe = st(Oo($), ve, o);
1791
+ !j && j !== 0 && (J = !1);
1792
+ const xe = C.useRef(), qe = (v) => {
1793
+ const Z = $.props;
1794
+ Z.onMouseMove && Z.onMouseMove(v), Be = {
1795
+ x: v.clientX,
1796
+ y: v.clientY
1797
+ }, xe.current && xe.current.update();
1798
+ }, De = {}, at = typeof j == "string";
1799
+ f ? (De.title = !J && at && !g ? j : null, De["aria-describedby"] = J ? be : null) : (De["aria-label"] = at ? j : null, De["aria-labelledby"] = J && !at ? be : null);
1800
+ const F = {
1801
+ ...De,
1802
+ ...S,
1803
+ ...$.props,
1804
+ className: xt(S.className, $.props.className),
1805
+ onTouchStart: je,
1806
+ ref: Fe,
1807
+ ...w ? {
1808
+ onMouseMove: qe
1809
+ } : {}
1810
+ };
1811
+ process.env.NODE_ENV !== "production" && (F["data-mui-internal-clone-element"] = !0, C.useEffect(() => {
1812
+ B && !B.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
1813
+ `));
1814
+ }, [B]));
1815
+ const Se = {};
1816
+ u || (F.onTouchStart = $e, F.onTouchEnd = He), g || (F.onMouseOver = Je(Oe, F.onMouseOver), F.onMouseLeave = Je(Me, F.onMouseLeave), U || (Se.onMouseOver = Oe, Se.onMouseLeave = Me)), l || (F.onFocus = Je(Ce, F.onFocus), F.onBlur = Je(fe, F.onBlur), U || (Se.onFocus = Ce, Se.onBlur = fe)), process.env.NODE_ENV !== "production" && $.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${$.props.title}\` or the Tooltip component.`].join(`
1817
+ `));
1818
+ const ue = {
1819
+ ...n,
1820
+ isRtl: oe,
1821
+ arrow: a,
1822
+ disableInteractive: U,
1823
+ placement: D,
1824
+ PopperComponentProp: A,
1825
+ touch: K.current
1826
+ }, Q = typeof M.popper == "function" ? M.popper(ue) : M.popper, oo = C.useMemo(() => {
1827
+ var Z, bt;
1828
+ let v = [{
1829
+ name: "arrow",
1830
+ enabled: !!re,
1831
+ options: {
1832
+ element: re,
1833
+ padding: 4
1834
+ }
1835
+ }];
1836
+ return (Z = P.popperOptions) != null && Z.modifiers && (v = v.concat(P.popperOptions.modifiers)), (bt = Q == null ? void 0 : Q.popperOptions) != null && bt.modifiers && (v = v.concat(Q.popperOptions.modifiers)), {
1837
+ ...P.popperOptions,
1838
+ ...Q == null ? void 0 : Q.popperOptions,
1839
+ modifiers: v
1840
+ };
1841
+ }, [re, P.popperOptions, Q == null ? void 0 : Q.popperOptions]), it = Ur(ue), ro = typeof M.transition == "function" ? M.transition(ue) : M.transition, ze = {
1842
+ slots: {
1843
+ popper: i.Popper,
1844
+ transition: i.Transition ?? X,
1845
+ tooltip: i.Tooltip,
1846
+ arrow: i.Arrow,
1847
+ ...L
1848
+ },
1849
+ slotProps: {
1850
+ arrow: M.arrow ?? p.arrow,
1851
+ popper: {
1852
+ ...P,
1853
+ ...Q ?? p.popper
1854
+ },
1855
+ // resolvedPopperProps can be spread because it's already an object
1856
+ tooltip: M.tooltip ?? p.tooltip,
1857
+ transition: {
1858
+ ...G,
1859
+ ...ro ?? p.transition
1860
+ }
1861
+ }
1862
+ }, [no, ao] = Xe("popper", {
1863
+ elementType: Hr,
1864
+ externalForwardedProps: ze,
1865
+ ownerState: ue,
1866
+ className: xt(it.popper, P == null ? void 0 : P.className)
1867
+ }), [io, so] = Xe("transition", {
1868
+ elementType: xo,
1869
+ externalForwardedProps: ze,
1870
+ ownerState: ue
1871
+ }), [po, lo] = Xe("tooltip", {
1872
+ elementType: Fr,
1873
+ className: it.tooltip,
1874
+ externalForwardedProps: ze,
1875
+ ownerState: ue
1876
+ }), [co, fo] = Xe("arrow", {
1877
+ elementType: qr,
1878
+ className: it.arrow,
1879
+ externalForwardedProps: ze,
1880
+ ownerState: ue,
1881
+ ref: he
1882
+ });
1883
+ return /* @__PURE__ */ wt(C.Fragment, {
1884
+ children: [/* @__PURE__ */ C.cloneElement($, F), /* @__PURE__ */ ne(no, {
1885
+ as: A ?? yt,
1886
+ placement: D,
1887
+ anchorEl: w ? {
1888
+ getBoundingClientRect: () => ({
1889
+ top: Be.y,
1890
+ left: Be.x,
1891
+ right: Be.x,
1892
+ bottom: Be.y,
1893
+ width: 0,
1894
+ height: 0
1895
+ })
1896
+ } : B,
1897
+ popperRef: xe,
1898
+ open: B ? J : !1,
1899
+ id: be,
1900
+ transition: !0,
1901
+ ...Se,
1902
+ ...ao,
1903
+ popperOptions: oo,
1904
+ children: ({
1905
+ TransitionProps: v
1906
+ }) => /* @__PURE__ */ ne(io, {
1907
+ timeout: N.transitions.duration.shorter,
1908
+ ...v,
1909
+ ...so,
1910
+ children: /* @__PURE__ */ wt(po, {
1911
+ ...lo,
1912
+ children: [j, a ? /* @__PURE__ */ ne(co, {
1913
+ ...fo
1914
+ }) : null]
1915
+ })
1916
+ })
1917
+ })]
1918
+ });
1919
+ });
1920
+ process.env.NODE_ENV !== "production" && (to.propTypes = {
1921
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1922
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1923
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1924
+ // └─────────────────────────────────────────────────────────────────────┘
1925
+ /**
1926
+ * If `true`, adds an arrow to the tooltip.
1927
+ * @default false
1928
+ */
1929
+ arrow: r.bool,
1930
+ /**
1931
+ * Tooltip reference element.
1932
+ */
1933
+ children: To.isRequired,
1934
+ /**
1935
+ * Override or extend the styles applied to the component.
1936
+ */
1937
+ classes: r.object,
1938
+ /**
1939
+ * @ignore
1940
+ */
1941
+ className: r.string,
1942
+ /**
1943
+ * The components used for each slot inside.
1944
+ *
1945
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1946
+ *
1947
+ * @default {}
1948
+ */
1949
+ components: r.shape({
1950
+ Arrow: r.elementType,
1951
+ Popper: r.elementType,
1952
+ Tooltip: r.elementType,
1953
+ Transition: r.elementType
1954
+ }),
1955
+ /**
1956
+ * The extra props for the slot components.
1957
+ * You can override the existing props or add new ones.
1958
+ *
1959
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1960
+ *
1961
+ * @default {}
1962
+ */
1963
+ componentsProps: r.shape({
1964
+ arrow: r.object,
1965
+ popper: r.object,
1966
+ tooltip: r.object,
1967
+ transition: r.object
1968
+ }),
1969
+ /**
1970
+ * Set to `true` if the `title` acts as an accessible description.
1971
+ * By default the `title` acts as an accessible label for the child.
1972
+ * @default false
1973
+ */
1974
+ describeChild: r.bool,
1975
+ /**
1976
+ * Do not respond to focus-visible events.
1977
+ * @default false
1978
+ */
1979
+ disableFocusListener: r.bool,
1980
+ /**
1981
+ * Do not respond to hover events.
1982
+ * @default false
1983
+ */
1984
+ disableHoverListener: r.bool,
1985
+ /**
1986
+ * Makes a tooltip not interactive, i.e. it will close when the user
1987
+ * hovers over the tooltip before the `leaveDelay` is expired.
1988
+ * @default false
1989
+ */
1990
+ disableInteractive: r.bool,
1991
+ /**
1992
+ * Do not respond to long press touch events.
1993
+ * @default false
1994
+ */
1995
+ disableTouchListener: r.bool,
1996
+ /**
1997
+ * The number of milliseconds to wait before showing the tooltip.
1998
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
1999
+ * @default 100
2000
+ */
2001
+ enterDelay: r.number,
2002
+ /**
2003
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
2004
+ * @default 0
2005
+ */
2006
+ enterNextDelay: r.number,
2007
+ /**
2008
+ * The number of milliseconds a user must touch the element before showing the tooltip.
2009
+ * @default 700
2010
+ */
2011
+ enterTouchDelay: r.number,
2012
+ /**
2013
+ * If `true`, the tooltip follow the cursor over the wrapped element.
2014
+ * @default false
2015
+ */
2016
+ followCursor: r.bool,
2017
+ /**
2018
+ * This prop is used to help implement the accessibility logic.
2019
+ * If you don't provide this prop. It falls back to a randomly generated id.
2020
+ */
2021
+ id: r.string,
2022
+ /**
2023
+ * The number of milliseconds to wait before hiding the tooltip.
2024
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
2025
+ * @default 0
2026
+ */
2027
+ leaveDelay: r.number,
2028
+ /**
2029
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
2030
+ * @default 1500
2031
+ */
2032
+ leaveTouchDelay: r.number,
2033
+ /**
2034
+ * Callback fired when the component requests to be closed.
2035
+ *
2036
+ * @param {React.SyntheticEvent} event The event source of the callback.
2037
+ */
2038
+ onClose: r.func,
2039
+ /**
2040
+ * Callback fired when the component requests to be open.
2041
+ *
2042
+ * @param {React.SyntheticEvent} event The event source of the callback.
2043
+ */
2044
+ onOpen: r.func,
2045
+ /**
2046
+ * If `true`, the component is shown.
2047
+ */
2048
+ open: r.bool,
2049
+ /**
2050
+ * Tooltip placement.
2051
+ * @default 'bottom'
2052
+ */
2053
+ placement: r.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
2054
+ /**
2055
+ * The component used for the popper.
2056
+ * @deprecated use the `slots.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2057
+ */
2058
+ PopperComponent: r.elementType,
2059
+ /**
2060
+ * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
2061
+ * @deprecated use the `slotProps.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2062
+ * @default {}
2063
+ */
2064
+ PopperProps: r.object,
2065
+ /**
2066
+ * The props used for each slot inside.
2067
+ * @default {}
2068
+ */
2069
+ slotProps: r.shape({
2070
+ arrow: r.oneOfType([r.func, r.object]),
2071
+ popper: r.oneOfType([r.func, r.object]),
2072
+ tooltip: r.oneOfType([r.func, r.object]),
2073
+ transition: r.oneOfType([r.func, r.object])
2074
+ }),
2075
+ /**
2076
+ * The components used for each slot inside.
2077
+ * @default {}
2078
+ */
2079
+ slots: r.shape({
2080
+ arrow: r.elementType,
2081
+ popper: r.elementType,
2082
+ tooltip: r.elementType,
2083
+ transition: r.elementType
2084
+ }),
2085
+ /**
2086
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2087
+ */
2088
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
2089
+ /**
2090
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2091
+ */
2092
+ title: r.node,
2093
+ /**
2094
+ * The component used for the transition.
2095
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
2096
+ * @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2097
+ */
2098
+ TransitionComponent: r.elementType,
2099
+ /**
2100
+ * Props applied to the transition element.
2101
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
2102
+ * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2103
+ * @default {}
2104
+ */
2105
+ TransitionProps: r.object
2106
+ });
2107
+ const Jr = mo(
2108
+ uo.forwardRef((t, e) => /* @__PURE__ */ ne(
2109
+ to,
2110
+ {
2111
+ enterTouchDelay: 0,
2112
+ ...t,
2113
+ arrow: !0,
2114
+ ref: e,
2115
+ classes: { popper: t.className }
2116
+ }
2117
+ ))
2118
+ )(({ theme: t }) => ({
2119
+ [`& .${Ot.arrow}`]: {
2120
+ color: t.palette.common.black
2121
+ },
2122
+ [`& .${Ot.tooltip}`]: {
2123
+ backgroundColor: t.palette.common.black
2124
+ }
2125
+ }));
2126
+ export {
2127
+ Jr as M,
2128
+ Rt as i
2129
+ };