smarteye-e-components 0.0.58 → 0.0.60

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