@biznext-ui/react 0.1.2 → 0.1.3
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/LICENSE.txt +1 -1
- package/dist/index.es.d.ts +10 -37
- package/dist/index.es.js +222 -223
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Ve, jsx as w, Fragment as qt } from "react/jsx-runtime";
|
|
2
2
|
import * as Z from "react";
|
|
3
|
-
import Qe, { createContext as Je, useContext as se, useLayoutEffect as pa, useEffect as Ze, useRef as de, useInsertionEffect as ma, useCallback as pe, useMemo as Ne, forwardRef as
|
|
3
|
+
import Qe, { createContext as Je, useContext as se, useLayoutEffect as pa, useEffect as Ze, useRef as de, useInsertionEffect as ma, useCallback as pe, useMemo as Ne, forwardRef as Qn, Fragment as en, createElement as el, useId as gr, Component as ga, useState as Re, cloneElement as tl, Children as Yi, isValidElement as nl, useReducer as il } from "react";
|
|
4
4
|
import br, { createPortal as St } from "react-dom";
|
|
5
5
|
const ba = Je({}), rl = (e, t) => {
|
|
6
6
|
switch (t.type) {
|
|
@@ -125,15 +125,15 @@ function bl(e, t) {
|
|
|
125
125
|
}
|
|
126
126
|
return n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function Gn() {
|
|
129
|
+
return Gn = Object.assign ? Object.assign.bind() : function(e) {
|
|
130
130
|
for (var t = 1; t < arguments.length; t++) {
|
|
131
131
|
var n = arguments[t];
|
|
132
132
|
for (var i in n)
|
|
133
133
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
134
134
|
}
|
|
135
135
|
return e;
|
|
136
|
-
},
|
|
136
|
+
}, Gn.apply(this, arguments);
|
|
137
137
|
}
|
|
138
138
|
function lo(e, t) {
|
|
139
139
|
var n = Object.keys(e);
|
|
@@ -145,7 +145,7 @@ function lo(e, t) {
|
|
|
145
145
|
}
|
|
146
146
|
return n;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function On(e) {
|
|
149
149
|
for (var t = 1; t < arguments.length; t++) {
|
|
150
150
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
151
151
|
t % 2 ? lo(Object(n), !0).forEach(function(i) {
|
|
@@ -174,13 +174,13 @@ function Cl(e, t) {
|
|
|
174
174
|
return (t === "string" ? String : Number)(e);
|
|
175
175
|
}
|
|
176
176
|
function Ia(e) {
|
|
177
|
-
return e && e.map((t, n) => /* @__PURE__ */ Qe.createElement(t.tag,
|
|
177
|
+
return e && e.map((t, n) => /* @__PURE__ */ Qe.createElement(t.tag, On({
|
|
178
178
|
key: n
|
|
179
179
|
}, t.attr), Ia(t.child)));
|
|
180
180
|
}
|
|
181
181
|
function Et(e) {
|
|
182
|
-
return (t) => /* @__PURE__ */ Qe.createElement(Il,
|
|
183
|
-
attr:
|
|
182
|
+
return (t) => /* @__PURE__ */ Qe.createElement(Il, Gn({
|
|
183
|
+
attr: On({}, e.attr)
|
|
184
184
|
}, t), Ia(e.child));
|
|
185
185
|
}
|
|
186
186
|
function Il(e) {
|
|
@@ -190,13 +190,13 @@ function Il(e) {
|
|
|
190
190
|
size: r,
|
|
191
191
|
title: o
|
|
192
192
|
} = e, s = gl(e, ml), u = r || n.size || "1em", a;
|
|
193
|
-
return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ Qe.createElement("svg",
|
|
193
|
+
return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ Qe.createElement("svg", Gn({
|
|
194
194
|
stroke: "currentColor",
|
|
195
195
|
fill: "currentColor",
|
|
196
196
|
strokeWidth: "0"
|
|
197
197
|
}, n.attr, i, s, {
|
|
198
198
|
className: a,
|
|
199
|
-
style:
|
|
199
|
+
style: On(On({
|
|
200
200
|
color: e.color || n.color
|
|
201
201
|
}, n.style), e.style),
|
|
202
202
|
height: u,
|
|
@@ -225,7 +225,7 @@ const vr = Je({
|
|
|
225
225
|
transformPagePoint: (e) => e,
|
|
226
226
|
isStatic: !1,
|
|
227
227
|
reducedMotion: "never"
|
|
228
|
-
}),
|
|
228
|
+
}), Kn = Je({}), qn = Je(null), yr = typeof document < "u", Cr = yr ? pa : Ze, xa = Je({ strict: !1 }), ei = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pl = "framerAppearId", Aa = "data-" + ei(Pl), wl = {
|
|
229
229
|
skipAnimations: !1,
|
|
230
230
|
useManualTiming: !1
|
|
231
231
|
};
|
|
@@ -267,7 +267,7 @@ function Vl(e) {
|
|
|
267
267
|
};
|
|
268
268
|
return a;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const bn = [
|
|
271
271
|
"read",
|
|
272
272
|
// Read
|
|
273
273
|
"resolveKeyframes",
|
|
@@ -287,18 +287,18 @@ function Sa(e, t) {
|
|
|
287
287
|
delta: 0,
|
|
288
288
|
timestamp: 0,
|
|
289
289
|
isProcessing: !1
|
|
290
|
-
}, o = () => n = !0, s =
|
|
290
|
+
}, o = () => n = !0, s = bn.reduce((C, y) => (C[y] = Vl(o), C), {}), { read: u, resolveKeyframes: a, update: c, preRender: l, render: d, postRender: f } = s, p = () => {
|
|
291
291
|
const C = performance.now();
|
|
292
292
|
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(C - r.timestamp, Rl), 1), r.timestamp = C, r.isProcessing = !0, u.process(r), a.process(r), c.process(r), l.process(r), d.process(r), f.process(r), r.isProcessing = !1, n && t && (i = !1, e(p));
|
|
293
293
|
}, b = () => {
|
|
294
294
|
n = !0, i = !0, r.isProcessing || e(p);
|
|
295
295
|
};
|
|
296
|
-
return { schedule:
|
|
296
|
+
return { schedule: bn.reduce((C, y) => {
|
|
297
297
|
const m = s[y];
|
|
298
298
|
return C[y] = (I, h = !1, A = !1) => (n || b(), m.schedule(I, h, A)), C;
|
|
299
299
|
}, {}), cancel: (C) => {
|
|
300
|
-
for (let y = 0; y <
|
|
301
|
-
s[
|
|
300
|
+
for (let y = 0; y < bn.length; y++)
|
|
301
|
+
s[bn[y]].cancel(C);
|
|
302
302
|
}, state: r, steps: s };
|
|
303
303
|
}
|
|
304
304
|
const { schedule: Ir, cancel: My } = Sa(queueMicrotask, !1);
|
|
@@ -308,7 +308,7 @@ function Vt(e) {
|
|
|
308
308
|
const Ta = Je({});
|
|
309
309
|
let fo = !1;
|
|
310
310
|
function Dl(e, t, n, i, r) {
|
|
311
|
-
const { visualElement: o } = se(
|
|
311
|
+
const { visualElement: o } = se(Kn), s = se(xa), u = se(qn), a = se(vr).reducedMotion, c = de();
|
|
312
312
|
i = i || s.renderer, !c.current && i && (c.current = i(e, {
|
|
313
313
|
visualState: t,
|
|
314
314
|
parent: o,
|
|
@@ -384,14 +384,14 @@ const xr = [
|
|
|
384
384
|
"whileDrag",
|
|
385
385
|
"exit"
|
|
386
386
|
], Ar = ["initial", ...xr];
|
|
387
|
-
function
|
|
387
|
+
function ti(e) {
|
|
388
388
|
return nn(e.animate) || Ar.some((t) => tn(e[t]));
|
|
389
389
|
}
|
|
390
390
|
function Pa(e) {
|
|
391
|
-
return !!(
|
|
391
|
+
return !!(ti(e) || e.variants);
|
|
392
392
|
}
|
|
393
393
|
function Gl(e, t) {
|
|
394
|
-
if (
|
|
394
|
+
if (ti(e)) {
|
|
395
395
|
const { initial: n, animate: i } = e;
|
|
396
396
|
return {
|
|
397
397
|
initial: n === !1 || tn(n) ? n : void 0,
|
|
@@ -401,7 +401,7 @@ function Gl(e, t) {
|
|
|
401
401
|
return e.inherit !== !1 ? t : {};
|
|
402
402
|
}
|
|
403
403
|
function Ol(e) {
|
|
404
|
-
const { initial: t, animate: n } = Gl(e, se(
|
|
404
|
+
const { initial: t, animate: n } = Gl(e, se(Kn));
|
|
405
405
|
return Ne(() => ({ initial: t, animate: n }), [ho(t), ho(n)]);
|
|
406
406
|
}
|
|
407
407
|
function ho(e) {
|
|
@@ -460,9 +460,9 @@ function Ll({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
460
460
|
const b = Hl(l);
|
|
461
461
|
c = b.MeasureLayout, f.visualElement = Dl(r, p, l, t, b.ProjectionNode);
|
|
462
462
|
}
|
|
463
|
-
return Ve(
|
|
463
|
+
return Ve(Kn.Provider, { value: f, children: [c && f.visualElement ? w(c, { visualElement: f.visualElement, ...l }) : null, n(r, u, Bl(p, f.visualElement, a), p, d, f.visualElement)] });
|
|
464
464
|
}
|
|
465
|
-
const s =
|
|
465
|
+
const s = Qn(o);
|
|
466
466
|
return s[Wl] = r, s;
|
|
467
467
|
}
|
|
468
468
|
function Xl({ layoutId: e }) {
|
|
@@ -549,9 +549,9 @@ function Tr(e) {
|
|
|
549
549
|
)
|
|
550
550
|
);
|
|
551
551
|
}
|
|
552
|
-
const
|
|
552
|
+
const Nn = {};
|
|
553
553
|
function jl(e) {
|
|
554
|
-
Object.assign(
|
|
554
|
+
Object.assign(Nn, e);
|
|
555
555
|
}
|
|
556
556
|
const dn = [
|
|
557
557
|
"transformPerspective",
|
|
@@ -573,7 +573,7 @@ const dn = [
|
|
|
573
573
|
"skewY"
|
|
574
574
|
], mt = new Set(dn);
|
|
575
575
|
function wa(e, { layout: t, layoutId: n }) {
|
|
576
|
-
return mt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!
|
|
576
|
+
return mt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Nn[e] || e === "opacity");
|
|
577
577
|
}
|
|
578
578
|
const Se = (e) => !!(e && e.getVelocity), Yl = {
|
|
579
579
|
x: "translateX",
|
|
@@ -599,7 +599,7 @@ const Va = (e) => (t) => typeof t == "string" && t.startsWith(e), Ra = Va("--"),
|
|
|
599
599
|
}, _t = {
|
|
600
600
|
...Xt,
|
|
601
601
|
transform: (e) => ht(0, 1, e)
|
|
602
|
-
},
|
|
602
|
+
}, vn = {
|
|
603
603
|
...Xt,
|
|
604
604
|
default: 1
|
|
605
605
|
}, $t = (e) => Math.round(e * 1e5) / 1e5, Pr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Kl = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, ql = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
@@ -659,10 +659,10 @@ const hn = (e) => ({
|
|
|
659
659
|
rotateX: ct,
|
|
660
660
|
rotateY: ct,
|
|
661
661
|
rotateZ: ct,
|
|
662
|
-
scale:
|
|
663
|
-
scaleX:
|
|
664
|
-
scaleY:
|
|
665
|
-
scaleZ:
|
|
662
|
+
scale: vn,
|
|
663
|
+
scaleX: vn,
|
|
664
|
+
scaleY: vn,
|
|
665
|
+
scaleZ: vn,
|
|
666
666
|
skew: ct,
|
|
667
667
|
skewX: ct,
|
|
668
668
|
skewY: ct,
|
|
@@ -765,12 +765,12 @@ const sd = /* @__PURE__ */ new Set([
|
|
|
765
765
|
"ignoreStrict",
|
|
766
766
|
"viewport"
|
|
767
767
|
]);
|
|
768
|
-
function
|
|
768
|
+
function Wn(e) {
|
|
769
769
|
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || sd.has(e);
|
|
770
770
|
}
|
|
771
|
-
let Ma = (e) => !
|
|
771
|
+
let Ma = (e) => !Wn(e);
|
|
772
772
|
function ad(e) {
|
|
773
|
-
e && (Ma = (t) => t.startsWith("on") ? !
|
|
773
|
+
e && (Ma = (t) => t.startsWith("on") ? !Wn(t) : e(t));
|
|
774
774
|
}
|
|
775
775
|
try {
|
|
776
776
|
ad(require("@emotion/is-prop-valid").default);
|
|
@@ -779,7 +779,7 @@ try {
|
|
|
779
779
|
function ud(e, t, n) {
|
|
780
780
|
const i = {};
|
|
781
781
|
for (const r in e)
|
|
782
|
-
r === "values" && typeof e.values == "object" || (Ma(r) || n === !0 &&
|
|
782
|
+
r === "values" && typeof e.values == "object" || (Ma(r) || n === !0 && Wn(r) || !t && !Wn(r) || // If trying to use native HTML drag events, forward drag listeners
|
|
783
783
|
e.draggable && r.startsWith("onDrag")) && (i[r] = e[r]);
|
|
784
784
|
return i;
|
|
785
785
|
}
|
|
@@ -884,7 +884,7 @@ const Oa = /* @__PURE__ */ new Set([
|
|
|
884
884
|
function Na(e, t, n, i) {
|
|
885
885
|
Ga(e, t, void 0, i);
|
|
886
886
|
for (const r in t.attrs)
|
|
887
|
-
e.setAttribute(Oa.has(r) ? r :
|
|
887
|
+
e.setAttribute(Oa.has(r) ? r : ei(r), t.attrs[r]);
|
|
888
888
|
}
|
|
889
889
|
function Fr(e, t, n) {
|
|
890
890
|
var i;
|
|
@@ -924,7 +924,7 @@ function La(e) {
|
|
|
924
924
|
return t.current === null && (t.current = e()), t.current;
|
|
925
925
|
}
|
|
926
926
|
const Ji = (e) => Array.isArray(e), md = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), gd = (e) => Ji(e) ? e[e.length - 1] || 0 : e;
|
|
927
|
-
function
|
|
927
|
+
function wn(e) {
|
|
928
928
|
const t = Se(e) ? e.get() : e;
|
|
929
929
|
return md(t) ? t.toValue() : t;
|
|
930
930
|
}
|
|
@@ -941,12 +941,12 @@ function Za(e) {
|
|
|
941
941
|
if (mt.has(e))
|
|
942
942
|
return "transform";
|
|
943
943
|
if (Xa.has(e))
|
|
944
|
-
return
|
|
944
|
+
return ei(e);
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function ni(e, t) {
|
|
947
947
|
e.indexOf(t) === -1 && e.push(t);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function ii(e, t) {
|
|
950
950
|
const n = e.indexOf(t);
|
|
951
951
|
n > -1 && e.splice(n, 1);
|
|
952
952
|
}
|
|
@@ -958,12 +958,12 @@ function bd({ applyWillChange: e = !1, scrapeMotionValuesFromProps: t, createRen
|
|
|
958
958
|
return i && (a.mount = (c) => i(r, c, a)), a;
|
|
959
959
|
}
|
|
960
960
|
const Ha = (e) => (t, n) => {
|
|
961
|
-
const i = se(
|
|
961
|
+
const i = se(Kn), r = se(qn), o = () => bd(e, t, i, r, n);
|
|
962
962
|
return n ? o() : La(o);
|
|
963
963
|
};
|
|
964
964
|
function vd(e, t) {
|
|
965
965
|
const n = Za(t);
|
|
966
|
-
n &&
|
|
966
|
+
n && ni(e, n);
|
|
967
967
|
}
|
|
968
968
|
function yo(e, t, n) {
|
|
969
969
|
const i = Array.isArray(t) ? t : [t];
|
|
@@ -979,9 +979,9 @@ function yd(e, t, n, i, r) {
|
|
|
979
979
|
var o;
|
|
980
980
|
const s = {}, u = [], a = i && ((o = e.style) === null || o === void 0 ? void 0 : o.willChange) === void 0, c = r(e, {});
|
|
981
981
|
for (const v in c)
|
|
982
|
-
s[v] =
|
|
982
|
+
s[v] = wn(c[v]);
|
|
983
983
|
let { initial: l, animate: d } = e;
|
|
984
|
-
const f =
|
|
984
|
+
const f = ti(e), p = Pa(e);
|
|
985
985
|
t && p && !f && e.inherit !== !1 && (l === void 0 && (l = t.initial), d === void 0 && (d = t.animate));
|
|
986
986
|
let b = n ? n.initial === !1 : !1;
|
|
987
987
|
b = b || l === !1;
|
|
@@ -1043,7 +1043,7 @@ function $e(e, t, n, i = { passive: !0 }) {
|
|
|
1043
1043
|
return e.addEventListener(t, n, i), () => e.removeEventListener(t, n);
|
|
1044
1044
|
}
|
|
1045
1045
|
const ka = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
|
|
1046
|
-
function
|
|
1046
|
+
function ri(e, t = "page") {
|
|
1047
1047
|
return {
|
|
1048
1048
|
point: {
|
|
1049
1049
|
x: e[`${t}X`],
|
|
@@ -1051,7 +1051,7 @@ function ii(e, t = "page") {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
1054
|
-
const Ad = (e) => (t) => ka(t) && e(t,
|
|
1054
|
+
const Ad = (e) => (t) => ka(t) && e(t, ri(t));
|
|
1055
1055
|
function Ke(e, t, n, i) {
|
|
1056
1056
|
return $e(e, t, Ad(n), i);
|
|
1057
1057
|
}
|
|
@@ -1138,7 +1138,7 @@ function gi(e, t) {
|
|
|
1138
1138
|
if (!t)
|
|
1139
1139
|
return;
|
|
1140
1140
|
const n = new PointerEvent("pointer" + e);
|
|
1141
|
-
t(n,
|
|
1141
|
+
t(n, ri(n));
|
|
1142
1142
|
}
|
|
1143
1143
|
class Pd extends gt {
|
|
1144
1144
|
constructor() {
|
|
@@ -1282,7 +1282,7 @@ function Ua(e, t) {
|
|
|
1282
1282
|
return !1;
|
|
1283
1283
|
return !0;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function oi(e, t, n) {
|
|
1286
1286
|
const i = e.getProps();
|
|
1287
1287
|
return Mr(i, t, n !== void 0 ? n : i.custom, e);
|
|
1288
1288
|
}
|
|
@@ -1311,18 +1311,18 @@ function Br(e, t) {
|
|
|
1311
1311
|
return e[t] || e.default || e;
|
|
1312
1312
|
}
|
|
1313
1313
|
const Hd = (e) => e !== null;
|
|
1314
|
-
function
|
|
1314
|
+
function si(e, { repeat: t, repeatType: n = "loop" }, i) {
|
|
1315
1315
|
const r = e.filter(Hd), o = t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
|
|
1316
1316
|
return !o || i === void 0 ? r[o] : i;
|
|
1317
1317
|
}
|
|
1318
|
-
let
|
|
1318
|
+
let Vn;
|
|
1319
1319
|
function kd() {
|
|
1320
|
-
|
|
1320
|
+
Vn = void 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
const dt = {
|
|
1323
|
-
now: () => (
|
|
1323
|
+
now: () => (Vn === void 0 && dt.set(be.isProcessing || wl.useManualTiming ? be.timestamp : performance.now()), Vn),
|
|
1324
1324
|
set: (e) => {
|
|
1325
|
-
|
|
1325
|
+
Vn = e, queueMicrotask(kd);
|
|
1326
1326
|
}
|
|
1327
1327
|
}, _a = (e) => /^0[^.\s]+$/u.test(e);
|
|
1328
1328
|
function zd(e) {
|
|
@@ -1709,7 +1709,7 @@ class lu {
|
|
|
1709
1709
|
if (s)
|
|
1710
1710
|
this.options.duration = 0;
|
|
1711
1711
|
else {
|
|
1712
|
-
a == null || a(
|
|
1712
|
+
a == null || a(si(t, this.options, n)), u == null || u(), this.resolveFinishedPromise();
|
|
1713
1713
|
return;
|
|
1714
1714
|
}
|
|
1715
1715
|
const l = this.initPlayback(t, n);
|
|
@@ -1937,7 +1937,7 @@ function Of({ hue: e, saturation: t, lightness: n, alpha: i }) {
|
|
|
1937
1937
|
alpha: i
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function Ln(e, t) {
|
|
1941
1941
|
return (n) => n > 0 ? t : e;
|
|
1942
1942
|
}
|
|
1943
1943
|
const Ii = (e, t, n) => {
|
|
@@ -1954,7 +1954,7 @@ function Bo(e) {
|
|
|
1954
1954
|
const Go = (e, t) => {
|
|
1955
1955
|
const n = Bo(e), i = Bo(t);
|
|
1956
1956
|
if (!n || !i)
|
|
1957
|
-
return
|
|
1957
|
+
return Ln(e, t);
|
|
1958
1958
|
const r = { ...n };
|
|
1959
1959
|
return (o) => (r.red = Ii(n.red, i.red, o), r.green = Ii(n.green, i.green, o), r.blue = Ii(n.blue, i.blue, o), r.alpha = oe(n.alpha, i.alpha, o), xt.transform(r));
|
|
1960
1960
|
}, er = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
@@ -1965,7 +1965,7 @@ function Xf(e, t) {
|
|
|
1965
1965
|
return (n) => oe(e, t, n);
|
|
1966
1966
|
}
|
|
1967
1967
|
function Xr(e) {
|
|
1968
|
-
return typeof e == "number" ? Xf : typeof e == "string" ? Er(e) ?
|
|
1968
|
+
return typeof e == "number" ? Xf : typeof e == "string" ? Er(e) ? Ln : Ae.test(e) ? Go : kf : Array.isArray(e) ? Cu : typeof e == "object" ? Ae.test(e) ? Go : Zf : Ln;
|
|
1969
1969
|
}
|
|
1970
1970
|
function Cu(e, t) {
|
|
1971
1971
|
const n = [...e], i = n.length, r = e.map((o, s) => Xr(o)(o, t[s]));
|
|
@@ -1996,7 +1996,7 @@ function Hf(e, t) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
const kf = (e, t) => {
|
|
1998
1998
|
const n = pt.createTransformer(t), i = rn(e), r = rn(t);
|
|
1999
|
-
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? er.has(e) && !r.values.length || er.has(t) && !i.values.length ? Lf(e, t) : qe(Cu(Hf(i, r), r.values), n) : (Lt(!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.`),
|
|
1999
|
+
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? er.has(e) && !r.values.length || er.has(t) && !i.values.length ? Lf(e, t) : qe(Cu(Hf(i, r), r.values), n) : (Lt(!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.`), Ln(e, t));
|
|
2000
2000
|
};
|
|
2001
2001
|
function Iu(e, t, n) {
|
|
2002
2002
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? oe(e, t, n) : Xr(e)(e, t);
|
|
@@ -2047,7 +2047,7 @@ function Uf(e, t) {
|
|
|
2047
2047
|
function _f(e, t) {
|
|
2048
2048
|
return e.map(() => t || mu).splice(0, e.length - 1);
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Xn({ duration: e = 300, keyframes: t, times: n, ease: i = "easeInOut" }) {
|
|
2051
2051
|
const r = Ff(i) ? i.map(Mo) : Mo(i), o = {
|
|
2052
2052
|
done: !1,
|
|
2053
2053
|
value: t[0]
|
|
@@ -2087,8 +2087,8 @@ const Qf = (e) => {
|
|
|
2087
2087
|
}, Kf = {
|
|
2088
2088
|
decay: Do,
|
|
2089
2089
|
inertia: Do,
|
|
2090
|
-
tween:
|
|
2091
|
-
keyframes:
|
|
2090
|
+
tween: Xn,
|
|
2091
|
+
keyframes: Xn,
|
|
2092
2092
|
spring: hu
|
|
2093
2093
|
}, qf = (e) => e / 100;
|
|
2094
2094
|
class Zr extends lu {
|
|
@@ -2104,9 +2104,9 @@ class Zr extends lu {
|
|
|
2104
2104
|
i && r && r.owner ? this.resolver = r.owner.resolveKeyframes(o, s, i, r) : this.resolver = new t(o, s, i, r), this.resolver.scheduleResolve();
|
|
2105
2105
|
}
|
|
2106
2106
|
initPlayback(t) {
|
|
2107
|
-
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, u = Kf[n] ||
|
|
2107
|
+
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, u = Kf[n] || Xn;
|
|
2108
2108
|
let a, c;
|
|
2109
|
-
u !==
|
|
2109
|
+
u !== Xn && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && it(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), a = qe(qf, Iu(t[0], t[1])), t = [0, 100]);
|
|
2110
2110
|
const l = u({ ...this.options, keyframes: t });
|
|
2111
2111
|
o === "mirror" && (c = u({
|
|
2112
2112
|
...this.options,
|
|
@@ -2151,7 +2151,7 @@ class Zr extends lu {
|
|
|
2151
2151
|
let { done: A } = h;
|
|
2152
2152
|
!y && c !== null && (A = this.speed >= 0 ? this.currentTime >= l : this.currentTime <= 0);
|
|
2153
2153
|
const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
|
|
2154
|
-
return S && r !== void 0 && (h.value =
|
|
2154
|
+
return S && r !== void 0 && (h.value = si(a, this.options, r)), v && v(h.value), S && this.finish(), h;
|
|
2155
2155
|
}
|
|
2156
2156
|
get duration() {
|
|
2157
2157
|
const { resolved: t } = this;
|
|
@@ -2246,7 +2246,7 @@ function th(e, t, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatTyp
|
|
|
2246
2246
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
|
-
const nh = cu(() => Object.hasOwnProperty.call(Element.prototype, "animate")),
|
|
2249
|
+
const nh = cu(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Zn = 10, ih = 2e4;
|
|
2250
2250
|
function rh(e) {
|
|
2251
2251
|
return e.type === "spring" || !Au(e.ease);
|
|
2252
2252
|
}
|
|
@@ -2262,11 +2262,11 @@ function oh(e, t) {
|
|
|
2262
2262
|
const r = [];
|
|
2263
2263
|
let o = 0;
|
|
2264
2264
|
for (; !i.done && o < ih; )
|
|
2265
|
-
i = n.sample(o), r.push(i.value), o +=
|
|
2265
|
+
i = n.sample(o), r.push(i.value), o += Zn;
|
|
2266
2266
|
return {
|
|
2267
2267
|
times: void 0,
|
|
2268
2268
|
keyframes: r,
|
|
2269
|
-
duration: o -
|
|
2269
|
+
duration: o - Zn,
|
|
2270
2270
|
ease: "linear"
|
|
2271
2271
|
};
|
|
2272
2272
|
}
|
|
@@ -2288,7 +2288,7 @@ class No extends lu {
|
|
|
2288
2288
|
const l = th(a.owner.current, c, t, { ...this.options, duration: r, times: o, ease: s });
|
|
2289
2289
|
return l.startTime = dt.now(), this.pendingTimeline ? (l.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : l.onfinish = () => {
|
|
2290
2290
|
const { onComplete: d } = this.options;
|
|
2291
|
-
a.set(
|
|
2291
|
+
a.set(si(t, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
|
2292
2292
|
}, {
|
|
2293
2293
|
animation: l,
|
|
2294
2294
|
duration: r,
|
|
@@ -2391,7 +2391,7 @@ class No extends lu {
|
|
|
2391
2391
|
times: u,
|
|
2392
2392
|
isGenerator: !0
|
|
2393
2393
|
}), b = et(this.time);
|
|
2394
|
-
c.setWithVelocity(p.sample(b -
|
|
2394
|
+
c.setWithVelocity(p.sample(b - Zn).value, p.sample(b).value, Zn);
|
|
2395
2395
|
}
|
|
2396
2396
|
const { onStop: a } = this.options;
|
|
2397
2397
|
a && a(), this.cancel();
|
|
@@ -2515,7 +2515,7 @@ const kr = (e, t, n, i = {}, r, o, s) => (u) => {
|
|
|
2515
2515
|
}), d.duration && (d.duration = et(d.duration)), d.repeatDelay && (d.repeatDelay = et(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
|
|
2516
2516
|
let f = !1;
|
|
2517
2517
|
if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (d.duration = 0, d.delay === 0 && (f = !0)), f && !o && t.get() !== void 0) {
|
|
2518
|
-
const p =
|
|
2518
|
+
const p = si(d.keyframes, a);
|
|
2519
2519
|
if (p !== void 0)
|
|
2520
2520
|
return ee.update(() => {
|
|
2521
2521
|
d.onUpdate(p), d.onComplete();
|
|
@@ -2528,7 +2528,7 @@ class zr {
|
|
|
2528
2528
|
this.subscriptions = [];
|
|
2529
2529
|
}
|
|
2530
2530
|
add(t) {
|
|
2531
|
-
return
|
|
2531
|
+
return ni(this.subscriptions, t), () => ii(this.subscriptions, t);
|
|
2532
2532
|
}
|
|
2533
2533
|
notify(t, n, i) {
|
|
2534
2534
|
const r = this.subscriptions.length;
|
|
@@ -2754,7 +2754,7 @@ function lh(e, t, n) {
|
|
|
2754
2754
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, sn(n));
|
|
2755
2755
|
}
|
|
2756
2756
|
function dh(e, t) {
|
|
2757
|
-
const n =
|
|
2757
|
+
const n = oi(e, t);
|
|
2758
2758
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
|
2759
2759
|
o = { ...o, ...i };
|
|
2760
2760
|
for (const s in o) {
|
|
@@ -2781,7 +2781,7 @@ class fh extends Tu {
|
|
|
2781
2781
|
return;
|
|
2782
2782
|
r = !0;
|
|
2783
2783
|
const o = this.counts.get(n) - 1;
|
|
2784
|
-
this.counts.set(n, o), o === 0 && (
|
|
2784
|
+
this.counts.set(n, o), o === 0 && (ii(this.output, n), this.update());
|
|
2785
2785
|
};
|
|
2786
2786
|
}
|
|
2787
2787
|
update() {
|
|
@@ -2837,7 +2837,7 @@ function Pu(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
function nr(e, t, n = {}) {
|
|
2839
2839
|
var i;
|
|
2840
|
-
const r =
|
|
2840
|
+
const r = oi(e, t, n.type === "exit" ? (i = e.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
|
|
2841
2841
|
let { transition: o = e.getDefaultTransition() || {} } = r || {};
|
|
2842
2842
|
n.transitionOverride && (o = n.transitionOverride);
|
|
2843
2843
|
const s = r ? () => Promise.all(Pu(e, r, n)) : () => Promise.resolve(), u = e.variantChildren && e.variantChildren.size ? (c = 0) => {
|
|
@@ -2871,7 +2871,7 @@ function bh(e, t, n = {}) {
|
|
|
2871
2871
|
} else if (typeof t == "string")
|
|
2872
2872
|
i = nr(e, t, n);
|
|
2873
2873
|
else {
|
|
2874
|
-
const r = typeof t == "function" ?
|
|
2874
|
+
const r = typeof t == "function" ? oi(e, t, n.custom) : t;
|
|
2875
2875
|
i = Promise.all(Pu(e, r, n));
|
|
2876
2876
|
}
|
|
2877
2877
|
return i.then(() => {
|
|
@@ -2888,7 +2888,7 @@ function Ih(e) {
|
|
|
2888
2888
|
let t = Ch(e), n = Xo(), i = !0;
|
|
2889
2889
|
const r = (a) => (c, l) => {
|
|
2890
2890
|
var d;
|
|
2891
|
-
const f =
|
|
2891
|
+
const f = oi(e, l, a === "exit" ? (d = e.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
|
2892
2892
|
if (f) {
|
|
2893
2893
|
const { transition: p, transitionEnd: b, ...g } = f;
|
|
2894
2894
|
c = { ...c, ...g, ...b };
|
|
@@ -3076,7 +3076,7 @@ class wu {
|
|
|
3076
3076
|
}, !ka(t))
|
|
3077
3077
|
return;
|
|
3078
3078
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = r || window;
|
|
3079
|
-
const s =
|
|
3079
|
+
const s = ri(t), u = xi(s, this.transformPagePoint), { point: a } = u, { timestamp: c } = be;
|
|
3080
3080
|
this.history = [{ ...a, timestamp: c }];
|
|
3081
3081
|
const { onSessionStart: l } = n;
|
|
3082
3082
|
l && l(t, Ai(u, this.history)), this.removeListeners = qe(Ke(this.contextWindow, "pointermove", this.handlePointerMove), Ke(this.contextWindow, "pointerup", this.handlePointerUp), Ke(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -3251,12 +3251,12 @@ function Mu(e) {
|
|
|
3251
3251
|
function Ko(e) {
|
|
3252
3252
|
return e && e !== "0%";
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3254
|
+
function Hn(e, t, n) {
|
|
3255
3255
|
const i = e - n, r = t * i;
|
|
3256
3256
|
return n + r;
|
|
3257
3257
|
}
|
|
3258
3258
|
function qo(e, t, n, i, r) {
|
|
3259
|
-
return r !== void 0 && (e =
|
|
3259
|
+
return r !== void 0 && (e = Hn(e, r, i)), Hn(e, n, i) + t;
|
|
3260
3260
|
}
|
|
3261
3261
|
function or(e, t = 0, n = 1, i, r) {
|
|
3262
3262
|
e.min = qo(e.min, t, n, i, r), e.max = qo(e.max, t, n, i, r);
|
|
@@ -3309,7 +3309,7 @@ class Jh {
|
|
|
3309
3309
|
return;
|
|
3310
3310
|
const r = (l) => {
|
|
3311
3311
|
const { dragSnapToOrigin: d } = this.getProps();
|
|
3312
|
-
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(
|
|
3312
|
+
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ri(l, "page").point);
|
|
3313
3313
|
}, o = (l, d) => {
|
|
3314
3314
|
var f;
|
|
3315
3315
|
const { drag: p, dragPropagation: b, onDragStart: g } = this.getProps();
|
|
@@ -3374,7 +3374,7 @@ class Jh {
|
|
|
3374
3374
|
}
|
|
3375
3375
|
updateAxis(t, n, i) {
|
|
3376
3376
|
const { drag: r } = this.getProps();
|
|
3377
|
-
if (!i || !
|
|
3377
|
+
if (!i || !yn(t, r, this.currentDirection))
|
|
3378
3378
|
return;
|
|
3379
3379
|
const o = this.getAxisMotionValue(t);
|
|
3380
3380
|
let s = this.originPoint[t] + i[t];
|
|
@@ -3406,7 +3406,7 @@ class Jh {
|
|
|
3406
3406
|
}
|
|
3407
3407
|
startAnimation(t) {
|
|
3408
3408
|
const { drag: n, dragMomentum: i, dragElastic: r, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: u } = this.getProps(), a = this.constraints || {}, c = Oe((l) => {
|
|
3409
|
-
if (!
|
|
3409
|
+
if (!yn(l, n, this.currentDirection))
|
|
3410
3410
|
return;
|
|
3411
3411
|
let d = a && a[l] || {};
|
|
3412
3412
|
s && (d = { min: 0, max: 0 });
|
|
@@ -3455,7 +3455,7 @@ class Jh {
|
|
|
3455
3455
|
snapToCursor(t) {
|
|
3456
3456
|
Oe((n) => {
|
|
3457
3457
|
const { drag: i } = this.getProps();
|
|
3458
|
-
if (!
|
|
3458
|
+
if (!yn(n, i, this.currentDirection))
|
|
3459
3459
|
return;
|
|
3460
3460
|
const { projection: r } = this.visualElement, o = this.getAxisMotionValue(n);
|
|
3461
3461
|
if (r && r.layout) {
|
|
@@ -3486,7 +3486,7 @@ class Jh {
|
|
|
3486
3486
|
});
|
|
3487
3487
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
3488
3488
|
this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), Oe((s) => {
|
|
3489
|
-
if (!
|
|
3489
|
+
if (!yn(s, t, null))
|
|
3490
3490
|
return;
|
|
3491
3491
|
const u = this.getAxisMotionValue(s), { min: a, max: c } = this.constraints[s];
|
|
3492
3492
|
u.set(oe(a, c, r[s]));
|
|
@@ -3527,7 +3527,7 @@ class Jh {
|
|
|
3527
3527
|
};
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3530
|
+
function yn(e, t, n) {
|
|
3531
3531
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
3532
3532
|
}
|
|
3533
3533
|
function Uh(e, t = 10) {
|
|
@@ -3581,13 +3581,13 @@ class $h extends gt {
|
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
function Qh() {
|
|
3584
|
-
const e = se(
|
|
3584
|
+
const e = se(qn);
|
|
3585
3585
|
if (e === null)
|
|
3586
3586
|
return [!0, null];
|
|
3587
3587
|
const { isPresent: t, onExitComplete: n, register: i } = e, r = gr();
|
|
3588
3588
|
return Ze(() => i(r), []), !t && n ? [!1, () => n && n(r)] : [!0];
|
|
3589
3589
|
}
|
|
3590
|
-
const
|
|
3590
|
+
const Rn = {
|
|
3591
3591
|
/**
|
|
3592
3592
|
* Global flag as to whether the tree has animated since the last time
|
|
3593
3593
|
* we resized the window
|
|
@@ -3638,7 +3638,7 @@ class qh extends ga {
|
|
|
3638
3638
|
}), o.setOptions({
|
|
3639
3639
|
...o.options,
|
|
3640
3640
|
onExitComplete: () => this.safeToRemove()
|
|
3641
|
-
})),
|
|
3641
|
+
})), Rn.hasEverUpdated = !0;
|
|
3642
3642
|
}
|
|
3643
3643
|
getSnapshotBeforeUpdate(t) {
|
|
3644
3644
|
const { layoutDependency: n, visualElement: i, drag: r, isPresent: o } = this.props, s = i.projection;
|
|
@@ -3718,7 +3718,7 @@ function cs(e, t) {
|
|
|
3718
3718
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
3719
3719
|
}
|
|
3720
3720
|
function ls(e, t, n, i, r) {
|
|
3721
|
-
return e -= t, e =
|
|
3721
|
+
return e -= t, e = Hn(e, 1 / n, i), r !== void 0 && (e = Hn(e, 1 / r, i)), e;
|
|
3722
3722
|
}
|
|
3723
3723
|
function op(e, t = 0, n = 1, i = 0.5, r, o = e, s = e) {
|
|
3724
3724
|
if (je.test(t) && (t = parseFloat(t), t = oe(s.min, s.max, t / 100) - s.min), typeof t != "number")
|
|
@@ -3756,10 +3756,10 @@ class cp {
|
|
|
3756
3756
|
this.members = [];
|
|
3757
3757
|
}
|
|
3758
3758
|
add(t) {
|
|
3759
|
-
|
|
3759
|
+
ni(this.members, t), t.scheduleRender();
|
|
3760
3760
|
}
|
|
3761
3761
|
remove(t) {
|
|
3762
|
-
if (
|
|
3762
|
+
if (ii(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
|
|
3763
3763
|
const n = this.members[this.members.length - 1];
|
|
3764
3764
|
n && this.promote(n);
|
|
3765
3765
|
}
|
|
@@ -3821,10 +3821,10 @@ class fp {
|
|
|
3821
3821
|
this.children = [], this.isDirty = !1;
|
|
3822
3822
|
}
|
|
3823
3823
|
add(t) {
|
|
3824
|
-
|
|
3824
|
+
ni(this.children, t), this.isDirty = !0;
|
|
3825
3825
|
}
|
|
3826
3826
|
remove(t) {
|
|
3827
|
-
|
|
3827
|
+
ii(this.children, t), this.isDirty = !0;
|
|
3828
3828
|
}
|
|
3829
3829
|
forEach(t) {
|
|
3830
3830
|
this.isDirty && this.children.sort(dp), this.isDirty = !1, this.children.forEach(t);
|
|
@@ -3895,7 +3895,7 @@ function ku({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3895
3895
|
let d;
|
|
3896
3896
|
const f = () => this.root.updateBlockedByResize = !1;
|
|
3897
3897
|
e(s, () => {
|
|
3898
|
-
this.root.updateBlockedByResize = !0, d && d(), d = hp(f, 250),
|
|
3898
|
+
this.root.updateBlockedByResize = !0, d && d(), d = hp(f, 250), Rn.hasAnimatedSinceResize && (Rn.hasAnimatedSinceResize = !1, this.nodes.forEach(vs));
|
|
3899
3899
|
});
|
|
3900
3900
|
}
|
|
3901
3901
|
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && l && (a || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: b }) => {
|
|
@@ -4169,7 +4169,7 @@ function ku({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4169
4169
|
}
|
|
4170
4170
|
startAnimation(s) {
|
|
4171
4171
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (rt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = ee.update(() => {
|
|
4172
|
-
|
|
4172
|
+
Rn.hasAnimatedSinceResize = !0, this.currentAnimation = mp(0, gs, {
|
|
4173
4173
|
...s,
|
|
4174
4174
|
onUpdate: (u) => {
|
|
4175
4175
|
this.mixTargetDelta(u), s.onUpdate && s.onUpdate(u);
|
|
@@ -4264,20 +4264,20 @@ function ku({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4264
4264
|
visibility: ""
|
|
4265
4265
|
}, l = this.getTransformTemplate();
|
|
4266
4266
|
if (this.needsReset)
|
|
4267
|
-
return this.needsReset = !1, c.opacity = "", c.pointerEvents =
|
|
4267
|
+
return this.needsReset = !1, c.opacity = "", c.pointerEvents = wn(s == null ? void 0 : s.pointerEvents) || "", c.transform = l ? l(this.latestValues, "") : "none", c;
|
|
4268
4268
|
const d = this.getLead();
|
|
4269
4269
|
if (!this.projectionDelta || !this.layout || !d.target) {
|
|
4270
4270
|
const g = {};
|
|
4271
|
-
return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents =
|
|
4271
|
+
return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents = wn(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !yt(this.latestValues) && (g.transform = l ? l({}, "") : "none", this.hasProjected = !1), g;
|
|
4272
4272
|
}
|
|
4273
4273
|
const f = d.animationValues || d.latestValues;
|
|
4274
4274
|
this.applyTransformsToTarget(), c.transform = lp(this.projectionDeltaWithTransform, this.treeScale, f), l && (c.transform = l(f, c.transform));
|
|
4275
4275
|
const { x: p, y: b } = this.projectionDelta;
|
|
4276
4276
|
c.transformOrigin = `${p.origin * 100}% ${b.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (a = (u = f.opacity) !== null && u !== void 0 ? u : this.latestValues.opacity) !== null && a !== void 0 ? a : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0;
|
|
4277
|
-
for (const g in
|
|
4277
|
+
for (const g in Nn) {
|
|
4278
4278
|
if (f[g] === void 0)
|
|
4279
4279
|
continue;
|
|
4280
|
-
const { correct: v, applyTo: C } =
|
|
4280
|
+
const { correct: v, applyTo: C } = Nn[g], y = c.transform === "none" ? f[g] : v(f[g], d);
|
|
4281
4281
|
if (C) {
|
|
4282
4282
|
const m = C.length;
|
|
4283
4283
|
for (let I = 0; I < m; I++)
|
|
@@ -4285,7 +4285,7 @@ function ku({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4285
4285
|
} else
|
|
4286
4286
|
c[g] = y;
|
|
4287
4287
|
}
|
|
4288
|
-
return this.options.layoutId && (c.pointerEvents = d === this ?
|
|
4288
|
+
return this.options.layoutId && (c.pointerEvents = d === this ? wn(s == null ? void 0 : s.pointerEvents) || "" : "none"), c;
|
|
4289
4289
|
}
|
|
4290
4290
|
clearSnapshot() {
|
|
4291
4291
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -4495,7 +4495,7 @@ class Xp {
|
|
|
4495
4495
|
this.isRenderScheduled || (this.isRenderScheduled = !0, ee.render(this.render, !1, !0));
|
|
4496
4496
|
};
|
|
4497
4497
|
const { latestValues: a, renderState: c } = s;
|
|
4498
|
-
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.options = u, this.blockInitialAnimation = !!o, this.isControllingVariants =
|
|
4498
|
+
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.options = u, this.blockInitialAnimation = !!o, this.isControllingVariants = ti(n), this.isVariantNode = Pa(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
4499
4499
|
const { willChange: l, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
4500
4500
|
for (const f in d) {
|
|
4501
4501
|
const p = d[f];
|
|
@@ -4740,7 +4740,7 @@ class kp extends Ju {
|
|
|
4740
4740
|
const i = Nr(n);
|
|
4741
4741
|
return i && i.default || 0;
|
|
4742
4742
|
}
|
|
4743
|
-
return n = Oa.has(n) ? n :
|
|
4743
|
+
return n = Oa.has(n) ? n : ei(n), t.getAttribute(n);
|
|
4744
4744
|
}
|
|
4745
4745
|
scrapeMotionValuesFromProps(t, n, i) {
|
|
4746
4746
|
return Wa(t, n, i);
|
|
@@ -4851,7 +4851,7 @@ const wi = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom:
|
|
|
4851
4851
|
u.forEach((l, d) => u.set(d, !1));
|
|
4852
4852
|
}, [n]), Z.useEffect(() => {
|
|
4853
4853
|
!n && !u.size && i && i();
|
|
4854
|
-
}, [n]), s === "popLayout" && (e = w(_p, { isPresent: n, children: e })), w(
|
|
4854
|
+
}, [n]), s === "popLayout" && (e = w(_p, { isPresent: n, children: e })), w(qn.Provider, { value: c, children: e });
|
|
4855
4855
|
};
|
|
4856
4856
|
function $p() {
|
|
4857
4857
|
return /* @__PURE__ */ new Map();
|
|
@@ -4971,11 +4971,11 @@ for (var Vi = 0; Vi < 256; ++Vi)
|
|
|
4971
4971
|
function rm(e, t = 0) {
|
|
4972
4972
|
return (ge[e[t + 0]] + ge[e[t + 1]] + ge[e[t + 2]] + ge[e[t + 3]] + "-" + ge[e[t + 4]] + ge[e[t + 5]] + "-" + ge[e[t + 6]] + ge[e[t + 7]] + "-" + ge[e[t + 8]] + ge[e[t + 9]] + "-" + ge[e[t + 10]] + ge[e[t + 11]] + ge[e[t + 12]] + ge[e[t + 13]] + ge[e[t + 14]] + ge[e[t + 15]]).toLowerCase();
|
|
4973
4973
|
}
|
|
4974
|
-
var
|
|
4974
|
+
var Cn, om = new Uint8Array(16);
|
|
4975
4975
|
function sm() {
|
|
4976
|
-
if (!
|
|
4976
|
+
if (!Cn && (Cn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Cn))
|
|
4977
4977
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4978
|
-
return
|
|
4978
|
+
return Cn(om);
|
|
4979
4979
|
}
|
|
4980
4980
|
var am = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
4981
4981
|
const Es = {
|
|
@@ -5106,7 +5106,7 @@ const gm = (e) => {
|
|
|
5106
5106
|
function Am(e) {
|
|
5107
5107
|
return Et({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(e);
|
|
5108
5108
|
}
|
|
5109
|
-
var
|
|
5109
|
+
var ai = { exports: {} }, $u = {}, ar = { exports: {} }, In = { exports: {} }, $ = {};
|
|
5110
5110
|
/** @license React v16.13.1
|
|
5111
5111
|
* react-is.production.min.js
|
|
5112
5112
|
*
|
|
@@ -5275,7 +5275,7 @@ function Tm() {
|
|
|
5275
5275
|
}
|
|
5276
5276
|
var Vs;
|
|
5277
5277
|
function Qu() {
|
|
5278
|
-
return Vs || (Vs = 1, process.env.NODE_ENV === "production" ?
|
|
5278
|
+
return Vs || (Vs = 1, process.env.NODE_ENV === "production" ? In.exports = Sm() : In.exports = Tm()), In.exports;
|
|
5279
5279
|
}
|
|
5280
5280
|
/*
|
|
5281
5281
|
object-assign
|
|
@@ -5882,11 +5882,11 @@ function Zm(e, t) {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
return i.default = e, n && n.set(e, i), i;
|
|
5884
5884
|
}
|
|
5885
|
-
let
|
|
5885
|
+
let xn = "";
|
|
5886
5886
|
function rc(e, t) {
|
|
5887
|
-
return
|
|
5887
|
+
return xn || (xn = (0, De.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(n) {
|
|
5888
5888
|
return (0, De.isFunction)(e[n]);
|
|
5889
|
-
})), (0, De.isFunction)(e[
|
|
5889
|
+
})), (0, De.isFunction)(e[xn]) ? e[xn](t) : !1;
|
|
5890
5890
|
}
|
|
5891
5891
|
function Hm(e, t, n) {
|
|
5892
5892
|
let i = e;
|
|
@@ -6093,18 +6093,18 @@ function _r(e) {
|
|
|
6093
6093
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
6094
6094
|
return t;
|
|
6095
6095
|
}
|
|
6096
|
-
var
|
|
6097
|
-
Object.defineProperty(
|
|
6096
|
+
var ui = {}, ci = {};
|
|
6097
|
+
Object.defineProperty(ci, "__esModule", {
|
|
6098
6098
|
value: !0
|
|
6099
6099
|
});
|
|
6100
|
-
|
|
6100
|
+
ci.default = lg;
|
|
6101
6101
|
function lg() {
|
|
6102
6102
|
}
|
|
6103
|
-
Object.defineProperty(
|
|
6103
|
+
Object.defineProperty(ui, "__esModule", {
|
|
6104
6104
|
value: !0
|
|
6105
6105
|
});
|
|
6106
|
-
|
|
6107
|
-
var Ni = fg(Qe), Ee = $r(qu), dg = $r(br), Ie = ue, at = _e, Wi = Ue, zt = $r(
|
|
6106
|
+
ui.default = void 0;
|
|
6107
|
+
var Ni = fg(Qe), Ee = $r(qu), dg = $r(br), Ie = ue, at = _e, Wi = Ue, zt = $r(ci);
|
|
6108
6108
|
function $r(e) {
|
|
6109
6109
|
return e && e.__esModule ? e : { default: e };
|
|
6110
6110
|
}
|
|
@@ -6160,7 +6160,7 @@ const Le = {
|
|
|
6160
6160
|
stop: "mouseup"
|
|
6161
6161
|
}
|
|
6162
6162
|
};
|
|
6163
|
-
let ut = Le.mouse,
|
|
6163
|
+
let ut = Le.mouse, li = class extends Ni.Component {
|
|
6164
6164
|
constructor() {
|
|
6165
6165
|
super(...arguments), Te(this, "dragging", !1), Te(this, "lastX", NaN), Te(this, "lastY", NaN), Te(this, "touchIdentifier", null), Te(this, "mounted", !1), Te(this, "handleDragStart", (t) => {
|
|
6166
6166
|
if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0) return !1;
|
|
@@ -6261,9 +6261,9 @@ let ut = Le.mouse, ci = class extends Ni.Component {
|
|
|
6261
6261
|
});
|
|
6262
6262
|
}
|
|
6263
6263
|
};
|
|
6264
|
-
|
|
6265
|
-
Te(
|
|
6266
|
-
Te(
|
|
6264
|
+
ui.default = li;
|
|
6265
|
+
Te(li, "displayName", "DraggableCore");
|
|
6266
|
+
Te(li, "propTypes", {
|
|
6267
6267
|
/**
|
|
6268
6268
|
* `allowAnyClick` allows dragging using any mouse button.
|
|
6269
6269
|
* By default, we only accept the left button.
|
|
@@ -6386,7 +6386,7 @@ Te(ci, "propTypes", {
|
|
|
6386
6386
|
style: Wi.dontSetMe,
|
|
6387
6387
|
transform: Wi.dontSetMe
|
|
6388
6388
|
});
|
|
6389
|
-
Te(
|
|
6389
|
+
Te(li, "defaultProps", {
|
|
6390
6390
|
allowAnyClick: !1,
|
|
6391
6391
|
// by default only accept left click
|
|
6392
6392
|
disabled: !1,
|
|
@@ -6410,7 +6410,7 @@ Te(ci, "defaultProps", {
|
|
|
6410
6410
|
return a.default;
|
|
6411
6411
|
}
|
|
6412
6412
|
}), e.default = void 0;
|
|
6413
|
-
var t = f(Qe), n = l(qu), i = l(br), r = l(Mm), o = ue, s = _e, u = Ue, a = l(
|
|
6413
|
+
var t = f(Qe), n = l(qu), i = l(br), r = l(Mm), o = ue, s = _e, u = Ue, a = l(ui), c = l(ci);
|
|
6414
6414
|
function l(y) {
|
|
6415
6415
|
return y && y.__esModule ? y : { default: y };
|
|
6416
6416
|
}
|
|
@@ -6726,10 +6726,10 @@ const {
|
|
|
6726
6726
|
default: uc,
|
|
6727
6727
|
DraggableCore: mg
|
|
6728
6728
|
} = $u;
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
var gg =
|
|
6729
|
+
ai.exports = uc;
|
|
6730
|
+
ai.exports.default = uc;
|
|
6731
|
+
ai.exports.DraggableCore = mg;
|
|
6732
|
+
var gg = ai.exports;
|
|
6733
6733
|
const bg = /* @__PURE__ */ va(gg);
|
|
6734
6734
|
function vg(e) {
|
|
6735
6735
|
const { children: t } = e, [n, i] = Re(!1);
|
|
@@ -6967,10 +6967,10 @@ function Og(e, t) {
|
|
|
6967
6967
|
writable: !1
|
|
6968
6968
|
}), t && cr(e, t);
|
|
6969
6969
|
}
|
|
6970
|
-
function
|
|
6971
|
-
return
|
|
6970
|
+
function kn(e) {
|
|
6971
|
+
return kn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
6972
6972
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
6973
|
-
},
|
|
6973
|
+
}, kn(e);
|
|
6974
6974
|
}
|
|
6975
6975
|
function dc() {
|
|
6976
6976
|
try {
|
|
@@ -6994,9 +6994,9 @@ function Wg(e, t) {
|
|
|
6994
6994
|
function Lg(e) {
|
|
6995
6995
|
var t = dc();
|
|
6996
6996
|
return function() {
|
|
6997
|
-
var n, i =
|
|
6997
|
+
var n, i = kn(e);
|
|
6998
6998
|
if (t) {
|
|
6999
|
-
var r =
|
|
6999
|
+
var r = kn(this).constructor;
|
|
7000
7000
|
n = Reflect.construct(i, arguments, r);
|
|
7001
7001
|
} else n = i.apply(this, arguments);
|
|
7002
7002
|
return Wg(this, n);
|
|
@@ -7056,7 +7056,7 @@ var Yg = /* @__PURE__ */ function() {
|
|
|
7056
7056
|
return (r = i.parentNode) == null ? void 0 : r.removeChild(i);
|
|
7057
7057
|
}), this.tags = [], this.ctr = 0;
|
|
7058
7058
|
}, e;
|
|
7059
|
-
}(), xe = "-ms-",
|
|
7059
|
+
}(), xe = "-ms-", zn = "-moz-", U = "-webkit-", fc = "comm", qr = "rule", eo = "decl", Jg = "@import", hc = "@keyframes", Ug = "@layer", _g = Math.abs, di = String.fromCharCode, $g = Object.assign;
|
|
7060
7060
|
function Qg(e, t) {
|
|
7061
7061
|
return ve(e, 0) ^ 45 ? (((t << 2 ^ ve(e, 0)) << 2 ^ ve(e, 1)) << 2 ^ ve(e, 2)) << 2 ^ ve(e, 3) : 0;
|
|
7062
7062
|
}
|
|
@@ -7084,32 +7084,32 @@ function ke(e) {
|
|
|
7084
7084
|
function to(e) {
|
|
7085
7085
|
return e.length;
|
|
7086
7086
|
}
|
|
7087
|
-
function
|
|
7087
|
+
function An(e, t) {
|
|
7088
7088
|
return t.push(e), e;
|
|
7089
7089
|
}
|
|
7090
7090
|
function qg(e, t) {
|
|
7091
7091
|
return e.map(t).join("");
|
|
7092
7092
|
}
|
|
7093
|
-
var
|
|
7094
|
-
function
|
|
7095
|
-
return { value: e, root: t, parent: n, type: i, props: r, children: o, line:
|
|
7093
|
+
var fi = 1, Nt = 1, mc = 0, Pe = 0, le = 0, Ht = "";
|
|
7094
|
+
function hi(e, t, n, i, r, o, s) {
|
|
7095
|
+
return { value: e, root: t, parent: n, type: i, props: r, children: o, line: fi, column: Nt, length: s, return: "" };
|
|
7096
7096
|
}
|
|
7097
7097
|
function jt(e, t) {
|
|
7098
|
-
return $g(
|
|
7098
|
+
return $g(hi("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
7099
7099
|
}
|
|
7100
7100
|
function eb() {
|
|
7101
7101
|
return le;
|
|
7102
7102
|
}
|
|
7103
7103
|
function tb() {
|
|
7104
|
-
return le = Pe > 0 ? ve(Ht, --Pe) : 0, Nt--, le === 10 && (Nt = 1,
|
|
7104
|
+
return le = Pe > 0 ? ve(Ht, --Pe) : 0, Nt--, le === 10 && (Nt = 1, fi--), le;
|
|
7105
7105
|
}
|
|
7106
7106
|
function Fe() {
|
|
7107
|
-
return le = Pe < mc ? ve(Ht, Pe++) : 0, Nt++, le === 10 && (Nt = 1,
|
|
7107
|
+
return le = Pe < mc ? ve(Ht, Pe++) : 0, Nt++, le === 10 && (Nt = 1, fi++), le;
|
|
7108
7108
|
}
|
|
7109
7109
|
function Ye() {
|
|
7110
7110
|
return ve(Ht, Pe);
|
|
7111
7111
|
}
|
|
7112
|
-
function
|
|
7112
|
+
function Dn() {
|
|
7113
7113
|
return Pe;
|
|
7114
7114
|
}
|
|
7115
7115
|
function mn(e, t) {
|
|
@@ -7148,12 +7148,12 @@ function cn(e) {
|
|
|
7148
7148
|
return 0;
|
|
7149
7149
|
}
|
|
7150
7150
|
function gc(e) {
|
|
7151
|
-
return
|
|
7151
|
+
return fi = Nt = 1, mc = ke(Ht = e), Pe = 0, [];
|
|
7152
7152
|
}
|
|
7153
7153
|
function bc(e) {
|
|
7154
7154
|
return Ht = "", e;
|
|
7155
7155
|
}
|
|
7156
|
-
function
|
|
7156
|
+
function Fn(e) {
|
|
7157
7157
|
return pc(mn(Pe - 1, dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
7158
7158
|
}
|
|
7159
7159
|
function nb(e) {
|
|
@@ -7164,7 +7164,7 @@ function nb(e) {
|
|
|
7164
7164
|
function ib(e, t) {
|
|
7165
7165
|
for (; --t && Fe() && !(le < 48 || le > 102 || le > 57 && le < 65 || le > 70 && le < 97); )
|
|
7166
7166
|
;
|
|
7167
|
-
return mn(e,
|
|
7167
|
+
return mn(e, Dn() + (t < 6 && Ye() == 32 && Fe() == 32));
|
|
7168
7168
|
}
|
|
7169
7169
|
function dr(e) {
|
|
7170
7170
|
for (; Fe(); )
|
|
@@ -7188,7 +7188,7 @@ function rb(e, t) {
|
|
|
7188
7188
|
for (; Fe() && e + le !== 57; )
|
|
7189
7189
|
if (e + le === 84 && Ye() === 47)
|
|
7190
7190
|
break;
|
|
7191
|
-
return "/*" + mn(t, Pe - 1) + "*" +
|
|
7191
|
+
return "/*" + mn(t, Pe - 1) + "*" + di(e === 47 ? e : Fe());
|
|
7192
7192
|
}
|
|
7193
7193
|
function ob(e) {
|
|
7194
7194
|
for (; !cn(Ye()); )
|
|
@@ -7196,20 +7196,20 @@ function ob(e) {
|
|
|
7196
7196
|
return mn(e, Pe);
|
|
7197
7197
|
}
|
|
7198
7198
|
function sb(e) {
|
|
7199
|
-
return bc(
|
|
7199
|
+
return bc(Mn("", null, null, null, [""], e = gc(e), 0, [0], e));
|
|
7200
7200
|
}
|
|
7201
|
-
function
|
|
7201
|
+
function Mn(e, t, n, i, r, o, s, u, a) {
|
|
7202
7202
|
for (var c = 0, l = 0, d = s, f = 0, p = 0, b = 0, g = 1, v = 1, C = 1, y = 0, m = "", I = r, h = o, A = i, S = m; v; )
|
|
7203
7203
|
switch (b = y, y = Fe()) {
|
|
7204
7204
|
case 40:
|
|
7205
7205
|
if (b != 108 && ve(S, d - 1) == 58) {
|
|
7206
|
-
lr(S += _(
|
|
7206
|
+
lr(S += _(Fn(y), "&", "&\f"), "&\f") != -1 && (C = -1);
|
|
7207
7207
|
break;
|
|
7208
7208
|
}
|
|
7209
7209
|
case 34:
|
|
7210
7210
|
case 39:
|
|
7211
7211
|
case 91:
|
|
7212
|
-
S +=
|
|
7212
|
+
S += Fn(y);
|
|
7213
7213
|
break;
|
|
7214
7214
|
case 9:
|
|
7215
7215
|
case 10:
|
|
@@ -7218,13 +7218,13 @@ function Fn(e, t, n, i, r, o, s, u, a) {
|
|
|
7218
7218
|
S += nb(b);
|
|
7219
7219
|
break;
|
|
7220
7220
|
case 92:
|
|
7221
|
-
S += ib(
|
|
7221
|
+
S += ib(Dn() - 1, 7);
|
|
7222
7222
|
continue;
|
|
7223
7223
|
case 47:
|
|
7224
7224
|
switch (Ye()) {
|
|
7225
7225
|
case 42:
|
|
7226
7226
|
case 47:
|
|
7227
|
-
|
|
7227
|
+
An(ab(rb(Fe(), Dn()), t, n), a);
|
|
7228
7228
|
break;
|
|
7229
7229
|
default:
|
|
7230
7230
|
S += "/";
|
|
@@ -7240,24 +7240,24 @@ function Fn(e, t, n, i, r, o, s, u, a) {
|
|
|
7240
7240
|
case 125:
|
|
7241
7241
|
v = 0;
|
|
7242
7242
|
case 59 + l:
|
|
7243
|
-
C == -1 && (S = _(S, /\f/g, "")), p > 0 && ke(S) - d &&
|
|
7243
|
+
C == -1 && (S = _(S, /\f/g, "")), p > 0 && ke(S) - d && An(p > 32 ? Zs(S + ";", i, n, d - 1) : Zs(_(S, " ", "") + ";", i, n, d - 2), a);
|
|
7244
7244
|
break;
|
|
7245
7245
|
case 59:
|
|
7246
7246
|
S += ";";
|
|
7247
7247
|
default:
|
|
7248
|
-
if (
|
|
7248
|
+
if (An(A = Xs(S, t, n, c, l, r, u, m, I = [], h = [], d), o), y === 123)
|
|
7249
7249
|
if (l === 0)
|
|
7250
|
-
|
|
7250
|
+
Mn(S, t, A, A, I, o, d, u, h);
|
|
7251
7251
|
else
|
|
7252
7252
|
switch (f === 99 && ve(S, 3) === 110 ? 100 : f) {
|
|
7253
7253
|
case 100:
|
|
7254
7254
|
case 108:
|
|
7255
7255
|
case 109:
|
|
7256
7256
|
case 115:
|
|
7257
|
-
|
|
7257
|
+
Mn(e, A, A, i && An(Xs(e, A, A, 0, 0, r, u, m, r, I = [], d), h), r, h, d, u, i ? I : h);
|
|
7258
7258
|
break;
|
|
7259
7259
|
default:
|
|
7260
|
-
|
|
7260
|
+
Mn(S, A, A, A, [""], h, 0, u, h);
|
|
7261
7261
|
}
|
|
7262
7262
|
}
|
|
7263
7263
|
c = l = p = 0, g = C = 1, m = S = "", d = s;
|
|
@@ -7271,7 +7271,7 @@ function Fn(e, t, n, i, r, o, s, u, a) {
|
|
|
7271
7271
|
else if (y == 125 && g++ == 0 && tb() == 125)
|
|
7272
7272
|
continue;
|
|
7273
7273
|
}
|
|
7274
|
-
switch (S +=
|
|
7274
|
+
switch (S += di(y), y * g) {
|
|
7275
7275
|
case 38:
|
|
7276
7276
|
C = l > 0 ? 1 : (S += "\f", -1);
|
|
7277
7277
|
break;
|
|
@@ -7279,7 +7279,7 @@ function Fn(e, t, n, i, r, o, s, u, a) {
|
|
|
7279
7279
|
u[c++] = (ke(S) - 1) * C, C = 1;
|
|
7280
7280
|
break;
|
|
7281
7281
|
case 64:
|
|
7282
|
-
Ye() === 45 && (S +=
|
|
7282
|
+
Ye() === 45 && (S += Fn(Fe())), f = Ye(), l = d = ke(m = S += ob(Dn())), y++;
|
|
7283
7283
|
break;
|
|
7284
7284
|
case 45:
|
|
7285
7285
|
b === 45 && ke(S) == 2 && (g = 0);
|
|
@@ -7291,13 +7291,13 @@ function Xs(e, t, n, i, r, o, s, u, a, c, l) {
|
|
|
7291
7291
|
for (var d = r - 1, f = r === 0 ? o : [""], p = to(f), b = 0, g = 0, v = 0; b < i; ++b)
|
|
7292
7292
|
for (var C = 0, y = un(e, d + 1, d = _g(g = s[b])), m = e; C < p; ++C)
|
|
7293
7293
|
(m = pc(g > 0 ? f[C] + " " + y : _(y, /&\f/g, f[C]))) && (a[v++] = m);
|
|
7294
|
-
return
|
|
7294
|
+
return hi(e, t, n, r === 0 ? qr : u, a, c, l);
|
|
7295
7295
|
}
|
|
7296
7296
|
function ab(e, t, n) {
|
|
7297
|
-
return
|
|
7297
|
+
return hi(e, t, n, fc, di(eb()), un(e, 2, -2), 0);
|
|
7298
7298
|
}
|
|
7299
7299
|
function Zs(e, t, n, i) {
|
|
7300
|
-
return
|
|
7300
|
+
return hi(e, t, n, eo, un(e, 0, i), un(e, i + 1, -1), i);
|
|
7301
7301
|
}
|
|
7302
7302
|
function Bt(e, t) {
|
|
7303
7303
|
for (var n = "", i = to(e), r = 0; r < i; r++)
|
|
@@ -7351,7 +7351,7 @@ var fb = function(t, n, i) {
|
|
|
7351
7351
|
r === 38 && Ye() === 12 && (n[i] = 1), t[i] += fb(Pe - 1, n, i);
|
|
7352
7352
|
break;
|
|
7353
7353
|
case 2:
|
|
7354
|
-
t[i] +=
|
|
7354
|
+
t[i] += Fn(r);
|
|
7355
7355
|
break;
|
|
7356
7356
|
case 4:
|
|
7357
7357
|
if (r === 44) {
|
|
@@ -7359,7 +7359,7 @@ var fb = function(t, n, i) {
|
|
|
7359
7359
|
break;
|
|
7360
7360
|
}
|
|
7361
7361
|
default:
|
|
7362
|
-
t[i] +=
|
|
7362
|
+
t[i] += di(r);
|
|
7363
7363
|
}
|
|
7364
7364
|
while (r = Fe());
|
|
7365
7365
|
return t;
|
|
@@ -7421,7 +7421,7 @@ function vc(e, t) {
|
|
|
7421
7421
|
case 4810:
|
|
7422
7422
|
case 6968:
|
|
7423
7423
|
case 2756:
|
|
7424
|
-
return U + e +
|
|
7424
|
+
return U + e + zn + e + xe + e + e;
|
|
7425
7425
|
case 6828:
|
|
7426
7426
|
case 4268:
|
|
7427
7427
|
return U + e + xe + e + e;
|
|
@@ -7469,7 +7469,7 @@ function vc(e, t) {
|
|
|
7469
7469
|
case 109:
|
|
7470
7470
|
if (ve(e, t + 4) !== 45) break;
|
|
7471
7471
|
case 102:
|
|
7472
|
-
return _(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" +
|
|
7472
|
+
return _(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" + zn + (ve(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
7473
7473
|
case 115:
|
|
7474
7474
|
return ~lr(e, "stretch") ? vc(_(e, "stretch", "fill-available"), t) + e : e;
|
|
7475
7475
|
}
|
|
@@ -7512,13 +7512,13 @@ var bb = function(t, n, i, r) {
|
|
|
7512
7512
|
case ":read-only":
|
|
7513
7513
|
case ":read-write":
|
|
7514
7514
|
return Bt([jt(t, {
|
|
7515
|
-
props: [_(o, /:(read-\w+)/, ":" +
|
|
7515
|
+
props: [_(o, /:(read-\w+)/, ":" + zn + "$1")]
|
|
7516
7516
|
})], r);
|
|
7517
7517
|
case "::placeholder":
|
|
7518
7518
|
return Bt([jt(t, {
|
|
7519
7519
|
props: [_(o, /:(plac\w+)/, ":" + U + "input-$1")]
|
|
7520
7520
|
}), jt(t, {
|
|
7521
|
-
props: [_(o, /:(plac\w+)/, ":" +
|
|
7521
|
+
props: [_(o, /:(plac\w+)/, ":" + zn + "$1")]
|
|
7522
7522
|
}), jt(t, {
|
|
7523
7523
|
props: [_(o, /:(plac\w+)/, xe + "input-$1")]
|
|
7524
7524
|
})], r);
|
|
@@ -7993,7 +7993,7 @@ var Gb = function(t) {
|
|
|
7993
7993
|
);
|
|
7994
7994
|
Sc.Provider;
|
|
7995
7995
|
var Lb = function(t) {
|
|
7996
|
-
return /* @__PURE__ */
|
|
7996
|
+
return /* @__PURE__ */ Qn(function(n, i) {
|
|
7997
7997
|
var r = se(Sc);
|
|
7998
7998
|
return t(n, r, i);
|
|
7999
7999
|
});
|
|
@@ -8058,7 +8058,7 @@ function Yb(e, t) {
|
|
|
8058
8058
|
}
|
|
8059
8059
|
}));
|
|
8060
8060
|
}
|
|
8061
|
-
const Jb = Math.min, Ub = Math.max,
|
|
8061
|
+
const Jb = Math.min, Ub = Math.max, jn = Math.round, Sn = Math.floor, Yn = (e) => ({
|
|
8062
8062
|
x: e,
|
|
8063
8063
|
y: e
|
|
8064
8064
|
});
|
|
@@ -8137,16 +8137,16 @@ function Vc(e) {
|
|
|
8137
8137
|
const t = qb(e);
|
|
8138
8138
|
return Kb(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ro(t) && wc(t) ? t : Vc(t);
|
|
8139
8139
|
}
|
|
8140
|
-
function
|
|
8140
|
+
function Jn(e, t, n) {
|
|
8141
8141
|
var i;
|
|
8142
8142
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
8143
8143
|
const r = Vc(e), o = r === ((i = e.ownerDocument) == null ? void 0 : i.body), s = ot(r);
|
|
8144
|
-
return o ? t.concat(s, s.visualViewport || [], wc(r) ? r : [], s.frameElement && n ?
|
|
8144
|
+
return o ? t.concat(s, s.visualViewport || [], wc(r) ? r : [], s.frameElement && n ? Jn(s.frameElement) : []) : t.concat(r, Jn(r, [], n));
|
|
8145
8145
|
}
|
|
8146
8146
|
function e0(e) {
|
|
8147
8147
|
const t = oo(e);
|
|
8148
8148
|
let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
|
8149
|
-
const r = ro(e), o = r ? e.offsetWidth : n, s = r ? e.offsetHeight : i, u =
|
|
8149
|
+
const r = ro(e), o = r ? e.offsetWidth : n, s = r ? e.offsetHeight : i, u = jn(n) !== o || jn(i) !== s;
|
|
8150
8150
|
return u && (n = o, i = s), {
|
|
8151
8151
|
width: n,
|
|
8152
8152
|
height: i,
|
|
@@ -8159,19 +8159,19 @@ function so(e) {
|
|
|
8159
8159
|
function _s(e) {
|
|
8160
8160
|
const t = so(e);
|
|
8161
8161
|
if (!ro(t))
|
|
8162
|
-
return
|
|
8162
|
+
return Yn(1);
|
|
8163
8163
|
const n = t.getBoundingClientRect(), {
|
|
8164
8164
|
width: i,
|
|
8165
8165
|
height: r,
|
|
8166
8166
|
$: o
|
|
8167
8167
|
} = e0(t);
|
|
8168
|
-
let s = (o ?
|
|
8168
|
+
let s = (o ? jn(n.width) : n.width) / i, u = (o ? jn(n.height) : n.height) / r;
|
|
8169
8169
|
return (!s || !Number.isFinite(s)) && (s = 1), (!u || !Number.isFinite(u)) && (u = 1), {
|
|
8170
8170
|
x: s,
|
|
8171
8171
|
y: u
|
|
8172
8172
|
};
|
|
8173
8173
|
}
|
|
8174
|
-
const t0 = /* @__PURE__ */
|
|
8174
|
+
const t0 = /* @__PURE__ */ Yn(0);
|
|
8175
8175
|
function n0(e) {
|
|
8176
8176
|
const t = ot(e);
|
|
8177
8177
|
return !Qb() || !t.visualViewport ? t0 : {
|
|
@@ -8185,9 +8185,9 @@ function i0(e, t, n) {
|
|
|
8185
8185
|
function $s(e, t, n, i) {
|
|
8186
8186
|
t === void 0 && (t = !1);
|
|
8187
8187
|
const r = e.getBoundingClientRect(), o = so(e);
|
|
8188
|
-
let s =
|
|
8188
|
+
let s = Yn(1);
|
|
8189
8189
|
t && (s = _s(e));
|
|
8190
|
-
const u = i0() ? n0(o) :
|
|
8190
|
+
const u = i0() ? n0(o) : Yn(0);
|
|
8191
8191
|
let a = (r.left + u.x) / s.x, c = (r.top + u.y) / s.y, l = r.width / s.x, d = r.height / s.y;
|
|
8192
8192
|
if (o) {
|
|
8193
8193
|
const f = ot(o), p = i;
|
|
@@ -8221,7 +8221,7 @@ function r0(e, t) {
|
|
|
8221
8221
|
} = e.getBoundingClientRect();
|
|
8222
8222
|
if (u || t(), !d || !f)
|
|
8223
8223
|
return;
|
|
8224
|
-
const p =
|
|
8224
|
+
const p = Sn(l), b = Sn(r.clientWidth - (c + d)), g = Sn(r.clientHeight - (l + f)), v = Sn(c), y = {
|
|
8225
8225
|
rootMargin: -p + "px " + -b + "px " + -g + "px " + -v + "px",
|
|
8226
8226
|
threshold: Ub(0, Jb(1, a)) || 1
|
|
8227
8227
|
};
|
|
@@ -8258,7 +8258,7 @@ function o0(e, t, n, i) {
|
|
|
8258
8258
|
elementResize: s = typeof ResizeObserver == "function",
|
|
8259
8259
|
layoutShift: u = typeof IntersectionObserver == "function",
|
|
8260
8260
|
animationFrame: a = !1
|
|
8261
|
-
} = i, c = so(e), l = r || o ? [...c ?
|
|
8261
|
+
} = i, c = so(e), l = r || o ? [...c ? Jn(c) : [], ...Jn(t)] : [];
|
|
8262
8262
|
l.forEach((C) => {
|
|
8263
8263
|
r && C.addEventListener("scroll", n, {
|
|
8264
8264
|
passive: !0
|
|
@@ -8286,7 +8286,7 @@ function o0(e, t, n, i) {
|
|
|
8286
8286
|
}), d == null || d(), (C = p) == null || C.disconnect(), p = null, a && cancelAnimationFrame(b);
|
|
8287
8287
|
};
|
|
8288
8288
|
}
|
|
8289
|
-
var pr = pa, s0 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"],
|
|
8289
|
+
var pr = pa, s0 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Un = function() {
|
|
8290
8290
|
};
|
|
8291
8291
|
function a0(e, t) {
|
|
8292
8292
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
|
@@ -8317,17 +8317,17 @@ var Qs = function(t) {
|
|
|
8317
8317
|
className: r(i ?? {}, s(n, t), u)
|
|
8318
8318
|
};
|
|
8319
8319
|
};
|
|
8320
|
-
function
|
|
8320
|
+
function pi(e) {
|
|
8321
8321
|
return [document.documentElement, document.body, window].indexOf(e) > -1;
|
|
8322
8322
|
}
|
|
8323
8323
|
function c0(e) {
|
|
8324
|
-
return
|
|
8324
|
+
return pi(e) ? window.innerHeight : e.clientHeight;
|
|
8325
8325
|
}
|
|
8326
8326
|
function Dc(e) {
|
|
8327
|
-
return
|
|
8327
|
+
return pi(e) ? window.pageYOffset : e.scrollTop;
|
|
8328
8328
|
}
|
|
8329
|
-
function
|
|
8330
|
-
if (
|
|
8329
|
+
function _n(e, t) {
|
|
8330
|
+
if (pi(e)) {
|
|
8331
8331
|
window.scrollTo(0, t);
|
|
8332
8332
|
return;
|
|
8333
8333
|
}
|
|
@@ -8344,18 +8344,18 @@ function l0(e) {
|
|
|
8344
8344
|
function d0(e, t, n, i) {
|
|
8345
8345
|
return n * ((e = e / i - 1) * e * e + 1) + t;
|
|
8346
8346
|
}
|
|
8347
|
-
function
|
|
8348
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
8347
|
+
function Tn(e, t) {
|
|
8348
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Un, r = Dc(e), o = t - r, s = 10, u = 0;
|
|
8349
8349
|
function a() {
|
|
8350
8350
|
u += s;
|
|
8351
8351
|
var c = d0(u, r, o, n);
|
|
8352
|
-
|
|
8352
|
+
_n(e, c), u < n ? window.requestAnimationFrame(a) : i(e);
|
|
8353
8353
|
}
|
|
8354
8354
|
a();
|
|
8355
8355
|
}
|
|
8356
8356
|
function Ks(e, t) {
|
|
8357
8357
|
var n = e.getBoundingClientRect(), i = t.getBoundingClientRect(), r = t.offsetHeight / 3;
|
|
8358
|
-
i.bottom + r > n.bottom ?
|
|
8358
|
+
i.bottom + r > n.bottom ? _n(e, Math.min(t.offsetTop + t.clientHeight - e.offsetHeight + r, e.scrollHeight)) : i.top - r < n.top && _n(e, Math.max(t.offsetTop - r, 0));
|
|
8359
8359
|
}
|
|
8360
8360
|
function f0(e) {
|
|
8361
8361
|
var t = e.getBoundingClientRect();
|
|
@@ -8386,8 +8386,8 @@ var Fc = !1, p0 = {
|
|
|
8386
8386
|
get passive() {
|
|
8387
8387
|
return Fc = !0;
|
|
8388
8388
|
}
|
|
8389
|
-
},
|
|
8390
|
-
|
|
8389
|
+
}, En = typeof window < "u" ? window : {};
|
|
8390
|
+
En.addEventListener && En.removeEventListener && (En.addEventListener("p", Un, p0), En.removeEventListener("p", Un, !1));
|
|
8391
8391
|
var m0 = Fc;
|
|
8392
8392
|
function g0(e) {
|
|
8393
8393
|
return e != null;
|
|
@@ -8395,7 +8395,7 @@ function g0(e) {
|
|
|
8395
8395
|
function b0(e) {
|
|
8396
8396
|
return Array.isArray(e);
|
|
8397
8397
|
}
|
|
8398
|
-
function
|
|
8398
|
+
function Pn(e, t, n) {
|
|
8399
8399
|
return e ? t : n;
|
|
8400
8400
|
}
|
|
8401
8401
|
var v0 = function(t) {
|
|
@@ -8426,12 +8426,12 @@ function I0(e) {
|
|
|
8426
8426
|
maxHeight: t
|
|
8427
8427
|
};
|
|
8428
8428
|
if (R >= b && !s)
|
|
8429
|
-
return o &&
|
|
8429
|
+
return o && Tn(a, L, te), {
|
|
8430
8430
|
placement: "bottom",
|
|
8431
8431
|
maxHeight: t
|
|
8432
8432
|
};
|
|
8433
8433
|
if (!s && R >= i || s && S >= i) {
|
|
8434
|
-
o &&
|
|
8434
|
+
o && Tn(a, L, te);
|
|
8435
8435
|
var fe = s ? S - I : R - I;
|
|
8436
8436
|
return {
|
|
8437
8437
|
placement: "bottom",
|
|
@@ -8446,7 +8446,7 @@ function I0(e) {
|
|
|
8446
8446
|
};
|
|
8447
8447
|
}
|
|
8448
8448
|
if (r === "bottom")
|
|
8449
|
-
return o &&
|
|
8449
|
+
return o && _n(a, L), {
|
|
8450
8450
|
placement: "bottom",
|
|
8451
8451
|
maxHeight: t
|
|
8452
8452
|
};
|
|
@@ -8458,13 +8458,13 @@ function I0(e) {
|
|
|
8458
8458
|
maxHeight: t
|
|
8459
8459
|
};
|
|
8460
8460
|
if (E >= b && !s)
|
|
8461
|
-
return o &&
|
|
8461
|
+
return o && Tn(a, J, te), {
|
|
8462
8462
|
placement: "top",
|
|
8463
8463
|
maxHeight: t
|
|
8464
8464
|
};
|
|
8465
8465
|
if (!s && E >= i || s && A >= i) {
|
|
8466
8466
|
var k = t;
|
|
8467
|
-
return (!s && E >= i || s && A >= i) && (k = s ? A - h : E - h), o &&
|
|
8467
|
+
return (!s && E >= i || s && A >= i) && (k = s ? A - h : E - h), o && Tn(a, J, te), {
|
|
8468
8468
|
placement: "top",
|
|
8469
8469
|
maxHeight: k
|
|
8470
8470
|
};
|
|
@@ -9854,7 +9854,7 @@ var ly = function(t) {
|
|
|
9854
9854
|
unstyled: !1
|
|
9855
9855
|
};
|
|
9856
9856
|
function da(e, t, n, i) {
|
|
9857
|
-
var r = Jc(e, t, n), o = Uc(e, t, n), s = Yc(e, t), u =
|
|
9857
|
+
var r = Jc(e, t, n), o = Uc(e, t, n), s = Yc(e, t), u = $n(e, t);
|
|
9858
9858
|
return {
|
|
9859
9859
|
type: "option",
|
|
9860
9860
|
data: t,
|
|
@@ -9865,7 +9865,7 @@ function da(e, t, n, i) {
|
|
|
9865
9865
|
index: i
|
|
9866
9866
|
};
|
|
9867
9867
|
}
|
|
9868
|
-
function
|
|
9868
|
+
function Bn(e, t) {
|
|
9869
9869
|
return e.options.map(function(n, i) {
|
|
9870
9870
|
if ("options" in n) {
|
|
9871
9871
|
var r = n.options.map(function(s, u) {
|
|
@@ -9905,7 +9905,7 @@ function fa(e, t) {
|
|
|
9905
9905
|
}, []);
|
|
9906
9906
|
}
|
|
9907
9907
|
function Iy(e, t) {
|
|
9908
|
-
return jc(
|
|
9908
|
+
return jc(Bn(e, t));
|
|
9909
9909
|
}
|
|
9910
9910
|
function ha(e, t) {
|
|
9911
9911
|
var n = e.inputValue, i = n === void 0 ? "" : n, r = t.data, o = t.isSelected, s = t.label, u = t.value;
|
|
@@ -9937,7 +9937,7 @@ var ji = function(t, n) {
|
|
|
9937
9937
|
return r || null;
|
|
9938
9938
|
}, Yc = function(t, n) {
|
|
9939
9939
|
return t.getOptionLabel(n);
|
|
9940
|
-
},
|
|
9940
|
+
}, $n = function(t, n) {
|
|
9941
9941
|
return t.getOptionValue(n);
|
|
9942
9942
|
};
|
|
9943
9943
|
function Jc(e, t, n) {
|
|
@@ -9947,9 +9947,9 @@ function Uc(e, t, n) {
|
|
|
9947
9947
|
if (n.indexOf(t) > -1) return !0;
|
|
9948
9948
|
if (typeof e.isOptionSelected == "function")
|
|
9949
9949
|
return e.isOptionSelected(t, n);
|
|
9950
|
-
var i =
|
|
9950
|
+
var i = $n(e, t);
|
|
9951
9951
|
return n.some(function(r) {
|
|
9952
|
-
return
|
|
9952
|
+
return $n(e, r) === i;
|
|
9953
9953
|
});
|
|
9954
9954
|
}
|
|
9955
9955
|
function _c(e, t, n) {
|
|
@@ -10022,19 +10022,19 @@ var $c = function(t) {
|
|
|
10022
10022
|
}, r.removeValue = function(a) {
|
|
10023
10023
|
var c = r.props.isMulti, l = r.state.selectValue, d = r.getOptionValue(a), f = l.filter(function(b) {
|
|
10024
10024
|
return r.getOptionValue(b) !== d;
|
|
10025
|
-
}), p =
|
|
10025
|
+
}), p = Pn(c, f, f[0] || null);
|
|
10026
10026
|
r.onChange(p, {
|
|
10027
10027
|
action: "remove-value",
|
|
10028
10028
|
removedValue: a
|
|
10029
10029
|
}), r.focusInput();
|
|
10030
10030
|
}, r.clearValue = function() {
|
|
10031
10031
|
var a = r.state.selectValue;
|
|
10032
|
-
r.onChange(
|
|
10032
|
+
r.onChange(Pn(r.props.isMulti, [], null), {
|
|
10033
10033
|
action: "clear",
|
|
10034
10034
|
removedValues: a
|
|
10035
10035
|
});
|
|
10036
10036
|
}, r.popValue = function() {
|
|
10037
|
-
var a = r.props.isMulti, c = r.state.selectValue, l = c[c.length - 1], d = c.slice(0, c.length - 1), f =
|
|
10037
|
+
var a = r.props.isMulti, c = r.state.selectValue, l = c[c.length - 1], d = c.slice(0, c.length - 1), f = Pn(a, d, d[0] || null);
|
|
10038
10038
|
r.onChange(f, {
|
|
10039
10039
|
action: "pop-value",
|
|
10040
10040
|
removedValue: l
|
|
@@ -10042,7 +10042,7 @@ var $c = function(t) {
|
|
|
10042
10042
|
}, r.getFocusedOptionId = function(a) {
|
|
10043
10043
|
return ji(r.state.focusableOptionsWithIds, a);
|
|
10044
10044
|
}, r.getFocusableOptionsWithIds = function() {
|
|
10045
|
-
return fa(
|
|
10045
|
+
return fa(Bn(r.props, r.state.selectValue), r.getElementId("option"));
|
|
10046
10046
|
}, r.getValue = function() {
|
|
10047
10047
|
return r.state.selectValue;
|
|
10048
10048
|
}, r.cx = function() {
|
|
@@ -10052,7 +10052,7 @@ var $c = function(t) {
|
|
|
10052
10052
|
}, r.getOptionLabel = function(a) {
|
|
10053
10053
|
return Yc(r.props, a);
|
|
10054
10054
|
}, r.getOptionValue = function(a) {
|
|
10055
|
-
return
|
|
10055
|
+
return $n(r.props, a);
|
|
10056
10056
|
}, r.getStyles = function(a, c) {
|
|
10057
10057
|
var l = r.props.unstyled, d = py[a](c, l);
|
|
10058
10058
|
d.boxSizing = "border-box";
|
|
@@ -10066,7 +10066,7 @@ var $c = function(t) {
|
|
|
10066
10066
|
}, r.getComponents = function() {
|
|
10067
10067
|
return Mv(r.props);
|
|
10068
10068
|
}, r.buildCategorizedOptions = function() {
|
|
10069
|
-
return
|
|
10069
|
+
return Bn(r.props, r.state.selectValue);
|
|
10070
10070
|
}, r.getCategorizedOptions = function() {
|
|
10071
10071
|
return r.props.menuIsOpen ? r.buildCategorizedOptions() : [];
|
|
10072
10072
|
}, r.buildFocusableOptions = function() {
|
|
@@ -10100,7 +10100,7 @@ var $c = function(t) {
|
|
|
10100
10100
|
return r.focusInput();
|
|
10101
10101
|
}));
|
|
10102
10102
|
}, r.onScroll = function(a) {
|
|
10103
|
-
typeof r.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement &&
|
|
10103
|
+
typeof r.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement && pi(a.target) && r.props.onMenuClose() : typeof r.props.closeMenuOnScroll == "function" && r.props.closeMenuOnScroll(a) && r.props.onMenuClose();
|
|
10104
10104
|
}, r.onCompositionStart = function() {
|
|
10105
10105
|
r.isComposing = !0;
|
|
10106
10106
|
}, r.onCompositionEnd = function() {
|
|
@@ -10523,7 +10523,7 @@ var $c = function(t) {
|
|
|
10523
10523
|
id: m,
|
|
10524
10524
|
innerRef: this.getInputRef,
|
|
10525
10525
|
onBlur: this.onInputBlur,
|
|
10526
|
-
onChange:
|
|
10526
|
+
onChange: Un,
|
|
10527
10527
|
onFocus: this.onInputFocus,
|
|
10528
10528
|
disabled: o,
|
|
10529
10529
|
tabIndex: c,
|
|
@@ -10839,7 +10839,7 @@ var $c = function(t) {
|
|
|
10839
10839
|
value: function(r, o) {
|
|
10840
10840
|
var s = o.prevProps, u = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, c = o.ariaSelection, l = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = r.options, b = r.value, g = r.menuIsOpen, v = r.inputValue, C = r.isMulti, y = Qs(b), m = {};
|
|
10841
10841
|
if (s && (b !== s.value || p !== s.options || g !== s.menuIsOpen || v !== s.inputValue)) {
|
|
10842
|
-
var I = g ? Iy(r, y) : [], h = g ? fa(
|
|
10842
|
+
var I = g ? Iy(r, y) : [], h = g ? fa(Bn(r, y), "".concat(f, "-option")) : [], A = u ? xy(o, y) : null, S = Ay(o, I), E = ji(h, S);
|
|
10843
10843
|
m = {
|
|
10844
10844
|
selectValue: y,
|
|
10845
10845
|
focusedOption: S,
|
|
@@ -10854,7 +10854,7 @@ var $c = function(t) {
|
|
|
10854
10854
|
inputIsHiddenAfterUpdate: void 0
|
|
10855
10855
|
} : {}, L = c, J = l && d;
|
|
10856
10856
|
return l && !J && (L = {
|
|
10857
|
-
value:
|
|
10857
|
+
value: Pn(C, y, y[0] || null),
|
|
10858
10858
|
options: y,
|
|
10859
10859
|
action: "initial-input-focus"
|
|
10860
10860
|
}, J = !d), (c == null ? void 0 : c.action) === "initial-input-focus" && (L = null), B(B(B({}, m), R), {}, {
|
|
@@ -10866,17 +10866,16 @@ var $c = function(t) {
|
|
|
10866
10866
|
}]), n;
|
|
10867
10867
|
}(ga);
|
|
10868
10868
|
Qc.defaultProps = Cy;
|
|
10869
|
-
var Ty = /* @__PURE__ */
|
|
10869
|
+
var Ty = /* @__PURE__ */ Qn(function(e, t) {
|
|
10870
10870
|
var n = Mg(e);
|
|
10871
10871
|
return /* @__PURE__ */ Z.createElement(Qc, N({
|
|
10872
10872
|
ref: t
|
|
10873
10873
|
}, n));
|
|
10874
10874
|
}), Ey = Ty;
|
|
10875
|
-
|
|
10875
|
+
const gn = (e) => {
|
|
10876
10876
|
const { children: t, sx: n, ...i } = e;
|
|
10877
10877
|
return /* @__PURE__ */ w("div", { className: ft.form, style: n, ...i, children: t });
|
|
10878
|
-
}
|
|
10879
|
-
const Py = {
|
|
10878
|
+
}, Ly = gn, Py = {
|
|
10880
10879
|
menuPortal: (e) => ({ ...e, zIndex: "9999999999 !important" }),
|
|
10881
10880
|
control: (e, t) => ({
|
|
10882
10881
|
...e,
|
|
@@ -10951,7 +10950,7 @@ const Py = {
|
|
|
10951
10950
|
}, Kc = (e) => {
|
|
10952
10951
|
const { required: t = !1, children: n, sx: i, ...r } = e;
|
|
10953
10952
|
return /* @__PURE__ */ w("label", { className: Wt(ft["form-input-group-label"], t && ft.required), style: i, ...r, children: n });
|
|
10954
|
-
}, qc =
|
|
10953
|
+
}, qc = Qn((e, t) => {
|
|
10955
10954
|
const { type: n, focus: i, sx: r, ...o } = e;
|
|
10956
10955
|
let s = /* @__PURE__ */ w(qt, {});
|
|
10957
10956
|
const u = de(null);
|
|
@@ -10972,13 +10971,13 @@ const Py = {
|
|
|
10972
10971
|
});
|
|
10973
10972
|
Kc.displayName = "biznext-ui-input-label";
|
|
10974
10973
|
qc.displayName = "biznext-ui-input-control";
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10974
|
+
gn.Group = wy;
|
|
10975
|
+
gn.InputGroup = Vy;
|
|
10976
|
+
gn.Label = Kc;
|
|
10977
|
+
gn.Control = qc;
|
|
10979
10978
|
export {
|
|
10980
10979
|
Gy as BiznextUIProvider,
|
|
10981
|
-
|
|
10980
|
+
Ly as Form,
|
|
10982
10981
|
Ny as Modal,
|
|
10983
10982
|
Wy as useConfirmDialog,
|
|
10984
10983
|
sl as useToast
|