yxuse 1.0.38 → 1.0.40
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/README.md +314 -7
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs4.js.map +1 -1
- package/lib/index.cjs5.js +9 -9
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.es4.js +67 -36
- package/lib/index.es4.js.map +1 -1
- package/lib/index.es5.js +166 -166
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/package.json +1 -1
package/lib/index.es5.js
CHANGED
|
@@ -3169,7 +3169,7 @@ function zt(e, t, n, o) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
3171
|
const or = "components";
|
|
3172
|
-
function
|
|
3172
|
+
function fE(e, t) {
|
|
3173
3173
|
return cl(or, e, !0, t) || e;
|
|
3174
3174
|
}
|
|
3175
3175
|
const il = Symbol();
|
|
@@ -3209,7 +3209,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3209
3209
|
function Fi(e, t) {
|
|
3210
3210
|
return e && (e[t] || e[nt(t)] || e[ln(nt(t))]);
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function dE(e, t, n, o) {
|
|
3213
3213
|
let r;
|
|
3214
3214
|
const s = n && n[o];
|
|
3215
3215
|
if (U(e) || ae(e)) {
|
|
@@ -7298,15 +7298,15 @@ const Oy = "/login", Cy = (e, t) => {
|
|
|
7298
7298
|
}
|
|
7299
7299
|
};
|
|
7300
7300
|
var iu = /* @__PURE__ */ ((e) => (e[e.SUCCESS = 200] = "SUCCESS", e[e.ERROR = 500] = "ERROR", e[e.OVERDUE = 401] = "OVERDUE", e[e.TIMEOUT = 3e4] = "TIMEOUT", e.TYPE = "success", e))(iu || {});
|
|
7301
|
-
const Ir = () => {
|
|
7301
|
+
const xy = () => sessionStorage.removeItem("GlobalState"), Ir = () => {
|
|
7302
7302
|
var n;
|
|
7303
7303
|
const e = sessionStorage.getItem("GlobalState");
|
|
7304
7304
|
return ((n = JSON.parse(e)) == null ? void 0 : n.token) || null;
|
|
7305
|
-
},
|
|
7305
|
+
}, Sy = () => {
|
|
7306
7306
|
var n;
|
|
7307
7307
|
const e = sessionStorage.getItem("GlobalState");
|
|
7308
7308
|
return ((n = JSON.parse(e)) == null ? void 0 : n.userInfo) || null;
|
|
7309
|
-
},
|
|
7309
|
+
}, Ty = async () => Ir() ? await Cu.request("/account/home/menu", "GET", "", !1, !0) : [], Dy = async (e) => {
|
|
7310
7310
|
if (!Ir())
|
|
7311
7311
|
return null;
|
|
7312
7312
|
try {
|
|
@@ -7318,48 +7318,48 @@ const Ir = () => {
|
|
|
7318
7318
|
} catch (t) {
|
|
7319
7319
|
return console.log("===", t), null;
|
|
7320
7320
|
}
|
|
7321
|
-
},
|
|
7322
|
-
let
|
|
7323
|
-
|
|
7324
|
-
return console.log(n, o), e.forEach((r) => {
|
|
7321
|
+
}, Py = (e, t, n) => {
|
|
7322
|
+
let o = [];
|
|
7323
|
+
return e.forEach((r) => {
|
|
7325
7324
|
const s = `/src/views${r.routeView}/config.ts`, i = `/src/views${r.routeView}/index.vue`;
|
|
7326
|
-
if (
|
|
7327
|
-
const a =
|
|
7325
|
+
if (t[i] && n[s]) {
|
|
7326
|
+
const a = n[s], c = {
|
|
7328
7327
|
path: r.routeView,
|
|
7329
7328
|
name: r.routeView.split("/")[1],
|
|
7330
7329
|
meta: {
|
|
7331
7330
|
title: a.title,
|
|
7332
7331
|
icon: a.icon
|
|
7333
7332
|
},
|
|
7334
|
-
component:
|
|
7333
|
+
component: t[i]
|
|
7335
7334
|
};
|
|
7336
|
-
|
|
7335
|
+
o.push(c);
|
|
7337
7336
|
}
|
|
7338
|
-
}),
|
|
7339
|
-
},
|
|
7337
|
+
}), o;
|
|
7338
|
+
}, pE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7340
7339
|
__proto__: null,
|
|
7341
7340
|
getToken: Ir,
|
|
7342
|
-
getUserInfo:
|
|
7343
|
-
getUserPermissions:
|
|
7344
|
-
getUserRouteList:
|
|
7345
|
-
getUserRouter:
|
|
7341
|
+
getUserInfo: Sy,
|
|
7342
|
+
getUserPermissions: Dy,
|
|
7343
|
+
getUserRouteList: Ty,
|
|
7344
|
+
getUserRouter: Py,
|
|
7345
|
+
removeToken: xy
|
|
7346
7346
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7347
|
-
function
|
|
7347
|
+
function $y() {
|
|
7348
7348
|
return au().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
7349
7349
|
}
|
|
7350
7350
|
function au() {
|
|
7351
7351
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
7352
7352
|
}
|
|
7353
|
-
const
|
|
7353
|
+
const Ry = typeof Proxy == "function", Ay = "devtools-plugin:setup", Iy = "plugin:settings:set";
|
|
7354
7354
|
let vn, Os;
|
|
7355
|
-
function
|
|
7355
|
+
function Vy() {
|
|
7356
7356
|
var e;
|
|
7357
7357
|
return vn !== void 0 || (typeof window < "u" && window.performance ? (vn = !0, Os = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (vn = !0, Os = global.perf_hooks.performance) : vn = !1), vn;
|
|
7358
7358
|
}
|
|
7359
|
-
function
|
|
7360
|
-
return
|
|
7359
|
+
function ky() {
|
|
7360
|
+
return Vy() ? Os.now() : Date.now();
|
|
7361
7361
|
}
|
|
7362
|
-
class
|
|
7362
|
+
class My {
|
|
7363
7363
|
constructor(t, n) {
|
|
7364
7364
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
7365
7365
|
const o = {};
|
|
@@ -7387,9 +7387,9 @@ class ky {
|
|
|
7387
7387
|
s = i;
|
|
7388
7388
|
},
|
|
7389
7389
|
now() {
|
|
7390
|
-
return
|
|
7390
|
+
return ky();
|
|
7391
7391
|
}
|
|
7392
|
-
}, n && n.on(
|
|
7392
|
+
}, n && n.on(Iy, (i, a) => {
|
|
7393
7393
|
i === this.plugin.id && this.fallbacks.setSettings(a);
|
|
7394
7394
|
}), this.proxiedOn = new Proxy({}, {
|
|
7395
7395
|
get: (i, a) => this.target ? this.target.on[a] : (...c) => {
|
|
@@ -7421,12 +7421,12 @@ class ky {
|
|
|
7421
7421
|
n.resolve(await this.target[n.method](...n.args));
|
|
7422
7422
|
}
|
|
7423
7423
|
}
|
|
7424
|
-
function
|
|
7425
|
-
const n = e, o = au(), r =
|
|
7424
|
+
function Ly(e, t) {
|
|
7425
|
+
const n = e, o = au(), r = $y(), s = Ry && n.enableEarlyProxy;
|
|
7426
7426
|
if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
7427
|
-
r.emit(
|
|
7427
|
+
r.emit(Ay, e, t);
|
|
7428
7428
|
else {
|
|
7429
|
-
const i = s ? new
|
|
7429
|
+
const i = s ? new My(n, r) : null;
|
|
7430
7430
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
7431
7431
|
pluginDescriptor: n,
|
|
7432
7432
|
setupFn: t,
|
|
@@ -7440,7 +7440,7 @@ function My(e, t) {
|
|
|
7440
7440
|
* @license MIT
|
|
7441
7441
|
*/
|
|
7442
7442
|
const vt = typeof window < "u";
|
|
7443
|
-
function
|
|
7443
|
+
function jy(e) {
|
|
7444
7444
|
return e.__esModule || e[Symbol.toStringTag] === "Module";
|
|
7445
7445
|
}
|
|
7446
7446
|
const ce = Object.assign;
|
|
@@ -7458,19 +7458,19 @@ function ne(e) {
|
|
|
7458
7458
|
const t = Array.from(arguments).slice(1);
|
|
7459
7459
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
7460
7460
|
}
|
|
7461
|
-
const
|
|
7461
|
+
const Fy = /\/$/, By = (e) => e.replace(Fy, "");
|
|
7462
7462
|
function Yr(e, t, n = "/") {
|
|
7463
7463
|
let o, r = {}, s = "", i = "";
|
|
7464
7464
|
const a = t.indexOf("#");
|
|
7465
7465
|
let c = t.indexOf("?");
|
|
7466
|
-
return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o =
|
|
7466
|
+
return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = zy(o ?? t, n), {
|
|
7467
7467
|
fullPath: o + (s && "?") + s + i,
|
|
7468
7468
|
path: o,
|
|
7469
7469
|
query: r,
|
|
7470
7470
|
hash: i
|
|
7471
7471
|
};
|
|
7472
7472
|
}
|
|
7473
|
-
function
|
|
7473
|
+
function Uy(e, t) {
|
|
7474
7474
|
const n = t.query ? e(t.query) : "";
|
|
7475
7475
|
return t.path + (n && "?") + n + (t.hash || "");
|
|
7476
7476
|
}
|
|
@@ -7488,17 +7488,17 @@ function cu(e, t) {
|
|
|
7488
7488
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
7489
7489
|
return !1;
|
|
7490
7490
|
for (const n in e)
|
|
7491
|
-
if (!
|
|
7491
|
+
if (!Hy(e[n], t[n]))
|
|
7492
7492
|
return !1;
|
|
7493
7493
|
return !0;
|
|
7494
7494
|
}
|
|
7495
|
-
function
|
|
7495
|
+
function Hy(e, t) {
|
|
7496
7496
|
return Ke(e) ? Da(e, t) : Ke(t) ? Da(t, e) : e === t;
|
|
7497
7497
|
}
|
|
7498
7498
|
function Da(e, t) {
|
|
7499
7499
|
return Ke(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
|
|
7500
7500
|
}
|
|
7501
|
-
function
|
|
7501
|
+
function zy(e, t) {
|
|
7502
7502
|
if (e.startsWith("/"))
|
|
7503
7503
|
return e;
|
|
7504
7504
|
if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
|
|
@@ -7523,20 +7523,20 @@ var Zn;
|
|
|
7523
7523
|
(function(e) {
|
|
7524
7524
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
7525
7525
|
})(Zn || (Zn = {}));
|
|
7526
|
-
function
|
|
7526
|
+
function Ky(e) {
|
|
7527
7527
|
if (!e)
|
|
7528
7528
|
if (vt) {
|
|
7529
7529
|
const t = document.querySelector("base");
|
|
7530
7530
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
|
7531
7531
|
} else
|
|
7532
7532
|
e = "/";
|
|
7533
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e),
|
|
7534
|
-
}
|
|
7535
|
-
const Ky = /^[^#]+#/;
|
|
7536
|
-
function qy(e, t) {
|
|
7537
|
-
return e.replace(Ky, "#") + t;
|
|
7533
|
+
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), By(e);
|
|
7538
7534
|
}
|
|
7535
|
+
const qy = /^[^#]+#/;
|
|
7539
7536
|
function Wy(e, t) {
|
|
7537
|
+
return e.replace(qy, "#") + t;
|
|
7538
|
+
}
|
|
7539
|
+
function Jy(e, t) {
|
|
7540
7540
|
const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
|
|
7541
7541
|
return {
|
|
7542
7542
|
behavior: t.behavior,
|
|
@@ -7548,7 +7548,7 @@ const Vr = () => ({
|
|
|
7548
7548
|
left: window.pageXOffset,
|
|
7549
7549
|
top: window.pageYOffset
|
|
7550
7550
|
});
|
|
7551
|
-
function
|
|
7551
|
+
function Gy(e) {
|
|
7552
7552
|
let t;
|
|
7553
7553
|
if ("el" in e) {
|
|
7554
7554
|
const n = e.el, o = typeof n == "string" && n.startsWith("#");
|
|
@@ -7568,7 +7568,7 @@ function Jy(e) {
|
|
|
7568
7568
|
process.env.NODE_ENV !== "production" && ne(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
|
7569
7569
|
return;
|
|
7570
7570
|
}
|
|
7571
|
-
t =
|
|
7571
|
+
t = Jy(r, e);
|
|
7572
7572
|
} else
|
|
7573
7573
|
t = e;
|
|
7574
7574
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.pageXOffset, t.top != null ? t.top : window.pageYOffset);
|
|
@@ -7577,14 +7577,14 @@ function Pa(e, t) {
|
|
|
7577
7577
|
return (history.state ? history.state.position - t : -1) + e;
|
|
7578
7578
|
}
|
|
7579
7579
|
const Cs = /* @__PURE__ */ new Map();
|
|
7580
|
-
function
|
|
7580
|
+
function Yy(e, t) {
|
|
7581
7581
|
Cs.set(e, t);
|
|
7582
7582
|
}
|
|
7583
|
-
function
|
|
7583
|
+
function Qy(e) {
|
|
7584
7584
|
const t = Cs.get(e);
|
|
7585
7585
|
return Cs.delete(e), t;
|
|
7586
7586
|
}
|
|
7587
|
-
let
|
|
7587
|
+
let Zy = () => location.protocol + "//" + location.host;
|
|
7588
7588
|
function lu(e, t) {
|
|
7589
7589
|
const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
|
|
7590
7590
|
if (s > -1) {
|
|
@@ -7593,7 +7593,7 @@ function lu(e, t) {
|
|
|
7593
7593
|
}
|
|
7594
7594
|
return Sa(n, e) + o + r;
|
|
7595
7595
|
}
|
|
7596
|
-
function
|
|
7596
|
+
function Xy(e, t, n, o) {
|
|
7597
7597
|
let r = [], s = [], i = null;
|
|
7598
7598
|
const a = ({ state: d }) => {
|
|
7599
7599
|
const m = lu(e, location), g = n.value, v = t.value;
|
|
@@ -7650,7 +7650,7 @@ function $a(e, t, n, o = !1, r = !1) {
|
|
|
7650
7650
|
scroll: r ? Vr() : null
|
|
7651
7651
|
};
|
|
7652
7652
|
}
|
|
7653
|
-
function
|
|
7653
|
+
function e_(e) {
|
|
7654
7654
|
const { history: t, location: n } = window, o = {
|
|
7655
7655
|
value: lu(e, n)
|
|
7656
7656
|
}, r = { value: t.state };
|
|
@@ -7666,7 +7666,7 @@ function Xy(e) {
|
|
|
7666
7666
|
scroll: null
|
|
7667
7667
|
}, !0);
|
|
7668
7668
|
function s(c, l, u) {
|
|
7669
|
-
const f = e.indexOf("#"), d = f > -1 ? (n.host && document.querySelector("base") ? e : e.slice(f)) + c :
|
|
7669
|
+
const f = e.indexOf("#"), d = f > -1 ? (n.host && document.querySelector("base") ? e : e.slice(f)) + c : Zy() + e + c;
|
|
7670
7670
|
try {
|
|
7671
7671
|
t[u ? "replaceState" : "pushState"](l, "", d), r.value = l;
|
|
7672
7672
|
} catch (m) {
|
|
@@ -7711,9 +7711,9 @@ You can find more information at https://next.router.vuejs.org/guide/migration/#
|
|
|
7711
7711
|
replace: i
|
|
7712
7712
|
};
|
|
7713
7713
|
}
|
|
7714
|
-
function
|
|
7715
|
-
e =
|
|
7716
|
-
const t =
|
|
7714
|
+
function t_(e) {
|
|
7715
|
+
e = Ky(e);
|
|
7716
|
+
const t = e_(e), n = Xy(e, t.state, t.location, t.replace);
|
|
7717
7717
|
function o(s, i = !0) {
|
|
7718
7718
|
i || n.pauseListeners(), history.go(s);
|
|
7719
7719
|
}
|
|
@@ -7722,7 +7722,7 @@ function e_(e) {
|
|
|
7722
7722
|
location: "",
|
|
7723
7723
|
base: e,
|
|
7724
7724
|
go: o,
|
|
7725
|
-
createHref:
|
|
7725
|
+
createHref: Wy.bind(null, e)
|
|
7726
7726
|
}, t, n);
|
|
7727
7727
|
return Object.defineProperty(r, "location", {
|
|
7728
7728
|
enumerable: !0,
|
|
@@ -7732,11 +7732,11 @@ function e_(e) {
|
|
|
7732
7732
|
get: () => t.state.value
|
|
7733
7733
|
}), r;
|
|
7734
7734
|
}
|
|
7735
|
-
function
|
|
7735
|
+
function n_(e) {
|
|
7736
7736
|
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), process.env.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && ne(`A hash base must end with a "#":
|
|
7737
|
-
"${e}" should be "${e.replace(/#.*$/, "#")}".`),
|
|
7737
|
+
"${e}" should be "${e.replace(/#.*$/, "#")}".`), t_(e);
|
|
7738
7738
|
}
|
|
7739
|
-
function
|
|
7739
|
+
function o_(e) {
|
|
7740
7740
|
return typeof e == "string" || e && typeof e == "object";
|
|
7741
7741
|
}
|
|
7742
7742
|
function uu(e) {
|
|
@@ -7757,7 +7757,7 @@ var Ra;
|
|
|
7757
7757
|
(function(e) {
|
|
7758
7758
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
7759
7759
|
})(Ra || (Ra = {}));
|
|
7760
|
-
const
|
|
7760
|
+
const r_ = {
|
|
7761
7761
|
[
|
|
7762
7762
|
1
|
|
7763
7763
|
/* ErrorTypes.MATCHER_NOT_FOUND */
|
|
@@ -7771,7 +7771,7 @@ while being at
|
|
|
7771
7771
|
2
|
|
7772
7772
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
7773
7773
|
]({ from: e, to: t }) {
|
|
7774
|
-
return `Redirected from "${e.fullPath}" to "${
|
|
7774
|
+
return `Redirected from "${e.fullPath}" to "${i_(t)}" via a navigation guard.`;
|
|
7775
7775
|
},
|
|
7776
7776
|
[
|
|
7777
7777
|
4
|
|
@@ -7793,7 +7793,7 @@ while being at
|
|
|
7793
7793
|
}
|
|
7794
7794
|
};
|
|
7795
7795
|
function Pn(e, t) {
|
|
7796
|
-
return process.env.NODE_ENV !== "production" ? ce(new Error(
|
|
7796
|
+
return process.env.NODE_ENV !== "production" ? ce(new Error(r_[e](t)), {
|
|
7797
7797
|
type: e,
|
|
7798
7798
|
[xs]: !0
|
|
7799
7799
|
}, t) : ce(new Error(), {
|
|
@@ -7804,25 +7804,25 @@ function Pn(e, t) {
|
|
|
7804
7804
|
function ht(e, t) {
|
|
7805
7805
|
return e instanceof Error && xs in e && (t == null || !!(e.type & t));
|
|
7806
7806
|
}
|
|
7807
|
-
const
|
|
7808
|
-
function
|
|
7807
|
+
const s_ = ["params", "query", "hash"];
|
|
7808
|
+
function i_(e) {
|
|
7809
7809
|
if (typeof e == "string")
|
|
7810
7810
|
return e;
|
|
7811
7811
|
if ("path" in e)
|
|
7812
7812
|
return e.path;
|
|
7813
7813
|
const t = {};
|
|
7814
|
-
for (const n of
|
|
7814
|
+
for (const n of s_)
|
|
7815
7815
|
n in e && (t[n] = e[n]);
|
|
7816
7816
|
return JSON.stringify(t, null, 2);
|
|
7817
7817
|
}
|
|
7818
|
-
const Aa = "[^/]+?",
|
|
7818
|
+
const Aa = "[^/]+?", a_ = {
|
|
7819
7819
|
sensitive: !1,
|
|
7820
7820
|
strict: !1,
|
|
7821
7821
|
start: !0,
|
|
7822
7822
|
end: !0
|
|
7823
|
-
},
|
|
7824
|
-
function
|
|
7825
|
-
const n = ce({},
|
|
7823
|
+
}, c_ = /[.+*?^${}()[\]/\\]/g;
|
|
7824
|
+
function l_(e, t) {
|
|
7825
|
+
const n = ce({}, a_, t), o = [];
|
|
7826
7826
|
let r = n.start ? "^" : "";
|
|
7827
7827
|
const s = [];
|
|
7828
7828
|
for (const l of e) {
|
|
@@ -7835,7 +7835,7 @@ function c_(e, t) {
|
|
|
7835
7835
|
const d = l[f];
|
|
7836
7836
|
let m = 40 + (n.sensitive ? 0.25 : 0);
|
|
7837
7837
|
if (d.type === 0)
|
|
7838
|
-
f || (r += "/"), r += d.value.replace(
|
|
7838
|
+
f || (r += "/"), r += d.value.replace(c_, "\\$&"), m += 40;
|
|
7839
7839
|
else if (d.type === 1) {
|
|
7840
7840
|
const { value: g, repeatable: v, optional: w, regexp: C } = d;
|
|
7841
7841
|
s.push({
|
|
@@ -7907,7 +7907,7 @@ function c_(e, t) {
|
|
|
7907
7907
|
stringify: c
|
|
7908
7908
|
};
|
|
7909
7909
|
}
|
|
7910
|
-
function
|
|
7910
|
+
function u_(e, t) {
|
|
7911
7911
|
let n = 0;
|
|
7912
7912
|
for (; n < e.length && n < t.length; ) {
|
|
7913
7913
|
const o = t[n] - e[n];
|
|
@@ -7917,11 +7917,11 @@ function l_(e, t) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
return e.length < t.length ? e.length === 1 && e[0] === 40 + 40 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 40 + 40 ? 1 : -1 : 0;
|
|
7919
7919
|
}
|
|
7920
|
-
function
|
|
7920
|
+
function f_(e, t) {
|
|
7921
7921
|
let n = 0;
|
|
7922
7922
|
const o = e.score, r = t.score;
|
|
7923
7923
|
for (; n < o.length && n < r.length; ) {
|
|
7924
|
-
const s =
|
|
7924
|
+
const s = u_(o[n], r[n]);
|
|
7925
7925
|
if (s)
|
|
7926
7926
|
return s;
|
|
7927
7927
|
n++;
|
|
@@ -7938,15 +7938,15 @@ function Ia(e) {
|
|
|
7938
7938
|
const t = e[e.length - 1];
|
|
7939
7939
|
return e.length > 0 && t[t.length - 1] < 0;
|
|
7940
7940
|
}
|
|
7941
|
-
const
|
|
7941
|
+
const d_ = {
|
|
7942
7942
|
type: 0,
|
|
7943
7943
|
value: ""
|
|
7944
|
-
},
|
|
7945
|
-
function
|
|
7944
|
+
}, p_ = /[a-zA-Z0-9_]/;
|
|
7945
|
+
function h_(e) {
|
|
7946
7946
|
if (!e)
|
|
7947
7947
|
return [[]];
|
|
7948
7948
|
if (e === "/")
|
|
7949
|
-
return [[
|
|
7949
|
+
return [[d_]];
|
|
7950
7950
|
if (!e.startsWith("/"))
|
|
7951
7951
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
7952
7952
|
function t(m) {
|
|
@@ -7987,7 +7987,7 @@ function p_(e) {
|
|
|
7987
7987
|
d(), n = o;
|
|
7988
7988
|
break;
|
|
7989
7989
|
case 1:
|
|
7990
|
-
c === "(" ? n = 2 :
|
|
7990
|
+
c === "(" ? n = 2 : p_.test(c) ? d() : (f(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
|
|
7991
7991
|
break;
|
|
7992
7992
|
case 2:
|
|
7993
7993
|
c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
|
|
@@ -8002,8 +8002,8 @@ function p_(e) {
|
|
|
8002
8002
|
}
|
|
8003
8003
|
return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), f(), i(), r;
|
|
8004
8004
|
}
|
|
8005
|
-
function
|
|
8006
|
-
const o =
|
|
8005
|
+
function m_(e, t, n) {
|
|
8006
|
+
const o = l_(h_(e.path), n);
|
|
8007
8007
|
if (process.env.NODE_ENV !== "production") {
|
|
8008
8008
|
const s = /* @__PURE__ */ new Set();
|
|
8009
8009
|
for (const i of o.keys)
|
|
@@ -8018,15 +8018,15 @@ function h_(e, t, n) {
|
|
|
8018
8018
|
});
|
|
8019
8019
|
return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
|
|
8020
8020
|
}
|
|
8021
|
-
function
|
|
8021
|
+
function g_(e, t) {
|
|
8022
8022
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
8023
8023
|
t = Ma({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
8024
8024
|
function r(u) {
|
|
8025
8025
|
return o.get(u);
|
|
8026
8026
|
}
|
|
8027
8027
|
function s(u, f, d) {
|
|
8028
|
-
const m = !d, g =
|
|
8029
|
-
process.env.NODE_ENV !== "production" &&
|
|
8028
|
+
const m = !d, g = v_(u);
|
|
8029
|
+
process.env.NODE_ENV !== "production" && b_(g, f), g.aliasOf = d && d.record;
|
|
8030
8030
|
const v = Ma(t, u), w = [
|
|
8031
8031
|
g
|
|
8032
8032
|
];
|
|
@@ -8054,7 +8054,7 @@ function m_(e, t) {
|
|
|
8054
8054
|
if (process.env.NODE_ENV !== "production" && D.path === "*")
|
|
8055
8055
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
8056
8056
|
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
|
|
8057
|
-
if (C =
|
|
8057
|
+
if (C = m_(D, f, v), process.env.NODE_ENV !== "production" && f && V[0] === "/" && N_(C, f), d ? (d.alias.push(C), process.env.NODE_ENV !== "production" && E_(d, C)) : (A = A || C, A !== C && A.alias.push(C), m && u.name && !ka(C) && i(u.name)), g.children) {
|
|
8058
8058
|
const z = g.children;
|
|
8059
8059
|
for (let me = 0; me < z.length; me++)
|
|
8060
8060
|
s(z[me], C, d && d.children[me]);
|
|
@@ -8079,7 +8079,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
8079
8079
|
}
|
|
8080
8080
|
function c(u) {
|
|
8081
8081
|
let f = 0;
|
|
8082
|
-
for (; f < n.length &&
|
|
8082
|
+
for (; f < n.length && f_(u, n[f]) >= 0 && // Adding children with empty path should still appear before the parent
|
|
8083
8083
|
// https://github.com/vuejs/router/issues/1124
|
|
8084
8084
|
(u.record.path !== n[f].record.path || !fu(u, n[f])); )
|
|
8085
8085
|
f++;
|
|
@@ -8127,7 +8127,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
8127
8127
|
path: g,
|
|
8128
8128
|
params: m,
|
|
8129
8129
|
matched: w,
|
|
8130
|
-
meta:
|
|
8130
|
+
meta: __(w)
|
|
8131
8131
|
};
|
|
8132
8132
|
}
|
|
8133
8133
|
return e.forEach((u) => s(u)), { addRoute: s, resolve: l, removeRoute: i, getRoutes: a, getRecordMatcher: r };
|
|
@@ -8138,7 +8138,7 @@ function Va(e, t) {
|
|
|
8138
8138
|
o in e && (n[o] = e[o]);
|
|
8139
8139
|
return n;
|
|
8140
8140
|
}
|
|
8141
|
-
function
|
|
8141
|
+
function v_(e) {
|
|
8142
8142
|
return {
|
|
8143
8143
|
path: e.path,
|
|
8144
8144
|
redirect: e.redirect,
|
|
@@ -8146,7 +8146,7 @@ function g_(e) {
|
|
|
8146
8146
|
meta: e.meta || {},
|
|
8147
8147
|
aliasOf: void 0,
|
|
8148
8148
|
beforeEnter: e.beforeEnter,
|
|
8149
|
-
props:
|
|
8149
|
+
props: y_(e),
|
|
8150
8150
|
children: e.children || [],
|
|
8151
8151
|
instances: {},
|
|
8152
8152
|
leaveGuards: /* @__PURE__ */ new Set(),
|
|
@@ -8155,7 +8155,7 @@ function g_(e) {
|
|
|
8155
8155
|
components: "components" in e ? e.components || null : e.component && { default: e.component }
|
|
8156
8156
|
};
|
|
8157
8157
|
}
|
|
8158
|
-
function
|
|
8158
|
+
function y_(e) {
|
|
8159
8159
|
const t = {}, n = e.props || !1;
|
|
8160
8160
|
if ("component" in e)
|
|
8161
8161
|
t.default = n;
|
|
@@ -8172,7 +8172,7 @@ function ka(e) {
|
|
|
8172
8172
|
}
|
|
8173
8173
|
return !1;
|
|
8174
8174
|
}
|
|
8175
|
-
function
|
|
8175
|
+
function __(e) {
|
|
8176
8176
|
return e.reduce((t, n) => ce(t, n.meta), {});
|
|
8177
8177
|
}
|
|
8178
8178
|
function Ma(e, t) {
|
|
@@ -8184,7 +8184,7 @@ function Ma(e, t) {
|
|
|
8184
8184
|
function Ss(e, t) {
|
|
8185
8185
|
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
|
8186
8186
|
}
|
|
8187
|
-
function
|
|
8187
|
+
function E_(e, t) {
|
|
8188
8188
|
for (const n of e.keys)
|
|
8189
8189
|
if (!n.optional && !t.keys.find(Ss.bind(null, n)))
|
|
8190
8190
|
return ne(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
@@ -8192,10 +8192,10 @@ function __(e, t) {
|
|
|
8192
8192
|
if (!n.optional && !e.keys.find(Ss.bind(null, n)))
|
|
8193
8193
|
return ne(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
8194
8194
|
}
|
|
8195
|
-
function
|
|
8195
|
+
function b_(e, t) {
|
|
8196
8196
|
t && t.record.name && !e.name && !e.path && ne(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
|
|
8197
8197
|
}
|
|
8198
|
-
function
|
|
8198
|
+
function N_(e, t) {
|
|
8199
8199
|
for (const n of t.keys)
|
|
8200
8200
|
if (!e.keys.find(Ss.bind(null, n)))
|
|
8201
8201
|
return ne(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
|
@@ -8203,24 +8203,24 @@ function b_(e, t) {
|
|
|
8203
8203
|
function fu(e, t) {
|
|
8204
8204
|
return t.children.some((n) => n === e || fu(e, n));
|
|
8205
8205
|
}
|
|
8206
|
-
const du = /#/g,
|
|
8206
|
+
const du = /#/g, w_ = /&/g, O_ = /\//g, C_ = /=/g, x_ = /\?/g, pu = /\+/g, S_ = /%5B/g, T_ = /%5D/g, hu = /%5E/g, D_ = /%60/g, mu = /%7B/g, P_ = /%7C/g, gu = /%7D/g, $_ = /%20/g;
|
|
8207
8207
|
function fi(e) {
|
|
8208
|
-
return encodeURI("" + e).replace(
|
|
8208
|
+
return encodeURI("" + e).replace(P_, "|").replace(S_, "[").replace(T_, "]");
|
|
8209
8209
|
}
|
|
8210
|
-
function
|
|
8210
|
+
function R_(e) {
|
|
8211
8211
|
return fi(e).replace(mu, "{").replace(gu, "}").replace(hu, "^");
|
|
8212
8212
|
}
|
|
8213
8213
|
function Ts(e) {
|
|
8214
|
-
return fi(e).replace(pu, "%2B").replace(
|
|
8215
|
-
}
|
|
8216
|
-
function R_(e) {
|
|
8217
|
-
return Ts(e).replace(O_, "%3D");
|
|
8214
|
+
return fi(e).replace(pu, "%2B").replace($_, "+").replace(du, "%23").replace(w_, "%26").replace(D_, "`").replace(mu, "{").replace(gu, "}").replace(hu, "^");
|
|
8218
8215
|
}
|
|
8219
8216
|
function A_(e) {
|
|
8220
|
-
return
|
|
8217
|
+
return Ts(e).replace(C_, "%3D");
|
|
8221
8218
|
}
|
|
8222
8219
|
function I_(e) {
|
|
8223
|
-
return e
|
|
8220
|
+
return fi(e).replace(du, "%23").replace(x_, "%3F");
|
|
8221
|
+
}
|
|
8222
|
+
function V_(e) {
|
|
8223
|
+
return e == null ? "" : I_(e).replace(O_, "%2F");
|
|
8224
8224
|
}
|
|
8225
8225
|
function po(e) {
|
|
8226
8226
|
try {
|
|
@@ -8230,7 +8230,7 @@ function po(e) {
|
|
|
8230
8230
|
}
|
|
8231
8231
|
return "" + e;
|
|
8232
8232
|
}
|
|
8233
|
-
function
|
|
8233
|
+
function k_(e) {
|
|
8234
8234
|
const t = {};
|
|
8235
8235
|
if (e === "" || e === "?")
|
|
8236
8236
|
return t;
|
|
@@ -8249,7 +8249,7 @@ function La(e) {
|
|
|
8249
8249
|
let t = "";
|
|
8250
8250
|
for (let n in e) {
|
|
8251
8251
|
const o = e[n];
|
|
8252
|
-
if (n =
|
|
8252
|
+
if (n = A_(n), o == null) {
|
|
8253
8253
|
o !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
8254
8254
|
continue;
|
|
8255
8255
|
}
|
|
@@ -8259,7 +8259,7 @@ function La(e) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
return t;
|
|
8261
8261
|
}
|
|
8262
|
-
function
|
|
8262
|
+
function M_(e) {
|
|
8263
8263
|
const t = {};
|
|
8264
8264
|
for (const n in e) {
|
|
8265
8265
|
const o = e[n];
|
|
@@ -8267,7 +8267,7 @@ function k_(e) {
|
|
|
8267
8267
|
}
|
|
8268
8268
|
return t;
|
|
8269
8269
|
}
|
|
8270
|
-
const
|
|
8270
|
+
const L_ = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), ja = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), di = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), vu = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), Ds = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
8271
8271
|
function Hn() {
|
|
8272
8272
|
let e = [];
|
|
8273
8273
|
function t(o) {
|
|
@@ -8293,12 +8293,12 @@ function At(e, t, n, o, r) {
|
|
|
8293
8293
|
f === !1 ? a(Pn(4, {
|
|
8294
8294
|
from: n,
|
|
8295
8295
|
to: t
|
|
8296
|
-
})) : f instanceof Error ? a(f) :
|
|
8296
|
+
})) : f instanceof Error ? a(f) : o_(f) ? a(Pn(2, {
|
|
8297
8297
|
from: t,
|
|
8298
8298
|
to: f
|
|
8299
8299
|
})) : (s && // since enterCallbackArray is truthy, both record and name also are
|
|
8300
8300
|
o.enterCallbacks[r] === s && typeof f == "function" && s.push(f), i());
|
|
8301
|
-
}, l = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ?
|
|
8301
|
+
}, l = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? j_(c, t, n) : c);
|
|
8302
8302
|
let u = Promise.resolve(l);
|
|
8303
8303
|
if (e.length < 3 && (u = u.then(c)), process.env.NODE_ENV !== "production" && e.length > 2) {
|
|
8304
8304
|
const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
|
@@ -8314,7 +8314,7 @@ ${e.toString()}
|
|
|
8314
8314
|
u.catch((f) => a(f));
|
|
8315
8315
|
});
|
|
8316
8316
|
}
|
|
8317
|
-
function
|
|
8317
|
+
function j_(e, t, n) {
|
|
8318
8318
|
let o = 0;
|
|
8319
8319
|
return function() {
|
|
8320
8320
|
o++ === 1 && ne(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
|
|
@@ -8338,7 +8338,7 @@ function Qr(e, t, n, o) {
|
|
|
8338
8338
|
!a.__warnedDefineAsync && (a.__warnedDefineAsync = !0, ne(`Component "${i}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
|
8339
8339
|
}
|
|
8340
8340
|
if (!(t !== "beforeRouteEnter" && !s.instances[i]))
|
|
8341
|
-
if (
|
|
8341
|
+
if (F_(a)) {
|
|
8342
8342
|
const l = (a.__vccOpts || a)[t];
|
|
8343
8343
|
l && r.push(At(l, n, o, s, i));
|
|
8344
8344
|
} else {
|
|
@@ -8346,7 +8346,7 @@ function Qr(e, t, n, o) {
|
|
|
8346
8346
|
process.env.NODE_ENV !== "production" && !("catch" in c) && (ne(`Component "${i}" in record with path "${s.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), c = Promise.resolve(c)), r.push(() => c.then((l) => {
|
|
8347
8347
|
if (!l)
|
|
8348
8348
|
return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));
|
|
8349
|
-
const u =
|
|
8349
|
+
const u = jy(l) ? l.default : l;
|
|
8350
8350
|
s.components[i] = u;
|
|
8351
8351
|
const d = (u.__vccOpts || u)[t];
|
|
8352
8352
|
return d && At(d, n, o, s, i)();
|
|
@@ -8356,7 +8356,7 @@ function Qr(e, t, n, o) {
|
|
|
8356
8356
|
}
|
|
8357
8357
|
return r;
|
|
8358
8358
|
}
|
|
8359
|
-
function
|
|
8359
|
+
function F_(e) {
|
|
8360
8360
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
8361
8361
|
}
|
|
8362
8362
|
function Fa(e) {
|
|
@@ -8376,9 +8376,9 @@ function Fa(e) {
|
|
|
8376
8376
|
Ba(u) === m && // avoid comparing the child with its parent
|
|
8377
8377
|
f[f.length - 1].path !== m ? f.findIndex(Ft.bind(null, c[l - 2])) : d
|
|
8378
8378
|
);
|
|
8379
|
-
}), s = G(() => r.value > -1 &&
|
|
8379
|
+
}), s = G(() => r.value > -1 && z_(n.params, o.value.params)), i = G(() => r.value > -1 && r.value === n.matched.length - 1 && cu(n.params, o.value.params));
|
|
8380
8380
|
function a(c = {}) {
|
|
8381
|
-
return
|
|
8381
|
+
return H_(c) ? t[F(e.replace) ? "replace" : "push"](
|
|
8382
8382
|
F(e.to)
|
|
8383
8383
|
// avoid uncaught errors are they are logged anyway
|
|
8384
8384
|
).catch(Qn) : Promise.resolve();
|
|
@@ -8404,7 +8404,7 @@ function Fa(e) {
|
|
|
8404
8404
|
navigate: a
|
|
8405
8405
|
};
|
|
8406
8406
|
}
|
|
8407
|
-
const
|
|
8407
|
+
const B_ = /* @__PURE__ */ Ge({
|
|
8408
8408
|
name: "RouterLink",
|
|
8409
8409
|
compatConfig: { MODE: 3 },
|
|
8410
8410
|
props: {
|
|
@@ -8445,8 +8445,8 @@ const F_ = /* @__PURE__ */ Ge({
|
|
|
8445
8445
|
}, s);
|
|
8446
8446
|
};
|
|
8447
8447
|
}
|
|
8448
|
-
}),
|
|
8449
|
-
function
|
|
8448
|
+
}), U_ = B_;
|
|
8449
|
+
function H_(e) {
|
|
8450
8450
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
8451
8451
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
8452
8452
|
const t = e.currentTarget.getAttribute("target");
|
|
@@ -8456,7 +8456,7 @@ function U_(e) {
|
|
|
8456
8456
|
return e.preventDefault && e.preventDefault(), !0;
|
|
8457
8457
|
}
|
|
8458
8458
|
}
|
|
8459
|
-
function
|
|
8459
|
+
function z_(e, t) {
|
|
8460
8460
|
for (const n in t) {
|
|
8461
8461
|
const o = t[n], r = e[n];
|
|
8462
8462
|
if (typeof o == "string") {
|
|
@@ -8470,7 +8470,7 @@ function H_(e, t) {
|
|
|
8470
8470
|
function Ba(e) {
|
|
8471
8471
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
8472
8472
|
}
|
|
8473
|
-
const Ua = (e, t, n) => e ?? t ?? n,
|
|
8473
|
+
const Ua = (e, t, n) => e ?? t ?? n, K_ = /* @__PURE__ */ Ge({
|
|
8474
8474
|
name: "RouterView",
|
|
8475
8475
|
// #674 we manually inherit them
|
|
8476
8476
|
inheritAttrs: !1,
|
|
@@ -8485,7 +8485,7 @@ const Ua = (e, t, n) => e ?? t ?? n, z_ = /* @__PURE__ */ Ge({
|
|
|
8485
8485
|
// https://github.com/vuejs/router/issues/1315
|
|
8486
8486
|
compatConfig: { MODE: 3 },
|
|
8487
8487
|
setup(e, { attrs: t, slots: n }) {
|
|
8488
|
-
process.env.NODE_ENV !== "production" &&
|
|
8488
|
+
process.env.NODE_ENV !== "production" && W_();
|
|
8489
8489
|
const o = ze(Ds), r = G(() => e.route || o.value), s = ze(ja, 0), i = G(() => {
|
|
8490
8490
|
let l = F(s);
|
|
8491
8491
|
const { matched: u } = r.value;
|
|
@@ -8494,7 +8494,7 @@ const Ua = (e, t, n) => e ?? t ?? n, z_ = /* @__PURE__ */ Ge({
|
|
|
8494
8494
|
l++;
|
|
8495
8495
|
return l;
|
|
8496
8496
|
}), a = G(() => r.value.matched[i.value]);
|
|
8497
|
-
Jn(ja, G(() => i.value + 1)), Jn(
|
|
8497
|
+
Jn(ja, G(() => i.value + 1)), Jn(L_, a), Jn(Ds, r);
|
|
8498
8498
|
const c = Me();
|
|
8499
8499
|
return bt(() => [c.value, a.value, e.name], ([l, u, f], [d, m, g]) => {
|
|
8500
8500
|
u && (u.instances[f] = l, m && m !== u && l && l === d && (u.leaveGuards.size || (u.leaveGuards = m.leaveGuards), u.updateGuards.size || (u.updateGuards = m.updateGuards))), l && u && // if there is no instance but to and from are the same this might be
|
|
@@ -8535,8 +8535,8 @@ function Ha(e, t) {
|
|
|
8535
8535
|
const n = e(t);
|
|
8536
8536
|
return n.length === 1 ? n[0] : n;
|
|
8537
8537
|
}
|
|
8538
|
-
const
|
|
8539
|
-
function
|
|
8538
|
+
const q_ = K_;
|
|
8539
|
+
function W_() {
|
|
8540
8540
|
const e = Ut(), t = e.parent && e.parent.type.name;
|
|
8541
8541
|
if (t && (t === "KeepAlive" || t.includes("Transition"))) {
|
|
8542
8542
|
const n = t === "KeepAlive" ? "keep-alive" : "transition";
|
|
@@ -8553,7 +8553,7 @@ Use slot props instead:
|
|
|
8553
8553
|
function zn(e, t) {
|
|
8554
8554
|
const n = ce({}, e, {
|
|
8555
8555
|
// remove variables that can contain vue instances
|
|
8556
|
-
matched: e.matched.map((o) =>
|
|
8556
|
+
matched: e.matched.map((o) => nE(o, ["instances", "children", "aliasOf"]))
|
|
8557
8557
|
});
|
|
8558
8558
|
return {
|
|
8559
8559
|
_custom: {
|
|
@@ -8572,13 +8572,13 @@ function Ao(e) {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
};
|
|
8574
8574
|
}
|
|
8575
|
-
let
|
|
8576
|
-
function
|
|
8575
|
+
let J_ = 0;
|
|
8576
|
+
function G_(e, t, n) {
|
|
8577
8577
|
if (t.__hasDevtools)
|
|
8578
8578
|
return;
|
|
8579
8579
|
t.__hasDevtools = !0;
|
|
8580
|
-
const o =
|
|
8581
|
-
|
|
8580
|
+
const o = J_++;
|
|
8581
|
+
Ly({
|
|
8582
8582
|
id: "org.vuejs.router" + (o ? "." + o : ""),
|
|
8583
8583
|
label: "Vue Router",
|
|
8584
8584
|
packageName: "vue-router",
|
|
@@ -8701,16 +8701,16 @@ function J_(e, t, n) {
|
|
|
8701
8701
|
if (u.app === e && u.inspectorId === a) {
|
|
8702
8702
|
const d = n.getRoutes().find((m) => m.record.__vd_id === u.nodeId);
|
|
8703
8703
|
d && (u.state = {
|
|
8704
|
-
options:
|
|
8704
|
+
options: Q_(d)
|
|
8705
8705
|
});
|
|
8706
8706
|
}
|
|
8707
8707
|
}), r.sendInspectorTree(a), r.sendInspectorState(a);
|
|
8708
8708
|
});
|
|
8709
8709
|
}
|
|
8710
|
-
function
|
|
8710
|
+
function Y_(e) {
|
|
8711
8711
|
return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
|
|
8712
8712
|
}
|
|
8713
|
-
function
|
|
8713
|
+
function Q_(e) {
|
|
8714
8714
|
const { record: t } = e, n = [
|
|
8715
8715
|
{ editable: !1, key: "path", value: t.path }
|
|
8716
8716
|
];
|
|
@@ -8725,7 +8725,7 @@ function Y_(e) {
|
|
|
8725
8725
|
_custom: {
|
|
8726
8726
|
type: null,
|
|
8727
8727
|
readOnly: !0,
|
|
8728
|
-
display: e.keys.map((o) => `${o.name}${
|
|
8728
|
+
display: e.keys.map((o) => `${o.name}${Y_(o)}`).join(" "),
|
|
8729
8729
|
tooltip: "Param keys",
|
|
8730
8730
|
value: e.keys
|
|
8731
8731
|
}
|
|
@@ -8756,13 +8756,13 @@ function Y_(e) {
|
|
|
8756
8756
|
}
|
|
8757
8757
|
}), n;
|
|
8758
8758
|
}
|
|
8759
|
-
const yu = 15485081, _u = 2450411, Eu = 8702998,
|
|
8759
|
+
const yu = 15485081, _u = 2450411, Eu = 8702998, Z_ = 2282478, bu = 16486972, X_ = 6710886;
|
|
8760
8760
|
function Nu(e) {
|
|
8761
8761
|
const t = [], { record: n } = e;
|
|
8762
8762
|
n.name != null && t.push({
|
|
8763
8763
|
label: String(n.name),
|
|
8764
8764
|
textColor: 0,
|
|
8765
|
-
backgroundColor:
|
|
8765
|
+
backgroundColor: Z_
|
|
8766
8766
|
}), n.aliasOf && t.push({
|
|
8767
8767
|
label: "alias",
|
|
8768
8768
|
textColor: 0,
|
|
@@ -8782,18 +8782,18 @@ function Nu(e) {
|
|
|
8782
8782
|
}), n.redirect && t.push({
|
|
8783
8783
|
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
|
8784
8784
|
textColor: 16777215,
|
|
8785
|
-
backgroundColor:
|
|
8785
|
+
backgroundColor: X_
|
|
8786
8786
|
});
|
|
8787
8787
|
let o = n.__vd_id;
|
|
8788
|
-
return o == null && (o = String(
|
|
8788
|
+
return o == null && (o = String(eE++), n.__vd_id = o), {
|
|
8789
8789
|
id: o,
|
|
8790
8790
|
label: n.path,
|
|
8791
8791
|
tags: t,
|
|
8792
8792
|
children: e.children.map(Nu)
|
|
8793
8793
|
};
|
|
8794
8794
|
}
|
|
8795
|
-
let
|
|
8796
|
-
const
|
|
8795
|
+
let eE = 0;
|
|
8796
|
+
const tE = /^\/(.*)\/([a-z]*)$/;
|
|
8797
8797
|
function wu(e, t) {
|
|
8798
8798
|
const n = t.matched.length && Ft(t.matched[t.matched.length - 1], e.record);
|
|
8799
8799
|
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => Ft(o, e.record))), e.children.forEach((o) => wu(o, t));
|
|
@@ -8802,7 +8802,7 @@ function Ou(e) {
|
|
|
8802
8802
|
e.__vd_match = !1, e.children.forEach(Ou);
|
|
8803
8803
|
}
|
|
8804
8804
|
function Ps(e, t) {
|
|
8805
|
-
const n = String(e.re).match(
|
|
8805
|
+
const n = String(e.re).match(tE);
|
|
8806
8806
|
if (e.__vd_match = !1, !n || n.length < 3)
|
|
8807
8807
|
return !1;
|
|
8808
8808
|
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
|
@@ -8810,20 +8810,20 @@ function Ps(e, t) {
|
|
|
8810
8810
|
const r = e.record.path.toLowerCase(), s = po(r);
|
|
8811
8811
|
return !t.startsWith("/") && (s.includes(t) || r.includes(t)) || s.startsWith(t) || r.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => Ps(i, t));
|
|
8812
8812
|
}
|
|
8813
|
-
function
|
|
8813
|
+
function nE(e, t) {
|
|
8814
8814
|
const n = {};
|
|
8815
8815
|
for (const o in e)
|
|
8816
8816
|
t.includes(o) || (n[o] = e[o]);
|
|
8817
8817
|
return n;
|
|
8818
8818
|
}
|
|
8819
|
-
function
|
|
8820
|
-
const t =
|
|
8819
|
+
function oE(e) {
|
|
8820
|
+
const t = g_(e.routes, e), n = e.parseQuery || k_, o = e.stringifyQuery || La, r = e.history;
|
|
8821
8821
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
8822
8822
|
throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');
|
|
8823
8823
|
const s = Hn(), i = Hn(), a = Hn(), c = kd(Pt);
|
|
8824
8824
|
let l = Pt;
|
|
8825
8825
|
vt && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
8826
|
-
const u = Gr.bind(null, (_) => "" + _), f = Gr.bind(null,
|
|
8826
|
+
const u = Gr.bind(null, (_) => "" + _), f = Gr.bind(null, V_), d = (
|
|
8827
8827
|
// @ts-expect-error: intentionally avoid the type check
|
|
8828
8828
|
Gr.bind(null, po)
|
|
8829
8829
|
);
|
|
@@ -8868,8 +8868,8 @@ function nE(e) {
|
|
|
8868
8868
|
}
|
|
8869
8869
|
const L = t.resolve($, k), re = _.hash || "";
|
|
8870
8870
|
process.env.NODE_ENV !== "production" && re && !re.startsWith("#") && ne(`A \`hash\` should always start with the character "#". Replace "${re}" with "#${re}".`), L.params = u(d(L.params));
|
|
8871
|
-
const pe =
|
|
8872
|
-
hash:
|
|
8871
|
+
const pe = Uy(o, ce({}, _, {
|
|
8872
|
+
hash: R_(re),
|
|
8873
8873
|
path: L.path
|
|
8874
8874
|
})), Q = r.createHref(pe);
|
|
8875
8875
|
return process.env.NODE_ENV !== "production" && (Q.startsWith("//") ? ne(`Location "${_}" resolved to "${Q}". A resolved location cannot start with multiple slashes.`) : L.matched.length || ne(`No match found for location with path "${"path" in _ ? _.path : _}"`)), ce({
|
|
@@ -8883,7 +8883,7 @@ function nE(e) {
|
|
|
8883
8883
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
8884
8884
|
// use their own type anyway.
|
|
8885
8885
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
8886
|
-
o === La ?
|
|
8886
|
+
o === La ? M_(_.query) : _.query || {}
|
|
8887
8887
|
)
|
|
8888
8888
|
}, L, {
|
|
8889
8889
|
redirectedFrom: void 0,
|
|
@@ -8996,7 +8996,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
8996
8996
|
}
|
|
8997
8997
|
function oe(_, k) {
|
|
8998
8998
|
let $;
|
|
8999
|
-
const [L, re, pe] =
|
|
8999
|
+
const [L, re, pe] = rE(_, k);
|
|
9000
9000
|
$ = Qr(L.reverse(), "beforeRouteLeave", _, k);
|
|
9001
9001
|
for (const J of L)
|
|
9002
9002
|
J.leaveGuards.forEach((p) => {
|
|
@@ -9059,7 +9059,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9059
9059
|
}
|
|
9060
9060
|
l = L;
|
|
9061
9061
|
const pe = c.value;
|
|
9062
|
-
vt &&
|
|
9062
|
+
vt && Yy(Pa(pe.fullPath, $.delta), Vr()), oe(L, pe).catch((Q) => ht(
|
|
9063
9063
|
Q,
|
|
9064
9064
|
12
|
|
9065
9065
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -9115,8 +9115,8 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9115
9115
|
const { scrollBehavior: re } = e;
|
|
9116
9116
|
if (!vt || !re)
|
|
9117
9117
|
return Promise.resolve();
|
|
9118
|
-
const pe = !$ &&
|
|
9119
|
-
return vo().then(() => re(_, k, pe)).then((Q) => Q &&
|
|
9118
|
+
const pe = !$ && Qy(Pa(_.fullPath, 0)) || (L || !$) && history.state && history.state.scroll || null;
|
|
9119
|
+
return vo().then(() => re(_, k, pe)).then((Q) => Q && Gy(Q)).catch((Q) => X(Q, _, k));
|
|
9120
9120
|
}
|
|
9121
9121
|
const pt = (_) => r.go(_);
|
|
9122
9122
|
let st;
|
|
@@ -9142,7 +9142,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9142
9142
|
isReady: ee,
|
|
9143
9143
|
install(_) {
|
|
9144
9144
|
const k = this;
|
|
9145
|
-
_.component("RouterLink",
|
|
9145
|
+
_.component("RouterLink", U_), _.component("RouterView", q_), _.config.globalProperties.$router = k, Object.defineProperty(_.config.globalProperties, "$route", {
|
|
9146
9146
|
enumerable: !0,
|
|
9147
9147
|
get: () => F(c)
|
|
9148
9148
|
}), vt && // used for the initial navigation client side to avoid pushing
|
|
@@ -9157,14 +9157,14 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9157
9157
|
const L = _.unmount;
|
|
9158
9158
|
qe.add(_), _.unmount = function() {
|
|
9159
9159
|
qe.delete(_), qe.size < 1 && (l = Pt, I && I(), I = null, c.value = Pt, st = !1, ve = !1), L();
|
|
9160
|
-
}, process.env.NODE_ENV !== "production" && vt &&
|
|
9160
|
+
}, process.env.NODE_ENV !== "production" && vt && G_(_, k, t);
|
|
9161
9161
|
}
|
|
9162
9162
|
};
|
|
9163
9163
|
}
|
|
9164
9164
|
function yn(e) {
|
|
9165
9165
|
return e.reduce((t, n) => t.then(() => n()), Promise.resolve());
|
|
9166
9166
|
}
|
|
9167
|
-
function
|
|
9167
|
+
function rE(e, t) {
|
|
9168
9168
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
9169
9169
|
for (let i = 0; i < s; i++) {
|
|
9170
9170
|
const a = t.matched[i];
|
|
@@ -9174,7 +9174,7 @@ function oE(e, t) {
|
|
|
9174
9174
|
}
|
|
9175
9175
|
return [n, o, r];
|
|
9176
9176
|
}
|
|
9177
|
-
const
|
|
9177
|
+
const sE = [
|
|
9178
9178
|
{
|
|
9179
9179
|
path: "/table",
|
|
9180
9180
|
name: "Table",
|
|
@@ -9183,11 +9183,11 @@ const rE = [
|
|
|
9183
9183
|
title: "表格"
|
|
9184
9184
|
}
|
|
9185
9185
|
}
|
|
9186
|
-
], za =
|
|
9187
|
-
history:
|
|
9186
|
+
], za = oE({
|
|
9187
|
+
history: n_("./"),
|
|
9188
9188
|
strict: !1,
|
|
9189
|
-
routes:
|
|
9190
|
-
}),
|
|
9189
|
+
routes: sE
|
|
9190
|
+
}), iE = "/gateway/integrated-management/api/v1", aE = {
|
|
9191
9191
|
timeout: 1e4 * 6,
|
|
9192
9192
|
headers: {
|
|
9193
9193
|
Accept: "application/json, text/plain, */*",
|
|
@@ -9200,13 +9200,13 @@ let Ka = {
|
|
|
9200
9200
|
text: "加载中...",
|
|
9201
9201
|
background: "rgba(0, 0, 0, 0.6)"
|
|
9202
9202
|
};
|
|
9203
|
-
const
|
|
9203
|
+
const cE = ["put", "delete"], dr = class {
|
|
9204
9204
|
/** 响应拦截 */
|
|
9205
9205
|
httpInterceptorsResponse() {
|
|
9206
9206
|
dr.axiosInstance.interceptors.response.use(
|
|
9207
9207
|
(n) => {
|
|
9208
9208
|
const o = n.data.code;
|
|
9209
|
-
return o === 200 &&
|
|
9209
|
+
return o === 200 && cE.includes(n.config.method) && Ae.success("操作成功"), o !== 200 && Cy(o, n.data.resultMsg), n.data;
|
|
9210
9210
|
},
|
|
9211
9211
|
(n) => {
|
|
9212
9212
|
var r, s, i;
|
|
@@ -9234,7 +9234,7 @@ const aE = ["put", "delete"], dr = class {
|
|
|
9234
9234
|
let a = null;
|
|
9235
9235
|
s && i && (Ka.text = i), s && (a = Yv.service(Ka));
|
|
9236
9236
|
const c = {
|
|
9237
|
-
url: `${
|
|
9237
|
+
url: `${iE}${t}`,
|
|
9238
9238
|
headers: {
|
|
9239
9239
|
token: Ir()
|
|
9240
9240
|
},
|
|
@@ -9261,7 +9261,7 @@ const aE = ["put", "delete"], dr = class {
|
|
|
9261
9261
|
};
|
|
9262
9262
|
let qo = dr;
|
|
9263
9263
|
/** 保存当前Axios实例对象 */
|
|
9264
|
-
gi(qo, "axiosInstance", Bf.create(
|
|
9264
|
+
gi(qo, "axiosInstance", Bf.create(aE));
|
|
9265
9265
|
const Cu = new qo();
|
|
9266
9266
|
export {
|
|
9267
9267
|
Ve as F,
|
|
@@ -9271,16 +9271,16 @@ export {
|
|
|
9271
9271
|
Ge as d,
|
|
9272
9272
|
en as e,
|
|
9273
9273
|
we as f,
|
|
9274
|
-
|
|
9274
|
+
fE as g,
|
|
9275
9275
|
Cu as h,
|
|
9276
|
-
|
|
9276
|
+
pE as i,
|
|
9277
9277
|
rt as j,
|
|
9278
9278
|
Me as k,
|
|
9279
|
-
|
|
9279
|
+
Dy as l,
|
|
9280
9280
|
wl as m,
|
|
9281
9281
|
uh as n,
|
|
9282
9282
|
ye as o,
|
|
9283
|
-
|
|
9283
|
+
dE as r,
|
|
9284
9284
|
Jo as t,
|
|
9285
9285
|
F as u,
|
|
9286
9286
|
Et as w
|