ui-complex
Version:
1,380 lines (1,378 loc) • 90.8 kB
JavaScript
import "./index.css";
import Xe, { createContext as Wt, useRef as we, useState as oe, useEffect as ve, cloneElement as Ne, useContext as ye } from "react";
import kt from "react-dom";
var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function qe(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Be = { exports: {} }, je = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ut;
function Ht() {
if (ut) return je;
ut = 1;
var e = Xe, h = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
function u(E, s, v) {
var c, a = {}, M = null, b = null;
v !== void 0 && (M = "" + v), s.key !== void 0 && (M = "" + s.key), s.ref !== void 0 && (b = s.ref);
for (c in s) i.call(s, c) && !o.hasOwnProperty(c) && (a[c] = s[c]);
if (E && E.defaultProps) for (c in s = E.defaultProps, s) a[c] === void 0 && (a[c] = s[c]);
return { $$typeof: h, type: E, key: M, ref: b, props: a, _owner: n.current };
}
return je.Fragment = r, je.jsx = u, je.jsxs = u, je;
}
var Ye = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ct;
function Ut() {
return ct || (ct = 1, process.env.NODE_ENV !== "production" && function() {
var e = Xe, h = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), E = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), a = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), _ = Symbol.iterator, p = "@@iterator";
function L(t) {
if (t === null || typeof t != "object")
return null;
var x = _ && t[_] || t[p];
return typeof x == "function" ? x : null;
}
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function C(t) {
{
for (var x = arguments.length, $ = new Array(x > 1 ? x - 1 : 0), I = 1; I < x; I++)
$[I - 1] = arguments[I];
O("error", t, $);
}
}
function O(t, x, $) {
{
var I = w.ReactDebugCurrentFrame, V = I.getStackAddendum();
V !== "" && (x += "%s", $ = $.concat([V]));
var J = $.map(function(P) {
return String(P);
});
J.unshift("Warning: " + x), Function.prototype.apply.call(console[t], console, J);
}
}
var H = !1, S = !1, j = !1, R = !1, F = !1, W;
W = Symbol.for("react.module.reference");
function A(t) {
return !!(typeof t == "string" || typeof t == "function" || t === i || t === o || F || t === n || t === v || t === c || R || t === b || H || S || j || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === a || t.$$typeof === u || t.$$typeof === E || t.$$typeof === s || // 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.
t.$$typeof === W || t.getModuleId !== void 0));
}
function Y(t, x, $) {
var I = t.displayName;
if (I)
return I;
var V = x.displayName || x.name || "";
return V !== "" ? $ + "(" + V + ")" : $;
}
function Z(t) {
return t.displayName || "Context";
}
function q(t) {
if (t == null)
return null;
if (typeof t.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
return t.displayName || t.name || null;
if (typeof t == "string")
return t;
switch (t) {
case i:
return "Fragment";
case r:
return "Portal";
case o:
return "Profiler";
case n:
return "StrictMode";
case v:
return "Suspense";
case c:
return "SuspenseList";
}
if (typeof t == "object")
switch (t.$$typeof) {
case E:
var x = t;
return Z(x) + ".Consumer";
case u:
var $ = t;
return Z($._context) + ".Provider";
case s:
return Y(t, t.render, "ForwardRef");
case a:
var I = t.displayName || null;
return I !== null ? I : q(t.type) || "Memo";
case M: {
var V = t, J = V._payload, P = V._init;
try {
return q(P(J));
} catch {
return null;
}
}
}
return null;
}
var g = Object.assign, y = 0, f, m, l, D, T, N, B;
function X() {
}
X.__reactDisabledLog = !0;
function K() {
{
if (y === 0) {
f = console.log, m = console.info, l = console.warn, D = console.error, T = console.group, N = console.groupCollapsed, B = console.groupEnd;
var t = {
configurable: !0,
enumerable: !0,
value: X,
writable: !0
};
Object.defineProperties(console, {
info: t,
log: t,
warn: t,
error: t,
group: t,
groupCollapsed: t,
groupEnd: t
});
}
y++;
}
}
function z() {
{
if (y--, y === 0) {
var t = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: g({}, t, {
value: f
}),
info: g({}, t, {
value: m
}),
warn: g({}, t, {
value: l
}),
error: g({}, t, {
value: D
}),
group: g({}, t, {
value: T
}),
groupCollapsed: g({}, t, {
value: N
}),
groupEnd: g({}, t, {
value: B
})
});
}
y < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Q = w.ReactCurrentDispatcher, ue;
function re(t, x, $) {
{
if (ue === void 0)
try {
throw Error();
} catch (V) {
var I = V.stack.trim().match(/\n( *(at )?)/);
ue = I && I[1] || "";
}
return `
` + ue + t;
}
}
var G = !1, k;
{
var ee = typeof WeakMap == "function" ? WeakMap : Map;
k = new ee();
}
function se(t, x) {
if (!t || G)
return "";
{
var $ = k.get(t);
if ($ !== void 0)
return $;
}
var I;
G = !0;
var V = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var J;
J = Q.current, Q.current = null, K();
try {
if (x) {
var P = function() {
throw Error();
};
if (Object.defineProperty(P.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(P, []);
} catch (De) {
I = De;
}
Reflect.construct(t, [], P);
} else {
try {
P.call();
} catch (De) {
I = De;
}
t.call(P.prototype);
}
} else {
try {
throw Error();
} catch (De) {
I = De;
}
t();
}
} catch (De) {
if (De && I && typeof De.stack == "string") {
for (var U = De.stack.split(`
`), ce = I.stack.split(`
`), te = U.length - 1, ne = ce.length - 1; te >= 1 && ne >= 0 && U[te] !== ce[ne]; )
ne--;
for (; te >= 1 && ne >= 0; te--, ne--)
if (U[te] !== ce[ne]) {
if (te !== 1 || ne !== 1)
do
if (te--, ne--, ne < 0 || U[te] !== ce[ne]) {
var he = `
` + U[te].replace(" at new ", " at ");
return t.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", t.displayName)), typeof t == "function" && k.set(t, he), he;
}
while (te >= 1 && ne >= 0);
break;
}
}
} finally {
G = !1, Q.current = J, z(), Error.prepareStackTrace = V;
}
var _e = t ? t.displayName || t.name : "", st = _e ? re(_e) : "";
return typeof t == "function" && k.set(t, st), st;
}
function de(t, x, $) {
return se(t, !1);
}
function xe(t) {
var x = t.prototype;
return !!(x && x.isReactComponent);
}
function fe(t, x, $) {
if (t == null)
return "";
if (typeof t == "function")
return se(t, xe(t));
if (typeof t == "string")
return re(t);
switch (t) {
case v:
return re("Suspense");
case c:
return re("SuspenseList");
}
if (typeof t == "object")
switch (t.$$typeof) {
case s:
return de(t.render);
case a:
return fe(t.type, x, $);
case M: {
var I = t, V = I._payload, J = I._init;
try {
return fe(J(V), x, $);
} catch {
}
}
}
return "";
}
var ge = Object.prototype.hasOwnProperty, Ce = {}, $e = w.ReactDebugCurrentFrame;
function Le(t) {
if (t) {
var x = t._owner, $ = fe(t.type, t._source, x ? x.type : null);
$e.setExtraStackFrame($);
} else
$e.setExtraStackFrame(null);
}
function Ze(t, x, $, I, V) {
{
var J = Function.call.bind(ge);
for (var P in t)
if (J(t, P)) {
var U = void 0;
try {
if (typeof t[P] != "function") {
var ce = Error((I || "React class") + ": " + $ + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw ce.name = "Invariant Violation", ce;
}
U = t[P](x, P, I, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (te) {
U = te;
}
U && !(U instanceof Error) && (Le(V), C("%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).", I || "React class", $, P, typeof U), Le(null)), U instanceof Error && !(U.message in Ce) && (Ce[U.message] = !0, Le(V), C("Failed %s type: %s", $, U.message), Le(null));
}
}
}
var Dt = Array.isArray;
function Re(t) {
return Dt(t);
}
function Ct(t) {
{
var x = typeof Symbol == "function" && Symbol.toStringTag, $ = x && t[Symbol.toStringTag] || t.constructor.name || "Object";
return $;
}
}
function Lt(t) {
try {
return Ge(t), !1;
} catch {
return !0;
}
}
function Ge(t) {
return "" + t;
}
function Je(t) {
if (Lt(t))
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ct(t)), Ge(t);
}
var Te = w.ReactCurrentOwner, Mt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Ke, ze, Ae;
Ae = {};
function Et(t) {
if (ge.call(t, "ref")) {
var x = Object.getOwnPropertyDescriptor(t, "ref").get;
if (x && x.isReactWarning)
return !1;
}
return t.ref !== void 0;
}
function $t(t) {
if (ge.call(t, "key")) {
var x = Object.getOwnPropertyDescriptor(t, "key").get;
if (x && x.isReactWarning)
return !1;
}
return t.key !== void 0;
}
function bt(t, x) {
if (typeof t.ref == "string" && Te.current && x && Te.current.stateNode !== x) {
var $ = q(Te.current.type);
Ae[$] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(Te.current.type), t.ref), Ae[$] = !0);
}
}
function _t(t, x) {
{
var $ = function() {
Ke || (Ke = !0, C("%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)", x));
};
$.isReactWarning = !0, Object.defineProperty(t, "key", {
get: $,
configurable: !0
});
}
}
function Tt(t, x) {
{
var $ = function() {
ze || (ze = !0, C("%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)", x));
};
$.isReactWarning = !0, Object.defineProperty(t, "ref", {
get: $,
configurable: !0
});
}
}
var jt = function(t, x, $, I, V, J, P) {
var U = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: h,
// Built-in properties that belong on the element
type: t,
key: x,
ref: $,
props: P,
// Record the component responsible for creating this element.
_owner: J
};
return U._store = {}, Object.defineProperty(U._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(U, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: I
}), Object.defineProperty(U, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: V
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
};
function Yt(t, x, $, I, V) {
{
var J, P = {}, U = null, ce = null;
$ !== void 0 && (Je($), U = "" + $), $t(x) && (Je(x.key), U = "" + x.key), Et(x) && (ce = x.ref, bt(x, V));
for (J in x)
ge.call(x, J) && !Mt.hasOwnProperty(J) && (P[J] = x[J]);
if (t && t.defaultProps) {
var te = t.defaultProps;
for (J in te)
P[J] === void 0 && (P[J] = te[J]);
}
if (U || ce) {
var ne = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
U && _t(P, ne), ce && Tt(P, ne);
}
return jt(t, U, ce, V, I, Te.current, P);
}
}
var Ie = w.ReactCurrentOwner, Qe = w.ReactDebugCurrentFrame;
function be(t) {
if (t) {
var x = t._owner, $ = fe(t.type, t._source, x ? x.type : null);
Qe.setExtraStackFrame($);
} else
Qe.setExtraStackFrame(null);
}
var Fe;
Fe = !1;
function We(t) {
return typeof t == "object" && t !== null && t.$$typeof === h;
}
function et() {
{
if (Ie.current) {
var t = q(Ie.current.type);
if (t)
return `
Check the render method of \`` + t + "`.";
}
return "";
}
}
function Ot(t) {
return "";
}
var tt = {};
function St(t) {
{
var x = et();
if (!x) {
var $ = typeof t == "string" ? t : t.displayName || t.name;
$ && (x = `
Check the top-level render call using <` + $ + ">.");
}
return x;
}
}
function rt(t, x) {
{
if (!t._store || t._store.validated || t.key != null)
return;
t._store.validated = !0;
var $ = St(x);
if (tt[$])
return;
tt[$] = !0;
var I = "";
t && t._owner && t._owner !== Ie.current && (I = " It was passed a child from " + q(t._owner.type) + "."), be(t), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, I), be(null);
}
}
function nt(t, x) {
{
if (typeof t != "object")
return;
if (Re(t))
for (var $ = 0; $ < t.length; $++) {
var I = t[$];
We(I) && rt(I, x);
}
else if (We(t))
t._store && (t._store.validated = !0);
else if (t) {
var V = L(t);
if (typeof V == "function" && V !== t.entries)
for (var J = V.call(t), P; !(P = J.next()).done; )
We(P.value) && rt(P.value, x);
}
}
}
function pt(t) {
{
var x = t.type;
if (x == null || typeof x == "string")
return;
var $;
if (typeof x == "function")
$ = x.propTypes;
else if (typeof x == "object" && (x.$$typeof === s || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
x.$$typeof === a))
$ = x.propTypes;
else
return;
if ($) {
var I = q(x);
Ze($, t.props, "prop", I, t);
} else if (x.PropTypes !== void 0 && !Fe) {
Fe = !0;
var V = q(x);
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
}
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Nt(t) {
{
for (var x = Object.keys(t.props), $ = 0; $ < x.length; $++) {
var I = x[$];
if (I !== "children" && I !== "key") {
be(t), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), be(null);
break;
}
}
t.ref !== null && (be(t), C("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
}
}
function at(t, x, $, I, V, J) {
{
var P = A(t);
if (!P) {
var U = "";
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (U += " 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 ce = Ot();
ce ? U += ce : U += et();
var te;
t === null ? te = "null" : Re(t) ? te = "array" : t !== void 0 && t.$$typeof === h ? (te = "<" + (q(t.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : te = typeof t, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, U);
}
var ne = Yt(t, x, $, V, J);
if (ne == null)
return ne;
if (P) {
var he = x.children;
if (he !== void 0)
if (I)
if (Re(he)) {
for (var _e = 0; _e < he.length; _e++)
nt(he[_e], t);
Object.freeze && Object.freeze(he);
} else
C("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
nt(he, t);
}
return t === i ? Nt(ne) : pt(ne), ne;
}
}
function Rt(t, x, $) {
return at(t, x, $, !0);
}
function At(t, x, $) {
return at(t, x, $, !1);
}
var It = At, Ft = Rt;
Ye.Fragment = i, Ye.jsx = It, Ye.jsxs = Ft;
}()), Ye;
}
process.env.NODE_ENV === "production" ? Be.exports = Ht() : Be.exports = Ut();
var d = Be.exports;
const Bt = "_container_1vzvl_1", Pt = {
container: Bt
}, Xt = {}, Vt = () => /* @__PURE__ */ d.jsx("div", { className: Xt.container, children: "GanttTable" }), qt = "_container_fil4o_1", Zt = "_resize_fil4o_25", ot = {
container: qt,
resize: Zt
}, ke = () => /* @__PURE__ */ d.jsx(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: "3",
height: "16",
viewBox: "0 0 3 16",
fill: "none",
children: /* @__PURE__ */ d.jsx("path", { d: "M1 0V6L2 8L1 10V16", stroke: "#D0D5DD" })
}
), Gt = (e) => /* @__PURE__ */ d.jsx(
"svg",
{
viewBox: "0 -5 16 16",
xmlns: "http://www.w3.org/2000/svg",
width: "32",
height: "32",
...e,
children: /* @__PURE__ */ d.jsx(
"path",
{
fill: "#cccccc",
d: "M6,3a.5.5,0,0,1-.5.5H1.71L3.35,5.15a.48.48,0,0,1,0,.7.48.48,0,0,1-.7,0L.15,3.35a.48.48,0,0,1,0-.7L2.65.15a.48.48,0,0,1,.7,0,.48.48,0,0,1,0,.7L1.71,2.5H5.5A.5.5,0,0,1,6,3Zm9.85-.35L13.35.15a.48.48,0,0,0-.7,0,.48.48,0,0,0,0,.7L14.29,2.5H10.5a.5.5,0,0,0,0,1h3.79L12.65,5.15a.48.48,0,0,0,0,.7.48.48,0,0,0,.7,0l2.5-2.5A.48.48,0,0,0,15.85,2.65Z"
}
)
}
), Jt = () => /* @__PURE__ */ d.jsxs("div", { className: ot.container, children: [
/* @__PURE__ */ d.jsx(Gt, { className: ot.resize }),
/* @__PURE__ */ d.jsx(ke, {}),
/* @__PURE__ */ d.jsx(ke, {}),
/* @__PURE__ */ d.jsx(ke, {})
] }), Kt = {}, zt = () => /* @__PURE__ */ d.jsx("div", { className: Kt.container, children: " GanttChart" });
function Qt({ children: e, state: h }) {
const r = Wt(h);
return /* @__PURE__ */ d.jsx(r.Provider, { value: h, children: e });
}
const Mr = ({ style: e }) => /* @__PURE__ */ d.jsx(Qt, { state: { lineSize: 500 }, children: /* @__PURE__ */ d.jsxs("div", { className: Pt.container, style: { height: 500, ...e }, children: [
/* @__PURE__ */ d.jsx(Vt, {}),
/* @__PURE__ */ d.jsx(Jt, {}),
/* @__PURE__ */ d.jsx(zt, {})
] }) }), Pe = (e) => {
const { placement: h = "bottom", ...r } = e, i = {
bottom: 0,
top: 180,
left: -90,
right: 90
};
return /* @__PURE__ */ d.jsx(
"svg",
{
width: "10",
height: "10",
viewBox: "0 0 8 5",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
transform: `rotate(${i[h]}deg)`
},
...r,
children: /* @__PURE__ */ d.jsx(
"path",
{
d: "M1.49264 -0.00194693L4.1802 2.68561L6.86776 -0.00194693L7.69048 0.820775L4.1802 4.33105L0.669922 0.820775L1.49264 -0.00194693Z",
fill: "#70757A"
}
)
}
);
};
var pe, Se = kt;
if (process.env.NODE_ENV === "production")
pe = Se.createRoot, Se.hydrateRoot;
else {
var lt = Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
pe = function(e, h) {
lt.usingClientEntryPoint = !0;
try {
return Se.createRoot(e, h);
} finally {
lt.usingClientEntryPoint = !1;
}
};
}
const er = ({ items: e }) => /* @__PURE__ */ d.jsx("div", { className: "uic-menu", children: e == null ? void 0 : e.map((h) => /* @__PURE__ */ d.jsx(
"div",
{
className: "uic-menu-item",
onClick: (r) => {
h.onClick && (h == null || h.onClick(h == null ? void 0 : h.value, r));
},
children: h == null ? void 0 : h.label
},
h == null ? void 0 : h.value
)) }), tr = ({ children: e, items: h }) => {
const r = we(null), i = we(null), [n, o] = oe(!1), [u, E] = oe({ x: 0, y: 0 }), s = (v) => {
var c, a, M;
E({
x: ((c = v.currentTarget) == null ? void 0 : c.getBoundingClientRect().left) - document.body.getBoundingClientRect().x,
y: ((a = v.currentTarget) == null ? void 0 : a.getBoundingClientRect().top) + ((M = v.currentTarget) == null ? void 0 : M.getBoundingClientRect().height) - document.body.getBoundingClientRect().y
}), o(!n);
};
return ve(() => {
var v, c;
if (n) {
if (!r.current && !i.current) {
const a = document.createElement("div");
document.body.appendChild(a), r.current = a, i.current = pe(r.current);
}
(v = i == null ? void 0 : i.current) == null || v.render(
/* @__PURE__ */ d.jsx(
it,
{
...u,
open: !0,
items: h,
setOpen: o
}
)
);
} else
r.current && (i != null && i.current) && ((c = i == null ? void 0 : i.current) == null || c.render(
/* @__PURE__ */ d.jsx(
it,
{
...u,
open: !1,
items: h,
setOpen: o
}
)
));
}, [n, i.current, r.current]), /* @__PURE__ */ d.jsx(d.Fragment, { children: Ne(e, {
onClick: s
}) });
}, it = ({ x: e, y: h, open: r, items: i, setOpen: n }) => {
const [o, u] = oe(!1);
return ve(() => {
const E = (s) => {
r && !o && n(!1);
};
return window.addEventListener("click", E), () => {
window.removeEventListener("click", E);
};
}, [o, r]), /* @__PURE__ */ d.jsx(
"div",
{
className: `uic-dropdown${r ? " uic-dropdown-open" : ""}`,
style: { top: h, left: e },
onMouseEnter: () => u(!0),
onMouseLeave: () => u(!1),
children: i && /* @__PURE__ */ d.jsx(er, { items: i })
}
);
};
var le = /* @__PURE__ */ ((e) => (e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e))(le || {}), ft = { exports: {} };
(function(e, h) {
(function(r, i) {
e.exports = i();
})(Ve, function() {
return function(r, i) {
i.prototype.weekday = function(n) {
var o = this.$locale().weekStart || 0, u = this.$W, E = (u < o ? u + 7 : u) - o;
return this.$utils().u(n) ? E : this.subtract(E, "day").add(n, "day");
};
};
});
})(ft);
var rr = ft.exports;
const nr = /* @__PURE__ */ qe(rr);
var ht = { exports: {} };
(function(e, h) {
(function(r, i) {
e.exports = i();
})(Ve, function() {
var r = 1e3, i = 6e4, n = 36e5, o = "millisecond", u = "second", E = "minute", s = "hour", v = "day", c = "week", a = "month", M = "quarter", b = "year", _ = "date", p = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, C = { 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(g) {
var y = ["th", "st", "nd", "rd"], f = g % 100;
return "[" + g + (y[(f - 20) % 10] || y[f] || y[0]) + "]";
} }, O = function(g, y, f) {
var m = String(g);
return !m || m.length >= y ? g : "" + Array(y + 1 - m.length).join(f) + g;
}, H = { s: O, z: function(g) {
var y = -g.utcOffset(), f = Math.abs(y), m = Math.floor(f / 60), l = f % 60;
return (y <= 0 ? "+" : "-") + O(m, 2, "0") + ":" + O(l, 2, "0");
}, m: function g(y, f) {
if (y.date() < f.date()) return -g(f, y);
var m = 12 * (f.year() - y.year()) + (f.month() - y.month()), l = y.clone().add(m, a), D = f - l < 0, T = y.clone().add(m + (D ? -1 : 1), a);
return +(-(m + (f - l) / (D ? l - T : T - l)) || 0);
}, a: function(g) {
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
}, p: function(g) {
return { M: a, y: b, w: c, d: v, D: _, h: s, m: E, s: u, ms: o, Q: M }[g] || String(g || "").toLowerCase().replace(/s$/, "");
}, u: function(g) {
return g === void 0;
} }, S = "en", j = {};
j[S] = C;
var R = "$isDayjsObject", F = function(g) {
return g instanceof Z || !(!g || !g[R]);
}, W = function g(y, f, m) {
var l;
if (!y) return S;
if (typeof y == "string") {
var D = y.toLowerCase();
j[D] && (l = D), f && (j[D] = f, l = D);
var T = y.split("-");
if (!l && T.length > 1) return g(T[0]);
} else {
var N = y.name;
j[N] = y, l = N;
}
return !m && l && (S = l), l || !m && S;
}, A = function(g, y) {
if (F(g)) return g.clone();
var f = typeof y == "object" ? y : {};
return f.date = g, f.args = arguments, new Z(f);
}, Y = H;
Y.l = W, Y.i = F, Y.w = function(g, y) {
return A(g, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
};
var Z = function() {
function g(f) {
this.$L = W(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[R] = !0;
}
var y = g.prototype;
return y.parse = function(f) {
this.$d = function(m) {
var l = m.date, D = m.utc;
if (l === null) return /* @__PURE__ */ new Date(NaN);
if (Y.u(l)) return /* @__PURE__ */ new Date();
if (l instanceof Date) return new Date(l);
if (typeof l == "string" && !/Z$/i.test(l)) {
var T = l.match(L);
if (T) {
var N = T[2] - 1 || 0, B = (T[7] || "0").substring(0, 3);
return D ? new Date(Date.UTC(T[1], N, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, B)) : new Date(T[1], N, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, B);
}
}
return new Date(l);
}(f), this.init();
}, y.init = function() {
var f = this.$d;
this.$y = f.getFullYear(), this.$M = f.getMonth(), this.$D = f.getDate(), this.$W = f.getDay(), this.$H = f.getHours(), this.$m = f.getMinutes(), this.$s = f.getSeconds(), this.$ms = f.getMilliseconds();
}, y.$utils = function() {
return Y;
}, y.isValid = function() {
return this.$d.toString() !== p;
}, y.isSame = function(f, m) {
var l = A(f);
return this.startOf(m) <= l && l <= this.endOf(m);
}, y.isAfter = function(f, m) {
return A(f) < this.startOf(m);
}, y.isBefore = function(f, m) {
return this.endOf(m) < A(f);
}, y.$g = function(f, m, l) {
return Y.u(f) ? this[m] : this.set(l, f);
}, y.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, y.valueOf = function() {
return this.$d.getTime();
}, y.startOf = function(f, m) {
var l = this, D = !!Y.u(m) || m, T = Y.p(f), N = function(G, k) {
var ee = Y.w(l.$u ? Date.UTC(l.$y, k, G) : new Date(l.$y, k, G), l);
return D ? ee : ee.endOf(v);
}, B = function(G, k) {
return Y.w(l.toDate()[G].apply(l.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), l);
}, X = this.$W, K = this.$M, z = this.$D, Q = "set" + (this.$u ? "UTC" : "");
switch (T) {
case b:
return D ? N(1, 0) : N(31, 11);
case a:
return D ? N(1, K) : N(0, K + 1);
case c:
var ue = this.$locale().weekStart || 0, re = (X < ue ? X + 7 : X) - ue;
return N(D ? z - re : z + (6 - re), K);
case v:
case _:
return B(Q + "Hours", 0);
case s:
return B(Q + "Minutes", 1);
case E:
return B(Q + "Seconds", 2);
case u:
return B(Q + "Milliseconds", 3);
default:
return this.clone();
}
}, y.endOf = function(f) {
return this.startOf(f, !1);
}, y.$set = function(f, m) {
var l, D = Y.p(f), T = "set" + (this.$u ? "UTC" : ""), N = (l = {}, l[v] = T + "Date", l[_] = T + "Date", l[a] = T + "Month", l[b] = T + "FullYear", l[s] = T + "Hours", l[E] = T + "Minutes", l[u] = T + "Seconds", l[o] = T + "Milliseconds", l)[D], B = D === v ? this.$D + (m - this.$W) : m;
if (D === a || D === b) {
var X = this.clone().set(_, 1);
X.$d[N](B), X.init(), this.$d = X.set(_, Math.min(this.$D, X.daysInMonth())).$d;
} else N && this.$d[N](B);
return this.init(), this;
}, y.set = function(f, m) {
return this.clone().$set(f, m);
}, y.get = function(f) {
return this[Y.p(f)]();
}, y.add = function(f, m) {
var l, D = this;
f = Number(f);
var T = Y.p(m), N = function(K) {
var z = A(D);
return Y.w(z.date(z.date() + Math.round(K * f)), D);
};
if (T === a) return this.set(a, this.$M + f);
if (T === b) return this.set(b, this.$y + f);
if (T === v) return N(1);
if (T === c) return N(7);
var B = (l = {}, l[E] = i, l[s] = n, l[u] = r, l)[T] || 1, X = this.$d.getTime() + f * B;
return Y.w(X, this);
}, y.subtract = function(f, m) {
return this.add(-1 * f, m);
}, y.format = function(f) {
var m = this, l = this.$locale();
if (!this.isValid()) return l.invalidDate || p;
var D = f || "YYYY-MM-DDTHH:mm:ssZ", T = Y.z(this), N = this.$H, B = this.$m, X = this.$M, K = l.weekdays, z = l.months, Q = l.meridiem, ue = function(k, ee, se, de) {
return k && (k[ee] || k(m, D)) || se[ee].slice(0, de);
}, re = function(k) {
return Y.s(N % 12 || 12, k, "0");
}, G = Q || function(k, ee, se) {
var de = k < 12 ? "AM" : "PM";
return se ? de.toLowerCase() : de;
};
return D.replace(w, function(k, ee) {
return ee || function(se) {
switch (se) {
case "YY":
return String(m.$y).slice(-2);
case "YYYY":
return Y.s(m.$y, 4, "0");
case "M":
return X + 1;
case "MM":
return Y.s(X + 1, 2, "0");
case "MMM":
return ue(l.monthsShort, X, z, 3);
case "MMMM":
return ue(z, X);
case "D":
return m.$D;
case "DD":
return Y.s(m.$D, 2, "0");
case "d":
return String(m.$W);
case "dd":
return ue(l.weekdaysMin, m.$W, K, 2);
case "ddd":
return ue(l.weekdaysShort, m.$W, K, 3);
case "dddd":
return K[m.$W];
case "H":
return String(N);
case "HH":
return Y.s(N, 2, "0");
case "h":
return re(1);
case "hh":
return re(2);
case "a":
return G(N, B, !0);
case "A":
return G(N, B, !1);
case "m":
return String(B);
case "mm":
return Y.s(B, 2, "0");
case "s":
return String(m.$s);
case "ss":
return Y.s(m.$s, 2, "0");
case "SSS":
return Y.s(m.$ms, 3, "0");
case "Z":
return T;
}
return null;
}(k) || T.replace(":", "");
});
}, y.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, y.diff = function(f, m, l) {
var D, T = this, N = Y.p(m), B = A(f), X = (B.utcOffset() - this.utcOffset()) * i, K = this - B, z = function() {
return Y.m(T, B);
};
switch (N) {
case b:
D = z() / 12;
break;
case a:
D = z();
break;
case M:
D = z() / 3;
break;
case c:
D = (K - X) / 6048e5;
break;
case v:
D = (K - X) / 864e5;
break;
case s:
D = K / n;
break;
case E:
D = K / i;
break;
case u:
D = K / r;
break;
default:
D = K;
}
return l ? D : Y.a(D);
}, y.daysInMonth = function() {
return this.endOf(a).$D;
}, y.$locale = function() {
return j[this.$L];
}, y.locale = function(f, m) {
if (!f) return this.$L;
var l = this.clone(), D = W(f, m, !0);
return D && (l.$L = D), l;
}, y.clone = function() {
return Y.w(this.$d, this);
}, y.toDate = function() {
return new Date(this.valueOf());
}, y.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, y.toISOString = function() {
return this.$d.toISOString();
}, y.toString = function() {
return this.$d.toUTCString();
}, g;
}(), q = Z.prototype;
return A.prototype = q, [["$ms", o], ["$s", u], ["$m", E], ["$H", s], ["$W", v], ["$M", a], ["$y", b], ["$D", _]].forEach(function(g) {
q[g[1]] = function(y) {
return this.$g(y, g[0], g[1]);
};
}), A.extend = function(g, y) {
return g.$i || (g(y, Z, A), g.$i = !0), A;
}, A.locale = W, A.isDayjs = F, A.unix = function(g) {
return A(1e3 * g);
}, A.en = j[S], A.Ls = j, A.p = {}, A;
});
})(ht);
var ar = ht.exports;
const ae = /* @__PURE__ */ qe(ar);
ae.extend(nr);
const vt = (e = le.DAY, h, r = 2, i = 2, n) => {
const o = {
start: () => ae(h || /* @__PURE__ */ new Date()).startOf("week").add(-r, "week"),
end() {
return ae(h || /* @__PURE__ */ new Date()).startOf("week").add(i, "week");
},
dayCount() {
return Number(this.end().diff(this.start(), "day"));
}
}, u = {
start() {
return ae(h || /* @__PURE__ */ new Date()).startOf("week").add(-r, "week");
},
end() {
return ae(h || /* @__PURE__ */ new Date()).startOf("week").add(i, "week");
},
dayCount() {
return Number(this.end().diff(this.start(), "day"));
},
weekCount() {
return Number(this.end().diff(this.start(), "week"));
}
}, E = {
start() {
return ae(h || /* @__PURE__ */ new Date()).startOf("month").add(-r, "month");
},
end() {
return ae(h || /* @__PURE__ */ new Date()).startOf("month").add(i, "month");
},
dayCount() {
return Number(this.end().diff(this.start(), "day"));
},
monthCount() {
return Number(this.end().diff(this.start(), "month"));
}
};
return {
[le.DAY]: {
titleData: Array.from({ length: 1 }).map((v, c) => o.start().add(c, "week").format("MMM")),
startOfDay: o == null ? void 0 : o.start(),
endOfDay: o == null ? void 0 : o.end(),
dayWidth: (n == null ? void 0 : n.day) || 190,
dayCount: o == null ? void 0 : o.dayCount(),
data: Array.from({ length: o.end().diff(o.start(), "day") }).map(
(v, c) => {
const a = o.start().add(c, "day"), M = ae().format("DD MM YYYY") === a.format("DD MM YYYY");
return {
width: (n == null ? void 0 : n.day) || 190,
startDate: a.startOf("day"),
dueDate: a.endOf("day"),
label: a.format("dd - DD"),
today: M,
key: a.format("MMM DD YYYY")
};
}
)
},
[le.WEEK]: {
titleData: Array.from({ length: u.weekCount() }).map((v, c) => u.start().add(c, "week").format("DD MMM YYYY")),
startOfDay: u.start(),
endOfDay: u.end(),
dayWidth: (n == null ? void 0 : n.week) || 100,
dayCount: u == null ? void 0 : u.dayCount(),
data: Array.from({ length: u.weekCount() }).map((v, c) => {
const a = u.start().add(c, "week"), M = ae().startOf("week").format("DD MM YYYY") === a.format("DD MM YYYY");
return {
width: ((n == null ? void 0 : n.week) || 100) * 7,
startDate: a.startOf("week"),
dueDate: a.endOf("week"),
label: `${a.startOf("week").format("DD MMM")} ${a.endOf("week").format("DD MMM")}`,
today: M,
key: `${a.startOf("week").format("DD MMM YYYY")} ${a.endOf("week").format("DD MMM YYYY")}`
};
})
},
[le.MONTH]: {
titleData: Array.from({ length: E.monthCount() }).map((v, c) => E.start().add(c, "week").format("DD MMM YYYY")),
startOfDay: E.start(),
endOfDay: E.end(),
dayWidth: (n == null ? void 0 : n.month) || 50,
dayCount: E == null ? void 0 : E.dayCount(),
data: Array.from({ length: E.monthCount() }).map((v, c) => {
const a = E.start().add(c, "month"), M = ae().startOf("month").format("DD MM YYYY") === a.format("DD MM YYYY");
return {
width: (Number(a.endOf("month").diff(a, "day")) + 1) * ((n == null ? void 0 : n.month) || 50),
startDate: a.startOf("month"),
dueDate: a.endOf("month"),
label: `${a.startOf("month").format("DD MMM")} ${a.endOf("month").format("DD MMM")}`,
today: M,
key: `${a.startOf("month").format("DD MMM YYYY")} ${a.endOf("month").format("DD MMM YYYY")}`
};
})
}
}[e];
}, Oe = {
randomId: Math.random().toString(16).slice(2),
bodyRef: null,
holderWidth: 205,
contentRef: null,
dateType: le.DAY,
dayWidthSize: {
[le.DAY]: 190,
[le.WEEK]: 100,
[le.MONTH]: 50
},
dateFormatTodates: vt(),
setDateType: () => {
},
setDayWidthSize: () => {
},
dependencies: !1
}, me = Xe.createContext(Oe), sr = () => {
const { setDateType: e } = ye(me);
return /* @__PURE__ */ d.jsx(
tr,
{
items: [
{
label: "Day",
value: le.DAY,
onClick(h, r) {
e(h);
}
},
{
label: "Week",
value: le.WEEK,
onClick(h, r) {
e(h);
}
},
{
label: "Month",
value: le.MONTH,
onClick(h, r) {
e(h);
}
}
],
children: /* @__PURE__ */ d.jsxs("div", { className: "uic-timeline-header-dateFormat", children: [
"Day ",
/* @__PURE__ */ d.jsx(Pe, { placement: "bottom" })
] })
}
);
}, ur = () => {
const { bodyRef: e, dateFormatTodates: h } = ye(me), { dayWidth: r, startOfDay: i } = h, n = ae().diff(i, "day"), o = () => {
e == null || e.scrollTo({
behavior: "smooth",
left: n * r
});
}, u = (s) => {
s != null && s.ctrlKey ? e == null || e.scrollTo({
behavior: "smooth",
left: (e == null ? void 0 : e.scrollLeft) - r * 5
}) : e == null || e.scrollTo({
behavior: "smooth",
left: (e == null ? void 0 : e.scrollLeft) - r
});
}, E = (s) => {
s != null && s.ctrlKey ? e == null || e.scrollTo({
behavior: "smooth",
left: (e == null ? void 0 : e.scrollLeft) + r * 5
}) : e == null || e.scrollTo({
behavior: "smooth",
left: (e == null ? void 0 : e.scrollLeft) + r
});
};
return /* @__PURE__ */ d.jsxs("div", { className: "uic-timeline-header-today", children: [
/* @__PURE__ */ d.jsx(
Pe,
{
placement: "right",
className: "uic-timeline-header-today-icon",
onClick: u
}
),
/* @__PURE__ */ d.jsx("span", { onClick: o, children: "Today" }),
/* @__PURE__ */ d.jsx(
Pe,
{
placement: "left",
className: "uic-timeline-header-today-icon",
onClick: E
}
)
] });
}, cr = () => {
const { header: e } = ye(me);
return /* @__PURE__ */ d.jsxs("div", { className: "uic-timeline-header", children: [
/* @__PURE__ */ d.jsxs("div", { className: "uic-timeline-header-item", children: [
/* @__PURE__ */ d.jsx(ur, {}),
/* @__PURE__ */ d.jsx(sr, {})
] }),
(e == null ? void 0 : e.extra) && e.extra()
] });
};
var mt = { exports: {} };
(function(e, h) {
(function(r, i) {
e.exports = i();
})(Ve, 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" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, o = /\d\d/, u = /\d\d?/, E = /\d*[^-_:/,()\s\d]+/, s = {}, v = function(L) {
return (L = +L) + (L > 68 ? 1900 : 2e3);
}, c = function(L) {
return function(w) {
this[L] = +w;
};
}, a = [/[+-]\d\d:?(\d\d)?|Z/, function(L) {
(this.zone || (this.zone = {})).offset = function(w) {
if (!w || w === "Z") return 0;
var C = w.match(/([+-]|\d\d)/g), O = 60 * C[1] + (+C[2] || 0);
return O === 0 ? 0 : C[0] === "+" ? -O : O;
}(L);
}], M = function(L) {
var w = s[L];
return w && (w.indexOf ? w : w.s.concat(w.f));
}, b = function(L, w) {
var C, O = s.meridiem;
if (O) {
for (var H = 1; H <= 24; H += 1) if (L.indexOf(O(H, 0, w)) > -1) {
C = H > 12;
break;
}
} else C = L === (w ? "pm" : "PM");
return C;
}, _ = { A: [E, function(L) {
this.afternoon = b(L, !1);
}], a: [E, function(L) {
this.afternoon = b(L, !0);
}], Q: [n, function(L) {
this.month = 3 * (L - 1) + 1;
}], S: [n, function(L) {
this.milliseconds = 100 * +L;
}], SS: [o, function(L) {
this.milliseconds = 10 * +L;
}], SSS: [/\d{3}/, function(L) {
this.milliseconds = +L;
}], s: [u, c("seconds")], ss: [u, c("seconds")], m: [u, c("minutes")], mm: [u, c("minutes")], H: [u, c("hours")], h: [u, c("hours")], HH: [u, c("hours")], hh: [u, c("hours")], D: [u, c("day")], DD: [o, c("day")], Do: [E, function(L) {
var w = s.ordinal, C = L.match(/\d+/);
if (this.day = C[0], w) for (var O = 1; O <= 31; O += 1) w(O).replace(/\[|\]/g, "") === L && (this.day = O);
}], w: [u, c("week")], ww: [o, c("week")], M: [u, c("month")], MM: [o, c("month")], MMM: [E, function(L) {
var w = M("months"), C = (M("monthsShort") || w.map(function(O) {
return O.slice(0, 3);
})).indexOf(L) + 1;
if (C < 1) throw new Error();
this.month = C % 12 || C;
}], MMMM: [E, function(L) {
var w = M("months").indexOf(L) + 1;
if (w < 1) throw new Error();
this.month = w % 12 || w;
}], Y: [/[+-]?\d+/, c("year")], YY: [o, function(L) {
this.year = v(L);
}], YYYY: [/\d{4}/, c("year")], Z: a, ZZ: a };
function p(L) {
var w, C;
w = L, C = s && s.formats;
for (var O = (L = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(A, Y, Z) {
var q = Z && Z.toUpperCase();
return Y || C[Z] || r[Z] || C[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(g, y, f) {
return y || f.slice(1);
});
})).match(i), H = O.length, S = 0; S < H; S += 1) {
var j = O[S], R = _[j], F = R && R[0], W = R && R[1];
O[S] = W ? { regex: F, parser: W } : j.replace(/^\[|\]$/g, "");
}
return function(A) {
for (var Y = {}, Z = 0, q = 0; Z < H; Z += 1) {
var g = O[Z];
if (typeof g == "string") q += g.length;
else {
var y = g.regex, f = g.parser, m = A.slice(q), l = y.exec(m)[0];
f.call(Y, l), A = A.replace(l, "");
}
}
return function(D) {
var T = D.afternoon;
if (T !== void 0) {
var N = D.hours;
T ? N < 12 && (D.hours += 12) : N === 12 && (D.hours = 0), delete D.afternoon;
}
}(Y), Y;
};
}
return function(L, w, C) {
C.p.customParseFormat = !0, L && L.parseTwoDigitYear && (v = L.parseTwoDigitYear);
var O = w.prototype, H = O.parse;
O.parse = function(S) {
var j = S.date, R = S.utc, F = S.args;
this.$u = R;
var W = F[1];
if (typeof W == "string") {
var A = F[2] === !0, Y = F[3] === !0, Z = A || Y, q = F[2];
Y && (q = F[2]), s = this.$locale(), !A && q && (s = C.Ls[q]), this.$d = function(m, l, D, T) {
try {
if (["x", "X"].indexOf(l) > -1) return new Date((l === "X" ? 1e3 : 1) * m);
var N = p(l)(m), B = N.year, X = N.month, K = N.day, z = N.hours, Q = N.minutes, ue = N.seconds, re = N.milliseconds, G = N.zone, k = N.week, ee = /* @__PURE__ */ new Date(), se = K || (B || X ? 1 : ee.getDate()), de = B || ee.getFullYear(), xe = 0;
B && !X || (xe = X > 0 ? X - 1 : ee.getMonth());
var fe, ge = z || 0, Ce = Q || 0, $e = ue || 0, Le = re || 0;
return G ? new Date(Date.UTC(de, xe, se, ge, Ce, $e, Le + 60 * G.offset * 1e3)) : D ? new Date(Date.UTC(de, xe, se, ge, Ce, $e, Le)) : (fe = new Date(de, xe, se, ge, Ce, $e, Le), k && (fe = T(fe).week(k).toDate()), fe);
} catch {
return /* @__PURE__ */ new Date("");
}
}(j, W, R, C), this.init(), q && q !== !0 && (this.$L = this.locale(q).$L), Z && j != this.format(W) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
} else if (W instanceof Array) for (var g = W.length, y