zyjj-web-sdk 1.1.15 → 1.1.17
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/lib/index.js +98 -98
- package/lib/index.umd.cjs +9 -9
- package/lib/types/local-task.d.ts +2 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var $o = (e, t, r) => t in e ?
|
|
1
|
+
var Ao = Object.defineProperty;
|
|
2
|
+
var $o = (e, t, r) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var xt = (e, t, r) => $o(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { Message as Ce, Typography as bn, Space as br, Input as ke, Button as
|
|
4
|
+
import { Message as Ce, Typography as bn, Space as br, Input as ke, Button as Ie, Modal as Fo, Form as se, Table as Mo } from "@arco-design/web-react";
|
|
5
5
|
import Uo from "cos-js-sdk-v5";
|
|
6
6
|
import Bo from "ali-oss";
|
|
7
7
|
import wn, { useState as De, useRef as zo, useEffect as Bt } from "react";
|
|
@@ -322,10 +322,10 @@ function bt(e, t, r) {
|
|
|
322
322
|
if (h.endsWith(b, "{}"))
|
|
323
323
|
b = n ? b : b.slice(0, -2), m = JSON.stringify(m);
|
|
324
324
|
else if (h.isArray(m) && Os(m) || (h.isFileList(m) || h.endsWith(b, "[]")) && (M = h.toArray(m)))
|
|
325
|
-
return b = jn(b), M.forEach(function(x,
|
|
325
|
+
return b = jn(b), M.forEach(function(x, A) {
|
|
326
326
|
!(h.isUndefined(x) || x === null) && t.append(
|
|
327
327
|
// eslint-disable-next-line no-nested-ternary
|
|
328
|
-
i === !0 ? Lr([b],
|
|
328
|
+
i === !0 ? Lr([b], A, s) : i === null ? b : b + "[]",
|
|
329
329
|
d(x)
|
|
330
330
|
);
|
|
331
331
|
}), !1;
|
|
@@ -453,7 +453,7 @@ class Wr {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const In = {
|
|
457
457
|
silentJSONParsing: !0,
|
|
458
458
|
forcedJSONParsing: !0,
|
|
459
459
|
clarifyTimeoutError: !1
|
|
@@ -465,24 +465,24 @@ const An = {
|
|
|
465
465
|
Blob: Ps
|
|
466
466
|
},
|
|
467
467
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
468
|
-
},
|
|
468
|
+
}, An = typeof window < "u" && typeof document < "u", js = ((e) => An && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Ns = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
469
469
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
470
470
|
__proto__: null,
|
|
471
|
-
hasBrowserEnv:
|
|
471
|
+
hasBrowserEnv: An,
|
|
472
472
|
hasStandardBrowserEnv: js,
|
|
473
473
|
hasStandardBrowserWebWorkerEnv: Ns
|
|
474
474
|
}, Symbol.toStringTag, { value: "Module" })), we = {
|
|
475
475
|
...ks,
|
|
476
476
|
...xs
|
|
477
477
|
};
|
|
478
|
-
function
|
|
478
|
+
function Is(e, t) {
|
|
479
479
|
return bt(e, new we.classes.URLSearchParams(), Object.assign({
|
|
480
480
|
visitor: function(r, n, o, s) {
|
|
481
481
|
return we.isNode && h.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
482
482
|
}
|
|
483
483
|
}, t));
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function As(e) {
|
|
486
486
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
487
487
|
}
|
|
488
488
|
function $s(e) {
|
|
@@ -504,7 +504,7 @@ function $n(e) {
|
|
|
504
504
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
505
505
|
const r = {};
|
|
506
506
|
return h.forEachEntry(e, (n, o) => {
|
|
507
|
-
t(
|
|
507
|
+
t(As(n), o, r, 0);
|
|
508
508
|
}), r;
|
|
509
509
|
}
|
|
510
510
|
return null;
|
|
@@ -520,7 +520,7 @@ function Fs(e, t, r) {
|
|
|
520
520
|
return (0, JSON.stringify)(e);
|
|
521
521
|
}
|
|
522
522
|
const et = {
|
|
523
|
-
transitional:
|
|
523
|
+
transitional: In,
|
|
524
524
|
adapter: ["xhr", "http"],
|
|
525
525
|
transformRequest: [function(t, r) {
|
|
526
526
|
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = h.isObject(t);
|
|
@@ -535,7 +535,7 @@ const et = {
|
|
|
535
535
|
let c;
|
|
536
536
|
if (s) {
|
|
537
537
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
538
|
-
return
|
|
538
|
+
return Is(t, this.formSerializer).toString();
|
|
539
539
|
if ((c = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
540
540
|
const u = this.env && this.env.FormData;
|
|
541
541
|
return bt(
|
|
@@ -953,7 +953,7 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
953
953
|
n(new F("Network Error", F.ERR_NETWORK, e, f)), f = null;
|
|
954
954
|
}, f.ontimeout = function() {
|
|
955
955
|
let N = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
956
|
-
const M = e.transitional ||
|
|
956
|
+
const M = e.transitional || In;
|
|
957
957
|
e.timeoutErrorMessage && (N = e.timeoutErrorMessage), n(new F(
|
|
958
958
|
N,
|
|
959
959
|
M.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
|
|
@@ -1020,22 +1020,22 @@ const Yr = (e) => `- ${e}`, Zs = (e) => h.isFunction(e) || e === null || e === !
|
|
|
1020
1020
|
},
|
|
1021
1021
|
adapters: Vt
|
|
1022
1022
|
};
|
|
1023
|
-
function
|
|
1023
|
+
function It(e) {
|
|
1024
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1025
1025
|
throw new tt(null, e);
|
|
1026
1026
|
}
|
|
1027
1027
|
function Jr(e) {
|
|
1028
|
-
return
|
|
1028
|
+
return It(e), e.headers = he.from(e.headers), e.data = kt.call(
|
|
1029
1029
|
e,
|
|
1030
1030
|
e.transformRequest
|
|
1031
1031
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Un.getAdapter(e.adapter || et.adapter)(e).then(function(n) {
|
|
1032
|
-
return
|
|
1032
|
+
return It(e), n.data = kt.call(
|
|
1033
1033
|
e,
|
|
1034
1034
|
e.transformResponse,
|
|
1035
1035
|
n
|
|
1036
1036
|
), n.headers = he.from(n.headers), n;
|
|
1037
1037
|
}, function(n) {
|
|
1038
|
-
return Fn(n) || (
|
|
1038
|
+
return Fn(n) || (It(e), n && n.response && (n.response.data = kt.call(
|
|
1039
1039
|
e,
|
|
1040
1040
|
e.transformResponse,
|
|
1041
1041
|
n.response
|
|
@@ -1153,7 +1153,7 @@ const Lt = {
|
|
|
1153
1153
|
assertOptions: Qs,
|
|
1154
1154
|
validators: Sr
|
|
1155
1155
|
}, Re = Lt.validators;
|
|
1156
|
-
class
|
|
1156
|
+
class Ae {
|
|
1157
1157
|
constructor(t) {
|
|
1158
1158
|
this.defaults = t, this.interceptors = {
|
|
1159
1159
|
request: new Wr(),
|
|
@@ -1248,7 +1248,7 @@ class Ie {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1251
|
-
|
|
1251
|
+
Ae.prototype[t] = function(r, n) {
|
|
1252
1252
|
return this.request(ze(n || {}, {
|
|
1253
1253
|
method: t,
|
|
1254
1254
|
url: r,
|
|
@@ -1269,7 +1269,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1269
1269
|
}));
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
|
|
1272
|
+
Ae.prototype[t] = r(), Ae.prototype[t + "Form"] = r(!0);
|
|
1273
1273
|
});
|
|
1274
1274
|
class _r {
|
|
1275
1275
|
constructor(t) {
|
|
@@ -1415,13 +1415,13 @@ Object.entries(Tt).forEach(([e, t]) => {
|
|
|
1415
1415
|
Tt[t] = e;
|
|
1416
1416
|
});
|
|
1417
1417
|
function zn(e) {
|
|
1418
|
-
const t = new
|
|
1419
|
-
return h.extend(r,
|
|
1418
|
+
const t = new Ae(e), r = En(Ae.prototype.request, t);
|
|
1419
|
+
return h.extend(r, Ae.prototype, t, { allOwnKeys: !0 }), h.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1420
1420
|
return zn(ze(e, o));
|
|
1421
1421
|
}, r;
|
|
1422
1422
|
}
|
|
1423
1423
|
const H = zn(et);
|
|
1424
|
-
H.Axios =
|
|
1424
|
+
H.Axios = Ae;
|
|
1425
1425
|
H.CanceledError = tt;
|
|
1426
1426
|
H.CancelToken = _r;
|
|
1427
1427
|
H.isCancel = Fn;
|
|
@@ -1485,7 +1485,7 @@ var Ke;
|
|
|
1485
1485
|
})(Ke || (Ke = {}));
|
|
1486
1486
|
var Wt;
|
|
1487
1487
|
(function(e) {
|
|
1488
|
-
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.DownloadFile = 11] = "DownloadFile";
|
|
1488
|
+
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.OpenTool = 10] = "OpenTool", e[e.DownloadFile = 11] = "DownloadFile";
|
|
1489
1489
|
})(Wt || (Wt = {}));
|
|
1490
1490
|
var Ht;
|
|
1491
1491
|
(function(e) {
|
|
@@ -1577,7 +1577,7 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1577
1577
|
var n;
|
|
1578
1578
|
const r = document.createElement("a");
|
|
1579
1579
|
r.style.display = "none", r.href = e, t ? r.download = t : r.download = ((n = e.split("?").shift()) == null ? void 0 : n.split("/").pop()) || e, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(e);
|
|
1580
|
-
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", gi = (e) => G(`${Y}/common/user/login`, e, "post"), bi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), wi = (e) => G(`${Y}/common/user/register`, e, "post"), Ei = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Tn = () => G(`${Y}/user/user/info`, {}, "get", !1), Si = (e) => G(`${Y}/user/user/info`, e, "put"), _i = (e) => G(`${Y}/user/point/deducting`, e, "post"), Oi = (e) => G(`${Y}/common/tool/list?${qn(e)}`, {}, "get"), vi = () => G(`${Y}/common/tool/all`, {}, "get"), Ri = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Ci = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Di = () => G(`${Y}/common/tool/tags`, {}, "get"), Wn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), Pi = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), xi = (e) => G(`${Y}/user/task`, e, "post"), ji = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Hn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), Ni = () => G(`${Y}/common/material/tags`, {}, "get"), ki = (e) => G(`${Y}/user/material/${e}`, {}, "get"),
|
|
1580
|
+
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", gi = (e) => G(`${Y}/common/user/login`, e, "post"), bi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), wi = (e) => G(`${Y}/common/user/register`, e, "post"), Ei = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Tn = () => G(`${Y}/user/user/info`, {}, "get", !1), Si = (e) => G(`${Y}/user/user/info`, e, "put"), _i = (e) => G(`${Y}/user/point/deducting`, e, "post"), Oi = (e) => G(`${Y}/common/tool/list?${qn(e)}`, {}, "get"), vi = () => G(`${Y}/common/tool/all`, {}, "get"), Ri = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Ci = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Di = () => G(`${Y}/common/tool/tags`, {}, "get"), Wn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), Pi = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), xi = (e) => G(`${Y}/user/task`, e, "post"), ji = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Hn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), Ni = () => G(`${Y}/common/material/tags`, {}, "get"), ki = (e) => G(`${Y}/user/material/${e}`, {}, "get"), Ii = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), gc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method), bc = (e) => G(`${yi}${e.url}`, e.data || {}, e.method);
|
|
1581
1581
|
var Kt;
|
|
1582
1582
|
(function(e) {
|
|
1583
1583
|
e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
|
|
@@ -1606,7 +1606,7 @@ var tr;
|
|
|
1606
1606
|
(function(e) {
|
|
1607
1607
|
e[e.Input = 0] = "Input", e[e.Select = 1] = "Select", e[e.TextArea = 2] = "TextArea", e[e.FileUpload = 3] = "FileUpload", e[e.Slider = 4] = "Slider", e[e.Audio = 5] = "Audio", e[e.Number = 6] = "Number", e[e.ImageList = 7] = "ImageList", e[e.Image = 8] = "Image", e[e.Alert = 9] = "Alert", e[e.Video = 10] = "Video", e[e.MarkDown = 11] = "MarkDown";
|
|
1608
1608
|
})(tr || (tr = {}));
|
|
1609
|
-
var
|
|
1609
|
+
var Ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1610
1610
|
function $i(e) {
|
|
1611
1611
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1612
1612
|
}
|
|
@@ -1672,10 +1672,10 @@ function Mi() {
|
|
|
1672
1672
|
L.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, L);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
var
|
|
1675
|
+
var A = !1, V = !1, B = !1, Z = !1, I = !1, ee;
|
|
1676
1676
|
ee = Symbol.for("react.module.reference");
|
|
1677
1677
|
function T(a) {
|
|
1678
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s ||
|
|
1678
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || I || a === o || a === d || a === l || Z || a === P || A || V || B || typeof a == "object" && a !== null && (a.$$typeof === S || a.$$typeof === f || a.$$typeof === i || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
1679
1679
|
// types supported by any Flight configuration anywhere since
|
|
1680
1680
|
// we don't know which Flight build this will end up being used
|
|
1681
1681
|
// with.
|
|
@@ -1980,7 +1980,7 @@ function Mi() {
|
|
|
1980
1980
|
ref: !0,
|
|
1981
1981
|
__self: !0,
|
|
1982
1982
|
__source: !0
|
|
1983
|
-
}, kr,
|
|
1983
|
+
}, kr, Ir, Rt;
|
|
1984
1984
|
Rt = {};
|
|
1985
1985
|
function wo(a) {
|
|
1986
1986
|
if (ot.call(a, "ref")) {
|
|
@@ -2018,7 +2018,7 @@ function Mi() {
|
|
|
2018
2018
|
function Oo(a, p) {
|
|
2019
2019
|
{
|
|
2020
2020
|
var g = function() {
|
|
2021
|
-
|
|
2021
|
+
Ir || (Ir = !0, j("%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)", p));
|
|
2022
2022
|
};
|
|
2023
2023
|
g.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
2024
2024
|
get: g,
|
|
@@ -2073,13 +2073,13 @@ function Mi() {
|
|
|
2073
2073
|
return vo(a, k, oe, z, v, Te.current, $);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
|
-
var Ct = M.ReactCurrentOwner,
|
|
2076
|
+
var Ct = M.ReactCurrentOwner, Ar = M.ReactDebugCurrentFrame;
|
|
2077
2077
|
function Ue(a) {
|
|
2078
2078
|
if (a) {
|
|
2079
2079
|
var p = a._owner, g = nt(a.type, a._source, p ? p.type : null);
|
|
2080
|
-
|
|
2080
|
+
Ar.setExtraStackFrame(g);
|
|
2081
2081
|
} else
|
|
2082
|
-
|
|
2082
|
+
Ar.setExtraStackFrame(null);
|
|
2083
2083
|
}
|
|
2084
2084
|
var Dt;
|
|
2085
2085
|
Dt = !1;
|
|
@@ -2219,8 +2219,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2219
2219
|
function No(a, p, g) {
|
|
2220
2220
|
return Br(a, p, g, !1);
|
|
2221
2221
|
}
|
|
2222
|
-
var ko = No,
|
|
2223
|
-
Ye.Fragment = n, Ye.jsx = ko, Ye.jsxs =
|
|
2222
|
+
var ko = No, Io = jo;
|
|
2223
|
+
Ye.Fragment = n, Ye.jsx = ko, Ye.jsxs = Io;
|
|
2224
2224
|
}()), Ye;
|
|
2225
2225
|
}
|
|
2226
2226
|
process.env.NODE_ENV === "production" ? rr.exports = Fi() : rr.exports = Mi();
|
|
@@ -2228,14 +2228,14 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2228
2228
|
(function(e, t) {
|
|
2229
2229
|
(function(r, n) {
|
|
2230
2230
|
e.exports = n();
|
|
2231
|
-
})(
|
|
2231
|
+
})(Ai, function() {
|
|
2232
2232
|
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", l = "week", f = "month", S = "quarter", P = "year", m = "date", b = "Invalid Date", N = /^(\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, j = { 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(O) {
|
|
2233
2233
|
var w = ["th", "st", "nd", "rd"], y = O % 100;
|
|
2234
2234
|
return "[" + O + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
|
|
2235
2235
|
} }, x = function(O, w, y) {
|
|
2236
2236
|
var _ = String(O);
|
|
2237
2237
|
return !_ || _.length >= w ? O : "" + Array(w + 1 - _.length).join(y) + O;
|
|
2238
|
-
},
|
|
2238
|
+
}, A = { s: x, z: function(O) {
|
|
2239
2239
|
var w = -O.utcOffset(), y = Math.abs(w), _ = Math.floor(y / 60), E = y % 60;
|
|
2240
2240
|
return (w <= 0 ? "+" : "-") + x(_, 2, "0") + ":" + x(E, 2, "0");
|
|
2241
2241
|
}, m: function O(w, y) {
|
|
@@ -2250,7 +2250,7 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2250
2250
|
return O === void 0;
|
|
2251
2251
|
} }, V = "en", B = {};
|
|
2252
2252
|
B[V] = j;
|
|
2253
|
-
var Z = "$isDayjsObject",
|
|
2253
|
+
var Z = "$isDayjsObject", I = function(O) {
|
|
2254
2254
|
return O instanceof xe || !(!O || !O[Z]);
|
|
2255
2255
|
}, ee = function O(w, y, _) {
|
|
2256
2256
|
var E;
|
|
@@ -2266,11 +2266,11 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2266
2266
|
}
|
|
2267
2267
|
return !_ && E && (V = E), E || !_ && V;
|
|
2268
2268
|
}, T = function(O, w) {
|
|
2269
|
-
if (
|
|
2269
|
+
if (I(O)) return O.clone();
|
|
2270
2270
|
var y = typeof w == "object" ? w : {};
|
|
2271
2271
|
return y.date = O, y.args = arguments, new xe(y);
|
|
2272
|
-
}, U =
|
|
2273
|
-
U.l = ee, U.i =
|
|
2272
|
+
}, U = A;
|
|
2273
|
+
U.l = ee, U.i = I, U.w = function(O, w) {
|
|
2274
2274
|
return T(O, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
2275
2275
|
};
|
|
2276
2276
|
var xe = function() {
|
|
@@ -2495,7 +2495,7 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2495
2495
|
};
|
|
2496
2496
|
}), T.extend = function(O, w) {
|
|
2497
2497
|
return O.$i || (O(w, xe, T), O.$i = !0), T;
|
|
2498
|
-
}, T.locale = ee, T.isDayjs =
|
|
2498
|
+
}, T.locale = ee, T.isDayjs = I, T.unix = function(O) {
|
|
2499
2499
|
return T(1e3 * O);
|
|
2500
2500
|
}, T.en = B[V], T.Ls = B, T.p = {}, T;
|
|
2501
2501
|
});
|
|
@@ -2769,7 +2769,7 @@ var vr = {
|
|
|
2769
2769
|
if (!nr(r, t))
|
|
2770
2770
|
return Qi(e, r, t);
|
|
2771
2771
|
const n = r[t];
|
|
2772
|
-
return e.finalized_ || !Oe(n) ? n : n ===
|
|
2772
|
+
return e.finalized_ || !Oe(n) ? n : n === At(e.base_, t) ? ($t(e), e.copy_[t] = cr(n, e)) : n;
|
|
2773
2773
|
},
|
|
2774
2774
|
has(e, t) {
|
|
2775
2775
|
return t in je(e);
|
|
@@ -2782,7 +2782,7 @@ var vr = {
|
|
|
2782
2782
|
if (n != null && n.set)
|
|
2783
2783
|
return n.set.call(e.draft_, r), !0;
|
|
2784
2784
|
if (!e.modified_) {
|
|
2785
|
-
const o =
|
|
2785
|
+
const o = At(je(e), t), s = o == null ? void 0 : o[ce];
|
|
2786
2786
|
if (s && s.base_ === r)
|
|
2787
2787
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
2788
2788
|
if (Gi(r, o) && (r !== void 0 || nr(e.base_, t)))
|
|
@@ -2794,7 +2794,7 @@ var vr = {
|
|
|
2794
2794
|
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
2795
2795
|
},
|
|
2796
2796
|
deleteProperty(e, t) {
|
|
2797
|
-
return
|
|
2797
|
+
return At(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, $t(e), ar(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
2798
2798
|
},
|
|
2799
2799
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
2800
2800
|
// the same guarantee in ES5 mode.
|
|
@@ -2828,7 +2828,7 @@ Ze.deleteProperty = function(e, t) {
|
|
|
2828
2828
|
Ze.set = function(e, t, r) {
|
|
2829
2829
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ae(14), vr.set.call(this, e[0], t, r, e[0]);
|
|
2830
2830
|
};
|
|
2831
|
-
function
|
|
2831
|
+
function At(e, t) {
|
|
2832
2832
|
const r = e[ce];
|
|
2833
2833
|
return (r ? je(r) : e)[t];
|
|
2834
2834
|
}
|
|
@@ -3147,7 +3147,7 @@ function ro(e, ...t) {
|
|
|
3147
3147
|
arguments
|
|
3148
3148
|
);
|
|
3149
3149
|
}, ...N);
|
|
3150
|
-
let
|
|
3150
|
+
let A = !0;
|
|
3151
3151
|
const V = P(function() {
|
|
3152
3152
|
i++;
|
|
3153
3153
|
const Z = cn(
|
|
@@ -3155,8 +3155,8 @@ function ro(e, ...t) {
|
|
|
3155
3155
|
arguments
|
|
3156
3156
|
);
|
|
3157
3157
|
if (c = x.apply(null, Z), process.env.NODE_ENV !== "production") {
|
|
3158
|
-
const { identityFunctionCheck:
|
|
3159
|
-
if (
|
|
3158
|
+
const { identityFunctionCheck: I, inputStabilityCheck: ee } = ca(A, b);
|
|
3159
|
+
if (I.shouldRun && I.run(
|
|
3160
3160
|
d,
|
|
3161
3161
|
Z,
|
|
3162
3162
|
c
|
|
@@ -3171,7 +3171,7 @@ function ro(e, ...t) {
|
|
|
3171
3171
|
arguments
|
|
3172
3172
|
);
|
|
3173
3173
|
}
|
|
3174
|
-
|
|
3174
|
+
A && (A = !1);
|
|
3175
3175
|
}
|
|
3176
3176
|
return c;
|
|
3177
3177
|
}, ...M);
|
|
@@ -3413,10 +3413,10 @@ var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3413
3413
|
b = j, P.abort();
|
|
3414
3414
|
}
|
|
3415
3415
|
const M = async function() {
|
|
3416
|
-
var
|
|
3416
|
+
var A, V;
|
|
3417
3417
|
let j;
|
|
3418
3418
|
try {
|
|
3419
|
-
let B = (
|
|
3419
|
+
let B = (A = n == null ? void 0 : n.condition) == null ? void 0 : A.call(n, u, {
|
|
3420
3420
|
getState: l,
|
|
3421
3421
|
extra: f
|
|
3422
3422
|
});
|
|
@@ -3425,7 +3425,7 @@ var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3425
3425
|
name: "ConditionError",
|
|
3426
3426
|
message: "Aborted due to condition callback returning false."
|
|
3427
3427
|
};
|
|
3428
|
-
const Z = new Promise((
|
|
3428
|
+
const Z = new Promise((I, ee) => {
|
|
3429
3429
|
m = () => {
|
|
3430
3430
|
ee({
|
|
3431
3431
|
name: "AbortError",
|
|
@@ -3446,12 +3446,12 @@ var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3446
3446
|
requestId: S,
|
|
3447
3447
|
signal: P.signal,
|
|
3448
3448
|
abort: N,
|
|
3449
|
-
rejectWithValue: (
|
|
3450
|
-
fulfillWithValue: (
|
|
3451
|
-
})).then((
|
|
3452
|
-
if (
|
|
3453
|
-
throw
|
|
3454
|
-
return
|
|
3449
|
+
rejectWithValue: (I, ee) => new Ft(I, ee),
|
|
3450
|
+
fulfillWithValue: (I, ee) => new dn(I, ee)
|
|
3451
|
+
})).then((I) => {
|
|
3452
|
+
if (I instanceof Ft)
|
|
3453
|
+
throw I;
|
|
3454
|
+
return I instanceof dn ? o(I.payload, S, u, I.meta) : o(I, S, u);
|
|
3455
3455
|
})]);
|
|
3456
3456
|
} catch (B) {
|
|
3457
3457
|
j = B instanceof Ft ? i(null, S, u, B.payload, B.meta) : i(B, S, u);
|
|
@@ -3513,80 +3513,80 @@ function Da({
|
|
|
3513
3513
|
actionCreators: {},
|
|
3514
3514
|
sliceMatchers: []
|
|
3515
3515
|
}, l = {
|
|
3516
|
-
addCase(x,
|
|
3516
|
+
addCase(x, A) {
|
|
3517
3517
|
const V = typeof x == "string" ? x : x.type;
|
|
3518
3518
|
if (!V)
|
|
3519
3519
|
throw new Error(process.env.NODE_ENV === "production" ? X(12) : "`context.addCase` cannot be called with an empty action type");
|
|
3520
3520
|
if (V in d.sliceCaseReducersByType)
|
|
3521
3521
|
throw new Error(process.env.NODE_ENV === "production" ? X(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + V);
|
|
3522
|
-
return d.sliceCaseReducersByType[V] =
|
|
3522
|
+
return d.sliceCaseReducersByType[V] = A, l;
|
|
3523
3523
|
},
|
|
3524
|
-
addMatcher(x,
|
|
3524
|
+
addMatcher(x, A) {
|
|
3525
3525
|
return d.sliceMatchers.push({
|
|
3526
3526
|
matcher: x,
|
|
3527
|
-
reducer:
|
|
3527
|
+
reducer: A
|
|
3528
3528
|
}), l;
|
|
3529
3529
|
},
|
|
3530
|
-
exposeAction(x,
|
|
3531
|
-
return d.actionCreators[x] =
|
|
3530
|
+
exposeAction(x, A) {
|
|
3531
|
+
return d.actionCreators[x] = A, l;
|
|
3532
3532
|
},
|
|
3533
|
-
exposeCaseReducer(x,
|
|
3534
|
-
return d.sliceCaseReducersByName[x] =
|
|
3533
|
+
exposeCaseReducer(x, A) {
|
|
3534
|
+
return d.sliceCaseReducersByName[x] = A, l;
|
|
3535
3535
|
}
|
|
3536
3536
|
};
|
|
3537
3537
|
u.forEach((x) => {
|
|
3538
|
-
const
|
|
3538
|
+
const A = c[x], V = {
|
|
3539
3539
|
reducerName: x,
|
|
3540
3540
|
type: Ca(s, x),
|
|
3541
3541
|
createNotation: typeof o.reducers == "function"
|
|
3542
3542
|
};
|
|
3543
|
-
Na(
|
|
3543
|
+
Na(A) ? Ia(V, A, l, t) : ja(V, A, l);
|
|
3544
3544
|
});
|
|
3545
3545
|
function f() {
|
|
3546
3546
|
if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
|
|
3547
3547
|
throw new Error(process.env.NODE_ENV === "production" ? X(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
3548
|
-
const [x = {},
|
|
3548
|
+
const [x = {}, A = [], V = void 0] = typeof o.extraReducers == "function" ? no(o.extraReducers) : [o.extraReducers], B = {
|
|
3549
3549
|
...x,
|
|
3550
3550
|
...d.sliceCaseReducersByType
|
|
3551
3551
|
};
|
|
3552
3552
|
return ga(o.initialState, (Z) => {
|
|
3553
|
-
for (let
|
|
3554
|
-
Z.addCase(
|
|
3555
|
-
for (let
|
|
3556
|
-
Z.addMatcher(
|
|
3557
|
-
for (let
|
|
3558
|
-
Z.addMatcher(
|
|
3553
|
+
for (let I in B)
|
|
3554
|
+
Z.addCase(I, B[I]);
|
|
3555
|
+
for (let I of d.sliceMatchers)
|
|
3556
|
+
Z.addMatcher(I.matcher, I.reducer);
|
|
3557
|
+
for (let I of A)
|
|
3558
|
+
Z.addMatcher(I.matcher, I.reducer);
|
|
3559
3559
|
V && Z.addDefaultCase(V);
|
|
3560
3560
|
});
|
|
3561
3561
|
}
|
|
3562
3562
|
const S = (x) => x, P = /* @__PURE__ */ new Map();
|
|
3563
3563
|
let m;
|
|
3564
|
-
function b(x,
|
|
3565
|
-
return m || (m = f()), m(x,
|
|
3564
|
+
function b(x, A) {
|
|
3565
|
+
return m || (m = f()), m(x, A);
|
|
3566
3566
|
}
|
|
3567
3567
|
function N() {
|
|
3568
3568
|
return m || (m = f()), m.getInitialState();
|
|
3569
3569
|
}
|
|
3570
|
-
function M(x,
|
|
3570
|
+
function M(x, A = !1) {
|
|
3571
3571
|
function V(Z) {
|
|
3572
|
-
let
|
|
3573
|
-
if (typeof
|
|
3574
|
-
if (
|
|
3575
|
-
|
|
3572
|
+
let I = Z[x];
|
|
3573
|
+
if (typeof I > "u") {
|
|
3574
|
+
if (A)
|
|
3575
|
+
I = N();
|
|
3576
3576
|
else if (process.env.NODE_ENV !== "production")
|
|
3577
3577
|
throw new Error(process.env.NODE_ENV === "production" ? X(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
3578
3578
|
}
|
|
3579
|
-
return
|
|
3579
|
+
return I;
|
|
3580
3580
|
}
|
|
3581
3581
|
function B(Z = S) {
|
|
3582
|
-
const
|
|
3582
|
+
const I = fn(P, A, {
|
|
3583
3583
|
insert: () => /* @__PURE__ */ new WeakMap()
|
|
3584
3584
|
});
|
|
3585
|
-
return fn(
|
|
3585
|
+
return fn(I, Z, {
|
|
3586
3586
|
insert: () => {
|
|
3587
3587
|
const ee = {};
|
|
3588
3588
|
for (const [T, U] of Object.entries(o.selectors ?? {}))
|
|
3589
|
-
ee[T] = Pa(U, Z, N,
|
|
3589
|
+
ee[T] = Pa(U, Z, N, A);
|
|
3590
3590
|
return ee;
|
|
3591
3591
|
}
|
|
3592
3592
|
});
|
|
@@ -3608,10 +3608,10 @@ function Da({
|
|
|
3608
3608
|
getInitialState: N,
|
|
3609
3609
|
...M(i),
|
|
3610
3610
|
injectInto(x, {
|
|
3611
|
-
reducerPath:
|
|
3611
|
+
reducerPath: A,
|
|
3612
3612
|
...V
|
|
3613
3613
|
} = {}) {
|
|
3614
|
-
const B =
|
|
3614
|
+
const B = A ?? i;
|
|
3615
3615
|
return x.inject({
|
|
3616
3616
|
reducerPath: B,
|
|
3617
3617
|
reducer: b
|
|
@@ -3689,7 +3689,7 @@ function Na(e) {
|
|
|
3689
3689
|
function ka(e) {
|
|
3690
3690
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
3691
3691
|
}
|
|
3692
|
-
function
|
|
3692
|
+
function Ia({
|
|
3693
3693
|
type: e,
|
|
3694
3694
|
reducerName: t
|
|
3695
3695
|
}, r, n, o) {
|
|
@@ -3712,7 +3712,7 @@ function Aa({
|
|
|
3712
3712
|
}
|
|
3713
3713
|
function ct() {
|
|
3714
3714
|
}
|
|
3715
|
-
var
|
|
3715
|
+
var Aa = (e, t) => {
|
|
3716
3716
|
if (typeof e != "function")
|
|
3717
3717
|
throw new Error(process.env.NODE_ENV === "production" ? X(32) : `${t} is not a function`);
|
|
3718
3718
|
}, Dr = "listenerMiddleware", $a = (e) => {
|
|
@@ -3730,7 +3730,7 @@ var Ia = (e, t) => {
|
|
|
3730
3730
|
else if (n)
|
|
3731
3731
|
o = n;
|
|
3732
3732
|
else if (!o) throw new Error(process.env.NODE_ENV === "production" ? X(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
3733
|
-
return
|
|
3733
|
+
return Aa(s, "options.listener"), {
|
|
3734
3734
|
predicate: o,
|
|
3735
3735
|
type: t,
|
|
3736
3736
|
effect: s
|
|
@@ -4030,7 +4030,7 @@ function fo(e) {
|
|
|
4030
4030
|
}, 1e3);
|
|
4031
4031
|
});
|
|
4032
4032
|
};
|
|
4033
|
-
return D.jsxs(br, { children: [D.jsx(ke, { onChange: e.onChange, placeholder: "输入验证码" }), D.jsx(
|
|
4033
|
+
return D.jsxs(br, { children: [D.jsx(ke, { onChange: e.onChange, placeholder: "输入验证码" }), D.jsx(Ie, { disabled: t != ut, type: "primary", onClick: o, children: t != ut ? `剩余${t}秒` : "获取验证码" })] });
|
|
4034
4034
|
}
|
|
4035
4035
|
const uc = (e) => {
|
|
4036
4036
|
const [t, r] = De(""), [n, o] = De(!0), s = (c) => {
|
|
@@ -4040,7 +4040,7 @@ const uc = (e) => {
|
|
|
4040
4040
|
Ce.success("注册成功,请登录"), o(!0);
|
|
4041
4041
|
});
|
|
4042
4042
|
}, i = () => Ln(t);
|
|
4043
|
-
return D.jsxs(se, { autoComplete: "off", onSubmit: s, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: D.jsx(ke.Password, { placeholder: "输入密码" }) }), n ? null : D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: i }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(
|
|
4043
|
+
return D.jsxs(se, { autoComplete: "off", onSubmit: s, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: D.jsx(ke.Password, { placeholder: "输入密码" }) }), n ? null : D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: i }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ie, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), D.jsx(Ie, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? D.jsx(Ie, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] }) })] });
|
|
4044
4044
|
};
|
|
4045
4045
|
function lc(e) {
|
|
4046
4046
|
const [t, r] = De(""), n = (s) => {
|
|
@@ -4053,7 +4053,7 @@ function lc(e) {
|
|
|
4053
4053
|
Ce.success("密码重置成功,请登录"), e.onLogin();
|
|
4054
4054
|
});
|
|
4055
4055
|
}, o = () => Ln(t);
|
|
4056
|
-
return D.jsx("div", { children: D.jsxs(se, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: o }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: D.jsx(ke, { type: "password", placeholder: "输入新密码" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: D.jsx(ke, { type: "password", placeholder: "再输入一遍新密码" }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(
|
|
4056
|
+
return D.jsx("div", { children: D.jsxs(se, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: o }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: D.jsx(ke, { type: "password", placeholder: "输入新密码" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: D.jsx(ke, { type: "password", placeholder: "再输入一遍新密码" }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ie, { type: "primary", htmlType: "submit", children: "立即重置" }), D.jsx(Ie, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
|
|
4057
4057
|
}
|
|
4058
4058
|
function wc(e) {
|
|
4059
4059
|
const [t, r] = De(!1);
|
|
@@ -4080,7 +4080,7 @@ function Ec(e) {
|
|
|
4080
4080
|
let l = D.jsx(D.Fragment, {});
|
|
4081
4081
|
const f = d.data;
|
|
4082
4082
|
return d.tp == "input" ? l = D.jsx(ke, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), D.jsx(se.Item, { label: d.label, field: d.field, children: l }, d.field);
|
|
4083
|
-
}), D.jsx(se.Item, { children: D.jsx(
|
|
4083
|
+
}), D.jsx(se.Item, { children: D.jsx(Ie, { htmlType: "submit", children: "搜索" }) })] }) : null, D.jsx(Mo, { loading: n, pagination: s, onChange: (d) => i({ ...s, current: (d == null ? void 0 : d.current) || s.current, pageSize: (d == null ? void 0 : d.pageSize) || s.pageSize }), rowKey: e.id || "id", columns: e.columns, data: t })] });
|
|
4084
4084
|
}
|
|
4085
4085
|
const Sc = {
|
|
4086
4086
|
GetAllTool: vi,
|
|
@@ -4094,7 +4094,7 @@ const Sc = {
|
|
|
4094
4094
|
AddTask: xi,
|
|
4095
4095
|
GetTaskInfo: ji,
|
|
4096
4096
|
GetTencentCosInfo: Wn,
|
|
4097
|
-
GetMaterialUrl:
|
|
4097
|
+
GetMaterialUrl: Ii,
|
|
4098
4098
|
GetMaterialTagList: Ni,
|
|
4099
4099
|
GetToolList: Oi,
|
|
4100
4100
|
GetToolTagList: Di,
|
package/lib/index.umd.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(W,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("@arco-design/web-react"),require("cos-js-sdk-v5"),require("ali-oss"),require("react"),require("mqtt")):typeof define=="function"&&define.amd?define(["exports","@arco-design/web-react","cos-js-sdk-v5","ali-oss","react","mqtt"],_):(W=typeof globalThis<"u"?globalThis:W||self,_(W["zyjj-web-sdk"]={},W["@arco-design/web-react"],W["cos-js-sdk-v5"],W["ali-oss"],W.react,W.mqtt))})(this,function(W,_,Fe,ao,ae,co){"use strict";var ec=Object.defineProperty;var tc=(W,_,Fe)=>_ in W?ec(W,_,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):W[_]=Fe;var Or=(W,_,Fe)=>tc(W,typeof _!="symbol"?_+"":_,Fe);function Cr(e,t){return function(){return e.apply(t,arguments)}}const{toString:uo}=Object.prototype,{getPrototypeOf:vt}=Object,rt=(e=>t=>{const r=uo.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>rt(t)===e),nt=e=>t=>typeof t===e,{isArray:Me}=Array,qe=nt("undefined");function lo(e){return e!==null&&!qe(e)&&e.constructor!==null&&!qe(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dr=be("ArrayBuffer");function fo(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dr(e.buffer),t}const ho=nt("string"),de=nt("function"),Rr=nt("number"),ot=e=>e!==null&&typeof e=="object",po=e=>e===!0||e===!1,st=e=>{if(rt(e)!=="object")return!1;const t=vt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mo=be("Date"),yo=be("File"),go=be("Blob"),bo=be("FileList"),wo=e=>ot(e)&&de(e.pipe),So=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((t=rt(e))==="formdata"||t==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},Eo=be("URLSearchParams"),_o=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Me(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(n=0;n<i;n++)c=s[n],t.call(null,e[c],c,e)}}function Pr(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jr=e=>!qe(e)&&e!==xr;function Ot(){const{caseless:e}=jr(this)&&this||{},t={},r=(n,o)=>{const s=e&&Pr(t,o)||o;st(t[s])&&st(n)?t[s]=Ot(t[s],n):st(n)?t[s]=Ot({},n):Me(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Te(arguments[n],r);return t}const vo=(e,t,r,{allOwnKeys:n}={})=>(Te(t,(o,s)=>{r&&de(o)?e[s]=Cr(o,r):e[s]=o},{allOwnKeys:n}),e),Oo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Co=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Do=(e,t,r,n)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&vt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ro=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Po=e=>{if(!e)return null;if(Me(e))return e;let t=e.length;if(!Rr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},xo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vt(Uint8Array)),jo=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},No=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ko=be("HTMLFormElement"),Io=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Nr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ao=be("RegExp"),kr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Fo=e=>{kr(e,(t,r)=>{if(de(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(de(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Mo=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return Me(e)?n(e):n(String(e).split(t)),r},$o=()=>{},Uo=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ct="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Ar={DIGIT:Ir,ALPHA:Ct,ALPHA_DIGIT:Ct+Ct.toUpperCase()+Ir},Bo=(e=16,t=Ar.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function zo(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lo=e=>{const t=new Array(10),r=(n,o)=>{if(ot(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=Me(n)?[]:{};return Te(n,(i,c)=>{const u=r(i,o+1);!qe(u)&&(s[c]=u)}),t[o]=void 0,s}}return n};return r(e,0)},Vo=be("AsyncFunction"),h={isArray:Me,isArrayBuffer:Dr,isBuffer:lo,isFormData:So,isArrayBufferView:fo,isString:ho,isNumber:Rr,isBoolean:po,isObject:ot,isPlainObject:st,isUndefined:qe,isDate:mo,isFile:yo,isBlob:go,isRegExp:Ao,isFunction:de,isStream:wo,isURLSearchParams:Eo,isTypedArray:xo,isFileList:bo,forEach:Te,merge:Ot,extend:vo,trim:_o,stripBOM:Oo,inherits:Co,toFlatObject:Do,kindOf:rt,kindOfTest:be,endsWith:Ro,toArray:Po,forEachEntry:jo,matchAll:No,isHTMLForm:ko,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:kr,freezeMethods:Fo,toObjectSet:Mo,toCamelCase:Io,noop:$o,toFiniteNumber:Uo,findKey:Pr,global:xr,isContextDefined:jr,ALPHABET:Ar,generateString:Bo,isSpecCompliantForm:zo,toJSONObject:Lo,isAsyncFn:Vo,isThenable:e=>e&&(ot(e)||de(e))&&de(e.then)&&de(e.catch)};function F(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}h.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fr=F.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mr[e]={value:e}}),Object.defineProperties(F,Mr),Object.defineProperty(Fr,"isAxiosError",{value:!0}),F.from=(e,t,r,n,o,s)=>{const i=Object.create(Fr);return h.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),F.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const qo=null;function Dt(e){return h.isPlainObject(e)||h.isArray(e)}function $r(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Ur(e,t,r){return e?e.concat(t).map(function(o,s){return o=$r(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function To(e){return h.isArray(e)&&!e.some(Dt)}const Wo=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function it(e,t,r){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=h.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,k){return!h.isUndefined(k[b])});const n=r.metaTokens,o=r.visitor||l,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(o))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(h.isDate(m))return m.toISOString();if(!u&&h.isBlob(m))throw new F("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(m)||h.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,b,k){let U=m;if(m&&!k&&typeof m=="object"){if(h.endsWith(b,"{}"))b=n?b:b.slice(0,-2),m=JSON.stringify(m);else if(h.isArray(m)&&To(m)||(h.isFileList(m)||h.endsWith(b,"[]"))&&(U=h.toArray(m)))return b=$r(b),U.forEach(function(j,M){!(h.isUndefined(j)||j===null)&&t.append(i===!0?Ur([b],M,s):i===null?b:b+"[]",d(j))}),!1}return Dt(m)?!0:(t.append(Ur(k,b,s),d(m)),!1)}const f=[],E=Object.assign(Wo,{defaultVisitor:l,convertValue:d,isVisitable:Dt});function x(m,b){if(!h.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(m),h.forEach(m,function(U,N){(!(h.isUndefined(U)||U===null)&&o.call(t,U,h.isString(N)?N.trim():N,b,E))===!0&&x(U,b?b.concat(N):[N])}),f.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Br(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Rt(e,t){this._pairs=[],e&&it(e,this,t)}const zr=Rt.prototype;zr.append=function(t,r){this._pairs.push([t,r])},zr.toString=function(t){const r=t?function(n){return t.call(this,n,Br)}:Br;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ho(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lr(e,t,r){if(!t)return e;const n=r&&r.encode||Ho,o=r&&r.serialize;let s;if(o?s=o(t,r):s=h.isURLSearchParams(t)?t.toString():new Rt(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Vr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(n){n!==null&&t(n)})}}const qr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Go={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Rt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Tr=typeof window<"u"&&typeof document<"u",Yo=(e=>Tr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",we={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tr,hasStandardBrowserEnv:Yo,hasStandardBrowserWebWorkerEnv:Jo},Symbol.toStringTag,{value:"Module"})),...Go};function Ko(e,t){return it(e,new we.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return we.isNode&&h.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Xo(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zo(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function Wr(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),u=s>=r.length;return i=!i&&h.isArray(o)?o.length:i,u?(h.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!c):((!o[i]||!h.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&h.isArray(o[i])&&(o[i]=Zo(o[i])),!c)}if(h.isFormData(e)&&h.isFunction(e.entries)){const r={};return h.forEachEntry(e,(n,o)=>{t(Xo(n),o,r,0)}),r}return null}function Qo(e,t,r){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const We={transitional:qr,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=h.isObject(t);if(s&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return o?JSON.stringify(Wr(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ko(t,this.formSerializer).toString();if((c=h.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return it(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Qo(t)):t}],transformResponse:[function(t){const r=this.transitional||We.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&h.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?F.from(c,F.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{We.headers[e]={}});const es=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ts=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
1
|
+
(function(W,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("@arco-design/web-react"),require("cos-js-sdk-v5"),require("ali-oss"),require("react"),require("mqtt")):typeof define=="function"&&define.amd?define(["exports","@arco-design/web-react","cos-js-sdk-v5","ali-oss","react","mqtt"],_):(W=typeof globalThis<"u"?globalThis:W||self,_(W["zyjj-web-sdk"]={},W["@arco-design/web-react"],W["cos-js-sdk-v5"],W["ali-oss"],W.react,W.mqtt))})(this,function(W,_,Fe,ao,ae,co){"use strict";var ec=Object.defineProperty;var tc=(W,_,Fe)=>_ in W?ec(W,_,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):W[_]=Fe;var Or=(W,_,Fe)=>tc(W,typeof _!="symbol"?_+"":_,Fe);function Cr(e,t){return function(){return e.apply(t,arguments)}}const{toString:uo}=Object.prototype,{getPrototypeOf:vt}=Object,rt=(e=>t=>{const r=uo.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>rt(t)===e),nt=e=>t=>typeof t===e,{isArray:Me}=Array,qe=nt("undefined");function lo(e){return e!==null&&!qe(e)&&e.constructor!==null&&!qe(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dr=be("ArrayBuffer");function fo(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dr(e.buffer),t}const ho=nt("string"),de=nt("function"),Rr=nt("number"),ot=e=>e!==null&&typeof e=="object",po=e=>e===!0||e===!1,st=e=>{if(rt(e)!=="object")return!1;const t=vt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mo=be("Date"),yo=be("File"),go=be("Blob"),bo=be("FileList"),wo=e=>ot(e)&&de(e.pipe),So=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((t=rt(e))==="formdata"||t==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},Eo=be("URLSearchParams"),_o=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Me(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(n=0;n<i;n++)c=s[n],t.call(null,e[c],c,e)}}function Pr(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jr=e=>!qe(e)&&e!==xr;function Ot(){const{caseless:e}=jr(this)&&this||{},t={},r=(n,o)=>{const s=e&&Pr(t,o)||o;st(t[s])&&st(n)?t[s]=Ot(t[s],n):st(n)?t[s]=Ot({},n):Me(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Te(arguments[n],r);return t}const vo=(e,t,r,{allOwnKeys:n}={})=>(Te(t,(o,s)=>{r&&de(o)?e[s]=Cr(o,r):e[s]=o},{allOwnKeys:n}),e),Oo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Co=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Do=(e,t,r,n)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&vt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ro=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Po=e=>{if(!e)return null;if(Me(e))return e;let t=e.length;if(!Rr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},xo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vt(Uint8Array)),jo=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},No=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ko=be("HTMLFormElement"),Io=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Nr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ao=be("RegExp"),kr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Fo=e=>{kr(e,(t,r)=>{if(de(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(de(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Mo=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return Me(e)?n(e):n(String(e).split(t)),r},$o=()=>{},Uo=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ct="abcdefghijklmnopqrstuvwxyz",Ir="0123456789",Ar={DIGIT:Ir,ALPHA:Ct,ALPHA_DIGIT:Ct+Ct.toUpperCase()+Ir},Bo=(e=16,t=Ar.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function zo(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vo=e=>{const t=new Array(10),r=(n,o)=>{if(ot(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=Me(n)?[]:{};return Te(n,(i,c)=>{const u=r(i,o+1);!qe(u)&&(s[c]=u)}),t[o]=void 0,s}}return n};return r(e,0)},Lo=be("AsyncFunction"),h={isArray:Me,isArrayBuffer:Dr,isBuffer:lo,isFormData:So,isArrayBufferView:fo,isString:ho,isNumber:Rr,isBoolean:po,isObject:ot,isPlainObject:st,isUndefined:qe,isDate:mo,isFile:yo,isBlob:go,isRegExp:Ao,isFunction:de,isStream:wo,isURLSearchParams:Eo,isTypedArray:xo,isFileList:bo,forEach:Te,merge:Ot,extend:vo,trim:_o,stripBOM:Oo,inherits:Co,toFlatObject:Do,kindOf:rt,kindOfTest:be,endsWith:Ro,toArray:Po,forEachEntry:jo,matchAll:No,isHTMLForm:ko,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:kr,freezeMethods:Fo,toObjectSet:Mo,toCamelCase:Io,noop:$o,toFiniteNumber:Uo,findKey:Pr,global:xr,isContextDefined:jr,ALPHABET:Ar,generateString:Bo,isSpecCompliantForm:zo,toJSONObject:Vo,isAsyncFn:Lo,isThenable:e=>e&&(ot(e)||de(e))&&de(e.then)&&de(e.catch)};function F(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}h.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fr=F.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mr[e]={value:e}}),Object.defineProperties(F,Mr),Object.defineProperty(Fr,"isAxiosError",{value:!0}),F.from=(e,t,r,n,o,s)=>{const i=Object.create(Fr);return h.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),F.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const qo=null;function Dt(e){return h.isPlainObject(e)||h.isArray(e)}function $r(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Ur(e,t,r){return e?e.concat(t).map(function(o,s){return o=$r(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function To(e){return h.isArray(e)&&!e.some(Dt)}const Wo=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function it(e,t,r){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=h.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,k){return!h.isUndefined(k[b])});const n=r.metaTokens,o=r.visitor||l,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(o))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(h.isDate(m))return m.toISOString();if(!u&&h.isBlob(m))throw new F("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(m)||h.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,b,k){let U=m;if(m&&!k&&typeof m=="object"){if(h.endsWith(b,"{}"))b=n?b:b.slice(0,-2),m=JSON.stringify(m);else if(h.isArray(m)&&To(m)||(h.isFileList(m)||h.endsWith(b,"[]"))&&(U=h.toArray(m)))return b=$r(b),U.forEach(function(j,M){!(h.isUndefined(j)||j===null)&&t.append(i===!0?Ur([b],M,s):i===null?b:b+"[]",d(j))}),!1}return Dt(m)?!0:(t.append(Ur(k,b,s),d(m)),!1)}const f=[],E=Object.assign(Wo,{defaultVisitor:l,convertValue:d,isVisitable:Dt});function x(m,b){if(!h.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(m),h.forEach(m,function(U,N){(!(h.isUndefined(U)||U===null)&&o.call(t,U,h.isString(N)?N.trim():N,b,E))===!0&&x(U,b?b.concat(N):[N])}),f.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Br(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Rt(e,t){this._pairs=[],e&&it(e,this,t)}const zr=Rt.prototype;zr.append=function(t,r){this._pairs.push([t,r])},zr.toString=function(t){const r=t?function(n){return t.call(this,n,Br)}:Br;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ho(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vr(e,t,r){if(!t)return e;const n=r&&r.encode||Ho,o=r&&r.serialize;let s;if(o?s=o(t,r):s=h.isURLSearchParams(t)?t.toString():new Rt(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Lr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(n){n!==null&&t(n)})}}const qr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Go={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Rt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Tr=typeof window<"u"&&typeof document<"u",Yo=(e=>Tr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",we={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tr,hasStandardBrowserEnv:Yo,hasStandardBrowserWebWorkerEnv:Jo},Symbol.toStringTag,{value:"Module"})),...Go};function Ko(e,t){return it(e,new we.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return we.isNode&&h.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Xo(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zo(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function Wr(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),u=s>=r.length;return i=!i&&h.isArray(o)?o.length:i,u?(h.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!c):((!o[i]||!h.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&h.isArray(o[i])&&(o[i]=Zo(o[i])),!c)}if(h.isFormData(e)&&h.isFunction(e.entries)){const r={};return h.forEachEntry(e,(n,o)=>{t(Xo(n),o,r,0)}),r}return null}function Qo(e,t,r){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const We={transitional:qr,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=h.isObject(t);if(s&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return o?JSON.stringify(Wr(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ko(t,this.formSerializer).toString();if((c=h.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return it(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Qo(t)):t}],transformResponse:[function(t){const r=this.transitional||We.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&h.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?F.from(c,F.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{We.headers[e]={}});const es=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ts=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&es[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hr=Symbol("internals");function He(e){return e&&String(e).trim().toLowerCase()}function at(e){return e===!1||e==null?e:h.isArray(e)?e.map(at):String(e)}function rs(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ns=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pt(e,t,r,n,o){if(h.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!h.isString(t)){if(h.isString(n))return t.indexOf(n)!==-1;if(h.isRegExp(n))return n.test(t)}}function os(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ss(e,t){const r=h.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}class he{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(c,u,d){const l=He(u);if(!l)throw new Error("header name must be a non-empty string");const f=h.findKey(o,l);(!f||o[f]===void 0||d===!0||d===void 0&&o[f]!==!1)&&(o[f||u]=at(c))}const i=(c,u)=>h.forEach(c,(d,l)=>s(d,l,u));return h.isPlainObject(t)||t instanceof this.constructor?i(t,r):h.isString(t)&&(t=t.trim())&&!ns(t)?i(ts(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=He(t),t){const n=h.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return rs(o);if(h.isFunction(r))return r.call(this,o,n);if(h.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=He(t),t){const n=h.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Pt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=He(i),i){const c=h.findKey(n,i);c&&(!r||Pt(n,n[c],c,r))&&(delete n[c],o=!0)}}return h.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||Pt(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return h.forEach(this,(o,s)=>{const i=h.findKey(n,s);if(i){r[i]=at(o),delete r[s];return}const c=t?os(s):String(s).trim();c!==s&&delete r[s],r[c]=at(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return h.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&h.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hr]=this[Hr]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=He(i);n[c]||(ss(o,i),n[c]=!0)}return h.isArray(t)?t.forEach(s):s(t),this}}he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(he.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),h.freezeMethods(he);function xt(e,t){const r=this||We,n=t||r,o=he.from(n.headers);let s=n.data;return h.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Gr(e){return!!(e&&e.__CANCEL__)}function Ge(e,t,r){F.call(this,e??"canceled",F.ERR_CANCELED,t,r),this.name="CanceledError"}h.inherits(Ge,F,{__CANCEL__:!0});function is(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const as=we.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];h.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),h.isString(n)&&i.push("path="+n),h.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function us(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yr(e,t){return e&&!cs(t)?us(e,t):t}const ls=we.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const c=h.isString(i)?o(i):i;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function fs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ds(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),l=n[s];i||(i=d),r[o]=u,n[o]=d;let f=s,E=0;for(;f!==o;)E+=r[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i<t)return;const x=l&&d-l;return x?Math.round(E*1e3/x):void 0}}function Jr(e,t){let r=0;const n=ds(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,c=s-r,u=n(c),d=s<=i;r=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i&&d?(i-s)/u:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const jt={http:qo,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){let o=e.data;const s=he.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let l;if(h.isFormData(o)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((l=s.getContentType())!==!1){const[b,...k]=l?l.split(";").map(U=>U.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...k].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(b+":"+k))}const E=Yr(e.baseURL,e.url);f.open(e.method.toUpperCase(),
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hr]=this[Hr]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=He(i);n[c]||(ss(o,i),n[c]=!0)}return h.isArray(t)?t.forEach(s):s(t),this}}he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(he.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),h.freezeMethods(he);function xt(e,t){const r=this||We,n=t||r,o=he.from(n.headers);let s=n.data;return h.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Gr(e){return!!(e&&e.__CANCEL__)}function Ge(e,t,r){F.call(this,e??"canceled",F.ERR_CANCELED,t,r),this.name="CanceledError"}h.inherits(Ge,F,{__CANCEL__:!0});function is(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const as=we.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];h.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),h.isString(n)&&i.push("path="+n),h.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function us(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yr(e,t){return e&&!cs(t)?us(e,t):t}const ls=we.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const c=h.isString(i)?o(i):i;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function fs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ds(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),l=n[s];i||(i=d),r[o]=u,n[o]=d;let f=s,E=0;for(;f!==o;)E+=r[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i<t)return;const x=l&&d-l;return x?Math.round(E*1e3/x):void 0}}function Jr(e,t){let r=0;const n=ds(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,c=s-r,u=n(c),d=s<=i;r=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i&&d?(i-s)/u:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const jt={http:qo,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){let o=e.data;const s=he.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let l;if(h.isFormData(o)){if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((l=s.getContentType())!==!1){const[b,...k]=l?l.split(";").map(U=>U.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...k].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(b+":"+k))}const E=Yr(e.baseURL,e.url);f.open(e.method.toUpperCase(),Vr(E,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function x(){if(!f)return;const b=he.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),U={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:b,config:e,request:f};is(function(j){r(j),d()},function(j){n(j),d()},U),f=null}if("onloadend"in f?f.onloadend=x:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(x)},f.onabort=function(){f&&(n(new F("Request aborted",F.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new F("Network Error",F.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let k=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const U=e.transitional||qr;e.timeoutErrorMessage&&(k=e.timeoutErrorMessage),n(new F(k,U.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,f)),f=null},we.hasStandardBrowserEnv&&(c&&h.isFunction(c)&&(c=c(e)),c||c!==!1&&ls(E))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&as.read(e.xsrfCookieName);b&&s.set(e.xsrfHeaderName,b)}o===void 0&&s.setContentType(null),"setRequestHeader"in f&&h.forEach(s.toJSON(),function(k,U){f.setRequestHeader(U,k)}),h.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Jr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Jr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=b=>{f&&(n(!b||b.type?new Ge(null,e,f):b),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const m=fs(E);if(m&&we.protocols.indexOf(m)===-1){n(new F("Unsupported protocol "+m+":",F.ERR_BAD_REQUEST,e));return}f.send(o||null)})}};h.forEach(jt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kr=e=>`- ${e}`,hs=e=>h.isFunction(e)||e===null||e===!1,Xr={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!hs(r)&&(n=jt[(i=String(r)).toLowerCase()],n===void 0))throw new F(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+s]=n}if(!n){const s=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
4
4
|
`+s.map(Kr).join(`
|
|
5
|
-
`):" "+Kr(s[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:jt};function Nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function Zr(e){return Nt(e),e.headers=he.from(e.headers),e.data=xt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xr.getAdapter(e.adapter||We.adapter)(e).then(function(n){return Nt(e),n.data=xt.call(e,e.transformResponse,n),n.headers=he.from(n.headers),n},function(n){return Gr(n)||(Nt(e),n&&n.response&&(n.response.data=xt.call(e,e.transformResponse,n.response),n.response.headers=he.from(n.response.headers))),Promise.reject(n)})}const Qr=e=>e instanceof he?{...e}:e;function $e(e,t){t=t||{};const r={};function n(d,l,f){return h.isPlainObject(d)&&h.isPlainObject(l)?h.merge.call({caseless:f},d,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function o(d,l,f){if(h.isUndefined(l)){if(!h.isUndefined(d))return n(void 0,d,f)}else return n(d,l,f)}function s(d,l){if(!h.isUndefined(l))return n(void 0,l)}function i(d,l){if(h.isUndefined(l)){if(!h.isUndefined(d))return n(void 0,d)}else return n(void 0,l)}function c(d,l,f){if(f in t)return n(d,l);if(f in e)return n(void 0,d)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(d,l)=>o(Qr(d),Qr(l),!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(l){const f=u[l]||o,E=f(e[l],t[l],l);h.isUndefined(E)&&f!==c||(r[l]=E)}),r}const en="1.6.8",kt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tn={};kt.transitional=function(t,r,n){function o(s,i){return"[Axios v"+en+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,c)=>{if(t===!1)throw new F(o(i," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!tn[i]&&(tn[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,c):!0}};function ps(e,t,r){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const c=e[s],u=c===void 0||i(c,s,e);if(u!==!0)throw new F("option "+s+" must be "+u,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}const It={assertOptions:ps,validators:kt},De=It.validators;class xe{constructor(t){this.defaults=t,this.interceptors={request:new
|
|
6
|
-
`+s):n.stack=s}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$e(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&It.assertOptions(n,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1),o!=null&&(h.isFunction(o)?r.paramsSerializer={serialize:o}:It.assertOptions(o,{encode:De.function,serialize:De.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&h.merge(s.common,s[r.method]);s&&h.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=he.concat(i,s);const c=[];let u=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(u=u&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let l,f=0,E;if(!u){const m=[Zr.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,d),E=m.length,l=Promise.resolve(r);f<E;)l=l.then(m[f++],m[f++]);return l}E=c.length;let x=r;for(f=0;f<E;){const m=c[f++],b=c[f++];try{x=m(x)}catch(k){b.call(this,k);break}}try{l=Zr.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,E=d.length;f<E;)l=l.then(d[f++],d[f++]);return l}getUri(t){t=$e(this.defaults,t);const r=Yr(t.baseURL,t.url);return Lr(r,t.params,t.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(t){xe.prototype[t]=function(r,n){return this.request($e(n||{},{method:t,url:r,data:(n||{}).data}))}}),h.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,c){return this.request($e(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}xe.prototype[t]=r(),xe.prototype[t+"Form"]=r(!0)});class At{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{n.subscribe(c),s=c}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,c){n.reason||(n.reason=new Ge(s,i,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new At(function(o){t=o}),cancel:t}}}function ms(e){return function(r){return e.apply(null,r)}}function ys(e){return h.isObject(e)&&e.isAxiosError===!0}const Ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ft).forEach(([e,t])=>{Ft[t]=e});function rn(e){const t=new xe(e),r=Cr(xe.prototype.request,t);return h.extend(r,xe.prototype,t,{allOwnKeys:!0}),h.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return rn($e(e,o))},r}const H=rn(We);H.Axios=xe,H.CanceledError=Ge,H.CancelToken=At,H.isCancel=Gr,H.VERSION=en,H.toFormData=it,H.AxiosError=F,H.Cancel=H.CanceledError,H.all=function(t){return Promise.all(t)},H.spread=ms,H.isAxiosError=ys,H.mergeConfig=$e,H.AxiosHeaders=he,H.formToJSON=e=>Wr(h.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Xr.getAdapter,H.HttpStatusCode=Ft,H.default=H;const Ye=()=>localStorage.getItem("token");async function J(e,t,r,n=!0){let o;return r==="get"?o=H.get(e,{params:t,timeout:1e3*60*10,headers:{Authorization:Ye()}}):r==="post"?o=H.post(e,t,{headers:{Authorization:Ye()}}):r==="put"?o=H.put(e,t,{headers:{Authorization:Ye()}}):r==="delete"?o=H.delete(e,{params:t,headers:{Authorization:Ye()}}):r==="patch"&&(o=H.patch(e,t,{headers:{Authorization:Ye()}})),new Promise((s,i)=>{o.then(c=>{c.data.code!==0?(n&&_.Message.error(c.data.msg),i(c.data.msg)):s(c.data.data)}).catch(c=>{var u;((u=c.response)==null?void 0:u.status)==401?n&&_.Message.error("你的账户已过期,请重新登录"):n&&_.Message.error("请求失败"),console.log("请求失败",c),i("请求失败")})})}let ct;const gs=new Uint8Array(16);function bs(){if(!ct&&(ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ct))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ct(gs)}const se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function ws(e,t=0){return se[e[t+0]]+se[e[t+1]]+se[e[t+2]]+se[e[t+3]]+"-"+se[e[t+4]]+se[e[t+5]]+"-"+se[e[t+6]]+se[e[t+7]]+"-"+se[e[t+8]]+se[e[t+9]]+"-"+se[e[t+10]]+se[e[t+11]]+se[e[t+12]]+se[e[t+13]]+se[e[t+14]]+se[e[t+15]]}const nn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ss(e,t,r){if(nn.randomUUID&&!t&&!e)return nn.randomUUID();e=e||{};const n=e.random||(e.rng||bs)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,ws(n)}var Je;(function(e){e[e.LocalPath=0]="LocalPath",e[e.TencentCos=1]="TencentCos",e[e.ObjectUrl=2]="ObjectUrl",e[e.AliYunOss=3]="AliYunOss"})(Je||(Je={}));var Mt;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.DownloadFile=11]="DownloadFile"})(Mt||(Mt={}));var $t;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})($t||($t={}));var Ut;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(Ut||(Ut={}));var Bt;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Bt||(Bt={}));var zt;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(zt||(zt={}));const Es=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",_s=(e,t,r)=>{let n=e.path,o=Je.LocalPath;return(t||!n)&&(n=URL.createObjectURL(e),o=Je.ObjectUrl),{path:n,name:e.name,source:o,cloud_source:r,ext:e.name.split(".").pop(),size:e.size,uid:Ss()}},vs=e=>new Date(e*1e3).toISOString().substring(11,19),Os=async()=>{const e=await un(),t=e.token;return{cos:new Fe({getAuthorization:function(r,n){n({TmpSecretId:t.TmpSecretId,TmpSecretKey:t.TmpSecretKey,XCosSecurityToken:t.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},Cs=async()=>{const e=await Vs(),t=e.token;return{oss:new ao({region:e.region,accessKeyId:t.TmpSecretId,accessKeySecret:t.TmpSecretKey,stsToken:t.Token,bucket:e.bucket}),path:e.path,bucket:e.bucket,region:e.region}},on=e=>{const t=[];for(const r in e){const n=e[r];n&&t.push(`${r}=${n}`)}return t.join("&")},Ds=/\$(.*?)\$/g,Rs=(e,t)=>{let r;const n=[];for(;(r=Ds.exec(e))!==null;)r&&r.length>0&&n.push(r[1]);return n.map(o=>{const s=t[o];s&&(e=e.replace(`$${o}$`,o.split(".").length==2?s[o.split(".")[1]]:s))}),e},Ps=e=>Object.keys(e).filter(t=>e[t]).map(t=>{let r=e[t];return["string","number","boolean"].includes(typeof r)?r=String(r):r=JSON.stringify(r),`${t}=${encodeURIComponent(r)}`}).join("&"),xs=e=>new Promise((t,r)=>{const n=new XMLHttpRequest;n.open("get",e),n.responseType="blob",n.send(),n.onload=function(){(this.status===200||this.status===304)&&(sn(URL.createObjectURL(this.response)),t())},n.onerror=function(){r("下载失败,请在新窗口打开")}}),sn=(e,t)=>{var n;const r=document.createElement("a");r.style.display="none",r.href=e,t?r.download=t:r.download=((n=e.split("?").shift())==null?void 0:n.split("/").pop())||e,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(e)},K=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",js=process.env.NODE_ENV=="production"?"https://knowledge.zyjj.cc/api/v1":"http://127.0.0.1:3001/api/v1",Ns=e=>J(`${K}/common/user/login`,e,"post"),ks=(e,t,r)=>J(`${K}/common/app/info?os=${e}&version=${t}&uid=${r||""}`,{},"get"),Is=e=>J(`${K}/common/user/register`,e,"post"),As=e=>J(`${K}/common/user/reset/password`,e,"post"),an=e=>J(`${K}/common/user/email/token`,{email:e},"post"),cn=()=>J(`${K}/user/user/info`,{},"get",!1),Fs=e=>J(`${K}/user/user/info`,e,"put"),Ms=e=>J(`${K}/user/point/deducting`,e,"post"),$s=e=>J(`${K}/common/tool/list?${on(e)}`,{},"get"),Us=()=>J(`${K}/common/tool/all`,{},"get"),Bs=e=>J(`${K}/common/tool/${e}`,{},"get"),zs=e=>J(`${K}/common/tool/inc/${e}`,{},"get"),Ls=()=>J(`${K}/common/tool/tags`,{},"get"),un=()=>J(`${K}/user/cloud/tencent/cos`,{},"get"),Vs=()=>J(`${K}/user/cloud/aliyun/oss`,{},"get"),qs=e=>J(`${K}/user/task`,e,"post"),Ts=e=>J(`${K}/user/task/${e}`,{},"get"),ln=()=>J(`${K}/user/cloud/mqtt/task`,{},"get"),Ws=()=>J(`${K}/common/material/tags`,{},"get"),Hs=e=>J(`${K}/user/material/${e}`,{},"get"),Gs=e=>J(`${K}/user/material/url`,{key_list:e},"post"),Ys=e=>J(`${K}${e.url}`,e.data||{},e.method),Js=e=>J(`${js}${e.url}`,e.data||{},e.method);var Lt;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(Lt||(Lt={}));var Vt;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Vt||(Vt={}));var je;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(je||(je={}));var qt;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(qt||(qt={}));var Tt;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Tt||(Tt={}));var Wt;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(Wt||(Wt={}));var Ht;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(Ht||(Ht={}));var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Ke={};/**
|
|
5
|
+
`):" "+Kr(s[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:jt};function Nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function Zr(e){return Nt(e),e.headers=he.from(e.headers),e.data=xt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xr.getAdapter(e.adapter||We.adapter)(e).then(function(n){return Nt(e),n.data=xt.call(e,e.transformResponse,n),n.headers=he.from(n.headers),n},function(n){return Gr(n)||(Nt(e),n&&n.response&&(n.response.data=xt.call(e,e.transformResponse,n.response),n.response.headers=he.from(n.response.headers))),Promise.reject(n)})}const Qr=e=>e instanceof he?{...e}:e;function $e(e,t){t=t||{};const r={};function n(d,l,f){return h.isPlainObject(d)&&h.isPlainObject(l)?h.merge.call({caseless:f},d,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function o(d,l,f){if(h.isUndefined(l)){if(!h.isUndefined(d))return n(void 0,d,f)}else return n(d,l,f)}function s(d,l){if(!h.isUndefined(l))return n(void 0,l)}function i(d,l){if(h.isUndefined(l)){if(!h.isUndefined(d))return n(void 0,d)}else return n(void 0,l)}function c(d,l,f){if(f in t)return n(d,l);if(f in e)return n(void 0,d)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(d,l)=>o(Qr(d),Qr(l),!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(l){const f=u[l]||o,E=f(e[l],t[l],l);h.isUndefined(E)&&f!==c||(r[l]=E)}),r}const en="1.6.8",kt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tn={};kt.transitional=function(t,r,n){function o(s,i){return"[Axios v"+en+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,c)=>{if(t===!1)throw new F(o(i," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!tn[i]&&(tn[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,c):!0}};function ps(e,t,r){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const c=e[s],u=c===void 0||i(c,s,e);if(u!==!0)throw new F("option "+s+" must be "+u,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}const It={assertOptions:ps,validators:kt},De=It.validators;class xe{constructor(t){this.defaults=t,this.interceptors={request:new Lr,response:new Lr}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+s):n.stack=s}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$e(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&It.assertOptions(n,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1),o!=null&&(h.isFunction(o)?r.paramsSerializer={serialize:o}:It.assertOptions(o,{encode:De.function,serialize:De.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&h.merge(s.common,s[r.method]);s&&h.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=he.concat(i,s);const c=[];let u=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(u=u&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let l,f=0,E;if(!u){const m=[Zr.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,d),E=m.length,l=Promise.resolve(r);f<E;)l=l.then(m[f++],m[f++]);return l}E=c.length;let x=r;for(f=0;f<E;){const m=c[f++],b=c[f++];try{x=m(x)}catch(k){b.call(this,k);break}}try{l=Zr.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,E=d.length;f<E;)l=l.then(d[f++],d[f++]);return l}getUri(t){t=$e(this.defaults,t);const r=Yr(t.baseURL,t.url);return Vr(r,t.params,t.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(t){xe.prototype[t]=function(r,n){return this.request($e(n||{},{method:t,url:r,data:(n||{}).data}))}}),h.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,c){return this.request($e(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}xe.prototype[t]=r(),xe.prototype[t+"Form"]=r(!0)});class At{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{n.subscribe(c),s=c}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,c){n.reason||(n.reason=new Ge(s,i,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new At(function(o){t=o}),cancel:t}}}function ms(e){return function(r){return e.apply(null,r)}}function ys(e){return h.isObject(e)&&e.isAxiosError===!0}const Ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ft).forEach(([e,t])=>{Ft[t]=e});function rn(e){const t=new xe(e),r=Cr(xe.prototype.request,t);return h.extend(r,xe.prototype,t,{allOwnKeys:!0}),h.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return rn($e(e,o))},r}const H=rn(We);H.Axios=xe,H.CanceledError=Ge,H.CancelToken=At,H.isCancel=Gr,H.VERSION=en,H.toFormData=it,H.AxiosError=F,H.Cancel=H.CanceledError,H.all=function(t){return Promise.all(t)},H.spread=ms,H.isAxiosError=ys,H.mergeConfig=$e,H.AxiosHeaders=he,H.formToJSON=e=>Wr(h.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Xr.getAdapter,H.HttpStatusCode=Ft,H.default=H;const Ye=()=>localStorage.getItem("token");async function J(e,t,r,n=!0){let o;return r==="get"?o=H.get(e,{params:t,timeout:1e3*60*10,headers:{Authorization:Ye()}}):r==="post"?o=H.post(e,t,{headers:{Authorization:Ye()}}):r==="put"?o=H.put(e,t,{headers:{Authorization:Ye()}}):r==="delete"?o=H.delete(e,{params:t,headers:{Authorization:Ye()}}):r==="patch"&&(o=H.patch(e,t,{headers:{Authorization:Ye()}})),new Promise((s,i)=>{o.then(c=>{c.data.code!==0?(n&&_.Message.error(c.data.msg),i(c.data.msg)):s(c.data.data)}).catch(c=>{var u;((u=c.response)==null?void 0:u.status)==401?n&&_.Message.error("你的账户已过期,请重新登录"):n&&_.Message.error("请求失败"),console.log("请求失败",c),i("请求失败")})})}let ct;const gs=new Uint8Array(16);function bs(){if(!ct&&(ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ct))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ct(gs)}const se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function ws(e,t=0){return se[e[t+0]]+se[e[t+1]]+se[e[t+2]]+se[e[t+3]]+"-"+se[e[t+4]]+se[e[t+5]]+"-"+se[e[t+6]]+se[e[t+7]]+"-"+se[e[t+8]]+se[e[t+9]]+"-"+se[e[t+10]]+se[e[t+11]]+se[e[t+12]]+se[e[t+13]]+se[e[t+14]]+se[e[t+15]]}const nn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ss(e,t,r){if(nn.randomUUID&&!t&&!e)return nn.randomUUID();e=e||{};const n=e.random||(e.rng||bs)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,ws(n)}var Je;(function(e){e[e.LocalPath=0]="LocalPath",e[e.TencentCos=1]="TencentCos",e[e.ObjectUrl=2]="ObjectUrl",e[e.AliYunOss=3]="AliYunOss"})(Je||(Je={}));var Mt;(function(e){e[e.TaskAction=0]="TaskAction",e[e.WorkAction=1]="WorkAction",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.NavigateTo=7]="NavigateTo",e[e.OpenTool=10]="OpenTool",e[e.DownloadFile=11]="DownloadFile"})(Mt||(Mt={}));var $t;(function(e){e[e.TaskAction=0]="TaskAction",e[e.NavigateTo=3]="NavigateTo",e[e.OpenTool=6]="OpenTool",e[e.MqttBack=1]="MqttBack",e[e.ExtensionBlobUrl=4]="ExtensionBlobUrl",e[e.ExtensionId=5]="ExtensionId",e[e.UrlCallback=7]="UrlCallback",e[e.DownloadFileRes=8]="DownloadFileRes"})($t||($t={}));var Ut;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(Ut||(Ut={}));var Bt;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(Bt||(Bt={}));var zt;(function(e){e[e.ChoosePic=-3]="ChoosePic",e[e.CostPoint=-4]="CostPoint",e[e.AddAction=-5]="AddAction",e[e.CloseWindow=-6]="CloseWindow",e[e.SendRequest=-7]="SendRequest",e[e.UploadFileByPath=-8]="UploadFileByPath",e[e.GetInitData=-9]="GetInitData"})(zt||(zt={}));const Es=e=>e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e+" B",_s=(e,t,r)=>{let n=e.path,o=Je.LocalPath;return(t||!n)&&(n=URL.createObjectURL(e),o=Je.ObjectUrl),{path:n,name:e.name,source:o,cloud_source:r,ext:e.name.split(".").pop(),size:e.size,uid:Ss()}},vs=e=>new Date(e*1e3).toISOString().substring(11,19),Os=async()=>{const e=await un(),t=e.token;return{cos:new Fe({getAuthorization:function(r,n){n({TmpSecretId:t.TmpSecretId,TmpSecretKey:t.TmpSecretKey,XCosSecurityToken:t.Token,StartTime:e.start_time,ExpiredTime:e.end_time})},SliceSize:1024*1024*5}),path:e.path,bucket:e.bucket,region:e.region}},Cs=async()=>{const e=await Ls(),t=e.token;return{oss:new ao({region:e.region,accessKeyId:t.TmpSecretId,accessKeySecret:t.TmpSecretKey,stsToken:t.Token,bucket:e.bucket}),path:e.path,bucket:e.bucket,region:e.region}},on=e=>{const t=[];for(const r in e){const n=e[r];n&&t.push(`${r}=${n}`)}return t.join("&")},Ds=/\$(.*?)\$/g,Rs=(e,t)=>{let r;const n=[];for(;(r=Ds.exec(e))!==null;)r&&r.length>0&&n.push(r[1]);return n.map(o=>{const s=t[o];s&&(e=e.replace(`$${o}$`,o.split(".").length==2?s[o.split(".")[1]]:s))}),e},Ps=e=>Object.keys(e).filter(t=>e[t]).map(t=>{let r=e[t];return["string","number","boolean"].includes(typeof r)?r=String(r):r=JSON.stringify(r),`${t}=${encodeURIComponent(r)}`}).join("&"),xs=e=>new Promise((t,r)=>{const n=new XMLHttpRequest;n.open("get",e),n.responseType="blob",n.send(),n.onload=function(){(this.status===200||this.status===304)&&(sn(URL.createObjectURL(this.response)),t())},n.onerror=function(){r("下载失败,请在新窗口打开")}}),sn=(e,t)=>{var n;const r=document.createElement("a");r.style.display="none",r.href=e,t?r.download=t:r.download=((n=e.split("?").shift())==null?void 0:n.split("/").pop())||e,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(e)},K=process.env.NODE_ENV=="production"?"https://api.zyjj.cc/api/v1":"http://127.0.0.1:3000/api/v1",js=process.env.NODE_ENV=="production"?"https://knowledge.zyjj.cc/api/v1":"http://127.0.0.1:3001/api/v1",Ns=e=>J(`${K}/common/user/login`,e,"post"),ks=(e,t,r)=>J(`${K}/common/app/info?os=${e}&version=${t}&uid=${r||""}`,{},"get"),Is=e=>J(`${K}/common/user/register`,e,"post"),As=e=>J(`${K}/common/user/reset/password`,e,"post"),an=e=>J(`${K}/common/user/email/token`,{email:e},"post"),cn=()=>J(`${K}/user/user/info`,{},"get",!1),Fs=e=>J(`${K}/user/user/info`,e,"put"),Ms=e=>J(`${K}/user/point/deducting`,e,"post"),$s=e=>J(`${K}/common/tool/list?${on(e)}`,{},"get"),Us=()=>J(`${K}/common/tool/all`,{},"get"),Bs=e=>J(`${K}/common/tool/${e}`,{},"get"),zs=e=>J(`${K}/common/tool/inc/${e}`,{},"get"),Vs=()=>J(`${K}/common/tool/tags`,{},"get"),un=()=>J(`${K}/user/cloud/tencent/cos`,{},"get"),Ls=()=>J(`${K}/user/cloud/aliyun/oss`,{},"get"),qs=e=>J(`${K}/user/task`,e,"post"),Ts=e=>J(`${K}/user/task/${e}`,{},"get"),ln=()=>J(`${K}/user/cloud/mqtt/task`,{},"get"),Ws=()=>J(`${K}/common/material/tags`,{},"get"),Hs=e=>J(`${K}/user/material/${e}`,{},"get"),Gs=e=>J(`${K}/user/material/url`,{key_list:e},"post"),Ys=e=>J(`${K}${e.url}`,e.data||{},e.method),Js=e=>J(`${js}${e.url}`,e.data||{},e.method);var Vt;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab",e[e.Flow=2]="Flow"})(Vt||(Vt={}));var Lt;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Lt||(Lt={}));var je;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error",e[e.DetailAppend=5]="DetailAppend",e[e.DetailSet=6]="DetailSet"})(je||(je={}));var qt;(function(e){e[e.FileInput=0]="FileInput",e[e.FileInputList=1]="FileInputList",e[e.Select=2]="Select",e[e.FileGenerate=3]="FileGenerate",e[e.Input=4]="Input"})(qt||(qt={}));var Tt;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Tt||(Tt={}));var Wt;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(Wt||(Wt={}));var Ht;(function(e){e[e.Input=0]="Input",e[e.Select=1]="Select",e[e.TextArea=2]="TextArea",e[e.FileUpload=3]="FileUpload",e[e.Slider=4]="Slider",e[e.Audio=5]="Audio",e[e.Number=6]="Number",e[e.ImageList=7]="ImageList",e[e.Image=8]="Image",e[e.Alert=9]="Alert",e[e.Video=10]="Video",e[e.MarkDown=11]="MarkDown"})(Ht||(Ht={}));var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Ke={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var dn;function Qs(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),m=Symbol.iterator,b="@@iterator";function k(a){if(a===null||typeof a!="object")return null;var p=m&&a[m]||a[b];return typeof p=="function"?p:null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(a){{for(var p=arguments.length,g=new Array(p>1?p-1:0),C=1;C<p;C++)g[C-1]=arguments[C];j("error",a,g)}}function j(a,p,g){{var C=U.ReactDebugCurrentFrame,
|
|
23
|
-
`+ye+a}}var ge=!1,ne;{var _e=typeof WeakMap=="function"?WeakMap:Map;ne=new _e}function Pe(a,p){if(!a||ge)return"";{var g=ne.get(a);if(g!==void 0)return g}var C;ge=!0;var
|
|
22
|
+
*/var dn;function Qs(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),m=Symbol.iterator,b="@@iterator";function k(a){if(a===null||typeof a!="object")return null;var p=m&&a[m]||a[b];return typeof p=="function"?p:null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(a){{for(var p=arguments.length,g=new Array(p>1?p-1:0),C=1;C<p;C++)g[C-1]=arguments[C];j("error",a,g)}}function j(a,p,g){{var C=U.ReactDebugCurrentFrame,V=C.getStackAddendum();V!==""&&(p+="%s",g=g.concat([V]));var T=g.map(function($){return String($)});T.unshift("Warning: "+p),Function.prototype.apply.call(console[a],console,T)}}var M=!1,q=!1,z=!1,ee=!1,A=!1,re;re=Symbol.for("react.module.reference");function G(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===s||A||a===o||a===d||a===l||ee||a===x||M||q||z||typeof a=="object"&&a!==null&&(a.$$typeof===E||a.$$typeof===f||a.$$typeof===i||a.$$typeof===c||a.$$typeof===u||a.$$typeof===re||a.getModuleId!==void 0))}function B(a,p,g){var C=a.displayName;if(C)return C;var V=p.displayName||p.name||"";return V!==""?g+"("+V+")":g}function Ae(a){return a.displayName||"Context"}function pe(a){if(a==null)return null;if(typeof a.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case l:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case c:var p=a;return Ae(p)+".Consumer";case i:var g=a;return Ae(g._context)+".Provider";case u:return B(a,a.render,"ForwardRef");case f:var C=a.displayName||null;return C!==null?C:pe(a.type)||"Memo";case E:{var V=a,T=V._payload,$=V._init;try{return pe($(T))}catch{return null}}}return null}var O=Object.assign,w=0,y,v,S,R,P,L,Y;function Z(){}Z.__reactDisabledLog=!0;function oe(){{if(w===0){y=console.log,v=console.info,S=console.warn,R=console.error,P=console.group,L=console.groupCollapsed,Y=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Z,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}w++}}function ue(){{if(w--,w===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},a,{value:y}),info:O({},a,{value:v}),warn:O({},a,{value:S}),error:O({},a,{value:R}),group:O({},a,{value:P}),groupCollapsed:O({},a,{value:L}),groupEnd:O({},a,{value:Y})})}w<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=U.ReactCurrentDispatcher,ye;function Ee(a,p,g){{if(ye===void 0)try{throw Error()}catch(V){var C=V.stack.trim().match(/\n( *(at )?)/);ye=C&&C[1]||""}return`
|
|
23
|
+
`+ye+a}}var ge=!1,ne;{var _e=typeof WeakMap=="function"?WeakMap:Map;ne=new _e}function Pe(a,p){if(!a||ge)return"";{var g=ne.get(a);if(g!==void 0)return g}var C;ge=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=Se.current,Se.current=null,oe();try{if(p){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(Ce){C=Ce}Reflect.construct(a,[],$)}else{try{$.call()}catch(Ce){C=Ce}a.call($.prototype)}}else{try{throw Error()}catch(Ce){C=Ce}a()}}catch(Ce){if(Ce&&C&&typeof Ce.stack=="string"){for(var I=Ce.stack.split(`
|
|
24
24
|
`),ie=C.stack.split(`
|
|
25
25
|
`),Q=I.length-1,te=ie.length-1;Q>=1&&te>=0&&I[Q]!==ie[te];)te--;for(;Q>=1&&te>=0;Q--,te--)if(I[Q]!==ie[te]){if(Q!==1||te!==1)do if(Q--,te--,te<0||I[Q]!==ie[te]){var me=`
|
|
26
|
-
`+I[Q].replace(" at new "," at ");return a.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",a.displayName)),typeof a=="function"&&ne.set(a,me),me}while(Q>=1&&te>=0);break}}}finally{ge=!1,Se.current=T,ue(),Error.prepareStackTrace=
|
|
26
|
+
`+I[Q].replace(" at new "," at ");return a.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",a.displayName)),typeof a=="function"&&ne.set(a,me),me}while(Q>=1&&te>=0);break}}}finally{ge=!1,Se.current=T,ue(),Error.prepareStackTrace=V}var Le=a?a.displayName||a.name:"",io=Le?Ee(Le):"";return typeof a=="function"&&ne.set(a,io),io}function ze(a,p,g){return Pe(a,!1)}function Ia(a){var p=a.prototype;return!!(p&&p.isReactComponent)}function St(a,p,g){if(a==null)return"";if(typeof a=="function")return Pe(a,Ia(a));if(typeof a=="string")return Ee(a);switch(a){case d:return Ee("Suspense");case l:return Ee("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return ze(a.render);case f:return St(a.type,p,g);case E:{var C=a,V=C._payload,T=C._init;try{return St(T(V),p,g)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,Yn={},Jn=U.ReactDebugCurrentFrame;function _t(a){if(a){var p=a._owner,g=St(a.type,a._source,p?p.type:null);Jn.setExtraStackFrame(g)}else Jn.setExtraStackFrame(null)}function Aa(a,p,g,C,V){{var T=Function.call.bind(Et);for(var $ in a)if(T(a,$)){var I=void 0;try{if(typeof a[$]!="function"){var ie=Error((C||"React class")+": "+g+" type `"+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[$]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ie.name="Invariant Violation",ie}I=a[$](p,$,C,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Q){I=Q}I&&!(I instanceof Error)&&(_t(V),N("%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).",C||"React class",g,$,typeof I),_t(null)),I instanceof Error&&!(I.message in Yn)&&(Yn[I.message]=!0,_t(V),N("Failed %s type: %s",g,I.message),_t(null))}}}var Fa=Array.isArray;function wr(a){return Fa(a)}function Ma(a){{var p=typeof Symbol=="function"&&Symbol.toStringTag,g=p&&a[Symbol.toStringTag]||a.constructor.name||"Object";return g}}function $a(a){try{return Kn(a),!1}catch{return!0}}function Kn(a){return""+a}function Xn(a){if($a(a))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ma(a)),Kn(a)}var tt=U.ReactCurrentOwner,Ua={key:!0,ref:!0,__self:!0,__source:!0},Zn,Qn,Sr;Sr={};function Ba(a){if(Et.call(a,"ref")){var p=Object.getOwnPropertyDescriptor(a,"ref").get;if(p&&p.isReactWarning)return!1}return a.ref!==void 0}function za(a){if(Et.call(a,"key")){var p=Object.getOwnPropertyDescriptor(a,"key").get;if(p&&p.isReactWarning)return!1}return a.key!==void 0}function Va(a,p){if(typeof a.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var g=pe(tt.current.type);Sr[g]||(N('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',pe(tt.current.type),a.ref),Sr[g]=!0)}}function La(a,p){{var g=function(){Zn||(Zn=!0,N("%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)",p))};g.isReactWarning=!0,Object.defineProperty(a,"key",{get:g,configurable:!0})}}function qa(a,p){{var g=function(){Qn||(Qn=!0,N("%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)",p))};g.isReactWarning=!0,Object.defineProperty(a,"ref",{get:g,configurable:!0})}}var Ta=function(a,p,g,C,V,T,$){var I={$$typeof:t,type:a,key:p,ref:g,props:$,_owner:T};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function Wa(a,p,g,C,V){{var T,$={},I=null,ie=null;g!==void 0&&(Xn(g),I=""+g),za(p)&&(Xn(p.key),I=""+p.key),Ba(p)&&(ie=p.ref,Va(p,V));for(T in p)Et.call(p,T)&&!Ua.hasOwnProperty(T)&&($[T]=p[T]);if(a&&a.defaultProps){var Q=a.defaultProps;for(T in Q)$[T]===void 0&&($[T]=Q[T])}if(I||ie){var te=typeof a=="function"?a.displayName||a.name||"Unknown":a;I&&La($,te),ie&&qa($,te)}return Ta(a,I,ie,V,C,tt.current,$)}}var Er=U.ReactCurrentOwner,eo=U.ReactDebugCurrentFrame;function Ve(a){if(a){var p=a._owner,g=St(a.type,a._source,p?p.type:null);eo.setExtraStackFrame(g)}else eo.setExtraStackFrame(null)}var _r;_r=!1;function vr(a){return typeof a=="object"&&a!==null&&a.$$typeof===t}function to(){{if(Er.current){var a=pe(Er.current.type);if(a)return`
|
|
27
27
|
|
|
28
28
|
Check the render method of \``+a+"`."}return""}}function Ha(a){return""}var ro={};function Ga(a){{var p=to();if(!p){var g=typeof a=="string"?a:a.displayName||a.name;g&&(p=`
|
|
29
29
|
|
|
30
|
-
Check the top-level render call using <`+g+">.")}return p}}function no(a,p){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var g=Ga(p);if(ro[g])return;ro[g]=!0;var C="";a&&a._owner&&a._owner!==Er.current&&(C=" It was passed a child from "+pe(a._owner.type)+"."),Le(a),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,C),Le(null)}}function oo(a,p){{if(typeof a!="object")return;if(wr(a))for(var g=0;g<a.length;g++){var C=a[g];vr(C)&&no(C,p)}else if(vr(a))a._store&&(a._store.validated=!0);else if(a){var L=k(a);if(typeof L=="function"&&L!==a.entries)for(var T=L.call(a),$;!($=T.next()).done;)vr($.value)&&no($.value,p)}}}function Ya(a){{var p=a.type;if(p==null||typeof p=="string")return;var g;if(typeof p=="function")g=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===u||p.$$typeof===f))g=p.propTypes;else return;if(g){var C=pe(p);Aa(g,a.props,"prop",C,a)}else if(p.PropTypes!==void 0&&!_r){_r=!0;var L=pe(p);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ja(a){{for(var p=Object.keys(a.props),g=0;g<p.length;g++){var C=p[g];if(C!=="children"&&C!=="key"){Le(a),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Le(null);break}}a.ref!==null&&(Le(a),N("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}function so(a,p,g,C,L,T){{var $=G(a);if(!$){var I="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(I+=" 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 ie=Ha();ie?I+=ie:I+=to();var Q;a===null?Q="null":wr(a)?Q="array":a!==void 0&&a.$$typeof===t?(Q="<"+(pe(a.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof a,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,I)}var te=Wa(a,p,g,L,T);if(te==null)return te;if($){var me=p.children;if(me!==void 0)if(C)if(wr(me)){for(var Ve=0;Ve<me.length;Ve++)oo(me[Ve],a);Object.freeze&&Object.freeze(me)}else N("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 oo(me,a)}return a===n?Ja(te):Ya(te),te}}function Ka(a,p,g){return so(a,p,g,!0)}function Xa(a,p,g){return so(a,p,g,!1)}var Za=Xa,Qa=Ka;Xe.Fragment=n,Xe.jsx=Za,Xe.jsxs=Qa}()),Xe}process.env.NODE_ENV==="production"?Gt.exports=Zs():Gt.exports=Qs();var D=Gt.exports,hn={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ks,function(){var r=1e3,n=6e4,o=36e5,s="millisecond",i="second",c="minute",u="hour",d="day",l="week",f="month",E="quarter",x="year",m="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,N={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(O){var w=["th","st","nd","rd"],y=O%100;return"["+O+(w[(y-20)%10]||w[y]||w[0])+"]"}},j=function(O,w,y){var v=String(O);return!v||v.length>=w?O:""+Array(w+1-v.length).join(y)+O},M={s:j,z:function(O){var w=-O.utcOffset(),y=Math.abs(w),v=Math.floor(y/60),S=y%60;return(w<=0?"+":"-")+j(v,2,"0")+":"+j(S,2,"0")},m:function O(w,y){if(w.date()<y.date())return-O(y,w);var v=12*(y.year()-w.year())+(y.month()-w.month()),S=w.clone().add(v,f),R=y-S<0,P=w.clone().add(v+(R?-1:1),f);return+(-(v+(y-S)/(R?S-P:P-S))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:x,w:l,d,D:m,h:u,m:c,s:i,ms:s,Q:E}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},q="en",z={};z[q]=N;var ee="$isDayjsObject",A=function(O){return O instanceof Ae||!(!O||!O[ee])},re=function O(w,y,v){var S;if(!w)return q;if(typeof w=="string"){var R=w.toLowerCase();z[R]&&(S=R),y&&(z[R]=y,S=R);var P=w.split("-");if(!S&&P.length>1)return O(P[0])}else{var V=w.name;z[V]=w,S=V}return!v&&S&&(q=S),S||!v&&q},G=function(O,w){if(A(O))return O.clone();var y=typeof w=="object"?w:{};return y.date=O,y.args=arguments,new Ae(y)},B=M;B.l=re,B.i=A,B.w=function(O,w){return G(O,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var Ae=function(){function O(y){this.$L=re(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[ee]=!0}var w=O.prototype;return w.parse=function(y){this.$d=function(v){var S=v.date,R=v.utc;if(S===null)return new Date(NaN);if(B.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var P=S.match(k);if(P){var V=P[2]-1||0,Y=(P[7]||"0").substring(0,3);return R?new Date(Date.UTC(P[1],V,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Y)):new Date(P[1],V,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Y)}}return new Date(S)}(y),this.init()},w.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},w.$utils=function(){return B},w.isValid=function(){return this.$d.toString()!==b},w.isSame=function(y,v){var S=G(y);return this.startOf(v)<=S&&S<=this.endOf(v)},w.isAfter=function(y,v){return G(y)<this.startOf(v)},w.isBefore=function(y,v){return this.endOf(v)<G(y)},w.$g=function(y,v,S){return B.u(y)?this[v]:this.set(S,y)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(y,v){var S=this,R=!!B.u(v)||v,P=B.p(y),V=function(ge,ne){var _e=B.w(S.$u?Date.UTC(S.$y,ne,ge):new Date(S.$y,ne,ge),S);return R?_e:_e.endOf(d)},Y=function(ge,ne){return B.w(S.toDate()[ge].apply(S.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ne)),S)},Z=this.$W,oe=this.$M,ue=this.$D,Se="set"+(this.$u?"UTC":"");switch(P){case x:return R?V(1,0):V(31,11);case f:return R?V(1,oe):V(0,oe+1);case l:var ye=this.$locale().weekStart||0,Ee=(Z<ye?Z+7:Z)-ye;return V(R?ue-Ee:ue+(6-Ee),oe);case d:case m:return Y(Se+"Hours",0);case u:return Y(Se+"Minutes",1);case c:return Y(Se+"Seconds",2);case i:return Y(Se+"Milliseconds",3);default:return this.clone()}},w.endOf=function(y){return this.startOf(y,!1)},w.$set=function(y,v){var S,R=B.p(y),P="set"+(this.$u?"UTC":""),V=(S={},S[d]=P+"Date",S[m]=P+"Date",S[f]=P+"Month",S[x]=P+"FullYear",S[u]=P+"Hours",S[c]=P+"Minutes",S[i]=P+"Seconds",S[s]=P+"Milliseconds",S)[R],Y=R===d?this.$D+(v-this.$W):v;if(R===f||R===x){var Z=this.clone().set(m,1);Z.$d[V](Y),Z.init(),this.$d=Z.set(m,Math.min(this.$D,Z.daysInMonth())).$d}else V&&this.$d[V](Y);return this.init(),this},w.set=function(y,v){return this.clone().$set(y,v)},w.get=function(y){return this[B.p(y)]()},w.add=function(y,v){var S,R=this;y=Number(y);var P=B.p(v),V=function(oe){var ue=G(R);return B.w(ue.date(ue.date()+Math.round(oe*y)),R)};if(P===f)return this.set(f,this.$M+y);if(P===x)return this.set(x,this.$y+y);if(P===d)return V(1);if(P===l)return V(7);var Y=(S={},S[c]=n,S[u]=o,S[i]=r,S)[P]||1,Z=this.$d.getTime()+y*Y;return B.w(Z,this)},w.subtract=function(y,v){return this.add(-1*y,v)},w.format=function(y){var v=this,S=this.$locale();if(!this.isValid())return S.invalidDate||b;var R=y||"YYYY-MM-DDTHH:mm:ssZ",P=B.z(this),V=this.$H,Y=this.$m,Z=this.$M,oe=S.weekdays,ue=S.months,Se=S.meridiem,ye=function(ne,_e,Pe,ze){return ne&&(ne[_e]||ne(v,R))||Pe[_e].slice(0,ze)},Ee=function(ne){return B.s(V%12||12,ne,"0")},ge=Se||function(ne,_e,Pe){var ze=ne<12?"AM":"PM";return Pe?ze.toLowerCase():ze};return R.replace(U,function(ne,_e){return _e||function(Pe){switch(Pe){case"YY":return String(v.$y).slice(-2);case"YYYY":return B.s(v.$y,4,"0");case"M":return Z+1;case"MM":return B.s(Z+1,2,"0");case"MMM":return ye(S.monthsShort,Z,ue,3);case"MMMM":return ye(ue,Z);case"D":return v.$D;case"DD":return B.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ye(S.weekdaysMin,v.$W,oe,2);case"ddd":return ye(S.weekdaysShort,v.$W,oe,3);case"dddd":return oe[v.$W];case"H":return String(V);case"HH":return B.s(V,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return ge(V,Y,!0);case"A":return ge(V,Y,!1);case"m":return String(Y);case"mm":return B.s(Y,2,"0");case"s":return String(v.$s);case"ss":return B.s(v.$s,2,"0");case"SSS":return B.s(v.$ms,3,"0");case"Z":return P}return null}(ne)||P.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(y,v,S){var R,P=this,V=B.p(v),Y=G(y),Z=(Y.utcOffset()-this.utcOffset())*n,oe=this-Y,ue=function(){return B.m(P,Y)};switch(V){case x:R=ue()/12;break;case f:R=ue();break;case E:R=ue()/3;break;case l:R=(oe-Z)/6048e5;break;case d:R=(oe-Z)/864e5;break;case u:R=oe/o;break;case c:R=oe/n;break;case i:R=oe/r;break;default:R=oe}return S?R:B.a(R)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return z[this.$L]},w.locale=function(y,v){if(!y)return this.$L;var S=this.clone(),R=re(y,v,!0);return R&&(S.$L=R),S},w.clone=function(){return B.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},O}(),pe=Ae.prototype;return G.prototype=pe,[["$ms",s],["$s",i],["$m",c],["$H",u],["$W",d],["$M",f],["$y",x],["$D",m]].forEach(function(O){pe[O[1]]=function(w){return this.$g(w,O[0],O[1])}}),G.extend=function(O,w){return O.$i||(O(w,Ae,G),O.$i=!0),G},G.locale=re,G.isDayjs=A,G.unix=function(O){return G(1e3*O)},G.en=z[q],G.Ls=z,G.p={},G})})(hn);var ei=hn.exports;const ti=Xs(ei),ri=e=>ti(e).format("YYYY-MM-DD HH:mm:ss"),ni=e=>D.jsx(_.Typography.Paragraph,{copyable:!0,children:e}),oi=e=>D.jsx(_.Typography.Ellipsis,{style:{maxWidth:300},rows:1,showTooltip:!0,children:e});function si(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ii(e){return si(e)&&"type"in e&&typeof e.type=="string"}var pn=Symbol.for("immer-nothing"),mn=Symbol.for("immer-draftable"),le=Symbol.for("immer-state"),ai=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ce(e,...t){if(process.env.NODE_ENV!=="production"){const r=ai[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ue=Object.getPrototypeOf;function Re(e){return!!e&&!!e[le]}function ve(e){var t;return e?yn(e)||Array.isArray(e)||!!e[mn]||!!((t=e.constructor)!=null&&t[mn])||ft(e)||dt(e):!1}var ci=Object.prototype.constructor.toString();function yn(e){if(!e||typeof e!="object")return!1;const t=Ue(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===ci}function ut(e,t){lt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function lt(e){const t=e[le];return t?t.type_:Array.isArray(e)?1:ft(e)?2:dt(e)?3:0}function Yt(e,t){return lt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gn(e,t,r){const n=lt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ui(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ft(e){return e instanceof Map}function dt(e){return e instanceof Set}function Ne(e){return e.copy_||e.base_}function Jt(e,t){if(ft(e))return new Map(e);if(dt(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=yn(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[le];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const i=o[s],c=n[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[i]})}return Object.create(Ue(e),n)}else{const n=Ue(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Kt(e,t=!1){return ht(e)||Re(e)||!ve(e)||(lt(e)>1&&(e.set=e.add=e.clear=e.delete=li),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Kt(n,!0))),e}function li(){ce(2)}function ht(e){return Object.isFrozen(e)}var fi={};function ke(e){const t=fi[e];return t||ce(0,e),t}var Ze;function bn(){return Ze}function di(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wn(e,t){t&&(ke("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xt(e){Zt(e),e.drafts_.forEach(hi),e.drafts_=null}function Zt(e){e===Ze&&(Ze=e.parent_)}function Sn(e){return Ze=di(Ze,e)}function hi(e){const t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function En(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[le].modified_&&(Xt(t),ce(4)),ve(e)&&(e=pt(t,e),t.parent_||mt(t,e)),t.patches_&&ke("Patches").generateReplacementPatches_(r[le].base_,e,t.patches_,t.inversePatches_)):e=pt(t,r,[]),Xt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pn?e:void 0}function pt(e,t,r){if(ht(t))return t;const n=t[le];if(!n)return ut(t,(o,s)=>_n(e,n,t,o,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return mt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let s=o,i=!1;n.type_===3&&(s=new Set(o),o.clear(),i=!0),ut(s,(c,u)=>_n(e,n,o,c,u,r,i)),mt(e,o,!1),r&&e.patches_&&ke("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function _n(e,t,r,n,o,s,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Re(o)){const c=s&&t&&t.type_!==3&&!Yt(t.assigned_,n)?s.concat(n):void 0,u=pt(e,o,c);if(gn(r,n,u),Re(u))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(ve(o)&&!ht(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pt(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&mt(e,o)}}function mt(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Kt(t,r)}function pi(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:bn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,s=Qt;r&&(o=[n],s=Qe);const{revoke:i,proxy:c}=Proxy.revocable(o,s);return n.draft_=c,n.revoke_=i,c}var Qt={get(e,t){if(t===le)return e;const r=Ne(e);if(!Yt(r,t))return mi(e,r,t);const n=r[t];return e.finalized_||!ve(n)?n:n===er(e.base_,t)?(rr(e),e.copy_[t]=nr(n,e)):n},has(e,t){return t in Ne(e)},ownKeys(e){return Reflect.ownKeys(Ne(e))},set(e,t,r){const n=vn(Ne(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=er(Ne(e),t),s=o==null?void 0:o[le];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ui(r,o)&&(r!==void 0||Yt(e.base_,t)))return!0;rr(e),tr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return er(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,rr(e),tr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ne(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ce(11)},getPrototypeOf(e){return Ue(e.base_)},setPrototypeOf(){ce(12)}},Qe={};ut(Qt,(e,t)=>{Qe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Qe.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ce(13),Qe.set.call(this,e,t,void 0)},Qe.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ce(14),Qt.set.call(this,e[0],t,r,e[0])};function er(e,t){const r=e[le];return(r?Ne(r):e)[t]}function mi(e,t,r){var o;const n=vn(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function vn(e,t){if(!(t in e))return;let r=Ue(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ue(r)}}function tr(e){e.modified_||(e.modified_=!0,e.parent_&&tr(e.parent_))}function rr(e){e.copy_||(e.copy_=Jt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const i=this;return function(u=s,...d){return i.produce(u,l=>r.call(this,l,...d))}}typeof r!="function"&&ce(6),n!==void 0&&typeof n!="function"&&ce(7);let o;if(ve(t)){const s=Sn(this),i=nr(t,void 0);let c=!0;try{o=r(i),c=!1}finally{c?Xt(s):Zt(s)}return wn(s,n),En(o,s)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===pn&&(o=void 0),this.autoFreeze_&&Kt(o,!0),n){const s=[],i=[];ke("Patches").generateReplacementPatches_(t,o,s,i),n(s,i)}return o}else ce(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...c)=>this.produceWithPatches(i,u=>t(u,...c));let n,o;return[this.produce(t,r,(i,c)=>{n=i,o=c}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ve(e)||ce(8),Re(e)&&(e=On(e));const t=Sn(this),r=nr(e,void 0);return r[le].isManual_=!0,Zt(t),r}finishDraft(e,t){const r=e&&e[le];(!r||!r.isManual_)&&ce(9);const{scope_:n}=r;return wn(n,t),En(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=ke("Patches").applyPatches_;return Re(e)?n(e,t):this.produce(e,o=>n(o,t))}};function nr(e,t){const r=ft(e)?ke("MapSet").proxyMap_(e,t):dt(e)?ke("MapSet").proxySet_(e,t):pi(e,t);return(t?t.scope_:bn()).drafts_.push(r),r}function On(e){return Re(e)||ce(10,e),Cn(e)}function Cn(e){if(!ve(e)||ht(e))return e;const t=e[le];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Jt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Jt(e,!0);return ut(r,(n,o)=>{gn(r,n,Cn(o))}),t&&(t.finalized_=!1),r}var fe=new yi,Dn=fe.produce;fe.produceWithPatches.bind(fe),fe.setAutoFreeze.bind(fe),fe.setUseStrictShallowCopy.bind(fe),fe.applyPatches.bind(fe),fe.createDraft.bind(fe),fe.finishDraft.bind(fe);var gi=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
30
|
+
Check the top-level render call using <`+g+">.")}return p}}function no(a,p){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var g=Ga(p);if(ro[g])return;ro[g]=!0;var C="";a&&a._owner&&a._owner!==Er.current&&(C=" It was passed a child from "+pe(a._owner.type)+"."),Ve(a),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,C),Ve(null)}}function oo(a,p){{if(typeof a!="object")return;if(wr(a))for(var g=0;g<a.length;g++){var C=a[g];vr(C)&&no(C,p)}else if(vr(a))a._store&&(a._store.validated=!0);else if(a){var V=k(a);if(typeof V=="function"&&V!==a.entries)for(var T=V.call(a),$;!($=T.next()).done;)vr($.value)&&no($.value,p)}}}function Ya(a){{var p=a.type;if(p==null||typeof p=="string")return;var g;if(typeof p=="function")g=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===u||p.$$typeof===f))g=p.propTypes;else return;if(g){var C=pe(p);Aa(g,a.props,"prop",C,a)}else if(p.PropTypes!==void 0&&!_r){_r=!0;var V=pe(p);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ja(a){{for(var p=Object.keys(a.props),g=0;g<p.length;g++){var C=p[g];if(C!=="children"&&C!=="key"){Ve(a),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Ve(null);break}}a.ref!==null&&(Ve(a),N("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}}function so(a,p,g,C,V,T){{var $=G(a);if(!$){var I="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(I+=" 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 ie=Ha();ie?I+=ie:I+=to();var Q;a===null?Q="null":wr(a)?Q="array":a!==void 0&&a.$$typeof===t?(Q="<"+(pe(a.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof a,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,I)}var te=Wa(a,p,g,V,T);if(te==null)return te;if($){var me=p.children;if(me!==void 0)if(C)if(wr(me)){for(var Le=0;Le<me.length;Le++)oo(me[Le],a);Object.freeze&&Object.freeze(me)}else N("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 oo(me,a)}return a===n?Ja(te):Ya(te),te}}function Ka(a,p,g){return so(a,p,g,!0)}function Xa(a,p,g){return so(a,p,g,!1)}var Za=Xa,Qa=Ka;Xe.Fragment=n,Xe.jsx=Za,Xe.jsxs=Qa}()),Xe}process.env.NODE_ENV==="production"?Gt.exports=Zs():Gt.exports=Qs();var D=Gt.exports,hn={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ks,function(){var r=1e3,n=6e4,o=36e5,s="millisecond",i="second",c="minute",u="hour",d="day",l="week",f="month",E="quarter",x="year",m="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,N={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(O){var w=["th","st","nd","rd"],y=O%100;return"["+O+(w[(y-20)%10]||w[y]||w[0])+"]"}},j=function(O,w,y){var v=String(O);return!v||v.length>=w?O:""+Array(w+1-v.length).join(y)+O},M={s:j,z:function(O){var w=-O.utcOffset(),y=Math.abs(w),v=Math.floor(y/60),S=y%60;return(w<=0?"+":"-")+j(v,2,"0")+":"+j(S,2,"0")},m:function O(w,y){if(w.date()<y.date())return-O(y,w);var v=12*(y.year()-w.year())+(y.month()-w.month()),S=w.clone().add(v,f),R=y-S<0,P=w.clone().add(v+(R?-1:1),f);return+(-(v+(y-S)/(R?S-P:P-S))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:x,w:l,d,D:m,h:u,m:c,s:i,ms:s,Q:E}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},q="en",z={};z[q]=N;var ee="$isDayjsObject",A=function(O){return O instanceof Ae||!(!O||!O[ee])},re=function O(w,y,v){var S;if(!w)return q;if(typeof w=="string"){var R=w.toLowerCase();z[R]&&(S=R),y&&(z[R]=y,S=R);var P=w.split("-");if(!S&&P.length>1)return O(P[0])}else{var L=w.name;z[L]=w,S=L}return!v&&S&&(q=S),S||!v&&q},G=function(O,w){if(A(O))return O.clone();var y=typeof w=="object"?w:{};return y.date=O,y.args=arguments,new Ae(y)},B=M;B.l=re,B.i=A,B.w=function(O,w){return G(O,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var Ae=function(){function O(y){this.$L=re(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[ee]=!0}var w=O.prototype;return w.parse=function(y){this.$d=function(v){var S=v.date,R=v.utc;if(S===null)return new Date(NaN);if(B.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var P=S.match(k);if(P){var L=P[2]-1||0,Y=(P[7]||"0").substring(0,3);return R?new Date(Date.UTC(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Y)):new Date(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Y)}}return new Date(S)}(y),this.init()},w.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},w.$utils=function(){return B},w.isValid=function(){return this.$d.toString()!==b},w.isSame=function(y,v){var S=G(y);return this.startOf(v)<=S&&S<=this.endOf(v)},w.isAfter=function(y,v){return G(y)<this.startOf(v)},w.isBefore=function(y,v){return this.endOf(v)<G(y)},w.$g=function(y,v,S){return B.u(y)?this[v]:this.set(S,y)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(y,v){var S=this,R=!!B.u(v)||v,P=B.p(y),L=function(ge,ne){var _e=B.w(S.$u?Date.UTC(S.$y,ne,ge):new Date(S.$y,ne,ge),S);return R?_e:_e.endOf(d)},Y=function(ge,ne){return B.w(S.toDate()[ge].apply(S.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ne)),S)},Z=this.$W,oe=this.$M,ue=this.$D,Se="set"+(this.$u?"UTC":"");switch(P){case x:return R?L(1,0):L(31,11);case f:return R?L(1,oe):L(0,oe+1);case l:var ye=this.$locale().weekStart||0,Ee=(Z<ye?Z+7:Z)-ye;return L(R?ue-Ee:ue+(6-Ee),oe);case d:case m:return Y(Se+"Hours",0);case u:return Y(Se+"Minutes",1);case c:return Y(Se+"Seconds",2);case i:return Y(Se+"Milliseconds",3);default:return this.clone()}},w.endOf=function(y){return this.startOf(y,!1)},w.$set=function(y,v){var S,R=B.p(y),P="set"+(this.$u?"UTC":""),L=(S={},S[d]=P+"Date",S[m]=P+"Date",S[f]=P+"Month",S[x]=P+"FullYear",S[u]=P+"Hours",S[c]=P+"Minutes",S[i]=P+"Seconds",S[s]=P+"Milliseconds",S)[R],Y=R===d?this.$D+(v-this.$W):v;if(R===f||R===x){var Z=this.clone().set(m,1);Z.$d[L](Y),Z.init(),this.$d=Z.set(m,Math.min(this.$D,Z.daysInMonth())).$d}else L&&this.$d[L](Y);return this.init(),this},w.set=function(y,v){return this.clone().$set(y,v)},w.get=function(y){return this[B.p(y)]()},w.add=function(y,v){var S,R=this;y=Number(y);var P=B.p(v),L=function(oe){var ue=G(R);return B.w(ue.date(ue.date()+Math.round(oe*y)),R)};if(P===f)return this.set(f,this.$M+y);if(P===x)return this.set(x,this.$y+y);if(P===d)return L(1);if(P===l)return L(7);var Y=(S={},S[c]=n,S[u]=o,S[i]=r,S)[P]||1,Z=this.$d.getTime()+y*Y;return B.w(Z,this)},w.subtract=function(y,v){return this.add(-1*y,v)},w.format=function(y){var v=this,S=this.$locale();if(!this.isValid())return S.invalidDate||b;var R=y||"YYYY-MM-DDTHH:mm:ssZ",P=B.z(this),L=this.$H,Y=this.$m,Z=this.$M,oe=S.weekdays,ue=S.months,Se=S.meridiem,ye=function(ne,_e,Pe,ze){return ne&&(ne[_e]||ne(v,R))||Pe[_e].slice(0,ze)},Ee=function(ne){return B.s(L%12||12,ne,"0")},ge=Se||function(ne,_e,Pe){var ze=ne<12?"AM":"PM";return Pe?ze.toLowerCase():ze};return R.replace(U,function(ne,_e){return _e||function(Pe){switch(Pe){case"YY":return String(v.$y).slice(-2);case"YYYY":return B.s(v.$y,4,"0");case"M":return Z+1;case"MM":return B.s(Z+1,2,"0");case"MMM":return ye(S.monthsShort,Z,ue,3);case"MMMM":return ye(ue,Z);case"D":return v.$D;case"DD":return B.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ye(S.weekdaysMin,v.$W,oe,2);case"ddd":return ye(S.weekdaysShort,v.$W,oe,3);case"dddd":return oe[v.$W];case"H":return String(L);case"HH":return B.s(L,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return ge(L,Y,!0);case"A":return ge(L,Y,!1);case"m":return String(Y);case"mm":return B.s(Y,2,"0");case"s":return String(v.$s);case"ss":return B.s(v.$s,2,"0");case"SSS":return B.s(v.$ms,3,"0");case"Z":return P}return null}(ne)||P.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(y,v,S){var R,P=this,L=B.p(v),Y=G(y),Z=(Y.utcOffset()-this.utcOffset())*n,oe=this-Y,ue=function(){return B.m(P,Y)};switch(L){case x:R=ue()/12;break;case f:R=ue();break;case E:R=ue()/3;break;case l:R=(oe-Z)/6048e5;break;case d:R=(oe-Z)/864e5;break;case u:R=oe/o;break;case c:R=oe/n;break;case i:R=oe/r;break;default:R=oe}return S?R:B.a(R)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return z[this.$L]},w.locale=function(y,v){if(!y)return this.$L;var S=this.clone(),R=re(y,v,!0);return R&&(S.$L=R),S},w.clone=function(){return B.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},O}(),pe=Ae.prototype;return G.prototype=pe,[["$ms",s],["$s",i],["$m",c],["$H",u],["$W",d],["$M",f],["$y",x],["$D",m]].forEach(function(O){pe[O[1]]=function(w){return this.$g(w,O[0],O[1])}}),G.extend=function(O,w){return O.$i||(O(w,Ae,G),O.$i=!0),G},G.locale=re,G.isDayjs=A,G.unix=function(O){return G(1e3*O)},G.en=z[q],G.Ls=z,G.p={},G})})(hn);var ei=hn.exports;const ti=Xs(ei),ri=e=>ti(e).format("YYYY-MM-DD HH:mm:ss"),ni=e=>D.jsx(_.Typography.Paragraph,{copyable:!0,children:e}),oi=e=>D.jsx(_.Typography.Ellipsis,{style:{maxWidth:300},rows:1,showTooltip:!0,children:e});function si(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ii(e){return si(e)&&"type"in e&&typeof e.type=="string"}var pn=Symbol.for("immer-nothing"),mn=Symbol.for("immer-draftable"),le=Symbol.for("immer-state"),ai=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ce(e,...t){if(process.env.NODE_ENV!=="production"){const r=ai[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ue=Object.getPrototypeOf;function Re(e){return!!e&&!!e[le]}function ve(e){var t;return e?yn(e)||Array.isArray(e)||!!e[mn]||!!((t=e.constructor)!=null&&t[mn])||ft(e)||dt(e):!1}var ci=Object.prototype.constructor.toString();function yn(e){if(!e||typeof e!="object")return!1;const t=Ue(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===ci}function ut(e,t){lt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function lt(e){const t=e[le];return t?t.type_:Array.isArray(e)?1:ft(e)?2:dt(e)?3:0}function Yt(e,t){return lt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gn(e,t,r){const n=lt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ui(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ft(e){return e instanceof Map}function dt(e){return e instanceof Set}function Ne(e){return e.copy_||e.base_}function Jt(e,t){if(ft(e))return new Map(e);if(dt(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=yn(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[le];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const i=o[s],c=n[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[i]})}return Object.create(Ue(e),n)}else{const n=Ue(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Kt(e,t=!1){return ht(e)||Re(e)||!ve(e)||(lt(e)>1&&(e.set=e.add=e.clear=e.delete=li),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Kt(n,!0))),e}function li(){ce(2)}function ht(e){return Object.isFrozen(e)}var fi={};function ke(e){const t=fi[e];return t||ce(0,e),t}var Ze;function bn(){return Ze}function di(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wn(e,t){t&&(ke("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xt(e){Zt(e),e.drafts_.forEach(hi),e.drafts_=null}function Zt(e){e===Ze&&(Ze=e.parent_)}function Sn(e){return Ze=di(Ze,e)}function hi(e){const t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function En(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[le].modified_&&(Xt(t),ce(4)),ve(e)&&(e=pt(t,e),t.parent_||mt(t,e)),t.patches_&&ke("Patches").generateReplacementPatches_(r[le].base_,e,t.patches_,t.inversePatches_)):e=pt(t,r,[]),Xt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pn?e:void 0}function pt(e,t,r){if(ht(t))return t;const n=t[le];if(!n)return ut(t,(o,s)=>_n(e,n,t,o,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return mt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let s=o,i=!1;n.type_===3&&(s=new Set(o),o.clear(),i=!0),ut(s,(c,u)=>_n(e,n,o,c,u,r,i)),mt(e,o,!1),r&&e.patches_&&ke("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function _n(e,t,r,n,o,s,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Re(o)){const c=s&&t&&t.type_!==3&&!Yt(t.assigned_,n)?s.concat(n):void 0,u=pt(e,o,c);if(gn(r,n,u),Re(u))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(ve(o)&&!ht(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pt(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&mt(e,o)}}function mt(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Kt(t,r)}function pi(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:bn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,s=Qt;r&&(o=[n],s=Qe);const{revoke:i,proxy:c}=Proxy.revocable(o,s);return n.draft_=c,n.revoke_=i,c}var Qt={get(e,t){if(t===le)return e;const r=Ne(e);if(!Yt(r,t))return mi(e,r,t);const n=r[t];return e.finalized_||!ve(n)?n:n===er(e.base_,t)?(rr(e),e.copy_[t]=nr(n,e)):n},has(e,t){return t in Ne(e)},ownKeys(e){return Reflect.ownKeys(Ne(e))},set(e,t,r){const n=vn(Ne(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=er(Ne(e),t),s=o==null?void 0:o[le];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(ui(r,o)&&(r!==void 0||Yt(e.base_,t)))return!0;rr(e),tr(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return er(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,rr(e),tr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ne(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ce(11)},getPrototypeOf(e){return Ue(e.base_)},setPrototypeOf(){ce(12)}},Qe={};ut(Qt,(e,t)=>{Qe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Qe.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ce(13),Qe.set.call(this,e,t,void 0)},Qe.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ce(14),Qt.set.call(this,e[0],t,r,e[0])};function er(e,t){const r=e[le];return(r?Ne(r):e)[t]}function mi(e,t,r){var o;const n=vn(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function vn(e,t){if(!(t in e))return;let r=Ue(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ue(r)}}function tr(e){e.modified_||(e.modified_=!0,e.parent_&&tr(e.parent_))}function rr(e){e.copy_||(e.copy_=Jt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const i=this;return function(u=s,...d){return i.produce(u,l=>r.call(this,l,...d))}}typeof r!="function"&&ce(6),n!==void 0&&typeof n!="function"&&ce(7);let o;if(ve(t)){const s=Sn(this),i=nr(t,void 0);let c=!0;try{o=r(i),c=!1}finally{c?Xt(s):Zt(s)}return wn(s,n),En(o,s)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===pn&&(o=void 0),this.autoFreeze_&&Kt(o,!0),n){const s=[],i=[];ke("Patches").generateReplacementPatches_(t,o,s,i),n(s,i)}return o}else ce(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...c)=>this.produceWithPatches(i,u=>t(u,...c));let n,o;return[this.produce(t,r,(i,c)=>{n=i,o=c}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ve(e)||ce(8),Re(e)&&(e=On(e));const t=Sn(this),r=nr(e,void 0);return r[le].isManual_=!0,Zt(t),r}finishDraft(e,t){const r=e&&e[le];(!r||!r.isManual_)&&ce(9);const{scope_:n}=r;return wn(n,t),En(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=ke("Patches").applyPatches_;return Re(e)?n(e,t):this.produce(e,o=>n(o,t))}};function nr(e,t){const r=ft(e)?ke("MapSet").proxyMap_(e,t):dt(e)?ke("MapSet").proxySet_(e,t):pi(e,t);return(t?t.scope_:bn()).drafts_.push(r),r}function On(e){return Re(e)||ce(10,e),Cn(e)}function Cn(e){if(!ve(e)||ht(e))return e;const t=e[le];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Jt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Jt(e,!0);return ut(r,(n,o)=>{gn(r,n,Cn(o))}),t&&(t.finalized_=!1),r}var fe=new yi,Dn=fe.produce;fe.produceWithPatches.bind(fe),fe.setAutoFreeze.bind(fe),fe.setUseStrictShallowCopy.bind(fe),fe.applyPatches.bind(fe),fe.createDraft.bind(fe),fe.finishDraft.bind(fe);var gi=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
31
31
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
32
32
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
33
33
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},bi=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:i}=e,c=n(()=>({}),...o);if(!(c.apply(null,s)===c.apply(null,i))){let d;try{throw new Error}catch(l){({stack:d}=l)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
34
34
|
This means your output selector will likely run more frequently than intended.
|
|
35
35
|
Avoid returning a new reference inside your input selector, e.g.
|
|
36
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:i,stack:d})}},wi={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Si(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ei(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _i(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Rn=e=>Array.isArray(e)?e:[e];function vi(e){const t=Array.isArray(e[0])?e[0]:e;return _i(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Pn(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Oi=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...wi,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:gi},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:bi}}},Ci=class{constructor(e){this.value=e}deref(){return this.value}},Di=typeof WeakRef<"u"?WeakRef:Ci,Ri=0,xn=1;function yt(){return{s:Ri,v:void 0,o:null,p:null}}function or(e,t={}){let r=yt();const{resultEqualityCheck:n}=t;let o,s=0;function i(){var f;let c=r;const{length:u}=arguments;for(let E=0,x=u;E<x;E++){const m=arguments[E];if(typeof m=="function"||typeof m=="object"&&m!==null){let b=c.o;b===null&&(c.o=b=new WeakMap);const k=b.get(m);k===void 0?(c=yt(),b.set(m,c)):c=k}else{let b=c.p;b===null&&(c.p=b=new Map);const k=b.get(m);k===void 0?(c=yt(),b.set(m,c)):c=k}}const d=c;let l;if(c.s===xn?l=c.v:(l=e.apply(null,arguments),s++),d.s=xn,n){const E=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;E!=null&&n(E,l)&&(l=E,s!==0&&s--),o=typeof l=="object"&&l!==null||typeof l=="function"?new Di(l):l}return d.v=l,l}return i.clearCache=()=>{r=yt(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function jn(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let s=0,i=0,c,u={},d=o.pop();typeof d=="object"&&(u=d,d=o.pop()),Si(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const l={...r,...u},{memoize:f,memoizeOptions:E=[],argsMemoize:x=or,argsMemoizeOptions:m=[],devModeChecks:b={}}=l,k=Rn(E),U=Rn(m),N=vi(o),j=f(function(){return s++,d.apply(null,arguments)},...k);let M=!0;const q=x(function(){i++;const ee=Pn(N,arguments);if(c=j.apply(null,ee),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:re}=Oi(M,b);if(A.shouldRun&&A.run(d,ee,c),re.shouldRun){const G=Pn(N,arguments);re.run({inputSelectorResults:ee,inputSelectorResultsCopy:G},{memoize:f,memoizeOptions:k},arguments)}M&&(M=!1)}return c},...U);return Object.assign(q,{resultFunc:d,memoizedResultFunc:j,dependencies:N,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:x})};return Object.assign(n,{withTypes:()=>n}),n}var Pi=jn(or),xi=Object.assign((e,t=Pi)=>{Ei(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((i,c,u)=>(i[r[u]]=c,i),{}))},{withTypes:()=>xi}),ji=(...e)=>{const t=jn(...e),r=Object.assign((...n)=>{const o=t(...n),s=(i,...c)=>o(Re(i)?On(i):i,...c);return Object.assign(s,o),s},{withTypes:()=>r});return r};ji(or);var Ni=e=>e&&typeof e.match=="function";function Oe(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?X(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ii(n)&&n.type===e,r}function Nn(e){return ve(e)?Dn(e,()=>{}):e}function kn(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(process.env.NODE_ENV==="production"?X(10):"No insert provided for key not already in map");const n=r.insert(t,e);return e.set(t,n),n}process.env.NODE_ENV;function In(e){const t={},r=[];let n;const o={addCase(s,i){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?X(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?X(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?X(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?X(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=i,o},addMatcher(s,i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?X(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:s,reducer:i}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?X(31):"`builder.addDefaultCase` can only be called once");return n=s,o}};return e(o),[t,r,n]}function ki(e){return typeof e=="function"}function Ii(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?X(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=In(t),s;if(ki(e))s=()=>Nn(e());else{const c=Nn(e);s=()=>c}function i(c=s(),u){let d=[r[u.type],...n.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return d.filter(l=>!!l).length===0&&(d=[o]),d.reduce((l,f)=>{if(f)if(Re(l)){const x=f(l,u);return x===void 0?l:x}else{if(ve(l))return Dn(l,E=>f(E,u));{const E=f(l,u);if(E===void 0){if(l===null)return l;throw new Error(process.env.NODE_ENV==="production"?X(9):"A case reducer on a non-draftable value must not return undefined")}return E}}return l},c)}return i.getInitialState=s,i}var Ai="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",An=(e=21)=>{let t="",r=e;for(;r--;)t+=Ai[Math.random()*64|0];return t},Fi=(e,t)=>Ni(e)?e.match(t):e(t);function Mi(...e){return t=>e.some(r=>Fi(r,t))}var $i=["name","message","stack","code"],sr=class{constructor(e,t){Or(this,"_type");this.payload=e,this.meta=t}},Fn=class{constructor(e,t){Or(this,"_type");this.payload=e,this.meta=t}},Ui=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of $i)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ir=(()=>{function e(t,r,n){const o=Oe(t+"/fulfilled",(u,d,l,f)=>({payload:u,meta:{...f||{},arg:l,requestId:d,requestStatus:"fulfilled"}})),s=Oe(t+"/pending",(u,d,l)=>({payload:void 0,meta:{...l||{},arg:d,requestId:u,requestStatus:"pending"}})),i=Oe(t+"/rejected",(u,d,l,f,E)=>({payload:f,error:(n&&n.serializeError||Ui)(u||"Rejected"),meta:{...E||{},arg:l,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function c(u){return(d,l,f)=>{const E=n!=null&&n.idGenerator?n.idGenerator(u):An(),x=new AbortController;let m,b;function k(N){b=N,x.abort()}const U=async function(){var M,q;let N;try{let z=(M=n==null?void 0:n.condition)==null?void 0:M.call(n,u,{getState:l,extra:f});if(zi(z)&&(z=await z),z===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const ee=new Promise((A,re)=>{m=()=>{re({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",m)});d(s(E,u,(q=n==null?void 0:n.getPendingMeta)==null?void 0:q.call(n,{requestId:E,arg:u},{getState:l,extra:f}))),N=await Promise.race([ee,Promise.resolve(r(u,{dispatch:d,getState:l,extra:f,requestId:E,signal:x.signal,abort:k,rejectWithValue:(A,re)=>new sr(A,re),fulfillWithValue:(A,re)=>new Fn(A,re)})).then(A=>{if(A instanceof sr)throw A;return A instanceof Fn?o(A.payload,E,u,A.meta):o(A,E,u)})])}catch(z){N=z instanceof sr?i(null,E,u,z.payload,z.meta):i(z,E,u)}finally{m&&x.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&i.match(N)&&N.meta.condition||d(N),N}();return Object.assign(U,{abort:k,requestId:E,arg:u,unwrap(){return U.then(Bi)}})}}return Object.assign(c,{pending:s,rejected:i,fulfilled:o,settled:Mi(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Bi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zi(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Li=Symbol.for("rtk-slice-createasyncthunk");function Vi(e,t){return`${e}/${t}`}function qi({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Li];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(process.env.NODE_ENV==="production"?X(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const c=(typeof o.reducers=="function"?o.reducers(Wi()):o.reducers)||{},u=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(j,M){const q=typeof j=="string"?j:j.type;if(!q)throw new Error(process.env.NODE_ENV==="production"?X(12):"`context.addCase` cannot be called with an empty action type");if(q in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?X(13):"`context.addCase` cannot be called with two reducers for the same action type: "+q);return d.sliceCaseReducersByType[q]=M,l},addMatcher(j,M){return d.sliceMatchers.push({matcher:j,reducer:M}),l},exposeAction(j,M){return d.actionCreators[j]=M,l},exposeCaseReducer(j,M){return d.sliceCaseReducersByName[j]=M,l}};u.forEach(j=>{const M=c[j],q={reducerName:j,type:Vi(s,j),createNotation:typeof o.reducers=="function"};Gi(M)?Ji(q,M,l,t):Hi(q,M,l)});function f(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?X(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[j={},M=[],q=void 0]=typeof o.extraReducers=="function"?In(o.extraReducers):[o.extraReducers],z={...j,...d.sliceCaseReducersByType};return Ii(o.initialState,ee=>{for(let A in z)ee.addCase(A,z[A]);for(let A of d.sliceMatchers)ee.addMatcher(A.matcher,A.reducer);for(let A of M)ee.addMatcher(A.matcher,A.reducer);q&&ee.addDefaultCase(q)})}const E=j=>j,x=new Map;let m;function b(j,M){return m||(m=f()),m(j,M)}function k(){return m||(m=f()),m.getInitialState()}function U(j,M=!1){function q(ee){let A=ee[j];if(typeof A>"u"){if(M)A=k();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?X(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function z(ee=E){const A=kn(x,M,{insert:()=>new WeakMap});return kn(A,ee,{insert:()=>{const re={};for(const[G,B]of Object.entries(o.selectors??{}))re[G]=Ti(B,ee,k,M);return re}})}return{reducerPath:j,getSelectors:z,get selectors(){return z(q)},selectSlice:q}}const N={name:s,reducer:b,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:k,...U(i),injectInto(j,{reducerPath:M,...q}={}){const z=M??i;return j.inject({reducerPath:z,reducer:b},q),{...N,...U(z,!0)}}};return N}}function Ti(e,t,r,n){function o(s,...i){let c=t(s);if(typeof c>"u"){if(n)c=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?X(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...i)}return o.unwrapped=e,o}var Mn=qi();function Wi(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Hi({type:e,reducerName:t,createNotation:r},n,o){let s,i;if("reducer"in n){if(r&&!Yi(n))throw new Error(process.env.NODE_ENV==="production"?X(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=n.reducer,i=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?Oe(e,i):Oe(e))}function Gi(e){return e._reducerDefinitionType==="asyncThunk"}function Yi(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ji({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?X(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:i,pending:c,rejected:u,settled:d,options:l}=r,f=o(e,s,l);n.exposeAction(t,f),i&&n.addCase(f.fulfilled,i),c&&n.addCase(f.pending,c),u&&n.addCase(f.rejected,u),d&&n.addMatcher(f.settled,d),n.exposeCaseReducer(t,{fulfilled:i||gt,pending:c||gt,rejected:u||gt,settled:d||gt})}function gt(){}var Ki=(e,t)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?X(32):`${t} is not a function`)},ar="listenerMiddleware",Xi=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:s}=e;if(t)o=Oe(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?X(21):"Creating or removing a listener requires one of the known fields for matching an action");return Ki(s,"options.listener"),{predicate:o,type:t,effect:s}},Zi=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Xi(e);return{id:An(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?X(22):"Unsubscribe not initialized")}}},{withTypes:()=>Zi}),Qi=Object.assign(Oe(`${ar}/add`),{withTypes:()=>Qi});Oe(`${ar}/removeAll`);var ea=Object.assign(Oe(`${ar}/remove`),{withTypes:()=>ea});function X(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ta={showLogin:!1},cr=ir("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cn()}),$n=Mn({name:"user",initialState:ta,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(cr.fulfilled,(t,r)=>{r.payload!=null?(t.isLogin=!0,t.userInfo=r.payload):t.isLogin=!1}),e.addCase(cr.rejected,t=>{t.isLogin=!1,t.userInfo=void 0})}}),ra=$n.actions,na=$n.reducer,ur=(e,t)=>t.some(r=>e instanceof r);let Un,Bn;function oa(){return Un||(Un=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function sa(){return Bn||(Bn=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const lr=new WeakMap,fr=new WeakMap,bt=new WeakMap;function ia(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",s),e.removeEventListener("error",i)},s=()=>{r(Ie(e.result)),o()},i=()=>{n(e.error),o()};e.addEventListener("success",s),e.addEventListener("error",i)});return bt.set(t,e),t}function aa(e){if(lr.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",i),e.removeEventListener("abort",i)},s=()=>{r(),o()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",s),e.addEventListener("error",i),e.addEventListener("abort",i)});lr.set(e,t)}let dr={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return lr.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ie(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function zn(e){dr=e(dr)}function ca(e){return sa().includes(e)?function(...t){return e.apply(hr(this),t),Ie(this.request)}:function(...t){return Ie(e.apply(hr(this),t))}}function ua(e){return typeof e=="function"?ca(e):(e instanceof IDBTransaction&&aa(e),ur(e,oa())?new Proxy(e,dr):e)}function Ie(e){if(e instanceof IDBRequest)return ia(e);if(fr.has(e))return fr.get(e);const t=ua(e);return t!==e&&(fr.set(e,t),bt.set(t,e)),t}const hr=e=>bt.get(e);function la(e,t,{blocked:r,upgrade:n,blocking:o,terminated:s}={}){const i=indexedDB.open(e,t),c=Ie(i);return n&&i.addEventListener("upgradeneeded",u=>{n(Ie(i.result),u.oldVersion,u.newVersion,Ie(i.transaction),u)}),r&&i.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),c.then(u=>{s&&u.addEventListener("close",()=>s()),o&&u.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),c}const fa=["get","getKey","getAll","getAllKeys","count"],da=["put","add","delete","clear"],pr=new Map;function Ln(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(pr.get(t))return pr.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=da.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||fa.includes(r)))return;const s=async function(i,...c){const u=this.transaction(i,o?"readwrite":"readonly");let d=u.store;return n&&(d=d.index(c.shift())),(await Promise.all([d[r](...c),o&&u.done]))[0]};return pr.set(t,s),s}zn(e=>({...e,get:(t,r,n)=>Ln(t,r)||e.get(t,r,n),has:(t,r)=>!!Ln(t,r)||e.has(t,r)}));const ha=["continue","continuePrimaryKey","advance"],Vn={},mr=new WeakMap,qn=new WeakMap,pa={get(e,t){if(!ha.includes(t))return e[t];let r=Vn[t];return r||(r=Vn[t]=function(...n){mr.set(this,qn.get(this)[t](...n))}),r}};async function*ma(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,pa);for(qn.set(r,t),bt.set(r,hr(t));t;)yield r,t=await(mr.get(r)||t.continue()),mr.delete(r)}function Tn(e,t){return t===Symbol.asyncIterator&&ur(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&ur(e,[IDBIndex,IDBObjectStore])}zn(e=>({...e,get(t,r,n){return Tn(t,r)?ma:e.get(t,r,n)},has(t,r){return Tn(t,r)||e.has(t,r)}}));const Be="task",et=()=>la("zyjj",2,{upgrade(e){e.createObjectStore(Be)}}),ya=async(e,t=Be)=>(await et()).put(t,e,e.id),ga=async(e=Be)=>(await et()).getAll(e),ba=async(e,t=Be)=>(await et()).get(t,e),wa=async(e,t,r=Be)=>(await et()).put(r,t,e),Sa=async(e,t=Be)=>(await et()).delete(t,e),Ea={taskCallback:{},listenerCallback:[]},Wn=ir("mqtt/initMqtt",async(e,{dispatch:t})=>{const r=await ln();console.log("[mqtt] mqtt info",r);const n=r.topic,o=co.connect(`mqtt://${r.host}`,{keepalive:60,clientId:r.client_id,username:r.username,password:r.password,protocol:"wss",reconnectPeriod:3e3});return o.on("connect",s=>{console.log("[mqtt] connect success",s),o.subscribe(n,{qos:1})}),o.on("message",(s,i,c)=>{console.log("[mqtt] on message",s,i.toString(),c),s===n&&t(_a(JSON.parse(i.toString())))}),o.on("error",s=>console.log("[mqtt] err",s)),o.on("close",()=>console.log("[mqtt] close")),o.on("disconnect",()=>console.log("[mqtt] disconnect")),o}),_a=ir("mqtt/onMqttResponse",async(e,{getState:t})=>{const{taskCallback:r,listenerCallback:n}=t().mqtt;e.task_id in r&&r[e.task_id](e)&&(delete r[e.task_id],console.log("[mqtt] delete callback",e.task_id)),n.forEach(o=>o(e))}),Hn=Mn({name:"mqtt",initialState:Ea,reducers:{closeClient(e){var t;console.log("[mqtt] close client"),(t=e.client)==null||t.end()},addMqttCallback(e,t){e.taskCallback[t.payload.task_id]=t.payload.callback},addMqttEventCallback(e,t){const r=t.payload;e.taskCallback[r.task_id]=n=>{var o,s,i;return(o=r.on_detail)==null||o.call(r,n),n.event_type==je.Success?(s=r.on_finish)==null||s.call(r,n.data):n.event_type==je.Error&&((i=r.on_error)==null||i.call(r,n.data)),[je.Success,je.Error].includes(n.event_type)}},addMqttListener(e,t){e.listenerCallback.push(t.payload)}},extraReducers:e=>{e.addCase(Wn.fulfilled,(t,r)=>{t.client=r.payload})}}),va=Hn.actions,Oa=Hn.reducer;var yr;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload",e[e.OpenVideoEditor=10]="OpenVideoEditor",e[e.OpenHelp=12]="OpenHelp",e[e.GetFileData=13]="GetFileData",e[e.OpenTool=14]="OpenTool"})(yr||(yr={}));var gr;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(gr||(gr={}));var br;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(br||(br={}));const wt=60;function Gn(e){const[t,r]=ae.useState(wt),n=ae.useRef();ae.useEffect(()=>{t==0&&(clearInterval(n.current),r(wt))},[t]);const o=()=>{e.callback().then(()=>{_.Message.success("获取验证码成功,请注意查收邮箱"),r(s=>s-1),n.current=setInterval(()=>{r(s=>s-1)},1e3)})};return D.jsxs(_.Space,{children:[D.jsx(_.Input,{onChange:e.onChange,placeholder:"输入验证码"}),D.jsx(_.Button,{disabled:t!=wt,type:"primary",onClick:o,children:t!=wt?`剩余${t}秒`:"获取验证码"})]})}const Ca=e=>{const[t,r]=ae.useState(""),[n,o]=ae.useState(!0),s=c=>{n?Ns(c).then(u=>{_.Message.success("登录成功"),localStorage.setItem("token",u),e.loginSuccess(u)}):Is(c).then(()=>{_.Message.success("注册成功,请登录"),o(!0)})},i=()=>an(t);return D.jsxs(_.Form,{autoComplete:"off",onSubmit:s,children:[D.jsx(_.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:D.jsx(_.Input,{onChange:r,placeholder:"输入邮箱"})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:D.jsx(_.Input.Password,{placeholder:"输入密码"})}),n?null:D.jsx(_.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:D.jsx(Gn,{callback:i})}),D.jsx(_.Form.Item,{wrapperCol:{offset:5},children:D.jsxs(_.Space,{children:[D.jsx(_.Button,{type:"primary",htmlType:"submit",children:n?"立即登录":"注册账号"}),D.jsx(_.Button,{type:"text",onClick:()=>o(c=>!c),children:n?"新用户?":"已有账号?"}),n?D.jsx(_.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function Da(e){const[t,r]=ae.useState(""),n=s=>{if(s.password_repeat!=s.password){_.Message.error("新旧密码不一致");return}const{email:i,password:c,token:u}=s;As({email:i,password:c,token:u}).then(()=>{_.Message.success("密码重置成功,请登录"),e.onLogin()})},o=()=>an(t);return D.jsx("div",{children:D.jsxs(_.Form,{style:{width:370},autoComplete:"off",onSubmit:n,children:[D.jsx(_.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:D.jsx(_.Input,{onChange:r,placeholder:"输入邮箱"})}),D.jsx(_.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:D.jsx(Gn,{callback:o})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:D.jsx(_.Input,{type:"password",placeholder:"输入新密码"})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:D.jsx(_.Input,{type:"password",placeholder:"再输入一遍新密码"})}),D.jsx(_.Form.Item,{wrapperCol:{offset:5},children:D.jsxs(_.Space,{children:[D.jsx(_.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),D.jsx(_.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function Ra(e){const[t,r]=ae.useState(!1);return D.jsx(_.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:t?D.jsx(Da,{onLogin:()=>r(!1)}):D.jsx(Ca,{loginSuccess:e.loginSuccess,onForget:()=>r(!0)})})}function Pa(e){const[t,r]=ae.useState([]),[n,o]=ae.useState(!1),[s,i]=ae.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[c]=_.Form.useForm(),u=()=>{o(!0),e.data(s.current,s.pageSize,c.getFieldsValue()).then(d=>{r(d.list),i(l=>(l.total=d.total,l)),o(!1)})};return ae.useEffect(()=>{u()},[s.current,s.pageSize]),ae.useEffect(()=>{u(),e.refresh&&e.refresh(()=>u())},[]),D.jsxs(D.Fragment,{children:[e.search?D.jsxs(_.Form,{form:c,layout:"inline",onSubmit:u,children:[e.search.map(d=>{let l=D.jsx(D.Fragment,{});const f=d.data;return d.tp=="input"?l=D.jsx(_.Input,{allowClear:!0,placeholder:f.placeholder}):d.tp=="custom"&&(l=d.ele),D.jsx(_.Form.Item,{label:d.label,field:d.field,children:l},d.field)}),D.jsx(_.Form.Item,{children:D.jsx(_.Button,{htmlType:"submit",children:"搜索"})})]}):null,D.jsx(_.Table,{loading:n,pagination:s,onChange:d=>i({...s,current:(d==null?void 0:d.current)||s.current,pageSize:(d==null?void 0:d.pageSize)||s.pageSize}),rowKey:e.id||"id",columns:e.columns,data:t})]})}const xa={GetAllTool:Us,ToolInc:zs,UpdateUserInfo:Fs,GetAppInfo:ks,CostPoint:Ms,GetUserInfo:cn,UserDownloadMaterial:Hs,GetMqttTaskClientInfo:ln,AddTask:qs,GetTaskInfo:Ts,GetTencentCosInfo:un,GetMaterialUrl:Gs,GetMaterialTagList:Ws,GetToolList:$s,GetToolTagList:Ls,GetToolDetail:Bs},ja={ToolType:Lt,LocalActionReqType:Mt,LocalActionResType:$t,MQTTEventType:je,FileSource:Je,LocalTaskStatus:Ut,LocalTaskEventType:Bt,ToolTaskType:Tt,FfmpegActionType:Wt,CloudTaskStatus:Vt,TaskType:zt,LabElementType:Ht,ToolConfigType:qt,ToolEventType:yr,WorkActionType:br,TaskActionType:gr},Na={render:{renderTime:ri,renderEllipsis:oi,renderCopy:ni},utils:{file2ToolParamFile:_s,seconds2TimeStr:vs,object2query:on,paramReplace:Rs,object2urlParam:Ps,convertFileSize:Es,downloadFile:xs,downloadFileDirect:sn},cloud:{getTencentCosInfo:Os,getAliYunOssInfo:Cs},db:{addTask:ya,getAllData:ga,getData:ba,updateData:wa,deleteData:Sa}},ka={UserReducer:na,UserAction:ra,GetUserInfo:cr,MqttReducer:Oa,MqttAction:va,InitMqtt:Wn};W.Api=xa,W.Enum=ja,W.PageTable=Pa,W.SendCommonRequest=Ys,W.SendKnowledgeRequest=Js,W.Store=ka,W.Tool=Na,W.UserLoginModal=Ra,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
|
36
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:i,stack:d})}},wi={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Si(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ei(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _i(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Rn=e=>Array.isArray(e)?e:[e];function vi(e){const t=Array.isArray(e[0])?e[0]:e;return _i(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Pn(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Oi=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...wi,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:gi},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:bi}}},Ci=class{constructor(e){this.value=e}deref(){return this.value}},Di=typeof WeakRef<"u"?WeakRef:Ci,Ri=0,xn=1;function yt(){return{s:Ri,v:void 0,o:null,p:null}}function or(e,t={}){let r=yt();const{resultEqualityCheck:n}=t;let o,s=0;function i(){var f;let c=r;const{length:u}=arguments;for(let E=0,x=u;E<x;E++){const m=arguments[E];if(typeof m=="function"||typeof m=="object"&&m!==null){let b=c.o;b===null&&(c.o=b=new WeakMap);const k=b.get(m);k===void 0?(c=yt(),b.set(m,c)):c=k}else{let b=c.p;b===null&&(c.p=b=new Map);const k=b.get(m);k===void 0?(c=yt(),b.set(m,c)):c=k}}const d=c;let l;if(c.s===xn?l=c.v:(l=e.apply(null,arguments),s++),d.s=xn,n){const E=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;E!=null&&n(E,l)&&(l=E,s!==0&&s--),o=typeof l=="object"&&l!==null||typeof l=="function"?new Di(l):l}return d.v=l,l}return i.clearCache=()=>{r=yt(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function jn(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let s=0,i=0,c,u={},d=o.pop();typeof d=="object"&&(u=d,d=o.pop()),Si(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const l={...r,...u},{memoize:f,memoizeOptions:E=[],argsMemoize:x=or,argsMemoizeOptions:m=[],devModeChecks:b={}}=l,k=Rn(E),U=Rn(m),N=vi(o),j=f(function(){return s++,d.apply(null,arguments)},...k);let M=!0;const q=x(function(){i++;const ee=Pn(N,arguments);if(c=j.apply(null,ee),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:re}=Oi(M,b);if(A.shouldRun&&A.run(d,ee,c),re.shouldRun){const G=Pn(N,arguments);re.run({inputSelectorResults:ee,inputSelectorResultsCopy:G},{memoize:f,memoizeOptions:k},arguments)}M&&(M=!1)}return c},...U);return Object.assign(q,{resultFunc:d,memoizedResultFunc:j,dependencies:N,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:x})};return Object.assign(n,{withTypes:()=>n}),n}var Pi=jn(or),xi=Object.assign((e,t=Pi)=>{Ei(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((i,c,u)=>(i[r[u]]=c,i),{}))},{withTypes:()=>xi}),ji=(...e)=>{const t=jn(...e),r=Object.assign((...n)=>{const o=t(...n),s=(i,...c)=>o(Re(i)?On(i):i,...c);return Object.assign(s,o),s},{withTypes:()=>r});return r};ji(or);var Ni=e=>e&&typeof e.match=="function";function Oe(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?X(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ii(n)&&n.type===e,r}function Nn(e){return ve(e)?Dn(e,()=>{}):e}function kn(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(process.env.NODE_ENV==="production"?X(10):"No insert provided for key not already in map");const n=r.insert(t,e);return e.set(t,n),n}process.env.NODE_ENV;function In(e){const t={},r=[];let n;const o={addCase(s,i){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?X(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?X(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?X(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?X(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=i,o},addMatcher(s,i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?X(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:s,reducer:i}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?X(31):"`builder.addDefaultCase` can only be called once");return n=s,o}};return e(o),[t,r,n]}function ki(e){return typeof e=="function"}function Ii(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?X(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=In(t),s;if(ki(e))s=()=>Nn(e());else{const c=Nn(e);s=()=>c}function i(c=s(),u){let d=[r[u.type],...n.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return d.filter(l=>!!l).length===0&&(d=[o]),d.reduce((l,f)=>{if(f)if(Re(l)){const x=f(l,u);return x===void 0?l:x}else{if(ve(l))return Dn(l,E=>f(E,u));{const E=f(l,u);if(E===void 0){if(l===null)return l;throw new Error(process.env.NODE_ENV==="production"?X(9):"A case reducer on a non-draftable value must not return undefined")}return E}}return l},c)}return i.getInitialState=s,i}var Ai="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",An=(e=21)=>{let t="",r=e;for(;r--;)t+=Ai[Math.random()*64|0];return t},Fi=(e,t)=>Ni(e)?e.match(t):e(t);function Mi(...e){return t=>e.some(r=>Fi(r,t))}var $i=["name","message","stack","code"],sr=class{constructor(e,t){Or(this,"_type");this.payload=e,this.meta=t}},Fn=class{constructor(e,t){Or(this,"_type");this.payload=e,this.meta=t}},Ui=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of $i)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ir=(()=>{function e(t,r,n){const o=Oe(t+"/fulfilled",(u,d,l,f)=>({payload:u,meta:{...f||{},arg:l,requestId:d,requestStatus:"fulfilled"}})),s=Oe(t+"/pending",(u,d,l)=>({payload:void 0,meta:{...l||{},arg:d,requestId:u,requestStatus:"pending"}})),i=Oe(t+"/rejected",(u,d,l,f,E)=>({payload:f,error:(n&&n.serializeError||Ui)(u||"Rejected"),meta:{...E||{},arg:l,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function c(u){return(d,l,f)=>{const E=n!=null&&n.idGenerator?n.idGenerator(u):An(),x=new AbortController;let m,b;function k(N){b=N,x.abort()}const U=async function(){var M,q;let N;try{let z=(M=n==null?void 0:n.condition)==null?void 0:M.call(n,u,{getState:l,extra:f});if(zi(z)&&(z=await z),z===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const ee=new Promise((A,re)=>{m=()=>{re({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",m)});d(s(E,u,(q=n==null?void 0:n.getPendingMeta)==null?void 0:q.call(n,{requestId:E,arg:u},{getState:l,extra:f}))),N=await Promise.race([ee,Promise.resolve(r(u,{dispatch:d,getState:l,extra:f,requestId:E,signal:x.signal,abort:k,rejectWithValue:(A,re)=>new sr(A,re),fulfillWithValue:(A,re)=>new Fn(A,re)})).then(A=>{if(A instanceof sr)throw A;return A instanceof Fn?o(A.payload,E,u,A.meta):o(A,E,u)})])}catch(z){N=z instanceof sr?i(null,E,u,z.payload,z.meta):i(z,E,u)}finally{m&&x.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&i.match(N)&&N.meta.condition||d(N),N}();return Object.assign(U,{abort:k,requestId:E,arg:u,unwrap(){return U.then(Bi)}})}}return Object.assign(c,{pending:s,rejected:i,fulfilled:o,settled:Mi(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Bi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zi(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vi=Symbol.for("rtk-slice-createasyncthunk");function Li(e,t){return`${e}/${t}`}function qi({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Vi];return function(o){const{name:s,reducerPath:i=s}=o;if(!s)throw new Error(process.env.NODE_ENV==="production"?X(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const c=(typeof o.reducers=="function"?o.reducers(Wi()):o.reducers)||{},u=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(j,M){const q=typeof j=="string"?j:j.type;if(!q)throw new Error(process.env.NODE_ENV==="production"?X(12):"`context.addCase` cannot be called with an empty action type");if(q in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?X(13):"`context.addCase` cannot be called with two reducers for the same action type: "+q);return d.sliceCaseReducersByType[q]=M,l},addMatcher(j,M){return d.sliceMatchers.push({matcher:j,reducer:M}),l},exposeAction(j,M){return d.actionCreators[j]=M,l},exposeCaseReducer(j,M){return d.sliceCaseReducersByName[j]=M,l}};u.forEach(j=>{const M=c[j],q={reducerName:j,type:Li(s,j),createNotation:typeof o.reducers=="function"};Gi(M)?Ji(q,M,l,t):Hi(q,M,l)});function f(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?X(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[j={},M=[],q=void 0]=typeof o.extraReducers=="function"?In(o.extraReducers):[o.extraReducers],z={...j,...d.sliceCaseReducersByType};return Ii(o.initialState,ee=>{for(let A in z)ee.addCase(A,z[A]);for(let A of d.sliceMatchers)ee.addMatcher(A.matcher,A.reducer);for(let A of M)ee.addMatcher(A.matcher,A.reducer);q&&ee.addDefaultCase(q)})}const E=j=>j,x=new Map;let m;function b(j,M){return m||(m=f()),m(j,M)}function k(){return m||(m=f()),m.getInitialState()}function U(j,M=!1){function q(ee){let A=ee[j];if(typeof A>"u"){if(M)A=k();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?X(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function z(ee=E){const A=kn(x,M,{insert:()=>new WeakMap});return kn(A,ee,{insert:()=>{const re={};for(const[G,B]of Object.entries(o.selectors??{}))re[G]=Ti(B,ee,k,M);return re}})}return{reducerPath:j,getSelectors:z,get selectors(){return z(q)},selectSlice:q}}const N={name:s,reducer:b,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:k,...U(i),injectInto(j,{reducerPath:M,...q}={}){const z=M??i;return j.inject({reducerPath:z,reducer:b},q),{...N,...U(z,!0)}}};return N}}function Ti(e,t,r,n){function o(s,...i){let c=t(s);if(typeof c>"u"){if(n)c=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?X(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...i)}return o.unwrapped=e,o}var Mn=qi();function Wi(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Hi({type:e,reducerName:t,createNotation:r},n,o){let s,i;if("reducer"in n){if(r&&!Yi(n))throw new Error(process.env.NODE_ENV==="production"?X(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=n.reducer,i=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?Oe(e,i):Oe(e))}function Gi(e){return e._reducerDefinitionType==="asyncThunk"}function Yi(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ji({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?X(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:i,pending:c,rejected:u,settled:d,options:l}=r,f=o(e,s,l);n.exposeAction(t,f),i&&n.addCase(f.fulfilled,i),c&&n.addCase(f.pending,c),u&&n.addCase(f.rejected,u),d&&n.addMatcher(f.settled,d),n.exposeCaseReducer(t,{fulfilled:i||gt,pending:c||gt,rejected:u||gt,settled:d||gt})}function gt(){}var Ki=(e,t)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?X(32):`${t} is not a function`)},ar="listenerMiddleware",Xi=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:s}=e;if(t)o=Oe(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?X(21):"Creating or removing a listener requires one of the known fields for matching an action");return Ki(s,"options.listener"),{predicate:o,type:t,effect:s}},Zi=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Xi(e);return{id:An(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?X(22):"Unsubscribe not initialized")}}},{withTypes:()=>Zi}),Qi=Object.assign(Oe(`${ar}/add`),{withTypes:()=>Qi});Oe(`${ar}/removeAll`);var ea=Object.assign(Oe(`${ar}/remove`),{withTypes:()=>ea});function X(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ta={showLogin:!1},cr=ir("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cn()}),$n=Mn({name:"user",initialState:ta,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(cr.fulfilled,(t,r)=>{r.payload!=null?(t.isLogin=!0,t.userInfo=r.payload):t.isLogin=!1}),e.addCase(cr.rejected,t=>{t.isLogin=!1,t.userInfo=void 0})}}),ra=$n.actions,na=$n.reducer,ur=(e,t)=>t.some(r=>e instanceof r);let Un,Bn;function oa(){return Un||(Un=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function sa(){return Bn||(Bn=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const lr=new WeakMap,fr=new WeakMap,bt=new WeakMap;function ia(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",s),e.removeEventListener("error",i)},s=()=>{r(Ie(e.result)),o()},i=()=>{n(e.error),o()};e.addEventListener("success",s),e.addEventListener("error",i)});return bt.set(t,e),t}function aa(e){if(lr.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",i),e.removeEventListener("abort",i)},s=()=>{r(),o()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",s),e.addEventListener("error",i),e.addEventListener("abort",i)});lr.set(e,t)}let dr={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return lr.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ie(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function zn(e){dr=e(dr)}function ca(e){return sa().includes(e)?function(...t){return e.apply(hr(this),t),Ie(this.request)}:function(...t){return Ie(e.apply(hr(this),t))}}function ua(e){return typeof e=="function"?ca(e):(e instanceof IDBTransaction&&aa(e),ur(e,oa())?new Proxy(e,dr):e)}function Ie(e){if(e instanceof IDBRequest)return ia(e);if(fr.has(e))return fr.get(e);const t=ua(e);return t!==e&&(fr.set(e,t),bt.set(t,e)),t}const hr=e=>bt.get(e);function la(e,t,{blocked:r,upgrade:n,blocking:o,terminated:s}={}){const i=indexedDB.open(e,t),c=Ie(i);return n&&i.addEventListener("upgradeneeded",u=>{n(Ie(i.result),u.oldVersion,u.newVersion,Ie(i.transaction),u)}),r&&i.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),c.then(u=>{s&&u.addEventListener("close",()=>s()),o&&u.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),c}const fa=["get","getKey","getAll","getAllKeys","count"],da=["put","add","delete","clear"],pr=new Map;function Vn(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(pr.get(t))return pr.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=da.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||fa.includes(r)))return;const s=async function(i,...c){const u=this.transaction(i,o?"readwrite":"readonly");let d=u.store;return n&&(d=d.index(c.shift())),(await Promise.all([d[r](...c),o&&u.done]))[0]};return pr.set(t,s),s}zn(e=>({...e,get:(t,r,n)=>Vn(t,r)||e.get(t,r,n),has:(t,r)=>!!Vn(t,r)||e.has(t,r)}));const ha=["continue","continuePrimaryKey","advance"],Ln={},mr=new WeakMap,qn=new WeakMap,pa={get(e,t){if(!ha.includes(t))return e[t];let r=Ln[t];return r||(r=Ln[t]=function(...n){mr.set(this,qn.get(this)[t](...n))}),r}};async function*ma(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,pa);for(qn.set(r,t),bt.set(r,hr(t));t;)yield r,t=await(mr.get(r)||t.continue()),mr.delete(r)}function Tn(e,t){return t===Symbol.asyncIterator&&ur(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&ur(e,[IDBIndex,IDBObjectStore])}zn(e=>({...e,get(t,r,n){return Tn(t,r)?ma:e.get(t,r,n)},has(t,r){return Tn(t,r)||e.has(t,r)}}));const Be="task",et=()=>la("zyjj",2,{upgrade(e){e.createObjectStore(Be)}}),ya=async(e,t=Be)=>(await et()).put(t,e,e.id),ga=async(e=Be)=>(await et()).getAll(e),ba=async(e,t=Be)=>(await et()).get(t,e),wa=async(e,t,r=Be)=>(await et()).put(r,t,e),Sa=async(e,t=Be)=>(await et()).delete(t,e),Ea={taskCallback:{},listenerCallback:[]},Wn=ir("mqtt/initMqtt",async(e,{dispatch:t})=>{const r=await ln();console.log("[mqtt] mqtt info",r);const n=r.topic,o=co.connect(`mqtt://${r.host}`,{keepalive:60,clientId:r.client_id,username:r.username,password:r.password,protocol:"wss",reconnectPeriod:3e3});return o.on("connect",s=>{console.log("[mqtt] connect success",s),o.subscribe(n,{qos:1})}),o.on("message",(s,i,c)=>{console.log("[mqtt] on message",s,i.toString(),c),s===n&&t(_a(JSON.parse(i.toString())))}),o.on("error",s=>console.log("[mqtt] err",s)),o.on("close",()=>console.log("[mqtt] close")),o.on("disconnect",()=>console.log("[mqtt] disconnect")),o}),_a=ir("mqtt/onMqttResponse",async(e,{getState:t})=>{const{taskCallback:r,listenerCallback:n}=t().mqtt;e.task_id in r&&r[e.task_id](e)&&(delete r[e.task_id],console.log("[mqtt] delete callback",e.task_id)),n.forEach(o=>o(e))}),Hn=Mn({name:"mqtt",initialState:Ea,reducers:{closeClient(e){var t;console.log("[mqtt] close client"),(t=e.client)==null||t.end()},addMqttCallback(e,t){e.taskCallback[t.payload.task_id]=t.payload.callback},addMqttEventCallback(e,t){const r=t.payload;e.taskCallback[r.task_id]=n=>{var o,s,i;return(o=r.on_detail)==null||o.call(r,n),n.event_type==je.Success?(s=r.on_finish)==null||s.call(r,n.data):n.event_type==je.Error&&((i=r.on_error)==null||i.call(r,n.data)),[je.Success,je.Error].includes(n.event_type)}},addMqttListener(e,t){e.listenerCallback.push(t.payload)}},extraReducers:e=>{e.addCase(Wn.fulfilled,(t,r)=>{t.client=r.payload})}}),va=Hn.actions,Oa=Hn.reducer;var yr;(function(e){e[e.MqttListener=0]="MqttListener",e[e.CloudFileUpload=1]="CloudFileUpload",e[e.CloudFileDownload=2]="CloudFileDownload",e[e.GetInitData=3]="GetInitData",e[e.NavigateTo=4]="NavigateTo",e[e.CloseWindow=5]="CloseWindow",e[e.TaskAction=6]="TaskAction",e[e.SendRequest=7]="SendRequest",e[e.FFMPEG=8]="FFMPEG",e[e.FileDownload=9]="FileDownload",e[e.OpenVideoEditor=10]="OpenVideoEditor",e[e.OpenHelp=12]="OpenHelp",e[e.GetFileData=13]="GetFileData",e[e.OpenTool=14]="OpenTool"})(yr||(yr={}));var gr;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(gr||(gr={}));var br;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(br||(br={}));const wt=60;function Gn(e){const[t,r]=ae.useState(wt),n=ae.useRef();ae.useEffect(()=>{t==0&&(clearInterval(n.current),r(wt))},[t]);const o=()=>{e.callback().then(()=>{_.Message.success("获取验证码成功,请注意查收邮箱"),r(s=>s-1),n.current=setInterval(()=>{r(s=>s-1)},1e3)})};return D.jsxs(_.Space,{children:[D.jsx(_.Input,{onChange:e.onChange,placeholder:"输入验证码"}),D.jsx(_.Button,{disabled:t!=wt,type:"primary",onClick:o,children:t!=wt?`剩余${t}秒`:"获取验证码"})]})}const Ca=e=>{const[t,r]=ae.useState(""),[n,o]=ae.useState(!0),s=c=>{n?Ns(c).then(u=>{_.Message.success("登录成功"),localStorage.setItem("token",u),e.loginSuccess(u)}):Is(c).then(()=>{_.Message.success("注册成功,请登录"),o(!0)})},i=()=>an(t);return D.jsxs(_.Form,{autoComplete:"off",onSubmit:s,children:[D.jsx(_.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:D.jsx(_.Input,{onChange:r,placeholder:"输入邮箱"})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:D.jsx(_.Input.Password,{placeholder:"输入密码"})}),n?null:D.jsx(_.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:D.jsx(Gn,{callback:i})}),D.jsx(_.Form.Item,{wrapperCol:{offset:5},children:D.jsxs(_.Space,{children:[D.jsx(_.Button,{type:"primary",htmlType:"submit",children:n?"立即登录":"注册账号"}),D.jsx(_.Button,{type:"text",onClick:()=>o(c=>!c),children:n?"新用户?":"已有账号?"}),n?D.jsx(_.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function Da(e){const[t,r]=ae.useState(""),n=s=>{if(s.password_repeat!=s.password){_.Message.error("新旧密码不一致");return}const{email:i,password:c,token:u}=s;As({email:i,password:c,token:u}).then(()=>{_.Message.success("密码重置成功,请登录"),e.onLogin()})},o=()=>an(t);return D.jsx("div",{children:D.jsxs(_.Form,{style:{width:370},autoComplete:"off",onSubmit:n,children:[D.jsx(_.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:D.jsx(_.Input,{onChange:r,placeholder:"输入邮箱"})}),D.jsx(_.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:D.jsx(Gn,{callback:o})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:D.jsx(_.Input,{type:"password",placeholder:"输入新密码"})}),D.jsx(_.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:D.jsx(_.Input,{type:"password",placeholder:"再输入一遍新密码"})}),D.jsx(_.Form.Item,{wrapperCol:{offset:5},children:D.jsxs(_.Space,{children:[D.jsx(_.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),D.jsx(_.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function Ra(e){const[t,r]=ae.useState(!1);return D.jsx(_.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:t?D.jsx(Da,{onLogin:()=>r(!1)}):D.jsx(Ca,{loginSuccess:e.loginSuccess,onForget:()=>r(!0)})})}function Pa(e){const[t,r]=ae.useState([]),[n,o]=ae.useState(!1),[s,i]=ae.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[c]=_.Form.useForm(),u=()=>{o(!0),e.data(s.current,s.pageSize,c.getFieldsValue()).then(d=>{r(d.list),i(l=>(l.total=d.total,l)),o(!1)})};return ae.useEffect(()=>{u()},[s.current,s.pageSize]),ae.useEffect(()=>{u(),e.refresh&&e.refresh(()=>u())},[]),D.jsxs(D.Fragment,{children:[e.search?D.jsxs(_.Form,{form:c,layout:"inline",onSubmit:u,children:[e.search.map(d=>{let l=D.jsx(D.Fragment,{});const f=d.data;return d.tp=="input"?l=D.jsx(_.Input,{allowClear:!0,placeholder:f.placeholder}):d.tp=="custom"&&(l=d.ele),D.jsx(_.Form.Item,{label:d.label,field:d.field,children:l},d.field)}),D.jsx(_.Form.Item,{children:D.jsx(_.Button,{htmlType:"submit",children:"搜索"})})]}):null,D.jsx(_.Table,{loading:n,pagination:s,onChange:d=>i({...s,current:(d==null?void 0:d.current)||s.current,pageSize:(d==null?void 0:d.pageSize)||s.pageSize}),rowKey:e.id||"id",columns:e.columns,data:t})]})}const xa={GetAllTool:Us,ToolInc:zs,UpdateUserInfo:Fs,GetAppInfo:ks,CostPoint:Ms,GetUserInfo:cn,UserDownloadMaterial:Hs,GetMqttTaskClientInfo:ln,AddTask:qs,GetTaskInfo:Ts,GetTencentCosInfo:un,GetMaterialUrl:Gs,GetMaterialTagList:Ws,GetToolList:$s,GetToolTagList:Vs,GetToolDetail:Bs},ja={ToolType:Vt,LocalActionReqType:Mt,LocalActionResType:$t,MQTTEventType:je,FileSource:Je,LocalTaskStatus:Ut,LocalTaskEventType:Bt,ToolTaskType:Tt,FfmpegActionType:Wt,CloudTaskStatus:Lt,TaskType:zt,LabElementType:Ht,ToolConfigType:qt,ToolEventType:yr,WorkActionType:br,TaskActionType:gr},Na={render:{renderTime:ri,renderEllipsis:oi,renderCopy:ni},utils:{file2ToolParamFile:_s,seconds2TimeStr:vs,object2query:on,paramReplace:Rs,object2urlParam:Ps,convertFileSize:Es,downloadFile:xs,downloadFileDirect:sn},cloud:{getTencentCosInfo:Os,getAliYunOssInfo:Cs},db:{addTask:ya,getAllData:ga,getData:ba,updateData:wa,deleteData:Sa}},ka={UserReducer:na,UserAction:ra,GetUserInfo:cr,MqttReducer:Oa,MqttAction:va,InitMqtt:Wn};W.Api=xa,W.Enum=ja,W.PageTable=Pa,W.SendCommonRequest=Ys,W.SendKnowledgeRequest=Js,W.Store=ka,W.Tool=Na,W.UserLoginModal=Ra,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MqttRequest, MqttResponse } from "./mqtt.ts";
|
|
2
2
|
import { ToolTaskInfo } from "./tool-task.ts";
|
|
3
|
-
import { ToolInfo } from "./cloud.ts";
|
|
4
3
|
import { TaskActionInfo, WorkActionInfo } from "./new-local-task";
|
|
5
4
|
export type SendTaskActionRequest = (info: LocalActionRequest) => void;
|
|
6
5
|
export type TaskActionClose = () => void;
|
|
@@ -47,6 +46,7 @@ export declare enum LocalActionReqType {
|
|
|
47
46
|
ActionClose = 4,// 关闭action链接
|
|
48
47
|
MqttReconnect = 5,// MQTT重连
|
|
49
48
|
NavigateTo = 7,// 跳转到指定页面
|
|
49
|
+
OpenTool = 10,// 打开某个工具
|
|
50
50
|
DownloadFile = 11
|
|
51
51
|
}
|
|
52
52
|
export interface LocalActionReqDataCreatTask {
|
|
@@ -62,10 +62,7 @@ export interface LocalActionReqDataRestoreTask {
|
|
|
62
62
|
}
|
|
63
63
|
export interface LocalActionReqDataOpenTool {
|
|
64
64
|
id: string;
|
|
65
|
-
|
|
66
|
-
data?: {
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
};
|
|
65
|
+
init?: any;
|
|
69
66
|
}
|
|
70
67
|
export interface TaskRestoreInfo {
|
|
71
68
|
idx: number;
|