Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-23 04:19:20 +08:00
v3-admin-vite/static/index-9cZpTiPb.js

13 lines
63 KiB
JavaScript

var kt=Object.defineProperty;var xt=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>(xt(e,typeof t!="symbol"?t+"":t,n),n);import{r as x,w as Xe,l as Ye,M as Pt,O as Dt,u as Bt,ag as De,m as Ze,U as Ft,ax as Lt,ay as Nt,az as It,aA as Q,b as Qe,z as Vt,e as Mt,p as Ut,q as jt,as as zt}from"./vue-CcSL1usY.js";import{E as Ht,b as G,c as qt,m as Wt,e as Jt,g as $t,i as Gt,f as Kt}from"./element-_HuYMAMt.js";import{V as ye,a as Xt}from"./vxe-DDhFj3ga.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}N(_,"TOKEN",`${M}-token-key`),N(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),N(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),N(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),N(_,"VISITED_VIEWS",`${M}-visited-views-key`),N(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Yt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Zt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),bs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},Qt=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),en=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},tn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},nn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},rn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},sn=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",on=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=x(Qt()||et),an=e=>{we.value=e},cn=e=>{document.documentElement.className=e},un=()=>{Xe(()=>{const e=we.value;cn(e),en(e)})};function ln(){return{themeList:on,activeThemeName:we,initTheme:un,setTheme:an}}var dn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",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:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},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 fn=Ye({__name:"App",setup(e){const{initTheme:t}=ln();return t(),Ht({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Pt(o,{locale:Bt(dn)},{default:Dt(()=>[Ft(s)]),_:1},8,["locale"])}}}),be=Lt(),mn="modulepreload",pn=function(e){return"/v3-admin-vite/"+e},Be={},v=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=pn(i),i in Be)return;Be[i]=!0;const l=i.endsWith(".css"),m=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const p=o[c];if(p.href===i&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${m}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":mn,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},hn=Nt("/v3-admin-vite/"),tt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>v(()=>import("./index-DyJgpnZr.js"),__vite__mapDeps([0,1,2,3,4,5,6])),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>v(()=>import("./index-Cq4hWXtK.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>v(()=>import("./403-CcSpp6gB.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-Ckb7oePp.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-Bcc-A0mh.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-CIEXPtsB.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-AZn5FhSZ.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:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-EwjeseOs.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-P5lxXd9x.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-DfTvJ6TV.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-Z9IIQqLT.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-DNtTqu-b.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:()=>v(()=>import("./index-DszsxlfD.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-bJpKc1c2.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-eChn0LYL.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-Ursk_FKi.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-DE07B-T-.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-Cbyx485a.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>v(()=>import("./use-watermark-D3FQkllf.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Fe=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-B4jcUltP.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-B-CP26Ry.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],F=It({history:hn,routes:nt});function En(){try{F.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&F.hasRoute(t)&&F.removeRoute(t)})}catch{window.location.reload()}}var gn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(gn||{}),rt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(rt||{});const vs="opened",Ss="closed",yn={layoutMode:rt.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},wn={...yn,...Yt()},st=Q("settings",()=>{const e={};for(const[n,r]of Object.entries(wn)){const s=x(r);e[n]=s,Qe(s,()=>{const o=t();Zt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),bn=Q("tags-view",()=>{const{cacheTagsView:e}=st(),t=x(e?tn():[]),n=x(e?rn():[]);return Xe(()=>{nn(t.value),sn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:c=>{const p=t.value.findIndex(w=>w.path===c.path);p!==-1?t.value[p].fullPath!==c.fullPath&&(t.value[p]={...c}):t.value.push({...c})},addCachedView:c=>{var p;typeof c.name=="string"&&(n.value.includes(c.name)||(p=c.meta)!=null&&p.keepAlive&&n.value.push(c.name))},delVisitedView:c=>{const p=t.value.findIndex(w=>w.path===c.path);p!==-1&&t.value.splice(p,1)},delCachedView:c=>{if(typeof c.name!="string")return;const p=n.value.indexOf(c.name);p!==-1&&n.value.splice(p,1)},delOthersVisitedViews:c=>{t.value=t.value.filter(p=>{var w;return((w=p.meta)==null?void 0:w.affix)||p.path===c.path})},delOthersCachedViews:c=>{if(typeof c.name!="string")return;const p=n.value.indexOf(c.name);p!==-1?n.value=n.value.slice(p,p+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(c=>{var p;return(p=c.meta)==null?void 0:p.affix})},delAllCachedViews:()=>{n.value=[]}}});function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var vn={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ue(e,t){function n(s,o,i){if(!(typeof document>"u")){i=$({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var m in i)i[m]&&(l+="; "+m,i[m]!==!0&&(l+="="+i[m].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;l<o.length;l++){var m=o[l].split("="),E=m.slice(1).join("=");try{var f=decodeURIComponent(m[0]);if(i[f]=e.read(E,f),s===f)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:r,remove:function(s,o){n(s,"",$({},o,{expires:-1}))},withAttributes:function(s){return ue(this.converter,$({},this.attributes,s))},withConverter:function(s){return ue($({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ve=ue(vn,{path:"/"});const Se=()=>ve.get(_.TOKEN),Le=e=>{ve.set(_.TOKEN,e)},Ne=()=>{ve.remove(_.TOKEN)};function ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:_e}=Object,ee=(e=>t=>{const n=Sn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>ee(t)===e),te=e=>t=>typeof t===e,{isArray:j}=Array,H=te("undefined");function _n(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const it=P("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&it(e.buffer),t}const Tn=te("string"),R=te("function"),at=te("number"),ne=e=>e!==null&&typeof e=="object",Rn=e=>e===!0||e===!1,K=e=>{if(ee(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},On=P("Date"),Cn=P("File"),kn=P("Blob"),xn=P("FileList"),Pn=e=>ne(e)&&R(e.pipe),Dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ee(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Bn=P("URLSearchParams"),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),j(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function ct(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lt=e=>!H(e)&&e!==ut;function le(){const{caseless:e}=lt(this)&&this||{},t={},n=(r,s)=>{const o=e&&ct(t,s)||s;K(t[o])&&K(r)?t[o]=le(t[o],r):K(r)?t[o]=le({},r):j(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&q(arguments[r],n);return t}const Ln=(e,t,n,{allOwnKeys:r}={})=>(q(t,(s,o)=>{n&&R(s)?e[o]=ot(s,n):e[o]=s},{allOwnKeys:r}),e),Nn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),In=(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)},Vn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mn=(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},Un=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!at(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),zn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Hn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qn=P("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jn=P("RegExp"),dt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},$n=e=>{dt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(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+"'")})}})},Gn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Kn=()=>{},Xn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),oe="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",ft={DIGIT:Ve,ALPHA:oe,ALPHA_DIGIT:oe+oe.toUpperCase()+Ve},Yn=(e=16,t=ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qn=e=>{const t=new Array(10),n=(r,s)=>{if(ne(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=j(r)?[]:{};return q(r,(i,l)=>{const m=n(i,s+1);!H(m)&&(o[l]=m)}),t[s]=void 0,o}}return r};return n(e,0)},er=P("AsyncFunction"),tr=e=>e&&(ne(e)||R(e))&&R(e.then)&&R(e.catch),u={isArray:j,isArrayBuffer:it,isBuffer:_n,isFormData:Dn,isArrayBufferView:An,isString:Tn,isNumber:at,isBoolean:Rn,isObject:ne,isPlainObject:K,isUndefined:H,isDate:On,isFile:Cn,isBlob:kn,isRegExp:Jn,isFunction:R,isStream:Pn,isURLSearchParams:Bn,isTypedArray:jn,isFileList:xn,forEach:q,merge:le,extend:Ln,trim:Fn,stripBOM:Nn,inherits:In,toFlatObject:Vn,kindOf:ee,kindOfTest:P,endsWith:Mn,toArray:Un,forEachEntry:zn,matchAll:Hn,isHTMLForm:qn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:dt,freezeMethods:$n,toObjectSet:Gn,toCamelCase:Wn,noop:Kn,toFiniteNumber:Xn,findKey:ct,global:ut,isContextDefined:lt,ALPHABET:ft,generateString:Yn,isSpecCompliantForm:Zn,toJSONObject:Qn,isAsyncFn:er,isThenable:tr};function g(e,t,n,r,s){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),s&&(this.response=s)}u.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:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=g.prototype,pt={};["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=>{pt[e]={value:e}});Object.defineProperties(g,pt);Object.defineProperty(mt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(mt);return u.toFlatObject(e,i,function(m){return m!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const nr=null;function de(e){return u.isPlainObject(e)||u.isArray(e)}function ht(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function rr(e){return u.isArray(e)&&!e.some(de)}const sr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!u.isUndefined(h[d])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function E(a){if(a===null)return"";if(u.isDate(a))return a.toISOString();if(!m&&u.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(a)||u.isTypedArray(a)?m&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,d,h){let y=a;if(a&&!h&&typeof a=="object"){if(u.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(u.isArray(a)&&rr(a)||(u.isFileList(a)||u.endsWith(d,"[]"))&&(y=u.toArray(a)))return d=ht(d),y.forEach(function(T,b){!(u.isUndefined(T)||T===null)&&t.append(i===!0?Me([d],b,o):i===null?d:d+"[]",E(T))}),!1}return de(a)?!0:(t.append(Me(h,d,o),E(a)),!1)}const c=[],p=Object.assign(sr,{defaultVisitor:f,convertValue:E,isVisitable:de});function w(a,d){if(!u.isUndefined(a)){if(c.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(a),u.forEach(a,function(y,S){(!(u.isUndefined(y)||y===null)&&s.call(t,y,u.isString(S)?S.trim():S,d,p))===!0&&w(y,d?d.concat(S):[S])}),c.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ae(e,t){this._pairs=[],e&&re(e,this,t)}const Et=Ae.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function or(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,t,n){if(!t)return e;const r=n&&n.encode||or,s=n&&n.serialize;let o;if(s?o=s(t,n):o=u.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}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){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir=typeof URLSearchParams<"u"?URLSearchParams:Ae,ar=typeof FormData<"u"?FormData:null,cr=typeof Blob<"u"?Blob:null,ur={isBrowser:!0,classes:{URLSearchParams:ir,FormData:ar,Blob:cr},protocols:["http","https","file","blob","url","data"]},wt=typeof window<"u"&&typeof document<"u",lr=(e=>wt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:dr},Symbol.toStringTag,{value:"Module"})),k={...fr,...ur};function mr(e,t){return re(e,new k.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return k.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function bt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),m=o>=n.length;return i=!i&&u.isArray(s)?s.length:i,m?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=hr(s[i])),!l)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function Er(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Te={transitional:yt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(bt(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mr(t,this.formSerializer).toString();if((l=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return re(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||Te.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&u.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{Te.headers[e]={}});const Re=Te,gr=u.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"]),yr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&gr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function X(e){return e===!1||e==null?e:u.isArray(e)?e.map(X):String(e)}function wr(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 br=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ie(e,t,n,r,s){if(u.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!u.isString(t)){if(u.isString(r))return t.indexOf(r)!==-1;if(u.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 Sr(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class se{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,m,E){const f=z(m);if(!f)throw new Error("header name must be a non-empty string");const c=u.findKey(s,f);(!c||s[c]===void 0||E===!0||E===void 0&&s[c]!==!1)&&(s[c||m]=X(l))}const i=(l,m)=>u.forEach(l,(E,f)=>o(E,f,m));return u.isPlainObject(t)||t instanceof this.constructor?i(t,n):u.isString(t)&&(t=t.trim())&&!br(t)?i(yr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=z(t),t){const r=u.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wr(s);if(u.isFunction(n))return n.call(this,s,r);if(u.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=u.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ie(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const l=u.findKey(r,i);l&&(!n||ie(r,r[l],l,n))&&(delete r[l],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ie(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return u.forEach(this,(s,o)=>{const i=u.findKey(r,o);if(i){n[i]=X(s),delete n[o];return}const l=t?vr(o):String(o).trim();l!==o&&delete n[o],n[l]=X(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&u.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(s=>r.set(s)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=z(i);r[l]||(Sr(s,i),r[l]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(se.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});u.freezeMethods(se);const D=se;function ae(e,t){const n=this||Re,r=t||n,s=D.from(r.headers);let o=r.data;return u.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function vt(e){return!!(e&&e.__CANCEL__)}function W(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(W,g,{__CANCEL__:!0});function _r(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))}const Ar=k.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),u.isString(r)&&i.push("path="+r),u.isString(s)&&i.push("domain="+s),o===!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 Tr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t){return e&&!Tr(t)?Rr(e,t):t}const Or=k.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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=s(window.location.href),function(i){const l=u.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Cr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(m){const E=Date.now(),f=r[o];i||(i=E),n[s]=m,r[s]=E;let c=o,p=0;for(;c!==s;)p+=n[c++],c=c%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),E-i<t)return;const w=f&&E-f;return w?Math.round(p*1e3/w):void 0}}function He(e,t){let n=0;const r=kr(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,m=r(l),E=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:m||void 0,estimated:m&&i&&E?(i-o)/m:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const xr=typeof XMLHttpRequest<"u",Pr=xr&&function(e){return new Promise(function(n,r){let s=e.data;const o=D.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,m;function E(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}let f;if(u.isFormData(s)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[d,...h]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...h].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+h))}const p=St(e.baseURL,e.url);c.open(e.method.toUpperCase(),gt(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const d=D.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};_r(function(T){n(T),E()},function(T){r(T),E()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new g("Request aborted",g.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||yt;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new g(h,y.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,c)),c=null},k.hasStandardBrowserEnv&&(l&&u.isFunction(l)&&(l=l(e)),l||l!==!1&&Or(p))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Ar.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&u.forEach(o.toJSON(),function(h,y){c.setRequestHeader(y,h)}),u.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(m=d=>{c&&(r(!d||d.type?new W(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m)));const a=Cr(p);if(a&&k.protocols.indexOf(a)===-1){r(new g("Unsupported protocol "+a+":",g.ERR_BAD_REQUEST,e));return}c.send(s||null)})},fe={http:nr,xhr:Pr};u.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qe=e=>`- ${e}`,Dr=e=>u.isFunction(e)||e===null||e===!1,_t={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Dr(n)&&(r=fe[(i=String(n)).toLowerCase()],r===void 0))throw new g(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([l,m])=>`adapter ${l} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(qe).join(`
`):" "+qe(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:fe};function ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new W(null,e)}function We(e){return ce(e),e.headers=D.from(e.headers),e.data=ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_t.getAdapter(e.adapter||Re.adapter)(e).then(function(r){return ce(e),r.data=ae.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return vt(r)||(ce(e),r&&r.response&&(r.response.data=ae.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const Je=e=>e instanceof D?e.toJSON():e;function U(e,t){t=t||{};const n={};function r(E,f,c){return u.isPlainObject(E)&&u.isPlainObject(f)?u.merge.call({caseless:c},E,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(E,f,c){if(u.isUndefined(f)){if(!u.isUndefined(E))return r(void 0,E,c)}else return r(E,f,c)}function o(E,f){if(!u.isUndefined(f))return r(void 0,f)}function i(E,f){if(u.isUndefined(f)){if(!u.isUndefined(E))return r(void 0,E)}else return r(void 0,f)}function l(E,f,c){if(c in t)return r(E,f);if(c in e)return r(void 0,E)}const m={url:o,method:o,data:o,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:l,headers:(E,f)=>s(Je(E),Je(f),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=m[f]||s,p=c(e[f],t[f],f);u.isUndefined(p)&&c!==l||(n[f]=p)}),n}const At="1.6.7",Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $e={};Oe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+At+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!$e[i]&&($e[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Br(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],m=l===void 0||i(l,o,e);if(m!==!0)throw new g("option "+o+" must be "+m,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const me={assertOptions:Br,validators:Oe},B=me.validators;class Z{constructor(t){this.defaults=t,this.interceptors={request:new je,response:new je}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&me.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:me.assertOptions(s,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=D.concat(i,o);const l=[];let m=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(m=m&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const E=[];this.interceptors.response.forEach(function(d){E.push(d.fulfilled,d.rejected)});let f,c=0,p;if(!m){const a=[We.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,E),p=a.length,f=Promise.resolve(n);c<p;)f=f.then(a[c++],a[c++]);return f}p=l.length;let w=n;for(c=0;c<p;){const a=l[c++],d=l[c++];try{w=a(w)}catch(h){d.call(this,h);break}}try{f=We.call(this,w)}catch(a){return Promise.reject(a)}for(c=0,p=E.length;c<p;)f=f.then(E[c++],E[c++]);return f}getUri(t){t=U(this.defaults,t);const n=St(t.baseURL,t.url);return gt(n,t.params,t.paramsSerializer)}}u.forEach(["delete","get","head","options"],function(t){Z.prototype[t]=function(n,r){return this.request(U(r||{},{method:t,url:n,data:(r||{}).data}))}});u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(U(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Z.prototype[t]=n(),Z.prototype[t+"Form"]=n(!0)});const Y=Z;class Ce{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new W(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ce(function(s){t=s}),cancel:t}}}const Fr=Ce;function Lr(e){return function(n){return e.apply(null,n)}}function Nr(e){return u.isObject(e)&&e.isAxiosError===!0}const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach(([e,t])=>{pe[t]=e});const Ir=pe;function Tt(e){const t=new Y(e),n=ot(Y.prototype.request,t);return u.extend(n,Y.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Tt(U(e,s))},n}const A=Tt(Re);A.Axios=Y;A.CanceledError=W;A.CancelToken=Fr;A.isCancel=vt;A.VERSION=At;A.toFormData=re;A.AxiosError=g;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=Lr;A.isAxiosError=Nr;A.mergeConfig=U;A.AxiosHeaders=D;A.formToJSON=e=>bt(u.isHTMLForm(e)?new FormData(e):e);A.getAdapter=_t.getAdapter;A.HttpStatusCode=Ir;A.default=A;function Ge(){xe().logout(),location.reload()}function Vr(){const e=A.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return G.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return Ge();default:return G.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(qt(t,"response.status")){case 400:t.message="请求错误";break;case 401:Ge();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return G.error(t.message),Promise.reject(t)}),e}function Mr(e){return function(t){const n=Se(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1",data:{}},s=Wt(r,t);return e(s)}}const Ur=Vr(),ke=Mr(Ur);function _s(){return ke({url:"login/code",method:"get"})}function jr(e){return ke({url:"users/login",method:"post",data:e})}function zr(){return ke({url:"users/info",method:"get"})}const Hr=Q("user",()=>{const e=x(Se()||""),t=x([]),n=x(""),r=bn(),s=st(),o=async({username:c,password:p,code:w})=>{const{data:a}=await jr({username:c,password:p,code:w});Le(a.token),e.value=a.token},i=async()=>{var p;const{data:c}=await zr();n.value=c.username,t.value=((p=c.roles)==null?void 0:p.length)>0?c.roles:tt.defaultRoles},l=async c=>{const p="token-"+c;e.value=p,Le(p),window.location.reload()},m=()=>{Ne(),e.value="",t.value=[],En(),f()},E=()=>{Ne(),e.value="",t.value=[]},f=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,login:o,getInfo:i,changeRoles:l,logout:m,resetToken:E}});function xe(){return Hr(be)}const qr=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},Rt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};qr(t,s)&&(s.children&&(s.children=Rt(s.children,t)),n.push(s))}),n},Wr=Q("permission",()=>{const e=x([]),t=x([]),n=o=>{const i=Rt(Fe,o);s(i)},r=()=>{s(Fe)},s=o=>{e.value=nt.concat(o),t.value=o};return{routes:e,addRoutes:t,setRoutes:n,setAllRoutes:r}});function Jr(){return Wr(be)}function $r(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const he=$r(),Ee=Symbol("ROUTE_CHANGE");let ge;const Gr=e=>{he.emit(Ee,e),ge=e};function As(){const e=[],t=(r,s=!1)=>{e.push(r),he.on(Ee,r),s&&ge&&r(ge)},n=r=>{he.off(Ee,r)};return Vt(()=>{for(let r=0;r<e.length;r++)n(e[r])}),{listenerRouteChange:t,removeRouteListener:n}}const Ke="V3 Admin Vite",Ot=x(""),Kr=e=>{Ot.value=e?`${Ke} | ${e}`:Ke};Qe(Ot,(e,t)=>{document&&e!==t&&(document.title=e)});function Xr(){return{setTitle:Kr}}const Yr=["/login"],Zr=[],Qr=e=>Yr.indexOf(e.path)!==-1||Zr.indexOf(e.name)!==-1;var Ct={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jt,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(a){var d,h;for(d in a)h=a[d],h!==void 0&&a.hasOwnProperty(d)&&(r[d]=h);return this},n.status=null,n.set=function(a){var d=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var h=n.render(!d),y=h.querySelector(r.barSelector),S=r.speed,T=r.easing;return h.offsetWidth,l(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),m(y,i(a,S,T)),a===1?(m(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){m(h,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},S)},S)):setTimeout(b,S)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var d=n.status;return d?(typeof a!="number"&&(a=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+a,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,d=0;n.promise=function(h){return!h||h.state()==="resolved"?this:(d===0&&n.start(),a++,d++,h.always(function(){d--,d===0?(a=0,n.done()):n.set((a-d)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var h=d.querySelector(r.barSelector),y=a?"-100":o(n.status||0),S=document.querySelector(r.parent),T;return m(h,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),S!=document.body&&f(S,"nprogress-custom-parent"),S.appendChild(d),d},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&w(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,d="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return d+"Perspective"in a?"translate3d":d+"Transform"in a?"translate":"margin"};function s(a,d,h){return a<d?d:a>h?h:a}function o(a){return(-1+a)*100}function i(a,d,h){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(a)+"%,0)"}:y={"margin-left":o(a)+"%"},y.transition="all "+d+"ms "+h,y}var l=function(){var a=[];function d(){var h=a.shift();h&&h(d)}return function(h){a.push(h),a.length==1&&d()}}(),m=function(){var a=["Webkit","O","Moz","ms"],d={};function h(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(O,C){return C.toUpperCase()})}function y(b){var O=document.body.style;if(b in O)return b;for(var C=a.length,V=b.charAt(0).toUpperCase()+b.slice(1),L;C--;)if(L=a[C]+V,L in O)return L;return b}function S(b){return b=h(b),d[b]||(d[b]=y(b))}function T(b,O,C){O=S(O),b.style[O]=C}return function(b,O){var C=arguments,V,L;if(C.length==2)for(V in O)L=O[V],L!==void 0&&O.hasOwnProperty(V)&&T(b,V,L);else T(b,C[1],C[2])}}();function E(a,d){var h=typeof a=="string"?a:p(a);return h.indexOf(" "+d+" ")>=0}function f(a,d){var h=p(a),y=h+d;E(h,d)||(a.className=y.substring(1))}function c(a,d){var h=p(a),y;E(a,d)&&(y=h.replace(" "+d+" "," "),a.className=y.substring(1,y.length-1))}function p(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function w(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(Ct);var es=Ct.exports;const Pe=$t(es),{setTitle:ts}=Xr();Pe.configure({showSpinner:!1});F.beforeEach(async(e,t,n)=>{Pe.start();const r=xe(),s=Jr();if(!Se())return Qr(e)?n():n("/login");if(e.path==="/login")return n({path:"/"});if(r.roles.length!==0)return n();try{await r.getInfo();const i=r.roles;tt.dynamic?s.setRoutes(i):s.setAllRoutes(),s.addRoutes.forEach(l=>F.addRoute(l)),n({...e,replace:!0})}catch(i){r.resetToken(),G.error(i.message||"路由守卫过程发生错误"),n("/login")}});F.afterEach(e=>{Gr(e),ts(e.meta.title),Pe.done()});const ns={class:"svg-icon","aria-hidden":"true"},rs=["href"],ss=Ye({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Mt(()=>`#${t.prefix}-${t.name}`);return(r,s)=>(Ze(),Ut("svg",ns,[jt("use",{href:n.value},null,8,rs)]))}}),os=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},is=os(ss,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="icon-404"><path d="M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0ZM480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z" /><path d="m955.7 856-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-bug"><path d="M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 34.8-28.2 63-63 63H232c-34.8 0-63-28.2-63-63 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7 6 17.2 13.6 33.6 22.7 49 24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2c41.5-24.3 76.2-59 100.5-100.5 9.1-15.5 16.7-31.9 22.7-49C812.1 793.1 836 831.8 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3-20.1 11.8-42 20-64.9 24.3V484c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v396.5c-22.9-4.3-44.8-12.5-64.9-24.3-30.3-17.7-55.6-43-73.3-73.3C317.7 752 308 716.8 308 680V412h408v268z" /><path d="M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1-17.2-31.5-42.5-56.8-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9-31.5 17.2-56.8 42.5-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-component"><path d="M64 64h384v384H64V64zm0 512h384v384H64V576zm512 0h384v384H576V576zm192-128c106.039 0 192-85.961 192-192S874.039 64 768 64s-192 85.961-192 192 85.961 192 192 192z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-dashboard"><path d="M924.8 385.6c-22.6-53.4-54.9-101.3-96-142.4-41.1-41.1-89-73.4-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2c-53.4 22.6-101.3 54.9-142.4 96-41.1 41.1-73.4 89-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6C184.5 765.5 140 665.6 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z" /><path d="M623.5 421.5c-3.1-3.1-8.2-3.1-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5-21.9 21.9-21.9 57.3 0 79.2 21.9 21.9 57.3 21.9 79.2 0 14.7-14.7 19.5-35.4 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2-31.1-31.1c-3.1-3.1-8.2-3.1-11.3 0l-56.6 56.6c-3.1 3.1-3.1 8.2 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1c-3.1-3.1-8.2-3.1-11.3 0l-31.1 31.1c-3.1 3.1-3.1 8.2 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-fullscreen-exit"><path d="M704 864v-96c0-54.4 41.6-96 96-96h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-89.6 0-160 70.4-160 160v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64-704v96c0 89.6 70.4 160 160 160h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-54.4 0-96-41.6-96-96v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32zM384 864v-96c0-89.6-70.4-160-160-160h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c54.4 0 96 41.6 96 96v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64-704v96c0 54.4-41.6 96-96 96h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c89.6 0 160-70.4 160-160v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-fullscreen"><path d="M192 384v-96c0-54.4 41.6-96 96-96h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-89.6 0-160 70.4-160 160v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64 256v96c0 89.6 70.4 160 160 160h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-54.4 0-96-41.6-96-96v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32zm768-256v-96c0-89.6-70.4-160-160-160h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c54.4 0 96 41.6 96 96v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64 256v96c0 54.4-41.6 96-96 96h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c89.6 0 160-70.4 160-160v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32z" /></symbol><symbol aria-label="Arrow down" viewBox="0 0 15 15" id="icon-keyboard-down"><path d="M7.5 3.5v8m3-3-3 3-3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Enter key" viewBox="0 0 15 15" id="icon-keyboard-enter"><path d="M12 3.53v3c0 1-1 2-2 2H4m3 3-3-3 3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Escape key" viewBox="0 0 15 15" id="icon-keyboard-esc"><path d="M13.617 8.936c-.107.358-.689.962-1.488.962-.8 0-1.653-.916-1.653-2.126v-.568c0-1.254.79-2.101 1.653-2.101.864 0 1.36.478 1.488 1.072M9 6c-.135-.473-.75-.922-1.46-.897-.71.024-1.344.57-1.344 1.216s.42.882 1.345.98C8.464 7.4 8.967 7.935 9 8.5c.032.566-.454 1.398-1.46 1.398C6.66 9.898 6 9 5.963 8.485m-1.475.537c-.263.594-.81.876-1.544.876s-1.707-.625-1.707-2.204v-.46c0-1.042.72-2.131 1.707-2.131.986 0 1.642 1.03 1.544 2.249H1.532" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Arrow up" viewBox="0 0 15 15" id="icon-keyboard-up"><path d="M7.5 11.5v-8m3 3-3-3-3 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-link"><path d="M574 665.4c-3.1-3.1-8.2-3.1-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8c-3.1-3.1-8.2-3.1-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6c-3.1 3.1-3.1 8.2 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6c-3.1 3.1-3.1 8.2 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1z" /><path d="M610.1 372.3c-3.1-3.1-8.2-3.1-11.3 0L372.3 598.7c-3.1 3.1-3.1 8.2 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-lock"><path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z" /><path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53c12.1-8.7 20-22.9 20-39 0-26.5-21.5-48-48-48s-48 21.5-48 48c0 16.1 7.9 30.3 20 39z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-menu"><path d="M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-search"><path d="M862.609 816.955 726.44 680.785l-.059-.056a358.907 358.907 0 0 0 56.43-91.927c18.824-44.507 28.369-91.767 28.369-140.467 0-48.701-9.545-95.96-28.369-140.467-18.176-42.973-44.19-81.56-77.319-114.689-33.13-33.129-71.717-59.144-114.69-77.32-44.507-18.825-91.767-28.37-140.467-28.37-48.701 0-95.96 9.545-140.467 28.37-42.973 18.176-81.56 44.19-114.689 77.32-33.13 33.129-59.144 71.717-77.32 114.689-18.825 44.507-28.37 91.767-28.37 140.467 0 48.7 9.545 95.96 28.37 140.467 18.176 42.974 44.19 81.561 77.32 114.69 33.129 33.129 71.717 59.144 114.689 77.319 44.507 18.824 91.767 28.369 140.467 28.369 48.7 0 95.96-9.545 140.467-28.369 32.78-13.864 62.997-32.303 90.197-54.968.063.064.122.132.186.195l136.169 136.17c6.25 6.25 14.438 9.373 22.628 9.373 8.188 0 16.38-3.125 22.627-9.372 12.496-12.496 12.496-32.758 0-45.254zm-412.274-69.466c-79.907 0-155.031-31.118-211.534-87.62-56.503-56.503-87.62-131.627-87.62-211.534s31.117-155.031 87.62-211.534c56.502-56.503 131.626-87.62 211.534-87.62s155.031 31.117 211.534 87.62c56.502 56.502 87.62 131.626 87.62 211.534s-31.118 155.031-87.62 211.534c-56.503 56.502-131.627 87.62-211.534 87.62z" /></symbol><symbol viewBox="0 0 220 220" id="icon-unocss"><path d="M117.444 167.888c0-27.615 22.386-50 50-50s50 22.385 50 50c0 27.614-22.386 50-50 50s-50-22.386-50-50ZM117.444 53c0-27.614 22.386-50 50-50s50 22.386 50 50v45a5 5 0 0 1-5 5h-90a5 5 0 0 1-5-5V53ZM102 167.888c0 27.614-22.386 50-50 50s-50-22.386-50-50v-45a5 5 0 0 1 5-5h90a5 5 0 0 1 5 5v45Z" /></symbol>',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function as(e){e.component("SvgIcon",is)}function cs(e){e.use(Gt)}function us(e){for(const[t,n]of Object.entries(Kt))e.component(t,n)}ye.use(Xt);ye.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function ls(e){e.use(ye)}function ds(e){cs(e),us(e),ls(e)}const fs={mounted(e,t){var s;const{value:n}=t,{roles:r}=xe();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function ms(e){e.directive("permission",fs)}const J=zt(fn);ds(J);as(J);ms(J);J.use(be).use(F);F.isReady().then(()=>{J.mount("#app")});export{gn as D,rt as L,Ss as S,os as _,vs as a,st as b,bn as c,Wr as d,Hr as e,_s as f,ws as g,ln as h,ke as i,xe as j,ys as r,bs as s,As as u};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["static/index-DyJgpnZr.js","static/vue-CcSL1usY.js","static/useWatermark-ChCsXxU5.js","static/element-_HuYMAMt.js","static/index.vue_vue_type_script_setup_true_lang-DF_vSAoK.js","static/vxe-DDhFj3ga.js","static/index-Cm3PWDfx.css","static/index-Cq4hWXtK.js","static/403-CcSpp6gB.js","static/ErrorPageLayout-CyOYa9uG.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-Ckb7oePp.js","static/index-Bcc-A0mh.js","static/index-DbipU5J1.css","static/index-CIEXPtsB.js","static/index-B42kVvV-.css","static/index-AZn5FhSZ.js","static/index-EwjeseOs.js","static/index-DiBg6mJ9.js","static/index-CiKMpJ6M.css","static/index-P5lxXd9x.js","static/index-DfTvJ6TV.js","static/index-DmS5ZuTx.css","static/index-Z9IIQqLT.js","static/index-DNtTqu-b.js","static/index-DszsxlfD.js","static/index-bJpKc1c2.js","static/index-eChn0LYL.js","static/index-Ursk_FKi.js","static/use-fetch-select-DE07B-T-.js","static/use-fullscreen-loading-Cbyx485a.js","static/use-watermark-D3FQkllf.js","static/use-watermark-C8yPoY9R.css","static/page-B4jcUltP.js","static/SwitchRoles-CYgEkJYa.js","static/SwitchRoles-DGL8nry1.css","static/page-BKwG52as.css","static/directive-B-CP26Ry.js","static/directive-SjkMvUn4.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}