@loopr-ai/craft 0.5.2 → 0.7.0

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 (40) hide show
  1. package/dist/{ButtonBase-85c9347b.js → ButtonBase-c303b1df.js} +3 -3
  2. package/dist/Form.interfaces-c9b49688.js +6 -0
  3. package/dist/{createSvgIcon-70f9f72b.js → Grow-d188a215.js} +3944 -4020
  4. package/dist/TextField-b13f5aff.js +5931 -0
  5. package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-7cd3ef83.js} +3 -3
  6. package/dist/Typography-c0106ed0.js +178 -0
  7. package/dist/{ZoomControllers-7fb8d495.js → ZoomControllers-2e737c18.js} +678 -681
  8. package/dist/components/cell/AvatarGroup/index.js +3 -3
  9. package/dist/components/cell/Button/index.js +3 -3
  10. package/dist/components/cell/Chip/index.js +5 -5
  11. package/dist/components/cell/ProgressBar/index.js +3 -3
  12. package/dist/components/cell/Search/index.js +27 -5949
  13. package/dist/components/cell/Typography/index.d.ts +2 -1
  14. package/dist/components/cell/Typography/index.js +16 -188
  15. package/dist/components/organ/Form/FieldInput.d.ts +27 -0
  16. package/dist/components/organ/Form/FieldInput.js +440 -0
  17. package/dist/components/organ/Form/Form.interfaces.d.ts +55 -0
  18. package/dist/components/organ/Form/Form.interfaces.js +1 -0
  19. package/dist/components/organ/Form/Form.styles.d.ts +5 -0
  20. package/dist/components/organ/Form/Form.styles.js +10 -0
  21. package/dist/components/organ/Form/Form.utils.d.ts +2 -0
  22. package/dist/components/organ/Form/Form.utils.js +27 -0
  23. package/dist/components/organ/Form/index.d.ts +28 -0
  24. package/dist/components/organ/Form/index.js +130 -0
  25. package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +1 -1
  26. package/dist/components/organ/ZoomControlWithDrag/index.js +1 -1
  27. package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-5180e4db.js} +2 -2
  28. package/dist/createSvgIcon-78477fc1.js +81 -0
  29. package/dist/{createTheme-a4db2989.js → createTheme-54078d82.js} +3 -3
  30. package/dist/dividerClasses-68f129df.js +10 -0
  31. package/dist/{exactProp-d79ccada.js → exactProp-893ad662.js} +1 -1
  32. package/dist/{extendSxProp-db8b9da5.js → extendSxProp-8c660b3a.js} +1 -1
  33. package/dist/global/theme.d.ts +32 -11
  34. package/dist/global/theme.js +39 -23
  35. package/dist/main.d.ts +5 -3
  36. package/dist/main.js +20 -16
  37. package/dist/providers/CraftThemeProvider.js +2 -2
  38. package/dist/{styled-126c6a62.js → styled-2bc0b59e.js} +12 -12
  39. package/dist/{useTheme-573c40a2.js → useTheme-e2efed29.js} +1 -1
  40. package/package.json +1 -1
@@ -1,53 +1,55 @@
1
- import At, { jsx as _, jsxs as wt, Fragment as Hr } from "react/jsx-runtime";
2
- import { o as Do, P as Fr, H as Pt, u as Zr, j as Ur, k as qr, G as No, n as dt, e as Kr, l as Rt, m as xt } from "./createSvgIcon-70f9f72b.js";
3
- import * as R from "react";
4
- import xe, { useRef as Tt, useImperativeHandle as Qr, useEffect as It, useContext as eo } from "react";
5
- import { s as Gr, _ as Ne, a as C, g as Dt, c as Pe, e as Ie, P as u, f as Jr, C as Ir } from "./createTheme-a4db2989.js";
6
- import { i as ei, u as ti, c as Ae, g as Nt, s as Me, a as Mt, b as _t } from "./styled-126c6a62.js";
7
- import { u as oi } from "./useTheme-573c40a2.js";
1
+ import Rt, { jsx as _, jsxs as wt, Fragment as Hr } from "react/jsx-runtime";
2
+ import { r as At, i as xt } from "./createSvgIcon-78477fc1.js";
3
+ import * as A from "react";
4
+ import xe, { useRef as Pt, useImperativeHandle as Fr, useEffect as Gt, useContext as Jt } from "react";
5
+ import { s as Zr, _ as Ne, a as C, g as It, c as Pe, e as Ie, P as u, f as Ur, C as qr } from "./createTheme-54078d82.js";
6
+ import { i as Kr, u as Qr, c as Re, g as eo, s as Me, a as Dt, b as Nt } from "./styled-2bc0b59e.js";
7
+ import { u as Gr } from "./useTheme-e2efed29.js";
8
+ import { o as Do, P as Jr, H as Tt, k as Ir, b as en, u as tn, G as No, l as dt, e as on } from "./Grow-d188a215.js";
8
9
  import { c as Jo } from "./chainPropTypes-004bf492.js";
9
- import { r as Io, u as qt, c as Mo, b as ri, a as ii } from "./TransitionGroupContext-fe9a562f.js";
10
- import { c as ni, T as ai } from "./useThemeWithoutDefault-188598a8.js";
11
- import { B as si } from "./ButtonBase-85c9347b.js";
12
- import { e as li } from "./extendSxProp-db8b9da5.js";
13
- const ui = ["className", "component"];
14
- function pi(e = {}) {
10
+ import { r as Io, u as Zt, a as Mo, b as rn, c as nn } from "./TransitionGroupContext-7cd3ef83.js";
11
+ import { c as an, T as sn } from "./useThemeWithoutDefault-188598a8.js";
12
+ import { B as ln } from "./ButtonBase-c303b1df.js";
13
+ import { e as un } from "./extendSxProp-8c660b3a.js";
14
+ import { g as pn } from "./dividerClasses-68f129df.js";
15
+ const dn = ["className", "component"];
16
+ function fn(e = {}) {
15
17
  const {
16
18
  themeId: o,
17
19
  defaultTheme: t,
18
20
  defaultClassName: r = "MuiBox-root",
19
- generateClassName: i
20
- } = e, n = ei("div", {
21
+ generateClassName: n
22
+ } = e, i = Kr("div", {
21
23
  shouldForwardProp: (s) => s !== "theme" && s !== "sx" && s !== "as"
22
- })(Gr);
23
- return /* @__PURE__ */ R.forwardRef(function(l, d) {
24
- const p = ti(t), f = li(l), {
24
+ })(Zr);
25
+ return /* @__PURE__ */ A.forwardRef(function(l, d) {
26
+ const p = Qr(t), f = un(l), {
25
27
  className: c,
26
28
  component: v = "div"
27
- } = f, h = Ne(f, ui);
28
- return /* @__PURE__ */ _(n, C({
29
+ } = f, h = Ne(f, dn);
30
+ return /* @__PURE__ */ _(i, C({
29
31
  as: v,
30
32
  ref: d,
31
- className: Ae(c, i ? i(r) : r),
33
+ className: Re(c, n ? n(r) : r),
32
34
  theme: o && p[o] || p
33
35
  }, h));
34
36
  });
35
37
  }
36
- function di(e) {
37
- return Dt("MuiIconButton", e);
38
+ function cn(e) {
39
+ return It("MuiIconButton", e);
38
40
  }
39
- const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), ci = fi, vi = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], mi = (e) => {
41
+ const vn = eo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), mn = vn, hn = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], gn = (e) => {
40
42
  const {
41
43
  classes: o,
42
44
  disabled: t,
43
45
  color: r,
44
- edge: i,
45
- size: n
46
+ edge: n,
47
+ size: i
46
48
  } = e, a = {
47
- root: ["root", t && "disabled", r !== "default" && `color${Pe(r)}`, i && `edge${Pe(i)}`, `size${Pe(n)}`]
49
+ root: ["root", t && "disabled", r !== "default" && `color${Pe(r)}`, n && `edge${Pe(n)}`, `size${Pe(i)}`]
48
50
  };
49
- return _t(a, di, o);
50
- }, hi = Me(si, {
51
+ return Nt(a, cn, o);
52
+ }, bn = Me(ln, {
51
53
  name: "MuiIconButton",
52
54
  slot: "Root",
53
55
  overridesResolver: (e, o) => {
@@ -109,39 +111,39 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
109
111
  padding: 12,
110
112
  fontSize: e.typography.pxToRem(28)
111
113
  }, {
112
- [`&.${ci.disabled}`]: {
114
+ [`&.${mn.disabled}`]: {
113
115
  backgroundColor: "transparent",
114
116
  color: (e.vars || e).palette.action.disabled
115
117
  }
116
118
  });
117
- }), er = /* @__PURE__ */ R.forwardRef(function(o, t) {
118
- const r = Mt({
119
+ }), er = /* @__PURE__ */ A.forwardRef(function(o, t) {
120
+ const r = Dt({
119
121
  props: o,
120
122
  name: "MuiIconButton"
121
123
  }), {
122
- edge: i = !1,
123
- children: n,
124
+ edge: n = !1,
125
+ children: i,
124
126
  className: a,
125
127
  color: s = "default",
126
128
  disabled: l = !1,
127
129
  disableFocusRipple: d = !1,
128
130
  size: p = "medium"
129
- } = r, f = Ne(r, vi), c = C({}, r, {
130
- edge: i,
131
+ } = r, f = Ne(r, hn), c = C({}, r, {
132
+ edge: n,
131
133
  color: s,
132
134
  disabled: l,
133
135
  disableFocusRipple: d,
134
136
  size: p
135
- }), v = mi(c);
136
- return /* @__PURE__ */ _(hi, C({
137
- className: Ae(v.root, a),
137
+ }), v = gn(c);
138
+ return /* @__PURE__ */ _(bn, C({
139
+ className: Re(v.root, a),
138
140
  centerRipple: !0,
139
141
  focusRipple: !d,
140
142
  disabled: l,
141
143
  ref: t,
142
144
  ownerState: c
143
145
  }, f, {
144
- children: n
146
+ children: i
145
147
  }));
146
148
  });
147
149
  process.env.NODE_ENV !== "production" && (er.propTypes = {
@@ -152,7 +154,7 @@ process.env.NODE_ENV !== "production" && (er.propTypes = {
152
154
  /**
153
155
  * The icon to display.
154
156
  */
155
- children: Jo(u.node, (e) => R.Children.toArray(e.children).some((t) => /* @__PURE__ */ R.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
157
+ children: Jo(u.node, (e) => A.Children.toArray(e.children).some((t) => /* @__PURE__ */ A.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
156
158
  `)) : null),
157
159
  /**
158
160
  * Override or extend the styles applied to the component.
@@ -206,20 +208,20 @@ process.env.NODE_ENV !== "production" && (er.propTypes = {
206
208
  */
207
209
  sx: u.oneOfType([u.arrayOf(u.oneOfType([u.func, u.object, u.bool])), u.func, u.object])
208
210
  });
209
- const ft = er, gi = {
211
+ const ft = er, yn = {
210
212
  disableDefaultClasses: !1
211
- }, bi = /* @__PURE__ */ R.createContext(gi);
212
- function yi(e) {
213
+ }, wn = /* @__PURE__ */ A.createContext(yn);
214
+ function Pn(e) {
213
215
  const {
214
216
  disableDefaultClasses: o
215
- } = R.useContext(bi);
217
+ } = A.useContext(wn);
216
218
  return (t) => o ? "" : e(t);
217
219
  }
218
- var H = "top", re = "bottom", ie = "right", F = "left", to = "auto", ot = [H, re, ie, F], $e = "start", et = "end", wi = "clippingParents", tr = "viewport", qe = "popper", Pi = "reference", _o = /* @__PURE__ */ ot.reduce(function(e, o) {
220
+ var H = "top", re = "bottom", ne = "right", F = "left", to = "auto", ot = [H, re, ne, F], $e = "start", et = "end", Tn = "clippingParents", tr = "viewport", qe = "popper", Cn = "reference", _o = /* @__PURE__ */ ot.reduce(function(e, o) {
219
221
  return e.concat([o + "-" + $e, o + "-" + et]);
220
222
  }, []), or = /* @__PURE__ */ [].concat(ot, [to]).reduce(function(e, o) {
221
223
  return e.concat([o, o + "-" + $e, o + "-" + et]);
222
- }, []), Ti = "beforeRead", Ci = "read", Si = "afterRead", Oi = "beforeMain", Ei = "main", Ai = "afterMain", Ri = "beforeWrite", xi = "write", Di = "afterWrite", Ni = [Ti, Ci, Si, Oi, Ei, Ai, Ri, xi, Di];
224
+ }, []), Sn = "beforeRead", On = "read", En = "afterRead", Rn = "beforeMain", An = "main", xn = "afterMain", Dn = "beforeWrite", Nn = "write", Mn = "afterWrite", _n = [Sn, On, En, Rn, An, xn, Dn, Nn, Mn];
223
225
  function ce(e) {
224
226
  return e ? (e.nodeName || "").toLowerCase() : null;
225
227
  }
@@ -246,17 +248,17 @@ function oo(e) {
246
248
  var o = J(e).ShadowRoot;
247
249
  return e instanceof o || e instanceof ShadowRoot;
248
250
  }
249
- function Mi(e) {
251
+ function Yn(e) {
250
252
  var o = e.state;
251
253
  Object.keys(o.elements).forEach(function(t) {
252
- var r = o.styles[t] || {}, i = o.attributes[t] || {}, n = o.elements[t];
253
- !oe(n) || !ce(n) || (Object.assign(n.style, r), Object.keys(i).forEach(function(a) {
254
- var s = i[a];
255
- s === !1 ? n.removeAttribute(a) : n.setAttribute(a, s === !0 ? "" : s);
254
+ var r = o.styles[t] || {}, n = o.attributes[t] || {}, i = o.elements[t];
255
+ !oe(i) || !ce(i) || (Object.assign(i.style, r), Object.keys(n).forEach(function(a) {
256
+ var s = n[a];
257
+ s === !1 ? i.removeAttribute(a) : i.setAttribute(a, s === !0 ? "" : s);
256
258
  }));
257
259
  });
258
260
  }
259
- function _i(e) {
261
+ function Bn(e) {
260
262
  var o = e.state, t = {
261
263
  popper: {
262
264
  position: o.options.strategy,
@@ -271,41 +273,41 @@ function _i(e) {
271
273
  };
272
274
  return Object.assign(o.elements.popper.style, t.popper), o.styles = t, o.elements.arrow && Object.assign(o.elements.arrow.style, t.arrow), function() {
273
275
  Object.keys(o.elements).forEach(function(r) {
274
- var i = o.elements[r], n = o.attributes[r] || {}, a = Object.keys(o.styles.hasOwnProperty(r) ? o.styles[r] : t[r]), s = a.reduce(function(l, d) {
276
+ var n = o.elements[r], i = o.attributes[r] || {}, a = Object.keys(o.styles.hasOwnProperty(r) ? o.styles[r] : t[r]), s = a.reduce(function(l, d) {
275
277
  return l[d] = "", l;
276
278
  }, {});
277
- !oe(i) || !ce(i) || (Object.assign(i.style, s), Object.keys(n).forEach(function(l) {
278
- i.removeAttribute(l);
279
+ !oe(n) || !ce(n) || (Object.assign(n.style, s), Object.keys(i).forEach(function(l) {
280
+ n.removeAttribute(l);
279
281
  }));
280
282
  });
281
283
  };
282
284
  }
283
- const Yi = {
285
+ const zn = {
284
286
  name: "applyStyles",
285
287
  enabled: !0,
286
288
  phase: "write",
287
- fn: Mi,
288
- effect: _i,
289
+ fn: Yn,
290
+ effect: Bn,
289
291
  requires: ["computeStyles"]
290
292
  };
291
293
  function fe(e) {
292
294
  return e.split("-")[0];
293
295
  }
294
- var Re = Math.max, Ct = Math.min, We = Math.round;
295
- function Kt() {
296
+ var Ae = Math.max, Ct = Math.min, Xe = Math.round;
297
+ function Ut() {
296
298
  var e = navigator.userAgentData;
297
299
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(o) {
298
300
  return o.brand + "/" + o.version;
299
301
  }).join(" ") : navigator.userAgent;
300
302
  }
301
303
  function rr() {
302
- return !/^((?!chrome|android).)*safari/i.test(Kt());
304
+ return !/^((?!chrome|android).)*safari/i.test(Ut());
303
305
  }
304
- function Xe(e, o, t) {
306
+ function We(e, o, t) {
305
307
  o === void 0 && (o = !1), t === void 0 && (t = !1);
306
- var r = e.getBoundingClientRect(), i = 1, n = 1;
307
- o && oe(e) && (i = e.offsetWidth > 0 && We(r.width) / e.offsetWidth || 1, n = e.offsetHeight > 0 && We(r.height) / e.offsetHeight || 1);
308
- var a = De(e) ? J(e) : window, s = a.visualViewport, l = !rr() && t, d = (r.left + (l && s ? s.offsetLeft : 0)) / i, p = (r.top + (l && s ? s.offsetTop : 0)) / n, f = r.width / i, c = r.height / n;
308
+ var r = e.getBoundingClientRect(), n = 1, i = 1;
309
+ o && oe(e) && (n = e.offsetWidth > 0 && Xe(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Xe(r.height) / e.offsetHeight || 1);
310
+ var a = De(e) ? J(e) : window, s = a.visualViewport, l = !rr() && t, d = (r.left + (l && s ? s.offsetLeft : 0)) / n, p = (r.top + (l && s ? s.offsetTop : 0)) / i, f = r.width / n, c = r.height / i;
309
311
  return {
310
312
  width: f,
311
313
  height: c,
@@ -318,7 +320,7 @@ function Xe(e, o, t) {
318
320
  };
319
321
  }
320
322
  function ro(e) {
321
- var o = Xe(e), t = e.offsetWidth, r = e.offsetHeight;
323
+ var o = We(e), t = e.offsetWidth, r = e.offsetHeight;
322
324
  return Math.abs(o.width - t) <= 1 && (t = o.width), Math.abs(o.height - r) <= 1 && (r = o.height), {
323
325
  x: e.offsetLeft,
324
326
  y: e.offsetTop,
@@ -326,7 +328,7 @@ function ro(e) {
326
328
  height: r
327
329
  };
328
330
  }
329
- function ir(e, o) {
331
+ function nr(e, o) {
330
332
  var t = o.getRootNode && o.getRootNode();
331
333
  if (e.contains(o))
332
334
  return !0;
@@ -343,7 +345,7 @@ function ir(e, o) {
343
345
  function ge(e) {
344
346
  return J(e).getComputedStyle(e);
345
347
  }
346
- function Bi(e) {
348
+ function $n(e) {
347
349
  return ["table", "td", "th"].indexOf(ce(e)) >= 0;
348
350
  }
349
351
  function Ce(e) {
@@ -352,7 +354,7 @@ function Ce(e) {
352
354
  e.document
353
355
  )) || window.document).documentElement;
354
356
  }
355
- function Yt(e) {
357
+ function Mt(e) {
356
358
  return ce(e) === "html" ? e : (
357
359
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
358
360
  // $FlowFixMe[incompatible-return]
@@ -368,38 +370,38 @@ function Yo(e) {
368
370
  return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
369
371
  ge(e).position === "fixed" ? null : e.offsetParent;
370
372
  }
371
- function zi(e) {
372
- var o = /firefox/i.test(Kt()), t = /Trident/i.test(Kt());
373
+ function Xn(e) {
374
+ var o = /firefox/i.test(Ut()), t = /Trident/i.test(Ut());
373
375
  if (t && oe(e)) {
374
376
  var r = ge(e);
375
377
  if (r.position === "fixed")
376
378
  return null;
377
379
  }
378
- var i = Yt(e);
379
- for (oo(i) && (i = i.host); oe(i) && ["html", "body"].indexOf(ce(i)) < 0; ) {
380
- var n = ge(i);
381
- if (n.transform !== "none" || n.perspective !== "none" || n.contain === "paint" || ["transform", "perspective"].indexOf(n.willChange) !== -1 || o && n.willChange === "filter" || o && n.filter && n.filter !== "none")
382
- return i;
383
- i = i.parentNode;
380
+ var n = Mt(e);
381
+ for (oo(n) && (n = n.host); oe(n) && ["html", "body"].indexOf(ce(n)) < 0; ) {
382
+ var i = ge(n);
383
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || o && i.willChange === "filter" || o && i.filter && i.filter !== "none")
384
+ return n;
385
+ n = n.parentNode;
384
386
  }
385
387
  return null;
386
388
  }
387
389
  function rt(e) {
388
- for (var o = J(e), t = Yo(e); t && Bi(t) && ge(t).position === "static"; )
390
+ for (var o = J(e), t = Yo(e); t && $n(t) && ge(t).position === "static"; )
389
391
  t = Yo(t);
390
- return t && (ce(t) === "html" || ce(t) === "body" && ge(t).position === "static") ? o : t || zi(e) || o;
392
+ return t && (ce(t) === "html" || ce(t) === "body" && ge(t).position === "static") ? o : t || Xn(e) || o;
391
393
  }
392
- function io(e) {
394
+ function no(e) {
393
395
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
394
396
  }
395
397
  function Ge(e, o, t) {
396
- return Re(e, Ct(o, t));
398
+ return Ae(e, Ct(o, t));
397
399
  }
398
- function $i(e, o, t) {
400
+ function Wn(e, o, t) {
399
401
  var r = Ge(e, o, t);
400
402
  return r > t ? t : r;
401
403
  }
402
- function nr() {
404
+ function ir() {
403
405
  return {
404
406
  top: 0,
405
407
  right: 0,
@@ -408,56 +410,56 @@ function nr() {
408
410
  };
409
411
  }
410
412
  function ar(e) {
411
- return Object.assign({}, nr(), e);
413
+ return Object.assign({}, ir(), e);
412
414
  }
413
415
  function sr(e, o) {
414
416
  return o.reduce(function(t, r) {
415
417
  return t[r] = e, t;
416
418
  }, {});
417
419
  }
418
- var Wi = function(o, t) {
420
+ var kn = function(o, t) {
419
421
  return o = typeof o == "function" ? o(Object.assign({}, t.rects, {
420
422
  placement: t.placement
421
423
  })) : o, ar(typeof o != "number" ? o : sr(o, ot));
422
424
  };
423
- function Xi(e) {
424
- var o, t = e.state, r = e.name, i = e.options, n = t.elements.arrow, a = t.modifiersData.popperOffsets, s = fe(t.placement), l = io(s), d = [F, ie].indexOf(s) >= 0, p = d ? "height" : "width";
425
- if (!(!n || !a)) {
426
- var f = Wi(i.padding, t), c = ro(n), v = l === "y" ? H : F, h = l === "y" ? re : ie, m = t.rects.reference[p] + t.rects.reference[l] - a[l] - t.rects.popper[p], g = a[l] - t.rects.reference[l], P = rt(n), S = P ? l === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, y = m / 2 - g / 2, b = f[v], w = S - c[p] - f[h], T = S / 2 - c[p] / 2 + y, O = Ge(b, T, w), D = l;
425
+ function jn(e) {
426
+ var o, t = e.state, r = e.name, n = e.options, i = t.elements.arrow, a = t.modifiersData.popperOffsets, s = fe(t.placement), l = no(s), d = [F, ne].indexOf(s) >= 0, p = d ? "height" : "width";
427
+ if (!(!i || !a)) {
428
+ var f = kn(n.padding, t), c = ro(i), v = l === "y" ? H : F, h = l === "y" ? re : ne, m = t.rects.reference[p] + t.rects.reference[l] - a[l] - t.rects.popper[p], g = a[l] - t.rects.reference[l], P = rt(i), S = P ? l === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, y = m / 2 - g / 2, b = f[v], w = S - c[p] - f[h], T = S / 2 - c[p] / 2 + y, O = Ge(b, T, w), D = l;
427
429
  t.modifiersData[r] = (o = {}, o[D] = O, o.centerOffset = O - T, o);
428
430
  }
429
431
  }
430
- function ki(e) {
431
- var o = e.state, t = e.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
432
- i != null && (typeof i == "string" && (i = o.elements.popper.querySelector(i), !i) || ir(o.elements.popper, i) && (o.elements.arrow = i));
432
+ function Ln(e) {
433
+ var o = e.state, t = e.options, r = t.element, n = r === void 0 ? "[data-popper-arrow]" : r;
434
+ n != null && (typeof n == "string" && (n = o.elements.popper.querySelector(n), !n) || nr(o.elements.popper, n) && (o.elements.arrow = n));
433
435
  }
434
- const ji = {
436
+ const Vn = {
435
437
  name: "arrow",
436
438
  enabled: !0,
437
439
  phase: "main",
438
- fn: Xi,
439
- effect: ki,
440
+ fn: jn,
441
+ effect: Ln,
440
442
  requires: ["popperOffsets"],
441
443
  requiresIfExists: ["preventOverflow"]
442
444
  };
443
445
  function ke(e) {
444
446
  return e.split("-")[1];
445
447
  }
446
- var Li = {
448
+ var Hn = {
447
449
  top: "auto",
448
450
  right: "auto",
449
451
  bottom: "auto",
450
452
  left: "auto"
451
453
  };
452
- function Vi(e, o) {
453
- var t = e.x, r = e.y, i = o.devicePixelRatio || 1;
454
+ function Fn(e, o) {
455
+ var t = e.x, r = e.y, n = o.devicePixelRatio || 1;
454
456
  return {
455
- x: We(t * i) / i || 0,
456
- y: We(r * i) / i || 0
457
+ x: Xe(t * n) / n || 0,
458
+ y: Xe(r * n) / n || 0
457
459
  };
458
460
  }
459
461
  function Bo(e) {
460
- var o, t = e.popper, r = e.popperRect, i = e.placement, n = e.variation, a = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, p = e.roundOffsets, f = e.isFixed, c = a.x, v = c === void 0 ? 0 : c, h = a.y, m = h === void 0 ? 0 : h, g = typeof p == "function" ? p({
462
+ var o, t = e.popper, r = e.popperRect, n = e.placement, i = e.variation, a = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, p = e.roundOffsets, f = e.isFixed, c = a.x, v = c === void 0 ? 0 : c, h = a.y, m = h === void 0 ? 0 : h, g = typeof p == "function" ? p({
461
463
  x: v,
462
464
  y: m
463
465
  }) : {
@@ -468,7 +470,7 @@ function Bo(e) {
468
470
  var P = a.hasOwnProperty("x"), S = a.hasOwnProperty("y"), y = F, b = H, w = window;
469
471
  if (d) {
470
472
  var T = rt(t), O = "clientHeight", D = "clientWidth";
471
- if (T === J(t) && (T = Ce(t), ge(T).position !== "static" && s === "absolute" && (O = "scrollHeight", D = "scrollWidth")), T = T, i === H || (i === F || i === ie) && n === et) {
473
+ if (T === J(t) && (T = Ce(t), ge(T).position !== "static" && s === "absolute" && (O = "scrollHeight", D = "scrollWidth")), T = T, n === H || (n === F || n === ne) && i === et) {
472
474
  b = re;
473
475
  var E = f && T === w && w.visualViewport ? w.visualViewport.height : (
474
476
  // $FlowFixMe[prop-missing]
@@ -476,18 +478,18 @@ function Bo(e) {
476
478
  );
477
479
  m -= E - r.height, m *= l ? 1 : -1;
478
480
  }
479
- if (i === F || (i === H || i === re) && n === et) {
480
- y = ie;
481
- var A = f && T === w && w.visualViewport ? w.visualViewport.width : (
481
+ if (n === F || (n === H || n === re) && i === et) {
482
+ y = ne;
483
+ var R = f && T === w && w.visualViewport ? w.visualViewport.width : (
482
484
  // $FlowFixMe[prop-missing]
483
485
  T[D]
484
486
  );
485
- v -= A - r.width, v *= l ? 1 : -1;
487
+ v -= R - r.width, v *= l ? 1 : -1;
486
488
  }
487
489
  }
488
490
  var N = Object.assign({
489
491
  position: s
490
- }, d && Li), $ = p === !0 ? Vi({
492
+ }, d && Hn), $ = p === !0 ? Fn({
491
493
  x: v,
492
494
  y: m
493
495
  }, J(t)) : {
@@ -500,13 +502,13 @@ function Bo(e) {
500
502
  }
501
503
  return Object.assign({}, N, (o = {}, o[b] = S ? m + "px" : "", o[y] = P ? v + "px" : "", o.transform = "", o));
502
504
  }
503
- function Hi(e) {
504
- var o = e.state, t = e.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, n = t.adaptive, a = n === void 0 ? !0 : n, s = t.roundOffsets, l = s === void 0 ? !0 : s, d = {
505
+ function Zn(e) {
506
+ var o = e.state, t = e.options, r = t.gpuAcceleration, n = r === void 0 ? !0 : r, i = t.adaptive, a = i === void 0 ? !0 : i, s = t.roundOffsets, l = s === void 0 ? !0 : s, d = {
505
507
  placement: fe(o.placement),
506
508
  variation: ke(o.placement),
507
509
  popper: o.elements.popper,
508
510
  popperRect: o.rects.popper,
509
- gpuAcceleration: i,
511
+ gpuAcceleration: n,
510
512
  isFixed: o.options.strategy === "fixed"
511
513
  };
512
514
  o.modifiersData.popperOffsets != null && (o.styles.popper = Object.assign({}, o.styles.popper, Bo(Object.assign({}, d, {
@@ -523,36 +525,36 @@ function Hi(e) {
523
525
  "data-popper-placement": o.placement
524
526
  });
525
527
  }
526
- const Fi = {
528
+ const Un = {
527
529
  name: "computeStyles",
528
530
  enabled: !0,
529
531
  phase: "beforeWrite",
530
- fn: Hi,
532
+ fn: Zn,
531
533
  data: {}
532
534
  };
533
535
  var ct = {
534
536
  passive: !0
535
537
  };
536
- function Zi(e) {
537
- var o = e.state, t = e.instance, r = e.options, i = r.scroll, n = i === void 0 ? !0 : i, a = r.resize, s = a === void 0 ? !0 : a, l = J(o.elements.popper), d = [].concat(o.scrollParents.reference, o.scrollParents.popper);
538
- return n && d.forEach(function(p) {
538
+ function qn(e) {
539
+ var o = e.state, t = e.instance, r = e.options, n = r.scroll, i = n === void 0 ? !0 : n, a = r.resize, s = a === void 0 ? !0 : a, l = J(o.elements.popper), d = [].concat(o.scrollParents.reference, o.scrollParents.popper);
540
+ return i && d.forEach(function(p) {
539
541
  p.addEventListener("scroll", t.update, ct);
540
542
  }), s && l.addEventListener("resize", t.update, ct), function() {
541
- n && d.forEach(function(p) {
543
+ i && d.forEach(function(p) {
542
544
  p.removeEventListener("scroll", t.update, ct);
543
545
  }), s && l.removeEventListener("resize", t.update, ct);
544
546
  };
545
547
  }
546
- const Ui = {
548
+ const Kn = {
547
549
  name: "eventListeners",
548
550
  enabled: !0,
549
551
  phase: "write",
550
552
  fn: function() {
551
553
  },
552
- effect: Zi,
554
+ effect: qn,
553
555
  data: {}
554
556
  };
555
- var qi = {
557
+ var Qn = {
556
558
  left: "right",
557
559
  right: "left",
558
560
  bottom: "top",
@@ -560,19 +562,19 @@ var qi = {
560
562
  };
561
563
  function bt(e) {
562
564
  return e.replace(/left|right|bottom|top/g, function(o) {
563
- return qi[o];
565
+ return Qn[o];
564
566
  });
565
567
  }
566
- var Ki = {
568
+ var Gn = {
567
569
  start: "end",
568
570
  end: "start"
569
571
  };
570
572
  function zo(e) {
571
573
  return e.replace(/start|end/g, function(o) {
572
- return Ki[o];
574
+ return Gn[o];
573
575
  });
574
576
  }
575
- function no(e) {
577
+ function io(e) {
576
578
  var o = J(e), t = o.pageXOffset, r = o.pageYOffset;
577
579
  return {
578
580
  scrollLeft: t,
@@ -580,48 +582,48 @@ function no(e) {
580
582
  };
581
583
  }
582
584
  function ao(e) {
583
- return Xe(Ce(e)).left + no(e).scrollLeft;
585
+ return We(Ce(e)).left + io(e).scrollLeft;
584
586
  }
585
- function Qi(e, o) {
586
- var t = J(e), r = Ce(e), i = t.visualViewport, n = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
587
- if (i) {
588
- n = i.width, a = i.height;
587
+ function Jn(e, o) {
588
+ var t = J(e), r = Ce(e), n = t.visualViewport, i = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
589
+ if (n) {
590
+ i = n.width, a = n.height;
589
591
  var d = rr();
590
- (d || !d && o === "fixed") && (s = i.offsetLeft, l = i.offsetTop);
592
+ (d || !d && o === "fixed") && (s = n.offsetLeft, l = n.offsetTop);
591
593
  }
592
594
  return {
593
- width: n,
595
+ width: i,
594
596
  height: a,
595
597
  x: s + ao(e),
596
598
  y: l
597
599
  };
598
600
  }
599
- function Gi(e) {
600
- var o, t = Ce(e), r = no(e), i = (o = e.ownerDocument) == null ? void 0 : o.body, n = Re(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Re(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + ao(e), l = -r.scrollTop;
601
- return ge(i || t).direction === "rtl" && (s += Re(t.clientWidth, i ? i.clientWidth : 0) - n), {
602
- width: n,
601
+ function In(e) {
602
+ var o, t = Ce(e), r = io(e), n = (o = e.ownerDocument) == null ? void 0 : o.body, i = Ae(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), a = Ae(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), s = -r.scrollLeft + ao(e), l = -r.scrollTop;
603
+ return ge(n || t).direction === "rtl" && (s += Ae(t.clientWidth, n ? n.clientWidth : 0) - i), {
604
+ width: i,
603
605
  height: a,
604
606
  x: s,
605
607
  y: l
606
608
  };
607
609
  }
608
610
  function so(e) {
609
- var o = ge(e), t = o.overflow, r = o.overflowX, i = o.overflowY;
610
- return /auto|scroll|overlay|hidden/.test(t + i + r);
611
+ var o = ge(e), t = o.overflow, r = o.overflowX, n = o.overflowY;
612
+ return /auto|scroll|overlay|hidden/.test(t + n + r);
611
613
  }
612
614
  function lr(e) {
613
- return ["html", "body", "#document"].indexOf(ce(e)) >= 0 ? e.ownerDocument.body : oe(e) && so(e) ? e : lr(Yt(e));
615
+ return ["html", "body", "#document"].indexOf(ce(e)) >= 0 ? e.ownerDocument.body : oe(e) && so(e) ? e : lr(Mt(e));
614
616
  }
615
617
  function Je(e, o) {
616
618
  var t;
617
619
  o === void 0 && (o = []);
618
- var r = lr(e), i = r === ((t = e.ownerDocument) == null ? void 0 : t.body), n = J(r), a = i ? [n].concat(n.visualViewport || [], so(r) ? r : []) : r, s = o.concat(a);
619
- return i ? s : (
620
+ var r = lr(e), n = r === ((t = e.ownerDocument) == null ? void 0 : t.body), i = J(r), a = n ? [i].concat(i.visualViewport || [], so(r) ? r : []) : r, s = o.concat(a);
621
+ return n ? s : (
620
622
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
621
- s.concat(Je(Yt(a)))
623
+ s.concat(Je(Mt(a)))
622
624
  );
623
625
  }
624
- function Qt(e) {
626
+ function qt(e) {
625
627
  return Object.assign({}, e, {
626
628
  left: e.x,
627
629
  top: e.y,
@@ -629,29 +631,29 @@ function Qt(e) {
629
631
  bottom: e.y + e.height
630
632
  });
631
633
  }
632
- function Ji(e, o) {
633
- var t = Xe(e, !1, o === "fixed");
634
+ function ei(e, o) {
635
+ var t = We(e, !1, o === "fixed");
634
636
  return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
635
637
  }
636
638
  function $o(e, o, t) {
637
- return o === tr ? Qt(Qi(e, t)) : De(o) ? Ji(o, t) : Qt(Gi(Ce(e)));
639
+ return o === tr ? qt(Jn(e, t)) : De(o) ? ei(o, t) : qt(In(Ce(e)));
638
640
  }
639
- function Ii(e) {
640
- var o = Je(Yt(e)), t = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, r = t && oe(e) ? rt(e) : e;
641
- return De(r) ? o.filter(function(i) {
642
- return De(i) && ir(i, r) && ce(i) !== "body";
641
+ function ti(e) {
642
+ var o = Je(Mt(e)), t = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, r = t && oe(e) ? rt(e) : e;
643
+ return De(r) ? o.filter(function(n) {
644
+ return De(n) && nr(n, r) && ce(n) !== "body";
643
645
  }) : [];
644
646
  }
645
- function en(e, o, t, r) {
646
- var i = o === "clippingParents" ? Ii(e) : [].concat(o), n = [].concat(i, [t]), a = n[0], s = n.reduce(function(l, d) {
647
+ function oi(e, o, t, r) {
648
+ var n = o === "clippingParents" ? ti(e) : [].concat(o), i = [].concat(n, [t]), a = i[0], s = i.reduce(function(l, d) {
647
649
  var p = $o(e, d, r);
648
- return l.top = Re(p.top, l.top), l.right = Ct(p.right, l.right), l.bottom = Ct(p.bottom, l.bottom), l.left = Re(p.left, l.left), l;
650
+ return l.top = Ae(p.top, l.top), l.right = Ct(p.right, l.right), l.bottom = Ct(p.bottom, l.bottom), l.left = Ae(p.left, l.left), l;
649
651
  }, $o(e, a, r));
650
652
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
651
653
  }
652
654
  function ur(e) {
653
- var o = e.reference, t = e.element, r = e.placement, i = r ? fe(r) : null, n = r ? ke(r) : null, a = o.x + o.width / 2 - t.width / 2, s = o.y + o.height / 2 - t.height / 2, l;
654
- switch (i) {
655
+ var o = e.reference, t = e.element, r = e.placement, n = r ? fe(r) : null, i = r ? ke(r) : null, a = o.x + o.width / 2 - t.width / 2, s = o.y + o.height / 2 - t.height / 2, l;
656
+ switch (n) {
655
657
  case H:
656
658
  l = {
657
659
  x: a,
@@ -664,7 +666,7 @@ function ur(e) {
664
666
  y: o.y + o.height
665
667
  };
666
668
  break;
667
- case ie:
669
+ case ne:
668
670
  l = {
669
671
  x: o.x + o.width,
670
672
  y: s
@@ -682,10 +684,10 @@ function ur(e) {
682
684
  y: o.y
683
685
  };
684
686
  }
685
- var d = i ? io(i) : null;
687
+ var d = n ? no(n) : null;
686
688
  if (d != null) {
687
689
  var p = d === "y" ? "height" : "width";
688
- switch (n) {
690
+ switch (i) {
689
691
  case $e:
690
692
  l[d] = l[d] - (o[p] / 2 - t[p] / 2);
691
693
  break;
@@ -698,29 +700,29 @@ function ur(e) {
698
700
  }
699
701
  function tt(e, o) {
700
702
  o === void 0 && (o = {});
701
- var t = o, r = t.placement, i = r === void 0 ? e.placement : r, n = t.strategy, a = n === void 0 ? e.strategy : n, s = t.boundary, l = s === void 0 ? wi : s, d = t.rootBoundary, p = d === void 0 ? tr : d, f = t.elementContext, c = f === void 0 ? qe : f, v = t.altBoundary, h = v === void 0 ? !1 : v, m = t.padding, g = m === void 0 ? 0 : m, P = ar(typeof g != "number" ? g : sr(g, ot)), S = c === qe ? Pi : qe, y = e.rects.popper, b = e.elements[h ? S : c], w = en(De(b) ? b : b.contextElement || Ce(e.elements.popper), l, p, a), T = Xe(e.elements.reference), O = ur({
703
+ var t = o, r = t.placement, n = r === void 0 ? e.placement : r, i = t.strategy, a = i === void 0 ? e.strategy : i, s = t.boundary, l = s === void 0 ? Tn : s, d = t.rootBoundary, p = d === void 0 ? tr : d, f = t.elementContext, c = f === void 0 ? qe : f, v = t.altBoundary, h = v === void 0 ? !1 : v, m = t.padding, g = m === void 0 ? 0 : m, P = ar(typeof g != "number" ? g : sr(g, ot)), S = c === qe ? Cn : qe, y = e.rects.popper, b = e.elements[h ? S : c], w = oi(De(b) ? b : b.contextElement || Ce(e.elements.popper), l, p, a), T = We(e.elements.reference), O = ur({
702
704
  reference: T,
703
705
  element: y,
704
706
  strategy: "absolute",
705
- placement: i
706
- }), D = Qt(Object.assign({}, y, O)), E = c === qe ? D : T, A = {
707
+ placement: n
708
+ }), D = qt(Object.assign({}, y, O)), E = c === qe ? D : T, R = {
707
709
  top: w.top - E.top + P.top,
708
710
  bottom: E.bottom - w.bottom + P.bottom,
709
711
  left: w.left - E.left + P.left,
710
712
  right: E.right - w.right + P.right
711
713
  }, N = e.modifiersData.offset;
712
714
  if (c === qe && N) {
713
- var $ = N[i];
714
- Object.keys(A).forEach(function(Y) {
715
- var Z = [ie, re].indexOf(Y) >= 0 ? 1 : -1, U = [H, re].indexOf(Y) >= 0 ? "y" : "x";
716
- A[Y] += $[U] * Z;
715
+ var $ = N[n];
716
+ Object.keys(R).forEach(function(Y) {
717
+ var Z = [ne, re].indexOf(Y) >= 0 ? 1 : -1, U = [H, re].indexOf(Y) >= 0 ? "y" : "x";
718
+ R[Y] += $[U] * Z;
717
719
  });
718
720
  }
719
- return A;
721
+ return R;
720
722
  }
721
- function tn(e, o) {
723
+ function ri(e, o) {
722
724
  o === void 0 && (o = {});
723
- var t = o, r = t.placement, i = t.boundary, n = t.rootBoundary, a = t.padding, s = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? or : l, p = ke(r), f = p ? s ? _o : _o.filter(function(h) {
725
+ var t = o, r = t.placement, n = t.boundary, i = t.rootBoundary, a = t.padding, s = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? or : l, p = ke(r), f = p ? s ? _o : _o.filter(function(h) {
724
726
  return ke(h) === p;
725
727
  }) : ot, c = f.filter(function(h) {
726
728
  return d.indexOf(h) >= 0;
@@ -729,8 +731,8 @@ function tn(e, o) {
729
731
  var v = c.reduce(function(h, m) {
730
732
  return h[m] = tt(e, {
731
733
  placement: m,
732
- boundary: i,
733
- rootBoundary: n,
734
+ boundary: n,
735
+ rootBoundary: i,
734
736
  padding: a
735
737
  })[fe(m)], h;
736
738
  }, {});
@@ -738,17 +740,17 @@ function tn(e, o) {
738
740
  return v[h] - v[m];
739
741
  });
740
742
  }
741
- function on(e) {
743
+ function ni(e) {
742
744
  if (fe(e) === to)
743
745
  return [];
744
746
  var o = bt(e);
745
747
  return [zo(e), o, zo(o)];
746
748
  }
747
- function rn(e) {
749
+ function ii(e) {
748
750
  var o = e.state, t = e.options, r = e.name;
749
751
  if (!o.modifiersData[r]._skip) {
750
- for (var i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !0 : a, l = t.fallbackPlacements, d = t.padding, p = t.boundary, f = t.rootBoundary, c = t.altBoundary, v = t.flipVariations, h = v === void 0 ? !0 : v, m = t.allowedAutoPlacements, g = o.options.placement, P = fe(g), S = P === g, y = l || (S || !h ? [bt(g)] : on(g)), b = [g].concat(y).reduce(function(K, Q) {
751
- return K.concat(fe(Q) === to ? tn(o, {
752
+ for (var n = t.mainAxis, i = n === void 0 ? !0 : n, a = t.altAxis, s = a === void 0 ? !0 : a, l = t.fallbackPlacements, d = t.padding, p = t.boundary, f = t.rootBoundary, c = t.altBoundary, v = t.flipVariations, h = v === void 0 ? !0 : v, m = t.allowedAutoPlacements, g = o.options.placement, P = fe(g), S = P === g, y = l || (S || !h ? [bt(g)] : ni(g)), b = [g].concat(y).reduce(function(K, Q) {
753
+ return K.concat(fe(Q) === to ? ri(o, {
752
754
  placement: Q,
753
755
  boundary: p,
754
756
  rootBoundary: f,
@@ -756,17 +758,17 @@ function rn(e) {
756
758
  flipVariations: h,
757
759
  allowedAutoPlacements: m
758
760
  }) : Q);
759
- }, []), w = o.rects.reference, T = o.rects.popper, O = /* @__PURE__ */ new Map(), D = !0, E = b[0], A = 0; A < b.length; A++) {
760
- var N = b[A], $ = fe(N), Y = ke(N) === $e, Z = [H, re].indexOf($) >= 0, U = Z ? "width" : "height", B = tt(o, {
761
+ }, []), w = o.rects.reference, T = o.rects.popper, O = /* @__PURE__ */ new Map(), D = !0, E = b[0], R = 0; R < b.length; R++) {
762
+ var N = b[R], $ = fe(N), Y = ke(N) === $e, Z = [H, re].indexOf($) >= 0, U = Z ? "width" : "height", B = tt(o, {
761
763
  placement: N,
762
764
  boundary: p,
763
765
  rootBoundary: f,
764
766
  altBoundary: c,
765
767
  padding: d
766
- }), W = Z ? Y ? ie : F : Y ? re : H;
767
- w[U] > T[U] && (W = bt(W));
768
- var X = bt(W), q = [];
769
- if (n && q.push(B[$] <= 0), s && q.push(B[W] <= 0, B[X] <= 0), q.every(function(K) {
768
+ }), X = Z ? Y ? ne : F : Y ? re : H;
769
+ w[U] > T[U] && (X = bt(X));
770
+ var W = bt(X), q = [];
771
+ if (i && q.push(B[$] <= 0), s && q.push(B[X] <= 0, B[W] <= 0), q.every(function(K) {
770
772
  return K;
771
773
  })) {
772
774
  E = N, D = !1;
@@ -786,24 +788,24 @@ function rn(e) {
786
788
  if (le)
787
789
  return E = le, "break";
788
790
  }, ve = be; ve > 0; ve--) {
789
- var ne = se(ve);
790
- if (ne === "break")
791
+ var ie = se(ve);
792
+ if (ie === "break")
791
793
  break;
792
794
  }
793
795
  o.placement !== E && (o.modifiersData[r]._skip = !0, o.placement = E, o.reset = !0);
794
796
  }
795
797
  }
796
- const nn = {
798
+ const ai = {
797
799
  name: "flip",
798
800
  enabled: !0,
799
801
  phase: "main",
800
- fn: rn,
802
+ fn: ii,
801
803
  requiresIfExists: ["offset"],
802
804
  data: {
803
805
  _skip: !1
804
806
  }
805
807
  };
806
- function Wo(e, o, t) {
808
+ function Xo(e, o, t) {
807
809
  return t === void 0 && (t = {
808
810
  x: 0,
809
811
  y: 0
@@ -814,17 +816,17 @@ function Wo(e, o, t) {
814
816
  left: e.left - o.width - t.x
815
817
  };
816
818
  }
817
- function Xo(e) {
818
- return [H, ie, re, F].some(function(o) {
819
+ function Wo(e) {
820
+ return [H, ne, re, F].some(function(o) {
819
821
  return e[o] >= 0;
820
822
  });
821
823
  }
822
- function an(e) {
823
- var o = e.state, t = e.name, r = o.rects.reference, i = o.rects.popper, n = o.modifiersData.preventOverflow, a = tt(o, {
824
+ function si(e) {
825
+ var o = e.state, t = e.name, r = o.rects.reference, n = o.rects.popper, i = o.modifiersData.preventOverflow, a = tt(o, {
824
826
  elementContext: "reference"
825
827
  }), s = tt(o, {
826
828
  altBoundary: !0
827
- }), l = Wo(a, r), d = Wo(s, i, n), p = Xo(l), f = Xo(d);
829
+ }), l = Xo(a, r), d = Xo(s, n, i), p = Wo(l), f = Wo(d);
828
830
  o.modifiersData[t] = {
829
831
  referenceClippingOffsets: l,
830
832
  popperEscapeOffsets: d,
@@ -835,18 +837,18 @@ function an(e) {
835
837
  "data-popper-escaped": f
836
838
  });
837
839
  }
838
- const sn = {
840
+ const li = {
839
841
  name: "hide",
840
842
  enabled: !0,
841
843
  phase: "main",
842
844
  requiresIfExists: ["preventOverflow"],
843
- fn: an
845
+ fn: si
844
846
  };
845
- function ln(e, o, t) {
846
- var r = fe(e), i = [F, H].indexOf(r) >= 0 ? -1 : 1, n = typeof t == "function" ? t(Object.assign({}, o, {
847
+ function ui(e, o, t) {
848
+ var r = fe(e), n = [F, H].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, o, {
847
849
  placement: e
848
- })) : t, a = n[0], s = n[1];
849
- return a = a || 0, s = (s || 0) * i, [F, ie].indexOf(r) >= 0 ? {
850
+ })) : t, a = i[0], s = i[1];
851
+ return a = a || 0, s = (s || 0) * n, [F, ne].indexOf(r) >= 0 ? {
850
852
  x: s,
851
853
  y: a
852
854
  } : {
@@ -854,20 +856,20 @@ function ln(e, o, t) {
854
856
  y: s
855
857
  };
856
858
  }
857
- function un(e) {
858
- var o = e.state, t = e.options, r = e.name, i = t.offset, n = i === void 0 ? [0, 0] : i, a = or.reduce(function(p, f) {
859
- return p[f] = ln(f, o.rects, n), p;
859
+ function pi(e) {
860
+ var o = e.state, t = e.options, r = e.name, n = t.offset, i = n === void 0 ? [0, 0] : n, a = or.reduce(function(p, f) {
861
+ return p[f] = ui(f, o.rects, i), p;
860
862
  }, {}), s = a[o.placement], l = s.x, d = s.y;
861
863
  o.modifiersData.popperOffsets != null && (o.modifiersData.popperOffsets.x += l, o.modifiersData.popperOffsets.y += d), o.modifiersData[r] = a;
862
864
  }
863
- const pn = {
865
+ const di = {
864
866
  name: "offset",
865
867
  enabled: !0,
866
868
  phase: "main",
867
869
  requires: ["popperOffsets"],
868
- fn: un
870
+ fn: pi
869
871
  };
870
- function dn(e) {
872
+ function fi(e) {
871
873
  var o = e.state, t = e.name;
872
874
  o.modifiersData[t] = ur({
873
875
  reference: o.rects.reference,
@@ -876,25 +878,25 @@ function dn(e) {
876
878
  placement: o.placement
877
879
  });
878
880
  }
879
- const fn = {
881
+ const ci = {
880
882
  name: "popperOffsets",
881
883
  enabled: !0,
882
884
  phase: "read",
883
- fn: dn,
885
+ fn: fi,
884
886
  data: {}
885
887
  };
886
- function cn(e) {
888
+ function vi(e) {
887
889
  return e === "x" ? "y" : "x";
888
890
  }
889
- function vn(e) {
890
- var o = e.state, t = e.options, r = e.name, i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !1 : a, l = t.boundary, d = t.rootBoundary, p = t.altBoundary, f = t.padding, c = t.tether, v = c === void 0 ? !0 : c, h = t.tetherOffset, m = h === void 0 ? 0 : h, g = tt(o, {
891
+ function mi(e) {
892
+ var o = e.state, t = e.options, r = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, a = t.altAxis, s = a === void 0 ? !1 : a, l = t.boundary, d = t.rootBoundary, p = t.altBoundary, f = t.padding, c = t.tether, v = c === void 0 ? !0 : c, h = t.tetherOffset, m = h === void 0 ? 0 : h, g = tt(o, {
891
893
  boundary: l,
892
894
  rootBoundary: d,
893
895
  padding: f,
894
896
  altBoundary: p
895
- }), P = fe(o.placement), S = ke(o.placement), y = !S, b = io(P), w = cn(b), T = o.modifiersData.popperOffsets, O = o.rects.reference, D = o.rects.popper, E = typeof m == "function" ? m(Object.assign({}, o.rects, {
897
+ }), P = fe(o.placement), S = ke(o.placement), y = !S, b = no(P), w = vi(b), T = o.modifiersData.popperOffsets, O = o.rects.reference, D = o.rects.popper, E = typeof m == "function" ? m(Object.assign({}, o.rects, {
896
898
  placement: o.placement
897
- })) : m, A = typeof E == "number" ? {
899
+ })) : m, R = typeof E == "number" ? {
898
900
  mainAxis: E,
899
901
  altAxis: E
900
902
  } : Object.assign({
@@ -905,43 +907,43 @@ function vn(e) {
905
907
  y: 0
906
908
  };
907
909
  if (T) {
908
- if (n) {
909
- var Y, Z = b === "y" ? H : F, U = b === "y" ? re : ie, B = b === "y" ? "height" : "width", W = T[b], X = W + g[Z], q = W - g[U], be = v ? -D[B] / 2 : 0, se = S === $e ? O[B] : D[B], ve = S === $e ? -D[B] : -O[B], ne = o.elements.arrow, K = v && ne ? ro(ne) : {
910
+ if (i) {
911
+ var Y, Z = b === "y" ? H : F, U = b === "y" ? re : ne, B = b === "y" ? "height" : "width", X = T[b], W = X + g[Z], q = X - g[U], be = v ? -D[B] / 2 : 0, se = S === $e ? O[B] : D[B], ve = S === $e ? -D[B] : -O[B], ie = o.elements.arrow, K = v && ie ? ro(ie) : {
910
912
  width: 0,
911
913
  height: 0
912
- }, Q = o.modifiersData["arrow#persistent"] ? o.modifiersData["arrow#persistent"].padding : nr(), le = Q[Z], ue = Q[U], k = Ge(0, O[B], K[B]), L = y ? O[B] / 2 - be - k - le - A.mainAxis : se - k - le - A.mainAxis, me = y ? -O[B] / 2 + be + k + ue + A.mainAxis : ve + k + ue + A.mainAxis, j = o.elements.arrow && rt(o.elements.arrow), Le = j ? b === "y" ? j.clientTop || 0 : j.clientLeft || 0 : 0, _e = (Y = N == null ? void 0 : N[b]) != null ? Y : 0, nt = W + L - _e - Le, I = W + me - _e, Ye = Ge(v ? Ct(X, nt) : X, W, v ? Re(q, I) : q);
913
- T[b] = Ye, $[b] = Ye - W;
914
+ }, Q = o.modifiersData["arrow#persistent"] ? o.modifiersData["arrow#persistent"].padding : ir(), le = Q[Z], ue = Q[U], k = Ge(0, O[B], K[B]), L = y ? O[B] / 2 - be - k - le - R.mainAxis : se - k - le - R.mainAxis, me = y ? -O[B] / 2 + be + k + ue + R.mainAxis : ve + k + ue + R.mainAxis, j = o.elements.arrow && rt(o.elements.arrow), Le = j ? b === "y" ? j.clientTop || 0 : j.clientLeft || 0 : 0, _e = (Y = N == null ? void 0 : N[b]) != null ? Y : 0, it = X + L - _e - Le, I = X + me - _e, Ye = Ge(v ? Ct(W, it) : W, X, v ? Ae(q, I) : q);
915
+ T[b] = Ye, $[b] = Ye - X;
914
916
  }
915
917
  if (s) {
916
- var at, V = b === "x" ? H : F, st = b === "x" ? re : ie, ae = T[w], Be = w === "y" ? "height" : "width", Oe = ae + g[V], ze = ae - g[st], ye = [H, F].indexOf(P) !== -1, Ee = (at = N == null ? void 0 : N[w]) != null ? at : 0, pe = ye ? Oe : ae - O[Be] - D[Be] - Ee + A.altAxis, Ve = ye ? ae + O[Be] + D[Be] - Ee - A.altAxis : ze, lt = v && ye ? $i(pe, ae, Ve) : Ge(v ? pe : Oe, ae, v ? Ve : ze);
918
+ var at, V = b === "x" ? H : F, st = b === "x" ? re : ne, ae = T[w], Be = w === "y" ? "height" : "width", Oe = ae + g[V], ze = ae - g[st], ye = [H, F].indexOf(P) !== -1, Ee = (at = N == null ? void 0 : N[w]) != null ? at : 0, pe = ye ? Oe : ae - O[Be] - D[Be] - Ee + R.altAxis, Ve = ye ? ae + O[Be] + D[Be] - Ee - R.altAxis : ze, lt = v && ye ? Wn(pe, ae, Ve) : Ge(v ? pe : Oe, ae, v ? Ve : ze);
917
919
  T[w] = lt, $[w] = lt - ae;
918
920
  }
919
921
  o.modifiersData[r] = $;
920
922
  }
921
923
  }
922
- const mn = {
924
+ const hi = {
923
925
  name: "preventOverflow",
924
926
  enabled: !0,
925
927
  phase: "main",
926
- fn: vn,
928
+ fn: mi,
927
929
  requiresIfExists: ["offset"]
928
930
  };
929
- function hn(e) {
931
+ function gi(e) {
930
932
  return {
931
933
  scrollLeft: e.scrollLeft,
932
934
  scrollTop: e.scrollTop
933
935
  };
934
936
  }
935
- function gn(e) {
936
- return e === J(e) || !oe(e) ? no(e) : hn(e);
937
+ function bi(e) {
938
+ return e === J(e) || !oe(e) ? io(e) : gi(e);
937
939
  }
938
- function bn(e) {
939
- var o = e.getBoundingClientRect(), t = We(o.width) / e.offsetWidth || 1, r = We(o.height) / e.offsetHeight || 1;
940
+ function yi(e) {
941
+ var o = e.getBoundingClientRect(), t = Xe(o.width) / e.offsetWidth || 1, r = Xe(o.height) / e.offsetHeight || 1;
940
942
  return t !== 1 || r !== 1;
941
943
  }
942
- function yn(e, o, t) {
944
+ function wi(e, o, t) {
943
945
  t === void 0 && (t = !1);
944
- var r = oe(o), i = oe(o) && bn(o), n = Ce(o), a = Xe(e, i, t), s = {
946
+ var r = oe(o), n = oe(o) && yi(o), i = Ce(o), a = We(e, n, t), s = {
945
947
  scrollLeft: 0,
946
948
  scrollTop: 0
947
949
  }, l = {
@@ -949,41 +951,41 @@ function yn(e, o, t) {
949
951
  y: 0
950
952
  };
951
953
  return (r || !r && !t) && ((ce(o) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
952
- so(n)) && (s = gn(o)), oe(o) ? (l = Xe(o, !0), l.x += o.clientLeft, l.y += o.clientTop) : n && (l.x = ao(n))), {
954
+ so(i)) && (s = bi(o)), oe(o) ? (l = We(o, !0), l.x += o.clientLeft, l.y += o.clientTop) : i && (l.x = ao(i))), {
953
955
  x: a.left + s.scrollLeft - l.x,
954
956
  y: a.top + s.scrollTop - l.y,
955
957
  width: a.width,
956
958
  height: a.height
957
959
  };
958
960
  }
959
- function wn(e) {
961
+ function Pi(e) {
960
962
  var o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), r = [];
961
- e.forEach(function(n) {
962
- o.set(n.name, n);
963
+ e.forEach(function(i) {
964
+ o.set(i.name, i);
963
965
  });
964
- function i(n) {
965
- t.add(n.name);
966
- var a = [].concat(n.requires || [], n.requiresIfExists || []);
966
+ function n(i) {
967
+ t.add(i.name);
968
+ var a = [].concat(i.requires || [], i.requiresIfExists || []);
967
969
  a.forEach(function(s) {
968
970
  if (!t.has(s)) {
969
971
  var l = o.get(s);
970
- l && i(l);
972
+ l && n(l);
971
973
  }
972
- }), r.push(n);
974
+ }), r.push(i);
973
975
  }
974
- return e.forEach(function(n) {
975
- t.has(n.name) || i(n);
976
+ return e.forEach(function(i) {
977
+ t.has(i.name) || n(i);
976
978
  }), r;
977
979
  }
978
- function Pn(e) {
979
- var o = wn(e);
980
- return Ni.reduce(function(t, r) {
981
- return t.concat(o.filter(function(i) {
982
- return i.phase === r;
980
+ function Ti(e) {
981
+ var o = Pi(e);
982
+ return _n.reduce(function(t, r) {
983
+ return t.concat(o.filter(function(n) {
984
+ return n.phase === r;
983
985
  }));
984
986
  }, []);
985
987
  }
986
- function Tn(e) {
988
+ function Ci(e) {
987
989
  var o;
988
990
  return function() {
989
991
  return o || (o = new Promise(function(t) {
@@ -993,12 +995,12 @@ function Tn(e) {
993
995
  })), o;
994
996
  };
995
997
  }
996
- function Cn(e) {
998
+ function Si(e) {
997
999
  var o = e.reduce(function(t, r) {
998
- var i = t[r.name];
999
- return t[r.name] = i ? Object.assign({}, i, r, {
1000
- options: Object.assign({}, i.options, r.options),
1001
- data: Object.assign({}, i.data, r.data)
1000
+ var n = t[r.name];
1001
+ return t[r.name] = n ? Object.assign({}, n, r, {
1002
+ options: Object.assign({}, n.options, r.options),
1003
+ data: Object.assign({}, n.data, r.data)
1002
1004
  }) : r, t;
1003
1005
  }, {});
1004
1006
  return Object.keys(o).map(function(t) {
@@ -1017,15 +1019,15 @@ function jo() {
1017
1019
  return !(r && typeof r.getBoundingClientRect == "function");
1018
1020
  });
1019
1021
  }
1020
- function Sn(e) {
1022
+ function Oi(e) {
1021
1023
  e === void 0 && (e = {});
1022
- var o = e, t = o.defaultModifiers, r = t === void 0 ? [] : t, i = o.defaultOptions, n = i === void 0 ? ko : i;
1024
+ var o = e, t = o.defaultModifiers, r = t === void 0 ? [] : t, n = o.defaultOptions, i = n === void 0 ? ko : n;
1023
1025
  return function(s, l, d) {
1024
- d === void 0 && (d = n);
1026
+ d === void 0 && (d = i);
1025
1027
  var p = {
1026
1028
  placement: "bottom",
1027
1029
  orderedModifiers: [],
1028
- options: Object.assign({}, ko, n),
1030
+ options: Object.assign({}, ko, i),
1029
1031
  modifiersData: {},
1030
1032
  elements: {
1031
1033
  reference: s,
@@ -1037,11 +1039,11 @@ function Sn(e) {
1037
1039
  state: p,
1038
1040
  setOptions: function(P) {
1039
1041
  var S = typeof P == "function" ? P(p.options) : P;
1040
- m(), p.options = Object.assign({}, n, p.options, S), p.scrollParents = {
1042
+ m(), p.options = Object.assign({}, i, p.options, S), p.scrollParents = {
1041
1043
  reference: De(s) ? Je(s) : s.contextElement ? Je(s.contextElement) : [],
1042
1044
  popper: Je(l)
1043
1045
  };
1044
- var y = Pn(Cn([].concat(r, p.options.modifiers)));
1046
+ var y = Ti(Si([].concat(r, p.options.modifiers)));
1045
1047
  return p.orderedModifiers = y.filter(function(b) {
1046
1048
  return b.enabled;
1047
1049
  }), h(), v.update();
@@ -1056,10 +1058,10 @@ function Sn(e) {
1056
1058
  var P = p.elements, S = P.reference, y = P.popper;
1057
1059
  if (jo(S, y)) {
1058
1060
  p.rects = {
1059
- reference: yn(S, rt(y), p.options.strategy === "fixed"),
1061
+ reference: wi(S, rt(y), p.options.strategy === "fixed"),
1060
1062
  popper: ro(y)
1061
- }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(A) {
1062
- return p.modifiersData[A.name] = Object.assign({}, A.data);
1063
+ }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(R) {
1064
+ return p.modifiersData[R.name] = Object.assign({}, R.data);
1063
1065
  });
1064
1066
  for (var b = 0; b < p.orderedModifiers.length; b++) {
1065
1067
  if (p.reset === !0) {
@@ -1079,7 +1081,7 @@ function Sn(e) {
1079
1081
  },
1080
1082
  // Async and optimistically optimized update – it will not be executed if
1081
1083
  // not necessary (debounced to run at most once-per-tick)
1082
- update: Tn(function() {
1084
+ update: Ci(function() {
1083
1085
  return new Promise(function(g) {
1084
1086
  v.forceUpdate(), g(p);
1085
1087
  });
@@ -1116,15 +1118,15 @@ function Sn(e) {
1116
1118
  return v;
1117
1119
  };
1118
1120
  }
1119
- var On = [Ui, fn, Fi, Yi, pn, nn, mn, ji, sn], En = /* @__PURE__ */ Sn({
1120
- defaultModifiers: On
1121
+ var Ei = [Kn, ci, Un, zn, di, ai, hi, Vn, li], Ri = /* @__PURE__ */ Oi({
1122
+ defaultModifiers: Ei
1121
1123
  });
1122
- function An(e) {
1123
- return Dt("MuiPopper", e);
1124
+ function Ai(e) {
1125
+ return It("MuiPopper", e);
1124
1126
  }
1125
- Nt("MuiPopper", ["root"]);
1126
- const Rn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], xn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
1127
- function Dn(e, o) {
1127
+ eo("MuiPopper", ["root"]);
1128
+ const xi = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Di = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
1129
+ function Ni(e, o) {
1128
1130
  if (o === "ltr")
1129
1131
  return e;
1130
1132
  switch (e) {
@@ -1143,19 +1145,19 @@ function Dn(e, o) {
1143
1145
  function St(e) {
1144
1146
  return typeof e == "function" ? e() : e;
1145
1147
  }
1146
- function Bt(e) {
1148
+ function _t(e) {
1147
1149
  return e.nodeType !== void 0;
1148
1150
  }
1149
- function Nn(e) {
1150
- return !Bt(e);
1151
+ function Mi(e) {
1152
+ return !_t(e);
1151
1153
  }
1152
- const Mn = () => _t({
1154
+ const _i = () => Nt({
1153
1155
  root: ["root"]
1154
- }, yi(An)), _n = {}, Yn = /* @__PURE__ */ R.forwardRef(function(o, t) {
1156
+ }, Pn(Ai)), Yi = {}, Bi = /* @__PURE__ */ A.forwardRef(function(o, t) {
1155
1157
  var r;
1156
1158
  const {
1157
- anchorEl: i,
1158
- children: n,
1159
+ anchorEl: n,
1160
+ children: i,
1159
1161
  direction: a,
1160
1162
  disablePortal: s,
1161
1163
  modifiers: l,
@@ -1168,24 +1170,24 @@ const Mn = () => _t({
1168
1170
  TransitionProps: m
1169
1171
  // @ts-ignore internal logic
1170
1172
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1171
- } = o, g = Ne(o, Rn), P = R.useRef(null), S = qt(P, t), y = R.useRef(null), b = qt(y, c), w = R.useRef(b);
1173
+ } = o, g = Ne(o, xi), P = A.useRef(null), S = Zt(P, t), y = A.useRef(null), b = Zt(y, c), w = A.useRef(b);
1172
1174
  Mo(() => {
1173
1175
  w.current = b;
1174
- }, [b]), R.useImperativeHandle(c, () => y.current, []);
1175
- const T = Dn(p, a), [O, D] = R.useState(T), [E, A] = R.useState(St(i));
1176
- R.useEffect(() => {
1176
+ }, [b]), A.useImperativeHandle(c, () => y.current, []);
1177
+ const T = Ni(p, a), [O, D] = A.useState(T), [E, R] = A.useState(St(n));
1178
+ A.useEffect(() => {
1177
1179
  y.current && y.current.forceUpdate();
1178
- }), R.useEffect(() => {
1179
- i && A(St(i));
1180
- }, [i]), Mo(() => {
1180
+ }), A.useEffect(() => {
1181
+ n && R(St(n));
1182
+ }, [n]), Mo(() => {
1181
1183
  if (!E || !d)
1182
1184
  return;
1183
- const U = (X) => {
1184
- D(X.placement);
1185
+ const U = (W) => {
1186
+ D(W.placement);
1185
1187
  };
1186
- if (process.env.NODE_ENV !== "production" && E && Bt(E) && E.nodeType === 1) {
1187
- const X = E.getBoundingClientRect();
1188
- process.env.NODE_ENV !== "test" && X.top === 0 && X.left === 0 && X.right === 0 && X.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(`
1188
+ if (process.env.NODE_ENV !== "production" && E && _t(E) && E.nodeType === 1) {
1189
+ const W = E.getBoundingClientRect();
1190
+ process.env.NODE_ENV !== "test" && W.top === 0 && W.left === 0 && W.right === 0 && W.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(`
1189
1191
  `));
1190
1192
  }
1191
1193
  let B = [{
@@ -1203,26 +1205,26 @@ const Mn = () => _t({
1203
1205
  enabled: !0,
1204
1206
  phase: "afterWrite",
1205
1207
  fn: ({
1206
- state: X
1208
+ state: W
1207
1209
  }) => {
1208
- U(X);
1210
+ U(W);
1209
1211
  }
1210
1212
  }];
1211
1213
  l != null && (B = B.concat(l)), f && f.modifiers != null && (B = B.concat(f.modifiers));
1212
- const W = En(E, P.current, C({
1214
+ const X = Ri(E, P.current, C({
1213
1215
  placement: T
1214
1216
  }, f, {
1215
1217
  modifiers: B
1216
1218
  }));
1217
- return w.current(W), () => {
1218
- W.destroy(), w.current(null);
1219
+ return w.current(X), () => {
1220
+ X.destroy(), w.current(null);
1219
1221
  };
1220
1222
  }, [E, s, l, d, f, T]);
1221
1223
  const N = {
1222
1224
  placement: O
1223
1225
  };
1224
1226
  m !== null && (N.TransitionProps = m);
1225
- const $ = Mn(), Y = (r = h.root) != null ? r : "div", Z = Zr({
1227
+ const $ = _i(), Y = (r = h.root) != null ? r : "div", Z = Ir({
1226
1228
  elementType: Y,
1227
1229
  externalSlotProps: v.root,
1228
1230
  externalForwardedProps: g,
@@ -1234,26 +1236,26 @@ const Mn = () => _t({
1234
1236
  className: $.root
1235
1237
  });
1236
1238
  return /* @__PURE__ */ _(Y, C({}, Z, {
1237
- children: typeof n == "function" ? n(N) : n
1239
+ children: typeof i == "function" ? i(N) : i
1238
1240
  }));
1239
- }), pr = /* @__PURE__ */ R.forwardRef(function(o, t) {
1241
+ }), pr = /* @__PURE__ */ A.forwardRef(function(o, t) {
1240
1242
  const {
1241
1243
  anchorEl: r,
1242
- children: i,
1243
- container: n,
1244
+ children: n,
1245
+ container: i,
1244
1246
  direction: a = "ltr",
1245
1247
  disablePortal: s = !1,
1246
1248
  keepMounted: l = !1,
1247
1249
  modifiers: d,
1248
1250
  open: p,
1249
1251
  placement: f = "bottom",
1250
- popperOptions: c = _n,
1252
+ popperOptions: c = Yi,
1251
1253
  popperRef: v,
1252
1254
  style: h,
1253
1255
  transition: m = !1,
1254
1256
  slotProps: g = {},
1255
1257
  slots: P = {}
1256
- } = o, S = Ne(o, xn), [y, b] = R.useState(!0), w = () => {
1258
+ } = o, S = Ne(o, Di), [y, b] = A.useState(!0), w = () => {
1257
1259
  b(!1);
1258
1260
  }, T = () => {
1259
1261
  b(!0);
@@ -1261,21 +1263,21 @@ const Mn = () => _t({
1261
1263
  if (!l && !p && (!m || y))
1262
1264
  return null;
1263
1265
  let O;
1264
- if (n)
1265
- O = n;
1266
+ if (i)
1267
+ O = i;
1266
1268
  else if (r) {
1267
- const A = St(r);
1268
- O = A && Bt(A) ? Do(A).body : Do(null).body;
1269
+ const R = St(r);
1270
+ O = R && _t(R) ? Do(R).body : Do(null).body;
1269
1271
  }
1270
1272
  const D = !p && l && (!m || y) ? "none" : void 0, E = m ? {
1271
1273
  in: p,
1272
1274
  onEnter: w,
1273
1275
  onExited: T
1274
1276
  } : void 0;
1275
- return /* @__PURE__ */ _(Fr, {
1277
+ return /* @__PURE__ */ _(Jr, {
1276
1278
  disablePortal: s,
1277
1279
  container: O,
1278
- children: /* @__PURE__ */ _(Yn, C({
1280
+ children: /* @__PURE__ */ _(Bi, C({
1279
1281
  anchorEl: r,
1280
1282
  direction: a,
1281
1283
  disablePortal: s,
@@ -1297,7 +1299,7 @@ const Mn = () => _t({
1297
1299
  display: D
1298
1300
  }, h),
1299
1301
  TransitionProps: E,
1300
- children: i
1302
+ children: n
1301
1303
  }))
1302
1304
  });
1303
1305
  });
@@ -1312,15 +1314,15 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
1312
1314
  * It's used to set the position of the popper.
1313
1315
  * The return value will passed as the reference object of the Popper instance.
1314
1316
  */
1315
- anchorEl: Jo(u.oneOfType([Pt, u.object, u.func]), (e) => {
1317
+ anchorEl: Jo(u.oneOfType([Tt, u.object, u.func]), (e) => {
1316
1318
  if (e.open) {
1317
1319
  const o = St(e.anchorEl);
1318
- if (o && Bt(o) && o.nodeType === 1) {
1320
+ if (o && _t(o) && o.nodeType === 1) {
1319
1321
  const t = o.getBoundingClientRect();
1320
1322
  if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
1321
1323
  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(`
1322
1324
  `));
1323
- } else if (!o || typeof o.getBoundingClientRect != "function" || Nn(o) && o.contextElement != null && o.contextElement.nodeType !== 1)
1325
+ } else if (!o || typeof o.getBoundingClientRect != "function" || Mi(o) && o.contextElement != null && o.contextElement.nodeType !== 1)
1324
1326
  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(`
1325
1327
  `));
1326
1328
  }
@@ -1337,7 +1339,7 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
1337
1339
  * By default, it uses the body of the top-level document object,
1338
1340
  * so it's simply `document.body` most of the time.
1339
1341
  */
1340
- container: u.oneOfType([Pt, u.func]),
1342
+ container: u.oneOfType([Tt, u.func]),
1341
1343
  /**
1342
1344
  * Direction of the text.
1343
1345
  * @default 'ltr'
@@ -1419,13 +1421,13 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
1419
1421
  */
1420
1422
  transition: u.bool
1421
1423
  });
1422
- const Bn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], zn = Me(pr, {
1424
+ const zi = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], $i = Me(pr, {
1423
1425
  name: "MuiPopper",
1424
1426
  slot: "Root",
1425
1427
  overridesResolver: (e, o) => o.root
1426
- })({}), dr = /* @__PURE__ */ R.forwardRef(function(o, t) {
1428
+ })({}), dr = /* @__PURE__ */ A.forwardRef(function(o, t) {
1427
1429
  var r;
1428
- const i = ni(), n = Mt({
1430
+ const n = an(), i = Dt({
1429
1431
  props: o,
1430
1432
  name: "MuiPopper"
1431
1433
  }), {
@@ -1444,7 +1446,7 @@ const Bn = ["anchorEl", "component", "components", "componentsProps", "container
1444
1446
  transition: S,
1445
1447
  slots: y,
1446
1448
  slotProps: b
1447
- } = n, w = Ne(n, Bn), T = (r = y == null ? void 0 : y.root) != null ? r : l == null ? void 0 : l.Root, O = C({
1449
+ } = i, w = Ne(i, zi), T = (r = y == null ? void 0 : y.root) != null ? r : l == null ? void 0 : l.Root, O = C({
1448
1450
  anchorEl: a,
1449
1451
  container: p,
1450
1452
  disablePortal: f,
@@ -1456,9 +1458,9 @@ const Bn = ["anchorEl", "component", "components", "componentsProps", "container
1456
1458
  popperRef: P,
1457
1459
  transition: S
1458
1460
  }, w);
1459
- return /* @__PURE__ */ _(zn, C({
1461
+ return /* @__PURE__ */ _($i, C({
1460
1462
  as: s,
1461
- direction: i == null ? void 0 : i.direction,
1463
+ direction: n == null ? void 0 : n.direction,
1462
1464
  slots: {
1463
1465
  root: T
1464
1466
  },
@@ -1478,7 +1480,7 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
1478
1480
  * It's used to set the position of the popper.
1479
1481
  * The return value will passed as the reference object of the Popper instance.
1480
1482
  */
1481
- anchorEl: u.oneOfType([Pt, u.object, u.func]),
1483
+ anchorEl: u.oneOfType([Tt, u.object, u.func]),
1482
1484
  /**
1483
1485
  * Popper render function or node.
1484
1486
  */
@@ -1510,7 +1512,7 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
1510
1512
  * By default, it uses the body of the top-level document object,
1511
1513
  * so it's simply `document.body` most of the time.
1512
1514
  */
1513
- container: u.oneOfType([Pt, u.func]),
1515
+ container: u.oneOfType([Tt, u.func]),
1514
1516
  /**
1515
1517
  * The `children` will be under the DOM hierarchy of the parent component.
1516
1518
  * @default false
@@ -1591,11 +1593,11 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
1591
1593
  */
1592
1594
  transition: u.bool
1593
1595
  });
1594
- const fr = dr, $n = Jr(), cr = pi({
1595
- themeId: ai,
1596
- defaultTheme: $n,
1596
+ const fr = dr, Xi = Ur(), cr = fn({
1597
+ themeId: sn,
1598
+ defaultTheme: Xi,
1597
1599
  defaultClassName: "MuiBox-root",
1598
- generateClassName: Ir.generate
1600
+ generateClassName: qr.generate
1599
1601
  });
1600
1602
  process.env.NODE_ENV !== "production" && (cr.propTypes = {
1601
1603
  // ----------------------------- Warning --------------------------------
@@ -1616,27 +1618,22 @@ process.env.NODE_ENV !== "production" && (cr.propTypes = {
1616
1618
  */
1617
1619
  sx: u.oneOfType([u.arrayOf(u.oneOfType([u.func, u.object, u.bool])), u.func, u.object])
1618
1620
  });
1619
- const Wn = cr;
1620
- function Xn(e) {
1621
- return Dt("MuiDivider", e);
1622
- }
1623
- Nt("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
1624
- const kn = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], jn = (e) => {
1621
+ const Wi = cr, ki = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], ji = (e) => {
1625
1622
  const {
1626
1623
  absolute: o,
1627
1624
  children: t,
1628
1625
  classes: r,
1629
- flexItem: i,
1630
- light: n,
1626
+ flexItem: n,
1627
+ light: i,
1631
1628
  orientation: a,
1632
1629
  textAlign: s,
1633
1630
  variant: l
1634
1631
  } = e;
1635
- return _t({
1636
- root: ["root", o && "absolute", l, n && "light", a === "vertical" && "vertical", i && "flexItem", t && "withChildren", t && a === "vertical" && "withChildrenVertical", s === "right" && a !== "vertical" && "textAlignRight", s === "left" && a !== "vertical" && "textAlignLeft"],
1632
+ return Nt({
1633
+ root: ["root", o && "absolute", l, i && "light", a === "vertical" && "vertical", n && "flexItem", t && "withChildren", t && a === "vertical" && "withChildrenVertical", s === "right" && a !== "vertical" && "textAlignRight", s === "left" && a !== "vertical" && "textAlignLeft"],
1637
1634
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
1638
- }, Xn, r);
1639
- }, Ln = Me("div", {
1635
+ }, pn, r);
1636
+ }, Li = Me("div", {
1640
1637
  name: "MuiDivider",
1641
1638
  slot: "Root",
1642
1639
  overridesResolver: (e, o) => {
@@ -1722,7 +1719,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
1722
1719
  "&::after": {
1723
1720
  width: "90%"
1724
1721
  }
1725
- })), Vn = Me("span", {
1722
+ })), Vi = Me("span", {
1726
1723
  name: "MuiDivider",
1727
1724
  slot: "Wrapper",
1728
1725
  overridesResolver: (e, o) => {
@@ -1741,23 +1738,23 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
1741
1738
  }, o.orientation === "vertical" && {
1742
1739
  paddingTop: `calc(${e.spacing(1)} * 1.2)`,
1743
1740
  paddingBottom: `calc(${e.spacing(1)} * 1.2)`
1744
- })), lo = /* @__PURE__ */ R.forwardRef(function(o, t) {
1745
- const r = Mt({
1741
+ })), lo = /* @__PURE__ */ A.forwardRef(function(o, t) {
1742
+ const r = Dt({
1746
1743
  props: o,
1747
1744
  name: "MuiDivider"
1748
1745
  }), {
1749
- absolute: i = !1,
1750
- children: n,
1746
+ absolute: n = !1,
1747
+ children: i,
1751
1748
  className: a,
1752
- component: s = n ? "div" : "hr",
1749
+ component: s = i ? "div" : "hr",
1753
1750
  flexItem: l = !1,
1754
1751
  light: d = !1,
1755
1752
  orientation: p = "horizontal",
1756
1753
  role: f = s !== "hr" ? "separator" : void 0,
1757
1754
  textAlign: c = "center",
1758
1755
  variant: v = "fullWidth"
1759
- } = r, h = Ne(r, kn), m = C({}, r, {
1760
- absolute: i,
1756
+ } = r, h = Ne(r, ki), m = C({}, r, {
1757
+ absolute: n,
1761
1758
  component: s,
1762
1759
  flexItem: l,
1763
1760
  light: d,
@@ -1765,18 +1762,18 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
1765
1762
  role: f,
1766
1763
  textAlign: c,
1767
1764
  variant: v
1768
- }), g = jn(m);
1769
- return /* @__PURE__ */ _(Ln, C({
1765
+ }), g = ji(m);
1766
+ return /* @__PURE__ */ _(Li, C({
1770
1767
  as: s,
1771
- className: Ae(g.root, a),
1768
+ className: Re(g.root, a),
1772
1769
  role: f,
1773
1770
  ref: t,
1774
1771
  ownerState: m
1775
1772
  }, h, {
1776
- children: n ? /* @__PURE__ */ _(Vn, {
1773
+ children: i ? /* @__PURE__ */ _(Vi, {
1777
1774
  className: g.wrapper,
1778
1775
  ownerState: m,
1779
- children: n
1776
+ children: i
1780
1777
  }) : null
1781
1778
  }));
1782
1779
  });
@@ -1844,27 +1841,27 @@ process.env.NODE_ENV !== "production" && (lo.propTypes = {
1844
1841
  variant: u.oneOfType([u.oneOf(["fullWidth", "inset", "middle"]), u.string])
1845
1842
  });
1846
1843
  const Lo = lo;
1847
- function Hn(e) {
1848
- return Dt("MuiTooltip", e);
1844
+ function Hi(e) {
1845
+ return It("MuiTooltip", e);
1849
1846
  }
1850
- const Fn = Nt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), we = Fn, Zn = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
1851
- function Un(e) {
1847
+ const Fi = eo("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), we = Fi, Zi = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
1848
+ function Ui(e) {
1852
1849
  return Math.round(e * 1e5) / 1e5;
1853
1850
  }
1854
- const qn = (e) => {
1851
+ const qi = (e) => {
1855
1852
  const {
1856
1853
  classes: o,
1857
1854
  disableInteractive: t,
1858
1855
  arrow: r,
1859
- touch: i,
1860
- placement: n
1856
+ touch: n,
1857
+ placement: i
1861
1858
  } = e, a = {
1862
1859
  popper: ["popper", !t && "popperInteractive", r && "popperArrow"],
1863
- tooltip: ["tooltip", r && "tooltipArrow", i && "touch", `tooltipPlacement${Pe(n.split("-")[0])}`],
1860
+ tooltip: ["tooltip", r && "tooltipArrow", n && "touch", `tooltipPlacement${Pe(i.split("-")[0])}`],
1864
1861
  arrow: ["arrow"]
1865
1862
  };
1866
- return _t(a, Hn, o);
1867
- }, Kn = Me(fr, {
1863
+ return Nt(a, Hi, o);
1864
+ }, Ki = Me(fr, {
1868
1865
  name: "MuiTooltip",
1869
1866
  slot: "Popper",
1870
1867
  overridesResolver: (e, o) => {
@@ -1925,7 +1922,7 @@ const qn = (e) => {
1925
1922
  transformOrigin: "0 0"
1926
1923
  }
1927
1924
  })
1928
- })), Qn = Me("div", {
1925
+ })), Qi = Me("div", {
1929
1926
  name: "MuiTooltip",
1930
1927
  slot: "Tooltip",
1931
1928
  overridesResolver: (e, o) => {
@@ -1954,7 +1951,7 @@ const qn = (e) => {
1954
1951
  }, o.touch && {
1955
1952
  padding: "8px 16px",
1956
1953
  fontSize: e.typography.pxToRem(14),
1957
- lineHeight: `${Un(16 / 14)}em`,
1954
+ lineHeight: `${Ui(16 / 14)}em`,
1958
1955
  fontWeight: e.typography.fontWeightRegular
1959
1956
  }, {
1960
1957
  [`.${we.popper}[data-popper-placement*="left"] &`]: C({
@@ -1991,7 +1988,7 @@ const qn = (e) => {
1991
1988
  }, o.touch && {
1992
1989
  marginTop: "24px"
1993
1990
  })
1994
- })), Gn = Me("span", {
1991
+ })), Gi = Me("span", {
1995
1992
  name: "MuiTooltip",
1996
1993
  slot: "Arrow",
1997
1994
  overridesResolver: (e, o) => o.arrow
@@ -2014,7 +2011,7 @@ const qn = (e) => {
2014
2011
  transform: "rotate(45deg)"
2015
2012
  }
2016
2013
  }));
2017
- let vt = !1, Ft = null, Ke = {
2014
+ let vt = !1, Vt = null, Ke = {
2018
2015
  x: 0,
2019
2016
  y: 0
2020
2017
  };
@@ -2023,29 +2020,29 @@ function mt(e, o) {
2023
2020
  o && o(t), e(t);
2024
2021
  };
2025
2022
  }
2026
- const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2027
- var r, i, n, a, s, l, d, p, f, c, v, h, m, g, P, S, y, b, w;
2028
- const T = Mt({
2023
+ const vr = /* @__PURE__ */ A.forwardRef(function(o, t) {
2024
+ var r, n, i, a, s, l, d, p, f, c, v, h, m, g, P, S, y, b, w;
2025
+ const T = Dt({
2029
2026
  props: o,
2030
2027
  name: "MuiTooltip"
2031
2028
  }), {
2032
2029
  arrow: O = !1,
2033
2030
  children: D,
2034
2031
  components: E = {},
2035
- componentsProps: A = {},
2032
+ componentsProps: R = {},
2036
2033
  describeChild: N = !1,
2037
2034
  disableFocusListener: $ = !1,
2038
2035
  disableHoverListener: Y = !1,
2039
2036
  disableInteractive: Z = !1,
2040
2037
  disableTouchListener: U = !1,
2041
2038
  enterDelay: B = 100,
2042
- enterNextDelay: W = 0,
2043
- enterTouchDelay: X = 700,
2039
+ enterNextDelay: X = 0,
2040
+ enterTouchDelay: W = 700,
2044
2041
  followCursor: q = !1,
2045
2042
  id: be,
2046
2043
  leaveDelay: se = 0,
2047
2044
  leaveTouchDelay: ve = 1500,
2048
- onClose: ne,
2045
+ onClose: ie,
2049
2046
  onOpen: K,
2050
2047
  open: Q,
2051
2048
  placement: le = "bottom",
@@ -2056,9 +2053,9 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2056
2053
  title: j,
2057
2054
  TransitionComponent: Le = No,
2058
2055
  TransitionProps: _e
2059
- } = T, nt = Ne(T, Zn), I = /* @__PURE__ */ R.isValidElement(D) ? D : /* @__PURE__ */ _("span", {
2056
+ } = T, it = Ne(T, Zi), I = /* @__PURE__ */ A.isValidElement(D) ? D : /* @__PURE__ */ _("span", {
2060
2057
  children: D
2061
- }), Ye = oi(), at = Ye.direction === "rtl", [V, st] = R.useState(), [ae, Be] = R.useState(null), Oe = R.useRef(!1), ze = Z || q, ye = R.useRef(), Ee = R.useRef(), pe = R.useRef(), Ve = R.useRef(), [lt, ho] = Ur({
2058
+ }), Ye = Gr(), at = Ye.direction === "rtl", [V, st] = A.useState(), [ae, Be] = A.useState(null), Oe = A.useRef(!1), ze = Z || q, ye = A.useRef(), Ee = A.useRef(), pe = A.useRef(), Ve = A.useRef(), [lt, ho] = en({
2062
2059
  controlled: Q,
2063
2060
  default: !1,
2064
2061
  name: "Tooltip",
@@ -2068,35 +2065,35 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2068
2065
  if (process.env.NODE_ENV !== "production") {
2069
2066
  const {
2070
2067
  current: x
2071
- } = R.useRef(Q !== void 0);
2072
- R.useEffect(() => {
2068
+ } = A.useRef(Q !== void 0);
2069
+ A.useEffect(() => {
2073
2070
  V && V.disabled && !x && j !== "" && V.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(`
2074
2071
  `));
2075
2072
  }, [j, V, x]);
2076
2073
  }
2077
- const kt = qr(be), He = R.useRef(), ut = R.useCallback(() => {
2074
+ const Xt = tn(be), He = A.useRef(), ut = A.useCallback(() => {
2078
2075
  He.current !== void 0 && (document.body.style.WebkitUserSelect = He.current, He.current = void 0), clearTimeout(Ve.current);
2079
2076
  }, []);
2080
- R.useEffect(() => () => {
2077
+ A.useEffect(() => () => {
2081
2078
  clearTimeout(ye.current), clearTimeout(Ee.current), clearTimeout(pe.current), ut();
2082
2079
  }, [ut]);
2083
2080
  const go = (x) => {
2084
- clearTimeout(Ft), vt = !0, ho(!0), K && !he && K(x);
2085
- }, pt = ri(
2081
+ clearTimeout(Vt), vt = !0, ho(!0), K && !he && K(x);
2082
+ }, pt = rn(
2086
2083
  /**
2087
2084
  * @param {React.SyntheticEvent | Event} event
2088
2085
  */
2089
2086
  (x) => {
2090
- clearTimeout(Ft), Ft = setTimeout(() => {
2087
+ clearTimeout(Vt), Vt = setTimeout(() => {
2091
2088
  vt = !1;
2092
- }, 800 + se), ho(!1), ne && he && ne(x), clearTimeout(ye.current), ye.current = setTimeout(() => {
2089
+ }, 800 + se), ho(!1), ie && he && ie(x), clearTimeout(ye.current), ye.current = setTimeout(() => {
2093
2090
  Oe.current = !1;
2094
2091
  }, Ye.transitions.duration.shortest);
2095
2092
  }
2096
- ), jt = (x) => {
2097
- Oe.current && x.type !== "touchstart" || (V && V.removeAttribute("title"), clearTimeout(Ee.current), clearTimeout(pe.current), B || vt && W ? Ee.current = setTimeout(() => {
2093
+ ), Wt = (x) => {
2094
+ Oe.current && x.type !== "touchstart" || (V && V.removeAttribute("title"), clearTimeout(Ee.current), clearTimeout(pe.current), B || vt && X ? Ee.current = setTimeout(() => {
2098
2095
  go(x);
2099
- }, vt ? W : B) : go(x));
2096
+ }, vt ? X : B) : go(x));
2100
2097
  }, bo = (x) => {
2101
2098
  clearTimeout(Ee.current), clearTimeout(pe.current), pe.current = setTimeout(() => {
2102
2099
  pt(x);
@@ -2106,24 +2103,24 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2106
2103
  onBlur: Mr,
2107
2104
  onFocus: _r,
2108
2105
  ref: Yr
2109
- } = ii(), [, wo] = R.useState(!1), Po = (x) => {
2106
+ } = nn(), [, wo] = A.useState(!1), Po = (x) => {
2110
2107
  Mr(x), yo.current === !1 && (wo(!1), bo(x));
2111
2108
  }, To = (x) => {
2112
- V || st(x.currentTarget), _r(x), yo.current === !0 && (wo(!0), jt(x));
2109
+ V || st(x.currentTarget), _r(x), yo.current === !0 && (wo(!0), Wt(x));
2113
2110
  }, Co = (x) => {
2114
2111
  Oe.current = !0;
2115
2112
  const G = I.props;
2116
2113
  G.onTouchStart && G.onTouchStart(x);
2117
- }, So = jt, Oo = bo, Br = (x) => {
2114
+ }, So = Wt, Oo = bo, Br = (x) => {
2118
2115
  Co(x), clearTimeout(pe.current), clearTimeout(ye.current), ut(), He.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ve.current = setTimeout(() => {
2119
- document.body.style.WebkitUserSelect = He.current, jt(x);
2120
- }, X);
2116
+ document.body.style.WebkitUserSelect = He.current, Wt(x);
2117
+ }, W);
2121
2118
  }, zr = (x) => {
2122
2119
  I.props.onTouchEnd && I.props.onTouchEnd(x), ut(), clearTimeout(pe.current), pe.current = setTimeout(() => {
2123
2120
  pt(x);
2124
2121
  }, ve);
2125
2122
  };
2126
- R.useEffect(() => {
2123
+ A.useEffect(() => {
2127
2124
  if (!he)
2128
2125
  return;
2129
2126
  function x(G) {
@@ -2133,31 +2130,31 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2133
2130
  document.removeEventListener("keydown", x);
2134
2131
  };
2135
2132
  }, [pt, he]);
2136
- const $r = qt(I.ref, Yr, st, t);
2133
+ const $r = Zt(I.ref, Yr, st, t);
2137
2134
  !j && j !== 0 && (he = !1);
2138
- const Lt = R.useRef(), Wr = (x) => {
2135
+ const kt = A.useRef(), Xr = (x) => {
2139
2136
  const G = I.props;
2140
2137
  G.onMouseMove && G.onMouseMove(x), Ke = {
2141
2138
  x: x.clientX,
2142
2139
  y: x.clientY
2143
- }, Lt.current && Lt.current.update();
2144
- }, Fe = {}, Vt = typeof j == "string";
2145
- N ? (Fe.title = !he && Vt && !Y ? j : null, Fe["aria-describedby"] = he ? kt : null) : (Fe["aria-label"] = Vt ? j : null, Fe["aria-labelledby"] = he && !Vt ? kt : null);
2146
- const ee = C({}, Fe, nt, I.props, {
2147
- className: Ae(nt.className, I.props.className),
2140
+ }, kt.current && kt.current.update();
2141
+ }, Fe = {}, jt = typeof j == "string";
2142
+ N ? (Fe.title = !he && jt && !Y ? j : null, Fe["aria-describedby"] = he ? Xt : null) : (Fe["aria-label"] = jt ? j : null, Fe["aria-labelledby"] = he && !jt ? Xt : null);
2143
+ const ee = C({}, Fe, it, I.props, {
2144
+ className: Re(it.className, I.props.className),
2148
2145
  onTouchStart: Co,
2149
2146
  ref: $r
2150
2147
  }, q ? {
2151
- onMouseMove: Wr
2148
+ onMouseMove: Xr
2152
2149
  } : {});
2153
- process.env.NODE_ENV !== "production" && (ee["data-mui-internal-clone-element"] = !0, R.useEffect(() => {
2150
+ process.env.NODE_ENV !== "production" && (ee["data-mui-internal-clone-element"] = !0, A.useEffect(() => {
2154
2151
  V && !V.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(`
2155
2152
  `));
2156
2153
  }, [V]));
2157
2154
  const Ze = {};
2158
2155
  U || (ee.onTouchStart = Br, ee.onTouchEnd = zr), Y || (ee.onMouseOver = mt(So, ee.onMouseOver), ee.onMouseLeave = mt(Oo, ee.onMouseLeave), ze || (Ze.onMouseOver = So, Ze.onMouseLeave = Oo)), $ || (ee.onFocus = mt(To, ee.onFocus), ee.onBlur = mt(Po, ee.onBlur), ze || (Ze.onFocus = To, Ze.onBlur = Po)), process.env.NODE_ENV !== "production" && I.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${I.props.title}\` or the Tooltip component.`].join(`
2159
2156
  `));
2160
- const Xr = R.useMemo(() => {
2157
+ const Wr = A.useMemo(() => {
2161
2158
  var x;
2162
2159
  let G = [{
2163
2160
  name: "arrow",
@@ -2177,15 +2174,15 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2177
2174
  placement: le,
2178
2175
  PopperComponentProp: ue,
2179
2176
  touch: Oe.current
2180
- }), Ht = qn(Ue), Eo = (r = (i = me.popper) != null ? i : E.Popper) != null ? r : Kn, Ao = (n = (a = (s = me.transition) != null ? s : E.Transition) != null ? a : Le) != null ? n : No, Ro = (l = (d = me.tooltip) != null ? d : E.Tooltip) != null ? l : Qn, xo = (p = (f = me.arrow) != null ? f : E.Arrow) != null ? p : Gn, kr = dt(Eo, C({}, k, (c = L.popper) != null ? c : A.popper, {
2181
- className: Ae(Ht.popper, k == null ? void 0 : k.className, (v = (h = L.popper) != null ? h : A.popper) == null ? void 0 : v.className)
2182
- }), Ue), jr = dt(Ao, C({}, _e, (m = L.transition) != null ? m : A.transition), Ue), Lr = dt(Ro, C({}, (g = L.tooltip) != null ? g : A.tooltip, {
2183
- className: Ae(Ht.tooltip, (P = (S = L.tooltip) != null ? S : A.tooltip) == null ? void 0 : P.className)
2184
- }), Ue), Vr = dt(xo, C({}, (y = L.arrow) != null ? y : A.arrow, {
2185
- className: Ae(Ht.arrow, (b = (w = L.arrow) != null ? w : A.arrow) == null ? void 0 : b.className)
2177
+ }), Lt = qi(Ue), Eo = (r = (n = me.popper) != null ? n : E.Popper) != null ? r : Ki, Ro = (i = (a = (s = me.transition) != null ? s : E.Transition) != null ? a : Le) != null ? i : No, Ao = (l = (d = me.tooltip) != null ? d : E.Tooltip) != null ? l : Qi, xo = (p = (f = me.arrow) != null ? f : E.Arrow) != null ? p : Gi, kr = dt(Eo, C({}, k, (c = L.popper) != null ? c : R.popper, {
2178
+ className: Re(Lt.popper, k == null ? void 0 : k.className, (v = (h = L.popper) != null ? h : R.popper) == null ? void 0 : v.className)
2179
+ }), Ue), jr = dt(Ro, C({}, _e, (m = L.transition) != null ? m : R.transition), Ue), Lr = dt(Ao, C({}, (g = L.tooltip) != null ? g : R.tooltip, {
2180
+ className: Re(Lt.tooltip, (P = (S = L.tooltip) != null ? S : R.tooltip) == null ? void 0 : P.className)
2181
+ }), Ue), Vr = dt(xo, C({}, (y = L.arrow) != null ? y : R.arrow, {
2182
+ className: Re(Lt.arrow, (b = (w = L.arrow) != null ? w : R.arrow) == null ? void 0 : b.className)
2186
2183
  }), Ue);
2187
- return /* @__PURE__ */ wt(R.Fragment, {
2188
- children: [/* @__PURE__ */ R.cloneElement(I, ee), /* @__PURE__ */ _(Eo, C({
2184
+ return /* @__PURE__ */ wt(A.Fragment, {
2185
+ children: [/* @__PURE__ */ A.cloneElement(I, ee), /* @__PURE__ */ _(Eo, C({
2189
2186
  as: ue ?? fr,
2190
2187
  placement: le,
2191
2188
  anchorEl: q ? {
@@ -2198,18 +2195,18 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
2198
2195
  height: 0
2199
2196
  })
2200
2197
  } : V,
2201
- popperRef: Lt,
2198
+ popperRef: kt,
2202
2199
  open: V ? he : !1,
2203
- id: kt,
2200
+ id: Xt,
2204
2201
  transition: !0
2205
2202
  }, Ze, kr, {
2206
- popperOptions: Xr,
2203
+ popperOptions: Wr,
2207
2204
  children: ({
2208
2205
  TransitionProps: x
2209
- }) => /* @__PURE__ */ _(Ao, C({
2206
+ }) => /* @__PURE__ */ _(Ro, C({
2210
2207
  timeout: Ye.transitions.duration.shorter
2211
2208
  }, x, jr, {
2212
- children: /* @__PURE__ */ wt(Ro, C({}, Lr, {
2209
+ children: /* @__PURE__ */ wt(Ao, C({}, Lr, {
2213
2210
  children: [j, O ? /* @__PURE__ */ _(xo, C({}, Vr, {
2214
2211
  ref: Be
2215
2212
  })) : null]
@@ -2231,7 +2228,7 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
2231
2228
  /**
2232
2229
  * Tooltip reference element.
2233
2230
  */
2234
- children: Kr.isRequired,
2231
+ children: on.isRequired,
2235
2232
  /**
2236
2233
  * Override or extend the styles applied to the component.
2237
2234
  */
@@ -2414,11 +2411,11 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
2414
2411
  const ht = vr;
2415
2412
  var te = function(e, o) {
2416
2413
  return Number(e.toFixed(o));
2417
- }, Jn = function(e, o) {
2414
+ }, Ji = function(e, o) {
2418
2415
  return typeof e == "number" ? e : o;
2419
2416
  }, z = function(e, o, t) {
2420
2417
  t && typeof t == "function" && t(e, o);
2421
- }, In = function(e) {
2418
+ }, Ii = function(e) {
2422
2419
  return -Math.cos(e * Math.PI) / 2 + 0.5;
2423
2420
  }, ea = function(e) {
2424
2421
  return e;
@@ -2428,9 +2425,9 @@ var te = function(e, o) {
2428
2425
  return e * (2 - e);
2429
2426
  }, ra = function(e) {
2430
2427
  return e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
2431
- }, ia = function(e) {
2432
- return e * e * e;
2433
2428
  }, na = function(e) {
2429
+ return e * e * e;
2430
+ }, ia = function(e) {
2434
2431
  return --e * e * e + 1;
2435
2432
  }, aa = function(e) {
2436
2433
  return e < 0.5 ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1;
@@ -2447,13 +2444,13 @@ var te = function(e, o) {
2447
2444
  }, fa = function(e) {
2448
2445
  return e < 0.5 ? 16 * e * e * e * e * e : 1 + 16 * --e * e * e * e * e;
2449
2446
  }, mr = {
2450
- easeOut: In,
2447
+ easeOut: Ii,
2451
2448
  linear: ea,
2452
2449
  easeInQuad: ta,
2453
2450
  easeOutQuad: oa,
2454
2451
  easeInOutQuad: ra,
2455
- easeInCubic: ia,
2456
- easeOutCubic: na,
2452
+ easeInCubic: na,
2453
+ easeOutCubic: ia,
2457
2454
  easeInOutCubic: aa,
2458
2455
  easeInQuart: sa,
2459
2456
  easeOutQuart: la,
@@ -2468,12 +2465,12 @@ var te = function(e, o) {
2468
2465
  };
2469
2466
  function gr(e, o, t, r) {
2470
2467
  if (e.mounted) {
2471
- var i = (/* @__PURE__ */ new Date()).getTime(), n = 1;
2468
+ var n = (/* @__PURE__ */ new Date()).getTime(), i = 1;
2472
2469
  de(e), e.animation = function() {
2473
2470
  if (!e.mounted)
2474
2471
  return hr(e.animation);
2475
- var a = (/* @__PURE__ */ new Date()).getTime() - i, s = a / t, l = mr[o], d = l(s);
2476
- a >= t ? (r(n), e.animation = null) : e.animation && (r(d), requestAnimationFrame(e.animation));
2472
+ var a = (/* @__PURE__ */ new Date()).getTime() - n, s = a / t, l = mr[o], d = l(s);
2473
+ a >= t ? (r(i), e.animation = null) : e.animation && (r(d), requestAnimationFrame(e.animation));
2477
2474
  }, requestAnimationFrame(e.animation);
2478
2475
  }
2479
2476
  }
@@ -2482,131 +2479,131 @@ function ca(e) {
2482
2479
  return !(Number.isNaN(o) || Number.isNaN(t) || Number.isNaN(r));
2483
2480
  }
2484
2481
  function Se(e, o, t, r) {
2485
- var i = ca(o);
2486
- if (!(!e.mounted || !i)) {
2487
- var n = e.setTransformState, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY, p = o.scale - s, f = o.positionX - l, c = o.positionY - d;
2488
- t === 0 ? n(o.scale, o.positionX, o.positionY) : gr(e, r, t, function(v) {
2482
+ var n = ca(o);
2483
+ if (!(!e.mounted || !n)) {
2484
+ var i = e.setTransformState, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY, p = o.scale - s, f = o.positionX - l, c = o.positionY - d;
2485
+ t === 0 ? i(o.scale, o.positionX, o.positionY) : gr(e, r, t, function(v) {
2489
2486
  var h = s + p * v, m = l + f * v, g = d + c * v;
2490
- n(h, m, g);
2487
+ i(h, m, g);
2491
2488
  });
2492
2489
  }
2493
2490
  }
2494
2491
  function va(e, o, t) {
2495
- var r = e.offsetWidth, i = e.offsetHeight, n = o.offsetWidth, a = o.offsetHeight, s = n * t, l = a * t, d = r - s, p = i - l;
2492
+ var r = e.offsetWidth, n = e.offsetHeight, i = o.offsetWidth, a = o.offsetHeight, s = i * t, l = a * t, d = r - s, p = n - l;
2496
2493
  return {
2497
2494
  wrapperWidth: r,
2498
- wrapperHeight: i,
2495
+ wrapperHeight: n,
2499
2496
  newContentWidth: s,
2500
2497
  newDiffWidth: d,
2501
2498
  newContentHeight: l,
2502
2499
  newDiffHeight: p
2503
2500
  };
2504
2501
  }
2505
- var ma = function(e, o, t, r, i, n, a) {
2506
- var s = e > o ? t * (a ? 1 : 0.5) : 0, l = r > i ? n * (a ? 1 : 0.5) : 0, d = e - o - s, p = s, f = r - i - l, c = l;
2502
+ var ma = function(e, o, t, r, n, i, a) {
2503
+ var s = e > o ? t * (a ? 1 : 0.5) : 0, l = r > n ? i * (a ? 1 : 0.5) : 0, d = e - o - s, p = s, f = r - n - l, c = l;
2507
2504
  return { minPositionX: d, maxPositionX: p, minPositionY: f, maxPositionY: c };
2508
2505
  }, uo = function(e, o) {
2509
- var t = e.wrapperComponent, r = e.contentComponent, i = e.setup.centerZoomedOut;
2506
+ var t = e.wrapperComponent, r = e.contentComponent, n = e.setup.centerZoomedOut;
2510
2507
  if (!t || !r)
2511
2508
  throw new Error("Components are not mounted");
2512
- var n = va(t, r, o), a = n.wrapperWidth, s = n.wrapperHeight, l = n.newContentWidth, d = n.newDiffWidth, p = n.newContentHeight, f = n.newDiffHeight, c = ma(a, l, d, s, p, f, !!i);
2509
+ var i = va(t, r, o), a = i.wrapperWidth, s = i.wrapperHeight, l = i.newContentWidth, d = i.newDiffWidth, p = i.newContentHeight, f = i.newDiffHeight, c = ma(a, l, d, s, p, f, !!n);
2513
2510
  return c;
2514
- }, Gt = function(e, o, t, r) {
2511
+ }, Kt = function(e, o, t, r) {
2515
2512
  return r ? e < o ? te(o, 2) : e > t ? te(t, 2) : te(e, 2) : te(e, 2);
2516
2513
  }, je = function(e, o) {
2517
2514
  var t = uo(e, o);
2518
2515
  return e.bounds = t, t;
2519
2516
  };
2520
- function zt(e, o, t, r, i, n, a) {
2517
+ function Yt(e, o, t, r, n, i, a) {
2521
2518
  var s = t.minPositionX, l = t.minPositionY, d = t.maxPositionX, p = t.maxPositionY, f = 0, c = 0;
2522
- a && (f = i, c = n);
2523
- var v = Gt(e, s - f, d + f, r), h = Gt(o, l - c, p + c, r);
2519
+ a && (f = n, c = i);
2520
+ var v = Kt(e, s - f, d + f, r), h = Kt(o, l - c, p + c, r);
2524
2521
  return { x: v, y: h };
2525
2522
  }
2526
- function $t(e, o, t, r, i, n) {
2523
+ function Bt(e, o, t, r, n, i) {
2527
2524
  var a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY, p = r - s;
2528
2525
  if (typeof o != "number" || typeof t != "number")
2529
2526
  return console.error("Mouse X and Y position were not provided!"), { x: l, y: d };
2530
- var f = l - o * p, c = d - t * p, v = zt(f, c, i, n, 0, 0, null);
2527
+ var f = l - o * p, c = d - t * p, v = Yt(f, c, n, i, 0, 0, null);
2531
2528
  return v;
2532
2529
  }
2533
- function it(e, o, t, r, i) {
2534
- var n = i ? r : 0, a = o - n;
2530
+ function nt(e, o, t, r, n) {
2531
+ var i = n ? r : 0, a = o - i;
2535
2532
  return !Number.isNaN(t) && e >= t ? t : !Number.isNaN(o) && e <= a ? a : e;
2536
2533
  }
2537
2534
  var Vo = function(e, o) {
2538
- var t = e.setup.panning.excluded, r = e.isInitialized, i = e.wrapperComponent, n = o.target, a = i == null ? void 0 : i.contains(n), s = r && n && a;
2535
+ var t = e.setup.panning.excluded, r = e.isInitialized, n = e.wrapperComponent, i = o.target, a = n == null ? void 0 : n.contains(i), s = r && i && a;
2539
2536
  if (!s)
2540
2537
  return !1;
2541
- var l = Wt(n, t);
2538
+ var l = zt(i, t);
2542
2539
  return !l;
2543
2540
  }, Ho = function(e) {
2544
- var o = e.isInitialized, t = e.isPanning, r = e.setup, i = r.panning.disabled, n = o && t && !i;
2545
- return !!n;
2541
+ var o = e.isInitialized, t = e.isPanning, r = e.setup, n = r.panning.disabled, i = o && t && !n;
2542
+ return !!i;
2546
2543
  }, ha = function(e, o) {
2547
- var t = e.transformState, r = t.positionX, i = t.positionY;
2544
+ var t = e.transformState, r = t.positionX, n = t.positionY;
2548
2545
  e.isPanning = !0;
2549
- var n = o.clientX, a = o.clientY;
2550
- e.startCoords = { x: n - r, y: a - i };
2546
+ var i = o.clientX, a = o.clientY;
2547
+ e.startCoords = { x: i - r, y: a - n };
2551
2548
  }, ga = function(e, o) {
2552
- var t = o.touches, r = e.transformState, i = r.positionX, n = r.positionY;
2549
+ var t = o.touches, r = e.transformState, n = r.positionX, i = r.positionY;
2553
2550
  e.isPanning = !0;
2554
2551
  var a = t.length === 1;
2555
2552
  if (a) {
2556
2553
  var s = t[0].clientX, l = t[0].clientY;
2557
- e.startCoords = { x: s - i, y: l - n };
2554
+ e.startCoords = { x: s - n, y: l - i };
2558
2555
  }
2559
2556
  };
2560
2557
  function ba(e) {
2561
- var o = e.transformState, t = o.positionX, r = o.positionY, i = o.scale, n = e.setup, a = n.disabled, s = n.limitToBounds, l = n.centerZoomedOut, d = e.wrapperComponent;
2558
+ var o = e.transformState, t = o.positionX, r = o.positionY, n = o.scale, i = e.setup, a = i.disabled, s = i.limitToBounds, l = i.centerZoomedOut, d = e.wrapperComponent;
2562
2559
  if (!(a || !d || !e.bounds)) {
2563
- var p = e.bounds, f = p.maxPositionX, c = p.minPositionX, v = p.maxPositionY, h = p.minPositionY, m = t > f || t < c, g = r > v || r < h, P = t > f ? d.offsetWidth : e.setup.minPositionX || 0, S = r > v ? d.offsetHeight : e.setup.minPositionY || 0, y = $t(e, P, S, i, e.bounds, s || l), b = y.x, w = y.y;
2560
+ var p = e.bounds, f = p.maxPositionX, c = p.minPositionX, v = p.maxPositionY, h = p.minPositionY, m = t > f || t < c, g = r > v || r < h, P = t > f ? d.offsetWidth : e.setup.minPositionX || 0, S = r > v ? d.offsetHeight : e.setup.minPositionY || 0, y = Bt(e, P, S, n, e.bounds, s || l), b = y.x, w = y.y;
2564
2561
  return {
2565
- scale: i,
2562
+ scale: n,
2566
2563
  positionX: m ? b : t,
2567
2564
  positionY: g ? w : r
2568
2565
  };
2569
2566
  }
2570
2567
  }
2571
- function ya(e, o, t, r, i) {
2572
- var n = e.setup.limitToBounds, a = e.wrapperComponent, s = e.bounds, l = e.transformState, d = l.scale, p = l.positionX, f = l.positionY;
2568
+ function ya(e, o, t, r, n) {
2569
+ var i = e.setup.limitToBounds, a = e.wrapperComponent, s = e.bounds, l = e.transformState, d = l.scale, p = l.positionX, f = l.positionY;
2573
2570
  if (!(a === null || s === null || o === p && t === f)) {
2574
- var c = zt(o, t, s, n, r, i, a), v = c.x, h = c.y;
2571
+ var c = Yt(o, t, s, i, r, n, a), v = c.x, h = c.y;
2575
2572
  e.setTransformState(d, v, h);
2576
2573
  }
2577
2574
  }
2578
2575
  var wa = function(e, o, t) {
2579
- var r = e.startCoords, i = e.transformState, n = e.setup.panning, a = n.lockAxisX, s = n.lockAxisY, l = i.positionX, d = i.positionY;
2576
+ var r = e.startCoords, n = e.transformState, i = e.setup.panning, a = i.lockAxisX, s = i.lockAxisY, l = n.positionX, d = n.positionY;
2580
2577
  if (!r)
2581
2578
  return { x: l, y: d };
2582
2579
  var p = o - r.x, f = t - r.y, c = a ? l : p, v = s ? d : f;
2583
2580
  return { x: c, y: v };
2584
2581
  }, Ot = function(e, o) {
2585
- var t = e.setup, r = e.transformState, i = r.scale, n = t.minScale, a = t.disablePadding;
2586
- return o > 0 && i >= n && !a ? o : 0;
2582
+ var t = e.setup, r = e.transformState, n = r.scale, i = t.minScale, a = t.disablePadding;
2583
+ return o > 0 && n >= i && !a ? o : 0;
2587
2584
  }, Pa = function(e) {
2588
- var o = e.mounted, t = e.setup, r = t.disabled, i = t.velocityAnimation, n = e.transformState.scale, a = i.disabled, s = !a || n > 1 || !r || o;
2585
+ var o = e.mounted, t = e.setup, r = t.disabled, n = t.velocityAnimation, i = e.transformState.scale, a = n.disabled, s = !a || i > 1 || !r || o;
2589
2586
  return !!s;
2590
2587
  }, Ta = function(e) {
2591
- var o = e.mounted, t = e.velocity, r = e.bounds, i = e.setup, n = i.disabled, a = i.velocityAnimation, s = e.transformState.scale, l = a.disabled, d = !l || s > 1 || !n || o;
2588
+ var o = e.mounted, t = e.velocity, r = e.bounds, n = e.setup, i = n.disabled, a = n.velocityAnimation, s = e.transformState.scale, l = a.disabled, d = !l || s > 1 || !i || o;
2592
2589
  return !(!d || !t || !r);
2593
2590
  };
2594
2591
  function Ca(e, o) {
2595
- var t = e.setup.velocityAnimation, r = t.equalToMove, i = t.animationTime, n = t.sensitivity;
2596
- return r ? i * o * n : i;
2592
+ var t = e.setup.velocityAnimation, r = t.equalToMove, n = t.animationTime, i = t.sensitivity;
2593
+ return r ? n * o * i : n;
2597
2594
  }
2598
- function Fo(e, o, t, r, i, n, a, s, l, d) {
2599
- if (i) {
2595
+ function Fo(e, o, t, r, n, i, a, s, l, d) {
2596
+ if (n) {
2600
2597
  if (o > a && t > a) {
2601
2598
  var p = a + (e - a) * d;
2602
2599
  return p > l ? l : p < a ? a : p;
2603
2600
  }
2604
- if (o < n && t < n) {
2605
- var p = n + (e - n) * d;
2606
- return p < s ? s : p > n ? n : p;
2601
+ if (o < i && t < i) {
2602
+ var p = i + (e - i) * d;
2603
+ return p < s ? s : p > i ? i : p;
2607
2604
  }
2608
2605
  }
2609
- return r ? o : Gt(e, n, a, i);
2606
+ return r ? o : Kt(e, i, a, n);
2610
2607
  }
2611
2608
  function Sa(e, o) {
2612
2609
  var t = 1;
@@ -2615,21 +2612,21 @@ function Sa(e, o) {
2615
2612
  function Oa(e, o) {
2616
2613
  var t = Pa(e);
2617
2614
  if (t) {
2618
- var r = e.lastMousePosition, i = e.velocityTime, n = e.setup, a = e.wrapperComponent, s = n.velocityAnimation.equalToMove, l = Date.now();
2619
- if (r && i && a) {
2620
- var d = Sa(a, s), p = o.x - r.x, f = o.y - r.y, c = p / d, v = f / d, h = l - i, m = p * p + f * f, g = Math.sqrt(m) / h;
2615
+ var r = e.lastMousePosition, n = e.velocityTime, i = e.setup, a = e.wrapperComponent, s = i.velocityAnimation.equalToMove, l = Date.now();
2616
+ if (r && n && a) {
2617
+ var d = Sa(a, s), p = o.x - r.x, f = o.y - r.y, c = p / d, v = f / d, h = l - n, m = p * p + f * f, g = Math.sqrt(m) / h;
2621
2618
  e.velocity = { velocityX: c, velocityY: v, total: g };
2622
2619
  }
2623
2620
  e.lastMousePosition = o, e.velocityTime = l;
2624
2621
  }
2625
2622
  }
2626
2623
  function Ea(e) {
2627
- var o = e.velocity, t = e.bounds, r = e.setup, i = e.wrapperComponent, n = Ta(e);
2628
- if (!(!n || !o || !t || !i)) {
2629
- var a = o.velocityX, s = o.velocityY, l = o.total, d = t.maxPositionX, p = t.minPositionX, f = t.maxPositionY, c = t.minPositionY, v = r.limitToBounds, h = r.alignmentAnimation, m = r.zoomAnimation, g = r.panning, P = g.lockAxisY, S = g.lockAxisX, y = m.animationType, b = h.sizeX, w = h.sizeY, T = h.velocityAlignmentTime, O = T, D = Ca(e, l), E = Math.max(D, O), A = Ot(e, b), N = Ot(e, w), $ = A * i.offsetWidth / 100, Y = N * i.offsetHeight / 100, Z = d + $, U = p - $, B = f + Y, W = c - Y, X = e.transformState, q = (/* @__PURE__ */ new Date()).getTime();
2624
+ var o = e.velocity, t = e.bounds, r = e.setup, n = e.wrapperComponent, i = Ta(e);
2625
+ if (!(!i || !o || !t || !n)) {
2626
+ var a = o.velocityX, s = o.velocityY, l = o.total, d = t.maxPositionX, p = t.minPositionX, f = t.maxPositionY, c = t.minPositionY, v = r.limitToBounds, h = r.alignmentAnimation, m = r.zoomAnimation, g = r.panning, P = g.lockAxisY, S = g.lockAxisX, y = m.animationType, b = h.sizeX, w = h.sizeY, T = h.velocityAlignmentTime, O = T, D = Ca(e, l), E = Math.max(D, O), R = Ot(e, b), N = Ot(e, w), $ = R * n.offsetWidth / 100, Y = N * n.offsetHeight / 100, Z = d + $, U = p - $, B = f + Y, X = c - Y, W = e.transformState, q = (/* @__PURE__ */ new Date()).getTime();
2630
2627
  gr(e, y, E, function(be) {
2631
- var se = e.transformState, ve = se.scale, ne = se.positionX, K = se.positionY, Q = (/* @__PURE__ */ new Date()).getTime() - q, le = Q / O, ue = mr[h.animationType], k = 1 - ue(Math.min(1, le)), L = 1 - be, me = ne + a * L, j = K + s * L, Le = Fo(me, X.positionX, ne, S, v, p, d, U, Z, k), _e = Fo(j, X.positionY, K, P, v, c, f, W, B, k);
2632
- (ne !== me || K !== j) && e.setTransformState(ve, Le, _e);
2628
+ var se = e.transformState, ve = se.scale, ie = se.positionX, K = se.positionY, Q = (/* @__PURE__ */ new Date()).getTime() - q, le = Q / O, ue = mr[h.animationType], k = 1 - ue(Math.min(1, le)), L = 1 - be, me = ie + a * L, j = K + s * L, Le = Fo(me, W.positionX, ie, S, v, p, d, U, Z, k), _e = Fo(j, W.positionY, K, P, v, c, f, X, B, k);
2629
+ (ie !== me || K !== j) && e.setTransformState(ve, Le, _e);
2633
2630
  });
2634
2631
  }
2635
2632
  }
@@ -2638,53 +2635,53 @@ function Zo(e, o) {
2638
2635
  de(e), je(e, t), window.TouchEvent !== void 0 && o instanceof TouchEvent ? ga(e, o) : ha(e, o);
2639
2636
  }
2640
2637
  function br(e) {
2641
- var o = e.transformState.scale, t = e.setup, r = t.minScale, i = t.alignmentAnimation, n = i.disabled, a = i.sizeX, s = i.sizeY, l = i.animationTime, d = i.animationType, p = n || o < r || !a && !s;
2638
+ var o = e.transformState.scale, t = e.setup, r = t.minScale, n = t.alignmentAnimation, i = n.disabled, a = n.sizeX, s = n.sizeY, l = n.animationTime, d = n.animationType, p = i || o < r || !a && !s;
2642
2639
  if (!p) {
2643
2640
  var f = ba(e);
2644
2641
  f && Se(e, f, l, d);
2645
2642
  }
2646
2643
  }
2647
2644
  function Uo(e, o, t) {
2648
- var r = e.startCoords, i = e.setup, n = i.alignmentAnimation, a = n.sizeX, s = n.sizeY;
2645
+ var r = e.startCoords, n = e.setup, i = n.alignmentAnimation, a = i.sizeX, s = i.sizeY;
2649
2646
  if (r) {
2650
2647
  var l = wa(e, o, t), d = l.x, p = l.y, f = Ot(e, a), c = Ot(e, s);
2651
2648
  Oa(e, { x: d, y: p }), ya(e, d, p, f, c);
2652
2649
  }
2653
2650
  }
2654
- function Aa(e) {
2651
+ function Ra(e) {
2655
2652
  if (e.isPanning) {
2656
- var o = e.setup.panning.velocityDisabled, t = e.velocity, r = e.wrapperComponent, i = e.contentComponent;
2653
+ var o = e.setup.panning.velocityDisabled, t = e.velocity, r = e.wrapperComponent, n = e.contentComponent;
2657
2654
  e.isPanning = !1, e.animate = !1, e.animation = null;
2658
- var n = r == null ? void 0 : r.getBoundingClientRect(), a = i == null ? void 0 : i.getBoundingClientRect(), s = (n == null ? void 0 : n.width) || 0, l = (n == null ? void 0 : n.height) || 0, d = (a == null ? void 0 : a.width) || 0, p = (a == null ? void 0 : a.height) || 0, f = s < d || l < p, c = !o && t && (t == null ? void 0 : t.total) > 0.1 && f;
2655
+ var i = r == null ? void 0 : r.getBoundingClientRect(), a = n == null ? void 0 : n.getBoundingClientRect(), s = (i == null ? void 0 : i.width) || 0, l = (i == null ? void 0 : i.height) || 0, d = (a == null ? void 0 : a.width) || 0, p = (a == null ? void 0 : a.height) || 0, f = s < d || l < p, c = !o && t && (t == null ? void 0 : t.total) > 0.1 && f;
2659
2656
  c ? Ea(e) : br(e);
2660
2657
  }
2661
2658
  }
2662
2659
  function po(e, o, t, r) {
2663
- var i = e.setup, n = i.minScale, a = i.maxScale, s = i.limitToBounds, l = it(te(o, 2), n, a, 0, !1), d = je(e, l), p = $t(e, t, r, l, d, s), f = p.x, c = p.y;
2660
+ var n = e.setup, i = n.minScale, a = n.maxScale, s = n.limitToBounds, l = nt(te(o, 2), i, a, 0, !1), d = je(e, l), p = Bt(e, t, r, l, d, s), f = p.x, c = p.y;
2664
2661
  return { scale: l, positionX: f, positionY: c };
2665
2662
  }
2666
2663
  function yr(e, o, t) {
2667
- var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.minScale, s = n.limitToBounds, l = n.zoomAnimation, d = l.disabled, p = l.animationTime, f = l.animationType, c = d || r >= a;
2668
- if ((r >= 1 || s) && br(e), !(c || !i || !e.mounted)) {
2669
- var v = o || i.offsetWidth / 2, h = t || i.offsetHeight / 2, m = po(e, a, v, h);
2664
+ var r = e.transformState.scale, n = e.wrapperComponent, i = e.setup, a = i.minScale, s = i.limitToBounds, l = i.zoomAnimation, d = l.disabled, p = l.animationTime, f = l.animationType, c = d || r >= a;
2665
+ if ((r >= 1 || s) && br(e), !(c || !n || !e.mounted)) {
2666
+ var v = o || n.offsetWidth / 2, h = t || n.offsetHeight / 2, m = po(e, a, v, h);
2670
2667
  m && Se(e, m, p, f);
2671
2668
  }
2672
2669
  }
2673
2670
  var Te = function() {
2674
2671
  return Te = Object.assign || function(o) {
2675
- for (var t, r = 1, i = arguments.length; r < i; r++) {
2672
+ for (var t, r = 1, n = arguments.length; r < n; r++) {
2676
2673
  t = arguments[r];
2677
- for (var n in t)
2678
- Object.prototype.hasOwnProperty.call(t, n) && (o[n] = t[n]);
2674
+ for (var i in t)
2675
+ Object.prototype.hasOwnProperty.call(t, i) && (o[i] = t[i]);
2679
2676
  }
2680
2677
  return o;
2681
2678
  }, Te.apply(this, arguments);
2682
2679
  };
2683
2680
  function qo(e, o, t) {
2684
2681
  if (t || arguments.length === 2)
2685
- for (var r = 0, i = o.length, n; r < i; r++)
2686
- (n || !(r in o)) && (n || (n = Array.prototype.slice.call(o, 0, r)), n[r] = o[r]);
2687
- return e.concat(n || Array.prototype.slice.call(o));
2682
+ for (var r = 0, n = o.length, i; r < n; r++)
2683
+ (i || !(r in o)) && (i || (i = Array.prototype.slice.call(o, 0, r)), i[r] = o[r]);
2684
+ return e.concat(i || Array.prototype.slice.call(o));
2688
2685
  }
2689
2686
  var gt = {
2690
2687
  previousScale: 1,
@@ -2756,42 +2753,42 @@ var gt = {
2756
2753
  equalToMove: !0
2757
2754
  }
2758
2755
  }, wr = function(e) {
2759
- var o, t, r, i;
2756
+ var o, t, r, n;
2760
2757
  return {
2761
2758
  previousScale: (o = e.initialScale) !== null && o !== void 0 ? o : gt.scale,
2762
2759
  scale: (t = e.initialScale) !== null && t !== void 0 ? t : gt.scale,
2763
2760
  positionX: (r = e.initialPositionX) !== null && r !== void 0 ? r : gt.positionX,
2764
- positionY: (i = e.initialPositionY) !== null && i !== void 0 ? i : gt.positionY
2761
+ positionY: (n = e.initialPositionY) !== null && n !== void 0 ? n : gt.positionY
2765
2762
  };
2766
2763
  }, Ko = function(e) {
2767
2764
  var o = Te({}, Qe);
2768
2765
  return Object.keys(e).forEach(function(t) {
2769
- var r = typeof e[t] < "u", i = typeof Qe[t] < "u";
2770
- if (i && r) {
2771
- var n = Object.prototype.toString.call(Qe[t]), a = n === "[object Object]", s = n === "[object Array]";
2766
+ var r = typeof e[t] < "u", n = typeof Qe[t] < "u";
2767
+ if (n && r) {
2768
+ var i = Object.prototype.toString.call(Qe[t]), a = i === "[object Object]", s = i === "[object Array]";
2772
2769
  a ? o[t] = Te(Te({}, Qe[t]), e[t]) : s ? o[t] = qo(qo([], Qe[t], !0), e[t], !0) : o[t] = e[t];
2773
2770
  }
2774
2771
  }), o;
2775
2772
  }, Pr = function(e, o, t) {
2776
- var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.maxScale, s = n.minScale, l = n.zoomAnimation, d = n.smooth, p = l.size;
2777
- if (!i)
2773
+ var r = e.transformState.scale, n = e.wrapperComponent, i = e.setup, a = i.maxScale, s = i.minScale, l = i.zoomAnimation, d = i.smooth, p = l.size;
2774
+ if (!n)
2778
2775
  throw new Error("Wrapper is not mounted");
2779
- var f = d ? r * Math.exp(o * t) : r + o * t, c = it(te(f, 3), s, a, p, !1);
2776
+ var f = d ? r * Math.exp(o * t) : r + o * t, c = nt(te(f, 3), s, a, p, !1);
2780
2777
  return c;
2781
2778
  };
2782
- function Tr(e, o, t, r, i) {
2783
- var n = e.wrapperComponent, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY;
2784
- if (!n)
2779
+ function Tr(e, o, t, r, n) {
2780
+ var i = e.wrapperComponent, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY;
2781
+ if (!i)
2785
2782
  return console.error("No WrapperComponent found");
2786
- var p = n.offsetWidth, f = n.offsetHeight, c = (p / 2 - l) / s, v = (f / 2 - d) / s, h = Pr(e, o, t), m = po(e, h, c, v);
2783
+ var p = i.offsetWidth, f = i.offsetHeight, c = (p / 2 - l) / s, v = (f / 2 - d) / s, h = Pr(e, o, t), m = po(e, h, c, v);
2787
2784
  if (!m)
2788
2785
  return console.error("Error during zoom event. New transformation state was not calculated.");
2789
- Se(e, m, r, i);
2786
+ Se(e, m, r, n);
2790
2787
  }
2791
2788
  function Cr(e, o, t, r) {
2792
- var i = e.setup, n = e.wrapperComponent, a = i.limitToBounds, s = wr(e.props), l = e.transformState, d = l.scale, p = l.positionX, f = l.positionY;
2793
- if (n) {
2794
- var c = uo(e, s.scale), v = zt(s.positionX, s.positionY, c, a, 0, 0, n), h = {
2789
+ var n = e.setup, i = e.wrapperComponent, a = n.limitToBounds, s = wr(e.props), l = e.transformState, d = l.scale, p = l.positionX, f = l.positionY;
2790
+ if (i) {
2791
+ var c = uo(e, s.scale), v = Yt(s.positionX, s.positionY, c, a, 0, 0, i), h = {
2795
2792
  scale: s.scale,
2796
2793
  positionX: v.x,
2797
2794
  positionY: v.y
@@ -2799,19 +2796,19 @@ function Cr(e, o, t, r) {
2799
2796
  d === s.scale && p === s.positionX && f === s.positionY || (r == null || r(), Se(e, h, o, t));
2800
2797
  }
2801
2798
  }
2802
- function Ra(e, o, t, r) {
2803
- var i = e.getBoundingClientRect(), n = o.getBoundingClientRect(), a = t.getBoundingClientRect(), s = n.x * r.scale, l = n.y * r.scale;
2799
+ function Aa(e, o, t, r) {
2800
+ var n = e.getBoundingClientRect(), i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), s = i.x * r.scale, l = i.y * r.scale;
2804
2801
  return {
2805
- x: (i.x - a.x + s) / r.scale,
2806
- y: (i.y - a.y + l) / r.scale
2802
+ x: (n.x - a.x + s) / r.scale,
2803
+ y: (n.y - a.y + l) / r.scale
2807
2804
  };
2808
2805
  }
2809
2806
  function xa(e, o, t) {
2810
- var r = e.wrapperComponent, i = e.contentComponent, n = e.transformState, a = e.setup, s = a.limitToBounds, l = a.minScale, d = a.maxScale;
2811
- if (!r || !i)
2812
- return n;
2813
- var p = r.getBoundingClientRect(), f = o.getBoundingClientRect(), c = Ra(o, r, i, n), v = c.x, h = c.y, m = f.width / n.scale, g = f.height / n.scale, P = r.offsetWidth / m, S = r.offsetHeight / g, y = it(t || Math.min(P, S), l, d, 0, !1), b = (p.width - m * y) / 2, w = (p.height - g * y) / 2, T = (p.left - v) * y + b, O = (p.top - h) * y + w, D = uo(e, y), E = zt(T, O, D, s, 0, 0, r), A = E.x, N = E.y;
2814
- return { positionX: A, positionY: N, scale: y };
2807
+ var r = e.wrapperComponent, n = e.contentComponent, i = e.transformState, a = e.setup, s = a.limitToBounds, l = a.minScale, d = a.maxScale;
2808
+ if (!r || !n)
2809
+ return i;
2810
+ var p = r.getBoundingClientRect(), f = o.getBoundingClientRect(), c = Aa(o, r, n, i), v = c.x, h = c.y, m = f.width / i.scale, g = f.height / i.scale, P = r.offsetWidth / m, S = r.offsetHeight / g, y = nt(t || Math.min(P, S), l, d, 0, !1), b = (p.width - m * y) / 2, w = (p.height - g * y) / 2, T = (p.left - v) * y + b, O = (p.top - h) * y + w, D = uo(e, y), E = Yt(T, O, D, s, 0, 0, r), R = E.x, N = E.y;
2811
+ return { positionX: R, positionY: N, scale: y };
2815
2812
  }
2816
2813
  var Da = function(e) {
2817
2814
  return function(o, t, r) {
@@ -2822,8 +2819,8 @@ var Da = function(e) {
2822
2819
  o === void 0 && (o = 0.5), t === void 0 && (t = 300), r === void 0 && (r = "easeOut"), Tr(e, -1, o, t, r);
2823
2820
  };
2824
2821
  }, Ma = function(e) {
2825
- return function(o, t, r, i, n) {
2826
- i === void 0 && (i = 300), n === void 0 && (n = "easeOut");
2822
+ return function(o, t, r, n, i) {
2823
+ n === void 0 && (n = 300), i === void 0 && (i = "easeOut");
2827
2824
  var a = e.transformState, s = a.positionX, l = a.positionY, d = a.scale, p = e.wrapperComponent, f = e.contentComponent, c = e.setup.disabled;
2828
2825
  if (!(c || !p || !f)) {
2829
2826
  var v = {
@@ -2831,7 +2828,7 @@ var Da = function(e) {
2831
2828
  positionY: Number.isNaN(t) ? l : t,
2832
2829
  scale: Number.isNaN(r) ? d : r
2833
2830
  };
2834
- Se(e, v, i, n);
2831
+ Se(e, v, n, i);
2835
2832
  }
2836
2833
  };
2837
2834
  }, _a = function(e) {
@@ -2841,19 +2838,19 @@ var Da = function(e) {
2841
2838
  }, Ya = function(e) {
2842
2839
  return function(o, t, r) {
2843
2840
  t === void 0 && (t = 200), r === void 0 && (r = "easeOut");
2844
- var i = e.transformState, n = e.wrapperComponent, a = e.contentComponent;
2845
- if (n && a) {
2846
- var s = Sr(o || i.scale, n, a);
2841
+ var n = e.transformState, i = e.wrapperComponent, a = e.contentComponent;
2842
+ if (i && a) {
2843
+ var s = Sr(o || n.scale, i, a);
2847
2844
  Se(e, s, t, r);
2848
2845
  }
2849
2846
  };
2850
2847
  }, Ba = function(e) {
2851
- return function(o, t, r, i) {
2852
- r === void 0 && (r = 600), i === void 0 && (i = "easeOut"), de(e);
2853
- var n = e.wrapperComponent, a = typeof o == "string" ? document.getElementById(o) : o;
2854
- if (n && a && n.contains(a)) {
2848
+ return function(o, t, r, n) {
2849
+ r === void 0 && (r = 600), n === void 0 && (n = "easeOut"), de(e);
2850
+ var i = e.wrapperComponent, a = typeof o == "string" ? document.getElementById(o) : o;
2851
+ if (i && a && i.contains(a)) {
2855
2852
  var s = xa(e, a, t);
2856
- Se(e, s, r, i);
2853
+ Se(e, s, r, n);
2857
2854
  }
2858
2855
  };
2859
2856
  }, Et = function(e) {
@@ -2874,144 +2871,144 @@ var Da = function(e) {
2874
2871
  }, M = function(e) {
2875
2872
  var o = {};
2876
2873
  return Object.assign(o, za(e)), Object.assign(o, Et(e)), o;
2877
- }, Zt = !1;
2878
- function Ut() {
2874
+ }, Ht = !1;
2875
+ function Ft() {
2879
2876
  try {
2880
2877
  var e = {
2881
2878
  get passive() {
2882
- return Zt = !0, !1;
2879
+ return Ht = !0, !1;
2883
2880
  }
2884
2881
  };
2885
2882
  return e;
2886
2883
  } catch {
2887
- return Zt = !1, Zt;
2884
+ return Ht = !1, Ht;
2888
2885
  }
2889
2886
  }
2890
- var Wt = function(e, o) {
2891
- var t = e.tagName.toUpperCase(), r = o.find(function(n) {
2892
- return n.toUpperCase() === t;
2887
+ var zt = function(e, o) {
2888
+ var t = e.tagName.toUpperCase(), r = o.find(function(i) {
2889
+ return i.toUpperCase() === t;
2893
2890
  });
2894
2891
  if (r)
2895
2892
  return !0;
2896
- var i = o.find(function(n) {
2897
- return e.classList.contains(n);
2893
+ var n = o.find(function(i) {
2894
+ return e.classList.contains(i);
2898
2895
  });
2899
- return !!i;
2900
- }, Jt = function(e) {
2896
+ return !!n;
2897
+ }, Qt = function(e) {
2901
2898
  e && clearTimeout(e);
2902
2899
  }, $a = function(e, o, t) {
2903
2900
  return "translate(".concat(e, "px, ").concat(o, "px) scale(").concat(t, ")");
2904
2901
  }, Sr = function(e, o, t) {
2905
- var r = t.offsetWidth * e, i = t.offsetHeight * e, n = (o.offsetWidth - r) / 2, a = (o.offsetHeight - i) / 2;
2902
+ var r = t.offsetWidth * e, n = t.offsetHeight * e, i = (o.offsetWidth - r) / 2, a = (o.offsetHeight - n) / 2;
2906
2903
  return {
2907
2904
  scale: e,
2908
- positionX: n,
2905
+ positionX: i,
2909
2906
  positionY: a
2910
2907
  };
2911
2908
  };
2912
- function Wa(e) {
2909
+ function Xa(e) {
2913
2910
  return function(o) {
2914
2911
  e.forEach(function(t) {
2915
2912
  typeof t == "function" ? t(o) : t != null && (t.current = o);
2916
2913
  });
2917
2914
  };
2918
2915
  }
2919
- var Xa = function(e, o) {
2920
- var t = e.setup.wheel, r = t.disabled, i = t.wheelDisabled, n = t.touchPadDisabled, a = t.excluded, s = e.isInitialized, l = e.isPanning, d = o.target, p = s && !l && !r && d;
2921
- if (!p || i && !o.ctrlKey || n && o.ctrlKey)
2916
+ var Wa = function(e, o) {
2917
+ var t = e.setup.wheel, r = t.disabled, n = t.wheelDisabled, i = t.touchPadDisabled, a = t.excluded, s = e.isInitialized, l = e.isPanning, d = o.target, p = s && !l && !r && d;
2918
+ if (!p || n && !o.ctrlKey || i && o.ctrlKey)
2922
2919
  return !1;
2923
- var f = Wt(d, a);
2920
+ var f = zt(d, a);
2924
2921
  return !f;
2925
2922
  }, ka = function(e) {
2926
2923
  return e ? e.deltaY < 0 ? 1 : -1 : 0;
2927
2924
  };
2928
2925
  function ja(e, o) {
2929
- var t = ka(e), r = Jn(o, t);
2926
+ var t = ka(e), r = Ji(o, t);
2930
2927
  return r;
2931
2928
  }
2932
2929
  function Or(e, o, t) {
2933
- var r = o.getBoundingClientRect(), i = 0, n = 0;
2930
+ var r = o.getBoundingClientRect(), n = 0, i = 0;
2934
2931
  if ("clientX" in e)
2935
- i = (e.clientX - r.left) / t, n = (e.clientY - r.top) / t;
2932
+ n = (e.clientX - r.left) / t, i = (e.clientY - r.top) / t;
2936
2933
  else {
2937
2934
  var a = e.touches[0];
2938
- i = (a.clientX - r.left) / t, n = (a.clientY - r.top) / t;
2935
+ n = (a.clientX - r.left) / t, i = (a.clientY - r.top) / t;
2939
2936
  }
2940
- return (Number.isNaN(i) || Number.isNaN(n)) && console.error("No mouse or touch offset found"), {
2941
- x: i,
2942
- y: n
2937
+ return (Number.isNaN(n) || Number.isNaN(i)) && console.error("No mouse or touch offset found"), {
2938
+ x: n,
2939
+ y: i
2943
2940
  };
2944
2941
  }
2945
- var La = function(e, o, t, r, i) {
2946
- var n = e.transformState.scale, a = e.wrapperComponent, s = e.setup, l = s.maxScale, d = s.minScale, p = s.zoomAnimation, f = s.disablePadding, c = p.size, v = p.disabled;
2942
+ var La = function(e, o, t, r, n) {
2943
+ var i = e.transformState.scale, a = e.wrapperComponent, s = e.setup, l = s.maxScale, d = s.minScale, p = s.zoomAnimation, f = s.disablePadding, c = p.size, v = p.disabled;
2947
2944
  if (!a)
2948
2945
  throw new Error("Wrapper is not mounted");
2949
- var h = n + o * t;
2950
- if (i)
2946
+ var h = i + o * t;
2947
+ if (n)
2951
2948
  return h;
2952
- var m = r ? !1 : !v, g = it(te(h, 3), d, l, c, m && !f);
2949
+ var m = r ? !1 : !v, g = nt(te(h, 3), d, l, c, m && !f);
2953
2950
  return g;
2954
2951
  }, Va = function(e, o) {
2955
- var t = e.previousWheelEvent, r = e.transformState.scale, i = e.setup, n = i.maxScale, a = i.minScale;
2956
- return t ? r < n || r > a || Math.sign(t.deltaY) !== Math.sign(o.deltaY) || t.deltaY > 0 && t.deltaY < o.deltaY || t.deltaY < 0 && t.deltaY > o.deltaY || Math.sign(t.deltaY) !== Math.sign(o.deltaY) : !1;
2952
+ var t = e.previousWheelEvent, r = e.transformState.scale, n = e.setup, i = n.maxScale, a = n.minScale;
2953
+ return t ? r < i || r > a || Math.sign(t.deltaY) !== Math.sign(o.deltaY) || t.deltaY > 0 && t.deltaY < o.deltaY || t.deltaY < 0 && t.deltaY > o.deltaY || Math.sign(t.deltaY) !== Math.sign(o.deltaY) : !1;
2957
2954
  }, Ha = function(e, o) {
2958
- var t = e.setup.pinch, r = t.disabled, i = t.excluded, n = e.isInitialized, a = o.target, s = n && !r && a;
2955
+ var t = e.setup.pinch, r = t.disabled, n = t.excluded, i = e.isInitialized, a = o.target, s = i && !r && a;
2959
2956
  if (!s)
2960
2957
  return !1;
2961
- var l = Wt(a, i);
2958
+ var l = zt(a, n);
2962
2959
  return !l;
2963
2960
  }, Fa = function(e) {
2964
- var o = e.setup.pinch.disabled, t = e.isInitialized, r = e.pinchStartDistance, i = t && !o && r;
2965
- return !!i;
2961
+ var o = e.setup.pinch.disabled, t = e.isInitialized, r = e.pinchStartDistance, n = t && !o && r;
2962
+ return !!n;
2966
2963
  }, Za = function(e, o, t) {
2967
- var r = t.getBoundingClientRect(), i = e.touches, n = te(i[0].clientX - r.left, 5), a = te(i[0].clientY - r.top, 5), s = te(i[1].clientX - r.left, 5), l = te(i[1].clientY - r.top, 5);
2964
+ var r = t.getBoundingClientRect(), n = e.touches, i = te(n[0].clientX - r.left, 5), a = te(n[0].clientY - r.top, 5), s = te(n[1].clientX - r.left, 5), l = te(n[1].clientY - r.top, 5);
2968
2965
  return {
2969
- x: (n + s) / 2 / o,
2966
+ x: (i + s) / 2 / o,
2970
2967
  y: (a + l) / 2 / o
2971
2968
  };
2972
2969
  }, Er = function(e) {
2973
2970
  return Math.sqrt(Math.pow(e.touches[0].pageX - e.touches[1].pageX, 2) + Math.pow(e.touches[0].pageY - e.touches[1].pageY, 2));
2974
2971
  }, Ua = function(e, o) {
2975
- var t = e.pinchStartScale, r = e.pinchStartDistance, i = e.setup, n = i.maxScale, a = i.minScale, s = i.zoomAnimation, l = i.disablePadding, d = s.size, p = s.disabled;
2972
+ var t = e.pinchStartScale, r = e.pinchStartDistance, n = e.setup, i = n.maxScale, a = n.minScale, s = n.zoomAnimation, l = n.disablePadding, d = s.size, p = s.disabled;
2976
2973
  if (!t || r === null || !o)
2977
2974
  throw new Error("Pinch touches distance was not provided");
2978
2975
  if (o < 0)
2979
2976
  return e.transformState.scale;
2980
2977
  var f = o / r, c = f * t;
2981
- return it(te(c, 2), a, n, d, !p && !l);
2978
+ return nt(te(c, 2), a, i, d, !p && !l);
2982
2979
  }, qa = 160, Ka = 100, Qa = function(e, o) {
2983
- var t = e.props, r = t.onWheelStart, i = t.onZoomStart;
2984
- e.wheelStopEventTimer || (de(e), z(M(e), o, r), z(M(e), o, i));
2980
+ var t = e.props, r = t.onWheelStart, n = t.onZoomStart;
2981
+ e.wheelStopEventTimer || (de(e), z(M(e), o, r), z(M(e), o, n));
2985
2982
  }, Ga = function(e, o) {
2986
- var t = e.props, r = t.onWheel, i = t.onZoom, n = e.contentComponent, a = e.setup, s = e.transformState, l = s.scale, d = a.limitToBounds, p = a.centerZoomedOut, f = a.zoomAnimation, c = a.wheel, v = a.disablePadding, h = a.smooth, m = f.size, g = f.disabled, P = c.step, S = c.smoothStep;
2987
- if (!n)
2983
+ var t = e.props, r = t.onWheel, n = t.onZoom, i = e.contentComponent, a = e.setup, s = e.transformState, l = s.scale, d = a.limitToBounds, p = a.centerZoomedOut, f = a.zoomAnimation, c = a.wheel, v = a.disablePadding, h = a.smooth, m = f.size, g = f.disabled, P = c.step, S = c.smoothStep;
2984
+ if (!i)
2988
2985
  throw new Error("Component not mounted");
2989
2986
  o.preventDefault(), o.stopPropagation();
2990
2987
  var y = ja(o, null), b = h ? S * Math.abs(o.deltaY) : P, w = La(e, y, b, !o.ctrlKey);
2991
2988
  if (l !== w) {
2992
- var T = je(e, w), O = Or(o, n, l), D = g || m === 0 || p || v, E = d && D, A = $t(e, O.x, O.y, w, T, E), N = A.x, $ = A.y;
2993
- e.previousWheelEvent = o, e.setTransformState(w, N, $), z(M(e), o, r), z(M(e), o, i);
2989
+ var T = je(e, w), O = Or(o, i, l), D = g || m === 0 || p || v, E = d && D, R = Bt(e, O.x, O.y, w, T, E), N = R.x, $ = R.y;
2990
+ e.previousWheelEvent = o, e.setTransformState(w, N, $), z(M(e), o, r), z(M(e), o, n);
2994
2991
  }
2995
2992
  }, Ja = function(e, o) {
2996
- var t = e.props, r = t.onWheelStop, i = t.onZoomStop;
2997
- Jt(e.wheelAnimationTimer), e.wheelAnimationTimer = setTimeout(function() {
2993
+ var t = e.props, r = t.onWheelStop, n = t.onZoomStop;
2994
+ Qt(e.wheelAnimationTimer), e.wheelAnimationTimer = setTimeout(function() {
2998
2995
  e.mounted && (yr(e, o.x, o.y), e.wheelAnimationTimer = null);
2999
2996
  }, Ka);
3000
- var n = Va(e, o);
3001
- n && (Jt(e.wheelStopEventTimer), e.wheelStopEventTimer = setTimeout(function() {
3002
- e.mounted && (e.wheelStopEventTimer = null, z(M(e), o, r), z(M(e), o, i));
2997
+ var i = Va(e, o);
2998
+ i && (Qt(e.wheelStopEventTimer), e.wheelStopEventTimer = setTimeout(function() {
2999
+ e.mounted && (e.wheelStopEventTimer = null, z(M(e), o, r), z(M(e), o, n));
3003
3000
  }, qa));
3004
3001
  }, Ia = function(e, o) {
3005
3002
  var t = Er(o);
3006
3003
  e.pinchStartDistance = t, e.lastDistance = t, e.pinchStartScale = e.transformState.scale, e.isPanning = !1, de(e);
3007
3004
  }, es = function(e, o) {
3008
- var t = e.contentComponent, r = e.pinchStartDistance, i = e.transformState.scale, n = e.setup, a = n.limitToBounds, s = n.centerZoomedOut, l = n.zoomAnimation, d = l.disabled, p = l.size;
3005
+ var t = e.contentComponent, r = e.pinchStartDistance, n = e.transformState.scale, i = e.setup, a = i.limitToBounds, s = i.centerZoomedOut, l = i.zoomAnimation, d = l.disabled, p = l.size;
3009
3006
  if (!(r === null || !t)) {
3010
- var f = Za(o, i, t);
3007
+ var f = Za(o, n, t);
3011
3008
  if (!(!Number.isFinite(f.x) || !Number.isFinite(f.y))) {
3012
3009
  var c = Er(o), v = Ua(e, c);
3013
- if (v !== i) {
3014
- var h = je(e, v), m = d || p === 0 || s, g = a && m, P = $t(e, f.x, f.y, v, h, g), S = P.x, y = P.y;
3010
+ if (v !== n) {
3011
+ var h = je(e, v), m = d || p === 0 || s, g = a && m, P = Bt(e, f.x, f.y, v, h, g), S = P.x, y = P.y;
3015
3012
  e.pinchMidpoint = f, e.lastDistance = c, e.setTransformState(v, S, y);
3016
3013
  }
3017
3014
  }
@@ -3019,41 +3016,41 @@ var La = function(e, o, t, r, i) {
3019
3016
  }, ts = function(e) {
3020
3017
  var o = e.pinchMidpoint;
3021
3018
  e.velocity = null, e.lastDistance = null, e.pinchMidpoint = null, e.pinchStartScale = null, e.pinchStartDistance = null, yr(e, o == null ? void 0 : o.x, o == null ? void 0 : o.y);
3022
- }, Ar = function(e, o) {
3019
+ }, Rr = function(e, o) {
3023
3020
  var t = e.props.onZoomStop, r = e.setup.doubleClick.animationTime;
3024
- Jt(e.doubleClickStopEventTimer), e.doubleClickStopEventTimer = setTimeout(function() {
3021
+ Qt(e.doubleClickStopEventTimer), e.doubleClickStopEventTimer = setTimeout(function() {
3025
3022
  e.doubleClickStopEventTimer = null, z(M(e), o, t);
3026
3023
  }, r);
3027
3024
  }, os = function(e, o) {
3028
- var t = e.props, r = t.onZoomStart, i = t.onZoom, n = e.setup.doubleClick, a = n.animationTime, s = n.animationType;
3025
+ var t = e.props, r = t.onZoomStart, n = t.onZoom, i = e.setup.doubleClick, a = i.animationTime, s = i.animationType;
3029
3026
  z(M(e), o, r), Cr(e, a, s, function() {
3030
- return z(M(e), o, i);
3031
- }), Ar(e, o);
3027
+ return z(M(e), o, n);
3028
+ }), Rr(e, o);
3032
3029
  };
3033
3030
  function rs(e, o) {
3034
- var t = e.setup, r = e.doubleClickStopEventTimer, i = e.transformState, n = e.contentComponent, a = i.scale, s = e.props, l = s.onZoomStart, d = s.onZoom, p = t.doubleClick, f = p.disabled, c = p.mode, v = p.step, h = p.animationTime, m = p.animationType;
3031
+ var t = e.setup, r = e.doubleClickStopEventTimer, n = e.transformState, i = e.contentComponent, a = n.scale, s = e.props, l = s.onZoomStart, d = s.onZoom, p = t.doubleClick, f = p.disabled, c = p.mode, v = p.step, h = p.animationTime, m = p.animationType;
3035
3032
  if (!f && !r) {
3036
3033
  if (c === "reset")
3037
3034
  return os(e, o);
3038
- if (!n)
3035
+ if (!i)
3039
3036
  return console.error("No ContentComponent found");
3040
3037
  var g = c === "zoomOut" ? -1 : 1, P = Pr(e, g, v);
3041
3038
  if (a !== P) {
3042
3039
  z(M(e), o, l);
3043
- var S = Or(o, n, a), y = po(e, P, S.x, S.y);
3040
+ var S = Or(o, i, a), y = po(e, P, S.x, S.y);
3044
3041
  if (!y)
3045
3042
  return console.error("Error during zoom event. New transformation state was not calculated.");
3046
- z(M(e), o, d), Se(e, y, h, m), Ar(e, o);
3043
+ z(M(e), o, d), Se(e, y, h, m), Rr(e, o);
3047
3044
  }
3048
3045
  }
3049
3046
  }
3050
- var is = function(e, o) {
3051
- var t = e.isInitialized, r = e.setup, i = e.wrapperComponent, n = r.doubleClick, a = n.disabled, s = n.excluded, l = o.target, d = i == null ? void 0 : i.contains(l), p = t && l && d && !a;
3047
+ var ns = function(e, o) {
3048
+ var t = e.isInitialized, r = e.setup, n = e.wrapperComponent, i = r.doubleClick, a = i.disabled, s = i.excluded, l = o.target, d = n == null ? void 0 : n.contains(l), p = t && l && d && !a;
3052
3049
  if (!p)
3053
3050
  return !1;
3054
- var f = Wt(l, s);
3051
+ var f = zt(l, s);
3055
3052
  return !f;
3056
- }, ns = (
3053
+ }, is = (
3057
3054
  /** @class */
3058
3055
  function() {
3059
3056
  function e(o) {
@@ -3065,72 +3062,72 @@ var is = function(e, o) {
3065
3062
  }, this.update = function(r) {
3066
3063
  je(t, t.transformState.scale), t.setup = Ko(r);
3067
3064
  }, this.initializeWindowEvents = function() {
3068
- var r, i = Ut(), n = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, a = n == null ? void 0 : n.defaultView;
3069
- a == null || a.addEventListener("mousedown", t.onPanningStart, i), a == null || a.addEventListener("mousemove", t.onPanning, i), a == null || a.addEventListener("mouseup", t.onPanningStop, i), n == null || n.addEventListener("mouseleave", t.clearPanning, i), a == null || a.addEventListener("keyup", t.setKeyUnPressed, i), a == null || a.addEventListener("keydown", t.setKeyPressed, i);
3065
+ var r, n = Ft(), i = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, a = i == null ? void 0 : i.defaultView;
3066
+ a == null || a.addEventListener("mousedown", t.onPanningStart, n), a == null || a.addEventListener("mousemove", t.onPanning, n), a == null || a.addEventListener("mouseup", t.onPanningStop, n), i == null || i.addEventListener("mouseleave", t.clearPanning, n), a == null || a.addEventListener("keyup", t.setKeyUnPressed, n), a == null || a.addEventListener("keydown", t.setKeyPressed, n);
3070
3067
  }, this.cleanupWindowEvents = function() {
3071
- var r, i, n = Ut(), a = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, s = a == null ? void 0 : a.defaultView;
3072
- s == null || s.removeEventListener("mousedown", t.onPanningStart, n), s == null || s.removeEventListener("mousemove", t.onPanning, n), s == null || s.removeEventListener("mouseup", t.onPanningStop, n), a == null || a.removeEventListener("mouseleave", t.clearPanning, n), s == null || s.removeEventListener("keyup", t.setKeyUnPressed, n), s == null || s.removeEventListener("keydown", t.setKeyPressed, n), document.removeEventListener("mouseleave", t.clearPanning, n), de(t), (i = t.observer) === null || i === void 0 || i.disconnect();
3068
+ var r, n, i = Ft(), a = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, s = a == null ? void 0 : a.defaultView;
3069
+ s == null || s.removeEventListener("mousedown", t.onPanningStart, i), s == null || s.removeEventListener("mousemove", t.onPanning, i), s == null || s.removeEventListener("mouseup", t.onPanningStop, i), a == null || a.removeEventListener("mouseleave", t.clearPanning, i), s == null || s.removeEventListener("keyup", t.setKeyUnPressed, i), s == null || s.removeEventListener("keydown", t.setKeyPressed, i), document.removeEventListener("mouseleave", t.clearPanning, i), de(t), (n = t.observer) === null || n === void 0 || n.disconnect();
3073
3070
  }, this.handleInitializeWrapperEvents = function(r) {
3074
- var i = Ut();
3075
- r.addEventListener("wheel", t.onWheelZoom, i), r.addEventListener("dblclick", t.onDoubleClick, i), r.addEventListener("touchstart", t.onTouchPanningStart, i), r.addEventListener("touchmove", t.onTouchPanning, i), r.addEventListener("touchend", t.onTouchPanningStop, i);
3071
+ var n = Ft();
3072
+ r.addEventListener("wheel", t.onWheelZoom, n), r.addEventListener("dblclick", t.onDoubleClick, n), r.addEventListener("touchstart", t.onTouchPanningStart, n), r.addEventListener("touchmove", t.onTouchPanning, n), r.addEventListener("touchend", t.onTouchPanningStop, n);
3076
3073
  }, this.handleInitialize = function(r) {
3077
- var i = t.setup.centerOnInit;
3078
- t.applyTransformation(), t.onInitCallbacks.forEach(function(n) {
3079
- return n(M(t));
3080
- }), i && (t.setCenter(), t.observer = new ResizeObserver(function() {
3081
- var n;
3074
+ var n = t.setup.centerOnInit;
3075
+ t.applyTransformation(), t.onInitCallbacks.forEach(function(i) {
3076
+ return i(M(t));
3077
+ }), n && (t.setCenter(), t.observer = new ResizeObserver(function() {
3078
+ var i;
3082
3079
  t.onInitCallbacks.forEach(function(a) {
3083
3080
  return a(M(t));
3084
- }), t.setCenter(), (n = t.observer) === null || n === void 0 || n.disconnect();
3081
+ }), t.setCenter(), (i = t.observer) === null || i === void 0 || i.disconnect();
3085
3082
  }), t.observer.observe(r));
3086
3083
  }, this.onWheelZoom = function(r) {
3087
- var i = t.setup.disabled;
3088
- if (!i) {
3089
- var n = Xa(t, r);
3090
- if (n) {
3084
+ var n = t.setup.disabled;
3085
+ if (!n) {
3086
+ var i = Wa(t, r);
3087
+ if (i) {
3091
3088
  var a = t.isPressingKeys(t.setup.wheel.activationKeys);
3092
3089
  a && (Qa(t, r), Ga(t, r), Ja(t, r));
3093
3090
  }
3094
3091
  }
3095
3092
  }, this.onPanningStart = function(r) {
3096
- var i = t.setup.disabled, n = t.props.onPanningStart;
3097
- if (!i) {
3093
+ var n = t.setup.disabled, i = t.props.onPanningStart;
3094
+ if (!n) {
3098
3095
  var a = Vo(t, r);
3099
3096
  if (a) {
3100
3097
  var s = t.isPressingKeys(t.setup.panning.activationKeys);
3101
- s && (r.preventDefault(), r.stopPropagation(), de(t), Zo(t, r), z(M(t), r, n));
3098
+ s && (r.preventDefault(), r.stopPropagation(), de(t), Zo(t, r), z(M(t), r, i));
3102
3099
  }
3103
3100
  }
3104
3101
  }, this.onPanning = function(r) {
3105
- var i = t.setup.disabled, n = t.props.onPanning;
3106
- if (!i) {
3102
+ var n = t.setup.disabled, i = t.props.onPanning;
3103
+ if (!n) {
3107
3104
  var a = Ho(t);
3108
3105
  if (a) {
3109
3106
  var s = t.isPressingKeys(t.setup.panning.activationKeys);
3110
- s && (r.preventDefault(), r.stopPropagation(), Uo(t, r.clientX, r.clientY), z(M(t), r, n));
3107
+ s && (r.preventDefault(), r.stopPropagation(), Uo(t, r.clientX, r.clientY), z(M(t), r, i));
3111
3108
  }
3112
3109
  }
3113
3110
  }, this.onPanningStop = function(r) {
3114
- var i = t.props.onPanningStop;
3115
- t.isPanning && (Aa(t), z(M(t), r, i));
3111
+ var n = t.props.onPanningStop;
3112
+ t.isPanning && (Ra(t), z(M(t), r, n));
3116
3113
  }, this.onPinchStart = function(r) {
3117
- var i = t.setup.disabled, n = t.props, a = n.onPinchingStart, s = n.onZoomStart;
3118
- if (!i) {
3114
+ var n = t.setup.disabled, i = t.props, a = i.onPinchingStart, s = i.onZoomStart;
3115
+ if (!n) {
3119
3116
  var l = Ha(t, r);
3120
3117
  l && (Ia(t, r), de(t), z(M(t), r, a), z(M(t), r, s));
3121
3118
  }
3122
3119
  }, this.onPinch = function(r) {
3123
- var i = t.setup.disabled, n = t.props, a = n.onPinching, s = n.onZoom;
3124
- if (!i) {
3120
+ var n = t.setup.disabled, i = t.props, a = i.onPinching, s = i.onZoom;
3121
+ if (!n) {
3125
3122
  var l = Fa(t);
3126
3123
  l && (r.preventDefault(), r.stopPropagation(), es(t, r), z(M(t), r, a), z(M(t), r, s));
3127
3124
  }
3128
3125
  }, this.onPinchStop = function(r) {
3129
- var i = t.props, n = i.onPinchingStop, a = i.onZoomStop;
3130
- t.pinchStartScale && (ts(t), z(M(t), r, n), z(M(t), r, a));
3126
+ var n = t.props, i = n.onPinchingStop, a = n.onZoomStop;
3127
+ t.pinchStartScale && (ts(t), z(M(t), r, i), z(M(t), r, a));
3131
3128
  }, this.onTouchPanningStart = function(r) {
3132
- var i = t.setup.disabled, n = t.props.onPanningStart;
3133
- if (!i) {
3129
+ var n = t.setup.disabled, i = t.props.onPanningStart;
3130
+ if (!n) {
3134
3131
  var a = Vo(t, r);
3135
3132
  if (a) {
3136
3133
  var s = t.lastTouch && +/* @__PURE__ */ new Date() - t.lastTouch < 200;
@@ -3139,30 +3136,30 @@ var is = function(e, o) {
3139
3136
  else {
3140
3137
  t.lastTouch = +/* @__PURE__ */ new Date(), de(t);
3141
3138
  var l = r.touches, d = l.length === 1, p = l.length === 2;
3142
- d && (de(t), Zo(t, r), z(M(t), r, n)), p && t.onPinchStart(r);
3139
+ d && (de(t), Zo(t, r), z(M(t), r, i)), p && t.onPinchStart(r);
3143
3140
  }
3144
3141
  }
3145
3142
  }
3146
3143
  }, this.onTouchPanning = function(r) {
3147
- var i = t.setup.disabled, n = t.props.onPanning;
3144
+ var n = t.setup.disabled, i = t.props.onPanning;
3148
3145
  if (t.isPanning && r.touches.length === 1) {
3149
- if (i)
3146
+ if (n)
3150
3147
  return;
3151
3148
  var a = Ho(t);
3152
3149
  if (!a)
3153
3150
  return;
3154
3151
  r.preventDefault(), r.stopPropagation();
3155
3152
  var s = r.touches[0];
3156
- Uo(t, s.clientX, s.clientY), z(M(t), r, n);
3153
+ Uo(t, s.clientX, s.clientY), z(M(t), r, i);
3157
3154
  } else
3158
3155
  r.touches.length > 1 && t.onPinch(r);
3159
3156
  }, this.onTouchPanningStop = function(r) {
3160
3157
  t.onPanningStop(r), t.onPinchStop(r);
3161
3158
  }, this.onDoubleClick = function(r) {
3162
- var i = t.setup.disabled;
3163
- if (!i) {
3164
- var n = is(t, r);
3165
- n && rs(t, r);
3159
+ var n = t.setup.disabled;
3160
+ if (!n) {
3161
+ var i = ns(t, r);
3162
+ i && rs(t, r);
3166
3163
  }
3167
3164
  }, this.clearPanning = function(r) {
3168
3165
  t.isPanning && t.onPanningStop(r);
@@ -3171,17 +3168,17 @@ var is = function(e, o) {
3171
3168
  }, this.setKeyUnPressed = function(r) {
3172
3169
  t.pressedKeys[r.key] = !1;
3173
3170
  }, this.isPressingKeys = function(r) {
3174
- return r.length ? !!r.find(function(i) {
3175
- return t.pressedKeys[i];
3171
+ return r.length ? !!r.find(function(n) {
3172
+ return t.pressedKeys[n];
3176
3173
  }) : !0;
3177
- }, this.setTransformState = function(r, i, n) {
3174
+ }, this.setTransformState = function(r, n, i) {
3178
3175
  var a = t.props.onTransformed;
3179
- if (!Number.isNaN(r) && !Number.isNaN(i) && !Number.isNaN(n)) {
3180
- r !== t.transformState.scale && (t.transformState.previousScale = t.transformState.scale, t.transformState.scale = r), t.transformState.positionX = i, t.transformState.positionY = n, t.applyTransformation();
3176
+ if (!Number.isNaN(r) && !Number.isNaN(n) && !Number.isNaN(i)) {
3177
+ r !== t.transformState.scale && (t.transformState.previousScale = t.transformState.scale, t.transformState.scale = r), t.transformState.positionX = n, t.transformState.positionY = i, t.applyTransformation();
3181
3178
  var s = M(t);
3182
3179
  t.onChangeCallbacks.forEach(function(l) {
3183
3180
  return l(s);
3184
- }), z(s, { scale: r, positionX: i, positionY: n }, a);
3181
+ }), z(s, { scale: r, positionX: n, positionY: i }, a);
3185
3182
  } else
3186
3183
  console.error("Detected NaN set state values");
3187
3184
  }, this.setCenter = function() {
@@ -3189,11 +3186,11 @@ var is = function(e, o) {
3189
3186
  var r = Sr(t.transformState.scale, t.wrapperComponent, t.contentComponent);
3190
3187
  t.setTransformState(r.scale, r.positionX, r.positionY);
3191
3188
  }
3192
- }, this.handleTransformStyles = function(r, i, n) {
3193
- return t.props.customTransform ? t.props.customTransform(r, i, n) : $a(r, i, n);
3189
+ }, this.handleTransformStyles = function(r, n, i) {
3190
+ return t.props.customTransform ? t.props.customTransform(r, n, i) : $a(r, n, i);
3194
3191
  }, this.applyTransformation = function() {
3195
3192
  if (!(!t.mounted || !t.contentComponent)) {
3196
- var r = t.transformState, i = r.scale, n = r.positionX, a = r.positionY, s = t.handleTransformStyles(n, a, i);
3193
+ var r = t.transformState, n = r.scale, i = r.positionX, a = r.positionY, s = t.handleTransformStyles(i, a, n);
3197
3194
  t.contentComponent.style.transform = s;
3198
3195
  }
3199
3196
  }, this.getContext = function() {
@@ -3206,41 +3203,41 @@ var is = function(e, o) {
3206
3203
  return t.onInitCallbacks.has(r) || t.onInitCallbacks.add(r), function() {
3207
3204
  t.onInitCallbacks.delete(r);
3208
3205
  };
3209
- }, this.init = function(r, i) {
3210
- t.cleanupWindowEvents(), t.wrapperComponent = r, t.contentComponent = i, je(t, t.transformState.scale), t.handleInitializeWrapperEvents(r), t.handleInitialize(i), t.initializeWindowEvents(), t.isInitialized = !0;
3211
- var n = M(t);
3212
- z(n, void 0, t.props.onInit);
3206
+ }, this.init = function(r, n) {
3207
+ t.cleanupWindowEvents(), t.wrapperComponent = r, t.contentComponent = n, je(t, t.transformState.scale), t.handleInitializeWrapperEvents(r), t.handleInitialize(n), t.initializeWindowEvents(), t.isInitialized = !0;
3208
+ var i = M(t);
3209
+ z(i, void 0, t.props.onInit);
3213
3210
  }, this.props = o, this.setup = Ko(this.props), this.transformState = wr(this.props);
3214
3211
  }
3215
3212
  return e;
3216
3213
  }()
3217
- ), Xt = xe.createContext(null), as = function(e, o) {
3214
+ ), $t = xe.createContext(null), as = function(e, o) {
3218
3215
  return typeof e == "function" ? e(o) : e;
3219
- }, ks = xe.forwardRef(function(e, o) {
3220
- var t = Tt(new ns(e)).current, r = as(e.children, Et(t));
3221
- return Qr(o, function() {
3216
+ }, Ls = xe.forwardRef(function(e, o) {
3217
+ var t = Pt(new is(e)).current, r = as(e.children, Et(t));
3218
+ return Fr(o, function() {
3222
3219
  return Et(t);
3223
- }, [t]), It(function() {
3220
+ }, [t]), Gt(function() {
3224
3221
  t.update(e);
3225
- }, [t, e]), xe.createElement(Xt.Provider, { value: t }, r);
3222
+ }, [t, e]), xe.createElement($t.Provider, { value: t }, r);
3226
3223
  });
3227
3224
  xe.forwardRef(function(e, o) {
3228
- var t = Tt(null), r = eo(Xt);
3229
- return It(function() {
3230
- return r.onChange(function(i) {
3225
+ var t = Pt(null), r = Jt($t);
3226
+ return Gt(function() {
3227
+ return r.onChange(function(n) {
3231
3228
  if (t.current) {
3232
- var n = 0, a = 0;
3233
- t.current.style.transform = r.handleTransformStyles(n, a, 1 / i.instance.transformState.scale);
3229
+ var i = 0, a = 0;
3230
+ t.current.style.transform = r.handleTransformStyles(i, a, 1 / n.instance.transformState.scale);
3234
3231
  }
3235
3232
  });
3236
- }, [r]), xe.createElement("div", Te({}, e, { ref: Wa([t, o]) }));
3233
+ }, [r]), xe.createElement("div", Te({}, e, { ref: Xa([t, o]) }));
3237
3234
  });
3238
3235
  function ss(e, o) {
3239
3236
  o === void 0 && (o = {});
3240
3237
  var t = o.insertAt;
3241
3238
  if (!(!e || typeof document > "u")) {
3242
- var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
3243
- i.type = "text/css", t === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
3239
+ var r = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
3240
+ n.type = "text/css", t === "top" && r.firstChild ? r.insertBefore(n, r.firstChild) : r.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
3244
3241
  }
3245
3242
  }
3246
3243
  var ls = `.transform-component-module_wrapper__SPB86 {
@@ -3275,18 +3272,18 @@ var ls = `.transform-component-module_wrapper__SPB86 {
3275
3272
  }
3276
3273
  `, Qo = { wrapper: "transform-component-module_wrapper__SPB86", content: "transform-component-module_content__FBWxo" };
3277
3274
  ss(ls);
3278
- var js = function(e) {
3279
- var o = e.children, t = e.wrapperClass, r = t === void 0 ? "" : t, i = e.contentClass, n = i === void 0 ? "" : i, a = e.wrapperStyle, s = e.contentStyle, l = e.wrapperProps, d = l === void 0 ? {} : l, p = e.contentProps, f = p === void 0 ? {} : p, c = eo(Xt).init, v = Tt(null), h = Tt(null);
3280
- return It(function() {
3275
+ var Vs = function(e) {
3276
+ var o = e.children, t = e.wrapperClass, r = t === void 0 ? "" : t, n = e.contentClass, i = n === void 0 ? "" : n, a = e.wrapperStyle, s = e.contentStyle, l = e.wrapperProps, d = l === void 0 ? {} : l, p = e.contentProps, f = p === void 0 ? {} : p, c = Jt($t).init, v = Pt(null), h = Pt(null);
3277
+ return Gt(function() {
3281
3278
  var m = v.current, g = h.current;
3282
3279
  m !== null && g !== null && c && c(m, g);
3283
3280
  }, []), xe.createElement(
3284
3281
  "div",
3285
3282
  Te({}, d, { ref: v, className: "react-transform-wrapper ".concat(Qo.wrapper, " ").concat(r), style: a }),
3286
- xe.createElement("div", Te({}, f, { ref: h, className: "react-transform-component ".concat(Qo.content, " ").concat(n), style: s }), o)
3283
+ xe.createElement("div", Te({}, f, { ref: h, className: "react-transform-component ".concat(Qo.content, " ").concat(i), style: s }), o)
3287
3284
  );
3288
3285
  }, us = function() {
3289
- var e = eo(Xt);
3286
+ var e = Jt($t);
3290
3287
  if (!e)
3291
3288
  throw new Error("Transform context must be placed inside TransformWrapper");
3292
3289
  return e;
@@ -3297,15 +3294,15 @@ var js = function(e) {
3297
3294
  Object.defineProperty(fo, "__esModule", {
3298
3295
  value: !0
3299
3296
  });
3300
- var Rr = fo.default = void 0, fs = ds(Rt()), cs = At, vs = (0, fs.default)(/* @__PURE__ */ (0, cs.jsx)("path", {
3297
+ var Ar = fo.default = void 0, fs = ds(At()), cs = Rt, vs = (0, fs.default)(/* @__PURE__ */ (0, cs.jsx)("path", {
3301
3298
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
3302
3299
  }), "Add");
3303
- Rr = fo.default = vs;
3300
+ Ar = fo.default = vs;
3304
3301
  var co = {}, ms = xt;
3305
3302
  Object.defineProperty(co, "__esModule", {
3306
3303
  value: !0
3307
3304
  });
3308
- var xr = co.default = void 0, hs = ms(Rt()), gs = At, bs = (0, hs.default)(/* @__PURE__ */ (0, gs.jsx)("path", {
3305
+ var xr = co.default = void 0, hs = ms(At()), gs = Rt, bs = (0, hs.default)(/* @__PURE__ */ (0, gs.jsx)("path", {
3309
3306
  d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
3310
3307
  }), "Refresh");
3311
3308
  xr = co.default = bs;
@@ -3313,7 +3310,7 @@ var vo = {}, ys = xt;
3313
3310
  Object.defineProperty(vo, "__esModule", {
3314
3311
  value: !0
3315
3312
  });
3316
- var Dr = vo.default = void 0, ws = ys(Rt()), Ps = At, Ts = (0, ws.default)(/* @__PURE__ */ (0, Ps.jsx)("path", {
3313
+ var Dr = vo.default = void 0, ws = ys(At()), Ps = Rt, Ts = (0, ws.default)(/* @__PURE__ */ (0, Ps.jsx)("path", {
3317
3314
  d: "M19 13H5v-2h14v2z"
3318
3315
  }), "Remove");
3319
3316
  Dr = vo.default = Ts;
@@ -3321,11 +3318,11 @@ var mo = {}, Cs = xt;
3321
3318
  Object.defineProperty(mo, "__esModule", {
3322
3319
  value: !0
3323
3320
  });
3324
- var Nr = mo.default = void 0, Ss = Cs(Rt()), Os = At, Es = (0, Ss.default)(/* @__PURE__ */ (0, Os.jsx)("path", {
3321
+ var Nr = mo.default = void 0, Ss = Cs(At()), Os = Rt, Es = (0, Ss.default)(/* @__PURE__ */ (0, Os.jsx)("path", {
3325
3322
  d: "m4 7.59 5-5c.78-.78 2.05-.78 2.83 0L20.24 11h-2.83L10.4 4 5.41 9H8v2H2V5h2v2.59zM20 19h2v-6h-6v2h2.59l-4.99 5-7.01-7H3.76l8.41 8.41c.78.78 2.05.78 2.83 0l5-5V19z"
3326
3323
  }), "ScreenRotationAlt");
3327
3324
  Nr = mo.default = Es;
3328
- const As = {
3325
+ const Rs = {
3329
3326
  position: "absolute",
3330
3327
  zIndex: 1,
3331
3328
  right: "2rem",
@@ -3344,7 +3341,7 @@ const As = {
3344
3341
  "&:focus": {
3345
3342
  outline: "none"
3346
3343
  }
3347
- }, Rs = {
3344
+ }, As = {
3348
3345
  ...yt,
3349
3346
  position: "absolute",
3350
3347
  zIndex: 1,
@@ -3353,13 +3350,13 @@ const As = {
3353
3350
  background: "#0F0E0E4D",
3354
3351
  color: "white",
3355
3352
  padding: "0.55rem"
3356
- }, Ls = ({
3353
+ }, Hs = ({
3357
3354
  controllerContainerProps: e,
3358
3355
  zoomInButtonProps: o,
3359
3356
  zoomOutButtonProps: t,
3360
3357
  resetTransformButtonProps: r,
3361
- dividerProps: i,
3362
- handleRotate: n,
3358
+ dividerProps: n,
3359
+ handleRotate: i,
3363
3360
  rotateButtonProps: a
3364
3361
  }) => {
3365
3362
  const { zoomIn: s, zoomOut: l, resetTransform: d } = ps();
@@ -3379,16 +3376,16 @@ const As = {
3379
3376
  disableRipple: !0,
3380
3377
  disableFocusRipple: !0,
3381
3378
  "aria-label": "Rotate",
3382
- onClick: n,
3383
- sx: Rs,
3379
+ onClick: i,
3380
+ sx: As,
3384
3381
  ...a,
3385
3382
  children: /* @__PURE__ */ _(Nr, {})
3386
3383
  }
3387
3384
  ) }),
3388
3385
  /* @__PURE__ */ wt(
3389
- Wn,
3386
+ Wi,
3390
3387
  {
3391
- sx: As,
3388
+ sx: Rs,
3392
3389
  ...e,
3393
3390
  children: [
3394
3391
  /* @__PURE__ */ _(ht, { title: "Zoom In", placement: "left", children: /* @__PURE__ */ _(
@@ -3400,10 +3397,10 @@ const As = {
3400
3397
  onClick: p,
3401
3398
  sx: yt,
3402
3399
  ...o,
3403
- children: /* @__PURE__ */ _(Rr, {})
3400
+ children: /* @__PURE__ */ _(Ar, {})
3404
3401
  }
3405
3402
  ) }),
3406
- /* @__PURE__ */ _(Lo, { sx: Go, ...i }),
3403
+ /* @__PURE__ */ _(Lo, { sx: Go, ...n }),
3407
3404
  /* @__PURE__ */ _(ht, { title: "Zoom Out", placement: "left", children: /* @__PURE__ */ _(
3408
3405
  ft,
3409
3406
  {
@@ -3416,7 +3413,7 @@ const As = {
3416
3413
  children: /* @__PURE__ */ _(Dr, {})
3417
3414
  }
3418
3415
  ) }),
3419
- /* @__PURE__ */ _(Lo, { sx: Go, ...i }),
3416
+ /* @__PURE__ */ _(Lo, { sx: Go, ...n }),
3420
3417
  /* @__PURE__ */ _(ht, { title: "Reset", placement: "left", children: /* @__PURE__ */ _(
3421
3418
  ft,
3422
3419
  {
@@ -3435,8 +3432,8 @@ const As = {
3435
3432
  ] });
3436
3433
  };
3437
3434
  export {
3438
- Wn as B,
3439
- ks as T,
3440
- Ls as Z,
3441
- js as a
3435
+ Wi as B,
3436
+ Ls as T,
3437
+ Hs as Z,
3438
+ Vs as a
3442
3439
  };