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