smarteye-e-components 0.0.57 → 0.0.59
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/smarteye-e-components.js +9 -9
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +1836 -1572
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/multi-video-area-layout-switch/model/index.d.ts +2 -0
- package/lib/components/multi-video-area-layout-switch/utils/index.d.ts +4 -0
- package/lib/components/video-areas-layout-show/index.vue.d.ts +1 -5
- package/lib/locales/index.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as Ve, getCurrentInstance as dt, effectScope as Po, inject as En, onMounted as ko, onUnmounted as $o, ref as P, computed as G, watch as Ue, Fragment as me, isRef as Ro, createVNode as ee, Text as Fo, defineComponent as ie, openBlock as C, createElementBlock as k, renderSlot as le, createElementVNode as T, toDisplayString as ne, createCommentVNode as Ie, normalizeStyle as Le, renderList as Pe, resolveComponent as te, withDirectives as xe, normalizeClass as Ge, withCtx as ue, createBlock as _t, vShow as yn, provide as Mo, vModelText as St, createTextVNode as Be } from "vue";
|
|
2
2
|
/*!
|
|
3
3
|
* shared v9.2.2
|
|
4
4
|
* (c) 2022 kazuya kawaguchi
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
8
|
-
let X,
|
|
7
|
+
const se = typeof window < "u";
|
|
8
|
+
let X, _e;
|
|
9
9
|
if (process.env.NODE_ENV !== "production") {
|
|
10
|
-
const e =
|
|
11
|
-
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (X = (t) => e.mark(t),
|
|
12
|
-
e.measure(t, n,
|
|
10
|
+
const e = se && window.performance;
|
|
11
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (X = (t) => e.mark(t), _e = (t, n, o) => {
|
|
12
|
+
e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
15
|
+
const Vo = /\{([0-9a-zA-Z]+)\}/g;
|
|
16
|
+
function mt(e, ...t) {
|
|
17
|
+
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Vo, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const Uo = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", re = (e) => Uo ? Symbol(e) : e, xo = (e, t, n) => Go({ l: e, k: t, s: n }), Go = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), U = (e) => typeof e == "number" && isFinite(e), Wo = (e) => ht(e) === "[object Date]", We = (e) => ht(e) === "[object RegExp]", He = (e) => I(e) && Object.keys(e).length === 0;
|
|
20
|
+
function Oe(e, t) {
|
|
21
21
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
function
|
|
23
|
+
const B = Object.assign;
|
|
24
|
+
let At;
|
|
25
|
+
const gt = () => At || (At = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
26
|
+
function Dt(e) {
|
|
27
27
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
return
|
|
32
|
-
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
for (let
|
|
39
|
-
if (
|
|
40
|
-
for (let
|
|
41
|
-
if (
|
|
29
|
+
const jo = Object.prototype.hasOwnProperty;
|
|
30
|
+
function pt(e, t) {
|
|
31
|
+
return jo.call(e, t);
|
|
32
|
+
}
|
|
33
|
+
const R = Array.isArray, V = (e) => typeof e == "function", E = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", bn = Object.prototype.toString, ht = (e) => bn.call(e), I = (e) => ht(e) === "[object Object]", Bo = (e) => e == null ? "" : R(e) || I(e) && e.toString === bn ? JSON.stringify(e, null, 2) : String(e), Ct = 2;
|
|
34
|
+
function Ho(e, t = 0, n = e.length) {
|
|
35
|
+
const o = e.split(/\r?\n/);
|
|
36
|
+
let s = 0;
|
|
37
|
+
const l = [];
|
|
38
|
+
for (let r = 0; r < o.length; r++)
|
|
39
|
+
if (s += o[r].length + 1, s >= t) {
|
|
40
|
+
for (let a = r - Ct; a <= r + Ct || n > s; a++) {
|
|
41
|
+
if (a < 0 || a >= o.length)
|
|
42
42
|
continue;
|
|
43
|
-
const i =
|
|
44
|
-
|
|
45
|
-
const c =
|
|
46
|
-
if (
|
|
47
|
-
const u = t - (
|
|
48
|
-
|
|
49
|
-
} else if (
|
|
50
|
-
if (n >
|
|
51
|
-
const u = Math.max(Math.min(n -
|
|
52
|
-
|
|
43
|
+
const i = a + 1;
|
|
44
|
+
l.push(`${i}${" ".repeat(3 - String(i).length)}| ${o[a]}`);
|
|
45
|
+
const c = o[a].length;
|
|
46
|
+
if (a === r) {
|
|
47
|
+
const u = t - (s - c) + 1, _ = Math.max(1, n > s ? c - u : n - t);
|
|
48
|
+
l.push(" | " + " ".repeat(u) + "^".repeat(_));
|
|
49
|
+
} else if (a > r) {
|
|
50
|
+
if (n > s) {
|
|
51
|
+
const u = Math.max(Math.min(n - s, c), 1);
|
|
52
|
+
l.push(" | " + "^".repeat(u));
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
s += c + 1;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return l.join(`
|
|
60
60
|
`);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function On() {
|
|
63
63
|
const e = /* @__PURE__ */ new Map();
|
|
64
64
|
return {
|
|
65
65
|
events: e,
|
|
66
|
-
on(n,
|
|
67
|
-
const
|
|
68
|
-
|
|
66
|
+
on(n, o) {
|
|
67
|
+
const s = e.get(n);
|
|
68
|
+
s && s.push(o) || e.set(n, [o]);
|
|
69
69
|
},
|
|
70
|
-
off(n,
|
|
71
|
-
const
|
|
72
|
-
|
|
70
|
+
off(n, o) {
|
|
71
|
+
const s = e.get(n);
|
|
72
|
+
s && s.splice(s.indexOf(o) >>> 0, 1);
|
|
73
73
|
},
|
|
74
|
-
emit(n,
|
|
75
|
-
(e.get(n) || []).slice().map((
|
|
74
|
+
emit(n, o) {
|
|
75
|
+
(e.get(n) || []).slice().map((s) => s(o)), (e.get("*") || []).slice().map((s) => s(n, o));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -81,7 +81,7 @@ function mn() {
|
|
|
81
81
|
* (c) 2022 kazuya kawaguchi
|
|
82
82
|
* Released under the MIT License.
|
|
83
83
|
*/
|
|
84
|
-
const
|
|
84
|
+
const W = {
|
|
85
85
|
EXPECTED_TOKEN: 1,
|
|
86
86
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
87
87
|
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
@@ -97,32 +97,32 @@ const G = {
|
|
|
97
97
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
98
98
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
99
99
|
__EXTEND_POINT__: 15
|
|
100
|
-
},
|
|
101
|
-
[
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
100
|
+
}, zo = {
|
|
101
|
+
[W.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
102
|
+
[W.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
103
|
+
[W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
104
|
+
[W.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
105
|
+
[W.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
106
|
+
[W.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
107
|
+
[W.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
108
|
+
[W.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
109
|
+
[W.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
110
|
+
[W.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
111
|
+
[W.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
112
|
+
[W.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
113
|
+
[W.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
114
|
+
[W.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
const { domain:
|
|
118
|
-
return
|
|
116
|
+
function Nn(e, t, n = {}) {
|
|
117
|
+
const { domain: o, messages: s, args: l } = n, r = process.env.NODE_ENV !== "production" ? mt((s || zo)[e] || "", ...l || []) : e, a = new SyntaxError(String(r));
|
|
118
|
+
return a.code = e, t && (a.location = t), a.domain = o, a;
|
|
119
119
|
}
|
|
120
120
|
/*!
|
|
121
121
|
* devtools-if v9.2.2
|
|
122
122
|
* (c) 2022 kazuya kawaguchi
|
|
123
123
|
* Released under the MIT License.
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const Tn = {
|
|
126
126
|
I18nInit: "i18n:init",
|
|
127
127
|
FunctionTranslate: "function:translate"
|
|
128
128
|
};
|
|
@@ -131,25 +131,25 @@ const pn = {
|
|
|
131
131
|
* (c) 2022 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
133
|
*/
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const fe = [];
|
|
135
|
+
fe[0] = {
|
|
136
136
|
w: [0],
|
|
137
137
|
i: [3, 0],
|
|
138
138
|
["["]: [4],
|
|
139
139
|
o: [7]
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
fe[1] = {
|
|
142
142
|
w: [1],
|
|
143
143
|
["."]: [2],
|
|
144
144
|
["["]: [4],
|
|
145
145
|
o: [7]
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
fe[2] = {
|
|
148
148
|
w: [2],
|
|
149
149
|
i: [3, 0],
|
|
150
150
|
[0]: [3, 0]
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
fe[3] = {
|
|
153
153
|
i: [3, 0],
|
|
154
154
|
[0]: [3, 0],
|
|
155
155
|
w: [1, 1],
|
|
@@ -157,7 +157,7 @@ le[3] = {
|
|
|
157
157
|
["["]: [4, 1],
|
|
158
158
|
o: [7, 1]
|
|
159
159
|
};
|
|
160
|
-
|
|
160
|
+
fe[4] = {
|
|
161
161
|
["'"]: [5, 0],
|
|
162
162
|
['"']: [6, 0],
|
|
163
163
|
["["]: [
|
|
@@ -168,25 +168,25 @@ le[4] = {
|
|
|
168
168
|
o: 8,
|
|
169
169
|
l: [4, 0]
|
|
170
170
|
};
|
|
171
|
-
|
|
171
|
+
fe[5] = {
|
|
172
172
|
["'"]: [4, 0],
|
|
173
173
|
o: 8,
|
|
174
174
|
l: [5, 0]
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
fe[6] = {
|
|
177
177
|
['"']: [4, 0],
|
|
178
178
|
o: 8,
|
|
179
179
|
l: [6, 0]
|
|
180
180
|
};
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
return
|
|
181
|
+
const Yo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
182
|
+
function Ko(e) {
|
|
183
|
+
return Yo.test(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Xo(e) {
|
|
186
186
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
187
187
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Jo(e) {
|
|
190
190
|
if (e == null)
|
|
191
191
|
return "o";
|
|
192
192
|
switch (e.charCodeAt(0)) {
|
|
@@ -211,114 +211,114 @@ function Ho(e) {
|
|
|
211
211
|
}
|
|
212
212
|
return "i";
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Qo(e) {
|
|
215
215
|
const t = e.trim();
|
|
216
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
216
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ko(t) ? Xo(t) : "*" + t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function qo(e) {
|
|
219
219
|
const t = [];
|
|
220
|
-
let n = -1,
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
if (
|
|
230
|
-
|
|
220
|
+
let n = -1, o = 0, s = 0, l, r, a, i, c, u, _;
|
|
221
|
+
const d = [];
|
|
222
|
+
d[0] = () => {
|
|
223
|
+
r === void 0 ? r = a : r += a;
|
|
224
|
+
}, d[1] = () => {
|
|
225
|
+
r !== void 0 && (t.push(r), r = void 0);
|
|
226
|
+
}, d[2] = () => {
|
|
227
|
+
d[0](), s++;
|
|
228
|
+
}, d[3] = () => {
|
|
229
|
+
if (s > 0)
|
|
230
|
+
s--, o = 4, d[0]();
|
|
231
231
|
else {
|
|
232
|
-
if (
|
|
232
|
+
if (s = 0, r === void 0 || (r = Qo(r), r === !1))
|
|
233
233
|
return !1;
|
|
234
|
-
|
|
234
|
+
d[1]();
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
function g() {
|
|
238
|
-
const
|
|
239
|
-
if (
|
|
240
|
-
return n++,
|
|
238
|
+
const b = e[n + 1];
|
|
239
|
+
if (o === 5 && b === "'" || o === 6 && b === '"')
|
|
240
|
+
return n++, a = "\\" + b, d[0](), !0;
|
|
241
241
|
}
|
|
242
|
-
for (;
|
|
243
|
-
if (n++,
|
|
244
|
-
if (i =
|
|
242
|
+
for (; o !== null; )
|
|
243
|
+
if (n++, l = e[n], !(l === "\\" && g())) {
|
|
244
|
+
if (i = Jo(l), _ = fe[o], c = _[i] || _.l || 8, c === 8 || (o = c[0], c[1] !== void 0 && (u = d[c[1]], u && (a = l, u() === !1))))
|
|
245
245
|
return;
|
|
246
|
-
if (
|
|
246
|
+
if (o === 7)
|
|
247
247
|
return t;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
250
|
+
const Pt = /* @__PURE__ */ new Map();
|
|
251
|
+
function Zo(e, t) {
|
|
252
252
|
return S(e) ? e[t] : null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function es(e, t) {
|
|
255
255
|
if (!S(e))
|
|
256
256
|
return null;
|
|
257
|
-
let n =
|
|
258
|
-
if (n || (n =
|
|
257
|
+
let n = Pt.get(t);
|
|
258
|
+
if (n || (n = qo(t), n && Pt.set(t, n)), !n)
|
|
259
259
|
return null;
|
|
260
|
-
const
|
|
261
|
-
let
|
|
262
|
-
for (;
|
|
263
|
-
const
|
|
264
|
-
if (
|
|
260
|
+
const o = n.length;
|
|
261
|
+
let s = e, l = 0;
|
|
262
|
+
for (; l < o; ) {
|
|
263
|
+
const r = s[n[l]];
|
|
264
|
+
if (r === void 0)
|
|
265
265
|
return null;
|
|
266
|
-
|
|
266
|
+
s = r, l++;
|
|
267
267
|
}
|
|
268
|
-
return
|
|
268
|
+
return s;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
270
|
+
const ts = (e) => e, ns = (e) => "", os = "text", ss = (e) => e.length === 0 ? "" : e.join(""), rs = Bo;
|
|
271
|
+
function kt(e, t) {
|
|
272
272
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const t =
|
|
276
|
-
return e.named && (
|
|
274
|
+
function ls(e) {
|
|
275
|
+
const t = U(e.pluralIndex) ? e.pluralIndex : -1;
|
|
276
|
+
return e.named && (U(e.named.count) || U(e.named.n)) ? U(e.named.count) ? e.named.count : U(e.named.n) ? e.named.n : t : t;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function as(e, t) {
|
|
279
279
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
const t = e.locale, n =
|
|
283
|
-
|
|
284
|
-
const c = (
|
|
285
|
-
function u(
|
|
286
|
-
const
|
|
287
|
-
return
|
|
281
|
+
function is(e = {}) {
|
|
282
|
+
const t = e.locale, n = ls(e), o = S(e.pluralRules) && E(t) && V(e.pluralRules[t]) ? e.pluralRules[t] : kt, s = S(e.pluralRules) && E(t) && V(e.pluralRules[t]) ? kt : void 0, l = (y) => y[o(n, y.length, s)], r = e.list || [], a = (y) => r[y], i = e.named || {};
|
|
283
|
+
U(e.pluralIndex) && as(n, i);
|
|
284
|
+
const c = (y) => i[y];
|
|
285
|
+
function u(y) {
|
|
286
|
+
const O = V(e.messages) ? e.messages(y) : S(e.messages) ? e.messages[y] : !1;
|
|
287
|
+
return O || (e.parent ? e.parent.message(y) : ns);
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
list:
|
|
289
|
+
const _ = (y) => e.modifiers ? e.modifiers[y] : ts, d = I(e.processor) && V(e.processor.normalize) ? e.processor.normalize : ss, g = I(e.processor) && V(e.processor.interpolate) ? e.processor.interpolate : rs, b = I(e.processor) && E(e.processor.type) ? e.processor.type : os, h = {
|
|
290
|
+
list: a,
|
|
291
291
|
named: c,
|
|
292
|
-
plural:
|
|
293
|
-
linked: (
|
|
294
|
-
const [L,
|
|
295
|
-
let v = "text",
|
|
296
|
-
|
|
297
|
-
let
|
|
298
|
-
return v === "vnode" &&
|
|
292
|
+
plural: l,
|
|
293
|
+
linked: (y, ...O) => {
|
|
294
|
+
const [L, N] = O;
|
|
295
|
+
let v = "text", A = "";
|
|
296
|
+
O.length === 1 ? S(L) ? (A = L.modifier || A, v = L.type || v) : E(L) && (A = L || A) : O.length === 2 && (E(L) && (A = L || A), E(N) && (v = N || v));
|
|
297
|
+
let w = u(y)(h);
|
|
298
|
+
return v === "vnode" && R(w) && A && (w = w[0]), A ? _(A)(w, v) : w;
|
|
299
299
|
},
|
|
300
300
|
message: u,
|
|
301
|
-
type:
|
|
301
|
+
type: b,
|
|
302
302
|
interpolate: g,
|
|
303
|
-
normalize:
|
|
303
|
+
normalize: d
|
|
304
304
|
};
|
|
305
305
|
return h;
|
|
306
306
|
}
|
|
307
|
-
let
|
|
308
|
-
function
|
|
309
|
-
|
|
307
|
+
let Ae = null;
|
|
308
|
+
function cs(e) {
|
|
309
|
+
Ae = e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
311
|
+
function us(e, t, n) {
|
|
312
|
+
Ae && Ae.emit(Tn.I18nInit, {
|
|
313
313
|
timestamp: Date.now(),
|
|
314
314
|
i18n: e,
|
|
315
315
|
version: t,
|
|
316
316
|
meta: n
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
const
|
|
320
|
-
function
|
|
321
|
-
return (t) =>
|
|
319
|
+
const fs = /* @__PURE__ */ ds(Tn.FunctionTranslate);
|
|
320
|
+
function ds(e) {
|
|
321
|
+
return (t) => Ae && Ae.emit(e, t);
|
|
322
322
|
}
|
|
323
323
|
const K = {
|
|
324
324
|
NOT_FOUND_KEY: 1,
|
|
@@ -328,7 +328,7 @@ const K = {
|
|
|
328
328
|
CANNOT_FORMAT_DATE: 5,
|
|
329
329
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
330
330
|
__EXTEND_POINT__: 7
|
|
331
|
-
},
|
|
331
|
+
}, _s = {
|
|
332
332
|
[K.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
333
333
|
[K.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
334
334
|
[K.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -336,362 +336,362 @@ const K = {
|
|
|
336
336
|
[K.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
337
337
|
[K.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
338
338
|
};
|
|
339
|
-
function
|
|
340
|
-
return
|
|
339
|
+
function be(e, ...t) {
|
|
340
|
+
return mt(_s[e], ...t);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function ms(e, t, n) {
|
|
343
343
|
return [.../* @__PURE__ */ new Set([
|
|
344
344
|
n,
|
|
345
|
-
...
|
|
345
|
+
...R(t) ? t : S(t) ? Object.keys(t) : E(t) ? [t] : [n]
|
|
346
346
|
])];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
let
|
|
352
|
-
if (!
|
|
353
|
-
|
|
354
|
-
let
|
|
355
|
-
for (;
|
|
356
|
-
|
|
357
|
-
const
|
|
358
|
-
|
|
348
|
+
function In(e, t, n) {
|
|
349
|
+
const o = E(n) ? n : vt, s = e;
|
|
350
|
+
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
351
|
+
let l = s.__localeChainCache.get(o);
|
|
352
|
+
if (!l) {
|
|
353
|
+
l = [];
|
|
354
|
+
let r = [n];
|
|
355
|
+
for (; R(r); )
|
|
356
|
+
r = $t(l, r, t);
|
|
357
|
+
const a = R(t) || !I(t) ? t : t.default ? t.default : null;
|
|
358
|
+
r = E(a) ? [a] : a, R(r) && $t(l, r, !1), s.__localeChainCache.set(o, l);
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return l;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
let
|
|
364
|
-
for (let
|
|
365
|
-
const
|
|
366
|
-
E(
|
|
362
|
+
function $t(e, t, n) {
|
|
363
|
+
let o = !0;
|
|
364
|
+
for (let s = 0; s < t.length && $(o); s++) {
|
|
365
|
+
const l = t[s];
|
|
366
|
+
E(l) && (o = gs(e, t[s], n));
|
|
367
367
|
}
|
|
368
|
-
return
|
|
368
|
+
return o;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
let
|
|
372
|
-
const
|
|
370
|
+
function gs(e, t, n) {
|
|
371
|
+
let o;
|
|
372
|
+
const s = t.split("-");
|
|
373
373
|
do {
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
} while (
|
|
377
|
-
return
|
|
374
|
+
const l = s.join("-");
|
|
375
|
+
o = ps(e, l, n), s.splice(-1, 1);
|
|
376
|
+
} while (s.length && o === !0);
|
|
377
|
+
return o;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
let
|
|
381
|
-
if (!e.includes(t) && (
|
|
382
|
-
|
|
383
|
-
const
|
|
384
|
-
e.push(
|
|
379
|
+
function ps(e, t, n) {
|
|
380
|
+
let o = !1;
|
|
381
|
+
if (!e.includes(t) && (o = !0, t)) {
|
|
382
|
+
o = t[t.length - 1] !== "!";
|
|
383
|
+
const s = t.replace(/!/g, "");
|
|
384
|
+
e.push(s), (R(n) || I(n)) && n[s] && (o = n[s]);
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return o;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const hs = "9.2.2", ze = -1, vt = "en-US", je = "", Rt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
389
|
+
function vs() {
|
|
390
390
|
return {
|
|
391
391
|
upper: (e, t) => t === "text" && E(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
392
392
|
lower: (e, t) => t === "text" && E(e) ? e.toLowerCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
393
|
-
capitalize: (e, t) => t === "text" && E(e) ?
|
|
393
|
+
capitalize: (e, t) => t === "text" && E(e) ? Rt(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? Rt(e.children) : e
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
let
|
|
397
|
-
function
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
let
|
|
401
|
-
function
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
let
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
},
|
|
408
|
-
let
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
let
|
|
413
|
-
function
|
|
414
|
-
const t = E(e.version) ? e.version :
|
|
415
|
-
|
|
396
|
+
let Es, Ln;
|
|
397
|
+
function ys(e) {
|
|
398
|
+
Ln = e;
|
|
399
|
+
}
|
|
400
|
+
let wn;
|
|
401
|
+
function bs(e) {
|
|
402
|
+
wn = e;
|
|
403
|
+
}
|
|
404
|
+
let Sn = null;
|
|
405
|
+
const Ft = (e) => {
|
|
406
|
+
Sn = e;
|
|
407
|
+
}, Os = () => Sn;
|
|
408
|
+
let An = null;
|
|
409
|
+
const Mt = (e) => {
|
|
410
|
+
An = e;
|
|
411
|
+
}, Ns = () => An;
|
|
412
|
+
let Vt = 0;
|
|
413
|
+
function Ts(e = {}) {
|
|
414
|
+
const t = E(e.version) ? e.version : hs, n = E(e.locale) ? e.locale : vt, o = R(e.fallbackLocale) || I(e.fallbackLocale) || E(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = I(e.messages) ? e.messages : { [n]: {} }, l = I(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, r = I(e.numberFormats) ? e.numberFormats : { [n]: {} }, a = B({}, e.modifiers || {}, vs()), i = e.pluralRules || {}, c = V(e.missing) ? e.missing : null, u = $(e.missingWarn) || We(e.missingWarn) ? e.missingWarn : !0, _ = $(e.fallbackWarn) || We(e.fallbackWarn) ? e.fallbackWarn : !0, d = !!e.fallbackFormat, g = !!e.unresolving, b = V(e.postTranslation) ? e.postTranslation : null, p = I(e.processor) ? e.processor : null, h = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, O = V(e.messageCompiler) ? e.messageCompiler : Es, L = V(e.messageResolver) ? e.messageResolver : Ln || Zo, N = V(e.localeFallbacker) ? e.localeFallbacker : wn || ms, v = S(e.fallbackContext) ? e.fallbackContext : void 0, A = V(e.onWarn) ? e.onWarn : Oe, w = e, x = S(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = S(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), Q = S(w.__meta) ? w.__meta : {};
|
|
415
|
+
Vt++;
|
|
416
416
|
const q = {
|
|
417
417
|
version: t,
|
|
418
|
-
cid:
|
|
418
|
+
cid: Vt,
|
|
419
419
|
locale: n,
|
|
420
|
-
fallbackLocale:
|
|
421
|
-
messages:
|
|
422
|
-
modifiers:
|
|
420
|
+
fallbackLocale: o,
|
|
421
|
+
messages: s,
|
|
422
|
+
modifiers: a,
|
|
423
423
|
pluralRules: i,
|
|
424
424
|
missing: c,
|
|
425
425
|
missingWarn: u,
|
|
426
|
-
fallbackWarn:
|
|
427
|
-
fallbackFormat:
|
|
426
|
+
fallbackWarn: _,
|
|
427
|
+
fallbackFormat: d,
|
|
428
428
|
unresolving: g,
|
|
429
|
-
postTranslation:
|
|
429
|
+
postTranslation: b,
|
|
430
430
|
processor: p,
|
|
431
431
|
warnHtmlMessage: h,
|
|
432
|
-
escapeParameter:
|
|
433
|
-
messageCompiler:
|
|
432
|
+
escapeParameter: y,
|
|
433
|
+
messageCompiler: O,
|
|
434
434
|
messageResolver: L,
|
|
435
|
-
localeFallbacker:
|
|
435
|
+
localeFallbacker: N,
|
|
436
436
|
fallbackContext: v,
|
|
437
|
-
onWarn:
|
|
437
|
+
onWarn: A,
|
|
438
438
|
__meta: Q
|
|
439
439
|
};
|
|
440
|
-
return q.datetimeFormats =
|
|
440
|
+
return q.datetimeFormats = l, q.numberFormats = r, q.__datetimeFormatters = x, q.__numberFormatters = Y, process.env.NODE_ENV !== "production" && (q.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && us(q, t, Q), q;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ye(e, t) {
|
|
443
443
|
return e instanceof RegExp ? e.test(t) : e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Dn(e, t) {
|
|
446
446
|
return e instanceof RegExp ? e.test(t) : e;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
const { missing:
|
|
448
|
+
function Et(e, t, n, o, s) {
|
|
449
|
+
const { missing: l, onWarn: r } = e;
|
|
450
450
|
if (process.env.NODE_ENV !== "production") {
|
|
451
|
-
const
|
|
452
|
-
|
|
451
|
+
const a = e.__v_emitter;
|
|
452
|
+
a && a.emit("missing", {
|
|
453
453
|
locale: n,
|
|
454
454
|
key: t,
|
|
455
|
-
type:
|
|
456
|
-
groupId: `${
|
|
455
|
+
type: s,
|
|
456
|
+
groupId: `${s}:${t}`
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
const
|
|
461
|
-
return E(
|
|
459
|
+
if (l !== null) {
|
|
460
|
+
const a = l(e, n, t, s);
|
|
461
|
+
return E(a) ? a : t;
|
|
462
462
|
} else
|
|
463
|
-
return process.env.NODE_ENV !== "production" &&
|
|
464
|
-
}
|
|
465
|
-
function
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
let
|
|
470
|
-
const
|
|
471
|
-
INVALID_ARGUMENT:
|
|
472
|
-
INVALID_DATE_ARGUMENT:
|
|
473
|
-
INVALID_ISO_DATE_ARGUMENT:
|
|
474
|
-
__EXTEND_POINT__:
|
|
463
|
+
return process.env.NODE_ENV !== "production" && Dn(o, t) && r(be(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
464
|
+
}
|
|
465
|
+
function Ne(e, t, n) {
|
|
466
|
+
const o = e;
|
|
467
|
+
o.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
468
|
+
}
|
|
469
|
+
let Cn = W.__EXTEND_POINT__;
|
|
470
|
+
const Qe = () => ++Cn, ae = {
|
|
471
|
+
INVALID_ARGUMENT: Cn,
|
|
472
|
+
INVALID_DATE_ARGUMENT: Qe(),
|
|
473
|
+
INVALID_ISO_DATE_ARGUMENT: Qe(),
|
|
474
|
+
__EXTEND_POINT__: Qe()
|
|
475
475
|
};
|
|
476
|
-
function
|
|
477
|
-
return
|
|
478
|
-
}
|
|
479
|
-
const
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
},
|
|
484
|
-
function
|
|
485
|
-
const { fallbackFormat: n, postTranslation:
|
|
486
|
-
|
|
487
|
-
let [
|
|
476
|
+
function ye(e) {
|
|
477
|
+
return Nn(e, null, process.env.NODE_ENV !== "production" ? { messages: Is } : void 0);
|
|
478
|
+
}
|
|
479
|
+
const Is = {
|
|
480
|
+
[ae.INVALID_ARGUMENT]: "Invalid arguments",
|
|
481
|
+
[ae.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
482
|
+
[ae.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
483
|
+
}, Ut = () => "", oe = (e) => V(e);
|
|
484
|
+
function xt(e, ...t) {
|
|
485
|
+
const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: l, fallbackLocale: r, messages: a } = e, [i, c] = et(...t), u = $(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, d = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, b = E(c.default) || $(c.default) ? $(c.default) ? l ? i : () => i : c.default : n ? l ? i : () => i : "", p = n || b !== "", h = E(c.locale) ? c.locale : e.locale;
|
|
486
|
+
d && Ls(c);
|
|
487
|
+
let [y, O, L] = g ? [
|
|
488
488
|
i,
|
|
489
489
|
h,
|
|
490
|
-
|
|
491
|
-
] :
|
|
492
|
-
if (!g && !(E(
|
|
493
|
-
return
|
|
494
|
-
if (process.env.NODE_ENV !== "production" && E(
|
|
495
|
-
return
|
|
496
|
-
let
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
if (
|
|
501
|
-
return
|
|
502
|
-
const Y =
|
|
490
|
+
a[h] || {}
|
|
491
|
+
] : Pn(e, i, h, r, _, u), N = y, v = i;
|
|
492
|
+
if (!g && !(E(N) || oe(N)) && p && (N = b, v = N), !g && (!(E(N) || oe(N)) || !E(O)))
|
|
493
|
+
return s ? ze : i;
|
|
494
|
+
if (process.env.NODE_ENV !== "production" && E(N) && e.messageCompiler == null)
|
|
495
|
+
return Oe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
496
|
+
let A = !1;
|
|
497
|
+
const w = () => {
|
|
498
|
+
A = !0;
|
|
499
|
+
}, x = oe(N) ? N : kn(e, i, O, N, v, w);
|
|
500
|
+
if (A)
|
|
501
|
+
return N;
|
|
502
|
+
const Y = As(e, O, L, c), Q = is(Y), q = ws(e, x, Q), ke = o ? o(q, i) : q;
|
|
503
503
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
504
|
-
const
|
|
504
|
+
const $e = {
|
|
505
505
|
timestamp: Date.now(),
|
|
506
|
-
key: E(i) ? i :
|
|
507
|
-
locale:
|
|
508
|
-
format: E(
|
|
509
|
-
message:
|
|
506
|
+
key: E(i) ? i : oe(N) ? N.key : "",
|
|
507
|
+
locale: O || (oe(N) ? N.locale : ""),
|
|
508
|
+
format: E(N) ? N : oe(N) ? N.source : "",
|
|
509
|
+
message: ke
|
|
510
510
|
};
|
|
511
|
-
|
|
511
|
+
$e.meta = B({}, e.__meta, Os() || {}), fs($e);
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return ke;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
|
|
517
|
-
E(e.named[t]) && (e.named[t] =
|
|
515
|
+
function Ls(e) {
|
|
516
|
+
R(e.list) ? e.list = e.list.map((t) => E(t) ? Dt(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
|
|
517
|
+
E(e.named[t]) && (e.named[t] = Dt(e.named[t]));
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
const { messages:
|
|
522
|
-
let
|
|
520
|
+
function Pn(e, t, n, o, s, l) {
|
|
521
|
+
const { messages: r, onWarn: a, messageResolver: i, localeFallbacker: c } = e, u = c(e, o, n);
|
|
522
|
+
let _ = {}, d, g = null, b = n, p = null;
|
|
523
523
|
const h = "translate";
|
|
524
|
-
for (let
|
|
525
|
-
if (
|
|
524
|
+
for (let y = 0; y < u.length; y++) {
|
|
525
|
+
if (d = p = u[y], process.env.NODE_ENV !== "production" && n !== d && Ye(s, t) && a(be(K.FALLBACK_TO_TRANSLATE, {
|
|
526
526
|
key: t,
|
|
527
|
-
target:
|
|
528
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
529
|
-
const
|
|
530
|
-
|
|
527
|
+
target: d
|
|
528
|
+
})), process.env.NODE_ENV !== "production" && n !== d) {
|
|
529
|
+
const A = e.__v_emitter;
|
|
530
|
+
A && A.emit("fallback", {
|
|
531
531
|
type: h,
|
|
532
532
|
key: t,
|
|
533
|
-
from:
|
|
533
|
+
from: b,
|
|
534
534
|
to: p,
|
|
535
535
|
groupId: `${h}:${t}`
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
|
|
539
|
-
let
|
|
540
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
541
|
-
const
|
|
542
|
-
|
|
538
|
+
_ = r[d] || {};
|
|
539
|
+
let O = null, L, N;
|
|
540
|
+
if (process.env.NODE_ENV !== "production" && se && (O = window.performance.now(), L = "intlify-message-resolve-start", N = "intlify-message-resolve-end", X && X(L)), (g = i(_, t)) === null && (g = _[t]), process.env.NODE_ENV !== "production" && se) {
|
|
541
|
+
const A = window.performance.now(), w = e.__v_emitter;
|
|
542
|
+
w && O && g && w.emit("message-resolve", {
|
|
543
543
|
type: "message-resolve",
|
|
544
544
|
key: t,
|
|
545
545
|
message: g,
|
|
546
|
-
time:
|
|
546
|
+
time: A - O,
|
|
547
547
|
groupId: `${h}:${t}`
|
|
548
|
-
}), L &&
|
|
548
|
+
}), L && N && X && _e && (X(N), _e("intlify message resolve", L, N));
|
|
549
549
|
}
|
|
550
|
-
if (E(g) ||
|
|
550
|
+
if (E(g) || V(g))
|
|
551
551
|
break;
|
|
552
|
-
const v =
|
|
552
|
+
const v = Et(
|
|
553
553
|
e,
|
|
554
554
|
t,
|
|
555
|
-
|
|
556
|
-
|
|
555
|
+
d,
|
|
556
|
+
l,
|
|
557
557
|
h
|
|
558
558
|
);
|
|
559
|
-
v !== t && (g = v),
|
|
559
|
+
v !== t && (g = v), b = p;
|
|
560
560
|
}
|
|
561
|
-
return [g,
|
|
561
|
+
return [g, d, _];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
const { messageCompiler:
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
return
|
|
563
|
+
function kn(e, t, n, o, s, l) {
|
|
564
|
+
const { messageCompiler: r, warnHtmlMessage: a } = e;
|
|
565
|
+
if (oe(o)) {
|
|
566
|
+
const d = o;
|
|
567
|
+
return d.locale = d.locale || n, d.key = d.key || t, d;
|
|
568
568
|
}
|
|
569
|
-
if (
|
|
570
|
-
const
|
|
571
|
-
return
|
|
569
|
+
if (r == null) {
|
|
570
|
+
const d = () => o;
|
|
571
|
+
return d.locale = n, d.key = t, d;
|
|
572
572
|
}
|
|
573
573
|
let i = null, c, u;
|
|
574
|
-
process.env.NODE_ENV !== "production" &&
|
|
575
|
-
const
|
|
576
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
577
|
-
const
|
|
574
|
+
process.env.NODE_ENV !== "production" && se && (i = window.performance.now(), c = "intlify-message-compilation-start", u = "intlify-message-compilation-end", X && X(c));
|
|
575
|
+
const _ = r(o, Ss(e, n, s, o, a, l));
|
|
576
|
+
if (process.env.NODE_ENV !== "production" && se) {
|
|
577
|
+
const d = window.performance.now(), g = e.__v_emitter;
|
|
578
578
|
g && i && g.emit("message-compilation", {
|
|
579
579
|
type: "message-compilation",
|
|
580
|
-
message:
|
|
581
|
-
time:
|
|
580
|
+
message: o,
|
|
581
|
+
time: d - i,
|
|
582
582
|
groupId: `translate:${t}`
|
|
583
|
-
}), c && u && X &&
|
|
583
|
+
}), c && u && X && _e && (X(u), _e("intlify message compilation", c, u));
|
|
584
584
|
}
|
|
585
|
-
return
|
|
585
|
+
return _.locale = n, _.key = t, _.source = o, _;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
let
|
|
589
|
-
process.env.NODE_ENV !== "production" &&
|
|
590
|
-
const
|
|
591
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
592
|
-
const
|
|
593
|
-
i &&
|
|
587
|
+
function ws(e, t, n) {
|
|
588
|
+
let o = null, s, l;
|
|
589
|
+
process.env.NODE_ENV !== "production" && se && (o = window.performance.now(), s = "intlify-message-evaluation-start", l = "intlify-message-evaluation-end", X && X(s));
|
|
590
|
+
const r = t(n);
|
|
591
|
+
if (process.env.NODE_ENV !== "production" && se) {
|
|
592
|
+
const a = window.performance.now(), i = e.__v_emitter;
|
|
593
|
+
i && o && i.emit("message-evaluation", {
|
|
594
594
|
type: "message-evaluation",
|
|
595
|
-
value:
|
|
596
|
-
time:
|
|
595
|
+
value: r,
|
|
596
|
+
time: a - o,
|
|
597
597
|
groupId: `translate:${t.key}`
|
|
598
|
-
}),
|
|
598
|
+
}), s && l && X && _e && (X(l), _e("intlify message evaluation", s, l));
|
|
599
599
|
}
|
|
600
|
-
return
|
|
600
|
+
return r;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
const [t, n,
|
|
604
|
-
if (!E(t) && !
|
|
605
|
-
throw
|
|
606
|
-
const
|
|
607
|
-
return
|
|
602
|
+
function et(...e) {
|
|
603
|
+
const [t, n, o] = e, s = {};
|
|
604
|
+
if (!E(t) && !U(t) && !oe(t))
|
|
605
|
+
throw ye(ae.INVALID_ARGUMENT);
|
|
606
|
+
const l = U(t) ? String(t) : (oe(t), t);
|
|
607
|
+
return U(n) ? s.plural = n : E(n) ? s.default = n : I(n) && !He(n) ? s.named = n : R(n) && (s.list = n), U(o) ? s.plural = o : E(o) ? s.default = o : I(o) && B(s, o), [l, s];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ss(e, t, n, o, s, l) {
|
|
610
610
|
return {
|
|
611
|
-
warnHtmlMessage:
|
|
612
|
-
onError: (
|
|
613
|
-
if (
|
|
614
|
-
const
|
|
611
|
+
warnHtmlMessage: s,
|
|
612
|
+
onError: (r) => {
|
|
613
|
+
if (l && l(r), process.env.NODE_ENV !== "production") {
|
|
614
|
+
const a = `Message compilation error: ${r.message}`, i = r.location && Ho(o, r.location.start.offset, r.location.end.offset), c = e.__v_emitter;
|
|
615
615
|
c && c.emit("compile-error", {
|
|
616
|
-
message:
|
|
617
|
-
error:
|
|
618
|
-
start:
|
|
619
|
-
end:
|
|
616
|
+
message: o,
|
|
617
|
+
error: r.message,
|
|
618
|
+
start: r.location && r.location.start.offset,
|
|
619
|
+
end: r.location && r.location.end.offset,
|
|
620
620
|
groupId: `translate:${n}`
|
|
621
|
-
}), console.error(i ? `${
|
|
622
|
-
${i}` :
|
|
621
|
+
}), console.error(i ? `${a}
|
|
622
|
+
${i}` : a);
|
|
623
623
|
} else
|
|
624
|
-
throw
|
|
624
|
+
throw r;
|
|
625
625
|
},
|
|
626
|
-
onCacheKey: (
|
|
626
|
+
onCacheKey: (r) => xo(t, n, r)
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
const { modifiers:
|
|
629
|
+
function As(e, t, n, o) {
|
|
630
|
+
const { modifiers: s, pluralRules: l, messageResolver: r, fallbackLocale: a, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e, d = {
|
|
631
631
|
locale: t,
|
|
632
|
-
modifiers:
|
|
633
|
-
pluralRules:
|
|
632
|
+
modifiers: s,
|
|
633
|
+
pluralRules: l,
|
|
634
634
|
messages: (g) => {
|
|
635
|
-
let
|
|
636
|
-
if (
|
|
637
|
-
const [, , p] =
|
|
638
|
-
|
|
635
|
+
let b = r(n, g);
|
|
636
|
+
if (b == null && u) {
|
|
637
|
+
const [, , p] = Pn(u, g, t, a, i, c);
|
|
638
|
+
b = r(p, g);
|
|
639
639
|
}
|
|
640
|
-
if (E(
|
|
640
|
+
if (E(b)) {
|
|
641
641
|
let p = !1;
|
|
642
|
-
const
|
|
642
|
+
const y = kn(e, g, t, b, g, () => {
|
|
643
643
|
p = !0;
|
|
644
644
|
});
|
|
645
|
-
return p ?
|
|
645
|
+
return p ? Ut : y;
|
|
646
646
|
} else
|
|
647
|
-
return
|
|
647
|
+
return oe(b) ? b : Ut;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
return e.processor && (
|
|
650
|
+
return e.processor && (d.processor = e.processor), o.list && (d.list = o.list), o.named && (d.named = o.named), U(o.plural) && (d.pluralIndex = o.plural), d;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
653
|
-
dateTimeFormat:
|
|
654
|
-
numberFormat:
|
|
652
|
+
const Gt = typeof Intl < "u", $n = {
|
|
653
|
+
dateTimeFormat: Gt && typeof Intl.DateTimeFormat < "u",
|
|
654
|
+
numberFormat: Gt && typeof Intl.NumberFormat < "u"
|
|
655
655
|
};
|
|
656
|
-
function
|
|
657
|
-
const { datetimeFormats: n, unresolving:
|
|
658
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
659
|
-
return
|
|
660
|
-
const [i, c, u,
|
|
656
|
+
function Wt(e, ...t) {
|
|
657
|
+
const { datetimeFormats: n, unresolving: o, fallbackLocale: s, onWarn: l, localeFallbacker: r } = e, { __datetimeFormatters: a } = e;
|
|
658
|
+
if (process.env.NODE_ENV !== "production" && !$n.dateTimeFormat)
|
|
659
|
+
return l(be(K.CANNOT_FORMAT_DATE)), je;
|
|
660
|
+
const [i, c, u, _] = tt(...t), d = $(u.missingWarn) ? u.missingWarn : e.missingWarn, g = $(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, b = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = r(
|
|
661
661
|
e,
|
|
662
|
-
|
|
662
|
+
s,
|
|
663
663
|
p
|
|
664
664
|
);
|
|
665
665
|
if (!E(i) || i === "")
|
|
666
|
-
return new Intl.DateTimeFormat(p,
|
|
667
|
-
let
|
|
668
|
-
const
|
|
666
|
+
return new Intl.DateTimeFormat(p, _).format(c);
|
|
667
|
+
let y = {}, O, L = null, N = p, v = null;
|
|
668
|
+
const A = "datetime format";
|
|
669
669
|
for (let Y = 0; Y < h.length; Y++) {
|
|
670
|
-
if (
|
|
670
|
+
if (O = v = h[Y], process.env.NODE_ENV !== "production" && p !== O && Ye(g, i) && l(be(K.FALLBACK_TO_DATE_FORMAT, {
|
|
671
671
|
key: i,
|
|
672
|
-
target:
|
|
673
|
-
})), process.env.NODE_ENV !== "production" && p !==
|
|
672
|
+
target: O
|
|
673
|
+
})), process.env.NODE_ENV !== "production" && p !== O) {
|
|
674
674
|
const Q = e.__v_emitter;
|
|
675
675
|
Q && Q.emit("fallback", {
|
|
676
|
-
type:
|
|
676
|
+
type: A,
|
|
677
677
|
key: i,
|
|
678
|
-
from:
|
|
678
|
+
from: N,
|
|
679
679
|
to: v,
|
|
680
|
-
groupId: `${
|
|
680
|
+
groupId: `${A}:${i}`
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
if (
|
|
683
|
+
if (y = n[O] || {}, L = y[i], I(L))
|
|
684
684
|
break;
|
|
685
|
-
|
|
685
|
+
Et(e, i, O, d, A), N = v;
|
|
686
686
|
}
|
|
687
|
-
if (!
|
|
688
|
-
return
|
|
689
|
-
let
|
|
690
|
-
|
|
691
|
-
let
|
|
692
|
-
return
|
|
687
|
+
if (!I(L) || !E(O))
|
|
688
|
+
return o ? ze : i;
|
|
689
|
+
let w = `${O}__${i}`;
|
|
690
|
+
He(_) || (w = `${w}__${JSON.stringify(_)}`);
|
|
691
|
+
let x = a.get(w);
|
|
692
|
+
return x || (x = new Intl.DateTimeFormat(O, B({}, L, _)), a.set(w, x)), b ? x.formatToParts(c) : x.format(c);
|
|
693
693
|
}
|
|
694
|
-
const
|
|
694
|
+
const Rn = [
|
|
695
695
|
"localeMatcher",
|
|
696
696
|
"weekday",
|
|
697
697
|
"era",
|
|
@@ -713,78 +713,78 @@ const Sn = [
|
|
|
713
713
|
"hourCycle",
|
|
714
714
|
"fractionalSecondDigits"
|
|
715
715
|
];
|
|
716
|
-
function
|
|
717
|
-
const [t, n,
|
|
718
|
-
let
|
|
716
|
+
function tt(...e) {
|
|
717
|
+
const [t, n, o, s] = e, l = {};
|
|
718
|
+
let r = {}, a;
|
|
719
719
|
if (E(t)) {
|
|
720
720
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
721
721
|
if (!i)
|
|
722
|
-
throw
|
|
722
|
+
throw ye(ae.INVALID_ISO_DATE_ARGUMENT);
|
|
723
723
|
const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
724
|
-
|
|
724
|
+
a = new Date(c);
|
|
725
725
|
try {
|
|
726
|
-
|
|
726
|
+
a.toISOString();
|
|
727
727
|
} catch {
|
|
728
|
-
throw
|
|
728
|
+
throw ye(ae.INVALID_ISO_DATE_ARGUMENT);
|
|
729
729
|
}
|
|
730
|
-
} else if (
|
|
730
|
+
} else if (Wo(t)) {
|
|
731
731
|
if (isNaN(t.getTime()))
|
|
732
|
-
throw
|
|
733
|
-
|
|
734
|
-
} else if (
|
|
735
|
-
|
|
732
|
+
throw ye(ae.INVALID_DATE_ARGUMENT);
|
|
733
|
+
a = t;
|
|
734
|
+
} else if (U(t))
|
|
735
|
+
a = t;
|
|
736
736
|
else
|
|
737
|
-
throw
|
|
738
|
-
return E(n) ?
|
|
739
|
-
|
|
740
|
-
}), E(
|
|
741
|
-
}
|
|
742
|
-
function
|
|
743
|
-
const
|
|
744
|
-
for (const
|
|
745
|
-
const
|
|
746
|
-
!
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
function
|
|
750
|
-
const { numberFormats: n, unresolving:
|
|
751
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
752
|
-
return
|
|
753
|
-
const [i, c, u,
|
|
737
|
+
throw ye(ae.INVALID_ARGUMENT);
|
|
738
|
+
return E(n) ? l.key = n : I(n) && Object.keys(n).forEach((i) => {
|
|
739
|
+
Rn.includes(i) ? r[i] = n[i] : l[i] = n[i];
|
|
740
|
+
}), E(o) ? l.locale = o : I(o) && (r = o), I(s) && (r = s), [l.key || "", a, l, r];
|
|
741
|
+
}
|
|
742
|
+
function jt(e, t, n) {
|
|
743
|
+
const o = e;
|
|
744
|
+
for (const s in n) {
|
|
745
|
+
const l = `${t}__${s}`;
|
|
746
|
+
!o.__datetimeFormatters.has(l) || o.__datetimeFormatters.delete(l);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
function Bt(e, ...t) {
|
|
750
|
+
const { numberFormats: n, unresolving: o, fallbackLocale: s, onWarn: l, localeFallbacker: r } = e, { __numberFormatters: a } = e;
|
|
751
|
+
if (process.env.NODE_ENV !== "production" && !$n.numberFormat)
|
|
752
|
+
return l(be(K.CANNOT_FORMAT_NUMBER)), je;
|
|
753
|
+
const [i, c, u, _] = nt(...t), d = $(u.missingWarn) ? u.missingWarn : e.missingWarn, g = $(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, b = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = r(
|
|
754
754
|
e,
|
|
755
|
-
|
|
755
|
+
s,
|
|
756
756
|
p
|
|
757
757
|
);
|
|
758
758
|
if (!E(i) || i === "")
|
|
759
|
-
return new Intl.NumberFormat(p,
|
|
760
|
-
let
|
|
761
|
-
const
|
|
759
|
+
return new Intl.NumberFormat(p, _).format(c);
|
|
760
|
+
let y = {}, O, L = null, N = p, v = null;
|
|
761
|
+
const A = "number format";
|
|
762
762
|
for (let Y = 0; Y < h.length; Y++) {
|
|
763
|
-
if (
|
|
763
|
+
if (O = v = h[Y], process.env.NODE_ENV !== "production" && p !== O && Ye(g, i) && l(be(K.FALLBACK_TO_NUMBER_FORMAT, {
|
|
764
764
|
key: i,
|
|
765
|
-
target:
|
|
766
|
-
})), process.env.NODE_ENV !== "production" && p !==
|
|
765
|
+
target: O
|
|
766
|
+
})), process.env.NODE_ENV !== "production" && p !== O) {
|
|
767
767
|
const Q = e.__v_emitter;
|
|
768
768
|
Q && Q.emit("fallback", {
|
|
769
|
-
type:
|
|
769
|
+
type: A,
|
|
770
770
|
key: i,
|
|
771
|
-
from:
|
|
771
|
+
from: N,
|
|
772
772
|
to: v,
|
|
773
|
-
groupId: `${
|
|
773
|
+
groupId: `${A}:${i}`
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
if (
|
|
776
|
+
if (y = n[O] || {}, L = y[i], I(L))
|
|
777
777
|
break;
|
|
778
|
-
|
|
778
|
+
Et(e, i, O, d, A), N = v;
|
|
779
779
|
}
|
|
780
|
-
if (!
|
|
781
|
-
return
|
|
782
|
-
let
|
|
783
|
-
|
|
784
|
-
let
|
|
785
|
-
return
|
|
780
|
+
if (!I(L) || !E(O))
|
|
781
|
+
return o ? ze : i;
|
|
782
|
+
let w = `${O}__${i}`;
|
|
783
|
+
He(_) || (w = `${w}__${JSON.stringify(_)}`);
|
|
784
|
+
let x = a.get(w);
|
|
785
|
+
return x || (x = new Intl.NumberFormat(O, B({}, L, _)), a.set(w, x)), b ? x.formatToParts(c) : x.format(c);
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const Fn = [
|
|
788
788
|
"localeMatcher",
|
|
789
789
|
"style",
|
|
790
790
|
"currency",
|
|
@@ -806,87 +806,87 @@ const wn = [
|
|
|
806
806
|
"roundingIncrement",
|
|
807
807
|
"trailingZeroDisplay"
|
|
808
808
|
];
|
|
809
|
-
function
|
|
810
|
-
const [t, n,
|
|
811
|
-
let
|
|
812
|
-
if (!
|
|
813
|
-
throw
|
|
814
|
-
const
|
|
815
|
-
return E(n) ?
|
|
816
|
-
|
|
817
|
-
}), E(
|
|
818
|
-
}
|
|
819
|
-
function
|
|
820
|
-
const
|
|
821
|
-
for (const
|
|
822
|
-
const
|
|
823
|
-
!
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
827
|
-
function
|
|
828
|
-
return
|
|
829
|
-
}
|
|
830
|
-
function
|
|
809
|
+
function nt(...e) {
|
|
810
|
+
const [t, n, o, s] = e, l = {};
|
|
811
|
+
let r = {};
|
|
812
|
+
if (!U(t))
|
|
813
|
+
throw ye(ae.INVALID_ARGUMENT);
|
|
814
|
+
const a = t;
|
|
815
|
+
return E(n) ? l.key = n : I(n) && Object.keys(n).forEach((i) => {
|
|
816
|
+
Fn.includes(i) ? r[i] = n[i] : l[i] = n[i];
|
|
817
|
+
}), E(o) ? l.locale = o : I(o) && (r = o), I(s) && (r = s), [l.key || "", a, l, r];
|
|
818
|
+
}
|
|
819
|
+
function Ht(e, t, n) {
|
|
820
|
+
const o = e;
|
|
821
|
+
for (const s in n) {
|
|
822
|
+
const l = `${t}__${s}`;
|
|
823
|
+
!o.__numberFormatters.has(l) || o.__numberFormatters.delete(l);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (gt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
827
|
+
function Ds() {
|
|
828
|
+
return Mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
829
|
+
}
|
|
830
|
+
function Mn() {
|
|
831
831
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
832
832
|
}
|
|
833
|
-
const
|
|
834
|
-
let
|
|
835
|
-
function
|
|
833
|
+
const Cs = typeof Proxy == "function", Ps = "devtools-plugin:setup", ks = "plugin:settings:set";
|
|
834
|
+
let ve, ot;
|
|
835
|
+
function $s() {
|
|
836
836
|
var e;
|
|
837
|
-
return
|
|
837
|
+
return ve !== void 0 || (typeof window < "u" && window.performance ? (ve = !0, ot = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (ve = !0, ot = global.perf_hooks.performance) : ve = !1), ve;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function Rs() {
|
|
840
|
+
return $s() ? ot.now() : Date.now();
|
|
841
841
|
}
|
|
842
|
-
class
|
|
842
|
+
class Fs {
|
|
843
843
|
constructor(t, n) {
|
|
844
844
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
845
|
-
const
|
|
845
|
+
const o = {};
|
|
846
846
|
if (t.settings)
|
|
847
|
-
for (const
|
|
848
|
-
const
|
|
849
|
-
r
|
|
847
|
+
for (const r in t.settings) {
|
|
848
|
+
const a = t.settings[r];
|
|
849
|
+
o[r] = a.defaultValue;
|
|
850
850
|
}
|
|
851
|
-
const
|
|
852
|
-
let
|
|
851
|
+
const s = `__vue-devtools-plugin-settings__${t.id}`;
|
|
852
|
+
let l = Object.assign({}, o);
|
|
853
853
|
try {
|
|
854
|
-
const
|
|
855
|
-
Object.assign(
|
|
854
|
+
const r = localStorage.getItem(s), a = JSON.parse(r);
|
|
855
|
+
Object.assign(l, a);
|
|
856
856
|
} catch {
|
|
857
857
|
}
|
|
858
858
|
this.fallbacks = {
|
|
859
859
|
getSettings() {
|
|
860
|
-
return
|
|
860
|
+
return l;
|
|
861
861
|
},
|
|
862
|
-
setSettings(
|
|
862
|
+
setSettings(r) {
|
|
863
863
|
try {
|
|
864
|
-
localStorage.setItem(
|
|
864
|
+
localStorage.setItem(s, JSON.stringify(r));
|
|
865
865
|
} catch {
|
|
866
866
|
}
|
|
867
|
-
|
|
867
|
+
l = r;
|
|
868
868
|
},
|
|
869
869
|
now() {
|
|
870
|
-
return
|
|
870
|
+
return Rs();
|
|
871
871
|
}
|
|
872
|
-
}, n && n.on(
|
|
873
|
-
|
|
872
|
+
}, n && n.on(ks, (r, a) => {
|
|
873
|
+
r === this.plugin.id && this.fallbacks.setSettings(a);
|
|
874
874
|
}), this.proxiedOn = new Proxy({}, {
|
|
875
|
-
get: (
|
|
875
|
+
get: (r, a) => this.target ? this.target.on[a] : (...i) => {
|
|
876
876
|
this.onQueue.push({
|
|
877
|
-
method:
|
|
877
|
+
method: a,
|
|
878
878
|
args: i
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
881
|
}), this.proxiedTarget = new Proxy({}, {
|
|
882
|
-
get: (
|
|
883
|
-
method:
|
|
882
|
+
get: (r, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...i) => (this.targetQueue.push({
|
|
883
|
+
method: a,
|
|
884
884
|
args: i,
|
|
885
885
|
resolve: () => {
|
|
886
886
|
}
|
|
887
|
-
}), this.fallbacks[
|
|
887
|
+
}), this.fallbacks[a](...i)) : (...i) => new Promise((c) => {
|
|
888
888
|
this.targetQueue.push({
|
|
889
|
-
method:
|
|
889
|
+
method: a,
|
|
890
890
|
args: i,
|
|
891
891
|
resolve: c
|
|
892
892
|
});
|
|
@@ -901,17 +901,17 @@ class Cr {
|
|
|
901
901
|
n.resolve(await this.target[n.method](...n.args));
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
const n = e,
|
|
906
|
-
if (
|
|
907
|
-
|
|
904
|
+
function Ms(e, t) {
|
|
905
|
+
const n = e, o = Mn(), s = Ds(), l = Cs && n.enableEarlyProxy;
|
|
906
|
+
if (s && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !l))
|
|
907
|
+
s.emit(Ps, e, t);
|
|
908
908
|
else {
|
|
909
|
-
const
|
|
910
|
-
(
|
|
909
|
+
const r = l ? new Fs(n, s) : null;
|
|
910
|
+
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
911
911
|
pluginDescriptor: n,
|
|
912
912
|
setupFn: t,
|
|
913
|
-
proxy:
|
|
914
|
-
}),
|
|
913
|
+
proxy: r
|
|
914
|
+
}), r && t(r.proxiedTarget);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
/*!
|
|
@@ -919,13 +919,13 @@ function Pr(e, t) {
|
|
|
919
919
|
* (c) 2022 kazuya kawaguchi
|
|
920
920
|
* Released under the MIT License.
|
|
921
921
|
*/
|
|
922
|
-
const
|
|
922
|
+
const qe = {
|
|
923
923
|
["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
|
|
924
924
|
["vue-i18n-resource-inspector"]: "I18n Resources",
|
|
925
925
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
926
|
-
},
|
|
926
|
+
}, Vs = {
|
|
927
927
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
928
|
-
},
|
|
928
|
+
}, Us = {
|
|
929
929
|
["vue-i18n-timeline"]: 16764185
|
|
930
930
|
};
|
|
931
931
|
/*!
|
|
@@ -933,21 +933,21 @@ const Ye = {
|
|
|
933
933
|
* (c) 2022 kazuya kawaguchi
|
|
934
934
|
* Released under the MIT License.
|
|
935
935
|
*/
|
|
936
|
-
const
|
|
937
|
-
function
|
|
936
|
+
const xs = "9.2.2";
|
|
937
|
+
function Gs() {
|
|
938
938
|
let e = !1;
|
|
939
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
940
|
-
}
|
|
941
|
-
let
|
|
942
|
-
const
|
|
943
|
-
FALLBACK_TO_ROOT:
|
|
944
|
-
NOT_SUPPORTED_PRESERVE:
|
|
945
|
-
NOT_SUPPORTED_FORMATTER:
|
|
946
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE:
|
|
947
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX:
|
|
948
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE:
|
|
949
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
950
|
-
},
|
|
939
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (gt().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
940
|
+
}
|
|
941
|
+
let Vn = K.__EXTEND_POINT__;
|
|
942
|
+
const Ee = () => ++Vn, Z = {
|
|
943
|
+
FALLBACK_TO_ROOT: Vn,
|
|
944
|
+
NOT_SUPPORTED_PRESERVE: Ee(),
|
|
945
|
+
NOT_SUPPORTED_FORMATTER: Ee(),
|
|
946
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: Ee(),
|
|
947
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: Ee(),
|
|
948
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: Ee(),
|
|
949
|
+
NOT_FOUND_PARENT_SCOPE: Ee()
|
|
950
|
+
}, Ws = {
|
|
951
951
|
[Z.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
952
952
|
[Z.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
953
953
|
[Z.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
@@ -956,12 +956,12 @@ const he = () => ++Cn, Z = {
|
|
|
956
956
|
[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
957
957
|
[Z.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
958
958
|
};
|
|
959
|
-
function
|
|
960
|
-
return
|
|
959
|
+
function Ke(e, ...t) {
|
|
960
|
+
return mt(Ws[e], ...t);
|
|
961
961
|
}
|
|
962
|
-
let
|
|
963
|
-
const z = () => ++
|
|
964
|
-
UNEXPECTED_RETURN_TYPE:
|
|
962
|
+
let Un = W.__EXTEND_POINT__;
|
|
963
|
+
const z = () => ++Un, D = {
|
|
964
|
+
UNEXPECTED_RETURN_TYPE: Un,
|
|
965
965
|
INVALID_ARGUMENT: z(),
|
|
966
966
|
MUST_BE_CALL_SETUP_TOP: z(),
|
|
967
967
|
NOT_INSLALLED: z(),
|
|
@@ -978,9 +978,9 @@ const z = () => ++Pn, D = {
|
|
|
978
978
|
__EXTEND_POINT__: z()
|
|
979
979
|
};
|
|
980
980
|
function J(e, ...t) {
|
|
981
|
-
return
|
|
981
|
+
return Nn(e, null, process.env.NODE_ENV !== "production" ? { messages: js, args: t } : void 0);
|
|
982
982
|
}
|
|
983
|
-
const
|
|
983
|
+
const js = {
|
|
984
984
|
[D.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
985
985
|
[D.INVALID_ARGUMENT]: "Invalid argument",
|
|
986
986
|
[D.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -995,327 +995,327 @@ const Mr = {
|
|
|
995
995
|
[D.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
996
996
|
[D.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
|
997
997
|
[D.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
998
|
-
},
|
|
999
|
-
|
|
1000
|
-
const
|
|
1001
|
-
function
|
|
998
|
+
}, st = /* @__PURE__ */ re("__transrateVNode"), rt = /* @__PURE__ */ re("__datetimeParts"), lt = /* @__PURE__ */ re("__numberParts"), De = /* @__PURE__ */ re("__enableEmitter"), at = /* @__PURE__ */ re("__disableEmitter"), Bs = re("__setPluralRules");
|
|
999
|
+
re("__intlifyMeta");
|
|
1000
|
+
const Hs = /* @__PURE__ */ re("__injectWithOption");
|
|
1001
|
+
function it(e) {
|
|
1002
1002
|
if (!S(e))
|
|
1003
1003
|
return e;
|
|
1004
1004
|
for (const t in e)
|
|
1005
|
-
if (!!
|
|
1005
|
+
if (!!pt(e, t))
|
|
1006
1006
|
if (!t.includes("."))
|
|
1007
|
-
S(e[t]) &&
|
|
1007
|
+
S(e[t]) && it(e[t]);
|
|
1008
1008
|
else {
|
|
1009
|
-
const n = t.split("."),
|
|
1010
|
-
let
|
|
1011
|
-
for (let
|
|
1012
|
-
n[
|
|
1013
|
-
|
|
1009
|
+
const n = t.split("."), o = n.length - 1;
|
|
1010
|
+
let s = e;
|
|
1011
|
+
for (let l = 0; l < o; l++)
|
|
1012
|
+
n[l] in s || (s[n[l]] = {}), s = s[n[l]];
|
|
1013
|
+
s[n[o]] = e[t], delete e[t], S(s[n[o]]) && it(s[n[o]]);
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const { messages: n, __i18n:
|
|
1019
|
-
if (
|
|
1020
|
-
if ("locale" in
|
|
1021
|
-
const { locale: i, resource: c } =
|
|
1022
|
-
i ? (
|
|
1017
|
+
function xn(e, t) {
|
|
1018
|
+
const { messages: n, __i18n: o, messageResolver: s, flatJson: l } = t, r = I(n) ? n : R(o) ? {} : { [e]: {} };
|
|
1019
|
+
if (R(o) && o.forEach((a) => {
|
|
1020
|
+
if ("locale" in a && "resource" in a) {
|
|
1021
|
+
const { locale: i, resource: c } = a;
|
|
1022
|
+
i ? (r[i] = r[i] || {}, we(c, r[i])) : we(c, r);
|
|
1023
1023
|
} else
|
|
1024
|
-
E(
|
|
1025
|
-
}),
|
|
1026
|
-
for (const
|
|
1027
|
-
|
|
1028
|
-
return
|
|
1024
|
+
E(a) && we(JSON.parse(a), r);
|
|
1025
|
+
}), s == null && l)
|
|
1026
|
+
for (const a in r)
|
|
1027
|
+
pt(r, a) && it(r[a]);
|
|
1028
|
+
return r;
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1030
|
+
const Fe = (e) => !S(e) || R(e);
|
|
1031
|
+
function we(e, t) {
|
|
1032
|
+
if (Fe(e) || Fe(t))
|
|
1033
1033
|
throw J(D.INVALID_VALUE);
|
|
1034
1034
|
for (const n in e)
|
|
1035
|
-
|
|
1035
|
+
pt(e, n) && (Fe(e[n]) || Fe(t[n]) ? t[n] = e[n] : we(e[n], t[n]));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function Gn(e) {
|
|
1038
1038
|
return e.type;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let
|
|
1042
|
-
"__i18nGlobal" in n && (
|
|
1043
|
-
messages:
|
|
1040
|
+
function zs(e, t, n) {
|
|
1041
|
+
let o = S(t.messages) ? t.messages : {};
|
|
1042
|
+
"__i18nGlobal" in n && (o = xn(e.locale.value, {
|
|
1043
|
+
messages: o,
|
|
1044
1044
|
__i18n: n.__i18nGlobal
|
|
1045
1045
|
}));
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
e.mergeLocaleMessage(
|
|
1046
|
+
const s = Object.keys(o);
|
|
1047
|
+
s.length && s.forEach((l) => {
|
|
1048
|
+
e.mergeLocaleMessage(l, o[l]);
|
|
1049
1049
|
});
|
|
1050
1050
|
{
|
|
1051
1051
|
if (S(t.datetimeFormats)) {
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1054
|
-
e.mergeDateTimeFormat(
|
|
1052
|
+
const l = Object.keys(t.datetimeFormats);
|
|
1053
|
+
l.length && l.forEach((r) => {
|
|
1054
|
+
e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
1057
|
if (S(t.numberFormats)) {
|
|
1058
|
-
const
|
|
1059
|
-
|
|
1060
|
-
e.mergeNumberFormat(
|
|
1058
|
+
const l = Object.keys(t.numberFormats);
|
|
1059
|
+
l.length && l.forEach((r) => {
|
|
1060
|
+
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return
|
|
1065
|
+
function zt(e) {
|
|
1066
|
+
return ee(Fo, null, e, 0);
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1069
|
-
let
|
|
1070
|
-
function
|
|
1071
|
-
return (t, n,
|
|
1068
|
+
const Yt = "__INTLIFY_META__";
|
|
1069
|
+
let Kt = 0;
|
|
1070
|
+
function Xt(e) {
|
|
1071
|
+
return (t, n, o, s) => e(n, o, dt() || void 0, s);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1074
|
-
const e =
|
|
1073
|
+
const Ys = () => {
|
|
1074
|
+
const e = dt();
|
|
1075
1075
|
let t = null;
|
|
1076
|
-
return e && (t =
|
|
1076
|
+
return e && (t = Gn(e)[Yt]) ? { [Yt]: t } : null;
|
|
1077
1077
|
};
|
|
1078
|
-
function
|
|
1079
|
-
const { __root: n } = e,
|
|
1080
|
-
let
|
|
1081
|
-
const
|
|
1082
|
-
n &&
|
|
1083
|
-
),
|
|
1084
|
-
n &&
|
|
1085
|
-
),
|
|
1086
|
-
let u = n ? n.missingWarn :
|
|
1087
|
-
const L = n ? n.modifiers :
|
|
1088
|
-
let
|
|
1078
|
+
function Wn(e = {}, t) {
|
|
1079
|
+
const { __root: n } = e, o = n === void 0;
|
|
1080
|
+
let s = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1081
|
+
const l = P(
|
|
1082
|
+
n && s ? n.locale.value : E(e.locale) ? e.locale : vt
|
|
1083
|
+
), r = P(
|
|
1084
|
+
n && s ? n.fallbackLocale.value : E(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
1085
|
+
), a = P(xn(l.value, e)), i = P(I(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), c = P(I(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
1086
|
+
let u = n ? n.missingWarn : $(e.missingWarn) || We(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : $(e.fallbackWarn) || We(e.fallbackWarn) ? e.fallbackWarn : !0, d = n ? n.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, g = !!e.fallbackFormat, b = V(e.missing) ? e.missing : null, p = V(e.missing) ? Xt(e.missing) : null, h = V(e.postTranslation) ? e.postTranslation : null, y = n ? n.warnHtmlMessage : $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
|
|
1087
|
+
const L = n ? n.modifiers : I(e.modifiers) ? e.modifiers : {};
|
|
1088
|
+
let N = e.pluralRules || n && n.pluralRules, v;
|
|
1089
1089
|
v = (() => {
|
|
1090
|
-
|
|
1090
|
+
o && Mt(null);
|
|
1091
1091
|
const f = {
|
|
1092
|
-
version:
|
|
1093
|
-
locale:
|
|
1094
|
-
fallbackLocale:
|
|
1095
|
-
messages:
|
|
1092
|
+
version: xs,
|
|
1093
|
+
locale: l.value,
|
|
1094
|
+
fallbackLocale: r.value,
|
|
1095
|
+
messages: a.value,
|
|
1096
1096
|
modifiers: L,
|
|
1097
|
-
pluralRules:
|
|
1097
|
+
pluralRules: N,
|
|
1098
1098
|
missing: p === null ? void 0 : p,
|
|
1099
1099
|
missingWarn: u,
|
|
1100
|
-
fallbackWarn:
|
|
1100
|
+
fallbackWarn: _,
|
|
1101
1101
|
fallbackFormat: g,
|
|
1102
1102
|
unresolving: !0,
|
|
1103
1103
|
postTranslation: h === null ? void 0 : h,
|
|
1104
|
-
warnHtmlMessage:
|
|
1105
|
-
escapeParameter:
|
|
1104
|
+
warnHtmlMessage: y,
|
|
1105
|
+
escapeParameter: O,
|
|
1106
1106
|
messageResolver: e.messageResolver,
|
|
1107
1107
|
__meta: { framework: "vue" }
|
|
1108
1108
|
};
|
|
1109
|
-
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters =
|
|
1110
|
-
const m =
|
|
1111
|
-
return
|
|
1112
|
-
})(),
|
|
1113
|
-
function
|
|
1109
|
+
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = I(v) ? v.__datetimeFormatters : void 0, f.__numberFormatters = I(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = I(v) ? v.__v_emitter : void 0);
|
|
1110
|
+
const m = Ts(f);
|
|
1111
|
+
return o && Mt(m), m;
|
|
1112
|
+
})(), Ne(v, l.value, r.value);
|
|
1113
|
+
function w() {
|
|
1114
1114
|
return [
|
|
1115
|
-
a.value,
|
|
1116
|
-
s.value,
|
|
1117
1115
|
l.value,
|
|
1116
|
+
r.value,
|
|
1117
|
+
a.value,
|
|
1118
1118
|
i.value,
|
|
1119
1119
|
c.value
|
|
1120
1120
|
];
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1123
|
-
get: () =>
|
|
1122
|
+
const x = G({
|
|
1123
|
+
get: () => l.value,
|
|
1124
1124
|
set: (f) => {
|
|
1125
|
-
|
|
1125
|
+
l.value = f, v.locale = l.value;
|
|
1126
1126
|
}
|
|
1127
|
-
}), Y =
|
|
1128
|
-
get: () =>
|
|
1127
|
+
}), Y = G({
|
|
1128
|
+
get: () => r.value,
|
|
1129
1129
|
set: (f) => {
|
|
1130
|
-
|
|
1130
|
+
r.value = f, v.fallbackLocale = r.value, Ne(v, l.value, f);
|
|
1131
1131
|
}
|
|
1132
|
-
}), Q =
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1132
|
+
}), Q = G(() => a.value), q = /* @__PURE__ */ G(() => i.value), ke = /* @__PURE__ */ G(() => c.value);
|
|
1133
|
+
function $e() {
|
|
1134
|
+
return V(h) ? h : null;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function lo(f) {
|
|
1137
1137
|
h = f, v.postTranslation = f;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1139
|
+
function ao() {
|
|
1140
|
+
return b;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
f !== null && (p =
|
|
1142
|
+
function io(f) {
|
|
1143
|
+
f !== null && (p = Xt(f)), b = f, v.missing = p;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function co(f, m) {
|
|
1146
1146
|
return f !== "translate" || !m.resolvedMessage;
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
let
|
|
1148
|
+
const pe = (f, m, H, j, Je, Re) => {
|
|
1149
|
+
w();
|
|
1150
|
+
let he;
|
|
1151
1151
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1152
1152
|
try {
|
|
1153
|
-
|
|
1153
|
+
Ft(Ys()), o || (v.fallbackContext = n ? Ns() : void 0), he = f(v);
|
|
1154
1154
|
} finally {
|
|
1155
|
-
|
|
1155
|
+
Ft(null), o || (v.fallbackContext = void 0);
|
|
1156
1156
|
}
|
|
1157
1157
|
else
|
|
1158
|
-
|
|
1159
|
-
if (
|
|
1160
|
-
const [
|
|
1161
|
-
if (process.env.NODE_ENV !== "production" && n && E(
|
|
1162
|
-
key:
|
|
1163
|
-
type:
|
|
1158
|
+
he = f(v);
|
|
1159
|
+
if (U(he) && he === ze) {
|
|
1160
|
+
const [de, Co] = m();
|
|
1161
|
+
if (process.env.NODE_ENV !== "production" && n && E(de) && co(H, Co) && (d && (Ye(_, de) || Dn(u, de)) && Oe(Ke(Z.FALLBACK_TO_ROOT, {
|
|
1162
|
+
key: de,
|
|
1163
|
+
type: H
|
|
1164
1164
|
})), process.env.NODE_ENV !== "production")) {
|
|
1165
|
-
const { __v_emitter:
|
|
1166
|
-
|
|
1167
|
-
type:
|
|
1168
|
-
key:
|
|
1165
|
+
const { __v_emitter: wt } = v;
|
|
1166
|
+
wt && d && wt.emit("fallback", {
|
|
1167
|
+
type: H,
|
|
1168
|
+
key: de,
|
|
1169
1169
|
to: "global",
|
|
1170
|
-
groupId: `${
|
|
1170
|
+
groupId: `${H}:${de}`
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
return n &&
|
|
1173
|
+
return n && d ? j(n) : Je(de);
|
|
1174
1174
|
} else {
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1175
|
+
if (Re(he))
|
|
1176
|
+
return he;
|
|
1177
1177
|
throw J(D.UNEXPECTED_RETURN_TYPE);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1180
|
+
function It(...f) {
|
|
1181
|
+
return pe((m) => Reflect.apply(xt, null, [m, ...f]), () => et(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => E(m));
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const [m,
|
|
1183
|
+
function uo(...f) {
|
|
1184
|
+
const [m, H, j] = f;
|
|
1185
1185
|
if (j && !S(j))
|
|
1186
1186
|
throw J(D.INVALID_ARGUMENT);
|
|
1187
|
-
return
|
|
1187
|
+
return It(m, H, B({ resolvedMessage: !0 }, j || {}));
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1189
|
+
function fo(...f) {
|
|
1190
|
+
return pe((m) => Reflect.apply(Wt, null, [m, ...f]), () => tt(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => je, (m) => E(m));
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return
|
|
1192
|
+
function _o(...f) {
|
|
1193
|
+
return pe((m) => Reflect.apply(Bt, null, [m, ...f]), () => nt(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => je, (m) => E(m));
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return f.map((m) => E(m) ||
|
|
1195
|
+
function mo(f) {
|
|
1196
|
+
return f.map((m) => E(m) || U(m) || $(m) ? zt(String(m)) : m);
|
|
1197
1197
|
}
|
|
1198
|
-
const
|
|
1199
|
-
normalize:
|
|
1198
|
+
const go = {
|
|
1199
|
+
normalize: mo,
|
|
1200
1200
|
interpolate: (f) => f,
|
|
1201
1201
|
type: "vnode"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1203
|
+
function po(...f) {
|
|
1204
|
+
return pe(
|
|
1205
1205
|
(m) => {
|
|
1206
|
-
let
|
|
1206
|
+
let H;
|
|
1207
1207
|
const j = m;
|
|
1208
1208
|
try {
|
|
1209
|
-
j.processor =
|
|
1209
|
+
j.processor = go, H = Reflect.apply(xt, null, [j, ...f]);
|
|
1210
1210
|
} finally {
|
|
1211
1211
|
j.processor = null;
|
|
1212
1212
|
}
|
|
1213
|
-
return
|
|
1213
|
+
return H;
|
|
1214
1214
|
},
|
|
1215
|
-
() =>
|
|
1215
|
+
() => et(...f),
|
|
1216
1216
|
"translate",
|
|
1217
|
-
(m) => m[
|
|
1218
|
-
(m) => [
|
|
1219
|
-
(m) =>
|
|
1217
|
+
(m) => m[st](...f),
|
|
1218
|
+
(m) => [zt(m)],
|
|
1219
|
+
(m) => R(m)
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1224
|
-
(m) => Reflect.apply(
|
|
1225
|
-
() =>
|
|
1222
|
+
function ho(...f) {
|
|
1223
|
+
return pe(
|
|
1224
|
+
(m) => Reflect.apply(Bt, null, [m, ...f]),
|
|
1225
|
+
() => nt(...f),
|
|
1226
1226
|
"number format",
|
|
1227
|
-
(m) => m[
|
|
1227
|
+
(m) => m[lt](...f),
|
|
1228
1228
|
() => [],
|
|
1229
|
-
(m) => E(m) ||
|
|
1229
|
+
(m) => E(m) || R(m)
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1234
|
-
(m) => Reflect.apply(
|
|
1235
|
-
() =>
|
|
1232
|
+
function vo(...f) {
|
|
1233
|
+
return pe(
|
|
1234
|
+
(m) => Reflect.apply(Wt, null, [m, ...f]),
|
|
1235
|
+
() => tt(...f),
|
|
1236
1236
|
"datetime format",
|
|
1237
|
-
(m) => m[
|
|
1237
|
+
(m) => m[rt](...f),
|
|
1238
1238
|
() => [],
|
|
1239
|
-
(m) => E(m) ||
|
|
1239
|
+
(m) => E(m) || R(m)
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1242
|
+
function Eo(f) {
|
|
1243
|
+
N = f, v.pluralRules = N;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
const
|
|
1245
|
+
function yo(f, m) {
|
|
1246
|
+
const H = E(m) ? m : l.value, j = Lt(H);
|
|
1247
1247
|
return v.messageResolver(j, f) !== null;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function bo(f) {
|
|
1250
1250
|
let m = null;
|
|
1251
|
-
const
|
|
1252
|
-
for (let j = 0; j <
|
|
1253
|
-
const
|
|
1254
|
-
if (
|
|
1255
|
-
m =
|
|
1251
|
+
const H = In(v, r.value, l.value);
|
|
1252
|
+
for (let j = 0; j < H.length; j++) {
|
|
1253
|
+
const Je = a.value[H[j]] || {}, Re = v.messageResolver(Je, f);
|
|
1254
|
+
if (Re != null) {
|
|
1255
|
+
m = Re;
|
|
1256
1256
|
break;
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
return m;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const m =
|
|
1261
|
+
function Oo(f) {
|
|
1262
|
+
const m = bo(f);
|
|
1263
1263
|
return m != null ? m : n ? n.tm(f) || {} : {};
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
1265
|
+
function Lt(f) {
|
|
1266
|
+
return a.value[f] || {};
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1269
|
-
|
|
1268
|
+
function No(f, m) {
|
|
1269
|
+
a.value[f] = m, v.messages = a.value;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
|
|
1271
|
+
function To(f, m) {
|
|
1272
|
+
a.value[f] = a.value[f] || {}, we(m, a.value[f]), v.messages = a.value;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Io(f) {
|
|
1275
1275
|
return i.value[f] || {};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
i.value[f] = m, v.datetimeFormats = i.value,
|
|
1277
|
+
function Lo(f, m) {
|
|
1278
|
+
i.value[f] = m, v.datetimeFormats = i.value, jt(v, f, m);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
i.value[f] =
|
|
1280
|
+
function wo(f, m) {
|
|
1281
|
+
i.value[f] = B(i.value[f] || {}, m), v.datetimeFormats = i.value, jt(v, f, m);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function So(f) {
|
|
1284
1284
|
return c.value[f] || {};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
c.value[f] = m, v.numberFormats = c.value,
|
|
1286
|
+
function Ao(f, m) {
|
|
1287
|
+
c.value[f] = m, v.numberFormats = c.value, Ht(v, f, m);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
c.value[f] =
|
|
1289
|
+
function Do(f, m) {
|
|
1290
|
+
c.value[f] = B(c.value[f] || {}, m), v.numberFormats = c.value, Ht(v, f, m);
|
|
1291
1291
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}),
|
|
1295
|
-
|
|
1292
|
+
Kt++, n && se && (Ue(n.locale, (f) => {
|
|
1293
|
+
s && (l.value = f, v.locale = f, Ne(v, l.value, r.value));
|
|
1294
|
+
}), Ue(n.fallbackLocale, (f) => {
|
|
1295
|
+
s && (r.value = f, v.fallbackLocale = f, Ne(v, l.value, r.value));
|
|
1296
1296
|
}));
|
|
1297
|
-
const
|
|
1298
|
-
id:
|
|
1299
|
-
locale:
|
|
1297
|
+
const F = {
|
|
1298
|
+
id: Kt,
|
|
1299
|
+
locale: x,
|
|
1300
1300
|
fallbackLocale: Y,
|
|
1301
1301
|
get inheritLocale() {
|
|
1302
|
-
return
|
|
1302
|
+
return s;
|
|
1303
1303
|
},
|
|
1304
1304
|
set inheritLocale(f) {
|
|
1305
|
-
|
|
1305
|
+
s = f, f && n && (l.value = n.locale.value, r.value = n.fallbackLocale.value, Ne(v, l.value, r.value));
|
|
1306
1306
|
},
|
|
1307
1307
|
get availableLocales() {
|
|
1308
|
-
return Object.keys(
|
|
1308
|
+
return Object.keys(a.value).sort();
|
|
1309
1309
|
},
|
|
1310
1310
|
messages: Q,
|
|
1311
1311
|
get modifiers() {
|
|
1312
1312
|
return L;
|
|
1313
1313
|
},
|
|
1314
1314
|
get pluralRules() {
|
|
1315
|
-
return
|
|
1315
|
+
return N || {};
|
|
1316
1316
|
},
|
|
1317
1317
|
get isGlobal() {
|
|
1318
|
-
return
|
|
1318
|
+
return o;
|
|
1319
1319
|
},
|
|
1320
1320
|
get missingWarn() {
|
|
1321
1321
|
return u;
|
|
@@ -1324,16 +1324,16 @@ function Rn(e = {}, t) {
|
|
|
1324
1324
|
u = f, v.missingWarn = u;
|
|
1325
1325
|
},
|
|
1326
1326
|
get fallbackWarn() {
|
|
1327
|
-
return
|
|
1327
|
+
return _;
|
|
1328
1328
|
},
|
|
1329
1329
|
set fallbackWarn(f) {
|
|
1330
|
-
|
|
1330
|
+
_ = f, v.fallbackWarn = _;
|
|
1331
1331
|
},
|
|
1332
1332
|
get fallbackRoot() {
|
|
1333
|
-
return
|
|
1333
|
+
return d;
|
|
1334
1334
|
},
|
|
1335
1335
|
set fallbackRoot(f) {
|
|
1336
|
-
|
|
1336
|
+
d = f;
|
|
1337
1337
|
},
|
|
1338
1338
|
get fallbackFormat() {
|
|
1339
1339
|
return g;
|
|
@@ -1342,34 +1342,34 @@ function Rn(e = {}, t) {
|
|
|
1342
1342
|
g = f, v.fallbackFormat = g;
|
|
1343
1343
|
},
|
|
1344
1344
|
get warnHtmlMessage() {
|
|
1345
|
-
return
|
|
1345
|
+
return y;
|
|
1346
1346
|
},
|
|
1347
1347
|
set warnHtmlMessage(f) {
|
|
1348
|
-
|
|
1348
|
+
y = f, v.warnHtmlMessage = f;
|
|
1349
1349
|
},
|
|
1350
1350
|
get escapeParameter() {
|
|
1351
|
-
return
|
|
1351
|
+
return O;
|
|
1352
1352
|
},
|
|
1353
1353
|
set escapeParameter(f) {
|
|
1354
|
-
|
|
1354
|
+
O = f, v.escapeParameter = f;
|
|
1355
1355
|
},
|
|
1356
|
-
t:
|
|
1357
|
-
getLocaleMessage:
|
|
1358
|
-
setLocaleMessage:
|
|
1359
|
-
mergeLocaleMessage:
|
|
1360
|
-
getPostTranslationHandler:
|
|
1361
|
-
setPostTranslationHandler:
|
|
1362
|
-
getMissingHandler:
|
|
1363
|
-
setMissingHandler:
|
|
1364
|
-
[
|
|
1356
|
+
t: It,
|
|
1357
|
+
getLocaleMessage: Lt,
|
|
1358
|
+
setLocaleMessage: No,
|
|
1359
|
+
mergeLocaleMessage: To,
|
|
1360
|
+
getPostTranslationHandler: $e,
|
|
1361
|
+
setPostTranslationHandler: lo,
|
|
1362
|
+
getMissingHandler: ao,
|
|
1363
|
+
setMissingHandler: io,
|
|
1364
|
+
[Bs]: Eo
|
|
1365
1365
|
};
|
|
1366
|
-
return
|
|
1366
|
+
return F.datetimeFormats = q, F.numberFormats = ke, F.rt = uo, F.te = yo, F.tm = Oo, F.d = fo, F.n = _o, F.getDateTimeFormat = Io, F.setDateTimeFormat = Lo, F.mergeDateTimeFormat = wo, F.getNumberFormat = So, F.setNumberFormat = Ao, F.mergeNumberFormat = Do, F[Hs] = e.__injectWithOption, F[st] = po, F[rt] = vo, F[lt] = ho, process.env.NODE_ENV !== "production" && (F[De] = (f) => {
|
|
1367
1367
|
v.__v_emitter = f;
|
|
1368
|
-
},
|
|
1368
|
+
}, F[at] = () => {
|
|
1369
1369
|
v.__v_emitter = void 0;
|
|
1370
|
-
}),
|
|
1370
|
+
}), F;
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const yt = {
|
|
1373
1373
|
tag: {
|
|
1374
1374
|
type: [String, Object]
|
|
1375
1375
|
},
|
|
@@ -1385,65 +1385,65 @@ const gt = {
|
|
|
1385
1385
|
type: Object
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
function
|
|
1389
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((
|
|
1390
|
-
...
|
|
1391
|
-
...
|
|
1392
|
-
], []) : t.reduce((n,
|
|
1393
|
-
const
|
|
1394
|
-
return
|
|
1388
|
+
function Ks({ slots: e }, t) {
|
|
1389
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((o, s) => o = [
|
|
1390
|
+
...o,
|
|
1391
|
+
...R(s.children) ? s.children : [s]
|
|
1392
|
+
], []) : t.reduce((n, o) => {
|
|
1393
|
+
const s = e[o];
|
|
1394
|
+
return s && (n[o] = s()), n;
|
|
1395
1395
|
}, {});
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1397
|
+
function jn(e) {
|
|
1398
|
+
return me;
|
|
1399
1399
|
}
|
|
1400
|
-
const
|
|
1400
|
+
const Ze = {
|
|
1401
1401
|
name: "i18n-t",
|
|
1402
|
-
props:
|
|
1402
|
+
props: B({
|
|
1403
1403
|
keypath: {
|
|
1404
1404
|
type: String,
|
|
1405
1405
|
required: !0
|
|
1406
1406
|
},
|
|
1407
1407
|
plural: {
|
|
1408
1408
|
type: [Number, String],
|
|
1409
|
-
validator: (e) =>
|
|
1409
|
+
validator: (e) => U(e) || !isNaN(e)
|
|
1410
1410
|
}
|
|
1411
|
-
},
|
|
1411
|
+
}, yt),
|
|
1412
1412
|
setup(e, t) {
|
|
1413
|
-
const { slots: n, attrs:
|
|
1413
|
+
const { slots: n, attrs: o } = t, s = e.i18n || Ot({
|
|
1414
1414
|
useScope: e.scope,
|
|
1415
1415
|
__useComponent: !0
|
|
1416
1416
|
});
|
|
1417
1417
|
return () => {
|
|
1418
|
-
const
|
|
1419
|
-
e.locale && (
|
|
1420
|
-
const
|
|
1421
|
-
return
|
|
1418
|
+
const l = Object.keys(n).filter((_) => _ !== "_"), r = {};
|
|
1419
|
+
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = E(e.plural) ? +e.plural : e.plural);
|
|
1420
|
+
const a = Ks(t, l), i = s[st](e.keypath, a, r), c = B({}, o), u = E(e.tag) || S(e.tag) ? e.tag : jn();
|
|
1421
|
+
return Ve(u, c, i);
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1425
|
+
function Xs(e) {
|
|
1426
|
+
return R(e) && !E(e[0]);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
const { slots:
|
|
1428
|
+
function Bn(e, t, n, o) {
|
|
1429
|
+
const { slots: s, attrs: l } = t;
|
|
1430
1430
|
return () => {
|
|
1431
|
-
const
|
|
1432
|
-
let
|
|
1433
|
-
e.locale && (
|
|
1434
|
-
const i =
|
|
1435
|
-
let c = [
|
|
1436
|
-
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1431
|
+
const r = { part: !0 };
|
|
1432
|
+
let a = {};
|
|
1433
|
+
e.locale && (r.locale = e.locale), E(e.format) ? r.key = e.format : S(e.format) && (E(e.format.key) && (r.key = e.format.key), a = Object.keys(e.format).reduce((d, g) => n.includes(g) ? B({}, d, { [g]: e.format[g] }) : d, {}));
|
|
1434
|
+
const i = o(e.value, r, a);
|
|
1435
|
+
let c = [r.key];
|
|
1436
|
+
R(i) ? c = i.map((d, g) => {
|
|
1437
|
+
const b = s[d.type], p = b ? b({ [d.type]: d.value, index: g, parts: i }) : [d.value];
|
|
1438
|
+
return Xs(p) && (p[0].key = `${d.type}-${g}`), p;
|
|
1439
1439
|
}) : E(i) && (c = [i]);
|
|
1440
|
-
const u =
|
|
1441
|
-
return
|
|
1440
|
+
const u = B({}, l), _ = E(e.tag) || S(e.tag) ? e.tag : jn();
|
|
1441
|
+
return Ve(_, u, c);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
const
|
|
1444
|
+
const Jt = {
|
|
1445
1445
|
name: "i18n-n",
|
|
1446
|
-
props:
|
|
1446
|
+
props: B({
|
|
1447
1447
|
value: {
|
|
1448
1448
|
type: Number,
|
|
1449
1449
|
required: !0
|
|
@@ -1451,14 +1451,14 @@ const jt = {
|
|
|
1451
1451
|
format: {
|
|
1452
1452
|
type: [String, Object]
|
|
1453
1453
|
}
|
|
1454
|
-
},
|
|
1454
|
+
}, yt),
|
|
1455
1455
|
setup(e, t) {
|
|
1456
|
-
const n = e.i18n ||
|
|
1457
|
-
return
|
|
1456
|
+
const n = e.i18n || Ot({ useScope: "parent", __useComponent: !0 });
|
|
1457
|
+
return Bn(e, t, Fn, (...o) => n[lt](...o));
|
|
1458
1458
|
}
|
|
1459
|
-
},
|
|
1459
|
+
}, Qt = {
|
|
1460
1460
|
name: "i18n-d",
|
|
1461
|
-
props:
|
|
1461
|
+
props: B({
|
|
1462
1462
|
value: {
|
|
1463
1463
|
type: [Number, Date],
|
|
1464
1464
|
required: !0
|
|
@@ -1466,146 +1466,146 @@ const jt = {
|
|
|
1466
1466
|
format: {
|
|
1467
1467
|
type: [String, Object]
|
|
1468
1468
|
}
|
|
1469
|
-
},
|
|
1469
|
+
}, yt),
|
|
1470
1470
|
setup(e, t) {
|
|
1471
|
-
const n = e.i18n ||
|
|
1472
|
-
return
|
|
1471
|
+
const n = e.i18n || Ot({ useScope: "parent", __useComponent: !0 });
|
|
1472
|
+
return Bn(e, t, Rn, (...o) => n[rt](...o));
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
|
-
function
|
|
1475
|
+
function Js(e, t) {
|
|
1476
1476
|
const n = e;
|
|
1477
1477
|
if (e.mode === "composition")
|
|
1478
1478
|
return n.__getInstance(t) || e.global;
|
|
1479
1479
|
{
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1480
|
+
const o = n.__getInstance(t);
|
|
1481
|
+
return o != null ? o.__composer : e.global.__composer;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
const t = (
|
|
1486
|
-
const { instance:
|
|
1487
|
-
if (!
|
|
1484
|
+
function Qs(e) {
|
|
1485
|
+
const t = (r) => {
|
|
1486
|
+
const { instance: a, modifiers: i, value: c } = r;
|
|
1487
|
+
if (!a || !a.$)
|
|
1488
1488
|
throw J(D.UNEXPECTED_ERROR);
|
|
1489
|
-
const u =
|
|
1490
|
-
process.env.NODE_ENV !== "production" && i.preserve &&
|
|
1491
|
-
const
|
|
1489
|
+
const u = Js(e, a.$);
|
|
1490
|
+
process.env.NODE_ENV !== "production" && i.preserve && Oe(Ke(Z.NOT_SUPPORTED_PRESERVE));
|
|
1491
|
+
const _ = qt(c);
|
|
1492
1492
|
return [
|
|
1493
|
-
Reflect.apply(u.t, u, [...
|
|
1493
|
+
Reflect.apply(u.t, u, [...Zt(_)]),
|
|
1494
1494
|
u
|
|
1495
1495
|
];
|
|
1496
1496
|
};
|
|
1497
1497
|
return {
|
|
1498
|
-
created: (
|
|
1499
|
-
const [i, c] = t(
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
})),
|
|
1498
|
+
created: (r, a) => {
|
|
1499
|
+
const [i, c] = t(a);
|
|
1500
|
+
se && e.global === c && (r.__i18nWatcher = Ue(c.locale, () => {
|
|
1501
|
+
a.instance && a.instance.$forceUpdate();
|
|
1502
|
+
})), r.__composer = c, r.textContent = i;
|
|
1503
1503
|
},
|
|
1504
|
-
unmounted: (
|
|
1505
|
-
|
|
1504
|
+
unmounted: (r) => {
|
|
1505
|
+
se && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
|
1506
1506
|
},
|
|
1507
|
-
beforeUpdate: (
|
|
1508
|
-
if (
|
|
1509
|
-
const i =
|
|
1510
|
-
|
|
1511
|
-
...
|
|
1507
|
+
beforeUpdate: (r, { value: a }) => {
|
|
1508
|
+
if (r.__composer) {
|
|
1509
|
+
const i = r.__composer, c = qt(a);
|
|
1510
|
+
r.textContent = Reflect.apply(i.t, i, [
|
|
1511
|
+
...Zt(c)
|
|
1512
1512
|
]);
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
|
-
getSSRProps: (
|
|
1516
|
-
const [
|
|
1517
|
-
return { textContent:
|
|
1515
|
+
getSSRProps: (r) => {
|
|
1516
|
+
const [a] = t(r);
|
|
1517
|
+
return { textContent: a };
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function qt(e) {
|
|
1522
1522
|
if (E(e))
|
|
1523
1523
|
return { path: e };
|
|
1524
|
-
if (
|
|
1524
|
+
if (I(e)) {
|
|
1525
1525
|
if (!("path" in e))
|
|
1526
1526
|
throw J(D.REQUIRED_VALUE, "path");
|
|
1527
1527
|
return e;
|
|
1528
1528
|
} else
|
|
1529
1529
|
throw J(D.INVALID_VALUE);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const { path: t, locale: n, args:
|
|
1533
|
-
return E(n) && (
|
|
1534
|
-
}
|
|
1535
|
-
function
|
|
1536
|
-
const
|
|
1537
|
-
process.env.NODE_ENV !== "production" &&
|
|
1538
|
-
name:
|
|
1539
|
-
})),
|
|
1540
|
-
}
|
|
1541
|
-
const
|
|
1542
|
-
let
|
|
1543
|
-
async function
|
|
1544
|
-
return new Promise((n,
|
|
1531
|
+
function Zt(e) {
|
|
1532
|
+
const { path: t, locale: n, args: o, choice: s, plural: l } = e, r = {}, a = o || {};
|
|
1533
|
+
return E(n) && (r.locale = n), U(s) && (r.plural = s), U(l) && (r.plural = l), [t, a, r];
|
|
1534
|
+
}
|
|
1535
|
+
function qs(e, t, ...n) {
|
|
1536
|
+
const o = I(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, l = $(o.globalInstall) ? o.globalInstall : !0;
|
|
1537
|
+
process.env.NODE_ENV !== "production" && l && s && Oe(Ke(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
1538
|
+
name: Ze.name
|
|
1539
|
+
})), l && (e.component(s ? "i18n" : Ze.name, Ze), e.component(Jt.name, Jt), e.component(Qt.name, Qt)), e.directive("t", Qs(t));
|
|
1540
|
+
}
|
|
1541
|
+
const Hn = "vue-i18n: composer properties";
|
|
1542
|
+
let ct;
|
|
1543
|
+
async function Zs(e, t) {
|
|
1544
|
+
return new Promise((n, o) => {
|
|
1545
1545
|
try {
|
|
1546
|
-
|
|
1546
|
+
Ms({
|
|
1547
1547
|
id: "vue-devtools-plugin-vue-i18n",
|
|
1548
|
-
label:
|
|
1548
|
+
label: qe["vue-devtools-plugin-vue-i18n"],
|
|
1549
1549
|
packageName: "vue-i18n",
|
|
1550
1550
|
homepage: "https://vue-i18n.intlify.dev",
|
|
1551
1551
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
1552
|
-
componentStateTypes: [
|
|
1552
|
+
componentStateTypes: [Hn],
|
|
1553
1553
|
app: e
|
|
1554
|
-
}, (
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
}),
|
|
1558
|
-
|
|
1559
|
-
}),
|
|
1554
|
+
}, (s) => {
|
|
1555
|
+
ct = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: a }) => {
|
|
1556
|
+
er(r, a, t);
|
|
1557
|
+
}), s.on.inspectComponent(({ componentInstance: r, instanceData: a }) => {
|
|
1558
|
+
r.vnode.el && r.vnode.el.__VUE_I18N__ && a && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && en(a, r.vnode.el.__VUE_I18N__) : en(a, r.vnode.el.__VUE_I18N__));
|
|
1559
|
+
}), s.addInspector({
|
|
1560
1560
|
id: "vue-i18n-resource-inspector",
|
|
1561
|
-
label:
|
|
1561
|
+
label: qe["vue-i18n-resource-inspector"],
|
|
1562
1562
|
icon: "language",
|
|
1563
|
-
treeFilterPlaceholder:
|
|
1564
|
-
}),
|
|
1565
|
-
|
|
1563
|
+
treeFilterPlaceholder: Vs["vue-i18n-resource-inspector"]
|
|
1564
|
+
}), s.on.getInspectorTree((r) => {
|
|
1565
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && rr(r, t);
|
|
1566
1566
|
});
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1569
|
-
if (
|
|
1570
|
-
if (
|
|
1571
|
-
if (!
|
|
1572
|
-
const [
|
|
1573
|
-
|
|
1567
|
+
const l = /* @__PURE__ */ new Map();
|
|
1568
|
+
s.on.getInspectorState(async (r) => {
|
|
1569
|
+
if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
|
|
1570
|
+
if (s.unhighlightElement(), ar(r, t), r.nodeId === "global") {
|
|
1571
|
+
if (!l.has(r.app)) {
|
|
1572
|
+
const [a] = await s.getComponentInstances(r.app);
|
|
1573
|
+
l.set(r.app, a);
|
|
1574
1574
|
}
|
|
1575
|
-
|
|
1575
|
+
s.highlightElement(l.get(r.app));
|
|
1576
1576
|
} else {
|
|
1577
|
-
const
|
|
1578
|
-
|
|
1577
|
+
const a = lr(r.nodeId, t);
|
|
1578
|
+
a && s.highlightElement(a);
|
|
1579
1579
|
}
|
|
1580
|
-
}),
|
|
1581
|
-
|
|
1582
|
-
}),
|
|
1580
|
+
}), s.on.editInspectorState((r) => {
|
|
1581
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && cr(r, t);
|
|
1582
|
+
}), s.addTimelineLayer({
|
|
1583
1583
|
id: "vue-i18n-timeline",
|
|
1584
|
-
label:
|
|
1585
|
-
color:
|
|
1584
|
+
label: qe["vue-i18n-timeline"],
|
|
1585
|
+
color: Us["vue-i18n-timeline"]
|
|
1586
1586
|
}), n(!0);
|
|
1587
1587
|
});
|
|
1588
|
-
} catch (
|
|
1589
|
-
console.error(
|
|
1588
|
+
} catch (s) {
|
|
1589
|
+
console.error(s), o(!1);
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function zn(e) {
|
|
1594
1594
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const
|
|
1598
|
-
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !==
|
|
1599
|
-
const
|
|
1600
|
-
label: `i18n (${
|
|
1596
|
+
function er(e, t, n) {
|
|
1597
|
+
const o = n.mode === "composition" ? n.global : n.global.__composer;
|
|
1598
|
+
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== o) {
|
|
1599
|
+
const s = {
|
|
1600
|
+
label: `i18n (${zn(e)} Scope)`,
|
|
1601
1601
|
textColor: 0,
|
|
1602
1602
|
backgroundColor: 16764185
|
|
1603
1603
|
};
|
|
1604
|
-
t.tags.push(
|
|
1604
|
+
t.tags.push(s);
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1608
|
-
const n =
|
|
1607
|
+
function en(e, t) {
|
|
1608
|
+
const n = Hn;
|
|
1609
1609
|
e.state.push({
|
|
1610
1610
|
type: n,
|
|
1611
1611
|
key: "locale",
|
|
@@ -1630,7 +1630,7 @@ function Yt(e, t) {
|
|
|
1630
1630
|
type: n,
|
|
1631
1631
|
key: "messages",
|
|
1632
1632
|
editable: !1,
|
|
1633
|
-
value:
|
|
1633
|
+
value: bt(t.messages.value)
|
|
1634
1634
|
}), e.state.push({
|
|
1635
1635
|
type: n,
|
|
1636
1636
|
key: "datetimeFormats",
|
|
@@ -1643,27 +1643,27 @@ function Yt(e, t) {
|
|
|
1643
1643
|
value: t.numberFormats.value
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function bt(e) {
|
|
1647
1647
|
const t = {};
|
|
1648
1648
|
return Object.keys(e).forEach((n) => {
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1649
|
+
const o = e[n];
|
|
1650
|
+
V(o) && "source" in o ? t[n] = sr(o) : S(o) ? t[n] = bt(o) : t[n] = o;
|
|
1651
1651
|
}), t;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1653
|
+
const tr = {
|
|
1654
1654
|
"<": "<",
|
|
1655
1655
|
">": ">",
|
|
1656
1656
|
'"': """,
|
|
1657
1657
|
"&": "&"
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1660
|
-
return e.replace(/[<>"&]/g,
|
|
1659
|
+
function nr(e) {
|
|
1660
|
+
return e.replace(/[<>"&]/g, or);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
1662
|
+
function or(e) {
|
|
1663
|
+
return tr[e] || e;
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const t = e.source ? `("${
|
|
1665
|
+
function sr(e) {
|
|
1666
|
+
const t = e.source ? `("${nr(e.source)}")` : "(?)";
|
|
1667
1667
|
return {
|
|
1668
1668
|
_custom: {
|
|
1669
1669
|
type: "function",
|
|
@@ -1671,45 +1671,45 @@ function qr(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function rr(e, t) {
|
|
1675
1675
|
e.rootNodes.push({
|
|
1676
1676
|
id: "global",
|
|
1677
1677
|
label: "Global Scope"
|
|
1678
1678
|
});
|
|
1679
1679
|
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
1680
|
-
for (const [
|
|
1681
|
-
const
|
|
1682
|
-
n !==
|
|
1683
|
-
id:
|
|
1684
|
-
label: `${
|
|
1680
|
+
for (const [o, s] of t.__instances) {
|
|
1681
|
+
const l = t.mode === "composition" ? s : s.__composer;
|
|
1682
|
+
n !== l && e.rootNodes.push({
|
|
1683
|
+
id: l.id.toString(),
|
|
1684
|
+
label: `${zn(o)} Scope`
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function lr(e, t) {
|
|
1689
1689
|
let n = null;
|
|
1690
1690
|
if (e !== "global") {
|
|
1691
|
-
for (const [
|
|
1692
|
-
if (
|
|
1693
|
-
n =
|
|
1691
|
+
for (const [o, s] of t.__instances.entries())
|
|
1692
|
+
if (s.id.toString() === e) {
|
|
1693
|
+
n = o;
|
|
1694
1694
|
break;
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
return n;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function Yn(e, t) {
|
|
1700
1700
|
if (e === "global")
|
|
1701
1701
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
1702
1702
|
{
|
|
1703
|
-
const n = Array.from(t.__instances.values()).find((
|
|
1703
|
+
const n = Array.from(t.__instances.values()).find((o) => o.id.toString() === e);
|
|
1704
1704
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
const n =
|
|
1709
|
-
return n && (e.state =
|
|
1707
|
+
function ar(e, t) {
|
|
1708
|
+
const n = Yn(e.nodeId, t);
|
|
1709
|
+
return n && (e.state = ir(n)), null;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1712
|
-
const t = {}, n = "Locale related info",
|
|
1711
|
+
function ir(e) {
|
|
1712
|
+
const t = {}, n = "Locale related info", o = [
|
|
1713
1713
|
{
|
|
1714
1714
|
type: n,
|
|
1715
1715
|
key: "locale",
|
|
@@ -1735,26 +1735,26 @@ function ns(e) {
|
|
|
1735
1735
|
value: e.inheritLocale
|
|
1736
1736
|
}
|
|
1737
1737
|
];
|
|
1738
|
-
t[n] =
|
|
1739
|
-
const
|
|
1738
|
+
t[n] = o;
|
|
1739
|
+
const s = "Locale messages info", l = [
|
|
1740
1740
|
{
|
|
1741
|
-
type:
|
|
1741
|
+
type: s,
|
|
1742
1742
|
key: "messages",
|
|
1743
1743
|
editable: !1,
|
|
1744
|
-
value:
|
|
1744
|
+
value: bt(e.messages.value)
|
|
1745
1745
|
}
|
|
1746
1746
|
];
|
|
1747
|
-
t[
|
|
1747
|
+
t[s] = l;
|
|
1748
1748
|
{
|
|
1749
|
-
const
|
|
1749
|
+
const r = "Datetime formats info", a = [
|
|
1750
1750
|
{
|
|
1751
|
-
type:
|
|
1751
|
+
type: r,
|
|
1752
1752
|
key: "datetimeFormats",
|
|
1753
1753
|
editable: !1,
|
|
1754
1754
|
value: e.datetimeFormats.value
|
|
1755
1755
|
}
|
|
1756
1756
|
];
|
|
1757
|
-
t[
|
|
1757
|
+
t[r] = a;
|
|
1758
1758
|
const i = "Datetime formats info", c = [
|
|
1759
1759
|
{
|
|
1760
1760
|
type: i,
|
|
@@ -1767,10 +1767,10 @@ function ns(e) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
return t;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
if (
|
|
1770
|
+
function ut(e, t) {
|
|
1771
|
+
if (ct) {
|
|
1772
1772
|
let n;
|
|
1773
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
1773
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), ct.addTimelineEvent({
|
|
1774
1774
|
layerId: "vue-i18n-timeline",
|
|
1775
1775
|
event: {
|
|
1776
1776
|
title: e,
|
|
@@ -1783,176 +1783,176 @@ function at(e, t) {
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
const n =
|
|
1786
|
+
function cr(e, t) {
|
|
1787
|
+
const n = Yn(e.nodeId, t);
|
|
1788
1788
|
if (n) {
|
|
1789
|
-
const [
|
|
1790
|
-
|
|
1789
|
+
const [o] = e.path;
|
|
1790
|
+
o === "locale" && E(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (E(e.state.value) || R(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : o === "inheritLocale" && $(e.state.value) && (n.inheritLocale = e.state.value);
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
const
|
|
1794
|
-
function
|
|
1795
|
-
const n =
|
|
1796
|
-
function i(
|
|
1797
|
-
return
|
|
1793
|
+
const ur = /* @__PURE__ */ re("global-vue-i18n");
|
|
1794
|
+
function fr(e = {}, t) {
|
|
1795
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [l, r] = dr(e), a = re(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1796
|
+
function i(_) {
|
|
1797
|
+
return s.get(_) || null;
|
|
1798
1798
|
}
|
|
1799
|
-
function c(
|
|
1800
|
-
|
|
1799
|
+
function c(_, d) {
|
|
1800
|
+
s.set(_, d);
|
|
1801
1801
|
}
|
|
1802
|
-
function u(
|
|
1803
|
-
|
|
1802
|
+
function u(_) {
|
|
1803
|
+
s.delete(_);
|
|
1804
1804
|
}
|
|
1805
1805
|
{
|
|
1806
|
-
const
|
|
1806
|
+
const _ = {
|
|
1807
1807
|
get mode() {
|
|
1808
1808
|
return "composition";
|
|
1809
1809
|
},
|
|
1810
1810
|
get allowComposition() {
|
|
1811
|
-
return
|
|
1811
|
+
return o;
|
|
1812
1812
|
},
|
|
1813
|
-
async install(
|
|
1814
|
-
process.env.NODE_ENV !== "production" && (
|
|
1815
|
-
const
|
|
1816
|
-
if (
|
|
1817
|
-
|
|
1813
|
+
async install(d, ...g) {
|
|
1814
|
+
process.env.NODE_ENV !== "production" && (d.__VUE_I18N__ = _), d.__VUE_I18N_SYMBOL__ = a, d.provide(d.__VUE_I18N_SYMBOL__, _), n && yr(d, _.global), qs(d, _, ...g);
|
|
1815
|
+
const b = d.unmount;
|
|
1816
|
+
if (d.unmount = () => {
|
|
1817
|
+
_.dispose(), b();
|
|
1818
1818
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
1819
|
-
if (!await
|
|
1819
|
+
if (!await Zs(d, _))
|
|
1820
1820
|
throw J(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1821
|
-
const h =
|
|
1821
|
+
const h = On();
|
|
1822
1822
|
{
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1823
|
+
const y = r;
|
|
1824
|
+
y[De] && y[De](h);
|
|
1825
1825
|
}
|
|
1826
|
-
h.on("*",
|
|
1826
|
+
h.on("*", ut);
|
|
1827
1827
|
}
|
|
1828
1828
|
},
|
|
1829
1829
|
get global() {
|
|
1830
|
-
return
|
|
1830
|
+
return r;
|
|
1831
1831
|
},
|
|
1832
1832
|
dispose() {
|
|
1833
|
-
|
|
1833
|
+
l.stop();
|
|
1834
1834
|
},
|
|
1835
|
-
__instances:
|
|
1835
|
+
__instances: s,
|
|
1836
1836
|
__getInstance: i,
|
|
1837
1837
|
__setInstance: c,
|
|
1838
1838
|
__deleteInstance: u
|
|
1839
1839
|
};
|
|
1840
|
-
return
|
|
1840
|
+
return _;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1844
|
-
const t =
|
|
1843
|
+
function Ot(e = {}) {
|
|
1844
|
+
const t = dt();
|
|
1845
1845
|
if (t == null)
|
|
1846
1846
|
throw J(D.MUST_BE_CALL_SETUP_TOP);
|
|
1847
1847
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1848
1848
|
throw J(D.NOT_INSLALLED);
|
|
1849
|
-
const n =
|
|
1850
|
-
if (
|
|
1851
|
-
return
|
|
1852
|
-
if (
|
|
1853
|
-
let i =
|
|
1854
|
-
return i == null && (process.env.NODE_ENV !== "production" &&
|
|
1855
|
-
}
|
|
1856
|
-
const
|
|
1857
|
-
let
|
|
1858
|
-
if (
|
|
1859
|
-
const i =
|
|
1860
|
-
"__i18n" in
|
|
1849
|
+
const n = _r(t), o = gr(n), s = Gn(t), l = mr(e, s);
|
|
1850
|
+
if (l === "global")
|
|
1851
|
+
return zs(o, e, s), o;
|
|
1852
|
+
if (l === "parent") {
|
|
1853
|
+
let i = pr(n, t, e.__useComponent);
|
|
1854
|
+
return i == null && (process.env.NODE_ENV !== "production" && Oe(Ke(Z.NOT_FOUND_PARENT_SCOPE)), i = o), i;
|
|
1855
|
+
}
|
|
1856
|
+
const r = n;
|
|
1857
|
+
let a = r.__getInstance(t);
|
|
1858
|
+
if (a == null) {
|
|
1859
|
+
const i = B({}, e);
|
|
1860
|
+
"__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), a = Wn(i), hr(r, t, a), r.__setInstance(t, a);
|
|
1861
1861
|
}
|
|
1862
|
-
return
|
|
1862
|
+
return a;
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
const
|
|
1864
|
+
function dr(e, t, n) {
|
|
1865
|
+
const o = Po();
|
|
1866
1866
|
{
|
|
1867
|
-
const
|
|
1868
|
-
if (
|
|
1867
|
+
const s = o.run(() => Wn(e));
|
|
1868
|
+
if (s == null)
|
|
1869
1869
|
throw J(D.UNEXPECTED_ERROR);
|
|
1870
|
-
return [
|
|
1870
|
+
return [o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function _r(e) {
|
|
1874
1874
|
{
|
|
1875
|
-
const t =
|
|
1875
|
+
const t = En(e.isCE ? ur : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1876
1876
|
if (!t)
|
|
1877
1877
|
throw J(e.isCE ? D.NOT_INSLALLED_WITH_PROVIDE : D.UNEXPECTED_ERROR);
|
|
1878
1878
|
return t;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
return
|
|
1881
|
+
function mr(e, t) {
|
|
1882
|
+
return He(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function gr(e) {
|
|
1885
1885
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1888
|
-
let
|
|
1889
|
-
const
|
|
1890
|
-
let
|
|
1891
|
-
for (;
|
|
1892
|
-
const
|
|
1893
|
-
if (e.mode === "composition" && (
|
|
1887
|
+
function pr(e, t, n = !1) {
|
|
1888
|
+
let o = null;
|
|
1889
|
+
const s = t.root;
|
|
1890
|
+
let l = t.parent;
|
|
1891
|
+
for (; l != null; ) {
|
|
1892
|
+
const r = e;
|
|
1893
|
+
if (e.mode === "composition" && (o = r.__getInstance(l)), o != null || s === l)
|
|
1894
1894
|
break;
|
|
1895
|
-
|
|
1895
|
+
l = l.parent;
|
|
1896
1896
|
}
|
|
1897
|
-
return
|
|
1897
|
+
return o;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1900
|
-
let
|
|
1901
|
-
|
|
1899
|
+
function hr(e, t, n) {
|
|
1900
|
+
let o = null;
|
|
1901
|
+
ko(() => {
|
|
1902
1902
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
1903
|
-
t.vnode.el.__VUE_I18N__ = n,
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1903
|
+
t.vnode.el.__VUE_I18N__ = n, o = On();
|
|
1904
|
+
const s = n;
|
|
1905
|
+
s[De] && s[De](o), o.on("*", ut);
|
|
1906
1906
|
}
|
|
1907
|
-
}, t),
|
|
1907
|
+
}, t), $o(() => {
|
|
1908
1908
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1909
|
+
o && o.off("*", ut);
|
|
1910
|
+
const s = n;
|
|
1911
|
+
s[at] && s[at](), delete t.vnode.el.__VUE_I18N__;
|
|
1912
1912
|
}
|
|
1913
1913
|
e.__deleteInstance(t);
|
|
1914
1914
|
}, t);
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1916
|
+
const vr = [
|
|
1917
1917
|
"locale",
|
|
1918
1918
|
"fallbackLocale",
|
|
1919
1919
|
"availableLocales"
|
|
1920
|
-
],
|
|
1921
|
-
function
|
|
1920
|
+
], Er = ["t", "rt", "d", "n", "tm"];
|
|
1921
|
+
function yr(e, t) {
|
|
1922
1922
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1923
|
-
|
|
1924
|
-
const
|
|
1925
|
-
if (!
|
|
1923
|
+
vr.forEach((o) => {
|
|
1924
|
+
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1925
|
+
if (!s)
|
|
1926
1926
|
throw J(D.UNEXPECTED_ERROR);
|
|
1927
|
-
const
|
|
1927
|
+
const l = Ro(s.value) ? {
|
|
1928
1928
|
get() {
|
|
1929
|
-
return
|
|
1929
|
+
return s.value.value;
|
|
1930
1930
|
},
|
|
1931
|
-
set(
|
|
1932
|
-
|
|
1931
|
+
set(r) {
|
|
1932
|
+
s.value.value = r;
|
|
1933
1933
|
}
|
|
1934
1934
|
} : {
|
|
1935
1935
|
get() {
|
|
1936
|
-
return
|
|
1936
|
+
return s.get && s.get();
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
|
-
Object.defineProperty(n,
|
|
1940
|
-
}), e.config.globalProperties.$i18n = n,
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1939
|
+
Object.defineProperty(n, o, l);
|
|
1940
|
+
}), e.config.globalProperties.$i18n = n, Er.forEach((o) => {
|
|
1941
|
+
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1942
|
+
if (!s || !s.value)
|
|
1943
1943
|
throw J(D.UNEXPECTED_ERROR);
|
|
1944
|
-
Object.defineProperty(e.config.globalProperties, `$${
|
|
1944
|
+
Object.defineProperty(e.config.globalProperties, `$${o}`, s);
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1947
|
+
ys(es);
|
|
1948
|
+
bs(In);
|
|
1949
|
+
Gs();
|
|
1950
1950
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1951
|
-
const e =
|
|
1952
|
-
e.__INTLIFY__ = !0,
|
|
1951
|
+
const e = gt();
|
|
1952
|
+
e.__INTLIFY__ = !0, cs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1953
1953
|
}
|
|
1954
1954
|
process.env.NODE_ENV;
|
|
1955
|
-
const
|
|
1955
|
+
const br = {
|
|
1956
1956
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1957
1957
|
const { normalize: t } = e;
|
|
1958
1958
|
return t(["\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907"]);
|
|
@@ -1964,8 +1964,12 @@ const gs = {
|
|
|
1964
1964
|
"biao-zhun-bu-ju": (e) => {
|
|
1965
1965
|
const { normalize: t } = e;
|
|
1966
1966
|
return t(["\u6807\u51C6\u5E03\u5C40"]);
|
|
1967
|
+
},
|
|
1968
|
+
"zi-ding-yi-bu-ju": (e) => {
|
|
1969
|
+
const { normalize: t } = e;
|
|
1970
|
+
return t(["\u81EA\u5B9A\u4E49\u5E03\u5C40"]);
|
|
1967
1971
|
}
|
|
1968
|
-
},
|
|
1972
|
+
}, Or = {
|
|
1969
1973
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1970
1974
|
const { normalize: t } = e;
|
|
1971
1975
|
return t(["online only"]);
|
|
@@ -1977,58 +1981,64 @@ const gs = {
|
|
|
1977
1981
|
"biao-zhun-bu-ju": (e) => {
|
|
1978
1982
|
const { normalize: t } = e;
|
|
1979
1983
|
return t(["Classical"]);
|
|
1984
|
+
},
|
|
1985
|
+
"zi-ding-yi-bu-ju": (e) => {
|
|
1986
|
+
const { normalize: t } = e;
|
|
1987
|
+
return t(["Custom"]);
|
|
1980
1988
|
}
|
|
1981
1989
|
};
|
|
1982
|
-
var
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
Gn.global.locale = e;
|
|
1990
|
+
var Kn = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(Kn || {});
|
|
1991
|
+
let Se;
|
|
1992
|
+
function Nr(e) {
|
|
1993
|
+
Se && Se.dispose(), Se = fr({
|
|
1994
|
+
locale: e,
|
|
1995
|
+
messages: {
|
|
1996
|
+
zh: br,
|
|
1997
|
+
en: Or
|
|
1998
|
+
},
|
|
1999
|
+
fallbackLocale: "en",
|
|
2000
|
+
silentTranslationWarn: !0,
|
|
2001
|
+
silentFallbackWarn: !0
|
|
2002
|
+
});
|
|
1996
2003
|
}
|
|
1997
|
-
function
|
|
1998
|
-
|
|
2004
|
+
function Tr(e) {
|
|
2005
|
+
Nr(e), Se.global.locale = e;
|
|
1999
2006
|
}
|
|
2000
|
-
|
|
2007
|
+
function Nt(e) {
|
|
2008
|
+
return Se.global.t(e);
|
|
2009
|
+
}
|
|
2010
|
+
var tn;
|
|
2001
2011
|
((e) => {
|
|
2002
2012
|
((n) => {
|
|
2003
|
-
function r
|
|
2004
|
-
const
|
|
2005
|
-
for (let
|
|
2006
|
-
|
|
2013
|
+
function o(r, a) {
|
|
2014
|
+
const i = [];
|
|
2015
|
+
for (let c = 0; c < r; c++)
|
|
2016
|
+
i.push({
|
|
2007
2017
|
id: "testId",
|
|
2008
2018
|
pid: "",
|
|
2009
|
-
name: `device-${
|
|
2010
|
-
online:
|
|
2019
|
+
name: `device-${c}`,
|
|
2020
|
+
online: c % 2 == 0 && a,
|
|
2011
2021
|
channels: []
|
|
2012
2022
|
});
|
|
2013
|
-
return
|
|
2023
|
+
return i;
|
|
2014
2024
|
}
|
|
2015
|
-
function
|
|
2016
|
-
const
|
|
2017
|
-
for (let i = 0; i <
|
|
2018
|
-
|
|
2025
|
+
function s(r) {
|
|
2026
|
+
const a = [];
|
|
2027
|
+
for (let i = 0; i < r; i++)
|
|
2028
|
+
a.push({
|
|
2019
2029
|
id: `groupid-${i}`,
|
|
2020
2030
|
name: `group-${i}`,
|
|
2021
2031
|
pid: "",
|
|
2022
2032
|
onlineCount: 0,
|
|
2023
2033
|
totalCount: 0,
|
|
2024
|
-
devices:
|
|
2025
|
-
items:
|
|
2034
|
+
devices: o(14, r % 2 == 0),
|
|
2035
|
+
items: s(r - i - 1)
|
|
2026
2036
|
});
|
|
2027
|
-
return
|
|
2037
|
+
return a;
|
|
2028
2038
|
}
|
|
2029
|
-
function
|
|
2030
|
-
const
|
|
2031
|
-
return
|
|
2039
|
+
function l(r) {
|
|
2040
|
+
const a = s(r);
|
|
2041
|
+
return a[r - 1].items.push({
|
|
2032
2042
|
id: "groupid-ttttttt",
|
|
2033
2043
|
name: "group-ttttt",
|
|
2034
2044
|
pid: "",
|
|
@@ -2042,57 +2052,57 @@ var Kt;
|
|
|
2042
2052
|
channels: []
|
|
2043
2053
|
}],
|
|
2044
2054
|
items: []
|
|
2045
|
-
}), console.log(
|
|
2055
|
+
}), console.log(a), {
|
|
2046
2056
|
name: "hah",
|
|
2047
2057
|
onlineCount: 0,
|
|
2048
2058
|
totalCount: 0,
|
|
2049
|
-
items:
|
|
2059
|
+
items: a
|
|
2050
2060
|
};
|
|
2051
2061
|
}
|
|
2052
|
-
n.RandomDeviceGroup =
|
|
2062
|
+
n.RandomDeviceGroup = l;
|
|
2053
2063
|
})(e.Test || (e.Test = {}));
|
|
2054
|
-
function t(n,
|
|
2055
|
-
for (let
|
|
2056
|
-
|
|
2064
|
+
function t(n, o) {
|
|
2065
|
+
for (let s = 0; s < n.length; s++)
|
|
2066
|
+
o(n[s]), t(n[s].items, o);
|
|
2057
2067
|
}
|
|
2058
2068
|
((n) => {
|
|
2059
|
-
function
|
|
2060
|
-
const
|
|
2061
|
-
return t(
|
|
2062
|
-
a
|
|
2063
|
-
for (let i = 0; i <
|
|
2064
|
-
|
|
2069
|
+
function o(s) {
|
|
2070
|
+
const l = {}, r = {};
|
|
2071
|
+
return t(s.items, (a) => {
|
|
2072
|
+
l[a.id] = a;
|
|
2073
|
+
for (let i = 0; i < a.devices.length; i++)
|
|
2074
|
+
r[a.devices[i].id] = a.devices[i];
|
|
2065
2075
|
}), {
|
|
2066
|
-
getGroup(
|
|
2067
|
-
return a
|
|
2076
|
+
getGroup(a) {
|
|
2077
|
+
return l[a];
|
|
2068
2078
|
},
|
|
2069
|
-
getDevice(
|
|
2070
|
-
return
|
|
2079
|
+
getDevice(a) {
|
|
2080
|
+
return r[a];
|
|
2071
2081
|
},
|
|
2072
|
-
foreachGroup(
|
|
2073
|
-
for (let i in
|
|
2074
|
-
l
|
|
2082
|
+
foreachGroup(a) {
|
|
2083
|
+
for (let i in l)
|
|
2084
|
+
a(l[i]);
|
|
2075
2085
|
}
|
|
2076
2086
|
};
|
|
2077
2087
|
}
|
|
2078
|
-
n.AccessSession =
|
|
2088
|
+
n.AccessSession = o;
|
|
2079
2089
|
})(e.Utils || (e.Utils = {}));
|
|
2080
|
-
})(
|
|
2081
|
-
var
|
|
2090
|
+
})(tn || (tn = {}));
|
|
2091
|
+
var M;
|
|
2082
2092
|
((e) => {
|
|
2083
|
-
function t(n,
|
|
2084
|
-
if (
|
|
2085
|
-
let
|
|
2086
|
-
return
|
|
2087
|
-
|
|
2093
|
+
function t(n, o, s) {
|
|
2094
|
+
if (s) {
|
|
2095
|
+
let r = n * o;
|
|
2096
|
+
return s.forEach(([a, i, c, u]) => {
|
|
2097
|
+
r -= (u - i) * (c - a) - 1;
|
|
2088
2098
|
}), {
|
|
2089
|
-
count:
|
|
2099
|
+
count: r,
|
|
2090
2100
|
row: n,
|
|
2091
|
-
col:
|
|
2092
|
-
name: `${
|
|
2093
|
-
areas:
|
|
2101
|
+
col: o,
|
|
2102
|
+
name: `${r < 10 ? `0${r}` : r}`,
|
|
2103
|
+
areas: s.map(([a, i, c, u]) => ({
|
|
2094
2104
|
leftTop: {
|
|
2095
|
-
col:
|
|
2105
|
+
col: a,
|
|
2096
2106
|
row: i
|
|
2097
2107
|
},
|
|
2098
2108
|
rightBottom: {
|
|
@@ -2102,45 +2112,45 @@ var x;
|
|
|
2102
2112
|
}))
|
|
2103
2113
|
};
|
|
2104
2114
|
}
|
|
2105
|
-
const
|
|
2115
|
+
const l = n * o;
|
|
2106
2116
|
return {
|
|
2107
|
-
count:
|
|
2117
|
+
count: l,
|
|
2108
2118
|
row: n,
|
|
2109
|
-
col:
|
|
2110
|
-
name: `${
|
|
2119
|
+
col: o,
|
|
2120
|
+
name: `${l < 10 ? `0${l}` : l}`
|
|
2111
2121
|
};
|
|
2112
2122
|
}
|
|
2113
2123
|
e.genLayout = t, ((n) => {
|
|
2114
|
-
function
|
|
2115
|
-
if (
|
|
2116
|
-
const c =
|
|
2124
|
+
function o(l, r, a) {
|
|
2125
|
+
if (a) {
|
|
2126
|
+
const c = l * r - (a[3] - a[1]) * (a[2] - a[0]) + 1;
|
|
2117
2127
|
return {
|
|
2118
2128
|
count: c,
|
|
2119
|
-
row:
|
|
2120
|
-
col:
|
|
2129
|
+
row: l,
|
|
2130
|
+
col: r,
|
|
2121
2131
|
name: `${c < 10 ? `0${c}` : c}`,
|
|
2122
2132
|
area: {
|
|
2123
2133
|
leftTop: {
|
|
2124
|
-
row:
|
|
2125
|
-
col:
|
|
2134
|
+
row: a[1],
|
|
2135
|
+
col: a[0]
|
|
2126
2136
|
},
|
|
2127
2137
|
rightBottom: {
|
|
2128
|
-
row:
|
|
2129
|
-
col:
|
|
2138
|
+
row: a[3],
|
|
2139
|
+
col: a[2]
|
|
2130
2140
|
}
|
|
2131
2141
|
}
|
|
2132
2142
|
};
|
|
2133
2143
|
}
|
|
2134
|
-
const i =
|
|
2144
|
+
const i = l * r;
|
|
2135
2145
|
return {
|
|
2136
2146
|
count: i,
|
|
2137
|
-
row:
|
|
2138
|
-
col:
|
|
2147
|
+
row: l,
|
|
2148
|
+
col: r,
|
|
2139
2149
|
name: `${i < 10 ? `0${i}` : i}`
|
|
2140
2150
|
};
|
|
2141
2151
|
}
|
|
2142
|
-
n.genLayout =
|
|
2143
|
-
function
|
|
2152
|
+
n.genLayout = o;
|
|
2153
|
+
function s() {
|
|
2144
2154
|
return {
|
|
2145
2155
|
count: 25,
|
|
2146
2156
|
row: 5,
|
|
@@ -2148,105 +2158,109 @@ var x;
|
|
|
2148
2158
|
name: "12"
|
|
2149
2159
|
};
|
|
2150
2160
|
}
|
|
2151
|
-
n.getTestLayout =
|
|
2161
|
+
n.getTestLayout = s;
|
|
2152
2162
|
})(e.Test || (e.Test = {}));
|
|
2153
|
-
})(
|
|
2154
|
-
const
|
|
2163
|
+
})(M || (M = {}));
|
|
2164
|
+
const Ir = ie({
|
|
2155
2165
|
props: {
|
|
2156
2166
|
countInfo: Object,
|
|
2157
2167
|
controlParams: Object
|
|
2158
2168
|
},
|
|
2159
2169
|
setup(e) {
|
|
2160
|
-
function t(
|
|
2161
|
-
if (
|
|
2162
|
-
let
|
|
2163
|
-
return
|
|
2164
|
-
|
|
2165
|
-
}),
|
|
2170
|
+
function t(s, l) {
|
|
2171
|
+
if (l) {
|
|
2172
|
+
let r = 0;
|
|
2173
|
+
return l.items.forEach((a) => {
|
|
2174
|
+
r += t(s, a);
|
|
2175
|
+
}), s(l) + r;
|
|
2166
2176
|
}
|
|
2167
2177
|
return 0;
|
|
2168
2178
|
}
|
|
2169
|
-
const n =
|
|
2170
|
-
var
|
|
2171
|
-
if (
|
|
2172
|
-
let
|
|
2173
|
-
const i = (
|
|
2174
|
-
return i && (
|
|
2179
|
+
const n = G(() => t((s) => {
|
|
2180
|
+
var l, r;
|
|
2181
|
+
if (s.devices) {
|
|
2182
|
+
let a = (l = s.devices) == null ? void 0 : l.filter((c) => c.online);
|
|
2183
|
+
const i = (r = e.controlParams) == null ? void 0 : r.searchStr;
|
|
2184
|
+
return i && (a = a.filter((c) => c.name.includes(i) || c.id.includes(i))), a.length;
|
|
2175
2185
|
}
|
|
2176
2186
|
return 0;
|
|
2177
2187
|
}, e.countInfo));
|
|
2178
2188
|
return {
|
|
2179
|
-
totalCount:
|
|
2180
|
-
var
|
|
2181
|
-
if (
|
|
2182
|
-
let
|
|
2183
|
-
const
|
|
2184
|
-
return
|
|
2189
|
+
totalCount: G(() => t((s) => {
|
|
2190
|
+
var l;
|
|
2191
|
+
if (s.devices) {
|
|
2192
|
+
let r = s.devices;
|
|
2193
|
+
const a = (l = e.controlParams) == null ? void 0 : l.searchStr;
|
|
2194
|
+
return a && (r = r.filter((i) => i.name.includes(a) || i.id.includes(a))), r.length;
|
|
2185
2195
|
}
|
|
2186
|
-
return
|
|
2196
|
+
return s.totalCount;
|
|
2187
2197
|
}, e.countInfo)),
|
|
2188
2198
|
onlineCount: n
|
|
2189
2199
|
};
|
|
2190
2200
|
}
|
|
2191
2201
|
});
|
|
2192
|
-
const
|
|
2202
|
+
const ce = (e, t) => {
|
|
2193
2203
|
const n = e.__vccOpts || e;
|
|
2194
|
-
for (const [
|
|
2195
|
-
n[
|
|
2204
|
+
for (const [o, s] of t)
|
|
2205
|
+
n[o] = s;
|
|
2196
2206
|
return n;
|
|
2197
|
-
},
|
|
2198
|
-
function
|
|
2199
|
-
|
|
2200
|
-
|
|
2207
|
+
}, Lr = { class: "root" }, wr = { class: "count-show" }, Sr = { class: "count-show-online" }, Ar = { key: 0 };
|
|
2208
|
+
function Dr(e, t, n, o, s, l) {
|
|
2209
|
+
var r;
|
|
2210
|
+
return C(), k("div", Lr, [
|
|
2211
|
+
le(e.$slots, "default", {
|
|
2201
2212
|
total: e.totalCount,
|
|
2202
2213
|
online: e.onlineCount
|
|
2203
2214
|
}, void 0, !0),
|
|
2204
|
-
|
|
2215
|
+
T("span", wr, [
|
|
2216
|
+
T("span", Sr, ne(e.onlineCount), 1),
|
|
2217
|
+
(r = e.controlParams) != null && r.onlyShowOnline ? Ie("", !0) : (C(), k("span", Ar, "/" + ne(e.totalCount), 1))
|
|
2218
|
+
])
|
|
2205
2219
|
]);
|
|
2206
2220
|
}
|
|
2207
|
-
const
|
|
2221
|
+
const Xn = /* @__PURE__ */ ce(Ir, [["render", Dr], ["__scopeId", "data-v-98e9f401"]]), Jn = Object.freeze(
|
|
2208
2222
|
{
|
|
2209
2223
|
left: 0,
|
|
2210
2224
|
top: 0,
|
|
2211
2225
|
width: 16,
|
|
2212
2226
|
height: 16
|
|
2213
2227
|
}
|
|
2214
|
-
),
|
|
2228
|
+
), Qn = Object.freeze({
|
|
2215
2229
|
rotate: 0,
|
|
2216
2230
|
vFlip: !1,
|
|
2217
2231
|
hFlip: !1
|
|
2218
|
-
}),
|
|
2219
|
-
...
|
|
2220
|
-
...
|
|
2232
|
+
}), Tt = Object.freeze({
|
|
2233
|
+
...Jn,
|
|
2234
|
+
...Qn
|
|
2221
2235
|
});
|
|
2222
2236
|
Object.freeze({
|
|
2223
|
-
...
|
|
2237
|
+
...Tt,
|
|
2224
2238
|
body: "",
|
|
2225
2239
|
hidden: !1
|
|
2226
2240
|
});
|
|
2227
2241
|
({
|
|
2228
|
-
...
|
|
2242
|
+
...Jn
|
|
2229
2243
|
});
|
|
2230
|
-
const
|
|
2244
|
+
const qn = Object.freeze({
|
|
2231
2245
|
width: null,
|
|
2232
2246
|
height: null
|
|
2233
|
-
}),
|
|
2234
|
-
...
|
|
2235
|
-
...
|
|
2247
|
+
}), Zn = Object.freeze({
|
|
2248
|
+
...qn,
|
|
2249
|
+
...Qn
|
|
2236
2250
|
});
|
|
2237
|
-
function
|
|
2251
|
+
function Cr(e, t) {
|
|
2238
2252
|
const n = {
|
|
2239
2253
|
...e
|
|
2240
2254
|
};
|
|
2241
|
-
for (const
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2255
|
+
for (const o in t) {
|
|
2256
|
+
const s = t[o], l = typeof s;
|
|
2257
|
+
o in qn ? (s === null || s && (l === "string" || l === "number")) && (n[o] = s) : l === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
|
|
2244
2258
|
}
|
|
2245
2259
|
return n;
|
|
2246
2260
|
}
|
|
2247
|
-
const
|
|
2248
|
-
function
|
|
2249
|
-
t.split(
|
|
2261
|
+
const Pr = /[\s,]+/;
|
|
2262
|
+
function kr(e, t) {
|
|
2263
|
+
t.split(Pr).forEach((n) => {
|
|
2250
2264
|
switch (n.trim()) {
|
|
2251
2265
|
case "horizontal":
|
|
2252
2266
|
e.hFlip = !0;
|
|
@@ -2257,174 +2271,174 @@ function ys(e, t) {
|
|
|
2257
2271
|
}
|
|
2258
2272
|
});
|
|
2259
2273
|
}
|
|
2260
|
-
function
|
|
2274
|
+
function $r(e, t = 0) {
|
|
2261
2275
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
2262
|
-
function
|
|
2263
|
-
for (;
|
|
2264
|
-
|
|
2265
|
-
return
|
|
2276
|
+
function o(s) {
|
|
2277
|
+
for (; s < 0; )
|
|
2278
|
+
s += 4;
|
|
2279
|
+
return s % 4;
|
|
2266
2280
|
}
|
|
2267
2281
|
if (n === "") {
|
|
2268
|
-
const
|
|
2269
|
-
return isNaN(
|
|
2282
|
+
const s = parseInt(e);
|
|
2283
|
+
return isNaN(s) ? 0 : o(s);
|
|
2270
2284
|
} else if (n !== e) {
|
|
2271
|
-
let
|
|
2285
|
+
let s = 0;
|
|
2272
2286
|
switch (n) {
|
|
2273
2287
|
case "%":
|
|
2274
|
-
|
|
2288
|
+
s = 25;
|
|
2275
2289
|
break;
|
|
2276
2290
|
case "deg":
|
|
2277
|
-
|
|
2291
|
+
s = 90;
|
|
2278
2292
|
}
|
|
2279
|
-
if (
|
|
2280
|
-
let
|
|
2281
|
-
return isNaN(
|
|
2293
|
+
if (s) {
|
|
2294
|
+
let l = parseFloat(e.slice(0, e.length - n.length));
|
|
2295
|
+
return isNaN(l) ? 0 : (l = l / s, l % 1 === 0 ? o(l) : 0);
|
|
2282
2296
|
}
|
|
2283
2297
|
}
|
|
2284
2298
|
return t;
|
|
2285
2299
|
}
|
|
2286
|
-
const
|
|
2287
|
-
function
|
|
2300
|
+
const Rr = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Fr = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2301
|
+
function nn(e, t, n) {
|
|
2288
2302
|
if (t === 1)
|
|
2289
2303
|
return e;
|
|
2290
2304
|
if (n = n || 100, typeof e == "number")
|
|
2291
2305
|
return Math.ceil(e * t * n) / n;
|
|
2292
2306
|
if (typeof e != "string")
|
|
2293
2307
|
return e;
|
|
2294
|
-
const
|
|
2295
|
-
if (
|
|
2308
|
+
const o = e.split(Rr);
|
|
2309
|
+
if (o === null || !o.length)
|
|
2296
2310
|
return e;
|
|
2297
|
-
const
|
|
2298
|
-
let
|
|
2311
|
+
const s = [];
|
|
2312
|
+
let l = o.shift(), r = Fr.test(l);
|
|
2299
2313
|
for (; ; ) {
|
|
2300
|
-
if (
|
|
2301
|
-
const
|
|
2302
|
-
isNaN(
|
|
2314
|
+
if (r) {
|
|
2315
|
+
const a = parseFloat(l);
|
|
2316
|
+
isNaN(a) ? s.push(l) : s.push(Math.ceil(a * t * n) / n);
|
|
2303
2317
|
} else
|
|
2304
|
-
|
|
2305
|
-
if (
|
|
2306
|
-
return
|
|
2307
|
-
|
|
2318
|
+
s.push(l);
|
|
2319
|
+
if (l = o.shift(), l === void 0)
|
|
2320
|
+
return s.join("");
|
|
2321
|
+
r = !r;
|
|
2308
2322
|
}
|
|
2309
2323
|
}
|
|
2310
|
-
function
|
|
2324
|
+
function Mr(e, t) {
|
|
2311
2325
|
const n = {
|
|
2312
|
-
...
|
|
2326
|
+
...Tt,
|
|
2313
2327
|
...e
|
|
2314
|
-
}, r = {
|
|
2315
|
-
...Yn,
|
|
2316
|
-
...t
|
|
2317
2328
|
}, o = {
|
|
2329
|
+
...Zn,
|
|
2330
|
+
...t
|
|
2331
|
+
}, s = {
|
|
2318
2332
|
left: n.left,
|
|
2319
2333
|
top: n.top,
|
|
2320
2334
|
width: n.width,
|
|
2321
2335
|
height: n.height
|
|
2322
2336
|
};
|
|
2323
|
-
let
|
|
2324
|
-
[n,
|
|
2325
|
-
const
|
|
2326
|
-
let
|
|
2327
|
-
p ? h ?
|
|
2328
|
-
"translate(" + (
|
|
2329
|
-
),
|
|
2330
|
-
"translate(" + (0 -
|
|
2331
|
-
),
|
|
2332
|
-
let
|
|
2333
|
-
switch (
|
|
2337
|
+
let l = n.body;
|
|
2338
|
+
[n, o].forEach((g) => {
|
|
2339
|
+
const b = [], p = g.hFlip, h = g.vFlip;
|
|
2340
|
+
let y = g.rotate;
|
|
2341
|
+
p ? h ? y += 2 : (b.push(
|
|
2342
|
+
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
2343
|
+
), b.push("scale(-1 1)"), s.top = s.left = 0) : h && (b.push(
|
|
2344
|
+
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
2345
|
+
), b.push("scale(1 -1)"), s.top = s.left = 0);
|
|
2346
|
+
let O;
|
|
2347
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
|
2334
2348
|
case 1:
|
|
2335
|
-
|
|
2336
|
-
"rotate(90 " +
|
|
2349
|
+
O = s.height / 2 + s.top, b.unshift(
|
|
2350
|
+
"rotate(90 " + O.toString() + " " + O.toString() + ")"
|
|
2337
2351
|
);
|
|
2338
2352
|
break;
|
|
2339
2353
|
case 2:
|
|
2340
|
-
|
|
2341
|
-
"rotate(180 " + (
|
|
2354
|
+
b.unshift(
|
|
2355
|
+
"rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
|
|
2342
2356
|
);
|
|
2343
2357
|
break;
|
|
2344
2358
|
case 3:
|
|
2345
|
-
|
|
2346
|
-
"rotate(-90 " +
|
|
2359
|
+
O = s.width / 2 + s.left, b.unshift(
|
|
2360
|
+
"rotate(-90 " + O.toString() + " " + O.toString() + ")"
|
|
2347
2361
|
);
|
|
2348
2362
|
break;
|
|
2349
2363
|
}
|
|
2350
|
-
|
|
2364
|
+
y % 2 === 1 && (s.left !== s.top && (O = s.left, s.left = s.top, s.top = O), s.width !== s.height && (O = s.width, s.width = s.height, s.height = O)), b.length && (l = '<g transform="' + b.join(" ") + '">' + l + "</g>");
|
|
2351
2365
|
});
|
|
2352
|
-
const
|
|
2353
|
-
let u,
|
|
2354
|
-
return
|
|
2366
|
+
const r = o.width, a = o.height, i = s.width, c = s.height;
|
|
2367
|
+
let u, _;
|
|
2368
|
+
return r === null ? (_ = a === null ? "1em" : a === "auto" ? c : a, u = nn(_, i / c)) : (u = r === "auto" ? i : r, _ = a === null ? nn(u, c / i) : a === "auto" ? c : a), {
|
|
2355
2369
|
attributes: {
|
|
2356
2370
|
width: u.toString(),
|
|
2357
|
-
height:
|
|
2358
|
-
viewBox:
|
|
2371
|
+
height: _.toString(),
|
|
2372
|
+
viewBox: s.left.toString() + " " + s.top.toString() + " " + i.toString() + " " + c.toString()
|
|
2359
2373
|
},
|
|
2360
|
-
body:
|
|
2374
|
+
body: l
|
|
2361
2375
|
};
|
|
2362
2376
|
}
|
|
2363
|
-
const
|
|
2364
|
-
let
|
|
2365
|
-
function
|
|
2377
|
+
const Vr = /\sid="(\S+)"/g, Ur = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2378
|
+
let xr = 0;
|
|
2379
|
+
function Gr(e, t = Ur) {
|
|
2366
2380
|
const n = [];
|
|
2367
|
-
let
|
|
2368
|
-
for (;
|
|
2369
|
-
n.push(
|
|
2370
|
-
return n.length && n.forEach((
|
|
2371
|
-
const
|
|
2381
|
+
let o;
|
|
2382
|
+
for (; o = Vr.exec(e); )
|
|
2383
|
+
n.push(o[1]);
|
|
2384
|
+
return n.length && n.forEach((s) => {
|
|
2385
|
+
const l = typeof t == "function" ? t(s) : t + (xr++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2372
2386
|
e = e.replace(
|
|
2373
|
-
new RegExp('([#;"])(' +
|
|
2374
|
-
"$1" +
|
|
2387
|
+
new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
|
|
2388
|
+
"$1" + l + "$3"
|
|
2375
2389
|
);
|
|
2376
2390
|
}), e;
|
|
2377
2391
|
}
|
|
2378
|
-
function
|
|
2392
|
+
function Wr(e, t) {
|
|
2379
2393
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2380
|
-
for (const
|
|
2381
|
-
n += " " +
|
|
2394
|
+
for (const o in t)
|
|
2395
|
+
n += " " + o + '="' + t[o] + '"';
|
|
2382
2396
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
2383
2397
|
}
|
|
2384
|
-
function
|
|
2398
|
+
function jr(e) {
|
|
2385
2399
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2386
2400
|
}
|
|
2387
|
-
function
|
|
2388
|
-
return 'url("data:image/svg+xml,' +
|
|
2401
|
+
function Br(e) {
|
|
2402
|
+
return 'url("data:image/svg+xml,' + jr(e) + '")';
|
|
2389
2403
|
}
|
|
2390
|
-
const
|
|
2391
|
-
...
|
|
2404
|
+
const on = {
|
|
2405
|
+
...Zn,
|
|
2392
2406
|
inline: !1
|
|
2393
|
-
},
|
|
2407
|
+
}, Hr = {
|
|
2394
2408
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2395
2409
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2396
2410
|
"aria-hidden": !0,
|
|
2397
2411
|
role: "img"
|
|
2398
|
-
},
|
|
2412
|
+
}, zr = {
|
|
2399
2413
|
display: "inline-block"
|
|
2400
|
-
},
|
|
2414
|
+
}, ft = {
|
|
2401
2415
|
backgroundColor: "currentColor"
|
|
2402
|
-
},
|
|
2416
|
+
}, eo = {
|
|
2403
2417
|
backgroundColor: "transparent"
|
|
2404
|
-
},
|
|
2418
|
+
}, sn = {
|
|
2405
2419
|
Image: "var(--svg)",
|
|
2406
2420
|
Repeat: "no-repeat",
|
|
2407
2421
|
Size: "100% 100%"
|
|
2408
|
-
},
|
|
2409
|
-
webkitMask:
|
|
2410
|
-
mask:
|
|
2411
|
-
background:
|
|
2422
|
+
}, rn = {
|
|
2423
|
+
webkitMask: ft,
|
|
2424
|
+
mask: ft,
|
|
2425
|
+
background: eo
|
|
2412
2426
|
};
|
|
2413
|
-
for (const e in
|
|
2414
|
-
const t =
|
|
2415
|
-
for (const n in
|
|
2416
|
-
t[e + n] =
|
|
2427
|
+
for (const e in rn) {
|
|
2428
|
+
const t = rn[e];
|
|
2429
|
+
for (const n in sn)
|
|
2430
|
+
t[e + n] = sn[n];
|
|
2417
2431
|
}
|
|
2418
|
-
const
|
|
2432
|
+
const Me = {};
|
|
2419
2433
|
["horizontal", "vertical"].forEach((e) => {
|
|
2420
2434
|
const t = e.slice(0, 1) + "Flip";
|
|
2421
|
-
|
|
2435
|
+
Me[e + "-flip"] = t, Me[e.slice(0, 1) + "-flip"] = t, Me[e + "Flip"] = t;
|
|
2422
2436
|
});
|
|
2423
|
-
function
|
|
2437
|
+
function ln(e) {
|
|
2424
2438
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2425
2439
|
}
|
|
2426
|
-
const
|
|
2427
|
-
const n =
|
|
2440
|
+
const Yr = (e, t) => {
|
|
2441
|
+
const n = Cr(on, t), o = { ...Hr }, s = t.mode || "svg", l = {}, r = t.style, a = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
2428
2442
|
for (let p in t) {
|
|
2429
2443
|
const h = t[p];
|
|
2430
2444
|
if (h !== void 0)
|
|
@@ -2440,85 +2454,85 @@ const Vs = (e, t) => {
|
|
|
2440
2454
|
n[p] = h === !0 || h === "true" || h === 1;
|
|
2441
2455
|
break;
|
|
2442
2456
|
case "flip":
|
|
2443
|
-
typeof h == "string" &&
|
|
2457
|
+
typeof h == "string" && kr(n, h);
|
|
2444
2458
|
break;
|
|
2445
2459
|
case "color":
|
|
2446
|
-
|
|
2460
|
+
l.color = h;
|
|
2447
2461
|
break;
|
|
2448
2462
|
case "rotate":
|
|
2449
|
-
typeof h == "string" ? n[p] =
|
|
2463
|
+
typeof h == "string" ? n[p] = $r(h) : typeof h == "number" && (n[p] = h);
|
|
2450
2464
|
break;
|
|
2451
2465
|
case "ariaHidden":
|
|
2452
2466
|
case "aria-hidden":
|
|
2453
|
-
h !== !0 && h !== "true" && delete
|
|
2467
|
+
h !== !0 && h !== "true" && delete o["aria-hidden"];
|
|
2454
2468
|
break;
|
|
2455
2469
|
default: {
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2470
|
+
const y = Me[p];
|
|
2471
|
+
y ? (h === !0 || h === "true" || h === 1) && (n[y] = !0) : on[p] === void 0 && (o[p] = h);
|
|
2458
2472
|
}
|
|
2459
2473
|
}
|
|
2460
2474
|
}
|
|
2461
|
-
const i =
|
|
2462
|
-
if (n.inline && (
|
|
2463
|
-
|
|
2464
|
-
...
|
|
2465
|
-
...
|
|
2466
|
-
}, Object.assign(
|
|
2475
|
+
const i = Mr(e, n), c = i.attributes;
|
|
2476
|
+
if (n.inline && (l.verticalAlign = "-0.125em"), s === "svg") {
|
|
2477
|
+
o.style = {
|
|
2478
|
+
...l,
|
|
2479
|
+
...a
|
|
2480
|
+
}, Object.assign(o, c);
|
|
2467
2481
|
let p = 0, h = t.id;
|
|
2468
|
-
return typeof h == "string" && (h = h.replace(/-/g, "_")),
|
|
2482
|
+
return typeof h == "string" && (h = h.replace(/-/g, "_")), o.innerHTML = Gr(i.body, h ? () => h + "ID" + p++ : "iconifyVue"), Ve("svg", o);
|
|
2469
2483
|
}
|
|
2470
|
-
const { body: u, width:
|
|
2484
|
+
const { body: u, width: _, height: d } = e, g = s === "mask" || (s === "bg" ? !1 : u.indexOf("currentColor") !== -1), b = Wr(u, {
|
|
2471
2485
|
...c,
|
|
2472
|
-
width:
|
|
2473
|
-
height:
|
|
2486
|
+
width: _ + "",
|
|
2487
|
+
height: d + ""
|
|
2474
2488
|
});
|
|
2475
|
-
return
|
|
2476
|
-
...
|
|
2477
|
-
"--svg":
|
|
2478
|
-
width:
|
|
2479
|
-
height:
|
|
2480
|
-
...
|
|
2481
|
-
...g ?
|
|
2482
|
-
...
|
|
2483
|
-
},
|
|
2484
|
-
},
|
|
2485
|
-
function
|
|
2486
|
-
|
|
2487
|
-
}
|
|
2488
|
-
const
|
|
2489
|
+
return o.style = {
|
|
2490
|
+
...l,
|
|
2491
|
+
"--svg": Br(b),
|
|
2492
|
+
width: ln(c.width),
|
|
2493
|
+
height: ln(c.height),
|
|
2494
|
+
...zr,
|
|
2495
|
+
...g ? ft : eo,
|
|
2496
|
+
...a
|
|
2497
|
+
}, Ve("span", o);
|
|
2498
|
+
}, to = /* @__PURE__ */ Object.create(null);
|
|
2499
|
+
function ge(e, t) {
|
|
2500
|
+
to[e] = t;
|
|
2501
|
+
}
|
|
2502
|
+
const Xe = ie({
|
|
2489
2503
|
inheritAttrs: !1,
|
|
2490
2504
|
render() {
|
|
2491
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
2492
|
-
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2493
|
-
...
|
|
2505
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? to[t] : typeof t == "object" ? t : null;
|
|
2506
|
+
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : Yr({
|
|
2507
|
+
...Tt,
|
|
2494
2508
|
...n
|
|
2495
2509
|
}, e);
|
|
2496
2510
|
}
|
|
2497
2511
|
});
|
|
2498
|
-
var
|
|
2512
|
+
var Kr = Object.defineProperty, Xr = Object.defineProperties, Jr = Object.getOwnPropertyDescriptors, an = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, cn = (e, t, n) => t in e ? Kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, un = (e, t) => {
|
|
2499
2513
|
for (var n in t || (t = {}))
|
|
2500
|
-
|
|
2501
|
-
if (
|
|
2502
|
-
for (var n of
|
|
2503
|
-
|
|
2514
|
+
Qr.call(t, n) && cn(e, n, t[n]);
|
|
2515
|
+
if (an)
|
|
2516
|
+
for (var n of an(t))
|
|
2517
|
+
qr.call(t, n) && cn(e, n, t[n]);
|
|
2504
2518
|
return e;
|
|
2505
|
-
},
|
|
2506
|
-
var
|
|
2519
|
+
}, Zr = (e, t) => Xr(e, Jr(t)), el = (e, t, n) => new Promise((o, s) => {
|
|
2520
|
+
var l = (i) => {
|
|
2507
2521
|
try {
|
|
2508
|
-
|
|
2522
|
+
a(n.next(i));
|
|
2509
2523
|
} catch (c) {
|
|
2510
|
-
|
|
2524
|
+
s(c);
|
|
2511
2525
|
}
|
|
2512
|
-
},
|
|
2526
|
+
}, r = (i) => {
|
|
2513
2527
|
try {
|
|
2514
|
-
|
|
2528
|
+
a(n.throw(i));
|
|
2515
2529
|
} catch (c) {
|
|
2516
|
-
|
|
2530
|
+
s(c);
|
|
2517
2531
|
}
|
|
2518
|
-
},
|
|
2519
|
-
|
|
2532
|
+
}, a = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(l, r);
|
|
2533
|
+
a((n = n.apply(e, t)).next());
|
|
2520
2534
|
});
|
|
2521
|
-
const
|
|
2535
|
+
const tl = {
|
|
2522
2536
|
name: "VirtualList",
|
|
2523
2537
|
props: {
|
|
2524
2538
|
listData: {
|
|
@@ -2532,22 +2546,22 @@ const Ys = {
|
|
|
2532
2546
|
},
|
|
2533
2547
|
setup(e) {
|
|
2534
2548
|
const t = {
|
|
2535
|
-
screenHeight:
|
|
2536
|
-
startOffset:
|
|
2537
|
-
start:
|
|
2538
|
-
end:
|
|
2539
|
-
}, n =
|
|
2540
|
-
listHeight:
|
|
2541
|
-
visibleCount:
|
|
2542
|
-
getTransform:
|
|
2543
|
-
visibleData:
|
|
2549
|
+
screenHeight: P(0),
|
|
2550
|
+
startOffset: P(0),
|
|
2551
|
+
start: P(0),
|
|
2552
|
+
end: P(0)
|
|
2553
|
+
}, n = P(), o = {
|
|
2554
|
+
listHeight: G(() => e.listData.length * e.itemSize),
|
|
2555
|
+
visibleCount: G(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
2556
|
+
getTransform: G(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
2557
|
+
visibleData: G(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
2544
2558
|
};
|
|
2545
|
-
return
|
|
2559
|
+
return un(Zr(un({}, o), {
|
|
2546
2560
|
virList: n
|
|
2547
2561
|
}), t);
|
|
2548
2562
|
},
|
|
2549
2563
|
mounted() {
|
|
2550
|
-
this.init(),
|
|
2564
|
+
this.init(), Ue(() => this.listData.length, () => el(this, null, function* () {
|
|
2551
2565
|
yield this.$nextTick(), this.init();
|
|
2552
2566
|
}));
|
|
2553
2567
|
},
|
|
@@ -2563,46 +2577,46 @@ const Ys = {
|
|
|
2563
2577
|
}
|
|
2564
2578
|
}
|
|
2565
2579
|
};
|
|
2566
|
-
function
|
|
2567
|
-
return
|
|
2580
|
+
function nl(e, t, n, o, s, l) {
|
|
2581
|
+
return C(), k("div", {
|
|
2568
2582
|
ref: "virList",
|
|
2569
2583
|
class: "infinite-list-container",
|
|
2570
|
-
onScroll: t[0] || (t[0] = (
|
|
2584
|
+
onScroll: t[0] || (t[0] = (r) => l.scrollEvent())
|
|
2571
2585
|
}, [
|
|
2572
|
-
|
|
2586
|
+
T("div", {
|
|
2573
2587
|
class: "infinite-list-phantom",
|
|
2574
2588
|
style: Le({ height: e.listHeight + "px" })
|
|
2575
2589
|
}, null, 4),
|
|
2576
|
-
|
|
2590
|
+
T("div", {
|
|
2577
2591
|
class: "infinite-list",
|
|
2578
2592
|
style: Le({ transform: e.getTransform })
|
|
2579
2593
|
}, [
|
|
2580
|
-
(
|
|
2594
|
+
(C(!0), k(me, null, Pe(e.visibleData, (r) => (C(), k("div", {
|
|
2581
2595
|
ref_for: !0,
|
|
2582
2596
|
ref: "items",
|
|
2583
2597
|
class: "infinite-list-item",
|
|
2584
|
-
key:
|
|
2598
|
+
key: r.id,
|
|
2585
2599
|
style: Le({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
2586
2600
|
}, [
|
|
2587
|
-
|
|
2601
|
+
le(e.$slots, "default", { data: r }, void 0, !0)
|
|
2588
2602
|
], 4))), 128))
|
|
2589
2603
|
], 4)
|
|
2590
2604
|
], 544);
|
|
2591
2605
|
}
|
|
2592
|
-
const
|
|
2593
|
-
var
|
|
2606
|
+
const ol = /* @__PURE__ */ ce(tl, [["render", nl], ["__scopeId", "data-v-12d2a294"]]);
|
|
2607
|
+
var sl = Object.defineProperty, rl = Object.defineProperties, ll = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, al = Object.prototype.hasOwnProperty, il = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, cl = (e, t) => {
|
|
2594
2608
|
for (var n in t || (t = {}))
|
|
2595
|
-
|
|
2596
|
-
if (
|
|
2597
|
-
for (var n of
|
|
2598
|
-
|
|
2609
|
+
al.call(t, n) && dn(e, n, t[n]);
|
|
2610
|
+
if (fn)
|
|
2611
|
+
for (var n of fn(t))
|
|
2612
|
+
il.call(t, n) && dn(e, n, t[n]);
|
|
2599
2613
|
return e;
|
|
2600
|
-
},
|
|
2601
|
-
const
|
|
2614
|
+
}, ul = (e, t) => rl(e, ll(t));
|
|
2615
|
+
const fl = ie({
|
|
2602
2616
|
components: {
|
|
2603
|
-
VirtualList:
|
|
2604
|
-
CountShow:
|
|
2605
|
-
Icon:
|
|
2617
|
+
VirtualList: ol,
|
|
2618
|
+
CountShow: Xn,
|
|
2619
|
+
Icon: Xe
|
|
2606
2620
|
},
|
|
2607
2621
|
name: "group-show",
|
|
2608
2622
|
props: {
|
|
@@ -2610,13 +2624,13 @@ const oa = _e({
|
|
|
2610
2624
|
controlParams: Object
|
|
2611
2625
|
},
|
|
2612
2626
|
setup(e, t) {
|
|
2613
|
-
const n =
|
|
2627
|
+
const n = P(), o = En("theme"), s = {
|
|
2614
2628
|
filterDevice(u) {
|
|
2615
|
-
var
|
|
2629
|
+
var _, d, g, b, p;
|
|
2616
2630
|
let h = !0;
|
|
2617
|
-
(
|
|
2618
|
-
let
|
|
2619
|
-
return (p = e.controlParams) != null && p.onlyShowOnline && (
|
|
2631
|
+
(_ = e.controlParams) != null && _.searchStr && (h = u.name.indexOf((d = e.controlParams) == null ? void 0 : d.searchStr) >= 0 || u.id.indexOf((g = e.controlParams) == null ? void 0 : g.searchStr) >= 0 || typeof u.user == "string" && u.user.indexOf((b = e.controlParams) == null ? void 0 : b.searchStr) >= 0);
|
|
2632
|
+
let y = !0;
|
|
2633
|
+
return (p = e.controlParams) != null && p.onlyShowOnline && (y = u.online), h && y;
|
|
2620
2634
|
},
|
|
2621
2635
|
deviceText(u) {
|
|
2622
2636
|
return u.user ? u.name.length > 0 ? `${u.user} [${u.id}] [${u.name}]` : `${u.user} [${u.id}] []` : u.name.length > 0 ? `${u.name} [${u.id}]` : ` [${u.id}]`;
|
|
@@ -2625,142 +2639,142 @@ const oa = _e({
|
|
|
2625
2639
|
if (u)
|
|
2626
2640
|
return u.name.length > 0 ? u.name : u.id;
|
|
2627
2641
|
}
|
|
2628
|
-
},
|
|
2629
|
-
filteredDevices:
|
|
2642
|
+
}, l = {
|
|
2643
|
+
filteredDevices: G(() => {
|
|
2630
2644
|
var u;
|
|
2631
|
-
const
|
|
2632
|
-
return
|
|
2645
|
+
const _ = (u = e.deviceGroup) == null ? void 0 : u.devices, d = _ && _.filter((b) => s.filterDevice(b)) || [];
|
|
2646
|
+
return d.filter((b) => b.online).concat(d.filter((b) => !b.online));
|
|
2633
2647
|
})
|
|
2634
|
-
},
|
|
2635
|
-
function
|
|
2636
|
-
if (
|
|
2648
|
+
}, r = G(() => l.filteredDevices.value.length > 10 ? "400px" : `${l.filteredDevices.value.length * 40}px`);
|
|
2649
|
+
function a(u, _) {
|
|
2650
|
+
if (_.length == 0)
|
|
2637
2651
|
return !0;
|
|
2638
|
-
let
|
|
2639
|
-
if ((u == null ? void 0 : u.name.indexOf(
|
|
2652
|
+
let d = !1;
|
|
2653
|
+
if ((u == null ? void 0 : u.name.indexOf(_)) > 0 && (d = !0), d || (d = (u == null ? void 0 : u.devices.find((g) => g.name.indexOf(_) >= 0 || g.id.indexOf(_) >= 0 || g.user && g.user.indexOf(_) >= 0)) != null), !d) {
|
|
2640
2654
|
for (let g = 0; g < u.items.length; g++)
|
|
2641
|
-
if (
|
|
2655
|
+
if (a(u.items[g], _))
|
|
2642
2656
|
return !0;
|
|
2643
2657
|
}
|
|
2644
|
-
return
|
|
2658
|
+
return d;
|
|
2645
2659
|
}
|
|
2646
|
-
const i =
|
|
2660
|
+
const i = G(() => {
|
|
2647
2661
|
if (e.controlParams) {
|
|
2648
2662
|
const u = e.controlParams.searchStr;
|
|
2649
2663
|
if (e.deviceGroup)
|
|
2650
|
-
return
|
|
2664
|
+
return a(e.deviceGroup, u);
|
|
2651
2665
|
}
|
|
2652
2666
|
return !1;
|
|
2653
|
-
}), c =
|
|
2654
|
-
return
|
|
2655
|
-
innerUtils:
|
|
2656
|
-
},
|
|
2657
|
-
devicePanelHeight:
|
|
2667
|
+
}), c = P(!1);
|
|
2668
|
+
return ul(cl({
|
|
2669
|
+
innerUtils: s
|
|
2670
|
+
}, l), {
|
|
2671
|
+
devicePanelHeight: r,
|
|
2658
2672
|
showGroup: i,
|
|
2659
2673
|
bShow: c,
|
|
2660
|
-
theme:
|
|
2674
|
+
theme: o,
|
|
2661
2675
|
countRef: n
|
|
2662
2676
|
});
|
|
2663
2677
|
}
|
|
2664
2678
|
});
|
|
2665
|
-
const
|
|
2679
|
+
const dl = {
|
|
2666
2680
|
key: 0,
|
|
2667
2681
|
class: "head-op"
|
|
2668
|
-
},
|
|
2682
|
+
}, _l = {
|
|
2669
2683
|
key: 1,
|
|
2670
2684
|
style: { display: "inline-block", width: "25px" }
|
|
2671
|
-
},
|
|
2685
|
+
}, ml = {
|
|
2672
2686
|
key: 0,
|
|
2673
2687
|
class: "group-head-count"
|
|
2674
|
-
},
|
|
2688
|
+
}, gl = ["title"], pl = { class: "group-slot" }, hl = {
|
|
2675
2689
|
key: 0,
|
|
2676
2690
|
style: { "margin-left": "26px" }
|
|
2677
|
-
},
|
|
2678
|
-
function
|
|
2679
|
-
var
|
|
2680
|
-
const
|
|
2681
|
-
return e.showGroup ? (
|
|
2691
|
+
}, vl = ["title"], El = { class: "device-slot" };
|
|
2692
|
+
function yl(e, t, n, o, s, l) {
|
|
2693
|
+
var r, a, i;
|
|
2694
|
+
const c = te("Icon"), u = te("CountShow"), _ = te("group-show"), d = te("VirtualList");
|
|
2695
|
+
return e.showGroup ? xe((C(), k("div", {
|
|
2682
2696
|
key: 0,
|
|
2683
|
-
class:
|
|
2697
|
+
class: Ge("group " + e.theme)
|
|
2684
2698
|
}, [
|
|
2685
|
-
|
|
2699
|
+
ee(u, {
|
|
2686
2700
|
countInfo: e.deviceGroup,
|
|
2687
2701
|
controlParams: e.controlParams,
|
|
2688
2702
|
ref: "countRef"
|
|
2689
2703
|
}, {
|
|
2690
|
-
default: ue(({ online:
|
|
2691
|
-
var
|
|
2704
|
+
default: ue(({ online: g, total: b }) => {
|
|
2705
|
+
var p, h;
|
|
2692
2706
|
return [
|
|
2693
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (
|
|
2694
|
-
|
|
2707
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (C(), k("span", dl, [
|
|
2708
|
+
ee(c, {
|
|
2695
2709
|
icon: e.bShow ? "minus" : "plus",
|
|
2696
2710
|
width: "20",
|
|
2697
|
-
onClick: t[0] || (t[0] = (
|
|
2711
|
+
onClick: t[0] || (t[0] = (y) => e.bShow = !e.bShow),
|
|
2698
2712
|
class: "handle-ls-svg"
|
|
2699
2713
|
}, null, 8, ["icon"])
|
|
2700
|
-
])) : (
|
|
2701
|
-
|
|
2714
|
+
])) : (C(), k("span", _l)),
|
|
2715
|
+
T("span", {
|
|
2702
2716
|
class: "group-head-db-click",
|
|
2703
|
-
onDblclick: t[1] || (t[1] = (
|
|
2717
|
+
onDblclick: t[1] || (t[1] = (y) => e.bShow = !e.bShow)
|
|
2704
2718
|
}, [
|
|
2705
|
-
|
|
2719
|
+
ee(c, {
|
|
2706
2720
|
icon: e.bShow ? "group" : "group-closed",
|
|
2707
2721
|
width: "24",
|
|
2708
2722
|
class: "group-avatar"
|
|
2709
2723
|
}, null, 8, ["icon"]),
|
|
2710
|
-
e.bShow ?
|
|
2711
|
-
|
|
2724
|
+
e.bShow ? Ie("", !0) : (C(), k("span", ml, ne((p = e.deviceGroup) == null ? void 0 : p.items.length), 1)),
|
|
2725
|
+
T("span", {
|
|
2712
2726
|
class: "group-name",
|
|
2713
|
-
title: (
|
|
2714
|
-
},
|
|
2727
|
+
title: (h = e.deviceGroup) == null ? void 0 : h.name
|
|
2728
|
+
}, ne(e.innerUtils.groupText(e.deviceGroup)), 9, gl)
|
|
2715
2729
|
], 32),
|
|
2716
|
-
|
|
2717
|
-
|
|
2730
|
+
T("div", pl, [
|
|
2731
|
+
le(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
2718
2732
|
])
|
|
2719
2733
|
];
|
|
2720
2734
|
}),
|
|
2721
2735
|
_: 3
|
|
2722
2736
|
}, 8, ["countInfo", "controlParams"]),
|
|
2723
|
-
e.bShow ? (
|
|
2724
|
-
(
|
|
2725
|
-
key:
|
|
2726
|
-
deviceGroup:
|
|
2737
|
+
e.bShow ? (C(), k("div", hl, [
|
|
2738
|
+
(C(!0), k(me, null, Pe((r = e.deviceGroup) == null ? void 0 : r.items, (g, b) => (C(), _t(_, {
|
|
2739
|
+
key: b,
|
|
2740
|
+
deviceGroup: g,
|
|
2727
2741
|
controlParams: e.controlParams
|
|
2728
2742
|
}, {
|
|
2729
|
-
group: ue(({ group:
|
|
2730
|
-
|
|
2743
|
+
group: ue(({ group: p }) => [
|
|
2744
|
+
le(e.$slots, "group", { group: p }, void 0, !0)
|
|
2731
2745
|
]),
|
|
2732
|
-
device: ue(({ device:
|
|
2733
|
-
|
|
2734
|
-
device:
|
|
2735
|
-
group:
|
|
2746
|
+
device: ue(({ device: p, group: h }) => [
|
|
2747
|
+
le(e.$slots, "device", {
|
|
2748
|
+
device: p,
|
|
2749
|
+
group: h
|
|
2736
2750
|
}, void 0, !0)
|
|
2737
2751
|
]),
|
|
2738
2752
|
_: 2
|
|
2739
2753
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
2740
|
-
|
|
2754
|
+
T("div", {
|
|
2741
2755
|
class: "device-show-div",
|
|
2742
2756
|
style: Le(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
|
|
2743
2757
|
}, [
|
|
2744
|
-
|
|
2758
|
+
ee(d, {
|
|
2745
2759
|
"list-data": e.filteredDevices,
|
|
2746
2760
|
"item-size": 40
|
|
2747
2761
|
}, {
|
|
2748
|
-
default: ue(({ data:
|
|
2749
|
-
|
|
2750
|
-
class:
|
|
2762
|
+
default: ue(({ data: g }) => [
|
|
2763
|
+
T("div", {
|
|
2764
|
+
class: Ge(g.online && "online-device")
|
|
2751
2765
|
}, [
|
|
2752
|
-
|
|
2766
|
+
ee(c, {
|
|
2753
2767
|
icon: "user",
|
|
2754
2768
|
width: "16",
|
|
2755
2769
|
class: "device-avatar"
|
|
2756
2770
|
}),
|
|
2757
|
-
|
|
2758
|
-
title: e.innerUtils.deviceText(
|
|
2771
|
+
T("span", {
|
|
2772
|
+
title: e.innerUtils.deviceText(g),
|
|
2759
2773
|
class: "device-name"
|
|
2760
|
-
},
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
device:
|
|
2774
|
+
}, ne(e.innerUtils.deviceText(g)), 9, vl),
|
|
2775
|
+
T("div", El, [
|
|
2776
|
+
le(e.$slots, "device", {
|
|
2777
|
+
device: g,
|
|
2764
2778
|
group: e.deviceGroup
|
|
2765
2779
|
}, void 0, !0)
|
|
2766
2780
|
])
|
|
@@ -2769,44 +2783,46 @@ function _a(e, t, n, r, o, a) {
|
|
|
2769
2783
|
_: 3
|
|
2770
2784
|
}, 8, ["list-data"])
|
|
2771
2785
|
], 4)
|
|
2772
|
-
])) :
|
|
2773
|
-
], 2))
|
|
2786
|
+
])) : Ie("", !0)
|
|
2787
|
+
], 2)), [
|
|
2788
|
+
[yn, !((a = e.controlParams) != null && a.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
|
|
2789
|
+
]) : Ie("", !0);
|
|
2774
2790
|
}
|
|
2775
|
-
const
|
|
2791
|
+
const bl = /* @__PURE__ */ ce(fl, [["render", yl], ["__scopeId", "data-v-eccb9bfb"]]), Ol = {
|
|
2776
2792
|
width: 1024,
|
|
2777
2793
|
height: 1024,
|
|
2778
2794
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
2779
|
-
},
|
|
2795
|
+
}, Nl = {
|
|
2780
2796
|
width: 1024,
|
|
2781
2797
|
height: 1024,
|
|
2782
2798
|
body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
|
|
2783
|
-
},
|
|
2799
|
+
}, Tl = {
|
|
2784
2800
|
width: 1024,
|
|
2785
2801
|
height: 1024,
|
|
2786
2802
|
body: '<path fill="currentColor" d="M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"/>'
|
|
2787
|
-
},
|
|
2803
|
+
}, Il = {
|
|
2788
2804
|
width: 1024,
|
|
2789
2805
|
height: 1024,
|
|
2790
2806
|
body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
|
|
2791
|
-
},
|
|
2807
|
+
}, Ll = {
|
|
2792
2808
|
width: 1024,
|
|
2793
2809
|
height: 1024,
|
|
2794
2810
|
body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
|
|
2795
|
-
},
|
|
2811
|
+
}, wl = {
|
|
2796
2812
|
width: 1024,
|
|
2797
2813
|
height: 1024,
|
|
2798
2814
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
2799
2815
|
};
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
const
|
|
2816
|
+
ge("right", Ol);
|
|
2817
|
+
ge("group", Nl);
|
|
2818
|
+
ge("group-closed", Tl);
|
|
2819
|
+
ge("user", Il);
|
|
2820
|
+
ge("plus", Ll);
|
|
2821
|
+
ge("minus", wl);
|
|
2822
|
+
const Sl = ie({
|
|
2807
2823
|
components: {
|
|
2808
|
-
CountShow:
|
|
2809
|
-
GroupShow:
|
|
2824
|
+
CountShow: Xn,
|
|
2825
|
+
GroupShow: bl
|
|
2810
2826
|
},
|
|
2811
2827
|
props: {
|
|
2812
2828
|
deviceGroup: Object,
|
|
@@ -2829,50 +2845,53 @@ const Oa = _e({
|
|
|
2829
2845
|
}
|
|
2830
2846
|
},
|
|
2831
2847
|
setup(e) {
|
|
2832
|
-
|
|
2833
|
-
const t =
|
|
2848
|
+
Mo("theme", e.theme);
|
|
2849
|
+
const t = P({
|
|
2834
2850
|
onlyShowOnline: !1,
|
|
2835
2851
|
searchStr: ""
|
|
2836
|
-
}), n =
|
|
2852
|
+
}), n = P();
|
|
2837
2853
|
return {
|
|
2838
|
-
i18nT:
|
|
2854
|
+
i18nT: Nt,
|
|
2839
2855
|
inputSearchRef: n,
|
|
2840
2856
|
controlParams: t
|
|
2841
2857
|
};
|
|
2842
2858
|
}
|
|
2843
2859
|
});
|
|
2844
|
-
const
|
|
2845
|
-
function
|
|
2846
|
-
var
|
|
2847
|
-
const
|
|
2848
|
-
return
|
|
2849
|
-
|
|
2850
|
-
|
|
2860
|
+
const Al = { class: "device-group-list" }, Dl = { class: "search-panel" }, Cl = { for: "onlineShow" }, Pl = { class: "device-panel" };
|
|
2861
|
+
function kl(e, t, n, o, s, l) {
|
|
2862
|
+
var r;
|
|
2863
|
+
const a = te("CountShow"), i = te("group-show");
|
|
2864
|
+
return C(), k("div", Al, [
|
|
2865
|
+
T("div", Dl, [
|
|
2866
|
+
ee(a, {
|
|
2867
|
+
countInfo: e.deviceGroup,
|
|
2868
|
+
"control-params": e.controlParams
|
|
2869
|
+
}, {
|
|
2851
2870
|
default: ue(() => [
|
|
2852
|
-
|
|
2871
|
+
T("input", {
|
|
2853
2872
|
type: "checkbox",
|
|
2854
2873
|
id: "onlineShow",
|
|
2855
2874
|
value: "onlineShow",
|
|
2856
2875
|
onChange: t[0] || (t[0] = (...c) => e.onCheckBoxChange && e.onCheckBoxChange(...c))
|
|
2857
2876
|
}, null, 32),
|
|
2858
|
-
|
|
2877
|
+
T("label", Cl, ne(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 1)
|
|
2859
2878
|
]),
|
|
2860
2879
|
_: 1
|
|
2861
|
-
}, 8, ["countInfo"])
|
|
2880
|
+
}, 8, ["countInfo", "control-params"])
|
|
2862
2881
|
]),
|
|
2863
|
-
|
|
2864
|
-
(
|
|
2882
|
+
T("div", Pl, [
|
|
2883
|
+
(C(!0), k(me, null, Pe((r = e.deviceGroup) == null ? void 0 : r.items, (c, u) => (C(), _t(i, {
|
|
2865
2884
|
controlParams: e.controlParams,
|
|
2866
2885
|
key: u,
|
|
2867
2886
|
deviceGroup: c
|
|
2868
2887
|
}, {
|
|
2869
|
-
group: ue(({ group:
|
|
2870
|
-
|
|
2888
|
+
group: ue(({ group: _ }) => [
|
|
2889
|
+
le(e.$slots, "group", { group: _ }, void 0, !0)
|
|
2871
2890
|
]),
|
|
2872
|
-
device: ue(({ device:
|
|
2873
|
-
|
|
2874
|
-
device:
|
|
2875
|
-
group:
|
|
2891
|
+
device: ue(({ device: _, group: d }) => [
|
|
2892
|
+
le(e.$slots, "device", {
|
|
2893
|
+
device: _,
|
|
2894
|
+
group: d
|
|
2876
2895
|
}, void 0, !0)
|
|
2877
2896
|
]),
|
|
2878
2897
|
_: 2
|
|
@@ -2880,121 +2899,131 @@ function La(e, t, n, r, o, a) {
|
|
|
2880
2899
|
])
|
|
2881
2900
|
]);
|
|
2882
2901
|
}
|
|
2883
|
-
const
|
|
2884
|
-
var
|
|
2902
|
+
const $l = /* @__PURE__ */ ce(Sl, [["render", kl], ["__scopeId", "data-v-9d9b2057"]]);
|
|
2903
|
+
var Rl = Object.defineProperty, Fl = Object.defineProperties, Ml = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, Vl = Object.prototype.hasOwnProperty, Ul = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? Rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
|
|
2885
2904
|
for (var n in t || (t = {}))
|
|
2886
|
-
|
|
2887
|
-
if (
|
|
2888
|
-
for (var n of
|
|
2889
|
-
|
|
2905
|
+
Vl.call(t, n) && mn(e, n, t[n]);
|
|
2906
|
+
if (_n)
|
|
2907
|
+
for (var n of _n(t))
|
|
2908
|
+
Ul.call(t, n) && mn(e, n, t[n]);
|
|
2890
2909
|
return e;
|
|
2891
|
-
},
|
|
2892
|
-
const
|
|
2893
|
-
function
|
|
2910
|
+
}, xl = (e, t) => Fl(e, Ml(t));
|
|
2911
|
+
const Te = 6, gn = Te * 2;
|
|
2912
|
+
function Gl(e, t) {
|
|
2894
2913
|
return e.map(
|
|
2895
|
-
({
|
|
2914
|
+
({
|
|
2915
|
+
leftTop: { col: n, row: o },
|
|
2916
|
+
rightBottom: { col: s, row: l }
|
|
2917
|
+
}) => `<line x1="${n * t.col + Te}" y1="${o * t.row + Te}" x2="${s * t.col + Te}" y2="${l * t.row + Te}" stroke="black" stroke-width="5"/>`
|
|
2896
2918
|
).join(" ");
|
|
2897
2919
|
}
|
|
2898
|
-
function
|
|
2899
|
-
return n.findIndex((
|
|
2920
|
+
function Wl(e, t, n) {
|
|
2921
|
+
return n.findIndex((o) => e >= o.leftTop.row && e < o.rightBottom.row && t >= o.leftTop.col && t < o.rightBottom.col) >= 0;
|
|
2900
2922
|
}
|
|
2901
|
-
function
|
|
2902
|
-
n.forEach((
|
|
2903
|
-
const
|
|
2904
|
-
id:
|
|
2923
|
+
function jl(e, t, n) {
|
|
2924
|
+
n.forEach((o) => {
|
|
2925
|
+
const s = xl(no({}, o.leftTop), {
|
|
2926
|
+
id: oo(o.leftTop),
|
|
2905
2927
|
layout: {
|
|
2906
|
-
left: 100 / t.col *
|
|
2907
|
-
top: 100 / t.row *
|
|
2908
|
-
width: 100 / t.col * (
|
|
2909
|
-
height: 100 / t.row * (
|
|
2910
|
-
}
|
|
2928
|
+
left: 100 / t.col * o.leftTop.col,
|
|
2929
|
+
top: 100 / t.row * o.leftTop.row,
|
|
2930
|
+
width: 100 / t.col * (o.rightBottom.col - o.leftTop.col),
|
|
2931
|
+
height: 100 / t.row * (o.rightBottom.row - o.leftTop.row)
|
|
2932
|
+
},
|
|
2933
|
+
h: o.rightBottom.col - o.leftTop.col,
|
|
2934
|
+
w: o.rightBottom.row - o.leftTop.row
|
|
2911
2935
|
});
|
|
2912
|
-
e.push(
|
|
2936
|
+
e.push(s);
|
|
2913
2937
|
});
|
|
2914
2938
|
}
|
|
2915
|
-
function
|
|
2939
|
+
function oo(e) {
|
|
2916
2940
|
return `${e.row}-${e.col}`;
|
|
2917
2941
|
}
|
|
2918
|
-
const
|
|
2919
|
-
function
|
|
2942
|
+
const pn = "ComponentsDefaultLayoutKeyAF84566", hn = "ComponentsCustomLayoutsKeyAF84566";
|
|
2943
|
+
function Bl(e) {
|
|
2920
2944
|
const t = [], n = [];
|
|
2921
|
-
for (let
|
|
2922
|
-
n.push(e.points.slice(
|
|
2945
|
+
for (let o = 0; o < e.points.length / 2; o++)
|
|
2946
|
+
n.push(e.points.slice(o * 2, o * 2 + 2));
|
|
2923
2947
|
if (typeof e.row == "number") {
|
|
2924
|
-
const
|
|
2925
|
-
n.forEach(([
|
|
2948
|
+
const o = e.row;
|
|
2949
|
+
n.forEach(([s, l]) => {
|
|
2926
2950
|
t.push({
|
|
2927
|
-
leftTop: { row:
|
|
2928
|
-
rightBottom: { row:
|
|
2951
|
+
leftTop: { row: o, col: s },
|
|
2952
|
+
rightBottom: { row: o, col: l }
|
|
2929
2953
|
});
|
|
2930
2954
|
});
|
|
2931
2955
|
}
|
|
2932
2956
|
if (typeof e.col == "number") {
|
|
2933
|
-
const
|
|
2934
|
-
n.forEach(([
|
|
2957
|
+
const o = e.col;
|
|
2958
|
+
n.forEach(([s, l]) => {
|
|
2935
2959
|
t.push({
|
|
2936
|
-
leftTop: { col:
|
|
2937
|
-
rightBottom: { col:
|
|
2960
|
+
leftTop: { col: o, row: s },
|
|
2961
|
+
rightBottom: { col: o, row: l }
|
|
2938
2962
|
});
|
|
2939
2963
|
});
|
|
2940
2964
|
}
|
|
2941
2965
|
return t;
|
|
2942
2966
|
}
|
|
2943
|
-
const
|
|
2967
|
+
const Ce = {
|
|
2944
2968
|
TransLayoutToFrams(e) {
|
|
2945
2969
|
const t = [];
|
|
2946
2970
|
e.area && t.push(e.area), e.areas && t.push(...e.areas);
|
|
2947
2971
|
const n = [];
|
|
2948
|
-
for (let
|
|
2949
|
-
for (let
|
|
2950
|
-
if (
|
|
2972
|
+
for (let o = 0; o < e.row; o++)
|
|
2973
|
+
for (let s = 0; s < e.col; s++) {
|
|
2974
|
+
if (Wl(o, s, t))
|
|
2951
2975
|
continue;
|
|
2952
|
-
const
|
|
2976
|
+
const l = no({
|
|
2953
2977
|
layout: {
|
|
2954
|
-
left: 100 / e.col *
|
|
2955
|
-
top: 100 / e.row *
|
|
2978
|
+
left: 100 / e.col * s,
|
|
2979
|
+
top: 100 / e.row * o,
|
|
2956
2980
|
width: 100 / e.col,
|
|
2957
2981
|
height: 100 / e.row
|
|
2958
2982
|
},
|
|
2959
|
-
id:
|
|
2960
|
-
}, { row:
|
|
2961
|
-
n.push(
|
|
2983
|
+
id: oo({ row: o, col: s })
|
|
2984
|
+
}, { row: o, col: s, w: 1, h: 1 });
|
|
2985
|
+
n.push(l);
|
|
2962
2986
|
}
|
|
2963
|
-
return
|
|
2987
|
+
return jl(n, e, t), n;
|
|
2964
2988
|
},
|
|
2965
2989
|
TransLayoutToSVG(e, t) {
|
|
2966
2990
|
const n = [];
|
|
2967
2991
|
e.area && n.push(e.area), e.areas && n.push(...e.areas);
|
|
2968
|
-
const
|
|
2992
|
+
const o = [], s = [];
|
|
2969
2993
|
for (let c = 0; c <= e.row; c++)
|
|
2970
|
-
|
|
2994
|
+
o.push({
|
|
2971
2995
|
row: c,
|
|
2972
2996
|
points: [0, e.col]
|
|
2973
2997
|
});
|
|
2974
2998
|
for (let c = 0; c <= e.col; c++)
|
|
2975
|
-
|
|
2999
|
+
s.push({
|
|
2976
3000
|
col: c,
|
|
2977
3001
|
points: [0, e.row]
|
|
2978
3002
|
});
|
|
2979
|
-
n.forEach(
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
3003
|
+
n.forEach(
|
|
3004
|
+
({
|
|
3005
|
+
leftTop: { row: c, col: u },
|
|
3006
|
+
rightBottom: { row: _, col: d }
|
|
3007
|
+
}) => {
|
|
3008
|
+
for (let g = c + 1; g < _; g++)
|
|
3009
|
+
o[g].points.push(u, d);
|
|
3010
|
+
for (let g = u + 1; g < d; g++)
|
|
3011
|
+
s[g].points.push(c, _);
|
|
3012
|
+
}
|
|
3013
|
+
);
|
|
3014
|
+
const l = o.concat(...s), r = [];
|
|
3015
|
+
l.forEach((c) => {
|
|
3016
|
+
c.points = c.points.sort(), r.push(...Bl(c));
|
|
2988
3017
|
});
|
|
2989
|
-
const
|
|
3018
|
+
const a = {
|
|
2990
3019
|
row: t.height / e.row,
|
|
2991
3020
|
col: t.width / e.col
|
|
2992
|
-
}, i =
|
|
2993
|
-
return `<svg viewBox='0 0 ${t.width +
|
|
3021
|
+
}, i = Gl(r, a);
|
|
3022
|
+
return `<svg viewBox='0 0 ${t.width + gn} ${t.height + gn} ' width="100%" height="100%"> ${i} </svg>`;
|
|
2994
3023
|
},
|
|
2995
3024
|
StorageDefaultLayout: {
|
|
2996
3025
|
get() {
|
|
2997
|
-
const e = localStorage.getItem(
|
|
3026
|
+
const e = localStorage.getItem(pn);
|
|
2998
3027
|
if (e == null)
|
|
2999
3028
|
return null;
|
|
3000
3029
|
try {
|
|
@@ -3004,10 +3033,25 @@ const Ue = {
|
|
|
3004
3033
|
}
|
|
3005
3034
|
},
|
|
3006
3035
|
set(e) {
|
|
3007
|
-
localStorage.setItem(
|
|
3036
|
+
localStorage.setItem(pn, JSON.stringify(e));
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
CustomLayouts: {
|
|
3040
|
+
get() {
|
|
3041
|
+
const e = localStorage.getItem(hn);
|
|
3042
|
+
if (e == null)
|
|
3043
|
+
return [];
|
|
3044
|
+
try {
|
|
3045
|
+
return JSON.parse(e);
|
|
3046
|
+
} catch {
|
|
3047
|
+
return [];
|
|
3048
|
+
}
|
|
3049
|
+
},
|
|
3050
|
+
set(e) {
|
|
3051
|
+
localStorage.setItem(hn, JSON.stringify(e));
|
|
3008
3052
|
}
|
|
3009
3053
|
}
|
|
3010
|
-
},
|
|
3054
|
+
}, Hl = ie({
|
|
3011
3055
|
emits: {
|
|
3012
3056
|
onselect(e, t) {
|
|
3013
3057
|
return !0;
|
|
@@ -3022,10 +3066,10 @@ const Ue = {
|
|
|
3022
3066
|
}
|
|
3023
3067
|
},
|
|
3024
3068
|
setup(e) {
|
|
3025
|
-
const t =
|
|
3069
|
+
const t = P([]);
|
|
3026
3070
|
return e.layouts && e.layouts.forEach((n) => {
|
|
3027
3071
|
t.value.push({
|
|
3028
|
-
svg:
|
|
3072
|
+
svg: Ce.TransLayoutToSVG(n, { width: 100, height: 100 }),
|
|
3029
3073
|
layout: n,
|
|
3030
3074
|
select: JSON.stringify(n) == JSON.stringify(e.defaultLayout)
|
|
3031
3075
|
});
|
|
@@ -3062,117 +3106,371 @@ const Ue = {
|
|
|
3062
3106
|
}
|
|
3063
3107
|
}
|
|
3064
3108
|
});
|
|
3065
|
-
const
|
|
3066
|
-
function
|
|
3067
|
-
return
|
|
3068
|
-
(
|
|
3069
|
-
class:
|
|
3070
|
-
onClick: (
|
|
3109
|
+
const zl = ["onClick"], Yl = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Kl = ["innerHTML"], Xl = { style: { "vertical-align": "middle" } };
|
|
3110
|
+
function Jl(e, t, n, o, s, l) {
|
|
3111
|
+
return C(), k("div", null, [
|
|
3112
|
+
(C(!0), k(me, null, Pe(e.layoutInfos, (r) => (C(), k("div", {
|
|
3113
|
+
class: Ge(r.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3114
|
+
onClick: (a) => e.selectClick(r)
|
|
3071
3115
|
}, [
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
innerHTML:
|
|
3116
|
+
T("div", Yl, [
|
|
3117
|
+
T("div", {
|
|
3118
|
+
innerHTML: r.svg,
|
|
3075
3119
|
class: "svg-style"
|
|
3076
|
-
}, null, 8,
|
|
3077
|
-
|
|
3120
|
+
}, null, 8, Kl),
|
|
3121
|
+
T("span", Xl, ne(r.layout.name), 1)
|
|
3078
3122
|
])
|
|
3079
|
-
], 10,
|
|
3123
|
+
], 10, zl))), 256))
|
|
3124
|
+
]);
|
|
3125
|
+
}
|
|
3126
|
+
const so = /* @__PURE__ */ ce(Hl, [["render", Jl], ["__scopeId", "data-v-36f7a9fc"]]), Ql = ie({
|
|
3127
|
+
props: {
|
|
3128
|
+
layout: {
|
|
3129
|
+
type: Object
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
setup(e) {
|
|
3133
|
+
const t = G(() => e.layout ? Ce.TransLayoutToFrams(e.layout).sort((o, s) => o.row == s.row ? o.col - s.col : o.row - s.row) : []);
|
|
3134
|
+
return {
|
|
3135
|
+
areas: G(() => t.value.map((o) => ({
|
|
3136
|
+
id: o.id,
|
|
3137
|
+
row: o.row,
|
|
3138
|
+
col: o.col,
|
|
3139
|
+
h: o.h,
|
|
3140
|
+
w: o.w
|
|
3141
|
+
}))),
|
|
3142
|
+
frameRef: t
|
|
3143
|
+
};
|
|
3144
|
+
}
|
|
3145
|
+
});
|
|
3146
|
+
const ql = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3147
|
+
function Zl(e, t, n, o, s, l) {
|
|
3148
|
+
return C(), k("div", ql, [
|
|
3149
|
+
(C(!0), k(me, null, Pe(e.frameRef, ({ layout: r, id: a, row: i, col: c, w: u, h: _ }, d) => (C(), k("div", {
|
|
3150
|
+
class: "play-area",
|
|
3151
|
+
key: d,
|
|
3152
|
+
style: Le(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
|
|
3153
|
+
}, [
|
|
3154
|
+
le(e.$slots, "default", {
|
|
3155
|
+
id: a,
|
|
3156
|
+
row: i,
|
|
3157
|
+
col: c,
|
|
3158
|
+
w: u,
|
|
3159
|
+
h: _,
|
|
3160
|
+
index: d,
|
|
3161
|
+
areas: e.areas
|
|
3162
|
+
}, void 0, !0)
|
|
3163
|
+
], 4))), 128))
|
|
3080
3164
|
]);
|
|
3081
3165
|
}
|
|
3082
|
-
const
|
|
3166
|
+
const ro = /* @__PURE__ */ ce(Ql, [["render", Zl], ["__scopeId", "data-v-e6baa31a"]]), ea = {
|
|
3167
|
+
width: 1024,
|
|
3168
|
+
height: 1024,
|
|
3169
|
+
body: '<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'
|
|
3170
|
+
};
|
|
3171
|
+
ge("close", ea);
|
|
3172
|
+
const ta = ie({
|
|
3173
|
+
components: {
|
|
3174
|
+
VideoAreaLayoutShow: ro,
|
|
3175
|
+
Icon: Xe
|
|
3176
|
+
},
|
|
3177
|
+
setup() {
|
|
3178
|
+
const e = P(3), t = P(3), n = P(
|
|
3179
|
+
[]
|
|
3180
|
+
), o = G(() => M.genLayout(e.value, t.value, n.value)), s = P({}), l = P([]);
|
|
3181
|
+
return {
|
|
3182
|
+
areas: n,
|
|
3183
|
+
row: e,
|
|
3184
|
+
col: t,
|
|
3185
|
+
layout: o,
|
|
3186
|
+
selectAreaInfo: s,
|
|
3187
|
+
tempSelectAreaInfo: l
|
|
3188
|
+
};
|
|
3189
|
+
},
|
|
3190
|
+
mounted() {
|
|
3191
|
+
window.addEventListener("mouseup", this.onMouseUp);
|
|
3192
|
+
},
|
|
3193
|
+
unmounted() {
|
|
3194
|
+
window.removeEventListener("mouseup", this.onMouseUp);
|
|
3195
|
+
},
|
|
3196
|
+
methods: {
|
|
3197
|
+
onDelLayout(e) {
|
|
3198
|
+
console.log(this.layout, e);
|
|
3199
|
+
const t = this.areas.findIndex(
|
|
3200
|
+
([n, o]) => e.row == o && e.col == n
|
|
3201
|
+
);
|
|
3202
|
+
t >= 0 && this.areas.splice(t, 1);
|
|
3203
|
+
},
|
|
3204
|
+
onMouseUp() {
|
|
3205
|
+
if (this.selectAreaInfo.error) {
|
|
3206
|
+
this.selectAreaInfo.start = void 0, this.selectAreaInfo.end = void 0, this.selectAreaInfo.error = void 0;
|
|
3207
|
+
return;
|
|
3208
|
+
}
|
|
3209
|
+
if (this.selectAreaInfo.start) {
|
|
3210
|
+
const e = this.GetLayouts();
|
|
3211
|
+
e && ((e[1].row - e[0].row > 0 || e[1].col - e[0].col > 0) && this.areas.push([
|
|
3212
|
+
e[0].col,
|
|
3213
|
+
e[0].row,
|
|
3214
|
+
e[1].col + 1,
|
|
3215
|
+
e[1].row + 1
|
|
3216
|
+
]), console.log(this.areas), this.selectAreaInfo.start = void 0, this.selectAreaInfo.end = void 0);
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3219
|
+
GetLayouts() {
|
|
3220
|
+
var e, t, n, o, s, l, r, a;
|
|
3221
|
+
if (this.selectAreaInfo.start && this.selectAreaInfo.end)
|
|
3222
|
+
return [
|
|
3223
|
+
{
|
|
3224
|
+
id: "",
|
|
3225
|
+
col: Math.min(
|
|
3226
|
+
(e = this.selectAreaInfo.start) == null ? void 0 : e.col,
|
|
3227
|
+
(t = this.selectAreaInfo.end) == null ? void 0 : t.col
|
|
3228
|
+
),
|
|
3229
|
+
row: Math.min(
|
|
3230
|
+
(n = this.selectAreaInfo.start) == null ? void 0 : n.row,
|
|
3231
|
+
(o = this.selectAreaInfo.end) == null ? void 0 : o.row
|
|
3232
|
+
),
|
|
3233
|
+
areas: []
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
id: "",
|
|
3237
|
+
col: Math.max(
|
|
3238
|
+
(s = this.selectAreaInfo.start) == null ? void 0 : s.col,
|
|
3239
|
+
(l = this.selectAreaInfo.end) == null ? void 0 : l.col
|
|
3240
|
+
),
|
|
3241
|
+
row: Math.max(
|
|
3242
|
+
(r = this.selectAreaInfo.start) == null ? void 0 : r.row,
|
|
3243
|
+
(a = this.selectAreaInfo.end) == null ? void 0 : a.row
|
|
3244
|
+
),
|
|
3245
|
+
areas: []
|
|
3246
|
+
}
|
|
3247
|
+
];
|
|
3248
|
+
},
|
|
3249
|
+
genClass(e) {
|
|
3250
|
+
if (e.w && e.w > 1 || e.h && e.h > 1)
|
|
3251
|
+
return "area-item area-compose";
|
|
3252
|
+
if (this.selectAreaInfo.error && e.row == this.selectAreaInfo.error.row && e.col == this.selectAreaInfo.error.col)
|
|
3253
|
+
return "area-item area-select-cant";
|
|
3254
|
+
let t = "area-item";
|
|
3255
|
+
const n = this.GetLayouts();
|
|
3256
|
+
if (n) {
|
|
3257
|
+
const [o, s] = n;
|
|
3258
|
+
this.checkVaild([o.col, o.row, s.col, s.row]) ? e.col >= o.col && e.col <= s.col && e.row >= o.row && e.row <= s.row && (t += " area-select") : t += " area-select-cant";
|
|
3259
|
+
}
|
|
3260
|
+
return t;
|
|
3261
|
+
},
|
|
3262
|
+
onMouseDown(e) {
|
|
3263
|
+
e.w && e.w > 1 || e.h && e.h > 1 || (this.selectAreaInfo.start = e, this.selectAreaInfo.end = e);
|
|
3264
|
+
},
|
|
3265
|
+
checkVaild(e) {
|
|
3266
|
+
e[0] > e[2];
|
|
3267
|
+
const [t, n] = e[0] > e[2] ? [e[2], e[0]] : [e[0], e[2]], [o, s] = e[1] > e[3] ? [e[3], e[1]] : [e[1], e[3]];
|
|
3268
|
+
console.log(t, n, o, s);
|
|
3269
|
+
for (let l = t; l <= n; l++)
|
|
3270
|
+
for (let r = o; r <= s; r++)
|
|
3271
|
+
if (this.areas.find((a) => this.checkPointInArea([l, r], a)))
|
|
3272
|
+
return !1;
|
|
3273
|
+
return !0;
|
|
3274
|
+
},
|
|
3275
|
+
checkPointInArea([e, t], [n, o, s, l]) {
|
|
3276
|
+
return console.log(e, t, n, o, s, l), e >= n && e < s && t >= o && t < l;
|
|
3277
|
+
},
|
|
3278
|
+
onMouseOver(e, t) {
|
|
3279
|
+
t.w && t.w > 1 || t.h && t.h > 1 || (e.buttons == 1 ? this.selectAreaInfo.start && (this.selectAreaInfo.error = void 0, this.checkVaild([
|
|
3280
|
+
this.selectAreaInfo.start.col,
|
|
3281
|
+
this.selectAreaInfo.start.row,
|
|
3282
|
+
t.col,
|
|
3283
|
+
t.row
|
|
3284
|
+
]) ? this.selectAreaInfo.end = t : this.selectAreaInfo.error = t) : this.selectAreaInfo.start && (this.selectAreaInfo.start = void 0, this.selectAreaInfo.end = void 0));
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
});
|
|
3288
|
+
const na = /* @__PURE__ */ Be(" row "), oa = /* @__PURE__ */ Be(" col "), sa = { style: { height: "calc(100% - 80px)", width: "calc(100% - 40px)", position: "relative" } }, ra = ["onMouseenter", "onMousedown"], la = { style: { "font-size": "32px" } }, aa = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, ia = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, ca = ["onClick"];
|
|
3289
|
+
function ua(e, t, n, o, s, l) {
|
|
3290
|
+
const r = te("Icon"), a = te("VideoAreaLayoutShow");
|
|
3291
|
+
return C(), k(me, null, [
|
|
3292
|
+
T("div", null, [
|
|
3293
|
+
na,
|
|
3294
|
+
xe(T("input", {
|
|
3295
|
+
type: "number",
|
|
3296
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.row = i),
|
|
3297
|
+
min: "3"
|
|
3298
|
+
}, null, 512), [
|
|
3299
|
+
[St, e.row]
|
|
3300
|
+
])
|
|
3301
|
+
]),
|
|
3302
|
+
T("div", null, [
|
|
3303
|
+
oa,
|
|
3304
|
+
xe(T("input", {
|
|
3305
|
+
type: "number",
|
|
3306
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.col = i),
|
|
3307
|
+
min: "3"
|
|
3308
|
+
}, null, 512), [
|
|
3309
|
+
[St, e.col]
|
|
3310
|
+
])
|
|
3311
|
+
]),
|
|
3312
|
+
T("div", sa, [
|
|
3313
|
+
ee(a, { layout: e.layout }, {
|
|
3314
|
+
default: ue((i) => [
|
|
3315
|
+
T("div", {
|
|
3316
|
+
class: Ge(e.genClass(i)),
|
|
3317
|
+
onMouseenter: (c) => e.onMouseOver(c, i),
|
|
3318
|
+
onMousedown: (c) => e.onMouseDown(i),
|
|
3319
|
+
style: { "user-select": "none" }
|
|
3320
|
+
}, [
|
|
3321
|
+
T("div", la, [
|
|
3322
|
+
T("div", aa, ne(i.index + 1), 1),
|
|
3323
|
+
T("div", ia, [
|
|
3324
|
+
T("span", {
|
|
3325
|
+
onClick: (c) => e.onDelLayout(i)
|
|
3326
|
+
}, [
|
|
3327
|
+
i.w > 1 || i.h > 1 ? (C(), _t(r, {
|
|
3328
|
+
key: 0,
|
|
3329
|
+
icon: "close",
|
|
3330
|
+
class: "close-btn"
|
|
3331
|
+
})) : Ie("", !0)
|
|
3332
|
+
], 8, ca)
|
|
3333
|
+
])
|
|
3334
|
+
])
|
|
3335
|
+
], 42, ra)
|
|
3336
|
+
]),
|
|
3337
|
+
_: 1
|
|
3338
|
+
}, 8, ["layout"])
|
|
3339
|
+
])
|
|
3340
|
+
], 64);
|
|
3341
|
+
}
|
|
3342
|
+
const fa = /* @__PURE__ */ ce(ta, [["render", ua], ["__scopeId", "data-v-11ccf8bb"]]), da = ie({
|
|
3343
|
+
components: {
|
|
3344
|
+
Icon: Xe,
|
|
3345
|
+
LayoutShow: so,
|
|
3346
|
+
CustomLayoutGen: fa
|
|
3347
|
+
},
|
|
3348
|
+
setup() {
|
|
3349
|
+
return {
|
|
3350
|
+
layout: P(
|
|
3351
|
+
Ce.CustomLayouts.get()
|
|
3352
|
+
),
|
|
3353
|
+
i18nT: Nt
|
|
3354
|
+
};
|
|
3355
|
+
}
|
|
3356
|
+
});
|
|
3357
|
+
const _a = { style: { "margin-left": "10px", "margin-top": "10px" } }, ma = { class: "plus-custom-layout" }, ga = /* @__PURE__ */ Be("\u6DFB\u52A0\u5E03\u5C40 "), pa = { style: { "margin-top": "10px" } }, ha = { style: { height: "300px" } };
|
|
3358
|
+
function va(e, t, n, o, s, l) {
|
|
3359
|
+
const r = te("Icon"), a = te("CustomLayoutGen");
|
|
3360
|
+
return C(), k("div", _a, [
|
|
3361
|
+
T("span", null, [
|
|
3362
|
+
Be(ne(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
|
|
3363
|
+
T("span", ma, [
|
|
3364
|
+
ee(r, {
|
|
3365
|
+
icon: "plus",
|
|
3366
|
+
style: { "vertical-align": "text-top" }
|
|
3367
|
+
}),
|
|
3368
|
+
ga
|
|
3369
|
+
])
|
|
3370
|
+
]),
|
|
3371
|
+
T("div", pa, [
|
|
3372
|
+
T("div", ha, [
|
|
3373
|
+
ee(a)
|
|
3374
|
+
])
|
|
3375
|
+
])
|
|
3376
|
+
]);
|
|
3377
|
+
}
|
|
3378
|
+
const Ea = /* @__PURE__ */ ce(da, [["render", va], ["__scopeId", "data-v-22e2c2f6"]]), ya = ie({
|
|
3083
3379
|
emits: {
|
|
3084
3380
|
LayoutChange(e, t, n) {
|
|
3085
3381
|
return !0;
|
|
3086
3382
|
}
|
|
3087
3383
|
},
|
|
3088
3384
|
components: {
|
|
3089
|
-
|
|
3385
|
+
UseCustomLayoutSelector: Ea,
|
|
3386
|
+
LayoutShow: so,
|
|
3387
|
+
Icon: Xe
|
|
3090
3388
|
},
|
|
3091
3389
|
setup(e, t) {
|
|
3092
3390
|
const n = [
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3391
|
+
M.Test.genLayout(1, 1),
|
|
3392
|
+
M.Test.genLayout(1, 2),
|
|
3393
|
+
M.Test.genLayout(2, 2),
|
|
3394
|
+
M.Test.genLayout(2, 3),
|
|
3395
|
+
M.genLayout(3, 3, [
|
|
3098
3396
|
[0, 0, 2, 2],
|
|
3099
3397
|
[2, 0, 3, 2]
|
|
3100
3398
|
]),
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
],
|
|
3112
|
-
let
|
|
3113
|
-
const
|
|
3114
|
-
function
|
|
3399
|
+
M.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3400
|
+
M.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3401
|
+
M.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3402
|
+
M.Test.genLayout(3, 3),
|
|
3403
|
+
M.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3404
|
+
M.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3405
|
+
M.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3406
|
+
M.Test.genLayout(4, 4),
|
|
3407
|
+
M.Test.genLayout(5, 5),
|
|
3408
|
+
M.Test.genLayout(6, 6)
|
|
3409
|
+
], o = P();
|
|
3410
|
+
let s = Ce.StorageDefaultLayout.get();
|
|
3411
|
+
const l = s || n[0];
|
|
3412
|
+
function r(p, h) {
|
|
3115
3413
|
return t.emit(
|
|
3116
3414
|
"LayoutChange",
|
|
3117
3415
|
JSON.stringify(p.layout),
|
|
3118
3416
|
p,
|
|
3119
3417
|
() => {
|
|
3120
|
-
u.value &&
|
|
3418
|
+
u.value && _();
|
|
3121
3419
|
}
|
|
3122
3420
|
), p.cancel || (c.value = h), !p.cancel;
|
|
3123
3421
|
}
|
|
3124
|
-
let
|
|
3422
|
+
let a = !0;
|
|
3125
3423
|
const i = function(p, h) {
|
|
3126
|
-
JSON.stringify(
|
|
3127
|
-
}, c =
|
|
3128
|
-
u.value = !u.value, u.value ? window.addEventListener("click",
|
|
3129
|
-
},
|
|
3130
|
-
u.value && p.composedPath().findIndex(({ className:
|
|
3424
|
+
JSON.stringify(s) != JSON.stringify(p) && r(p, h) && a && (s = p.layout, Ce.StorageDefaultLayout.set(p.layout)), c.value.length == 0 && r(p, h);
|
|
3425
|
+
}, c = P(""), u = P(!1), _ = () => {
|
|
3426
|
+
u.value = !u.value, u.value ? window.addEventListener("click", d) : window.removeEventListener("click", d);
|
|
3427
|
+
}, d = (p) => {
|
|
3428
|
+
u.value && p.composedPath().findIndex(({ className: y }) => y == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", d));
|
|
3131
3429
|
};
|
|
3132
3430
|
return {
|
|
3133
|
-
i18nT:
|
|
3134
|
-
selectClassicalLayout: (p, h,
|
|
3135
|
-
var
|
|
3136
|
-
|
|
3137
|
-
const L = n.find((
|
|
3138
|
-
L && ((
|
|
3431
|
+
i18nT: Nt,
|
|
3432
|
+
selectClassicalLayout: (p, h, y) => {
|
|
3433
|
+
var O;
|
|
3434
|
+
y || (a = !1);
|
|
3435
|
+
const L = n.find((N) => N.row == p && N.col == h && typeof N.area > "u" && typeof N.areas > "u");
|
|
3436
|
+
L && ((O = o.value) == null || O.SelectLayoutById(JSON.stringify(L))), y = !0;
|
|
3139
3437
|
},
|
|
3140
3438
|
selectLoyoutById: (p, h) => {
|
|
3141
|
-
var
|
|
3142
|
-
h || (
|
|
3439
|
+
var y;
|
|
3440
|
+
h || (a = !1), (y = o.value) == null || y.SelectLayoutById(p), h = !0;
|
|
3143
3441
|
},
|
|
3144
|
-
refLayoutShow:
|
|
3145
|
-
clickShowSelectPanel:
|
|
3442
|
+
refLayoutShow: o,
|
|
3443
|
+
clickShowSelectPanel: _,
|
|
3146
3444
|
showSelectPanel: u,
|
|
3147
3445
|
onselect: i,
|
|
3148
3446
|
svgSelect: c,
|
|
3149
3447
|
layout: n,
|
|
3150
|
-
defaultLayout:
|
|
3448
|
+
defaultLayout: l
|
|
3151
3449
|
};
|
|
3152
3450
|
},
|
|
3153
3451
|
expose: ["selectLoyoutById", "selectClassicalLayout"]
|
|
3154
3452
|
});
|
|
3155
|
-
const
|
|
3156
|
-
function
|
|
3157
|
-
const
|
|
3158
|
-
return
|
|
3159
|
-
|
|
3160
|
-
onClick: t[0] || (t[0] = (...
|
|
3453
|
+
const ba = { class: "layout-switcher" }, Oa = ["innerHTML"], Na = { class: "switch-panel" }, Ta = { style: { "margin-left": "10px" } }, Ia = { style: { "margin-left": "10px", padding: "10px" } }, La = { style: { "margin-left": "10px" } };
|
|
3454
|
+
function wa(e, t, n, o, s, l) {
|
|
3455
|
+
const r = te("LayoutShow");
|
|
3456
|
+
return C(), k("div", ba, [
|
|
3457
|
+
T("div", {
|
|
3458
|
+
onClick: t[0] || (t[0] = (...a) => e.clickShowSelectPanel && e.clickShowSelectPanel(...a)),
|
|
3161
3459
|
class: "switch-switcher"
|
|
3162
3460
|
}, [
|
|
3163
|
-
|
|
3461
|
+
T("div", {
|
|
3164
3462
|
innerHTML: e.svgSelect,
|
|
3165
3463
|
style: { height: "32px", display: "inline-block", "vertical-align": "middle" }
|
|
3166
|
-
}, null, 8,
|
|
3464
|
+
}, null, 8, Oa)
|
|
3167
3465
|
]),
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3466
|
+
xe(T("div", Na, [
|
|
3467
|
+
T("div", Ta, [
|
|
3468
|
+
T("span", null, ne(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
|
|
3171
3469
|
]),
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3470
|
+
T("div", Ia, [
|
|
3471
|
+
T("div", La, [
|
|
3472
|
+
T("span", null, ne(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
|
|
3473
|
+
ee(r, {
|
|
3176
3474
|
ref: "refLayoutShow",
|
|
3177
3475
|
layouts: e.layout,
|
|
3178
3476
|
defaultLayout: e.defaultLayout,
|
|
@@ -3181,60 +3479,26 @@ function Qa(e, t, n, r, o, a) {
|
|
|
3181
3479
|
])
|
|
3182
3480
|
])
|
|
3183
3481
|
], 512), [
|
|
3184
|
-
[
|
|
3482
|
+
[yn, e.showSelectPanel]
|
|
3185
3483
|
])
|
|
3186
3484
|
]);
|
|
3187
3485
|
}
|
|
3188
|
-
const
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
},
|
|
3194
|
-
setup(e) {
|
|
3195
|
-
const t = W(() => e.layout ? Ue.TransLayoutToFrams(e.layout).sort((r, o) => r.row == o.row ? r.col - o.col : r.row - o.row) : []);
|
|
3196
|
-
return {
|
|
3197
|
-
areas: W(() => t.value.map((r) => ({
|
|
3198
|
-
id: r.id,
|
|
3199
|
-
row: r.row,
|
|
3200
|
-
col: r.col
|
|
3201
|
-
}))),
|
|
3202
|
-
frameRef: t
|
|
3203
|
-
};
|
|
3204
|
-
}
|
|
3205
|
-
});
|
|
3206
|
-
const el = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3207
|
-
function tl(e, t, n, r, o, a) {
|
|
3208
|
-
return A(), F("div", el, [
|
|
3209
|
-
(A(!0), F(Oe, null, De(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (A(), F("div", {
|
|
3210
|
-
class: "play-area",
|
|
3211
|
-
style: Le(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
|
|
3212
|
-
}, [
|
|
3213
|
-
oe(e.$slots, "default", {
|
|
3214
|
-
id: l,
|
|
3215
|
-
row: i,
|
|
3216
|
-
col: c,
|
|
3217
|
-
areas: e.areas
|
|
3218
|
-
}, void 0, !0)
|
|
3219
|
-
], 4))), 256))
|
|
3220
|
-
]);
|
|
3221
|
-
}
|
|
3222
|
-
const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-efd900be"]]), un = {
|
|
3223
|
-
RecursionDeviceGroup: Ia,
|
|
3224
|
-
VideoAreasLayoutShow: nl,
|
|
3225
|
-
MultiVideoAreaLayoutSwitch: qa
|
|
3226
|
-
}, sl = {
|
|
3486
|
+
const Sa = /* @__PURE__ */ ce(ya, [["render", wa], ["__scopeId", "data-v-9b560073"]]), vn = {
|
|
3487
|
+
RecursionDeviceGroup: $l,
|
|
3488
|
+
VideoAreasLayoutShow: ro,
|
|
3489
|
+
MultiVideoAreaLayoutSwitch: Sa
|
|
3490
|
+
}, Ca = {
|
|
3227
3491
|
install(e, t) {
|
|
3228
|
-
|
|
3229
|
-
for (const n in
|
|
3230
|
-
const
|
|
3231
|
-
e.component(n,
|
|
3492
|
+
Tr(t && typeof t.locale < "u" ? t.locale : Kn.en);
|
|
3493
|
+
for (const n in vn) {
|
|
3494
|
+
const o = vn[n];
|
|
3495
|
+
e.component(n, o);
|
|
3232
3496
|
}
|
|
3233
3497
|
}
|
|
3234
3498
|
};
|
|
3235
3499
|
export {
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3500
|
+
tn as RecursionDeviceGroup,
|
|
3501
|
+
M as VideoAreaLayout,
|
|
3502
|
+
Ca as default
|
|
3239
3503
|
};
|
|
3240
3504
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|