0&&k("closeLeft",!1)},Ae=()=>{w=T.value.findIndex(f=>f.key===a.value),R1()},Te=p=>{T.value.length>1&&p.key!==C&&(p.closeable=!0)},Pe=p=>{p.key!==a.value&&(p.closeable=!1)},Ee=()=>{S()&&H().then(()=>{var f;(f=o.value)==null||f.scrollTo({left:99999,behavior:"smooth"})})},ze=()=>{H().then(()=>{var f;const p=k1(`attr:${m}="${a.value}"`);if(p!=null&&p.length){const[A]=p;(f=A.scrollIntoView)==null||f.call(A)}})};return Q(()=>T.value,(p,f)=>{j.value.forEach(A=>{z.includes(A.key)&&(p.length>1?A.disabled=!1:A.disabled=!0)}),f!=null&&f.length&&(p.length>(f==null?void 0:f.length)?Ee():p.length===(f==null?void 0:f.length)&&ze())},{immediate:!0}),Q(()=>g.actionDropdownShow,()=>{R1()}),t({}),{modelMenuTagOptions:T,changeMenuModelValue:c,closeCurrentMenuTag:v,menuKey:a,handleTagClick:x,moreOptions:j,handleScrollX:i1,scrollRef:o,scrollBarUUID:r,actionDropdownSelect:a1,rootPath:C,actionState:g,handleContextMenu:Le,setCurrentContentmenuIndex:Ae,menuTagMouseenter:Te,menuTagMouseleave:Pe,MENU_TAG_DATA:m}},render(){let e;return i(oe,null,{default:()=>[i("div",{class:"menu-tag"},[i(e1,{options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onClickoutside:()=>{this.actionState.actionDropdownShow=!1},onSelect:this.actionDropdownSelect.bind(this)},null),i(I,{class:"menu-tag-sapce",wrap:!1,align:"center",justify:"space-between",inline:!0,wrapItem:!1},{default:()=>[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__left-arrow",onClick:this.handleScrollX.bind(this,"left")},null),i(ee,F({xScrollable:!0,ref:"scrollRef"},{id:this.scrollBarUUID}),{default:()=>[i(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Et(e=this.modelMenuTagOptions.map((t,o)=>i(n2,F({size:"large",strong:!0,closable:t.closeable,onClose:this.closeCurrentMenuTag.bind(this,o),type:t.key===this.menuKey?"primary":"default",bordered:!1},{onClick:this.handleTagClick.bind(this,t),onContextmenu:this.handleContextMenu.bind(this,o),onMouseenter:this.menuTagMouseenter.bind(this,t),onMouseleave:this.menuTagMouseleave.bind(this,t),[this.MENU_TAG_DATA]:t.path}),{default:()=>{var n;return[typeof t.label=="string"?t.label:(n=t.label)==null?void 0:n.call(t)]}})))?e:{default:()=>[e]})]}),i("div",{class:"menu-tag__right-wrapper"},[i(L,{name:"expanded",width:"20",height:"28",customClassName:"menu-tag__right-arrow",onClick:this.handleScrollX.bind(this,"right")},null),i(e1,{options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this)},{default:()=>[i(L,{name:"more",width:"20",height:"28",customClassName:"menu-tag__right-setting",onClick:this.setCurrentContentmenuIndex.bind(this)},null)]})])]})])]})}});const xt=O({__name:"TransitionComponent",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){const t=Se(),{keepAliveInclude:o}=D(t),{setupKeepAlive:n,maxKeepAliveLength:l,keepAliveExclude:a}=se;return(s,c)=>{const u=Ie("RouterView");return s1(),c1(u,null,{default:I1(({Component:h,route:_})=>[i(Ze,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:I1(()=>[r1(n)?(s1(),c1(Ve,{key:0,max:r1(l),include:r1(o),exclude:r1(a)},[(s1(),c1(V1(h),{key:_.fullPath}))],1032,["max","include","exclude"])):(s1(),c1(V1(h),{key:_.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),fe=O({name:"ContentWrapper",setup(){const e=V(),{reloadRouteSwitch:t}=D(e);return{reloadRouteSwitch:t}},render(){return this.reloadRouteSwitch?i(xt,{class:"content-wrapper"},null):i(De,null,null)}}),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"}));const It=O({name:"FooterWrapper",setup(){const{layout:{copyright:e}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^4.2.3","@vitejs/plugin-vue-jsx":"^3.0.1",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.8","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"4.0.2"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};return{copyright:e}},render(){return this.copyright?i("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Vt=e=>{const t=N1(e[0]),o=N1(e[1]);return M(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`}))},F1=w2("isAppLockScreen",!1,sessionStorage,{mergeDefaults:!0}),y1=()=>({setLockAppScreen:o=>{F1.value=o},getLockAppScreen:()=>F1.value}),K1=O({name:"RLayout",setup(){const e=P(),t=P(),o=V(),{height:n}=S2(),{menuTagSwitch:l}=D(o),{getLockAppScreen:a}=y1(),s=Vt([e,t]);return{windowHeight:n,modelMenuTagSwitch:l,cssVarsRef:s,getLockAppScreen:a,LAYOUT_CONTENT_REF:me,layoutSiderBarRef:e,layoutMenuTagRef:t}},render(){return i("div",{class:["layout"],style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[this.getLockAppScreen()?"":i(j1,{class:"layout-full",hasSider:!0},{default:()=>[i(bt,null,null),i(j1,{class:"layout__view-container__layout"},{default:()=>[i(Pt,{ref:"layoutSiderBarRef"},null),this.modelMenuTagSwitch?i(zt,{ref:"layoutMenuTagRef"},null):"",i(i2,{ref:"LAYOUT_CONTENT_REF",class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[i(fe,null,null),i(It,null,null)]})]})]})])}}),ge=()=>yt(vt()),W1=e=>e.startsWith("/"),ve=(e,t=[],o="")=>Array.isArray(e)?(e.forEach(l=>{var a;(a=l.children)!=null&&a.length?ve(l.children,t,o+(W1(l.path)?l.path:"/"+l.path)):(l.path=o+(W1(l.path)?l.path:"/"+l.path),t.push(l))}),t):[],Zt=e=>Array.isArray(e)?ve(Ne(e)):[],{path:Dt}=o1,jt=()=>[{path:"/",name:"login",component:()=>y(()=>import("./index-92fe7e21.js"),["assets/index-92fe7e21.js","assets/@vueuse-da6970f7.js","assets/@vue-b109a2ec.js","assets/naive-ui-6aaba7d0.js","assets/date-fns-6c225a00.js","assets/clipboard-9c798d85.js","assets/vueuc-7f8201e7.js","assets/evtd-b614532e.js","assets/seemly-dc6f1e91.js","assets/@css-render-555d5129.js","assets/vooks-5e400110.js","assets/vdirs-b0483831.js","assets/@juggle-41516555.js","assets/css-render-d3958e6a.js","assets/@emotion-8a8e73f6.js","assets/lodash-es-92f3d5bd.js","assets/treemate-25c27bff.js","assets/date-fns-tz-39604516.js","assets/async-validator-dee29e8b.js","assets/qrcode.vue-30c333e7.js","assets/index-23ab62f6.js","assets/pinia-f785c1d8.js","assets/vue-demi-71ba0ef2.js","assets/vue-i18n-5eb41bb0.js","assets/@intlify-deb68647.js","assets/dayjs-b1052bb4.js","assets/vue-router-b96fe403.js","assets/screenfull-b3e6dc1f.js","assets/pinia-plugin-persistedstate-d93b4f94.js","assets/index-7b82684d.css"])},{path:"/",name:"layout",redirect:Dt,component:K1,children:Zt(ge())},{path:"/:catchAll(.*)",name:"errorPage",component:K1,redirect:"/error"}];let X;const Nt=()=>v2({history:y2(),routes:jt(),scrollBehavior:e=>(_t(e),{top:0,left:0})}),ye=e=>{X=Nt(),Bt(X),_1(),e.use(X)},_1=()=>{try{if(X)return{router:X};throw new Error}catch{throw new Error("router is not defined")}},_e=e=>{const{signinCallback:t}=D(x1()),o=M(()=>t.value.role),{role:n}=e;return u1!=null&&u1.length&&u1.includes(o.value)||!n||!(n!=null&&n.length)?!0:n?n.includes(o.value):!0},be=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n}=t;return n?!1:!n&&!o?!0:!o},Ht=e=>{e.beforeEach(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window==null?void 0:window.$loadingBar)==null||t.error()})},Bt=e=>{Ht(e),N2(e)},h1=(e=!0)=>{const{router:t}=_1(),{push:o,replace:n}=t,{path:l}=o1;A1("menuKey",l),e?o(l):n(l)},Ut=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,we=(e,t,o)=>{const n=[];if(Ut(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const l of e.children){const a=we(l,t,o);a.length>0&&n.push(e,...a)}return n},$t=(e,t,o)=>{const n=[];for(const l of e){const a=we(l,t,o);a.length>0&&n.push(...a)}return n},Ft=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0",axios:"^1.2.0",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.4",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0","qrcode.vue":"^3.3.4",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^4.2.3","@vitejs/plugin-vue-jsx":"^3.0.1",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-px-to-viewport":"^1.1.1",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^4.3.8","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.6.4","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.7.26","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"4.0.2"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}},n=o?o.title:"";document.title=t+" - "+n},Kt=e=>{const{meta:t}=e;if(!t.icon)return;if(l1(t.icon,"Object"))return()=>t.icon;const o=N(L,{name:t.icon,size:$.MENU_COLLAPSED_ICON_SIZE},{});return()=>o},q1=()=>{const{path:e}=o1;return W("menuKey","sessionStorage",e)},b1=g1("menu",()=>{const{router:e}=_1(),t=_2(),{t:o}=n1(),{setKeepAliveInclude:n}=Se(),l=B({menuKey:q1(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[]}),a=P(!0),s=(r,d)=>$t(r,"key",d),c=(r,d)=>{const{meta:g}=d;l.breadcrumbOptions=s(l.options,r),g.sameLevel&&H().then(()=>{l.breadcrumbOptions.find(v=>v.path===d.path)||l.breadcrumbOptions.push(d)})},u=(r,d=!0)=>{const m=Array.isArray(r)?[...r]:[r];d?l.menuTagOptions.push(...m):l.menuTagOptions=m},h=(r,d)=>{l.menuTagOptions.find(m=>m.path===r)||l.menuTagOptions.push(d)},_=(r,d)=>{const{meta:g,path:m}=d;if(g.windowOpen)window.open(g.windowOpen);else{if(String(r).startsWith("/"))e.push(m);else{const k=s(l.options,r).map(x=>x.key).join("/");e.push(k)}const v=(m.match(new RegExp("/","g"))||[]).length;n(d),Ft(d),!g.sameLevel||g.sameLevel&&v===1?(h(r,d),c(r,d),l.menuKey=r,A1("menuKey",r)):c(l.menuKey||"",d)}},b=async r=>{const d=(r.match(new RegExp("/","g"))||[]).length;let g=r;if(d>1){const v=r.split("/").filter(k=>k);g=v[v.length-1]}const m=(v,k)=>{var x;for(const S of k)if((x=S.children)!=null&&x.length&&m(v,S.children),v===S.key){_(v,S);break}};m(g,l.options)},C=()=>new Promise(r=>{const d=m=>{const{meta:v}=m,k=M(()=>v!=null&&v.i18nKey?o(`${v.i18nKey}`):v==null?void 0:v.noLocalTitle),x={...m,key:m.path,label:()=>N(Q1,null,{default:()=>k.value}),breadcrumbLabel:k.value},S=Object.assign({},x,{icon:Kt(m)});return m.path===q1()&&h(m.path,S),S.show=be(S),S},g=(m,v)=>{var x;const k=[];for(const S of m){if((x=S.children)!=null&&x.length)S.children=g(S.children);else if(!_e(S.meta))continue;k.push(d(S))}return k};l.options=g(ge()),r()}),z=r=>l.collapsed=r,w=(r,d=1)=>l.menuTagOptions.splice(r,d),T=()=>{l.menuTagOptions=[]},j=async()=>{a.value&&await C(),a.value=!1};return Q(()=>t.fullPath,async r=>{var m;const d=/^([^?]+)/,g=(m=r.match(d))==null?void 0:m[1];await j(),await b(g||"")},{immediate:!0}),{...K(l),changeMenuModelValue:_,setupAppMenu:C,collapsedMenu:z,spliceMenTagOptions:w,emptyMenuTagOptions:T,setMenuTagOptions:u}},{persist:{key:"piniaMenuStore",storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey"]}}),x1=g1("signin",()=>{const e=B({signinCallback:{}}),t=n=>new Promise((l,a)=>{He(n)?a({code:1,message:"登陆失败",data:null}):(e.signinCallback={role:"admin",name:n.name,avatar:"https://usc1.contabostorage.com/c2e495d7890844d392e8ec0c6e5d77eb:image/longmao.jpeg"},l({code:0,message:"登陆成功",data:e.signinCallback}))}),o=()=>{window.$message.info("账号退出中..."),L2("all-sessionStorage"),setTimeout(()=>window.location.reload())};return{...K(e),signin:t,logout:o}},{persist:{key:"piniaSigninStore",paths:["signinCallback"],storage:sessionStorage}}),Se=g1("keepAlive",()=>{const{maxKeepAliveLength:e}=se,t=B({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=l=>{const a=o(),{name:s,meta:{keepAlive:c}}=l;if(c){if(a