smarteye-e-components 0.0.56 → 0.0.58

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