lty-protocol 1.0.12 → 1.0.14
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/components/IpInput.d.ts +10 -0
- package/dist/index.d.ts +4 -1
- package/dist/lty-protocol.mjs +704 -679
- package/dist/lty-protocol.umd.js +6 -6
- package/dist/plugin.d.ts +8 -0
- package/package.json +1 -1
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as pe, openBlock as xe, createElementBlock as He, renderSlot as Bn, inject as jn, h as
|
|
1
|
+
import * as Ct from "vue";
|
|
2
|
+
import { defineComponent as pe, openBlock as xe, createElementBlock as He, renderSlot as Bn, inject as jn, h as Ye, ref as Xn, Fragment as Yt, renderList as Dr, toDisplayString as kr, createVNode as Jn, unref as Rr, effectScope as Mr, computed as We, watch as Dt, isRef as Fr, shallowRef as Ur, onMounted as wr, onUnmounted as Vr, Text as $r, createApp as Wr } from "vue";
|
|
3
3
|
const Gr = /* @__PURE__ */ pe({
|
|
4
4
|
name: "MyButton",
|
|
5
5
|
__name: "MyButton",
|
|
@@ -15,12 +15,12 @@ const Gr = /* @__PURE__ */ pe({
|
|
|
15
15
|
Bn(s.$slots, "default", {}, void 0, !0)
|
|
16
16
|
]));
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), Qn = (e, t) => {
|
|
19
19
|
const n = e.__vccOpts || e;
|
|
20
20
|
for (const [r, s] of t)
|
|
21
21
|
n[r] = s;
|
|
22
22
|
return n;
|
|
23
|
-
}, xr = /* @__PURE__ */
|
|
23
|
+
}, xr = /* @__PURE__ */ Qn(Gr, [["__scopeId", "data-v-c654f959"]]), Hr = /* @__PURE__ */ pe({
|
|
24
24
|
name: "MyButton",
|
|
25
25
|
__name: "button2",
|
|
26
26
|
emits: ["click"],
|
|
@@ -35,7 +35,7 @@ const Gr = /* @__PURE__ */ pe({
|
|
|
35
35
|
Bn(s.$slots, "default", {}, void 0, !0)
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}), Yr = /* @__PURE__ */
|
|
38
|
+
}), Yr = /* @__PURE__ */ Qn(Hr, [["__scopeId", "data-v-1477cfc3"]]), Kr = pe({
|
|
39
39
|
name: "MyInput",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: String
|
|
@@ -43,12 +43,35 @@ const Gr = /* @__PURE__ */ pe({
|
|
|
43
43
|
emits: ["update:modelValue"],
|
|
44
44
|
setup(e, { emit: t }) {
|
|
45
45
|
const n = jn("UIComponents").Input;
|
|
46
|
-
return n ? () =>
|
|
46
|
+
return n ? () => Ye(n, {
|
|
47
47
|
modelValue: e.modelValue,
|
|
48
48
|
"onUpdate:modelValue": (r) => t("update:modelValue", r)
|
|
49
49
|
}) : null;
|
|
50
50
|
}
|
|
51
|
+
}), ui = pe({
|
|
52
|
+
name: "IpInput",
|
|
53
|
+
props: { modelValue: String },
|
|
54
|
+
emits: ["update:modelValue"],
|
|
55
|
+
setup(e, { emit: t }) {
|
|
56
|
+
const n = Xn((e.modelValue || "0.0.0.0").split(".")), r = (s, a) => {
|
|
57
|
+
n.value[s] = a, t("update:modelValue", n.value.join("."));
|
|
58
|
+
};
|
|
59
|
+
return () => Ye(
|
|
60
|
+
"div",
|
|
61
|
+
{ style: { display: "flex", gap: "4px" } },
|
|
62
|
+
n.value.map(
|
|
63
|
+
(s, a) => Ye(Kr, {
|
|
64
|
+
key: a,
|
|
65
|
+
modelValue: s,
|
|
66
|
+
"onUpdate:modelValue": (o) => r(a, o)
|
|
67
|
+
})
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
51
71
|
});
|
|
72
|
+
function fi(e, t) {
|
|
73
|
+
e.provide("UIComponents", t);
|
|
74
|
+
}
|
|
52
75
|
class re {
|
|
53
76
|
id;
|
|
54
77
|
deviceId;
|
|
@@ -66,7 +89,7 @@ class re {
|
|
|
66
89
|
return n.fromPlain(t);
|
|
67
90
|
}
|
|
68
91
|
}
|
|
69
|
-
class
|
|
92
|
+
class Br {
|
|
70
93
|
static getDefaultConfig(t) {
|
|
71
94
|
console.log(1231231, t);
|
|
72
95
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -77,30 +100,30 @@ class Kr {
|
|
|
77
100
|
};
|
|
78
101
|
}
|
|
79
102
|
}
|
|
80
|
-
const
|
|
81
|
-
type:
|
|
82
|
-
baseInfo:
|
|
83
|
-
tab:
|
|
84
|
-
configuration:
|
|
103
|
+
const jr = "Ethernet", Xr = [{ 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" } }], Jr = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], Qr = { 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" }] }, qr = {
|
|
104
|
+
type: jr,
|
|
105
|
+
baseInfo: Xr,
|
|
106
|
+
tab: Jr,
|
|
107
|
+
configuration: Qr
|
|
85
108
|
};
|
|
86
|
-
class
|
|
109
|
+
class at extends re {
|
|
87
110
|
type = Ee.ETHERNET;
|
|
88
|
-
moduleType =
|
|
111
|
+
moduleType = ot[Ee.ETHERNET];
|
|
89
112
|
baseInfo;
|
|
90
113
|
config;
|
|
91
114
|
tab;
|
|
92
115
|
constructor(t) {
|
|
93
116
|
super(t);
|
|
94
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
117
|
+
const { baseInfo: n, config: r, tab: s } = Br.getDefaultConfig(qr);
|
|
95
118
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
96
119
|
}
|
|
97
120
|
static fromPlain(t) {
|
|
98
|
-
return new
|
|
121
|
+
return new at(t);
|
|
99
122
|
}
|
|
100
123
|
}
|
|
101
124
|
class Kt extends re {
|
|
102
125
|
type = Ee.MODBUS_TCP_SERVER;
|
|
103
|
-
moduleType =
|
|
126
|
+
moduleType = ot[Ee.MODBUS_TCP_SERVER];
|
|
104
127
|
constructor(t) {
|
|
105
128
|
super(t);
|
|
106
129
|
}
|
|
@@ -110,7 +133,7 @@ class Kt extends re {
|
|
|
110
133
|
}
|
|
111
134
|
class Bt extends re {
|
|
112
135
|
type = Ee.MODBUS_TCP_CLIENT;
|
|
113
|
-
moduleType =
|
|
136
|
+
moduleType = ot[Ee.MODBUS_TCP_CLIENT];
|
|
114
137
|
constructor(t) {
|
|
115
138
|
super(t);
|
|
116
139
|
}
|
|
@@ -120,7 +143,7 @@ class Bt extends re {
|
|
|
120
143
|
}
|
|
121
144
|
class jt extends re {
|
|
122
145
|
type = Ee.MODBUS_TCP_SLAVE_DEVICE;
|
|
123
|
-
moduleType =
|
|
146
|
+
moduleType = ot[Ee.MODBUS_TCP_SLAVE_DEVICE];
|
|
124
147
|
constructor(t) {
|
|
125
148
|
super(t);
|
|
126
149
|
}
|
|
@@ -129,7 +152,7 @@ class jt extends re {
|
|
|
129
152
|
}
|
|
130
153
|
}
|
|
131
154
|
var Ee = /* @__PURE__ */ ((e) => (e.ETHERNET = "Ethernet", e.MODBUS_TCP_SERVER = "ModbusTCPServer", e.MODBUS_TCP_CLIENT = "ModbusTCPClient", e.MODBUS_TCP_SLAVE_DEVICE = "ModbusTCPSlaveDevice", e.MODBUS_SERIAL_PORT = "ModbusSerialPort", e.MODBUS_MASTER = "ModbusMaster", e.MODBUS_SLAVE = "ModbusSlave", e.MODBUS_SERIAL = "ModbusSerial", e.OPCUA_SERVER = "OPCUAServer", e.ETHER_CAT_MASTER = "EtherCatMaster", e.ETHER_CAT_SLAVE = "EtherCatSlave", e.ETHER_CAT_MODULE = "EtherCatModule", e))(Ee || {});
|
|
132
|
-
const
|
|
155
|
+
const ot = {
|
|
133
156
|
Pprogrammable: 4096,
|
|
134
157
|
// 根节点
|
|
135
158
|
Protgrammable_Safety: 4098,
|
|
@@ -183,10 +206,10 @@ const at = {
|
|
|
183
206
|
EtherCatModule: 16384
|
|
184
207
|
// Ethercat子模块
|
|
185
208
|
};
|
|
186
|
-
class
|
|
209
|
+
class Zr {
|
|
187
210
|
map = /* @__PURE__ */ new Map();
|
|
188
211
|
constructor() {
|
|
189
|
-
re.register("Ethernet",
|
|
212
|
+
re.register("Ethernet", at), re.register("ModbusTCPServer", Kt), re.register("ModbusTCPClient", Bt), re.register("ModbusTCPSlaveDevice", jt);
|
|
190
213
|
}
|
|
191
214
|
init(t) {
|
|
192
215
|
this.clear(), t.forEach((n) => {
|
|
@@ -213,27 +236,27 @@ class qr {
|
|
|
213
236
|
this.map.clear();
|
|
214
237
|
}
|
|
215
238
|
}
|
|
216
|
-
const
|
|
239
|
+
const zr = /* @__PURE__ */ pe({
|
|
217
240
|
__name: "Ethernet",
|
|
218
241
|
props: {
|
|
219
242
|
config: {}
|
|
220
243
|
},
|
|
221
244
|
setup(e) {
|
|
222
|
-
return (t, n) => (xe(!0), He(Yt, null,
|
|
245
|
+
return (t, n) => (xe(!0), He(Yt, null, Dr(e.config.tab, (r) => (xe(), He("div", {
|
|
223
246
|
key: r.key
|
|
224
|
-
},
|
|
247
|
+
}, kr(t.$t(r.name.i18nKey)), 1))), 128));
|
|
225
248
|
}
|
|
226
|
-
}),
|
|
249
|
+
}), es = /* @__PURE__ */ pe({
|
|
227
250
|
__name: "App",
|
|
228
251
|
setup(e) {
|
|
229
|
-
new
|
|
230
|
-
const t = new
|
|
252
|
+
new Zr();
|
|
253
|
+
const t = new at({
|
|
231
254
|
id: 1,
|
|
232
255
|
deviceId: 1,
|
|
233
256
|
type: "Ethernet"
|
|
234
257
|
});
|
|
235
258
|
return (n, r) => (xe(), He("div", null, [
|
|
236
|
-
|
|
259
|
+
Jn(zr, { config: Rr(t) }, null, 8, ["config"])
|
|
237
260
|
]));
|
|
238
261
|
}
|
|
239
262
|
});
|
|
@@ -255,20 +278,20 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
255
278
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
256
279
|
});
|
|
257
280
|
}
|
|
258
|
-
const
|
|
259
|
-
function
|
|
260
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
281
|
+
const ts = /\{([0-9a-zA-Z]+)\}/g;
|
|
282
|
+
function lt(e, ...t) {
|
|
283
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ts, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
261
284
|
}
|
|
262
|
-
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
285
|
+
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ns = (e, t, n) => rs({ l: e, k: t, s: n }), rs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), ss = (e) => Jt(e) === "[object Date]", ke = (e) => Jt(e) === "[object RegExp]", it = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, as = Object.create, $ = (e = null) => as(e);
|
|
263
286
|
let fn;
|
|
264
|
-
const
|
|
287
|
+
const Le = () => fn || (fn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
265
288
|
function _n(e) {
|
|
266
289
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
267
290
|
}
|
|
268
291
|
function mn(e) {
|
|
269
292
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
270
293
|
}
|
|
271
|
-
function
|
|
294
|
+
function os(e) {
|
|
272
295
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${mn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${mn(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")), [
|
|
273
296
|
// In href, src, action, formaction attributes
|
|
274
297
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -278,16 +301,16 @@ function as(e) {
|
|
|
278
301
|
e = e.replace(r, "$1javascript:");
|
|
279
302
|
}), e;
|
|
280
303
|
}
|
|
281
|
-
const
|
|
304
|
+
const ls = Object.prototype.hasOwnProperty;
|
|
282
305
|
function oe(e, t) {
|
|
283
|
-
return
|
|
306
|
+
return ls.call(e, t);
|
|
284
307
|
}
|
|
285
|
-
const H = Array.isArray, W = (e) => typeof e == "function",
|
|
308
|
+
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", is = (e) => M(e) && W(e.then) && W(e.catch), qn = Object.prototype.toString, Jt = (e) => qn.call(e), R = (e) => Jt(e) === "[object Object]", cs = (e) => e == null ? "" : H(e) || R(e) && e.toString === qn ? JSON.stringify(e, null, 2) : String(e);
|
|
286
309
|
function Qt(e, t = "") {
|
|
287
310
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
288
311
|
}
|
|
289
312
|
const dn = 2;
|
|
290
|
-
function
|
|
313
|
+
function us(e, t = 0, n = e.length) {
|
|
291
314
|
const r = e.split(/\r?\n/);
|
|
292
315
|
let s = 0;
|
|
293
316
|
const a = [];
|
|
@@ -300,12 +323,12 @@ function cs(e, t = 0, n = e.length) {
|
|
|
300
323
|
a.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[i]}`);
|
|
301
324
|
const E = r[i].length;
|
|
302
325
|
if (i === o) {
|
|
303
|
-
const
|
|
304
|
-
a.push(" | " + " ".repeat(
|
|
326
|
+
const I = t - (s - E) + 1, b = Math.max(1, n > s ? E - I : n - t);
|
|
327
|
+
a.push(" | " + " ".repeat(I) + "^".repeat(b));
|
|
305
328
|
} else if (i > o) {
|
|
306
329
|
if (n > s) {
|
|
307
|
-
const
|
|
308
|
-
a.push(" | " + "^".repeat(
|
|
330
|
+
const I = Math.max(Math.min(n - s, E), 1);
|
|
331
|
+
a.push(" | " + "^".repeat(I));
|
|
309
332
|
}
|
|
310
333
|
s += E + 1;
|
|
311
334
|
}
|
|
@@ -332,22 +355,22 @@ function qt() {
|
|
|
332
355
|
}
|
|
333
356
|
};
|
|
334
357
|
}
|
|
335
|
-
const
|
|
336
|
-
function
|
|
337
|
-
if (
|
|
358
|
+
const et = (e) => !M(e) || H(e);
|
|
359
|
+
function rt(e, t) {
|
|
360
|
+
if (et(e) || et(t))
|
|
338
361
|
throw new Error("Invalid value");
|
|
339
362
|
const n = [{ src: e, des: t }];
|
|
340
363
|
for (; n.length; ) {
|
|
341
364
|
const { src: r, des: s } = n.pop();
|
|
342
365
|
Object.keys(r).forEach((a) => {
|
|
343
|
-
a !== "__proto__" && (M(r[a]) && !M(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : $()),
|
|
366
|
+
a !== "__proto__" && (M(r[a]) && !M(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : $()), et(s[a]) || et(r[a]) ? s[a] = r[a] : n.push({ src: r[a], des: s[a] }));
|
|
344
367
|
});
|
|
345
368
|
}
|
|
346
369
|
}
|
|
347
|
-
function
|
|
370
|
+
function fs(e, t, n) {
|
|
348
371
|
return { line: e, column: t, offset: n };
|
|
349
372
|
}
|
|
350
|
-
function
|
|
373
|
+
function kt(e, t, n) {
|
|
351
374
|
return { start: e, end: t };
|
|
352
375
|
}
|
|
353
376
|
const P = {
|
|
@@ -371,7 +394,7 @@ const P = {
|
|
|
371
394
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
372
395
|
// minifier error codes
|
|
373
396
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
374
|
-
},
|
|
397
|
+
}, _s = 17, ms = {
|
|
375
398
|
// tokenizer error messages
|
|
376
399
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
377
400
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -394,20 +417,20 @@ const P = {
|
|
|
394
417
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
395
418
|
};
|
|
396
419
|
function Fe(e, t, n = {}) {
|
|
397
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ?
|
|
420
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? lt((s || ms)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
398
421
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
399
422
|
}
|
|
400
|
-
function
|
|
423
|
+
function ds(e) {
|
|
401
424
|
throw e;
|
|
402
425
|
}
|
|
403
|
-
const
|
|
404
|
-
`,
|
|
405
|
-
function
|
|
426
|
+
const Es = /<\/?[\w\s="/.':;#-\/]+>/, ps = (e) => Es.test(e), ie = " ", gs = "\r", Q = `
|
|
427
|
+
`, Ns = "\u2028", Ts = "\u2029";
|
|
428
|
+
function bs(e) {
|
|
406
429
|
const t = e;
|
|
407
430
|
let n = 0, r = 1, s = 1, a = 0;
|
|
408
|
-
const o = (p) => t[p] ===
|
|
431
|
+
const o = (p) => t[p] === gs && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === Ts, E = (p) => t[p] === Ns, I = (p) => o(p) || i(p) || u(p) || E(p), b = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || E(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
409
432
|
function m() {
|
|
410
|
-
return a = 0,
|
|
433
|
+
return a = 0, I(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
411
434
|
}
|
|
412
435
|
function h() {
|
|
413
436
|
return o(n + a) && a++, a++, t[n + a];
|
|
@@ -439,9 +462,9 @@ function Ts(e) {
|
|
|
439
462
|
skipToPeek: v
|
|
440
463
|
};
|
|
441
464
|
}
|
|
442
|
-
const me = void 0,
|
|
465
|
+
const me = void 0, hs = ".", En = "'", Is = "tokenizer";
|
|
443
466
|
function Ls(e, t = {}) {
|
|
444
|
-
const n = t.location !== !1, r =
|
|
467
|
+
const n = t.location !== !1, r = bs(e), s = () => r.index(), a = () => fs(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
445
468
|
currentType: 13,
|
|
446
469
|
offset: i,
|
|
447
470
|
startLoc: o,
|
|
@@ -453,21 +476,21 @@ function Ls(e, t = {}) {
|
|
|
453
476
|
braceNest: 0,
|
|
454
477
|
inLinked: !1,
|
|
455
478
|
text: ""
|
|
456
|
-
}, E = () => u, { onError:
|
|
479
|
+
}, E = () => u, { onError: I } = t;
|
|
457
480
|
function b(l, c, g, ...y) {
|
|
458
481
|
const x = E();
|
|
459
|
-
if (c.column += g, c.offset += g,
|
|
460
|
-
const K = n ?
|
|
461
|
-
domain:
|
|
482
|
+
if (c.column += g, c.offset += g, I) {
|
|
483
|
+
const K = n ? kt(x.startLoc, c) : null, U = Fe(l, K, {
|
|
484
|
+
domain: Is,
|
|
462
485
|
args: y
|
|
463
486
|
});
|
|
464
|
-
|
|
487
|
+
I(U);
|
|
465
488
|
}
|
|
466
489
|
}
|
|
467
490
|
function N(l, c, g) {
|
|
468
491
|
l.endLoc = a(), l.currentType = c;
|
|
469
492
|
const y = { type: c };
|
|
470
|
-
return n && (y.loc =
|
|
493
|
+
return n && (y.loc = kt(l.startLoc, l.endLoc)), g != null && (y.value = g), y;
|
|
471
494
|
}
|
|
472
495
|
const A = (l) => N(
|
|
473
496
|
l,
|
|
@@ -583,10 +606,10 @@ function Ls(e, t = {}) {
|
|
|
583
606
|
c === 95 || // _
|
|
584
607
|
c === 36;
|
|
585
608
|
}
|
|
586
|
-
function
|
|
609
|
+
function ft(l) {
|
|
587
610
|
return Y(l, Ae);
|
|
588
611
|
}
|
|
589
|
-
function
|
|
612
|
+
function _t(l) {
|
|
590
613
|
const c = l.charCodeAt(0);
|
|
591
614
|
return c >= 97 && c <= 122 || // a-z
|
|
592
615
|
c >= 65 && c <= 90 || // A-Z
|
|
@@ -595,32 +618,32 @@ function Ls(e, t = {}) {
|
|
|
595
618
|
c === 36 || // $
|
|
596
619
|
c === 45;
|
|
597
620
|
}
|
|
598
|
-
function _t(l) {
|
|
599
|
-
return Y(l, ft);
|
|
600
|
-
}
|
|
601
621
|
function mt(l) {
|
|
602
|
-
|
|
603
|
-
return c >= 48 && c <= 57;
|
|
622
|
+
return Y(l, _t);
|
|
604
623
|
}
|
|
605
624
|
function dt(l) {
|
|
606
|
-
|
|
625
|
+
const c = l.charCodeAt(0);
|
|
626
|
+
return c >= 48 && c <= 57;
|
|
607
627
|
}
|
|
608
628
|
function Et(l) {
|
|
629
|
+
return Y(l, dt);
|
|
630
|
+
}
|
|
631
|
+
function pt(l) {
|
|
609
632
|
const c = l.charCodeAt(0);
|
|
610
633
|
return c >= 48 && c <= 57 || // 0-9
|
|
611
634
|
c >= 65 && c <= 70 || // A-F
|
|
612
635
|
c >= 97 && c <= 102;
|
|
613
636
|
}
|
|
614
637
|
function _e(l) {
|
|
615
|
-
return Y(l,
|
|
638
|
+
return Y(l, pt);
|
|
616
639
|
}
|
|
617
640
|
function Ue(l) {
|
|
618
641
|
let c = "", g = "";
|
|
619
|
-
for (; c =
|
|
642
|
+
for (; c = Et(l); )
|
|
620
643
|
g += c;
|
|
621
644
|
return g;
|
|
622
645
|
}
|
|
623
|
-
function
|
|
646
|
+
function gt(l) {
|
|
624
647
|
let c = "";
|
|
625
648
|
for (; ; ) {
|
|
626
649
|
const g = l.currentChar();
|
|
@@ -639,49 +662,49 @@ function Ls(e, t = {}) {
|
|
|
639
662
|
}
|
|
640
663
|
return c;
|
|
641
664
|
}
|
|
642
|
-
function
|
|
665
|
+
function Nt(l) {
|
|
643
666
|
S(l);
|
|
644
667
|
let c = "", g = "";
|
|
645
|
-
for (; c =
|
|
668
|
+
for (; c = mt(l); )
|
|
646
669
|
g += c;
|
|
647
670
|
const y = l.currentChar();
|
|
648
671
|
if (y && y !== "}" && y !== me && y !== ie && y !== Q && y !== " ") {
|
|
649
|
-
const x =
|
|
672
|
+
const x = Ze(l);
|
|
650
673
|
return b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g + x), g + x;
|
|
651
674
|
}
|
|
652
675
|
return l.currentChar() === me && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
653
676
|
}
|
|
654
|
-
function
|
|
677
|
+
function Tt(l) {
|
|
655
678
|
S(l);
|
|
656
679
|
let c = "";
|
|
657
680
|
return l.currentChar() === "-" ? (l.next(), c += `-${Ue(l)}`) : c += Ue(l), l.currentChar() === me && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
658
681
|
}
|
|
659
|
-
function
|
|
682
|
+
function bt(l) {
|
|
660
683
|
return l !== En && l !== Q;
|
|
661
684
|
}
|
|
662
685
|
function ln(l) {
|
|
663
686
|
S(l), D(l, "'");
|
|
664
687
|
let c = "", g = "";
|
|
665
|
-
for (; c = Y(l,
|
|
666
|
-
c === "\\" ? g +=
|
|
688
|
+
for (; c = Y(l, bt); )
|
|
689
|
+
c === "\\" ? g += ht(l) : g += c;
|
|
667
690
|
const y = l.currentChar();
|
|
668
691
|
return y === Q || y === me ? (b(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), y === Q && (l.next(), D(l, "'")), g) : (D(l, "'"), g);
|
|
669
692
|
}
|
|
670
|
-
function
|
|
693
|
+
function ht(l) {
|
|
671
694
|
const c = l.currentChar();
|
|
672
695
|
switch (c) {
|
|
673
696
|
case "\\":
|
|
674
697
|
case "'":
|
|
675
698
|
return l.next(), `\\${c}`;
|
|
676
699
|
case "u":
|
|
677
|
-
return
|
|
700
|
+
return qe(l, c, 4);
|
|
678
701
|
case "U":
|
|
679
|
-
return
|
|
702
|
+
return qe(l, c, 6);
|
|
680
703
|
default:
|
|
681
704
|
return b(P.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, c), "";
|
|
682
705
|
}
|
|
683
706
|
}
|
|
684
|
-
function
|
|
707
|
+
function qe(l, c, g) {
|
|
685
708
|
D(l, c);
|
|
686
709
|
let y = "";
|
|
687
710
|
for (let x = 0; x < g; x++) {
|
|
@@ -694,23 +717,23 @@ function Ls(e, t = {}) {
|
|
|
694
717
|
}
|
|
695
718
|
return `\\${c}${y}`;
|
|
696
719
|
}
|
|
697
|
-
function
|
|
720
|
+
function It(l) {
|
|
698
721
|
return l !== "{" && l !== "}" && l !== ie && l !== Q;
|
|
699
722
|
}
|
|
700
|
-
function
|
|
723
|
+
function Ze(l) {
|
|
701
724
|
S(l);
|
|
702
725
|
let c = "", g = "";
|
|
703
|
-
for (; c = Y(l,
|
|
726
|
+
for (; c = Y(l, It); )
|
|
704
727
|
g += c;
|
|
705
728
|
return g;
|
|
706
729
|
}
|
|
707
730
|
function Lt(l) {
|
|
708
731
|
let c = "", g = "";
|
|
709
|
-
for (; c =
|
|
732
|
+
for (; c = ft(l); )
|
|
710
733
|
g += c;
|
|
711
734
|
return g;
|
|
712
735
|
}
|
|
713
|
-
function
|
|
736
|
+
function Ot(l) {
|
|
714
737
|
const c = (g) => {
|
|
715
738
|
const y = l.currentChar();
|
|
716
739
|
return y === "{" || y === "@" || y === "|" || y === "(" || y === ")" || !y || y === ie ? g : (g += y, l.next(), c(g));
|
|
@@ -752,13 +775,13 @@ function Ls(e, t = {}) {
|
|
|
752
775
|
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
753
776
|
return b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, $e(l, c);
|
|
754
777
|
if (x = h(l, c))
|
|
755
|
-
return g = N(c, 4,
|
|
778
|
+
return g = N(c, 4, Nt(l)), S(l), g;
|
|
756
779
|
if (K = d(l, c))
|
|
757
|
-
return g = N(c, 5,
|
|
780
|
+
return g = N(c, 5, Tt(l)), S(l), g;
|
|
758
781
|
if (U = O(l, c))
|
|
759
782
|
return g = N(c, 6, ln(l)), S(l), g;
|
|
760
783
|
if (!x && !K && !U)
|
|
761
|
-
return g = N(c, 12,
|
|
784
|
+
return g = N(c, 12, Ze(l)), b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), S(l), g;
|
|
762
785
|
break;
|
|
763
786
|
}
|
|
764
787
|
}
|
|
@@ -791,7 +814,7 @@ function Ls(e, t = {}) {
|
|
|
791
814
|
/* TokenChars.LinkedDelimiter */
|
|
792
815
|
);
|
|
793
816
|
default:
|
|
794
|
-
return X(l) ? (y = N(c, 1, we(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), Te(l, c)) : p(l, c) ? (S(l), N(c, 11, Lt(l))) : w(l, c) ? (S(l), x === "{" ? Ve(l, c) || y : N(c, 10,
|
|
817
|
+
return X(l) ? (y = N(c, 1, we(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), Te(l, c)) : p(l, c) ? (S(l), N(c, 11, Lt(l))) : w(l, c) ? (S(l), x === "{" ? Ve(l, c) || y : N(c, 10, Ot(l))) : (g === 7 && b(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, $e(l, c));
|
|
795
818
|
}
|
|
796
819
|
}
|
|
797
820
|
function $e(l, c) {
|
|
@@ -819,13 +842,13 @@ function Ls(e, t = {}) {
|
|
|
819
842
|
if (X(l))
|
|
820
843
|
return g = N(c, 1, we(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
821
844
|
if (ae(l))
|
|
822
|
-
return N(c, 0,
|
|
845
|
+
return N(c, 0, gt(l));
|
|
823
846
|
break;
|
|
824
847
|
}
|
|
825
848
|
}
|
|
826
849
|
return g;
|
|
827
850
|
}
|
|
828
|
-
function
|
|
851
|
+
function vt() {
|
|
829
852
|
const { currentType: l, offset: c, startLoc: g, endLoc: y } = u;
|
|
830
853
|
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() === me ? N(
|
|
831
854
|
u,
|
|
@@ -834,14 +857,14 @@ function Ls(e, t = {}) {
|
|
|
834
857
|
) : $e(r, u);
|
|
835
858
|
}
|
|
836
859
|
return {
|
|
837
|
-
nextToken:
|
|
860
|
+
nextToken: vt,
|
|
838
861
|
currentOffset: s,
|
|
839
862
|
currentPosition: a,
|
|
840
863
|
context: E
|
|
841
864
|
};
|
|
842
865
|
}
|
|
843
|
-
const
|
|
844
|
-
function
|
|
866
|
+
const Os = "parser", vs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
867
|
+
function Cs(e, t, n) {
|
|
845
868
|
switch (e) {
|
|
846
869
|
case "\\\\":
|
|
847
870
|
return "\\";
|
|
@@ -854,13 +877,13 @@ function vs(e, t, n) {
|
|
|
854
877
|
}
|
|
855
878
|
}
|
|
856
879
|
}
|
|
857
|
-
function
|
|
880
|
+
function As(e = {}) {
|
|
858
881
|
const t = e.location !== !1, { onError: n } = e;
|
|
859
882
|
function r(f, m, h, d, ...O) {
|
|
860
883
|
const v = f.currentPosition();
|
|
861
884
|
if (v.offset += d, v.column += d, n) {
|
|
862
|
-
const p = t ?
|
|
863
|
-
domain:
|
|
885
|
+
const p = t ? kt(h, v) : null, k = Fe(m, p, {
|
|
886
|
+
domain: Os,
|
|
864
887
|
args: O
|
|
865
888
|
});
|
|
866
889
|
n(k);
|
|
@@ -887,9 +910,9 @@ function Cs(e = {}) {
|
|
|
887
910
|
}
|
|
888
911
|
function E(f, m) {
|
|
889
912
|
const h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(9, d, O);
|
|
890
|
-
return v.value = m.replace(
|
|
913
|
+
return v.value = m.replace(vs, Cs), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
891
914
|
}
|
|
892
|
-
function
|
|
915
|
+
function I(f) {
|
|
893
916
|
const m = f.nextToken(), h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(8, d, O);
|
|
894
917
|
return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0), v.value = "", a(v, d, O), {
|
|
895
918
|
nextConsumeToken: m,
|
|
@@ -906,7 +929,7 @@ function Cs(e = {}) {
|
|
|
906
929
|
const m = f.context(), h = s(6, m.offset, m.startLoc);
|
|
907
930
|
let d = f.nextToken();
|
|
908
931
|
if (d.type === 8) {
|
|
909
|
-
const O =
|
|
932
|
+
const O = I(f);
|
|
910
933
|
h.modifier = O.node, d = O.nextConsumeToken || f.nextToken();
|
|
911
934
|
}
|
|
912
935
|
switch (d.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), d = f.nextToken(), d.type === 2 && (d = f.nextToken()), d.type) {
|
|
@@ -991,7 +1014,7 @@ function ce(e) {
|
|
|
991
1014
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
992
1015
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
993
1016
|
}
|
|
994
|
-
function
|
|
1017
|
+
function Ss(e, t = {}) {
|
|
995
1018
|
const n = {
|
|
996
1019
|
ast: e,
|
|
997
1020
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1043,8 +1066,8 @@ function Zt(e, t) {
|
|
|
1043
1066
|
break;
|
|
1044
1067
|
}
|
|
1045
1068
|
}
|
|
1046
|
-
function
|
|
1047
|
-
const n =
|
|
1069
|
+
function ys(e, t = {}) {
|
|
1070
|
+
const n = Ss(e);
|
|
1048
1071
|
n.helper(
|
|
1049
1072
|
"normalize"
|
|
1050
1073
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -1052,7 +1075,7 @@ function Ss(e, t = {}) {
|
|
|
1052
1075
|
const r = n.context();
|
|
1053
1076
|
e.helpers = Array.from(r.helpers);
|
|
1054
1077
|
}
|
|
1055
|
-
function
|
|
1078
|
+
function Ps(e) {
|
|
1056
1079
|
const t = e.body;
|
|
1057
1080
|
return t.type === 2 ? gn(t) : t.cases.forEach((n) => gn(n)), e;
|
|
1058
1081
|
}
|
|
@@ -1077,7 +1100,7 @@ function gn(e) {
|
|
|
1077
1100
|
}
|
|
1078
1101
|
}
|
|
1079
1102
|
}
|
|
1080
|
-
const
|
|
1103
|
+
const Ds = "minifier";
|
|
1081
1104
|
function Pe(e) {
|
|
1082
1105
|
switch (e.t = e.type, e.type) {
|
|
1083
1106
|
case 0: {
|
|
@@ -1125,14 +1148,14 @@ function Pe(e) {
|
|
|
1125
1148
|
default:
|
|
1126
1149
|
if (process.env.NODE_ENV !== "production")
|
|
1127
1150
|
throw Fe(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1128
|
-
domain:
|
|
1151
|
+
domain: Ds,
|
|
1129
1152
|
args: [e.type]
|
|
1130
1153
|
});
|
|
1131
1154
|
}
|
|
1132
1155
|
delete e.type;
|
|
1133
1156
|
}
|
|
1134
|
-
const
|
|
1135
|
-
function
|
|
1157
|
+
const ks = "parser";
|
|
1158
|
+
function Rs(e, t) {
|
|
1136
1159
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1137
1160
|
filename: n,
|
|
1138
1161
|
code: "",
|
|
@@ -1153,7 +1176,7 @@ function ks(e, t) {
|
|
|
1153
1176
|
const f = S ? r : "";
|
|
1154
1177
|
u(s ? f + " ".repeat(C) : f);
|
|
1155
1178
|
}
|
|
1156
|
-
function
|
|
1179
|
+
function I(C = !0) {
|
|
1157
1180
|
const S = ++o.indentLevel;
|
|
1158
1181
|
C && E(S);
|
|
1159
1182
|
}
|
|
@@ -1167,21 +1190,21 @@ function ks(e, t) {
|
|
|
1167
1190
|
return {
|
|
1168
1191
|
context: i,
|
|
1169
1192
|
push: u,
|
|
1170
|
-
indent:
|
|
1193
|
+
indent: I,
|
|
1171
1194
|
deindent: b,
|
|
1172
1195
|
newline: N,
|
|
1173
1196
|
helper: (C) => `_${C}`,
|
|
1174
1197
|
needIndent: () => o.needIndent
|
|
1175
1198
|
};
|
|
1176
1199
|
}
|
|
1177
|
-
function
|
|
1200
|
+
function Ms(e, t) {
|
|
1178
1201
|
const { helper: n } = e;
|
|
1179
1202
|
e.push(`${n(
|
|
1180
1203
|
"linked"
|
|
1181
1204
|
/* HelperNameMap.LINKED */
|
|
1182
1205
|
)}(`), Re(e, t.key), t.modifier ? (e.push(", "), Re(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1183
1206
|
}
|
|
1184
|
-
function
|
|
1207
|
+
function Fs(e, t) {
|
|
1185
1208
|
const { helper: n, needIndent: r } = e;
|
|
1186
1209
|
e.push(`${n(
|
|
1187
1210
|
"normalize"
|
|
@@ -1192,7 +1215,7 @@ function Ms(e, t) {
|
|
|
1192
1215
|
e.push(", ");
|
|
1193
1216
|
e.deindent(r()), e.push("])");
|
|
1194
1217
|
}
|
|
1195
|
-
function
|
|
1218
|
+
function Us(e, t) {
|
|
1196
1219
|
const { helper: n, needIndent: r } = e;
|
|
1197
1220
|
if (t.cases.length > 1) {
|
|
1198
1221
|
e.push(`${n(
|
|
@@ -1205,23 +1228,23 @@ function Fs(e, t) {
|
|
|
1205
1228
|
e.deindent(r()), e.push("])");
|
|
1206
1229
|
}
|
|
1207
1230
|
}
|
|
1208
|
-
function
|
|
1231
|
+
function ws(e, t) {
|
|
1209
1232
|
t.body ? Re(e, t.body) : e.push("null");
|
|
1210
1233
|
}
|
|
1211
1234
|
function Re(e, t) {
|
|
1212
1235
|
const { helper: n } = e;
|
|
1213
1236
|
switch (t.type) {
|
|
1214
1237
|
case 0:
|
|
1215
|
-
|
|
1238
|
+
ws(e, t);
|
|
1216
1239
|
break;
|
|
1217
1240
|
case 1:
|
|
1218
|
-
|
|
1241
|
+
Us(e, t);
|
|
1219
1242
|
break;
|
|
1220
1243
|
case 2:
|
|
1221
|
-
|
|
1244
|
+
Fs(e, t);
|
|
1222
1245
|
break;
|
|
1223
1246
|
case 6:
|
|
1224
|
-
|
|
1247
|
+
Ms(e, t);
|
|
1225
1248
|
break;
|
|
1226
1249
|
case 8:
|
|
1227
1250
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1256,21 +1279,21 @@ function Re(e, t) {
|
|
|
1256
1279
|
default:
|
|
1257
1280
|
if (process.env.NODE_ENV !== "production")
|
|
1258
1281
|
throw Fe(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1259
|
-
domain:
|
|
1282
|
+
domain: ks,
|
|
1260
1283
|
args: [t.type]
|
|
1261
1284
|
});
|
|
1262
1285
|
}
|
|
1263
1286
|
}
|
|
1264
|
-
const
|
|
1265
|
-
const n =
|
|
1287
|
+
const Vs = (e, t = {}) => {
|
|
1288
|
+
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1266
1289
|
t.sourceMap;
|
|
1267
1290
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1268
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1291
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Rs(e, {
|
|
1269
1292
|
filename: r,
|
|
1270
1293
|
breakLineCode: s,
|
|
1271
1294
|
needIndent: a
|
|
1272
1295
|
});
|
|
1273
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${Qt(o.map((
|
|
1296
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${Qt(o.map((I) => `${I}: _${I}`), ", ")} } = ctx`), i.newline()), i.push("return "), Re(i, e), i.deindent(a), i.push("}"), delete e.helpers;
|
|
1274
1297
|
const { code: u, map: E } = i.context();
|
|
1275
1298
|
return {
|
|
1276
1299
|
ast: e,
|
|
@@ -1279,53 +1302,53 @@ const ws = (e, t = {}) => {
|
|
|
1279
1302
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1280
1303
|
};
|
|
1281
1304
|
};
|
|
1282
|
-
function
|
|
1283
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1284
|
-
return r ? (a &&
|
|
1305
|
+
function $s(e, t = {}) {
|
|
1306
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = As(n).parse(e);
|
|
1307
|
+
return r ? (a && Ps(i), s && Pe(i), { ast: i, code: "" }) : (ys(i, n), Vs(i, n));
|
|
1285
1308
|
}
|
|
1286
|
-
function
|
|
1287
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1309
|
+
function Ws() {
|
|
1310
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1288
1311
|
}
|
|
1289
1312
|
function se(e) {
|
|
1290
1313
|
return M(e) && zt(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1291
1314
|
}
|
|
1292
|
-
const
|
|
1293
|
-
function Ws(e) {
|
|
1294
|
-
return ge(e, qn);
|
|
1295
|
-
}
|
|
1296
|
-
const Zn = ["c", "cases"];
|
|
1315
|
+
const Zn = ["b", "body"];
|
|
1297
1316
|
function Gs(e) {
|
|
1298
|
-
return ge(e, Zn
|
|
1317
|
+
return ge(e, Zn);
|
|
1299
1318
|
}
|
|
1300
|
-
const zn = ["
|
|
1319
|
+
const zn = ["c", "cases"];
|
|
1301
1320
|
function xs(e) {
|
|
1302
|
-
return ge(e, zn);
|
|
1321
|
+
return ge(e, zn, []);
|
|
1303
1322
|
}
|
|
1304
|
-
const er = ["
|
|
1323
|
+
const er = ["s", "static"];
|
|
1305
1324
|
function Hs(e) {
|
|
1306
|
-
return ge(e, er
|
|
1325
|
+
return ge(e, er);
|
|
1326
|
+
}
|
|
1327
|
+
const tr = ["i", "items"];
|
|
1328
|
+
function Ys(e) {
|
|
1329
|
+
return ge(e, tr, []);
|
|
1307
1330
|
}
|
|
1308
|
-
const
|
|
1331
|
+
const nr = ["t", "type"];
|
|
1309
1332
|
function zt(e) {
|
|
1310
|
-
return ge(e,
|
|
1333
|
+
return ge(e, nr);
|
|
1311
1334
|
}
|
|
1312
|
-
const
|
|
1313
|
-
function
|
|
1314
|
-
const n = ge(e,
|
|
1335
|
+
const rr = ["v", "value"];
|
|
1336
|
+
function tt(e, t) {
|
|
1337
|
+
const n = ge(e, rr);
|
|
1315
1338
|
if (n != null)
|
|
1316
1339
|
return n;
|
|
1317
|
-
throw
|
|
1340
|
+
throw Ke(t);
|
|
1318
1341
|
}
|
|
1319
|
-
const
|
|
1320
|
-
function Ys(e) {
|
|
1321
|
-
return ge(e, rr);
|
|
1322
|
-
}
|
|
1323
|
-
const sr = ["k", "key"];
|
|
1342
|
+
const sr = ["m", "modifier"];
|
|
1324
1343
|
function Ks(e) {
|
|
1325
|
-
|
|
1344
|
+
return ge(e, sr);
|
|
1345
|
+
}
|
|
1346
|
+
const ar = ["k", "key"];
|
|
1347
|
+
function Bs(e) {
|
|
1348
|
+
const t = ge(e, ar);
|
|
1326
1349
|
if (t)
|
|
1327
1350
|
return t;
|
|
1328
|
-
throw
|
|
1351
|
+
throw Ke(
|
|
1329
1352
|
6
|
|
1330
1353
|
/* NodeTypes.Linked */
|
|
1331
1354
|
);
|
|
@@ -1338,31 +1361,31 @@ function ge(e, t, n) {
|
|
|
1338
1361
|
}
|
|
1339
1362
|
return n;
|
|
1340
1363
|
}
|
|
1341
|
-
const
|
|
1342
|
-
...qn,
|
|
1364
|
+
const or = [
|
|
1343
1365
|
...Zn,
|
|
1344
1366
|
...zn,
|
|
1345
1367
|
...er,
|
|
1368
|
+
...tr,
|
|
1369
|
+
...ar,
|
|
1346
1370
|
...sr,
|
|
1347
1371
|
...rr,
|
|
1348
|
-
...nr
|
|
1349
|
-
...tr
|
|
1372
|
+
...nr
|
|
1350
1373
|
];
|
|
1351
|
-
function
|
|
1374
|
+
function Ke(e) {
|
|
1352
1375
|
return new Error(`unhandled node type: ${e}`);
|
|
1353
1376
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return (n) =>
|
|
1377
|
+
function At(e) {
|
|
1378
|
+
return (n) => js(n, e);
|
|
1356
1379
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const n =
|
|
1380
|
+
function js(e, t) {
|
|
1381
|
+
const n = Gs(t);
|
|
1359
1382
|
if (n == null)
|
|
1360
|
-
throw
|
|
1383
|
+
throw Ke(
|
|
1361
1384
|
0
|
|
1362
1385
|
/* NodeTypes.Resource */
|
|
1363
1386
|
);
|
|
1364
1387
|
if (zt(n) === 1) {
|
|
1365
|
-
const a =
|
|
1388
|
+
const a = xs(n);
|
|
1366
1389
|
return e.plural(a.reduce((o, i) => [
|
|
1367
1390
|
...o,
|
|
1368
1391
|
Nn(e, i)
|
|
@@ -1371,28 +1394,28 @@ function Bs(e, t) {
|
|
|
1371
1394
|
return Nn(e, n);
|
|
1372
1395
|
}
|
|
1373
1396
|
function Nn(e, t) {
|
|
1374
|
-
const n =
|
|
1397
|
+
const n = Hs(t);
|
|
1375
1398
|
if (n != null)
|
|
1376
1399
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1377
1400
|
{
|
|
1378
|
-
const r =
|
|
1401
|
+
const r = Ys(t).reduce((s, a) => [...s, Rt(e, a)], []);
|
|
1379
1402
|
return e.normalize(r);
|
|
1380
1403
|
}
|
|
1381
1404
|
}
|
|
1382
|
-
function
|
|
1405
|
+
function Rt(e, t) {
|
|
1383
1406
|
const n = zt(t);
|
|
1384
1407
|
switch (n) {
|
|
1385
1408
|
case 3:
|
|
1386
|
-
return
|
|
1409
|
+
return tt(t, n);
|
|
1387
1410
|
case 9:
|
|
1388
|
-
return
|
|
1411
|
+
return tt(t, n);
|
|
1389
1412
|
case 4: {
|
|
1390
1413
|
const r = t;
|
|
1391
1414
|
if (oe(r, "k") && r.k)
|
|
1392
1415
|
return e.interpolate(e.named(r.k));
|
|
1393
1416
|
if (oe(r, "key") && r.key)
|
|
1394
1417
|
return e.interpolate(e.named(r.key));
|
|
1395
|
-
throw
|
|
1418
|
+
throw Ke(n);
|
|
1396
1419
|
}
|
|
1397
1420
|
case 5: {
|
|
1398
1421
|
const r = t;
|
|
@@ -1400,76 +1423,76 @@ function kt(e, t) {
|
|
|
1400
1423
|
return e.interpolate(e.list(r.i));
|
|
1401
1424
|
if (oe(r, "index") && j(r.index))
|
|
1402
1425
|
return e.interpolate(e.list(r.index));
|
|
1403
|
-
throw
|
|
1426
|
+
throw Ke(n);
|
|
1404
1427
|
}
|
|
1405
1428
|
case 6: {
|
|
1406
|
-
const r = t, s =
|
|
1407
|
-
return e.linked(
|
|
1429
|
+
const r = t, s = Ks(r), a = Bs(r);
|
|
1430
|
+
return e.linked(Rt(e, a), s ? Rt(e, s) : void 0, e.type);
|
|
1408
1431
|
}
|
|
1409
1432
|
case 7:
|
|
1410
|
-
return
|
|
1433
|
+
return tt(t, n);
|
|
1411
1434
|
case 8:
|
|
1412
|
-
return
|
|
1435
|
+
return tt(t, n);
|
|
1413
1436
|
default:
|
|
1414
1437
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1415
1438
|
}
|
|
1416
1439
|
}
|
|
1417
|
-
const
|
|
1418
|
-
function
|
|
1419
|
-
t &&
|
|
1440
|
+
const Xs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1441
|
+
function Js(e, t) {
|
|
1442
|
+
t && ps(e) && ue(lt(Xs, { source: e }));
|
|
1420
1443
|
}
|
|
1421
|
-
const
|
|
1422
|
-
let
|
|
1423
|
-
function
|
|
1444
|
+
const Qs = (e) => e;
|
|
1445
|
+
let nt = $();
|
|
1446
|
+
function qs(e, t = {}) {
|
|
1424
1447
|
let n = !1;
|
|
1425
|
-
const r = t.onError ||
|
|
1448
|
+
const r = t.onError || ds;
|
|
1426
1449
|
return t.onError = (s) => {
|
|
1427
1450
|
n = !0, r(s);
|
|
1428
|
-
}, {
|
|
1451
|
+
}, { ...$s(e, t), detectError: n };
|
|
1429
1452
|
}
|
|
1430
1453
|
// @__NO_SIDE_EFFECTS__
|
|
1431
|
-
function
|
|
1432
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1454
|
+
function Zs(e, t) {
|
|
1455
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1433
1456
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1434
|
-
process.env.NODE_ENV !== "production" &&
|
|
1435
|
-
const s = (t.onCacheKey ||
|
|
1457
|
+
process.env.NODE_ENV !== "production" && Js(e, n);
|
|
1458
|
+
const s = (t.onCacheKey || Qs)(e), a = nt[s];
|
|
1436
1459
|
if (a)
|
|
1437
1460
|
return a;
|
|
1438
|
-
const { ast: o, detectError: i } =
|
|
1461
|
+
const { ast: o, detectError: i } = qs(e, {
|
|
1439
1462
|
...t,
|
|
1440
1463
|
location: process.env.NODE_ENV !== "production",
|
|
1441
1464
|
jit: !0
|
|
1442
|
-
}), u =
|
|
1443
|
-
return i ? u :
|
|
1465
|
+
}), u = At(o);
|
|
1466
|
+
return i ? u : nt[s] = u;
|
|
1444
1467
|
} else {
|
|
1445
1468
|
if (process.env.NODE_ENV !== "production" && !se(e))
|
|
1446
1469
|
return ue(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1447
1470
|
const n = e.cacheKey;
|
|
1448
1471
|
if (n) {
|
|
1449
|
-
const r =
|
|
1450
|
-
return r || (
|
|
1472
|
+
const r = nt[n];
|
|
1473
|
+
return r || (nt[n] = At(e));
|
|
1451
1474
|
} else
|
|
1452
|
-
return
|
|
1475
|
+
return At(e);
|
|
1453
1476
|
}
|
|
1454
1477
|
}
|
|
1455
|
-
let
|
|
1456
|
-
function
|
|
1457
|
-
|
|
1478
|
+
let Be = null;
|
|
1479
|
+
function zs(e) {
|
|
1480
|
+
Be = e;
|
|
1458
1481
|
}
|
|
1459
|
-
function
|
|
1460
|
-
|
|
1482
|
+
function ea(e, t, n) {
|
|
1483
|
+
Be && Be.emit("i18n:init", {
|
|
1461
1484
|
timestamp: Date.now(),
|
|
1462
1485
|
i18n: e,
|
|
1463
1486
|
version: t,
|
|
1464
1487
|
meta: n
|
|
1465
1488
|
});
|
|
1466
1489
|
}
|
|
1467
|
-
const
|
|
1468
|
-
function
|
|
1469
|
-
return (t) =>
|
|
1490
|
+
const ta = /* @__PURE__ */ na("function:translate");
|
|
1491
|
+
function na(e) {
|
|
1492
|
+
return (t) => Be && Be.emit(e, t);
|
|
1470
1493
|
}
|
|
1471
1494
|
const q = {
|
|
1472
|
-
INVALID_ARGUMENT:
|
|
1495
|
+
INVALID_ARGUMENT: _s,
|
|
1473
1496
|
// 17
|
|
1474
1497
|
INVALID_DATE_ARGUMENT: 18,
|
|
1475
1498
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1477,11 +1500,11 @@ const q = {
|
|
|
1477
1500
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1478
1501
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1479
1502
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1480
|
-
},
|
|
1503
|
+
}, ra = 24;
|
|
1481
1504
|
function de(e) {
|
|
1482
|
-
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1505
|
+
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: sa } : void 0);
|
|
1483
1506
|
}
|
|
1484
|
-
const
|
|
1507
|
+
const sa = {
|
|
1485
1508
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1486
1509
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1487
1510
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1493,31 +1516,31 @@ const ra = {
|
|
|
1493
1516
|
function en(e, t) {
|
|
1494
1517
|
return t.locale != null ? Tn(t.locale) : Tn(e.locale);
|
|
1495
1518
|
}
|
|
1496
|
-
let
|
|
1519
|
+
let St;
|
|
1497
1520
|
function Tn(e) {
|
|
1498
|
-
if (
|
|
1521
|
+
if (L(e))
|
|
1499
1522
|
return e;
|
|
1500
1523
|
if (W(e)) {
|
|
1501
|
-
if (e.resolvedOnce &&
|
|
1502
|
-
return
|
|
1524
|
+
if (e.resolvedOnce && St != null)
|
|
1525
|
+
return St;
|
|
1503
1526
|
if (e.constructor.name === "Function") {
|
|
1504
1527
|
const t = e();
|
|
1505
|
-
if (
|
|
1528
|
+
if (is(t))
|
|
1506
1529
|
throw de(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1507
|
-
return
|
|
1530
|
+
return St = t;
|
|
1508
1531
|
} else
|
|
1509
1532
|
throw de(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1510
1533
|
} else
|
|
1511
1534
|
throw de(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1512
1535
|
}
|
|
1513
|
-
function
|
|
1536
|
+
function aa(e, t, n) {
|
|
1514
1537
|
return [.../* @__PURE__ */ new Set([
|
|
1515
1538
|
n,
|
|
1516
|
-
...H(t) ? t : M(t) ? Object.keys(t) :
|
|
1539
|
+
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
1517
1540
|
])];
|
|
1518
1541
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const r =
|
|
1542
|
+
function lr(e, t, n) {
|
|
1543
|
+
const r = L(n) ? n : je, s = e;
|
|
1521
1544
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1522
1545
|
let a = s.__localeChainCache.get(r);
|
|
1523
1546
|
if (!a) {
|
|
@@ -1526,7 +1549,7 @@ function or(e, t, n) {
|
|
|
1526
1549
|
for (; H(o); )
|
|
1527
1550
|
o = bn(a, o, t);
|
|
1528
1551
|
const i = H(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1529
|
-
o =
|
|
1552
|
+
o = L(i) ? [i] : i, H(o) && bn(a, o, !1), s.__localeChainCache.set(r, a);
|
|
1530
1553
|
}
|
|
1531
1554
|
return a;
|
|
1532
1555
|
}
|
|
@@ -1534,20 +1557,20 @@ function bn(e, t, n) {
|
|
|
1534
1557
|
let r = !0;
|
|
1535
1558
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1536
1559
|
const a = t[s];
|
|
1537
|
-
|
|
1560
|
+
L(a) && (r = oa(e, t[s], n));
|
|
1538
1561
|
}
|
|
1539
1562
|
return r;
|
|
1540
1563
|
}
|
|
1541
|
-
function
|
|
1564
|
+
function oa(e, t, n) {
|
|
1542
1565
|
let r;
|
|
1543
1566
|
const s = t.split("-");
|
|
1544
1567
|
do {
|
|
1545
1568
|
const a = s.join("-");
|
|
1546
|
-
r =
|
|
1569
|
+
r = la(e, a, n), s.splice(-1, 1);
|
|
1547
1570
|
} while (s.length && r === !0);
|
|
1548
1571
|
return r;
|
|
1549
1572
|
}
|
|
1550
|
-
function
|
|
1573
|
+
function la(e, t, n) {
|
|
1551
1574
|
let r = !1;
|
|
1552
1575
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1553
1576
|
r = t[t.length - 1] !== "!";
|
|
@@ -1717,15 +1740,15 @@ Ne[
|
|
|
1717
1740
|
/* Actions.APPEND */
|
|
1718
1741
|
]
|
|
1719
1742
|
};
|
|
1720
|
-
const
|
|
1721
|
-
function ia(e) {
|
|
1722
|
-
return la.test(e);
|
|
1723
|
-
}
|
|
1743
|
+
const ia = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1724
1744
|
function ca(e) {
|
|
1745
|
+
return ia.test(e);
|
|
1746
|
+
}
|
|
1747
|
+
function ua(e) {
|
|
1725
1748
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1726
1749
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1727
1750
|
}
|
|
1728
|
-
function
|
|
1751
|
+
function fa(e) {
|
|
1729
1752
|
if (e == null)
|
|
1730
1753
|
return "o";
|
|
1731
1754
|
switch (e.charCodeAt(0)) {
|
|
@@ -1762,13 +1785,13 @@ function ua(e) {
|
|
|
1762
1785
|
}
|
|
1763
1786
|
return "i";
|
|
1764
1787
|
}
|
|
1765
|
-
function
|
|
1788
|
+
function _a(e) {
|
|
1766
1789
|
const t = e.trim();
|
|
1767
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1790
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ca(t) ? ua(t) : "*" + t;
|
|
1768
1791
|
}
|
|
1769
|
-
function
|
|
1792
|
+
function ma(e) {
|
|
1770
1793
|
const t = [];
|
|
1771
|
-
let n = -1, r = 0, s = 0, a, o, i, u, E,
|
|
1794
|
+
let n = -1, r = 0, s = 0, a, o, i, u, E, I, b;
|
|
1772
1795
|
const N = [];
|
|
1773
1796
|
N[
|
|
1774
1797
|
0
|
|
@@ -1798,7 +1821,7 @@ function _a(e) {
|
|
|
1798
1821
|
/* Actions.APPEND */
|
|
1799
1822
|
]();
|
|
1800
1823
|
else {
|
|
1801
|
-
if (s = 0, o === void 0 || (o =
|
|
1824
|
+
if (s = 0, o === void 0 || (o = _a(o), o === !1))
|
|
1802
1825
|
return !1;
|
|
1803
1826
|
N[
|
|
1804
1827
|
1
|
|
@@ -1816,27 +1839,27 @@ function _a(e) {
|
|
|
1816
1839
|
}
|
|
1817
1840
|
for (; r !== null; )
|
|
1818
1841
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1819
|
-
if (u =
|
|
1842
|
+
if (u = fa(a), b = Ne[r], E = b[u] || b.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (I = N[E[1]], I && (i = a, I() === !1))))
|
|
1820
1843
|
return;
|
|
1821
1844
|
if (r === 7)
|
|
1822
1845
|
return t;
|
|
1823
1846
|
}
|
|
1824
1847
|
}
|
|
1825
1848
|
const hn = /* @__PURE__ */ new Map();
|
|
1826
|
-
function
|
|
1849
|
+
function da(e, t) {
|
|
1827
1850
|
return M(e) ? e[t] : null;
|
|
1828
1851
|
}
|
|
1829
|
-
function
|
|
1852
|
+
function Ea(e, t) {
|
|
1830
1853
|
if (!M(e))
|
|
1831
1854
|
return null;
|
|
1832
1855
|
let n = hn.get(t);
|
|
1833
|
-
if (n || (n =
|
|
1856
|
+
if (n || (n = ma(t), n && hn.set(t, n)), !n)
|
|
1834
1857
|
return null;
|
|
1835
1858
|
const r = n.length;
|
|
1836
1859
|
let s = e, a = 0;
|
|
1837
1860
|
for (; a < r; ) {
|
|
1838
1861
|
const o = n[a];
|
|
1839
|
-
if (
|
|
1862
|
+
if (or.includes(o) && se(s))
|
|
1840
1863
|
return null;
|
|
1841
1864
|
const i = s[o];
|
|
1842
1865
|
if (i === void 0 || W(s))
|
|
@@ -1853,7 +1876,7 @@ const Z = {
|
|
|
1853
1876
|
CANNOT_FORMAT_DATE: 5,
|
|
1854
1877
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1855
1878
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1856
|
-
},
|
|
1879
|
+
}, pa = 8, ga = {
|
|
1857
1880
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1858
1881
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1859
1882
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1863,20 +1886,16 @@ const Z = {
|
|
|
1863
1886
|
[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."
|
|
1864
1887
|
};
|
|
1865
1888
|
function ve(e, ...t) {
|
|
1866
|
-
return
|
|
1889
|
+
return lt(ga[e], ...t);
|
|
1867
1890
|
}
|
|
1868
|
-
const
|
|
1869
|
-
function
|
|
1891
|
+
const Na = "11.2.8", ct = -1, je = "en-US", st = "", In = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1892
|
+
function Ta() {
|
|
1870
1893
|
return {
|
|
1871
|
-
upper: (e, t) => t === "text" &&
|
|
1872
|
-
lower: (e, t) => t === "text" &&
|
|
1873
|
-
capitalize: (e, t) => t === "text" &&
|
|
1894
|
+
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1895
|
+
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1896
|
+
capitalize: (e, t) => t === "text" && L(e) ? In(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? In(e.children) : e
|
|
1874
1897
|
};
|
|
1875
1898
|
}
|
|
1876
|
-
let lr;
|
|
1877
|
-
function Ta(e) {
|
|
1878
|
-
lr = e;
|
|
1879
|
-
}
|
|
1880
1899
|
let ir;
|
|
1881
1900
|
function ba(e) {
|
|
1882
1901
|
ir = e;
|
|
@@ -1885,19 +1904,23 @@ let cr;
|
|
|
1885
1904
|
function ha(e) {
|
|
1886
1905
|
cr = e;
|
|
1887
1906
|
}
|
|
1888
|
-
let ur
|
|
1889
|
-
|
|
1907
|
+
let ur;
|
|
1908
|
+
function Ia(e) {
|
|
1890
1909
|
ur = e;
|
|
1891
|
-
}
|
|
1910
|
+
}
|
|
1892
1911
|
let fr = null;
|
|
1893
|
-
const
|
|
1912
|
+
const La = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1894
1913
|
fr = e;
|
|
1895
|
-
}, Oa = () => fr;
|
|
1914
|
+
}, Oa = /* @__NO_SIDE_EFFECTS__ */ () => fr;
|
|
1915
|
+
let _r = null;
|
|
1916
|
+
const Ln = (e) => {
|
|
1917
|
+
_r = e;
|
|
1918
|
+
}, va = () => _r;
|
|
1896
1919
|
let On = 0;
|
|
1897
|
-
function
|
|
1898
|
-
const t = W(e.onWarn) ? e.onWarn : ue, n =
|
|
1920
|
+
function Ca(e = {}) {
|
|
1921
|
+
const t = W(e.onWarn) ? e.onWarn : ue, n = L(e.version) ? e.version : Na, r = L(e.locale) || W(e.locale) ? e.locale : je, s = W(r) ? je : r, a = H(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : yt(s), i = R(e.datetimeFormats) ? e.datetimeFormats : yt(s), u = R(e.numberFormats) ? e.numberFormats : yt(s), E = J($(), e.modifiers, Ta()), I = e.pluralRules || $(), b = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || ke(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || ke(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, m = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, d = W(e.messageCompiler) ? e.messageCompiler : ir;
|
|
1899
1922
|
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Xt(ve(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1900
|
-
const O = W(e.messageResolver) ? e.messageResolver :
|
|
1923
|
+
const O = W(e.messageResolver) ? e.messageResolver : cr || da, v = W(e.localeFallbacker) ? e.localeFallbacker : ur || aa, 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 : {};
|
|
1901
1924
|
On++;
|
|
1902
1925
|
const Y = {
|
|
1903
1926
|
version: n,
|
|
@@ -1906,7 +1929,7 @@ function va(e = {}) {
|
|
|
1906
1929
|
fallbackLocale: a,
|
|
1907
1930
|
messages: o,
|
|
1908
1931
|
modifiers: E,
|
|
1909
|
-
pluralRules:
|
|
1932
|
+
pluralRules: I,
|
|
1910
1933
|
missing: b,
|
|
1911
1934
|
missingWarn: N,
|
|
1912
1935
|
fallbackWarn: A,
|
|
@@ -1923,13 +1946,13 @@ function va(e = {}) {
|
|
|
1923
1946
|
onWarn: t,
|
|
1924
1947
|
__meta: ae
|
|
1925
1948
|
};
|
|
1926
|
-
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__) &&
|
|
1949
|
+
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__) && ea(Y, n, ae), Y;
|
|
1927
1950
|
}
|
|
1928
|
-
const
|
|
1929
|
-
function
|
|
1951
|
+
const yt = (e) => ({ [e]: $() });
|
|
1952
|
+
function ut(e, t) {
|
|
1930
1953
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1931
1954
|
}
|
|
1932
|
-
function
|
|
1955
|
+
function mr(e, t) {
|
|
1933
1956
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1934
1957
|
}
|
|
1935
1958
|
function tn(e, t, n, r, s) {
|
|
@@ -1945,46 +1968,46 @@ function tn(e, t, n, r, s) {
|
|
|
1945
1968
|
}
|
|
1946
1969
|
if (a !== null) {
|
|
1947
1970
|
const i = a(e, n, t, s);
|
|
1948
|
-
return
|
|
1971
|
+
return L(i) ? i : t;
|
|
1949
1972
|
} else
|
|
1950
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1973
|
+
return process.env.NODE_ENV !== "production" && mr(r, t) && o(ve(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1951
1974
|
}
|
|
1952
1975
|
function Ge(e, t, n) {
|
|
1953
1976
|
const r = e;
|
|
1954
1977
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1955
1978
|
}
|
|
1956
|
-
function
|
|
1979
|
+
function dr(e, t) {
|
|
1957
1980
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1958
1981
|
}
|
|
1959
|
-
function
|
|
1982
|
+
function Aa(e, t) {
|
|
1960
1983
|
const n = t.indexOf(e);
|
|
1961
1984
|
if (n === -1)
|
|
1962
1985
|
return !1;
|
|
1963
1986
|
for (let r = n + 1; r < t.length; r++)
|
|
1964
|
-
if (
|
|
1987
|
+
if (dr(e, t[r]))
|
|
1965
1988
|
return !0;
|
|
1966
1989
|
return !1;
|
|
1967
1990
|
}
|
|
1968
|
-
const vn = typeof Intl < "u",
|
|
1991
|
+
const vn = typeof Intl < "u", Er = {
|
|
1969
1992
|
dateTimeFormat: vn && typeof Intl.DateTimeFormat < "u",
|
|
1970
1993
|
numberFormat: vn && typeof Intl.NumberFormat < "u"
|
|
1971
1994
|
};
|
|
1972
1995
|
function Cn(e, ...t) {
|
|
1973
1996
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1974
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1975
|
-
return a(ve(Z.CANNOT_FORMAT_DATE)),
|
|
1976
|
-
const [u, E,
|
|
1997
|
+
if (process.env.NODE_ENV !== "production" && !Er.dateTimeFormat)
|
|
1998
|
+
return a(ve(Z.CANNOT_FORMAT_DATE)), st;
|
|
1999
|
+
const [u, E, I, b] = Mt(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = en(e, I), S = o(
|
|
1977
2000
|
e,
|
|
1978
2001
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1979
2002
|
s,
|
|
1980
2003
|
C
|
|
1981
2004
|
);
|
|
1982
|
-
if (!
|
|
2005
|
+
if (!L(u) || u === "")
|
|
1983
2006
|
return new Intl.DateTimeFormat(C, b).format(E);
|
|
1984
2007
|
let f = {}, m, h = null, d = C, O = null;
|
|
1985
2008
|
const v = "datetime format";
|
|
1986
2009
|
for (let w = 0; w < S.length; w++) {
|
|
1987
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m &&
|
|
2010
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && ut(A, u) && a(ve(Z.FALLBACK_TO_DATE_FORMAT, {
|
|
1988
2011
|
key: u,
|
|
1989
2012
|
target: m
|
|
1990
2013
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2001,14 +2024,14 @@ function Cn(e, ...t) {
|
|
|
2001
2024
|
break;
|
|
2002
2025
|
tn(e, u, m, N, v), d = O;
|
|
2003
2026
|
}
|
|
2004
|
-
if (!R(h) || !
|
|
2005
|
-
return r ?
|
|
2027
|
+
if (!R(h) || !L(m))
|
|
2028
|
+
return r ? ct : u;
|
|
2006
2029
|
let p = `${m}__${u}`;
|
|
2007
|
-
|
|
2030
|
+
it(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2008
2031
|
let k = i.get(p);
|
|
2009
2032
|
return k || (k = new Intl.DateTimeFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(E) : k.format(E);
|
|
2010
2033
|
}
|
|
2011
|
-
const
|
|
2034
|
+
const pr = [
|
|
2012
2035
|
"localeMatcher",
|
|
2013
2036
|
"weekday",
|
|
2014
2037
|
"era",
|
|
@@ -2030,10 +2053,10 @@ const Er = [
|
|
|
2030
2053
|
"hourCycle",
|
|
2031
2054
|
"fractionalSecondDigits"
|
|
2032
2055
|
];
|
|
2033
|
-
function
|
|
2056
|
+
function Mt(...e) {
|
|
2034
2057
|
const [t, n, r, s] = e, a = $();
|
|
2035
2058
|
let o = $(), i;
|
|
2036
|
-
if (
|
|
2059
|
+
if (L(t)) {
|
|
2037
2060
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2038
2061
|
if (!u)
|
|
2039
2062
|
throw de(q.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -2044,7 +2067,7 @@ function Rt(...e) {
|
|
|
2044
2067
|
} catch {
|
|
2045
2068
|
throw de(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2046
2069
|
}
|
|
2047
|
-
} else if (
|
|
2070
|
+
} else if (ss(t)) {
|
|
2048
2071
|
if (isNaN(t.getTime()))
|
|
2049
2072
|
throw de(q.INVALID_DATE_ARGUMENT);
|
|
2050
2073
|
i = t;
|
|
@@ -2052,9 +2075,9 @@ function Rt(...e) {
|
|
|
2052
2075
|
i = t;
|
|
2053
2076
|
else
|
|
2054
2077
|
throw de(q.INVALID_ARGUMENT);
|
|
2055
|
-
return
|
|
2056
|
-
|
|
2057
|
-
}),
|
|
2078
|
+
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2079
|
+
pr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2080
|
+
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2058
2081
|
}
|
|
2059
2082
|
function An(e, t, n) {
|
|
2060
2083
|
const r = e;
|
|
@@ -2065,20 +2088,20 @@ function An(e, t, n) {
|
|
|
2065
2088
|
}
|
|
2066
2089
|
function Sn(e, ...t) {
|
|
2067
2090
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2068
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2069
|
-
return a(ve(Z.CANNOT_FORMAT_NUMBER)),
|
|
2070
|
-
const [u, E,
|
|
2091
|
+
if (process.env.NODE_ENV !== "production" && !Er.numberFormat)
|
|
2092
|
+
return a(ve(Z.CANNOT_FORMAT_NUMBER)), st;
|
|
2093
|
+
const [u, E, I, b] = Ft(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = en(e, I), S = o(
|
|
2071
2094
|
e,
|
|
2072
2095
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2073
2096
|
s,
|
|
2074
2097
|
C
|
|
2075
2098
|
);
|
|
2076
|
-
if (!
|
|
2099
|
+
if (!L(u) || u === "")
|
|
2077
2100
|
return new Intl.NumberFormat(C, b).format(E);
|
|
2078
2101
|
let f = {}, m, h = null, d = C, O = null;
|
|
2079
2102
|
const v = "number format";
|
|
2080
2103
|
for (let w = 0; w < S.length; w++) {
|
|
2081
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m &&
|
|
2104
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && ut(A, u) && a(ve(Z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2082
2105
|
key: u,
|
|
2083
2106
|
target: m
|
|
2084
2107
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2095,14 +2118,14 @@ function Sn(e, ...t) {
|
|
|
2095
2118
|
break;
|
|
2096
2119
|
tn(e, u, m, N, v), d = O;
|
|
2097
2120
|
}
|
|
2098
|
-
if (!R(h) || !
|
|
2099
|
-
return r ?
|
|
2121
|
+
if (!R(h) || !L(m))
|
|
2122
|
+
return r ? ct : u;
|
|
2100
2123
|
let p = `${m}__${u}`;
|
|
2101
|
-
|
|
2124
|
+
it(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2102
2125
|
let k = i.get(p);
|
|
2103
2126
|
return k || (k = new Intl.NumberFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(E) : k.format(E);
|
|
2104
2127
|
}
|
|
2105
|
-
const
|
|
2128
|
+
const gr = [
|
|
2106
2129
|
"localeMatcher",
|
|
2107
2130
|
"style",
|
|
2108
2131
|
"currency",
|
|
@@ -2124,15 +2147,15 @@ const pr = [
|
|
|
2124
2147
|
"roundingIncrement",
|
|
2125
2148
|
"trailingZeroDisplay"
|
|
2126
2149
|
];
|
|
2127
|
-
function
|
|
2150
|
+
function Ft(...e) {
|
|
2128
2151
|
const [t, n, r, s] = e, a = $();
|
|
2129
2152
|
let o = $();
|
|
2130
2153
|
if (!j(t))
|
|
2131
2154
|
throw de(q.INVALID_ARGUMENT);
|
|
2132
2155
|
const i = t;
|
|
2133
|
-
return
|
|
2134
|
-
|
|
2135
|
-
}),
|
|
2156
|
+
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2157
|
+
gr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2158
|
+
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2136
2159
|
}
|
|
2137
2160
|
function yn(e, t, n) {
|
|
2138
2161
|
const r = e;
|
|
@@ -2141,40 +2164,40 @@ function yn(e, t, n) {
|
|
|
2141
2164
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2142
2165
|
}
|
|
2143
2166
|
}
|
|
2144
|
-
const
|
|
2167
|
+
const Sa = (e) => e, ya = (e) => "", Pa = "text", Da = (e) => e.length === 0 ? "" : Qt(e), ka = cs;
|
|
2145
2168
|
function Pn(e, t) {
|
|
2146
2169
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2147
2170
|
}
|
|
2148
|
-
function
|
|
2171
|
+
function Ra(e) {
|
|
2149
2172
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2150
2173
|
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;
|
|
2151
2174
|
}
|
|
2152
|
-
function
|
|
2175
|
+
function Ma(e, t) {
|
|
2153
2176
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2154
2177
|
}
|
|
2155
|
-
function
|
|
2156
|
-
const t = e.locale, n =
|
|
2157
|
-
j(e.pluralIndex) &&
|
|
2178
|
+
function Fa(e = {}) {
|
|
2179
|
+
const t = e.locale, n = Ra(e), r = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Pn, s = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Pn : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
|
|
2180
|
+
j(e.pluralIndex) && Ma(n, u);
|
|
2158
2181
|
const E = (f) => u[f];
|
|
2159
|
-
function
|
|
2182
|
+
function I(f, m) {
|
|
2160
2183
|
const h = W(e.messages) ? e.messages(f, !!m) : M(e.messages) ? e.messages[f] : !1;
|
|
2161
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2184
|
+
return h || (e.parent ? e.parent.message(f) : ya);
|
|
2162
2185
|
}
|
|
2163
|
-
const b = (f) => e.modifiers ? e.modifiers[f] :
|
|
2186
|
+
const b = (f) => e.modifiers ? e.modifiers[f] : Sa, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Da, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : ka, D = R(e.processor) && L(e.processor.type) ? e.processor.type : Pa, S = {
|
|
2164
2187
|
list: i,
|
|
2165
2188
|
named: E,
|
|
2166
2189
|
plural: a,
|
|
2167
2190
|
linked: (f, ...m) => {
|
|
2168
2191
|
const [h, d] = m;
|
|
2169
2192
|
let O = "text", v = "";
|
|
2170
|
-
m.length === 1 ? M(h) ? (v = h.modifier || v, O = h.type || O) :
|
|
2171
|
-
const p =
|
|
2193
|
+
m.length === 1 ? M(h) ? (v = h.modifier || v, O = h.type || O) : L(h) && (v = h || v) : m.length === 2 && (L(h) && (v = h || v), L(d) && (O = d || O));
|
|
2194
|
+
const p = I(f, !0)(S), k = (
|
|
2172
2195
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2173
2196
|
O === "vnode" && H(p) && v ? p[0] : p
|
|
2174
2197
|
);
|
|
2175
2198
|
return v ? b(v)(k, O) : k;
|
|
2176
2199
|
},
|
|
2177
|
-
message:
|
|
2200
|
+
message: I,
|
|
2178
2201
|
type: D,
|
|
2179
2202
|
interpolate: A,
|
|
2180
2203
|
normalize: N,
|
|
@@ -2184,48 +2207,48 @@ function Ma(e = {}) {
|
|
|
2184
2207
|
}
|
|
2185
2208
|
const Dn = () => "", te = (e) => W(e);
|
|
2186
2209
|
function kn(e, ...t) {
|
|
2187
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, E] =
|
|
2188
|
-
N &&
|
|
2210
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, E] = Ut(...t), I = F(E.missingWarn) ? E.missingWarn : e.missingWarn, b = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = F(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, A = !!E.resolvedMessage, D = L(E.default) || F(E.default) ? F(E.default) ? a ? u : () => u : E.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = en(e, E);
|
|
2211
|
+
N && Ua(E);
|
|
2189
2212
|
let [f, m, h] = A ? [
|
|
2190
2213
|
u,
|
|
2191
2214
|
S,
|
|
2192
2215
|
i[S] || $()
|
|
2193
|
-
] :
|
|
2194
|
-
if (!A && !(
|
|
2195
|
-
return s ?
|
|
2196
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2216
|
+
] : Nr(e, u, S, o, b, I), d = f, O = u;
|
|
2217
|
+
if (!A && !(L(d) || se(d) || te(d)) && C && (d = D, O = d), !A && (!(L(d) || se(d) || te(d)) || !L(m)))
|
|
2218
|
+
return s ? ct : u;
|
|
2219
|
+
if (process.env.NODE_ENV !== "production" && L(d) && e.messageCompiler == null)
|
|
2197
2220
|
return ue(`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 '${u}'.`), u;
|
|
2198
2221
|
let v = !1;
|
|
2199
2222
|
const p = () => {
|
|
2200
2223
|
v = !0;
|
|
2201
|
-
}, k = te(d) ? d :
|
|
2224
|
+
}, k = te(d) ? d : Tr(e, u, m, d, O, p);
|
|
2202
2225
|
if (v)
|
|
2203
2226
|
return d;
|
|
2204
|
-
const w =
|
|
2227
|
+
const w = Wa(e, m, h, E), X = Fa(w), ae = wa(e, k, X);
|
|
2205
2228
|
let Y = r ? r(ae, u) : ae;
|
|
2206
|
-
if (N &&
|
|
2229
|
+
if (N && L(Y) && (Y = os(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2207
2230
|
const Ae = {
|
|
2208
2231
|
timestamp: Date.now(),
|
|
2209
|
-
key:
|
|
2232
|
+
key: L(u) ? u : te(d) ? d.key : "",
|
|
2210
2233
|
locale: m || (te(d) ? d.locale : ""),
|
|
2211
|
-
format:
|
|
2234
|
+
format: L(d) ? d : te(d) ? d.source : "",
|
|
2212
2235
|
message: Y
|
|
2213
2236
|
};
|
|
2214
|
-
Ae.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2237
|
+
Ae.meta = J({}, e.__meta, /* @__PURE__ */ Oa() || {}), ta(Ae);
|
|
2215
2238
|
}
|
|
2216
2239
|
return Y;
|
|
2217
2240
|
}
|
|
2218
|
-
function
|
|
2219
|
-
H(e.list) ? e.list = e.list.map((t) =>
|
|
2220
|
-
|
|
2241
|
+
function Ua(e) {
|
|
2242
|
+
H(e.list) ? e.list = e.list.map((t) => L(t) ? _n(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2243
|
+
L(e.named[t]) && (e.named[t] = _n(e.named[t]));
|
|
2221
2244
|
});
|
|
2222
2245
|
}
|
|
2223
|
-
function
|
|
2224
|
-
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: E } = e,
|
|
2246
|
+
function Nr(e, t, n, r, s, a) {
|
|
2247
|
+
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: E } = e, I = E(e, r, n);
|
|
2225
2248
|
let b = $(), N, A = null, D = n, C = null;
|
|
2226
2249
|
const S = "translate";
|
|
2227
|
-
for (let f = 0; f <
|
|
2228
|
-
if (N = C =
|
|
2250
|
+
for (let f = 0; f < I.length; f++) {
|
|
2251
|
+
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !dr(n, N) && ut(s, t) && i(ve(Z.FALLBACK_TO_TRANSLATE, {
|
|
2229
2252
|
key: t,
|
|
2230
2253
|
target: N
|
|
2231
2254
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2250,9 +2273,9 @@ function gr(e, t, n, r, s, a) {
|
|
|
2250
2273
|
groupId: `${S}:${t}`
|
|
2251
2274
|
}), h && d && ee && Oe && (ee(d), Oe("intlify message resolve", h, d));
|
|
2252
2275
|
}
|
|
2253
|
-
if (
|
|
2276
|
+
if (L(A) || se(A) || te(A))
|
|
2254
2277
|
break;
|
|
2255
|
-
if (!
|
|
2278
|
+
if (!Aa(N, I)) {
|
|
2256
2279
|
const O = tn(
|
|
2257
2280
|
e,
|
|
2258
2281
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2267,7 +2290,7 @@ function gr(e, t, n, r, s, a) {
|
|
|
2267
2290
|
}
|
|
2268
2291
|
return [A, N, b];
|
|
2269
2292
|
}
|
|
2270
|
-
function
|
|
2293
|
+
function Tr(e, t, n, r, s, a) {
|
|
2271
2294
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2272
2295
|
if (te(r)) {
|
|
2273
2296
|
const N = r;
|
|
@@ -2277,9 +2300,9 @@ function Nr(e, t, n, r, s, a) {
|
|
|
2277
2300
|
const N = (() => r);
|
|
2278
2301
|
return N.locale = n, N.key = t, N;
|
|
2279
2302
|
}
|
|
2280
|
-
let u = null, E,
|
|
2281
|
-
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), E = "intlify-message-compilation-start",
|
|
2282
|
-
const b = o(r,
|
|
2303
|
+
let u = null, E, I;
|
|
2304
|
+
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), E = "intlify-message-compilation-start", I = "intlify-message-compilation-end", ee && ee(E));
|
|
2305
|
+
const b = o(r, Va(e, n, s, r, i, a));
|
|
2283
2306
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2284
2307
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2285
2308
|
A && u && A.emit("message-compilation", {
|
|
@@ -2287,11 +2310,11 @@ function Nr(e, t, n, r, s, a) {
|
|
|
2287
2310
|
message: r,
|
|
2288
2311
|
time: N - u,
|
|
2289
2312
|
groupId: `translate:${t}`
|
|
2290
|
-
}), E &&
|
|
2313
|
+
}), E && I && ee && Oe && (ee(I), Oe("intlify message compilation", E, I));
|
|
2291
2314
|
}
|
|
2292
2315
|
return b.locale = n, b.key = t, b.source = r, b;
|
|
2293
2316
|
}
|
|
2294
|
-
function
|
|
2317
|
+
function wa(e, t, n) {
|
|
2295
2318
|
let r = null, s, a;
|
|
2296
2319
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2297
2320
|
const o = t(n);
|
|
@@ -2306,22 +2329,22 @@ function Ua(e, t, n) {
|
|
|
2306
2329
|
}
|
|
2307
2330
|
return o;
|
|
2308
2331
|
}
|
|
2309
|
-
function
|
|
2332
|
+
function Ut(...e) {
|
|
2310
2333
|
const [t, n, r] = e, s = $();
|
|
2311
|
-
if (!
|
|
2334
|
+
if (!L(t) && !j(t) && !te(t) && !se(t))
|
|
2312
2335
|
throw de(q.INVALID_ARGUMENT);
|
|
2313
2336
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2314
|
-
return j(n) ? s.plural = n :
|
|
2337
|
+
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !it(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];
|
|
2315
2338
|
}
|
|
2316
|
-
function
|
|
2339
|
+
function Va(e, t, n, r, s, a) {
|
|
2317
2340
|
return {
|
|
2318
2341
|
locale: t,
|
|
2319
2342
|
key: n,
|
|
2320
2343
|
warnHtmlMessage: s,
|
|
2321
2344
|
onError: (o) => {
|
|
2322
2345
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2323
|
-
const i =
|
|
2324
|
-
|
|
2346
|
+
const i = $a(r), u = `Message compilation error: ${o.message}`, E = o.location && i && us(i, o.location.start.offset, o.location.end.offset), I = e.__v_emitter;
|
|
2347
|
+
I && i && I.emit("compile-error", {
|
|
2325
2348
|
message: i,
|
|
2326
2349
|
error: o.message,
|
|
2327
2350
|
start: o.location && o.location.start.offset,
|
|
@@ -2332,25 +2355,25 @@ ${E}` : u);
|
|
|
2332
2355
|
} else
|
|
2333
2356
|
throw o;
|
|
2334
2357
|
},
|
|
2335
|
-
onCacheKey: (o) =>
|
|
2358
|
+
onCacheKey: (o) => ns(t, n, o)
|
|
2336
2359
|
};
|
|
2337
2360
|
}
|
|
2338
|
-
function
|
|
2339
|
-
if (
|
|
2361
|
+
function $a(e) {
|
|
2362
|
+
if (L(e))
|
|
2340
2363
|
return e;
|
|
2341
2364
|
if (e.loc && e.loc.source)
|
|
2342
2365
|
return e.loc.source;
|
|
2343
2366
|
}
|
|
2344
|
-
function
|
|
2345
|
-
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: E, fallbackContext:
|
|
2367
|
+
function Wa(e, t, n, r) {
|
|
2368
|
+
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: E, fallbackContext: I } = e, N = {
|
|
2346
2369
|
locale: t,
|
|
2347
2370
|
modifiers: s,
|
|
2348
2371
|
pluralRules: a,
|
|
2349
2372
|
messages: (A, D) => {
|
|
2350
2373
|
let C = o(n, A);
|
|
2351
|
-
if (C == null && (
|
|
2352
|
-
const [, , S] =
|
|
2353
|
-
|
|
2374
|
+
if (C == null && (I || D)) {
|
|
2375
|
+
const [, , S] = Nr(
|
|
2376
|
+
I || e,
|
|
2354
2377
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2355
2378
|
A,
|
|
2356
2379
|
t,
|
|
@@ -2360,9 +2383,9 @@ function $a(e, t, n, r) {
|
|
|
2360
2383
|
);
|
|
2361
2384
|
C = o(S, A);
|
|
2362
2385
|
}
|
|
2363
|
-
if (
|
|
2386
|
+
if (L(C) || se(C)) {
|
|
2364
2387
|
let S = !1;
|
|
2365
|
-
const m =
|
|
2388
|
+
const m = Tr(e, A, t, C, A, () => {
|
|
2366
2389
|
S = !0;
|
|
2367
2390
|
});
|
|
2368
2391
|
return S ? Dn : m;
|
|
@@ -2371,23 +2394,23 @@ function $a(e, t, n, r) {
|
|
|
2371
2394
|
};
|
|
2372
2395
|
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;
|
|
2373
2396
|
}
|
|
2374
|
-
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2397
|
+
Ws();
|
|
2398
|
+
function Ga() {
|
|
2399
|
+
return br().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2377
2400
|
}
|
|
2378
|
-
function
|
|
2401
|
+
function br() {
|
|
2379
2402
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2380
2403
|
}
|
|
2381
|
-
const
|
|
2382
|
-
let ye,
|
|
2383
|
-
function
|
|
2404
|
+
const xa = typeof Proxy == "function", Ha = "devtools-plugin:setup", Ya = "plugin:settings:set";
|
|
2405
|
+
let ye, wt;
|
|
2406
|
+
function Ka() {
|
|
2384
2407
|
var e;
|
|
2385
|
-
return ye !== void 0 || (typeof window < "u" && window.performance ? (ye = !0,
|
|
2408
|
+
return ye !== void 0 || (typeof window < "u" && window.performance ? (ye = !0, wt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ye = !0, wt = globalThis.perf_hooks.performance) : ye = !1), ye;
|
|
2386
2409
|
}
|
|
2387
|
-
function
|
|
2388
|
-
return
|
|
2410
|
+
function Ba() {
|
|
2411
|
+
return Ka() ? wt.now() : Date.now();
|
|
2389
2412
|
}
|
|
2390
|
-
class
|
|
2413
|
+
class ja {
|
|
2391
2414
|
constructor(t, n) {
|
|
2392
2415
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2393
2416
|
const r = {};
|
|
@@ -2415,9 +2438,9 @@ class Ba {
|
|
|
2415
2438
|
a = o;
|
|
2416
2439
|
},
|
|
2417
2440
|
now() {
|
|
2418
|
-
return
|
|
2441
|
+
return Ba();
|
|
2419
2442
|
}
|
|
2420
|
-
}, n && n.on(
|
|
2443
|
+
}, n && n.on(Ya, (o, i) => {
|
|
2421
2444
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2422
2445
|
}), this.proxiedOn = new Proxy({}, {
|
|
2423
2446
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2449,12 +2472,12 @@ class Ba {
|
|
|
2449
2472
|
n.resolve(await this.target[n.method](...n.args));
|
|
2450
2473
|
}
|
|
2451
2474
|
}
|
|
2452
|
-
function
|
|
2453
|
-
const n = e, r =
|
|
2475
|
+
function Xa(e, t) {
|
|
2476
|
+
const n = e, r = br(), s = Ga(), a = xa && n.enableEarlyProxy;
|
|
2454
2477
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2455
|
-
s.emit(
|
|
2478
|
+
s.emit(Ha, e, t);
|
|
2456
2479
|
else {
|
|
2457
|
-
const o = a ? new
|
|
2480
|
+
const o = a ? new ja(n, s) : null;
|
|
2458
2481
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2459
2482
|
pluginDescriptor: n,
|
|
2460
2483
|
setupFn: t,
|
|
@@ -2462,13 +2485,13 @@ function ja(e, t) {
|
|
|
2462
2485
|
}), o && t(o.proxiedTarget);
|
|
2463
2486
|
}
|
|
2464
2487
|
}
|
|
2465
|
-
const
|
|
2466
|
-
function
|
|
2467
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2488
|
+
const Ja = "11.2.8";
|
|
2489
|
+
function Qa() {
|
|
2490
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Le().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Le().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2468
2491
|
}
|
|
2469
2492
|
const G = {
|
|
2470
2493
|
// composer module errors
|
|
2471
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2494
|
+
UNEXPECTED_RETURN_TYPE: ra,
|
|
2472
2495
|
// 24
|
|
2473
2496
|
// legacy module errors
|
|
2474
2497
|
INVALID_ARGUMENT: 25,
|
|
@@ -2489,9 +2512,9 @@ const G = {
|
|
|
2489
2512
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2490
2513
|
};
|
|
2491
2514
|
function z(e, ...t) {
|
|
2492
|
-
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2515
|
+
return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: qa, args: t } : void 0);
|
|
2493
2516
|
}
|
|
2494
|
-
const
|
|
2517
|
+
const qa = {
|
|
2495
2518
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2496
2519
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2497
2520
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2503,8 +2526,8 @@ const Qa = {
|
|
|
2503
2526
|
[G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2504
2527
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2505
2528
|
[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"
|
|
2506
|
-
},
|
|
2507
|
-
FALLBACK_TO_ROOT:
|
|
2529
|
+
}, Vt = /* @__PURE__ */ fe("__translateVNode"), $t = /* @__PURE__ */ fe("__datetimeParts"), Wt = /* @__PURE__ */ fe("__numberParts"), Ce = /* @__PURE__ */ fe("__enableEmitter"), Xe = /* @__PURE__ */ fe("__disableEmitter"), hr = fe("__setPluralRules"), Ir = /* @__PURE__ */ fe("__injectWithOption"), Gt = /* @__PURE__ */ fe("__dispose"), ne = {
|
|
2530
|
+
FALLBACK_TO_ROOT: pa,
|
|
2508
2531
|
// 8
|
|
2509
2532
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2510
2533
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2518,7 +2541,7 @@ const Qa = {
|
|
|
2518
2541
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2519
2542
|
// duplicate `useI18n` calling
|
|
2520
2543
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2521
|
-
},
|
|
2544
|
+
}, Za = {
|
|
2522
2545
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2523
2546
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2524
2547
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2534,15 +2557,15 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2534
2557
|
[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."
|
|
2535
2558
|
};
|
|
2536
2559
|
function Me(e, ...t) {
|
|
2537
|
-
return
|
|
2560
|
+
return lt(Za[e], ...t);
|
|
2538
2561
|
}
|
|
2539
|
-
function
|
|
2562
|
+
function Je(e) {
|
|
2540
2563
|
if (!M(e) || se(e))
|
|
2541
2564
|
return e;
|
|
2542
2565
|
for (const t in e)
|
|
2543
2566
|
if (oe(e, t))
|
|
2544
2567
|
if (!t.includes("."))
|
|
2545
|
-
M(e[t]) &&
|
|
2568
|
+
M(e[t]) && Je(e[t]);
|
|
2546
2569
|
else {
|
|
2547
2570
|
const n = t.split("."), r = n.length - 1;
|
|
2548
2571
|
let s = e, a = !1;
|
|
@@ -2557,9 +2580,9 @@ function Xe(e) {
|
|
|
2557
2580
|
}
|
|
2558
2581
|
s = s[n[o]];
|
|
2559
2582
|
}
|
|
2560
|
-
if (a || (se(s) ?
|
|
2583
|
+
if (a || (se(s) ? or.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !se(s)) {
|
|
2561
2584
|
const o = s[n[r]];
|
|
2562
|
-
M(o) &&
|
|
2585
|
+
M(o) && Je(o);
|
|
2563
2586
|
}
|
|
2564
2587
|
}
|
|
2565
2588
|
return e;
|
|
@@ -2569,18 +2592,18 @@ function nn(e, t) {
|
|
|
2569
2592
|
if (H(r) && r.forEach((i) => {
|
|
2570
2593
|
if ("locale" in i && "resource" in i) {
|
|
2571
2594
|
const { locale: u, resource: E } = i;
|
|
2572
|
-
u ? (o[u] = o[u] || $(),
|
|
2595
|
+
u ? (o[u] = o[u] || $(), rt(E, o[u])) : rt(E, o);
|
|
2573
2596
|
} else
|
|
2574
|
-
|
|
2597
|
+
L(i) && rt(JSON.parse(i), o);
|
|
2575
2598
|
}), s == null && a)
|
|
2576
2599
|
for (const i in o)
|
|
2577
|
-
oe(o, i) &&
|
|
2600
|
+
oe(o, i) && Je(o[i]);
|
|
2578
2601
|
return o;
|
|
2579
2602
|
}
|
|
2580
2603
|
function Lr(e) {
|
|
2581
2604
|
return e.type;
|
|
2582
2605
|
}
|
|
2583
|
-
function
|
|
2606
|
+
function Or(e, t, n) {
|
|
2584
2607
|
let r = M(t.messages) ? t.messages : $();
|
|
2585
2608
|
"__i18nGlobal" in n && (r = nn(e.locale.value, {
|
|
2586
2609
|
messages: r,
|
|
@@ -2606,39 +2629,39 @@ function Ir(e, t, n) {
|
|
|
2606
2629
|
}
|
|
2607
2630
|
}
|
|
2608
2631
|
function Rn(e) {
|
|
2609
|
-
return
|
|
2632
|
+
return Jn($r, null, e, 0);
|
|
2610
2633
|
}
|
|
2611
2634
|
function De() {
|
|
2612
2635
|
const e = "currentInstance";
|
|
2613
|
-
return e in
|
|
2636
|
+
return e in Ct ? Ct[e] : Ct.getCurrentInstance();
|
|
2614
2637
|
}
|
|
2615
|
-
const Mn = "__INTLIFY_META__", Fn = () => [],
|
|
2638
|
+
const Mn = "__INTLIFY_META__", Fn = () => [], za = () => !1;
|
|
2616
2639
|
let Un = 0;
|
|
2617
2640
|
function wn(e) {
|
|
2618
2641
|
return ((t, n, r, s) => e(n, r, De() || void 0, s));
|
|
2619
2642
|
}
|
|
2620
|
-
const
|
|
2643
|
+
const eo = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2621
2644
|
const e = De();
|
|
2622
2645
|
let t = null;
|
|
2623
2646
|
return e && (t = Lr(e)[Mn]) ? { [Mn]: t } : null;
|
|
2624
2647
|
};
|
|
2625
2648
|
function rn(e = {}) {
|
|
2626
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ?
|
|
2649
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ? Xn : Ur;
|
|
2627
2650
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2628
2651
|
const i = a(
|
|
2629
2652
|
// prettier-ignore
|
|
2630
|
-
t && o ? t.locale.value :
|
|
2653
|
+
t && o ? t.locale.value : L(e.locale) ? e.locale : je
|
|
2631
2654
|
), u = a(
|
|
2632
2655
|
// prettier-ignore
|
|
2633
|
-
t && o ? t.fallbackLocale.value :
|
|
2634
|
-
), E = a(nn(i.value, e)),
|
|
2656
|
+
t && o ? t.fallbackLocale.value : L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2657
|
+
), E = a(nn(i.value, e)), I = a(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), b = a(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2635
2658
|
let N = t ? t.missingWarn : F(e.missingWarn) || ke(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || ke(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ? wn(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
2636
2659
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2637
2660
|
let v = e.pluralRules || t && t.pluralRules, p;
|
|
2638
2661
|
p = (() => {
|
|
2639
|
-
r &&
|
|
2662
|
+
r && Ln(null);
|
|
2640
2663
|
const _ = {
|
|
2641
|
-
version:
|
|
2664
|
+
version: Ja,
|
|
2642
2665
|
locale: i.value,
|
|
2643
2666
|
fallbackLocale: u.value,
|
|
2644
2667
|
messages: E.value,
|
|
@@ -2656,16 +2679,16 @@ function rn(e = {}) {
|
|
|
2656
2679
|
messageCompiler: e.messageCompiler,
|
|
2657
2680
|
__meta: { framework: "vue" }
|
|
2658
2681
|
};
|
|
2659
|
-
_.datetimeFormats =
|
|
2660
|
-
const T =
|
|
2661
|
-
return r &&
|
|
2682
|
+
_.datetimeFormats = I.value, _.numberFormats = b.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);
|
|
2683
|
+
const T = Ca(_);
|
|
2684
|
+
return r && Ln(T), T;
|
|
2662
2685
|
})(), Ge(p, i.value, u.value);
|
|
2663
2686
|
function w() {
|
|
2664
2687
|
return [
|
|
2665
2688
|
i.value,
|
|
2666
2689
|
u.value,
|
|
2667
2690
|
E.value,
|
|
2668
|
-
|
|
2691
|
+
I.value,
|
|
2669
2692
|
b.value
|
|
2670
2693
|
];
|
|
2671
2694
|
}
|
|
@@ -2679,34 +2702,34 @@ function rn(e = {}) {
|
|
|
2679
2702
|
set: (_) => {
|
|
2680
2703
|
p.fallbackLocale = _, u.value = _, Ge(p, i.value, _);
|
|
2681
2704
|
}
|
|
2682
|
-
}), Y = We(() => E.value), Ae = /* @__PURE__ */ We(() =>
|
|
2683
|
-
function
|
|
2705
|
+
}), Y = We(() => E.value), Ae = /* @__PURE__ */ We(() => I.value), ft = /* @__PURE__ */ We(() => b.value);
|
|
2706
|
+
function _t() {
|
|
2684
2707
|
return W(m) ? m : null;
|
|
2685
2708
|
}
|
|
2686
|
-
function
|
|
2709
|
+
function mt(_) {
|
|
2687
2710
|
m = _, p.postTranslation = _;
|
|
2688
2711
|
}
|
|
2689
|
-
function
|
|
2712
|
+
function dt() {
|
|
2690
2713
|
return S;
|
|
2691
2714
|
}
|
|
2692
|
-
function
|
|
2715
|
+
function Et(_) {
|
|
2693
2716
|
_ !== null && (f = wn(_)), S = _, p.missing = f;
|
|
2694
2717
|
}
|
|
2695
|
-
function
|
|
2718
|
+
function pt(_, T) {
|
|
2696
2719
|
return _ !== "translate" || !T.resolvedMessage;
|
|
2697
2720
|
}
|
|
2698
|
-
const _e = (_, T, V, B, be,
|
|
2721
|
+
const _e = (_, T, V, B, be, ze) => {
|
|
2699
2722
|
w();
|
|
2700
2723
|
let Se;
|
|
2701
2724
|
try {
|
|
2702
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2725
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? va() : void 0), Se = _(p);
|
|
2703
2726
|
} finally {
|
|
2704
2727
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2705
2728
|
}
|
|
2706
2729
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2707
|
-
j(Se) && Se ===
|
|
2708
|
-
const [he,
|
|
2709
|
-
if (process.env.NODE_ENV !== "production" && t &&
|
|
2730
|
+
j(Se) && Se === ct || V === "translate exists" && !Se) {
|
|
2731
|
+
const [he, Pr] = T();
|
|
2732
|
+
if (process.env.NODE_ENV !== "production" && t && L(he) && pt(V, Pr) && (D && (ut(A, he) || mr(N, he)) && ue(Me(ne.FALLBACK_TO_ROOT, {
|
|
2710
2733
|
key: he,
|
|
2711
2734
|
type: V
|
|
2712
2735
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2720,70 +2743,70 @@ function rn(e = {}) {
|
|
|
2720
2743
|
}
|
|
2721
2744
|
return t && D ? B(t) : be(he);
|
|
2722
2745
|
} else {
|
|
2723
|
-
if (
|
|
2746
|
+
if (ze(Se))
|
|
2724
2747
|
return Se;
|
|
2725
2748
|
throw z(G.UNEXPECTED_RETURN_TYPE);
|
|
2726
2749
|
}
|
|
2727
2750
|
};
|
|
2728
2751
|
function Ue(..._) {
|
|
2729
|
-
return _e((T) => Reflect.apply(kn, null, [T, ..._]), () =>
|
|
2752
|
+
return _e((T) => Reflect.apply(kn, null, [T, ..._]), () => Ut(..._), "translate", (T) => Reflect.apply(T.t, T, [..._]), (T) => T, (T) => L(T));
|
|
2730
2753
|
}
|
|
2731
|
-
function
|
|
2754
|
+
function gt(..._) {
|
|
2732
2755
|
const [T, V, B] = _;
|
|
2733
2756
|
if (B && !M(B))
|
|
2734
2757
|
throw z(G.INVALID_ARGUMENT);
|
|
2735
2758
|
return Ue(T, V, J({ resolvedMessage: !0 }, B || {}));
|
|
2736
2759
|
}
|
|
2737
|
-
function gt(..._) {
|
|
2738
|
-
return _e((T) => Reflect.apply(Cn, null, [T, ..._]), () => Rt(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => rt, (T) => I(T) || H(T));
|
|
2739
|
-
}
|
|
2740
2760
|
function Nt(..._) {
|
|
2741
|
-
return _e((T) => Reflect.apply(
|
|
2761
|
+
return _e((T) => Reflect.apply(Cn, null, [T, ..._]), () => Mt(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2762
|
+
}
|
|
2763
|
+
function Tt(..._) {
|
|
2764
|
+
return _e((T) => Reflect.apply(Sn, null, [T, ..._]), () => Ft(..._), "number format", (T) => Reflect.apply(T.n, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2742
2765
|
}
|
|
2743
|
-
function
|
|
2744
|
-
return _.map((T) =>
|
|
2766
|
+
function bt(_) {
|
|
2767
|
+
return _.map((T) => L(T) || j(T) || F(T) ? Rn(String(T)) : T);
|
|
2745
2768
|
}
|
|
2746
|
-
const
|
|
2747
|
-
normalize:
|
|
2769
|
+
const ht = {
|
|
2770
|
+
normalize: bt,
|
|
2748
2771
|
interpolate: (_) => _,
|
|
2749
2772
|
type: "vnode"
|
|
2750
2773
|
};
|
|
2751
|
-
function
|
|
2774
|
+
function qe(..._) {
|
|
2752
2775
|
return _e((T) => {
|
|
2753
2776
|
let V;
|
|
2754
2777
|
const B = T;
|
|
2755
2778
|
try {
|
|
2756
|
-
B.processor =
|
|
2779
|
+
B.processor = ht, V = Reflect.apply(kn, null, [B, ..._]);
|
|
2757
2780
|
} finally {
|
|
2758
2781
|
B.processor = null;
|
|
2759
2782
|
}
|
|
2760
2783
|
return V;
|
|
2761
|
-
}, () =>
|
|
2784
|
+
}, () => Ut(..._), "translate", (T) => T[Vt](..._), (T) => [Rn(T)], (T) => H(T));
|
|
2762
2785
|
}
|
|
2763
|
-
function
|
|
2764
|
-
return _e((T) => Reflect.apply(Sn, null, [T, ..._]), () =>
|
|
2786
|
+
function It(..._) {
|
|
2787
|
+
return _e((T) => Reflect.apply(Sn, null, [T, ..._]), () => Ft(..._), "number format", (T) => T[Wt](..._), Fn, (T) => L(T) || H(T));
|
|
2765
2788
|
}
|
|
2766
|
-
function
|
|
2767
|
-
return _e((T) => Reflect.apply(Cn, null, [T, ..._]), () =>
|
|
2789
|
+
function Ze(..._) {
|
|
2790
|
+
return _e((T) => Reflect.apply(Cn, null, [T, ..._]), () => Mt(..._), "datetime format", (T) => T[$t](..._), Fn, (T) => L(T) || H(T));
|
|
2768
2791
|
}
|
|
2769
2792
|
function Lt(_) {
|
|
2770
2793
|
v = _, p.pluralRules = v;
|
|
2771
2794
|
}
|
|
2772
|
-
function
|
|
2795
|
+
function Ot(_, T) {
|
|
2773
2796
|
return _e(() => {
|
|
2774
2797
|
if (!_)
|
|
2775
2798
|
return !1;
|
|
2776
|
-
const V =
|
|
2777
|
-
return se(be) || te(be) ||
|
|
2778
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]),
|
|
2799
|
+
const V = L(T) ? T : i.value, B = Te(V), be = p.messageResolver(B, _);
|
|
2800
|
+
return se(be) || te(be) || L(be);
|
|
2801
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]), za, (V) => F(V));
|
|
2779
2802
|
}
|
|
2780
2803
|
function we(_) {
|
|
2781
2804
|
let T = null;
|
|
2782
|
-
const V =
|
|
2805
|
+
const V = lr(p, u.value, i.value);
|
|
2783
2806
|
for (let B = 0; B < V.length; B++) {
|
|
2784
|
-
const be = E.value[V[B]] || {},
|
|
2785
|
-
if (
|
|
2786
|
-
T =
|
|
2807
|
+
const be = E.value[V[B]] || {}, ze = p.messageResolver(be, _);
|
|
2808
|
+
if (ze != null) {
|
|
2809
|
+
T = ze;
|
|
2787
2810
|
break;
|
|
2788
2811
|
}
|
|
2789
2812
|
}
|
|
@@ -2800,27 +2823,27 @@ function rn(e = {}) {
|
|
|
2800
2823
|
if (s) {
|
|
2801
2824
|
const V = { [_]: T };
|
|
2802
2825
|
for (const B in V)
|
|
2803
|
-
oe(V, B) &&
|
|
2826
|
+
oe(V, B) && Je(V[B]);
|
|
2804
2827
|
T = V[_];
|
|
2805
2828
|
}
|
|
2806
2829
|
E.value[_] = T, p.messages = E.value;
|
|
2807
2830
|
}
|
|
2808
|
-
function
|
|
2831
|
+
function vt(_, T) {
|
|
2809
2832
|
E.value[_] = E.value[_] || {};
|
|
2810
2833
|
const V = { [_]: T };
|
|
2811
2834
|
if (s)
|
|
2812
2835
|
for (const B in V)
|
|
2813
|
-
oe(V, B) &&
|
|
2814
|
-
T = V[_],
|
|
2836
|
+
oe(V, B) && Je(V[B]);
|
|
2837
|
+
T = V[_], rt(T, E.value[_]), p.messages = E.value;
|
|
2815
2838
|
}
|
|
2816
2839
|
function l(_) {
|
|
2817
|
-
return
|
|
2840
|
+
return I.value[_] || {};
|
|
2818
2841
|
}
|
|
2819
2842
|
function c(_, T) {
|
|
2820
|
-
|
|
2843
|
+
I.value[_] = T, p.datetimeFormats = I.value, An(p, _, T);
|
|
2821
2844
|
}
|
|
2822
2845
|
function g(_, T) {
|
|
2823
|
-
|
|
2846
|
+
I.value[_] = J(I.value[_] || {}, T), p.datetimeFormats = I.value, An(p, _, T);
|
|
2824
2847
|
}
|
|
2825
2848
|
function y(_) {
|
|
2826
2849
|
return b.value[_] || {};
|
|
@@ -2831,9 +2854,9 @@ function rn(e = {}) {
|
|
|
2831
2854
|
function K(_, T) {
|
|
2832
2855
|
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value, yn(p, _, T);
|
|
2833
2856
|
}
|
|
2834
|
-
Un++, t && le && (
|
|
2857
|
+
Un++, t && le && (Dt(t.locale, (_) => {
|
|
2835
2858
|
o && (i.value = _, p.locale = _, Ge(p, i.value, u.value));
|
|
2836
|
-
}),
|
|
2859
|
+
}), Dt(t.fallbackLocale, (_) => {
|
|
2837
2860
|
o && (u.value = _, p.fallbackLocale = _, Ge(p, i.value, u.value));
|
|
2838
2861
|
}));
|
|
2839
2862
|
const U = {
|
|
@@ -2898,73 +2921,73 @@ function rn(e = {}) {
|
|
|
2898
2921
|
t: Ue,
|
|
2899
2922
|
getLocaleMessage: Te,
|
|
2900
2923
|
setLocaleMessage: $e,
|
|
2901
|
-
mergeLocaleMessage:
|
|
2902
|
-
getPostTranslationHandler:
|
|
2903
|
-
setPostTranslationHandler:
|
|
2904
|
-
getMissingHandler:
|
|
2905
|
-
setMissingHandler:
|
|
2906
|
-
[
|
|
2924
|
+
mergeLocaleMessage: vt,
|
|
2925
|
+
getPostTranslationHandler: _t,
|
|
2926
|
+
setPostTranslationHandler: mt,
|
|
2927
|
+
getMissingHandler: dt,
|
|
2928
|
+
setMissingHandler: Et,
|
|
2929
|
+
[hr]: Lt
|
|
2907
2930
|
};
|
|
2908
|
-
return U.datetimeFormats = Ae, U.numberFormats =
|
|
2931
|
+
return U.datetimeFormats = Ae, U.numberFormats = ft, U.rt = gt, U.te = Ot, U.tm = Ve, U.d = Nt, U.n = Tt, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = g, U.getNumberFormat = y, U.setNumberFormat = x, U.mergeNumberFormat = K, U[Ir] = n, U[Vt] = qe, U[$t] = Ze, U[Wt] = It, process.env.NODE_ENV !== "production" && (U[Ce] = (_) => {
|
|
2909
2932
|
p.__v_emitter = _;
|
|
2910
|
-
}, U[
|
|
2933
|
+
}, U[Xe] = () => {
|
|
2911
2934
|
p.__v_emitter = void 0;
|
|
2912
2935
|
}), U;
|
|
2913
2936
|
}
|
|
2914
|
-
const
|
|
2937
|
+
const vr = "vue-i18n: composer properties", Pt = {
|
|
2915
2938
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2916
2939
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2917
2940
|
"vue-i18n-timeline": "Vue I18n"
|
|
2918
|
-
}, eo = {
|
|
2919
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2920
2941
|
}, to = {
|
|
2942
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2943
|
+
}, no = {
|
|
2921
2944
|
"vue-i18n-timeline": 16764185
|
|
2922
2945
|
};
|
|
2923
|
-
let
|
|
2924
|
-
async function
|
|
2946
|
+
let xt;
|
|
2947
|
+
async function ro(e, t) {
|
|
2925
2948
|
return new Promise((n, r) => {
|
|
2926
2949
|
try {
|
|
2927
|
-
|
|
2950
|
+
Xa({
|
|
2928
2951
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2929
|
-
label:
|
|
2952
|
+
label: Pt["vue-devtools-plugin-vue-i18n"],
|
|
2930
2953
|
packageName: "vue-i18n",
|
|
2931
2954
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2932
2955
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2933
|
-
componentStateTypes: [
|
|
2956
|
+
componentStateTypes: [vr],
|
|
2934
2957
|
app: e
|
|
2935
2958
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2936
2959
|
}, (s) => {
|
|
2937
|
-
|
|
2938
|
-
|
|
2960
|
+
xt = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2961
|
+
so(o, i, t);
|
|
2939
2962
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2940
2963
|
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Vn(i, o.__VUE_I18N__) : Vn(i, o.__VUE_I18N__));
|
|
2941
2964
|
}), s.addInspector({
|
|
2942
2965
|
id: "vue-i18n-resource-inspector",
|
|
2943
|
-
label:
|
|
2966
|
+
label: Pt["vue-i18n-resource-inspector"],
|
|
2944
2967
|
icon: "language",
|
|
2945
|
-
treeFilterPlaceholder:
|
|
2968
|
+
treeFilterPlaceholder: to["vue-i18n-resource-inspector"]
|
|
2946
2969
|
}), s.on.getInspectorTree((o) => {
|
|
2947
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2970
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && co(o, t);
|
|
2948
2971
|
});
|
|
2949
2972
|
const a = /* @__PURE__ */ new Map();
|
|
2950
2973
|
s.on.getInspectorState(async (o) => {
|
|
2951
2974
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2952
|
-
if (s.unhighlightElement(),
|
|
2975
|
+
if (s.unhighlightElement(), fo(o, t), o.nodeId === "global") {
|
|
2953
2976
|
if (!a.has(o.app)) {
|
|
2954
2977
|
const [i] = await s.getComponentInstances(o.app);
|
|
2955
2978
|
a.set(o.app, i);
|
|
2956
2979
|
}
|
|
2957
2980
|
s.highlightElement(a.get(o.app));
|
|
2958
2981
|
} else {
|
|
2959
|
-
const i =
|
|
2982
|
+
const i = uo(o.nodeId, t);
|
|
2960
2983
|
i && s.highlightElement(i);
|
|
2961
2984
|
}
|
|
2962
2985
|
}), s.on.editInspectorState((o) => {
|
|
2963
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2986
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && mo(o, t);
|
|
2964
2987
|
}), s.addTimelineLayer({
|
|
2965
2988
|
id: "vue-i18n-timeline",
|
|
2966
|
-
label:
|
|
2967
|
-
color:
|
|
2989
|
+
label: Pt["vue-i18n-timeline"],
|
|
2990
|
+
color: no["vue-i18n-timeline"]
|
|
2968
2991
|
}), n(!0);
|
|
2969
2992
|
});
|
|
2970
2993
|
} catch (s) {
|
|
@@ -2972,14 +2995,14 @@ async function no(e, t) {
|
|
|
2972
2995
|
}
|
|
2973
2996
|
});
|
|
2974
2997
|
}
|
|
2975
|
-
function
|
|
2998
|
+
function Cr(e) {
|
|
2976
2999
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2977
3000
|
}
|
|
2978
|
-
function
|
|
3001
|
+
function so(e, t, n) {
|
|
2979
3002
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2980
3003
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
2981
3004
|
const s = {
|
|
2982
|
-
label: `i18n (${
|
|
3005
|
+
label: `i18n (${Cr(e)} Scope)`,
|
|
2983
3006
|
textColor: 0,
|
|
2984
3007
|
backgroundColor: 16764185
|
|
2985
3008
|
};
|
|
@@ -2987,7 +3010,7 @@ function ro(e, t, n) {
|
|
|
2987
3010
|
}
|
|
2988
3011
|
}
|
|
2989
3012
|
function Vn(e, t) {
|
|
2990
|
-
const n =
|
|
3013
|
+
const n = vr;
|
|
2991
3014
|
e.state.push({
|
|
2992
3015
|
type: n,
|
|
2993
3016
|
key: "locale",
|
|
@@ -3029,30 +3052,30 @@ function sn(e) {
|
|
|
3029
3052
|
const t = {};
|
|
3030
3053
|
return Object.keys(e).forEach((n) => {
|
|
3031
3054
|
const r = e[n];
|
|
3032
|
-
W(r) && "source" in r ? t[n] =
|
|
3055
|
+
W(r) && "source" in r ? t[n] = io(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = sn(r) : t[n] = r;
|
|
3033
3056
|
}), t;
|
|
3034
3057
|
}
|
|
3035
|
-
const
|
|
3058
|
+
const ao = {
|
|
3036
3059
|
"<": "<",
|
|
3037
3060
|
">": ">",
|
|
3038
3061
|
'"': """,
|
|
3039
3062
|
"&": "&"
|
|
3040
3063
|
};
|
|
3041
|
-
function ao(e) {
|
|
3042
|
-
return e.replace(/[<>"&]/g, oo);
|
|
3043
|
-
}
|
|
3044
3064
|
function oo(e) {
|
|
3045
|
-
return
|
|
3065
|
+
return e.replace(/[<>"&]/g, lo);
|
|
3046
3066
|
}
|
|
3047
3067
|
function lo(e) {
|
|
3068
|
+
return ao[e] || e;
|
|
3069
|
+
}
|
|
3070
|
+
function io(e) {
|
|
3048
3071
|
return {
|
|
3049
3072
|
_custom: {
|
|
3050
3073
|
type: "function",
|
|
3051
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3074
|
+
display: `<span>ƒ</span> ${e.source ? `("${oo(e.source)}")` : "(?)"}`
|
|
3052
3075
|
}
|
|
3053
3076
|
};
|
|
3054
3077
|
}
|
|
3055
|
-
function
|
|
3078
|
+
function co(e, t) {
|
|
3056
3079
|
e.rootNodes.push({
|
|
3057
3080
|
id: "global",
|
|
3058
3081
|
label: "Global Scope"
|
|
@@ -3062,11 +3085,11 @@ function io(e, t) {
|
|
|
3062
3085
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
3063
3086
|
n !== a && e.rootNodes.push({
|
|
3064
3087
|
id: a.id.toString(),
|
|
3065
|
-
label: `${
|
|
3088
|
+
label: `${Cr(r)} Scope`
|
|
3066
3089
|
});
|
|
3067
3090
|
}
|
|
3068
3091
|
}
|
|
3069
|
-
function
|
|
3092
|
+
function uo(e, t) {
|
|
3070
3093
|
let n = null;
|
|
3071
3094
|
if (e !== "global") {
|
|
3072
3095
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3077,7 +3100,7 @@ function co(e, t) {
|
|
|
3077
3100
|
}
|
|
3078
3101
|
return n;
|
|
3079
3102
|
}
|
|
3080
|
-
function
|
|
3103
|
+
function Ar(e, t) {
|
|
3081
3104
|
if (e === "global")
|
|
3082
3105
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3083
3106
|
{
|
|
@@ -3085,11 +3108,11 @@ function Cr(e, t) {
|
|
|
3085
3108
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3086
3109
|
}
|
|
3087
3110
|
}
|
|
3088
|
-
function
|
|
3089
|
-
const n =
|
|
3090
|
-
return n && (e.state =
|
|
3111
|
+
function fo(e, t) {
|
|
3112
|
+
const n = Ar(e.nodeId, t);
|
|
3113
|
+
return n && (e.state = _o(n)), null;
|
|
3091
3114
|
}
|
|
3092
|
-
function
|
|
3115
|
+
function _o(e) {
|
|
3093
3116
|
const t = {}, n = "Locale related info", r = [
|
|
3094
3117
|
{
|
|
3095
3118
|
type: n,
|
|
@@ -3148,10 +3171,10 @@ function fo(e) {
|
|
|
3148
3171
|
}
|
|
3149
3172
|
return t;
|
|
3150
3173
|
}
|
|
3151
|
-
function
|
|
3152
|
-
if (
|
|
3174
|
+
function Qe(e, t) {
|
|
3175
|
+
if (xt) {
|
|
3153
3176
|
let n;
|
|
3154
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
3177
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), xt.addTimelineEvent({
|
|
3155
3178
|
layerId: "vue-i18n-timeline",
|
|
3156
3179
|
event: {
|
|
3157
3180
|
title: e,
|
|
@@ -3164,15 +3187,15 @@ function Je(e, t) {
|
|
|
3164
3187
|
});
|
|
3165
3188
|
}
|
|
3166
3189
|
}
|
|
3167
|
-
function
|
|
3168
|
-
const n =
|
|
3190
|
+
function mo(e, t) {
|
|
3191
|
+
const n = Ar(e.nodeId, t);
|
|
3169
3192
|
if (n) {
|
|
3170
3193
|
const [r] = e.path;
|
|
3171
|
-
r === "locale" &&
|
|
3194
|
+
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);
|
|
3172
3195
|
}
|
|
3173
3196
|
}
|
|
3174
|
-
function
|
|
3175
|
-
const t =
|
|
3197
|
+
function Eo(e) {
|
|
3198
|
+
const t = L(e.locale) ? e.locale : je, 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) || ke(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || ke(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, I = W(e.postTranslation) ? e.postTranslation : void 0, b = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
|
|
3176
3199
|
let D = e.messages;
|
|
3177
3200
|
if (R(e.sharedMessages)) {
|
|
3178
3201
|
const O = e.sharedMessages;
|
|
@@ -3196,7 +3219,7 @@ function mo(e) {
|
|
|
3196
3219
|
fallbackFormat: i,
|
|
3197
3220
|
modifiers: u,
|
|
3198
3221
|
pluralRules: E,
|
|
3199
|
-
postTranslation:
|
|
3222
|
+
postTranslation: I,
|
|
3200
3223
|
warnHtmlMessage: b,
|
|
3201
3224
|
escapeParameter: N,
|
|
3202
3225
|
messageResolver: e.messageResolver,
|
|
@@ -3206,8 +3229,8 @@ function mo(e) {
|
|
|
3206
3229
|
__injectWithOption: f
|
|
3207
3230
|
};
|
|
3208
3231
|
}
|
|
3209
|
-
function
|
|
3210
|
-
const t = rn(
|
|
3232
|
+
function Ht(e = {}) {
|
|
3233
|
+
const t = rn(Eo(e)), { __extender: n } = e, r = {
|
|
3211
3234
|
// id
|
|
3212
3235
|
id: t.id,
|
|
3213
3236
|
// locale
|
|
@@ -3372,10 +3395,10 @@ function xt(e = {}) {
|
|
|
3372
3395
|
a[Ce] && a[Ce](s);
|
|
3373
3396
|
}, r.__disableEmitter = () => {
|
|
3374
3397
|
const s = t;
|
|
3375
|
-
s[
|
|
3398
|
+
s[Xe] && s[Xe]();
|
|
3376
3399
|
}), r;
|
|
3377
3400
|
}
|
|
3378
|
-
function
|
|
3401
|
+
function po(e, t, n) {
|
|
3379
3402
|
return {
|
|
3380
3403
|
beforeCreate() {
|
|
3381
3404
|
const r = De();
|
|
@@ -3387,7 +3410,7 @@ function Eo(e, t, n) {
|
|
|
3387
3410
|
if (s.__i18n && (a.__i18n = s.__i18n), a.__root = t, this === this.$root)
|
|
3388
3411
|
this.$i18n = $n(e, a);
|
|
3389
3412
|
else {
|
|
3390
|
-
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n =
|
|
3413
|
+
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Ht(a);
|
|
3391
3414
|
const o = this.$i18n;
|
|
3392
3415
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3393
3416
|
}
|
|
@@ -3395,7 +3418,7 @@ function Eo(e, t, n) {
|
|
|
3395
3418
|
if (this === this.$root)
|
|
3396
3419
|
this.$i18n = $n(e, s);
|
|
3397
3420
|
else {
|
|
3398
|
-
this.$i18n =
|
|
3421
|
+
this.$i18n = Ht({
|
|
3399
3422
|
__i18n: s.__i18n,
|
|
3400
3423
|
__injectWithOption: !0,
|
|
3401
3424
|
__extender: n.__vueI18nExtend,
|
|
@@ -3406,7 +3429,7 @@ function Eo(e, t, n) {
|
|
|
3406
3429
|
}
|
|
3407
3430
|
else
|
|
3408
3431
|
this.$i18n = e;
|
|
3409
|
-
s.__i18nGlobal &&
|
|
3432
|
+
s.__i18nGlobal && Or(t, s, s), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$te = (a, o) => this.$i18n.te(a, o), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(r, this.$i18n);
|
|
3410
3433
|
},
|
|
3411
3434
|
mounted() {
|
|
3412
3435
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3416,7 +3439,7 @@ function Eo(e, t, n) {
|
|
|
3416
3439
|
const s = this.$i18n;
|
|
3417
3440
|
r.__VUE_I18N__ = s.__composer;
|
|
3418
3441
|
const a = this.__v_emitter = qt();
|
|
3419
|
-
s.__enableEmitter && s.__enableEmitter(a), a.on("*",
|
|
3442
|
+
s.__enableEmitter && s.__enableEmitter(a), a.on("*", Qe);
|
|
3420
3443
|
}
|
|
3421
3444
|
},
|
|
3422
3445
|
unmounted() {
|
|
@@ -3424,12 +3447,12 @@ function Eo(e, t, n) {
|
|
|
3424
3447
|
if (!r)
|
|
3425
3448
|
throw z(G.UNEXPECTED_ERROR);
|
|
3426
3449
|
const s = this.$i18n;
|
|
3427
|
-
process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
3450
|
+
process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Qe), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete r.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(r), delete this.$i18n;
|
|
3428
3451
|
}
|
|
3429
3452
|
};
|
|
3430
3453
|
}
|
|
3431
3454
|
function $n(e, t) {
|
|
3432
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
3455
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[hr](t.pluralizationRules || e.pluralizationRules);
|
|
3433
3456
|
const n = nn(e.locale, {
|
|
3434
3457
|
messages: t.messages,
|
|
3435
3458
|
__i18n: t.__i18n
|
|
@@ -3454,7 +3477,7 @@ const an = {
|
|
|
3454
3477
|
type: Object
|
|
3455
3478
|
}
|
|
3456
3479
|
};
|
|
3457
|
-
function
|
|
3480
|
+
function go({ slots: e }, t) {
|
|
3458
3481
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3459
3482
|
...r,
|
|
3460
3483
|
// prettier-ignore
|
|
@@ -3464,10 +3487,10 @@ function po({ slots: e }, t) {
|
|
|
3464
3487
|
return s && (n[r] = s()), n;
|
|
3465
3488
|
}, $());
|
|
3466
3489
|
}
|
|
3467
|
-
function
|
|
3490
|
+
function Sr() {
|
|
3468
3491
|
return Yt;
|
|
3469
3492
|
}
|
|
3470
|
-
const
|
|
3493
|
+
const No = /* @__PURE__ */ pe({
|
|
3471
3494
|
/* eslint-disable */
|
|
3472
3495
|
name: "i18n-t",
|
|
3473
3496
|
props: J({
|
|
@@ -3489,32 +3512,32 @@ const go = /* @__PURE__ */ pe({
|
|
|
3489
3512
|
});
|
|
3490
3513
|
return () => {
|
|
3491
3514
|
const a = Object.keys(n).filter((b) => b[0] !== "_"), o = $();
|
|
3492
|
-
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural =
|
|
3493
|
-
const i =
|
|
3494
|
-
return
|
|
3515
|
+
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3516
|
+
const i = go(t, a), u = s[Vt](e.keypath, i, o), E = J($(), r), I = L(e.tag) || M(e.tag) ? e.tag : Sr();
|
|
3517
|
+
return Ye(I, E, u);
|
|
3495
3518
|
};
|
|
3496
3519
|
}
|
|
3497
|
-
}), Wn =
|
|
3498
|
-
function
|
|
3499
|
-
return H(e) && !
|
|
3520
|
+
}), Wn = No;
|
|
3521
|
+
function To(e) {
|
|
3522
|
+
return H(e) && !L(e[0]);
|
|
3500
3523
|
}
|
|
3501
|
-
function
|
|
3524
|
+
function yr(e, t, n, r) {
|
|
3502
3525
|
const { slots: s, attrs: a } = t;
|
|
3503
3526
|
return () => {
|
|
3504
3527
|
const o = { part: !0 };
|
|
3505
3528
|
let i = $();
|
|
3506
|
-
e.locale && (o.locale = e.locale),
|
|
3529
|
+
e.locale && (o.locale = e.locale), L(e.format) ? o.key = e.format : M(e.format) && (L(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, A) => n.includes(A) ? J($(), N, { [A]: e.format[A] }) : N, $()));
|
|
3507
3530
|
const u = r(e.value, o, i);
|
|
3508
3531
|
let E = [o.key];
|
|
3509
3532
|
H(u) ? E = u.map((N, A) => {
|
|
3510
3533
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3511
|
-
return
|
|
3512
|
-
}) :
|
|
3513
|
-
const
|
|
3514
|
-
return
|
|
3534
|
+
return To(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3535
|
+
}) : L(u) && (E = [u]);
|
|
3536
|
+
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag : Sr();
|
|
3537
|
+
return Ye(b, I, E);
|
|
3515
3538
|
};
|
|
3516
3539
|
}
|
|
3517
|
-
const
|
|
3540
|
+
const bo = /* @__PURE__ */ pe({
|
|
3518
3541
|
/* eslint-disable */
|
|
3519
3542
|
name: "i18n-n",
|
|
3520
3543
|
props: J({
|
|
@@ -3533,13 +3556,13 @@ const To = /* @__PURE__ */ pe({
|
|
|
3533
3556
|
useScope: e.scope,
|
|
3534
3557
|
__useComponent: !0
|
|
3535
3558
|
});
|
|
3536
|
-
return
|
|
3559
|
+
return yr(e, t, gr, (...r) => (
|
|
3537
3560
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3538
|
-
n[
|
|
3561
|
+
n[Wt](...r)
|
|
3539
3562
|
));
|
|
3540
3563
|
}
|
|
3541
|
-
}), Gn =
|
|
3542
|
-
function
|
|
3564
|
+
}), Gn = bo;
|
|
3565
|
+
function ho(e, t) {
|
|
3543
3566
|
const n = e;
|
|
3544
3567
|
if (e.mode === "composition")
|
|
3545
3568
|
return n.__getInstance(t) || e.global;
|
|
@@ -3548,22 +3571,22 @@ function bo(e, t) {
|
|
|
3548
3571
|
return r != null ? r.__composer : e.global.__composer;
|
|
3549
3572
|
}
|
|
3550
3573
|
}
|
|
3551
|
-
function
|
|
3574
|
+
function Io(e) {
|
|
3552
3575
|
const t = (o) => {
|
|
3553
3576
|
process.env.NODE_ENV !== "production" && Xt(Me(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3554
3577
|
const { instance: i, value: u } = o;
|
|
3555
3578
|
if (!i || !i.$)
|
|
3556
3579
|
throw z(G.UNEXPECTED_ERROR);
|
|
3557
|
-
const E =
|
|
3580
|
+
const E = ho(e, i.$), I = xn(u);
|
|
3558
3581
|
return [
|
|
3559
|
-
Reflect.apply(E.t, E, [...Hn(
|
|
3582
|
+
Reflect.apply(E.t, E, [...Hn(I)]),
|
|
3560
3583
|
E
|
|
3561
3584
|
];
|
|
3562
3585
|
};
|
|
3563
3586
|
return {
|
|
3564
3587
|
created: (o, i) => {
|
|
3565
3588
|
const [u, E] = t(i);
|
|
3566
|
-
le && e.global === E && (o.__i18nWatcher =
|
|
3589
|
+
le && e.global === E && (o.__i18nWatcher = Dt(E.locale, () => {
|
|
3567
3590
|
i.instance && i.instance.$forceUpdate();
|
|
3568
3591
|
})), o.__composer = E, o.textContent = u;
|
|
3569
3592
|
},
|
|
@@ -3585,7 +3608,7 @@ function ho(e) {
|
|
|
3585
3608
|
};
|
|
3586
3609
|
}
|
|
3587
3610
|
function xn(e) {
|
|
3588
|
-
if (
|
|
3611
|
+
if (L(e))
|
|
3589
3612
|
return { path: e };
|
|
3590
3613
|
if (R(e)) {
|
|
3591
3614
|
if (!("path" in e))
|
|
@@ -3596,17 +3619,17 @@ function xn(e) {
|
|
|
3596
3619
|
}
|
|
3597
3620
|
function Hn(e) {
|
|
3598
3621
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3599
|
-
return
|
|
3622
|
+
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3600
3623
|
}
|
|
3601
3624
|
function Lo(e, t, ...n) {
|
|
3602
3625
|
const r = R(n[0]) ? n[0] : {};
|
|
3603
|
-
(!F(r.globalInstall) || r.globalInstall) && ([Wn.name, "I18nT"].forEach((a) => e.component(a, Wn)), [Gn.name, "I18nN"].forEach((a) => e.component(a, Gn)), [Kn.name, "I18nD"].forEach((a) => e.component(a, Kn))), e.directive("t",
|
|
3626
|
+
(!F(r.globalInstall) || r.globalInstall) && ([Wn.name, "I18nT"].forEach((a) => e.component(a, Wn)), [Gn.name, "I18nN"].forEach((a) => e.component(a, Gn)), [Kn.name, "I18nD"].forEach((a) => e.component(a, Kn))), e.directive("t", Io(t));
|
|
3604
3627
|
}
|
|
3605
|
-
const
|
|
3606
|
-
function
|
|
3628
|
+
const Oo = /* @__PURE__ */ fe("global-vue-i18n");
|
|
3629
|
+
function vo(e = {}) {
|
|
3607
3630
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3608
3631
|
process.env.NODE_ENV !== "production" && t && Xt(Me(ne.DEPRECATE_LEGACY_MODE));
|
|
3609
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3632
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Co(e, t), o = /* @__PURE__ */ fe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3610
3633
|
function i(b) {
|
|
3611
3634
|
return r.get(b) || null;
|
|
3612
3635
|
}
|
|
@@ -3616,24 +3639,24 @@ function Oo(e = {}) {
|
|
|
3616
3639
|
function E(b) {
|
|
3617
3640
|
r.delete(b);
|
|
3618
3641
|
}
|
|
3619
|
-
const
|
|
3642
|
+
const I = {
|
|
3620
3643
|
// mode
|
|
3621
3644
|
get mode() {
|
|
3622
3645
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
3623
3646
|
},
|
|
3624
3647
|
// install plugin
|
|
3625
3648
|
async install(b, ...N) {
|
|
3626
|
-
if (process.env.NODE_ENV !== "production" && (b.__VUE_I18N__ =
|
|
3649
|
+
if (process.env.NODE_ENV !== "production" && (b.__VUE_I18N__ = I), b.__VUE_I18N_SYMBOL__ = o, b.provide(b.__VUE_I18N_SYMBOL__, I), R(N[0])) {
|
|
3627
3650
|
const C = N[0];
|
|
3628
|
-
|
|
3651
|
+
I.__composerExtend = C.__composerExtend, I.__vueI18nExtend = C.__vueI18nExtend;
|
|
3629
3652
|
}
|
|
3630
3653
|
let A = null;
|
|
3631
|
-
!t && n && (A =
|
|
3654
|
+
!t && n && (A = Mo(b, I.global)), __VUE_I18N_FULL_INSTALL__ && Lo(b, I, ...N), __VUE_I18N_LEGACY_API__ && t && b.mixin(po(a, a.__composer, I));
|
|
3632
3655
|
const D = b.unmount;
|
|
3633
3656
|
if (b.unmount = () => {
|
|
3634
|
-
A && A(),
|
|
3657
|
+
A && A(), I.dispose(), D();
|
|
3635
3658
|
}, process.env.NODE_ENV !== "production") {
|
|
3636
|
-
if (!await
|
|
3659
|
+
if (!await ro(b, I))
|
|
3637
3660
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3638
3661
|
const S = qt();
|
|
3639
3662
|
if (t) {
|
|
@@ -3643,7 +3666,7 @@ function Oo(e = {}) {
|
|
|
3643
3666
|
const f = a;
|
|
3644
3667
|
f[Ce] && f[Ce](S);
|
|
3645
3668
|
}
|
|
3646
|
-
S.on("*",
|
|
3669
|
+
S.on("*", Qe);
|
|
3647
3670
|
}
|
|
3648
3671
|
},
|
|
3649
3672
|
// global accessor
|
|
@@ -3662,7 +3685,7 @@ function Oo(e = {}) {
|
|
|
3662
3685
|
// @internal
|
|
3663
3686
|
__deleteInstance: E
|
|
3664
3687
|
};
|
|
3665
|
-
return
|
|
3688
|
+
return I;
|
|
3666
3689
|
}
|
|
3667
3690
|
function on(e = {}) {
|
|
3668
3691
|
const t = De();
|
|
@@ -3670,51 +3693,51 @@ function on(e = {}) {
|
|
|
3670
3693
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3671
3694
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3672
3695
|
throw z(G.NOT_INSTALLED);
|
|
3673
|
-
const n =
|
|
3696
|
+
const n = Ao(t), r = yo(n), s = Lr(t), a = So(e, s);
|
|
3674
3697
|
if (a === "global")
|
|
3675
|
-
return
|
|
3698
|
+
return Or(r, e, s), r;
|
|
3676
3699
|
if (a === "parent") {
|
|
3677
|
-
let u =
|
|
3700
|
+
let u = Po(n, t, e.__useComponent);
|
|
3678
3701
|
return u == null && (process.env.NODE_ENV !== "production" && ue(Me(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3679
3702
|
}
|
|
3680
3703
|
const o = n;
|
|
3681
3704
|
let i = o.__getInstance(t);
|
|
3682
3705
|
if (i == null) {
|
|
3683
3706
|
const u = J({}, e);
|
|
3684
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = rn(u), o.__composerExtend && (i[
|
|
3707
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = rn(u), o.__composerExtend && (i[Gt] = o.__composerExtend(i)), ko(o, t, i), o.__setInstance(t, i);
|
|
3685
3708
|
} else
|
|
3686
3709
|
process.env.NODE_ENV !== "production" && a === "local" && ue(Me(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3687
3710
|
return i;
|
|
3688
3711
|
}
|
|
3689
|
-
function
|
|
3690
|
-
const n =
|
|
3712
|
+
function Co(e, t) {
|
|
3713
|
+
const n = Mr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => rn(e));
|
|
3691
3714
|
if (r == null)
|
|
3692
3715
|
throw z(G.UNEXPECTED_ERROR);
|
|
3693
3716
|
return [n, r];
|
|
3694
3717
|
}
|
|
3695
|
-
function
|
|
3696
|
-
const t = jn(e.isCE ?
|
|
3718
|
+
function Ao(e) {
|
|
3719
|
+
const t = jn(e.isCE ? Oo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3697
3720
|
if (!t)
|
|
3698
3721
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3699
3722
|
return t;
|
|
3700
3723
|
}
|
|
3701
|
-
function
|
|
3702
|
-
return
|
|
3724
|
+
function So(e, t) {
|
|
3725
|
+
return it(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3703
3726
|
}
|
|
3704
|
-
function
|
|
3727
|
+
function yo(e) {
|
|
3705
3728
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3706
3729
|
}
|
|
3707
|
-
function
|
|
3730
|
+
function Po(e, t, n = !1) {
|
|
3708
3731
|
let r = null;
|
|
3709
3732
|
const s = t.root;
|
|
3710
|
-
let a =
|
|
3733
|
+
let a = Do(t, n);
|
|
3711
3734
|
for (; a != null; ) {
|
|
3712
3735
|
const o = e;
|
|
3713
3736
|
if (e.mode === "composition")
|
|
3714
3737
|
r = o.__getInstance(a);
|
|
3715
3738
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3716
3739
|
const i = o.__getInstance(a);
|
|
3717
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3740
|
+
i != null && (r = i.__composer, n && r && !r[Ir] && (r = null));
|
|
3718
3741
|
}
|
|
3719
3742
|
if (r != null || s === a)
|
|
3720
3743
|
break;
|
|
@@ -3722,36 +3745,36 @@ function yo(e, t, n = !1) {
|
|
|
3722
3745
|
}
|
|
3723
3746
|
return r;
|
|
3724
3747
|
}
|
|
3725
|
-
function
|
|
3748
|
+
function Do(e, t = !1) {
|
|
3726
3749
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3727
3750
|
}
|
|
3728
|
-
function
|
|
3751
|
+
function ko(e, t, n) {
|
|
3729
3752
|
let r = null;
|
|
3730
3753
|
wr(() => {
|
|
3731
3754
|
if (process.env.NODE_ENV !== "production") {
|
|
3732
3755
|
t.__VUE_I18N__ = n, r = qt();
|
|
3733
3756
|
const s = n;
|
|
3734
|
-
s[Ce] && s[Ce](r), r.on("*",
|
|
3757
|
+
s[Ce] && s[Ce](r), r.on("*", Qe);
|
|
3735
3758
|
}
|
|
3736
3759
|
}, t), Vr(() => {
|
|
3737
3760
|
const s = n;
|
|
3738
|
-
process.env.NODE_ENV !== "production" && (r && r.off("*",
|
|
3739
|
-
const a = s[
|
|
3740
|
-
a && (a(), delete s[
|
|
3761
|
+
process.env.NODE_ENV !== "production" && (r && r.off("*", Qe), s[Xe] && s[Xe](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3762
|
+
const a = s[Gt];
|
|
3763
|
+
a && (a(), delete s[Gt]);
|
|
3741
3764
|
}, t);
|
|
3742
3765
|
}
|
|
3743
|
-
const
|
|
3766
|
+
const Ro = [
|
|
3744
3767
|
"locale",
|
|
3745
3768
|
"fallbackLocale",
|
|
3746
3769
|
"availableLocales"
|
|
3747
3770
|
], Yn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3748
|
-
function
|
|
3771
|
+
function Mo(e, t) {
|
|
3749
3772
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3750
|
-
return
|
|
3773
|
+
return Ro.forEach((s) => {
|
|
3751
3774
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3752
3775
|
if (!a)
|
|
3753
3776
|
throw z(G.UNEXPECTED_ERROR);
|
|
3754
|
-
const o =
|
|
3777
|
+
const o = Fr(a.value) ? {
|
|
3755
3778
|
get() {
|
|
3756
3779
|
return a.value.value;
|
|
3757
3780
|
},
|
|
@@ -3776,7 +3799,7 @@ function Ro(e, t) {
|
|
|
3776
3799
|
});
|
|
3777
3800
|
};
|
|
3778
3801
|
}
|
|
3779
|
-
const
|
|
3802
|
+
const Fo = /* @__PURE__ */ pe({
|
|
3780
3803
|
/* eslint-disable */
|
|
3781
3804
|
name: "i18n-d",
|
|
3782
3805
|
props: J({
|
|
@@ -3795,139 +3818,141 @@ const Mo = /* @__PURE__ */ pe({
|
|
|
3795
3818
|
useScope: e.scope,
|
|
3796
3819
|
__useComponent: !0
|
|
3797
3820
|
});
|
|
3798
|
-
return
|
|
3821
|
+
return yr(e, t, pr, (...r) => (
|
|
3799
3822
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3800
|
-
n[
|
|
3823
|
+
n[$t](...r)
|
|
3801
3824
|
));
|
|
3802
3825
|
}
|
|
3803
|
-
}), Kn =
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3826
|
+
}), Kn = Fo;
|
|
3827
|
+
Qa();
|
|
3828
|
+
ba(Zs);
|
|
3829
|
+
ha(Ea);
|
|
3830
|
+
Ia(lr);
|
|
3808
3831
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3809
|
-
const e =
|
|
3810
|
-
e.__INTLIFY__ = !0,
|
|
3832
|
+
const e = Le();
|
|
3833
|
+
e.__INTLIFY__ = !0, zs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3811
3834
|
}
|
|
3812
3835
|
process.env.NODE_ENV;
|
|
3813
|
-
const
|
|
3814
|
-
name:
|
|
3815
|
-
supplier:
|
|
3816
|
-
version:
|
|
3817
|
-
description:
|
|
3818
|
-
category:
|
|
3819
|
-
general:
|
|
3820
|
-
ioMapping:
|
|
3821
|
-
modbusSlaveChannel:
|
|
3822
|
-
status:
|
|
3823
|
-
ethernet:
|
|
3824
|
-
modbusTcpServer:
|
|
3825
|
-
modbusTcpClient:
|
|
3826
|
-
modbusTCPSlaveDevice:
|
|
3827
|
-
company:
|
|
3828
|
-
descriptionMap:
|
|
3829
|
-
netInterface:
|
|
3830
|
-
ipAddress:
|
|
3831
|
-
subnetMask:
|
|
3832
|
-
defaultGateway:
|
|
3833
|
-
adaptedOSConfiguration:
|
|
3834
|
-
busCycleTask:
|
|
3835
|
-
defaultTask:
|
|
3836
|
-
responseTimeout:
|
|
3837
|
-
socketTimeout:
|
|
3838
|
-
reconnect:
|
|
3839
|
-
slaveIpAddress:
|
|
3840
|
-
port:
|
|
3841
|
-
watchDog:
|
|
3842
|
-
slavePort:
|
|
3843
|
-
bindToAdapter:
|
|
3844
|
-
holdingRegister:
|
|
3845
|
-
writable:
|
|
3846
|
-
inputRegister:
|
|
3847
|
-
discreteBitArea:
|
|
3848
|
-
coil:
|
|
3849
|
-
discreteInput:
|
|
3850
|
-
dataModel:
|
|
3851
|
-
startAddress:
|
|
3852
|
-
},
|
|
3853
|
-
name:
|
|
3854
|
-
supplier:
|
|
3836
|
+
const Uo = "名称", wo = "供应商", Vo = "版本", $o = "描述", Wo = "类别", Go = "通用", xo = "I/O映射", Ho = "Modbus从站通道", Yo = "状态", Ko = "以太网", Bo = "Modbus TCP服务器", jo = "Modbus TCP客户端", Xo = "Modbus TCP从站设备", Jo = "成都数字创新科技有限公司", Qo = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, qo = "网络接口", Zo = "IP地址", zo = "子网掩码", el = "默认网关", tl = "适配操作系统配置", nl = "总线周期任务", rl = "使用父总线循环设置", sl = "响应超时(ms)", al = "Socket超时(ms)", ol = "自动重连", ll = "从站IP地址", il = "端口", cl = " 看门狗", ul = "从站端口", fl = "绑定到适配器", _l = "保持寄存器", ml = "可写入", dl = "输入寄存器", El = "离散位区域", pl = "线圈", gl = "离散输入", Nl = "数据模型", Tl = "起始地址", bl = {
|
|
3837
|
+
name: Uo,
|
|
3838
|
+
supplier: wo,
|
|
3839
|
+
version: Vo,
|
|
3840
|
+
description: $o,
|
|
3841
|
+
category: Wo,
|
|
3842
|
+
general: Go,
|
|
3843
|
+
ioMapping: xo,
|
|
3844
|
+
modbusSlaveChannel: Ho,
|
|
3845
|
+
status: Yo,
|
|
3846
|
+
ethernet: Ko,
|
|
3847
|
+
modbusTcpServer: Bo,
|
|
3848
|
+
modbusTcpClient: jo,
|
|
3849
|
+
modbusTCPSlaveDevice: Xo,
|
|
3850
|
+
company: Jo,
|
|
3851
|
+
descriptionMap: Qo,
|
|
3852
|
+
netInterface: qo,
|
|
3853
|
+
ipAddress: Zo,
|
|
3854
|
+
subnetMask: zo,
|
|
3855
|
+
defaultGateway: el,
|
|
3856
|
+
adaptedOSConfiguration: tl,
|
|
3857
|
+
busCycleTask: nl,
|
|
3858
|
+
defaultTask: rl,
|
|
3859
|
+
responseTimeout: sl,
|
|
3860
|
+
socketTimeout: al,
|
|
3861
|
+
reconnect: ol,
|
|
3862
|
+
slaveIpAddress: ll,
|
|
3863
|
+
port: il,
|
|
3864
|
+
watchDog: cl,
|
|
3865
|
+
slavePort: ul,
|
|
3866
|
+
bindToAdapter: fl,
|
|
3867
|
+
holdingRegister: _l,
|
|
3868
|
+
writable: ml,
|
|
3869
|
+
inputRegister: dl,
|
|
3870
|
+
discreteBitArea: El,
|
|
3871
|
+
coil: pl,
|
|
3872
|
+
discreteInput: gl,
|
|
3873
|
+
dataModel: Nl,
|
|
3874
|
+
startAddress: Tl
|
|
3875
|
+
}, hl = "Name", Il = "Supplier", Ll = "Version", Ol = "Description", vl = "Category", Cl = "General", Al = "I/O Mapping", Sl = "Modbus Slave Channel", yl = "Status", Pl = "Ethernet", Dl = "Modbus TCP Server", kl = "Modbus TCP Client", Rl = "Modbus TCP Slave Device", Ml = "Chengdu AIOSYS Innovation Technology Co., Ltd.", Fl = { 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." }, Ul = "Network Interface", wl = "IP Address", Vl = "Subnet Mask", $l = "Default Gateway", Wl = "Adapted OS Configuration", Gl = "Bus Cycle Task", xl = "Use Parent Bus Cycle Setting", Hl = "Response Timeout(ms)", Yl = "Socket Timeout(ms)", Kl = "Reconnect", Bl = "Slave IP Address", jl = "Port", Xl = "Watch Dog", Jl = "Slave Port", Ql = "Bind to Adapter", ql = "Holding Register", Zl = "Writable", zl = "Input Register", ei = "Discrete Bit Area", ti = "Coil", ni = "Discrete Input", ri = "Data Model", si = "Start Address", ai = {
|
|
3876
|
+
name: hl,
|
|
3877
|
+
supplier: Il,
|
|
3855
3878
|
version: Ll,
|
|
3856
|
-
description:
|
|
3857
|
-
category:
|
|
3858
|
-
general:
|
|
3859
|
-
ioMapping:
|
|
3860
|
-
modbusSlaveChannel:
|
|
3861
|
-
status:
|
|
3862
|
-
ethernet:
|
|
3863
|
-
modbusTcpServer:
|
|
3864
|
-
modbusTcpClient:
|
|
3865
|
-
modbusTCPSlaveDevice:
|
|
3866
|
-
company:
|
|
3867
|
-
descriptionMap:
|
|
3868
|
-
netInterface:
|
|
3869
|
-
ipAddress:
|
|
3870
|
-
subnetMask:
|
|
3871
|
-
defaultGateway:
|
|
3872
|
-
adaptedOSConfiguration:
|
|
3873
|
-
busCycleTask:
|
|
3874
|
-
defaultTask:
|
|
3875
|
-
responseTimeout:
|
|
3876
|
-
socketTimeout:
|
|
3877
|
-
reconnect:
|
|
3878
|
-
slaveIpAddress:
|
|
3879
|
-
port:
|
|
3880
|
-
watchDog:
|
|
3881
|
-
slavePort:
|
|
3882
|
-
bindToAdapter:
|
|
3883
|
-
holdingRegister:
|
|
3884
|
-
writable:
|
|
3885
|
-
inputRegister:
|
|
3886
|
-
discreteBitArea:
|
|
3887
|
-
coil:
|
|
3888
|
-
discreteInput:
|
|
3889
|
-
dataModel:
|
|
3890
|
-
startAddress:
|
|
3891
|
-
},
|
|
3892
|
-
zh:
|
|
3893
|
-
en:
|
|
3894
|
-
},
|
|
3879
|
+
description: Ol,
|
|
3880
|
+
category: vl,
|
|
3881
|
+
general: Cl,
|
|
3882
|
+
ioMapping: Al,
|
|
3883
|
+
modbusSlaveChannel: Sl,
|
|
3884
|
+
status: yl,
|
|
3885
|
+
ethernet: Pl,
|
|
3886
|
+
modbusTcpServer: Dl,
|
|
3887
|
+
modbusTcpClient: kl,
|
|
3888
|
+
modbusTCPSlaveDevice: Rl,
|
|
3889
|
+
company: Ml,
|
|
3890
|
+
descriptionMap: Fl,
|
|
3891
|
+
netInterface: Ul,
|
|
3892
|
+
ipAddress: wl,
|
|
3893
|
+
subnetMask: Vl,
|
|
3894
|
+
defaultGateway: $l,
|
|
3895
|
+
adaptedOSConfiguration: Wl,
|
|
3896
|
+
busCycleTask: Gl,
|
|
3897
|
+
defaultTask: xl,
|
|
3898
|
+
responseTimeout: Hl,
|
|
3899
|
+
socketTimeout: Yl,
|
|
3900
|
+
reconnect: Kl,
|
|
3901
|
+
slaveIpAddress: Bl,
|
|
3902
|
+
port: jl,
|
|
3903
|
+
watchDog: Xl,
|
|
3904
|
+
slavePort: Jl,
|
|
3905
|
+
bindToAdapter: Ql,
|
|
3906
|
+
holdingRegister: ql,
|
|
3907
|
+
writable: Zl,
|
|
3908
|
+
inputRegister: zl,
|
|
3909
|
+
discreteBitArea: ei,
|
|
3910
|
+
coil: ti,
|
|
3911
|
+
discreteInput: ni,
|
|
3912
|
+
dataModel: ri,
|
|
3913
|
+
startAddress: si
|
|
3914
|
+
}, oi = {
|
|
3915
|
+
zh: bl,
|
|
3916
|
+
en: ai
|
|
3917
|
+
}, Ie = vo({
|
|
3895
3918
|
legacy: !1,
|
|
3896
3919
|
locale: "zh",
|
|
3897
3920
|
fallbackLocale: "en",
|
|
3898
|
-
messages:
|
|
3921
|
+
messages: oi
|
|
3899
3922
|
});
|
|
3900
|
-
typeof window < "u" && (window.$t =
|
|
3923
|
+
typeof window < "u" && (window.$t = Ie.global.t.bind(Ie.global), Object.defineProperty(window, "$locale", {
|
|
3901
3924
|
get() {
|
|
3902
|
-
return typeof
|
|
3925
|
+
return typeof Ie.global.locale == "string" ? Ie.global.locale : Ie.global.locale.value;
|
|
3903
3926
|
},
|
|
3904
3927
|
set(e) {
|
|
3905
|
-
|
|
3928
|
+
Ie.global.locale = e;
|
|
3906
3929
|
}
|
|
3907
3930
|
}));
|
|
3908
|
-
const
|
|
3909
|
-
|
|
3910
|
-
const
|
|
3931
|
+
const li = Wr(es).use(Ie);
|
|
3932
|
+
li.mount("#app");
|
|
3933
|
+
const ii = [
|
|
3911
3934
|
xr,
|
|
3912
3935
|
Yr
|
|
3913
|
-
],
|
|
3936
|
+
], _i = {
|
|
3914
3937
|
install(e) {
|
|
3915
|
-
|
|
3938
|
+
ii.forEach((t) => {
|
|
3916
3939
|
e.component(t.name, t);
|
|
3917
3940
|
});
|
|
3918
3941
|
}
|
|
3919
3942
|
};
|
|
3920
3943
|
export {
|
|
3921
3944
|
Yr as Button2,
|
|
3922
|
-
|
|
3923
|
-
|
|
3945
|
+
at as EthernetProtocolItem,
|
|
3946
|
+
Kr as Input,
|
|
3947
|
+
ui as IpInput,
|
|
3924
3948
|
Bt as ModbusTCPClientProtocolItem,
|
|
3925
3949
|
Kt as ModbusTCPServerProtocolItem,
|
|
3926
3950
|
jt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3927
3951
|
xr as MyButton,
|
|
3928
|
-
|
|
3952
|
+
fi as MyLibPlugin,
|
|
3953
|
+
Zr as ProtocolCollection,
|
|
3929
3954
|
re as ProtocolItem,
|
|
3930
3955
|
Ee as ProtocolType,
|
|
3931
|
-
|
|
3932
|
-
|
|
3956
|
+
_i as default,
|
|
3957
|
+
ot as protocolMap
|
|
3933
3958
|
};
|