@10yun/open-sdk 0.3.98 → 0.3.100
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/dist/{404-BF-98DI2.cjs → 404-DOJrP53c.cjs} +1 -1
- package/dist/{404-CRUQ2RGL.js → 404-Dge6mEmg.js} +1 -1
- package/dist/{alone_run-D3hGeSjr.js → alone_run-D0vsS5Na.js} +1 -1
- package/dist/{alone_run-ErREtrxQ.cjs → alone_run-Py4EaXPg.cjs} +1 -1
- package/dist/{index-CYNRKRHo.js → index-BNhYVmAX.js} +931 -927
- package/dist/index-zX3YjWaQ.cjs +25 -0
- package/dist/{login-DsaaTEyf.cjs → login-0GSUTlNW.cjs} +1 -1
- package/dist/{login-CMkucPpJ.js → login-BAzOP8jW.js} +174 -174
- package/dist/{none-CxRhvKIK.cjs → none-C3Hz3In2.cjs} +1 -1
- package/dist/{none-GtWlMjrR.js → none-CrgAZnxI.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/vite-plugin-shiyun.js +2 -1
- package/dist/index-UENhK8Dd.cjs +0 -25
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
-
import { effectScope as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
2
|
+
import { effectScope as ks, ref as Ps, shallowRef as Fs, computed as gt, watch as wn, isRef as Ms, defineComponent as Jn, getCurrentInstance as Nt, h as Aa, Fragment as he, inject as Us, onMounted as Bs, onUnmounted as xs, createVNode as w, Text as Vs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as D, createElementVNode as k, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, Transition as Gs, normalizeClass as ya, resolveDynamicComponent as $s, withDirectives as Na, withModifiers as Ws, normalizeStyle as Dn, vShow as Ta, mergeProps as Ys, renderSlot as Hs } from "vue";
|
|
3
|
+
import Ks, { ElMessage as vr, ElMessageBox as js, ElNotification as qs } from "element-plus";
|
|
4
|
+
import * as Xs from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
7
|
-
import
|
|
7
|
+
import Qs from "@10yun/cv-pc-ui";
|
|
8
8
|
import "@10yun/cv-pc-ui/lib/cv-ui.css";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
let
|
|
12
|
-
function
|
|
13
|
-
|
|
9
|
+
import * as Js from "@10yun/cv-icons-vue";
|
|
10
|
+
import zs from "axios";
|
|
11
|
+
let Oa = {};
|
|
12
|
+
function Zs(e = {}) {
|
|
13
|
+
Oa = e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function Tt() {
|
|
16
|
+
return Oa;
|
|
17
17
|
}
|
|
18
18
|
/*!
|
|
19
19
|
* vite-plugin-qiankun.js v1.0.14
|
|
20
20
|
* (c) 2021-2022 Teng Mao Qing
|
|
21
21
|
* Released under the MIT License.
|
|
22
22
|
*/
|
|
23
|
-
var me = typeof window < "u" ? window.proxy || window : {},
|
|
23
|
+
var me = typeof window < "u" ? window.proxy || window : {}, eo = function(e) {
|
|
24
24
|
me != null && me.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), me.qiankunName && (window.moudleQiankunAppLifeCycles[me.qiankunName] = e));
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function to(e = "/", t = null, n = {}) {
|
|
27
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var yt = {};
|
|
30
|
+
function pt(e) {
|
|
31
31
|
if (!me.__POWERED_BY_QIANKUN__)
|
|
32
32
|
return !1;
|
|
33
33
|
if (!Object.prototype.toString.call(e) === "[object Object]")
|
|
34
34
|
throw Error("data必须是对象格式");
|
|
35
|
-
|
|
36
|
-
ignore:
|
|
35
|
+
yt.setGlobalState && yt.setGlobalState({
|
|
36
|
+
ignore: yt.name,
|
|
37
37
|
msg: {
|
|
38
38
|
...e
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function no(e) {
|
|
43
43
|
let t = Te();
|
|
44
44
|
e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
|
|
45
45
|
if (n && n.msg)
|
|
@@ -49,11 +49,11 @@ function eo(e) {
|
|
|
49
49
|
t.SA_ACCOUNT_REFRESH();
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
}, !0),
|
|
52
|
+
Ot().SA_MSG_CONTENT(n.msg);
|
|
53
|
+
}, !0), yt.setGlobalState = e && e.setGlobalState, yt.name = e && e.name;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function ro(e, t, n) {
|
|
56
|
+
eo({
|
|
57
57
|
/**
|
|
58
58
|
* @name 微应用初始化
|
|
59
59
|
* @param {Object} props 主应用下发的props
|
|
@@ -68,7 +68,7 @@ function to(e, t, n) {
|
|
|
68
68
|
* @description 应用每次进入都会调用 mount 方法,通常我们在这里触发应用的渲染方法
|
|
69
69
|
*/
|
|
70
70
|
mount(r) {
|
|
71
|
-
|
|
71
|
+
no(r), t(r, !0);
|
|
72
72
|
},
|
|
73
73
|
/**
|
|
74
74
|
* @name 微应用卸载/切出
|
|
@@ -85,7 +85,7 @@ function to(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const Ot = De("cloudSdkQiankunStore", {
|
|
89
89
|
state: () => ({
|
|
90
90
|
// 是否是乾坤
|
|
91
91
|
qiankunExistState: me.__POWERED_BY_QIANKUN__ || !1,
|
|
@@ -100,24 +100,24 @@ const Tt = De("cloudSdkQiankunStore", {
|
|
|
100
100
|
async init() {
|
|
101
101
|
},
|
|
102
102
|
QK_SEND_LOGIN_MSG() {
|
|
103
|
-
|
|
103
|
+
pt({
|
|
104
104
|
COMM_TYPE: "LoginSucc"
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
QK_SEND_LOGOUT_MSG() {
|
|
108
|
-
|
|
108
|
+
pt({
|
|
109
109
|
COMM_TYPE: "LoginLogout"
|
|
110
110
|
});
|
|
111
111
|
},
|
|
112
112
|
QK_SEND_MSG_REG_SUBMENU(e) {
|
|
113
|
-
|
|
113
|
+
pt({
|
|
114
114
|
COMM_TYPE: "MicroRegisterMenu",
|
|
115
115
|
COMM_TYPESTR: "注册子应用菜单",
|
|
116
116
|
data: e || []
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
119
|
QK_SEND_MSG_ROUTER_BEFORE(e) {
|
|
120
|
-
|
|
120
|
+
pt({
|
|
121
121
|
COMM_TYPE: "routerBefore",
|
|
122
122
|
routerBase: e
|
|
123
123
|
// toData: toPath
|
|
@@ -135,7 +135,11 @@ const Tt = De("cloudSdkQiankunStore", {
|
|
|
135
135
|
e.type && e.type;
|
|
136
136
|
},
|
|
137
137
|
// 发送消息给主应用
|
|
138
|
-
QIANKUN_SEND_MSG_TO_MAIN() {
|
|
138
|
+
QIANKUN_SEND_MSG_TO_MAIN(e, t) {
|
|
139
|
+
pt({
|
|
140
|
+
COMM_TYPE: e,
|
|
141
|
+
data: t || ""
|
|
142
|
+
});
|
|
139
143
|
},
|
|
140
144
|
// 设置乾坤状态
|
|
141
145
|
SA_SET_QIANKUN_STATE(e) {
|
|
@@ -163,26 +167,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
163
167
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
164
168
|
});
|
|
165
169
|
}
|
|
166
|
-
const
|
|
170
|
+
const ao = /\{([0-9a-zA-Z]+)\}/g;
|
|
167
171
|
function Xt(e, ...t) {
|
|
168
|
-
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
172
|
+
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ao, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
169
173
|
}
|
|
170
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
174
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), so = (e, t, n) => oo({ l: e, k: t, s: n }), oo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), io = (e) => zn(e) === "[object Date]", lt = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, lo = Object.create, K = (e = null) => lo(e);
|
|
171
175
|
let Ar;
|
|
172
176
|
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
173
177
|
function yr(e) {
|
|
174
178
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
175
179
|
}
|
|
176
|
-
const
|
|
180
|
+
const co = Object.prototype.hasOwnProperty;
|
|
177
181
|
function ve(e, t) {
|
|
178
|
-
return
|
|
182
|
+
return co.call(e, t);
|
|
179
183
|
}
|
|
180
|
-
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object",
|
|
184
|
+
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object", uo = (e) => G(e) && q(e.then) && q(e.catch), Ia = Object.prototype.toString, zn = (e) => Ia.call(e), V = (e) => zn(e) === "[object Object]", fo = (e) => e == null ? "" : re(e) || V(e) && e.toString === Ia ? JSON.stringify(e, null, 2) : String(e);
|
|
181
185
|
function Zn(e, t = "") {
|
|
182
186
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
183
187
|
}
|
|
184
188
|
const Nr = 2;
|
|
185
|
-
function
|
|
189
|
+
function _o(e, t = 0, n = e.length) {
|
|
186
190
|
const r = e.split(/\r?\n/);
|
|
187
191
|
let a = 0;
|
|
188
192
|
const s = [];
|
|
@@ -210,7 +214,7 @@ function uo(e, t = 0, n = e.length) {
|
|
|
210
214
|
return s.join(`
|
|
211
215
|
`);
|
|
212
216
|
}
|
|
213
|
-
function
|
|
217
|
+
function mo(e, t) {
|
|
214
218
|
}
|
|
215
219
|
const Tr = {};
|
|
216
220
|
function er(e) {
|
|
@@ -250,7 +254,7 @@ function Wt(e, t) {
|
|
|
250
254
|
* (c) 2025 kazuya kawaguchi
|
|
251
255
|
* Released under the MIT License.
|
|
252
256
|
*/
|
|
253
|
-
function
|
|
257
|
+
function ho(e, t, n) {
|
|
254
258
|
return { line: e, column: t, offset: n };
|
|
255
259
|
}
|
|
256
260
|
function Rn(e, t, n) {
|
|
@@ -277,7 +281,7 @@ const M = {
|
|
|
277
281
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
278
282
|
// minifier error codes
|
|
279
283
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
280
|
-
},
|
|
284
|
+
}, go = 17, po = {
|
|
281
285
|
// tokenizer error messages
|
|
282
286
|
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
283
287
|
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -300,18 +304,18 @@ const M = {
|
|
|
300
304
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
301
305
|
};
|
|
302
306
|
function ft(e, t, n = {}) {
|
|
303
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a ||
|
|
307
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || po)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
304
308
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
305
309
|
}
|
|
306
|
-
function
|
|
310
|
+
function Eo(e) {
|
|
307
311
|
throw e;
|
|
308
312
|
}
|
|
309
|
-
const
|
|
310
|
-
`,
|
|
311
|
-
function
|
|
313
|
+
const bo = /<\/?[\w\s="/.':;#-\/]+>/, So = (e) => bo.test(e), Ce = " ", vo = "\r", ce = `
|
|
314
|
+
`, Ao = "\u2028", yo = "\u2029";
|
|
315
|
+
function No(e) {
|
|
312
316
|
const t = e;
|
|
313
317
|
let n = 0, r = 1, a = 1, s = 0;
|
|
314
|
-
const o = (v) => t[v] ===
|
|
318
|
+
const o = (v) => t[v] === vo && t[v + 1] === ce, i = (v) => t[v] === ce, l = (v) => t[v] === yo, c = (v) => t[v] === Ao, f = (v) => o(v) || i(v) || l(v) || c(v), u = () => n, m = () => r, p = () => a, A = () => s, E = (v) => o(v) || l(v) || c(v) ? ce : t[v], C = () => E(n), h = () => E(n + s);
|
|
315
319
|
function g() {
|
|
316
320
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
317
321
|
}
|
|
@@ -345,9 +349,9 @@ function Ao(e) {
|
|
|
345
349
|
skipToPeek: L
|
|
346
350
|
};
|
|
347
351
|
}
|
|
348
|
-
const Fe = void 0,
|
|
349
|
-
function
|
|
350
|
-
const n = t.location !== !1, r =
|
|
352
|
+
const Fe = void 0, To = ".", Or = "'", Oo = "tokenizer";
|
|
353
|
+
function Io(e, t = {}) {
|
|
354
|
+
const n = t.location !== !1, r = No(e), a = () => r.index(), s = () => ho(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
351
355
|
currentType: 13,
|
|
352
356
|
offset: i,
|
|
353
357
|
startLoc: o,
|
|
@@ -360,20 +364,20 @@ function To(e, t = {}) {
|
|
|
360
364
|
inLinked: !1,
|
|
361
365
|
text: ""
|
|
362
366
|
}, c = () => l, { onError: f } = t;
|
|
363
|
-
function u(_, d, y, ...
|
|
367
|
+
function u(_, d, y, ...R) {
|
|
364
368
|
const z = c();
|
|
365
369
|
if (d.column += y, d.offset += y, f) {
|
|
366
370
|
const Z = n ? Rn(z.startLoc, d) : null, W = ft(_, Z, {
|
|
367
|
-
domain:
|
|
368
|
-
args:
|
|
371
|
+
domain: Oo,
|
|
372
|
+
args: R
|
|
369
373
|
});
|
|
370
374
|
f(W);
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
377
|
function m(_, d, y) {
|
|
374
378
|
_.endLoc = s(), _.currentType = d;
|
|
375
|
-
const
|
|
376
|
-
return n && (
|
|
379
|
+
const R = { type: d };
|
|
380
|
+
return n && (R.loc = Rn(_.startLoc, _.endLoc)), y != null && (R.value = y), R;
|
|
377
381
|
}
|
|
378
382
|
const p = (_) => m(
|
|
379
383
|
_,
|
|
@@ -412,15 +416,15 @@ function To(e, t = {}) {
|
|
|
412
416
|
if (y !== 2)
|
|
413
417
|
return !1;
|
|
414
418
|
E(_);
|
|
415
|
-
const
|
|
416
|
-
return _.resetPeek(),
|
|
419
|
+
const R = h(_.currentPeek());
|
|
420
|
+
return _.resetPeek(), R;
|
|
417
421
|
}
|
|
418
422
|
function S(_, d) {
|
|
419
423
|
const { currentType: y } = d;
|
|
420
424
|
if (y !== 2)
|
|
421
425
|
return !1;
|
|
422
426
|
E(_);
|
|
423
|
-
const
|
|
427
|
+
const R = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), z = g(R);
|
|
424
428
|
return _.resetPeek(), z;
|
|
425
429
|
}
|
|
426
430
|
function O(_, d) {
|
|
@@ -428,41 +432,41 @@ function To(e, t = {}) {
|
|
|
428
432
|
if (y !== 2)
|
|
429
433
|
return !1;
|
|
430
434
|
E(_);
|
|
431
|
-
const
|
|
432
|
-
return _.resetPeek(),
|
|
435
|
+
const R = _.currentPeek() === Or;
|
|
436
|
+
return _.resetPeek(), R;
|
|
433
437
|
}
|
|
434
438
|
function L(_, d) {
|
|
435
439
|
const { currentType: y } = d;
|
|
436
440
|
if (y !== 7)
|
|
437
441
|
return !1;
|
|
438
442
|
E(_);
|
|
439
|
-
const
|
|
440
|
-
return _.resetPeek(),
|
|
443
|
+
const R = _.currentPeek() === ".";
|
|
444
|
+
return _.resetPeek(), R;
|
|
441
445
|
}
|
|
442
446
|
function v(_, d) {
|
|
443
447
|
const { currentType: y } = d;
|
|
444
448
|
if (y !== 8)
|
|
445
449
|
return !1;
|
|
446
450
|
E(_);
|
|
447
|
-
const
|
|
448
|
-
return _.resetPeek(),
|
|
451
|
+
const R = h(_.currentPeek());
|
|
452
|
+
return _.resetPeek(), R;
|
|
449
453
|
}
|
|
450
454
|
function x(_, d) {
|
|
451
455
|
const { currentType: y } = d;
|
|
452
456
|
if (!(y === 7 || y === 11))
|
|
453
457
|
return !1;
|
|
454
458
|
E(_);
|
|
455
|
-
const
|
|
456
|
-
return _.resetPeek(),
|
|
459
|
+
const R = _.currentPeek() === ":";
|
|
460
|
+
return _.resetPeek(), R;
|
|
457
461
|
}
|
|
458
462
|
function Y(_, d) {
|
|
459
463
|
const { currentType: y } = d;
|
|
460
464
|
if (y !== 9)
|
|
461
465
|
return !1;
|
|
462
|
-
const
|
|
466
|
+
const R = () => {
|
|
463
467
|
const Z = _.currentPeek();
|
|
464
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(),
|
|
465
|
-
}, z =
|
|
468
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), R()) : Se(_, !1);
|
|
469
|
+
}, z = R();
|
|
466
470
|
return _.resetPeek(), z;
|
|
467
471
|
}
|
|
468
472
|
function se(_) {
|
|
@@ -474,8 +478,8 @@ function To(e, t = {}) {
|
|
|
474
478
|
const y = (z = !1, Z = "") => {
|
|
475
479
|
const W = _.currentPeek();
|
|
476
480
|
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
477
|
-
},
|
|
478
|
-
return d && _.resetPeek(),
|
|
481
|
+
}, R = y();
|
|
482
|
+
return d && _.resetPeek(), R;
|
|
479
483
|
}
|
|
480
484
|
function oe(_, d) {
|
|
481
485
|
const y = _.currentChar();
|
|
@@ -565,8 +569,8 @@ function To(e, t = {}) {
|
|
|
565
569
|
let d = "", y = "";
|
|
566
570
|
for (; d = oe(_, dn); )
|
|
567
571
|
d === "\\" ? y += mn(_) : y += d;
|
|
568
|
-
const
|
|
569
|
-
return
|
|
572
|
+
const R = _.currentChar();
|
|
573
|
+
return R === ce || R === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), R === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
570
574
|
}
|
|
571
575
|
function mn(_) {
|
|
572
576
|
const d = _.currentChar();
|
|
@@ -575,25 +579,25 @@ function To(e, t = {}) {
|
|
|
575
579
|
case "'":
|
|
576
580
|
return _.next(), `\\${d}`;
|
|
577
581
|
case "u":
|
|
578
|
-
return
|
|
582
|
+
return Mt(_, d, 4);
|
|
579
583
|
case "U":
|
|
580
|
-
return
|
|
584
|
+
return Mt(_, d, 6);
|
|
581
585
|
default:
|
|
582
586
|
return u(M.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, d), "";
|
|
583
587
|
}
|
|
584
588
|
}
|
|
585
|
-
function
|
|
589
|
+
function Mt(_, d, y) {
|
|
586
590
|
A(_, d);
|
|
587
|
-
let
|
|
591
|
+
let R = "";
|
|
588
592
|
for (let z = 0; z < y; z++) {
|
|
589
593
|
const Z = Ie(_);
|
|
590
594
|
if (!Z) {
|
|
591
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
595
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${R}${_.currentChar()}`);
|
|
592
596
|
break;
|
|
593
597
|
}
|
|
594
|
-
|
|
598
|
+
R += Z;
|
|
595
599
|
}
|
|
596
|
-
return `\\${d}${
|
|
600
|
+
return `\\${d}${R}`;
|
|
597
601
|
}
|
|
598
602
|
function hn(_) {
|
|
599
603
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -613,8 +617,8 @@ function To(e, t = {}) {
|
|
|
613
617
|
}
|
|
614
618
|
function En(_) {
|
|
615
619
|
const d = (y) => {
|
|
616
|
-
const
|
|
617
|
-
return
|
|
620
|
+
const R = _.currentChar();
|
|
621
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Ce ? y : (y += R, _.next(), d(y));
|
|
618
622
|
};
|
|
619
623
|
return d("");
|
|
620
624
|
}
|
|
@@ -667,16 +671,16 @@ function To(e, t = {}) {
|
|
|
667
671
|
}
|
|
668
672
|
function $e(_, d) {
|
|
669
673
|
const { currentType: y } = d;
|
|
670
|
-
let
|
|
674
|
+
let R = null;
|
|
671
675
|
const z = _.currentChar();
|
|
672
676
|
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
673
677
|
case "@":
|
|
674
|
-
return _.next(),
|
|
678
|
+
return _.next(), R = m(
|
|
675
679
|
d,
|
|
676
680
|
7,
|
|
677
681
|
"@"
|
|
678
682
|
/* TokenChars.LinkedAlias */
|
|
679
|
-
), d.inLinked = !0,
|
|
683
|
+
), d.inLinked = !0, R;
|
|
680
684
|
case ".":
|
|
681
685
|
return C(_), _.next(), m(
|
|
682
686
|
d,
|
|
@@ -692,7 +696,7 @@ function To(e, t = {}) {
|
|
|
692
696
|
/* TokenChars.LinkedDelimiter */
|
|
693
697
|
);
|
|
694
698
|
default:
|
|
695
|
-
return se(_) ? (
|
|
699
|
+
return se(_) ? (R = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, R) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? mt(_, d) || R : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
696
700
|
}
|
|
697
701
|
}
|
|
698
702
|
function ht(_, d) {
|
|
@@ -727,8 +731,8 @@ function To(e, t = {}) {
|
|
|
727
731
|
return y;
|
|
728
732
|
}
|
|
729
733
|
function bn() {
|
|
730
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
731
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
734
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: R } = l;
|
|
735
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = R, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
732
736
|
l,
|
|
733
737
|
13
|
|
734
738
|
/* TokenTypes.EOF */
|
|
@@ -741,8 +745,8 @@ function To(e, t = {}) {
|
|
|
741
745
|
context: c
|
|
742
746
|
};
|
|
743
747
|
}
|
|
744
|
-
const
|
|
745
|
-
function
|
|
748
|
+
const Co = "parser", Lo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
749
|
+
function wo(e, t, n) {
|
|
746
750
|
switch (e) {
|
|
747
751
|
case "\\\\":
|
|
748
752
|
return "\\";
|
|
@@ -755,13 +759,13 @@ function Co(e, t, n) {
|
|
|
755
759
|
}
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function Do(e = {}) {
|
|
759
763
|
const t = e.location !== !1, { onError: n } = e;
|
|
760
764
|
function r(h, g, N, S, ...O) {
|
|
761
765
|
const L = h.currentPosition();
|
|
762
766
|
if (L.offset += S, L.column += S, n) {
|
|
763
767
|
const v = t ? Rn(N, L) : null, x = ft(g, v, {
|
|
764
|
-
domain:
|
|
768
|
+
domain: Co,
|
|
765
769
|
args: O
|
|
766
770
|
});
|
|
767
771
|
n(x);
|
|
@@ -788,7 +792,7 @@ function Lo(e = {}) {
|
|
|
788
792
|
}
|
|
789
793
|
function c(h, g) {
|
|
790
794
|
const N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(9, S, O);
|
|
791
|
-
return L.value = g.replace(
|
|
795
|
+
return L.value = g.replace(Lo, wo), h.nextToken(), s(L, h.currentOffset(), h.currentPosition()), L;
|
|
792
796
|
}
|
|
793
797
|
function f(h) {
|
|
794
798
|
const g = h.nextToken(), N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(8, S, O);
|
|
@@ -881,7 +885,7 @@ function Lo(e = {}) {
|
|
|
881
885
|
return g.currentType === 13 ? O : A(h, N, S, O);
|
|
882
886
|
}
|
|
883
887
|
function C(h) {
|
|
884
|
-
const g =
|
|
888
|
+
const g = Io(h, ie({}, e)), N = g.context(), S = a(0, N.offset, N.startLoc);
|
|
885
889
|
return t && S.loc && (S.loc.source = h), S.body = E(g), e.onCacheKey && (S.cacheKey = e.onCacheKey(h)), N.currentType !== 13 && r(g, M.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, h[N.offset] || ""), s(S, g.currentOffset(), g.currentPosition()), S;
|
|
886
890
|
}
|
|
887
891
|
return { parse: C };
|
|
@@ -892,7 +896,7 @@ function ye(e) {
|
|
|
892
896
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
893
897
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
894
898
|
}
|
|
895
|
-
function
|
|
899
|
+
function Ro(e, t = {}) {
|
|
896
900
|
const n = {
|
|
897
901
|
ast: e,
|
|
898
902
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -944,8 +948,8 @@ function nr(e, t) {
|
|
|
944
948
|
break;
|
|
945
949
|
}
|
|
946
950
|
}
|
|
947
|
-
function
|
|
948
|
-
const n =
|
|
951
|
+
function ko(e, t = {}) {
|
|
952
|
+
const n = Ro(e);
|
|
949
953
|
n.helper(
|
|
950
954
|
"normalize"
|
|
951
955
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -953,7 +957,7 @@ function Do(e, t = {}) {
|
|
|
953
957
|
const r = n.context();
|
|
954
958
|
e.helpers = Array.from(r.helpers);
|
|
955
959
|
}
|
|
956
|
-
function
|
|
960
|
+
function Po(e) {
|
|
957
961
|
const t = e.body;
|
|
958
962
|
return t.type === 2 ? Cr(t) : t.cases.forEach((n) => Cr(n)), e;
|
|
959
963
|
}
|
|
@@ -978,7 +982,7 @@ function Cr(e) {
|
|
|
978
982
|
}
|
|
979
983
|
}
|
|
980
984
|
}
|
|
981
|
-
const
|
|
985
|
+
const Fo = "minifier";
|
|
982
986
|
function st(e) {
|
|
983
987
|
switch (e.t = e.type, e.type) {
|
|
984
988
|
case 0: {
|
|
@@ -1026,14 +1030,14 @@ function st(e) {
|
|
|
1026
1030
|
default:
|
|
1027
1031
|
if (process.env.NODE_ENV !== "production")
|
|
1028
1032
|
throw ft(M.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1029
|
-
domain:
|
|
1033
|
+
domain: Fo,
|
|
1030
1034
|
args: [e.type]
|
|
1031
1035
|
});
|
|
1032
1036
|
}
|
|
1033
1037
|
delete e.type;
|
|
1034
1038
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1039
|
+
const Mo = "parser";
|
|
1040
|
+
function Uo(e, t) {
|
|
1037
1041
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
1038
1042
|
filename: n,
|
|
1039
1043
|
code: "",
|
|
@@ -1075,14 +1079,14 @@ function Fo(e, t) {
|
|
|
1075
1079
|
needIndent: () => o.needIndent
|
|
1076
1080
|
};
|
|
1077
1081
|
}
|
|
1078
|
-
function
|
|
1082
|
+
function Bo(e, t) {
|
|
1079
1083
|
const { helper: n } = e;
|
|
1080
1084
|
e.push(`${n(
|
|
1081
1085
|
"linked"
|
|
1082
1086
|
/* HelperNameMap.LINKED */
|
|
1083
1087
|
)}(`), ct(e, t.key), t.modifier ? (e.push(", "), ct(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1084
1088
|
}
|
|
1085
|
-
function
|
|
1089
|
+
function xo(e, t) {
|
|
1086
1090
|
const { helper: n, needIndent: r } = e;
|
|
1087
1091
|
e.push(`${n(
|
|
1088
1092
|
"normalize"
|
|
@@ -1093,7 +1097,7 @@ function Uo(e, t) {
|
|
|
1093
1097
|
e.push(", ");
|
|
1094
1098
|
e.deindent(r()), e.push("])");
|
|
1095
1099
|
}
|
|
1096
|
-
function
|
|
1100
|
+
function Vo(e, t) {
|
|
1097
1101
|
const { helper: n, needIndent: r } = e;
|
|
1098
1102
|
if (t.cases.length > 1) {
|
|
1099
1103
|
e.push(`${n(
|
|
@@ -1106,23 +1110,23 @@ function Bo(e, t) {
|
|
|
1106
1110
|
e.deindent(r()), e.push("])");
|
|
1107
1111
|
}
|
|
1108
1112
|
}
|
|
1109
|
-
function
|
|
1113
|
+
function Go(e, t) {
|
|
1110
1114
|
t.body ? ct(e, t.body) : e.push("null");
|
|
1111
1115
|
}
|
|
1112
1116
|
function ct(e, t) {
|
|
1113
1117
|
const { helper: n } = e;
|
|
1114
1118
|
switch (t.type) {
|
|
1115
1119
|
case 0:
|
|
1116
|
-
|
|
1120
|
+
Go(e, t);
|
|
1117
1121
|
break;
|
|
1118
1122
|
case 1:
|
|
1119
|
-
|
|
1123
|
+
Vo(e, t);
|
|
1120
1124
|
break;
|
|
1121
1125
|
case 2:
|
|
1122
|
-
|
|
1126
|
+
xo(e, t);
|
|
1123
1127
|
break;
|
|
1124
1128
|
case 6:
|
|
1125
|
-
|
|
1129
|
+
Bo(e, t);
|
|
1126
1130
|
break;
|
|
1127
1131
|
case 8:
|
|
1128
1132
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1157,16 +1161,16 @@ function ct(e, t) {
|
|
|
1157
1161
|
default:
|
|
1158
1162
|
if (process.env.NODE_ENV !== "production")
|
|
1159
1163
|
throw ft(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1160
|
-
domain:
|
|
1164
|
+
domain: Mo,
|
|
1161
1165
|
args: [t.type]
|
|
1162
1166
|
});
|
|
1163
1167
|
}
|
|
1164
1168
|
}
|
|
1165
|
-
const
|
|
1169
|
+
const $o = (e, t = {}) => {
|
|
1166
1170
|
const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
1167
1171
|
t.sourceMap;
|
|
1168
1172
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1169
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1173
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Uo(e, {
|
|
1170
1174
|
filename: r,
|
|
1171
1175
|
breakLineCode: a,
|
|
1172
1176
|
needIndent: s
|
|
@@ -1180,58 +1184,58 @@ const Vo = (e, t = {}) => {
|
|
|
1180
1184
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1181
1185
|
};
|
|
1182
1186
|
};
|
|
1183
|
-
function
|
|
1184
|
-
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1185
|
-
return r ? (s &&
|
|
1187
|
+
function Wo(e, t = {}) {
|
|
1188
|
+
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Do(n).parse(e);
|
|
1189
|
+
return r ? (s && Po(i), a && st(i), { ast: i, code: "" }) : (ko(i, n), $o(i, n));
|
|
1186
1190
|
}
|
|
1187
1191
|
/*!
|
|
1188
1192
|
* core-base v11.1.3
|
|
1189
1193
|
* (c) 2025 kazuya kawaguchi
|
|
1190
1194
|
* Released under the MIT License.
|
|
1191
1195
|
*/
|
|
1192
|
-
function
|
|
1196
|
+
function Yo() {
|
|
1193
1197
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1194
1198
|
}
|
|
1195
1199
|
function Ee(e) {
|
|
1196
1200
|
return G(e) && rr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
1197
1201
|
}
|
|
1198
|
-
const
|
|
1199
|
-
function Wo(e) {
|
|
1200
|
-
return xe(e, Oa);
|
|
1201
|
-
}
|
|
1202
|
-
const Ia = ["c", "cases"];
|
|
1203
|
-
function Yo(e) {
|
|
1204
|
-
return xe(e, Ia, []);
|
|
1205
|
-
}
|
|
1206
|
-
const Ca = ["s", "static"];
|
|
1202
|
+
const Ca = ["b", "body"];
|
|
1207
1203
|
function Ho(e) {
|
|
1208
1204
|
return xe(e, Ca);
|
|
1209
1205
|
}
|
|
1210
|
-
const La = ["
|
|
1206
|
+
const La = ["c", "cases"];
|
|
1211
1207
|
function Ko(e) {
|
|
1212
1208
|
return xe(e, La, []);
|
|
1213
1209
|
}
|
|
1214
|
-
const wa = ["
|
|
1215
|
-
function
|
|
1210
|
+
const wa = ["s", "static"];
|
|
1211
|
+
function jo(e) {
|
|
1216
1212
|
return xe(e, wa);
|
|
1217
1213
|
}
|
|
1218
|
-
const Da = ["
|
|
1214
|
+
const Da = ["i", "items"];
|
|
1215
|
+
function qo(e) {
|
|
1216
|
+
return xe(e, Da, []);
|
|
1217
|
+
}
|
|
1218
|
+
const Ra = ["t", "type"];
|
|
1219
|
+
function rr(e) {
|
|
1220
|
+
return xe(e, Ra);
|
|
1221
|
+
}
|
|
1222
|
+
const ka = ["v", "value"];
|
|
1219
1223
|
function xt(e, t) {
|
|
1220
|
-
const n = xe(e,
|
|
1224
|
+
const n = xe(e, ka);
|
|
1221
1225
|
if (n != null)
|
|
1222
1226
|
return n;
|
|
1223
|
-
throw
|
|
1227
|
+
throw It(t);
|
|
1224
1228
|
}
|
|
1225
|
-
const
|
|
1226
|
-
function
|
|
1227
|
-
return xe(e,
|
|
1229
|
+
const Pa = ["m", "modifier"];
|
|
1230
|
+
function Xo(e) {
|
|
1231
|
+
return xe(e, Pa);
|
|
1228
1232
|
}
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1231
|
-
const t = xe(e,
|
|
1233
|
+
const Fa = ["k", "key"];
|
|
1234
|
+
function Qo(e) {
|
|
1235
|
+
const t = xe(e, Fa);
|
|
1232
1236
|
if (t)
|
|
1233
1237
|
return t;
|
|
1234
|
-
throw
|
|
1238
|
+
throw It(
|
|
1235
1239
|
6
|
|
1236
1240
|
/* NodeTypes.Linked */
|
|
1237
1241
|
);
|
|
@@ -1244,31 +1248,31 @@ function xe(e, t, n) {
|
|
|
1244
1248
|
}
|
|
1245
1249
|
return n;
|
|
1246
1250
|
}
|
|
1247
|
-
const
|
|
1248
|
-
...Oa,
|
|
1249
|
-
...Ia,
|
|
1251
|
+
const Ma = [
|
|
1250
1252
|
...Ca,
|
|
1251
1253
|
...La,
|
|
1252
|
-
...
|
|
1253
|
-
...Ra,
|
|
1254
|
+
...wa,
|
|
1254
1255
|
...Da,
|
|
1255
|
-
...
|
|
1256
|
+
...Fa,
|
|
1257
|
+
...Pa,
|
|
1258
|
+
...ka,
|
|
1259
|
+
...Ra
|
|
1256
1260
|
];
|
|
1257
|
-
function
|
|
1261
|
+
function It(e) {
|
|
1258
1262
|
return new Error(`unhandled node type: ${e}`);
|
|
1259
1263
|
}
|
|
1260
1264
|
function Sn(e) {
|
|
1261
|
-
return (n) =>
|
|
1265
|
+
return (n) => Jo(n, e);
|
|
1262
1266
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1267
|
+
function Jo(e, t) {
|
|
1268
|
+
const n = Ho(t);
|
|
1265
1269
|
if (n == null)
|
|
1266
|
-
throw
|
|
1270
|
+
throw It(
|
|
1267
1271
|
0
|
|
1268
1272
|
/* NodeTypes.Resource */
|
|
1269
1273
|
);
|
|
1270
1274
|
if (rr(n) === 1) {
|
|
1271
|
-
const s =
|
|
1275
|
+
const s = Ko(n);
|
|
1272
1276
|
return e.plural(s.reduce((o, i) => [
|
|
1273
1277
|
...o,
|
|
1274
1278
|
Lr(e, i)
|
|
@@ -1277,11 +1281,11 @@ function Xo(e, t) {
|
|
|
1277
1281
|
return Lr(e, n);
|
|
1278
1282
|
}
|
|
1279
1283
|
function Lr(e, t) {
|
|
1280
|
-
const n =
|
|
1284
|
+
const n = jo(t);
|
|
1281
1285
|
if (n != null)
|
|
1282
1286
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1283
1287
|
{
|
|
1284
|
-
const r =
|
|
1288
|
+
const r = qo(t).reduce((a, s) => [...a, kn(e, s)], []);
|
|
1285
1289
|
return e.normalize(r);
|
|
1286
1290
|
}
|
|
1287
1291
|
}
|
|
@@ -1298,7 +1302,7 @@ function kn(e, t) {
|
|
|
1298
1302
|
return e.interpolate(e.named(r.k));
|
|
1299
1303
|
if (ve(r, "key") && r.key)
|
|
1300
1304
|
return e.interpolate(e.named(r.key));
|
|
1301
|
-
throw
|
|
1305
|
+
throw It(n);
|
|
1302
1306
|
}
|
|
1303
1307
|
case 5: {
|
|
1304
1308
|
const r = t;
|
|
@@ -1306,10 +1310,10 @@ function kn(e, t) {
|
|
|
1306
1310
|
return e.interpolate(e.list(r.i));
|
|
1307
1311
|
if (ve(r, "index") && ae(r.index))
|
|
1308
1312
|
return e.interpolate(e.list(r.index));
|
|
1309
|
-
throw
|
|
1313
|
+
throw It(n);
|
|
1310
1314
|
}
|
|
1311
1315
|
case 6: {
|
|
1312
|
-
const r = t, a =
|
|
1316
|
+
const r = t, a = Xo(r), s = Qo(r);
|
|
1313
1317
|
return e.linked(kn(e, s), a ? kn(e, a) : void 0, e.type);
|
|
1314
1318
|
}
|
|
1315
1319
|
case 7:
|
|
@@ -1320,28 +1324,28 @@ function kn(e, t) {
|
|
|
1320
1324
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1321
1325
|
}
|
|
1322
1326
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
t &&
|
|
1327
|
+
const zo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1328
|
+
function Zo(e, t) {
|
|
1329
|
+
t && So(e) && (Xt(zo, { source: e }), void 0);
|
|
1326
1330
|
}
|
|
1327
|
-
const
|
|
1331
|
+
const ei = (e) => e;
|
|
1328
1332
|
let Vt = K();
|
|
1329
|
-
function
|
|
1333
|
+
function ti(e, t = {}) {
|
|
1330
1334
|
let n = !1;
|
|
1331
|
-
const r = t.onError ||
|
|
1335
|
+
const r = t.onError || Eo;
|
|
1332
1336
|
return t.onError = (a) => {
|
|
1333
1337
|
n = !0, r(a);
|
|
1334
|
-
}, { ...
|
|
1338
|
+
}, { ...Wo(e, t), detectError: n };
|
|
1335
1339
|
}
|
|
1336
1340
|
// @__NO_SIDE_EFFECTS__
|
|
1337
|
-
function
|
|
1341
|
+
function ni(e, t) {
|
|
1338
1342
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1339
1343
|
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1340
|
-
process.env.NODE_ENV !== "production" &&
|
|
1341
|
-
const a = (t.onCacheKey ||
|
|
1344
|
+
process.env.NODE_ENV !== "production" && Zo(e, n);
|
|
1345
|
+
const a = (t.onCacheKey || ei)(e), s = Vt[a];
|
|
1342
1346
|
if (s)
|
|
1343
1347
|
return s;
|
|
1344
|
-
const { ast: o, detectError: i } =
|
|
1348
|
+
const { ast: o, detectError: i } = ti(e, {
|
|
1345
1349
|
...t,
|
|
1346
1350
|
location: process.env.NODE_ENV !== "production",
|
|
1347
1351
|
jit: !0
|
|
@@ -1358,24 +1362,24 @@ function ei(e, t) {
|
|
|
1358
1362
|
return Sn(e);
|
|
1359
1363
|
}
|
|
1360
1364
|
}
|
|
1361
|
-
let
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1365
|
+
let Ct = null;
|
|
1366
|
+
function ri(e) {
|
|
1367
|
+
Ct = e;
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1366
|
-
|
|
1369
|
+
function ai(e, t, n) {
|
|
1370
|
+
Ct && Ct.emit("i18n:init", {
|
|
1367
1371
|
timestamp: Date.now(),
|
|
1368
1372
|
i18n: e,
|
|
1369
1373
|
version: t,
|
|
1370
1374
|
meta: n
|
|
1371
1375
|
});
|
|
1372
1376
|
}
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1375
|
-
return (t) =>
|
|
1377
|
+
const si = /* @__PURE__ */ oi("function:translate");
|
|
1378
|
+
function oi(e) {
|
|
1379
|
+
return (t) => Ct && Ct.emit(e, t);
|
|
1376
1380
|
}
|
|
1377
1381
|
const le = {
|
|
1378
|
-
INVALID_ARGUMENT:
|
|
1382
|
+
INVALID_ARGUMENT: go,
|
|
1379
1383
|
// 17
|
|
1380
1384
|
INVALID_DATE_ARGUMENT: 18,
|
|
1381
1385
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1383,11 +1387,11 @@ const le = {
|
|
|
1383
1387
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1384
1388
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1385
1389
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1386
|
-
},
|
|
1390
|
+
}, ii = 24;
|
|
1387
1391
|
function we(e) {
|
|
1388
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1392
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: li } : void 0);
|
|
1389
1393
|
}
|
|
1390
|
-
const
|
|
1394
|
+
const li = {
|
|
1391
1395
|
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1392
1396
|
[le.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1393
1397
|
[le.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1408,7 +1412,7 @@ function wr(e) {
|
|
|
1408
1412
|
return vn;
|
|
1409
1413
|
if (e.constructor.name === "Function") {
|
|
1410
1414
|
const t = e();
|
|
1411
|
-
if (
|
|
1415
|
+
if (uo(t))
|
|
1412
1416
|
throw we(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1413
1417
|
return vn = t;
|
|
1414
1418
|
} else
|
|
@@ -1416,14 +1420,14 @@ function wr(e) {
|
|
|
1416
1420
|
} else
|
|
1417
1421
|
throw we(le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1418
1422
|
}
|
|
1419
|
-
function
|
|
1423
|
+
function ci(e, t, n) {
|
|
1420
1424
|
return [.../* @__PURE__ */ new Set([
|
|
1421
1425
|
n,
|
|
1422
1426
|
...re(t) ? t : G(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
1423
1427
|
])];
|
|
1424
1428
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const r = I(n) ? n :
|
|
1429
|
+
function Ua(e, t, n) {
|
|
1430
|
+
const r = I(n) ? n : Lt, a = e;
|
|
1427
1431
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1428
1432
|
let s = a.__localeChainCache.get(r);
|
|
1429
1433
|
if (!s) {
|
|
@@ -1440,20 +1444,20 @@ function Dr(e, t, n) {
|
|
|
1440
1444
|
let r = !0;
|
|
1441
1445
|
for (let a = 0; a < t.length && $(r); a++) {
|
|
1442
1446
|
const s = t[a];
|
|
1443
|
-
I(s) && (r =
|
|
1447
|
+
I(s) && (r = ui(e, t[a], n));
|
|
1444
1448
|
}
|
|
1445
1449
|
return r;
|
|
1446
1450
|
}
|
|
1447
|
-
function
|
|
1451
|
+
function ui(e, t, n) {
|
|
1448
1452
|
let r;
|
|
1449
1453
|
const a = t.split("-");
|
|
1450
1454
|
do {
|
|
1451
1455
|
const s = a.join("-");
|
|
1452
|
-
r =
|
|
1456
|
+
r = fi(e, s, n), a.splice(-1, 1);
|
|
1453
1457
|
} while (a.length && r === !0);
|
|
1454
1458
|
return r;
|
|
1455
1459
|
}
|
|
1456
|
-
function
|
|
1460
|
+
function fi(e, t, n) {
|
|
1457
1461
|
let r = !1;
|
|
1458
1462
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1459
1463
|
r = t[t.length - 1] !== "!";
|
|
@@ -1623,15 +1627,15 @@ Ve[
|
|
|
1623
1627
|
/* Actions.APPEND */
|
|
1624
1628
|
]
|
|
1625
1629
|
};
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1630
|
+
const _i = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1631
|
+
function di(e) {
|
|
1632
|
+
return _i.test(e);
|
|
1629
1633
|
}
|
|
1630
|
-
function
|
|
1634
|
+
function mi(e) {
|
|
1631
1635
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1632
1636
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1633
1637
|
}
|
|
1634
|
-
function
|
|
1638
|
+
function hi(e) {
|
|
1635
1639
|
if (e == null)
|
|
1636
1640
|
return "o";
|
|
1637
1641
|
switch (e.charCodeAt(0)) {
|
|
@@ -1668,11 +1672,11 @@ function di(e) {
|
|
|
1668
1672
|
}
|
|
1669
1673
|
return "i";
|
|
1670
1674
|
}
|
|
1671
|
-
function
|
|
1675
|
+
function gi(e) {
|
|
1672
1676
|
const t = e.trim();
|
|
1673
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1677
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : di(t) ? mi(t) : "*" + t;
|
|
1674
1678
|
}
|
|
1675
|
-
function
|
|
1679
|
+
function pi(e) {
|
|
1676
1680
|
const t = [];
|
|
1677
1681
|
let n = -1, r = 0, a = 0, s, o, i, l, c, f, u;
|
|
1678
1682
|
const m = [];
|
|
@@ -1704,7 +1708,7 @@ function hi(e) {
|
|
|
1704
1708
|
/* Actions.APPEND */
|
|
1705
1709
|
]();
|
|
1706
1710
|
else {
|
|
1707
|
-
if (a = 0, o === void 0 || (o =
|
|
1711
|
+
if (a = 0, o === void 0 || (o = gi(o), o === !1))
|
|
1708
1712
|
return !1;
|
|
1709
1713
|
m[
|
|
1710
1714
|
1
|
|
@@ -1722,27 +1726,27 @@ function hi(e) {
|
|
|
1722
1726
|
}
|
|
1723
1727
|
for (; r !== null; )
|
|
1724
1728
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1725
|
-
if (l =
|
|
1729
|
+
if (l = hi(s), u = Ve[r], c = u[l] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = m[c[1]], f && (i = s, f() === !1))))
|
|
1726
1730
|
return;
|
|
1727
1731
|
if (r === 7)
|
|
1728
1732
|
return t;
|
|
1729
1733
|
}
|
|
1730
1734
|
}
|
|
1731
1735
|
const Rr = /* @__PURE__ */ new Map();
|
|
1732
|
-
function
|
|
1736
|
+
function Ei(e, t) {
|
|
1733
1737
|
return G(e) ? e[t] : null;
|
|
1734
1738
|
}
|
|
1735
|
-
function
|
|
1739
|
+
function bi(e, t) {
|
|
1736
1740
|
if (!G(e))
|
|
1737
1741
|
return null;
|
|
1738
1742
|
let n = Rr.get(t);
|
|
1739
|
-
if (n || (n =
|
|
1743
|
+
if (n || (n = pi(t), n && Rr.set(t, n)), !n)
|
|
1740
1744
|
return null;
|
|
1741
1745
|
const r = n.length;
|
|
1742
1746
|
let a = e, s = 0;
|
|
1743
1747
|
for (; s < r; ) {
|
|
1744
1748
|
const o = n[s];
|
|
1745
|
-
if (
|
|
1749
|
+
if (Ma.includes(o) && Ee(a))
|
|
1746
1750
|
return null;
|
|
1747
1751
|
const i = a[o];
|
|
1748
1752
|
if (i === void 0 || q(a))
|
|
@@ -1759,7 +1763,7 @@ const _e = {
|
|
|
1759
1763
|
CANNOT_FORMAT_DATE: 5,
|
|
1760
1764
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1761
1765
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1762
|
-
},
|
|
1766
|
+
}, Si = 8, vi = {
|
|
1763
1767
|
[_e.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1764
1768
|
[_e.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1765
1769
|
[_e.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1769,41 +1773,41 @@ const _e = {
|
|
|
1769
1773
|
[_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1770
1774
|
};
|
|
1771
1775
|
function Je(e, ...t) {
|
|
1772
|
-
return Xt(
|
|
1776
|
+
return Xt(vi[e], ...t);
|
|
1773
1777
|
}
|
|
1774
|
-
const
|
|
1775
|
-
function
|
|
1778
|
+
const Ai = "11.1.3", Jt = -1, Lt = "en-US", Ht = "", kr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1779
|
+
function yi() {
|
|
1776
1780
|
return {
|
|
1777
1781
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1778
1782
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1779
1783
|
capitalize: (e, t) => t === "text" && I(e) ? kr(e) : t === "vnode" && G(e) && "__v_isVNode" in e ? kr(e.children) : e
|
|
1780
1784
|
};
|
|
1781
1785
|
}
|
|
1782
|
-
let Ma;
|
|
1783
|
-
function Ai(e) {
|
|
1784
|
-
Ma = e;
|
|
1785
|
-
}
|
|
1786
|
-
let Ua;
|
|
1787
|
-
function yi(e) {
|
|
1788
|
-
Ua = e;
|
|
1789
|
-
}
|
|
1790
1786
|
let Ba;
|
|
1791
1787
|
function Ni(e) {
|
|
1792
1788
|
Ba = e;
|
|
1793
1789
|
}
|
|
1794
|
-
let xa
|
|
1795
|
-
|
|
1790
|
+
let xa;
|
|
1791
|
+
function Ti(e) {
|
|
1796
1792
|
xa = e;
|
|
1797
|
-
}
|
|
1798
|
-
let Va
|
|
1799
|
-
|
|
1793
|
+
}
|
|
1794
|
+
let Va;
|
|
1795
|
+
function Oi(e) {
|
|
1800
1796
|
Va = e;
|
|
1801
|
-
}
|
|
1797
|
+
}
|
|
1798
|
+
let Ga = null;
|
|
1799
|
+
const Ii = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1800
|
+
Ga = e;
|
|
1801
|
+
}, Ci = /* @__NO_SIDE_EFFECTS__ */ () => Ga;
|
|
1802
|
+
let $a = null;
|
|
1803
|
+
const Pr = (e) => {
|
|
1804
|
+
$a = e;
|
|
1805
|
+
}, Li = () => $a;
|
|
1802
1806
|
let Fr = 0;
|
|
1803
|
-
function
|
|
1804
|
-
const t = q(e.onWarn) ? e.onWarn :
|
|
1807
|
+
function wi(e = {}) {
|
|
1808
|
+
const t = q(e.onWarn) ? e.onWarn : mo, n = I(e.version) ? e.version : Ai, r = I(e.locale) || q(e.locale) ? e.locale : Lt, a = q(r) ? Lt : r, s = re(e.fallbackLocale) || V(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : An(a), i = V(e.datetimeFormats) ? e.datetimeFormats : An(a), l = V(e.numberFormats) ? e.numberFormats : An(a), c = ie(K(), e.modifiers, yi()), f = e.pluralRules || K(), u = q(e.missing) ? e.missing : null, m = $(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, p = $(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, E = !!e.unresolving, C = q(e.postTranslation) ? e.postTranslation : null, h = V(e.processor) ? e.processor : null, g = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, S = q(e.messageCompiler) ? e.messageCompiler : Ba;
|
|
1805
1809
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1806
|
-
const O = q(e.messageResolver) ? e.messageResolver :
|
|
1810
|
+
const O = q(e.messageResolver) ? e.messageResolver : xa || Ei, L = q(e.localeFallbacker) ? e.localeFallbacker : Va || ci, v = G(e.fallbackContext) ? e.fallbackContext : void 0, x = e, Y = G(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), se = G(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), Se = G(x.__meta) ? x.__meta : {};
|
|
1807
1811
|
Fr++;
|
|
1808
1812
|
const oe = {
|
|
1809
1813
|
version: n,
|
|
@@ -1829,13 +1833,13 @@ function Ci(e = {}) {
|
|
|
1829
1833
|
onWarn: t,
|
|
1830
1834
|
__meta: Se
|
|
1831
1835
|
};
|
|
1832
|
-
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1836
|
+
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ai(oe, n, Se), oe;
|
|
1833
1837
|
}
|
|
1834
1838
|
const An = (e) => ({ [e]: K() });
|
|
1835
1839
|
function zt(e, t) {
|
|
1836
1840
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1837
1841
|
}
|
|
1838
|
-
function
|
|
1842
|
+
function Wa(e, t) {
|
|
1839
1843
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1840
1844
|
}
|
|
1841
1845
|
function sr(e, t, n, r, a) {
|
|
@@ -1853,31 +1857,31 @@ function sr(e, t, n, r, a) {
|
|
|
1853
1857
|
const i = s(e, n, t, a);
|
|
1854
1858
|
return I(i) ? i : t;
|
|
1855
1859
|
} else
|
|
1856
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1860
|
+
return process.env.NODE_ENV !== "production" && Wa(r, t) && o(Je(_e.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1857
1861
|
}
|
|
1858
|
-
function
|
|
1862
|
+
function Et(e, t, n) {
|
|
1859
1863
|
const r = e;
|
|
1860
1864
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1861
1865
|
}
|
|
1862
|
-
function
|
|
1866
|
+
function Ya(e, t) {
|
|
1863
1867
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1864
1868
|
}
|
|
1865
|
-
function
|
|
1869
|
+
function Di(e, t) {
|
|
1866
1870
|
const n = t.indexOf(e);
|
|
1867
1871
|
if (n === -1)
|
|
1868
1872
|
return !1;
|
|
1869
1873
|
for (let r = n + 1; r < t.length; r++)
|
|
1870
|
-
if (
|
|
1874
|
+
if (Ya(e, t[r]))
|
|
1871
1875
|
return !0;
|
|
1872
1876
|
return !1;
|
|
1873
1877
|
}
|
|
1874
|
-
const Mr = typeof Intl < "u",
|
|
1878
|
+
const Mr = typeof Intl < "u", Ha = {
|
|
1875
1879
|
dateTimeFormat: Mr && typeof Intl.DateTimeFormat < "u",
|
|
1876
1880
|
numberFormat: Mr && typeof Intl.NumberFormat < "u"
|
|
1877
1881
|
};
|
|
1878
1882
|
function Ur(e, ...t) {
|
|
1879
1883
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1880
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1884
|
+
if (process.env.NODE_ENV !== "production" && !Ha.dateTimeFormat)
|
|
1881
1885
|
return s(Je(_e.CANNOT_FORMAT_DATE)), Ht;
|
|
1882
1886
|
const [l, c, f, u] = Pn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
1883
1887
|
e,
|
|
@@ -1914,7 +1918,7 @@ function Ur(e, ...t) {
|
|
|
1914
1918
|
let x = i.get(v);
|
|
1915
1919
|
return x || (x = new Intl.DateTimeFormat(g, ie({}, N, u)), i.set(v, x)), A ? x.formatToParts(c) : x.format(c);
|
|
1916
1920
|
}
|
|
1917
|
-
const
|
|
1921
|
+
const Ka = [
|
|
1918
1922
|
"localeMatcher",
|
|
1919
1923
|
"weekday",
|
|
1920
1924
|
"era",
|
|
@@ -1950,7 +1954,7 @@ function Pn(...e) {
|
|
|
1950
1954
|
} catch {
|
|
1951
1955
|
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1952
1956
|
}
|
|
1953
|
-
} else if (
|
|
1957
|
+
} else if (io(t)) {
|
|
1954
1958
|
if (isNaN(t.getTime()))
|
|
1955
1959
|
throw we(le.INVALID_DATE_ARGUMENT);
|
|
1956
1960
|
i = t;
|
|
@@ -1959,7 +1963,7 @@ function Pn(...e) {
|
|
|
1959
1963
|
else
|
|
1960
1964
|
throw we(le.INVALID_ARGUMENT);
|
|
1961
1965
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
1962
|
-
|
|
1966
|
+
Ka.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
1963
1967
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
1964
1968
|
}
|
|
1965
1969
|
function Br(e, t, n) {
|
|
@@ -1971,7 +1975,7 @@ function Br(e, t, n) {
|
|
|
1971
1975
|
}
|
|
1972
1976
|
function xr(e, ...t) {
|
|
1973
1977
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
1974
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1978
|
+
if (process.env.NODE_ENV !== "production" && !Ha.numberFormat)
|
|
1975
1979
|
return s(Je(_e.CANNOT_FORMAT_NUMBER)), Ht;
|
|
1976
1980
|
const [l, c, f, u] = Fn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
1977
1981
|
e,
|
|
@@ -2008,7 +2012,7 @@ function xr(e, ...t) {
|
|
|
2008
2012
|
let x = i.get(v);
|
|
2009
2013
|
return x || (x = new Intl.NumberFormat(g, ie({}, N, u)), i.set(v, x)), A ? x.formatToParts(c) : x.format(c);
|
|
2010
2014
|
}
|
|
2011
|
-
const
|
|
2015
|
+
const ja = [
|
|
2012
2016
|
"localeMatcher",
|
|
2013
2017
|
"style",
|
|
2014
2018
|
"currency",
|
|
@@ -2037,7 +2041,7 @@ function Fn(...e) {
|
|
|
2037
2041
|
throw we(le.INVALID_ARGUMENT);
|
|
2038
2042
|
const i = t;
|
|
2039
2043
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2040
|
-
|
|
2044
|
+
ja.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
2041
2045
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
2042
2046
|
}
|
|
2043
2047
|
function Vr(e, t, n) {
|
|
@@ -2047,26 +2051,26 @@ function Vr(e, t, n) {
|
|
|
2047
2051
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
2048
2052
|
}
|
|
2049
2053
|
}
|
|
2050
|
-
const
|
|
2054
|
+
const Ri = (e) => e, ki = (e) => "", Pi = "text", Fi = (e) => e.length === 0 ? "" : Zn(e), Mi = fo;
|
|
2051
2055
|
function Gr(e, t) {
|
|
2052
2056
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2053
2057
|
}
|
|
2054
|
-
function
|
|
2058
|
+
function Ui(e) {
|
|
2055
2059
|
const t = ae(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2056
2060
|
return e.named && (ae(e.named.count) || ae(e.named.n)) ? ae(e.named.count) ? e.named.count : ae(e.named.n) ? e.named.n : t : t;
|
|
2057
2061
|
}
|
|
2058
|
-
function
|
|
2062
|
+
function Bi(e, t) {
|
|
2059
2063
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2060
2064
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const t = e.locale, n =
|
|
2063
|
-
ae(e.pluralIndex) &&
|
|
2065
|
+
function xi(e = {}) {
|
|
2066
|
+
const t = e.locale, n = Ui(e), r = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? e.pluralRules[t] : Gr, a = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? Gr : void 0, s = (h) => h[r(n, h.length, a)], o = e.list || [], i = (h) => o[h], l = e.named || K();
|
|
2067
|
+
ae(e.pluralIndex) && Bi(n, l);
|
|
2064
2068
|
const c = (h) => l[h];
|
|
2065
2069
|
function f(h, g) {
|
|
2066
2070
|
const N = q(e.messages) ? e.messages(h, !!g) : G(e.messages) ? e.messages[h] : !1;
|
|
2067
|
-
return N || (e.parent ? e.parent.message(h) :
|
|
2071
|
+
return N || (e.parent ? e.parent.message(h) : ki);
|
|
2068
2072
|
}
|
|
2069
|
-
const u = (h) => e.modifiers ? e.modifiers[h] :
|
|
2073
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : Ri, m = V(e.processor) && q(e.processor.normalize) ? e.processor.normalize : Fi, p = V(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Mi, A = V(e.processor) && I(e.processor.type) ? e.processor.type : Pi, C = {
|
|
2070
2074
|
list: i,
|
|
2071
2075
|
named: c,
|
|
2072
2076
|
plural: s,
|
|
@@ -2091,12 +2095,12 @@ function Ui(e = {}) {
|
|
|
2091
2095
|
const $r = () => "", pe = (e) => q(e);
|
|
2092
2096
|
function Wr(e, ...t) {
|
|
2093
2097
|
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [l, c] = Mn(...t), f = $(c.missingWarn) ? c.missingWarn : e.missingWarn, u = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, A = I(c.default) || $(c.default) ? $(c.default) ? s ? l : () => l : c.default : n ? s ? l : () => l : null, E = n || A != null && (I(A) || q(A)), C = ar(e, c);
|
|
2094
|
-
m &&
|
|
2098
|
+
m && Vi(c);
|
|
2095
2099
|
let [h, g, N] = p ? [
|
|
2096
2100
|
l,
|
|
2097
2101
|
C,
|
|
2098
2102
|
i[C] || K()
|
|
2099
|
-
] :
|
|
2103
|
+
] : qa(e, l, C, o, u, f), S = h, O = l;
|
|
2100
2104
|
if (!p && !(I(S) || Ee(S) || pe(S)) && E && (S = A, O = S), !p && (!(I(S) || Ee(S) || pe(S)) || !I(g)))
|
|
2101
2105
|
return a ? Jt : l;
|
|
2102
2106
|
if (process.env.NODE_ENV !== "production" && I(S) && e.messageCompiler == null)
|
|
@@ -2104,10 +2108,10 @@ function Wr(e, ...t) {
|
|
|
2104
2108
|
let L = !1;
|
|
2105
2109
|
const v = () => {
|
|
2106
2110
|
L = !0;
|
|
2107
|
-
}, x = pe(S) ? S :
|
|
2111
|
+
}, x = pe(S) ? S : Xa(e, l, g, S, O, v);
|
|
2108
2112
|
if (L)
|
|
2109
2113
|
return S;
|
|
2110
|
-
const Y =
|
|
2114
|
+
const Y = Yi(e, g, N, c), se = xi(Y), Se = Gi(e, x, se), oe = r ? r(Se, l) : Se;
|
|
2111
2115
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2112
2116
|
const Ze = {
|
|
2113
2117
|
timestamp: Date.now(),
|
|
@@ -2116,21 +2120,21 @@ function Wr(e, ...t) {
|
|
|
2116
2120
|
format: I(S) ? S : pe(S) ? S.source : "",
|
|
2117
2121
|
message: oe
|
|
2118
2122
|
};
|
|
2119
|
-
Ze.meta = ie({}, e.__meta, /* @__PURE__ */
|
|
2123
|
+
Ze.meta = ie({}, e.__meta, /* @__PURE__ */ Ci() || {}), si(Ze);
|
|
2120
2124
|
}
|
|
2121
2125
|
return oe;
|
|
2122
2126
|
}
|
|
2123
|
-
function
|
|
2127
|
+
function Vi(e) {
|
|
2124
2128
|
re(e.list) ? e.list = e.list.map((t) => I(t) ? yr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2125
2129
|
I(e.named[t]) && (e.named[t] = yr(e.named[t]));
|
|
2126
2130
|
});
|
|
2127
2131
|
}
|
|
2128
|
-
function
|
|
2132
|
+
function qa(e, t, n, r, a, s) {
|
|
2129
2133
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, f = c(e, r, n);
|
|
2130
2134
|
let u = K(), m, p = null, A = n, E = null;
|
|
2131
2135
|
const C = "translate";
|
|
2132
2136
|
for (let h = 0; h < f.length; h++) {
|
|
2133
|
-
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m &&
|
|
2137
|
+
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m && !Ya(n, m) && zt(a, t) && i(Je(_e.FALLBACK_TO_TRANSLATE, {
|
|
2134
2138
|
key: t,
|
|
2135
2139
|
target: m
|
|
2136
2140
|
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
@@ -2157,7 +2161,7 @@ function Ka(e, t, n, r, a, s) {
|
|
|
2157
2161
|
}
|
|
2158
2162
|
if (I(p) || Ee(p) || pe(p))
|
|
2159
2163
|
break;
|
|
2160
|
-
if (!
|
|
2164
|
+
if (!Di(m, f)) {
|
|
2161
2165
|
const O = sr(
|
|
2162
2166
|
e,
|
|
2163
2167
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2172,7 +2176,7 @@ function Ka(e, t, n, r, a, s) {
|
|
|
2172
2176
|
}
|
|
2173
2177
|
return [p, m, u];
|
|
2174
2178
|
}
|
|
2175
|
-
function
|
|
2179
|
+
function Xa(e, t, n, r, a, s) {
|
|
2176
2180
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2177
2181
|
if (pe(r)) {
|
|
2178
2182
|
const m = r;
|
|
@@ -2184,7 +2188,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2184
2188
|
}
|
|
2185
2189
|
let l = null, c, f;
|
|
2186
2190
|
process.env.NODE_ENV !== "production" && Ae && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ge && ge(c));
|
|
2187
|
-
const u = o(r,
|
|
2191
|
+
const u = o(r, $i(e, n, a, r, i, s));
|
|
2188
2192
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
2189
2193
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
2190
2194
|
p && l && p.emit("message-compilation", {
|
|
@@ -2196,7 +2200,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2196
2200
|
}
|
|
2197
2201
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
2198
2202
|
}
|
|
2199
|
-
function
|
|
2203
|
+
function Gi(e, t, n) {
|
|
2200
2204
|
let r = null, a, s;
|
|
2201
2205
|
process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
2202
2206
|
const o = t(n);
|
|
@@ -2218,14 +2222,14 @@ function Mn(...e) {
|
|
|
2218
2222
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
2219
2223
|
return ae(n) ? a.plural = n : I(n) ? a.default = n : V(n) && !Qt(n) ? a.named = n : re(n) && (a.list = n), ae(r) ? a.plural = r : I(r) ? a.default = r : V(r) && ie(a, r), [s, a];
|
|
2220
2224
|
}
|
|
2221
|
-
function
|
|
2225
|
+
function $i(e, t, n, r, a, s) {
|
|
2222
2226
|
return {
|
|
2223
2227
|
locale: t,
|
|
2224
2228
|
key: n,
|
|
2225
2229
|
warnHtmlMessage: a,
|
|
2226
2230
|
onError: (o) => {
|
|
2227
2231
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2228
|
-
const i =
|
|
2232
|
+
const i = Wi(r), l = `Message compilation error: ${o.message}`, c = o.location && i && _o(i, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2229
2233
|
f && i && f.emit("compile-error", {
|
|
2230
2234
|
message: i,
|
|
2231
2235
|
error: o.message,
|
|
@@ -2236,16 +2240,16 @@ function Vi(e, t, n, r, a, s) {
|
|
|
2236
2240
|
} else
|
|
2237
2241
|
throw o;
|
|
2238
2242
|
},
|
|
2239
|
-
onCacheKey: (o) =>
|
|
2243
|
+
onCacheKey: (o) => so(t, n, o)
|
|
2240
2244
|
};
|
|
2241
2245
|
}
|
|
2242
|
-
function
|
|
2246
|
+
function Wi(e) {
|
|
2243
2247
|
if (I(e))
|
|
2244
2248
|
return e;
|
|
2245
2249
|
if (e.loc && e.loc.source)
|
|
2246
2250
|
return e.loc.source;
|
|
2247
2251
|
}
|
|
2248
|
-
function
|
|
2252
|
+
function Yi(e, t, n, r) {
|
|
2249
2253
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: l, missingWarn: c, fallbackContext: f } = e, m = {
|
|
2250
2254
|
locale: t,
|
|
2251
2255
|
modifiers: a,
|
|
@@ -2253,7 +2257,7 @@ function $i(e, t, n, r) {
|
|
|
2253
2257
|
messages: (p, A) => {
|
|
2254
2258
|
let E = o(n, p);
|
|
2255
2259
|
if (E == null && (f || A)) {
|
|
2256
|
-
const [, , C] =
|
|
2260
|
+
const [, , C] = qa(
|
|
2257
2261
|
f || e,
|
|
2258
2262
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2259
2263
|
p,
|
|
@@ -2266,7 +2270,7 @@ function $i(e, t, n, r) {
|
|
|
2266
2270
|
}
|
|
2267
2271
|
if (I(E) || Ee(E)) {
|
|
2268
2272
|
let C = !1;
|
|
2269
|
-
const g =
|
|
2273
|
+
const g = Xa(e, p, t, E, p, () => {
|
|
2270
2274
|
C = !0;
|
|
2271
2275
|
});
|
|
2272
2276
|
return C ? $r : g;
|
|
@@ -2275,23 +2279,23 @@ function $i(e, t, n, r) {
|
|
|
2275
2279
|
};
|
|
2276
2280
|
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), ae(r.plural) && (m.pluralIndex = r.plural), m;
|
|
2277
2281
|
}
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2280
|
-
return
|
|
2282
|
+
Yo();
|
|
2283
|
+
function Hi() {
|
|
2284
|
+
return Qa().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2281
2285
|
}
|
|
2282
|
-
function
|
|
2286
|
+
function Qa() {
|
|
2283
2287
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2284
2288
|
}
|
|
2285
|
-
const
|
|
2289
|
+
const Ki = typeof Proxy == "function", ji = "devtools-plugin:setup", qi = "plugin:settings:set";
|
|
2286
2290
|
let tt, Un;
|
|
2287
|
-
function
|
|
2291
|
+
function Xi() {
|
|
2288
2292
|
var e;
|
|
2289
2293
|
return tt !== void 0 || (typeof window < "u" && window.performance ? (tt = !0, Un = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (tt = !0, Un = globalThis.perf_hooks.performance) : tt = !1), tt;
|
|
2290
2294
|
}
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2295
|
+
function Qi() {
|
|
2296
|
+
return Xi() ? Un.now() : Date.now();
|
|
2293
2297
|
}
|
|
2294
|
-
class
|
|
2298
|
+
class Ji {
|
|
2295
2299
|
constructor(t, n) {
|
|
2296
2300
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2297
2301
|
const r = {};
|
|
@@ -2319,9 +2323,9 @@ class Xi {
|
|
|
2319
2323
|
s = o;
|
|
2320
2324
|
},
|
|
2321
2325
|
now() {
|
|
2322
|
-
return
|
|
2326
|
+
return Qi();
|
|
2323
2327
|
}
|
|
2324
|
-
}, n && n.on(
|
|
2328
|
+
}, n && n.on(qi, (o, i) => {
|
|
2325
2329
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2326
2330
|
}), this.proxiedOn = new Proxy({}, {
|
|
2327
2331
|
get: (o, i) => this.target ? this.target.on[i] : (...l) => {
|
|
@@ -2353,12 +2357,12 @@ class Xi {
|
|
|
2353
2357
|
n.resolve(await this.target[n.method](...n.args));
|
|
2354
2358
|
}
|
|
2355
2359
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const n = e, r =
|
|
2360
|
+
function zi(e, t) {
|
|
2361
|
+
const n = e, r = Qa(), a = Hi(), s = Ki && n.enableEarlyProxy;
|
|
2358
2362
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2359
|
-
a.emit(
|
|
2363
|
+
a.emit(ji, e, t);
|
|
2360
2364
|
else {
|
|
2361
|
-
const o = s ? new
|
|
2365
|
+
const o = s ? new Ji(n, a) : null;
|
|
2362
2366
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2363
2367
|
pluginDescriptor: n,
|
|
2364
2368
|
setupFn: t,
|
|
@@ -2371,13 +2375,13 @@ function Qi(e, t) {
|
|
|
2371
2375
|
* (c) 2025 kazuya kawaguchi
|
|
2372
2376
|
* Released under the MIT License.
|
|
2373
2377
|
*/
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2378
|
+
const Zi = "11.1.3";
|
|
2379
|
+
function el() {
|
|
2376
2380
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2377
2381
|
}
|
|
2378
2382
|
const X = {
|
|
2379
2383
|
// composer module errors
|
|
2380
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2384
|
+
UNEXPECTED_RETURN_TYPE: ii,
|
|
2381
2385
|
// 24
|
|
2382
2386
|
// legacy module errors
|
|
2383
2387
|
INVALID_ARGUMENT: 25,
|
|
@@ -2398,9 +2402,9 @@ const X = {
|
|
|
2398
2402
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2399
2403
|
};
|
|
2400
2404
|
function de(e, ...t) {
|
|
2401
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2405
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: tl, args: t } : void 0);
|
|
2402
2406
|
}
|
|
2403
|
-
const
|
|
2407
|
+
const tl = {
|
|
2404
2408
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2405
2409
|
[X.INVALID_ARGUMENT]: "Invalid argument",
|
|
2406
2410
|
[X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2412,8 +2416,8 @@ const Zi = {
|
|
|
2412
2416
|
[X.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2413
2417
|
[X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2414
2418
|
[X.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2415
|
-
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"),
|
|
2416
|
-
FALLBACK_TO_ROOT:
|
|
2419
|
+
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"), wt = /* @__PURE__ */ Oe("__disableEmitter"), Ja = Oe("__setPluralRules"), za = /* @__PURE__ */ Oe("__injectWithOption"), Gn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
2420
|
+
FALLBACK_TO_ROOT: Si,
|
|
2417
2421
|
// 8
|
|
2418
2422
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2419
2423
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2425,7 +2429,7 @@ const Zi = {
|
|
|
2425
2429
|
* @deprecated will be removed at vue-i18n v12
|
|
2426
2430
|
*/
|
|
2427
2431
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2428
|
-
},
|
|
2432
|
+
}, nl = {
|
|
2429
2433
|
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2430
2434
|
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2431
2435
|
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2439,16 +2443,16 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2439
2443
|
*/
|
|
2440
2444
|
[Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2441
2445
|
};
|
|
2442
|
-
function
|
|
2443
|
-
return Xt(
|
|
2446
|
+
function kt(e, ...t) {
|
|
2447
|
+
return Xt(nl[e], ...t);
|
|
2444
2448
|
}
|
|
2445
|
-
function
|
|
2449
|
+
function Dt(e) {
|
|
2446
2450
|
if (!G(e) || Ee(e))
|
|
2447
2451
|
return e;
|
|
2448
2452
|
for (const t in e)
|
|
2449
2453
|
if (ve(e, t))
|
|
2450
2454
|
if (!t.includes("."))
|
|
2451
|
-
G(e[t]) &&
|
|
2455
|
+
G(e[t]) && Dt(e[t]);
|
|
2452
2456
|
else {
|
|
2453
2457
|
const n = t.split("."), r = n.length - 1;
|
|
2454
2458
|
let a = e, s = !1;
|
|
@@ -2456,16 +2460,16 @@ function wt(e) {
|
|
|
2456
2460
|
if (n[o] === "__proto__")
|
|
2457
2461
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2458
2462
|
if (n[o] in a || (a[n[o]] = K()), !G(a[n[o]])) {
|
|
2459
|
-
process.env.NODE_ENV !== "production" && (
|
|
2463
|
+
process.env.NODE_ENV !== "production" && (kt(Ne.IGNORE_OBJ_FLATTEN, {
|
|
2460
2464
|
key: n[o]
|
|
2461
2465
|
}), void 0), s = !0;
|
|
2462
2466
|
break;
|
|
2463
2467
|
}
|
|
2464
2468
|
a = a[n[o]];
|
|
2465
2469
|
}
|
|
2466
|
-
if (s || (Ee(a) ?
|
|
2470
|
+
if (s || (Ee(a) ? Ma.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !Ee(a)) {
|
|
2467
2471
|
const o = a[n[r]];
|
|
2468
|
-
G(o) &&
|
|
2472
|
+
G(o) && Dt(o);
|
|
2469
2473
|
}
|
|
2470
2474
|
}
|
|
2471
2475
|
return e;
|
|
@@ -2480,13 +2484,13 @@ function or(e, t) {
|
|
|
2480
2484
|
I(i) && Wt(JSON.parse(i), o);
|
|
2481
2485
|
}), a == null && s)
|
|
2482
2486
|
for (const i in o)
|
|
2483
|
-
ve(o, i) &&
|
|
2487
|
+
ve(o, i) && Dt(o[i]);
|
|
2484
2488
|
return o;
|
|
2485
2489
|
}
|
|
2486
|
-
function
|
|
2490
|
+
function Za(e) {
|
|
2487
2491
|
return e.type;
|
|
2488
2492
|
}
|
|
2489
|
-
function
|
|
2493
|
+
function es(e, t, n) {
|
|
2490
2494
|
let r = G(t.messages) ? t.messages : K();
|
|
2491
2495
|
"__i18nGlobal" in n && (r = or(e.locale.value, {
|
|
2492
2496
|
messages: r,
|
|
@@ -2512,24 +2516,24 @@ function za(e, t, n) {
|
|
|
2512
2516
|
}
|
|
2513
2517
|
}
|
|
2514
2518
|
function Yr(e) {
|
|
2515
|
-
return w(
|
|
2519
|
+
return w(Vs, null, e, 0);
|
|
2516
2520
|
}
|
|
2517
|
-
const Hr = "__INTLIFY_META__", Kr = () => [],
|
|
2521
|
+
const Hr = "__INTLIFY_META__", Kr = () => [], rl = () => !1;
|
|
2518
2522
|
let jr = 0;
|
|
2519
2523
|
function qr(e) {
|
|
2520
|
-
return (t, n, r, a) => e(n, r,
|
|
2524
|
+
return (t, n, r, a) => e(n, r, Nt() || void 0, a);
|
|
2521
2525
|
}
|
|
2522
|
-
const
|
|
2523
|
-
const e =
|
|
2526
|
+
const al = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2527
|
+
const e = Nt();
|
|
2524
2528
|
let t = null;
|
|
2525
|
-
return e && (t =
|
|
2529
|
+
return e && (t = Za(e)[Hr]) ? { [Hr]: t } : null;
|
|
2526
2530
|
};
|
|
2527
2531
|
function ir(e = {}) {
|
|
2528
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ?
|
|
2532
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ? Ps : Fs;
|
|
2529
2533
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2530
2534
|
const i = s(
|
|
2531
2535
|
// prettier-ignore
|
|
2532
|
-
t && o ? t.locale.value : I(e.locale) ? e.locale :
|
|
2536
|
+
t && o ? t.locale.value : I(e.locale) ? e.locale : Lt
|
|
2533
2537
|
), l = s(
|
|
2534
2538
|
// prettier-ignore
|
|
2535
2539
|
t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
@@ -2540,7 +2544,7 @@ function ir(e = {}) {
|
|
|
2540
2544
|
v = (() => {
|
|
2541
2545
|
r && Pr(null);
|
|
2542
2546
|
const b = {
|
|
2543
|
-
version:
|
|
2547
|
+
version: Zi,
|
|
2544
2548
|
locale: i.value,
|
|
2545
2549
|
fallbackLocale: l.value,
|
|
2546
2550
|
messages: c.value,
|
|
@@ -2559,9 +2563,9 @@ function ir(e = {}) {
|
|
|
2559
2563
|
__meta: { framework: "vue" }
|
|
2560
2564
|
};
|
|
2561
2565
|
b.datetimeFormats = f.value, b.numberFormats = u.value, b.__datetimeFormatters = V(v) ? v.__datetimeFormatters : void 0, b.__numberFormatters = V(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = V(v) ? v.__v_emitter : void 0);
|
|
2562
|
-
const T =
|
|
2566
|
+
const T = wi(b);
|
|
2563
2567
|
return r && Pr(T), T;
|
|
2564
|
-
})(),
|
|
2568
|
+
})(), Et(v, i.value, l.value);
|
|
2565
2569
|
function Y() {
|
|
2566
2570
|
return [
|
|
2567
2571
|
i.value,
|
|
@@ -2579,7 +2583,7 @@ function ir(e = {}) {
|
|
|
2579
2583
|
}), Se = gt({
|
|
2580
2584
|
get: () => l.value,
|
|
2581
2585
|
set: (b) => {
|
|
2582
|
-
v.fallbackLocale = b, l.value = b,
|
|
2586
|
+
v.fallbackLocale = b, l.value = b, Et(v, i.value, b);
|
|
2583
2587
|
}
|
|
2584
2588
|
}), oe = gt(() => c.value), Ze = /* @__PURE__ */ gt(() => f.value), rn = /* @__PURE__ */ gt(() => u.value);
|
|
2585
2589
|
function an() {
|
|
@@ -2597,18 +2601,18 @@ function ir(e = {}) {
|
|
|
2597
2601
|
function cn(b, T) {
|
|
2598
2602
|
return b !== "translate" || !T.resolvedMessage;
|
|
2599
2603
|
}
|
|
2600
|
-
const Ie = (b, T, H, ee, We,
|
|
2604
|
+
const Ie = (b, T, H, ee, We, Ut) => {
|
|
2601
2605
|
Y();
|
|
2602
2606
|
let et;
|
|
2603
2607
|
try {
|
|
2604
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ?
|
|
2608
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? Li() : void 0), et = b(v);
|
|
2605
2609
|
} finally {
|
|
2606
2610
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2607
2611
|
}
|
|
2608
2612
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2609
2613
|
ae(et) && et === Jt || H === "translate exists" && !et) {
|
|
2610
|
-
const [Ye,
|
|
2611
|
-
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H,
|
|
2614
|
+
const [Ye, Rs] = T();
|
|
2615
|
+
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H, Rs) && (A && (zt(p, Ye) || Wa(m, Ye)) && (kt(Ne.FALLBACK_TO_ROOT, {
|
|
2612
2616
|
key: Ye,
|
|
2613
2617
|
type: H
|
|
2614
2618
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -2622,7 +2626,7 @@ function ir(e = {}) {
|
|
|
2622
2626
|
}
|
|
2623
2627
|
return t && A ? ee(t) : We(Ye);
|
|
2624
2628
|
} else {
|
|
2625
|
-
if (
|
|
2629
|
+
if (Ut(et))
|
|
2626
2630
|
return et;
|
|
2627
2631
|
throw de(X.UNEXPECTED_RETURN_TYPE);
|
|
2628
2632
|
}
|
|
@@ -2650,7 +2654,7 @@ function ir(e = {}) {
|
|
|
2650
2654
|
interpolate: (b) => b,
|
|
2651
2655
|
type: "vnode"
|
|
2652
2656
|
};
|
|
2653
|
-
function
|
|
2657
|
+
function Mt(...b) {
|
|
2654
2658
|
return Ie((T) => {
|
|
2655
2659
|
let H;
|
|
2656
2660
|
const ee = T;
|
|
@@ -2677,15 +2681,15 @@ function ir(e = {}) {
|
|
|
2677
2681
|
return !1;
|
|
2678
2682
|
const H = I(T) ? T : i.value, ee = $e(H), We = v.messageResolver(ee, b);
|
|
2679
2683
|
return Ee(We) || pe(We) || I(We);
|
|
2680
|
-
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]),
|
|
2684
|
+
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), rl, (H) => $(H));
|
|
2681
2685
|
}
|
|
2682
2686
|
function dt(b) {
|
|
2683
2687
|
let T = null;
|
|
2684
|
-
const H =
|
|
2688
|
+
const H = Ua(v, l.value, i.value);
|
|
2685
2689
|
for (let ee = 0; ee < H.length; ee++) {
|
|
2686
|
-
const We = c.value[H[ee]] || {},
|
|
2687
|
-
if (
|
|
2688
|
-
T =
|
|
2690
|
+
const We = c.value[H[ee]] || {}, Ut = v.messageResolver(We, b);
|
|
2691
|
+
if (Ut != null) {
|
|
2692
|
+
T = Ut;
|
|
2689
2693
|
break;
|
|
2690
2694
|
}
|
|
2691
2695
|
}
|
|
@@ -2702,7 +2706,7 @@ function ir(e = {}) {
|
|
|
2702
2706
|
if (a) {
|
|
2703
2707
|
const H = { [b]: T };
|
|
2704
2708
|
for (const ee in H)
|
|
2705
|
-
ve(H, ee) &&
|
|
2709
|
+
ve(H, ee) && Dt(H[ee]);
|
|
2706
2710
|
T = H[b];
|
|
2707
2711
|
}
|
|
2708
2712
|
c.value[b] = T, v.messages = c.value;
|
|
@@ -2712,7 +2716,7 @@ function ir(e = {}) {
|
|
|
2712
2716
|
const H = { [b]: T };
|
|
2713
2717
|
if (a)
|
|
2714
2718
|
for (const ee in H)
|
|
2715
|
-
ve(H, ee) &&
|
|
2719
|
+
ve(H, ee) && Dt(H[ee]);
|
|
2716
2720
|
T = H[b], Wt(T, c.value[b]), v.messages = c.value;
|
|
2717
2721
|
}
|
|
2718
2722
|
function _(b) {
|
|
@@ -2724,7 +2728,7 @@ function ir(e = {}) {
|
|
|
2724
2728
|
function y(b, T) {
|
|
2725
2729
|
f.value[b] = ie(f.value[b] || {}, T), v.datetimeFormats = f.value, Br(v, b, T);
|
|
2726
2730
|
}
|
|
2727
|
-
function
|
|
2731
|
+
function R(b) {
|
|
2728
2732
|
return u.value[b] || {};
|
|
2729
2733
|
}
|
|
2730
2734
|
function z(b, T) {
|
|
@@ -2734,9 +2738,9 @@ function ir(e = {}) {
|
|
|
2734
2738
|
u.value[b] = ie(u.value[b] || {}, T), v.numberFormats = u.value, Vr(v, b, T);
|
|
2735
2739
|
}
|
|
2736
2740
|
jr++, t && Ae && (wn(t.locale, (b) => {
|
|
2737
|
-
o && (i.value = b, v.locale = b,
|
|
2741
|
+
o && (i.value = b, v.locale = b, Et(v, i.value, l.value));
|
|
2738
2742
|
}), wn(t.fallbackLocale, (b) => {
|
|
2739
|
-
o && (l.value = b, v.fallbackLocale = b,
|
|
2743
|
+
o && (l.value = b, v.fallbackLocale = b, Et(v, i.value, l.value));
|
|
2740
2744
|
}));
|
|
2741
2745
|
const W = {
|
|
2742
2746
|
id: jr,
|
|
@@ -2746,7 +2750,7 @@ function ir(e = {}) {
|
|
|
2746
2750
|
return o;
|
|
2747
2751
|
},
|
|
2748
2752
|
set inheritLocale(b) {
|
|
2749
|
-
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value,
|
|
2753
|
+
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, Et(v, i.value, l.value));
|
|
2750
2754
|
},
|
|
2751
2755
|
get availableLocales() {
|
|
2752
2756
|
return Object.keys(c.value).sort();
|
|
@@ -2805,68 +2809,68 @@ function ir(e = {}) {
|
|
|
2805
2809
|
setPostTranslationHandler: sn,
|
|
2806
2810
|
getMissingHandler: on,
|
|
2807
2811
|
setMissingHandler: ln,
|
|
2808
|
-
[
|
|
2812
|
+
[Ja]: pn
|
|
2809
2813
|
};
|
|
2810
|
-
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = mt, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat =
|
|
2814
|
+
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = mt, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat = R, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[za] = n, W[Bn] = Mt, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2811
2815
|
v.__v_emitter = b;
|
|
2812
|
-
}, W[
|
|
2816
|
+
}, W[wt] = () => {
|
|
2813
2817
|
v.__v_emitter = void 0;
|
|
2814
2818
|
}), W;
|
|
2815
2819
|
}
|
|
2816
|
-
const
|
|
2820
|
+
const ts = "vue-i18n: composer properties", yn = {
|
|
2817
2821
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2818
2822
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2819
2823
|
"vue-i18n-timeline": "Vue I18n"
|
|
2820
|
-
},
|
|
2824
|
+
}, sl = {
|
|
2821
2825
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2822
|
-
},
|
|
2826
|
+
}, ol = {
|
|
2823
2827
|
"vue-i18n-timeline": 16764185
|
|
2824
2828
|
};
|
|
2825
2829
|
let $n;
|
|
2826
|
-
async function
|
|
2830
|
+
async function il(e, t) {
|
|
2827
2831
|
return new Promise((n, r) => {
|
|
2828
2832
|
try {
|
|
2829
|
-
|
|
2833
|
+
zi({
|
|
2830
2834
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2831
2835
|
label: yn["vue-devtools-plugin-vue-i18n"],
|
|
2832
2836
|
packageName: "vue-i18n",
|
|
2833
2837
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2834
2838
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2835
|
-
componentStateTypes: [
|
|
2839
|
+
componentStateTypes: [ts],
|
|
2836
2840
|
app: e
|
|
2837
2841
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2838
2842
|
}, (a) => {
|
|
2839
2843
|
$n = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2840
|
-
|
|
2844
|
+
ll(o, i, t);
|
|
2841
2845
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2842
2846
|
o.vnode.el && o.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && Xr(i, o.vnode.el.__VUE_I18N__) : Xr(i, o.vnode.el.__VUE_I18N__));
|
|
2843
2847
|
}), a.addInspector({
|
|
2844
2848
|
id: "vue-i18n-resource-inspector",
|
|
2845
2849
|
label: yn["vue-i18n-resource-inspector"],
|
|
2846
2850
|
icon: "language",
|
|
2847
|
-
treeFilterPlaceholder:
|
|
2851
|
+
treeFilterPlaceholder: sl["vue-i18n-resource-inspector"]
|
|
2848
2852
|
}), a.on.getInspectorTree((o) => {
|
|
2849
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2853
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && dl(o, t);
|
|
2850
2854
|
});
|
|
2851
2855
|
const s = /* @__PURE__ */ new Map();
|
|
2852
2856
|
a.on.getInspectorState(async (o) => {
|
|
2853
2857
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2854
|
-
if (a.unhighlightElement(),
|
|
2858
|
+
if (a.unhighlightElement(), hl(o, t), o.nodeId === "global") {
|
|
2855
2859
|
if (!s.has(o.app)) {
|
|
2856
2860
|
const [i] = await a.getComponentInstances(o.app);
|
|
2857
2861
|
s.set(o.app, i);
|
|
2858
2862
|
}
|
|
2859
2863
|
a.highlightElement(s.get(o.app));
|
|
2860
2864
|
} else {
|
|
2861
|
-
const i =
|
|
2865
|
+
const i = ml(o.nodeId, t);
|
|
2862
2866
|
i && a.highlightElement(i);
|
|
2863
2867
|
}
|
|
2864
2868
|
}), a.on.editInspectorState((o) => {
|
|
2865
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2869
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && pl(o, t);
|
|
2866
2870
|
}), a.addTimelineLayer({
|
|
2867
2871
|
id: "vue-i18n-timeline",
|
|
2868
2872
|
label: yn["vue-i18n-timeline"],
|
|
2869
|
-
color:
|
|
2873
|
+
color: ol["vue-i18n-timeline"]
|
|
2870
2874
|
}), n(!0);
|
|
2871
2875
|
});
|
|
2872
2876
|
} catch {
|
|
@@ -2874,14 +2878,14 @@ async function sl(e, t) {
|
|
|
2874
2878
|
}
|
|
2875
2879
|
});
|
|
2876
2880
|
}
|
|
2877
|
-
function
|
|
2881
|
+
function ns(e) {
|
|
2878
2882
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2879
2883
|
}
|
|
2880
|
-
function
|
|
2884
|
+
function ll(e, t, n) {
|
|
2881
2885
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2882
2886
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2883
2887
|
const a = {
|
|
2884
|
-
label: `i18n (${
|
|
2888
|
+
label: `i18n (${ns(e)} Scope)`,
|
|
2885
2889
|
textColor: 0,
|
|
2886
2890
|
backgroundColor: 16764185
|
|
2887
2891
|
};
|
|
@@ -2889,7 +2893,7 @@ function ol(e, t, n) {
|
|
|
2889
2893
|
}
|
|
2890
2894
|
}
|
|
2891
2895
|
function Xr(e, t) {
|
|
2892
|
-
const n =
|
|
2896
|
+
const n = ts;
|
|
2893
2897
|
e.state.push({
|
|
2894
2898
|
type: n,
|
|
2895
2899
|
key: "locale",
|
|
@@ -2931,30 +2935,30 @@ function lr(e) {
|
|
|
2931
2935
|
const t = {};
|
|
2932
2936
|
return Object.keys(e).forEach((n) => {
|
|
2933
2937
|
const r = e[n];
|
|
2934
|
-
q(r) && "source" in r ? t[n] =
|
|
2938
|
+
q(r) && "source" in r ? t[n] = _l(r) : Ee(r) && r.loc && r.loc.source ? t[n] = r.loc.source : G(r) ? t[n] = lr(r) : t[n] = r;
|
|
2935
2939
|
}), t;
|
|
2936
2940
|
}
|
|
2937
|
-
const
|
|
2941
|
+
const cl = {
|
|
2938
2942
|
"<": "<",
|
|
2939
2943
|
">": ">",
|
|
2940
2944
|
'"': """,
|
|
2941
2945
|
"&": "&"
|
|
2942
2946
|
};
|
|
2943
|
-
function
|
|
2944
|
-
return e.replace(/[<>"&]/g,
|
|
2947
|
+
function ul(e) {
|
|
2948
|
+
return e.replace(/[<>"&]/g, fl);
|
|
2945
2949
|
}
|
|
2946
|
-
function
|
|
2947
|
-
return
|
|
2950
|
+
function fl(e) {
|
|
2951
|
+
return cl[e] || e;
|
|
2948
2952
|
}
|
|
2949
|
-
function
|
|
2953
|
+
function _l(e) {
|
|
2950
2954
|
return {
|
|
2951
2955
|
_custom: {
|
|
2952
2956
|
type: "function",
|
|
2953
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2957
|
+
display: `<span>ƒ</span> ${e.source ? `("${ul(e.source)}")` : "(?)"}`
|
|
2954
2958
|
}
|
|
2955
2959
|
};
|
|
2956
2960
|
}
|
|
2957
|
-
function
|
|
2961
|
+
function dl(e, t) {
|
|
2958
2962
|
e.rootNodes.push({
|
|
2959
2963
|
id: "global",
|
|
2960
2964
|
label: "Global Scope"
|
|
@@ -2964,11 +2968,11 @@ function fl(e, t) {
|
|
|
2964
2968
|
const s = t.mode === "composition" ? a : a.__composer;
|
|
2965
2969
|
n !== s && e.rootNodes.push({
|
|
2966
2970
|
id: s.id.toString(),
|
|
2967
|
-
label: `${
|
|
2971
|
+
label: `${ns(r)} Scope`
|
|
2968
2972
|
});
|
|
2969
2973
|
}
|
|
2970
2974
|
}
|
|
2971
|
-
function
|
|
2975
|
+
function ml(e, t) {
|
|
2972
2976
|
let n = null;
|
|
2973
2977
|
if (e !== "global") {
|
|
2974
2978
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2979,7 +2983,7 @@ function _l(e, t) {
|
|
|
2979
2983
|
}
|
|
2980
2984
|
return n;
|
|
2981
2985
|
}
|
|
2982
|
-
function
|
|
2986
|
+
function rs(e, t) {
|
|
2983
2987
|
if (e === "global")
|
|
2984
2988
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2985
2989
|
{
|
|
@@ -2987,11 +2991,11 @@ function ts(e, t) {
|
|
|
2987
2991
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2988
2992
|
}
|
|
2989
2993
|
}
|
|
2990
|
-
function
|
|
2991
|
-
const n =
|
|
2992
|
-
return n && (e.state =
|
|
2994
|
+
function hl(e, t) {
|
|
2995
|
+
const n = rs(e.nodeId, t);
|
|
2996
|
+
return n && (e.state = gl(n)), null;
|
|
2993
2997
|
}
|
|
2994
|
-
function
|
|
2998
|
+
function gl(e) {
|
|
2995
2999
|
const t = {}, n = "Locale related info", r = [
|
|
2996
3000
|
{
|
|
2997
3001
|
type: n,
|
|
@@ -3050,7 +3054,7 @@ function ml(e) {
|
|
|
3050
3054
|
}
|
|
3051
3055
|
return t;
|
|
3052
3056
|
}
|
|
3053
|
-
function
|
|
3057
|
+
function Rt(e, t) {
|
|
3054
3058
|
if ($n) {
|
|
3055
3059
|
let n;
|
|
3056
3060
|
t && "groupId" in t && (n = t.groupId, delete t.groupId), $n.addTimelineEvent({
|
|
@@ -3066,15 +3070,15 @@ function Dt(e, t) {
|
|
|
3066
3070
|
});
|
|
3067
3071
|
}
|
|
3068
3072
|
}
|
|
3069
|
-
function
|
|
3070
|
-
const n =
|
|
3073
|
+
function pl(e, t) {
|
|
3074
|
+
const n = rs(e.nodeId, t);
|
|
3071
3075
|
if (n) {
|
|
3072
3076
|
const [r] = e.path;
|
|
3073
3077
|
r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || re(e.state.value) || G(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && $(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3074
3078
|
}
|
|
3075
3079
|
}
|
|
3076
|
-
function
|
|
3077
|
-
const t = I(e.locale) ? e.locale :
|
|
3080
|
+
function El(e) {
|
|
3081
|
+
const t = I(e.locale) ? e.locale : Lt, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = $(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = $(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = q(e.postTranslation) ? e.postTranslation : void 0, u = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, p = $(e.sync) ? e.sync : !0;
|
|
3078
3082
|
let A = e.messages;
|
|
3079
3083
|
if (V(e.sharedMessages)) {
|
|
3080
3084
|
const O = e.sharedMessages;
|
|
@@ -3109,7 +3113,7 @@ function gl(e) {
|
|
|
3109
3113
|
};
|
|
3110
3114
|
}
|
|
3111
3115
|
function Wn(e = {}) {
|
|
3112
|
-
const t = ir(
|
|
3116
|
+
const t = ir(El(e)), { __extender: n } = e, r = {
|
|
3113
3117
|
// id
|
|
3114
3118
|
id: t.id,
|
|
3115
3119
|
// locale
|
|
@@ -3274,13 +3278,13 @@ function Wn(e = {}) {
|
|
|
3274
3278
|
s[ze] && s[ze](a);
|
|
3275
3279
|
}, r.__disableEmitter = () => {
|
|
3276
3280
|
const a = t;
|
|
3277
|
-
a[
|
|
3281
|
+
a[wt] && a[wt]();
|
|
3278
3282
|
}), r;
|
|
3279
3283
|
}
|
|
3280
|
-
function
|
|
3284
|
+
function bl(e, t, n) {
|
|
3281
3285
|
return {
|
|
3282
3286
|
beforeCreate() {
|
|
3283
|
-
const r =
|
|
3287
|
+
const r = Nt();
|
|
3284
3288
|
if (!r)
|
|
3285
3289
|
throw de(X.UNEXPECTED_ERROR);
|
|
3286
3290
|
const a = this.$options;
|
|
@@ -3308,27 +3312,27 @@ function pl(e, t, n) {
|
|
|
3308
3312
|
}
|
|
3309
3313
|
else
|
|
3310
3314
|
this.$i18n = e;
|
|
3311
|
-
a.__i18nGlobal &&
|
|
3315
|
+
a.__i18nGlobal && es(t, a, a), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(r, this.$i18n);
|
|
3312
3316
|
},
|
|
3313
3317
|
mounted() {
|
|
3314
3318
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
3315
3319
|
const r = this.$i18n;
|
|
3316
3320
|
this.$el.__VUE_I18N__ = r.__composer;
|
|
3317
3321
|
const a = this.__v_emitter = tr();
|
|
3318
|
-
r.__enableEmitter && r.__enableEmitter(a), a.on("*",
|
|
3322
|
+
r.__enableEmitter && r.__enableEmitter(a), a.on("*", Rt);
|
|
3319
3323
|
}
|
|
3320
3324
|
},
|
|
3321
3325
|
unmounted() {
|
|
3322
|
-
const r =
|
|
3326
|
+
const r = Nt();
|
|
3323
3327
|
if (!r)
|
|
3324
3328
|
throw de(X.UNEXPECTED_ERROR);
|
|
3325
3329
|
const a = this.$i18n;
|
|
3326
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
3330
|
+
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Rt), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(r), delete this.$i18n;
|
|
3327
3331
|
}
|
|
3328
3332
|
};
|
|
3329
3333
|
}
|
|
3330
3334
|
function Qr(e, t) {
|
|
3331
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
3335
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Ja](t.pluralizationRules || e.pluralizationRules);
|
|
3332
3336
|
const n = or(e.locale, {
|
|
3333
3337
|
messages: t.messages,
|
|
3334
3338
|
__i18n: t.__i18n
|
|
@@ -3353,7 +3357,7 @@ const cr = {
|
|
|
3353
3357
|
type: Object
|
|
3354
3358
|
}
|
|
3355
3359
|
};
|
|
3356
|
-
function
|
|
3360
|
+
function Sl({ slots: e }, t) {
|
|
3357
3361
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3358
3362
|
...r,
|
|
3359
3363
|
// prettier-ignore
|
|
@@ -3363,10 +3367,10 @@ function El({ slots: e }, t) {
|
|
|
3363
3367
|
return a && (n[r] = a()), n;
|
|
3364
3368
|
}, K());
|
|
3365
3369
|
}
|
|
3366
|
-
function
|
|
3370
|
+
function as() {
|
|
3367
3371
|
return he;
|
|
3368
3372
|
}
|
|
3369
|
-
const
|
|
3373
|
+
const vl = /* @__PURE__ */ Jn({
|
|
3370
3374
|
/* eslint-disable */
|
|
3371
3375
|
name: "i18n-t",
|
|
3372
3376
|
props: ie({
|
|
@@ -3389,15 +3393,15 @@ const bl = /* @__PURE__ */ Jn({
|
|
|
3389
3393
|
return () => {
|
|
3390
3394
|
const s = Object.keys(n).filter((u) => u !== "_"), o = K();
|
|
3391
3395
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3392
|
-
const i =
|
|
3393
|
-
return
|
|
3396
|
+
const i = Sl(t, s), l = a[Bn](e.keypath, i, o), c = ie(K(), r), f = I(e.tag) || G(e.tag) ? e.tag : as();
|
|
3397
|
+
return Aa(f, c, l);
|
|
3394
3398
|
};
|
|
3395
3399
|
}
|
|
3396
|
-
}), Jr =
|
|
3397
|
-
function
|
|
3400
|
+
}), Jr = vl;
|
|
3401
|
+
function Al(e) {
|
|
3398
3402
|
return re(e) && !I(e[0]);
|
|
3399
3403
|
}
|
|
3400
|
-
function
|
|
3404
|
+
function ss(e, t, n, r) {
|
|
3401
3405
|
const { slots: a, attrs: s } = t;
|
|
3402
3406
|
return () => {
|
|
3403
3407
|
const o = { part: !0 };
|
|
@@ -3407,13 +3411,13 @@ function rs(e, t, n, r) {
|
|
|
3407
3411
|
let c = [o.key];
|
|
3408
3412
|
re(l) ? c = l.map((m, p) => {
|
|
3409
3413
|
const A = a[m.type], E = A ? A({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3410
|
-
return
|
|
3414
|
+
return Al(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
3411
3415
|
}) : I(l) && (c = [l]);
|
|
3412
|
-
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag :
|
|
3413
|
-
return
|
|
3416
|
+
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag : as();
|
|
3417
|
+
return Aa(u, f, c);
|
|
3414
3418
|
};
|
|
3415
3419
|
}
|
|
3416
|
-
const
|
|
3420
|
+
const yl = /* @__PURE__ */ Jn({
|
|
3417
3421
|
/* eslint-disable */
|
|
3418
3422
|
name: "i18n-n",
|
|
3419
3423
|
props: ie({
|
|
@@ -3432,13 +3436,13 @@ const vl = /* @__PURE__ */ Jn({
|
|
|
3432
3436
|
useScope: e.scope,
|
|
3433
3437
|
__useComponent: !0
|
|
3434
3438
|
});
|
|
3435
|
-
return
|
|
3439
|
+
return ss(e, t, ja, (...r) => (
|
|
3436
3440
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3437
3441
|
n[Vn](...r)
|
|
3438
3442
|
));
|
|
3439
3443
|
}
|
|
3440
|
-
}), zr =
|
|
3441
|
-
function
|
|
3444
|
+
}), zr = yl;
|
|
3445
|
+
function Nl(e, t) {
|
|
3442
3446
|
const n = e;
|
|
3443
3447
|
if (e.mode === "composition")
|
|
3444
3448
|
return n.__getInstance(t) || e.global;
|
|
@@ -3447,13 +3451,13 @@ function Al(e, t) {
|
|
|
3447
3451
|
return r != null ? r.__composer : e.global.__composer;
|
|
3448
3452
|
}
|
|
3449
3453
|
}
|
|
3450
|
-
function
|
|
3454
|
+
function Tl(e) {
|
|
3451
3455
|
const t = (o) => {
|
|
3452
|
-
process.env.NODE_ENV !== "production" && er(
|
|
3456
|
+
process.env.NODE_ENV !== "production" && er(kt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3453
3457
|
const { instance: i, value: l } = o;
|
|
3454
3458
|
if (!i || !i.$)
|
|
3455
3459
|
throw de(X.UNEXPECTED_ERROR);
|
|
3456
|
-
const c =
|
|
3460
|
+
const c = Nl(e, i.$), f = Zr(l);
|
|
3457
3461
|
return [
|
|
3458
3462
|
Reflect.apply(c.t, c, [...ea(f)]),
|
|
3459
3463
|
c
|
|
@@ -3497,15 +3501,15 @@ function ea(e) {
|
|
|
3497
3501
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3498
3502
|
return I(n) && (o.locale = n), ae(a) && (o.plural = a), ae(s) && (o.plural = s), [t, i, o];
|
|
3499
3503
|
}
|
|
3500
|
-
function
|
|
3504
|
+
function Ol(e, t, ...n) {
|
|
3501
3505
|
const r = V(n[0]) ? n[0] : {};
|
|
3502
|
-
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t",
|
|
3506
|
+
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t", Tl(t));
|
|
3503
3507
|
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3508
|
+
const Il = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3509
|
+
function Cl(e = {}) {
|
|
3506
3510
|
const t = __VUE_I18N_LEGACY_API__ && $(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3507
|
-
process.env.NODE_ENV !== "production" && t && er(
|
|
3508
|
-
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3511
|
+
process.env.NODE_ENV !== "production" && t && er(kt(Ne.DEPRECATE_LEGACY_MODE));
|
|
3512
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Ll(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3509
3513
|
function i(u) {
|
|
3510
3514
|
return r.get(u) || null;
|
|
3511
3515
|
}
|
|
@@ -3527,12 +3531,12 @@ function Ol(e = {}) {
|
|
|
3527
3531
|
f.__composerExtend = E.__composerExtend, f.__vueI18nExtend = E.__vueI18nExtend;
|
|
3528
3532
|
}
|
|
3529
3533
|
let p = null;
|
|
3530
|
-
!t && n && (p =
|
|
3534
|
+
!t && n && (p = Ul(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Ol(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(bl(s, s.__composer, f));
|
|
3531
3535
|
const A = u.unmount;
|
|
3532
3536
|
if (u.unmount = () => {
|
|
3533
3537
|
p && p(), f.dispose(), A();
|
|
3534
3538
|
}, process.env.NODE_ENV !== "production") {
|
|
3535
|
-
if (!await
|
|
3539
|
+
if (!await il(u, f))
|
|
3536
3540
|
throw de(X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3537
3541
|
const C = tr();
|
|
3538
3542
|
if (t) {
|
|
@@ -3542,7 +3546,7 @@ function Ol(e = {}) {
|
|
|
3542
3546
|
const h = s;
|
|
3543
3547
|
h[ze] && h[ze](C);
|
|
3544
3548
|
}
|
|
3545
|
-
C.on("*",
|
|
3549
|
+
C.on("*", Rt);
|
|
3546
3550
|
}
|
|
3547
3551
|
},
|
|
3548
3552
|
// global accessor
|
|
@@ -3564,55 +3568,55 @@ function Ol(e = {}) {
|
|
|
3564
3568
|
return f;
|
|
3565
3569
|
}
|
|
3566
3570
|
function ur(e = {}) {
|
|
3567
|
-
const t =
|
|
3571
|
+
const t = Nt();
|
|
3568
3572
|
if (t == null)
|
|
3569
3573
|
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3570
3574
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3571
3575
|
throw de(X.NOT_INSTALLED);
|
|
3572
|
-
const n =
|
|
3576
|
+
const n = wl(t), r = Rl(n), a = Za(t), s = Dl(e, a);
|
|
3573
3577
|
if (s === "global")
|
|
3574
|
-
return
|
|
3578
|
+
return es(r, e, a), r;
|
|
3575
3579
|
if (s === "parent") {
|
|
3576
|
-
let l =
|
|
3577
|
-
return l == null && (process.env.NODE_ENV !== "production" && (
|
|
3580
|
+
let l = kl(n, t, e.__useComponent);
|
|
3581
|
+
return l == null && (process.env.NODE_ENV !== "production" && (kt(Ne.NOT_FOUND_PARENT_SCOPE), void 0), l = r), l;
|
|
3578
3582
|
}
|
|
3579
3583
|
const o = n;
|
|
3580
3584
|
let i = o.__getInstance(t);
|
|
3581
3585
|
if (i == null) {
|
|
3582
3586
|
const l = ie({}, e);
|
|
3583
|
-
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = ir(l), o.__composerExtend && (i[Gn] = o.__composerExtend(i)),
|
|
3587
|
+
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = ir(l), o.__composerExtend && (i[Gn] = o.__composerExtend(i)), Fl(o, t, i), o.__setInstance(t, i);
|
|
3584
3588
|
}
|
|
3585
3589
|
return i;
|
|
3586
3590
|
}
|
|
3587
|
-
function
|
|
3588
|
-
const n =
|
|
3591
|
+
function Ll(e, t) {
|
|
3592
|
+
const n = ks(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Wn(e)) : n.run(() => ir(e));
|
|
3589
3593
|
if (r == null)
|
|
3590
3594
|
throw de(X.UNEXPECTED_ERROR);
|
|
3591
3595
|
return [n, r];
|
|
3592
3596
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const t =
|
|
3597
|
+
function wl(e) {
|
|
3598
|
+
const t = Us(e.isCE ? Il : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3595
3599
|
if (!t)
|
|
3596
3600
|
throw de(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
|
|
3597
3601
|
return t;
|
|
3598
3602
|
}
|
|
3599
|
-
function
|
|
3603
|
+
function Dl(e, t) {
|
|
3600
3604
|
return Qt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3601
3605
|
}
|
|
3602
|
-
function
|
|
3606
|
+
function Rl(e) {
|
|
3603
3607
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3604
3608
|
}
|
|
3605
|
-
function
|
|
3609
|
+
function kl(e, t, n = !1) {
|
|
3606
3610
|
let r = null;
|
|
3607
3611
|
const a = t.root;
|
|
3608
|
-
let s =
|
|
3612
|
+
let s = Pl(t, n);
|
|
3609
3613
|
for (; s != null; ) {
|
|
3610
3614
|
const o = e;
|
|
3611
3615
|
if (e.mode === "composition")
|
|
3612
3616
|
r = o.__getInstance(s);
|
|
3613
3617
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3614
3618
|
const i = o.__getInstance(s);
|
|
3615
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3619
|
+
i != null && (r = i.__composer, n && r && !r[za] && (r = null));
|
|
3616
3620
|
}
|
|
3617
3621
|
if (r != null || a === s)
|
|
3618
3622
|
break;
|
|
@@ -3620,36 +3624,36 @@ function Dl(e, t, n = !1) {
|
|
|
3620
3624
|
}
|
|
3621
3625
|
return r;
|
|
3622
3626
|
}
|
|
3623
|
-
function
|
|
3627
|
+
function Pl(e, t = !1) {
|
|
3624
3628
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3625
3629
|
}
|
|
3626
|
-
function
|
|
3630
|
+
function Fl(e, t, n) {
|
|
3627
3631
|
let r = null;
|
|
3628
|
-
|
|
3632
|
+
Bs(() => {
|
|
3629
3633
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3630
3634
|
t.vnode.el.__VUE_I18N__ = n, r = tr();
|
|
3631
3635
|
const a = n;
|
|
3632
|
-
a[ze] && a[ze](r), r.on("*",
|
|
3636
|
+
a[ze] && a[ze](r), r.on("*", Rt);
|
|
3633
3637
|
}
|
|
3634
|
-
}, t),
|
|
3638
|
+
}, t), xs(() => {
|
|
3635
3639
|
const a = n;
|
|
3636
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*",
|
|
3640
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", Rt), a[wt] && a[wt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3637
3641
|
const s = a[Gn];
|
|
3638
3642
|
s && (s(), delete a[Gn]);
|
|
3639
3643
|
}, t);
|
|
3640
3644
|
}
|
|
3641
|
-
const
|
|
3645
|
+
const Ml = [
|
|
3642
3646
|
"locale",
|
|
3643
3647
|
"fallbackLocale",
|
|
3644
3648
|
"availableLocales"
|
|
3645
3649
|
], ta = ["t", "rt", "d", "n", "tm", "te"];
|
|
3646
|
-
function
|
|
3650
|
+
function Ul(e, t) {
|
|
3647
3651
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3648
|
-
return
|
|
3652
|
+
return Ml.forEach((a) => {
|
|
3649
3653
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3650
3654
|
if (!s)
|
|
3651
3655
|
throw de(X.UNEXPECTED_ERROR);
|
|
3652
|
-
const o =
|
|
3656
|
+
const o = Ms(s.value) ? {
|
|
3653
3657
|
get() {
|
|
3654
3658
|
return s.value.value;
|
|
3655
3659
|
},
|
|
@@ -3674,7 +3678,7 @@ function Fl(e, t) {
|
|
|
3674
3678
|
});
|
|
3675
3679
|
};
|
|
3676
3680
|
}
|
|
3677
|
-
const
|
|
3681
|
+
const Bl = /* @__PURE__ */ Jn({
|
|
3678
3682
|
/* eslint-disable */
|
|
3679
3683
|
name: "i18n-d",
|
|
3680
3684
|
props: ie({
|
|
@@ -3693,22 +3697,22 @@ const Ml = /* @__PURE__ */ Jn({
|
|
|
3693
3697
|
useScope: e.scope,
|
|
3694
3698
|
__useComponent: !0
|
|
3695
3699
|
});
|
|
3696
|
-
return
|
|
3700
|
+
return ss(e, t, Ka, (...r) => (
|
|
3697
3701
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3698
3702
|
n[xn](...r)
|
|
3699
3703
|
));
|
|
3700
3704
|
}
|
|
3701
|
-
}), na =
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3705
|
+
}), na = Bl;
|
|
3706
|
+
el();
|
|
3707
|
+
Ni(ni);
|
|
3708
|
+
Ti(bi);
|
|
3709
|
+
Oi(Ua);
|
|
3706
3710
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3707
3711
|
const e = je();
|
|
3708
|
-
e.__INTLIFY__ = !0,
|
|
3712
|
+
e.__INTLIFY__ = !0, ri(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3709
3713
|
}
|
|
3710
3714
|
process.env.NODE_ENV;
|
|
3711
|
-
const
|
|
3715
|
+
const os = Cl({
|
|
3712
3716
|
legacy: !1,
|
|
3713
3717
|
locale: "zh",
|
|
3714
3718
|
//默认显示的语言
|
|
@@ -3724,22 +3728,22 @@ const as = Ol({
|
|
|
3724
3728
|
missingWarn: !1,
|
|
3725
3729
|
silentFallbackWarn: !0,
|
|
3726
3730
|
fallbackWarn: !1
|
|
3727
|
-
}), Ke =
|
|
3728
|
-
async function
|
|
3731
|
+
}), Ke = os.global;
|
|
3732
|
+
async function xl(e, t) {
|
|
3729
3733
|
const n = await t(e);
|
|
3730
3734
|
Ke.setLocaleMessage(e, n), Ke.locale && Ke.locale.value !== void 0 ? Ke.locale.value = e : Ke.locale = e;
|
|
3731
3735
|
}
|
|
3732
3736
|
const nt = "__system:language__", rt = "zh";
|
|
3733
|
-
function
|
|
3737
|
+
function Vl() {
|
|
3734
3738
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
3735
3739
|
}
|
|
3736
|
-
function
|
|
3740
|
+
function Gl(e) {
|
|
3737
3741
|
return e ? e.toLowerCase().trim() : "";
|
|
3738
3742
|
}
|
|
3739
|
-
const
|
|
3743
|
+
const Pt = De("cloudSdkLanguageStore", {
|
|
3740
3744
|
state: () => ({
|
|
3741
3745
|
languageDefault: rt,
|
|
3742
|
-
languageName:
|
|
3746
|
+
languageName: P.localGet(nt) || rt,
|
|
3743
3747
|
/**
|
|
3744
3748
|
* 语言类型
|
|
3745
3749
|
*/
|
|
@@ -3769,13 +3773,13 @@ const kt = De("cloudSdkLanguageStore", {
|
|
|
3769
3773
|
actions: {
|
|
3770
3774
|
// 初始化
|
|
3771
3775
|
async init() {
|
|
3772
|
-
let e =
|
|
3776
|
+
let e = Vl() || rt;
|
|
3773
3777
|
e = localStorage.getItem(nt) || e;
|
|
3774
3778
|
const t = cvUtils.urlGetParameterAll();
|
|
3775
|
-
t.language && (e = t.language), e =
|
|
3779
|
+
t.language && (e = t.language), e = Gl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3776
3780
|
},
|
|
3777
3781
|
async clear_cache() {
|
|
3778
|
-
|
|
3782
|
+
P.localSet(nt, rt);
|
|
3779
3783
|
},
|
|
3780
3784
|
/**
|
|
3781
3785
|
* 默认语言
|
|
@@ -3803,10 +3807,10 @@ const kt = De("cloudSdkLanguageStore", {
|
|
|
3803
3807
|
* @param silence
|
|
3804
3808
|
*/
|
|
3805
3809
|
SA_LANGUAGE_SET(e) {
|
|
3806
|
-
this.languageName = e,
|
|
3810
|
+
this.languageName = e, P.localSet(nt, e), Ke.locale.value = e;
|
|
3807
3811
|
}
|
|
3808
3812
|
}
|
|
3809
|
-
}), ra = "__system:themes__",
|
|
3813
|
+
}), ra = "__system:themes__", $l = "light", Nn = "__system:layoutSidebarState__", Wl = "on", aa = "__system:layoutNavTabs__", Yl = "on", Hl = "__system:layoutWatermark__", Kl = "on";
|
|
3810
3814
|
function sa() {
|
|
3811
3815
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
3812
3816
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
@@ -3817,17 +3821,17 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3817
3821
|
/**
|
|
3818
3822
|
* 上边切换卡
|
|
3819
3823
|
*/
|
|
3820
|
-
layoutNavTabs:
|
|
3824
|
+
layoutNavTabs: P.localGet(aa) || Yl,
|
|
3821
3825
|
/**
|
|
3822
3826
|
* 左边侧栏
|
|
3823
3827
|
*/
|
|
3824
|
-
layoutSidebarState:
|
|
3828
|
+
layoutSidebarState: P.localGet(Nn) || Wl,
|
|
3825
3829
|
/**
|
|
3826
3830
|
* 主题皮肤
|
|
3827
3831
|
* auto|light|dark
|
|
3828
3832
|
* 自动生成
|
|
3829
3833
|
*/
|
|
3830
|
-
themesName:
|
|
3834
|
+
themesName: P.localGet(ra) || $l,
|
|
3831
3835
|
themesList: [
|
|
3832
3836
|
{ name: "跟随系统", value: "auto" },
|
|
3833
3837
|
{ name: "明亮", value: "light" },
|
|
@@ -3836,7 +3840,7 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3836
3840
|
/**
|
|
3837
3841
|
* 水印
|
|
3838
3842
|
*/
|
|
3839
|
-
watermarkState:
|
|
3843
|
+
watermarkState: P.localGet(Hl) || Kl
|
|
3840
3844
|
}),
|
|
3841
3845
|
actions: {
|
|
3842
3846
|
async init() {
|
|
@@ -3852,19 +3856,19 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3852
3856
|
SA_LAYOUT_WATERMARK_SET(e) {
|
|
3853
3857
|
this.watermarkState = e;
|
|
3854
3858
|
const t = document.querySelector("html");
|
|
3855
|
-
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"),
|
|
3859
|
+
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"), P.localSet(Nn, e);
|
|
3856
3860
|
},
|
|
3857
3861
|
// 设置左边侧栏
|
|
3858
3862
|
SA_LAYOUT_SLIDEBAR_SET(e) {
|
|
3859
3863
|
this.layoutSidebarState = e;
|
|
3860
3864
|
const t = document.querySelector("html");
|
|
3861
|
-
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"),
|
|
3865
|
+
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"), P.localSet(Nn, e);
|
|
3862
3866
|
},
|
|
3863
3867
|
// 设置上边nav
|
|
3864
3868
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
3865
3869
|
me.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
3866
3870
|
const t = document.querySelector("html");
|
|
3867
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ ||
|
|
3871
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ || P.localSet(aa, e);
|
|
3868
3872
|
},
|
|
3869
3873
|
/**
|
|
3870
3874
|
* 设置主题
|
|
@@ -3900,20 +3904,20 @@ const Be = De("cloudSdkThemesStore", {
|
|
|
3900
3904
|
break;
|
|
3901
3905
|
}
|
|
3902
3906
|
const n = document.querySelector("html");
|
|
3903
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName),
|
|
3907
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), P.localSet(ra, this.themesName);
|
|
3904
3908
|
}
|
|
3905
3909
|
}
|
|
3906
3910
|
});
|
|
3907
|
-
function
|
|
3911
|
+
function is() {
|
|
3908
3912
|
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
3909
3913
|
}
|
|
3910
|
-
function
|
|
3914
|
+
function ls() {
|
|
3911
3915
|
return window.innerHeight;
|
|
3912
3916
|
}
|
|
3913
|
-
function
|
|
3914
|
-
return
|
|
3917
|
+
function jl() {
|
|
3918
|
+
return is() - ls() > 50 ? "landscape" : "portrait";
|
|
3915
3919
|
}
|
|
3916
|
-
const Gt =
|
|
3920
|
+
const Gt = is(), ql = ls(), Tn = jl(), cs = De("cloudSdkWindowStore", {
|
|
3917
3921
|
state: () => ({
|
|
3918
3922
|
// 窗口是否激活
|
|
3919
3923
|
windowActive: !0,
|
|
@@ -3924,7 +3928,7 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
3924
3928
|
// 浏览器尺寸信息
|
|
3925
3929
|
windowWidth: Gt,
|
|
3926
3930
|
// 窗口宽度
|
|
3927
|
-
windowHeight:
|
|
3931
|
+
windowHeight: ql,
|
|
3928
3932
|
// 浏览器窗口方向
|
|
3929
3933
|
windowOrientation: Tn,
|
|
3930
3934
|
windowLandscape: Tn === "landscape",
|
|
@@ -3970,14 +3974,14 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
3970
3974
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
3971
3975
|
}
|
|
3972
3976
|
}
|
|
3973
|
-
}),
|
|
3977
|
+
}), bt = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", ca = "cacheClientId", ua = "cacheClientVersion", fr = De("cloudSdkSystemStore", {
|
|
3974
3978
|
state: () => ({
|
|
3975
3979
|
// ServerUrl
|
|
3976
3980
|
cacheServerUrl: "",
|
|
3977
3981
|
// 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
|
|
3978
|
-
|
|
3982
|
+
cacheClientId: "",
|
|
3979
3983
|
// 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
|
|
3980
|
-
|
|
3984
|
+
cacheClientVersion: "v7",
|
|
3981
3985
|
// 客户端新版本号
|
|
3982
3986
|
clientNewVersion: null,
|
|
3983
3987
|
// 键盘状态(仅iOS)
|
|
@@ -4013,16 +4017,15 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4013
4017
|
await gbIdbObj.idbGetString("clearCache");
|
|
4014
4018
|
const e = await gbIdbObj.idbGetString("cacheServerUrl");
|
|
4015
4019
|
await gbIdbObj.idbSetItem("cacheServerUrl", e);
|
|
4016
|
-
const t = await gbIdbObj.idbGetString(
|
|
4017
|
-
await gbIdbObj.idbSetItem(
|
|
4020
|
+
const t = await gbIdbObj.idbGetString(ua);
|
|
4021
|
+
await gbIdbObj.idbSetItem(ua, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), this.SA_KEYBOARD_SET();
|
|
4018
4022
|
},
|
|
4019
4023
|
async clear_cache() {
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
D.localSet(Et, e), D.localDel(On), D.localDel(In);
|
|
4024
|
+
const e = P.localGet(bt);
|
|
4025
|
+
P.localSet(bt, e), await gbIdbObj.idbDelItem("clearCache"), await gbIdbObj.idbDelItem(On), await gbIdbObj.idbDelItem(In);
|
|
4023
4026
|
},
|
|
4024
4027
|
async cache_read() {
|
|
4025
|
-
this.
|
|
4028
|
+
this.cacheServerUrl = await gbIdbObj.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemInfo.apiUrl = this.cacheServerUrl);
|
|
4026
4029
|
},
|
|
4027
4030
|
async __load_api_flag() {
|
|
4028
4031
|
let e = await gbIdbObj.idbGetItem(On);
|
|
@@ -4043,12 +4046,13 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4043
4046
|
});
|
|
4044
4047
|
},
|
|
4045
4048
|
async __load_api_key() {
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4049
|
+
let e = await gbIdbObj.idbGetString(ca);
|
|
4050
|
+
e || (e = cvUtils.randomString(6), await gbIdbObj.idbSetItem(ca, e)), this.cacheClientId = e, this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await fe.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
|
|
4051
|
+
client_id: e
|
|
4052
|
+
}).then(({ data: t }) => {
|
|
4053
|
+
this.apiKeyData = t, gbIdbObj.idbSetItem(ia, this.apiKeyData);
|
|
4050
4054
|
}), fe.setHeaders({
|
|
4051
|
-
"Sy-Client-Id":
|
|
4055
|
+
"Sy-Client-Id": e
|
|
4052
4056
|
});
|
|
4053
4057
|
},
|
|
4054
4058
|
/**
|
|
@@ -4067,10 +4071,10 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4067
4071
|
*/
|
|
4068
4072
|
SA_KEYBOARD_SET(e) {
|
|
4069
4073
|
return new Promise((t) => {
|
|
4070
|
-
let n =
|
|
4071
|
-
n || (
|
|
4074
|
+
let n = P.localGet(bt);
|
|
4075
|
+
n || (P.localSet(bt, P.localGet("__keyboard:data__")), P.localDel("__keyboard:data__"));
|
|
4072
4076
|
const r = e || n || {};
|
|
4073
|
-
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter",
|
|
4077
|
+
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", P.localSet(bt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
|
|
4074
4078
|
});
|
|
4075
4079
|
},
|
|
4076
4080
|
/**
|
|
@@ -4082,7 +4086,7 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4082
4086
|
if (!cvUtils.strExists(e, "."))
|
|
4083
4087
|
return;
|
|
4084
4088
|
let n = "__ip" + e.substring(0, 1) + "__";
|
|
4085
|
-
const r =
|
|
4089
|
+
const r = P.localSet(n);
|
|
4086
4090
|
let a = cvUtils.strGetMiddle(e, "", "."), s = r[a] || e;
|
|
4087
4091
|
if (typeof s == "object") {
|
|
4088
4092
|
typeof t == "function" && t(s);
|
|
@@ -4092,7 +4096,7 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4092
4096
|
keyId: s || e
|
|
4093
4097
|
};
|
|
4094
4098
|
fe.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
|
|
4095
|
-
|
|
4099
|
+
P.localSet(n, o), typeof t == "function" && t(s);
|
|
4096
4100
|
});
|
|
4097
4101
|
}
|
|
4098
4102
|
}
|
|
@@ -4100,7 +4104,7 @@ const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
|
4100
4104
|
function Yn(e) {
|
|
4101
4105
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4102
4106
|
}
|
|
4103
|
-
const at = "syCacheAppInfo", Me = "syCacheAppToken",
|
|
4107
|
+
const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt = "syCacheAppRbac", fa = {
|
|
4104
4108
|
nickname: "",
|
|
4105
4109
|
staff_nickname: "",
|
|
4106
4110
|
id: 0,
|
|
@@ -4127,14 +4131,14 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4127
4131
|
// 权限
|
|
4128
4132
|
accountRbacData: [],
|
|
4129
4133
|
// 账号信息
|
|
4130
|
-
accountInfo:
|
|
4131
|
-
accountToken:
|
|
4132
|
-
accountJwt:
|
|
4134
|
+
accountInfo: P.localGet(at) || {},
|
|
4135
|
+
accountToken: P.localGet(Me) || "",
|
|
4136
|
+
accountJwt: P.localGet(St) || ""
|
|
4133
4137
|
}),
|
|
4134
4138
|
getters: {
|
|
4135
4139
|
cacheBizsId: (e) => {
|
|
4136
4140
|
var t;
|
|
4137
|
-
return ((t =
|
|
4141
|
+
return ((t = e.accountInfo) == null ? void 0 : t.business_id) || 0;
|
|
4138
4142
|
},
|
|
4139
4143
|
staffId: (e) => {
|
|
4140
4144
|
var t;
|
|
@@ -4158,7 +4162,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4158
4162
|
actions: {
|
|
4159
4163
|
init() {
|
|
4160
4164
|
const e = cvUtils.urlGetParameterAll();
|
|
4161
|
-
e.token &&
|
|
4165
|
+
e.token && P.localSet("ACC_TOKEN_CACHE_KEY", e.token), this.SA_ACCOUNT_RBAC_REFRESH(), this.accountIsLogin ? this.SA_ACCOUNT_REFRESH() : this.SA_ACCOUNT_LOGOUT();
|
|
4162
4166
|
},
|
|
4163
4167
|
async clear_cache() {
|
|
4164
4168
|
this.ACCOUNT_SET_PREV();
|
|
@@ -4166,7 +4170,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4166
4170
|
async clear_all() {
|
|
4167
4171
|
},
|
|
4168
4172
|
SA_ACCOUNT_IS_LOGGED() {
|
|
4169
|
-
return this.accountToken =
|
|
4173
|
+
return this.accountToken = P.localGet(Me) || "", !!Yn(this.accountToken);
|
|
4170
4174
|
},
|
|
4171
4175
|
SA_ACCOUNT_JWT_GET() {
|
|
4172
4176
|
return this.accountJwt || "";
|
|
@@ -4175,7 +4179,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4175
4179
|
return this.accountToken || "";
|
|
4176
4180
|
},
|
|
4177
4181
|
SA_ACCOUNT_TOKEN_SET(e) {
|
|
4178
|
-
this.accountToken = e,
|
|
4182
|
+
this.accountToken = e, P.localSet(Me, this.accountToken);
|
|
4179
4183
|
},
|
|
4180
4184
|
/**
|
|
4181
4185
|
* 获取用户信息(并保存)
|
|
@@ -4183,7 +4187,7 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4183
4187
|
* @returns Object
|
|
4184
4188
|
*/
|
|
4185
4189
|
SA_ACCOUNT_INFO_GET() {
|
|
4186
|
-
return
|
|
4190
|
+
return P.localGet("accountInfo");
|
|
4187
4191
|
},
|
|
4188
4192
|
SA_ACCOUNT_INFO_REFRESH() {
|
|
4189
4193
|
return new Promise((e, t) => {
|
|
@@ -4200,33 +4204,33 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4200
4204
|
* @returns {Promise<unknown>}
|
|
4201
4205
|
*/
|
|
4202
4206
|
SA_ACCOUNT_INFO_PARSE(e) {
|
|
4203
|
-
return e = e ||
|
|
4207
|
+
return e = e || fa, cvUtils.isEmpty(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = cvUtils.parseNumber(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
|
|
4204
4208
|
},
|
|
4205
4209
|
SA_ACCOUNT_INFO_SET(e) {
|
|
4206
4210
|
return new Promise(async (t) => {
|
|
4207
4211
|
const n = JSON.parse(JSON.stringify(e));
|
|
4208
|
-
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n),
|
|
4212
|
+
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n), P.localSet(at, this.accountInfo), t();
|
|
4209
4213
|
});
|
|
4210
4214
|
},
|
|
4211
4215
|
SA_ACCOUNT_GET_NICK() {
|
|
4212
4216
|
return this.account_nick;
|
|
4213
4217
|
},
|
|
4214
4218
|
SA_ACCOUNT_REFRESH() {
|
|
4215
|
-
this.accountInfo =
|
|
4219
|
+
this.accountInfo = P.localGet(at) || fa, this.accountToken = P.localGet(Me) || "", this.accountJwt = P.localGet(St) || "", fe.setDefHeaders({
|
|
4216
4220
|
syOpenAppToken: this.accountToken || "",
|
|
4217
4221
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4218
4222
|
});
|
|
4219
4223
|
},
|
|
4220
4224
|
// 登录
|
|
4221
4225
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4222
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e),
|
|
4226
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), P.localSet(at, e), P.localSet(Me, e.token_access || ""), P.localSet(St, e.token_jwt || ""), P.localSet(vt, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(Me, e.token_access || ""), Ot().QK_SEND_LOGIN_MSG();
|
|
4223
4227
|
},
|
|
4224
4228
|
/**
|
|
4225
4229
|
* 登出(打开登录页面)
|
|
4226
4230
|
* @param appendFrom
|
|
4227
4231
|
*/
|
|
4228
4232
|
SA_ACCOUNT_LOGOUT() {
|
|
4229
|
-
this.ACCOUNT_SET_PREV(),
|
|
4233
|
+
this.ACCOUNT_SET_PREV(), P.sessionClear(), P.localSet(at, ""), P.localSet(Me, ""), P.localSet(St, ""), P.localSet(vt, ""), P.localDel(at), P.localDel(Me), P.localDel(St), P.localDel(vt), this.SA_ACCOUNT_REFRESH(), Ot().QK_SEND_LOGOUT_MSG();
|
|
4230
4234
|
},
|
|
4231
4235
|
/**
|
|
4232
4236
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4234,9 +4238,9 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4234
4238
|
async SA_ACCOUNT_RBAC_REFRESH(e) {
|
|
4235
4239
|
return e = e || !1, new Promise(async (t) => {
|
|
4236
4240
|
if (this.accountToken) {
|
|
4237
|
-
let n =
|
|
4241
|
+
let n = P.localGet(vt) || "";
|
|
4238
4242
|
e && n == "" ? await fe.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
|
|
4239
|
-
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (
|
|
4243
|
+
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (P.localSet(vt, r.data || ""), t(r.data || ""));
|
|
4240
4244
|
}).catch(() => {
|
|
4241
4245
|
t("");
|
|
4242
4246
|
}) : t(n);
|
|
@@ -4248,15 +4252,15 @@ const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4248
4252
|
}
|
|
4249
4253
|
}
|
|
4250
4254
|
});
|
|
4251
|
-
function
|
|
4255
|
+
function _a(e) {
|
|
4252
4256
|
return e = e.replace(/^\//, ""), e = e.replace(/\//g, "_"), e;
|
|
4253
4257
|
}
|
|
4254
|
-
function
|
|
4258
|
+
function us(e, t) {
|
|
4255
4259
|
t = t || 1;
|
|
4256
4260
|
let n = "";
|
|
4257
4261
|
e.path ? n = e.path : e.component && (n = e.component), e.component || (n = "");
|
|
4258
4262
|
let r = "";
|
|
4259
|
-
if (e.name ? r = e.name : n ? r =
|
|
4263
|
+
if (e.name ? r = e.name : n ? r = _a(n) : r = "temp_name_" + t, r = _a(r), e.children && e.children.length > 0) {
|
|
4260
4264
|
let a = e.children, s = 0, o = 0;
|
|
4261
4265
|
a.forEach((i, l) => {
|
|
4262
4266
|
i.isMenu == !0 && s++, i.isRbac == !0 && o++;
|
|
@@ -4268,12 +4272,12 @@ function ls(e, t) {
|
|
|
4268
4272
|
name: r
|
|
4269
4273
|
};
|
|
4270
4274
|
}
|
|
4271
|
-
const
|
|
4272
|
-
function
|
|
4275
|
+
const Xl = {}, Ql = Xl, Jl = Ql.VITE_SY_PRODUCT_SIGN;
|
|
4276
|
+
function fs(e) {
|
|
4273
4277
|
let t = Object.prototype.toString.call(e);
|
|
4274
4278
|
if (t != "[object String]" && t != "[object Array]")
|
|
4275
4279
|
return !1;
|
|
4276
|
-
let n =
|
|
4280
|
+
let n = P.localGet("syCacheAppRbac") || "";
|
|
4277
4281
|
if (t == "[object String]")
|
|
4278
4282
|
return Kt(e, n);
|
|
4279
4283
|
if (t === "[object Array]") {
|
|
@@ -4287,8 +4291,8 @@ function cs(e) {
|
|
|
4287
4291
|
function Kt(e, t) {
|
|
4288
4292
|
if (e = e || "", e = e.trim(), e == "")
|
|
4289
4293
|
return !1;
|
|
4290
|
-
e.includes("@") || (e = `${
|
|
4291
|
-
let n = t ||
|
|
4294
|
+
e.includes("@") || (e = `${Jl}@${e}`);
|
|
4295
|
+
let n = t || P.localGet("syCacheAppRbac") || "";
|
|
4292
4296
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4293
4297
|
}
|
|
4294
4298
|
const Zt = De("cloudSdkProductStore", {
|
|
@@ -4297,7 +4301,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4297
4301
|
* 默认应用信息
|
|
4298
4302
|
*/
|
|
4299
4303
|
defaultProductInfo: {
|
|
4300
|
-
info_title:
|
|
4304
|
+
info_title: Tt().syProductTitle || "ShiyunProduct",
|
|
4301
4305
|
info_logo: "",
|
|
4302
4306
|
info_version: "v1.25.xxxx"
|
|
4303
4307
|
// 版本
|
|
@@ -4344,11 +4348,11 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4344
4348
|
let i = [];
|
|
4345
4349
|
for (let l in s) {
|
|
4346
4350
|
let c = s[l];
|
|
4347
|
-
c =
|
|
4351
|
+
c = us(c, l), c.isMenu === !0 && (c.isRbac && !c.path || (c.children && c.children.length > 0 && (c.children = t(c.children, o)), c.collapsable === !1 && e.push(c.name), Kt(c.name, o) && i.push(c)));
|
|
4348
4352
|
}
|
|
4349
4353
|
return i;
|
|
4350
4354
|
}
|
|
4351
|
-
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r =
|
|
4355
|
+
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r = P.localGet("syCacheAppRbac") || "", a = t(n, r);
|
|
4352
4356
|
return this.menuOpeneds = e, this.menuOnly = a, a;
|
|
4353
4357
|
},
|
|
4354
4358
|
// 获取菜单
|
|
@@ -4356,36 +4360,36 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4356
4360
|
return this.menuTree;
|
|
4357
4361
|
}
|
|
4358
4362
|
}
|
|
4359
|
-
}),
|
|
4363
|
+
}), zl = [
|
|
4360
4364
|
{
|
|
4361
4365
|
meta: { title: "登录", isAlone: !0 },
|
|
4362
4366
|
isAlone: !0,
|
|
4363
4367
|
name: "login",
|
|
4364
4368
|
path: "/login",
|
|
4365
|
-
component: () => import("./login-
|
|
4369
|
+
component: () => import("./login-BAzOP8jW.js")
|
|
4366
4370
|
}
|
|
4367
|
-
],
|
|
4371
|
+
], Zl = [
|
|
4368
4372
|
{
|
|
4369
4373
|
meta: { title: "不建议单独运行", isAlone: !0 },
|
|
4370
4374
|
isAlone: !0,
|
|
4371
4375
|
name: "alone_run",
|
|
4372
4376
|
path: "/alone_run",
|
|
4373
|
-
component: () => import("./alone_run-
|
|
4377
|
+
component: () => import("./alone_run-D0vsS5Na.js")
|
|
4374
4378
|
},
|
|
4375
4379
|
{
|
|
4376
4380
|
meta: { title: "错误", isAlone: !0 },
|
|
4377
4381
|
isAlone: !0,
|
|
4378
4382
|
name: "404",
|
|
4379
4383
|
path: "/:catchAll(.*)",
|
|
4380
|
-
component: () => import("./404-
|
|
4384
|
+
component: () => import("./404-Dge6mEmg.js")
|
|
4381
4385
|
}
|
|
4382
|
-
],
|
|
4386
|
+
], ec = [
|
|
4383
4387
|
{
|
|
4384
4388
|
meta: { title: "空页面", isAlone: !1 },
|
|
4385
4389
|
isAlone: !1,
|
|
4386
4390
|
name: "none",
|
|
4387
4391
|
path: "/none",
|
|
4388
|
-
component: () => import("./none-
|
|
4392
|
+
component: () => import("./none-CrgAZnxI.js")
|
|
4389
4393
|
}
|
|
4390
4394
|
], en = De("cloudSdkPermissionStore", {
|
|
4391
4395
|
state: () => ({
|
|
@@ -4395,7 +4399,7 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4395
4399
|
// 窗口刷新
|
|
4396
4400
|
routeAlive: 0,
|
|
4397
4401
|
// 权限列表
|
|
4398
|
-
rbacLastStr:
|
|
4402
|
+
rbacLastStr: P.localGet("syCacheAppRbac") || "",
|
|
4399
4403
|
rbacArr: []
|
|
4400
4404
|
}),
|
|
4401
4405
|
actions: {
|
|
@@ -4416,13 +4420,13 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4416
4420
|
* @param {*} router
|
|
4417
4421
|
*/
|
|
4418
4422
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
4419
|
-
t = t || "", t != "console_passport" && e.addRoute(...
|
|
4423
|
+
t = t || "", t != "console_passport" && e.addRoute(...zl), e.addRoute(...Zl), e.addRoute(...ec);
|
|
4420
4424
|
},
|
|
4421
4425
|
/**
|
|
4422
4426
|
* 验证路由
|
|
4423
4427
|
*/
|
|
4424
4428
|
SA_PERMS_ROUTER_CHECK(e) {
|
|
4425
|
-
let n =
|
|
4429
|
+
let n = us(e).name;
|
|
4426
4430
|
return !!(this.whiteList.includes(n) || Kt(n, this.rbacLastStr));
|
|
4427
4431
|
},
|
|
4428
4432
|
SA_PERMS_ROUTER_SET(e) {
|
|
@@ -4430,14 +4434,14 @@ const Zt = De("cloudSdkProductStore", {
|
|
|
4430
4434
|
async SA_PERMS_REFRESH() {
|
|
4431
4435
|
}
|
|
4432
4436
|
}
|
|
4433
|
-
}),
|
|
4437
|
+
}), da = {
|
|
4434
4438
|
"org-business": "商家平台",
|
|
4435
4439
|
"org-operator": "运营平台",
|
|
4436
4440
|
"org-agent": "代理商平台",
|
|
4437
4441
|
"org-admin": "超管平台"
|
|
4438
4442
|
};
|
|
4439
|
-
let
|
|
4440
|
-
const
|
|
4443
|
+
let tc = da[Tt().syAppConnectRole] ? da[Tt().syAppConnectRole] : "管理系统";
|
|
4444
|
+
const nc = De("cloudSdkApplicationStore", {
|
|
4441
4445
|
state: () => ({
|
|
4442
4446
|
/**
|
|
4443
4447
|
* 平台信息
|
|
@@ -4453,7 +4457,7 @@ const ec = De("cloudSdkApplicationStore", {
|
|
|
4453
4457
|
// 标题
|
|
4454
4458
|
platinfo_short: "十云",
|
|
4455
4459
|
privacy_url: "//api.10yun.com/privacy.html",
|
|
4456
|
-
system_type:
|
|
4460
|
+
system_type: tc
|
|
4457
4461
|
// 后台系统类型
|
|
4458
4462
|
}
|
|
4459
4463
|
}),
|
|
@@ -4468,20 +4472,20 @@ const ec = De("cloudSdkApplicationStore", {
|
|
|
4468
4472
|
}
|
|
4469
4473
|
}
|
|
4470
4474
|
});
|
|
4471
|
-
function
|
|
4475
|
+
function rc() {
|
|
4472
4476
|
return new Promise(async (e) => {
|
|
4473
|
-
|
|
4477
|
+
Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
|
|
4474
4478
|
e();
|
|
4475
4479
|
});
|
|
4476
4480
|
});
|
|
4477
4481
|
}
|
|
4478
|
-
function
|
|
4482
|
+
function ac() {
|
|
4479
4483
|
return {
|
|
4480
4484
|
computed: {
|
|
4481
|
-
...Le(
|
|
4482
|
-
...Le(
|
|
4485
|
+
...Le(Ot, ["qiankunExistState"]),
|
|
4486
|
+
...Le(Pt, ["languageName", "languageList", "languageSelect"]),
|
|
4483
4487
|
...Le(Be, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
4484
|
-
...Le(
|
|
4488
|
+
...Le(cs, [
|
|
4485
4489
|
"windowWidth",
|
|
4486
4490
|
"windowHeight",
|
|
4487
4491
|
"windowActive",
|
|
@@ -4509,7 +4513,7 @@ function nc() {
|
|
|
4509
4513
|
"staffNick"
|
|
4510
4514
|
]),
|
|
4511
4515
|
...Le(Zt, ["openProductInfo", "menuBadge", "menuCurrOpeneds", "menuCurrOnly"]),
|
|
4512
|
-
...Le(
|
|
4516
|
+
...Le(nc, ["openCaseInfo"])
|
|
4513
4517
|
},
|
|
4514
4518
|
watch: {
|
|
4515
4519
|
windowActive(t) {
|
|
@@ -4524,7 +4528,7 @@ const Re = (e, t) => {
|
|
|
4524
4528
|
for (const [r, a] of t)
|
|
4525
4529
|
n[r] = a;
|
|
4526
4530
|
return n;
|
|
4527
|
-
},
|
|
4531
|
+
}, sc = {
|
|
4528
4532
|
name: "HeaderSysSettDrawer",
|
|
4529
4533
|
components: {},
|
|
4530
4534
|
props: {
|
|
@@ -4550,7 +4554,7 @@ const Re = (e, t) => {
|
|
|
4550
4554
|
Be().SA_THEMES_SET(e);
|
|
4551
4555
|
},
|
|
4552
4556
|
frameSysLanguage(e) {
|
|
4553
|
-
|
|
4557
|
+
Pt().SA_LANGUAGE_SET(e);
|
|
4554
4558
|
},
|
|
4555
4559
|
frameSidebarState(e) {
|
|
4556
4560
|
Be().SA_LAYOUT_SLIDEBAR_SET(e);
|
|
@@ -4575,8 +4579,8 @@ const Re = (e, t) => {
|
|
|
4575
4579
|
this.$parent.frameHandleCommand("clearCache");
|
|
4576
4580
|
}
|
|
4577
4581
|
}
|
|
4578
|
-
},
|
|
4579
|
-
function
|
|
4582
|
+
}, oc = { class: "cloud-sett-drawer-body" }, ic = { class: "cloud-sett-drawer-skin" };
|
|
4583
|
+
function lc(e, t, n, r, a, s) {
|
|
4580
4584
|
const o = B("el-card"), i = B("el-form-item"), l = B("el-option"), c = B("el-select"), f = B("cv-icons"), u = B("el-button"), m = B("el-switch"), p = B("el-form"), A = B("el-drawer");
|
|
4581
4585
|
return U(), J(A, {
|
|
4582
4586
|
title: "系统设置",
|
|
@@ -4586,19 +4590,19 @@ function oc(e, t, n, r, a, s) {
|
|
|
4586
4590
|
size: "450px",
|
|
4587
4591
|
"before-close": s.frameTopSysSettClose
|
|
4588
4592
|
}, {
|
|
4589
|
-
default:
|
|
4590
|
-
|
|
4593
|
+
default: D(() => [
|
|
4594
|
+
k("div", oc, [
|
|
4591
4595
|
w(p, {
|
|
4592
4596
|
labelWidth: "auto",
|
|
4593
4597
|
"label-position": "left"
|
|
4594
4598
|
}, {
|
|
4595
|
-
default:
|
|
4599
|
+
default: D(() => [
|
|
4596
4600
|
w(i, {
|
|
4597
4601
|
label: "风格",
|
|
4598
4602
|
"label-position": "top"
|
|
4599
4603
|
}, {
|
|
4600
|
-
default:
|
|
4601
|
-
|
|
4604
|
+
default: D(() => [
|
|
4605
|
+
k("div", ic, [
|
|
4602
4606
|
w(o),
|
|
4603
4607
|
w(o),
|
|
4604
4608
|
w(o)
|
|
@@ -4607,20 +4611,20 @@ function oc(e, t, n, r, a, s) {
|
|
|
4607
4611
|
_: 1
|
|
4608
4612
|
}),
|
|
4609
4613
|
w(i, { label: "主题" }, {
|
|
4610
|
-
default:
|
|
4614
|
+
default: D(() => [
|
|
4611
4615
|
w(c, {
|
|
4612
4616
|
modelValue: a.frameSysTheme,
|
|
4613
4617
|
"onUpdate:modelValue": t[0] || (t[0] = (E) => a.frameSysTheme = E),
|
|
4614
4618
|
placeholder: e.$t("选项主题"),
|
|
4615
4619
|
style: { width: "150px" }
|
|
4616
4620
|
}, {
|
|
4617
|
-
default:
|
|
4621
|
+
default: D(() => [
|
|
4618
4622
|
(U(!0), Q(he, null, Xe(e.themesList, (E, C) => (U(), J(l, {
|
|
4619
4623
|
label: e.$t(E.name),
|
|
4620
4624
|
value: E.value,
|
|
4621
4625
|
key: C
|
|
4622
4626
|
}, {
|
|
4623
|
-
default:
|
|
4627
|
+
default: D(() => [
|
|
4624
4628
|
te(ne(e.$t(E.name)), 1)
|
|
4625
4629
|
]),
|
|
4626
4630
|
_: 2
|
|
@@ -4632,13 +4636,13 @@ function oc(e, t, n, r, a, s) {
|
|
|
4632
4636
|
_: 1
|
|
4633
4637
|
}),
|
|
4634
4638
|
w(i, { label: "暗黑模式" }, {
|
|
4635
|
-
default:
|
|
4639
|
+
default: D(() => [
|
|
4636
4640
|
a.frameSysTheme == "light" ? (U(), J(u, {
|
|
4637
4641
|
key: 0,
|
|
4638
4642
|
onClick: t[1] || (t[1] = (E) => a.frameSysTheme = "dark"),
|
|
4639
4643
|
class: "light-switch"
|
|
4640
4644
|
}, {
|
|
4641
|
-
default:
|
|
4645
|
+
default: D(() => [
|
|
4642
4646
|
w(f, { type: "cvSvgViewModeDark" })
|
|
4643
4647
|
]),
|
|
4644
4648
|
_: 1
|
|
@@ -4648,7 +4652,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4648
4652
|
onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
|
|
4649
4653
|
class: "dark-switch"
|
|
4650
4654
|
}, {
|
|
4651
|
-
default:
|
|
4655
|
+
default: D(() => [
|
|
4652
4656
|
w(f, { type: "cvSvgViewModeLight" })
|
|
4653
4657
|
]),
|
|
4654
4658
|
_: 1
|
|
@@ -4657,7 +4661,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4657
4661
|
_: 1
|
|
4658
4662
|
}),
|
|
4659
4663
|
w(i, { label: "侧栏显示" }, {
|
|
4660
|
-
default:
|
|
4664
|
+
default: D(() => [
|
|
4661
4665
|
w(m, {
|
|
4662
4666
|
modelValue: a.frameSidebarState,
|
|
4663
4667
|
"onUpdate:modelValue": t[3] || (t[3] = (E) => a.frameSidebarState = E),
|
|
@@ -4670,7 +4674,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4670
4674
|
_: 1
|
|
4671
4675
|
}),
|
|
4672
4676
|
w(i, { label: "导航标签栏" }, {
|
|
4673
|
-
default:
|
|
4677
|
+
default: D(() => [
|
|
4674
4678
|
w(m, {
|
|
4675
4679
|
modelValue: a.frameSysNavTabs,
|
|
4676
4680
|
"onUpdate:modelValue": t[4] || (t[4] = (E) => a.frameSysNavTabs = E),
|
|
@@ -4683,19 +4687,19 @@ function oc(e, t, n, r, a, s) {
|
|
|
4683
4687
|
_: 1
|
|
4684
4688
|
}),
|
|
4685
4689
|
w(i, { label: "语言" }, {
|
|
4686
|
-
default:
|
|
4690
|
+
default: D(() => [
|
|
4687
4691
|
w(c, {
|
|
4688
4692
|
modelValue: a.frameSysLanguage,
|
|
4689
4693
|
"onUpdate:modelValue": t[5] || (t[5] = (E) => a.frameSysLanguage = E),
|
|
4690
4694
|
placeholder: e.$t("选项语言"),
|
|
4691
4695
|
style: { width: "150px" }
|
|
4692
4696
|
}, {
|
|
4693
|
-
default:
|
|
4697
|
+
default: D(() => [
|
|
4694
4698
|
(U(!0), Q(he, null, Xe(e.languageSelect, (E, C) => (U(), J(l, {
|
|
4695
4699
|
label: E.label,
|
|
4696
4700
|
value: E.value
|
|
4697
4701
|
}, {
|
|
4698
|
-
default:
|
|
4702
|
+
default: D(() => [
|
|
4699
4703
|
te(ne(E.label), 1)
|
|
4700
4704
|
]),
|
|
4701
4705
|
_: 2
|
|
@@ -4707,9 +4711,9 @@ function oc(e, t, n, r, a, s) {
|
|
|
4707
4711
|
_: 1
|
|
4708
4712
|
}),
|
|
4709
4713
|
w(i, { label: "版本" }, {
|
|
4710
|
-
default:
|
|
4714
|
+
default: D(() => [
|
|
4711
4715
|
w(u, { onClick: s.frameUpdateVersion }, {
|
|
4712
|
-
default:
|
|
4716
|
+
default: D(() => [
|
|
4713
4717
|
te(ne(e.$t("更新版本")), 1)
|
|
4714
4718
|
]),
|
|
4715
4719
|
_: 1
|
|
@@ -4718,9 +4722,9 @@ function oc(e, t, n, r, a, s) {
|
|
|
4718
4722
|
_: 1
|
|
4719
4723
|
}),
|
|
4720
4724
|
w(i, { label: "缓存" }, {
|
|
4721
|
-
default:
|
|
4725
|
+
default: D(() => [
|
|
4722
4726
|
w(u, { onClick: s.frameClearCache }, {
|
|
4723
|
-
default:
|
|
4727
|
+
default: D(() => [
|
|
4724
4728
|
te(ne(e.$t("清除缓存")), 1)
|
|
4725
4729
|
]),
|
|
4726
4730
|
_: 1
|
|
@@ -4736,7 +4740,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4736
4740
|
_: 1
|
|
4737
4741
|
}, 8, ["modelValue", "before-close"]);
|
|
4738
4742
|
}
|
|
4739
|
-
const
|
|
4743
|
+
const cc = /* @__PURE__ */ Re(sc, [["render", lc]]), uc = {
|
|
4740
4744
|
props: {
|
|
4741
4745
|
className: ""
|
|
4742
4746
|
},
|
|
@@ -4758,21 +4762,21 @@ const ic = /* @__PURE__ */ Re(rc, [["render", oc]]), lc = {
|
|
|
4758
4762
|
},
|
|
4759
4763
|
methods: {}
|
|
4760
4764
|
};
|
|
4761
|
-
function
|
|
4765
|
+
function fc(e, t, n, r, a, s) {
|
|
4762
4766
|
const o = B("router-view");
|
|
4763
4767
|
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4764
|
-
default:
|
|
4765
|
-
w(
|
|
4768
|
+
default: D(({ Component: i, route: l }) => [
|
|
4769
|
+
w(Gs, {
|
|
4766
4770
|
name: a.routeRefreshAnimation,
|
|
4767
4771
|
mode: "out-in",
|
|
4768
4772
|
appear: ""
|
|
4769
4773
|
}, {
|
|
4770
|
-
default:
|
|
4774
|
+
default: D(() => [
|
|
4771
4775
|
(U(), Q("div", {
|
|
4772
|
-
class:
|
|
4776
|
+
class: ya(n.className),
|
|
4773
4777
|
key: l.path
|
|
4774
4778
|
}, [
|
|
4775
|
-
(U(), J(
|
|
4779
|
+
(U(), J($s(i)))
|
|
4776
4780
|
], 2))
|
|
4777
4781
|
]),
|
|
4778
4782
|
_: 2
|
|
@@ -4781,7 +4785,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4781
4785
|
_: 1
|
|
4782
4786
|
});
|
|
4783
4787
|
}
|
|
4784
|
-
const
|
|
4788
|
+
const _c = /* @__PURE__ */ Re(uc, [["render", fc]]), ma = (e) => Math.pow(e, 3), dc = (e) => e < 0.5 ? ma(e * 2) / 2 : 1 - ma((1 - e) * 2) / 2, mc = {
|
|
4785
4789
|
name: "SameNavTabs",
|
|
4786
4790
|
data() {
|
|
4787
4791
|
return {
|
|
@@ -4831,7 +4835,7 @@ const uc = /* @__PURE__ */ Re(lc, [["render", cc]]), _a = (e) => Math.pow(e, 3),
|
|
|
4831
4835
|
changeGdtBase() {
|
|
4832
4836
|
const e = this.$refs.navScroll1.wrap, t = Date.now(), n = e.scrollLeft, r = window.requestAnimationFrame || ((s) => setTimeout(s, 16)), a = () => {
|
|
4833
4837
|
const s = (Date.now() - t) / 500;
|
|
4834
|
-
s < 1 ? (e.scrollLeft = n * (1 -
|
|
4838
|
+
s < 1 ? (e.scrollLeft = n * (1 - dc(s)), r(a)) : e.scrollLeft = 0;
|
|
4835
4839
|
};
|
|
4836
4840
|
r(a);
|
|
4837
4841
|
},
|
|
@@ -4903,35 +4907,35 @@ const uc = /* @__PURE__ */ Re(lc, [["render", cc]]), _a = (e) => Math.pow(e, 3),
|
|
|
4903
4907
|
this.contextMenuVisible = !1;
|
|
4904
4908
|
}
|
|
4905
4909
|
}
|
|
4906
|
-
},
|
|
4907
|
-
function
|
|
4910
|
+
}, hc = { class: "cloud-navtabs__wrap" }, gc = { class: "cloud-navtabs__box" }, pc = { class: "cloud-navtabs__main" }, Ec = { class: "cloud-navtabs__tags" };
|
|
4911
|
+
function bc(e, t, n, r, a, s) {
|
|
4908
4912
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
4909
|
-
return U(), Q("div",
|
|
4910
|
-
|
|
4913
|
+
return U(), Q("div", hc, [
|
|
4914
|
+
k("div", gc, [
|
|
4911
4915
|
w(i, {
|
|
4912
4916
|
class: "btn-opt-left",
|
|
4913
4917
|
onClick: s.changeGdtLeft
|
|
4914
4918
|
}, {
|
|
4915
|
-
default:
|
|
4919
|
+
default: D(() => [
|
|
4916
4920
|
w(o, { type: "ElIconArrowLeft" })
|
|
4917
4921
|
]),
|
|
4918
4922
|
_: 1
|
|
4919
4923
|
}, 8, ["onClick"]),
|
|
4920
|
-
|
|
4924
|
+
k("div", pc, [
|
|
4921
4925
|
w(c, { ref: "navScroll1" }, {
|
|
4922
|
-
default:
|
|
4923
|
-
|
|
4926
|
+
default: D(() => [
|
|
4927
|
+
k("div", Ec, [
|
|
4924
4928
|
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4925
4929
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
4926
|
-
class:
|
|
4930
|
+
class: ya(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
4927
4931
|
key: u.name,
|
|
4928
4932
|
closable: u.path !== "/index",
|
|
4929
4933
|
onClose: (p) => s.removeTag(u, m),
|
|
4930
4934
|
onClick: (p) => s.changeMenu(u),
|
|
4931
4935
|
"disable-transitions": "",
|
|
4932
|
-
onContextmenu:
|
|
4936
|
+
onContextmenu: Ws(s.openContextMenu, ["prevent"])
|
|
4933
4937
|
}, {
|
|
4934
|
-
default:
|
|
4938
|
+
default: D(() => [
|
|
4935
4939
|
te(ne(u.title), 1)
|
|
4936
4940
|
]),
|
|
4937
4941
|
_: 2
|
|
@@ -4945,72 +4949,72 @@ function pc(e, t, n, r, a, s) {
|
|
|
4945
4949
|
class: "btn-opt-right",
|
|
4946
4950
|
onClick: s.changeGdtRight
|
|
4947
4951
|
}, {
|
|
4948
|
-
default:
|
|
4952
|
+
default: D(() => [
|
|
4949
4953
|
w(o, { type: "ElIconArrowRight" })
|
|
4950
4954
|
]),
|
|
4951
4955
|
_: 1
|
|
4952
4956
|
}, 8, ["onClick"]),
|
|
4953
4957
|
w(i, { class: "btn-opt-close" }, {
|
|
4954
|
-
default:
|
|
4958
|
+
default: D(() => [
|
|
4955
4959
|
t[5] || (t[5] = te(" 关闭操作 ")),
|
|
4956
4960
|
w(o, { type: "ElIconCaretBottom" })
|
|
4957
4961
|
]),
|
|
4958
4962
|
_: 1
|
|
4959
4963
|
}),
|
|
4960
|
-
|
|
4964
|
+
Na(k("div", {
|
|
4961
4965
|
class: "cloud-navtabs__contextmenu",
|
|
4962
4966
|
style: Dn(a.contextMenuStyle)
|
|
4963
4967
|
}, [
|
|
4964
|
-
|
|
4968
|
+
k("ul", {
|
|
4965
4969
|
style: Dn({ left: a.left + "px", top: a.top + "px" })
|
|
4966
4970
|
}, [
|
|
4967
|
-
|
|
4971
|
+
k("li", null, [
|
|
4968
4972
|
w(f, {
|
|
4969
4973
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
4970
4974
|
}, {
|
|
4971
|
-
default:
|
|
4975
|
+
default: D(() => t[6] || (t[6] = [
|
|
4972
4976
|
te("重新加载")
|
|
4973
4977
|
])),
|
|
4974
4978
|
_: 1
|
|
4975
4979
|
})
|
|
4976
4980
|
]),
|
|
4977
|
-
|
|
4981
|
+
k("li", null, [
|
|
4978
4982
|
w(f, {
|
|
4979
4983
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
4980
4984
|
}, {
|
|
4981
|
-
default:
|
|
4985
|
+
default: D(() => t[7] || (t[7] = [
|
|
4982
4986
|
te("关闭所有")
|
|
4983
4987
|
])),
|
|
4984
4988
|
_: 1
|
|
4985
4989
|
})
|
|
4986
4990
|
]),
|
|
4987
|
-
|
|
4991
|
+
k("li", null, [
|
|
4988
4992
|
w(f, {
|
|
4989
4993
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
4990
4994
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
4991
4995
|
}, {
|
|
4992
|
-
default:
|
|
4996
|
+
default: D(() => t[8] || (t[8] = [
|
|
4993
4997
|
te("关闭左边")
|
|
4994
4998
|
])),
|
|
4995
4999
|
_: 1
|
|
4996
5000
|
}, 8, ["disabled"])
|
|
4997
5001
|
]),
|
|
4998
|
-
|
|
5002
|
+
k("li", null, [
|
|
4999
5003
|
w(f, {
|
|
5000
5004
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
5001
5005
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
5002
5006
|
}, {
|
|
5003
|
-
default:
|
|
5007
|
+
default: D(() => t[9] || (t[9] = [
|
|
5004
5008
|
te("关闭右边")
|
|
5005
5009
|
])),
|
|
5006
5010
|
_: 1
|
|
5007
5011
|
}, 8, ["disabled"])
|
|
5008
5012
|
]),
|
|
5009
|
-
|
|
5013
|
+
k("li", null, [
|
|
5010
5014
|
w(f, {
|
|
5011
5015
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
5012
5016
|
}, {
|
|
5013
|
-
default:
|
|
5017
|
+
default: D(() => t[10] || (t[10] = [
|
|
5014
5018
|
te("关闭其他")
|
|
5015
5019
|
])),
|
|
5016
5020
|
_: 1
|
|
@@ -5018,12 +5022,12 @@ function pc(e, t, n, r, a, s) {
|
|
|
5018
5022
|
])
|
|
5019
5023
|
], 4)
|
|
5020
5024
|
], 4), [
|
|
5021
|
-
[
|
|
5025
|
+
[Ta, a.contextMenuVisible]
|
|
5022
5026
|
])
|
|
5023
5027
|
])
|
|
5024
5028
|
]);
|
|
5025
5029
|
}
|
|
5026
|
-
const
|
|
5030
|
+
const Sc = /* @__PURE__ */ Re(mc, [["render", bc]]), vc = {
|
|
5027
5031
|
name: "SidebarMenuItem",
|
|
5028
5032
|
props: {
|
|
5029
5033
|
menuData: {
|
|
@@ -5068,14 +5072,14 @@ const Ec = /* @__PURE__ */ Re(_c, [["render", pc]]), bc = {
|
|
|
5068
5072
|
this.jumpsAuth(e.path);
|
|
5069
5073
|
}
|
|
5070
5074
|
}
|
|
5071
|
-
},
|
|
5075
|
+
}, Ac = { class: "cloud-subapp-menu-icon" }, yc = { key: 1 }, Nc = {
|
|
5072
5076
|
key: 0,
|
|
5073
5077
|
class: "cloud-subapp-menu-icon"
|
|
5074
|
-
},
|
|
5078
|
+
}, Tc = {
|
|
5075
5079
|
key: 1,
|
|
5076
5080
|
class: "cloud-subapp-menu-icon"
|
|
5077
5081
|
};
|
|
5078
|
-
function
|
|
5082
|
+
function Oc(e, t, n, r, a, s) {
|
|
5079
5083
|
const o = B("cv-icons"), i = B("SidebarMenuItem", !0), l = B("el-sub-menu"), c = B("cv-badge"), f = B("el-menu-item");
|
|
5080
5084
|
return U(!0), Q(he, null, Xe(n.menuData, (u) => (U(), Q(he, null, [
|
|
5081
5085
|
u.isMenu == !0 ? (U(), Q(he, { key: 0 }, [
|
|
@@ -5083,18 +5087,18 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5083
5087
|
key: u.name,
|
|
5084
5088
|
index: u.name
|
|
5085
5089
|
}, {
|
|
5086
|
-
title:
|
|
5087
|
-
|
|
5090
|
+
title: D(() => [
|
|
5091
|
+
k("div", Ac, [
|
|
5088
5092
|
u.meta.icon ? (U(), J(o, {
|
|
5089
5093
|
key: 0,
|
|
5090
5094
|
type: u.meta.icon,
|
|
5091
5095
|
size: "16"
|
|
5092
5096
|
}, null, 8, ["type"])) : ue("", !0),
|
|
5093
|
-
!u.meta.icon && n.collapse ? (U(), Q("span",
|
|
5097
|
+
!u.meta.icon && n.collapse ? (U(), Q("span", yc, ne(u.meta.short || u.meta.title), 1)) : ue("", !0)
|
|
5094
5098
|
]),
|
|
5095
|
-
|
|
5099
|
+
k("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5096
5100
|
]),
|
|
5097
|
-
default:
|
|
5101
|
+
default: D(() => [
|
|
5098
5102
|
w(i, {
|
|
5099
5103
|
appData: n.appData,
|
|
5100
5104
|
menuData: u.children,
|
|
@@ -5108,11 +5112,11 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5108
5112
|
key: "b" + u.name,
|
|
5109
5113
|
onClick: (m) => s.handleOpenMenu(u)
|
|
5110
5114
|
}, {
|
|
5111
|
-
title:
|
|
5115
|
+
title: D(() => [
|
|
5112
5116
|
te(ne(u.meta.short || u.meta.title), 1)
|
|
5113
5117
|
]),
|
|
5114
|
-
default:
|
|
5115
|
-
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div",
|
|
5118
|
+
default: D(() => [
|
|
5119
|
+
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Nc, ne(u.meta.short || u.meta.title), 1)) : (U(), Q("div", Tc, [
|
|
5116
5120
|
u.meta.icon ? (U(), J(o, {
|
|
5117
5121
|
key: 0,
|
|
5118
5122
|
type: u.meta.icon,
|
|
@@ -5135,10 +5139,10 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5135
5139
|
], 64)) : ue("", !0)
|
|
5136
5140
|
], 64))), 256);
|
|
5137
5141
|
}
|
|
5138
|
-
const
|
|
5142
|
+
const Ic = /* @__PURE__ */ Re(vc, [["render", Oc]]), Cc = {
|
|
5139
5143
|
name: "SidebarMenuBox",
|
|
5140
5144
|
components: {
|
|
5141
|
-
SidebarMenuItem:
|
|
5145
|
+
SidebarMenuItem: Ic
|
|
5142
5146
|
},
|
|
5143
5147
|
props: {
|
|
5144
5148
|
collapse: {
|
|
@@ -5179,12 +5183,12 @@ const Tc = /* @__PURE__ */ Re(bc, [["render", Nc]]), Oc = {
|
|
|
5179
5183
|
handleClose(e, t) {
|
|
5180
5184
|
}
|
|
5181
5185
|
}
|
|
5182
|
-
},
|
|
5183
|
-
function
|
|
5186
|
+
}, Lc = { class: "cloud-subapp-wrap" }, wc = { class: "cloud-sidebar__title" }, Dc = { class: "cloud-subapp-menu-box" };
|
|
5187
|
+
function Rc(e, t, n, r, a, s) {
|
|
5184
5188
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
5185
|
-
return U(), Q("div",
|
|
5186
|
-
|
|
5187
|
-
|
|
5189
|
+
return U(), Q("div", Lc, [
|
|
5190
|
+
k("div", wc, ne(e.openProductInfo.info_title), 1),
|
|
5191
|
+
k("div", Dc, [
|
|
5188
5192
|
w(i, {
|
|
5189
5193
|
collapse: n.collapse,
|
|
5190
5194
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -5192,7 +5196,7 @@ function wc(e, t, n, r, a, s) {
|
|
|
5192
5196
|
onOpen: s.handleOpen,
|
|
5193
5197
|
onClose: s.handleClose
|
|
5194
5198
|
}, {
|
|
5195
|
-
default:
|
|
5199
|
+
default: D(() => [
|
|
5196
5200
|
w(o, {
|
|
5197
5201
|
appData: e.openProductInfo,
|
|
5198
5202
|
menuData: a.menuCurrList,
|
|
@@ -5204,7 +5208,7 @@ function wc(e, t, n, r, a, s) {
|
|
|
5204
5208
|
])
|
|
5205
5209
|
]);
|
|
5206
5210
|
}
|
|
5207
|
-
const
|
|
5211
|
+
const kc = /* @__PURE__ */ Re(Cc, [["render", Rc]]), Pc = {
|
|
5208
5212
|
name: "ChangePassword",
|
|
5209
5213
|
props: {
|
|
5210
5214
|
modelValue: {
|
|
@@ -5255,8 +5259,8 @@ const Dc = /* @__PURE__ */ Re(Oc, [["render", wc]]), Rc = {
|
|
|
5255
5259
|
});
|
|
5256
5260
|
}
|
|
5257
5261
|
}
|
|
5258
|
-
},
|
|
5259
|
-
function
|
|
5262
|
+
}, Fc = { class: "dialog-footer" };
|
|
5263
|
+
function Mc(e, t, n, r, a, s) {
|
|
5260
5264
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
5261
5265
|
return U(), J(f, {
|
|
5262
5266
|
width: 520,
|
|
@@ -5265,10 +5269,10 @@ function Pc(e, t, n, r, a, s) {
|
|
|
5265
5269
|
title: "修改密码",
|
|
5266
5270
|
onClose: s.handleCancel
|
|
5267
5271
|
}, {
|
|
5268
|
-
footer:
|
|
5269
|
-
|
|
5272
|
+
footer: D(() => [
|
|
5273
|
+
k("div", Fc, [
|
|
5270
5274
|
w(c, { onClick: s.handleCancel }, {
|
|
5271
|
-
default:
|
|
5275
|
+
default: D(() => t[4] || (t[4] = [
|
|
5272
5276
|
te("取 消")
|
|
5273
5277
|
])),
|
|
5274
5278
|
_: 1
|
|
@@ -5277,24 +5281,24 @@ function Pc(e, t, n, r, a, s) {
|
|
|
5277
5281
|
type: "primary",
|
|
5278
5282
|
onClick: s.handleBeforeOk
|
|
5279
5283
|
}, {
|
|
5280
|
-
default:
|
|
5284
|
+
default: D(() => t[5] || (t[5] = [
|
|
5281
5285
|
te("确 定")
|
|
5282
5286
|
])),
|
|
5283
5287
|
_: 1
|
|
5284
5288
|
}, 8, ["onClick"])
|
|
5285
5289
|
])
|
|
5286
5290
|
]),
|
|
5287
|
-
default:
|
|
5291
|
+
default: D(() => [
|
|
5288
5292
|
w(l, {
|
|
5289
5293
|
model: a.formData,
|
|
5290
5294
|
"label-width": "auto"
|
|
5291
5295
|
}, {
|
|
5292
|
-
default:
|
|
5296
|
+
default: D(() => [
|
|
5293
5297
|
w(i, {
|
|
5294
5298
|
prop: "old_pwd",
|
|
5295
5299
|
label: "原密码"
|
|
5296
5300
|
}, {
|
|
5297
|
-
default:
|
|
5301
|
+
default: D(() => [
|
|
5298
5302
|
w(o, {
|
|
5299
5303
|
type: "password",
|
|
5300
5304
|
"show-password": "",
|
|
@@ -5308,7 +5312,7 @@ function Pc(e, t, n, r, a, s) {
|
|
|
5308
5312
|
prop: "new_pwd1",
|
|
5309
5313
|
label: "新密码"
|
|
5310
5314
|
}, {
|
|
5311
|
-
default:
|
|
5315
|
+
default: D(() => [
|
|
5312
5316
|
w(o, {
|
|
5313
5317
|
type: "password",
|
|
5314
5318
|
"show-password": "",
|
|
@@ -5322,7 +5326,7 @@ function Pc(e, t, n, r, a, s) {
|
|
|
5322
5326
|
prop: "new_pwd2",
|
|
5323
5327
|
label: "确认密码"
|
|
5324
5328
|
}, {
|
|
5325
|
-
default:
|
|
5329
|
+
default: D(() => [
|
|
5326
5330
|
w(o, {
|
|
5327
5331
|
type: "password",
|
|
5328
5332
|
"show-password": "",
|
|
@@ -5339,7 +5343,7 @@ function Pc(e, t, n, r, a, s) {
|
|
|
5339
5343
|
_: 1
|
|
5340
5344
|
}, 8, ["modelValue", "onClose"]);
|
|
5341
5345
|
}
|
|
5342
|
-
const
|
|
5346
|
+
const Uc = /* @__PURE__ */ Re(Pc, [["render", Mc]]), Bc = {
|
|
5343
5347
|
name: "SwitchBusiness",
|
|
5344
5348
|
props: {
|
|
5345
5349
|
modelValue: {
|
|
@@ -5423,21 +5427,21 @@ const Fc = /* @__PURE__ */ Re(Rc, [["render", Pc]]), Mc = {
|
|
|
5423
5427
|
// return segs
|
|
5424
5428
|
// }
|
|
5425
5429
|
}
|
|
5426
|
-
},
|
|
5427
|
-
function
|
|
5430
|
+
}, xc = { class: "cloud-login-change-wrap" }, Vc = { class: "cloud-login-change-box1" }, Gc = { class: "cloud-login-change-search" }, $c = { class: "cloud-login-change-box2" }, Wc = { class: "cloud-login-change-group-box" }, Yc = { class: "cloud-login-change-group-title" }, Hc = { class: "cloud-login-change-group-sublist" }, Kc = ["onClick"], jc = { class: "cloud-login-change-item-left" }, qc = { class: "cloud-login-change-item-left-icon" }, Xc = ["src"], Qc = { class: "cloud-login-change-item-right" }, Jc = { class: "cloud-login-change-item-right-label" }, zc = { class: "cloud-login-change-item-right-label2" }, Zc = { class: "cloud-login-change-item-more" };
|
|
5431
|
+
function eu(e, t, n, r, a, s) {
|
|
5428
5432
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
5429
|
-
return U(), Q("div",
|
|
5430
|
-
|
|
5431
|
-
|
|
5433
|
+
return U(), Q("div", xc, [
|
|
5434
|
+
k("div", Vc, [
|
|
5435
|
+
k("div", {
|
|
5432
5436
|
class: "cloud-login-change-reset",
|
|
5433
5437
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
5434
5438
|
}, ne(n.reselectTitle), 1),
|
|
5435
|
-
t[3] || (t[3] =
|
|
5436
|
-
t[4] || (t[4] =
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
+
t[3] || (t[3] = k("div", { class: "cloud-login-change-title" }, "选择商户", -1)),
|
|
5440
|
+
t[4] || (t[4] = k("div", { class: "cloud-login-change-desc" }, [
|
|
5441
|
+
k("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
5442
|
+
k("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
5439
5443
|
], -1)),
|
|
5440
|
-
|
|
5444
|
+
k("div", Gc, [
|
|
5441
5445
|
w(o, {
|
|
5442
5446
|
modelValue: a.chainKeyword,
|
|
5443
5447
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -5451,40 +5455,40 @@ function zc(e, t, n, r, a, s) {
|
|
|
5451
5455
|
size: "large",
|
|
5452
5456
|
onClick: s.handleSearch
|
|
5453
5457
|
}, {
|
|
5454
|
-
default:
|
|
5458
|
+
default: D(() => t[2] || (t[2] = [
|
|
5455
5459
|
te("搜索")
|
|
5456
5460
|
])),
|
|
5457
5461
|
_: 1
|
|
5458
5462
|
}, 8, ["onClick"])
|
|
5459
5463
|
]),
|
|
5460
|
-
|
|
5461
|
-
|
|
5464
|
+
k("div", $c, [
|
|
5465
|
+
k("div", Wc, [
|
|
5462
5466
|
(U(!0), Q(he, null, Xe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
5463
5467
|
class: "cloud-login-change-group-item",
|
|
5464
5468
|
key: f
|
|
5465
5469
|
}, [
|
|
5466
|
-
|
|
5467
|
-
|
|
5470
|
+
k("div", Yc, ne(c.title || "无") + "(" + ne(c.total) + ")", 1),
|
|
5471
|
+
k("div", Hc, [
|
|
5468
5472
|
(U(!0), Q(he, null, Xe(c.list, (u, m) => (U(), Q("div", {
|
|
5469
5473
|
class: "cloud-login-change-item-bao",
|
|
5470
5474
|
key: m,
|
|
5471
5475
|
onClick: (p) => s.chainSelection(u)
|
|
5472
5476
|
}, [
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5477
|
+
k("div", jc, [
|
|
5478
|
+
k("div", qc, [
|
|
5479
|
+
k("img", {
|
|
5476
5480
|
src: u.business_icon_cdn
|
|
5477
|
-
}, null, 8,
|
|
5481
|
+
}, null, 8, Xc)
|
|
5478
5482
|
])
|
|
5479
5483
|
]),
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5484
|
+
k("div", Qc, [
|
|
5485
|
+
k("div", Jc, ne(u.business_name), 1),
|
|
5486
|
+
k("div", zc, "【" + ne(u.acc_role_type_str) + "】", 1)
|
|
5483
5487
|
]),
|
|
5484
|
-
|
|
5488
|
+
k("div", Zc, [
|
|
5485
5489
|
w(l, { type: "ElIconArrowRight" })
|
|
5486
5490
|
])
|
|
5487
|
-
], 8,
|
|
5491
|
+
], 8, Kc))), 128))
|
|
5488
5492
|
])
|
|
5489
5493
|
]))), 128))
|
|
5490
5494
|
])
|
|
@@ -5492,15 +5496,15 @@ function zc(e, t, n, r, a, s) {
|
|
|
5492
5496
|
])
|
|
5493
5497
|
]);
|
|
5494
5498
|
}
|
|
5495
|
-
const
|
|
5499
|
+
const tu = /* @__PURE__ */ Re(Bc, [["render", eu]]), nu = {
|
|
5496
5500
|
name: "SameFrame",
|
|
5497
5501
|
components: {
|
|
5498
|
-
SidebarMenuBox:
|
|
5499
|
-
SameNavTabs:
|
|
5500
|
-
SameRouteView:
|
|
5501
|
-
HeaderSysSettDrawer:
|
|
5502
|
-
ChangePassword:
|
|
5503
|
-
SwitchBusiness:
|
|
5502
|
+
SidebarMenuBox: kc,
|
|
5503
|
+
SameNavTabs: Sc,
|
|
5504
|
+
SameRouteView: _c,
|
|
5505
|
+
HeaderSysSettDrawer: cc,
|
|
5506
|
+
ChangePassword: Uc,
|
|
5507
|
+
SwitchBusiness: tu
|
|
5504
5508
|
},
|
|
5505
5509
|
props: {},
|
|
5506
5510
|
data() {
|
|
@@ -5537,7 +5541,7 @@ const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
|
5537
5541
|
created() {
|
|
5538
5542
|
},
|
|
5539
5543
|
mounted() {
|
|
5540
|
-
this.frameSidebarOpen = this.layoutSidebarState,
|
|
5544
|
+
this.frameSidebarOpen = this.layoutSidebarState, cs().$subscribe((t, n) => {
|
|
5541
5545
|
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5542
5546
|
}), window.onresize = () => {
|
|
5543
5547
|
(document.mozFullScreen || document.fullScreen || //谷歌浏览器及Webkit内核浏览器
|
|
@@ -5587,7 +5591,7 @@ const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
|
5587
5591
|
cancelButtonText: "取消",
|
|
5588
5592
|
type: "warning"
|
|
5589
5593
|
}).then(() => {
|
|
5590
|
-
|
|
5594
|
+
rc().then((n) => {
|
|
5591
5595
|
window.location.reload();
|
|
5592
5596
|
});
|
|
5593
5597
|
}).catch((n) => {
|
|
@@ -5633,32 +5637,32 @@ const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
|
5633
5637
|
});
|
|
5634
5638
|
}
|
|
5635
5639
|
}
|
|
5636
|
-
},
|
|
5640
|
+
}, ru = { class: "cloud-layout__wrap" }, au = { class: "cloud-header__wrap" }, su = { class: "cloud-header__logo" }, ou = {
|
|
5637
5641
|
href: "/",
|
|
5638
5642
|
title: "官网",
|
|
5639
5643
|
class: "cloud-header__logo-a"
|
|
5640
|
-
},
|
|
5644
|
+
}, iu = ["src"], lu = { class: "cloud-header__logo-title" }, cu = { class: "cloud-header__breadcrumb" }, uu = {
|
|
5641
5645
|
key: 0,
|
|
5642
5646
|
class: "chopt-num"
|
|
5643
|
-
},
|
|
5647
|
+
}, fu = {
|
|
5644
5648
|
key: 0,
|
|
5645
5649
|
class: "chopt-num"
|
|
5646
|
-
},
|
|
5647
|
-
function
|
|
5650
|
+
}, _u = { class: "cloud-header__info" }, du = ["src"], mu = { class: "chinfo-infoname" }, hu = { class: "cloud-sidebar__wrap" }, gu = { class: "cloud-pages__wrap" };
|
|
5651
|
+
function pu(e, t, n, r, a, s) {
|
|
5648
5652
|
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), A = B("SameRouteView"), E = B("HeaderSysSettDrawer"), C = B("ChangePassword"), h = B("SwitchBusiness");
|
|
5649
|
-
return U(), Q("div",
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5653
|
+
return U(), Q("div", ru, [
|
|
5654
|
+
k("header", au, [
|
|
5655
|
+
k("div", su, [
|
|
5656
|
+
k("a", ou, [
|
|
5657
|
+
k("img", {
|
|
5654
5658
|
class: "cloud-header__logo-img",
|
|
5655
5659
|
src: e.openCaseInfo.platinfo_logo,
|
|
5656
5660
|
alt: ""
|
|
5657
|
-
}, null, 8,
|
|
5661
|
+
}, null, 8, iu)
|
|
5658
5662
|
]),
|
|
5659
|
-
|
|
5663
|
+
k("div", lu, ne(e.openCaseInfo.platinfo_title), 1)
|
|
5660
5664
|
]),
|
|
5661
|
-
|
|
5665
|
+
k("div", {
|
|
5662
5666
|
class: "cloud-header__opt",
|
|
5663
5667
|
onClick: t[0] || (t[0] = (...g) => s.frameSwicthMenu && s.frameSwicthMenu(...g))
|
|
5664
5668
|
}, [
|
|
@@ -5673,7 +5677,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5673
5677
|
size: "20"
|
|
5674
5678
|
})) : ue("", !0)
|
|
5675
5679
|
]),
|
|
5676
|
-
|
|
5680
|
+
k("div", {
|
|
5677
5681
|
class: "cloud-header__opt",
|
|
5678
5682
|
onClick: t[1] || (t[1] = (...g) => s.framePageRefresh && s.framePageRefresh(...g))
|
|
5679
5683
|
}, [
|
|
@@ -5682,15 +5686,15 @@ function hu(e, t, n, r, a, s) {
|
|
|
5682
5686
|
size: "20"
|
|
5683
5687
|
})
|
|
5684
5688
|
]),
|
|
5685
|
-
|
|
5689
|
+
k("div", cu, [
|
|
5686
5690
|
w(l, { separator: "/" }, {
|
|
5687
|
-
default:
|
|
5691
|
+
default: D(() => [
|
|
5688
5692
|
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
5689
5693
|
N == a.breadcrumbPath.length - 1 || !g.path || g.path == "" ? (U(), J(i, {
|
|
5690
5694
|
key: N,
|
|
5691
5695
|
class: "no-redirect"
|
|
5692
5696
|
}, {
|
|
5693
|
-
default:
|
|
5697
|
+
default: D(() => [
|
|
5694
5698
|
te(ne(g.title), 1)
|
|
5695
5699
|
]),
|
|
5696
5700
|
_: 2
|
|
@@ -5698,7 +5702,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5698
5702
|
key: "b" + N,
|
|
5699
5703
|
to: { path: g.path }
|
|
5700
5704
|
}, {
|
|
5701
|
-
default:
|
|
5705
|
+
default: D(() => [
|
|
5702
5706
|
te(ne(g.title), 1)
|
|
5703
5707
|
]),
|
|
5704
5708
|
_: 2
|
|
@@ -5708,8 +5712,8 @@ function hu(e, t, n, r, a, s) {
|
|
|
5708
5712
|
_: 1
|
|
5709
5713
|
})
|
|
5710
5714
|
]),
|
|
5711
|
-
t[13] || (t[13] =
|
|
5712
|
-
|
|
5715
|
+
t[13] || (t[13] = k("div", { class: "cloud-header__seat" }, null, -1)),
|
|
5716
|
+
k("div", {
|
|
5713
5717
|
class: "cloud-header__opt chopt-relative",
|
|
5714
5718
|
onClick: t[2] || (t[2] = (g) => s.frameHandleCommand("msg"))
|
|
5715
5719
|
}, [
|
|
@@ -5717,9 +5721,9 @@ function hu(e, t, n, r, a, s) {
|
|
|
5717
5721
|
type: "ElIconChatLineRound",
|
|
5718
5722
|
size: "20"
|
|
5719
5723
|
}),
|
|
5720
|
-
a.chatUnreadTotal > 0 ? (U(), Q("em",
|
|
5724
|
+
a.chatUnreadTotal > 0 ? (U(), Q("em", uu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : ue("", !0)
|
|
5721
5725
|
]),
|
|
5722
|
-
|
|
5726
|
+
k("div", {
|
|
5723
5727
|
class: "cloud-header__opt chopt-relative",
|
|
5724
5728
|
onClick: t[3] || (t[3] = (g) => s.frameHandleCommand("gongdan"))
|
|
5725
5729
|
}, [
|
|
@@ -5727,18 +5731,18 @@ function hu(e, t, n, r, a, s) {
|
|
|
5727
5731
|
type: "ElIconMessage",
|
|
5728
5732
|
size: "20"
|
|
5729
5733
|
}),
|
|
5730
|
-
a.emailUnreadTotal > 0 ? (U(), Q("em",
|
|
5734
|
+
a.emailUnreadTotal > 0 ? (U(), Q("em", fu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : ue("", !0)
|
|
5731
5735
|
]),
|
|
5732
|
-
|
|
5736
|
+
k("div", _u, [
|
|
5733
5737
|
w(u, {
|
|
5734
5738
|
onCommand: s.frameHandleCommand,
|
|
5735
5739
|
"popper-class": "cloud-header__info_dropdown"
|
|
5736
5740
|
}, {
|
|
5737
|
-
dropdown:
|
|
5741
|
+
dropdown: D(() => [
|
|
5738
5742
|
w(f, null, {
|
|
5739
|
-
default:
|
|
5743
|
+
default: D(() => [
|
|
5740
5744
|
w(c, { command: "account_change" }, {
|
|
5741
|
-
default:
|
|
5745
|
+
default: D(() => [
|
|
5742
5746
|
w(o, {
|
|
5743
5747
|
type: "cvSvgPeopleSwitch",
|
|
5744
5748
|
size: "15"
|
|
@@ -5748,7 +5752,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5748
5752
|
_: 1
|
|
5749
5753
|
}),
|
|
5750
5754
|
w(c, { command: "account_chgpwd" }, {
|
|
5751
|
-
default:
|
|
5755
|
+
default: D(() => [
|
|
5752
5756
|
w(o, {
|
|
5753
5757
|
type: "cvSvgBaseLockOff",
|
|
5754
5758
|
size: "15"
|
|
@@ -5761,7 +5765,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5761
5765
|
command: "clearCache",
|
|
5762
5766
|
divided: ""
|
|
5763
5767
|
}, {
|
|
5764
|
-
default:
|
|
5768
|
+
default: D(() => [
|
|
5765
5769
|
w(o, {
|
|
5766
5770
|
type: "ElIconDelete",
|
|
5767
5771
|
size: "15"
|
|
@@ -5771,7 +5775,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5771
5775
|
_: 1
|
|
5772
5776
|
}),
|
|
5773
5777
|
w(c, { command: "logout" }, {
|
|
5774
|
-
default:
|
|
5778
|
+
default: D(() => [
|
|
5775
5779
|
w(o, {
|
|
5776
5780
|
type: "cvSvgArrowExportRight",
|
|
5777
5781
|
size: "14"
|
|
@@ -5784,21 +5788,21 @@ function hu(e, t, n, r, a, s) {
|
|
|
5784
5788
|
_: 1
|
|
5785
5789
|
})
|
|
5786
5790
|
]),
|
|
5787
|
-
default:
|
|
5788
|
-
|
|
5789
|
-
|
|
5791
|
+
default: D(() => [
|
|
5792
|
+
k("span", null, [
|
|
5793
|
+
k("img", {
|
|
5790
5794
|
class: "chinfo-avatar",
|
|
5791
5795
|
src: e.accountInfo.account_avatar_cdn,
|
|
5792
5796
|
title: "头像"
|
|
5793
|
-
}, null, 8,
|
|
5794
|
-
|
|
5797
|
+
}, null, 8, du),
|
|
5798
|
+
k("div", mu, ne(s.headerInfoName), 1),
|
|
5795
5799
|
w(o, { type: "ElIconArrowDown" })
|
|
5796
5800
|
])
|
|
5797
5801
|
]),
|
|
5798
5802
|
_: 1
|
|
5799
5803
|
}, 8, ["onCommand"])
|
|
5800
5804
|
]),
|
|
5801
|
-
|
|
5805
|
+
k("div", {
|
|
5802
5806
|
title: "全屏",
|
|
5803
5807
|
class: "cloud-header__opt",
|
|
5804
5808
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
@@ -5815,7 +5819,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5815
5819
|
size: "20"
|
|
5816
5820
|
})) : ue("", !0)
|
|
5817
5821
|
]),
|
|
5818
|
-
|
|
5822
|
+
k("div", {
|
|
5819
5823
|
title: "设置",
|
|
5820
5824
|
class: "cloud-header__opt",
|
|
5821
5825
|
onClick: t[5] || (t[5] = (...g) => s.frameTopSysSettOpen && s.frameTopSysSettOpen(...g)),
|
|
@@ -5827,14 +5831,14 @@ function hu(e, t, n, r, a, s) {
|
|
|
5827
5831
|
})
|
|
5828
5832
|
])
|
|
5829
5833
|
]),
|
|
5830
|
-
|
|
5834
|
+
k("section", hu, [
|
|
5831
5835
|
w(m, {
|
|
5832
5836
|
collapse: a.frameSidebarOpen == "off"
|
|
5833
5837
|
}, null, 8, ["collapse"])
|
|
5834
5838
|
]),
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
[
|
|
5839
|
+
k("section", gu, [
|
|
5840
|
+
Na(w(p, null, null, 512), [
|
|
5841
|
+
[Ta, e.layoutNavTabs == "on"]
|
|
5838
5842
|
]),
|
|
5839
5843
|
w(A, { className: "cloud-pages__box" })
|
|
5840
5844
|
]),
|
|
@@ -5857,7 +5861,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5857
5861
|
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
|
|
5858
5862
|
]);
|
|
5859
5863
|
}
|
|
5860
|
-
const
|
|
5864
|
+
const Kf = /* @__PURE__ */ Re(nu, [["render", pu]]), Eu = {
|
|
5861
5865
|
data() {
|
|
5862
5866
|
return {
|
|
5863
5867
|
watemarkText: "shiyun"
|
|
@@ -5883,16 +5887,16 @@ const Yf = /* @__PURE__ */ Re(eu, [["render", hu]]), gu = {
|
|
|
5883
5887
|
}
|
|
5884
5888
|
}
|
|
5885
5889
|
};
|
|
5886
|
-
function
|
|
5890
|
+
function bu(e, t, n, r, a, s) {
|
|
5887
5891
|
const o = B("el-watermark");
|
|
5888
|
-
return U(), J(o,
|
|
5889
|
-
default:
|
|
5890
|
-
|
|
5892
|
+
return U(), J(o, Ys(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5893
|
+
default: D(() => [
|
|
5894
|
+
Hs(e.$slots, "default")
|
|
5891
5895
|
]),
|
|
5892
5896
|
_: 3
|
|
5893
5897
|
}, 16);
|
|
5894
5898
|
}
|
|
5895
|
-
const
|
|
5899
|
+
const jf = /* @__PURE__ */ Re(Eu, [["render", bu]]);
|
|
5896
5900
|
(function() {
|
|
5897
5901
|
if (typeof EventTarget < "u") {
|
|
5898
5902
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -5901,10 +5905,10 @@ const Hf = /* @__PURE__ */ Re(gu, [["render", pu]]);
|
|
|
5901
5905
|
};
|
|
5902
5906
|
}
|
|
5903
5907
|
})();
|
|
5904
|
-
const
|
|
5905
|
-
class
|
|
5908
|
+
const Su = 60 * 60 * 24 * 7;
|
|
5909
|
+
class vu {
|
|
5906
5910
|
constructor(t) {
|
|
5907
|
-
this.prefix = t.prefix || "", this.expired = t.expired ||
|
|
5911
|
+
this.prefix = t.prefix || "", this.expired = t.expired || Su, this.crypto = !!t.crypto, this.merge = !!t.merge, this.keyExpired = {
|
|
5908
5912
|
session: {},
|
|
5909
5913
|
local: {}
|
|
5910
5914
|
}, this.keyGroup = {
|
|
@@ -6021,7 +6025,7 @@ class bu {
|
|
|
6021
6025
|
this._deleteKey("local");
|
|
6022
6026
|
}
|
|
6023
6027
|
}
|
|
6024
|
-
function
|
|
6028
|
+
function Au() {
|
|
6025
6029
|
try {
|
|
6026
6030
|
if (typeof indexedDB < "u")
|
|
6027
6031
|
return indexedDB;
|
|
@@ -6037,8 +6041,8 @@ function Su() {
|
|
|
6037
6041
|
return;
|
|
6038
6042
|
}
|
|
6039
6043
|
}
|
|
6040
|
-
var ut =
|
|
6041
|
-
function
|
|
6044
|
+
var ut = Au();
|
|
6045
|
+
function yu() {
|
|
6042
6046
|
try {
|
|
6043
6047
|
if (!ut || !ut.open)
|
|
6044
6048
|
return !1;
|
|
@@ -6088,13 +6092,13 @@ function dr() {
|
|
|
6088
6092
|
}
|
|
6089
6093
|
const Hn = "local-forage-detect-blob-support";
|
|
6090
6094
|
let $t;
|
|
6091
|
-
const be = {},
|
|
6092
|
-
function
|
|
6095
|
+
const be = {}, Nu = Object.prototype.toString, Ft = "readonly", tn = "readwrite";
|
|
6096
|
+
function Tu(e) {
|
|
6093
6097
|
for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
|
|
6094
6098
|
r[a] = e.charCodeAt(a);
|
|
6095
6099
|
return n;
|
|
6096
6100
|
}
|
|
6097
|
-
function
|
|
6101
|
+
function Ou(e) {
|
|
6098
6102
|
return new F(function(t) {
|
|
6099
6103
|
var n = e.transaction(Hn, tn), r = _r([""]);
|
|
6100
6104
|
n.objectStore(Hn).put(r, "key"), n.onabort = function(a) {
|
|
@@ -6109,8 +6113,8 @@ function Nu(e) {
|
|
|
6109
6113
|
return !1;
|
|
6110
6114
|
});
|
|
6111
6115
|
}
|
|
6112
|
-
function
|
|
6113
|
-
return typeof $t == "boolean" ? F.resolve($t) :
|
|
6116
|
+
function Iu(e) {
|
|
6117
|
+
return typeof $t == "boolean" ? F.resolve($t) : Ou(e).then(function(t) {
|
|
6114
6118
|
return $t = t, $t;
|
|
6115
6119
|
});
|
|
6116
6120
|
}
|
|
@@ -6132,9 +6136,9 @@ function jn(e, t) {
|
|
|
6132
6136
|
if (r)
|
|
6133
6137
|
return r.reject(t), r.promise;
|
|
6134
6138
|
}
|
|
6135
|
-
function
|
|
6139
|
+
function _s(e, t) {
|
|
6136
6140
|
return new F(function(n, r) {
|
|
6137
|
-
if (be[e.name] = be[e.name] ||
|
|
6141
|
+
if (be[e.name] = be[e.name] || gs(), e.db)
|
|
6138
6142
|
if (t)
|
|
6139
6143
|
jt(e), e.db.close();
|
|
6140
6144
|
else
|
|
@@ -6161,12 +6165,12 @@ function us(e, t) {
|
|
|
6161
6165
|
});
|
|
6162
6166
|
}
|
|
6163
6167
|
function mr(e) {
|
|
6164
|
-
return
|
|
6168
|
+
return _s(e, !1);
|
|
6165
6169
|
}
|
|
6166
6170
|
function hr(e) {
|
|
6167
|
-
return
|
|
6171
|
+
return _s(e, !0);
|
|
6168
6172
|
}
|
|
6169
|
-
function
|
|
6173
|
+
function ds(e, t) {
|
|
6170
6174
|
if (!e.db)
|
|
6171
6175
|
return !0;
|
|
6172
6176
|
var n = !e.db.objectStoreNames.contains(e.storeName), r = e.version < e.db.version, a = e.version > e.db.version;
|
|
@@ -6179,7 +6183,7 @@ function fs(e, t) {
|
|
|
6179
6183
|
}
|
|
6180
6184
|
return !1;
|
|
6181
6185
|
}
|
|
6182
|
-
function
|
|
6186
|
+
function Cu(e) {
|
|
6183
6187
|
return new F(function(t, n) {
|
|
6184
6188
|
var r = new FileReader();
|
|
6185
6189
|
r.onerror = n, r.onloadend = function(a) {
|
|
@@ -6192,14 +6196,14 @@ function Ou(e) {
|
|
|
6192
6196
|
}, r.readAsBinaryString(e);
|
|
6193
6197
|
});
|
|
6194
6198
|
}
|
|
6195
|
-
function
|
|
6196
|
-
var t =
|
|
6199
|
+
function ms(e) {
|
|
6200
|
+
var t = Tu(atob(e.data));
|
|
6197
6201
|
return _r([t], { type: e.type });
|
|
6198
6202
|
}
|
|
6199
|
-
function
|
|
6203
|
+
function hs(e) {
|
|
6200
6204
|
return e && e.__local_forage_encoded_blob;
|
|
6201
6205
|
}
|
|
6202
|
-
function
|
|
6206
|
+
function Lu(e) {
|
|
6203
6207
|
var t = this, n = t._initReady().then(function() {
|
|
6204
6208
|
var r = be[t._dbInfo.name];
|
|
6205
6209
|
if (r && r.dbReady)
|
|
@@ -6207,13 +6211,13 @@ function Iu(e) {
|
|
|
6207
6211
|
});
|
|
6208
6212
|
return ot(n, e, e), n;
|
|
6209
6213
|
}
|
|
6210
|
-
function
|
|
6214
|
+
function wu(e) {
|
|
6211
6215
|
jt(e);
|
|
6212
6216
|
for (var t = be[e.name], n = t.forages, r = 0; r < n.length; r++) {
|
|
6213
6217
|
const a = n[r];
|
|
6214
6218
|
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
6215
6219
|
}
|
|
6216
|
-
return e.db = null, mr(e).then((a) => (e.db = a,
|
|
6220
|
+
return e.db = null, mr(e).then((a) => (e.db = a, ds(e) ? hr(e) : a)).then((a) => {
|
|
6217
6221
|
e.db = t.db = a;
|
|
6218
6222
|
for (var s = 0; s < n.length; s++)
|
|
6219
6223
|
n[s]._dbInfo.db = a;
|
|
@@ -6233,13 +6237,13 @@ function Pe(e, t, n, r) {
|
|
|
6233
6237
|
e.storeName
|
|
6234
6238
|
) && e.version <= e.db.version)
|
|
6235
6239
|
return e.db && (e.version = e.db.version + 1), hr(e);
|
|
6236
|
-
}).then(() =>
|
|
6240
|
+
}).then(() => wu(e).then(function() {
|
|
6237
6241
|
Pe(e, t, n, r - 1);
|
|
6238
6242
|
})).catch(n);
|
|
6239
6243
|
n(s);
|
|
6240
6244
|
}
|
|
6241
6245
|
}
|
|
6242
|
-
function
|
|
6246
|
+
function gs() {
|
|
6243
6247
|
return {
|
|
6244
6248
|
// Running localForages sharing a database.
|
|
6245
6249
|
forages: [],
|
|
@@ -6251,7 +6255,7 @@ function ms() {
|
|
|
6251
6255
|
deferredOperations: []
|
|
6252
6256
|
};
|
|
6253
6257
|
}
|
|
6254
|
-
function
|
|
6258
|
+
function Du(e) {
|
|
6255
6259
|
var t = this, n = {
|
|
6256
6260
|
db: null
|
|
6257
6261
|
};
|
|
@@ -6259,7 +6263,7 @@ function Lu(e) {
|
|
|
6259
6263
|
for (var r in e)
|
|
6260
6264
|
n[r] = e[r];
|
|
6261
6265
|
var a = be[n.name];
|
|
6262
|
-
a || (a =
|
|
6266
|
+
a || (a = gs(), be[n.name] = a), a.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Lu);
|
|
6263
6267
|
var s = [];
|
|
6264
6268
|
function o() {
|
|
6265
6269
|
return F.resolve();
|
|
@@ -6272,7 +6276,7 @@ function Lu(e) {
|
|
|
6272
6276
|
return F.all(s).then(function() {
|
|
6273
6277
|
return n.db = a.db, mr(n);
|
|
6274
6278
|
}).then(function(f) {
|
|
6275
|
-
return n.db = f,
|
|
6279
|
+
return n.db = f, ds(n, t._defaultConfig.version) ? hr(n) : f;
|
|
6276
6280
|
}).then(function(f) {
|
|
6277
6281
|
n.db = a.db = f, t._dbInfo = n;
|
|
6278
6282
|
for (var u = 0; u < c.length; u++) {
|
|
@@ -6281,12 +6285,12 @@ function Lu(e) {
|
|
|
6281
6285
|
}
|
|
6282
6286
|
});
|
|
6283
6287
|
}
|
|
6284
|
-
function
|
|
6288
|
+
function Ru(e, t) {
|
|
6285
6289
|
var n = this;
|
|
6286
6290
|
e = ke(e);
|
|
6287
6291
|
var r = new F(function(a, s) {
|
|
6288
6292
|
n.ready().then(function() {
|
|
6289
|
-
Pe(n._dbInfo,
|
|
6293
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6290
6294
|
if (o)
|
|
6291
6295
|
return s(o);
|
|
6292
6296
|
try {
|
|
@@ -6295,7 +6299,7 @@ function wu(e, t) {
|
|
|
6295
6299
|
), c = l.get(e);
|
|
6296
6300
|
c.onsuccess = function() {
|
|
6297
6301
|
var f = c.result;
|
|
6298
|
-
f === void 0 && (f = null),
|
|
6302
|
+
f === void 0 && (f = null), hs(f) && (f = ms(f)), a(f);
|
|
6299
6303
|
}, c.onerror = function() {
|
|
6300
6304
|
s(c.error);
|
|
6301
6305
|
};
|
|
@@ -6307,10 +6311,10 @@ function wu(e, t) {
|
|
|
6307
6311
|
});
|
|
6308
6312
|
return j(r, t), r;
|
|
6309
6313
|
}
|
|
6310
|
-
function
|
|
6314
|
+
function ku(e, t) {
|
|
6311
6315
|
var n = this, r = new F(function(a, s) {
|
|
6312
6316
|
n.ready().then(function() {
|
|
6313
|
-
Pe(n._dbInfo,
|
|
6317
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6314
6318
|
if (o)
|
|
6315
6319
|
return s(o);
|
|
6316
6320
|
try {
|
|
@@ -6321,7 +6325,7 @@ function Du(e, t) {
|
|
|
6321
6325
|
var u = c.result;
|
|
6322
6326
|
if (u) {
|
|
6323
6327
|
var m = u.value;
|
|
6324
|
-
|
|
6328
|
+
hs(m) && (m = ms(m));
|
|
6325
6329
|
var p = e(
|
|
6326
6330
|
m,
|
|
6327
6331
|
u.key,
|
|
@@ -6341,14 +6345,14 @@ function Du(e, t) {
|
|
|
6341
6345
|
});
|
|
6342
6346
|
return j(r, t), r;
|
|
6343
6347
|
}
|
|
6344
|
-
function
|
|
6348
|
+
function Pu(e, t, n) {
|
|
6345
6349
|
var r = this;
|
|
6346
6350
|
e = ke(e);
|
|
6347
6351
|
var a = new F(function(s, o) {
|
|
6348
6352
|
var i;
|
|
6349
6353
|
r.ready().then(function() {
|
|
6350
|
-
return i = r._dbInfo,
|
|
6351
|
-
return l ? t :
|
|
6354
|
+
return i = r._dbInfo, Nu.call(t) === "[object Blob]" ? Iu(i.db).then(function(l) {
|
|
6355
|
+
return l ? t : Cu(t);
|
|
6352
6356
|
}) : t;
|
|
6353
6357
|
}).then(function(l) {
|
|
6354
6358
|
Pe(r._dbInfo, tn, function(c, f) {
|
|
@@ -6374,7 +6378,7 @@ function Ru(e, t, n) {
|
|
|
6374
6378
|
});
|
|
6375
6379
|
return j(a, n), a;
|
|
6376
6380
|
}
|
|
6377
|
-
function
|
|
6381
|
+
function Fu(e, t) {
|
|
6378
6382
|
var n = this;
|
|
6379
6383
|
e = ke(e);
|
|
6380
6384
|
var r = new F(function(a, s) {
|
|
@@ -6402,7 +6406,7 @@ function ku(e, t) {
|
|
|
6402
6406
|
});
|
|
6403
6407
|
return j(r, t), r;
|
|
6404
6408
|
}
|
|
6405
|
-
function
|
|
6409
|
+
function Mu(e) {
|
|
6406
6410
|
var t = this, n = new F(function(r, a) {
|
|
6407
6411
|
t.ready().then(function() {
|
|
6408
6412
|
Pe(t._dbInfo, tn, function(s, o) {
|
|
@@ -6426,10 +6430,10 @@ function Pu(e) {
|
|
|
6426
6430
|
});
|
|
6427
6431
|
return j(n, e), n;
|
|
6428
6432
|
}
|
|
6429
|
-
function
|
|
6433
|
+
function Uu(e) {
|
|
6430
6434
|
var t = this, n = new F(function(r, a) {
|
|
6431
6435
|
t.ready().then(function() {
|
|
6432
|
-
Pe(t._dbInfo,
|
|
6436
|
+
Pe(t._dbInfo, Ft, function(s, o) {
|
|
6433
6437
|
if (s)
|
|
6434
6438
|
return a(s);
|
|
6435
6439
|
try {
|
|
@@ -6449,14 +6453,14 @@ function Fu(e) {
|
|
|
6449
6453
|
});
|
|
6450
6454
|
return j(n, e), n;
|
|
6451
6455
|
}
|
|
6452
|
-
function
|
|
6456
|
+
function Bu(e, t) {
|
|
6453
6457
|
var n = this, r = new F(function(a, s) {
|
|
6454
6458
|
if (e < 0) {
|
|
6455
6459
|
a(null);
|
|
6456
6460
|
return;
|
|
6457
6461
|
}
|
|
6458
6462
|
n.ready().then(function() {
|
|
6459
|
-
Pe(n._dbInfo,
|
|
6463
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6460
6464
|
if (o)
|
|
6461
6465
|
return s(o);
|
|
6462
6466
|
try {
|
|
@@ -6481,10 +6485,10 @@ function Mu(e, t) {
|
|
|
6481
6485
|
});
|
|
6482
6486
|
return j(r, t), r;
|
|
6483
6487
|
}
|
|
6484
|
-
function
|
|
6488
|
+
function xu(e) {
|
|
6485
6489
|
var t = this, n = new F(function(r, a) {
|
|
6486
6490
|
t.ready().then(function() {
|
|
6487
|
-
Pe(t._dbInfo,
|
|
6491
|
+
Pe(t._dbInfo, Ft, function(s, o) {
|
|
6488
6492
|
if (s)
|
|
6489
6493
|
return a(s);
|
|
6490
6494
|
try {
|
|
@@ -6509,7 +6513,7 @@ function Uu(e) {
|
|
|
6509
6513
|
});
|
|
6510
6514
|
return j(n, e), n;
|
|
6511
6515
|
}
|
|
6512
|
-
function
|
|
6516
|
+
function Vu(e, t) {
|
|
6513
6517
|
t = dr.apply(this, arguments);
|
|
6514
6518
|
var n = this.config();
|
|
6515
6519
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -6588,25 +6592,25 @@ function Bu(e, t) {
|
|
|
6588
6592
|
}
|
|
6589
6593
|
return j(a, t), a;
|
|
6590
6594
|
}
|
|
6591
|
-
var
|
|
6595
|
+
var Gu = {
|
|
6592
6596
|
_driver: "asyncStorage",
|
|
6593
|
-
_initStorage:
|
|
6594
|
-
_support:
|
|
6595
|
-
iterate:
|
|
6596
|
-
getItem:
|
|
6597
|
-
setItem:
|
|
6598
|
-
removeItem:
|
|
6599
|
-
clear:
|
|
6600
|
-
length:
|
|
6601
|
-
key:
|
|
6602
|
-
keys:
|
|
6603
|
-
dropInstance:
|
|
6597
|
+
_initStorage: Du,
|
|
6598
|
+
_support: yu(),
|
|
6599
|
+
iterate: ku,
|
|
6600
|
+
getItem: Ru,
|
|
6601
|
+
setItem: Pu,
|
|
6602
|
+
removeItem: Fu,
|
|
6603
|
+
clear: Mu,
|
|
6604
|
+
length: Uu,
|
|
6605
|
+
key: Bu,
|
|
6606
|
+
keys: xu,
|
|
6607
|
+
dropInstance: Vu
|
|
6604
6608
|
};
|
|
6605
|
-
function
|
|
6609
|
+
function $u() {
|
|
6606
6610
|
return typeof openDatabase == "function";
|
|
6607
6611
|
}
|
|
6608
|
-
var Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
6609
|
-
function
|
|
6612
|
+
var Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Wu = "~~local_forage_type~", ha = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", qn = qt.length, gr = "arbf", Xn = "blob", ps = "si08", Es = "ui08", bs = "uic8", Ss = "si16", vs = "si32", As = "ur16", ys = "ui32", Ns = "fl32", Ts = "fl64", ga = qn + gr.length, pa = Object.prototype.toString;
|
|
6613
|
+
function Os(e) {
|
|
6610
6614
|
var t = e.length * 0.75, n = e.length, r, a = 0, s, o, i, l;
|
|
6611
6615
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
6612
6616
|
var c = new ArrayBuffer(t), f = new Uint8Array(c);
|
|
@@ -6620,15 +6624,15 @@ function Qn(e) {
|
|
|
6620
6624
|
n += Ue[t[r] >> 2], n += Ue[(t[r] & 3) << 4 | t[r + 1] >> 4], n += Ue[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += Ue[t[r + 2] & 63];
|
|
6621
6625
|
return t.length % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : t.length % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
6622
6626
|
}
|
|
6623
|
-
function
|
|
6627
|
+
function Yu(e, t) {
|
|
6624
6628
|
var n = "";
|
|
6625
|
-
if (e && (n =
|
|
6629
|
+
if (e && (n = pa.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && pa.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
6626
6630
|
var r, a = qt;
|
|
6627
|
-
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a +=
|
|
6631
|
+
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a += ps : n === "[object Uint8Array]" ? a += Es : n === "[object Uint8ClampedArray]" ? a += bs : n === "[object Int16Array]" ? a += Ss : n === "[object Uint16Array]" ? a += As : n === "[object Int32Array]" ? a += vs : n === "[object Uint32Array]" ? a += ys : n === "[object Float32Array]" ? a += Ns : n === "[object Float64Array]" ? a += Ts : t(new Error("Failed to get type for BinaryArray"))), t(a + Qn(r));
|
|
6628
6632
|
} else if (n === "[object Blob]") {
|
|
6629
6633
|
var s = new FileReader();
|
|
6630
6634
|
s.onload = function() {
|
|
6631
|
-
var o =
|
|
6635
|
+
var o = Wu + e.type + "~" + Qn(this.result);
|
|
6632
6636
|
t(qt + Xn + o);
|
|
6633
6637
|
}, s.readAsArrayBuffer(e);
|
|
6634
6638
|
} else
|
|
@@ -6638,52 +6642,52 @@ function $u(e, t) {
|
|
|
6638
6642
|
t(null, o);
|
|
6639
6643
|
}
|
|
6640
6644
|
}
|
|
6641
|
-
function
|
|
6645
|
+
function Hu(e) {
|
|
6642
6646
|
if (e.substring(0, qn) !== qt)
|
|
6643
6647
|
return JSON.parse(e);
|
|
6644
|
-
var t = e.substring(
|
|
6648
|
+
var t = e.substring(ga), n = e.substring(
|
|
6645
6649
|
qn,
|
|
6646
|
-
|
|
6650
|
+
ga
|
|
6647
6651
|
), r;
|
|
6648
|
-
if (n === Xn &&
|
|
6649
|
-
var a = t.match(
|
|
6652
|
+
if (n === Xn && ha.test(t)) {
|
|
6653
|
+
var a = t.match(ha);
|
|
6650
6654
|
r = a[1], t = t.substring(a[0].length);
|
|
6651
6655
|
}
|
|
6652
|
-
var s =
|
|
6656
|
+
var s = Os(t);
|
|
6653
6657
|
switch (n) {
|
|
6654
6658
|
case gr:
|
|
6655
6659
|
return s;
|
|
6656
6660
|
case Xn:
|
|
6657
6661
|
return _r([s], { type: r });
|
|
6658
|
-
case
|
|
6662
|
+
case ps:
|
|
6659
6663
|
return new Int8Array(s);
|
|
6660
|
-
case
|
|
6664
|
+
case Es:
|
|
6661
6665
|
return new Uint8Array(s);
|
|
6662
|
-
case
|
|
6666
|
+
case bs:
|
|
6663
6667
|
return new Uint8ClampedArray(s);
|
|
6664
|
-
case Es:
|
|
6665
|
-
return new Int16Array(s);
|
|
6666
6668
|
case Ss:
|
|
6669
|
+
return new Int16Array(s);
|
|
6670
|
+
case As:
|
|
6667
6671
|
return new Uint16Array(s);
|
|
6668
|
-
case bs:
|
|
6669
|
-
return new Int32Array(s);
|
|
6670
6672
|
case vs:
|
|
6673
|
+
return new Int32Array(s);
|
|
6674
|
+
case ys:
|
|
6671
6675
|
return new Uint32Array(s);
|
|
6672
|
-
case
|
|
6676
|
+
case Ns:
|
|
6673
6677
|
return new Float32Array(s);
|
|
6674
|
-
case
|
|
6678
|
+
case Ts:
|
|
6675
6679
|
return new Float64Array(s);
|
|
6676
6680
|
default:
|
|
6677
6681
|
throw new Error("Unkown type: " + n);
|
|
6678
6682
|
}
|
|
6679
6683
|
}
|
|
6680
6684
|
var pr = {
|
|
6681
|
-
serialize:
|
|
6682
|
-
deserialize:
|
|
6683
|
-
stringToBuffer:
|
|
6685
|
+
serialize: Yu,
|
|
6686
|
+
deserialize: Hu,
|
|
6687
|
+
stringToBuffer: Os,
|
|
6684
6688
|
bufferToString: Qn
|
|
6685
6689
|
};
|
|
6686
|
-
function
|
|
6690
|
+
function Is(e, t, n, r) {
|
|
6687
6691
|
e.executeSql(
|
|
6688
6692
|
`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,
|
|
6689
6693
|
[],
|
|
@@ -6691,7 +6695,7 @@ function Ts(e, t, n, r) {
|
|
|
6691
6695
|
r
|
|
6692
6696
|
);
|
|
6693
6697
|
}
|
|
6694
|
-
function
|
|
6698
|
+
function Ku(e) {
|
|
6695
6699
|
var t = this, n = {
|
|
6696
6700
|
db: null
|
|
6697
6701
|
};
|
|
@@ -6710,7 +6714,7 @@ function Yu(e) {
|
|
|
6710
6714
|
return o(i);
|
|
6711
6715
|
}
|
|
6712
6716
|
n.db.transaction(function(i) {
|
|
6713
|
-
|
|
6717
|
+
Is(
|
|
6714
6718
|
i,
|
|
6715
6719
|
n,
|
|
6716
6720
|
function() {
|
|
@@ -6734,7 +6738,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6734
6738
|
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
|
|
6735
6739
|
[t.storeName],
|
|
6736
6740
|
function(l, c) {
|
|
6737
|
-
c.rows.length ? s(l, i) :
|
|
6741
|
+
c.rows.length ? s(l, i) : Is(
|
|
6738
6742
|
l,
|
|
6739
6743
|
t,
|
|
6740
6744
|
function() {
|
|
@@ -6754,7 +6758,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6754
6758
|
s
|
|
6755
6759
|
);
|
|
6756
6760
|
}
|
|
6757
|
-
function
|
|
6761
|
+
function ju(e, t) {
|
|
6758
6762
|
var n = this;
|
|
6759
6763
|
e = ke(e);
|
|
6760
6764
|
var r = new F(function(a, s) {
|
|
@@ -6779,7 +6783,7 @@ function Hu(e, t) {
|
|
|
6779
6783
|
});
|
|
6780
6784
|
return j(r, t), r;
|
|
6781
6785
|
}
|
|
6782
|
-
function
|
|
6786
|
+
function qu(e, t) {
|
|
6783
6787
|
var n = this, r = new F(function(a, s) {
|
|
6784
6788
|
n.ready().then(function() {
|
|
6785
6789
|
var o = n._dbInfo;
|
|
@@ -6810,7 +6814,7 @@ function Ku(e, t) {
|
|
|
6810
6814
|
});
|
|
6811
6815
|
return j(r, t), r;
|
|
6812
6816
|
}
|
|
6813
|
-
function
|
|
6817
|
+
function Cs(e, t, n, r) {
|
|
6814
6818
|
var a = this;
|
|
6815
6819
|
e = ke(e);
|
|
6816
6820
|
var s = new F(function(o, i) {
|
|
@@ -6837,7 +6841,7 @@ function Os(e, t, n, r) {
|
|
|
6837
6841
|
if (m.code === m.QUOTA_ERR) {
|
|
6838
6842
|
if (r > 0) {
|
|
6839
6843
|
o(
|
|
6840
|
-
|
|
6844
|
+
Cs.apply(a, [
|
|
6841
6845
|
e,
|
|
6842
6846
|
l,
|
|
6843
6847
|
n,
|
|
@@ -6855,10 +6859,10 @@ function Os(e, t, n, r) {
|
|
|
6855
6859
|
});
|
|
6856
6860
|
return j(s, n), s;
|
|
6857
6861
|
}
|
|
6858
|
-
function
|
|
6859
|
-
return
|
|
6862
|
+
function Xu(e, t, n) {
|
|
6863
|
+
return Cs.apply(this, [e, t, n, 1]);
|
|
6860
6864
|
}
|
|
6861
|
-
function
|
|
6865
|
+
function Qu(e, t) {
|
|
6862
6866
|
var n = this;
|
|
6863
6867
|
e = ke(e);
|
|
6864
6868
|
var r = new F(function(a, s) {
|
|
@@ -6882,7 +6886,7 @@ function qu(e, t) {
|
|
|
6882
6886
|
});
|
|
6883
6887
|
return j(r, t), r;
|
|
6884
6888
|
}
|
|
6885
|
-
function
|
|
6889
|
+
function Ju(e) {
|
|
6886
6890
|
var t = this, n = new F(function(r, a) {
|
|
6887
6891
|
t.ready().then(function() {
|
|
6888
6892
|
var s = t._dbInfo;
|
|
@@ -6904,7 +6908,7 @@ function Xu(e) {
|
|
|
6904
6908
|
});
|
|
6905
6909
|
return j(n, e), n;
|
|
6906
6910
|
}
|
|
6907
|
-
function
|
|
6911
|
+
function zu(e) {
|
|
6908
6912
|
var t = this, n = new F(function(r, a) {
|
|
6909
6913
|
t.ready().then(function() {
|
|
6910
6914
|
var s = t._dbInfo;
|
|
@@ -6927,7 +6931,7 @@ function Qu(e) {
|
|
|
6927
6931
|
});
|
|
6928
6932
|
return j(n, e), n;
|
|
6929
6933
|
}
|
|
6930
|
-
function
|
|
6934
|
+
function Zu(e, t) {
|
|
6931
6935
|
var n = this, r = new F(function(a, s) {
|
|
6932
6936
|
n.ready().then(function() {
|
|
6933
6937
|
var o = n._dbInfo;
|
|
@@ -6950,7 +6954,7 @@ function Ju(e, t) {
|
|
|
6950
6954
|
});
|
|
6951
6955
|
return j(r, t), r;
|
|
6952
6956
|
}
|
|
6953
|
-
function
|
|
6957
|
+
function ef(e) {
|
|
6954
6958
|
var t = this, n = new F(function(r, a) {
|
|
6955
6959
|
t.ready().then(function() {
|
|
6956
6960
|
var s = t._dbInfo;
|
|
@@ -6974,7 +6978,7 @@ function zu(e) {
|
|
|
6974
6978
|
});
|
|
6975
6979
|
return j(n, e), n;
|
|
6976
6980
|
}
|
|
6977
|
-
function
|
|
6981
|
+
function tf(e) {
|
|
6978
6982
|
return new F(function(t, n) {
|
|
6979
6983
|
e.transaction(
|
|
6980
6984
|
function(r) {
|
|
@@ -7000,7 +7004,7 @@ function Zu(e) {
|
|
|
7000
7004
|
);
|
|
7001
7005
|
});
|
|
7002
7006
|
}
|
|
7003
|
-
function
|
|
7007
|
+
function nf(e, t) {
|
|
7004
7008
|
t = dr.apply(this, arguments);
|
|
7005
7009
|
var n = this.config();
|
|
7006
7010
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -7010,7 +7014,7 @@ function ef(e, t) {
|
|
|
7010
7014
|
e.name === n.name ? o = r._dbInfo.db : o = openDatabase(e.name, "", "", 0), e.storeName ? s({
|
|
7011
7015
|
db: o,
|
|
7012
7016
|
storeNames: [e.storeName]
|
|
7013
|
-
}) : s(
|
|
7017
|
+
}) : s(tf(o));
|
|
7014
7018
|
}).then(function(s) {
|
|
7015
7019
|
return new F(function(o, i) {
|
|
7016
7020
|
s.db.transaction(
|
|
@@ -7046,21 +7050,21 @@ function ef(e, t) {
|
|
|
7046
7050
|
});
|
|
7047
7051
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7048
7052
|
}
|
|
7049
|
-
var
|
|
7053
|
+
var rf = {
|
|
7050
7054
|
_driver: "webSQLStorage",
|
|
7051
|
-
_initStorage:
|
|
7052
|
-
_support:
|
|
7053
|
-
iterate:
|
|
7054
|
-
getItem:
|
|
7055
|
-
setItem:
|
|
7056
|
-
removeItem:
|
|
7057
|
-
clear:
|
|
7058
|
-
length:
|
|
7059
|
-
key:
|
|
7060
|
-
keys:
|
|
7061
|
-
dropInstance:
|
|
7055
|
+
_initStorage: Ku,
|
|
7056
|
+
_support: $u(),
|
|
7057
|
+
iterate: qu,
|
|
7058
|
+
getItem: ju,
|
|
7059
|
+
setItem: Xu,
|
|
7060
|
+
removeItem: Qu,
|
|
7061
|
+
clear: Ju,
|
|
7062
|
+
length: zu,
|
|
7063
|
+
key: Zu,
|
|
7064
|
+
keys: ef,
|
|
7065
|
+
dropInstance: nf
|
|
7062
7066
|
};
|
|
7063
|
-
function
|
|
7067
|
+
function af() {
|
|
7064
7068
|
try {
|
|
7065
7069
|
return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
|
|
7066
7070
|
!!localStorage.setItem;
|
|
@@ -7068,11 +7072,11 @@ function nf() {
|
|
|
7068
7072
|
return !1;
|
|
7069
7073
|
}
|
|
7070
7074
|
}
|
|
7071
|
-
function
|
|
7075
|
+
function Ls(e, t) {
|
|
7072
7076
|
var n = e.name + "/";
|
|
7073
7077
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
7074
7078
|
}
|
|
7075
|
-
function
|
|
7079
|
+
function sf() {
|
|
7076
7080
|
var e = "_localforage_support_test";
|
|
7077
7081
|
try {
|
|
7078
7082
|
return localStorage.setItem(e, !0), localStorage.removeItem(e), !1;
|
|
@@ -7080,17 +7084,17 @@ function rf() {
|
|
|
7080
7084
|
return !0;
|
|
7081
7085
|
}
|
|
7082
7086
|
}
|
|
7083
|
-
function
|
|
7084
|
-
return !
|
|
7087
|
+
function of() {
|
|
7088
|
+
return !sf() || localStorage.length > 0;
|
|
7085
7089
|
}
|
|
7086
|
-
function
|
|
7090
|
+
function lf(e) {
|
|
7087
7091
|
var t = this, n = {};
|
|
7088
7092
|
if (e)
|
|
7089
7093
|
for (var r in e)
|
|
7090
7094
|
n[r] = e[r];
|
|
7091
|
-
return n.keyPrefix =
|
|
7095
|
+
return n.keyPrefix = Ls(e, t._defaultConfig), of() ? (t._dbInfo = n, n.serializer = pr, F.resolve()) : F.reject();
|
|
7092
7096
|
}
|
|
7093
|
-
function
|
|
7097
|
+
function cf(e) {
|
|
7094
7098
|
var t = this, n = t.ready().then(function() {
|
|
7095
7099
|
for (var r = t._dbInfo.keyPrefix, a = localStorage.length - 1; a >= 0; a--) {
|
|
7096
7100
|
var s = localStorage.key(a);
|
|
@@ -7099,7 +7103,7 @@ function of(e) {
|
|
|
7099
7103
|
});
|
|
7100
7104
|
return j(n, e), n;
|
|
7101
7105
|
}
|
|
7102
|
-
function
|
|
7106
|
+
function uf(e, t) {
|
|
7103
7107
|
var n = this;
|
|
7104
7108
|
e = ke(e);
|
|
7105
7109
|
var r = n.ready().then(function() {
|
|
@@ -7108,7 +7112,7 @@ function lf(e, t) {
|
|
|
7108
7112
|
});
|
|
7109
7113
|
return j(r, t), r;
|
|
7110
7114
|
}
|
|
7111
|
-
function
|
|
7115
|
+
function ff(e, t) {
|
|
7112
7116
|
var n = this, r = n.ready().then(function() {
|
|
7113
7117
|
for (var a = n._dbInfo, s = a.keyPrefix, o = s.length, i = localStorage.length, l = 1, c = 0; c < i; c++) {
|
|
7114
7118
|
var f = localStorage.key(c);
|
|
@@ -7125,7 +7129,7 @@ function cf(e, t) {
|
|
|
7125
7129
|
});
|
|
7126
7130
|
return j(r, t), r;
|
|
7127
7131
|
}
|
|
7128
|
-
function
|
|
7132
|
+
function _f(e, t) {
|
|
7129
7133
|
var n = this, r = n.ready().then(function() {
|
|
7130
7134
|
var a = n._dbInfo, s;
|
|
7131
7135
|
try {
|
|
@@ -7137,7 +7141,7 @@ function uf(e, t) {
|
|
|
7137
7141
|
});
|
|
7138
7142
|
return j(r, t), r;
|
|
7139
7143
|
}
|
|
7140
|
-
function
|
|
7144
|
+
function df(e) {
|
|
7141
7145
|
var t = this, n = t.ready().then(function() {
|
|
7142
7146
|
for (var r = t._dbInfo, a = localStorage.length, s = [], o = 0; o < a; o++) {
|
|
7143
7147
|
var i = localStorage.key(o);
|
|
@@ -7147,13 +7151,13 @@ function ff(e) {
|
|
|
7147
7151
|
});
|
|
7148
7152
|
return j(n, e), n;
|
|
7149
7153
|
}
|
|
7150
|
-
function
|
|
7154
|
+
function mf(e) {
|
|
7151
7155
|
var t = this, n = t.keys().then(function(r) {
|
|
7152
7156
|
return r.length;
|
|
7153
7157
|
});
|
|
7154
7158
|
return j(n, e), n;
|
|
7155
7159
|
}
|
|
7156
|
-
function
|
|
7160
|
+
function hf(e, t) {
|
|
7157
7161
|
var n = this;
|
|
7158
7162
|
e = ke(e);
|
|
7159
7163
|
var r = n.ready().then(function() {
|
|
@@ -7162,7 +7166,7 @@ function df(e, t) {
|
|
|
7162
7166
|
});
|
|
7163
7167
|
return j(r, t), r;
|
|
7164
7168
|
}
|
|
7165
|
-
function
|
|
7169
|
+
function gf(e, t, n) {
|
|
7166
7170
|
var r = this;
|
|
7167
7171
|
e = ke(e);
|
|
7168
7172
|
var a = r.ready().then(function() {
|
|
@@ -7184,14 +7188,14 @@ function mf(e, t, n) {
|
|
|
7184
7188
|
});
|
|
7185
7189
|
return j(a, n), a;
|
|
7186
7190
|
}
|
|
7187
|
-
function
|
|
7191
|
+
function pf(e, t) {
|
|
7188
7192
|
if (t = dr.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
7189
7193
|
var n = this.config();
|
|
7190
7194
|
e.name = e.name || n.name, e.storeName = e.storeName || n.storeName;
|
|
7191
7195
|
}
|
|
7192
7196
|
var r = this, a;
|
|
7193
7197
|
return e.name ? a = new F(function(s) {
|
|
7194
|
-
e.storeName ? s(
|
|
7198
|
+
e.storeName ? s(Ls(e, r._defaultConfig)) : s(`${e.name}/`);
|
|
7195
7199
|
}).then(function(s) {
|
|
7196
7200
|
for (var o = localStorage.length - 1; o >= 0; o--) {
|
|
7197
7201
|
var i = localStorage.key(o);
|
|
@@ -7199,36 +7203,36 @@ function hf(e, t) {
|
|
|
7199
7203
|
}
|
|
7200
7204
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7201
7205
|
}
|
|
7202
|
-
var
|
|
7206
|
+
var Ef = {
|
|
7203
7207
|
_driver: "localStorageWrapper",
|
|
7204
|
-
_initStorage:
|
|
7205
|
-
_support:
|
|
7206
|
-
iterate:
|
|
7207
|
-
getItem:
|
|
7208
|
-
setItem:
|
|
7209
|
-
removeItem:
|
|
7210
|
-
clear:
|
|
7211
|
-
length:
|
|
7212
|
-
key:
|
|
7213
|
-
keys:
|
|
7214
|
-
dropInstance:
|
|
7208
|
+
_initStorage: lf,
|
|
7209
|
+
_support: af(),
|
|
7210
|
+
iterate: ff,
|
|
7211
|
+
getItem: uf,
|
|
7212
|
+
setItem: gf,
|
|
7213
|
+
removeItem: hf,
|
|
7214
|
+
clear: cf,
|
|
7215
|
+
length: mf,
|
|
7216
|
+
key: _f,
|
|
7217
|
+
keys: df,
|
|
7218
|
+
dropInstance: pf
|
|
7215
7219
|
};
|
|
7216
|
-
const
|
|
7220
|
+
const bf = (e, t) => e === t || typeof e == "number" && typeof t == "number" && isNaN(e) && isNaN(t), Sf = (e, t) => {
|
|
7217
7221
|
const n = e.length;
|
|
7218
7222
|
let r = 0;
|
|
7219
7223
|
for (; r < n; ) {
|
|
7220
|
-
if (
|
|
7224
|
+
if (bf(e[r], t))
|
|
7221
7225
|
return !0;
|
|
7222
7226
|
r++;
|
|
7223
7227
|
}
|
|
7224
7228
|
return !1;
|
|
7225
|
-
},
|
|
7229
|
+
}, ws = Array.isArray || function(e) {
|
|
7226
7230
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7227
|
-
},
|
|
7228
|
-
INDEXEDDB:
|
|
7229
|
-
WEBSQL:
|
|
7230
|
-
LOCALSTORAGE:
|
|
7231
|
-
},
|
|
7231
|
+
}, At = {}, Ea = {}, it = {
|
|
7232
|
+
INDEXEDDB: Gu,
|
|
7233
|
+
WEBSQL: rf,
|
|
7234
|
+
LOCALSTORAGE: Ef
|
|
7235
|
+
}, vf = [
|
|
7232
7236
|
it.INDEXEDDB._driver,
|
|
7233
7237
|
it.WEBSQL._driver,
|
|
7234
7238
|
it.LOCALSTORAGE._driver
|
|
@@ -7241,9 +7245,9 @@ const pf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7241
7245
|
"length",
|
|
7242
7246
|
"removeItem",
|
|
7243
7247
|
"setItem"
|
|
7244
|
-
].concat(Yt),
|
|
7248
|
+
].concat(Yt), Af = {
|
|
7245
7249
|
description: "",
|
|
7246
|
-
driver:
|
|
7250
|
+
driver: vf.slice(),
|
|
7247
7251
|
name: "localforage",
|
|
7248
7252
|
// Default DB size is _JUST UNDER_ 5MB, as it's the highest size
|
|
7249
7253
|
// we can use without a prompt.
|
|
@@ -7251,7 +7255,7 @@ const pf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7251
7255
|
storeName: "keyvaluepairs",
|
|
7252
7256
|
version: 1
|
|
7253
7257
|
};
|
|
7254
|
-
function
|
|
7258
|
+
function yf(e, t) {
|
|
7255
7259
|
e[t] = function() {
|
|
7256
7260
|
const n = arguments;
|
|
7257
7261
|
return e.ready().then(function() {
|
|
@@ -7267,7 +7271,7 @@ function Ln() {
|
|
|
7267
7271
|
const t = arguments[e];
|
|
7268
7272
|
if (t)
|
|
7269
7273
|
for (let n in t)
|
|
7270
|
-
t.hasOwnProperty(n) && (
|
|
7274
|
+
t.hasOwnProperty(n) && (ws(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
7271
7275
|
}
|
|
7272
7276
|
return arguments[0];
|
|
7273
7277
|
}
|
|
@@ -7276,9 +7280,9 @@ class Er {
|
|
|
7276
7280
|
for (let n in it)
|
|
7277
7281
|
if (it.hasOwnProperty(n)) {
|
|
7278
7282
|
const r = it[n], a = r._driver;
|
|
7279
|
-
this[n] = a,
|
|
7283
|
+
this[n] = a, At[a] || this.defineDriver(r);
|
|
7280
7284
|
}
|
|
7281
|
-
this._defaultConfig = Ln({},
|
|
7285
|
+
this._defaultConfig = Ln({}, Af), this._config = Ln({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
7282
7286
|
});
|
|
7283
7287
|
}
|
|
7284
7288
|
// Set any config values for localForage; can be called anytime before
|
|
@@ -7314,7 +7318,7 @@ class Er {
|
|
|
7314
7318
|
const c = Cn.concat("_initStorage");
|
|
7315
7319
|
for (let m = 0, p = c.length; m < p; m++) {
|
|
7316
7320
|
const A = c[m];
|
|
7317
|
-
if ((!
|
|
7321
|
+
if ((!Sf(
|
|
7318
7322
|
Yt,
|
|
7319
7323
|
A
|
|
7320
7324
|
) || t[A]) && typeof t[A] != "function") {
|
|
@@ -7342,7 +7346,7 @@ class Er {
|
|
|
7342
7346
|
}
|
|
7343
7347
|
})();
|
|
7344
7348
|
const u = function(m) {
|
|
7345
|
-
|
|
7349
|
+
At[i], At[i] = t, Ea[i] = m, s();
|
|
7346
7350
|
};
|
|
7347
7351
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, o) : u(!!t._support) : u(!0);
|
|
7348
7352
|
} catch (i) {
|
|
@@ -7355,7 +7359,7 @@ class Er {
|
|
|
7355
7359
|
return this._driver || null;
|
|
7356
7360
|
}
|
|
7357
7361
|
getDriver(t, n, r) {
|
|
7358
|
-
const a =
|
|
7362
|
+
const a = At[t] ? F.resolve(At[t]) : F.reject(new Error("Driver not found."));
|
|
7359
7363
|
return ot(a, n, r), a;
|
|
7360
7364
|
}
|
|
7361
7365
|
getSerializer(t) {
|
|
@@ -7368,7 +7372,7 @@ class Er {
|
|
|
7368
7372
|
}
|
|
7369
7373
|
setDriver(t, n, r) {
|
|
7370
7374
|
const a = this;
|
|
7371
|
-
|
|
7375
|
+
ws(t) || (t = [t]);
|
|
7372
7376
|
const s = this._getSupportedDrivers(t);
|
|
7373
7377
|
function o() {
|
|
7374
7378
|
a._config.driver = a.driver();
|
|
@@ -7406,7 +7410,7 @@ class Er {
|
|
|
7406
7410
|
}), ot(this._driverSet, n, r), this._driverSet;
|
|
7407
7411
|
}
|
|
7408
7412
|
supports(t) {
|
|
7409
|
-
return !!
|
|
7413
|
+
return !!Ea[t];
|
|
7410
7414
|
}
|
|
7411
7415
|
_extend(t) {
|
|
7412
7416
|
Ln(this, t);
|
|
@@ -7421,14 +7425,14 @@ class Er {
|
|
|
7421
7425
|
}
|
|
7422
7426
|
_wrapLibraryMethodsWithReady() {
|
|
7423
7427
|
for (let t = 0, n = Cn.length; t < n; t++)
|
|
7424
|
-
|
|
7428
|
+
yf(this, Cn[t]);
|
|
7425
7429
|
}
|
|
7426
7430
|
createInstance(t) {
|
|
7427
7431
|
return new Er(t);
|
|
7428
7432
|
}
|
|
7429
7433
|
}
|
|
7430
7434
|
const He = new Er();
|
|
7431
|
-
class
|
|
7435
|
+
class Nf {
|
|
7432
7436
|
constructor(t) {
|
|
7433
7437
|
this.db_name = t.db_name || "cvjs", He.config({
|
|
7434
7438
|
name: this.db_name,
|
|
@@ -7488,7 +7492,7 @@ class Af {
|
|
|
7488
7492
|
return cvUtils.isTypeJson(r) ? r : n;
|
|
7489
7493
|
}
|
|
7490
7494
|
}
|
|
7491
|
-
class
|
|
7495
|
+
class Tf {
|
|
7492
7496
|
constructor(t) {
|
|
7493
7497
|
this.keyExpired = {}, this.keyGroup = [], this.__open_log = !1, this.__timer = {};
|
|
7494
7498
|
}
|
|
@@ -7535,18 +7539,18 @@ class yf {
|
|
|
7535
7539
|
}
|
|
7536
7540
|
}
|
|
7537
7541
|
}
|
|
7538
|
-
const
|
|
7542
|
+
const P = new vu({
|
|
7539
7543
|
prefix: ""
|
|
7540
|
-
}),
|
|
7544
|
+
}), Of = new Nf({
|
|
7541
7545
|
db_name: "ShiyunConsole"
|
|
7542
7546
|
});
|
|
7543
|
-
window.gbIdbObj =
|
|
7544
|
-
const
|
|
7545
|
-
window.gbSessObj =
|
|
7546
|
-
function
|
|
7547
|
+
window.gbIdbObj = Of;
|
|
7548
|
+
const If = new Tf({});
|
|
7549
|
+
window.gbSessObj = If;
|
|
7550
|
+
function Cf(e, t, n = !1) {
|
|
7547
7551
|
return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
|
|
7548
7552
|
}
|
|
7549
|
-
const
|
|
7553
|
+
const ba = {
|
|
7550
7554
|
400: "请求错误",
|
|
7551
7555
|
400: "无效请求",
|
|
7552
7556
|
401: "未经授权",
|
|
@@ -7563,7 +7567,7 @@ const pa = {
|
|
|
7563
7567
|
10001: "未登录",
|
|
7564
7568
|
10002: "token过期",
|
|
7565
7569
|
10009: "退出登录"
|
|
7566
|
-
},
|
|
7570
|
+
}, Sa = {
|
|
7567
7571
|
401: "没有权限,请重新登录"
|
|
7568
7572
|
};
|
|
7569
7573
|
class nn {
|
|
@@ -7587,7 +7591,7 @@ class nn {
|
|
|
7587
7591
|
}
|
|
7588
7592
|
/* 初始化 request 句柄 */
|
|
7589
7593
|
_initReqHandle() {
|
|
7590
|
-
this.requestHandle =
|
|
7594
|
+
this.requestHandle = zs.create({
|
|
7591
7595
|
timeout: 1e4,
|
|
7592
7596
|
// request timeout
|
|
7593
7597
|
// 表示跨域请求时是否需要使用凭证;
|
|
@@ -7720,7 +7724,7 @@ class nn {
|
|
|
7720
7724
|
this.debugLog("netResponseError ", t);
|
|
7721
7725
|
const n = t && t.message || "", r = t && t.response && t.response.status || 0, a = t && t.response && (t.response.data.message || t.response.statusText) || "";
|
|
7722
7726
|
let s = "提示", o = "请求异常,请检查网络或联系管理员";
|
|
7723
|
-
return
|
|
7727
|
+
return ba[r] && (s = ba[r]), Sa[r] ? o = Sa[r] : n.includes("Network Error") ? o = "网络异常" : n.includes("Not Found") ? o = "未找到该请求" : n.includes("timeout") && (o = "请求超时,请刷新重试"), this.resetNetError({
|
|
7724
7728
|
title: s,
|
|
7725
7729
|
status: r,
|
|
7726
7730
|
type: "error",
|
|
@@ -7798,7 +7802,7 @@ class nn {
|
|
|
7798
7802
|
let a = this.canshuOpt || {};
|
|
7799
7803
|
this.canshuOpt = {};
|
|
7800
7804
|
let s = !1;
|
|
7801
|
-
if (this.encryptURL &&
|
|
7805
|
+
if (this.encryptURL && Cf(n, this.encryptURL, !0) && (s = !0), this.encryptFlag && (s = !0), s) {
|
|
7802
7806
|
const o = window.navigator.userAgent;
|
|
7803
7807
|
(/Windows NT 5.1|Windows XP/.test(o) || o.indexOf("Windows NT 6.0") !== -1 || o.indexOf("Windows NT 6.1") !== -1 || o.indexOf("Windows NT 6.2") !== -1) && (s = !1);
|
|
7804
7808
|
}
|
|
@@ -7946,14 +7950,14 @@ class nn {
|
|
|
7946
7950
|
return new Promise((c, f) => f({ message: " 请求错误 " }));
|
|
7947
7951
|
}
|
|
7948
7952
|
}
|
|
7949
|
-
const
|
|
7953
|
+
const Lf = {
|
|
7950
7954
|
BASE_LOAD_COMMON_API_FLAG: "/base.base_load/common/api_flag",
|
|
7951
7955
|
BASE_LOAD_COMMON_API_AUTH: "/base.base_load/common/api_auth",
|
|
7952
7956
|
BASE_LOAD_COMMON_API_CODE: "/base.base_load/common/api_code",
|
|
7953
7957
|
BASE_ACCSYS_COMMON_KEYCLIENT: "/base.account_sys/common/key_client",
|
|
7954
7958
|
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting",
|
|
7955
7959
|
BASE_SYS_COMMON_SYS_INFO: "/base.base_sys/common/system_info"
|
|
7956
|
-
},
|
|
7960
|
+
}, wf = {
|
|
7957
7961
|
BASE_LOAD_COMMON_API_FLAG: "app:true;auth:false;",
|
|
7958
7962
|
BASE_LOAD_COMMON_API_AUTH: "app:true;auth:false;",
|
|
7959
7963
|
BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
|
|
@@ -7962,7 +7966,7 @@ const If = {
|
|
|
7962
7966
|
};
|
|
7963
7967
|
nn.prototype.resetNetError = function(e) {
|
|
7964
7968
|
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
7965
|
-
return Te().SA_ACCOUNT_LOGOUT(),
|
|
7969
|
+
return Te().SA_ACCOUNT_LOGOUT(), js.alert("未经授权,请登录", "友情提示", {
|
|
7966
7970
|
// if you want to disable its autofocus
|
|
7967
7971
|
// autofocus: false,
|
|
7968
7972
|
confirmButtonText: "OK",
|
|
@@ -7971,7 +7975,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
7971
7975
|
}
|
|
7972
7976
|
}), !1;
|
|
7973
7977
|
let t = (e.status ? `[ ${e.status} ] ` : "") + (e.title || "提示");
|
|
7974
|
-
|
|
7978
|
+
qs({
|
|
7975
7979
|
title: t,
|
|
7976
7980
|
message: e.message,
|
|
7977
7981
|
type: e.type || "info",
|
|
@@ -7992,8 +7996,8 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
7992
7996
|
}), t > 0 && (__ajaxList = __ajaxList.filter((n) => n.id !== e)), t;
|
|
7993
7997
|
};
|
|
7994
7998
|
let qe = null;
|
|
7995
|
-
function
|
|
7996
|
-
const t =
|
|
7999
|
+
function Ds(e = {}) {
|
|
8000
|
+
const t = Tt();
|
|
7997
8001
|
qe = new nn({
|
|
7998
8002
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
7999
8003
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
@@ -8002,9 +8006,9 @@ function Ls(e = {}) {
|
|
|
8002
8006
|
syOpenAppProject: t.syAppProjectSign || "",
|
|
8003
8007
|
syOpenAppId: t.syAppConnectId || "",
|
|
8004
8008
|
syOpenAppRole: t.syAppConnectRole || "",
|
|
8005
|
-
syOpenAppToken:
|
|
8009
|
+
syOpenAppToken: P.localGet("syCacheAppToken") || "",
|
|
8006
8010
|
"Sy-Client-Platform": "pc-web",
|
|
8007
|
-
Authorization: "Bearer " +
|
|
8011
|
+
Authorization: "Bearer " + P.localGet("syCacheAppJwt") || ""
|
|
8008
8012
|
},
|
|
8009
8013
|
requests: {
|
|
8010
8014
|
// '__Access-Control-Allow-Origin': true
|
|
@@ -8022,22 +8026,22 @@ function Ls(e = {}) {
|
|
|
8022
8026
|
});
|
|
8023
8027
|
let n = {}, r = {};
|
|
8024
8028
|
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
8025
|
-
let a = Object.assign({},
|
|
8029
|
+
let a = Object.assign({}, Lf, n, t.syOpenApiFlag), s = Object.assign({}, wf, r, t.syOpenApiAuth);
|
|
8026
8030
|
return qe.setApiFlag(a), qe.setApiAuth(s), qe;
|
|
8027
8031
|
}
|
|
8028
|
-
function
|
|
8029
|
-
return qe || (qe =
|
|
8032
|
+
function Df() {
|
|
8033
|
+
return qe || (qe = Ds()), qe;
|
|
8030
8034
|
}
|
|
8031
8035
|
const fe = new Proxy(
|
|
8032
8036
|
{},
|
|
8033
8037
|
{
|
|
8034
8038
|
get(e, t) {
|
|
8035
|
-
const n =
|
|
8039
|
+
const n = Df();
|
|
8036
8040
|
return typeof n[t] == "function" ? n[t].bind(n) : n[t];
|
|
8037
8041
|
}
|
|
8038
8042
|
}
|
|
8039
8043
|
);
|
|
8040
|
-
var
|
|
8044
|
+
var Rf = {
|
|
8041
8045
|
methods: {
|
|
8042
8046
|
// 返回上级
|
|
8043
8047
|
jumpsBack() {
|
|
@@ -8083,26 +8087,26 @@ var wf = {
|
|
|
8083
8087
|
},
|
|
8084
8088
|
// 跨应用路由跳转
|
|
8085
8089
|
jumpsQiankun(e) {
|
|
8086
|
-
|
|
8090
|
+
to(e);
|
|
8087
8091
|
}
|
|
8088
8092
|
}
|
|
8089
8093
|
};
|
|
8090
|
-
function
|
|
8094
|
+
function va(e, t, n) {
|
|
8091
8095
|
const r = t.value;
|
|
8092
8096
|
if (r)
|
|
8093
|
-
|
|
8097
|
+
fs(r) || !1 || e.parentNode && e.parentNode.removeChild(e);
|
|
8094
8098
|
else
|
|
8095
8099
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
8096
8100
|
}
|
|
8097
|
-
function
|
|
8101
|
+
function kf(e, t, n) {
|
|
8098
8102
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
8099
|
-
inserted:
|
|
8103
|
+
inserted: va
|
|
8100
8104
|
}) : e.directive("auth", {
|
|
8101
|
-
mounted:
|
|
8102
|
-
}), t.$_auth =
|
|
8105
|
+
mounted: va
|
|
8106
|
+
}), t.$_auth = fs;
|
|
8103
8107
|
}
|
|
8104
8108
|
/*! Element Plus v2.9.7 */
|
|
8105
|
-
var
|
|
8109
|
+
var Pf = {
|
|
8106
8110
|
name: "zh-cn",
|
|
8107
8111
|
el: {
|
|
8108
8112
|
breadcrumb: {
|
|
@@ -8280,16 +8284,16 @@ var Rf = {
|
|
|
8280
8284
|
}
|
|
8281
8285
|
}
|
|
8282
8286
|
};
|
|
8283
|
-
function
|
|
8284
|
-
e.use(
|
|
8287
|
+
function Ff(e) {
|
|
8288
|
+
e.use(Ks, {
|
|
8285
8289
|
// size: 'default',
|
|
8286
|
-
locale:
|
|
8290
|
+
locale: Pf
|
|
8287
8291
|
});
|
|
8288
|
-
for (const [t, n] of Object.entries(
|
|
8292
|
+
for (const [t, n] of Object.entries(Xs))
|
|
8289
8293
|
e.component("ElIcon" + t, n);
|
|
8290
8294
|
}
|
|
8291
|
-
function
|
|
8292
|
-
e.use(
|
|
8295
|
+
function Mf(e) {
|
|
8296
|
+
e.use(Qs, {
|
|
8293
8297
|
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8294
8298
|
uploadImg: {
|
|
8295
8299
|
// fileSize: 5,
|
|
@@ -8318,25 +8322,25 @@ function Pf(e) {
|
|
|
8318
8322
|
// }
|
|
8319
8323
|
}
|
|
8320
8324
|
});
|
|
8321
|
-
for (const [t, n] of Object.entries(
|
|
8325
|
+
for (const [t, n] of Object.entries(Js))
|
|
8322
8326
|
e.component("cvSvg" + t, n);
|
|
8323
8327
|
}
|
|
8324
|
-
async function
|
|
8325
|
-
|
|
8328
|
+
async function qf(e, t) {
|
|
8329
|
+
Zs(t), Ds(e), Pt().init(), Be().init(), await fr().init(), await Te().init();
|
|
8326
8330
|
}
|
|
8327
|
-
async function
|
|
8331
|
+
async function Xf(e, t, n, r, a = "", s = null) {
|
|
8328
8332
|
Zt().init(r), en().init(n);
|
|
8329
8333
|
let o = e.config.globalProperties;
|
|
8330
8334
|
o.$onLaunched = new Promise((l) => {
|
|
8331
8335
|
o.$isResolve = l;
|
|
8332
|
-
}), o.$request = fe, o.$cache =
|
|
8333
|
-
let i =
|
|
8334
|
-
|
|
8336
|
+
}), o.$request = fe, o.$cache = P, Ff(e), Mf(e), kf(e, o), e.mixin(ac()), e.mixin(Rf), await Uf(t, r, a), e.use(os);
|
|
8337
|
+
let i = Pt().SA_LANGUAGE_GET();
|
|
8338
|
+
xl(i, s), window.$t = Ke.t;
|
|
8335
8339
|
}
|
|
8336
|
-
async function
|
|
8337
|
-
const r =
|
|
8340
|
+
async function Uf(e, t, n) {
|
|
8341
|
+
const r = Ot(), a = Te(), s = Zt(), o = en();
|
|
8338
8342
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8339
|
-
let i =
|
|
8343
|
+
let i = Tt().syProductSign || "";
|
|
8340
8344
|
o.SA_PERMS_ROUTER_ADD(e, i), s.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
8341
8345
|
let l = !1, c = !1, f = !1;
|
|
8342
8346
|
e.beforeEach((u, m, p) => {
|
|
@@ -8365,30 +8369,30 @@ async function Ff(e, t, n) {
|
|
|
8365
8369
|
}
|
|
8366
8370
|
});
|
|
8367
8371
|
}
|
|
8368
|
-
async function
|
|
8369
|
-
me.__POWERED_BY_QIANKUN__ ?
|
|
8372
|
+
async function Qf(e, t, n) {
|
|
8373
|
+
me.__POWERED_BY_QIANKUN__ ? ro(e, t, n) : t();
|
|
8370
8374
|
}
|
|
8371
8375
|
export {
|
|
8372
8376
|
fe as H,
|
|
8373
|
-
|
|
8377
|
+
tu as S,
|
|
8374
8378
|
Re as _,
|
|
8375
8379
|
Be as a,
|
|
8376
8380
|
Te as b,
|
|
8377
8381
|
fr as c,
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8382
|
+
Tt as d,
|
|
8383
|
+
Kf as e,
|
|
8384
|
+
_c as f,
|
|
8385
|
+
jf as g,
|
|
8386
|
+
Ot as h,
|
|
8387
|
+
cs as i,
|
|
8384
8388
|
Zt as j,
|
|
8385
8389
|
en as k,
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8390
|
+
P as l,
|
|
8391
|
+
Ds as m,
|
|
8392
|
+
qf as n,
|
|
8393
|
+
Xf as o,
|
|
8394
|
+
Qf as p,
|
|
8391
8395
|
me as q,
|
|
8392
|
-
|
|
8393
|
-
|
|
8396
|
+
Zs as s,
|
|
8397
|
+
Pt as u
|
|
8394
8398
|
};
|