@solostylist/ui-kit 1.0.87 → 1.0.89

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 (70) hide show
  1. package/dist/{Box-Cf99MewL.js → Box-CJmG1mTu.js} +3 -3
  2. package/dist/ButtonBase-C0g54hXq.js +910 -0
  3. package/dist/ChevronRight-CtkI4XwH.js +11 -0
  4. package/dist/{Close-CKpTrk7X.js → Close--Sf9yZGB.js} +1 -1
  5. package/dist/{Menu-D2LDo0yd.js → Menu-BuktPpzX.js} +914 -1453
  6. package/dist/{MenuItem-JkMrBIMD.js → MenuItem-sL2AcofB.js} +8 -8
  7. package/dist/Paper-CH6cuu9i.js +553 -0
  8. package/dist/{Select-4BjFewNI.js → Select-D2lV25sl.js} +16 -15
  9. package/dist/{Stack-UjxgGQu9.js → Stack-CIrlOUXL.js} +4 -4
  10. package/dist/{TransitionGroup-DzGaAPUk.js → TransitionGroup-SToIdl-5.js} +3 -3
  11. package/dist/{Typography-CGoVq27h.js → Typography-D-VP4V1G.js} +3 -3
  12. package/dist/{createSvgIcon-vJH0FaMW.js → createSvgIcon-DpVs_nKR.js} +5 -5
  13. package/dist/{createTheme-DjqDAiZm.js → createTheme-DbdaZ0Ku.js} +3 -2
  14. package/dist/{defaultTheme-CaAxts6z.js → defaultTheme-CFAmbghg.js} +1 -1
  15. package/dist/{extendSxProp-BnfiUPQK.js → extendSxProp-CQnEn3aw.js} +1 -1
  16. package/dist/{index-DcImsw9J.js → index-CjPqjRDL.js} +4 -4
  17. package/dist/main.d.ts +6 -0
  18. package/dist/main.js +117 -111
  19. package/dist/mergeSlotProps-N47mO9C9.js +62 -0
  20. package/dist/s-accordion/index.d.ts +2 -0
  21. package/dist/s-accordion/index.js +4 -0
  22. package/dist/s-accordion/package.json +5 -0
  23. package/dist/s-accordion/s-accordion.d.ts +9 -0
  24. package/dist/s-accordion/s-accordion.js +924 -0
  25. package/dist/s-avatar/index.d.ts +2 -0
  26. package/dist/s-avatar/index.js +4 -0
  27. package/dist/s-avatar/package.json +5 -0
  28. package/dist/s-avatar/s-avatar.d.ts +10 -0
  29. package/dist/s-avatar/s-avatar.js +9 -0
  30. package/dist/s-chat-input/s-chat-input.js +6 -6
  31. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  32. package/dist/s-data-table/s-data-table.js +12 -10
  33. package/dist/s-date-picker/s-date-picker.js +24 -24
  34. package/dist/s-datetime-picker/s-datetime-picker.js +13 -12
  35. package/dist/s-dialog/s-dialog.js +1 -1
  36. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  37. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  38. package/dist/s-file-dropzone/s-file-dropzone.js +8 -8
  39. package/dist/s-file-icon/s-file-icon.js +1 -1
  40. package/dist/s-image-comparison/index.d.ts +2 -0
  41. package/dist/s-image-comparison/index.js +4 -0
  42. package/dist/s-image-comparison/package.json +5 -0
  43. package/dist/s-image-comparison/s-image-comparison.d.ts +11 -0
  44. package/dist/s-image-comparison/s-image-comparison.js +155 -0
  45. package/dist/s-image-modal/s-image-modal.js +94 -98
  46. package/dist/s-interactive-gallery/s-interactive-gallery.js +69 -69
  47. package/dist/s-label/s-label.js +1 -1
  48. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  49. package/dist/s-multi-select/s-multi-select.js +5 -5
  50. package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
  51. package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
  52. package/dist/s-text-editor/s-text-editor.js +1 -1
  53. package/dist/s-text-field/s-text-field.js +13 -4
  54. package/dist/s-tip/s-tip.js +3 -3
  55. package/dist/theme/components/avatar.js +3 -3
  56. package/dist/theme/components/button.d.ts +2 -2
  57. package/dist/theme/components/chip.js +1 -1
  58. package/dist/theme/components/components.d.ts +2 -2
  59. package/dist/theme/customizations/inputs.js +1 -1
  60. package/dist/theme/customizations/navigation.js +1 -1
  61. package/dist/theme/theme-primitives.js +1 -1
  62. package/dist/useControlled-nm4pBabJ.js +31 -0
  63. package/dist/useFormControl-CatNKXAi.js +10 -0
  64. package/dist/{useMobilePicker-DmFQ075P.js → useMobilePicker-CRxlxUeh.js} +100 -98
  65. package/dist/{useTheme-DPtt6ExE.js → useTheme-CjYoxoob.js} +1 -1
  66. package/dist/{useThemeProps-DQiCrjPQ.js → useThemeProps-DdCEfRBE.js} +2 -2
  67. package/dist/{warning-UxpRUL3s.js → warning-CiVr8tE6.js} +3 -3
  68. package/package.json +1 -1
  69. package/dist/useFormControl-B3RPiDsz.js +0 -38
  70. package/dist/useSlot-DFSsVuMw.js +0 -969
@@ -1,588 +1,199 @@
1
- import * as p from "react";
2
- import ve from "react";
3
- import { P as e, k as He, j as rt } from "./createTheme-DjqDAiZm.js";
4
- import { u as le, a as te, s as W, b as ce, m as it, r as Rt } from "./createSvgIcon-vJH0FaMW.js";
5
- import { j as L } from "./jsx-runtime-DywqP_6a.js";
6
- import { g as ue, a as ze } from "./colorManipulator-ep5lERxB.js";
1
+ import * as u from "react";
2
+ import { P as e, l as He } from "./createTheme-DbdaZ0Ku.js";
3
+ import { u as ce, c as ne, s as G, a as le, m as it, r as at } from "./createSvgIcon-DpVs_nKR.js";
4
+ import { j as A } from "./jsx-runtime-DywqP_6a.js";
5
+ import { g as ue } from "./colorManipulator-ep5lERxB.js";
7
6
  import { g as pe } from "./generateUtilityClasses-BtVDwGrk.js";
8
- import { c as we, f as Ot, u as oe, b as X, d as We, g as Nt, m as wt, r as St, e as Ct, a as kt, h as Mt, i as Dt } from "./useSlot-DFSsVuMw.js";
9
- import { d as It } from "./defaultTheme-CaAxts6z.js";
10
- import { T as jt } from "./identifier-BKLqN993.js";
11
- import { u as Ft } from "./useTheme-DPtt6ExE.js";
12
- import { _ as Lt } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
13
- import { _ as At, a as st } from "./TransitionGroup-DzGaAPUk.js";
14
- import * as $t from "react-dom";
15
- import Te from "react-dom";
16
- import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
17
- function Ge(...t) {
18
- return t.reduce((n, o) => o == null ? n : function(...s) {
19
- n.apply(this, s), o.apply(this, s);
7
+ import { c as Me, b as ct, u as Z, d as W, f as Fe, g as lt, r as ut, e as pt, a as dt, m as ft, h as mt } from "./ButtonBase-C0g54hXq.js";
8
+ import { T as ze, u as qe, g as he, r as We, P as ht, i as bt } from "./Paper-CH6cuu9i.js";
9
+ import { m as gt } from "./mergeSlotProps-N47mO9C9.js";
10
+ import * as yt from "react-dom";
11
+ import { u as Ne } from "./useEnhancedEffect-CJGo-L3B.js";
12
+ function De(...t) {
13
+ return t.reduce((n, o) => o == null ? n : function(...a) {
14
+ n.apply(this, a), o.apply(this, a);
20
15
  }, () => {
21
16
  });
22
17
  }
23
- const Vt = "exact-prop: ​";
24
- function at(t) {
18
+ const Et = "exact-prop: ​";
19
+ function Ge(t) {
25
20
  return process.env.NODE_ENV === "production" ? t : {
26
21
  ...t,
27
- [Vt]: (n) => {
28
- const o = Object.keys(n).filter((i) => !t.hasOwnProperty(i));
29
- return o.length > 0 ? new Error(`The following props are not supported: ${o.map((i) => `\`${i}\``).join(", ")}. Please remove them.`) : null;
22
+ [Et]: (n) => {
23
+ const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
24
+ return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
30
25
  }
31
26
  };
32
27
  }
33
- const _t = /* @__PURE__ */ p.createContext();
28
+ const Tt = /* @__PURE__ */ u.createContext();
34
29
  process.env.NODE_ENV !== "production" && (e.node, e.bool);
35
- const Ut = () => p.useContext(_t) ?? !1;
36
- function _e() {
37
- const t = Ft(It);
38
- return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[jt] || t;
39
- }
40
- function qt(t, n = 166) {
30
+ const Pt = () => u.useContext(Tt) ?? !1;
31
+ function xt(t, n = 166) {
41
32
  let o;
42
- function i(...s) {
43
- const r = () => {
44
- t.apply(this, s);
33
+ function r(...a) {
34
+ const s = () => {
35
+ t.apply(this, a);
45
36
  };
46
- clearTimeout(o), o = setTimeout(r, n);
37
+ clearTimeout(o), o = setTimeout(s, n);
47
38
  }
48
- return i.clear = () => {
39
+ return r.clear = () => {
49
40
  clearTimeout(o);
50
- }, i;
41
+ }, r;
51
42
  }
52
- function z(t) {
43
+ function q(t) {
53
44
  return t && t.ownerDocument || document;
54
45
  }
55
- function ne(t) {
56
- return z(t).defaultView || window;
46
+ function Q(t) {
47
+ return q(t).defaultView || window;
57
48
  }
58
- function Xe(t, n) {
49
+ function Le(t, n) {
59
50
  typeof t == "function" ? t(n) : t && (t.current = n);
60
51
  }
61
- const Ye = {
62
- disabled: !1
63
- };
64
- var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
65
- enter: e.number,
66
- exit: e.number,
67
- appear: e.number
68
- }).isRequired]) : null, Jn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
69
- enter: e.string,
70
- exit: e.string,
71
- active: e.string
72
- }), e.shape({
73
- enter: e.string,
74
- enterDone: e.string,
75
- enterActive: e.string,
76
- exit: e.string,
77
- exitDone: e.string,
78
- exitActive: e.string
79
- })]) : null, Bt = function(n) {
80
- return n.scrollTop;
81
- }, me = "unmounted", Z = "exited", ee = "entering", ae = "entered", Ae = "exiting", G = /* @__PURE__ */ function(t) {
82
- At(n, t);
83
- function n(i, s) {
84
- var r;
85
- r = t.call(this, i, s) || this;
86
- var a = s, l = a && !a.isMounting ? i.enter : i.appear, c;
87
- return r.appearStatus = null, i.in ? l ? (c = Z, r.appearStatus = ee) : c = ae : i.unmountOnExit || i.mountOnEnter ? c = me : c = Z, r.state = {
88
- status: c
89
- }, r.nextCallback = null, r;
90
- }
91
- n.getDerivedStateFromProps = function(s, r) {
92
- var a = s.in;
93
- return a && r.status === me ? {
94
- status: Z
95
- } : null;
96
- };
97
- var o = n.prototype;
98
- return o.componentDidMount = function() {
99
- this.updateStatus(!0, this.appearStatus);
100
- }, o.componentDidUpdate = function(s) {
101
- var r = null;
102
- if (s !== this.props) {
103
- var a = this.state.status;
104
- this.props.in ? a !== ee && a !== ae && (r = ee) : (a === ee || a === ae) && (r = Ae);
105
- }
106
- this.updateStatus(!1, r);
107
- }, o.componentWillUnmount = function() {
108
- this.cancelNextCallback();
109
- }, o.getTimeouts = function() {
110
- var s = this.props.timeout, r, a, l;
111
- return r = a = l = s, s != null && typeof s != "number" && (r = s.exit, a = s.enter, l = s.appear !== void 0 ? s.appear : a), {
112
- exit: r,
113
- enter: a,
114
- appear: l
115
- };
116
- }, o.updateStatus = function(s, r) {
117
- if (s === void 0 && (s = !1), r !== null)
118
- if (this.cancelNextCallback(), r === ee) {
119
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
120
- var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this);
121
- a && Bt(a);
122
- }
123
- this.performEnter(s);
124
- } else
125
- this.performExit();
126
- else this.props.unmountOnExit && this.state.status === Z && this.setState({
127
- status: me
128
- });
129
- }, o.performEnter = function(s) {
130
- var r = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [Te.findDOMNode(this), l], b = c[0], T = c[1], v = this.getTimeouts(), N = l ? v.appear : v.enter;
131
- if (!s && !a || Ye.disabled) {
132
- this.safeSetState({
133
- status: ae
134
- }, function() {
135
- r.props.onEntered(b);
136
- });
137
- return;
138
- }
139
- this.props.onEnter(b, T), this.safeSetState({
140
- status: ee
141
- }, function() {
142
- r.props.onEntering(b, T), r.onTransitionEnd(N, function() {
143
- r.safeSetState({
144
- status: ae
145
- }, function() {
146
- r.props.onEntered(b, T);
147
- });
148
- });
149
- });
150
- }, o.performExit = function() {
151
- var s = this, r = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Te.findDOMNode(this);
152
- if (!r || Ye.disabled) {
153
- this.safeSetState({
154
- status: Z
155
- }, function() {
156
- s.props.onExited(l);
157
- });
158
- return;
159
- }
160
- this.props.onExit(l), this.safeSetState({
161
- status: Ae
162
- }, function() {
163
- s.props.onExiting(l), s.onTransitionEnd(a.exit, function() {
164
- s.safeSetState({
165
- status: Z
166
- }, function() {
167
- s.props.onExited(l);
168
- });
169
- });
170
- });
171
- }, o.cancelNextCallback = function() {
172
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
173
- }, o.safeSetState = function(s, r) {
174
- r = this.setNextCallback(r), this.setState(s, r);
175
- }, o.setNextCallback = function(s) {
176
- var r = this, a = !0;
177
- return this.nextCallback = function(l) {
178
- a && (a = !1, r.nextCallback = null, s(l));
179
- }, this.nextCallback.cancel = function() {
180
- a = !1;
181
- }, this.nextCallback;
182
- }, o.onTransitionEnd = function(s, r) {
183
- this.setNextCallback(r);
184
- var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this), l = s == null && !this.props.addEndListener;
185
- if (!a || l) {
186
- setTimeout(this.nextCallback, 0);
187
- return;
188
- }
189
- if (this.props.addEndListener) {
190
- var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], b = c[0], T = c[1];
191
- this.props.addEndListener(b, T);
192
- }
193
- s != null && setTimeout(this.nextCallback, s);
194
- }, o.render = function() {
195
- var s = this.state.status;
196
- if (s === me)
197
- return null;
198
- var r = this.props, a = r.children;
199
- r.in, r.mountOnEnter, r.unmountOnExit, r.appear, r.enter, r.exit, r.timeout, r.addEndListener, r.onEnter, r.onEntering, r.onEntered, r.onExit, r.onExiting, r.onExited, r.nodeRef;
200
- var l = Lt(r, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
201
- return (
202
- // allows for nested Transitions
203
- /* @__PURE__ */ ve.createElement(st.Provider, {
204
- value: null
205
- }, typeof a == "function" ? a(s, l) : ve.cloneElement(ve.Children.only(a), l))
206
- );
207
- }, n;
208
- }(ve.Component);
209
- G.contextType = st;
210
- G.propTypes = process.env.NODE_ENV !== "production" ? {
211
- /**
212
- * A React reference to DOM element that need to transition:
213
- * https://stackoverflow.com/a/51127130/4671932
214
- *
215
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
216
- * (e.g. `onEnter`) because user already has direct access to the node.
217
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
218
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
219
- * (see
220
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
221
- */
222
- nodeRef: e.shape({
223
- current: typeof Element > "u" ? e.any : function(t, n, o, i, s, r) {
224
- var a = t[n];
225
- return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n, o, i, s, r);
226
- }
227
- }),
228
- /**
229
- * A `function` child can be used instead of a React element. This function is
230
- * called with the current transition status (`'entering'`, `'entered'`,
231
- * `'exiting'`, `'exited'`), which can be used to apply context
232
- * specific props to a component.
233
- *
234
- * ```jsx
235
- * <Transition in={this.state.in} timeout={150}>
236
- * {state => (
237
- * <MyComponent className={`fade fade-${state}`} />
238
- * )}
239
- * </Transition>
240
- * ```
241
- */
242
- children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
243
- /**
244
- * Show the component; triggers the enter or exit states
245
- */
246
- in: e.bool,
247
- /**
248
- * By default the child component is mounted immediately along with
249
- * the parent `Transition` component. If you want to "lazy mount" the component on the
250
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
251
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
252
- */
253
- mountOnEnter: e.bool,
254
- /**
255
- * By default the child component stays mounted after it reaches the `'exited'` state.
256
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
257
- */
258
- unmountOnExit: e.bool,
259
- /**
260
- * By default the child component does not perform the enter transition when
261
- * it first mounts, regardless of the value of `in`. If you want this
262
- * behavior, set both `appear` and `in` to `true`.
263
- *
264
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
265
- * > only adds an additional enter transition. However, in the
266
- * > `<CSSTransition>` component that first enter transition does result in
267
- * > additional `.appear-*` classes, that way you can choose to style it
268
- * > differently.
269
- */
270
- appear: e.bool,
271
- /**
272
- * Enable or disable enter transitions.
273
- */
274
- enter: e.bool,
275
- /**
276
- * Enable or disable exit transitions.
277
- */
278
- exit: e.bool,
279
- /**
280
- * The duration of the transition, in milliseconds.
281
- * Required unless `addEndListener` is provided.
282
- *
283
- * You may specify a single timeout for all transitions:
284
- *
285
- * ```jsx
286
- * timeout={500}
287
- * ```
288
- *
289
- * or individually:
290
- *
291
- * ```jsx
292
- * timeout={{
293
- * appear: 500,
294
- * enter: 300,
295
- * exit: 500,
296
- * }}
297
- * ```
298
- *
299
- * - `appear` defaults to the value of `enter`
300
- * - `enter` defaults to `0`
301
- * - `exit` defaults to `0`
302
- *
303
- * @type {number | { enter?: number, exit?: number, appear?: number }}
304
- */
305
- timeout: function(n) {
306
- var o = Kt;
307
- n.addEndListener || (o = o.isRequired);
308
- for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
309
- s[r - 1] = arguments[r];
310
- return o.apply(void 0, [n].concat(s));
311
- },
312
- /**
313
- * Add a custom transition end trigger. Called with the transitioning
314
- * DOM node and a `done` callback. Allows for more fine grained transition end
315
- * logic. Timeouts are still used as a fallback if provided.
316
- *
317
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
318
- *
319
- * ```jsx
320
- * addEndListener={(node, done) => {
321
- * // use the css transitionend event to mark the finish of a transition
322
- * node.addEventListener('transitionend', done, false);
323
- * }}
324
- * ```
325
- */
326
- addEndListener: e.func,
327
- /**
328
- * Callback fired before the "entering" status is applied. An extra parameter
329
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
330
- *
331
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
332
- *
333
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
334
- */
335
- onEnter: e.func,
336
- /**
337
- * Callback fired after the "entering" status is applied. An extra parameter
338
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
339
- *
340
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
341
- *
342
- * @type Function(node: HtmlElement, isAppearing: bool)
343
- */
344
- onEntering: e.func,
345
- /**
346
- * Callback fired after the "entered" status is applied. An extra parameter
347
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
348
- *
349
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
350
- *
351
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
352
- */
353
- onEntered: e.func,
354
- /**
355
- * Callback fired before the "exiting" status is applied.
356
- *
357
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
358
- *
359
- * @type Function(node: HtmlElement) -> void
360
- */
361
- onExit: e.func,
362
- /**
363
- * Callback fired after the "exiting" status is applied.
364
- *
365
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
366
- *
367
- * @type Function(node: HtmlElement) -> void
368
- */
369
- onExiting: e.func,
370
- /**
371
- * Callback fired after the "exited" status is applied.
372
- *
373
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
374
- *
375
- * @type Function(node: HtmlElement) -> void
376
- */
377
- onExited: e.func
378
- } : {};
379
- function se() {
380
- }
381
- G.defaultProps = {
382
- in: !1,
383
- mountOnEnter: !1,
384
- unmountOnExit: !1,
385
- appear: !1,
386
- enter: !0,
387
- exit: !0,
388
- onEnter: se,
389
- onEntering: se,
390
- onEntered: se,
391
- onExit: se,
392
- onExiting: se,
393
- onExited: se
394
- };
395
- G.UNMOUNTED = me;
396
- G.EXITED = Z;
397
- G.ENTERING = ee;
398
- G.ENTERED = ae;
399
- G.EXITING = Ae;
400
- function Ee(t, n, o, i, s) {
52
+ function ae(t, n, o, r, a) {
401
53
  if (process.env.NODE_ENV === "production")
402
54
  return null;
403
- const r = t[n], a = s || n;
404
- return r == null ? null : r && r.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
405
- }
406
- function Ht(t) {
407
- const n = typeof t;
408
- switch (n) {
409
- case "number":
410
- return Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? t !== Math.floor(t) ? "float" : "number" : "Infinity";
411
- case "object":
412
- return t === null ? "null" : t.constructor.name;
413
- default:
414
- return n;
415
- }
55
+ const s = t[n], i = a || n;
56
+ return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
416
57
  }
417
- function lt(t, n, o, i) {
418
- const s = t[n];
419
- if (s == null || !Number.isInteger(s)) {
420
- const r = Ht(s);
421
- return new RangeError(`Invalid ${i} \`${n}\` of type \`${r}\` supplied to \`${o}\`, expected \`integer\`.`);
422
- }
423
- return null;
424
- }
425
- function ct(t, n, o, i) {
426
- return t[n] === void 0 ? null : lt(t, n, o, i);
427
- }
428
- function $e() {
429
- return null;
430
- }
431
- ct.isRequired = lt;
432
- $e.isRequired = $e;
433
- const ut = process.env.NODE_ENV === "production" ? $e : ct;
434
- function zt(t) {
58
+ function vt(t) {
435
59
  return typeof t == "string";
436
60
  }
437
- function Wt(t) {
61
+ function Rt(t) {
438
62
  const {
439
63
  prototype: n = {}
440
64
  } = t;
441
65
  return !!n.isReactComponent;
442
66
  }
443
- function pt(t, n, o, i, s) {
444
- const r = t[n], a = s || n;
445
- if (r == null || // When server-side rendering React doesn't warn either.
67
+ function Ye(t, n, o, r, a) {
68
+ const s = t[n], i = a || n;
69
+ if (s == null || // When server-side rendering React doesn't warn either.
446
70
  // This is not an accurate check for SSR.
447
71
  // This is only in place for Emotion compat.
448
72
  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
449
73
  typeof window > "u")
450
74
  return null;
451
- let l;
452
- const c = r.type;
453
- return typeof c == "function" && !Wt(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
75
+ let c;
76
+ const d = s.type;
77
+ 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;
454
78
  }
455
- const ge = we(e.element, pt);
456
- ge.isRequired = we(e.element.isRequired, pt);
457
- function Se(t) {
79
+ const de = Me(e.element, Ye);
80
+ de.isRequired = Me(e.element.isRequired, Ye);
81
+ function Ee(t) {
458
82
  var n;
459
- return parseInt(p.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
83
+ 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;
460
84
  }
461
- const dt = (t) => t.scrollTop;
462
- function Pe(t, n) {
463
- const {
464
- timeout: o,
465
- easing: i,
466
- style: s = {}
467
- } = t;
468
- return {
469
- duration: s.transitionDuration ?? (typeof o == "number" ? o : o[n.mode] || 0),
470
- easing: s.transitionTimingFunction ?? (typeof i == "object" ? i[n.mode] : i),
471
- delay: s.transitionDelay
472
- };
473
- }
474
- function Ve(t) {
85
+ function Ce(t) {
475
86
  return `scale(${t}, ${t ** 2})`;
476
87
  }
477
- const Gt = {
88
+ const Ot = {
478
89
  entering: {
479
90
  opacity: 1,
480
- transform: Ve(1)
91
+ transform: Ce(1)
481
92
  },
482
93
  entered: {
483
94
  opacity: 1,
484
95
  transform: "none"
485
96
  }
486
- }, Ie = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Re = /* @__PURE__ */ p.forwardRef(function(n, o) {
97
+ }, 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) {
487
98
  const {
488
- addEndListener: i,
489
- appear: s = !0,
490
- children: r,
491
- easing: a,
492
- in: l,
493
- onEnter: c,
494
- onEntered: b,
495
- onEntering: T,
496
- onExit: v,
497
- onExited: N,
498
- onExiting: m,
499
- style: E,
99
+ addEndListener: r,
100
+ appear: a = !0,
101
+ children: s,
102
+ easing: i,
103
+ in: c,
104
+ onEnter: d,
105
+ onEntered: T,
106
+ onEntering: w,
107
+ onExit: x,
108
+ onExited: C,
109
+ onExiting: h,
110
+ style: b,
500
111
  timeout: I = "auto",
501
112
  // eslint-disable-next-line react/prop-types
502
- TransitionComponent: C = G,
113
+ TransitionComponent: M = ze,
503
114
  ...g
504
- } = n, w = Ot(), u = p.useRef(), f = _e(), y = p.useRef(null), S = oe(y, Se(r), o), O = (d) => (h) => {
505
- if (d) {
506
- const j = y.current;
507
- h === void 0 ? d(j) : d(j, h);
115
+ } = n, O = ct(), l = u.useRef(), f = qe(), y = u.useRef(null), N = Z(y, Ee(s), o), R = (p) => (m) => {
116
+ if (p) {
117
+ const F = y.current;
118
+ m === void 0 ? p(F) : p(F, m);
508
119
  }
509
- }, x = O(T), M = O((d, h) => {
510
- dt(d);
120
+ }, E = R(w), S = R((p, m) => {
121
+ We(p);
511
122
  const {
512
- duration: j,
513
- delay: U,
514
- easing: R
515
- } = Pe({
516
- style: E,
123
+ duration: F,
124
+ delay: B,
125
+ easing: v
126
+ } = he({
127
+ style: b,
517
128
  timeout: I,
518
- easing: a
129
+ easing: i
519
130
  }, {
520
131
  mode: "enter"
521
132
  });
522
- let F;
523
- I === "auto" ? (F = f.transitions.getAutoHeightDuration(d.clientHeight), u.current = F) : F = j, d.style.transition = [f.transitions.create("opacity", {
524
- duration: F,
525
- delay: U
133
+ let D;
134
+ I === "auto" ? (D = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = D) : D = F, p.style.transition = [f.transitions.create("opacity", {
135
+ duration: D,
136
+ delay: B
526
137
  }), f.transitions.create("transform", {
527
- duration: Ie ? F : F * 0.666,
528
- delay: U,
529
- easing: R
530
- })].join(","), c && c(d, h);
531
- }), $ = O(b), A = O(m), _ = O((d) => {
138
+ duration: Re ? D : D * 0.666,
139
+ delay: B,
140
+ easing: v
141
+ })].join(","), d && d(p, m);
142
+ }), V = R(T), L = R(h), $ = R((p) => {
532
143
  const {
533
- duration: h,
534
- delay: j,
535
- easing: U
536
- } = Pe({
537
- style: E,
144
+ duration: m,
145
+ delay: F,
146
+ easing: B
147
+ } = he({
148
+ style: b,
538
149
  timeout: I,
539
- easing: a
150
+ easing: i
540
151
  }, {
541
152
  mode: "exit"
542
153
  });
543
- let R;
544
- I === "auto" ? (R = f.transitions.getAutoHeightDuration(d.clientHeight), u.current = R) : R = h, d.style.transition = [f.transitions.create("opacity", {
545
- duration: R,
546
- delay: j
154
+ let v;
155
+ I === "auto" ? (v = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = v) : v = m, p.style.transition = [f.transitions.create("opacity", {
156
+ duration: v,
157
+ delay: F
547
158
  }), f.transitions.create("transform", {
548
- duration: Ie ? R : R * 0.666,
549
- delay: Ie ? j : j || R * 0.333,
550
- easing: U
551
- })].join(","), d.style.opacity = 0, d.style.transform = Ve(0.75), v && v(d);
552
- }), q = O(N), k = (d) => {
553
- I === "auto" && w.start(u.current || 0, d), i && i(y.current, d);
159
+ duration: Re ? v : v * 0.666,
160
+ delay: Re ? F : F || v * 0.333,
161
+ easing: B
162
+ })].join(","), p.style.opacity = 0, p.style.transform = Ce(0.75), x && x(p);
163
+ }), U = R(C), k = (p) => {
164
+ I === "auto" && O.start(l.current || 0, p), r && r(y.current, p);
554
165
  };
555
- return /* @__PURE__ */ L.jsx(C, {
556
- appear: s,
557
- in: l,
166
+ return /* @__PURE__ */ A.jsx(M, {
167
+ appear: a,
168
+ in: c,
558
169
  nodeRef: y,
559
- onEnter: M,
560
- onEntered: $,
561
- onEntering: x,
562
- onExit: _,
563
- onExited: q,
564
- onExiting: A,
170
+ onEnter: S,
171
+ onEntered: V,
172
+ onEntering: E,
173
+ onExit: $,
174
+ onExited: U,
175
+ onExiting: L,
565
176
  addEndListener: k,
566
177
  timeout: I === "auto" ? null : I,
567
178
  ...g,
568
- children: (d, {
569
- ownerState: h,
570
- ...j
571
- }) => /* @__PURE__ */ p.cloneElement(r, {
179
+ children: (p, {
180
+ ownerState: m,
181
+ ...F
182
+ }) => /* @__PURE__ */ u.cloneElement(s, {
572
183
  style: {
573
184
  opacity: 0,
574
- transform: Ve(0.75),
575
- visibility: d === "exited" && !l ? "hidden" : void 0,
576
- ...Gt[d],
577
- ...E,
578
- ...r.props.style
185
+ transform: Ce(0.75),
186
+ visibility: p === "exited" && !c ? "hidden" : void 0,
187
+ ...Ot[p],
188
+ ...b,
189
+ ...s.props.style
579
190
  },
580
- ref: S,
581
- ...j
191
+ ref: N,
192
+ ...F
582
193
  })
583
194
  });
584
195
  });
585
- process.env.NODE_ENV !== "production" && (Re.propTypes = {
196
+ process.env.NODE_ENV !== "production" && (be.propTypes = {
586
197
  // ┌────────────────────────────── Warning ──────────────────────────────┐
587
198
  // │ These PropTypes are generated from the TypeScript type definitions. │
588
199
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -602,7 +213,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
602
213
  /**
603
214
  * A single child content element.
604
215
  */
605
- children: ge.isRequired,
216
+ children: de.isRequired,
606
217
  /**
607
218
  * The transition timing function.
608
219
  * You may specify a single easing or a object containing enter and exit values.
@@ -656,243 +267,243 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
656
267
  exit: e.number
657
268
  })])
658
269
  });
659
- Re && (Re.muiSupportAuto = !0);
660
- function ft(t = window) {
270
+ be && (be.muiSupportAuto = !0);
271
+ function Xe(t = window) {
661
272
  const n = t.document.documentElement.clientWidth;
662
273
  return t.innerWidth - n;
663
274
  }
664
- function Xt(t) {
665
- const n = z(t);
666
- return n.body === t ? ne(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
275
+ function wt(t) {
276
+ const n = q(t);
277
+ return n.body === t ? Q(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
667
278
  }
668
- function be(t, n) {
279
+ function ie(t, n) {
669
280
  n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
670
281
  }
671
- function Je(t) {
672
- return parseInt(ne(t).getComputedStyle(t).paddingRight, 10) || 0;
282
+ function Ae(t) {
283
+ return parseInt(Q(t).getComputedStyle(t).paddingRight, 10) || 0;
673
284
  }
674
- function Yt(t) {
675
- const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), i = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
676
- return o || i;
285
+ function Nt(t) {
286
+ 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";
287
+ return o || r;
677
288
  }
678
- function Qe(t, n, o, i, s) {
679
- const r = [n, o, ...i];
680
- [].forEach.call(t.children, (a) => {
681
- const l = !r.includes(a), c = !Yt(a);
682
- l && c && be(a, s);
289
+ function Ve(t, n, o, r, a) {
290
+ const s = [n, o, ...r];
291
+ [].forEach.call(t.children, (i) => {
292
+ const c = !s.includes(i), d = !Nt(i);
293
+ c && d && ie(i, a);
683
294
  });
684
295
  }
685
- function je(t, n) {
296
+ function Oe(t, n) {
686
297
  let o = -1;
687
- return t.some((i, s) => n(i) ? (o = s, !0) : !1), o;
298
+ return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
688
299
  }
689
- function Jt(t, n) {
690
- const o = [], i = t.container;
300
+ function Ct(t, n) {
301
+ const o = [], r = t.container;
691
302
  if (!n.disableScrollLock) {
692
- if (Xt(i)) {
693
- const a = ft(ne(i));
303
+ if (wt(r)) {
304
+ const i = Xe(Q(r));
694
305
  o.push({
695
- value: i.style.paddingRight,
306
+ value: r.style.paddingRight,
696
307
  property: "padding-right",
697
- el: i
698
- }), i.style.paddingRight = `${Je(i) + a}px`;
699
- const l = z(i).querySelectorAll(".mui-fixed");
700
- [].forEach.call(l, (c) => {
308
+ el: r
309
+ }), r.style.paddingRight = `${Ae(r) + i}px`;
310
+ const c = q(r).querySelectorAll(".mui-fixed");
311
+ [].forEach.call(c, (d) => {
701
312
  o.push({
702
- value: c.style.paddingRight,
313
+ value: d.style.paddingRight,
703
314
  property: "padding-right",
704
- el: c
705
- }), c.style.paddingRight = `${Je(c) + a}px`;
315
+ el: d
316
+ }), d.style.paddingRight = `${Ae(d) + i}px`;
706
317
  });
707
318
  }
708
- let r;
709
- if (i.parentNode instanceof DocumentFragment)
710
- r = z(i).body;
319
+ let s;
320
+ if (r.parentNode instanceof DocumentFragment)
321
+ s = q(r).body;
711
322
  else {
712
- const a = i.parentElement, l = ne(i);
713
- r = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : i;
323
+ const i = r.parentElement, c = Q(r);
324
+ s = (i == null ? void 0 : i.nodeName) === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : r;
714
325
  }
715
326
  o.push({
716
- value: r.style.overflow,
327
+ value: s.style.overflow,
717
328
  property: "overflow",
718
- el: r
329
+ el: s
719
330
  }, {
720
- value: r.style.overflowX,
331
+ value: s.style.overflowX,
721
332
  property: "overflow-x",
722
- el: r
333
+ el: s
723
334
  }, {
724
- value: r.style.overflowY,
335
+ value: s.style.overflowY,
725
336
  property: "overflow-y",
726
- el: r
727
- }), r.style.overflow = "hidden";
337
+ el: s
338
+ }), s.style.overflow = "hidden";
728
339
  }
729
340
  return () => {
730
341
  o.forEach(({
731
- value: r,
732
- el: a,
733
- property: l
342
+ value: s,
343
+ el: i,
344
+ property: c
734
345
  }) => {
735
- r ? a.style.setProperty(l, r) : a.style.removeProperty(l);
346
+ s ? i.style.setProperty(c, s) : i.style.removeProperty(c);
736
347
  });
737
348
  };
738
349
  }
739
- function Qt(t) {
350
+ function Mt(t) {
740
351
  const n = [];
741
352
  return [].forEach.call(t.children, (o) => {
742
353
  o.getAttribute("aria-hidden") === "true" && n.push(o);
743
354
  }), n;
744
355
  }
745
- class Zt {
356
+ class kt {
746
357
  constructor() {
747
358
  this.modals = [], this.containers = [];
748
359
  }
749
360
  add(n, o) {
750
- let i = this.modals.indexOf(n);
751
- if (i !== -1)
752
- return i;
753
- i = this.modals.length, this.modals.push(n), n.modalRef && be(n.modalRef, !1);
754
- const s = Qt(o);
755
- Qe(o, n.mount, n.modalRef, s, !0);
756
- const r = je(this.containers, (a) => a.container === o);
757
- return r !== -1 ? (this.containers[r].modals.push(n), i) : (this.containers.push({
361
+ let r = this.modals.indexOf(n);
362
+ if (r !== -1)
363
+ return r;
364
+ r = this.modals.length, this.modals.push(n), n.modalRef && ie(n.modalRef, !1);
365
+ const a = Mt(o);
366
+ Ve(o, n.mount, n.modalRef, a, !0);
367
+ const s = Oe(this.containers, (i) => i.container === o);
368
+ return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
758
369
  modals: [n],
759
370
  container: o,
760
371
  restore: null,
761
- hiddenSiblings: s
762
- }), i);
372
+ hiddenSiblings: a
373
+ }), r);
763
374
  }
764
375
  mount(n, o) {
765
- const i = je(this.containers, (r) => r.modals.includes(n)), s = this.containers[i];
766
- s.restore || (s.restore = Jt(s, o));
376
+ const r = Oe(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
377
+ a.restore || (a.restore = Ct(a, o));
767
378
  }
768
379
  remove(n, o = !0) {
769
- const i = this.modals.indexOf(n);
770
- if (i === -1)
771
- return i;
772
- const s = je(this.containers, (a) => a.modals.includes(n)), r = this.containers[s];
773
- if (r.modals.splice(r.modals.indexOf(n), 1), this.modals.splice(i, 1), r.modals.length === 0)
774
- r.restore && r.restore(), n.modalRef && be(n.modalRef, o), Qe(r.container, n.mount, n.modalRef, r.hiddenSiblings, !1), this.containers.splice(s, 1);
380
+ const r = this.modals.indexOf(n);
381
+ if (r === -1)
382
+ return r;
383
+ const a = Oe(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
384
+ if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
385
+ 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);
775
386
  else {
776
- const a = r.modals[r.modals.length - 1];
777
- a.modalRef && be(a.modalRef, !1);
387
+ const i = s.modals[s.modals.length - 1];
388
+ i.modalRef && ie(i.modalRef, !1);
778
389
  }
779
- return i;
390
+ return r;
780
391
  }
781
392
  isTopModal(n) {
782
393
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
783
394
  }
784
395
  }
785
- const en = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
786
- function tn(t) {
396
+ const St = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
397
+ function jt(t) {
787
398
  const n = parseInt(t.getAttribute("tabindex") || "", 10);
788
399
  return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
789
400
  }
790
- function nn(t) {
401
+ function It(t) {
791
402
  if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
792
403
  return !1;
793
- const n = (i) => t.ownerDocument.querySelector(`input[type="radio"]${i}`);
404
+ const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
794
405
  let o = n(`[name="${t.name}"]:checked`);
795
406
  return o || (o = n(`[name="${t.name}"]`)), o !== t;
796
407
  }
797
- function on(t) {
798
- return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || nn(t));
408
+ function Ft(t) {
409
+ return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || It(t));
799
410
  }
800
- function rn(t) {
411
+ function Dt(t) {
801
412
  const n = [], o = [];
802
- return Array.from(t.querySelectorAll(en)).forEach((i, s) => {
803
- const r = tn(i);
804
- r === -1 || !on(i) || (r === 0 ? n.push(i) : o.push({
805
- documentOrder: s,
806
- tabIndex: r,
807
- node: i
413
+ return Array.from(t.querySelectorAll(St)).forEach((r, a) => {
414
+ const s = jt(r);
415
+ s === -1 || !Ft(r) || (s === 0 ? n.push(r) : o.push({
416
+ documentOrder: a,
417
+ tabIndex: s,
418
+ node: r
808
419
  }));
809
- }), o.sort((i, s) => i.tabIndex === s.tabIndex ? i.documentOrder - s.documentOrder : i.tabIndex - s.tabIndex).map((i) => i.node).concat(n);
420
+ }), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
810
421
  }
811
- function sn() {
422
+ function Lt() {
812
423
  return !0;
813
424
  }
814
- function Oe(t) {
425
+ function ge(t) {
815
426
  const {
816
427
  children: n,
817
428
  disableAutoFocus: o = !1,
818
- disableEnforceFocus: i = !1,
819
- disableRestoreFocus: s = !1,
820
- getTabbable: r = rn,
821
- isEnabled: a = sn,
822
- open: l
823
- } = t, c = p.useRef(!1), b = p.useRef(null), T = p.useRef(null), v = p.useRef(null), N = p.useRef(null), m = p.useRef(!1), E = p.useRef(null), I = oe(Se(n), E), C = p.useRef(null);
824
- p.useEffect(() => {
825
- !l || !E.current || (m.current = !o);
826
- }, [o, l]), p.useEffect(() => {
827
- if (!l || !E.current)
429
+ disableEnforceFocus: r = !1,
430
+ disableRestoreFocus: a = !1,
431
+ getTabbable: s = Dt,
432
+ isEnabled: i = Lt,
433
+ open: c
434
+ } = 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);
435
+ u.useEffect(() => {
436
+ !c || !b.current || (h.current = !o);
437
+ }, [o, c]), u.useEffect(() => {
438
+ if (!c || !b.current)
828
439
  return;
829
- const u = z(E.current);
830
- return E.current.contains(u.activeElement) || (E.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(`
831
- `)), E.current.setAttribute("tabIndex", "-1")), m.current && E.current.focus()), () => {
832
- s || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null);
440
+ const l = q(b.current);
441
+ 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(`
442
+ `)), b.current.setAttribute("tabIndex", "-1")), h.current && b.current.focus()), () => {
443
+ a || (x.current && x.current.focus && (d.current = !0, x.current.focus()), x.current = null);
833
444
  };
834
- }, [l]), p.useEffect(() => {
835
- if (!l || !E.current)
445
+ }, [c]), u.useEffect(() => {
446
+ if (!c || !b.current)
836
447
  return;
837
- const u = z(E.current), f = (O) => {
838
- C.current = O, !(i || !a() || O.key !== "Tab") && u.activeElement === E.current && O.shiftKey && (c.current = !0, T.current && T.current.focus());
448
+ const l = q(b.current), f = (R) => {
449
+ M.current = R, !(r || !i() || R.key !== "Tab") && l.activeElement === b.current && R.shiftKey && (d.current = !0, w.current && w.current.focus());
839
450
  }, y = () => {
840
- var M, $;
841
- const O = E.current;
842
- if (O === null)
451
+ var S, V;
452
+ const R = b.current;
453
+ if (R === null)
843
454
  return;
844
- if (!u.hasFocus() || !a() || c.current) {
845
- c.current = !1;
455
+ if (!l.hasFocus() || !i() || d.current) {
456
+ d.current = !1;
846
457
  return;
847
458
  }
848
- if (O.contains(u.activeElement) || i && u.activeElement !== b.current && u.activeElement !== T.current)
459
+ if (R.contains(l.activeElement) || r && l.activeElement !== T.current && l.activeElement !== w.current)
849
460
  return;
850
- if (u.activeElement !== N.current)
851
- N.current = null;
852
- else if (N.current !== null)
461
+ if (l.activeElement !== C.current)
462
+ C.current = null;
463
+ else if (C.current !== null)
853
464
  return;
854
- if (!m.current)
465
+ if (!h.current)
855
466
  return;
856
- let x = [];
857
- if ((u.activeElement === b.current || u.activeElement === T.current) && (x = r(E.current)), x.length > 0) {
858
- const A = !!((M = C.current) != null && M.shiftKey && (($ = C.current) == null ? void 0 : $.key) === "Tab"), _ = x[0], q = x[x.length - 1];
859
- typeof _ != "string" && typeof q != "string" && (A ? q.focus() : _.focus());
467
+ let E = [];
468
+ if ((l.activeElement === T.current || l.activeElement === w.current) && (E = s(b.current)), E.length > 0) {
469
+ const L = !!((S = M.current) != null && S.shiftKey && ((V = M.current) == null ? void 0 : V.key) === "Tab"), $ = E[0], U = E[E.length - 1];
470
+ typeof $ != "string" && typeof U != "string" && (L ? U.focus() : $.focus());
860
471
  } else
861
- O.focus();
472
+ R.focus();
862
473
  };
863
- u.addEventListener("focusin", y), u.addEventListener("keydown", f, !0);
864
- const S = setInterval(() => {
865
- u.activeElement && u.activeElement.tagName === "BODY" && y();
474
+ l.addEventListener("focusin", y), l.addEventListener("keydown", f, !0);
475
+ const N = setInterval(() => {
476
+ l.activeElement && l.activeElement.tagName === "BODY" && y();
866
477
  }, 50);
867
478
  return () => {
868
- clearInterval(S), u.removeEventListener("focusin", y), u.removeEventListener("keydown", f, !0);
479
+ clearInterval(N), l.removeEventListener("focusin", y), l.removeEventListener("keydown", f, !0);
869
480
  };
870
- }, [o, i, s, a, l, r]);
871
- const g = (u) => {
872
- v.current === null && (v.current = u.relatedTarget), m.current = !0, N.current = u.target;
481
+ }, [o, r, a, i, c, s]);
482
+ const g = (l) => {
483
+ x.current === null && (x.current = l.relatedTarget), h.current = !0, C.current = l.target;
873
484
  const f = n.props.onFocus;
874
- f && f(u);
875
- }, w = (u) => {
876
- v.current === null && (v.current = u.relatedTarget), m.current = !0;
485
+ f && f(l);
486
+ }, O = (l) => {
487
+ x.current === null && (x.current = l.relatedTarget), h.current = !0;
877
488
  };
878
- return /* @__PURE__ */ L.jsxs(p.Fragment, {
879
- children: [/* @__PURE__ */ L.jsx("div", {
880
- tabIndex: l ? 0 : -1,
881
- onFocus: w,
882
- ref: b,
489
+ return /* @__PURE__ */ A.jsxs(u.Fragment, {
490
+ children: [/* @__PURE__ */ A.jsx("div", {
491
+ tabIndex: c ? 0 : -1,
492
+ onFocus: O,
493
+ ref: T,
883
494
  "data-testid": "sentinelStart"
884
- }), /* @__PURE__ */ p.cloneElement(n, {
495
+ }), /* @__PURE__ */ u.cloneElement(n, {
885
496
  ref: I,
886
497
  onFocus: g
887
- }), /* @__PURE__ */ L.jsx("div", {
888
- tabIndex: l ? 0 : -1,
889
- onFocus: w,
890
- ref: T,
498
+ }), /* @__PURE__ */ A.jsx("div", {
499
+ tabIndex: c ? 0 : -1,
500
+ onFocus: O,
501
+ ref: w,
891
502
  "data-testid": "sentinelEnd"
892
503
  })]
893
504
  });
894
505
  }
895
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
506
+ process.env.NODE_ENV !== "production" && (ge.propTypes = {
896
507
  // ┌────────────────────────────── Warning ──────────────────────────────┐
897
508
  // │ These PropTypes are generated from the TypeScript type definitions. │
898
509
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -900,7 +511,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
900
511
  /**
901
512
  * A single child content element.
902
513
  */
903
- children: ge,
514
+ children: de,
904
515
  /**
905
516
  * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
906
517
  * replace it to the last focused element when it closes.
@@ -946,35 +557,35 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
946
557
  */
947
558
  open: e.bool.isRequired
948
559
  });
949
- process.env.NODE_ENV !== "production" && (Oe.propTypes = at(Oe.propTypes));
950
- function an(t) {
560
+ process.env.NODE_ENV !== "production" && (ge.propTypes = Ge(ge.propTypes));
561
+ function At(t) {
951
562
  return typeof t == "function" ? t() : t;
952
563
  }
953
- const Ne = /* @__PURE__ */ p.forwardRef(function(n, o) {
564
+ const ye = /* @__PURE__ */ u.forwardRef(function(n, o) {
954
565
  const {
955
- children: i,
956
- container: s,
957
- disablePortal: r = !1
958
- } = n, [a, l] = p.useState(null), c = oe(/* @__PURE__ */ p.isValidElement(i) ? Se(i) : null, o);
959
- if (Le(() => {
960
- r || l(an(s) || document.body);
961
- }, [s, r]), Le(() => {
962
- if (a && !r)
963
- return Xe(o, a), () => {
964
- Xe(o, null);
566
+ children: r,
567
+ container: a,
568
+ disablePortal: s = !1
569
+ } = n, [i, c] = u.useState(null), d = Z(/* @__PURE__ */ u.isValidElement(r) ? Ee(r) : null, o);
570
+ if (Ne(() => {
571
+ s || c(At(a) || document.body);
572
+ }, [a, s]), Ne(() => {
573
+ if (i && !s)
574
+ return Le(o, i), () => {
575
+ Le(o, null);
965
576
  };
966
- }, [o, a, r]), r) {
967
- if (/* @__PURE__ */ p.isValidElement(i)) {
968
- const b = {
969
- ref: c
577
+ }, [o, i, s]), s) {
578
+ if (/* @__PURE__ */ u.isValidElement(r)) {
579
+ const T = {
580
+ ref: d
970
581
  };
971
- return /* @__PURE__ */ p.cloneElement(i, b);
582
+ return /* @__PURE__ */ u.cloneElement(r, T);
972
583
  }
973
- return i;
584
+ return r;
974
585
  }
975
- return a && /* @__PURE__ */ $t.createPortal(i, a);
586
+ return i && /* @__PURE__ */ yt.createPortal(r, i);
976
587
  });
977
- process.env.NODE_ENV !== "production" && (Ne.propTypes = {
588
+ process.env.NODE_ENV !== "production" && (ye.propTypes = {
978
589
  // ┌────────────────────────────── Warning ──────────────────────────────┐
979
590
  // │ These PropTypes are generated from the TypeScript type definitions. │
980
591
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -993,99 +604,99 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
993
604
  * By default, it uses the body of the top-level document object,
994
605
  * so it's simply `document.body` most of the time.
995
606
  */
996
- container: e.oneOfType([Ee, e.func]),
607
+ container: e.oneOfType([ae, e.func]),
997
608
  /**
998
609
  * The `children` will be under the DOM hierarchy of the parent component.
999
610
  * @default false
1000
611
  */
1001
612
  disablePortal: e.bool
1002
613
  });
1003
- process.env.NODE_ENV !== "production" && (Ne.propTypes = at(Ne.propTypes));
1004
- const ln = {
614
+ process.env.NODE_ENV !== "production" && (ye.propTypes = Ge(ye.propTypes));
615
+ const Vt = {
1005
616
  entering: {
1006
617
  opacity: 1
1007
618
  },
1008
619
  entered: {
1009
620
  opacity: 1
1010
621
  }
1011
- }, mt = /* @__PURE__ */ p.forwardRef(function(n, o) {
1012
- const i = _e(), s = {
1013
- enter: i.transitions.duration.enteringScreen,
1014
- exit: i.transitions.duration.leavingScreen
622
+ }, Je = /* @__PURE__ */ u.forwardRef(function(n, o) {
623
+ const r = qe(), a = {
624
+ enter: r.transitions.duration.enteringScreen,
625
+ exit: r.transitions.duration.leavingScreen
1015
626
  }, {
1016
- addEndListener: r,
1017
- appear: a = !0,
1018
- children: l,
1019
- easing: c,
1020
- in: b,
1021
- onEnter: T,
1022
- onEntered: v,
1023
- onEntering: N,
1024
- onExit: m,
1025
- onExited: E,
627
+ addEndListener: s,
628
+ appear: i = !0,
629
+ children: c,
630
+ easing: d,
631
+ in: T,
632
+ onEnter: w,
633
+ onEntered: x,
634
+ onEntering: C,
635
+ onExit: h,
636
+ onExited: b,
1026
637
  onExiting: I,
1027
- style: C,
1028
- timeout: g = s,
638
+ style: M,
639
+ timeout: g = a,
1029
640
  // eslint-disable-next-line react/prop-types
1030
- TransitionComponent: w = G,
1031
- ...u
1032
- } = n, f = p.useRef(null), y = oe(f, Se(l), o), S = (k) => (d) => {
641
+ TransitionComponent: O = ze,
642
+ ...l
643
+ } = n, f = u.useRef(null), y = Z(f, Ee(c), o), N = (k) => (p) => {
1033
644
  if (k) {
1034
- const h = f.current;
1035
- d === void 0 ? k(h) : k(h, d);
645
+ const m = f.current;
646
+ p === void 0 ? k(m) : k(m, p);
1036
647
  }
1037
- }, O = S(N), x = S((k, d) => {
1038
- dt(k);
1039
- const h = Pe({
1040
- style: C,
648
+ }, R = N(C), E = N((k, p) => {
649
+ We(k);
650
+ const m = he({
651
+ style: M,
1041
652
  timeout: g,
1042
- easing: c
653
+ easing: d
1043
654
  }, {
1044
655
  mode: "enter"
1045
656
  });
1046
- k.style.webkitTransition = i.transitions.create("opacity", h), k.style.transition = i.transitions.create("opacity", h), T && T(k, d);
1047
- }), M = S(v), $ = S(I), A = S((k) => {
1048
- const d = Pe({
1049
- style: C,
657
+ k.style.webkitTransition = r.transitions.create("opacity", m), k.style.transition = r.transitions.create("opacity", m), w && w(k, p);
658
+ }), S = N(x), V = N(I), L = N((k) => {
659
+ const p = he({
660
+ style: M,
1050
661
  timeout: g,
1051
- easing: c
662
+ easing: d
1052
663
  }, {
1053
664
  mode: "exit"
1054
665
  });
1055
- k.style.webkitTransition = i.transitions.create("opacity", d), k.style.transition = i.transitions.create("opacity", d), m && m(k);
1056
- }), _ = S(E), q = (k) => {
1057
- r && r(f.current, k);
666
+ k.style.webkitTransition = r.transitions.create("opacity", p), k.style.transition = r.transitions.create("opacity", p), h && h(k);
667
+ }), $ = N(b), U = (k) => {
668
+ s && s(f.current, k);
1058
669
  };
1059
- return /* @__PURE__ */ L.jsx(w, {
1060
- appear: a,
1061
- in: b,
670
+ return /* @__PURE__ */ A.jsx(O, {
671
+ appear: i,
672
+ in: T,
1062
673
  nodeRef: f,
1063
- onEnter: x,
1064
- onEntered: M,
1065
- onEntering: O,
1066
- onExit: A,
1067
- onExited: _,
1068
- onExiting: $,
1069
- addEndListener: q,
674
+ onEnter: E,
675
+ onEntered: S,
676
+ onEntering: R,
677
+ onExit: L,
678
+ onExited: $,
679
+ onExiting: V,
680
+ addEndListener: U,
1070
681
  timeout: g,
1071
- ...u,
682
+ ...l,
1072
683
  children: (k, {
1073
- ownerState: d,
1074
- ...h
1075
- }) => /* @__PURE__ */ p.cloneElement(l, {
684
+ ownerState: p,
685
+ ...m
686
+ }) => /* @__PURE__ */ u.cloneElement(c, {
1076
687
  style: {
1077
688
  opacity: 0,
1078
- visibility: k === "exited" && !b ? "hidden" : void 0,
1079
- ...ln[k],
1080
- ...C,
1081
- ...l.props.style
689
+ visibility: k === "exited" && !T ? "hidden" : void 0,
690
+ ...Vt[k],
691
+ ...M,
692
+ ...c.props.style
1082
693
  },
1083
694
  ref: y,
1084
- ...h
695
+ ...m
1085
696
  })
1086
697
  });
1087
698
  });
1088
- process.env.NODE_ENV !== "production" && (mt.propTypes = {
699
+ process.env.NODE_ENV !== "production" && (Je.propTypes = {
1089
700
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1090
701
  // │ These PropTypes are generated from the TypeScript type definitions. │
1091
702
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1105,7 +716,7 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
1105
716
  /**
1106
717
  * A single child content element.
1107
718
  */
1108
- children: ge.isRequired,
719
+ children: de.isRequired,
1109
720
  /**
1110
721
  * The transition timing function.
1111
722
  * You may specify a single easing or a object containing enter and exit values.
@@ -1160,19 +771,19 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
1160
771
  exit: e.number
1161
772
  })])
1162
773
  });
1163
- function cn(t) {
774
+ function Kt(t) {
1164
775
  return ue("MuiBackdrop", t);
1165
776
  }
1166
777
  pe("MuiBackdrop", ["root", "invisible"]);
1167
- const un = (t) => {
778
+ const $t = (t) => {
1168
779
  const {
1169
780
  classes: n,
1170
781
  invisible: o
1171
782
  } = t;
1172
- return ce({
783
+ return le({
1173
784
  root: ["root", o && "invisible"]
1174
- }, cn, n);
1175
- }, pn = W("div", {
785
+ }, Kt, n);
786
+ }, Bt = G("div", {
1176
787
  name: "MuiBackdrop",
1177
788
  slot: "Root",
1178
789
  overridesResolver: (t, n) => {
@@ -1200,63 +811,63 @@ const un = (t) => {
1200
811
  backgroundColor: "transparent"
1201
812
  }
1202
813
  }]
1203
- }), ht = /* @__PURE__ */ p.forwardRef(function(n, o) {
1204
- const i = le({
814
+ }), Qe = /* @__PURE__ */ u.forwardRef(function(n, o) {
815
+ const r = ce({
1205
816
  props: n,
1206
817
  name: "MuiBackdrop"
1207
818
  }), {
1208
- children: s,
1209
- className: r,
1210
- component: a = "div",
1211
- invisible: l = !1,
1212
- open: c,
1213
- components: b = {},
1214
- componentsProps: T = {},
1215
- slotProps: v = {},
1216
- slots: N = {},
1217
- TransitionComponent: m,
1218
- transitionDuration: E,
819
+ children: a,
820
+ className: s,
821
+ component: i = "div",
822
+ invisible: c = !1,
823
+ open: d,
824
+ components: T = {},
825
+ componentsProps: w = {},
826
+ slotProps: x = {},
827
+ slots: C = {},
828
+ TransitionComponent: h,
829
+ transitionDuration: b,
1219
830
  ...I
1220
- } = i, C = {
1221
- ...i,
1222
- component: a,
1223
- invisible: l
1224
- }, g = un(C), w = {
1225
- transition: m,
1226
- root: b.Root,
1227
- ...N
1228
- }, u = {
1229
- ...T,
1230
- ...v
831
+ } = r, M = {
832
+ ...r,
833
+ component: i,
834
+ invisible: c
835
+ }, g = $t(M), O = {
836
+ transition: h,
837
+ root: T.Root,
838
+ ...C
839
+ }, l = {
840
+ ...w,
841
+ ...x
1231
842
  }, f = {
1232
- component: a,
1233
- slots: w,
1234
- slotProps: u
1235
- }, [y, S] = X("root", {
1236
- elementType: pn,
843
+ component: i,
844
+ slots: O,
845
+ slotProps: l
846
+ }, [y, N] = W("root", {
847
+ elementType: Bt,
1237
848
  externalForwardedProps: f,
1238
- className: te(g.root, r),
1239
- ownerState: C
1240
- }), [O, x] = X("transition", {
1241
- elementType: mt,
849
+ className: ne(g.root, s),
850
+ ownerState: M
851
+ }), [R, E] = W("transition", {
852
+ elementType: Je,
1242
853
  externalForwardedProps: f,
1243
- ownerState: C
854
+ ownerState: M
1244
855
  });
1245
- return /* @__PURE__ */ L.jsx(O, {
1246
- in: c,
1247
- timeout: E,
856
+ return /* @__PURE__ */ A.jsx(R, {
857
+ in: d,
858
+ timeout: b,
1248
859
  ...I,
1249
- ...x,
1250
- children: /* @__PURE__ */ L.jsx(y, {
860
+ ...E,
861
+ children: /* @__PURE__ */ A.jsx(y, {
1251
862
  "aria-hidden": !0,
1252
- ...S,
863
+ ...N,
1253
864
  classes: g,
1254
865
  ref: o,
1255
- children: s
866
+ children: a
1256
867
  })
1257
868
  });
1258
869
  });
1259
- process.env.NODE_ENV !== "production" && (ht.propTypes = {
870
+ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
1260
871
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1261
872
  // │ These PropTypes are generated from the TypeScript type definitions. │
1262
873
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1346,61 +957,61 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
1346
957
  exit: e.number
1347
958
  })])
1348
959
  });
1349
- function dn(t) {
960
+ function Ut(t) {
1350
961
  return typeof t == "function" ? t() : t;
1351
962
  }
1352
- function fn(t) {
963
+ function _t(t) {
1353
964
  return t ? t.props.hasOwnProperty("in") : !1;
1354
965
  }
1355
- const Ze = () => {
1356
- }, xe = new Zt();
1357
- function mn(t) {
966
+ const Ke = () => {
967
+ }, me = new kt();
968
+ function Ht(t) {
1358
969
  const {
1359
970
  container: n,
1360
971
  disableEscapeKeyDown: o = !1,
1361
- disableScrollLock: i = !1,
1362
- closeAfterTransition: s = !1,
1363
- onTransitionEnter: r,
1364
- onTransitionExited: a,
1365
- children: l,
1366
- onClose: c,
1367
- open: b,
1368
- rootRef: T
1369
- } = t, v = p.useRef({}), N = p.useRef(null), m = p.useRef(null), E = oe(m, T), [I, C] = p.useState(!b), g = fn(l);
1370
- let w = !0;
1371
- (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (w = !1);
1372
- const u = () => z(N.current), f = () => (v.current.modalRef = m.current, v.current.mount = N.current, v.current), y = () => {
1373
- xe.mount(f(), {
1374
- disableScrollLock: i
1375
- }), m.current && (m.current.scrollTop = 0);
1376
- }, S = We(() => {
1377
- const d = dn(n) || u().body;
1378
- xe.add(f(), d), m.current && y();
1379
- }), O = () => xe.isTopModal(f()), x = We((d) => {
1380
- N.current = d, d && (b && O() ? y() : m.current && be(m.current, w));
1381
- }), M = p.useCallback(() => {
1382
- xe.remove(f(), w);
1383
- }, [w]);
1384
- p.useEffect(() => () => {
1385
- M();
1386
- }, [M]), p.useEffect(() => {
1387
- b ? S() : (!g || !s) && M();
1388
- }, [b, M, g, s, S]);
1389
- const $ = (d) => (h) => {
1390
- var j;
1391
- (j = d.onKeyDown) == null || j.call(d, h), !(h.key !== "Escape" || h.which === 229 || // Wait until IME is settled.
1392
- !O()) && (o || (h.stopPropagation(), c && c(h, "escapeKeyDown")));
1393
- }, A = (d) => (h) => {
1394
- var j;
1395
- (j = d.onClick) == null || j.call(d, h), h.target === h.currentTarget && c && c(h, "backdropClick");
972
+ disableScrollLock: r = !1,
973
+ closeAfterTransition: a = !1,
974
+ onTransitionEnter: s,
975
+ onTransitionExited: i,
976
+ children: c,
977
+ onClose: d,
978
+ open: T,
979
+ rootRef: w
980
+ } = t, x = u.useRef({}), C = u.useRef(null), h = u.useRef(null), b = Z(h, w), [I, M] = u.useState(!T), g = _t(c);
981
+ let O = !0;
982
+ (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (O = !1);
983
+ const l = () => q(C.current), f = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), y = () => {
984
+ me.mount(f(), {
985
+ disableScrollLock: r
986
+ }), h.current && (h.current.scrollTop = 0);
987
+ }, N = Fe(() => {
988
+ const p = Ut(n) || l().body;
989
+ me.add(f(), p), h.current && y();
990
+ }), R = () => me.isTopModal(f()), E = Fe((p) => {
991
+ C.current = p, p && (T && R() ? y() : h.current && ie(h.current, O));
992
+ }), S = u.useCallback(() => {
993
+ me.remove(f(), O);
994
+ }, [O]);
995
+ u.useEffect(() => () => {
996
+ S();
997
+ }, [S]), u.useEffect(() => {
998
+ T ? N() : (!g || !a) && S();
999
+ }, [T, S, g, a, N]);
1000
+ const V = (p) => (m) => {
1001
+ var F;
1002
+ (F = p.onKeyDown) == null || F.call(p, m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
1003
+ !R()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
1004
+ }, L = (p) => (m) => {
1005
+ var F;
1006
+ (F = p.onClick) == null || F.call(p, m), m.target === m.currentTarget && d && d(m, "backdropClick");
1396
1007
  };
1397
1008
  return {
1398
- getRootProps: (d = {}) => {
1399
- const h = Nt(t);
1400
- delete h.onTransitionEnter, delete h.onTransitionExited;
1401
- const j = {
1402
- ...h,
1403
- ...d
1009
+ getRootProps: (p = {}) => {
1010
+ const m = lt(t);
1011
+ delete m.onTransitionEnter, delete m.onTransitionExited;
1012
+ const F = {
1013
+ ...m,
1014
+ ...p
1404
1015
  };
1405
1016
  return {
1406
1017
  /*
@@ -1410,53 +1021,53 @@ function mn(t) {
1410
1021
  * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
1411
1022
  */
1412
1023
  role: "presentation",
1413
- ...j,
1414
- onKeyDown: $(j),
1415
- ref: E
1024
+ ...F,
1025
+ onKeyDown: V(F),
1026
+ ref: b
1416
1027
  };
1417
1028
  },
1418
- getBackdropProps: (d = {}) => {
1419
- const h = d;
1029
+ getBackdropProps: (p = {}) => {
1030
+ const m = p;
1420
1031
  return {
1421
1032
  "aria-hidden": !0,
1422
- ...h,
1423
- onClick: A(h),
1424
- open: b
1033
+ ...m,
1034
+ onClick: L(m),
1035
+ open: T
1425
1036
  };
1426
1037
  },
1427
1038
  getTransitionProps: () => {
1428
- const d = () => {
1429
- C(!1), r && r();
1430
- }, h = () => {
1431
- C(!0), a && a(), s && M();
1039
+ const p = () => {
1040
+ M(!1), s && s();
1041
+ }, m = () => {
1042
+ M(!0), i && i(), a && S();
1432
1043
  };
1433
1044
  return {
1434
- onEnter: Ge(d, (l == null ? void 0 : l.props.onEnter) ?? Ze),
1435
- onExited: Ge(h, (l == null ? void 0 : l.props.onExited) ?? Ze)
1045
+ onEnter: De(p, (c == null ? void 0 : c.props.onEnter) ?? Ke),
1046
+ onExited: De(m, (c == null ? void 0 : c.props.onExited) ?? Ke)
1436
1047
  };
1437
1048
  },
1438
- rootRef: E,
1439
- portalRef: x,
1440
- isTopModal: O,
1049
+ rootRef: b,
1050
+ portalRef: E,
1051
+ isTopModal: R,
1441
1052
  exited: I,
1442
1053
  hasTransition: g
1443
1054
  };
1444
1055
  }
1445
- function hn(t) {
1056
+ function zt(t) {
1446
1057
  return ue("MuiModal", t);
1447
1058
  }
1448
1059
  pe("MuiModal", ["root", "hidden", "backdrop"]);
1449
- const bn = (t) => {
1060
+ const qt = (t) => {
1450
1061
  const {
1451
1062
  open: n,
1452
1063
  exited: o,
1453
- classes: i
1064
+ classes: r
1454
1065
  } = t;
1455
- return ce({
1066
+ return le({
1456
1067
  root: ["root", !n && o && "hidden"],
1457
1068
  backdrop: ["backdrop"]
1458
- }, hn, i);
1459
- }, En = W("div", {
1069
+ }, zt, r);
1070
+ }, Wt = G("div", {
1460
1071
  name: "MuiModal",
1461
1072
  slot: "Root",
1462
1073
  overridesResolver: (t, n) => {
@@ -1482,132 +1093,132 @@ const bn = (t) => {
1482
1093
  visibility: "hidden"
1483
1094
  }
1484
1095
  }]
1485
- }))), gn = W(ht, {
1096
+ }))), Gt = G(Qe, {
1486
1097
  name: "MuiModal",
1487
1098
  slot: "Backdrop"
1488
1099
  })({
1489
1100
  zIndex: -1
1490
- }), bt = /* @__PURE__ */ p.forwardRef(function(n, o) {
1491
- const i = le({
1101
+ }), Ze = /* @__PURE__ */ u.forwardRef(function(n, o) {
1102
+ const r = ce({
1492
1103
  name: "MuiModal",
1493
1104
  props: n
1494
1105
  }), {
1495
- BackdropComponent: s = gn,
1496
- BackdropProps: r,
1497
- classes: a,
1498
- className: l,
1499
- closeAfterTransition: c = !1,
1500
- children: b,
1501
- container: T,
1502
- component: v,
1503
- components: N = {},
1504
- componentsProps: m = {},
1505
- disableAutoFocus: E = !1,
1106
+ BackdropComponent: a = Gt,
1107
+ BackdropProps: s,
1108
+ classes: i,
1109
+ className: c,
1110
+ closeAfterTransition: d = !1,
1111
+ children: T,
1112
+ container: w,
1113
+ component: x,
1114
+ components: C = {},
1115
+ componentsProps: h = {},
1116
+ disableAutoFocus: b = !1,
1506
1117
  disableEnforceFocus: I = !1,
1507
- disableEscapeKeyDown: C = !1,
1118
+ disableEscapeKeyDown: M = !1,
1508
1119
  disablePortal: g = !1,
1509
- disableRestoreFocus: w = !1,
1510
- disableScrollLock: u = !1,
1120
+ disableRestoreFocus: O = !1,
1121
+ disableScrollLock: l = !1,
1511
1122
  hideBackdrop: f = !1,
1512
1123
  keepMounted: y = !1,
1513
- onClose: S,
1514
- onTransitionEnter: O,
1515
- onTransitionExited: x,
1516
- open: M,
1517
- slotProps: $ = {},
1518
- slots: A = {},
1124
+ onClose: N,
1125
+ onTransitionEnter: R,
1126
+ onTransitionExited: E,
1127
+ open: S,
1128
+ slotProps: V = {},
1129
+ slots: L = {},
1519
1130
  // eslint-disable-next-line react/prop-types
1520
- theme: _,
1521
- ...q
1522
- } = i, k = {
1523
- ...i,
1524
- closeAfterTransition: c,
1525
- disableAutoFocus: E,
1131
+ theme: $,
1132
+ ...U
1133
+ } = r, k = {
1134
+ ...r,
1135
+ closeAfterTransition: d,
1136
+ disableAutoFocus: b,
1526
1137
  disableEnforceFocus: I,
1527
- disableEscapeKeyDown: C,
1138
+ disableEscapeKeyDown: M,
1528
1139
  disablePortal: g,
1529
- disableRestoreFocus: w,
1530
- disableScrollLock: u,
1140
+ disableRestoreFocus: O,
1141
+ disableScrollLock: l,
1531
1142
  hideBackdrop: f,
1532
1143
  keepMounted: y
1533
1144
  }, {
1534
- getRootProps: d,
1535
- getBackdropProps: h,
1536
- getTransitionProps: j,
1537
- portalRef: U,
1538
- isTopModal: R,
1539
- exited: F,
1145
+ getRootProps: p,
1146
+ getBackdropProps: m,
1147
+ getTransitionProps: F,
1148
+ portalRef: B,
1149
+ isTopModal: v,
1150
+ exited: D,
1540
1151
  hasTransition: Y
1541
- } = mn({
1152
+ } = Ht({
1542
1153
  ...k,
1543
1154
  rootRef: o
1544
- }), J = {
1155
+ }), X = {
1545
1156
  ...k,
1546
- exited: F
1547
- }, K = bn(J), Q = {};
1548
- if (b.props.tabIndex === void 0 && (Q.tabIndex = "-1"), Y) {
1157
+ exited: D
1158
+ }, _ = qt(X), J = {};
1159
+ if (T.props.tabIndex === void 0 && (J.tabIndex = "-1"), Y) {
1549
1160
  const {
1550
1161
  onEnter: P,
1551
- onExited: D
1552
- } = j();
1553
- Q.onEnter = P, Q.onExited = D;
1162
+ onExited: j
1163
+ } = F();
1164
+ J.onEnter = P, J.onExited = j;
1554
1165
  }
1555
- const ye = {
1166
+ const fe = {
1556
1167
  slots: {
1557
- root: N.Root,
1558
- backdrop: N.Backdrop,
1559
- ...A
1168
+ root: C.Root,
1169
+ backdrop: C.Backdrop,
1170
+ ...L
1560
1171
  },
1561
1172
  slotProps: {
1562
- ...m,
1563
- ...$
1173
+ ...h,
1174
+ ...V
1564
1175
  }
1565
- }, [Ce, ke] = X("root", {
1176
+ }, [Te, Pe] = W("root", {
1566
1177
  ref: o,
1567
- elementType: En,
1178
+ elementType: Wt,
1568
1179
  externalForwardedProps: {
1569
- ...ye,
1570
- ...q,
1571
- component: v
1180
+ ...fe,
1181
+ ...U,
1182
+ component: x
1572
1183
  },
1573
- getSlotProps: d,
1574
- ownerState: J,
1575
- className: te(l, K == null ? void 0 : K.root, !J.open && J.exited && (K == null ? void 0 : K.hidden))
1576
- }), [Me, De] = X("backdrop", {
1577
- ref: r == null ? void 0 : r.ref,
1578
- elementType: s,
1579
- externalForwardedProps: ye,
1184
+ getSlotProps: p,
1185
+ ownerState: X,
1186
+ className: ne(c, _ == null ? void 0 : _.root, !X.open && X.exited && (_ == null ? void 0 : _.hidden))
1187
+ }), [xe, ve] = W("backdrop", {
1188
+ ref: s == null ? void 0 : s.ref,
1189
+ elementType: a,
1190
+ externalForwardedProps: fe,
1580
1191
  shouldForwardComponentProp: !0,
1581
- additionalProps: r,
1582
- getSlotProps: (P) => h({
1192
+ additionalProps: s,
1193
+ getSlotProps: (P) => m({
1583
1194
  ...P,
1584
- onClick: (D) => {
1585
- P != null && P.onClick && P.onClick(D);
1195
+ onClick: (j) => {
1196
+ P != null && P.onClick && P.onClick(j);
1586
1197
  }
1587
1198
  }),
1588
- className: te(r == null ? void 0 : r.className, K == null ? void 0 : K.backdrop),
1589
- ownerState: J
1199
+ className: ne(s == null ? void 0 : s.className, _ == null ? void 0 : _.backdrop),
1200
+ ownerState: X
1590
1201
  });
1591
- return !y && !M && (!Y || F) ? null : /* @__PURE__ */ L.jsx(Ne, {
1592
- ref: U,
1593
- container: T,
1202
+ return !y && !S && (!Y || D) ? null : /* @__PURE__ */ A.jsx(ye, {
1203
+ ref: B,
1204
+ container: w,
1594
1205
  disablePortal: g,
1595
- children: /* @__PURE__ */ L.jsxs(Ce, {
1596
- ...ke,
1597
- children: [!f && s ? /* @__PURE__ */ L.jsx(Me, {
1598
- ...De
1599
- }) : null, /* @__PURE__ */ L.jsx(Oe, {
1206
+ children: /* @__PURE__ */ A.jsxs(Te, {
1207
+ ...Pe,
1208
+ children: [!f && a ? /* @__PURE__ */ A.jsx(xe, {
1209
+ ...ve
1210
+ }) : null, /* @__PURE__ */ A.jsx(ge, {
1600
1211
  disableEnforceFocus: I,
1601
- disableAutoFocus: E,
1602
- disableRestoreFocus: w,
1603
- isEnabled: R,
1604
- open: M,
1605
- children: /* @__PURE__ */ p.cloneElement(b, Q)
1212
+ disableAutoFocus: b,
1213
+ disableRestoreFocus: O,
1214
+ isEnabled: v,
1215
+ open: S,
1216
+ children: /* @__PURE__ */ u.cloneElement(T, J)
1606
1217
  })]
1607
1218
  })
1608
1219
  });
1609
1220
  });
1610
- process.env.NODE_ENV !== "production" && (bt.propTypes = {
1221
+ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1611
1222
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1612
1223
  // │ These PropTypes are generated from the TypeScript type definitions. │
1613
1224
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1632,7 +1243,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
1632
1243
  /**
1633
1244
  * A single child content element.
1634
1245
  */
1635
- children: ge.isRequired,
1246
+ children: de.isRequired,
1636
1247
  /**
1637
1248
  * Override or extend the styles applied to the component.
1638
1249
  */
@@ -1684,7 +1295,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
1684
1295
  * By default, it uses the body of the top-level document object,
1685
1296
  * so it's simply `document.body` most of the time.
1686
1297
  */
1687
- container: e.oneOfType([Ee, e.func]),
1298
+ container: e.oneOfType([ae, e.func]),
1688
1299
  /**
1689
1300
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
1690
1301
  * replace it to the last focused element when it closes.
@@ -1778,181 +1389,36 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
1778
1389
  */
1779
1390
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1780
1391
  });
1781
- function yn(t) {
1782
- return ue("MuiPaper", t);
1783
- }
1784
- pe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
1785
- const vn = (t) => {
1786
- const {
1787
- square: n,
1788
- elevation: o,
1789
- variant: i,
1790
- classes: s
1791
- } = t, r = {
1792
- root: ["root", i, !n && "rounded", i === "elevation" && `elevation${o}`]
1793
- };
1794
- return ce(r, yn, s);
1795
- }, Tn = W("div", {
1796
- name: "MuiPaper",
1797
- slot: "Root",
1798
- overridesResolver: (t, n) => {
1799
- const {
1800
- ownerState: o
1801
- } = t;
1802
- return [n.root, n[o.variant], !o.square && n.rounded, o.variant === "elevation" && n[`elevation${o.elevation}`]];
1803
- }
1804
- })(it(({
1805
- theme: t
1806
- }) => ({
1807
- backgroundColor: (t.vars || t).palette.background.paper,
1808
- color: (t.vars || t).palette.text.primary,
1809
- transition: t.transitions.create("box-shadow"),
1810
- variants: [{
1811
- props: ({
1812
- ownerState: n
1813
- }) => !n.square,
1814
- style: {
1815
- borderRadius: t.shape.borderRadius
1816
- }
1817
- }, {
1818
- props: {
1819
- variant: "outlined"
1820
- },
1821
- style: {
1822
- border: `1px solid ${(t.vars || t).palette.divider}`
1823
- }
1824
- }, {
1825
- props: {
1826
- variant: "elevation"
1827
- },
1828
- style: {
1829
- boxShadow: "var(--Paper-shadow)",
1830
- backgroundImage: "var(--Paper-overlay)"
1831
- }
1832
- }]
1833
- }))), Et = /* @__PURE__ */ p.forwardRef(function(n, o) {
1834
- var m;
1835
- const i = le({
1836
- props: n,
1837
- name: "MuiPaper"
1838
- }), s = _e(), {
1839
- className: r,
1840
- component: a = "div",
1841
- elevation: l = 1,
1842
- square: c = !1,
1843
- variant: b = "elevation",
1844
- ...T
1845
- } = i, v = {
1846
- ...i,
1847
- component: a,
1848
- elevation: l,
1849
- square: c,
1850
- variant: b
1851
- }, N = vn(v);
1852
- return process.env.NODE_ENV !== "production" && s.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
1853
- `)), /* @__PURE__ */ L.jsx(Tn, {
1854
- as: a,
1855
- ownerState: v,
1856
- className: te(N.root, r),
1857
- ref: o,
1858
- ...T,
1859
- style: {
1860
- ...b === "elevation" && {
1861
- "--Paper-shadow": (s.vars || s).shadows[l],
1862
- ...s.vars && {
1863
- "--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l]
1864
- },
1865
- ...!s.vars && s.palette.mode === "dark" && {
1866
- "--Paper-overlay": `linear-gradient(${ze("#fff", He(l))}, ${ze("#fff", He(l))})`
1867
- }
1868
- },
1869
- ...T.style
1870
- }
1871
- });
1872
- });
1873
- process.env.NODE_ENV !== "production" && (Et.propTypes = {
1874
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1875
- // │ These PropTypes are generated from the TypeScript type definitions. │
1876
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1877
- // └─────────────────────────────────────────────────────────────────────┘
1878
- /**
1879
- * The content of the component.
1880
- */
1881
- children: e.node,
1882
- /**
1883
- * Override or extend the styles applied to the component.
1884
- */
1885
- classes: e.object,
1886
- /**
1887
- * @ignore
1888
- */
1889
- className: e.string,
1890
- /**
1891
- * The component used for the root node.
1892
- * Either a string to use a HTML element or a component.
1893
- */
1894
- component: e.elementType,
1895
- /**
1896
- * Shadow depth, corresponds to `dp` in the spec.
1897
- * It accepts values between 0 and 24 inclusive.
1898
- * @default 1
1899
- */
1900
- elevation: we(ut, (t) => {
1901
- const {
1902
- elevation: n,
1903
- variant: o
1904
- } = t;
1905
- return n > 0 && o === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
1906
- }),
1907
- /**
1908
- * If `true`, rounded corners are disabled.
1909
- * @default false
1910
- */
1911
- square: e.bool,
1912
- /**
1913
- * @ignore
1914
- */
1915
- style: e.object,
1916
- /**
1917
- * The system prop that allows defining system overrides as well as additional CSS styles.
1918
- */
1919
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1920
- /**
1921
- * The variant to use.
1922
- * @default 'elevation'
1923
- */
1924
- variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
1925
- });
1926
- function xn(t) {
1392
+ function Yt(t) {
1927
1393
  return ue("MuiPopover", t);
1928
1394
  }
1929
1395
  pe("MuiPopover", ["root", "paper"]);
1930
- function et(t, n) {
1396
+ function $e(t, n) {
1931
1397
  let o = 0;
1932
1398
  return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
1933
1399
  }
1934
- function tt(t, n) {
1400
+ function Be(t, n) {
1935
1401
  let o = 0;
1936
1402
  return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
1937
1403
  }
1938
- function nt(t) {
1404
+ function Ue(t) {
1939
1405
  return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
1940
1406
  }
1941
- function he(t) {
1407
+ function se(t) {
1942
1408
  return typeof t == "function" ? t() : t;
1943
1409
  }
1944
- const Pn = (t) => {
1410
+ const Xt = (t) => {
1945
1411
  const {
1946
1412
  classes: n
1947
1413
  } = t;
1948
- return ce({
1414
+ return le({
1949
1415
  root: ["root"],
1950
1416
  paper: ["paper"]
1951
- }, xn, n);
1952
- }, Rn = W(bt, {
1417
+ }, Yt, n);
1418
+ }, Jt = G(Ze, {
1953
1419
  name: "MuiPopover",
1954
1420
  slot: "Root"
1955
- })({}), gt = W(Et, {
1421
+ })({}), et = G(ht, {
1956
1422
  name: "MuiPopover",
1957
1423
  slot: "Paper"
1958
1424
  })({
@@ -1967,219 +1433,219 @@ const Pn = (t) => {
1967
1433
  maxHeight: "calc(100% - 32px)",
1968
1434
  // We disable the focus ring for mouse, touch and keyboard users.
1969
1435
  outline: 0
1970
- }), yt = /* @__PURE__ */ p.forwardRef(function(n, o) {
1971
- const i = le({
1436
+ }), tt = /* @__PURE__ */ u.forwardRef(function(n, o) {
1437
+ const r = ce({
1972
1438
  props: n,
1973
1439
  name: "MuiPopover"
1974
1440
  }), {
1975
- action: s,
1976
- anchorEl: r,
1977
- anchorOrigin: a = {
1441
+ action: a,
1442
+ anchorEl: s,
1443
+ anchorOrigin: i = {
1978
1444
  vertical: "top",
1979
1445
  horizontal: "left"
1980
1446
  },
1981
- anchorPosition: l,
1982
- anchorReference: c = "anchorEl",
1983
- children: b,
1984
- className: T,
1985
- container: v,
1986
- elevation: N = 8,
1987
- marginThreshold: m = 16,
1988
- open: E,
1447
+ anchorPosition: c,
1448
+ anchorReference: d = "anchorEl",
1449
+ children: T,
1450
+ className: w,
1451
+ container: x,
1452
+ elevation: C = 8,
1453
+ marginThreshold: h = 16,
1454
+ open: b,
1989
1455
  PaperProps: I = {},
1990
1456
  // TODO: remove in v7
1991
- slots: C = {},
1457
+ slots: M = {},
1992
1458
  slotProps: g = {},
1993
- transformOrigin: w = {
1459
+ transformOrigin: O = {
1994
1460
  vertical: "top",
1995
1461
  horizontal: "left"
1996
1462
  },
1997
- TransitionComponent: u,
1463
+ TransitionComponent: l,
1998
1464
  // TODO: remove in v7
1999
1465
  transitionDuration: f = "auto",
2000
1466
  TransitionProps: y = {},
2001
1467
  // TODO: remove in v7
2002
- disableScrollLock: S = !1,
2003
- ...O
2004
- } = i, x = p.useRef(), M = {
2005
- ...i,
2006
- anchorOrigin: a,
2007
- anchorReference: c,
2008
- elevation: N,
2009
- marginThreshold: m,
2010
- transformOrigin: w,
2011
- TransitionComponent: u,
1468
+ disableScrollLock: N = !1,
1469
+ ...R
1470
+ } = r, E = u.useRef(), S = {
1471
+ ...r,
1472
+ anchorOrigin: i,
1473
+ anchorReference: d,
1474
+ elevation: C,
1475
+ marginThreshold: h,
1476
+ transformOrigin: O,
1477
+ TransitionComponent: l,
2012
1478
  transitionDuration: f,
2013
1479
  TransitionProps: y
2014
- }, $ = Pn(M), A = p.useCallback(() => {
2015
- if (c === "anchorPosition")
2016
- return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
2017
- const P = he(r), D = P && P.nodeType === 1 ? P : z(x.current).body, V = D.getBoundingClientRect();
1480
+ }, V = Xt(S), L = u.useCallback(() => {
1481
+ if (d === "anchorPosition")
1482
+ return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
1483
+ const P = se(s), j = P && P.nodeType === 1 ? P : q(E.current).body, K = j.getBoundingClientRect();
2018
1484
  if (process.env.NODE_ENV !== "production") {
2019
- const H = D.getBoundingClientRect();
2020
- process.env.NODE_ENV !== "test" && H.top === 0 && H.left === 0 && H.right === 0 && H.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
+ const z = j.getBoundingClientRect();
1486
+ 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(`
2021
1487
  `));
2022
1488
  }
2023
1489
  return {
2024
- top: V.top + et(V, a.vertical),
2025
- left: V.left + tt(V, a.horizontal)
1490
+ top: K.top + $e(K, i.vertical),
1491
+ left: K.left + Be(K, i.horizontal)
2026
1492
  };
2027
- }, [r, a.horizontal, a.vertical, l, c]), _ = p.useCallback((P) => ({
2028
- vertical: et(P, w.vertical),
2029
- horizontal: tt(P, w.horizontal)
2030
- }), [w.horizontal, w.vertical]), q = p.useCallback((P) => {
2031
- const D = {
1493
+ }, [s, i.horizontal, i.vertical, c, d]), $ = u.useCallback((P) => ({
1494
+ vertical: $e(P, O.vertical),
1495
+ horizontal: Be(P, O.horizontal)
1496
+ }), [O.horizontal, O.vertical]), U = u.useCallback((P) => {
1497
+ const j = {
2032
1498
  width: P.offsetWidth,
2033
1499
  height: P.offsetHeight
2034
- }, V = _(D);
2035
- if (c === "none")
1500
+ }, K = $(j);
1501
+ if (d === "none")
2036
1502
  return {
2037
1503
  top: null,
2038
1504
  left: null,
2039
- transformOrigin: nt(V)
1505
+ transformOrigin: Ue(K)
2040
1506
  };
2041
- const H = A();
2042
- let re = H.top - V.vertical, ie = H.left - V.horizontal;
2043
- const Ue = re + D.height, qe = ie + D.width, Ke = ne(he(r)), de = Ke.innerHeight - m, Be = Ke.innerWidth - m;
2044
- if (m !== null && re < m) {
2045
- const B = re - m;
2046
- re -= B, V.vertical += B;
2047
- } else if (m !== null && Ue > de) {
2048
- const B = Ue - de;
2049
- re -= B, V.vertical += B;
1507
+ const z = L();
1508
+ let ee = z.top - K.vertical, te = z.left - K.horizontal;
1509
+ const ke = ee + j.height, Se = te + j.width, je = Q(se(s)), oe = je.innerHeight - h, Ie = je.innerWidth - h;
1510
+ if (h !== null && ee < h) {
1511
+ const H = ee - h;
1512
+ ee -= H, K.vertical += H;
1513
+ } else if (h !== null && ke > oe) {
1514
+ const H = ke - oe;
1515
+ ee -= H, K.vertical += H;
2050
1516
  }
2051
- if (process.env.NODE_ENV !== "production" && D.height > de && D.height && de && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${D.height - de}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
2052
- `)), m !== null && ie < m) {
2053
- const B = ie - m;
2054
- ie -= B, V.horizontal += B;
2055
- } else if (qe > Be) {
2056
- const B = qe - Be;
2057
- ie -= B, V.horizontal += B;
1517
+ 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(`
1518
+ `)), h !== null && te < h) {
1519
+ const H = te - h;
1520
+ te -= H, K.horizontal += H;
1521
+ } else if (Se > Ie) {
1522
+ const H = Se - Ie;
1523
+ te -= H, K.horizontal += H;
2058
1524
  }
2059
1525
  return {
2060
- top: `${Math.round(re)}px`,
2061
- left: `${Math.round(ie)}px`,
2062
- transformOrigin: nt(V)
1526
+ top: `${Math.round(ee)}px`,
1527
+ left: `${Math.round(te)}px`,
1528
+ transformOrigin: Ue(K)
2063
1529
  };
2064
- }, [r, c, A, _, m]), [k, d] = p.useState(E), h = p.useCallback(() => {
2065
- const P = x.current;
1530
+ }, [s, d, L, $, h]), [k, p] = u.useState(b), m = u.useCallback(() => {
1531
+ const P = E.current;
2066
1532
  if (!P)
2067
1533
  return;
2068
- const D = q(P);
2069
- D.top !== null && P.style.setProperty("top", D.top), D.left !== null && (P.style.left = D.left), P.style.transformOrigin = D.transformOrigin, d(!0);
2070
- }, [q]);
2071
- p.useEffect(() => (S && window.addEventListener("scroll", h), () => window.removeEventListener("scroll", h)), [r, S, h]);
2072
- const j = () => {
2073
- h();
2074
- }, U = () => {
2075
- d(!1);
1534
+ const j = U(P);
1535
+ j.top !== null && P.style.setProperty("top", j.top), j.left !== null && (P.style.left = j.left), P.style.transformOrigin = j.transformOrigin, p(!0);
1536
+ }, [U]);
1537
+ u.useEffect(() => (N && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, N, m]);
1538
+ const F = () => {
1539
+ m();
1540
+ }, B = () => {
1541
+ p(!1);
2076
1542
  };
2077
- p.useEffect(() => {
2078
- E && h();
2079
- }), p.useImperativeHandle(s, () => E ? {
1543
+ u.useEffect(() => {
1544
+ b && m();
1545
+ }), u.useImperativeHandle(a, () => b ? {
2080
1546
  updatePosition: () => {
2081
- h();
1547
+ m();
2082
1548
  }
2083
- } : null, [E, h]), p.useEffect(() => {
2084
- if (!E)
1549
+ } : null, [b, m]), u.useEffect(() => {
1550
+ if (!b)
2085
1551
  return;
2086
- const P = qt(() => {
2087
- h();
2088
- }), D = ne(he(r));
2089
- return D.addEventListener("resize", P), () => {
2090
- P.clear(), D.removeEventListener("resize", P);
1552
+ const P = xt(() => {
1553
+ m();
1554
+ }), j = Q(se(s));
1555
+ return j.addEventListener("resize", P), () => {
1556
+ P.clear(), j.removeEventListener("resize", P);
2091
1557
  };
2092
- }, [r, E, h]);
2093
- let R = f;
2094
- const F = {
1558
+ }, [s, b, m]);
1559
+ let v = f;
1560
+ const D = {
2095
1561
  slots: {
2096
- transition: u,
2097
- ...C
1562
+ transition: l,
1563
+ ...M
2098
1564
  },
2099
1565
  slotProps: {
2100
1566
  transition: y,
2101
1567
  paper: I,
2102
1568
  ...g
2103
1569
  }
2104
- }, [Y, J] = X("transition", {
2105
- elementType: Re,
2106
- externalForwardedProps: F,
2107
- ownerState: M,
1570
+ }, [Y, X] = W("transition", {
1571
+ elementType: be,
1572
+ externalForwardedProps: D,
1573
+ ownerState: S,
2108
1574
  getSlotProps: (P) => ({
2109
1575
  ...P,
2110
- onEntering: (D, V) => {
2111
- var H;
2112
- (H = P.onEntering) == null || H.call(P, D, V), j();
1576
+ onEntering: (j, K) => {
1577
+ var z;
1578
+ (z = P.onEntering) == null || z.call(P, j, K), F();
2113
1579
  },
2114
- onExited: (D) => {
2115
- var V;
2116
- (V = P.onExited) == null || V.call(P, D), U();
1580
+ onExited: (j) => {
1581
+ var K;
1582
+ (K = P.onExited) == null || K.call(P, j), B();
2117
1583
  }
2118
1584
  }),
2119
1585
  additionalProps: {
2120
1586
  appear: !0,
2121
- in: E
1587
+ in: b
2122
1588
  }
2123
1589
  });
2124
- f === "auto" && !Y.muiSupportAuto && (R = void 0);
2125
- const K = v || (r ? z(he(r)).body : void 0), [Q, {
2126
- slots: ye,
2127
- slotProps: Ce,
2128
- ...ke
2129
- }] = X("root", {
1590
+ f === "auto" && !Y.muiSupportAuto && (v = void 0);
1591
+ const _ = x || (s ? q(se(s)).body : void 0), [J, {
1592
+ slots: fe,
1593
+ slotProps: Te,
1594
+ ...Pe
1595
+ }] = W("root", {
2130
1596
  ref: o,
2131
- elementType: Rn,
1597
+ elementType: Jt,
2132
1598
  externalForwardedProps: {
2133
- ...F,
2134
- ...O
1599
+ ...D,
1600
+ ...R
2135
1601
  },
2136
1602
  shouldForwardComponentProp: !0,
2137
1603
  additionalProps: {
2138
1604
  slots: {
2139
- backdrop: C.backdrop
1605
+ backdrop: M.backdrop
2140
1606
  },
2141
1607
  slotProps: {
2142
- backdrop: wt(typeof g.backdrop == "function" ? g.backdrop(M) : g.backdrop, {
1608
+ backdrop: gt(typeof g.backdrop == "function" ? g.backdrop(S) : g.backdrop, {
2143
1609
  invisible: !0
2144
1610
  })
2145
1611
  },
2146
- container: K,
2147
- open: E
1612
+ container: _,
1613
+ open: b
2148
1614
  },
2149
- ownerState: M,
2150
- className: te($.root, T)
2151
- }), [Me, De] = X("paper", {
2152
- ref: x,
2153
- className: $.paper,
2154
- elementType: gt,
2155
- externalForwardedProps: F,
1615
+ ownerState: S,
1616
+ className: ne(V.root, w)
1617
+ }), [xe, ve] = W("paper", {
1618
+ ref: E,
1619
+ className: V.paper,
1620
+ elementType: et,
1621
+ externalForwardedProps: D,
2156
1622
  shouldForwardComponentProp: !0,
2157
1623
  additionalProps: {
2158
- elevation: N,
1624
+ elevation: C,
2159
1625
  style: k ? void 0 : {
2160
1626
  opacity: 0
2161
1627
  }
2162
1628
  },
2163
- ownerState: M
1629
+ ownerState: S
2164
1630
  });
2165
- return /* @__PURE__ */ L.jsx(Q, {
2166
- ...ke,
2167
- ...!zt(Q) && {
2168
- slots: ye,
2169
- slotProps: Ce,
2170
- disableScrollLock: S
1631
+ return /* @__PURE__ */ A.jsx(J, {
1632
+ ...Pe,
1633
+ ...!vt(J) && {
1634
+ slots: fe,
1635
+ slotProps: Te,
1636
+ disableScrollLock: N
2171
1637
  },
2172
- children: /* @__PURE__ */ L.jsx(Y, {
2173
- ...J,
2174
- timeout: R,
2175
- children: /* @__PURE__ */ L.jsx(Me, {
2176
- ...De,
2177
- children: b
1638
+ children: /* @__PURE__ */ A.jsx(Y, {
1639
+ ...X,
1640
+ timeout: v,
1641
+ children: /* @__PURE__ */ A.jsx(xe, {
1642
+ ...ve,
1643
+ children: T
2178
1644
  })
2179
1645
  })
2180
1646
  });
2181
1647
  });
2182
- process.env.NODE_ENV !== "production" && (yt.propTypes = {
1648
+ process.env.NODE_ENV !== "production" && (tt.propTypes = {
2183
1649
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2184
1650
  // │ These PropTypes are generated from the TypeScript type definitions. │
2185
1651
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2188,15 +1654,15 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2188
1654
  * A ref for imperative actions.
2189
1655
  * It currently only supports updatePosition() action.
2190
1656
  */
2191
- action: St,
1657
+ action: ut,
2192
1658
  /**
2193
1659
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
2194
1660
  * or a function that returns either.
2195
1661
  * It's used to set the position of the popover.
2196
1662
  */
2197
- anchorEl: we(e.oneOfType([Ee, e.func]), (t) => {
1663
+ anchorEl: Me(e.oneOfType([ae, e.func]), (t) => {
2198
1664
  if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
2199
- const n = he(t.anchorEl);
1665
+ const n = se(t.anchorEl);
2200
1666
  if (n && n.nodeType === 1) {
2201
1667
  const o = n.getBoundingClientRect();
2202
1668
  if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
@@ -2277,7 +1743,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2277
1743
  * By default, it uses the body of the anchorEl's top-level document object,
2278
1744
  * so it's simply `document.body` most of the time.
2279
1745
  */
2280
- container: e.oneOfType([Ee, e.func]),
1746
+ container: e.oneOfType([ae, e.func]),
2281
1747
  /**
2282
1748
  * Disable the scroll lock behavior.
2283
1749
  * @default false
@@ -2287,7 +1753,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2287
1753
  * The elevation of the popover.
2288
1754
  * @default 8
2289
1755
  */
2290
- elevation: ut,
1756
+ elevation: bt,
2291
1757
  /**
2292
1758
  * Specifies how close to the edge of the window the popover can appear.
2293
1759
  * If null, the popover will not be constrained by the window.
@@ -2312,7 +1778,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2312
1778
  * @default {}
2313
1779
  */
2314
1780
  PaperProps: e.shape({
2315
- component: Ct
1781
+ component: pt
2316
1782
  }),
2317
1783
  /**
2318
1784
  * The props used for each slot inside.
@@ -2378,43 +1844,43 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2378
1844
  */
2379
1845
  TransitionProps: e.object
2380
1846
  });
2381
- function On(t) {
2382
- var v;
1847
+ function Qt(t) {
1848
+ var x;
2383
1849
  const {
2384
1850
  elementType: n,
2385
1851
  externalSlotProps: o,
2386
- ownerState: i,
2387
- skipResolvingSlotProps: s = !1,
2388
- ...r
2389
- } = t, a = s ? {} : kt(o, i), {
2390
- props: l,
2391
- internalRef: c
2392
- } = Mt({
2393
- ...r,
2394
- externalSlotProps: a
2395
- }), b = oe(c, a == null ? void 0 : a.ref, (v = t.additionalProps) == null ? void 0 : v.ref);
2396
- return Dt(n, {
2397
- ...l,
2398
- ref: b
2399
- }, i);
1852
+ ownerState: r,
1853
+ skipResolvingSlotProps: a = !1,
1854
+ ...s
1855
+ } = t, i = a ? {} : dt(o, r), {
1856
+ props: c,
1857
+ internalRef: d
1858
+ } = ft({
1859
+ ...s,
1860
+ externalSlotProps: i
1861
+ }), T = Z(d, i == null ? void 0 : i.ref, (x = t.additionalProps) == null ? void 0 : x.ref);
1862
+ return mt(n, {
1863
+ ...c,
1864
+ ref: T
1865
+ }, r);
2400
1866
  }
2401
- const vt = /* @__PURE__ */ p.createContext({});
2402
- process.env.NODE_ENV !== "production" && (vt.displayName = "ListContext");
2403
- function Nn(t) {
1867
+ const nt = /* @__PURE__ */ u.createContext({});
1868
+ process.env.NODE_ENV !== "production" && (nt.displayName = "ListContext");
1869
+ function Zt(t) {
2404
1870
  return ue("MuiList", t);
2405
1871
  }
2406
1872
  pe("MuiList", ["root", "padding", "dense", "subheader"]);
2407
- const wn = (t) => {
1873
+ const en = (t) => {
2408
1874
  const {
2409
1875
  classes: n,
2410
1876
  disablePadding: o,
2411
- dense: i,
2412
- subheader: s
1877
+ dense: r,
1878
+ subheader: a
2413
1879
  } = t;
2414
- return ce({
2415
- root: ["root", !o && "padding", i && "dense", s && "subheader"]
2416
- }, Nn, n);
2417
- }, Sn = W("ul", {
1880
+ return le({
1881
+ root: ["root", !o && "padding", r && "dense", a && "subheader"]
1882
+ }, Zt, n);
1883
+ }, tn = G("ul", {
2418
1884
  name: "MuiList",
2419
1885
  slot: "Root",
2420
1886
  overridesResolver: (t, n) => {
@@ -2444,39 +1910,39 @@ const wn = (t) => {
2444
1910
  paddingTop: 0
2445
1911
  }
2446
1912
  }]
2447
- }), Tt = /* @__PURE__ */ p.forwardRef(function(n, o) {
2448
- const i = le({
1913
+ }), ot = /* @__PURE__ */ u.forwardRef(function(n, o) {
1914
+ const r = ce({
2449
1915
  props: n,
2450
1916
  name: "MuiList"
2451
1917
  }), {
2452
- children: s,
2453
- className: r,
2454
- component: a = "ul",
2455
- dense: l = !1,
2456
- disablePadding: c = !1,
2457
- subheader: b,
2458
- ...T
2459
- } = i, v = p.useMemo(() => ({
2460
- dense: l
2461
- }), [l]), N = {
2462
- ...i,
2463
- component: a,
2464
- dense: l,
2465
- disablePadding: c
2466
- }, m = wn(N);
2467
- return /* @__PURE__ */ L.jsx(vt.Provider, {
2468
- value: v,
2469
- children: /* @__PURE__ */ L.jsxs(Sn, {
2470
- as: a,
2471
- className: te(m.root, r),
1918
+ children: a,
1919
+ className: s,
1920
+ component: i = "ul",
1921
+ dense: c = !1,
1922
+ disablePadding: d = !1,
1923
+ subheader: T,
1924
+ ...w
1925
+ } = r, x = u.useMemo(() => ({
1926
+ dense: c
1927
+ }), [c]), C = {
1928
+ ...r,
1929
+ component: i,
1930
+ dense: c,
1931
+ disablePadding: d
1932
+ }, h = en(C);
1933
+ return /* @__PURE__ */ A.jsx(nt.Provider, {
1934
+ value: x,
1935
+ children: /* @__PURE__ */ A.jsxs(tn, {
1936
+ as: i,
1937
+ className: ne(h.root, s),
2472
1938
  ref: o,
2473
- ownerState: N,
2474
- ...T,
2475
- children: [b, s]
1939
+ ownerState: C,
1940
+ ...w,
1941
+ children: [T, a]
2476
1942
  })
2477
1943
  });
2478
1944
  });
2479
- process.env.NODE_ENV !== "production" && (Tt.propTypes = {
1945
+ process.env.NODE_ENV !== "production" && (ot.propTypes = {
2480
1946
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2481
1947
  // │ These PropTypes are generated from the TypeScript type definitions. │
2482
1948
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2519,118 +1985,118 @@ process.env.NODE_ENV !== "production" && (Tt.propTypes = {
2519
1985
  */
2520
1986
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
2521
1987
  });
2522
- function Fe(t, n, o) {
1988
+ function we(t, n, o) {
2523
1989
  return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
2524
1990
  }
2525
- function ot(t, n, o) {
1991
+ function _e(t, n, o) {
2526
1992
  return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
2527
1993
  }
2528
- function xt(t, n) {
1994
+ function rt(t, n) {
2529
1995
  if (n === void 0)
2530
1996
  return !0;
2531
1997
  let o = t.innerText;
2532
1998
  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(""));
2533
1999
  }
2534
- function fe(t, n, o, i, s, r) {
2535
- let a = !1, l = s(t, n, n ? o : !1);
2536
- for (; l; ) {
2537
- if (l === t.firstChild) {
2538
- if (a)
2000
+ function re(t, n, o, r, a, s) {
2001
+ let i = !1, c = a(t, n, n ? o : !1);
2002
+ for (; c; ) {
2003
+ if (c === t.firstChild) {
2004
+ if (i)
2539
2005
  return !1;
2540
- a = !0;
2006
+ i = !0;
2541
2007
  }
2542
- const c = i ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true";
2543
- if (!l.hasAttribute("tabindex") || !xt(l, r) || c)
2544
- l = s(t, l, o);
2008
+ const d = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
2009
+ if (!c.hasAttribute("tabindex") || !rt(c, s) || d)
2010
+ c = a(t, c, o);
2545
2011
  else
2546
- return l.focus(), !0;
2012
+ return c.focus(), !0;
2547
2013
  }
2548
2014
  return !1;
2549
2015
  }
2550
- const Pt = /* @__PURE__ */ p.forwardRef(function(n, o) {
2016
+ const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
2551
2017
  const {
2552
2018
  // private
2553
2019
  // eslint-disable-next-line react/prop-types
2554
- actions: i,
2555
- autoFocus: s = !1,
2556
- autoFocusItem: r = !1,
2557
- children: a,
2558
- className: l,
2559
- disabledItemsFocusable: c = !1,
2560
- disableListWrap: b = !1,
2561
- onKeyDown: T,
2562
- variant: v = "selectedMenu",
2563
- ...N
2564
- } = n, m = p.useRef(null), E = p.useRef({
2020
+ actions: r,
2021
+ autoFocus: a = !1,
2022
+ autoFocusItem: s = !1,
2023
+ children: i,
2024
+ className: c,
2025
+ disabledItemsFocusable: d = !1,
2026
+ disableListWrap: T = !1,
2027
+ onKeyDown: w,
2028
+ variant: x = "selectedMenu",
2029
+ ...C
2030
+ } = n, h = u.useRef(null), b = u.useRef({
2565
2031
  keys: [],
2566
2032
  repeating: !0,
2567
2033
  previousKeyMatched: !0,
2568
2034
  lastTime: null
2569
2035
  });
2570
- Le(() => {
2571
- s && m.current.focus();
2572
- }, [s]), p.useImperativeHandle(i, () => ({
2573
- adjustStyleForScrollbar: (u, {
2036
+ Ne(() => {
2037
+ a && h.current.focus();
2038
+ }, [a]), u.useImperativeHandle(r, () => ({
2039
+ adjustStyleForScrollbar: (l, {
2574
2040
  direction: f
2575
2041
  }) => {
2576
- const y = !m.current.style.width;
2577
- if (u.clientHeight < m.current.clientHeight && y) {
2578
- const S = `${ft(ne(u))}px`;
2579
- m.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = S, m.current.style.width = `calc(100% + ${S})`;
2042
+ const y = !h.current.style.width;
2043
+ if (l.clientHeight < h.current.clientHeight && y) {
2044
+ const N = `${Xe(Q(l))}px`;
2045
+ h.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = N, h.current.style.width = `calc(100% + ${N})`;
2580
2046
  }
2581
- return m.current;
2047
+ return h.current;
2582
2048
  }
2583
2049
  }), []);
2584
- const I = (u) => {
2585
- const f = m.current, y = u.key;
2586
- if (u.ctrlKey || u.metaKey || u.altKey) {
2587
- T && T(u);
2050
+ const I = (l) => {
2051
+ const f = h.current, y = l.key;
2052
+ if (l.ctrlKey || l.metaKey || l.altKey) {
2053
+ w && w(l);
2588
2054
  return;
2589
2055
  }
2590
- const O = z(f).activeElement;
2056
+ const R = q(f).activeElement;
2591
2057
  if (y === "ArrowDown")
2592
- u.preventDefault(), fe(f, O, b, c, Fe);
2058
+ l.preventDefault(), re(f, R, T, d, we);
2593
2059
  else if (y === "ArrowUp")
2594
- u.preventDefault(), fe(f, O, b, c, ot);
2060
+ l.preventDefault(), re(f, R, T, d, _e);
2595
2061
  else if (y === "Home")
2596
- u.preventDefault(), fe(f, null, b, c, Fe);
2062
+ l.preventDefault(), re(f, null, T, d, we);
2597
2063
  else if (y === "End")
2598
- u.preventDefault(), fe(f, null, b, c, ot);
2064
+ l.preventDefault(), re(f, null, T, d, _e);
2599
2065
  else if (y.length === 1) {
2600
- const x = E.current, M = y.toLowerCase(), $ = performance.now();
2601
- x.keys.length > 0 && ($ - x.lastTime > 500 ? (x.keys = [], x.repeating = !0, x.previousKeyMatched = !0) : x.repeating && M !== x.keys[0] && (x.repeating = !1)), x.lastTime = $, x.keys.push(M);
2602
- const A = O && !x.repeating && xt(O, x);
2603
- x.previousKeyMatched && (A || fe(f, O, !1, c, Fe, x)) ? u.preventDefault() : x.previousKeyMatched = !1;
2066
+ const E = b.current, S = y.toLowerCase(), V = performance.now();
2067
+ 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);
2068
+ const L = R && !E.repeating && rt(R, E);
2069
+ E.previousKeyMatched && (L || re(f, R, !1, d, we, E)) ? l.preventDefault() : E.previousKeyMatched = !1;
2604
2070
  }
2605
- T && T(u);
2606
- }, C = oe(m, o);
2071
+ w && w(l);
2072
+ }, M = Z(h, o);
2607
2073
  let g = -1;
2608
- p.Children.forEach(a, (u, f) => {
2609
- if (!/* @__PURE__ */ p.isValidElement(u)) {
2610
- g === f && (g += 1, g >= a.length && (g = -1));
2074
+ u.Children.forEach(i, (l, f) => {
2075
+ if (!/* @__PURE__ */ u.isValidElement(l)) {
2076
+ g === f && (g += 1, g >= i.length && (g = -1));
2611
2077
  return;
2612
2078
  }
2613
- process.env.NODE_ENV !== "production" && rt.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2614
- `)), u.props.disabled || (v === "selectedMenu" && u.props.selected || g === -1) && (g = f), g === f && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (g += 1, g >= a.length && (g = -1));
2079
+ 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(`
2080
+ `)), 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));
2615
2081
  });
2616
- const w = p.Children.map(a, (u, f) => {
2082
+ const O = u.Children.map(i, (l, f) => {
2617
2083
  if (f === g) {
2618
2084
  const y = {};
2619
- return r && (y.autoFocus = !0), u.props.tabIndex === void 0 && v === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ p.cloneElement(u, y);
2085
+ return s && (y.autoFocus = !0), l.props.tabIndex === void 0 && x === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ u.cloneElement(l, y);
2620
2086
  }
2621
- return u;
2087
+ return l;
2622
2088
  });
2623
- return /* @__PURE__ */ L.jsx(Tt, {
2089
+ return /* @__PURE__ */ A.jsx(ot, {
2624
2090
  role: "menu",
2625
- ref: C,
2626
- className: l,
2091
+ ref: M,
2092
+ className: c,
2627
2093
  onKeyDown: I,
2628
- tabIndex: s ? 0 : -1,
2629
- ...N,
2630
- children: w
2094
+ tabIndex: a ? 0 : -1,
2095
+ ...C,
2096
+ children: O
2631
2097
  });
2632
2098
  });
2633
- process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2099
+ process.env.NODE_ENV !== "production" && (st.propTypes = {
2634
2100
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2635
2101
  // │ These PropTypes are generated from the TypeScript type definitions. │
2636
2102
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2675,30 +2141,30 @@ process.env.NODE_ENV !== "production" && (Pt.propTypes = {
2675
2141
  */
2676
2142
  variant: e.oneOf(["menu", "selectedMenu"])
2677
2143
  });
2678
- function Cn(t) {
2144
+ function nn(t) {
2679
2145
  return ue("MuiMenu", t);
2680
2146
  }
2681
2147
  pe("MuiMenu", ["root", "paper", "list"]);
2682
- const kn = {
2148
+ const on = {
2683
2149
  vertical: "top",
2684
2150
  horizontal: "right"
2685
- }, Mn = {
2151
+ }, rn = {
2686
2152
  vertical: "top",
2687
2153
  horizontal: "left"
2688
- }, Dn = (t) => {
2154
+ }, sn = (t) => {
2689
2155
  const {
2690
2156
  classes: n
2691
2157
  } = t;
2692
- return ce({
2158
+ return le({
2693
2159
  root: ["root"],
2694
2160
  paper: ["paper"],
2695
2161
  list: ["list"]
2696
- }, Cn, n);
2697
- }, In = W(yt, {
2698
- shouldForwardProp: (t) => Rt(t) || t === "classes",
2162
+ }, nn, n);
2163
+ }, an = G(tt, {
2164
+ shouldForwardProp: (t) => at(t) || t === "classes",
2699
2165
  name: "MuiMenu",
2700
2166
  slot: "Root"
2701
- })({}), jn = W(gt, {
2167
+ })({}), cn = G(et, {
2702
2168
  name: "MuiMenu",
2703
2169
  slot: "Paper"
2704
2170
  })({
@@ -2708,97 +2174,97 @@ const kn = {
2708
2174
  maxHeight: "calc(100% - 96px)",
2709
2175
  // Add iOS momentum scrolling for iOS < 13.0
2710
2176
  WebkitOverflowScrolling: "touch"
2711
- }), Fn = W(Pt, {
2177
+ }), ln = G(st, {
2712
2178
  name: "MuiMenu",
2713
2179
  slot: "List"
2714
2180
  })({
2715
2181
  // We disable the focus ring for mouse, touch and keyboard users.
2716
2182
  outline: 0
2717
- }), Ln = /* @__PURE__ */ p.forwardRef(function(n, o) {
2718
- const i = le({
2183
+ }), un = /* @__PURE__ */ u.forwardRef(function(n, o) {
2184
+ const r = ce({
2719
2185
  props: n,
2720
2186
  name: "MuiMenu"
2721
2187
  }), {
2722
- autoFocus: s = !0,
2723
- children: r,
2724
- className: a,
2725
- disableAutoFocusItem: l = !1,
2726
- MenuListProps: c = {},
2727
- onClose: b,
2728
- open: T,
2729
- PaperProps: v = {},
2730
- PopoverClasses: N,
2731
- transitionDuration: m = "auto",
2188
+ autoFocus: a = !0,
2189
+ children: s,
2190
+ className: i,
2191
+ disableAutoFocusItem: c = !1,
2192
+ MenuListProps: d = {},
2193
+ onClose: T,
2194
+ open: w,
2195
+ PaperProps: x = {},
2196
+ PopoverClasses: C,
2197
+ transitionDuration: h = "auto",
2732
2198
  TransitionProps: {
2733
- onEntering: E,
2199
+ onEntering: b,
2734
2200
  ...I
2735
2201
  } = {},
2736
- variant: C = "selectedMenu",
2202
+ variant: M = "selectedMenu",
2737
2203
  slots: g = {},
2738
- slotProps: w = {},
2739
- ...u
2740
- } = i, f = Ut(), y = {
2741
- ...i,
2742
- autoFocus: s,
2743
- disableAutoFocusItem: l,
2744
- MenuListProps: c,
2745
- onEntering: E,
2746
- PaperProps: v,
2747
- transitionDuration: m,
2204
+ slotProps: O = {},
2205
+ ...l
2206
+ } = r, f = Pt(), y = {
2207
+ ...r,
2208
+ autoFocus: a,
2209
+ disableAutoFocusItem: c,
2210
+ MenuListProps: d,
2211
+ onEntering: b,
2212
+ PaperProps: x,
2213
+ transitionDuration: h,
2748
2214
  TransitionProps: I,
2749
- variant: C
2750
- }, S = Dn(y), O = s && !l && T, x = p.useRef(null), M = (R, F) => {
2751
- x.current && x.current.adjustStyleForScrollbar(R, {
2215
+ variant: M
2216
+ }, N = sn(y), R = a && !c && w, E = u.useRef(null), S = (v, D) => {
2217
+ E.current && E.current.adjustStyleForScrollbar(v, {
2752
2218
  direction: f ? "rtl" : "ltr"
2753
- }), E && E(R, F);
2754
- }, $ = (R) => {
2755
- R.key === "Tab" && (R.preventDefault(), b && b(R, "tabKeyDown"));
2219
+ }), b && b(v, D);
2220
+ }, V = (v) => {
2221
+ v.key === "Tab" && (v.preventDefault(), T && T(v, "tabKeyDown"));
2756
2222
  };
2757
- let A = -1;
2758
- p.Children.map(r, (R, F) => {
2759
- /* @__PURE__ */ p.isValidElement(R) && (process.env.NODE_ENV !== "production" && rt.isFragment(R) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2760
- `)), R.props.disabled || (C === "selectedMenu" && R.props.selected || A === -1) && (A = F));
2223
+ let L = -1;
2224
+ u.Children.map(s, (v, D) => {
2225
+ /* @__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(`
2226
+ `)), v.props.disabled || (M === "selectedMenu" && v.props.selected || L === -1) && (L = D));
2761
2227
  });
2762
- const _ = {
2228
+ const $ = {
2763
2229
  slots: g,
2764
2230
  slotProps: {
2765
- list: c,
2231
+ list: d,
2766
2232
  transition: I,
2767
- paper: v,
2768
- ...w
2233
+ paper: x,
2234
+ ...O
2769
2235
  }
2770
- }, q = On({
2236
+ }, U = Qt({
2771
2237
  elementType: g.root,
2772
- externalSlotProps: w.root,
2238
+ externalSlotProps: O.root,
2773
2239
  ownerState: y,
2774
- className: [S.root, a]
2775
- }), [k, d] = X("paper", {
2776
- className: S.paper,
2777
- elementType: jn,
2778
- externalForwardedProps: _,
2240
+ className: [N.root, i]
2241
+ }), [k, p] = W("paper", {
2242
+ className: N.paper,
2243
+ elementType: cn,
2244
+ externalForwardedProps: $,
2779
2245
  shouldForwardComponentProp: !0,
2780
2246
  ownerState: y
2781
- }), [h, j] = X("list", {
2782
- className: te(S.list, c.className),
2783
- elementType: Fn,
2247
+ }), [m, F] = W("list", {
2248
+ className: ne(N.list, d.className),
2249
+ elementType: ln,
2784
2250
  shouldForwardComponentProp: !0,
2785
- externalForwardedProps: _,
2786
- getSlotProps: (R) => ({
2787
- ...R,
2788
- onKeyDown: (F) => {
2251
+ externalForwardedProps: $,
2252
+ getSlotProps: (v) => ({
2253
+ ...v,
2254
+ onKeyDown: (D) => {
2789
2255
  var Y;
2790
- $(F), (Y = R.onKeyDown) == null || Y.call(R, F);
2256
+ V(D), (Y = v.onKeyDown) == null || Y.call(v, D);
2791
2257
  }
2792
2258
  }),
2793
2259
  ownerState: y
2794
- }), U = typeof _.slotProps.transition == "function" ? _.slotProps.transition(y) : _.slotProps.transition;
2795
- return /* @__PURE__ */ L.jsx(In, {
2796
- onClose: b,
2260
+ }), B = typeof $.slotProps.transition == "function" ? $.slotProps.transition(y) : $.slotProps.transition;
2261
+ return /* @__PURE__ */ A.jsx(an, {
2262
+ onClose: T,
2797
2263
  anchorOrigin: {
2798
2264
  vertical: "bottom",
2799
2265
  horizontal: f ? "right" : "left"
2800
2266
  },
2801
- transformOrigin: f ? kn : Mn,
2267
+ transformOrigin: f ? on : rn,
2802
2268
  slots: {
2803
2269
  root: g.root,
2804
2270
  paper: k,
@@ -2809,34 +2275,34 @@ const kn = {
2809
2275
  }
2810
2276
  },
2811
2277
  slotProps: {
2812
- root: q,
2813
- paper: d,
2814
- backdrop: typeof w.backdrop == "function" ? w.backdrop(y) : w.backdrop,
2278
+ root: U,
2279
+ paper: p,
2280
+ backdrop: typeof O.backdrop == "function" ? O.backdrop(y) : O.backdrop,
2815
2281
  transition: {
2816
- ...U,
2817
- onEntering: (...R) => {
2818
- var F;
2819
- M(...R), (F = U == null ? void 0 : U.onEntering) == null || F.call(U, ...R);
2282
+ ...B,
2283
+ onEntering: (...v) => {
2284
+ var D;
2285
+ S(...v), (D = B == null ? void 0 : B.onEntering) == null || D.call(B, ...v);
2820
2286
  }
2821
2287
  }
2822
2288
  },
2823
- open: T,
2289
+ open: w,
2824
2290
  ref: o,
2825
- transitionDuration: m,
2291
+ transitionDuration: h,
2826
2292
  ownerState: y,
2827
- ...u,
2828
- classes: N,
2829
- children: /* @__PURE__ */ L.jsx(h, {
2830
- actions: x,
2831
- autoFocus: s && (A === -1 || l),
2832
- autoFocusItem: O,
2833
- variant: C,
2834
- ...j,
2835
- children: r
2293
+ ...l,
2294
+ classes: C,
2295
+ children: /* @__PURE__ */ A.jsx(m, {
2296
+ actions: E,
2297
+ autoFocus: a && (L === -1 || c),
2298
+ autoFocusItem: R,
2299
+ variant: M,
2300
+ ...F,
2301
+ children: s
2836
2302
  })
2837
2303
  });
2838
2304
  });
2839
- process.env.NODE_ENV !== "production" && (Ln.propTypes = {
2305
+ process.env.NODE_ENV !== "production" && (un.propTypes = {
2840
2306
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2841
2307
  // │ These PropTypes are generated from the TypeScript type definitions. │
2842
2308
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2845,7 +2311,7 @@ process.env.NODE_ENV !== "production" && (Ln.propTypes = {
2845
2311
  * An HTML element, or a function that returns one.
2846
2312
  * It's used to set the position of the menu.
2847
2313
  */
2848
- anchorEl: e.oneOfType([Ee, e.func]),
2314
+ anchorEl: e.oneOfType([ae, e.func]),
2849
2315
  /**
2850
2316
  * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
2851
2317
  * children are not focusable. If you set this prop to `false` focus will be placed
@@ -2948,28 +2414,23 @@ process.env.NODE_ENV !== "production" && (Ln.propTypes = {
2948
2414
  variant: e.oneOf(["menu", "selectedMenu"])
2949
2415
  });
2950
2416
  export {
2951
- ht as B,
2952
- mt as F,
2953
- Re as G,
2954
- Ee as H,
2955
- vt as L,
2956
- Ln as M,
2957
- yt as P,
2958
- G as T,
2959
- ne as a,
2960
- On as b,
2961
- _e as c,
2962
- qt as d,
2963
- Pt as e,
2964
- Bt as f,
2965
- Se as g,
2966
- Jn as h,
2967
- zt as i,
2968
- Ne as j,
2969
- Oe as k,
2970
- Et as l,
2971
- Tt as m,
2972
- bt as n,
2973
- z as o,
2974
- Ut as u
2417
+ Qe as B,
2418
+ Je as F,
2419
+ be as G,
2420
+ ae as H,
2421
+ nt as L,
2422
+ un as M,
2423
+ tt as P,
2424
+ Q as a,
2425
+ Qt as b,
2426
+ st as c,
2427
+ xt as d,
2428
+ ye as e,
2429
+ ge as f,
2430
+ Ee as g,
2431
+ ot as h,
2432
+ vt as i,
2433
+ Ze as j,
2434
+ q as o,
2435
+ Pt as u
2975
2436
  };