import{d as I,r as b,m as ye,q as _,n as w,p as N,D as S,aJ as ie,a_ as zt,fc as te,aK as Et,i as Q,a as C,z as Ne,aQ as _t,b4 as Oe,aj as se,A as be,db as Ee,fd as Mt,y as $,b0 as At,cO as Ot,s as kt,v as Je,fe as It,d7 as _e,ab as Ve,H as je,ac as Ue,ar as Nt,M as Rt,I as Pt,ff as Ht,a7 as Lt,af as X,o as R,b as ae,f as k,h as v,w as D,ax as et,ah as Re,X as ce,Y as de,fg as Ce,u as ue,fh as he,k as Pe,c as F,fi as Se,b6 as Z,fj as Wt,$ as qe,_ as Tt,eV as Ft,fk as Kt,fl as Xe,e as oe,aw as ne,a2 as tt,t as Bt,ak as $t,fm as Dt,a8 as Vt,fn as jt,fo as He,fp as Ut,a4 as ge,fq as qt,fr as Le}from"./index-U-PhABqT.js";import{a as Xt,d as Me}from"./throttle-C2UVod2N.js";const Yt=I({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Gt=ye("n-layout-sider"),ve=ye("n-menu"),ot=ye("n-submenu"),We=ye("n-menu-item-group"),Ye=[_("&::before","background-color: var(--n-item-color-hover);"),S("arrow",`
 color: var(--n-arrow-color-hover);
 `),S("icon",`
 color: var(--n-item-icon-color-hover);
 `),w("menu-item-content-header",`
 color: var(--n-item-text-color-hover);
 `,[_("a",`
 color: var(--n-item-text-color-hover);
 `),S("extra",`
 color: var(--n-item-text-color-hover);
 `)])],Ge=[S("icon",`
 color: var(--n-item-icon-color-hover-horizontal);
 `),w("menu-item-content-header",`
 color: var(--n-item-text-color-hover-horizontal);
 `,[_("a",`
 color: var(--n-item-text-color-hover-horizontal);
 `),S("extra",`
 color: var(--n-item-text-color-hover-horizontal);
 `)])],Qt=_([w("menu",`
 background-color: var(--n-color);
 color: var(--n-item-text-color);
 overflow: hidden;
 transition: background-color .3s var(--n-bezier);
 box-sizing: border-box;
 font-size: var(--n-font-size);
 padding-bottom: 6px;
 `,[N("horizontal",`
 max-width: 100%;
 width: 100%;
 display: flex;
 overflow: hidden;
 padding-bottom: 0;
 `,[w("submenu","margin: 0;"),w("menu-item","margin: 0;"),w("menu-item-content",`
 padding: 0 20px;
 border-bottom: 2px solid #0000;
 `,[_("&::before","display: none;"),N("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),w("menu-item-content",[N("selected",[S("icon","color: var(--n-item-icon-color-active-horizontal);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-active-horizontal);
 `,[_("a","color: var(--n-item-text-color-active-horizontal);"),S("extra","color: var(--n-item-text-color-active-horizontal);")])]),N("child-active",`
 border-bottom: 2px solid var(--n-border-color-horizontal);
 `,[w("menu-item-content-header",`
 color: var(--n-item-text-color-child-active-horizontal);
 `,[_("a",`
 color: var(--n-item-text-color-child-active-horizontal);
 `),S("extra",`
 color: var(--n-item-text-color-child-active-horizontal);
 `)]),S("icon",`
 color: var(--n-item-icon-color-child-active-horizontal);
 `)]),ie("disabled",[ie("selected, child-active",[_("&:focus-within",Ge)]),N("selected",[Y(null,[S("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-active-hover-horizontal);
 `,[_("a","color: var(--n-item-text-color-active-hover-horizontal);"),S("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),N("child-active",[Y(null,[S("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-child-active-hover-horizontal);
 `,[_("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),S("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Y("border-bottom: 2px solid var(--n-border-color-horizontal);",Ge)]),w("menu-item-content-header",[_("a","color: var(--n-item-text-color-horizontal);")])])]),ie("responsive",[w("menu-item-content-header",`
 overflow: hidden;
 text-overflow: ellipsis;
 `)]),N("collapsed",[w("menu-item-content",[N("selected",[_("&::before",`
 background-color: var(--n-item-color-active-collapsed) !important;
 `)]),w("menu-item-content-header","opacity: 0;"),S("arrow","opacity: 0;"),S("icon","color: var(--n-item-icon-color-collapsed);")])]),w("menu-item",`
 height: var(--n-item-height);
 margin-top: 6px;
 position: relative;
 `),w("menu-item-content",`
 box-sizing: border-box;
 line-height: 1.75;
 height: 100%;
 display: grid;
 grid-template-areas: "icon content arrow";
 grid-template-columns: auto 1fr auto;
 align-items: center;
 cursor: pointer;
 position: relative;
 padding-right: 18px;
 transition:
 background-color .3s var(--n-bezier),
 padding-left .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `,[_("> *","z-index: 1;"),_("&::before",`
 z-index: auto;
 content: "";
 background-color: #0000;
 position: absolute;
 left: 8px;
 right: 8px;
 top: 0;
 bottom: 0;
 pointer-events: none;
 border-radius: var(--n-border-radius);
 transition: background-color .3s var(--n-bezier);
 `),N("disabled",`
 opacity: .45;
 cursor: not-allowed;
 `),N("collapsed",[S("arrow","transform: rotate(0);")]),N("selected",[_("&::before","background-color: var(--n-item-color-active);"),S("arrow","color: var(--n-arrow-color-active);"),S("icon","color: var(--n-item-icon-color-active);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-active);
 `,[_("a","color: var(--n-item-text-color-active);"),S("extra","color: var(--n-item-text-color-active);")])]),N("child-active",[w("menu-item-content-header",`
 color: var(--n-item-text-color-child-active);
 `,[_("a",`
 color: var(--n-item-text-color-child-active);
 `),S("extra",`
 color: var(--n-item-text-color-child-active);
 `)]),S("arrow",`
 color: var(--n-arrow-color-child-active);
 `),S("icon",`
 color: var(--n-item-icon-color-child-active);
 `)]),ie("disabled",[ie("selected, child-active",[_("&:focus-within",Ye)]),N("selected",[Y(null,[S("arrow","color: var(--n-arrow-color-active-hover);"),S("icon","color: var(--n-item-icon-color-active-hover);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-active-hover);
 `,[_("a","color: var(--n-item-text-color-active-hover);"),S("extra","color: var(--n-item-text-color-active-hover);")])])]),N("child-active",[Y(null,[S("arrow","color: var(--n-arrow-color-child-active-hover);"),S("icon","color: var(--n-item-icon-color-child-active-hover);"),w("menu-item-content-header",`
 color: var(--n-item-text-color-child-active-hover);
 `,[_("a","color: var(--n-item-text-color-child-active-hover);"),S("extra","color: var(--n-item-text-color-child-active-hover);")])])]),N("selected",[Y(null,[_("&::before","background-color: var(--n-item-color-active-hover);")])]),Y(null,Ye)]),S("icon",`
 grid-area: icon;
 color: var(--n-item-icon-color);
 transition:
 color .3s var(--n-bezier),
 font-size .3s var(--n-bezier),
 margin-right .3s var(--n-bezier);
 box-sizing: content-box;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 `),S("arrow",`
 grid-area: arrow;
 font-size: 16px;
 color: var(--n-arrow-color);
 transform: rotate(180deg);
 opacity: 1;
 transition:
 color .3s var(--n-bezier),
 transform 0.2s var(--n-bezier),
 opacity 0.2s var(--n-bezier);
 `),w("menu-item-content-header",`
 grid-area: content;
 transition:
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 opacity: 1;
 white-space: nowrap;
 color: var(--n-item-text-color);
 `,[_("a",`
 outline: none;
 text-decoration: none;
 transition: color .3s var(--n-bezier);
 color: var(--n-item-text-color);
 `,[_("&::before",`
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)]),S("extra",`
 font-size: .93em;
 color: var(--n-group-text-color);
 transition: color .3s var(--n-bezier);
 `)])]),w("submenu",`
 cursor: pointer;
 position: relative;
 margin-top: 6px;
 `,[w("menu-item-content",`
 height: var(--n-item-height);
 `),w("submenu-children",`
 overflow: hidden;
 padding: 0;
 `,[zt({duration:".2s"})])]),w("menu-item-group",[w("menu-item-group-title",`
 margin-top: 6px;
 color: var(--n-group-text-color);
 cursor: default;
 font-size: .93em;
 height: 36px;
 display: flex;
 align-items: center;
 transition:
 padding-left .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)])]),w("menu-tooltip",[_("a",`
 color: inherit;
 text-decoration: none;
 `)]),w("menu-divider",`
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-divider-color);
 height: 1px;
 margin: 6px 18px;
 `)]);function Y(t,i){return[N("hover",t,i),_("&:hover",t,i)]}const it=I({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(t){const{props:i}=Q(ve);return{menuProps:i,style:C(()=>{const{paddingLeft:o}=t;return{paddingLeft:o&&`${o}px`}}),iconStyle:C(()=>{const{maxIconSize:o,activeIconSize:e,iconMarginRight:r}=t;return{width:`${o}px`,height:`${o}px`,fontSize:`${e}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:t,tmNode:i,menuProps:{renderIcon:o,renderLabel:e,renderExtra:r,expandIcon:n}}=this,s=o?o(i.rawNode):te(this.icon);return b("div",{onClick:c=>{var u;(u=this.onClick)===null||u===void 0||u.call(this,c)},role:"none",class:[`${t}-menu-item-content`,{[`${t}-menu-item-content--selected`]:this.selected,[`${t}-menu-item-content--collapsed`]:this.collapsed,[`${t}-menu-item-content--child-active`]:this.childActive,[`${t}-menu-item-content--disabled`]:this.disabled,[`${t}-menu-item-content--hover`]:this.hover}],style:this.style},s&&b("div",{class:`${t}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),b("div",{class:`${t}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:e?e(i.rawNode):te(this.title),this.extra||r?b("span",{class:`${t}-menu-item-content-header__extra`}," ",r?r(i.rawNode):te(this.extra)):null),this.showArrow?b(Et,{ariaHidden:!0,class:`${t}-menu-item-content__arrow`,clsPrefix:t},{default:()=>n?n(i.rawNode):b(Yt,null)}):null)}}),xe=8;function Te(t){const i=Q(ve),{props:o,mergedCollapsedRef:e}=i,r=Q(ot,null),n=Q(We,null),s=C(()=>o.mode==="horizontal"),c=C(()=>s.value?o.dropdownPlacement:"tmNodes"in t?"right-start":"right"),u=C(()=>{var h;return Math.max((h=o.collapsedIconSize)!==null&&h!==void 0?h:o.iconSize,o.iconSize)}),d=C(()=>{var h;return!s.value&&t.root&&e.value&&(h=o.collapsedIconSize)!==null&&h!==void 0?h:o.iconSize}),x=C(()=>{if(s.value)return;const{collapsedWidth:h,indent:f,rootIndent:E}=o,{root:z,isGroup:A}=t,O=E===void 0?f:E;return z?e.value?h/2-u.value/2:O:n&&typeof n.paddingLeftRef.value=="number"?f/2+n.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(A?f/2:f)+r.paddingLeftRef.value:0}),p=C(()=>{const{collapsedWidth:h,indent:f,rootIndent:E}=o,{value:z}=u,{root:A}=t;return s.value||!A||!e.value?xe:(E===void 0?f:E)+z+xe-(h+z)/2});return{dropdownPlacement:c,activeIconSize:d,maxIconSize:u,paddingLeft:x,iconMarginRight:p,NMenu:i,NSubmenu:r,NMenuOptionGroup:n}}const Fe={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Zt=I({name:"MenuDivider",setup(){const t=Q(ve),{mergedClsPrefixRef:i,isHorizontalRef:o}=t;return()=>o.value?null:b("div",{class:`${i.value}-menu-divider`})}}),rt=Object.assign(Object.assign({},Fe),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Jt=Ne(rt),eo=I({name:"MenuOption",props:rt,setup(t){const i=Te(t),{NSubmenu:o,NMenu:e,NMenuOptionGroup:r}=i,{props:n,mergedClsPrefixRef:s,mergedCollapsedRef:c}=e,u=o?o.mergedDisabledRef:r?r.mergedDisabledRef:{value:!1},d=C(()=>u.value||t.disabled);function x(h){const{onClick:f}=t;f&&f(h)}function p(h){d.value||(e.doSelect(t.internalKey,t.tmNode.rawNode),x(h))}return{mergedClsPrefix:s,dropdownPlacement:i.dropdownPlacement,paddingLeft:i.paddingLeft,iconMarginRight:i.iconMarginRight,maxIconSize:i.maxIconSize,activeIconSize:i.activeIconSize,mergedTheme:e.mergedThemeRef,menuProps:n,dropdownEnabled:Oe(()=>t.root&&c.value&&n.mode!=="horizontal"&&!d.value),selected:Oe(()=>e.mergedValueRef.value===t.internalKey),mergedDisabled:d,handleClick:p}},render(){const{mergedClsPrefix:t,mergedTheme:i,tmNode:o,menuProps:{renderLabel:e,nodeProps:r}}=this,n=r?.(o.rawNode);return b("div",Object.assign({},n,{role:"menuitem",class:[`${t}-menu-item`,n?.class]}),b(_t,{theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>e?e(o.rawNode):te(this.title),trigger:()=>b(it,{tmNode:o,clsPrefix:t,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),nt=Object.assign(Object.assign({},Fe),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),to=Ne(nt),oo=I({name:"MenuOptionGroup",props:nt,setup(t){const i=Te(t),{NSubmenu:o}=i,e=C(()=>o?.mergedDisabledRef.value?!0:t.tmNode.disabled);be(We,{paddingLeftRef:i.paddingLeft,mergedDisabledRef:e});const{mergedClsPrefixRef:r,props:n}=Q(ve);return function(){const{value:s}=r,c=i.paddingLeft.value,{nodeProps:u}=n,d=u?.(t.tmNode.rawNode);return b("div",{class:`${s}-menu-item-group`,role:"group"},b("div",Object.assign({},d,{class:[`${s}-menu-item-group-title`,d?.class],style:[d?.style||"",c!==void 0?`padding-left: ${c}px;`:""]}),te(t.title),t.extra?b(se,null," ",te(t.extra)):null),b("div",null,t.tmNodes.map(x=>Ke(x,n))))}}});function ke(t){return t.type==="divider"||t.type==="render"}function io(t){return t.type==="divider"}function Ke(t,i){const{rawNode:o}=t,{show:e}=o;if(e===!1)return null;if(ke(o))return io(o)?b(Zt,Object.assign({key:t.key},o.props)):null;const{labelField:r}=i,{key:n,level:s,isGroup:c}=t,u=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:n,internalKey:n,level:s,root:s===0,isGroup:c});return t.children?t.isGroup?b(oo,Ee(u,to,{tmNode:t,tmNodes:t.children,key:n})):b(Ie,Ee(u,ro,{key:n,rawNodes:o[i.childrenField],tmNodes:t.children,tmNode:t})):b(eo,Ee(u,Jt,{key:n,tmNode:t}))}const lt=Object.assign(Object.assign({},Fe),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),ro=Ne(lt),Ie=I({name:"Submenu",props:lt,setup(t){const i=Te(t),{NMenu:o,NSubmenu:e}=i,{props:r,mergedCollapsedRef:n,mergedThemeRef:s}=o,c=C(()=>{const{disabled:h}=t;return e?.mergedDisabledRef.value||r.disabled?!0:h}),u=$(!1);be(ot,{paddingLeftRef:i.paddingLeft,mergedDisabledRef:c}),be(We,null);function d(){const{onClick:h}=t;h&&h()}function x(){c.value||(n.value||o.toggleExpand(t.internalKey),d())}function p(h){u.value=h}return{menuProps:r,mergedTheme:s,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:i.maxIconSize,activeIconSize:i.activeIconSize,iconMarginRight:i.iconMarginRight,dropdownPlacement:i.dropdownPlacement,dropdownShow:u,paddingLeft:i.paddingLeft,mergedDisabled:c,mergedValue:o.mergedValueRef,childActive:Oe(()=>{var h;return(h=t.virtualChildActive)!==null&&h!==void 0?h:o.activePathRef.value.includes(t.internalKey)}),collapsed:C(()=>r.mode==="horizontal"?!1:n.value?!0:!o.mergedExpandedKeysRef.value.includes(t.internalKey)),dropdownEnabled:C(()=>!c.value&&(r.mode==="horizontal"||n.value)),handlePopoverShowChange:p,handleClick:x}},render(){var t;const{mergedClsPrefix:i,menuProps:{renderIcon:o,renderLabel:e}}=this,r=()=>{const{isHorizontal:s,paddingLeft:c,collapsed:u,mergedDisabled:d,maxIconSize:x,activeIconSize:p,title:h,childActive:f,icon:E,handleClick:z,menuProps:{nodeProps:A},dropdownShow:O,iconMarginRight:L,tmNode:W,mergedClsPrefix:V,isEllipsisPlaceholder:K,extra:T}=this,P=A?.(W.rawNode);return b("div",Object.assign({},P,{class:[`${V}-menu-item`,P?.class],role:"menuitem"}),b(it,{tmNode:W,paddingLeft:c,collapsed:u,disabled:d,iconMarginRight:L,maxIconSize:x,activeIconSize:p,title:h,extra:T,showArrow:!s,childActive:f,clsPrefix:V,icon:E,hover:O,onClick:z,isEllipsisPlaceholder:K}))},n=()=>b(At,null,{default:()=>{const{tmNodes:s,collapsed:c}=this;return c?null:b("div",{class:`${i}-submenu-children`,role:"menu"},s.map(u=>Ke(u,this.menuProps)))}});return this.root?b(Mt,Object.assign({size:"large",trigger:"hover"},(t=this.menuProps)===null||t===void 0?void 0:t.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:e}),{default:()=>b("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:n())}):b("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),n())}}),no=Object.assign(Object.assign({},Je.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),me=I({name:"Menu",inheritAttrs:!1,props:no,setup(t){const{mergedClsPrefixRef:i,inlineThemeDisabled:o}=kt(t),e=Je("Menu","-menu",Qt,It,t,i),r=Q(Gt,null),n=C(()=>{var m;const{collapsed:y}=t;if(y!==void 0)return y;if(r){const{collapseModeRef:l,collapsedRef:g}=r;if(l.value==="width")return(m=g.value)!==null&&m!==void 0?m:!1}return!1}),s=C(()=>{const{keyField:m,childrenField:y,disabledField:l}=t;return _e(t.items||t.options,{getIgnored(g){return ke(g)},getChildren(g){return g[y]},getDisabled(g){return g[l]},getKey(g){var M;return(M=g[m])!==null&&M!==void 0?M:g.name}})}),c=C(()=>new Set(s.value.treeNodes.map(m=>m.key))),{watchProps:u}=t,d=$(null);u?.includes("defaultValue")?Ve(()=>{d.value=t.defaultValue}):d.value=t.defaultValue;const x=je(t,"value"),p=Ue(x,d),h=$([]),f=()=>{h.value=t.defaultExpandAll?s.value.getNonLeafKeys():t.defaultExpandedNames||t.defaultExpandedKeys||s.value.getPath(p.value,{includeSelf:!1}).keyPath};u?.includes("defaultExpandedKeys")?Ve(f):f();const E=Nt(t,["expandedNames","expandedKeys"]),z=Ue(E,h),A=C(()=>s.value.treeNodes),O=C(()=>s.value.getPath(p.value).keyPath);be(ve,{props:t,mergedCollapsedRef:n,mergedThemeRef:e,mergedValueRef:p,mergedExpandedKeysRef:z,activePathRef:O,mergedClsPrefixRef:i,isHorizontalRef:C(()=>t.mode==="horizontal"),invertedRef:je(t,"inverted"),doSelect:L,toggleExpand:V});function L(m,y){const{"onUpdate:value":l,onUpdateValue:g,onSelect:M}=t;g&&X(g,m,y),l&&X(l,m,y),M&&X(M,m,y),d.value=m}function W(m){const{"onUpdate:expandedKeys":y,onUpdateExpandedKeys:l,onExpandedNamesChange:g,onOpenNamesChange:M}=t;y&&X(y,m),l&&X(l,m),g&&X(g,m),M&&X(M,m),h.value=m}function V(m){const y=Array.from(z.value),l=y.findIndex(g=>g===m);if(~l)y.splice(l,1);else{if(t.accordion&&c.value.has(m)){const g=y.findIndex(M=>c.value.has(M));g>-1&&y.splice(g,1)}y.push(m)}W(y)}const K=m=>{const y=s.value.getPath(m??p.value,{includeSelf:!1}).keyPath;if(!y.length)return;const l=Array.from(z.value),g=new Set([...l,...y]);t.accordion&&c.value.forEach(M=>{g.has(M)&&!y.includes(M)&&g.delete(M)}),W(Array.from(g))},T=C(()=>{const{inverted:m}=t,{common:{cubicBezierEaseInOut:y},self:l}=e.value,{borderRadius:g,borderColorHorizontal:M,fontSize:Ct,itemHeight:St,dividerColor:wt}=l,a={"--n-divider-color":wt,"--n-bezier":y,"--n-font-size":Ct,"--n-border-color-horizontal":M,"--n-border-radius":g,"--n-item-height":St};return m?(a["--n-group-text-color"]=l.groupTextColorInverted,a["--n-color"]=l.colorInverted,a["--n-item-text-color"]=l.itemTextColorInverted,a["--n-item-text-color-hover"]=l.itemTextColorHoverInverted,a["--n-item-text-color-active"]=l.itemTextColorActiveInverted,a["--n-item-text-color-child-active"]=l.itemTextColorChildActiveInverted,a["--n-item-text-color-child-active-hover"]=l.itemTextColorChildActiveInverted,a["--n-item-text-color-active-hover"]=l.itemTextColorActiveHoverInverted,a["--n-item-icon-color"]=l.itemIconColorInverted,a["--n-item-icon-color-hover"]=l.itemIconColorHoverInverted,a["--n-item-icon-color-active"]=l.itemIconColorActiveInverted,a["--n-item-icon-color-active-hover"]=l.itemIconColorActiveHoverInverted,a["--n-item-icon-color-child-active"]=l.itemIconColorChildActiveInverted,a["--n-item-icon-color-child-active-hover"]=l.itemIconColorChildActiveHoverInverted,a["--n-item-icon-color-collapsed"]=l.itemIconColorCollapsedInverted,a["--n-item-text-color-horizontal"]=l.itemTextColorHorizontalInverted,a["--n-item-text-color-hover-horizontal"]=l.itemTextColorHoverHorizontalInverted,a["--n-item-text-color-active-horizontal"]=l.itemTextColorActiveHorizontalInverted,a["--n-item-text-color-child-active-horizontal"]=l.itemTextColorChildActiveHorizontalInverted,a["--n-item-text-color-child-active-hover-horizontal"]=l.itemTextColorChildActiveHoverHorizontalInverted,a["--n-item-text-color-active-hover-horizontal"]=l.itemTextColorActiveHoverHorizontalInverted,a["--n-item-icon-color-horizontal"]=l.itemIconColorHorizontalInverted,a["--n-item-icon-color-hover-horizontal"]=l.itemIconColorHoverHorizontalInverted,a["--n-item-icon-color-active-horizontal"]=l.itemIconColorActiveHorizontalInverted,a["--n-item-icon-color-active-hover-horizontal"]=l.itemIconColorActiveHoverHorizontalInverted,a["--n-item-icon-color-child-active-horizontal"]=l.itemIconColorChildActiveHorizontalInverted,a["--n-item-icon-color-child-active-hover-horizontal"]=l.itemIconColorChildActiveHoverHorizontalInverted,a["--n-arrow-color"]=l.arrowColorInverted,a["--n-arrow-color-hover"]=l.arrowColorHoverInverted,a["--n-arrow-color-active"]=l.arrowColorActiveInverted,a["--n-arrow-color-active-hover"]=l.arrowColorActiveHoverInverted,a["--n-arrow-color-child-active"]=l.arrowColorChildActiveInverted,a["--n-arrow-color-child-active-hover"]=l.arrowColorChildActiveHoverInverted,a["--n-item-color-hover"]=l.itemColorHoverInverted,a["--n-item-color-active"]=l.itemColorActiveInverted,a["--n-item-color-active-hover"]=l.itemColorActiveHoverInverted,a["--n-item-color-active-collapsed"]=l.itemColorActiveCollapsedInverted):(a["--n-group-text-color"]=l.groupTextColor,a["--n-color"]=l.color,a["--n-item-text-color"]=l.itemTextColor,a["--n-item-text-color-hover"]=l.itemTextColorHover,a["--n-item-text-color-active"]=l.itemTextColorActive,a["--n-item-text-color-child-active"]=l.itemTextColorChildActive,a["--n-item-text-color-child-active-hover"]=l.itemTextColorChildActiveHover,a["--n-item-text-color-active-hover"]=l.itemTextColorActiveHover,a["--n-item-icon-color"]=l.itemIconColor,a["--n-item-icon-color-hover"]=l.itemIconColorHover,a["--n-item-icon-color-active"]=l.itemIconColorActive,a["--n-item-icon-color-active-hover"]=l.itemIconColorActiveHover,a["--n-item-icon-color-child-active"]=l.itemIconColorChildActive,a["--n-item-icon-color-child-active-hover"]=l.itemIconColorChildActiveHover,a["--n-item-icon-color-collapsed"]=l.itemIconColorCollapsed,a["--n-item-text-color-horizontal"]=l.itemTextColorHorizontal,a["--n-item-text-color-hover-horizontal"]=l.itemTextColorHoverHorizontal,a["--n-item-text-color-active-horizontal"]=l.itemTextColorActiveHorizontal,a["--n-item-text-color-child-active-horizontal"]=l.itemTextColorChildActiveHorizontal,a["--n-item-text-color-child-active-hover-horizontal"]=l.itemTextColorChildActiveHoverHorizontal,a["--n-item-text-color-active-hover-horizontal"]=l.itemTextColorActiveHoverHorizontal,a["--n-item-icon-color-horizontal"]=l.itemIconColorHorizontal,a["--n-item-icon-color-hover-horizontal"]=l.itemIconColorHoverHorizontal,a["--n-item-icon-color-active-horizontal"]=l.itemIconColorActiveHorizontal,a["--n-item-icon-color-active-hover-horizontal"]=l.itemIconColorActiveHoverHorizontal,a["--n-item-icon-color-child-active-horizontal"]=l.itemIconColorChildActiveHorizontal,a["--n-item-icon-color-child-active-hover-horizontal"]=l.itemIconColorChildActiveHoverHorizontal,a["--n-arrow-color"]=l.arrowColor,a["--n-arrow-color-hover"]=l.arrowColorHover,a["--n-arrow-color-active"]=l.arrowColorActive,a["--n-arrow-color-active-hover"]=l.arrowColorActiveHover,a["--n-arrow-color-child-active"]=l.arrowColorChildActive,a["--n-arrow-color-child-active-hover"]=l.arrowColorChildActiveHover,a["--n-item-color-hover"]=l.itemColorHover,a["--n-item-color-active"]=l.itemColorActive,a["--n-item-color-active-hover"]=l.itemColorActiveHover,a["--n-item-color-active-collapsed"]=l.itemColorActiveCollapsed),a}),P=o?Rt("menu",C(()=>t.inverted?"a":"b"),T,t):void 0,B=Pt(),pe=$(null),ze=$(null);let $e=!0;const De=()=>{var m;$e?$e=!1:(m=pe.value)===null||m===void 0||m.sync({showAllItemsBeforeCalculate:!0})};function mt(){return document.getElementById(B)}const fe=$(-1);function pt(m){fe.value=t.options.length-m}function ft(m){m||(fe.value=-1)}const gt=C(()=>{const m=fe.value;return{children:m===-1?[]:t.options.slice(m)}}),xt=C(()=>{const{childrenField:m,disabledField:y,keyField:l}=t;return _e([gt.value],{getIgnored(g){return ke(g)},getChildren(g){return g[m]},getDisabled(g){return g[y]},getKey(g){var M;return(M=g[l])!==null&&M!==void 0?M:g.name}})}),bt=C(()=>_e([{}]).treeNodes[0]);function yt(){var m;if(fe.value===-1)return b(Ie,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:bt.value,domId:B,isEllipsisPlaceholder:!0});const y=xt.value.treeNodes[0],l=O.value,g=!!(!((m=y.children)===null||m===void 0)&&m.some(M=>l.includes(M.key)));return b(Ie,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:g,tmNode:y,domId:B,rawNodes:y.rawNode.children||[],tmNodes:y.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:i,controlledExpandedKeys:E,uncontrolledExpanededKeys:h,mergedExpandedKeys:z,uncontrolledValue:d,mergedValue:p,activePath:O,tmNodes:A,mergedTheme:e,mergedCollapsed:n,cssVars:o?void 0:T,themeClass:P?.themeClass,overflowRef:pe,counterRef:ze,updateCounter:()=>{},onResize:De,onUpdateOverflow:ft,onUpdateCount:pt,renderCounter:yt,getCounter:mt,onRender:P?.onRender,showOption:K,deriveResponsiveState:De}},render(){const{mergedClsPrefix:t,mode:i,themeClass:o,onRender:e}=this;e?.();const r=()=>this.tmNodes.map(u=>Ke(u,this.$props)),s=i==="horizontal"&&this.responsive,c=()=>b("div",Lt(this.$attrs,{role:i==="horizontal"?"menubar":"menu",class:[`${t}-menu`,o,`${t}-menu--${i}`,s&&`${t}-menu--responsive`,this.mergedCollapsed&&`${t}-menu--collapsed`],style:this.cssVars}),s?b(Ht,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return s?b(Ot,{onResize:this.onResize},{default:c}):c()}});var ee=function(){return ee=Object.assign||function(i){for(var o,e=1,r=arguments.length;e<r;e++){o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])}return i},ee.apply(this,arguments)};function st(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function at(t){return!t||!t.ownerDocument?document:t.ownerDocument}var ct=function(t){var i={},o=Array.prototype.reduce.call(t,function(e,r){var n=r.name.match(/data-simplebar-(.+)/);if(n){var s=n[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(r.value){case"true":e[s]=!0;break;case"false":e[s]=!1;break;case void 0:e[s]=!0;break;default:e[s]=r.value}}return e},i);return o};function dt(t,i){var o;t&&(o=t.classList).add.apply(o,i.split(" "))}function ut(t,i){t&&i.split(" ").forEach(function(o){t.classList.remove(o)})}function ht(t){return".".concat(t.split(" ").join("."))}var Be=!!(typeof window<"u"&&window.document&&window.document.createElement),lo=Object.freeze({__proto__:null,addClasses:dt,canUseDOM:Be,classNamesToQuery:ht,getElementDocument:at,getElementWindow:st,getOptions:ct,removeClasses:ut}),J=null,Qe=null;Be&&window.addEventListener("resize",function(){Qe!==window.devicePixelRatio&&(Qe=window.devicePixelRatio,J=null)});function Ze(){if(J===null){if(typeof document>"u")return J=0,J;var t=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),t.appendChild(i);var o=i.getBoundingClientRect().right;t.removeChild(i),J=o}return J}var j=st,Ae=at,so=ct,U=dt,q=ut,H=ht,le=(function(){function t(i,o){o===void 0&&(o={});var e=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=j(e.el);e.scrollXTicking||(r.requestAnimationFrame(e.scrollX),e.scrollXTicking=!0),e.scrollYTicking||(r.requestAnimationFrame(e.scrollY),e.scrollYTicking=!0),e.isScrolling||(e.isScrolling=!0,U(e.el,e.classNames.scrolling)),e.showScrollbar("x"),e.showScrollbar("y"),e.onStopScrolling()},this.scrollX=function(){e.axis.x.isOverflowing&&e.positionScrollbar("x"),e.scrollXTicking=!1},this.scrollY=function(){e.axis.y.isOverflowing&&e.positionScrollbar("y"),e.scrollYTicking=!1},this._onStopScrolling=function(){q(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(U(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){q(e.el,e.classNames.mouseEntered),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isMouseEntering=!1},this._onMouseMove=function(r){e.mouseX=r.clientX,e.mouseY=r.clientY,(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseMoveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseMoveForAxis("y")},this.onMouseLeave=function(){e.onMouseMove.cancel(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseLeaveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseLeaveForAxis("y"),e.mouseX=-1,e.mouseY=-1},this._onWindowResize=function(){e.scrollbarWidth=e.getScrollbarWidth(),e.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!e.axis.x.track.el||!e.axis.y.track.el||!e.axis.x.scrollbar.el||!e.axis.y.scrollbar.el)){var n,s;e.axis.x.track.rect=e.axis.x.track.el.getBoundingClientRect(),e.axis.y.track.rect=e.axis.y.track.el.getBoundingClientRect(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&(n=e.isWithinBounds(e.axis.x.track.rect)),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&(s=e.isWithinBounds(e.axis.y.track.rect)),(n||s)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(n&&(e.axis.x.scrollbar.rect=e.axis.x.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.x.scrollbar.rect)?e.onDragStart(r,"x"):e.onTrackClick(r,"x")),s&&(e.axis.y.scrollbar.rect=e.axis.y.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.y.scrollbar.rect)?e.onDragStart(r,"y"):e.onTrackClick(r,"y"))))}},this.drag=function(r){var n,s,c,u,d,x,p,h,f,E,z;if(!(!e.draggedAxis||!e.contentWrapperEl)){var A,O=e.axis[e.draggedAxis].track,L=(s=(n=O.rect)===null||n===void 0?void 0:n[e.axis[e.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,W=e.axis[e.draggedAxis].scrollbar,V=(u=(c=e.contentWrapperEl)===null||c===void 0?void 0:c[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,K=parseInt((x=(d=e.elStyles)===null||d===void 0?void 0:d[e.axis[e.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);r.preventDefault(),r.stopPropagation(),e.draggedAxis==="y"?A=r.pageY:A=r.pageX;var T=A-((h=(p=O.rect)===null||p===void 0?void 0:p[e.axis[e.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-e.axis[e.draggedAxis].dragOffset;T=e.draggedAxis==="x"&&e.isRtl?((E=(f=O.rect)===null||f===void 0?void 0:f[e.axis[e.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-W.size-T:T;var P=T/(L-W.size),B=P*(V-K);e.draggedAxis==="x"&&e.isRtl&&(B=!((z=t.getRtlHelpers())===null||z===void 0)&&z.isScrollingToNegative?-B:B),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=B}},this.onEndDrag=function(r){e.isDragging=!1;var n=Ae(e.el),s=j(e.el);r.preventDefault(),r.stopPropagation(),q(e.el,e.classNames.dragging),e.onStopScrolling(),n.removeEventListener("mousemove",e.drag,!0),n.removeEventListener("mouseup",e.onEndDrag,!0),e.removePreventClickId=s.setTimeout(function(){n.removeEventListener("click",e.preventClick,!0),n.removeEventListener("dblclick",e.preventClick,!0),e.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=i,this.options=ee(ee({},t.defaultOptions),o),this.classNames=ee(ee({},t.defaultOptions.classNames),o.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Xt(this._onMouseMove,64),this.onWindowResize=Me(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Me(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Me(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var o=i.firstElementChild,e=o?.firstElementChild;if(!e)return null;document.body.appendChild(o),o.scrollLeft=0;var r=t.getOffset(o),n=t.getOffset(e);o.scrollLeft=-999;var s=t.getOffset(e);return document.body.removeChild(o),t.rtlHelpers={isScrollOriginAtZero:r.left!==n.left,isScrollingToNegative:n.left!==s.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ze()}catch{return Ze()}},t.getOffset=function(i){var o=i.getBoundingClientRect(),e=Ae(i),r=j(i);return{top:o.top+(r.pageYOffset||e.documentElement.scrollTop),left:o.left+(r.pageXOffset||e.documentElement.scrollLeft)}},t.prototype.init=function(){Be&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var i,o;this.wrapperEl=this.el.querySelector(H(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(H(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(H(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(H(this.classNames.offset)),this.maskEl=this.el.querySelector(H(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,H(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(H(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(H(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(H(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((o=this.axis.y.track.el)===null||o===void 0?void 0:o.querySelector(H(this.classNames.scrollbar)))||null,this.options.autoHide||(U(this.axis.x.scrollbar.el,this.classNames.visible),U(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var i=this,o,e=j(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(o=this.contentWrapperEl)===null||o===void 0||o.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,n=e.ResizeObserver||ResizeObserver;this.resizeObserver=new n(function(){r&&e.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new e.MutationObserver(function(){e.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=j(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var o=this.contentEl.offsetWidth,e=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||o>0,n=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?"".concat(o||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=o!==0&&d>o,this.axis.y.isOverflowing=u>x,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>n-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>x-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(i){var o,e;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[i].scrollSizeAttr],n=(e=(o=this.axis[i].track.el)===null||o===void 0?void 0:o[this.axis[i].offsetSizeAttr])!==null&&e!==void 0?e:0,s=n/r,c;return c=Math.max(~~(s*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(i){var o,e,r;i===void 0&&(i="y");var n=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!n.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[i].scrollSizeAttr],c=((o=this.axis[i].track.el)===null||o===void 0?void 0:o[this.axis[i].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[i].sizeAttr],10),d=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];d=i==="x"&&this.isRtl&&(!((e=t.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-d:d,i==="x"&&this.isRtl&&(d=!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?d:-d);var x=d/(s-u),p=~~((c-n.size)*x);p=i==="x"&&this.isRtl?-p+(c-n.size):p,n.el.style.transform=i==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},t.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var o=this.axis[i].track.el,e=this.axis[i].scrollbar.el;!o||!e||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(o.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(o.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?e.style.display="block":e.style.display="none")},t.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(U(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(q(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var o=this.axis[i];!o.track.el||!o.scrollbar.el||(o.track.rect=o.track.el.getBoundingClientRect(),o.scrollbar.rect=o.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(o.track.rect)?(this.showScrollbar(i),U(o.track.el,this.classNames.hover),this.isWithinBounds(o.scrollbar.rect)?U(o.scrollbar.el,this.classNames.hover):q(o.scrollbar.el,this.classNames.hover)):(q(o.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},t.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),q(this.axis[i].track.el,this.classNames.hover),q(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},t.prototype.onDragStart=function(i,o){var e;o===void 0&&(o="y"),this.isDragging=!0;var r=Ae(this.el),n=j(this.el),s=this.axis[o].scrollbar,c=o==="y"?i.pageY:i.pageX;this.axis[o].dragOffset=c-(((e=s.rect)===null||e===void 0?void 0:e[this.axis[o].offsetAttr])||0),this.draggedAxis=o,U(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(i,o){var e=this,r,n,s,c;o===void 0&&(o="y");var u=this.axis[o];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var d=j(this.el);this.axis[o].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var x=this.axis[o].scrollbar,p=(n=(r=x.rect)===null||r===void 0?void 0:r[this.axis[o].offsetAttr])!==null&&n!==void 0?n:0,h=parseInt((c=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[o].sizeAttr])!==null&&c!==void 0?c:"0px",10),f=this.contentWrapperEl[this.axis[o].scrollOffsetAttr],E=o==="y"?this.mouseY-p:this.mouseX-p,z=E<0?-1:1,A=z===-1?f-h:f+h,O=40,L=function(){e.contentWrapperEl&&(z===-1?f>A&&(f-=O,e.contentWrapperEl[e.axis[o].scrollOffsetAttr]=f,d.requestAnimationFrame(L)):f<A&&(f+=O,e.contentWrapperEl[e.axis[o].scrollOffsetAttr]=f,d.requestAnimationFrame(L)))};L()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var i=j(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},t.prototype.findChild=function(i,o){var e=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(r){return e.call(r,o)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=so,t.helpers=lo,t})(),G=function(){return G=Object.assign||function(i){for(var o,e=1,r=arguments.length;e<r;e++){o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])}return i},G.apply(this,arguments)},ao={beforeUnmount:"beforeUnmount"},re;function co(t){var i,o=t.h,e=t.emit,r=t.slots,n=t.props,s=function(u){return e("scroll",u)},c=G(G({},le.defaultOptions.classNames),n.classNames);return o("div",G({ref:"element"},{"data-simplebar":"init"}),[o("div",{class:c.wrapper},[o("div",{class:c.heightAutoObserverWrapperEl},[o("div",{class:c.heightAutoObserverEl})]),o("div",{class:c.mask},[o("div",{class:c.offset},[o("div",G(G({},{onScroll:s,class:c.contentWrapper,tabIndex:n.tabIndex||le.defaultOptions.tabIndex,role:"region","aria-label":n.ariaLabel||le.defaultOptions.ariaLabel}),{ref:"scrollElement"}),[o("div",{class:c.contentEl,ref:"contentElement"},(i=r.default)===null||i===void 0?void 0:i.call(r))])])]),o("div",{class:c.placeholder})]),o("div",{class:"".concat(c.track," simplebar-horizontal")},[o("div",{class:c.scrollbar})]),o("div",{class:"".concat(c.track," simplebar-vertical")},[o("div",{class:c.scrollbar})])])}var uo=I((re={name:"simplebar-vue",props:{autoHide:{type:Boolean,default:void 0},classNames:Object,forceVisible:{type:[Boolean,String],validator:function(t){return typeof t=="boolean"||t==="x"||t==="y"},default:void 0},ariaLabel:String,tabIndex:Number,direction:{type:String,validator:function(t){return t==="ltr"||t==="rtl"}},timeout:Number,clickOnTrack:{type:Boolean,default:void 0},scrollbarMinSize:Number,scrollbarMaxSize:Number},emits:["scroll"],data:function(){return{}},mounted:function(){for(var t=le.getOptions(this.$refs.element.attributes),i=0,o=Object.entries(this.$props);i<o.length;i++){var e=o[i],r=e[0],n=e[1];n!=null&&typeof n!="function"&&(t[r]=n)}this.SimpleBar=new le(this.$refs.element,t),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},re[ao.beforeUnmount]=function(){var t;(t=this.SimpleBar)===null||t===void 0||t.unMount(),this.SimpleBar=void 0},re.methods={recalculate:function(){var t;(t=this.SimpleBar)===null||t===void 0||t.recalculate()}},re.render=function(t){var i=this;return co({h:typeof t=="function"?t:b,emit:function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return i.$emit.apply(i,o)},slots:this.$slots,props:this.$props})},re));const ho={class:"h-full flex-1-hidden"},we=I({name:"SimpleScrollbar",__name:"index",setup(t){return(i,o)=>(R(),ae("div",ho,[k(v(uo),{class:"h-full"},{default:D(()=>[et(i.$slots,"default")]),_:3})]))}}),vo=I({name:"VerticalMenu",__name:"vertical-menu",setup(t){const i=Re(),o=ce(),e=de(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=ue(),{selectedKey:s}=he(),c=C(()=>!e.darkMode&&e.sider.inverted),u=$([]);function d(){if(o.siderCollapse||!s.value){u.value=[];return}u.value=r.getSelectedMenuKeyPath(s.value)}return Pe(()=>i.name,()=>{d()},{immediate:!0}),(x,p)=>{const h=me;return R(),F(Z,{to:`#${v(Se)}`},[k(v(we),null,{default:D(()=>[k(h,{"expanded-keys":u.value,"onUpdate:expandedKeys":p[0]||(p[0]=f=>u.value=f),mode:"vertical",value:v(s),collapsed:v(o).siderCollapse,"collapsed-width":v(e).sider.collapsedWidth,"collapsed-icon-size":22,options:v(r).menus,inverted:c.value,indent:18,"onUpdate:value":v(n)},null,8,["expanded-keys","value","collapsed","collapsed-width","options","inverted","onUpdate:value"])]),_:1})],8,["to"])}}}),mo=I({name:"PinToggler",__name:"pin-toggler",props:{pin:{type:Boolean}},setup(t){const i=t,o=C(()=>i.pin?"mdi-pin-off":"mdi-pin");return(e,r)=>{const n=Tt,s=Wt;return R(),F(s,{"tooltip-content":e.pin?v(qe)("icon.unpin"):v(qe)("icon.pin"),"tooltip-placement":"bottom-start","z-index":100},{default:D(()=>[k(n,{icon:o.value},null,8,["icon"])]),_:1},8,["tooltip-content"])}}}),po={class:"h-full flex-col-stretch flex-1-hidden"},fo=I({name:"FirstLevelMenu",__name:"first-level-menu",props:{menus:{},activeMenuKey:{},inverted:{type:Boolean},siderCollapse:{type:Boolean},darkMode:{type:Boolean},themeColor:{}},emits:["select","toggleSiderCollapse"],setup(t,{emit:i}){Ft(d=>({"5f861235":s.value}));const o=t,e=i,[r,n]=Kt(),s=C(()=>{const{darkMode:d,themeColor:x}=o,p=Xe(x,.1,"#ffffff"),h=Xe(x,.3,"#000000");return d?h:p});function c(d){e("select",d)}function u(){e("toggleSiderCollapse")}return(d,x)=>{const p=Dt;return R(),ae(se,null,[k(v(r),null,{default:D(({label:h,icon:f,active:E,isMini:z})=>[oe("div",{class:ne(["mx-4px mb-6px flex-col-center cursor-pointer rounded-8px bg-transparent px-4px py-8px transition-300 hover:bg-[rgb(0,0,0,0.08)]",{"text-primary selected-mix-menu":E,"text-white:65 hover:text-white":d.inverted,"!text-white !bg-primary":E&&d.inverted}])},[(R(),F(tt(f),{class:ne([z?"text-icon-small":"text-icon-large"])},null,8,["class"])),oe("p",{class:ne(["w-full ellipsis-text text-center text-12px transition-height-300",[z?"h-0 pt-0":"h-20px pt-4px"]])},Bt(h),3)],2)]),_:1}),oe("div",po,[et(d.$slots,"default",{},void 0,!0),k(v(we),null,{default:D(()=>[(R(!0),ae(se,null,$t(d.menus,h=>(R(),F(v(n),{key:h.key,label:h.label,icon:h.icon,active:h.key===d.activeMenuKey,"is-mini":d.siderCollapse,onClick:f=>c(h)},null,8,["label","icon","active","is-mini","onClick"]))),128))]),_:1}),k(p,{"arrow-icon":"",collapsed:d.siderCollapse,"z-index":99,class:ne({"text-white:88 !hover:text-white":d.inverted}),onClick:u},null,8,["collapsed","class"])])],64)}}}),vt=Vt(fo,[["__scopeId","data-v-0bbae480"]]),go=I({name:"VerticalMixMenu",__name:"vertical-mix-menu",setup(t){const i=Re(),o=ce(),e=de(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=ue(),{bool:s,setBool:c}=jt(),{allMenus:u,childLevelMenus:d,activeFirstLevelMenuKey:x,setActiveFirstLevelMenuKey:p,getActiveFirstLevelMenuKey:h}=He(),{selectedKey:f}=he(),E=C(()=>!e.darkMode&&e.sider.inverted),z=C(()=>d.value.length>0),A=C(()=>z.value&&(s.value||o.mixSiderFixed));function O(K){p(K.key),K.children?.length?c(!0):n(K.routeKey)}function L(){c(!1),o.mixSiderFixed||h()}const W=$([]);function V(){if(o.siderCollapse||!f.value){W.value=[];return}W.value=r.getSelectedMenuKeyPath(f.value)}return Pe(()=>i.name,()=>{V()},{immediate:!0}),(K,T)=>{const P=mo,B=me,pe=qt;return R(),F(Z,{to:`#${v(Se)}`},[oe("div",{class:"h-full flex",onMouseleave:L},[k(vt,{menus:v(u),"active-menu-key":v(x),inverted:E.value,"sider-collapse":v(o).siderCollapse,"dark-mode":v(e).darkMode,"theme-color":v(e).themeColor,onSelect:O,onToggleSiderCollapse:v(o).toggleSiderCollapse},{default:D(()=>[k(Ut,{"show-title":!1,style:ge({height:v(e).header.height+"px"})},null,8,["style"])]),_:1},8,["menus","active-menu-key","inverted","sider-collapse","dark-mode","theme-color","onToggleSiderCollapse"]),oe("div",{class:"relative h-full transition-width-300",style:ge({width:v(o).mixSiderFixed&&z.value?v(e).sider.mixChildMenuWidth+"px":"0px"})},[k(pe,{class:"absolute-lt h-full flex-col-stretch nowrap-hidden shadow-sm transition-all-300",inverted:E.value,style:ge({width:A.value?v(e).sider.mixChildMenuWidth+"px":"0px"})},{default:D(()=>[oe("header",{class:"flex-y-center justify-between px-12px",style:ge({height:v(e).header.height+"px"})},[k(P,{pin:v(o).mixSiderFixed,class:ne({"text-white:88 !hover:text-white":E.value}),onClick:v(o).toggleMixSiderFixed},null,8,["pin","class","onClick"])],4),k(v(we),null,{default:D(()=>[k(B,{"expanded-keys":W.value,"onUpdate:expandedKeys":T[0]||(T[0]=ze=>W.value=ze),mode:"vertical",value:v(f),options:v(d),inverted:E.value,indent:18,"onUpdate:value":v(n)},null,8,["expanded-keys","value","options","inverted","onUpdate:value"])]),_:1})]),_:1},8,["inverted","style"])],4)],32)],8,["to"])}}}),xo=I({name:"HorizontalMenu",__name:"horizontal-menu",setup(t){const i=Ce(),{routerPushByKeyWithMetaQuery:o}=ue(),{selectedKey:e}=he();return(r,n)=>{const s=me;return R(),F(Z,{to:`#${v(Le)}`},[k(s,{mode:"horizontal",value:v(e),options:v(i).menus,indent:18,responsive:"","onUpdate:value":v(o)},null,8,["value","options","onUpdate:value"])],8,["to"])}}}),bo=I({name:"HorizontalMixMenu",__name:"horizontal-mix-menu",setup(t){const i=ce(),o=de(),{routerPushByKeyWithMetaQuery:e}=ue(),{allMenus:r,childLevelMenus:n,activeFirstLevelMenuKey:s,setActiveFirstLevelMenuKey:c}=He(),{selectedKey:u}=he();function d(x){c(x.key),x.children?.length||e(x.routeKey)}return(x,p)=>{const h=me;return R(),ae(se,null,[(R(),F(Z,{to:`#${v(Le)}`},[k(h,{mode:"horizontal",value:v(u),options:v(n),indent:18,responsive:"","onUpdate:value":v(e)},null,8,["value","options","onUpdate:value"])],8,["to"])),(R(),F(Z,{to:`#${v(Se)}`},[k(vt,{menus:v(r),"active-menu-key":v(s),"sider-collapse":v(i).siderCollapse,"dark-mode":v(o).darkMode,"theme-color":v(o).themeColor,onSelect:d,onToggleSiderCollapse:v(i).toggleSiderCollapse},null,8,["menus","active-menu-key","sider-collapse","dark-mode","theme-color","onToggleSiderCollapse"])],8,["to"]))],64)}}}),yo=I({name:"ReversedHorizontalMixMenu",__name:"reversed-horizontal-mix-menu",setup(t){const i=Re(),o=ce(),e=de(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=ue(),{firstLevelMenus:s,childLevelMenus:c,activeFirstLevelMenuKey:u,setActiveFirstLevelMenuKey:d,isActiveFirstLevelMenuHasChildren:x}=He(),{selectedKey:p}=he();function h(z){d(z),x.value||n(z)}const f=$([]);function E(){if(o.siderCollapse||!p.value){f.value=[];return}f.value=r.getSelectedMenuKeyPath(p.value)}return Pe(()=>i.name,()=>{E()},{immediate:!0}),(z,A)=>{const O=me;return R(),ae(se,null,[(R(),F(Z,{to:`#${v(Le)}`},[k(O,{mode:"horizontal",value:v(u),options:v(s),indent:18,responsive:"","onUpdate:value":h},null,8,["value","options"])],8,["to"])),(R(),F(Z,{to:`#${v(Se)}`},[k(v(we),null,{default:D(()=>[k(O,{"expanded-keys":f.value,"onUpdate:expandedKeys":A[0]||(A[0]=L=>f.value=L),mode:"vertical",value:v(p),collapsed:v(o).siderCollapse,"collapsed-width":v(e).sider.collapsedWidth,"collapsed-icon-size":22,options:v(c),indent:18,"onUpdate:value":v(n)},null,8,["expanded-keys","value","collapsed","collapsed-width","options","onUpdate:value"])]),_:1})],8,["to"]))],64)}}}),wo=I({name:"GlobalMenu",__name:"index",setup(t){const i=ce(),o=de(),e=C(()=>({vertical:vo,"vertical-mix":go,horizontal:xo,"horizontal-mix":o.layout.reverseHorizontalMix?yo:bo})[o.layout.mode]),r=C(()=>o.layout.mode==="vertical"&&i.isMobile);return(n,s)=>(R(),F(tt(e.value),{key:r.value}))}});export{wo as default};
