5911 lines
204 KiB
JavaScript
5911 lines
204 KiB
JavaScript
import * as _e from "react";
|
|
import He, { useState as ue, useRef as Ot, useEffect as ze, forwardRef as kn, useImperativeHandle as Qi, createContext as Ki, useContext as Zi, useCallback as ea } from "react";
|
|
import { Button as Dr, Input as dt, Space as ar, DatePicker as or, TimePicker as jn, Radio as Ct, Switch as Dn, Checkbox as sr, Divider as Rn, Select as Rr, message as ta, Tooltip as ra, Table as Ar, Drawer as na, Modal as ia } from "antd";
|
|
function cr(e) {
|
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
}
|
|
var zt = { exports: {} }, Dt = {};
|
|
var Ur;
|
|
function aa() {
|
|
if (Ur) return Dt;
|
|
Ur = 1;
|
|
var e = He, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
function s(d, f, y) {
|
|
var g, O = {}, l = null, p = null;
|
|
y !== void 0 && (l = "" + y), f.key !== void 0 && (l = "" + f.key), f.ref !== void 0 && (p = f.ref);
|
|
for (g in f) n.call(f, g) && !a.hasOwnProperty(g) && (O[g] = f[g]);
|
|
if (d && d.defaultProps) for (g in f = d.defaultProps, f) O[g] === void 0 && (O[g] = f[g]);
|
|
return { $$typeof: t, type: d, key: l, ref: p, props: O, _owner: i.current };
|
|
}
|
|
return Dt.Fragment = r, Dt.jsx = s, Dt.jsxs = s, Dt;
|
|
}
|
|
var Rt = {};
|
|
var zr;
|
|
function oa() {
|
|
return zr || (zr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
var e = He, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), d = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, m = "@@iterator";
|
|
function v(u) {
|
|
if (u === null || typeof u != "object")
|
|
return null;
|
|
var k = h && u[h] || u[m];
|
|
return typeof k == "function" ? k : null;
|
|
}
|
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
function $(u) {
|
|
{
|
|
for (var k = arguments.length, L = new Array(k > 1 ? k - 1 : 0), re = 1; re < k; re++)
|
|
L[re - 1] = arguments[re];
|
|
T("error", u, L);
|
|
}
|
|
}
|
|
function T(u, k, L) {
|
|
{
|
|
var re = M.ReactDebugCurrentFrame, ve = re.getStackAddendum();
|
|
ve !== "" && (k += "%s", L = L.concat([ve]));
|
|
var we = L.map(function(oe) {
|
|
return String(oe);
|
|
});
|
|
we.unshift("Warning: " + k), Function.prototype.apply.call(console[u], console, we);
|
|
}
|
|
}
|
|
var R = !1, S = !1, X = !1, q = !1, ie = !1, G;
|
|
G = Symbol.for("react.module.reference");
|
|
function Y(u) {
|
|
return !!(typeof u == "string" || typeof u == "function" || u === n || u === a || ie || u === i || u === y || u === g || q || u === p || R || S || X || typeof u == "object" && u !== null && (u.$$typeof === l || u.$$typeof === O || u.$$typeof === s || u.$$typeof === d || u.$$typeof === f || // This needs to include all possible module reference object
|
|
// types supported by any Flight configuration anywhere since
|
|
// we don't know which Flight build this will end up being used
|
|
// with.
|
|
u.$$typeof === G || u.getModuleId !== void 0));
|
|
}
|
|
function z(u, k, L) {
|
|
var re = u.displayName;
|
|
if (re)
|
|
return re;
|
|
var ve = k.displayName || k.name || "";
|
|
return ve !== "" ? L + "(" + ve + ")" : L;
|
|
}
|
|
function me(u) {
|
|
return u.displayName || "Context";
|
|
}
|
|
function le(u) {
|
|
if (u == null)
|
|
return null;
|
|
if (typeof u.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
return u.displayName || u.name || null;
|
|
if (typeof u == "string")
|
|
return u;
|
|
switch (u) {
|
|
case n:
|
|
return "Fragment";
|
|
case r:
|
|
return "Portal";
|
|
case a:
|
|
return "Profiler";
|
|
case i:
|
|
return "StrictMode";
|
|
case y:
|
|
return "Suspense";
|
|
case g:
|
|
return "SuspenseList";
|
|
}
|
|
if (typeof u == "object")
|
|
switch (u.$$typeof) {
|
|
case d:
|
|
var k = u;
|
|
return me(k) + ".Consumer";
|
|
case s:
|
|
var L = u;
|
|
return me(L._context) + ".Provider";
|
|
case f:
|
|
return z(u, u.render, "ForwardRef");
|
|
case O:
|
|
var re = u.displayName || null;
|
|
return re !== null ? re : le(u.type) || "Memo";
|
|
case l: {
|
|
var ve = u, we = ve._payload, oe = ve._init;
|
|
try {
|
|
return le(oe(we));
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
var I = Object.assign, A = 0, P, W, D, F, x, E, V;
|
|
function B() {
|
|
}
|
|
B.__reactDisabledLog = !0;
|
|
function U() {
|
|
{
|
|
if (A === 0) {
|
|
P = console.log, W = console.info, D = console.warn, F = console.error, x = console.group, E = console.groupCollapsed, V = console.groupEnd;
|
|
var u = {
|
|
configurable: !0,
|
|
enumerable: !0,
|
|
value: B,
|
|
writable: !0
|
|
};
|
|
Object.defineProperties(console, {
|
|
info: u,
|
|
log: u,
|
|
warn: u,
|
|
error: u,
|
|
group: u,
|
|
groupCollapsed: u,
|
|
groupEnd: u
|
|
});
|
|
}
|
|
A++;
|
|
}
|
|
}
|
|
function _() {
|
|
{
|
|
if (A--, A === 0) {
|
|
var u = {
|
|
configurable: !0,
|
|
enumerable: !0,
|
|
writable: !0
|
|
};
|
|
Object.defineProperties(console, {
|
|
log: I({}, u, {
|
|
value: P
|
|
}),
|
|
info: I({}, u, {
|
|
value: W
|
|
}),
|
|
warn: I({}, u, {
|
|
value: D
|
|
}),
|
|
error: I({}, u, {
|
|
value: F
|
|
}),
|
|
group: I({}, u, {
|
|
value: x
|
|
}),
|
|
groupCollapsed: I({}, u, {
|
|
value: E
|
|
}),
|
|
groupEnd: I({}, u, {
|
|
value: V
|
|
})
|
|
});
|
|
}
|
|
A < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
}
|
|
}
|
|
var Q = M.ReactCurrentDispatcher, K;
|
|
function Z(u, k, L) {
|
|
{
|
|
if (K === void 0)
|
|
try {
|
|
throw Error();
|
|
} catch (ve) {
|
|
var re = ve.stack.trim().match(/\n( *(at )?)/);
|
|
K = re && re[1] || "";
|
|
}
|
|
return `
|
|
` + K + u;
|
|
}
|
|
}
|
|
var te = !1, J;
|
|
{
|
|
var fe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
J = new fe();
|
|
}
|
|
function N(u, k) {
|
|
if (!u || te)
|
|
return "";
|
|
{
|
|
var L = J.get(u);
|
|
if (L !== void 0)
|
|
return L;
|
|
}
|
|
var re;
|
|
te = !0;
|
|
var ve = Error.prepareStackTrace;
|
|
Error.prepareStackTrace = void 0;
|
|
var we;
|
|
we = Q.current, Q.current = null, U();
|
|
try {
|
|
if (k) {
|
|
var oe = function() {
|
|
throw Error();
|
|
};
|
|
if (Object.defineProperty(oe.prototype, "props", {
|
|
set: function() {
|
|
throw Error();
|
|
}
|
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
try {
|
|
Reflect.construct(oe, []);
|
|
} catch (Ae) {
|
|
re = Ae;
|
|
}
|
|
Reflect.construct(u, [], oe);
|
|
} else {
|
|
try {
|
|
oe.call();
|
|
} catch (Ae) {
|
|
re = Ae;
|
|
}
|
|
u.call(oe.prototype);
|
|
}
|
|
} else {
|
|
try {
|
|
throw Error();
|
|
} catch (Ae) {
|
|
re = Ae;
|
|
}
|
|
u();
|
|
}
|
|
} catch (Ae) {
|
|
if (Ae && re && typeof Ae.stack == "string") {
|
|
for (var se = Ae.stack.split(`
|
|
`), Ee = re.stack.split(`
|
|
`), Oe = se.length - 1, Ce = Ee.length - 1; Oe >= 1 && Ce >= 0 && se[Oe] !== Ee[Ce]; )
|
|
Ce--;
|
|
for (; Oe >= 1 && Ce >= 0; Oe--, Ce--)
|
|
if (se[Oe] !== Ee[Ce]) {
|
|
if (Oe !== 1 || Ce !== 1)
|
|
do
|
|
if (Oe--, Ce--, Ce < 0 || se[Oe] !== Ee[Ce]) {
|
|
var Ie = `
|
|
` + se[Oe].replace(" at new ", " at ");
|
|
return u.displayName && Ie.includes("<anonymous>") && (Ie = Ie.replace("<anonymous>", u.displayName)), typeof u == "function" && J.set(u, Ie), Ie;
|
|
}
|
|
while (Oe >= 1 && Ce >= 0);
|
|
break;
|
|
}
|
|
}
|
|
} finally {
|
|
te = !1, Q.current = we, _(), Error.prepareStackTrace = ve;
|
|
}
|
|
var it = u ? u.displayName || u.name : "", tt = it ? Z(it) : "";
|
|
return typeof u == "function" && J.set(u, tt), tt;
|
|
}
|
|
function xe(u, k, L) {
|
|
return N(u, !1);
|
|
}
|
|
function ke(u) {
|
|
var k = u.prototype;
|
|
return !!(k && k.isReactComponent);
|
|
}
|
|
function Te(u, k, L) {
|
|
if (u == null)
|
|
return "";
|
|
if (typeof u == "function")
|
|
return N(u, ke(u));
|
|
if (typeof u == "string")
|
|
return Z(u);
|
|
switch (u) {
|
|
case y:
|
|
return Z("Suspense");
|
|
case g:
|
|
return Z("SuspenseList");
|
|
}
|
|
if (typeof u == "object")
|
|
switch (u.$$typeof) {
|
|
case f:
|
|
return xe(u.render);
|
|
case O:
|
|
return Te(u.type, k, L);
|
|
case l: {
|
|
var re = u, ve = re._payload, we = re._init;
|
|
try {
|
|
return Te(we(ve), k, L);
|
|
} catch {
|
|
}
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
var Ne = Object.prototype.hasOwnProperty, Xe = {}, Fe = M.ReactDebugCurrentFrame;
|
|
function je(u) {
|
|
if (u) {
|
|
var k = u._owner, L = Te(u.type, u._source, k ? k.type : null);
|
|
Fe.setExtraStackFrame(L);
|
|
} else
|
|
Fe.setExtraStackFrame(null);
|
|
}
|
|
function Je(u, k, L, re, ve) {
|
|
{
|
|
var we = Function.call.bind(Ne);
|
|
for (var oe in u)
|
|
if (we(u, oe)) {
|
|
var se = void 0;
|
|
try {
|
|
if (typeof u[oe] != "function") {
|
|
var Ee = Error((re || "React class") + ": " + L + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
throw Ee.name = "Invariant Violation", Ee;
|
|
}
|
|
se = u[oe](k, oe, re, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
} catch (Oe) {
|
|
se = Oe;
|
|
}
|
|
se && !(se instanceof Error) && (je(ve), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", re || "React class", L, oe, typeof se), je(null)), se instanceof Error && !(se.message in Xe) && (Xe[se.message] = !0, je(ve), $("Failed %s type: %s", L, se.message), je(null));
|
|
}
|
|
}
|
|
}
|
|
var bt = Array.isArray;
|
|
function Qe(u) {
|
|
return bt(u);
|
|
}
|
|
function Ke(u) {
|
|
{
|
|
var k = typeof Symbol == "function" && Symbol.toStringTag, L = k && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
return L;
|
|
}
|
|
}
|
|
function Ze(u) {
|
|
try {
|
|
return ft(u), !1;
|
|
} catch {
|
|
return !0;
|
|
}
|
|
}
|
|
function ft(u) {
|
|
return "" + u;
|
|
}
|
|
function st(u) {
|
|
if (Ze(u))
|
|
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(u)), ft(u);
|
|
}
|
|
var ct = M.ReactCurrentOwner, De = {
|
|
key: !0,
|
|
ref: !0,
|
|
__self: !0,
|
|
__source: !0
|
|
}, qe, et;
|
|
function ae(u) {
|
|
if (Ne.call(u, "ref")) {
|
|
var k = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
if (k && k.isReactWarning)
|
|
return !1;
|
|
}
|
|
return u.ref !== void 0;
|
|
}
|
|
function de(u) {
|
|
if (Ne.call(u, "key")) {
|
|
var k = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
if (k && k.isReactWarning)
|
|
return !1;
|
|
}
|
|
return u.key !== void 0;
|
|
}
|
|
function ne(u, k) {
|
|
typeof u.ref == "string" && ct.current;
|
|
}
|
|
function ge(u, k) {
|
|
{
|
|
var L = function() {
|
|
qe || (qe = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
|
|
};
|
|
L.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
get: L,
|
|
configurable: !0
|
|
});
|
|
}
|
|
}
|
|
function Ye(u, k) {
|
|
{
|
|
var L = function() {
|
|
et || (et = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k));
|
|
};
|
|
L.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
get: L,
|
|
configurable: !0
|
|
});
|
|
}
|
|
}
|
|
var Me = function(u, k, L, re, ve, we, oe) {
|
|
var se = {
|
|
// This tag allows us to uniquely identify this as a React Element
|
|
$$typeof: t,
|
|
// Built-in properties that belong on the element
|
|
type: u,
|
|
key: k,
|
|
ref: L,
|
|
props: oe,
|
|
// Record the component responsible for creating this element.
|
|
_owner: we
|
|
};
|
|
return se._store = {}, Object.defineProperty(se._store, "validated", {
|
|
configurable: !1,
|
|
enumerable: !1,
|
|
writable: !0,
|
|
value: !1
|
|
}), Object.defineProperty(se, "_self", {
|
|
configurable: !1,
|
|
enumerable: !1,
|
|
writable: !1,
|
|
value: re
|
|
}), Object.defineProperty(se, "_source", {
|
|
configurable: !1,
|
|
enumerable: !1,
|
|
writable: !1,
|
|
value: ve
|
|
}), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
|
|
};
|
|
function he(u, k, L, re, ve) {
|
|
{
|
|
var we, oe = {}, se = null, Ee = null;
|
|
L !== void 0 && (st(L), se = "" + L), de(k) && (st(k.key), se = "" + k.key), ae(k) && (Ee = k.ref, ne(k, ve));
|
|
for (we in k)
|
|
Ne.call(k, we) && !De.hasOwnProperty(we) && (oe[we] = k[we]);
|
|
if (u && u.defaultProps) {
|
|
var Oe = u.defaultProps;
|
|
for (we in Oe)
|
|
oe[we] === void 0 && (oe[we] = Oe[we]);
|
|
}
|
|
if (se || Ee) {
|
|
var Ce = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
se && ge(oe, Ce), Ee && Ye(oe, Ce);
|
|
}
|
|
return Me(u, se, Ee, ve, re, ct.current, oe);
|
|
}
|
|
}
|
|
var ee = M.ReactCurrentOwner, Re = M.ReactDebugCurrentFrame;
|
|
function Ve(u) {
|
|
if (u) {
|
|
var k = u._owner, L = Te(u.type, u._source, k ? k.type : null);
|
|
Re.setExtraStackFrame(L);
|
|
} else
|
|
Re.setExtraStackFrame(null);
|
|
}
|
|
var nt;
|
|
nt = !1;
|
|
function wt(u) {
|
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
}
|
|
function Et() {
|
|
{
|
|
if (ee.current) {
|
|
var u = le(ee.current.type);
|
|
if (u)
|
|
return `
|
|
|
|
Check the render method of \`` + u + "`.";
|
|
}
|
|
return "";
|
|
}
|
|
}
|
|
function Ft(u) {
|
|
return "";
|
|
}
|
|
var Pt = {};
|
|
function Yt(u) {
|
|
{
|
|
var k = Et();
|
|
if (!k) {
|
|
var L = typeof u == "string" ? u : u.displayName || u.name;
|
|
L && (k = `
|
|
|
|
Check the top-level render call using <` + L + ">.");
|
|
}
|
|
return k;
|
|
}
|
|
}
|
|
function Mt(u, k) {
|
|
{
|
|
if (!u._store || u._store.validated || u.key != null)
|
|
return;
|
|
u._store.validated = !0;
|
|
var L = Yt(k);
|
|
if (Pt[L])
|
|
return;
|
|
Pt[L] = !0;
|
|
var re = "";
|
|
u && u._owner && u._owner !== ee.current && (re = " It was passed a child from " + le(u._owner.type) + "."), Ve(u), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, re), Ve(null);
|
|
}
|
|
}
|
|
function _t(u, k) {
|
|
{
|
|
if (typeof u != "object")
|
|
return;
|
|
if (Qe(u))
|
|
for (var L = 0; L < u.length; L++) {
|
|
var re = u[L];
|
|
wt(re) && Mt(re, k);
|
|
}
|
|
else if (wt(u))
|
|
u._store && (u._store.validated = !0);
|
|
else if (u) {
|
|
var ve = v(u);
|
|
if (typeof ve == "function" && ve !== u.entries)
|
|
for (var we = ve.call(u), oe; !(oe = we.next()).done; )
|
|
wt(oe.value) && Mt(oe.value, k);
|
|
}
|
|
}
|
|
}
|
|
function Lt(u) {
|
|
{
|
|
var k = u.type;
|
|
if (k == null || typeof k == "string")
|
|
return;
|
|
var L;
|
|
if (typeof k == "function")
|
|
L = k.propTypes;
|
|
else if (typeof k == "object" && (k.$$typeof === f || // Note: Memo only checks outer props here.
|
|
// Inner props are checked in the reconciler.
|
|
k.$$typeof === O))
|
|
L = k.propTypes;
|
|
else
|
|
return;
|
|
if (L) {
|
|
var re = le(k);
|
|
Je(L, u.props, "prop", re, u);
|
|
} else if (k.PropTypes !== void 0 && !nt) {
|
|
nt = !0;
|
|
var ve = le(k);
|
|
$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ve || "Unknown");
|
|
}
|
|
typeof k.getDefaultProps == "function" && !k.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
}
|
|
}
|
|
function ut(u) {
|
|
{
|
|
for (var k = Object.keys(u.props), L = 0; L < k.length; L++) {
|
|
var re = k[L];
|
|
if (re !== "children" && re !== "key") {
|
|
Ve(u), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", re), Ve(null);
|
|
break;
|
|
}
|
|
}
|
|
u.ref !== null && (Ve(u), $("Invalid attribute `ref` supplied to `React.Fragment`."), Ve(null));
|
|
}
|
|
}
|
|
var kt = {};
|
|
function Be(u, k, L, re, ve, we) {
|
|
{
|
|
var oe = Y(u);
|
|
if (!oe) {
|
|
var se = "";
|
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
var Ee = Ft();
|
|
Ee ? se += Ee : se += Et();
|
|
var Oe;
|
|
u === null ? Oe = "null" : Qe(u) ? Oe = "array" : u !== void 0 && u.$$typeof === t ? (Oe = "<" + (le(u.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : Oe = typeof u, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Oe, se);
|
|
}
|
|
var Ce = he(u, k, L, ve, we);
|
|
if (Ce == null)
|
|
return Ce;
|
|
if (oe) {
|
|
var Ie = k.children;
|
|
if (Ie !== void 0)
|
|
if (re)
|
|
if (Qe(Ie)) {
|
|
for (var it = 0; it < Ie.length; it++)
|
|
_t(Ie[it], u);
|
|
Object.freeze && Object.freeze(Ie);
|
|
} else
|
|
$("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
else
|
|
_t(Ie, u);
|
|
}
|
|
if (Ne.call(k, "key")) {
|
|
var tt = le(u), Ae = Object.keys(k).filter(function(mr) {
|
|
return mr !== "key";
|
|
}), jt = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
if (!kt[tt + jt]) {
|
|
var hr = Ae.length > 0 ? "{" + Ae.join(": ..., ") + ": ...}" : "{}";
|
|
$(`A props object containing a "key" prop is being spread into JSX:
|
|
let props = %s;
|
|
<%s {...props} />
|
|
React keys must be passed directly to JSX without using spread:
|
|
let props = %s;
|
|
<%s key={someKey} {...props} />`, jt, tt, hr, tt), kt[tt + jt] = !0;
|
|
}
|
|
}
|
|
return u === n ? ut(Ce) : Lt(Ce), Ce;
|
|
}
|
|
}
|
|
function Vt(u, k, L) {
|
|
return Be(u, k, L, !0);
|
|
}
|
|
function Bt(u, k, L) {
|
|
return Be(u, k, L, !1);
|
|
}
|
|
var Ht = Bt, qt = Vt;
|
|
Rt.Fragment = n, Rt.jsx = Ht, Rt.jsxs = qt;
|
|
})()), Rt;
|
|
}
|
|
var Gr;
|
|
function sa() {
|
|
return Gr || (Gr = 1, process.env.NODE_ENV === "production" ? zt.exports = aa() : zt.exports = oa()), zt.exports;
|
|
}
|
|
var w = sa();
|
|
const An = 6048e5, ca = 864e5, Xr = Symbol.for("constructDateFrom");
|
|
function Ge(e, t) {
|
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Xr in e ? e[Xr](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
}
|
|
function $e(e, t) {
|
|
return Ge(t || e, e);
|
|
}
|
|
function Nn(e, t, r) {
|
|
const n = $e(e, r?.in);
|
|
return isNaN(t) ? Ge(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
}
|
|
let ua = {};
|
|
function ur() {
|
|
return ua;
|
|
}
|
|
function St(e, t) {
|
|
const r = ur(), n = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = $e(e, t?.in), a = i.getDay(), s = (a < n ? 7 : 0) + a - n;
|
|
return i.setDate(i.getDate() - s), i.setHours(0, 0, 0, 0), i;
|
|
}
|
|
function tr(e, t) {
|
|
return St(e, { ...t, weekStartsOn: 1 });
|
|
}
|
|
function In(e, t) {
|
|
const r = $e(e, t?.in), n = r.getFullYear(), i = Ge(r, 0);
|
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
const a = tr(i), s = Ge(r, 0);
|
|
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
const d = tr(s);
|
|
return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= d.getTime() ? n : n - 1;
|
|
}
|
|
function Jr(e) {
|
|
const t = $e(e), r = new Date(
|
|
Date.UTC(
|
|
t.getFullYear(),
|
|
t.getMonth(),
|
|
t.getDate(),
|
|
t.getHours(),
|
|
t.getMinutes(),
|
|
t.getSeconds(),
|
|
t.getMilliseconds()
|
|
)
|
|
);
|
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
}
|
|
function Wn(e, ...t) {
|
|
const r = Ge.bind(
|
|
null,
|
|
t.find((n) => typeof n == "object")
|
|
);
|
|
return t.map(r);
|
|
}
|
|
function rr(e, t) {
|
|
const r = $e(e, t?.in);
|
|
return r.setHours(0, 0, 0, 0), r;
|
|
}
|
|
function la(e, t, r) {
|
|
const [n, i] = Wn(
|
|
r?.in,
|
|
e,
|
|
t
|
|
), a = rr(n), s = rr(i), d = +a - Jr(a), f = +s - Jr(s);
|
|
return Math.round((d - f) / ca);
|
|
}
|
|
function da(e, t) {
|
|
const r = In(e, t), n = Ge(e, 0);
|
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), tr(n);
|
|
}
|
|
function $n(e, t, r) {
|
|
return Nn(e, t * 7, r);
|
|
}
|
|
function vr(e, t, r) {
|
|
const [n, i] = Wn(
|
|
r?.in,
|
|
e,
|
|
t
|
|
);
|
|
return +rr(n) == +rr(i);
|
|
}
|
|
function fa(e) {
|
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
}
|
|
function ha(e) {
|
|
return !(!fa(e) && typeof e != "number" || isNaN(+$e(e)));
|
|
}
|
|
function ma(e, t) {
|
|
const r = $e(e, t?.in);
|
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
}
|
|
const va = {
|
|
lessThanXSeconds: {
|
|
one: "less than a second",
|
|
other: "less than {{count}} seconds"
|
|
},
|
|
xSeconds: {
|
|
one: "1 second",
|
|
other: "{{count}} seconds"
|
|
},
|
|
halfAMinute: "half a minute",
|
|
lessThanXMinutes: {
|
|
one: "less than a minute",
|
|
other: "less than {{count}} minutes"
|
|
},
|
|
xMinutes: {
|
|
one: "1 minute",
|
|
other: "{{count}} minutes"
|
|
},
|
|
aboutXHours: {
|
|
one: "about 1 hour",
|
|
other: "about {{count}} hours"
|
|
},
|
|
xHours: {
|
|
one: "1 hour",
|
|
other: "{{count}} hours"
|
|
},
|
|
xDays: {
|
|
one: "1 day",
|
|
other: "{{count}} days"
|
|
},
|
|
aboutXWeeks: {
|
|
one: "about 1 week",
|
|
other: "about {{count}} weeks"
|
|
},
|
|
xWeeks: {
|
|
one: "1 week",
|
|
other: "{{count}} weeks"
|
|
},
|
|
aboutXMonths: {
|
|
one: "about 1 month",
|
|
other: "about {{count}} months"
|
|
},
|
|
xMonths: {
|
|
one: "1 month",
|
|
other: "{{count}} months"
|
|
},
|
|
aboutXYears: {
|
|
one: "about 1 year",
|
|
other: "about {{count}} years"
|
|
},
|
|
xYears: {
|
|
one: "1 year",
|
|
other: "{{count}} years"
|
|
},
|
|
overXYears: {
|
|
one: "over 1 year",
|
|
other: "over {{count}} years"
|
|
},
|
|
almostXYears: {
|
|
one: "almost 1 year",
|
|
other: "almost {{count}} years"
|
|
}
|
|
}, ga = (e, t, r) => {
|
|
let n;
|
|
const i = va[e];
|
|
return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
};
|
|
function gr(e) {
|
|
return (t = {}) => {
|
|
const r = t.width ? String(t.width) : e.defaultWidth;
|
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
};
|
|
}
|
|
const pa = {
|
|
full: "EEEE, MMMM do, y",
|
|
long: "MMMM do, y",
|
|
medium: "MMM d, y",
|
|
short: "MM/dd/yyyy"
|
|
}, ba = {
|
|
full: "h:mm:ss a zzzz",
|
|
long: "h:mm:ss a z",
|
|
medium: "h:mm:ss a",
|
|
short: "h:mm a"
|
|
}, wa = {
|
|
full: "{{date}} 'at' {{time}}",
|
|
long: "{{date}} 'at' {{time}}",
|
|
medium: "{{date}}, {{time}}",
|
|
short: "{{date}}, {{time}}"
|
|
}, ya = {
|
|
date: gr({
|
|
formats: pa,
|
|
defaultWidth: "full"
|
|
}),
|
|
time: gr({
|
|
formats: ba,
|
|
defaultWidth: "full"
|
|
}),
|
|
dateTime: gr({
|
|
formats: wa,
|
|
defaultWidth: "full"
|
|
})
|
|
}, xa = {
|
|
lastWeek: "'last' eeee 'at' p",
|
|
yesterday: "'yesterday at' p",
|
|
today: "'today at' p",
|
|
tomorrow: "'tomorrow at' p",
|
|
nextWeek: "eeee 'at' p",
|
|
other: "P"
|
|
}, Oa = (e, t, r, n) => xa[e];
|
|
function At(e) {
|
|
return (t, r) => {
|
|
const n = r?.context ? String(r.context) : "standalone";
|
|
let i;
|
|
if (n === "formatting" && e.formattingValues) {
|
|
const s = e.defaultFormattingWidth || e.defaultWidth, d = r?.width ? String(r.width) : s;
|
|
i = e.formattingValues[d] || e.formattingValues[s];
|
|
} else {
|
|
const s = e.defaultWidth, d = r?.width ? String(r.width) : e.defaultWidth;
|
|
i = e.values[d] || e.values[s];
|
|
}
|
|
const a = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
return i[a];
|
|
};
|
|
}
|
|
const Ca = {
|
|
narrow: ["B", "A"],
|
|
abbreviated: ["BC", "AD"],
|
|
wide: ["Before Christ", "Anno Domini"]
|
|
}, Sa = {
|
|
narrow: ["1", "2", "3", "4"],
|
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
}, Ta = {
|
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
abbreviated: [
|
|
"Jan",
|
|
"Feb",
|
|
"Mar",
|
|
"Apr",
|
|
"May",
|
|
"Jun",
|
|
"Jul",
|
|
"Aug",
|
|
"Sep",
|
|
"Oct",
|
|
"Nov",
|
|
"Dec"
|
|
],
|
|
wide: [
|
|
"January",
|
|
"February",
|
|
"March",
|
|
"April",
|
|
"May",
|
|
"June",
|
|
"July",
|
|
"August",
|
|
"September",
|
|
"October",
|
|
"November",
|
|
"December"
|
|
]
|
|
}, Ea = {
|
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
wide: [
|
|
"Sunday",
|
|
"Monday",
|
|
"Tuesday",
|
|
"Wednesday",
|
|
"Thursday",
|
|
"Friday",
|
|
"Saturday"
|
|
]
|
|
}, Pa = {
|
|
narrow: {
|
|
am: "a",
|
|
pm: "p",
|
|
midnight: "mi",
|
|
noon: "n",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
},
|
|
abbreviated: {
|
|
am: "AM",
|
|
pm: "PM",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
},
|
|
wide: {
|
|
am: "a.m.",
|
|
pm: "p.m.",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
}
|
|
}, Ma = {
|
|
narrow: {
|
|
am: "a",
|
|
pm: "p",
|
|
midnight: "mi",
|
|
noon: "n",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
},
|
|
abbreviated: {
|
|
am: "AM",
|
|
pm: "PM",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
},
|
|
wide: {
|
|
am: "a.m.",
|
|
pm: "p.m.",
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "in the morning",
|
|
afternoon: "in the afternoon",
|
|
evening: "in the evening",
|
|
night: "at night"
|
|
}
|
|
}, _a = (e, t) => {
|
|
const r = Number(e), n = r % 100;
|
|
if (n > 20 || n < 10)
|
|
switch (n % 10) {
|
|
case 1:
|
|
return r + "st";
|
|
case 2:
|
|
return r + "nd";
|
|
case 3:
|
|
return r + "rd";
|
|
}
|
|
return r + "th";
|
|
}, ka = {
|
|
ordinalNumber: _a,
|
|
era: At({
|
|
values: Ca,
|
|
defaultWidth: "wide"
|
|
}),
|
|
quarter: At({
|
|
values: Sa,
|
|
defaultWidth: "wide",
|
|
argumentCallback: (e) => e - 1
|
|
}),
|
|
month: At({
|
|
values: Ta,
|
|
defaultWidth: "wide"
|
|
}),
|
|
day: At({
|
|
values: Ea,
|
|
defaultWidth: "wide"
|
|
}),
|
|
dayPeriod: At({
|
|
values: Pa,
|
|
defaultWidth: "wide",
|
|
formattingValues: Ma,
|
|
defaultFormattingWidth: "wide"
|
|
})
|
|
};
|
|
function Nt(e) {
|
|
return (t, r = {}) => {
|
|
const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
if (!a)
|
|
return null;
|
|
const s = a[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(d) ? Da(d, (O) => O.test(s)) : (
|
|
// [TODO] -- I challenge you to fix the type
|
|
ja(d, (O) => O.test(s))
|
|
);
|
|
let y;
|
|
y = e.valueCallback ? e.valueCallback(f) : f, y = r.valueCallback ? (
|
|
// [TODO] -- I challenge you to fix the type
|
|
r.valueCallback(y)
|
|
) : y;
|
|
const g = t.slice(s.length);
|
|
return { value: y, rest: g };
|
|
};
|
|
}
|
|
function ja(e, t) {
|
|
for (const r in e)
|
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
return r;
|
|
}
|
|
function Da(e, t) {
|
|
for (let r = 0; r < e.length; r++)
|
|
if (t(e[r]))
|
|
return r;
|
|
}
|
|
function Ra(e) {
|
|
return (t, r = {}) => {
|
|
const n = t.match(e.matchPattern);
|
|
if (!n) return null;
|
|
const i = n[0], a = t.match(e.parsePattern);
|
|
if (!a) return null;
|
|
let s = e.valueCallback ? e.valueCallback(a[0]) : a[0];
|
|
s = r.valueCallback ? r.valueCallback(s) : s;
|
|
const d = t.slice(i.length);
|
|
return { value: s, rest: d };
|
|
};
|
|
}
|
|
const Aa = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Ia = {
|
|
narrow: /^(b|a)/i,
|
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
}, Wa = {
|
|
any: [/^b/i, /^(a|c)/i]
|
|
}, $a = {
|
|
narrow: /^[1234]/i,
|
|
abbreviated: /^q[1234]/i,
|
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
}, Fa = {
|
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
}, Ya = {
|
|
narrow: /^[jfmasond]/i,
|
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
}, La = {
|
|
narrow: [
|
|
/^j/i,
|
|
/^f/i,
|
|
/^m/i,
|
|
/^a/i,
|
|
/^m/i,
|
|
/^j/i,
|
|
/^j/i,
|
|
/^a/i,
|
|
/^s/i,
|
|
/^o/i,
|
|
/^n/i,
|
|
/^d/i
|
|
],
|
|
any: [
|
|
/^ja/i,
|
|
/^f/i,
|
|
/^mar/i,
|
|
/^ap/i,
|
|
/^may/i,
|
|
/^jun/i,
|
|
/^jul/i,
|
|
/^au/i,
|
|
/^s/i,
|
|
/^o/i,
|
|
/^n/i,
|
|
/^d/i
|
|
]
|
|
}, Va = {
|
|
narrow: /^[smtwf]/i,
|
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
}, Ba = {
|
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
}, Ha = {
|
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
}, qa = {
|
|
any: {
|
|
am: /^a/i,
|
|
pm: /^p/i,
|
|
midnight: /^mi/i,
|
|
noon: /^no/i,
|
|
morning: /morning/i,
|
|
afternoon: /afternoon/i,
|
|
evening: /evening/i,
|
|
night: /night/i
|
|
}
|
|
}, Ua = {
|
|
ordinalNumber: Ra({
|
|
matchPattern: Aa,
|
|
parsePattern: Na,
|
|
valueCallback: (e) => parseInt(e, 10)
|
|
}),
|
|
era: Nt({
|
|
matchPatterns: Ia,
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: Wa,
|
|
defaultParseWidth: "any"
|
|
}),
|
|
quarter: Nt({
|
|
matchPatterns: $a,
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: Fa,
|
|
defaultParseWidth: "any",
|
|
valueCallback: (e) => e + 1
|
|
}),
|
|
month: Nt({
|
|
matchPatterns: Ya,
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: La,
|
|
defaultParseWidth: "any"
|
|
}),
|
|
day: Nt({
|
|
matchPatterns: Va,
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: Ba,
|
|
defaultParseWidth: "any"
|
|
}),
|
|
dayPeriod: Nt({
|
|
matchPatterns: Ha,
|
|
defaultMatchWidth: "any",
|
|
parsePatterns: qa,
|
|
defaultParseWidth: "any"
|
|
})
|
|
}, za = {
|
|
code: "en-US",
|
|
formatDistance: ga,
|
|
formatLong: ya,
|
|
formatRelative: Oa,
|
|
localize: ka,
|
|
match: Ua,
|
|
options: {
|
|
weekStartsOn: 0,
|
|
firstWeekContainsDate: 1
|
|
}
|
|
};
|
|
function Ga(e, t) {
|
|
const r = $e(e, t?.in);
|
|
return la(r, ma(r)) + 1;
|
|
}
|
|
function Xa(e, t) {
|
|
const r = $e(e, t?.in), n = +tr(r) - +da(r);
|
|
return Math.round(n / An) + 1;
|
|
}
|
|
function Fn(e, t) {
|
|
const r = $e(e, t?.in), n = r.getFullYear(), i = ur(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, s = Ge(t?.in || e, 0);
|
|
s.setFullYear(n + 1, 0, a), s.setHours(0, 0, 0, 0);
|
|
const d = St(s, t), f = Ge(t?.in || e, 0);
|
|
f.setFullYear(n, 0, a), f.setHours(0, 0, 0, 0);
|
|
const y = St(f, t);
|
|
return +r >= +d ? n + 1 : +r >= +y ? n : n - 1;
|
|
}
|
|
function Ja(e, t) {
|
|
const r = ur(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = Fn(e, t), a = Ge(t?.in || e, 0);
|
|
return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), St(a, t);
|
|
}
|
|
function Qa(e, t) {
|
|
const r = $e(e, t?.in), n = +St(r, t) - +Ja(r, t);
|
|
return Math.round(n / An) + 1;
|
|
}
|
|
function ye(e, t) {
|
|
const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
|
|
return r + n;
|
|
}
|
|
const lt = {
|
|
// Year
|
|
y(e, t) {
|
|
const r = e.getFullYear(), n = r > 0 ? r : 1 - r;
|
|
return ye(t === "yy" ? n % 100 : n, t.length);
|
|
},
|
|
// Month
|
|
M(e, t) {
|
|
const r = e.getMonth();
|
|
return t === "M" ? String(r + 1) : ye(r + 1, 2);
|
|
},
|
|
// Day of the month
|
|
d(e, t) {
|
|
return ye(e.getDate(), t.length);
|
|
},
|
|
// AM or PM
|
|
a(e, t) {
|
|
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
switch (t) {
|
|
case "a":
|
|
case "aa":
|
|
return r.toUpperCase();
|
|
case "aaa":
|
|
return r;
|
|
case "aaaaa":
|
|
return r[0];
|
|
case "aaaa":
|
|
default:
|
|
return r === "am" ? "a.m." : "p.m.";
|
|
}
|
|
},
|
|
// Hour [1-12]
|
|
h(e, t) {
|
|
return ye(e.getHours() % 12 || 12, t.length);
|
|
},
|
|
// Hour [0-23]
|
|
H(e, t) {
|
|
return ye(e.getHours(), t.length);
|
|
},
|
|
// Minute
|
|
m(e, t) {
|
|
return ye(e.getMinutes(), t.length);
|
|
},
|
|
// Second
|
|
s(e, t) {
|
|
return ye(e.getSeconds(), t.length);
|
|
},
|
|
// Fraction of second
|
|
S(e, t) {
|
|
const r = t.length, n = e.getMilliseconds(), i = Math.trunc(
|
|
n * Math.pow(10, r - 3)
|
|
);
|
|
return ye(i, t.length);
|
|
}
|
|
}, yt = {
|
|
midnight: "midnight",
|
|
noon: "noon",
|
|
morning: "morning",
|
|
afternoon: "afternoon",
|
|
evening: "evening",
|
|
night: "night"
|
|
}, Qr = {
|
|
// Era
|
|
G: function(e, t, r) {
|
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
switch (t) {
|
|
// AD, BC
|
|
case "G":
|
|
case "GG":
|
|
case "GGG":
|
|
return r.era(n, { width: "abbreviated" });
|
|
// A, B
|
|
case "GGGGG":
|
|
return r.era(n, { width: "narrow" });
|
|
// Anno Domini, Before Christ
|
|
case "GGGG":
|
|
default:
|
|
return r.era(n, { width: "wide" });
|
|
}
|
|
},
|
|
// Year
|
|
y: function(e, t, r) {
|
|
if (t === "yo") {
|
|
const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
|
|
return r.ordinalNumber(i, { unit: "year" });
|
|
}
|
|
return lt.y(e, t);
|
|
},
|
|
// Local week-numbering year
|
|
Y: function(e, t, r, n) {
|
|
const i = Fn(e, n), a = i > 0 ? i : 1 - i;
|
|
if (t === "YY") {
|
|
const s = a % 100;
|
|
return ye(s, 2);
|
|
}
|
|
return t === "Yo" ? r.ordinalNumber(a, { unit: "year" }) : ye(a, t.length);
|
|
},
|
|
// ISO week-numbering year
|
|
R: function(e, t) {
|
|
const r = In(e);
|
|
return ye(r, t.length);
|
|
},
|
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
// | Year | `y` | `u` |
|
|
// |------|-----|-----|
|
|
// | AC 1 | 1 | 1 |
|
|
// | BC 1 | 1 | 0 |
|
|
// | BC 2 | 2 | -1 |
|
|
// Also `yy` always returns the last two digits of a year,
|
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
u: function(e, t) {
|
|
const r = e.getFullYear();
|
|
return ye(r, t.length);
|
|
},
|
|
// Quarter
|
|
Q: function(e, t, r) {
|
|
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
switch (t) {
|
|
// 1, 2, 3, 4
|
|
case "Q":
|
|
return String(n);
|
|
// 01, 02, 03, 04
|
|
case "QQ":
|
|
return ye(n, 2);
|
|
// 1st, 2nd, 3rd, 4th
|
|
case "Qo":
|
|
return r.ordinalNumber(n, { unit: "quarter" });
|
|
// Q1, Q2, Q3, Q4
|
|
case "QQQ":
|
|
return r.quarter(n, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
case "QQQQQ":
|
|
return r.quarter(n, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
// 1st quarter, 2nd quarter, ...
|
|
case "QQQQ":
|
|
default:
|
|
return r.quarter(n, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// Stand-alone quarter
|
|
q: function(e, t, r) {
|
|
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
switch (t) {
|
|
// 1, 2, 3, 4
|
|
case "q":
|
|
return String(n);
|
|
// 01, 02, 03, 04
|
|
case "qq":
|
|
return ye(n, 2);
|
|
// 1st, 2nd, 3rd, 4th
|
|
case "qo":
|
|
return r.ordinalNumber(n, { unit: "quarter" });
|
|
// Q1, Q2, Q3, Q4
|
|
case "qqq":
|
|
return r.quarter(n, {
|
|
width: "abbreviated",
|
|
context: "standalone"
|
|
});
|
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
case "qqqqq":
|
|
return r.quarter(n, {
|
|
width: "narrow",
|
|
context: "standalone"
|
|
});
|
|
// 1st quarter, 2nd quarter, ...
|
|
case "qqqq":
|
|
default:
|
|
return r.quarter(n, {
|
|
width: "wide",
|
|
context: "standalone"
|
|
});
|
|
}
|
|
},
|
|
// Month
|
|
M: function(e, t, r) {
|
|
const n = e.getMonth();
|
|
switch (t) {
|
|
case "M":
|
|
case "MM":
|
|
return lt.M(e, t);
|
|
// 1st, 2nd, ..., 12th
|
|
case "Mo":
|
|
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
// Jan, Feb, ..., Dec
|
|
case "MMM":
|
|
return r.month(n, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
// J, F, ..., D
|
|
case "MMMMM":
|
|
return r.month(n, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
// January, February, ..., December
|
|
case "MMMM":
|
|
default:
|
|
return r.month(n, { width: "wide", context: "formatting" });
|
|
}
|
|
},
|
|
// Stand-alone month
|
|
L: function(e, t, r) {
|
|
const n = e.getMonth();
|
|
switch (t) {
|
|
// 1, 2, ..., 12
|
|
case "L":
|
|
return String(n + 1);
|
|
// 01, 02, ..., 12
|
|
case "LL":
|
|
return ye(n + 1, 2);
|
|
// 1st, 2nd, ..., 12th
|
|
case "Lo":
|
|
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
// Jan, Feb, ..., Dec
|
|
case "LLL":
|
|
return r.month(n, {
|
|
width: "abbreviated",
|
|
context: "standalone"
|
|
});
|
|
// J, F, ..., D
|
|
case "LLLLL":
|
|
return r.month(n, {
|
|
width: "narrow",
|
|
context: "standalone"
|
|
});
|
|
// January, February, ..., December
|
|
case "LLLL":
|
|
default:
|
|
return r.month(n, { width: "wide", context: "standalone" });
|
|
}
|
|
},
|
|
// Local week of year
|
|
w: function(e, t, r, n) {
|
|
const i = Qa(e, n);
|
|
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : ye(i, t.length);
|
|
},
|
|
// ISO week of year
|
|
I: function(e, t, r) {
|
|
const n = Xa(e);
|
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : ye(n, t.length);
|
|
},
|
|
// Day of the month
|
|
d: function(e, t, r) {
|
|
return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : lt.d(e, t);
|
|
},
|
|
// Day of year
|
|
D: function(e, t, r) {
|
|
const n = Ga(e);
|
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : ye(n, t.length);
|
|
},
|
|
// Day of week
|
|
E: function(e, t, r) {
|
|
const n = e.getDay();
|
|
switch (t) {
|
|
// Tue
|
|
case "E":
|
|
case "EE":
|
|
case "EEE":
|
|
return r.day(n, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
// T
|
|
case "EEEEE":
|
|
return r.day(n, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
// Tu
|
|
case "EEEEEE":
|
|
return r.day(n, {
|
|
width: "short",
|
|
context: "formatting"
|
|
});
|
|
// Tuesday
|
|
case "EEEE":
|
|
default:
|
|
return r.day(n, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// Local day of week
|
|
e: function(e, t, r, n) {
|
|
const i = e.getDay(), a = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
switch (t) {
|
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
case "e":
|
|
return String(a);
|
|
// Padded numerical value
|
|
case "ee":
|
|
return ye(a, 2);
|
|
// 1st, 2nd, ..., 7th
|
|
case "eo":
|
|
return r.ordinalNumber(a, { unit: "day" });
|
|
case "eee":
|
|
return r.day(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
// T
|
|
case "eeeee":
|
|
return r.day(i, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
// Tu
|
|
case "eeeeee":
|
|
return r.day(i, {
|
|
width: "short",
|
|
context: "formatting"
|
|
});
|
|
// Tuesday
|
|
case "eeee":
|
|
default:
|
|
return r.day(i, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// Stand-alone local day of week
|
|
c: function(e, t, r, n) {
|
|
const i = e.getDay(), a = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
switch (t) {
|
|
// Numerical value (same as in `e`)
|
|
case "c":
|
|
return String(a);
|
|
// Padded numerical value
|
|
case "cc":
|
|
return ye(a, t.length);
|
|
// 1st, 2nd, ..., 7th
|
|
case "co":
|
|
return r.ordinalNumber(a, { unit: "day" });
|
|
case "ccc":
|
|
return r.day(i, {
|
|
width: "abbreviated",
|
|
context: "standalone"
|
|
});
|
|
// T
|
|
case "ccccc":
|
|
return r.day(i, {
|
|
width: "narrow",
|
|
context: "standalone"
|
|
});
|
|
// Tu
|
|
case "cccccc":
|
|
return r.day(i, {
|
|
width: "short",
|
|
context: "standalone"
|
|
});
|
|
// Tuesday
|
|
case "cccc":
|
|
default:
|
|
return r.day(i, {
|
|
width: "wide",
|
|
context: "standalone"
|
|
});
|
|
}
|
|
},
|
|
// ISO day of week
|
|
i: function(e, t, r) {
|
|
const n = e.getDay(), i = n === 0 ? 7 : n;
|
|
switch (t) {
|
|
// 2
|
|
case "i":
|
|
return String(i);
|
|
// 02
|
|
case "ii":
|
|
return ye(i, t.length);
|
|
// 2nd
|
|
case "io":
|
|
return r.ordinalNumber(i, { unit: "day" });
|
|
// Tue
|
|
case "iii":
|
|
return r.day(n, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
// T
|
|
case "iiiii":
|
|
return r.day(n, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
// Tu
|
|
case "iiiiii":
|
|
return r.day(n, {
|
|
width: "short",
|
|
context: "formatting"
|
|
});
|
|
// Tuesday
|
|
case "iiii":
|
|
default:
|
|
return r.day(n, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// AM or PM
|
|
a: function(e, t, r) {
|
|
const i = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
switch (t) {
|
|
case "a":
|
|
case "aa":
|
|
return r.dayPeriod(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
case "aaa":
|
|
return r.dayPeriod(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
}).toLowerCase();
|
|
case "aaaaa":
|
|
return r.dayPeriod(i, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
case "aaaa":
|
|
default:
|
|
return r.dayPeriod(i, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// AM, PM, midnight, noon
|
|
b: function(e, t, r) {
|
|
const n = e.getHours();
|
|
let i;
|
|
switch (n === 12 ? i = yt.noon : n === 0 ? i = yt.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
|
|
case "b":
|
|
case "bb":
|
|
return r.dayPeriod(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
case "bbb":
|
|
return r.dayPeriod(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
}).toLowerCase();
|
|
case "bbbbb":
|
|
return r.dayPeriod(i, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
case "bbbb":
|
|
default:
|
|
return r.dayPeriod(i, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// in the morning, in the afternoon, in the evening, at night
|
|
B: function(e, t, r) {
|
|
const n = e.getHours();
|
|
let i;
|
|
switch (n >= 17 ? i = yt.evening : n >= 12 ? i = yt.afternoon : n >= 4 ? i = yt.morning : i = yt.night, t) {
|
|
case "B":
|
|
case "BB":
|
|
case "BBB":
|
|
return r.dayPeriod(i, {
|
|
width: "abbreviated",
|
|
context: "formatting"
|
|
});
|
|
case "BBBBB":
|
|
return r.dayPeriod(i, {
|
|
width: "narrow",
|
|
context: "formatting"
|
|
});
|
|
case "BBBB":
|
|
default:
|
|
return r.dayPeriod(i, {
|
|
width: "wide",
|
|
context: "formatting"
|
|
});
|
|
}
|
|
},
|
|
// Hour [1-12]
|
|
h: function(e, t, r) {
|
|
if (t === "ho") {
|
|
let n = e.getHours() % 12;
|
|
return n === 0 && (n = 12), r.ordinalNumber(n, { unit: "hour" });
|
|
}
|
|
return lt.h(e, t);
|
|
},
|
|
// Hour [0-23]
|
|
H: function(e, t, r) {
|
|
return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : lt.H(e, t);
|
|
},
|
|
// Hour [0-11]
|
|
K: function(e, t, r) {
|
|
const n = e.getHours() % 12;
|
|
return t === "Ko" ? r.ordinalNumber(n, { unit: "hour" }) : ye(n, t.length);
|
|
},
|
|
// Hour [1-24]
|
|
k: function(e, t, r) {
|
|
let n = e.getHours();
|
|
return n === 0 && (n = 24), t === "ko" ? r.ordinalNumber(n, { unit: "hour" }) : ye(n, t.length);
|
|
},
|
|
// Minute
|
|
m: function(e, t, r) {
|
|
return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : lt.m(e, t);
|
|
},
|
|
// Second
|
|
s: function(e, t, r) {
|
|
return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : lt.s(e, t);
|
|
},
|
|
// Fraction of second
|
|
S: function(e, t) {
|
|
return lt.S(e, t);
|
|
},
|
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
X: function(e, t, r) {
|
|
const n = e.getTimezoneOffset();
|
|
if (n === 0)
|
|
return "Z";
|
|
switch (t) {
|
|
// Hours and optional minutes
|
|
case "X":
|
|
return Zr(n);
|
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
// so this token always has the same output as `XX`
|
|
case "XXXX":
|
|
case "XX":
|
|
return ht(n);
|
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
// so this token always has the same output as `XXX`
|
|
case "XXXXX":
|
|
case "XXX":
|
|
// Hours and minutes with `:` delimiter
|
|
default:
|
|
return ht(n, ":");
|
|
}
|
|
},
|
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
x: function(e, t, r) {
|
|
const n = e.getTimezoneOffset();
|
|
switch (t) {
|
|
// Hours and optional minutes
|
|
case "x":
|
|
return Zr(n);
|
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
// so this token always has the same output as `xx`
|
|
case "xxxx":
|
|
case "xx":
|
|
return ht(n);
|
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
// so this token always has the same output as `xxx`
|
|
case "xxxxx":
|
|
case "xxx":
|
|
// Hours and minutes with `:` delimiter
|
|
default:
|
|
return ht(n, ":");
|
|
}
|
|
},
|
|
// Timezone (GMT)
|
|
O: function(e, t, r) {
|
|
const n = e.getTimezoneOffset();
|
|
switch (t) {
|
|
// Short
|
|
case "O":
|
|
case "OO":
|
|
case "OOO":
|
|
return "GMT" + Kr(n, ":");
|
|
// Long
|
|
case "OOOO":
|
|
default:
|
|
return "GMT" + ht(n, ":");
|
|
}
|
|
},
|
|
// Timezone (specific non-location)
|
|
z: function(e, t, r) {
|
|
const n = e.getTimezoneOffset();
|
|
switch (t) {
|
|
// Short
|
|
case "z":
|
|
case "zz":
|
|
case "zzz":
|
|
return "GMT" + Kr(n, ":");
|
|
// Long
|
|
case "zzzz":
|
|
default:
|
|
return "GMT" + ht(n, ":");
|
|
}
|
|
},
|
|
// Seconds timestamp
|
|
t: function(e, t, r) {
|
|
const n = Math.trunc(+e / 1e3);
|
|
return ye(n, t.length);
|
|
},
|
|
// Milliseconds timestamp
|
|
T: function(e, t, r) {
|
|
return ye(+e, t.length);
|
|
}
|
|
};
|
|
function Kr(e, t = "") {
|
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), a = n % 60;
|
|
return a === 0 ? r + String(i) : r + String(i) + t + ye(a, 2);
|
|
}
|
|
function Zr(e, t) {
|
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + ye(Math.abs(e) / 60, 2) : ht(e, t);
|
|
}
|
|
function ht(e, t = "") {
|
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = ye(Math.trunc(n / 60), 2), a = ye(n % 60, 2);
|
|
return r + i + t + a;
|
|
}
|
|
const en = (e, t) => {
|
|
switch (e) {
|
|
case "P":
|
|
return t.date({ width: "short" });
|
|
case "PP":
|
|
return t.date({ width: "medium" });
|
|
case "PPP":
|
|
return t.date({ width: "long" });
|
|
case "PPPP":
|
|
default:
|
|
return t.date({ width: "full" });
|
|
}
|
|
}, Yn = (e, t) => {
|
|
switch (e) {
|
|
case "p":
|
|
return t.time({ width: "short" });
|
|
case "pp":
|
|
return t.time({ width: "medium" });
|
|
case "ppp":
|
|
return t.time({ width: "long" });
|
|
case "pppp":
|
|
default:
|
|
return t.time({ width: "full" });
|
|
}
|
|
}, Ka = (e, t) => {
|
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], i = r[2];
|
|
if (!i)
|
|
return en(e, t);
|
|
let a;
|
|
switch (n) {
|
|
case "P":
|
|
a = t.dateTime({ width: "short" });
|
|
break;
|
|
case "PP":
|
|
a = t.dateTime({ width: "medium" });
|
|
break;
|
|
case "PPP":
|
|
a = t.dateTime({ width: "long" });
|
|
break;
|
|
case "PPPP":
|
|
default:
|
|
a = t.dateTime({ width: "full" });
|
|
break;
|
|
}
|
|
return a.replace("{{date}}", en(n, t)).replace("{{time}}", Yn(i, t));
|
|
}, Za = {
|
|
p: Yn,
|
|
P: Ka
|
|
}, eo = /^D+$/, to = /^Y+$/, ro = ["D", "DD", "YY", "YYYY"];
|
|
function no(e) {
|
|
return eo.test(e);
|
|
}
|
|
function io(e) {
|
|
return to.test(e);
|
|
}
|
|
function ao(e, t, r) {
|
|
const n = oo(e, t, r);
|
|
if (console.warn(n), ro.includes(e)) throw new RangeError(n);
|
|
}
|
|
function oo(e, t, r) {
|
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
}
|
|
const so = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, co = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, uo = /^'([^]*?)'?$/, lo = /''/g, fo = /[a-zA-Z]/;
|
|
function Gt(e, t, r) {
|
|
const n = ur(), i = n.locale ?? za, a = n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, d = $e(e, r?.in);
|
|
if (!ha(d))
|
|
throw new RangeError("Invalid time value");
|
|
let f = t.match(co).map((g) => {
|
|
const O = g[0];
|
|
if (O === "p" || O === "P") {
|
|
const l = Za[O];
|
|
return l(g, i.formatLong);
|
|
}
|
|
return g;
|
|
}).join("").match(so).map((g) => {
|
|
if (g === "''")
|
|
return { isToken: !1, value: "'" };
|
|
const O = g[0];
|
|
if (O === "'")
|
|
return { isToken: !1, value: ho(g) };
|
|
if (Qr[O])
|
|
return { isToken: !0, value: g };
|
|
if (O.match(fo))
|
|
throw new RangeError(
|
|
"Format string contains an unescaped latin alphabet character `" + O + "`"
|
|
);
|
|
return { isToken: !1, value: g };
|
|
});
|
|
i.localize.preprocessor && (f = i.localize.preprocessor(d, f));
|
|
const y = {
|
|
firstWeekContainsDate: a,
|
|
weekStartsOn: s,
|
|
locale: i
|
|
};
|
|
return f.map((g) => {
|
|
if (!g.isToken) return g.value;
|
|
const O = g.value;
|
|
(io(O) || no(O)) && ao(O, t, String(e));
|
|
const l = Qr[O[0]];
|
|
return l(d, O, i.localize, y);
|
|
}).join("");
|
|
}
|
|
function ho(e) {
|
|
const t = e.match(uo);
|
|
return t ? t[1].replace(lo, "'") : e;
|
|
}
|
|
function mo(e, t) {
|
|
const r = $e(e, t?.in), n = r.getFullYear(), i = r.getMonth(), a = Ge(r, 0);
|
|
return a.setFullYear(n, i + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
}
|
|
function vo(e, t, r) {
|
|
const n = $e(e, r?.in), i = n.getFullYear(), a = n.getDate(), s = Ge(e, 0);
|
|
s.setFullYear(i, t, 15), s.setHours(0, 0, 0, 0);
|
|
const d = mo(s);
|
|
return n.setMonth(t, Math.min(a, d)), n;
|
|
}
|
|
function go(e, t, r) {
|
|
const n = $e(e, r?.in);
|
|
return isNaN(+n) ? Ge(e, NaN) : (n.setFullYear(t), n);
|
|
}
|
|
function po(e, t, r) {
|
|
return $n(e, -1, r);
|
|
}
|
|
var Ln = {
|
|
color: void 0,
|
|
size: void 0,
|
|
className: void 0,
|
|
style: void 0,
|
|
attr: void 0
|
|
}, tn = He.createContext && /* @__PURE__ */ He.createContext(Ln), bo = ["attr", "size", "title"];
|
|
function wo(e, t) {
|
|
if (e == null) return {};
|
|
var r = yo(e, t), n, i;
|
|
if (Object.getOwnPropertySymbols) {
|
|
var a = Object.getOwnPropertySymbols(e);
|
|
for (i = 0; i < a.length; i++)
|
|
n = a[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
}
|
|
return r;
|
|
}
|
|
function yo(e, t) {
|
|
if (e == null) return {};
|
|
var r = {};
|
|
for (var n in e)
|
|
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
if (t.indexOf(n) >= 0) continue;
|
|
r[n] = e[n];
|
|
}
|
|
return r;
|
|
}
|
|
function nr() {
|
|
return nr = Object.assign ? Object.assign.bind() : function(e) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var r = arguments[t];
|
|
for (var n in r)
|
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
}
|
|
return e;
|
|
}, nr.apply(this, arguments);
|
|
}
|
|
function rn(e, t) {
|
|
var r = Object.keys(e);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n = Object.getOwnPropertySymbols(e);
|
|
t && (n = n.filter(function(i) {
|
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
})), r.push.apply(r, n);
|
|
}
|
|
return r;
|
|
}
|
|
function ir(e) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
t % 2 ? rn(Object(r), !0).forEach(function(n) {
|
|
xo(e, n, r[n]);
|
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : rn(Object(r)).forEach(function(n) {
|
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
});
|
|
}
|
|
return e;
|
|
}
|
|
function xo(e, t, r) {
|
|
return t = Oo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
}
|
|
function Oo(e) {
|
|
var t = Co(e, "string");
|
|
return typeof t == "symbol" ? t : t + "";
|
|
}
|
|
function Co(e, t) {
|
|
if (typeof e != "object" || !e) return e;
|
|
var r = e[Symbol.toPrimitive];
|
|
if (r !== void 0) {
|
|
var n = r.call(e, t);
|
|
if (typeof n != "object") return n;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return (t === "string" ? String : Number)(e);
|
|
}
|
|
function Vn(e) {
|
|
return e && e.map((t, r) => /* @__PURE__ */ He.createElement(t.tag, ir({
|
|
key: r
|
|
}, t.attr), Vn(t.child)));
|
|
}
|
|
function vt(e) {
|
|
return (t) => /* @__PURE__ */ He.createElement(So, nr({
|
|
attr: ir({}, e.attr)
|
|
}, t), Vn(e.child));
|
|
}
|
|
function So(e) {
|
|
var t = (r) => {
|
|
var {
|
|
attr: n,
|
|
size: i,
|
|
title: a
|
|
} = e, s = wo(e, bo), d = i || r.size || "1em", f;
|
|
return r.className && (f = r.className), e.className && (f = (f ? f + " " : "") + e.className), /* @__PURE__ */ He.createElement("svg", nr({
|
|
stroke: "currentColor",
|
|
fill: "currentColor",
|
|
strokeWidth: "0"
|
|
}, r.attr, n, s, {
|
|
className: f,
|
|
style: ir(ir({
|
|
color: e.color || r.color
|
|
}, r.style), e.style),
|
|
height: d,
|
|
width: d,
|
|
xmlns: "http://www.w3.org/2000/svg"
|
|
}), a && /* @__PURE__ */ He.createElement("title", null, a), e.children);
|
|
};
|
|
return tn !== void 0 ? /* @__PURE__ */ He.createElement(tn.Consumer, null, (r) => t(r)) : t(Ln);
|
|
}
|
|
function To(e) {
|
|
return vt({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { d: "M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z" }, child: [] }] })(e);
|
|
}
|
|
function Eo(e) {
|
|
return vt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "rect", attr: { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }, child: [] }, { tag: "line", attr: { x1: "16", y1: "2", x2: "16", y2: "6" }, child: [] }, { tag: "line", attr: { x1: "8", y1: "2", x2: "8", y2: "6" }, child: [] }, { tag: "line", attr: { x1: "3", y1: "10", x2: "21", y2: "10" }, child: [] }] })(e);
|
|
}
|
|
function Po(e) {
|
|
return vt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "15 18 9 12 15 6" }, child: [] }] })(e);
|
|
}
|
|
function Mo(e) {
|
|
return vt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "9 18 15 12 9 6" }, child: [] }] })(e);
|
|
}
|
|
const Js = () => {
|
|
const e = /* @__PURE__ */ new Date("2025-06-29T12:00:00"), [t, r] = ue(e), [n, i] = ue(!1), a = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], s = (h) => {
|
|
const m = vo(t, h);
|
|
r(m);
|
|
}, d = (h) => {
|
|
r(h);
|
|
}, f = () => {
|
|
i(!n);
|
|
}, y = (h) => {
|
|
const m = go(t, h);
|
|
r(m), i(!1);
|
|
}, g = () => {
|
|
r(po(t));
|
|
}, O = () => {
|
|
r($n(t, 1));
|
|
}, l = () => {
|
|
const h = St(t, { weekStartsOn: 0 }), m = [];
|
|
for (let M = 0; M < 5; M++)
|
|
m.push(Nn(h, M));
|
|
const v = {
|
|
29: ["yellow", "orange"],
|
|
30: ["yellow"]
|
|
};
|
|
return m.map((M) => /* @__PURE__ */ w.jsxs(
|
|
"div",
|
|
{
|
|
className: `calendar-day-item ${vr(M, t) ? "active" : ""}`,
|
|
onClick: () => d(M),
|
|
children: [
|
|
/* @__PURE__ */ w.jsx("div", { className: "event-dots-container", children: (v[Gt(M, "d")] || []).map(($, T) => /* @__PURE__ */ w.jsx("div", { className: `event-dot ${$}` }, T)) }),
|
|
/* @__PURE__ */ w.jsx("div", { className: `day-number ${vr(M, t) ? "active" : ""}`, children: Gt(M, "d") }),
|
|
/* @__PURE__ */ w.jsx(
|
|
"div",
|
|
{
|
|
className: `day-name ${vr(M, t) ? "active" : ""}`,
|
|
children: Gt(M, "EEE")
|
|
}
|
|
)
|
|
]
|
|
},
|
|
M
|
|
));
|
|
}, p = () => {
|
|
const h = t.getFullYear(), m = Array.from({ length: 10 }, (v, M) => h - 5 + M);
|
|
return /* @__PURE__ */ w.jsx("div", { className: "year-picker", children: m.map((v) => /* @__PURE__ */ w.jsx(
|
|
"div",
|
|
{
|
|
className: `year-item ${v === h ? "active" : ""}`,
|
|
onClick: () => y(v),
|
|
children: v
|
|
},
|
|
v
|
|
)) });
|
|
};
|
|
return /* @__PURE__ */ w.jsxs("div", { className: "calendar-widget-wrapper", children: [
|
|
/* @__PURE__ */ w.jsxs("div", { className: "calendar-header", children: [
|
|
/* @__PURE__ */ w.jsx("div", { className: "calendar-title-main", children: "Calendar for Bills & Events" }),
|
|
/* @__PURE__ */ w.jsxs("div", { className: "calendar-event-notes", children: [
|
|
"Pending bills due tomorrow",
|
|
/* @__PURE__ */ w.jsx("br", {}),
|
|
"Scheduled delivery/purchase",
|
|
/* @__PURE__ */ w.jsx("br", {}),
|
|
"Staff birthdays/notes"
|
|
] })
|
|
] }),
|
|
/* @__PURE__ */ w.jsx("div", { className: "calendar-body-content", children: n ? p() : /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
/* @__PURE__ */ w.jsxs("div", { className: "calendar-controls", children: [
|
|
/* @__PURE__ */ w.jsx("div", { className: "calendar-year-display", children: Gt(t, "yyyy") }),
|
|
/* @__PURE__ */ w.jsx("button", { className: "calendar-more-btn", onClick: f, children: /* @__PURE__ */ w.jsx(To, {}) })
|
|
] }),
|
|
/* @__PURE__ */ w.jsx("div", { className: "calendar-months-nav", children: a.slice(0, 6).map((h, m) => /* @__PURE__ */ w.jsx(
|
|
"button",
|
|
{
|
|
className: `month-nav-btn ${t.getMonth() === m ? "active" : ""}`,
|
|
onClick: () => s(m),
|
|
children: h
|
|
},
|
|
h
|
|
)) }),
|
|
/* @__PURE__ */ w.jsxs("div", { className: "calendar-week-view", children: [
|
|
/* @__PURE__ */ w.jsx("button", { className: "week-nav-btn prev", onClick: g, children: /* @__PURE__ */ w.jsx(Po, {}) }),
|
|
/* @__PURE__ */ w.jsx("div", { className: "calendar-days-grid", children: l() }),
|
|
/* @__PURE__ */ w.jsx("button", { className: "week-nav-btn next", onClick: O, children: /* @__PURE__ */ w.jsx(Mo, {}) })
|
|
] })
|
|
] }) })
|
|
] });
|
|
};
|
|
function _o(e) {
|
|
return vt({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }, child: [] }] })(e);
|
|
}
|
|
const pr = [
|
|
{ label: "Today", value: "today" },
|
|
{ label: "This Week", value: "week" },
|
|
{ label: "This Month", value: "month" },
|
|
{ label: "This Year", value: "year" }
|
|
], Qs = ({ value: e, onChange: t }) => {
|
|
const [r, n] = ue(!1), i = Ot();
|
|
ze(() => {
|
|
function s(d) {
|
|
i.current && !i.current.contains(d.target) && n(!1);
|
|
}
|
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
}, []);
|
|
const a = pr.find((s) => s.value === e) || pr[0];
|
|
return /* @__PURE__ */ w.jsxs("div", { ref: i, style: { position: "relative" }, children: [
|
|
/* @__PURE__ */ w.jsxs(
|
|
"button",
|
|
{
|
|
className: "calendar-btn",
|
|
onClick: () => n((s) => !s),
|
|
type: "button",
|
|
children: [
|
|
/* @__PURE__ */ w.jsx(Eo, { style: { marginRight: 4 } }),
|
|
a.label,
|
|
/* @__PURE__ */ w.jsx(_o, { style: { marginLeft: 2 } })
|
|
]
|
|
}
|
|
),
|
|
r && /* @__PURE__ */ w.jsx("div", { className: "calendar-dropdown", children: pr.map((s) => /* @__PURE__ */ w.jsx(
|
|
"div",
|
|
{
|
|
className: `calendar-dropdown-item${a.value === s.value ? " selectedd" : ""}`,
|
|
onClick: () => {
|
|
t(s.value), n(!1);
|
|
},
|
|
children: s.label
|
|
},
|
|
s.value
|
|
)) })
|
|
] });
|
|
}, Ks = kn(
|
|
({ buttonText: e, handleSubmit: t, icon: r, disabled: n, htmlType: i, prefix: a }, s) => /* @__PURE__ */ w.jsxs(
|
|
Dr,
|
|
{
|
|
ref: s,
|
|
type: "primary",
|
|
className: "primary_Button",
|
|
onClick: t,
|
|
htmlType: i ? "submit" : "",
|
|
disabled: n || !1,
|
|
children: [
|
|
a,
|
|
e,
|
|
r
|
|
]
|
|
}
|
|
)
|
|
), gt = (e) => {
|
|
const [t, r] = ue(!1), { children: n, label: i, value: a, isOnChange: s } = e, d = t || a && a?.length !== 0 || s ? "label label-float" : "label";
|
|
return /* @__PURE__ */ w.jsxs(
|
|
"div",
|
|
{
|
|
className: "float-label",
|
|
onBlur: () => r(!1),
|
|
onFocus: () => r(!0),
|
|
children: [
|
|
n,
|
|
/* @__PURE__ */ w.jsx("label", { className: d, children: i })
|
|
]
|
|
}
|
|
);
|
|
}, Zs = kn((e, t) => {
|
|
const [r, n] = ue(""), i = Ot(null), a = Ot(null), {
|
|
onChange: s,
|
|
isOnChange: d,
|
|
onBlur: f,
|
|
onKeyUp: y,
|
|
label: g,
|
|
disable: O = !1,
|
|
...l
|
|
} = e;
|
|
return Qi(t, () => a.current), /* @__PURE__ */ w.jsx("div", { className: "example", ref: a, children: /* @__PURE__ */ w.jsx(gt, { label: g, value: r, isOnChange: d, children: /* @__PURE__ */ w.jsx(
|
|
dt,
|
|
{
|
|
ref: i,
|
|
disabled: O,
|
|
...l,
|
|
onChange: (p) => {
|
|
n(p?.target?.value), s && s(p);
|
|
},
|
|
onBlur: (p) => {
|
|
f && f(p);
|
|
},
|
|
onKeyUp: (p) => {
|
|
y && y(p);
|
|
},
|
|
autoComplete: "Off"
|
|
}
|
|
) }) });
|
|
});
|
|
var Bn = /* @__PURE__ */ Ki({});
|
|
function at() {
|
|
return at = Object.assign ? Object.assign.bind() : function(e) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var r = arguments[t];
|
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
}
|
|
return e;
|
|
}, at.apply(null, arguments);
|
|
}
|
|
function ko(e) {
|
|
if (Array.isArray(e)) return e;
|
|
}
|
|
function jo(e, t) {
|
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
if (r != null) {
|
|
var n, i, a, s, d = [], f = !0, y = !1;
|
|
try {
|
|
if (a = (r = r.call(e)).next, t !== 0) for (; !(f = (n = a.call(r)).done) && (d.push(n.value), d.length !== t); f = !0) ;
|
|
} catch (g) {
|
|
y = !0, i = g;
|
|
} finally {
|
|
try {
|
|
if (!f && r.return != null && (s = r.return(), Object(s) !== s)) return;
|
|
} finally {
|
|
if (y) throw i;
|
|
}
|
|
}
|
|
return d;
|
|
}
|
|
}
|
|
function nn(e, t) {
|
|
(t == null || t > e.length) && (t = e.length);
|
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
return n;
|
|
}
|
|
function Do(e, t) {
|
|
if (e) {
|
|
if (typeof e == "string") return nn(e, t);
|
|
var r = {}.toString.call(e).slice(8, -1);
|
|
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? nn(e, t) : void 0;
|
|
}
|
|
}
|
|
function Ro() {
|
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
}
|
|
function Hn(e, t) {
|
|
return ko(e) || jo(e, t) || Do(e, t) || Ro();
|
|
}
|
|
function mt(e) {
|
|
"@babel/helpers - typeof";
|
|
return mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
return typeof t;
|
|
} : function(t) {
|
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
}, mt(e);
|
|
}
|
|
function Ao(e, t) {
|
|
if (mt(e) != "object" || !e) return e;
|
|
var r = e[Symbol.toPrimitive];
|
|
if (r !== void 0) {
|
|
var n = r.call(e, t);
|
|
if (mt(n) != "object") return n;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return (t === "string" ? String : Number)(e);
|
|
}
|
|
function No(e) {
|
|
var t = Ao(e, "string");
|
|
return mt(t) == "symbol" ? t : t + "";
|
|
}
|
|
function We(e, t, r) {
|
|
return (t = No(t)) in e ? Object.defineProperty(e, t, {
|
|
value: r,
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0
|
|
}) : e[t] = r, e;
|
|
}
|
|
function Io(e, t) {
|
|
if (e == null) return {};
|
|
var r = {};
|
|
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
|
if (t.indexOf(n) !== -1) continue;
|
|
r[n] = e[n];
|
|
}
|
|
return r;
|
|
}
|
|
function qn(e, t) {
|
|
if (e == null) return {};
|
|
var r, n, i = Io(e, t);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var a = Object.getOwnPropertySymbols(e);
|
|
for (n = 0; n < a.length; n++) r = a[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
}
|
|
return i;
|
|
}
|
|
var br = { exports: {} };
|
|
var an;
|
|
function Wo() {
|
|
return an || (an = 1, (function(e) {
|
|
(function() {
|
|
var t = {}.hasOwnProperty;
|
|
function r() {
|
|
for (var a = "", s = 0; s < arguments.length; s++) {
|
|
var d = arguments[s];
|
|
d && (a = i(a, n(d)));
|
|
}
|
|
return a;
|
|
}
|
|
function n(a) {
|
|
if (typeof a == "string" || typeof a == "number")
|
|
return a;
|
|
if (typeof a != "object")
|
|
return "";
|
|
if (Array.isArray(a))
|
|
return r.apply(null, a);
|
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
return a.toString();
|
|
var s = "";
|
|
for (var d in a)
|
|
t.call(a, d) && a[d] && (s = i(s, d));
|
|
return s;
|
|
}
|
|
function i(a, s) {
|
|
return s ? a ? a + " " + s : a + s : a;
|
|
}
|
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
})();
|
|
})(br)), br.exports;
|
|
}
|
|
var $o = Wo();
|
|
const pt = /* @__PURE__ */ cr($o), Pe = Math.round;
|
|
function wr(e, t) {
|
|
const r = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = r.map((i) => parseFloat(i));
|
|
for (let i = 0; i < 3; i += 1)
|
|
n[i] = t(n[i] || 0, r[i] || "", i);
|
|
return r[3] ? n[3] = r[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
|
|
}
|
|
const on = (e, t, r) => r === 0 ? e : e / 100;
|
|
function It(e, t) {
|
|
const r = t || 255;
|
|
return e > r ? r : e < 0 ? 0 : e;
|
|
}
|
|
class xt {
|
|
constructor(t) {
|
|
We(this, "isValid", !0), We(this, "r", 0), We(this, "g", 0), We(this, "b", 0), We(this, "a", 1), We(this, "_h", void 0), We(this, "_s", void 0), We(this, "_l", void 0), We(this, "_v", void 0), We(this, "_max", void 0), We(this, "_min", void 0), We(this, "_brightness", void 0);
|
|
function r(n) {
|
|
return n[0] in t && n[1] in t && n[2] in t;
|
|
}
|
|
if (t) if (typeof t == "string") {
|
|
let i = function(a) {
|
|
return n.startsWith(a);
|
|
};
|
|
const n = t.trim();
|
|
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : i("rgb") ? this.fromRgbString(n) : i("hsl") ? this.fromHslString(n) : (i("hsv") || i("hsb")) && this.fromHsvString(n);
|
|
} else if (t instanceof xt)
|
|
this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
|
|
else if (r("rgb"))
|
|
this.r = It(t.r), this.g = It(t.g), this.b = It(t.b), this.a = typeof t.a == "number" ? It(t.a, 1) : 1;
|
|
else if (r("hsl"))
|
|
this.fromHsl(t);
|
|
else if (r("hsv"))
|
|
this.fromHsv(t);
|
|
else
|
|
throw new Error("@ant-design/fast-color: unsupported input " + JSON.stringify(t));
|
|
}
|
|
// ======================= Setter =======================
|
|
setR(t) {
|
|
return this._sc("r", t);
|
|
}
|
|
setG(t) {
|
|
return this._sc("g", t);
|
|
}
|
|
setB(t) {
|
|
return this._sc("b", t);
|
|
}
|
|
setA(t) {
|
|
return this._sc("a", t, 1);
|
|
}
|
|
setHue(t) {
|
|
const r = this.toHsv();
|
|
return r.h = t, this._c(r);
|
|
}
|
|
// ======================= Getter =======================
|
|
/**
|
|
* Returns the perceived luminance of a color, from 0-1.
|
|
* @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
*/
|
|
getLuminance() {
|
|
function t(a) {
|
|
const s = a / 255;
|
|
return s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
|
|
}
|
|
const r = t(this.r), n = t(this.g), i = t(this.b);
|
|
return 0.2126 * r + 0.7152 * n + 0.0722 * i;
|
|
}
|
|
getHue() {
|
|
if (typeof this._h > "u") {
|
|
const t = this.getMax() - this.getMin();
|
|
t === 0 ? this._h = 0 : this._h = Pe(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
|
|
}
|
|
return this._h;
|
|
}
|
|
getSaturation() {
|
|
if (typeof this._s > "u") {
|
|
const t = this.getMax() - this.getMin();
|
|
t === 0 ? this._s = 0 : this._s = t / this.getMax();
|
|
}
|
|
return this._s;
|
|
}
|
|
getLightness() {
|
|
return typeof this._l > "u" && (this._l = (this.getMax() + this.getMin()) / 510), this._l;
|
|
}
|
|
getValue() {
|
|
return typeof this._v > "u" && (this._v = this.getMax() / 255), this._v;
|
|
}
|
|
/**
|
|
* Returns the perceived brightness of the color, from 0-255.
|
|
* Note: this is not the b of HSB
|
|
* @see http://www.w3.org/TR/AERT#color-contrast
|
|
*/
|
|
getBrightness() {
|
|
return typeof this._brightness > "u" && (this._brightness = (this.r * 299 + this.g * 587 + this.b * 114) / 1e3), this._brightness;
|
|
}
|
|
// ======================== Func ========================
|
|
darken(t = 10) {
|
|
const r = this.getHue(), n = this.getSaturation();
|
|
let i = this.getLightness() - t / 100;
|
|
return i < 0 && (i = 0), this._c({
|
|
h: r,
|
|
s: n,
|
|
l: i,
|
|
a: this.a
|
|
});
|
|
}
|
|
lighten(t = 10) {
|
|
const r = this.getHue(), n = this.getSaturation();
|
|
let i = this.getLightness() + t / 100;
|
|
return i > 1 && (i = 1), this._c({
|
|
h: r,
|
|
s: n,
|
|
l: i,
|
|
a: this.a
|
|
});
|
|
}
|
|
/**
|
|
* Mix the current color a given amount with another color, from 0 to 100.
|
|
* 0 means no mixing (return current color).
|
|
*/
|
|
mix(t, r = 50) {
|
|
const n = this._c(t), i = r / 100, a = (d) => (n[d] - this[d]) * i + this[d], s = {
|
|
r: Pe(a("r")),
|
|
g: Pe(a("g")),
|
|
b: Pe(a("b")),
|
|
a: Pe(a("a") * 100) / 100
|
|
};
|
|
return this._c(s);
|
|
}
|
|
/**
|
|
* Mix the color with pure white, from 0 to 100.
|
|
* Providing 0 will do nothing, providing 100 will always return white.
|
|
*/
|
|
tint(t = 10) {
|
|
return this.mix({
|
|
r: 255,
|
|
g: 255,
|
|
b: 255,
|
|
a: 1
|
|
}, t);
|
|
}
|
|
/**
|
|
* Mix the color with pure black, from 0 to 100.
|
|
* Providing 0 will do nothing, providing 100 will always return black.
|
|
*/
|
|
shade(t = 10) {
|
|
return this.mix({
|
|
r: 0,
|
|
g: 0,
|
|
b: 0,
|
|
a: 1
|
|
}, t);
|
|
}
|
|
onBackground(t) {
|
|
const r = this._c(t), n = this.a + r.a * (1 - this.a), i = (a) => Pe((this[a] * this.a + r[a] * r.a * (1 - this.a)) / n);
|
|
return this._c({
|
|
r: i("r"),
|
|
g: i("g"),
|
|
b: i("b"),
|
|
a: n
|
|
});
|
|
}
|
|
// ======================= Status =======================
|
|
isDark() {
|
|
return this.getBrightness() < 128;
|
|
}
|
|
isLight() {
|
|
return this.getBrightness() >= 128;
|
|
}
|
|
// ======================== MISC ========================
|
|
equals(t) {
|
|
return this.r === t.r && this.g === t.g && this.b === t.b && this.a === t.a;
|
|
}
|
|
clone() {
|
|
return this._c(this);
|
|
}
|
|
// ======================= Format =======================
|
|
toHexString() {
|
|
let t = "#";
|
|
const r = (this.r || 0).toString(16);
|
|
t += r.length === 2 ? r : "0" + r;
|
|
const n = (this.g || 0).toString(16);
|
|
t += n.length === 2 ? n : "0" + n;
|
|
const i = (this.b || 0).toString(16);
|
|
if (t += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
|
|
const a = Pe(this.a * 255).toString(16);
|
|
t += a.length === 2 ? a : "0" + a;
|
|
}
|
|
return t;
|
|
}
|
|
/** CSS support color pattern */
|
|
toHsl() {
|
|
return {
|
|
h: this.getHue(),
|
|
s: this.getSaturation(),
|
|
l: this.getLightness(),
|
|
a: this.a
|
|
};
|
|
}
|
|
/** CSS support color pattern */
|
|
toHslString() {
|
|
const t = this.getHue(), r = Pe(this.getSaturation() * 100), n = Pe(this.getLightness() * 100);
|
|
return this.a !== 1 ? `hsla(${t},${r}%,${n}%,${this.a})` : `hsl(${t},${r}%,${n}%)`;
|
|
}
|
|
/** Same as toHsb */
|
|
toHsv() {
|
|
return {
|
|
h: this.getHue(),
|
|
s: this.getSaturation(),
|
|
v: this.getValue(),
|
|
a: this.a
|
|
};
|
|
}
|
|
toRgb() {
|
|
return {
|
|
r: this.r,
|
|
g: this.g,
|
|
b: this.b,
|
|
a: this.a
|
|
};
|
|
}
|
|
toRgbString() {
|
|
return this.a !== 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : `rgb(${this.r},${this.g},${this.b})`;
|
|
}
|
|
toString() {
|
|
return this.toRgbString();
|
|
}
|
|
// ====================== Privates ======================
|
|
/** Return a new FastColor object with one channel changed */
|
|
_sc(t, r, n) {
|
|
const i = this.clone();
|
|
return i[t] = It(r, n), i;
|
|
}
|
|
_c(t) {
|
|
return new this.constructor(t);
|
|
}
|
|
getMax() {
|
|
return typeof this._max > "u" && (this._max = Math.max(this.r, this.g, this.b)), this._max;
|
|
}
|
|
getMin() {
|
|
return typeof this._min > "u" && (this._min = Math.min(this.r, this.g, this.b)), this._min;
|
|
}
|
|
fromHexString(t) {
|
|
const r = t.replace("#", "");
|
|
function n(i, a) {
|
|
return parseInt(r[i] + r[a || i], 16);
|
|
}
|
|
r.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = r[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = r[6] ? n(6, 7) / 255 : 1);
|
|
}
|
|
fromHsl({
|
|
h: t,
|
|
s: r,
|
|
l: n,
|
|
a: i
|
|
}) {
|
|
if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof i == "number" ? i : 1, r <= 0) {
|
|
const l = Pe(n * 255);
|
|
this.r = l, this.g = l, this.b = l;
|
|
}
|
|
let a = 0, s = 0, d = 0;
|
|
const f = t / 60, y = (1 - Math.abs(2 * n - 1)) * r, g = y * (1 - Math.abs(f % 2 - 1));
|
|
f >= 0 && f < 1 ? (a = y, s = g) : f >= 1 && f < 2 ? (a = g, s = y) : f >= 2 && f < 3 ? (s = y, d = g) : f >= 3 && f < 4 ? (s = g, d = y) : f >= 4 && f < 5 ? (a = g, d = y) : f >= 5 && f < 6 && (a = y, d = g);
|
|
const O = n - y / 2;
|
|
this.r = Pe((a + O) * 255), this.g = Pe((s + O) * 255), this.b = Pe((d + O) * 255);
|
|
}
|
|
fromHsv({
|
|
h: t,
|
|
s: r,
|
|
v: n,
|
|
a: i
|
|
}) {
|
|
this._h = t % 360, this._s = r, this._v = n, this.a = typeof i == "number" ? i : 1;
|
|
const a = Pe(n * 255);
|
|
if (this.r = a, this.g = a, this.b = a, r <= 0)
|
|
return;
|
|
const s = t / 60, d = Math.floor(s), f = s - d, y = Pe(n * (1 - r) * 255), g = Pe(n * (1 - r * f) * 255), O = Pe(n * (1 - r * (1 - f)) * 255);
|
|
switch (d) {
|
|
case 0:
|
|
this.g = O, this.b = y;
|
|
break;
|
|
case 1:
|
|
this.r = g, this.b = y;
|
|
break;
|
|
case 2:
|
|
this.r = y, this.b = O;
|
|
break;
|
|
case 3:
|
|
this.r = y, this.g = g;
|
|
break;
|
|
case 4:
|
|
this.r = O, this.g = y;
|
|
break;
|
|
case 5:
|
|
default:
|
|
this.g = y, this.b = g;
|
|
break;
|
|
}
|
|
}
|
|
fromHsvString(t) {
|
|
const r = wr(t, on);
|
|
this.fromHsv({
|
|
h: r[0],
|
|
s: r[1],
|
|
v: r[2],
|
|
a: r[3]
|
|
});
|
|
}
|
|
fromHslString(t) {
|
|
const r = wr(t, on);
|
|
this.fromHsl({
|
|
h: r[0],
|
|
s: r[1],
|
|
l: r[2],
|
|
a: r[3]
|
|
});
|
|
}
|
|
fromRgbString(t) {
|
|
const r = wr(t, (n, i) => (
|
|
// Convert percentage to number. e.g. 50% -> 128
|
|
i.includes("%") ? Pe(n / 100 * 255) : n
|
|
));
|
|
this.r = r[0], this.g = r[1], this.b = r[2], this.a = r[3];
|
|
}
|
|
}
|
|
var Xt = 2, sn = 0.16, Fo = 0.05, Yo = 0.05, Lo = 0.15, Un = 5, zn = 4, Vo = [{
|
|
index: 7,
|
|
amount: 15
|
|
}, {
|
|
index: 6,
|
|
amount: 25
|
|
}, {
|
|
index: 5,
|
|
amount: 30
|
|
}, {
|
|
index: 5,
|
|
amount: 45
|
|
}, {
|
|
index: 5,
|
|
amount: 65
|
|
}, {
|
|
index: 5,
|
|
amount: 85
|
|
}, {
|
|
index: 4,
|
|
amount: 90
|
|
}, {
|
|
index: 3,
|
|
amount: 95
|
|
}, {
|
|
index: 2,
|
|
amount: 97
|
|
}, {
|
|
index: 1,
|
|
amount: 98
|
|
}];
|
|
function cn(e, t, r) {
|
|
var n;
|
|
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - Xt * t : Math.round(e.h) + Xt * t : n = r ? Math.round(e.h) + Xt * t : Math.round(e.h) - Xt * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
}
|
|
function un(e, t, r) {
|
|
if (e.h === 0 && e.s === 0)
|
|
return e.s;
|
|
var n;
|
|
return r ? n = e.s - sn * t : t === zn ? n = e.s + sn : n = e.s + Fo * t, n > 1 && (n = 1), r && t === Un && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
|
|
}
|
|
function ln(e, t, r) {
|
|
var n;
|
|
return r ? n = e.v + Yo * t : n = e.v - Lo * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
|
|
}
|
|
function Bo(e) {
|
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new xt(e), i = n.toHsv(), a = Un; a > 0; a -= 1) {
|
|
var s = new xt({
|
|
h: cn(i, a, !0),
|
|
s: un(i, a, !0),
|
|
v: ln(i, a, !0)
|
|
});
|
|
r.push(s);
|
|
}
|
|
r.push(n);
|
|
for (var d = 1; d <= zn; d += 1) {
|
|
var f = new xt({
|
|
h: cn(i, d),
|
|
s: un(i, d),
|
|
v: ln(i, d)
|
|
});
|
|
r.push(f);
|
|
}
|
|
return t.theme === "dark" ? Vo.map(function(y) {
|
|
var g = y.index, O = y.amount;
|
|
return new xt(t.backgroundColor || "#141414").mix(r[g], O).toHexString();
|
|
}) : r.map(function(y) {
|
|
return y.toHexString();
|
|
});
|
|
}
|
|
var Mr = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
Mr.primary = Mr[5];
|
|
function dn(e, t) {
|
|
var r = Object.keys(e);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n = Object.getOwnPropertySymbols(e);
|
|
t && (n = n.filter(function(i) {
|
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
})), r.push.apply(r, n);
|
|
}
|
|
return r;
|
|
}
|
|
function rt(e) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
t % 2 ? dn(Object(r), !0).forEach(function(n) {
|
|
We(e, n, r[n]);
|
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dn(Object(r)).forEach(function(n) {
|
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
});
|
|
}
|
|
return e;
|
|
}
|
|
function Ho() {
|
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
}
|
|
function qo(e, t) {
|
|
if (!e)
|
|
return !1;
|
|
if (e.contains)
|
|
return e.contains(t);
|
|
for (var r = t; r; ) {
|
|
if (r === e)
|
|
return !0;
|
|
r = r.parentNode;
|
|
}
|
|
return !1;
|
|
}
|
|
var fn = "data-rc-order", hn = "data-rc-priority", Uo = "rc-util-key", _r = /* @__PURE__ */ new Map();
|
|
function Gn() {
|
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
return t ? t.startsWith("data-") ? t : "data-".concat(t) : Uo;
|
|
}
|
|
function Nr(e) {
|
|
if (e.attachTo)
|
|
return e.attachTo;
|
|
var t = document.querySelector("head");
|
|
return t || document.body;
|
|
}
|
|
function zo(e) {
|
|
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
}
|
|
function Ir(e) {
|
|
return Array.from((_r.get(e) || e).children).filter(function(t) {
|
|
return t.tagName === "STYLE";
|
|
});
|
|
}
|
|
function Xn(e) {
|
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
if (!Ho())
|
|
return null;
|
|
var r = t.csp, n = t.prepend, i = t.priority, a = i === void 0 ? 0 : i, s = zo(n), d = s === "prependQueue", f = document.createElement("style");
|
|
f.setAttribute(fn, s), d && a && f.setAttribute(hn, "".concat(a)), r != null && r.nonce && (f.nonce = r?.nonce), f.innerHTML = e;
|
|
var y = Nr(t), g = y.firstChild;
|
|
if (n) {
|
|
if (d) {
|
|
var O = (t.styles || Ir(y)).filter(function(l) {
|
|
if (!["prepend", "prependQueue"].includes(l.getAttribute(fn)))
|
|
return !1;
|
|
var p = Number(l.getAttribute(hn) || 0);
|
|
return a >= p;
|
|
});
|
|
if (O.length)
|
|
return y.insertBefore(f, O[O.length - 1].nextSibling), f;
|
|
}
|
|
y.insertBefore(f, g);
|
|
} else
|
|
y.appendChild(f);
|
|
return f;
|
|
}
|
|
function Go(e) {
|
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Nr(t);
|
|
return (t.styles || Ir(r)).find(function(n) {
|
|
return n.getAttribute(Gn(t)) === e;
|
|
});
|
|
}
|
|
function Xo(e, t) {
|
|
var r = _r.get(e);
|
|
if (!r || !qo(document, r)) {
|
|
var n = Xn("", t), i = n.parentNode;
|
|
_r.set(e, i), e.removeChild(n);
|
|
}
|
|
}
|
|
function Jo(e, t) {
|
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Nr(r), i = Ir(n), a = rt(rt({}, r), {}, {
|
|
styles: i
|
|
});
|
|
Xo(n, a);
|
|
var s = Go(t, a);
|
|
if (s) {
|
|
var d, f;
|
|
if ((d = a.csp) !== null && d !== void 0 && d.nonce && s.nonce !== ((f = a.csp) === null || f === void 0 ? void 0 : f.nonce)) {
|
|
var y;
|
|
s.nonce = (y = a.csp) === null || y === void 0 ? void 0 : y.nonce;
|
|
}
|
|
return s.innerHTML !== e && (s.innerHTML = e), s;
|
|
}
|
|
var g = Xn(e, a);
|
|
return g.setAttribute(Gn(a), t), g;
|
|
}
|
|
function Jn(e) {
|
|
var t;
|
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
}
|
|
function Qo(e) {
|
|
return Jn(e) instanceof ShadowRoot;
|
|
}
|
|
function Ko(e) {
|
|
return Qo(e) ? Jn(e) : null;
|
|
}
|
|
var kr = {}, Wr = [], Zo = function(t) {
|
|
Wr.push(t);
|
|
};
|
|
function es(e, t) {
|
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
var r = Wr.reduce(function(n, i) {
|
|
return i(n ?? "", "warning");
|
|
}, t);
|
|
r && console.error("Warning: ".concat(r));
|
|
}
|
|
}
|
|
function ts(e, t) {
|
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
var r = Wr.reduce(function(n, i) {
|
|
return i(n ?? "", "note");
|
|
}, t);
|
|
r && console.warn("Note: ".concat(r));
|
|
}
|
|
}
|
|
function rs() {
|
|
kr = {};
|
|
}
|
|
function Qn(e, t, r) {
|
|
!t && !kr[r] && (e(!1, r), kr[r] = !0);
|
|
}
|
|
function lr(e, t) {
|
|
Qn(es, e, t);
|
|
}
|
|
function ns(e, t) {
|
|
Qn(ts, e, t);
|
|
}
|
|
lr.preMessage = Zo;
|
|
lr.resetWarned = rs;
|
|
lr.noteOnce = ns;
|
|
function is(e) {
|
|
return e.replace(/-(.)/g, function(t, r) {
|
|
return r.toUpperCase();
|
|
});
|
|
}
|
|
function as(e, t) {
|
|
lr(e, "[@ant-design/icons] ".concat(t));
|
|
}
|
|
function mn(e) {
|
|
return mt(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (mt(e.icon) === "object" || typeof e.icon == "function");
|
|
}
|
|
function vn() {
|
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
return Object.keys(e).reduce(function(t, r) {
|
|
var n = e[r];
|
|
switch (r) {
|
|
case "class":
|
|
t.className = n, delete t.class;
|
|
break;
|
|
default:
|
|
delete t[r], t[is(r)] = n;
|
|
}
|
|
return t;
|
|
}, {});
|
|
}
|
|
function jr(e, t, r) {
|
|
return r ? /* @__PURE__ */ He.createElement(e.tag, rt(rt({
|
|
key: t
|
|
}, vn(e.attrs)), r), (e.children || []).map(function(n, i) {
|
|
return jr(n, "".concat(t, "-").concat(e.tag, "-").concat(i));
|
|
})) : /* @__PURE__ */ He.createElement(e.tag, rt({
|
|
key: t
|
|
}, vn(e.attrs)), (e.children || []).map(function(n, i) {
|
|
return jr(n, "".concat(t, "-").concat(e.tag, "-").concat(i));
|
|
}));
|
|
}
|
|
function Kn(e) {
|
|
return Bo(e)[0];
|
|
}
|
|
function Zn(e) {
|
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
}
|
|
var os = `
|
|
.anticon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: inherit;
|
|
font-style: normal;
|
|
line-height: 0;
|
|
text-align: center;
|
|
text-transform: none;
|
|
vertical-align: -0.125em;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.anticon > * {
|
|
line-height: 1;
|
|
}
|
|
|
|
.anticon svg {
|
|
display: inline-block;
|
|
}
|
|
|
|
.anticon::before {
|
|
display: none;
|
|
}
|
|
|
|
.anticon .anticon-icon {
|
|
display: block;
|
|
}
|
|
|
|
.anticon[tabindex] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anticon-spin::before,
|
|
.anticon-spin {
|
|
display: inline-block;
|
|
-webkit-animation: loadingCircle 1s infinite linear;
|
|
animation: loadingCircle 1s infinite linear;
|
|
}
|
|
|
|
@-webkit-keyframes loadingCircle {
|
|
100% {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes loadingCircle {
|
|
100% {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
`, ss = function(t) {
|
|
var r = Zi(Bn), n = r.csp, i = r.prefixCls, a = r.layer, s = os;
|
|
i && (s = s.replace(/anticon/g, i)), a && (s = "@layer ".concat(a, ` {
|
|
`).concat(s, `
|
|
}`)), ze(function() {
|
|
var d = t.current, f = Ko(d);
|
|
Jo(s, "@ant-design-icons", {
|
|
prepend: !a,
|
|
csp: n,
|
|
attachTo: f
|
|
});
|
|
}, []);
|
|
}, cs = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], $t = {
|
|
primaryColor: "#333",
|
|
secondaryColor: "#E6E6E6",
|
|
calculated: !1
|
|
};
|
|
function us(e) {
|
|
var t = e.primaryColor, r = e.secondaryColor;
|
|
$t.primaryColor = t, $t.secondaryColor = r || Kn(t), $t.calculated = !!r;
|
|
}
|
|
function ls() {
|
|
return rt({}, $t);
|
|
}
|
|
var Tt = function(t) {
|
|
var r = t.icon, n = t.className, i = t.onClick, a = t.style, s = t.primaryColor, d = t.secondaryColor, f = qn(t, cs), y = _e.useRef(), g = $t;
|
|
if (s && (g = {
|
|
primaryColor: s,
|
|
secondaryColor: d || Kn(s)
|
|
}), ss(y), as(mn(r), "icon should be icon definiton, but got ".concat(r)), !mn(r))
|
|
return null;
|
|
var O = r;
|
|
return O && typeof O.icon == "function" && (O = rt(rt({}, O), {}, {
|
|
icon: O.icon(g.primaryColor, g.secondaryColor)
|
|
})), jr(O.icon, "svg-".concat(O.name), rt(rt({
|
|
className: n,
|
|
onClick: i,
|
|
style: a,
|
|
"data-icon": O.name,
|
|
width: "1em",
|
|
height: "1em",
|
|
fill: "currentColor",
|
|
"aria-hidden": "true"
|
|
}, f), {}, {
|
|
ref: y
|
|
}));
|
|
};
|
|
Tt.displayName = "IconReact";
|
|
Tt.getTwoToneColors = ls;
|
|
Tt.setTwoToneColors = us;
|
|
function ei(e) {
|
|
var t = Zn(e), r = Hn(t, 2), n = r[0], i = r[1];
|
|
return Tt.setTwoToneColors({
|
|
primaryColor: n,
|
|
secondaryColor: i
|
|
});
|
|
}
|
|
function ds() {
|
|
var e = Tt.getTwoToneColors();
|
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
}
|
|
var fs = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
ei(Mr.primary);
|
|
var ot = /* @__PURE__ */ _e.forwardRef(function(e, t) {
|
|
var r = e.className, n = e.icon, i = e.spin, a = e.rotate, s = e.tabIndex, d = e.onClick, f = e.twoToneColor, y = qn(e, fs), g = _e.useContext(Bn), O = g.prefixCls, l = O === void 0 ? "anticon" : O, p = g.rootClassName, h = pt(p, l, We(We({}, "".concat(l, "-").concat(n.name), !!n.name), "".concat(l, "-spin"), !!i || n.name === "loading"), r), m = s;
|
|
m === void 0 && d && (m = -1);
|
|
var v = a ? {
|
|
msTransform: "rotate(".concat(a, "deg)"),
|
|
transform: "rotate(".concat(a, "deg)")
|
|
} : void 0, M = Zn(f), $ = Hn(M, 2), T = $[0], R = $[1];
|
|
return /* @__PURE__ */ _e.createElement("span", at({
|
|
role: "img",
|
|
"aria-label": n.name
|
|
}, y, {
|
|
ref: t,
|
|
tabIndex: m,
|
|
onClick: d,
|
|
className: h
|
|
}), /* @__PURE__ */ _e.createElement(Tt, {
|
|
icon: n,
|
|
primaryColor: T,
|
|
secondaryColor: R,
|
|
style: v
|
|
}));
|
|
});
|
|
ot.displayName = "AntdIcon";
|
|
ot.getTwoToneColor = ds;
|
|
ot.setTwoToneColor = ei;
|
|
var hs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z" } }] }, name: "arrow-right", theme: "outlined" }, ms = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: hs
|
|
}));
|
|
}, ti = /* @__PURE__ */ _e.forwardRef(ms);
|
|
process.env.NODE_ENV !== "production" && (ti.displayName = "ArrowRightOutlined");
|
|
var vs = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, gs = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: vs
|
|
}));
|
|
}, ri = /* @__PURE__ */ _e.forwardRef(gs);
|
|
process.env.NODE_ENV !== "production" && (ri.displayName = "CloseOutlined");
|
|
var ps = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z" } }] }, name: "delete", theme: "filled" }, bs = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: ps
|
|
}));
|
|
}, ni = /* @__PURE__ */ _e.forwardRef(bs);
|
|
process.env.NODE_ENV !== "production" && (ni.displayName = "DeleteFilled");
|
|
var ws = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, ys = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: ws
|
|
}));
|
|
}, ii = /* @__PURE__ */ _e.forwardRef(ys);
|
|
process.env.NODE_ENV !== "production" && (ii.displayName = "EyeOutlined");
|
|
var xs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, name: "reload", theme: "outlined" }, Os = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: xs
|
|
}));
|
|
}, ai = /* @__PURE__ */ _e.forwardRef(Os);
|
|
process.env.NODE_ENV !== "production" && (ai.displayName = "ReloadOutlined");
|
|
var Cs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, Ss = function(t, r) {
|
|
return /* @__PURE__ */ _e.createElement(ot, at({}, t, {
|
|
ref: r,
|
|
icon: Cs
|
|
}));
|
|
}, oi = /* @__PURE__ */ _e.forwardRef(Ss);
|
|
process.env.NODE_ENV !== "production" && (oi.displayName = "SearchOutlined");
|
|
const ec = He.forwardRef(({ placeholder: e, onSearch: t, onSearchChange: r, value: n }, i) => /* @__PURE__ */ w.jsx(
|
|
dt,
|
|
{
|
|
ref: i,
|
|
maxLength: 50,
|
|
value: n,
|
|
className: "searchDiv",
|
|
placeholder: e,
|
|
prefix: /* @__PURE__ */ w.jsx(oi, { style: { color: "#999" } }),
|
|
onPressEnter: t,
|
|
onChange: r
|
|
}
|
|
)), tc = ({ fieldState: e, ...t }) => {
|
|
const { value: r } = e, n = (i) => {
|
|
const a = /* @__PURE__ */ new Date();
|
|
return a.setDate(a.getDate() - 1), i && i.valueOf() <= a;
|
|
};
|
|
return /* @__PURE__ */ w.jsx(ar, { direction: "vertical", children: /* @__PURE__ */ w.jsx(
|
|
or,
|
|
{
|
|
...t,
|
|
value: r,
|
|
disabledDate: t.canSelectPast ? !1 : n,
|
|
format: "DD-MM-YYYY",
|
|
onChange: t.onChange,
|
|
inputReadOnly: !0
|
|
}
|
|
) });
|
|
};
|
|
var Kt = { exports: {} }, Ts = Kt.exports, gn;
|
|
function Es() {
|
|
return gn || (gn = 1, (function(e, t) {
|
|
(function(r, n) {
|
|
e.exports = n();
|
|
})(Ts, (function() {
|
|
var r = 1e3, n = 6e4, i = 36e5, a = "millisecond", s = "second", d = "minute", f = "hour", y = "day", g = "week", O = "month", l = "quarter", p = "year", h = "date", m = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
|
var A = ["th", "st", "nd", "rd"], P = I % 100;
|
|
return "[" + I + (A[(P - 20) % 10] || A[P] || A[0]) + "]";
|
|
} }, T = function(I, A, P) {
|
|
var W = String(I);
|
|
return !W || W.length >= A ? I : "" + Array(A + 1 - W.length).join(P) + I;
|
|
}, R = { s: T, z: function(I) {
|
|
var A = -I.utcOffset(), P = Math.abs(A), W = Math.floor(P / 60), D = P % 60;
|
|
return (A <= 0 ? "+" : "-") + T(W, 2, "0") + ":" + T(D, 2, "0");
|
|
}, m: function I(A, P) {
|
|
if (A.date() < P.date()) return -I(P, A);
|
|
var W = 12 * (P.year() - A.year()) + (P.month() - A.month()), D = A.clone().add(W, O), F = P - D < 0, x = A.clone().add(W + (F ? -1 : 1), O);
|
|
return +(-(W + (P - D) / (F ? D - x : x - D)) || 0);
|
|
}, a: function(I) {
|
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
|
}, p: function(I) {
|
|
return { M: O, y: p, w: g, d: y, D: h, h: f, m: d, s, ms: a, Q: l }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
|
}, u: function(I) {
|
|
return I === void 0;
|
|
} }, S = "en", X = {};
|
|
X[S] = $;
|
|
var q = "$isDayjsObject", ie = function(I) {
|
|
return I instanceof me || !(!I || !I[q]);
|
|
}, G = function I(A, P, W) {
|
|
var D;
|
|
if (!A) return S;
|
|
if (typeof A == "string") {
|
|
var F = A.toLowerCase();
|
|
X[F] && (D = F), P && (X[F] = P, D = F);
|
|
var x = A.split("-");
|
|
if (!D && x.length > 1) return I(x[0]);
|
|
} else {
|
|
var E = A.name;
|
|
X[E] = A, D = E;
|
|
}
|
|
return !W && D && (S = D), D || !W && S;
|
|
}, Y = function(I, A) {
|
|
if (ie(I)) return I.clone();
|
|
var P = typeof A == "object" ? A : {};
|
|
return P.date = I, P.args = arguments, new me(P);
|
|
}, z = R;
|
|
z.l = G, z.i = ie, z.w = function(I, A) {
|
|
return Y(I, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
};
|
|
var me = (function() {
|
|
function I(P) {
|
|
this.$L = G(P.locale, null, !0), this.parse(P), this.$x = this.$x || P.x || {}, this[q] = !0;
|
|
}
|
|
var A = I.prototype;
|
|
return A.parse = function(P) {
|
|
this.$d = (function(W) {
|
|
var D = W.date, F = W.utc;
|
|
if (D === null) return /* @__PURE__ */ new Date(NaN);
|
|
if (z.u(D)) return /* @__PURE__ */ new Date();
|
|
if (D instanceof Date) return new Date(D);
|
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
var x = D.match(v);
|
|
if (x) {
|
|
var E = x[2] - 1 || 0, V = (x[7] || "0").substring(0, 3);
|
|
return F ? new Date(Date.UTC(x[1], E, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, V)) : new Date(x[1], E, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, V);
|
|
}
|
|
}
|
|
return new Date(D);
|
|
})(P), this.init();
|
|
}, A.init = function() {
|
|
var P = this.$d;
|
|
this.$y = P.getFullYear(), this.$M = P.getMonth(), this.$D = P.getDate(), this.$W = P.getDay(), this.$H = P.getHours(), this.$m = P.getMinutes(), this.$s = P.getSeconds(), this.$ms = P.getMilliseconds();
|
|
}, A.$utils = function() {
|
|
return z;
|
|
}, A.isValid = function() {
|
|
return this.$d.toString() !== m;
|
|
}, A.isSame = function(P, W) {
|
|
var D = Y(P);
|
|
return this.startOf(W) <= D && D <= this.endOf(W);
|
|
}, A.isAfter = function(P, W) {
|
|
return Y(P) < this.startOf(W);
|
|
}, A.isBefore = function(P, W) {
|
|
return this.endOf(W) < Y(P);
|
|
}, A.$g = function(P, W, D) {
|
|
return z.u(P) ? this[W] : this.set(D, P);
|
|
}, A.unix = function() {
|
|
return Math.floor(this.valueOf() / 1e3);
|
|
}, A.valueOf = function() {
|
|
return this.$d.getTime();
|
|
}, A.startOf = function(P, W) {
|
|
var D = this, F = !!z.u(W) || W, x = z.p(P), E = function(te, J) {
|
|
var fe = z.w(D.$u ? Date.UTC(D.$y, J, te) : new Date(D.$y, J, te), D);
|
|
return F ? fe : fe.endOf(y);
|
|
}, V = function(te, J) {
|
|
return z.w(D.toDate()[te].apply(D.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), D);
|
|
}, B = this.$W, U = this.$M, _ = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
switch (x) {
|
|
case p:
|
|
return F ? E(1, 0) : E(31, 11);
|
|
case O:
|
|
return F ? E(1, U) : E(0, U + 1);
|
|
case g:
|
|
var K = this.$locale().weekStart || 0, Z = (B < K ? B + 7 : B) - K;
|
|
return E(F ? _ - Z : _ + (6 - Z), U);
|
|
case y:
|
|
case h:
|
|
return V(Q + "Hours", 0);
|
|
case f:
|
|
return V(Q + "Minutes", 1);
|
|
case d:
|
|
return V(Q + "Seconds", 2);
|
|
case s:
|
|
return V(Q + "Milliseconds", 3);
|
|
default:
|
|
return this.clone();
|
|
}
|
|
}, A.endOf = function(P) {
|
|
return this.startOf(P, !1);
|
|
}, A.$set = function(P, W) {
|
|
var D, F = z.p(P), x = "set" + (this.$u ? "UTC" : ""), E = (D = {}, D[y] = x + "Date", D[h] = x + "Date", D[O] = x + "Month", D[p] = x + "FullYear", D[f] = x + "Hours", D[d] = x + "Minutes", D[s] = x + "Seconds", D[a] = x + "Milliseconds", D)[F], V = F === y ? this.$D + (W - this.$W) : W;
|
|
if (F === O || F === p) {
|
|
var B = this.clone().set(h, 1);
|
|
B.$d[E](V), B.init(), this.$d = B.set(h, Math.min(this.$D, B.daysInMonth())).$d;
|
|
} else E && this.$d[E](V);
|
|
return this.init(), this;
|
|
}, A.set = function(P, W) {
|
|
return this.clone().$set(P, W);
|
|
}, A.get = function(P) {
|
|
return this[z.p(P)]();
|
|
}, A.add = function(P, W) {
|
|
var D, F = this;
|
|
P = Number(P);
|
|
var x = z.p(W), E = function(U) {
|
|
var _ = Y(F);
|
|
return z.w(_.date(_.date() + Math.round(U * P)), F);
|
|
};
|
|
if (x === O) return this.set(O, this.$M + P);
|
|
if (x === p) return this.set(p, this.$y + P);
|
|
if (x === y) return E(1);
|
|
if (x === g) return E(7);
|
|
var V = (D = {}, D[d] = n, D[f] = i, D[s] = r, D)[x] || 1, B = this.$d.getTime() + P * V;
|
|
return z.w(B, this);
|
|
}, A.subtract = function(P, W) {
|
|
return this.add(-1 * P, W);
|
|
}, A.format = function(P) {
|
|
var W = this, D = this.$locale();
|
|
if (!this.isValid()) return D.invalidDate || m;
|
|
var F = P || "YYYY-MM-DDTHH:mm:ssZ", x = z.z(this), E = this.$H, V = this.$m, B = this.$M, U = D.weekdays, _ = D.months, Q = D.meridiem, K = function(J, fe, N, xe) {
|
|
return J && (J[fe] || J(W, F)) || N[fe].slice(0, xe);
|
|
}, Z = function(J) {
|
|
return z.s(E % 12 || 12, J, "0");
|
|
}, te = Q || function(J, fe, N) {
|
|
var xe = J < 12 ? "AM" : "PM";
|
|
return N ? xe.toLowerCase() : xe;
|
|
};
|
|
return F.replace(M, (function(J, fe) {
|
|
return fe || (function(N) {
|
|
switch (N) {
|
|
case "YY":
|
|
return String(W.$y).slice(-2);
|
|
case "YYYY":
|
|
return z.s(W.$y, 4, "0");
|
|
case "M":
|
|
return B + 1;
|
|
case "MM":
|
|
return z.s(B + 1, 2, "0");
|
|
case "MMM":
|
|
return K(D.monthsShort, B, _, 3);
|
|
case "MMMM":
|
|
return K(_, B);
|
|
case "D":
|
|
return W.$D;
|
|
case "DD":
|
|
return z.s(W.$D, 2, "0");
|
|
case "d":
|
|
return String(W.$W);
|
|
case "dd":
|
|
return K(D.weekdaysMin, W.$W, U, 2);
|
|
case "ddd":
|
|
return K(D.weekdaysShort, W.$W, U, 3);
|
|
case "dddd":
|
|
return U[W.$W];
|
|
case "H":
|
|
return String(E);
|
|
case "HH":
|
|
return z.s(E, 2, "0");
|
|
case "h":
|
|
return Z(1);
|
|
case "hh":
|
|
return Z(2);
|
|
case "a":
|
|
return te(E, V, !0);
|
|
case "A":
|
|
return te(E, V, !1);
|
|
case "m":
|
|
return String(V);
|
|
case "mm":
|
|
return z.s(V, 2, "0");
|
|
case "s":
|
|
return String(W.$s);
|
|
case "ss":
|
|
return z.s(W.$s, 2, "0");
|
|
case "SSS":
|
|
return z.s(W.$ms, 3, "0");
|
|
case "Z":
|
|
return x;
|
|
}
|
|
return null;
|
|
})(J) || x.replace(":", "");
|
|
}));
|
|
}, A.utcOffset = function() {
|
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
}, A.diff = function(P, W, D) {
|
|
var F, x = this, E = z.p(W), V = Y(P), B = (V.utcOffset() - this.utcOffset()) * n, U = this - V, _ = function() {
|
|
return z.m(x, V);
|
|
};
|
|
switch (E) {
|
|
case p:
|
|
F = _() / 12;
|
|
break;
|
|
case O:
|
|
F = _();
|
|
break;
|
|
case l:
|
|
F = _() / 3;
|
|
break;
|
|
case g:
|
|
F = (U - B) / 6048e5;
|
|
break;
|
|
case y:
|
|
F = (U - B) / 864e5;
|
|
break;
|
|
case f:
|
|
F = U / i;
|
|
break;
|
|
case d:
|
|
F = U / n;
|
|
break;
|
|
case s:
|
|
F = U / r;
|
|
break;
|
|
default:
|
|
F = U;
|
|
}
|
|
return D ? F : z.a(F);
|
|
}, A.daysInMonth = function() {
|
|
return this.endOf(O).$D;
|
|
}, A.$locale = function() {
|
|
return X[this.$L];
|
|
}, A.locale = function(P, W) {
|
|
if (!P) return this.$L;
|
|
var D = this.clone(), F = G(P, W, !0);
|
|
return F && (D.$L = F), D;
|
|
}, A.clone = function() {
|
|
return z.w(this.$d, this);
|
|
}, A.toDate = function() {
|
|
return new Date(this.valueOf());
|
|
}, A.toJSON = function() {
|
|
return this.isValid() ? this.toISOString() : null;
|
|
}, A.toISOString = function() {
|
|
return this.$d.toISOString();
|
|
}, A.toString = function() {
|
|
return this.$d.toUTCString();
|
|
}, I;
|
|
})(), le = me.prototype;
|
|
return Y.prototype = le, [["$ms", a], ["$s", s], ["$m", d], ["$H", f], ["$W", y], ["$M", O], ["$y", p], ["$D", h]].forEach((function(I) {
|
|
le[I[1]] = function(A) {
|
|
return this.$g(A, I[0], I[1]);
|
|
};
|
|
})), Y.extend = function(I, A) {
|
|
return I.$i || (I(A, me, Y), I.$i = !0), Y;
|
|
}, Y.locale = G, Y.isDayjs = ie, Y.unix = function(I) {
|
|
return Y(1e3 * I);
|
|
}, Y.en = X[S], Y.Ls = X, Y.p = {}, Y;
|
|
}));
|
|
})(Kt)), Kt.exports;
|
|
}
|
|
var Ps = Es();
|
|
const Ue = /* @__PURE__ */ cr(Ps);
|
|
var Zt = { exports: {} }, Ms = Zt.exports, pn;
|
|
function _s() {
|
|
return pn || (pn = 1, (function(e, t) {
|
|
(function(r, n) {
|
|
e.exports = n();
|
|
})(Ms, (function() {
|
|
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, a = /\d\d/, s = /\d\d?/, d = /\d*[^-_:/,()\s\d]+/, f = {}, y = function(v) {
|
|
return (v = +v) + (v > 68 ? 1900 : 2e3);
|
|
}, g = function(v) {
|
|
return function(M) {
|
|
this[v] = +M;
|
|
};
|
|
}, O = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
|
|
(this.zone || (this.zone = {})).offset = (function(M) {
|
|
if (!M || M === "Z") return 0;
|
|
var $ = M.match(/([+-]|\d\d)/g), T = 60 * $[1] + (+$[2] || 0);
|
|
return T === 0 ? 0 : $[0] === "+" ? -T : T;
|
|
})(v);
|
|
}], l = function(v) {
|
|
var M = f[v];
|
|
return M && (M.indexOf ? M : M.s.concat(M.f));
|
|
}, p = function(v, M) {
|
|
var $, T = f.meridiem;
|
|
if (T) {
|
|
for (var R = 1; R <= 24; R += 1) if (v.indexOf(T(R, 0, M)) > -1) {
|
|
$ = R > 12;
|
|
break;
|
|
}
|
|
} else $ = v === (M ? "pm" : "PM");
|
|
return $;
|
|
}, h = { A: [d, function(v) {
|
|
this.afternoon = p(v, !1);
|
|
}], a: [d, function(v) {
|
|
this.afternoon = p(v, !0);
|
|
}], Q: [i, function(v) {
|
|
this.month = 3 * (v - 1) + 1;
|
|
}], S: [i, function(v) {
|
|
this.milliseconds = 100 * +v;
|
|
}], SS: [a, function(v) {
|
|
this.milliseconds = 10 * +v;
|
|
}], SSS: [/\d{3}/, function(v) {
|
|
this.milliseconds = +v;
|
|
}], s: [s, g("seconds")], ss: [s, g("seconds")], m: [s, g("minutes")], mm: [s, g("minutes")], H: [s, g("hours")], h: [s, g("hours")], HH: [s, g("hours")], hh: [s, g("hours")], D: [s, g("day")], DD: [a, g("day")], Do: [d, function(v) {
|
|
var M = f.ordinal, $ = v.match(/\d+/);
|
|
if (this.day = $[0], M) for (var T = 1; T <= 31; T += 1) M(T).replace(/\[|\]/g, "") === v && (this.day = T);
|
|
}], w: [s, g("week")], ww: [a, g("week")], M: [s, g("month")], MM: [a, g("month")], MMM: [d, function(v) {
|
|
var M = l("months"), $ = (l("monthsShort") || M.map((function(T) {
|
|
return T.slice(0, 3);
|
|
}))).indexOf(v) + 1;
|
|
if ($ < 1) throw new Error();
|
|
this.month = $ % 12 || $;
|
|
}], MMMM: [d, function(v) {
|
|
var M = l("months").indexOf(v) + 1;
|
|
if (M < 1) throw new Error();
|
|
this.month = M % 12 || M;
|
|
}], Y: [/[+-]?\d+/, g("year")], YY: [a, function(v) {
|
|
this.year = y(v);
|
|
}], YYYY: [/\d{4}/, g("year")], Z: O, ZZ: O };
|
|
function m(v) {
|
|
var M, $;
|
|
M = v, $ = f && f.formats;
|
|
for (var T = (v = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(Y, z, me) {
|
|
var le = me && me.toUpperCase();
|
|
return z || $[me] || r[me] || $[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, A, P) {
|
|
return A || P.slice(1);
|
|
}));
|
|
}))).match(n), R = T.length, S = 0; S < R; S += 1) {
|
|
var X = T[S], q = h[X], ie = q && q[0], G = q && q[1];
|
|
T[S] = G ? { regex: ie, parser: G } : X.replace(/^\[|\]$/g, "");
|
|
}
|
|
return function(Y) {
|
|
for (var z = {}, me = 0, le = 0; me < R; me += 1) {
|
|
var I = T[me];
|
|
if (typeof I == "string") le += I.length;
|
|
else {
|
|
var A = I.regex, P = I.parser, W = Y.slice(le), D = A.exec(W)[0];
|
|
P.call(z, D), Y = Y.replace(D, "");
|
|
}
|
|
}
|
|
return (function(F) {
|
|
var x = F.afternoon;
|
|
if (x !== void 0) {
|
|
var E = F.hours;
|
|
x ? E < 12 && (F.hours += 12) : E === 12 && (F.hours = 0), delete F.afternoon;
|
|
}
|
|
})(z), z;
|
|
};
|
|
}
|
|
return function(v, M, $) {
|
|
$.p.customParseFormat = !0, v && v.parseTwoDigitYear && (y = v.parseTwoDigitYear);
|
|
var T = M.prototype, R = T.parse;
|
|
T.parse = function(S) {
|
|
var X = S.date, q = S.utc, ie = S.args;
|
|
this.$u = q;
|
|
var G = ie[1];
|
|
if (typeof G == "string") {
|
|
var Y = ie[2] === !0, z = ie[3] === !0, me = Y || z, le = ie[2];
|
|
z && (le = ie[2]), f = this.$locale(), !Y && le && (f = $.Ls[le]), this.$d = (function(W, D, F, x) {
|
|
try {
|
|
if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * W);
|
|
var E = m(D)(W), V = E.year, B = E.month, U = E.day, _ = E.hours, Q = E.minutes, K = E.seconds, Z = E.milliseconds, te = E.zone, J = E.week, fe = /* @__PURE__ */ new Date(), N = U || (V || B ? 1 : fe.getDate()), xe = V || fe.getFullYear(), ke = 0;
|
|
V && !B || (ke = B > 0 ? B - 1 : fe.getMonth());
|
|
var Te, Ne = _ || 0, Xe = Q || 0, Fe = K || 0, je = Z || 0;
|
|
return te ? new Date(Date.UTC(xe, ke, N, Ne, Xe, Fe, je + 60 * te.offset * 1e3)) : F ? new Date(Date.UTC(xe, ke, N, Ne, Xe, Fe, je)) : (Te = new Date(xe, ke, N, Ne, Xe, Fe, je), J && (Te = x(Te).week(J).toDate()), Te);
|
|
} catch {
|
|
return /* @__PURE__ */ new Date("");
|
|
}
|
|
})(X, G, q, $), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), me && X != this.format(G) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
|
|
} else if (G instanceof Array) for (var I = G.length, A = 1; A <= I; A += 1) {
|
|
ie[1] = G[A - 1];
|
|
var P = $.apply(this, ie);
|
|
if (P.isValid()) {
|
|
this.$d = P.$d, this.$L = P.$L, this.init();
|
|
break;
|
|
}
|
|
A === I && (this.$d = /* @__PURE__ */ new Date(""));
|
|
}
|
|
else R.call(this, S);
|
|
};
|
|
};
|
|
}));
|
|
})(Zt)), Zt.exports;
|
|
}
|
|
var ks = _s();
|
|
const dr = /* @__PURE__ */ cr(ks);
|
|
Ue.extend(dr);
|
|
const rc = ({
|
|
onChange: e,
|
|
label: t,
|
|
isOnChange: r,
|
|
canSelectPast: n,
|
|
valueData: i
|
|
}) => {
|
|
const a = (s) => {
|
|
const d = Ue().startOf("day");
|
|
return n === void 0 ? !1 : n ? s && s > d : s && s < d;
|
|
};
|
|
return /* @__PURE__ */ w.jsx(ar, { direction: "vertical", children: /* @__PURE__ */ w.jsx(gt, { label: t, isOnChange: r, children: /* @__PURE__ */ w.jsx(
|
|
or,
|
|
{
|
|
style: { height: "49px" },
|
|
format: "DD-MM-YYYY",
|
|
value: i != null ? Ue(i, "YYYY-MM-DDTHH:mm:ss") : "",
|
|
disabledDate: a,
|
|
onChange: e,
|
|
inputReadOnly: !0
|
|
}
|
|
) }) });
|
|
};
|
|
Ue.extend(dr);
|
|
const nc = ({
|
|
onChange: e,
|
|
canSelectPast: t,
|
|
valueData: r,
|
|
disabled: n,
|
|
cancelFuture: i,
|
|
minDate: a,
|
|
dontallowfeature: s
|
|
}) => {
|
|
const d = (g) => {
|
|
var O = /* @__PURE__ */ new Date();
|
|
return O.setDate(O.getDate() + 1), g.valueOf() <= O.setDate(O.getDate() - 2);
|
|
}, f = (g) => g && g > Ue().endOf("day"), y = (g) => a ? g && g < Ue(a, "YYYY-MM-DDTHH:mm:ss").startOf("day") : !1;
|
|
return /* @__PURE__ */ w.jsx(ar, { direction: "vertical", children: /* @__PURE__ */ w.jsx(
|
|
or,
|
|
{
|
|
format: "DD-MM-YYYY",
|
|
value: r ? Ue(r, "YYYY-MM-DDTHH:mm:ss") : "",
|
|
disabledDate: (g) => s ? g && g > Ue().endOf("day") : t ? i && f(g) || y(g) : d(g) || y(g),
|
|
disabled: n,
|
|
onChange: e,
|
|
inputReadOnly: !0
|
|
}
|
|
) });
|
|
};
|
|
Ue.extend(dr);
|
|
const ic = ({ label: e, isOnChange: t, onChange: r, valueData: n }) => /* @__PURE__ */ w.jsx("div", { className: "example", children: /* @__PURE__ */ w.jsx(gt, { label: e, isOnChange: t, children: /* @__PURE__ */ w.jsx(
|
|
jn,
|
|
{
|
|
className: "TimePickerDiv",
|
|
use12Hours: !0,
|
|
format: "h:mm a",
|
|
onChange: r,
|
|
value: n != null ? Ue(n, "HH:mm:ss") : "",
|
|
inputReadOnly: !0
|
|
}
|
|
) }) });
|
|
Ue.extend(dr);
|
|
const ac = ({ onChange: e, valueData: t }) => /* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(
|
|
jn,
|
|
{
|
|
use12Hours: !0,
|
|
format: "h:mm a",
|
|
onChange: e,
|
|
value: t != null ? Ue(t, "HH:mm:ss") : "",
|
|
inputReadOnly: !0
|
|
}
|
|
) }), oc = ({ ...e }) => {
|
|
const [t, r] = ue(e?.defaultValue || ""), { TextArea: n } = dt;
|
|
ze(() => {
|
|
r(e?.defaultValue);
|
|
}, [e?.defaultValue]);
|
|
const { onChange: i, isOnChange: a, onBlur: s, label: d, width: f = !1, ...y } = e;
|
|
return /* @__PURE__ */ w.jsx("div", { className: f ? "" : "example", style: { width: f ? "100%" : "auto" }, children: /* @__PURE__ */ w.jsx(gt, { label: d, value: t, isOnChange: a, children: /* @__PURE__ */ w.jsx(
|
|
n,
|
|
{
|
|
...y,
|
|
onChange: (g) => {
|
|
r(g?.target?.value), i && i(g);
|
|
},
|
|
onBlur: (g) => {
|
|
s && s(g);
|
|
}
|
|
}
|
|
) }) });
|
|
}, sc = ({ ...e }) => {
|
|
const [t, r] = ue(""), { onChange: n, isOnChange: i, onBlur: a, label: s, ...d } = e;
|
|
return /* @__PURE__ */ w.jsx(
|
|
"div",
|
|
{
|
|
className: "CustomInputField",
|
|
style: { marginLeft: "-40px", width: "70px", fontSize: "14px" },
|
|
children: /* @__PURE__ */ w.jsx(
|
|
gt,
|
|
{
|
|
label: s,
|
|
value: t,
|
|
isOnChange: i,
|
|
style: { width: "12px !important" },
|
|
children: /* @__PURE__ */ w.jsx(
|
|
dt,
|
|
{
|
|
...d,
|
|
onChange: (f) => {
|
|
r(f?.target?.value), n && n(f);
|
|
},
|
|
onBlur: (f) => {
|
|
a && a(f);
|
|
},
|
|
autoComplete: "Off"
|
|
}
|
|
)
|
|
}
|
|
)
|
|
}
|
|
);
|
|
}, cc = ({ ...e }) => {
|
|
const [t, r] = ue(""), {
|
|
onChange: n,
|
|
isOnChange: i,
|
|
label: a,
|
|
valueData: s,
|
|
...d
|
|
} = e;
|
|
return /* @__PURE__ */ w.jsx("div", { className: "example", children: /* @__PURE__ */ w.jsx(gt, { label: a, value: t, isOnChange: i, children: /* @__PURE__ */ w.jsx(
|
|
dt,
|
|
{
|
|
...d,
|
|
onChange: (f) => {
|
|
r(f?.target?.value), n && n(f);
|
|
}
|
|
}
|
|
) }) });
|
|
}, uc = ({ fieldState: e, style: t, ...r }) => {
|
|
const {
|
|
field: n,
|
|
onBlur: i,
|
|
initialValue: a,
|
|
forwardedRef: s,
|
|
onClickFunction: d,
|
|
className: f,
|
|
onSelectFuntion: y,
|
|
content: g,
|
|
Header: O,
|
|
defaultSelect: l,
|
|
disabled: p,
|
|
...h
|
|
} = r, [m, v] = ue(l), M = (T) => {
|
|
v(T?.target?.value), y && y(T?.target?.value);
|
|
}, $ = (T) => {
|
|
d && d(T?.target?.value);
|
|
};
|
|
return ze(() => {
|
|
v(l);
|
|
}, [r]), /* @__PURE__ */ w.jsxs("div", { children: [
|
|
/* @__PURE__ */ w.jsx("p", { style: { paddingBottom: "10px", fontWeight: "500" }, children: O }),
|
|
/* @__PURE__ */ w.jsx(Ct.Group, { onChange: M, value: m, children: g?.map((T, R) => /* @__PURE__ */ w.jsx(
|
|
Ct,
|
|
{
|
|
value: T.value,
|
|
onClick: (S) => $(S),
|
|
disabled: p || !1,
|
|
children: T.label
|
|
},
|
|
R
|
|
)) })
|
|
] });
|
|
}, lc = ({ faClass: e, style: t, ...r }) => {
|
|
const { onChange: n, onBlur: i, ...a } = r;
|
|
return /* @__PURE__ */ w.jsx(
|
|
Ct,
|
|
{
|
|
...a,
|
|
name: r.props.name,
|
|
value: r.props.value,
|
|
onChange: (s) => {
|
|
n && n(s);
|
|
},
|
|
onBlur: (s) => {
|
|
i && i(s);
|
|
},
|
|
children: r.props.label
|
|
}
|
|
);
|
|
}, dc = ({ defaultChecked: e, functionName: t }) => /* @__PURE__ */ w.jsx(Dn, { defaultChecked: e, onChange: t }), js = sr.Group, fc = ({
|
|
ListOfCheckBox: e,
|
|
defaultCheckedList: t
|
|
}) => {
|
|
const r = e, [n, i] = ue(t), [a, s] = ue(!0), [d, f] = ue(!1), y = (O) => {
|
|
i(O), s(!!O.length && O.length < r.length), f(O.length === r.length);
|
|
}, g = (O) => {
|
|
i(O.target.checked ? r : []), s(!1), f(O.target.checked);
|
|
};
|
|
return /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
/* @__PURE__ */ w.jsx(
|
|
sr,
|
|
{
|
|
indeterminate: a,
|
|
onChange: g,
|
|
checked: d,
|
|
children: "Check all"
|
|
}
|
|
),
|
|
/* @__PURE__ */ w.jsx(Rn, {}),
|
|
/* @__PURE__ */ w.jsx(
|
|
js,
|
|
{
|
|
options: r,
|
|
value: n,
|
|
onChange: y
|
|
}
|
|
)
|
|
] });
|
|
}, hc = ({
|
|
options: e,
|
|
onChangeFunction: t,
|
|
isOnchanges: r,
|
|
className: n,
|
|
defaultValue: i,
|
|
disabled: a,
|
|
onSearch: s,
|
|
onSearchChange: d,
|
|
...f
|
|
}) => {
|
|
const [y, g] = ue(""), [O, l] = ue(r), p = async () => {
|
|
await l(!0);
|
|
}, {
|
|
field: h,
|
|
onChange: m,
|
|
label: v,
|
|
onBlur: M,
|
|
forwardedRef: $,
|
|
required: T,
|
|
valueData: R,
|
|
...S
|
|
} = f;
|
|
return /* @__PURE__ */ w.jsx(gt, { label: v, value: y, isOnChange: O, children: /* @__PURE__ */ w.jsx(
|
|
Rr,
|
|
{
|
|
showSearch: !0,
|
|
style: {
|
|
width: 220
|
|
},
|
|
defaultValue: i || null,
|
|
optionFilterProp: "children",
|
|
filterOption: (X, q) => (q?.label ?? "")?.includes(X),
|
|
filterSort: (X, q) => (X?.label ?? "")?.toLowerCase()?.localeCompare((q?.label ?? "")?.toLowerCase()),
|
|
value: R,
|
|
onChange: (X) => t(X),
|
|
onSelect: (X) => p(),
|
|
options: e,
|
|
className: pt(` ${n}`),
|
|
disabled: !!a
|
|
}
|
|
) });
|
|
}, Ds = ({
|
|
messageType: e,
|
|
messageData: t,
|
|
duration: r,
|
|
onComplete: n
|
|
}) => {
|
|
const [i, a] = ta.useMessage();
|
|
return ze(() => {
|
|
e && i.open({
|
|
type: e,
|
|
content: t,
|
|
duration: r || 3
|
|
}).then(() => {
|
|
n && n();
|
|
});
|
|
}, [e]), /* @__PURE__ */ w.jsx(w.Fragment, { children: a });
|
|
}, yr = ({ children: e, title: t, isMobile: r, placement: n, onClick: i }) => r ? e : /* @__PURE__ */ w.jsx(ra, { title: t, placement: n, onClick: i, children: e });
|
|
var H = {}, Wt = { exports: {} }, Rs = Wt.exports, bn;
|
|
function As() {
|
|
return bn || (bn = 1, (function(e, t) {
|
|
(function(r, n) {
|
|
var i = "1.0.41", a = "", s = "?", d = "function", f = "undefined", y = "object", g = "string", O = "major", l = "model", p = "name", h = "type", m = "vendor", v = "version", M = "architecture", $ = "console", T = "mobile", R = "tablet", S = "smarttv", X = "wearable", q = "embedded", ie = 500, G = "Amazon", Y = "Apple", z = "ASUS", me = "BlackBerry", le = "Browser", I = "Chrome", A = "Edge", P = "Firefox", W = "Google", D = "Honor", F = "Huawei", x = "Lenovo", E = "LG", V = "Microsoft", B = "Motorola", U = "Nvidia", _ = "OnePlus", Q = "Opera", K = "OPPO", Z = "Samsung", te = "Sharp", J = "Sony", fe = "Xiaomi", N = "Zebra", xe = "Facebook", ke = "Chromium OS", Te = "Mac OS", Ne = " Browser", Xe = function(ae, de) {
|
|
var ne = {};
|
|
for (var ge in ae)
|
|
de[ge] && de[ge].length % 2 === 0 ? ne[ge] = de[ge].concat(ae[ge]) : ne[ge] = ae[ge];
|
|
return ne;
|
|
}, Fe = function(ae) {
|
|
for (var de = {}, ne = 0; ne < ae.length; ne++)
|
|
de[ae[ne].toUpperCase()] = ae[ne];
|
|
return de;
|
|
}, je = function(ae, de) {
|
|
return typeof ae === g ? Je(de).indexOf(Je(ae)) !== -1 : !1;
|
|
}, Je = function(ae) {
|
|
return ae.toLowerCase();
|
|
}, bt = function(ae) {
|
|
return typeof ae === g ? ae.replace(/[^\d\.]/g, a).split(".")[0] : n;
|
|
}, Qe = function(ae, de) {
|
|
if (typeof ae === g)
|
|
return ae = ae.replace(/^\s\s*/, a), typeof de === f ? ae : ae.substring(0, ie);
|
|
}, Ke = function(ae, de) {
|
|
for (var ne = 0, ge, Ye, Me, he, ee, Re; ne < de.length && !ee; ) {
|
|
var Ve = de[ne], nt = de[ne + 1];
|
|
for (ge = Ye = 0; ge < Ve.length && !ee && Ve[ge]; )
|
|
if (ee = Ve[ge++].exec(ae), ee)
|
|
for (Me = 0; Me < nt.length; Me++)
|
|
Re = ee[++Ye], he = nt[Me], typeof he === y && he.length > 0 ? he.length === 2 ? typeof he[1] == d ? this[he[0]] = he[1].call(this, Re) : this[he[0]] = he[1] : he.length === 3 ? typeof he[1] === d && !(he[1].exec && he[1].test) ? this[he[0]] = Re ? he[1].call(this, Re, he[2]) : n : this[he[0]] = Re ? Re.replace(he[1], he[2]) : n : he.length === 4 && (this[he[0]] = Re ? he[3].call(this, Re.replace(he[1], he[2])) : n) : this[he] = Re || n;
|
|
ne += 2;
|
|
}
|
|
}, Ze = function(ae, de) {
|
|
for (var ne in de)
|
|
if (typeof de[ne] === y && de[ne].length > 0) {
|
|
for (var ge = 0; ge < de[ne].length; ge++)
|
|
if (je(de[ne][ge], ae))
|
|
return ne === s ? n : ne;
|
|
} else if (je(de[ne], ae))
|
|
return ne === s ? n : ne;
|
|
return de.hasOwnProperty("*") ? de["*"] : ae;
|
|
}, ft = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, st = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, ct = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [v, [p, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [v, [p, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [p, v], [/opios[\/ ]+([\w\.]+)/i], [v, [p, Q + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [v, [p, Q + " GX"]], [/\bopr\/([\w\.]+)/i], [v, [p, Q]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [v, [p, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [v, [p, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [p, v], [/quark(?:pc)?\/([-\w\.]+)/i], [v, [p, "Quark"]], [/\bddg\/([\w\.]+)/i], [v, [p, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [v, [p, "UC" + le]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [v, [p, "WeChat"]], [/konqueror\/([\w\.]+)/i], [v, [p, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [v, [p, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [v, [p, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [v, [p, "Smart Lenovo " + le]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + le], v], [/\bfocus\/([\w\.]+)/i], [v, [p, P + " Focus"]], [/\bopt\/([\w\.]+)/i], [v, [p, Q + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [v, [p, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [v, [p, "Dolphin"]], [/coast\/([\w\.]+)/i], [v, [p, Q + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [v, [p, "MIUI" + Ne]], [/fxios\/([\w\.-]+)/i], [v, [p, P]], [/\bqihoobrowser\/?([\w\.]*)/i], [v, [p, "360"]], [/\b(qq)\/([\w\.]+)/i], [[p, /(.+)/, "$1Browser"], v], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1" + Ne], v], [/samsungbrowser\/([\w\.]+)/i], [v, [p, Z + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [v, [p, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[p, "Sogou Mobile"], v], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [p, v], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [p], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [v, p], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[p, xe], v], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [p, v], [/\bgsa\/([\w\.]+) .*safari\//i], [v, [p, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [v, [p, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [v, [p, I + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[p, I + " WebView"], v], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [v, [p, "Android " + le]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [p, v], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [v, [p, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [v, p], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [p, [v, Ze, ft]], [/(webkit|khtml)\/([\w\.]+)/i], [p, v], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[p, "Netscape"], v], [/(wolvic|librewolf)\/([\w\.]+)/i], [p, v], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [v, [p, P + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [p, [v, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [p, [v, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[M, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[M, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[M, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[M, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[M, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[M, /ower/, a, Je]], [/ sun4\w[;\)]/i], [[M, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[M, Je]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [m, Z], [h, R]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, Z], [h, T]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, Y], [h, T]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, Y], [h, R]], [/(macintosh);/i], [l, [m, Y]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, te], [h, T]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [l, [m, D], [h, R]], [/honor([-\w ]+)[;\)]/i], [l, [m, D], [h, T]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [l, [m, F], [h, R]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, F], [h, T]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[l, /_/g, " "], [m, fe], [h, R]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[l, /_/g, " "], [m, fe], [h, T]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, K], [h, T]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [l, [m, Ze, { OnePlus: ["304", "403", "203"], "*": K }], [h, R]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, T]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, T]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, B], [h, T]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, B], [h, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, E], [h, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, E], [h, T]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [l, [m, x], [h, R]], [/(nokia) (t[12][01])/i], [m, l, [h, R]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[l, /_/g, " "], [h, T], [m, "Nokia"]], [/(pixel (c|tablet))\b/i], [l, [m, W], [h, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, W], [h, T]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [m, J], [h, T]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, J], [h, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, _], [h, T]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, G], [h, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, G], [h, T]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, me], [h, T]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, z], [h, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, z], [h, T]], [/(nexus 9)/i], [l, [m, "HTC"], [h, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, T]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [l, [m, "TCL"], [h, R]], [/(itel) ((\w+))/i], [[m, Je], l, [h, Ze, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, T]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [m, "Ulefone"], [h, T]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [l, [m, "Energizer"], [h, T]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [l, [m, "Cat"], [h, T]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [l, [m, "Smartfren"], [h, T]], [/droid.+; (a(?:015|06[35]|142p?))/i], [l, [m, "Nothing"], [h, T]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [l, [m, "Archos"], [h, R]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [l, [m, "Archos"], [h, T]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [m, l, [h, R]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, T]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, R]], [/(surface duo)/i], [l, [m, V], [h, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, T]], [/(u304aa)/i], [l, [m, "AT&T"], [h, T]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, T]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, R]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, R]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, R]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, R]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, R]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, T]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, T]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, R]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, R]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, T]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, T]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, T]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, R]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, R]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, R]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [l, [m, U], [h, R]], [/(sprint) (\w+)/i], [m, l, [h, T]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, V], [h, T]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, N], [h, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, N], [h, T]], [/smart-tv.+(samsung)/i], [m, [h, S]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, Z], [h, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, E], [h, S]], [/(apple) ?tv/i], [m, [l, Y + " TV"], [h, S]], [/crkey/i], [[l, I + "cast"], [m, W], [h, S]], [/droid.+aft(\w+)( bui|\))/i], [l, [m, G], [h, S]], [/(shield \w+ tv)/i], [l, [m, U], [h, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, te], [h, S]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, J], [h, S]], [/(mi(tv|box)-?\w+) bui/i], [l, [m, fe], [h, S]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, Qe], [l, Qe], [h, S]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [l, [h, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, $]], [/droid.+; (shield)( bui|\))/i], [l, [m, U], [h, $]], [/(playstation \w+)/i], [l, [m, J], [h, $]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, V], [h, $]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [l, [m, Z], [h, X]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [m, l, [h, X]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [l, [m, K], [h, X]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, Y], [h, X]], [/(opwwe\d{3})/i], [l, [m, _], [h, X]], [/(moto 360)/i], [l, [m, B], [h, X]], [/(smartwatch 3)/i], [l, [m, J], [h, X]], [/(g watch r)/i], [l, [m, E], [h, X]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, N], [h, X]], [/droid.+; (glass) \d/i], [l, [m, W], [h, X]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, l, [h, X]], [/; (quest( \d| pro)?)/i], [l, [m, xe], [h, X]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, q]], [/(aeobc)\b/i], [l, [m, G], [h, q]], [/(homepod).+mac os/i], [l, [m, Y], [h, q]], [/windows iot/i], [[h, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [h, T]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, T]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [v, [p, A + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [p, v], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [v, [p, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [p, v], [/ladybird\//i], [[p, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [v, p]], os: [[/microsoft (windows) (vista|xp)/i], [p, v], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [p, [v, Ze, st]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[v, Ze, st], [p, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[v, /_/g, "."], [p, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[p, Te], [v, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [v, p], [/(ubuntu) ([\w\.]+) like android/i], [[p, /(.+)/, "$1 Touch"], v], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [p, v], [/\(bb(10);/i], [v, [p, me]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [v, [p, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [v, [p, P + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [v, [p, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [v, [p, "watchOS"]], [/crkey\/([\d\.]+)/i], [v, [p, I + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[p, ke], v], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [p, v], [/(sunos) ?([\w\.\d]*)/i], [[p, "Solaris"], v], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [p, v]] }, De = function(ae, de) {
|
|
if (typeof ae === y && (de = ae, ae = n), !(this instanceof De))
|
|
return new De(ae, de).getResult();
|
|
var ne = typeof r !== f && r.navigator ? r.navigator : n, ge = ae || (ne && ne.userAgent ? ne.userAgent : a), Ye = ne && ne.userAgentData ? ne.userAgentData : n, Me = de ? Xe(ct, de) : ct, he = ne && ne.userAgent == ge;
|
|
return this.getBrowser = function() {
|
|
var ee = {};
|
|
return ee[p] = n, ee[v] = n, Ke.call(ee, ge, Me.browser), ee[O] = bt(ee[v]), he && ne && ne.brave && typeof ne.brave.isBrave == d && (ee[p] = "Brave"), ee;
|
|
}, this.getCPU = function() {
|
|
var ee = {};
|
|
return ee[M] = n, Ke.call(ee, ge, Me.cpu), ee;
|
|
}, this.getDevice = function() {
|
|
var ee = {};
|
|
return ee[m] = n, ee[l] = n, ee[h] = n, Ke.call(ee, ge, Me.device), he && !ee[h] && Ye && Ye.mobile && (ee[h] = T), he && ee[l] == "Macintosh" && ne && typeof ne.standalone !== f && ne.maxTouchPoints && ne.maxTouchPoints > 2 && (ee[l] = "iPad", ee[h] = R), ee;
|
|
}, this.getEngine = function() {
|
|
var ee = {};
|
|
return ee[p] = n, ee[v] = n, Ke.call(ee, ge, Me.engine), ee;
|
|
}, this.getOS = function() {
|
|
var ee = {};
|
|
return ee[p] = n, ee[v] = n, Ke.call(ee, ge, Me.os), he && !ee[p] && Ye && Ye.platform && Ye.platform != "Unknown" && (ee[p] = Ye.platform.replace(/chrome os/i, ke).replace(/macos/i, Te)), ee;
|
|
}, this.getResult = function() {
|
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
}, this.getUA = function() {
|
|
return ge;
|
|
}, this.setUA = function(ee) {
|
|
return ge = typeof ee === g && ee.length > ie ? Qe(ee, ie) : ee, this;
|
|
}, this.setUA(ge), this;
|
|
};
|
|
De.VERSION = i, De.BROWSER = Fe([p, v, O]), De.CPU = Fe([M]), De.DEVICE = Fe([l, m, h, $, T, S, R, X, q]), De.ENGINE = De.OS = Fe([p, v]), e.exports && (t = e.exports = De), t.UAParser = De;
|
|
var qe = typeof r !== f && (r.jQuery || r.Zepto);
|
|
if (qe && !qe.ua) {
|
|
var et = new De();
|
|
qe.ua = et.getResult(), qe.ua.get = function() {
|
|
return et.getUA();
|
|
}, qe.ua.set = function(ae) {
|
|
et.setUA(ae);
|
|
var de = et.getResult();
|
|
for (var ne in de)
|
|
qe.ua[ne] = de[ne];
|
|
};
|
|
}
|
|
})(typeof window == "object" ? window : Rs);
|
|
})(Wt, Wt.exports)), Wt.exports;
|
|
}
|
|
var wn;
|
|
function Ns() {
|
|
if (wn) return H;
|
|
wn = 1, Object.defineProperty(H, "__esModule", { value: !0 });
|
|
function e(b) {
|
|
return b && typeof b == "object" && "default" in b ? b.default : b;
|
|
}
|
|
var t = He, r = e(t), n = As(), i = new n(), a = i.getBrowser(), s = i.getCPU(), d = i.getDevice(), f = i.getEngine(), y = i.getOS(), g = i.getUA(), O = function(o) {
|
|
return i.setUA(o);
|
|
}, l = function(o) {
|
|
if (!o) {
|
|
console.error("No userAgent string was provided");
|
|
return;
|
|
}
|
|
var c = new n(o);
|
|
return {
|
|
UA: c,
|
|
browser: c.getBrowser(),
|
|
cpu: c.getCPU(),
|
|
device: c.getDevice(),
|
|
engine: c.getEngine(),
|
|
os: c.getOS(),
|
|
ua: c.getUA(),
|
|
setUserAgent: function(j) {
|
|
return c.setUA(j);
|
|
}
|
|
};
|
|
}, p = /* @__PURE__ */ Object.freeze({
|
|
ClientUAInstance: i,
|
|
browser: a,
|
|
cpu: s,
|
|
device: d,
|
|
engine: f,
|
|
os: y,
|
|
ua: g,
|
|
setUa: O,
|
|
parseUserAgent: l
|
|
});
|
|
function h(b, o) {
|
|
var c = Object.keys(b);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var C = Object.getOwnPropertySymbols(b);
|
|
o && (C = C.filter(function(j) {
|
|
return Object.getOwnPropertyDescriptor(b, j).enumerable;
|
|
})), c.push.apply(c, C);
|
|
}
|
|
return c;
|
|
}
|
|
function m(b) {
|
|
for (var o = 1; o < arguments.length; o++) {
|
|
var c = arguments[o] != null ? arguments[o] : {};
|
|
o % 2 ? h(Object(c), !0).forEach(function(C) {
|
|
R(b, C, c[C]);
|
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(b, Object.getOwnPropertyDescriptors(c)) : h(Object(c)).forEach(function(C) {
|
|
Object.defineProperty(b, C, Object.getOwnPropertyDescriptor(c, C));
|
|
});
|
|
}
|
|
return b;
|
|
}
|
|
function v(b) {
|
|
"@babel/helpers - typeof";
|
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? v = function(o) {
|
|
return typeof o;
|
|
} : v = function(o) {
|
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
}, v(b);
|
|
}
|
|
function M(b, o) {
|
|
if (!(b instanceof o))
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
function $(b, o) {
|
|
for (var c = 0; c < o.length; c++) {
|
|
var C = o[c];
|
|
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(b, C.key, C);
|
|
}
|
|
}
|
|
function T(b, o, c) {
|
|
return o && $(b.prototype, o), b;
|
|
}
|
|
function R(b, o, c) {
|
|
return o in b ? Object.defineProperty(b, o, {
|
|
value: c,
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0
|
|
}) : b[o] = c, b;
|
|
}
|
|
function S() {
|
|
return S = Object.assign || function(b) {
|
|
for (var o = 1; o < arguments.length; o++) {
|
|
var c = arguments[o];
|
|
for (var C in c)
|
|
Object.prototype.hasOwnProperty.call(c, C) && (b[C] = c[C]);
|
|
}
|
|
return b;
|
|
}, S.apply(this, arguments);
|
|
}
|
|
function X(b, o) {
|
|
if (typeof o != "function" && o !== null)
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
b.prototype = Object.create(o && o.prototype, {
|
|
constructor: {
|
|
value: b,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), o && ie(b, o);
|
|
}
|
|
function q(b) {
|
|
return q = Object.setPrototypeOf ? Object.getPrototypeOf : function(c) {
|
|
return c.__proto__ || Object.getPrototypeOf(c);
|
|
}, q(b);
|
|
}
|
|
function ie(b, o) {
|
|
return ie = Object.setPrototypeOf || function(C, j) {
|
|
return C.__proto__ = j, C;
|
|
}, ie(b, o);
|
|
}
|
|
function G(b, o) {
|
|
if (b == null) return {};
|
|
var c = {}, C = Object.keys(b), j, ce;
|
|
for (ce = 0; ce < C.length; ce++)
|
|
j = C[ce], !(o.indexOf(j) >= 0) && (c[j] = b[j]);
|
|
return c;
|
|
}
|
|
function Y(b, o) {
|
|
if (b == null) return {};
|
|
var c = G(b, o), C, j;
|
|
if (Object.getOwnPropertySymbols) {
|
|
var ce = Object.getOwnPropertySymbols(b);
|
|
for (j = 0; j < ce.length; j++)
|
|
C = ce[j], !(o.indexOf(C) >= 0) && Object.prototype.propertyIsEnumerable.call(b, C) && (c[C] = b[C]);
|
|
}
|
|
return c;
|
|
}
|
|
function z(b) {
|
|
if (b === void 0)
|
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
return b;
|
|
}
|
|
function me(b, o) {
|
|
if (o && (typeof o == "object" || typeof o == "function"))
|
|
return o;
|
|
if (o !== void 0)
|
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
return z(b);
|
|
}
|
|
function le(b, o) {
|
|
return I(b) || A(b, o) || P(b, o) || D();
|
|
}
|
|
function I(b) {
|
|
if (Array.isArray(b)) return b;
|
|
}
|
|
function A(b, o) {
|
|
var c = b == null ? null : typeof Symbol < "u" && b[Symbol.iterator] || b["@@iterator"];
|
|
if (c != null) {
|
|
var C = [], j = !0, ce = !1, Se, Le;
|
|
try {
|
|
for (c = c.call(b); !(j = (Se = c.next()).done) && (C.push(Se.value), !(o && C.length === o)); j = !0)
|
|
;
|
|
} catch (Ut) {
|
|
ce = !0, Le = Ut;
|
|
} finally {
|
|
try {
|
|
!j && c.return != null && c.return();
|
|
} finally {
|
|
if (ce) throw Le;
|
|
}
|
|
}
|
|
return C;
|
|
}
|
|
}
|
|
function P(b, o) {
|
|
if (b) {
|
|
if (typeof b == "string") return W(b, o);
|
|
var c = Object.prototype.toString.call(b).slice(8, -1);
|
|
if (c === "Object" && b.constructor && (c = b.constructor.name), c === "Map" || c === "Set") return Array.from(b);
|
|
if (c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)) return W(b, o);
|
|
}
|
|
}
|
|
function W(b, o) {
|
|
(o == null || o > b.length) && (o = b.length);
|
|
for (var c = 0, C = new Array(o); c < o; c++) C[c] = b[c];
|
|
return C;
|
|
}
|
|
function D() {
|
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
}
|
|
var F = {
|
|
Mobile: "mobile",
|
|
Tablet: "tablet",
|
|
SmartTv: "smarttv",
|
|
Console: "console",
|
|
Wearable: "wearable",
|
|
Embedded: "embedded",
|
|
Browser: void 0
|
|
}, x = {
|
|
Chrome: "Chrome",
|
|
Firefox: "Firefox",
|
|
Opera: "Opera",
|
|
Yandex: "Yandex",
|
|
Safari: "Safari",
|
|
InternetExplorer: "Internet Explorer",
|
|
Edge: "Edge",
|
|
Chromium: "Chromium",
|
|
Ie: "IE",
|
|
MobileSafari: "Mobile Safari",
|
|
EdgeChromium: "Edge Chromium",
|
|
MIUI: "MIUI Browser",
|
|
SamsungBrowser: "Samsung Browser"
|
|
}, E = {
|
|
IOS: "iOS",
|
|
Android: "Android",
|
|
WindowsPhone: "Windows Phone",
|
|
Windows: "Windows",
|
|
MAC_OS: "Mac OS"
|
|
}, V = {
|
|
isMobile: !1,
|
|
isTablet: !1,
|
|
isBrowser: !1,
|
|
isSmartTV: !1,
|
|
isConsole: !1,
|
|
isWearable: !1
|
|
}, B = function(o) {
|
|
switch (o) {
|
|
case F.Mobile:
|
|
return {
|
|
isMobile: !0
|
|
};
|
|
case F.Tablet:
|
|
return {
|
|
isTablet: !0
|
|
};
|
|
case F.SmartTv:
|
|
return {
|
|
isSmartTV: !0
|
|
};
|
|
case F.Console:
|
|
return {
|
|
isConsole: !0
|
|
};
|
|
case F.Wearable:
|
|
return {
|
|
isWearable: !0
|
|
};
|
|
case F.Browser:
|
|
return {
|
|
isBrowser: !0
|
|
};
|
|
case F.Embedded:
|
|
return {
|
|
isEmbedded: !0
|
|
};
|
|
default:
|
|
return V;
|
|
}
|
|
}, U = function(o) {
|
|
return O(o);
|
|
}, _ = function(o) {
|
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
return o || c;
|
|
}, Q = function() {
|
|
return typeof window < "u" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
}, K = function(o) {
|
|
var c = Q();
|
|
return c && c.platform && (c.platform.indexOf(o) !== -1 || c.platform === "MacIntel" && c.maxTouchPoints > 1 && !window.MSStream);
|
|
}, Z = function(o, c, C, j, ce) {
|
|
return {
|
|
isBrowser: o,
|
|
browserMajorVersion: _(c.major),
|
|
browserFullVersion: _(c.version),
|
|
browserName: _(c.name),
|
|
engineName: _(C.name),
|
|
engineVersion: _(C.version),
|
|
osName: _(j.name),
|
|
osVersion: _(j.version),
|
|
userAgent: _(ce)
|
|
};
|
|
}, te = function(o, c, C, j) {
|
|
return m({}, o, {
|
|
vendor: _(c.vendor),
|
|
model: _(c.model),
|
|
os: _(C.name),
|
|
osVersion: _(C.version),
|
|
ua: _(j)
|
|
});
|
|
}, J = function(o, c, C, j) {
|
|
return {
|
|
isSmartTV: o,
|
|
engineName: _(c.name),
|
|
engineVersion: _(c.version),
|
|
osName: _(C.name),
|
|
osVersion: _(C.version),
|
|
userAgent: _(j)
|
|
};
|
|
}, fe = function(o, c, C, j) {
|
|
return {
|
|
isConsole: o,
|
|
engineName: _(c.name),
|
|
engineVersion: _(c.version),
|
|
osName: _(C.name),
|
|
osVersion: _(C.version),
|
|
userAgent: _(j)
|
|
};
|
|
}, N = function(o, c, C, j) {
|
|
return {
|
|
isWearable: o,
|
|
engineName: _(c.name),
|
|
engineVersion: _(c.version),
|
|
osName: _(C.name),
|
|
osVersion: _(C.version),
|
|
userAgent: _(j)
|
|
};
|
|
}, xe = function(o, c, C, j, ce) {
|
|
return {
|
|
isEmbedded: o,
|
|
vendor: _(c.vendor),
|
|
model: _(c.model),
|
|
engineName: _(C.name),
|
|
engineVersion: _(C.version),
|
|
osName: _(j.name),
|
|
osVersion: _(j.version),
|
|
userAgent: _(ce)
|
|
};
|
|
};
|
|
function ke(b) {
|
|
var o = b ? l(b) : p, c = o.device, C = o.browser, j = o.engine, ce = o.os, Se = o.ua, Le = B(c.type), Ut = Le.isBrowser, Xi = Le.isMobile, Ji = Le.isTablet, Vr = Le.isSmartTV, Br = Le.isConsole, Hr = Le.isWearable, qr = Le.isEmbedded;
|
|
if (Ut)
|
|
return Z(Ut, C, j, ce, Se);
|
|
if (Vr)
|
|
return J(Vr, j, ce, Se);
|
|
if (Br)
|
|
return fe(Br, j, ce, Se);
|
|
if (Xi || Ji)
|
|
return te(Le, c, ce, Se);
|
|
if (Hr)
|
|
return N(Hr, j, ce, Se);
|
|
if (qr)
|
|
return xe(qr, c, j, ce, Se);
|
|
}
|
|
var Te = function(o) {
|
|
var c = o.type;
|
|
return c === F.Mobile;
|
|
}, Ne = function(o) {
|
|
var c = o.type;
|
|
return c === F.Tablet;
|
|
}, Xe = function(o) {
|
|
var c = o.type;
|
|
return c === F.Mobile || c === F.Tablet;
|
|
}, Fe = function(o) {
|
|
var c = o.type;
|
|
return c === F.SmartTv;
|
|
}, je = function(o) {
|
|
var c = o.type;
|
|
return c === F.Browser;
|
|
}, Je = function(o) {
|
|
var c = o.type;
|
|
return c === F.Wearable;
|
|
}, bt = function(o) {
|
|
var c = o.type;
|
|
return c === F.Console;
|
|
}, Qe = function(o) {
|
|
var c = o.type;
|
|
return c === F.Embedded;
|
|
}, Ke = function(o) {
|
|
var c = o.vendor;
|
|
return _(c);
|
|
}, Ze = function(o) {
|
|
var c = o.model;
|
|
return _(c);
|
|
}, ft = function(o) {
|
|
var c = o.type;
|
|
return _(c, "browser");
|
|
}, st = function(o) {
|
|
var c = o.name;
|
|
return c === E.Android;
|
|
}, ct = function(o) {
|
|
var c = o.name;
|
|
return c === E.Windows;
|
|
}, De = function(o) {
|
|
var c = o.name;
|
|
return c === E.MAC_OS;
|
|
}, qe = function(o) {
|
|
var c = o.name;
|
|
return c === E.WindowsPhone;
|
|
}, et = function(o) {
|
|
var c = o.name;
|
|
return c === E.IOS;
|
|
}, ae = function(o) {
|
|
var c = o.version;
|
|
return _(c);
|
|
}, de = function(o) {
|
|
var c = o.name;
|
|
return _(c);
|
|
}, ne = function(o) {
|
|
var c = o.name;
|
|
return c === x.Chrome;
|
|
}, ge = function(o) {
|
|
var c = o.name;
|
|
return c === x.Firefox;
|
|
}, Ye = function(o) {
|
|
var c = o.name;
|
|
return c === x.Chromium;
|
|
}, Me = function(o) {
|
|
var c = o.name;
|
|
return c === x.Edge;
|
|
}, he = function(o) {
|
|
var c = o.name;
|
|
return c === x.Yandex;
|
|
}, ee = function(o) {
|
|
var c = o.name;
|
|
return c === x.Safari || c === x.MobileSafari;
|
|
}, Re = function(o) {
|
|
var c = o.name;
|
|
return c === x.MobileSafari;
|
|
}, Ve = function(o) {
|
|
var c = o.name;
|
|
return c === x.Opera;
|
|
}, nt = function(o) {
|
|
var c = o.name;
|
|
return c === x.InternetExplorer || c === x.Ie;
|
|
}, wt = function(o) {
|
|
var c = o.name;
|
|
return c === x.MIUI;
|
|
}, Et = function(o) {
|
|
var c = o.name;
|
|
return c === x.SamsungBrowser;
|
|
}, Ft = function(o) {
|
|
var c = o.version;
|
|
return _(c);
|
|
}, Pt = function(o) {
|
|
var c = o.major;
|
|
return _(c);
|
|
}, Yt = function(o) {
|
|
var c = o.name;
|
|
return _(c);
|
|
}, Mt = function(o) {
|
|
var c = o.name;
|
|
return _(c);
|
|
}, _t = function(o) {
|
|
var c = o.version;
|
|
return _(c);
|
|
}, Lt = function() {
|
|
var o = Q(), c = o && o.userAgent && o.userAgent.toLowerCase();
|
|
return typeof c == "string" ? /electron/.test(c) : !1;
|
|
}, ut = function(o) {
|
|
return typeof o == "string" && o.indexOf("Edg/") !== -1;
|
|
}, kt = function() {
|
|
var o = Q();
|
|
return o && (/iPad|iPhone|iPod/.test(o.platform) || o.platform === "MacIntel" && o.maxTouchPoints > 1) && !window.MSStream;
|
|
}, Be = function() {
|
|
return K("iPad");
|
|
}, Vt = function() {
|
|
return K("iPhone");
|
|
}, Bt = function() {
|
|
return K("iPod");
|
|
}, Ht = function(o) {
|
|
return _(o);
|
|
};
|
|
function qt(b) {
|
|
var o = b || p, c = o.device, C = o.browser, j = o.os, ce = o.engine, Se = o.ua;
|
|
return {
|
|
isSmartTV: Fe(c),
|
|
isConsole: bt(c),
|
|
isWearable: Je(c),
|
|
isEmbedded: Qe(c),
|
|
isMobileSafari: Re(C) || Be(),
|
|
isChromium: Ye(C),
|
|
isMobile: Xe(c) || Be(),
|
|
isMobileOnly: Te(c),
|
|
isTablet: Ne(c) || Be(),
|
|
isBrowser: je(c),
|
|
isDesktop: je(c),
|
|
isAndroid: st(j),
|
|
isWinPhone: qe(j),
|
|
isIOS: et(j) || Be(),
|
|
isChrome: ne(C),
|
|
isFirefox: ge(C),
|
|
isSafari: ee(C),
|
|
isOpera: Ve(C),
|
|
isIE: nt(C),
|
|
osVersion: ae(j),
|
|
osName: de(j),
|
|
fullBrowserVersion: Ft(C),
|
|
browserVersion: Pt(C),
|
|
browserName: Yt(C),
|
|
mobileVendor: Ke(c),
|
|
mobileModel: Ze(c),
|
|
engineName: Mt(ce),
|
|
engineVersion: _t(ce),
|
|
getUA: Ht(Se),
|
|
isEdge: Me(C) || ut(Se),
|
|
isYandex: he(C),
|
|
deviceType: ft(c),
|
|
isIOS13: kt(),
|
|
isIPad13: Be(),
|
|
isIPhone13: Vt(),
|
|
isIPod13: Bt(),
|
|
isElectron: Lt(),
|
|
isEdgeChromium: ut(Se),
|
|
isLegacyEdge: Me(C) && !ut(Se),
|
|
isWindows: ct(j),
|
|
isMacOs: De(j),
|
|
isMIUI: wt(C),
|
|
isSamsungBrowser: Et(C)
|
|
};
|
|
}
|
|
var u = Fe(d), k = bt(d), L = Je(d), re = Qe(d), ve = Re(a) || Be(), we = Ye(a), oe = Xe(d) || Be(), se = Te(d), Ee = Ne(d) || Be(), Oe = je(d), Ce = je(d), Ie = st(y), it = qe(y), tt = et(y) || Be(), Ae = ne(a), jt = ge(a), hr = ee(a), mr = Ve(a), Yr = nt(a), ui = ae(y), li = de(y), di = Ft(a), fi = Pt(a), hi = Yt(a), mi = Ke(d), vi = Ze(d), gi = Mt(f), pi = _t(f), bi = Ht(g), wi = Me(a) || ut(g), yi = he(a), xi = ft(d), Oi = kt(), Ci = Be(), Si = Vt(), Ti = Bt(), Ei = Lt(), Pi = ut(g), Mi = Me(a) && !ut(g), _i = ct(y), ki = De(y), ji = wt(a), Di = Et(a), Ri = function(o) {
|
|
if (!o || typeof o != "string") {
|
|
console.error("No valid user agent string was provided");
|
|
return;
|
|
}
|
|
var c = l(o), C = c.device, j = c.browser, ce = c.os, Se = c.engine, Le = c.ua;
|
|
return qt({
|
|
device: C,
|
|
browser: j,
|
|
os: ce,
|
|
engine: Se,
|
|
ua: Le
|
|
});
|
|
}, Ai = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return Ie ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Ni = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return Oe ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Ii = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return Yr ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Wi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return tt ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, $i = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return oe ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Fi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return Ee ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Yi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return it ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Li = function(o) {
|
|
var c = o.renderWithFragment, C = o.children;
|
|
o.viewClassName, o.style;
|
|
var j = Y(o, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
return se ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Vi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return u ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Bi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return k ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, Hi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children, j = Y(o, ["renderWithFragment", "children"]);
|
|
return L ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", j, C) : null;
|
|
}, qi = function(o) {
|
|
var c = o.renderWithFragment, C = o.children;
|
|
o.viewClassName, o.style;
|
|
var j = o.condition, ce = Y(o, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
return j ? c ? r.createElement(t.Fragment, null, C) : r.createElement("div", ce, C) : null;
|
|
};
|
|
function Ui(b) {
|
|
return /* @__PURE__ */ (function(o) {
|
|
X(c, o);
|
|
function c(C) {
|
|
var j;
|
|
return M(this, c), j = me(this, q(c).call(this, C)), j.isEventListenerAdded = !1, j.handleOrientationChange = j.handleOrientationChange.bind(z(j)), j.onOrientationChange = j.onOrientationChange.bind(z(j)), j.onPageLoad = j.onPageLoad.bind(z(j)), j.state = {
|
|
isLandscape: !1,
|
|
isPortrait: !1
|
|
}, j;
|
|
}
|
|
return T(c, [{
|
|
key: "handleOrientationChange",
|
|
value: function() {
|
|
this.isEventListenerAdded || (this.isEventListenerAdded = !0);
|
|
var j = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
this.setState({
|
|
isPortrait: j === 0,
|
|
isLandscape: j === 90
|
|
});
|
|
}
|
|
}, {
|
|
key: "onOrientationChange",
|
|
value: function() {
|
|
this.handleOrientationChange();
|
|
}
|
|
}, {
|
|
key: "onPageLoad",
|
|
value: function() {
|
|
this.handleOrientationChange();
|
|
}
|
|
}, {
|
|
key: "componentDidMount",
|
|
value: function() {
|
|
(typeof window > "u" ? "undefined" : v(window)) !== void 0 && oe && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
}
|
|
}, {
|
|
key: "componentWillUnmount",
|
|
value: function() {
|
|
window.removeEventListener("resize", this.onOrientationChange, !1);
|
|
}
|
|
}, {
|
|
key: "render",
|
|
value: function() {
|
|
return r.createElement(b, S({}, this.props, {
|
|
isLandscape: this.state.isLandscape,
|
|
isPortrait: this.state.isPortrait
|
|
}));
|
|
}
|
|
}]), c;
|
|
})(r.Component);
|
|
}
|
|
function zi() {
|
|
var b = t.useState(function() {
|
|
var ce = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
return {
|
|
isPortrait: ce === 0,
|
|
isLandscape: ce === 90,
|
|
orientation: ce === 0 ? "portrait" : "landscape"
|
|
};
|
|
}), o = le(b, 2), c = o[0], C = o[1], j = t.useCallback(function() {
|
|
var ce = window.innerWidth > window.innerHeight ? 90 : 0, Se = {
|
|
isPortrait: ce === 0,
|
|
isLandscape: ce === 90,
|
|
orientation: ce === 0 ? "portrait" : "landscape"
|
|
};
|
|
c.orientation !== Se.orientation && C(Se);
|
|
}, [c.orientation]);
|
|
return t.useEffect(function() {
|
|
return (typeof window > "u" ? "undefined" : v(window)) !== void 0 && oe && (j(), window.addEventListener("load", j, !1), window.addEventListener("resize", j, !1)), function() {
|
|
window.removeEventListener("resize", j, !1), window.removeEventListener("load", j, !1);
|
|
};
|
|
}, [j]), c;
|
|
}
|
|
function Lr(b) {
|
|
var o = b || window.navigator.userAgent;
|
|
return l(o);
|
|
}
|
|
function Gi(b) {
|
|
var o = b || window.navigator.userAgent, c = Lr(o), C = qt(c);
|
|
return [C, c];
|
|
}
|
|
return H.AndroidView = Ai, H.BrowserTypes = x, H.BrowserView = Ni, H.ConsoleView = Bi, H.CustomView = qi, H.IEView = Ii, H.IOSView = Wi, H.MobileOnlyView = Li, H.MobileView = $i, H.OsTypes = E, H.SmartTVView = Vi, H.TabletView = Fi, H.WearableView = Hi, H.WinPhoneView = Yi, H.browserName = hi, H.browserVersion = fi, H.deviceDetect = ke, H.deviceType = xi, H.engineName = gi, H.engineVersion = pi, H.fullBrowserVersion = di, H.getSelectorsByUserAgent = Ri, H.getUA = bi, H.isAndroid = Ie, H.isBrowser = Oe, H.isChrome = Ae, H.isChromium = we, H.isConsole = k, H.isDesktop = Ce, H.isEdge = wi, H.isEdgeChromium = Pi, H.isElectron = Ei, H.isEmbedded = re, H.isFirefox = jt, H.isIE = Yr, H.isIOS = tt, H.isIOS13 = Oi, H.isIPad13 = Ci, H.isIPhone13 = Si, H.isIPod13 = Ti, H.isLegacyEdge = Mi, H.isMIUI = ji, H.isMacOs = ki, H.isMobile = oe, H.isMobileOnly = se, H.isMobileSafari = ve, H.isOpera = mr, H.isSafari = hr, H.isSamsungBrowser = Di, H.isSmartTV = u, H.isTablet = Ee, H.isWearable = L, H.isWinPhone = it, H.isWindows = _i, H.isYandex = yi, H.mobileModel = vi, H.mobileVendor = mi, H.osName = li, H.osVersion = ui, H.parseUserAgent = l, H.setUserAgent = U, H.useDeviceData = Lr, H.useDeviceSelectors = Gi, H.useMobileOrientation = zi, H.withOrientationChange = Ui, H;
|
|
}
|
|
var xr = Ns();
|
|
const mc = ({ imageUrl: e, onShape: t }) => {
|
|
const r = Ot(null), n = Ot(null), [i, a] = ue(null), [s, d] = ue(null), [f, y] = ue([]), [g, O] = ue(!1), [l, p] = ue([]), [h, m] = ue(!1), [v, M] = ue(!1);
|
|
ze(() => {
|
|
y([]), p([]), m(!0), O(!1);
|
|
const G = r.current, Y = G.getContext("2d"), z = new Image();
|
|
return z.crossOrigin = "anonymous", z.onload = () => {
|
|
n.current = z, G.width = z.width, G.height = z.height, Y.drawImage(z, 0, 0), O(!0);
|
|
}, z.src = e, () => {
|
|
Y.clearRect(0, 0, G.width, G.height), y([]), p([]), O(!1), m(!0);
|
|
};
|
|
}, [e]), ze(() => {
|
|
if (g && h) {
|
|
const G = r.current, Y = G.getContext("2d");
|
|
Y.clearRect(0, 0, G.width, G.height), Y.drawImage(n.current, 0, 0), R(Y);
|
|
}
|
|
}, [g, h, f]), ze(() => {
|
|
l.length > 0 && t(l);
|
|
}, [l]);
|
|
const $ = ea(() => {
|
|
d(null), a(null);
|
|
}, []), T = (G) => {
|
|
G.preventDefault(), G.stopPropagation();
|
|
const Y = r.current.getBoundingClientRect(), z = G.clientX - Y.left, me = G.clientY - Y.top;
|
|
f.length > 1 && Math.abs(z - f[0].x) < 10 && Math.abs(me - f[0].y) < 10 ? (S(), m(!1)) : y([...f, { x: z, y: me }]);
|
|
}, R = (G) => {
|
|
if (G.strokeStyle = "#ff4d4f", G.beginPath(), f.length > 0) {
|
|
G.moveTo(f[0].x, f[0].y);
|
|
for (let Y = 1; Y < f.length; Y++)
|
|
G.lineTo(f[Y].x, f[Y].y);
|
|
G.lineTo(f[0].x, f[0].y);
|
|
}
|
|
G.stroke(), f.length > 0 && (G.beginPath(), G.arc(f[0].x, f[0].y, 10, 0, Math.PI * 2), G.stroke());
|
|
}, S = () => {
|
|
r.current.getContext("2d");
|
|
const Y = Math.min(...f.map((D) => D.x)), z = Math.min(...f.map((D) => D.y)), me = Math.max(...f.map((D) => D.x)), le = Math.max(...f.map((D) => D.y)), I = me - Y, A = le - z, P = document.createElement("canvas");
|
|
P.width = I, P.height = A, P.getContext("2d").drawImage(
|
|
n.current,
|
|
Y,
|
|
z,
|
|
I,
|
|
A,
|
|
0,
|
|
0,
|
|
I,
|
|
A
|
|
), a("success"), d("Image Cropped Successfully"), p((D) => [
|
|
...D,
|
|
P.toDataURL()
|
|
]), y([]);
|
|
}, X = () => {
|
|
if (f?.length > 0) {
|
|
y([]), t(null);
|
|
const G = r.current;
|
|
G.getContext("2d").clearRect(0, 0, G.width, G.height);
|
|
} else
|
|
a("error"), d("No Clipping Region");
|
|
}, q = () => {
|
|
l?.length > 0 ? M(!v) : (a("error"), d("No Image Found To Preview"));
|
|
}, ie = () => {
|
|
l?.length > 0 ? (p([]), y([]), M(!1), m(!0), t(null)) : (a("error"), d("No Image Found To Remove"));
|
|
};
|
|
return /* @__PURE__ */ w.jsxs("div", { className: "shape-crop", children: [
|
|
/* @__PURE__ */ w.jsx(
|
|
Ds,
|
|
{
|
|
messageType: i,
|
|
messageData: s,
|
|
onComplete: $
|
|
}
|
|
),
|
|
/* @__PURE__ */ w.jsx("h4", { children: "Click to outline clipping region. Click back in starting circle to complete the clip." }),
|
|
/* @__PURE__ */ w.jsxs("div", { className: "shape-crop-subdiv", children: [
|
|
/* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(
|
|
"canvas",
|
|
{
|
|
ref: r,
|
|
width: 300,
|
|
height: 150,
|
|
style: { border: "1px solid black" },
|
|
onMouseDown: T
|
|
}
|
|
) }),
|
|
/* @__PURE__ */ w.jsx("div", { children: v && l?.map((G, Y) => /* @__PURE__ */ w.jsx(
|
|
"img",
|
|
{
|
|
src: G,
|
|
alt: `Clipped image ${Y}`,
|
|
style: { width: "200px", height: "100px" }
|
|
},
|
|
Y
|
|
)) })
|
|
] }),
|
|
/* @__PURE__ */ w.jsxs("div", { className: "shape-crop-subdiv", children: [
|
|
/* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(yr, { title: "Reset", isMobile: xr.isMobile, children: /* @__PURE__ */ w.jsx(
|
|
ai,
|
|
{
|
|
className: "shape-reset",
|
|
onClick: () => X()
|
|
}
|
|
) }) }),
|
|
/* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(yr, { title: "Preview", isMobile: xr.isMobile, children: /* @__PURE__ */ w.jsx(
|
|
ii,
|
|
{
|
|
className: "shape-preview",
|
|
onClick: () => q()
|
|
}
|
|
) }) }),
|
|
/* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(yr, { title: "Remove", isMobile: xr.isMobile, children: /* @__PURE__ */ w.jsx(
|
|
ni,
|
|
{
|
|
className: "shape-delete",
|
|
onClick: () => ie()
|
|
}
|
|
) }) })
|
|
] })
|
|
] });
|
|
}, vc = ({
|
|
buttonText: e,
|
|
handleSubmit: t,
|
|
icon: r,
|
|
htmlType: n,
|
|
disabled: i
|
|
}) => /* @__PURE__ */ w.jsxs(
|
|
Dr,
|
|
{
|
|
type: "primary",
|
|
className: "tertiary_Button",
|
|
onClick: t,
|
|
htmlType: n ? "submit" : "",
|
|
disabled: i || !1,
|
|
children: [
|
|
e,
|
|
r
|
|
]
|
|
}
|
|
), gc = ({
|
|
columns: e,
|
|
data: t,
|
|
onChange: r,
|
|
pagination: n,
|
|
rowSelection: i,
|
|
rowClassName: a,
|
|
summary: s
|
|
}) => /* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
Ar,
|
|
{
|
|
columns: e,
|
|
dataSource: t,
|
|
onChange: r,
|
|
summary: s || null,
|
|
rowSelection: i || null,
|
|
pagination: n ? {
|
|
onChange: n,
|
|
defaultPageSize: 10,
|
|
showSizeChanger: !1,
|
|
hideOnSinglePage: !0
|
|
} : !1,
|
|
rowClassName: a
|
|
}
|
|
) }), pc = ({ columns: e, data: t, onChange: r, pagination: n }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
Ar,
|
|
{
|
|
columns: e,
|
|
dataSource: t,
|
|
onChange: r,
|
|
pagination: n ? !1 : {
|
|
defaultPageSize: 10,
|
|
showSizeChanger: !1,
|
|
hideOnSinglePage: !0
|
|
}
|
|
}
|
|
) }), bc = () => /* @__PURE__ */ w.jsxs("div", { className: "modern-loader-wrapper", children: [
|
|
/* @__PURE__ */ w.jsx("div", { className: "modern-balls-loader", children: "POZO".split("").map((t, r) => /* @__PURE__ */ w.jsx("span", { className: "modern-ball", style: { animationDelay: `${r * 0.18}s` }, children: t }, r)) }),
|
|
/* @__PURE__ */ w.jsx("div", { className: "modern-progress-bar", children: /* @__PURE__ */ w.jsx("div", { className: "modern-progress-fill" }) })
|
|
] }), wc = ({ open: e, placement: t, title: r, children: n, onClose: i }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
na,
|
|
{
|
|
title: r,
|
|
placement: t,
|
|
onClose: i,
|
|
open: e,
|
|
children: n
|
|
},
|
|
t
|
|
) });
|
|
var Jt = { exports: {} }, Qt = { exports: {} }, pe = {};
|
|
var yn;
|
|
function Is() {
|
|
if (yn) return pe;
|
|
yn = 1;
|
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, O = e ? Symbol.for("react.suspense") : 60113, l = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
|
|
function T(S) {
|
|
if (typeof S == "object" && S !== null) {
|
|
var X = S.$$typeof;
|
|
switch (X) {
|
|
case t:
|
|
switch (S = S.type, S) {
|
|
case f:
|
|
case y:
|
|
case n:
|
|
case a:
|
|
case i:
|
|
case O:
|
|
return S;
|
|
default:
|
|
switch (S = S && S.$$typeof, S) {
|
|
case d:
|
|
case g:
|
|
case h:
|
|
case p:
|
|
case s:
|
|
return S;
|
|
default:
|
|
return X;
|
|
}
|
|
}
|
|
case r:
|
|
return X;
|
|
}
|
|
}
|
|
}
|
|
function R(S) {
|
|
return T(S) === y;
|
|
}
|
|
return pe.AsyncMode = f, pe.ConcurrentMode = y, pe.ContextConsumer = d, pe.ContextProvider = s, pe.Element = t, pe.ForwardRef = g, pe.Fragment = n, pe.Lazy = h, pe.Memo = p, pe.Portal = r, pe.Profiler = a, pe.StrictMode = i, pe.Suspense = O, pe.isAsyncMode = function(S) {
|
|
return R(S) || T(S) === f;
|
|
}, pe.isConcurrentMode = R, pe.isContextConsumer = function(S) {
|
|
return T(S) === d;
|
|
}, pe.isContextProvider = function(S) {
|
|
return T(S) === s;
|
|
}, pe.isElement = function(S) {
|
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
}, pe.isForwardRef = function(S) {
|
|
return T(S) === g;
|
|
}, pe.isFragment = function(S) {
|
|
return T(S) === n;
|
|
}, pe.isLazy = function(S) {
|
|
return T(S) === h;
|
|
}, pe.isMemo = function(S) {
|
|
return T(S) === p;
|
|
}, pe.isPortal = function(S) {
|
|
return T(S) === r;
|
|
}, pe.isProfiler = function(S) {
|
|
return T(S) === a;
|
|
}, pe.isStrictMode = function(S) {
|
|
return T(S) === i;
|
|
}, pe.isSuspense = function(S) {
|
|
return T(S) === O;
|
|
}, pe.isValidElementType = function(S) {
|
|
return typeof S == "string" || typeof S == "function" || S === n || S === y || S === a || S === i || S === O || S === l || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === p || S.$$typeof === s || S.$$typeof === d || S.$$typeof === g || S.$$typeof === v || S.$$typeof === M || S.$$typeof === $ || S.$$typeof === m);
|
|
}, pe.typeOf = T, pe;
|
|
}
|
|
var be = {};
|
|
var xn;
|
|
function Ws() {
|
|
return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, O = e ? Symbol.for("react.suspense") : 60113, l = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
|
|
function T(N) {
|
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
N === n || N === y || N === a || N === i || N === O || N === l || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === p || N.$$typeof === s || N.$$typeof === d || N.$$typeof === g || N.$$typeof === v || N.$$typeof === M || N.$$typeof === $ || N.$$typeof === m);
|
|
}
|
|
function R(N) {
|
|
if (typeof N == "object" && N !== null) {
|
|
var xe = N.$$typeof;
|
|
switch (xe) {
|
|
case t:
|
|
var ke = N.type;
|
|
switch (ke) {
|
|
case f:
|
|
case y:
|
|
case n:
|
|
case a:
|
|
case i:
|
|
case O:
|
|
return ke;
|
|
default:
|
|
var Te = ke && ke.$$typeof;
|
|
switch (Te) {
|
|
case d:
|
|
case g:
|
|
case h:
|
|
case p:
|
|
case s:
|
|
return Te;
|
|
default:
|
|
return xe;
|
|
}
|
|
}
|
|
case r:
|
|
return xe;
|
|
}
|
|
}
|
|
}
|
|
var S = f, X = y, q = d, ie = s, G = t, Y = g, z = n, me = h, le = p, I = r, A = a, P = i, W = O, D = !1;
|
|
function F(N) {
|
|
return D || (D = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(N) || R(N) === f;
|
|
}
|
|
function x(N) {
|
|
return R(N) === y;
|
|
}
|
|
function E(N) {
|
|
return R(N) === d;
|
|
}
|
|
function V(N) {
|
|
return R(N) === s;
|
|
}
|
|
function B(N) {
|
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
}
|
|
function U(N) {
|
|
return R(N) === g;
|
|
}
|
|
function _(N) {
|
|
return R(N) === n;
|
|
}
|
|
function Q(N) {
|
|
return R(N) === h;
|
|
}
|
|
function K(N) {
|
|
return R(N) === p;
|
|
}
|
|
function Z(N) {
|
|
return R(N) === r;
|
|
}
|
|
function te(N) {
|
|
return R(N) === a;
|
|
}
|
|
function J(N) {
|
|
return R(N) === i;
|
|
}
|
|
function fe(N) {
|
|
return R(N) === O;
|
|
}
|
|
be.AsyncMode = S, be.ConcurrentMode = X, be.ContextConsumer = q, be.ContextProvider = ie, be.Element = G, be.ForwardRef = Y, be.Fragment = z, be.Lazy = me, be.Memo = le, be.Portal = I, be.Profiler = A, be.StrictMode = P, be.Suspense = W, be.isAsyncMode = F, be.isConcurrentMode = x, be.isContextConsumer = E, be.isContextProvider = V, be.isElement = B, be.isForwardRef = U, be.isFragment = _, be.isLazy = Q, be.isMemo = K, be.isPortal = Z, be.isProfiler = te, be.isStrictMode = J, be.isSuspense = fe, be.isValidElementType = T, be.typeOf = R;
|
|
})()), be;
|
|
}
|
|
var On;
|
|
function si() {
|
|
return On || (On = 1, process.env.NODE_ENV === "production" ? Qt.exports = Is() : Qt.exports = Ws()), Qt.exports;
|
|
}
|
|
var Or, Cn;
|
|
function $s() {
|
|
if (Cn) return Or;
|
|
Cn = 1;
|
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
function n(a) {
|
|
if (a == null)
|
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
return Object(a);
|
|
}
|
|
function i() {
|
|
try {
|
|
if (!Object.assign)
|
|
return !1;
|
|
var a = new String("abc");
|
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
return !1;
|
|
for (var s = {}, d = 0; d < 10; d++)
|
|
s["_" + String.fromCharCode(d)] = d;
|
|
var f = Object.getOwnPropertyNames(s).map(function(g) {
|
|
return s[g];
|
|
});
|
|
if (f.join("") !== "0123456789")
|
|
return !1;
|
|
var y = {};
|
|
return "abcdefghijklmnopqrst".split("").forEach(function(g) {
|
|
y[g] = g;
|
|
}), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
|
|
} catch {
|
|
return !1;
|
|
}
|
|
}
|
|
return Or = i() ? Object.assign : function(a, s) {
|
|
for (var d, f = n(a), y, g = 1; g < arguments.length; g++) {
|
|
d = Object(arguments[g]);
|
|
for (var O in d)
|
|
t.call(d, O) && (f[O] = d[O]);
|
|
if (e) {
|
|
y = e(d);
|
|
for (var l = 0; l < y.length; l++)
|
|
r.call(d, y[l]) && (f[y[l]] = d[y[l]]);
|
|
}
|
|
}
|
|
return f;
|
|
}, Or;
|
|
}
|
|
var Cr, Sn;
|
|
function $r() {
|
|
if (Sn) return Cr;
|
|
Sn = 1;
|
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
return Cr = e, Cr;
|
|
}
|
|
var Sr, Tn;
|
|
function ci() {
|
|
return Tn || (Tn = 1, Sr = Function.call.bind(Object.prototype.hasOwnProperty)), Sr;
|
|
}
|
|
var Tr, En;
|
|
function Fs() {
|
|
if (En) return Tr;
|
|
En = 1;
|
|
var e = function() {
|
|
};
|
|
if (process.env.NODE_ENV !== "production") {
|
|
var t = /* @__PURE__ */ $r(), r = {}, n = /* @__PURE__ */ ci();
|
|
e = function(a) {
|
|
var s = "Warning: " + a;
|
|
typeof console < "u" && console.error(s);
|
|
try {
|
|
throw new Error(s);
|
|
} catch {
|
|
}
|
|
};
|
|
}
|
|
function i(a, s, d, f, y) {
|
|
if (process.env.NODE_ENV !== "production") {
|
|
for (var g in a)
|
|
if (n(a, g)) {
|
|
var O;
|
|
try {
|
|
if (typeof a[g] != "function") {
|
|
var l = Error(
|
|
(f || "React class") + ": " + d + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
);
|
|
throw l.name = "Invariant Violation", l;
|
|
}
|
|
O = a[g](s, g, f, d, null, t);
|
|
} catch (h) {
|
|
O = h;
|
|
}
|
|
if (O && !(O instanceof Error) && e(
|
|
(f || "React class") + ": type specification of " + d + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof O + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
), O instanceof Error && !(O.message in r)) {
|
|
r[O.message] = !0;
|
|
var p = y ? y() : "";
|
|
e(
|
|
"Failed " + d + " type: " + O.message + (p ?? "")
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return i.resetWarningCache = function() {
|
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
}, Tr = i, Tr;
|
|
}
|
|
var Er, Pn;
|
|
function Ys() {
|
|
if (Pn) return Er;
|
|
Pn = 1;
|
|
var e = si(), t = $s(), r = /* @__PURE__ */ $r(), n = /* @__PURE__ */ ci(), i = /* @__PURE__ */ Fs(), a = function() {
|
|
};
|
|
process.env.NODE_ENV !== "production" && (a = function(d) {
|
|
var f = "Warning: " + d;
|
|
typeof console < "u" && console.error(f);
|
|
try {
|
|
throw new Error(f);
|
|
} catch {
|
|
}
|
|
});
|
|
function s() {
|
|
return null;
|
|
}
|
|
return Er = function(d, f) {
|
|
var y = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
function O(x) {
|
|
var E = x && (y && x[y] || x[g]);
|
|
if (typeof E == "function")
|
|
return E;
|
|
}
|
|
var l = "<<anonymous>>", p = {
|
|
array: M("array"),
|
|
bigint: M("bigint"),
|
|
bool: M("boolean"),
|
|
func: M("function"),
|
|
number: M("number"),
|
|
object: M("object"),
|
|
string: M("string"),
|
|
symbol: M("symbol"),
|
|
any: $(),
|
|
arrayOf: T,
|
|
element: R(),
|
|
elementType: S(),
|
|
instanceOf: X,
|
|
node: Y(),
|
|
objectOf: ie,
|
|
oneOf: q,
|
|
oneOfType: G,
|
|
shape: me,
|
|
exact: le
|
|
};
|
|
function h(x, E) {
|
|
return x === E ? x !== 0 || 1 / x === 1 / E : x !== x && E !== E;
|
|
}
|
|
function m(x, E) {
|
|
this.message = x, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
|
}
|
|
m.prototype = Error.prototype;
|
|
function v(x) {
|
|
if (process.env.NODE_ENV !== "production")
|
|
var E = {}, V = 0;
|
|
function B(_, Q, K, Z, te, J, fe) {
|
|
if (Z = Z || l, J = J || K, fe !== r) {
|
|
if (f) {
|
|
var N = new Error(
|
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
);
|
|
throw N.name = "Invariant Violation", N;
|
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
var xe = Z + ":" + K;
|
|
!E[xe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
V < 3 && (a(
|
|
"You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + Z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
), E[xe] = !0, V++);
|
|
}
|
|
}
|
|
return Q[K] == null ? _ ? Q[K] === null ? new m("The " + te + " `" + J + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new m("The " + te + " `" + J + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : x(Q, K, Z, te, J);
|
|
}
|
|
var U = B.bind(null, !1);
|
|
return U.isRequired = B.bind(null, !0), U;
|
|
}
|
|
function M(x) {
|
|
function E(V, B, U, _, Q, K) {
|
|
var Z = V[B], te = P(Z);
|
|
if (te !== x) {
|
|
var J = W(Z);
|
|
return new m(
|
|
"Invalid " + _ + " `" + Q + "` of type " + ("`" + J + "` supplied to `" + U + "`, expected ") + ("`" + x + "`."),
|
|
{ expectedType: x }
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function $() {
|
|
return v(s);
|
|
}
|
|
function T(x) {
|
|
function E(V, B, U, _, Q) {
|
|
if (typeof x != "function")
|
|
return new m("Property `" + Q + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
var K = V[B];
|
|
if (!Array.isArray(K)) {
|
|
var Z = P(K);
|
|
return new m("Invalid " + _ + " `" + Q + "` of type " + ("`" + Z + "` supplied to `" + U + "`, expected an array."));
|
|
}
|
|
for (var te = 0; te < K.length; te++) {
|
|
var J = x(K, te, U, _, Q + "[" + te + "]", r);
|
|
if (J instanceof Error)
|
|
return J;
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function R() {
|
|
function x(E, V, B, U, _) {
|
|
var Q = E[V];
|
|
if (!d(Q)) {
|
|
var K = P(Q);
|
|
return new m("Invalid " + U + " `" + _ + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
}
|
|
return null;
|
|
}
|
|
return v(x);
|
|
}
|
|
function S() {
|
|
function x(E, V, B, U, _) {
|
|
var Q = E[V];
|
|
if (!e.isValidElementType(Q)) {
|
|
var K = P(Q);
|
|
return new m("Invalid " + U + " `" + _ + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
}
|
|
return null;
|
|
}
|
|
return v(x);
|
|
}
|
|
function X(x) {
|
|
function E(V, B, U, _, Q) {
|
|
if (!(V[B] instanceof x)) {
|
|
var K = x.name || l, Z = F(V[B]);
|
|
return new m("Invalid " + _ + " `" + Q + "` of type " + ("`" + Z + "` supplied to `" + U + "`, expected ") + ("instance of `" + K + "`."));
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function q(x) {
|
|
if (!Array.isArray(x))
|
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
function E(V, B, U, _, Q) {
|
|
for (var K = V[B], Z = 0; Z < x.length; Z++)
|
|
if (h(K, x[Z]))
|
|
return null;
|
|
var te = JSON.stringify(x, function(fe, N) {
|
|
var xe = W(N);
|
|
return xe === "symbol" ? String(N) : N;
|
|
});
|
|
return new m("Invalid " + _ + " `" + Q + "` of value `" + String(K) + "` " + ("supplied to `" + U + "`, expected one of " + te + "."));
|
|
}
|
|
return v(E);
|
|
}
|
|
function ie(x) {
|
|
function E(V, B, U, _, Q) {
|
|
if (typeof x != "function")
|
|
return new m("Property `" + Q + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
var K = V[B], Z = P(K);
|
|
if (Z !== "object")
|
|
return new m("Invalid " + _ + " `" + Q + "` of type " + ("`" + Z + "` supplied to `" + U + "`, expected an object."));
|
|
for (var te in K)
|
|
if (n(K, te)) {
|
|
var J = x(K, te, U, _, Q + "." + te, r);
|
|
if (J instanceof Error)
|
|
return J;
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function G(x) {
|
|
if (!Array.isArray(x))
|
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
for (var E = 0; E < x.length; E++) {
|
|
var V = x[E];
|
|
if (typeof V != "function")
|
|
return a(
|
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + D(V) + " at index " + E + "."
|
|
), s;
|
|
}
|
|
function B(U, _, Q, K, Z) {
|
|
for (var te = [], J = 0; J < x.length; J++) {
|
|
var fe = x[J], N = fe(U, _, Q, K, Z, r);
|
|
if (N == null)
|
|
return null;
|
|
N.data && n(N.data, "expectedType") && te.push(N.data.expectedType);
|
|
}
|
|
var xe = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
return new m("Invalid " + K + " `" + Z + "` supplied to " + ("`" + Q + "`" + xe + "."));
|
|
}
|
|
return v(B);
|
|
}
|
|
function Y() {
|
|
function x(E, V, B, U, _) {
|
|
return I(E[V]) ? null : new m("Invalid " + U + " `" + _ + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
}
|
|
return v(x);
|
|
}
|
|
function z(x, E, V, B, U) {
|
|
return new m(
|
|
(x || "React class") + ": " + E + " type `" + V + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
);
|
|
}
|
|
function me(x) {
|
|
function E(V, B, U, _, Q) {
|
|
var K = V[B], Z = P(K);
|
|
if (Z !== "object")
|
|
return new m("Invalid " + _ + " `" + Q + "` of type `" + Z + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
for (var te in x) {
|
|
var J = x[te];
|
|
if (typeof J != "function")
|
|
return z(U, _, Q, te, W(J));
|
|
var fe = J(K, te, U, _, Q + "." + te, r);
|
|
if (fe)
|
|
return fe;
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function le(x) {
|
|
function E(V, B, U, _, Q) {
|
|
var K = V[B], Z = P(K);
|
|
if (Z !== "object")
|
|
return new m("Invalid " + _ + " `" + Q + "` of type `" + Z + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
var te = t({}, V[B], x);
|
|
for (var J in te) {
|
|
var fe = x[J];
|
|
if (n(x, J) && typeof fe != "function")
|
|
return z(U, _, Q, J, W(fe));
|
|
if (!fe)
|
|
return new m(
|
|
"Invalid " + _ + " `" + Q + "` key `" + J + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(V[B], null, " ") + `
|
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
);
|
|
var N = fe(K, J, U, _, Q + "." + J, r);
|
|
if (N)
|
|
return N;
|
|
}
|
|
return null;
|
|
}
|
|
return v(E);
|
|
}
|
|
function I(x) {
|
|
switch (typeof x) {
|
|
case "number":
|
|
case "string":
|
|
case "undefined":
|
|
return !0;
|
|
case "boolean":
|
|
return !x;
|
|
case "object":
|
|
if (Array.isArray(x))
|
|
return x.every(I);
|
|
if (x === null || d(x))
|
|
return !0;
|
|
var E = O(x);
|
|
if (E) {
|
|
var V = E.call(x), B;
|
|
if (E !== x.entries) {
|
|
for (; !(B = V.next()).done; )
|
|
if (!I(B.value))
|
|
return !1;
|
|
} else
|
|
for (; !(B = V.next()).done; ) {
|
|
var U = B.value;
|
|
if (U && !I(U[1]))
|
|
return !1;
|
|
}
|
|
} else
|
|
return !1;
|
|
return !0;
|
|
default:
|
|
return !1;
|
|
}
|
|
}
|
|
function A(x, E) {
|
|
return x === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
|
}
|
|
function P(x) {
|
|
var E = typeof x;
|
|
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : A(E, x) ? "symbol" : E;
|
|
}
|
|
function W(x) {
|
|
if (typeof x > "u" || x === null)
|
|
return "" + x;
|
|
var E = P(x);
|
|
if (E === "object") {
|
|
if (x instanceof Date)
|
|
return "date";
|
|
if (x instanceof RegExp)
|
|
return "regexp";
|
|
}
|
|
return E;
|
|
}
|
|
function D(x) {
|
|
var E = W(x);
|
|
switch (E) {
|
|
case "array":
|
|
case "object":
|
|
return "an " + E;
|
|
case "boolean":
|
|
case "date":
|
|
case "regexp":
|
|
return "a " + E;
|
|
default:
|
|
return E;
|
|
}
|
|
}
|
|
function F(x) {
|
|
return !x.constructor || !x.constructor.name ? l : x.constructor.name;
|
|
}
|
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
}, Er;
|
|
}
|
|
var Pr, Mn;
|
|
function Ls() {
|
|
if (Mn) return Pr;
|
|
Mn = 1;
|
|
var e = /* @__PURE__ */ $r();
|
|
function t() {
|
|
}
|
|
function r() {
|
|
}
|
|
return r.resetWarningCache = t, Pr = function() {
|
|
function n(s, d, f, y, g, O) {
|
|
if (O !== e) {
|
|
var l = new Error(
|
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
);
|
|
throw l.name = "Invariant Violation", l;
|
|
}
|
|
}
|
|
n.isRequired = n;
|
|
function i() {
|
|
return n;
|
|
}
|
|
var a = {
|
|
array: n,
|
|
bigint: n,
|
|
bool: n,
|
|
func: n,
|
|
number: n,
|
|
object: n,
|
|
string: n,
|
|
symbol: n,
|
|
any: n,
|
|
arrayOf: i,
|
|
element: n,
|
|
elementType: n,
|
|
instanceOf: i,
|
|
node: n,
|
|
objectOf: i,
|
|
oneOf: i,
|
|
oneOfType: i,
|
|
shape: i,
|
|
exact: i,
|
|
checkPropTypes: r,
|
|
resetWarningCache: t
|
|
};
|
|
return a.PropTypes = a, a;
|
|
}, Pr;
|
|
}
|
|
var _n;
|
|
function Vs() {
|
|
if (_n) return Jt.exports;
|
|
if (_n = 1, process.env.NODE_ENV !== "production") {
|
|
var e = si(), t = !0;
|
|
Jt.exports = /* @__PURE__ */ Ys()(e.isElement, t);
|
|
} else
|
|
Jt.exports = /* @__PURE__ */ Ls()();
|
|
return Jt.exports;
|
|
}
|
|
var Bs = /* @__PURE__ */ Vs();
|
|
const er = /* @__PURE__ */ cr(Bs);
|
|
function Hs(e) {
|
|
return vt({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8" }, child: [] }] })(e);
|
|
}
|
|
function qs(e) {
|
|
return vt({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8" }, child: [] }] })(e);
|
|
}
|
|
const Fr = ({ children: e, showLeftButton: t, showRightButton: r }) => {
|
|
const n = Ot(null), [i, a] = ue(!1), [s, d] = ue(!0), [f, y] = ue(!1), [g, O] = ue(0), [l, p] = ue(window.innerWidth);
|
|
ze(() => {
|
|
function q() {
|
|
p(window.innerWidth);
|
|
}
|
|
return window.addEventListener("resize", q), () => window.removeEventListener("resize", q);
|
|
}, [l]);
|
|
const h = (q) => {
|
|
y(!0), O(q.pageX - n.current.offsetLeft);
|
|
}, m = (q) => {
|
|
y(!0), O(q.touches[0].clientX);
|
|
}, v = (q) => {
|
|
if (!f) return;
|
|
const ie = n.current;
|
|
if (!ie) return;
|
|
const G = q.touches[0].clientX - g;
|
|
ie.scrollLeft -= G, O(q.touches[0].clientX);
|
|
}, M = (q) => {
|
|
if (!f) return;
|
|
const ie = n.current;
|
|
if (!ie) return;
|
|
const G = q.clientX - g;
|
|
ie.scrollLeft -= G, O(q.clientX);
|
|
}, $ = () => {
|
|
y(!1);
|
|
}, T = () => {
|
|
n.current && (n.current.scrollLeft -= 200);
|
|
}, R = () => {
|
|
n.current && (n.current.scrollLeft += 200);
|
|
}, S = () => {
|
|
y(!1);
|
|
}, X = () => {
|
|
const q = n.current;
|
|
q && (a(q.scrollLeft > 0), d(
|
|
q.scrollWidth - q.clientWidth - q.scrollLeft > 1
|
|
));
|
|
};
|
|
return ze(() => {
|
|
const q = n.current;
|
|
if (q) {
|
|
const ie = q.scrollWidth > q.clientWidth;
|
|
a(ie), d(ie);
|
|
}
|
|
}, [e, l]), /* @__PURE__ */ w.jsxs("div", { className: "AppSliderDiv", children: [
|
|
/* @__PURE__ */ w.jsx("div", { style: { width: "2rem" }, children: i && /* @__PURE__ */ w.jsx("button", { className: "swipee-icon", onClick: T, children: /* @__PURE__ */ w.jsx(Hs, {}) }) }),
|
|
/* @__PURE__ */ w.jsx(
|
|
"div",
|
|
{
|
|
style: {
|
|
overflowX: "hidden",
|
|
overflowY: "hidden",
|
|
display: "flex",
|
|
alignItems: "center",
|
|
justifyContent: "start",
|
|
flexDirection: "row",
|
|
columnGap: "0.5rem",
|
|
cursor: "grab"
|
|
},
|
|
ref: n,
|
|
onScroll: X,
|
|
onMouseDown: h,
|
|
onTouchStart: m,
|
|
onMouseMove: M,
|
|
onTouchMove: v,
|
|
onMouseUp: S,
|
|
onTouchEnd: $,
|
|
onMouseLeave: S,
|
|
children: e
|
|
}
|
|
),
|
|
/* @__PURE__ */ w.jsx("div", { style: { width: "2rem" }, children: s && /* @__PURE__ */ w.jsx("button", { className: "swipee-icon", onClick: R, children: /* @__PURE__ */ w.jsx(qs, {}) }) })
|
|
] });
|
|
};
|
|
Fr.propTypes = {
|
|
children: er.node.isRequired
|
|
};
|
|
Fr.propTypes = {
|
|
children: er.node.isRequired,
|
|
showLeftButton: er.bool,
|
|
showRightButton: er.bool
|
|
};
|
|
Fr.defaultProps = {
|
|
showLeftButton: !0,
|
|
showRightButton: !0
|
|
};
|
|
const Us = ({ buttonText: e, color: t, handleSubmit: r, icon: n, disabled: i }) => /* @__PURE__ */ w.jsxs(
|
|
Dr,
|
|
{
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
className: "primary_Button",
|
|
onClick: r,
|
|
color: t,
|
|
disabled: i || !1,
|
|
children: [
|
|
e,
|
|
n
|
|
]
|
|
}
|
|
), fr = (e) => {
|
|
const [t, r] = ue(!1), { children: n, label: i, value: a, isOnChange: s } = e, d = t || a && a.length !== 0 || s ? "label label-float" : "label";
|
|
return /* @__PURE__ */ w.jsxs(
|
|
"div",
|
|
{
|
|
className: "float-label",
|
|
onBlur: () => r(!1),
|
|
onFocus: () => r(!0),
|
|
children: [
|
|
n,
|
|
/* @__PURE__ */ w.jsx("label", { className: d, children: i })
|
|
]
|
|
}
|
|
);
|
|
}, yc = ({ fieldState: e, fieldApi: t, ...r }) => {
|
|
const n = e?.value || (typeof e == "boolean" ? void 0 : e), [i, a] = ue(""), {
|
|
field: s,
|
|
onChange: d,
|
|
isOnChange: f,
|
|
onBlur: y,
|
|
label: g,
|
|
forwardedRef: O,
|
|
required: l,
|
|
...p
|
|
} = r;
|
|
return /* @__PURE__ */ w.jsx("div", { className: "example", children: /* @__PURE__ */ w.jsx(
|
|
fr,
|
|
{
|
|
label: g,
|
|
value: i,
|
|
isOnChange: f,
|
|
children: /* @__PURE__ */ w.jsx(
|
|
dt,
|
|
{
|
|
...p,
|
|
spellCheck: !1,
|
|
id: s,
|
|
ref: O,
|
|
defaultValue: n?.toString(),
|
|
required: l,
|
|
onChange: (h) => {
|
|
a(h?.target?.value), d && d(h);
|
|
},
|
|
onBlur: (h) => {
|
|
y && y(h);
|
|
}
|
|
}
|
|
)
|
|
}
|
|
) });
|
|
}, xc = ({ fieldState: e, fieldApi: t, ...r }) => {
|
|
const { value: n } = e, [i, a] = ue(""), { TextArea: s } = dt, {
|
|
field: d,
|
|
onChange: f,
|
|
isOnChange: y,
|
|
onBlur: g,
|
|
label: O,
|
|
forwardedRef: l,
|
|
required: p,
|
|
width: h = !1,
|
|
...m
|
|
} = r;
|
|
return /* @__PURE__ */ w.jsx("div", { className: h ? "" : "example", style: { width: h ? "100%" : "auto" }, children: /* @__PURE__ */ w.jsx(
|
|
fr,
|
|
{
|
|
label: O,
|
|
value: i,
|
|
isOnChange: y,
|
|
children: /* @__PURE__ */ w.jsx(
|
|
s,
|
|
{
|
|
...m,
|
|
id: d,
|
|
ref: l,
|
|
defaultValue: n?.toString(),
|
|
required: p,
|
|
onChange: (v) => {
|
|
a(v?.target?.value), f && f(v);
|
|
},
|
|
onBlur: (v) => {
|
|
g && g(v);
|
|
}
|
|
}
|
|
)
|
|
}
|
|
) });
|
|
}, Oc = ({ placeholder: e, onSearch: t, onSearchChange: r, prefix: n, value: i }) => /* @__PURE__ */ w.jsx(
|
|
dt.Search,
|
|
{
|
|
className: "searchDiv",
|
|
spellCheck: !1,
|
|
placeholder: e,
|
|
onSearch: t,
|
|
onChange: r,
|
|
prefix: n,
|
|
value: i && i
|
|
}
|
|
), Cc = ({ fieldState: e, fieldApi: t, ...r }) => {
|
|
const { value: n } = e, { required: i, field: a, onChange: s, onBlur: d, canSelectPast: f, initialValue: y, forwardedRef: g, min: O, className: l, content: p, faClass: h, icon: m, ...v } = r, M = ($) => {
|
|
var T = /* @__PURE__ */ new Date();
|
|
return T.setDate(T.getDate() + 1), $.valueOf() <= T.setDate(T.getDate() - 2);
|
|
};
|
|
return /* @__PURE__ */ w.jsx(ar, { direction: "vertical", children: /* @__PURE__ */ w.jsx(
|
|
or,
|
|
{
|
|
...v,
|
|
id: a,
|
|
type: "date",
|
|
ref: g,
|
|
required: i,
|
|
value: n,
|
|
disabledDate: f ? "" : M,
|
|
format: "DD-MM-YYYY",
|
|
className: pt(`form-control ${l}`, {
|
|
"is-invalid": e.error
|
|
}),
|
|
onChange: s
|
|
}
|
|
) });
|
|
}, zs = sr.Group, Sc = ({ fieldState: e, fieldApi: t, faClass: r, style: n, ListOfCheckBox: i, defaultCheckedList: a, ...s }) => {
|
|
const d = i, { field: f, onBlur: y, initialValue: g, forwardedRef: O, className: l, content: p, ...h } = s.props, [m, v] = ue(a), [M, $] = ue(!0), [T, R] = ue(!1), S = (q) => {
|
|
v(q), $(!!q.length && q.length < d.length), R(q.length === d.length);
|
|
}, X = (q) => {
|
|
v(q.target.checked ? d : []), $(!1), R(q.target.checked);
|
|
};
|
|
return /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
/* @__PURE__ */ w.jsx(sr, { indeterminate: M, onChange: X, checked: T, children: "Check all" }),
|
|
/* @__PURE__ */ w.jsx(Rn, {}),
|
|
/* @__PURE__ */ w.jsx(
|
|
zs,
|
|
{
|
|
options: d,
|
|
value: m,
|
|
onChange: S,
|
|
className: pt(` ${l}`, { "is-invalid": e.error })
|
|
}
|
|
)
|
|
] });
|
|
}, Tc = ({
|
|
options: e,
|
|
onChangeFunction: t,
|
|
isOnchanges: r,
|
|
className: n,
|
|
defaultValue: i,
|
|
searchKeys: a = ["label"],
|
|
disabled: s,
|
|
...d
|
|
}) => {
|
|
const [f, y] = ue(""), [g, O] = ue(null), l = async () => {
|
|
await O(!0);
|
|
}, {
|
|
field: p,
|
|
onChange: h,
|
|
label: m,
|
|
onBlur: v,
|
|
forwardedRef: M,
|
|
required: $,
|
|
valueData: T,
|
|
labelChange: R,
|
|
...S
|
|
} = d;
|
|
return ze(() => {
|
|
O(r);
|
|
}, [r]), console.log("DropDowns props", g, m), /* @__PURE__ */ w.jsx(
|
|
fr,
|
|
{
|
|
label: m,
|
|
value: f,
|
|
isOnChange: T != null ? !0 : g,
|
|
children: /* @__PURE__ */ w.jsx(
|
|
Rr,
|
|
{
|
|
showSearch: !0,
|
|
style: {
|
|
width: 250
|
|
},
|
|
defaultValue: i || null,
|
|
optionFilterProp: "children",
|
|
filterOption: R ? null : (X, q) => a.some(
|
|
(ie) => (q?.[ie] ?? "").toString().toLowerCase().includes(X.toLowerCase())
|
|
),
|
|
filterSort: R ? null : (X, q) => (X?.label ?? "")?.toLowerCase()?.localeCompare((q?.label ?? "").toLowerCase()),
|
|
value: T,
|
|
onChange: (X) => t(X),
|
|
onSelect: (X) => l(),
|
|
options: e,
|
|
className: pt(` ${n}`),
|
|
disabled: !!s
|
|
}
|
|
)
|
|
}
|
|
);
|
|
}, Ec = ({ fieldState: e, fieldApi: t, faClass: r, style: n, ...i }) => {
|
|
const { field: a, onChange: s, onBlur: d, initialValue: f, forwardedRef: y, className: g, content: O, ...l } = i;
|
|
return /* @__PURE__ */ w.jsx(
|
|
Ct,
|
|
{
|
|
...l,
|
|
id: a,
|
|
ref: y,
|
|
name: i.props.name,
|
|
required: !1,
|
|
value: i.props.value,
|
|
className: pt(` ${g}`, { "is-invalid": e.error }),
|
|
onChange: (p) => {
|
|
s && s(p);
|
|
},
|
|
onBlur: (p) => {
|
|
d && d(p);
|
|
},
|
|
children: i.props.label
|
|
}
|
|
);
|
|
}, Pc = ({ fieldState: e, style: t, ...r }) => {
|
|
const { disabled: n = !1, field: i, onBlur: a, initialValue: s, forwardedRef: d, className: f, onSelectFuntion: y, content: g, Header: O, defaultSelect: l, ...p } = r, [h, m] = ue(l), v = (M) => {
|
|
m(M?.target?.value), y && y(M?.target?.value);
|
|
};
|
|
return /* @__PURE__ */ w.jsxs("div", { children: [
|
|
/* @__PURE__ */ w.jsx("p", { style: { paddingBottom: "10px", fontWeight: "500" }, children: O }),
|
|
/* @__PURE__ */ w.jsx(Ct.Group, { disabled: n, onChange: v, value: h, options: g, children: g?.map(
|
|
(M, $) => /* @__PURE__ */ w.jsx(
|
|
Ct,
|
|
{
|
|
value: M.value,
|
|
children: M.label
|
|
},
|
|
$
|
|
)
|
|
) })
|
|
] });
|
|
}, Mc = ({
|
|
columns: e,
|
|
data: t,
|
|
onChange: r,
|
|
pagination: n,
|
|
rowSelection: i,
|
|
rowClassName: a,
|
|
summary: s,
|
|
onRow: d = () => {
|
|
}
|
|
}) => /* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
Ar,
|
|
{
|
|
columns: e,
|
|
dataSource: t,
|
|
onChange: r,
|
|
summary: s || null,
|
|
rowSelection: i || null,
|
|
pagination: n ? {
|
|
onChange: n,
|
|
defaultPageSize: 10,
|
|
showSizeChanger: !1,
|
|
hideOnSinglePage: !0
|
|
} : !1,
|
|
rowClassName: a,
|
|
onRow: d
|
|
}
|
|
) }), _c = ({ style: e, defaultChecked: t, functionName: r, disabled: n, ...i }) => /* @__PURE__ */ w.jsx(
|
|
Dn,
|
|
{
|
|
style: e,
|
|
checked: t,
|
|
onChange: r,
|
|
disabled: n,
|
|
...i
|
|
}
|
|
), kc = ({ options: e, onChangeFunction: t, isOnchanges: r, className: n, defaultValue: i, disabled: a, ...s }) => {
|
|
const [d, f] = ue(""), [y, g] = ue(r), O = async () => {
|
|
await g(!0);
|
|
}, {
|
|
field: l,
|
|
onChange: p,
|
|
label: h,
|
|
onBlur: m,
|
|
forwardedRef: v,
|
|
required: M,
|
|
valueData: $,
|
|
labelChange: T,
|
|
...R
|
|
} = s;
|
|
return /* @__PURE__ */ w.jsx(
|
|
fr,
|
|
{
|
|
label: h,
|
|
value: d,
|
|
isOnChange: $ != null,
|
|
children: /* @__PURE__ */ w.jsx(
|
|
Rr,
|
|
{
|
|
showSearch: !0,
|
|
style: {
|
|
width: 250
|
|
},
|
|
defaultValue: i || null,
|
|
optionFilterProp: "children",
|
|
filterOption: T ? null : (S, X) => (X?.label ?? "").toLowerCase().includes(S.toLowerCase()),
|
|
filterSort: T ? null : (S, X) => (S?.label ?? "")?.toLowerCase()?.localeCompare((X?.label ?? "").toLowerCase()),
|
|
value: $,
|
|
onChange: (S) => t(S),
|
|
onSelect: (S) => O(),
|
|
options: e,
|
|
className: pt(` ${n}`),
|
|
disabled: !!a
|
|
}
|
|
)
|
|
}
|
|
);
|
|
}, jc = () => /* @__PURE__ */ w.jsx("div", { className: "loader-wrapper", children: /* @__PURE__ */ w.jsxs("div", { className: "spinner", children: [
|
|
/* @__PURE__ */ w.jsx("div", { className: "wheel" }),
|
|
/* @__PURE__ */ w.jsx("div", { className: "wheel" })
|
|
] }) }), Dc = ({
|
|
open: e,
|
|
title: t,
|
|
handleCancel: r,
|
|
children: n,
|
|
footer: i,
|
|
handleSubmit: a,
|
|
width: s,
|
|
destroyOnClose: d,
|
|
buttonText: f,
|
|
maskTransitionName: y,
|
|
transitionName: g,
|
|
className: O,
|
|
buttonDisabled: l = !1,
|
|
disabled: p = !1
|
|
}) => (ze(() => {
|
|
const h = (m) => {
|
|
m.key === "Escape" && e && r();
|
|
};
|
|
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
}, [e, r]), /* @__PURE__ */ w.jsx(w.Fragment, { children: /* @__PURE__ */ w.jsx(
|
|
ia,
|
|
{
|
|
destroyOnClose: d || !1,
|
|
open: e,
|
|
title: t,
|
|
top: 0,
|
|
width: s || 700,
|
|
maskTransitionName: y,
|
|
transitionName: g,
|
|
className: O,
|
|
centered: !0,
|
|
closeIcon: /* @__PURE__ */ w.jsx(ri, { onClick: r }),
|
|
onCancel: r,
|
|
footer: i && [
|
|
/* @__PURE__ */ w.jsx(
|
|
Us,
|
|
{
|
|
buttonText: f || "SUBMIT",
|
|
color: "901D77",
|
|
icon: /* @__PURE__ */ w.jsx(ti, {}),
|
|
handleSubmit: a,
|
|
disabled: l ? p : !1,
|
|
children: f
|
|
}
|
|
)
|
|
],
|
|
maskClosable: !0,
|
|
children: n
|
|
}
|
|
) }));
|
|
export {
|
|
Ks as Buttons,
|
|
Js as Calendar,
|
|
Qs as CalendarDropdown,
|
|
fc as CheckBoxGroup,
|
|
jc as CommonLoader,
|
|
Fr as CommonSlider,
|
|
Us as Common_Buttons,
|
|
Sc as Common_CheckboxGroup,
|
|
Cc as Common_DatePic,
|
|
Tc as Common_DropDowns,
|
|
yc as Common_InputField,
|
|
Ec as Common_RadioButton,
|
|
Pc as Common_RadioGrpButton,
|
|
Oc as Common_Search,
|
|
Mc as Common_Tables,
|
|
xc as Common_TextAreaInput,
|
|
tc as DatePic,
|
|
rc as DatePicEmpMaster,
|
|
nc as DatePicProd,
|
|
Dc as DefaultModal,
|
|
wc as Drawers,
|
|
hc as FilterButton,
|
|
gt as FloatLabel,
|
|
Zs as InputField,
|
|
sc as InputFieldCustom,
|
|
bc as Loader,
|
|
Ds as Messages,
|
|
lc as RadioButton,
|
|
uc as RadioGrpButton,
|
|
pc as ReprintTables,
|
|
cc as ScannerInputField,
|
|
ec as Search,
|
|
mc as ShapeCropper,
|
|
_c as SwitchModified,
|
|
gc as Tables,
|
|
vc as TertiaryButton,
|
|
oc as TextAreaInput,
|
|
ic as TimePickers,
|
|
ac as TimePickersProduct,
|
|
dc as Toggle,
|
|
yr as TooltipWrapper,
|
|
kc as VersionupdateDropDown
|
|
};
|