@hot-updater/console 0.28.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +17 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/.output/public/assets/main-Dlx8-qN-.js +61 -0
- package/.output/public/assets/routes-DB0tWmiJ.js +10 -0
- package/.output/public/assets/styles-Bfxg4M1x.css +2 -0
- package/.output/public/favicon-16x16.png +0 -0
- package/.output/public/favicon-32x32.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/logo.svg +1 -0
- package/.output/public/manifest.json +30 -0
- package/.output/public/robots.txt +3 -0
- package/.output/server/_chunks/ssr-renderer.mjs +15 -0
- package/.output/server/_libs/@floating-ui/core+[...].mjs +698 -0
- package/.output/server/_libs/@floating-ui/dom+[...].mjs +644 -0
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +839 -0
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +2093 -0
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +287 -0
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1003 -0
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +2396 -0
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +298 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +13068 -0
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +2372 -0
- package/.output/server/_libs/chownr.mjs +60 -0
- package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/.output/server/_libs/core-util-is.mjs +67 -0
- package/.output/server/_libs/dayjs.mjs +408 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +1158 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/immediate.mjs +57 -0
- package/.output/server/_libs/inherits.mjs +39 -0
- package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +1120 -0
- package/.output/server/_libs/isarray.mjs +10 -0
- package/.output/server/_libs/jszip+[...].mjs +8311 -0
- package/.output/server/_libs/lucide-react.mjs +371 -0
- package/.output/server/_libs/minizlib.mjs +345 -0
- package/.output/server/_libs/next-themes.mjs +49 -0
- package/.output/server/_libs/radix-ui__number.mjs +6 -0
- package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
- package/.output/server/_libs/radix-ui__react-arrow.mjs +23 -0
- package/.output/server/_libs/radix-ui__react-collection.mjs +78 -0
- package/.output/server/_libs/radix-ui__react-direction.mjs +11 -0
- package/.output/server/_libs/radix-ui__react-label.mjs +22 -0
- package/.output/server/_libs/radix-ui__react-separator.mjs +31 -0
- package/.output/server/_libs/radix-ui__react-slider.mjs +451 -0
- package/.output/server/_libs/radix-ui__react-switch.mjs +118 -0
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +491 -0
- package/.output/server/_libs/semver.mjs +1339 -0
- package/.output/server/_libs/sonner.mjs +908 -0
- package/.output/server/_libs/tailwind-merge.mjs +1962 -0
- package/.output/server/_libs/tanstack__history.mjs +322 -0
- package/.output/server/_libs/tanstack__query-core.mjs +2073 -0
- package/.output/server/_libs/tanstack__react-query.mjs +146 -0
- package/.output/server/_libs/tanstack__router-core.mjs +6 -0
- package/.output/server/_libs/tar.mjs +1996 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_runtime.mjs +26 -0
- package/.output/server/_ssr/api-rpc-D3ZehMIN.mjs +217 -0
- package/.output/server/_ssr/config.server-JUYQ7UbI.mjs +26 -0
- package/.output/server/_ssr/deleteBundle-DWUxu9-K.mjs +22 -0
- package/.output/server/_ssr/extract-timestamp-from-uuidv7-B90UBADU.mjs +24 -0
- package/.output/server/_ssr/promoteBundle-DtMHuubR.mjs +1571 -0
- package/.output/server/_ssr/router-pgc7NX76.mjs +250 -0
- package/.output/server/_ssr/routes-PqTTQSoI.mjs +1833 -0
- package/.output/server/_ssr/sidebar-DXng0IOP.mjs +439 -0
- package/.output/server/_ssr/ssr.mjs +5050 -0
- package/.output/server/_ssr/start-DQK0r85G.mjs +4 -0
- package/.output/server/_tanstack-start-manifest_v-DTbQVOpU.mjs +17 -0
- package/.output/server/index.mjs +417 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/package.json +9 -0
- package/README.md +191 -2
- package/package.json +77 -50
- package/dist/.gitkeep +0 -0
- package/dist/assets/favicon-BkwcEHsj.ico +0 -0
- package/dist/assets/index-DUlKsori.css +0 -1
- package/dist/assets/index-ijmIcyn1.js +0 -27
- package/dist/assets/logo-BYNFyja1.png +0 -0
- package/dist/index.cjs +0 -2129
- package/dist/index.d.cts +0 -218
- package/dist/index.d.ts +0 -218
- package/dist/index.html +0 -14
- package/dist/index.js +0 -2125
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
//#region ../../node_modules/.pnpm/chownr@3.0.0/node_modules/chownr/dist/esm/index.js
|
|
4
|
+
var lchownSync = (path, uid, gid) => {
|
|
5
|
+
try {
|
|
6
|
+
return fs.lchownSync(path, uid, gid);
|
|
7
|
+
} catch (er) {
|
|
8
|
+
if (er?.code !== "ENOENT") throw er;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var chown = (cpath, uid, gid, cb) => {
|
|
12
|
+
fs.lchown(cpath, uid, gid, (er) => {
|
|
13
|
+
cb(er && er?.code !== "ENOENT" ? er : null);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var chownrKid = (p, child, uid, gid, cb) => {
|
|
17
|
+
if (child.isDirectory()) chownr(path.resolve(p, child.name), uid, gid, (er) => {
|
|
18
|
+
if (er) return cb(er);
|
|
19
|
+
chown(path.resolve(p, child.name), uid, gid, cb);
|
|
20
|
+
});
|
|
21
|
+
else chown(path.resolve(p, child.name), uid, gid, cb);
|
|
22
|
+
};
|
|
23
|
+
var chownr = (p, uid, gid, cb) => {
|
|
24
|
+
fs.readdir(p, { withFileTypes: true }, (er, children) => {
|
|
25
|
+
if (er) {
|
|
26
|
+
if (er.code === "ENOENT") return cb();
|
|
27
|
+
else if (er.code !== "ENOTDIR" && er.code !== "ENOTSUP") return cb(er);
|
|
28
|
+
}
|
|
29
|
+
if (er || !children.length) return chown(p, uid, gid, cb);
|
|
30
|
+
let len = children.length;
|
|
31
|
+
let errState = null;
|
|
32
|
+
const then = (er) => {
|
|
33
|
+
/* c8 ignore start */
|
|
34
|
+
if (errState) return;
|
|
35
|
+
/* c8 ignore stop */
|
|
36
|
+
if (er) return cb(errState = er);
|
|
37
|
+
if (--len === 0) return chown(p, uid, gid, cb);
|
|
38
|
+
};
|
|
39
|
+
for (const child of children) chownrKid(p, child, uid, gid, then);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var chownrKidSync = (p, child, uid, gid) => {
|
|
43
|
+
if (child.isDirectory()) chownrSync(path.resolve(p, child.name), uid, gid);
|
|
44
|
+
lchownSync(path.resolve(p, child.name), uid, gid);
|
|
45
|
+
};
|
|
46
|
+
var chownrSync = (p, uid, gid) => {
|
|
47
|
+
let children;
|
|
48
|
+
try {
|
|
49
|
+
children = fs.readdirSync(p, { withFileTypes: true });
|
|
50
|
+
} catch (er) {
|
|
51
|
+
const e = er;
|
|
52
|
+
if (e?.code === "ENOENT") return;
|
|
53
|
+
else if (e?.code === "ENOTDIR" || e?.code === "ENOTSUP") return lchownSync(p, uid, gid);
|
|
54
|
+
else throw e;
|
|
55
|
+
}
|
|
56
|
+
for (const child of children) chownrKidSync(p, child, uid, gid);
|
|
57
|
+
return lchownSync(p, uid, gid);
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { chownrSync as n, chownr as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2
|
+
function r(e) {
|
|
3
|
+
var t, f, n = "";
|
|
4
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
+
var o = e.length;
|
|
7
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function clsx() {
|
|
12
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
17
|
+
/**
|
|
18
|
+
* Copyright 2022 Joe Bell. All rights reserved.
|
|
19
|
+
*
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0
|
|
21
|
+
* (the "License"); you may not use this file except in compliance with the
|
|
22
|
+
* License. You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
28
|
+
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
|
29
|
+
* License for the specific language governing permissions and limitations under
|
|
30
|
+
* the License.
|
|
31
|
+
*/ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
32
|
+
var cx = clsx;
|
|
33
|
+
var cva = (base, config) => (props) => {
|
|
34
|
+
var _config_compoundVariants;
|
|
35
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
36
|
+
const { variants, defaultVariants } = config;
|
|
37
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
38
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
39
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
40
|
+
if (variantProp === null) return null;
|
|
41
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
42
|
+
return variants[variant][variantKey];
|
|
43
|
+
});
|
|
44
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
45
|
+
let [key, value] = param;
|
|
46
|
+
if (value === void 0) return acc;
|
|
47
|
+
acc[key] = value;
|
|
48
|
+
return acc;
|
|
49
|
+
}, {});
|
|
50
|
+
return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
51
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
52
|
+
return Object.entries(compoundVariantOptions).every((param) => {
|
|
53
|
+
let [key, value] = param;
|
|
54
|
+
return Array.isArray(value) ? value.includes({
|
|
55
|
+
...defaultVariants,
|
|
56
|
+
...propsWithoutUndefined
|
|
57
|
+
}[key]) : {
|
|
58
|
+
...defaultVariants,
|
|
59
|
+
...propsWithoutUndefined
|
|
60
|
+
}[key] === value;
|
|
61
|
+
}) ? [
|
|
62
|
+
...acc,
|
|
63
|
+
cvClass,
|
|
64
|
+
cvClassName
|
|
65
|
+
] : acc;
|
|
66
|
+
}, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { clsx as n, cva as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js
|
|
3
|
+
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
function isArray(arg) {
|
|
5
|
+
if (Array.isArray) return Array.isArray(arg);
|
|
6
|
+
return objectToString(arg) === "[object Array]";
|
|
7
|
+
}
|
|
8
|
+
exports.isArray = isArray;
|
|
9
|
+
function isBoolean(arg) {
|
|
10
|
+
return typeof arg === "boolean";
|
|
11
|
+
}
|
|
12
|
+
exports.isBoolean = isBoolean;
|
|
13
|
+
function isNull(arg) {
|
|
14
|
+
return arg === null;
|
|
15
|
+
}
|
|
16
|
+
exports.isNull = isNull;
|
|
17
|
+
function isNullOrUndefined(arg) {
|
|
18
|
+
return arg == null;
|
|
19
|
+
}
|
|
20
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
21
|
+
function isNumber(arg) {
|
|
22
|
+
return typeof arg === "number";
|
|
23
|
+
}
|
|
24
|
+
exports.isNumber = isNumber;
|
|
25
|
+
function isString(arg) {
|
|
26
|
+
return typeof arg === "string";
|
|
27
|
+
}
|
|
28
|
+
exports.isString = isString;
|
|
29
|
+
function isSymbol(arg) {
|
|
30
|
+
return typeof arg === "symbol";
|
|
31
|
+
}
|
|
32
|
+
exports.isSymbol = isSymbol;
|
|
33
|
+
function isUndefined(arg) {
|
|
34
|
+
return arg === void 0;
|
|
35
|
+
}
|
|
36
|
+
exports.isUndefined = isUndefined;
|
|
37
|
+
function isRegExp(re) {
|
|
38
|
+
return objectToString(re) === "[object RegExp]";
|
|
39
|
+
}
|
|
40
|
+
exports.isRegExp = isRegExp;
|
|
41
|
+
function isObject(arg) {
|
|
42
|
+
return typeof arg === "object" && arg !== null;
|
|
43
|
+
}
|
|
44
|
+
exports.isObject = isObject;
|
|
45
|
+
function isDate(d) {
|
|
46
|
+
return objectToString(d) === "[object Date]";
|
|
47
|
+
}
|
|
48
|
+
exports.isDate = isDate;
|
|
49
|
+
function isError(e) {
|
|
50
|
+
return objectToString(e) === "[object Error]" || e instanceof Error;
|
|
51
|
+
}
|
|
52
|
+
exports.isError = isError;
|
|
53
|
+
function isFunction(arg) {
|
|
54
|
+
return typeof arg === "function";
|
|
55
|
+
}
|
|
56
|
+
exports.isFunction = isFunction;
|
|
57
|
+
function isPrimitive(arg) {
|
|
58
|
+
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
|
|
59
|
+
}
|
|
60
|
+
exports.isPrimitive = isPrimitive;
|
|
61
|
+
exports.isBuffer = __require("buffer").Buffer.isBuffer;
|
|
62
|
+
function objectToString(o) {
|
|
63
|
+
return Object.prototype.toString.call(o);
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
//#endregion
|
|
67
|
+
export { require_util as t };
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
|
|
3
|
+
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
(function(t, e) {
|
|
5
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
6
|
+
})(exports, (function() {
|
|
7
|
+
"use strict";
|
|
8
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = {
|
|
9
|
+
name: "en",
|
|
10
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
11
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
12
|
+
ordinal: function(t) {
|
|
13
|
+
var e = [
|
|
14
|
+
"th",
|
|
15
|
+
"st",
|
|
16
|
+
"nd",
|
|
17
|
+
"rd"
|
|
18
|
+
], n = t % 100;
|
|
19
|
+
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
20
|
+
}
|
|
21
|
+
}, m = function(t, e, n) {
|
|
22
|
+
var r = String(t);
|
|
23
|
+
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
24
|
+
}, v = {
|
|
25
|
+
s: m,
|
|
26
|
+
z: function(t) {
|
|
27
|
+
var e = -t.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
|
|
28
|
+
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
29
|
+
},
|
|
30
|
+
m: function t(e, n) {
|
|
31
|
+
if (e.date() < n.date()) return -t(n, e);
|
|
32
|
+
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()), i = e.clone().add(r, c), s = n - i < 0, u = e.clone().add(r + (s ? -1 : 1), c);
|
|
33
|
+
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
34
|
+
},
|
|
35
|
+
a: function(t) {
|
|
36
|
+
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
37
|
+
},
|
|
38
|
+
p: function(t) {
|
|
39
|
+
return {
|
|
40
|
+
M: c,
|
|
41
|
+
y: h,
|
|
42
|
+
w: o,
|
|
43
|
+
d: a,
|
|
44
|
+
D: d,
|
|
45
|
+
h: u,
|
|
46
|
+
m: s,
|
|
47
|
+
s: i,
|
|
48
|
+
ms: r,
|
|
49
|
+
Q: f
|
|
50
|
+
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
51
|
+
},
|
|
52
|
+
u: function(t) {
|
|
53
|
+
return void 0 === t;
|
|
54
|
+
}
|
|
55
|
+
}, g = "en", D = {};
|
|
56
|
+
D[g] = M;
|
|
57
|
+
var p = "$isDayjsObject", S = function(t) {
|
|
58
|
+
return t instanceof _ || !(!t || !t[p]);
|
|
59
|
+
}, w = function t(e, n, r) {
|
|
60
|
+
var i;
|
|
61
|
+
if (!e) return g;
|
|
62
|
+
if ("string" == typeof e) {
|
|
63
|
+
var s = e.toLowerCase();
|
|
64
|
+
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
65
|
+
var u = e.split("-");
|
|
66
|
+
if (!i && u.length > 1) return t(u[0]);
|
|
67
|
+
} else {
|
|
68
|
+
var a = e.name;
|
|
69
|
+
D[a] = e, i = a;
|
|
70
|
+
}
|
|
71
|
+
return !r && i && (g = i), i || !r && g;
|
|
72
|
+
}, O = function(t, e) {
|
|
73
|
+
if (S(t)) return t.clone();
|
|
74
|
+
var n = "object" == typeof e ? e : {};
|
|
75
|
+
return n.date = t, n.args = arguments, new _(n);
|
|
76
|
+
}, b = v;
|
|
77
|
+
b.l = w, b.i = S, b.w = function(t, e) {
|
|
78
|
+
return O(t, {
|
|
79
|
+
locale: e.$L,
|
|
80
|
+
utc: e.$u,
|
|
81
|
+
x: e.$x,
|
|
82
|
+
$offset: e.$offset
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
var _ = function() {
|
|
86
|
+
function M(t) {
|
|
87
|
+
this.$L = w(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[p] = !0;
|
|
88
|
+
}
|
|
89
|
+
var m = M.prototype;
|
|
90
|
+
return m.parse = function(t) {
|
|
91
|
+
this.$d = function(t) {
|
|
92
|
+
var e = t.date, n = t.utc;
|
|
93
|
+
if (null === e) return /* @__PURE__ */ new Date(NaN);
|
|
94
|
+
if (b.u(e)) return /* @__PURE__ */ new Date();
|
|
95
|
+
if (e instanceof Date) return new Date(e);
|
|
96
|
+
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
97
|
+
var r = e.match($);
|
|
98
|
+
if (r) {
|
|
99
|
+
var i = r[2] - 1 || 0, s = (r[7] || "0").substring(0, 3);
|
|
100
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return new Date(e);
|
|
104
|
+
}(t), this.init();
|
|
105
|
+
}, m.init = function() {
|
|
106
|
+
var t = this.$d;
|
|
107
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
108
|
+
}, m.$utils = function() {
|
|
109
|
+
return b;
|
|
110
|
+
}, m.isValid = function() {
|
|
111
|
+
return !(this.$d.toString() === l);
|
|
112
|
+
}, m.isSame = function(t, e) {
|
|
113
|
+
var n = O(t);
|
|
114
|
+
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
115
|
+
}, m.isAfter = function(t, e) {
|
|
116
|
+
return O(t) < this.startOf(e);
|
|
117
|
+
}, m.isBefore = function(t, e) {
|
|
118
|
+
return this.endOf(e) < O(t);
|
|
119
|
+
}, m.$g = function(t, e, n) {
|
|
120
|
+
return b.u(t) ? this[e] : this.set(n, t);
|
|
121
|
+
}, m.unix = function() {
|
|
122
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
123
|
+
}, m.valueOf = function() {
|
|
124
|
+
return this.$d.getTime();
|
|
125
|
+
}, m.startOf = function(t, e) {
|
|
126
|
+
var n = this, r = !!b.u(e) || e, f = b.p(t), l = function(t, e) {
|
|
127
|
+
var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
128
|
+
return r ? i : i.endOf(a);
|
|
129
|
+
}, $ = function(t, e) {
|
|
130
|
+
return b.w(n.toDate()[t].apply(n.toDate("s"), (r ? [
|
|
131
|
+
0,
|
|
132
|
+
0,
|
|
133
|
+
0,
|
|
134
|
+
0
|
|
135
|
+
] : [
|
|
136
|
+
23,
|
|
137
|
+
59,
|
|
138
|
+
59,
|
|
139
|
+
999
|
|
140
|
+
]).slice(e)), n);
|
|
141
|
+
}, y = this.$W, M = this.$M, m = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
142
|
+
switch (f) {
|
|
143
|
+
case h: return r ? l(1, 0) : l(31, 11);
|
|
144
|
+
case c: return r ? l(1, M) : l(0, M + 1);
|
|
145
|
+
case o:
|
|
146
|
+
var g = this.$locale().weekStart || 0, D = (y < g ? y + 7 : y) - g;
|
|
147
|
+
return l(r ? m - D : m + (6 - D), M);
|
|
148
|
+
case a:
|
|
149
|
+
case d: return $(v + "Hours", 0);
|
|
150
|
+
case u: return $(v + "Minutes", 1);
|
|
151
|
+
case s: return $(v + "Seconds", 2);
|
|
152
|
+
case i: return $(v + "Milliseconds", 3);
|
|
153
|
+
default: return this.clone();
|
|
154
|
+
}
|
|
155
|
+
}, m.endOf = function(t) {
|
|
156
|
+
return this.startOf(t, !1);
|
|
157
|
+
}, m.$set = function(t, e) {
|
|
158
|
+
var n, o = b.p(t), f = "set" + (this.$u ? "UTC" : ""), l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o], $ = o === a ? this.$D + (e - this.$W) : e;
|
|
159
|
+
if (o === c || o === h) {
|
|
160
|
+
var y = this.clone().set(d, 1);
|
|
161
|
+
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
162
|
+
} else l && this.$d[l]($);
|
|
163
|
+
return this.init(), this;
|
|
164
|
+
}, m.set = function(t, e) {
|
|
165
|
+
return this.clone().$set(t, e);
|
|
166
|
+
}, m.get = function(t) {
|
|
167
|
+
return this[b.p(t)]();
|
|
168
|
+
}, m.add = function(r, f) {
|
|
169
|
+
var d, l = this;
|
|
170
|
+
r = Number(r);
|
|
171
|
+
var $ = b.p(f), y = function(t) {
|
|
172
|
+
var e = O(l);
|
|
173
|
+
return b.w(e.date(e.date() + Math.round(t * r)), l);
|
|
174
|
+
};
|
|
175
|
+
if ($ === c) return this.set(c, this.$M + r);
|
|
176
|
+
if ($ === h) return this.set(h, this.$y + r);
|
|
177
|
+
if ($ === a) return y(1);
|
|
178
|
+
if ($ === o) return y(7);
|
|
179
|
+
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1, m = this.$d.getTime() + r * M;
|
|
180
|
+
return b.w(m, this);
|
|
181
|
+
}, m.subtract = function(t, e) {
|
|
182
|
+
return this.add(-1 * t, e);
|
|
183
|
+
}, m.format = function(t) {
|
|
184
|
+
var e = this, n = this.$locale();
|
|
185
|
+
if (!this.isValid()) return n.invalidDate || l;
|
|
186
|
+
var r = t || "YYYY-MM-DDTHH:mm:ssZ", i = b.z(this), s = this.$H, u = this.$m, a = this.$M, o = n.weekdays, c = n.months, f = n.meridiem, h = function(t, n, i, s) {
|
|
187
|
+
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
188
|
+
}, d = function(t) {
|
|
189
|
+
return b.s(s % 12 || 12, t, "0");
|
|
190
|
+
}, $ = f || function(t, e, n) {
|
|
191
|
+
var r = t < 12 ? "AM" : "PM";
|
|
192
|
+
return n ? r.toLowerCase() : r;
|
|
193
|
+
};
|
|
194
|
+
return r.replace(y, (function(t, r) {
|
|
195
|
+
return r || function(t) {
|
|
196
|
+
switch (t) {
|
|
197
|
+
case "YY": return String(e.$y).slice(-2);
|
|
198
|
+
case "YYYY": return b.s(e.$y, 4, "0");
|
|
199
|
+
case "M": return a + 1;
|
|
200
|
+
case "MM": return b.s(a + 1, 2, "0");
|
|
201
|
+
case "MMM": return h(n.monthsShort, a, c, 3);
|
|
202
|
+
case "MMMM": return h(c, a);
|
|
203
|
+
case "D": return e.$D;
|
|
204
|
+
case "DD": return b.s(e.$D, 2, "0");
|
|
205
|
+
case "d": return String(e.$W);
|
|
206
|
+
case "dd": return h(n.weekdaysMin, e.$W, o, 2);
|
|
207
|
+
case "ddd": return h(n.weekdaysShort, e.$W, o, 3);
|
|
208
|
+
case "dddd": return o[e.$W];
|
|
209
|
+
case "H": return String(s);
|
|
210
|
+
case "HH": return b.s(s, 2, "0");
|
|
211
|
+
case "h": return d(1);
|
|
212
|
+
case "hh": return d(2);
|
|
213
|
+
case "a": return $(s, u, !0);
|
|
214
|
+
case "A": return $(s, u, !1);
|
|
215
|
+
case "m": return String(u);
|
|
216
|
+
case "mm": return b.s(u, 2, "0");
|
|
217
|
+
case "s": return String(e.$s);
|
|
218
|
+
case "ss": return b.s(e.$s, 2, "0");
|
|
219
|
+
case "SSS": return b.s(e.$ms, 3, "0");
|
|
220
|
+
case "Z": return i;
|
|
221
|
+
}
|
|
222
|
+
return null;
|
|
223
|
+
}(t) || i.replace(":", "");
|
|
224
|
+
}));
|
|
225
|
+
}, m.utcOffset = function() {
|
|
226
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
227
|
+
}, m.diff = function(r, d, l) {
|
|
228
|
+
var $, y = this, M = b.p(d), m = O(r), v = (m.utcOffset() - this.utcOffset()) * e, g = this - m, D = function() {
|
|
229
|
+
return b.m(y, m);
|
|
230
|
+
};
|
|
231
|
+
switch (M) {
|
|
232
|
+
case h:
|
|
233
|
+
$ = D() / 12;
|
|
234
|
+
break;
|
|
235
|
+
case c:
|
|
236
|
+
$ = D();
|
|
237
|
+
break;
|
|
238
|
+
case f:
|
|
239
|
+
$ = D() / 3;
|
|
240
|
+
break;
|
|
241
|
+
case o:
|
|
242
|
+
$ = (g - v) / 6048e5;
|
|
243
|
+
break;
|
|
244
|
+
case a:
|
|
245
|
+
$ = (g - v) / 864e5;
|
|
246
|
+
break;
|
|
247
|
+
case u:
|
|
248
|
+
$ = g / n;
|
|
249
|
+
break;
|
|
250
|
+
case s:
|
|
251
|
+
$ = g / e;
|
|
252
|
+
break;
|
|
253
|
+
case i:
|
|
254
|
+
$ = g / t;
|
|
255
|
+
break;
|
|
256
|
+
default: $ = g;
|
|
257
|
+
}
|
|
258
|
+
return l ? $ : b.a($);
|
|
259
|
+
}, m.daysInMonth = function() {
|
|
260
|
+
return this.endOf(c).$D;
|
|
261
|
+
}, m.$locale = function() {
|
|
262
|
+
return D[this.$L];
|
|
263
|
+
}, m.locale = function(t, e) {
|
|
264
|
+
if (!t) return this.$L;
|
|
265
|
+
var n = this.clone(), r = w(t, e, !0);
|
|
266
|
+
return r && (n.$L = r), n;
|
|
267
|
+
}, m.clone = function() {
|
|
268
|
+
return b.w(this.$d, this);
|
|
269
|
+
}, m.toDate = function() {
|
|
270
|
+
return new Date(this.valueOf());
|
|
271
|
+
}, m.toJSON = function() {
|
|
272
|
+
return this.isValid() ? this.toISOString() : null;
|
|
273
|
+
}, m.toISOString = function() {
|
|
274
|
+
return this.$d.toISOString();
|
|
275
|
+
}, m.toString = function() {
|
|
276
|
+
return this.$d.toUTCString();
|
|
277
|
+
}, M;
|
|
278
|
+
}(), k = _.prototype;
|
|
279
|
+
return O.prototype = k, [
|
|
280
|
+
["$ms", r],
|
|
281
|
+
["$s", i],
|
|
282
|
+
["$m", s],
|
|
283
|
+
["$H", u],
|
|
284
|
+
["$W", a],
|
|
285
|
+
["$M", c],
|
|
286
|
+
["$y", h],
|
|
287
|
+
["$D", d]
|
|
288
|
+
].forEach((function(t) {
|
|
289
|
+
k[t[1]] = function(e) {
|
|
290
|
+
return this.$g(e, t[0], t[1]);
|
|
291
|
+
};
|
|
292
|
+
})), O.extend = function(t, e) {
|
|
293
|
+
return t.$i || (t(e, _, O), t.$i = !0), O;
|
|
294
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t) {
|
|
295
|
+
return O(1e3 * t);
|
|
296
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
297
|
+
}));
|
|
298
|
+
}));
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/relativeTime.js
|
|
301
|
+
var require_relativeTime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
302
|
+
(function(r, e) {
|
|
303
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (r = "undefined" != typeof globalThis ? globalThis : r || self).dayjs_plugin_relativeTime = e();
|
|
304
|
+
})(exports, (function() {
|
|
305
|
+
"use strict";
|
|
306
|
+
return function(r, e, t) {
|
|
307
|
+
r = r || {};
|
|
308
|
+
var n = e.prototype, o = {
|
|
309
|
+
future: "in %s",
|
|
310
|
+
past: "%s ago",
|
|
311
|
+
s: "a few seconds",
|
|
312
|
+
m: "a minute",
|
|
313
|
+
mm: "%d minutes",
|
|
314
|
+
h: "an hour",
|
|
315
|
+
hh: "%d hours",
|
|
316
|
+
d: "a day",
|
|
317
|
+
dd: "%d days",
|
|
318
|
+
M: "a month",
|
|
319
|
+
MM: "%d months",
|
|
320
|
+
y: "a year",
|
|
321
|
+
yy: "%d years"
|
|
322
|
+
};
|
|
323
|
+
function i(r, e, t, o) {
|
|
324
|
+
return n.fromToBase(r, e, t, o);
|
|
325
|
+
}
|
|
326
|
+
t.en.relativeTime = o, n.fromToBase = function(e, n, i, d, u) {
|
|
327
|
+
for (var f, a, s, l = i.$locale().relativeTime || o, h = r.thresholds || [
|
|
328
|
+
{
|
|
329
|
+
l: "s",
|
|
330
|
+
r: 44,
|
|
331
|
+
d: "second"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
l: "m",
|
|
335
|
+
r: 89
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
l: "mm",
|
|
339
|
+
r: 44,
|
|
340
|
+
d: "minute"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
l: "h",
|
|
344
|
+
r: 89
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
l: "hh",
|
|
348
|
+
r: 21,
|
|
349
|
+
d: "hour"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
l: "d",
|
|
353
|
+
r: 35
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
l: "dd",
|
|
357
|
+
r: 25,
|
|
358
|
+
d: "day"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
l: "M",
|
|
362
|
+
r: 45
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
l: "MM",
|
|
366
|
+
r: 10,
|
|
367
|
+
d: "month"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
l: "y",
|
|
371
|
+
r: 17
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
l: "yy",
|
|
375
|
+
d: "year"
|
|
376
|
+
}
|
|
377
|
+
], m = h.length, c = 0; c < m; c += 1) {
|
|
378
|
+
var y = h[c];
|
|
379
|
+
y.d && (f = d ? t(e).diff(i, y.d, !0) : i.diff(e, y.d, !0));
|
|
380
|
+
var p = (r.rounding || Math.round)(Math.abs(f));
|
|
381
|
+
if (s = f > 0, p <= y.r || !y.r) {
|
|
382
|
+
p <= 1 && c > 0 && (y = h[c - 1]);
|
|
383
|
+
var v = l[y.l];
|
|
384
|
+
u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n, y.l, s);
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if (n) return a;
|
|
389
|
+
var M = s ? l.future : l.past;
|
|
390
|
+
return "function" == typeof M ? M(a) : M.replace("%s", a);
|
|
391
|
+
}, n.to = function(r, e) {
|
|
392
|
+
return i(r, e, this, !0);
|
|
393
|
+
}, n.from = function(r, e) {
|
|
394
|
+
return i(r, e, this);
|
|
395
|
+
};
|
|
396
|
+
var d = function(r) {
|
|
397
|
+
return r.$u ? t.utc() : t();
|
|
398
|
+
};
|
|
399
|
+
n.toNow = function(r) {
|
|
400
|
+
return this.to(d(this), r);
|
|
401
|
+
}, n.fromNow = function(r) {
|
|
402
|
+
return this.from(d(this), r);
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
}));
|
|
406
|
+
}));
|
|
407
|
+
//#endregion
|
|
408
|
+
export { require_dayjs_min as n, require_relativeTime as t };
|