@solostylist/ui-kit 1.0.175 → 1.0.176

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 (203) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.js +84 -92
  79. package/dist/s-chat-message/s-chat-message.js +111 -120
  80. package/dist/s-checkbox/s-checkbox.js +12 -20
  81. package/dist/s-chip/package.json +5 -5
  82. package/dist/s-chip/s-chip.js +7 -15
  83. package/dist/s-chips/s-chips.js +47 -56
  84. package/dist/s-code-block/package.json +5 -5
  85. package/dist/s-code-block/s-code-block.js +35 -43
  86. package/dist/s-comment-message/package.json +5 -5
  87. package/dist/s-comment-message/s-comment-message.js +90 -94
  88. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  89. package/dist/s-countdown/s-count-box.js +42 -50
  90. package/dist/s-countdown/s-count-down.js +79 -107
  91. package/dist/s-data-table/s-data-table.js +374 -384
  92. package/dist/s-date-picker/s-date-picker.js +164 -164
  93. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  94. package/dist/s-dialog/s-dialog.js +24 -32
  95. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  96. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  97. package/dist/s-empty/s-empty.js +6 -14
  98. package/dist/s-error/s-error.js +9 -17
  99. package/dist/s-error-layout/s-error-layout.js +38 -47
  100. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  101. package/dist/s-file-icon/s-file-icon.js +9 -13
  102. package/dist/s-flex-box/s-flex-box.js +6 -14
  103. package/dist/s-form/s-form.js +11 -19
  104. package/dist/s-gallery/index.js +3 -33
  105. package/dist/s-gallery/s-gallery.js +91 -114
  106. package/dist/s-glow-button/s-glow-button.js +22 -26
  107. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  108. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  109. package/dist/s-icon-button/s-icon-button.js +6 -14
  110. package/dist/s-image-comparison/package.json +5 -5
  111. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  112. package/dist/s-image-modal/package.json +5 -5
  113. package/dist/s-image-modal/s-image-modal.js +137 -150
  114. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  115. package/dist/s-label/s-label.js +12 -20
  116. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  117. package/dist/s-lazy-image/index.js +2 -10
  118. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  119. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  120. package/dist/s-moving-border/s-moving-border.js +52 -67
  121. package/dist/s-multi-select/s-multi-select.js +43 -51
  122. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  123. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  124. package/dist/s-pagination/s-pagination.js +13 -17
  125. package/dist/s-pixel-reveal/package.json +5 -5
  126. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  127. package/dist/s-radial-pulse-animate/package.json +5 -5
  128. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  129. package/dist/s-rating/package.json +5 -5
  130. package/dist/s-rating/s-rating.js +7 -15
  131. package/dist/s-review/package.json +5 -5
  132. package/dist/s-review/s-review.js +101 -106
  133. package/dist/s-scroll-reveal/package.json +5 -5
  134. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  135. package/dist/s-scroll-to-top/package.json +5 -5
  136. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  137. package/dist/s-scroll-velocity/package.json +5 -5
  138. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  139. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  140. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  141. package/dist/s-select/s-select.js +67 -75
  142. package/dist/s-select-list/s-select-list.js +28 -32
  143. package/dist/s-skeleton/s-skeleton.js +20 -28
  144. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  145. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  146. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  147. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  148. package/dist/s-stripe/s-stripe-number.js +8 -12
  149. package/dist/s-stripe/s-stripe.d.ts +2 -2
  150. package/dist/s-stripe/s-stripe.js +17 -26
  151. package/dist/s-stripe/stripe-input.js +25 -29
  152. package/dist/s-tabs/package.json +3 -3
  153. package/dist/s-tabs/s-tab-panel.js +17 -25
  154. package/dist/s-tabs/s-tab.js +5 -9
  155. package/dist/s-tabs/s-tabs.js +19 -27
  156. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  157. package/dist/s-text-editor/s-text-editor.js +33 -45
  158. package/dist/s-text-field/s-text-field.js +31 -40
  159. package/dist/s-text-shimmer/package.json +4 -4
  160. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  161. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  162. package/dist/s-theme-demo/package.json +5 -5
  163. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  164. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  165. package/dist/s-theme-switch/package.json +4 -4
  166. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  167. package/dist/s-tip/s-tip.js +14 -22
  168. package/dist/s-two-pane-layout/index.js +2 -10
  169. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  170. package/dist/s-typewriter-text/package.json +5 -5
  171. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  172. package/dist/s-zoom-image/index.js +2 -10
  173. package/dist/s-zoom-image/package.json +5 -5
  174. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  175. package/dist/styled-B0KflPi-.js +203 -0
  176. package/dist/theme/components/alert.d.ts +484 -264
  177. package/dist/theme/components/avatar.js +2 -2
  178. package/dist/theme/components/button.d.ts +726 -396
  179. package/dist/theme/components/chip.js +2 -2
  180. package/dist/theme/components/icon-button.d.ts +726 -396
  181. package/dist/theme/customizations/data-display.js +1 -1
  182. package/dist/theme/customizations/inputs.js +2 -2
  183. package/dist/theme/customizations/navigation.js +2 -2
  184. package/dist/theme/theme-primitives.d.ts +8 -246
  185. package/dist/theme/theme-primitives.js +76 -87
  186. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  187. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  188. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  189. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  190. package/dist/utils/dayjs.js +7 -7
  191. package/dist/utils/logger.js +29 -32
  192. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  193. package/package.json +240 -81
  194. package/README.md +0 -13
  195. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  196. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  197. package/dist/Paper-hkbPWyBT.js +0 -553
  198. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  199. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  200. package/dist/extendSxProp-BKWjdW12.js +0 -37
  201. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  202. package/dist/resolveProps-61uUKnlS.js +0 -52
  203. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,35 +1,36 @@
1
- import * as u from "react";
2
- import { P as e, j as He } from "./createTheme-3Wd3hHrj.js";
3
- import { u as ce, c as ne, a as le, m as it } from "./DefaultPropsProvider-CaCsvQaq.js";
4
- import { j as A } from "./jsx-runtime-OVHDjVDe.js";
5
- import { s as G, r as at } from "./styled-B0Z4EDy9.js";
6
- import { g as ue } from "./colorManipulator-ep5lERxB.js";
7
- import { g as pe } from "./generateUtilityClasses-BtVDwGrk.js";
8
- import { c as Me, b as ct, u as Z, d as W, f as Fe, g as lt, i as ut, r as pt, e as dt, a as ft, m as mt, h as ht } from "./ButtonBase-DfTfJ_ou.js";
9
- import { T as ze, u as qe, g as he, r as We, P as bt, i as gt } from "./Paper-hkbPWyBT.js";
10
- import { m as yt } from "./mergeSlotProps-Dl_rJtoN.js";
11
- import * as Et from "react-dom";
12
- import { u as Ne } from "./useEnhancedEffect-CJGo-L3B.js";
13
- function De(...t) {
1
+ import * as l from "react";
2
+ import { r as ze, T as qe, u as We, g as be, a as Ge, P as at, i as ct } from "./Paper-DnctZB5U.js";
3
+ import { P as e } from "./createTheme-f5g1s6ww.js";
4
+ import { c as ee } from "./clsx-OuTLNxxd.js";
5
+ import { j as A } from "./jsx-runtime-tc70JA_2.js";
6
+ import { s as q, r as lt } from "./styled-B0KflPi-.js";
7
+ import { g as le } from "./colorManipulator-ep5lERxB.js";
8
+ import { g as ue } from "./generateUtilityClasses-BtVDwGrk.js";
9
+ import { a as ut, m as pt, u as J, g as dt, d as Me, b as ft, c as z, f as De, h as mt, i as ht, r as bt, e as gt } from "./ButtonBase-C_YYB9Ry.js";
10
+ import { u as pe, c as de, m as yt } from "./DefaultPropsProvider-sk0uWcA6.js";
11
+ import { m as Et } from "./mergeSlotProps-CuzBQdlp.js";
12
+ import * as Tt from "react-dom";
13
+ import { u as ke } from "./useEnhancedEffect-CJGo-L3B.js";
14
+ function Le(...t) {
14
15
  return t.reduce((n, o) => o == null ? n : function(...a) {
15
16
  n.apply(this, a), o.apply(this, a);
16
17
  }, () => {
17
18
  });
18
19
  }
19
- const Tt = "exact-prop: ​";
20
- function Ge(t) {
20
+ const Pt = "exact-prop: ​";
21
+ function Ye(t) {
21
22
  return process.env.NODE_ENV === "production" ? t : {
22
23
  ...t,
23
- [Tt]: (n) => {
24
+ [Pt]: (n) => {
24
25
  const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
25
26
  return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
26
27
  }
27
28
  };
28
29
  }
29
- const Pt = /* @__PURE__ */ u.createContext();
30
+ const vt = /* @__PURE__ */ l.createContext();
30
31
  process.env.NODE_ENV !== "production" && (e.node, e.bool);
31
- const xt = () => u.useContext(Pt) ?? !1;
32
- function vt(t, n = 166) {
32
+ const xt = () => l.useContext(vt) ?? !1;
33
+ function Rt(t, n = 166) {
33
34
  let o;
34
35
  function r(...a) {
35
36
  const s = () => {
@@ -41,28 +42,334 @@ function vt(t, n = 166) {
41
42
  clearTimeout(o);
42
43
  }, r;
43
44
  }
44
- function q(t) {
45
+ function _(t) {
45
46
  return t && t.ownerDocument || document;
46
47
  }
47
- function Q(t) {
48
- return q(t).defaultView || window;
48
+ function X(t) {
49
+ return _(t).defaultView || window;
49
50
  }
50
- function Le(t, n) {
51
+ function Ae(t, n) {
51
52
  typeof t == "function" ? t(n) : t && (t.current = n);
52
53
  }
53
- function ae(t, n, o, r, a) {
54
+ function ce(t, n, o, r, a) {
54
55
  if (process.env.NODE_ENV === "production")
55
56
  return null;
56
57
  const s = t[n], i = a || n;
57
58
  return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
58
59
  }
59
- function Rt(t) {
60
+ function Ot(t) {
61
+ const {
62
+ elementType: n,
63
+ externalSlotProps: o,
64
+ ownerState: r,
65
+ skipResolvingSlotProps: a = !1,
66
+ ...s
67
+ } = t, i = a ? {} : ut(o, r), {
68
+ props: c,
69
+ internalRef: d
70
+ } = pt({
71
+ ...s,
72
+ externalSlotProps: i
73
+ }), T = J(d, i?.ref, t.additionalProps?.ref);
74
+ return dt(n, {
75
+ ...c,
76
+ ref: T
77
+ }, r);
78
+ }
79
+ const Xe = /* @__PURE__ */ l.createContext({});
80
+ process.env.NODE_ENV !== "production" && (Xe.displayName = "ListContext");
81
+ function wt(t) {
82
+ return le("MuiList", t);
83
+ }
84
+ ue("MuiList", ["root", "padding", "dense", "subheader"]);
85
+ const Nt = (t) => {
86
+ const {
87
+ classes: n,
88
+ disablePadding: o,
89
+ dense: r,
90
+ subheader: a
91
+ } = t;
92
+ return de({
93
+ root: ["root", !o && "padding", r && "dense", a && "subheader"]
94
+ }, wt, n);
95
+ }, kt = q("ul", {
96
+ name: "MuiList",
97
+ slot: "Root",
98
+ overridesResolver: (t, n) => {
99
+ const {
100
+ ownerState: o
101
+ } = t;
102
+ return [n.root, !o.disablePadding && n.padding, o.dense && n.dense, o.subheader && n.subheader];
103
+ }
104
+ })({
105
+ listStyle: "none",
106
+ margin: 0,
107
+ padding: 0,
108
+ position: "relative",
109
+ variants: [{
110
+ props: ({
111
+ ownerState: t
112
+ }) => !t.disablePadding,
113
+ style: {
114
+ paddingTop: 8,
115
+ paddingBottom: 8
116
+ }
117
+ }, {
118
+ props: ({
119
+ ownerState: t
120
+ }) => t.subheader,
121
+ style: {
122
+ paddingTop: 0
123
+ }
124
+ }]
125
+ }), Je = /* @__PURE__ */ l.forwardRef(function(n, o) {
126
+ const r = pe({
127
+ props: n,
128
+ name: "MuiList"
129
+ }), {
130
+ children: a,
131
+ className: s,
132
+ component: i = "ul",
133
+ dense: c = !1,
134
+ disablePadding: d = !1,
135
+ subheader: T,
136
+ ...O
137
+ } = r, x = l.useMemo(() => ({
138
+ dense: c
139
+ }), [c]), C = {
140
+ ...r,
141
+ component: i,
142
+ dense: c,
143
+ disablePadding: d
144
+ }, h = Nt(C);
145
+ return /* @__PURE__ */ A.jsx(Xe.Provider, {
146
+ value: x,
147
+ children: /* @__PURE__ */ A.jsxs(kt, {
148
+ as: i,
149
+ className: ee(h.root, s),
150
+ ref: o,
151
+ ownerState: C,
152
+ ...O,
153
+ children: [T, a]
154
+ })
155
+ });
156
+ });
157
+ process.env.NODE_ENV !== "production" && (Je.propTypes = {
158
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
159
+ // │ These PropTypes are generated from the TypeScript type definitions. │
160
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
161
+ // └─────────────────────────────────────────────────────────────────────┘
162
+ /**
163
+ * The content of the component.
164
+ */
165
+ children: e.node,
166
+ /**
167
+ * Override or extend the styles applied to the component.
168
+ */
169
+ classes: e.object,
170
+ /**
171
+ * @ignore
172
+ */
173
+ className: e.string,
174
+ /**
175
+ * The component used for the root node.
176
+ * Either a string to use a HTML element or a component.
177
+ */
178
+ component: e.elementType,
179
+ /**
180
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used for
181
+ * the list and list items.
182
+ * The prop is available to descendant components as the `dense` context.
183
+ * @default false
184
+ */
185
+ dense: e.bool,
186
+ /**
187
+ * If `true`, vertical padding is removed from the list.
188
+ * @default false
189
+ */
190
+ disablePadding: e.bool,
191
+ /**
192
+ * The content of the subheader, normally `ListSubheader`.
193
+ */
194
+ subheader: e.node,
195
+ /**
196
+ * The system prop that allows defining system overrides as well as additional CSS styles.
197
+ */
198
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
199
+ });
200
+ function se(t) {
201
+ let n = t.activeElement;
202
+ for (; n?.shadowRoot?.activeElement != null; )
203
+ n = n.shadowRoot.activeElement;
204
+ return n;
205
+ }
206
+ function Qe(t = window) {
207
+ const n = t.document.documentElement.clientWidth;
208
+ return t.innerWidth - n;
209
+ }
210
+ function Oe(t, n, o) {
211
+ return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
212
+ }
213
+ function He(t, n, o) {
214
+ return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
215
+ }
216
+ function Ze(t, n) {
217
+ if (n === void 0)
218
+ return !0;
219
+ let o = t.innerText;
220
+ return o === void 0 && (o = t.textContent), o = o.trim().toLowerCase(), o.length === 0 ? !1 : n.repeating ? o[0] === n.keys[0] : o.startsWith(n.keys.join(""));
221
+ }
222
+ function re(t, n, o, r, a, s) {
223
+ let i = !1, c = a(t, n, n ? o : !1);
224
+ for (; c; ) {
225
+ if (c === t.firstChild) {
226
+ if (i)
227
+ return !1;
228
+ i = !0;
229
+ }
230
+ const d = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
231
+ if (!c.hasAttribute("tabindex") || !Ze(c, s) || d)
232
+ c = a(t, c, o);
233
+ else
234
+ return c.focus(), !0;
235
+ }
236
+ return !1;
237
+ }
238
+ const et = /* @__PURE__ */ l.forwardRef(function(n, o) {
239
+ const {
240
+ // private
241
+ // eslint-disable-next-line react/prop-types
242
+ actions: r,
243
+ autoFocus: a = !1,
244
+ autoFocusItem: s = !1,
245
+ children: i,
246
+ className: c,
247
+ disabledItemsFocusable: d = !1,
248
+ disableListWrap: T = !1,
249
+ onKeyDown: O,
250
+ variant: x = "selectedMenu",
251
+ ...C
252
+ } = n, h = l.useRef(null), b = l.useRef({
253
+ keys: [],
254
+ repeating: !0,
255
+ previousKeyMatched: !0,
256
+ lastTime: null
257
+ });
258
+ ke(() => {
259
+ a && h.current.focus();
260
+ }, [a]), l.useImperativeHandle(r, () => ({
261
+ adjustStyleForScrollbar: (u, {
262
+ direction: p
263
+ }) => {
264
+ const g = !h.current.style.width;
265
+ if (u.clientHeight < h.current.clientHeight && g) {
266
+ const k = `${Qe(X(u))}px`;
267
+ h.current.style[p === "rtl" ? "paddingLeft" : "paddingRight"] = k, h.current.style.width = `calc(100% + ${k})`;
268
+ }
269
+ return h.current;
270
+ }
271
+ }), []);
272
+ const F = (u) => {
273
+ const p = h.current, g = u.key;
274
+ if (u.ctrlKey || u.metaKey || u.altKey) {
275
+ O && O(u);
276
+ return;
277
+ }
278
+ const P = se(_(p));
279
+ if (g === "ArrowDown")
280
+ u.preventDefault(), re(p, P, T, d, Oe);
281
+ else if (g === "ArrowUp")
282
+ u.preventDefault(), re(p, P, T, d, He);
283
+ else if (g === "Home")
284
+ u.preventDefault(), re(p, null, T, d, Oe);
285
+ else if (g === "End")
286
+ u.preventDefault(), re(p, null, T, d, He);
287
+ else if (g.length === 1) {
288
+ const E = b.current, w = g.toLowerCase(), H = performance.now();
289
+ E.keys.length > 0 && (H - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && w !== E.keys[0] && (E.repeating = !1)), E.lastTime = H, E.keys.push(w);
290
+ const D = P && !E.repeating && Ze(P, E);
291
+ E.previousKeyMatched && (D || re(p, P, !1, d, Oe, E)) ? u.preventDefault() : E.previousKeyMatched = !1;
292
+ }
293
+ O && O(u);
294
+ }, M = J(h, o);
295
+ let y = -1;
296
+ l.Children.forEach(i, (u, p) => {
297
+ if (!/* @__PURE__ */ l.isValidElement(u)) {
298
+ y === p && (y += 1, y >= i.length && (y = -1));
299
+ return;
300
+ }
301
+ process.env.NODE_ENV !== "production" && ze.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
302
+ `)), u.props.disabled || (x === "selectedMenu" && u.props.selected || y === -1) && (y = p), y === p && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (y += 1, y >= i.length && (y = -1));
303
+ });
304
+ const R = l.Children.map(i, (u, p) => {
305
+ if (p === y) {
306
+ const g = {};
307
+ return s && (g.autoFocus = !0), u.props.tabIndex === void 0 && x === "selectedMenu" && (g.tabIndex = 0), /* @__PURE__ */ l.cloneElement(u, g);
308
+ }
309
+ return u;
310
+ });
311
+ return /* @__PURE__ */ A.jsx(Je, {
312
+ role: "menu",
313
+ ref: M,
314
+ className: c,
315
+ onKeyDown: F,
316
+ tabIndex: a ? 0 : -1,
317
+ ...C,
318
+ children: R
319
+ });
320
+ });
321
+ process.env.NODE_ENV !== "production" && (et.propTypes = {
322
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
323
+ // │ These PropTypes are generated from the TypeScript type definitions. │
324
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
325
+ // └─────────────────────────────────────────────────────────────────────┘
326
+ /**
327
+ * If `true`, will focus the `[role="menu"]` container and move into tab order.
328
+ * @default false
329
+ */
330
+ autoFocus: e.bool,
331
+ /**
332
+ * If `true`, will focus the first menuitem if `variant="menu"` or selected item
333
+ * if `variant="selectedMenu"`.
334
+ * @default false
335
+ */
336
+ autoFocusItem: e.bool,
337
+ /**
338
+ * MenuList contents, normally `MenuItem`s.
339
+ */
340
+ children: e.node,
341
+ /**
342
+ * @ignore
343
+ */
344
+ className: e.string,
345
+ /**
346
+ * If `true`, will allow focus on disabled items.
347
+ * @default false
348
+ */
349
+ disabledItemsFocusable: e.bool,
350
+ /**
351
+ * If `true`, the menu items will not wrap focus.
352
+ * @default false
353
+ */
354
+ disableListWrap: e.bool,
355
+ /**
356
+ * @ignore
357
+ */
358
+ onKeyDown: e.func,
359
+ /**
360
+ * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
361
+ * and the vertical alignment relative to the anchor element.
362
+ * @default 'selectedMenu'
363
+ */
364
+ variant: e.oneOf(["menu", "selectedMenu"])
365
+ });
366
+ function Ct(t) {
60
367
  const {
61
368
  prototype: n = {}
62
369
  } = t;
63
370
  return !!n.isReactComponent;
64
371
  }
65
- function Ye(t, n, o, r, a) {
372
+ function tt(t, n, o, r, a) {
66
373
  const s = t[n], i = a || n;
67
374
  if (s == null || // When server-side rendering React doesn't warn either.
68
375
  // This is not an accurate check for SSR.
@@ -72,18 +379,17 @@ function Ye(t, n, o, r, a) {
72
379
  return null;
73
380
  let c;
74
381
  const d = s.type;
75
- return typeof d == "function" && !Rt(d) && (c = "Did you accidentally use a plain function component for an element instead?"), c !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
382
+ return typeof d == "function" && !Ct(d) && (c = "Did you accidentally use a plain function component for an element instead?"), c !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
76
383
  }
77
- const de = Me(e.element, Ye);
78
- de.isRequired = Me(e.element.isRequired, Ye);
79
- function Ee(t) {
80
- var n;
81
- return parseInt(u.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
384
+ const fe = Me(e.element, tt);
385
+ fe.isRequired = Me(e.element.isRequired, tt);
386
+ function Te(t) {
387
+ return parseInt(l.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
82
388
  }
83
389
  function Ce(t) {
84
390
  return `scale(${t}, ${t ** 2})`;
85
391
  }
86
- const Ot = {
392
+ const Mt = {
87
393
  entering: {
88
394
  opacity: 1,
89
395
  transform: Ce(1)
@@ -92,7 +398,7 @@ const Ot = {
92
398
  opacity: 1,
93
399
  transform: "none"
94
400
  }
95
- }, Re = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), be = /* @__PURE__ */ u.forwardRef(function(n, o) {
401
+ }, we = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), ge = /* @__PURE__ */ l.forwardRef(function(n, o) {
96
402
  const {
97
403
  addEndListener: r,
98
404
  appear: a = !0,
@@ -101,97 +407,97 @@ const Ot = {
101
407
  in: c,
102
408
  onEnter: d,
103
409
  onEntered: T,
104
- onEntering: w,
410
+ onEntering: O,
105
411
  onExit: x,
106
412
  onExited: C,
107
413
  onExiting: h,
108
414
  style: b,
109
- timeout: I = "auto",
415
+ timeout: F = "auto",
110
416
  // eslint-disable-next-line react/prop-types
111
- TransitionComponent: M = ze,
112
- ...g
113
- } = n, O = ct(), l = u.useRef(), f = qe(), y = u.useRef(null), N = Z(y, Ee(s), o), R = (p) => (m) => {
114
- if (p) {
115
- const F = y.current;
116
- m === void 0 ? p(F) : p(F, m);
417
+ TransitionComponent: M = qe,
418
+ ...y
419
+ } = n, R = ft(), u = l.useRef(), p = We(), g = l.useRef(null), k = J(g, Te(s), o), P = (f) => (m) => {
420
+ if (f) {
421
+ const L = g.current;
422
+ m === void 0 ? f(L) : f(L, m);
117
423
  }
118
- }, E = R(w), S = R((p, m) => {
119
- We(p);
424
+ }, E = P(O), w = P((f, m) => {
425
+ Ge(f);
120
426
  const {
121
- duration: F,
122
- delay: B,
427
+ duration: L,
428
+ delay: K,
123
429
  easing: v
124
- } = he({
430
+ } = be({
125
431
  style: b,
126
- timeout: I,
432
+ timeout: F,
127
433
  easing: i
128
434
  }, {
129
435
  mode: "enter"
130
436
  });
131
- let D;
132
- I === "auto" ? (D = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = D) : D = F, p.style.transition = [f.transitions.create("opacity", {
133
- duration: D,
134
- delay: B
135
- }), f.transitions.create("transform", {
136
- duration: Re ? D : D * 0.666,
137
- delay: B,
437
+ let I;
438
+ F === "auto" ? (I = p.transitions.getAutoHeightDuration(f.clientHeight), u.current = I) : I = L, f.style.transition = [p.transitions.create("opacity", {
439
+ duration: I,
440
+ delay: K
441
+ }), p.transitions.create("transform", {
442
+ duration: we ? I : I * 0.666,
443
+ delay: K,
138
444
  easing: v
139
- })].join(","), d && d(p, m);
140
- }), V = R(T), L = R(h), $ = R((p) => {
445
+ })].join(","), d && d(f, m);
446
+ }), H = P(T), D = P(h), B = P((f) => {
141
447
  const {
142
448
  duration: m,
143
- delay: F,
144
- easing: B
145
- } = he({
449
+ delay: L,
450
+ easing: K
451
+ } = be({
146
452
  style: b,
147
- timeout: I,
453
+ timeout: F,
148
454
  easing: i
149
455
  }, {
150
456
  mode: "exit"
151
457
  });
152
458
  let v;
153
- I === "auto" ? (v = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = v) : v = m, p.style.transition = [f.transitions.create("opacity", {
459
+ F === "auto" ? (v = p.transitions.getAutoHeightDuration(f.clientHeight), u.current = v) : v = m, f.style.transition = [p.transitions.create("opacity", {
154
460
  duration: v,
155
- delay: F
156
- }), f.transitions.create("transform", {
157
- duration: Re ? v : v * 0.666,
158
- delay: Re ? F : F || v * 0.333,
159
- easing: B
160
- })].join(","), p.style.opacity = 0, p.style.transform = Ce(0.75), x && x(p);
161
- }), U = R(C), k = (p) => {
162
- I === "auto" && O.start(l.current || 0, p), r && r(y.current, p);
461
+ delay: L
462
+ }), p.transitions.create("transform", {
463
+ duration: we ? v : v * 0.666,
464
+ delay: we ? L : L || v * 0.333,
465
+ easing: K
466
+ })].join(","), f.style.opacity = 0, f.style.transform = Ce(0.75), x && x(f);
467
+ }), $ = P(C), S = (f) => {
468
+ F === "auto" && R.start(u.current || 0, f), r && r(g.current, f);
163
469
  };
164
470
  return /* @__PURE__ */ A.jsx(M, {
165
471
  appear: a,
166
472
  in: c,
167
- nodeRef: y,
168
- onEnter: S,
169
- onEntered: V,
473
+ nodeRef: g,
474
+ onEnter: w,
475
+ onEntered: H,
170
476
  onEntering: E,
171
- onExit: $,
172
- onExited: U,
173
- onExiting: L,
174
- addEndListener: k,
175
- timeout: I === "auto" ? null : I,
176
- ...g,
177
- children: (p, {
477
+ onExit: B,
478
+ onExited: $,
479
+ onExiting: D,
480
+ addEndListener: S,
481
+ timeout: F === "auto" ? null : F,
482
+ ...y,
483
+ children: (f, {
178
484
  ownerState: m,
179
- ...F
180
- }) => /* @__PURE__ */ u.cloneElement(s, {
485
+ ...L
486
+ }) => /* @__PURE__ */ l.cloneElement(s, {
181
487
  style: {
182
488
  opacity: 0,
183
489
  transform: Ce(0.75),
184
- visibility: p === "exited" && !c ? "hidden" : void 0,
185
- ...Ot[p],
490
+ visibility: f === "exited" && !c ? "hidden" : void 0,
491
+ ...Mt[f],
186
492
  ...b,
187
493
  ...s.props.style
188
494
  },
189
- ref: N,
190
- ...F
495
+ ref: k,
496
+ ...L
191
497
  })
192
498
  });
193
499
  });
194
- process.env.NODE_ENV !== "production" && (be.propTypes = {
500
+ process.env.NODE_ENV !== "production" && (ge.propTypes = {
195
501
  // ┌────────────────────────────── Warning ──────────────────────────────┐
196
502
  // │ These PropTypes are generated from the TypeScript type definitions. │
197
503
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -211,7 +517,7 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
211
517
  /**
212
518
  * A single child content element.
213
519
  */
214
- children: de.isRequired,
520
+ children: fe.isRequired,
215
521
  /**
216
522
  * The transition timing function.
217
523
  * You may specify a single easing or a object containing enter and exit values.
@@ -265,61 +571,57 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
265
571
  exit: e.number
266
572
  })])
267
573
  });
268
- be && (be.muiSupportAuto = !0);
269
- function Xe(t = window) {
270
- const n = t.document.documentElement.clientWidth;
271
- return t.innerWidth - n;
272
- }
273
- function wt(t) {
274
- const n = q(t);
275
- return n.body === t ? Q(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
574
+ ge && (ge.muiSupportAuto = !0);
575
+ function St(t) {
576
+ const n = _(t);
577
+ return n.body === t ? X(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
276
578
  }
277
- function ie(t, n) {
579
+ function ae(t, n) {
278
580
  n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
279
581
  }
280
- function Ae(t) {
281
- return parseInt(Q(t).getComputedStyle(t).paddingRight, 10) || 0;
582
+ function Be(t) {
583
+ return parseFloat(X(t).getComputedStyle(t).paddingRight) || 0;
282
584
  }
283
- function Nt(t) {
585
+ function jt(t) {
284
586
  const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), r = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
285
587
  return o || r;
286
588
  }
287
589
  function Ve(t, n, o, r, a) {
288
590
  const s = [n, o, ...r];
289
591
  [].forEach.call(t.children, (i) => {
290
- const c = !s.includes(i), d = !Nt(i);
291
- c && d && ie(i, a);
592
+ const c = !s.includes(i), d = !jt(i);
593
+ c && d && ae(i, a);
292
594
  });
293
595
  }
294
- function Oe(t, n) {
596
+ function Ne(t, n) {
295
597
  let o = -1;
296
598
  return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
297
599
  }
298
- function Ct(t, n) {
600
+ function Ft(t, n) {
299
601
  const o = [], r = t.container;
300
602
  if (!n.disableScrollLock) {
301
- if (wt(r)) {
302
- const i = Xe(Q(r));
603
+ if (St(r)) {
604
+ const i = Qe(X(r));
303
605
  o.push({
304
606
  value: r.style.paddingRight,
305
607
  property: "padding-right",
306
608
  el: r
307
- }), r.style.paddingRight = `${Ae(r) + i}px`;
308
- const c = q(r).querySelectorAll(".mui-fixed");
609
+ }), r.style.paddingRight = `${Be(r) + i}px`;
610
+ const c = _(r).querySelectorAll(".mui-fixed");
309
611
  [].forEach.call(c, (d) => {
310
612
  o.push({
311
613
  value: d.style.paddingRight,
312
614
  property: "padding-right",
313
615
  el: d
314
- }), d.style.paddingRight = `${Ae(d) + i}px`;
616
+ }), d.style.paddingRight = `${Be(d) + i}px`;
315
617
  });
316
618
  }
317
619
  let s;
318
620
  if (r.parentNode instanceof DocumentFragment)
319
- s = q(r).body;
621
+ s = _(r).body;
320
622
  else {
321
- const i = r.parentElement, c = Q(r);
322
- s = (i == null ? void 0 : i.nodeName) === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : r;
623
+ const i = r.parentElement, c = X(r);
624
+ s = i?.nodeName === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : r;
323
625
  }
324
626
  o.push({
325
627
  value: s.style.overflow,
@@ -345,13 +647,13 @@ function Ct(t, n) {
345
647
  });
346
648
  };
347
649
  }
348
- function Mt(t) {
650
+ function It(t) {
349
651
  const n = [];
350
652
  return [].forEach.call(t.children, (o) => {
351
653
  o.getAttribute("aria-hidden") === "true" && n.push(o);
352
654
  }), n;
353
655
  }
354
- class kt {
656
+ class Dt {
355
657
  constructor() {
356
658
  this.modals = [], this.containers = [];
357
659
  }
@@ -359,10 +661,10 @@ class kt {
359
661
  let r = this.modals.indexOf(n);
360
662
  if (r !== -1)
361
663
  return r;
362
- r = this.modals.length, this.modals.push(n), n.modalRef && ie(n.modalRef, !1);
363
- const a = Mt(o);
664
+ r = this.modals.length, this.modals.push(n), n.modalRef && ae(n.modalRef, !1);
665
+ const a = It(o);
364
666
  Ve(o, n.mount, n.modalRef, a, !0);
365
- const s = Oe(this.containers, (i) => i.container === o);
667
+ const s = Ne(this.containers, (i) => i.container === o);
366
668
  return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
367
669
  modals: [n],
368
670
  container: o,
@@ -371,19 +673,19 @@ class kt {
371
673
  }), r);
372
674
  }
373
675
  mount(n, o) {
374
- const r = Oe(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
375
- a.restore || (a.restore = Ct(a, o));
676
+ const r = Ne(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
677
+ a.restore || (a.restore = Ft(a, o));
376
678
  }
377
679
  remove(n, o = !0) {
378
680
  const r = this.modals.indexOf(n);
379
681
  if (r === -1)
380
682
  return r;
381
- const a = Oe(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
683
+ const a = Ne(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
382
684
  if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
383
- s.restore && s.restore(), n.modalRef && ie(n.modalRef, o), Ve(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
685
+ s.restore && s.restore(), n.modalRef && ae(n.modalRef, o), Ve(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
384
686
  else {
385
687
  const i = s.modals[s.modals.length - 1];
386
- i.modalRef && ie(i.modalRef, !1);
688
+ i.modalRef && ae(i.modalRef, !1);
387
689
  }
388
690
  return r;
389
691
  }
@@ -391,117 +693,120 @@ class kt {
391
693
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
392
694
  }
393
695
  }
394
- const St = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
395
- function jt(t) {
696
+ const Lt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
697
+ function At(t) {
396
698
  const n = parseInt(t.getAttribute("tabindex") || "", 10);
397
699
  return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
398
700
  }
399
- function It(t) {
701
+ function Ht(t) {
400
702
  if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
401
703
  return !1;
402
704
  const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
403
705
  let o = n(`[name="${t.name}"]:checked`);
404
706
  return o || (o = n(`[name="${t.name}"]`)), o !== t;
405
707
  }
406
- function Ft(t) {
407
- return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || It(t));
708
+ function Bt(t) {
709
+ return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || Ht(t));
408
710
  }
409
- function Dt(t) {
711
+ function Vt(t) {
410
712
  const n = [], o = [];
411
- return Array.from(t.querySelectorAll(St)).forEach((r, a) => {
412
- const s = jt(r);
413
- s === -1 || !Ft(r) || (s === 0 ? n.push(r) : o.push({
713
+ return Array.from(t.querySelectorAll(Lt)).forEach((r, a) => {
714
+ const s = At(r);
715
+ s === -1 || !Bt(r) || (s === 0 ? n.push(r) : o.push({
414
716
  documentOrder: a,
415
717
  tabIndex: s,
416
718
  node: r
417
719
  }));
418
720
  }), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
419
721
  }
420
- function Lt() {
722
+ function $t() {
421
723
  return !0;
422
724
  }
423
- function ge(t) {
725
+ function ye(t) {
424
726
  const {
425
727
  children: n,
426
728
  disableAutoFocus: o = !1,
427
729
  disableEnforceFocus: r = !1,
428
730
  disableRestoreFocus: a = !1,
429
- getTabbable: s = Dt,
430
- isEnabled: i = Lt,
731
+ getTabbable: s = Vt,
732
+ isEnabled: i = $t,
431
733
  open: c
432
- } = t, d = u.useRef(!1), T = u.useRef(null), w = u.useRef(null), x = u.useRef(null), C = u.useRef(null), h = u.useRef(!1), b = u.useRef(null), I = Z(Ee(n), b), M = u.useRef(null);
433
- u.useEffect(() => {
734
+ } = t, d = l.useRef(!1), T = l.useRef(null), O = l.useRef(null), x = l.useRef(null), C = l.useRef(null), h = l.useRef(!1), b = l.useRef(null), F = J(Te(n), b), M = l.useRef(null);
735
+ l.useEffect(() => {
434
736
  !c || !b.current || (h.current = !o);
435
- }, [o, c]), u.useEffect(() => {
737
+ }, [o, c]), l.useEffect(() => {
436
738
  if (!c || !b.current)
437
739
  return;
438
- const l = q(b.current);
439
- return b.current.contains(l.activeElement) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
740
+ const u = _(b.current), p = se(u);
741
+ return b.current.contains(p) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
440
742
  `)), b.current.setAttribute("tabIndex", "-1")), h.current && b.current.focus()), () => {
441
743
  a || (x.current && x.current.focus && (d.current = !0, x.current.focus()), x.current = null);
442
744
  };
443
- }, [c]), u.useEffect(() => {
745
+ }, [c]), l.useEffect(() => {
444
746
  if (!c || !b.current)
445
747
  return;
446
- const l = q(b.current), f = (R) => {
447
- M.current = R, !(r || !i() || R.key !== "Tab") && l.activeElement === b.current && R.shiftKey && (d.current = !0, w.current && w.current.focus());
448
- }, y = () => {
449
- var S, V;
450
- const R = b.current;
451
- if (R === null)
748
+ const u = _(b.current), p = (P) => {
749
+ if (M.current = P, r || !i() || P.key !== "Tab")
452
750
  return;
453
- if (!l.hasFocus() || !i() || d.current) {
751
+ se(u) === b.current && P.shiftKey && (d.current = !0, O.current && O.current.focus());
752
+ }, g = () => {
753
+ const P = b.current;
754
+ if (P === null)
755
+ return;
756
+ const E = se(u);
757
+ if (!u.hasFocus() || !i() || d.current) {
454
758
  d.current = !1;
455
759
  return;
456
760
  }
457
- if (R.contains(l.activeElement) || r && l.activeElement !== T.current && l.activeElement !== w.current)
761
+ if (P.contains(E) || r && E !== T.current && E !== O.current)
458
762
  return;
459
- if (l.activeElement !== C.current)
763
+ if (E !== C.current)
460
764
  C.current = null;
461
765
  else if (C.current !== null)
462
766
  return;
463
767
  if (!h.current)
464
768
  return;
465
- let E = [];
466
- if ((l.activeElement === T.current || l.activeElement === w.current) && (E = s(b.current)), E.length > 0) {
467
- const L = !!((S = M.current) != null && S.shiftKey && ((V = M.current) == null ? void 0 : V.key) === "Tab"), $ = E[0], U = E[E.length - 1];
468
- typeof $ != "string" && typeof U != "string" && (L ? U.focus() : $.focus());
769
+ let w = [];
770
+ if ((E === T.current || E === O.current) && (w = s(b.current)), w.length > 0) {
771
+ const H = !!(M.current?.shiftKey && M.current?.key === "Tab"), D = w[0], B = w[w.length - 1];
772
+ typeof D != "string" && typeof B != "string" && (H ? B.focus() : D.focus());
469
773
  } else
470
- R.focus();
774
+ P.focus();
471
775
  };
472
- l.addEventListener("focusin", y), l.addEventListener("keydown", f, !0);
473
- const N = setInterval(() => {
474
- l.activeElement && l.activeElement.tagName === "BODY" && y();
776
+ u.addEventListener("focusin", g), u.addEventListener("keydown", p, !0);
777
+ const k = setInterval(() => {
778
+ const P = se(u);
779
+ P && P.tagName === "BODY" && g();
475
780
  }, 50);
476
781
  return () => {
477
- clearInterval(N), l.removeEventListener("focusin", y), l.removeEventListener("keydown", f, !0);
782
+ clearInterval(k), u.removeEventListener("focusin", g), u.removeEventListener("keydown", p, !0);
478
783
  };
479
784
  }, [o, r, a, i, c, s]);
480
- const g = (l) => {
481
- x.current === null && (x.current = l.relatedTarget), h.current = !0, C.current = l.target;
482
- const f = n.props.onFocus;
483
- f && f(l);
484
- }, O = (l) => {
485
- x.current === null && (x.current = l.relatedTarget), h.current = !0;
785
+ const y = (u) => {
786
+ x.current === null && (x.current = u.relatedTarget), h.current = !0, C.current = u.target;
787
+ const p = n.props.onFocus;
788
+ p && p(u);
789
+ }, R = (u) => {
790
+ x.current === null && (x.current = u.relatedTarget), h.current = !0;
486
791
  };
487
- return /* @__PURE__ */ A.jsxs(u.Fragment, {
792
+ return /* @__PURE__ */ A.jsxs(l.Fragment, {
488
793
  children: [/* @__PURE__ */ A.jsx("div", {
489
794
  tabIndex: c ? 0 : -1,
490
- onFocus: O,
795
+ onFocus: R,
491
796
  ref: T,
492
797
  "data-testid": "sentinelStart"
493
- }), /* @__PURE__ */ u.cloneElement(n, {
494
- ref: I,
495
- onFocus: g
798
+ }), /* @__PURE__ */ l.cloneElement(n, {
799
+ ref: F,
800
+ onFocus: y
496
801
  }), /* @__PURE__ */ A.jsx("div", {
497
802
  tabIndex: c ? 0 : -1,
498
- onFocus: O,
499
- ref: w,
803
+ onFocus: R,
804
+ ref: O,
500
805
  "data-testid": "sentinelEnd"
501
806
  })]
502
807
  });
503
808
  }
504
- process.env.NODE_ENV !== "production" && (ge.propTypes = {
809
+ process.env.NODE_ENV !== "production" && (ye.propTypes = {
505
810
  // ┌────────────────────────────── Warning ──────────────────────────────┐
506
811
  // │ These PropTypes are generated from the TypeScript type definitions. │
507
812
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -509,7 +814,7 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
509
814
  /**
510
815
  * A single child content element.
511
816
  */
512
- children: de,
817
+ children: fe,
513
818
  /**
514
819
  * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
515
820
  * replace it to the last focused element when it closes.
@@ -555,35 +860,35 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
555
860
  */
556
861
  open: e.bool.isRequired
557
862
  });
558
- process.env.NODE_ENV !== "production" && (ge.propTypes = Ge(ge.propTypes));
559
- function At(t) {
863
+ process.env.NODE_ENV !== "production" && (ye.propTypes = Ye(ye.propTypes));
864
+ function Kt(t) {
560
865
  return typeof t == "function" ? t() : t;
561
866
  }
562
- const ye = /* @__PURE__ */ u.forwardRef(function(n, o) {
867
+ const Ee = /* @__PURE__ */ l.forwardRef(function(n, o) {
563
868
  const {
564
869
  children: r,
565
870
  container: a,
566
871
  disablePortal: s = !1
567
- } = n, [i, c] = u.useState(null), d = Z(/* @__PURE__ */ u.isValidElement(r) ? Ee(r) : null, o);
568
- if (Ne(() => {
569
- s || c(At(a) || document.body);
570
- }, [a, s]), Ne(() => {
872
+ } = n, [i, c] = l.useState(null), d = J(/* @__PURE__ */ l.isValidElement(r) ? Te(r) : null, o);
873
+ if (ke(() => {
874
+ s || c(Kt(a) || document.body);
875
+ }, [a, s]), ke(() => {
571
876
  if (i && !s)
572
- return Le(o, i), () => {
573
- Le(o, null);
877
+ return Ae(o, i), () => {
878
+ Ae(o, null);
574
879
  };
575
880
  }, [o, i, s]), s) {
576
- if (/* @__PURE__ */ u.isValidElement(r)) {
881
+ if (/* @__PURE__ */ l.isValidElement(r)) {
577
882
  const T = {
578
883
  ref: d
579
884
  };
580
- return /* @__PURE__ */ u.cloneElement(r, T);
885
+ return /* @__PURE__ */ l.cloneElement(r, T);
581
886
  }
582
887
  return r;
583
888
  }
584
- return i && /* @__PURE__ */ Et.createPortal(r, i);
889
+ return i && /* @__PURE__ */ Tt.createPortal(r, i);
585
890
  });
586
- process.env.NODE_ENV !== "production" && (ye.propTypes = {
891
+ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
587
892
  // ┌────────────────────────────── Warning ──────────────────────────────┐
588
893
  // │ These PropTypes are generated from the TypeScript type definitions. │
589
894
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -602,23 +907,23 @@ process.env.NODE_ENV !== "production" && (ye.propTypes = {
602
907
  * By default, it uses the body of the top-level document object,
603
908
  * so it's simply `document.body` most of the time.
604
909
  */
605
- container: e.oneOfType([ae, e.func]),
910
+ container: e.oneOfType([ce, e.func]),
606
911
  /**
607
912
  * The `children` will be under the DOM hierarchy of the parent component.
608
913
  * @default false
609
914
  */
610
915
  disablePortal: e.bool
611
916
  });
612
- process.env.NODE_ENV !== "production" && (ye.propTypes = Ge(ye.propTypes));
613
- const Vt = {
917
+ process.env.NODE_ENV !== "production" && (Ee.propTypes = Ye(Ee.propTypes));
918
+ const Ut = {
614
919
  entering: {
615
920
  opacity: 1
616
921
  },
617
922
  entered: {
618
923
  opacity: 1
619
924
  }
620
- }, Je = /* @__PURE__ */ u.forwardRef(function(n, o) {
621
- const r = qe(), a = {
925
+ }, nt = /* @__PURE__ */ l.forwardRef(function(n, o) {
926
+ const r = We(), a = {
622
927
  enter: r.transitions.duration.enteringScreen,
623
928
  exit: r.transitions.duration.leavingScreen
624
929
  }, {
@@ -627,74 +932,74 @@ const Vt = {
627
932
  children: c,
628
933
  easing: d,
629
934
  in: T,
630
- onEnter: w,
935
+ onEnter: O,
631
936
  onEntered: x,
632
937
  onEntering: C,
633
938
  onExit: h,
634
939
  onExited: b,
635
- onExiting: I,
940
+ onExiting: F,
636
941
  style: M,
637
- timeout: g = a,
942
+ timeout: y = a,
638
943
  // eslint-disable-next-line react/prop-types
639
- TransitionComponent: O = ze,
640
- ...l
641
- } = n, f = u.useRef(null), y = Z(f, Ee(c), o), N = (k) => (p) => {
642
- if (k) {
643
- const m = f.current;
644
- p === void 0 ? k(m) : k(m, p);
944
+ TransitionComponent: R = qe,
945
+ ...u
946
+ } = n, p = l.useRef(null), g = J(p, Te(c), o), k = (S) => (f) => {
947
+ if (S) {
948
+ const m = p.current;
949
+ f === void 0 ? S(m) : S(m, f);
645
950
  }
646
- }, R = N(C), E = N((k, p) => {
647
- We(k);
648
- const m = he({
951
+ }, P = k(C), E = k((S, f) => {
952
+ Ge(S);
953
+ const m = be({
649
954
  style: M,
650
- timeout: g,
955
+ timeout: y,
651
956
  easing: d
652
957
  }, {
653
958
  mode: "enter"
654
959
  });
655
- k.style.webkitTransition = r.transitions.create("opacity", m), k.style.transition = r.transitions.create("opacity", m), w && w(k, p);
656
- }), S = N(x), V = N(I), L = N((k) => {
657
- const p = he({
960
+ S.style.webkitTransition = r.transitions.create("opacity", m), S.style.transition = r.transitions.create("opacity", m), O && O(S, f);
961
+ }), w = k(x), H = k(F), D = k((S) => {
962
+ const f = be({
658
963
  style: M,
659
- timeout: g,
964
+ timeout: y,
660
965
  easing: d
661
966
  }, {
662
967
  mode: "exit"
663
968
  });
664
- k.style.webkitTransition = r.transitions.create("opacity", p), k.style.transition = r.transitions.create("opacity", p), h && h(k);
665
- }), $ = N(b), U = (k) => {
666
- s && s(f.current, k);
969
+ S.style.webkitTransition = r.transitions.create("opacity", f), S.style.transition = r.transitions.create("opacity", f), h && h(S);
970
+ }), B = k(b), $ = (S) => {
971
+ s && s(p.current, S);
667
972
  };
668
- return /* @__PURE__ */ A.jsx(O, {
973
+ return /* @__PURE__ */ A.jsx(R, {
669
974
  appear: i,
670
975
  in: T,
671
- nodeRef: f,
976
+ nodeRef: p,
672
977
  onEnter: E,
673
- onEntered: S,
674
- onEntering: R,
675
- onExit: L,
676
- onExited: $,
677
- onExiting: V,
678
- addEndListener: U,
679
- timeout: g,
680
- ...l,
681
- children: (k, {
682
- ownerState: p,
978
+ onEntered: w,
979
+ onEntering: P,
980
+ onExit: D,
981
+ onExited: B,
982
+ onExiting: H,
983
+ addEndListener: $,
984
+ timeout: y,
985
+ ...u,
986
+ children: (S, {
987
+ ownerState: f,
683
988
  ...m
684
- }) => /* @__PURE__ */ u.cloneElement(c, {
989
+ }) => /* @__PURE__ */ l.cloneElement(c, {
685
990
  style: {
686
991
  opacity: 0,
687
- visibility: k === "exited" && !T ? "hidden" : void 0,
688
- ...Vt[k],
992
+ visibility: S === "exited" && !T ? "hidden" : void 0,
993
+ ...Ut[S],
689
994
  ...M,
690
995
  ...c.props.style
691
996
  },
692
- ref: y,
997
+ ref: g,
693
998
  ...m
694
999
  })
695
1000
  });
696
1001
  });
697
- process.env.NODE_ENV !== "production" && (Je.propTypes = {
1002
+ process.env.NODE_ENV !== "production" && (nt.propTypes = {
698
1003
  // ┌────────────────────────────── Warning ──────────────────────────────┐
699
1004
  // │ These PropTypes are generated from the TypeScript type definitions. │
700
1005
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -714,7 +1019,7 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
714
1019
  /**
715
1020
  * A single child content element.
716
1021
  */
717
- children: de.isRequired,
1022
+ children: fe.isRequired,
718
1023
  /**
719
1024
  * The transition timing function.
720
1025
  * You may specify a single easing or a object containing enter and exit values.
@@ -769,19 +1074,19 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
769
1074
  exit: e.number
770
1075
  })])
771
1076
  });
772
- function Kt(t) {
773
- return ue("MuiBackdrop", t);
1077
+ function _t(t) {
1078
+ return le("MuiBackdrop", t);
774
1079
  }
775
- pe("MuiBackdrop", ["root", "invisible"]);
776
- const $t = (t) => {
1080
+ ue("MuiBackdrop", ["root", "invisible"]);
1081
+ const zt = (t) => {
777
1082
  const {
778
1083
  classes: n,
779
1084
  invisible: o
780
1085
  } = t;
781
- return le({
1086
+ return de({
782
1087
  root: ["root", o && "invisible"]
783
- }, Kt, n);
784
- }, Bt = G("div", {
1088
+ }, _t, n);
1089
+ }, qt = q("div", {
785
1090
  name: "MuiBackdrop",
786
1091
  slot: "Root",
787
1092
  overridesResolver: (t, n) => {
@@ -809,8 +1114,8 @@ const $t = (t) => {
809
1114
  backgroundColor: "transparent"
810
1115
  }
811
1116
  }]
812
- }), Qe = /* @__PURE__ */ u.forwardRef(function(n, o) {
813
- const r = ce({
1117
+ }), ot = /* @__PURE__ */ l.forwardRef(function(n, o) {
1118
+ const r = pe({
814
1119
  props: n,
815
1120
  name: "MuiBackdrop"
816
1121
  }), {
@@ -820,52 +1125,51 @@ const $t = (t) => {
820
1125
  invisible: c = !1,
821
1126
  open: d,
822
1127
  components: T = {},
823
- componentsProps: w = {},
1128
+ componentsProps: O = {},
824
1129
  slotProps: x = {},
825
1130
  slots: C = {},
826
1131
  TransitionComponent: h,
827
1132
  transitionDuration: b,
828
- ...I
1133
+ ...F
829
1134
  } = r, M = {
830
1135
  ...r,
831
1136
  component: i,
832
1137
  invisible: c
833
- }, g = $t(M), O = {
1138
+ }, y = zt(M), R = {
834
1139
  transition: h,
835
1140
  root: T.Root,
836
1141
  ...C
837
- }, l = {
838
- ...w,
1142
+ }, u = {
1143
+ ...O,
839
1144
  ...x
840
- }, f = {
1145
+ }, p = {
841
1146
  component: i,
842
- slots: O,
843
- slotProps: l
844
- }, [y, N] = W("root", {
845
- elementType: Bt,
846
- externalForwardedProps: f,
847
- className: ne(g.root, s),
1147
+ slots: R,
1148
+ slotProps: u
1149
+ }, [g, k] = z("root", {
1150
+ elementType: qt,
1151
+ externalForwardedProps: p,
1152
+ className: ee(y.root, s),
848
1153
  ownerState: M
849
- }), [R, E] = W("transition", {
850
- elementType: Je,
851
- externalForwardedProps: f,
1154
+ }), [P, E] = z("transition", {
1155
+ elementType: nt,
1156
+ externalForwardedProps: p,
852
1157
  ownerState: M
853
1158
  });
854
- return /* @__PURE__ */ A.jsx(R, {
1159
+ return /* @__PURE__ */ A.jsx(P, {
855
1160
  in: d,
856
1161
  timeout: b,
857
- ...I,
1162
+ ...F,
858
1163
  ...E,
859
- children: /* @__PURE__ */ A.jsx(y, {
1164
+ children: /* @__PURE__ */ A.jsx(g, {
860
1165
  "aria-hidden": !0,
861
- ...N,
862
- classes: g,
1166
+ ...k,
863
1167
  ref: o,
864
1168
  children: a
865
1169
  })
866
1170
  });
867
1171
  });
868
- process.env.NODE_ENV !== "production" && (Qe.propTypes = {
1172
+ process.env.NODE_ENV !== "production" && (ot.propTypes = {
869
1173
  // ┌────────────────────────────── Warning ──────────────────────────────┐
870
1174
  // │ These PropTypes are generated from the TypeScript type definitions. │
871
1175
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -955,15 +1259,15 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
955
1259
  exit: e.number
956
1260
  })])
957
1261
  });
958
- function Ut(t) {
1262
+ function Wt(t) {
959
1263
  return typeof t == "function" ? t() : t;
960
1264
  }
961
- function _t(t) {
1265
+ function Gt(t) {
962
1266
  return t ? t.props.hasOwnProperty("in") : !1;
963
1267
  }
964
- const Ke = () => {
965
- }, me = new kt();
966
- function Ht(t) {
1268
+ const $e = () => {
1269
+ }, he = new Dt();
1270
+ function Yt(t) {
967
1271
  const {
968
1272
  container: n,
969
1273
  disableEscapeKeyDown: o = !1,
@@ -974,42 +1278,40 @@ function Ht(t) {
974
1278
  children: c,
975
1279
  onClose: d,
976
1280
  open: T,
977
- rootRef: w
978
- } = t, x = u.useRef({}), C = u.useRef(null), h = u.useRef(null), b = Z(h, w), [I, M] = u.useState(!T), g = _t(c);
979
- let O = !0;
980
- (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (O = !1);
981
- const l = () => q(C.current), f = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), y = () => {
982
- me.mount(f(), {
1281
+ rootRef: O
1282
+ } = t, x = l.useRef({}), C = l.useRef(null), h = l.useRef(null), b = J(h, O), [F, M] = l.useState(!T), y = Gt(c);
1283
+ let R = !0;
1284
+ (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
1285
+ const u = () => _(C.current), p = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), g = () => {
1286
+ he.mount(p(), {
983
1287
  disableScrollLock: r
984
1288
  }), h.current && (h.current.scrollTop = 0);
985
- }, N = Fe(() => {
986
- const p = Ut(n) || l().body;
987
- me.add(f(), p), h.current && y();
988
- }), R = () => me.isTopModal(f()), E = Fe((p) => {
989
- C.current = p, p && (T && R() ? y() : h.current && ie(h.current, O));
990
- }), S = u.useCallback(() => {
991
- me.remove(f(), O);
992
- }, [O]);
993
- u.useEffect(() => () => {
994
- S();
995
- }, [S]), u.useEffect(() => {
996
- T ? N() : (!g || !a) && S();
997
- }, [T, S, g, a, N]);
998
- const V = (p) => (m) => {
999
- var F;
1000
- (F = p.onKeyDown) == null || F.call(p, m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
1001
- !R()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
1002
- }, L = (p) => (m) => {
1003
- var F;
1004
- (F = p.onClick) == null || F.call(p, m), m.target === m.currentTarget && d && d(m, "backdropClick");
1289
+ }, k = De(() => {
1290
+ const f = Wt(n) || u().body;
1291
+ he.add(p(), f), h.current && g();
1292
+ }), P = () => he.isTopModal(p()), E = De((f) => {
1293
+ C.current = f, f && (T && P() ? g() : h.current && ae(h.current, R));
1294
+ }), w = l.useCallback(() => {
1295
+ he.remove(p(), R);
1296
+ }, [R]);
1297
+ l.useEffect(() => () => {
1298
+ w();
1299
+ }, [w]), l.useEffect(() => {
1300
+ T ? k() : (!y || !a) && w();
1301
+ }, [T, w, y, a, k]);
1302
+ const H = (f) => (m) => {
1303
+ f.onKeyDown?.(m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
1304
+ !P()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
1305
+ }, D = (f) => (m) => {
1306
+ f.onClick?.(m), m.target === m.currentTarget && d && d(m, "backdropClick");
1005
1307
  };
1006
1308
  return {
1007
- getRootProps: (p = {}) => {
1008
- const m = lt(t);
1309
+ getRootProps: (f = {}) => {
1310
+ const m = mt(t);
1009
1311
  delete m.onTransitionEnter, delete m.onTransitionExited;
1010
- const F = {
1312
+ const L = {
1011
1313
  ...m,
1012
- ...p
1314
+ ...f
1013
1315
  };
1014
1316
  return {
1015
1317
  /*
@@ -1019,53 +1321,53 @@ function Ht(t) {
1019
1321
  * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
1020
1322
  */
1021
1323
  role: "presentation",
1022
- ...F,
1023
- onKeyDown: V(F),
1324
+ ...L,
1325
+ onKeyDown: H(L),
1024
1326
  ref: b
1025
1327
  };
1026
1328
  },
1027
- getBackdropProps: (p = {}) => {
1028
- const m = p;
1329
+ getBackdropProps: (f = {}) => {
1330
+ const m = f;
1029
1331
  return {
1030
1332
  "aria-hidden": !0,
1031
1333
  ...m,
1032
- onClick: L(m),
1334
+ onClick: D(m),
1033
1335
  open: T
1034
1336
  };
1035
1337
  },
1036
1338
  getTransitionProps: () => {
1037
- const p = () => {
1339
+ const f = () => {
1038
1340
  M(!1), s && s();
1039
1341
  }, m = () => {
1040
- M(!0), i && i(), a && S();
1342
+ M(!0), i && i(), a && w();
1041
1343
  };
1042
1344
  return {
1043
- onEnter: De(p, (c == null ? void 0 : c.props.onEnter) ?? Ke),
1044
- onExited: De(m, (c == null ? void 0 : c.props.onExited) ?? Ke)
1345
+ onEnter: Le(f, c?.props.onEnter ?? $e),
1346
+ onExited: Le(m, c?.props.onExited ?? $e)
1045
1347
  };
1046
1348
  },
1047
1349
  rootRef: b,
1048
1350
  portalRef: E,
1049
- isTopModal: R,
1050
- exited: I,
1051
- hasTransition: g
1351
+ isTopModal: P,
1352
+ exited: F,
1353
+ hasTransition: y
1052
1354
  };
1053
1355
  }
1054
- function zt(t) {
1055
- return ue("MuiModal", t);
1356
+ function Xt(t) {
1357
+ return le("MuiModal", t);
1056
1358
  }
1057
- pe("MuiModal", ["root", "hidden", "backdrop"]);
1058
- const qt = (t) => {
1359
+ ue("MuiModal", ["root", "hidden", "backdrop"]);
1360
+ const Jt = (t) => {
1059
1361
  const {
1060
1362
  open: n,
1061
1363
  exited: o,
1062
1364
  classes: r
1063
1365
  } = t;
1064
- return le({
1366
+ return de({
1065
1367
  root: ["root", !n && o && "hidden"],
1066
1368
  backdrop: ["backdrop"]
1067
- }, zt, r);
1068
- }, Wt = G("div", {
1369
+ }, Xt, r);
1370
+ }, Qt = q("div", {
1069
1371
  name: "MuiModal",
1070
1372
  slot: "Root",
1071
1373
  overridesResolver: (t, n) => {
@@ -1074,7 +1376,7 @@ const qt = (t) => {
1074
1376
  } = t;
1075
1377
  return [n.root, !o.open && o.exited && n.hidden];
1076
1378
  }
1077
- })(it(({
1379
+ })(yt(({
1078
1380
  theme: t
1079
1381
  }) => ({
1080
1382
  position: "fixed",
@@ -1091,132 +1393,132 @@ const qt = (t) => {
1091
1393
  visibility: "hidden"
1092
1394
  }
1093
1395
  }]
1094
- }))), Gt = G(Qe, {
1396
+ }))), Zt = q(ot, {
1095
1397
  name: "MuiModal",
1096
1398
  slot: "Backdrop"
1097
1399
  })({
1098
1400
  zIndex: -1
1099
- }), Ze = /* @__PURE__ */ u.forwardRef(function(n, o) {
1100
- const r = ce({
1401
+ }), rt = /* @__PURE__ */ l.forwardRef(function(n, o) {
1402
+ const r = pe({
1101
1403
  name: "MuiModal",
1102
1404
  props: n
1103
1405
  }), {
1104
- BackdropComponent: a = Gt,
1406
+ BackdropComponent: a = Zt,
1105
1407
  BackdropProps: s,
1106
1408
  classes: i,
1107
1409
  className: c,
1108
1410
  closeAfterTransition: d = !1,
1109
1411
  children: T,
1110
- container: w,
1412
+ container: O,
1111
1413
  component: x,
1112
1414
  components: C = {},
1113
1415
  componentsProps: h = {},
1114
1416
  disableAutoFocus: b = !1,
1115
- disableEnforceFocus: I = !1,
1417
+ disableEnforceFocus: F = !1,
1116
1418
  disableEscapeKeyDown: M = !1,
1117
- disablePortal: g = !1,
1118
- disableRestoreFocus: O = !1,
1119
- disableScrollLock: l = !1,
1120
- hideBackdrop: f = !1,
1121
- keepMounted: y = !1,
1122
- onClose: N,
1123
- onTransitionEnter: R,
1419
+ disablePortal: y = !1,
1420
+ disableRestoreFocus: R = !1,
1421
+ disableScrollLock: u = !1,
1422
+ hideBackdrop: p = !1,
1423
+ keepMounted: g = !1,
1424
+ onClose: k,
1425
+ onTransitionEnter: P,
1124
1426
  onTransitionExited: E,
1125
- open: S,
1126
- slotProps: V = {},
1127
- slots: L = {},
1427
+ open: w,
1428
+ slotProps: H = {},
1429
+ slots: D = {},
1128
1430
  // eslint-disable-next-line react/prop-types
1129
- theme: $,
1130
- ...U
1131
- } = r, k = {
1431
+ theme: B,
1432
+ ...$
1433
+ } = r, S = {
1132
1434
  ...r,
1133
1435
  closeAfterTransition: d,
1134
1436
  disableAutoFocus: b,
1135
- disableEnforceFocus: I,
1437
+ disableEnforceFocus: F,
1136
1438
  disableEscapeKeyDown: M,
1137
- disablePortal: g,
1138
- disableRestoreFocus: O,
1139
- disableScrollLock: l,
1140
- hideBackdrop: f,
1141
- keepMounted: y
1439
+ disablePortal: y,
1440
+ disableRestoreFocus: R,
1441
+ disableScrollLock: u,
1442
+ hideBackdrop: p,
1443
+ keepMounted: g
1142
1444
  }, {
1143
- getRootProps: p,
1445
+ getRootProps: f,
1144
1446
  getBackdropProps: m,
1145
- getTransitionProps: F,
1146
- portalRef: B,
1447
+ getTransitionProps: L,
1448
+ portalRef: K,
1147
1449
  isTopModal: v,
1148
- exited: D,
1149
- hasTransition: Y
1150
- } = Ht({
1151
- ...k,
1450
+ exited: I,
1451
+ hasTransition: te
1452
+ } = Yt({
1453
+ ...S,
1152
1454
  rootRef: o
1153
- }), X = {
1154
- ...k,
1155
- exited: D
1156
- }, _ = qt(X), J = {};
1157
- if (T.props.tabIndex === void 0 && (J.tabIndex = "-1"), Y) {
1455
+ }), W = {
1456
+ ...S,
1457
+ exited: I
1458
+ }, ne = Jt(W), G = {};
1459
+ if (T.props.tabIndex === void 0 && (G.tabIndex = "-1"), te) {
1158
1460
  const {
1159
- onEnter: P,
1461
+ onEnter: N,
1160
1462
  onExited: j
1161
- } = F();
1162
- J.onEnter = P, J.onExited = j;
1463
+ } = L();
1464
+ G.onEnter = N, G.onExited = j;
1163
1465
  }
1164
- const fe = {
1466
+ const me = {
1165
1467
  slots: {
1166
1468
  root: C.Root,
1167
1469
  backdrop: C.Backdrop,
1168
- ...L
1470
+ ...D
1169
1471
  },
1170
1472
  slotProps: {
1171
1473
  ...h,
1172
- ...V
1474
+ ...H
1173
1475
  }
1174
- }, [Te, Pe] = W("root", {
1476
+ }, [Pe, ve] = z("root", {
1175
1477
  ref: o,
1176
- elementType: Wt,
1478
+ elementType: Qt,
1177
1479
  externalForwardedProps: {
1178
- ...fe,
1179
- ...U,
1480
+ ...me,
1481
+ ...$,
1180
1482
  component: x
1181
1483
  },
1182
- getSlotProps: p,
1183
- ownerState: X,
1184
- className: ne(c, _ == null ? void 0 : _.root, !X.open && X.exited && (_ == null ? void 0 : _.hidden))
1185
- }), [xe, ve] = W("backdrop", {
1186
- ref: s == null ? void 0 : s.ref,
1484
+ getSlotProps: f,
1485
+ ownerState: W,
1486
+ className: ee(c, ne?.root, !W.open && W.exited && ne?.hidden)
1487
+ }), [xe, Re] = z("backdrop", {
1488
+ ref: s?.ref,
1187
1489
  elementType: a,
1188
- externalForwardedProps: fe,
1490
+ externalForwardedProps: me,
1189
1491
  shouldForwardComponentProp: !0,
1190
1492
  additionalProps: s,
1191
- getSlotProps: (P) => m({
1192
- ...P,
1493
+ getSlotProps: (N) => m({
1494
+ ...N,
1193
1495
  onClick: (j) => {
1194
- P != null && P.onClick && P.onClick(j);
1496
+ N?.onClick && N.onClick(j);
1195
1497
  }
1196
1498
  }),
1197
- className: ne(s == null ? void 0 : s.className, _ == null ? void 0 : _.backdrop),
1198
- ownerState: X
1499
+ className: ee(s?.className, ne?.backdrop),
1500
+ ownerState: W
1199
1501
  });
1200
- return !y && !S && (!Y || D) ? null : /* @__PURE__ */ A.jsx(ye, {
1201
- ref: B,
1202
- container: w,
1203
- disablePortal: g,
1204
- children: /* @__PURE__ */ A.jsxs(Te, {
1205
- ...Pe,
1206
- children: [!f && a ? /* @__PURE__ */ A.jsx(xe, {
1207
- ...ve
1208
- }) : null, /* @__PURE__ */ A.jsx(ge, {
1209
- disableEnforceFocus: I,
1502
+ return !g && !w && (!te || I) ? null : /* @__PURE__ */ A.jsx(Ee, {
1503
+ ref: K,
1504
+ container: O,
1505
+ disablePortal: y,
1506
+ children: /* @__PURE__ */ A.jsxs(Pe, {
1507
+ ...ve,
1508
+ children: [!p && a ? /* @__PURE__ */ A.jsx(xe, {
1509
+ ...Re
1510
+ }) : null, /* @__PURE__ */ A.jsx(ye, {
1511
+ disableEnforceFocus: F,
1210
1512
  disableAutoFocus: b,
1211
- disableRestoreFocus: O,
1513
+ disableRestoreFocus: R,
1212
1514
  isEnabled: v,
1213
- open: S,
1214
- children: /* @__PURE__ */ u.cloneElement(T, J)
1515
+ open: w,
1516
+ children: /* @__PURE__ */ l.cloneElement(T, G)
1215
1517
  })]
1216
1518
  })
1217
1519
  });
1218
1520
  });
1219
- process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1521
+ process.env.NODE_ENV !== "production" && (rt.propTypes = {
1220
1522
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1221
1523
  // │ These PropTypes are generated from the TypeScript type definitions. │
1222
1524
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1241,7 +1543,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1241
1543
  /**
1242
1544
  * A single child content element.
1243
1545
  */
1244
- children: de.isRequired,
1546
+ children: fe.isRequired,
1245
1547
  /**
1246
1548
  * Override or extend the styles applied to the component.
1247
1549
  */
@@ -1293,7 +1595,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1293
1595
  * By default, it uses the body of the top-level document object,
1294
1596
  * so it's simply `document.body` most of the time.
1295
1597
  */
1296
- container: e.oneOfType([ae, e.func]),
1598
+ container: e.oneOfType([ce, e.func]),
1297
1599
  /**
1298
1600
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
1299
1601
  * replace it to the last focused element when it closes.
@@ -1387,36 +1689,36 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1387
1689
  */
1388
1690
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1389
1691
  });
1390
- function Yt(t) {
1391
- return ue("MuiPopover", t);
1692
+ function en(t) {
1693
+ return le("MuiPopover", t);
1392
1694
  }
1393
- pe("MuiPopover", ["root", "paper"]);
1394
- function $e(t, n) {
1695
+ ue("MuiPopover", ["root", "paper"]);
1696
+ function Ke(t, n) {
1395
1697
  let o = 0;
1396
1698
  return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
1397
1699
  }
1398
- function Be(t, n) {
1700
+ function Ue(t, n) {
1399
1701
  let o = 0;
1400
1702
  return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
1401
1703
  }
1402
- function Ue(t) {
1704
+ function _e(t) {
1403
1705
  return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
1404
1706
  }
1405
- function se(t) {
1707
+ function ie(t) {
1406
1708
  return typeof t == "function" ? t() : t;
1407
1709
  }
1408
- const Xt = (t) => {
1710
+ const tn = (t) => {
1409
1711
  const {
1410
1712
  classes: n
1411
1713
  } = t;
1412
- return le({
1714
+ return de({
1413
1715
  root: ["root"],
1414
1716
  paper: ["paper"]
1415
- }, Yt, n);
1416
- }, Jt = G(Ze, {
1717
+ }, en, n);
1718
+ }, nn = q(rt, {
1417
1719
  name: "MuiPopover",
1418
1720
  slot: "Root"
1419
- })({}), et = G(bt, {
1721
+ })({}), st = q(at, {
1420
1722
  name: "MuiPopover",
1421
1723
  slot: "Paper"
1422
1724
  })({
@@ -1431,8 +1733,8 @@ const Xt = (t) => {
1431
1733
  maxHeight: "calc(100% - 32px)",
1432
1734
  // We disable the focus ring for mouse, touch and keyboard users.
1433
1735
  outline: 0
1434
- }), tt = /* @__PURE__ */ u.forwardRef(function(n, o) {
1435
- const r = ce({
1736
+ }), it = /* @__PURE__ */ l.forwardRef(function(n, o) {
1737
+ const r = pe({
1436
1738
  props: n,
1437
1739
  name: "MuiPopover"
1438
1740
  }), {
@@ -1445,139 +1747,137 @@ const Xt = (t) => {
1445
1747
  anchorPosition: c,
1446
1748
  anchorReference: d = "anchorEl",
1447
1749
  children: T,
1448
- className: w,
1750
+ className: O,
1449
1751
  container: x,
1450
1752
  elevation: C = 8,
1451
1753
  marginThreshold: h = 16,
1452
1754
  open: b,
1453
- PaperProps: I = {},
1755
+ PaperProps: F = {},
1454
1756
  // TODO: remove in v7
1455
1757
  slots: M = {},
1456
- slotProps: g = {},
1457
- transformOrigin: O = {
1758
+ slotProps: y = {},
1759
+ transformOrigin: R = {
1458
1760
  vertical: "top",
1459
1761
  horizontal: "left"
1460
1762
  },
1461
- TransitionComponent: l,
1763
+ TransitionComponent: u,
1462
1764
  // TODO: remove in v7
1463
- transitionDuration: f = "auto",
1464
- TransitionProps: y = {},
1765
+ transitionDuration: p = "auto",
1766
+ TransitionProps: g = {},
1465
1767
  // TODO: remove in v7
1466
- disableScrollLock: N = !1,
1467
- ...R
1468
- } = r, E = u.useRef(), S = {
1768
+ disableScrollLock: k = !1,
1769
+ ...P
1770
+ } = r, E = l.useRef(), w = {
1469
1771
  ...r,
1470
1772
  anchorOrigin: i,
1471
1773
  anchorReference: d,
1472
1774
  elevation: C,
1473
1775
  marginThreshold: h,
1474
- transformOrigin: O,
1475
- TransitionComponent: l,
1476
- transitionDuration: f,
1477
- TransitionProps: y
1478
- }, V = Xt(S), L = u.useCallback(() => {
1776
+ transformOrigin: R,
1777
+ TransitionComponent: u,
1778
+ transitionDuration: p,
1779
+ TransitionProps: g
1780
+ }, H = tn(w), D = l.useCallback(() => {
1479
1781
  if (d === "anchorPosition")
1480
1782
  return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
1481
- const P = se(s), j = P && P.nodeType === 1 ? P : q(E.current).body, K = j.getBoundingClientRect();
1783
+ const N = ie(s), j = N && N.nodeType === 1 ? N : _(E.current).body, V = j.getBoundingClientRect();
1482
1784
  if (process.env.NODE_ENV !== "production") {
1483
- const z = j.getBoundingClientRect();
1484
- process.env.NODE_ENV !== "test" && z.top === 0 && z.left === 0 && z.right === 0 && z.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(`
1785
+ const Y = j.getBoundingClientRect();
1786
+ process.env.NODE_ENV !== "test" && Y.top === 0 && Y.left === 0 && Y.right === 0 && Y.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(`
1485
1787
  `));
1486
1788
  }
1487
1789
  return {
1488
- top: K.top + $e(K, i.vertical),
1489
- left: K.left + Be(K, i.horizontal)
1790
+ top: V.top + Ke(V, i.vertical),
1791
+ left: V.left + Ue(V, i.horizontal)
1490
1792
  };
1491
- }, [s, i.horizontal, i.vertical, c, d]), $ = u.useCallback((P) => ({
1492
- vertical: $e(P, O.vertical),
1493
- horizontal: Be(P, O.horizontal)
1494
- }), [O.horizontal, O.vertical]), U = u.useCallback((P) => {
1793
+ }, [s, i.horizontal, i.vertical, c, d]), B = l.useCallback((N) => ({
1794
+ vertical: Ke(N, R.vertical),
1795
+ horizontal: Ue(N, R.horizontal)
1796
+ }), [R.horizontal, R.vertical]), $ = l.useCallback((N) => {
1495
1797
  const j = {
1496
- width: P.offsetWidth,
1497
- height: P.offsetHeight
1498
- }, K = $(j);
1798
+ width: N.offsetWidth,
1799
+ height: N.offsetHeight
1800
+ }, V = B(j);
1499
1801
  if (d === "none")
1500
1802
  return {
1501
1803
  top: null,
1502
1804
  left: null,
1503
- transformOrigin: Ue(K)
1805
+ transformOrigin: _e(V)
1504
1806
  };
1505
- const z = L();
1506
- let ee = z.top - K.vertical, te = z.left - K.horizontal;
1507
- const ke = ee + j.height, Se = te + j.width, je = Q(se(s)), oe = je.innerHeight - h, Ie = je.innerWidth - h;
1508
- if (h !== null && ee < h) {
1509
- const H = ee - h;
1510
- ee -= H, K.vertical += H;
1511
- } else if (h !== null && ke > oe) {
1512
- const H = ke - oe;
1513
- ee -= H, K.vertical += H;
1807
+ const Y = D();
1808
+ let Q = Y.top - V.vertical, Z = Y.left - V.horizontal;
1809
+ const Se = Q + j.height, je = Z + j.width, Fe = X(ie(s)), oe = Fe.innerHeight - h, Ie = Fe.innerWidth - h;
1810
+ if (h !== null && Q < h) {
1811
+ const U = Q - h;
1812
+ Q -= U, V.vertical += U;
1813
+ } else if (h !== null && Se > oe) {
1814
+ const U = Se - oe;
1815
+ Q -= U, V.vertical += U;
1514
1816
  }
1515
1817
  if (process.env.NODE_ENV !== "production" && j.height > oe && j.height && oe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${j.height - oe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
1516
- `)), h !== null && te < h) {
1517
- const H = te - h;
1518
- te -= H, K.horizontal += H;
1519
- } else if (Se > Ie) {
1520
- const H = Se - Ie;
1521
- te -= H, K.horizontal += H;
1818
+ `)), h !== null && Z < h) {
1819
+ const U = Z - h;
1820
+ Z -= U, V.horizontal += U;
1821
+ } else if (je > Ie) {
1822
+ const U = je - Ie;
1823
+ Z -= U, V.horizontal += U;
1522
1824
  }
1523
1825
  return {
1524
- top: `${Math.round(ee)}px`,
1525
- left: `${Math.round(te)}px`,
1526
- transformOrigin: Ue(K)
1826
+ top: `${Math.round(Q)}px`,
1827
+ left: `${Math.round(Z)}px`,
1828
+ transformOrigin: _e(V)
1527
1829
  };
1528
- }, [s, d, L, $, h]), [k, p] = u.useState(b), m = u.useCallback(() => {
1529
- const P = E.current;
1530
- if (!P)
1830
+ }, [s, d, D, B, h]), [S, f] = l.useState(b), m = l.useCallback(() => {
1831
+ const N = E.current;
1832
+ if (!N)
1531
1833
  return;
1532
- const j = U(P);
1533
- j.top !== null && P.style.setProperty("top", j.top), j.left !== null && (P.style.left = j.left), P.style.transformOrigin = j.transformOrigin, p(!0);
1534
- }, [U]);
1535
- u.useEffect(() => (N && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, N, m]);
1536
- const F = () => {
1834
+ const j = $(N);
1835
+ j.top !== null && N.style.setProperty("top", j.top), j.left !== null && (N.style.left = j.left), N.style.transformOrigin = j.transformOrigin, f(!0);
1836
+ }, [$]);
1837
+ l.useEffect(() => (k && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, k, m]);
1838
+ const L = () => {
1537
1839
  m();
1538
- }, B = () => {
1539
- p(!1);
1840
+ }, K = () => {
1841
+ f(!1);
1540
1842
  };
1541
- u.useEffect(() => {
1843
+ l.useEffect(() => {
1542
1844
  b && m();
1543
- }), u.useImperativeHandle(a, () => b ? {
1845
+ }), l.useImperativeHandle(a, () => b ? {
1544
1846
  updatePosition: () => {
1545
1847
  m();
1546
1848
  }
1547
- } : null, [b, m]), u.useEffect(() => {
1849
+ } : null, [b, m]), l.useEffect(() => {
1548
1850
  if (!b)
1549
1851
  return;
1550
- const P = vt(() => {
1852
+ const N = Rt(() => {
1551
1853
  m();
1552
- }), j = Q(se(s));
1553
- return j.addEventListener("resize", P), () => {
1554
- P.clear(), j.removeEventListener("resize", P);
1854
+ }), j = X(ie(s));
1855
+ return j.addEventListener("resize", N), () => {
1856
+ N.clear(), j.removeEventListener("resize", N);
1555
1857
  };
1556
1858
  }, [s, b, m]);
1557
- let v = f;
1558
- const D = {
1859
+ let v = p;
1860
+ const I = {
1559
1861
  slots: {
1560
- transition: l,
1862
+ transition: u,
1561
1863
  ...M
1562
1864
  },
1563
1865
  slotProps: {
1564
- transition: y,
1565
- paper: I,
1566
- ...g
1866
+ transition: g,
1867
+ paper: F,
1868
+ ...y
1567
1869
  }
1568
- }, [Y, X] = W("transition", {
1569
- elementType: be,
1570
- externalForwardedProps: D,
1571
- ownerState: S,
1572
- getSlotProps: (P) => ({
1573
- ...P,
1574
- onEntering: (j, K) => {
1575
- var z;
1576
- (z = P.onEntering) == null || z.call(P, j, K), F();
1870
+ }, [te, W] = z("transition", {
1871
+ elementType: ge,
1872
+ externalForwardedProps: I,
1873
+ ownerState: w,
1874
+ getSlotProps: (N) => ({
1875
+ ...N,
1876
+ onEntering: (j, V) => {
1877
+ N.onEntering?.(j, V), L();
1577
1878
  },
1578
1879
  onExited: (j) => {
1579
- var K;
1580
- (K = P.onExited) == null || K.call(P, j), B();
1880
+ N.onExited?.(j), K();
1581
1881
  }
1582
1882
  }),
1583
1883
  additionalProps: {
@@ -1585,17 +1885,17 @@ const Xt = (t) => {
1585
1885
  in: b
1586
1886
  }
1587
1887
  });
1588
- f === "auto" && !Y.muiSupportAuto && (v = void 0);
1589
- const _ = x || (s ? q(se(s)).body : void 0), [J, {
1590
- slots: fe,
1591
- slotProps: Te,
1592
- ...Pe
1593
- }] = W("root", {
1888
+ p === "auto" && !te.muiSupportAuto && (v = void 0);
1889
+ const ne = x || (s ? _(ie(s)).body : void 0), [G, {
1890
+ slots: me,
1891
+ slotProps: Pe,
1892
+ ...ve
1893
+ }] = z("root", {
1594
1894
  ref: o,
1595
- elementType: Jt,
1895
+ elementType: nn,
1596
1896
  externalForwardedProps: {
1597
- ...D,
1598
- ...R
1897
+ ...I,
1898
+ ...P
1599
1899
  },
1600
1900
  shouldForwardComponentProp: !0,
1601
1901
  additionalProps: {
@@ -1603,47 +1903,47 @@ const Xt = (t) => {
1603
1903
  backdrop: M.backdrop
1604
1904
  },
1605
1905
  slotProps: {
1606
- backdrop: yt(typeof g.backdrop == "function" ? g.backdrop(S) : g.backdrop, {
1906
+ backdrop: Et(typeof y.backdrop == "function" ? y.backdrop(w) : y.backdrop, {
1607
1907
  invisible: !0
1608
1908
  })
1609
1909
  },
1610
- container: _,
1910
+ container: ne,
1611
1911
  open: b
1612
1912
  },
1613
- ownerState: S,
1614
- className: ne(V.root, w)
1615
- }), [xe, ve] = W("paper", {
1913
+ ownerState: w,
1914
+ className: ee(H.root, O)
1915
+ }), [xe, Re] = z("paper", {
1616
1916
  ref: E,
1617
- className: V.paper,
1618
- elementType: et,
1619
- externalForwardedProps: D,
1917
+ className: H.paper,
1918
+ elementType: st,
1919
+ externalForwardedProps: I,
1620
1920
  shouldForwardComponentProp: !0,
1621
1921
  additionalProps: {
1622
1922
  elevation: C,
1623
- style: k ? void 0 : {
1923
+ style: S ? void 0 : {
1624
1924
  opacity: 0
1625
1925
  }
1626
1926
  },
1627
- ownerState: S
1927
+ ownerState: w
1628
1928
  });
1629
- return /* @__PURE__ */ A.jsx(J, {
1630
- ...Pe,
1631
- ...!ut(J) && {
1632
- slots: fe,
1633
- slotProps: Te,
1634
- disableScrollLock: N
1929
+ return /* @__PURE__ */ A.jsx(G, {
1930
+ ...ve,
1931
+ ...!ht(G) && {
1932
+ slots: me,
1933
+ slotProps: Pe,
1934
+ disableScrollLock: k
1635
1935
  },
1636
- children: /* @__PURE__ */ A.jsx(Y, {
1637
- ...X,
1936
+ children: /* @__PURE__ */ A.jsx(te, {
1937
+ ...W,
1638
1938
  timeout: v,
1639
1939
  children: /* @__PURE__ */ A.jsx(xe, {
1640
- ...ve,
1940
+ ...Re,
1641
1941
  children: T
1642
1942
  })
1643
1943
  })
1644
1944
  });
1645
1945
  });
1646
- process.env.NODE_ENV !== "production" && (tt.propTypes = {
1946
+ process.env.NODE_ENV !== "production" && (it.propTypes = {
1647
1947
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1648
1948
  // │ These PropTypes are generated from the TypeScript type definitions. │
1649
1949
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1652,15 +1952,15 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1652
1952
  * A ref for imperative actions.
1653
1953
  * It currently only supports updatePosition() action.
1654
1954
  */
1655
- action: pt,
1955
+ action: bt,
1656
1956
  /**
1657
1957
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
1658
1958
  * or a function that returns either.
1659
1959
  * It's used to set the position of the popover.
1660
1960
  */
1661
- anchorEl: Me(e.oneOfType([ae, e.func]), (t) => {
1961
+ anchorEl: Me(e.oneOfType([ce, e.func]), (t) => {
1662
1962
  if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
1663
- const n = se(t.anchorEl);
1963
+ const n = ie(t.anchorEl);
1664
1964
  if (n && n.nodeType === 1) {
1665
1965
  const o = n.getBoundingClientRect();
1666
1966
  if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
@@ -1741,7 +2041,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1741
2041
  * By default, it uses the body of the anchorEl's top-level document object,
1742
2042
  * so it's simply `document.body` most of the time.
1743
2043
  */
1744
- container: e.oneOfType([ae, e.func]),
2044
+ container: e.oneOfType([ce, e.func]),
1745
2045
  /**
1746
2046
  * Disable the scroll lock behavior.
1747
2047
  * @default false
@@ -1751,7 +2051,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1751
2051
  * The elevation of the popover.
1752
2052
  * @default 8
1753
2053
  */
1754
- elevation: gt,
2054
+ elevation: ct,
1755
2055
  /**
1756
2056
  * Specifies how close to the edge of the window the popover can appear.
1757
2057
  * If null, the popover will not be constrained by the window.
@@ -1776,7 +2076,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1776
2076
  * @default {}
1777
2077
  */
1778
2078
  PaperProps: e.shape({
1779
- component: dt
2079
+ component: gt
1780
2080
  }),
1781
2081
  /**
1782
2082
  * The props used for each slot inside.
@@ -1842,327 +2142,30 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1842
2142
  */
1843
2143
  TransitionProps: e.object
1844
2144
  });
1845
- function Qt(t) {
1846
- var x;
1847
- const {
1848
- elementType: n,
1849
- externalSlotProps: o,
1850
- ownerState: r,
1851
- skipResolvingSlotProps: a = !1,
1852
- ...s
1853
- } = t, i = a ? {} : ft(o, r), {
1854
- props: c,
1855
- internalRef: d
1856
- } = mt({
1857
- ...s,
1858
- externalSlotProps: i
1859
- }), T = Z(d, i == null ? void 0 : i.ref, (x = t.additionalProps) == null ? void 0 : x.ref);
1860
- return ht(n, {
1861
- ...c,
1862
- ref: T
1863
- }, r);
1864
- }
1865
- const nt = /* @__PURE__ */ u.createContext({});
1866
- process.env.NODE_ENV !== "production" && (nt.displayName = "ListContext");
1867
- function Zt(t) {
1868
- return ue("MuiList", t);
2145
+ function on(t) {
2146
+ return le("MuiMenu", t);
1869
2147
  }
1870
- pe("MuiList", ["root", "padding", "dense", "subheader"]);
1871
- const en = (t) => {
1872
- const {
1873
- classes: n,
1874
- disablePadding: o,
1875
- dense: r,
1876
- subheader: a
1877
- } = t;
1878
- return le({
1879
- root: ["root", !o && "padding", r && "dense", a && "subheader"]
1880
- }, Zt, n);
1881
- }, tn = G("ul", {
1882
- name: "MuiList",
1883
- slot: "Root",
1884
- overridesResolver: (t, n) => {
1885
- const {
1886
- ownerState: o
1887
- } = t;
1888
- return [n.root, !o.disablePadding && n.padding, o.dense && n.dense, o.subheader && n.subheader];
1889
- }
1890
- })({
1891
- listStyle: "none",
1892
- margin: 0,
1893
- padding: 0,
1894
- position: "relative",
1895
- variants: [{
1896
- props: ({
1897
- ownerState: t
1898
- }) => !t.disablePadding,
1899
- style: {
1900
- paddingTop: 8,
1901
- paddingBottom: 8
1902
- }
1903
- }, {
1904
- props: ({
1905
- ownerState: t
1906
- }) => t.subheader,
1907
- style: {
1908
- paddingTop: 0
1909
- }
1910
- }]
1911
- }), ot = /* @__PURE__ */ u.forwardRef(function(n, o) {
1912
- const r = ce({
1913
- props: n,
1914
- name: "MuiList"
1915
- }), {
1916
- children: a,
1917
- className: s,
1918
- component: i = "ul",
1919
- dense: c = !1,
1920
- disablePadding: d = !1,
1921
- subheader: T,
1922
- ...w
1923
- } = r, x = u.useMemo(() => ({
1924
- dense: c
1925
- }), [c]), C = {
1926
- ...r,
1927
- component: i,
1928
- dense: c,
1929
- disablePadding: d
1930
- }, h = en(C);
1931
- return /* @__PURE__ */ A.jsx(nt.Provider, {
1932
- value: x,
1933
- children: /* @__PURE__ */ A.jsxs(tn, {
1934
- as: i,
1935
- className: ne(h.root, s),
1936
- ref: o,
1937
- ownerState: C,
1938
- ...w,
1939
- children: [T, a]
1940
- })
1941
- });
1942
- });
1943
- process.env.NODE_ENV !== "production" && (ot.propTypes = {
1944
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1945
- // │ These PropTypes are generated from the TypeScript type definitions. │
1946
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1947
- // └─────────────────────────────────────────────────────────────────────┘
1948
- /**
1949
- * The content of the component.
1950
- */
1951
- children: e.node,
1952
- /**
1953
- * Override or extend the styles applied to the component.
1954
- */
1955
- classes: e.object,
1956
- /**
1957
- * @ignore
1958
- */
1959
- className: e.string,
1960
- /**
1961
- * The component used for the root node.
1962
- * Either a string to use a HTML element or a component.
1963
- */
1964
- component: e.elementType,
1965
- /**
1966
- * If `true`, compact vertical padding designed for keyboard and mouse input is used for
1967
- * the list and list items.
1968
- * The prop is available to descendant components as the `dense` context.
1969
- * @default false
1970
- */
1971
- dense: e.bool,
1972
- /**
1973
- * If `true`, vertical padding is removed from the list.
1974
- * @default false
1975
- */
1976
- disablePadding: e.bool,
1977
- /**
1978
- * The content of the subheader, normally `ListSubheader`.
1979
- */
1980
- subheader: e.node,
1981
- /**
1982
- * The system prop that allows defining system overrides as well as additional CSS styles.
1983
- */
1984
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1985
- });
1986
- function we(t, n, o) {
1987
- return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
1988
- }
1989
- function _e(t, n, o) {
1990
- return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
1991
- }
1992
- function rt(t, n) {
1993
- if (n === void 0)
1994
- return !0;
1995
- let o = t.innerText;
1996
- return o === void 0 && (o = t.textContent), o = o.trim().toLowerCase(), o.length === 0 ? !1 : n.repeating ? o[0] === n.keys[0] : o.startsWith(n.keys.join(""));
1997
- }
1998
- function re(t, n, o, r, a, s) {
1999
- let i = !1, c = a(t, n, n ? o : !1);
2000
- for (; c; ) {
2001
- if (c === t.firstChild) {
2002
- if (i)
2003
- return !1;
2004
- i = !0;
2005
- }
2006
- const d = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
2007
- if (!c.hasAttribute("tabindex") || !rt(c, s) || d)
2008
- c = a(t, c, o);
2009
- else
2010
- return c.focus(), !0;
2011
- }
2012
- return !1;
2013
- }
2014
- const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
2015
- const {
2016
- // private
2017
- // eslint-disable-next-line react/prop-types
2018
- actions: r,
2019
- autoFocus: a = !1,
2020
- autoFocusItem: s = !1,
2021
- children: i,
2022
- className: c,
2023
- disabledItemsFocusable: d = !1,
2024
- disableListWrap: T = !1,
2025
- onKeyDown: w,
2026
- variant: x = "selectedMenu",
2027
- ...C
2028
- } = n, h = u.useRef(null), b = u.useRef({
2029
- keys: [],
2030
- repeating: !0,
2031
- previousKeyMatched: !0,
2032
- lastTime: null
2033
- });
2034
- Ne(() => {
2035
- a && h.current.focus();
2036
- }, [a]), u.useImperativeHandle(r, () => ({
2037
- adjustStyleForScrollbar: (l, {
2038
- direction: f
2039
- }) => {
2040
- const y = !h.current.style.width;
2041
- if (l.clientHeight < h.current.clientHeight && y) {
2042
- const N = `${Xe(Q(l))}px`;
2043
- h.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = N, h.current.style.width = `calc(100% + ${N})`;
2044
- }
2045
- return h.current;
2046
- }
2047
- }), []);
2048
- const I = (l) => {
2049
- const f = h.current, y = l.key;
2050
- if (l.ctrlKey || l.metaKey || l.altKey) {
2051
- w && w(l);
2052
- return;
2053
- }
2054
- const R = q(f).activeElement;
2055
- if (y === "ArrowDown")
2056
- l.preventDefault(), re(f, R, T, d, we);
2057
- else if (y === "ArrowUp")
2058
- l.preventDefault(), re(f, R, T, d, _e);
2059
- else if (y === "Home")
2060
- l.preventDefault(), re(f, null, T, d, we);
2061
- else if (y === "End")
2062
- l.preventDefault(), re(f, null, T, d, _e);
2063
- else if (y.length === 1) {
2064
- const E = b.current, S = y.toLowerCase(), V = performance.now();
2065
- E.keys.length > 0 && (V - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && S !== E.keys[0] && (E.repeating = !1)), E.lastTime = V, E.keys.push(S);
2066
- const L = R && !E.repeating && rt(R, E);
2067
- E.previousKeyMatched && (L || re(f, R, !1, d, we, E)) ? l.preventDefault() : E.previousKeyMatched = !1;
2068
- }
2069
- w && w(l);
2070
- }, M = Z(h, o);
2071
- let g = -1;
2072
- u.Children.forEach(i, (l, f) => {
2073
- if (!/* @__PURE__ */ u.isValidElement(l)) {
2074
- g === f && (g += 1, g >= i.length && (g = -1));
2075
- return;
2076
- }
2077
- process.env.NODE_ENV !== "production" && He.isFragment(l) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2078
- `)), l.props.disabled || (x === "selectedMenu" && l.props.selected || g === -1) && (g = f), g === f && (l.props.disabled || l.props.muiSkipListHighlight || l.type.muiSkipListHighlight) && (g += 1, g >= i.length && (g = -1));
2079
- });
2080
- const O = u.Children.map(i, (l, f) => {
2081
- if (f === g) {
2082
- const y = {};
2083
- return s && (y.autoFocus = !0), l.props.tabIndex === void 0 && x === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ u.cloneElement(l, y);
2084
- }
2085
- return l;
2086
- });
2087
- return /* @__PURE__ */ A.jsx(ot, {
2088
- role: "menu",
2089
- ref: M,
2090
- className: c,
2091
- onKeyDown: I,
2092
- tabIndex: a ? 0 : -1,
2093
- ...C,
2094
- children: O
2095
- });
2096
- });
2097
- process.env.NODE_ENV !== "production" && (st.propTypes = {
2098
- // ┌────────────────────────────── Warning ──────────────────────────────┐
2099
- // │ These PropTypes are generated from the TypeScript type definitions. │
2100
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2101
- // └─────────────────────────────────────────────────────────────────────┘
2102
- /**
2103
- * If `true`, will focus the `[role="menu"]` container and move into tab order.
2104
- * @default false
2105
- */
2106
- autoFocus: e.bool,
2107
- /**
2108
- * If `true`, will focus the first menuitem if `variant="menu"` or selected item
2109
- * if `variant="selectedMenu"`.
2110
- * @default false
2111
- */
2112
- autoFocusItem: e.bool,
2113
- /**
2114
- * MenuList contents, normally `MenuItem`s.
2115
- */
2116
- children: e.node,
2117
- /**
2118
- * @ignore
2119
- */
2120
- className: e.string,
2121
- /**
2122
- * If `true`, will allow focus on disabled items.
2123
- * @default false
2124
- */
2125
- disabledItemsFocusable: e.bool,
2126
- /**
2127
- * If `true`, the menu items will not wrap focus.
2128
- * @default false
2129
- */
2130
- disableListWrap: e.bool,
2131
- /**
2132
- * @ignore
2133
- */
2134
- onKeyDown: e.func,
2135
- /**
2136
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
2137
- * and the vertical alignment relative to the anchor element.
2138
- * @default 'selectedMenu'
2139
- */
2140
- variant: e.oneOf(["menu", "selectedMenu"])
2141
- });
2142
- function nn(t) {
2143
- return ue("MuiMenu", t);
2144
- }
2145
- pe("MuiMenu", ["root", "paper", "list"]);
2146
- const on = {
2148
+ ue("MuiMenu", ["root", "paper", "list"]);
2149
+ const rn = {
2147
2150
  vertical: "top",
2148
2151
  horizontal: "right"
2149
- }, rn = {
2152
+ }, sn = {
2150
2153
  vertical: "top",
2151
2154
  horizontal: "left"
2152
- }, sn = (t) => {
2155
+ }, an = (t) => {
2153
2156
  const {
2154
2157
  classes: n
2155
2158
  } = t;
2156
- return le({
2159
+ return de({
2157
2160
  root: ["root"],
2158
2161
  paper: ["paper"],
2159
2162
  list: ["list"]
2160
- }, nn, n);
2161
- }, an = G(tt, {
2162
- shouldForwardProp: (t) => at(t) || t === "classes",
2163
+ }, on, n);
2164
+ }, cn = q(it, {
2165
+ shouldForwardProp: (t) => lt(t) || t === "classes",
2163
2166
  name: "MuiMenu",
2164
2167
  slot: "Root"
2165
- })({}), cn = G(et, {
2168
+ })({}), ln = q(st, {
2166
2169
  name: "MuiMenu",
2167
2170
  slot: "Paper"
2168
2171
  })({
@@ -2172,14 +2175,14 @@ const on = {
2172
2175
  maxHeight: "calc(100% - 96px)",
2173
2176
  // Add iOS momentum scrolling for iOS < 13.0
2174
2177
  WebkitOverflowScrolling: "touch"
2175
- }), ln = G(st, {
2178
+ }), un = q(et, {
2176
2179
  name: "MuiMenu",
2177
2180
  slot: "List"
2178
2181
  })({
2179
2182
  // We disable the focus ring for mouse, touch and keyboard users.
2180
2183
  outline: 0
2181
- }), un = /* @__PURE__ */ u.forwardRef(function(n, o) {
2182
- const r = ce({
2184
+ }), pn = /* @__PURE__ */ l.forwardRef(function(n, o) {
2185
+ const r = pe({
2183
2186
  props: n,
2184
2187
  name: "MuiMenu"
2185
2188
  }), {
@@ -2189,19 +2192,19 @@ const on = {
2189
2192
  disableAutoFocusItem: c = !1,
2190
2193
  MenuListProps: d = {},
2191
2194
  onClose: T,
2192
- open: w,
2195
+ open: O,
2193
2196
  PaperProps: x = {},
2194
2197
  PopoverClasses: C,
2195
2198
  transitionDuration: h = "auto",
2196
2199
  TransitionProps: {
2197
2200
  onEntering: b,
2198
- ...I
2201
+ ...F
2199
2202
  } = {},
2200
2203
  variant: M = "selectedMenu",
2201
- slots: g = {},
2202
- slotProps: O = {},
2203
- ...l
2204
- } = r, f = xt(), y = {
2204
+ slots: y = {},
2205
+ slotProps: R = {},
2206
+ ...u
2207
+ } = r, p = xt(), g = {
2205
2208
  ...r,
2206
2209
  autoFocus: a,
2207
2210
  disableAutoFocusItem: c,
@@ -2209,98 +2212,96 @@ const on = {
2209
2212
  onEntering: b,
2210
2213
  PaperProps: x,
2211
2214
  transitionDuration: h,
2212
- TransitionProps: I,
2215
+ TransitionProps: F,
2213
2216
  variant: M
2214
- }, N = sn(y), R = a && !c && w, E = u.useRef(null), S = (v, D) => {
2217
+ }, k = an(g), P = a && !c && O, E = l.useRef(null), w = (v, I) => {
2215
2218
  E.current && E.current.adjustStyleForScrollbar(v, {
2216
- direction: f ? "rtl" : "ltr"
2217
- }), b && b(v, D);
2218
- }, V = (v) => {
2219
+ direction: p ? "rtl" : "ltr"
2220
+ }), b && b(v, I);
2221
+ }, H = (v) => {
2219
2222
  v.key === "Tab" && (v.preventDefault(), T && T(v, "tabKeyDown"));
2220
2223
  };
2221
- let L = -1;
2222
- u.Children.map(s, (v, D) => {
2223
- /* @__PURE__ */ u.isValidElement(v) && (process.env.NODE_ENV !== "production" && He.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2224
- `)), v.props.disabled || (M === "selectedMenu" && v.props.selected || L === -1) && (L = D));
2224
+ let D = -1;
2225
+ l.Children.map(s, (v, I) => {
2226
+ /* @__PURE__ */ l.isValidElement(v) && (process.env.NODE_ENV !== "production" && ze.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2227
+ `)), v.props.disabled || (M === "selectedMenu" && v.props.selected || D === -1) && (D = I));
2225
2228
  });
2226
- const $ = {
2227
- slots: g,
2229
+ const B = {
2230
+ slots: y,
2228
2231
  slotProps: {
2229
2232
  list: d,
2230
- transition: I,
2233
+ transition: F,
2231
2234
  paper: x,
2232
- ...O
2235
+ ...R
2233
2236
  }
2234
- }, U = Qt({
2235
- elementType: g.root,
2236
- externalSlotProps: O.root,
2237
- ownerState: y,
2238
- className: [N.root, i]
2239
- }), [k, p] = W("paper", {
2240
- className: N.paper,
2241
- elementType: cn,
2242
- externalForwardedProps: $,
2243
- shouldForwardComponentProp: !0,
2244
- ownerState: y
2245
- }), [m, F] = W("list", {
2246
- className: ne(N.list, d.className),
2237
+ }, $ = Ot({
2238
+ elementType: y.root,
2239
+ externalSlotProps: R.root,
2240
+ ownerState: g,
2241
+ className: [k.root, i]
2242
+ }), [S, f] = z("paper", {
2243
+ className: k.paper,
2247
2244
  elementType: ln,
2245
+ externalForwardedProps: B,
2246
+ shouldForwardComponentProp: !0,
2247
+ ownerState: g
2248
+ }), [m, L] = z("list", {
2249
+ className: ee(k.list, d.className),
2250
+ elementType: un,
2248
2251
  shouldForwardComponentProp: !0,
2249
- externalForwardedProps: $,
2252
+ externalForwardedProps: B,
2250
2253
  getSlotProps: (v) => ({
2251
2254
  ...v,
2252
- onKeyDown: (D) => {
2253
- var Y;
2254
- V(D), (Y = v.onKeyDown) == null || Y.call(v, D);
2255
+ onKeyDown: (I) => {
2256
+ H(I), v.onKeyDown?.(I);
2255
2257
  }
2256
2258
  }),
2257
- ownerState: y
2258
- }), B = typeof $.slotProps.transition == "function" ? $.slotProps.transition(y) : $.slotProps.transition;
2259
- return /* @__PURE__ */ A.jsx(an, {
2259
+ ownerState: g
2260
+ }), K = typeof B.slotProps.transition == "function" ? B.slotProps.transition(g) : B.slotProps.transition;
2261
+ return /* @__PURE__ */ A.jsx(cn, {
2260
2262
  onClose: T,
2261
2263
  anchorOrigin: {
2262
2264
  vertical: "bottom",
2263
- horizontal: f ? "right" : "left"
2265
+ horizontal: p ? "right" : "left"
2264
2266
  },
2265
- transformOrigin: f ? on : rn,
2267
+ transformOrigin: p ? rn : sn,
2266
2268
  slots: {
2267
- root: g.root,
2268
- paper: k,
2269
- backdrop: g.backdrop,
2270
- ...g.transition && {
2269
+ root: y.root,
2270
+ paper: S,
2271
+ backdrop: y.backdrop,
2272
+ ...y.transition && {
2271
2273
  // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
2272
- transition: g.transition
2274
+ transition: y.transition
2273
2275
  }
2274
2276
  },
2275
2277
  slotProps: {
2276
- root: U,
2277
- paper: p,
2278
- backdrop: typeof O.backdrop == "function" ? O.backdrop(y) : O.backdrop,
2278
+ root: $,
2279
+ paper: f,
2280
+ backdrop: typeof R.backdrop == "function" ? R.backdrop(g) : R.backdrop,
2279
2281
  transition: {
2280
- ...B,
2282
+ ...K,
2281
2283
  onEntering: (...v) => {
2282
- var D;
2283
- S(...v), (D = B == null ? void 0 : B.onEntering) == null || D.call(B, ...v);
2284
+ w(...v), K?.onEntering?.(...v);
2284
2285
  }
2285
2286
  }
2286
2287
  },
2287
- open: w,
2288
+ open: O,
2288
2289
  ref: o,
2289
2290
  transitionDuration: h,
2290
- ownerState: y,
2291
- ...l,
2291
+ ownerState: g,
2292
+ ...u,
2292
2293
  classes: C,
2293
2294
  children: /* @__PURE__ */ A.jsx(m, {
2294
2295
  actions: E,
2295
- autoFocus: a && (L === -1 || c),
2296
- autoFocusItem: R,
2296
+ autoFocus: a && (D === -1 || c),
2297
+ autoFocusItem: P,
2297
2298
  variant: M,
2298
- ...F,
2299
+ ...L,
2299
2300
  children: s
2300
2301
  })
2301
2302
  });
2302
2303
  });
2303
- process.env.NODE_ENV !== "production" && (un.propTypes = {
2304
+ process.env.NODE_ENV !== "production" && (pn.propTypes = {
2304
2305
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2305
2306
  // │ These PropTypes are generated from the TypeScript type definitions. │
2306
2307
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2309,7 +2310,7 @@ process.env.NODE_ENV !== "production" && (un.propTypes = {
2309
2310
  * An HTML element, or a function that returns one.
2310
2311
  * It's used to set the position of the menu.
2311
2312
  */
2312
- anchorEl: e.oneOfType([ae, e.func]),
2313
+ anchorEl: e.oneOfType([ce, e.func]),
2313
2314
  /**
2314
2315
  * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
2315
2316
  * children are not focusable. If you set this prop to `false` focus will be placed
@@ -2412,22 +2413,23 @@ process.env.NODE_ENV !== "production" && (un.propTypes = {
2412
2413
  variant: e.oneOf(["menu", "selectedMenu"])
2413
2414
  });
2414
2415
  export {
2415
- Qe as B,
2416
- Je as F,
2417
- be as G,
2418
- ae as H,
2419
- nt as L,
2420
- un as M,
2421
- tt as P,
2422
- Q as a,
2423
- Qt as b,
2424
- st as c,
2425
- vt as d,
2426
- ye as e,
2427
- ge as f,
2428
- Ee as g,
2429
- ot as h,
2430
- Ze as i,
2431
- q as o,
2416
+ ot as B,
2417
+ nt as F,
2418
+ ge as G,
2419
+ ce as H,
2420
+ Xe as L,
2421
+ pn as M,
2422
+ it as P,
2423
+ _ as a,
2424
+ Ot as b,
2425
+ se as c,
2426
+ Rt as d,
2427
+ et as e,
2428
+ Ee as f,
2429
+ Te as g,
2430
+ ye as h,
2431
+ Je as i,
2432
+ rt as j,
2433
+ X as o,
2432
2434
  xt as u
2433
2435
  };