diff --git a/index.html b/index.html index 99323bb2..366afcd2 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ V3 Admin Vite - + diff --git a/static/403-BKRJE9bI.js b/static/403-D7tytMNe.js similarity index 99% rename from static/403-BKRJE9bI.js rename to static/403-D7tytMNe.js index c31561fa..ad8f68f7 100644 --- a/static/403-BKRJE9bI.js +++ b/static/403-D7tytMNe.js @@ -1 +1 @@ -import{E as r}from"./ErrorPageLayout-nE_CgRJH.js";import{q as e,t as s,aK as l,p as i,M as h,O as n,U as p,u as c}from"./vue-C8lPpR34.js";import"./index-B0wv9L4V.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default}; +import{E as r}from"./ErrorPageLayout-DaOz0Uwb.js";import{q as e,t as s,aK as l,p as i,M as h,O as n,U as p,u as c}from"./vue-C8lPpR34.js";import"./index-BE9-SrlX.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default}; diff --git a/static/404-DGGy9tEN.js b/static/404-CF8-5Zez.js similarity index 99% rename from static/404-DGGy9tEN.js rename to static/404-CF8-5Zez.js index 600b1c48..f7c56b83 100644 --- a/static/404-DGGy9tEN.js +++ b/static/404-CF8-5Zez.js @@ -1 +1 @@ -import{E as c}from"./ErrorPageLayout-nE_CgRJH.js";import{q as l,t as h,aK as e,p as s,M as p,O as M,U as f,u as i}from"./vue-C8lPpR34.js";import"./index-B0wv9L4V.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default}; +import{E as c}from"./ErrorPageLayout-DaOz0Uwb.js";import{q as l,t as h,aK as e,p as s,M as p,O as M,U as f,u as i}from"./vue-C8lPpR34.js";import"./index-BE9-SrlX.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default}; diff --git a/static/ErrorPageLayout-nE_CgRJH.js b/static/ErrorPageLayout-DaOz0Uwb.js similarity index 87% rename from static/ErrorPageLayout-nE_CgRJH.js rename to static/ErrorPageLayout-DaOz0Uwb.js index d1779b34..9ee67db0 100644 --- a/static/ErrorPageLayout-nE_CgRJH.js +++ b/static/ErrorPageLayout-DaOz0Uwb.js @@ -1 +1 @@ -import{_}from"./index-B0wv9L4V.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-C8lPpR34.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E}; +import{_}from"./index-BE9-SrlX.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-C8lPpR34.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E}; diff --git a/static/SwitchRoles-D1AQaOBi.js b/static/SwitchRoles-kikk-6cd.js similarity index 91% rename from static/SwitchRoles-D1AQaOBi.js rename to static/SwitchRoles-kikk-6cd.js index e886950d..bed07c2e 100644 --- a/static/SwitchRoles-D1AQaOBi.js +++ b/static/SwitchRoles-kikk-6cd.js @@ -1 +1 @@ -import{e as u,_ as c}from"./index-B0wv9L4V.js";import{p as _,a as p,b as m,ai as r,q as v,t as f,v as t,T as b,u as w,U as a,O as S}from"./vue-C8lPpR34.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+b(w(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:S(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S}; +import{e as u,_ as c}from"./index-BE9-SrlX.js";import{p as _,a as p,b as m,ai as r,q as v,t as f,v as t,T as b,u as w,U as a,O as S}from"./vue-C8lPpR34.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+b(w(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:S(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S}; diff --git a/static/directive-C5RHvCqh.js b/static/directive-5s8A9lch.js similarity index 95% rename from static/directive-C5RHvCqh.js rename to static/directive-5s8A9lch.js index e248e874..c757c550 100644 --- a/static/directive-C5RHvCqh.js +++ b/static/directive-5s8A9lch.js @@ -1 +1 @@ -import{j as g,_ as b}from"./index-B0wv9L4V.js";import{S as y}from"./SwitchRoles-D1AQaOBi.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; +import{j as g,_ as b}from"./index-BE9-SrlX.js";import{S as y}from"./SwitchRoles-kikk-6cd.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; diff --git a/static/index-uCmh9mXK.js b/static/index-B5EWuk_r.js similarity index 91% rename from static/index-uCmh9mXK.js rename to static/index-B5EWuk_r.js index ef34a2de..2b06532d 100644 --- a/static/index-uCmh9mXK.js +++ b/static/index-B5EWuk_r.js @@ -1 +1 @@ -import{_ as i}from"./index-B0wv9L4V.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; +import{_ as i}from"./index-BE9-SrlX.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; diff --git a/static/index-B0wv9L4V.js b/static/index-BE9-SrlX.js similarity index 97% rename from static/index-B0wv9L4V.js rename to static/index-BE9-SrlX.js index acd37b6c..331d1bfe 100644 --- a/static/index-B0wv9L4V.js +++ b/static/index-BE9-SrlX.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-BWHUQzTN.js","static/vue-C8lPpR34.js","static/useWatermark-BiV6n824.js","static/element-DU-WrzgO.js","static/index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js","static/vxe-CSEOtpXg.js","static/index-B144nFLm.css","static/index-C8JYtJ54.js","static/403-BKRJE9bI.js","static/ErrorPageLayout-nE_CgRJH.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-DGGy9tEN.js","static/index-kwwTM01a.js","static/index-BOQekaY2.css","static/index-D_dO9tEl.js","static/index-Dv11vANz.css","static/index-CH2sp0ss.js","static/index-Bs2zO2TX.js","static/index-BhIxLZ5z.js","static/index-krJKiOLS.css","static/index-Dj0OnqQ1.js","static/index-uCmh9mXK.js","static/index-CDm88bV6.css","static/index-mQadOxHN.js","static/index-BEL73lzN.js","static/index-Dy9yaHPf.js","static/index-CZrxhyQB.js","static/index-C1NzFXNc.js","static/index-D2TKIhU0.js","static/use-fetch-select-Ct_GpQYp.js","static/use-fullscreen-loading-DRZtcefe.js","static/use-watermark-l9p6BSeM.js","static/use-watermark-BtM2la4P.css","static/page-CYJJMmbX.js","static/SwitchRoles-D1AQaOBi.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-C5RHvCqh.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]); -var Mt=Object.defineProperty;var jt=(e,t,n)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>jt(e,typeof t!="symbol"?t+"":t,n);import{a as B,w as ot,p as st,M as zt,u as Ht,ai as Ie,q as it,O as qt,U as Wt,ay as Jt,az as $t,aA as Kt,aB as ne,b as at,A as Gt,f as Xt,t as Yt,v as Zt,au as Qt}from"./vue-C8lPpR34.js";import{E as en,b as Y,c as tn,m as nn,e as rn,g as on,i as sn,f as an}from"./element-DU-WrzgO.js";import{V as _e,a as un}from"./vxe-CSEOtpXg.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const z="v3-admin-vite";class R{}I(R,"TOKEN",`${z}-token-key`),I(R,"CONFIG_LAYOUT",`${z}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${z}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${z}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${z}-visited-views-key`),I(R,"CACHED_VIEWS",`${z}-cached-views-key`);const cn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},ln=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Ho=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),Wo=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},dn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),fn=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},mn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},pn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},hn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},En=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},ut="normal",gn=[{title:"默认",name:ut},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Te=B(dn()||ut),yn=e=>{Te.value=e},bn=e=>{document.documentElement.className=e},wn=()=>{ot(()=>{const e=Te.value;bn(e),fn(e)})};function Sn(){return{themeList:gn,activeThemeName:Te,initTheme:wn,setTheme:yn}}var vn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const _n=st({__name:"App",setup(e){const{initTheme:t}=Sn();return t(),en({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const o=Ie("router-view"),s=Ie("el-config-provider");return it(),zt(s,{locale:Ht(vn)},{default:qt(()=>[Wt(o)]),_:1},8,["locale"])}}}),Re=Jt(),Tn="modulepreload",Rn=function(e){return"/v3-admin-vite/"+e},Ve={},T=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=Rn(h),h in Ve)return;Ve[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Tn,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,b)=>{l.addEventListener("load",E),l.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},An=$t("/v3-admin-vite/"),ct={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-BWHUQzTN.js"),__vite__mapDeps([0,1,2,3,4,5,6])),lt=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-C8JYtJ54.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-BKRJE9bI.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-DGGy9tEN.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-kwwTM01a.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-D_dO9tEl.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-CH2sp0ss.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-Bs2zO2TX.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-Dj0OnqQ1.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-uCmh9mXK.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-mQadOxHN.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-BEL73lzN.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Dy9yaHPf.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-CZrxhyQB.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-C1NzFXNc.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-D2TKIhU0.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-Ct_GpQYp.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-DRZtcefe.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-l9p6BSeM.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Ue=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-CYJJMmbX.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-C5RHvCqh.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Kt({history:An,routes:lt});function Cn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}var On=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(On||{}),dt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(dt||{});const Jo="opened",$o="closed",Fn={layoutMode:dt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},Dn={...Fn,...cn()},ft=ne("settings",()=>{const e={};for(const[n,r]of Object.entries(Dn)){const o=B(r);e[n]=o,at(o,()=>{const s=t();ln(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),xn=ne("tags-view",()=>{const{cacheTagsView:e}=ft(),t=B(e?mn():[]),n=B(e?hn():[]);return ot(()=>{pn(t.value),En(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(b=>b.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(b=>b.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var b;return((b=E.meta)==null?void 0:b.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function X(e){for(var t=1;t"u")){i=X({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cAe.get(R.TOKEN),Me=e=>{Ae.set(R.TOKEN,e)},je=()=>{Ae.remove(R.TOKEN)};function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pn}=Object.prototype,{getPrototypeOf:Oe}=Object,re=(e=>t=>{const n=Pn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>re(t)===e),oe=e=>t=>typeof t===e,{isArray:H}=Array,J=oe("undefined");function Bn(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=P("ArrayBuffer");function Ln(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Nn=oe("string"),x=oe("function"),ht=oe("number"),se=e=>e!==null&&typeof e=="object",In=e=>e===!0||e===!1,Z=e=>{if(re(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vn=P("Date"),Un=P("File"),Mn=P("Blob"),jn=P("FileList"),zn=e=>se(e)&&x(e.pipe),Hn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=re(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},qn=P("URLSearchParams"),[Wn,Jn,$n,Kn]=["ReadableStream","Request","Response","Headers"].map(P),Gn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gt=e=>!J(e)&&e!==U;function me(){const{caseless:e}=gt(this)&&this||{},t={},n=(r,o)=>{const s=e&&Et(t,o)||o;Z(t[s])&&Z(r)?t[s]=me(t[s],r):Z(r)?t[s]=me({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r($(t,(o,s)=>{n&&x(o)?e[s]=mt(o,n):e[s]=o},{allOwnKeys:r}),e),Yn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},er=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tr=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),rr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},or=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sr=P("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ze=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ar=P("RegExp"),yt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},ur=e=>{yt(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},lr=()=>{},dr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ue="abcdefghijklmnopqrstuvwxyz",He="0123456789",bt={DIGIT:He,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+He},fr=(e=16,t=bt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mr(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pr=e=>{const t=new Array(10),n=(r,o)=>{if(se(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return $(r,(i,c)=>{const h=n(i,o+1);!J(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},hr=P("AsyncFunction"),Er=e=>e&&(se(e)||x(e))&&x(e.then)&&x(e.catch),wt=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(U.postMessage)),gr=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||wt,a={isArray:H,isArrayBuffer:pt,isBuffer:Bn,isFormData:Hn,isArrayBufferView:Ln,isString:Nn,isNumber:ht,isBoolean:In,isObject:se,isPlainObject:Z,isReadableStream:Wn,isRequest:Jn,isResponse:$n,isHeaders:Kn,isUndefined:J,isDate:Vn,isFile:Un,isBlob:Mn,isRegExp:ar,isFunction:x,isStream:zn,isURLSearchParams:qn,isTypedArray:nr,isFileList:jn,forEach:$,merge:me,extend:Xn,trim:Gn,stripBOM:Yn,inherits:Zn,toFlatObject:Qn,kindOf:re,kindOfTest:P,endsWith:er,toArray:tr,forEachEntry:rr,matchAll:or,isHTMLForm:sr,hasOwnProperty:ze,hasOwnProp:ze,reduceDescriptors:yt,freezeMethods:ur,toObjectSet:cr,toCamelCase:ir,noop:lr,toFiniteNumber:dr,findKey:Et,global:U,isContextDefined:gt,ALPHABET:bt,generateString:fr,isSpecCompliantForm:mr,toJSONObject:pr,isAsyncFn:hr,isThenable:Er,setImmediate:wt,asap:gr};function g(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const St=g.prototype,vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vt[e]={value:e}});Object.defineProperties(g,vt);Object.defineProperty(St,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(St);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const yr=null;function pe(e){return a.isPlainObject(e)||a.isArray(e)}function _t(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,n){return e?e.concat(t).map(function(o,s){return o=_t(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function br(e){return a.isArray(e)&&!e.some(pe)}const wr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&br(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=_t(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?qe([f],S,s):i===null?f:f+"[]",d(v))}),!1}return pe(u)?!0:(t.append(qe(m,f,s),d(u)),!1)}const l=[],E=Object.assign(wr,{defaultVisitor:p,convertValue:d,isVisitable:pe});function b(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,w){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(w)?w.trim():w,f,E))===!0&&b(y,f?f.concat(w):[w])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return b(e),t}function We(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fe(e,t){this._pairs=[],e&&ie(e,this,t)}const Tt=Fe.prototype;Tt.append=function(t,n){this._pairs.push([t,n])};Tt.toString=function(t){const n=t?function(r){return t.call(this,r,We)}:We;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||Sr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Fe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vr=typeof URLSearchParams<"u"?URLSearchParams:Fe,_r=typeof FormData<"u"?FormData:null,Tr=typeof Blob<"u"?Blob:null,Rr={isBrowser:!0,classes:{URLSearchParams:vr,FormData:_r,Blob:Tr},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,Ar=De&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),Cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Or=De&&window.location.href||"http://localhost",Fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:Ar,hasStandardBrowserWebWorkerEnv:Cr,navigator:he,origin:Or},Symbol.toStringTag,{value:"Module"})),F={...Fr,...Rr};function Dr(e,t){return ie(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function xr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=kr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(xr(r),o,n,0)}),n}return null}function Pr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const K={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Pr(t)):t}],transformResponse:[function(t){const n=this.transitional||K.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{K.headers[e]={}});const Br=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lr=e=>{const t={};let n,r,o;return e&&e.split(` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-VZ0VkeeC.js","static/vue-C8lPpR34.js","static/useWatermark-BiV6n824.js","static/element-DU-WrzgO.js","static/index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js","static/vxe-CSEOtpXg.js","static/index-BkAVfwl9.css","static/index-C8JYtJ54.js","static/403-D7tytMNe.js","static/ErrorPageLayout-DaOz0Uwb.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-CF8-5Zez.js","static/index-Da9_kvtF.js","static/index-BOQekaY2.css","static/index-C_JBzt31.js","static/index-Dv11vANz.css","static/index-Cnz7AM32.js","static/index-BoZ3CAHp.js","static/index-D5ZJGHo5.js","static/index-krJKiOLS.css","static/index-DQRWuNcM.js","static/index-B5EWuk_r.js","static/index-CDm88bV6.css","static/index-mQadOxHN.js","static/index-CmhPhf-3.js","static/index-Dy9yaHPf.js","static/index-CZrxhyQB.js","static/index-C1NzFXNc.js","static/index-D2TKIhU0.js","static/use-fetch-select-Ct_GpQYp.js","static/use-fullscreen-loading-DRZtcefe.js","static/use-watermark-BI75wNKE.js","static/use-watermark-BtM2la4P.css","static/page-ad5orih1.js","static/SwitchRoles-kikk-6cd.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-5s8A9lch.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]); +var Mt=Object.defineProperty;var jt=(e,t,n)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>jt(e,typeof t!="symbol"?t+"":t,n);import{a as B,w as ot,p as st,M as zt,u as Ht,ai as Ie,q as it,O as qt,U as Wt,ay as Jt,az as $t,aA as Kt,aB as ne,b as at,A as Gt,f as Xt,t as Yt,v as Zt,au as Qt}from"./vue-C8lPpR34.js";import{E as en,b as Y,c as tn,m as nn,e as rn,g as on,i as sn,f as an}from"./element-DU-WrzgO.js";import{V as _e,a as un}from"./vxe-CSEOtpXg.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const z="v3-admin-vite";class R{}I(R,"TOKEN",`${z}-token-key`),I(R,"CONFIG_LAYOUT",`${z}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${z}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${z}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${z}-visited-views-key`),I(R,"CACHED_VIEWS",`${z}-cached-views-key`);const cn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},ln=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Ho=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),Wo=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},dn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),fn=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},mn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},pn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},hn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},En=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},ut="normal",gn=[{title:"默认",name:ut},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Te=B(dn()||ut),yn=e=>{Te.value=e},bn=e=>{document.documentElement.className=e},wn=()=>{ot(()=>{const e=Te.value;bn(e),fn(e)})};function Sn(){return{themeList:gn,activeThemeName:Te,initTheme:wn,setTheme:yn}}var vn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const _n=st({__name:"App",setup(e){const{initTheme:t}=Sn();return t(),en({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const o=Ie("router-view"),s=Ie("el-config-provider");return it(),zt(s,{locale:Ht(vn)},{default:qt(()=>[Wt(o)]),_:1},8,["locale"])}}}),Re=Jt(),Tn="modulepreload",Rn=function(e){return"/v3-admin-vite/"+e},Ve={},T=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=Rn(h),h in Ve)return;Ve[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Tn,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,b)=>{l.addEventListener("load",E),l.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},An=$t("/v3-admin-vite/"),ct={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-VZ0VkeeC.js"),__vite__mapDeps([0,1,2,3,4,5,6])),lt=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-C8JYtJ54.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-D7tytMNe.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-CF8-5Zez.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-Da9_kvtF.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-C_JBzt31.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-Cnz7AM32.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-BoZ3CAHp.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-DQRWuNcM.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-B5EWuk_r.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-mQadOxHN.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-CmhPhf-3.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Dy9yaHPf.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-CZrxhyQB.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-C1NzFXNc.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-D2TKIhU0.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-Ct_GpQYp.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-DRZtcefe.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-BI75wNKE.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Ue=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-ad5orih1.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-5s8A9lch.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Kt({history:An,routes:lt});function Cn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}var On=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(On||{}),dt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(dt||{});const Jo="opened",$o="closed",Fn={layoutMode:dt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},Dn={...Fn,...cn()},ft=ne("settings",()=>{const e={};for(const[n,r]of Object.entries(Dn)){const o=B(r);e[n]=o,at(o,()=>{const s=t();ln(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),xn=ne("tags-view",()=>{const{cacheTagsView:e}=ft(),t=B(e?mn():[]),n=B(e?hn():[]);return ot(()=>{pn(t.value),En(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(b=>b.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(b=>b.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var b;return((b=E.meta)==null?void 0:b.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function X(e){for(var t=1;t"u")){i=X({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cAe.get(R.TOKEN),Me=e=>{Ae.set(R.TOKEN,e)},je=()=>{Ae.remove(R.TOKEN)};function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pn}=Object.prototype,{getPrototypeOf:Oe}=Object,re=(e=>t=>{const n=Pn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>re(t)===e),oe=e=>t=>typeof t===e,{isArray:H}=Array,J=oe("undefined");function Bn(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=P("ArrayBuffer");function Ln(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Nn=oe("string"),x=oe("function"),ht=oe("number"),se=e=>e!==null&&typeof e=="object",In=e=>e===!0||e===!1,Z=e=>{if(re(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vn=P("Date"),Un=P("File"),Mn=P("Blob"),jn=P("FileList"),zn=e=>se(e)&&x(e.pipe),Hn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=re(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},qn=P("URLSearchParams"),[Wn,Jn,$n,Kn]=["ReadableStream","Request","Response","Headers"].map(P),Gn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gt=e=>!J(e)&&e!==U;function me(){const{caseless:e}=gt(this)&&this||{},t={},n=(r,o)=>{const s=e&&Et(t,o)||o;Z(t[s])&&Z(r)?t[s]=me(t[s],r):Z(r)?t[s]=me({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r($(t,(o,s)=>{n&&x(o)?e[s]=mt(o,n):e[s]=o},{allOwnKeys:r}),e),Yn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},er=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tr=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),rr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},or=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sr=P("HTMLFormElement"),ir=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ze=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ar=P("RegExp"),yt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},ur=e=>{yt(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},lr=()=>{},dr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ue="abcdefghijklmnopqrstuvwxyz",He="0123456789",bt={DIGIT:He,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+He},fr=(e=16,t=bt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mr(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pr=e=>{const t=new Array(10),n=(r,o)=>{if(se(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return $(r,(i,c)=>{const h=n(i,o+1);!J(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},hr=P("AsyncFunction"),Er=e=>e&&(se(e)||x(e))&&x(e.then)&&x(e.catch),wt=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(U.postMessage)),gr=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||wt,a={isArray:H,isArrayBuffer:pt,isBuffer:Bn,isFormData:Hn,isArrayBufferView:Ln,isString:Nn,isNumber:ht,isBoolean:In,isObject:se,isPlainObject:Z,isReadableStream:Wn,isRequest:Jn,isResponse:$n,isHeaders:Kn,isUndefined:J,isDate:Vn,isFile:Un,isBlob:Mn,isRegExp:ar,isFunction:x,isStream:zn,isURLSearchParams:qn,isTypedArray:nr,isFileList:jn,forEach:$,merge:me,extend:Xn,trim:Gn,stripBOM:Yn,inherits:Zn,toFlatObject:Qn,kindOf:re,kindOfTest:P,endsWith:er,toArray:tr,forEachEntry:rr,matchAll:or,isHTMLForm:sr,hasOwnProperty:ze,hasOwnProp:ze,reduceDescriptors:yt,freezeMethods:ur,toObjectSet:cr,toCamelCase:ir,noop:lr,toFiniteNumber:dr,findKey:Et,global:U,isContextDefined:gt,ALPHABET:bt,generateString:fr,isSpecCompliantForm:mr,toJSONObject:pr,isAsyncFn:hr,isThenable:Er,setImmediate:wt,asap:gr};function g(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const St=g.prototype,vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vt[e]={value:e}});Object.defineProperties(g,vt);Object.defineProperty(St,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(St);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const yr=null;function pe(e){return a.isPlainObject(e)||a.isArray(e)}function _t(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,n){return e?e.concat(t).map(function(o,s){return o=_t(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function br(e){return a.isArray(e)&&!e.some(pe)}const wr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&br(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=_t(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?qe([f],S,s):i===null?f:f+"[]",d(v))}),!1}return pe(u)?!0:(t.append(qe(m,f,s),d(u)),!1)}const l=[],E=Object.assign(wr,{defaultVisitor:p,convertValue:d,isVisitable:pe});function b(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,w){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(w)?w.trim():w,f,E))===!0&&b(y,f?f.concat(w):[w])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return b(e),t}function We(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fe(e,t){this._pairs=[],e&&ie(e,this,t)}const Tt=Fe.prototype;Tt.append=function(t,n){this._pairs.push([t,n])};Tt.toString=function(t){const n=t?function(r){return t.call(this,r,We)}:We;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||Sr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Fe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vr=typeof URLSearchParams<"u"?URLSearchParams:Fe,_r=typeof FormData<"u"?FormData:null,Tr=typeof Blob<"u"?Blob:null,Rr={isBrowser:!0,classes:{URLSearchParams:vr,FormData:_r,Blob:Tr},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,Ar=De&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),Cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Or=De&&window.location.href||"http://localhost",Fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:Ar,hasStandardBrowserWebWorkerEnv:Cr,navigator:he,origin:Or},Symbol.toStringTag,{value:"Module"})),F={...Fr,...Rr};function Dr(e,t){return ie(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function xr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=kr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(xr(r),o,n,0)}),n}return null}function Pr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const K={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Pr(t)):t}],transformResponse:[function(t){const n=this.transitional||K.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{K.headers[e]={}});const Br=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lr=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Br[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$e=Symbol("internals");function W(e){return e&&String(e).trim().toLowerCase()}function Q(e){return e===!1||e==null?e:a.isArray(e)?e.map(Q):String(e)}function Nr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ir=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ce(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Vr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ur(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class D{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,h,d){const p=W(h);if(!p)throw new Error("header name must be a non-empty string");const l=a.findKey(o,p);(!l||o[l]===void 0||d===!0||d===void 0&&o[l]!==!1)&&(o[l||h]=Q(c))}const i=(c,h)=>a.forEach(c,(d,p)=>s(d,p,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Ir(t))i(Lr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())s(h,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=W(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Nr(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=W(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ce(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=W(i),i){const c=a.findKey(r,i);c&&(!n||ce(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ce(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=Q(o),delete n[s];return}const c=t?Vr(s):String(s).trim();c!==s&&delete n[s],n[c]=Q(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[$e]=this[$e]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=W(i);r[c]||(Ur(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(D);function le(e,t){const n=this||K,r=t||n,o=D.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ot(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(q,g,{__CANCEL__:!0});function Ft(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[s];i||(i=d),n[o]=h,r[o]=d;let l=s,E=0;for(;l!==o;)E+=n[l++],l=l%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),l=p-n;l>=r?i(d,p):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const ee=(e,t,n=3)=>{let r=0;const o=jr(50,250);return zr(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,h=i-r,d=o(h),p=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:d||void 0,estimated:d&&c&&p?(c-i)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},Ke=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ge=e=>(...t)=>a.asap(()=>e(...t)),Hr=F.hasStandardBrowserEnv?function(){const t=F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),qr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dt(e,t){return e&&!Wr(t)?Jr(e,t):t}const Xe=e=>e instanceof D?{...e}:e;function j(e,t){t=t||{};const n={};function r(d,p,l){return a.isPlainObject(d)&&a.isPlainObject(p)?a.merge.call({caseless:l},d,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function o(d,p,l){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d,l)}else return r(d,p,l)}function s(d,p){if(!a.isUndefined(p))return r(void 0,p)}function i(d,p){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,l){if(l in t)return r(d,p);if(l in e)return r(void 0,d)}const h={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(d,p)=>o(Xe(d),Xe(p),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(p){const l=h[p]||o,E=l(e[p],t[p],p);a.isUndefined(E)&&l!==c||(n[p]=E)}),n}const xt=e=>{const t=j({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=D.from(i),t.url=Rt(Dt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(a.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[d,...p]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...p].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Hr(t.url))){const d=o&&s&&qr.read(s);d&&i.set(o,d)}return t},$r=typeof XMLHttpRequest<"u",Kr=$r&&function(e){return new Promise(function(n,r){const o=xt(e);let s=o.data;const i=D.from(o.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:d}=o,p,l,E,b,u;function f(){b&&b(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const v=D.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};Ft(function(O){n(O),f()},function(O){r(O),f()},_),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new g("Request aborted",g.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||At;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new g(S,_.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,m)),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(S,_){m.setRequestHeader(_,S)}),a.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),d&&([E,u]=ee(d,!0),m.addEventListener("progress",E)),h&&m.upload&&([l,b]=ee(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(p=v=>{m&&(r(!v||v.type?new q(null,e,m):v),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=Mr(o.url);if(w&&F.protocols.indexOf(w)===-1){r(new g("Unsupported protocol "+w+":",g.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Gr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof g?p:new q(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},Xr=function*(e,t){let n=e.byteLength;if(n{const o=Yr(e,t);let s=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:p}=await o.next();if(d){c(),h.close();return}let l=p.byteLength;if(n){let E=s+=l;n(E)}h.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(h){return c(h),o.return()}},{highWaterMark:2})},ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kt=ae&&typeof ReadableStream=="function",Qr=ae&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eo=kt&&Pt(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ze=64*1024,Ee=kt&&Pt(()=>a.isReadableStream(new Response("").body)),te={stream:Ee&&(e=>e.body)};ae&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const to=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(F.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Qr(e)).byteLength},no=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??to(t)},ro=ae&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:d,headers:p,withCredentials:l="same-origin",fetchOptions:E}=xt(e);d=d?(d+"").toLowerCase():"text";let b=Gr([o,s&&s.toAbortSignal()],i),u;const f=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let m;try{if(h&&eo&&n!=="get"&&n!=="head"&&(m=await no(p,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(a.isFormData(r)&&(C=_.headers.get("content-type"))&&p.setContentType(C),_.body){const[O,k]=Ke(m,ee(Ge(h)));r=Ye(_.body,Ze,O,k)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let w=await fetch(u);const v=Ee&&(d==="stream"||d==="response");if(Ee&&(c||v&&f)){const _={};["status","statusText","headers"].forEach(Ne=>{_[Ne]=w[Ne]});const C=a.toFiniteNumber(w.headers.get("content-length")),[O,k]=c&&Ke(C,ee(Ge(c),!0))||[];w=new Response(Ye(w.body,Ze,O,()=>{k&&k(),f&&f()}),_)}d=d||"text";let S=await te[a.findKey(te,d)||"text"](w,e);return!v&&f&&f(),await new Promise((_,C)=>{Ft(_,C,{data:S,headers:D.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:u})})}catch(y){throw f&&f(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,u),{cause:y.cause||y}):g.from(y,y&&y.code,e,u)}}),ge={http:yr,xhr:Kr,fetch:ro};a.forEach(ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,oo=e=>a.isFunction(e)||e===null||e===!1,Bt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : `+s.map(Qe).join(` diff --git a/static/index-B144nFLm.css b/static/index-BkAVfwl9.css similarity index 69% rename from static/index-B144nFLm.css rename to static/index-BkAVfwl9.css index 8b39fbd6..c1ed08ca 100644 --- a/static/index-B144nFLm.css +++ b/static/index-BkAVfwl9.css @@ -1 +1 @@ -@charset "UTF-8";.layout-footer[data-v-18d14396]{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;color:var(--el-text-color-placeholder)}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar{width:8px;height:8px}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#90939955}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:hover{background-color:#90939977}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:active{background-color:#90939999}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-corner{background-color:transparent}.app-main[data-v-e96aa434]{width:100%;display:flex}.app-scrollbar[data-v-e96aa434]{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.app-scrollbar .app-container-grow[data-v-e96aa434]{flex-grow:1}.icon[data-v-a21f53d4]{vertical-align:middle;color:var(--v3-hamburger-text-color)}.el-breadcrumb[data-v-5110efca]{line-height:var(--v3-navigationbar-height)}.el-breadcrumb .no-redirect[data-v-5110efca]{color:var(--el-text-color-placeholder)}.el-breadcrumb a[data-v-5110efca]{font-weight:400}.svg-icon[data-v-9391d27c]{min-width:1em;margin-right:12px;font-size:18px}.el-icon[data-v-9391d27c]{width:1em!important;margin-right:12px!important;font-size:18px}.layout-logo-container[data-v-52f1a9b3]{position:relative;width:100%;height:var(--v3-header-height);line-height:var(--v3-header-height);text-align:center;overflow:hidden}.layout-logo-container .layout-logo[data-v-52f1a9b3]{display:none}.layout-logo-container .layout-logo-text[data-v-52f1a9b3]{height:100%;vertical-align:middle}.layout-mode-top[data-v-52f1a9b3]{height:var(--v3-navigationbar-height);line-height:var(--v3-navigationbar-height)}.collapse .layout-logo[data-v-52f1a9b3]{width:32px;height:32px;vertical-align:middle;display:inline-block}.collapse .layout-logo-text[data-v-52f1a9b3]{display:none}.el-menu--collapse[data-v-a0402d2e] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-a0402d2e] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--5f7dc346);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-a0402d2e]{height:calc(101% - var(--v3-header-height))}.el-scrollbar[data-v-a0402d2e]{height:101%}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper .el-scrollbar__view{height:100%}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-horizontal{display:none}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-vertical{display:var(--52bd9f87)}.el-menu[data-v-a0402d2e]{border:none;min-height:100%;width:100%!important}.el-menu--horizontal[data-v-a0402d2e]{height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item,[data-v-a0402d2e] .el-sub-menu__title,[data-v-a0402d2e] .el-sub-menu .el-menu-item,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item{height:var(--c570f0e2);line-height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item.is-active,[data-v-a0402d2e] .el-menu-item:hover,[data-v-a0402d2e] .el-sub-menu__title.is-active,[data-v-a0402d2e] .el-sub-menu__title:hover,[data-v-a0402d2e] .el-sub-menu .el-menu-item.is-active,[data-v-a0402d2e] .el-sub-menu .el-menu-item:hover,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item.is-active,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item:hover{background-color:var(--4ba5ad12)}[data-v-a0402d2e] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--6d87258a)!important}.card-container[data-v-c0dacc5d]{margin-bottom:10px}.card-container .card-header[data-v-c0dacc5d]{display:flex;justify-content:space-between;align-items:center}.card-container .card-header .card-title[data-v-c0dacc5d]{font-weight:700;margin-right:10px}.card-container .card-header .card-time[data-v-c0dacc5d]{font-size:12px;color:var(--el-text-color-secondary)}.card-container .card-header .card-avatar[data-v-c0dacc5d]{display:flex;align-items:center}.card-container .card-body[data-v-c0dacc5d]{font-size:12px}.notify[data-v-a5fd6355]{margin-right:10px}.notify-history[data-v-a5fd6355]{text-align:center;padding-top:12px;border-top:1px solid var(--el-border-color)}.svg-icon[data-v-889fe0df]{font-size:20px}.svg-icon[data-v-889fe0df]:focus{outline:none}.result-item[data-v-8cd47626]{display:flex;align-items:center;height:56px;padding:0 15px;margin-top:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-8cd47626]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-8cd47626]{width:1em;font-size:18px}.result-item-title[data-v-8cd47626]{flex:1;margin-left:12px}.search-footer[data-v-8dce46e8]{display:flex;color:var(--el-text-color-secondary);font-size:14px}.search-footer-item[data-v-8dce46e8]{display:flex;align-items:center;margin-right:12px}.search-footer-item .svg-icon[data-v-8dce46e8]{margin-right:5px;padding:2px;font-size:20px;background-color:var(--el-fill-color)}.search-footer-total[data-v-8dce46e8]{margin:0 0 0 auto}.search-modal__private .svg-icon{font-size:18px}.search-modal__private .el-dialog__header{display:none}.search-modal__private .el-dialog__footer{border-top:1px solid var(--el-border-color);padding:var(--el-dialog-padding-primary)}.svg-icon[data-v-dc5accb4]{font-size:20px}.svg-icon[data-v-dc5accb4]:focus{outline:none}.navigation-bar[data-v-1ee6dd91]{height:var(--v3-navigationbar-height);overflow:hidden;color:var(--v3-navigationbar-text-color);display:flex;justify-content:space-between}.navigation-bar .hamburger[data-v-1ee6dd91]{display:flex;align-items:center;height:100%;padding:0 15px;cursor:pointer}.navigation-bar .breadcrumb[data-v-1ee6dd91]{flex:1}@media screen and (max-width: 576px){.navigation-bar .breadcrumb[data-v-1ee6dd91]{display:none}}.navigation-bar .sidebar[data-v-1ee6dd91]{flex:1;min-width:0px}.navigation-bar .sidebar[data-v-1ee6dd91] .el-menu{background-color:transparent}.navigation-bar .sidebar[data-v-1ee6dd91] .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-color-primary)!important}.navigation-bar .right-menu[data-v-1ee6dd91]{margin-right:10px;height:100%;display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item[data-v-1ee6dd91]{padding:0 10px;cursor:pointer}.navigation-bar .right-menu .right-menu-item .right-menu-avatar[data-v-1ee6dd91]{display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item .right-menu-avatar .el-avatar[data-v-1ee6dd91]{margin-right:10px}.navigation-bar .right-menu .right-menu-item .right-menu-avatar span[data-v-1ee6dd91]{font-size:16px}.select-layout-mode[data-v-b859d856]{display:flex;justify-content:space-between}.layout-mode[data-v-b859d856]{width:60px;flex-grow:0;overflow:hidden;cursor:pointer;border-radius:6px;border:2px solid transparent}.layout-mode[data-v-b859d856]:hover,.active[data-v-b859d856]{border:2px solid var(--el-color-primary)}.el-header[data-v-b859d856]{height:12px}.el-aside[data-v-b859d856]{width:16px}.left .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.top .el-header[data-v-b859d856]{background-color:var(--el-color-primary)}.top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.left-top .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left-top .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left-top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.setting-container .setting-item .setting-name[data-v-0520d80d]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-0520d80d]{padding:20px}.setting-container .setting-item[data-v-0520d80d]{font-size:14px;color:var(--el-text-color-regular);padding:5px 0;display:flex;justify-content:space-between;align-items:center}.setting-container .el-button[data-v-0520d80d]{margin-top:40px;width:100%}.scroll-container[data-v-5784e87c]{height:100%;-webkit-user-select:none;user-select:none;display:flex;justify-content:space-between}.scroll-container .arrow[data-v-5784e87c]{width:40px;height:100%;font-size:18px;cursor:pointer}.scroll-container .arrow.left[data-v-5784e87c]{box-shadow:5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .arrow.right[data-v-5784e87c]{box-shadow:-5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .el-scrollbar[data-v-5784e87c]{flex:1;white-space:nowrap}.scroll-container .el-scrollbar .scrollbar-content[data-v-5784e87c]{display:inline-block}.scroll-container .screenfull[data-v-5784e87c]{width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer}.tags-view-container[data-v-6ee4ae65]{height:var(--v3-tagsview-height);width:100%;color:var(--v3-tagsview-text-color);overflow:hidden}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]{display:inline-block;position:relative;cursor:pointer;height:26px;line-height:26px;border:1px solid var(--v3-tagsview-tag-border-color);border-radius:var(--v3-tagsview-tag-border-radius);background-color:var(--v3-tagsview-tag-bg-color);padding:0 8px;font-size:12px;margin-left:5px;margin-top:4px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-6ee4ae65]{background-color:var(--v3-tagsview-tag-active-bg-color);color:var(--v3-tagsview-tag-active-text-color);border-color:var(--v3-tagsview-tag-active-border-color)}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6ee4ae65]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6ee4ae65]:hover{background-color:var(--v3-tagsview-tag-icon-hover-bg-color);color:var(--v3-tagsview-tag-icon-hover-color)}.tags-view-container .contextmenu[data-v-6ee4ae65]{margin:0;z-index:3000;position:absolute;list-style-type:none;padding:5px 0;border-radius:4px;font-size:12px;color:var(--v3-tagsview-contextmenu-text-color);background-color:var(--v3-tagsview-contextmenu-bg-color);box-shadow:var(--v3-tagsview-contextmenu-box-shadow)}.tags-view-container .contextmenu li[data-v-6ee4ae65]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-6ee4ae65]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-e47107a1]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--79e23a76);right:0;border-radius:6px 0 0 6px;z-index:10;cursor:pointer;pointer-events:auto;color:#fff;display:flex;align-items:center;justify-content:center}.app-wrapper[data-v-79281f6e]:after{content:"";display:table;clear:both}.app-wrapper[data-v-79281f6e]{position:relative;width:100%}.drawer-bg[data-v-79281f6e]{background-color:#0000004d;width:100%;top:0;height:100%;position:absolute;z-index:999}.sidebar-container[data-v-79281f6e]{background-color:var(--v3-sidebar-menu-bg-color);transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;top:0;bottom:0;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right)}.main-container[data-v-79281f6e]{min-height:100%;transition:margin-left .35s;margin-left:var(--v3-sidebar-width);position:relative}.fixed-header[data-v-79281f6e]{position:fixed!important;top:0;right:0;z-index:9;width:calc(100% - var(--v3-sidebar-width));transition:width .35s}.layout-header[data-v-79281f6e]{position:relative;z-index:9;background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-navigationbar-height));position:relative;overflow:hidden}.fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-header-height))}.hasTagsView .fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-header-height)}.hideSidebar .sidebar-container[data-v-79281f6e]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .main-container[data-v-79281f6e]{margin-left:var(--v3-sidebar-hide-width)}.hideSidebar .fixed-header[data-v-79281f6e]{width:calc(100% - var(--v3-sidebar-hide-width))}.mobile .sidebar-container[data-v-79281f6e]{transition:transform .35s;width:var(--v3-sidebar-width)!important}.mobile .main-container[data-v-79281f6e]{margin-left:0}.mobile .fixed-header[data-v-79281f6e]{width:100%}.mobile.openSidebar[data-v-79281f6e]{position:fixed;top:0}.mobile.hideSidebar .sidebar-container[data-v-79281f6e]{pointer-events:none;transition-duration:.3s;transform:translate3d(calc(0px - var(--v3-sidebar-width)),0,0)}.withoutAnimation .sidebar-container[data-v-79281f6e],.withoutAnimation .main-container[data-v-79281f6e]{transition:none}.app-wrapper[data-v-da4d3997]:after{content:"";display:table;clear:both}.app-wrapper[data-v-da4d3997]{width:100%}.fixed-header[data-v-da4d3997]{position:fixed;top:0;z-index:1002;width:100%}.fixed-header .logo[data-v-da4d3997]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-da4d3997]{display:flex}.fixed-header .content .navigation-bar[data-v-da4d3997]{flex:1}.layout-header[data-v-da4d3997]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-da4d3997]{min-height:100%}.app-main[data-v-da4d3997]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-da4d3997]{padding-top:var(--v3-header-height)}.app-wrapper[data-v-04f7d29d]:after{content:"";display:table;clear:both}.app-wrapper[data-v-04f7d29d]{width:100%}.fixed-header[data-v-04f7d29d]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-04f7d29d]{flex:none;width:var(--v3-sidebar-width)}.fixed-header .content[data-v-04f7d29d]{flex:1;position:relative;overflow:hidden}.layout-header[data-v-04f7d29d]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-04f7d29d]{min-height:100%}.sidebar-container[data-v-04f7d29d]{transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right);padding-top:var(--v3-navigationbar-height)}.app-main[data-v-04f7d29d]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);padding-left:var(--v3-sidebar-width);height:100vh;overflow:auto}.hideSidebar .sidebar-container[data-v-04f7d29d]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-04f7d29d]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-04f7d29d],.hasTagsView .app-main[data-v-04f7d29d]{padding-top:var(--v3-header-height)}.showGreyMode[data-v-1f418a36]{filter:grayscale(1)}.showColorWeakness[data-v-1f418a36]{filter:invert(.8)} +@charset "UTF-8";.layout-footer[data-v-18d14396]{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;color:var(--el-text-color-placeholder)}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar{width:8px;height:8px}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#90939955}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:hover{background-color:#90939977}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:active{background-color:#90939999}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-corner{background-color:transparent}.app-main[data-v-e96aa434]{width:100%;display:flex}.app-scrollbar[data-v-e96aa434]{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.app-scrollbar .app-container-grow[data-v-e96aa434]{flex-grow:1}.icon[data-v-a21f53d4]{vertical-align:middle;color:var(--v3-hamburger-text-color)}.el-breadcrumb[data-v-5110efca]{line-height:var(--v3-navigationbar-height)}.el-breadcrumb .no-redirect[data-v-5110efca]{color:var(--el-text-color-placeholder)}.el-breadcrumb a[data-v-5110efca]{font-weight:400}.svg-icon[data-v-9391d27c]{min-width:1em;margin-right:12px;font-size:18px}.el-icon[data-v-9391d27c]{width:1em!important;margin-right:12px!important;font-size:18px}.layout-logo-container[data-v-52f1a9b3]{position:relative;width:100%;height:var(--v3-header-height);line-height:var(--v3-header-height);text-align:center;overflow:hidden}.layout-logo-container .layout-logo[data-v-52f1a9b3]{display:none}.layout-logo-container .layout-logo-text[data-v-52f1a9b3]{height:100%;vertical-align:middle}.layout-mode-top[data-v-52f1a9b3]{height:var(--v3-navigationbar-height);line-height:var(--v3-navigationbar-height)}.collapse .layout-logo[data-v-52f1a9b3]{width:32px;height:32px;vertical-align:middle;display:inline-block}.collapse .layout-logo-text[data-v-52f1a9b3]{display:none}.el-menu--collapse[data-v-a0402d2e] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-a0402d2e] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--5f7dc346);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-a0402d2e]{height:calc(101% - var(--v3-header-height))}.el-scrollbar[data-v-a0402d2e]{height:101%}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper .el-scrollbar__view{height:100%}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-horizontal{display:none}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-vertical{display:var(--52bd9f87)}.el-menu[data-v-a0402d2e]{border:none;min-height:100%;width:100%!important}.el-menu--horizontal[data-v-a0402d2e]{height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item,[data-v-a0402d2e] .el-sub-menu__title,[data-v-a0402d2e] .el-sub-menu .el-menu-item,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item{height:var(--c570f0e2);line-height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item.is-active,[data-v-a0402d2e] .el-menu-item:hover,[data-v-a0402d2e] .el-sub-menu__title.is-active,[data-v-a0402d2e] .el-sub-menu__title:hover,[data-v-a0402d2e] .el-sub-menu .el-menu-item.is-active,[data-v-a0402d2e] .el-sub-menu .el-menu-item:hover,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item.is-active,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item:hover{background-color:var(--4ba5ad12)}[data-v-a0402d2e] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--6d87258a)!important}.card-container[data-v-c0dacc5d]{margin-bottom:10px}.card-container .card-header[data-v-c0dacc5d]{display:flex;justify-content:space-between;align-items:center}.card-container .card-header .card-title[data-v-c0dacc5d]{font-weight:700;margin-right:10px}.card-container .card-header .card-time[data-v-c0dacc5d]{font-size:12px;color:var(--el-text-color-secondary)}.card-container .card-header .card-avatar[data-v-c0dacc5d]{display:flex;align-items:center}.card-container .card-body[data-v-c0dacc5d]{font-size:12px}.notify[data-v-a5fd6355]{margin-right:10px}.notify-history[data-v-a5fd6355]{text-align:center;padding-top:12px;border-top:1px solid var(--el-border-color)}.svg-icon[data-v-889fe0df]{font-size:20px}.svg-icon[data-v-889fe0df]:focus{outline:none}.result-item[data-v-8cd47626]{display:flex;align-items:center;height:56px;padding:0 15px;margin-top:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-8cd47626]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-8cd47626]{width:1em;font-size:18px}.result-item-title[data-v-8cd47626]{flex:1;margin-left:12px}.search-footer[data-v-8dce46e8]{display:flex;color:var(--el-text-color-secondary);font-size:14px}.search-footer-item[data-v-8dce46e8]{display:flex;align-items:center;margin-right:12px}.search-footer-item .svg-icon[data-v-8dce46e8]{margin-right:5px;padding:2px;font-size:20px;background-color:var(--el-fill-color)}.search-footer-total[data-v-8dce46e8]{margin:0 0 0 auto}.search-modal__private .svg-icon{font-size:18px}.search-modal__private .el-dialog__header{display:none}.search-modal__private .el-dialog__footer{border-top:1px solid var(--el-border-color);padding:var(--el-dialog-padding-primary)}.svg-icon[data-v-dc5accb4]{font-size:20px}.svg-icon[data-v-dc5accb4]:focus{outline:none}.navigation-bar[data-v-1ee6dd91]{height:var(--v3-navigationbar-height);overflow:hidden;color:var(--v3-navigationbar-text-color);display:flex;justify-content:space-between}.navigation-bar .hamburger[data-v-1ee6dd91]{display:flex;align-items:center;height:100%;padding:0 15px;cursor:pointer}.navigation-bar .breadcrumb[data-v-1ee6dd91]{flex:1}@media screen and (max-width: 576px){.navigation-bar .breadcrumb[data-v-1ee6dd91]{display:none}}.navigation-bar .sidebar[data-v-1ee6dd91]{flex:1;min-width:0px}.navigation-bar .sidebar[data-v-1ee6dd91] .el-menu{background-color:transparent}.navigation-bar .sidebar[data-v-1ee6dd91] .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-color-primary)!important}.navigation-bar .right-menu[data-v-1ee6dd91]{margin-right:10px;height:100%;display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item[data-v-1ee6dd91]{padding:0 10px;cursor:pointer}.navigation-bar .right-menu .right-menu-item .right-menu-avatar[data-v-1ee6dd91]{display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item .right-menu-avatar .el-avatar[data-v-1ee6dd91]{margin-right:10px}.navigation-bar .right-menu .right-menu-item .right-menu-avatar span[data-v-1ee6dd91]{font-size:16px}.select-layout-mode[data-v-b859d856]{display:flex;justify-content:space-between}.layout-mode[data-v-b859d856]{width:60px;flex-grow:0;overflow:hidden;cursor:pointer;border-radius:6px;border:2px solid transparent}.layout-mode[data-v-b859d856]:hover,.active[data-v-b859d856]{border:2px solid var(--el-color-primary)}.el-header[data-v-b859d856]{height:12px}.el-aside[data-v-b859d856]{width:16px}.left .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.top .el-header[data-v-b859d856]{background-color:var(--el-color-primary)}.top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.left-top .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left-top .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left-top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.setting-container .setting-item .setting-name[data-v-0520d80d]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-0520d80d]{padding:20px}.setting-container .setting-item[data-v-0520d80d]{font-size:14px;color:var(--el-text-color-regular);padding:5px 0;display:flex;justify-content:space-between;align-items:center}.setting-container .el-button[data-v-0520d80d]{margin-top:40px;width:100%}.scroll-container[data-v-5784e87c]{height:100%;-webkit-user-select:none;user-select:none;display:flex;justify-content:space-between}.scroll-container .arrow[data-v-5784e87c]{width:40px;height:100%;font-size:18px;cursor:pointer}.scroll-container .arrow.left[data-v-5784e87c]{box-shadow:5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .arrow.right[data-v-5784e87c]{box-shadow:-5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .el-scrollbar[data-v-5784e87c]{flex:1;white-space:nowrap}.scroll-container .el-scrollbar .scrollbar-content[data-v-5784e87c]{display:inline-block}.scroll-container .screenfull[data-v-5784e87c]{width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer}.tags-view-container[data-v-6ee4ae65]{height:var(--v3-tagsview-height);width:100%;color:var(--v3-tagsview-text-color);overflow:hidden}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]{display:inline-block;position:relative;cursor:pointer;height:26px;line-height:26px;border:1px solid var(--v3-tagsview-tag-border-color);border-radius:var(--v3-tagsview-tag-border-radius);background-color:var(--v3-tagsview-tag-bg-color);padding:0 8px;font-size:12px;margin-left:5px;margin-top:4px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6ee4ae65]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-6ee4ae65]{background-color:var(--v3-tagsview-tag-active-bg-color);color:var(--v3-tagsview-tag-active-text-color);border-color:var(--v3-tagsview-tag-active-border-color)}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6ee4ae65]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6ee4ae65]:hover{background-color:var(--v3-tagsview-tag-icon-hover-bg-color);color:var(--v3-tagsview-tag-icon-hover-color)}.tags-view-container .contextmenu[data-v-6ee4ae65]{margin:0;z-index:3000;position:absolute;list-style-type:none;padding:5px 0;border-radius:4px;font-size:12px;color:var(--v3-tagsview-contextmenu-text-color);background-color:var(--v3-tagsview-contextmenu-bg-color);box-shadow:var(--v3-tagsview-contextmenu-box-shadow)}.tags-view-container .contextmenu li[data-v-6ee4ae65]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-6ee4ae65]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-272ec5c4]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--14e85e11);right:0;border-radius:6px 0 0 6px;z-index:2000;cursor:pointer;pointer-events:auto;color:#fff;display:flex;align-items:center;justify-content:center}.app-wrapper[data-v-79281f6e]:after{content:"";display:table;clear:both}.app-wrapper[data-v-79281f6e]{position:relative;width:100%}.drawer-bg[data-v-79281f6e]{background-color:#0000004d;width:100%;top:0;height:100%;position:absolute;z-index:999}.sidebar-container[data-v-79281f6e]{background-color:var(--v3-sidebar-menu-bg-color);transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;top:0;bottom:0;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right)}.main-container[data-v-79281f6e]{min-height:100%;transition:margin-left .35s;margin-left:var(--v3-sidebar-width);position:relative}.fixed-header[data-v-79281f6e]{position:fixed!important;top:0;right:0;z-index:9;width:calc(100% - var(--v3-sidebar-width));transition:width .35s}.layout-header[data-v-79281f6e]{position:relative;z-index:9;background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-navigationbar-height));position:relative;overflow:hidden}.fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-header-height))}.hasTagsView .fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-header-height)}.hideSidebar .sidebar-container[data-v-79281f6e]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .main-container[data-v-79281f6e]{margin-left:var(--v3-sidebar-hide-width)}.hideSidebar .fixed-header[data-v-79281f6e]{width:calc(100% - var(--v3-sidebar-hide-width))}.mobile .sidebar-container[data-v-79281f6e]{transition:transform .35s;width:var(--v3-sidebar-width)!important}.mobile .main-container[data-v-79281f6e]{margin-left:0}.mobile .fixed-header[data-v-79281f6e]{width:100%}.mobile.openSidebar[data-v-79281f6e]{position:fixed;top:0}.mobile.hideSidebar .sidebar-container[data-v-79281f6e]{pointer-events:none;transition-duration:.3s;transform:translate3d(calc(0px - var(--v3-sidebar-width)),0,0)}.withoutAnimation .sidebar-container[data-v-79281f6e],.withoutAnimation .main-container[data-v-79281f6e]{transition:none}.app-wrapper[data-v-da4d3997]:after{content:"";display:table;clear:both}.app-wrapper[data-v-da4d3997]{width:100%}.fixed-header[data-v-da4d3997]{position:fixed;top:0;z-index:1002;width:100%}.fixed-header .logo[data-v-da4d3997]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-da4d3997]{display:flex}.fixed-header .content .navigation-bar[data-v-da4d3997]{flex:1}.layout-header[data-v-da4d3997]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-da4d3997]{min-height:100%}.app-main[data-v-da4d3997]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-da4d3997]{padding-top:var(--v3-header-height)}.app-wrapper[data-v-04f7d29d]:after{content:"";display:table;clear:both}.app-wrapper[data-v-04f7d29d]{width:100%}.fixed-header[data-v-04f7d29d]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-04f7d29d]{flex:none;width:var(--v3-sidebar-width)}.fixed-header .content[data-v-04f7d29d]{flex:1;position:relative;overflow:hidden}.layout-header[data-v-04f7d29d]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-04f7d29d]{min-height:100%}.sidebar-container[data-v-04f7d29d]{transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right);padding-top:var(--v3-navigationbar-height)}.app-main[data-v-04f7d29d]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);padding-left:var(--v3-sidebar-width);height:100vh;overflow:auto}.hideSidebar .sidebar-container[data-v-04f7d29d]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-04f7d29d]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-04f7d29d],.hasTagsView .app-main[data-v-04f7d29d]{padding-top:var(--v3-header-height)}.showGreyMode[data-v-1f418a36]{filter:grayscale(1)}.showColorWeakness[data-v-1f418a36]{filter:invert(.8)} diff --git a/static/index-Bs2zO2TX.js b/static/index-BoZ3CAHp.js similarity index 97% rename from static/index-Bs2zO2TX.js rename to static/index-BoZ3CAHp.js index 7ecdf368..ac99bd70 100644 --- a/static/index-Bs2zO2TX.js +++ b/static/index-BoZ3CAHp.js @@ -1 +1 @@ -import{g as K,c as Q,u as W,d as X}from"./index-BhIxLZ5z.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,b as E,H as oe}from"./element-DU-WrzgO.js";import{Z as q,p as re,a as y,b as se,ai as d,aq as ie,q as c,t as ue,P as $,M as g,O as l,U as a,u as r,S as s,v as w,T as de,R as pe}from"./vue-C8lPpR34.js";import{_ as me}from"./index-B0wv9L4V.js";import"./vxe-CSEOtpXg.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=q({...ce,...S});return{paginationData:i,handleCurrentChange:C=>{i.currentPage=C},handleSizeChange:C=>{i.pageSize=C}}}const ge={class:"app-container"},_e={class:"toolbar-wrapper"},ve={class:"table-wrapper"},be={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:C}=fe(),P={id:void 0,username:"",password:""},_=y(!1),V=y(null),u=y(D(P)),M={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},N=()=>{var n;(n=V.value)==null||n.validate((e,v)=>{if(!e)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Q:W)(u.value).then(()=>{E.success("操作成功"),_.value=!1,h()}).finally(()=>{i.value=!1})})},O=()=>{var n;(n=V.value)==null||n.clearValidate(),u.value=D(P)},j=n=>{oe.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(n.id).then(()=>{E.success("删除成功"),h()})})},G=n=>{_.value=!0,u.value=D(n)},z=y([]),T=y(null),f=q({username:"",phone:""}),h=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:n})=>{o.total=n.total,z.value=n.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},H=()=>{var n;(n=T.value)==null||n.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,e)=>{const v=d("el-input"),b=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),m=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return c(),ue("div",ge,[$((c(),g(A,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:f.username,"onUpdate:modelValue":e[0]||(e[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,{prop:"phone",label:"手机号"},{default:l(()=>[a(v,{modelValue:f.phone,"onUpdate:modelValue":e[1]||(e[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(p,{type:"primary",icon:r(Y),onClick:U},{default:l(()=>e[7]||(e[7]=[s("查询")])),_:1},8,["icon"]),a(p,{icon:r(ee),onClick:H},{default:l(()=>e[8]||(e[8]=[s("重置")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((c(),g(A,{shadow:"never"},{default:l(()=>[w("div",_e,[w("div",null,[a(p,{type:"primary",icon:r(ae),onClick:e[2]||(e[2]=t=>_.value=!0)},{default:l(()=>e[9]||(e[9]=[s("新增用户")])),_:1},8,["icon"]),a(p,{type:"danger",icon:r(le)},{default:l(()=>e[10]||(e[10]=[s("批量删除")])),_:1},8,["icon"])]),w("div",null,[a(F,{content:"下载"},{default:l(()=>[a(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),a(F,{content:"刷新当前页"},{default:l(()=>[a(p,{type:"primary",icon:r(ne),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),w("div",ve,[a(I,{data:z.value},{default:l(()=>[a(m,{type:"selection",width:"50",align:"center"}),a(m,{prop:"username",label:"用户名",align:"center"}),a(m,{prop:"roles",label:"角色",align:"center"},{default:l(t=>[t.row.roles==="admin"?(c(),g(k,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[s(" admin ")])),_:1})):(c(),g(k,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[s(de(t.row.roles),1)]),_:2},1024))]),_:1}),a(m,{prop:"phone",label:"手机号",align:"center"}),a(m,{prop:"email",label:"邮箱",align:"center"}),a(m,{prop:"status",label:"状态",align:"center"},{default:l(t=>[t.row.status?(c(),g(k,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[s("启用")])),_:1})):(c(),g(k,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[s("禁用")])),_:1}))]),_:1}),a(m,{prop:"createTime",label:"创建时间",align:"center"}),a(m,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(t=>[a(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(t.row)},{default:l(()=>e[14]||(e[14]=[s("修改")])),_:2},1032,["onClick"]),a(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(t.row)},{default:l(()=>e[15]||(e[15]=[s("删除")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",be,[a(L,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),a(Z,{modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=t=>_.value=t),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:O,width:"30%"},{footer:l(()=>[a(p,{onClick:e[5]||(e[5]=t=>_.value=!1)},{default:l(()=>e[16]||(e[16]=[s("取消")])),_:1}),a(p,{type:"primary",onClick:N,loading:i.value},{default:l(()=>e[17]||(e[17]=[s("确认")])),_:1},8,["loading"])]),default:l(()=>[a(B,{ref_key:"formRef",ref:V,model:u.value,rules:M,"label-width":"100px","label-position":"left"},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:u.value.username,"onUpdate:modelValue":e[3]||(e[3]=t=>u.value.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(c(),g(b,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(v,{modelValue:u.value.password,"onUpdate:modelValue":e[4]||(e[4]=t=>u.value.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=me(ye,[["__scopeId","data-v-f7cdfa0d"]]);export{ze as default}; +import{g as K,c as Q,u as W,d as X}from"./index-D5ZJGHo5.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,b as E,H as oe}from"./element-DU-WrzgO.js";import{Z as q,p as re,a as y,b as se,ai as d,aq as ie,q as c,t as ue,P as $,M as g,O as l,U as a,u as r,S as s,v as w,T as de,R as pe}from"./vue-C8lPpR34.js";import{_ as me}from"./index-BE9-SrlX.js";import"./vxe-CSEOtpXg.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=q({...ce,...S});return{paginationData:i,handleCurrentChange:C=>{i.currentPage=C},handleSizeChange:C=>{i.pageSize=C}}}const ge={class:"app-container"},_e={class:"toolbar-wrapper"},ve={class:"table-wrapper"},be={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:C}=fe(),P={id:void 0,username:"",password:""},_=y(!1),V=y(null),u=y(D(P)),M={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},N=()=>{var n;(n=V.value)==null||n.validate((e,v)=>{if(!e)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Q:W)(u.value).then(()=>{E.success("操作成功"),_.value=!1,h()}).finally(()=>{i.value=!1})})},O=()=>{var n;(n=V.value)==null||n.clearValidate(),u.value=D(P)},j=n=>{oe.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(n.id).then(()=>{E.success("删除成功"),h()})})},G=n=>{_.value=!0,u.value=D(n)},z=y([]),T=y(null),f=q({username:"",phone:""}),h=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:n})=>{o.total=n.total,z.value=n.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},H=()=>{var n;(n=T.value)==null||n.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,e)=>{const v=d("el-input"),b=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),m=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return c(),ue("div",ge,[$((c(),g(A,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:f.username,"onUpdate:modelValue":e[0]||(e[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,{prop:"phone",label:"手机号"},{default:l(()=>[a(v,{modelValue:f.phone,"onUpdate:modelValue":e[1]||(e[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(p,{type:"primary",icon:r(Y),onClick:U},{default:l(()=>e[7]||(e[7]=[s("查询")])),_:1},8,["icon"]),a(p,{icon:r(ee),onClick:H},{default:l(()=>e[8]||(e[8]=[s("重置")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((c(),g(A,{shadow:"never"},{default:l(()=>[w("div",_e,[w("div",null,[a(p,{type:"primary",icon:r(ae),onClick:e[2]||(e[2]=t=>_.value=!0)},{default:l(()=>e[9]||(e[9]=[s("新增用户")])),_:1},8,["icon"]),a(p,{type:"danger",icon:r(le)},{default:l(()=>e[10]||(e[10]=[s("批量删除")])),_:1},8,["icon"])]),w("div",null,[a(F,{content:"下载"},{default:l(()=>[a(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),a(F,{content:"刷新当前页"},{default:l(()=>[a(p,{type:"primary",icon:r(ne),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),w("div",ve,[a(I,{data:z.value},{default:l(()=>[a(m,{type:"selection",width:"50",align:"center"}),a(m,{prop:"username",label:"用户名",align:"center"}),a(m,{prop:"roles",label:"角色",align:"center"},{default:l(t=>[t.row.roles==="admin"?(c(),g(k,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[s(" admin ")])),_:1})):(c(),g(k,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[s(de(t.row.roles),1)]),_:2},1024))]),_:1}),a(m,{prop:"phone",label:"手机号",align:"center"}),a(m,{prop:"email",label:"邮箱",align:"center"}),a(m,{prop:"status",label:"状态",align:"center"},{default:l(t=>[t.row.status?(c(),g(k,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[s("启用")])),_:1})):(c(),g(k,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[s("禁用")])),_:1}))]),_:1}),a(m,{prop:"createTime",label:"创建时间",align:"center"}),a(m,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(t=>[a(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(t.row)},{default:l(()=>e[14]||(e[14]=[s("修改")])),_:2},1032,["onClick"]),a(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(t.row)},{default:l(()=>e[15]||(e[15]=[s("删除")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",be,[a(L,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),a(Z,{modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=t=>_.value=t),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:O,width:"30%"},{footer:l(()=>[a(p,{onClick:e[5]||(e[5]=t=>_.value=!1)},{default:l(()=>e[16]||(e[16]=[s("取消")])),_:1}),a(p,{type:"primary",onClick:N,loading:i.value},{default:l(()=>e[17]||(e[17]=[s("确认")])),_:1},8,["loading"])]),default:l(()=>[a(B,{ref_key:"formRef",ref:V,model:u.value,rules:M,"label-width":"100px","label-position":"left"},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:u.value.username,"onUpdate:modelValue":e[3]||(e[3]=t=>u.value.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(c(),g(b,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(v,{modelValue:u.value.password,"onUpdate:modelValue":e[4]||(e[4]=t=>u.value.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=me(ye,[["__scopeId","data-v-f7cdfa0d"]]);export{ze as default}; diff --git a/static/index-D_dO9tEl.js b/static/index-C_JBzt31.js similarity index 91% rename from static/index-D_dO9tEl.js rename to static/index-C_JBzt31.js index 271c0d9e..cc2d72aa 100644 --- a/static/index-D_dO9tEl.js +++ b/static/index-C_JBzt31.js @@ -1 +1 @@ -import{_ as c,e as _}from"./index-B0wv9L4V.js";import{ai as s,q as t,t as r,U as a,p as i,M as p,Q as d,u as m}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const f={},l={class:"app-container center"};function u(n,o){const e=s("el-empty");return t(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const v=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),x={},h={class:"app-container center"};function y(n,o){const e=s("el-empty");return t(),r("div",h,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(x,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(n){const e=_().roles.includes("admin");return(k,B)=>(t(),p(d(m(e)?v:$)))}});export{I as default}; +import{_ as c,e as _}from"./index-BE9-SrlX.js";import{ai as s,q as t,t as r,U as a,p as i,M as p,Q as d,u as m}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const f={},l={class:"app-container center"};function u(n,o){const e=s("el-empty");return t(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const v=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),x={},h={class:"app-container center"};function y(n,o){const e=s("el-empty");return t(),r("div",h,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(x,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(n){const e=_().roles.includes("admin");return(k,B)=>(t(),p(d(m(e)?v:$)))}});export{I as default}; diff --git a/static/index-BEL73lzN.js b/static/index-CmhPhf-3.js similarity index 83% rename from static/index-BEL73lzN.js rename to static/index-CmhPhf-3.js index 5fa2eee5..206997f4 100644 --- a/static/index-BEL73lzN.js +++ b/static/index-CmhPhf-3.js @@ -1 +1 @@ -import{_ as n}from"./index-B0wv9L4V.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; +import{_ as n}from"./index-BE9-SrlX.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; diff --git a/static/index-CH2sp0ss.js b/static/index-Cnz7AM32.js similarity index 92% rename from static/index-CH2sp0ss.js rename to static/index-Cnz7AM32.js index cf0f248b..d0905376 100644 --- a/static/index-CH2sp0ss.js +++ b/static/index-Cnz7AM32.js @@ -1 +1 @@ -import{_ as o}from"./index-B0wv9L4V.js";import{q as n,t as a,v as t}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1)]))}const p=o(i,[["render",s]]);export{p as default}; +import{_ as o}from"./index-BE9-SrlX.js";import{q as n,t as a,v as t}from"./vue-C8lPpR34.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1)]))}const p=o(i,[["render",s]]);export{p as default}; diff --git a/static/index-BhIxLZ5z.js b/static/index-D5ZJGHo5.js similarity index 79% rename from static/index-BhIxLZ5z.js rename to static/index-D5ZJGHo5.js index cccdbbc3..c76a6051 100644 --- a/static/index-BhIxLZ5z.js +++ b/static/index-D5ZJGHo5.js @@ -1 +1 @@ -import{i as e}from"./index-B0wv9L4V.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; +import{i as e}from"./index-BE9-SrlX.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; diff --git a/static/index-Dj0OnqQ1.js b/static/index-DQRWuNcM.js similarity index 97% rename from static/index-Dj0OnqQ1.js rename to static/index-DQRWuNcM.js index 6fc7d43b..165c4e6a 100644 --- a/static/index-Dj0OnqQ1.js +++ b/static/index-DQRWuNcM.js @@ -1 +1 @@ -import{g as D,d as T}from"./index-BhIxLZ5z.js";import{U as s,p as P,a as _,Z as y,n as $,ai as x,q as M,t as S,O as p,K as k,S as h}from"./vue-C8lPpR34.js";import{H as U,b as w}from"./element-DU-WrzgO.js";import"./index-B0wv9L4V.js";import"./vxe-CSEOtpXg.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),u=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=y({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};U.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default}; +import{g as D,d as T}from"./index-D5ZJGHo5.js";import{U as s,p as P,a as _,Z as y,n as $,ai as x,q as M,t as S,O as p,K as k,S as h}from"./vue-C8lPpR34.js";import{H as U,b as w}from"./element-DU-WrzgO.js";import"./index-BE9-SrlX.js";import"./vxe-CSEOtpXg.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),u=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=y({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};U.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default}; diff --git a/static/index-kwwTM01a.js b/static/index-Da9_kvtF.js similarity index 94% rename from static/index-kwwTM01a.js rename to static/index-Da9_kvtF.js index 1b8f1dcf..81879219 100644 --- a/static/index-kwwTM01a.js +++ b/static/index-Da9_kvtF.js @@ -1 +1 @@ -import{p as V,q as F,t as b,aK as q,I as E,a as m,aE as M,Z as N,ai as r,U as e,u as t,v as p,O as s,a9 as I,a2 as K,S as O}from"./vue-C8lPpR34.js";import{_ as B,f as S,e as L}from"./index-B0wv9L4V.js";import{v as $,w as A,x as D,y as J,z as T}from"./element-DU-WrzgO.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js";import"./vxe-CSEOtpXg.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:E(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('
',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=M(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),a=N({username:"admin",password:"12345678",code:""}),k={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,L().login(a).then(()=>{u.push({path:"/"})}).catch(()=>{v(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{a.code="",g.value="",S().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:a,rules:k,onKeyup:I(w,["enter"])},{default:s(()=>[e(x,{prop:"username"},{default:s(()=>[e(d,{modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=i=>a.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t($),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:s(()=>[e(d,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=i=>a.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(A),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:s(()=>[e(d,{modelValue:a.code,"onUpdate:modelValue":o[2]||(o[2]=i=>a.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t(D),maxlength:"7",size:"large"},{append:s(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(t(J))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(t(T))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:K(w,["prevent"])},{default:s(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default}; +import{p as V,q as F,t as b,aK as q,I as E,a as m,aE as M,Z as N,ai as r,U as e,u as t,v as p,O as s,a9 as I,a2 as K,S as O}from"./vue-C8lPpR34.js";import{_ as B,f as S,e as L}from"./index-BE9-SrlX.js";import{v as $,w as A,x as D,y as J,z as T}from"./element-DU-WrzgO.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js";import"./vxe-CSEOtpXg.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:E(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('
',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=M(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),a=N({username:"admin",password:"12345678",code:""}),k={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,L().login(a).then(()=>{u.push({path:"/"})}).catch(()=>{v(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{a.code="",g.value="",S().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:a,rules:k,onKeyup:I(w,["enter"])},{default:s(()=>[e(x,{prop:"username"},{default:s(()=>[e(d,{modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=i=>a.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t($),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:s(()=>[e(d,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=i=>a.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(A),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:s(()=>[e(d,{modelValue:a.code,"onUpdate:modelValue":o[2]||(o[2]=i=>a.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t(D),maxlength:"7",size:"large"},{append:s(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(t(J))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(t(T))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:K(w,["prevent"])},{default:s(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default}; diff --git a/static/index-BWHUQzTN.js b/static/index-VZ0VkeeC.js similarity index 99% rename from static/index-BWHUQzTN.js rename to static/index-VZ0VkeeC.js index 14acc9cb..bd978a77 100644 --- a/static/index-BWHUQzTN.js +++ b/static/index-VZ0VkeeC.js @@ -1 +1 @@ -import{aB as lt,Z as ct,a as D,b as Oe,E as qe,e as He,A as je,f as M,p as A,q as i,t as C,T as B,u as d,ai as g,v as S,U as u,O as _,W as Xe,M as w,Q as de,aC as it,R as I,aD as he,aE as ge,a8 as Z,a2 as ce,F as q,H as fe,aa as ut,S as J,I as O,aF as Ge,w as pe,aG as dt,aH as Je,J as Ke,d as Ye,s as ft,a9 as le,aI as oe,n as pt,aJ as mt,P as ye,V as be}from"./vue-C8lPpR34.js";import{g as _t,S as Ze,D as ee,s as Fe,a as vt,u as we,b as K,L as te,_ as R,c as Qe,d as $e,e as ht,r as gt}from"./index-B0wv9L4V.js";import{u as yt}from"./useWatermark-BiV6n824.js";import{h as bt,j as wt,g as kt,k as St,b as me,l as xt,n as Ct,o as et,u as $t,r as Tt,p as Et,q as Mt,s as Vt,t as It}from"./element-DU-WrzgO.js";import{_ as Lt}from"./index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js";import"./vxe-CSEOtpXg.js";function At(o){o?Fe(vt):Fe(Ze)}const se=lt("app",()=>{const o=ct({opened:_t()!==Ze,withoutAnimation:!1}),e=D(ee.Desktop);return Oe(()=>o.opened,s=>At(s)),{device:e,sidebar:o,toggleSidebar:s=>{o.opened=!o.opened,o.withoutAnimation=s},closeSidebar:s=>{o.opened=!1,o.withoutAnimation=s},toggleDevice:s=>{e.value=s}}}),Rt=992,Dt=()=>{const o=se(),{listenerRouteChange:e}=we(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const n=t();o.toggleDevice(n?ee.Mobile:ee.Desktop),n&&o.closeSidebar(!0)}};e(()=>{o.device===ee.Mobile&&o.sidebar.opened&&o.closeSidebar(!1)}),qe(()=>{window.addEventListener("resize",r)}),He(()=>{t()&&(o.toggleDevice(ee.Mobile),o.closeSidebar(!0))}),je(()=>{window.removeEventListener("resize",r)})},tt=se(),Pt=M(()=>tt.device===ee.Mobile),Ft=M(()=>tt.device===ee.Desktop);function ae(){return{isMobile:Pt,isDesktop:Ft}}const ke=K(),Wt=M(()=>ke.layoutMode===te.Left),zt=M(()=>ke.layoutMode===te.Top),Bt=M(()=>ke.layoutMode===te.LeftTop),Nt=o=>{ke.layoutMode=o};function re(){return{isLeft:Wt,isTop:zt,isLeftTop:Bt,setLayoutMode:Nt}}const Ut={class:"layout-footer"},Ot=A({__name:"index",setup(o){const e="V3 Admin Vite";return(t,r)=>(i(),C("footer",Ut,"MIT © 2021-PRESENT "+B(d(e)),1))}}),qt=R(Ot,[["__scopeId","data-v-18d14396"]]),Ht={class:"app-main"},jt={class:"app-scrollbar"},Xt=A({__name:"AppMain",setup(o){const e=Qe(),t=K();return(r,n)=>{const s=g("router-view"),a=g("el-backtop");return i(),C("section",Ht,[S("div",jt,[u(s,null,{default:_(({Component:l,route:c})=>[u(Xe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(i(),w(it,{include:d(e).cachedViews},[(i(),w(de(l),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),d(t).showFooter?(i(),w(qt,{key:0})):I("",!0)]),u(a),u(a,{target:".app-scrollbar"})])}}}),Te=R(Xt,[["__scopeId","data-v-e96aa434"]]),Gt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(o,{emit:e}){const t=o,r=e,n=()=>{r("toggleClick")};return(s,a)=>{const l=g("el-icon");return i(),C("div",{onClick:n},[u(l,{size:20,class:"icon"},{default:_(()=>[t.isActive?(i(),w(d(bt),{key:0})):(i(),w(d(wt),{key:1}))]),_:1})])}}}),Jt=R(Gt,[["__scopeId","data-v-a21f53d4"]]);var Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.TokenData=void 0;Q.parse=Ie;var Kt=Q.compile=tn;Q.match=on;Q.pathToRegexp=st;Q.stringify=rn;const Ee="/",Me=o=>o,nt=/^[$_\p{ID_Start}]$/u,Ve=/^[$\u200c\u200d\p{ID_Continue}]$/u,_e="https://git.new/pathToRegexpError",Yt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Zt(o){return o.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function G(o){return o.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Qt(o){const e=[...o];let t=0;function r(){let n="";if(nt.test(e[++t]))for(n+=e[t];Ve.test(e[++t]);)n+=e[t];else if(e[t]==='"'){let s=t;for(;tnn(n,e,t));return n=>{const s=[""];for(const a of r){const[l,...c]=a(n);s[0]+=l,s.push(...c)}return s}}function nn(o,e,t){if(o.type==="text")return()=>[o.value];if(o.type==="group"){const n=ot(o.tokens,e,t);return s=>{const[a,...l]=n(s);return l.length?[""]:[a]}}const r=t||Me;return o.type==="wildcard"&&t!==!1?n=>{const s=n[o.name];if(s==null)return["",o.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${o.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${o.name}/${l}" to be a string`);return r(a)}).join(e)]}:n=>{const s=n[o.name];if(s==null)return["",o.name];if(typeof s!="string")throw new TypeError(`Expected "${o.name}" to be a string`);return[r(s)]}}function on(o,e={}){const{decode:t=decodeURIComponent,delimiter:r=Ee}=e,{regexp:n,keys:s}=st(o,e),a=s.map(l=>t===!1?Me:l.type==="param"?t:c=>c.split(r).map(t));return function(c){const f=n.exec(c);if(!f)return!1;const m=f[0],p=Object.create(null);for(let y=1;yv instanceof Se?v:Ie(v,e));for(const{tokens:v}of m)for(const h of ie(v,0,[])){const x=sn(h,t,a);l.push(x)}let p=`^(?:${l.join("|")})`;return s&&(p+=`(?:${G(t)}$)?`),p+=r?"$":`(?=${G(t)}|$)`,{regexp:new RegExp(p,c),keys:a}}function*ie(o,e,t){if(e===o.length)return yield t;const r=o[e];if(r.type==="group"){const n=t.slice();for(const s of ie(r.tokens,0,n))yield*ie(o,e+1,s)}else t.push(r);yield*ie(o,e+1,t)}function sn(o,e,t){let r="",n="",s=!0;for(let a=0;aVe.test(r)):!1}function cn(o){return(o==null?void 0:o.type)!=="text"?!0:!Ve.test(o.value[0])}const un={key:0,class:"no-redirect"},dn=["onClick"],fn=A({__name:"index",setup(o){const e=he(),t=ge(),{listenerRouteChange:r}=we(),n=D([]),s=()=>{n.value=e.matched.filter(c=>{var f,m;return((f=c.meta)==null?void 0:f.title)&&((m=c.meta)==null?void 0:m.breadcrumb)!==!1})},a=c=>Kt(c)(e.params),l=c=>{const{redirect:f,path:m}=c;if(f){t.push(f);return}t.push(a(m))};return r(c=>{c.path.startsWith("/redirect/")||s()},!0),(c,f)=>{const m=g("el-breadcrumb-item"),p=g("el-breadcrumb");return i(),w(p,null,{default:_(()=>[(i(!0),C(q,null,Z(n.value,(y,v)=>(i(),w(m,{key:y.path},{default:_(()=>[y.redirect==="noRedirect"||v===n.value.length-1?(i(),C("span",un,B(y.meta.title),1)):(i(),C("a",{key:1,onClick:ce(h=>l(y),["prevent"])},B(y.meta.title),9,dn))]),_:2},1024))),128))]),_:1})}}}),pn=R(fn,[["__scopeId","data-v-5110efca"]]),ve=o=>/^(https?:|mailto:|tel:)/.test(o),mn=["href"],_n=A({__name:"SidebarItemLink",props:{to:{}},setup(o){const e=o;return(t,r)=>{const n=g("router-link");return d(ve)(e.to)?(i(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[fe(t.$slots,"default")],8,mn)):(i(),w(n,{key:1,to:e.to},{default:_(()=>[fe(t.$slots,"default")]),_:3},8,["to"]))}}});function X(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function We(o,e){for(var t="",r=0,n=-1,s=0,a,l=0;l<=o.length;++l){if(l2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),n=l,s=0;continue}}else if(t.length===2||t.length===1){t="",r=0,n=l,s=0;continue}}e&&(t.length>0?t+="/..":t="..",r=2)}else t.length>0?t+="/"+o.slice(n+1,l):t=o.slice(n+1,l),r=l-n-1;n=l,s=0}else a===46&&s!==-1?++s:s=-1}return t}function vn(o,e){var t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+r:t+o+r:r}var ne={resolve:function(){for(var e="",t=!1,r,n=arguments.length-1;n>=-1&&!t;n--){var s;n>=0?s=arguments[n]:(r===void 0&&(r=process.cwd()),s=r),X(s),s.length!==0&&(e=s+"/"+e,t=s.charCodeAt(0)===47)}return e=We(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(X(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=We(e,!t),e.length===0&&!t&&(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return X(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":ne.normalize(e)},relative:function(e,t){if(X(e),X(t),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";for(var r=1;rf){if(t.charCodeAt(a+p)===47)return t.slice(a+p+1);if(p===0)return t.slice(a+p)}else s>f&&(e.charCodeAt(r+p)===47?m=p:p===0&&(m=0));break}var y=e.charCodeAt(r+p),v=t.charCodeAt(a+p);if(y!==v)break;y===47&&(m=p)}var h="";for(p=r+m+1;p<=n;++p)(p===n||e.charCodeAt(p)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(a+m):(a+=m,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(X(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,s=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!s){n=a;break}}else s=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');X(e);var r=0,n=-1,s=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,c=-1;for(a=e.length-1;a>=0;--a){var f=e.charCodeAt(a);if(f===47){if(!s){r=a+1;break}}else c===-1&&(s=!1,c=a+1),l>=0&&(f===t.charCodeAt(l)?--l===-1&&(n=a):(l=-1,n=c))}return r===n?n=c:n===-1&&(n=e.length),e.slice(r,n)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!s){r=a+1;break}}else n===-1&&(s=!1,n=a+1);return n===-1?"":e.slice(r,n)}},extname:function(e){X(e);for(var t=-1,r=0,n=-1,s=!0,a=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(c===47){if(!s){r=l+1;break}continue}n===-1&&(s=!1,n=l+1),c===46?t===-1?t=l:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||n===-1||a===0||a===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return vn("/",e)},parse:function(e){X(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r=e.charCodeAt(0),n=r===47,s;n?(t.root="/",s=1):s=0;for(var a=-1,l=0,c=-1,f=!0,m=e.length-1,p=0;m>=s;--m){if(r=e.charCodeAt(m),r===47){if(!f){l=m+1;break}continue}c===-1&&(f=!1,c=m+1),r===46?a===-1?a=m:p!==1&&(p=1):a!==-1&&(p=-1)}return a===-1||c===-1||p===0||p===1&&a===c-1&&a===l+1?c!==-1&&(l===0&&n?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(l,c)):(l===0&&n?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(l,a),t.base=e.slice(l,c)),t.ext=e.slice(a,c)),l>0?t.dir=e.slice(0,l-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.posix=ne;var hn=ne;const at=kt(hn),gn={key:2},yn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(o){const e=o,t=M(()=>{var l;return(l=e.item.meta)==null?void 0:l.alwaysShow}),r=M(()=>{var l;return((l=e.item.children)==null?void 0:l.filter(c=>{var f;return!((f=c.meta)!=null&&f.hidden)}))??[]}),n=M(()=>r.value.length),s=M(()=>{const l=n.value;switch(!0){case l>1:return null;case l===1:return r.value[0];default:return{...e.item,path:""}}}),a=l=>{switch(!0){case ve(l):return l;case ve(e.basePath):return e.basePath;default:return at.resolve(e.basePath,l)}};return(l,c)=>{const f=g("SvgIcon"),m=g("el-menu-item"),p=g("SidebarItem",!0),y=g("el-sub-menu");return!t.value&&s.value&&!s.value.children?(i(),C(q,{key:0},[s.value.meta?(i(),w(_n,{key:0,to:a(s.value.path)},{default:_(()=>[u(m,{index:a(s.value.path)},ut({default:_(()=>[s.value.meta.svgIcon?(i(),w(f,{key:0,name:s.value.meta.svgIcon},null,8,["name"])):s.value.meta.elIcon?(i(),w(de(s.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[s.value.meta.title?{name:"title",fn:_(()=>[J(B(s.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(i(),w(y,{key:1,index:a(e.item.path),teleported:""},{title:_(()=>{var v,h,x;return[(v=e.item.meta)!=null&&v.svgIcon?(i(),w(f,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(i(),w(de(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(x=e.item.meta)!=null&&x.title?(i(),C("span",gn,B(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(i(!0),C(q,{key:0},Z(r.value,v=>(i(),w(p,{key:v.path,item:v,"base-path":a(v.path)},null,8,["item","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))}}}),bn=R(yn,[["__scopeId","data-v-9391d27c"]]),wn="/v3-admin-vite/static/logo-BY3URNHQ.png",kn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Sn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",xn=["src"],Cn=["src"],$n=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(o){const e=o,{isLeft:t,isTop:r}=re();return(n,s)=>{const a=g("router-link");return i(),C("div",{class:O(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":d(r)}])},[u(Xe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(i(),w(a,{key:"collapse",to:"/"},{default:_(()=>[S("img",{src:d(wn),class:"layout-logo"},null,8,xn)]),_:1})):(i(),w(a,{key:"expand",to:"/"},{default:_(()=>[S("img",{src:d(t)?d(kn):d(Sn),class:"layout-logo-text"},null,8,Cn)]),_:1}))]),_:1})],2)}}}),Le=R($n,[["__scopeId","data-v-52f1a9b3"]]),ue=(o,e=document.documentElement)=>o!=null&&o.startsWith("--")?getComputedStyle(e).getPropertyValue(o):(console.warn("CSS 变量名应以 '--' 开头"),""),ze=(o,e,t=document.documentElement)=>{if(!(o!=null&&o.startsWith("--"))){console.warn("CSS 变量名应以 '--' 开头");return}t.style.setProperty(o,e)},Tn=A({__name:"index",setup(o){Ge(k=>({"5f7dc346":H.value,"52bd9f87":L.value,c570f0e2:F.value,"4ba5ad12":N.value,"6d87258a":P.value}));const e=ue("--v3-sidebar-menu-bg-color"),t=ue("--v3-sidebar-menu-text-color"),r=ue("--v3-sidebar-menu-active-text-color"),{isMobile:n}=ae(),{isLeft:s,isTop:a}=re(),l=he(),c=se(),f=$e(),m=K(),p=M(()=>{const{meta:{activeMenu:k},path:$}=l;return k||$}),y=M(()=>f.routes.filter(k=>{var $;return!(($=k.meta)!=null&&$.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>s.value&&m.showLogo),x=M(()=>s.value?e:void 0),E=M(()=>s.value?t:void 0),P=M(()=>s.value?r:void 0),F=M(()=>a.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),N=M(()=>a.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),H=M(()=>a.value?"0px":"2px"),L=M(()=>a.value?"none":"block");return(k,$)=>{const U=g("el-menu"),b=g("el-scrollbar");return i(),C("div",{class:O({"has-logo":h.value})},[h.value?(i(),w(Le,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),u(b,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[u(U,{"default-active":p.value,collapse:v.value&&!d(a),"background-color":x.value,"text-color":E.value,"active-text-color":P.value,"unique-opened":!0,"collapse-transition":!1,mode:d(a)&&!d(n)?"horizontal":"vertical"},{default:_(()=>[(i(!0),C(q,null,Z(y.value,V=>(i(),w(bn,{key:V.path,item:V,"base-path":V.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Ae=R(Tn,[["__scopeId","data-v-a0402d2e"]]),En={class:"card-header"},Mn={class:"card-title"},Vn={class:"card-time"},In={key:0,class:"card-avatar"},Ln=["src"],An={class:"card-body"},Rn=A({__name:"NotifyList",props:{list:{}},setup(o){const e=o;return(t,r)=>{const n=g("el-empty"),s=g("el-tag"),a=g("el-card");return e.list.length===0?(i(),w(n,{key:0})):(i(!0),C(q,{key:1},Z(e.list,(l,c)=>(i(),w(a,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[S("div",En,[S("div",null,[S("span",null,[S("span",Mn,B(l.title),1),l.extra?(i(),w(s,{key:0,type:l.status,effect:"plain",size:"small"},{default:_(()=>[J(B(l.extra),1)]),_:2},1032,["type"])):I("",!0)]),S("div",Vn,B(l.datetime),1)]),l.avatar?(i(),C("div",In,[S("img",{src:l.avatar,width:"34"},null,8,Ln)])):I("",!0)])]),default:_(()=>[S("div",An,B(l.description??"No Data"),1)]),_:2},1024))),128))}}}),Dn=R(Rn,[["__scopeId","data-v-c0dacc5d"]]),Pn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"一年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"两年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],Fn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Wn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],zn={class:"notify"},Bn={class:"notify-history"},Be=99,Nn=350,Un=A({__name:"index",setup(o){const e=M(()=>r.value.reduce((s,a)=>s+a.list.length,0)),t=D("通知"),r=D([{name:"通知",type:"primary",list:Pn},{name:"消息",type:"danger",list:Fn},{name:"待办",type:"warning",list:Wn}]),n=()=>{me.success(`跳转到${t.value}历史页面`)};return(s,a)=>{const l=g("el-icon"),c=g("el-tooltip"),f=g("el-badge"),m=g("el-scrollbar"),p=g("el-tab-pane"),y=g("el-tabs"),v=g("el-button"),h=g("el-popover");return i(),C("div",zn,[u(h,{placement:"bottom",width:Nn,trigger:"click"},{reference:_(()=>[u(f,{value:e.value,max:Be,hidden:e.value===0},{default:_(()=>[u(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[u(l,{size:20},{default:_(()=>[u(d(St))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[u(y,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=x=>t.value=x),class:"demo-tabs",stretch:""},{default:_(()=>[(i(!0),C(q,null,Z(r.value,(x,E)=>(i(),w(p,{name:x.name,key:E},{label:_(()=>[J(B(x.name)+" ",1),u(f,{value:x.list.length,max:Be,type:x.type},null,8,["value","type"])]),default:_(()=>[u(m,{height:"400px"},{default:_(()=>[u(Dn,{list:x.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",Bn,[u(v,{link:"",onClick:n},{default:_(()=>[J("查看"+B(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),On=R(Un,[["__scopeId","data-v-a5fd6355"]]),Ne=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Y=(()=>{if(typeof document>"u")return!1;const o=Ne[0],e={};for(const t of Ne)if((t==null?void 0:t[1])in document){for(const[n,s]of t.entries())e[o[n]]=s;return e}return!1})(),Ue={change:Y.fullscreenchange,error:Y.fullscreenerror};let W={request(o=document.documentElement,e){return new Promise((t,r)=>{const n=()=>{W.off("change",n),t()};W.on("change",n);const s=o[Y.requestFullscreen](e);s instanceof Promise&&s.then(n).catch(r)})},exit(){return new Promise((o,e)=>{if(!W.isFullscreen){o();return}const t=()=>{W.off("change",t),o()};W.on("change",t);const r=document[Y.exitFullscreen]();r instanceof Promise&&r.then(t).catch(e)})},toggle(o,e){return W.isFullscreen?W.exit():W.request(o,e)},onchange(o){W.on("change",o)},onerror(o){W.on("error",o)},on(o,e){const t=Ue[o];t&&document.addEventListener(t,e,!1)},off(o,e){const t=Ue[o];t&&document.removeEventListener(t,e,!1)},raw:Y};Object.defineProperties(W,{isFullscreen:{get:()=>!!document[Y.fullscreenElement]},element:{enumerable:!0,get:()=>document[Y.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Y.fullscreenEnabled]}});Y||(W={isEnabled:!1});const qn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(o){const e=o,t=D(!1),r=M(()=>t.value?e.exitTips:e.openTips),n=M(()=>t.value?"fullscreen-exit":"fullscreen"),s=()=>{const y=document.querySelector(e.element)||void 0;W.isEnabled?W.toggle(y):me.warning("您的浏览器无法工作")},a=()=>{t.value=W.isFullscreen,t.value||(document.body.className="")};pe(y=>{W.isEnabled&&W.on("change",a),y(()=>{W.isEnabled&&W.off("change",a)})});const l=D(!1),c=M(()=>l.value?"内容区复原":"内容区放大"),f=M(()=>l.value?"fullscreen-exit":"fullscreen"),m=()=>{l.value=!l.value,document.body.className=l.value?"content-large":""},p=()=>{l.value&&m(),document.body.className="content-full",s()};return(y,v)=>{const h=g("SvgIcon"),x=g("el-tooltip"),E=g("el-dropdown-item"),P=g("el-dropdown-menu"),F=g("el-dropdown");return i(),C("div",null,[y.content?(i(),w(F,{key:1,disabled:t.value},{dropdown:_(()=>[u(P,null,{default:_(()=>[u(E,{onClick:m},{default:_(()=>[J(B(c.value),1)]),_:1}),u(E,{onClick:p},{default:_(()=>v[0]||(v[0]=[J("内容区全屏")])),_:1})]),_:1})]),default:_(()=>[u(h,{name:f.value},null,8,["name"])]),_:1},8,["disabled"])):(i(),w(x,{key:0,effect:"dark",content:r.value,placement:"bottom"},{default:_(()=>[u(h,{name:n.value,onClick:s},null,8,["name"])]),_:1},8,["content"]))])}}}),rt=R(qn,[["__scopeId","data-v-889fe0df"]]),Hn=["onMouseenter"],jn={class:"result-item-title"},Xn=A({__name:"SearchResult",props:dt({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(o,{expose:e}){const t=Je(o,"modelValue"),r=o,n=Ye(),s=D(0),a=m=>{const p=m.name===t.value;return{background:p?"var(--el-color-primary)":"",color:p?"#ffffff":""}},l=m=>{r.isPressUpOrDown||(t.value=m.name)},c=()=>{s.value=Number((window.innerHeight*.4).toFixed(1))},f=m=>{var h;const p=(h=n==null?void 0:n.proxy)==null?void 0:h.$refs[`resultItemRef${m}`];if(!p)return 0;const v=p[0].offsetTop+128;return v>s.value?v-s.value:0};return qe(()=>{window.addEventListener("resize",c)}),He(()=>{c()}),je(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:f}),(m,p)=>{const y=g("SvgIcon");return i(),C("div",null,[(i(!0),C(q,null,Z(m.list,(v,h)=>{var x,E,P;return i(),C("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Ke(a(v)),onMouseenter:F=>l(v)},[(x=v.meta)!=null&&x.svgIcon?(i(),w(y,{key:0,name:v.meta.svgIcon},null,8,["name"])):(E=v.meta)!=null&&E.elIcon?(i(),w(de(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),S("span",jn,B((P=v.meta)==null?void 0:P.title),1),t.value&&t.value===v.name?(i(),w(y,{key:2,name:"keyboard-enter"})):I("",!0)],44,Hn)}),128))])}}}),Gn=R(Xn,[["__scopeId","data-v-8cd47626"]]),Jn={class:"search-footer"},Kn={class:"search-footer-item"},Yn={class:"search-footer-item"},Zn={class:"search-footer-item"},Qn={class:"search-footer-total"},eo=A({__name:"SearchFooter",props:{total:{}},setup(o){const e=o,{isMobile:t}=ae();return(r,n)=>{const s=g("SvgIcon");return i(),C("div",Jn,[d(t)?I("",!0):(i(),C(q,{key:0},[S("span",Kn,[u(s,{name:"keyboard-enter"}),n[0]||(n[0]=S("span",null,"确认",-1))]),S("span",Yn,[u(s,{name:"keyboard-up"}),u(s,{name:"keyboard-down"}),n[1]||(n[1]=S("span",null,"切换",-1))]),S("span",Zn,[u(s,{name:"keyboard-esc"}),n[2]||(n[2]=S("span",null,"关闭",-1))])],64)),S("span",Qn,"共 "+B(e.total)+" 项",1)])}}}),to=R(eo,[["__scopeId","data-v-8dce46e8"]]),no=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(o){const e=Je(o,"modelValue"),t=ge(),{isMobile:r}=ae(),n=D(null),s=D(null),a=D(null),l=D(""),c=ft([]),f=D(void 0),m=D(!1),p=M(()=>r.value?"80vw":"40vw"),y=M(()=>xt($e().routes)),v=Ct(()=>{var $;const L=h(y.value);c.value=L.filter(U=>{var b,V;return l.value?(V=(b=U.meta)==null?void 0:b.title)==null?void 0:V.toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim()):!1});const k=($=c.value)==null?void 0:$.length;f.value=k>0?c.value[0].name:void 0},500),h=(L,k=[])=>(L.forEach($=>{k.push($),$.children&&h($.children,k)}),k),x=()=>{e.value=!1,setTimeout(()=>{l.value="",c.value=[]},200)},E=L=>{var $;if(!a.value)return;const k=a.value.getScrollTop(L);($=s.value)==null||$.setScrollTop(k)},P=()=>{m.value=!0;const{length:L}=c.value;if(L===0)return;const k=c.value.findIndex($=>$.name===f.value);if(k===0){const $=c.value[L-1].name;f.value===$&&L>1?(f.value=c.value[L-2].name,E(L-2)):(f.value=$,E(L-1))}else f.value=c.value[k-1].name,E(k-1)},F=()=>{m.value=!0;const{length:L}=c.value;if(L===0)return;const k=c.value.map($=>$.name).lastIndexOf(f.value);if(k===L-1){const $=c.value[0].name;f.value===$&&L>1?(f.value=c.value[1].name,E(1)):(f.value=$,E(0))}else f.value=c.value[k+1].name,E(k+1)},N=()=>{var U;const{length:L}=c.value;if(L===0)return;const k=f.value,$=(U=c.value.find(b=>b.name===k))==null?void 0:U.path;if($&&ve($)){window.open($,"_blank","noopener, noreferrer");return}if(!k){me.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:k})}catch{me.error("该菜单有必填的动态参数,无法通过搜索进入");return}x()},H=()=>{m.value=!1};return(L,k)=>{const $=g("SvgIcon"),U=g("el-input"),b=g("el-empty"),V=g("el-dialog");return i(),w(V,{modelValue:e.value,"onUpdate:modelValue":k[2]||(k[2]=z=>e.value=z),onOpened:k[3]||(k[3]=z=>{var T;return(T=n.value)==null?void 0:T.focus()}),onClosed:k[4]||(k[4]=z=>{var T;return(T=n.value)==null?void 0:T.blur()}),onKeydown:[le(P,["up"]),le(F,["down"]),le(N,["enter"])],onKeyup:le(H,["up","down"]),"before-close":x,width:p.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[u(to,{total:c.value.length},null,8,["total"])]),default:_(()=>[u(U,{ref_key:"inputRef",ref:n,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=z=>l.value=z),onInput:d(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[u($,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(i(),w(b,{key:0,description:"暂无搜索结果","image-size":100})):(i(),C(q,{key:1},[k[5]||(k[5]=S("p",null,"搜索结果",-1)),u(d(et),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:_(()=>[u(Gn,{ref_key:"searchResultRef",ref:a,modelValue:f.value,"onUpdate:modelValue":k[1]||(k[1]=z=>f.value=z),list:c.value,isPressUpOrDown:m.value,onClick:N},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),oo=A({__name:"index",setup(o){const e=D(!1),t=()=>{e.value=!0};return(r,n)=>{const s=g("SvgIcon"),a=g("el-tooltip");return i(),C("div",null,[u(a,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[u(s,{name:"search",onClick:t})]),_:1}),u(no,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=l=>e.value=l)},null,8,["modelValue"])])}}}),so=R(oo,[["__scopeId","data-v-dc5accb4"]]),ao={class:"navigation-bar"},ro={class:"right-menu"},lo={class:"right-menu-avatar"},co={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},io={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},uo=A({__name:"index",setup(o){const{isMobile:e}=ae(),{isTop:t}=re(),r=ge(),n=se(),s=ht(),a=K(),{showNotify:l,showThemeSwitch:c,showScreenfull:f,showSearchMenu:m}=oe(a),p=()=>{n.toggleSidebar(!1)},y=()=>{s.logout(),r.push("/login")};return(v,h)=>{const x=g("el-avatar"),E=g("el-dropdown-item"),P=g("el-dropdown-menu"),F=g("el-dropdown");return i(),C("div",ao,[!d(t)||d(e)?(i(),w(Jt,{key:0,"is-active":d(n).sidebar.opened,class:"hamburger",onToggleClick:p},null,8,["is-active"])):I("",!0),!d(t)||d(e)?(i(),w(pn,{key:1,class:"breadcrumb"})):I("",!0),d(t)&&!d(e)?(i(),w(Ae,{key:2,class:"sidebar"})):I("",!0),S("div",ro,[d(m)?(i(),w(so,{key:0,class:"right-menu-item"})):I("",!0),d(f)?(i(),w(rt,{key:1,class:"right-menu-item"})):I("",!0),d(c)?(i(),w(Lt,{key:2,class:"right-menu-item"})):I("",!0),d(l)?(i(),w(On,{key:3,class:"right-menu-item"})):I("",!0),u(F,{class:"right-menu-item"},{dropdown:_(()=>[u(P,null,{default:_(()=>[S("a",co,[u(E,null,{default:_(()=>h[0]||(h[0]=[J("GitHub")])),_:1})]),S("a",io,[u(E,null,{default:_(()=>h[1]||(h[1]=[J("Gitee")])),_:1})]),u(E,{divided:"",onClick:y},{default:_(()=>h[2]||(h[2]=[S("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:_(()=>[S("div",lo,[u(x,{icon:d($t),size:30},null,8,["icon"]),S("span",null,B(d(s).username),1)])]),_:1})])])}}}),Re=R(uo,[["__scopeId","data-v-1ee6dd91"]]),fo={class:"select-layout-mode"},po=A({__name:"SelectLayoutMode",setup(o){const{isLeft:e,isTop:t,isLeftTop:r,setLayoutMode:n}=re();return(s,a)=>{const l=g("el-aside"),c=g("el-header"),f=g("el-main"),m=g("el-container"),p=g("el-tooltip");return i(),C("div",fo,[u(p,{content:"左侧模式"},{default:_(()=>[u(m,{class:O(["layout-mode left",{active:d(e)}]),onClick:a[0]||(a[0]=y=>d(n)(d(te).Left))},{default:_(()=>[u(l),u(m,null,{default:_(()=>[u(c),u(f)]),_:1})]),_:1},8,["class"])]),_:1}),u(p,{content:"顶部模式"},{default:_(()=>[u(m,{class:O(["layout-mode top",{active:d(t)}]),onClick:a[1]||(a[1]=y=>d(n)(d(te).Top))},{default:_(()=>[u(c),u(f)]),_:1},8,["class"])]),_:1}),u(p,{content:"混合模式"},{default:_(()=>[u(m,{class:O(["layout-mode left-top",{active:d(r)}]),onClick:a[2]||(a[2]=y=>d(n)(d(te).LeftTop))},{default:_(()=>[u(c),u(m,null,{default:_(()=>[u(l),u(f)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),mo=R(po,[["__scopeId","data-v-b859d856"]]),_o={class:"setting-container"},vo={class:"setting-name"},ho=A({__name:"index",setup(o){const{isLeft:e}=re(),t=K(),{showTagsView:r,showLogo:n,fixedHeader:s,showFooter:a,showNotify:l,showThemeSwitch:c,showScreenfull:f,showSearchMenu:m,cacheTagsView:p,showWatermark:y,showGreyMode:v,showColorWeakness:h}=oe(t),x={显示标签栏:r,"显示 Logo":n,"固定 Header":s,"显示页脚 Footer":a,显示消息通知:l,显示切换主题按钮:c,显示全屏按钮:f,显示搜索按钮:m,是否缓存标签栏:p,开启系统水印:y,显示灰色模式:v,显示色弱模式:h};pe(()=>{!e.value&&(s.value=!0)});const E=()=>{gt(),location.reload()};return(P,F)=>{const N=g("el-divider"),H=g("el-switch"),L=g("el-button");return i(),C("div",_o,[F[1]||(F[1]=S("h4",null,"布局配置",-1)),u(mo),u(N),F[2]||(F[2]=S("h4",null,"功能配置",-1)),(i(),C(q,null,Z(x,(k,$,U)=>S("div",{class:"setting-item",key:U},[S("span",vo,B($),1),u(H,{modelValue:k.value,"onUpdate:modelValue":b=>k.value=b,disabled:!d(e)&&$==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),u(L,{type:"danger",icon:d(Tt),onClick:E},{default:_(()=>F[0]||(F[0]=[J("重 置")])),_:1},8,["icon"])])}}}),go=R(ho,[["__scopeId","data-v-0520d80d"]]),yo={class:"scroll-container"},bo=200,wo=A({__name:"ScrollPane",props:{tagRefs:{}},setup(o){const e=o,t=he(),r=K(),{listenerRouteChange:n}=we(),s=D(),a=D();let l=0;const c=({scrollLeft:v})=>{l=v},f=({deltaY:v})=>{/^-/.test(v.toString())?p("left"):p("right")},m=()=>{const v=a.value.clientWidth,h=s.value.wrapRef.clientWidth,x=v-h-l;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:x}},p=(v,h=bo)=>{let x=0;const{scrollbarContentRefWidth:E,scrollbarRefWidth:P,lastDistance:F}=m();P>E||(v==="left"?x=Math.max(0,l-h):x=Math.min(l+h,l+F),s.value.setScrollLeft(x))},y=()=>{const v=e.tagRefs;for(let h=0;hN){const H=P-N;p("right",H);return}}};return n(()=>{pt(y)}),(v,h)=>{const x=g("el-icon");return i(),C("div",yo,[u(x,{class:"arrow left",onClick:h[0]||(h[0]=E=>p("left"))},{default:_(()=>[u(d(Et))]),_:1}),u(d(et),{ref_key:"scrollbarRef",ref:s,onWheelPassive:f,onScroll:c},{default:_(()=>[S("div",{ref_key:"scrollbarContentRef",ref:a,class:"scrollbar-content"},[fe(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),u(x,{class:"arrow right",onClick:h[1]||(h[1]=E=>p("right"))},{default:_(()=>[u(d(Mt))]),_:1}),d(r).showScreenfull?(i(),w(rt,{key:0,content:!0,class:"screenfull"})):I("",!0)])}}}),ko=R(wo,[["__scopeId","data-v-5784e87c"]]),So={class:"tags-view-container"},xo=A({__name:"index",setup(o){const e=Ye(),t=ge(),r=he(),n=Qe(),s=$e(),{listenerRouteChange:a}=we(),l=D([]),c=D(!1),f=D(0),m=D(0),p=D({});let y=[];const v=b=>b.path===r.path,h=b=>{var V;return(V=b.meta)==null?void 0:V.affix},x=(b,V="/")=>{const z=[];return b.forEach(T=>{if(h(T)){const j=at.resolve(V,T.path);z.push({fullPath:j,path:j,name:T.name,meta:{...T.meta}})}if(T.children){const j=x(T.children,T.path);z.push(...j)}}),z},E=()=>{y=x(s.routes);for(const b of y)b.name&&n.addVisitedView(b)},P=b=>{b.name&&(n.addVisitedView(b),n.addCachedView(b))},F=b=>{n.delCachedView(b),t.replace({path:"/redirect"+b.path,query:b.query})},N=b=>{n.delVisitedView(b),n.delCachedView(b),v(b)&&k(n.visitedViews,b)},H=()=>{const b=p.value.fullPath;b!==r.path&&b!==void 0&&t.push(b),n.delOthersVisitedViews(p.value),n.delOthersCachedViews(p.value)},L=b=>{n.delAllVisitedViews(),n.delAllCachedViews(),!y.some(V=>V.path===r.path)&&k(n.visitedViews,b)},k=(b,V)=>{const z=b.slice(-1)[0],T=z==null?void 0:z.fullPath;T!==void 0?t.push(T):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},$=(b,V)=>{const T=e.proxy.$el.getBoundingClientRect().left,xe=e.proxy.$el.offsetWidth-105,Pe=V.clientX-T+15;m.value=Pe>xe?xe:Pe,f.value=V.clientY,c.value=!0,p.value=b},U=()=>{c.value=!1};return Oe(c,b=>{b?document.body.addEventListener("click",U):document.body.removeEventListener("click",U)}),E(),a(b=>{P(b)},!0),(b,V)=>{const z=g("el-icon");return i(),C("div",So,[u(ko,{class:"tags-view-wrapper","tag-refs":l.value},{default:_(()=>[(i(!0),C(q,null,Z(d(n).visitedViews,T=>(i(),w(d(mt),{ref_for:!0,ref_key:"tagRefs",ref:l,key:T.path,class:O([{active:v(T)},"tags-view-item"]),to:{path:T.path,query:T.query},onMouseup:ce(j=>!h(T)&&N(T),["middle"]),onContextmenu:ce(j=>$(T,j),["prevent"])},{default:_(()=>{var j;return[J(B((j=T.meta)==null?void 0:j.title)+" ",1),h(T)?I("",!0):(i(),w(z,{key:0,size:12,onClick:ce(xe=>N(T),["prevent","stop"])},{default:_(()=>[u(d(Vt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ye(S("ul",{class:"contextmenu",style:Ke({left:m.value+"px",top:f.value+"px"})},[S("li",{onClick:V[0]||(V[0]=T=>F(p.value))},"刷新"),h(p.value)?I("",!0):(i(),C("li",{key:0,onClick:V[1]||(V[1]=T=>N(p.value))},"关闭")),S("li",{onClick:H},"关闭其它"),S("li",{onClick:V[2]||(V[2]=T=>L(p.value))},"关闭所有")],4),[[be,c.value]])])}}}),De=R(xo,[["__scopeId","data-v-6ee4ae65"]]),Co=A({__name:"index",props:{buttonTop:{default:350}},setup(o){Ge(n=>({"79e23a76":t}));const t=o.buttonTop+"px",r=D(!1);return(n,s)=>{const a=g("el-icon"),l=g("el-drawer");return i(),C(q,null,[S("div",{class:"handle-button",onClick:s[0]||(s[0]=c=>r.value=!0)},[u(a,{size:24},{default:_(()=>[u(d(It))]),_:1})]),u(l,{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=c=>r.value=c),size:"300px","with-header":!1},{default:_(()=>[fe(n.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),$o=R(Co,[["__scopeId","data-v-e47107a1"]]),To=A({__name:"LeftMode",setup(o){const{isMobile:e}=ae(),t=se(),r=K(),{showTagsView:n,fixedHeader:s}=oe(r),a=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),l=()=>{t.closeSidebar(!1)};return(c,f)=>(i(),C("div",{class:O([a.value,"app-wrapper"])},[a.value.mobile&&a.value.openSidebar?(i(),C("div",{key:0,class:"drawer-bg",onClick:l})):I("",!0),u(d(Ae),{class:"sidebar-container"}),S("div",{class:O([{hasTagsView:d(n)},"main-container"])},[S("div",{class:O([{"fixed-header":d(s)},"layout-header"])},[u(d(Re)),ye(u(d(De),null,null,512),[[be,d(n)]])],2),u(d(Te),{class:"app-main"})],2)],2))}}),Eo=R(To,[["__scopeId","data-v-79281f6e"]]),Mo={class:"app-wrapper"},Vo={class:"fixed-header layout-header"},Io={class:"content"},Lo=A({__name:"TopMode",setup(o){const e=K(),{showTagsView:t,showLogo:r}=oe(e);return(n,s)=>(i(),C("div",Mo,[S("div",Vo,[S("div",Io,[d(r)?(i(),w(d(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),u(d(Re),{class:"navigation-bar"})]),ye(u(d(De),null,null,512),[[be,d(t)]])]),S("div",{class:O([{hasTagsView:d(t)},"main-container"])},[u(d(Te),{class:"app-main"})],2)]))}}),Ao=R(Lo,[["__scopeId","data-v-da4d3997"]]),Ro={class:"fixed-header layout-header"},Do={class:"content"},Po=A({__name:"LeftTopMode",setup(o){const e=se(),t=K(),{showTagsView:r,showLogo:n}=oe(t),s=M(()=>({hideSidebar:!e.sidebar.opened}));return(a,l)=>(i(),C("div",{class:O([s.value,"app-wrapper"])},[S("div",Ro,[d(n)?(i(),w(d(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),S("div",Do,[u(d(Re)),ye(u(d(De),null,null,512),[[be,d(r)]])])]),S("div",{class:O([{hasTagsView:d(r)},"main-container"])},[u(d(Ae),{class:"sidebar-container"}),u(d(Te),{class:"app-main"})],2)],2))}}),Fo=R(Po,[["__scopeId","data-v-04f7d29d"]]),Ce="--v3-tagsview-height",Wo=A({__name:"index",setup(o){Dt();const{setWatermark:e,clearWatermark:t}=yt(),{isMobile:r}=ae(),{isLeft:n,isTop:s,isLeftTop:a}=re(),l=K(),{showSettings:c,showTagsView:f,showWatermark:m,showGreyMode:p,showColorWeakness:y}=oe(l),v=M(()=>({showGreyMode:p.value,showColorWeakness:y.value})),h=ue(Ce);return pe(()=>{f.value?ze(Ce,h):ze(Ce,"0px")}),pe(()=>{m.value?e("V3 Admin Vite"):t()}),(x,E)=>(i(),C("div",{class:O(v.value)},[d(n)||d(r)?(i(),w(Eo,{key:0})):d(s)?(i(),w(Ao,{key:1})):d(a)?(i(),w(Fo,{key:2})):I("",!0),d(c)?(i(),w(d($o),{key:3},{default:_(()=>[u(d(go))]),_:1})):I("",!0)],2))}}),Ho=R(Wo,[["__scopeId","data-v-1f418a36"]]);export{Ho as default}; +import{aB as lt,Z as ct,a as D,b as Oe,E as qe,e as He,A as je,f as M,p as A,q as i,t as C,T as B,u as d,ai as g,v as S,U as u,O as _,W as Xe,M as w,Q as de,aC as it,R as I,aD as he,aE as ge,a8 as Z,a2 as ce,F as q,H as fe,aa as ut,S as J,I as O,aF as Ge,w as pe,aG as dt,aH as Je,J as Ke,d as Ye,s as ft,a9 as le,aI as oe,n as pt,aJ as mt,P as ye,V as be}from"./vue-C8lPpR34.js";import{g as _t,S as Ze,D as ee,s as Fe,a as vt,u as we,b as K,L as te,_ as R,c as Qe,d as $e,e as ht,r as gt}from"./index-BE9-SrlX.js";import{u as yt}from"./useWatermark-BiV6n824.js";import{h as bt,j as wt,g as kt,k as St,b as me,l as xt,n as Ct,o as et,u as $t,r as Tt,p as Et,q as Mt,s as Vt,t as It}from"./element-DU-WrzgO.js";import{_ as Lt}from"./index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js";import"./vxe-CSEOtpXg.js";function At(o){o?Fe(vt):Fe(Ze)}const se=lt("app",()=>{const o=ct({opened:_t()!==Ze,withoutAnimation:!1}),e=D(ee.Desktop);return Oe(()=>o.opened,s=>At(s)),{device:e,sidebar:o,toggleSidebar:s=>{o.opened=!o.opened,o.withoutAnimation=s},closeSidebar:s=>{o.opened=!1,o.withoutAnimation=s},toggleDevice:s=>{e.value=s}}}),Rt=992,Dt=()=>{const o=se(),{listenerRouteChange:e}=we(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const n=t();o.toggleDevice(n?ee.Mobile:ee.Desktop),n&&o.closeSidebar(!0)}};e(()=>{o.device===ee.Mobile&&o.sidebar.opened&&o.closeSidebar(!1)}),qe(()=>{window.addEventListener("resize",r)}),He(()=>{t()&&(o.toggleDevice(ee.Mobile),o.closeSidebar(!0))}),je(()=>{window.removeEventListener("resize",r)})},tt=se(),Pt=M(()=>tt.device===ee.Mobile),Ft=M(()=>tt.device===ee.Desktop);function ae(){return{isMobile:Pt,isDesktop:Ft}}const ke=K(),Wt=M(()=>ke.layoutMode===te.Left),zt=M(()=>ke.layoutMode===te.Top),Bt=M(()=>ke.layoutMode===te.LeftTop),Nt=o=>{ke.layoutMode=o};function re(){return{isLeft:Wt,isTop:zt,isLeftTop:Bt,setLayoutMode:Nt}}const Ut={class:"layout-footer"},Ot=A({__name:"index",setup(o){const e="V3 Admin Vite";return(t,r)=>(i(),C("footer",Ut,"MIT © 2021-PRESENT "+B(d(e)),1))}}),qt=R(Ot,[["__scopeId","data-v-18d14396"]]),Ht={class:"app-main"},jt={class:"app-scrollbar"},Xt=A({__name:"AppMain",setup(o){const e=Qe(),t=K();return(r,n)=>{const s=g("router-view"),a=g("el-backtop");return i(),C("section",Ht,[S("div",jt,[u(s,null,{default:_(({Component:l,route:c})=>[u(Xe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(i(),w(it,{include:d(e).cachedViews},[(i(),w(de(l),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),d(t).showFooter?(i(),w(qt,{key:0})):I("",!0)]),u(a),u(a,{target:".app-scrollbar"})])}}}),Te=R(Xt,[["__scopeId","data-v-e96aa434"]]),Gt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(o,{emit:e}){const t=o,r=e,n=()=>{r("toggleClick")};return(s,a)=>{const l=g("el-icon");return i(),C("div",{onClick:n},[u(l,{size:20,class:"icon"},{default:_(()=>[t.isActive?(i(),w(d(bt),{key:0})):(i(),w(d(wt),{key:1}))]),_:1})])}}}),Jt=R(Gt,[["__scopeId","data-v-a21f53d4"]]);var Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.TokenData=void 0;Q.parse=Ie;var Kt=Q.compile=tn;Q.match=on;Q.pathToRegexp=st;Q.stringify=rn;const Ee="/",Me=o=>o,nt=/^[$_\p{ID_Start}]$/u,Ve=/^[$\u200c\u200d\p{ID_Continue}]$/u,_e="https://git.new/pathToRegexpError",Yt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Zt(o){return o.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function G(o){return o.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Qt(o){const e=[...o];let t=0;function r(){let n="";if(nt.test(e[++t]))for(n+=e[t];Ve.test(e[++t]);)n+=e[t];else if(e[t]==='"'){let s=t;for(;tnn(n,e,t));return n=>{const s=[""];for(const a of r){const[l,...c]=a(n);s[0]+=l,s.push(...c)}return s}}function nn(o,e,t){if(o.type==="text")return()=>[o.value];if(o.type==="group"){const n=ot(o.tokens,e,t);return s=>{const[a,...l]=n(s);return l.length?[""]:[a]}}const r=t||Me;return o.type==="wildcard"&&t!==!1?n=>{const s=n[o.name];if(s==null)return["",o.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${o.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${o.name}/${l}" to be a string`);return r(a)}).join(e)]}:n=>{const s=n[o.name];if(s==null)return["",o.name];if(typeof s!="string")throw new TypeError(`Expected "${o.name}" to be a string`);return[r(s)]}}function on(o,e={}){const{decode:t=decodeURIComponent,delimiter:r=Ee}=e,{regexp:n,keys:s}=st(o,e),a=s.map(l=>t===!1?Me:l.type==="param"?t:c=>c.split(r).map(t));return function(c){const f=n.exec(c);if(!f)return!1;const m=f[0],p=Object.create(null);for(let y=1;yv instanceof Se?v:Ie(v,e));for(const{tokens:v}of m)for(const h of ie(v,0,[])){const x=sn(h,t,a);l.push(x)}let p=`^(?:${l.join("|")})`;return s&&(p+=`(?:${G(t)}$)?`),p+=r?"$":`(?=${G(t)}|$)`,{regexp:new RegExp(p,c),keys:a}}function*ie(o,e,t){if(e===o.length)return yield t;const r=o[e];if(r.type==="group"){const n=t.slice();for(const s of ie(r.tokens,0,n))yield*ie(o,e+1,s)}else t.push(r);yield*ie(o,e+1,t)}function sn(o,e,t){let r="",n="",s=!0;for(let a=0;aVe.test(r)):!1}function cn(o){return(o==null?void 0:o.type)!=="text"?!0:!Ve.test(o.value[0])}const un={key:0,class:"no-redirect"},dn=["onClick"],fn=A({__name:"index",setup(o){const e=he(),t=ge(),{listenerRouteChange:r}=we(),n=D([]),s=()=>{n.value=e.matched.filter(c=>{var f,m;return((f=c.meta)==null?void 0:f.title)&&((m=c.meta)==null?void 0:m.breadcrumb)!==!1})},a=c=>Kt(c)(e.params),l=c=>{const{redirect:f,path:m}=c;if(f){t.push(f);return}t.push(a(m))};return r(c=>{c.path.startsWith("/redirect/")||s()},!0),(c,f)=>{const m=g("el-breadcrumb-item"),p=g("el-breadcrumb");return i(),w(p,null,{default:_(()=>[(i(!0),C(q,null,Z(n.value,(y,v)=>(i(),w(m,{key:y.path},{default:_(()=>[y.redirect==="noRedirect"||v===n.value.length-1?(i(),C("span",un,B(y.meta.title),1)):(i(),C("a",{key:1,onClick:ce(h=>l(y),["prevent"])},B(y.meta.title),9,dn))]),_:2},1024))),128))]),_:1})}}}),pn=R(fn,[["__scopeId","data-v-5110efca"]]),ve=o=>/^(https?:|mailto:|tel:)/.test(o),mn=["href"],_n=A({__name:"SidebarItemLink",props:{to:{}},setup(o){const e=o;return(t,r)=>{const n=g("router-link");return d(ve)(e.to)?(i(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[fe(t.$slots,"default")],8,mn)):(i(),w(n,{key:1,to:e.to},{default:_(()=>[fe(t.$slots,"default")]),_:3},8,["to"]))}}});function X(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function We(o,e){for(var t="",r=0,n=-1,s=0,a,l=0;l<=o.length;++l){if(l2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),n=l,s=0;continue}}else if(t.length===2||t.length===1){t="",r=0,n=l,s=0;continue}}e&&(t.length>0?t+="/..":t="..",r=2)}else t.length>0?t+="/"+o.slice(n+1,l):t=o.slice(n+1,l),r=l-n-1;n=l,s=0}else a===46&&s!==-1?++s:s=-1}return t}function vn(o,e){var t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+r:t+o+r:r}var ne={resolve:function(){for(var e="",t=!1,r,n=arguments.length-1;n>=-1&&!t;n--){var s;n>=0?s=arguments[n]:(r===void 0&&(r=process.cwd()),s=r),X(s),s.length!==0&&(e=s+"/"+e,t=s.charCodeAt(0)===47)}return e=We(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(X(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=We(e,!t),e.length===0&&!t&&(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return X(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":ne.normalize(e)},relative:function(e,t){if(X(e),X(t),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";for(var r=1;rf){if(t.charCodeAt(a+p)===47)return t.slice(a+p+1);if(p===0)return t.slice(a+p)}else s>f&&(e.charCodeAt(r+p)===47?m=p:p===0&&(m=0));break}var y=e.charCodeAt(r+p),v=t.charCodeAt(a+p);if(y!==v)break;y===47&&(m=p)}var h="";for(p=r+m+1;p<=n;++p)(p===n||e.charCodeAt(p)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(a+m):(a+=m,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(X(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,s=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!s){n=a;break}}else s=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');X(e);var r=0,n=-1,s=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,c=-1;for(a=e.length-1;a>=0;--a){var f=e.charCodeAt(a);if(f===47){if(!s){r=a+1;break}}else c===-1&&(s=!1,c=a+1),l>=0&&(f===t.charCodeAt(l)?--l===-1&&(n=a):(l=-1,n=c))}return r===n?n=c:n===-1&&(n=e.length),e.slice(r,n)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!s){r=a+1;break}}else n===-1&&(s=!1,n=a+1);return n===-1?"":e.slice(r,n)}},extname:function(e){X(e);for(var t=-1,r=0,n=-1,s=!0,a=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(c===47){if(!s){r=l+1;break}continue}n===-1&&(s=!1,n=l+1),c===46?t===-1?t=l:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||n===-1||a===0||a===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return vn("/",e)},parse:function(e){X(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r=e.charCodeAt(0),n=r===47,s;n?(t.root="/",s=1):s=0;for(var a=-1,l=0,c=-1,f=!0,m=e.length-1,p=0;m>=s;--m){if(r=e.charCodeAt(m),r===47){if(!f){l=m+1;break}continue}c===-1&&(f=!1,c=m+1),r===46?a===-1?a=m:p!==1&&(p=1):a!==-1&&(p=-1)}return a===-1||c===-1||p===0||p===1&&a===c-1&&a===l+1?c!==-1&&(l===0&&n?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(l,c)):(l===0&&n?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(l,a),t.base=e.slice(l,c)),t.ext=e.slice(a,c)),l>0?t.dir=e.slice(0,l-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.posix=ne;var hn=ne;const at=kt(hn),gn={key:2},yn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(o){const e=o,t=M(()=>{var l;return(l=e.item.meta)==null?void 0:l.alwaysShow}),r=M(()=>{var l;return((l=e.item.children)==null?void 0:l.filter(c=>{var f;return!((f=c.meta)!=null&&f.hidden)}))??[]}),n=M(()=>r.value.length),s=M(()=>{const l=n.value;switch(!0){case l>1:return null;case l===1:return r.value[0];default:return{...e.item,path:""}}}),a=l=>{switch(!0){case ve(l):return l;case ve(e.basePath):return e.basePath;default:return at.resolve(e.basePath,l)}};return(l,c)=>{const f=g("SvgIcon"),m=g("el-menu-item"),p=g("SidebarItem",!0),y=g("el-sub-menu");return!t.value&&s.value&&!s.value.children?(i(),C(q,{key:0},[s.value.meta?(i(),w(_n,{key:0,to:a(s.value.path)},{default:_(()=>[u(m,{index:a(s.value.path)},ut({default:_(()=>[s.value.meta.svgIcon?(i(),w(f,{key:0,name:s.value.meta.svgIcon},null,8,["name"])):s.value.meta.elIcon?(i(),w(de(s.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[s.value.meta.title?{name:"title",fn:_(()=>[J(B(s.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(i(),w(y,{key:1,index:a(e.item.path),teleported:""},{title:_(()=>{var v,h,x;return[(v=e.item.meta)!=null&&v.svgIcon?(i(),w(f,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(i(),w(de(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(x=e.item.meta)!=null&&x.title?(i(),C("span",gn,B(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(i(!0),C(q,{key:0},Z(r.value,v=>(i(),w(p,{key:v.path,item:v,"base-path":a(v.path)},null,8,["item","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))}}}),bn=R(yn,[["__scopeId","data-v-9391d27c"]]),wn="/v3-admin-vite/static/logo-BY3URNHQ.png",kn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Sn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",xn=["src"],Cn=["src"],$n=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(o){const e=o,{isLeft:t,isTop:r}=re();return(n,s)=>{const a=g("router-link");return i(),C("div",{class:O(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":d(r)}])},[u(Xe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(i(),w(a,{key:"collapse",to:"/"},{default:_(()=>[S("img",{src:d(wn),class:"layout-logo"},null,8,xn)]),_:1})):(i(),w(a,{key:"expand",to:"/"},{default:_(()=>[S("img",{src:d(t)?d(kn):d(Sn),class:"layout-logo-text"},null,8,Cn)]),_:1}))]),_:1})],2)}}}),Le=R($n,[["__scopeId","data-v-52f1a9b3"]]),ue=(o,e=document.documentElement)=>o!=null&&o.startsWith("--")?getComputedStyle(e).getPropertyValue(o):(console.warn("CSS 变量名应以 '--' 开头"),""),ze=(o,e,t=document.documentElement)=>{if(!(o!=null&&o.startsWith("--"))){console.warn("CSS 变量名应以 '--' 开头");return}t.style.setProperty(o,e)},Tn=A({__name:"index",setup(o){Ge(k=>({"5f7dc346":H.value,"52bd9f87":L.value,c570f0e2:F.value,"4ba5ad12":N.value,"6d87258a":P.value}));const e=ue("--v3-sidebar-menu-bg-color"),t=ue("--v3-sidebar-menu-text-color"),r=ue("--v3-sidebar-menu-active-text-color"),{isMobile:n}=ae(),{isLeft:s,isTop:a}=re(),l=he(),c=se(),f=$e(),m=K(),p=M(()=>{const{meta:{activeMenu:k},path:$}=l;return k||$}),y=M(()=>f.routes.filter(k=>{var $;return!(($=k.meta)!=null&&$.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>s.value&&m.showLogo),x=M(()=>s.value?e:void 0),E=M(()=>s.value?t:void 0),P=M(()=>s.value?r:void 0),F=M(()=>a.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),N=M(()=>a.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),H=M(()=>a.value?"0px":"2px"),L=M(()=>a.value?"none":"block");return(k,$)=>{const U=g("el-menu"),b=g("el-scrollbar");return i(),C("div",{class:O({"has-logo":h.value})},[h.value?(i(),w(Le,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),u(b,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[u(U,{"default-active":p.value,collapse:v.value&&!d(a),"background-color":x.value,"text-color":E.value,"active-text-color":P.value,"unique-opened":!0,"collapse-transition":!1,mode:d(a)&&!d(n)?"horizontal":"vertical"},{default:_(()=>[(i(!0),C(q,null,Z(y.value,V=>(i(),w(bn,{key:V.path,item:V,"base-path":V.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Ae=R(Tn,[["__scopeId","data-v-a0402d2e"]]),En={class:"card-header"},Mn={class:"card-title"},Vn={class:"card-time"},In={key:0,class:"card-avatar"},Ln=["src"],An={class:"card-body"},Rn=A({__name:"NotifyList",props:{list:{}},setup(o){const e=o;return(t,r)=>{const n=g("el-empty"),s=g("el-tag"),a=g("el-card");return e.list.length===0?(i(),w(n,{key:0})):(i(!0),C(q,{key:1},Z(e.list,(l,c)=>(i(),w(a,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[S("div",En,[S("div",null,[S("span",null,[S("span",Mn,B(l.title),1),l.extra?(i(),w(s,{key:0,type:l.status,effect:"plain",size:"small"},{default:_(()=>[J(B(l.extra),1)]),_:2},1032,["type"])):I("",!0)]),S("div",Vn,B(l.datetime),1)]),l.avatar?(i(),C("div",In,[S("img",{src:l.avatar,width:"34"},null,8,Ln)])):I("",!0)])]),default:_(()=>[S("div",An,B(l.description??"No Data"),1)]),_:2},1024))),128))}}}),Dn=R(Rn,[["__scopeId","data-v-c0dacc5d"]]),Pn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"一年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"两年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],Fn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Wn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],zn={class:"notify"},Bn={class:"notify-history"},Be=99,Nn=350,Un=A({__name:"index",setup(o){const e=M(()=>r.value.reduce((s,a)=>s+a.list.length,0)),t=D("通知"),r=D([{name:"通知",type:"primary",list:Pn},{name:"消息",type:"danger",list:Fn},{name:"待办",type:"warning",list:Wn}]),n=()=>{me.success(`跳转到${t.value}历史页面`)};return(s,a)=>{const l=g("el-icon"),c=g("el-tooltip"),f=g("el-badge"),m=g("el-scrollbar"),p=g("el-tab-pane"),y=g("el-tabs"),v=g("el-button"),h=g("el-popover");return i(),C("div",zn,[u(h,{placement:"bottom",width:Nn,trigger:"click"},{reference:_(()=>[u(f,{value:e.value,max:Be,hidden:e.value===0},{default:_(()=>[u(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[u(l,{size:20},{default:_(()=>[u(d(St))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[u(y,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=x=>t.value=x),class:"demo-tabs",stretch:""},{default:_(()=>[(i(!0),C(q,null,Z(r.value,(x,E)=>(i(),w(p,{name:x.name,key:E},{label:_(()=>[J(B(x.name)+" ",1),u(f,{value:x.list.length,max:Be,type:x.type},null,8,["value","type"])]),default:_(()=>[u(m,{height:"400px"},{default:_(()=>[u(Dn,{list:x.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",Bn,[u(v,{link:"",onClick:n},{default:_(()=>[J("查看"+B(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),On=R(Un,[["__scopeId","data-v-a5fd6355"]]),Ne=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Y=(()=>{if(typeof document>"u")return!1;const o=Ne[0],e={};for(const t of Ne)if((t==null?void 0:t[1])in document){for(const[n,s]of t.entries())e[o[n]]=s;return e}return!1})(),Ue={change:Y.fullscreenchange,error:Y.fullscreenerror};let W={request(o=document.documentElement,e){return new Promise((t,r)=>{const n=()=>{W.off("change",n),t()};W.on("change",n);const s=o[Y.requestFullscreen](e);s instanceof Promise&&s.then(n).catch(r)})},exit(){return new Promise((o,e)=>{if(!W.isFullscreen){o();return}const t=()=>{W.off("change",t),o()};W.on("change",t);const r=document[Y.exitFullscreen]();r instanceof Promise&&r.then(t).catch(e)})},toggle(o,e){return W.isFullscreen?W.exit():W.request(o,e)},onchange(o){W.on("change",o)},onerror(o){W.on("error",o)},on(o,e){const t=Ue[o];t&&document.addEventListener(t,e,!1)},off(o,e){const t=Ue[o];t&&document.removeEventListener(t,e,!1)},raw:Y};Object.defineProperties(W,{isFullscreen:{get:()=>!!document[Y.fullscreenElement]},element:{enumerable:!0,get:()=>document[Y.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Y.fullscreenEnabled]}});Y||(W={isEnabled:!1});const qn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(o){const e=o,t=D(!1),r=M(()=>t.value?e.exitTips:e.openTips),n=M(()=>t.value?"fullscreen-exit":"fullscreen"),s=()=>{const y=document.querySelector(e.element)||void 0;W.isEnabled?W.toggle(y):me.warning("您的浏览器无法工作")},a=()=>{t.value=W.isFullscreen,t.value||(document.body.className="")};pe(y=>{W.isEnabled&&W.on("change",a),y(()=>{W.isEnabled&&W.off("change",a)})});const l=D(!1),c=M(()=>l.value?"内容区复原":"内容区放大"),f=M(()=>l.value?"fullscreen-exit":"fullscreen"),m=()=>{l.value=!l.value,document.body.className=l.value?"content-large":""},p=()=>{l.value&&m(),document.body.className="content-full",s()};return(y,v)=>{const h=g("SvgIcon"),x=g("el-tooltip"),E=g("el-dropdown-item"),P=g("el-dropdown-menu"),F=g("el-dropdown");return i(),C("div",null,[y.content?(i(),w(F,{key:1,disabled:t.value},{dropdown:_(()=>[u(P,null,{default:_(()=>[u(E,{onClick:m},{default:_(()=>[J(B(c.value),1)]),_:1}),u(E,{onClick:p},{default:_(()=>v[0]||(v[0]=[J("内容区全屏")])),_:1})]),_:1})]),default:_(()=>[u(h,{name:f.value},null,8,["name"])]),_:1},8,["disabled"])):(i(),w(x,{key:0,effect:"dark",content:r.value,placement:"bottom"},{default:_(()=>[u(h,{name:n.value,onClick:s},null,8,["name"])]),_:1},8,["content"]))])}}}),rt=R(qn,[["__scopeId","data-v-889fe0df"]]),Hn=["onMouseenter"],jn={class:"result-item-title"},Xn=A({__name:"SearchResult",props:dt({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(o,{expose:e}){const t=Je(o,"modelValue"),r=o,n=Ye(),s=D(0),a=m=>{const p=m.name===t.value;return{background:p?"var(--el-color-primary)":"",color:p?"#ffffff":""}},l=m=>{r.isPressUpOrDown||(t.value=m.name)},c=()=>{s.value=Number((window.innerHeight*.4).toFixed(1))},f=m=>{var h;const p=(h=n==null?void 0:n.proxy)==null?void 0:h.$refs[`resultItemRef${m}`];if(!p)return 0;const v=p[0].offsetTop+128;return v>s.value?v-s.value:0};return qe(()=>{window.addEventListener("resize",c)}),He(()=>{c()}),je(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:f}),(m,p)=>{const y=g("SvgIcon");return i(),C("div",null,[(i(!0),C(q,null,Z(m.list,(v,h)=>{var x,E,P;return i(),C("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Ke(a(v)),onMouseenter:F=>l(v)},[(x=v.meta)!=null&&x.svgIcon?(i(),w(y,{key:0,name:v.meta.svgIcon},null,8,["name"])):(E=v.meta)!=null&&E.elIcon?(i(),w(de(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),S("span",jn,B((P=v.meta)==null?void 0:P.title),1),t.value&&t.value===v.name?(i(),w(y,{key:2,name:"keyboard-enter"})):I("",!0)],44,Hn)}),128))])}}}),Gn=R(Xn,[["__scopeId","data-v-8cd47626"]]),Jn={class:"search-footer"},Kn={class:"search-footer-item"},Yn={class:"search-footer-item"},Zn={class:"search-footer-item"},Qn={class:"search-footer-total"},eo=A({__name:"SearchFooter",props:{total:{}},setup(o){const e=o,{isMobile:t}=ae();return(r,n)=>{const s=g("SvgIcon");return i(),C("div",Jn,[d(t)?I("",!0):(i(),C(q,{key:0},[S("span",Kn,[u(s,{name:"keyboard-enter"}),n[0]||(n[0]=S("span",null,"确认",-1))]),S("span",Yn,[u(s,{name:"keyboard-up"}),u(s,{name:"keyboard-down"}),n[1]||(n[1]=S("span",null,"切换",-1))]),S("span",Zn,[u(s,{name:"keyboard-esc"}),n[2]||(n[2]=S("span",null,"关闭",-1))])],64)),S("span",Qn,"共 "+B(e.total)+" 项",1)])}}}),to=R(eo,[["__scopeId","data-v-8dce46e8"]]),no=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(o){const e=Je(o,"modelValue"),t=ge(),{isMobile:r}=ae(),n=D(null),s=D(null),a=D(null),l=D(""),c=ft([]),f=D(void 0),m=D(!1),p=M(()=>r.value?"80vw":"40vw"),y=M(()=>xt($e().routes)),v=Ct(()=>{var $;const L=h(y.value);c.value=L.filter(U=>{var b,V;return l.value?(V=(b=U.meta)==null?void 0:b.title)==null?void 0:V.toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim()):!1});const k=($=c.value)==null?void 0:$.length;f.value=k>0?c.value[0].name:void 0},500),h=(L,k=[])=>(L.forEach($=>{k.push($),$.children&&h($.children,k)}),k),x=()=>{e.value=!1,setTimeout(()=>{l.value="",c.value=[]},200)},E=L=>{var $;if(!a.value)return;const k=a.value.getScrollTop(L);($=s.value)==null||$.setScrollTop(k)},P=()=>{m.value=!0;const{length:L}=c.value;if(L===0)return;const k=c.value.findIndex($=>$.name===f.value);if(k===0){const $=c.value[L-1].name;f.value===$&&L>1?(f.value=c.value[L-2].name,E(L-2)):(f.value=$,E(L-1))}else f.value=c.value[k-1].name,E(k-1)},F=()=>{m.value=!0;const{length:L}=c.value;if(L===0)return;const k=c.value.map($=>$.name).lastIndexOf(f.value);if(k===L-1){const $=c.value[0].name;f.value===$&&L>1?(f.value=c.value[1].name,E(1)):(f.value=$,E(0))}else f.value=c.value[k+1].name,E(k+1)},N=()=>{var U;const{length:L}=c.value;if(L===0)return;const k=f.value,$=(U=c.value.find(b=>b.name===k))==null?void 0:U.path;if($&&ve($)){window.open($,"_blank","noopener, noreferrer");return}if(!k){me.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:k})}catch{me.error("该菜单有必填的动态参数,无法通过搜索进入");return}x()},H=()=>{m.value=!1};return(L,k)=>{const $=g("SvgIcon"),U=g("el-input"),b=g("el-empty"),V=g("el-dialog");return i(),w(V,{modelValue:e.value,"onUpdate:modelValue":k[2]||(k[2]=z=>e.value=z),onOpened:k[3]||(k[3]=z=>{var T;return(T=n.value)==null?void 0:T.focus()}),onClosed:k[4]||(k[4]=z=>{var T;return(T=n.value)==null?void 0:T.blur()}),onKeydown:[le(P,["up"]),le(F,["down"]),le(N,["enter"])],onKeyup:le(H,["up","down"]),"before-close":x,width:p.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[u(to,{total:c.value.length},null,8,["total"])]),default:_(()=>[u(U,{ref_key:"inputRef",ref:n,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=z=>l.value=z),onInput:d(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[u($,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(i(),w(b,{key:0,description:"暂无搜索结果","image-size":100})):(i(),C(q,{key:1},[k[5]||(k[5]=S("p",null,"搜索结果",-1)),u(d(et),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:_(()=>[u(Gn,{ref_key:"searchResultRef",ref:a,modelValue:f.value,"onUpdate:modelValue":k[1]||(k[1]=z=>f.value=z),list:c.value,isPressUpOrDown:m.value,onClick:N},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),oo=A({__name:"index",setup(o){const e=D(!1),t=()=>{e.value=!0};return(r,n)=>{const s=g("SvgIcon"),a=g("el-tooltip");return i(),C("div",null,[u(a,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[u(s,{name:"search",onClick:t})]),_:1}),u(no,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=l=>e.value=l)},null,8,["modelValue"])])}}}),so=R(oo,[["__scopeId","data-v-dc5accb4"]]),ao={class:"navigation-bar"},ro={class:"right-menu"},lo={class:"right-menu-avatar"},co={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},io={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},uo=A({__name:"index",setup(o){const{isMobile:e}=ae(),{isTop:t}=re(),r=ge(),n=se(),s=ht(),a=K(),{showNotify:l,showThemeSwitch:c,showScreenfull:f,showSearchMenu:m}=oe(a),p=()=>{n.toggleSidebar(!1)},y=()=>{s.logout(),r.push("/login")};return(v,h)=>{const x=g("el-avatar"),E=g("el-dropdown-item"),P=g("el-dropdown-menu"),F=g("el-dropdown");return i(),C("div",ao,[!d(t)||d(e)?(i(),w(Jt,{key:0,"is-active":d(n).sidebar.opened,class:"hamburger",onToggleClick:p},null,8,["is-active"])):I("",!0),!d(t)||d(e)?(i(),w(pn,{key:1,class:"breadcrumb"})):I("",!0),d(t)&&!d(e)?(i(),w(Ae,{key:2,class:"sidebar"})):I("",!0),S("div",ro,[d(m)?(i(),w(so,{key:0,class:"right-menu-item"})):I("",!0),d(f)?(i(),w(rt,{key:1,class:"right-menu-item"})):I("",!0),d(c)?(i(),w(Lt,{key:2,class:"right-menu-item"})):I("",!0),d(l)?(i(),w(On,{key:3,class:"right-menu-item"})):I("",!0),u(F,{class:"right-menu-item"},{dropdown:_(()=>[u(P,null,{default:_(()=>[S("a",co,[u(E,null,{default:_(()=>h[0]||(h[0]=[J("GitHub")])),_:1})]),S("a",io,[u(E,null,{default:_(()=>h[1]||(h[1]=[J("Gitee")])),_:1})]),u(E,{divided:"",onClick:y},{default:_(()=>h[2]||(h[2]=[S("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:_(()=>[S("div",lo,[u(x,{icon:d($t),size:30},null,8,["icon"]),S("span",null,B(d(s).username),1)])]),_:1})])])}}}),Re=R(uo,[["__scopeId","data-v-1ee6dd91"]]),fo={class:"select-layout-mode"},po=A({__name:"SelectLayoutMode",setup(o){const{isLeft:e,isTop:t,isLeftTop:r,setLayoutMode:n}=re();return(s,a)=>{const l=g("el-aside"),c=g("el-header"),f=g("el-main"),m=g("el-container"),p=g("el-tooltip");return i(),C("div",fo,[u(p,{content:"左侧模式"},{default:_(()=>[u(m,{class:O(["layout-mode left",{active:d(e)}]),onClick:a[0]||(a[0]=y=>d(n)(d(te).Left))},{default:_(()=>[u(l),u(m,null,{default:_(()=>[u(c),u(f)]),_:1})]),_:1},8,["class"])]),_:1}),u(p,{content:"顶部模式"},{default:_(()=>[u(m,{class:O(["layout-mode top",{active:d(t)}]),onClick:a[1]||(a[1]=y=>d(n)(d(te).Top))},{default:_(()=>[u(c),u(f)]),_:1},8,["class"])]),_:1}),u(p,{content:"混合模式"},{default:_(()=>[u(m,{class:O(["layout-mode left-top",{active:d(r)}]),onClick:a[2]||(a[2]=y=>d(n)(d(te).LeftTop))},{default:_(()=>[u(c),u(m,null,{default:_(()=>[u(l),u(f)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),mo=R(po,[["__scopeId","data-v-b859d856"]]),_o={class:"setting-container"},vo={class:"setting-name"},ho=A({__name:"index",setup(o){const{isLeft:e}=re(),t=K(),{showTagsView:r,showLogo:n,fixedHeader:s,showFooter:a,showNotify:l,showThemeSwitch:c,showScreenfull:f,showSearchMenu:m,cacheTagsView:p,showWatermark:y,showGreyMode:v,showColorWeakness:h}=oe(t),x={显示标签栏:r,"显示 Logo":n,"固定 Header":s,"显示页脚 Footer":a,显示消息通知:l,显示切换主题按钮:c,显示全屏按钮:f,显示搜索按钮:m,是否缓存标签栏:p,开启系统水印:y,显示灰色模式:v,显示色弱模式:h};pe(()=>{!e.value&&(s.value=!0)});const E=()=>{gt(),location.reload()};return(P,F)=>{const N=g("el-divider"),H=g("el-switch"),L=g("el-button");return i(),C("div",_o,[F[1]||(F[1]=S("h4",null,"布局配置",-1)),u(mo),u(N),F[2]||(F[2]=S("h4",null,"功能配置",-1)),(i(),C(q,null,Z(x,(k,$,U)=>S("div",{class:"setting-item",key:U},[S("span",vo,B($),1),u(H,{modelValue:k.value,"onUpdate:modelValue":b=>k.value=b,disabled:!d(e)&&$==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),u(L,{type:"danger",icon:d(Tt),onClick:E},{default:_(()=>F[0]||(F[0]=[J("重 置")])),_:1},8,["icon"])])}}}),go=R(ho,[["__scopeId","data-v-0520d80d"]]),yo={class:"scroll-container"},bo=200,wo=A({__name:"ScrollPane",props:{tagRefs:{}},setup(o){const e=o,t=he(),r=K(),{listenerRouteChange:n}=we(),s=D(),a=D();let l=0;const c=({scrollLeft:v})=>{l=v},f=({deltaY:v})=>{/^-/.test(v.toString())?p("left"):p("right")},m=()=>{const v=a.value.clientWidth,h=s.value.wrapRef.clientWidth,x=v-h-l;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:x}},p=(v,h=bo)=>{let x=0;const{scrollbarContentRefWidth:E,scrollbarRefWidth:P,lastDistance:F}=m();P>E||(v==="left"?x=Math.max(0,l-h):x=Math.min(l+h,l+F),s.value.setScrollLeft(x))},y=()=>{const v=e.tagRefs;for(let h=0;hN){const H=P-N;p("right",H);return}}};return n(()=>{pt(y)}),(v,h)=>{const x=g("el-icon");return i(),C("div",yo,[u(x,{class:"arrow left",onClick:h[0]||(h[0]=E=>p("left"))},{default:_(()=>[u(d(Et))]),_:1}),u(d(et),{ref_key:"scrollbarRef",ref:s,onWheelPassive:f,onScroll:c},{default:_(()=>[S("div",{ref_key:"scrollbarContentRef",ref:a,class:"scrollbar-content"},[fe(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),u(x,{class:"arrow right",onClick:h[1]||(h[1]=E=>p("right"))},{default:_(()=>[u(d(Mt))]),_:1}),d(r).showScreenfull?(i(),w(rt,{key:0,content:!0,class:"screenfull"})):I("",!0)])}}}),ko=R(wo,[["__scopeId","data-v-5784e87c"]]),So={class:"tags-view-container"},xo=A({__name:"index",setup(o){const e=Ye(),t=ge(),r=he(),n=Qe(),s=$e(),{listenerRouteChange:a}=we(),l=D([]),c=D(!1),f=D(0),m=D(0),p=D({});let y=[];const v=b=>b.path===r.path,h=b=>{var V;return(V=b.meta)==null?void 0:V.affix},x=(b,V="/")=>{const z=[];return b.forEach(T=>{if(h(T)){const j=at.resolve(V,T.path);z.push({fullPath:j,path:j,name:T.name,meta:{...T.meta}})}if(T.children){const j=x(T.children,T.path);z.push(...j)}}),z},E=()=>{y=x(s.routes);for(const b of y)b.name&&n.addVisitedView(b)},P=b=>{b.name&&(n.addVisitedView(b),n.addCachedView(b))},F=b=>{n.delCachedView(b),t.replace({path:"/redirect"+b.path,query:b.query})},N=b=>{n.delVisitedView(b),n.delCachedView(b),v(b)&&k(n.visitedViews,b)},H=()=>{const b=p.value.fullPath;b!==r.path&&b!==void 0&&t.push(b),n.delOthersVisitedViews(p.value),n.delOthersCachedViews(p.value)},L=b=>{n.delAllVisitedViews(),n.delAllCachedViews(),!y.some(V=>V.path===r.path)&&k(n.visitedViews,b)},k=(b,V)=>{const z=b.slice(-1)[0],T=z==null?void 0:z.fullPath;T!==void 0?t.push(T):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},$=(b,V)=>{const T=e.proxy.$el.getBoundingClientRect().left,xe=e.proxy.$el.offsetWidth-105,Pe=V.clientX-T+15;m.value=Pe>xe?xe:Pe,f.value=V.clientY,c.value=!0,p.value=b},U=()=>{c.value=!1};return Oe(c,b=>{b?document.body.addEventListener("click",U):document.body.removeEventListener("click",U)}),E(),a(b=>{P(b)},!0),(b,V)=>{const z=g("el-icon");return i(),C("div",So,[u(ko,{class:"tags-view-wrapper","tag-refs":l.value},{default:_(()=>[(i(!0),C(q,null,Z(d(n).visitedViews,T=>(i(),w(d(mt),{ref_for:!0,ref_key:"tagRefs",ref:l,key:T.path,class:O([{active:v(T)},"tags-view-item"]),to:{path:T.path,query:T.query},onMouseup:ce(j=>!h(T)&&N(T),["middle"]),onContextmenu:ce(j=>$(T,j),["prevent"])},{default:_(()=>{var j;return[J(B((j=T.meta)==null?void 0:j.title)+" ",1),h(T)?I("",!0):(i(),w(z,{key:0,size:12,onClick:ce(xe=>N(T),["prevent","stop"])},{default:_(()=>[u(d(Vt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ye(S("ul",{class:"contextmenu",style:Ke({left:m.value+"px",top:f.value+"px"})},[S("li",{onClick:V[0]||(V[0]=T=>F(p.value))},"刷新"),h(p.value)?I("",!0):(i(),C("li",{key:0,onClick:V[1]||(V[1]=T=>N(p.value))},"关闭")),S("li",{onClick:H},"关闭其它"),S("li",{onClick:V[2]||(V[2]=T=>L(p.value))},"关闭所有")],4),[[be,c.value]])])}}}),De=R(xo,[["__scopeId","data-v-6ee4ae65"]]),Co=A({__name:"index",props:{buttonTop:{default:350}},setup(o){Ge(n=>({"14e85e11":t}));const t=o.buttonTop+"px",r=D(!1);return(n,s)=>{const a=g("el-icon"),l=g("el-drawer");return i(),C(q,null,[S("div",{class:"handle-button",onClick:s[0]||(s[0]=c=>r.value=!0)},[u(a,{size:24},{default:_(()=>[u(d(It))]),_:1})]),u(l,{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=c=>r.value=c),size:"300px","with-header":!1},{default:_(()=>[fe(n.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),$o=R(Co,[["__scopeId","data-v-272ec5c4"]]),To=A({__name:"LeftMode",setup(o){const{isMobile:e}=ae(),t=se(),r=K(),{showTagsView:n,fixedHeader:s}=oe(r),a=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),l=()=>{t.closeSidebar(!1)};return(c,f)=>(i(),C("div",{class:O([a.value,"app-wrapper"])},[a.value.mobile&&a.value.openSidebar?(i(),C("div",{key:0,class:"drawer-bg",onClick:l})):I("",!0),u(d(Ae),{class:"sidebar-container"}),S("div",{class:O([{hasTagsView:d(n)},"main-container"])},[S("div",{class:O([{"fixed-header":d(s)},"layout-header"])},[u(d(Re)),ye(u(d(De),null,null,512),[[be,d(n)]])],2),u(d(Te),{class:"app-main"})],2)],2))}}),Eo=R(To,[["__scopeId","data-v-79281f6e"]]),Mo={class:"app-wrapper"},Vo={class:"fixed-header layout-header"},Io={class:"content"},Lo=A({__name:"TopMode",setup(o){const e=K(),{showTagsView:t,showLogo:r}=oe(e);return(n,s)=>(i(),C("div",Mo,[S("div",Vo,[S("div",Io,[d(r)?(i(),w(d(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),u(d(Re),{class:"navigation-bar"})]),ye(u(d(De),null,null,512),[[be,d(t)]])]),S("div",{class:O([{hasTagsView:d(t)},"main-container"])},[u(d(Te),{class:"app-main"})],2)]))}}),Ao=R(Lo,[["__scopeId","data-v-da4d3997"]]),Ro={class:"fixed-header layout-header"},Do={class:"content"},Po=A({__name:"LeftTopMode",setup(o){const e=se(),t=K(),{showTagsView:r,showLogo:n}=oe(t),s=M(()=>({hideSidebar:!e.sidebar.opened}));return(a,l)=>(i(),C("div",{class:O([s.value,"app-wrapper"])},[S("div",Ro,[d(n)?(i(),w(d(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),S("div",Do,[u(d(Re)),ye(u(d(De),null,null,512),[[be,d(r)]])])]),S("div",{class:O([{hasTagsView:d(r)},"main-container"])},[u(d(Ae),{class:"sidebar-container"}),u(d(Te),{class:"app-main"})],2)],2))}}),Fo=R(Po,[["__scopeId","data-v-04f7d29d"]]),Ce="--v3-tagsview-height",Wo=A({__name:"index",setup(o){Dt();const{setWatermark:e,clearWatermark:t}=yt(),{isMobile:r}=ae(),{isLeft:n,isTop:s,isLeftTop:a}=re(),l=K(),{showSettings:c,showTagsView:f,showWatermark:m,showGreyMode:p,showColorWeakness:y}=oe(l),v=M(()=>({showGreyMode:p.value,showColorWeakness:y.value})),h=ue(Ce);return pe(()=>{f.value?ze(Ce,h):ze(Ce,"0px")}),pe(()=>{m.value?e("V3 Admin Vite"):t()}),(x,E)=>(i(),C("div",{class:O(v.value)},[d(n)||d(r)?(i(),w(Eo,{key:0})):d(s)?(i(),w(Ao,{key:1})):d(a)?(i(),w(Fo,{key:2})):I("",!0),d(c)?(i(),w(d($o),{key:3},{default:_(()=>[u(d(go))]),_:1})):I("",!0)],2))}}),Ho=R(Wo,[["__scopeId","data-v-1f418a36"]]);export{Ho as default}; diff --git a/static/index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js b/static/index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js similarity index 94% rename from static/index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js rename to static/index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js index 76d3a97a..084ab7ac 100644 --- a/static/index.vue_vue_type_script_setup_true_lang-BJe_8M6N.js +++ b/static/index.vue_vue_type_script_setup_true_lang-DWq_S2q7.js @@ -1 +1 @@ -import{h as g}from"./index-B0wv9L4V.js";import{A as v}from"./element-DU-WrzgO.js";import{p as T,ai as o,q as c,M as p,O as e,U as r,t as C,a8 as B,u as i,v as _,T as M,F as V}from"./vue-C8lPpR34.js";const F=T({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},d)=>{const m=Math.hypot(Math.max(n,window.innerWidth-n),Math.max(a,window.innerHeight-a)),t=document.documentElement.style;t.setProperty("--v3-theme-x",n+"px"),t.setProperty("--v3-theme-y",a+"px"),t.setProperty("--v3-theme-r",m+"px");const s=()=>{f(d)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const d=o("el-icon"),m=o("el-tooltip"),t=o("el-dropdown-item"),s=o("el-dropdown-menu"),x=o("el-dropdown");return c(),p(x,{trigger:"click"},{dropdown:e(()=>[r(s,null,{default:e(()=>[(c(!0),C(V,null,B(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,M(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(d,{size:20},{default:e(()=>[r(i(v))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; +import{h as g}from"./index-BE9-SrlX.js";import{A as v}from"./element-DU-WrzgO.js";import{p as T,ai as o,q as c,M as p,O as e,U as r,t as C,a8 as B,u as i,v as _,T as M,F as V}from"./vue-C8lPpR34.js";const F=T({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},d)=>{const m=Math.hypot(Math.max(n,window.innerWidth-n),Math.max(a,window.innerHeight-a)),t=document.documentElement.style;t.setProperty("--v3-theme-x",n+"px"),t.setProperty("--v3-theme-y",a+"px"),t.setProperty("--v3-theme-r",m+"px");const s=()=>{f(d)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const d=o("el-icon"),m=o("el-tooltip"),t=o("el-dropdown-item"),s=o("el-dropdown-menu"),x=o("el-dropdown");return c(),p(x,{trigger:"click"},{dropdown:e(()=>[r(s,null,{default:e(()=>[(c(!0),C(V,null,B(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,M(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(d,{size:20},{default:e(()=>[r(i(v))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; diff --git a/static/page-CYJJMmbX.js b/static/page-ad5orih1.js similarity index 77% rename from static/page-CYJJMmbX.js rename to static/page-ad5orih1.js index 01f10918..729a7d63 100644 --- a/static/page-CYJJMmbX.js +++ b/static/page-ad5orih1.js @@ -1 +1 @@ -import{S as a}from"./SwitchRoles-D1AQaOBi.js";import{p as s,ai as n,q as r,t as p,U as t,O as _,S as c}from"./vue-C8lPpR34.js";import{_ as i}from"./index-B0wv9L4V.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const m={class:"app-container"},l=s({__name:"page",setup(d){return(f,e)=>{const o=n("el-tag");return r(),p("div",m,[t(a),t(o,{type:"warning",size:"large"},{default:_(()=>e[0]||(e[0]=[c("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")])),_:1})])}}}),C=i(l,[["__scopeId","data-v-70c1e438"]]);export{C as default}; +import{S as a}from"./SwitchRoles-kikk-6cd.js";import{p as s,ai as n,q as r,t as p,U as t,O as _,S as c}from"./vue-C8lPpR34.js";import{_ as i}from"./index-BE9-SrlX.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const m={class:"app-container"},l=s({__name:"page",setup(d){return(f,e)=>{const o=n("el-tag");return r(),p("div",m,[t(a),t(o,{type:"warning",size:"large"},{default:_(()=>e[0]||(e[0]=[c("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")])),_:1})])}}}),C=i(l,[["__scopeId","data-v-70c1e438"]]);export{C as default}; diff --git a/static/use-watermark-l9p6BSeM.js b/static/use-watermark-BI75wNKE.js similarity index 96% rename from static/use-watermark-l9p6BSeM.js rename to static/use-watermark-BI75wNKE.js index f7d28a29..06ca1f69 100644 --- a/static/use-watermark-l9p6BSeM.js +++ b/static/use-watermark-BI75wNKE.js @@ -1 +1 @@ -import{u as m}from"./useWatermark-BiV6n824.js";import{p as v,a as y,ai as i,q as _,t as W,v as d,U as t,O as o,u as l,S as n}from"./vue-C8lPpR34.js";import{_ as b}from"./index-B0wv9L4V.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const g={class:"app-container"},x=v({__name:"use-watermark",setup($){const s=y(null),{setWatermark:f,clearWatermark:k}=m(s),{setWatermark:p,clearWatermark:C}=m();return(w,e)=>{const r=i("el-button"),u=i("el-button-group");return _(),W("div",g,[e[10]||(e[10]=d("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),d("div",{ref_key:"localRef",ref:s,class:"local"},null,512),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[0]||(e[0]=a=>l(f)("局部水印",{color:"#409eff"}))},{default:o(()=>e[4]||(e[4]=[n("创建局部水印")])),_:1}),t(r,{type:"warning",onClick:e[1]||(e[1]=a=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[5]||(e[5]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(k)},{default:o(()=>e[6]||(e[6]=[n("清除局部水印")])),_:1},8,["onClick"])]),_:1}),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[2]||(e[2]=a=>l(p)("全局水印",{color:"#409eff"}))},{default:o(()=>e[7]||(e[7]=[n("创建全局水印")])),_:1}),t(r,{type:"warning",onClick:e[3]||(e[3]=a=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[8]||(e[8]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(C)},{default:o(()=>e[9]||(e[9]=[n("清除全局水印")])),_:1},8,["onClick"])]),_:1})])}}}),c=b(x,[["__scopeId","data-v-dbeea05d"]]);export{c as default}; +import{u as m}from"./useWatermark-BiV6n824.js";import{p as v,a as y,ai as i,q as _,t as W,v as d,U as t,O as o,u as l,S as n}from"./vue-C8lPpR34.js";import{_ as b}from"./index-BE9-SrlX.js";import"./element-DU-WrzgO.js";import"./vxe-CSEOtpXg.js";const g={class:"app-container"},x=v({__name:"use-watermark",setup($){const s=y(null),{setWatermark:f,clearWatermark:k}=m(s),{setWatermark:p,clearWatermark:C}=m();return(w,e)=>{const r=i("el-button"),u=i("el-button-group");return _(),W("div",g,[e[10]||(e[10]=d("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),d("div",{ref_key:"localRef",ref:s,class:"local"},null,512),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[0]||(e[0]=a=>l(f)("局部水印",{color:"#409eff"}))},{default:o(()=>e[4]||(e[4]=[n("创建局部水印")])),_:1}),t(r,{type:"warning",onClick:e[1]||(e[1]=a=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[5]||(e[5]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(k)},{default:o(()=>e[6]||(e[6]=[n("清除局部水印")])),_:1},8,["onClick"])]),_:1}),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[2]||(e[2]=a=>l(p)("全局水印",{color:"#409eff"}))},{default:o(()=>e[7]||(e[7]=[n("创建全局水印")])),_:1}),t(r,{type:"warning",onClick:e[3]||(e[3]=a=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[8]||(e[8]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(C)},{default:o(()=>e[9]||(e[9]=[n("清除全局水印")])),_:1},8,["onClick"])]),_:1})])}}}),c=b(x,[["__scopeId","data-v-dbeea05d"]]);export{c as default};