@ukpc-lib/react 0.2.2 → 0.2.4
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.
- package/dist/components/index.cjs +13 -13
- package/dist/components/index.js +665 -677
- package/dist/{index.module-9c4fe97a.cjs → index.module-35d2f1ab.cjs} +75 -75
- package/dist/{index.module-34bab88b.js → index.module-ebc563e0.js} +5084 -5081
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/has-permission/index.cjs +74 -74
- package/web-components-bundle/has-permission/index.js +5678 -5681
- package/web-components-bundle/{index-78b82a5c.js → index-d10944d5.js} +547 -559
- package/web-components-bundle/{index-fdee8d7a.cjs → index-dd30b753.cjs} +9 -9
package/dist/components/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Vc, g as Lc, Q as la, R as zc, l as jc, p as Fc, c as An, s as Pn, _ as W, a as st, P as D, b as je, d as $c, o as Bc, e as Wc, f as Uc, h as ro, I as Hc, i as Yc, j as io, D as Gc, k as ut, r as qc, m as Kc, B as Xc } from "../index.module-
|
|
2
|
-
import { n as D3, q as I3 } from "../index.module-
|
|
3
|
-
import { jsxs as R, Fragment as
|
|
1
|
+
import { C as Vc, g as Lc, Q as la, R as zc, l as jc, p as Fc, c as An, s as Pn, _ as W, a as st, P as D, b as je, d as $c, o as Bc, e as Wc, f as Uc, h as ro, I as Hc, i as Yc, j as io, D as Gc, k as ut, r as qc, m as Kc, B as Xc } from "../index.module-ebc563e0.js";
|
|
2
|
+
import { n as D3, q as I3 } from "../index.module-ebc563e0.js";
|
|
3
|
+
import { jsxs as R, Fragment as lr, jsx as v } from "react/jsx-runtime";
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import ca, { useState as J, useRef as Ye, useEffect as Re, createContext as $t, useLayoutEffect as
|
|
5
|
+
import ca, { useState as J, useRef as Ye, useEffect as Re, createContext as $t, useLayoutEffect as mi, useContext as ue, useInsertionEffect as Zc, useCallback as Jt, useMemo as cr, forwardRef as ua, createElement as en, useId as Qc, PureComponent as Jc } from "react";
|
|
6
6
|
import "@r2wc/react-to-web-component";
|
|
7
7
|
import eu from "axios";
|
|
8
8
|
import { Link as tu, useLocation as nu } from "react-router-dom";
|
|
9
9
|
import { createPortal as ru } from "react-dom";
|
|
10
|
-
import { Stack as
|
|
10
|
+
import { Stack as _e, Dialog as iu, DialogTitle as ou, Typography as pt, DialogContent as su, DialogActions as au, Button as oo, ClickAwayListener as lu, TextField as da, IconButton as cu, CircularProgress as uu, Fade as du, Paper as fu } from "@mui/material";
|
|
11
11
|
import fe from "moment";
|
|
12
12
|
const hu = `.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
13
13
|
`;
|
|
@@ -22,7 +22,7 @@ function fa({
|
|
|
22
22
|
var o;
|
|
23
23
|
((o = i.target) == null ? void 0 : o.id) === "modal-wrapper" && t();
|
|
24
24
|
}
|
|
25
|
-
return /* @__PURE__ */ R(
|
|
25
|
+
return /* @__PURE__ */ R(lr, { children: [
|
|
26
26
|
/* @__PURE__ */ v("style", { type: "text/css", children: hu }),
|
|
27
27
|
/* @__PURE__ */ v("div", { onClick: r, className: "modal-overlay", id: "modal-wrapper", children: /* @__PURE__ */ R("div", { className: "modal-container", children: [
|
|
28
28
|
/* @__PURE__ */ v("h3", { className: "modal-title", children: "Log out" }),
|
|
@@ -213,7 +213,7 @@ function bu({
|
|
|
213
213
|
return document.addEventListener("click", p, !0), () => {
|
|
214
214
|
document.removeEventListener("click", p, !0);
|
|
215
215
|
};
|
|
216
|
-
}, [o]), /* @__PURE__ */ v(
|
|
216
|
+
}, [o]), /* @__PURE__ */ v(lr, { children: /* @__PURE__ */ R("div", { style: { position: "relative" }, children: [
|
|
217
217
|
/* @__PURE__ */ v(
|
|
218
218
|
"img",
|
|
219
219
|
{
|
|
@@ -262,8 +262,8 @@ const wu = xu;
|
|
|
262
262
|
var Su = typeof self == "object" && self && self.Object === Object && self, Eu = wu || Su || Function("return this")();
|
|
263
263
|
const pa = Eu;
|
|
264
264
|
var Tu = pa.Symbol;
|
|
265
|
-
const
|
|
266
|
-
var ma = Object.prototype, Cu = ma.hasOwnProperty, Au = ma.toString, Gt =
|
|
265
|
+
const Gn = Tu;
|
|
266
|
+
var ma = Object.prototype, Cu = ma.hasOwnProperty, Au = ma.toString, Gt = Gn ? Gn.toStringTag : void 0;
|
|
267
267
|
function Pu(e) {
|
|
268
268
|
var t = Cu.call(e, Gt), n = e[Gt];
|
|
269
269
|
try {
|
|
@@ -275,12 +275,12 @@ function Pu(e) {
|
|
|
275
275
|
return r && (t ? e[Gt] = n : delete e[Gt]), i;
|
|
276
276
|
}
|
|
277
277
|
var Ou = Object.prototype, ku = Ou.toString;
|
|
278
|
-
function
|
|
278
|
+
function _u(e) {
|
|
279
279
|
return ku.call(e);
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var Mu = "[object Null]", Ru = "[object Undefined]", so = Gn ? Gn.toStringTag : void 0;
|
|
282
282
|
function Nu(e) {
|
|
283
|
-
return e == null ? e === void 0 ? Ru :
|
|
283
|
+
return e == null ? e === void 0 ? Ru : Mu : so && so in Object(e) ? Pu(e) : _u(e);
|
|
284
284
|
}
|
|
285
285
|
function Du(e) {
|
|
286
286
|
return e != null && typeof e == "object";
|
|
@@ -299,7 +299,7 @@ var ju = /^\s+/;
|
|
|
299
299
|
function Fu(e) {
|
|
300
300
|
return e && e.slice(0, zu(e) + 1).replace(ju, "");
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function qn(e) {
|
|
303
303
|
var t = typeof e;
|
|
304
304
|
return e != null && (t == "object" || t == "function");
|
|
305
305
|
}
|
|
@@ -309,9 +309,9 @@ function lo(e) {
|
|
|
309
309
|
return e;
|
|
310
310
|
if (Vu(e))
|
|
311
311
|
return ao;
|
|
312
|
-
if (
|
|
312
|
+
if (qn(e)) {
|
|
313
313
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
314
|
-
e =
|
|
314
|
+
e = qn(t) ? t + "" : t;
|
|
315
315
|
}
|
|
316
316
|
if (typeof e != "string")
|
|
317
317
|
return e === 0 ? e : +e;
|
|
@@ -322,13 +322,13 @@ function lo(e) {
|
|
|
322
322
|
var Hu = function() {
|
|
323
323
|
return pa.Date.now();
|
|
324
324
|
};
|
|
325
|
-
const
|
|
325
|
+
const Mr = Hu;
|
|
326
326
|
var Yu = "Expected a function", Gu = Math.max, qu = Math.min;
|
|
327
327
|
function Vn(e, t, n) {
|
|
328
328
|
var r, i, o, s, a, l, c = 0, d = !1, u = !1, h = !0;
|
|
329
329
|
if (typeof e != "function")
|
|
330
330
|
throw new TypeError(Yu);
|
|
331
|
-
t = lo(t) || 0,
|
|
331
|
+
t = lo(t) || 0, qn(n) && (d = !!n.leading, u = "maxWait" in n, o = u ? Gu(lo(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
|
|
332
332
|
function p(E) {
|
|
333
333
|
var T = r, C = i;
|
|
334
334
|
return r = i = void 0, c = E, s = e.apply(C, T), s;
|
|
@@ -337,15 +337,15 @@ function Vn(e, t, n) {
|
|
|
337
337
|
return c = E, a = setTimeout(b, t), d ? p(E) : s;
|
|
338
338
|
}
|
|
339
339
|
function f(E) {
|
|
340
|
-
var T = E - l, C = E - c,
|
|
341
|
-
return u ? qu(
|
|
340
|
+
var T = E - l, C = E - c, P = t - T;
|
|
341
|
+
return u ? qu(P, o - C) : P;
|
|
342
342
|
}
|
|
343
343
|
function m(E) {
|
|
344
344
|
var T = E - l, C = E - c;
|
|
345
345
|
return l === void 0 || T >= t || T < 0 || u && C >= o;
|
|
346
346
|
}
|
|
347
347
|
function b() {
|
|
348
|
-
var E =
|
|
348
|
+
var E = Mr();
|
|
349
349
|
if (m(E))
|
|
350
350
|
return w(E);
|
|
351
351
|
a = setTimeout(b, f(E));
|
|
@@ -357,10 +357,10 @@ function Vn(e, t, n) {
|
|
|
357
357
|
a !== void 0 && clearTimeout(a), c = 0, r = l = i = a = void 0;
|
|
358
358
|
}
|
|
359
359
|
function S() {
|
|
360
|
-
return a === void 0 ? s : w(
|
|
360
|
+
return a === void 0 ? s : w(Mr());
|
|
361
361
|
}
|
|
362
362
|
function y() {
|
|
363
|
-
var E =
|
|
363
|
+
var E = Mr(), T = m(E);
|
|
364
364
|
if (r = arguments, i = this, l = E, T) {
|
|
365
365
|
if (a === void 0)
|
|
366
366
|
return g(l);
|
|
@@ -376,7 +376,7 @@ function Xu(e, t, n) {
|
|
|
376
376
|
var r = !0, i = !0;
|
|
377
377
|
if (typeof e != "function")
|
|
378
378
|
throw new TypeError(Ku);
|
|
379
|
-
return
|
|
379
|
+
return qn(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Vn(e, t, {
|
|
380
380
|
leading: r,
|
|
381
381
|
maxWait: t,
|
|
382
382
|
trailing: i
|
|
@@ -459,7 +459,7 @@ var Ju = /* @__PURE__ */ Object.freeze({
|
|
|
459
459
|
addClasses: xa,
|
|
460
460
|
removeClasses: wa,
|
|
461
461
|
classNamesToQuery: Sa
|
|
462
|
-
}), Xe = ya,
|
|
462
|
+
}), Xe = ya, Rr = va, ed = ba, Ze = xa, Qe = wa, he = Sa, On = (
|
|
463
463
|
/** @class */
|
|
464
464
|
function() {
|
|
465
465
|
function e(t, n) {
|
|
@@ -504,7 +504,7 @@ var Ju = /* @__PURE__ */ Object.freeze({
|
|
|
504
504
|
r.draggedAxis === "x" && r.isRtl && (C = !((f = e.getRtlHelpers()) === null || f === void 0) && f.isScrollingToNegative ? -C : C), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = C;
|
|
505
505
|
}
|
|
506
506
|
}, this.onEndDrag = function(i) {
|
|
507
|
-
var o =
|
|
507
|
+
var o = Rr(r.el), s = Xe(r.el);
|
|
508
508
|
i.preventDefault(), i.stopPropagation(), Qe(r.el, r.classNames.dragging), o.removeEventListener("mousemove", r.drag, !0), o.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = s.setTimeout(function() {
|
|
509
509
|
o.removeEventListener("click", r.preventClick, !0), o.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
510
510
|
});
|
|
@@ -566,7 +566,7 @@ var Ju = /* @__PURE__ */ Object.freeze({
|
|
|
566
566
|
return uo();
|
|
567
567
|
}
|
|
568
568
|
}, e.getOffset = function(t) {
|
|
569
|
-
var n = t.getBoundingClientRect(), r =
|
|
569
|
+
var n = t.getBoundingClientRect(), r = Rr(t), i = Xe(t);
|
|
570
570
|
return {
|
|
571
571
|
top: n.top + (i.pageYOffset || r.documentElement.scrollTop),
|
|
572
572
|
left: n.left + (i.pageXOffset || r.documentElement.scrollLeft)
|
|
@@ -647,7 +647,7 @@ var Ju = /* @__PURE__ */ Object.freeze({
|
|
|
647
647
|
}, e.prototype.onDragStart = function(t, n) {
|
|
648
648
|
var r;
|
|
649
649
|
n === void 0 && (n = "y");
|
|
650
|
-
var i =
|
|
650
|
+
var i = Rr(this.el), o = Xe(this.el), s = this.axis[n].scrollbar, a = n === "y" ? t.pageY : t.pageX;
|
|
651
651
|
this.axis[n].dragOffset = a - (((r = s.rect) === null || r === void 0 ? void 0 : r[this.axis[n].offsetAttr]) || 0), this.draggedAxis = n, Ze(this.el, this.classNames.dragging), i.addEventListener("mousemove", this.drag, !0), i.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (i.addEventListener("click", this.preventClick, !0), i.addEventListener("dblclick", this.preventClick, !0)) : (o.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
652
652
|
}, e.prototype.onTrackClick = function(t, n) {
|
|
653
653
|
var r = this, i, o, s, a;
|
|
@@ -803,9 +803,9 @@ const nd = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:w
|
|
|
803
803
|
transformPagePoint: (e) => e,
|
|
804
804
|
isStatic: !1,
|
|
805
805
|
reducedMotion: "never"
|
|
806
|
-
}),
|
|
806
|
+
}), ur = $t({}), gi = $t(null), dr = typeof document < "u", rd = dr ? mi : Re, Ca = $t({ strict: !1 }), yi = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), id = "framerAppearId", Aa = "data-" + yi(id);
|
|
807
807
|
function od(e, t, n, r) {
|
|
808
|
-
const { visualElement: i } = ue(
|
|
808
|
+
const { visualElement: i } = ue(ur), o = ue(Ca), s = ue(gi), a = ue(Ta).reducedMotion, l = Ye();
|
|
809
809
|
r = r || o.renderer, !l.current && r && (l.current = r(e, {
|
|
810
810
|
visualState: t,
|
|
811
811
|
parent: i,
|
|
@@ -825,13 +825,13 @@ function od(e, t, n, r) {
|
|
|
825
825
|
c && (c.updateFeatures(), !d.current && c.animationState && c.animationState.animateChanges(), d.current && (d.current = !1, window.HandoffComplete = !0));
|
|
826
826
|
}), c;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function _t(e) {
|
|
829
829
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
830
830
|
}
|
|
831
831
|
function sd(e, t, n) {
|
|
832
832
|
return Jt(
|
|
833
833
|
(r) => {
|
|
834
|
-
r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) :
|
|
834
|
+
r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : _t(n) && (n.current = r));
|
|
835
835
|
},
|
|
836
836
|
/**
|
|
837
837
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -844,7 +844,7 @@ function sd(e, t, n) {
|
|
|
844
844
|
function an(e) {
|
|
845
845
|
return typeof e == "string" || Array.isArray(e);
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function fr(e) {
|
|
848
848
|
return e !== null && typeof e == "object" && typeof e.start == "function";
|
|
849
849
|
}
|
|
850
850
|
const bi = [
|
|
@@ -856,14 +856,14 @@ const bi = [
|
|
|
856
856
|
"whileDrag",
|
|
857
857
|
"exit"
|
|
858
858
|
], xi = ["initial", ...bi];
|
|
859
|
-
function
|
|
860
|
-
return
|
|
859
|
+
function hr(e) {
|
|
860
|
+
return fr(e.animate) || xi.some((t) => an(e[t]));
|
|
861
861
|
}
|
|
862
862
|
function Pa(e) {
|
|
863
|
-
return !!(
|
|
863
|
+
return !!(hr(e) || e.variants);
|
|
864
864
|
}
|
|
865
865
|
function ad(e, t) {
|
|
866
|
-
if (
|
|
866
|
+
if (hr(e)) {
|
|
867
867
|
const { initial: n, animate: r } = e;
|
|
868
868
|
return {
|
|
869
869
|
initial: n === !1 || an(n) ? n : void 0,
|
|
@@ -873,8 +873,8 @@ function ad(e, t) {
|
|
|
873
873
|
return e.inherit !== !1 ? t : {};
|
|
874
874
|
}
|
|
875
875
|
function ld(e) {
|
|
876
|
-
const { initial: t, animate: n } = ad(e, ue(
|
|
877
|
-
return
|
|
876
|
+
const { initial: t, animate: n } = ad(e, ue(ur));
|
|
877
|
+
return cr(() => ({ initial: t, animate: n }), [fo(t), fo(n)]);
|
|
878
878
|
}
|
|
879
879
|
function fo(e) {
|
|
880
880
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -920,7 +920,7 @@ function dd({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
920
920
|
...a,
|
|
921
921
|
layoutId: fd(a)
|
|
922
922
|
}, { isStatic: u } = d, h = ld(a), p = r(a, u);
|
|
923
|
-
if (!u &&
|
|
923
|
+
if (!u && dr) {
|
|
924
924
|
h.visualElement = od(i, p, d, t);
|
|
925
925
|
const g = ue(ka), f = ue(Ca).strict;
|
|
926
926
|
h.visualElement && (c = h.visualElement.loadFeatures(
|
|
@@ -932,7 +932,7 @@ function dd({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
932
932
|
));
|
|
933
933
|
}
|
|
934
934
|
return M.createElement(
|
|
935
|
-
|
|
935
|
+
ur.Provider,
|
|
936
936
|
{ value: h },
|
|
937
937
|
c && h.visualElement ? M.createElement(c, { visualElement: h.visualElement, ...d }) : null,
|
|
938
938
|
n(i, a, sd(p, h.visualElement, l), p, u, h.visualElement)
|
|
@@ -1008,9 +1008,9 @@ function wi(e) {
|
|
|
1008
1008
|
)
|
|
1009
1009
|
);
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1011
|
+
const Kn = {};
|
|
1012
1012
|
function md(e) {
|
|
1013
|
-
Object.assign(
|
|
1013
|
+
Object.assign(Kn, e);
|
|
1014
1014
|
}
|
|
1015
1015
|
const mn = [
|
|
1016
1016
|
"transformPerspective",
|
|
@@ -1031,8 +1031,8 @@ const mn = [
|
|
|
1031
1031
|
"skewX",
|
|
1032
1032
|
"skewY"
|
|
1033
1033
|
], yt = new Set(mn);
|
|
1034
|
-
function
|
|
1035
|
-
return yt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!
|
|
1034
|
+
function _a(e, { layout: t, layoutId: n }) {
|
|
1035
|
+
return yt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Kn[e] || e === "opacity");
|
|
1036
1036
|
}
|
|
1037
1037
|
const pe = (e) => !!(e && e.getVelocity), gd = {
|
|
1038
1038
|
x: "translateX",
|
|
@@ -1051,7 +1051,7 @@ function vd(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0
|
|
|
1051
1051
|
}
|
|
1052
1052
|
return t && !e.z && (o += "translateZ(0)"), o = o.trim(), i ? o = i(e, r ? "" : o) : n && r && (o = "none"), o;
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Ma = (e) => (t) => typeof t == "string" && t.startsWith(e), Ra = Ma("--"), Kr = Ma("var(--"), bd = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, xd = (e, t) => t && typeof e == "number" ? t.transform(e) : e, it = (e, t, n) => Math.min(Math.max(n, e), t), vt = {
|
|
1055
1055
|
test: (e) => typeof e == "number",
|
|
1056
1056
|
parse: parseFloat,
|
|
1057
1057
|
transform: (e) => e
|
|
@@ -1061,7 +1061,7 @@ const _a = (e) => (t) => typeof t == "string" && t.startsWith(e), Ra = _a("--"),
|
|
|
1061
1061
|
}, kn = {
|
|
1062
1062
|
...vt,
|
|
1063
1063
|
default: 1
|
|
1064
|
-
}, nn = (e) => Math.round(e * 1e5) / 1e5,
|
|
1064
|
+
}, nn = (e) => Math.round(e * 1e5) / 1e5, pr = /(-)?([\d]*\.?[\d])+/g, Na = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, wd = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
1065
1065
|
function gn(e) {
|
|
1066
1066
|
return typeof e == "string";
|
|
1067
1067
|
}
|
|
@@ -1069,7 +1069,7 @@ const yn = (e) => ({
|
|
|
1069
1069
|
test: (t) => gn(t) && t.endsWith(e) && t.split(" ").length === 1,
|
|
1070
1070
|
parse: parseFloat,
|
|
1071
1071
|
transform: (t) => `${t}${e}`
|
|
1072
|
-
}), Je = yn("deg"), Ve = yn("%"),
|
|
1072
|
+
}), Je = yn("deg"), Ve = yn("%"), _ = yn("px"), Sd = yn("vh"), Ed = yn("vw"), po = {
|
|
1073
1073
|
...Ve,
|
|
1074
1074
|
parse: (e) => Ve.parse(e) / 100,
|
|
1075
1075
|
transform: (e) => Ve.transform(e * 100)
|
|
@@ -1078,38 +1078,38 @@ const yn = (e) => ({
|
|
|
1078
1078
|
transform: Math.round
|
|
1079
1079
|
}, Da = {
|
|
1080
1080
|
// Border props
|
|
1081
|
-
borderWidth:
|
|
1082
|
-
borderTopWidth:
|
|
1083
|
-
borderRightWidth:
|
|
1084
|
-
borderBottomWidth:
|
|
1085
|
-
borderLeftWidth:
|
|
1086
|
-
borderRadius:
|
|
1087
|
-
radius:
|
|
1088
|
-
borderTopLeftRadius:
|
|
1089
|
-
borderTopRightRadius:
|
|
1090
|
-
borderBottomRightRadius:
|
|
1091
|
-
borderBottomLeftRadius:
|
|
1081
|
+
borderWidth: _,
|
|
1082
|
+
borderTopWidth: _,
|
|
1083
|
+
borderRightWidth: _,
|
|
1084
|
+
borderBottomWidth: _,
|
|
1085
|
+
borderLeftWidth: _,
|
|
1086
|
+
borderRadius: _,
|
|
1087
|
+
radius: _,
|
|
1088
|
+
borderTopLeftRadius: _,
|
|
1089
|
+
borderTopRightRadius: _,
|
|
1090
|
+
borderBottomRightRadius: _,
|
|
1091
|
+
borderBottomLeftRadius: _,
|
|
1092
1092
|
// Positioning props
|
|
1093
|
-
width:
|
|
1094
|
-
maxWidth:
|
|
1095
|
-
height:
|
|
1096
|
-
maxHeight:
|
|
1097
|
-
size:
|
|
1098
|
-
top:
|
|
1099
|
-
right:
|
|
1100
|
-
bottom:
|
|
1101
|
-
left:
|
|
1093
|
+
width: _,
|
|
1094
|
+
maxWidth: _,
|
|
1095
|
+
height: _,
|
|
1096
|
+
maxHeight: _,
|
|
1097
|
+
size: _,
|
|
1098
|
+
top: _,
|
|
1099
|
+
right: _,
|
|
1100
|
+
bottom: _,
|
|
1101
|
+
left: _,
|
|
1102
1102
|
// Spacing props
|
|
1103
|
-
padding:
|
|
1104
|
-
paddingTop:
|
|
1105
|
-
paddingRight:
|
|
1106
|
-
paddingBottom:
|
|
1107
|
-
paddingLeft:
|
|
1108
|
-
margin:
|
|
1109
|
-
marginTop:
|
|
1110
|
-
marginRight:
|
|
1111
|
-
marginBottom:
|
|
1112
|
-
marginLeft:
|
|
1103
|
+
padding: _,
|
|
1104
|
+
paddingTop: _,
|
|
1105
|
+
paddingRight: _,
|
|
1106
|
+
paddingBottom: _,
|
|
1107
|
+
paddingLeft: _,
|
|
1108
|
+
margin: _,
|
|
1109
|
+
marginTop: _,
|
|
1110
|
+
marginRight: _,
|
|
1111
|
+
marginBottom: _,
|
|
1112
|
+
marginLeft: _,
|
|
1113
1113
|
// Transform props
|
|
1114
1114
|
rotate: Je,
|
|
1115
1115
|
rotateX: Je,
|
|
@@ -1122,19 +1122,19 @@ const yn = (e) => ({
|
|
|
1122
1122
|
skew: Je,
|
|
1123
1123
|
skewX: Je,
|
|
1124
1124
|
skewY: Je,
|
|
1125
|
-
distance:
|
|
1126
|
-
translateX:
|
|
1127
|
-
translateY:
|
|
1128
|
-
translateZ:
|
|
1129
|
-
x:
|
|
1130
|
-
y:
|
|
1131
|
-
z:
|
|
1132
|
-
perspective:
|
|
1133
|
-
transformPerspective:
|
|
1125
|
+
distance: _,
|
|
1126
|
+
translateX: _,
|
|
1127
|
+
translateY: _,
|
|
1128
|
+
translateZ: _,
|
|
1129
|
+
x: _,
|
|
1130
|
+
y: _,
|
|
1131
|
+
z: _,
|
|
1132
|
+
perspective: _,
|
|
1133
|
+
transformPerspective: _,
|
|
1134
1134
|
opacity: tn,
|
|
1135
1135
|
originX: po,
|
|
1136
1136
|
originY: po,
|
|
1137
|
-
originZ:
|
|
1137
|
+
originZ: _,
|
|
1138
1138
|
// Misc
|
|
1139
1139
|
zIndex: mo,
|
|
1140
1140
|
// SVG
|
|
@@ -1172,10 +1172,10 @@ const Ei = () => ({
|
|
|
1172
1172
|
});
|
|
1173
1173
|
function Ia(e, t, n) {
|
|
1174
1174
|
for (const r in t)
|
|
1175
|
-
!pe(t[r]) && !
|
|
1175
|
+
!pe(t[r]) && !_a(r, n) && (e[r] = t[r]);
|
|
1176
1176
|
}
|
|
1177
1177
|
function Td({ transformTemplate: e }, t, n) {
|
|
1178
|
-
return
|
|
1178
|
+
return cr(() => {
|
|
1179
1179
|
const r = Ei();
|
|
1180
1180
|
return Si(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
|
|
1181
1181
|
}, [t]);
|
|
@@ -1221,12 +1221,12 @@ const Pd = /* @__PURE__ */ new Set([
|
|
|
1221
1221
|
"ignoreStrict",
|
|
1222
1222
|
"viewport"
|
|
1223
1223
|
]);
|
|
1224
|
-
function
|
|
1224
|
+
function Xn(e) {
|
|
1225
1225
|
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Pd.has(e);
|
|
1226
1226
|
}
|
|
1227
|
-
let Va = (e) => !
|
|
1227
|
+
let Va = (e) => !Xn(e);
|
|
1228
1228
|
function Od(e) {
|
|
1229
|
-
e && (Va = (t) => t.startsWith("on") ? !
|
|
1229
|
+
e && (Va = (t) => t.startsWith("on") ? !Xn(t) : e(t));
|
|
1230
1230
|
}
|
|
1231
1231
|
try {
|
|
1232
1232
|
Od(require("@emotion/is-prop-valid").default);
|
|
@@ -1235,18 +1235,18 @@ try {
|
|
|
1235
1235
|
function kd(e, t, n) {
|
|
1236
1236
|
const r = {};
|
|
1237
1237
|
for (const i in e)
|
|
1238
|
-
i === "values" && typeof e.values == "object" || (Va(i) || n === !0 &&
|
|
1238
|
+
i === "values" && typeof e.values == "object" || (Va(i) || n === !0 && Xn(i) || !t && !Xn(i) || // If trying to use native HTML drag events, forward drag listeners
|
|
1239
1239
|
e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
1240
1240
|
return r;
|
|
1241
1241
|
}
|
|
1242
1242
|
function go(e, t, n) {
|
|
1243
|
-
return typeof e == "string" ? e :
|
|
1243
|
+
return typeof e == "string" ? e : _.transform(t + n * e);
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function _d(e, t, n) {
|
|
1246
1246
|
const r = go(t, e.x, e.width), i = go(n, e.y, e.height);
|
|
1247
1247
|
return `${r} ${i}`;
|
|
1248
1248
|
}
|
|
1249
|
-
const
|
|
1249
|
+
const Md = {
|
|
1250
1250
|
offset: "stroke-dashoffset",
|
|
1251
1251
|
array: "stroke-dasharray"
|
|
1252
1252
|
}, Rd = {
|
|
@@ -1255,9 +1255,9 @@ const _d = {
|
|
|
1255
1255
|
};
|
|
1256
1256
|
function Nd(e, t, n = 1, r = 0, i = !0) {
|
|
1257
1257
|
e.pathLength = 1;
|
|
1258
|
-
const o = i ?
|
|
1259
|
-
e[o.offset] =
|
|
1260
|
-
const s =
|
|
1258
|
+
const o = i ? Md : Rd;
|
|
1259
|
+
e[o.offset] = _.transform(-r);
|
|
1260
|
+
const s = _.transform(t), a = _.transform(n);
|
|
1261
1261
|
e[o.array] = `${s} ${a}`;
|
|
1262
1262
|
}
|
|
1263
1263
|
function Ti(e, {
|
|
@@ -1278,14 +1278,14 @@ function Ti(e, {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
e.attrs = e.style, e.style = {};
|
|
1280
1280
|
const { attrs: p, style: g, dimensions: f } = e;
|
|
1281
|
-
p.transform && (f && (g.transform = p.transform), delete p.transform), f && (i !== void 0 || o !== void 0 || g.transform) && (g.transformOrigin =
|
|
1281
|
+
p.transform && (f && (g.transform = p.transform), delete p.transform), f && (i !== void 0 || o !== void 0 || g.transform) && (g.transformOrigin = _d(f, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (p.x = t), n !== void 0 && (p.y = n), r !== void 0 && (p.scale = r), s !== void 0 && Nd(p, s, a, l, !1);
|
|
1282
1282
|
}
|
|
1283
1283
|
const La = () => ({
|
|
1284
1284
|
...Ei(),
|
|
1285
1285
|
attrs: {}
|
|
1286
1286
|
}), Ci = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
1287
1287
|
function Dd(e, t, n, r) {
|
|
1288
|
-
const i =
|
|
1288
|
+
const i = cr(() => {
|
|
1289
1289
|
const o = La();
|
|
1290
1290
|
return Ti(o, t, { enableHardwareAcceleration: !1 }, Ci(r), e.transformTemplate), {
|
|
1291
1291
|
...o.attrs,
|
|
@@ -1304,7 +1304,7 @@ function Id(e = !1) {
|
|
|
1304
1304
|
...kd(r, typeof n == "string", e),
|
|
1305
1305
|
...l,
|
|
1306
1306
|
ref: i
|
|
1307
|
-
}, { children: u } = r, h =
|
|
1307
|
+
}, { children: u } = r, h = cr(() => pe(u) ? u.get() : u, [u]);
|
|
1308
1308
|
return en(n, {
|
|
1309
1309
|
...d,
|
|
1310
1310
|
children: h
|
|
@@ -1349,7 +1349,7 @@ function Fa(e, t, n, r) {
|
|
|
1349
1349
|
function Ai(e, t) {
|
|
1350
1350
|
const { style: n } = e, r = {};
|
|
1351
1351
|
for (const i in n)
|
|
1352
|
-
(pe(n[i]) || t.style && pe(t.style[i]) ||
|
|
1352
|
+
(pe(n[i]) || t.style && pe(t.style[i]) || _a(i, e)) && (r[i] = n[i]);
|
|
1353
1353
|
return r;
|
|
1354
1354
|
}
|
|
1355
1355
|
function $a(e, t) {
|
|
@@ -1368,7 +1368,7 @@ function Vd(e) {
|
|
|
1368
1368
|
const t = Ye(null);
|
|
1369
1369
|
return t.current === null && (t.current = e()), t.current;
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1371
|
+
const Zn = (e) => Array.isArray(e), Ld = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), zd = (e) => Zn(e) ? e[e.length - 1] || 0 : e;
|
|
1372
1372
|
function Ln(e) {
|
|
1373
1373
|
const t = pe(e) ? e.get() : e;
|
|
1374
1374
|
return Ld(t) ? t.toValue() : t;
|
|
@@ -1381,7 +1381,7 @@ function jd({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }
|
|
|
1381
1381
|
return n && (s.mount = (a) => n(r, a, s)), s;
|
|
1382
1382
|
}
|
|
1383
1383
|
const Ba = (e) => (t, n) => {
|
|
1384
|
-
const r = ue(
|
|
1384
|
+
const r = ue(ur), i = ue(gi), o = () => jd(e, t, r, i);
|
|
1385
1385
|
return n ? o() : Vd(o);
|
|
1386
1386
|
};
|
|
1387
1387
|
function Fd(e, t, n, r) {
|
|
@@ -1389,12 +1389,12 @@ function Fd(e, t, n, r) {
|
|
|
1389
1389
|
for (const h in o)
|
|
1390
1390
|
i[h] = Ln(o[h]);
|
|
1391
1391
|
let { initial: s, animate: a } = e;
|
|
1392
|
-
const l =
|
|
1392
|
+
const l = hr(e), c = Pa(e);
|
|
1393
1393
|
t && c && !l && e.inherit !== !1 && (s === void 0 && (s = t.initial), a === void 0 && (a = t.animate));
|
|
1394
1394
|
let d = n ? n.initial === !1 : !1;
|
|
1395
1395
|
d = d || s === !1;
|
|
1396
1396
|
const u = d ? a : s;
|
|
1397
|
-
return u && typeof u != "boolean" && !
|
|
1397
|
+
return u && typeof u != "boolean" && !fr(u) && (Array.isArray(u) ? u : [u]).forEach((p) => {
|
|
1398
1398
|
const g = Pi(e, p);
|
|
1399
1399
|
if (!g)
|
|
1400
1400
|
return;
|
|
@@ -1462,7 +1462,7 @@ function $d(e) {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
return a;
|
|
1464
1464
|
}
|
|
1465
|
-
const
|
|
1465
|
+
const _n = [
|
|
1466
1466
|
"prepare",
|
|
1467
1467
|
"read",
|
|
1468
1468
|
"update",
|
|
@@ -1476,23 +1476,23 @@ function Wd(e, t) {
|
|
|
1476
1476
|
delta: 0,
|
|
1477
1477
|
timestamp: 0,
|
|
1478
1478
|
isProcessing: !1
|
|
1479
|
-
}, o =
|
|
1479
|
+
}, o = _n.reduce((u, h) => (u[h] = $d(() => n = !0), u), {}), s = (u) => o[u].process(i), a = () => {
|
|
1480
1480
|
const u = performance.now();
|
|
1481
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(u - i.timestamp, Bd), 1), i.timestamp = u, i.isProcessing = !0,
|
|
1481
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(u - i.timestamp, Bd), 1), i.timestamp = u, i.isProcessing = !0, _n.forEach(s), i.isProcessing = !1, n && t && (r = !1, e(a));
|
|
1482
1482
|
}, l = () => {
|
|
1483
1483
|
n = !0, r = !0, i.isProcessing || e(a);
|
|
1484
1484
|
};
|
|
1485
|
-
return { schedule:
|
|
1485
|
+
return { schedule: _n.reduce((u, h) => {
|
|
1486
1486
|
const p = o[h];
|
|
1487
1487
|
return u[h] = (g, f = !1, m = !1) => (n || l(), p.schedule(g, f, m)), u;
|
|
1488
|
-
}, {}), cancel: (u) =>
|
|
1488
|
+
}, {}), cancel: (u) => _n.forEach((h) => o[h].cancel(u)), state: i, steps: o };
|
|
1489
1489
|
}
|
|
1490
|
-
const { schedule:
|
|
1490
|
+
const { schedule: Y, cancel: Ge, state: se, steps: Nr } = Wd(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Q, !0), Ud = {
|
|
1491
1491
|
useVisualState: Ba({
|
|
1492
1492
|
scrapeMotionValuesFromProps: $a,
|
|
1493
1493
|
createRenderState: La,
|
|
1494
1494
|
onMount: (e, t, { renderState: n, latestValues: r }) => {
|
|
1495
|
-
|
|
1495
|
+
Y.read(() => {
|
|
1496
1496
|
try {
|
|
1497
1497
|
n.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
1498
1498
|
} catch {
|
|
@@ -1503,7 +1503,7 @@ const { schedule: G, cancel: Ge, state: se, steps: Dr } = Wd(typeof requestAnima
|
|
|
1503
1503
|
height: 0
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
}),
|
|
1506
|
+
}), Y.render(() => {
|
|
1507
1507
|
Ti(n, r, { enableHardwareAcceleration: !1 }, Ci(t.tagName), e.transformTemplate), Fa(t, n);
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
@@ -1527,7 +1527,7 @@ function We(e, t, n, r = { passive: !0 }) {
|
|
|
1527
1527
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
1528
1528
|
}
|
|
1529
1529
|
const Wa = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
|
|
1530
|
-
function
|
|
1530
|
+
function mr(e, t = "page") {
|
|
1531
1531
|
return {
|
|
1532
1532
|
point: {
|
|
1533
1533
|
x: e[t + "X"],
|
|
@@ -1535,7 +1535,7 @@ function gr(e, t = "page") {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
|
-
const Gd = (e) => (t) => Wa(t) && e(t,
|
|
1538
|
+
const Gd = (e) => (t) => Wa(t) && e(t, mr(t));
|
|
1539
1539
|
function Ue(e, t, n, r) {
|
|
1540
1540
|
return We(e, t, Gd(n), r);
|
|
1541
1541
|
}
|
|
@@ -1580,7 +1580,7 @@ function xo(e, t) {
|
|
|
1580
1580
|
if (o.pointerType === "touch" || Ya())
|
|
1581
1581
|
return;
|
|
1582
1582
|
const a = e.getProps();
|
|
1583
|
-
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] &&
|
|
1583
|
+
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && Y.update(() => a[r](o, s));
|
|
1584
1584
|
};
|
|
1585
1585
|
return Ue(e.current, n, i, {
|
|
1586
1586
|
passive: !e.getProps()[r]
|
|
@@ -1616,11 +1616,11 @@ class Xd extends at {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
const Ga = (e, t) => t ? e === t ? !0 : Ga(e, t.parentElement) : !1;
|
|
1619
|
-
function
|
|
1619
|
+
function Dr(e, t) {
|
|
1620
1620
|
if (!t)
|
|
1621
1621
|
return;
|
|
1622
1622
|
const n = new PointerEvent("pointer" + e);
|
|
1623
|
-
t(n,
|
|
1623
|
+
t(n, mr(n));
|
|
1624
1624
|
}
|
|
1625
1625
|
class Zd extends at {
|
|
1626
1626
|
constructor() {
|
|
@@ -1632,7 +1632,7 @@ class Zd extends at {
|
|
|
1632
1632
|
if (!this.checkPressEnd())
|
|
1633
1633
|
return;
|
|
1634
1634
|
const { onTap: c, onTapCancel: d, globalTapTarget: u } = this.node.getProps();
|
|
1635
|
-
|
|
1635
|
+
Y.update(() => {
|
|
1636
1636
|
!u && !Ga(this.node.current, a.target) ? d && d(a, l) : c && c(a, l);
|
|
1637
1637
|
});
|
|
1638
1638
|
}, { passive: !(r.onTap || r.onPointerUp) }), s = Ue(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
@@ -1642,16 +1642,16 @@ class Zd extends at {
|
|
|
1642
1642
|
if (o.key !== "Enter" || this.isPressing)
|
|
1643
1643
|
return;
|
|
1644
1644
|
const s = (a) => {
|
|
1645
|
-
a.key !== "Enter" || !this.checkPressEnd() ||
|
|
1645
|
+
a.key !== "Enter" || !this.checkPressEnd() || Dr("up", (l, c) => {
|
|
1646
1646
|
const { onTap: d } = this.node.getProps();
|
|
1647
|
-
d &&
|
|
1647
|
+
d && Y.update(() => d(l, c));
|
|
1648
1648
|
});
|
|
1649
1649
|
};
|
|
1650
|
-
this.removeEndListeners(), this.removeEndListeners = We(this.node.current, "keyup", s),
|
|
1650
|
+
this.removeEndListeners(), this.removeEndListeners = We(this.node.current, "keyup", s), Dr("down", (a, l) => {
|
|
1651
1651
|
this.startPress(a, l);
|
|
1652
1652
|
});
|
|
1653
1653
|
}, n = We(this.node.current, "keydown", t), r = () => {
|
|
1654
|
-
this.isPressing &&
|
|
1654
|
+
this.isPressing && Dr("cancel", (o, s) => this.cancelPress(o, s));
|
|
1655
1655
|
}, i = We(this.node.current, "blur", r);
|
|
1656
1656
|
this.removeAccessibleListeners = nt(n, i);
|
|
1657
1657
|
};
|
|
@@ -1659,7 +1659,7 @@ class Zd extends at {
|
|
|
1659
1659
|
startPress(t, n) {
|
|
1660
1660
|
this.isPressing = !0;
|
|
1661
1661
|
const { onTapStart: r, whileTap: i } = this.node.getProps();
|
|
1662
|
-
i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r &&
|
|
1662
|
+
i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && Y.update(() => r(t, n));
|
|
1663
1663
|
}
|
|
1664
1664
|
checkPressEnd() {
|
|
1665
1665
|
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ya();
|
|
@@ -1668,7 +1668,7 @@ class Zd extends at {
|
|
|
1668
1668
|
if (!this.checkPressEnd())
|
|
1669
1669
|
return;
|
|
1670
1670
|
const { onTapCancel: r } = this.node.getProps();
|
|
1671
|
-
r &&
|
|
1671
|
+
r && Y.update(() => r(t, n));
|
|
1672
1672
|
}
|
|
1673
1673
|
mount() {
|
|
1674
1674
|
const t = this.node.getProps(), n = Ue(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = We(this.node.current, "focus", this.startAccessiblePress);
|
|
@@ -1678,22 +1678,22 @@ class Zd extends at {
|
|
|
1678
1678
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
const
|
|
1682
|
-
const t =
|
|
1681
|
+
const Xr = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Qd = (e) => {
|
|
1682
|
+
const t = Xr.get(e.target);
|
|
1683
1683
|
t && t(e);
|
|
1684
1684
|
}, Jd = (e) => {
|
|
1685
1685
|
e.forEach(Qd);
|
|
1686
1686
|
};
|
|
1687
1687
|
function e0({ root: e, ...t }) {
|
|
1688
1688
|
const n = e || document;
|
|
1689
|
-
|
|
1690
|
-
const r =
|
|
1689
|
+
Ir.has(n) || Ir.set(n, {});
|
|
1690
|
+
const r = Ir.get(n), i = JSON.stringify(t);
|
|
1691
1691
|
return r[i] || (r[i] = new IntersectionObserver(Jd, { root: e, ...t })), r[i];
|
|
1692
1692
|
}
|
|
1693
1693
|
function t0(e, t, n) {
|
|
1694
1694
|
const r = e0(t);
|
|
1695
|
-
return
|
|
1696
|
-
|
|
1695
|
+
return Xr.set(e, n), r.observe(e), () => {
|
|
1696
|
+
Xr.delete(e), r.unobserve(e);
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
1699
|
const n0 = {
|
|
@@ -1768,7 +1768,7 @@ function a0(e) {
|
|
|
1768
1768
|
const t = {};
|
|
1769
1769
|
return e.values.forEach((n, r) => t[r] = n.getVelocity()), t;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function gr(e, t, n) {
|
|
1772
1772
|
const r = e.getProps();
|
|
1773
1773
|
return Pi(r, t, n !== void 0 ? n : r.custom, s0(e), a0(e));
|
|
1774
1774
|
}
|
|
@@ -1851,23 +1851,23 @@ const p0 = bn(0.42, 0, 1, 1), m0 = bn(0, 0, 0.58, 1), el = bn(0.42, 0, 0.58, 1),
|
|
|
1851
1851
|
} else if (typeof e == "string")
|
|
1852
1852
|
return Ne(wo[e] !== void 0, `Invalid easing type '${e}'`), wo[e];
|
|
1853
1853
|
return e;
|
|
1854
|
-
},
|
|
1854
|
+
}, _i = (e, t) => (n) => !!(gn(n) && wd.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), ol = (e, t, n) => (r) => {
|
|
1855
1855
|
if (!gn(r))
|
|
1856
1856
|
return r;
|
|
1857
|
-
const [i, o, s, a] = r.match(
|
|
1857
|
+
const [i, o, s, a] = r.match(pr);
|
|
1858
1858
|
return {
|
|
1859
1859
|
[e]: parseFloat(i),
|
|
1860
1860
|
[t]: parseFloat(o),
|
|
1861
1861
|
[n]: parseFloat(s),
|
|
1862
1862
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
1863
1863
|
};
|
|
1864
|
-
}, x0 = (e) => it(0, 255, e),
|
|
1864
|
+
}, x0 = (e) => it(0, 255, e), Vr = {
|
|
1865
1865
|
...vt,
|
|
1866
1866
|
transform: (e) => Math.round(x0(e))
|
|
1867
1867
|
}, mt = {
|
|
1868
|
-
test:
|
|
1868
|
+
test: _i("rgb", "red"),
|
|
1869
1869
|
parse: ol("red", "green", "blue"),
|
|
1870
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
1870
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Vr.transform(e) + ", " + Vr.transform(t) + ", " + Vr.transform(n) + ", " + nn(tn.transform(r)) + ")"
|
|
1871
1871
|
};
|
|
1872
1872
|
function w0(e) {
|
|
1873
1873
|
let t = "", n = "", r = "", i = "";
|
|
@@ -1878,20 +1878,20 @@ function w0(e) {
|
|
|
1878
1878
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
1879
1879
|
};
|
|
1880
1880
|
}
|
|
1881
|
-
const
|
|
1882
|
-
test:
|
|
1881
|
+
const Zr = {
|
|
1882
|
+
test: _i("#"),
|
|
1883
1883
|
parse: w0,
|
|
1884
1884
|
transform: mt.transform
|
|
1885
|
-
},
|
|
1886
|
-
test:
|
|
1885
|
+
}, Mt = {
|
|
1886
|
+
test: _i("hsl", "hue"),
|
|
1887
1887
|
parse: ol("hue", "saturation", "lightness"),
|
|
1888
1888
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ve.transform(nn(t)) + ", " + Ve.transform(nn(n)) + ", " + nn(tn.transform(r)) + ")"
|
|
1889
1889
|
}, ce = {
|
|
1890
|
-
test: (e) => mt.test(e) ||
|
|
1891
|
-
parse: (e) => mt.test(e) ? mt.parse(e) :
|
|
1892
|
-
transform: (e) => gn(e) ? e : e.hasOwnProperty("red") ? mt.transform(e) :
|
|
1890
|
+
test: (e) => mt.test(e) || Zr.test(e) || Mt.test(e),
|
|
1891
|
+
parse: (e) => mt.test(e) ? mt.parse(e) : Mt.test(e) ? Mt.parse(e) : Zr.parse(e),
|
|
1892
|
+
transform: (e) => gn(e) ? e : e.hasOwnProperty("red") ? mt.transform(e) : Mt.transform(e)
|
|
1893
1893
|
}, K = (e, t, n) => -n * e + n * t + e;
|
|
1894
|
-
function
|
|
1894
|
+
function Lr(e, t, n) {
|
|
1895
1895
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
1896
1896
|
}
|
|
1897
1897
|
function S0({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
@@ -1901,7 +1901,7 @@ function S0({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
1901
1901
|
i = o = s = n;
|
|
1902
1902
|
else {
|
|
1903
1903
|
const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
|
|
1904
|
-
i =
|
|
1904
|
+
i = Lr(l, a, e + 1 / 3), o = Lr(l, a, e), s = Lr(l, a, e - 1 / 3);
|
|
1905
1905
|
}
|
|
1906
1906
|
return {
|
|
1907
1907
|
red: Math.round(i * 255),
|
|
@@ -1910,23 +1910,23 @@ function S0({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
1910
1910
|
alpha: r
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1913
|
+
const zr = (e, t, n) => {
|
|
1914
1914
|
const r = e * e;
|
|
1915
1915
|
return Math.sqrt(Math.max(0, n * (t * t - r) + r));
|
|
1916
|
-
}, E0 = [
|
|
1916
|
+
}, E0 = [Zr, mt, Mt], T0 = (e) => E0.find((t) => t.test(e));
|
|
1917
1917
|
function Eo(e) {
|
|
1918
1918
|
const t = T0(e);
|
|
1919
1919
|
Ne(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`);
|
|
1920
1920
|
let n = t.parse(e);
|
|
1921
|
-
return t ===
|
|
1921
|
+
return t === Mt && (n = S0(n)), n;
|
|
1922
1922
|
}
|
|
1923
1923
|
const sl = (e, t) => {
|
|
1924
1924
|
const n = Eo(e), r = Eo(t), i = { ...n };
|
|
1925
|
-
return (o) => (i.red =
|
|
1925
|
+
return (o) => (i.red = zr(n.red, r.red, o), i.green = zr(n.green, r.green, o), i.blue = zr(n.blue, r.blue, o), i.alpha = K(n.alpha, r.alpha, o), mt.transform(i));
|
|
1926
1926
|
};
|
|
1927
1927
|
function C0(e) {
|
|
1928
1928
|
var t, n;
|
|
1929
|
-
return isNaN(e) && gn(e) && (((t = e.match(
|
|
1929
|
+
return isNaN(e) && gn(e) && (((t = e.match(pr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Na)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
1930
1930
|
}
|
|
1931
1931
|
const al = {
|
|
1932
1932
|
regex: bd,
|
|
@@ -1939,16 +1939,16 @@ const al = {
|
|
|
1939
1939
|
token: "${c}",
|
|
1940
1940
|
parse: ce.parse
|
|
1941
1941
|
}, cl = {
|
|
1942
|
-
regex:
|
|
1942
|
+
regex: pr,
|
|
1943
1943
|
countKey: "Numbers",
|
|
1944
1944
|
token: "${n}",
|
|
1945
1945
|
parse: vt.parse
|
|
1946
1946
|
};
|
|
1947
|
-
function
|
|
1947
|
+
function jr(e, { regex: t, countKey: n, token: r, parse: i }) {
|
|
1948
1948
|
const o = e.tokenised.match(t);
|
|
1949
1949
|
o && (e["num" + n] = o.length, e.tokenised = e.tokenised.replace(t, r), e.values.push(...o.map(i)));
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Qn(e) {
|
|
1952
1952
|
const t = e.toString(), n = {
|
|
1953
1953
|
value: t,
|
|
1954
1954
|
tokenised: t,
|
|
@@ -1957,13 +1957,13 @@ function Jn(e) {
|
|
|
1957
1957
|
numColors: 0,
|
|
1958
1958
|
numNumbers: 0
|
|
1959
1959
|
};
|
|
1960
|
-
return n.value.includes("var(--") &&
|
|
1960
|
+
return n.value.includes("var(--") && jr(n, al), jr(n, ll), jr(n, cl), n;
|
|
1961
1961
|
}
|
|
1962
1962
|
function ul(e) {
|
|
1963
|
-
return
|
|
1963
|
+
return Qn(e).values;
|
|
1964
1964
|
}
|
|
1965
1965
|
function dl(e) {
|
|
1966
|
-
const { values: t, numColors: n, numVars: r, tokenised: i } =
|
|
1966
|
+
const { values: t, numColors: n, numVars: r, tokenised: i } = Qn(e), o = t.length;
|
|
1967
1967
|
return (s) => {
|
|
1968
1968
|
let a = i;
|
|
1969
1969
|
for (let l = 0; l < o; l++)
|
|
@@ -2002,7 +2002,7 @@ const pl = (e, t) => {
|
|
|
2002
2002
|
return n;
|
|
2003
2003
|
};
|
|
2004
2004
|
}, ml = (e, t) => {
|
|
2005
|
-
const n = ot.createTransformer(t), r =
|
|
2005
|
+
const n = ot.createTransformer(t), r = Qn(e), i = Qn(t);
|
|
2006
2006
|
return r.numVars === i.numVars && r.numColors === i.numColors && r.numNumbers >= i.numNumbers ? nt(pl(r.values, i.values), n) : (vn(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), fl(e, t));
|
|
2007
2007
|
}, cn = (e, t, n) => {
|
|
2008
2008
|
const r = t - e;
|
|
@@ -2011,7 +2011,7 @@ const pl = (e, t) => {
|
|
|
2011
2011
|
function k0(e) {
|
|
2012
2012
|
return typeof e == "number" ? To : typeof e == "string" ? ce.test(e) ? sl : ml : Array.isArray(e) ? pl : typeof e == "object" ? O0 : To;
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function _0(e, t, n) {
|
|
2015
2015
|
const r = [], i = n || k0(e[0]), o = e.length - 1;
|
|
2016
2016
|
for (let s = 0; s < o; s++) {
|
|
2017
2017
|
let a = i(e[s], e[s + 1]);
|
|
@@ -2028,7 +2028,7 @@ function gl(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2028
2028
|
if (Ne(o === t.length, "Both input and output ranges must be the same length"), o === 1)
|
|
2029
2029
|
return () => t[0];
|
|
2030
2030
|
e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
2031
|
-
const s =
|
|
2031
|
+
const s = _0(t, r, i), a = s.length, l = (c) => {
|
|
2032
2032
|
let d = 0;
|
|
2033
2033
|
if (a > 1)
|
|
2034
2034
|
for (; d < e.length - 2 && !(c < e[d + 1]); d++)
|
|
@@ -2038,7 +2038,7 @@ function gl(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2038
2038
|
};
|
|
2039
2039
|
return n ? (c) => l(it(e[0], e[o - 1], c)) : l;
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2041
|
+
function M0(e, t) {
|
|
2042
2042
|
const n = e[e.length - 1];
|
|
2043
2043
|
for (let r = 1; r <= t; r++) {
|
|
2044
2044
|
const i = cn(0, t, r);
|
|
@@ -2047,7 +2047,7 @@ function _0(e, t) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
function R0(e) {
|
|
2049
2049
|
const t = [0];
|
|
2050
|
-
return
|
|
2050
|
+
return M0(t, e.length - 1), t;
|
|
2051
2051
|
}
|
|
2052
2052
|
function N0(e, t) {
|
|
2053
2053
|
return e.map((n) => n * t);
|
|
@@ -2055,7 +2055,7 @@ function N0(e, t) {
|
|
|
2055
2055
|
function D0(e, t) {
|
|
2056
2056
|
return e.map(() => t || el).splice(0, e.length - 1);
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Jn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
2059
2059
|
const i = g0(r) ? r.map(So) : So(r), o = {
|
|
2060
2060
|
done: !1,
|
|
2061
2061
|
value: t[0]
|
|
@@ -2080,20 +2080,20 @@ function vl(e, t, n) {
|
|
|
2080
2080
|
const r = Math.max(t - I0, 0);
|
|
2081
2081
|
return yl(n - e(r), t - r);
|
|
2082
2082
|
}
|
|
2083
|
-
const
|
|
2083
|
+
const Fr = 1e-3, V0 = 0.01, Co = 10, L0 = 0.05, z0 = 1;
|
|
2084
2084
|
function j0({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
2085
2085
|
let i, o;
|
|
2086
2086
|
vn(e <= rt(Co), "Spring duration must be 10 seconds or less");
|
|
2087
2087
|
let s = 1 - t;
|
|
2088
2088
|
s = it(L0, z0, s), e = it(V0, Co, He(e)), s < 1 ? (i = (c) => {
|
|
2089
|
-
const d = c * s, u = d * e, h = d - n, p =
|
|
2090
|
-
return
|
|
2089
|
+
const d = c * s, u = d * e, h = d - n, p = Qr(c, s), g = Math.exp(-u);
|
|
2090
|
+
return Fr - h / p * g;
|
|
2091
2091
|
}, o = (c) => {
|
|
2092
|
-
const u = c * s * e, h = u * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * e, g = Math.exp(-u), f =
|
|
2093
|
-
return (-i(c) +
|
|
2092
|
+
const u = c * s * e, h = u * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * e, g = Math.exp(-u), f = Qr(Math.pow(c, 2), s);
|
|
2093
|
+
return (-i(c) + Fr > 0 ? -1 : 1) * ((h - p) * g) / f;
|
|
2094
2094
|
}) : (i = (c) => {
|
|
2095
2095
|
const d = Math.exp(-c * e), u = (c - n) * e + 1;
|
|
2096
|
-
return
|
|
2096
|
+
return -Fr + d * u;
|
|
2097
2097
|
}, o = (c) => {
|
|
2098
2098
|
const d = Math.exp(-c * e), u = (n - c) * (e * e);
|
|
2099
2099
|
return d * u;
|
|
@@ -2121,7 +2121,7 @@ function $0(e, t, n) {
|
|
|
2121
2121
|
r = r - e(r) / t(r);
|
|
2122
2122
|
return r;
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function Qr(e, t) {
|
|
2125
2125
|
return e * Math.sqrt(1 - t * t);
|
|
2126
2126
|
}
|
|
2127
2127
|
const B0 = ["duration", "bounce"], W0 = ["stiffness", "damping", "mass"];
|
|
@@ -2155,7 +2155,7 @@ function bl({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2155
2155
|
n || (n = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5);
|
|
2156
2156
|
let w;
|
|
2157
2157
|
if (g < 1) {
|
|
2158
|
-
const x =
|
|
2158
|
+
const x = Qr(m, g);
|
|
2159
2159
|
w = (S) => {
|
|
2160
2160
|
const y = Math.exp(-g * m * S);
|
|
2161
2161
|
return o - y * ((p + g * m * f) / x * Math.sin(x * S) + f * Math.cos(x * S));
|
|
@@ -2194,8 +2194,8 @@ function Po({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2194
2194
|
const m = u + f, b = s === void 0 ? m : s(m);
|
|
2195
2195
|
b !== m && (f = b - u);
|
|
2196
2196
|
const w = (C) => -f * Math.exp(-C / r), x = (C) => b + w(C), S = (C) => {
|
|
2197
|
-
const
|
|
2198
|
-
h.done = Math.abs(
|
|
2197
|
+
const P = w(C), N = x(C);
|
|
2198
|
+
h.done = Math.abs(P) <= c, h.value = h.done ? b : N;
|
|
2199
2199
|
};
|
|
2200
2200
|
let y, E;
|
|
2201
2201
|
const T = (C) => {
|
|
@@ -2211,15 +2211,15 @@ function Po({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2211
2211
|
return T(0), {
|
|
2212
2212
|
calculatedDuration: null,
|
|
2213
2213
|
next: (C) => {
|
|
2214
|
-
let
|
|
2215
|
-
return !E && y === void 0 && (
|
|
2214
|
+
let P = !1;
|
|
2215
|
+
return !E && y === void 0 && (P = !0, S(C), T(C)), y !== void 0 && C > y ? E.next(C - y) : (!P && S(C), h);
|
|
2216
2216
|
}
|
|
2217
2217
|
};
|
|
2218
2218
|
}
|
|
2219
2219
|
const H0 = (e) => {
|
|
2220
2220
|
const t = ({ timestamp: n }) => e(n);
|
|
2221
2221
|
return {
|
|
2222
|
-
start: () =>
|
|
2222
|
+
start: () => Y.update(t, !0),
|
|
2223
2223
|
stop: () => Ge(t),
|
|
2224
2224
|
/**
|
|
2225
2225
|
* If we're processing this frame we can use the
|
|
@@ -2239,11 +2239,11 @@ function ko(e) {
|
|
|
2239
2239
|
const Y0 = {
|
|
2240
2240
|
decay: Po,
|
|
2241
2241
|
inertia: Po,
|
|
2242
|
-
tween:
|
|
2243
|
-
keyframes:
|
|
2242
|
+
tween: Jn,
|
|
2243
|
+
keyframes: Jn,
|
|
2244
2244
|
spring: bl
|
|
2245
2245
|
};
|
|
2246
|
-
function
|
|
2246
|
+
function er({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: d, onUpdate: u, ...h }) {
|
|
2247
2247
|
let p = 1, g = !1, f, m;
|
|
2248
2248
|
const b = () => {
|
|
2249
2249
|
m = new Promise((B) => {
|
|
@@ -2252,9 +2252,9 @@ function tr({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type
|
|
|
2252
2252
|
};
|
|
2253
2253
|
b();
|
|
2254
2254
|
let w;
|
|
2255
|
-
const x = Y0[i] ||
|
|
2255
|
+
const x = Y0[i] || Jn;
|
|
2256
2256
|
let S;
|
|
2257
|
-
x !==
|
|
2257
|
+
x !== Jn && typeof r[0] != "number" && (process.env.NODE_ENV !== "production" && Ne(r.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`), S = gl([0, 100], r, {
|
|
2258
2258
|
clamp: !1
|
|
2259
2259
|
}), r = [0, 100]);
|
|
2260
2260
|
const y = x({ ...h, keyframes: r });
|
|
@@ -2264,42 +2264,42 @@ function tr({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type
|
|
|
2264
2264
|
keyframes: [...r].reverse(),
|
|
2265
2265
|
velocity: -(h.velocity || 0)
|
|
2266
2266
|
}));
|
|
2267
|
-
let T = "idle", C = null,
|
|
2267
|
+
let T = "idle", C = null, P = null, N = null;
|
|
2268
2268
|
y.calculatedDuration === null && o && (y.calculatedDuration = ko(y));
|
|
2269
|
-
const { calculatedDuration:
|
|
2270
|
-
let I = 1 / 0,
|
|
2271
|
-
|
|
2272
|
-
let
|
|
2269
|
+
const { calculatedDuration: k } = y;
|
|
2270
|
+
let I = 1 / 0, q = 1 / 0;
|
|
2271
|
+
k !== null && (I = k + s, q = I * (o + 1) - s);
|
|
2272
|
+
let U = 0;
|
|
2273
2273
|
const de = (B) => {
|
|
2274
|
-
if (
|
|
2274
|
+
if (P === null)
|
|
2275
2275
|
return;
|
|
2276
|
-
p > 0 && (
|
|
2277
|
-
const Oe =
|
|
2278
|
-
|
|
2279
|
-
let we =
|
|
2276
|
+
p > 0 && (P = Math.min(P, B)), p < 0 && (P = Math.min(B - q / p, P)), C !== null ? U = C : U = Math.round(B - P) * p;
|
|
2277
|
+
const Oe = U - t * (p >= 0 ? 1 : -1), Fe = p >= 0 ? Oe < 0 : Oe > q;
|
|
2278
|
+
U = Math.max(Oe, 0), T === "finished" && C === null && (U = q);
|
|
2279
|
+
let we = U, $e = y;
|
|
2280
2280
|
if (o) {
|
|
2281
|
-
const ct = Math.min(
|
|
2281
|
+
const ct = Math.min(U, q) / I;
|
|
2282
2282
|
let Ke = Math.floor(ct), ke = ct % 1;
|
|
2283
2283
|
!ke && ct >= 1 && (ke = 1), ke === 1 && Ke--, Ke = Math.min(Ke, o + 1), !!(Ke % 2) && (a === "reverse" ? (ke = 1 - ke, s && (ke -= s / I)) : a === "mirror" && ($e = E)), we = it(0, 1, ke) * I;
|
|
2284
2284
|
}
|
|
2285
2285
|
const Be = Fe ? { done: !1, value: r[0] } : $e.next(we);
|
|
2286
2286
|
S && (Be.value = S(Be.value));
|
|
2287
2287
|
let { done: xt } = Be;
|
|
2288
|
-
!Fe &&
|
|
2288
|
+
!Fe && k !== null && (xt = p >= 0 ? U >= q : U <= 0);
|
|
2289
2289
|
const Ht = C === null && (T === "finished" || T === "running" && xt);
|
|
2290
2290
|
return u && u(Be.value), Ht && le(), Be;
|
|
2291
|
-
},
|
|
2291
|
+
}, H = () => {
|
|
2292
2292
|
w && w.stop(), w = void 0;
|
|
2293
2293
|
}, ae = () => {
|
|
2294
|
-
T = "idle",
|
|
2294
|
+
T = "idle", H(), f(), b(), P = N = null;
|
|
2295
2295
|
}, le = () => {
|
|
2296
|
-
T = "finished", d && d(),
|
|
2296
|
+
T = "finished", d && d(), H(), f();
|
|
2297
2297
|
}, ge = () => {
|
|
2298
2298
|
if (g)
|
|
2299
2299
|
return;
|
|
2300
2300
|
w || (w = n(de));
|
|
2301
2301
|
const B = w.now();
|
|
2302
|
-
l && l(), C !== null ?
|
|
2302
|
+
l && l(), C !== null ? P = B - C : (!P || T === "finished") && (P = B), T === "finished" && b(), N = P, C = null, T = "running", w.start();
|
|
2303
2303
|
};
|
|
2304
2304
|
e && ge();
|
|
2305
2305
|
const De = {
|
|
@@ -2307,10 +2307,10 @@ function tr({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type
|
|
|
2307
2307
|
return m.then(B, Oe);
|
|
2308
2308
|
},
|
|
2309
2309
|
get time() {
|
|
2310
|
-
return He(
|
|
2310
|
+
return He(U);
|
|
2311
2311
|
},
|
|
2312
2312
|
set time(B) {
|
|
2313
|
-
B = rt(B),
|
|
2313
|
+
B = rt(B), U = B, C !== null || !w || p === 0 ? C = B : P = w.now() - B / p;
|
|
2314
2314
|
},
|
|
2315
2315
|
get duration() {
|
|
2316
2316
|
const B = y.calculatedDuration === null ? ko(y) : y.calculatedDuration;
|
|
@@ -2320,14 +2320,14 @@ function tr({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type
|
|
|
2320
2320
|
return p;
|
|
2321
2321
|
},
|
|
2322
2322
|
set speed(B) {
|
|
2323
|
-
B === p || !w || (p = B, De.time = He(
|
|
2323
|
+
B === p || !w || (p = B, De.time = He(U));
|
|
2324
2324
|
},
|
|
2325
2325
|
get state() {
|
|
2326
2326
|
return T;
|
|
2327
2327
|
},
|
|
2328
2328
|
play: ge,
|
|
2329
2329
|
pause: () => {
|
|
2330
|
-
T = "paused", C =
|
|
2330
|
+
T = "paused", C = U;
|
|
2331
2331
|
},
|
|
2332
2332
|
stop: () => {
|
|
2333
2333
|
g = !0, T !== "idle" && (T = "idle", c && c(), ae());
|
|
@@ -2338,7 +2338,7 @@ function tr({ autoplay: e = !0, delay: t = 0, driver: n = H0, keyframes: r, type
|
|
|
2338
2338
|
complete: () => {
|
|
2339
2339
|
T = "finished";
|
|
2340
2340
|
},
|
|
2341
|
-
sample: (B) => (
|
|
2341
|
+
sample: (B) => (P = 0, de(B))
|
|
2342
2342
|
};
|
|
2343
2343
|
return De;
|
|
2344
2344
|
}
|
|
@@ -2352,7 +2352,7 @@ const q0 = G0(() => Object.hasOwnProperty.call(Element.prototype, "animate")), K
|
|
|
2352
2352
|
"filter",
|
|
2353
2353
|
"transform",
|
|
2354
2354
|
"backgroundColor"
|
|
2355
|
-
]),
|
|
2355
|
+
]), Mn = 10, X0 = 2e4, Z0 = (e, t) => t.type === "spring" || e === "backgroundColor" || !Xa(t.ease);
|
|
2356
2356
|
function Q0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
2357
2357
|
if (!(q0() && K0.has(t) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
|
|
2358
2358
|
return !1;
|
|
@@ -2365,7 +2365,7 @@ function Q0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2365
2365
|
d();
|
|
2366
2366
|
let { keyframes: u, duration: h = 300, ease: p, times: g } = i;
|
|
2367
2367
|
if (Z0(t, i)) {
|
|
2368
|
-
const x =
|
|
2368
|
+
const x = er({
|
|
2369
2369
|
...i,
|
|
2370
2370
|
repeat: 0,
|
|
2371
2371
|
delay: 0
|
|
@@ -2374,8 +2374,8 @@ function Q0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2374
2374
|
const y = [];
|
|
2375
2375
|
let E = 0;
|
|
2376
2376
|
for (; !S.done && E < X0; )
|
|
2377
|
-
S = x.sample(E), y.push(S.value), E +=
|
|
2378
|
-
g = void 0, u = y, h = E -
|
|
2377
|
+
S = x.sample(E), y.push(S.value), E += Mn;
|
|
2378
|
+
g = void 0, u = y, h = E - Mn, p = "linear";
|
|
2379
2379
|
}
|
|
2380
2380
|
const f = c0(e.owner.current, t, u, {
|
|
2381
2381
|
...i,
|
|
@@ -2393,7 +2393,7 @@ function Q0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2393
2393
|
}), m = () => {
|
|
2394
2394
|
c = !1, f.cancel();
|
|
2395
2395
|
}, b = () => {
|
|
2396
|
-
c = !0,
|
|
2396
|
+
c = !0, Y.update(m), a(), d();
|
|
2397
2397
|
};
|
|
2398
2398
|
return f.onfinish = () => {
|
|
2399
2399
|
c || (e.set(u0(u, i)), r && r(), b());
|
|
@@ -2428,11 +2428,11 @@ function Q0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2428
2428
|
return;
|
|
2429
2429
|
const { currentTime: x } = f;
|
|
2430
2430
|
if (x) {
|
|
2431
|
-
const S =
|
|
2431
|
+
const S = er({
|
|
2432
2432
|
...i,
|
|
2433
2433
|
autoplay: !1
|
|
2434
2434
|
});
|
|
2435
|
-
e.setWithVelocity(S.sample(x -
|
|
2435
|
+
e.setWithVelocity(S.sample(x - Mn).value, S.sample(x).value, Mn);
|
|
2436
2436
|
}
|
|
2437
2437
|
b();
|
|
2438
2438
|
},
|
|
@@ -2454,7 +2454,7 @@ function J0({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
|
|
|
2454
2454
|
cancel: Q,
|
|
2455
2455
|
complete: Q
|
|
2456
2456
|
});
|
|
2457
|
-
return t ?
|
|
2457
|
+
return t ? er({
|
|
2458
2458
|
keyframes: [0, 1],
|
|
2459
2459
|
duration: 0,
|
|
2460
2460
|
delay: t,
|
|
@@ -2478,21 +2478,21 @@ const ef = {
|
|
|
2478
2478
|
type: "keyframes",
|
|
2479
2479
|
ease: [0.25, 0.1, 0.35, 1],
|
|
2480
2480
|
duration: 0.3
|
|
2481
|
-
}, of = (e, { keyframes: t }) => t.length > 2 ? nf : yt.has(e) ? e.startsWith("scale") ? tf(t[1]) : ef : rf,
|
|
2481
|
+
}, of = (e, { keyframes: t }) => t.length > 2 ? nf : yt.has(e) ? e.startsWith("scale") ? tf(t[1]) : ef : rf, Jr = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2482
2482
|
(ot.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2483
2483
|
!t.startsWith("url(")), sf = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
2484
2484
|
function af(e) {
|
|
2485
2485
|
const [t, n] = e.slice(0, -1).split("(");
|
|
2486
2486
|
if (t === "drop-shadow")
|
|
2487
2487
|
return e;
|
|
2488
|
-
const [r] = n.match(
|
|
2488
|
+
const [r] = n.match(pr) || [];
|
|
2489
2489
|
if (!r)
|
|
2490
2490
|
return e;
|
|
2491
2491
|
const i = n.replace(r, "");
|
|
2492
2492
|
let o = sf.has(t) ? 1 : 0;
|
|
2493
2493
|
return r !== n && (o *= 100), t + "(" + o + i + ")";
|
|
2494
2494
|
}
|
|
2495
|
-
const lf = /([a-z-]*)\(.*?\)/g,
|
|
2495
|
+
const lf = /([a-z-]*)\(.*?\)/g, ei = {
|
|
2496
2496
|
...ot,
|
|
2497
2497
|
getAnimatableNone: (e) => {
|
|
2498
2498
|
const t = e.match(lf);
|
|
@@ -2512,12 +2512,12 @@ const lf = /([a-z-]*)\(.*?\)/g, ti = {
|
|
|
2512
2512
|
borderRightColor: ce,
|
|
2513
2513
|
borderBottomColor: ce,
|
|
2514
2514
|
borderLeftColor: ce,
|
|
2515
|
-
filter:
|
|
2516
|
-
WebkitFilter:
|
|
2517
|
-
},
|
|
2515
|
+
filter: ei,
|
|
2516
|
+
WebkitFilter: ei
|
|
2517
|
+
}, Mi = (e) => cf[e];
|
|
2518
2518
|
function xl(e, t) {
|
|
2519
|
-
let n =
|
|
2520
|
-
return n !==
|
|
2519
|
+
let n = Mi(e);
|
|
2520
|
+
return n !== ei && (n = ot), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2521
2521
|
}
|
|
2522
2522
|
const wl = (e) => /^0[^.\s]+$/.test(e);
|
|
2523
2523
|
function uf(e) {
|
|
@@ -2527,7 +2527,7 @@ function uf(e) {
|
|
|
2527
2527
|
return e === "none" || e === "0" || wl(e);
|
|
2528
2528
|
}
|
|
2529
2529
|
function df(e, t, n, r) {
|
|
2530
|
-
const i =
|
|
2530
|
+
const i = Jr(t, n);
|
|
2531
2531
|
let o;
|
|
2532
2532
|
Array.isArray(n) ? o = [...n] : o = [null, n];
|
|
2533
2533
|
const s = r.from !== void 0 ? r.from : e.get();
|
|
@@ -2554,7 +2554,7 @@ const hf = {
|
|
|
2554
2554
|
const o = Ri(r, e) || {}, s = o.delay || r.delay || 0;
|
|
2555
2555
|
let { elapsed: a = 0 } = r;
|
|
2556
2556
|
a = a - rt(s);
|
|
2557
|
-
const l = df(t, e, n, o), c = l[0], d = l[l.length - 1], u =
|
|
2557
|
+
const l = df(t, e, n, o), c = l[0], d = l[l.length - 1], u = Jr(e, c), h = Jr(e, d);
|
|
2558
2558
|
vn(u === h, `You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);
|
|
2559
2559
|
let p = {
|
|
2560
2560
|
keyframes: l,
|
|
@@ -2590,9 +2590,9 @@ const hf = {
|
|
|
2590
2590
|
if (g)
|
|
2591
2591
|
return g;
|
|
2592
2592
|
}
|
|
2593
|
-
return
|
|
2593
|
+
return er(p);
|
|
2594
2594
|
};
|
|
2595
|
-
function
|
|
2595
|
+
function tr(e) {
|
|
2596
2596
|
return !!(pe(e) && e.add);
|
|
2597
2597
|
}
|
|
2598
2598
|
const Sl = (e) => /^\-?\d*\.?\d+$/.test(e);
|
|
@@ -2628,9 +2628,9 @@ class Vi {
|
|
|
2628
2628
|
this.subscriptions.length = 0;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2631
|
+
const _o = /* @__PURE__ */ new Set();
|
|
2632
2632
|
function Li(e, t, n) {
|
|
2633
|
-
e ||
|
|
2633
|
+
e || _o.has(t) || (console.warn(t), n && console.warn(n), _o.add(t));
|
|
2634
2634
|
}
|
|
2635
2635
|
const pf = (e) => !isNaN(parseFloat(e));
|
|
2636
2636
|
class mf {
|
|
@@ -2646,8 +2646,8 @@ class mf {
|
|
|
2646
2646
|
this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
|
2647
2647
|
this.prev = this.current, this.current = r;
|
|
2648
2648
|
const { delta: o, timestamp: s } = se;
|
|
2649
|
-
this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s,
|
|
2650
|
-
}, this.scheduleVelocityCheck = () =>
|
|
2649
|
+
this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, Y.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
2650
|
+
}, this.scheduleVelocityCheck = () => Y.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
|
|
2651
2651
|
r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
2652
2652
|
}, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = pf(this.current), this.owner = n.owner;
|
|
2653
2653
|
}
|
|
@@ -2698,7 +2698,7 @@ class mf {
|
|
|
2698
2698
|
this.events[t] || (this.events[t] = new Vi());
|
|
2699
2699
|
const r = this.events[t].add(n);
|
|
2700
2700
|
return t === "change" ? () => {
|
|
2701
|
-
r(),
|
|
2701
|
+
r(), Y.read(() => {
|
|
2702
2702
|
this.events.change.getSize() || this.stop();
|
|
2703
2703
|
});
|
|
2704
2704
|
} : r;
|
|
@@ -2829,12 +2829,12 @@ function Lt(e, t) {
|
|
|
2829
2829
|
const El = (e) => (t) => t.test(e), gf = {
|
|
2830
2830
|
test: (e) => e === "auto",
|
|
2831
2831
|
parse: (e) => e
|
|
2832
|
-
}, Tl = [vt,
|
|
2832
|
+
}, Tl = [vt, _, Ve, Je, Ed, Sd, gf], qt = (e) => Tl.find(El(e)), yf = [...Tl, ce, ot], vf = (e) => yf.find(El(e));
|
|
2833
2833
|
function bf(e, t, n) {
|
|
2834
2834
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Lt(n));
|
|
2835
2835
|
}
|
|
2836
2836
|
function xf(e, t) {
|
|
2837
|
-
const n =
|
|
2837
|
+
const n = gr(e, t);
|
|
2838
2838
|
let { transitionEnd: r = {}, transition: i = {}, ...o } = n ? e.makeTargetAnimatable(n, !1) : {};
|
|
2839
2839
|
o = { ...o, ...r };
|
|
2840
2840
|
for (const s in o) {
|
|
@@ -2898,7 +2898,7 @@ function Cl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2898
2898
|
if (window.HandoffAppearAnimations) {
|
|
2899
2899
|
const b = e.getProps()[Aa];
|
|
2900
2900
|
if (b) {
|
|
2901
|
-
const w = window.HandoffAppearAnimations(b, u, h,
|
|
2901
|
+
const w = window.HandoffAppearAnimations(b, u, h, Y);
|
|
2902
2902
|
w !== null && (g.elapsed = w, g.isHandoff = !0);
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
@@ -2907,14 +2907,14 @@ function Cl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2907
2907
|
continue;
|
|
2908
2908
|
h.start(Ni(u, h, p, e.shouldReduceMotion && yt.has(u) ? { type: !1 } : g));
|
|
2909
2909
|
const m = h.animation;
|
|
2910
|
-
|
|
2910
|
+
tr(l) && (l.add(u), m.then(() => l.remove(u))), c.push(m);
|
|
2911
2911
|
}
|
|
2912
2912
|
return s && Promise.all(c).then(() => {
|
|
2913
2913
|
s && xf(e, s);
|
|
2914
2914
|
}), c;
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2917
|
-
const r =
|
|
2916
|
+
function ti(e, t, n = {}) {
|
|
2917
|
+
const r = gr(e, t, n.custom);
|
|
2918
2918
|
let { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
2919
2919
|
n.transitionOverride && (i = n.transitionOverride);
|
|
2920
2920
|
const o = r ? () => Promise.all(Cl(e, r, n)) : () => Promise.resolve(), s = e.variantChildren && e.variantChildren.size ? (l = 0) => {
|
|
@@ -2930,7 +2930,7 @@ function ni(e, t, n = {}) {
|
|
|
2930
2930
|
function Af(e, t, n = 0, r = 0, i = 1, o) {
|
|
2931
2931
|
const s = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
|
2932
2932
|
return Array.from(e.variantChildren).sort(Pf).forEach((c, d) => {
|
|
2933
|
-
c.notify("AnimationStart", t), s.push(
|
|
2933
|
+
c.notify("AnimationStart", t), s.push(ti(c, t, {
|
|
2934
2934
|
...o,
|
|
2935
2935
|
delay: n + l(d)
|
|
2936
2936
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
@@ -2943,26 +2943,26 @@ function Of(e, t, n = {}) {
|
|
|
2943
2943
|
e.notify("AnimationStart", t);
|
|
2944
2944
|
let r;
|
|
2945
2945
|
if (Array.isArray(t)) {
|
|
2946
|
-
const i = t.map((o) =>
|
|
2946
|
+
const i = t.map((o) => ti(e, o, n));
|
|
2947
2947
|
r = Promise.all(i);
|
|
2948
2948
|
} else if (typeof t == "string")
|
|
2949
|
-
r =
|
|
2949
|
+
r = ti(e, t, n);
|
|
2950
2950
|
else {
|
|
2951
|
-
const i = typeof t == "function" ?
|
|
2951
|
+
const i = typeof t == "function" ? gr(e, t, n.custom) : t;
|
|
2952
2952
|
r = Promise.all(Cl(e, i, n));
|
|
2953
2953
|
}
|
|
2954
2954
|
return r.then(() => e.notify("AnimationComplete", t));
|
|
2955
2955
|
}
|
|
2956
|
-
const kf = [...bi].reverse(),
|
|
2957
|
-
function
|
|
2956
|
+
const kf = [...bi].reverse(), _f = bi.length;
|
|
2957
|
+
function Mf(e) {
|
|
2958
2958
|
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Of(e, n, r)));
|
|
2959
2959
|
}
|
|
2960
2960
|
function Rf(e) {
|
|
2961
|
-
let t =
|
|
2961
|
+
let t = Mf(e);
|
|
2962
2962
|
const n = Df();
|
|
2963
2963
|
let r = !0;
|
|
2964
2964
|
const i = (l, c) => {
|
|
2965
|
-
const d =
|
|
2965
|
+
const d = gr(e, c);
|
|
2966
2966
|
if (d) {
|
|
2967
2967
|
const { transition: u, transitionEnd: h, ...p } = d;
|
|
2968
2968
|
l = { ...l, ...p, ...h };
|
|
@@ -2975,36 +2975,36 @@ function Rf(e) {
|
|
|
2975
2975
|
function s(l, c) {
|
|
2976
2976
|
const d = e.getProps(), u = e.getVariantContext(!0) || {}, h = [], p = /* @__PURE__ */ new Set();
|
|
2977
2977
|
let g = {}, f = 1 / 0;
|
|
2978
|
-
for (let b = 0; b <
|
|
2978
|
+
for (let b = 0; b < _f; b++) {
|
|
2979
2979
|
const w = kf[b], x = n[w], S = d[w] !== void 0 ? d[w] : u[w], y = an(S), E = w === c ? x.isActive : null;
|
|
2980
2980
|
E === !1 && (f = b);
|
|
2981
2981
|
let T = S === u[w] && S !== d[w] && y;
|
|
2982
2982
|
if (T && r && e.manuallyAnimateOnMount && (T = !1), x.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
2983
2983
|
!x.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
|
|
2984
2984
|
!S && !x.prevProp || // Or if the prop doesn't define an animation
|
|
2985
|
-
|
|
2985
|
+
fr(S) || typeof S == "boolean")
|
|
2986
2986
|
continue;
|
|
2987
|
-
let
|
|
2987
|
+
let P = Nf(x.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
2988
2988
|
w === c && x.isActive && !T && y || // If we removed a higher-priority variant (i is in reverse order)
|
|
2989
2989
|
b > f && y, N = !1;
|
|
2990
|
-
const
|
|
2991
|
-
let I =
|
|
2990
|
+
const k = Array.isArray(S) ? S : [S];
|
|
2991
|
+
let I = k.reduce(i, {});
|
|
2992
2992
|
E === !1 && (I = {});
|
|
2993
|
-
const { prevResolvedValues:
|
|
2994
|
-
...
|
|
2993
|
+
const { prevResolvedValues: q = {} } = x, U = {
|
|
2994
|
+
...q,
|
|
2995
2995
|
...I
|
|
2996
|
-
}, de = (
|
|
2997
|
-
|
|
2996
|
+
}, de = (H) => {
|
|
2997
|
+
P = !0, p.has(H) && (N = !0, p.delete(H)), x.needsAnimating[H] = !0;
|
|
2998
2998
|
};
|
|
2999
|
-
for (const
|
|
3000
|
-
const ae = I[
|
|
3001
|
-
if (g.hasOwnProperty(
|
|
2999
|
+
for (const H in U) {
|
|
3000
|
+
const ae = I[H], le = q[H];
|
|
3001
|
+
if (g.hasOwnProperty(H))
|
|
3002
3002
|
continue;
|
|
3003
3003
|
let ge = !1;
|
|
3004
|
-
|
|
3004
|
+
Zn(ae) && Zn(le) ? ge = !qa(ae, le) : ge = ae !== le, ge ? ae !== void 0 ? de(H) : p.add(H) : ae !== void 0 && p.has(H) ? de(H) : x.protectedKeys[H] = !0;
|
|
3005
3005
|
}
|
|
3006
|
-
x.prevProp = S, x.prevResolvedValues = I, x.isActive && (g = { ...g, ...I }), r && e.blockInitialAnimation && (
|
|
3007
|
-
animation:
|
|
3006
|
+
x.prevProp = S, x.prevResolvedValues = I, x.isActive && (g = { ...g, ...I }), r && e.blockInitialAnimation && (P = !1), P && (!T || N) && h.push(...k.map((H) => ({
|
|
3007
|
+
animation: H,
|
|
3008
3008
|
options: { type: w, ...l }
|
|
3009
3009
|
})));
|
|
3010
3010
|
}
|
|
@@ -3071,7 +3071,7 @@ class If extends at {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
updateAnimationControlsSubscription() {
|
|
3073
3073
|
const { animate: t } = this.node.getProps();
|
|
3074
|
-
this.unmount(),
|
|
3074
|
+
this.unmount(), fr(t) && (this.unmount = t.subscribe(this.node));
|
|
3075
3075
|
}
|
|
3076
3076
|
/**
|
|
3077
3077
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -3114,9 +3114,9 @@ const zf = {
|
|
|
3114
3114
|
exit: {
|
|
3115
3115
|
Feature: Lf
|
|
3116
3116
|
}
|
|
3117
|
-
},
|
|
3117
|
+
}, Mo = (e, t) => Math.abs(e - t);
|
|
3118
3118
|
function jf(e, t) {
|
|
3119
|
-
const n =
|
|
3119
|
+
const n = Mo(e.x, t.x), r = Mo(e.y, t.y);
|
|
3120
3120
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
3121
3121
|
}
|
|
3122
3122
|
class Al {
|
|
@@ -3124,7 +3124,7 @@ class Al {
|
|
|
3124
3124
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
3125
3125
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3126
3126
|
return;
|
|
3127
|
-
const u =
|
|
3127
|
+
const u = Br(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p = jf(u.offset, { x: 0, y: 0 }) >= 3;
|
|
3128
3128
|
if (!h && !p)
|
|
3129
3129
|
return;
|
|
3130
3130
|
const { point: g } = u, { timestamp: f } = se;
|
|
@@ -3132,21 +3132,21 @@ class Al {
|
|
|
3132
3132
|
const { onStart: m, onMove: b } = this.handlers;
|
|
3133
3133
|
h || (m && m(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, u);
|
|
3134
3134
|
}, this.handlePointerMove = (u, h) => {
|
|
3135
|
-
this.lastMoveEvent = u, this.lastMoveEventInfo =
|
|
3135
|
+
this.lastMoveEvent = u, this.lastMoveEventInfo = $r(h, this.transformPagePoint), Y.update(this.updatePoint, !0);
|
|
3136
3136
|
}, this.handlePointerUp = (u, h) => {
|
|
3137
3137
|
this.end();
|
|
3138
3138
|
const { onEnd: p, onSessionEnd: g, resumeAnimation: f } = this.handlers;
|
|
3139
3139
|
if (this.dragSnapToOrigin && f && f(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3140
3140
|
return;
|
|
3141
|
-
const m =
|
|
3141
|
+
const m = Br(u.type === "pointercancel" ? this.lastMoveEventInfo : $r(h, this.transformPagePoint), this.history);
|
|
3142
3142
|
this.startEvent && p && p(u, m), g && g(u, m);
|
|
3143
3143
|
}, !Wa(t))
|
|
3144
3144
|
return;
|
|
3145
3145
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
3146
|
-
const s =
|
|
3146
|
+
const s = mr(t), a = $r(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = se;
|
|
3147
3147
|
this.history = [{ ...l, timestamp: c }];
|
|
3148
3148
|
const { onSessionStart: d } = n;
|
|
3149
|
-
d && d(t,
|
|
3149
|
+
d && d(t, Br(a, this.history)), this.removeListeners = nt(Ue(this.contextWindow, "pointermove", this.handlePointerMove), Ue(this.contextWindow, "pointerup", this.handlePointerUp), Ue(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
3150
3150
|
}
|
|
3151
3151
|
updateHandlers(t) {
|
|
3152
3152
|
this.handlers = t;
|
|
@@ -3155,13 +3155,13 @@ class Al {
|
|
|
3155
3155
|
this.removeListeners && this.removeListeners(), Ge(this.updatePoint);
|
|
3156
3156
|
}
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function $r(e, t) {
|
|
3159
3159
|
return t ? { point: t(e.point) } : e;
|
|
3160
3160
|
}
|
|
3161
3161
|
function Ro(e, t) {
|
|
3162
3162
|
return { x: e.x - t.x, y: e.y - t.y };
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Br({ point: e }, t) {
|
|
3165
3165
|
return {
|
|
3166
3166
|
point: e,
|
|
3167
3167
|
delta: Ro(e, Pl(t)),
|
|
@@ -3196,11 +3196,11 @@ function $f(e, t) {
|
|
|
3196
3196
|
function xe(e) {
|
|
3197
3197
|
return e.max - e.min;
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function ni(e, t = 0, n = 0.01) {
|
|
3200
3200
|
return Math.abs(e - t) <= n;
|
|
3201
3201
|
}
|
|
3202
3202
|
function No(e, t, n, r = 0.5) {
|
|
3203
|
-
e.origin = r, e.originPoint = K(t.min, t.max, e.origin), e.scale = xe(n) / xe(t), (
|
|
3203
|
+
e.origin = r, e.originPoint = K(t.min, t.max, e.origin), e.scale = xe(n) / xe(t), (ni(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = K(n.min, n.max, e.origin) - e.originPoint, (ni(e.translate) || isNaN(e.translate)) && (e.translate = 0);
|
|
3204
3204
|
}
|
|
3205
3205
|
function rn(e, t, n, r) {
|
|
3206
3206
|
No(e.x, t.x, n.x, r ? r.originX : void 0), No(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
@@ -3251,9 +3251,9 @@ function Gf(e, t) {
|
|
|
3251
3251
|
const n = {};
|
|
3252
3252
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
3253
3253
|
}
|
|
3254
|
-
const
|
|
3255
|
-
function qf(e =
|
|
3256
|
-
return e === !1 ? e = 0 : e === !0 && (e =
|
|
3254
|
+
const ri = 0.35;
|
|
3255
|
+
function qf(e = ri) {
|
|
3256
|
+
return e === !1 ? e = 0 : e === !0 && (e = ri), {
|
|
3257
3257
|
x: zo(e, "left", "right"),
|
|
3258
3258
|
y: zo(e, "top", "bottom")
|
|
3259
3259
|
};
|
|
@@ -3302,14 +3302,14 @@ function Xf(e, t) {
|
|
|
3302
3302
|
right: r.x
|
|
3303
3303
|
};
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function Wr(e) {
|
|
3306
3306
|
return e === void 0 || e === 1;
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3309
|
-
return !
|
|
3308
|
+
function ii({ scale: e, scaleX: t, scaleY: n }) {
|
|
3309
|
+
return !Wr(e) || !Wr(t) || !Wr(n);
|
|
3310
3310
|
}
|
|
3311
3311
|
function ft(e) {
|
|
3312
|
-
return
|
|
3312
|
+
return ii(e) || kl(e) || e.z || e.rotate || e.rotateX || e.rotateY;
|
|
3313
3313
|
}
|
|
3314
3314
|
function kl(e) {
|
|
3315
3315
|
return Bo(e.x) || Bo(e.y);
|
|
@@ -3317,18 +3317,18 @@ function kl(e) {
|
|
|
3317
3317
|
function Bo(e) {
|
|
3318
3318
|
return e && e !== "0%";
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function nr(e, t, n) {
|
|
3321
3321
|
const r = e - n, i = t * r;
|
|
3322
3322
|
return n + i;
|
|
3323
3323
|
}
|
|
3324
3324
|
function Wo(e, t, n, r, i) {
|
|
3325
|
-
return i !== void 0 && (e =
|
|
3325
|
+
return i !== void 0 && (e = nr(e, i, r)), nr(e, n, r) + t;
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function oi(e, t = 0, n = 1, r, i) {
|
|
3328
3328
|
e.min = Wo(e.min, t, n, r, i), e.max = Wo(e.max, t, n, r, i);
|
|
3329
3329
|
}
|
|
3330
|
-
function
|
|
3331
|
-
|
|
3330
|
+
function _l(e, { x: t, y: n }) {
|
|
3331
|
+
oi(e.x, t.translate, t.scale, t.originPoint), oi(e.y, n.translate, n.scale, n.originPoint);
|
|
3332
3332
|
}
|
|
3333
3333
|
function Zf(e, t, n, r = !1) {
|
|
3334
3334
|
const i = n.length;
|
|
@@ -3342,7 +3342,7 @@ function Zf(e, t, n, r = !1) {
|
|
|
3342
3342
|
l && l.style && l.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Nt(e, {
|
|
3343
3343
|
x: -o.scroll.offset.x,
|
|
3344
3344
|
y: -o.scroll.offset.y
|
|
3345
|
-
}), s && (t.x *= s.x.scale, t.y *= s.y.scale,
|
|
3345
|
+
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, _l(e, s)), r && ft(o.latestValues) && Nt(e, o.latestValues));
|
|
3346
3346
|
}
|
|
3347
3347
|
t.x = Uo(t.x), t.y = Uo(t.y);
|
|
3348
3348
|
}
|
|
@@ -3354,17 +3354,17 @@ function et(e, t) {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
function Ho(e, t, [n, r, i]) {
|
|
3356
3356
|
const o = t[i] !== void 0 ? t[i] : 0.5, s = K(e.min, e.max, o);
|
|
3357
|
-
|
|
3357
|
+
oi(e, t[n], t[r], s, t.scale);
|
|
3358
3358
|
}
|
|
3359
3359
|
const Qf = ["x", "scaleX", "originX"], Jf = ["y", "scaleY", "originY"];
|
|
3360
3360
|
function Nt(e, t) {
|
|
3361
3361
|
Ho(e.x, t, Qf), Ho(e.y, t, Jf);
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3363
|
+
function Ml(e, t) {
|
|
3364
3364
|
return Ol(Xf(e.getBoundingClientRect(), t));
|
|
3365
3365
|
}
|
|
3366
3366
|
function eh(e, t, n) {
|
|
3367
|
-
const r =
|
|
3367
|
+
const r = Ml(e, n), { scroll: i } = t;
|
|
3368
3368
|
return i && (et(r.x, i.offset.x), et(r.y, i.offset.y)), r;
|
|
3369
3369
|
}
|
|
3370
3370
|
const Rl = ({ current: e }) => e ? e.ownerDocument.defaultView : null, th = /* @__PURE__ */ new WeakMap();
|
|
@@ -3378,7 +3378,7 @@ class nh {
|
|
|
3378
3378
|
return;
|
|
3379
3379
|
const i = (d) => {
|
|
3380
3380
|
const { dragSnapToOrigin: u } = this.getProps();
|
|
3381
|
-
u ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(
|
|
3381
|
+
u ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(mr(d, "page").point);
|
|
3382
3382
|
}, o = (d, u) => {
|
|
3383
3383
|
const { drag: h, dragPropagation: p, onDragStart: g } = this.getProps();
|
|
3384
3384
|
if (h && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Ha(h), !this.openGlobalLock))
|
|
@@ -3393,7 +3393,7 @@ class nh {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
}
|
|
3395
3395
|
this.originPoint[m] = b;
|
|
3396
|
-
}), g &&
|
|
3396
|
+
}), g && Y.update(() => g(d, u), !1, !0);
|
|
3397
3397
|
const { animationState: f } = this.visualElement;
|
|
3398
3398
|
f && f.setActive("whileDrag", !0);
|
|
3399
3399
|
}, s = (d, u) => {
|
|
@@ -3429,7 +3429,7 @@ class nh {
|
|
|
3429
3429
|
const { velocity: i } = n;
|
|
3430
3430
|
this.startAnimation(i);
|
|
3431
3431
|
const { onDragEnd: o } = this.getProps();
|
|
3432
|
-
o &&
|
|
3432
|
+
o && Y.update(() => o(t, n));
|
|
3433
3433
|
}
|
|
3434
3434
|
cancel() {
|
|
3435
3435
|
this.isDragging = !1;
|
|
@@ -3449,13 +3449,13 @@ class nh {
|
|
|
3449
3449
|
resolveConstraints() {
|
|
3450
3450
|
var t;
|
|
3451
3451
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
|
|
3452
|
-
n &&
|
|
3452
|
+
n && _t(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Uf(i.layoutBox, n) : this.constraints = !1, this.elastic = qf(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Ee((s) => {
|
|
3453
3453
|
this.getAxisMotionValue(s) && (this.constraints[s] = Gf(i.layoutBox[s], this.constraints[s]));
|
|
3454
3454
|
});
|
|
3455
3455
|
}
|
|
3456
3456
|
resolveRefConstraints() {
|
|
3457
3457
|
const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
|
|
3458
|
-
if (!t || !
|
|
3458
|
+
if (!t || !_t(t))
|
|
3459
3459
|
return !1;
|
|
3460
3460
|
const r = t.current;
|
|
3461
3461
|
Ne(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -3539,7 +3539,7 @@ class nh {
|
|
|
3539
3539
|
if (!this.visualElement.current)
|
|
3540
3540
|
return;
|
|
3541
3541
|
const { drag: t, dragConstraints: n } = this.getProps(), { projection: r } = this.visualElement;
|
|
3542
|
-
if (!
|
|
3542
|
+
if (!_t(n) || !r || !this.constraints)
|
|
3543
3543
|
return;
|
|
3544
3544
|
this.stopAnimation();
|
|
3545
3545
|
const i = { x: 0, y: 0 };
|
|
@@ -3567,7 +3567,7 @@ class nh {
|
|
|
3567
3567
|
c && d && this.start(l);
|
|
3568
3568
|
}), r = () => {
|
|
3569
3569
|
const { dragConstraints: l } = this.getProps();
|
|
3570
|
-
|
|
3570
|
+
_t(l) && (this.constraints = this.resolveRefConstraints());
|
|
3571
3571
|
}, { projection: i } = this.visualElement, o = i.addEventListener("measure", r);
|
|
3572
3572
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();
|
|
3573
3573
|
const s = We(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
@@ -3581,7 +3581,7 @@ class nh {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
3583
|
getProps() {
|
|
3584
|
-
const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s =
|
|
3584
|
+
const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = ri, dragMomentum: a = !0 } = t;
|
|
3585
3585
|
return {
|
|
3586
3586
|
...t,
|
|
3587
3587
|
drag: n,
|
|
@@ -3613,7 +3613,7 @@ class ih extends at {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
3615
|
const Yo = (e) => (t, n) => {
|
|
3616
|
-
e &&
|
|
3616
|
+
e && Y.update(() => e(t, n));
|
|
3617
3617
|
};
|
|
3618
3618
|
class oh extends at {
|
|
3619
3619
|
constructor() {
|
|
@@ -3632,7 +3632,7 @@ class oh extends at {
|
|
|
3632
3632
|
onStart: Yo(n),
|
|
3633
3633
|
onMove: r,
|
|
3634
3634
|
onEnd: (o, s) => {
|
|
3635
|
-
delete this.session, i &&
|
|
3635
|
+
delete this.session, i && Y.update(() => i(o, s));
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
3638
|
}
|
|
@@ -3673,7 +3673,7 @@ const Kt = {
|
|
|
3673
3673
|
if (!t.target)
|
|
3674
3674
|
return e;
|
|
3675
3675
|
if (typeof e == "string")
|
|
3676
|
-
if (
|
|
3676
|
+
if (_.test(e))
|
|
3677
3677
|
e = parseFloat(e);
|
|
3678
3678
|
else
|
|
3679
3679
|
return e;
|
|
@@ -3708,7 +3708,7 @@ class lh extends ca.Component {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
getSnapshotBeforeUpdate(t) {
|
|
3710
3710
|
const { layoutDependency: n, visualElement: r, drag: i, isPresent: o } = this.props, s = r.projection;
|
|
3711
|
-
return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() ||
|
|
3711
|
+
return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || Y.postRender(() => {
|
|
3712
3712
|
const a = s.getStack();
|
|
3713
3713
|
(!a || !a.members.length) && this.safeToRemove();
|
|
3714
3714
|
}))), null;
|
|
@@ -3750,7 +3750,7 @@ const ch = {
|
|
|
3750
3750
|
borderBottomLeftRadius: Kt,
|
|
3751
3751
|
borderBottomRightRadius: Kt,
|
|
3752
3752
|
boxShadow: ah
|
|
3753
|
-
}, Dl = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], uh = Dl.length, qo = (e) => typeof e == "string" ? parseFloat(e) : e, Ko = (e) => typeof e == "number" ||
|
|
3753
|
+
}, Dl = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], uh = Dl.length, qo = (e) => typeof e == "string" ? parseFloat(e) : e, Ko = (e) => typeof e == "number" || _.test(e);
|
|
3754
3754
|
function dh(e, t, n, r, i, o) {
|
|
3755
3755
|
i ? (e.opacity = K(
|
|
3756
3756
|
0,
|
|
@@ -3781,7 +3781,7 @@ function Se(e, t) {
|
|
|
3781
3781
|
Zo(e.x, t.x), Zo(e.y, t.y);
|
|
3782
3782
|
}
|
|
3783
3783
|
function Qo(e, t, n, r, i) {
|
|
3784
|
-
return e -= t, e =
|
|
3784
|
+
return e -= t, e = nr(e, 1 / n, r), i !== void 0 && (e = nr(e, 1 / i, r)), e;
|
|
3785
3785
|
}
|
|
3786
3786
|
function ph(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
|
|
3787
3787
|
if (Ve.test(t) && (t = parseFloat(t), t = K(s.min, s.max, t / 100) - s.min), typeof t != "number")
|
|
@@ -3895,7 +3895,7 @@ function wh(e, t) {
|
|
|
3895
3895
|
const o = i - n;
|
|
3896
3896
|
o >= t && (Ge(r), e(o - t));
|
|
3897
3897
|
};
|
|
3898
|
-
return
|
|
3898
|
+
return Y.read(r, !0), () => Ge(r);
|
|
3899
3899
|
}
|
|
3900
3900
|
function Sh(e) {
|
|
3901
3901
|
window.MotionDebug && window.MotionDebug.record(e);
|
|
@@ -3921,7 +3921,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3921
3921
|
this.id = Ah++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
3922
3922
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
3923
3923
|
}, this.updateProjection = () => {
|
|
3924
|
-
this.projectionUpdateScheduled = !1, ht.totalNodes = ht.resolvedTargetDeltas = ht.recalculatedProjection = 0, this.nodes.forEach(kh), this.nodes.forEach(Dh), this.nodes.forEach(Ih), this.nodes.forEach(
|
|
3924
|
+
this.projectionUpdateScheduled = !1, ht.totalNodes = ht.resolvedTargetDeltas = ht.recalculatedProjection = 0, this.nodes.forEach(kh), this.nodes.forEach(Dh), this.nodes.forEach(Ih), this.nodes.forEach(_h), Sh(ht);
|
|
3925
3925
|
}, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
3926
3926
|
for (let l = 0; l < this.path.length; l++)
|
|
3927
3927
|
this.path[l].shouldResetTransform = !0;
|
|
@@ -4022,19 +4022,19 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4022
4022
|
}
|
|
4023
4023
|
this.isUpdating || this.nodes.forEach(Rh), this.isUpdating = !1, this.nodes.forEach(Nh), this.nodes.forEach(Ph), this.nodes.forEach(Oh), this.clearAllSnapshots();
|
|
4024
4024
|
const a = performance.now();
|
|
4025
|
-
se.delta = it(0, 1e3 / 60, a - se.timestamp), se.timestamp = a, se.isProcessing = !0,
|
|
4025
|
+
se.delta = it(0, 1e3 / 60, a - se.timestamp), se.timestamp = a, se.isProcessing = !0, Nr.update.process(se), Nr.preRender.process(se), Nr.render.process(se), se.isProcessing = !1;
|
|
4026
4026
|
}
|
|
4027
4027
|
didUpdate() {
|
|
4028
4028
|
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
|
|
4029
4029
|
}
|
|
4030
4030
|
clearAllSnapshots() {
|
|
4031
|
-
this.nodes.forEach(
|
|
4031
|
+
this.nodes.forEach(Mh), this.sharedNodes.forEach(Lh);
|
|
4032
4032
|
}
|
|
4033
4033
|
scheduleUpdateProjection() {
|
|
4034
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
4034
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Y.preRender(this.updateProjection, !1, !0));
|
|
4035
4035
|
}
|
|
4036
4036
|
scheduleCheckAfterUnmount() {
|
|
4037
|
-
|
|
4037
|
+
Y.postRender(() => {
|
|
4038
4038
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
4039
4039
|
});
|
|
4040
4040
|
}
|
|
@@ -4123,7 +4123,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4123
4123
|
const c = this.path[l];
|
|
4124
4124
|
if (!c.instance || !ft(c.latestValues))
|
|
4125
4125
|
continue;
|
|
4126
|
-
|
|
4126
|
+
ii(c.latestValues) && c.updateSnapshot();
|
|
4127
4127
|
const d = ne(), u = c.measurePageBox();
|
|
4128
4128
|
Se(d, u), es(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, d);
|
|
4129
4129
|
}
|
|
@@ -4159,7 +4159,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4159
4159
|
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), on(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), Se(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4160
4160
|
}
|
|
4161
4161
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4162
|
-
if (this.target || (this.target = ne(), this.targetWithTransforms = ne()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Bf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Se(this.target, this.layout.layoutBox),
|
|
4162
|
+
if (this.target || (this.target = ne(), this.targetWithTransforms = ne()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Bf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Se(this.target, this.layout.layoutBox), _l(this.target, this.targetDelta)) : Se(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4163
4163
|
this.attemptToResolveRelativeTarget = !1;
|
|
4164
4164
|
const p = this.getClosestProjectingParent();
|
|
4165
4165
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), on(this.relativeTargetOrigin, this.target, p.target), Se(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -4169,7 +4169,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
4171
4171
|
getClosestProjectingParent() {
|
|
4172
|
-
if (!(!this.parent ||
|
|
4172
|
+
if (!(!this.parent || ii(this.parent.latestValues) || kl(this.parent.latestValues)))
|
|
4173
4173
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
4174
4174
|
}
|
|
4175
4175
|
isProjecting() {
|
|
@@ -4221,7 +4221,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4221
4221
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4222
4222
|
}
|
|
4223
4223
|
startAnimation(s) {
|
|
4224
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ge(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
4224
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ge(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Y.update(() => {
|
|
4225
4225
|
zn.hasAnimatedSinceResize = !0, this.currentAnimation = Th(0, os, {
|
|
4226
4226
|
...s,
|
|
4227
4227
|
onUpdate: (a) => {
|
|
@@ -4328,10 +4328,10 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4328
4328
|
this.applyTransformsToTarget(), c.transform = rs(this.projectionDeltaWithTransform, this.treeScale, h), d && (c.transform = d(h, c.transform));
|
|
4329
4329
|
const { x: p, y: g } = this.projectionDelta;
|
|
4330
4330
|
c.transformOrigin = `${p.origin * 100}% ${g.origin * 100}% 0`, u.animationValues ? c.opacity = u === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : c.opacity = u === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
4331
|
-
for (const f in
|
|
4331
|
+
for (const f in Kn) {
|
|
4332
4332
|
if (h[f] === void 0)
|
|
4333
4333
|
continue;
|
|
4334
|
-
const { correct: m, applyTo: b } =
|
|
4334
|
+
const { correct: m, applyTo: b } = Kn[f], w = c.transform === "none" ? h[f] : m(h[f], u);
|
|
4335
4335
|
if (b) {
|
|
4336
4336
|
const x = b.length;
|
|
4337
4337
|
for (let S = 0; S < x; S++)
|
|
@@ -4403,10 +4403,10 @@ function Oh(e) {
|
|
|
4403
4403
|
function kh(e) {
|
|
4404
4404
|
ht.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
4405
4405
|
}
|
|
4406
|
-
function
|
|
4406
|
+
function _h(e) {
|
|
4407
4407
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
4408
4408
|
}
|
|
4409
|
-
function
|
|
4409
|
+
function Mh(e) {
|
|
4410
4410
|
e.clearSnapshot();
|
|
4411
4411
|
}
|
|
4412
4412
|
function ss(e) {
|
|
@@ -4457,7 +4457,7 @@ function $h(e) {
|
|
|
4457
4457
|
fs(e.x), fs(e.y);
|
|
4458
4458
|
}
|
|
4459
4459
|
function jl(e, t, n) {
|
|
4460
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
4460
|
+
return e === "position" || e === "preserve-aspect" && !ni(ns(t), ns(n), 0.2);
|
|
4461
4461
|
}
|
|
4462
4462
|
const Bh = zl({
|
|
4463
4463
|
attachResizeListener: (e, t) => We(e, "resize", t),
|
|
@@ -4466,7 +4466,7 @@ const Bh = zl({
|
|
|
4466
4466
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
4467
4467
|
}),
|
|
4468
4468
|
checkIsScrollRoot: () => !0
|
|
4469
|
-
}),
|
|
4469
|
+
}), Ur = {
|
|
4470
4470
|
current: void 0
|
|
4471
4471
|
}, Fl = zl({
|
|
4472
4472
|
measureScroll: (e) => ({
|
|
@@ -4474,11 +4474,11 @@ const Bh = zl({
|
|
|
4474
4474
|
y: e.scrollTop
|
|
4475
4475
|
}),
|
|
4476
4476
|
defaultParent: () => {
|
|
4477
|
-
if (!
|
|
4477
|
+
if (!Ur.current) {
|
|
4478
4478
|
const e = new Bh({});
|
|
4479
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }),
|
|
4479
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), Ur.current = e;
|
|
4480
4480
|
}
|
|
4481
|
-
return
|
|
4481
|
+
return Ur.current;
|
|
4482
4482
|
},
|
|
4483
4483
|
resetTransform: (e, t) => {
|
|
4484
4484
|
e.style.transform = t !== void 0 ? t : "none";
|
|
@@ -4502,7 +4502,7 @@ function Hh(e) {
|
|
|
4502
4502
|
return [n, r];
|
|
4503
4503
|
}
|
|
4504
4504
|
const Yh = 4;
|
|
4505
|
-
function
|
|
4505
|
+
function si(e, t, n = 1) {
|
|
4506
4506
|
Ne(n <= Yh, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
4507
4507
|
const [r, i] = Hh(e);
|
|
4508
4508
|
if (!r)
|
|
@@ -4512,7 +4512,7 @@ function ai(e, t, n = 1) {
|
|
|
4512
4512
|
const s = o.trim();
|
|
4513
4513
|
return Sl(s) ? parseFloat(s) : s;
|
|
4514
4514
|
} else
|
|
4515
|
-
return
|
|
4515
|
+
return Kr(i) ? si(i, t, n + 1) : i;
|
|
4516
4516
|
}
|
|
4517
4517
|
function Gh(e, { ...t }, n) {
|
|
4518
4518
|
const r = e.current;
|
|
@@ -4520,16 +4520,16 @@ function Gh(e, { ...t }, n) {
|
|
|
4520
4520
|
return { target: t, transitionEnd: n };
|
|
4521
4521
|
n && (n = { ...n }), e.values.forEach((i) => {
|
|
4522
4522
|
const o = i.get();
|
|
4523
|
-
if (!
|
|
4523
|
+
if (!Kr(o))
|
|
4524
4524
|
return;
|
|
4525
|
-
const s =
|
|
4525
|
+
const s = si(o, r);
|
|
4526
4526
|
s && i.set(s);
|
|
4527
4527
|
});
|
|
4528
4528
|
for (const i in t) {
|
|
4529
4529
|
const o = t[i];
|
|
4530
|
-
if (!
|
|
4530
|
+
if (!Kr(o))
|
|
4531
4531
|
continue;
|
|
4532
|
-
const s =
|
|
4532
|
+
const s = si(o, r);
|
|
4533
4533
|
s && (t[i] = s, n || (n = {}), n[i] === void 0 && (n[i] = o));
|
|
4534
4534
|
}
|
|
4535
4535
|
return { target: t, transitionEnd: n };
|
|
@@ -4545,7 +4545,7 @@ const qh = /* @__PURE__ */ new Set([
|
|
|
4545
4545
|
"y",
|
|
4546
4546
|
"translateX",
|
|
4547
4547
|
"translateY"
|
|
4548
|
-
]), $l = (e) => qh.has(e), Kh = (e) => Object.keys(e).some($l), Nn = (e) => e === vt || e ===
|
|
4548
|
+
]), $l = (e) => qh.has(e), Kh = (e) => Object.keys(e).some($l), Nn = (e) => e === vt || e === _, hs = (e, t) => parseFloat(e.split(", ")[t]), ps = (e, t) => (n, { transform: r }) => {
|
|
4549
4549
|
if (r === "none" || !r)
|
|
4550
4550
|
return 0;
|
|
4551
4551
|
const i = r.match(/^matrix3d\((.+)\)$/);
|
|
@@ -4599,7 +4599,7 @@ const Jh = (e, t, n) => {
|
|
|
4599
4599
|
let d = n[l], u = qt(d);
|
|
4600
4600
|
const h = t[l];
|
|
4601
4601
|
let p;
|
|
4602
|
-
if (
|
|
4602
|
+
if (Zn(h)) {
|
|
4603
4603
|
const g = h.length, f = h[0] === null ? 1 : 0;
|
|
4604
4604
|
d = h[f], u = qt(d);
|
|
4605
4605
|
for (let m = f; m < g && h[m] !== null; m++)
|
|
@@ -4609,14 +4609,14 @@ const Jh = (e, t, n) => {
|
|
|
4609
4609
|
if (u !== p)
|
|
4610
4610
|
if (Nn(u) && Nn(p)) {
|
|
4611
4611
|
const g = c.get();
|
|
4612
|
-
typeof g == "string" && c.set(parseFloat(g)), typeof h == "string" ? t[l] = parseFloat(h) : Array.isArray(h) && p ===
|
|
4612
|
+
typeof g == "string" && c.set(parseFloat(g)), typeof h == "string" ? t[l] = parseFloat(h) : Array.isArray(h) && p === _ && (t[l] = h.map(parseFloat));
|
|
4613
4613
|
} else
|
|
4614
4614
|
u != null && u.transform && (p != null && p.transform) && (d === 0 || h === 0) ? d === 0 ? c.set(p.transform(d)) : t[l] = u.transform(h) : (s || (o = Qh(e), s = !0), a.push(l), r[l] = r[l] !== void 0 ? r[l] : t[l], c.jump(h));
|
|
4615
4615
|
}), a.length) {
|
|
4616
4616
|
const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = Jh(t, e, a);
|
|
4617
4617
|
return o.length && o.forEach(([d, u]) => {
|
|
4618
4618
|
e.getValue(d).set(u);
|
|
4619
|
-
}), e.render(),
|
|
4619
|
+
}), e.render(), dr && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: r };
|
|
4620
4620
|
} else
|
|
4621
4621
|
return { target: t, transitionEnd: r };
|
|
4622
4622
|
};
|
|
@@ -4626,23 +4626,23 @@ function t1(e, t, n, r) {
|
|
|
4626
4626
|
const n1 = (e, t, n, r) => {
|
|
4627
4627
|
const i = Gh(e, t, r);
|
|
4628
4628
|
return t = i.target, r = i.transitionEnd, t1(e, t, n, r);
|
|
4629
|
-
},
|
|
4629
|
+
}, ai = { current: null }, Bl = { current: !1 };
|
|
4630
4630
|
function r1() {
|
|
4631
|
-
if (Bl.current = !0, !!
|
|
4631
|
+
if (Bl.current = !0, !!dr)
|
|
4632
4632
|
if (window.matchMedia) {
|
|
4633
|
-
const e = window.matchMedia("(prefers-reduced-motion)"), t = () =>
|
|
4633
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => ai.current = e.matches;
|
|
4634
4634
|
e.addListener(t), t();
|
|
4635
4635
|
} else
|
|
4636
|
-
|
|
4636
|
+
ai.current = !1;
|
|
4637
4637
|
}
|
|
4638
4638
|
function i1(e, t, n) {
|
|
4639
4639
|
const { willChange: r } = t;
|
|
4640
4640
|
for (const i in t) {
|
|
4641
4641
|
const o = t[i], s = n[i];
|
|
4642
4642
|
if (pe(o))
|
|
4643
|
-
e.addValue(i, o),
|
|
4643
|
+
e.addValue(i, o), tr(r) && r.add(i), process.env.NODE_ENV === "development" && Li(o.version === "10.18.0", `Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);
|
|
4644
4644
|
else if (pe(s))
|
|
4645
|
-
e.addValue(i, Lt(o, { owner: e })),
|
|
4645
|
+
e.addValue(i, Lt(o, { owner: e })), tr(r) && r.remove(i);
|
|
4646
4646
|
else if (s !== o)
|
|
4647
4647
|
if (e.hasValue(i)) {
|
|
4648
4648
|
const a = e.getValue(i);
|
|
@@ -4669,13 +4669,13 @@ class a1 {
|
|
|
4669
4669
|
constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, visualState: o }, s = {}) {
|
|
4670
4670
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
4671
4671
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
4672
|
-
}, this.scheduleRender = () =>
|
|
4672
|
+
}, this.scheduleRender = () => Y.render(this.render, !1, !0);
|
|
4673
4673
|
const { latestValues: a, renderState: l } = o;
|
|
4674
|
-
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.isControllingVariants =
|
|
4674
|
+
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.isControllingVariants = hr(n), this.isVariantNode = Pa(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
4675
4675
|
const { willChange: c, ...d } = this.scrapeMotionValuesFromProps(n, {});
|
|
4676
4676
|
for (const u in d) {
|
|
4677
4677
|
const h = d[u];
|
|
4678
|
-
a[u] !== void 0 && pe(h) && (h.set(a[u], !1),
|
|
4678
|
+
a[u] !== void 0 && pe(h) && (h.set(a[u], !1), tr(c) && c.add(u));
|
|
4679
4679
|
}
|
|
4680
4680
|
}
|
|
4681
4681
|
/**
|
|
@@ -4689,7 +4689,7 @@ class a1 {
|
|
|
4689
4689
|
return {};
|
|
4690
4690
|
}
|
|
4691
4691
|
mount(t) {
|
|
4692
|
-
this.current = t, ms.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Bl.current || r1(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 :
|
|
4692
|
+
this.current = t, ms.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Bl.current || r1(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ai.current, process.env.NODE_ENV !== "production" && Li(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
4693
4693
|
}
|
|
4694
4694
|
unmount() {
|
|
4695
4695
|
ms.delete(this.current), this.projection && this.projection.unmount(), Ge(this.notifyUpdate), Ge(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -4701,7 +4701,7 @@ class a1 {
|
|
|
4701
4701
|
}
|
|
4702
4702
|
bindToMotionValue(t, n) {
|
|
4703
4703
|
const r = yt.has(t), i = n.on("change", (s) => {
|
|
4704
|
-
this.latestValues[t] = s, this.props.onUpdate &&
|
|
4704
|
+
this.latestValues[t] = s, this.props.onUpdate && Y.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
4705
4705
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
4706
4706
|
this.valueSubscriptions.set(t, () => {
|
|
4707
4707
|
i(), o();
|
|
@@ -4726,7 +4726,7 @@ class a1 {
|
|
|
4726
4726
|
this.projection.setOptions({
|
|
4727
4727
|
layoutId: l,
|
|
4728
4728
|
layout: c,
|
|
4729
|
-
alwaysMeasureLayout: !!d || u &&
|
|
4729
|
+
alwaysMeasureLayout: !!d || u && _t(u),
|
|
4730
4730
|
visualElement: this,
|
|
4731
4731
|
scheduleRender: () => this.scheduleRender(),
|
|
4732
4732
|
/**
|
|
@@ -4928,7 +4928,7 @@ class c1 extends Ul {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
readValueFromInstance(t, n) {
|
|
4930
4930
|
if (yt.has(n)) {
|
|
4931
|
-
const r =
|
|
4931
|
+
const r = Mi(n);
|
|
4932
4932
|
return r && r.default || 0;
|
|
4933
4933
|
} else {
|
|
4934
4934
|
const r = l1(t), i = (Ra(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
@@ -4936,7 +4936,7 @@ class c1 extends Ul {
|
|
|
4936
4936
|
}
|
|
4937
4937
|
}
|
|
4938
4938
|
measureInstanceViewportBox(t, { transformPagePoint: n }) {
|
|
4939
|
-
return
|
|
4939
|
+
return Ml(t, n);
|
|
4940
4940
|
}
|
|
4941
4941
|
build(t, n, r, i) {
|
|
4942
4942
|
Si(t, n, r, i.transformTemplate);
|
|
@@ -4964,7 +4964,7 @@ class u1 extends Ul {
|
|
|
4964
4964
|
}
|
|
4965
4965
|
readValueFromInstance(t, n) {
|
|
4966
4966
|
if (yt.has(n)) {
|
|
4967
|
-
const r =
|
|
4967
|
+
const r = Mi(n);
|
|
4968
4968
|
return r && r.default || 0;
|
|
4969
4969
|
}
|
|
4970
4970
|
return n = ja.has(n) ? n : yi(n), t.getAttribute(n);
|
|
@@ -5018,7 +5018,7 @@ function m1(e) {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
function g1(e) {
|
|
5020
5020
|
const { children: t, parentRef: n, onlyChild: r } = e, [i, o] = J({ top: 0, left: 0 });
|
|
5021
|
-
return
|
|
5021
|
+
return mi(() => {
|
|
5022
5022
|
if (n.current) {
|
|
5023
5023
|
const s = n.current.getBoundingClientRect();
|
|
5024
5024
|
o({
|
|
@@ -5043,35 +5043,8 @@ function g1(e) {
|
|
|
5043
5043
|
);
|
|
5044
5044
|
}
|
|
5045
5045
|
function Hl({ item: e, level: t = 0, ...n }) {
|
|
5046
|
-
var
|
|
5047
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", d = (
|
|
5048
|
-
function f(C) {
|
|
5049
|
-
var I;
|
|
5050
|
-
const { level: A, hovered: N, parentRef: _ } = C;
|
|
5051
|
-
return !u || i && A >= 2 && !N ? null : /* @__PURE__ */ v(
|
|
5052
|
-
g1,
|
|
5053
|
-
{
|
|
5054
|
-
parentRef: _,
|
|
5055
|
-
onlyChild: !i || i && A < 2,
|
|
5056
|
-
children: /* @__PURE__ */ v(
|
|
5057
|
-
p1.div,
|
|
5058
|
-
{
|
|
5059
|
-
className: d("menu-item__dropdown", `level-${A}`),
|
|
5060
|
-
initial: {
|
|
5061
|
-
height: i || o(e.id) ? "auto" : 0
|
|
5062
|
-
},
|
|
5063
|
-
animate: {
|
|
5064
|
-
height: i || o(e.id) ? "auto" : 0
|
|
5065
|
-
},
|
|
5066
|
-
transition: { duration: 0.2 },
|
|
5067
|
-
children: (I = e.children) == null ? void 0 : I.map((U) => /* @__PURE__ */ en(Hl, { ...n, key: U.id, item: U, level: A }))
|
|
5068
|
-
},
|
|
5069
|
-
+i
|
|
5070
|
-
)
|
|
5071
|
-
}
|
|
5072
|
-
);
|
|
5073
|
-
}
|
|
5074
|
-
const m = window.location.origin, b = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, w = window.location.pathname.split("/")[1], x = b.pathname.split("/")[1], S = n.ssr || !m.includes("local") && m !== b.origin || x !== w, y = u ? "div" : S ? "a" : tu, E = e.path || "#";
|
|
5046
|
+
var P, N;
|
|
5047
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", d = (k, I = a) => `${k} ${I} ${l} ${c}`, u = !!((P = e.children) != null && P.length), [h, p] = J(!1), g = Ye(), f = window.location.origin, m = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, b = window.location.pathname.split("/")[1], w = m.pathname.split("/")[1], x = n.ssr || !f.includes("local") && f !== m.origin || w !== b, S = u ? "div" : x ? "a" : tu, y = e.path || "#", E = t + 1, T = u && !(i && E >= 2 && !h), C = i || t === 0 ? void 0 : `${t}rem`;
|
|
5075
5048
|
return /* @__PURE__ */ R(
|
|
5076
5049
|
"div",
|
|
5077
5050
|
{
|
|
@@ -5081,16 +5054,18 @@ function Hl({ item: e, level: t = 0, ...n }) {
|
|
|
5081
5054
|
onMouseLeave: () => i && p(!1),
|
|
5082
5055
|
children: [
|
|
5083
5056
|
/* @__PURE__ */ R(
|
|
5084
|
-
|
|
5057
|
+
S,
|
|
5085
5058
|
{
|
|
5086
|
-
to:
|
|
5087
|
-
href:
|
|
5059
|
+
to: y,
|
|
5060
|
+
href: y,
|
|
5088
5061
|
style: {
|
|
5089
|
-
paddingLeft:
|
|
5062
|
+
paddingLeft: C,
|
|
5063
|
+
transition: "all 0.3s"
|
|
5064
|
+
// transitionDelay: '0.1s',
|
|
5090
5065
|
},
|
|
5091
5066
|
className: d("menu-item__link"),
|
|
5092
|
-
onClick: (
|
|
5093
|
-
u && (
|
|
5067
|
+
onClick: (k) => {
|
|
5068
|
+
u && (k.preventDefault(), i || s(e.id));
|
|
5094
5069
|
},
|
|
5095
5070
|
children: [
|
|
5096
5071
|
t !== 0 && /* @__PURE__ */ v(y1, { cls: d, item: e }),
|
|
@@ -5106,10 +5081,37 @@ function Hl({ item: e, level: t = 0, ...n }) {
|
|
|
5106
5081
|
]
|
|
5107
5082
|
}
|
|
5108
5083
|
),
|
|
5109
|
-
|
|
5084
|
+
T && /* @__PURE__ */ v(
|
|
5085
|
+
g1,
|
|
5086
|
+
{
|
|
5087
|
+
parentRef: g,
|
|
5088
|
+
onlyChild: !i || i && E < 2,
|
|
5089
|
+
children: /* @__PURE__ */ v(
|
|
5090
|
+
p1.div,
|
|
5091
|
+
{
|
|
5092
|
+
className: d("menu-item__dropdown", `level-${E}`),
|
|
5093
|
+
initial: {
|
|
5094
|
+
height: i || o(e.id) ? "auto" : 0
|
|
5095
|
+
},
|
|
5096
|
+
animate: {
|
|
5097
|
+
height: i || o(e.id) ? "auto" : 0
|
|
5098
|
+
},
|
|
5099
|
+
transition: { duration: 0.25 },
|
|
5100
|
+
children: (N = e.children) == null ? void 0 : N.map((k) => /* @__PURE__ */ en(
|
|
5101
|
+
Hl,
|
|
5102
|
+
{
|
|
5103
|
+
...n,
|
|
5104
|
+
key: k.id,
|
|
5105
|
+
item: k,
|
|
5106
|
+
level: E
|
|
5107
|
+
}
|
|
5108
|
+
))
|
|
5109
|
+
}
|
|
5110
|
+
)
|
|
5111
|
+
}
|
|
5112
|
+
)
|
|
5110
5113
|
]
|
|
5111
|
-
}
|
|
5112
|
-
e.id
|
|
5114
|
+
}
|
|
5113
5115
|
);
|
|
5114
5116
|
}
|
|
5115
5117
|
function y1({ item: e, cls: t }) {
|
|
@@ -5137,7 +5139,7 @@ function y1({ item: e, cls: t }) {
|
|
|
5137
5139
|
src: e.icon,
|
|
5138
5140
|
beforeInjection: (l) => {
|
|
5139
5141
|
l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((d) => {
|
|
5140
|
-
d.setAttribute("stroke", "currentColor");
|
|
5142
|
+
d.hasAttribute("fill") && d.setAttribute("fill", "currentColor"), d.hasAttribute("stroke") && d.setAttribute("stroke", "currentColor");
|
|
5141
5143
|
});
|
|
5142
5144
|
}
|
|
5143
5145
|
}
|
|
@@ -5203,20 +5205,12 @@ function x1(e) {
|
|
|
5203
5205
|
}
|
|
5204
5206
|
);
|
|
5205
5207
|
}
|
|
5206
|
-
const w1 = `.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s
|
|
5208
|
+
const w1 = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}
|
|
5207
5209
|
`;
|
|
5208
|
-
function w3(e) {
|
|
5209
|
-
return /* @__PURE__ */ v(
|
|
5210
|
-
ha,
|
|
5211
|
-
{
|
|
5212
|
-
styles: [nd, w1],
|
|
5213
|
-
style: { position: "sticky", zIndex: 1200 },
|
|
5214
|
-
children: /* @__PURE__ */ v(S1, { ...e })
|
|
5215
|
-
}
|
|
5216
|
-
);
|
|
5217
|
-
}
|
|
5218
5210
|
function S1(e) {
|
|
5219
|
-
const { baseUrl: t, menuPath: n } = e, r = nu(), [i, o] = J([]), [s, a] = J(
|
|
5211
|
+
const { baseUrl: t, menuPath: n } = e, r = nu(), [i, o] = J([]), [s, a] = J(
|
|
5212
|
+
localStorage.getItem("isCollapsed") === "true"
|
|
5213
|
+
), [l, c] = J({}), d = zi(i), [u, h] = J(window.location.href);
|
|
5220
5214
|
Re(() => {
|
|
5221
5215
|
h(window.location.href);
|
|
5222
5216
|
}, [r]);
|
|
@@ -5230,22 +5224,22 @@ function S1(e) {
|
|
|
5230
5224
|
[y]: !l[y]
|
|
5231
5225
|
});
|
|
5232
5226
|
}, f = () => {
|
|
5233
|
-
a(!s);
|
|
5227
|
+
a(!s), localStorage.setItem("isCollapsed", JSON.stringify(!s));
|
|
5234
5228
|
};
|
|
5235
|
-
|
|
5229
|
+
mi(() => {
|
|
5236
5230
|
(async () => {
|
|
5237
5231
|
var E, T;
|
|
5238
5232
|
try {
|
|
5239
|
-
const
|
|
5233
|
+
const P = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data: N } = await eu.get(P, {
|
|
5240
5234
|
withCredentials: !0
|
|
5241
5235
|
});
|
|
5242
|
-
let
|
|
5243
|
-
...
|
|
5236
|
+
let k = N.map((q) => ({
|
|
5237
|
+
...q,
|
|
5244
5238
|
parentKey: 0
|
|
5245
5239
|
}));
|
|
5246
|
-
|
|
5247
|
-
const I = T1(
|
|
5248
|
-
c(I), o(
|
|
5240
|
+
k = ql(k), e.replacePath && (k = Gl(k, e.replacePath));
|
|
5241
|
+
const I = T1(k);
|
|
5242
|
+
c(I), o(k);
|
|
5249
5243
|
} catch (C) {
|
|
5250
5244
|
console.log(C), Fc(
|
|
5251
5245
|
((T = (E = C.response) == null ? void 0 : E.data) == null ? void 0 : T.errorMessage) || "Have error when get menu items"
|
|
@@ -5254,24 +5248,8 @@ function S1(e) {
|
|
|
5254
5248
|
})();
|
|
5255
5249
|
}, [t, n, e.replacePath]);
|
|
5256
5250
|
const [m, b] = J(!1), w = s ? "collapsed" : "expanded", x = (y) => `${y} ${w}`, S = Ye(null);
|
|
5257
|
-
return
|
|
5258
|
-
|
|
5259
|
-
const y = localStorage.getItem("scrollPos");
|
|
5260
|
-
y && S.current && setTimeout(() => {
|
|
5261
|
-
const A = S.current.getScrollElement();
|
|
5262
|
-
A.scrollTop = parseInt(y);
|
|
5263
|
-
}, 0);
|
|
5264
|
-
const E = () => {
|
|
5265
|
-
if (S.current) {
|
|
5266
|
-
const A = S.current.getScrollElement();
|
|
5267
|
-
localStorage.setItem("scrollPos", A.scrollTop.toString());
|
|
5268
|
-
}
|
|
5269
|
-
}, T = (C = S.current) == null ? void 0 : C.getScrollElement();
|
|
5270
|
-
return T == null || T.addEventListener("scroll", E), () => {
|
|
5271
|
-
T == null || T.removeEventListener("scroll", E);
|
|
5272
|
-
};
|
|
5273
|
-
}, [i]), /* @__PURE__ */ R("div", { className: x("side-bar"), children: [
|
|
5274
|
-
/* @__PURE__ */ v("div", { className: x("side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ v(
|
|
5251
|
+
return /* @__PURE__ */ R("div", { className: x("side-bar"), children: [
|
|
5252
|
+
/* @__PURE__ */ v("div", { className: x("wrap-section side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ v(
|
|
5275
5253
|
"button",
|
|
5276
5254
|
{
|
|
5277
5255
|
className: "icon-btn side-bar__toggle-btn",
|
|
@@ -5283,7 +5261,7 @@ function S1(e) {
|
|
|
5283
5261
|
Ea,
|
|
5284
5262
|
{
|
|
5285
5263
|
ref: S,
|
|
5286
|
-
className: x("side-bar__menu"),
|
|
5264
|
+
className: x("wrap-section side-bar__menu"),
|
|
5287
5265
|
style: {
|
|
5288
5266
|
marginTop: 24,
|
|
5289
5267
|
flex: 1,
|
|
@@ -5306,14 +5284,14 @@ function S1(e) {
|
|
|
5306
5284
|
))
|
|
5307
5285
|
}
|
|
5308
5286
|
),
|
|
5309
|
-
/* @__PURE__ */ R("div", { className: x("side-bar__wrap-btn-logout"), children: [
|
|
5287
|
+
/* @__PURE__ */ R("div", { className: x("wrap-section side-bar__wrap-btn-logout"), children: [
|
|
5310
5288
|
/* @__PURE__ */ R(
|
|
5311
5289
|
"button",
|
|
5312
5290
|
{
|
|
5313
5291
|
className: x("side-bar__logout-btn"),
|
|
5314
5292
|
onClick: () => b(!0),
|
|
5315
5293
|
children: [
|
|
5316
|
-
/* @__PURE__ */ v(x1, {}),
|
|
5294
|
+
/* @__PURE__ */ v(x1, { className: x("side-bar__icon-logout") }),
|
|
5317
5295
|
/* @__PURE__ */ v("span", { className: x("side-bar__logout-btn__text"), children: "Logout" })
|
|
5318
5296
|
]
|
|
5319
5297
|
}
|
|
@@ -5373,8 +5351,18 @@ function T1(e) {
|
|
|
5373
5351
|
(o = i.children) != null && o.length && (r[i.id] = !0);
|
|
5374
5352
|
}), r;
|
|
5375
5353
|
}
|
|
5354
|
+
function w3(e) {
|
|
5355
|
+
return /* @__PURE__ */ v(
|
|
5356
|
+
ha,
|
|
5357
|
+
{
|
|
5358
|
+
styles: [nd, w1],
|
|
5359
|
+
style: { position: "sticky", zIndex: 1200 },
|
|
5360
|
+
children: /* @__PURE__ */ v(S1, { ...e })
|
|
5361
|
+
}
|
|
5362
|
+
);
|
|
5363
|
+
}
|
|
5376
5364
|
const S3 = ({ children: e }) => /* @__PURE__ */ R(
|
|
5377
|
-
|
|
5365
|
+
_e,
|
|
5378
5366
|
{
|
|
5379
5367
|
justifyContent: "center",
|
|
5380
5368
|
alignItems: "center",
|
|
@@ -5725,7 +5713,7 @@ function E3(e) {
|
|
|
5725
5713
|
!e.hideTitle && /* @__PURE__ */ R(
|
|
5726
5714
|
ou,
|
|
5727
5715
|
{
|
|
5728
|
-
component:
|
|
5716
|
+
component: _e,
|
|
5729
5717
|
sx: { ...e.titleProps, textAlign: "center" },
|
|
5730
5718
|
children: [
|
|
5731
5719
|
typeof e.title == "string" ? /* @__PURE__ */ v(pt, { variant: "h4", children: e.title }) : e.title,
|
|
@@ -5765,7 +5753,7 @@ function E3(e) {
|
|
|
5765
5753
|
pb: 3,
|
|
5766
5754
|
...(t = e.dialogActionsProps) == null ? void 0 : t.sx
|
|
5767
5755
|
},
|
|
5768
|
-
children: e.customActions ? e.customActions : /* @__PURE__ */ R(
|
|
5756
|
+
children: e.customActions ? e.customActions : /* @__PURE__ */ R(lr, { children: [
|
|
5769
5757
|
!e.hideClose && /* @__PURE__ */ v(oo, { color: "error", onClick: e.onClose, children: "Close" }),
|
|
5770
5758
|
!e.hideConfirm && /* @__PURE__ */ v(oo, { color: "primary", onClick: e.onConfirm, children: "Submit" })
|
|
5771
5759
|
] })
|
|
@@ -5889,7 +5877,7 @@ function Le(e, t, n = {
|
|
|
5889
5877
|
i !== "__proto__" && (tt(t[i]) && i in e && tt(e[i]) ? r[i] = Le(e[i], t[i], n) : n.clone ? r[i] = tt(t[i]) ? Kl(t[i]) : t[i] : r[i] = t[i]);
|
|
5890
5878
|
}), r;
|
|
5891
5879
|
}
|
|
5892
|
-
const
|
|
5880
|
+
const _1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5893
5881
|
__proto__: null,
|
|
5894
5882
|
default: Le,
|
|
5895
5883
|
isPlainObject: tt
|
|
@@ -5900,11 +5888,11 @@ function un(e) {
|
|
|
5900
5888
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
5901
5889
|
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
5902
5890
|
}
|
|
5903
|
-
const
|
|
5891
|
+
const M1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5904
5892
|
__proto__: null,
|
|
5905
5893
|
default: un
|
|
5906
5894
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5907
|
-
var
|
|
5895
|
+
var li = { exports: {} }, z = {};
|
|
5908
5896
|
/**
|
|
5909
5897
|
* @license React
|
|
5910
5898
|
* react-is.production.min.js
|
|
@@ -6037,7 +6025,7 @@ function N1() {
|
|
|
6037
6025
|
}
|
|
6038
6026
|
}
|
|
6039
6027
|
}
|
|
6040
|
-
var E = s, T = o, C = e,
|
|
6028
|
+
var E = s, T = o, C = e, P = l, N = n, k = h, I = u, q = t, U = i, de = r, H = c, ae = d, le = !1, ge = !1;
|
|
6041
6029
|
function De(O) {
|
|
6042
6030
|
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6043
6031
|
}
|
|
@@ -6074,17 +6062,17 @@ function N1() {
|
|
|
6074
6062
|
function ke(O) {
|
|
6075
6063
|
return y(O) === r;
|
|
6076
6064
|
}
|
|
6077
|
-
function
|
|
6065
|
+
function A(O) {
|
|
6078
6066
|
return y(O) === c;
|
|
6079
6067
|
}
|
|
6080
6068
|
function Yt(O) {
|
|
6081
6069
|
return y(O) === d;
|
|
6082
6070
|
}
|
|
6083
|
-
j.ContextConsumer = E, j.ContextProvider = T, j.Element = C, j.ForwardRef =
|
|
6071
|
+
j.ContextConsumer = E, j.ContextProvider = T, j.Element = C, j.ForwardRef = P, j.Fragment = N, j.Lazy = k, j.Memo = I, j.Portal = q, j.Profiler = U, j.StrictMode = de, j.Suspense = H, j.SuspenseList = ae, j.isAsyncMode = De, j.isConcurrentMode = B, j.isContextConsumer = Oe, j.isContextProvider = Fe, j.isElement = we, j.isForwardRef = $e, j.isFragment = Be, j.isLazy = xt, j.isMemo = Ht, j.isPortal = ct, j.isProfiler = Ke, j.isStrictMode = ke, j.isSuspense = A, j.isSuspenseList = Yt, j.isValidElementType = S, j.typeOf = y;
|
|
6084
6072
|
}()), j;
|
|
6085
6073
|
}
|
|
6086
|
-
process.env.NODE_ENV === "production" ?
|
|
6087
|
-
var bs =
|
|
6074
|
+
process.env.NODE_ENV === "production" ? li.exports = R1() : li.exports = N1();
|
|
6075
|
+
var bs = li.exports;
|
|
6088
6076
|
const D1 = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
6089
6077
|
function Xl(e) {
|
|
6090
6078
|
const t = `${e}`.match(D1);
|
|
@@ -6326,7 +6314,7 @@ function J1(e, t) {
|
|
|
6326
6314
|
return (!i || Object.keys(i).length === 0) && delete n[r], n;
|
|
6327
6315
|
}, t);
|
|
6328
6316
|
}
|
|
6329
|
-
function
|
|
6317
|
+
function yr(e, t, n = !0) {
|
|
6330
6318
|
if (!t || typeof t != "string")
|
|
6331
6319
|
return null;
|
|
6332
6320
|
if (e && e.vars && n) {
|
|
@@ -6336,9 +6324,9 @@ function vr(e, t, n = !0) {
|
|
|
6336
6324
|
}
|
|
6337
6325
|
return t.split(".").reduce((r, i) => r && r[i] != null ? r[i] : null, e);
|
|
6338
6326
|
}
|
|
6339
|
-
function
|
|
6327
|
+
function rr(e, t, n, r = n) {
|
|
6340
6328
|
let i;
|
|
6341
|
-
return typeof e == "function" ? i = e(n) : Array.isArray(e) ? i = e[n] || r : i =
|
|
6329
|
+
return typeof e == "function" ? i = e(n) : Array.isArray(e) ? i = e[n] || r : i = yr(e, n) || r, t && (i = t(i, r, e)), i;
|
|
6342
6330
|
}
|
|
6343
6331
|
function ee(e) {
|
|
6344
6332
|
const {
|
|
@@ -6349,10 +6337,10 @@ function ee(e) {
|
|
|
6349
6337
|
} = e, o = (s) => {
|
|
6350
6338
|
if (s[t] == null)
|
|
6351
6339
|
return null;
|
|
6352
|
-
const a = s[t], l = s.theme, c =
|
|
6340
|
+
const a = s[t], l = s.theme, c = yr(l, r) || {};
|
|
6353
6341
|
return qe(s, a, (u) => {
|
|
6354
|
-
let h =
|
|
6355
|
-
return u === h && typeof u == "string" && (h =
|
|
6342
|
+
let h = rr(c, i, u);
|
|
6343
|
+
return u === h && typeof u == "string" && (h = rr(c, i, `${t}${u === "default" ? "" : gt(u)}`, u)), n === !1 ? h : {
|
|
6356
6344
|
[n]: h
|
|
6357
6345
|
};
|
|
6358
6346
|
});
|
|
@@ -6388,10 +6376,10 @@ const tp = {
|
|
|
6388
6376
|
return [e];
|
|
6389
6377
|
const [t, n] = e.split(""), r = tp[t], i = np[n] || "";
|
|
6390
6378
|
return Array.isArray(i) ? i.map((o) => r + o) : [r + i];
|
|
6391
|
-
}),
|
|
6379
|
+
}), vr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], br = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], ip = [...vr, ...br];
|
|
6392
6380
|
function xn(e, t, n, r) {
|
|
6393
6381
|
var i;
|
|
6394
|
-
const o = (i =
|
|
6382
|
+
const o = (i = yr(e, t, !1)) != null ? i : n;
|
|
6395
6383
|
return typeof o == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`), o * s) : Array.isArray(o) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > o.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${s} > ${o.length - 1}, you need to add the missing values.`].join(`
|
|
6396
6384
|
`)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
6397
6385
|
`))), o[s]) : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
@@ -6421,15 +6409,15 @@ function tc(e, t) {
|
|
|
6421
6409
|
return Object.keys(e).map((r) => sp(e, t, r, n)).reduce(sn, {});
|
|
6422
6410
|
}
|
|
6423
6411
|
function X(e) {
|
|
6424
|
-
return tc(e,
|
|
6412
|
+
return tc(e, vr);
|
|
6425
6413
|
}
|
|
6426
|
-
X.propTypes = process.env.NODE_ENV !== "production" ?
|
|
6427
|
-
X.filterProps =
|
|
6414
|
+
X.propTypes = process.env.NODE_ENV !== "production" ? vr.reduce((e, t) => (e[t] = lt, e), {}) : {};
|
|
6415
|
+
X.filterProps = vr;
|
|
6428
6416
|
function Z(e) {
|
|
6429
|
-
return tc(e,
|
|
6417
|
+
return tc(e, br);
|
|
6430
6418
|
}
|
|
6431
|
-
Z.propTypes = process.env.NODE_ENV !== "production" ?
|
|
6432
|
-
Z.filterProps =
|
|
6419
|
+
Z.propTypes = process.env.NODE_ENV !== "production" ? br.reduce((e, t) => (e[t] = lt, e), {}) : {};
|
|
6420
|
+
Z.filterProps = br;
|
|
6433
6421
|
process.env.NODE_ENV !== "production" && ip.reduce((e, t) => (e[t] = lt, e), {});
|
|
6434
6422
|
function ap(e = 8) {
|
|
6435
6423
|
if (e.mui)
|
|
@@ -6442,7 +6430,7 @@ function ap(e = 8) {
|
|
|
6442
6430
|
}).join(" "));
|
|
6443
6431
|
return n.mui = !0, n;
|
|
6444
6432
|
}
|
|
6445
|
-
function
|
|
6433
|
+
function xr(...e) {
|
|
6446
6434
|
const t = e.reduce((r, i) => (i.filterProps.forEach((o) => {
|
|
6447
6435
|
r[o] = i;
|
|
6448
6436
|
}), r), {}), n = (r) => Object.keys(r).reduce((i, o) => t[o] ? sn(i, t[o](r)) : i, {});
|
|
@@ -6458,7 +6446,7 @@ function Pe(e, t) {
|
|
|
6458
6446
|
transform: t
|
|
6459
6447
|
});
|
|
6460
6448
|
}
|
|
6461
|
-
const lp = Pe("border", Ce), cp = Pe("borderTop", Ce), up = Pe("borderRight", Ce), dp = Pe("borderBottom", Ce), fp = Pe("borderLeft", Ce), hp = Pe("borderColor"), pp = Pe("borderTopColor"), mp = Pe("borderRightColor"), gp = Pe("borderBottomColor"), yp = Pe("borderLeftColor"), vp = Pe("outline", Ce), bp = Pe("outlineColor"),
|
|
6449
|
+
const lp = Pe("border", Ce), cp = Pe("borderTop", Ce), up = Pe("borderRight", Ce), dp = Pe("borderBottom", Ce), fp = Pe("borderLeft", Ce), hp = Pe("borderColor"), pp = Pe("borderTopColor"), mp = Pe("borderRightColor"), gp = Pe("borderBottomColor"), yp = Pe("borderLeftColor"), vp = Pe("outline", Ce), bp = Pe("outlineColor"), wr = (e) => {
|
|
6462
6450
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
6463
6451
|
const t = xn(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({
|
|
6464
6452
|
borderRadius: wn(t, r)
|
|
@@ -6467,12 +6455,12 @@ const lp = Pe("border", Ce), cp = Pe("borderTop", Ce), up = Pe("borderRight", Ce
|
|
|
6467
6455
|
}
|
|
6468
6456
|
return null;
|
|
6469
6457
|
};
|
|
6470
|
-
|
|
6458
|
+
wr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6471
6459
|
borderRadius: lt
|
|
6472
6460
|
} : {};
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
const
|
|
6461
|
+
wr.filterProps = ["borderRadius"];
|
|
6462
|
+
xr(lp, cp, up, dp, fp, hp, pp, mp, gp, yp, wr, vp, bp);
|
|
6463
|
+
const Sr = (e) => {
|
|
6476
6464
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
6477
6465
|
const t = xn(e.theme, "spacing", 8, "gap"), n = (r) => ({
|
|
6478
6466
|
gap: wn(t, r)
|
|
@@ -6481,11 +6469,11 @@ const Er = (e) => {
|
|
|
6481
6469
|
}
|
|
6482
6470
|
return null;
|
|
6483
6471
|
};
|
|
6484
|
-
|
|
6472
|
+
Sr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6485
6473
|
gap: lt
|
|
6486
6474
|
} : {};
|
|
6487
|
-
|
|
6488
|
-
const
|
|
6475
|
+
Sr.filterProps = ["gap"];
|
|
6476
|
+
const Er = (e) => {
|
|
6489
6477
|
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
6490
6478
|
const t = xn(e.theme, "spacing", 8, "columnGap"), n = (r) => ({
|
|
6491
6479
|
columnGap: wn(t, r)
|
|
@@ -6494,11 +6482,11 @@ const Tr = (e) => {
|
|
|
6494
6482
|
}
|
|
6495
6483
|
return null;
|
|
6496
6484
|
};
|
|
6497
|
-
|
|
6485
|
+
Er.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6498
6486
|
columnGap: lt
|
|
6499
6487
|
} : {};
|
|
6500
|
-
|
|
6501
|
-
const
|
|
6488
|
+
Er.filterProps = ["columnGap"];
|
|
6489
|
+
const Tr = (e) => {
|
|
6502
6490
|
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
6503
6491
|
const t = xn(e.theme, "spacing", 8, "rowGap"), n = (r) => ({
|
|
6504
6492
|
rowGap: wn(t, r)
|
|
@@ -6507,10 +6495,10 @@ const Cr = (e) => {
|
|
|
6507
6495
|
}
|
|
6508
6496
|
return null;
|
|
6509
6497
|
};
|
|
6510
|
-
|
|
6498
|
+
Tr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6511
6499
|
rowGap: lt
|
|
6512
6500
|
} : {};
|
|
6513
|
-
|
|
6501
|
+
Tr.filterProps = ["rowGap"];
|
|
6514
6502
|
const xp = ee({
|
|
6515
6503
|
prop: "gridColumn"
|
|
6516
6504
|
}), wp = ee({
|
|
@@ -6530,7 +6518,7 @@ const xp = ee({
|
|
|
6530
6518
|
}), Op = ee({
|
|
6531
6519
|
prop: "gridArea"
|
|
6532
6520
|
});
|
|
6533
|
-
|
|
6521
|
+
xr(Sr, Er, Tr, xp, wp, Sp, Ep, Tp, Cp, Ap, Pp, Op);
|
|
6534
6522
|
function It(e, t) {
|
|
6535
6523
|
return t === "grey" ? t : e;
|
|
6536
6524
|
}
|
|
@@ -6538,17 +6526,17 @@ const kp = ee({
|
|
|
6538
6526
|
prop: "color",
|
|
6539
6527
|
themeKey: "palette",
|
|
6540
6528
|
transform: It
|
|
6541
|
-
}),
|
|
6529
|
+
}), _p = ee({
|
|
6542
6530
|
prop: "bgcolor",
|
|
6543
6531
|
cssProperty: "backgroundColor",
|
|
6544
6532
|
themeKey: "palette",
|
|
6545
6533
|
transform: It
|
|
6546
|
-
}),
|
|
6534
|
+
}), Mp = ee({
|
|
6547
6535
|
prop: "backgroundColor",
|
|
6548
6536
|
themeKey: "palette",
|
|
6549
6537
|
transform: It
|
|
6550
6538
|
});
|
|
6551
|
-
|
|
6539
|
+
xr(kp, _p, Mp);
|
|
6552
6540
|
function ve(e) {
|
|
6553
6541
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
6554
6542
|
}
|
|
@@ -6599,7 +6587,7 @@ ee({
|
|
|
6599
6587
|
const Lp = ee({
|
|
6600
6588
|
prop: "boxSizing"
|
|
6601
6589
|
});
|
|
6602
|
-
|
|
6590
|
+
xr(Rp, $i, Np, Dp, Ip, Vp, Lp);
|
|
6603
6591
|
const zp = {
|
|
6604
6592
|
// borders
|
|
6605
6593
|
border: {
|
|
@@ -6646,7 +6634,7 @@ const zp = {
|
|
|
6646
6634
|
},
|
|
6647
6635
|
borderRadius: {
|
|
6648
6636
|
themeKey: "shape.borderRadius",
|
|
6649
|
-
style:
|
|
6637
|
+
style: wr
|
|
6650
6638
|
},
|
|
6651
6639
|
// palette
|
|
6652
6640
|
color: {
|
|
@@ -6813,13 +6801,13 @@ const zp = {
|
|
|
6813
6801
|
justifySelf: {},
|
|
6814
6802
|
// grid
|
|
6815
6803
|
gap: {
|
|
6816
|
-
style:
|
|
6804
|
+
style: Sr
|
|
6817
6805
|
},
|
|
6818
6806
|
rowGap: {
|
|
6819
|
-
style:
|
|
6807
|
+
style: Tr
|
|
6820
6808
|
},
|
|
6821
6809
|
columnGap: {
|
|
6822
|
-
style:
|
|
6810
|
+
style: Er
|
|
6823
6811
|
},
|
|
6824
6812
|
gridColumn: {},
|
|
6825
6813
|
gridRow: {},
|
|
@@ -6914,10 +6902,10 @@ function nc() {
|
|
|
6914
6902
|
return {
|
|
6915
6903
|
[n]: r
|
|
6916
6904
|
};
|
|
6917
|
-
const h =
|
|
6905
|
+
const h = yr(i, c) || {};
|
|
6918
6906
|
return u ? u(s) : qe(s, r, (g) => {
|
|
6919
|
-
let f =
|
|
6920
|
-
return g === f && typeof g == "string" && (f =
|
|
6907
|
+
let f = rr(h, d, g);
|
|
6908
|
+
return g === f && typeof g == "string" && (f = rr(h, d, `${n}${g === "default" ? "" : gt(g)}`, g)), l === !1 ? f : {
|
|
6921
6909
|
[l]: f
|
|
6922
6910
|
};
|
|
6923
6911
|
});
|
|
@@ -7064,7 +7052,7 @@ var Gp = /* @__PURE__ */ function() {
|
|
|
7064
7052
|
return r.parentNode && r.parentNode.removeChild(r);
|
|
7065
7053
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
7066
7054
|
}, e;
|
|
7067
|
-
}(), oe = "-ms-",
|
|
7055
|
+
}(), oe = "-ms-", ir = "-moz-", V = "-webkit-", Ui = "comm", Hi = "rule", Yi = "decl", qp = "@import", sc = "@keyframes", Kp = "@layer", Xp = Math.abs, Cr = String.fromCharCode, Zp = Object.assign;
|
|
7068
7056
|
function Qp(e, t) {
|
|
7069
7057
|
return ie(e, 0) ^ 45 ? (((t << 2 ^ ie(e, 0)) << 2 ^ ie(e, 1)) << 2 ^ ie(e, 2)) << 2 ^ ie(e, 3) : 0;
|
|
7070
7058
|
}
|
|
@@ -7077,7 +7065,7 @@ function Jp(e, t) {
|
|
|
7077
7065
|
function L(e, t, n) {
|
|
7078
7066
|
return e.replace(t, n);
|
|
7079
7067
|
}
|
|
7080
|
-
function
|
|
7068
|
+
function ci(e, t) {
|
|
7081
7069
|
return e.indexOf(t);
|
|
7082
7070
|
}
|
|
7083
7071
|
function ie(e, t) {
|
|
@@ -7098,21 +7086,21 @@ function Dn(e, t) {
|
|
|
7098
7086
|
function em(e, t) {
|
|
7099
7087
|
return e.map(t).join("");
|
|
7100
7088
|
}
|
|
7101
|
-
var
|
|
7102
|
-
function
|
|
7103
|
-
return { value: e, root: t, parent: n, type: r, props: i, children: o, line:
|
|
7089
|
+
var Ar = 1, jt = 1, lc = 0, me = 0, re = 0, Bt = "";
|
|
7090
|
+
function Pr(e, t, n, r, i, o, s) {
|
|
7091
|
+
return { value: e, root: t, parent: n, type: r, props: i, children: o, line: Ar, column: jt, length: s, return: "" };
|
|
7104
7092
|
}
|
|
7105
7093
|
function Xt(e, t) {
|
|
7106
|
-
return Zp(
|
|
7094
|
+
return Zp(Pr("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
7107
7095
|
}
|
|
7108
7096
|
function tm() {
|
|
7109
7097
|
return re;
|
|
7110
7098
|
}
|
|
7111
7099
|
function nm() {
|
|
7112
|
-
return re = me > 0 ? ie(Bt, --me) : 0, jt--, re === 10 && (jt = 1,
|
|
7100
|
+
return re = me > 0 ? ie(Bt, --me) : 0, jt--, re === 10 && (jt = 1, Ar--), re;
|
|
7113
7101
|
}
|
|
7114
7102
|
function be() {
|
|
7115
|
-
return re = me < lc ? ie(Bt, me++) : 0, jt++, re === 10 && (jt = 1,
|
|
7103
|
+
return re = me < lc ? ie(Bt, me++) : 0, jt++, re === 10 && (jt = 1, Ar++), re;
|
|
7116
7104
|
}
|
|
7117
7105
|
function ze() {
|
|
7118
7106
|
return ie(Bt, me);
|
|
@@ -7156,13 +7144,13 @@ function fn(e) {
|
|
|
7156
7144
|
return 0;
|
|
7157
7145
|
}
|
|
7158
7146
|
function cc(e) {
|
|
7159
|
-
return
|
|
7147
|
+
return Ar = jt = 1, lc = Ie(Bt = e), me = 0, [];
|
|
7160
7148
|
}
|
|
7161
7149
|
function uc(e) {
|
|
7162
7150
|
return Bt = "", e;
|
|
7163
7151
|
}
|
|
7164
7152
|
function Fn(e) {
|
|
7165
|
-
return ac(En(me - 1,
|
|
7153
|
+
return ac(En(me - 1, ui(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
7166
7154
|
}
|
|
7167
7155
|
function rm(e) {
|
|
7168
7156
|
for (; (re = ze()) && re < 33; )
|
|
@@ -7174,17 +7162,17 @@ function im(e, t) {
|
|
|
7174
7162
|
;
|
|
7175
7163
|
return En(e, jn() + (t < 6 && ze() == 32 && be() == 32));
|
|
7176
7164
|
}
|
|
7177
|
-
function
|
|
7165
|
+
function ui(e) {
|
|
7178
7166
|
for (; be(); )
|
|
7179
7167
|
switch (re) {
|
|
7180
7168
|
case e:
|
|
7181
7169
|
return me;
|
|
7182
7170
|
case 34:
|
|
7183
7171
|
case 39:
|
|
7184
|
-
e !== 34 && e !== 39 &&
|
|
7172
|
+
e !== 34 && e !== 39 && ui(re);
|
|
7185
7173
|
break;
|
|
7186
7174
|
case 40:
|
|
7187
|
-
e === 41 &&
|
|
7175
|
+
e === 41 && ui(e);
|
|
7188
7176
|
break;
|
|
7189
7177
|
case 92:
|
|
7190
7178
|
be();
|
|
@@ -7196,7 +7184,7 @@ function om(e, t) {
|
|
|
7196
7184
|
for (; be() && e + re !== 47 + 10; )
|
|
7197
7185
|
if (e + re === 42 + 42 && ze() === 47)
|
|
7198
7186
|
break;
|
|
7199
|
-
return "/*" + En(t, me - 1) + "*" +
|
|
7187
|
+
return "/*" + En(t, me - 1) + "*" + Cr(e === 47 ? e : be());
|
|
7200
7188
|
}
|
|
7201
7189
|
function sm(e) {
|
|
7202
7190
|
for (; !fn(ze()); )
|
|
@@ -7211,7 +7199,7 @@ function $n(e, t, n, r, i, o, s, a, l) {
|
|
|
7211
7199
|
switch (g = w, w = be()) {
|
|
7212
7200
|
case 40:
|
|
7213
7201
|
if (g != 108 && ie(T, u - 1) == 58) {
|
|
7214
|
-
|
|
7202
|
+
ci(T += L(Fn(w), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
7215
7203
|
break;
|
|
7216
7204
|
}
|
|
7217
7205
|
case 34:
|
|
@@ -7279,7 +7267,7 @@ function $n(e, t, n, r, i, o, s, a, l) {
|
|
|
7279
7267
|
else if (w == 125 && f++ == 0 && nm() == 125)
|
|
7280
7268
|
continue;
|
|
7281
7269
|
}
|
|
7282
|
-
switch (T +=
|
|
7270
|
+
switch (T += Cr(w), w * f) {
|
|
7283
7271
|
case 38:
|
|
7284
7272
|
b = d > 0 ? 1 : (T += "\f", -1);
|
|
7285
7273
|
break;
|
|
@@ -7299,13 +7287,13 @@ function Ts(e, t, n, r, i, o, s, a, l, c, d) {
|
|
|
7299
7287
|
for (var u = i - 1, h = i === 0 ? o : [""], p = Gi(h), g = 0, f = 0, m = 0; g < r; ++g)
|
|
7300
7288
|
for (var b = 0, w = dn(e, u + 1, u = Xp(f = s[g])), x = e; b < p; ++b)
|
|
7301
7289
|
(x = ac(f > 0 ? h[b] + " " + w : L(w, /&\f/g, h[b]))) && (l[m++] = x);
|
|
7302
|
-
return
|
|
7290
|
+
return Pr(e, t, n, i === 0 ? Hi : a, l, c, d);
|
|
7303
7291
|
}
|
|
7304
7292
|
function lm(e, t, n) {
|
|
7305
|
-
return
|
|
7293
|
+
return Pr(e, t, n, Ui, Cr(tm()), dn(e, 2, -2), 0);
|
|
7306
7294
|
}
|
|
7307
7295
|
function Cs(e, t, n, r) {
|
|
7308
|
-
return
|
|
7296
|
+
return Pr(e, t, n, Yi, dn(e, 0, r), dn(e, r + 1, -1), r);
|
|
7309
7297
|
}
|
|
7310
7298
|
function Vt(e, t) {
|
|
7311
7299
|
for (var n = "", r = Gi(e), i = 0; i < r; i++)
|
|
@@ -7362,7 +7350,7 @@ var fm = function(t, n, r) {
|
|
|
7362
7350
|
break;
|
|
7363
7351
|
}
|
|
7364
7352
|
default:
|
|
7365
|
-
t[r] +=
|
|
7353
|
+
t[r] += Cr(i);
|
|
7366
7354
|
}
|
|
7367
7355
|
while (i = be());
|
|
7368
7356
|
return t;
|
|
@@ -7462,7 +7450,7 @@ function fc(e, t) {
|
|
|
7462
7450
|
case 4810:
|
|
7463
7451
|
case 6968:
|
|
7464
7452
|
case 2756:
|
|
7465
|
-
return V + e +
|
|
7453
|
+
return V + e + ir + e + oe + e + e;
|
|
7466
7454
|
case 6828:
|
|
7467
7455
|
case 4268:
|
|
7468
7456
|
return V + e + oe + e + e;
|
|
@@ -7512,16 +7500,16 @@ function fc(e, t) {
|
|
|
7512
7500
|
if (ie(e, t + 4) !== 45)
|
|
7513
7501
|
break;
|
|
7514
7502
|
case 102:
|
|
7515
|
-
return L(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" +
|
|
7503
|
+
return L(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + ir + (ie(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
7516
7504
|
case 115:
|
|
7517
|
-
return ~
|
|
7505
|
+
return ~ci(e, "stretch") ? fc(L(e, "stretch", "fill-available"), t) + e : e;
|
|
7518
7506
|
}
|
|
7519
7507
|
break;
|
|
7520
7508
|
case 4949:
|
|
7521
7509
|
if (ie(e, t + 1) !== 115)
|
|
7522
7510
|
break;
|
|
7523
7511
|
case 6444:
|
|
7524
|
-
switch (ie(e, Ie(e) - 3 - (~
|
|
7512
|
+
switch (ie(e, Ie(e) - 3 - (~ci(e, "!important") && 10))) {
|
|
7525
7513
|
case 107:
|
|
7526
7514
|
return L(e, ":", ":" + V) + e;
|
|
7527
7515
|
case 101:
|
|
@@ -7558,13 +7546,13 @@ var Sm = function(t, n, r, i) {
|
|
|
7558
7546
|
case ":read-only":
|
|
7559
7547
|
case ":read-write":
|
|
7560
7548
|
return Vt([Xt(t, {
|
|
7561
|
-
props: [L(o, /:(read-\w+)/, ":" +
|
|
7549
|
+
props: [L(o, /:(read-\w+)/, ":" + ir + "$1")]
|
|
7562
7550
|
})], i);
|
|
7563
7551
|
case "::placeholder":
|
|
7564
7552
|
return Vt([Xt(t, {
|
|
7565
7553
|
props: [L(o, /:(plac\w+)/, ":" + V + "input-$1")]
|
|
7566
7554
|
}), Xt(t, {
|
|
7567
|
-
props: [L(o, /:(plac\w+)/, ":" +
|
|
7555
|
+
props: [L(o, /:(plac\w+)/, ":" + ir + "$1")]
|
|
7568
7556
|
}), Xt(t, {
|
|
7569
7557
|
props: [L(o, /:(plac\w+)/, oe + "input-$1")]
|
|
7570
7558
|
})], i);
|
|
@@ -7636,7 +7624,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
7636
7624
|
insert: l
|
|
7637
7625
|
};
|
|
7638
7626
|
return g.sheet.hydrate(a), g;
|
|
7639
|
-
},
|
|
7627
|
+
}, di = { exports: {} }, F = {};
|
|
7640
7628
|
/** @license React v16.13.1
|
|
7641
7629
|
* react-is.production.min.js
|
|
7642
7630
|
*
|
|
@@ -7725,16 +7713,16 @@ var ks;
|
|
|
7725
7713
|
function Cm() {
|
|
7726
7714
|
return ks || (ks = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7727
7715
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
7728
|
-
function x(
|
|
7729
|
-
return typeof
|
|
7730
|
-
|
|
7716
|
+
function x(A) {
|
|
7717
|
+
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7718
|
+
A === r || A === c || A === o || A === i || A === u || A === h || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === s || A.$$typeof === a || A.$$typeof === d || A.$$typeof === m || A.$$typeof === b || A.$$typeof === w || A.$$typeof === f);
|
|
7731
7719
|
}
|
|
7732
|
-
function S(
|
|
7733
|
-
if (typeof
|
|
7734
|
-
var Yt =
|
|
7720
|
+
function S(A) {
|
|
7721
|
+
if (typeof A == "object" && A !== null) {
|
|
7722
|
+
var Yt = A.$$typeof;
|
|
7735
7723
|
switch (Yt) {
|
|
7736
7724
|
case t:
|
|
7737
|
-
var O =
|
|
7725
|
+
var O = A.type;
|
|
7738
7726
|
switch (O) {
|
|
7739
7727
|
case l:
|
|
7740
7728
|
case c:
|
|
@@ -7761,51 +7749,51 @@ function Cm() {
|
|
|
7761
7749
|
}
|
|
7762
7750
|
}
|
|
7763
7751
|
}
|
|
7764
|
-
var y = l, E = c, T = a, C = s,
|
|
7765
|
-
function ge(
|
|
7766
|
-
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), De(
|
|
7752
|
+
var y = l, E = c, T = a, C = s, P = t, N = d, k = r, I = g, q = p, U = n, de = o, H = i, ae = u, le = !1;
|
|
7753
|
+
function ge(A) {
|
|
7754
|
+
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), De(A) || S(A) === l;
|
|
7767
7755
|
}
|
|
7768
|
-
function De(
|
|
7769
|
-
return S(
|
|
7756
|
+
function De(A) {
|
|
7757
|
+
return S(A) === c;
|
|
7770
7758
|
}
|
|
7771
|
-
function B(
|
|
7772
|
-
return S(
|
|
7759
|
+
function B(A) {
|
|
7760
|
+
return S(A) === a;
|
|
7773
7761
|
}
|
|
7774
|
-
function Oe(
|
|
7775
|
-
return S(
|
|
7762
|
+
function Oe(A) {
|
|
7763
|
+
return S(A) === s;
|
|
7776
7764
|
}
|
|
7777
|
-
function Fe(
|
|
7778
|
-
return typeof
|
|
7765
|
+
function Fe(A) {
|
|
7766
|
+
return typeof A == "object" && A !== null && A.$$typeof === t;
|
|
7779
7767
|
}
|
|
7780
|
-
function we(
|
|
7781
|
-
return S(
|
|
7768
|
+
function we(A) {
|
|
7769
|
+
return S(A) === d;
|
|
7782
7770
|
}
|
|
7783
|
-
function $e(
|
|
7784
|
-
return S(
|
|
7771
|
+
function $e(A) {
|
|
7772
|
+
return S(A) === r;
|
|
7785
7773
|
}
|
|
7786
|
-
function Be(
|
|
7787
|
-
return S(
|
|
7774
|
+
function Be(A) {
|
|
7775
|
+
return S(A) === g;
|
|
7788
7776
|
}
|
|
7789
|
-
function xt(
|
|
7790
|
-
return S(
|
|
7777
|
+
function xt(A) {
|
|
7778
|
+
return S(A) === p;
|
|
7791
7779
|
}
|
|
7792
|
-
function Ht(
|
|
7793
|
-
return S(
|
|
7780
|
+
function Ht(A) {
|
|
7781
|
+
return S(A) === n;
|
|
7794
7782
|
}
|
|
7795
|
-
function ct(
|
|
7796
|
-
return S(
|
|
7783
|
+
function ct(A) {
|
|
7784
|
+
return S(A) === o;
|
|
7797
7785
|
}
|
|
7798
|
-
function Ke(
|
|
7799
|
-
return S(
|
|
7786
|
+
function Ke(A) {
|
|
7787
|
+
return S(A) === i;
|
|
7800
7788
|
}
|
|
7801
|
-
function ke(
|
|
7802
|
-
return S(
|
|
7789
|
+
function ke(A) {
|
|
7790
|
+
return S(A) === u;
|
|
7803
7791
|
}
|
|
7804
|
-
$.AsyncMode = y, $.ConcurrentMode = E, $.ContextConsumer = T, $.ContextProvider = C, $.Element =
|
|
7792
|
+
$.AsyncMode = y, $.ConcurrentMode = E, $.ContextConsumer = T, $.ContextProvider = C, $.Element = P, $.ForwardRef = N, $.Fragment = k, $.Lazy = I, $.Memo = q, $.Portal = U, $.Profiler = de, $.StrictMode = H, $.Suspense = ae, $.isAsyncMode = ge, $.isConcurrentMode = De, $.isContextConsumer = B, $.isContextProvider = Oe, $.isElement = Fe, $.isForwardRef = we, $.isFragment = $e, $.isLazy = Be, $.isMemo = xt, $.isPortal = Ht, $.isProfiler = ct, $.isStrictMode = Ke, $.isSuspense = ke, $.isValidElementType = x, $.typeOf = S;
|
|
7805
7793
|
}()), $;
|
|
7806
7794
|
}
|
|
7807
|
-
process.env.NODE_ENV === "production" ?
|
|
7808
|
-
var Am =
|
|
7795
|
+
process.env.NODE_ENV === "production" ? di.exports = Tm() : di.exports = Cm();
|
|
7796
|
+
var Am = di.exports, pc = Am, Pm = {
|
|
7809
7797
|
$$typeof: !0,
|
|
7810
7798
|
render: !0,
|
|
7811
7799
|
defaultProps: !0,
|
|
@@ -7828,7 +7816,7 @@ function qi(e, t, n) {
|
|
|
7828
7816
|
e[i] !== void 0 ? t.push(e[i] + ";") : r += i + " ";
|
|
7829
7817
|
}), r;
|
|
7830
7818
|
}
|
|
7831
|
-
var
|
|
7819
|
+
var Or = function(t, n, r) {
|
|
7832
7820
|
var i = t.key + "-" + n.name;
|
|
7833
7821
|
// we only need to add the styles to the registered cache if the
|
|
7834
7822
|
// class name could be used further down
|
|
@@ -7840,8 +7828,8 @@ var kr = function(t, n, r) {
|
|
|
7840
7828
|
// the registered cache to know whether a style is global or not
|
|
7841
7829
|
// also, note that this check will be dead code eliminated in the browser
|
|
7842
7830
|
km === !1) && t.registered[i] === void 0 && (t.registered[i] = n.styles);
|
|
7843
|
-
},
|
|
7844
|
-
|
|
7831
|
+
}, kr = function(t, n, r) {
|
|
7832
|
+
Or(t, n, r);
|
|
7845
7833
|
var i = t.key + "-" + n.name;
|
|
7846
7834
|
if (t.inserted[n.name] === void 0) {
|
|
7847
7835
|
var o = n;
|
|
@@ -7850,7 +7838,7 @@ var kr = function(t, n, r) {
|
|
|
7850
7838
|
while (o !== void 0);
|
|
7851
7839
|
}
|
|
7852
7840
|
};
|
|
7853
|
-
function
|
|
7841
|
+
function _m(e) {
|
|
7854
7842
|
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
|
|
7855
7843
|
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
7856
7844
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -7869,7 +7857,7 @@ function Mm(e) {
|
|
|
7869
7857
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
7870
7858
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
7871
7859
|
}
|
|
7872
|
-
var
|
|
7860
|
+
var Mm = {
|
|
7873
7861
|
animationIterationCount: 1,
|
|
7874
7862
|
aspectRatio: 1,
|
|
7875
7863
|
borderImageOutset: 1,
|
|
@@ -7917,33 +7905,33 @@ var _m = {
|
|
|
7917
7905
|
strokeMiterlimit: 1,
|
|
7918
7906
|
strokeOpacity: 1,
|
|
7919
7907
|
strokeWidth: 1
|
|
7920
|
-
},
|
|
7908
|
+
}, _s = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
7921
7909
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
7922
7910
|
You can read more about this here:
|
|
7923
7911
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Rm = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Nm = /[A-Z]|^ms/g, gc = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ki = function(t) {
|
|
7924
7912
|
return t.charCodeAt(1) === 45;
|
|
7925
|
-
},
|
|
7913
|
+
}, Ms = function(t) {
|
|
7926
7914
|
return t != null && typeof t != "boolean";
|
|
7927
|
-
},
|
|
7915
|
+
}, Hr = /* @__PURE__ */ oc(function(e) {
|
|
7928
7916
|
return Ki(e) ? e : e.replace(Nm, "-$&").toLowerCase();
|
|
7929
|
-
}),
|
|
7917
|
+
}), or = function(t, n) {
|
|
7930
7918
|
switch (t) {
|
|
7931
7919
|
case "animation":
|
|
7932
7920
|
case "animationName":
|
|
7933
7921
|
if (typeof n == "string")
|
|
7934
7922
|
return n.replace(gc, function(r, i, o) {
|
|
7935
|
-
return
|
|
7923
|
+
return Me = {
|
|
7936
7924
|
name: i,
|
|
7937
7925
|
styles: o,
|
|
7938
|
-
next:
|
|
7926
|
+
next: Me
|
|
7939
7927
|
}, i;
|
|
7940
7928
|
});
|
|
7941
7929
|
}
|
|
7942
|
-
return
|
|
7930
|
+
return Mm[t] !== 1 && !Ki(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
7943
7931
|
};
|
|
7944
7932
|
if (process.env.NODE_ENV !== "production") {
|
|
7945
|
-
var Dm = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Im = ["normal", "none", "initial", "inherit", "unset"], Vm =
|
|
7946
|
-
|
|
7933
|
+
var Dm = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Im = ["normal", "none", "initial", "inherit", "unset"], Vm = or, Lm = /^-ms-/, zm = /-(.)/g, Rs = {};
|
|
7934
|
+
or = function(t, n) {
|
|
7947
7935
|
if (t === "content" && (typeof n != "string" || Im.indexOf(n) === -1 && !Dm.test(n) && (n.charAt(0) !== n.charAt(n.length - 1) || n.charAt(0) !== '"' && n.charAt(0) !== "'")))
|
|
7948
7936
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + n + "\"'`");
|
|
7949
7937
|
var r = Vm(t, n);
|
|
@@ -7966,19 +7954,19 @@ function hn(e, t, n) {
|
|
|
7966
7954
|
return "";
|
|
7967
7955
|
case "object": {
|
|
7968
7956
|
if (n.anim === 1)
|
|
7969
|
-
return
|
|
7957
|
+
return Me = {
|
|
7970
7958
|
name: n.name,
|
|
7971
7959
|
styles: n.styles,
|
|
7972
|
-
next:
|
|
7960
|
+
next: Me
|
|
7973
7961
|
}, n.name;
|
|
7974
7962
|
if (n.styles !== void 0) {
|
|
7975
7963
|
var r = n.next;
|
|
7976
7964
|
if (r !== void 0)
|
|
7977
7965
|
for (; r !== void 0; )
|
|
7978
|
-
|
|
7966
|
+
Me = {
|
|
7979
7967
|
name: r.name,
|
|
7980
7968
|
styles: r.styles,
|
|
7981
|
-
next:
|
|
7969
|
+
next: Me
|
|
7982
7970
|
}, r = r.next;
|
|
7983
7971
|
var i = n.styles + ";";
|
|
7984
7972
|
return process.env.NODE_ENV !== "production" && n.map !== void 0 && (i += n.map), i;
|
|
@@ -7987,8 +7975,8 @@ function hn(e, t, n) {
|
|
|
7987
7975
|
}
|
|
7988
7976
|
case "function": {
|
|
7989
7977
|
if (e !== void 0) {
|
|
7990
|
-
var o =
|
|
7991
|
-
return
|
|
7978
|
+
var o = Me, s = n(e);
|
|
7979
|
+
return Me = o, hn(e, t, s);
|
|
7992
7980
|
} else
|
|
7993
7981
|
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
7994
7982
|
break;
|
|
@@ -8022,19 +8010,19 @@ function jm(e, t, n) {
|
|
|
8022
8010
|
for (var o in n) {
|
|
8023
8011
|
var s = n[o];
|
|
8024
8012
|
if (typeof s != "object")
|
|
8025
|
-
t != null && t[s] !== void 0 ? r += o + "{" + t[s] + "}" :
|
|
8013
|
+
t != null && t[s] !== void 0 ? r += o + "{" + t[s] + "}" : Ms(s) && (r += Hr(o) + ":" + or(o, s) + ";");
|
|
8026
8014
|
else {
|
|
8027
8015
|
if (o === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
8028
8016
|
throw new Error(yc);
|
|
8029
8017
|
if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
|
|
8030
8018
|
for (var a = 0; a < s.length; a++)
|
|
8031
|
-
|
|
8019
|
+
Ms(s[a]) && (r += Hr(o) + ":" + or(o, s[a]) + ";");
|
|
8032
8020
|
else {
|
|
8033
8021
|
var l = hn(e, t, s);
|
|
8034
8022
|
switch (o) {
|
|
8035
8023
|
case "animation":
|
|
8036
8024
|
case "animationName": {
|
|
8037
|
-
r +=
|
|
8025
|
+
r += Hr(o) + ":" + l + ";";
|
|
8038
8026
|
break;
|
|
8039
8027
|
}
|
|
8040
8028
|
default:
|
|
@@ -8047,15 +8035,15 @@ function jm(e, t, n) {
|
|
|
8047
8035
|
}
|
|
8048
8036
|
var Ns = /label:\s*([^\s;\n{]+)\s*(;|$)/g, vc;
|
|
8049
8037
|
process.env.NODE_ENV !== "production" && (vc = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
8050
|
-
var
|
|
8038
|
+
var Me, Ft = function(t, n, r) {
|
|
8051
8039
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
8052
8040
|
return t[0];
|
|
8053
8041
|
var i = !0, o = "";
|
|
8054
|
-
|
|
8042
|
+
Me = void 0;
|
|
8055
8043
|
var s = t[0];
|
|
8056
|
-
s == null || s.raw === void 0 ? (i = !1, o += hn(r, n, s)) : (process.env.NODE_ENV !== "production" && s[0] === void 0 && console.error(
|
|
8044
|
+
s == null || s.raw === void 0 ? (i = !1, o += hn(r, n, s)) : (process.env.NODE_ENV !== "production" && s[0] === void 0 && console.error(_s), o += s[0]);
|
|
8057
8045
|
for (var a = 1; a < t.length; a++)
|
|
8058
|
-
o += hn(r, n, t[a]), i && (process.env.NODE_ENV !== "production" && s[a] === void 0 && console.error(
|
|
8046
|
+
o += hn(r, n, t[a]), i && (process.env.NODE_ENV !== "production" && s[a] === void 0 && console.error(_s), o += s[a]);
|
|
8059
8047
|
var l;
|
|
8060
8048
|
process.env.NODE_ENV !== "production" && (o = o.replace(vc, function(h) {
|
|
8061
8049
|
return l = h, "";
|
|
@@ -8063,19 +8051,19 @@ var _e, Ft = function(t, n, r) {
|
|
|
8063
8051
|
for (var c = "", d; (d = Ns.exec(o)) !== null; )
|
|
8064
8052
|
c += "-" + // $FlowFixMe we know it's not null
|
|
8065
8053
|
d[1];
|
|
8066
|
-
var u =
|
|
8054
|
+
var u = _m(o) + c;
|
|
8067
8055
|
return process.env.NODE_ENV !== "production" ? {
|
|
8068
8056
|
name: u,
|
|
8069
8057
|
styles: o,
|
|
8070
8058
|
map: l,
|
|
8071
|
-
next:
|
|
8059
|
+
next: Me,
|
|
8072
8060
|
toString: function() {
|
|
8073
8061
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8074
8062
|
}
|
|
8075
8063
|
} : {
|
|
8076
8064
|
name: u,
|
|
8077
8065
|
styles: o,
|
|
8078
|
-
next:
|
|
8066
|
+
next: Me
|
|
8079
8067
|
};
|
|
8080
8068
|
}, Fm = function(t) {
|
|
8081
8069
|
return t();
|
|
@@ -8100,8 +8088,8 @@ var Bm = Zi.Provider, _r = function(t) {
|
|
|
8100
8088
|
process.env.NODE_ENV !== "production" && (bt.displayName = "EmotionThemeContext");
|
|
8101
8089
|
var Is = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Vs = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Wm = function(t) {
|
|
8102
8090
|
var n = t.cache, r = t.serialized, i = t.isStringTag;
|
|
8103
|
-
return
|
|
8104
|
-
return
|
|
8091
|
+
return Or(n, r, i), Xi(function() {
|
|
8092
|
+
return kr(n, r, i);
|
|
8105
8093
|
}), null;
|
|
8106
8094
|
}, Um = /* @__PURE__ */ _r(function(e, t, n) {
|
|
8107
8095
|
var r = e.css;
|
|
@@ -8277,7 +8265,7 @@ var Hm = {
|
|
|
8277
8265
|
o[1] = !1;
|
|
8278
8266
|
return;
|
|
8279
8267
|
}
|
|
8280
|
-
if (r.next !== void 0 &&
|
|
8268
|
+
if (r.next !== void 0 && kr(t, r.next, !0), s.tags.length) {
|
|
8281
8269
|
var l = s.tags[s.tags.length - 1].nextElementSibling;
|
|
8282
8270
|
s.before = l, s.flush();
|
|
8283
8271
|
}
|
|
@@ -8334,7 +8322,7 @@ var Km = function(t) {
|
|
|
8334
8322
|
var n = t.cache, r = t.serializedArr;
|
|
8335
8323
|
return Xi(function() {
|
|
8336
8324
|
for (var i = 0; i < r.length; i++)
|
|
8337
|
-
|
|
8325
|
+
kr(n, r[i], !1);
|
|
8338
8326
|
}), null;
|
|
8339
8327
|
}, Xm = /* @__PURE__ */ _r(function(e, t) {
|
|
8340
8328
|
var n = !1, r = [], i = function() {
|
|
@@ -8343,7 +8331,7 @@ var Km = function(t) {
|
|
|
8343
8331
|
for (var c = arguments.length, d = new Array(c), u = 0; u < c; u++)
|
|
8344
8332
|
d[u] = arguments[u];
|
|
8345
8333
|
var h = Ft(d, t.registered);
|
|
8346
|
-
return r.push(h),
|
|
8334
|
+
return r.push(h), Or(t, h, !1), t.key + "-" + h.name;
|
|
8347
8335
|
}, o = function() {
|
|
8348
8336
|
if (n && process.env.NODE_ENV !== "production")
|
|
8349
8337
|
throw new Error("cx can only be used during render");
|
|
@@ -8392,8 +8380,8 @@ Because you write your CSS inside a JavaScript string you actually have to do do
|
|
|
8392
8380
|
You can read more about this here:
|
|
8393
8381
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, e2 = function(t) {
|
|
8394
8382
|
var n = t.cache, r = t.serialized, i = t.isStringTag;
|
|
8395
|
-
return
|
|
8396
|
-
return
|
|
8383
|
+
return Or(n, r, i), Xi(function() {
|
|
8384
|
+
return kr(n, r, i);
|
|
8397
8385
|
}), null;
|
|
8398
8386
|
}, t2 = function e(t, n) {
|
|
8399
8387
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
@@ -8422,15 +8410,15 @@ You may have forgotten to import it.`);
|
|
|
8422
8410
|
typeof f.className == "string" ? x = qi(m.registered, S, f.className) : f.className != null && (x = f.className + " ");
|
|
8423
8411
|
var T = Ft(u.concat(S), m.registered, y);
|
|
8424
8412
|
x += m.key + "-" + T.name, s !== void 0 && (x += " " + s);
|
|
8425
|
-
var C = c && a === void 0 ? $s(w) : l,
|
|
8413
|
+
var C = c && a === void 0 ? $s(w) : l, P = {};
|
|
8426
8414
|
for (var N in f)
|
|
8427
8415
|
c && N === "as" || // $FlowFixMe
|
|
8428
|
-
C(N) && (
|
|
8429
|
-
return
|
|
8416
|
+
C(N) && (P[N] = f[N]);
|
|
8417
|
+
return P.className = x, P.ref = b, /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(e2, {
|
|
8430
8418
|
cache: m,
|
|
8431
8419
|
serialized: T,
|
|
8432
8420
|
isStringTag: typeof w == "string"
|
|
8433
|
-
}), /* @__PURE__ */ M.createElement(w,
|
|
8421
|
+
}), /* @__PURE__ */ M.createElement(w, P));
|
|
8434
8422
|
});
|
|
8435
8423
|
return g.displayName = o !== void 0 ? o : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", g.defaultProps = t.defaultProps, g.__emotion_real = g, g.__emotion_base = i, g.__emotion_styles = u, g.__emotion_forwardProp = a, Object.defineProperty(g, "toString", {
|
|
8436
8424
|
value: function() {
|
|
@@ -8578,12 +8566,12 @@ You may have forgotten to import it.`);
|
|
|
8578
8566
|
"svg",
|
|
8579
8567
|
"text",
|
|
8580
8568
|
"tspan"
|
|
8581
|
-
],
|
|
8569
|
+
], fi = t2.bind();
|
|
8582
8570
|
n2.forEach(function(e) {
|
|
8583
|
-
|
|
8571
|
+
fi[e] = fi(e);
|
|
8584
8572
|
});
|
|
8585
|
-
let
|
|
8586
|
-
typeof document == "object" && (
|
|
8573
|
+
let hi;
|
|
8574
|
+
typeof document == "object" && (hi = hc({
|
|
8587
8575
|
key: "css",
|
|
8588
8576
|
prepend: !0
|
|
8589
8577
|
}));
|
|
@@ -8592,8 +8580,8 @@ function Sc(e) {
|
|
|
8592
8580
|
injectFirst: t,
|
|
8593
8581
|
children: n
|
|
8594
8582
|
} = e;
|
|
8595
|
-
return t &&
|
|
8596
|
-
value:
|
|
8583
|
+
return t && hi ? /* @__PURE__ */ v(Bm, {
|
|
8584
|
+
value: hi,
|
|
8597
8585
|
children: n
|
|
8598
8586
|
}) : n;
|
|
8599
8587
|
}
|
|
@@ -8633,7 +8621,7 @@ process.env.NODE_ENV !== "production" && (Ec.propTypes = {
|
|
|
8633
8621
|
* LICENSE file in the root directory of this source tree.
|
|
8634
8622
|
*/
|
|
8635
8623
|
function i2(e, t) {
|
|
8636
|
-
const n =
|
|
8624
|
+
const n = fi(e, t);
|
|
8637
8625
|
return process.env.NODE_ENV !== "production" ? (...r) => {
|
|
8638
8626
|
const i = typeof e == "string" ? `"${e}"` : "component";
|
|
8639
8627
|
return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
@@ -8733,26 +8721,26 @@ var te = {}, Tc = { exports: {} };
|
|
|
8733
8721
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8734
8722
|
})(Tc);
|
|
8735
8723
|
var Cc = Tc.exports;
|
|
8736
|
-
const y2 = /* @__PURE__ */ je(
|
|
8724
|
+
const y2 = /* @__PURE__ */ je(M1), v2 = /* @__PURE__ */ je(H1);
|
|
8737
8725
|
var Ac = Cc;
|
|
8738
8726
|
Object.defineProperty(te, "__esModule", {
|
|
8739
8727
|
value: !0
|
|
8740
8728
|
});
|
|
8741
|
-
te.alpha =
|
|
8742
|
-
te.blend =
|
|
8729
|
+
te.alpha = _c;
|
|
8730
|
+
te.blend = _2;
|
|
8743
8731
|
te.colorChannel = void 0;
|
|
8744
8732
|
var b2 = te.darken = Ji;
|
|
8745
8733
|
te.decomposeColor = Ae;
|
|
8746
8734
|
te.emphasize = k2;
|
|
8747
8735
|
var Us = te.getContrastRatio = C2;
|
|
8748
|
-
te.getLuminance =
|
|
8736
|
+
te.getLuminance = sr;
|
|
8749
8737
|
te.hexToRgb = Pc;
|
|
8750
8738
|
te.hslToRgb = kc;
|
|
8751
8739
|
var x2 = te.lighten = eo;
|
|
8752
8740
|
te.private_safeAlpha = A2;
|
|
8753
8741
|
te.private_safeColorChannel = void 0;
|
|
8754
8742
|
te.private_safeDarken = P2;
|
|
8755
|
-
te.private_safeEmphasize =
|
|
8743
|
+
te.private_safeEmphasize = Mc;
|
|
8756
8744
|
te.private_safeLighten = O2;
|
|
8757
8745
|
te.recomposeColor = Wt;
|
|
8758
8746
|
te.rgbToHex = T2;
|
|
@@ -8835,21 +8823,21 @@ function kc(e) {
|
|
|
8835
8823
|
values: l
|
|
8836
8824
|
});
|
|
8837
8825
|
}
|
|
8838
|
-
function
|
|
8826
|
+
function sr(e) {
|
|
8839
8827
|
e = Ae(e);
|
|
8840
8828
|
let t = e.type === "hsl" || e.type === "hsla" ? Ae(kc(e)).values : e.values;
|
|
8841
8829
|
return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
8842
8830
|
}
|
|
8843
8831
|
function C2(e, t) {
|
|
8844
|
-
const n =
|
|
8832
|
+
const n = sr(e), r = sr(t);
|
|
8845
8833
|
return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
|
|
8846
8834
|
}
|
|
8847
|
-
function
|
|
8835
|
+
function _c(e, t) {
|
|
8848
8836
|
return e = Ae(e), t = Qi(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Wt(e);
|
|
8849
8837
|
}
|
|
8850
8838
|
function A2(e, t, n) {
|
|
8851
8839
|
try {
|
|
8852
|
-
return
|
|
8840
|
+
return _c(e, t);
|
|
8853
8841
|
} catch {
|
|
8854
8842
|
return n && process.env.NODE_ENV !== "production" && console.warn(n), e;
|
|
8855
8843
|
}
|
|
@@ -8888,26 +8876,26 @@ function O2(e, t, n) {
|
|
|
8888
8876
|
}
|
|
8889
8877
|
}
|
|
8890
8878
|
function k2(e, t = 0.15) {
|
|
8891
|
-
return
|
|
8879
|
+
return sr(e) > 0.5 ? Ji(e, t) : eo(e, t);
|
|
8892
8880
|
}
|
|
8893
|
-
function
|
|
8881
|
+
function Mc(e, t, n) {
|
|
8894
8882
|
try {
|
|
8895
|
-
return
|
|
8883
|
+
return Mc(e, t);
|
|
8896
8884
|
} catch {
|
|
8897
8885
|
return n && process.env.NODE_ENV !== "production" && console.warn(n), e;
|
|
8898
8886
|
}
|
|
8899
8887
|
}
|
|
8900
|
-
function
|
|
8888
|
+
function _2(e, t, n, r = 1) {
|
|
8901
8889
|
const i = (l, c) => Math.round((l ** (1 / r) * (1 - n) + c ** (1 / r) * n) ** r), o = Ae(e), s = Ae(t), a = [i(o.values[0], s.values[0]), i(o.values[1], s.values[1]), i(o.values[2], s.values[2])];
|
|
8902
8890
|
return Wt({
|
|
8903
8891
|
type: "rgb",
|
|
8904
8892
|
values: a
|
|
8905
8893
|
});
|
|
8906
8894
|
}
|
|
8907
|
-
const
|
|
8895
|
+
const M2 = {
|
|
8908
8896
|
black: "#000",
|
|
8909
8897
|
white: "#fff"
|
|
8910
|
-
}, pn =
|
|
8898
|
+
}, pn = M2, R2 = {
|
|
8911
8899
|
50: "#fafafa",
|
|
8912
8900
|
100: "#f5f5f5",
|
|
8913
8901
|
200: "#eeeeee",
|
|
@@ -9049,7 +9037,7 @@ const _2 = {
|
|
|
9049
9037
|
focusOpacity: 0.12,
|
|
9050
9038
|
activatedOpacity: 0.12
|
|
9051
9039
|
}
|
|
9052
|
-
},
|
|
9040
|
+
}, Yr = {
|
|
9053
9041
|
text: {
|
|
9054
9042
|
primary: pn.white,
|
|
9055
9043
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
@@ -9153,7 +9141,7 @@ function G2(e) {
|
|
|
9153
9141
|
tonalOffset: r = 0.2
|
|
9154
9142
|
} = e, i = st(e, F2), o = e.primary || $2(t), s = e.secondary || B2(t), a = e.error || W2(t), l = e.info || U2(t), c = e.success || H2(t), d = e.warning || Y2(t);
|
|
9155
9143
|
function u(f) {
|
|
9156
|
-
const m = Us(f,
|
|
9144
|
+
const m = Us(f, Yr.text.primary) >= n ? Yr.text.primary : Ys.text.primary;
|
|
9157
9145
|
if (process.env.NODE_ENV !== "production") {
|
|
9158
9146
|
const b = Us(f, m);
|
|
9159
9147
|
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${m} on ${f}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
@@ -9188,7 +9176,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9188
9176
|
} });` : un(12, m ? ` (${m})` : "", JSON.stringify(f.main)));
|
|
9189
9177
|
return Gs(f, "light", w, r), Gs(f, "dark", x, r), f.contrastText || (f.contrastText = u(f.main)), f;
|
|
9190
9178
|
}, p = {
|
|
9191
|
-
dark:
|
|
9179
|
+
dark: Yr,
|
|
9192
9180
|
light: Ys
|
|
9193
9181
|
};
|
|
9194
9182
|
return process.env.NODE_ENV !== "production" && (p[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Le(W({
|
|
@@ -9316,10 +9304,10 @@ function X2(e, t) {
|
|
|
9316
9304
|
});
|
|
9317
9305
|
}
|
|
9318
9306
|
const Z2 = 0.2, Q2 = 0.14, J2 = 0.12;
|
|
9319
|
-
function
|
|
9307
|
+
function G(...e) {
|
|
9320
9308
|
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Z2})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Q2})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${J2})`].join(",");
|
|
9321
9309
|
}
|
|
9322
|
-
const eg = ["none",
|
|
9310
|
+
const eg = ["none", G(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), G(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), G(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), G(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), G(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), G(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), G(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), G(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), G(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), G(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), G(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), G(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), G(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), G(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), G(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), G(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), G(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), G(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), G(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), G(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), G(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), G(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), G(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), G(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], tg = eg, ng = ["duration", "easing", "delay"], rg = {
|
|
9323
9311
|
// This is the most common easing curve.
|
|
9324
9312
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
9325
9313
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -9446,15 +9434,15 @@ function fg({
|
|
|
9446
9434
|
});
|
|
9447
9435
|
}
|
|
9448
9436
|
var Tn = {};
|
|
9449
|
-
const hg = /* @__PURE__ */ je($c), pg = /* @__PURE__ */ je(Bc), mg = /* @__PURE__ */ je(s2), gg = /* @__PURE__ */ je(
|
|
9437
|
+
const hg = /* @__PURE__ */ je($c), pg = /* @__PURE__ */ je(Bc), mg = /* @__PURE__ */ je(s2), gg = /* @__PURE__ */ je(_1), yg = /* @__PURE__ */ je(L1), vg = /* @__PURE__ */ je(V1), bg = /* @__PURE__ */ je(Bp), xg = /* @__PURE__ */ je(m2);
|
|
9450
9438
|
var Ut = Cc;
|
|
9451
9439
|
Object.defineProperty(Tn, "__esModule", {
|
|
9452
9440
|
value: !0
|
|
9453
9441
|
});
|
|
9454
9442
|
var wg = Tn.default = Vg, Sg = Tn.shouldForwardProp = Bn;
|
|
9455
9443
|
Tn.systemDefaultTheme = void 0;
|
|
9456
|
-
var Te = Ut(hg),
|
|
9457
|
-
const Og = ["ownerState"], kg = ["variants"],
|
|
9444
|
+
var Te = Ut(hg), pi = Ut(pg), Zs = Mg(mg), Eg = gg, Tg = Ut(yg), Cg = Ut(vg), Ag = Ut(bg), Pg = Ut(xg);
|
|
9445
|
+
const Og = ["ownerState"], kg = ["variants"], _g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
9458
9446
|
function Dc(e) {
|
|
9459
9447
|
if (typeof WeakMap != "function")
|
|
9460
9448
|
return null;
|
|
@@ -9463,7 +9451,7 @@ function Dc(e) {
|
|
|
9463
9451
|
return r ? n : t;
|
|
9464
9452
|
})(e);
|
|
9465
9453
|
}
|
|
9466
|
-
function
|
|
9454
|
+
function Mg(e, t) {
|
|
9467
9455
|
if (!t && e && e.__esModule)
|
|
9468
9456
|
return e;
|
|
9469
9457
|
if (e === null || typeof e != "object" && typeof e != "function")
|
|
@@ -9505,7 +9493,7 @@ function Ig(e) {
|
|
|
9505
9493
|
function Wn(e, t) {
|
|
9506
9494
|
let {
|
|
9507
9495
|
ownerState: n
|
|
9508
|
-
} = t, r = (0,
|
|
9496
|
+
} = t, r = (0, pi.default)(t, Og);
|
|
9509
9497
|
const i = typeof e == "function" ? e((0, Te.default)({
|
|
9510
9498
|
ownerState: n
|
|
9511
9499
|
}, r)) : e;
|
|
@@ -9517,7 +9505,7 @@ function Wn(e, t) {
|
|
|
9517
9505
|
const {
|
|
9518
9506
|
variants: o = []
|
|
9519
9507
|
} = i;
|
|
9520
|
-
let a = (0,
|
|
9508
|
+
let a = (0, pi.default)(i, kg);
|
|
9521
9509
|
return o.forEach((l) => {
|
|
9522
9510
|
let c = !0;
|
|
9523
9511
|
typeof l.props == "function" ? c = l.props((0, Te.default)({
|
|
@@ -9553,7 +9541,7 @@ function Vg(e = {}) {
|
|
|
9553
9541
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
9554
9542
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9555
9543
|
overridesResolver: h = Ig(Qs(c))
|
|
9556
|
-
} = a, p = (0,
|
|
9544
|
+
} = a, p = (0, pi.default)(a, _g), g = d !== void 0 ? d : (
|
|
9557
9545
|
// TODO v6: remove `Root` in the next major release
|
|
9558
9546
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9559
9547
|
c && c !== "Root" && c !== "root" || !1
|
|
@@ -9574,40 +9562,40 @@ function Vg(e = {}) {
|
|
|
9574
9562
|
})) : y, S = (y, ...E) => {
|
|
9575
9563
|
let T = x(y);
|
|
9576
9564
|
const C = E ? E.map(x) : [];
|
|
9577
|
-
l && h && C.push((
|
|
9578
|
-
const I = In((0, Te.default)({},
|
|
9565
|
+
l && h && C.push((k) => {
|
|
9566
|
+
const I = In((0, Te.default)({}, k, {
|
|
9579
9567
|
defaultTheme: n,
|
|
9580
9568
|
themeId: t
|
|
9581
9569
|
}));
|
|
9582
9570
|
if (!I.components || !I.components[l] || !I.components[l].styleOverrides)
|
|
9583
9571
|
return null;
|
|
9584
|
-
const
|
|
9585
|
-
return Object.entries(
|
|
9586
|
-
|
|
9572
|
+
const q = I.components[l].styleOverrides, U = {};
|
|
9573
|
+
return Object.entries(q).forEach(([de, H]) => {
|
|
9574
|
+
U[de] = Wn(H, (0, Te.default)({}, k, {
|
|
9587
9575
|
theme: I
|
|
9588
9576
|
}));
|
|
9589
|
-
}), h(
|
|
9590
|
-
}), l && !g && C.push((
|
|
9577
|
+
}), h(k, U);
|
|
9578
|
+
}), l && !g && C.push((k) => {
|
|
9591
9579
|
var I;
|
|
9592
|
-
const
|
|
9580
|
+
const q = In((0, Te.default)({}, k, {
|
|
9593
9581
|
defaultTheme: n,
|
|
9594
9582
|
themeId: t
|
|
9595
|
-
})),
|
|
9583
|
+
})), U = q == null || (I = q.components) == null || (I = I[l]) == null ? void 0 : I.variants;
|
|
9596
9584
|
return Wn({
|
|
9597
|
-
variants:
|
|
9598
|
-
}, (0, Te.default)({},
|
|
9599
|
-
theme:
|
|
9585
|
+
variants: U
|
|
9586
|
+
}, (0, Te.default)({}, k, {
|
|
9587
|
+
theme: q
|
|
9600
9588
|
}));
|
|
9601
9589
|
}), f || C.push(o);
|
|
9602
|
-
const
|
|
9603
|
-
if (Array.isArray(y) &&
|
|
9604
|
-
const
|
|
9605
|
-
T = [...y, ...
|
|
9590
|
+
const P = C.length - E.length;
|
|
9591
|
+
if (Array.isArray(y) && P > 0) {
|
|
9592
|
+
const k = new Array(P).fill("");
|
|
9593
|
+
T = [...y, ...k], T.raw = [...y.raw, ...k];
|
|
9606
9594
|
}
|
|
9607
9595
|
const N = w(T, ...C);
|
|
9608
9596
|
if (process.env.NODE_ENV !== "production") {
|
|
9609
|
-
let
|
|
9610
|
-
l && (
|
|
9597
|
+
let k;
|
|
9598
|
+
l && (k = `${l}${(0, Tg.default)(c || "")}`), k === void 0 && (k = `Styled(${(0, Cg.default)(s)})`), N.displayName = k;
|
|
9611
9599
|
}
|
|
9612
9600
|
return s.muiName && (N.muiName = s.muiName), N;
|
|
9613
9601
|
};
|
|
@@ -9818,7 +9806,7 @@ function Gg(e, t) {
|
|
|
9818
9806
|
return !1;
|
|
9819
9807
|
return !0;
|
|
9820
9808
|
}
|
|
9821
|
-
function
|
|
9809
|
+
function Gr(e, t) {
|
|
9822
9810
|
t === void 0 && (t = Gg);
|
|
9823
9811
|
var n, r = [], i, o = !1;
|
|
9824
9812
|
function s() {
|
|
@@ -9846,13 +9834,13 @@ function Kg(e, t) {
|
|
|
9846
9834
|
};
|
|
9847
9835
|
return i;
|
|
9848
9836
|
}
|
|
9849
|
-
var
|
|
9837
|
+
var qr = -1;
|
|
9850
9838
|
function ia(e) {
|
|
9851
|
-
if (e === void 0 && (e = !1),
|
|
9839
|
+
if (e === void 0 && (e = !1), qr === -1 || e) {
|
|
9852
9840
|
var t = document.createElement("div"), n = t.style;
|
|
9853
|
-
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t),
|
|
9841
|
+
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), qr = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
|
|
9854
9842
|
}
|
|
9855
|
-
return
|
|
9843
|
+
return qr;
|
|
9856
9844
|
}
|
|
9857
9845
|
var Pt = null;
|
|
9858
9846
|
function oa(e) {
|
|
@@ -9881,14 +9869,14 @@ function Qg(e) {
|
|
|
9881
9869
|
scrollDirection: "forward",
|
|
9882
9870
|
scrollOffset: typeof f.props.initialScrollOffset == "number" ? f.props.initialScrollOffset : 0,
|
|
9883
9871
|
scrollUpdateWasRequested: !1
|
|
9884
|
-
}, f._callOnItemsRendered = void 0, f._callOnItemsRendered =
|
|
9872
|
+
}, f._callOnItemsRendered = void 0, f._callOnItemsRendered = Gr(function(m, b, w, x) {
|
|
9885
9873
|
return f.props.onItemsRendered({
|
|
9886
9874
|
overscanStartIndex: m,
|
|
9887
9875
|
overscanStopIndex: b,
|
|
9888
9876
|
visibleStartIndex: w,
|
|
9889
9877
|
visibleStopIndex: x
|
|
9890
9878
|
});
|
|
9891
|
-
}), f._callOnScroll = void 0, f._callOnScroll =
|
|
9879
|
+
}), f._callOnScroll = void 0, f._callOnScroll = Gr(function(m, b, w) {
|
|
9892
9880
|
return f.props.onScroll({
|
|
9893
9881
|
scrollDirection: m,
|
|
9894
9882
|
scrollOffset: b,
|
|
@@ -9899,18 +9887,18 @@ function Qg(e) {
|
|
|
9899
9887
|
if (y.hasOwnProperty(m))
|
|
9900
9888
|
E = y[m];
|
|
9901
9889
|
else {
|
|
9902
|
-
var T = n(f.props, m, f._instanceProps), C = i(f.props, m, f._instanceProps),
|
|
9890
|
+
var T = n(f.props, m, f._instanceProps), C = i(f.props, m, f._instanceProps), P = w === "horizontal" || S === "horizontal", N = w === "rtl", k = P ? T : 0;
|
|
9903
9891
|
y[m] = E = {
|
|
9904
9892
|
position: "absolute",
|
|
9905
|
-
left: N ? void 0 :
|
|
9906
|
-
right: N ?
|
|
9907
|
-
top:
|
|
9908
|
-
height:
|
|
9909
|
-
width:
|
|
9893
|
+
left: N ? void 0 : k,
|
|
9894
|
+
right: N ? k : void 0,
|
|
9895
|
+
top: P ? 0 : T,
|
|
9896
|
+
height: P ? "100%" : C,
|
|
9897
|
+
width: P ? C : "100%"
|
|
9910
9898
|
};
|
|
9911
9899
|
}
|
|
9912
9900
|
return E;
|
|
9913
|
-
}, f._getItemStyleCache = void 0, f._getItemStyleCache =
|
|
9901
|
+
}, f._getItemStyleCache = void 0, f._getItemStyleCache = Gr(function(m, b, w) {
|
|
9914
9902
|
return {};
|
|
9915
9903
|
}), f._onScrollHorizontal = function(m) {
|
|
9916
9904
|
var b = m.currentTarget, w = b.clientWidth, x = b.scrollLeft, S = b.scrollWidth;
|
|
@@ -10016,7 +10004,7 @@ function Qg(e) {
|
|
|
10016
10004
|
}, p.componentWillUnmount = function() {
|
|
10017
10005
|
this._resetIsScrollingTimeoutId !== null && ra(this._resetIsScrollingTimeoutId);
|
|
10018
10006
|
}, p.render = function() {
|
|
10019
|
-
var f = this.props, m = f.children, b = f.className, w = f.direction, x = f.height, S = f.innerRef, y = f.innerElementType, E = f.innerTagName, T = f.itemCount, C = f.itemData,
|
|
10007
|
+
var f = this.props, m = f.children, b = f.className, w = f.direction, x = f.height, S = f.innerRef, y = f.innerElementType, E = f.innerTagName, T = f.itemCount, C = f.itemData, P = f.itemKey, N = P === void 0 ? Zg : P, k = f.layout, I = f.outerElementType, q = f.outerTagName, U = f.style, de = f.useIsScrolling, H = f.width, ae = this.state.isScrolling, le = w === "horizontal" || k === "horizontal", ge = le ? this._onScrollHorizontal : this._onScrollVertical, De = this._getRangeToRender(), B = De[0], Oe = De[1], Fe = [];
|
|
10020
10008
|
if (T > 0)
|
|
10021
10009
|
for (var we = B; we <= Oe; we++)
|
|
10022
10010
|
Fe.push(en(m, {
|
|
@@ -10027,19 +10015,19 @@ function Qg(e) {
|
|
|
10027
10015
|
style: this._getItemStyle(we)
|
|
10028
10016
|
}));
|
|
10029
10017
|
var $e = r(this.props, this._instanceProps);
|
|
10030
|
-
return en(I ||
|
|
10018
|
+
return en(I || q || "div", {
|
|
10031
10019
|
className: b,
|
|
10032
10020
|
onScroll: ge,
|
|
10033
10021
|
ref: this._outerRefSetter,
|
|
10034
10022
|
style: W({
|
|
10035
10023
|
position: "relative",
|
|
10036
10024
|
height: x,
|
|
10037
|
-
width:
|
|
10025
|
+
width: H,
|
|
10038
10026
|
overflow: "auto",
|
|
10039
10027
|
WebkitOverflowScrolling: "touch",
|
|
10040
10028
|
willChange: "transform",
|
|
10041
10029
|
direction: w
|
|
10042
|
-
},
|
|
10030
|
+
}, U)
|
|
10043
10031
|
}, en(y || E || "div", {
|
|
10044
10032
|
children: Fe,
|
|
10045
10033
|
ref: S,
|
|
@@ -10065,8 +10053,8 @@ function Qg(e) {
|
|
|
10065
10053
|
var f = this.props, m = f.itemCount, b = f.overscanCount, w = this.state, x = w.isScrolling, S = w.scrollDirection, y = w.scrollOffset;
|
|
10066
10054
|
if (m === 0)
|
|
10067
10055
|
return [0, 0, 0, 0];
|
|
10068
|
-
var E = s(this.props, y, this._instanceProps), T = a(this.props, E, y, this._instanceProps), C = !x || S === "backward" ? Math.max(1, b) : 1,
|
|
10069
|
-
return [Math.max(0, E - C), Math.max(0, Math.min(m - 1, T +
|
|
10056
|
+
var E = s(this.props, y, this._instanceProps), T = a(this.props, E, y, this._instanceProps), C = !x || S === "backward" ? Math.max(1, b) : 1, P = !x || S === "forward" ? Math.max(1, b) : 1;
|
|
10057
|
+
return [Math.max(0, E - C), Math.max(0, Math.min(m - 1, T + P)), E, T];
|
|
10070
10058
|
}, h;
|
|
10071
10059
|
}(Jc), t.defaultProps = {
|
|
10072
10060
|
direction: "ltr",
|
|
@@ -10199,7 +10187,7 @@ function Yn(e, t) {
|
|
|
10199
10187
|
}
|
|
10200
10188
|
function aa(e) {
|
|
10201
10189
|
return /* @__PURE__ */ v(
|
|
10202
|
-
|
|
10190
|
+
_e,
|
|
10203
10191
|
{
|
|
10204
10192
|
sx: { cursor: "pointer" },
|
|
10205
10193
|
onClick: (t) => {
|
|
@@ -10208,7 +10196,7 @@ function aa(e) {
|
|
|
10208
10196
|
},
|
|
10209
10197
|
...e.stackProps,
|
|
10210
10198
|
children: /* @__PURE__ */ v(
|
|
10211
|
-
|
|
10199
|
+
_e,
|
|
10212
10200
|
{
|
|
10213
10201
|
sx: {
|
|
10214
10202
|
p: 1,
|
|
@@ -10228,11 +10216,11 @@ function aa(e) {
|
|
|
10228
10216
|
}
|
|
10229
10217
|
);
|
|
10230
10218
|
}
|
|
10231
|
-
const
|
|
10219
|
+
const ar = 37, i3 = (e, t) => {
|
|
10232
10220
|
const s = document.createElement("p");
|
|
10233
10221
|
s.innerText = t, s.style.width = `${e - 16 - 16 - 4}px`, document.body.appendChild(s);
|
|
10234
10222
|
const a = s.offsetHeight;
|
|
10235
|
-
return document.body.removeChild(s), a > 21 ?
|
|
10223
|
+
return document.body.removeChild(s), a > 21 ? ar + 21 : ar;
|
|
10236
10224
|
};
|
|
10237
10225
|
function A3(e) {
|
|
10238
10226
|
const [t, n] = J(!1), [r, i] = J(""), [o, s] = J(""), [a, l] = J(!1), { isRequired: c = !1 } = e, d = Jt(
|
|
@@ -10263,7 +10251,7 @@ function A3(e) {
|
|
|
10263
10251
|
mouseEvent: "onMouseDown",
|
|
10264
10252
|
touchEvent: "onTouchEnd",
|
|
10265
10253
|
children: /* @__PURE__ */ v("div", { ref: x, style: { width: e.wrapperWidth ?? "auto" }, children: /* @__PURE__ */ R(
|
|
10266
|
-
|
|
10254
|
+
_e,
|
|
10267
10255
|
{
|
|
10268
10256
|
sx: {
|
|
10269
10257
|
// height: 40,
|
|
@@ -10333,7 +10321,7 @@ function A3(e) {
|
|
|
10333
10321
|
},
|
|
10334
10322
|
children: [
|
|
10335
10323
|
!e.disabledAllOption && /* @__PURE__ */ v(
|
|
10336
|
-
|
|
10324
|
+
_e,
|
|
10337
10325
|
{
|
|
10338
10326
|
sx: {
|
|
10339
10327
|
...Yn(
|
|
@@ -10341,7 +10329,7 @@ function A3(e) {
|
|
|
10341
10329
|
!!a
|
|
10342
10330
|
)
|
|
10343
10331
|
},
|
|
10344
|
-
children: /* @__PURE__ */ v(
|
|
10332
|
+
children: /* @__PURE__ */ v(_e, { children: /* @__PURE__ */ v(
|
|
10345
10333
|
aa,
|
|
10346
10334
|
{
|
|
10347
10335
|
option: void 0,
|
|
@@ -10367,7 +10355,7 @@ function A3(e) {
|
|
|
10367
10355
|
{
|
|
10368
10356
|
ref: y,
|
|
10369
10357
|
onItemsRendered: S,
|
|
10370
|
-
height:
|
|
10358
|
+
height: ar * Math.min(e.itemsNumber || 6, f),
|
|
10371
10359
|
itemCount: f,
|
|
10372
10360
|
itemSize: (E) => {
|
|
10373
10361
|
var T;
|
|
@@ -10379,7 +10367,7 @@ function A3(e) {
|
|
|
10379
10367
|
width: "100%",
|
|
10380
10368
|
className: "styled-scroll",
|
|
10381
10369
|
children: ({ index: E, style: T }) => {
|
|
10382
|
-
var
|
|
10370
|
+
var P;
|
|
10383
10371
|
const C = p[E];
|
|
10384
10372
|
return b(E) ? /* @__PURE__ */ v(
|
|
10385
10373
|
aa,
|
|
@@ -10387,31 +10375,31 @@ function A3(e) {
|
|
|
10387
10375
|
stackProps: { style: T },
|
|
10388
10376
|
option: C,
|
|
10389
10377
|
renderOption: (N) => {
|
|
10390
|
-
var
|
|
10378
|
+
var k;
|
|
10391
10379
|
return /* @__PURE__ */ R(
|
|
10392
|
-
|
|
10380
|
+
_e,
|
|
10393
10381
|
{
|
|
10394
10382
|
direction: "row",
|
|
10395
10383
|
alignItems: "center",
|
|
10396
10384
|
justifyContent: "space-between",
|
|
10397
10385
|
children: [
|
|
10398
10386
|
/* @__PURE__ */ v(pt, { children: e.getOptionLabel(N) }),
|
|
10399
|
-
(
|
|
10387
|
+
(k = e.renderOptionTooltip) == null ? void 0 : k.call(e, N)
|
|
10400
10388
|
]
|
|
10401
10389
|
}
|
|
10402
10390
|
);
|
|
10403
10391
|
},
|
|
10404
10392
|
onClick: (N) => {
|
|
10405
|
-
var
|
|
10406
|
-
h(), (
|
|
10393
|
+
var k;
|
|
10394
|
+
h(), (k = e.onChange) == null || k.call(e, N);
|
|
10407
10395
|
},
|
|
10408
|
-
select: ((
|
|
10396
|
+
select: ((P = e.isEqual) == null ? void 0 : P.call(e, C, e.value)) ?? ro.isEqual(C, e.value)
|
|
10409
10397
|
}
|
|
10410
10398
|
) : /* @__PURE__ */ v(
|
|
10411
|
-
|
|
10399
|
+
_e,
|
|
10412
10400
|
{
|
|
10413
10401
|
style: T,
|
|
10414
|
-
sx: { height:
|
|
10402
|
+
sx: { height: ar, pl: 1 },
|
|
10415
10403
|
justifyContent: "center",
|
|
10416
10404
|
children: /* @__PURE__ */ v(pt, { children: "Loading..." })
|
|
10417
10405
|
}
|
|
@@ -10422,7 +10410,7 @@ function A3(e) {
|
|
|
10422
10410
|
}
|
|
10423
10411
|
),
|
|
10424
10412
|
/* @__PURE__ */ v(
|
|
10425
|
-
|
|
10413
|
+
_e,
|
|
10426
10414
|
{
|
|
10427
10415
|
sx: {
|
|
10428
10416
|
height: 30,
|
|
@@ -10435,7 +10423,7 @@ function A3(e) {
|
|
|
10435
10423
|
}
|
|
10436
10424
|
),
|
|
10437
10425
|
/* @__PURE__ */ v(
|
|
10438
|
-
|
|
10426
|
+
_e,
|
|
10439
10427
|
{
|
|
10440
10428
|
sx: {
|
|
10441
10429
|
height: 30,
|
|
@@ -10717,7 +10705,7 @@ function k3(e) {
|
|
|
10717
10705
|
}
|
|
10718
10706
|
);
|
|
10719
10707
|
}
|
|
10720
|
-
function
|
|
10708
|
+
function _3(e) {
|
|
10721
10709
|
return /* @__PURE__ */ R(
|
|
10722
10710
|
"svg",
|
|
10723
10711
|
{
|
|
@@ -10758,7 +10746,7 @@ const a3 = ["granted", "denied"], l3 = (e) => {
|
|
|
10758
10746
|
}, i = () => {
|
|
10759
10747
|
n(!0);
|
|
10760
10748
|
};
|
|
10761
|
-
return /* @__PURE__ */ v(
|
|
10749
|
+
return /* @__PURE__ */ v(lr, { children: t ? "" : /* @__PURE__ */ v("div", { className: ut["subscription-diaglog"], children: /* @__PURE__ */ R("div", { className: ut["subscription-container"], children: [
|
|
10762
10750
|
/* @__PURE__ */ v("h4", { className: ut["subscription-title"], children: "Notification" }),
|
|
10763
10751
|
/* @__PURE__ */ v("p", { className: ut["subscription-text"], children: "Option to receive notifications about the latest information. You can turn them off at any time." }),
|
|
10764
10752
|
/* @__PURE__ */ R("div", { className: ut["subscription-btn__container"], children: [
|
|
@@ -10773,7 +10761,7 @@ const a3 = ["granted", "denied"], l3 = (e) => {
|
|
|
10773
10761
|
)
|
|
10774
10762
|
] })
|
|
10775
10763
|
] }) }) });
|
|
10776
|
-
},
|
|
10764
|
+
}, M3 = (e) => {
|
|
10777
10765
|
const [t, n] = J({
|
|
10778
10766
|
title: "",
|
|
10779
10767
|
body: ""
|
|
@@ -10799,10 +10787,10 @@ const a3 = ["granted", "denied"], l3 = (e) => {
|
|
|
10799
10787
|
};
|
|
10800
10788
|
export {
|
|
10801
10789
|
aa as AutocompleteOption,
|
|
10802
|
-
|
|
10790
|
+
_3 as CheckedIcon,
|
|
10803
10791
|
w3 as GlobalMenu,
|
|
10804
10792
|
S3 as NoData,
|
|
10805
|
-
|
|
10793
|
+
M3 as NotificationBase,
|
|
10806
10794
|
E3 as PopUpBase,
|
|
10807
10795
|
A3 as StyledAutocomplete,
|
|
10808
10796
|
O3 as StyledDateRangePicker,
|