lty-protocol 1.0.25 → 1.0.28
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/index.d.ts +6 -2
- package/dist/lty-protocol.mjs +335 -334
- package/dist/lty-protocol.umd.js +6 -6
- package/package.json +1 -1
package/dist/lty-protocol.mjs
CHANGED
|
@@ -89,7 +89,7 @@ const Qr = /* @__PURE__ */ pe({
|
|
|
89
89
|
})), b = a.component;
|
|
90
90
|
return (T, N) => (Ne(), Xt(zn(er(b)), tr(nr(m.value)), null, 16));
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), ts = {
|
|
93
93
|
install(e, t) {
|
|
94
94
|
e.provide(ar, t);
|
|
95
95
|
}
|
|
@@ -111,7 +111,7 @@ class re {
|
|
|
111
111
|
return n.fromPlain(t);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class ns {
|
|
115
115
|
static getDefaultConfig(t) {
|
|
116
116
|
console.log(1231231, t);
|
|
117
117
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -122,11 +122,11 @@ class ts {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
type:
|
|
127
|
-
baseInfo:
|
|
128
|
-
tab:
|
|
129
|
-
configuration:
|
|
125
|
+
const rs = "Ethernet", ss = [{ key: "name", name: { i18nKey: "name" }, defaultValue: "Ethernet" }, { key: "supplier", name: { i18nKey: "supplier" }, defaultValue: { i18nKey: "company" } }, { key: "version", name: { i18nKey: "verison" }, defaultValue: "1.0.0.0" }, { key: "description", name: { i18nKey: "description" }, defaultValue: { i18nKey: "descriptionMap.ethernet" } }, { key: "category", name: { i18nKey: "category" }, defaultValue: { i18nKey: "ethernet" } }], as = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], os = { general: [{ key: "netInterface", name: { i18nKey: "netInterface" }, dataType: "string", componentType: "strInput", defaultValue: "" }, { key: "ipAddress", name: { i18nKey: "ipAddress" }, dataType: "string", componentType: "ipInput", defaultValue: "192.168.1.1" }, { key: "subnetMask", name: { i18nKey: "subnetMask" }, dataType: "string", componentType: "ipInput", defaultValue: "255.255.255.0" }, { key: "defaultGateway", name: { i18nKey: "defaultGateway" }, dataType: "string", componentType: "ipInput", defaultValue: "0.0.0.0" }, { key: "adaptedOSConfiguration", name: { i18nKey: "adaptedOSConfiguration" }, dataType: "boolean", componentType: "switch", defaultValue: !1 }], ioMapping: [{ key: "busCycleTask", name: { i18nKey: "busCycleTask" }, dataType: "string", componentType: "select", defaultValue: "-1" }] }, ls = {
|
|
126
|
+
type: rs,
|
|
127
|
+
baseInfo: ss,
|
|
128
|
+
tab: as,
|
|
129
|
+
configuration: os
|
|
130
130
|
};
|
|
131
131
|
class ot extends re {
|
|
132
132
|
type = Ee.ETHERNET;
|
|
@@ -136,7 +136,7 @@ class ot extends re {
|
|
|
136
136
|
tab;
|
|
137
137
|
constructor(t) {
|
|
138
138
|
super(t);
|
|
139
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
139
|
+
const { baseInfo: n, config: r, tab: s } = ns.getDefaultConfig(ls);
|
|
140
140
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
141
141
|
}
|
|
142
142
|
static fromPlain(t) {
|
|
@@ -228,7 +228,7 @@ const lt = {
|
|
|
228
228
|
EtherCatModule: 16384
|
|
229
229
|
// Ethercat子模块
|
|
230
230
|
};
|
|
231
|
-
class
|
|
231
|
+
class is {
|
|
232
232
|
map = /* @__PURE__ */ new Map();
|
|
233
233
|
constructor() {
|
|
234
234
|
re.register("Ethernet", ot), re.register("ModbusTCPServer", qt), re.register("ModbusTCPClient", Zt), re.register("ModbusTCPSlaveDevice", zt);
|
|
@@ -258,11 +258,11 @@ class ls {
|
|
|
258
258
|
this.map.clear();
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const cs = /* @__PURE__ */ pe({
|
|
262
262
|
__name: "App",
|
|
263
263
|
setup(e) {
|
|
264
264
|
const t = nt("192.168.1.1"), n = nt("123"), r = nt(12345);
|
|
265
|
-
return new
|
|
265
|
+
return new is(), new ot({
|
|
266
266
|
id: 1,
|
|
267
267
|
deviceId: 1,
|
|
268
268
|
type: "Ethernet"
|
|
@@ -304,11 +304,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
304
304
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const us = /\{([0-9a-zA-Z]+)\}/g;
|
|
308
308
|
function it(e, ...t) {
|
|
309
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
309
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(us, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
310
310
|
}
|
|
311
|
-
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
311
|
+
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), ms = (e) => tn(e) === "[object Date]", Me = (e) => tn(e) === "[object RegExp]", ct = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, ds = Object.create, $ = (e = null) => ds(e);
|
|
312
312
|
let gn;
|
|
313
313
|
const ve = () => gn || (gn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
314
314
|
function Nn(e) {
|
|
@@ -317,7 +317,7 @@ function Nn(e) {
|
|
|
317
317
|
function Tn(e) {
|
|
318
318
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Es(e) {
|
|
321
321
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${Tn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${Tn(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
322
322
|
// In href, src, action, formaction attributes
|
|
323
323
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -327,16 +327,16 @@ function ds(e) {
|
|
|
327
327
|
e = e.replace(r, "$1javascript:");
|
|
328
328
|
}), e;
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const ps = Object.prototype.hasOwnProperty;
|
|
331
331
|
function oe(e, t) {
|
|
332
|
-
return
|
|
332
|
+
return ps.call(e, t);
|
|
333
333
|
}
|
|
334
|
-
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object",
|
|
334
|
+
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object", gs = (e) => M(e) && W(e.then) && W(e.catch), ir = Object.prototype.toString, tn = (e) => ir.call(e), R = (e) => tn(e) === "[object Object]", Ns = (e) => e == null ? "" : H(e) || R(e) && e.toString === ir ? JSON.stringify(e, null, 2) : String(e);
|
|
335
335
|
function nn(e, t = "") {
|
|
336
336
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
337
337
|
}
|
|
338
338
|
const bn = 2;
|
|
339
|
-
function
|
|
339
|
+
function Ts(e, t = 0, n = e.length) {
|
|
340
340
|
const r = e.split(/\r?\n/);
|
|
341
341
|
let s = 0;
|
|
342
342
|
const a = [];
|
|
@@ -393,7 +393,7 @@ function st(e, t) {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function bs(e, t, n) {
|
|
397
397
|
return { line: e, column: t, offset: n };
|
|
398
398
|
}
|
|
399
399
|
function Ft(e, t, n) {
|
|
@@ -420,7 +420,7 @@ const P = {
|
|
|
420
420
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
421
421
|
// minifier error codes
|
|
422
422
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
423
|
-
},
|
|
423
|
+
}, Is = 17, hs = {
|
|
424
424
|
// tokenizer error messages
|
|
425
425
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
426
426
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -443,18 +443,18 @@ const P = {
|
|
|
443
443
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
444
444
|
};
|
|
445
445
|
function we(e, t, n = {}) {
|
|
446
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? it((s ||
|
|
446
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? it((s || hs)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
447
447
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ls(e) {
|
|
450
450
|
throw e;
|
|
451
451
|
}
|
|
452
|
-
const
|
|
453
|
-
`,
|
|
454
|
-
function
|
|
452
|
+
const Os = /<\/?[\w\s="/.':;#-\/]+>/, vs = (e) => Os.test(e), ie = " ", Cs = "\r", Q = `
|
|
453
|
+
`, As = "\u2028", Ss = "\u2029";
|
|
454
|
+
function ys(e) {
|
|
455
455
|
const t = e;
|
|
456
456
|
let n = 0, r = 1, s = 1, a = 0;
|
|
457
|
-
const o = (p) => t[p] ===
|
|
457
|
+
const o = (p) => t[p] === Cs && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === Ss, m = (p) => t[p] === As, b = (p) => o(p) || i(p) || u(p) || m(p), T = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || m(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
458
458
|
function d() {
|
|
459
459
|
return a = 0, b(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
460
460
|
}
|
|
@@ -488,9 +488,9 @@ function Ss(e) {
|
|
|
488
488
|
skipToPeek: v
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
const me = void 0,
|
|
492
|
-
function
|
|
493
|
-
const n = t.location !== !1, r =
|
|
491
|
+
const me = void 0, Ps = ".", In = "'", Ds = "tokenizer";
|
|
492
|
+
function ks(e, t = {}) {
|
|
493
|
+
const n = t.location !== !1, r = ys(e), s = () => r.index(), a = () => bs(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
494
494
|
currentType: 13,
|
|
495
495
|
offset: i,
|
|
496
496
|
startLoc: o,
|
|
@@ -507,7 +507,7 @@ function Ds(e, t = {}) {
|
|
|
507
507
|
const x = m();
|
|
508
508
|
if (c.column += g, c.offset += g, b) {
|
|
509
509
|
const K = n ? Ft(x.startLoc, c) : null, U = we(l, K, {
|
|
510
|
-
domain:
|
|
510
|
+
domain: Ds,
|
|
511
511
|
args: y
|
|
512
512
|
});
|
|
513
513
|
b(U);
|
|
@@ -889,8 +889,8 @@ function Ds(e, t = {}) {
|
|
|
889
889
|
context: m
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
const
|
|
893
|
-
function
|
|
892
|
+
const Rs = "parser", Ms = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
893
|
+
function Fs(e, t, n) {
|
|
894
894
|
switch (e) {
|
|
895
895
|
case "\\\\":
|
|
896
896
|
return "\\";
|
|
@@ -903,13 +903,13 @@ function Ms(e, t, n) {
|
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function Us(e = {}) {
|
|
907
907
|
const t = e.location !== !1, { onError: n } = e;
|
|
908
908
|
function r(f, d, h, E, ...O) {
|
|
909
909
|
const v = f.currentPosition();
|
|
910
910
|
if (v.offset += E, v.column += E, n) {
|
|
911
911
|
const p = t ? Ft(h, v) : null, k = we(d, p, {
|
|
912
|
-
domain:
|
|
912
|
+
domain: Rs,
|
|
913
913
|
args: O
|
|
914
914
|
});
|
|
915
915
|
n(k);
|
|
@@ -936,7 +936,7 @@ function Fs(e = {}) {
|
|
|
936
936
|
}
|
|
937
937
|
function m(f, d) {
|
|
938
938
|
const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(9, E, O);
|
|
939
|
-
return v.value = d.replace(
|
|
939
|
+
return v.value = d.replace(Ms, Fs), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
940
940
|
}
|
|
941
941
|
function b(f) {
|
|
942
942
|
const d = f.nextToken(), h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(8, E, O);
|
|
@@ -1029,7 +1029,7 @@ function Fs(e = {}) {
|
|
|
1029
1029
|
return d.currentType === 13 ? O : D(f, h, E, O);
|
|
1030
1030
|
}
|
|
1031
1031
|
function S(f) {
|
|
1032
|
-
const d =
|
|
1032
|
+
const d = ks(f, J({}, e)), h = d.context(), E = s(0, h.offset, h.startLoc);
|
|
1033
1033
|
return t && E.loc && (E.loc.source = f), E.body = C(d), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), h.currentType !== 13 && r(d, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), a(E, d.currentOffset(), d.currentPosition()), E;
|
|
1034
1034
|
}
|
|
1035
1035
|
return { parse: S };
|
|
@@ -1040,7 +1040,7 @@ function ce(e) {
|
|
|
1040
1040
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1041
1041
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function ws(e, t = {}) {
|
|
1044
1044
|
const n = {
|
|
1045
1045
|
ast: e,
|
|
1046
1046
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1092,8 +1092,8 @@ function sn(e, t) {
|
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
const n =
|
|
1095
|
+
function Vs(e, t = {}) {
|
|
1096
|
+
const n = ws(e);
|
|
1097
1097
|
n.helper(
|
|
1098
1098
|
"normalize"
|
|
1099
1099
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -1101,7 +1101,7 @@ function ws(e, t = {}) {
|
|
|
1101
1101
|
const r = n.context();
|
|
1102
1102
|
e.helpers = Array.from(r.helpers);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function $s(e) {
|
|
1105
1105
|
const t = e.body;
|
|
1106
1106
|
return t.type === 2 ? Ln(t) : t.cases.forEach((n) => Ln(n)), e;
|
|
1107
1107
|
}
|
|
@@ -1126,7 +1126,7 @@ function Ln(e) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1129
|
+
const Ws = "minifier";
|
|
1130
1130
|
function ke(e) {
|
|
1131
1131
|
switch (e.t = e.type, e.type) {
|
|
1132
1132
|
case 0: {
|
|
@@ -1174,14 +1174,14 @@ function ke(e) {
|
|
|
1174
1174
|
default:
|
|
1175
1175
|
if (process.env.NODE_ENV !== "production")
|
|
1176
1176
|
throw we(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1177
|
-
domain:
|
|
1177
|
+
domain: Ws,
|
|
1178
1178
|
args: [e.type]
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
1181
|
delete e.type;
|
|
1182
1182
|
}
|
|
1183
|
-
const
|
|
1184
|
-
function
|
|
1183
|
+
const Gs = "parser";
|
|
1184
|
+
function xs(e, t) {
|
|
1185
1185
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1186
1186
|
filename: n,
|
|
1187
1187
|
code: "",
|
|
@@ -1223,14 +1223,14 @@ function Gs(e, t) {
|
|
|
1223
1223
|
needIndent: () => o.needIndent
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Hs(e, t) {
|
|
1227
1227
|
const { helper: n } = e;
|
|
1228
1228
|
e.push(`${n(
|
|
1229
1229
|
"linked"
|
|
1230
1230
|
/* HelperNameMap.LINKED */
|
|
1231
1231
|
)}(`), Fe(e, t.key), t.modifier ? (e.push(", "), Fe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function Ys(e, t) {
|
|
1234
1234
|
const { helper: n, needIndent: r } = e;
|
|
1235
1235
|
e.push(`${n(
|
|
1236
1236
|
"normalize"
|
|
@@ -1241,7 +1241,7 @@ function Hs(e, t) {
|
|
|
1241
1241
|
e.push(", ");
|
|
1242
1242
|
e.deindent(r()), e.push("])");
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Ks(e, t) {
|
|
1245
1245
|
const { helper: n, needIndent: r } = e;
|
|
1246
1246
|
if (t.cases.length > 1) {
|
|
1247
1247
|
e.push(`${n(
|
|
@@ -1254,23 +1254,23 @@ function Ys(e, t) {
|
|
|
1254
1254
|
e.deindent(r()), e.push("])");
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Bs(e, t) {
|
|
1258
1258
|
t.body ? Fe(e, t.body) : e.push("null");
|
|
1259
1259
|
}
|
|
1260
1260
|
function Fe(e, t) {
|
|
1261
1261
|
const { helper: n } = e;
|
|
1262
1262
|
switch (t.type) {
|
|
1263
1263
|
case 0:
|
|
1264
|
-
|
|
1264
|
+
Bs(e, t);
|
|
1265
1265
|
break;
|
|
1266
1266
|
case 1:
|
|
1267
|
-
|
|
1267
|
+
Ks(e, t);
|
|
1268
1268
|
break;
|
|
1269
1269
|
case 2:
|
|
1270
|
-
|
|
1270
|
+
Ys(e, t);
|
|
1271
1271
|
break;
|
|
1272
1272
|
case 6:
|
|
1273
|
-
|
|
1273
|
+
Hs(e, t);
|
|
1274
1274
|
break;
|
|
1275
1275
|
case 8:
|
|
1276
1276
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1305,16 +1305,16 @@ function Fe(e, t) {
|
|
|
1305
1305
|
default:
|
|
1306
1306
|
if (process.env.NODE_ENV !== "production")
|
|
1307
1307
|
throw we(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1308
|
-
domain:
|
|
1308
|
+
domain: Gs,
|
|
1309
1309
|
args: [t.type]
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
const
|
|
1313
|
+
const js = (e, t = {}) => {
|
|
1314
1314
|
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1315
1315
|
t.sourceMap;
|
|
1316
1316
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1317
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1317
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = xs(e, {
|
|
1318
1318
|
filename: r,
|
|
1319
1319
|
breakLineCode: s,
|
|
1320
1320
|
needIndent: a
|
|
@@ -1328,30 +1328,30 @@ const Bs = (e, t = {}) => {
|
|
|
1328
1328
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1329
1329
|
};
|
|
1330
1330
|
};
|
|
1331
|
-
function
|
|
1332
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1333
|
-
return r ? (a &&
|
|
1331
|
+
function Xs(e, t = {}) {
|
|
1332
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = Us(n).parse(e);
|
|
1333
|
+
return r ? (a && $s(i), s && ke(i), { ast: i, code: "" }) : (Vs(i, n), js(i, n));
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Js() {
|
|
1336
1336
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1337
1337
|
}
|
|
1338
1338
|
function se(e) {
|
|
1339
1339
|
return M(e) && an(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1340
1340
|
}
|
|
1341
1341
|
const cr = ["b", "body"];
|
|
1342
|
-
function
|
|
1342
|
+
function Qs(e) {
|
|
1343
1343
|
return Te(e, cr);
|
|
1344
1344
|
}
|
|
1345
1345
|
const ur = ["c", "cases"];
|
|
1346
|
-
function
|
|
1346
|
+
function qs(e) {
|
|
1347
1347
|
return Te(e, ur, []);
|
|
1348
1348
|
}
|
|
1349
1349
|
const fr = ["s", "static"];
|
|
1350
|
-
function
|
|
1350
|
+
function Zs(e) {
|
|
1351
1351
|
return Te(e, fr);
|
|
1352
1352
|
}
|
|
1353
1353
|
const _r = ["i", "items"];
|
|
1354
|
-
function
|
|
1354
|
+
function zs(e) {
|
|
1355
1355
|
return Te(e, _r, []);
|
|
1356
1356
|
}
|
|
1357
1357
|
const mr = ["t", "type"];
|
|
@@ -1366,11 +1366,11 @@ function et(e, t) {
|
|
|
1366
1366
|
throw Ye(t);
|
|
1367
1367
|
}
|
|
1368
1368
|
const Er = ["m", "modifier"];
|
|
1369
|
-
function
|
|
1369
|
+
function ea(e) {
|
|
1370
1370
|
return Te(e, Er);
|
|
1371
1371
|
}
|
|
1372
1372
|
const pr = ["k", "key"];
|
|
1373
|
-
function
|
|
1373
|
+
function ta(e) {
|
|
1374
1374
|
const t = Te(e, pr);
|
|
1375
1375
|
if (t)
|
|
1376
1376
|
return t;
|
|
@@ -1401,17 +1401,17 @@ function Ye(e) {
|
|
|
1401
1401
|
return new Error(`unhandled node type: ${e}`);
|
|
1402
1402
|
}
|
|
1403
1403
|
function Pt(e) {
|
|
1404
|
-
return (n) =>
|
|
1404
|
+
return (n) => na(n, e);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
const n =
|
|
1406
|
+
function na(e, t) {
|
|
1407
|
+
const n = Qs(t);
|
|
1408
1408
|
if (n == null)
|
|
1409
1409
|
throw Ye(
|
|
1410
1410
|
0
|
|
1411
1411
|
/* NodeTypes.Resource */
|
|
1412
1412
|
);
|
|
1413
1413
|
if (an(n) === 1) {
|
|
1414
|
-
const a =
|
|
1414
|
+
const a = qs(n);
|
|
1415
1415
|
return e.plural(a.reduce((o, i) => [
|
|
1416
1416
|
...o,
|
|
1417
1417
|
On(e, i)
|
|
@@ -1420,11 +1420,11 @@ function ta(e, t) {
|
|
|
1420
1420
|
return On(e, n);
|
|
1421
1421
|
}
|
|
1422
1422
|
function On(e, t) {
|
|
1423
|
-
const n =
|
|
1423
|
+
const n = Zs(t);
|
|
1424
1424
|
if (n != null)
|
|
1425
1425
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1426
1426
|
{
|
|
1427
|
-
const r =
|
|
1427
|
+
const r = zs(t).reduce((s, a) => [...s, Ut(e, a)], []);
|
|
1428
1428
|
return e.normalize(r);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
@@ -1452,7 +1452,7 @@ function Ut(e, t) {
|
|
|
1452
1452
|
throw Ye(n);
|
|
1453
1453
|
}
|
|
1454
1454
|
case 6: {
|
|
1455
|
-
const r = t, s =
|
|
1455
|
+
const r = t, s = ea(r), a = ta(r);
|
|
1456
1456
|
return e.linked(Ut(e, a), s ? Ut(e, s) : void 0, e.type);
|
|
1457
1457
|
}
|
|
1458
1458
|
case 7:
|
|
@@ -1463,28 +1463,28 @@ function Ut(e, t) {
|
|
|
1463
1463
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
const
|
|
1467
|
-
function
|
|
1468
|
-
t &&
|
|
1466
|
+
const ra = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1467
|
+
function sa(e, t) {
|
|
1468
|
+
t && vs(e) && ue(it(ra, { source: e }));
|
|
1469
1469
|
}
|
|
1470
|
-
const
|
|
1470
|
+
const aa = (e) => e;
|
|
1471
1471
|
let tt = $();
|
|
1472
|
-
function
|
|
1472
|
+
function oa(e, t = {}) {
|
|
1473
1473
|
let n = !1;
|
|
1474
|
-
const r = t.onError ||
|
|
1474
|
+
const r = t.onError || Ls;
|
|
1475
1475
|
return t.onError = (s) => {
|
|
1476
1476
|
n = !0, r(s);
|
|
1477
|
-
}, { ...
|
|
1477
|
+
}, { ...Xs(e, t), detectError: n };
|
|
1478
1478
|
}
|
|
1479
1479
|
// @__NO_SIDE_EFFECTS__
|
|
1480
|
-
function
|
|
1480
|
+
function la(e, t) {
|
|
1481
1481
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1482
1482
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1483
|
-
process.env.NODE_ENV !== "production" &&
|
|
1484
|
-
const s = (t.onCacheKey ||
|
|
1483
|
+
process.env.NODE_ENV !== "production" && sa(e, n);
|
|
1484
|
+
const s = (t.onCacheKey || aa)(e), a = tt[s];
|
|
1485
1485
|
if (a)
|
|
1486
1486
|
return a;
|
|
1487
|
-
const { ast: o, detectError: i } =
|
|
1487
|
+
const { ast: o, detectError: i } = oa(e, {
|
|
1488
1488
|
...t,
|
|
1489
1489
|
location: process.env.NODE_ENV !== "production",
|
|
1490
1490
|
jit: !0
|
|
@@ -1502,10 +1502,10 @@ function oa(e, t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
let Ke = null;
|
|
1505
|
-
function
|
|
1505
|
+
function ia(e) {
|
|
1506
1506
|
Ke = e;
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function ca(e, t, n) {
|
|
1509
1509
|
Ke && Ke.emit("i18n:init", {
|
|
1510
1510
|
timestamp: Date.now(),
|
|
1511
1511
|
i18n: e,
|
|
@@ -1513,12 +1513,12 @@ function ia(e, t, n) {
|
|
|
1513
1513
|
meta: n
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1516
|
+
const ua = /* @__PURE__ */ fa("function:translate");
|
|
1517
|
+
function fa(e) {
|
|
1518
1518
|
return (t) => Ke && Ke.emit(e, t);
|
|
1519
1519
|
}
|
|
1520
1520
|
const q = {
|
|
1521
|
-
INVALID_ARGUMENT:
|
|
1521
|
+
INVALID_ARGUMENT: Is,
|
|
1522
1522
|
// 17
|
|
1523
1523
|
INVALID_DATE_ARGUMENT: 18,
|
|
1524
1524
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1526,11 +1526,11 @@ const q = {
|
|
|
1526
1526
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1527
1527
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1528
1528
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1529
|
-
},
|
|
1529
|
+
}, _a = 24;
|
|
1530
1530
|
function de(e) {
|
|
1531
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1531
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: ma } : void 0);
|
|
1532
1532
|
}
|
|
1533
|
-
const
|
|
1533
|
+
const ma = {
|
|
1534
1534
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1535
1535
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1536
1536
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1551,7 +1551,7 @@ function vn(e) {
|
|
|
1551
1551
|
return Dt;
|
|
1552
1552
|
if (e.constructor.name === "Function") {
|
|
1553
1553
|
const t = e();
|
|
1554
|
-
if (
|
|
1554
|
+
if (gs(t))
|
|
1555
1555
|
throw de(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1556
1556
|
return Dt = t;
|
|
1557
1557
|
} else
|
|
@@ -1559,7 +1559,7 @@ function vn(e) {
|
|
|
1559
1559
|
} else
|
|
1560
1560
|
throw de(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function da(e, t, n) {
|
|
1563
1563
|
return [.../* @__PURE__ */ new Set([
|
|
1564
1564
|
n,
|
|
1565
1565
|
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
@@ -1583,20 +1583,20 @@ function Cn(e, t, n) {
|
|
|
1583
1583
|
let r = !0;
|
|
1584
1584
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1585
1585
|
const a = t[s];
|
|
1586
|
-
L(a) && (r =
|
|
1586
|
+
L(a) && (r = Ea(e, t[s], n));
|
|
1587
1587
|
}
|
|
1588
1588
|
return r;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function Ea(e, t, n) {
|
|
1591
1591
|
let r;
|
|
1592
1592
|
const s = t.split("-");
|
|
1593
1593
|
do {
|
|
1594
1594
|
const a = s.join("-");
|
|
1595
|
-
r =
|
|
1595
|
+
r = pa(e, a, n), s.splice(-1, 1);
|
|
1596
1596
|
} while (s.length && r === !0);
|
|
1597
1597
|
return r;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function pa(e, t, n) {
|
|
1600
1600
|
let r = !1;
|
|
1601
1601
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1602
1602
|
r = t[t.length - 1] !== "!";
|
|
@@ -1766,15 +1766,15 @@ be[
|
|
|
1766
1766
|
/* Actions.APPEND */
|
|
1767
1767
|
]
|
|
1768
1768
|
};
|
|
1769
|
-
const
|
|
1770
|
-
function ga(e) {
|
|
1771
|
-
return pa.test(e);
|
|
1772
|
-
}
|
|
1769
|
+
const ga = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1773
1770
|
function Na(e) {
|
|
1771
|
+
return ga.test(e);
|
|
1772
|
+
}
|
|
1773
|
+
function Ta(e) {
|
|
1774
1774
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1775
1775
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function ba(e) {
|
|
1778
1778
|
if (e == null)
|
|
1779
1779
|
return "o";
|
|
1780
1780
|
switch (e.charCodeAt(0)) {
|
|
@@ -1811,11 +1811,11 @@ function Ta(e) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
return "i";
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function Ia(e) {
|
|
1815
1815
|
const t = e.trim();
|
|
1816
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1816
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Na(t) ? Ta(t) : "*" + t;
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function ha(e) {
|
|
1819
1819
|
const t = [];
|
|
1820
1820
|
let n = -1, r = 0, s = 0, a, o, i, u, m, b, T;
|
|
1821
1821
|
const N = [];
|
|
@@ -1847,7 +1847,7 @@ function Ia(e) {
|
|
|
1847
1847
|
/* Actions.APPEND */
|
|
1848
1848
|
]();
|
|
1849
1849
|
else {
|
|
1850
|
-
if (s = 0, o === void 0 || (o =
|
|
1850
|
+
if (s = 0, o === void 0 || (o = Ia(o), o === !1))
|
|
1851
1851
|
return !1;
|
|
1852
1852
|
N[
|
|
1853
1853
|
1
|
|
@@ -1865,21 +1865,21 @@ function Ia(e) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
for (; r !== null; )
|
|
1867
1867
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1868
|
-
if (u =
|
|
1868
|
+
if (u = ba(a), T = be[r], m = T[u] || T.l || 8, m === 8 || (r = m[0], m[1] !== void 0 && (b = N[m[1]], b && (i = a, b() === !1))))
|
|
1869
1869
|
return;
|
|
1870
1870
|
if (r === 7)
|
|
1871
1871
|
return t;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
const An = /* @__PURE__ */ new Map();
|
|
1875
|
-
function
|
|
1875
|
+
function La(e, t) {
|
|
1876
1876
|
return M(e) ? e[t] : null;
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function Oa(e, t) {
|
|
1879
1879
|
if (!M(e))
|
|
1880
1880
|
return null;
|
|
1881
1881
|
let n = An.get(t);
|
|
1882
|
-
if (n || (n =
|
|
1882
|
+
if (n || (n = ha(t), n && An.set(t, n)), !n)
|
|
1883
1883
|
return null;
|
|
1884
1884
|
const r = n.length;
|
|
1885
1885
|
let s = e, a = 0;
|
|
@@ -1902,7 +1902,7 @@ const Z = {
|
|
|
1902
1902
|
CANNOT_FORMAT_DATE: 5,
|
|
1903
1903
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1904
1904
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1905
|
-
},
|
|
1905
|
+
}, va = 8, Ca = {
|
|
1906
1906
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1907
1907
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1908
1908
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1912,10 +1912,10 @@ const Z = {
|
|
|
1912
1912
|
[Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1913
1913
|
};
|
|
1914
1914
|
function Ae(e, ...t) {
|
|
1915
|
-
return it(
|
|
1915
|
+
return it(Ca[e], ...t);
|
|
1916
1916
|
}
|
|
1917
|
-
const
|
|
1918
|
-
function
|
|
1917
|
+
const Aa = "11.2.8", ut = -1, Be = "en-US", at = "", Sn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1918
|
+
function Sa() {
|
|
1919
1919
|
return {
|
|
1920
1920
|
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1921
1921
|
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1923,30 +1923,30 @@ function Aa() {
|
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
1925
|
let Tr;
|
|
1926
|
-
function
|
|
1926
|
+
function ya(e) {
|
|
1927
1927
|
Tr = e;
|
|
1928
1928
|
}
|
|
1929
1929
|
let br;
|
|
1930
|
-
function
|
|
1930
|
+
function Pa(e) {
|
|
1931
1931
|
br = e;
|
|
1932
1932
|
}
|
|
1933
1933
|
let Ir;
|
|
1934
|
-
function
|
|
1934
|
+
function Da(e) {
|
|
1935
1935
|
Ir = e;
|
|
1936
1936
|
}
|
|
1937
1937
|
let hr = null;
|
|
1938
|
-
const
|
|
1938
|
+
const ka = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1939
1939
|
hr = e;
|
|
1940
|
-
},
|
|
1940
|
+
}, Ra = /* @__NO_SIDE_EFFECTS__ */ () => hr;
|
|
1941
1941
|
let Lr = null;
|
|
1942
1942
|
const yn = (e) => {
|
|
1943
1943
|
Lr = e;
|
|
1944
|
-
},
|
|
1944
|
+
}, Ma = () => Lr;
|
|
1945
1945
|
let Pn = 0;
|
|
1946
|
-
function
|
|
1947
|
-
const t = W(e.onWarn) ? e.onWarn : ue, n = L(e.version) ? e.version :
|
|
1946
|
+
function Fa(e = {}) {
|
|
1947
|
+
const t = W(e.onWarn) ? e.onWarn : ue, n = L(e.version) ? e.version : Aa, r = L(e.locale) || W(e.locale) ? e.locale : Be, s = W(r) ? Be : r, a = H(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : kt(s), i = R(e.datetimeFormats) ? e.datetimeFormats : kt(s), u = R(e.numberFormats) ? e.numberFormats : kt(s), m = J($(), e.modifiers, Sa()), b = e.pluralRules || $(), T = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, C = !!e.unresolving, S = W(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, d = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, E = W(e.messageCompiler) ? e.messageCompiler : Tr;
|
|
1948
1948
|
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && en(Ae(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1949
|
-
const O = W(e.messageResolver) ? e.messageResolver : br ||
|
|
1949
|
+
const O = W(e.messageResolver) ? e.messageResolver : br || La, v = W(e.localeFallbacker) ? e.localeFallbacker : Ir || da, p = M(e.fallbackContext) ? e.fallbackContext : void 0, k = e, w = M(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), ae = M(k.__meta) ? k.__meta : {};
|
|
1950
1950
|
Pn++;
|
|
1951
1951
|
const Y = {
|
|
1952
1952
|
version: n,
|
|
@@ -1972,7 +1972,7 @@ function Ma(e = {}) {
|
|
|
1972
1972
|
onWarn: t,
|
|
1973
1973
|
__meta: ae
|
|
1974
1974
|
};
|
|
1975
|
-
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1975
|
+
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ca(Y, n, ae), Y;
|
|
1976
1976
|
}
|
|
1977
1977
|
const kt = (e) => ({ [e]: $() });
|
|
1978
1978
|
function ft(e, t) {
|
|
@@ -2005,7 +2005,7 @@ function xe(e, t, n) {
|
|
|
2005
2005
|
function vr(e, t) {
|
|
2006
2006
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function Ua(e, t) {
|
|
2009
2009
|
const n = t.indexOf(e);
|
|
2010
2010
|
if (n === -1)
|
|
2011
2011
|
return !1;
|
|
@@ -2093,7 +2093,7 @@ function wt(...e) {
|
|
|
2093
2093
|
} catch {
|
|
2094
2094
|
throw de(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2095
2095
|
}
|
|
2096
|
-
} else if (
|
|
2096
|
+
} else if (ms(t)) {
|
|
2097
2097
|
if (isNaN(t.getTime()))
|
|
2098
2098
|
throw de(q.INVALID_DATE_ARGUMENT);
|
|
2099
2099
|
i = t;
|
|
@@ -2190,26 +2190,26 @@ function Fn(e, t, n) {
|
|
|
2190
2190
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
const
|
|
2193
|
+
const wa = (e) => e, Va = (e) => "", $a = "text", Wa = (e) => e.length === 0 ? "" : nn(e), Ga = Ns;
|
|
2194
2194
|
function Un(e, t) {
|
|
2195
2195
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function xa(e) {
|
|
2198
2198
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2199
2199
|
return e.named && (j(e.named.count) || j(e.named.n)) ? j(e.named.count) ? e.named.count : j(e.named.n) ? e.named.n : t : t;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function Ha(e, t) {
|
|
2202
2202
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2205
|
-
const t = e.locale, n =
|
|
2206
|
-
j(e.pluralIndex) &&
|
|
2204
|
+
function Ya(e = {}) {
|
|
2205
|
+
const t = e.locale, n = xa(e), r = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Un, s = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Un : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
|
|
2206
|
+
j(e.pluralIndex) && Ha(n, u);
|
|
2207
2207
|
const m = (f) => u[f];
|
|
2208
2208
|
function b(f, d) {
|
|
2209
2209
|
const h = W(e.messages) ? e.messages(f, !!d) : M(e.messages) ? e.messages[f] : !1;
|
|
2210
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2210
|
+
return h || (e.parent ? e.parent.message(f) : Va);
|
|
2211
2211
|
}
|
|
2212
|
-
const T = (f) => e.modifiers ? e.modifiers[f] :
|
|
2212
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : wa, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Wa, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ga, D = R(e.processor) && L(e.processor.type) ? e.processor.type : $a, S = {
|
|
2213
2213
|
list: i,
|
|
2214
2214
|
named: m,
|
|
2215
2215
|
plural: a,
|
|
@@ -2234,7 +2234,7 @@ function Ha(e = {}) {
|
|
|
2234
2234
|
const wn = () => "", te = (e) => W(e);
|
|
2235
2235
|
function Vn(e, ...t) {
|
|
2236
2236
|
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, m] = $t(...t), b = F(m.missingWarn) ? m.missingWarn : e.missingWarn, T = F(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, N = F(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, A = !!m.resolvedMessage, D = L(m.default) || F(m.default) ? F(m.default) ? a ? u : () => u : m.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = on(e, m);
|
|
2237
|
-
N &&
|
|
2237
|
+
N && Ka(m);
|
|
2238
2238
|
let [f, d, h] = A ? [
|
|
2239
2239
|
u,
|
|
2240
2240
|
S,
|
|
@@ -2250,9 +2250,9 @@ function Vn(e, ...t) {
|
|
|
2250
2250
|
}, k = te(E) ? E : Pr(e, u, d, E, O, p);
|
|
2251
2251
|
if (v)
|
|
2252
2252
|
return E;
|
|
2253
|
-
const w =
|
|
2253
|
+
const w = Ja(e, d, h, m), X = Ya(w), ae = Ba(e, k, X);
|
|
2254
2254
|
let Y = r ? r(ae, u) : ae;
|
|
2255
|
-
if (N && L(Y) && (Y =
|
|
2255
|
+
if (N && L(Y) && (Y = Es(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2256
2256
|
const ye = {
|
|
2257
2257
|
timestamp: Date.now(),
|
|
2258
2258
|
key: L(u) ? u : te(E) ? E.key : "",
|
|
@@ -2260,11 +2260,11 @@ function Vn(e, ...t) {
|
|
|
2260
2260
|
format: L(E) ? E : te(E) ? E.source : "",
|
|
2261
2261
|
message: Y
|
|
2262
2262
|
};
|
|
2263
|
-
ye.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2263
|
+
ye.meta = J({}, e.__meta, /* @__PURE__ */ Ra() || {}), ua(ye);
|
|
2264
2264
|
}
|
|
2265
2265
|
return Y;
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Ka(e) {
|
|
2268
2268
|
H(e.list) ? e.list = e.list.map((t) => L(t) ? Nn(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2269
2269
|
L(e.named[t]) && (e.named[t] = Nn(e.named[t]));
|
|
2270
2270
|
});
|
|
@@ -2301,7 +2301,7 @@ function yr(e, t, n, r, s, a) {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
if (L(A) || se(A) || te(A))
|
|
2303
2303
|
break;
|
|
2304
|
-
if (!
|
|
2304
|
+
if (!Ua(N, b)) {
|
|
2305
2305
|
const O = ln(
|
|
2306
2306
|
e,
|
|
2307
2307
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2328,7 +2328,7 @@ function Pr(e, t, n, r, s, a) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
let u = null, m, b;
|
|
2330
2330
|
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), m = "intlify-message-compilation-start", b = "intlify-message-compilation-end", ee && ee(m));
|
|
2331
|
-
const T = o(r,
|
|
2331
|
+
const T = o(r, ja(e, n, s, r, i, a));
|
|
2332
2332
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2333
2333
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2334
2334
|
A && u && A.emit("message-compilation", {
|
|
@@ -2340,7 +2340,7 @@ function Pr(e, t, n, r, s, a) {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
return T.locale = n, T.key = t, T.source = r, T;
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function Ba(e, t, n) {
|
|
2344
2344
|
let r = null, s, a;
|
|
2345
2345
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2346
2346
|
const o = t(n);
|
|
@@ -2362,14 +2362,14 @@ function $t(...e) {
|
|
|
2362
2362
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2363
2363
|
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !ct(n) ? s.named = n : H(n) && (s.list = n), j(r) ? s.plural = r : L(r) ? s.default = r : R(r) && J(s, r), [a, s];
|
|
2364
2364
|
}
|
|
2365
|
-
function
|
|
2365
|
+
function ja(e, t, n, r, s, a) {
|
|
2366
2366
|
return {
|
|
2367
2367
|
locale: t,
|
|
2368
2368
|
key: n,
|
|
2369
2369
|
warnHtmlMessage: s,
|
|
2370
2370
|
onError: (o) => {
|
|
2371
2371
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2372
|
-
const i =
|
|
2372
|
+
const i = Xa(r), u = `Message compilation error: ${o.message}`, m = o.location && i && Ts(i, o.location.start.offset, o.location.end.offset), b = e.__v_emitter;
|
|
2373
2373
|
b && i && b.emit("compile-error", {
|
|
2374
2374
|
message: i,
|
|
2375
2375
|
error: o.message,
|
|
@@ -2381,16 +2381,16 @@ ${m}` : u);
|
|
|
2381
2381
|
} else
|
|
2382
2382
|
throw o;
|
|
2383
2383
|
},
|
|
2384
|
-
onCacheKey: (o) =>
|
|
2384
|
+
onCacheKey: (o) => fs(t, n, o)
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Xa(e) {
|
|
2388
2388
|
if (L(e))
|
|
2389
2389
|
return e;
|
|
2390
2390
|
if (e.loc && e.loc.source)
|
|
2391
2391
|
return e.loc.source;
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function Ja(e, t, n, r) {
|
|
2394
2394
|
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: m, fallbackContext: b } = e, N = {
|
|
2395
2395
|
locale: t,
|
|
2396
2396
|
modifiers: s,
|
|
@@ -2420,23 +2420,23 @@ function Xa(e, t, n, r) {
|
|
|
2420
2420
|
};
|
|
2421
2421
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
|
|
2422
2422
|
}
|
|
2423
|
-
|
|
2424
|
-
function
|
|
2423
|
+
Js();
|
|
2424
|
+
function Qa() {
|
|
2425
2425
|
return Dr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2426
2426
|
}
|
|
2427
2427
|
function Dr() {
|
|
2428
2428
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2429
2429
|
}
|
|
2430
|
-
const
|
|
2430
|
+
const qa = typeof Proxy == "function", Za = "devtools-plugin:setup", za = "plugin:settings:set";
|
|
2431
2431
|
let De, Wt;
|
|
2432
|
-
function
|
|
2432
|
+
function eo() {
|
|
2433
2433
|
var e;
|
|
2434
2434
|
return De !== void 0 || (typeof window < "u" && window.performance ? (De = !0, Wt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (De = !0, Wt = globalThis.perf_hooks.performance) : De = !1), De;
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2437
|
-
return
|
|
2436
|
+
function to() {
|
|
2437
|
+
return eo() ? Wt.now() : Date.now();
|
|
2438
2438
|
}
|
|
2439
|
-
class
|
|
2439
|
+
class no {
|
|
2440
2440
|
constructor(t, n) {
|
|
2441
2441
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2442
2442
|
const r = {};
|
|
@@ -2464,9 +2464,9 @@ class to {
|
|
|
2464
2464
|
a = o;
|
|
2465
2465
|
},
|
|
2466
2466
|
now() {
|
|
2467
|
-
return
|
|
2467
|
+
return to();
|
|
2468
2468
|
}
|
|
2469
|
-
}, n && n.on(
|
|
2469
|
+
}, n && n.on(za, (o, i) => {
|
|
2470
2470
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2471
2471
|
}), this.proxiedOn = new Proxy({}, {
|
|
2472
2472
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2498,12 +2498,12 @@ class to {
|
|
|
2498
2498
|
n.resolve(await this.target[n.method](...n.args));
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
const n = e, r = Dr(), s =
|
|
2501
|
+
function ro(e, t) {
|
|
2502
|
+
const n = e, r = Dr(), s = Qa(), a = qa && n.enableEarlyProxy;
|
|
2503
2503
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2504
|
-
s.emit(
|
|
2504
|
+
s.emit(Za, e, t);
|
|
2505
2505
|
else {
|
|
2506
|
-
const o = a ? new
|
|
2506
|
+
const o = a ? new no(n, s) : null;
|
|
2507
2507
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2508
2508
|
pluginDescriptor: n,
|
|
2509
2509
|
setupFn: t,
|
|
@@ -2511,13 +2511,13 @@ function no(e, t) {
|
|
|
2511
2511
|
}), o && t(o.proxiedTarget);
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
|
-
const
|
|
2515
|
-
function
|
|
2514
|
+
const so = "11.2.8";
|
|
2515
|
+
function ao() {
|
|
2516
2516
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ve().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ve().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2517
2517
|
}
|
|
2518
2518
|
const G = {
|
|
2519
2519
|
// composer module errors
|
|
2520
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2520
|
+
UNEXPECTED_RETURN_TYPE: _a,
|
|
2521
2521
|
// 24
|
|
2522
2522
|
// legacy module errors
|
|
2523
2523
|
INVALID_ARGUMENT: 25,
|
|
@@ -2538,9 +2538,9 @@ const G = {
|
|
|
2538
2538
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2539
2539
|
};
|
|
2540
2540
|
function z(e, ...t) {
|
|
2541
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2541
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: oo, args: t } : void 0);
|
|
2542
2542
|
}
|
|
2543
|
-
const
|
|
2543
|
+
const oo = {
|
|
2544
2544
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2545
2545
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2546
2546
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2553,7 +2553,7 @@ const ao = {
|
|
|
2553
2553
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2554
2554
|
[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2555
2555
|
}, Gt = /* @__PURE__ */ fe("__translateVNode"), xt = /* @__PURE__ */ fe("__datetimeParts"), Ht = /* @__PURE__ */ fe("__numberParts"), Se = /* @__PURE__ */ fe("__enableEmitter"), je = /* @__PURE__ */ fe("__disableEmitter"), kr = fe("__setPluralRules"), Rr = /* @__PURE__ */ fe("__injectWithOption"), Yt = /* @__PURE__ */ fe("__dispose"), ne = {
|
|
2556
|
-
FALLBACK_TO_ROOT:
|
|
2556
|
+
FALLBACK_TO_ROOT: va,
|
|
2557
2557
|
// 8
|
|
2558
2558
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2559
2559
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2567,7 +2567,7 @@ const ao = {
|
|
|
2567
2567
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2568
2568
|
// duplicate `useI18n` calling
|
|
2569
2569
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2570
|
-
},
|
|
2570
|
+
}, lo = {
|
|
2571
2571
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2572
2572
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2573
2573
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2583,7 +2583,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2583
2583
|
[ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2584
2584
|
};
|
|
2585
2585
|
function Ue(e, ...t) {
|
|
2586
|
-
return it(
|
|
2586
|
+
return it(lo[e], ...t);
|
|
2587
2587
|
}
|
|
2588
2588
|
function Xe(e) {
|
|
2589
2589
|
if (!M(e) || se(e))
|
|
@@ -2661,12 +2661,12 @@ function Re() {
|
|
|
2661
2661
|
const e = "currentInstance";
|
|
2662
2662
|
return e in St ? St[e] : St.getCurrentInstance();
|
|
2663
2663
|
}
|
|
2664
|
-
const Wn = "__INTLIFY_META__", Gn = () => [],
|
|
2664
|
+
const Wn = "__INTLIFY_META__", Gn = () => [], io = () => !1;
|
|
2665
2665
|
let xn = 0;
|
|
2666
2666
|
function Hn(e) {
|
|
2667
2667
|
return ((t, n, r, s) => e(n, r, Re() || void 0, s));
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2669
|
+
const co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2670
2670
|
const e = Re();
|
|
2671
2671
|
let t = null;
|
|
2672
2672
|
return e && (t = Mr(e)[Wn]) ? { [Wn]: t } : null;
|
|
@@ -2687,7 +2687,7 @@ function un(e = {}) {
|
|
|
2687
2687
|
p = (() => {
|
|
2688
2688
|
r && yn(null);
|
|
2689
2689
|
const _ = {
|
|
2690
|
-
version:
|
|
2690
|
+
version: so,
|
|
2691
2691
|
locale: i.value,
|
|
2692
2692
|
fallbackLocale: u.value,
|
|
2693
2693
|
messages: m.value,
|
|
@@ -2706,7 +2706,7 @@ function un(e = {}) {
|
|
|
2706
2706
|
__meta: { framework: "vue" }
|
|
2707
2707
|
};
|
|
2708
2708
|
_.datetimeFormats = b.value, _.numberFormats = T.value, _.__datetimeFormatters = R(p) ? p.__datetimeFormatters : void 0, _.__numberFormatters = R(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = R(p) ? p.__v_emitter : void 0);
|
|
2709
|
-
const I =
|
|
2709
|
+
const I = Fa(_);
|
|
2710
2710
|
return r && yn(I), I;
|
|
2711
2711
|
})(), xe(p, i.value, u.value);
|
|
2712
2712
|
function w() {
|
|
@@ -2748,7 +2748,7 @@ function un(e = {}) {
|
|
|
2748
2748
|
w();
|
|
2749
2749
|
let Pe;
|
|
2750
2750
|
try {
|
|
2751
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2751
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? Ma() : void 0), Pe = _(p);
|
|
2752
2752
|
} finally {
|
|
2753
2753
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2754
2754
|
}
|
|
@@ -2824,7 +2824,7 @@ function un(e = {}) {
|
|
|
2824
2824
|
return !1;
|
|
2825
2825
|
const V = L(I) ? I : i.value, B = Ie(V), he = p.messageResolver(B, _);
|
|
2826
2826
|
return se(he) || te(he) || L(he);
|
|
2827
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, I]),
|
|
2827
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, I]), io, (V) => F(V));
|
|
2828
2828
|
}
|
|
2829
2829
|
function $e(_) {
|
|
2830
2830
|
let I = null;
|
|
@@ -2964,16 +2964,16 @@ const Ur = "vue-i18n: composer properties", Rt = {
|
|
|
2964
2964
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2965
2965
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2966
2966
|
"vue-i18n-timeline": "Vue I18n"
|
|
2967
|
-
}, co = {
|
|
2968
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2969
2967
|
}, uo = {
|
|
2968
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2969
|
+
}, fo = {
|
|
2970
2970
|
"vue-i18n-timeline": 16764185
|
|
2971
2971
|
};
|
|
2972
2972
|
let Kt;
|
|
2973
|
-
async function
|
|
2973
|
+
async function _o(e, t) {
|
|
2974
2974
|
return new Promise((n, r) => {
|
|
2975
2975
|
try {
|
|
2976
|
-
|
|
2976
|
+
ro({
|
|
2977
2977
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2978
2978
|
label: Rt["vue-devtools-plugin-vue-i18n"],
|
|
2979
2979
|
packageName: "vue-i18n",
|
|
@@ -2984,36 +2984,36 @@ async function fo(e, t) {
|
|
|
2984
2984
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2985
2985
|
}, (s) => {
|
|
2986
2986
|
Kt = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2987
|
-
|
|
2987
|
+
mo(o, i, t);
|
|
2988
2988
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2989
2989
|
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Yn(i, o.__VUE_I18N__) : Yn(i, o.__VUE_I18N__));
|
|
2990
2990
|
}), s.addInspector({
|
|
2991
2991
|
id: "vue-i18n-resource-inspector",
|
|
2992
2992
|
label: Rt["vue-i18n-resource-inspector"],
|
|
2993
2993
|
icon: "language",
|
|
2994
|
-
treeFilterPlaceholder:
|
|
2994
|
+
treeFilterPlaceholder: uo["vue-i18n-resource-inspector"]
|
|
2995
2995
|
}), s.on.getInspectorTree((o) => {
|
|
2996
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2996
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && To(o, t);
|
|
2997
2997
|
});
|
|
2998
2998
|
const a = /* @__PURE__ */ new Map();
|
|
2999
2999
|
s.on.getInspectorState(async (o) => {
|
|
3000
3000
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
3001
|
-
if (s.unhighlightElement(),
|
|
3001
|
+
if (s.unhighlightElement(), Io(o, t), o.nodeId === "global") {
|
|
3002
3002
|
if (!a.has(o.app)) {
|
|
3003
3003
|
const [i] = await s.getComponentInstances(o.app);
|
|
3004
3004
|
a.set(o.app, i);
|
|
3005
3005
|
}
|
|
3006
3006
|
s.highlightElement(a.get(o.app));
|
|
3007
3007
|
} else {
|
|
3008
|
-
const i =
|
|
3008
|
+
const i = bo(o.nodeId, t);
|
|
3009
3009
|
i && s.highlightElement(i);
|
|
3010
3010
|
}
|
|
3011
3011
|
}), s.on.editInspectorState((o) => {
|
|
3012
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
3012
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Lo(o, t);
|
|
3013
3013
|
}), s.addTimelineLayer({
|
|
3014
3014
|
id: "vue-i18n-timeline",
|
|
3015
3015
|
label: Rt["vue-i18n-timeline"],
|
|
3016
|
-
color:
|
|
3016
|
+
color: fo["vue-i18n-timeline"]
|
|
3017
3017
|
}), n(!0);
|
|
3018
3018
|
});
|
|
3019
3019
|
} catch (s) {
|
|
@@ -3024,7 +3024,7 @@ async function fo(e, t) {
|
|
|
3024
3024
|
function wr(e) {
|
|
3025
3025
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function mo(e, t, n) {
|
|
3028
3028
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3029
3029
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3030
3030
|
const s = {
|
|
@@ -3078,30 +3078,30 @@ function fn(e) {
|
|
|
3078
3078
|
const t = {};
|
|
3079
3079
|
return Object.keys(e).forEach((n) => {
|
|
3080
3080
|
const r = e[n];
|
|
3081
|
-
W(r) && "source" in r ? t[n] =
|
|
3081
|
+
W(r) && "source" in r ? t[n] = No(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = fn(r) : t[n] = r;
|
|
3082
3082
|
}), t;
|
|
3083
3083
|
}
|
|
3084
|
-
const
|
|
3084
|
+
const Eo = {
|
|
3085
3085
|
"<": "<",
|
|
3086
3086
|
">": ">",
|
|
3087
3087
|
'"': """,
|
|
3088
3088
|
"&": "&"
|
|
3089
3089
|
};
|
|
3090
|
-
function Eo(e) {
|
|
3091
|
-
return e.replace(/[<>"&]/g, po);
|
|
3092
|
-
}
|
|
3093
3090
|
function po(e) {
|
|
3094
|
-
return
|
|
3091
|
+
return e.replace(/[<>"&]/g, go);
|
|
3095
3092
|
}
|
|
3096
3093
|
function go(e) {
|
|
3094
|
+
return Eo[e] || e;
|
|
3095
|
+
}
|
|
3096
|
+
function No(e) {
|
|
3097
3097
|
return {
|
|
3098
3098
|
_custom: {
|
|
3099
3099
|
type: "function",
|
|
3100
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3100
|
+
display: `<span>ƒ</span> ${e.source ? `("${po(e.source)}")` : "(?)"}`
|
|
3101
3101
|
}
|
|
3102
3102
|
};
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function To(e, t) {
|
|
3105
3105
|
e.rootNodes.push({
|
|
3106
3106
|
id: "global",
|
|
3107
3107
|
label: "Global Scope"
|
|
@@ -3115,7 +3115,7 @@ function No(e, t) {
|
|
|
3115
3115
|
});
|
|
3116
3116
|
}
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function bo(e, t) {
|
|
3119
3119
|
let n = null;
|
|
3120
3120
|
if (e !== "global") {
|
|
3121
3121
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3134,11 +3134,11 @@ function Vr(e, t) {
|
|
|
3134
3134
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function Io(e, t) {
|
|
3138
3138
|
const n = Vr(e.nodeId, t);
|
|
3139
|
-
return n && (e.state =
|
|
3139
|
+
return n && (e.state = ho(n)), null;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function ho(e) {
|
|
3142
3142
|
const t = {}, n = "Locale related info", r = [
|
|
3143
3143
|
{
|
|
3144
3144
|
type: n,
|
|
@@ -3213,14 +3213,14 @@ function Je(e, t) {
|
|
|
3213
3213
|
});
|
|
3214
3214
|
}
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function Lo(e, t) {
|
|
3217
3217
|
const n = Vr(e.nodeId, t);
|
|
3218
3218
|
if (n) {
|
|
3219
3219
|
const [r] = e.path;
|
|
3220
3220
|
r === "locale" && L(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (L(e.state.value) || H(e.state.value) || M(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && F(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function Oo(e) {
|
|
3224
3224
|
const t = L(e.locale) ? e.locale : Be, n = L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Me(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || Me(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, b = W(e.postTranslation) ? e.postTranslation : void 0, T = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
|
|
3225
3225
|
let D = e.messages;
|
|
3226
3226
|
if (R(e.sharedMessages)) {
|
|
@@ -3256,7 +3256,7 @@ function Lo(e) {
|
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
3258
|
function Bt(e = {}) {
|
|
3259
|
-
const t = un(
|
|
3259
|
+
const t = un(Oo(e)), { __extender: n } = e, r = {
|
|
3260
3260
|
// id
|
|
3261
3261
|
id: t.id,
|
|
3262
3262
|
// locale
|
|
@@ -3424,7 +3424,7 @@ function Bt(e = {}) {
|
|
|
3424
3424
|
s[je] && s[je]();
|
|
3425
3425
|
}), r;
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function vo(e, t, n) {
|
|
3428
3428
|
return {
|
|
3429
3429
|
beforeCreate() {
|
|
3430
3430
|
const r = Re();
|
|
@@ -3503,7 +3503,7 @@ const _n = {
|
|
|
3503
3503
|
type: Object
|
|
3504
3504
|
}
|
|
3505
3505
|
};
|
|
3506
|
-
function
|
|
3506
|
+
function Co({ slots: e }, t) {
|
|
3507
3507
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3508
3508
|
...r,
|
|
3509
3509
|
// prettier-ignore
|
|
@@ -3516,7 +3516,7 @@ function vo({ slots: e }, t) {
|
|
|
3516
3516
|
function $r() {
|
|
3517
3517
|
return Jt;
|
|
3518
3518
|
}
|
|
3519
|
-
const
|
|
3519
|
+
const Ao = /* @__PURE__ */ pe({
|
|
3520
3520
|
/* eslint-disable */
|
|
3521
3521
|
name: "i18n-t",
|
|
3522
3522
|
props: J({
|
|
@@ -3539,12 +3539,12 @@ const Co = /* @__PURE__ */ pe({
|
|
|
3539
3539
|
return () => {
|
|
3540
3540
|
const a = Object.keys(n).filter((T) => T[0] !== "_"), o = $();
|
|
3541
3541
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3542
|
-
const i =
|
|
3542
|
+
const i = Co(t, a), u = s[Gt](e.keypath, i, o), m = J($(), r), b = L(e.tag) || M(e.tag) ? e.tag : $r();
|
|
3543
3543
|
return rr(b, m, u);
|
|
3544
3544
|
};
|
|
3545
3545
|
}
|
|
3546
|
-
}), Bn =
|
|
3547
|
-
function
|
|
3546
|
+
}), Bn = Ao;
|
|
3547
|
+
function So(e) {
|
|
3548
3548
|
return H(e) && !L(e[0]);
|
|
3549
3549
|
}
|
|
3550
3550
|
function Wr(e, t, n, r) {
|
|
@@ -3557,13 +3557,13 @@ function Wr(e, t, n, r) {
|
|
|
3557
3557
|
let m = [o.key];
|
|
3558
3558
|
H(u) ? m = u.map((N, A) => {
|
|
3559
3559
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3560
|
-
return
|
|
3560
|
+
return So(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3561
3561
|
}) : L(u) && (m = [u]);
|
|
3562
3562
|
const b = J($(), a), T = L(e.tag) || M(e.tag) ? e.tag : $r();
|
|
3563
3563
|
return rr(T, b, m);
|
|
3564
3564
|
};
|
|
3565
3565
|
}
|
|
3566
|
-
const
|
|
3566
|
+
const yo = /* @__PURE__ */ pe({
|
|
3567
3567
|
/* eslint-disable */
|
|
3568
3568
|
name: "i18n-n",
|
|
3569
3569
|
props: J({
|
|
@@ -3587,8 +3587,8 @@ const So = /* @__PURE__ */ pe({
|
|
|
3587
3587
|
n[Ht](...r)
|
|
3588
3588
|
));
|
|
3589
3589
|
}
|
|
3590
|
-
}), jn =
|
|
3591
|
-
function
|
|
3590
|
+
}), jn = yo;
|
|
3591
|
+
function Po(e, t) {
|
|
3592
3592
|
const n = e;
|
|
3593
3593
|
if (e.mode === "composition")
|
|
3594
3594
|
return n.__getInstance(t) || e.global;
|
|
@@ -3597,13 +3597,13 @@ function yo(e, t) {
|
|
|
3597
3597
|
return r != null ? r.__composer : e.global.__composer;
|
|
3598
3598
|
}
|
|
3599
3599
|
}
|
|
3600
|
-
function
|
|
3600
|
+
function Do(e) {
|
|
3601
3601
|
const t = (o) => {
|
|
3602
3602
|
process.env.NODE_ENV !== "production" && en(Ue(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3603
3603
|
const { instance: i, value: u } = o;
|
|
3604
3604
|
if (!i || !i.$)
|
|
3605
3605
|
throw z(G.UNEXPECTED_ERROR);
|
|
3606
|
-
const m =
|
|
3606
|
+
const m = Po(e, i.$), b = Xn(u);
|
|
3607
3607
|
return [
|
|
3608
3608
|
Reflect.apply(m.t, m, [...Jn(b)]),
|
|
3609
3609
|
m
|
|
@@ -3647,15 +3647,15 @@ function Jn(e) {
|
|
|
3647
3647
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3648
3648
|
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function ko(e, t, ...n) {
|
|
3651
3651
|
const r = R(n[0]) ? n[0] : {};
|
|
3652
|
-
(!F(r.globalInstall) || r.globalInstall) && ([Bn.name, "I18nT"].forEach((a) => e.component(a, Bn)), [jn.name, "I18nN"].forEach((a) => e.component(a, jn)), [qn.name, "I18nD"].forEach((a) => e.component(a, qn))), e.directive("t",
|
|
3652
|
+
(!F(r.globalInstall) || r.globalInstall) && ([Bn.name, "I18nT"].forEach((a) => e.component(a, Bn)), [jn.name, "I18nN"].forEach((a) => e.component(a, jn)), [qn.name, "I18nD"].forEach((a) => e.component(a, qn))), e.directive("t", Do(t));
|
|
3653
3653
|
}
|
|
3654
|
-
const
|
|
3655
|
-
function
|
|
3654
|
+
const Ro = /* @__PURE__ */ fe("global-vue-i18n");
|
|
3655
|
+
function Mo(e = {}) {
|
|
3656
3656
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3657
3657
|
process.env.NODE_ENV !== "production" && t && en(Ue(ne.DEPRECATE_LEGACY_MODE));
|
|
3658
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3658
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Fo(e, t), o = /* @__PURE__ */ fe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3659
3659
|
function i(T) {
|
|
3660
3660
|
return r.get(T) || null;
|
|
3661
3661
|
}
|
|
@@ -3677,12 +3677,12 @@ function Ro(e = {}) {
|
|
|
3677
3677
|
b.__composerExtend = C.__composerExtend, b.__vueI18nExtend = C.__vueI18nExtend;
|
|
3678
3678
|
}
|
|
3679
3679
|
let A = null;
|
|
3680
|
-
!t && n && (A =
|
|
3680
|
+
!t && n && (A = Ho(T, b.global)), __VUE_I18N_FULL_INSTALL__ && ko(T, b, ...N), __VUE_I18N_LEGACY_API__ && t && T.mixin(vo(a, a.__composer, b));
|
|
3681
3681
|
const D = T.unmount;
|
|
3682
3682
|
if (T.unmount = () => {
|
|
3683
3683
|
A && A(), b.dispose(), D();
|
|
3684
3684
|
}, process.env.NODE_ENV !== "production") {
|
|
3685
|
-
if (!await
|
|
3685
|
+
if (!await _o(T, b))
|
|
3686
3686
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3687
3687
|
const S = rn();
|
|
3688
3688
|
if (t) {
|
|
@@ -3719,44 +3719,44 @@ function mn(e = {}) {
|
|
|
3719
3719
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3720
3720
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3721
3721
|
throw z(G.NOT_INSTALLED);
|
|
3722
|
-
const n =
|
|
3722
|
+
const n = Uo(t), r = Vo(n), s = Mr(t), a = wo(e, s);
|
|
3723
3723
|
if (a === "global")
|
|
3724
3724
|
return Fr(r, e, s), r;
|
|
3725
3725
|
if (a === "parent") {
|
|
3726
|
-
let u =
|
|
3726
|
+
let u = $o(n, t, e.__useComponent);
|
|
3727
3727
|
return u == null && (process.env.NODE_ENV !== "production" && ue(Ue(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3728
3728
|
}
|
|
3729
3729
|
const o = n;
|
|
3730
3730
|
let i = o.__getInstance(t);
|
|
3731
3731
|
if (i == null) {
|
|
3732
3732
|
const u = J({}, e);
|
|
3733
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = un(u), o.__composerExtend && (i[Yt] = o.__composerExtend(i)),
|
|
3733
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = un(u), o.__composerExtend && (i[Yt] = o.__composerExtend(i)), Go(o, t, i), o.__setInstance(t, i);
|
|
3734
3734
|
} else
|
|
3735
3735
|
process.env.NODE_ENV !== "production" && a === "local" && ue(Ue(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3736
3736
|
return i;
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function Fo(e, t) {
|
|
3739
3739
|
const n = Hr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Bt(e)) : n.run(() => un(e));
|
|
3740
3740
|
if (r == null)
|
|
3741
3741
|
throw z(G.UNEXPECTED_ERROR);
|
|
3742
3742
|
return [n, r];
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3745
|
-
const t = jt(e.isCE ?
|
|
3744
|
+
function Uo(e) {
|
|
3745
|
+
const t = jt(e.isCE ? Ro : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3746
3746
|
if (!t)
|
|
3747
3747
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3748
3748
|
return t;
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3750
|
+
function wo(e, t) {
|
|
3751
3751
|
return ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function Vo(e) {
|
|
3754
3754
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function $o(e, t, n = !1) {
|
|
3757
3757
|
let r = null;
|
|
3758
3758
|
const s = t.root;
|
|
3759
|
-
let a =
|
|
3759
|
+
let a = Wo(t, n);
|
|
3760
3760
|
for (; a != null; ) {
|
|
3761
3761
|
const o = e;
|
|
3762
3762
|
if (e.mode === "composition")
|
|
@@ -3771,10 +3771,10 @@ function Vo(e, t, n = !1) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
return r;
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3774
|
+
function Wo(e, t = !1) {
|
|
3775
3775
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3776
3776
|
}
|
|
3777
|
-
function
|
|
3777
|
+
function Go(e, t, n) {
|
|
3778
3778
|
let r = null;
|
|
3779
3779
|
Br(() => {
|
|
3780
3780
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3789,14 +3789,14 @@ function Wo(e, t, n) {
|
|
|
3789
3789
|
a && (a(), delete s[Yt]);
|
|
3790
3790
|
}, t);
|
|
3791
3791
|
}
|
|
3792
|
-
const
|
|
3792
|
+
const xo = [
|
|
3793
3793
|
"locale",
|
|
3794
3794
|
"fallbackLocale",
|
|
3795
3795
|
"availableLocales"
|
|
3796
3796
|
], Qn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3797
|
-
function
|
|
3797
|
+
function Ho(e, t) {
|
|
3798
3798
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3799
|
-
return
|
|
3799
|
+
return xo.forEach((s) => {
|
|
3800
3800
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3801
3801
|
if (!a)
|
|
3802
3802
|
throw z(G.UNEXPECTED_ERROR);
|
|
@@ -3825,7 +3825,7 @@ function xo(e, t) {
|
|
|
3825
3825
|
});
|
|
3826
3826
|
};
|
|
3827
3827
|
}
|
|
3828
|
-
const
|
|
3828
|
+
const Yo = /* @__PURE__ */ pe({
|
|
3829
3829
|
/* eslint-disable */
|
|
3830
3830
|
name: "i18n-d",
|
|
3831
3831
|
props: J({
|
|
@@ -3849,102 +3849,102 @@ const Ho = /* @__PURE__ */ pe({
|
|
|
3849
3849
|
n[xt](...r)
|
|
3850
3850
|
));
|
|
3851
3851
|
}
|
|
3852
|
-
}), qn =
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3852
|
+
}), qn = Yo;
|
|
3853
|
+
ao();
|
|
3854
|
+
ya(la);
|
|
3855
|
+
Pa(Oa);
|
|
3856
|
+
Da(Nr);
|
|
3857
3857
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3858
3858
|
const e = ve();
|
|
3859
|
-
e.__INTLIFY__ = !0,
|
|
3859
|
+
e.__INTLIFY__ = !0, ia(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3860
3860
|
}
|
|
3861
3861
|
process.env.NODE_ENV;
|
|
3862
|
-
const
|
|
3863
|
-
name:
|
|
3864
|
-
supplier:
|
|
3865
|
-
version:
|
|
3866
|
-
description:
|
|
3867
|
-
category:
|
|
3868
|
-
general:
|
|
3869
|
-
ioMapping:
|
|
3870
|
-
modbusSlaveChannel:
|
|
3871
|
-
status:
|
|
3872
|
-
ethernet:
|
|
3873
|
-
modbusTcpServer:
|
|
3874
|
-
modbusTcpClient:
|
|
3875
|
-
modbusTCPSlaveDevice:
|
|
3876
|
-
company:
|
|
3877
|
-
descriptionMap:
|
|
3878
|
-
netInterface:
|
|
3879
|
-
ipAddress:
|
|
3880
|
-
subnetMask:
|
|
3881
|
-
defaultGateway:
|
|
3882
|
-
adaptedOSConfiguration:
|
|
3883
|
-
busCycleTask:
|
|
3884
|
-
defaultTask:
|
|
3885
|
-
responseTimeout:
|
|
3886
|
-
socketTimeout:
|
|
3887
|
-
reconnect:
|
|
3888
|
-
slaveIpAddress:
|
|
3889
|
-
port:
|
|
3890
|
-
watchDog:
|
|
3891
|
-
slavePort:
|
|
3892
|
-
bindToAdapter:
|
|
3893
|
-
holdingRegister:
|
|
3894
|
-
writable:
|
|
3895
|
-
inputRegister:
|
|
3896
|
-
discreteBitArea:
|
|
3897
|
-
coil:
|
|
3898
|
-
discreteInput:
|
|
3899
|
-
dataModel:
|
|
3900
|
-
startAddress:
|
|
3901
|
-
},
|
|
3902
|
-
name:
|
|
3903
|
-
supplier:
|
|
3904
|
-
version:
|
|
3905
|
-
description:
|
|
3906
|
-
category:
|
|
3907
|
-
general:
|
|
3908
|
-
ioMapping:
|
|
3909
|
-
modbusSlaveChannel:
|
|
3910
|
-
status:
|
|
3911
|
-
ethernet:
|
|
3912
|
-
modbusTcpServer:
|
|
3913
|
-
modbusTcpClient:
|
|
3914
|
-
modbusTCPSlaveDevice:
|
|
3915
|
-
company:
|
|
3916
|
-
descriptionMap:
|
|
3917
|
-
netInterface:
|
|
3918
|
-
ipAddress:
|
|
3919
|
-
subnetMask:
|
|
3920
|
-
defaultGateway:
|
|
3921
|
-
adaptedOSConfiguration:
|
|
3922
|
-
busCycleTask:
|
|
3923
|
-
defaultTask:
|
|
3924
|
-
responseTimeout:
|
|
3925
|
-
socketTimeout:
|
|
3926
|
-
reconnect:
|
|
3927
|
-
slaveIpAddress:
|
|
3928
|
-
port:
|
|
3929
|
-
watchDog:
|
|
3930
|
-
slavePort:
|
|
3931
|
-
bindToAdapter:
|
|
3932
|
-
holdingRegister:
|
|
3933
|
-
writable:
|
|
3934
|
-
inputRegister:
|
|
3935
|
-
discreteBitArea:
|
|
3936
|
-
coil:
|
|
3937
|
-
discreteInput:
|
|
3938
|
-
dataModel:
|
|
3939
|
-
startAddress:
|
|
3940
|
-
},
|
|
3941
|
-
zh:
|
|
3942
|
-
en:
|
|
3943
|
-
}, Oe =
|
|
3862
|
+
const Ko = "名称", Bo = "供应商", jo = "版本", Xo = "描述", Jo = "类别", Qo = "通用", qo = "I/O映射", Zo = "Modbus从站通道", zo = "状态", el = "以太网", tl = "Modbus TCP服务器", nl = "Modbus TCP客户端", rl = "Modbus TCP从站设备", sl = "成都数字创新科技有限公司", al = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, ol = "网络接口", ll = "IP地址", il = "子网掩码", cl = "默认网关", ul = "适配操作系统配置", fl = "总线周期任务", _l = "使用父总线循环设置", ml = "响应超时(ms)", dl = "Socket超时(ms)", El = "自动重连", pl = "从站IP地址", gl = "端口", Nl = " 看门狗", Tl = "从站端口", bl = "绑定到适配器", Il = "保持寄存器", hl = "可写入", Ll = "输入寄存器", Ol = "离散位区域", vl = "线圈", Cl = "离散输入", Al = "数据模型", Sl = "起始地址", yl = {
|
|
3863
|
+
name: Ko,
|
|
3864
|
+
supplier: Bo,
|
|
3865
|
+
version: jo,
|
|
3866
|
+
description: Xo,
|
|
3867
|
+
category: Jo,
|
|
3868
|
+
general: Qo,
|
|
3869
|
+
ioMapping: qo,
|
|
3870
|
+
modbusSlaveChannel: Zo,
|
|
3871
|
+
status: zo,
|
|
3872
|
+
ethernet: el,
|
|
3873
|
+
modbusTcpServer: tl,
|
|
3874
|
+
modbusTcpClient: nl,
|
|
3875
|
+
modbusTCPSlaveDevice: rl,
|
|
3876
|
+
company: sl,
|
|
3877
|
+
descriptionMap: al,
|
|
3878
|
+
netInterface: ol,
|
|
3879
|
+
ipAddress: ll,
|
|
3880
|
+
subnetMask: il,
|
|
3881
|
+
defaultGateway: cl,
|
|
3882
|
+
adaptedOSConfiguration: ul,
|
|
3883
|
+
busCycleTask: fl,
|
|
3884
|
+
defaultTask: _l,
|
|
3885
|
+
responseTimeout: ml,
|
|
3886
|
+
socketTimeout: dl,
|
|
3887
|
+
reconnect: El,
|
|
3888
|
+
slaveIpAddress: pl,
|
|
3889
|
+
port: gl,
|
|
3890
|
+
watchDog: Nl,
|
|
3891
|
+
slavePort: Tl,
|
|
3892
|
+
bindToAdapter: bl,
|
|
3893
|
+
holdingRegister: Il,
|
|
3894
|
+
writable: hl,
|
|
3895
|
+
inputRegister: Ll,
|
|
3896
|
+
discreteBitArea: Ol,
|
|
3897
|
+
coil: vl,
|
|
3898
|
+
discreteInput: Cl,
|
|
3899
|
+
dataModel: Al,
|
|
3900
|
+
startAddress: Sl
|
|
3901
|
+
}, Pl = "Name", Dl = "Supplier", kl = "Version", Rl = "Description", Ml = "Category", Fl = "General", Ul = "I/O Mapping", wl = "Modbus Slave Channel", Vl = "Status", $l = "Ethernet", Wl = "Modbus TCP Server", Gl = "Modbus TCP Client", xl = "Modbus TCP Slave Device", Hl = "Chengdu AIOSYS Innovation Technology Co., Ltd.", Yl = { ethernet: "A device that works as a Modbus Server on Ethernet.", modbusTcpServer: "A device that works as a Modbus TCP Server.", modbusTcpClient: "A device that works as a Modbus TCP Client.", modbusTCPSlaveDevice: "A device that works as a Modbus TCP Slave Device." }, Kl = "Network Interface", Bl = "IP Address", jl = "Subnet Mask", Xl = "Default Gateway", Jl = "Adapted OS Configuration", Ql = "Bus Cycle Task", ql = "Use Parent Bus Cycle Setting", Zl = "Response Timeout(ms)", zl = "Socket Timeout(ms)", ei = "Reconnect", ti = "Slave IP Address", ni = "Port", ri = "Watch Dog", si = "Slave Port", ai = "Bind to Adapter", oi = "Holding Register", li = "Writable", ii = "Input Register", ci = "Discrete Bit Area", ui = "Coil", fi = "Discrete Input", _i = "Data Model", mi = "Start Address", di = {
|
|
3902
|
+
name: Pl,
|
|
3903
|
+
supplier: Dl,
|
|
3904
|
+
version: kl,
|
|
3905
|
+
description: Rl,
|
|
3906
|
+
category: Ml,
|
|
3907
|
+
general: Fl,
|
|
3908
|
+
ioMapping: Ul,
|
|
3909
|
+
modbusSlaveChannel: wl,
|
|
3910
|
+
status: Vl,
|
|
3911
|
+
ethernet: $l,
|
|
3912
|
+
modbusTcpServer: Wl,
|
|
3913
|
+
modbusTcpClient: Gl,
|
|
3914
|
+
modbusTCPSlaveDevice: xl,
|
|
3915
|
+
company: Hl,
|
|
3916
|
+
descriptionMap: Yl,
|
|
3917
|
+
netInterface: Kl,
|
|
3918
|
+
ipAddress: Bl,
|
|
3919
|
+
subnetMask: jl,
|
|
3920
|
+
defaultGateway: Xl,
|
|
3921
|
+
adaptedOSConfiguration: Jl,
|
|
3922
|
+
busCycleTask: Ql,
|
|
3923
|
+
defaultTask: ql,
|
|
3924
|
+
responseTimeout: Zl,
|
|
3925
|
+
socketTimeout: zl,
|
|
3926
|
+
reconnect: ei,
|
|
3927
|
+
slaveIpAddress: ti,
|
|
3928
|
+
port: ni,
|
|
3929
|
+
watchDog: ri,
|
|
3930
|
+
slavePort: si,
|
|
3931
|
+
bindToAdapter: ai,
|
|
3932
|
+
holdingRegister: oi,
|
|
3933
|
+
writable: li,
|
|
3934
|
+
inputRegister: ii,
|
|
3935
|
+
discreteBitArea: ci,
|
|
3936
|
+
coil: ui,
|
|
3937
|
+
discreteInput: fi,
|
|
3938
|
+
dataModel: _i,
|
|
3939
|
+
startAddress: mi
|
|
3940
|
+
}, Ei = {
|
|
3941
|
+
zh: yl,
|
|
3942
|
+
en: di
|
|
3943
|
+
}, Oe = Mo({
|
|
3944
3944
|
legacy: !1,
|
|
3945
3945
|
locale: "zh",
|
|
3946
3946
|
fallbackLocale: "en",
|
|
3947
|
-
messages:
|
|
3947
|
+
messages: Ei
|
|
3948
3948
|
});
|
|
3949
3949
|
typeof window < "u" && (window.$t = Oe.global.t.bind(Oe.global), Object.defineProperty(window, "$locale", {
|
|
3950
3950
|
get() {
|
|
@@ -3954,22 +3954,22 @@ typeof window < "u" && (window.$t = Oe.global.t.bind(Oe.global), Object.definePr
|
|
|
3954
3954
|
Oe.global.locale = e;
|
|
3955
3955
|
}
|
|
3956
3956
|
}));
|
|
3957
|
-
const _t = Jr(
|
|
3957
|
+
const _t = Jr(cs).use(Oe);
|
|
3958
3958
|
_t.component("Input", Qt);
|
|
3959
3959
|
_t.component("InputNumber", lr);
|
|
3960
3960
|
_t.component("IpInput", or);
|
|
3961
3961
|
_t.mount("#app");
|
|
3962
|
-
const
|
|
3962
|
+
const pi = [
|
|
3963
3963
|
qr,
|
|
3964
3964
|
zr,
|
|
3965
3965
|
Qt,
|
|
3966
3966
|
lr,
|
|
3967
3967
|
or
|
|
3968
3968
|
], Ni = {
|
|
3969
|
-
install(e) {
|
|
3970
|
-
|
|
3971
|
-
e.component(
|
|
3972
|
-
});
|
|
3969
|
+
install(e, t) {
|
|
3970
|
+
pi.forEach((n) => {
|
|
3971
|
+
e.component(n.name, n);
|
|
3972
|
+
}), t && e.use(ts, t);
|
|
3973
3973
|
}
|
|
3974
3974
|
};
|
|
3975
3975
|
export {
|
|
@@ -3982,10 +3982,11 @@ export {
|
|
|
3982
3982
|
qt as ModbusTCPServerProtocolItem,
|
|
3983
3983
|
zt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3984
3984
|
qr as MyButton,
|
|
3985
|
-
|
|
3986
|
-
|
|
3985
|
+
ts as MyLibPlugin,
|
|
3986
|
+
is as ProtocolCollection,
|
|
3987
3987
|
re as ProtocolItem,
|
|
3988
3988
|
Ee as ProtocolType,
|
|
3989
|
+
ar as UI_KEY,
|
|
3989
3990
|
Ni as default,
|
|
3990
3991
|
lt as protocolMap
|
|
3991
3992
|
};
|