@opengis/widgets 0.0.24 → 0.0.26

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,151 +1,151 @@
1
- (function(U,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@opengis/core")):typeof define=="function"&&define.amd?define(["exports","vue","@opengis/core"],n):(U=typeof globalThis<"u"?globalThis:U||self,n(U.WidgetLib={},U.Vue,U.OpenGISCore))})(this,function(U,n,Fs){"use strict";function Ps(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const js=Ps(n);/**
1
+ (function(Y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@opengis/core")):typeof define=="function"&&define.amd?define(["exports","vue","@opengis/core"],e):(Y=typeof globalThis<"u"?globalThis:Y||self,e(Y.WidgetLib={},Y.Vue,Y.OpenGISCore))})(this,function(Y,e,no){"use strict";function so(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const oo=so(e);/**
2
2
  * @license lucide-vue-next v0.535.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const un=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,o)=>o?o.toUpperCase():s.toLowerCase()),Hs=e=>{const t=zs(e);return t.charAt(0).toUpperCase()+t.slice(1)},Us=(...e)=>e.filter((t,s,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===s).join(" ").trim();/**
6
+ */const Tn=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ro=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,o)=>o?o.toUpperCase():s.toLowerCase()),io=t=>{const n=ro(t);return n.charAt(0).toUpperCase()+n.slice(1)},lo=(...t)=>t.filter((n,s,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===s).join(" ").trim();/**
7
7
  * @license lucide-vue-next v0.535.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var Je={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
11
+ */var at={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
12
12
  * @license lucide-vue-next v0.535.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const qs=({size:e,strokeWidth:t=2,absoluteStrokeWidth:s,color:o,iconNode:i,name:l,class:r,...c},{slots:a})=>n.h("svg",{...Je,width:e||Je.width,height:e||Je.height,stroke:o||Je.stroke,"stroke-width":s?Number(t)*24/Number(e):t,class:Us("lucide",...l?[`lucide-${un(Hs(l))}-icon`,`lucide-${un(l)}`]:["lucide-icon"]),...c},[...i.map(p=>n.h(...p)),...a.default?[a.default()]:[]]);/**
16
+ */const ao=({size:t,strokeWidth:n=2,absoluteStrokeWidth:s,color:o,iconNode:r,name:l,class:i,...a},{slots:c})=>e.h("svg",{...at,width:t||at.width,height:t||at.height,stroke:o||at.stroke,"stroke-width":s?Number(n)*24/Number(t):n,class:lo("lucide",...l?[`lucide-${Tn(io(l))}-icon`,`lucide-${Tn(l)}`]:["lucide-icon"]),...a},[...r.map(p=>e.h(...p)),...c.default?[c.default()]:[]]);/**
17
17
  * @license lucide-vue-next v0.535.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const j=(e,t)=>(s,{slots:o})=>n.h(qs,{...s,iconNode:t,name:e},o);/**
21
+ */const K=(t,n)=>(s,{slots:o})=>e.h(ao,{...s,iconNode:n,name:t},o);/**
22
22
  * @license lucide-vue-next v0.535.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Ws=j("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
26
+ */const co=K("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
27
27
  * @license lucide-vue-next v0.535.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Ks=j("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
31
+ */const po=K("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
32
32
  * @license lucide-vue-next v0.535.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Gs=j("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
36
+ */const fo=K("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
37
37
  * @license lucide-vue-next v0.535.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const gn=j("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
41
+ */const $n=K("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
42
42
  * @license lucide-vue-next v0.535.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const Js=j("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
46
+ */const mo=K("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
47
47
  * @license lucide-vue-next v0.535.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const we=j("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
51
+ */const Fe=K("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
52
52
  * @license lucide-vue-next v0.535.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const Ys=j("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
56
+ */const ho=K("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
57
57
  * @license lucide-vue-next v0.535.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const Zs=j("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
61
+ */const uo=K("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
62
62
  * @license lucide-vue-next v0.535.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const Xs=j("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);/**
66
+ */const go=K("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);/**
67
67
  * @license lucide-vue-next v0.535.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const Qs=j("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
71
+ */const yo=K("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
72
72
  * @license lucide-vue-next v0.535.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const yn=j("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
76
+ */const Dn=K("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
77
77
  * @license lucide-vue-next v0.535.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const Vs=j("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
81
+ */const vo=K("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
82
82
  * @license lucide-vue-next v0.535.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const vn=j("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
86
+ */const In=K("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
87
87
  * @license lucide-vue-next v0.535.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const eo=j("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);/**
91
+ */const bo=K("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);/**
92
92
  * @license lucide-vue-next v0.535.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const bn=j("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
96
+ */const On=K("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
97
97
  * @license lucide-vue-next v0.535.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const to=j("sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);/**
101
+ */const ko=K("sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);/**
102
102
  * @license lucide-vue-next v0.535.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const no=j("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
106
+ */const Eo=K("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
107
107
  * @license lucide-vue-next v0.535.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Nt=j("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
111
+ */const Mt=K("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
112
112
  * @license lucide-vue-next v0.535.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const so=j("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/**
116
+ */const No=K("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/**
117
117
  * @license lucide-vue-next v0.535.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const _t=j("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
121
+ */const Lt=K("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
122
122
  * @license lucide-vue-next v0.535.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const oo=j("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
126
+ */const xo=K("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
127
127
  * @license lucide-vue-next v0.535.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const xt=j("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),io={class:"border-t pt-3 mt-4"},ro={class:"flex gap-2"},lo={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},ao={class:"flex-1 space-y-2"},co={class:"flex justify-between items-center"},po={class:"flex gap-2"},fo=["disabled"],kn=n.defineComponent({__name:"CommentInputZone",props:{isReply:{type:Boolean,required:!1,default:!1},isReplyModifiers:{}},emits:n.mergeModels(["sendComment"],["update:isReply"]),setup(e,{emit:t}){const s=n.useModel(e,"isReply"),o=n.ref(""),i=t,l=()=>{o.value.trim()&&(i("sendComment",o.value),o.value="")},r=c=>{(c.ctrlKey||c.metaKey)&&c.key==="Enter"&&(c.preventDefault(),l())};return(c,a)=>(n.openBlock(),n.createElementBlock("div",io,[n.createElementVNode("div",ro,[n.createElementVNode("span",lo,[n.createVNode(n.unref(_t),{class:"h-3 w-3 text-gray-500"})]),n.createElementVNode("div",ao,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=p=>o.value=p),onKeydown:r,placeholder:"Add a comment...",class:"w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"},null,544),[[n.vModelText,o.value]]),n.createElementVNode("div",co,[a[4]||(a[4]=n.createElementVNode("span",{class:"text-xs text-gray-500 hidden sm:inline"},"Cmd+Enter to send",-1)),n.createElementVNode("div",po,[s.value?(n.openBlock(),n.createElementBlock("button",{key:0,class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:a[1]||(a[1]=p=>s.value=!1)},[n.createVNode(n.unref(xt),{class:"h-3 w-3"}),a[2]||(a[2]=n.createTextVNode(" Cancel ",-1))])):n.createCommentVNode("",!0),n.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!o.value.trim(),onClick:l},[n.createVNode(n.unref(bn),{class:"h-3 w-3 mr-1"}),a[3]||(a[3]=n.createTextVNode(" Send ",-1))],8,fo)])])])])]))}}),mo={class:"z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md w-32 outline-none pointer-events-auto"},ho=n.defineComponent({__name:"CommentDetails",props:{showMoreOptions:{type:Boolean,required:!0,default:!1},showMoreOptionsModifiers:{}},emits:n.mergeModels(["edit","delete"],["update:showMoreOptions"]),setup(e,{emit:t}){const s=t,o=n.useModel(e,"showMoreOptions"),i=n.ref(),l=n.ref(!0),r=async p=>{o.value&&i.value&&!i.value.contains(p.target)&&!l.value&&(o.value=!1),l.value=!1},c=()=>{o.value=!1,s("edit")},a=()=>{o.value=!1,s("delete")};return n.onMounted(()=>{document.addEventListener("click",r)}),n.onUnmounted(()=>{document.removeEventListener("click",r)}),(p,h)=>(n.openBlock(),n.createElementBlock("div",{class:"absolute bg-white left-0 top-full transform min-w-max z-50",ref_key:"moreOptionsRef",ref:i},[n.createElementVNode("div",mo,[n.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs hover:bg-gray-100 transition-colors duration-300",onClick:c},[n.createVNode(n.unref(no),{class:"h-3 w-3 mr-2"}),h[0]||(h[0]=n.createTextVNode(" Edit ",-1))]),n.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs text-red-600 hover:bg-gray-100 transition-colors duration-300",onClick:a},[n.createVNode(n.unref(Nt),{class:"h-3 w-3 mr-2"}),h[1]||(h[1]=n.createTextVNode(" Delete ",-1))])])],512))}}),uo={class:"space-y-2"},go={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},yo={class:"flex-1 min-w-0 space-y-1 relative"},vo={class:"flex items-center gap-2"},bo={class:"font-medium text-xs"},ko={class:"text-xs text-gray-500"},Eo={key:0,class:"text-xs text-gray-700 leading-relaxed"},No={class:"flex justify-between text-xs"},_o={class:"flex items-center gap-2"},xo={key:0,class:"flex gap-2"},wo=["disabled"],So={key:0,class:"ml-8 space-y-1 border-l-2 border-gray-100 pl-3"},Co=n.defineComponent({__name:"CommentItem",props:{comment:{},isInside:{type:Boolean}},emits:["like","reply","edit","delete"],setup(e,{emit:t}){const s=t,o=e,i=n.ref(o.comment.text),l=n.ref("w-full p-2 rounded text-xs resize-none bg-transparent outline-none"),r=n.ref("w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"),c=n.ref(!1),a=n.ref(!1),p=n.ref(!1),h=n.ref(!1),d=f=>{const u=new Date,g=Math.floor((u.getTime()-f.getTime())/(1e3*60*60));return g<1?`${Math.floor((u.getTime()-f.getTime())/6e4)}m`:g<24?`${g}h`:`${Math.floor(g/24)}d`},m=()=>{h.value=!h.value,h.value?s("like",o.comment.id,"add"):s("like",o.comment.id,"delete")},k=()=>{s("edit",o.comment.id,i.value),p.value=!1},b=(f,u)=>{s("like",f,u)},y=(f,u)=>{s("edit",f,u)};return(f,u)=>{const g=n.resolveComponent("CommentItem",!0);return n.openBlock(),n.createElementBlock("div",uo,[n.createElementVNode("div",{class:n.normalizeClass(["group flex gap-2 p-2 rounded hover:bg-gray-50 transition-colors relative",p.value?"bg-gray-50":""])},[n.createElementVNode("span",go,[n.createVNode(n.unref(_t),{class:"h-3 w-3 text-gray-500"})]),n.createElementVNode("div",yo,[n.createElementVNode("div",vo,[n.createElementVNode("span",bo,n.toDisplayString(f.comment?.author),1),n.createElementVNode("span",ko,n.toDisplayString(d(f.comment?.createdAt)),1)]),p.value?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",{key:1,"onUpdate:modelValue":u[0]||(u[0]=N=>i.value=N),class:n.normalizeClass(p.value?r.value:l.value)},null,2)),[[n.vModelText,i.value]]):(n.openBlock(),n.createElementBlock("p",Eo,n.toDisplayString(f.comment?.text),1)),n.createElementVNode("div",No,[n.createElementVNode("div",_o,[n.createElementVNode("button",{class:n.normalizeClass(["flex items-center gap-1",h.value?"text-blue-600":"text-gray-500 hover:text-blue-600 transition-colors"]),onClick:u[1]||(u[1]=N=>m())},[n.createVNode(n.unref(Xs),{class:n.normalizeClass(["h-3 w-3",h.value?"fill-blue-600":""])},null,8,["class"]),n.createTextVNode(" "+n.toDisplayString(f.comment?.likes),1)],2),f.isInside?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,class:"text-gray-500 hover:text-blue-600 transition-colors",onClick:u[2]||(u[2]=N=>a.value=!0)},[n.createVNode(n.unref(eo),{class:"h-3 w-3"})])),n.createElementVNode("button",{class:"text-gray-400 hover:text-gray-600 transition-colors opacity-0 group-hover:opacity-100",type:"button",onClick:u[3]||(u[3]=N=>c.value=!0)},[n.createVNode(n.unref(Js),{class:"h-3 w-3"})])]),p.value?(n.openBlock(),n.createElementBlock("div",xo,[n.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:u[4]||(u[4]=N=>p.value=!1)},[n.createVNode(n.unref(xt),{class:"h-3 w-3"}),u[11]||(u[11]=n.createTextVNode(" Cancel ",-1))]),n.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!i.value.trim(),onClick:u[5]||(u[5]=N=>k())},[n.createVNode(n.unref(bn),{class:"h-3 w-3 mr-1"}),u[12]||(u[12]=n.createTextVNode(" Send ",-1))],8,wo)])):n.createCommentVNode("",!0)])]),c.value?(n.openBlock(),n.createBlock(ho,{key:0,showMoreOptions:c.value,"onUpdate:showMoreOptions":u[6]||(u[6]=N=>c.value=N),onEdit:u[7]||(u[7]=N=>p.value=!0),onDelete:u[8]||(u[8]=N=>f.$emit("delete",f.comment?.id)),comment:f.comment},null,8,["showMoreOptions","comment"])):n.createCommentVNode("",!0)],2),f.isInside?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",So,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.comment?.replies,N=>(n.openBlock(),n.createBlock(g,{key:N.id,comment:N,isInside:!0,onDelete:_=>f.$emit("delete",N.id),onLike:b,onEdit:y},null,8,["comment","onDelete"]))),128)),a.value&&!f.isInside?(n.openBlock(),n.createBlock(kn,{key:0,onSendComment:u[9]||(u[9]=N=>f.$emit("reply",f.comment?.id,N)),isReply:a.value,"onUpdate:isReply":u[10]||(u[10]=N=>a.value=N)},null,8,["isReply"])):n.createCommentVNode("",!0)]))])}}}),Bo=["id"],To={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},Ye=n.defineComponent({__name:"CommentsWidget",props:{title:{},comments:{},maxHeight:{},onAddComment:{type:Function},onReply:{type:Function},onLike:{type:Function},onDelete:{type:Function},onEdit:{type:Function},id:{},className:{},style:{}},emits:["add","reply","like","delete","edit"],setup(e,{emit:t}){const s=e,o=t,i=n.ref(s.comments??[]);async function l(){if(!s.id)return;const d=await fetch(`/api/widget/comment/${s.id}`).then(m=>m.json());i.value=d.rows.map(m=>({id:m.communication_id,author:m.username,text:m.body,createdAt:new Date(m.cdate)}))}i.value.length===0&&l();const r=async d=>{s.onAddComment?s.onAddComment(d):s.id&&(await fetch(`/api/widget/comment/${s.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:d})}),await l()),o("add",d)},c=(d,m)=>{s?.onLike?.(d,m),o("like",d,m)},a=(d,m)=>{s.onReply?.(d,m),o("reply",d,m)},p=async(d,m)=>{s.onEdit?s.onEdit(d,m):s.id&&(await fetch(`/api/widget/comment/${s.id}/${d}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:m})}),await l()),o("edit",d,m)},h=async d=>{s.onDelete?s.onDelete(d):s.id&&(await fetch(`/api/widget/comment/${s.id}/${d}`,{method:"DELETE"}),await l()),o("delete",d)};return(d,m)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["mx-auto font-sans",d.className]),id:d.id,style:n.normalizeStyle(d.style)},[d.title?(n.openBlock(),n.createElementBlock("h3",To,n.toDisplayString(d.title),1)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass([d.maxHeight?"overflow-y-auto":"","space-y-3"]),style:n.normalizeStyle({maxHeight:d.maxHeight+"px"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,k=>(n.openBlock(),n.createBlock(Co,{key:k.id,comment:k,onReply:a,onLike:c,onDelete:m[0]||(m[0]=b=>h(b)),onEdit:p},null,8,["comment"]))),128))],6),n.createVNode(kn,{onSendComment:m[1]||(m[1]=k=>r(k))})],14,Bo))}}),En=new Map([["file",{name:"File",color:"bg-green-100 text-green-700 border-green-200",icon:we}],["post",{name:"Post",color:"bg-blue-100 text-blue-700 border-blue-200",icon:to}],["user",{name:"User",color:"bg-purple-100 text-purple-700 border-purple-200",icon:so}],["custom",{name:"Custom",color:"bg-gray-100 text-gray-700 border-gray-200",icon:Qs}]]),$o={class:"mx-auto font-sans"},Do={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},Oo={class:"relative"},Io={class:"space-y-3"},Ao={class:"flex-1 min-w-0 pb-2"},Mo={class:"flex items-center gap-1.5 mb-1 mt-0.5"},Lo={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},Ro={class:"font-medium text-xs"},Fo={class:"text-xs text-gray-500"},Po={class:"space-y-1"},jo={class:"text-xs text-gray-700"},zo={class:"capitalize mr-1"},Ho={key:0,class:"inline-flex items-center rounded-full border py-0.5 font-semibold transition-colors text-foreground text-xs h-4 px-1 capitalize"},Uo={key:0,class:"flex items-center gap-1 text-xs"},qo={key:0,class:"bg-red-50 text-red-600 px-1.5 py-0.5 rounded text-xs border border-red-200"},Wo={key:2,class:"bg-green-50 text-green-600 px-1.5 py-0.5 rounded text-xs border border-green-200"},Ze=n.defineComponent({__name:"HistoryWidget",props:{data:{},title:{},maxHeight:{},id:{},className:{},style:{}},setup(e){const t=e,s=n.ref(Array.isArray(t.data)?t.data:[]);s.value.length===0&&t.id&&o();async function o(){const i=await fetch(`/api/widget/history/${t.id}`);if(!i.ok)return{data:[]};const l=await i.json();l.rows.forEach(r=>{r.timestamp=new Date(r.cdate),r.id=r.entity_id,r.entityType=r.entity_type,r.entityId=r.entity_id,r.action=r.change_type,r.userId=r.change_user_id,r.userName=r.username,r.timestamp=new Date(r.cdate),r.description=r.username,r.status=r.username}),s.value=l.rows}return(i,l)=>(n.openBlock(),n.createElementBlock("div",$o,[i.title?(n.openBlock(),n.createElementBlock("h3",Do,n.toDisplayString(i.title),1)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(i.maxHeight?"overflow-y-auto":""),style:n.normalizeStyle({maxHeight:i.maxHeight+"px"})},[n.createElementVNode("div",Oo,[l[0]||(l[0]=n.createElementVNode("div",{class:"absolute left-3 top-0 bottom-0 w-0.5 bg-gray-200"},null,-1)),n.createElementVNode("div",Io,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,r=>(n.openBlock(),n.createElementBlock("div",{class:"relative flex items-start gap-2",key:r?.id},[n.createElementVNode("div",{class:n.normalizeClass(`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center border bg-white relative z-10 ${n.unref(En).get(r?.entityType)?.color}`)},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(En).get(r?.entityType)?.icon),{class:"h-3 w-3"}))],2),n.createElementVNode("div",Ao,[n.createElementVNode("div",Mo,[n.createElementVNode("span",Lo,[n.createVNode(n.unref(_t),{class:"h-3 w-3 text-gray-500"})]),n.createElementVNode("span",Ro,n.toDisplayString(r?.userName),1),n.createElementVNode("span",Fo,n.toDisplayString(r?.timestamp.toLocaleTimeString("ua-UA",{hour:"2-digit",minute:"2-digit"})),1)]),n.createElementVNode("div",Po,[n.createElementVNode("div",jo,[n.createElementVNode("span",zo,n.toDisplayString(r?.action),1),r?.entityId?(n.openBlock(),n.createElementBlock("span",Ho,n.toDisplayString(r?.entityId),1)):n.createCommentVNode("",!0)]),r?.changes?.[r?.entityId]?(n.openBlock(),n.createElementBlock("div",Uo,[r?.changes?.[r?.entityId]?.old?(n.openBlock(),n.createElementBlock("span",qo,n.toDisplayString(r?.changes?.[r?.entityId]?.old),1)):n.createCommentVNode("",!0),r?.changes?.[r?.entityId]?.old&&r?.changes?.[r?.entityId]?.new?(n.openBlock(),n.createBlock(n.unref(Ks),{key:1,class:"h-2 w-2 text-gray-400"})):n.createCommentVNode("",!0),r?.changes?.[r?.entityId]?.new?(n.openBlock(),n.createElementBlock("span",Wo,n.toDisplayString(r?.changes?.[r?.entityId]?.new),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])])]))),128))])])],6)]))}}),Ko={key:0,class:"text-xl font-semibold"},Go={class:"flex gap-1"},Jo={class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border rounded-md text-xs h-7 px-2 cursor-pointer"},Yo=n.defineComponent({__name:"FileHeader",props:n.mergeModels({title:{}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["onAddFile"],["update:modelValue"]),setup(e){const t=n.useModel(e,"modelValue"),s={active:"bg-blue-100 text-black hover:bg-blue-100",inactive:"bg-white text-black hover:bg-blue-100"};return(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flex flex-col sm:flex-row gap-3 mb-4",o.title?"justify-between sm:items-center":"justify-end sm:items-center"])},[o.title?(n.openBlock(),n.createElementBlock("h3",Ko,n.toDisplayString(o.title),1)):n.createCommentVNode("",!0),n.createElementVNode("div",Go,[n.createElementVNode("button",{class:n.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",t.value==="list"?s.active:s.inactive]),onClick:i[0]||(i[0]=l=>t.value="list")},[n.createVNode(n.unref(Vs),{class:"h-4 w-4"})],2),n.createElementVNode("button",{class:n.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",t.value==="grid"?s.active:s.inactive]),onClick:i[1]||(i[1]=l=>t.value="grid")},[n.createVNode(n.unref(Zs),{class:"h-4 w-4"})],2),n.createElementVNode("label",null,[n.createElementVNode("input",{type:"file",class:"hidden",onChange:i[2]||(i[2]=l=>o.$emit("onAddFile",l))},null,32),n.createElementVNode("div",Jo,[n.createVNode(n.unref(vn),{class:"h-4 w-4"}),i[3]||(i[3]=n.createTextVNode(" Додати файл ",-1))])])])],2))}}),wt={pdf:{color:"bg-red-100 text-red-700 border-red-200",icon:we,label:"PDF"},sketch:{color:"bg-gray-100 text-gray-700 border-gray-200",icon:Ys,label:"SKETCH"},mp4:{color:"bg-purple-100 text-purple-700 border-purple-200",icon:oo,label:"VIDEO"},docx:{color:"bg-blue-100 text-blue-700 border-blue-200",icon:we,label:"DOC"},zip:{color:"bg-orange-100 text-orange-700 border-orange-200",icon:Ws,label:"ARCHIVE"},png:{color:"bg-green-100 text-green-700 border-green-200",icon:yn,label:"IMAGE"},jpg:{color:"bg-green-100 text-green-700 border-green-200",icon:yn,label:"IMAGE"},xlsx:{color:"bg-emerald-100 text-emerald-700 border-emerald-200",icon:we,label:"EXCEL"},pptx:{color:"bg-amber-100 text-amber-700 border-amber-200",icon:we,label:"PPT"}};function Nn(e,t="en"){const s={month:"short",day:"numeric"};return new Intl.DateTimeFormat(t,s).format(e)}function _n(e){if(e===0)return"0 B";const t=1024,s=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${s[o]}`}const Zo={class:"space-y-0.5"},Xo=["onClick"],Qo=["onClick"],Vo={class:"flex items-center gap-2"},ei={class:"font-medium text-xs truncate hover:text-blue-600 cursor-pointer"},ti={class:"hidden sm:block text-xs text-gray-500 w-16 text-right"},ni={class:"hidden md:block text-xs text-gray-500 w-12 text-right"},si={class:"flex items-center gap-1"},oi=["onClick"],ii=["onClick"],ri=n.defineComponent({__name:"FileList",props:{files:{}},emits:["delete","download","openLightbox"],setup(e){return(t,s)=>(n.openBlock(),n.createElementBlock("div",Zo,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.files,o=>(n.openBlock(),n.createElementBlock("div",{class:"flex items-center gap-2 p-1.5 rounded hover:bg-gray-50 group border-b border-gray-100 last:border-b-0",key:o.id,onClick:n.withModifiers(i=>t.$emit("openLightbox",o),["stop"])},[n.createElementVNode("div",{class:n.normalizeClass(["p-1 rounded",n.unref(wt)[o?.ext]?.color||"bg-blue-100 text-blue-700 border-blue-200"])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(wt)[o?.ext]?.icon||n.unref(wt).pdf.icon),{class:"h-3 w-3"}))],2),n.createElementVNode("div",{class:"flex-1 min-w-0",onClick:i=>t.$emit("openLightbox",o)},[n.createElementVNode("div",Vo,[n.createElementVNode("span",ei,n.toDisplayString(o?.uploaded_name||o?.name),1)])],8,Qo),n.createElementVNode("div",ti,n.toDisplayString(n.unref(_n)(o.size)),1),n.createElementVNode("div",ni,n.toDisplayString(n.unref(Nn)(o.createdAt)),1),n.createElementVNode("div",si,[n.createElementVNode("button",{onClick:n.withModifiers(i=>t.$emit("download",o),["stop"]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity"},[n.createVNode(n.unref(gn),{class:"h-3 w-3"})],8,oi),n.createElementVNode("button",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700",onClick:n.withModifiers(i=>t.$emit("delete",i,o?.file_id),["stop"])},[n.createVNode(n.unref(Nt),{class:"h-3 w-3"})],8,ii)])],8,Xo))),128))]))}}),li={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3"},ai=["onClick"],ci={class:"space-y-2"},di={class:"flex justify-center items-center w-full aspect-[4/3] bg-gray-100 rounded overflow-hidden"},pi=["src"],fi={class:"space-y-1"},mi=["title"],hi={class:"text-xs text-gray-500 text-left"},ui={class:"absolute top-2 right-1 flex items-center gap-1"},gi=["onClick"],yi=["onClick"],vi=n.defineComponent({__name:"FileGrid",props:{files:{}},emits:["delete","download","openLightbox"],setup(e){return(t,s)=>(n.openBlock(),n.createElementBlock("div",li,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.files,o=>(n.openBlock(),n.createElementBlock("div",{key:o.id,onClick:n.withModifiers(i=>t.$emit("openLightbox",o),["stop"]),class:"group relative border rounded-lg p-2 hover:shadow-md transition-all bg-white hover:bg-gray-50 cursor-pointer"},[n.createElementVNode("div",ci,[n.createElementVNode("div",di,[o.ext==="png"||o.ext==="jpg"||o.ext==="jpeg"||o.ext==="gif"||o.ext==="svg"||o.ext==="webp"?(n.openBlock(),n.createElementBlock("img",{key:0,src:`/file/resize?filepath=${o?.file_path}&w=500`,alt:"file",class:"w-full h-full object-cover"},null,8,pi)):(n.openBlock(),n.createBlock(n.unref(we),{key:1,class:"h-10 w-10 text-gray-500"}))]),n.createElementVNode("div",fi,[n.createElementVNode("h3",{class:"font-medium text-xs leading-tight text-left",title:o.uploaded_name||o.name},n.toDisplayString(o.uploaded_name||o.name),9,mi),n.createElementVNode("p",hi,n.toDisplayString(n.unref(Nn)(o.createdAt))+", "+n.toDisplayString(n.unref(_n)(o.size)),1)])]),n.createElementVNode("div",ui,[n.createElementVNode("button",{onClick:n.withModifiers(i=>t.$emit("download",o),["stop"]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50"},[n.createVNode(n.unref(gn),{class:"h-3 w-3"})],8,gi),n.createElementVNode("button",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700 hover:bg-red-50",onClick:n.withModifiers(i=>t.$emit("delete",i,o?.file_id),["stop"])},[n.createVNode(n.unref(Nt),{class:"h-3 w-3"})],8,yi)])],8,ai))),128))]))}}),bi={class:"mx-auto font-sans"},ki={key:1},Xe=n.defineComponent({__name:"FilesWidget",props:{title:{},view:{},files:{default:()=>[]},maxHeight:{},onAddFile:{},id:{},className:{},style:{},onDelete:{}},emits:["delete","add","openLightbox"],setup(e,{emit:t}){const s=e,o=n.ref(!1),i=n.ref(null),l=n.ref(!1),r=n.ref(0),c=n.ref(s.files??[]),a=t;c.value.length===0&&u();const p=(_,v)=>{i.value=v,o.value=!0},h=()=>{i.value&&(b(i.value),i.value=null,o.value=!1)},d=n.computed(()=>Array.isArray(c.value)?c.value.map(_=>_?.file_path):[]),m=_=>{const v=d.value.findIndex(w=>w===_.file_path);v!==-1&&(l.value=!0,r.value=v)},k=_=>{s.onAddFile?s.onAddFile(_):g(_),a("add",_)},b=_=>{s.onDelete?s.onDelete(_):N(_),a("delete",_)},y=_=>{const v=document.createElement("a");v.setAttribute("download",_?.uploaded_name||_?.name),v.href=_?.file_path||_?.path,v.click()},f=n.ref("list");async function u(){if(!s.id)return;const _=await fetch(`/api/widget/file/${s.id}`).then(v=>v.json());_.rows.forEach(v=>{v.timestamp=new Date(v.cdate),v.id=v.entity_id,v.entityType=v.entity_type,v.entityId=v.entity_id,v.entityType=v.entity_type,v.action=v.change_type,v.userId=v.change_user_id,v.userName=v.username,v.timestamp=new Date(v.cdate),v.description=v.username,v.status=v.username}),c.value=_.rows}const g=async _=>{if(!(!_.target||!_.target.files||_.target.files.length===0))try{await Promise.all(Array.from(_.target.files).map(async v=>{const w=new FormData;w.append("file",v);const E=`/api/widget/file/${s.id}`,x=await fetch(E,{method:"POST",body:w});if(!x.ok)throw new Error(`HTTP error! status: ${x.status}`);return v})),await u()}catch(v){console.error("Помилка при завантаженні файлів:",v)}},N=async _=>{try{await fetch(`/api/widget/file/${s.id}/${_}`,{method:"DELETE"}),await u()}catch(v){console.error(v)}};return(_,v)=>{const w=n.resolveComponent("MessageBox"),E=n.resolveComponent("Lightbox");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",bi,[n.createVNode(Yo,{modelValue:f.value,"onUpdate:modelValue":v[0]||(v[0]=x=>f.value=x),title:s.title,onOnAddFile:v[1]||(v[1]=x=>k(x))},null,8,["modelValue","title"]),c.value.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(_.maxHeight?"overflow-y-auto":""),style:n.normalizeStyle({maxHeight:_.maxHeight+"px"})},[f.value==="list"?(n.openBlock(),n.createBlock(ri,{key:0,onDelete:p,onDownload:y,onOpenLightbox:v[2]||(v[2]=x=>m(x)),files:c.value},null,8,["files"])):n.createCommentVNode("",!0),f.value==="grid"?(n.openBlock(),n.createBlock(vi,{key:1,onDelete:p,onDownload:y,onOpenLightbox:v[3]||(v[3]=x=>m(x)),files:c.value},null,8,["files"])):n.createCommentVNode("",!0)],6)):(n.openBlock(),n.createElementBlock("div",ki,v[6]||(v[6]=[n.createElementVNode("div",{class:"flex items-center justify-center h-full"},[n.createElementVNode("p",{class:"text-gray-500 leading-[3]"},"Файлів не знайдено")],-1)])))]),n.createVNode(w,{modelValue:o.value,"onUpdate:modelValue":v[4]||(v[4]=x=>o.value=x),onConfirm:h,title:"Ви впевнені?",message:"Ви впевнені, що хочете видалити цей файл?",confirmButtonText:"Так, я впевнена/ий",cancelButtonText:"Скасувати"},null,8,["modelValue"]),n.createVNode(E,{modelValue:l.value,"onUpdate:modelValue":v[5]||(v[5]=x=>l.value=x),images:d.value,"start-index":r.value},null,8,["modelValue","images","start-index"])],64)}}}),Ei={key:0,class:"image-wrapper h-full max-h-[400px]",id:"lightbox-gallery"},Ni=["onClick"],_i={key:0,rel:"noreferrer",class:"relative block h-full w-full"},xi=["src"],wi={key:0,class:"thumb-cover"},Si=n.defineComponent({__name:"GalleryContent",props:{title:{},items:{},columns:{},maxHeight:{},onAddImage:{type:Function},onDelete:{type:Function},id:{},className:{},style:{}},emits:["delete"],setup(e,{emit:t}){const s=t,o=n.ref(!1),i=n.ref(0),l=e,r=n.computed(()=>Array.isArray(l.items)?l.items.map(a=>a?.file_path):[]),c=a=>{const p=r.value.findIndex(h=>h===a.file_path);p!==-1&&(o.value=!0,i.value=p)};return(a,p)=>{const h=n.resolveComponent("Lightbox");return a.items?.length>=1?(n.openBlock(),n.createElementBlock("div",Ei,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.items,(d,m)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["h-full w-full image"+m,"cursor-pointer bg-teal-500 rounded-[3px]"]),key:m,onClick:n.withModifiers(k=>c(d),["stop"])},[m<5?(n.openBlock(),n.createElementBlock("div",_i,[n.createElementVNode("img",{src:`/file/resize?filepath=${d?.file_path}&w=500`,alt:"alt",height:"auto",width:"100%",class:n.normalizeClass(["object-cover h-full w-full bg-gray-200 rounded-[3px]",m===0?"max-h-[411px]":"max-h-[calc((411px-3px)/2)]"])},null,10,xi),m===4&&a.items?.length>5?(n.openBlock(),n.createElementBlock("div",wi," +"+n.toDisplayString(a.items?.length-5),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],10,Ni))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Math.max(0,5-a.items.length),d=>(n.openBlock(),n.createElementBlock("div",{key:"empty-"+d,class:n.normalizeClass(["h-full w-full image"+(a.items.length+d-1),"bg-gray-300 rounded-[3px]"])},null,2))),128)),n.createVNode(h,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=d=>o.value=d),images:r.value,"start-index":i.value,delete:"true",download:"true",onDelete:p[1]||(p[1]=d=>s("delete",d))},null,8,["modelValue","images","start-index"])])):n.createCommentVNode("",!0)}}}),Ci={key:0,class:"text-xl font-semibold"},Bi={class:"flex gap-1"},Ti={class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border rounded-md text-xs h-7 px-2 cursor-pointer"},$i=n.defineComponent({__name:"widgetHeader",props:{title:{}},emits:["onAddImage"],setup(e){return(t,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flex flex-col sm:flex-row gap-3 mb-4",t.title?"justify-between sm:items-center":"justify-end sm:items-center"])},[t.title?(n.openBlock(),n.createElementBlock("h3",Ci,n.toDisplayString(t.title),1)):n.createCommentVNode("",!0),n.createElementVNode("div",Bi,[n.createElementVNode("label",null,[n.createElementVNode("input",{type:"file",class:"hidden",onChange:s[0]||(s[0]=o=>t.$emit("onAddImage",o))},null,32),n.createElementVNode("div",Ti,[n.createVNode(n.unref(vn),{class:"h-4 w-4"}),s[1]||(s[1]=n.createTextVNode(" Додати зображення ",-1))])])])],2))}}),Di={class:"w-full mx-auto font-sans",ref:"containerRef"},Oi={key:1},Qe=n.defineComponent({__name:"GalleryWidget",props:{title:{},items:{default:()=>[]},columns:{},maxHeight:{},onAddImage:{},onDelete:{},id:{},className:{},style:{}},emits:["delete","add","openLightbox"],setup(e,{emit:t}){const s=e,o=n.ref(s.items??[]),i=t;o.value.length===0&&a();const l=h=>{s.onAddImage?s.onAddImage(h):c(h),i("add",h)},r=h=>{const d=o.value.find(m=>m.file_path===h)?.file_id;d&&(s.onDelete?s.onDelete(d):p(d))},c=async h=>{if(!(!h.target||!h.target.files||h.target.files.length===0))try{await Promise.all(Array.from(h.target.files).map(async d=>{const m=new FormData;m.append("file",d);const k=`/api/widget/file/${s.id}`,b=await fetch(k,{method:"POST",body:m});if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);return d})),await a()}catch(d){console.error("Помилка при завантаженні файлів:",d)}};async function a(){if(!s.id)return;const h=await fetch(`/api/widget/file/${s.id}`).then(d=>d.json());o.value=h.rows}const p=async h=>{try{await fetch(`/api/widget/file/${s.id}/${h}`,{method:"DELETE"}),await a()}catch(d){console.error(d)}};return(h,d)=>(n.openBlock(),n.createElementBlock("div",Di,[n.createVNode($i,{title:h.title,onOnAddImage:d[0]||(d[0]=m=>l(m))},null,8,["title"]),o.value.length>0?(n.openBlock(),n.createBlock(Si,{key:0,items:o.value,onDelete:d[1]||(d[1]=m=>r(m))},null,8,["items"])):(n.openBlock(),n.createElementBlock("div",Oi,d[2]||(d[2]=[n.createElementVNode("div",{class:"flex items-center justify-center h-full"},[n.createElementVNode("p",{class:"text-gray-500 leading-[3]"},"Зображень не знайдено")],-1)])))],512))}}),Ii={class:"text-value"},Ai={class:"text-sm text-gray-900"},Mi=n.defineComponent({__name:"TextValue",props:{item:{}},setup(e){const t=e,s=n.computed(()=>{const o=t.item.value;return typeof o=="boolean"?o?"Так":"Ні":o==null?"—":String(o)});return(o,i)=>(n.openBlock(),n.createElementBlock("div",Ii,[n.createElementVNode("span",Ai,n.toDisplayString(s.value),1)]))}}),ye=(e,t)=>{const s=e.__vccOpts||e;for(const[o,i]of t)s[o]=i;return s},Li=ye(Mi,[["__scopeId","data-v-c14550b7"]]),Ri={class:"link-value"},Fi=["href"],Pi=ye(n.defineComponent({__name:"LinkValue",props:{item:{}},setup(e){const t=e,s=n.computed(()=>{const o=String(t.item.value);try{const i=new URL(o);return i.hostname+i.pathname}catch{return o}});return(o,i)=>(n.openBlock(),n.createElementBlock("div",Ri,[n.createElementVNode("a",{href:String(o.item.value),target:"_blank",rel:"noopener noreferrer",class:"text-blue-600 hover:text-blue-800 underline text-sm"},[n.createTextVNode(n.toDisplayString(s.value)+" ",1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-external-link-alt ml-1 text-xs"},null,-1))],8,Fi)]))}}),[["__scopeId","data-v-e6eb07a6"]]),ji={class:"date-value"},zi={class:"text-sm text-gray-900"},Hi=ye(n.defineComponent({__name:"DateValue",props:{item:{}},setup(e){const t=e,s=n.computed(()=>{const o=t.item.value;if(o instanceof Date)return o.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"});if(typeof o=="string"){const i=new Date(o);if(!isNaN(i.getTime()))return i.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}return String(o)});return(o,i)=>(n.openBlock(),n.createElementBlock("div",ji,[n.createElementVNode("span",zi,n.toDisplayString(s.value),1)]))}}),[["__scopeId","data-v-b9600618"]]),Ui={class:"status-value"},qi={key:0,class:"mr-1"},Wi=ye(n.defineComponent({__name:"StatusValue",props:{item:{}},setup(e){const t=e,s=n.computed(()=>{switch(String(t.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"bg-green-100 text-green-800";case"inactive":case"неактивний":case"pending":case"очікує":return"bg-yellow-100 text-yellow-800";case"error":case"помилка":case"failed":case"неуспішно":return"bg-red-100 text-red-800";case"draft":case"чернетка":return"bg-gray-100 text-gray-800";default:return"bg-blue-100 text-blue-800"}}),o=n.computed(()=>{switch(String(t.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"fas fa-check-circle";case"inactive":case"неактивний":case"pending":case"очікує":return"fas fa-clock";case"error":case"помилка":case"failed":case"неуспішно":return"fas fa-exclamation-circle";case"draft":case"чернетка":return"fas fa-edit";default:return"fas fa-info-circle"}});return(i,l)=>(n.openBlock(),n.createElementBlock("div",Ui,[n.createElementVNode("span",{class:n.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",s.value])},[o.value?(n.openBlock(),n.createElementBlock("span",qi,[n.createElementVNode("i",{class:n.normalizeClass(o.value)},null,2)])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(String(i.item.value)),1)],2)]))}}),[["__scopeId","data-v-c72e0b01"]]),Ki={class:"custom-value"},Gi={class:"text-sm text-gray-900"},Ji=ye(n.defineComponent({__name:"CustomValue",props:{item:{}},setup(e){return(t,s)=>(n.openBlock(),n.createElementBlock("div",Ki,[n.renderSlot(t.$slots,"default",{item:t.item,value:t.item.value},()=>[n.createElementVNode("span",Gi,n.toDisplayString(String(t.item.value)),1)],!0)]))}}),[["__scopeId","data-v-11a73810"]]),Yi=["id"],Zi={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},Xi={key:1,class:"overflow-x-auto"},Qi={class:"min-w-full divide-y divide-gray-200"},Vi={class:"bg-white divide-y divide-gray-200"},er={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},tr={class:"flex items-center gap-2"},nr=["title"],sr={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},or={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},ir={class:"flex items-start gap-3"},rr={key:0,class:"flex-shrink-0"},lr={class:"flex-1 min-w-0"},ar={class:"flex items-center gap-2 mb-2"},cr={class:"text-sm font-medium text-gray-900"},dr=["title"],pr={key:3,class:"overflow-x-auto"},fr={class:"min-w-full divide-y divide-gray-200"},mr={class:"bg-white divide-y divide-gray-200"},hr={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},ur={class:"flex items-center gap-2"},gr=["title"],yr={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},St=ye(n.defineComponent({__name:"DescriptionListWidget",props:{title:{},items:{},view:{},id:{},className:{},style:{}},setup(e){const t=s=>{switch(s.type){case"link":return Pi;case"date":return Hi;case"status":return Wi;case"custom":return Ji;default:return Li}};return(s,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["description-list-widget",s.className]),id:s.id,style:n.normalizeStyle(s.style)},[s.title?(n.openBlock(),n.createElementBlock("h3",Zi,n.toDisplayString(s.title),1)):n.createCommentVNode("",!0),s.view==="table"?(n.openBlock(),n.createElementBlock("div",Xi,[n.createElementVNode("table",Qi,[n.createElementVNode("tbody",Vi,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.items,i=>(n.openBlock(),n.createElementBlock("tr",{key:i.id||i.label},[n.createElementVNode("td",er,[n.createElementVNode("div",tr,[i.icon?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass([i.icon,"text-gray-500"])},null,2)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(i.label)+" ",1),i.tooltip?(n.openBlock(),n.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:i.tooltip},o[0]||(o[0]=[n.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,nr)):n.createCommentVNode("",!0)])]),n.createElementVNode("td",sr,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(t(i)),{item:i},null,8,["item"]))])]))),128))])])])):s.view==="grid"?(n.openBlock(),n.createElementBlock("div",or,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.items,i=>(n.openBlock(),n.createElementBlock("div",{key:i.id||i.label,class:"description-item-card bg-white border border-gray-200 rounded-lg p-4"},[n.createElementVNode("div",ir,[i.icon?(n.openBlock(),n.createElementBlock("div",rr,[n.createElementVNode("i",{class:n.normalizeClass([i.icon,"text-gray-500 text-lg"])},null,2)])):n.createCommentVNode("",!0),n.createElementVNode("div",lr,[n.createElementVNode("div",ar,[n.createElementVNode("h4",cr,n.toDisplayString(i.label),1),i.tooltip?(n.openBlock(),n.createElementBlock("span",{key:0,class:"text-gray-400 cursor-help",title:i.tooltip},o[1]||(o[1]=[n.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,dr)):n.createCommentVNode("",!0)]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(t(i)),{item:i},null,8,["item"]))])])]))),128))])):(n.openBlock(),n.createElementBlock("div",pr,[n.createElementVNode("table",fr,[n.createElementVNode("tbody",mr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.items,i=>(n.openBlock(),n.createElementBlock("tr",{key:i.id||i.label},[n.createElementVNode("td",hr,[n.createElementVNode("div",ur,[i.icon?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass([i.icon,"text-gray-500"])},null,2)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(i.label)+" ",1),i.tooltip?(n.openBlock(),n.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:i.tooltip},o[2]||(o[2]=[n.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,gr)):n.createCommentVNode("",!0)])]),n.createElementVNode("td",yr,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(t(i)),{item:i},null,8,["item"]))])]))),128))])])]))],14,Yi))}}),[["__scopeId","data-v-36d43e50"]]),vr={draw:{toolbar:{actions:{title:"Скасувати малювання",text:"Скасувати"},finish:{title:"Завершити малювання",text:"Завершити"},undo:{title:"Видалити останню точку",text:"Видалити останню"},buttons:{polyline:"Намалювати лінію",polygon:"Намалювати полігон",rectangle:"Намалювати прямокутник",circle:"Намалювати коло",marker:"Додати точку",circlemarker:"Додати маркер-коло"}},handlers:{circle:{tooltip:{start:"Клацніть і тягніть, щоб намалювати коло",end:"Відпустіть кнопку миші, щоб завершити"},radius:"Радіус"},circlemarker:{tooltip:{start:"Клацніть на карту, щоб додати маркер-коло"}},marker:{tooltip:{start:"Клацніть на карту, щоб додати точку"}},polygon:{tooltip:{start:"Клацніть, щоб почати малювати полігон",cont:"Клацайте, щоб продовжити малювати полігон",end:"Клацніть першу точку, щоб завершити полігон"}},polyline:{error:"<strong>Помилка:</strong> лінія не може перетинатися сама з собою",tooltip:{start:"Клацніть, щоб почати малювати лінію",cont:"Клацайте, щоб продовжити малювати лінію",end:"Клацніть останню точку, щоб завершити лінію"}},rectangle:{tooltip:{start:"Клацніть і тягніть, щоб намалювати прямокутник",end:"Відпустіть кнопку миші, щоб завершити"}},simpleshape:{tooltip:{end:"Відпустіть кнопку миші, щоб завершити"}}}},edit:{toolbar:{actions:{save:{title:"Зберегти зміни",text:"Зберегти"},cancel:{title:"Скасувати редагування",text:"Скасувати"},clearAll:{title:"Очистити всі шари",text:"Очистити все"}},buttons:{edit:"Редагувати шари",editDisabled:"Немає шарів для редагування",remove:"Видалити шари",removeDisabled:"Немає шарів для видалення"}},handlers:{edit:{tooltip:{text:"Перетягніть маркери, щоб редагувати шари",subtext:"Натисніть 'Скасувати', щоб повернутися"}},remove:{tooltip:{text:"Клацніть на шари, щоб видалити їх"}}}}};function br(e){return e?e.type==="FeatureCollection"||e.type==="Feature"?e:e.geom?{type:"Feature",geometry:{type:e.geom.type,coordinates:e.geom.coordinates},properties:{}}:e.type&&e.coordinates?{type:"Feature",geometry:e,properties:{}}:null:null}const kr={key:1,class:"bg-white absolute top-[10px] right-[10px] z-[500] border rounded-lg cursor-pointer"},Er={class:"flex items-center justify-between p-2 border-b"},Nr={class:"p-2 border-b"},_r={class:"flex items-center"},xr=["value"],wr={class:"ml-2"},Sr={class:"p-2"},Cr={class:"flex items-center"},Br={class:"flex items-center"},Tr=["onUpdate:modelValue","onChange"],$r={class:"ml-2"},Ve=n.defineComponent({__name:"MapWidget",props:{pattern:{},geom:{},id:{},tms:{}},setup(e){const t=n.getCurrentInstance(),s=e,o=n.ref(null);let i,l;const r=v(),c=n.ref(Object.keys(r)[0]);let a;const p=n.ref(!0),h=n.ref(!1),d=n.ref(!1),m=n.ref(k());function k(){return s.tms?(Array.isArray(s.tms)?s.tms:s.tms?.split(",")).map((E,x)=>({url:s.pattern?s.pattern.replace("{{id}}",E):E,name:"Шар "+x,visible:!0,i:x})):[]}function b(){return new Promise((w,E)=>{if(window.L&&window.L.Draw)return w(0);const x=T=>{if(Array.from(document.styleSheets).some(I=>I?.href?.includes(T)))return;const C=document.createElement("link");C.rel="stylesheet",C.href=T,document.head.appendChild(C)},S=T=>new Promise((O,C)=>{const I=Array.from(document.scripts).find(M=>M.src===T);if(I){I.addEventListener("load",()=>O()),I.addEventListener("error",M=>C(M));return}const R=document.createElement("script");R.src=T,R.async=!0,R.onload=()=>O(),R.onerror=M=>C(M),document.body.appendChild(R)});x("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"),x("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"),S("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js").then(()=>S("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js")).then(()=>w(0)).catch(E)})}let y=!1;n.onMounted(async()=>{await b(),L.drawLocal=vr;const w=t?.appContext.config.globalProperties.$settings?.center||[50,30];i=L.map(o.value,{zoomControl:!1}).setView(w,10),i.on("mousemove",x=>{y||(i.invalidateSize(),y=!0)}),L.control.zoom({position:"bottomright"}).addTo(i),a=L.tileLayer(r[c.value].url,{maxZoom:19}).addTo(i),l=new L.FeatureGroup().addTo(i),m.value.length&&_(0);const E=br(s.geom);if(E){const x=[];L.geoJSON(E).eachLayer(S=>x.push(S)),x.length&&l.addLayer(x[0]),l.toGeoJSON(),f()}});function f(w=30){const E=l.getLayers();if(!E.length)return;const S=L.featureGroup(E).getBounds();S&&S.isValid()&&i.fitBounds(S,{padding:[w,w],maxZoom:16})}function u(w){a&&a.removeFrom(i);const E=r[w];a=L.tileLayer(E.url,E.options||{}).addTo(i),a.bringToBack(),c.value=w}function g(){u(c.value)}function N(){l&&(p.value?l.addTo(i):l.removeFrom(i))}function _(w){const E=m.value[w];E.layer||(E.layer=L.tileLayer(E.url,{maxZoom:19})),E.visible?E.layer.addTo(i):E.layer.removeFrom(i)}function v(){return t?.appContext.config.globalProperties.$settings?.basemaps?t?.appContext.config.globalProperties.$settings?.basemaps.map((w,E)=>Object.assign(w,{key:`b${E}`,preview:w.preview||w.url.replace("{z}/{x}/{y}.png","13/4790/2762.png")})).reduce((w,E)=>({...w,[E.key]:E}),{}):{topo100:{url:"https://data.gki.com.ua/api-user/rtile/voyager/ua/{z}/{x}/{y}.png",preview:"https://data.gki.com.ua/api-user/rtile/voyager/ua/13/4790/2762.png"},orto10:{url:"https://data.gki.com.ua/api-user/rtile/orto10/ua/{z}/{x}/{y}.png",preview:"https://data.gki.com.ua/api-user/rtile/orto10/ua/13/4790/2762.png"},osmb:{url:"https://tile.openstreetmap.org.ua/styles/osm-bright/{z}/{x}/{y}.png",preview:"https://tile.openstreetmap.org.ua/styles/osm-bright/13/4790/2762.png"}}}return n.watch(h,()=>{setTimeout(()=>{i.invalidateSize()},50)}),(w,E)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(h.value?"fixed inset-0 w-screen h-screen z-[9999] bg-white":"relative min-h-[300px] h-full pb-[3.25rem]")},[n.createElementVNode("div",{ref_key:"mapContainer",ref:o,class:"w-full h-full min-h-[300px]"},null,512),d.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,onClick:E[0]||(E[0]=x=>d.value=!0),class:"z-[500] bg-white absolute top-[10px] right-[10px] p-2 border rounded-lg cursor-pointer layers-button"}," Шари ")),d.value?(n.openBlock(),n.createElementBlock("div",kr,[n.createElementVNode("div",Er,[E[6]||(E[6]=n.createElementVNode("div",null,"Шари",-1)),(n.openBlock(),n.createElementBlock("svg",{onClick:E[1]||(E[1]=x=>d.value=!1),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x w-4 h-4"},E[5]||(E[5]=[n.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),n.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),n.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))]),n.createElementVNode("div",Nr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(r),(x,S)=>(n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("label",_r,[n.withDirectives(n.createElementVNode("input",{type:"radio",name:"base-layer",value:S,"onUpdate:modelValue":E[2]||(E[2]=T=>c.value=T),onChange:g},null,40,xr),[[n.vModelRadio,c.value]]),n.createElementVNode("span",wr,n.toDisplayString(x.name||S),1)])]))),256))]),n.createElementVNode("div",Sr,[n.createElementVNode("label",Cr,[n.withDirectives(n.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":E[3]||(E[3]=x=>p.value=x),onChange:N},null,544),[[n.vModelCheckbox,p.value]]),E[7]||(E[7]=n.createElementVNode("span",{class:"ml-2"}," Геометрія/Межі ",-1))]),s.tms?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(m.value,x=>(n.openBlock(),n.createElementBlock("label",Br,[n.withDirectives(n.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":S=>x.visible=S,onChange:S=>_(x.i)},null,40,Tr),[[n.vModelCheckbox,x.visible]]),n.createElementVNode("span",$r,n.toDisplayString(x.name),1)]))),256)):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["absolute z-[500] bg-white p-2 border rounded-lg cursor-pointer fullscreen-button",h.value?"bottom-[100px] right-[7px]":"bottom-[150px] right-[7px]"]),onClick:E[4]||(E[4]=x=>h.value=!h.value)},E[8]||(E[8]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-5 h-5"},[n.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 8V4h4M20 8V4h-4M4 16v4h4m12-4v4h-4"})],-1)]),2)],2))}});/**
131
+ */const Rt=K("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),wo={class:"border-t pt-3 mt-4"},_o={class:"flex gap-2"},So={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},Co={class:"flex-1 space-y-2"},Bo={class:"flex justify-between items-center"},To={class:"flex gap-2"},$o=["disabled"],An=e.defineComponent({__name:"CommentInputZone",props:{isReply:{type:Boolean,required:!1,default:!1},isReplyModifiers:{}},emits:e.mergeModels(["sendComment"],["update:isReply"]),setup(t,{emit:n}){const s=e.useModel(t,"isReply"),o=e.ref(""),r=n,l=()=>{o.value.trim()&&(r("sendComment",o.value),o.value="")},i=a=>{(a.ctrlKey||a.metaKey)&&a.key==="Enter"&&(a.preventDefault(),l())};return(a,c)=>(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",_o,[e.createElementVNode("span",So,[e.createVNode(e.unref(Lt),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("div",Co,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=p=>o.value=p),onKeydown:i,placeholder:"Add a comment...",class:"w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"},null,544),[[e.vModelText,o.value]]),e.createElementVNode("div",Bo,[c[4]||(c[4]=e.createElementVNode("span",{class:"text-xs text-gray-500 hidden sm:inline"},"Cmd+Enter to send",-1)),e.createElementVNode("div",To,[s.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:c[1]||(c[1]=p=>s.value=!1)},[e.createVNode(e.unref(Rt),{class:"h-3 w-3"}),c[2]||(c[2]=e.createTextVNode(" Cancel ",-1))])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!o.value.trim(),onClick:l},[e.createVNode(e.unref(On),{class:"h-3 w-3 mr-1"}),c[3]||(c[3]=e.createTextVNode(" Send ",-1))],8,$o)])])])])]))}}),Do={class:"z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md w-32 outline-none pointer-events-auto"},Io=e.defineComponent({__name:"CommentDetails",props:{showMoreOptions:{type:Boolean,required:!0,default:!1},showMoreOptionsModifiers:{}},emits:e.mergeModels(["edit","delete"],["update:showMoreOptions"]),setup(t,{emit:n}){const s=n,o=e.useModel(t,"showMoreOptions"),r=e.ref(),l=e.ref(!0),i=async p=>{o.value&&r.value&&!r.value.contains(p.target)&&!l.value&&(o.value=!1),l.value=!1},a=()=>{o.value=!1,s("edit")},c=()=>{o.value=!1,s("delete")};return e.onMounted(()=>{document.addEventListener("click",i)}),e.onUnmounted(()=>{document.removeEventListener("click",i)}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:"absolute bg-white left-0 top-full transform min-w-max z-50",ref_key:"moreOptionsRef",ref:r},[e.createElementVNode("div",Do,[e.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs hover:bg-gray-100 transition-colors duration-300",onClick:a},[e.createVNode(e.unref(Eo),{class:"h-3 w-3 mr-2"}),h[0]||(h[0]=e.createTextVNode(" Edit ",-1))]),e.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs text-red-600 hover:bg-gray-100 transition-colors duration-300",onClick:c},[e.createVNode(e.unref(Mt),{class:"h-3 w-3 mr-2"}),h[1]||(h[1]=e.createTextVNode(" Delete ",-1))])])],512))}}),Oo={class:"space-y-2"},Ao={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},Mo={class:"flex-1 min-w-0 space-y-1 relative"},Lo={class:"flex items-center gap-2"},Ro={class:"font-medium text-xs"},Po={class:"text-xs text-gray-500"},Fo={key:0,class:"text-xs text-gray-700 leading-relaxed"},zo={class:"flex justify-between text-xs"},jo={class:"flex items-center gap-2"},Ho={key:0,class:"flex gap-2"},Uo=["disabled"],qo={key:0,class:"ml-8 space-y-1 border-l-2 border-gray-100 pl-3"},Wo=e.defineComponent({__name:"CommentItem",props:{comment:{},isInside:{type:Boolean}},emits:["like","reply","edit","delete"],setup(t,{emit:n}){const s=n,o=t,r=e.ref(o.comment.text),l=e.ref("w-full p-2 rounded text-xs resize-none bg-transparent outline-none"),i=e.ref("w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"),a=e.ref(!1),c=e.ref(!1),p=e.ref(!1),h=e.ref(!1),d=y=>{const x=new Date,D=Math.floor((x.getTime()-y.getTime())/(1e3*60*60));return D<1?`${Math.floor((x.getTime()-y.getTime())/6e4)}m`:D<24?`${D}h`:`${Math.floor(D/24)}d`},m=()=>{h.value=!h.value,h.value?s("like",o.comment.id,"add"):s("like",o.comment.id,"delete")},g=()=>{s("edit",o.comment.id,r.value),p.value=!1},v=(y,x)=>{s("like",y,x)},k=(y,x)=>{s("edit",y,x)};return(y,x)=>{const D=e.resolveComponent("CommentItem",!0);return e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("div",{class:e.normalizeClass(["group flex gap-2 p-2 rounded hover:bg-gray-50 transition-colors relative",p.value?"bg-gray-50":""])},[e.createElementVNode("span",Ao,[e.createVNode(e.unref(Lt),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("div",Mo,[e.createElementVNode("div",Lo,[e.createElementVNode("span",Ro,e.toDisplayString(y.comment?.author),1),e.createElementVNode("span",Po,e.toDisplayString(d(y.comment?.createdAt)),1)]),p.value?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,"onUpdate:modelValue":x[0]||(x[0]=C=>r.value=C),class:e.normalizeClass(p.value?i.value:l.value)},null,2)),[[e.vModelText,r.value]]):(e.openBlock(),e.createElementBlock("p",Fo,e.toDisplayString(y.comment?.text),1)),e.createElementVNode("div",zo,[e.createElementVNode("div",jo,[e.createElementVNode("button",{class:e.normalizeClass(["flex items-center gap-1",h.value?"text-blue-600":"text-gray-500 hover:text-blue-600 transition-colors"]),onClick:x[1]||(x[1]=C=>m())},[e.createVNode(e.unref(go),{class:e.normalizeClass(["h-3 w-3",h.value?"fill-blue-600":""])},null,8,["class"]),e.createTextVNode(" "+e.toDisplayString(y.comment?.likes),1)],2),y.isInside?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"text-gray-500 hover:text-blue-600 transition-colors",onClick:x[2]||(x[2]=C=>c.value=!0)},[e.createVNode(e.unref(bo),{class:"h-3 w-3"})])),e.createElementVNode("button",{class:"text-gray-400 hover:text-gray-600 transition-colors opacity-0 group-hover:opacity-100",type:"button",onClick:x[3]||(x[3]=C=>a.value=!0)},[e.createVNode(e.unref(mo),{class:"h-3 w-3"})])]),p.value?(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:x[4]||(x[4]=C=>p.value=!1)},[e.createVNode(e.unref(Rt),{class:"h-3 w-3"}),x[11]||(x[11]=e.createTextVNode(" Cancel ",-1))]),e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!r.value.trim(),onClick:x[5]||(x[5]=C=>g())},[e.createVNode(e.unref(On),{class:"h-3 w-3 mr-1"}),x[12]||(x[12]=e.createTextVNode(" Send ",-1))],8,Uo)])):e.createCommentVNode("",!0)])]),a.value?(e.openBlock(),e.createBlock(Io,{key:0,showMoreOptions:a.value,"onUpdate:showMoreOptions":x[6]||(x[6]=C=>a.value=C),onEdit:x[7]||(x[7]=C=>p.value=!0),onDelete:x[8]||(x[8]=C=>y.$emit("delete",y.comment?.id)),comment:y.comment},null,8,["showMoreOptions","comment"])):e.createCommentVNode("",!0)],2),y.isInside?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.comment?.replies,C=>(e.openBlock(),e.createBlock(D,{key:C.id,comment:C,isInside:!0,onDelete:B=>y.$emit("delete",C.id),onLike:v,onEdit:k},null,8,["comment","onDelete"]))),128)),c.value&&!y.isInside?(e.openBlock(),e.createBlock(An,{key:0,onSendComment:x[9]||(x[9]=C=>y.$emit("reply",y.comment?.id,C)),isReply:c.value,"onUpdate:isReply":x[10]||(x[10]=C=>c.value=C)},null,8,["isReply"])):e.createCommentVNode("",!0)]))])}}}),Ko=["id"],Go={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},ct=e.defineComponent({__name:"CommentsWidget",props:{title:{},comments:{},maxHeight:{},onAddComment:{type:Function},onReply:{type:Function},onLike:{type:Function},onDelete:{type:Function},onEdit:{type:Function},id:{},className:{},style:{}},emits:["add","reply","like","delete","edit"],setup(t,{emit:n}){const s=t,o=n,r=e.ref(s.comments??[]);async function l(){if(!s.id)return;const d=await fetch(`/api/widget/comment/${s.id}`).then(m=>m.json());r.value=d.rows.map(m=>({id:m.communication_id,author:m.username,text:m.body,createdAt:new Date(m.cdate)}))}r.value.length===0&&l();const i=async d=>{s.onAddComment?s.onAddComment(d):s.id&&(await fetch(`/api/widget/comment/${s.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:d})}),await l()),o("add",d)},a=(d,m)=>{s?.onLike?.(d,m),o("like",d,m)},c=(d,m)=>{s.onReply?.(d,m),o("reply",d,m)},p=async(d,m)=>{s.onEdit?s.onEdit(d,m):s.id&&(await fetch(`/api/widget/comment/${s.id}/${d}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:m})}),await l()),o("edit",d,m)},h=async d=>{s.onDelete?s.onDelete(d):s.id&&(await fetch(`/api/widget/comment/${s.id}/${d}`,{method:"DELETE"}),await l()),o("delete",d)};return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto font-sans",d.className]),id:d.id,style:e.normalizeStyle(d.style)},[d.title?(e.openBlock(),e.createElementBlock("h3",Go,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([d.maxHeight?"overflow-y-auto":"","space-y-3"]),style:e.normalizeStyle({maxHeight:d.maxHeight+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,g=>(e.openBlock(),e.createBlock(Wo,{key:g.id,comment:g,onReply:c,onLike:a,onDelete:m[0]||(m[0]=v=>h(v)),onEdit:p},null,8,["comment"]))),128))],6),e.createVNode(An,{onSendComment:m[1]||(m[1]=g=>i(g))})],14,Ko))}}),Mn=new Map([["file",{name:"File",color:"bg-green-100 text-green-700 border-green-200",icon:Fe}],["post",{name:"Post",color:"bg-blue-100 text-blue-700 border-blue-200",icon:ko}],["user",{name:"User",color:"bg-purple-100 text-purple-700 border-purple-200",icon:No}],["custom",{name:"Custom",color:"bg-gray-100 text-gray-700 border-gray-200",icon:yo}]]),Jo={class:"mx-auto font-sans"},Yo={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},Zo={class:"relative"},Xo={class:"space-y-3"},Qo={class:"flex-1 min-w-0 pb-2"},Vo={class:"flex items-center gap-1.5 mb-1 mt-0.5"},er={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},tr={class:"font-medium text-xs"},nr={class:"text-xs text-gray-500"},sr={class:"space-y-1"},or={class:"text-xs text-gray-700"},rr={class:"capitalize mr-1"},ir={key:0,class:"inline-flex items-center rounded-full border py-0.5 font-semibold transition-colors text-foreground text-xs h-4 px-1 capitalize"},lr={key:0,class:"flex items-center gap-1 text-xs"},ar={key:0,class:"bg-red-50 text-red-600 px-1.5 py-0.5 rounded text-xs border border-red-200"},cr={key:2,class:"bg-green-50 text-green-600 px-1.5 py-0.5 rounded text-xs border border-green-200"},dt=e.defineComponent({__name:"HistoryWidget",props:{data:{},title:{},maxHeight:{},id:{},className:{},style:{}},setup(t){const n=t,s=e.ref(Array.isArray(n.data)?n.data:[]);s.value.length===0&&n.id&&o();async function o(){const r=await fetch(`/api/widget/history/${n.id}`);if(!r.ok)return{data:[]};const l=await r.json();l.rows.forEach(i=>{i.timestamp=new Date(i.cdate),i.id=i.entity_id,i.entityType=i.entity_type,i.entityId=i.entity_id,i.action=i.change_type,i.userId=i.change_user_id,i.userName=i.username,i.timestamp=new Date(i.cdate),i.description=i.username,i.status=i.username}),s.value=l.rows}return(r,l)=>(e.openBlock(),e.createElementBlock("div",Jo,[r.title?(e.openBlock(),e.createElementBlock("h3",Yo,e.toDisplayString(r.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.maxHeight?"overflow-y-auto":""),style:e.normalizeStyle({maxHeight:r.maxHeight+"px"})},[e.createElementVNode("div",Zo,[l[0]||(l[0]=e.createElementVNode("div",{class:"absolute left-3 top-0 bottom-0 w-0.5 bg-gray-200"},null,-1)),e.createElementVNode("div",Xo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,i=>(e.openBlock(),e.createElementBlock("div",{class:"relative flex items-start gap-2",key:i?.id},[e.createElementVNode("div",{class:e.normalizeClass(`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center border bg-white relative z-10 ${e.unref(Mn).get(i?.entityType)?.color}`)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Mn).get(i?.entityType)?.icon),{class:"h-3 w-3"}))],2),e.createElementVNode("div",Qo,[e.createElementVNode("div",Vo,[e.createElementVNode("span",er,[e.createVNode(e.unref(Lt),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("span",tr,e.toDisplayString(i?.userName),1),e.createElementVNode("span",nr,e.toDisplayString(i?.timestamp.toLocaleTimeString("ua-UA",{hour:"2-digit",minute:"2-digit"})),1)]),e.createElementVNode("div",sr,[e.createElementVNode("div",or,[e.createElementVNode("span",rr,e.toDisplayString(i?.action),1),i?.entityId?(e.openBlock(),e.createElementBlock("span",ir,e.toDisplayString(i?.entityId),1)):e.createCommentVNode("",!0)]),i?.changes?.[i?.entityId]?(e.openBlock(),e.createElementBlock("div",lr,[i?.changes?.[i?.entityId]?.old?(e.openBlock(),e.createElementBlock("span",ar,e.toDisplayString(i?.changes?.[i?.entityId]?.old),1)):e.createCommentVNode("",!0),i?.changes?.[i?.entityId]?.old&&i?.changes?.[i?.entityId]?.new?(e.openBlock(),e.createBlock(e.unref(po),{key:1,class:"h-2 w-2 text-gray-400"})):e.createCommentVNode("",!0),i?.changes?.[i?.entityId]?.new?(e.openBlock(),e.createElementBlock("span",cr,e.toDisplayString(i?.changes?.[i?.entityId]?.new),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]))),128))])])],6)]))}}),dr={key:0,class:"text-xl font-semibold"},pr={class:"flex gap-1"},fr={class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border rounded-md text-xs h-7 px-2 cursor-pointer"},mr=e.defineComponent({__name:"FileHeader",props:e.mergeModels({title:{}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["onAddFile"],["update:modelValue"]),setup(t){const n=e.useModel(t,"modelValue"),s={active:"bg-blue-100 text-black hover:bg-blue-100",inactive:"bg-white text-black hover:bg-blue-100"};return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-col sm:flex-row gap-3 mb-4",o.title?"justify-between sm:items-center":"justify-end sm:items-center"])},[o.title?(e.openBlock(),e.createElementBlock("h3",dr,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",pr,[e.createElementVNode("button",{class:e.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",n.value==="list"?s.active:s.inactive]),onClick:r[0]||(r[0]=l=>n.value="list")},[e.createVNode(e.unref(vo),{class:"h-4 w-4"})],2),e.createElementVNode("button",{class:e.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",n.value==="grid"?s.active:s.inactive]),onClick:r[1]||(r[1]=l=>n.value="grid")},[e.createVNode(e.unref(uo),{class:"h-4 w-4"})],2),e.createElementVNode("label",null,[e.createElementVNode("input",{type:"file",class:"hidden",onChange:r[2]||(r[2]=l=>o.$emit("onAddFile",l))},null,32),e.createElementVNode("div",fr,[e.createVNode(e.unref(In),{class:"h-4 w-4"}),r[3]||(r[3]=e.createTextVNode(" Додати файл ",-1))])])])],2))}}),Pt={pdf:{color:"bg-red-100 text-red-700 border-red-200",icon:Fe,label:"PDF"},sketch:{color:"bg-gray-100 text-gray-700 border-gray-200",icon:ho,label:"SKETCH"},mp4:{color:"bg-purple-100 text-purple-700 border-purple-200",icon:xo,label:"VIDEO"},docx:{color:"bg-blue-100 text-blue-700 border-blue-200",icon:Fe,label:"DOC"},zip:{color:"bg-orange-100 text-orange-700 border-orange-200",icon:co,label:"ARCHIVE"},png:{color:"bg-green-100 text-green-700 border-green-200",icon:Dn,label:"IMAGE"},jpg:{color:"bg-green-100 text-green-700 border-green-200",icon:Dn,label:"IMAGE"},xlsx:{color:"bg-emerald-100 text-emerald-700 border-emerald-200",icon:Fe,label:"EXCEL"},pptx:{color:"bg-amber-100 text-amber-700 border-amber-200",icon:Fe,label:"PPT"}};function Ln(t,n="en"){const s={month:"short",day:"numeric"};return new Intl.DateTimeFormat(n,s).format(t)}function Rn(t){if(t===0)return"0 B";const n=1024,s=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,o)).toFixed(1))} ${s[o]}`}const hr={class:"space-y-0.5"},ur=["onClick"],gr=["onClick"],yr={class:"flex items-center gap-2"},vr={class:"font-medium text-xs truncate hover:text-blue-600 cursor-pointer"},br={class:"hidden sm:block text-xs text-gray-500 w-16 text-right"},kr={class:"hidden md:block text-xs text-gray-500 w-12 text-right"},Er={class:"flex items-center gap-1"},Nr=["onClick"],xr=["onClick"],wr=e.defineComponent({__name:"FileList",props:{files:{}},emits:["delete","download","openLightbox"],setup(t){return(n,s)=>(e.openBlock(),e.createElementBlock("div",hr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.files,o=>(e.openBlock(),e.createElementBlock("div",{class:"flex items-center gap-2 p-1.5 rounded hover:bg-gray-50 group border-b border-gray-100 last:border-b-0",key:o.id,onClick:e.withModifiers(r=>n.$emit("openLightbox",o),["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(["p-1 rounded",e.unref(Pt)[o?.ext]?.color||"bg-blue-100 text-blue-700 border-blue-200"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Pt)[o?.ext]?.icon||e.unref(Pt).pdf.icon),{class:"h-3 w-3"}))],2),e.createElementVNode("div",{class:"flex-1 min-w-0",onClick:r=>n.$emit("openLightbox",o)},[e.createElementVNode("div",yr,[e.createElementVNode("span",vr,e.toDisplayString(o?.uploaded_name||o?.name),1)])],8,gr),e.createElementVNode("div",br,e.toDisplayString(e.unref(Rn)(o.size)),1),e.createElementVNode("div",kr,e.toDisplayString(e.unref(Ln)(o.createdAt)),1),e.createElementVNode("div",Er,[e.createElementVNode("button",{onClick:e.withModifiers(r=>n.$emit("download",o),["stop"]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity"},[e.createVNode(e.unref($n),{class:"h-3 w-3"})],8,Nr),e.createElementVNode("button",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700",onClick:e.withModifiers(r=>n.$emit("delete",r,o?.file_id),["stop"])},[e.createVNode(e.unref(Mt),{class:"h-3 w-3"})],8,xr)])],8,ur))),128))]))}}),_r={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3"},Sr=["onClick"],Cr={class:"space-y-2"},Br={class:"flex justify-center items-center w-full aspect-[4/3] bg-gray-100 rounded overflow-hidden"},Tr=["src"],$r={class:"space-y-1"},Dr=["title"],Ir={class:"text-xs text-gray-500 text-left"},Or={class:"absolute top-2 right-1 flex items-center gap-1"},Ar=["onClick"],Mr=["onClick"],Lr=e.defineComponent({__name:"FileGrid",props:{files:{}},emits:["delete","download","openLightbox"],setup(t){return(n,s)=>(e.openBlock(),e.createElementBlock("div",_r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.files,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,onClick:e.withModifiers(r=>n.$emit("openLightbox",o),["stop"]),class:"group relative border rounded-lg p-2 hover:shadow-md transition-all bg-white hover:bg-gray-50 cursor-pointer"},[e.createElementVNode("div",Cr,[e.createElementVNode("div",Br,[o.ext==="png"||o.ext==="jpg"||o.ext==="jpeg"||o.ext==="gif"||o.ext==="svg"||o.ext==="webp"?(e.openBlock(),e.createElementBlock("img",{key:0,src:`/file/resize?filepath=${o?.file_path}&w=500`,alt:"file",class:"w-full h-full object-cover"},null,8,Tr)):(e.openBlock(),e.createBlock(e.unref(Fe),{key:1,class:"h-10 w-10 text-gray-500"}))]),e.createElementVNode("div",$r,[e.createElementVNode("h3",{class:"font-medium text-xs leading-tight text-left",title:o.uploaded_name||o.name},e.toDisplayString(o.uploaded_name||o.name),9,Dr),e.createElementVNode("p",Ir,e.toDisplayString(e.unref(Ln)(o.createdAt))+", "+e.toDisplayString(e.unref(Rn)(o.size)),1)])]),e.createElementVNode("div",Or,[e.createElementVNode("button",{onClick:e.withModifiers(r=>n.$emit("download",o),["stop"]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50"},[e.createVNode(e.unref($n),{class:"h-3 w-3"})],8,Ar),e.createElementVNode("button",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700 hover:bg-red-50",onClick:e.withModifiers(r=>n.$emit("delete",r,o?.file_id),["stop"])},[e.createVNode(e.unref(Mt),{class:"h-3 w-3"})],8,Mr)])],8,Sr))),128))]))}}),Rr={class:"mx-auto font-sans"},Pr={key:1},pt=e.defineComponent({__name:"FilesWidget",props:{title:{},view:{},files:{default:()=>[]},maxHeight:{},onAddFile:{},id:{},className:{},style:{},onDelete:{}},emits:["delete","add","openLightbox"],setup(t,{emit:n}){const s=t,o=e.ref(!1),r=e.ref(null),l=e.ref(!1),i=e.ref(0),a=e.ref(s.files??[]),c=n;a.value.length===0&&x();const p=(B,_)=>{r.value=_,o.value=!0},h=()=>{r.value&&(v(r.value),r.value=null,o.value=!1)},d=e.computed(()=>Array.isArray(a.value)?a.value.map(B=>B?.file_path):[]),m=B=>{const _=d.value.findIndex(O=>O===B.file_path);_!==-1&&(l.value=!0,i.value=_)},g=B=>{s.onAddFile?s.onAddFile(B):D(B),c("add",B)},v=B=>{s.onDelete?s.onDelete(B):C(B),c("delete",B)},k=B=>{const _=document.createElement("a");_.setAttribute("download",B?.uploaded_name||B?.name),_.href=B?.file_path||B?.path,_.click()},y=e.ref("list");async function x(){if(!s.id)return;const B=await fetch(`/api/widget/file/${s.id}`).then(_=>_.json());B.rows.forEach(_=>{_.timestamp=new Date(_.cdate),_.id=_.entity_id,_.entityType=_.entity_type,_.entityId=_.entity_id,_.entityType=_.entity_type,_.action=_.change_type,_.userId=_.change_user_id,_.userName=_.username,_.timestamp=new Date(_.cdate),_.description=_.username,_.status=_.username}),a.value=B.rows}const D=async B=>{if(!(!B.target||!B.target.files||B.target.files.length===0))try{await Promise.all(Array.from(B.target.files).map(async _=>{const O=new FormData;O.append("file",_);const $=`/api/widget/file/${s.id}`,f=await fetch($,{method:"POST",body:O});if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);return _})),await x()}catch(_){console.error("Помилка при завантаженні файлів:",_)}},C=async B=>{try{await fetch(`/api/widget/file/${s.id}/${B}`,{method:"DELETE"}),await x()}catch(_){console.error(_)}};return(B,_)=>{const O=e.resolveComponent("MessageBox"),$=e.resolveComponent("Lightbox");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Rr,[e.createVNode(mr,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=f=>y.value=f),title:s.title,onOnAddFile:_[1]||(_[1]=f=>g(f))},null,8,["modelValue","title"]),a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(B.maxHeight?"overflow-y-auto":""),style:e.normalizeStyle({maxHeight:B.maxHeight+"px"})},[y.value==="list"?(e.openBlock(),e.createBlock(wr,{key:0,onDelete:p,onDownload:k,onOpenLightbox:_[2]||(_[2]=f=>m(f)),files:a.value},null,8,["files"])):e.createCommentVNode("",!0),y.value==="grid"?(e.openBlock(),e.createBlock(Lr,{key:1,onDelete:p,onDownload:k,onOpenLightbox:_[3]||(_[3]=f=>m(f)),files:a.value},null,8,["files"])):e.createCommentVNode("",!0)],6)):(e.openBlock(),e.createElementBlock("div",Pr,_[6]||(_[6]=[e.createElementVNode("div",{class:"flex items-center justify-center h-full"},[e.createElementVNode("p",{class:"text-gray-500 leading-[3]"},"Файлів не знайдено")],-1)])))]),e.createVNode(O,{modelValue:o.value,"onUpdate:modelValue":_[4]||(_[4]=f=>o.value=f),onConfirm:h,title:"Ви впевнені?",message:"Ви впевнені, що хочете видалити цей файл?",confirmButtonText:"Так, я впевнена/ий",cancelButtonText:"Скасувати"},null,8,["modelValue"]),e.createVNode($,{modelValue:l.value,"onUpdate:modelValue":_[5]||(_[5]=f=>l.value=f),images:d.value,"start-index":i.value},null,8,["modelValue","images","start-index"])],64)}}}),Fr={key:0,class:"image-wrapper h-full max-h-[400px]",id:"lightbox-gallery"},zr=["onClick"],jr={key:0,rel:"noreferrer",class:"relative block h-full w-full"},Hr=["src"],Ur={key:0,class:"thumb-cover"},qr=e.defineComponent({__name:"GalleryContent",props:{title:{},items:{},columns:{},maxHeight:{},onAddImage:{type:Function},onDelete:{type:Function},id:{},className:{},style:{}},emits:["delete"],setup(t,{emit:n}){const s=n,o=e.ref(!1),r=e.ref(0),l=t,i=e.computed(()=>Array.isArray(l.items)?l.items.map(c=>c?.file_path):[]),a=c=>{const p=i.value.findIndex(h=>h===c.file_path);p!==-1&&(o.value=!0,r.value=p)};return(c,p)=>{const h=e.resolveComponent("Lightbox");return c.items?.length>=1?(e.openBlock(),e.createElementBlock("div",Fr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.items,(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["h-full w-full image"+m,"cursor-pointer bg-teal-500 rounded-[3px]"]),key:m,onClick:e.withModifiers(g=>a(d),["stop"])},[m<5?(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("img",{src:`/file/resize?filepath=${d?.file_path}&w=500`,alt:"alt",height:"auto",width:"100%",class:e.normalizeClass(["object-cover h-full w-full bg-gray-200 rounded-[3px]",m===0?"max-h-[411px]":"max-h-[calc((411px-3px)/2)]"])},null,10,Hr),m===4&&c.items?.length>5?(e.openBlock(),e.createElementBlock("div",Ur," +"+e.toDisplayString(c.items?.length-5),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,zr))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Math.max(0,5-c.items.length),d=>(e.openBlock(),e.createElementBlock("div",{key:"empty-"+d,class:e.normalizeClass(["h-full w-full image"+(c.items.length+d-1),"bg-gray-300 rounded-[3px]"])},null,2))),128)),e.createVNode(h,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=d=>o.value=d),images:i.value,"start-index":r.value,delete:"true",download:"true",onDelete:p[1]||(p[1]=d=>s("delete",d))},null,8,["modelValue","images","start-index"])])):e.createCommentVNode("",!0)}}}),Wr={key:0,class:"text-xl font-semibold"},Kr={class:"flex gap-1"},Gr={class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border rounded-md text-xs h-7 px-2 cursor-pointer"},Jr=e.defineComponent({__name:"widgetHeader",props:{title:{}},emits:["onAddImage"],setup(t){return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-col sm:flex-row gap-3 mb-4",n.title?"justify-between sm:items-center":"justify-end sm:items-center"])},[n.title?(e.openBlock(),e.createElementBlock("h3",Wr,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Kr,[e.createElementVNode("label",null,[e.createElementVNode("input",{type:"file",class:"hidden",onChange:s[0]||(s[0]=o=>n.$emit("onAddImage",o))},null,32),e.createElementVNode("div",Gr,[e.createVNode(e.unref(In),{class:"h-4 w-4"}),s[1]||(s[1]=e.createTextVNode(" Додати зображення ",-1))])])])],2))}}),Yr={class:"w-full mx-auto font-sans",ref:"containerRef"},Zr={key:1},ft=e.defineComponent({__name:"GalleryWidget",props:{title:{},items:{default:()=>[]},columns:{},maxHeight:{},onAddImage:{},onDelete:{},id:{},className:{},style:{}},emits:["delete","add","openLightbox"],setup(t,{emit:n}){const s=t,o=e.ref(s.items??[]),r=n;o.value.length===0&&c();const l=h=>{s.onAddImage?s.onAddImage(h):a(h),r("add",h)},i=h=>{const d=o.value.find(m=>m.file_path===h)?.file_id;d&&(s.onDelete?s.onDelete(d):p(d))},a=async h=>{if(!(!h.target||!h.target.files||h.target.files.length===0))try{await Promise.all(Array.from(h.target.files).map(async d=>{const m=new FormData;m.append("file",d);const g=`/api/widget/file/${s.id}`,v=await fetch(g,{method:"POST",body:m});if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);return d})),await c()}catch(d){console.error("Помилка при завантаженні файлів:",d)}};async function c(){if(!s.id)return;const h=await fetch(`/api/widget/file/${s.id}`).then(d=>d.json());o.value=h.rows}const p=async h=>{try{await fetch(`/api/widget/file/${s.id}/${h}`,{method:"DELETE"}),await c()}catch(d){console.error(d)}};return(h,d)=>(e.openBlock(),e.createElementBlock("div",Yr,[e.createVNode(Jr,{title:h.title,onOnAddImage:d[0]||(d[0]=m=>l(m))},null,8,["title"]),o.value.length>0?(e.openBlock(),e.createBlock(qr,{key:0,items:o.value,onDelete:d[1]||(d[1]=m=>i(m))},null,8,["items"])):(e.openBlock(),e.createElementBlock("div",Zr,d[2]||(d[2]=[e.createElementVNode("div",{class:"flex items-center justify-center h-full"},[e.createElementVNode("p",{class:"text-gray-500 leading-[3]"},"Зображень не знайдено")],-1)])))],512))}}),Xr={class:"text-value"},Qr={class:"text-sm text-gray-900"},Vr=e.defineComponent({__name:"TextValue",props:{item:{}},setup(t){const n=t,s=e.computed(()=>{const o=n.item.value;return typeof o=="boolean"?o?"Так":"Ні":o==null?"—":String(o)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",Xr,[e.createElementVNode("span",Qr,e.toDisplayString(s.value),1)]))}}),Te=(t,n)=>{const s=t.__vccOpts||t;for(const[o,r]of n)s[o]=r;return s},ei=Te(Vr,[["__scopeId","data-v-c14550b7"]]),ti={class:"link-value"},ni=["href"],si=Te(e.defineComponent({__name:"LinkValue",props:{item:{}},setup(t){const n=t,s=e.computed(()=>{const o=String(n.item.value);try{const r=new URL(o);return r.hostname+r.pathname}catch{return o}});return(o,r)=>(e.openBlock(),e.createElementBlock("div",ti,[e.createElementVNode("a",{href:String(o.item.value),target:"_blank",rel:"noopener noreferrer",class:"text-blue-600 hover:text-blue-800 underline text-sm"},[e.createTextVNode(e.toDisplayString(s.value)+" ",1),r[0]||(r[0]=e.createElementVNode("i",{class:"fas fa-external-link-alt ml-1 text-xs"},null,-1))],8,ni)]))}}),[["__scopeId","data-v-e6eb07a6"]]),oi={class:"date-value"},ri={class:"text-sm text-gray-900"},ii=Te(e.defineComponent({__name:"DateValue",props:{item:{}},setup(t){const n=t,s=e.computed(()=>{const o=n.item.value;if(o instanceof Date)return o.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"});if(typeof o=="string"){const r=new Date(o);if(!isNaN(r.getTime()))return r.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}return String(o)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",oi,[e.createElementVNode("span",ri,e.toDisplayString(s.value),1)]))}}),[["__scopeId","data-v-b9600618"]]),li={class:"status-value"},ai={key:0,class:"mr-1"},ci=Te(e.defineComponent({__name:"StatusValue",props:{item:{}},setup(t){const n=t,s=e.computed(()=>{switch(String(n.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"bg-green-100 text-green-800";case"inactive":case"неактивний":case"pending":case"очікує":return"bg-yellow-100 text-yellow-800";case"error":case"помилка":case"failed":case"неуспішно":return"bg-red-100 text-red-800";case"draft":case"чернетка":return"bg-gray-100 text-gray-800";default:return"bg-blue-100 text-blue-800"}}),o=e.computed(()=>{switch(String(n.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"fas fa-check-circle";case"inactive":case"неактивний":case"pending":case"очікує":return"fas fa-clock";case"error":case"помилка":case"failed":case"неуспішно":return"fas fa-exclamation-circle";case"draft":case"чернетка":return"fas fa-edit";default:return"fas fa-info-circle"}});return(r,l)=>(e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",s.value])},[o.value?(e.openBlock(),e.createElementBlock("span",ai,[e.createElementVNode("i",{class:e.normalizeClass(o.value)},null,2)])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(String(r.item.value)),1)],2)]))}}),[["__scopeId","data-v-c72e0b01"]]),di={class:"custom-value"},pi={class:"text-sm text-gray-900"},fi=Te(e.defineComponent({__name:"CustomValue",props:{item:{}},setup(t){return(n,s)=>(e.openBlock(),e.createElementBlock("div",di,[e.renderSlot(n.$slots,"default",{item:n.item,value:n.item.value},()=>[e.createElementVNode("span",pi,e.toDisplayString(String(n.item.value)),1)],!0)]))}}),[["__scopeId","data-v-11a73810"]]),mi=["id"],hi={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},ui={key:1,class:"overflow-x-auto"},gi={class:"min-w-full divide-y divide-gray-200"},yi={class:"bg-white divide-y divide-gray-200"},vi={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},bi={class:"flex items-center gap-2"},ki=["title"],Ei={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Ni={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},xi={class:"flex items-start gap-3"},wi={key:0,class:"flex-shrink-0"},_i={class:"flex-1 min-w-0"},Si={class:"flex items-center gap-2 mb-2"},Ci={class:"text-sm font-medium text-gray-900"},Bi=["title"],Ti={key:3,class:"overflow-x-auto"},$i={class:"min-w-full divide-y divide-gray-200"},Di={class:"bg-white divide-y divide-gray-200"},Ii={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},Oi={class:"flex items-center gap-2"},Ai=["title"],Mi={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Ft=Te(e.defineComponent({__name:"DescriptionListWidget",props:{title:{},items:{},view:{},id:{},className:{},style:{}},setup(t){const n=s=>{switch(s.type){case"link":return si;case"date":return ii;case"status":return ci;case"custom":return fi;default:return ei}};return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["description-list-widget",s.className]),id:s.id,style:e.normalizeStyle(s.style)},[s.title?(e.openBlock(),e.createElementBlock("h3",hi,e.toDisplayString(s.title),1)):e.createCommentVNode("",!0),s.view==="table"?(e.openBlock(),e.createElementBlock("div",ui,[e.createElementVNode("table",gi,[e.createElementVNode("tbody",yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("tr",{key:r.id||r.label},[e.createElementVNode("td",vi,[e.createElementVNode("div",bi,[r.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([r.icon,"text-gray-500"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.label)+" ",1),r.tooltip?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:r.tooltip},o[0]||(o[0]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,ki)):e.createCommentVNode("",!0)])]),e.createElementVNode("td",Ei,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(r)),{item:r},null,8,["item"]))])]))),128))])])])):s.view==="grid"?(e.openBlock(),e.createElementBlock("div",Ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id||r.label,class:"description-item-card bg-white border border-gray-200 rounded-lg p-4"},[e.createElementVNode("div",xi,[r.icon?(e.openBlock(),e.createElementBlock("div",wi,[e.createElementVNode("i",{class:e.normalizeClass([r.icon,"text-gray-500 text-lg"])},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("div",_i,[e.createElementVNode("div",Si,[e.createElementVNode("h4",Ci,e.toDisplayString(r.label),1),r.tooltip?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-gray-400 cursor-help",title:r.tooltip},o[1]||(o[1]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,Bi)):e.createCommentVNode("",!0)]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(r)),{item:r},null,8,["item"]))])])]))),128))])):(e.openBlock(),e.createElementBlock("div",Ti,[e.createElementVNode("table",$i,[e.createElementVNode("tbody",Di,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createElementBlock("tr",{key:r.id||r.label},[e.createElementVNode("td",Ii,[e.createElementVNode("div",Oi,[r.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([r.icon,"text-gray-500"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.label)+" ",1),r.tooltip?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:r.tooltip},o[2]||(o[2]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,Ai)):e.createCommentVNode("",!0)])]),e.createElementVNode("td",Mi,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(r)),{item:r},null,8,["item"]))])]))),128))])])]))],14,mi))}}),[["__scopeId","data-v-36d43e50"]]),Li={draw:{toolbar:{actions:{title:"Скасувати малювання",text:"Скасувати"},finish:{title:"Завершити малювання",text:"Завершити"},undo:{title:"Видалити останню точку",text:"Видалити останню"},buttons:{polyline:"Намалювати лінію",polygon:"Намалювати полігон",rectangle:"Намалювати прямокутник",circle:"Намалювати коло",marker:"Додати точку",circlemarker:"Додати маркер-коло"}},handlers:{circle:{tooltip:{start:"Клацніть і тягніть, щоб намалювати коло",end:"Відпустіть кнопку миші, щоб завершити"},radius:"Радіус"},circlemarker:{tooltip:{start:"Клацніть на карту, щоб додати маркер-коло"}},marker:{tooltip:{start:"Клацніть на карту, щоб додати точку"}},polygon:{tooltip:{start:"Клацніть, щоб почати малювати полігон",cont:"Клацайте, щоб продовжити малювати полігон",end:"Клацніть першу точку, щоб завершити полігон"}},polyline:{error:"<strong>Помилка:</strong> лінія не може перетинатися сама з собою",tooltip:{start:"Клацніть, щоб почати малювати лінію",cont:"Клацайте, щоб продовжити малювати лінію",end:"Клацніть останню точку, щоб завершити лінію"}},rectangle:{tooltip:{start:"Клацніть і тягніть, щоб намалювати прямокутник",end:"Відпустіть кнопку миші, щоб завершити"}},simpleshape:{tooltip:{end:"Відпустіть кнопку миші, щоб завершити"}}}},edit:{toolbar:{actions:{save:{title:"Зберегти зміни",text:"Зберегти"},cancel:{title:"Скасувати редагування",text:"Скасувати"},clearAll:{title:"Очистити всі шари",text:"Очистити все"}},buttons:{edit:"Редагувати шари",editDisabled:"Немає шарів для редагування",remove:"Видалити шари",removeDisabled:"Немає шарів для видалення"}},handlers:{edit:{tooltip:{text:"Перетягніть маркери, щоб редагувати шари",subtext:"Натисніть 'Скасувати', щоб повернутися"}},remove:{tooltip:{text:"Клацніть на шари, щоб видалити їх"}}}}};function Ri(t){return t?t.type==="FeatureCollection"||t.type==="Feature"?t:t.geom?{type:"Feature",geometry:{type:t.geom.type,coordinates:t.geom.coordinates},properties:{}}:t.type&&t.coordinates?{type:"Feature",geometry:t,properties:{}}:null:null}const Pi={key:1,class:"bg-white absolute top-[10px] right-[10px] z-[500] border rounded-lg cursor-pointer"},Fi={class:"flex items-center justify-between p-2 border-b"},zi={class:"p-2 border-b"},ji={class:"flex items-center"},Hi=["value"],Ui={class:"ml-2"},qi={class:"p-2"},Wi={class:"flex items-center"},Ki={class:"flex items-center"},Gi=["onUpdate:modelValue","onChange"],Ji={class:"ml-2"},mt=e.defineComponent({__name:"MapWidget",props:{pattern:{},geom:{},id:{},tms:{}},setup(t){const n=e.getCurrentInstance(),s=t,o=e.ref(null);let r,l;const i=_(),a=e.ref(Object.keys(i)[0]);let c;const p=e.ref(!0),h=e.ref(!1),d=e.ref(!1),m=e.ref(g());function g(){return s.tms?(Array.isArray(s.tms)?s.tms:s.tms?.split(",")).map(($,f)=>({url:s.pattern?s.pattern.replace("{{id}}",$):$,name:"Шар "+f,visible:!0,i:f})):[]}function v(){return new Promise((O,$)=>{if(window.L&&window.L.Draw)return O(0);const f=u=>{if(Array.from(document.styleSheets).some(M=>M?.href?.includes(u)))return;const I=document.createElement("link");I.rel="stylesheet",I.href=u,document.head.appendChild(I)},S=u=>new Promise((T,I)=>{const M=Array.from(document.scripts).find(z=>z.src===u);if(M){M.addEventListener("load",()=>T()),M.addEventListener("error",z=>I(z));return}const F=document.createElement("script");F.src=u,F.async=!0,F.onload=()=>T(),F.onerror=z=>I(z),document.body.appendChild(F)});f("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"),f("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"),S("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js").then(()=>S("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js")).then(()=>O(0)).catch($)})}let k=!1;e.onMounted(async()=>{await v(),L.drawLocal=Li;const O=n?.appContext.config.globalProperties.$settings?.center||[50,30];r=L.map(o.value,{zoomControl:!1}).setView(O,10),r.on("mousemove",f=>{k||(r.invalidateSize(),k=!0)}),L.control.zoom({position:"bottomright"}).addTo(r),c=L.tileLayer(i[a.value].url,{maxZoom:19}).addTo(r),l=new L.FeatureGroup().addTo(r),m.value.length&&B(0);const $=Ri(s.geom);if($){const f=[];L.geoJSON($).eachLayer(S=>f.push(S)),f.length&&l.addLayer(f[0]),l.toGeoJSON(),y()}});function y(O=30){const $=l.getLayers();if(!$.length)return;const S=L.featureGroup($).getBounds();S&&S.isValid()&&r.fitBounds(S,{padding:[O,O],maxZoom:16})}function x(O){c&&c.removeFrom(r);const $=i[O];c=L.tileLayer($.url,$.options||{}).addTo(r),c.bringToBack(),a.value=O}function D(){x(a.value)}function C(){l&&(p.value?l.addTo(r):l.removeFrom(r))}function B(O){const $=m.value[O];$.layer||($.layer=L.tileLayer($.url,{maxZoom:19})),$.visible?$.layer.addTo(r):$.layer.removeFrom(r)}function _(){return n?.appContext.config.globalProperties.$settings?.basemaps?n?.appContext.config.globalProperties.$settings?.basemaps.map((O,$)=>Object.assign(O,{key:`b${$}`,preview:O.preview||O.url.replace("{z}/{x}/{y}.png","13/4790/2762.png")})).reduce((O,$)=>({...O,[$.key]:$}),{}):{topo100:{url:"https://data.gki.com.ua/api-user/rtile/voyager/ua/{z}/{x}/{y}.png",preview:"https://data.gki.com.ua/api-user/rtile/voyager/ua/13/4790/2762.png"},orto10:{url:"https://data.gki.com.ua/api-user/rtile/orto10/ua/{z}/{x}/{y}.png",preview:"https://data.gki.com.ua/api-user/rtile/orto10/ua/13/4790/2762.png"},osmb:{url:"https://tile.openstreetmap.org.ua/styles/osm-bright/{z}/{x}/{y}.png",preview:"https://tile.openstreetmap.org.ua/styles/osm-bright/13/4790/2762.png"}}}return e.watch(h,()=>{setTimeout(()=>{r.invalidateSize()},50)}),(O,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(h.value?"fixed inset-0 w-screen h-screen z-[9999] bg-white":"relative min-h-[300px] h-full pb-[3.25rem]")},[e.createElementVNode("div",{ref_key:"mapContainer",ref:o,class:"w-full h-full min-h-[300px]"},null,512),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:$[0]||($[0]=f=>d.value=!0),class:"z-[500] bg-white absolute top-[10px] right-[10px] p-2 border rounded-lg cursor-pointer layers-button"}," Шари ")),d.value?(e.openBlock(),e.createElementBlock("div",Pi,[e.createElementVNode("div",Fi,[$[6]||($[6]=e.createElementVNode("div",null,"Шари",-1)),(e.openBlock(),e.createElementBlock("svg",{onClick:$[1]||($[1]=f=>d.value=!1),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x w-4 h-4"},$[5]||($[5]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))]),e.createElementVNode("div",zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(f,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",ji,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"base-layer",value:S,"onUpdate:modelValue":$[2]||($[2]=u=>a.value=u),onChange:D},null,40,Hi),[[e.vModelRadio,a.value]]),e.createElementVNode("span",Ui,e.toDisplayString(f.name||S),1)])]))),256))]),e.createElementVNode("div",qi,[e.createElementVNode("label",Wi,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":$[3]||($[3]=f=>p.value=f),onChange:C},null,544),[[e.vModelCheckbox,p.value]]),$[7]||($[7]=e.createElementVNode("span",{class:"ml-2"}," Геометрія/Межі ",-1))]),s.tms?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,f=>(e.openBlock(),e.createElementBlock("label",Ki,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":S=>f.visible=S,onChange:S=>B(f.i)},null,40,Gi),[[e.vModelCheckbox,f.visible]]),e.createElementVNode("span",Ji,e.toDisplayString(f.name),1)]))),256)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["absolute z-[500] bg-white p-2 border rounded-lg cursor-pointer fullscreen-button",h.value?"bottom-[100px] right-[7px]":"bottom-[150px] right-[7px]"]),onClick:$[4]||($[4]=f=>h.value=!h.value)},$[8]||($[8]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 8V4h4M20 8V4h-4M4 16v4h4m12-4v4h-4"})],-1)]),2)],2))}});/**
132
132
  * @vue/shared v3.5.18
133
133
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
134
134
  * @license MIT
135
- **//*! #__NO_SIDE_EFFECTS__ */function re(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Dr=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ct=()=>{},et=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),de=Object.assign,le=Array.isArray,W=e=>typeof e=="string",Tt=e=>typeof e=="symbol",Or=e=>e!==null&&typeof e=="object",xn=re(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ir=re("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$t=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Ar=/-(\w)/g,pe=$t(e=>e.replace(Ar,(t,s)=>s?s.toUpperCase():"")),Dt=$t(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mr=$t(e=>e?`on${Dt(e)}`:""),Me={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},Lr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Rr=/;(?![^(]*\))/g,Fr=/:([^]+)/,Pr=/\/\*[^]*?\*\//g;function jr(e){const t={};return e.replace(Pr,"").split(Rr).forEach(s=>{if(s){const o=s.split(Fr);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}const zr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Hr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Ur="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",qr="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Wr=re(zr),Kr=re(Hr),Gr=re(Ur),Jr=re(qr);/**
135
+ **//*! #__NO_SIDE_EFFECTS__ */function he(t){const n=Object.create(null);for(const s of t.split(","))n[s]=1;return s=>s in n}const Yi=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const zt=()=>{},ht=()=>!1,jt=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ee=Object.assign,ue=Array.isArray,X=t=>typeof t=="string",Ht=t=>typeof t=="symbol",Zi=t=>t!==null&&typeof t=="object",Pn=he(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xi=he("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ut=t=>{const n=Object.create(null);return s=>n[s]||(n[s]=t(s))},Qi=/-(\w)/g,Ne=Ut(t=>t.replace(Qi,(n,s)=>s?s.toUpperCase():"")),qt=Ut(t=>t.charAt(0).toUpperCase()+t.slice(1)),Vi=Ut(t=>t?`on${qt(t)}`:""),Ge={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},el={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},tl=/;(?![^(]*\))/g,nl=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function ol(t){const n={};return t.replace(sl,"").split(tl).forEach(s=>{if(s){const o=s.split(nl);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}const rl="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",il="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ll="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",al="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",cl=he(rl),dl=he(il),pl=he(ll),fl=he(al);/**
136
136
  * @vue/compiler-core v3.5.18
137
137
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
138
138
  * @license MIT
139
- **/const Le=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Re=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Ot=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),tt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),wn=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),ve=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Sn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Cn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),It=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),At=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Fe=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),jt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),zt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Tn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),$n=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),nt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),st=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Pe=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),je=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),qt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Yr=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),ot=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Zr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Xr=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Qr=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Vr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Dn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Se={[Le]:"Fragment",[Re]:"Teleport",[Ot]:"Suspense",[tt]:"KeepAlive",[wn]:"BaseTransition",[ve]:"openBlock",[Sn]:"createBlock",[Cn]:"createElementBlock",[It]:"createVNode",[At]:"createElementVNode",[Fe]:"createCommentVNode",[Mt]:"createTextVNode",[Bn]:"createStaticVNode",[Lt]:"resolveComponent",[Rt]:"resolveDynamicComponent",[Ft]:"resolveDirective",[Pt]:"resolveFilter",[jt]:"withDirectives",[zt]:"renderList",[Tn]:"renderSlot",[$n]:"createSlots",[nt]:"toDisplayString",[st]:"mergeProps",[Ht]:"normalizeClass",[Ut]:"normalizeStyle",[Pe]:"normalizeProps",[je]:"guardReactiveProps",[qt]:"toHandlers",[Wt]:"camelize",[Yr]:"capitalize",[Kt]:"toHandlerKey",[ot]:"setBlockTracking",[Zr]:"pushScopeId",[Xr]:"popScopeId",[Gt]:"withCtx",[Qr]:"unref",[Vr]:"isRef",[Jt]:"withMemo",[Dn]:"isMemoSame"};function el(e){Object.getOwnPropertySymbols(e).forEach(t=>{Se[t]=e[t]})}const ee={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function tl(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ee}}function ze(e,t,s,o,i,l,r,c=!1,a=!1,p=!1,h=ee){return e&&(c?(e.helper(ve),e.helper(Te(e.inSSR,p))):e.helper(Be(e.inSSR,p)),r&&e.helper(jt)),{type:13,tag:t,props:s,children:o,patchFlag:i,dynamicProps:l,directives:r,isBlock:c,disableTracking:a,isComponent:p,loc:h}}function be(e,t=ee){return{type:17,loc:t,elements:e}}function se(e,t=ee){return{type:15,loc:t,properties:e}}function z(e,t){return{type:16,loc:ee,key:W(e)?B(e,!0):e,value:t}}function B(e,t=!1,s=ee,o=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:o}}function oe(e,t=ee){return{type:8,loc:t,children:e}}function q(e,t=[],s=ee){return{type:14,loc:s,callee:e,arguments:t}}function Ce(e,t=void 0,s=!1,o=!1,i=ee){return{type:18,params:e,returns:t,newline:s,isSlot:o,loc:i}}function Yt(e,t,s,o=!0){return{type:19,test:e,consequent:t,alternate:s,newline:o,loc:ee}}function nl(e,t,s=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:s,inVOnce:o,needArraySpread:!1,loc:ee}}function sl(e){return{type:21,body:e,loc:ee}}function Be(e,t){return e||t?It:At}function Te(e,t){return e||t?Sn:Cn}function Zt(e,{helper:t,removeHelper:s,inSSR:o}){e.isBlock||(e.isBlock=!0,s(Be(o,e.isComponent)),t(ve),t(Te(o,e.isComponent)))}const On=new Uint8Array([123,123]),In=new Uint8Array([125,125]);function An(e){return e>=97&&e<=122||e>=65&&e<=90}function te(e){return e===32||e===10||e===9||e===12||e===13}function fe(e){return e===47||e===62||te(e)}function it(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const K={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ol{constructor(t,s){this.stack=t,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=On,this.delimiterClose=In,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=On,this.delimiterClose=In}getPos(t){let s=1,o=t+1;for(let i=this.newlines.length-1;i>=0;i--){const l=this.newlines[i];if(t>l){s=i+2,o=t-l;break}}return{column:o,line:s,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?fe(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||te(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const o=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=o}this.sectionStart=s+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===K.TitleEnd||this.currentSequence===K.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===K.Cdata[this.sequenceIndex]?++this.sequenceIndex===K.Cdata.length&&(this.state=28,this.currentSequence=K.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===K.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,s){this.enterRCDATA(t,s),this.state=31}enterRCDATA(t,s){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=s}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):An(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){fe(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(fe(t)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(it("</"+s),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){te(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=An(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||te(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):te(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):te(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||fe(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||fe(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||fe(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||fe(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||fe(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):te(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):te(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,s){(t===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){te(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(process.env.NODE_ENV!=="production"&&t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=K.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===K.ScriptEnd[3]?this.startSpecial(K.ScriptEnd,4):t===K.StyleEnd[3]?this.startSpecial(K.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===K.TitleEnd[3]?this.startSpecial(K.TitleEnd,4):t===K.TextareaEnd[3]?this.startSpecial(K.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===K.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){}}const il={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Xt(e,{compatConfig:t}){const s=t&&t[e];return e==="MODE"?s||3:s}function me(e,t){const s=Xt("MODE",t),o=Xt(e,t);return s===3?o===!0:o!==!1}function $e(e,t,s,...o){const i=me(e,t);return process.env.NODE_ENV!=="production"&&i&&rt(e,t,s,...o),i}function rt(e,t,s,...o){if(Xt(e,t)==="suppress-warning")return;const{message:l,link:r}=il[e],c=`(deprecation ${e}) ${typeof l=="function"?l(...o):l}${r?`
140
- Details: ${r}`:""}`,a=new SyntaxError(c);a.code=e,s&&(a.loc=s),t.onWarn(a)}function Qt(e){throw e}function Mn(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function A(e,t,s,o){const i=process.env.NODE_ENV!=="production"?(s||rl)[e]+(o||""):`https://vuejs.org/error-reference/#compiler-${e}`,l=new SyntaxError(String(i));return l.code=e,l.loc=t,l}const rl={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
141
- Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},Z=e=>e.type===4&&e.isStatic;function Ln(e){switch(e){case"Teleport":case"teleport":return Re;case"Suspense":case"suspense":return Ot;case"KeepAlive":case"keep-alive":return tt;case"BaseTransition":case"base-transition":return wn}}const ll=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Vt=e=>!ll.test(e),al=/[A-Za-z_$\xA0-\uFFFF]/,cl=/[\.\?\w$\xA0-\uFFFF]/,dl=/\s+[.[]\s*|\s*[.[]\s+/g,Rn=e=>e.type===4?e.content:e.loc.source,Fn=e=>{const t=Rn(e).trim().replace(dl,c=>c.trim());let s=0,o=[],i=0,l=0,r=null;for(let c=0;c<t.length;c++){const a=t.charAt(c);switch(s){case 0:if(a==="[")o.push(s),s=1,i++;else if(a==="(")o.push(s),s=2,l++;else if(!(c===0?al:cl).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(o.push(s),s=3,r=a):a==="["?i++:a==="]"&&(--i||(s=o.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")o.push(s),s=3,r=a;else if(a==="(")l++;else if(a===")"){if(c===t.length-1)return!1;--l||(s=o.pop())}break;case 3:a===r&&(s=o.pop(),r=null);break}}return!i&&!l},pl=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,fl=e=>pl.test(Rn(e));function Pn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function X(e,t,s=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(s||i.exp)&&(W(t)?i.name===t:t.test(i.name)))return i}}function He(e,t,s=!1,o=!1){for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6){if(s)continue;if(l.name===t&&(l.value||o))return l}else if(l.name==="bind"&&(l.exp||o)&&he(l.arg,t))return l}}function he(e,t){return!!(e&&Z(e)&&e.content===t)}function ml(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function en(e){return e.type===5||e.type===2}function jn(e){return e.type===7&&e.name==="pre"}function hl(e){return e.type===7&&e.name==="slot"}function lt(e){return e.type===1&&e.tagType===3}function at(e){return e.type===1&&e.tagType===2}const ul=new Set([Pe,je]);function zn(e,t=[]){if(e&&!W(e)&&e.type===14){const s=e.callee;if(!W(s)&&ul.has(s))return zn(e.arguments[0],t.concat(e))}return[e,t]}function ct(e,t,s){let o,i=e.type===13?e.props:e.arguments[2],l=[],r;if(i&&!W(i)&&i.type===14){const c=zn(i);i=c[0],l=c[1],r=l[l.length-1]}if(i==null||W(i))o=se([t]);else if(i.type===14){const c=i.arguments[0];!W(c)&&c.type===15?Hn(t,c)||c.properties.unshift(t):i.callee===qt?o=q(s.helper(st),[se([t]),i]):i.arguments.unshift(se([t])),!o&&(o=i)}else i.type===15?(Hn(t,i)||i.properties.unshift(t),o=i):(o=q(s.helper(st),[se([t]),i]),r&&r.callee===je&&(r=l[l.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Hn(e,t){let s=!1;if(e.key.type===4){const o=e.key.content;s=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return s}function Ue(e,t){return`_${t}_${e.replace(/[^\w]/g,(s,o)=>s==="-"?"_":e.charCodeAt(o).toString())}`}function gl(e){return e.type===14&&e.callee===Jt?e.arguments[1].returns:e}const yl=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Un={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:et,isPreTag:et,isIgnoreNewlineTag:et,isCustomElement:et,onError:Qt,onWarn:Mn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let D=Un,qe=null,ae="",J=null,$=null,Q="",ce=-1,ke=-1,tn=0,ue=!1,nn=null;const P=[],F=new ol(P,{onerr:V,ontext(e,t){dt(G(e,t),e,t)},ontextentity(e,t,s){dt(e,t,s)},oninterpolation(e,t){if(ue)return dt(G(e,t),e,t);let s=e+F.delimiterOpen.length,o=t-F.delimiterClose.length;for(;te(ae.charCodeAt(s));)s++;for(;te(ae.charCodeAt(o-1));)o--;let i=G(s,o);i.includes("&")&&(i=D.decodeEntities(i,!1)),sn({type:5,content:ft(i,!1,H(s,o)),loc:H(e,t)})},onopentagname(e,t){const s=G(e,t);J={type:1,tag:s,ns:D.getNamespace(s,P[0],D.ns),tagType:0,props:[],children:[],loc:H(e-1,t),codegenNode:void 0}},onopentagend(e){Wn(e)},onclosetag(e,t){const s=G(e,t);if(!D.isVoidTag(s)){let o=!1;for(let i=0;i<P.length;i++)if(P[i].tag.toLowerCase()===s.toLowerCase()){o=!0,i>0&&V(24,P[0].loc.start.offset);for(let r=0;r<=i;r++){const c=P.shift();pt(c,t,r<i)}break}o||V(23,Kn(e,60))}},onselfclosingtag(e){const t=J.tag;J.isSelfClosing=!0,Wn(e),P[0]&&P[0].tag===t&&pt(P.shift(),e)},onattribname(e,t){$={type:6,name:G(e,t),nameLoc:H(e,t),value:void 0,loc:H(e)}},ondirname(e,t){const s=G(e,t),o=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!ue&&o===""&&V(26,e),ue||o==="")$={type:6,name:s,nameLoc:H(e,t),value:void 0,loc:H(e)};else if($={type:7,name:o,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[B("prop")]:[],loc:H(e)},o==="pre"){ue=F.inVPre=!0,nn=J;const i=J.props;for(let l=0;l<i.length;l++)i[l].type===7&&(i[l]=Bl(i[l]))}},ondirarg(e,t){if(e===t)return;const s=G(e,t);if(ue&&!jn($))$.name+=s,Ee($.nameLoc,t);else{const o=s[0]!=="[";$.arg=ft(o?s:s.slice(1,-1),o,H(e,t),o?3:0)}},ondirmodifier(e,t){const s=G(e,t);if(ue&&!jn($))$.name+="."+s,Ee($.nameLoc,t);else if($.name==="slot"){const o=$.arg;o&&(o.content+="."+s,Ee(o.loc,t))}else{const o=B(s,!0,H(e,t));$.modifiers.push(o)}},onattribdata(e,t){Q+=G(e,t),ce<0&&(ce=e),ke=t},onattribentity(e,t,s){Q+=e,ce<0&&(ce=t),ke=s},onattribnameend(e){const t=$.loc.start.offset,s=G(t,e);$.type===7&&($.rawName=s),J.props.some(o=>(o.type===7?o.rawName:o.name)===s)&&V(2,t)},onattribend(e,t){if(J&&$){if(Ee($.loc,t),e!==0)if(Q.includes("&")&&(Q=D.decodeEntities(Q,!0)),$.type===6)$.name==="class"&&(Q=Yn(Q).trim()),e===1&&!Q&&V(13,t),$.value={type:2,content:Q,loc:e===1?H(ce,ke):H(ce-1,ke+1)},F.inSFCRoot&&J.tag==="template"&&$.name==="lang"&&Q&&Q!=="html"&&F.enterRCDATA(it("</template"),0);else{let s=0;$.exp=ft(Q,!1,H(ce,ke),0,s),$.name==="for"&&($.forParseResult=bl($.exp));let o=-1;$.name==="bind"&&(o=$.modifiers.findIndex(i=>i.content==="sync"))>-1&&$e("COMPILER_V_BIND_SYNC",D,$.loc,$.arg.loc.source)&&($.name="model",$.modifiers.splice(o,1))}($.type!==7||$.name!=="pre")&&J.props.push($)}Q="",ce=ke=-1},oncomment(e,t){D.comments&&sn({type:3,content:G(e,t),loc:H(e-4,t+3)})},onend(){const e=ae.length;if(process.env.NODE_ENV!=="production"&&F.state!==1)switch(F.state){case 5:case 8:V(5,e);break;case 3:case 4:V(25,F.sectionStart);break;case 28:F.currentSequence===K.CdataEnd?V(6,e):V(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:V(9,e);break}for(let t=0;t<P.length;t++)pt(P[t],e-1),V(24,P[t].loc.start.offset)},oncdata(e,t){P[0].ns!==0?dt(G(e,t),e,t):V(1,e-9)},onprocessinginstruction(e){(P[0]?P[0].ns:D.ns)===0&&V(21,e-1)}}),qn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vl=/^\(|\)$/g;function bl(e){const t=e.loc,s=e.content,o=s.match(yl);if(!o)return;const[,i,l]=o,r=(d,m,k=!1)=>{const b=t.start.offset+m,y=b+d.length;return ft(d,!1,H(b,y),0,k?1:0)},c={source:r(l.trim(),s.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=i.trim().replace(vl,"").trim();const p=i.indexOf(a),h=a.match(qn);if(h){a=a.replace(qn,"").trim();const d=h[1].trim();let m;if(d&&(m=s.indexOf(d,p+a.length),c.key=r(d,m,!0)),h[2]){const k=h[2].trim();k&&(c.index=r(k,s.indexOf(k,c.key?m+d.length:p+a.length),!0))}}return a&&(c.value=r(a,p,!0)),c}function G(e,t){return ae.slice(e,t)}function Wn(e){F.inSFCRoot&&(J.innerLoc=H(e+1,e+1)),sn(J);const{tag:t,ns:s}=J;s===0&&D.isPreTag(t)&&tn++,D.isVoidTag(t)?pt(J,e):(P.unshift(J),(s===1||s===2)&&(F.inXML=!0)),J=null}function dt(e,t,s){{const l=P[0]&&P[0].tag;l!=="script"&&l!=="style"&&e.includes("&")&&(e=D.decodeEntities(e,!1))}const o=P[0]||qe,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,Ee(i.loc,s)):o.children.push({type:2,content:e,loc:H(t,s)})}function pt(e,t,s=!1){s?Ee(e.loc,Kn(t,60)):Ee(e.loc,kl(t,62)+1),F.inSFCRoot&&(e.children.length?e.innerLoc.end=de({},e.children[e.children.length-1].loc.end):e.innerLoc.end=de({},e.innerLoc.start),e.innerLoc.source=G(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:l}=e;if(ue||(o==="slot"?e.tagType=2:Gn(e)?e.tagType=3:Nl(e)&&(e.tagType=1)),F.inRCDATA||(e.children=Jn(l)),i===0&&D.isIgnoreNewlineTag(o)){const r=l[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&D.isPreTag(o)&&tn--,nn===e&&(ue=F.inVPre=!1,nn=null),F.inXML&&(P[0]?P[0].ns:D.ns)===0&&(F.inXML=!1);{const r=e.props;if(process.env.NODE_ENV!=="production"&&me("COMPILER_V_IF_V_FOR_PRECEDENCE",D)){let a=!1,p=!1;for(let h=0;h<r.length;h++){const d=r[h];if(d.type===7&&(d.name==="if"?a=!0:d.name==="for"&&(p=!0)),a&&p){rt("COMPILER_V_IF_V_FOR_PRECEDENCE",D,e.loc);break}}}if(!F.inSFCRoot&&me("COMPILER_NATIVE_TEMPLATE",D)&&e.tag==="template"&&!Gn(e)){process.env.NODE_ENV!=="production"&&rt("COMPILER_NATIVE_TEMPLATE",D,e.loc);const a=P[0]||qe,p=a.children.indexOf(e);a.children.splice(p,1,...e.children)}const c=r.find(a=>a.type===6&&a.name==="inline-template");c&&$e("COMPILER_INLINE_TEMPLATE",D,c.loc)&&e.children.length&&(c.value={type:2,content:G(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:c.loc})}}function kl(e,t){let s=e;for(;ae.charCodeAt(s)!==t&&s<ae.length-1;)s++;return s}function Kn(e,t){let s=e;for(;ae.charCodeAt(s)!==t&&s>=0;)s--;return s}const El=new Set(["if","else","else-if","for","slot"]);function Gn({tag:e,props:t}){if(e==="template"){for(let s=0;s<t.length;s++)if(t[s].type===7&&El.has(t[s].name))return!0}return!1}function Nl({tag:e,props:t}){if(D.isCustomElement(e))return!1;if(e==="component"||_l(e.charCodeAt(0))||Ln(e)||D.isBuiltInComponent&&D.isBuiltInComponent(e)||D.isNativeTag&&!D.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const o=t[s];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if($e("COMPILER_IS_ON_ELEMENT",D,o.loc))return!0}}else if(o.name==="bind"&&he(o.arg,"is")&&$e("COMPILER_IS_ON_ELEMENT",D,o.loc))return!0}return!1}function _l(e){return e>64&&e<91}const xl=/\r\n/g;function Jn(e){const t=D.whitespace!=="preserve";let s=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i.type===2)if(tn)i.content=i.content.replace(xl,`
142
- `);else if(wl(i.content)){const l=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!l||!r||t&&(l===3&&(r===3||r===1)||l===1&&(r===3||r===1&&Sl(i.content)))?(s=!0,e[o]=null):i.content=" "}else t&&(i.content=Yn(i.content))}return s?e.filter(Boolean):e}function wl(e){for(let t=0;t<e.length;t++)if(!te(e.charCodeAt(t)))return!1;return!0}function Sl(e){for(let t=0;t<e.length;t++){const s=e.charCodeAt(t);if(s===10||s===13)return!0}return!1}function Yn(e){let t="",s=!1;for(let o=0;o<e.length;o++)te(e.charCodeAt(o))?s||(t+=" ",s=!0):(t+=e[o],s=!1);return t}function sn(e){(P[0]||qe).children.push(e)}function H(e,t){return{start:F.getPos(e),end:t==null?t:F.getPos(t),source:t==null?t:G(e,t)}}function Cl(e){return H(e.start.offset,e.end.offset)}function Ee(e,t){e.end=F.getPos(t),e.source=G(e.start.offset,t)}function Bl(e){const t={type:6,name:e.rawName,nameLoc:H(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const s=e.exp.loc;s.end.offset<e.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),t.value={type:2,content:e.exp.content,loc:s}}return t}function ft(e,t=!1,s,o=0,i=0){return B(e,t,s,o)}function V(e,t,s){D.onError(A(e,H(t,t),void 0,s))}function Tl(){F.reset(),J=null,$=null,Q="",ce=-1,ke=-1,P.length=0}function $l(e,t){if(Tl(),ae=e,D=de({},Un),t){let i;for(i in t)t[i]!=null&&(D[i]=t[i])}if(process.env.NODE_ENV!=="production"&&!D.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");F.mode=D.parseMode==="html"?1:D.parseMode==="sfc"?2:0,F.inXML=D.ns===1||D.ns===2;const s=t&&t.delimiters;s&&(F.delimiterOpen=it(s[0]),F.delimiterClose=it(s[1]));const o=qe=tl([],e);return F.parse(ae),o.loc=H(0,e.length),o.children=Jn(o.children),qe=null,o}function Dl(e,t){mt(e,void 0,t,!!Zn(e))}function Zn(e){const t=e.children.filter(s=>s.type!==3);return t.length===1&&t[0].type===1&&!at(t[0])?t[0]:null}function mt(e,t,s,o=!1,i=!1){const{children:l}=e,r=[];for(let d=0;d<l.length;d++){const m=l[d];if(m.type===1&&m.tagType===0){const k=o?0:ne(m,s);if(k>0){if(k>=2){m.codegenNode.patchFlag=-1,r.push(m);continue}}else{const b=m.codegenNode;if(b.type===13){const y=b.patchFlag;if((y===void 0||y===512||y===1)&&Qn(m,s)>=2){const f=Vn(m);f&&(b.props=s.hoist(f))}b.dynamicProps&&(b.dynamicProps=s.hoist(b.dynamicProps))}}}else if(m.type===12&&(o?0:ne(m,s))>=2){m.codegenNode.type===14&&m.codegenNode.arguments.length>0&&m.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${Me[-1]} */`:"")),r.push(m);continue}if(m.type===1){const k=m.tagType===1;k&&s.scopes.vSlot++,mt(m,e,s,!1,i),k&&s.scopes.vSlot--}else if(m.type===11)mt(m,e,s,m.children.length===1,!0);else if(m.type===9)for(let k=0;k<m.branches.length;k++)mt(m.branches[k],e,s,m.branches[k].children.length===1,i)}let c=!1;const a=[];if(r.length===l.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&le(e.codegenNode.children))e.codegenNode.children=p(be(e.codegenNode.children)),c=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!le(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=h(e.codegenNode,"default");d&&(a.push(s.cached.length),d.returns=p(be(d.returns)),c=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!le(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=X(e,"slot",!0),m=d&&d.arg&&h(t.codegenNode,d.arg);m&&(a.push(s.cached.length),m.returns=p(be(m.returns)),c=!0)}}if(!c)for(const d of r)a.push(s.cached.length),d.codegenNode=s.cache(d.codegenNode);a.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!le(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(z("__",B(JSON.stringify(a),!1)));function p(d){const m=s.cache(d);return i&&s.hmr&&(m.needArraySpread=!0),m}function h(d,m){if(d.children&&!le(d.children)&&d.children.type===15){const k=d.children.properties.find(b=>b.key===m||b.key.content===m);return k&&k.value}}r.length&&s.transformHoist&&s.transformHoist(l,s,e)}function ne(e,t){const{constantCache:s}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=s.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const c=Qn(e,t);if(c===0)return s.set(e,0),0;c<r&&(r=c);for(let a=0;a<e.children.length;a++){const p=ne(e.children[a],t);if(p===0)return s.set(e,0),0;p<r&&(r=p)}if(r>1)for(let a=0;a<e.props.length;a++){const p=e.props[a];if(p.type===7&&p.name==="bind"&&p.exp){const h=ne(p.exp,t);if(h===0)return s.set(e,0),0;h<r&&(r=h)}}if(i.isBlock){for(let a=0;a<e.props.length;a++)if(e.props[a].type===7)return s.set(e,0),0;t.removeHelper(ve),t.removeHelper(Te(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Be(t.inSSR,i.isComponent))}return s.set(e,r),r}else return s.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ne(e.content,t);case 4:return e.constType;case 8:let l=3;for(let r=0;r<e.children.length;r++){const c=e.children[r];if(W(c)||Tt(c))continue;const a=ne(c,t);if(a===0)return 0;a<l&&(l=a)}return l;case 20:return 2;default:return process.env.NODE_ENV,0}}const Ol=new Set([Ht,Ut,Pe,je]);function Xn(e,t){if(e.type===14&&!W(e.callee)&&Ol.has(e.callee)){const s=e.arguments[0];if(s.type===4)return ne(s,t);if(s.type===14)return Xn(s,t)}return 0}function Qn(e,t){let s=3;const o=Vn(e);if(o&&o.type===15){const{properties:i}=o;for(let l=0;l<i.length;l++){const{key:r,value:c}=i[l],a=ne(r,t);if(a===0)return a;a<s&&(s=a);let p;if(c.type===4?p=ne(c,t):c.type===14?p=Xn(c,t):p=0,p===0)return p;p<s&&(s=p)}}return s}function Vn(e){const t=e.codegenNode;if(t.type===13)return t.props}function Il(e,{filename:t="",prefixIdentifiers:s=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:r=[],directiveTransforms:c={},transformHoist:a=null,isBuiltInComponent:p=Ct,isCustomElement:h=Ct,expressionPlugins:d=[],scopeId:m=null,slotted:k=!0,ssr:b=!1,inSSR:y=!1,ssrCssVars:f="",bindingMetadata:u=Dr,inline:g=!1,isTS:N=!1,onError:_=Qt,onWarn:v=Mn,compatConfig:w}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),x={filename:t,selfName:E&&Dt(pe(E[1])),prefixIdentifiers:s,hoistStatic:o,hmr:i,cacheHandlers:l,nodeTransforms:r,directiveTransforms:c,transformHoist:a,isBuiltInComponent:p,isCustomElement:h,expressionPlugins:d,scopeId:m,slotted:k,ssr:b,inSSR:y,ssrCssVars:f,bindingMetadata:u,inline:g,isTS:N,onError:_,onWarn:v,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(S){const T=x.helpers.get(S)||0;return x.helpers.set(S,T+1),S},removeHelper(S){const T=x.helpers.get(S);if(T){const O=T-1;O?x.helpers.set(S,O):x.helpers.delete(S)}},helperString(S){return`_${Se[x.helper(S)]}`},replaceNode(S){if(process.env.NODE_ENV!=="production"){if(!x.currentNode)throw new Error("Node being replaced is already removed.");if(!x.parent)throw new Error("Cannot replace root node.")}x.parent.children[x.childIndex]=x.currentNode=S},removeNode(S){if(process.env.NODE_ENV!=="production"&&!x.parent)throw new Error("Cannot remove root node.");const T=x.parent.children,O=S?T.indexOf(S):x.currentNode?x.childIndex:-1;if(process.env.NODE_ENV!=="production"&&O<0)throw new Error("node being removed is not a child of current parent");!S||S===x.currentNode?(x.currentNode=null,x.onNodeRemoved()):x.childIndex>O&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(O,1)},onNodeRemoved:Ct,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){W(S)&&(S=B(S)),x.hoists.push(S);const T=B(`_hoisted_${x.hoists.length}`,!1,S.loc,2);return T.hoisted=S,T},cache(S,T=!1,O=!1){const C=nl(x.cached.length,S,T,O);return x.cached.push(C),C}};return x.filters=new Set,x}function Al(e,t){const s=Il(e,t);ht(e,s),t.hoistStatic&&Dl(e,s),t.ssr||Ml(e,s),e.helpers=new Set([...s.helpers.keys()]),e.components=[...s.components],e.directives=[...s.directives],e.imports=s.imports,e.hoists=s.hoists,e.temps=s.temps,e.cached=s.cached,e.transformed=!0,e.filters=[...s.filters]}function Ml(e,t){const{helper:s}=t,{children:o}=e;if(o.length===1){const i=Zn(e);if(i&&i.codegenNode){const l=i.codegenNode;l.type===13&&Zt(l,t),e.codegenNode=l}else e.codegenNode=o[0]}else if(o.length>1){let i=64;process.env.NODE_ENV!=="production"&&o.filter(l=>l.type!==3).length===1&&(i|=2048),e.codegenNode=ze(t,s(Le),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Ll(e,t){let s=0;const o=()=>{s--};for(;s<e.children.length;s++){const i=e.children[s];W(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=s,t.onNodeRemoved=o,ht(i,t))}}function ht(e,t){t.currentNode=e;const{nodeTransforms:s}=t,o=[];for(let l=0;l<s.length;l++){const r=s[l](e,t);if(r&&(le(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Fe);break;case 5:t.ssr||t.helper(nt);break;case 9:for(let l=0;l<e.branches.length;l++)ht(e.branches[l],t);break;case 10:case 11:case 1:case 0:Ll(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function es(e,t){const s=W(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:l}=o;if(o.tagType===3&&l.some(hl))return;const r=[];for(let c=0;c<l.length;c++){const a=l[c];if(a.type===7&&s(a.name)){l.splice(c,1),c--;const p=t(o,a,i);p&&r.push(p)}}return r}}}const ut="/*@__PURE__*/",ts=e=>`${Se[e]}: _${Se[e]}`;function Rl(e,{mode:t="function",prefixIdentifiers:s=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:l=null,optimizeImports:r=!1,runtimeGlobalName:c="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:h=!1,isTS:d=!1,inSSR:m=!1}){const k={mode:t,prefixIdentifiers:s,sourceMap:o,filename:i,scopeId:l,optimizeImports:r,runtimeGlobalName:c,runtimeModuleName:a,ssrRuntimeModuleName:p,ssr:h,isTS:d,inSSR:m,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(y){return`_${Se[y]}`},push(y,f=-2,u){k.code+=y},indent(){b(++k.indentLevel)},deindent(y=!1){y?--k.indentLevel:b(--k.indentLevel)},newline(){b(k.indentLevel)}};function b(y){k.push(`
143
- `+" ".repeat(y),0)}return k}function Fl(e,t={}){const s=Rl(e,t);t.onContextCreated&&t.onContextCreated(s);const{mode:o,push:i,prefixIdentifiers:l,indent:r,deindent:c,newline:a,scopeId:p,ssr:h}=s,d=Array.from(e.helpers),m=d.length>0,k=!l&&o!=="module";Pl(e,s);const y=h?"ssrRender":"render",u=(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${y}(${u}) {`),r(),k&&(i("with (_ctx) {"),r(),m&&(i(`const { ${d.map(ts).join(", ")} } = _Vue
144
- `,-1),a())),e.components.length&&(on(e.components,"component",s),(e.directives.length||e.temps>0)&&a()),e.directives.length&&(on(e.directives,"directive",s),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),on(e.filters,"filter",s),a()),e.temps>0){i("let ");for(let g=0;g<e.temps;g++)i(`${g>0?", ":""}_temp${g}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
145
- `,0),a()),h||i("return "),e.codegenNode?Y(e.codegenNode,s):i("null"),k&&(c(),i("}")),c(),i("}"),{ast:e,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function Pl(e,t){const{ssr:s,prefixIdentifiers:o,push:i,newline:l,runtimeModuleName:r,runtimeGlobalName:c,ssrRuntimeModuleName:a}=t,p=c,h=Array.from(e.helpers);if(h.length>0&&(i(`const _Vue = ${p}
146
- `,-1),e.hoists.length)){const d=[It,At,Fe,Mt,Bn].filter(m=>h.includes(m)).map(ts).join(", ");i(`const { ${d} } = _Vue
147
- `,-1)}jl(e.hoists,t),l(),i("return ")}function on(e,t,{helper:s,push:o,newline:i,isTS:l}){const r=s(t==="filter"?Pt:t==="component"?Lt:Ft);for(let c=0;c<e.length;c++){let a=e[c];const p=a.endsWith("__self");p&&(a=a.slice(0,-6)),o(`const ${Ue(a,t)} = ${r}(${JSON.stringify(a)}${p?", true":""})${l?"!":""}`),c<e.length-1&&i()}}function jl(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:o}=t;o();for(let i=0;i<e.length;i++){const l=e[i];l&&(s(`const _hoisted_${i+1} = `),Y(l,t),o())}t.pure=!1}function zl(e){return W(e)||e.type===4||e.type===2||e.type===5||e.type===8}function rn(e,t){const s=e.length>3||process.env.NODE_ENV!=="production"&&e.some(o=>le(o)||!zl(o));t.push("["),s&&t.indent(),We(e,t,s),s&&t.deindent(),t.push("]")}function We(e,t,s=!1,o=!0){const{push:i,newline:l}=t;for(let r=0;r<e.length;r++){const c=e[r];W(c)?i(c,-3):le(c)?rn(c,t):Y(c,t),r<e.length-1&&(s?(o&&i(","),l()):o&&i(", "))}}function Y(e,t){if(W(e)){t.push(e,-3);return}if(Tt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Pn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Y(e.codegenNode,t);break;case 2:Hl(e,t);break;case 4:ns(e,t);break;case 5:Ul(e,t);break;case 12:Y(e.codegenNode,t);break;case 8:ss(e,t);break;case 3:Wl(e,t);break;case 13:Kl(e,t);break;case 14:Jl(e,t);break;case 15:Yl(e,t);break;case 17:Zl(e,t);break;case 18:Xl(e,t);break;case 19:Ql(e,t);break;case 20:Vl(e,t);break;case 21:We(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Pn(!1,`unhandled codegen node type: ${e.type}`),e}}function Hl(e,t){t.push(JSON.stringify(e.content),-3,e)}function ns(e,t){const{content:s,isStatic:o}=e;t.push(o?JSON.stringify(s):s,-3,e)}function Ul(e,t){const{push:s,helper:o,pure:i}=t;i&&s(ut),s(`${o(nt)}(`),Y(e.content,t),s(")")}function ss(e,t){for(let s=0;s<e.children.length;s++){const o=e.children[s];W(o)?t.push(o,-3):Y(o,t)}}function ql(e,t){const{push:s}=t;if(e.type===8)s("["),ss(e,t),s("]");else if(e.isStatic){const o=Vt(e.content)?e.content:JSON.stringify(e.content);s(o,-2,e)}else s(`[${e.content}]`,-3,e)}function Wl(e,t){const{push:s,helper:o,pure:i}=t;i&&s(ut),s(`${o(Fe)}(${JSON.stringify(e.content)})`,-3,e)}function Kl(e,t){const{push:s,helper:o,pure:i}=t,{tag:l,props:r,children:c,patchFlag:a,dynamicProps:p,directives:h,isBlock:d,disableTracking:m,isComponent:k}=e;let b;if(a)if(process.env.NODE_ENV!=="production")if(a<0)b=a+` /* ${Me[a]} */`;else{const f=Object.keys(Me).map(Number).filter(u=>u>0&&a&u).map(u=>Me[u]).join(", ");b=a+` /* ${f} */`}else b=String(a);h&&s(o(jt)+"("),d&&s(`(${o(ve)}(${m?"true":""}), `),i&&s(ut);const y=d?Te(t.inSSR,k):Be(t.inSSR,k);s(o(y)+"(",-2,e),We(Gl([l,r,c,b,p]),t),s(")"),d&&s(")"),h&&(s(", "),Y(h,t),s(")"))}function Gl(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(s=>s||"null")}function Jl(e,t){const{push:s,helper:o,pure:i}=t,l=W(e.callee)?e.callee:o(e.callee);i&&s(ut),s(l+"(",-2,e),We(e.arguments,t),s(")")}function Yl(e,t){const{push:s,indent:o,deindent:i,newline:l}=t,{properties:r}=e;if(!r.length){s("{}",-2,e);return}const c=r.length>1||process.env.NODE_ENV!=="production"&&r.some(a=>a.value.type!==4);s(c?"{":"{ "),c&&o();for(let a=0;a<r.length;a++){const{key:p,value:h}=r[a];ql(p,t),s(": "),Y(h,t),a<r.length-1&&(s(","),l())}c&&i(),s(c?"}":" }")}function Zl(e,t){rn(e.elements,t)}function Xl(e,t){const{push:s,indent:o,deindent:i}=t,{params:l,returns:r,body:c,newline:a,isSlot:p}=e;p&&s(`_${Se[Gt]}(`),s("(",-2,e),le(l)?We(l,t):l&&Y(l,t),s(") => "),(a||c)&&(s("{"),o()),r?(a&&s("return "),le(r)?rn(r,t):Y(r,t)):c&&Y(c,t),(a||c)&&(i(),s("}")),p&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}function Ql(e,t){const{test:s,consequent:o,alternate:i,newline:l}=e,{push:r,indent:c,deindent:a,newline:p}=t;if(s.type===4){const d=!Vt(s.content);d&&r("("),ns(s,t),d&&r(")")}else r("("),Y(s,t),r(")");l&&c(),t.indentLevel++,l||r(" "),r("? "),Y(o,t),t.indentLevel--,l&&p(),l||r(" "),r(": ");const h=i.type===19;h||t.indentLevel++,Y(i,t),h||t.indentLevel--,l&&a(!0)}function Vl(e,t){const{push:s,helper:o,indent:i,deindent:l,newline:r}=t,{needPauseTracking:c,needArraySpread:a}=e;a&&s("[...("),s(`_cache[${e.index}] || (`),c&&(i(),s(`${o(ot)}(-1`),e.inVOnce&&s(", true"),s("),"),r(),s("(")),s(`_cache[${e.index}] = `),Y(e.value,t),c&&(s(`).cacheIndex = ${e.index},`),r(),s(`${o(ot)}(1),`),r(),s(`_cache[${e.index}]`),l()),s(")"),a&&s(")]")}const ea=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),ta=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Ne(e,t,s=!1,o=!1){const i=e.content;if(i.trim())try{new Function(o?` ${i} `:`return ${s?`(${i}) => {}`:`(${i})`}`)}catch(l){let r=l.message;const c=i.replace(ta,"").match(ea);c&&(r=`avoid using JavaScript keyword as property name: "${c[0]}"`),t.onError(A(45,e.loc,void 0,r))}}const na=(e,t)=>{if(e.type===5)e.content=ln(e.content,t);else if(e.type===1){const s=X(e,"memo");for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&i.name!=="for"){const l=i.exp,r=i.arg;l&&l.type===4&&!(i.name==="on"&&r)&&!(s&&r&&r.type===4&&r.content==="key")&&(i.exp=ln(l,t,i.name==="slot")),r&&r.type===4&&!r.isStatic&&(i.arg=ln(r,t))}}}};function ln(e,t,s=!1,o=!1,i=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Ne(e,t,s,o),e}const sa=es(/^(if|else|else-if)$/,(e,t,s)=>oa(e,t,s,(o,i,l)=>{const r=s.parent.children;let c=r.indexOf(o),a=0;for(;c-->=0;){const p=r[c];p&&p.type===9&&(a+=p.branches.length)}return()=>{if(l)o.codegenNode=is(i,a,s);else{const p=ra(o.codegenNode);p.alternate=is(i,a+o.branches.length-1,s)}}}));function oa(e,t,s,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;s.onError(A(28,t.loc)),t.exp=B("true",!1,i)}if(process.env.NODE_ENV!=="production"&&t.exp&&Ne(t.exp,s),t.name==="if"){const i=os(e,t),l={type:9,loc:Cl(e.loc),branches:[i]};if(s.replaceNode(l),o)return o(l,i,!0)}else{const i=s.parent.children,l=[];let r=i.indexOf(e);for(;r-->=-1;){const c=i[r];if(c&&c.type===3){s.removeNode(c),process.env.NODE_ENV!=="production"&&l.unshift(c);continue}if(c&&c.type===2&&!c.content.trim().length){s.removeNode(c);continue}if(c&&c.type===9){t.name==="else-if"&&c.branches[c.branches.length-1].condition===void 0&&s.onError(A(30,e.loc)),s.removeNode();const a=os(e,t);if(process.env.NODE_ENV!=="production"&&l.length&&!(s.parent&&s.parent.type===1&&(s.parent.tag==="transition"||s.parent.tag==="Transition"))&&(a.children=[...l,...a.children]),process.env.NODE_ENV!=="production"){const h=a.userKey;h&&c.branches.forEach(({userKey:d})=>{ia(d,h)&&s.onError(A(29,a.userKey.loc))})}c.branches.push(a);const p=o&&o(c,a,!1);ht(a,s),p&&p(),s.currentNode=null}else s.onError(A(30,e.loc));break}}}function os(e,t){const s=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:s&&!X(e,"for")?e.children:[e],userKey:He(e,"key"),isTemplateIf:s}}function is(e,t,s){return e.condition?Yt(e.condition,rs(e,t,s),q(s.helper(Fe),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):rs(e,t,s)}function rs(e,t,s){const{helper:o}=s,i=z("key",B(`${t}`,!1,ee,2)),{children:l}=e,r=l[0];if(l.length!==1||r.type!==1)if(l.length===1&&r.type===11){const a=r.codegenNode;return ct(a,i,s),a}else{let a=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&l.filter(p=>p.type!==3).length===1&&(a|=2048),ze(s,o(Le),se([i]),l,a,void 0,void 0,!0,!1,!1,e.loc)}else{const a=r.codegenNode,p=gl(a);return p.type===13&&Zt(p,s),ct(p,i,s),a}}function ia(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const s=e.exp,o=t.exp;if(s.type!==o.type||s.type!==4||s.isStatic!==o.isStatic||s.content!==o.content)return!1}return!0}function ra(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const la=(e,t,s)=>{const{modifiers:o,loc:i}=e,l=e.arg;let{exp:r}=e;if(r&&r.type===4&&!r.content.trim()&&(r=void 0),!r){if(l.type!==4||!l.isStatic)return s.onError(A(52,l.loc)),{props:[z(l,B("",!0,i))]};ls(e),r=e.exp}return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=l.content?`${l.content} || ""`:'""'),o.some(c=>c.content==="camel")&&(l.type===4?l.isStatic?l.content=pe(l.content):l.content=`${s.helperString(Wt)}(${l.content})`:(l.children.unshift(`${s.helperString(Wt)}(`),l.children.push(")"))),s.inSSR||(o.some(c=>c.content==="prop")&&as(l,"."),o.some(c=>c.content==="attr")&&as(l,"^")),{props:[z(l,r)]}},ls=(e,t)=>{const s=e.arg,o=pe(s.content);e.exp=B(o,!1,s.loc)},as=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},aa=es("for",(e,t,s)=>{const{helper:o,removeHelper:i}=s;return ca(e,t,s,l=>{const r=q(o(zt),[l.source]),c=lt(e),a=X(e,"memo"),p=He(e,"key",!1,!0);p&&p.type===7&&!p.exp&&ls(p);let d=p&&(p.type===6?p.value?B(p.value.content,!0):void 0:p.exp);const m=p&&d?z("key",d):null,k=l.source.type===4&&l.source.constType>0,b=k?64:p?128:256;return l.codegenNode=ze(s,o(Le),void 0,r,b,void 0,void 0,!0,!k,!1,e.loc),()=>{let y;const{children:f}=l;process.env.NODE_ENV!=="production"&&c&&e.children.some(N=>{if(N.type===1){const _=He(N,"key");if(_)return s.onError(A(33,_.loc)),!0}});const u=f.length!==1||f[0].type!==1,g=at(e)?e:c&&e.children.length===1&&at(e.children[0])?e.children[0]:null;if(g?(y=g.codegenNode,c&&m&&ct(y,m,s)):u?y=ze(s,o(Le),m?se([m]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=f[0].codegenNode,c&&m&&ct(y,m,s),y.isBlock!==!k&&(y.isBlock?(i(ve),i(Te(s.inSSR,y.isComponent))):i(Be(s.inSSR,y.isComponent))),y.isBlock=!k,y.isBlock?(o(ve),o(Te(s.inSSR,y.isComponent))):o(Be(s.inSSR,y.isComponent))),a){const N=Ce(an(l.parseResult,[B("_cached")]));N.body=sl([oe(["const _memo = (",a.exp,")"]),oe(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${s.helperString(Dn)}(_cached, _memo)) return _cached`]),oe(["const _item = ",y]),B("_item.memo = _memo"),B("return _item")]),r.arguments.push(N,B("_cache"),B(String(s.cached.length))),s.cached.push(null)}else r.arguments.push(Ce(an(l.parseResult),y,!0))}})});function ca(e,t,s,o){if(!t.exp){s.onError(A(31,t.loc));return}const i=t.forParseResult;if(!i){s.onError(A(32,t.loc));return}cs(i,s);const{addIdentifiers:l,removeIdentifiers:r,scopes:c}=s,{source:a,value:p,key:h,index:d}=i,m={type:11,loc:t.loc,source:a,valueAlias:p,keyAlias:h,objectIndexAlias:d,parseResult:i,children:lt(e)?e.children:[e]};s.replaceNode(m),c.vFor++;const k=o&&o(m);return()=>{c.vFor--,k&&k()}}function cs(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Ne(e.source,t),e.key&&Ne(e.key,t,!0),e.index&&Ne(e.index,t,!0),e.value&&Ne(e.value,t,!0)),e.finalized=!0)}function an({value:e,key:t,index:s},o=[]){return da([e,t,s,...o])}function da(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((s,o)=>s||B("_".repeat(o+1),!1))}const ds=B("undefined",!1),pa=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const s=X(e,"slot");if(s)return s.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},fa=(e,t,s,o)=>Ce(e,s,!1,!0,s.length?s[0].loc:o);function ma(e,t,s=fa){t.helper(Gt);const{children:o,loc:i}=e,l=[],r=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const a=X(e,"slot",!0);if(a){const{arg:f,exp:u}=a;f&&!Z(f)&&(c=!0),l.push(z(f||B("default",!0),s(u,void 0,o,i)))}let p=!1,h=!1;const d=[],m=new Set;let k=0;for(let f=0;f<o.length;f++){const u=o[f];let g;if(!lt(u)||!(g=X(u,"slot",!0))){u.type!==3&&d.push(u);continue}if(a){t.onError(A(37,g.loc));break}p=!0;const{children:N,loc:_}=u,{arg:v=B("default",!0),exp:w,loc:E}=g;let x;Z(v)?x=v?v.content:"default":c=!0;const S=X(u,"for"),T=s(w,S,N,_);let O,C;if(O=X(u,"if"))c=!0,r.push(Yt(O.exp,gt(v,T,k++),ds));else if(C=X(u,/^else(-if)?$/,!0)){let I=f,R;for(;I--&&(R=o[I],!(R.type!==3&&cn(R))););if(R&&lt(R)&&X(R,/^(else-)?if$/)){let M=r[r.length-1];for(;M.alternate.type===19;)M=M.alternate;M.alternate=C.exp?Yt(C.exp,gt(v,T,k++),ds):gt(v,T,k++)}else t.onError(A(30,C.loc))}else if(S){c=!0;const I=S.forParseResult;I?(cs(I,t),r.push(q(t.helper(zt),[I.source,Ce(an(I),gt(v,T),!0)]))):t.onError(A(32,S.loc))}else{if(x){if(m.has(x)){t.onError(A(38,E));continue}m.add(x),x==="default"&&(h=!0)}l.push(z(v,T))}}if(!a){const f=(u,g)=>{const N=s(u,void 0,g,i);return t.compatConfig&&(N.isNonScopedSlot=!0),z("default",N)};p?d.length&&d.some(u=>cn(u))&&(h?t.onError(A(39,d[0].loc)):l.push(f(void 0,d))):l.push(f(void 0,o))}const b=c?2:yt(e.children)?3:1;let y=se(l.concat(z("_",B(b+(process.env.NODE_ENV!=="production"?` /* ${Lr[b]} */`:""),!1))),i);return r.length&&(y=q(t.helper($n),[y,be(r)])),{slots:y,hasDynamicSlots:c}}function gt(e,t,s){const o=[z("name",e),z("fn",t)];return s!=null&&o.push(z("key",B(String(s),!0))),se(o)}function yt(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(s.tagType===2||yt(s.children))return!0;break;case 9:if(yt(s.branches))return!0;break;case 10:case 11:if(yt(s.children))return!0;break}}return!1}function cn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():cn(e.content)}const ps=new WeakMap,ha=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:i}=e,l=e.tagType===1;let r=l?ua(e,t):`"${o}"`;const c=Or(r)&&r.callee===Rt;let a,p,h=0,d,m,k,b=c||r===Re||r===Ot||!l&&(o==="svg"||o==="foreignObject"||o==="math");if(i.length>0){const y=fs(e,t,void 0,l,c);a=y.props,h=y.patchFlag,m=y.dynamicPropNames;const f=y.directives;k=f&&f.length?be(f.map(u=>ya(u,t))):void 0,y.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(r===tt&&(b=!0,h|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(A(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),l&&r!==Re&&r!==tt){const{slots:f,hasDynamicSlots:u}=ma(e,t);p=f,u&&(h|=1024)}else if(e.children.length===1&&r!==Re){const f=e.children[0],u=f.type,g=u===5||u===8;g&&ne(f,t)===0&&(h|=1),g||u===2?p=f:p=e.children}else p=e.children;m&&m.length&&(d=va(m)),e.codegenNode=ze(t,r,a,p,h===0?void 0:h,d,k,!!b,!1,l,e.loc)};function ua(e,t,s=!1){let{tag:o}=e;const i=dn(o),l=He(e,"is",!1,!0);if(l)if(i||me("COMPILER_IS_ON_ELEMENT",t)){let c;if(l.type===6?c=l.value&&B(l.value.content,!0):(c=l.exp,c||(c=B("is",!1,l.arg.loc))),c)return q(t.helper(Rt),[c])}else l.type===6&&l.value.content.startsWith("vue:")&&(o=l.value.content.slice(4));const r=Ln(o)||t.isBuiltInComponent(o);return r?(s||t.helper(r),r):(t.helper(Lt),t.components.add(o),Ue(o,"component"))}function fs(e,t,s=e.props,o,i,l=!1){const{tag:r,loc:c,children:a}=e;let p=[];const h=[],d=[],m=a.length>0;let k=!1,b=0,y=!1,f=!1,u=!1,g=!1,N=!1,_=!1;const v=[],w=T=>{p.length&&(h.push(se(ms(p),c)),p=[]),T&&h.push(T)},E=()=>{t.scopes.vFor>0&&p.push(z(B("ref_for",!0),B("true")))},x=({key:T,value:O})=>{if(Z(T)){const C=T.content,I=Bt(C);if(I&&(!o||i)&&C.toLowerCase()!=="onclick"&&C!=="onUpdate:modelValue"&&!xn(C)&&(g=!0),I&&xn(C)&&(_=!0),I&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&ne(O,t)>0)return;C==="ref"?y=!0:C==="class"?f=!0:C==="style"?u=!0:C!=="key"&&!v.includes(C)&&v.push(C),o&&(C==="class"||C==="style")&&!v.includes(C)&&v.push(C)}else N=!0};for(let T=0;T<s.length;T++){const O=s[T];if(O.type===6){const{loc:C,name:I,nameLoc:R,value:M}=O;let ge=!0;if(I==="ref"&&(y=!0,E()),I==="is"&&(dn(r)||M&&M.content.startsWith("vue:")||me("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(z(B(I,!0,R),B(M?M.content:"",ge,M?M.loc:C)))}else{const{name:C,arg:I,exp:R,loc:M,modifiers:ge}=O,xe=C==="bind",Et=C==="on";if(C==="slot"){o||t.onError(A(40,M));continue}if(C==="once"||C==="memo"||C==="is"||xe&&he(I,"is")&&(dn(r)||me("COMPILER_IS_ON_ELEMENT",t))||Et&&l)continue;if((xe&&he(I,"key")||Et&&m&&he(I,"vue:before-update"))&&(k=!0),xe&&he(I,"ref")&&E(),!I&&(xe||Et)){if(N=!0,R)if(xe){if(w(),process.env.NODE_ENV!=="production"&&h.some(Ae=>Ae.type===15?Ae.properties.some(({key:Ge})=>Ge.type!==4||!Ge.isStatic?!0:Ge.content!=="class"&&Ge.content!=="style"&&!Bt(Ge.content)):!0)&&$e("COMPILER_V_BIND_OBJECT_ORDER",t,M),me("COMPILER_V_BIND_OBJECT_ORDER",t)){h.unshift(R);continue}E(),w(),h.push(R)}else w({type:14,loc:M,callee:t.helper(qt),arguments:o?[R]:[R,"true"]});else t.onError(A(xe?34:35,M));continue}xe&&ge.some(Ie=>Ie.content==="prop")&&(b|=32);const Rs=t.directiveTransforms[C];if(Rs){const{props:Ie,needRuntime:Ae}=Rs(O,e,t);!l&&Ie.forEach(x),Et&&I&&!Z(I)?w(se(Ie,c)):p.push(...Ie),Ae&&(d.push(O),Tt(Ae)&&ps.set(O,Ae))}else Ir(C)||(d.push(O),m&&(k=!0))}}let S;if(h.length?(w(),h.length>1?S=q(t.helper(st),h,c):S=h[0]):p.length&&(S=se(ms(p),c)),N?b|=16:(f&&!o&&(b|=2),u&&!o&&(b|=4),v.length&&(b|=8),g&&(b|=32)),!k&&(b===0||b===32)&&(y||_||d.length>0)&&(b|=512),!t.inSSR&&S)switch(S.type){case 15:let T=-1,O=-1,C=!1;for(let M=0;M<S.properties.length;M++){const ge=S.properties[M].key;Z(ge)?ge.content==="class"?T=M:ge.content==="style"&&(O=M):ge.isHandlerKey||(C=!0)}const I=S.properties[T],R=S.properties[O];C?S=q(t.helper(Pe),[S]):(I&&!Z(I.value)&&(I.value=q(t.helper(Ht),[I.value])),R&&(u||R.value.type===4&&R.value.content.trim()[0]==="["||R.value.type===17)&&(R.value=q(t.helper(Ut),[R.value])));break;case 14:break;default:S=q(t.helper(Pe),[q(t.helper(je),[S])]);break}return{props:S,directives:d,patchFlag:b,dynamicPropNames:v,shouldUseBlock:k}}function ms(e){const t=new Map,s=[];for(let o=0;o<e.length;o++){const i=e[o];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const l=i.key.content,r=t.get(l);r?(l==="style"||l==="class"||Bt(l))&&ga(r,i):(t.set(l,i),s.push(i))}return s}function ga(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=be([e.value,t.value],e.loc)}function ya(e,t){const s=[],o=ps.get(e);o?s.push(t.helperString(o)):(t.helper(Ft),t.directives.add(e.name),s.push(Ue(e.name,"directive")));const{loc:i}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const l=B("true",!1,i);s.push(se(e.modifiers.map(r=>z(r,l)),i))}return be(s,e.loc)}function va(e){let t="[";for(let s=0,o=e.length;s<o;s++)t+=JSON.stringify(e[s]),s<o-1&&(t+=", ");return t+"]"}function dn(e){return e==="component"||e==="Component"}const ba=(e,t)=>{if(at(e)){const{children:s,loc:o}=e,{slotName:i,slotProps:l}=ka(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let c=2;l&&(r[2]=l,c=3),s.length&&(r[3]=Ce([],s,!1,!1,o),c=4),t.scopeId&&!t.slotted&&(c=5),r.splice(c),e.codegenNode=q(t.helper(Tn),r,o)}};function ka(e,t){let s='"default"',o;const i=[];for(let l=0;l<e.props.length;l++){const r=e.props[l];if(r.type===6)r.value&&(r.name==="name"?s=JSON.stringify(r.value.content):(r.name=pe(r.name),i.push(r)));else if(r.name==="bind"&&he(r.arg,"name")){if(r.exp)s=r.exp;else if(r.arg&&r.arg.type===4){const c=pe(r.arg.content);s=r.exp=B(c,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&Z(r.arg)&&(r.arg.content=pe(r.arg.content)),i.push(r)}if(i.length>0){const{props:l,directives:r}=fs(e,t,i,!1,!1);o=l,r.length&&t.onError(A(36,r[0].loc))}return{slotName:s,slotProps:o}}const hs=(e,t,s,o)=>{const{loc:i,modifiers:l,arg:r}=e;!e.exp&&!l.length&&s.onError(A(35,i));let c;if(r.type===4)if(r.isStatic){let d=r.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&s.onError(A(51,r.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const m=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Mr(pe(d)):`on:${d}`;c=B(m,!0,r.loc)}else c=oe([`${s.helperString(Kt)}(`,r,")"]);else c=r,c.children.unshift(`${s.helperString(Kt)}(`),c.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let p=s.cacheHandlers&&!a&&!s.inVOnce;if(a){const d=Fn(a),m=!(d||fl(a)),k=a.content.includes(";");process.env.NODE_ENV!=="production"&&Ne(a,s,!1,k),(m||p&&d)&&(a=oe([`${m?"$event":"(...args)"} => ${k?"{":"("}`,a,k?"}":")"]))}let h={props:[z(c,a||B("() => {}",!1,i))]};return o&&(h=o(h)),p&&(h.props[0].value=s.cache(h.props[0].value)),h.props.forEach(d=>d.key.isHandlerKey=!0),h},Ea=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const s=e.children;let o,i=!1;for(let l=0;l<s.length;l++){const r=s[l];if(en(r)){i=!0;for(let c=l+1;c<s.length;c++){const a=s[c];if(en(a))o||(o=s[l]=oe([r],r.loc)),o.children.push(" + ",a),s.splice(c,1),c--;else{o=void 0;break}}}}if(!(!i||s.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(l=>l.type===7&&!t.directiveTransforms[l.name])&&e.tag!=="template")))for(let l=0;l<s.length;l++){const r=s[l];if(en(r)||r.type===8){const c=[];(r.type!==2||r.content!==" ")&&c.push(r),!t.ssr&&ne(r,t)===0&&c.push(1+(process.env.NODE_ENV!=="production"?` /* ${Me[1]} */`:"")),s[l]={type:12,content:r,loc:r.loc,codegenNode:q(t.helper(Mt),c)}}}}},us=new WeakSet,Na=(e,t)=>{if(e.type===1&&X(e,"once",!0))return us.has(e)||t.inVOnce||t.inSSR?void 0:(us.add(e),t.inVOnce=!0,t.helper(ot),()=>{t.inVOnce=!1;const s=t.currentNode;s.codegenNode&&(s.codegenNode=t.cache(s.codegenNode,!0,!0))})},gs=(e,t,s)=>{const{exp:o,arg:i}=e;if(!o)return s.onError(A(41,e.loc)),vt();const l=o.loc.source.trim(),r=o.type===4?o.content:l,c=s.bindingMetadata[l];if(c==="props"||c==="props-aliased")return s.onError(A(44,o.loc)),vt();if(!r.trim()||!Fn(o))return s.onError(A(42,o.loc)),vt();const a=i||B("modelValue",!0),p=i?Z(i)?`onUpdate:${pe(i.content)}`:oe(['"onUpdate:" + ',i]):"onUpdate:modelValue";let h;const d=s.isTS?"($event: any)":"$event";h=oe([`${d} => ((`,o,") = $event)"]);const m=[z(a,e.exp),z(p,h)];if(e.modifiers.length&&t.tagType===1){const k=e.modifiers.map(y=>y.content).map(y=>(Vt(y)?y:JSON.stringify(y))+": true").join(", "),b=i?Z(i)?`${i.content}Modifiers`:oe([i,' + "Modifiers"']):"modelModifiers";m.push(z(b,B(`{ ${k} }`,!1,e.loc,2)))}return vt(m)};function vt(e=[]){return{props:e}}const _a=/[\w).+\-_$\]]/,xa=(e,t)=>{me("COMPILER_FILTERS",t)&&(e.type===5?bt(e.content,t):e.type===1&&e.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&bt(s.exp,t)}))};function bt(e,t){if(e.type===4)ys(e,t);else for(let s=0;s<e.children.length;s++){const o=e.children[s];typeof o=="object"&&(o.type===4?ys(o,t):o.type===8?bt(e,t):o.type===5&&bt(o.content,t))}}function ys(e,t){const s=e.content;let o=!1,i=!1,l=!1,r=!1,c=0,a=0,p=0,h=0,d,m,k,b,y=[];for(k=0;k<s.length;k++)if(m=d,d=s.charCodeAt(k),o)d===39&&m!==92&&(o=!1);else if(i)d===34&&m!==92&&(i=!1);else if(l)d===96&&m!==92&&(l=!1);else if(r)d===47&&m!==92&&(r=!1);else if(d===124&&s.charCodeAt(k+1)!==124&&s.charCodeAt(k-1)!==124&&!c&&!a&&!p)b===void 0?(h=k+1,b=s.slice(0,k).trim()):f();else{switch(d){case 34:i=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:a++;break;case 93:a--;break;case 123:c++;break;case 125:c--;break}if(d===47){let u=k-1,g;for(;u>=0&&(g=s.charAt(u),g===" ");u--);(!g||!_a.test(g))&&(r=!0)}}b===void 0?b=s.slice(0,k).trim():h!==0&&f();function f(){y.push(s.slice(h,k).trim()),h=k+1}if(y.length){for(process.env.NODE_ENV!=="production"&&rt("COMPILER_FILTERS",t,e.loc),k=0;k<y.length;k++)b=wa(b,y[k],t);e.content=b,e.ast=void 0}}function wa(e,t,s){s.helper(Pt);const o=t.indexOf("(");if(o<0)return s.filters.add(t),`${Ue(t,"filter")}(${e})`;{const i=t.slice(0,o),l=t.slice(o+1);return s.filters.add(i),`${Ue(i,"filter")}(${e}${l!==")"?","+l:l}`}}const vs=new WeakSet,Sa=(e,t)=>{if(e.type===1){const s=X(e,"memo");return!s||vs.has(e)?void 0:(vs.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&Zt(o,t),e.codegenNode=q(t.helper(Jt),[s.exp,Ce(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Ca(e){return[[Na,sa,Sa,aa,xa,...process.env.NODE_ENV!=="production"?[na]:[],ba,ha,pa,Ea],{on:hs,bind:la,model:gs}]}function Ba(e,t={}){const s=t.onError||Qt,o=t.mode==="module";t.prefixIdentifiers===!0?s(A(47)):o&&s(A(48));const i=!1;t.cacheHandlers&&s(A(49)),t.scopeId&&!o&&s(A(50));const l=de({},t,{prefixIdentifiers:i}),r=W(e)?$l(e,l):e,[c,a]=Ca();return Al(r,de({},l,{nodeTransforms:[...c,...t.nodeTransforms||[]],directiveTransforms:de({},a,t.directiveTransforms||{})})),Fl(r,l)}const Ta=()=>({props:[]});/**
139
+ **/const Je=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Ye=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),ut=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),Fn=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),$e=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),zn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),jn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ze=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Hn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),Vt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),en=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Un=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),qn=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),gt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),yt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),tn=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),nn=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Xe=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Qe=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),sn=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),on=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),ml=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),rn=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),vt=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),hl=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),ul=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),ln=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),gl=Symbol(process.env.NODE_ENV!=="production"?"unref":""),yl=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),an=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Wn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),ze={[Je]:"Fragment",[Ye]:"Teleport",[Wt]:"Suspense",[ut]:"KeepAlive",[Fn]:"BaseTransition",[$e]:"openBlock",[zn]:"createBlock",[jn]:"createElementBlock",[Kt]:"createVNode",[Gt]:"createElementVNode",[Ze]:"createCommentVNode",[Jt]:"createTextVNode",[Hn]:"createStaticVNode",[Yt]:"resolveComponent",[Zt]:"resolveDynamicComponent",[Xt]:"resolveDirective",[Qt]:"resolveFilter",[Vt]:"withDirectives",[en]:"renderList",[Un]:"renderSlot",[qn]:"createSlots",[gt]:"toDisplayString",[yt]:"mergeProps",[tn]:"normalizeClass",[nn]:"normalizeStyle",[Xe]:"normalizeProps",[Qe]:"guardReactiveProps",[sn]:"toHandlers",[on]:"camelize",[ml]:"capitalize",[rn]:"toHandlerKey",[vt]:"setBlockTracking",[hl]:"pushScopeId",[ul]:"popScopeId",[ln]:"withCtx",[gl]:"unref",[yl]:"isRef",[an]:"withMemo",[Wn]:"isMemoSame"};function vl(t){Object.getOwnPropertySymbols(t).forEach(n=>{ze[n]=t[n]})}const ae={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function bl(t,n=""){return{type:0,source:n,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ae}}function Ve(t,n,s,o,r,l,i,a=!1,c=!1,p=!1,h=ae){return t&&(a?(t.helper($e),t.helper(Ue(t.inSSR,p))):t.helper(He(t.inSSR,p)),i&&t.helper(Vt)),{type:13,tag:n,props:s,children:o,patchFlag:r,dynamicProps:l,directives:i,isBlock:a,disableTracking:c,isComponent:p,loc:h}}function De(t,n=ae){return{type:17,loc:n,elements:t}}function pe(t,n=ae){return{type:15,loc:n,properties:t}}function G(t,n){return{type:16,loc:ae,key:X(t)?A(t,!0):t,value:n}}function A(t,n=!1,s=ae,o=0){return{type:4,loc:s,content:t,isStatic:n,constType:n?3:o}}function fe(t,n=ae){return{type:8,loc:n,children:t}}function Z(t,n=[],s=ae){return{type:14,loc:s,callee:t,arguments:n}}function je(t,n=void 0,s=!1,o=!1,r=ae){return{type:18,params:t,returns:n,newline:s,isSlot:o,loc:r}}function cn(t,n,s,o=!0){return{type:19,test:t,consequent:n,alternate:s,newline:o,loc:ae}}function kl(t,n,s=!1,o=!1){return{type:20,index:t,value:n,needPauseTracking:s,inVOnce:o,needArraySpread:!1,loc:ae}}function El(t){return{type:21,body:t,loc:ae}}function He(t,n){return t||n?Kt:Gt}function Ue(t,n){return t||n?zn:jn}function dn(t,{helper:n,removeHelper:s,inSSR:o}){t.isBlock||(t.isBlock=!0,s(He(o,t.isComponent)),n($e),n(Ue(o,t.isComponent)))}const Kn=new Uint8Array([123,123]),Gn=new Uint8Array([125,125]);function Jn(t){return t>=97&&t<=122||t>=65&&t<=90}function ce(t){return t===32||t===10||t===9||t===12||t===13}function xe(t){return t===47||t===62||ce(t)}function bt(t){const n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const Q={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Nl{constructor(n,s){this.stack=n,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Kn,this.delimiterClose=Gn,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Kn,this.delimiterClose=Gn}getPos(n){let s=1,o=n+1;for(let r=this.newlines.length-1;r>=0;r--){const l=this.newlines[r];if(n>l){s=r+2,o=n-l;break}}return{column:o,line:s,offset:n}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(n){n===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&n===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(n))}stateInterpolationOpen(n){if(n===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(n)):(this.state=1,this.stateText(n))}stateInterpolation(n){n===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(n))}stateInterpolationClose(n){n===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(n))}stateSpecialStartSequence(n){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?xe(n):(n|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(n)}stateInRCDATA(n){if(this.sequenceIndex===this.currentSequence.length){if(n===62||ce(n)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const o=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=o}this.sectionStart=s+2,this.stateInClosingTagName(n),this.inRCDATA=!1;return}this.sequenceIndex=0}(n|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Q.TitleEnd||this.currentSequence===Q.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&n===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(n)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(n===60)}stateCDATASequence(n){n===Q.Cdata[this.sequenceIndex]?++this.sequenceIndex===Q.Cdata.length&&(this.state=28,this.currentSequence=Q.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(n))}fastForwardTo(n){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===n)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(n){n===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Q.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):n!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(n,s){this.enterRCDATA(n,s),this.state=31}enterRCDATA(n,s){this.inRCDATA=!0,this.currentSequence=n,this.sequenceIndex=s}stateBeforeTagName(n){n===33?(this.state=22,this.sectionStart=this.index+1):n===63?(this.state=24,this.sectionStart=this.index+1):Jn(n)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:n===116?this.state=30:this.state=n===115?29:6):n===47?this.state=8:(this.state=1,this.stateText(n))}stateInTagName(n){xe(n)&&this.handleTagName(n)}stateInSFCRootTagName(n){if(xe(n)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(bt("</"+s),0),this.handleTagName(n)}}handleTagName(n){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(n)}stateBeforeClosingTagName(n){ce(n)||(n===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=Jn(n)?9:27,this.sectionStart=this.index))}stateInClosingTagName(n){(n===62||ce(n))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(n))}stateAfterClosingTagName(n){n===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(n){n===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):n===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):n===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ce(n)||(process.env.NODE_ENV!=="production"&&n===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(n))}handleAttrStart(n){n===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):n===46||n===58||n===64||n===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(n){n===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ce(n)||(this.state=11,this.stateBeforeAttrName(n))}stateInAttrName(n){n===61||xe(n)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(n)):process.env.NODE_ENV!=="production"&&(n===34||n===39||n===60)&&this.cbs.onerr(17,this.index)}stateInDirName(n){n===61||xe(n)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(n)):n===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):n===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(n){n===61||xe(n)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(n)):n===91?this.state=15:n===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(n){n===93?this.state=14:(n===61||xe(n))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(n),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(n){n===61||xe(n)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(n)):n===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(n){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(n)}stateAfterAttrName(n){n===61?this.state=18:n===47||n===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(n)):ce(n)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(n))}stateBeforeAttrValue(n){n===34?(this.state=19,this.sectionStart=this.index+1):n===39?(this.state=20,this.sectionStart=this.index+1):ce(n)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(n))}handleInAttrValue(n,s){(n===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(n){this.handleInAttrValue(n,34)}stateInAttrValueSingleQuotes(n){this.handleInAttrValue(n,39)}stateInAttrValueNoQuotes(n){ce(n)||n===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(n)):(process.env.NODE_ENV!=="production"&&n===34||n===39||n===60||n===61||n===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(n){n===91?(this.state=26,this.sequenceIndex=0):this.state=n===45?25:23}stateInDeclaration(n){(n===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(n){(n===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(n){n===45?(this.state=28,this.currentSequence=Q.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(n){(n===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(n){n===Q.ScriptEnd[3]?this.startSpecial(Q.ScriptEnd,4):n===Q.StyleEnd[3]?this.startSpecial(Q.StyleEnd,4):(this.state=6,this.stateInTagName(n))}stateBeforeSpecialT(n){n===Q.TitleEnd[3]?this.startSpecial(Q.TitleEnd,4):n===Q.TextareaEnd[3]?this.startSpecial(Q.TextareaEnd,4):(this.state=6,this.stateInTagName(n))}startEntity(){}stateInEntity(){}parse(n){for(this.buffer=n;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const n=this.buffer.length;this.sectionStart>=n||(this.state===28?this.currentSequence===Q.CdataEnd?this.cbs.oncdata(this.sectionStart,n):this.cbs.oncomment(this.sectionStart,n):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,n))}emitCodePoint(n,s){}}const xl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:t=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function pn(t,{compatConfig:n}){const s=n&&n[t];return t==="MODE"?s||3:s}function we(t,n){const s=pn("MODE",n),o=pn(t,n);return s===3?o===!0:o!==!1}function qe(t,n,s,...o){const r=we(t,n);return process.env.NODE_ENV!=="production"&&r&&kt(t,n,s,...o),r}function kt(t,n,s,...o){if(pn(t,n)==="suppress-warning")return;const{message:l,link:i}=xl[t],a=`(deprecation ${t}) ${typeof l=="function"?l(...o):l}${i?`
140
+ Details: ${i}`:""}`,c=new SyntaxError(a);c.code=t,s&&(c.loc=s),n.onWarn(c)}function fn(t){throw t}function Yn(t){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${t.message}`)}function j(t,n,s,o){const r=process.env.NODE_ENV!=="production"?(s||wl)[t]+(o||""):`https://vuejs.org/error-reference/#compiler-${t}`,l=new SyntaxError(String(r));return l.code=t,l.loc=n,l}const wl={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
141
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},ne=t=>t.type===4&&t.isStatic;function Zn(t){switch(t){case"Teleport":case"teleport":return Ye;case"Suspense":case"suspense":return Wt;case"KeepAlive":case"keep-alive":return ut;case"BaseTransition":case"base-transition":return Fn}}const _l=/^$|^\d|[^\$\w\xA0-\uFFFF]/,mn=t=>!_l.test(t),Sl=/[A-Za-z_$\xA0-\uFFFF]/,Cl=/[\.\?\w$\xA0-\uFFFF]/,Bl=/\s+[.[]\s*|\s*[.[]\s+/g,Xn=t=>t.type===4?t.content:t.loc.source,Qn=t=>{const n=Xn(t).trim().replace(Bl,a=>a.trim());let s=0,o=[],r=0,l=0,i=null;for(let a=0;a<n.length;a++){const c=n.charAt(a);switch(s){case 0:if(c==="[")o.push(s),s=1,r++;else if(c==="(")o.push(s),s=2,l++;else if(!(a===0?Sl:Cl).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(o.push(s),s=3,i=c):c==="["?r++:c==="]"&&(--r||(s=o.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")o.push(s),s=3,i=c;else if(c==="(")l++;else if(c===")"){if(a===n.length-1)return!1;--l||(s=o.pop())}break;case 3:c===i&&(s=o.pop(),i=null);break}}return!r&&!l},Tl=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,$l=t=>Tl.test(Xn(t));function Vn(t,n){if(!t)throw new Error(n||"unexpected compiler condition")}function se(t,n,s=!1){for(let o=0;o<t.props.length;o++){const r=t.props[o];if(r.type===7&&(s||r.exp)&&(X(n)?r.name===n:n.test(r.name)))return r}}function et(t,n,s=!1,o=!1){for(let r=0;r<t.props.length;r++){const l=t.props[r];if(l.type===6){if(s)continue;if(l.name===n&&(l.value||o))return l}else if(l.name==="bind"&&(l.exp||o)&&_e(l.arg,n))return l}}function _e(t,n){return!!(t&&ne(t)&&t.content===n)}function Dl(t){return t.props.some(n=>n.type===7&&n.name==="bind"&&(!n.arg||n.arg.type!==4||!n.arg.isStatic))}function hn(t){return t.type===5||t.type===2}function es(t){return t.type===7&&t.name==="pre"}function Il(t){return t.type===7&&t.name==="slot"}function Et(t){return t.type===1&&t.tagType===3}function Nt(t){return t.type===1&&t.tagType===2}const Ol=new Set([Xe,Qe]);function ts(t,n=[]){if(t&&!X(t)&&t.type===14){const s=t.callee;if(!X(s)&&Ol.has(s))return ts(t.arguments[0],n.concat(t))}return[t,n]}function xt(t,n,s){let o,r=t.type===13?t.props:t.arguments[2],l=[],i;if(r&&!X(r)&&r.type===14){const a=ts(r);r=a[0],l=a[1],i=l[l.length-1]}if(r==null||X(r))o=pe([n]);else if(r.type===14){const a=r.arguments[0];!X(a)&&a.type===15?ns(n,a)||a.properties.unshift(n):r.callee===sn?o=Z(s.helper(yt),[pe([n]),r]):r.arguments.unshift(pe([n])),!o&&(o=r)}else r.type===15?(ns(n,r)||r.properties.unshift(n),o=r):(o=Z(s.helper(yt),[pe([n]),r]),i&&i.callee===Qe&&(i=l[l.length-2]));t.type===13?i?i.arguments[0]=o:t.props=o:i?i.arguments[0]=o:t.arguments[2]=o}function ns(t,n){let s=!1;if(t.key.type===4){const o=t.key.content;s=n.properties.some(r=>r.key.type===4&&r.key.content===o)}return s}function tt(t,n){return`_${n}_${t.replace(/[^\w]/g,(s,o)=>s==="-"?"_":t.charCodeAt(o).toString())}`}function Al(t){return t.type===14&&t.callee===an?t.arguments[1].returns:t}const Ml=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ss={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ht,isPreTag:ht,isIgnoreNewlineTag:ht,isCustomElement:ht,onError:fn,onWarn:Yn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let P=ss,nt=null,ge="",ee=null,R=null,oe="",ye=-1,Ie=-1,un=0,Se=!1,gn=null;const W=[],U=new Nl(W,{onerr:re,ontext(t,n){wt(V(t,n),t,n)},ontextentity(t,n,s){wt(t,n,s)},oninterpolation(t,n){if(Se)return wt(V(t,n),t,n);let s=t+U.delimiterOpen.length,o=n-U.delimiterClose.length;for(;ce(ge.charCodeAt(s));)s++;for(;ce(ge.charCodeAt(o-1));)o--;let r=V(s,o);r.includes("&")&&(r=P.decodeEntities(r,!1)),yn({type:5,content:St(r,!1,J(s,o)),loc:J(t,n)})},onopentagname(t,n){const s=V(t,n);ee={type:1,tag:s,ns:P.getNamespace(s,W[0],P.ns),tagType:0,props:[],children:[],loc:J(t-1,n),codegenNode:void 0}},onopentagend(t){rs(t)},onclosetag(t,n){const s=V(t,n);if(!P.isVoidTag(s)){let o=!1;for(let r=0;r<W.length;r++)if(W[r].tag.toLowerCase()===s.toLowerCase()){o=!0,r>0&&re(24,W[0].loc.start.offset);for(let i=0;i<=r;i++){const a=W.shift();_t(a,n,i<r)}break}o||re(23,is(t,60))}},onselfclosingtag(t){const n=ee.tag;ee.isSelfClosing=!0,rs(t),W[0]&&W[0].tag===n&&_t(W.shift(),t)},onattribname(t,n){R={type:6,name:V(t,n),nameLoc:J(t,n),value:void 0,loc:J(t)}},ondirname(t,n){const s=V(t,n),o=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!Se&&o===""&&re(26,t),Se||o==="")R={type:6,name:s,nameLoc:J(t,n),value:void 0,loc:J(t)};else if(R={type:7,name:o,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[A("prop")]:[],loc:J(t)},o==="pre"){Se=U.inVPre=!0,gn=ee;const r=ee.props;for(let l=0;l<r.length;l++)r[l].type===7&&(r[l]=Kl(r[l]))}},ondirarg(t,n){if(t===n)return;const s=V(t,n);if(Se&&!es(R))R.name+=s,Oe(R.nameLoc,n);else{const o=s[0]!=="[";R.arg=St(o?s:s.slice(1,-1),o,J(t,n),o?3:0)}},ondirmodifier(t,n){const s=V(t,n);if(Se&&!es(R))R.name+="."+s,Oe(R.nameLoc,n);else if(R.name==="slot"){const o=R.arg;o&&(o.content+="."+s,Oe(o.loc,n))}else{const o=A(s,!0,J(t,n));R.modifiers.push(o)}},onattribdata(t,n){oe+=V(t,n),ye<0&&(ye=t),Ie=n},onattribentity(t,n,s){oe+=t,ye<0&&(ye=n),Ie=s},onattribnameend(t){const n=R.loc.start.offset,s=V(n,t);R.type===7&&(R.rawName=s),ee.props.some(o=>(o.type===7?o.rawName:o.name)===s)&&re(2,n)},onattribend(t,n){if(ee&&R){if(Oe(R.loc,n),t!==0)if(oe.includes("&")&&(oe=P.decodeEntities(oe,!0)),R.type===6)R.name==="class"&&(oe=cs(oe).trim()),t===1&&!oe&&re(13,n),R.value={type:2,content:oe,loc:t===1?J(ye,Ie):J(ye-1,Ie+1)},U.inSFCRoot&&ee.tag==="template"&&R.name==="lang"&&oe&&oe!=="html"&&U.enterRCDATA(bt("</template"),0);else{let s=0;R.exp=St(oe,!1,J(ye,Ie),0,s),R.name==="for"&&(R.forParseResult=Rl(R.exp));let o=-1;R.name==="bind"&&(o=R.modifiers.findIndex(r=>r.content==="sync"))>-1&&qe("COMPILER_V_BIND_SYNC",P,R.loc,R.arg.loc.source)&&(R.name="model",R.modifiers.splice(o,1))}(R.type!==7||R.name!=="pre")&&ee.props.push(R)}oe="",ye=Ie=-1},oncomment(t,n){P.comments&&yn({type:3,content:V(t,n),loc:J(t-4,n+3)})},onend(){const t=ge.length;if(process.env.NODE_ENV!=="production"&&U.state!==1)switch(U.state){case 5:case 8:re(5,t);break;case 3:case 4:re(25,U.sectionStart);break;case 28:U.currentSequence===Q.CdataEnd?re(6,t):re(7,t);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:re(9,t);break}for(let n=0;n<W.length;n++)_t(W[n],t-1),re(24,W[n].loc.start.offset)},oncdata(t,n){W[0].ns!==0?wt(V(t,n),t,n):re(1,t-9)},onprocessinginstruction(t){(W[0]?W[0].ns:P.ns)===0&&re(21,t-1)}}),os=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ll=/^\(|\)$/g;function Rl(t){const n=t.loc,s=t.content,o=s.match(Ml);if(!o)return;const[,r,l]=o,i=(d,m,g=!1)=>{const v=n.start.offset+m,k=v+d.length;return St(d,!1,J(v,k),0,g?1:0)},a={source:i(l.trim(),s.indexOf(l,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ll,"").trim();const p=r.indexOf(c),h=c.match(os);if(h){c=c.replace(os,"").trim();const d=h[1].trim();let m;if(d&&(m=s.indexOf(d,p+c.length),a.key=i(d,m,!0)),h[2]){const g=h[2].trim();g&&(a.index=i(g,s.indexOf(g,a.key?m+d.length:p+c.length),!0))}}return c&&(a.value=i(c,p,!0)),a}function V(t,n){return ge.slice(t,n)}function rs(t){U.inSFCRoot&&(ee.innerLoc=J(t+1,t+1)),yn(ee);const{tag:n,ns:s}=ee;s===0&&P.isPreTag(n)&&un++,P.isVoidTag(n)?_t(ee,t):(W.unshift(ee),(s===1||s===2)&&(U.inXML=!0)),ee=null}function wt(t,n,s){{const l=W[0]&&W[0].tag;l!=="script"&&l!=="style"&&t.includes("&")&&(t=P.decodeEntities(t,!1))}const o=W[0]||nt,r=o.children[o.children.length-1];r&&r.type===2?(r.content+=t,Oe(r.loc,s)):o.children.push({type:2,content:t,loc:J(n,s)})}function _t(t,n,s=!1){s?Oe(t.loc,is(n,60)):Oe(t.loc,Pl(n,62)+1),U.inSFCRoot&&(t.children.length?t.innerLoc.end=Ee({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Ee({},t.innerLoc.start),t.innerLoc.source=V(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:o,ns:r,children:l}=t;if(Se||(o==="slot"?t.tagType=2:ls(t)?t.tagType=3:zl(t)&&(t.tagType=1)),U.inRCDATA||(t.children=as(l)),r===0&&P.isIgnoreNewlineTag(o)){const i=l[0];i&&i.type===2&&(i.content=i.content.replace(/^\r?\n/,""))}r===0&&P.isPreTag(o)&&un--,gn===t&&(Se=U.inVPre=!1,gn=null),U.inXML&&(W[0]?W[0].ns:P.ns)===0&&(U.inXML=!1);{const i=t.props;if(process.env.NODE_ENV!=="production"&&we("COMPILER_V_IF_V_FOR_PRECEDENCE",P)){let c=!1,p=!1;for(let h=0;h<i.length;h++){const d=i[h];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){kt("COMPILER_V_IF_V_FOR_PRECEDENCE",P,t.loc);break}}}if(!U.inSFCRoot&&we("COMPILER_NATIVE_TEMPLATE",P)&&t.tag==="template"&&!ls(t)){process.env.NODE_ENV!=="production"&&kt("COMPILER_NATIVE_TEMPLATE",P,t.loc);const c=W[0]||nt,p=c.children.indexOf(t);c.children.splice(p,1,...t.children)}const a=i.find(c=>c.type===6&&c.name==="inline-template");a&&qe("COMPILER_INLINE_TEMPLATE",P,a.loc)&&t.children.length&&(a.value={type:2,content:V(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:a.loc})}}function Pl(t,n){let s=t;for(;ge.charCodeAt(s)!==n&&s<ge.length-1;)s++;return s}function is(t,n){let s=t;for(;ge.charCodeAt(s)!==n&&s>=0;)s--;return s}const Fl=new Set(["if","else","else-if","for","slot"]);function ls({tag:t,props:n}){if(t==="template"){for(let s=0;s<n.length;s++)if(n[s].type===7&&Fl.has(n[s].name))return!0}return!1}function zl({tag:t,props:n}){if(P.isCustomElement(t))return!1;if(t==="component"||jl(t.charCodeAt(0))||Zn(t)||P.isBuiltInComponent&&P.isBuiltInComponent(t)||P.isNativeTag&&!P.isNativeTag(t))return!0;for(let s=0;s<n.length;s++){const o=n[s];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(qe("COMPILER_IS_ON_ELEMENT",P,o.loc))return!0}}else if(o.name==="bind"&&_e(o.arg,"is")&&qe("COMPILER_IS_ON_ELEMENT",P,o.loc))return!0}return!1}function jl(t){return t>64&&t<91}const Hl=/\r\n/g;function as(t){const n=P.whitespace!=="preserve";let s=!1;for(let o=0;o<t.length;o++){const r=t[o];if(r.type===2)if(un)r.content=r.content.replace(Hl,`
142
+ `);else if(Ul(r.content)){const l=t[o-1]&&t[o-1].type,i=t[o+1]&&t[o+1].type;!l||!i||n&&(l===3&&(i===3||i===1)||l===1&&(i===3||i===1&&ql(r.content)))?(s=!0,t[o]=null):r.content=" "}else n&&(r.content=cs(r.content))}return s?t.filter(Boolean):t}function Ul(t){for(let n=0;n<t.length;n++)if(!ce(t.charCodeAt(n)))return!1;return!0}function ql(t){for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s===10||s===13)return!0}return!1}function cs(t){let n="",s=!1;for(let o=0;o<t.length;o++)ce(t.charCodeAt(o))?s||(n+=" ",s=!0):(n+=t[o],s=!1);return n}function yn(t){(W[0]||nt).children.push(t)}function J(t,n){return{start:U.getPos(t),end:n==null?n:U.getPos(n),source:n==null?n:V(t,n)}}function Wl(t){return J(t.start.offset,t.end.offset)}function Oe(t,n){t.end=U.getPos(n),t.source=V(t.start.offset,n)}function Kl(t){const n={type:6,name:t.rawName,nameLoc:J(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const s=t.exp.loc;s.end.offset<t.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),n.value={type:2,content:t.exp.content,loc:s}}return n}function St(t,n=!1,s,o=0,r=0){return A(t,n,s,o)}function re(t,n,s){P.onError(j(t,J(n,n),void 0,s))}function Gl(){U.reset(),ee=null,R=null,oe="",ye=-1,Ie=-1,W.length=0}function Jl(t,n){if(Gl(),ge=t,P=Ee({},ss),n){let r;for(r in n)n[r]!=null&&(P[r]=n[r])}if(process.env.NODE_ENV!=="production"&&!P.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");U.mode=P.parseMode==="html"?1:P.parseMode==="sfc"?2:0,U.inXML=P.ns===1||P.ns===2;const s=n&&n.delimiters;s&&(U.delimiterOpen=bt(s[0]),U.delimiterClose=bt(s[1]));const o=nt=bl([],t);return U.parse(ge),o.loc=J(0,t.length),o.children=as(o.children),nt=null,o}function Yl(t,n){Ct(t,void 0,n,!!ds(t))}function ds(t){const n=t.children.filter(s=>s.type!==3);return n.length===1&&n[0].type===1&&!Nt(n[0])?n[0]:null}function Ct(t,n,s,o=!1,r=!1){const{children:l}=t,i=[];for(let d=0;d<l.length;d++){const m=l[d];if(m.type===1&&m.tagType===0){const g=o?0:de(m,s);if(g>0){if(g>=2){m.codegenNode.patchFlag=-1,i.push(m);continue}}else{const v=m.codegenNode;if(v.type===13){const k=v.patchFlag;if((k===void 0||k===512||k===1)&&fs(m,s)>=2){const y=ms(m);y&&(v.props=s.hoist(y))}v.dynamicProps&&(v.dynamicProps=s.hoist(v.dynamicProps))}}}else if(m.type===12&&(o?0:de(m,s))>=2){m.codegenNode.type===14&&m.codegenNode.arguments.length>0&&m.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${Ge[-1]} */`:"")),i.push(m);continue}if(m.type===1){const g=m.tagType===1;g&&s.scopes.vSlot++,Ct(m,t,s,!1,r),g&&s.scopes.vSlot--}else if(m.type===11)Ct(m,t,s,m.children.length===1,!0);else if(m.type===9)for(let g=0;g<m.branches.length;g++)Ct(m.branches[g],t,s,m.branches[g].children.length===1,r)}let a=!1;const c=[];if(i.length===l.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&ue(t.codegenNode.children))t.codegenNode.children=p(De(t.codegenNode.children)),a=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ue(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=h(t.codegenNode,"default");d&&(c.push(s.cached.length),d.returns=p(De(d.returns)),a=!0)}else if(t.tagType===3&&n&&n.type===1&&n.tagType===1&&n.codegenNode&&n.codegenNode.type===13&&n.codegenNode.children&&!ue(n.codegenNode.children)&&n.codegenNode.children.type===15){const d=se(t,"slot",!0),m=d&&d.arg&&h(n.codegenNode,d.arg);m&&(c.push(s.cached.length),m.returns=p(De(m.returns)),a=!0)}}if(!a)for(const d of i)c.push(s.cached.length),d.codegenNode=s.cache(d.codegenNode);c.length&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ue(t.codegenNode.children)&&t.codegenNode.children.type===15&&t.codegenNode.children.properties.push(G("__",A(JSON.stringify(c),!1)));function p(d){const m=s.cache(d);return r&&s.hmr&&(m.needArraySpread=!0),m}function h(d,m){if(d.children&&!ue(d.children)&&d.children.type===15){const g=d.children.properties.find(v=>v.key===m||v.key.content===m);return g&&g.value}}i.length&&s.transformHoist&&s.transformHoist(l,s,t)}function de(t,n){const{constantCache:s}=n;switch(t.type){case 1:if(t.tagType!==0)return 0;const o=s.get(t);if(o!==void 0)return o;const r=t.codegenNode;if(r.type!==13||r.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(r.patchFlag===void 0){let i=3;const a=fs(t,n);if(a===0)return s.set(t,0),0;a<i&&(i=a);for(let c=0;c<t.children.length;c++){const p=de(t.children[c],n);if(p===0)return s.set(t,0),0;p<i&&(i=p)}if(i>1)for(let c=0;c<t.props.length;c++){const p=t.props[c];if(p.type===7&&p.name==="bind"&&p.exp){const h=de(p.exp,n);if(h===0)return s.set(t,0),0;h<i&&(i=h)}}if(r.isBlock){for(let c=0;c<t.props.length;c++)if(t.props[c].type===7)return s.set(t,0),0;n.removeHelper($e),n.removeHelper(Ue(n.inSSR,r.isComponent)),r.isBlock=!1,n.helper(He(n.inSSR,r.isComponent))}return s.set(t,i),i}else return s.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return de(t.content,n);case 4:return t.constType;case 8:let l=3;for(let i=0;i<t.children.length;i++){const a=t.children[i];if(X(a)||Ht(a))continue;const c=de(a,n);if(c===0)return 0;c<l&&(l=c)}return l;case 20:return 2;default:return process.env.NODE_ENV,0}}const Zl=new Set([tn,nn,Xe,Qe]);function ps(t,n){if(t.type===14&&!X(t.callee)&&Zl.has(t.callee)){const s=t.arguments[0];if(s.type===4)return de(s,n);if(s.type===14)return ps(s,n)}return 0}function fs(t,n){let s=3;const o=ms(t);if(o&&o.type===15){const{properties:r}=o;for(let l=0;l<r.length;l++){const{key:i,value:a}=r[l],c=de(i,n);if(c===0)return c;c<s&&(s=c);let p;if(a.type===4?p=de(a,n):a.type===14?p=ps(a,n):p=0,p===0)return p;p<s&&(s=p)}}return s}function ms(t){const n=t.codegenNode;if(n.type===13)return n.props}function Xl(t,{filename:n="",prefixIdentifiers:s=!1,hoistStatic:o=!1,hmr:r=!1,cacheHandlers:l=!1,nodeTransforms:i=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=zt,isCustomElement:h=zt,expressionPlugins:d=[],scopeId:m=null,slotted:g=!0,ssr:v=!1,inSSR:k=!1,ssrCssVars:y="",bindingMetadata:x=Yi,inline:D=!1,isTS:C=!1,onError:B=fn,onWarn:_=Yn,compatConfig:O}){const $=n.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),f={filename:n,selfName:$&&qt(Ne($[1])),prefixIdentifiers:s,hoistStatic:o,hmr:r,cacheHandlers:l,nodeTransforms:i,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:h,expressionPlugins:d,scopeId:m,slotted:g,ssr:v,inSSR:k,ssrCssVars:y,bindingMetadata:x,inline:D,isTS:C,onError:B,onWarn:_,compatConfig:O,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(S){const u=f.helpers.get(S)||0;return f.helpers.set(S,u+1),S},removeHelper(S){const u=f.helpers.get(S);if(u){const T=u-1;T?f.helpers.set(S,T):f.helpers.delete(S)}},helperString(S){return`_${ze[f.helper(S)]}`},replaceNode(S){if(process.env.NODE_ENV!=="production"){if(!f.currentNode)throw new Error("Node being replaced is already removed.");if(!f.parent)throw new Error("Cannot replace root node.")}f.parent.children[f.childIndex]=f.currentNode=S},removeNode(S){if(process.env.NODE_ENV!=="production"&&!f.parent)throw new Error("Cannot remove root node.");const u=f.parent.children,T=S?u.indexOf(S):f.currentNode?f.childIndex:-1;if(process.env.NODE_ENV!=="production"&&T<0)throw new Error("node being removed is not a child of current parent");!S||S===f.currentNode?(f.currentNode=null,f.onNodeRemoved()):f.childIndex>T&&(f.childIndex--,f.onNodeRemoved()),f.parent.children.splice(T,1)},onNodeRemoved:zt,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){X(S)&&(S=A(S)),f.hoists.push(S);const u=A(`_hoisted_${f.hoists.length}`,!1,S.loc,2);return u.hoisted=S,u},cache(S,u=!1,T=!1){const I=kl(f.cached.length,S,u,T);return f.cached.push(I),I}};return f.filters=new Set,f}function Ql(t,n){const s=Xl(t,n);Bt(t,s),n.hoistStatic&&Yl(t,s),n.ssr||Vl(t,s),t.helpers=new Set([...s.helpers.keys()]),t.components=[...s.components],t.directives=[...s.directives],t.imports=s.imports,t.hoists=s.hoists,t.temps=s.temps,t.cached=s.cached,t.transformed=!0,t.filters=[...s.filters]}function Vl(t,n){const{helper:s}=n,{children:o}=t;if(o.length===1){const r=ds(t);if(r&&r.codegenNode){const l=r.codegenNode;l.type===13&&dn(l,n),t.codegenNode=l}else t.codegenNode=o[0]}else if(o.length>1){let r=64;process.env.NODE_ENV!=="production"&&o.filter(l=>l.type!==3).length===1&&(r|=2048),t.codegenNode=Ve(n,s(Je),void 0,t.children,r,void 0,void 0,!0,void 0,!1)}}function ea(t,n){let s=0;const o=()=>{s--};for(;s<t.children.length;s++){const r=t.children[s];X(r)||(n.grandParent=n.parent,n.parent=t,n.childIndex=s,n.onNodeRemoved=o,Bt(r,n))}}function Bt(t,n){n.currentNode=t;const{nodeTransforms:s}=n,o=[];for(let l=0;l<s.length;l++){const i=s[l](t,n);if(i&&(ue(i)?o.push(...i):o.push(i)),n.currentNode)t=n.currentNode;else return}switch(t.type){case 3:n.ssr||n.helper(Ze);break;case 5:n.ssr||n.helper(gt);break;case 9:for(let l=0;l<t.branches.length;l++)Bt(t.branches[l],n);break;case 10:case 11:case 1:case 0:ea(t,n);break}n.currentNode=t;let r=o.length;for(;r--;)o[r]()}function hs(t,n){const s=X(t)?o=>o===t:o=>t.test(o);return(o,r)=>{if(o.type===1){const{props:l}=o;if(o.tagType===3&&l.some(Il))return;const i=[];for(let a=0;a<l.length;a++){const c=l[a];if(c.type===7&&s(c.name)){l.splice(a,1),a--;const p=n(o,c,r);p&&i.push(p)}}return i}}}const Tt="/*@__PURE__*/",us=t=>`${ze[t]}: _${ze[t]}`;function ta(t,{mode:n="function",prefixIdentifiers:s=n==="module",sourceMap:o=!1,filename:r="template.vue.html",scopeId:l=null,optimizeImports:i=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:h=!1,isTS:d=!1,inSSR:m=!1}){const g={mode:n,prefixIdentifiers:s,sourceMap:o,filename:r,scopeId:l,optimizeImports:i,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:h,isTS:d,inSSR:m,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(k){return`_${ze[k]}`},push(k,y=-2,x){g.code+=k},indent(){v(++g.indentLevel)},deindent(k=!1){k?--g.indentLevel:v(--g.indentLevel)},newline(){v(g.indentLevel)}};function v(k){g.push(`
143
+ `+" ".repeat(k),0)}return g}function na(t,n={}){const s=ta(t,n);n.onContextCreated&&n.onContextCreated(s);const{mode:o,push:r,prefixIdentifiers:l,indent:i,deindent:a,newline:c,scopeId:p,ssr:h}=s,d=Array.from(t.helpers),m=d.length>0,g=!l&&o!=="module";sa(t,s);const k=h?"ssrRender":"render",x=(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${k}(${x}) {`),i(),g&&(r("with (_ctx) {"),i(),m&&(r(`const { ${d.map(us).join(", ")} } = _Vue
144
+ `,-1),c())),t.components.length&&(vn(t.components,"component",s),(t.directives.length||t.temps>0)&&c()),t.directives.length&&(vn(t.directives,"directive",s),t.temps>0&&c()),t.filters&&t.filters.length&&(c(),vn(t.filters,"filter",s),c()),t.temps>0){r("let ");for(let D=0;D<t.temps;D++)r(`${D>0?", ":""}_temp${D}`)}return(t.components.length||t.directives.length||t.temps)&&(r(`
145
+ `,0),c()),h||r("return "),t.codegenNode?te(t.codegenNode,s):r("null"),g&&(a(),r("}")),a(),r("}"),{ast:t,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function sa(t,n){const{ssr:s,prefixIdentifiers:o,push:r,newline:l,runtimeModuleName:i,runtimeGlobalName:a,ssrRuntimeModuleName:c}=n,p=a,h=Array.from(t.helpers);if(h.length>0&&(r(`const _Vue = ${p}
146
+ `,-1),t.hoists.length)){const d=[Kt,Gt,Ze,Jt,Hn].filter(m=>h.includes(m)).map(us).join(", ");r(`const { ${d} } = _Vue
147
+ `,-1)}oa(t.hoists,n),l(),r("return ")}function vn(t,n,{helper:s,push:o,newline:r,isTS:l}){const i=s(n==="filter"?Qt:n==="component"?Yt:Xt);for(let a=0;a<t.length;a++){let c=t[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),o(`const ${tt(c,n)} = ${i}(${JSON.stringify(c)}${p?", true":""})${l?"!":""}`),a<t.length-1&&r()}}function oa(t,n){if(!t.length)return;n.pure=!0;const{push:s,newline:o}=n;o();for(let r=0;r<t.length;r++){const l=t[r];l&&(s(`const _hoisted_${r+1} = `),te(l,n),o())}n.pure=!1}function ra(t){return X(t)||t.type===4||t.type===2||t.type===5||t.type===8}function bn(t,n){const s=t.length>3||process.env.NODE_ENV!=="production"&&t.some(o=>ue(o)||!ra(o));n.push("["),s&&n.indent(),st(t,n,s),s&&n.deindent(),n.push("]")}function st(t,n,s=!1,o=!0){const{push:r,newline:l}=n;for(let i=0;i<t.length;i++){const a=t[i];X(a)?r(a,-3):ue(a)?bn(a,n):te(a,n),i<t.length-1&&(s?(o&&r(","),l()):o&&r(", "))}}function te(t,n){if(X(t)){n.push(t,-3);return}if(Ht(t)){n.push(n.helper(t));return}switch(t.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Vn(t.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),te(t.codegenNode,n);break;case 2:ia(t,n);break;case 4:gs(t,n);break;case 5:la(t,n);break;case 12:te(t.codegenNode,n);break;case 8:ys(t,n);break;case 3:ca(t,n);break;case 13:da(t,n);break;case 14:fa(t,n);break;case 15:ma(t,n);break;case 17:ha(t,n);break;case 18:ua(t,n);break;case 19:ga(t,n);break;case 20:ya(t,n);break;case 21:st(t.body,n,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Vn(!1,`unhandled codegen node type: ${t.type}`),t}}function ia(t,n){n.push(JSON.stringify(t.content),-3,t)}function gs(t,n){const{content:s,isStatic:o}=t;n.push(o?JSON.stringify(s):s,-3,t)}function la(t,n){const{push:s,helper:o,pure:r}=n;r&&s(Tt),s(`${o(gt)}(`),te(t.content,n),s(")")}function ys(t,n){for(let s=0;s<t.children.length;s++){const o=t.children[s];X(o)?n.push(o,-3):te(o,n)}}function aa(t,n){const{push:s}=n;if(t.type===8)s("["),ys(t,n),s("]");else if(t.isStatic){const o=mn(t.content)?t.content:JSON.stringify(t.content);s(o,-2,t)}else s(`[${t.content}]`,-3,t)}function ca(t,n){const{push:s,helper:o,pure:r}=n;r&&s(Tt),s(`${o(Ze)}(${JSON.stringify(t.content)})`,-3,t)}function da(t,n){const{push:s,helper:o,pure:r}=n,{tag:l,props:i,children:a,patchFlag:c,dynamicProps:p,directives:h,isBlock:d,disableTracking:m,isComponent:g}=t;let v;if(c)if(process.env.NODE_ENV!=="production")if(c<0)v=c+` /* ${Ge[c]} */`;else{const y=Object.keys(Ge).map(Number).filter(x=>x>0&&c&x).map(x=>Ge[x]).join(", ");v=c+` /* ${y} */`}else v=String(c);h&&s(o(Vt)+"("),d&&s(`(${o($e)}(${m?"true":""}), `),r&&s(Tt);const k=d?Ue(n.inSSR,g):He(n.inSSR,g);s(o(k)+"(",-2,t),st(pa([l,i,a,v,p]),n),s(")"),d&&s(")"),h&&(s(", "),te(h,n),s(")"))}function pa(t){let n=t.length;for(;n--&&t[n]==null;);return t.slice(0,n+1).map(s=>s||"null")}function fa(t,n){const{push:s,helper:o,pure:r}=n,l=X(t.callee)?t.callee:o(t.callee);r&&s(Tt),s(l+"(",-2,t),st(t.arguments,n),s(")")}function ma(t,n){const{push:s,indent:o,deindent:r,newline:l}=n,{properties:i}=t;if(!i.length){s("{}",-2,t);return}const a=i.length>1||process.env.NODE_ENV!=="production"&&i.some(c=>c.value.type!==4);s(a?"{":"{ "),a&&o();for(let c=0;c<i.length;c++){const{key:p,value:h}=i[c];aa(p,n),s(": "),te(h,n),c<i.length-1&&(s(","),l())}a&&r(),s(a?"}":" }")}function ha(t,n){bn(t.elements,n)}function ua(t,n){const{push:s,indent:o,deindent:r}=n,{params:l,returns:i,body:a,newline:c,isSlot:p}=t;p&&s(`_${ze[ln]}(`),s("(",-2,t),ue(l)?st(l,n):l&&te(l,n),s(") => "),(c||a)&&(s("{"),o()),i?(c&&s("return "),ue(i)?bn(i,n):te(i,n)):a&&te(a,n),(c||a)&&(r(),s("}")),p&&(t.isNonScopedSlot&&s(", undefined, true"),s(")"))}function ga(t,n){const{test:s,consequent:o,alternate:r,newline:l}=t,{push:i,indent:a,deindent:c,newline:p}=n;if(s.type===4){const d=!mn(s.content);d&&i("("),gs(s,n),d&&i(")")}else i("("),te(s,n),i(")");l&&a(),n.indentLevel++,l||i(" "),i("? "),te(o,n),n.indentLevel--,l&&p(),l||i(" "),i(": ");const h=r.type===19;h||n.indentLevel++,te(r,n),h||n.indentLevel--,l&&c(!0)}function ya(t,n){const{push:s,helper:o,indent:r,deindent:l,newline:i}=n,{needPauseTracking:a,needArraySpread:c}=t;c&&s("[...("),s(`_cache[${t.index}] || (`),a&&(r(),s(`${o(vt)}(-1`),t.inVOnce&&s(", true"),s("),"),i(),s("(")),s(`_cache[${t.index}] = `),te(t.value,n),a&&(s(`).cacheIndex = ${t.index},`),i(),s(`${o(vt)}(1),`),i(),s(`_cache[${t.index}]`),l()),s(")"),c&&s(")]")}const va=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),ba=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Ae(t,n,s=!1,o=!1){const r=t.content;if(r.trim())try{new Function(o?` ${r} `:`return ${s?`(${r}) => {}`:`(${r})`}`)}catch(l){let i=l.message;const a=r.replace(ba,"").match(va);a&&(i=`avoid using JavaScript keyword as property name: "${a[0]}"`),n.onError(j(45,t.loc,void 0,i))}}const ka=(t,n)=>{if(t.type===5)t.content=kn(t.content,n);else if(t.type===1){const s=se(t,"memo");for(let o=0;o<t.props.length;o++){const r=t.props[o];if(r.type===7&&r.name!=="for"){const l=r.exp,i=r.arg;l&&l.type===4&&!(r.name==="on"&&i)&&!(s&&i&&i.type===4&&i.content==="key")&&(r.exp=kn(l,n,r.name==="slot")),i&&i.type===4&&!i.isStatic&&(r.arg=kn(i,n))}}}};function kn(t,n,s=!1,o=!1,r=Object.create(n.identifiers)){return process.env.NODE_ENV!=="production"&&Ae(t,n,s,o),t}const Ea=hs(/^(if|else|else-if)$/,(t,n,s)=>Na(t,n,s,(o,r,l)=>{const i=s.parent.children;let a=i.indexOf(o),c=0;for(;a-->=0;){const p=i[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(l)o.codegenNode=bs(r,c,s);else{const p=wa(o.codegenNode);p.alternate=bs(r,c+o.branches.length-1,s)}}}));function Na(t,n,s,o){if(n.name!=="else"&&(!n.exp||!n.exp.content.trim())){const r=n.exp?n.exp.loc:t.loc;s.onError(j(28,n.loc)),n.exp=A("true",!1,r)}if(process.env.NODE_ENV!=="production"&&n.exp&&Ae(n.exp,s),n.name==="if"){const r=vs(t,n),l={type:9,loc:Wl(t.loc),branches:[r]};if(s.replaceNode(l),o)return o(l,r,!0)}else{const r=s.parent.children,l=[];let i=r.indexOf(t);for(;i-->=-1;){const a=r[i];if(a&&a.type===3){s.removeNode(a),process.env.NODE_ENV!=="production"&&l.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){s.removeNode(a);continue}if(a&&a.type===9){n.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&s.onError(j(30,t.loc)),s.removeNode();const c=vs(t,n);if(process.env.NODE_ENV!=="production"&&l.length&&!(s.parent&&s.parent.type===1&&(s.parent.tag==="transition"||s.parent.tag==="Transition"))&&(c.children=[...l,...c.children]),process.env.NODE_ENV!=="production"){const h=c.userKey;h&&a.branches.forEach(({userKey:d})=>{xa(d,h)&&s.onError(j(29,c.userKey.loc))})}a.branches.push(c);const p=o&&o(a,c,!1);Bt(c,s),p&&p(),s.currentNode=null}else s.onError(j(30,t.loc));break}}}function vs(t,n){const s=t.tagType===3;return{type:10,loc:t.loc,condition:n.name==="else"?void 0:n.exp,children:s&&!se(t,"for")?t.children:[t],userKey:et(t,"key"),isTemplateIf:s}}function bs(t,n,s){return t.condition?cn(t.condition,ks(t,n,s),Z(s.helper(Ze),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):ks(t,n,s)}function ks(t,n,s){const{helper:o}=s,r=G("key",A(`${n}`,!1,ae,2)),{children:l}=t,i=l[0];if(l.length!==1||i.type!==1)if(l.length===1&&i.type===11){const c=i.codegenNode;return xt(c,r,s),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!t.isTemplateIf&&l.filter(p=>p.type!==3).length===1&&(c|=2048),Ve(s,o(Je),pe([r]),l,c,void 0,void 0,!0,!1,!1,t.loc)}else{const c=i.codegenNode,p=Al(c);return p.type===13&&dn(p,s),xt(p,r,s),c}}function xa(t,n){if(!t||t.type!==n.type)return!1;if(t.type===6){if(t.value.content!==n.value.content)return!1}else{const s=t.exp,o=n.exp;if(s.type!==o.type||s.type!==4||s.isStatic!==o.isStatic||s.content!==o.content)return!1}return!0}function wa(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const _a=(t,n,s)=>{const{modifiers:o,loc:r}=t,l=t.arg;let{exp:i}=t;if(i&&i.type===4&&!i.content.trim()&&(i=void 0),!i){if(l.type!==4||!l.isStatic)return s.onError(j(52,l.loc)),{props:[G(l,A("",!0,r))]};Es(t),i=t.exp}return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=l.content?`${l.content} || ""`:'""'),o.some(a=>a.content==="camel")&&(l.type===4?l.isStatic?l.content=Ne(l.content):l.content=`${s.helperString(on)}(${l.content})`:(l.children.unshift(`${s.helperString(on)}(`),l.children.push(")"))),s.inSSR||(o.some(a=>a.content==="prop")&&Ns(l,"."),o.some(a=>a.content==="attr")&&Ns(l,"^")),{props:[G(l,i)]}},Es=(t,n)=>{const s=t.arg,o=Ne(s.content);t.exp=A(o,!1,s.loc)},Ns=(t,n)=>{t.type===4?t.isStatic?t.content=n+t.content:t.content=`\`${n}\${${t.content}}\``:(t.children.unshift(`'${n}' + (`),t.children.push(")"))},Sa=hs("for",(t,n,s)=>{const{helper:o,removeHelper:r}=s;return Ca(t,n,s,l=>{const i=Z(o(en),[l.source]),a=Et(t),c=se(t,"memo"),p=et(t,"key",!1,!0);p&&p.type===7&&!p.exp&&Es(p);let d=p&&(p.type===6?p.value?A(p.value.content,!0):void 0:p.exp);const m=p&&d?G("key",d):null,g=l.source.type===4&&l.source.constType>0,v=g?64:p?128:256;return l.codegenNode=Ve(s,o(Je),void 0,i,v,void 0,void 0,!0,!g,!1,t.loc),()=>{let k;const{children:y}=l;process.env.NODE_ENV!=="production"&&a&&t.children.some(C=>{if(C.type===1){const B=et(C,"key");if(B)return s.onError(j(33,B.loc)),!0}});const x=y.length!==1||y[0].type!==1,D=Nt(t)?t:a&&t.children.length===1&&Nt(t.children[0])?t.children[0]:null;if(D?(k=D.codegenNode,a&&m&&xt(k,m,s)):x?k=Ve(s,o(Je),m?pe([m]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(k=y[0].codegenNode,a&&m&&xt(k,m,s),k.isBlock!==!g&&(k.isBlock?(r($e),r(Ue(s.inSSR,k.isComponent))):r(He(s.inSSR,k.isComponent))),k.isBlock=!g,k.isBlock?(o($e),o(Ue(s.inSSR,k.isComponent))):o(He(s.inSSR,k.isComponent))),c){const C=je(En(l.parseResult,[A("_cached")]));C.body=El([fe(["const _memo = (",c.exp,")"]),fe(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${s.helperString(Wn)}(_cached, _memo)) return _cached`]),fe(["const _item = ",k]),A("_item.memo = _memo"),A("return _item")]),i.arguments.push(C,A("_cache"),A(String(s.cached.length))),s.cached.push(null)}else i.arguments.push(je(En(l.parseResult),k,!0))}})});function Ca(t,n,s,o){if(!n.exp){s.onError(j(31,n.loc));return}const r=n.forParseResult;if(!r){s.onError(j(32,n.loc));return}xs(r,s);const{addIdentifiers:l,removeIdentifiers:i,scopes:a}=s,{source:c,value:p,key:h,index:d}=r,m={type:11,loc:n.loc,source:c,valueAlias:p,keyAlias:h,objectIndexAlias:d,parseResult:r,children:Et(t)?t.children:[t]};s.replaceNode(m),a.vFor++;const g=o&&o(m);return()=>{a.vFor--,g&&g()}}function xs(t,n){t.finalized||(process.env.NODE_ENV!=="production"&&(Ae(t.source,n),t.key&&Ae(t.key,n,!0),t.index&&Ae(t.index,n,!0),t.value&&Ae(t.value,n,!0)),t.finalized=!0)}function En({value:t,key:n,index:s},o=[]){return Ba([t,n,s,...o])}function Ba(t){let n=t.length;for(;n--&&!t[n];);return t.slice(0,n+1).map((s,o)=>s||A("_".repeat(o+1),!1))}const ws=A("undefined",!1),Ta=(t,n)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const s=se(t,"slot");if(s)return s.exp,n.scopes.vSlot++,()=>{n.scopes.vSlot--}}},$a=(t,n,s,o)=>je(t,s,!1,!0,s.length?s[0].loc:o);function Da(t,n,s=$a){n.helper(ln);const{children:o,loc:r}=t,l=[],i=[];let a=n.scopes.vSlot>0||n.scopes.vFor>0;const c=se(t,"slot",!0);if(c){const{arg:y,exp:x}=c;y&&!ne(y)&&(a=!0),l.push(G(y||A("default",!0),s(x,void 0,o,r)))}let p=!1,h=!1;const d=[],m=new Set;let g=0;for(let y=0;y<o.length;y++){const x=o[y];let D;if(!Et(x)||!(D=se(x,"slot",!0))){x.type!==3&&d.push(x);continue}if(c){n.onError(j(37,D.loc));break}p=!0;const{children:C,loc:B}=x,{arg:_=A("default",!0),exp:O,loc:$}=D;let f;ne(_)?f=_?_.content:"default":a=!0;const S=se(x,"for"),u=s(O,S,C,B);let T,I;if(T=se(x,"if"))a=!0,i.push(cn(T.exp,$t(_,u,g++),ws));else if(I=se(x,/^else(-if)?$/,!0)){let M=y,F;for(;M--&&(F=o[M],!(F.type!==3&&Nn(F))););if(F&&Et(F)&&se(F,/^(else-)?if$/)){let z=i[i.length-1];for(;z.alternate.type===19;)z=z.alternate;z.alternate=I.exp?cn(I.exp,$t(_,u,g++),ws):$t(_,u,g++)}else n.onError(j(30,I.loc))}else if(S){a=!0;const M=S.forParseResult;M?(xs(M,n),i.push(Z(n.helper(en),[M.source,je(En(M),$t(_,u),!0)]))):n.onError(j(32,S.loc))}else{if(f){if(m.has(f)){n.onError(j(38,$));continue}m.add(f),f==="default"&&(h=!0)}l.push(G(_,u))}}if(!c){const y=(x,D)=>{const C=s(x,void 0,D,r);return n.compatConfig&&(C.isNonScopedSlot=!0),G("default",C)};p?d.length&&d.some(x=>Nn(x))&&(h?n.onError(j(39,d[0].loc)):l.push(y(void 0,d))):l.push(y(void 0,o))}const v=a?2:Dt(t.children)?3:1;let k=pe(l.concat(G("_",A(v+(process.env.NODE_ENV!=="production"?` /* ${el[v]} */`:""),!1))),r);return i.length&&(k=Z(n.helper(qn),[k,De(i)])),{slots:k,hasDynamicSlots:a}}function $t(t,n,s){const o=[G("name",t),G("fn",n)];return s!=null&&o.push(G("key",A(String(s),!0))),pe(o)}function Dt(t){for(let n=0;n<t.length;n++){const s=t[n];switch(s.type){case 1:if(s.tagType===2||Dt(s.children))return!0;break;case 9:if(Dt(s.branches))return!0;break;case 10:case 11:if(Dt(s.children))return!0;break}}return!1}function Nn(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():Nn(t.content)}const _s=new WeakMap,Ia=(t,n)=>function(){if(t=n.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:o,props:r}=t,l=t.tagType===1;let i=l?Oa(t,n):`"${o}"`;const a=Zi(i)&&i.callee===Zt;let c,p,h=0,d,m,g,v=a||i===Ye||i===Wt||!l&&(o==="svg"||o==="foreignObject"||o==="math");if(r.length>0){const k=Ss(t,n,void 0,l,a);c=k.props,h=k.patchFlag,m=k.dynamicPropNames;const y=k.directives;g=y&&y.length?De(y.map(x=>Ma(x,n))):void 0,k.shouldUseBlock&&(v=!0)}if(t.children.length>0)if(i===ut&&(v=!0,h|=1024,process.env.NODE_ENV!=="production"&&t.children.length>1&&n.onError(j(46,{start:t.children[0].loc.start,end:t.children[t.children.length-1].loc.end,source:""}))),l&&i!==Ye&&i!==ut){const{slots:y,hasDynamicSlots:x}=Da(t,n);p=y,x&&(h|=1024)}else if(t.children.length===1&&i!==Ye){const y=t.children[0],x=y.type,D=x===5||x===8;D&&de(y,n)===0&&(h|=1),D||x===2?p=y:p=t.children}else p=t.children;m&&m.length&&(d=La(m)),t.codegenNode=Ve(n,i,c,p,h===0?void 0:h,d,g,!!v,!1,l,t.loc)};function Oa(t,n,s=!1){let{tag:o}=t;const r=xn(o),l=et(t,"is",!1,!0);if(l)if(r||we("COMPILER_IS_ON_ELEMENT",n)){let a;if(l.type===6?a=l.value&&A(l.value.content,!0):(a=l.exp,a||(a=A("is",!1,l.arg.loc))),a)return Z(n.helper(Zt),[a])}else l.type===6&&l.value.content.startsWith("vue:")&&(o=l.value.content.slice(4));const i=Zn(o)||n.isBuiltInComponent(o);return i?(s||n.helper(i),i):(n.helper(Yt),n.components.add(o),tt(o,"component"))}function Ss(t,n,s=t.props,o,r,l=!1){const{tag:i,loc:a,children:c}=t;let p=[];const h=[],d=[],m=c.length>0;let g=!1,v=0,k=!1,y=!1,x=!1,D=!1,C=!1,B=!1;const _=[],O=u=>{p.length&&(h.push(pe(Cs(p),a)),p=[]),u&&h.push(u)},$=()=>{n.scopes.vFor>0&&p.push(G(A("ref_for",!0),A("true")))},f=({key:u,value:T})=>{if(ne(u)){const I=u.content,M=jt(I);if(M&&(!o||r)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!Pn(I)&&(D=!0),M&&Pn(I)&&(B=!0),M&&T.type===14&&(T=T.arguments[0]),T.type===20||(T.type===4||T.type===8)&&de(T,n)>0)return;I==="ref"?k=!0:I==="class"?y=!0:I==="style"?x=!0:I!=="key"&&!_.includes(I)&&_.push(I),o&&(I==="class"||I==="style")&&!_.includes(I)&&_.push(I)}else C=!0};for(let u=0;u<s.length;u++){const T=s[u];if(T.type===6){const{loc:I,name:M,nameLoc:F,value:z}=T;let ie=!0;if(M==="ref"&&(k=!0,$()),M==="is"&&(xn(i)||z&&z.content.startsWith("vue:")||we("COMPILER_IS_ON_ELEMENT",n)))continue;p.push(G(A(M,!0,F),A(z?z.content:"",ie,z?z.loc:I)))}else{const{name:I,arg:M,exp:F,loc:z,modifiers:ie}=T,ve=I==="bind",be=I==="on";if(I==="slot"){o||n.onError(j(40,z));continue}if(I==="once"||I==="memo"||I==="is"||ve&&_e(M,"is")&&(xn(i)||we("COMPILER_IS_ON_ELEMENT",n))||be&&l)continue;if((ve&&_e(M,"key")||be&&m&&_e(M,"vue:before-update"))&&(g=!0),ve&&_e(M,"ref")&&$(),!M&&(ve||be)){if(C=!0,F)if(ve){if(O(),process.env.NODE_ENV!=="production"&&h.some(Be=>Be.type===15?Be.properties.some(({key:Le})=>Le.type!==4||!Le.isStatic?!0:Le.content!=="class"&&Le.content!=="style"&&!jt(Le.content)):!0)&&qe("COMPILER_V_BIND_OBJECT_ORDER",n,z),we("COMPILER_V_BIND_OBJECT_ORDER",n)){h.unshift(F);continue}$(),O(),h.push(F)}else O({type:14,loc:z,callee:n.helper(sn),arguments:o?[F]:[F,"true"]});else n.onError(j(ve?34:35,z));continue}ve&&ie.some(Ce=>Ce.content==="prop")&&(v|=32);const rt=n.directiveTransforms[I];if(rt){const{props:Ce,needRuntime:Be}=rt(T,t,n);!l&&Ce.forEach(f),be&&M&&!ne(M)?O(pe(Ce,a)):p.push(...Ce),Be&&(d.push(T),Ht(Be)&&_s.set(T,Be))}else Xi(I)||(d.push(T),m&&(g=!0))}}let S;if(h.length?(O(),h.length>1?S=Z(n.helper(yt),h,a):S=h[0]):p.length&&(S=pe(Cs(p),a)),C?v|=16:(y&&!o&&(v|=2),x&&!o&&(v|=4),_.length&&(v|=8),D&&(v|=32)),!g&&(v===0||v===32)&&(k||B||d.length>0)&&(v|=512),!n.inSSR&&S)switch(S.type){case 15:let u=-1,T=-1,I=!1;for(let z=0;z<S.properties.length;z++){const ie=S.properties[z].key;ne(ie)?ie.content==="class"?u=z:ie.content==="style"&&(T=z):ie.isHandlerKey||(I=!0)}const M=S.properties[u],F=S.properties[T];I?S=Z(n.helper(Xe),[S]):(M&&!ne(M.value)&&(M.value=Z(n.helper(tn),[M.value])),F&&(x||F.value.type===4&&F.value.content.trim()[0]==="["||F.value.type===17)&&(F.value=Z(n.helper(nn),[F.value])));break;case 14:break;default:S=Z(n.helper(Xe),[Z(n.helper(Qe),[S])]);break}return{props:S,directives:d,patchFlag:v,dynamicPropNames:_,shouldUseBlock:g}}function Cs(t){const n=new Map,s=[];for(let o=0;o<t.length;o++){const r=t[o];if(r.key.type===8||!r.key.isStatic){s.push(r);continue}const l=r.key.content,i=n.get(l);i?(l==="style"||l==="class"||jt(l))&&Aa(i,r):(n.set(l,r),s.push(r))}return s}function Aa(t,n){t.value.type===17?t.value.elements.push(n.value):t.value=De([t.value,n.value],t.loc)}function Ma(t,n){const s=[],o=_s.get(t);o?s.push(n.helperString(o)):(n.helper(Xt),n.directives.add(t.name),s.push(tt(t.name,"directive")));const{loc:r}=t;if(t.exp&&s.push(t.exp),t.arg&&(t.exp||s.push("void 0"),s.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||s.push("void 0"),s.push("void 0"));const l=A("true",!1,r);s.push(pe(t.modifiers.map(i=>G(i,l)),r))}return De(s,t.loc)}function La(t){let n="[";for(let s=0,o=t.length;s<o;s++)n+=JSON.stringify(t[s]),s<o-1&&(n+=", ");return n+"]"}function xn(t){return t==="component"||t==="Component"}const Ra=(t,n)=>{if(Nt(t)){const{children:s,loc:o}=t,{slotName:r,slotProps:l}=Pa(t,n),i=[n.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let a=2;l&&(i[2]=l,a=3),s.length&&(i[3]=je([],s,!1,!1,o),a=4),n.scopeId&&!n.slotted&&(a=5),i.splice(a),t.codegenNode=Z(n.helper(Un),i,o)}};function Pa(t,n){let s='"default"',o;const r=[];for(let l=0;l<t.props.length;l++){const i=t.props[l];if(i.type===6)i.value&&(i.name==="name"?s=JSON.stringify(i.value.content):(i.name=Ne(i.name),r.push(i)));else if(i.name==="bind"&&_e(i.arg,"name")){if(i.exp)s=i.exp;else if(i.arg&&i.arg.type===4){const a=Ne(i.arg.content);s=i.exp=A(a,!1,i.arg.loc)}}else i.name==="bind"&&i.arg&&ne(i.arg)&&(i.arg.content=Ne(i.arg.content)),r.push(i)}if(r.length>0){const{props:l,directives:i}=Ss(t,n,r,!1,!1);o=l,i.length&&n.onError(j(36,i[0].loc))}return{slotName:s,slotProps:o}}const Bs=(t,n,s,o)=>{const{loc:r,modifiers:l,arg:i}=t;!t.exp&&!l.length&&s.onError(j(35,r));let a;if(i.type===4)if(i.isStatic){let d=i.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&s.onError(j(51,i.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const m=n.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Vi(Ne(d)):`on:${d}`;a=A(m,!0,i.loc)}else a=fe([`${s.helperString(rn)}(`,i,")"]);else a=i,a.children.unshift(`${s.helperString(rn)}(`),a.children.push(")");let c=t.exp;c&&!c.content.trim()&&(c=void 0);let p=s.cacheHandlers&&!c&&!s.inVOnce;if(c){const d=Qn(c),m=!(d||$l(c)),g=c.content.includes(";");process.env.NODE_ENV!=="production"&&Ae(c,s,!1,g),(m||p&&d)&&(c=fe([`${m?"$event":"(...args)"} => ${g?"{":"("}`,c,g?"}":")"]))}let h={props:[G(a,c||A("() => {}",!1,r))]};return o&&(h=o(h)),p&&(h.props[0].value=s.cache(h.props[0].value)),h.props.forEach(d=>d.key.isHandlerKey=!0),h},Fa=(t,n)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const s=t.children;let o,r=!1;for(let l=0;l<s.length;l++){const i=s[l];if(hn(i)){r=!0;for(let a=l+1;a<s.length;a++){const c=s[a];if(hn(c))o||(o=s[l]=fe([i],i.loc)),o.children.push(" + ",c),s.splice(a,1),a--;else{o=void 0;break}}}}if(!(!r||s.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(l=>l.type===7&&!n.directiveTransforms[l.name])&&t.tag!=="template")))for(let l=0;l<s.length;l++){const i=s[l];if(hn(i)||i.type===8){const a=[];(i.type!==2||i.content!==" ")&&a.push(i),!n.ssr&&de(i,n)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${Ge[1]} */`:"")),s[l]={type:12,content:i,loc:i.loc,codegenNode:Z(n.helper(Jt),a)}}}}},Ts=new WeakSet,za=(t,n)=>{if(t.type===1&&se(t,"once",!0))return Ts.has(t)||n.inVOnce||n.inSSR?void 0:(Ts.add(t),n.inVOnce=!0,n.helper(vt),()=>{n.inVOnce=!1;const s=n.currentNode;s.codegenNode&&(s.codegenNode=n.cache(s.codegenNode,!0,!0))})},$s=(t,n,s)=>{const{exp:o,arg:r}=t;if(!o)return s.onError(j(41,t.loc)),It();const l=o.loc.source.trim(),i=o.type===4?o.content:l,a=s.bindingMetadata[l];if(a==="props"||a==="props-aliased")return s.onError(j(44,o.loc)),It();if(!i.trim()||!Qn(o))return s.onError(j(42,o.loc)),It();const c=r||A("modelValue",!0),p=r?ne(r)?`onUpdate:${Ne(r.content)}`:fe(['"onUpdate:" + ',r]):"onUpdate:modelValue";let h;const d=s.isTS?"($event: any)":"$event";h=fe([`${d} => ((`,o,") = $event)"]);const m=[G(c,t.exp),G(p,h)];if(t.modifiers.length&&n.tagType===1){const g=t.modifiers.map(k=>k.content).map(k=>(mn(k)?k:JSON.stringify(k))+": true").join(", "),v=r?ne(r)?`${r.content}Modifiers`:fe([r,' + "Modifiers"']):"modelModifiers";m.push(G(v,A(`{ ${g} }`,!1,t.loc,2)))}return It(m)};function It(t=[]){return{props:t}}const ja=/[\w).+\-_$\]]/,Ha=(t,n)=>{we("COMPILER_FILTERS",n)&&(t.type===5?Ot(t.content,n):t.type===1&&t.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&Ot(s.exp,n)}))};function Ot(t,n){if(t.type===4)Ds(t,n);else for(let s=0;s<t.children.length;s++){const o=t.children[s];typeof o=="object"&&(o.type===4?Ds(o,n):o.type===8?Ot(t,n):o.type===5&&Ot(o.content,n))}}function Ds(t,n){const s=t.content;let o=!1,r=!1,l=!1,i=!1,a=0,c=0,p=0,h=0,d,m,g,v,k=[];for(g=0;g<s.length;g++)if(m=d,d=s.charCodeAt(g),o)d===39&&m!==92&&(o=!1);else if(r)d===34&&m!==92&&(r=!1);else if(l)d===96&&m!==92&&(l=!1);else if(i)d===47&&m!==92&&(i=!1);else if(d===124&&s.charCodeAt(g+1)!==124&&s.charCodeAt(g-1)!==124&&!a&&!c&&!p)v===void 0?(h=g+1,v=s.slice(0,g).trim()):y();else{switch(d){case 34:r=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(d===47){let x=g-1,D;for(;x>=0&&(D=s.charAt(x),D===" ");x--);(!D||!ja.test(D))&&(i=!0)}}v===void 0?v=s.slice(0,g).trim():h!==0&&y();function y(){k.push(s.slice(h,g).trim()),h=g+1}if(k.length){for(process.env.NODE_ENV!=="production"&&kt("COMPILER_FILTERS",n,t.loc),g=0;g<k.length;g++)v=Ua(v,k[g],n);t.content=v,t.ast=void 0}}function Ua(t,n,s){s.helper(Qt);const o=n.indexOf("(");if(o<0)return s.filters.add(n),`${tt(n,"filter")}(${t})`;{const r=n.slice(0,o),l=n.slice(o+1);return s.filters.add(r),`${tt(r,"filter")}(${t}${l!==")"?","+l:l}`}}const Is=new WeakSet,qa=(t,n)=>{if(t.type===1){const s=se(t,"memo");return!s||Is.has(t)?void 0:(Is.add(t),()=>{const o=t.codegenNode||n.currentNode.codegenNode;o&&o.type===13&&(t.tagType!==1&&dn(o,n),t.codegenNode=Z(n.helper(an),[s.exp,je(void 0,o),"_cache",String(n.cached.length)]),n.cached.push(null))})}};function Wa(t){return[[za,Ea,qa,Sa,Ha,...process.env.NODE_ENV!=="production"?[ka]:[],Ra,Ia,Ta,Fa],{on:Bs,bind:_a,model:$s}]}function Ka(t,n={}){const s=n.onError||fn,o=n.mode==="module";n.prefixIdentifiers===!0?s(j(47)):o&&s(j(48));const r=!1;n.cacheHandlers&&s(j(49)),n.scopeId&&!o&&s(j(50));const l=Ee({},n,{prefixIdentifiers:r}),i=X(t)?Jl(t,l):t,[a,c]=Wa();return Ql(i,Ee({},l,{nodeTransforms:[...a,...n.nodeTransforms||[]],directiveTransforms:Ee({},c,n.directiveTransforms||{})})),na(i,l)}const Ga=()=>({props:[]});/**
148
148
  * @vue/compiler-dom v3.5.18
149
149
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
150
150
  * @license MIT
151
- **/const bs=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),ks=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Es=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ns=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),pn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),xs=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),ws=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),fn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Ss=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");el({[bs]:"vModelRadio",[ks]:"vModelCheckbox",[Es]:"vModelText",[Ns]:"vModelSelect",[pn]:"vModelDynamic",[_s]:"withModifiers",[xs]:"withKeys",[ws]:"vShow",[fn]:"Transition",[Ss]:"TransitionGroup"});let De;function $a(e,t=!1){return De||(De=document.createElement("div")),t?(De.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,De.children[0].getAttribute("foo")):(De.innerHTML=e,De.textContent)}const Da={parseMode:"html",isVoidTag:Jr,isNativeTag:e=>Wr(e)||Kr(e)||Gr(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:$a,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return fn;if(e==="TransitionGroup"||e==="transition-group")return Ss},getNamespace(e,t,s){let o=t?t.ns:s;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},Oa=e=>{e.type===1&&e.props.forEach((t,s)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[s]={type:7,name:"bind",arg:B("style",!0,t.loc),exp:Ia(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ia=(e,t)=>{const s=jr(e);return B(JSON.stringify(s),!1,t,3)};function ie(e,t){return A(e,t,process.env.NODE_ENV!=="production"?Aa:void 0)}const Aa={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Ma=(e,t,s)=>{const{exp:o,loc:i}=e;return o||s.onError(ie(53,i)),t.children.length&&(s.onError(ie(54,i)),t.children.length=0),{props:[z(B("innerHTML",!0,i),o||B("",!0))]}},La=(e,t,s)=>{const{exp:o,loc:i}=e;return o||s.onError(ie(55,i)),t.children.length&&(s.onError(ie(56,i)),t.children.length=0),{props:[z(B("textContent",!0),o?ne(o,s)>0?o:q(s.helperString(nt),[o],i):B("",!0))]}},Ra=(e,t,s)=>{const o=gs(e,t,s);if(!o.props.length||t.tagType===1)return o;e.arg&&s.onError(ie(58,e.arg.loc));function i(){const c=X(t,"bind");c&&he(c.arg,"value")&&s.onError(ie(60,c.loc))}const{tag:l}=t,r=s.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||r){let c=Es,a=!1;if(l==="input"||r){const p=He(t,"type");if(p){if(p.type===7)c=pn;else if(p.value)switch(p.value.content){case"radio":c=bs;break;case"checkbox":c=ks;break;case"file":a=!0,s.onError(ie(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&i();break}}else ml(t)?c=pn:process.env.NODE_ENV!=="production"&&i()}else l==="select"?c=Ns:process.env.NODE_ENV!=="production"&&i();a||(o.needRuntime=s.helper(c))}else s.onError(ie(57,e.loc));return o.props=o.props.filter(c=>!(c.key.type===4&&c.key.content==="modelValue")),o},Fa=re("passive,once,capture"),Pa=re("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ja=re("left,right"),Cs=re("onkeyup,onkeydown,onkeypress"),za=(e,t,s,o)=>{const i=[],l=[],r=[];for(let c=0;c<t.length;c++){const a=t[c].content;a==="native"&&$e("COMPILER_V_ON_NATIVE",s,o)||Fa(a)?r.push(a):ja(a)?Z(e)?Cs(e.content.toLowerCase())?i.push(a):l.push(a):(i.push(a),l.push(a)):Pa(a)?l.push(a):i.push(a)}return{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:r}},Bs=(e,t)=>Z(e)&&e.content.toLowerCase()==="onclick"?B(t,!0):e.type!==4?oe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Ha=(e,t,s)=>hs(e,t,s,o=>{const{modifiers:i}=e;if(!i.length)return o;let{key:l,value:r}=o.props[0];const{keyModifiers:c,nonKeyModifiers:a,eventOptionModifiers:p}=za(l,i,s,e.loc);if(a.includes("right")&&(l=Bs(l,"onContextmenu")),a.includes("middle")&&(l=Bs(l,"onMouseup")),a.length&&(r=q(s.helper(_s),[r,JSON.stringify(a)])),c.length&&(!Z(l)||Cs(l.content.toLowerCase()))&&(r=q(s.helper(xs),[r,JSON.stringify(c)])),p.length){const h=p.map(Dt).join("");l=Z(l)?B(`${l.content}${h}`,!0):oe(["(",l,`) + "${h}"`])}return{props:[z(l,r)]}}),Ua=(e,t,s)=>{const{exp:o,loc:i}=e;return o||s.onError(ie(61,i)),{props:[],needRuntime:s.helper(ws)}},qa=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===fn)return()=>{if(!e.children.length)return;Ts(e)&&t.onError(ie(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const o=e.children[0];if(o.type===1)for(const i of o.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Ts(e){const t=e.children=e.children.filter(o=>o.type!==3&&!(o.type===2&&!o.content.trim())),s=t[0];return t.length!==1||s.type===11||s.type===9&&s.branches.some(Ts)}const Wa=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(ie(63,e.loc)),t.removeNode())};function Ka(e,t){return e==="template"?!0:e in $s?$s[e].has(t):t in Ds?Ds[t].has(e):!(e in Os&&Os[e].has(t)||t in Is&&Is[t].has(e))}const Oe=new Set(["h1","h2","h3","h4","h5","h6"]),_e=new Set([]),$s={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:_e,iframe:_e,option:_e,textarea:_e,style:_e,title:_e},Ds={html:_e,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},Os={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Is={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:Oe,h2:Oe,h3:Oe,h4:Oe,h5:Oe,h6:Oe},Ga=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!Ka(t.parent.tag,e.tag)){const s=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);s.loc=e.loc,t.onWarn(s)}},Ja=[Oa,...process.env.NODE_ENV!=="production"?[qa,Ga]:[]],Ya={cloak:Ta,html:Ma,text:La,model:Ra,on:Ha,show:Ua};function Za(e,t={}){return Ba(e,de({},Da,t,{nodeTransforms:[Wa,...Ja,...t.nodeTransforms||[]],directiveTransforms:de({},Ya,t.directiveTransforms||{}),transformHoist:null}))}function Xa(e,t={}){const s=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:o}=Za(s,{mode:"function"}),i=new Function("Vue",`${o}; return render;`)(js);return n.defineComponent({name:"DynamicFromString",props:t.props??{},emits:t.emits??[],setup(){return t.setup?.()??{}},render:i})}const mn={};function Qa(e){return mn[e]||(mn[e]=Xa(e,{props:{row:{type:Object,default:void 0},value:{type:null,default:void 0},data:{type:Object,default:void 0},column:{type:Object,default:void 0}}})),mn[e]}const Va={class:"flex justify-between items-center mb-[15px]"},ec={class:"font-semibold text-[16px]"},tc={class:"overflow-x-auto"},nc={class:"min-w-full relative divide-y-2 divide-gray-200 bg-white min-w-full overflow-auto divide-y-2 divide-gray-200 bg-white text-[12px] text-gray-600"},sc={class:"text-left font-medium text-gray-700"},oc={class:"py-2 min-w-[100px] max-w-[300px]"},ic={key:0,class:"py-2 min-w-[100px] max-w-[300px]"},rc={class:"divide-y divide-gray-200"},lc={class:"bg-white odd:bg-gray-50"},ac=["href"],cc={key:2},dc={key:3},pc={class:"py-2 pr-5 gap-2 inline-flex"},fc=["onClick"],mc=["onClick"],As=n.defineComponent({__name:"TableWidget",props:{name:{},label:{},component:{},slot:{},col:{},width:{},html:{},title:{},type:{},token:{},count:{},props:{},items:{}},setup(e){const t=n.getCurrentInstance(),s=n.ref([]),o=n.ref([]),i=e,l=n.ref([]),r=n.ref(""),c=n.ref("");async function a(){const _=await fetch("/api/data/"+i.token).then(v=>v.json());s.value=_.rows,o.value=_.columns,l.value=_.actions,r.value=_.form,c.value=_.addToken}const{$notify:p=console.log,$confirm:h,$form:d}=t?.appContext?.config?.globalProperties||{};async function m(_){await d({token:_.token}),a()}function k(){d({token:c.value})}function b(_){h({title:"Підтвердіть дію",type:"error",message:"Ви впевненні що бажаєте видалити даний рядок?",onConfirm:async()=>{const v=await fetch(`/api/table/${_.token}`,{method:"DELETE"});if(!v.ok){const{error:w,code:E}=await v.json();p({title:"Помилка",type:"warning",message:w});return}p({title:"Видаленно",message:"Успішно видалено"}),await a()}})}n.onMounted(async()=>{await a()});function y(_){return typeof _?.format=="string"?_.format.toLowerCase():""}function f(_,v){const E=_?.[`${v.name}_text`];if(Array.isArray(E))return E.length?E.join(", "):"-";if(E!=null&&E!=="")return E;const x=_?.[v.name];return Array.isArray(x)?x.length?x.join(", "):"-":x??"-"}function u(_,v){const E=_?.[`${v.name}_data`];if(E&&typeof E=="object")return{text:E.text??E.label??E.name??E.title??"-",color:E.color,textColor:E.textColor};const x=_?.[`${v.name}_text`]??_?.[v.name];return{text:(Array.isArray(x)?x.join(", "):x)??"-"}}function g(_,v){const w=u(_,v);return w.color?{backgroundColor:w.color,color:w.textColor??"#ffffff"}:{}}function N(_,v){const w=y(v);if(w==="badge")return u(_,v).text;if(w==="select")return f(_,v);if(w==="slot")return"-";if(w==="text")return _?.[v.name]??"-";const E=_?.[`${v.name}_data`];return E!=null&&typeof E!="object"?E:_?.[`${v.name}_text`]??_?.[v.name]??"-"}return(_,v)=>(n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",Va,[n.createElementVNode("div",ec,n.toDisplayString(_.title),1),l.value.includes("add")&&c.value?(n.openBlock(),n.createElementBlock("button",{key:0,onClick:k,class:"px-2 py-1 inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border border-transparent hover:text-white ring-offset-white bg-blue-100 text-blue-500 hover:bg-blue-500 focus:ring-blue-500"},"Додати")):n.createCommentVNode("",!0)]),n.createElementVNode("div",tc,[n.createElementVNode("table",nc,[n.createElementVNode("thead",sc,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,w=>(n.openBlock(),n.createElementBlock("th",oc,n.toDisplayString(w.ua),1))),256)),l.value.includes("edit")?(n.openBlock(),n.createElementBlock("th",ic," Дії ")):n.createCommentVNode("",!0)])]),n.createElementVNode("tbody",rc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,w=>(n.openBlock(),n.createElementBlock("tr",lc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,E=>(n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(y(E)==="badge"?"center pr-5":"py-2 pr-5")},[E.link?(n.openBlock(),n.createElementBlock("a",{key:0,href:E.link.replace("{{id}}",w.id),class:"font-medium cursor-pointer text-start text-wrap text-cyan-800 decoration-2 focus:outline-none focus:underline hover:text-cyan-700 hover:underline"},n.toDisplayString(N(w,E)),9,ac)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[y(E)==="slot"&&E.slot?.content?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(Qa)(E.slot.content)),{key:0,data:w,row:w,column:E,value:w?.[E.name]},null,8,["data","row","column","value"])):y(E)==="badge"?(n.openBlock(),n.createElementBlock("span",{key:1,class:"items-center px-2 py-1 rounded-full text-xs font-semibold text-center justify-center flex",style:n.normalizeStyle(g(w,E))},n.toDisplayString(u(w,E).text),5)):y(E)==="select"?(n.openBlock(),n.createElementBlock("span",cc,n.toDisplayString(f(w,E)),1)):(n.openBlock(),n.createElementBlock("span",dc,n.toDisplayString(N(w,E)),1))],64))],2))),256)),n.createElementVNode("td",pc,[w.token?(n.openBlock(),n.createElementBlock("button",{key:0,onClick:E=>m(w),class:"inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100"},v[0]||(v[0]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n.createElementVNode("path",{d:"M20,16v4a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4H8",fill:"none",stroke:"#000000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"}),n.createElementVNode("polygon",{fill:"none",points:"12.5 15.8 22 6.2 17.8 2 8.3 11.5 8 16 12.5 15.8",stroke:"#000000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"})],-1)]),8,fc)):n.createCommentVNode("",!0),w.token?(n.openBlock(),n.createElementBlock("button",{key:1,onClick:E=>b(w),class:"inline-flex items-center justify-center bg-white border rounded-md size-7 gap-x-2 hover:bg-gray-100"},v[1]||(v[1]=[n.createStaticVNode('<svg class="flex-shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line></svg>',1)]),8,mc)):n.createCommentVNode("",!0)])]))),256))])])])]))}}),hc={class:"p-[20px]"},uc={class:"flex gap-[6px] mb-5"},gc={class:"vs-form-text relative bg-white rounded-lg flex-grow"},yc={class:"grid p-3 lg:gap-x-3 md:gap-x-6 md:p-5 grid-cols-6"},vc={class:"mt-2 text-sm font-medium text-gray-800 dark:text-neutral-200"},bc={class:"space-y-8"},kc={key:0},Ec={class:"grid p-3 bg-gray-100 rounded-lg md:gap-x-6 md:p-5 dark:bg-neutral-700 grid-cols-6"},Nc=["onClick"],_c={class:"md:col-span-2"},xc={class:"text-sm font-medium text-gray-800 dark:text-neutral-200"},wc={class:"text-sm text-gray-500 dark:text-neutral-500"},Sc={class:"grid items-center grid-cols-2 md:block text-end md:text-center"},Cc=["checked","onChange"],Bc={class:"grid p-3 bg-gray-100 rounded-lg md:gap-x-6 md:p-5 dark:bg-neutral-700 grid-cols-6"},Tc={class:"md:col-span-2"},$c={class:"font-semibold text-gray-800 dark:text-neutral-200"},Dc=["onClick"],Oc={class:"md:col-span-2"},Ic={class:"text-sm font-medium text-gray-800 dark:text-neutral-200"},Ac={class:"text-sm text-gray-500 dark:text-neutral-500"},Mc={class:"grid items-center grid-cols-2 md:block text-end md:text-center"},Lc=["checked","onChange"],kt=n.defineComponent({__name:"GroupInterfaceWidget",props:{data:{},id:{}},setup(e){const t=e,s=n.ref(""),o=["view","add","edit","del"],i=n.ref({});n.onMounted(async()=>{const y=await(await fetch(`/api/access-group/${t.id}?tab=vs-group-interface`)).json();y.routes&&y.routes.forEach(f=>{i.value[f.path]=new Set(f.actions)})});const l=(b,y)=>i.value[b]?.has(y)??!1,r=(b,y)=>{i.value[b]||(i.value[b]=new Set),i.value[b].has(y)?i.value[b].delete(y):i.value[b].add(y)},c=(b,y)=>{b.forEach(f=>{f.path&&(i.value[f.path]||(i.value[f.path]=new Set),i.value[f.path].has(y)?i.value[f.path].delete(y):i.value[f.path].add(y))})},a=n.computed(()=>Object.entries(i.value).map(([b,y])=>({path:b,actions:Array.from(y)})).filter(b=>b.actions.length)),p=async()=>{await fetch(`/api/access-group/${t.id}?tab=vs-group-interface`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({routes:a.value})}),console.log("Saved",a.value),Fs.notify({title:"Success!",message:"Permissions saved."})},h=()=>{i.value={}},d=b=>{if(!s.value.trim())return b;const y=s.value.toLowerCase();return b.filter(f=>f.ua.toLowerCase().includes(y)||f.path&&f.path.toLowerCase().includes(y))},m=n.computed(()=>d(t.data.routers.filter(b=>!b.menu))),k=n.computed(()=>t.data.routers.filter(b=>b.menu).map(b=>({...b,menu:d(b.menu||[])})).filter(b=>b.menu&&b.menu.length>0));return(b,y)=>(n.openBlock(),n.createElementBlock("div",hc,[n.createElementVNode("div",uc,[n.createElementVNode("div",gc,[y[1]||(y[1]=n.createElementVNode("i",{class:"absolute bottom-2/4 translate-y-2/4 text-gray-500 cursor-pointer ti"},null,-1)),n.withDirectives(n.createElementVNode("input",{type:"text",placeholder:"Пошук","onUpdate:modelValue":y[0]||(y[0]=f=>s.value=f),class:"bg-white h-[38px] text-sm py-2 px-3 block w-full border border-solid placeholder:text-nowrap border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"},null,512),[[n.vModelText,s.value]])]),n.createElementVNode("button",{onClick:h,class:"inline-flex items-center px-3 py-2 text-sm font-medium duration-300 bg-white border rounded-lg gap-x-2 hover:bg-gray-100"}," Скинути всі "),n.createElementVNode("button",{onClick:p,class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"}," Зберегти ")]),n.createElementVNode("div",yc,[y[2]||(y[2]=n.createElementVNode("div",{class:"self-center col-span-2"},[n.createElementVNode("h2",{class:"font-semibold text-gray-800 dark:text-neutral-200"},"Групи")],-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(o,(f,u)=>n.createElementVNode("div",{class:"col-span-1 text-center",key:u},[n.createElementVNode("h3",vc,n.toDisplayString(f),1)])),64))]),n.createElementVNode("div",bc,[m.value.length?(n.openBlock(),n.createElementBlock("div",kc,[n.createElementVNode("ul",Ec,[y[3]||(y[3]=n.createElementVNode("li",{class:"md:col-span-2"},[n.createElementVNode("h3",{class:"font-semibold text-gray-800 dark:text-neutral-200"},"Без категорії")],-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(o,(f,u)=>n.createElementVNode("li",{key:u,class:"md:block md:col-span-1 md:text-center"},[n.createElementVNode("button",{type:"button",class:"text-xs font-medium text-blue-600 decoration-2 hover:underline",onClick:g=>c(m.value,o[u])}," Toggle all ",8,Nc)])),64))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.value,(f,u)=>(n.openBlock(),n.createElementBlock("ul",{key:"uncat-"+u,class:"grid md:items-center gap-1.5 md:gap-6 px-3 md:px-5 mt-3 grid-cols-6"},[n.createElementVNode("li",_c,[n.createElementVNode("p",xc,n.toDisplayString(f.ua),1),n.createElementVNode("p",wc,n.toDisplayString(f.path),1)]),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(o,(g,N)=>n.createElementVNode("li",{key:N,class:"col-span-1"},[n.createElementVNode("div",Sc,[n.createElementVNode("input",{type:"checkbox",checked:l(f.path,g),onChange:_=>r(f.path,g),class:"text-blue-600 border-gray-300 rounded shrink-0 focus:ring-blue-500"},null,40,Cc)])])),64))]))),128))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.value,(f,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,class:"space-y-5"},[n.createElementVNode("ul",Bc,[n.createElementVNode("li",Tc,[n.createElementVNode("h3",$c,n.toDisplayString(f.ua),1)]),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(o,(g,N)=>n.createElementVNode("li",{key:N,class:"md:block md:col-span-1 md:text-center"},[n.createElementVNode("button",{type:"button",class:"text-xs font-medium text-blue-600 decoration-2 hover:underline",onClick:_=>c(f.menu,o[N])}," Toggle all ",8,Dc)])),64))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.menu,(g,N)=>(n.openBlock(),n.createElementBlock("ul",{key:N,class:"grid md:items-center gap-1.5 md:gap-6 px-3 md:px-5 mt-3 grid-cols-6"},[n.createElementVNode("li",Oc,[n.createElementVNode("p",Ic,n.toDisplayString(g.ua),1),n.createElementVNode("p",Ac,n.toDisplayString(g.path),1)]),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(o,(_,v)=>n.createElementVNode("li",{key:v,class:"col-span-1"},[n.createElementVNode("div",Mc,[n.createElementVNode("input",{type:"checkbox",checked:l(g.path,_),onChange:w=>r(g.path,_),class:"text-blue-600 border-gray-300 rounded shrink-0 focus:ring-blue-500"},null,40,Lc)])])),64))]))),128))]))),128))])]))}}),Ms={"vs-widget-map":Ve,"vs-widget-comments":Ye,"vs-widget-history":Ze,"vs-widget-gallery":Qe,"vs-widget-file":Xe,"vs-widget-list":St,"vs-widget-table":As,"vs-group-interface":kt},Rc={key:0,class:"mb-4 pb-2 border-b border-gray-200"},Fc={class:"text-lg font-semibold text-gray-900"},Pc=["innerHTML"],jc={key:0,class:"mb-4 pb-2 border-b border-gray-200"},zc={class:"text-lg font-semibold text-gray-900"},Hc=["innerHTML"],hn=n.defineComponent({__name:"CardItem",props:{items:{},type:{},col:{},data:{},html:{},title:{},styling:{},name:{},label:{},component:{},slot:{},id:{},className:{},style:{}},setup(e){const t=e,s=n.computed(()=>t.col?{[`lg:col-span-${t.col}`]:!0}:{});function o(r){return Ms[r]||r}const i=function(r={}){return r.props&&Object.entries(r.props).forEach(([c,a])=>{r[c]=t.data[a]}),r},l=n.computed(()=>{const r={};return t.col&&(r.col=t.col),r});return(r,c)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([[s.value,r.styling?.classItem],"w-full bg-gray-50 rounded-lg p-4 col-span-12"])},[r.title?(n.openBlock(),n.createElementBlock("div",Rc,[n.createElementVNode("h3",Fc,n.toDisplayString(r.title),1)])):n.createCommentVNode("",!0),r.html?(n.openBlock(),n.createElementBlock("div",{key:1,innerHTML:r.html,class:"text-gray-900 leading-relaxed"},null,8,Pc)):r.type?.includes("tabs")?(n.openBlock(),n.createBlock(Ke,{key:2,view:r.type,panels:r.items,data:r.data,styling:r.styling},null,8,["view","panels","data","styling"])):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:3},n.renderList(r.items,a=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[a.title||a.label?(n.openBlock(),n.createElementBlock("div",jc,[n.createElementVNode("h3",zc,n.toDisplayString(a.title||a.label),1)])):n.createCommentVNode("",!0),a.html?(n.openBlock(),n.createElementBlock("div",{key:1,innerHTML:a.html,class:"text-gray-900 leading-relaxed"},null,8,Hc)):a.component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o(a.component)),n.mergeProps({key:2,ref_for:!0},{geom:r.data.geom,id:r.data.id,...l.value,...i(a),data:r.data},{class:"w-full"}),null,16)):n.renderSlot(r.$slots,"default",{key:3})],64))),256))],2))}}),Uc={class:"grid grid-cols-12 gap-[20px]"},qc={key:0,class:"col-span-4"},Wc=["innerHTML"],Kc=["onClick"],Gc=["innerHTML"],Jc={key:1,class:"flex w-full"},Yc={class:"flex flex-col w-56 border-r border-gray-200 bg-gray-50 relative"},Zc=["onClick"],Xc={key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 transition-all duration-300"},Qc={class:"flex-1 p-4"},Vc=["innerHTML"],ed={class:"grid grid-cols-12 gap-4"},Ke=n.defineComponent({__name:"Card",props:{panels:{default:()=>[]},data:{default:()=>({})},view:{default:"plain"},styling:{},classWrapper:{default:""},classPanel:{},normalizeTabs:{type:Boolean,default:!0},backgroundClass:{},tabContentWrapperClass:{},tabPanelClass:{},id:{},className:{},style:{}},setup(e){const t=e,s=n.ref(0),o=n.ref([]);function i(f){return Ms[f]||f}function l(f){return f.forEach(u=>{u.type&&(u.view=u.type)}),o.value=f.filter(u=>u.type==="pin"),f.filter(u=>u.type!=="pin")}const r=n.computed(()=>t.panels&&t.panels.length>0?t.normalizeTabs?l(t.panels):t.panels:t.data&&Array.isArray(t.data)?t.data.filter(u=>u.type.includes("tabs"))[0]?.items||[]:[]),c=n.computed(()=>t.panels&&t.panels.length>0?t.normalizeTabs?l(t.panels):t.panels:t.data&&Array.isArray(t.data)?t.data:[]),a=n.computed(()=>({[`view-${t.view}`]:!0})),p=f=>{const u={...f};return t.data&&(u.data=t.data),u},h=n.ref([]),d=n.ref([]),m=n.ref([]);function k(f,u){f&&f instanceof HTMLElement&&(h.value[u]=f)}function b(){d.value=h.value.map(f=>f.offsetWidth),m.value=h.value.map(f=>f.offsetLeft)}let y=null;return n.onMounted(()=>{n.nextTick(()=>{b()}),y=new ResizeObserver(()=>b()),y.observe(document.body)}),n.onBeforeUnmount(()=>{y?.disconnect()}),n.watch(s,()=>{n.nextTick(()=>{b()})}),(f,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(f.classWrapper||a.value)},[n.createElementVNode("div",Uc,[o.value.length!==0?(n.openBlock(),n.createElementBlock("div",qc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value[0].items,(g,N)=>(n.openBlock(),n.createElementBlock("div",{key:g.name||N,class:"w-full bg-gray-50 rounded-lg p-4 col-span-12 m-1 mb-3"},[g.html?(n.openBlock(),n.createElementBlock("div",{key:0,innerHTML:g.html,class:"text-gray-900 leading-relaxed"},null,8,Wc)):g.component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(g.component)),n.mergeProps({key:1,ref_for:!0},g.component==="Card"?g:p(g),{id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["id","class"])):n.createCommentVNode("",!0)]))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(o.value.length!==0?"col-span-8":"col-span-12")},[f.view==="tabs"?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["overflow-hidden w-full",f.styling?.classTabWrapper])},[n.createElementVNode("div",{class:n.normalizeClass(["flex border-b border-gray-200 bg-gray-50 relative",f.styling?.classTabHeader])},[d.value.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"absolute bottom-0 h-[2px] bg-blue-600 transition-all duration-300",style:n.normalizeStyle({width:d.value[s.value]+"px",left:m.value[s.value]+"px"})},null,4)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,(g,N)=>(n.openBlock(),n.createElementBlock("button",{key:g.name||N,ref_for:!0,ref:_=>k(_,N),onClick:_=>s.value=N,class:n.normalizeClass(["relative px-4 py-3 text-sm font-medium transition-colors duration-300",s.value===N?"text-blue-600":"text-gray-600 hover:text-gray-800"])},n.toDisplayString(g.title||g.label||g.name||`Tab ${N+1}`),11,Kc))),128))],2),n.createElementVNode("div",{class:n.normalizeClass([f.styling?.classTabContent,"p-1"])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,(g,N)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:g.name||N,class:n.normalizeClass(["transition-all duration-300 ease-in-out",s.value===N?"opacity-100 translate-y-0":"opacity-0 -translate-y-2",f.classPanel||"w-full border-gray-100"])},[g.html?(n.openBlock(),n.createElementBlock("div",{key:0,innerHTML:g.html,class:"text-gray-900 leading-relaxed"},null,8,Gc)):f.$slots[`tab-${N}`]?n.renderSlot(f.$slots,`tab-${N}`,{key:1,item:g,data:f.data}):g.component||g.name?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(g.component||g.name)),n.mergeProps({key:2,ref_for:!0},g.component==="Card"?g:p(g),{styling:f.styling,id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["styling","id","class"])):n.renderSlot(f.$slots,g.slot||`tab-${N}`,{key:3,item:g,data:f.data})],2)),[[n.vShow,s.value===N]])),128))],2)],2)):f.view==="vertical-tabs"?(n.openBlock(),n.createElementBlock("div",Jc,[n.createElementVNode("div",Yc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,(g,N)=>(n.openBlock(),n.createElementBlock("button",{key:g.name||N,onClick:_=>s.value=N,class:n.normalizeClass(["relative px-4 py-3 text-sm font-medium text-left transition-colors duration-300",s.value===N?"text-blue-600 bg-white":"text-gray-600 hover:text-gray-800 hover:bg-gray-100"])},[n.createTextVNode(n.toDisplayString(g.title||g.label||g.name||`Tab ${N+1}`)+" ",1),s.value===N?(n.openBlock(),n.createElementBlock("span",Xc,u[0]||(u[0]=[n.createElementVNode("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"remixicon text-blue-600 rounded-full bg-white shadow scale-90 opacity-100 transition ease-out"},[n.createElementVNode("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})],-1)]))):n.createCommentVNode("",!0)],10,Zc))),128))]),n.createElementVNode("div",Qc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,(g,N)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:g.name||N,class:n.normalizeClass(["transition-all duration-300 ease-in-out",s.value===N?"opacity-100 translate-y-0":"opacity-0 -translate-y-2",f.classPanel||"w-full border-gray-100 py-2"])},[g.html?(n.openBlock(),n.createElementBlock("div",{key:0,innerHTML:g.html,class:"text-gray-900 leading-relaxed"},null,8,Vc)):f.$slots[`tab-${N}`]?n.renderSlot(f.$slots,`tab-${N}`,{key:1,item:g,data:f.data}):g.component||g.name?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(g.component||g.name)),n.mergeProps({key:2,ref_for:!0},g.component==="Card"?g:p(g),{id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["id","class"])):n.renderSlot(f.$slots,g.slot||`tab-${N}`,{key:3,item:g,data:f.data})],2)),[[n.vShow,s.value===N]])),128))])])):(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(f.styling?.classPlain||"p-1 w-full")},[n.createElementVNode("div",ed,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(g,N)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:g.name||N},[f.$slots[`panel-${N}`]?n.renderSlot(f.$slots,`panel-${N}`,{key:0,item:g,data:f.data}):g.items||g.html?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(hn),n.mergeProps({key:1,ref_for:!0},p(g),{items:g.items,class:["w-full h-full",f.styling?.classItem],styling:f.styling}),null,16,["items","class","styling"])):g.component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(g.component)),n.mergeProps({key:2,ref_for:!0},p(g),{class:["w-full h-full",f.styling?.classItem],styling:f.styling}),null,16,["class","styling"])):n.renderSlot(f.$slots,g.slot||`panel-${N}`,{key:3,item:g,data:f.data})],64))),128))])],2))],2)])],2))}}),td=["onClick"],Ls=ye(n.defineComponent({__name:"CopyNotification",setup(e,{expose:t}){const s=n.ref([]);let o=1;const i=()=>{if(s.value.length>=10){const c=s.value[0];clearTimeout(c.timer),s.value.shift()}const r={id:o++,timer:setTimeout(()=>{l(r.id)},1500)};s.value.push(r)},l=r=>{const c=s.value.findIndex(a=>a.id===r);if(c!==-1){const a=s.value[c];clearTimeout(a.timer),s.value.splice(c,1)}};return t({addNotification:i}),n.onUnmounted(()=>{s.value.forEach(r=>{clearTimeout(r.timer)})}),(r,c)=>(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.TransitionGroup,{name:"notification",tag:"div",class:"fixed top-4 right-4 z-50 space-y-2"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.value,a=>(n.openBlock(),n.createElementBlock("div",{key:a.id,class:"bg-green-500 text-white px-4 py-3 rounded-lg shadow-lg flex items-center gap-3 min-w-64 max-w-sm"},[n.createVNode(n.unref(Gs),{class:"h-5 w-5 text-green-100 flex-shrink-0"}),c[0]||(c[0]=n.createElementVNode("div",{class:"flex-1"},[n.createElementVNode("p",{class:"font-medium text-sm"},"Ссылка скопирована!"),n.createElementVNode("p",{class:"text-xs text-green-100 opacity-90"},"Файл добавлен в буфер обмена")],-1)),n.createElementVNode("button",{onClick:p=>l(a.id),class:"text-green-100 hover:text-white transition-colors flex-shrink-0"},[n.createVNode(n.unref(xt),{class:"h-4 w-4"})],8,td)]))),128))]),_:1})]))}}),[["__scopeId","data-v-55903525"]]);Ke.install=function(e){e.component("vs-widget-file",Xe),e.component("vs-widget-comments",Ye),e.component("vs-widget-history",Ze),e.component("vs-widget-gallery",Qe),e.component("vs-widget-map",Ve),e.component("vs-group-interface",kt),e.component("CommentsWidget",Ye),e.component("HistoryWidget",Ze),e.component("GalleryWidget",Qe),e.component("FilesWidget",Xe),e.component("MapWidget",Ve),e.component("Card",Ke),e.component("CardItem",hn),e.component("DescriptionListWidget",St),e.component("CopyNotification",Ls),e.component("GroupInterfaceWidget",kt)},U.Card=Ke,U.CardItem=hn,U.CommentsWidget=Ye,U.CopyNotification=Ls,U.DescriptionListWidget=St,U.FilesWidget=Xe,U.GalleryWidget=Qe,U.GroupInterfaceWidget=kt,U.HistoryWidget=Ze,U.MapWidget=Ve,U.TableWidget=As,U.default=Ke,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
151
+ **/const Os=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),As=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Ms=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ls=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),wn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Rs=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Ps=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Fs=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),_n=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),zs=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");vl({[Os]:"vModelRadio",[As]:"vModelCheckbox",[Ms]:"vModelText",[Ls]:"vModelSelect",[wn]:"vModelDynamic",[Rs]:"withModifiers",[Ps]:"withKeys",[Fs]:"vShow",[_n]:"Transition",[zs]:"TransitionGroup"});let We;function Ja(t,n=!1){return We||(We=document.createElement("div")),n?(We.innerHTML=`<div foo="${t.replace(/"/g,"&quot;")}">`,We.children[0].getAttribute("foo")):(We.innerHTML=t,We.textContent)}const Ya={parseMode:"html",isVoidTag:fl,isNativeTag:t=>cl(t)||dl(t)||pl(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:Ja,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return _n;if(t==="TransitionGroup"||t==="transition-group")return zs},getNamespace(t,n,s){let o=n?n.ns:s;if(n&&o===2)if(n.tag==="annotation-xml"){if(t==="svg")return 1;n.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(n.tag)&&t!=="mglyph"&&t!=="malignmark"&&(o=0);else n&&o===1&&(n.tag==="foreignObject"||n.tag==="desc"||n.tag==="title")&&(o=0);if(o===0){if(t==="svg")return 1;if(t==="math")return 2}return o}},Za=t=>{t.type===1&&t.props.forEach((n,s)=>{n.type===6&&n.name==="style"&&n.value&&(t.props[s]={type:7,name:"bind",arg:A("style",!0,n.loc),exp:Xa(n.value.content,n.loc),modifiers:[],loc:n.loc})})},Xa=(t,n)=>{const s=ol(t);return A(JSON.stringify(s),!1,n,3)};function me(t,n){return j(t,n,process.env.NODE_ENV!=="production"?Qa:void 0)}const Qa={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Va=(t,n,s)=>{const{exp:o,loc:r}=t;return o||s.onError(me(53,r)),n.children.length&&(s.onError(me(54,r)),n.children.length=0),{props:[G(A("innerHTML",!0,r),o||A("",!0))]}},ec=(t,n,s)=>{const{exp:o,loc:r}=t;return o||s.onError(me(55,r)),n.children.length&&(s.onError(me(56,r)),n.children.length=0),{props:[G(A("textContent",!0),o?de(o,s)>0?o:Z(s.helperString(gt),[o],r):A("",!0))]}},tc=(t,n,s)=>{const o=$s(t,n,s);if(!o.props.length||n.tagType===1)return o;t.arg&&s.onError(me(58,t.arg.loc));function r(){const a=se(n,"bind");a&&_e(a.arg,"value")&&s.onError(me(60,a.loc))}const{tag:l}=n,i=s.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||i){let a=Ms,c=!1;if(l==="input"||i){const p=et(n,"type");if(p){if(p.type===7)a=wn;else if(p.value)switch(p.value.content){case"radio":a=Os;break;case"checkbox":a=As;break;case"file":c=!0,s.onError(me(59,t.loc));break;default:process.env.NODE_ENV!=="production"&&r();break}}else Dl(n)?a=wn:process.env.NODE_ENV!=="production"&&r()}else l==="select"?a=Ls:process.env.NODE_ENV!=="production"&&r();c||(o.needRuntime=s.helper(a))}else s.onError(me(57,t.loc));return o.props=o.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),o},nc=he("passive,once,capture"),sc=he("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),oc=he("left,right"),js=he("onkeyup,onkeydown,onkeypress"),rc=(t,n,s,o)=>{const r=[],l=[],i=[];for(let a=0;a<n.length;a++){const c=n[a].content;c==="native"&&qe("COMPILER_V_ON_NATIVE",s,o)||nc(c)?i.push(c):oc(c)?ne(t)?js(t.content.toLowerCase())?r.push(c):l.push(c):(r.push(c),l.push(c)):sc(c)?l.push(c):r.push(c)}return{keyModifiers:r,nonKeyModifiers:l,eventOptionModifiers:i}},Hs=(t,n)=>ne(t)&&t.content.toLowerCase()==="onclick"?A(n,!0):t.type!==4?fe(["(",t,`) === "onClick" ? "${n}" : (`,t,")"]):t,ic=(t,n,s)=>Bs(t,n,s,o=>{const{modifiers:r}=t;if(!r.length)return o;let{key:l,value:i}=o.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=rc(l,r,s,t.loc);if(c.includes("right")&&(l=Hs(l,"onContextmenu")),c.includes("middle")&&(l=Hs(l,"onMouseup")),c.length&&(i=Z(s.helper(Rs),[i,JSON.stringify(c)])),a.length&&(!ne(l)||js(l.content.toLowerCase()))&&(i=Z(s.helper(Ps),[i,JSON.stringify(a)])),p.length){const h=p.map(qt).join("");l=ne(l)?A(`${l.content}${h}`,!0):fe(["(",l,`) + "${h}"`])}return{props:[G(l,i)]}}),lc=(t,n,s)=>{const{exp:o,loc:r}=t;return o||s.onError(me(61,r)),{props:[],needRuntime:s.helper(Fs)}},ac=(t,n)=>{if(t.type===1&&t.tagType===1&&n.isBuiltInComponent(t.tag)===_n)return()=>{if(!t.children.length)return;Us(t)&&n.onError(me(62,{start:t.children[0].loc.start,end:t.children[t.children.length-1].loc.end,source:""}));const o=t.children[0];if(o.type===1)for(const r of o.props)r.type===7&&r.name==="show"&&t.props.push({type:6,name:"persisted",nameLoc:t.loc,value:void 0,loc:t.loc})}};function Us(t){const n=t.children=t.children.filter(o=>o.type!==3&&!(o.type===2&&!o.content.trim())),s=n[0];return n.length!==1||s.type===11||s.type===9&&s.branches.some(Us)}const cc=(t,n)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&(process.env.NODE_ENV!=="production"&&n.onError(me(63,t.loc)),n.removeNode())};function dc(t,n){return t==="template"?!0:t in qs?qs[t].has(n):n in Ws?Ws[n].has(t):!(t in Ks&&Ks[t].has(n)||n in Gs&&Gs[n].has(t))}const Ke=new Set(["h1","h2","h3","h4","h5","h6"]),Me=new Set([]),qs={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:Me,iframe:Me,option:Me,textarea:Me,style:Me,title:Me},Ws={html:Me,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},Ks={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Gs={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:Ke,h2:Ke,h3:Ke,h4:Ke,h5:Ke,h6:Ke},pc=(t,n)=>{if(t.type===1&&t.tagType===0&&n.parent&&n.parent.type===1&&n.parent.tagType===0&&!dc(n.parent.tag,t.tag)){const s=new SyntaxError(`<${t.tag}> cannot be child of <${n.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);s.loc=t.loc,n.onWarn(s)}},fc=[Za,...process.env.NODE_ENV!=="production"?[ac,pc]:[]],mc={cloak:Ga,html:Va,text:ec,model:tc,on:ic,show:lc};function hc(t,n={}){return Ka(t,Ee({},Ya,n,{nodeTransforms:[cc,...fc,...n.nodeTransforms||[]],directiveTransforms:Ee({},mc,n.directiveTransforms||{}),transformHoist:null}))}function uc(t,n={}){const s=t.trim().startsWith("<")?t:`<span>${t}</span>`,{code:o}=hc(s,{mode:"function"}),r=new Function("Vue",`${o}; return render;`)(oo);return e.defineComponent({name:"DynamicFromString",props:n.props??{},emits:n.emits??[],setup(){return n.setup?.()??{}},render:r})}const Sn={};function gc(t){return Sn[t]||(Sn[t]=uc(t,{props:{row:{type:Object,default:void 0},value:{type:null,default:void 0},data:{type:Object,default:void 0},column:{type:Object,default:void 0}}})),Sn[t]}const yc={class:"mt-4 flex flex-wrap items-center justify-between gap-3 text-sm text-gray-600"},vc={class:"flex items-center gap-2"},bc=["disabled"],kc={class:"text-sm"},Ec=["disabled"],Nc=e.defineComponent({__name:"TablePagination",props:{currentPage:{},totalPages:{},label:{}},setup(t){const n=t,s=e.computed(()=>n.currentPage<=1),o=e.computed(()=>n.currentPage>=n.totalPages);return(r,l)=>(e.openBlock(),e.createElementBlock("div",yc,[e.createElementVNode("div",null,e.toDisplayString(r.label),1),e.createElementVNode("div",vc,[e.createElementVNode("button",{class:"rounded-md border border-gray-300 px-3 py-1 text-sm transition-colors hover:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-400",disabled:s.value,onClick:l[0]||(l[0]=i=>r.$emit("previous"))}," Назад ",8,bc),e.createElementVNode("span",kc,"Сторінка "+e.toDisplayString(r.currentPage)+" з "+e.toDisplayString(r.totalPages),1),e.createElementVNode("button",{class:"rounded-md border border-gray-300 px-3 py-1 text-sm transition-colors hover:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-400",disabled:o.value,onClick:l[1]||(l[1]=i=>r.$emit("next"))}," Далі ",8,Ec)])]))}}),xc={class:"relative inline-flex"},wc=["aria-label"],_c={class:"px-3 pb-2"},Sc={class:"px-3 pb-3 max-h-64 overflow-y-auto"},Cc=["onClick"],Bc={class:"truncate"},Tc={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},$c="inline-flex items-center justify-center size-8 rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",Dc=e.defineComponent({__name:"TableColumnSettings",props:{columns:{}},emits:["update:columns"],setup(t,{emit:n}){const s=t,o=n,r=e.useAttrs(),l=e.ref(!1),i=e.ref(""),a=e.ref([...s.columns]),c=e.ref(null),p=e.ref(null),h=e.ref(null),d=e.ref({top:0,left:0}),m=e.computed(()=>{if(!i.value)return a.value;const C=i.value.toLowerCase();return a.value.filter(B=>g(B).toLowerCase().includes(C))});e.watch(()=>s.columns,C=>{if(!C){a.value=[];return}const B=JSON.stringify(C),_=JSON.stringify(a.value);B!==_&&(a.value=[...C])},{deep:!0}),e.watch(a,C=>{o("update:columns",C)},{deep:!0});function g(C){return C.ua||C.label||C.name||"Колонка"}function v(C){const B=!C.hidden;B&&a.value.filter(_=>!_.hidden).length<=1||(C.hidden=B)}function k(){l.value=!l.value,l.value&&e.nextTick(()=>{h.value?.focus(),y()})}function y(){if(!c.value)return;const C=c.value.getBoundingClientRect();d.value={top:C.bottom+window.scrollY+6,left:C.left+window.scrollX-200}}function x(C){if(!l.value)return;const B=C.target;B&&(p.value?.contains(B)||c.value?.contains(B)||(l.value=!1))}function D(C){C.key==="Escape"&&(l.value=!1)}return e.onMounted(()=>{document.addEventListener("click",x,!0),document.addEventListener("keydown",D)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x,!0),document.removeEventListener("keydown",D)}),(C,B)=>(e.openBlock(),e.createElementBlock("div",xc,[e.createElementVNode("button",{ref_key:"buttonRef",ref:c,type:"button",onClick:k,class:e.normalizeClass([$c,e.unref(r).class]),"aria-label":e.unref(r)["aria-label"]??"Налаштування колонок",title:"Налаштування колонок"},B[2]||(B[2]=[e.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="18" width="18" aria-hidden="true"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6h5.5"></path><path d="M4 10h5.5"></path><path d="M4 14h5.5"></path><path d="M4 18h5.5"></path><path d="M14.5 6h5.5"></path><path d="M14.5 10h5.5"></path><path d="M14.5 14h5.5"></path><path d="M14.5 18h5.5"></path></svg>',1)]),10,wc),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"modalRef",ref:p,class:"fixed z-50 w-64 bg-white rounded-xl shadow-lg border border-gray-200 dark:bg-neutral-900 dark:border-neutral-700",style:e.normalizeStyle({top:`${d.value.top}px`,left:`${d.value.left}px`})},[B[5]||(B[5]=e.createElementVNode("div",{class:"flex items-center justify-between h-12 px-4 text-sm font-medium text-gray-800 dark:text-neutral-200"}," Налаштування колонок ",-1)),e.createElementVNode("div",_c,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:h,"onUpdate:modelValue":B[0]||(B[0]=_=>i.value=_),type:"text",class:"w-full rounded-md border border-gray-200 px-3 py-2 text-sm text-gray-800 placeholder:text-gray-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-200",placeholder:"Пошук колонок"},null,512),[[e.vModelText,i.value]])]),e.createElementVNode("div",Sc,[B[4]||(B[4]=e.createElementVNode("p",{class:"px-1 pb-2 text-xs text-gray-500 uppercase tracking-wide"},"Виберіть колонки",-1)),e.createElementVNode("ul",{class:"space-y-1",onClick:B[1]||(B[1]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,_=>(e.openBlock(),e.createElementBlock("li",{key:_.name,class:"flex items-center justify-between rounded-lg px-3 py-2 text-sm text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 cursor-pointer",onClick:O=>v(_)},[e.createElementVNode("span",Bc,e.toDisplayString(g(_)),1),e.createElementVNode("span",{class:e.normalizeClass(["flex items-center justify-center size-4 rounded border border-gray-300 text-white",_.hidden?"bg-white text-transparent":"bg-blue-600 border-blue-600"])},[_.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",Tc,B[3]||(B[3]=[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)])))],2)],8,Cc))),128))])])],4)):e.createCommentVNode("",!0)]))]))}}),Ic={class:"flex flex-col gap-4 mb-[15px]"},Oc={class:"flex flex-wrap justify-between items-center gap-4"},Ac={class:"font-semibold text-[16px]"},Mc={class:"flex flex-wrap items-center gap-4"},Lc={class:"relative"},Rc={class:"ml-auto flex items-center gap-2"},Pc={class:"overflow-x-auto"},Fc={class:"min-w-full relative divide-y-2 divide-gray-200 bg-white min-w-full overflow-auto divide-y-2 divide-gray-200 bg-white text-[12px] text-gray-600"},zc={class:"text-left font-medium text-gray-700"},jc={key:0,class:"py-2 pr-4 min-w-[80px] max-w-[120px] text-right"},Hc={class:"divide-y divide-gray-200"},Uc=["href"],qc={key:2},Wc={key:3},Kc={key:0,class:"py-2 pr-4 text-right"},Gc=["data-action-key"],Jc=["onClick"],Yc=["onClick"],Zc={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Xc={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Qc={key:2,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vc={key:3,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ed={key:0},td=["colspan"],Js=e.defineComponent({__name:"TableWidget",props:{name:{},label:{},component:{},slot:{},col:{},width:{},html:{},title:{},type:{},token:{},count:{},props:{},items:{}},setup(t){const n=e.getCurrentInstance(),s=e.ref([]),o=e.ref([]),r=new Map,l=t,i=e.ref([]),a=e.ref(""),c=e.ref(""),p=e.ref(""),h=e.ref(1),d=e.ref(10),m=e.ref(0),g=e.ref(0),v=e.ref("id"),k=e.ref("");let y=null,x=0;const D=e.ref(null);async function C(){const b=h.value,E=++x,w=new URLSearchParams,N=p.value.trim();N&&w.set("search",N),w.set("page",String(b)),w.set("limit",String(d.value));const q=`/api/data/${l.token}${w.toString()?`?${w.toString()}`:""}`;let H;try{const lt=await fetch(q);if(!lt.ok)throw new Error(`Request failed with status ${lt.status}`);H=await lt.json()}catch(lt){E===x&&(s.value=[],g.value=0,m.value=0),console.error("Failed to load table data",lt);return}if(E!==x)return;s.value=Array.isArray(H?.rows)?H.rows:[],o.value=T(H?.columns||[]),i.value=Array.isArray(H?.actions)?H.actions:[],a.value=H?.form,c.value=H?.addToken,v.value=typeof H?.pk=="string"&&H.pk?H.pk:v.value,typeof H?.form=="string"&&H.form&&(k.value=H.form.replace(/\.form$/,".table")),Re();const le=Number(H?.total??H?.count??H?.totalCount),ke=Number(H?.filtered??H?.filteredCount);m.value=Number.isFinite(le)&&le>0?le:s.value.length,g.value=Number.isFinite(ke)&&ke>0?ke:Math.max(s.value.length,m.value);const to=Math.max(1,Math.ceil((g.value||s.value.length||1)/d.value));let Pe=b;typeof H?.page=="number"&&H.page>0&&(Pe=H.page),Pe>to&&(Pe=to),Pe<1&&(Pe=1);const np=Pe!==b;if(h.value=Pe,np&&g.value>0)return C()}const{$notify:B,$confirm:_,$form:O}=n?.appContext?.config?.globalProperties||{};async function $(b){await O({token:b.token}),C()}function f(){O({token:c.value})}function S(b){_({title:"Підтвердіть дію",type:"error",message:"Ви впевненні що бажаєте видалити даний рядок?",onConfirm:async()=>{const E=await fetch(`/api/table/${b.token}`,{method:"DELETE"});if(!E.ok){const{error:w}=await E.json();B({title:"Помилка",type:"warning",message:w});return}B({title:"Видаленно",message:"Успішно видалено"}),await C()}})}e.onMounted(async()=>{await C()});function u(b){return typeof b?.format=="string"?b.format.toLowerCase():""}function T(b){const E=new Map;o.value.forEach(N=>{N?.name&&E.set(N.name,!!N.hidden)});const w=b.map(N=>{const q=E.has(N.name)?E.get(N.name):!!N.hidden;return{...N,hidden:q}});return w.length&&!w.some(N=>!N.hidden)&&(w[0].hidden=!1),w}const I=e.computed(()=>{const b=o.value.filter(E=>!E.hidden);return b.length?b:o.value}),M=e.computed(()=>{const b=[],E=new Set;for(const w of i.value){if(typeof w=="string"){if(w==="view"){const N="row:view";E.has(N)||(b.push({key:N,type:"view",label:"Переглянути",scope:"row",handler:ep}),E.add(N));continue}if(w==="edit"){const N="row:edit";E.has(N)||(b.push({key:N,type:"edit",label:"Редагувати",scope:"row",handler:Xd}),E.add(N));continue}if(w==="delete"||w==="del"){const N="row:delete";E.has(N)||(b.push({key:N,type:"delete",label:"Видалити",scope:"row",handler:Qd,variant:"danger"}),E.add(N));continue}if(w==="add"){const N="toolbar:add";E.has(N)||(b.push({key:N,type:"add",label:"Додати",scope:"toolbar"}),E.add(N))}continue}if(w&&typeof w=="object"){const N=String(w.name??w.type??"action"),q=String(w.label??w.title??N),H=w.scope==="toolbar"?"toolbar":"row",le=`${H}:${N}`;if(E.has(le))continue;E.add(le),b.push({key:le,type:N,label:q,scope:H,handler:H==="row"?ke=>Vd(w,ke):void 0,variant:w.variant==="danger"?"danger":"default",original:w})}}return b}),F=e.computed(()=>M.value.filter(b=>b.scope==="row"&&typeof b.handler=="function")),z=e.computed(()=>M.value.filter(b=>b.scope==="toolbar")),ie=e.computed(()=>F.value.length>0),ve=e.computed(()=>z.value.some(b=>b.type==="add")),be=e.computed(()=>s.value),rt=e.computed(()=>{const b=g.value||be.value.length,E=Math.ceil(b/d.value);return E>0?E:1}),Ce=e.computed(()=>{const b=be.value.length,E=g.value||b,w=m.value||E;return`Показано ${b} з ${E} (усього ${w})`});function Be(){h.value<rt.value&&(h.value+=1,C())}function Le(){h.value>1&&(h.value-=1,C())}e.watch(o,b=>{b?.length&&(b.some(E=>!E.hidden)||(b[0].hidden=!1))},{deep:!0});function Ud(){y&&clearTimeout(y),Re(),y=setTimeout(()=>{h.value=1,C()},300)}function it(b){const E=v.value||"id",w=b?.token??b?.[E]??b?.id;return w?String(w):""}function qd(b){const E=I.value[b],w=["py-2",...Xs(E)];b===0&&w.push("pl-4");const N=b===I.value.length-1&&!ie.value;return w.push(N?"pr-4":"pr-5"),w.join(" ")}function Wd(b,E){const w=["py-2",...Xs(E)];u(E)==="badge"&&w.push("center"),b===0&&w.push("pl-4");const N=b===I.value.length-1&&!ie.value;return w.push(N?"pr-4":"pr-5"),w.join(" ")}function Xs(b){const E=[],w=le=>{if(le==null||le==="")return;const ke=Number(le);return Number.isFinite(ke)&&ke>0?`${ke}px`:String(le).replace(/\s+/g,"")},N=w(b?.width),q=w(b?.minWidth),H=w(b?.maxWidth);return N?(E.push(`min-w-[${N}]`,`max-w-[${N}]`),E):(E.push(`min-w-[${q??"100px"}]`),E.push(`max-w-[${H??"300px"}]`),E)}function Kd(b){if(!F.value.length)return!1;const E=v.value||"id";return!!(b?.token||b?.[E]||b?.id)}function Gd(b){return D.value===it(b)}function Jd(b){const E=it(b);E&&(D.value=D.value===E?null:E)}function Yd(b,E){const w=it(b);if(w){if(E){r.set(w,E);return}r.delete(w)}}function Zd(b){const E=it(b),w=r.get(E);if(!w)return{};const N=w.getBoundingClientRect(),q=160;return{top:`${N.bottom+window.scrollY+8}px`,left:`${N.right+window.scrollX-q}px`,width:`${q}px`}}function Re(){D.value=null}function Xd(b){Re(),$(b)}function Qd(b){Re(),S(b)}function Vd(b,E){Re();const w=v.value||"id",N=b.isId?E?.[w]??E?.id:E?.token??E?.[w]??E?.id;if(!N){console.warn("Cannot execute action without identifier",b);return}if(b.form&&typeof O=="function"){O({token:b.form,payload:{id:N,row:E}});return}if(typeof b.api=="string"&&b.api){const q=b.api.endsWith("/")?b.api:`${b.api}/`;window.location.href=`${q}${N}`;return}E?.token&&typeof O=="function"&&O({token:E.token})}function ep(b){Re();const E=k.value||(a.value?String(a.value).replace(/\.form$/,".table"):""),w=v.value||"id",N=b?.[w]??b?.id??b?.token;if(E&&N){const q=`/card/${E}/${N}`;window.location.href=q;return}if(b?.token&&typeof O=="function"){O({token:b.token,readonly:!0,mode:"view"});return}b?.token&&$(b)}function Qs(b){if(!D.value)return;const E=b.target;if(!E)return;const w=E.closest("[data-action-key]");w&&w.getAttribute("data-action-key")===D.value||Re()}e.onMounted(()=>{document.addEventListener("click",Qs,!0)}),e.onBeforeUnmount(()=>{y&&clearTimeout(y),document.removeEventListener("click",Qs,!0)});function Vs(b,E){const N=b?.[`${E.name}_text`];if(Array.isArray(N))return N.length?N.join(", "):"-";if(N!=null&&N!=="")return N;const q=b?.[E.name];return Array.isArray(q)?q.length?q.join(", "):"-":q??"-"}function Bn(b,E){const N=b?.[`${E.name}_data`];if(N&&typeof N=="object")return{text:N.text??N.label??N.name??N.title??"-",color:N.color,textColor:N.textColor};const q=b?.[`${E.name}_text`]??b?.[E.name];return{text:(Array.isArray(q)?q.join(", "):q)??"-"}}function tp(b,E){const w=Bn(b,E);return w.color?{backgroundColor:w.color,color:w.textColor??"#ffffff"}:{}}function eo(b,E){const w=u(E);if(w==="badge")return Bn(b,E).text;if(w==="select")return Vs(b,E);if(w==="slot")return"-";if(w==="text")return b?.[E.name]??"-";const N=b?.[`${E.name}_data`];return N!=null&&typeof N!="object"?N:b?.[`${E.name}_text`]??b?.[E.name]??"-"}return(b,E)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ic,[e.createElementVNode("div",Oc,[e.createElementVNode("div",Ac,e.toDisplayString(b.title),1)]),e.createElementVNode("div",Mc,[e.createElementVNode("div",Lc,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=w=>p.value=w),type:"text",class:"w-52 rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",placeholder:"Пошук",onInput:Ud},null,544),[[e.vModelText,p.value]])]),e.createElementVNode("div",Rc,[e.createVNode(Dc,{columns:o.value,"onUpdate:columns":E[1]||(E[1]=w=>o.value=w)},null,8,["columns"]),ve.value&&c.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",onClick:f,class:"inline-flex size-8 items-center justify-center rounded-lg bg-blue-500 text-white shadow-sm transition-colors hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",title:"Додати запис","aria-label":"Додати запис"},E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M5 12h14"}),e.createElementVNode("path",{d:"M12 5v14"})],-1)]))):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Pc,[e.createElementVNode("table",Fc,[e.createElementVNode("thead",zc,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(w,N)=>(e.openBlock(),e.createElementBlock("th",{key:w.name,class:e.normalizeClass(qd(N))},e.toDisplayString(w.ua),3))),128)),ie.value?(e.openBlock(),e.createElementBlock("th",jc," Дії ")):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",Hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be.value,w=>(e.openBlock(),e.createElementBlock("tr",{class:"bg-white odd:bg-gray-50",key:w.id??JSON.stringify(w)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(N,q)=>(e.openBlock(),e.createElementBlock("td",{key:N.name,class:e.normalizeClass(Wd(q,N))},[N.link?(e.openBlock(),e.createElementBlock("a",{key:0,href:N.link.replace("{{id}}",w.id),class:"font-medium cursor-pointer text-start text-wrap text-cyan-800 decoration-2 focus:outline-none focus:underline hover:text-cyan-700 hover:underline"},e.toDisplayString(eo(w,N)),9,Uc)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u(N)==="slot"&&N.slot?.content?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(gc)(N.slot.content)),{key:0,data:w,row:w,column:N,value:w?.[N.name]},null,8,["data","row","column","value"])):u(N)==="badge"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"items-center px-2 py-1 rounded-full text-xs font-semibold text-center justify-center flex",style:e.normalizeStyle(tp(w,N))},e.toDisplayString(Bn(w,N).text),5)):u(N)==="select"?(e.openBlock(),e.createElementBlock("span",qc,e.toDisplayString(Vs(w,N)),1)):(e.openBlock(),e.createElementBlock("span",Wc,e.toDisplayString(eo(w,N)),1))],64))],2))),128)),ie.value?(e.openBlock(),e.createElementBlock("td",Kc,[Kd(w)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"relative inline-flex","data-action-key":it(w),ref_for:!0,ref:N=>Yd(w,N)},[e.createElementVNode("button",{type:"button",class:"inline-flex size-7 items-center justify-center rounded-md border border-gray-200 text-gray-500 transition-colors hover:bg-gray-50 hover:text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500",onClick:e.withModifiers(N=>Jd(w),["stop"])},E[4]||(E[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"1"}),e.createElementVNode("circle",{cx:"12",cy:"5",r:"1"}),e.createElementVNode("circle",{cx:"12",cy:"19",r:"1"})],-1)]),8,Jc),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[Gd(w)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed z-50 w-40 overflow-hidden rounded-lg border border-gray-200 bg-white py-1 shadow-lg",style:e.normalizeStyle(Zd(w)),onClick:E[2]||(E[2]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,N=>(e.openBlock(),e.createElementBlock("button",{key:N.type,type:"button",class:e.normalizeClass(["flex w-full items-center gap-2 px-4 py-2 text-sm transition-colors",N.variant==="danger"?"text-red-600 hover:bg-red-50":"text-gray-700 hover:bg-gray-50"]),onClick:q=>N.handler?.(w)},[N.type==="view"?(e.openBlock(),e.createElementBlock("svg",Zc,E[5]||(E[5]=[e.createElementVNode("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"},null,-1),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"},null,-1)]))):N.type==="edit"?(e.openBlock(),e.createElementBlock("svg",Xc,E[6]||(E[6]=[e.createElementVNode("path",{d:"M18 2a2.828 2.828 0 1 1 4 4L7 21l-4 1 1-4Z"},null,-1)]))):N.type==="delete"?(e.openBlock(),e.createElementBlock("svg",Qc,E[7]||(E[7]=[e.createElementVNode("path",{d:"M3 6h18"},null,-1),e.createElementVNode("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"},null,-1),e.createElementVNode("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"},null,-1),e.createElementVNode("line",{x1:"10",x2:"10",y1:"11",y2:"17"},null,-1),e.createElementVNode("line",{x1:"14",x2:"14",y1:"11",y2:"17"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",Vc,E[8]||(E[8]=[e.createElementVNode("path",{d:"M12 8v8"},null,-1),e.createElementVNode("path",{d:"M8 12h8"},null,-1)]))),e.createTextVNode(" "+e.toDisplayString(N.label),1)],10,Yc))),128))],4)):e.createCommentVNode("",!0)]))],8,Gc)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),128)),be.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tr",ed,[e.createElementVNode("td",{colspan:I.value.length+(ie.value?1:0),class:"py-6 text-center text-gray-500"}," Немає записів для відображення ",8,td)]))])])]),e.createVNode(Nc,{"current-page":h.value,"total-pages":rt.value,label:Ce.value,onPrevious:Le,onNext:Be},null,8,["current-page","total-pages","label"])]))}}),nd={class:"p-[20px]"},sd={class:"flex gap-[6px] mb-5"},od={class:"vs-form-text relative bg-white rounded-lg flex-grow"},rd={class:"grid p-3 lg:gap-x-3 md:gap-x-6 md:p-5 grid-cols-6"},id={class:"mt-2 text-sm font-medium text-gray-800 dark:text-neutral-200"},ld={class:"space-y-8"},ad={key:0},cd={class:"grid p-3 bg-gray-100 rounded-lg md:gap-x-6 md:p-5 dark:bg-neutral-700 grid-cols-6"},dd=["onClick"],pd={class:"md:col-span-2"},fd={class:"text-sm font-medium text-gray-800 dark:text-neutral-200"},md={class:"text-sm text-gray-500 dark:text-neutral-500"},hd={class:"grid items-center grid-cols-2 md:block text-end md:text-center"},ud=["checked","onChange"],gd={class:"grid p-3 bg-gray-100 rounded-lg md:gap-x-6 md:p-5 dark:bg-neutral-700 grid-cols-6"},yd={class:"md:col-span-2"},vd={class:"font-semibold text-gray-800 dark:text-neutral-200"},bd=["onClick"],kd={class:"md:col-span-2"},Ed={class:"text-sm font-medium text-gray-800 dark:text-neutral-200"},Nd={class:"text-sm text-gray-500 dark:text-neutral-500"},xd={class:"grid items-center grid-cols-2 md:block text-end md:text-center"},wd=["checked","onChange"],At=e.defineComponent({__name:"GroupInterfaceWidget",props:{data:{},id:{}},setup(t){const n=t,s=e.ref(""),o=["view","add","edit","del"],r=e.ref({});e.onMounted(async()=>{const k=await(await fetch(`/api/access-group/${n.id}?tab=vs-group-interface`)).json();k.routes&&k.routes.forEach(y=>{r.value[y.path]=new Set(y.actions)})});const l=(v,k)=>r.value[v]?.has(k)??!1,i=(v,k)=>{r.value[v]||(r.value[v]=new Set),r.value[v].has(k)?r.value[v].delete(k):r.value[v].add(k)},a=(v,k)=>{v.forEach(y=>{y.path&&(r.value[y.path]||(r.value[y.path]=new Set),r.value[y.path].has(k)?r.value[y.path].delete(k):r.value[y.path].add(k))})},c=e.computed(()=>Object.entries(r.value).map(([v,k])=>({path:v,actions:Array.from(k)})).filter(v=>v.actions.length)),p=async()=>{await fetch(`/api/access-group/${n.id}?tab=vs-group-interface`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({routes:c.value})}),no.notify({title:"Success!",message:"Permissions saved."})},h=()=>{r.value={}},d=v=>{if(!s.value.trim())return v;const k=s.value.toLowerCase();return v.filter(y=>y.ua.toLowerCase().includes(k)||y.path&&y.path.toLowerCase().includes(k))},m=e.computed(()=>d(n.data.routers.filter(v=>!v.menu))),g=e.computed(()=>n.data.routers.filter(v=>v.menu).map(v=>({...v,menu:d(v.menu||[])})).filter(v=>v.menu&&v.menu.length>0));return(v,k)=>(e.openBlock(),e.createElementBlock("div",nd,[e.createElementVNode("div",sd,[e.createElementVNode("div",od,[k[1]||(k[1]=e.createElementVNode("i",{class:"absolute bottom-2/4 translate-y-2/4 text-gray-500 cursor-pointer ti"},null,-1)),e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"Пошук","onUpdate:modelValue":k[0]||(k[0]=y=>s.value=y),class:"bg-white h-[38px] text-sm py-2 px-3 block w-full border border-solid placeholder:text-nowrap border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"},null,512),[[e.vModelText,s.value]])]),e.createElementVNode("button",{onClick:h,class:"inline-flex items-center px-3 py-2 text-sm font-medium duration-300 bg-white border rounded-lg gap-x-2 hover:bg-gray-100"}," Скинути всі "),e.createElementVNode("button",{onClick:p,class:"inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"}," Зберегти ")]),e.createElementVNode("div",rd,[k[2]||(k[2]=e.createElementVNode("div",{class:"self-center col-span-2"},[e.createElementVNode("h2",{class:"font-semibold text-gray-800 dark:text-neutral-200"},"Групи")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(y,x)=>e.createElementVNode("div",{class:"col-span-1 text-center",key:x},[e.createElementVNode("h3",id,e.toDisplayString(y),1)])),64))]),e.createElementVNode("div",ld,[m.value.length?(e.openBlock(),e.createElementBlock("div",ad,[e.createElementVNode("ul",cd,[k[3]||(k[3]=e.createElementVNode("li",{class:"md:col-span-2"},[e.createElementVNode("h3",{class:"font-semibold text-gray-800 dark:text-neutral-200"},"Без категорії")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(y,x)=>e.createElementVNode("li",{key:x,class:"md:block md:col-span-1 md:text-center"},[e.createElementVNode("button",{type:"button",class:"text-xs font-medium text-blue-600 decoration-2 hover:underline",onClick:D=>a(m.value,o[x])}," Toggle all ",8,dd)])),64))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(y,x)=>(e.openBlock(),e.createElementBlock("ul",{key:"uncat-"+x,class:"grid md:items-center gap-1.5 md:gap-6 px-3 md:px-5 mt-3 grid-cols-6"},[e.createElementVNode("li",pd,[e.createElementVNode("p",fd,e.toDisplayString(y.ua),1),e.createElementVNode("p",md,e.toDisplayString(y.path),1)]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(D,C)=>e.createElementVNode("li",{key:C,class:"col-span-1"},[e.createElementVNode("div",hd,[e.createElementVNode("input",{type:"checkbox",checked:l(y.path,D),onChange:B=>i(y.path,D),class:"text-blue-600 border-gray-300 rounded shrink-0 focus:ring-blue-500"},null,40,ud)])])),64))]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(y,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"space-y-5"},[e.createElementVNode("ul",gd,[e.createElementVNode("li",yd,[e.createElementVNode("h3",vd,e.toDisplayString(y.ua),1)]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(D,C)=>e.createElementVNode("li",{key:C,class:"md:block md:col-span-1 md:text-center"},[e.createElementVNode("button",{type:"button",class:"text-xs font-medium text-blue-600 decoration-2 hover:underline",onClick:B=>a(y.menu,o[C])}," Toggle all ",8,bd)])),64))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.menu,(D,C)=>(e.openBlock(),e.createElementBlock("ul",{key:C,class:"grid md:items-center gap-1.5 md:gap-6 px-3 md:px-5 mt-3 grid-cols-6"},[e.createElementVNode("li",kd,[e.createElementVNode("p",Ed,e.toDisplayString(D.ua),1),e.createElementVNode("p",Nd,e.toDisplayString(D.path),1)]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(B,_)=>e.createElementVNode("li",{key:_,class:"col-span-1"},[e.createElementVNode("div",xd,[e.createElementVNode("input",{type:"checkbox",checked:l(D.path,B),onChange:O=>i(D.path,B),class:"text-blue-600 border-gray-300 rounded shrink-0 focus:ring-blue-500"},null,40,wd)])])),64))]))),128))]))),128))])]))}}),Ys={"vs-widget-map":mt,"vs-widget-comments":ct,"vs-widget-history":dt,"vs-widget-gallery":ft,"vs-widget-file":pt,"vs-widget-list":Ft,"vs-widget-table":Js,"vs-group-interface":At},_d={class:"text-lg font-semibold text-gray-900"},Sd=["innerHTML"],Cd={key:0,class:"mb-4 pb-2 border-b border-gray-200"},Bd={class:"text-lg font-semibold text-gray-900"},Td=["innerHTML"],Cn=e.defineComponent({__name:"CardItem",props:{items:{},type:{},col:{},data:{},html:{},title:{},styling:{},name:{},label:{},component:{},slot:{},id:{},className:{},style:{}},setup(t){const n=t,s=e.computed(()=>n.col?{[`lg:col-span-${n.col}`]:!0}:{});function o(i){return Ys[i]||i}const r=function(i={}){return i.props&&Object.entries(i.props).forEach(([a,c])=>{i[a]=n.data[c]}),i},l=e.computed(()=>{const i={};return n.col&&(i.col=n.col),i});return(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([[s.value,i.styling?.classItem],"w-full bg-gray-50 rounded-lg p-4 col-span-12"])},[i.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mb-4 pb-2 border-b border-gray-200",i.styling?.classItemTitle])},[e.createElementVNode("h3",_d,e.toDisplayString(i.title),1)],2)):e.createCommentVNode("",!0),i.html?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:i.html,class:"text-gray-900 leading-relaxed"},null,8,Sd)):i.type?.includes("tabs")?(e.openBlock(),e.createBlock(ot,{key:2,view:i.type,panels:i.items,data:i.data,styling:i.styling},null,8,["view","panels","data","styling"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(i.items,c=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.title||c.label?(e.openBlock(),e.createElementBlock("div",Cd,[e.createElementVNode("h3",Bd,e.toDisplayString(c.title||c.label),1)])):e.createCommentVNode("",!0),c.html?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:c.html,class:"text-gray-900 leading-relaxed"},null,8,Td)):c.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(c.component)),e.mergeProps({key:2,ref_for:!0},{geom:i.data.geom,id:i.data.id,...l.value,...r(c),data:i.data},{class:"w-full"}),null,16)):e.renderSlot(i.$slots,"default",{key:3})],64))),256))],2))}}),$d={class:"grid grid-cols-12 gap-[20px]"},Dd={key:0,class:"col-span-4"},Id=["innerHTML"],Od=["onClick"],Ad=["innerHTML"],Md={key:1,class:"flex w-full"},Ld={class:"flex flex-col w-56 border-r border-gray-200 bg-gray-50 relative"},Rd=["onClick"],Pd={key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 transition-all duration-300"},Fd={class:"flex-1 p-4"},zd=["innerHTML"],jd={class:"grid grid-cols-12 gap-4"},ot=e.defineComponent({__name:"Card",props:{panels:{default:()=>[]},data:{default:()=>({})},view:{default:"plain"},styling:{},classWrapper:{default:""},classPanel:{},normalizeTabs:{type:Boolean,default:!0},backgroundClass:{},tabContentWrapperClass:{},tabPanelClass:{},id:{},className:{},style:{}},setup(t){const n=t;function s(){const f=typeof window<"u"?window:globalThis,S="__vsCardAnonymousCounter__",u=f[S]??0;return f[S]=u+1,u===0?"tab":`tab${u}`}const o=e.ref(0),r=e.ref([]);let l=!1;const i=e.ref(n.id??s());e.watch(()=>n.id,f=>{f&&(i.value=f)});function a(f){return Ys[f]||f}function c(f){return f.forEach(S=>{S.type&&(S.view=S.type)}),r.value=f.filter(S=>S.type==="pin"),f.filter(S=>S.type!=="pin")}const p=e.computed(()=>n.panels&&n.panels.length>0?n.normalizeTabs?c(n.panels):n.panels:n.data&&Array.isArray(n.data)?n.data.filter(S=>S.type.includes("tabs"))[0]?.items||[]:[]),h=e.computed(()=>i.value),d=e.computed(()=>n.panels&&n.panels.length>0?n.normalizeTabs?c(n.panels):n.panels:n.data&&Array.isArray(n.data)?n.data:[]),m=e.computed(()=>({[`view-${n.view}`]:!0})),g=f=>{const S={...f};return n.data&&(S.data=n.data),S},v=e.ref([]),k=e.ref([]),y=e.ref([]);function x(f,S){f&&f instanceof HTMLElement&&(v.value[S]=f)}function D(){k.value=v.value.map(f=>f.offsetWidth),y.value=v.value.map(f=>f.offsetLeft)}function C(){if(typeof window>"u")return null;const f=h.value;if(!f)return null;const u=new URL(window.location.href).searchParams.get(f);if(u===null)return null;const T=Number.parseInt(u,10);return Number.isNaN(T)?null:T}function B(f){if(typeof window>"u")return;const S=h.value;if(!S)return;const u=new URL(window.location.href);f<=0?u.searchParams.delete(S):u.searchParams.set(S,String(f));const T=window.history.state??{};window.history.replaceState(T,document.title,u)}function _(){if(l)return;const f=C();if(f===null||!p.value.length)return;const S=Math.min(Math.max(f,0),p.value.length-1);S!==f&&B(S),S!==o.value&&(o.value=S),l=!0}function O(){l=!1,_()}let $=null;return e.onMounted(()=>{e.nextTick(()=>{_(),D()}),typeof window<"u"&&window.addEventListener("popstate",O),$=new ResizeObserver(()=>D()),$.observe(document.body)}),e.onBeforeUnmount(()=>{$?.disconnect(),typeof window<"u"&&window.removeEventListener("popstate",O)}),e.watch(o,f=>{e.nextTick(()=>{D()}),B(f)}),e.watch(p,()=>{l=!1,_()}),(f,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.classWrapper||m.value)},[e.createElementVNode("div",$d,[r.value.length!==0?(e.openBlock(),e.createElementBlock("div",Dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value[0].items,(u,T)=>(e.openBlock(),e.createElementBlock("div",{key:u.name||T,class:"w-full bg-gray-50 rounded-lg p-4 col-span-12 m-1 mb-3"},[u.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:u.html,class:"text-gray-900 leading-relaxed"},null,8,Id)):u.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(u.component)),e.mergeProps({key:1,ref_for:!0},u.component==="Card"?u:g(u),{id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["id","class"])):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.value.length!==0?"col-span-8":"col-span-12")},[f.view==="tabs"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["overflow-hidden w-full",f.styling?.classTabWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["flex border-b border-gray-200 bg-gray-50 relative gap-4 my-6",f.styling?.classTabHeader])},[k.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute bottom-0 h-[2px] bg-blue-600 transition-all duration-300",style:e.normalizeStyle({width:k.value[o.value]+"px",left:y.value[o.value]+"px"})},null,4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(u,T)=>(e.openBlock(),e.createElementBlock("button",{key:u.name||T,ref_for:!0,ref:I=>x(I,T),onClick:I=>o.value=T,class:e.normalizeClass(["px-1 py-2 text-sm font-medium transition-colors",o.value===T?"text-blue-600 border-blue-600 border-b-2 ":"text-gray-600 hover:text-gray-800"])},e.toDisplayString(u.title||u.label||u.name||`Tab ${T+1}`),11,Od))),128))],2),e.createElementVNode("div",{class:e.normalizeClass([f.styling?.classTabContent,"p-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(u,T)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:u.name||T,class:e.normalizeClass(["transition-all duration-300 ease-in-out",o.value===T?"opacity-100 translate-y-0":"opacity-0 -translate-y-2",f.classPanel||"w-full border-gray-100"])},[u.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:u.html,class:"text-gray-900 leading-relaxed"},null,8,Ad)):f.$slots[`tab-${T}`]?e.renderSlot(f.$slots,`tab-${T}`,{key:1,item:u,data:f.data}):u.component||u.name?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(u.component||u.name)),e.mergeProps({key:2,ref_for:!0},u.component==="Card"?u:g(u),{styling:f.styling,id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["styling","id","class"])):e.renderSlot(f.$slots,u.slot||`tab-${T}`,{key:3,item:u,data:f.data})],2)),[[e.vShow,o.value===T]])),128))],2)],2)):f.view==="vertical-tabs"?(e.openBlock(),e.createElementBlock("div",Md,[e.createElementVNode("div",Ld,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(u,T)=>(e.openBlock(),e.createElementBlock("button",{key:u.name||T,onClick:I=>o.value=T,class:e.normalizeClass(["relative px-1 py-4 text-sm font-medium text-left transition-colors duration-300",o.value===T?"text-blue-600 bg-white":"text-gray-600 hover:text-gray-800 hover:bg-gray-100"])},[e.createTextVNode(e.toDisplayString(u.title||u.label||u.name||`Tab ${T+1}`)+" ",1),o.value===T?(e.openBlock(),e.createElementBlock("span",Pd,S[0]||(S[0]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"remixicon text-blue-600 rounded-full bg-white shadow scale-90 opacity-100 transition ease-out"},[e.createElementVNode("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})],-1)]))):e.createCommentVNode("",!0)],10,Rd))),128))]),e.createElementVNode("div",Fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(u,T)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:u.name||T,class:e.normalizeClass(["transition-all duration-300 ease-in-out",o.value===T?"opacity-100 translate-y-0":"opacity-0 -translate-y-2",f.classPanel||"w-full border-gray-100 py-2"])},[u.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:u.html,class:"text-gray-900 leading-relaxed"},null,8,zd)):f.$slots[`tab-${T}`]?e.renderSlot(f.$slots,`tab-${T}`,{key:1,item:u,data:f.data}):u.component||u.name?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(u.component||u.name)),e.mergeProps({key:2,ref_for:!0},u.component==="Card"?u:g(u),{id:f.data.id,class:["w-full h-full",f.styling?.classItem]}),null,16,["id","class"])):e.renderSlot(f.$slots,u.slot||`tab-${T}`,{key:3,item:u,data:f.data})],2)),[[e.vShow,o.value===T]])),128))])])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(f.styling?.classPlain||"p-1 w-full")},[e.createElementVNode("div",jd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(u,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u.name||T},[f.$slots[`panel-${T}`]?e.renderSlot(f.$slots,`panel-${T}`,{key:0,item:u,data:f.data}):u.items||u.html?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Cn),e.mergeProps({key:1,ref_for:!0},g(u),{items:u.items,class:["w-full h-full",f.styling?.classItem],styling:f.styling}),null,16,["items","class","styling"])):u.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(u.component)),e.mergeProps({key:2,ref_for:!0},g(u),{class:["w-full h-full",[f.styling?.classItem]],styling:f.styling}),null,16,["class","styling"])):e.renderSlot(f.$slots,u.slot||`panel-${T}`,{key:3,item:u,data:f.data})],64))),128))])],2))],2)])],2))}}),Hd=["onClick"],Zs=Te(e.defineComponent({__name:"CopyNotification",setup(t,{expose:n}){const s=e.ref([]);let o=1;const r=()=>{if(s.value.length>=10){const a=s.value[0];clearTimeout(a.timer),s.value.shift()}const i={id:o++,timer:setTimeout(()=>{l(i.id)},1500)};s.value.push(i)},l=i=>{const a=s.value.findIndex(c=>c.id===i);if(a!==-1){const c=s.value[a];clearTimeout(c.timer),s.value.splice(a,1)}};return n({addNotification:r}),e.onUnmounted(()=>{s.value.forEach(i=>{clearTimeout(i.timer)})}),(i,a)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.TransitionGroup,{name:"notification",tag:"div",class:"fixed top-4 right-4 z-50 space-y-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id,class:"bg-green-500 text-white px-4 py-3 rounded-lg shadow-lg flex items-center gap-3 min-w-64 max-w-sm"},[e.createVNode(e.unref(fo),{class:"h-5 w-5 text-green-100 flex-shrink-0"}),a[0]||(a[0]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("p",{class:"font-medium text-sm"},"Ссылка скопирована!"),e.createElementVNode("p",{class:"text-xs text-green-100 opacity-90"},"Файл добавлен в буфер обмена")],-1)),e.createElementVNode("button",{onClick:p=>l(c.id),class:"text-green-100 hover:text-white transition-colors flex-shrink-0"},[e.createVNode(e.unref(Rt),{class:"h-4 w-4"})],8,Hd)]))),128))]),_:1})]))}}),[["__scopeId","data-v-55903525"]]);ot.install=function(t){t.component("vs-widget-file",pt),t.component("vs-widget-comments",ct),t.component("vs-widget-history",dt),t.component("vs-widget-gallery",ft),t.component("vs-widget-map",mt),t.component("vs-group-interface",At),t.component("CommentsWidget",ct),t.component("HistoryWidget",dt),t.component("GalleryWidget",ft),t.component("FilesWidget",pt),t.component("MapWidget",mt),t.component("Card",ot),t.component("CardItem",Cn),t.component("DescriptionListWidget",Ft),t.component("CopyNotification",Zs),t.component("GroupInterfaceWidget",At)},Y.Card=ot,Y.CardItem=Cn,Y.CommentsWidget=ct,Y.CopyNotification=Zs,Y.DescriptionListWidget=Ft,Y.FilesWidget=pt,Y.GalleryWidget=ft,Y.GroupInterfaceWidget=At,Y.HistoryWidget=dt,Y.MapWidget=mt,Y.TableWidget=Js,Y.default=ot,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});