@canaia/ui-kit 0.0.10-alpha.37 → 0.0.10-alpha.39
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/canaia-ui-kit.es.js +93 -83
- package/dist/canaia-ui-kit.umd.js +2 -2
- package/package.json +1 -1
package/dist/canaia-ui-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as we from "react";
|
|
2
|
-
import Rt, { Children as Aa, isValidElement as _o, createContext as pr, useContext as jt, useRef as De, useEffect as
|
|
2
|
+
import Rt, { Children as Aa, isValidElement as _o, createContext as pr, useContext as jt, useRef as De, useEffect as ze, useCallback as oe, useState as Le, useId as hr, useLayoutEffect as sc, useMemo as Ve, forwardRef as $n, Component as z4, useInsertionEffect as H0, Fragment as Ea, createElement as U0, memo as L4, useSyncExternalStore as B4, cloneElement as Or, PureComponent as N4, useReducer as V4, useImperativeHandle as W4 } from "react";
|
|
3
3
|
import { createPortal as q0 } from "react-dom";
|
|
4
4
|
var Ya = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function cc(e) {
|
|
@@ -1435,7 +1435,7 @@ var yg = zs.exports;
|
|
|
1435
1435
|
const On = /* @__PURE__ */ cc(yg);
|
|
1436
1436
|
function Yr(e, t = []) {
|
|
1437
1437
|
const n = De(e);
|
|
1438
|
-
return
|
|
1438
|
+
return ze(() => {
|
|
1439
1439
|
n.current = e;
|
|
1440
1440
|
}), oe((...r) => {
|
|
1441
1441
|
var o;
|
|
@@ -1444,7 +1444,7 @@ function Yr(e, t = []) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
function vs(e, t, n, r) {
|
|
1446
1446
|
const o = Yr(n);
|
|
1447
|
-
return
|
|
1447
|
+
return ze(() => {
|
|
1448
1448
|
const i = typeof e == "function" ? e() : e ?? document;
|
|
1449
1449
|
if (!(!n || !i))
|
|
1450
1450
|
return i.addEventListener(t, o, r), () => {
|
|
@@ -1456,8 +1456,8 @@ function vs(e, t, n, r) {
|
|
|
1456
1456
|
};
|
|
1457
1457
|
}
|
|
1458
1458
|
function xg(e) {
|
|
1459
|
-
const { isOpen: t, ref: n } = e, [r, o] =
|
|
1460
|
-
return
|
|
1459
|
+
const { isOpen: t, ref: n } = e, [r, o] = Le(t), [i, a] = Le(!1);
|
|
1460
|
+
return ze(() => {
|
|
1461
1461
|
i || (o(t), a(!0));
|
|
1462
1462
|
}, [t, i, r]), vs(
|
|
1463
1463
|
() => n.current,
|
|
@@ -1480,7 +1480,7 @@ function Cg(e) {
|
|
|
1480
1480
|
defaultValue: n,
|
|
1481
1481
|
onChange: r,
|
|
1482
1482
|
shouldUpdate: o = (p, h) => p !== h
|
|
1483
|
-
} = e, i = Yr(r), a = Yr(o), [s, c] =
|
|
1483
|
+
} = e, i = Yr(r), a = Yr(o), [s, c] = Le(n), l = t !== void 0, u = l ? t : s, f = Yr(
|
|
1484
1484
|
(p) => {
|
|
1485
1485
|
const v = typeof p == "function" ? p(u) : p;
|
|
1486
1486
|
a(u, v) && (l || c(v), i(v));
|
|
@@ -1495,7 +1495,7 @@ function Bu(e = {}) {
|
|
|
1495
1495
|
onOpen: n,
|
|
1496
1496
|
isOpen: r,
|
|
1497
1497
|
id: o
|
|
1498
|
-
} = e, i = Yr(n), a = Yr(t), [s, c] =
|
|
1498
|
+
} = e, i = Yr(n), a = Yr(t), [s, c] = Le(e.defaultIsOpen || !1), l = r !== void 0 ? r : s, u = r !== void 0, f = hr(), p = o ?? `disclosure-${f}`, h = oe(() => {
|
|
1499
1499
|
u || c(!1), a == null || a();
|
|
1500
1500
|
}, [u, a]), v = oe(() => {
|
|
1501
1501
|
u || c(!0), i == null || i();
|
|
@@ -1530,13 +1530,13 @@ function Bu(e = {}) {
|
|
|
1530
1530
|
getDisclosureProps: x
|
|
1531
1531
|
};
|
|
1532
1532
|
}
|
|
1533
|
-
const Ls = globalThis != null && globalThis.document ? sc :
|
|
1533
|
+
const Ls = globalThis != null && globalThis.document ? sc : ze, ua = (e, t) => {
|
|
1534
1534
|
const n = De(!1), r = De(!1);
|
|
1535
|
-
|
|
1535
|
+
ze(() => {
|
|
1536
1536
|
if (n.current && r.current)
|
|
1537
1537
|
return e();
|
|
1538
1538
|
r.current = !0;
|
|
1539
|
-
}, t),
|
|
1539
|
+
}, t), ze(() => (n.current = !0, () => {
|
|
1540
1540
|
n.current = !1;
|
|
1541
1541
|
}), []);
|
|
1542
1542
|
};
|
|
@@ -1601,7 +1601,7 @@ function Pg(e) {
|
|
|
1601
1601
|
isPointerDown: !1,
|
|
1602
1602
|
ignoreEmulatedMouseEvents: !1
|
|
1603
1603
|
}).current;
|
|
1604
|
-
|
|
1604
|
+
ze(() => {
|
|
1605
1605
|
if (!r)
|
|
1606
1606
|
return;
|
|
1607
1607
|
const s = (f) => {
|
|
@@ -1630,7 +1630,7 @@ function nh(e) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
function Ag(e, t) {
|
|
1632
1632
|
const n = Yr(e);
|
|
1633
|
-
|
|
1633
|
+
ze(() => {
|
|
1634
1634
|
if (t == null)
|
|
1635
1635
|
return;
|
|
1636
1636
|
let r = null;
|
|
@@ -7763,7 +7763,7 @@ function X9(e) {
|
|
|
7763
7763
|
};
|
|
7764
7764
|
}
|
|
7765
7765
|
const J9 = X9(Y9), rp = () => {
|
|
7766
|
-
}, Q9 = q4() ? sc :
|
|
7766
|
+
}, Q9 = q4() ? sc : ze;
|
|
7767
7767
|
function op(e, t) {
|
|
7768
7768
|
return e.type === "cookie" && e.ssr ? e.get(t) : t;
|
|
7769
7769
|
}
|
|
@@ -7777,9 +7777,9 @@ const zh = bc(function(t, n) {
|
|
|
7777
7777
|
disableTransitionOnChange: s
|
|
7778
7778
|
} = {},
|
|
7779
7779
|
colorModeManager: c = J9
|
|
7780
|
-
} = t, l = a === "dark" ? "dark" : "light", [u, f] =
|
|
7780
|
+
} = t, l = a === "dark" ? "dark" : "light", [u, f] = Le(
|
|
7781
7781
|
() => op(c, l)
|
|
7782
|
-
), [p, h] =
|
|
7782
|
+
), [p, h] = Le(
|
|
7783
7783
|
() => op(c)
|
|
7784
7784
|
), { getSystemTheme: v, setClassName: m, setDataset: g, addListener: x } = Ve(
|
|
7785
7785
|
() => K9({
|
|
@@ -7796,7 +7796,7 @@ const zh = bc(function(t, n) {
|
|
|
7796
7796
|
);
|
|
7797
7797
|
Q9(() => {
|
|
7798
7798
|
a === "system" && h(v());
|
|
7799
|
-
}, []),
|
|
7799
|
+
}, []), ze(() => {
|
|
7800
7800
|
const O = c.get();
|
|
7801
7801
|
if (O) {
|
|
7802
7802
|
S(O);
|
|
@@ -7811,7 +7811,7 @@ const zh = bc(function(t, n) {
|
|
|
7811
7811
|
const _ = oe(() => {
|
|
7812
7812
|
S(b === "dark" ? "light" : "dark");
|
|
7813
7813
|
}, [b, S]);
|
|
7814
|
-
|
|
7814
|
+
ze(() => {
|
|
7815
7815
|
if (i)
|
|
7816
7816
|
return x(S);
|
|
7817
7817
|
}, [i, x, S]);
|
|
@@ -10998,7 +10998,7 @@ function H2() {
|
|
|
10998
10998
|
if (e === null)
|
|
10999
10999
|
return [!0, null];
|
|
11000
11000
|
const { isPresent: t, onExitComplete: n, register: r } = e, o = hr();
|
|
11001
|
-
|
|
11001
|
+
ze(() => r(o), []);
|
|
11002
11002
|
const i = oe(() => n && n(o), [o, n]);
|
|
11003
11003
|
return !t && n ? [!1, i] : [!0];
|
|
11004
11004
|
}
|
|
@@ -12021,7 +12021,7 @@ const NS = {
|
|
|
12021
12021
|
transformPagePoint: (e) => e,
|
|
12022
12022
|
isStatic: !1,
|
|
12023
12023
|
reducedMotion: "never"
|
|
12024
|
-
}), kc = pr({}), Ad = typeof window < "u", tm = Ad ? sc :
|
|
12024
|
+
}), kc = pr({}), Ad = typeof window < "u", tm = Ad ? sc : ze, nm = pr({ strict: !1 });
|
|
12025
12025
|
function WS(e, t, n, r, o) {
|
|
12026
12026
|
var i, a;
|
|
12027
12027
|
const { visualElement: s } = jt(kc), c = jt(nm), l = jt(Na), u = jt(Pd).reducedMotion, f = De(null);
|
|
@@ -12042,7 +12042,7 @@ function WS(e, t, n, r, o) {
|
|
|
12042
12042
|
const m = n[P2], g = De(!!m && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, m)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, m)));
|
|
12043
12043
|
return tm(() => {
|
|
12044
12044
|
p && (v.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), jd.render(p.render), g.current && p.animationState && p.animationState.animateChanges());
|
|
12045
|
-
}),
|
|
12045
|
+
}), ze(() => {
|
|
12046
12046
|
p && (!g.current && p.animationState && p.animationState.animateChanges(), g.current && (queueMicrotask(() => {
|
|
12047
12047
|
var x;
|
|
12048
12048
|
(x = window.MotionHandoffMarkAsComplete) === null || x === void 0 || x.call(window, m);
|
|
@@ -12951,7 +12951,7 @@ function x1(e) {
|
|
|
12951
12951
|
}
|
|
12952
12952
|
const jo = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: a = "sync" }) => {
|
|
12953
12953
|
Rr(!t, "Replace exitBeforeEnter with mode='wait'");
|
|
12954
|
-
const s = Ve(() => x1(e), [e]), c = s.map(ls), l = De(!0), u = De(s), f = Md(() => /* @__PURE__ */ new Map()), [p, h] =
|
|
12954
|
+
const s = Ve(() => x1(e), [e]), c = s.map(ls), l = De(!0), u = De(s), f = Md(() => /* @__PURE__ */ new Map()), [p, h] = Le(s), [v, m] = Le(s);
|
|
12955
12955
|
tm(() => {
|
|
12956
12956
|
l.current = !1, u.current = s;
|
|
12957
12957
|
for (let b = 0; b < v.length; b++) {
|
|
@@ -13340,7 +13340,7 @@ const me = Xk(), Jk = {
|
|
|
13340
13340
|
containerStyle: c,
|
|
13341
13341
|
motionVariants: l = Jk,
|
|
13342
13342
|
toastSpacing: u = "0.5rem"
|
|
13343
|
-
} = e, [f, p] =
|
|
13343
|
+
} = e, [f, p] = Le(s), h = Hw();
|
|
13344
13344
|
ua(() => {
|
|
13345
13345
|
h || r == null || r();
|
|
13346
13346
|
}, [h]), ua(() => {
|
|
@@ -13349,7 +13349,7 @@ const me = Xk(), Jk = {
|
|
|
13349
13349
|
const v = () => p(null), m = () => p(s), g = () => {
|
|
13350
13350
|
h && o();
|
|
13351
13351
|
};
|
|
13352
|
-
|
|
13352
|
+
ze(() => {
|
|
13353
13353
|
h && i && o();
|
|
13354
13354
|
}, [h, i, o]), Ag(g, f);
|
|
13355
13355
|
const x = Ve(
|
|
@@ -13921,8 +13921,8 @@ const [jm, y_] = Et({
|
|
|
13921
13921
|
children: e.children
|
|
13922
13922
|
}
|
|
13923
13923
|
), w_ = (e) => {
|
|
13924
|
-
const { appendToParentPortal: t, children: n } = e, [r, o] =
|
|
13925
|
-
|
|
13924
|
+
const { appendToParentPortal: t, children: n } = e, [r, o] = Le(null), i = De(null), [, a] = Le({});
|
|
13925
|
+
ze(() => a({}), []);
|
|
13926
13926
|
const s = y_(), c = ax();
|
|
13927
13927
|
Ls(() => {
|
|
13928
13928
|
if (!r)
|
|
@@ -13952,7 +13952,7 @@ const [jm, y_] = Et({
|
|
|
13952
13952
|
const { children: t, containerRef: n, appendToParentPortal: r } = e, o = n.current, i = o ?? (typeof window < "u" ? document.body : void 0), a = Ve(() => {
|
|
13953
13953
|
const c = o == null ? void 0 : o.ownerDocument.createElement("div");
|
|
13954
13954
|
return c && (c.className = Nd), c;
|
|
13955
|
-
}, [o]), [, s] =
|
|
13955
|
+
}, [o]), [, s] = Le({});
|
|
13956
13956
|
return Ls(() => s({}), []), Ls(() => {
|
|
13957
13957
|
if (!(!a || !i))
|
|
13958
13958
|
return i.appendChild(a), () => {
|
|
@@ -14041,7 +14041,7 @@ function A1(e, t, n) {
|
|
|
14041
14041
|
let r = e - 1;
|
|
14042
14042
|
return n && r < 0 && (r = t), r;
|
|
14043
14043
|
}
|
|
14044
|
-
const Cl = typeof window < "u" ? sc :
|
|
14044
|
+
const Cl = typeof window < "u" ? sc : ze, E1 = (e) => e;
|
|
14045
14045
|
var E_ = Object.defineProperty, O_ = (e, t, n) => t in e ? E_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, kt = (e, t, n) => (O_(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14046
14046
|
class M_ {
|
|
14047
14047
|
constructor() {
|
|
@@ -14124,7 +14124,7 @@ function Pm() {
|
|
|
14124
14124
|
return Cl(() => () => o.current.destroy()), o.current;
|
|
14125
14125
|
},
|
|
14126
14126
|
(o) => {
|
|
14127
|
-
const i = t(), [a, s] =
|
|
14127
|
+
const i = t(), [a, s] = Le(-1), c = De(null);
|
|
14128
14128
|
Cl(() => () => {
|
|
14129
14129
|
c.current && i.unregister(c.current);
|
|
14130
14130
|
}, []), Cl(() => {
|
|
@@ -14167,8 +14167,8 @@ function z_(e) {
|
|
|
14167
14167
|
...a
|
|
14168
14168
|
} = e;
|
|
14169
14169
|
N_(e), V_(e);
|
|
14170
|
-
const s = $_(), [c, l] =
|
|
14171
|
-
|
|
14170
|
+
const s = $_(), [c, l] = Le(-1);
|
|
14171
|
+
ze(() => () => {
|
|
14172
14172
|
l(-1);
|
|
14173
14173
|
}, []);
|
|
14174
14174
|
const [u, f] = Cg({
|
|
@@ -14474,8 +14474,8 @@ const Qo = {
|
|
|
14474
14474
|
transitionEnd: u,
|
|
14475
14475
|
animatePresenceProps: f,
|
|
14476
14476
|
...p
|
|
14477
|
-
} = e, [h, v] =
|
|
14478
|
-
|
|
14477
|
+
} = e, [h, v] = Le(!1);
|
|
14478
|
+
ze(() => {
|
|
14479
14479
|
const S = setTimeout(() => {
|
|
14480
14480
|
v(!0);
|
|
14481
14481
|
});
|
|
@@ -14586,8 +14586,8 @@ function Fm(e) {
|
|
|
14586
14586
|
crossOrigin: a,
|
|
14587
14587
|
sizes: s,
|
|
14588
14588
|
ignoreFallback: c
|
|
14589
|
-
} = e, [l, u] =
|
|
14590
|
-
|
|
14589
|
+
} = e, [l, u] = Le("pending");
|
|
14590
|
+
ze(() => {
|
|
14591
14591
|
u(n ? "loading" : "pending");
|
|
14592
14592
|
}, [n]);
|
|
14593
14593
|
const f = De(), p = oe(() => {
|
|
@@ -14668,7 +14668,7 @@ const X_ = {
|
|
|
14668
14668
|
position: "relative",
|
|
14669
14669
|
flexShrink: 0
|
|
14670
14670
|
}, Lm = ke((e, t) => {
|
|
14671
|
-
const n = qn("Avatar", e), [r, o] =
|
|
14671
|
+
const n = qn("Avatar", e), [r, o] = Le(!1), {
|
|
14672
14672
|
src: i,
|
|
14673
14673
|
srcSet: a,
|
|
14674
14674
|
name: s,
|
|
@@ -14802,7 +14802,7 @@ function bu(e) {
|
|
|
14802
14802
|
}
|
|
14803
14803
|
bu.displayName = "ButtonSpinner";
|
|
14804
14804
|
function eT(e) {
|
|
14805
|
-
const [t, n] =
|
|
14805
|
+
const [t, n] = Le(!e);
|
|
14806
14806
|
return { ref: oe((i) => {
|
|
14807
14807
|
i && n(i.tagName === "BUTTON");
|
|
14808
14808
|
}, []), type: t ? "button" : void 0 };
|
|
@@ -14988,7 +14988,7 @@ function iT(e) {
|
|
|
14988
14988
|
isDisabled: o,
|
|
14989
14989
|
isReadOnly: i,
|
|
14990
14990
|
...a
|
|
14991
|
-
} = e, s = hr(), c = t || `field-${s}`, l = `${c}-label`, u = `${c}-feedback`, f = `${c}-helptext`, [p, h] =
|
|
14991
|
+
} = e, s = hr(), c = t || `field-${s}`, l = `${c}-label`, u = `${c}-feedback`, f = `${c}-helptext`, [p, h] = Le(!1), [v, m] = Le(!1), [g, x] = Le(!1), b = oe(
|
|
14992
14992
|
(j = {}, D = null) => ({
|
|
14993
14993
|
id: f,
|
|
14994
14994
|
...j,
|
|
@@ -15735,7 +15735,7 @@ function Pl(e, t) {
|
|
|
15735
15735
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
15736
15736
|
}
|
|
15737
15737
|
function wT(e, t) {
|
|
15738
|
-
var n =
|
|
15738
|
+
var n = Le(function() {
|
|
15739
15739
|
return {
|
|
15740
15740
|
// value
|
|
15741
15741
|
value: e,
|
|
@@ -15923,7 +15923,7 @@ var e3 = qd({}, function(e) {
|
|
|
15923
15923
|
async: !0,
|
|
15924
15924
|
ssr: typeof document < "u"
|
|
15925
15925
|
}), PT = /* @__PURE__ */ pr(void 0), AT = [], Zd = /* @__PURE__ */ $n(function(t, n) {
|
|
15926
|
-
var r, o =
|
|
15926
|
+
var r, o = Le(), i = o[0], a = o[1], s = De(), c = De(!1), l = De(null), u = Le({}), f = u[1], p = t.children, h = t.disabled, v = h === void 0 ? !1 : h, m = t.noFocusGuards, g = m === void 0 ? !1 : m, x = t.persistentFocus, b = x === void 0 ? !1 : x, S = t.crossFrame, _ = S === void 0 ? !0 : S, C = t.autoFocus, O = C === void 0 ? !0 : C, j = t.allowTextSelection, D = t.group, F = t.className, L = t.whiteList, Y = t.hasPositiveIndices, be = t.shards, se = be === void 0 ? AT : be, N = t.as, K = N === void 0 ? "div" : N, X = t.lockProps, z = X === void 0 ? {} : X, ge = t.sideCar, ye = t.returnFocus, E = ye === void 0 ? !1 : ye, R = t.focusOptions, Z = t.onActivation, B = t.onDeactivation, $ = Le({}), y = $[0], G = oe(function(ie) {
|
|
15927
15927
|
var xe = ie.captureFocusRestore;
|
|
15928
15928
|
if (!l.current) {
|
|
15929
15929
|
var fe, pe = (fe = document) == null ? void 0 : fe.activeElement;
|
|
@@ -15948,7 +15948,7 @@ var e3 = qd({}, function(e) {
|
|
|
15948
15948
|
}, []), le = t3.useMedium, _e = oe(function(ie) {
|
|
15949
15949
|
s.current !== ie && (s.current = ie, a(ie));
|
|
15950
15950
|
}, []);
|
|
15951
|
-
process.env.NODE_ENV !== "production" && (typeof j < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),
|
|
15951
|
+
process.env.NODE_ENV !== "production" && (typeof j < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), ze(function() {
|
|
15952
15952
|
!s.current && typeof K != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
15953
15953
|
}, []));
|
|
15954
15954
|
var H = Co((r = {}, r[Zm] = v && "disabled", r[xu] = D, r), z), je = g !== !0, $e = je && g !== "tail", I = Gm([n, _e]), q = Ve(function() {
|
|
@@ -17082,14 +17082,14 @@ function Wj(e) {
|
|
|
17082
17082
|
return t.length === 1 || t.length > 1 && /[^a-zA-Z0-9]/.test(t);
|
|
17083
17083
|
}
|
|
17084
17084
|
function Hj(e = {}) {
|
|
17085
|
-
const { timeout: t = 300, preventDefault: n = () => !0 } = e, [r, o] =
|
|
17085
|
+
const { timeout: t = 300, preventDefault: n = () => !0 } = e, [r, o] = Le([]), i = De(), a = () => {
|
|
17086
17086
|
i.current && (clearTimeout(i.current), i.current = null);
|
|
17087
17087
|
}, s = () => {
|
|
17088
17088
|
a(), i.current = setTimeout(() => {
|
|
17089
17089
|
o([]), i.current = null;
|
|
17090
17090
|
}, t);
|
|
17091
17091
|
};
|
|
17092
|
-
|
|
17092
|
+
ze(() => a, []);
|
|
17093
17093
|
function c(l) {
|
|
17094
17094
|
return (u) => {
|
|
17095
17095
|
if (u.key === "Backspace") {
|
|
@@ -18240,7 +18240,7 @@ function H3(e = {}) {
|
|
|
18240
18240
|
u,
|
|
18241
18241
|
o
|
|
18242
18242
|
]);
|
|
18243
|
-
|
|
18243
|
+
ze(() => () => {
|
|
18244
18244
|
var L;
|
|
18245
18245
|
!v.current && !m.current && ((L = g.current) == null || L.destroy(), g.current = null);
|
|
18246
18246
|
}, []);
|
|
@@ -18319,7 +18319,7 @@ function dA() {
|
|
|
18319
18319
|
},
|
|
18320
18320
|
[]
|
|
18321
18321
|
);
|
|
18322
|
-
return
|
|
18322
|
+
return ze(
|
|
18323
18323
|
() => () => {
|
|
18324
18324
|
t.forEach((o, i) => {
|
|
18325
18325
|
r(o.el, o.type, i, o.options);
|
|
@@ -18349,7 +18349,7 @@ function fA(e = {}) {
|
|
|
18349
18349
|
onMouseOver: p,
|
|
18350
18350
|
onMouseLeave: h,
|
|
18351
18351
|
...v
|
|
18352
|
-
} = e, [m, g] =
|
|
18352
|
+
} = e, [m, g] = Le(!0), [x, b] = Le(!1), S = dA(), _ = (z) => {
|
|
18353
18353
|
z && z.tagName !== "BUTTON" && g(!1);
|
|
18354
18354
|
}, C = m ? f : f || 0, O = n && !r, j = oe(
|
|
18355
18355
|
(z) => {
|
|
@@ -18536,7 +18536,7 @@ function yA(e = {}) {
|
|
|
18536
18536
|
enabled: D || v,
|
|
18537
18537
|
placement: f,
|
|
18538
18538
|
direction: h
|
|
18539
|
-
}), [se, N] =
|
|
18539
|
+
}), [se, N] = Le(-1);
|
|
18540
18540
|
Sg(g, {
|
|
18541
18541
|
focusRef: x,
|
|
18542
18542
|
visible: D,
|
|
@@ -18545,7 +18545,7 @@ function yA(e = {}) {
|
|
|
18545
18545
|
const K = xg({ isOpen: D, ref: g }), [X, z] = _g(t, "menu-button", "menu-list"), ge = oe(() => {
|
|
18546
18546
|
F(), _();
|
|
18547
18547
|
}, [F, _]), ye = De(/* @__PURE__ */ new Set([]));
|
|
18548
|
-
|
|
18548
|
+
ze(() => {
|
|
18549
18549
|
const B = ye.current;
|
|
18550
18550
|
return () => {
|
|
18551
18551
|
B.forEach(($) => clearTimeout($)), B.clear();
|
|
@@ -18555,7 +18555,7 @@ function yA(e = {}) {
|
|
|
18555
18555
|
D || (N(-1), (B = g.current) == null || B.scrollTo(0, 0));
|
|
18556
18556
|
}, [D]), ua(() => {
|
|
18557
18557
|
D && se === -1 && _();
|
|
18558
|
-
}, [se, D]),
|
|
18558
|
+
}, [se, D]), ze(() => {
|
|
18559
18559
|
var $;
|
|
18560
18560
|
if (!D)
|
|
18561
18561
|
return;
|
|
@@ -19046,8 +19046,8 @@ class zA {
|
|
|
19046
19046
|
}
|
|
19047
19047
|
const Eu = new zA();
|
|
19048
19048
|
function K3(e, t) {
|
|
19049
|
-
const [n, r] =
|
|
19050
|
-
return
|
|
19049
|
+
const [n, r] = Le(0);
|
|
19050
|
+
return ze(() => {
|
|
19051
19051
|
const o = e.current;
|
|
19052
19052
|
if (o) {
|
|
19053
19053
|
if (t) {
|
|
@@ -19084,7 +19084,7 @@ function LA(e) {
|
|
|
19084
19084
|
F.key === "Escape" && (F.stopPropagation(), i && (n == null || n()), c == null || c());
|
|
19085
19085
|
},
|
|
19086
19086
|
[i, n, c]
|
|
19087
|
-
), [b, S] =
|
|
19087
|
+
), [b, S] = Le(!1), [_, C] = Le(!1), O = oe(
|
|
19088
19088
|
(F = {}, L = null) => ({
|
|
19089
19089
|
role: "dialog",
|
|
19090
19090
|
...F,
|
|
@@ -19131,7 +19131,7 @@ function LA(e) {
|
|
|
19131
19131
|
}
|
|
19132
19132
|
function BA(e, t) {
|
|
19133
19133
|
const n = e.current;
|
|
19134
|
-
|
|
19134
|
+
ze(() => {
|
|
19135
19135
|
if (!(!e.current || !t))
|
|
19136
19136
|
return DA(e.current);
|
|
19137
19137
|
}, [t, e, n]);
|
|
@@ -19536,7 +19536,7 @@ function bE(e) {
|
|
|
19536
19536
|
lockFocusAcrossFrames: u,
|
|
19537
19537
|
isOpen: f
|
|
19538
19538
|
} = ko(), [p, h] = H2();
|
|
19539
|
-
|
|
19539
|
+
ze(() => {
|
|
19540
19540
|
!p && h && setTimeout(h);
|
|
19541
19541
|
}, [p, h]);
|
|
19542
19542
|
const v = K3(r, f);
|
|
@@ -19750,7 +19750,7 @@ const i4 = ke(
|
|
|
19750
19750
|
i4.displayName = "ModalContent";
|
|
19751
19751
|
const a4 = ke((e, t) => {
|
|
19752
19752
|
const { className: n, ...r } = e, { bodyId: o, setBodyMounted: i } = ko();
|
|
19753
|
-
|
|
19753
|
+
ze(() => (i(!0), () => i(!1)), [i]);
|
|
19754
19754
|
const a = Ie("chakra-modal__body", n), s = Za();
|
|
19755
19755
|
return /* @__PURE__ */ d.jsx(
|
|
19756
19756
|
me.div,
|
|
@@ -19785,7 +19785,7 @@ s4.displayName = "ModalCloseButton";
|
|
|
19785
19785
|
const c4 = ke(
|
|
19786
19786
|
(e, t) => {
|
|
19787
19787
|
const { className: n, ...r } = e, { headerId: o, setHeaderMounted: i } = ko();
|
|
19788
|
-
|
|
19788
|
+
ze(() => (i(!0), () => i(!1)), [i]);
|
|
19789
19789
|
const a = Ie("chakra-modal__header", n), s = Za(), c = {
|
|
19790
19790
|
flex: 0,
|
|
19791
19791
|
...s.header
|
|
@@ -20408,9 +20408,9 @@ function WE(e = {}) {
|
|
|
20408
20408
|
j && i && Z();
|
|
20409
20409
|
},
|
|
20410
20410
|
{ passive: !0, capture: !0 }
|
|
20411
|
-
),
|
|
20411
|
+
), ze(() => {
|
|
20412
20412
|
b && (ye(), j && F());
|
|
20413
|
-
}, [b, j, F, ye]),
|
|
20413
|
+
}, [b, j, F, ye]), ze(() => () => {
|
|
20414
20414
|
ye(), R();
|
|
20415
20415
|
}, [ye, R]), vs(() => z.current, "pointerleave", y);
|
|
20416
20416
|
const de = oe(
|
|
@@ -20479,7 +20479,7 @@ function WE(e = {}) {
|
|
|
20479
20479
|
}
|
|
20480
20480
|
const Fl = "chakra-ui:close-tooltip";
|
|
20481
20481
|
function HE(e, t) {
|
|
20482
|
-
return
|
|
20482
|
+
return ze(() => {
|
|
20483
20483
|
const n = Mu(e);
|
|
20484
20484
|
return n.addEventListener(Fl, t), () => n.removeEventListener(Fl, t);
|
|
20485
20485
|
}, [t, e]), () => {
|
|
@@ -21034,14 +21034,23 @@ const vR = ({
|
|
|
21034
21034
|
iconColor: n = "elevate.500",
|
|
21035
21035
|
onUpload: r,
|
|
21036
21036
|
h: o = "155px",
|
|
21037
|
-
w: i = "155px"
|
|
21037
|
+
w: i = "155px",
|
|
21038
|
+
initialImage: a
|
|
21038
21039
|
}) => {
|
|
21039
|
-
const [
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
|
|
21044
|
-
|
|
21040
|
+
const [s, c] = Le(null);
|
|
21041
|
+
ze(() => {
|
|
21042
|
+
if (a) {
|
|
21043
|
+
const u = URL.createObjectURL(a);
|
|
21044
|
+
c(u);
|
|
21045
|
+
} else
|
|
21046
|
+
c(null);
|
|
21047
|
+
}, [a]);
|
|
21048
|
+
const l = async (u) => {
|
|
21049
|
+
var p;
|
|
21050
|
+
const f = (p = u.target.files) == null ? void 0 : p[0];
|
|
21051
|
+
if (f) {
|
|
21052
|
+
const h = URL.createObjectURL(f);
|
|
21053
|
+
c(h), r && await r(f);
|
|
21045
21054
|
}
|
|
21046
21055
|
};
|
|
21047
21056
|
return /* @__PURE__ */ d.jsxs(
|
|
@@ -21057,11 +21066,11 @@ const vR = ({
|
|
|
21057
21066
|
height: o,
|
|
21058
21067
|
cursor: "pointer",
|
|
21059
21068
|
onClick: () => {
|
|
21060
|
-
var
|
|
21061
|
-
return (
|
|
21069
|
+
var u;
|
|
21070
|
+
return (u = document.getElementById("file-input")) == null ? void 0 : u.click();
|
|
21062
21071
|
},
|
|
21063
21072
|
children: [
|
|
21064
|
-
|
|
21073
|
+
s ? /* @__PURE__ */ d.jsx(P3, { src: s, alt: "Uploaded", boxSize: "100%", rounded: "md" }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
21065
21074
|
/* @__PURE__ */ d.jsx(Fn, { as: bO, color: n, boxSize: 8 }),
|
|
21066
21075
|
/* @__PURE__ */ d.jsx(Ke, { fontWeight: "bold", children: e }),
|
|
21067
21076
|
/* @__PURE__ */ d.jsx(Ke, { fontSize: "sm", color: "gray.500", children: t })
|
|
@@ -21073,7 +21082,7 @@ const vR = ({
|
|
|
21073
21082
|
type: "file",
|
|
21074
21083
|
style: { display: "none" },
|
|
21075
21084
|
accept: "image/*",
|
|
21076
|
-
onChange:
|
|
21085
|
+
onChange: l
|
|
21077
21086
|
}
|
|
21078
21087
|
)
|
|
21079
21088
|
]
|
|
@@ -23077,7 +23086,7 @@ function O4() {
|
|
|
23077
23086
|
}
|
|
23078
23087
|
}, 300);
|
|
23079
23088
|
};
|
|
23080
|
-
|
|
23089
|
+
ze(function() {
|
|
23081
23090
|
return window.addEventListener("focus", B, !1), function() {
|
|
23082
23091
|
window.removeEventListener("focus", B, !1);
|
|
23083
23092
|
};
|
|
@@ -23085,11 +23094,11 @@ function O4() {
|
|
|
23085
23094
|
var $ = De([]), y = function(ne) {
|
|
23086
23095
|
N.current && N.current.contains(ne.target) || (ne.preventDefault(), $.current = []);
|
|
23087
23096
|
};
|
|
23088
|
-
|
|
23097
|
+
ze(function() {
|
|
23089
23098
|
return S && (document.addEventListener("dragover", S0, !1), document.addEventListener("drop", y, !1)), function() {
|
|
23090
23099
|
S && (document.removeEventListener("dragover", S0), document.removeEventListener("drop", y));
|
|
23091
23100
|
};
|
|
23092
|
-
}, [N, S]),
|
|
23101
|
+
}, [N, S]), ze(function() {
|
|
23093
23102
|
return !r && b && N.current && N.current.focus(), function() {
|
|
23094
23103
|
};
|
|
23095
23104
|
}, [N, b, r]);
|
|
@@ -23316,7 +23325,7 @@ const yR = ({
|
|
|
23316
23325
|
typeAccept: n = "file",
|
|
23317
23326
|
fileAccept: r = [".pdf", ".doc", ".docx", ".xls", ".xlsx", ".txt", ".csv"],
|
|
23318
23327
|
maxSize: o = "5MB",
|
|
23319
|
-
title: i = "
|
|
23328
|
+
title: i = "",
|
|
23320
23329
|
description: a = "Arrastra y suelta tus archivos aquí",
|
|
23321
23330
|
buttonText: s = "Seleccionar archivos"
|
|
23322
23331
|
}) => {
|
|
@@ -23325,7 +23334,7 @@ const yR = ({
|
|
|
23325
23334
|
"black.600",
|
|
23326
23335
|
"white.50",
|
|
23327
23336
|
"black.300"
|
|
23328
|
-
]), h = Ht(l, 0.7)({}), [v, m] =
|
|
23337
|
+
]), h = Ht(l, 0.7)({}), [v, m] = Le(""), g = typeof o == "string" && o.includes("MB") ? parseInt(o) * 1024 * 1024 : parseInt(o), x = Ve(() => r.length > 0 ? r.map((F) => F.startsWith(".") ? F : `.${F}`) : n === "image" ? [".jpeg", ".jpg", ".png", ".gif"] : n === "file" ? [".pdf", ".doc", ".docx", ".xls", ".xlsx", ".txt", ".csv"] : [], [r, n]), b = {
|
|
23329
23338
|
".pdf": "application/pdf",
|
|
23330
23339
|
".doc": "application/msword",
|
|
23331
23340
|
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
@@ -23341,7 +23350,7 @@ const yR = ({
|
|
|
23341
23350
|
const Y = b[L];
|
|
23342
23351
|
return Y && (F[Y] = [...F[Y] || [], L]), F;
|
|
23343
23352
|
}, {}) : void 0;
|
|
23344
|
-
|
|
23353
|
+
ze(() => {
|
|
23345
23354
|
x.length > 0 ? m(
|
|
23346
23355
|
`Formato soportado: ${x.map((F) => F.replace(".", "")).join(", ")}`
|
|
23347
23356
|
) : m("Acepta cualquier archivo");
|
|
@@ -23378,6 +23387,7 @@ const yR = ({
|
|
|
23378
23387
|
});
|
|
23379
23388
|
}), Y.length > 0 && e(Y);
|
|
23380
23389
|
},
|
|
23390
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23381
23391
|
[x, e, c]
|
|
23382
23392
|
), { getRootProps: C, getInputProps: O, isDragActive: j } = O4({
|
|
23383
23393
|
onDrop: _,
|
|
@@ -23386,7 +23396,7 @@ const yR = ({
|
|
|
23386
23396
|
maxSize: g
|
|
23387
23397
|
}), D = g ? `Tamaño máximo: ${g / 1024 / 1024} MB` : "Sin límite de tamaño";
|
|
23388
23398
|
return /* @__PURE__ */ d.jsxs(At, { children: [
|
|
23389
|
-
/* @__PURE__ */ d.jsx(bt, { mt: 4, alignItems: "flex-start", children: /* @__PURE__ */ d.jsx(Ke, { fontSize: "20px", fontWeight: "700", color: u, mb: 2, children: i }) }),
|
|
23399
|
+
/* @__PURE__ */ d.jsx(bt, { mt: 4, alignItems: "flex-start", children: i.trim() && /* @__PURE__ */ d.jsx(Ke, { fontSize: "20px", fontWeight: "700", color: u, mb: 2, children: i }) }),
|
|
23390
23400
|
/* @__PURE__ */ d.jsxs(
|
|
23391
23401
|
At,
|
|
23392
23402
|
{
|
|
@@ -23440,7 +23450,7 @@ const yR = ({
|
|
|
23440
23450
|
description: l = "",
|
|
23441
23451
|
dropdown: u = !1
|
|
23442
23452
|
}) => {
|
|
23443
|
-
const [f, p] =
|
|
23453
|
+
const [f, p] = Le(!0), h = (x) => {
|
|
23444
23454
|
r(x.target.value);
|
|
23445
23455
|
}, v = en[s], m = v[200], g = v[300];
|
|
23446
23456
|
return /* @__PURE__ */ d.jsxs(Ec, { isRequired: o, children: [
|
|
@@ -24787,7 +24797,7 @@ const xM = /* @__PURE__ */ cc(yM), wR = ({
|
|
|
24787
24797
|
product: c = "info",
|
|
24788
24798
|
isRequired: l = !1
|
|
24789
24799
|
}) => {
|
|
24790
|
-
const [u, f] =
|
|
24800
|
+
const [u, f] = Le(!0), p = en[c], h = p[200], v = p[300], m = (g, x) => {
|
|
24791
24801
|
o && o(g, x);
|
|
24792
24802
|
};
|
|
24793
24803
|
return /* @__PURE__ */ d.jsx(At, { children: /* @__PURE__ */ d.jsxs(Ec, { isRequired: l, children: [
|
|
@@ -26092,7 +26102,7 @@ const TR = ({
|
|
|
26092
26102
|
placeholder: e = "Escribe tu mensaje aquí...",
|
|
26093
26103
|
onSend: t
|
|
26094
26104
|
}) => {
|
|
26095
|
-
const [n, r] =
|
|
26105
|
+
const [n, r] = Le(""), o = () => {
|
|
26096
26106
|
n.trim() !== "" && (t(n.trim()), r(""));
|
|
26097
26107
|
}, i = (a) => {
|
|
26098
26108
|
a.key === "Enter" && (a.preventDefault(), o());
|
|
@@ -26131,7 +26141,7 @@ const TR = ({
|
|
|
26131
26141
|
) })
|
|
26132
26142
|
] }) });
|
|
26133
26143
|
}, iR = ({ iconDefault: e, iconHover: t, isActive: n }) => {
|
|
26134
|
-
const [r, o] =
|
|
26144
|
+
const [r, o] = Le(!1);
|
|
26135
26145
|
return /* @__PURE__ */ d.jsx(
|
|
26136
26146
|
"span",
|
|
26137
26147
|
{
|
|
@@ -26142,7 +26152,7 @@ const TR = ({
|
|
|
26142
26152
|
}
|
|
26143
26153
|
);
|
|
26144
26154
|
}, PR = ({ color: e, menuOptions: t, currentUrl: n }) => {
|
|
26145
|
-
const [r, o] =
|
|
26155
|
+
const [r, o] = Le(!1), i = e || en.primary[400], a = J0(en, `${i.split(".")[0]}.300`), s = () => {
|
|
26146
26156
|
o((c) => !c);
|
|
26147
26157
|
};
|
|
26148
26158
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -26339,8 +26349,8 @@ const TR = ({
|
|
|
26339
26349
|
)) })
|
|
26340
26350
|
] });
|
|
26341
26351
|
}, MR = ({ title: e = "", isEditable: t = !0, placeholder: n = "", size: r = "md", onChange: o, textValue: i = "" }) => {
|
|
26342
|
-
const [a, s] =
|
|
26343
|
-
|
|
26352
|
+
const [a, s] = Le(i);
|
|
26353
|
+
ze(() => {
|
|
26344
26354
|
t && s(i);
|
|
26345
26355
|
}, [i, t]);
|
|
26346
26356
|
const c = (l) => {
|
|
@@ -388,12 +388,12 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var U=_e(te,ce,z,x,K+"."
|
|
|
388
388
|
`)},Z2=function(){var e=parseInt(document.body.getAttribute(oi)||"0",10);return isFinite(e)?e:0},oE=function(){we.useEffect(function(){return document.body.setAttribute(oi,(Z2()+1).toString()),function(){var e=Z2()-1;e<=0?document.body.removeAttribute(oi):document.body.setAttribute(oi,e.toString())}},[])},iE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oE();var i=we.useMemo(function(){return tE(o)},[o]);return we.createElement(nE,{styles:rE(i,!t,o,n?"":"!important")})},Bd=!1;if(typeof window<"u")try{var fl=Object.defineProperty({},"passive",{get:function(){return Bd=!0,!0}});window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{Bd=!1}var ii=Bd?{passive:!1}:!1,aE=function(e){return e.tagName==="TEXTAREA"},G2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aE(e)&&n[t]==="visible")},sE=function(e){return G2(e,"overflowY")},lE=function(e){return G2(e,"overflowX")},K2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Y2(e,r);if(o){var i=X2(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Y2=function(e,t){return e==="v"?sE(t):lE(t)},X2=function(e,t){return e==="v"?cE(t):uE(t)},dE=function(e,t){return e==="h"&&t==="rtl"?-1:1},fE=function(e,t,n,r,o){var i=dE(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,f=0,p=0;do{var h=X2(e,s),b=h[0],m=h[1],g=h[2],C=m-g-i*b;(b||C)&&Y2(e,s)&&(f+=C,p+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(Math.abs(f)<1||!o)||!u&&(Math.abs(p)<1||!o))&&(c=!0),c},pl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J2=function(e){return[e.deltaX,e.deltaY]},Q2=function(e){return e&&"current"in e?e.current:e},pE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hE=function(e){return`
|
|
389
389
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
390
390
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
391
|
-
`)},mE=0,ai=[];function gE(e){var t=we.useRef([]),n=we.useRef([0,0]),r=we.useRef(),o=we.useState(mE++)[0],i=we.useState(q2)[0],a=we.useRef(e);we.useEffect(function(){a.current=e},[e]),we.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=__([e.lockRef.current],(e.shards||[]).map(Q2),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=we.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var C=pl(m),y=n.current,k="deltaX"in m?m.deltaX:y[0]-C[0],T="deltaY"in m?m.deltaY:y[1]-C[1],w,O=m.target,P=Math.abs(k)>Math.abs(T)?"h":"v";if("touches"in m&&P==="h"&&O.type==="range")return!1;var $=K2(P,O);if(!$)return!0;if($?w=P:(w=P==="v"?"h":"v",$=K2(P,O)),!$)return!1;if(!r.current&&"changedTouches"in m&&(k||T)&&(r.current=w),!w)return!0;var L=r.current||w;return fE(L,g,m,L==="h"?k:T,!0)},[]),l=we.useCallback(function(m){var g=m;if(!(!ai.length||ai[ai.length-1]!==i)){var C="deltaY"in g?J2(g):pl(g),y=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&pE(w.delta,C)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var k=(a.current.shards||[]).map(Q2).filter(Boolean).filter(function(w){return w.contains(g.target)}),T=k.length>0?s(g,k[0]):!a.current.noIsolation;T&&g.cancelable&&g.preventDefault()}}},[]),c=we.useCallback(function(m,g,C,y){var k={name:m,delta:g,target:C,should:y,shadowParent:vE(C)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(T){return T!==k})},1)},[]),u=we.useCallback(function(m){n.current=pl(m),r.current=void 0},[]),f=we.useCallback(function(m){c(m.type,J2(m),m.target,s(m,e.lockRef.current))},[]),p=we.useCallback(function(m){c(m.type,pl(m),m.target,s(m,e.lockRef.current))},[]);we.useEffect(function(){return ai.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ii),document.addEventListener("touchmove",l,ii),document.addEventListener("touchstart",u,ii),function(){ai=ai.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,ii),document.removeEventListener("touchmove",l,ii),document.removeEventListener("touchstart",u,ii)}},[]);var h=e.removeScrollBar,b=e.inert;return we.createElement(we.Fragment,null,b?we.createElement(i,{styles:hE(o)}):null,h?we.createElement(iE,{gapMode:e.gapMode}):null)}function vE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bE=T_(U2,gE);var e3=we.forwardRef(function(e,t){return we.createElement(dl,er({},e,{ref:t,sideCar:bE}))});e3.classNames=dl.classNames;function yE(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:u,isOpen:f}=po(),[p,h]=k0();v.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const b=W2(r,f);return d.jsx(s2,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:u,children:d.jsx(e3,{removeScrollBar:!c,allowPinchZoom:a,enabled:b===1&&i,forwardProps:!0,children:e.children})})}const Pa={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??xr.enter(ao.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}}},xE=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:f,animatePresenceProps:p,...h}=t,b=r?o&&r:!0,m=o||r?"enter":"exit",g={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:u,delay:f};return d.jsx(io,{...p,custom:g,children:b&&d.jsx(yr.div,{ref:n,className:De("chakra-offset-slide",a),custom:g,...Pa,animate:m,...h})})});xE.displayName="SlideFade";const t3={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??xr.enter(ao.enter,n),transitionEnd:e==null?void 0:e.enter})}},CE=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u,animatePresenceProps:f,...p}=t,h=r?o&&r:!0,b=o||r?"enter":"exit",m={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:u};return d.jsx(io,{...f,custom:m,children:h&&d.jsx(yr.div,{ref:n,className:De("chakra-offset-slide",s),...t3,animate:b,custom:m,...p})})});CE.displayName="ScaleFade";const wE={slideInBottom:{...Pa,custom:{offsetY:16,reverse:!0}},slideInRight:{...Pa,custom:{offsetX:16,reverse:!0}},slideInTop:{...Pa,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Pa,custom:{offsetX:-16,reverse:!0}},scale:{...t3,custom:{initialScale:.95,reverse:!0}},none:{}},SE=me(yr.section),kE=e=>wE[e||"none"],n3=v.forwardRef((e,t)=>{const{preset:n,motionProps:r=kE(n),...o}=e;return d.jsx(SE,{ref:t,...r,...o})});n3.displayName="ModalTransition";const r3=Se((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=po(),c=s(a,t),u=l(o),f=De("chakra-modal__content",n),p=ja(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:m}=po();return d.jsx(yE,{children:d.jsx(me.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:d.jsx(n3,{preset:m,motionProps:i,className:f,...c,__css:h,children:r})})})});r3.displayName="ModalContent";const o3=Se((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=po();v.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=De("chakra-modal__body",n),s=ja();return d.jsx(me.div,{ref:t,className:a,id:o,...r,__css:s.body})});o3.displayName="ModalBody";const i3=Se((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=po(),a=De("chakra-modal__close-btn",r),s=ja();return d.jsx(zu,{ref:t,__css:s.closeButton,className:a,onClick:At(n,l=>{l.stopPropagation(),i()}),...o})});i3.displayName="ModalCloseButton";const a3=Se((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=po();v.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=De("chakra-modal__header",n),s=ja(),l={flex:0,...s.header};return d.jsx(me.header,{ref:t,className:a,id:o,...r,__css:l})});a3.displayName="ModalHeader";const s3={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??xr.enter(ao.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??xr.exit(ao.exit,n),transitionEnd:t==null?void 0:t.exit})}},_E=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,animatePresenceProps:c,...u}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,h={transition:a,transitionEnd:s,delay:l};return d.jsx(io,{...c,custom:h,children:p&&d.jsx(yr.div,{ref:n,className:De("chakra-fade",i),custom:h,...s3,animate:f,...u})})});_E.displayName="Fade";const TE=me(yr.div),l3=Se((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=De("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ja().overlay},{motionPreset:c}=po(),f=o||(c==="none"?{}:s3);return d.jsx(TE,{...f,__css:l,ref:t,className:a,...i})});l3.displayName="ModalOverlay";function jE(e,t,n){return(e-t)*100/(n-t)}Hi({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),Hi({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const PE=Hi({"0%":{left:"-40%"},"100%":{left:"100%"}}),EE=Hi({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function AE(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:s="progressbar"}=e,l=jE(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:s},percent:l,value:t}}const[ME,OE]=wt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),DE=Se((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:a,...s}=e,l=AE({value:o,min:n,max:r,isIndeterminate:i,role:a}),u={height:"100%",...OE().filledTrack};return d.jsx(me.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:u})}),c3=Se((e,t)=>{var P;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:a,children:s,borderRadius:l,isIndeterminate:c,"aria-label":u,"aria-labelledby":f,"aria-valuetext":p,title:h,role:b,...m}=Ot(e),g=$n("Progress",e),C=l??((P=g.track)==null?void 0:P.borderRadius),y={animation:`${EE} 1s linear infinite`},w={...!c&&i&&a&&y,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${PE} 1s ease infinite normal none running`}},O={overflow:"hidden",position:"relative",...g.track};return d.jsx(me.div,{ref:t,borderRadius:C,__css:O,...m,children:d.jsxs(ME,{value:g,children:[d.jsx(DE,{"aria-label":u,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:c,css:w,borderRadius:C,title:h,role:b}),s]})})});c3.displayName="Progress";const u3=Se(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return d.jsxs(me.select,{...a,ref:n,className:De("chakra-select",i),children:[o&&d.jsx("option",{value:"",children:o}),r]})});u3.displayName="SelectField";const d3=Se((e,t)=>{var k;const n=$n("Select",e),{rootProps:r,placeholder:o,icon:i,color:a,height:s,h:l,minH:c,minHeight:u,iconColor:f,iconSize:p,...h}=Ot(e),[b,m]=U4(h,Fg),g=Wu(m),C={width:"100%",height:"fit-content",position:"relative",color:a},y={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(k=n.field)==null?void 0:k._focus}};return d.jsxs(me.div,{className:"chakra-select__wrapper",__css:C,...b,...r,children:[d.jsx(u3,{ref:t,height:l??s,minH:c??u,placeholder:o,...g,__css:y,children:e.children}),d.jsx(f3,{"data-disabled":Jt(g.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:i})]})});d3.displayName="Select";const IE=e=>d.jsx("svg",{viewBox:"0 0 24 24",...e,children:d.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),$E=me("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),f3=e=>{const{children:t=d.jsx(IE,{}),...n}=e,r=v.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return d.jsx($E,{...n,className:"chakra-select__icon-wrapper",children:v.isValidElement(t)?r:null})};f3.displayName="SelectIcon";const p3=e=>d.jsx(me.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p3.displayName="StackItem";function FE(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":N4(n,o=>r[o])}}const Rd=Se((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",b=v.useMemo(()=>FE({spacing:a,direction:h}),[a,h]),m=!!c,g=!f&&!m,C=v.useMemo(()=>{const k=jl(l);return g?k:k.map((T,w)=>{const O=typeof T.key<"u"?T.key:w,P=w+1===k.length,L=f?d.jsx(p3,{children:T},O):T;if(!m)return L;const R=v.cloneElement(c,{__css:b}),X=P?null:R;return d.jsxs(v.Fragment,{children:[L,X]},O)})},[c,b,m,g,f,l]),y=De("chakra-stack",u);return d.jsx(me.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:m?void 0:a,className:y,...p,children:C})});Rd.displayName="Stack";const Ea=Se((e,t)=>d.jsx(Rd,{align:"center",...e,direction:"row",ref:t}));Ea.displayName="HStack";const wr=Se((e,t)=>d.jsx(Rd,{align:"center",...e,direction:"column",ref:t}));wr.displayName="VStack";const zE=["h","minH","height","minHeight"],Nd=Se((e,t)=>{const n=Jn("Textarea",e),{className:r,rows:o,...i}=Ot(e),a=Wu(i),s=o?yi(n,zE):n;return d.jsx(me.textarea,{ref:t,rows:o,...a,className:De("chakra-textarea",r),__css:s})});Nd.displayName="Textarea";function LE(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function BE(e,t){const n=o=>({...t,...o,position:LE((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),a=Nh(i);return Qn.notify(a,i)};return r.update=(o,i)=>{Qn.update(o,n(i))},r.promise=(o,i)=>{const a=r({...i.loading,status:"loading",duration:null});o.then(s=>r.update(a,{status:"success",duration:5e3,...dn(i.success,s)})).catch(s=>r.update(a,{status:"error",duration:5e3,...dn(i.error,s)}))},r.closeAll=Qn.closeAll,r.close=Qn.close,r.isActive=Qn.isActive,r}function h3(e){const{theme:t}=Oh(),n=Pk();return v.useMemo(()=>BE(t.direction,{...n,...e}),[e,t.direction,n])}const RE={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Vd=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},hl=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function NE(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:f,isOpen:p,defaultIsOpen:h,arrowSize:b=10,arrowShadowColor:m,arrowPadding:g,modifiers:C,isDisabled:y,gutter:k,offset:T,direction:w,...O}=e,{isOpen:P,onOpen:$,onClose:L}=Pl({isOpen:p,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:R,getPopperProps:X,getArrowInnerProps:be,getArrowProps:se}=L2({enabled:P,placement:u,arrowPadding:g,modifiers:C,gutter:k,offset:T,direction:w}),V=v.useId(),J=`tooltip-${f??V}`,B=v.useRef(null),ge=v.useRef(),ye=v.useCallback(()=>{ge.current&&(clearTimeout(ge.current),ge.current=void 0)},[]),M=v.useRef(),I=v.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=void 0)},[]),G=v.useCallback(()=>{I(),L()},[L,I]),N=VE(B,G),z=v.useCallback(()=>{if(!y&&!ge.current){P&&N();const U=hl(B);ge.current=U.setTimeout($,t)}},[N,y,P,$,t]),x=v.useCallback(()=>{ye();const U=hl(B);M.current=U.setTimeout(G,n)},[n,G,ye]),K=v.useCallback(()=>{P&&r&&x()},[r,x,P]),te=v.useCallback(()=>{P&&a&&x()},[a,x,P]),ne=v.useCallback(U=>{P&&U.key==="Escape"&&x()},[P,x]);Va(()=>Vd(B),"keydown",s?ne:void 0),Va(()=>{if(!i)return null;const U=B.current;if(!U)return null;const je=yf(U);return je.localName==="body"?hl(B):je},"scroll",()=>{P&&i&&G()},{passive:!0,capture:!0}),v.useEffect(()=>{y&&(ye(),P&&L())},[y,P,L,ye]),v.useEffect(()=>()=>{ye(),I()},[ye,I]),Va(()=>B.current,"pointerleave",x);const de=v.useCallback((U={},je=null)=>({...U,ref:en(B,je,R),onPointerEnter:At(U.onPointerEnter,F=>{F.pointerType!=="touch"&&z()}),onClick:At(U.onClick,K),onPointerDown:At(U.onPointerDown,te),onFocus:At(U.onFocus,z),onBlur:At(U.onBlur,x),"aria-describedby":P?J:void 0}),[z,x,te,P,J,K,R]),ce=v.useCallback((U={},je=null)=>X({...U,style:{...U.style,[Rt.arrowSize.var]:b?`${b}px`:void 0,[Rt.arrowShadowColor.var]:m}},je),[X,b,m]),_e=v.useCallback((U={},je=null)=>{const $e={...U.style,position:"relative",transformOrigin:Rt.transformOrigin.varRef};return{ref:je,...O,...U,id:J,role:"tooltip",style:$e}},[O,J]);return{isOpen:P,show:z,hide:x,getTriggerProps:de,getTooltipProps:_e,getTooltipPositionerProps:ce,getArrowProps:se,getArrowInnerProps:be}}const Wd="chakra-ui:close-tooltip";function VE(e,t){return v.useEffect(()=>{const n=Vd(e);return n.addEventListener(Wd,t),()=>n.removeEventListener(Wd,t)},[t,e]),()=>{const n=Vd(e),r=hl(e);n.dispatchEvent(new r.CustomEvent(Wd))}}const WE=me(yr.div),Hd=Se((e,t)=>{const n=Jn("Tooltip",e),r=Ot(e),o=Us(),{children:i,label:a,shouldWrapChildren:s,"aria-label":l,hasArrow:c,bg:u,portalProps:f,background:p,backgroundColor:h,bgColor:b,motionProps:m,animatePresenceProps:g,...C}=r,y=p??h??u??b;if(y){n.bg=y;const R=qg(o,"colors",y);n[Rt.arrowBg.var]=R}const k=NE({...C,direction:o.direction}),T=!v.isValidElement(i)||s;let w;if(T)w=d.jsx(me.span,{display:"inline-block",tabIndex:0,...k.getTriggerProps(),children:i});else{const R=v.Children.only(i);w=v.cloneElement(R,k.getTriggerProps(R.props,R.ref))}const O=!!l,P=k.getTooltipProps({},t),$=O?yi(P,["role","id"]):P,L=bf(P,["role","id"]);return a?d.jsxs(d.Fragment,{children:[w,d.jsx(io,{...g,children:k.isOpen&&d.jsx(qo,{...f,children:d.jsx(me.div,{...k.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:d.jsxs(WE,{variants:RE,initial:"exit",animate:"enter",exit:"exit",...m,...$,__css:n,children:[a,O&&d.jsx(me.span,{srOnly:!0,...L,children:l}),c&&d.jsx(me.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:d.jsx(me.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):d.jsx(d.Fragment,{children:i})});Hd.displayName="Tooltip";const Ue=Se(function(t,n){const r=Jn("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Ot(t),c=Ra({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return d.jsx(me.p,{ref:n,className:De("chakra-text",t.className),...c,...l,__css:r})});Ue.displayName="Text";const HE={body:"Sansation-Regular, sans-serif",heading:"Sansation-Bold, sans-serif",Lato:"Lato, sans-serif"},UE={global:{body:{color:"#000",textAlign:"center",fontFamily:"Sansation-Regular, sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"normal"},"*":{boxSizing:"border-box"},a:{cursor:"pointer"},...{".chat-wrapper":{background:"#4E4D4D",border:"2px solid #D6D6D6",borderRadius:"8px",fontSize:"16px",minHeight:"240px",overflow:"hidden",padding:"1rem 0",width:"100%"},".message-input":{borderTop:"1px solid #ccc"},".cs-message-list":{background:"#4E4D4D"},".cs-chat-container .cs-message-input":{background:"#4E4D4D",border:"0",padding:"1rem 0"},".scrollbar-container":{background:"transparent"},".cs-message-input__content-editor-wrapper":{background:"#6E6E6E"},".cs-message-input__content-editor":{background:"transparent",color:"#fff",textAlign:"left"},".cs-message--incoming .cs-message__content":{background:"transparent",padding:"1rem 0",color:"#fff",textAlign:"left",fontSize:"16px"},".cs-message.cs-message--outgoing.cs-message--first .cs-message__content":{background:"#efefef",borderRadius:"20px",color:"#000"},".cs-message.cs-message--incoming.cs-message--first .cs-message__content":{background:"transparent",color:"#fff"},".cs-message.cs-message--outgoing.cs-message--single .cs-message__content":{background:"#fff",fontSize:"16px"},".cs-message-list .cs-typing-indicator":{background:"transparent",margin:"0 1.2em 0 .8em",padding:"0"},".cs-typing-indicator__text":{color:"#fff"},".cs-typing-indicator__dot":{backgroundColor:"#fff"}}}},Zt={primary:{200:"#8BBFCB",300:"#67ABBB",400:"#4A94A6",500:"#3B7684",600:"#2B555F"},elevate:{200:"#FFF8FA",300:"#FFD6E2",400:"#FFA3BF",500:"#FF6F9A",600:"#FF3D77",700:"#FF0A53"},assist:{200:"#F9FCFE",300:"#B4D8F4",400:"#87C1ED",500:"#5AA9E6",600:"#2F93DF",700:"#1D79BE"},play:{300:"#FEE2DC",400:"#FCB8AB",500:"#FB8E79",600:"#FA6448",700:"#F93916"},talent:{300:"#D4BBD8",400:"#AB7AB3",500:"#965BA0",600:"#77487F",700:"#58365E"},collect:{300:"#95DAB8",400:"#6FCD9E",500:"#48BF84",600:"#389F6C",700:"#F93916"},ad:{300:"#AA7A60",400:"#8C624B",500:"#694A38",600:"#493427",700:"#281C15"},black:{40:"#EFEFEF",50:"#D7D7D7",100:"#C1C1C1",200:"#999999",300:"#999999",400:"#666666",500:"#333333",600:"#222222"},white:{50:"#EFEFEF",100:"#FFFFFF"},success:{200:"#C6F6D5",300:"#2CD888",400:"#21B06E",500:"#198754",600:"#115A38"},danger:{200:"#FED7D7",300:"#F81C34",400:"#DB071E",500:"#CE0015",600:"#C10004"},warning:{200:"#FEEBCB",300:"#FFCF70",400:"#FFBE3D",500:"#FFAE0C",600:"#D68F00"},info:{200:"#BEE3F8",300:"#47AFFF",400:"#1499FF",500:"#007EDF",600:"#0062AD"}},Br=d_({config:{initialColorMode:"light",useSystemColorMode:!1},colors:Zt,fonts:HE,styles:UE}),qE=({children:e,...t})=>d.jsx(Ak,{theme:Br,...t,children:e}),ZE=({options:e,onChange:t,...n})=>d.jsx(d3,{onChange:r=>t(r.target.value),...n,children:e.map(r=>d.jsx("option",{value:r.value,children:r.name},r.value))});var m3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g3=v.createContext&&v.createContext(m3),GE=["attr","size","title"];function KE(e,t){if(e==null)return{};var n=YE(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YE(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(r){XE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XE(e,t,n){return t=JE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JE(e){var t=QE(e,"string");return typeof t=="symbol"?t:t+""}function QE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b3(e){return e&&e.map((t,n)=>v.createElement(t.tag,gl({key:n},t.attr),b3(t.child)))}function bt(e){return t=>v.createElement(eA,ml({attr:gl({},e.attr)},t),b3(e.child))}function eA(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=KE(e,GE),s=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",ml({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:gl(gl({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&v.createElement("title",null,i),e.children)};return g3!==void 0?v.createElement(g3.Consumer,null,n=>t(n)):t(m3)}function tA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"polyline",attr:{points:"19 12 12 19 5 12"},child:[]}]})(e)}function nA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(e)}function rA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(e)}function oA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"5"},child:[]},{tag:"polyline",attr:{points:"5 12 12 5 19 12"},child:[]}]})(e)}function iA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function aA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"},child:[]}]})(e)}function sA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function lA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function cA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},child:[]},{tag:"polyline",attr:{points:"13 2 13 9 20 9"},child:[]}]})(e)}function uA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function dA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function fA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"},child:[]},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"},child:[]},{tag:"polyline",attr:{points:"7 3 7 8 15 8"},child:[]}]})(e)}function y3(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"},child:[]}]})(e)}function x3(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},child:[]}]})(e)}function pA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function hA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}const mA={arrowLeft:nA,arrowRight:rA,delete:pA,save:fA,added:dA,record:uA,file:cA,download:sA,arrowDownload:tA},gA=({text:e,type:t="solid",color:n,size:r="md",loading:o=!1,onClick:i,icon:a,disabled:s,...l})=>{const[c]=qs("colors",[n]),u=a?mA[a]:void 0,f=(()=>{switch(t){case"solid":return zt(c,.7)({});case"outline":return zt(c,.1)({});case"surface":return zt(c,.5)({});case"subtle":return zt(c,.5)({});default:return"transparent"}})(),p=(()=>{switch(t){case"solid":return{bg:c,color:"white"};case"outline":return{bg:"transparent",color:c,borderColor:c,borderWidth:"1px"};case"surface":return{bg:zt(c,.3)({}),color:c,borderColor:c,borderWidth:"1px"};case"subtle":return{bg:zt(c,.3)({}),color:c,borderColor:c};default:return{}}})();return d.jsxs(Fn,{onClick:i,size:r,isLoading:o,bg:p.bg,color:p.color,borderColor:p.borderColor,borderWidth:p.borderWidth,_hover:{bg:f},disabled:s,...l,children:[u&&d.jsx(_n,{as:u,mr:2}),e]})};function vA(e){return bt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}const bA=({title:e,description:t,iconColor:n="elevate.500",onUpload:r,h:o="155px",w:i="155px"})=>{const[a,s]=v.useState(null),l=async c=>{var f;const u=(f=c.target.files)==null?void 0:f[0];if(u){const p=URL.createObjectURL(u);s(p),r&&await r(u)}};return d.jsxs(wr,{spacing:4,border:"1px dashed",borderColor:"gray.300",rounded:"md",align:"center",justify:"center",width:i,height:o,cursor:"pointer",onClick:()=>{var c;return(c=document.getElementById("file-input"))==null?void 0:c.click()},children:[a?d.jsx(u2,{src:a,alt:"Uploaded",boxSize:"100%",rounded:"md"}):d.jsxs(d.Fragment,{children:[d.jsx(_n,{as:vA,color:n,boxSize:8}),d.jsx(Ue,{fontWeight:"bold",children:e}),d.jsx(Ue,{fontSize:"sm",color:"gray.500",children:t})]}),d.jsx("input",{id:"file-input",type:"file",style:{display:"none"},accept:"image/*",onChange:l})]})},yA=zn({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),xA=zn({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),CA=zn({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),Ud=zn({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),C3=zn({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),w3=zn({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),S3=zn({displayName:"InfoOutlineIcon",path:d.jsxs("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[d.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),d.jsx("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),d.jsx("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})}),wA=zn({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),k3=zn({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),SA=zn({viewBox:"0 0 14 14",path:d.jsx("g",{fill:"currentColor",children:d.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),kA=zn({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"}),_A=({steps:e,color:t,onStepClick:n,activeStep:r})=>{const[o,i,a]=qs("colors",[t,"black.400","black.100"]),s=zt(o,.3)({});return d.jsx(pt,{width:"100%",align:"center",justify:"center",children:e.map((l,c)=>d.jsxs(pt,{align:"center",children:[d.jsxs(pt,{align:"center",cursor:l.isCompleted&&n?"pointer":"default",onClick:()=>{l.isCompleted&&n&&n(c)},children:[d.jsx(lm,{ml:c!==0?"10px":void 0,size:"40px",bg:l.isCompleted&&!l.isActive&&c!==r?s:"white",border:`2px solid ${l.isCompleted||l.isActive?o:a}`,children:d.jsx(Ue,{fontSize:"14px",color:l.isCompleted||l.isActive?o:i,fontWeight:l.isActive?"bold":"normal",children:l.isCompleted&&c===e.length-1?d.jsx(SA,{color:o}):c+1})}),d.jsx(Ue,{ml:3,mr:2,color:l.isCompleted||l.isActive?o:i,fontSize:"sm",fontWeight:l.isCompleted||l.isActive?"bold":"normal",textAlign:"initial",whiteSpace:"pre-line",wordBreak:"break-word",children:l.label.split(" ").join(`
|
|
391
|
+
`)},mE=0,ai=[];function gE(e){var t=we.useRef([]),n=we.useRef([0,0]),r=we.useRef(),o=we.useState(mE++)[0],i=we.useState(q2)[0],a=we.useRef(e);we.useEffect(function(){a.current=e},[e]),we.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=__([e.lockRef.current],(e.shards||[]).map(Q2),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=we.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var C=pl(m),y=n.current,k="deltaX"in m?m.deltaX:y[0]-C[0],T="deltaY"in m?m.deltaY:y[1]-C[1],w,O=m.target,P=Math.abs(k)>Math.abs(T)?"h":"v";if("touches"in m&&P==="h"&&O.type==="range")return!1;var $=K2(P,O);if(!$)return!0;if($?w=P:(w=P==="v"?"h":"v",$=K2(P,O)),!$)return!1;if(!r.current&&"changedTouches"in m&&(k||T)&&(r.current=w),!w)return!0;var L=r.current||w;return fE(L,g,m,L==="h"?k:T,!0)},[]),l=we.useCallback(function(m){var g=m;if(!(!ai.length||ai[ai.length-1]!==i)){var C="deltaY"in g?J2(g):pl(g),y=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&pE(w.delta,C)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var k=(a.current.shards||[]).map(Q2).filter(Boolean).filter(function(w){return w.contains(g.target)}),T=k.length>0?s(g,k[0]):!a.current.noIsolation;T&&g.cancelable&&g.preventDefault()}}},[]),c=we.useCallback(function(m,g,C,y){var k={name:m,delta:g,target:C,should:y,shadowParent:vE(C)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(T){return T!==k})},1)},[]),u=we.useCallback(function(m){n.current=pl(m),r.current=void 0},[]),f=we.useCallback(function(m){c(m.type,J2(m),m.target,s(m,e.lockRef.current))},[]),p=we.useCallback(function(m){c(m.type,pl(m),m.target,s(m,e.lockRef.current))},[]);we.useEffect(function(){return ai.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ii),document.addEventListener("touchmove",l,ii),document.addEventListener("touchstart",u,ii),function(){ai=ai.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,ii),document.removeEventListener("touchmove",l,ii),document.removeEventListener("touchstart",u,ii)}},[]);var h=e.removeScrollBar,b=e.inert;return we.createElement(we.Fragment,null,b?we.createElement(i,{styles:hE(o)}):null,h?we.createElement(iE,{gapMode:e.gapMode}):null)}function vE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bE=T_(U2,gE);var e3=we.forwardRef(function(e,t){return we.createElement(dl,er({},e,{ref:t,sideCar:bE}))});e3.classNames=dl.classNames;function yE(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:u,isOpen:f}=po(),[p,h]=k0();v.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const b=W2(r,f);return d.jsx(s2,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:u,children:d.jsx(e3,{removeScrollBar:!c,allowPinchZoom:a,enabled:b===1&&i,forwardProps:!0,children:e.children})})}const Pa={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??xr.enter(ao.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}}},xE=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:u,delay:f,animatePresenceProps:p,...h}=t,b=r?o&&r:!0,m=o||r?"enter":"exit",g={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:u,delay:f};return d.jsx(io,{...p,custom:g,children:b&&d.jsx(yr.div,{ref:n,className:De("chakra-offset-slide",a),custom:g,...Pa,animate:m,...h})})});xE.displayName="SlideFade";const t3={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??xr.exit(ao.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??xr.enter(ao.enter,n),transitionEnd:e==null?void 0:e.enter})}},CE=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:u,animatePresenceProps:f,...p}=t,h=r?o&&r:!0,b=o||r?"enter":"exit",m={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:u};return d.jsx(io,{...f,custom:m,children:h&&d.jsx(yr.div,{ref:n,className:De("chakra-offset-slide",s),...t3,animate:b,custom:m,...p})})});CE.displayName="ScaleFade";const wE={slideInBottom:{...Pa,custom:{offsetY:16,reverse:!0}},slideInRight:{...Pa,custom:{offsetX:16,reverse:!0}},slideInTop:{...Pa,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Pa,custom:{offsetX:-16,reverse:!0}},scale:{...t3,custom:{initialScale:.95,reverse:!0}},none:{}},SE=me(yr.section),kE=e=>wE[e||"none"],n3=v.forwardRef((e,t)=>{const{preset:n,motionProps:r=kE(n),...o}=e;return d.jsx(SE,{ref:t,...r,...o})});n3.displayName="ModalTransition";const r3=Se((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=po(),c=s(a,t),u=l(o),f=De("chakra-modal__content",n),p=ja(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:m}=po();return d.jsx(yE,{children:d.jsx(me.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:d.jsx(n3,{preset:m,motionProps:i,className:f,...c,__css:h,children:r})})})});r3.displayName="ModalContent";const o3=Se((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=po();v.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=De("chakra-modal__body",n),s=ja();return d.jsx(me.div,{ref:t,className:a,id:o,...r,__css:s.body})});o3.displayName="ModalBody";const i3=Se((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=po(),a=De("chakra-modal__close-btn",r),s=ja();return d.jsx(zu,{ref:t,__css:s.closeButton,className:a,onClick:At(n,l=>{l.stopPropagation(),i()}),...o})});i3.displayName="ModalCloseButton";const a3=Se((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=po();v.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=De("chakra-modal__header",n),s=ja(),l={flex:0,...s.header};return d.jsx(me.header,{ref:t,className:a,id:o,...r,__css:l})});a3.displayName="ModalHeader";const s3={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??xr.enter(ao.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??xr.exit(ao.exit,n),transitionEnd:t==null?void 0:t.exit})}},_E=v.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,animatePresenceProps:c,...u}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,h={transition:a,transitionEnd:s,delay:l};return d.jsx(io,{...c,custom:h,children:p&&d.jsx(yr.div,{ref:n,className:De("chakra-fade",i),custom:h,...s3,animate:f,...u})})});_E.displayName="Fade";const TE=me(yr.div),l3=Se((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=De("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ja().overlay},{motionPreset:c}=po(),f=o||(c==="none"?{}:s3);return d.jsx(TE,{...f,__css:l,ref:t,className:a,...i})});l3.displayName="ModalOverlay";function jE(e,t,n){return(e-t)*100/(n-t)}Hi({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),Hi({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const PE=Hi({"0%":{left:"-40%"},"100%":{left:"100%"}}),EE=Hi({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function AE(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:s="progressbar"}=e,l=jE(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:s},percent:l,value:t}}const[ME,OE]=wt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),DE=Se((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:a,...s}=e,l=AE({value:o,min:n,max:r,isIndeterminate:i,role:a}),u={height:"100%",...OE().filledTrack};return d.jsx(me.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:u})}),c3=Se((e,t)=>{var P;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:a,children:s,borderRadius:l,isIndeterminate:c,"aria-label":u,"aria-labelledby":f,"aria-valuetext":p,title:h,role:b,...m}=Ot(e),g=$n("Progress",e),C=l??((P=g.track)==null?void 0:P.borderRadius),y={animation:`${EE} 1s linear infinite`},w={...!c&&i&&a&&y,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${PE} 1s ease infinite normal none running`}},O={overflow:"hidden",position:"relative",...g.track};return d.jsx(me.div,{ref:t,borderRadius:C,__css:O,...m,children:d.jsxs(ME,{value:g,children:[d.jsx(DE,{"aria-label":u,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:c,css:w,borderRadius:C,title:h,role:b}),s]})})});c3.displayName="Progress";const u3=Se(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return d.jsxs(me.select,{...a,ref:n,className:De("chakra-select",i),children:[o&&d.jsx("option",{value:"",children:o}),r]})});u3.displayName="SelectField";const d3=Se((e,t)=>{var k;const n=$n("Select",e),{rootProps:r,placeholder:o,icon:i,color:a,height:s,h:l,minH:c,minHeight:u,iconColor:f,iconSize:p,...h}=Ot(e),[b,m]=U4(h,Fg),g=Wu(m),C={width:"100%",height:"fit-content",position:"relative",color:a},y={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(k=n.field)==null?void 0:k._focus}};return d.jsxs(me.div,{className:"chakra-select__wrapper",__css:C,...b,...r,children:[d.jsx(u3,{ref:t,height:l??s,minH:c??u,placeholder:o,...g,__css:y,children:e.children}),d.jsx(f3,{"data-disabled":Jt(g.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:i})]})});d3.displayName="Select";const IE=e=>d.jsx("svg",{viewBox:"0 0 24 24",...e,children:d.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),$E=me("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),f3=e=>{const{children:t=d.jsx(IE,{}),...n}=e,r=v.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return d.jsx($E,{...n,className:"chakra-select__icon-wrapper",children:v.isValidElement(t)?r:null})};f3.displayName="SelectIcon";const p3=e=>d.jsx(me.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p3.displayName="StackItem";function FE(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":N4(n,o=>r[o])}}const Rd=Se((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:c,className:u,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",b=v.useMemo(()=>FE({spacing:a,direction:h}),[a,h]),m=!!c,g=!f&&!m,C=v.useMemo(()=>{const k=jl(l);return g?k:k.map((T,w)=>{const O=typeof T.key<"u"?T.key:w,P=w+1===k.length,L=f?d.jsx(p3,{children:T},O):T;if(!m)return L;const R=v.cloneElement(c,{__css:b}),X=P?null:R;return d.jsxs(v.Fragment,{children:[L,X]},O)})},[c,b,m,g,f,l]),y=De("chakra-stack",u);return d.jsx(me.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:m?void 0:a,className:y,...p,children:C})});Rd.displayName="Stack";const Ea=Se((e,t)=>d.jsx(Rd,{align:"center",...e,direction:"row",ref:t}));Ea.displayName="HStack";const wr=Se((e,t)=>d.jsx(Rd,{align:"center",...e,direction:"column",ref:t}));wr.displayName="VStack";const zE=["h","minH","height","minHeight"],Nd=Se((e,t)=>{const n=Jn("Textarea",e),{className:r,rows:o,...i}=Ot(e),a=Wu(i),s=o?yi(n,zE):n;return d.jsx(me.textarea,{ref:t,rows:o,...a,className:De("chakra-textarea",r),__css:s})});Nd.displayName="Textarea";function LE(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function BE(e,t){const n=o=>({...t,...o,position:LE((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),a=Nh(i);return Qn.notify(a,i)};return r.update=(o,i)=>{Qn.update(o,n(i))},r.promise=(o,i)=>{const a=r({...i.loading,status:"loading",duration:null});o.then(s=>r.update(a,{status:"success",duration:5e3,...dn(i.success,s)})).catch(s=>r.update(a,{status:"error",duration:5e3,...dn(i.error,s)}))},r.closeAll=Qn.closeAll,r.close=Qn.close,r.isActive=Qn.isActive,r}function h3(e){const{theme:t}=Oh(),n=Pk();return v.useMemo(()=>BE(t.direction,{...n,...e}),[e,t.direction,n])}const RE={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Vd=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},hl=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function NE(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:f,isOpen:p,defaultIsOpen:h,arrowSize:b=10,arrowShadowColor:m,arrowPadding:g,modifiers:C,isDisabled:y,gutter:k,offset:T,direction:w,...O}=e,{isOpen:P,onOpen:$,onClose:L}=Pl({isOpen:p,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:R,getPopperProps:X,getArrowInnerProps:be,getArrowProps:se}=L2({enabled:P,placement:u,arrowPadding:g,modifiers:C,gutter:k,offset:T,direction:w}),V=v.useId(),J=`tooltip-${f??V}`,B=v.useRef(null),ge=v.useRef(),ye=v.useCallback(()=>{ge.current&&(clearTimeout(ge.current),ge.current=void 0)},[]),M=v.useRef(),I=v.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=void 0)},[]),G=v.useCallback(()=>{I(),L()},[L,I]),N=VE(B,G),z=v.useCallback(()=>{if(!y&&!ge.current){P&&N();const U=hl(B);ge.current=U.setTimeout($,t)}},[N,y,P,$,t]),x=v.useCallback(()=>{ye();const U=hl(B);M.current=U.setTimeout(G,n)},[n,G,ye]),K=v.useCallback(()=>{P&&r&&x()},[r,x,P]),te=v.useCallback(()=>{P&&a&&x()},[a,x,P]),ne=v.useCallback(U=>{P&&U.key==="Escape"&&x()},[P,x]);Va(()=>Vd(B),"keydown",s?ne:void 0),Va(()=>{if(!i)return null;const U=B.current;if(!U)return null;const je=yf(U);return je.localName==="body"?hl(B):je},"scroll",()=>{P&&i&&G()},{passive:!0,capture:!0}),v.useEffect(()=>{y&&(ye(),P&&L())},[y,P,L,ye]),v.useEffect(()=>()=>{ye(),I()},[ye,I]),Va(()=>B.current,"pointerleave",x);const de=v.useCallback((U={},je=null)=>({...U,ref:en(B,je,R),onPointerEnter:At(U.onPointerEnter,F=>{F.pointerType!=="touch"&&z()}),onClick:At(U.onClick,K),onPointerDown:At(U.onPointerDown,te),onFocus:At(U.onFocus,z),onBlur:At(U.onBlur,x),"aria-describedby":P?J:void 0}),[z,x,te,P,J,K,R]),ce=v.useCallback((U={},je=null)=>X({...U,style:{...U.style,[Rt.arrowSize.var]:b?`${b}px`:void 0,[Rt.arrowShadowColor.var]:m}},je),[X,b,m]),_e=v.useCallback((U={},je=null)=>{const $e={...U.style,position:"relative",transformOrigin:Rt.transformOrigin.varRef};return{ref:je,...O,...U,id:J,role:"tooltip",style:$e}},[O,J]);return{isOpen:P,show:z,hide:x,getTriggerProps:de,getTooltipProps:_e,getTooltipPositionerProps:ce,getArrowProps:se,getArrowInnerProps:be}}const Wd="chakra-ui:close-tooltip";function VE(e,t){return v.useEffect(()=>{const n=Vd(e);return n.addEventListener(Wd,t),()=>n.removeEventListener(Wd,t)},[t,e]),()=>{const n=Vd(e),r=hl(e);n.dispatchEvent(new r.CustomEvent(Wd))}}const WE=me(yr.div),Hd=Se((e,t)=>{const n=Jn("Tooltip",e),r=Ot(e),o=Us(),{children:i,label:a,shouldWrapChildren:s,"aria-label":l,hasArrow:c,bg:u,portalProps:f,background:p,backgroundColor:h,bgColor:b,motionProps:m,animatePresenceProps:g,...C}=r,y=p??h??u??b;if(y){n.bg=y;const R=qg(o,"colors",y);n[Rt.arrowBg.var]=R}const k=NE({...C,direction:o.direction}),T=!v.isValidElement(i)||s;let w;if(T)w=d.jsx(me.span,{display:"inline-block",tabIndex:0,...k.getTriggerProps(),children:i});else{const R=v.Children.only(i);w=v.cloneElement(R,k.getTriggerProps(R.props,R.ref))}const O=!!l,P=k.getTooltipProps({},t),$=O?yi(P,["role","id"]):P,L=bf(P,["role","id"]);return a?d.jsxs(d.Fragment,{children:[w,d.jsx(io,{...g,children:k.isOpen&&d.jsx(qo,{...f,children:d.jsx(me.div,{...k.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:d.jsxs(WE,{variants:RE,initial:"exit",animate:"enter",exit:"exit",...m,...$,__css:n,children:[a,O&&d.jsx(me.span,{srOnly:!0,...L,children:l}),c&&d.jsx(me.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:d.jsx(me.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):d.jsx(d.Fragment,{children:i})});Hd.displayName="Tooltip";const Ue=Se(function(t,n){const r=Jn("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Ot(t),c=Ra({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return d.jsx(me.p,{ref:n,className:De("chakra-text",t.className),...c,...l,__css:r})});Ue.displayName="Text";const HE={body:"Sansation-Regular, sans-serif",heading:"Sansation-Bold, sans-serif",Lato:"Lato, sans-serif"},UE={global:{body:{color:"#000",textAlign:"center",fontFamily:"Sansation-Regular, sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"normal"},"*":{boxSizing:"border-box"},a:{cursor:"pointer"},...{".chat-wrapper":{background:"#4E4D4D",border:"2px solid #D6D6D6",borderRadius:"8px",fontSize:"16px",minHeight:"240px",overflow:"hidden",padding:"1rem 0",width:"100%"},".message-input":{borderTop:"1px solid #ccc"},".cs-message-list":{background:"#4E4D4D"},".cs-chat-container .cs-message-input":{background:"#4E4D4D",border:"0",padding:"1rem 0"},".scrollbar-container":{background:"transparent"},".cs-message-input__content-editor-wrapper":{background:"#6E6E6E"},".cs-message-input__content-editor":{background:"transparent",color:"#fff",textAlign:"left"},".cs-message--incoming .cs-message__content":{background:"transparent",padding:"1rem 0",color:"#fff",textAlign:"left",fontSize:"16px"},".cs-message.cs-message--outgoing.cs-message--first .cs-message__content":{background:"#efefef",borderRadius:"20px",color:"#000"},".cs-message.cs-message--incoming.cs-message--first .cs-message__content":{background:"transparent",color:"#fff"},".cs-message.cs-message--outgoing.cs-message--single .cs-message__content":{background:"#fff",fontSize:"16px"},".cs-message-list .cs-typing-indicator":{background:"transparent",margin:"0 1.2em 0 .8em",padding:"0"},".cs-typing-indicator__text":{color:"#fff"},".cs-typing-indicator__dot":{backgroundColor:"#fff"}}}},Zt={primary:{200:"#8BBFCB",300:"#67ABBB",400:"#4A94A6",500:"#3B7684",600:"#2B555F"},elevate:{200:"#FFF8FA",300:"#FFD6E2",400:"#FFA3BF",500:"#FF6F9A",600:"#FF3D77",700:"#FF0A53"},assist:{200:"#F9FCFE",300:"#B4D8F4",400:"#87C1ED",500:"#5AA9E6",600:"#2F93DF",700:"#1D79BE"},play:{300:"#FEE2DC",400:"#FCB8AB",500:"#FB8E79",600:"#FA6448",700:"#F93916"},talent:{300:"#D4BBD8",400:"#AB7AB3",500:"#965BA0",600:"#77487F",700:"#58365E"},collect:{300:"#95DAB8",400:"#6FCD9E",500:"#48BF84",600:"#389F6C",700:"#F93916"},ad:{300:"#AA7A60",400:"#8C624B",500:"#694A38",600:"#493427",700:"#281C15"},black:{40:"#EFEFEF",50:"#D7D7D7",100:"#C1C1C1",200:"#999999",300:"#999999",400:"#666666",500:"#333333",600:"#222222"},white:{50:"#EFEFEF",100:"#FFFFFF"},success:{200:"#C6F6D5",300:"#2CD888",400:"#21B06E",500:"#198754",600:"#115A38"},danger:{200:"#FED7D7",300:"#F81C34",400:"#DB071E",500:"#CE0015",600:"#C10004"},warning:{200:"#FEEBCB",300:"#FFCF70",400:"#FFBE3D",500:"#FFAE0C",600:"#D68F00"},info:{200:"#BEE3F8",300:"#47AFFF",400:"#1499FF",500:"#007EDF",600:"#0062AD"}},Br=d_({config:{initialColorMode:"light",useSystemColorMode:!1},colors:Zt,fonts:HE,styles:UE}),qE=({children:e,...t})=>d.jsx(Ak,{theme:Br,...t,children:e}),ZE=({options:e,onChange:t,...n})=>d.jsx(d3,{onChange:r=>t(r.target.value),...n,children:e.map(r=>d.jsx("option",{value:r.value,children:r.name},r.value))});var m3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g3=v.createContext&&v.createContext(m3),GE=["attr","size","title"];function KE(e,t){if(e==null)return{};var n=YE(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YE(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(r){XE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XE(e,t,n){return t=JE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JE(e){var t=QE(e,"string");return typeof t=="symbol"?t:t+""}function QE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b3(e){return e&&e.map((t,n)=>v.createElement(t.tag,gl({key:n},t.attr),b3(t.child)))}function bt(e){return t=>v.createElement(eA,ml({attr:gl({},e.attr)},t),b3(e.child))}function eA(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=KE(e,GE),s=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",ml({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:gl(gl({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&v.createElement("title",null,i),e.children)};return g3!==void 0?v.createElement(g3.Consumer,null,n=>t(n)):t(m3)}function tA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"polyline",attr:{points:"19 12 12 19 5 12"},child:[]}]})(e)}function nA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(e)}function rA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(e)}function oA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"5"},child:[]},{tag:"polyline",attr:{points:"5 12 12 5 19 12"},child:[]}]})(e)}function iA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function aA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"},child:[]}]})(e)}function sA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function lA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function cA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},child:[]},{tag:"polyline",attr:{points:"13 2 13 9 20 9"},child:[]}]})(e)}function uA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function dA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function fA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"},child:[]},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"},child:[]},{tag:"polyline",attr:{points:"7 3 7 8 15 8"},child:[]}]})(e)}function y3(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"},child:[]}]})(e)}function x3(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},child:[]}]})(e)}function pA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function hA(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}const mA={arrowLeft:nA,arrowRight:rA,delete:pA,save:fA,added:dA,record:uA,file:cA,download:sA,arrowDownload:tA},gA=({text:e,type:t="solid",color:n,size:r="md",loading:o=!1,onClick:i,icon:a,disabled:s,...l})=>{const[c]=qs("colors",[n]),u=a?mA[a]:void 0,f=(()=>{switch(t){case"solid":return zt(c,.7)({});case"outline":return zt(c,.1)({});case"surface":return zt(c,.5)({});case"subtle":return zt(c,.5)({});default:return"transparent"}})(),p=(()=>{switch(t){case"solid":return{bg:c,color:"white"};case"outline":return{bg:"transparent",color:c,borderColor:c,borderWidth:"1px"};case"surface":return{bg:zt(c,.3)({}),color:c,borderColor:c,borderWidth:"1px"};case"subtle":return{bg:zt(c,.3)({}),color:c,borderColor:c};default:return{}}})();return d.jsxs(Fn,{onClick:i,size:r,isLoading:o,bg:p.bg,color:p.color,borderColor:p.borderColor,borderWidth:p.borderWidth,_hover:{bg:f},disabled:s,...l,children:[u&&d.jsx(_n,{as:u,mr:2}),e]})};function vA(e){return bt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}const bA=({title:e,description:t,iconColor:n="elevate.500",onUpload:r,h:o="155px",w:i="155px",initialImage:a})=>{const[s,l]=v.useState(null);v.useEffect(()=>{if(a){const u=URL.createObjectURL(a);l(u)}else l(null)},[a]);const c=async u=>{var p;const f=(p=u.target.files)==null?void 0:p[0];if(f){const h=URL.createObjectURL(f);l(h),r&&await r(f)}};return d.jsxs(wr,{spacing:4,border:"1px dashed",borderColor:"gray.300",rounded:"md",align:"center",justify:"center",width:i,height:o,cursor:"pointer",onClick:()=>{var u;return(u=document.getElementById("file-input"))==null?void 0:u.click()},children:[s?d.jsx(u2,{src:s,alt:"Uploaded",boxSize:"100%",rounded:"md"}):d.jsxs(d.Fragment,{children:[d.jsx(_n,{as:vA,color:n,boxSize:8}),d.jsx(Ue,{fontWeight:"bold",children:e}),d.jsx(Ue,{fontSize:"sm",color:"gray.500",children:t})]}),d.jsx("input",{id:"file-input",type:"file",style:{display:"none"},accept:"image/*",onChange:c})]})},yA=zn({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),xA=zn({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),CA=zn({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),Ud=zn({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),C3=zn({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),w3=zn({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),S3=zn({displayName:"InfoOutlineIcon",path:d.jsxs("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[d.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),d.jsx("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),d.jsx("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})}),wA=zn({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),k3=zn({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),SA=zn({viewBox:"0 0 14 14",path:d.jsx("g",{fill:"currentColor",children:d.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),kA=zn({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"}),_A=({steps:e,color:t,onStepClick:n,activeStep:r})=>{const[o,i,a]=qs("colors",[t,"black.400","black.100"]),s=zt(o,.3)({});return d.jsx(pt,{width:"100%",align:"center",justify:"center",children:e.map((l,c)=>d.jsxs(pt,{align:"center",children:[d.jsxs(pt,{align:"center",cursor:l.isCompleted&&n?"pointer":"default",onClick:()=>{l.isCompleted&&n&&n(c)},children:[d.jsx(lm,{ml:c!==0?"10px":void 0,size:"40px",bg:l.isCompleted&&!l.isActive&&c!==r?s:"white",border:`2px solid ${l.isCompleted||l.isActive?o:a}`,children:d.jsx(Ue,{fontSize:"14px",color:l.isCompleted||l.isActive?o:i,fontWeight:l.isActive?"bold":"normal",children:l.isCompleted&&c===e.length-1?d.jsx(SA,{color:o}):c+1})}),d.jsx(Ue,{ml:3,mr:2,color:l.isCompleted||l.isActive?o:i,fontSize:"sm",fontWeight:l.isCompleted||l.isActive?"bold":"normal",textAlign:"initial",whiteSpace:"pre-line",wordBreak:"break-word",children:l.label.split(" ").join(`
|
|
392
392
|
`)})]}),c<e.length-1&&d.jsx(fm,{width:"64px",flex:"1",borderWidth:"2px",borderColor:l.isCompleted||l.isActive?o:a,mx:2})]},c))})},TA=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function si(e,t,n){const r=jA(e),{webkitRelativePath:o}=e,i=typeof t=="string"?t:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&_3(r,"path",i),_3(r,"relativePath",i),r}function jA(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),o=TA.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function _3(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const PA=[".DS_Store","Thumbs.db"];function EA(e){return so(this,void 0,void 0,function*(){return vl(e)&&AA(e.dataTransfer)?IA(e.dataTransfer,e.type):MA(e)?OA(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?DA(e):[]})}function AA(e){return vl(e)}function MA(e){return vl(e)&&vl(e.target)}function vl(e){return typeof e=="object"&&e!==null}function OA(e){return qd(e.target.files).map(t=>si(t))}function DA(e){return so(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>si(n))})}function IA(e,t){return so(this,void 0,void 0,function*(){if(e.items){const n=qd(e.items).filter(o=>o.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map($A));return T3(j3(r))}return T3(qd(e.files).map(n=>si(n)))})}function T3(e){return e.filter(t=>PA.indexOf(t.name)===-1)}function qd(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function $A(e){if(typeof e.webkitGetAsEntry!="function")return P3(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?E3(t):P3(e,t)}function j3(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?j3(n):[n]],[])}function P3(e,t){return so(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const i=yield e.getAsFileSystemHandle();if(i===null)throw new Error(`${e} is not a File`);if(i!==void 0){const a=yield i.getFile();return a.handle=i,si(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return si(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function FA(e){return so(this,void 0,void 0,function*(){return e.isDirectory?E3(e):zA(e)})}function E3(e){const t=e.createReader();return new Promise((n,r)=>{const o=[];function i(){t.readEntries(a=>so(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(FA));o.push(s),i()}else try{const s=yield Promise.all(o);n(s)}catch(s){r(s)}}),a=>{r(a)})}i()})}function zA(e){return so(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const o=si(r,e.fullPath);t(o)},r=>{n(r)})})})}var Zd=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?i===s.replace(/\/.*$/,""):o===s})}return!0};function A3(e){return RA(e)||BA(e)||I3(e)||LA()}function LA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
393
393
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RA(e){if(Array.isArray(e))return Gd(e)}function M3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function O3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M3(Object(n),!0).forEach(function(r){D3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e,t){return WA(e)||VA(e,t)||I3(e,t)||NA()}function NA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
394
394
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I3(e,t){if(e){if(typeof e=="string")return Gd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gd(e,t)}}function Gd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function WA(e){if(Array.isArray(e))return e}var HA=typeof Zd=="function"?Zd:Zd.default,UA="file-invalid-type",qA="file-too-large",ZA="file-too-small",GA="too-many-files",KA=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:UA,message:"File type must be ".concat(r)}},$3=function(t){return{code:qA,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},F3=function(t){return{code:ZA,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},YA={code:GA,message:"Too many files"};function z3(e,t){var n=e.type==="application/x-moz-file"||HA(e,t);return[n,n?null:KA(t)]}function L3(e,t,n){if(ho(e.size))if(ho(t)&&ho(n)){if(e.size>n)return[!1,$3(n)];if(e.size<t)return[!1,F3(t)]}else{if(ho(t)&&e.size<t)return[!1,F3(t)];if(ho(n)&&e.size>n)return[!1,$3(n)]}return[!0,null]}function ho(e){return e!=null}function XA(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(l){var c=z3(l,n),u=Aa(c,1),f=u[0],p=L3(l,r,o),h=Aa(p,1),b=h[0],m=s?s(l):null;return f&&b&&!m})}function bl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function yl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function B3(e){e.preventDefault()}function JA(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function QA(e){return e.indexOf("Edge/")!==-1}function eM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return JA(e)||QA(e)}function or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(s){return!bl(r)&&s&&s.apply(void 0,[r].concat(i)),bl(r)})}}function tM(){return"showOpenFilePicker"in window}function nM(e){if(ho(e)){var t=Object.entries(e).filter(function(n){var r=Aa(n,2),o=r[0],i=r[1],a=!0;return R3(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(N3))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=Aa(r,2),i=o[0],a=o[1];return O3(O3({},n),{},D3({},i,a))},{});return[{description:"Files",accept:t}]}return e}function rM(e){if(ho(e))return Object.entries(e).reduce(function(t,n){var r=Aa(n,2),o=r[0],i=r[1];return[].concat(A3(t),[o],A3(i))},[]).filter(function(t){return R3(t)||N3(t)}).join(",")}function oM(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function iM(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function R3(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function N3(e){return/^.*\.[\w]+$/.test(e)}var aM=["children"],sM=["open"],lM=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],cM=["refKey","onChange","onClick"];function uM(e){return pM(e)||fM(e)||V3(e)||dM()}function dM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
395
395
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pM(e){if(Array.isArray(e))return Yd(e)}function Kd(e,t){return gM(e)||mM(e,t)||V3(e,t)||hM()}function hM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
396
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V3(e,t){if(e){if(typeof e=="string")return Yd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yd(e,t)}}function Yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function gM(e){if(Array.isArray(e))return e}function W3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W3(Object(n),!0).forEach(function(r){Xd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xl(e,t){if(e==null)return{};var n=vM(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vM(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Jd=v.forwardRef(function(e,t){var n=e.children,r=xl(e,aM),o=U3(r),i=o.open,a=xl(o,sM);return v.useImperativeHandle(t,function(){return{open:i}},[i]),v.createElement(v.Fragment,null,n(yt(yt({},a),{},{open:i})))});Jd.displayName="Dropzone";var H3={disabled:!1,getFilesFromEvent:EA,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Jd.defaultProps=H3,Jd.propTypes={children:ot.func,accept:ot.objectOf(ot.arrayOf(ot.string)),multiple:ot.bool,preventDropOnDocument:ot.bool,noClick:ot.bool,noKeyboard:ot.bool,noDrag:ot.bool,noDragEventsBubbling:ot.bool,minSize:ot.number,maxSize:ot.number,maxFiles:ot.number,disabled:ot.bool,getFilesFromEvent:ot.func,onFileDialogCancel:ot.func,onFileDialogOpen:ot.func,useFsAccessApi:ot.bool,autoFocus:ot.bool,onDragEnter:ot.func,onDragLeave:ot.func,onDragOver:ot.func,onDrop:ot.func,onDropAccepted:ot.func,onDropRejected:ot.func,onError:ot.func,validator:ot.func};var Qd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function U3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=yt(yt({},H3),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,b=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,C=t.useFsAccessApi,y=t.autoFocus,k=t.preventDropOnDocument,T=t.noClick,w=t.noKeyboard,O=t.noDrag,P=t.noDragEventsBubbling,$=t.onError,L=t.validator,R=v.useMemo(function(){return rM(n)},[n]),X=v.useMemo(function(){return nM(n)},[n]),be=v.useMemo(function(){return typeof g=="function"?g:q3},[g]),se=v.useMemo(function(){return typeof m=="function"?m:q3},[m]),V=v.useRef(null),Y=v.useRef(null),J=v.useReducer(bM,Qd),B=Kd(J,2),ge=B[0],ye=B[1],M=ge.isFocused,I=ge.isFileDialogActive,G=v.useRef(typeof window<"u"&&window.isSecureContext&&C&&tM()),N=function(){!G.current&&I&&setTimeout(function(){if(Y.current){var re=Y.current.files;re.length||(ye({type:"closeDialog"}),se())}},300)};v.useEffect(function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}},[Y,I,se,G]);var z=v.useRef([]),x=function(re){V.current&&V.current.contains(re.target)||(re.preventDefault(),z.current=[])};v.useEffect(function(){return k&&(document.addEventListener("dragover",B3,!1),document.addEventListener("drop",x,!1)),function(){k&&(document.removeEventListener("dragover",B3),document.removeEventListener("drop",x))}},[V,k]),v.useEffect(function(){return!r&&y&&V.current&&V.current.focus(),function(){}},[V,y,r]);var K=v.useCallback(function(H){$?$(H):console.error(H)},[$]),te=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H),z.current=[].concat(uM(z.current),[H.target]),yl(H)&&Promise.resolve(o(H)).then(function(re){if(!(bl(H)&&!P)){var oe=re.length,ae=oe>0&&XA({files:re,accept:R,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:L}),Oe=oe>0&&!ae;ye({isDragAccept:ae,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H)}}).catch(function(re){return K(re)})},[o,c,K,P,R,a,i,s,l,L]),ne=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H);var re=yl(H);if(re&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return re&&f&&f(H),!1},[f,P]),de=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H);var re=z.current.filter(function(ae){return V.current&&V.current.contains(ae)}),oe=re.indexOf(H.target);oe!==-1&&re.splice(oe,1),z.current=re,!(re.length>0)&&(ye({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yl(H)&&u&&u(H))},[V,u,P]),ce=v.useCallback(function(H,re){var oe=[],ae=[];H.forEach(function(Oe){var ft=z3(Oe,R),tt=Kd(ft,2),xt=tt[0],It=tt[1],Gt=L3(Oe,a,i),it=Kd(Gt,2),Pt=it[0],Ht=it[1],Ln=L?L(Oe):null;if(xt&&Pt&&!Ln)oe.push(Oe);else{var ln=[It,Ht];Ln&&(ln=ln.concat(Ln)),ae.push({file:Oe,errors:ln.filter(function(gn){return gn})})}}),(!s&&oe.length>1||s&&l>=1&&oe.length>l)&&(oe.forEach(function(Oe){ae.push({file:Oe,errors:[YA]})}),oe.splice(0)),ye({acceptedFiles:oe,fileRejections:ae,isDragReject:ae.length>0,type:"setFiles"}),p&&p(oe,ae,re),ae.length>0&&b&&b(ae,re),oe.length>0&&h&&h(oe,re)},[ye,s,R,a,i,l,p,h,b,L]),_e=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H),z.current=[],yl(H)&&Promise.resolve(o(H)).then(function(re){bl(H)&&!P||ce(re,H)}).catch(function(re){return K(re)}),ye({type:"reset"})},[o,ce,K,P]),U=v.useCallback(function(){if(G.current){ye({type:"openDialog"}),be();var H={multiple:s,types:X};window.showOpenFilePicker(H).then(function(re){return o(re)}).then(function(re){ce(re,null),ye({type:"closeDialog"})}).catch(function(re){oM(re)?(se(re),ye({type:"closeDialog"})):iM(re)?(G.current=!1,Y.current?(Y.current.value=null,Y.current.click()):K(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):K(re)});return}Y.current&&(ye({type:"openDialog"}),be(),Y.current.value=null,Y.current.click())},[ye,be,se,C,ce,K,X,s]),je=v.useCallback(function(H){!V.current||!V.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),U())},[V,U]),$e=v.useCallback(function(){ye({type:"focus"})},[]),F=v.useCallback(function(){ye({type:"blur"})},[]),Z=v.useCallback(function(){T||(eM()?setTimeout(U,0):U())},[T,U]),ie=function(re){return r?null:re},xe=function(re){return w?null:ie(re)},fe=function(re){return O?null:ie(re)},pe=function(re){P&&re.stopPropagation()},Te=v.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=H.refKey,oe=re===void 0?"ref":re,ae=H.role,Oe=H.onKeyDown,ft=H.onFocus,tt=H.onBlur,xt=H.onClick,It=H.onDragEnter,Gt=H.onDragOver,it=H.onDragLeave,Pt=H.onDrop,Ht=xl(H,lM);return yt(yt(Xd({onKeyDown:xe(or(Oe,je)),onFocus:xe(or(ft,$e)),onBlur:xe(or(tt,F)),onClick:ie(or(xt,Z)),onDragEnter:fe(or(It,te)),onDragOver:fe(or(Gt,ne)),onDragLeave:fe(or(it,de)),onDrop:fe(or(Pt,_e)),role:typeof ae=="string"&&ae!==""?ae:"presentation"},oe,V),!r&&!w?{tabIndex:0}:{}),Ht)}},[V,je,$e,F,Z,te,ne,de,_e,w,O,r]),Ie=v.useCallback(function(H){H.stopPropagation()},[]),le=v.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=H.refKey,oe=re===void 0?"ref":re,ae=H.onChange,Oe=H.onClick,ft=xl(H,cM),tt=Xd({accept:R,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ie(or(ae,_e)),onClick:ie(or(Oe,Ie)),tabIndex:-1},oe,Y);return yt(yt({},tt),ft)}},[Y,n,s,_e,r]);return yt(yt({},ge),{},{isFocused:M&&!r,getRootProps:Te,getInputProps:le,rootRef:V,inputRef:Y,open:ie(U)})}function bM(e,t){switch(t.type){case"focus":return yt(yt({},e),{},{isFocused:!0});case"blur":return yt(yt({},e),{},{isFocused:!1});case"openDialog":return yt(yt({},Qd),{},{isFileDialogActive:!0});case"closeDialog":return yt(yt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return yt(yt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return yt(yt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return yt({},Qd);default:return e}}function q3(){}function yM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 19v-4h3l-4-5-4 5h3v4z"},child:[]},{tag:"path",attr:{d:"M7 19h2v-2H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5z"},child:[]}]})(e)}const xM=({onFilesDropped:e,color:t="elevate.500",typeAccept:n="file",fileAccept:r=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv"],maxSize:o="5MB",title:i="Subir tus archivos",description:a="Arrastra y suelta tus archivos aquí",buttonText:s="Seleccionar archivos"})=>{const l=h3(),[c,u,f,p]=qs("colors",[t,"black.600","white.50","black.300"]),h=zt(c,.7)({}),[b,m]=v.useState(""),g=typeof o=="string"&&o.includes("MB")?parseInt(o)*1024*1024:parseInt(o),C=v.useMemo(()=>r.length>0?r.map(L=>L.startsWith(".")?L:`.${L}`):n==="image"?[".jpeg",".jpg",".png",".gif"]:n==="file"?[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv"]:[],[r,n]),y={".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".txt":"text/plain",".csv":"text/csv",".jpeg":"image/jpeg",".jpg":"image/jpeg",".png":"image/png",".gif":"image/gif"},k=C.length>0?C.reduce((L,R)=>{const X=y[R];return X&&(L[X]=[...L[X]||[],R]),L},{}):void 0;v.useEffect(()=>{C.length>0?m(`Formato soportado: ${C.map(L=>L.replace(".","")).join(", ")}`):m("Acepta cualquier archivo")},[C]);const T=v.useCallback((L,R)=>{const X=L.filter(be=>C.some(se=>be.name.endsWith(se)));R.forEach(be=>{const{file:se,errors:V}=be;V.forEach(Y=>{Y.code==="file-too-large"?l({title:"Archivo demasiado grande",description:`El archivo "${se.name}" supera el tamaño máximo permitido.`,status:"warning",duration:4e3,isClosable:!0,variant:"solid",containerStyle:{color:`${f} !important`}}):Y.code==="file-invalid-type"&&l({title:"Extensión no permitida",description:`El archivo "${se.name}" no tiene una extensión válida.`,status:"info",duration:4e3,isClosable:!0,variant:"solid",containerStyle:{color:`${f} !important`}})})}),X.length>0&&e(X)},[C,e,l]),{getRootProps:w,getInputProps:O,isDragActive:P}=U3({onDrop:T,multiple:!0,accept:k,maxSize:g}),$=g?`Tamaño máximo: ${g/1024/1024} MB`:"Sin límite de tamaño";return d.jsxs(_t,{children:[d.jsx(pt,{mt:4,alignItems:"flex-start",children:d.jsx(Ue,{fontSize:"20px",fontWeight:"700",color:u,mb:2,children:i})}),d.jsxs(_t,{...w(),py:"70px",px:"41px",border:`2px dashed ${P?c:p}`,borderRadius:"lg",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",_hover:{borderColor:h},bg:P?zt(c,.1)({}):"transparent",children:[d.jsx("input",{...O()}),d.jsx(_n,{as:yM,boxSize:"40px",color:c,mb:"16px"}),d.jsx(Ue,{fontSize:"16px",fontWeight:"16px",color:u,mb:4,children:a}),d.jsx(Fn,{bg:c,color:f,_hover:{bg:h},size:"lg",children:s})]}),d.jsxs(pt,{mt:4,justifyContent:"space-between",children:[b&&d.jsx(Ue,{fontSize:"14px",color:p,children:b}),$&&d.jsx(Ue,{fontSize:"14px",color:p,children:$})]})]})},CM=({text:e,fontSize:t="md"})=>d.jsx(Ue,{fontSize:t,fontFamily:"Lato",children:e}),wM=({label:e,placeholder:t,value:n="",onChange:r=f=>{console.log(f)},isRequired:o=!1,info:i=!1,infoText:a="",product:s="info",textArea:l=!1,description:c="",dropdown:u=!1})=>{const[f,p]=v.useState(!0),h=C=>{r(C.target.value)},b=Zt[s],m=b[200],g=b[300];return d.jsxs(Ks,{isRequired:o,children:[d.jsxs(Xs,{display:"flex",alignItems:"center",fontSize:"16px",children:[u&&d.jsx(Tn,{"aria-label":"Toggle Description",icon:f?d.jsx(Ud,{}):d.jsx(C3,{}),size:"sm",variant:"ghost",onClick:()=>p(!f),_hover:{bg:"transparent"}}),e,i&&a&&d.jsx(Hd,{label:a,"aria-label":"Más información",p:"10px",borderRadius:"5px",bg:m,border:`1px solid ${g}`,color:"black.500",placement:"top",hasArrow:!0,children:d.jsx(Tn,{icon:d.jsx(S3,{}),"aria-label":"Información",size:"sm",variant:"ghost",ml:2,color:"info.600"})})]}),u&&f&&c&&d.jsx(Ue,{fontSize:"14px",color:"gray.500",mb:"10px",textAlign:"start",children:c}),l?d.jsx(Nd,{placeholder:t,value:n,onChange:C=>h(C),bg:"white"}):d.jsx(va,{placeholder:t,value:n,onChange:h,bg:"white"})]})};var SM=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,i){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var a in r)n.d(i,a,(function(s){return r[s]}).bind(null,a));return i},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=9)}([function(e,t){e.exports=v},function(e,t,n){var r;/*!
|
|
396
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V3(e,t){if(e){if(typeof e=="string")return Yd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yd(e,t)}}function Yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function gM(e){if(Array.isArray(e))return e}function W3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W3(Object(n),!0).forEach(function(r){Xd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xl(e,t){if(e==null)return{};var n=vM(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vM(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Jd=v.forwardRef(function(e,t){var n=e.children,r=xl(e,aM),o=U3(r),i=o.open,a=xl(o,sM);return v.useImperativeHandle(t,function(){return{open:i}},[i]),v.createElement(v.Fragment,null,n(yt(yt({},a),{},{open:i})))});Jd.displayName="Dropzone";var H3={disabled:!1,getFilesFromEvent:EA,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Jd.defaultProps=H3,Jd.propTypes={children:ot.func,accept:ot.objectOf(ot.arrayOf(ot.string)),multiple:ot.bool,preventDropOnDocument:ot.bool,noClick:ot.bool,noKeyboard:ot.bool,noDrag:ot.bool,noDragEventsBubbling:ot.bool,minSize:ot.number,maxSize:ot.number,maxFiles:ot.number,disabled:ot.bool,getFilesFromEvent:ot.func,onFileDialogCancel:ot.func,onFileDialogOpen:ot.func,useFsAccessApi:ot.bool,autoFocus:ot.bool,onDragEnter:ot.func,onDragLeave:ot.func,onDragOver:ot.func,onDrop:ot.func,onDropAccepted:ot.func,onDropRejected:ot.func,onError:ot.func,validator:ot.func};var Qd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function U3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=yt(yt({},H3),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,b=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,C=t.useFsAccessApi,y=t.autoFocus,k=t.preventDropOnDocument,T=t.noClick,w=t.noKeyboard,O=t.noDrag,P=t.noDragEventsBubbling,$=t.onError,L=t.validator,R=v.useMemo(function(){return rM(n)},[n]),X=v.useMemo(function(){return nM(n)},[n]),be=v.useMemo(function(){return typeof g=="function"?g:q3},[g]),se=v.useMemo(function(){return typeof m=="function"?m:q3},[m]),V=v.useRef(null),Y=v.useRef(null),J=v.useReducer(bM,Qd),B=Kd(J,2),ge=B[0],ye=B[1],M=ge.isFocused,I=ge.isFileDialogActive,G=v.useRef(typeof window<"u"&&window.isSecureContext&&C&&tM()),N=function(){!G.current&&I&&setTimeout(function(){if(Y.current){var re=Y.current.files;re.length||(ye({type:"closeDialog"}),se())}},300)};v.useEffect(function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}},[Y,I,se,G]);var z=v.useRef([]),x=function(re){V.current&&V.current.contains(re.target)||(re.preventDefault(),z.current=[])};v.useEffect(function(){return k&&(document.addEventListener("dragover",B3,!1),document.addEventListener("drop",x,!1)),function(){k&&(document.removeEventListener("dragover",B3),document.removeEventListener("drop",x))}},[V,k]),v.useEffect(function(){return!r&&y&&V.current&&V.current.focus(),function(){}},[V,y,r]);var K=v.useCallback(function(H){$?$(H):console.error(H)},[$]),te=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H),z.current=[].concat(uM(z.current),[H.target]),yl(H)&&Promise.resolve(o(H)).then(function(re){if(!(bl(H)&&!P)){var oe=re.length,ae=oe>0&&XA({files:re,accept:R,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:L}),Oe=oe>0&&!ae;ye({isDragAccept:ae,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H)}}).catch(function(re){return K(re)})},[o,c,K,P,R,a,i,s,l,L]),ne=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H);var re=yl(H);if(re&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return re&&f&&f(H),!1},[f,P]),de=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H);var re=z.current.filter(function(ae){return V.current&&V.current.contains(ae)}),oe=re.indexOf(H.target);oe!==-1&&re.splice(oe,1),z.current=re,!(re.length>0)&&(ye({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yl(H)&&u&&u(H))},[V,u,P]),ce=v.useCallback(function(H,re){var oe=[],ae=[];H.forEach(function(Oe){var ft=z3(Oe,R),tt=Kd(ft,2),xt=tt[0],It=tt[1],Gt=L3(Oe,a,i),it=Kd(Gt,2),Pt=it[0],Ht=it[1],Ln=L?L(Oe):null;if(xt&&Pt&&!Ln)oe.push(Oe);else{var ln=[It,Ht];Ln&&(ln=ln.concat(Ln)),ae.push({file:Oe,errors:ln.filter(function(gn){return gn})})}}),(!s&&oe.length>1||s&&l>=1&&oe.length>l)&&(oe.forEach(function(Oe){ae.push({file:Oe,errors:[YA]})}),oe.splice(0)),ye({acceptedFiles:oe,fileRejections:ae,isDragReject:ae.length>0,type:"setFiles"}),p&&p(oe,ae,re),ae.length>0&&b&&b(ae,re),oe.length>0&&h&&h(oe,re)},[ye,s,R,a,i,l,p,h,b,L]),_e=v.useCallback(function(H){H.preventDefault(),H.persist(),pe(H),z.current=[],yl(H)&&Promise.resolve(o(H)).then(function(re){bl(H)&&!P||ce(re,H)}).catch(function(re){return K(re)}),ye({type:"reset"})},[o,ce,K,P]),U=v.useCallback(function(){if(G.current){ye({type:"openDialog"}),be();var H={multiple:s,types:X};window.showOpenFilePicker(H).then(function(re){return o(re)}).then(function(re){ce(re,null),ye({type:"closeDialog"})}).catch(function(re){oM(re)?(se(re),ye({type:"closeDialog"})):iM(re)?(G.current=!1,Y.current?(Y.current.value=null,Y.current.click()):K(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):K(re)});return}Y.current&&(ye({type:"openDialog"}),be(),Y.current.value=null,Y.current.click())},[ye,be,se,C,ce,K,X,s]),je=v.useCallback(function(H){!V.current||!V.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),U())},[V,U]),$e=v.useCallback(function(){ye({type:"focus"})},[]),F=v.useCallback(function(){ye({type:"blur"})},[]),Z=v.useCallback(function(){T||(eM()?setTimeout(U,0):U())},[T,U]),ie=function(re){return r?null:re},xe=function(re){return w?null:ie(re)},fe=function(re){return O?null:ie(re)},pe=function(re){P&&re.stopPropagation()},Te=v.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=H.refKey,oe=re===void 0?"ref":re,ae=H.role,Oe=H.onKeyDown,ft=H.onFocus,tt=H.onBlur,xt=H.onClick,It=H.onDragEnter,Gt=H.onDragOver,it=H.onDragLeave,Pt=H.onDrop,Ht=xl(H,lM);return yt(yt(Xd({onKeyDown:xe(or(Oe,je)),onFocus:xe(or(ft,$e)),onBlur:xe(or(tt,F)),onClick:ie(or(xt,Z)),onDragEnter:fe(or(It,te)),onDragOver:fe(or(Gt,ne)),onDragLeave:fe(or(it,de)),onDrop:fe(or(Pt,_e)),role:typeof ae=="string"&&ae!==""?ae:"presentation"},oe,V),!r&&!w?{tabIndex:0}:{}),Ht)}},[V,je,$e,F,Z,te,ne,de,_e,w,O,r]),Ie=v.useCallback(function(H){H.stopPropagation()},[]),le=v.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=H.refKey,oe=re===void 0?"ref":re,ae=H.onChange,Oe=H.onClick,ft=xl(H,cM),tt=Xd({accept:R,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ie(or(ae,_e)),onClick:ie(or(Oe,Ie)),tabIndex:-1},oe,Y);return yt(yt({},tt),ft)}},[Y,n,s,_e,r]);return yt(yt({},ge),{},{isFocused:M&&!r,getRootProps:Te,getInputProps:le,rootRef:V,inputRef:Y,open:ie(U)})}function bM(e,t){switch(t.type){case"focus":return yt(yt({},e),{},{isFocused:!0});case"blur":return yt(yt({},e),{},{isFocused:!1});case"openDialog":return yt(yt({},Qd),{},{isFileDialogActive:!0});case"closeDialog":return yt(yt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return yt(yt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return yt(yt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return yt({},Qd);default:return e}}function q3(){}function yM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 19v-4h3l-4-5-4 5h3v4z"},child:[]},{tag:"path",attr:{d:"M7 19h2v-2H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5z"},child:[]}]})(e)}const xM=({onFilesDropped:e,color:t="elevate.500",typeAccept:n="file",fileAccept:r=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv"],maxSize:o="5MB",title:i="",description:a="Arrastra y suelta tus archivos aquí",buttonText:s="Seleccionar archivos"})=>{const l=h3(),[c,u,f,p]=qs("colors",[t,"black.600","white.50","black.300"]),h=zt(c,.7)({}),[b,m]=v.useState(""),g=typeof o=="string"&&o.includes("MB")?parseInt(o)*1024*1024:parseInt(o),C=v.useMemo(()=>r.length>0?r.map(L=>L.startsWith(".")?L:`.${L}`):n==="image"?[".jpeg",".jpg",".png",".gif"]:n==="file"?[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv"]:[],[r,n]),y={".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".txt":"text/plain",".csv":"text/csv",".jpeg":"image/jpeg",".jpg":"image/jpeg",".png":"image/png",".gif":"image/gif"},k=C.length>0?C.reduce((L,R)=>{const X=y[R];return X&&(L[X]=[...L[X]||[],R]),L},{}):void 0;v.useEffect(()=>{C.length>0?m(`Formato soportado: ${C.map(L=>L.replace(".","")).join(", ")}`):m("Acepta cualquier archivo")},[C]);const T=v.useCallback((L,R)=>{const X=L.filter(be=>C.some(se=>be.name.endsWith(se)));R.forEach(be=>{const{file:se,errors:V}=be;V.forEach(Y=>{Y.code==="file-too-large"?l({title:"Archivo demasiado grande",description:`El archivo "${se.name}" supera el tamaño máximo permitido.`,status:"warning",duration:4e3,isClosable:!0,variant:"solid",containerStyle:{color:`${f} !important`}}):Y.code==="file-invalid-type"&&l({title:"Extensión no permitida",description:`El archivo "${se.name}" no tiene una extensión válida.`,status:"info",duration:4e3,isClosable:!0,variant:"solid",containerStyle:{color:`${f} !important`}})})}),X.length>0&&e(X)},[C,e,l]),{getRootProps:w,getInputProps:O,isDragActive:P}=U3({onDrop:T,multiple:!0,accept:k,maxSize:g}),$=g?`Tamaño máximo: ${g/1024/1024} MB`:"Sin límite de tamaño";return d.jsxs(_t,{children:[d.jsx(pt,{mt:4,alignItems:"flex-start",children:i.trim()&&d.jsx(Ue,{fontSize:"20px",fontWeight:"700",color:u,mb:2,children:i})}),d.jsxs(_t,{...w(),py:"70px",px:"41px",border:`2px dashed ${P?c:p}`,borderRadius:"lg",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",_hover:{borderColor:h},bg:P?zt(c,.1)({}):"transparent",children:[d.jsx("input",{...O()}),d.jsx(_n,{as:yM,boxSize:"40px",color:c,mb:"16px"}),d.jsx(Ue,{fontSize:"16px",fontWeight:"16px",color:u,mb:4,children:a}),d.jsx(Fn,{bg:c,color:f,_hover:{bg:h},size:"lg",children:s})]}),d.jsxs(pt,{mt:4,justifyContent:"space-between",children:[b&&d.jsx(Ue,{fontSize:"14px",color:p,children:b}),$&&d.jsx(Ue,{fontSize:"14px",color:p,children:$})]})]})},CM=({text:e,fontSize:t="md"})=>d.jsx(Ue,{fontSize:t,fontFamily:"Lato",children:e}),wM=({label:e,placeholder:t,value:n="",onChange:r=f=>{console.log(f)},isRequired:o=!1,info:i=!1,infoText:a="",product:s="info",textArea:l=!1,description:c="",dropdown:u=!1})=>{const[f,p]=v.useState(!0),h=C=>{r(C.target.value)},b=Zt[s],m=b[200],g=b[300];return d.jsxs(Ks,{isRequired:o,children:[d.jsxs(Xs,{display:"flex",alignItems:"center",fontSize:"16px",children:[u&&d.jsx(Tn,{"aria-label":"Toggle Description",icon:f?d.jsx(Ud,{}):d.jsx(C3,{}),size:"sm",variant:"ghost",onClick:()=>p(!f),_hover:{bg:"transparent"}}),e,i&&a&&d.jsx(Hd,{label:a,"aria-label":"Más información",p:"10px",borderRadius:"5px",bg:m,border:`1px solid ${g}`,color:"black.500",placement:"top",hasArrow:!0,children:d.jsx(Tn,{icon:d.jsx(S3,{}),"aria-label":"Información",size:"sm",variant:"ghost",ml:2,color:"info.600"})})]}),u&&f&&c&&d.jsx(Ue,{fontSize:"14px",color:"gray.500",mb:"10px",textAlign:"start",children:c}),l?d.jsx(Nd,{placeholder:t,value:n,onChange:C=>h(C),bg:"white"}):d.jsx(va,{placeholder:t,value:n,onChange:h,bg:"white"})]})};var SM=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,i){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var a in r)n.d(i,a,(function(s){return r[s]}).bind(null,a));return i},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=9)}([function(e,t){e.exports=v},function(e,t,n){var r;/*!
|
|
397
397
|
Copyright (c) 2017 Jed Watson.
|
|
398
398
|
Licensed under the MIT License (MIT), see
|
|
399
399
|
http://jedwatson.github.io/classnames
|