import{d as R,E as y,K as Ae,x as _,y as z,C as P,ak as be,D as w,al as kt,bW as de,au as Ot,O as re,f as b,aZ as De,bg as It,ay as Fe,a4 as ue,L as _e,a$ as Pe,bs as Nt,U,ap as Rt,bN as Lt,F as Pt,H as nt,cC as Ht,aV as Qe,am as Ze,M as Je,b7 as Wt,J as Tt,ax as Ft,cD as Kt,bl as $t,c0 as He,ao as te,cE as Bt,cF as We,a as he,o as N,e as E,h as a,w as V,bn as lt,j as ke,k as ve,m as me,cG as Ce,u as pe,cH as fe,T as Oe,c as F,cI as we,bq as j,cJ as Dt,$ as Ke,_ as Vt,cK as Ut,cL as jt,b as D,a6 as ae,bh as st,t as Ve,a5 as qt,cM as Gt,cN as et,R as Xt,cO as Ie,cP as at,s as J,cQ as ct,cR as dt,cS as Ne}from"./index-DSCno0m2.js";const Yt=R({name:"ChevronDownFilled",render(){return y("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"}))}}),Qt=Ae("n-layout-sider"),ze=Ae("n-menu"),ut=Ae("n-submenu"),Ue=Ae("n-menu-item-group"),tt=[_("&::before","background-color: var(--n-item-color-hover);"),w("arrow",`
 color: var(--n-arrow-color-hover);
 `),w("icon",`
 color: var(--n-item-icon-color-hover);
 `),z("menu-item-content-header",`
 color: var(--n-item-text-color-hover);
 `,[_("a",`
 color: var(--n-item-text-color-hover);
 `),w("extra",`
 color: var(--n-item-text-color-hover);
 `)])],ot=[w("icon",`
 color: var(--n-item-icon-color-hover-horizontal);
 `),z("menu-item-content-header",`
 color: var(--n-item-text-color-hover-horizontal);
 `,[_("a",`
 color: var(--n-item-text-color-hover-horizontal);
 `),w("extra",`
 color: var(--n-item-text-color-hover-horizontal);
 `)])],Zt=_([z("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;
 `,[P("horizontal",`
 max-width: 100%;
 width: 100%;
 display: flex;
 overflow: hidden;
 padding-bottom: 0;
 `,[z("submenu","margin: 0;"),z("menu-item","margin: 0;"),z("menu-item-content",`
 padding: 0 20px;
 border-bottom: 2px solid #0000;
 `,[_("&::before","display: none;"),P("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),z("menu-item-content",[P("selected",[w("icon","color: var(--n-item-icon-color-active-horizontal);"),z("menu-item-content-header",`
 color: var(--n-item-text-color-active-horizontal);
 `,[_("a","color: var(--n-item-text-color-active-horizontal);"),w("extra","color: var(--n-item-text-color-active-horizontal);")])]),P("child-active",`
 border-bottom: 2px solid var(--n-border-color-horizontal);
 `,[z("menu-item-content-header",`
 color: var(--n-item-text-color-child-active-horizontal);
 `,[_("a",`
 color: var(--n-item-text-color-child-active-horizontal);
 `),w("extra",`
 color: var(--n-item-text-color-child-active-horizontal);
 `)]),w("icon",`
 color: var(--n-item-icon-color-child-active-horizontal);
 `)]),be("disabled",[be("selected, child-active",[_("&:focus-within",ot)]),P("selected",[oe(null,[w("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),z("menu-item-content-header",`
 color: var(--n-item-text-color-active-hover-horizontal);
 `,[_("a","color: var(--n-item-text-color-active-hover-horizontal);"),w("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),P("child-active",[oe(null,[w("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),z("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);"),w("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),oe("border-bottom: 2px solid var(--n-border-color-horizontal);",ot)]),z("menu-item-content-header",[_("a","color: var(--n-item-text-color-horizontal);")])])]),be("responsive",[z("menu-item-content-header",`
 overflow: hidden;
 text-overflow: ellipsis;
 `)]),P("collapsed",[z("menu-item-content",[P("selected",[_("&::before",`
 background-color: var(--n-item-color-active-collapsed) !important;
 `)]),z("menu-item-content-header","opacity: 0;"),w("arrow","opacity: 0;"),w("icon","color: var(--n-item-icon-color-collapsed);")])]),z("menu-item",`
 height: var(--n-item-height);
 margin-top: 6px;
 position: relative;
 `),z("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);
 `),P("disabled",`
 opacity: .45;
 cursor: not-allowed;
 `),P("collapsed",[w("arrow","transform: rotate(0);")]),P("selected",[_("&::before","background-color: var(--n-item-color-active);"),w("arrow","color: var(--n-arrow-color-active);"),w("icon","color: var(--n-item-icon-color-active);"),z("menu-item-content-header",`
 color: var(--n-item-text-color-active);
 `,[_("a","color: var(--n-item-text-color-active);"),w("extra","color: var(--n-item-text-color-active);")])]),P("child-active",[z("menu-item-content-header",`
 color: var(--n-item-text-color-child-active);
 `,[_("a",`
 color: var(--n-item-text-color-child-active);
 `),w("extra",`
 color: var(--n-item-text-color-child-active);
 `)]),w("arrow",`
 color: var(--n-arrow-color-child-active);
 `),w("icon",`
 color: var(--n-item-icon-color-child-active);
 `)]),be("disabled",[be("selected, child-active",[_("&:focus-within",tt)]),P("selected",[oe(null,[w("arrow","color: var(--n-arrow-color-active-hover);"),w("icon","color: var(--n-item-icon-color-active-hover);"),z("menu-item-content-header",`
 color: var(--n-item-text-color-active-hover);
 `,[_("a","color: var(--n-item-text-color-active-hover);"),w("extra","color: var(--n-item-text-color-active-hover);")])])]),P("child-active",[oe(null,[w("arrow","color: var(--n-arrow-color-child-active-hover);"),w("icon","color: var(--n-item-icon-color-child-active-hover);"),z("menu-item-content-header",`
 color: var(--n-item-text-color-child-active-hover);
 `,[_("a","color: var(--n-item-text-color-child-active-hover);"),w("extra","color: var(--n-item-text-color-child-active-hover);")])])]),P("selected",[oe(null,[_("&::before","background-color: var(--n-item-color-active-hover);")])]),oe(null,tt)]),w("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;
 `),w("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);
 `),z("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;
 `)]),w("extra",`
 font-size: .93em;
 color: var(--n-group-text-color);
 transition: color .3s var(--n-bezier);
 `)])]),z("submenu",`
 cursor: pointer;
 position: relative;
 margin-top: 6px;
 `,[z("menu-item-content",`
 height: var(--n-item-height);
 `),z("submenu-children",`
 overflow: hidden;
 padding: 0;
 `,[kt({duration:".2s"})])]),z("menu-item-group",[z("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);
 `)])]),z("menu-tooltip",[_("a",`
 color: inherit;
 text-decoration: none;
 `)]),z("menu-divider",`
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-divider-color);
 height: 1px;
 margin: 6px 18px;
 `)]);function oe(t,i){return[P("hover",t,i),_("&:hover",t,i)]}const ht=R({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}=re(ze);return{menuProps:i,style:b(()=>{const{paddingLeft:o}=t;return{paddingLeft:o&&`${o}px`}}),iconStyle:b(()=>{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):de(this.icon);return y("div",{onClick:c=>{var h;(h=this.onClick)===null||h===void 0||h.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&&y("div",{class:`${t}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),y("div",{class:`${t}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:e?e(i.rawNode):de(this.title),this.extra||r?y("span",{class:`${t}-menu-item-content-header__extra`}," ",r?r(i.rawNode):de(this.extra)):null),this.showArrow?y(Ot,{ariaHidden:!0,class:`${t}-menu-item-content__arrow`,clsPrefix:t},{default:()=>n?n(i.rawNode):y(Yt,null)}):null)}}),Ee=8;function je(t){const i=re(ze),{props:o,mergedCollapsedRef:e}=i,r=re(ut,null),n=re(Ue,null),s=b(()=>o.mode==="horizontal"),c=b(()=>s.value?o.dropdownPlacement:"tmNodes"in t?"right-start":"right"),h=b(()=>{var u;return Math.max((u=o.collapsedIconSize)!==null&&u!==void 0?u:o.iconSize,o.iconSize)}),v=b(()=>{var u;return!s.value&&t.root&&e.value&&(u=o.collapsedIconSize)!==null&&u!==void 0?u:o.iconSize}),x=b(()=>{if(s.value)return;const{collapsedWidth:u,indent:f,rootIndent:M}=o,{root:C,isGroup:A}=t,O=M===void 0?f:M;return C?e.value?u/2-h.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}),m=b(()=>{const{collapsedWidth:u,indent:f,rootIndent:M}=o,{value:C}=h,{root:A}=t;return s.value||!A||!e.value?Ee:(M===void 0?f:M)+C+Ee-(u+C)/2});return{dropdownPlacement:c,activeIconSize:v,maxIconSize:h,paddingLeft:x,iconMarginRight:m,NMenu:i,NSubmenu:r,NMenuOptionGroup:n}}const qe={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Jt=R({name:"MenuDivider",setup(){const t=re(ze),{mergedClsPrefixRef:i,isHorizontalRef:o}=t;return()=>o.value?null:y("div",{class:`${i.value}-menu-divider`})}}),vt=Object.assign(Object.assign({},qe),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),eo=De(vt),to=R({name:"MenuOption",props:vt,setup(t){const i=je(t),{NSubmenu:o,NMenu:e,NMenuOptionGroup:r}=i,{props:n,mergedClsPrefixRef:s,mergedCollapsedRef:c}=e,h=o?o.mergedDisabledRef:r?r.mergedDisabledRef:{value:!1},v=b(()=>h.value||t.disabled);function x(u){const{onClick:f}=t;f&&f(u)}function m(u){v.value||(e.doSelect(t.internalKey,t.tmNode.rawNode),x(u))}return{mergedClsPrefix:s,dropdownPlacement:i.dropdownPlacement,paddingLeft:i.paddingLeft,iconMarginRight:i.iconMarginRight,maxIconSize:i.maxIconSize,activeIconSize:i.activeIconSize,mergedTheme:e.mergedThemeRef,menuProps:n,dropdownEnabled:Fe(()=>t.root&&c.value&&n.mode!=="horizontal"&&!v.value),selected:Fe(()=>e.mergedValueRef.value===t.internalKey),mergedDisabled:v,handleClick:m}},render(){const{mergedClsPrefix:t,mergedTheme:i,tmNode:o,menuProps:{renderLabel:e,nodeProps:r}}=this,n=r?.(o.rawNode);return y("div",Object.assign({},n,{role:"menuitem",class:[`${t}-menu-item`,n?.class]}),y(It,{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):de(this.title),trigger:()=>y(ht,{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})}))}}),mt=Object.assign(Object.assign({},qe),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),oo=De(mt),io=R({name:"MenuOptionGroup",props:mt,setup(t){const i=je(t),{NSubmenu:o}=i,e=b(()=>o?.mergedDisabledRef.value?!0:t.tmNode.disabled);_e(Ue,{paddingLeftRef:i.paddingLeft,mergedDisabledRef:e});const{mergedClsPrefixRef:r,props:n}=re(ze);return function(){const{value:s}=r,c=i.paddingLeft.value,{nodeProps:h}=n,v=h?.(t.tmNode.rawNode);return y("div",{class:`${s}-menu-item-group`,role:"group"},y("div",Object.assign({},v,{class:[`${s}-menu-item-group-title`,v?.class],style:[v?.style||"",c!==void 0?`padding-left: ${c}px;`:""]}),de(t.title),t.extra?y(ue,null," ",de(t.extra)):null),y("div",null,t.tmNodes.map(x=>Ge(x,n))))}}});function $e(t){return t.type==="divider"||t.type==="render"}function ro(t){return t.type==="divider"}function Ge(t,i){const{rawNode:o}=t,{show:e}=o;if(e===!1)return null;if($e(o))return ro(o)?y(Jt,Object.assign({key:t.key},o.props)):null;const{labelField:r}=i,{key:n,level:s,isGroup:c}=t,h=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?y(io,Pe(h,oo,{tmNode:t,tmNodes:t.children,key:n})):y(Be,Pe(h,no,{key:n,rawNodes:o[i.childrenField],tmNodes:t.children,tmNode:t})):y(to,Pe(h,eo,{key:n,tmNode:t}))}const pt=Object.assign(Object.assign({},qe),{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}),no=De(pt),Be=R({name:"Submenu",props:pt,setup(t){const i=je(t),{NMenu:o,NSubmenu:e}=i,{props:r,mergedCollapsedRef:n,mergedThemeRef:s}=o,c=b(()=>{const{disabled:u}=t;return e?.mergedDisabledRef.value||r.disabled?!0:u}),h=U(!1);_e(ut,{paddingLeftRef:i.paddingLeft,mergedDisabledRef:c}),_e(Ue,null);function v(){const{onClick:u}=t;u&&u()}function x(){c.value||(n.value||o.toggleExpand(t.internalKey),v())}function m(u){h.value=u}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:h,paddingLeft:i.paddingLeft,mergedDisabled:c,mergedValue:o.mergedValueRef,childActive:Fe(()=>{var u;return(u=t.virtualChildActive)!==null&&u!==void 0?u:o.activePathRef.value.includes(t.internalKey)}),collapsed:b(()=>r.mode==="horizontal"?!1:n.value?!0:!o.mergedExpandedKeysRef.value.includes(t.internalKey)),dropdownEnabled:b(()=>!c.value&&(r.mode==="horizontal"||n.value)),handlePopoverShowChange:m,handleClick:x}},render(){var t;const{mergedClsPrefix:i,menuProps:{renderIcon:o,renderLabel:e}}=this,r=()=>{const{isHorizontal:s,paddingLeft:c,collapsed:h,mergedDisabled:v,maxIconSize:x,activeIconSize:m,title:u,childActive:f,icon:M,handleClick:C,menuProps:{nodeProps:A},dropdownShow:O,iconMarginRight:L,tmNode:K,mergedClsPrefix:H,isEllipsisPlaceholder:$,extra:W}=this,I=A?.(K.rawNode);return y("div",Object.assign({},I,{class:[`${H}-menu-item`,I?.class],role:"menuitem"}),y(ht,{tmNode:K,paddingLeft:c,collapsed:h,disabled:v,iconMarginRight:L,maxIconSize:x,activeIconSize:m,title:u,extra:W,showArrow:!s,childActive:f,clsPrefix:H,icon:M,hover:O,onClick:C,isEllipsisPlaceholder:$}))},n=()=>y(Rt,null,{default:()=>{const{tmNodes:s,collapsed:c}=this;return c?null:y("div",{class:`${i}-submenu-children`,role:"menu"},s.map(h=>Ge(h,this.menuProps)))}});return this.root?y(Nt,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:()=>y("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:n())}):y("div",{class:`${i}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),n())}}),lo=Object.assign(Object.assign({},nt.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}),ge=R({name:"Menu",inheritAttrs:!1,props:lo,setup(t){const{mergedClsPrefixRef:i,inlineThemeDisabled:o}=Pt(t),e=nt("Menu","-menu",Zt,Ht,t,i),r=re(Qt,null),n=b(()=>{var p;const{collapsed:S}=t;if(S!==void 0)return S;if(r){const{collapseModeRef:l,collapsedRef:g}=r;if(l.value==="width")return(p=g.value)!==null&&p!==void 0?p:!1}return!1}),s=b(()=>{const{keyField:p,childrenField:S,disabledField:l}=t;return He(t.items||t.options,{getIgnored(g){return $e(g)},getChildren(g){return g[S]},getDisabled(g){return g[l]},getKey(g){var k;return(k=g[p])!==null&&k!==void 0?k:g.name}})}),c=b(()=>new Set(s.value.treeNodes.map(p=>p.key))),{watchProps:h}=t,v=U(null);h?.includes("defaultValue")?Qe(()=>{v.value=t.defaultValue}):v.value=t.defaultValue;const x=Je(t,"value"),m=Ze(x,v),u=U([]),f=()=>{u.value=t.defaultExpandAll?s.value.getNonLeafKeys():t.defaultExpandedNames||t.defaultExpandedKeys||s.value.getPath(m.value,{includeSelf:!1}).keyPath};h?.includes("defaultExpandedKeys")?Qe(f):f();const M=Wt(t,["expandedNames","expandedKeys"]),C=Ze(M,u),A=b(()=>s.value.treeNodes),O=b(()=>s.value.getPath(m.value).keyPath);_e(ze,{props:t,mergedCollapsedRef:n,mergedThemeRef:e,mergedValueRef:m,mergedExpandedKeysRef:C,activePathRef:O,mergedClsPrefixRef:i,isHorizontalRef:b(()=>t.mode==="horizontal"),invertedRef:Je(t,"inverted"),doSelect:L,toggleExpand:H});function L(p,S){const{"onUpdate:value":l,onUpdateValue:g,onSelect:k}=t;g&&te(g,p,S),l&&te(l,p,S),k&&te(k,p,S),v.value=p}function K(p){const{"onUpdate:expandedKeys":S,onUpdateExpandedKeys:l,onExpandedNamesChange:g,onOpenNamesChange:k}=t;S&&te(S,p),l&&te(l,p),g&&te(g,p),k&&te(k,p),u.value=p}function H(p){const S=Array.from(C.value),l=S.findIndex(g=>g===p);if(~l)S.splice(l,1);else{if(t.accordion&&c.value.has(p)){const g=S.findIndex(k=>c.value.has(k));g>-1&&S.splice(g,1)}S.push(p)}K(S)}const $=p=>{const S=s.value.getPath(p??m.value,{includeSelf:!1}).keyPath;if(!S.length)return;const l=Array.from(C.value),g=new Set([...l,...S]);t.accordion&&c.value.forEach(k=>{g.has(k)&&!S.includes(k)&&g.delete(k)}),K(Array.from(g))},W=b(()=>{const{inverted:p}=t,{common:{cubicBezierEaseInOut:S},self:l}=e.value,{borderRadius:g,borderColorHorizontal:k,fontSize:Et,itemHeight:_t,dividerColor:At}=l,d={"--n-divider-color":At,"--n-bezier":S,"--n-font-size":Et,"--n-border-color-horizontal":k,"--n-border-radius":g,"--n-item-height":_t};return p?(d["--n-group-text-color"]=l.groupTextColorInverted,d["--n-color"]=l.colorInverted,d["--n-item-text-color"]=l.itemTextColorInverted,d["--n-item-text-color-hover"]=l.itemTextColorHoverInverted,d["--n-item-text-color-active"]=l.itemTextColorActiveInverted,d["--n-item-text-color-child-active"]=l.itemTextColorChildActiveInverted,d["--n-item-text-color-child-active-hover"]=l.itemTextColorChildActiveInverted,d["--n-item-text-color-active-hover"]=l.itemTextColorActiveHoverInverted,d["--n-item-icon-color"]=l.itemIconColorInverted,d["--n-item-icon-color-hover"]=l.itemIconColorHoverInverted,d["--n-item-icon-color-active"]=l.itemIconColorActiveInverted,d["--n-item-icon-color-active-hover"]=l.itemIconColorActiveHoverInverted,d["--n-item-icon-color-child-active"]=l.itemIconColorChildActiveInverted,d["--n-item-icon-color-child-active-hover"]=l.itemIconColorChildActiveHoverInverted,d["--n-item-icon-color-collapsed"]=l.itemIconColorCollapsedInverted,d["--n-item-text-color-horizontal"]=l.itemTextColorHorizontalInverted,d["--n-item-text-color-hover-horizontal"]=l.itemTextColorHoverHorizontalInverted,d["--n-item-text-color-active-horizontal"]=l.itemTextColorActiveHorizontalInverted,d["--n-item-text-color-child-active-horizontal"]=l.itemTextColorChildActiveHorizontalInverted,d["--n-item-text-color-child-active-hover-horizontal"]=l.itemTextColorChildActiveHoverHorizontalInverted,d["--n-item-text-color-active-hover-horizontal"]=l.itemTextColorActiveHoverHorizontalInverted,d["--n-item-icon-color-horizontal"]=l.itemIconColorHorizontalInverted,d["--n-item-icon-color-hover-horizontal"]=l.itemIconColorHoverHorizontalInverted,d["--n-item-icon-color-active-horizontal"]=l.itemIconColorActiveHorizontalInverted,d["--n-item-icon-color-active-hover-horizontal"]=l.itemIconColorActiveHoverHorizontalInverted,d["--n-item-icon-color-child-active-horizontal"]=l.itemIconColorChildActiveHorizontalInverted,d["--n-item-icon-color-child-active-hover-horizontal"]=l.itemIconColorChildActiveHoverHorizontalInverted,d["--n-arrow-color"]=l.arrowColorInverted,d["--n-arrow-color-hover"]=l.arrowColorHoverInverted,d["--n-arrow-color-active"]=l.arrowColorActiveInverted,d["--n-arrow-color-active-hover"]=l.arrowColorActiveHoverInverted,d["--n-arrow-color-child-active"]=l.arrowColorChildActiveInverted,d["--n-arrow-color-child-active-hover"]=l.arrowColorChildActiveHoverInverted,d["--n-item-color-hover"]=l.itemColorHoverInverted,d["--n-item-color-active"]=l.itemColorActiveInverted,d["--n-item-color-active-hover"]=l.itemColorActiveHoverInverted,d["--n-item-color-active-collapsed"]=l.itemColorActiveCollapsedInverted):(d["--n-group-text-color"]=l.groupTextColor,d["--n-color"]=l.color,d["--n-item-text-color"]=l.itemTextColor,d["--n-item-text-color-hover"]=l.itemTextColorHover,d["--n-item-text-color-active"]=l.itemTextColorActive,d["--n-item-text-color-child-active"]=l.itemTextColorChildActive,d["--n-item-text-color-child-active-hover"]=l.itemTextColorChildActiveHover,d["--n-item-text-color-active-hover"]=l.itemTextColorActiveHover,d["--n-item-icon-color"]=l.itemIconColor,d["--n-item-icon-color-hover"]=l.itemIconColorHover,d["--n-item-icon-color-active"]=l.itemIconColorActive,d["--n-item-icon-color-active-hover"]=l.itemIconColorActiveHover,d["--n-item-icon-color-child-active"]=l.itemIconColorChildActive,d["--n-item-icon-color-child-active-hover"]=l.itemIconColorChildActiveHover,d["--n-item-icon-color-collapsed"]=l.itemIconColorCollapsed,d["--n-item-text-color-horizontal"]=l.itemTextColorHorizontal,d["--n-item-text-color-hover-horizontal"]=l.itemTextColorHoverHorizontal,d["--n-item-text-color-active-horizontal"]=l.itemTextColorActiveHorizontal,d["--n-item-text-color-child-active-horizontal"]=l.itemTextColorChildActiveHorizontal,d["--n-item-text-color-child-active-hover-horizontal"]=l.itemTextColorChildActiveHoverHorizontal,d["--n-item-text-color-active-hover-horizontal"]=l.itemTextColorActiveHoverHorizontal,d["--n-item-icon-color-horizontal"]=l.itemIconColorHorizontal,d["--n-item-icon-color-hover-horizontal"]=l.itemIconColorHoverHorizontal,d["--n-item-icon-color-active-horizontal"]=l.itemIconColorActiveHorizontal,d["--n-item-icon-color-active-hover-horizontal"]=l.itemIconColorActiveHoverHorizontal,d["--n-item-icon-color-child-active-horizontal"]=l.itemIconColorChildActiveHorizontal,d["--n-item-icon-color-child-active-hover-horizontal"]=l.itemIconColorChildActiveHoverHorizontal,d["--n-arrow-color"]=l.arrowColor,d["--n-arrow-color-hover"]=l.arrowColorHover,d["--n-arrow-color-active"]=l.arrowColorActive,d["--n-arrow-color-active-hover"]=l.arrowColorActiveHover,d["--n-arrow-color-child-active"]=l.arrowColorChildActive,d["--n-arrow-color-child-active-hover"]=l.arrowColorChildActiveHover,d["--n-item-color-hover"]=l.itemColorHover,d["--n-item-color-active"]=l.itemColorActive,d["--n-item-color-active-hover"]=l.itemColorActiveHover,d["--n-item-color-active-collapsed"]=l.itemColorActiveCollapsed),d}),I=o?Tt("menu",b(()=>t.inverted?"a":"b"),W,t):void 0,B=Ft(),ne=U(null),q=U(null);let le=!0;const G=()=>{var p;le?le=!1:(p=ne.value)===null||p===void 0||p.sync({showAllItemsBeforeCalculate:!0})};function ee(){return document.getElementById(B)}const X=U(-1);function xe(p){X.value=t.options.length-p}function Re(p){p||(X.value=-1)}const Le=b(()=>{const p=X.value;return{children:p===-1?[]:t.options.slice(p)}}),wt=b(()=>{const{childrenField:p,disabledField:S,keyField:l}=t;return He([Le.value],{getIgnored(g){return $e(g)},getChildren(g){return g[p]},getDisabled(g){return g[S]},getKey(g){var k;return(k=g[l])!==null&&k!==void 0?k:g.name}})}),zt=b(()=>He([{}]).treeNodes[0]);function Mt(){var p;if(X.value===-1)return y(Be,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:zt.value,domId:B,isEllipsisPlaceholder:!0});const S=wt.value.treeNodes[0],l=O.value,g=!!(!((p=S.children)===null||p===void 0)&&p.some(k=>l.includes(k.key)));return y(Be,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:g,tmNode:S,domId:B,rawNodes:S.rawNode.children||[],tmNodes:S.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:i,controlledExpandedKeys:M,uncontrolledExpanededKeys:u,mergedExpandedKeys:C,uncontrolledValue:v,mergedValue:m,activePath:O,tmNodes:A,mergedTheme:e,mergedCollapsed:n,cssVars:o?void 0:W,themeClass:I?.themeClass,overflowRef:ne,counterRef:q,updateCounter:()=>{},onResize:G,onUpdateOverflow:Re,onUpdateCount:xe,renderCounter:Mt,getCounter:ee,onRender:I?.onRender,showOption:$,deriveResponsiveState:G}},render(){const{mergedClsPrefix:t,mode:i,themeClass:o,onRender:e}=this;e?.();const r=()=>this.tmNodes.map(h=>Ge(h,this.$props)),s=i==="horizontal"&&this.responsive,c=()=>y("div",$t(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?y(Kt,{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?y(Lt,{onResize:this.onResize},{default:c}):c()}});var ce=function(){return ce=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},ce.apply(this,arguments)};function ft(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function gt(t){return!t||!t.ownerDocument?document:t.ownerDocument}var xt=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,h){return h.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 bt(t,i){var o;t&&(o=t.classList).add.apply(o,i.split(" "))}function yt(t,i){t&&i.split(" ").forEach(function(o){t.classList.remove(o)})}function St(t){return".".concat(t.split(" ").join("."))}var Xe=!!(typeof window<"u"&&window.document&&window.document.createElement),so=Object.freeze({__proto__:null,addClasses:bt,canUseDOM:Xe,classNamesToQuery:St,getElementDocument:gt,getElementWindow:ft,getOptions:xt,removeClasses:yt}),se=null,it=null;Xe&&window.addEventListener("resize",function(){it!==window.devicePixelRatio&&(it=window.devicePixelRatio,se=null)});function rt(){if(se===null){if(typeof document>"u")return se=0,se;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),se=o}return se}var Y=ft,Te=gt,ao=xt,Q=bt,Z=yt,T=St,Se=(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=Y(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,Q(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(){Z(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(Q(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){Z(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,h,v,x,m,u,f,M,C;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,K=e.axis[e.draggedAxis].scrollbar,H=(h=(c=e.contentWrapperEl)===null||c===void 0?void 0:c[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,$=parseInt((x=(v=e.elStyles)===null||v===void 0?void 0:v[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 W=A-((u=(m=O.rect)===null||m===void 0?void 0:m[e.axis[e.draggedAxis].offsetAttr])!==null&&u!==void 0?u:0)-e.axis[e.draggedAxis].dragOffset;W=e.draggedAxis==="x"&&e.isRtl?((M=(f=O.rect)===null||f===void 0?void 0:f[e.axis[e.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0)-K.size-W:W;var I=W/(L-K.size),B=I*(H-$);e.draggedAxis==="x"&&e.isRtl&&(B=!((C=t.getRtlHelpers())===null||C===void 0)&&C.isScrollingToNegative?-B:B),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=B}},this.onEndDrag=function(r){e.isDragging=!1;var n=Te(e.el),s=Y(e.el);r.preventDefault(),r.stopPropagation(),Z(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=ce(ce({},t.defaultOptions),o),this.classNames=ce(ce({},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=Bt(this._onMouseMove,64),this.onWindowResize=We(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=We(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=We(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:rt()}catch{return rt()}},t.getOffset=function(i){var o=i.getBoundingClientRect(),e=Te(i),r=Y(i);return{top:o.top+(r.pageYOffset||e.documentElement.scrollTop),left:o.left+(r.pageXOffset||e.documentElement.scrollLeft)}},t.prototype.init=function(){Xe&&(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(T(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(T(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(T(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(T(this.classNames.offset)),this.maskEl=this.el.querySelector(T(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,T(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(T(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(T(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(T(this.classNames.track)).concat(T(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(T(this.classNames.track)).concat(T(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(T(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((o=this.axis.y.track.el)===null||o===void 0?void 0:o.querySelector(T(this.classNames.scrollbar)))||null,this.options.autoHide||(Q(this.axis.x.scrollbar.el,this.classNames.visible),Q(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var i=this,o,e=Y(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=Y(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 h=this.contentEl.scrollHeight,v=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?"".concat(o||v,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=o!==0&&v>o,this.axis.y.isOverflowing=h>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 m=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&v>n-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>x-m,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,h=parseInt(this.elStyles[this.axis[i].sizeAttr],10),v=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];v=i==="x"&&this.isRtl&&(!((e=t.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-v:v,i==="x"&&this.isRtl&&(v=!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?v:-v);var x=v/(s-h),m=~~((c-n.size)*x);m=i==="x"&&this.isRtl?-m+(c-n.size):m,n.el.style.transform=i==="x"?"translate3d(".concat(m,"px, 0, 0)"):"translate3d(0, ".concat(m,"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&&(Q(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&&(Z(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),Q(o.track.el,this.classNames.hover),this.isWithinBounds(o.scrollbar.rect)?Q(o.scrollbar.el,this.classNames.hover):Z(o.scrollbar.el,this.classNames.hover)):(Z(o.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},t.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Z(this.axis[i].track.el,this.classNames.hover),Z(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=Te(this.el),n=Y(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,Q(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 h=this.axis[o];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var v=Y(this.el);this.axis[o].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var x=this.axis[o].scrollbar,m=(n=(r=x.rect)===null||r===void 0?void 0:r[this.axis[o].offsetAttr])!==null&&n!==void 0?n:0,u=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],M=o==="y"?this.mouseY-m:this.mouseX-m,C=M<0?-1:1,A=C===-1?f-u:f+u,O=40,L=function(){e.contentWrapperEl&&(C===-1?f>A&&(f-=O,e.contentWrapperEl[e.axis[o].scrollOffsetAttr]=f,v.requestAnimationFrame(L)):f<A&&(f+=O,e.contentWrapperEl[e.axis[o].scrollOffsetAttr]=f,v.requestAnimationFrame(L)))};L()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var i=Y(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=ao,t.helpers=so,t})(),ie=function(){return ie=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},ie.apply(this,arguments)},co={beforeUnmount:"beforeUnmount"},ye;function uo(t){var i,o=t.h,e=t.emit,r=t.slots,n=t.props,s=function(h){return e("scroll",h)},c=ie(ie({},Se.defaultOptions.classNames),n.classNames);return o("div",ie({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",ie(ie({},{onScroll:s,class:c.contentWrapper,tabIndex:n.tabIndex||Se.defaultOptions.tabIndex,role:"region","aria-label":n.ariaLabel||Se.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 ho=R((ye={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=Se.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 Se(this.$refs.element,t),this.scrollElement=this.$refs.scrollElement,this.contentElement=this.$refs.contentElement}},ye[co.beforeUnmount]=function(){var t;(t=this.SimpleBar)===null||t===void 0||t.unMount(),this.SimpleBar=void 0},ye.methods={recalculate:function(){var t;(t=this.SimpleBar)===null||t===void 0||t.recalculate()}},ye.render=function(t){var i=this;return uo({h:typeof t=="function"?t:y,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})},ye));const vo={class:"h-full flex-1-hidden"},Me=R({name:"SimpleScrollbar",__name:"index",setup(t){return(i,o)=>(N(),he("div",vo,[E(a(ho),{class:"h-full"},{default:V(()=>[lt(i.$slots,"default")]),_:3})]))}}),mo=R({name:"VerticalMenu",__name:"vertical-menu",setup(t){const i=ke(),o=ve(),e=me(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=pe(),{selectedKey:s}=fe(),c=b(()=>!e.darkMode&&e.sider.inverted),h=U([]);function v(){if(o.siderCollapse||!s.value){h.value=[];return}h.value=r.getSelectedMenuKeyPath(s.value)}return Oe(()=>i.name,()=>{v()},{immediate:!0}),(x,m)=>{const u=ge;return N(),F(j,{to:`#${a(we)}`},[E(a(Me),null,{default:V(()=>[E(u,{"expanded-keys":h.value,"onUpdate:expandedKeys":m[0]||(m[0]=f=>h.value=f),mode:"vertical",value:a(s),collapsed:a(o).siderCollapse,"collapsed-width":a(e).sider.collapsedWidth,"collapsed-icon-size":22,options:a(r).menus,inverted:c.value,indent:18,"onUpdate:value":a(n)},null,8,["expanded-keys","value","collapsed","collapsed-width","options","inverted","onUpdate:value"])]),_:1})],8,["to"])}}}),Ct=R({name:"PinToggler",__name:"pin-toggler",props:{pin:{type:Boolean}},setup(t){const i=t,o=b(()=>i.pin?"mdi-pin-off":"mdi-pin");return(e,r)=>{const n=Vt,s=Dt;return N(),F(s,{"tooltip-content":t.pin?a(Ke)("icon.unpin"):a(Ke)("icon.pin"),"tooltip-placement":"bottom-start","z-index":100},{default:V(()=>[E(n,{icon:o.value},null,8,["icon"])]),_:1},8,["tooltip-content"])}}}),po={class:"h-full flex-col-stretch flex-1-hidden"},fo=R({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}){Ut(v=>({e3ed5c1e:s.value}));const o=t,e=i,[r,n]=jt(),s=b(()=>{const{darkMode:v,themeColor:x}=o,m=et(x,.1,"#ffffff"),u=et(x,.3,"#000000");return v?u:m});function c(v){e("select",v)}function h(){e("toggleSiderCollapse")}return(v,x)=>{const m=Gt;return N(),he(ue,null,[E(a(r),null,{default:V(({label:u,icon:f,active:M,isMini:C})=>[D("div",{class:ae(["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":M,"text-white:65 hover:text-white":t.inverted,"!text-white !bg-primary":M&&t.inverted}])},[(N(),F(st(f),{class:ae([C?"text-icon-small":"text-icon-large"])},null,8,["class"])),D("p",{class:ae(["w-full ellipsis-text text-center text-12px transition-height-300",[C?"h-0 pt-0":"h-20px pt-4px"]])},Ve(u),3)],2)]),_:1}),D("div",po,[lt(v.$slots,"default",{},void 0,!0),E(a(Me),null,{default:V(()=>[(N(!0),he(ue,null,qt(t.menus,u=>(N(),F(a(n),{key:u.key,label:u.label,icon:u.icon,active:u.key===t.activeMenuKey,"is-mini":t.siderCollapse,onClick:f=>c(u.routeKey)},null,8,["label","icon","active","is-mini","onClick"]))),128))]),_:1}),E(m,{"arrow-icon":"",collapsed:t.siderCollapse,"z-index":99,class:ae({"text-white:88 !hover:text-white":t.inverted}),onClick:h},null,8,["collapsed","class"])])],64)}}}),Ye=Xt(fo,[["__scopeId","data-v-584d328b"]]),go={class:"text-16px text-primary font-bold"},xo=R({name:"VerticalMixMenu",__name:"vertical-mix-menu",setup(t){const i=ke(),o=ve(),e=me(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=pe(),{bool:s,setBool:c}=dt(),{firstLevelMenus:h,secondLevelMenus:v,activeFirstLevelMenuKey:x,isActiveFirstLevelMenuHasChildren:m,getActiveFirstLevelMenuKey:u,handleSelectFirstLevelMenu:f}=Ie("VerticalMixMenu"),{selectedKey:M}=fe(),C=b(()=>!e.darkMode&&e.sider.inverted),A=b(()=>v.value.length>0),O=b(()=>A.value&&(s.value||o.mixSiderFixed));function L(W){f(W),m.value&&c(!0)}function K(){c(!1),o.mixSiderFixed||u()}const H=U([]);function $(){if(o.siderCollapse||!M.value){H.value=[];return}H.value=r.getSelectedMenuKeyPath(M.value)}return Oe(()=>i.name,()=>{$()},{immediate:!0}),(W,I)=>{const B=Ct,ne=ge,q=ct;return N(),F(j,{to:`#${a(we)}`},[D("div",{class:"h-full flex",onMouseleave:K},[E(Ye,{menus:a(h),"active-menu-key":a(x),inverted:C.value,"sider-collapse":a(o).siderCollapse,"dark-mode":a(e).darkMode,"theme-color":a(e).themeColor,onSelect:L,onToggleSiderCollapse:a(o).toggleSiderCollapse},{default:V(()=>[E(at,{"show-title":!1,style:J({height:a(e).header.height+"px"})},null,8,["style"])]),_:1},8,["menus","active-menu-key","inverted","sider-collapse","dark-mode","theme-color","onToggleSiderCollapse"]),D("div",{class:"relative h-full transition-width-300",style:J({width:a(o).mixSiderFixed&&A.value?a(e).sider.mixChildMenuWidth+"px":"0px"})},[E(q,{class:"absolute-lt h-full flex-col-stretch nowrap-hidden shadow-sm transition-all-300",inverted:C.value,style:J({width:O.value?a(e).sider.mixChildMenuWidth+"px":"0px"})},{default:V(()=>[D("header",{class:"flex-y-center justify-between px-12px",style:J({height:a(e).header.height+"px"})},[D("h2",go,Ve(a(Ke)("system.title")),1),E(B,{pin:a(o).mixSiderFixed,class:ae({"text-white:88 !hover:text-white":C.value}),onClick:a(o).toggleMixSiderFixed},null,8,["pin","class","onClick"])],4),E(a(Me),null,{default:V(()=>[E(ne,{"expanded-keys":H.value,"onUpdate:expandedKeys":I[0]||(I[0]=le=>H.value=le),mode:"vertical",value:a(M),options:a(v),inverted:C.value,indent:18,"onUpdate:value":a(n)},null,8,["expanded-keys","value","options","inverted","onUpdate:value"])]),_:1})]),_:1},8,["inverted","style"])],4)],32)],8,["to"])}}}),bo={class:"text-16px text-primary font-bold"},yo=R({name:"VerticalHybridHeaderFirst",__name:"vertical-hybrid-header-first",setup(t){const i=ke(),o=ve(),e=me(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=pe(),{bool:s,setBool:c}=dt(),{firstLevelMenus:h,activeFirstLevelMenuKey:v,handleSelectFirstLevelMenu:x,getActiveFirstLevelMenuKey:m,secondLevelMenus:u,activeSecondLevelMenuKey:f,isActiveSecondLevelMenuHasChildren:M,handleSelectSecondLevelMenu:C,getActiveSecondLevelMenuKey:A,childLevelMenus:O,hasChildLevelMenus:L,activeDeepestLevelMenuKey:K}=Ie("VerticalHybridHeaderFirst"),{selectedKey:H}=fe(),$=b(()=>!e.darkMode&&e.sider.inverted),W=b(()=>L.value&&(s.value||o.mixSiderFixed));function I(G){C(G),M.value&&c(!0)}function B(G){if(x(G),u.value.length===0)return;const ee=u.value[0].routeKey;if(!e.sider.autoSelectFirstMenu){u.value.find(xe=>xe.key===ee)?.children?.length&&I(ee);return}K(),c(!1)}function ne(){c(!1),o.mixSiderFixed||(m(),A())}const q=U([]);function le(){if(o.siderCollapse||!H.value){q.value=[];return}q.value=r.getSelectedMenuKeyPath(H.value)}return Oe(()=>i.name,()=>{le()},{immediate:!0}),(G,ee)=>{const X=ge,xe=Ct,Re=ct;return N(),he(ue,null,[(N(),F(j,{to:`#${a(Ne)}`},[E(X,{mode:"horizontal",value:a(v),options:a(h),indent:18,responsive:"","onUpdate:value":B},null,8,["value","options"])],8,["to"])),(N(),F(j,{to:`#${a(we)}`},[D("div",{class:"h-full flex",onMouseleave:ne},[E(Ye,{menus:a(u),"active-menu-key":a(f),inverted:$.value,"sider-collapse":a(o).siderCollapse,"dark-mode":a(e).darkMode,"theme-color":a(e).themeColor,onSelect:I,onToggleSiderCollapse:a(o).toggleSiderCollapse},{default:V(()=>[E(at,{"show-title":!1,style:J({height:a(e).header.height+"px"})},null,8,["style"])]),_:1},8,["menus","active-menu-key","inverted","sider-collapse","dark-mode","theme-color","onToggleSiderCollapse"]),D("div",{class:"relative h-full transition-width-300",style:J({width:a(o).mixSiderFixed&&a(L)?a(e).sider.mixChildMenuWidth+"px":"0px"})},[E(Re,{class:"absolute-lt h-full flex-col-stretch nowrap-hidden shadow-sm transition-all-300",inverted:$.value,style:J({width:W.value?a(e).sider.mixChildMenuWidth+"px":"0px"})},{default:V(()=>[D("header",{class:"flex-y-center justify-between px-12px",style:J({height:a(e).header.height+"px"})},[D("h2",bo,Ve(G.$t("system.title")),1),E(xe,{pin:a(o).mixSiderFixed,class:ae({"text-white:88 !hover:text-white":$.value}),onClick:a(o).toggleMixSiderFixed},null,8,["pin","class","onClick"])],4),E(a(Me),null,{default:V(()=>[E(X,{"expanded-keys":q.value,"onUpdate:expandedKeys":ee[0]||(ee[0]=Le=>q.value=Le),mode:"vertical",value:a(H),options:a(O),inverted:$.value,indent:18,"onUpdate:value":a(n)},null,8,["expanded-keys","value","options","inverted","onUpdate:value"])]),_:1})]),_:1},8,["inverted","style"])],4)],32)],8,["to"]))],64)}}}),So=R({name:"HorizontalMenu",__name:"horizontal-menu",setup(t){const i=Ce(),{routerPushByKeyWithMetaQuery:o}=pe(),{selectedKey:e}=fe();return(r,n)=>{const s=ge;return N(),F(j,{to:`#${a(Ne)}`},[E(s,{mode:"horizontal",value:a(e),options:a(i).menus,indent:18,responsive:"","onUpdate:value":a(o)},null,8,["value","options","onUpdate:value"])],8,["to"])}}}),Co={class:"h-full pt-2"},wo=R({name:"TopHybridSidebarFirst",__name:"top-hybrid-sidebar-first",setup(t){const i=ve(),o=me(),{routerPushByKeyWithMetaQuery:e}=pe(),{firstLevelMenus:r,secondLevelMenus:n,activeFirstLevelMenuKey:s,handleSelectFirstLevelMenu:c,activeDeepestLevelMenuKey:h}=Ie("TopHybridSidebarFirst"),{selectedKey:v}=fe();function x(m){c(m),h()}return(m,u)=>{const f=ge;return N(),he(ue,null,[(N(),F(j,{to:`#${a(Ne)}`},[E(f,{mode:"horizontal",value:a(v),options:a(n),indent:18,responsive:"","onUpdate:value":a(e)},null,8,["value","options","onUpdate:value"])],8,["to"])),(N(),F(j,{to:`#${a(we)}`},[D("div",Co,[E(Ye,{menus:a(r),"active-menu-key":a(s),"sider-collapse":a(i).siderCollapse,"dark-mode":a(o).darkMode,"theme-color":a(o).themeColor,onSelect:x,onToggleSiderCollapse:a(i).toggleSiderCollapse},null,8,["menus","active-menu-key","sider-collapse","dark-mode","theme-color","onToggleSiderCollapse"])])],8,["to"]))],64)}}}),zo=R({name:"TopHybridHeaderFirst",__name:"top-hybrid-header-first",setup(t){const i=ke(),o=ve(),e=me(),r=Ce(),{routerPushByKeyWithMetaQuery:n}=pe(),{firstLevelMenus:s,secondLevelMenus:c,activeFirstLevelMenuKey:h,handleSelectFirstLevelMenu:v,activeDeepestLevelMenuKey:x}=Ie("TopHybridHeaderFirst"),{selectedKey:m}=fe(),u=U([]);function f(C){v(C),x()}function M(){if(o.siderCollapse||!m.value){u.value=[];return}u.value=r.getSelectedMenuKeyPath(m.value)}return Oe(()=>i.name,()=>{M()},{immediate:!0}),(C,A)=>{const O=ge;return N(),he(ue,null,[(N(),F(j,{to:`#${a(Ne)}`},[E(O,{mode:"horizontal",value:a(h),options:a(s),indent:18,responsive:"","onUpdate:value":f},null,8,["value","options"])],8,["to"])),(N(),F(j,{to:`#${a(we)}`},[E(a(Me),null,{default:V(()=>[E(O,{"expanded-keys":u.value,"onUpdate:expandedKeys":A[0]||(A[0]=L=>u.value=L),mode:"vertical",value:a(m),collapsed:a(o).siderCollapse,"collapsed-width":a(e).sider.collapsedWidth,"collapsed-icon-size":22,options:a(c),indent:18,"onUpdate:value":a(n)},null,8,["expanded-keys","value","collapsed","collapsed-width","options","onUpdate:value"])]),_:1})],8,["to"]))],64)}}}),Eo=R({name:"GlobalMenu",__name:"index",setup(t){const i=ve(),o=me(),e=b(()=>({vertical:mo,"vertical-mix":xo,"vertical-hybrid-header-first":yo,horizontal:So,"top-hybrid-sidebar-first":wo,"top-hybrid-header-first":zo})[o.layout.mode]),r=b(()=>o.layout.mode==="vertical"&&i.isMobile);return(n,s)=>(N(),F(st(e.value),{key:r.value}))}});export{Eo as default};
