jcicl 0.0.191 → 0.0.195

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