@10yun/open-sdk 0.3.96 → 0.3.98
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-DL8QEwH-.cjs → 404-BF-98DI2.cjs} +1 -1
- package/dist/{404-7T86Vz-_.js → 404-CRUQ2RGL.js} +1 -1
- package/dist/{alone_run-CZzjYo2-.js → alone_run-D3hGeSjr.js} +1 -1
- package/dist/{alone_run-BwAdIqCh.cjs → alone_run-ErREtrxQ.cjs} +1 -1
- package/dist/{index-RkPPXn1C.js → index-CYNRKRHo.js} +821 -793
- package/dist/index-UENhK8Dd.cjs +25 -0
- package/dist/{login-Djw_cyao.js → login-CMkucPpJ.js} +124 -124
- package/dist/{login-jBWicOdk.cjs → login-DsaaTEyf.cjs} +1 -1
- package/dist/{none-C-tlXdgu.cjs → none-CxRhvKIK.cjs} +1 -1
- package/dist/{none-CQwv0UHB.js → none-GtWlMjrR.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/dist/index-CbeSDAAQ.cjs +0 -25
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { effectScope as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
1
|
+
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
+
import { effectScope as Ds, ref as Rs, shallowRef as ks, computed as gt, watch as wn, isRef as Ps, defineComponent as Jn, getCurrentInstance as yt, h as Sa, Fragment as he, inject as Fs, onMounted as Ms, onUnmounted as Us, createVNode as w, Text as Bs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as R, createElementVNode as P, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, Transition as xs, normalizeClass as va, resolveDynamicComponent as Vs, withDirectives as Aa, withModifiers as Gs, normalizeStyle as Dn, vShow as ya, mergeProps as $s, renderSlot as Ws } from "vue";
|
|
3
|
+
import Ys, { ElMessage as vr, ElMessageBox as Hs, ElNotification as Ks } from "element-plus";
|
|
4
|
+
import * as js 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
|
|
9
|
+
import * as Xs from "@10yun/cv-icons-vue";
|
|
10
|
+
import Qs from "axios";
|
|
11
11
|
let Na = {};
|
|
12
|
-
function
|
|
12
|
+
function Js(e = {}) {
|
|
13
13
|
Na = e;
|
|
14
14
|
}
|
|
15
15
|
function Nt() {
|
|
@@ -20,10 +20,10 @@ function Nt() {
|
|
|
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 : {}, zs = 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 Zs(e = "/", t = null, n = {}) {
|
|
27
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
28
28
|
}
|
|
29
29
|
var At = {};
|
|
@@ -39,7 +39,7 @@ function Ut(e) {
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function eo(e) {
|
|
43
43
|
let t = Te();
|
|
44
44
|
e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
|
|
45
45
|
if (n && n.msg)
|
|
@@ -52,8 +52,8 @@ function Zs(e) {
|
|
|
52
52
|
Tt().SA_MSG_CONTENT(n.msg);
|
|
53
53
|
}, !0), At.setGlobalState = e && e.setGlobalState, At.name = e && e.name;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function to(e, t, n) {
|
|
56
|
+
zs({
|
|
57
57
|
/**
|
|
58
58
|
* @name 微应用初始化
|
|
59
59
|
* @param {Object} props 主应用下发的props
|
|
@@ -68,7 +68,7 @@ function eo(e, t, n) {
|
|
|
68
68
|
* @description 应用每次进入都会调用 mount 方法,通常我们在这里触发应用的渲染方法
|
|
69
69
|
*/
|
|
70
70
|
mount(r) {
|
|
71
|
-
|
|
71
|
+
eo(r), t(r, !0);
|
|
72
72
|
},
|
|
73
73
|
/**
|
|
74
74
|
* @name 微应用卸载/切出
|
|
@@ -85,7 +85,7 @@ function eo(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
const Tt =
|
|
88
|
+
const Tt = De("cloudSdkQiankunStore", {
|
|
89
89
|
state: () => ({
|
|
90
90
|
// 是否是乾坤
|
|
91
91
|
qiankunExistState: me.__POWERED_BY_QIANKUN__ || !1,
|
|
@@ -163,26 +163,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
163
163
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const no = /\{([0-9a-zA-Z]+)\}/g;
|
|
167
167
|
function Xt(e, ...t) {
|
|
168
|
-
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
168
|
+
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(no, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
169
169
|
}
|
|
170
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
170
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ro = (e, t, n) => ao({ l: e, k: t, s: n }), ao = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), so = (e) => zn(e) === "[object Date]", lt = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, oo = Object.create, K = (e = null) => oo(e);
|
|
171
171
|
let Ar;
|
|
172
172
|
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
173
173
|
function yr(e) {
|
|
174
174
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const io = Object.prototype.hasOwnProperty;
|
|
177
177
|
function ve(e, t) {
|
|
178
|
-
return
|
|
178
|
+
return io.call(e, t);
|
|
179
179
|
}
|
|
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",
|
|
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", lo = (e) => G(e) && q(e.then) && q(e.catch), Ta = Object.prototype.toString, zn = (e) => Ta.call(e), V = (e) => zn(e) === "[object Object]", co = (e) => e == null ? "" : re(e) || V(e) && e.toString === Ta ? JSON.stringify(e, null, 2) : String(e);
|
|
181
181
|
function Zn(e, t = "") {
|
|
182
182
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
183
183
|
}
|
|
184
184
|
const Nr = 2;
|
|
185
|
-
function
|
|
185
|
+
function uo(e, t = 0, n = e.length) {
|
|
186
186
|
const r = e.split(/\r?\n/);
|
|
187
187
|
let a = 0;
|
|
188
188
|
const s = [];
|
|
@@ -210,7 +210,7 @@ function co(e, t = 0, n = e.length) {
|
|
|
210
210
|
return s.join(`
|
|
211
211
|
`);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function fo(e, t) {
|
|
214
214
|
}
|
|
215
215
|
const Tr = {};
|
|
216
216
|
function er(e) {
|
|
@@ -250,7 +250,7 @@ function Wt(e, t) {
|
|
|
250
250
|
* (c) 2025 kazuya kawaguchi
|
|
251
251
|
* Released under the MIT License.
|
|
252
252
|
*/
|
|
253
|
-
function
|
|
253
|
+
function _o(e, t, n) {
|
|
254
254
|
return { line: e, column: t, offset: n };
|
|
255
255
|
}
|
|
256
256
|
function Rn(e, t, n) {
|
|
@@ -277,7 +277,7 @@ const M = {
|
|
|
277
277
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
278
278
|
// minifier error codes
|
|
279
279
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
280
|
-
},
|
|
280
|
+
}, mo = 17, ho = {
|
|
281
281
|
// tokenizer error messages
|
|
282
282
|
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
283
283
|
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -300,18 +300,18 @@ const M = {
|
|
|
300
300
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
301
301
|
};
|
|
302
302
|
function ft(e, t, n = {}) {
|
|
303
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a ||
|
|
303
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || ho)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
304
304
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function go(e) {
|
|
307
307
|
throw e;
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
`,
|
|
311
|
-
function
|
|
309
|
+
const po = /<\/?[\w\s="/.':;#-\/]+>/, Eo = (e) => po.test(e), Ce = " ", bo = "\r", ce = `
|
|
310
|
+
`, So = "\u2028", vo = "\u2029";
|
|
311
|
+
function Ao(e) {
|
|
312
312
|
const t = e;
|
|
313
313
|
let n = 0, r = 1, a = 1, s = 0;
|
|
314
|
-
const o = (v) => t[v] ===
|
|
314
|
+
const o = (v) => t[v] === bo && t[v + 1] === ce, i = (v) => t[v] === ce, l = (v) => t[v] === vo, c = (v) => t[v] === So, 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
315
|
function g() {
|
|
316
316
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
317
317
|
}
|
|
@@ -345,9 +345,9 @@ function vo(e) {
|
|
|
345
345
|
skipToPeek: L
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
const
|
|
349
|
-
function
|
|
350
|
-
const n = t.location !== !1, r =
|
|
348
|
+
const Fe = void 0, yo = ".", Or = "'", No = "tokenizer";
|
|
349
|
+
function To(e, t = {}) {
|
|
350
|
+
const n = t.location !== !1, r = Ao(e), a = () => r.index(), s = () => _o(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
351
351
|
currentType: 13,
|
|
352
352
|
offset: i,
|
|
353
353
|
startLoc: o,
|
|
@@ -360,20 +360,20 @@ function No(e, t = {}) {
|
|
|
360
360
|
inLinked: !1,
|
|
361
361
|
text: ""
|
|
362
362
|
}, c = () => l, { onError: f } = t;
|
|
363
|
-
function u(_, d, y, ...
|
|
363
|
+
function u(_, d, y, ...k) {
|
|
364
364
|
const z = c();
|
|
365
365
|
if (d.column += y, d.offset += y, f) {
|
|
366
366
|
const Z = n ? Rn(z.startLoc, d) : null, W = ft(_, Z, {
|
|
367
|
-
domain:
|
|
368
|
-
args:
|
|
367
|
+
domain: No,
|
|
368
|
+
args: k
|
|
369
369
|
});
|
|
370
370
|
f(W);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
function m(_, d, y) {
|
|
374
374
|
_.endLoc = s(), _.currentType = d;
|
|
375
|
-
const
|
|
376
|
-
return n && (
|
|
375
|
+
const k = { type: d };
|
|
376
|
+
return n && (k.loc = Rn(_.startLoc, _.endLoc)), y != null && (k.value = y), k;
|
|
377
377
|
}
|
|
378
378
|
const p = (_) => m(
|
|
379
379
|
_,
|
|
@@ -394,7 +394,7 @@ function No(e, t = {}) {
|
|
|
394
394
|
return _.skipToPeek(), d;
|
|
395
395
|
}
|
|
396
396
|
function h(_) {
|
|
397
|
-
if (_ ===
|
|
397
|
+
if (_ === Fe)
|
|
398
398
|
return !1;
|
|
399
399
|
const d = _.charCodeAt(0);
|
|
400
400
|
return d >= 97 && d <= 122 || // a-z
|
|
@@ -402,7 +402,7 @@ function No(e, t = {}) {
|
|
|
402
402
|
d === 95;
|
|
403
403
|
}
|
|
404
404
|
function g(_) {
|
|
405
|
-
if (_ ===
|
|
405
|
+
if (_ === Fe)
|
|
406
406
|
return !1;
|
|
407
407
|
const d = _.charCodeAt(0);
|
|
408
408
|
return d >= 48 && d <= 57;
|
|
@@ -412,15 +412,15 @@ function No(e, t = {}) {
|
|
|
412
412
|
if (y !== 2)
|
|
413
413
|
return !1;
|
|
414
414
|
E(_);
|
|
415
|
-
const
|
|
416
|
-
return _.resetPeek(),
|
|
415
|
+
const k = h(_.currentPeek());
|
|
416
|
+
return _.resetPeek(), k;
|
|
417
417
|
}
|
|
418
418
|
function S(_, d) {
|
|
419
419
|
const { currentType: y } = d;
|
|
420
420
|
if (y !== 2)
|
|
421
421
|
return !1;
|
|
422
422
|
E(_);
|
|
423
|
-
const
|
|
423
|
+
const k = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), z = g(k);
|
|
424
424
|
return _.resetPeek(), z;
|
|
425
425
|
}
|
|
426
426
|
function O(_, d) {
|
|
@@ -428,41 +428,41 @@ function No(e, t = {}) {
|
|
|
428
428
|
if (y !== 2)
|
|
429
429
|
return !1;
|
|
430
430
|
E(_);
|
|
431
|
-
const
|
|
432
|
-
return _.resetPeek(),
|
|
431
|
+
const k = _.currentPeek() === Or;
|
|
432
|
+
return _.resetPeek(), k;
|
|
433
433
|
}
|
|
434
434
|
function L(_, d) {
|
|
435
435
|
const { currentType: y } = d;
|
|
436
436
|
if (y !== 7)
|
|
437
437
|
return !1;
|
|
438
438
|
E(_);
|
|
439
|
-
const
|
|
440
|
-
return _.resetPeek(),
|
|
439
|
+
const k = _.currentPeek() === ".";
|
|
440
|
+
return _.resetPeek(), k;
|
|
441
441
|
}
|
|
442
442
|
function v(_, d) {
|
|
443
443
|
const { currentType: y } = d;
|
|
444
444
|
if (y !== 8)
|
|
445
445
|
return !1;
|
|
446
446
|
E(_);
|
|
447
|
-
const
|
|
448
|
-
return _.resetPeek(),
|
|
447
|
+
const k = h(_.currentPeek());
|
|
448
|
+
return _.resetPeek(), k;
|
|
449
449
|
}
|
|
450
450
|
function x(_, d) {
|
|
451
451
|
const { currentType: y } = d;
|
|
452
452
|
if (!(y === 7 || y === 11))
|
|
453
453
|
return !1;
|
|
454
454
|
E(_);
|
|
455
|
-
const
|
|
456
|
-
return _.resetPeek(),
|
|
455
|
+
const k = _.currentPeek() === ":";
|
|
456
|
+
return _.resetPeek(), k;
|
|
457
457
|
}
|
|
458
458
|
function Y(_, d) {
|
|
459
459
|
const { currentType: y } = d;
|
|
460
460
|
if (y !== 9)
|
|
461
461
|
return !1;
|
|
462
|
-
const
|
|
462
|
+
const k = () => {
|
|
463
463
|
const Z = _.currentPeek();
|
|
464
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(),
|
|
465
|
-
}, z =
|
|
464
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), k()) : Se(_, !1);
|
|
465
|
+
}, z = k();
|
|
466
466
|
return _.resetPeek(), z;
|
|
467
467
|
}
|
|
468
468
|
function se(_) {
|
|
@@ -474,12 +474,12 @@ function No(e, t = {}) {
|
|
|
474
474
|
const y = (z = !1, Z = "") => {
|
|
475
475
|
const W = _.currentPeek();
|
|
476
476
|
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(),
|
|
477
|
+
}, k = y();
|
|
478
|
+
return d && _.resetPeek(), k;
|
|
479
479
|
}
|
|
480
480
|
function oe(_, d) {
|
|
481
481
|
const y = _.currentChar();
|
|
482
|
-
return y ===
|
|
482
|
+
return y === Fe ? Fe : d(y) ? (_.next(), y) : null;
|
|
483
483
|
}
|
|
484
484
|
function Ze(_) {
|
|
485
485
|
const d = _.charCodeAt(0);
|
|
@@ -550,12 +550,12 @@ function No(e, t = {}) {
|
|
|
550
550
|
let d = "", y = "";
|
|
551
551
|
for (; d = sn(_); )
|
|
552
552
|
y += d;
|
|
553
|
-
return _.currentChar() ===
|
|
553
|
+
return _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y;
|
|
554
554
|
}
|
|
555
555
|
function _n(_) {
|
|
556
556
|
C(_);
|
|
557
557
|
let d = "";
|
|
558
|
-
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() ===
|
|
558
|
+
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d;
|
|
559
559
|
}
|
|
560
560
|
function dn(_) {
|
|
561
561
|
return _ !== Or && _ !== ce;
|
|
@@ -565,8 +565,8 @@ function No(e, t = {}) {
|
|
|
565
565
|
let d = "", y = "";
|
|
566
566
|
for (; d = oe(_, dn); )
|
|
567
567
|
d === "\\" ? y += mn(_) : y += d;
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const k = _.currentChar();
|
|
569
|
+
return k === ce || k === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), k === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
570
570
|
}
|
|
571
571
|
function mn(_) {
|
|
572
572
|
const d = _.currentChar();
|
|
@@ -584,16 +584,16 @@ function No(e, t = {}) {
|
|
|
584
584
|
}
|
|
585
585
|
function Ft(_, d, y) {
|
|
586
586
|
A(_, d);
|
|
587
|
-
let
|
|
587
|
+
let k = "";
|
|
588
588
|
for (let z = 0; z < y; z++) {
|
|
589
589
|
const Z = Ie(_);
|
|
590
590
|
if (!Z) {
|
|
591
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
591
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${k}${_.currentChar()}`);
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
|
|
594
|
+
k += Z;
|
|
595
595
|
}
|
|
596
|
-
return `\\${d}${
|
|
596
|
+
return `\\${d}${k}`;
|
|
597
597
|
}
|
|
598
598
|
function hn(_) {
|
|
599
599
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -613,8 +613,8 @@ function No(e, t = {}) {
|
|
|
613
613
|
}
|
|
614
614
|
function En(_) {
|
|
615
615
|
const d = (y) => {
|
|
616
|
-
const
|
|
617
|
-
return
|
|
616
|
+
const k = _.currentChar();
|
|
617
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Ce ? y : (y += k, _.next(), d(y));
|
|
618
618
|
};
|
|
619
619
|
return d("");
|
|
620
620
|
}
|
|
@@ -667,16 +667,16 @@ function No(e, t = {}) {
|
|
|
667
667
|
}
|
|
668
668
|
function $e(_, d) {
|
|
669
669
|
const { currentType: y } = d;
|
|
670
|
-
let
|
|
670
|
+
let k = null;
|
|
671
671
|
const z = _.currentChar();
|
|
672
672
|
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
673
673
|
case "@":
|
|
674
|
-
return _.next(),
|
|
674
|
+
return _.next(), k = m(
|
|
675
675
|
d,
|
|
676
676
|
7,
|
|
677
677
|
"@"
|
|
678
678
|
/* TokenChars.LinkedAlias */
|
|
679
|
-
), d.inLinked = !0,
|
|
679
|
+
), d.inLinked = !0, k;
|
|
680
680
|
case ".":
|
|
681
681
|
return C(_), _.next(), m(
|
|
682
682
|
d,
|
|
@@ -692,7 +692,7 @@ function No(e, t = {}) {
|
|
|
692
692
|
/* TokenChars.LinkedDelimiter */
|
|
693
693
|
);
|
|
694
694
|
default:
|
|
695
|
-
return se(_) ? (
|
|
695
|
+
return se(_) ? (k = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, k) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? mt(_, d) || k : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
function ht(_, d) {
|
|
@@ -727,8 +727,8 @@ function No(e, t = {}) {
|
|
|
727
727
|
return y;
|
|
728
728
|
}
|
|
729
729
|
function bn() {
|
|
730
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
731
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
730
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: k } = l;
|
|
731
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = k, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
732
732
|
l,
|
|
733
733
|
13
|
|
734
734
|
/* TokenTypes.EOF */
|
|
@@ -741,8 +741,8 @@ function No(e, t = {}) {
|
|
|
741
741
|
context: c
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
const
|
|
745
|
-
function
|
|
744
|
+
const Oo = "parser", Io = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
745
|
+
function Co(e, t, n) {
|
|
746
746
|
switch (e) {
|
|
747
747
|
case "\\\\":
|
|
748
748
|
return "\\";
|
|
@@ -755,13 +755,13 @@ function Io(e, t, n) {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Lo(e = {}) {
|
|
759
759
|
const t = e.location !== !1, { onError: n } = e;
|
|
760
760
|
function r(h, g, N, S, ...O) {
|
|
761
761
|
const L = h.currentPosition();
|
|
762
762
|
if (L.offset += S, L.column += S, n) {
|
|
763
763
|
const v = t ? Rn(N, L) : null, x = ft(g, v, {
|
|
764
|
-
domain:
|
|
764
|
+
domain: Oo,
|
|
765
765
|
args: O
|
|
766
766
|
});
|
|
767
767
|
n(x);
|
|
@@ -788,7 +788,7 @@ function Co(e = {}) {
|
|
|
788
788
|
}
|
|
789
789
|
function c(h, g) {
|
|
790
790
|
const N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(9, S, O);
|
|
791
|
-
return L.value = g.replace(
|
|
791
|
+
return L.value = g.replace(Io, Co), h.nextToken(), s(L, h.currentOffset(), h.currentPosition()), L;
|
|
792
792
|
}
|
|
793
793
|
function f(h) {
|
|
794
794
|
const g = h.nextToken(), N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(8, S, O);
|
|
@@ -881,7 +881,7 @@ function Co(e = {}) {
|
|
|
881
881
|
return g.currentType === 13 ? O : A(h, N, S, O);
|
|
882
882
|
}
|
|
883
883
|
function C(h) {
|
|
884
|
-
const g =
|
|
884
|
+
const g = To(h, ie({}, e)), N = g.context(), S = a(0, N.offset, N.startLoc);
|
|
885
885
|
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
886
|
}
|
|
887
887
|
return { parse: C };
|
|
@@ -892,7 +892,7 @@ function ye(e) {
|
|
|
892
892
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
893
893
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function wo(e, t = {}) {
|
|
896
896
|
const n = {
|
|
897
897
|
ast: e,
|
|
898
898
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -944,8 +944,8 @@ function nr(e, t) {
|
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
const n =
|
|
947
|
+
function Do(e, t = {}) {
|
|
948
|
+
const n = wo(e);
|
|
949
949
|
n.helper(
|
|
950
950
|
"normalize"
|
|
951
951
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -953,7 +953,7 @@ function wo(e, t = {}) {
|
|
|
953
953
|
const r = n.context();
|
|
954
954
|
e.helpers = Array.from(r.helpers);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Ro(e) {
|
|
957
957
|
const t = e.body;
|
|
958
958
|
return t.type === 2 ? Cr(t) : t.cases.forEach((n) => Cr(n)), e;
|
|
959
959
|
}
|
|
@@ -978,7 +978,7 @@ function Cr(e) {
|
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
const
|
|
981
|
+
const ko = "minifier";
|
|
982
982
|
function st(e) {
|
|
983
983
|
switch (e.t = e.type, e.type) {
|
|
984
984
|
case 0: {
|
|
@@ -1026,14 +1026,14 @@ function st(e) {
|
|
|
1026
1026
|
default:
|
|
1027
1027
|
if (process.env.NODE_ENV !== "production")
|
|
1028
1028
|
throw ft(M.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1029
|
-
domain:
|
|
1029
|
+
domain: ko,
|
|
1030
1030
|
args: [e.type]
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
delete e.type;
|
|
1034
1034
|
}
|
|
1035
1035
|
const Po = "parser";
|
|
1036
|
-
function
|
|
1036
|
+
function Fo(e, t) {
|
|
1037
1037
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
1038
1038
|
filename: n,
|
|
1039
1039
|
code: "",
|
|
@@ -1075,14 +1075,14 @@ function ko(e, t) {
|
|
|
1075
1075
|
needIndent: () => o.needIndent
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Mo(e, t) {
|
|
1079
1079
|
const { helper: n } = e;
|
|
1080
1080
|
e.push(`${n(
|
|
1081
1081
|
"linked"
|
|
1082
1082
|
/* HelperNameMap.LINKED */
|
|
1083
1083
|
)}(`), ct(e, t.key), t.modifier ? (e.push(", "), ct(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Uo(e, t) {
|
|
1086
1086
|
const { helper: n, needIndent: r } = e;
|
|
1087
1087
|
e.push(`${n(
|
|
1088
1088
|
"normalize"
|
|
@@ -1093,7 +1093,7 @@ function Mo(e, t) {
|
|
|
1093
1093
|
e.push(", ");
|
|
1094
1094
|
e.deindent(r()), e.push("])");
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Bo(e, t) {
|
|
1097
1097
|
const { helper: n, needIndent: r } = e;
|
|
1098
1098
|
if (t.cases.length > 1) {
|
|
1099
1099
|
e.push(`${n(
|
|
@@ -1106,23 +1106,23 @@ function Uo(e, t) {
|
|
|
1106
1106
|
e.deindent(r()), e.push("])");
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function xo(e, t) {
|
|
1110
1110
|
t.body ? ct(e, t.body) : e.push("null");
|
|
1111
1111
|
}
|
|
1112
1112
|
function ct(e, t) {
|
|
1113
1113
|
const { helper: n } = e;
|
|
1114
1114
|
switch (t.type) {
|
|
1115
1115
|
case 0:
|
|
1116
|
-
|
|
1116
|
+
xo(e, t);
|
|
1117
1117
|
break;
|
|
1118
1118
|
case 1:
|
|
1119
|
-
|
|
1119
|
+
Bo(e, t);
|
|
1120
1120
|
break;
|
|
1121
1121
|
case 2:
|
|
1122
|
-
|
|
1122
|
+
Uo(e, t);
|
|
1123
1123
|
break;
|
|
1124
1124
|
case 6:
|
|
1125
|
-
|
|
1125
|
+
Mo(e, t);
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 8:
|
|
1128
1128
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1162,11 +1162,11 @@ function ct(e, t) {
|
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const Vo = (e, t = {}) => {
|
|
1166
1166
|
const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
1167
1167
|
t.sourceMap;
|
|
1168
1168
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1169
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1169
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Fo(e, {
|
|
1170
1170
|
filename: r,
|
|
1171
1171
|
breakLineCode: a,
|
|
1172
1172
|
needIndent: s
|
|
@@ -1180,35 +1180,35 @@ const xo = (e, t = {}) => {
|
|
|
1180
1180
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1181
1181
|
};
|
|
1182
1182
|
};
|
|
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 &&
|
|
1183
|
+
function Go(e, t = {}) {
|
|
1184
|
+
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Lo(n).parse(e);
|
|
1185
|
+
return r ? (s && Ro(i), a && st(i), { ast: i, code: "" }) : (Do(i, n), Vo(i, n));
|
|
1186
1186
|
}
|
|
1187
1187
|
/*!
|
|
1188
1188
|
* core-base v11.1.3
|
|
1189
1189
|
* (c) 2025 kazuya kawaguchi
|
|
1190
1190
|
* Released under the MIT License.
|
|
1191
1191
|
*/
|
|
1192
|
-
function
|
|
1192
|
+
function $o() {
|
|
1193
1193
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1194
1194
|
}
|
|
1195
1195
|
function Ee(e) {
|
|
1196
1196
|
return G(e) && rr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
1197
1197
|
}
|
|
1198
1198
|
const Oa = ["b", "body"];
|
|
1199
|
-
function
|
|
1199
|
+
function Wo(e) {
|
|
1200
1200
|
return xe(e, Oa);
|
|
1201
1201
|
}
|
|
1202
1202
|
const Ia = ["c", "cases"];
|
|
1203
|
-
function
|
|
1203
|
+
function Yo(e) {
|
|
1204
1204
|
return xe(e, Ia, []);
|
|
1205
1205
|
}
|
|
1206
1206
|
const Ca = ["s", "static"];
|
|
1207
|
-
function
|
|
1207
|
+
function Ho(e) {
|
|
1208
1208
|
return xe(e, Ca);
|
|
1209
1209
|
}
|
|
1210
1210
|
const La = ["i", "items"];
|
|
1211
|
-
function
|
|
1211
|
+
function Ko(e) {
|
|
1212
1212
|
return xe(e, La, []);
|
|
1213
1213
|
}
|
|
1214
1214
|
const wa = ["t", "type"];
|
|
@@ -1223,12 +1223,12 @@ function xt(e, t) {
|
|
|
1223
1223
|
throw Ot(t);
|
|
1224
1224
|
}
|
|
1225
1225
|
const Ra = ["m", "modifier"];
|
|
1226
|
-
function
|
|
1226
|
+
function jo(e) {
|
|
1227
1227
|
return xe(e, Ra);
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1231
|
-
const t = xe(e,
|
|
1229
|
+
const ka = ["k", "key"];
|
|
1230
|
+
function qo(e) {
|
|
1231
|
+
const t = xe(e, ka);
|
|
1232
1232
|
if (t)
|
|
1233
1233
|
return t;
|
|
1234
1234
|
throw Ot(
|
|
@@ -1244,12 +1244,12 @@ function xe(e, t, n) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
return n;
|
|
1246
1246
|
}
|
|
1247
|
-
const
|
|
1247
|
+
const Pa = [
|
|
1248
1248
|
...Oa,
|
|
1249
1249
|
...Ia,
|
|
1250
1250
|
...Ca,
|
|
1251
1251
|
...La,
|
|
1252
|
-
...
|
|
1252
|
+
...ka,
|
|
1253
1253
|
...Ra,
|
|
1254
1254
|
...Da,
|
|
1255
1255
|
...wa
|
|
@@ -1258,17 +1258,17 @@ function Ot(e) {
|
|
|
1258
1258
|
return new Error(`unhandled node type: ${e}`);
|
|
1259
1259
|
}
|
|
1260
1260
|
function Sn(e) {
|
|
1261
|
-
return (n) =>
|
|
1261
|
+
return (n) => Xo(n, e);
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1263
|
+
function Xo(e, t) {
|
|
1264
|
+
const n = Wo(t);
|
|
1265
1265
|
if (n == null)
|
|
1266
1266
|
throw Ot(
|
|
1267
1267
|
0
|
|
1268
1268
|
/* NodeTypes.Resource */
|
|
1269
1269
|
);
|
|
1270
1270
|
if (rr(n) === 1) {
|
|
1271
|
-
const s =
|
|
1271
|
+
const s = Yo(n);
|
|
1272
1272
|
return e.plural(s.reduce((o, i) => [
|
|
1273
1273
|
...o,
|
|
1274
1274
|
Lr(e, i)
|
|
@@ -1277,15 +1277,15 @@ function qo(e, t) {
|
|
|
1277
1277
|
return Lr(e, n);
|
|
1278
1278
|
}
|
|
1279
1279
|
function Lr(e, t) {
|
|
1280
|
-
const n =
|
|
1280
|
+
const n = Ho(t);
|
|
1281
1281
|
if (n != null)
|
|
1282
1282
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1283
1283
|
{
|
|
1284
|
-
const r =
|
|
1284
|
+
const r = Ko(t).reduce((a, s) => [...a, kn(e, s)], []);
|
|
1285
1285
|
return e.normalize(r);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function kn(e, t) {
|
|
1289
1289
|
const n = rr(t);
|
|
1290
1290
|
switch (n) {
|
|
1291
1291
|
case 3:
|
|
@@ -1309,8 +1309,8 @@ function Pn(e, t) {
|
|
|
1309
1309
|
throw Ot(n);
|
|
1310
1310
|
}
|
|
1311
1311
|
case 6: {
|
|
1312
|
-
const r = t, a =
|
|
1313
|
-
return e.linked(
|
|
1312
|
+
const r = t, a = jo(r), s = qo(r);
|
|
1313
|
+
return e.linked(kn(e, s), a ? kn(e, a) : void 0, e.type);
|
|
1314
1314
|
}
|
|
1315
1315
|
case 7:
|
|
1316
1316
|
return xt(t, n);
|
|
@@ -1320,28 +1320,28 @@ function Pn(e, t) {
|
|
|
1320
1320
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
t &&
|
|
1323
|
+
const Qo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1324
|
+
function Jo(e, t) {
|
|
1325
|
+
t && Eo(e) && (Xt(Qo, { source: e }), void 0);
|
|
1326
1326
|
}
|
|
1327
|
-
const
|
|
1327
|
+
const zo = (e) => e;
|
|
1328
1328
|
let Vt = K();
|
|
1329
|
-
function
|
|
1329
|
+
function Zo(e, t = {}) {
|
|
1330
1330
|
let n = !1;
|
|
1331
|
-
const r = t.onError ||
|
|
1331
|
+
const r = t.onError || go;
|
|
1332
1332
|
return t.onError = (a) => {
|
|
1333
1333
|
n = !0, r(a);
|
|
1334
|
-
}, { ...
|
|
1334
|
+
}, { ...Go(e, t), detectError: n };
|
|
1335
1335
|
}
|
|
1336
1336
|
// @__NO_SIDE_EFFECTS__
|
|
1337
|
-
function
|
|
1337
|
+
function ei(e, t) {
|
|
1338
1338
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1339
1339
|
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1340
|
-
process.env.NODE_ENV !== "production" &&
|
|
1341
|
-
const a = (t.onCacheKey ||
|
|
1340
|
+
process.env.NODE_ENV !== "production" && Jo(e, n);
|
|
1341
|
+
const a = (t.onCacheKey || zo)(e), s = Vt[a];
|
|
1342
1342
|
if (s)
|
|
1343
1343
|
return s;
|
|
1344
|
-
const { ast: o, detectError: i } =
|
|
1344
|
+
const { ast: o, detectError: i } = Zo(e, {
|
|
1345
1345
|
...t,
|
|
1346
1346
|
location: process.env.NODE_ENV !== "production",
|
|
1347
1347
|
jit: !0
|
|
@@ -1359,10 +1359,10 @@ function Zo(e, t) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
let It = null;
|
|
1362
|
-
function
|
|
1362
|
+
function ti(e) {
|
|
1363
1363
|
It = e;
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function ni(e, t, n) {
|
|
1366
1366
|
It && It.emit("i18n:init", {
|
|
1367
1367
|
timestamp: Date.now(),
|
|
1368
1368
|
i18n: e,
|
|
@@ -1370,12 +1370,12 @@ function ti(e, t, n) {
|
|
|
1370
1370
|
meta: n
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1373
|
+
const ri = /* @__PURE__ */ ai("function:translate");
|
|
1374
|
+
function ai(e) {
|
|
1375
1375
|
return (t) => It && It.emit(e, t);
|
|
1376
1376
|
}
|
|
1377
1377
|
const le = {
|
|
1378
|
-
INVALID_ARGUMENT:
|
|
1378
|
+
INVALID_ARGUMENT: mo,
|
|
1379
1379
|
// 17
|
|
1380
1380
|
INVALID_DATE_ARGUMENT: 18,
|
|
1381
1381
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1383,11 +1383,11 @@ const le = {
|
|
|
1383
1383
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1384
1384
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1385
1385
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1386
|
-
},
|
|
1387
|
-
function
|
|
1388
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1386
|
+
}, si = 24;
|
|
1387
|
+
function we(e) {
|
|
1388
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: oi } : void 0);
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const oi = {
|
|
1391
1391
|
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1392
1392
|
[le.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1393
1393
|
[le.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1408,15 +1408,15 @@ function wr(e) {
|
|
|
1408
1408
|
return vn;
|
|
1409
1409
|
if (e.constructor.name === "Function") {
|
|
1410
1410
|
const t = e();
|
|
1411
|
-
if (
|
|
1412
|
-
throw
|
|
1411
|
+
if (lo(t))
|
|
1412
|
+
throw we(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1413
1413
|
return vn = t;
|
|
1414
1414
|
} else
|
|
1415
|
-
throw
|
|
1415
|
+
throw we(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1416
1416
|
} else
|
|
1417
|
-
throw
|
|
1417
|
+
throw we(le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function ii(e, t, n) {
|
|
1420
1420
|
return [.../* @__PURE__ */ new Set([
|
|
1421
1421
|
n,
|
|
1422
1422
|
...re(t) ? t : G(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
@@ -1440,20 +1440,20 @@ function Dr(e, t, n) {
|
|
|
1440
1440
|
let r = !0;
|
|
1441
1441
|
for (let a = 0; a < t.length && $(r); a++) {
|
|
1442
1442
|
const s = t[a];
|
|
1443
|
-
I(s) && (r =
|
|
1443
|
+
I(s) && (r = li(e, t[a], n));
|
|
1444
1444
|
}
|
|
1445
1445
|
return r;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function li(e, t, n) {
|
|
1448
1448
|
let r;
|
|
1449
1449
|
const a = t.split("-");
|
|
1450
1450
|
do {
|
|
1451
1451
|
const s = a.join("-");
|
|
1452
|
-
r =
|
|
1452
|
+
r = ci(e, s, n), a.splice(-1, 1);
|
|
1453
1453
|
} while (a.length && r === !0);
|
|
1454
1454
|
return r;
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function ci(e, t, n) {
|
|
1457
1457
|
let r = !1;
|
|
1458
1458
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1459
1459
|
r = t[t.length - 1] !== "!";
|
|
@@ -1623,15 +1623,15 @@ Ve[
|
|
|
1623
1623
|
/* Actions.APPEND */
|
|
1624
1624
|
]
|
|
1625
1625
|
};
|
|
1626
|
-
const
|
|
1627
|
-
function ui(e) {
|
|
1628
|
-
return ci.test(e);
|
|
1629
|
-
}
|
|
1626
|
+
const ui = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1630
1627
|
function fi(e) {
|
|
1628
|
+
return ui.test(e);
|
|
1629
|
+
}
|
|
1630
|
+
function _i(e) {
|
|
1631
1631
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1632
1632
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function di(e) {
|
|
1635
1635
|
if (e == null)
|
|
1636
1636
|
return "o";
|
|
1637
1637
|
switch (e.charCodeAt(0)) {
|
|
@@ -1668,11 +1668,11 @@ function _i(e) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return "i";
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function mi(e) {
|
|
1672
1672
|
const t = e.trim();
|
|
1673
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1673
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : fi(t) ? _i(t) : "*" + t;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function hi(e) {
|
|
1676
1676
|
const t = [];
|
|
1677
1677
|
let n = -1, r = 0, a = 0, s, o, i, l, c, f, u;
|
|
1678
1678
|
const m = [];
|
|
@@ -1704,7 +1704,7 @@ function mi(e) {
|
|
|
1704
1704
|
/* Actions.APPEND */
|
|
1705
1705
|
]();
|
|
1706
1706
|
else {
|
|
1707
|
-
if (a = 0, o === void 0 || (o =
|
|
1707
|
+
if (a = 0, o === void 0 || (o = mi(o), o === !1))
|
|
1708
1708
|
return !1;
|
|
1709
1709
|
m[
|
|
1710
1710
|
1
|
|
@@ -1722,27 +1722,27 @@ function mi(e) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
for (; r !== null; )
|
|
1724
1724
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1725
|
-
if (l =
|
|
1725
|
+
if (l = di(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
1726
|
return;
|
|
1727
1727
|
if (r === 7)
|
|
1728
1728
|
return t;
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
const Rr = /* @__PURE__ */ new Map();
|
|
1732
|
-
function
|
|
1732
|
+
function gi(e, t) {
|
|
1733
1733
|
return G(e) ? e[t] : null;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function pi(e, t) {
|
|
1736
1736
|
if (!G(e))
|
|
1737
1737
|
return null;
|
|
1738
1738
|
let n = Rr.get(t);
|
|
1739
|
-
if (n || (n =
|
|
1739
|
+
if (n || (n = hi(t), n && Rr.set(t, n)), !n)
|
|
1740
1740
|
return null;
|
|
1741
1741
|
const r = n.length;
|
|
1742
1742
|
let a = e, s = 0;
|
|
1743
1743
|
for (; s < r; ) {
|
|
1744
1744
|
const o = n[s];
|
|
1745
|
-
if (
|
|
1745
|
+
if (Pa.includes(o) && Ee(a))
|
|
1746
1746
|
return null;
|
|
1747
1747
|
const i = a[o];
|
|
1748
1748
|
if (i === void 0 || q(a))
|
|
@@ -1759,7 +1759,7 @@ const _e = {
|
|
|
1759
1759
|
CANNOT_FORMAT_DATE: 5,
|
|
1760
1760
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1761
1761
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1762
|
-
},
|
|
1762
|
+
}, Ei = 8, bi = {
|
|
1763
1763
|
[_e.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1764
1764
|
[_e.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1765
1765
|
[_e.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1769,41 +1769,41 @@ const _e = {
|
|
|
1769
1769
|
[_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
1770
|
};
|
|
1771
1771
|
function Je(e, ...t) {
|
|
1772
|
-
return Xt(
|
|
1772
|
+
return Xt(bi[e], ...t);
|
|
1773
1773
|
}
|
|
1774
|
-
const
|
|
1775
|
-
function
|
|
1774
|
+
const Si = "11.1.3", Jt = -1, Ct = "en-US", Ht = "", kr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1775
|
+
function vi() {
|
|
1776
1776
|
return {
|
|
1777
1777
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1778
1778
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1779
|
-
capitalize: (e, t) => t === "text" && I(e) ?
|
|
1779
|
+
capitalize: (e, t) => t === "text" && I(e) ? kr(e) : t === "vnode" && G(e) && "__v_isVNode" in e ? kr(e.children) : e
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
let Ma;
|
|
1783
|
-
function
|
|
1783
|
+
function Ai(e) {
|
|
1784
1784
|
Ma = e;
|
|
1785
1785
|
}
|
|
1786
1786
|
let Ua;
|
|
1787
|
-
function
|
|
1787
|
+
function yi(e) {
|
|
1788
1788
|
Ua = e;
|
|
1789
1789
|
}
|
|
1790
1790
|
let Ba;
|
|
1791
|
-
function
|
|
1791
|
+
function Ni(e) {
|
|
1792
1792
|
Ba = e;
|
|
1793
1793
|
}
|
|
1794
1794
|
let xa = null;
|
|
1795
|
-
const
|
|
1795
|
+
const Ti = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1796
1796
|
xa = e;
|
|
1797
|
-
},
|
|
1797
|
+
}, Oi = /* @__NO_SIDE_EFFECTS__ */ () => xa;
|
|
1798
1798
|
let Va = null;
|
|
1799
|
-
const
|
|
1799
|
+
const Pr = (e) => {
|
|
1800
1800
|
Va = e;
|
|
1801
|
-
},
|
|
1801
|
+
}, Ii = () => Va;
|
|
1802
1802
|
let Fr = 0;
|
|
1803
|
-
function
|
|
1804
|
-
const t = q(e.onWarn) ? e.onWarn :
|
|
1803
|
+
function Ci(e = {}) {
|
|
1804
|
+
const t = q(e.onWarn) ? e.onWarn : fo, n = I(e.version) ? e.version : Si, r = I(e.locale) || q(e.locale) ? e.locale : Ct, a = q(r) ? Ct : 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, vi()), 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 : Ma;
|
|
1805
1805
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1806
|
-
const O = q(e.messageResolver) ? e.messageResolver : Ua ||
|
|
1806
|
+
const O = q(e.messageResolver) ? e.messageResolver : Ua || gi, L = q(e.localeFallbacker) ? e.localeFallbacker : Ba || ii, 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
1807
|
Fr++;
|
|
1808
1808
|
const oe = {
|
|
1809
1809
|
version: n,
|
|
@@ -1829,7 +1829,7 @@ function Ii(e = {}) {
|
|
|
1829
1829
|
onWarn: t,
|
|
1830
1830
|
__meta: Se
|
|
1831
1831
|
};
|
|
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__) &&
|
|
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__) && ni(oe, n, Se), oe;
|
|
1833
1833
|
}
|
|
1834
1834
|
const An = (e) => ({ [e]: K() });
|
|
1835
1835
|
function zt(e, t) {
|
|
@@ -1862,7 +1862,7 @@ function pt(e, t, n) {
|
|
|
1862
1862
|
function $a(e, t) {
|
|
1863
1863
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function Li(e, t) {
|
|
1866
1866
|
const n = t.indexOf(e);
|
|
1867
1867
|
if (n === -1)
|
|
1868
1868
|
return !1;
|
|
@@ -1879,7 +1879,7 @@ function Ur(e, ...t) {
|
|
|
1879
1879
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1880
1880
|
if (process.env.NODE_ENV !== "production" && !Wa.dateTimeFormat)
|
|
1881
1881
|
return s(Je(_e.CANNOT_FORMAT_DATE)), Ht;
|
|
1882
|
-
const [l, c, f, u] =
|
|
1882
|
+
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
1883
|
e,
|
|
1884
1884
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1885
1885
|
a,
|
|
@@ -1936,28 +1936,28 @@ const Ya = [
|
|
|
1936
1936
|
"hourCycle",
|
|
1937
1937
|
"fractionalSecondDigits"
|
|
1938
1938
|
];
|
|
1939
|
-
function
|
|
1939
|
+
function Pn(...e) {
|
|
1940
1940
|
const [t, n, r, a] = e, s = K();
|
|
1941
1941
|
let o = K(), i;
|
|
1942
1942
|
if (I(t)) {
|
|
1943
1943
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1944
1944
|
if (!l)
|
|
1945
|
-
throw
|
|
1945
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1946
1946
|
const c = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
1947
1947
|
i = new Date(c);
|
|
1948
1948
|
try {
|
|
1949
1949
|
i.toISOString();
|
|
1950
1950
|
} catch {
|
|
1951
|
-
throw
|
|
1951
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1952
1952
|
}
|
|
1953
|
-
} else if (
|
|
1953
|
+
} else if (so(t)) {
|
|
1954
1954
|
if (isNaN(t.getTime()))
|
|
1955
|
-
throw
|
|
1955
|
+
throw we(le.INVALID_DATE_ARGUMENT);
|
|
1956
1956
|
i = t;
|
|
1957
1957
|
} else if (ae(t))
|
|
1958
1958
|
i = t;
|
|
1959
1959
|
else
|
|
1960
|
-
throw
|
|
1960
|
+
throw we(le.INVALID_ARGUMENT);
|
|
1961
1961
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
1962
1962
|
Ya.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
1963
1963
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
@@ -2034,7 +2034,7 @@ function Fn(...e) {
|
|
|
2034
2034
|
const [t, n, r, a] = e, s = K();
|
|
2035
2035
|
let o = K();
|
|
2036
2036
|
if (!ae(t))
|
|
2037
|
-
throw
|
|
2037
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2038
2038
|
const i = t;
|
|
2039
2039
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2040
2040
|
Ha.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
@@ -2047,26 +2047,26 @@ function Vr(e, t, n) {
|
|
|
2047
2047
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
const
|
|
2050
|
+
const wi = (e) => e, Di = (e) => "", Ri = "text", ki = (e) => e.length === 0 ? "" : Zn(e), Pi = co;
|
|
2051
2051
|
function Gr(e, t) {
|
|
2052
2052
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Fi(e) {
|
|
2055
2055
|
const t = ae(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2056
2056
|
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
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Mi(e, t) {
|
|
2059
2059
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const t = e.locale, n =
|
|
2063
|
-
ae(e.pluralIndex) &&
|
|
2061
|
+
function Ui(e = {}) {
|
|
2062
|
+
const t = e.locale, n = Fi(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();
|
|
2063
|
+
ae(e.pluralIndex) && Mi(n, l);
|
|
2064
2064
|
const c = (h) => l[h];
|
|
2065
2065
|
function f(h, g) {
|
|
2066
2066
|
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) :
|
|
2067
|
+
return N || (e.parent ? e.parent.message(h) : Di);
|
|
2068
2068
|
}
|
|
2069
|
-
const u = (h) => e.modifiers ? e.modifiers[h] :
|
|
2069
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : wi, m = V(e.processor) && q(e.processor.normalize) ? e.processor.normalize : ki, p = V(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Pi, A = V(e.processor) && I(e.processor.type) ? e.processor.type : Ri, C = {
|
|
2070
2070
|
list: i,
|
|
2071
2071
|
named: c,
|
|
2072
2072
|
plural: s,
|
|
@@ -2091,7 +2091,7 @@ function Mi(e = {}) {
|
|
|
2091
2091
|
const $r = () => "", pe = (e) => q(e);
|
|
2092
2092
|
function Wr(e, ...t) {
|
|
2093
2093
|
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 &&
|
|
2094
|
+
m && Bi(c);
|
|
2095
2095
|
let [h, g, N] = p ? [
|
|
2096
2096
|
l,
|
|
2097
2097
|
C,
|
|
@@ -2107,7 +2107,7 @@ function Wr(e, ...t) {
|
|
|
2107
2107
|
}, x = pe(S) ? S : ja(e, l, g, S, O, v);
|
|
2108
2108
|
if (L)
|
|
2109
2109
|
return S;
|
|
2110
|
-
const Y =
|
|
2110
|
+
const Y = $i(e, g, N, c), se = Ui(Y), Se = xi(e, x, se), oe = r ? r(Se, l) : Se;
|
|
2111
2111
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2112
2112
|
const Ze = {
|
|
2113
2113
|
timestamp: Date.now(),
|
|
@@ -2116,11 +2116,11 @@ function Wr(e, ...t) {
|
|
|
2116
2116
|
format: I(S) ? S : pe(S) ? S.source : "",
|
|
2117
2117
|
message: oe
|
|
2118
2118
|
};
|
|
2119
|
-
Ze.meta = ie({}, e.__meta, /* @__PURE__ */
|
|
2119
|
+
Ze.meta = ie({}, e.__meta, /* @__PURE__ */ Oi() || {}), ri(Ze);
|
|
2120
2120
|
}
|
|
2121
2121
|
return oe;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Bi(e) {
|
|
2124
2124
|
re(e.list) ? e.list = e.list.map((t) => I(t) ? yr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2125
2125
|
I(e.named[t]) && (e.named[t] = yr(e.named[t]));
|
|
2126
2126
|
});
|
|
@@ -2157,7 +2157,7 @@ function Ka(e, t, n, r, a, s) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
if (I(p) || Ee(p) || pe(p))
|
|
2159
2159
|
break;
|
|
2160
|
-
if (!
|
|
2160
|
+
if (!Li(m, f)) {
|
|
2161
2161
|
const O = sr(
|
|
2162
2162
|
e,
|
|
2163
2163
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2184,7 +2184,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
let l = null, c, f;
|
|
2186
2186
|
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,
|
|
2187
|
+
const u = o(r, Vi(e, n, a, r, i, s));
|
|
2188
2188
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
2189
2189
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
2190
2190
|
p && l && p.emit("message-compilation", {
|
|
@@ -2196,7 +2196,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function xi(e, t, n) {
|
|
2200
2200
|
let r = null, a, s;
|
|
2201
2201
|
process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
2202
2202
|
const o = t(n);
|
|
@@ -2214,18 +2214,18 @@ function Bi(e, t, n) {
|
|
|
2214
2214
|
function Mn(...e) {
|
|
2215
2215
|
const [t, n, r] = e, a = K();
|
|
2216
2216
|
if (!I(t) && !ae(t) && !pe(t) && !Ee(t))
|
|
2217
|
-
throw
|
|
2217
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2218
2218
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
2219
2219
|
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
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function Vi(e, t, n, r, a, s) {
|
|
2222
2222
|
return {
|
|
2223
2223
|
locale: t,
|
|
2224
2224
|
key: n,
|
|
2225
2225
|
warnHtmlMessage: a,
|
|
2226
2226
|
onError: (o) => {
|
|
2227
2227
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2228
|
-
const i =
|
|
2228
|
+
const i = Gi(r), l = `Message compilation error: ${o.message}`, c = o.location && i && uo(i, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2229
2229
|
f && i && f.emit("compile-error", {
|
|
2230
2230
|
message: i,
|
|
2231
2231
|
error: o.message,
|
|
@@ -2236,16 +2236,16 @@ function xi(e, t, n, r, a, s) {
|
|
|
2236
2236
|
} else
|
|
2237
2237
|
throw o;
|
|
2238
2238
|
},
|
|
2239
|
-
onCacheKey: (o) =>
|
|
2239
|
+
onCacheKey: (o) => ro(t, n, o)
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function Gi(e) {
|
|
2243
2243
|
if (I(e))
|
|
2244
2244
|
return e;
|
|
2245
2245
|
if (e.loc && e.loc.source)
|
|
2246
2246
|
return e.loc.source;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function $i(e, t, n, r) {
|
|
2249
2249
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: l, missingWarn: c, fallbackContext: f } = e, m = {
|
|
2250
2250
|
locale: t,
|
|
2251
2251
|
modifiers: a,
|
|
@@ -2275,23 +2275,23 @@ function Gi(e, t, n, r) {
|
|
|
2275
2275
|
};
|
|
2276
2276
|
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
2277
|
}
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2278
|
+
$o();
|
|
2279
|
+
function Wi() {
|
|
2280
2280
|
return qa().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2281
2281
|
}
|
|
2282
2282
|
function qa() {
|
|
2283
2283
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2284
2284
|
}
|
|
2285
|
-
const
|
|
2285
|
+
const Yi = typeof Proxy == "function", Hi = "devtools-plugin:setup", Ki = "plugin:settings:set";
|
|
2286
2286
|
let tt, Un;
|
|
2287
|
-
function
|
|
2287
|
+
function ji() {
|
|
2288
2288
|
var e;
|
|
2289
2289
|
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
2290
|
}
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2291
|
+
function qi() {
|
|
2292
|
+
return ji() ? Un.now() : Date.now();
|
|
2293
2293
|
}
|
|
2294
|
-
class
|
|
2294
|
+
class Xi {
|
|
2295
2295
|
constructor(t, n) {
|
|
2296
2296
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2297
2297
|
const r = {};
|
|
@@ -2319,9 +2319,9 @@ class qi {
|
|
|
2319
2319
|
s = o;
|
|
2320
2320
|
},
|
|
2321
2321
|
now() {
|
|
2322
|
-
return
|
|
2322
|
+
return qi();
|
|
2323
2323
|
}
|
|
2324
|
-
}, n && n.on(
|
|
2324
|
+
}, n && n.on(Ki, (o, i) => {
|
|
2325
2325
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2326
2326
|
}), this.proxiedOn = new Proxy({}, {
|
|
2327
2327
|
get: (o, i) => this.target ? this.target.on[i] : (...l) => {
|
|
@@ -2353,12 +2353,12 @@ class qi {
|
|
|
2353
2353
|
n.resolve(await this.target[n.method](...n.args));
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const n = e, r = qa(), a =
|
|
2356
|
+
function Qi(e, t) {
|
|
2357
|
+
const n = e, r = qa(), a = Wi(), s = Yi && n.enableEarlyProxy;
|
|
2358
2358
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2359
|
-
a.emit(
|
|
2359
|
+
a.emit(Hi, e, t);
|
|
2360
2360
|
else {
|
|
2361
|
-
const o = s ? new
|
|
2361
|
+
const o = s ? new Xi(n, a) : null;
|
|
2362
2362
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2363
2363
|
pluginDescriptor: n,
|
|
2364
2364
|
setupFn: t,
|
|
@@ -2371,13 +2371,13 @@ function Xi(e, t) {
|
|
|
2371
2371
|
* (c) 2025 kazuya kawaguchi
|
|
2372
2372
|
* Released under the MIT License.
|
|
2373
2373
|
*/
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2374
|
+
const Ji = "11.1.3";
|
|
2375
|
+
function zi() {
|
|
2376
2376
|
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
2377
|
}
|
|
2378
2378
|
const X = {
|
|
2379
2379
|
// composer module errors
|
|
2380
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2380
|
+
UNEXPECTED_RETURN_TYPE: si,
|
|
2381
2381
|
// 24
|
|
2382
2382
|
// legacy module errors
|
|
2383
2383
|
INVALID_ARGUMENT: 25,
|
|
@@ -2398,9 +2398,9 @@ const X = {
|
|
|
2398
2398
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2399
2399
|
};
|
|
2400
2400
|
function de(e, ...t) {
|
|
2401
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2401
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: Zi, args: t } : void 0);
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2403
|
+
const Zi = {
|
|
2404
2404
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2405
2405
|
[X.INVALID_ARGUMENT]: "Invalid argument",
|
|
2406
2406
|
[X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2413,7 +2413,7 @@ const zi = {
|
|
|
2413
2413
|
[X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2414
2414
|
[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
2415
|
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), Xa = Oe("__setPluralRules"), Qa = /* @__PURE__ */ Oe("__injectWithOption"), Gn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
2416
|
-
FALLBACK_TO_ROOT:
|
|
2416
|
+
FALLBACK_TO_ROOT: Ei,
|
|
2417
2417
|
// 8
|
|
2418
2418
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2419
2419
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2425,7 +2425,7 @@ const zi = {
|
|
|
2425
2425
|
* @deprecated will be removed at vue-i18n v12
|
|
2426
2426
|
*/
|
|
2427
2427
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2428
|
-
},
|
|
2428
|
+
}, el = {
|
|
2429
2429
|
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2430
2430
|
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2431
2431
|
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2440,7 +2440,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2440
2440
|
[Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2441
2441
|
};
|
|
2442
2442
|
function Rt(e, ...t) {
|
|
2443
|
-
return Xt(
|
|
2443
|
+
return Xt(el[e], ...t);
|
|
2444
2444
|
}
|
|
2445
2445
|
function wt(e) {
|
|
2446
2446
|
if (!G(e) || Ee(e))
|
|
@@ -2463,7 +2463,7 @@ function wt(e) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
a = a[n[o]];
|
|
2465
2465
|
}
|
|
2466
|
-
if (s || (Ee(a) ?
|
|
2466
|
+
if (s || (Ee(a) ? Pa.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !Ee(a)) {
|
|
2467
2467
|
const o = a[n[r]];
|
|
2468
2468
|
G(o) && wt(o);
|
|
2469
2469
|
}
|
|
@@ -2512,20 +2512,20 @@ function za(e, t, n) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
function Yr(e) {
|
|
2515
|
-
return w(
|
|
2515
|
+
return w(Bs, null, e, 0);
|
|
2516
2516
|
}
|
|
2517
|
-
const Hr = "__INTLIFY_META__", Kr = () => [],
|
|
2517
|
+
const Hr = "__INTLIFY_META__", Kr = () => [], tl = () => !1;
|
|
2518
2518
|
let jr = 0;
|
|
2519
2519
|
function qr(e) {
|
|
2520
2520
|
return (t, n, r, a) => e(n, r, yt() || void 0, a);
|
|
2521
2521
|
}
|
|
2522
|
-
const
|
|
2522
|
+
const nl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2523
2523
|
const e = yt();
|
|
2524
2524
|
let t = null;
|
|
2525
2525
|
return e && (t = Ja(e)[Hr]) ? { [Hr]: t } : null;
|
|
2526
2526
|
};
|
|
2527
2527
|
function ir(e = {}) {
|
|
2528
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ?
|
|
2528
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ? Rs : ks;
|
|
2529
2529
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2530
2530
|
const i = s(
|
|
2531
2531
|
// prettier-ignore
|
|
@@ -2538,9 +2538,9 @@ function ir(e = {}) {
|
|
|
2538
2538
|
const O = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2539
2539
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2540
2540
|
v = (() => {
|
|
2541
|
-
r &&
|
|
2541
|
+
r && Pr(null);
|
|
2542
2542
|
const b = {
|
|
2543
|
-
version:
|
|
2543
|
+
version: Ji,
|
|
2544
2544
|
locale: i.value,
|
|
2545
2545
|
fallbackLocale: l.value,
|
|
2546
2546
|
messages: c.value,
|
|
@@ -2559,8 +2559,8 @@ function ir(e = {}) {
|
|
|
2559
2559
|
__meta: { framework: "vue" }
|
|
2560
2560
|
};
|
|
2561
2561
|
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 =
|
|
2563
|
-
return r &&
|
|
2562
|
+
const T = Ci(b);
|
|
2563
|
+
return r && Pr(T), T;
|
|
2564
2564
|
})(), pt(v, i.value, l.value);
|
|
2565
2565
|
function Y() {
|
|
2566
2566
|
return [
|
|
@@ -2601,14 +2601,14 @@ function ir(e = {}) {
|
|
|
2601
2601
|
Y();
|
|
2602
2602
|
let et;
|
|
2603
2603
|
try {
|
|
2604
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ?
|
|
2604
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? Ii() : void 0), et = b(v);
|
|
2605
2605
|
} finally {
|
|
2606
2606
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2607
2607
|
}
|
|
2608
2608
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2609
2609
|
ae(et) && et === Jt || H === "translate exists" && !et) {
|
|
2610
|
-
const [Ye,
|
|
2611
|
-
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H,
|
|
2610
|
+
const [Ye, ws] = T();
|
|
2611
|
+
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H, ws) && (A && (zt(p, Ye) || Ga(m, Ye)) && (Rt(Ne.FALLBACK_TO_ROOT, {
|
|
2612
2612
|
key: Ye,
|
|
2613
2613
|
type: H
|
|
2614
2614
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -2637,7 +2637,7 @@ function ir(e = {}) {
|
|
|
2637
2637
|
return _t(T, H, ie({ resolvedMessage: !0 }, ee || {}));
|
|
2638
2638
|
}
|
|
2639
2639
|
function fn(...b) {
|
|
2640
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2640
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => Reflect.apply(T.d, T, [...b]), () => Ht, (T) => I(T));
|
|
2641
2641
|
}
|
|
2642
2642
|
function _n(...b) {
|
|
2643
2643
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => Reflect.apply(T.n, T, [...b]), () => Ht, (T) => I(T));
|
|
@@ -2666,7 +2666,7 @@ function ir(e = {}) {
|
|
|
2666
2666
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => T[Vn](...b), Kr, (T) => I(T) || re(T));
|
|
2667
2667
|
}
|
|
2668
2668
|
function gn(...b) {
|
|
2669
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2669
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => T[xn](...b), Kr, (T) => I(T) || re(T));
|
|
2670
2670
|
}
|
|
2671
2671
|
function pn(b) {
|
|
2672
2672
|
L = b, v.pluralRules = L;
|
|
@@ -2677,7 +2677,7 @@ function ir(e = {}) {
|
|
|
2677
2677
|
return !1;
|
|
2678
2678
|
const H = I(T) ? T : i.value, ee = $e(H), We = v.messageResolver(ee, b);
|
|
2679
2679
|
return Ee(We) || pe(We) || I(We);
|
|
2680
|
-
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]),
|
|
2680
|
+
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), tl, (H) => $(H));
|
|
2681
2681
|
}
|
|
2682
2682
|
function dt(b) {
|
|
2683
2683
|
let T = null;
|
|
@@ -2724,7 +2724,7 @@ function ir(e = {}) {
|
|
|
2724
2724
|
function y(b, T) {
|
|
2725
2725
|
f.value[b] = ie(f.value[b] || {}, T), v.datetimeFormats = f.value, Br(v, b, T);
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function k(b) {
|
|
2728
2728
|
return u.value[b] || {};
|
|
2729
2729
|
}
|
|
2730
2730
|
function z(b, T) {
|
|
@@ -2807,7 +2807,7 @@ function ir(e = {}) {
|
|
|
2807
2807
|
setMissingHandler: ln,
|
|
2808
2808
|
[Xa]: pn
|
|
2809
2809
|
};
|
|
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 =
|
|
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 = k, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[Qa] = n, W[Bn] = Ft, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2811
2811
|
v.__v_emitter = b;
|
|
2812
2812
|
}, W[Lt] = () => {
|
|
2813
2813
|
v.__v_emitter = void 0;
|
|
@@ -2817,16 +2817,16 @@ const Za = "vue-i18n: composer properties", yn = {
|
|
|
2817
2817
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2818
2818
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2819
2819
|
"vue-i18n-timeline": "Vue I18n"
|
|
2820
|
-
}, nl = {
|
|
2821
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2822
2820
|
}, rl = {
|
|
2821
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2822
|
+
}, al = {
|
|
2823
2823
|
"vue-i18n-timeline": 16764185
|
|
2824
2824
|
};
|
|
2825
2825
|
let $n;
|
|
2826
|
-
async function
|
|
2826
|
+
async function sl(e, t) {
|
|
2827
2827
|
return new Promise((n, r) => {
|
|
2828
2828
|
try {
|
|
2829
|
-
|
|
2829
|
+
Qi({
|
|
2830
2830
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2831
2831
|
label: yn["vue-devtools-plugin-vue-i18n"],
|
|
2832
2832
|
packageName: "vue-i18n",
|
|
@@ -2837,36 +2837,36 @@ async function al(e, t) {
|
|
|
2837
2837
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2838
2838
|
}, (a) => {
|
|
2839
2839
|
$n = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2840
|
-
|
|
2840
|
+
ol(o, i, t);
|
|
2841
2841
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2842
2842
|
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
2843
|
}), a.addInspector({
|
|
2844
2844
|
id: "vue-i18n-resource-inspector",
|
|
2845
2845
|
label: yn["vue-i18n-resource-inspector"],
|
|
2846
2846
|
icon: "language",
|
|
2847
|
-
treeFilterPlaceholder:
|
|
2847
|
+
treeFilterPlaceholder: rl["vue-i18n-resource-inspector"]
|
|
2848
2848
|
}), a.on.getInspectorTree((o) => {
|
|
2849
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2849
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && fl(o, t);
|
|
2850
2850
|
});
|
|
2851
2851
|
const s = /* @__PURE__ */ new Map();
|
|
2852
2852
|
a.on.getInspectorState(async (o) => {
|
|
2853
2853
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2854
|
-
if (a.unhighlightElement(),
|
|
2854
|
+
if (a.unhighlightElement(), dl(o, t), o.nodeId === "global") {
|
|
2855
2855
|
if (!s.has(o.app)) {
|
|
2856
2856
|
const [i] = await a.getComponentInstances(o.app);
|
|
2857
2857
|
s.set(o.app, i);
|
|
2858
2858
|
}
|
|
2859
2859
|
a.highlightElement(s.get(o.app));
|
|
2860
2860
|
} else {
|
|
2861
|
-
const i =
|
|
2861
|
+
const i = _l(o.nodeId, t);
|
|
2862
2862
|
i && a.highlightElement(i);
|
|
2863
2863
|
}
|
|
2864
2864
|
}), a.on.editInspectorState((o) => {
|
|
2865
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2865
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && hl(o, t);
|
|
2866
2866
|
}), a.addTimelineLayer({
|
|
2867
2867
|
id: "vue-i18n-timeline",
|
|
2868
2868
|
label: yn["vue-i18n-timeline"],
|
|
2869
|
-
color:
|
|
2869
|
+
color: al["vue-i18n-timeline"]
|
|
2870
2870
|
}), n(!0);
|
|
2871
2871
|
});
|
|
2872
2872
|
} catch {
|
|
@@ -2877,7 +2877,7 @@ async function al(e, t) {
|
|
|
2877
2877
|
function es(e) {
|
|
2878
2878
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function ol(e, t, n) {
|
|
2881
2881
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2882
2882
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2883
2883
|
const a = {
|
|
@@ -2931,30 +2931,30 @@ function lr(e) {
|
|
|
2931
2931
|
const t = {};
|
|
2932
2932
|
return Object.keys(e).forEach((n) => {
|
|
2933
2933
|
const r = e[n];
|
|
2934
|
-
q(r) && "source" in r ? t[n] =
|
|
2934
|
+
q(r) && "source" in r ? t[n] = ul(r) : Ee(r) && r.loc && r.loc.source ? t[n] = r.loc.source : G(r) ? t[n] = lr(r) : t[n] = r;
|
|
2935
2935
|
}), t;
|
|
2936
2936
|
}
|
|
2937
|
-
const
|
|
2937
|
+
const il = {
|
|
2938
2938
|
"<": "<",
|
|
2939
2939
|
">": ">",
|
|
2940
2940
|
'"': """,
|
|
2941
2941
|
"&": "&"
|
|
2942
2942
|
};
|
|
2943
|
-
function il(e) {
|
|
2944
|
-
return e.replace(/[<>"&]/g, ll);
|
|
2945
|
-
}
|
|
2946
2943
|
function ll(e) {
|
|
2947
|
-
return
|
|
2944
|
+
return e.replace(/[<>"&]/g, cl);
|
|
2948
2945
|
}
|
|
2949
2946
|
function cl(e) {
|
|
2947
|
+
return il[e] || e;
|
|
2948
|
+
}
|
|
2949
|
+
function ul(e) {
|
|
2950
2950
|
return {
|
|
2951
2951
|
_custom: {
|
|
2952
2952
|
type: "function",
|
|
2953
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2953
|
+
display: `<span>ƒ</span> ${e.source ? `("${ll(e.source)}")` : "(?)"}`
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
}
|
|
2957
|
-
function
|
|
2957
|
+
function fl(e, t) {
|
|
2958
2958
|
e.rootNodes.push({
|
|
2959
2959
|
id: "global",
|
|
2960
2960
|
label: "Global Scope"
|
|
@@ -2968,7 +2968,7 @@ function ul(e, t) {
|
|
|
2968
2968
|
});
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
function
|
|
2971
|
+
function _l(e, t) {
|
|
2972
2972
|
let n = null;
|
|
2973
2973
|
if (e !== "global") {
|
|
2974
2974
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2987,11 +2987,11 @@ function ts(e, t) {
|
|
|
2987
2987
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function dl(e, t) {
|
|
2991
2991
|
const n = ts(e.nodeId, t);
|
|
2992
|
-
return n && (e.state =
|
|
2992
|
+
return n && (e.state = ml(n)), null;
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2994
|
+
function ml(e) {
|
|
2995
2995
|
const t = {}, n = "Locale related info", r = [
|
|
2996
2996
|
{
|
|
2997
2997
|
type: n,
|
|
@@ -3066,14 +3066,14 @@ function Dt(e, t) {
|
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function hl(e, t) {
|
|
3070
3070
|
const n = ts(e.nodeId, t);
|
|
3071
3071
|
if (n) {
|
|
3072
3072
|
const [r] = e.path;
|
|
3073
3073
|
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
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3076
|
+
function gl(e) {
|
|
3077
3077
|
const t = I(e.locale) ? e.locale : Ct, 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
3078
|
let A = e.messages;
|
|
3079
3079
|
if (V(e.sharedMessages)) {
|
|
@@ -3109,7 +3109,7 @@ function hl(e) {
|
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
3111
|
function Wn(e = {}) {
|
|
3112
|
-
const t = ir(
|
|
3112
|
+
const t = ir(gl(e)), { __extender: n } = e, r = {
|
|
3113
3113
|
// id
|
|
3114
3114
|
id: t.id,
|
|
3115
3115
|
// locale
|
|
@@ -3277,7 +3277,7 @@ function Wn(e = {}) {
|
|
|
3277
3277
|
a[Lt] && a[Lt]();
|
|
3278
3278
|
}), r;
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function pl(e, t, n) {
|
|
3281
3281
|
return {
|
|
3282
3282
|
beforeCreate() {
|
|
3283
3283
|
const r = yt();
|
|
@@ -3353,7 +3353,7 @@ const cr = {
|
|
|
3353
3353
|
type: Object
|
|
3354
3354
|
}
|
|
3355
3355
|
};
|
|
3356
|
-
function
|
|
3356
|
+
function El({ slots: e }, t) {
|
|
3357
3357
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3358
3358
|
...r,
|
|
3359
3359
|
// prettier-ignore
|
|
@@ -3366,7 +3366,7 @@ function pl({ slots: e }, t) {
|
|
|
3366
3366
|
function ns() {
|
|
3367
3367
|
return he;
|
|
3368
3368
|
}
|
|
3369
|
-
const
|
|
3369
|
+
const bl = /* @__PURE__ */ Jn({
|
|
3370
3370
|
/* eslint-disable */
|
|
3371
3371
|
name: "i18n-t",
|
|
3372
3372
|
props: ie({
|
|
@@ -3389,12 +3389,12 @@ const El = /* @__PURE__ */ Jn({
|
|
|
3389
3389
|
return () => {
|
|
3390
3390
|
const s = Object.keys(n).filter((u) => u !== "_"), o = K();
|
|
3391
3391
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3392
|
-
const i =
|
|
3392
|
+
const i = El(t, s), l = a[Bn](e.keypath, i, o), c = ie(K(), r), f = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3393
3393
|
return Sa(f, c, l);
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
|
-
}), Jr =
|
|
3397
|
-
function
|
|
3396
|
+
}), Jr = bl;
|
|
3397
|
+
function Sl(e) {
|
|
3398
3398
|
return re(e) && !I(e[0]);
|
|
3399
3399
|
}
|
|
3400
3400
|
function rs(e, t, n, r) {
|
|
@@ -3407,13 +3407,13 @@ function rs(e, t, n, r) {
|
|
|
3407
3407
|
let c = [o.key];
|
|
3408
3408
|
re(l) ? c = l.map((m, p) => {
|
|
3409
3409
|
const A = a[m.type], E = A ? A({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3410
|
-
return
|
|
3410
|
+
return Sl(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
3411
3411
|
}) : I(l) && (c = [l]);
|
|
3412
3412
|
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3413
3413
|
return Sa(u, f, c);
|
|
3414
3414
|
};
|
|
3415
3415
|
}
|
|
3416
|
-
const
|
|
3416
|
+
const vl = /* @__PURE__ */ Jn({
|
|
3417
3417
|
/* eslint-disable */
|
|
3418
3418
|
name: "i18n-n",
|
|
3419
3419
|
props: ie({
|
|
@@ -3437,8 +3437,8 @@ const Sl = /* @__PURE__ */ Jn({
|
|
|
3437
3437
|
n[Vn](...r)
|
|
3438
3438
|
));
|
|
3439
3439
|
}
|
|
3440
|
-
}), zr =
|
|
3441
|
-
function
|
|
3440
|
+
}), zr = vl;
|
|
3441
|
+
function Al(e, t) {
|
|
3442
3442
|
const n = e;
|
|
3443
3443
|
if (e.mode === "composition")
|
|
3444
3444
|
return n.__getInstance(t) || e.global;
|
|
@@ -3447,13 +3447,13 @@ function vl(e, t) {
|
|
|
3447
3447
|
return r != null ? r.__composer : e.global.__composer;
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function yl(e) {
|
|
3451
3451
|
const t = (o) => {
|
|
3452
3452
|
process.env.NODE_ENV !== "production" && er(Rt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3453
3453
|
const { instance: i, value: l } = o;
|
|
3454
3454
|
if (!i || !i.$)
|
|
3455
3455
|
throw de(X.UNEXPECTED_ERROR);
|
|
3456
|
-
const c =
|
|
3456
|
+
const c = Al(e, i.$), f = Zr(l);
|
|
3457
3457
|
return [
|
|
3458
3458
|
Reflect.apply(c.t, c, [...ea(f)]),
|
|
3459
3459
|
c
|
|
@@ -3497,15 +3497,15 @@ function ea(e) {
|
|
|
3497
3497
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3498
3498
|
return I(n) && (o.locale = n), ae(a) && (o.plural = a), ae(s) && (o.plural = s), [t, i, o];
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3500
|
+
function Nl(e, t, ...n) {
|
|
3501
3501
|
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",
|
|
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", yl(t));
|
|
3503
3503
|
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3504
|
+
const Tl = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3505
|
+
function Ol(e = {}) {
|
|
3506
3506
|
const t = __VUE_I18N_LEGACY_API__ && $(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3507
3507
|
process.env.NODE_ENV !== "production" && t && er(Rt(Ne.DEPRECATE_LEGACY_MODE));
|
|
3508
|
-
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3508
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Il(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3509
3509
|
function i(u) {
|
|
3510
3510
|
return r.get(u) || null;
|
|
3511
3511
|
}
|
|
@@ -3527,12 +3527,12 @@ function Tl(e = {}) {
|
|
|
3527
3527
|
f.__composerExtend = E.__composerExtend, f.__vueI18nExtend = E.__vueI18nExtend;
|
|
3528
3528
|
}
|
|
3529
3529
|
let p = null;
|
|
3530
|
-
!t && n && (p =
|
|
3530
|
+
!t && n && (p = Fl(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Nl(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(pl(s, s.__composer, f));
|
|
3531
3531
|
const A = u.unmount;
|
|
3532
3532
|
if (u.unmount = () => {
|
|
3533
3533
|
p && p(), f.dispose(), A();
|
|
3534
3534
|
}, process.env.NODE_ENV !== "production") {
|
|
3535
|
-
if (!await
|
|
3535
|
+
if (!await sl(u, f))
|
|
3536
3536
|
throw de(X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3537
3537
|
const C = tr();
|
|
3538
3538
|
if (t) {
|
|
@@ -3569,43 +3569,43 @@ function ur(e = {}) {
|
|
|
3569
3569
|
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3570
3570
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3571
3571
|
throw de(X.NOT_INSTALLED);
|
|
3572
|
-
const n =
|
|
3572
|
+
const n = Cl(t), r = wl(n), a = Ja(t), s = Ll(e, a);
|
|
3573
3573
|
if (s === "global")
|
|
3574
3574
|
return za(r, e, a), r;
|
|
3575
3575
|
if (s === "parent") {
|
|
3576
|
-
let l =
|
|
3576
|
+
let l = Dl(n, t, e.__useComponent);
|
|
3577
3577
|
return l == null && (process.env.NODE_ENV !== "production" && (Rt(Ne.NOT_FOUND_PARENT_SCOPE), void 0), l = r), l;
|
|
3578
3578
|
}
|
|
3579
3579
|
const o = n;
|
|
3580
3580
|
let i = o.__getInstance(t);
|
|
3581
3581
|
if (i == null) {
|
|
3582
3582
|
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)),
|
|
3583
|
+
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = ir(l), o.__composerExtend && (i[Gn] = o.__composerExtend(i)), kl(o, t, i), o.__setInstance(t, i);
|
|
3584
3584
|
}
|
|
3585
3585
|
return i;
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3588
|
-
const n =
|
|
3587
|
+
function Il(e, t) {
|
|
3588
|
+
const n = Ds(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Wn(e)) : n.run(() => ir(e));
|
|
3589
3589
|
if (r == null)
|
|
3590
3590
|
throw de(X.UNEXPECTED_ERROR);
|
|
3591
3591
|
return [n, r];
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const t =
|
|
3593
|
+
function Cl(e) {
|
|
3594
|
+
const t = Fs(e.isCE ? Tl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3595
3595
|
if (!t)
|
|
3596
3596
|
throw de(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
|
|
3597
3597
|
return t;
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function Ll(e, t) {
|
|
3600
3600
|
return Qt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function wl(e) {
|
|
3603
3603
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3605
|
+
function Dl(e, t, n = !1) {
|
|
3606
3606
|
let r = null;
|
|
3607
3607
|
const a = t.root;
|
|
3608
|
-
let s =
|
|
3608
|
+
let s = Rl(t, n);
|
|
3609
3609
|
for (; s != null; ) {
|
|
3610
3610
|
const o = e;
|
|
3611
3611
|
if (e.mode === "composition")
|
|
@@ -3620,18 +3620,18 @@ function wl(e, t, n = !1) {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
return r;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3623
|
+
function Rl(e, t = !1) {
|
|
3624
3624
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function kl(e, t, n) {
|
|
3627
3627
|
let r = null;
|
|
3628
|
-
|
|
3628
|
+
Ms(() => {
|
|
3629
3629
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3630
3630
|
t.vnode.el.__VUE_I18N__ = n, r = tr();
|
|
3631
3631
|
const a = n;
|
|
3632
3632
|
a[ze] && a[ze](r), r.on("*", Dt);
|
|
3633
3633
|
}
|
|
3634
|
-
}, t),
|
|
3634
|
+
}, t), Us(() => {
|
|
3635
3635
|
const a = n;
|
|
3636
3636
|
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", Dt), a[Lt] && a[Lt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3637
3637
|
const s = a[Gn];
|
|
@@ -3643,7 +3643,7 @@ const Pl = [
|
|
|
3643
3643
|
"fallbackLocale",
|
|
3644
3644
|
"availableLocales"
|
|
3645
3645
|
], ta = ["t", "rt", "d", "n", "tm", "te"];
|
|
3646
|
-
function
|
|
3646
|
+
function Fl(e, t) {
|
|
3647
3647
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3648
3648
|
return Pl.forEach((a) => {
|
|
3649
3649
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
@@ -3674,7 +3674,7 @@ function kl(e, t) {
|
|
|
3674
3674
|
});
|
|
3675
3675
|
};
|
|
3676
3676
|
}
|
|
3677
|
-
const
|
|
3677
|
+
const Ml = /* @__PURE__ */ Jn({
|
|
3678
3678
|
/* eslint-disable */
|
|
3679
3679
|
name: "i18n-d",
|
|
3680
3680
|
props: ie({
|
|
@@ -3698,17 +3698,17 @@ const Fl = /* @__PURE__ */ Jn({
|
|
|
3698
3698
|
n[xn](...r)
|
|
3699
3699
|
));
|
|
3700
3700
|
}
|
|
3701
|
-
}), na =
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3701
|
+
}), na = Ml;
|
|
3702
|
+
zi();
|
|
3703
|
+
Ai(ei);
|
|
3704
|
+
yi(pi);
|
|
3705
|
+
Ni(Fa);
|
|
3706
3706
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3707
3707
|
const e = je();
|
|
3708
|
-
e.__INTLIFY__ = !0,
|
|
3708
|
+
e.__INTLIFY__ = !0, ti(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3709
3709
|
}
|
|
3710
3710
|
process.env.NODE_ENV;
|
|
3711
|
-
const as =
|
|
3711
|
+
const as = Ol({
|
|
3712
3712
|
legacy: !1,
|
|
3713
3713
|
locale: "zh",
|
|
3714
3714
|
//默认显示的语言
|
|
@@ -3725,18 +3725,18 @@ const as = Tl({
|
|
|
3725
3725
|
silentFallbackWarn: !0,
|
|
3726
3726
|
fallbackWarn: !1
|
|
3727
3727
|
}), Ke = as.global;
|
|
3728
|
-
async function
|
|
3728
|
+
async function Ul(e, t) {
|
|
3729
3729
|
const n = await t(e);
|
|
3730
3730
|
Ke.setLocaleMessage(e, n), Ke.locale && Ke.locale.value !== void 0 ? Ke.locale.value = e : Ke.locale = e;
|
|
3731
3731
|
}
|
|
3732
3732
|
const nt = "__system:language__", rt = "zh";
|
|
3733
|
-
function
|
|
3733
|
+
function Bl() {
|
|
3734
3734
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function xl(e) {
|
|
3737
3737
|
return e ? e.toLowerCase().trim() : "";
|
|
3738
3738
|
}
|
|
3739
|
-
const
|
|
3739
|
+
const kt = De("cloudSdkLanguageStore", {
|
|
3740
3740
|
state: () => ({
|
|
3741
3741
|
languageDefault: rt,
|
|
3742
3742
|
languageName: D.localGet(nt) || rt,
|
|
@@ -3757,22 +3757,22 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3757
3757
|
}),
|
|
3758
3758
|
getters: {
|
|
3759
3759
|
languageSelect: (e) => {
|
|
3760
|
-
let t = [];
|
|
3761
|
-
|
|
3760
|
+
let t = [], n = e.languageList;
|
|
3761
|
+
for (let r in n)
|
|
3762
3762
|
t.push({
|
|
3763
|
-
label: r,
|
|
3764
|
-
value:
|
|
3763
|
+
label: n[r],
|
|
3764
|
+
value: r
|
|
3765
3765
|
});
|
|
3766
|
-
|
|
3766
|
+
return t;
|
|
3767
3767
|
}
|
|
3768
3768
|
},
|
|
3769
3769
|
actions: {
|
|
3770
3770
|
// 初始化
|
|
3771
3771
|
async init() {
|
|
3772
|
-
let e =
|
|
3772
|
+
let e = Bl() || rt;
|
|
3773
3773
|
e = localStorage.getItem(nt) || e;
|
|
3774
3774
|
const t = cvUtils.urlGetParameterAll();
|
|
3775
|
-
t.language && (e = t.language), e =
|
|
3775
|
+
t.language && (e = t.language), e = xl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3776
3776
|
},
|
|
3777
3777
|
async clear_cache() {
|
|
3778
3778
|
D.localSet(nt, rt);
|
|
@@ -3806,28 +3806,28 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3806
3806
|
this.languageName = e, D.localSet(nt, e), Ke.locale.value = e;
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
|
-
}), ra = "__system:themes__",
|
|
3809
|
+
}), ra = "__system:themes__", Vl = "light", Nn = "__system:layoutSidebarState__", Gl = "on", aa = "__system:layoutNavTabs__", $l = "on", Wl = "__system:layoutWatermark__", Yl = "on";
|
|
3810
3810
|
function sa() {
|
|
3811
3811
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
3812
3812
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
3813
3813
|
}
|
|
3814
|
-
const
|
|
3814
|
+
const Be = De("cloudSdkThemesStore", {
|
|
3815
3815
|
state: () => ({
|
|
3816
3816
|
layoutName: "",
|
|
3817
3817
|
/**
|
|
3818
3818
|
* 上边切换卡
|
|
3819
3819
|
*/
|
|
3820
|
-
layoutNavTabs: D.localGet(aa) ||
|
|
3820
|
+
layoutNavTabs: D.localGet(aa) || $l,
|
|
3821
3821
|
/**
|
|
3822
3822
|
* 左边侧栏
|
|
3823
3823
|
*/
|
|
3824
|
-
layoutSidebarState: D.localGet(Nn) ||
|
|
3824
|
+
layoutSidebarState: D.localGet(Nn) || Gl,
|
|
3825
3825
|
/**
|
|
3826
3826
|
* 主题皮肤
|
|
3827
3827
|
* auto|light|dark
|
|
3828
3828
|
* 自动生成
|
|
3829
3829
|
*/
|
|
3830
|
-
themesName: D.localGet(ra) ||
|
|
3830
|
+
themesName: D.localGet(ra) || Vl,
|
|
3831
3831
|
themesList: [
|
|
3832
3832
|
{ name: "跟随系统", value: "auto" },
|
|
3833
3833
|
{ name: "明亮", value: "light" },
|
|
@@ -3836,7 +3836,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3836
3836
|
/**
|
|
3837
3837
|
* 水印
|
|
3838
3838
|
*/
|
|
3839
|
-
watermarkState: D.localGet(
|
|
3839
|
+
watermarkState: D.localGet(Wl) || Yl
|
|
3840
3840
|
}),
|
|
3841
3841
|
actions: {
|
|
3842
3842
|
async init() {
|
|
@@ -3903,7 +3903,17 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3903
3903
|
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), D.localSet(ra, this.themesName);
|
|
3904
3904
|
}
|
|
3905
3905
|
}
|
|
3906
|
-
})
|
|
3906
|
+
});
|
|
3907
|
+
function ss() {
|
|
3908
|
+
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
3909
|
+
}
|
|
3910
|
+
function os() {
|
|
3911
|
+
return window.innerHeight;
|
|
3912
|
+
}
|
|
3913
|
+
function Hl() {
|
|
3914
|
+
return ss() - os() > 50 ? "landscape" : "portrait";
|
|
3915
|
+
}
|
|
3916
|
+
const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
3907
3917
|
state: () => ({
|
|
3908
3918
|
// 窗口是否激活
|
|
3909
3919
|
windowActive: !0,
|
|
@@ -3914,7 +3924,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3914
3924
|
// 浏览器尺寸信息
|
|
3915
3925
|
windowWidth: Gt,
|
|
3916
3926
|
// 窗口宽度
|
|
3917
|
-
windowHeight:
|
|
3927
|
+
windowHeight: Kl,
|
|
3918
3928
|
// 浏览器窗口方向
|
|
3919
3929
|
windowOrientation: Tn,
|
|
3920
3930
|
windowLandscape: Tn === "landscape",
|
|
@@ -3933,6 +3943,10 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3933
3943
|
winCalcSizeName: (e) => (void 0).SA_GET_SIZE_TYPE()
|
|
3934
3944
|
},
|
|
3935
3945
|
actions: {
|
|
3946
|
+
async init() {
|
|
3947
|
+
},
|
|
3948
|
+
init_refresh() {
|
|
3949
|
+
},
|
|
3936
3950
|
isSingle() {
|
|
3937
3951
|
return document.querySelector(".electron-single-micro-apps") ? 1 : 0;
|
|
3938
3952
|
},
|
|
@@ -3956,7 +3970,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3956
3970
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
3957
3971
|
}
|
|
3958
3972
|
}
|
|
3959
|
-
}), Et = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr =
|
|
3973
|
+
}), Et = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr = De("cloudSdkSystemStore", {
|
|
3960
3974
|
state: () => ({
|
|
3961
3975
|
// ServerUrl
|
|
3962
3976
|
cacheServerUrl: "",
|
|
@@ -4077,7 +4091,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4077
4091
|
const o = {
|
|
4078
4092
|
keyId: s || e
|
|
4079
4093
|
};
|
|
4080
|
-
fe.setTimeout(8e3).flagGet("
|
|
4094
|
+
fe.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
|
|
4081
4095
|
D.localSet(n, o), typeof t == "function" && t(s);
|
|
4082
4096
|
});
|
|
4083
4097
|
}
|
|
@@ -4086,7 +4100,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4086
4100
|
function Yn(e) {
|
|
4087
4101
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4088
4102
|
}
|
|
4089
|
-
const at = "syCacheAppInfo",
|
|
4103
|
+
const at = "syCacheAppInfo", Me = "syCacheAppToken", bt = "syCacheAppJwt", St = "syCacheAppRbac", ca = {
|
|
4090
4104
|
nickname: "",
|
|
4091
4105
|
staff_nickname: "",
|
|
4092
4106
|
id: 0,
|
|
@@ -4106,7 +4120,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4106
4120
|
account_avatar: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4107
4121
|
account_avatar_cdn: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4108
4122
|
business_name: ""
|
|
4109
|
-
}, Te =
|
|
4123
|
+
}, Te = De("cloudSdkAccountStore", {
|
|
4110
4124
|
state: () => ({
|
|
4111
4125
|
// staffId: 0,
|
|
4112
4126
|
account_nick: "",
|
|
@@ -4114,7 +4128,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4114
4128
|
accountRbacData: [],
|
|
4115
4129
|
// 账号信息
|
|
4116
4130
|
accountInfo: D.localGet(at) || {},
|
|
4117
|
-
accountToken: D.localGet(
|
|
4131
|
+
accountToken: D.localGet(Me) || "",
|
|
4118
4132
|
accountJwt: D.localGet(bt) || ""
|
|
4119
4133
|
}),
|
|
4120
4134
|
getters: {
|
|
@@ -4152,7 +4166,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4152
4166
|
async clear_all() {
|
|
4153
4167
|
},
|
|
4154
4168
|
SA_ACCOUNT_IS_LOGGED() {
|
|
4155
|
-
return this.accountToken = D.localGet(
|
|
4169
|
+
return this.accountToken = D.localGet(Me) || "", !!Yn(this.accountToken);
|
|
4156
4170
|
},
|
|
4157
4171
|
SA_ACCOUNT_JWT_GET() {
|
|
4158
4172
|
return this.accountJwt || "";
|
|
@@ -4161,7 +4175,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4161
4175
|
return this.accountToken || "";
|
|
4162
4176
|
},
|
|
4163
4177
|
SA_ACCOUNT_TOKEN_SET(e) {
|
|
4164
|
-
this.accountToken = e, D.localSet(
|
|
4178
|
+
this.accountToken = e, D.localSet(Me, this.accountToken);
|
|
4165
4179
|
},
|
|
4166
4180
|
/**
|
|
4167
4181
|
* 获取用户信息(并保存)
|
|
@@ -4198,21 +4212,21 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4198
4212
|
return this.account_nick;
|
|
4199
4213
|
},
|
|
4200
4214
|
SA_ACCOUNT_REFRESH() {
|
|
4201
|
-
this.accountInfo = D.localGet(at) || ca, this.accountToken = D.localGet(
|
|
4215
|
+
this.accountInfo = D.localGet(at) || ca, this.accountToken = D.localGet(Me) || "", this.accountJwt = D.localGet(bt) || "", fe.setDefHeaders({
|
|
4202
4216
|
syOpenAppToken: this.accountToken || "",
|
|
4203
4217
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4204
4218
|
});
|
|
4205
4219
|
},
|
|
4206
4220
|
// 登录
|
|
4207
4221
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4208
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(
|
|
4222
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(Me, e.token_access || ""), D.localSet(bt, e.token_jwt || ""), D.localSet(St, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(Me, e.token_access || ""), Tt().QK_SEND_LOGIN_MSG();
|
|
4209
4223
|
},
|
|
4210
4224
|
/**
|
|
4211
4225
|
* 登出(打开登录页面)
|
|
4212
4226
|
* @param appendFrom
|
|
4213
4227
|
*/
|
|
4214
4228
|
SA_ACCOUNT_LOGOUT() {
|
|
4215
|
-
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(
|
|
4229
|
+
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(Me, ""), D.localSet(bt, ""), D.localSet(St, ""), D.localDel(at), D.localDel(Me), D.localDel(bt), D.localDel(St), this.SA_ACCOUNT_REFRESH(), Tt().QK_SEND_LOGOUT_MSG();
|
|
4216
4230
|
},
|
|
4217
4231
|
/**
|
|
4218
4232
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4237,7 +4251,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4237
4251
|
function ua(e) {
|
|
4238
4252
|
return e = e.replace(/^\//, ""), e = e.replace(/\//g, "_"), e;
|
|
4239
4253
|
}
|
|
4240
|
-
function
|
|
4254
|
+
function ls(e, t) {
|
|
4241
4255
|
t = t || 1;
|
|
4242
4256
|
let n = "";
|
|
4243
4257
|
e.path ? n = e.path : e.component && (n = e.component), e.component || (n = "");
|
|
@@ -4254,8 +4268,8 @@ function os(e, t) {
|
|
|
4254
4268
|
name: r
|
|
4255
4269
|
};
|
|
4256
4270
|
}
|
|
4257
|
-
const
|
|
4258
|
-
function
|
|
4271
|
+
const jl = {}, ql = jl, Xl = ql.VITE_SY_PRODUCT_SIGN;
|
|
4272
|
+
function cs(e) {
|
|
4259
4273
|
let t = Object.prototype.toString.call(e);
|
|
4260
4274
|
if (t != "[object String]" && t != "[object Array]")
|
|
4261
4275
|
return !1;
|
|
@@ -4273,48 +4287,20 @@ function is(e) {
|
|
|
4273
4287
|
function Kt(e, t) {
|
|
4274
4288
|
if (e = e || "", e = e.trim(), e == "")
|
|
4275
4289
|
return !1;
|
|
4276
|
-
e.includes("@") || (e = `${
|
|
4290
|
+
e.includes("@") || (e = `${Xl}@${e}`);
|
|
4277
4291
|
let n = t || D.localGet("syCacheAppRbac") || "";
|
|
4278
4292
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4279
4293
|
}
|
|
4280
|
-
const
|
|
4281
|
-
"org-business": "商家平台",
|
|
4282
|
-
"org-operator": "运营平台",
|
|
4283
|
-
"org-agent": "代理商平台",
|
|
4284
|
-
"org-admin": "超管平台"
|
|
4285
|
-
};
|
|
4286
|
-
let ls = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4287
|
-
const ql = window.shiyunProductInfo || {
|
|
4288
|
-
system_type: ls
|
|
4289
|
-
}, Zt = Be("cloudSdkProductStore", {
|
|
4294
|
+
const Zt = De("cloudSdkProductStore", {
|
|
4290
4295
|
state: () => ({
|
|
4291
|
-
|
|
4296
|
+
/**
|
|
4297
|
+
* 默认应用信息
|
|
4298
|
+
*/
|
|
4292
4299
|
defaultProductInfo: {
|
|
4293
|
-
/**
|
|
4294
|
-
* 应用信息
|
|
4295
|
-
*/
|
|
4296
4300
|
info_title: Nt().syProductTitle || "ShiyunProduct",
|
|
4297
4301
|
info_logo: "",
|
|
4298
|
-
info_version: "v1.25.xxxx"
|
|
4302
|
+
info_version: "v1.25.xxxx"
|
|
4299
4303
|
// 版本
|
|
4300
|
-
/**
|
|
4301
|
-
* 平台信息
|
|
4302
|
-
*/
|
|
4303
|
-
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4304
|
-
// logo
|
|
4305
|
-
platinfo_login_bg: "",
|
|
4306
|
-
// 登录背景
|
|
4307
|
-
platinfo_brand: "shiyun",
|
|
4308
|
-
// 品牌
|
|
4309
|
-
platinfo_title: "十云",
|
|
4310
|
-
// 标题
|
|
4311
|
-
platinfo_short: "十云",
|
|
4312
|
-
/**
|
|
4313
|
-
*
|
|
4314
|
-
*/
|
|
4315
|
-
privacy_url: "//api.10yun.com/privacy.html",
|
|
4316
|
-
system_type: ls
|
|
4317
|
-
// 后台系统类型
|
|
4318
4304
|
},
|
|
4319
4305
|
currMenuInfo: {},
|
|
4320
4306
|
// 菜单角标
|
|
@@ -4324,7 +4310,10 @@ const ql = window.shiyunProductInfo || {
|
|
|
4324
4310
|
menuOriginal: []
|
|
4325
4311
|
}),
|
|
4326
4312
|
getters: {
|
|
4327
|
-
openProductInfo: (e) =>
|
|
4313
|
+
openProductInfo: (e) => {
|
|
4314
|
+
let t = window.shiyunProductInfo || {};
|
|
4315
|
+
return Object.assign({}, e.defaultProductInfo, t);
|
|
4316
|
+
},
|
|
4328
4317
|
// 当前展开
|
|
4329
4318
|
menuCurrOpeneds: (e) => e.menuOpeneds,
|
|
4330
4319
|
// 当前拥有
|
|
@@ -4355,7 +4344,7 @@ const ql = window.shiyunProductInfo || {
|
|
|
4355
4344
|
let i = [];
|
|
4356
4345
|
for (let l in s) {
|
|
4357
4346
|
let c = s[l];
|
|
4358
|
-
c =
|
|
4347
|
+
c = ls(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)));
|
|
4359
4348
|
}
|
|
4360
4349
|
return i;
|
|
4361
4350
|
}
|
|
@@ -4367,38 +4356,38 @@ const ql = window.shiyunProductInfo || {
|
|
|
4367
4356
|
return this.menuTree;
|
|
4368
4357
|
}
|
|
4369
4358
|
}
|
|
4370
|
-
}),
|
|
4359
|
+
}), Ql = [
|
|
4371
4360
|
{
|
|
4372
4361
|
meta: { title: "登录", isAlone: !0 },
|
|
4373
4362
|
isAlone: !0,
|
|
4374
4363
|
name: "login",
|
|
4375
4364
|
path: "/login",
|
|
4376
|
-
component: () => import("./login-
|
|
4365
|
+
component: () => import("./login-CMkucPpJ.js")
|
|
4377
4366
|
}
|
|
4378
|
-
],
|
|
4367
|
+
], Jl = [
|
|
4379
4368
|
{
|
|
4380
4369
|
meta: { title: "不建议单独运行", isAlone: !0 },
|
|
4381
4370
|
isAlone: !0,
|
|
4382
4371
|
name: "alone_run",
|
|
4383
4372
|
path: "/alone_run",
|
|
4384
|
-
component: () => import("./alone_run-
|
|
4373
|
+
component: () => import("./alone_run-D3hGeSjr.js")
|
|
4385
4374
|
},
|
|
4386
4375
|
{
|
|
4387
4376
|
meta: { title: "错误", isAlone: !0 },
|
|
4388
4377
|
isAlone: !0,
|
|
4389
4378
|
name: "404",
|
|
4390
4379
|
path: "/:catchAll(.*)",
|
|
4391
|
-
component: () => import("./404-
|
|
4380
|
+
component: () => import("./404-CRUQ2RGL.js")
|
|
4392
4381
|
}
|
|
4393
|
-
],
|
|
4382
|
+
], zl = [
|
|
4394
4383
|
{
|
|
4395
4384
|
meta: { title: "空页面", isAlone: !1 },
|
|
4396
4385
|
isAlone: !1,
|
|
4397
4386
|
name: "none",
|
|
4398
4387
|
path: "/none",
|
|
4399
|
-
component: () => import("./none-
|
|
4388
|
+
component: () => import("./none-GtWlMjrR.js")
|
|
4400
4389
|
}
|
|
4401
|
-
], en =
|
|
4390
|
+
], en = De("cloudSdkPermissionStore", {
|
|
4402
4391
|
state: () => ({
|
|
4403
4392
|
originalRoutes: [],
|
|
4404
4393
|
whiteList: ["404", "login", "alone_run", "none"],
|
|
@@ -4427,13 +4416,13 @@ const ql = window.shiyunProductInfo || {
|
|
|
4427
4416
|
* @param {*} router
|
|
4428
4417
|
*/
|
|
4429
4418
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
4430
|
-
t = t || "", t != "console_passport" && e.addRoute(...
|
|
4419
|
+
t = t || "", t != "console_passport" && e.addRoute(...Ql), e.addRoute(...Jl), e.addRoute(...zl);
|
|
4431
4420
|
},
|
|
4432
4421
|
/**
|
|
4433
4422
|
* 验证路由
|
|
4434
4423
|
*/
|
|
4435
4424
|
SA_PERMS_ROUTER_CHECK(e) {
|
|
4436
|
-
let n =
|
|
4425
|
+
let n = ls(e).name;
|
|
4437
4426
|
return !!(this.whiteList.includes(n) || Kt(n, this.rbacLastStr));
|
|
4438
4427
|
},
|
|
4439
4428
|
SA_PERMS_ROUTER_SET(e) {
|
|
@@ -4441,21 +4430,58 @@ const ql = window.shiyunProductInfo || {
|
|
|
4441
4430
|
async SA_PERMS_REFRESH() {
|
|
4442
4431
|
}
|
|
4443
4432
|
}
|
|
4433
|
+
}), fa = {
|
|
4434
|
+
"org-business": "商家平台",
|
|
4435
|
+
"org-operator": "运营平台",
|
|
4436
|
+
"org-agent": "代理商平台",
|
|
4437
|
+
"org-admin": "超管平台"
|
|
4438
|
+
};
|
|
4439
|
+
let Zl = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4440
|
+
const ec = De("cloudSdkApplicationStore", {
|
|
4441
|
+
state: () => ({
|
|
4442
|
+
/**
|
|
4443
|
+
* 平台信息
|
|
4444
|
+
*/
|
|
4445
|
+
defaultCaseInfo: {
|
|
4446
|
+
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4447
|
+
platinfo_version: "",
|
|
4448
|
+
platinfo_login_bg: "",
|
|
4449
|
+
// 登录背景
|
|
4450
|
+
platinfo_brand: "shiyun",
|
|
4451
|
+
// 品牌
|
|
4452
|
+
platinfo_title: "十云",
|
|
4453
|
+
// 标题
|
|
4454
|
+
platinfo_short: "十云",
|
|
4455
|
+
privacy_url: "//api.10yun.com/privacy.html",
|
|
4456
|
+
system_type: Zl
|
|
4457
|
+
// 后台系统类型
|
|
4458
|
+
}
|
|
4459
|
+
}),
|
|
4460
|
+
getters: {
|
|
4461
|
+
openCaseInfo: (e) => {
|
|
4462
|
+
let t = window.shiyunProductInfo || {};
|
|
4463
|
+
return Object.assign({}, e.defaultCaseInfo, t);
|
|
4464
|
+
}
|
|
4465
|
+
},
|
|
4466
|
+
actions: {
|
|
4467
|
+
async init() {
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4444
4470
|
});
|
|
4445
|
-
function
|
|
4471
|
+
function tc() {
|
|
4446
4472
|
return new Promise(async (e) => {
|
|
4447
|
-
|
|
4473
|
+
kt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
|
|
4448
4474
|
e();
|
|
4449
4475
|
});
|
|
4450
4476
|
});
|
|
4451
4477
|
}
|
|
4452
|
-
function
|
|
4478
|
+
function nc() {
|
|
4453
4479
|
return {
|
|
4454
4480
|
computed: {
|
|
4455
|
-
...
|
|
4456
|
-
...
|
|
4457
|
-
...
|
|
4458
|
-
...
|
|
4481
|
+
...Le(Tt, ["qiankunExistState"]),
|
|
4482
|
+
...Le(kt, ["languageName", "languageList", "languageSelect"]),
|
|
4483
|
+
...Le(Be, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
4484
|
+
...Le(is, [
|
|
4459
4485
|
"windowWidth",
|
|
4460
4486
|
"windowHeight",
|
|
4461
4487
|
"windowActive",
|
|
@@ -4465,7 +4491,7 @@ function Zl() {
|
|
|
4465
4491
|
"windowPortrait",
|
|
4466
4492
|
"formLabelPosition"
|
|
4467
4493
|
]),
|
|
4468
|
-
...
|
|
4494
|
+
...Le(fr, [
|
|
4469
4495
|
"cacheServerUrl",
|
|
4470
4496
|
"systemConfig",
|
|
4471
4497
|
"systemInfo",
|
|
@@ -4473,7 +4499,7 @@ function Zl() {
|
|
|
4473
4499
|
"sysIsEEUiApp",
|
|
4474
4500
|
"sysIsSoftware"
|
|
4475
4501
|
]),
|
|
4476
|
-
...
|
|
4502
|
+
...Le(Te, [
|
|
4477
4503
|
"accountIsLogin",
|
|
4478
4504
|
"accountInfo",
|
|
4479
4505
|
"accountToken",
|
|
@@ -4482,7 +4508,8 @@ function Zl() {
|
|
|
4482
4508
|
"staffId",
|
|
4483
4509
|
"staffNick"
|
|
4484
4510
|
]),
|
|
4485
|
-
...
|
|
4511
|
+
...Le(Zt, ["openProductInfo", "menuBadge", "menuCurrOpeneds", "menuCurrOnly"]),
|
|
4512
|
+
...Le(ec, ["openCaseInfo"])
|
|
4486
4513
|
},
|
|
4487
4514
|
watch: {
|
|
4488
4515
|
windowActive(t) {
|
|
@@ -4492,57 +4519,12 @@ function Zl() {
|
|
|
4492
4519
|
}
|
|
4493
4520
|
};
|
|
4494
4521
|
}
|
|
4495
|
-
const
|
|
4522
|
+
const Re = (e, t) => {
|
|
4496
4523
|
const n = e.__vccOpts || e;
|
|
4497
4524
|
for (const [r, a] of t)
|
|
4498
4525
|
n[r] = a;
|
|
4499
4526
|
return n;
|
|
4500
|
-
},
|
|
4501
|
-
props: {
|
|
4502
|
-
className: ""
|
|
4503
|
-
},
|
|
4504
|
-
data() {
|
|
4505
|
-
return {
|
|
4506
|
-
routeRefreshAnimation: "",
|
|
4507
|
-
routeRefreshNum: 0
|
|
4508
|
-
};
|
|
4509
|
-
},
|
|
4510
|
-
computed: {
|
|
4511
|
-
...Fe(en, ["routeAlive"])
|
|
4512
|
-
},
|
|
4513
|
-
watch: {
|
|
4514
|
-
routeAlive(e) {
|
|
4515
|
-
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4516
|
-
this.routeRefreshAnimation = "";
|
|
4517
|
-
});
|
|
4518
|
-
}
|
|
4519
|
-
},
|
|
4520
|
-
methods: {}
|
|
4521
|
-
};
|
|
4522
|
-
function tc(e, t, n, r, a, s) {
|
|
4523
|
-
const o = B("router-view");
|
|
4524
|
-
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4525
|
-
default: R(({ Component: i, route: l }) => [
|
|
4526
|
-
w(Bs, {
|
|
4527
|
-
name: a.routeRefreshAnimation,
|
|
4528
|
-
mode: "out-in",
|
|
4529
|
-
appear: ""
|
|
4530
|
-
}, {
|
|
4531
|
-
default: R(() => [
|
|
4532
|
-
(U(), Q("div", {
|
|
4533
|
-
class: va(n.className),
|
|
4534
|
-
key: l.path
|
|
4535
|
-
}, [
|
|
4536
|
-
(U(), J(xs(i)))
|
|
4537
|
-
], 2))
|
|
4538
|
-
]),
|
|
4539
|
-
_: 2
|
|
4540
|
-
}, 1032, ["name"])
|
|
4541
|
-
]),
|
|
4542
|
-
_: 1
|
|
4543
|
-
});
|
|
4544
|
-
}
|
|
4545
|
-
const nc = /* @__PURE__ */ we(ec, [["render", tc]]), rc = {
|
|
4527
|
+
}, rc = {
|
|
4546
4528
|
name: "HeaderSysSettDrawer",
|
|
4547
4529
|
components: {},
|
|
4548
4530
|
props: {
|
|
@@ -4565,16 +4547,16 @@ const nc = /* @__PURE__ */ we(ec, [["render", tc]]), rc = {
|
|
|
4565
4547
|
this.localVal = e;
|
|
4566
4548
|
},
|
|
4567
4549
|
frameSysTheme(e) {
|
|
4568
|
-
|
|
4550
|
+
Be().SA_THEMES_SET(e);
|
|
4569
4551
|
},
|
|
4570
4552
|
frameSysLanguage(e) {
|
|
4571
|
-
|
|
4553
|
+
kt().SA_LANGUAGE_SET(e);
|
|
4572
4554
|
},
|
|
4573
4555
|
frameSidebarState(e) {
|
|
4574
|
-
|
|
4556
|
+
Be().SA_LAYOUT_SLIDEBAR_SET(e);
|
|
4575
4557
|
},
|
|
4576
4558
|
frameSysNavTabs(e) {
|
|
4577
|
-
|
|
4559
|
+
Be().SA_LAYOUT_NAVTABS_SET(e);
|
|
4578
4560
|
}
|
|
4579
4561
|
},
|
|
4580
4562
|
created() {
|
|
@@ -4605,7 +4587,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4605
4587
|
"before-close": s.frameTopSysSettClose
|
|
4606
4588
|
}, {
|
|
4607
4589
|
default: R(() => [
|
|
4608
|
-
|
|
4590
|
+
P("div", ac, [
|
|
4609
4591
|
w(p, {
|
|
4610
4592
|
labelWidth: "auto",
|
|
4611
4593
|
"label-position": "left"
|
|
@@ -4616,7 +4598,7 @@ function oc(e, t, n, r, a, s) {
|
|
|
4616
4598
|
"label-position": "top"
|
|
4617
4599
|
}, {
|
|
4618
4600
|
default: R(() => [
|
|
4619
|
-
|
|
4601
|
+
P("div", sc, [
|
|
4620
4602
|
w(o),
|
|
4621
4603
|
w(o),
|
|
4622
4604
|
w(o)
|
|
@@ -4754,7 +4736,52 @@ function oc(e, t, n, r, a, s) {
|
|
|
4754
4736
|
_: 1
|
|
4755
4737
|
}, 8, ["modelValue", "before-close"]);
|
|
4756
4738
|
}
|
|
4757
|
-
const ic = /* @__PURE__ */
|
|
4739
|
+
const ic = /* @__PURE__ */ Re(rc, [["render", oc]]), lc = {
|
|
4740
|
+
props: {
|
|
4741
|
+
className: ""
|
|
4742
|
+
},
|
|
4743
|
+
data() {
|
|
4744
|
+
return {
|
|
4745
|
+
routeRefreshAnimation: "",
|
|
4746
|
+
routeRefreshNum: 0
|
|
4747
|
+
};
|
|
4748
|
+
},
|
|
4749
|
+
computed: {
|
|
4750
|
+
...Le(en, ["routeAlive"])
|
|
4751
|
+
},
|
|
4752
|
+
watch: {
|
|
4753
|
+
routeAlive(e) {
|
|
4754
|
+
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4755
|
+
this.routeRefreshAnimation = "";
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
methods: {}
|
|
4760
|
+
};
|
|
4761
|
+
function cc(e, t, n, r, a, s) {
|
|
4762
|
+
const o = B("router-view");
|
|
4763
|
+
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4764
|
+
default: R(({ Component: i, route: l }) => [
|
|
4765
|
+
w(xs, {
|
|
4766
|
+
name: a.routeRefreshAnimation,
|
|
4767
|
+
mode: "out-in",
|
|
4768
|
+
appear: ""
|
|
4769
|
+
}, {
|
|
4770
|
+
default: R(() => [
|
|
4771
|
+
(U(), Q("div", {
|
|
4772
|
+
class: va(n.className),
|
|
4773
|
+
key: l.path
|
|
4774
|
+
}, [
|
|
4775
|
+
(U(), J(Vs(i)))
|
|
4776
|
+
], 2))
|
|
4777
|
+
]),
|
|
4778
|
+
_: 2
|
|
4779
|
+
}, 1032, ["name"])
|
|
4780
|
+
]),
|
|
4781
|
+
_: 1
|
|
4782
|
+
});
|
|
4783
|
+
}
|
|
4784
|
+
const uc = /* @__PURE__ */ Re(lc, [["render", cc]]), _a = (e) => Math.pow(e, 3), fc = (e) => e < 0.5 ? _a(e * 2) / 2 : 1 - _a((1 - e) * 2) / 2, _c = {
|
|
4758
4785
|
name: "SameNavTabs",
|
|
4759
4786
|
data() {
|
|
4760
4787
|
return {
|
|
@@ -4804,7 +4831,7 @@ const ic = /* @__PURE__ */ we(rc, [["render", oc]]), _a = (e) => Math.pow(e, 3),
|
|
|
4804
4831
|
changeGdtBase() {
|
|
4805
4832
|
const e = this.$refs.navScroll1.wrap, t = Date.now(), n = e.scrollLeft, r = window.requestAnimationFrame || ((s) => setTimeout(s, 16)), a = () => {
|
|
4806
4833
|
const s = (Date.now() - t) / 500;
|
|
4807
|
-
s < 1 ? (e.scrollLeft = n * (1 -
|
|
4834
|
+
s < 1 ? (e.scrollLeft = n * (1 - fc(s)), r(a)) : e.scrollLeft = 0;
|
|
4808
4835
|
};
|
|
4809
4836
|
r(a);
|
|
4810
4837
|
},
|
|
@@ -4876,11 +4903,11 @@ const ic = /* @__PURE__ */ we(rc, [["render", oc]]), _a = (e) => Math.pow(e, 3),
|
|
|
4876
4903
|
this.contextMenuVisible = !1;
|
|
4877
4904
|
}
|
|
4878
4905
|
}
|
|
4879
|
-
},
|
|
4880
|
-
function
|
|
4906
|
+
}, dc = { class: "cloud-navtabs__wrap" }, mc = { class: "cloud-navtabs__box" }, hc = { class: "cloud-navtabs__main" }, gc = { class: "cloud-navtabs__tags" };
|
|
4907
|
+
function pc(e, t, n, r, a, s) {
|
|
4881
4908
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
4882
|
-
return U(), Q("div",
|
|
4883
|
-
|
|
4909
|
+
return U(), Q("div", dc, [
|
|
4910
|
+
P("div", mc, [
|
|
4884
4911
|
w(i, {
|
|
4885
4912
|
class: "btn-opt-left",
|
|
4886
4913
|
onClick: s.changeGdtLeft
|
|
@@ -4890,10 +4917,10 @@ function mc(e, t, n, r, a, s) {
|
|
|
4890
4917
|
]),
|
|
4891
4918
|
_: 1
|
|
4892
4919
|
}, 8, ["onClick"]),
|
|
4893
|
-
|
|
4920
|
+
P("div", hc, [
|
|
4894
4921
|
w(c, { ref: "navScroll1" }, {
|
|
4895
4922
|
default: R(() => [
|
|
4896
|
-
|
|
4923
|
+
P("div", gc, [
|
|
4897
4924
|
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4898
4925
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
4899
4926
|
class: va(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
@@ -4902,7 +4929,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4902
4929
|
onClose: (p) => s.removeTag(u, m),
|
|
4903
4930
|
onClick: (p) => s.changeMenu(u),
|
|
4904
4931
|
"disable-transitions": "",
|
|
4905
|
-
onContextmenu:
|
|
4932
|
+
onContextmenu: Gs(s.openContextMenu, ["prevent"])
|
|
4906
4933
|
}, {
|
|
4907
4934
|
default: R(() => [
|
|
4908
4935
|
te(ne(u.title), 1)
|
|
@@ -4930,14 +4957,14 @@ function mc(e, t, n, r, a, s) {
|
|
|
4930
4957
|
]),
|
|
4931
4958
|
_: 1
|
|
4932
4959
|
}),
|
|
4933
|
-
Aa(
|
|
4960
|
+
Aa(P("div", {
|
|
4934
4961
|
class: "cloud-navtabs__contextmenu",
|
|
4935
4962
|
style: Dn(a.contextMenuStyle)
|
|
4936
4963
|
}, [
|
|
4937
|
-
|
|
4964
|
+
P("ul", {
|
|
4938
4965
|
style: Dn({ left: a.left + "px", top: a.top + "px" })
|
|
4939
4966
|
}, [
|
|
4940
|
-
|
|
4967
|
+
P("li", null, [
|
|
4941
4968
|
w(f, {
|
|
4942
4969
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
4943
4970
|
}, {
|
|
@@ -4947,7 +4974,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4947
4974
|
_: 1
|
|
4948
4975
|
})
|
|
4949
4976
|
]),
|
|
4950
|
-
|
|
4977
|
+
P("li", null, [
|
|
4951
4978
|
w(f, {
|
|
4952
4979
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
4953
4980
|
}, {
|
|
@@ -4957,7 +4984,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4957
4984
|
_: 1
|
|
4958
4985
|
})
|
|
4959
4986
|
]),
|
|
4960
|
-
|
|
4987
|
+
P("li", null, [
|
|
4961
4988
|
w(f, {
|
|
4962
4989
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
4963
4990
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
@@ -4968,7 +4995,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4968
4995
|
_: 1
|
|
4969
4996
|
}, 8, ["disabled"])
|
|
4970
4997
|
]),
|
|
4971
|
-
|
|
4998
|
+
P("li", null, [
|
|
4972
4999
|
w(f, {
|
|
4973
5000
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
4974
5001
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
@@ -4979,7 +5006,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4979
5006
|
_: 1
|
|
4980
5007
|
}, 8, ["disabled"])
|
|
4981
5008
|
]),
|
|
4982
|
-
|
|
5009
|
+
P("li", null, [
|
|
4983
5010
|
w(f, {
|
|
4984
5011
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
4985
5012
|
}, {
|
|
@@ -4996,7 +5023,7 @@ function mc(e, t, n, r, a, s) {
|
|
|
4996
5023
|
])
|
|
4997
5024
|
]);
|
|
4998
5025
|
}
|
|
4999
|
-
const
|
|
5026
|
+
const Ec = /* @__PURE__ */ Re(_c, [["render", pc]]), bc = {
|
|
5000
5027
|
name: "SidebarMenuItem",
|
|
5001
5028
|
props: {
|
|
5002
5029
|
menuData: {
|
|
@@ -5041,14 +5068,14 @@ const hc = /* @__PURE__ */ we(cc, [["render", mc]]), gc = {
|
|
|
5041
5068
|
this.jumpsAuth(e.path);
|
|
5042
5069
|
}
|
|
5043
5070
|
}
|
|
5044
|
-
},
|
|
5071
|
+
}, Sc = { class: "cloud-subapp-menu-icon" }, vc = { key: 1 }, Ac = {
|
|
5045
5072
|
key: 0,
|
|
5046
5073
|
class: "cloud-subapp-menu-icon"
|
|
5047
|
-
},
|
|
5074
|
+
}, yc = {
|
|
5048
5075
|
key: 1,
|
|
5049
5076
|
class: "cloud-subapp-menu-icon"
|
|
5050
5077
|
};
|
|
5051
|
-
function
|
|
5078
|
+
function Nc(e, t, n, r, a, s) {
|
|
5052
5079
|
const o = B("cv-icons"), i = B("SidebarMenuItem", !0), l = B("el-sub-menu"), c = B("cv-badge"), f = B("el-menu-item");
|
|
5053
5080
|
return U(!0), Q(he, null, Xe(n.menuData, (u) => (U(), Q(he, null, [
|
|
5054
5081
|
u.isMenu == !0 ? (U(), Q(he, { key: 0 }, [
|
|
@@ -5057,15 +5084,15 @@ function vc(e, t, n, r, a, s) {
|
|
|
5057
5084
|
index: u.name
|
|
5058
5085
|
}, {
|
|
5059
5086
|
title: R(() => [
|
|
5060
|
-
|
|
5087
|
+
P("div", Sc, [
|
|
5061
5088
|
u.meta.icon ? (U(), J(o, {
|
|
5062
5089
|
key: 0,
|
|
5063
5090
|
type: u.meta.icon,
|
|
5064
5091
|
size: "16"
|
|
5065
5092
|
}, null, 8, ["type"])) : ue("", !0),
|
|
5066
|
-
!u.meta.icon && n.collapse ? (U(), Q("span",
|
|
5093
|
+
!u.meta.icon && n.collapse ? (U(), Q("span", vc, ne(u.meta.short || u.meta.title), 1)) : ue("", !0)
|
|
5067
5094
|
]),
|
|
5068
|
-
|
|
5095
|
+
P("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5069
5096
|
]),
|
|
5070
5097
|
default: R(() => [
|
|
5071
5098
|
w(i, {
|
|
@@ -5085,7 +5112,7 @@ function vc(e, t, n, r, a, s) {
|
|
|
5085
5112
|
te(ne(u.meta.short || u.meta.title), 1)
|
|
5086
5113
|
]),
|
|
5087
5114
|
default: R(() => [
|
|
5088
|
-
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div",
|
|
5115
|
+
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Ac, ne(u.meta.short || u.meta.title), 1)) : (U(), Q("div", yc, [
|
|
5089
5116
|
u.meta.icon ? (U(), J(o, {
|
|
5090
5117
|
key: 0,
|
|
5091
5118
|
type: u.meta.icon,
|
|
@@ -5108,10 +5135,10 @@ function vc(e, t, n, r, a, s) {
|
|
|
5108
5135
|
], 64)) : ue("", !0)
|
|
5109
5136
|
], 64))), 256);
|
|
5110
5137
|
}
|
|
5111
|
-
const
|
|
5138
|
+
const Tc = /* @__PURE__ */ Re(bc, [["render", Nc]]), Oc = {
|
|
5112
5139
|
name: "SidebarMenuBox",
|
|
5113
5140
|
components: {
|
|
5114
|
-
SidebarMenuItem:
|
|
5141
|
+
SidebarMenuItem: Tc
|
|
5115
5142
|
},
|
|
5116
5143
|
props: {
|
|
5117
5144
|
collapse: {
|
|
@@ -5123,7 +5150,7 @@ const Ac = /* @__PURE__ */ we(gc, [["render", vc]]), yc = {
|
|
|
5123
5150
|
return {
|
|
5124
5151
|
// 左侧菜单默认展开
|
|
5125
5152
|
menuDefaultOpeneds: [],
|
|
5126
|
-
|
|
5153
|
+
menuCurrList: [],
|
|
5127
5154
|
// 当前激活菜单的 index
|
|
5128
5155
|
activeName: null
|
|
5129
5156
|
};
|
|
@@ -5137,14 +5164,14 @@ const Ac = /* @__PURE__ */ we(gc, [["render", vc]]), yc = {
|
|
|
5137
5164
|
}
|
|
5138
5165
|
},
|
|
5139
5166
|
menuCurrOnly(e) {
|
|
5140
|
-
this.
|
|
5167
|
+
this.menuCurrList = e;
|
|
5141
5168
|
},
|
|
5142
5169
|
menuCurrOpeneds(e) {
|
|
5143
5170
|
this.menuDefaultOpeneds = e;
|
|
5144
5171
|
}
|
|
5145
5172
|
},
|
|
5146
5173
|
created() {
|
|
5147
|
-
this.
|
|
5174
|
+
this.menuCurrList = this.menuCurrOnly, this.menuDefaultOpeneds = this.menuCurrOpeneds;
|
|
5148
5175
|
},
|
|
5149
5176
|
methods: {
|
|
5150
5177
|
handleOpen(e, t) {
|
|
@@ -5152,12 +5179,12 @@ const Ac = /* @__PURE__ */ we(gc, [["render", vc]]), yc = {
|
|
|
5152
5179
|
handleClose(e, t) {
|
|
5153
5180
|
}
|
|
5154
5181
|
}
|
|
5155
|
-
},
|
|
5156
|
-
function
|
|
5182
|
+
}, Ic = { class: "cloud-subapp-wrap" }, Cc = { class: "cloud-sidebar__title" }, Lc = { class: "cloud-subapp-menu-box" };
|
|
5183
|
+
function wc(e, t, n, r, a, s) {
|
|
5157
5184
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
5158
|
-
return U(), Q("div",
|
|
5159
|
-
|
|
5160
|
-
|
|
5185
|
+
return U(), Q("div", Ic, [
|
|
5186
|
+
P("div", Cc, ne(e.openProductInfo.info_title), 1),
|
|
5187
|
+
P("div", Lc, [
|
|
5161
5188
|
w(i, {
|
|
5162
5189
|
collapse: n.collapse,
|
|
5163
5190
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -5168,7 +5195,7 @@ function Ic(e, t, n, r, a, s) {
|
|
|
5168
5195
|
default: R(() => [
|
|
5169
5196
|
w(o, {
|
|
5170
5197
|
appData: e.openProductInfo,
|
|
5171
|
-
menuData: a.
|
|
5198
|
+
menuData: a.menuCurrList,
|
|
5172
5199
|
collapse: n.collapse
|
|
5173
5200
|
}, null, 8, ["appData", "menuData", "collapse"])
|
|
5174
5201
|
]),
|
|
@@ -5177,7 +5204,7 @@ function Ic(e, t, n, r, a, s) {
|
|
|
5177
5204
|
])
|
|
5178
5205
|
]);
|
|
5179
5206
|
}
|
|
5180
|
-
const
|
|
5207
|
+
const Dc = /* @__PURE__ */ Re(Oc, [["render", wc]]), Rc = {
|
|
5181
5208
|
name: "ChangePassword",
|
|
5182
5209
|
props: {
|
|
5183
5210
|
modelValue: {
|
|
@@ -5228,8 +5255,8 @@ const Cc = /* @__PURE__ */ we(yc, [["render", Ic]]), Lc = {
|
|
|
5228
5255
|
});
|
|
5229
5256
|
}
|
|
5230
5257
|
}
|
|
5231
|
-
},
|
|
5232
|
-
function
|
|
5258
|
+
}, kc = { class: "dialog-footer" };
|
|
5259
|
+
function Pc(e, t, n, r, a, s) {
|
|
5233
5260
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
5234
5261
|
return U(), J(f, {
|
|
5235
5262
|
width: 520,
|
|
@@ -5239,7 +5266,7 @@ function Dc(e, t, n, r, a, s) {
|
|
|
5239
5266
|
onClose: s.handleCancel
|
|
5240
5267
|
}, {
|
|
5241
5268
|
footer: R(() => [
|
|
5242
|
-
|
|
5269
|
+
P("div", kc, [
|
|
5243
5270
|
w(c, { onClick: s.handleCancel }, {
|
|
5244
5271
|
default: R(() => t[4] || (t[4] = [
|
|
5245
5272
|
te("取 消")
|
|
@@ -5312,7 +5339,7 @@ function Dc(e, t, n, r, a, s) {
|
|
|
5312
5339
|
_: 1
|
|
5313
5340
|
}, 8, ["modelValue", "onClose"]);
|
|
5314
5341
|
}
|
|
5315
|
-
const
|
|
5342
|
+
const Fc = /* @__PURE__ */ Re(Rc, [["render", Pc]]), Mc = {
|
|
5316
5343
|
name: "SwitchBusiness",
|
|
5317
5344
|
props: {
|
|
5318
5345
|
modelValue: {
|
|
@@ -5396,21 +5423,21 @@ const Rc = /* @__PURE__ */ we(Lc, [["render", Dc]]), Pc = {
|
|
|
5396
5423
|
// return segs
|
|
5397
5424
|
// }
|
|
5398
5425
|
}
|
|
5399
|
-
},
|
|
5400
|
-
function
|
|
5426
|
+
}, Uc = { class: "cloud-login-change-wrap" }, Bc = { class: "cloud-login-change-box1" }, xc = { class: "cloud-login-change-search" }, Vc = { class: "cloud-login-change-box2" }, Gc = { class: "cloud-login-change-group-box" }, $c = { class: "cloud-login-change-group-title" }, Wc = { class: "cloud-login-change-group-sublist" }, Yc = ["onClick"], Hc = { class: "cloud-login-change-item-left" }, Kc = { class: "cloud-login-change-item-left-icon" }, jc = ["src"], qc = { class: "cloud-login-change-item-right" }, Xc = { class: "cloud-login-change-item-right-label" }, Qc = { class: "cloud-login-change-item-right-label2" }, Jc = { class: "cloud-login-change-item-more" };
|
|
5427
|
+
function zc(e, t, n, r, a, s) {
|
|
5401
5428
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
5402
|
-
return U(), Q("div",
|
|
5403
|
-
|
|
5404
|
-
|
|
5429
|
+
return U(), Q("div", Uc, [
|
|
5430
|
+
P("div", Bc, [
|
|
5431
|
+
P("div", {
|
|
5405
5432
|
class: "cloud-login-change-reset",
|
|
5406
5433
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
5407
5434
|
}, ne(n.reselectTitle), 1),
|
|
5408
|
-
t[3] || (t[3] =
|
|
5409
|
-
t[4] || (t[4] =
|
|
5410
|
-
|
|
5411
|
-
|
|
5435
|
+
t[3] || (t[3] = P("div", { class: "cloud-login-change-title" }, "选择商户", -1)),
|
|
5436
|
+
t[4] || (t[4] = P("div", { class: "cloud-login-change-desc" }, [
|
|
5437
|
+
P("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
5438
|
+
P("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
5412
5439
|
], -1)),
|
|
5413
|
-
|
|
5440
|
+
P("div", xc, [
|
|
5414
5441
|
w(o, {
|
|
5415
5442
|
modelValue: a.chainKeyword,
|
|
5416
5443
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -5430,34 +5457,34 @@ function Xc(e, t, n, r, a, s) {
|
|
|
5430
5457
|
_: 1
|
|
5431
5458
|
}, 8, ["onClick"])
|
|
5432
5459
|
]),
|
|
5433
|
-
|
|
5434
|
-
|
|
5460
|
+
P("div", Vc, [
|
|
5461
|
+
P("div", Gc, [
|
|
5435
5462
|
(U(!0), Q(he, null, Xe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
5436
5463
|
class: "cloud-login-change-group-item",
|
|
5437
5464
|
key: f
|
|
5438
5465
|
}, [
|
|
5439
|
-
|
|
5440
|
-
|
|
5466
|
+
P("div", $c, ne(c.title || "无") + "(" + ne(c.total) + ")", 1),
|
|
5467
|
+
P("div", Wc, [
|
|
5441
5468
|
(U(!0), Q(he, null, Xe(c.list, (u, m) => (U(), Q("div", {
|
|
5442
5469
|
class: "cloud-login-change-item-bao",
|
|
5443
5470
|
key: m,
|
|
5444
5471
|
onClick: (p) => s.chainSelection(u)
|
|
5445
5472
|
}, [
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5473
|
+
P("div", Hc, [
|
|
5474
|
+
P("div", Kc, [
|
|
5475
|
+
P("img", {
|
|
5449
5476
|
src: u.business_icon_cdn
|
|
5450
|
-
}, null, 8,
|
|
5477
|
+
}, null, 8, jc)
|
|
5451
5478
|
])
|
|
5452
5479
|
]),
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5480
|
+
P("div", qc, [
|
|
5481
|
+
P("div", Xc, ne(u.business_name), 1),
|
|
5482
|
+
P("div", Qc, "【" + ne(u.acc_role_type_str) + "】", 1)
|
|
5456
5483
|
]),
|
|
5457
|
-
|
|
5484
|
+
P("div", Jc, [
|
|
5458
5485
|
w(l, { type: "ElIconArrowRight" })
|
|
5459
5486
|
])
|
|
5460
|
-
], 8,
|
|
5487
|
+
], 8, Yc))), 128))
|
|
5461
5488
|
])
|
|
5462
5489
|
]))), 128))
|
|
5463
5490
|
])
|
|
@@ -5465,15 +5492,15 @@ function Xc(e, t, n, r, a, s) {
|
|
|
5465
5492
|
])
|
|
5466
5493
|
]);
|
|
5467
5494
|
}
|
|
5468
|
-
const
|
|
5495
|
+
const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
5469
5496
|
name: "SameFrame",
|
|
5470
5497
|
components: {
|
|
5471
|
-
SidebarMenuBox:
|
|
5472
|
-
SameNavTabs:
|
|
5473
|
-
SameRouteView:
|
|
5498
|
+
SidebarMenuBox: Dc,
|
|
5499
|
+
SameNavTabs: Ec,
|
|
5500
|
+
SameRouteView: uc,
|
|
5474
5501
|
HeaderSysSettDrawer: ic,
|
|
5475
|
-
ChangePassword:
|
|
5476
|
-
SwitchBusiness:
|
|
5502
|
+
ChangePassword: Fc,
|
|
5503
|
+
SwitchBusiness: Zc
|
|
5477
5504
|
},
|
|
5478
5505
|
props: {},
|
|
5479
5506
|
data() {
|
|
@@ -5510,8 +5537,8 @@ const Qc = /* @__PURE__ */ we(Pc, [["render", Xc]]), Jc = {
|
|
|
5510
5537
|
created() {
|
|
5511
5538
|
},
|
|
5512
5539
|
mounted() {
|
|
5513
|
-
this.frameSidebarOpen = this.layoutSidebarState,
|
|
5514
|
-
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on",
|
|
5540
|
+
this.frameSidebarOpen = this.layoutSidebarState, is().$subscribe((t, n) => {
|
|
5541
|
+
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5515
5542
|
}), window.onresize = () => {
|
|
5516
5543
|
(document.mozFullScreen || document.fullScreen || //谷歌浏览器及Webkit内核浏览器
|
|
5517
5544
|
document.webkitIsFullScreen || document.webkitRequestFullScreen || document.mozRequestFullScreen || document.msFullscreenEnabled) === void 0 && (this.full_screen = !1);
|
|
@@ -5519,7 +5546,7 @@ const Qc = /* @__PURE__ */ we(Pc, [["render", Xc]]), Jc = {
|
|
|
5519
5546
|
},
|
|
5520
5547
|
methods: {
|
|
5521
5548
|
frameSwicthMenu() {
|
|
5522
|
-
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on",
|
|
5549
|
+
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5523
5550
|
},
|
|
5524
5551
|
framePageRefresh() {
|
|
5525
5552
|
this.jumpsReload();
|
|
@@ -5560,7 +5587,7 @@ const Qc = /* @__PURE__ */ we(Pc, [["render", Xc]]), Jc = {
|
|
|
5560
5587
|
cancelButtonText: "取消",
|
|
5561
5588
|
type: "warning"
|
|
5562
5589
|
}).then(() => {
|
|
5563
|
-
|
|
5590
|
+
tc().then((n) => {
|
|
5564
5591
|
window.location.reload();
|
|
5565
5592
|
});
|
|
5566
5593
|
}).catch((n) => {
|
|
@@ -5606,32 +5633,32 @@ const Qc = /* @__PURE__ */ we(Pc, [["render", Xc]]), Jc = {
|
|
|
5606
5633
|
});
|
|
5607
5634
|
}
|
|
5608
5635
|
}
|
|
5609
|
-
},
|
|
5636
|
+
}, tu = { class: "cloud-layout__wrap" }, nu = { class: "cloud-header__wrap" }, ru = { class: "cloud-header__logo" }, au = {
|
|
5610
5637
|
href: "/",
|
|
5611
5638
|
title: "官网",
|
|
5612
5639
|
class: "cloud-header__logo-a"
|
|
5613
|
-
},
|
|
5640
|
+
}, su = ["src"], ou = { class: "cloud-header__logo-title" }, iu = { class: "cloud-header__breadcrumb" }, lu = {
|
|
5614
5641
|
key: 0,
|
|
5615
5642
|
class: "chopt-num"
|
|
5616
|
-
},
|
|
5643
|
+
}, cu = {
|
|
5617
5644
|
key: 0,
|
|
5618
5645
|
class: "chopt-num"
|
|
5619
|
-
},
|
|
5620
|
-
function
|
|
5646
|
+
}, uu = { class: "cloud-header__info" }, fu = ["src"], _u = { class: "chinfo-infoname" }, du = { class: "cloud-sidebar__wrap" }, mu = { class: "cloud-pages__wrap" };
|
|
5647
|
+
function hu(e, t, n, r, a, s) {
|
|
5621
5648
|
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");
|
|
5622
|
-
return U(), Q("div",
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5649
|
+
return U(), Q("div", tu, [
|
|
5650
|
+
P("header", nu, [
|
|
5651
|
+
P("div", ru, [
|
|
5652
|
+
P("a", au, [
|
|
5653
|
+
P("img", {
|
|
5627
5654
|
class: "cloud-header__logo-img",
|
|
5628
|
-
src: e.
|
|
5655
|
+
src: e.openCaseInfo.platinfo_logo,
|
|
5629
5656
|
alt: ""
|
|
5630
|
-
}, null, 8,
|
|
5657
|
+
}, null, 8, su)
|
|
5631
5658
|
]),
|
|
5632
|
-
|
|
5659
|
+
P("div", ou, ne(e.openCaseInfo.platinfo_title), 1)
|
|
5633
5660
|
]),
|
|
5634
|
-
|
|
5661
|
+
P("div", {
|
|
5635
5662
|
class: "cloud-header__opt",
|
|
5636
5663
|
onClick: t[0] || (t[0] = (...g) => s.frameSwicthMenu && s.frameSwicthMenu(...g))
|
|
5637
5664
|
}, [
|
|
@@ -5646,7 +5673,7 @@ function _u(e, t, n, r, a, s) {
|
|
|
5646
5673
|
size: "20"
|
|
5647
5674
|
})) : ue("", !0)
|
|
5648
5675
|
]),
|
|
5649
|
-
|
|
5676
|
+
P("div", {
|
|
5650
5677
|
class: "cloud-header__opt",
|
|
5651
5678
|
onClick: t[1] || (t[1] = (...g) => s.framePageRefresh && s.framePageRefresh(...g))
|
|
5652
5679
|
}, [
|
|
@@ -5655,7 +5682,7 @@ function _u(e, t, n, r, a, s) {
|
|
|
5655
5682
|
size: "20"
|
|
5656
5683
|
})
|
|
5657
5684
|
]),
|
|
5658
|
-
|
|
5685
|
+
P("div", iu, [
|
|
5659
5686
|
w(l, { separator: "/" }, {
|
|
5660
5687
|
default: R(() => [
|
|
5661
5688
|
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
@@ -5681,8 +5708,8 @@ function _u(e, t, n, r, a, s) {
|
|
|
5681
5708
|
_: 1
|
|
5682
5709
|
})
|
|
5683
5710
|
]),
|
|
5684
|
-
t[13] || (t[13] =
|
|
5685
|
-
|
|
5711
|
+
t[13] || (t[13] = P("div", { class: "cloud-header__seat" }, null, -1)),
|
|
5712
|
+
P("div", {
|
|
5686
5713
|
class: "cloud-header__opt chopt-relative",
|
|
5687
5714
|
onClick: t[2] || (t[2] = (g) => s.frameHandleCommand("msg"))
|
|
5688
5715
|
}, [
|
|
@@ -5690,9 +5717,9 @@ function _u(e, t, n, r, a, s) {
|
|
|
5690
5717
|
type: "ElIconChatLineRound",
|
|
5691
5718
|
size: "20"
|
|
5692
5719
|
}),
|
|
5693
|
-
a.chatUnreadTotal > 0 ? (U(), Q("em",
|
|
5720
|
+
a.chatUnreadTotal > 0 ? (U(), Q("em", lu, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : ue("", !0)
|
|
5694
5721
|
]),
|
|
5695
|
-
|
|
5722
|
+
P("div", {
|
|
5696
5723
|
class: "cloud-header__opt chopt-relative",
|
|
5697
5724
|
onClick: t[3] || (t[3] = (g) => s.frameHandleCommand("gongdan"))
|
|
5698
5725
|
}, [
|
|
@@ -5700,9 +5727,9 @@ function _u(e, t, n, r, a, s) {
|
|
|
5700
5727
|
type: "ElIconMessage",
|
|
5701
5728
|
size: "20"
|
|
5702
5729
|
}),
|
|
5703
|
-
a.emailUnreadTotal > 0 ? (U(), Q("em",
|
|
5730
|
+
a.emailUnreadTotal > 0 ? (U(), Q("em", cu, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : ue("", !0)
|
|
5704
5731
|
]),
|
|
5705
|
-
|
|
5732
|
+
P("div", uu, [
|
|
5706
5733
|
w(u, {
|
|
5707
5734
|
onCommand: s.frameHandleCommand,
|
|
5708
5735
|
"popper-class": "cloud-header__info_dropdown"
|
|
@@ -5758,20 +5785,20 @@ function _u(e, t, n, r, a, s) {
|
|
|
5758
5785
|
})
|
|
5759
5786
|
]),
|
|
5760
5787
|
default: R(() => [
|
|
5761
|
-
|
|
5762
|
-
|
|
5788
|
+
P("span", null, [
|
|
5789
|
+
P("img", {
|
|
5763
5790
|
class: "chinfo-avatar",
|
|
5764
5791
|
src: e.accountInfo.account_avatar_cdn,
|
|
5765
5792
|
title: "头像"
|
|
5766
|
-
}, null, 8,
|
|
5767
|
-
|
|
5793
|
+
}, null, 8, fu),
|
|
5794
|
+
P("div", _u, ne(s.headerInfoName), 1),
|
|
5768
5795
|
w(o, { type: "ElIconArrowDown" })
|
|
5769
5796
|
])
|
|
5770
5797
|
]),
|
|
5771
5798
|
_: 1
|
|
5772
5799
|
}, 8, ["onCommand"])
|
|
5773
5800
|
]),
|
|
5774
|
-
|
|
5801
|
+
P("div", {
|
|
5775
5802
|
title: "全屏",
|
|
5776
5803
|
class: "cloud-header__opt",
|
|
5777
5804
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
@@ -5788,7 +5815,7 @@ function _u(e, t, n, r, a, s) {
|
|
|
5788
5815
|
size: "20"
|
|
5789
5816
|
})) : ue("", !0)
|
|
5790
5817
|
]),
|
|
5791
|
-
|
|
5818
|
+
P("div", {
|
|
5792
5819
|
title: "设置",
|
|
5793
5820
|
class: "cloud-header__opt",
|
|
5794
5821
|
onClick: t[5] || (t[5] = (...g) => s.frameTopSysSettOpen && s.frameTopSysSettOpen(...g)),
|
|
@@ -5800,12 +5827,12 @@ function _u(e, t, n, r, a, s) {
|
|
|
5800
5827
|
})
|
|
5801
5828
|
])
|
|
5802
5829
|
]),
|
|
5803
|
-
|
|
5830
|
+
P("section", du, [
|
|
5804
5831
|
w(m, {
|
|
5805
5832
|
collapse: a.frameSidebarOpen == "off"
|
|
5806
5833
|
}, null, 8, ["collapse"])
|
|
5807
5834
|
]),
|
|
5808
|
-
|
|
5835
|
+
P("section", mu, [
|
|
5809
5836
|
Aa(w(p, null, null, 512), [
|
|
5810
5837
|
[ya, e.layoutNavTabs == "on"]
|
|
5811
5838
|
]),
|
|
@@ -5830,7 +5857,7 @@ function _u(e, t, n, r, a, s) {
|
|
|
5830
5857
|
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
|
|
5831
5858
|
]);
|
|
5832
5859
|
}
|
|
5833
|
-
const
|
|
5860
|
+
const Yf = /* @__PURE__ */ Re(eu, [["render", hu]]), gu = {
|
|
5834
5861
|
data() {
|
|
5835
5862
|
return {
|
|
5836
5863
|
watemarkText: "shiyun"
|
|
@@ -5838,9 +5865,9 @@ const Gf = /* @__PURE__ */ we(Jc, [["render", _u]]), du = {
|
|
|
5838
5865
|
},
|
|
5839
5866
|
computed: {
|
|
5840
5867
|
watemarkConf() {
|
|
5841
|
-
let
|
|
5842
|
-
return
|
|
5843
|
-
content:
|
|
5868
|
+
let e = this.openCaseInfo.platinfo_brand || "", n = Te().accountInfo || null;
|
|
5869
|
+
return n && n.account_mobile_hide && (e = n.business_name + n.account_mobile_hide), {
|
|
5870
|
+
content: e,
|
|
5844
5871
|
zIndex: -1,
|
|
5845
5872
|
rotate: -22,
|
|
5846
5873
|
gap: [100, 100],
|
|
@@ -5856,16 +5883,16 @@ const Gf = /* @__PURE__ */ we(Jc, [["render", _u]]), du = {
|
|
|
5856
5883
|
}
|
|
5857
5884
|
}
|
|
5858
5885
|
};
|
|
5859
|
-
function
|
|
5886
|
+
function pu(e, t, n, r, a, s) {
|
|
5860
5887
|
const o = B("el-watermark");
|
|
5861
|
-
return U(), J(o,
|
|
5888
|
+
return U(), J(o, $s(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5862
5889
|
default: R(() => [
|
|
5863
|
-
|
|
5890
|
+
Ws(e.$slots, "default")
|
|
5864
5891
|
]),
|
|
5865
5892
|
_: 3
|
|
5866
5893
|
}, 16);
|
|
5867
5894
|
}
|
|
5868
|
-
const
|
|
5895
|
+
const Hf = /* @__PURE__ */ Re(gu, [["render", pu]]);
|
|
5869
5896
|
(function() {
|
|
5870
5897
|
if (typeof EventTarget < "u") {
|
|
5871
5898
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -5874,10 +5901,10 @@ const $f = /* @__PURE__ */ we(du, [["render", mu]]);
|
|
|
5874
5901
|
};
|
|
5875
5902
|
}
|
|
5876
5903
|
})();
|
|
5877
|
-
const
|
|
5878
|
-
class
|
|
5904
|
+
const Eu = 60 * 60 * 24 * 7;
|
|
5905
|
+
class bu {
|
|
5879
5906
|
constructor(t) {
|
|
5880
|
-
this.prefix = t.prefix || "", this.expired = t.expired ||
|
|
5907
|
+
this.prefix = t.prefix || "", this.expired = t.expired || Eu, this.crypto = !!t.crypto, this.merge = !!t.merge, this.keyExpired = {
|
|
5881
5908
|
session: {},
|
|
5882
5909
|
local: {}
|
|
5883
5910
|
}, this.keyGroup = {
|
|
@@ -5994,7 +6021,7 @@ class gu {
|
|
|
5994
6021
|
this._deleteKey("local");
|
|
5995
6022
|
}
|
|
5996
6023
|
}
|
|
5997
|
-
function
|
|
6024
|
+
function Su() {
|
|
5998
6025
|
try {
|
|
5999
6026
|
if (typeof indexedDB < "u")
|
|
6000
6027
|
return indexedDB;
|
|
@@ -6010,8 +6037,8 @@ function pu() {
|
|
|
6010
6037
|
return;
|
|
6011
6038
|
}
|
|
6012
6039
|
}
|
|
6013
|
-
var ut =
|
|
6014
|
-
function
|
|
6040
|
+
var ut = Su();
|
|
6041
|
+
function vu() {
|
|
6015
6042
|
try {
|
|
6016
6043
|
if (!ut || !ut.open)
|
|
6017
6044
|
return !1;
|
|
@@ -6052,7 +6079,7 @@ function j(e, t) {
|
|
|
6052
6079
|
function ot(e, t, n) {
|
|
6053
6080
|
typeof t == "function" && e.then(t), typeof n == "function" && e.catch(n);
|
|
6054
6081
|
}
|
|
6055
|
-
function
|
|
6082
|
+
function ke(e) {
|
|
6056
6083
|
return typeof e != "string" && (e = String(e)), e;
|
|
6057
6084
|
}
|
|
6058
6085
|
function dr() {
|
|
@@ -6061,13 +6088,13 @@ function dr() {
|
|
|
6061
6088
|
}
|
|
6062
6089
|
const Hn = "local-forage-detect-blob-support";
|
|
6063
6090
|
let $t;
|
|
6064
|
-
const be = {},
|
|
6065
|
-
function
|
|
6091
|
+
const be = {}, Au = Object.prototype.toString, Pt = "readonly", tn = "readwrite";
|
|
6092
|
+
function yu(e) {
|
|
6066
6093
|
for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
|
|
6067
6094
|
r[a] = e.charCodeAt(a);
|
|
6068
6095
|
return n;
|
|
6069
6096
|
}
|
|
6070
|
-
function
|
|
6097
|
+
function Nu(e) {
|
|
6071
6098
|
return new F(function(t) {
|
|
6072
6099
|
var n = e.transaction(Hn, tn), r = _r([""]);
|
|
6073
6100
|
n.objectStore(Hn).put(r, "key"), n.onabort = function(a) {
|
|
@@ -6082,8 +6109,8 @@ function vu(e) {
|
|
|
6082
6109
|
return !1;
|
|
6083
6110
|
});
|
|
6084
6111
|
}
|
|
6085
|
-
function
|
|
6086
|
-
return typeof $t == "boolean" ? F.resolve($t) :
|
|
6112
|
+
function Tu(e) {
|
|
6113
|
+
return typeof $t == "boolean" ? F.resolve($t) : Nu(e).then(function(t) {
|
|
6087
6114
|
return $t = t, $t;
|
|
6088
6115
|
});
|
|
6089
6116
|
}
|
|
@@ -6105,9 +6132,9 @@ function jn(e, t) {
|
|
|
6105
6132
|
if (r)
|
|
6106
6133
|
return r.reject(t), r.promise;
|
|
6107
6134
|
}
|
|
6108
|
-
function
|
|
6135
|
+
function us(e, t) {
|
|
6109
6136
|
return new F(function(n, r) {
|
|
6110
|
-
if (be[e.name] = be[e.name] ||
|
|
6137
|
+
if (be[e.name] = be[e.name] || ms(), e.db)
|
|
6111
6138
|
if (t)
|
|
6112
6139
|
jt(e), e.db.close();
|
|
6113
6140
|
else
|
|
@@ -6134,12 +6161,12 @@ function cs(e, t) {
|
|
|
6134
6161
|
});
|
|
6135
6162
|
}
|
|
6136
6163
|
function mr(e) {
|
|
6137
|
-
return
|
|
6164
|
+
return us(e, !1);
|
|
6138
6165
|
}
|
|
6139
6166
|
function hr(e) {
|
|
6140
|
-
return
|
|
6167
|
+
return us(e, !0);
|
|
6141
6168
|
}
|
|
6142
|
-
function
|
|
6169
|
+
function fs(e, t) {
|
|
6143
6170
|
if (!e.db)
|
|
6144
6171
|
return !0;
|
|
6145
6172
|
var n = !e.db.objectStoreNames.contains(e.storeName), r = e.version < e.db.version, a = e.version > e.db.version;
|
|
@@ -6152,7 +6179,7 @@ function us(e, t) {
|
|
|
6152
6179
|
}
|
|
6153
6180
|
return !1;
|
|
6154
6181
|
}
|
|
6155
|
-
function
|
|
6182
|
+
function Ou(e) {
|
|
6156
6183
|
return new F(function(t, n) {
|
|
6157
6184
|
var r = new FileReader();
|
|
6158
6185
|
r.onerror = n, r.onloadend = function(a) {
|
|
@@ -6165,14 +6192,14 @@ function yu(e) {
|
|
|
6165
6192
|
}, r.readAsBinaryString(e);
|
|
6166
6193
|
});
|
|
6167
6194
|
}
|
|
6168
|
-
function
|
|
6169
|
-
var t =
|
|
6195
|
+
function _s(e) {
|
|
6196
|
+
var t = yu(atob(e.data));
|
|
6170
6197
|
return _r([t], { type: e.type });
|
|
6171
6198
|
}
|
|
6172
|
-
function
|
|
6199
|
+
function ds(e) {
|
|
6173
6200
|
return e && e.__local_forage_encoded_blob;
|
|
6174
6201
|
}
|
|
6175
|
-
function
|
|
6202
|
+
function Iu(e) {
|
|
6176
6203
|
var t = this, n = t._initReady().then(function() {
|
|
6177
6204
|
var r = be[t._dbInfo.name];
|
|
6178
6205
|
if (r && r.dbReady)
|
|
@@ -6180,13 +6207,13 @@ function Nu(e) {
|
|
|
6180
6207
|
});
|
|
6181
6208
|
return ot(n, e, e), n;
|
|
6182
6209
|
}
|
|
6183
|
-
function
|
|
6210
|
+
function Cu(e) {
|
|
6184
6211
|
jt(e);
|
|
6185
6212
|
for (var t = be[e.name], n = t.forages, r = 0; r < n.length; r++) {
|
|
6186
6213
|
const a = n[r];
|
|
6187
6214
|
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
6188
6215
|
}
|
|
6189
|
-
return e.db = null, mr(e).then((a) => (e.db = a,
|
|
6216
|
+
return e.db = null, mr(e).then((a) => (e.db = a, fs(e) ? hr(e) : a)).then((a) => {
|
|
6190
6217
|
e.db = t.db = a;
|
|
6191
6218
|
for (var s = 0; s < n.length; s++)
|
|
6192
6219
|
n[s]._dbInfo.db = a;
|
|
@@ -6194,7 +6221,7 @@ function Tu(e) {
|
|
|
6194
6221
|
throw jn(e, a), a;
|
|
6195
6222
|
});
|
|
6196
6223
|
}
|
|
6197
|
-
function
|
|
6224
|
+
function Pe(e, t, n, r) {
|
|
6198
6225
|
r === void 0 && (r = 1);
|
|
6199
6226
|
try {
|
|
6200
6227
|
var a = e.db.transaction(e.storeName, t);
|
|
@@ -6206,13 +6233,13 @@ function Re(e, t, n, r) {
|
|
|
6206
6233
|
e.storeName
|
|
6207
6234
|
) && e.version <= e.db.version)
|
|
6208
6235
|
return e.db && (e.version = e.db.version + 1), hr(e);
|
|
6209
|
-
}).then(() =>
|
|
6210
|
-
|
|
6236
|
+
}).then(() => Cu(e).then(function() {
|
|
6237
|
+
Pe(e, t, n, r - 1);
|
|
6211
6238
|
})).catch(n);
|
|
6212
6239
|
n(s);
|
|
6213
6240
|
}
|
|
6214
6241
|
}
|
|
6215
|
-
function
|
|
6242
|
+
function ms() {
|
|
6216
6243
|
return {
|
|
6217
6244
|
// Running localForages sharing a database.
|
|
6218
6245
|
forages: [],
|
|
@@ -6224,7 +6251,7 @@ function ds() {
|
|
|
6224
6251
|
deferredOperations: []
|
|
6225
6252
|
};
|
|
6226
6253
|
}
|
|
6227
|
-
function
|
|
6254
|
+
function Lu(e) {
|
|
6228
6255
|
var t = this, n = {
|
|
6229
6256
|
db: null
|
|
6230
6257
|
};
|
|
@@ -6232,7 +6259,7 @@ function Ou(e) {
|
|
|
6232
6259
|
for (var r in e)
|
|
6233
6260
|
n[r] = e[r];
|
|
6234
6261
|
var a = be[n.name];
|
|
6235
|
-
a || (a =
|
|
6262
|
+
a || (a = ms(), be[n.name] = a), a.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Iu);
|
|
6236
6263
|
var s = [];
|
|
6237
6264
|
function o() {
|
|
6238
6265
|
return F.resolve();
|
|
@@ -6245,7 +6272,7 @@ function Ou(e) {
|
|
|
6245
6272
|
return F.all(s).then(function() {
|
|
6246
6273
|
return n.db = a.db, mr(n);
|
|
6247
6274
|
}).then(function(f) {
|
|
6248
|
-
return n.db = f,
|
|
6275
|
+
return n.db = f, fs(n, t._defaultConfig.version) ? hr(n) : f;
|
|
6249
6276
|
}).then(function(f) {
|
|
6250
6277
|
n.db = a.db = f, t._dbInfo = n;
|
|
6251
6278
|
for (var u = 0; u < c.length; u++) {
|
|
@@ -6254,12 +6281,12 @@ function Ou(e) {
|
|
|
6254
6281
|
}
|
|
6255
6282
|
});
|
|
6256
6283
|
}
|
|
6257
|
-
function
|
|
6284
|
+
function wu(e, t) {
|
|
6258
6285
|
var n = this;
|
|
6259
|
-
e =
|
|
6286
|
+
e = ke(e);
|
|
6260
6287
|
var r = new F(function(a, s) {
|
|
6261
6288
|
n.ready().then(function() {
|
|
6262
|
-
|
|
6289
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6263
6290
|
if (o)
|
|
6264
6291
|
return s(o);
|
|
6265
6292
|
try {
|
|
@@ -6268,7 +6295,7 @@ function Iu(e, t) {
|
|
|
6268
6295
|
), c = l.get(e);
|
|
6269
6296
|
c.onsuccess = function() {
|
|
6270
6297
|
var f = c.result;
|
|
6271
|
-
f === void 0 && (f = null),
|
|
6298
|
+
f === void 0 && (f = null), ds(f) && (f = _s(f)), a(f);
|
|
6272
6299
|
}, c.onerror = function() {
|
|
6273
6300
|
s(c.error);
|
|
6274
6301
|
};
|
|
@@ -6280,10 +6307,10 @@ function Iu(e, t) {
|
|
|
6280
6307
|
});
|
|
6281
6308
|
return j(r, t), r;
|
|
6282
6309
|
}
|
|
6283
|
-
function
|
|
6310
|
+
function Du(e, t) {
|
|
6284
6311
|
var n = this, r = new F(function(a, s) {
|
|
6285
6312
|
n.ready().then(function() {
|
|
6286
|
-
|
|
6313
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6287
6314
|
if (o)
|
|
6288
6315
|
return s(o);
|
|
6289
6316
|
try {
|
|
@@ -6294,7 +6321,7 @@ function Cu(e, t) {
|
|
|
6294
6321
|
var u = c.result;
|
|
6295
6322
|
if (u) {
|
|
6296
6323
|
var m = u.value;
|
|
6297
|
-
|
|
6324
|
+
ds(m) && (m = _s(m));
|
|
6298
6325
|
var p = e(
|
|
6299
6326
|
m,
|
|
6300
6327
|
u.key,
|
|
@@ -6314,17 +6341,17 @@ function Cu(e, t) {
|
|
|
6314
6341
|
});
|
|
6315
6342
|
return j(r, t), r;
|
|
6316
6343
|
}
|
|
6317
|
-
function
|
|
6344
|
+
function Ru(e, t, n) {
|
|
6318
6345
|
var r = this;
|
|
6319
|
-
e =
|
|
6346
|
+
e = ke(e);
|
|
6320
6347
|
var a = new F(function(s, o) {
|
|
6321
6348
|
var i;
|
|
6322
6349
|
r.ready().then(function() {
|
|
6323
|
-
return i = r._dbInfo,
|
|
6324
|
-
return l ? t :
|
|
6350
|
+
return i = r._dbInfo, Au.call(t) === "[object Blob]" ? Tu(i.db).then(function(l) {
|
|
6351
|
+
return l ? t : Ou(t);
|
|
6325
6352
|
}) : t;
|
|
6326
6353
|
}).then(function(l) {
|
|
6327
|
-
|
|
6354
|
+
Pe(r._dbInfo, tn, function(c, f) {
|
|
6328
6355
|
if (c)
|
|
6329
6356
|
return o(c);
|
|
6330
6357
|
try {
|
|
@@ -6347,12 +6374,12 @@ function Lu(e, t, n) {
|
|
|
6347
6374
|
});
|
|
6348
6375
|
return j(a, n), a;
|
|
6349
6376
|
}
|
|
6350
|
-
function
|
|
6377
|
+
function ku(e, t) {
|
|
6351
6378
|
var n = this;
|
|
6352
|
-
e =
|
|
6379
|
+
e = ke(e);
|
|
6353
6380
|
var r = new F(function(a, s) {
|
|
6354
6381
|
n.ready().then(function() {
|
|
6355
|
-
|
|
6382
|
+
Pe(n._dbInfo, tn, function(o, i) {
|
|
6356
6383
|
if (o)
|
|
6357
6384
|
return s(o);
|
|
6358
6385
|
try {
|
|
@@ -6375,10 +6402,10 @@ function wu(e, t) {
|
|
|
6375
6402
|
});
|
|
6376
6403
|
return j(r, t), r;
|
|
6377
6404
|
}
|
|
6378
|
-
function
|
|
6405
|
+
function Pu(e) {
|
|
6379
6406
|
var t = this, n = new F(function(r, a) {
|
|
6380
6407
|
t.ready().then(function() {
|
|
6381
|
-
|
|
6408
|
+
Pe(t._dbInfo, tn, function(s, o) {
|
|
6382
6409
|
if (s)
|
|
6383
6410
|
return a(s);
|
|
6384
6411
|
try {
|
|
@@ -6399,10 +6426,10 @@ function Du(e) {
|
|
|
6399
6426
|
});
|
|
6400
6427
|
return j(n, e), n;
|
|
6401
6428
|
}
|
|
6402
|
-
function
|
|
6429
|
+
function Fu(e) {
|
|
6403
6430
|
var t = this, n = new F(function(r, a) {
|
|
6404
6431
|
t.ready().then(function() {
|
|
6405
|
-
|
|
6432
|
+
Pe(t._dbInfo, Pt, function(s, o) {
|
|
6406
6433
|
if (s)
|
|
6407
6434
|
return a(s);
|
|
6408
6435
|
try {
|
|
@@ -6422,14 +6449,14 @@ function Ru(e) {
|
|
|
6422
6449
|
});
|
|
6423
6450
|
return j(n, e), n;
|
|
6424
6451
|
}
|
|
6425
|
-
function
|
|
6452
|
+
function Mu(e, t) {
|
|
6426
6453
|
var n = this, r = new F(function(a, s) {
|
|
6427
6454
|
if (e < 0) {
|
|
6428
6455
|
a(null);
|
|
6429
6456
|
return;
|
|
6430
6457
|
}
|
|
6431
6458
|
n.ready().then(function() {
|
|
6432
|
-
|
|
6459
|
+
Pe(n._dbInfo, Pt, function(o, i) {
|
|
6433
6460
|
if (o)
|
|
6434
6461
|
return s(o);
|
|
6435
6462
|
try {
|
|
@@ -6454,10 +6481,10 @@ function Pu(e, t) {
|
|
|
6454
6481
|
});
|
|
6455
6482
|
return j(r, t), r;
|
|
6456
6483
|
}
|
|
6457
|
-
function
|
|
6484
|
+
function Uu(e) {
|
|
6458
6485
|
var t = this, n = new F(function(r, a) {
|
|
6459
6486
|
t.ready().then(function() {
|
|
6460
|
-
|
|
6487
|
+
Pe(t._dbInfo, Pt, function(s, o) {
|
|
6461
6488
|
if (s)
|
|
6462
6489
|
return a(s);
|
|
6463
6490
|
try {
|
|
@@ -6482,7 +6509,7 @@ function ku(e) {
|
|
|
6482
6509
|
});
|
|
6483
6510
|
return j(n, e), n;
|
|
6484
6511
|
}
|
|
6485
|
-
function
|
|
6512
|
+
function Bu(e, t) {
|
|
6486
6513
|
t = dr.apply(this, arguments);
|
|
6487
6514
|
var n = this.config();
|
|
6488
6515
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -6561,47 +6588,47 @@ function Fu(e, t) {
|
|
|
6561
6588
|
}
|
|
6562
6589
|
return j(a, t), a;
|
|
6563
6590
|
}
|
|
6564
|
-
var
|
|
6591
|
+
var xu = {
|
|
6565
6592
|
_driver: "asyncStorage",
|
|
6566
|
-
_initStorage:
|
|
6567
|
-
_support:
|
|
6568
|
-
iterate:
|
|
6569
|
-
getItem:
|
|
6570
|
-
setItem:
|
|
6571
|
-
removeItem:
|
|
6572
|
-
clear:
|
|
6573
|
-
length:
|
|
6574
|
-
key:
|
|
6575
|
-
keys:
|
|
6576
|
-
dropInstance:
|
|
6593
|
+
_initStorage: Lu,
|
|
6594
|
+
_support: vu(),
|
|
6595
|
+
iterate: Du,
|
|
6596
|
+
getItem: wu,
|
|
6597
|
+
setItem: Ru,
|
|
6598
|
+
removeItem: ku,
|
|
6599
|
+
clear: Pu,
|
|
6600
|
+
length: Fu,
|
|
6601
|
+
key: Mu,
|
|
6602
|
+
keys: Uu,
|
|
6603
|
+
dropInstance: Bu
|
|
6577
6604
|
};
|
|
6578
|
-
function
|
|
6605
|
+
function Vu() {
|
|
6579
6606
|
return typeof openDatabase == "function";
|
|
6580
6607
|
}
|
|
6581
|
-
var
|
|
6582
|
-
function
|
|
6608
|
+
var Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Gu = "~~local_forage_type~", da = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", qn = qt.length, gr = "arbf", Xn = "blob", hs = "si08", gs = "ui08", ps = "uic8", Es = "si16", bs = "si32", Ss = "ur16", vs = "ui32", As = "fl32", ys = "fl64", ma = qn + gr.length, ha = Object.prototype.toString;
|
|
6609
|
+
function Ns(e) {
|
|
6583
6610
|
var t = e.length * 0.75, n = e.length, r, a = 0, s, o, i, l;
|
|
6584
6611
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
6585
6612
|
var c = new ArrayBuffer(t), f = new Uint8Array(c);
|
|
6586
6613
|
for (r = 0; r < n; r += 4)
|
|
6587
|
-
s =
|
|
6614
|
+
s = Ue.indexOf(e[r]), o = Ue.indexOf(e[r + 1]), i = Ue.indexOf(e[r + 2]), l = Ue.indexOf(e[r + 3]), f[a++] = s << 2 | o >> 4, f[a++] = (o & 15) << 4 | i >> 2, f[a++] = (i & 3) << 6 | l & 63;
|
|
6588
6615
|
return c;
|
|
6589
6616
|
}
|
|
6590
6617
|
function Qn(e) {
|
|
6591
6618
|
var t = new Uint8Array(e), n = "", r;
|
|
6592
6619
|
for (r = 0; r < t.length; r += 3)
|
|
6593
|
-
n +=
|
|
6620
|
+
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];
|
|
6594
6621
|
return t.length % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : t.length % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
6595
6622
|
}
|
|
6596
|
-
function
|
|
6623
|
+
function $u(e, t) {
|
|
6597
6624
|
var n = "";
|
|
6598
6625
|
if (e && (n = ha.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && ha.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
6599
6626
|
var r, a = qt;
|
|
6600
|
-
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a +=
|
|
6627
|
+
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a += hs : n === "[object Uint8Array]" ? a += gs : n === "[object Uint8ClampedArray]" ? a += ps : n === "[object Int16Array]" ? a += Es : n === "[object Uint16Array]" ? a += Ss : n === "[object Int32Array]" ? a += bs : n === "[object Uint32Array]" ? a += vs : n === "[object Float32Array]" ? a += As : n === "[object Float64Array]" ? a += ys : t(new Error("Failed to get type for BinaryArray"))), t(a + Qn(r));
|
|
6601
6628
|
} else if (n === "[object Blob]") {
|
|
6602
6629
|
var s = new FileReader();
|
|
6603
6630
|
s.onload = function() {
|
|
6604
|
-
var o =
|
|
6631
|
+
var o = Gu + e.type + "~" + Qn(this.result);
|
|
6605
6632
|
t(qt + Xn + o);
|
|
6606
6633
|
}, s.readAsArrayBuffer(e);
|
|
6607
6634
|
} else
|
|
@@ -6611,7 +6638,7 @@ function xu(e, t) {
|
|
|
6611
6638
|
t(null, o);
|
|
6612
6639
|
}
|
|
6613
6640
|
}
|
|
6614
|
-
function
|
|
6641
|
+
function Wu(e) {
|
|
6615
6642
|
if (e.substring(0, qn) !== qt)
|
|
6616
6643
|
return JSON.parse(e);
|
|
6617
6644
|
var t = e.substring(ma), n = e.substring(
|
|
@@ -6622,41 +6649,41 @@ function Vu(e) {
|
|
|
6622
6649
|
var a = t.match(da);
|
|
6623
6650
|
r = a[1], t = t.substring(a[0].length);
|
|
6624
6651
|
}
|
|
6625
|
-
var s =
|
|
6652
|
+
var s = Ns(t);
|
|
6626
6653
|
switch (n) {
|
|
6627
6654
|
case gr:
|
|
6628
6655
|
return s;
|
|
6629
6656
|
case Xn:
|
|
6630
6657
|
return _r([s], { type: r });
|
|
6631
|
-
case ms:
|
|
6632
|
-
return new Int8Array(s);
|
|
6633
6658
|
case hs:
|
|
6634
|
-
return new
|
|
6659
|
+
return new Int8Array(s);
|
|
6635
6660
|
case gs:
|
|
6636
|
-
return new
|
|
6661
|
+
return new Uint8Array(s);
|
|
6637
6662
|
case ps:
|
|
6663
|
+
return new Uint8ClampedArray(s);
|
|
6664
|
+
case Es:
|
|
6638
6665
|
return new Int16Array(s);
|
|
6639
|
-
case
|
|
6666
|
+
case Ss:
|
|
6640
6667
|
return new Uint16Array(s);
|
|
6641
|
-
case
|
|
6668
|
+
case bs:
|
|
6642
6669
|
return new Int32Array(s);
|
|
6643
|
-
case Ss:
|
|
6644
|
-
return new Uint32Array(s);
|
|
6645
6670
|
case vs:
|
|
6646
|
-
return new
|
|
6671
|
+
return new Uint32Array(s);
|
|
6647
6672
|
case As:
|
|
6673
|
+
return new Float32Array(s);
|
|
6674
|
+
case ys:
|
|
6648
6675
|
return new Float64Array(s);
|
|
6649
6676
|
default:
|
|
6650
6677
|
throw new Error("Unkown type: " + n);
|
|
6651
6678
|
}
|
|
6652
6679
|
}
|
|
6653
6680
|
var pr = {
|
|
6654
|
-
serialize:
|
|
6655
|
-
deserialize:
|
|
6656
|
-
stringToBuffer:
|
|
6681
|
+
serialize: $u,
|
|
6682
|
+
deserialize: Wu,
|
|
6683
|
+
stringToBuffer: Ns,
|
|
6657
6684
|
bufferToString: Qn
|
|
6658
6685
|
};
|
|
6659
|
-
function
|
|
6686
|
+
function Ts(e, t, n, r) {
|
|
6660
6687
|
e.executeSql(
|
|
6661
6688
|
`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,
|
|
6662
6689
|
[],
|
|
@@ -6664,7 +6691,7 @@ function Ns(e, t, n, r) {
|
|
|
6664
6691
|
r
|
|
6665
6692
|
);
|
|
6666
6693
|
}
|
|
6667
|
-
function
|
|
6694
|
+
function Yu(e) {
|
|
6668
6695
|
var t = this, n = {
|
|
6669
6696
|
db: null
|
|
6670
6697
|
};
|
|
@@ -6683,7 +6710,7 @@ function Gu(e) {
|
|
|
6683
6710
|
return o(i);
|
|
6684
6711
|
}
|
|
6685
6712
|
n.db.transaction(function(i) {
|
|
6686
|
-
|
|
6713
|
+
Ts(
|
|
6687
6714
|
i,
|
|
6688
6715
|
n,
|
|
6689
6716
|
function() {
|
|
@@ -6707,7 +6734,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6707
6734
|
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
|
|
6708
6735
|
[t.storeName],
|
|
6709
6736
|
function(l, c) {
|
|
6710
|
-
c.rows.length ? s(l, i) :
|
|
6737
|
+
c.rows.length ? s(l, i) : Ts(
|
|
6711
6738
|
l,
|
|
6712
6739
|
t,
|
|
6713
6740
|
function() {
|
|
@@ -6727,9 +6754,9 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6727
6754
|
s
|
|
6728
6755
|
);
|
|
6729
6756
|
}
|
|
6730
|
-
function
|
|
6757
|
+
function Hu(e, t) {
|
|
6731
6758
|
var n = this;
|
|
6732
|
-
e =
|
|
6759
|
+
e = ke(e);
|
|
6733
6760
|
var r = new F(function(a, s) {
|
|
6734
6761
|
n.ready().then(function() {
|
|
6735
6762
|
var o = n._dbInfo;
|
|
@@ -6752,7 +6779,7 @@ function $u(e, t) {
|
|
|
6752
6779
|
});
|
|
6753
6780
|
return j(r, t), r;
|
|
6754
6781
|
}
|
|
6755
|
-
function
|
|
6782
|
+
function Ku(e, t) {
|
|
6756
6783
|
var n = this, r = new F(function(a, s) {
|
|
6757
6784
|
n.ready().then(function() {
|
|
6758
6785
|
var o = n._dbInfo;
|
|
@@ -6783,9 +6810,9 @@ function Wu(e, t) {
|
|
|
6783
6810
|
});
|
|
6784
6811
|
return j(r, t), r;
|
|
6785
6812
|
}
|
|
6786
|
-
function
|
|
6813
|
+
function Os(e, t, n, r) {
|
|
6787
6814
|
var a = this;
|
|
6788
|
-
e =
|
|
6815
|
+
e = ke(e);
|
|
6789
6816
|
var s = new F(function(o, i) {
|
|
6790
6817
|
a.ready().then(function() {
|
|
6791
6818
|
t === void 0 && (t = null);
|
|
@@ -6810,7 +6837,7 @@ function Ts(e, t, n, r) {
|
|
|
6810
6837
|
if (m.code === m.QUOTA_ERR) {
|
|
6811
6838
|
if (r > 0) {
|
|
6812
6839
|
o(
|
|
6813
|
-
|
|
6840
|
+
Os.apply(a, [
|
|
6814
6841
|
e,
|
|
6815
6842
|
l,
|
|
6816
6843
|
n,
|
|
@@ -6828,12 +6855,12 @@ function Ts(e, t, n, r) {
|
|
|
6828
6855
|
});
|
|
6829
6856
|
return j(s, n), s;
|
|
6830
6857
|
}
|
|
6831
|
-
function
|
|
6832
|
-
return
|
|
6858
|
+
function ju(e, t, n) {
|
|
6859
|
+
return Os.apply(this, [e, t, n, 1]);
|
|
6833
6860
|
}
|
|
6834
|
-
function
|
|
6861
|
+
function qu(e, t) {
|
|
6835
6862
|
var n = this;
|
|
6836
|
-
e =
|
|
6863
|
+
e = ke(e);
|
|
6837
6864
|
var r = new F(function(a, s) {
|
|
6838
6865
|
n.ready().then(function() {
|
|
6839
6866
|
var o = n._dbInfo;
|
|
@@ -6855,7 +6882,7 @@ function Hu(e, t) {
|
|
|
6855
6882
|
});
|
|
6856
6883
|
return j(r, t), r;
|
|
6857
6884
|
}
|
|
6858
|
-
function
|
|
6885
|
+
function Xu(e) {
|
|
6859
6886
|
var t = this, n = new F(function(r, a) {
|
|
6860
6887
|
t.ready().then(function() {
|
|
6861
6888
|
var s = t._dbInfo;
|
|
@@ -6877,7 +6904,7 @@ function Ku(e) {
|
|
|
6877
6904
|
});
|
|
6878
6905
|
return j(n, e), n;
|
|
6879
6906
|
}
|
|
6880
|
-
function
|
|
6907
|
+
function Qu(e) {
|
|
6881
6908
|
var t = this, n = new F(function(r, a) {
|
|
6882
6909
|
t.ready().then(function() {
|
|
6883
6910
|
var s = t._dbInfo;
|
|
@@ -6900,7 +6927,7 @@ function ju(e) {
|
|
|
6900
6927
|
});
|
|
6901
6928
|
return j(n, e), n;
|
|
6902
6929
|
}
|
|
6903
|
-
function
|
|
6930
|
+
function Ju(e, t) {
|
|
6904
6931
|
var n = this, r = new F(function(a, s) {
|
|
6905
6932
|
n.ready().then(function() {
|
|
6906
6933
|
var o = n._dbInfo;
|
|
@@ -6923,7 +6950,7 @@ function qu(e, t) {
|
|
|
6923
6950
|
});
|
|
6924
6951
|
return j(r, t), r;
|
|
6925
6952
|
}
|
|
6926
|
-
function
|
|
6953
|
+
function zu(e) {
|
|
6927
6954
|
var t = this, n = new F(function(r, a) {
|
|
6928
6955
|
t.ready().then(function() {
|
|
6929
6956
|
var s = t._dbInfo;
|
|
@@ -6947,7 +6974,7 @@ function Xu(e) {
|
|
|
6947
6974
|
});
|
|
6948
6975
|
return j(n, e), n;
|
|
6949
6976
|
}
|
|
6950
|
-
function
|
|
6977
|
+
function Zu(e) {
|
|
6951
6978
|
return new F(function(t, n) {
|
|
6952
6979
|
e.transaction(
|
|
6953
6980
|
function(r) {
|
|
@@ -6973,7 +7000,7 @@ function Qu(e) {
|
|
|
6973
7000
|
);
|
|
6974
7001
|
});
|
|
6975
7002
|
}
|
|
6976
|
-
function
|
|
7003
|
+
function ef(e, t) {
|
|
6977
7004
|
t = dr.apply(this, arguments);
|
|
6978
7005
|
var n = this.config();
|
|
6979
7006
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -6983,7 +7010,7 @@ function Ju(e, t) {
|
|
|
6983
7010
|
e.name === n.name ? o = r._dbInfo.db : o = openDatabase(e.name, "", "", 0), e.storeName ? s({
|
|
6984
7011
|
db: o,
|
|
6985
7012
|
storeNames: [e.storeName]
|
|
6986
|
-
}) : s(
|
|
7013
|
+
}) : s(Zu(o));
|
|
6987
7014
|
}).then(function(s) {
|
|
6988
7015
|
return new F(function(o, i) {
|
|
6989
7016
|
s.db.transaction(
|
|
@@ -7019,21 +7046,21 @@ function Ju(e, t) {
|
|
|
7019
7046
|
});
|
|
7020
7047
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7021
7048
|
}
|
|
7022
|
-
var
|
|
7049
|
+
var tf = {
|
|
7023
7050
|
_driver: "webSQLStorage",
|
|
7024
|
-
_initStorage:
|
|
7025
|
-
_support:
|
|
7026
|
-
iterate:
|
|
7027
|
-
getItem:
|
|
7028
|
-
setItem:
|
|
7029
|
-
removeItem:
|
|
7030
|
-
clear:
|
|
7031
|
-
length:
|
|
7032
|
-
key:
|
|
7033
|
-
keys:
|
|
7034
|
-
dropInstance:
|
|
7051
|
+
_initStorage: Yu,
|
|
7052
|
+
_support: Vu(),
|
|
7053
|
+
iterate: Ku,
|
|
7054
|
+
getItem: Hu,
|
|
7055
|
+
setItem: ju,
|
|
7056
|
+
removeItem: qu,
|
|
7057
|
+
clear: Xu,
|
|
7058
|
+
length: Qu,
|
|
7059
|
+
key: Ju,
|
|
7060
|
+
keys: zu,
|
|
7061
|
+
dropInstance: ef
|
|
7035
7062
|
};
|
|
7036
|
-
function
|
|
7063
|
+
function nf() {
|
|
7037
7064
|
try {
|
|
7038
7065
|
return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
|
|
7039
7066
|
!!localStorage.setItem;
|
|
@@ -7041,11 +7068,11 @@ function Zu() {
|
|
|
7041
7068
|
return !1;
|
|
7042
7069
|
}
|
|
7043
7070
|
}
|
|
7044
|
-
function
|
|
7071
|
+
function Is(e, t) {
|
|
7045
7072
|
var n = e.name + "/";
|
|
7046
7073
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
7047
7074
|
}
|
|
7048
|
-
function
|
|
7075
|
+
function rf() {
|
|
7049
7076
|
var e = "_localforage_support_test";
|
|
7050
7077
|
try {
|
|
7051
7078
|
return localStorage.setItem(e, !0), localStorage.removeItem(e), !1;
|
|
@@ -7053,17 +7080,17 @@ function ef() {
|
|
|
7053
7080
|
return !0;
|
|
7054
7081
|
}
|
|
7055
7082
|
}
|
|
7056
|
-
function
|
|
7057
|
-
return !
|
|
7083
|
+
function af() {
|
|
7084
|
+
return !rf() || localStorage.length > 0;
|
|
7058
7085
|
}
|
|
7059
|
-
function
|
|
7086
|
+
function sf(e) {
|
|
7060
7087
|
var t = this, n = {};
|
|
7061
7088
|
if (e)
|
|
7062
7089
|
for (var r in e)
|
|
7063
7090
|
n[r] = e[r];
|
|
7064
|
-
return n.keyPrefix =
|
|
7091
|
+
return n.keyPrefix = Is(e, t._defaultConfig), af() ? (t._dbInfo = n, n.serializer = pr, F.resolve()) : F.reject();
|
|
7065
7092
|
}
|
|
7066
|
-
function
|
|
7093
|
+
function of(e) {
|
|
7067
7094
|
var t = this, n = t.ready().then(function() {
|
|
7068
7095
|
for (var r = t._dbInfo.keyPrefix, a = localStorage.length - 1; a >= 0; a--) {
|
|
7069
7096
|
var s = localStorage.key(a);
|
|
@@ -7072,16 +7099,16 @@ function rf(e) {
|
|
|
7072
7099
|
});
|
|
7073
7100
|
return j(n, e), n;
|
|
7074
7101
|
}
|
|
7075
|
-
function
|
|
7102
|
+
function lf(e, t) {
|
|
7076
7103
|
var n = this;
|
|
7077
|
-
e =
|
|
7104
|
+
e = ke(e);
|
|
7078
7105
|
var r = n.ready().then(function() {
|
|
7079
7106
|
var a = n._dbInfo, s = localStorage.getItem(a.keyPrefix + e);
|
|
7080
7107
|
return s && (s = a.serializer.deserialize(s)), s;
|
|
7081
7108
|
});
|
|
7082
7109
|
return j(r, t), r;
|
|
7083
7110
|
}
|
|
7084
|
-
function
|
|
7111
|
+
function cf(e, t) {
|
|
7085
7112
|
var n = this, r = n.ready().then(function() {
|
|
7086
7113
|
for (var a = n._dbInfo, s = a.keyPrefix, o = s.length, i = localStorage.length, l = 1, c = 0; c < i; c++) {
|
|
7087
7114
|
var f = localStorage.key(c);
|
|
@@ -7098,7 +7125,7 @@ function sf(e, t) {
|
|
|
7098
7125
|
});
|
|
7099
7126
|
return j(r, t), r;
|
|
7100
7127
|
}
|
|
7101
|
-
function
|
|
7128
|
+
function uf(e, t) {
|
|
7102
7129
|
var n = this, r = n.ready().then(function() {
|
|
7103
7130
|
var a = n._dbInfo, s;
|
|
7104
7131
|
try {
|
|
@@ -7110,7 +7137,7 @@ function of(e, t) {
|
|
|
7110
7137
|
});
|
|
7111
7138
|
return j(r, t), r;
|
|
7112
7139
|
}
|
|
7113
|
-
function
|
|
7140
|
+
function ff(e) {
|
|
7114
7141
|
var t = this, n = t.ready().then(function() {
|
|
7115
7142
|
for (var r = t._dbInfo, a = localStorage.length, s = [], o = 0; o < a; o++) {
|
|
7116
7143
|
var i = localStorage.key(o);
|
|
@@ -7120,24 +7147,24 @@ function lf(e) {
|
|
|
7120
7147
|
});
|
|
7121
7148
|
return j(n, e), n;
|
|
7122
7149
|
}
|
|
7123
|
-
function
|
|
7150
|
+
function _f(e) {
|
|
7124
7151
|
var t = this, n = t.keys().then(function(r) {
|
|
7125
7152
|
return r.length;
|
|
7126
7153
|
});
|
|
7127
7154
|
return j(n, e), n;
|
|
7128
7155
|
}
|
|
7129
|
-
function
|
|
7156
|
+
function df(e, t) {
|
|
7130
7157
|
var n = this;
|
|
7131
|
-
e =
|
|
7158
|
+
e = ke(e);
|
|
7132
7159
|
var r = n.ready().then(function() {
|
|
7133
7160
|
var a = n._dbInfo;
|
|
7134
7161
|
localStorage.removeItem(a.keyPrefix + e);
|
|
7135
7162
|
});
|
|
7136
7163
|
return j(r, t), r;
|
|
7137
7164
|
}
|
|
7138
|
-
function
|
|
7165
|
+
function mf(e, t, n) {
|
|
7139
7166
|
var r = this;
|
|
7140
|
-
e =
|
|
7167
|
+
e = ke(e);
|
|
7141
7168
|
var a = r.ready().then(function() {
|
|
7142
7169
|
t === void 0 && (t = null);
|
|
7143
7170
|
var s = t;
|
|
@@ -7157,14 +7184,14 @@ function ff(e, t, n) {
|
|
|
7157
7184
|
});
|
|
7158
7185
|
return j(a, n), a;
|
|
7159
7186
|
}
|
|
7160
|
-
function
|
|
7187
|
+
function hf(e, t) {
|
|
7161
7188
|
if (t = dr.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
7162
7189
|
var n = this.config();
|
|
7163
7190
|
e.name = e.name || n.name, e.storeName = e.storeName || n.storeName;
|
|
7164
7191
|
}
|
|
7165
7192
|
var r = this, a;
|
|
7166
7193
|
return e.name ? a = new F(function(s) {
|
|
7167
|
-
e.storeName ? s(
|
|
7194
|
+
e.storeName ? s(Is(e, r._defaultConfig)) : s(`${e.name}/`);
|
|
7168
7195
|
}).then(function(s) {
|
|
7169
7196
|
for (var o = localStorage.length - 1; o >= 0; o--) {
|
|
7170
7197
|
var i = localStorage.key(o);
|
|
@@ -7172,36 +7199,36 @@ function _f(e, t) {
|
|
|
7172
7199
|
}
|
|
7173
7200
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7174
7201
|
}
|
|
7175
|
-
var
|
|
7202
|
+
var gf = {
|
|
7176
7203
|
_driver: "localStorageWrapper",
|
|
7177
|
-
_initStorage:
|
|
7178
|
-
_support:
|
|
7179
|
-
iterate:
|
|
7180
|
-
getItem:
|
|
7181
|
-
setItem:
|
|
7182
|
-
removeItem:
|
|
7183
|
-
clear:
|
|
7184
|
-
length:
|
|
7185
|
-
key:
|
|
7186
|
-
keys:
|
|
7187
|
-
dropInstance:
|
|
7204
|
+
_initStorage: sf,
|
|
7205
|
+
_support: nf(),
|
|
7206
|
+
iterate: cf,
|
|
7207
|
+
getItem: lf,
|
|
7208
|
+
setItem: mf,
|
|
7209
|
+
removeItem: df,
|
|
7210
|
+
clear: of,
|
|
7211
|
+
length: _f,
|
|
7212
|
+
key: uf,
|
|
7213
|
+
keys: ff,
|
|
7214
|
+
dropInstance: hf
|
|
7188
7215
|
};
|
|
7189
|
-
const
|
|
7216
|
+
const pf = (e, t) => e === t || typeof e == "number" && typeof t == "number" && isNaN(e) && isNaN(t), Ef = (e, t) => {
|
|
7190
7217
|
const n = e.length;
|
|
7191
7218
|
let r = 0;
|
|
7192
7219
|
for (; r < n; ) {
|
|
7193
|
-
if (
|
|
7220
|
+
if (pf(e[r], t))
|
|
7194
7221
|
return !0;
|
|
7195
7222
|
r++;
|
|
7196
7223
|
}
|
|
7197
7224
|
return !1;
|
|
7198
|
-
},
|
|
7225
|
+
}, Cs = Array.isArray || function(e) {
|
|
7199
7226
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7200
7227
|
}, vt = {}, ga = {}, it = {
|
|
7201
|
-
INDEXEDDB:
|
|
7202
|
-
WEBSQL:
|
|
7203
|
-
LOCALSTORAGE:
|
|
7204
|
-
},
|
|
7228
|
+
INDEXEDDB: xu,
|
|
7229
|
+
WEBSQL: tf,
|
|
7230
|
+
LOCALSTORAGE: gf
|
|
7231
|
+
}, bf = [
|
|
7205
7232
|
it.INDEXEDDB._driver,
|
|
7206
7233
|
it.WEBSQL._driver,
|
|
7207
7234
|
it.LOCALSTORAGE._driver
|
|
@@ -7214,9 +7241,9 @@ const mf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7214
7241
|
"length",
|
|
7215
7242
|
"removeItem",
|
|
7216
7243
|
"setItem"
|
|
7217
|
-
].concat(Yt),
|
|
7244
|
+
].concat(Yt), Sf = {
|
|
7218
7245
|
description: "",
|
|
7219
|
-
driver:
|
|
7246
|
+
driver: bf.slice(),
|
|
7220
7247
|
name: "localforage",
|
|
7221
7248
|
// Default DB size is _JUST UNDER_ 5MB, as it's the highest size
|
|
7222
7249
|
// we can use without a prompt.
|
|
@@ -7224,7 +7251,7 @@ const mf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7224
7251
|
storeName: "keyvaluepairs",
|
|
7225
7252
|
version: 1
|
|
7226
7253
|
};
|
|
7227
|
-
function
|
|
7254
|
+
function vf(e, t) {
|
|
7228
7255
|
e[t] = function() {
|
|
7229
7256
|
const n = arguments;
|
|
7230
7257
|
return e.ready().then(function() {
|
|
@@ -7240,7 +7267,7 @@ function Ln() {
|
|
|
7240
7267
|
const t = arguments[e];
|
|
7241
7268
|
if (t)
|
|
7242
7269
|
for (let n in t)
|
|
7243
|
-
t.hasOwnProperty(n) && (
|
|
7270
|
+
t.hasOwnProperty(n) && (Cs(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
7244
7271
|
}
|
|
7245
7272
|
return arguments[0];
|
|
7246
7273
|
}
|
|
@@ -7251,7 +7278,7 @@ class Er {
|
|
|
7251
7278
|
const r = it[n], a = r._driver;
|
|
7252
7279
|
this[n] = a, vt[a] || this.defineDriver(r);
|
|
7253
7280
|
}
|
|
7254
|
-
this._defaultConfig = Ln({},
|
|
7281
|
+
this._defaultConfig = Ln({}, Sf), 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(() => {
|
|
7255
7282
|
});
|
|
7256
7283
|
}
|
|
7257
7284
|
// Set any config values for localForage; can be called anytime before
|
|
@@ -7287,7 +7314,7 @@ class Er {
|
|
|
7287
7314
|
const c = Cn.concat("_initStorage");
|
|
7288
7315
|
for (let m = 0, p = c.length; m < p; m++) {
|
|
7289
7316
|
const A = c[m];
|
|
7290
|
-
if ((!
|
|
7317
|
+
if ((!Ef(
|
|
7291
7318
|
Yt,
|
|
7292
7319
|
A
|
|
7293
7320
|
) || t[A]) && typeof t[A] != "function") {
|
|
@@ -7341,7 +7368,7 @@ class Er {
|
|
|
7341
7368
|
}
|
|
7342
7369
|
setDriver(t, n, r) {
|
|
7343
7370
|
const a = this;
|
|
7344
|
-
|
|
7371
|
+
Cs(t) || (t = [t]);
|
|
7345
7372
|
const s = this._getSupportedDrivers(t);
|
|
7346
7373
|
function o() {
|
|
7347
7374
|
a._config.driver = a.driver();
|
|
@@ -7394,14 +7421,14 @@ class Er {
|
|
|
7394
7421
|
}
|
|
7395
7422
|
_wrapLibraryMethodsWithReady() {
|
|
7396
7423
|
for (let t = 0, n = Cn.length; t < n; t++)
|
|
7397
|
-
|
|
7424
|
+
vf(this, Cn[t]);
|
|
7398
7425
|
}
|
|
7399
7426
|
createInstance(t) {
|
|
7400
7427
|
return new Er(t);
|
|
7401
7428
|
}
|
|
7402
7429
|
}
|
|
7403
7430
|
const He = new Er();
|
|
7404
|
-
class
|
|
7431
|
+
class Af {
|
|
7405
7432
|
constructor(t) {
|
|
7406
7433
|
this.db_name = t.db_name || "cvjs", He.config({
|
|
7407
7434
|
name: this.db_name,
|
|
@@ -7461,7 +7488,7 @@ class bf {
|
|
|
7461
7488
|
return cvUtils.isTypeJson(r) ? r : n;
|
|
7462
7489
|
}
|
|
7463
7490
|
}
|
|
7464
|
-
class
|
|
7491
|
+
class yf {
|
|
7465
7492
|
constructor(t) {
|
|
7466
7493
|
this.keyExpired = {}, this.keyGroup = [], this.__open_log = !1, this.__timer = {};
|
|
7467
7494
|
}
|
|
@@ -7508,15 +7535,15 @@ class Sf {
|
|
|
7508
7535
|
}
|
|
7509
7536
|
}
|
|
7510
7537
|
}
|
|
7511
|
-
const D = new
|
|
7538
|
+
const D = new bu({
|
|
7512
7539
|
prefix: ""
|
|
7513
|
-
}),
|
|
7540
|
+
}), Nf = new Af({
|
|
7514
7541
|
db_name: "ShiyunConsole"
|
|
7515
7542
|
});
|
|
7516
|
-
window.gbIdbObj =
|
|
7517
|
-
const
|
|
7518
|
-
window.gbSessObj =
|
|
7519
|
-
function
|
|
7543
|
+
window.gbIdbObj = Nf;
|
|
7544
|
+
const Tf = new yf({});
|
|
7545
|
+
window.gbSessObj = Tf;
|
|
7546
|
+
function Of(e, t, n = !1) {
|
|
7520
7547
|
return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
|
|
7521
7548
|
}
|
|
7522
7549
|
const pa = {
|
|
@@ -7560,7 +7587,7 @@ class nn {
|
|
|
7560
7587
|
}
|
|
7561
7588
|
/* 初始化 request 句柄 */
|
|
7562
7589
|
_initReqHandle() {
|
|
7563
|
-
this.requestHandle =
|
|
7590
|
+
this.requestHandle = Qs.create({
|
|
7564
7591
|
timeout: 1e4,
|
|
7565
7592
|
// request timeout
|
|
7566
7593
|
// 表示跨域请求时是否需要使用凭证;
|
|
@@ -7771,7 +7798,7 @@ class nn {
|
|
|
7771
7798
|
let a = this.canshuOpt || {};
|
|
7772
7799
|
this.canshuOpt = {};
|
|
7773
7800
|
let s = !1;
|
|
7774
|
-
if (this.encryptURL &&
|
|
7801
|
+
if (this.encryptURL && Of(n, this.encryptURL, !0) && (s = !0), this.encryptFlag && (s = !0), s) {
|
|
7775
7802
|
const o = window.navigator.userAgent;
|
|
7776
7803
|
(/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);
|
|
7777
7804
|
}
|
|
@@ -7919,13 +7946,14 @@ class nn {
|
|
|
7919
7946
|
return new Promise((c, f) => f({ message: " 请求错误 " }));
|
|
7920
7947
|
}
|
|
7921
7948
|
}
|
|
7922
|
-
const
|
|
7949
|
+
const If = {
|
|
7923
7950
|
BASE_LOAD_COMMON_API_FLAG: "/base.base_load/common/api_flag",
|
|
7924
7951
|
BASE_LOAD_COMMON_API_AUTH: "/base.base_load/common/api_auth",
|
|
7925
7952
|
BASE_LOAD_COMMON_API_CODE: "/base.base_load/common/api_code",
|
|
7926
7953
|
BASE_ACCSYS_COMMON_KEYCLIENT: "/base.account_sys/common/key_client",
|
|
7927
|
-
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting"
|
|
7928
|
-
|
|
7954
|
+
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting",
|
|
7955
|
+
BASE_SYS_COMMON_SYS_INFO: "/base.base_sys/common/system_info"
|
|
7956
|
+
}, Cf = {
|
|
7929
7957
|
BASE_LOAD_COMMON_API_FLAG: "app:true;auth:false;",
|
|
7930
7958
|
BASE_LOAD_COMMON_API_AUTH: "app:true;auth:false;",
|
|
7931
7959
|
BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
|
|
@@ -7934,7 +7962,7 @@ const Nf = {
|
|
|
7934
7962
|
};
|
|
7935
7963
|
nn.prototype.resetNetError = function(e) {
|
|
7936
7964
|
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
7937
|
-
return Te().SA_ACCOUNT_LOGOUT(),
|
|
7965
|
+
return Te().SA_ACCOUNT_LOGOUT(), Hs.alert("未经授权,请登录", "友情提示", {
|
|
7938
7966
|
// if you want to disable its autofocus
|
|
7939
7967
|
// autofocus: false,
|
|
7940
7968
|
confirmButtonText: "OK",
|
|
@@ -7943,7 +7971,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
7943
7971
|
}
|
|
7944
7972
|
}), !1;
|
|
7945
7973
|
let t = (e.status ? `[ ${e.status} ] ` : "") + (e.title || "提示");
|
|
7946
|
-
|
|
7974
|
+
Ks({
|
|
7947
7975
|
title: t,
|
|
7948
7976
|
message: e.message,
|
|
7949
7977
|
type: e.type || "info",
|
|
@@ -7964,7 +7992,7 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
7964
7992
|
}), t > 0 && (__ajaxList = __ajaxList.filter((n) => n.id !== e)), t;
|
|
7965
7993
|
};
|
|
7966
7994
|
let qe = null;
|
|
7967
|
-
function
|
|
7995
|
+
function Ls(e = {}) {
|
|
7968
7996
|
const t = Nt();
|
|
7969
7997
|
qe = new nn({
|
|
7970
7998
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
@@ -7994,22 +8022,22 @@ function Cs(e = {}) {
|
|
|
7994
8022
|
});
|
|
7995
8023
|
let n = {}, r = {};
|
|
7996
8024
|
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
7997
|
-
let a = Object.assign({},
|
|
8025
|
+
let a = Object.assign({}, If, n, t.syOpenApiFlag), s = Object.assign({}, Cf, r, t.syOpenApiAuth);
|
|
7998
8026
|
return qe.setApiFlag(a), qe.setApiAuth(s), qe;
|
|
7999
8027
|
}
|
|
8000
|
-
function
|
|
8001
|
-
return qe || (qe =
|
|
8028
|
+
function Lf() {
|
|
8029
|
+
return qe || (qe = Ls()), qe;
|
|
8002
8030
|
}
|
|
8003
8031
|
const fe = new Proxy(
|
|
8004
8032
|
{},
|
|
8005
8033
|
{
|
|
8006
8034
|
get(e, t) {
|
|
8007
|
-
const n =
|
|
8035
|
+
const n = Lf();
|
|
8008
8036
|
return typeof n[t] == "function" ? n[t].bind(n) : n[t];
|
|
8009
8037
|
}
|
|
8010
8038
|
}
|
|
8011
8039
|
);
|
|
8012
|
-
var
|
|
8040
|
+
var wf = {
|
|
8013
8041
|
methods: {
|
|
8014
8042
|
// 返回上级
|
|
8015
8043
|
jumpsBack() {
|
|
@@ -8055,26 +8083,26 @@ var If = {
|
|
|
8055
8083
|
},
|
|
8056
8084
|
// 跨应用路由跳转
|
|
8057
8085
|
jumpsQiankun(e) {
|
|
8058
|
-
|
|
8086
|
+
Zs(e);
|
|
8059
8087
|
}
|
|
8060
8088
|
}
|
|
8061
8089
|
};
|
|
8062
8090
|
function ba(e, t, n) {
|
|
8063
8091
|
const r = t.value;
|
|
8064
8092
|
if (r)
|
|
8065
|
-
|
|
8093
|
+
cs(r) || !1 || e.parentNode && e.parentNode.removeChild(e);
|
|
8066
8094
|
else
|
|
8067
8095
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
8068
8096
|
}
|
|
8069
|
-
function
|
|
8097
|
+
function Df(e, t, n) {
|
|
8070
8098
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
8071
8099
|
inserted: ba
|
|
8072
8100
|
}) : e.directive("auth", {
|
|
8073
8101
|
mounted: ba
|
|
8074
|
-
}), t.$_auth =
|
|
8102
|
+
}), t.$_auth = cs;
|
|
8075
8103
|
}
|
|
8076
8104
|
/*! Element Plus v2.9.7 */
|
|
8077
|
-
var
|
|
8105
|
+
var Rf = {
|
|
8078
8106
|
name: "zh-cn",
|
|
8079
8107
|
el: {
|
|
8080
8108
|
breadcrumb: {
|
|
@@ -8252,16 +8280,16 @@ var Lf = {
|
|
|
8252
8280
|
}
|
|
8253
8281
|
}
|
|
8254
8282
|
};
|
|
8255
|
-
function
|
|
8256
|
-
e.use(
|
|
8283
|
+
function kf(e) {
|
|
8284
|
+
e.use(Ys, {
|
|
8257
8285
|
// size: 'default',
|
|
8258
|
-
locale:
|
|
8286
|
+
locale: Rf
|
|
8259
8287
|
});
|
|
8260
|
-
for (const [t, n] of Object.entries(
|
|
8288
|
+
for (const [t, n] of Object.entries(js))
|
|
8261
8289
|
e.component("ElIcon" + t, n);
|
|
8262
8290
|
}
|
|
8263
|
-
function
|
|
8264
|
-
e.use(
|
|
8291
|
+
function Pf(e) {
|
|
8292
|
+
e.use(qs, {
|
|
8265
8293
|
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8266
8294
|
uploadImg: {
|
|
8267
8295
|
// fileSize: 5,
|
|
@@ -8290,22 +8318,22 @@ function Df(e) {
|
|
|
8290
8318
|
// }
|
|
8291
8319
|
}
|
|
8292
8320
|
});
|
|
8293
|
-
for (const [t, n] of Object.entries(
|
|
8321
|
+
for (const [t, n] of Object.entries(Xs))
|
|
8294
8322
|
e.component("cvSvg" + t, n);
|
|
8295
8323
|
}
|
|
8296
|
-
async function
|
|
8297
|
-
|
|
8324
|
+
async function Kf(e, t) {
|
|
8325
|
+
Js(t), Ls(e), kt().init(), Be().init(), await fr().init(), await Te().init();
|
|
8298
8326
|
}
|
|
8299
|
-
async function
|
|
8327
|
+
async function jf(e, t, n, r, a = "", s = null) {
|
|
8300
8328
|
Zt().init(r), en().init(n);
|
|
8301
8329
|
let o = e.config.globalProperties;
|
|
8302
8330
|
o.$onLaunched = new Promise((l) => {
|
|
8303
8331
|
o.$isResolve = l;
|
|
8304
|
-
}), o.$request = fe, o.$cache = D,
|
|
8305
|
-
let i =
|
|
8306
|
-
|
|
8332
|
+
}), o.$request = fe, o.$cache = D, kf(e), Pf(e), Df(e, o), e.mixin(nc()), e.mixin(wf), await Ff(t, r, a), e.use(as);
|
|
8333
|
+
let i = kt().SA_LANGUAGE_GET();
|
|
8334
|
+
Ul(i, s), window.$t = Ke.t;
|
|
8307
8335
|
}
|
|
8308
|
-
async function
|
|
8336
|
+
async function Ff(e, t, n) {
|
|
8309
8337
|
const r = Tt(), a = Te(), s = Zt(), o = en();
|
|
8310
8338
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8311
8339
|
let i = Nt().syProductSign || "";
|
|
@@ -8337,30 +8365,30 @@ async function Rf(e, t, n) {
|
|
|
8337
8365
|
}
|
|
8338
8366
|
});
|
|
8339
8367
|
}
|
|
8340
|
-
async function
|
|
8341
|
-
me.__POWERED_BY_QIANKUN__ ?
|
|
8368
|
+
async function qf(e, t, n) {
|
|
8369
|
+
me.__POWERED_BY_QIANKUN__ ? to(e, t, n) : t();
|
|
8342
8370
|
}
|
|
8343
8371
|
export {
|
|
8344
8372
|
fe as H,
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8373
|
+
Zc as S,
|
|
8374
|
+
Re as _,
|
|
8375
|
+
Be as a,
|
|
8348
8376
|
Te as b,
|
|
8349
8377
|
fr as c,
|
|
8350
8378
|
Nt as d,
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8379
|
+
Yf as e,
|
|
8380
|
+
uc as f,
|
|
8381
|
+
Hf as g,
|
|
8354
8382
|
Tt as h,
|
|
8355
|
-
|
|
8383
|
+
is as i,
|
|
8356
8384
|
Zt as j,
|
|
8357
8385
|
en as k,
|
|
8358
8386
|
D as l,
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8387
|
+
Ls as m,
|
|
8388
|
+
Kf as n,
|
|
8389
|
+
jf as o,
|
|
8390
|
+
qf as p,
|
|
8363
8391
|
me as q,
|
|
8364
|
-
|
|
8365
|
-
|
|
8392
|
+
Js as s,
|
|
8393
|
+
kt as u
|
|
8366
8394
|
};
|