Files
vue-pure-admin/static/js/index-dX0qI_-q.js

2 lines
92 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var yn=Object.defineProperty,bn=Object.defineProperties;var xn=Object.getOwnPropertyDescriptors;var Ut=Object.getOwnPropertySymbols;var wn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var Kt=(a,t,u)=>t in a?yn(a,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[t]=u,vt=(a,t)=>{for(var u in t||(t={}))wn.call(t,u)&&Kt(a,u,t[u]);if(Ut)for(var u of Ut(t))Cn.call(t,u)&&Kt(a,u,t[u]);return a},gt=(a,t)=>bn(a,xn(t));var at=(a,t,u)=>new Promise((p,c)=>{var n=l=>{try{d(u.next(l))}catch(f){c(f)}},o=l=>{try{d(u.throw(l))}catch(f){c(f)}},d=l=>l.done?p(l.value):Promise.resolve(l.value).then(n,o);d((u=u.apply(a,t)).next())});import{ec as kn,ed as Mn,at as Sn,au as In,ax as Ze,a1 as he,b as i,j as _,g as m,ae as It,ah as Tt,l as B,av as Be,aw as nt,r as $t,ee as sn,ef as ge,m as qe,ab as ze,v as A,u as e,eg as ut,b3 as Ue,Z as Lt,eh as Re,ei as Yt,ej as Ye,_ as ce,aQ as Tn,d as ee,ek as wt,el as $n,a9 as ke,em as rn,n as Ae,aR as mt,aS as cn,y as zt,a as M,A as oe,$ as xe,f as h,q as ae,F as ue,k as we,p as $e,s as Z,t as D,i as Y,w,h as se,eb as At,e as O,x as Xe,b0 as Ge,en as _t,eo as Ln,ep as Gt,U as Le,Q as Ee,aY as zn,eq as yt,L as Ct,bl as An,ai as Vn,aE as Hn,X as un,bq as Me,z as je,er as Vt,es as dt,I as Rn,K as ht,et as it,eu as Xt,J as rt,aZ as kt,ag as dn,Y as hn,o as Bn,V as tt,aL as En,bp as On,ev as Dn,dx as Pn,a4 as jt}from"./index-ChQ6eMdI.js";import{u as Ht,a as qn}from"./useDataThemeChange-C91UKAjA.js";import{u as Pe}from"./app-DTh4MfSb.js";import{e as be}from"./mitt-E5P-NQ8u.js";import{R as Fn}from"./refresh-right-6EFnx9D_.js";import{C as ft}from"./close-Djak1iV5.js";import{A as fn}from"./arrow-right-s-line-BxqnFfI0.js";import{l as Nn,P as Rt,_ as Wn,M as Un}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-C-Kk6EtF.js";import{u as Se,a as Bt,g as Et,d as Kn,b as Yn}from"./dark-C8fTYrQq.js";import{m as Gn}from"./index-Dwdys7rm.js";import{u as Mt}from"./epTheme-C10AyAya.js";import{u as He}from"./hooks-C7j0V2G1.js";import{S as Xn}from"./sortable.esm-C0jtZaAC.js";import{C as Je}from"./check-BYFtHXp2.js";import{B as mn}from"./back_top-CcI3pVLp.js";import{R as bt}from"./index-Clekeu5R.js";import{R as Qt}from"./index-DqAY6oyE.js";import"./user-DNtD0Fqa.js";const jn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M160 448a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"/></svg>',Qn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"/><path fill="currentColor" d="m470 554.2l52.8-7.5L847 222.4a32 32 0 1 0-45.2-45.2L477.4 501.4l-7.5 52.8zm422.4-422.4a96 96 0 0 1 0 135.8L560.5 599.5a32 32 0 0 1-18.1 9l-105.6 15.2a32 32 0 0 1-36.2-36.2l15-105.6a32 32 0 0 1 9.1-18.2l332-331.8a96 96 0 0 1 135.7 0z"/></svg>',Zn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"/><path fill="currentColor" d="m220.8 256l-71.2 80l71.1 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-24-10.8L83 357.2a32 32 0 0 1 0-42.4l99.6-112a32 32 0 0 1 23.9-10.8m678.8 496L814 768H266.8V608H814zm-56.8-144H235a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 24-10.8l99.5-112a32 32 0 0 0 0-42.4l-99.6-112a32 32 0 0 0-24-10.8"/></svg>',Jn='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/></svg>',eo='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"/></svg>',to='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M513.3 448a64 64 0 1 1 76.5 49.7A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-127-29.7a256 256 0 1 0 43.5-180.5A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.7-29.7M492 667.8L285.7 874A96 96 0 0 1 150 738.3L356.2 532A320 320 0 1 1 492 667.8m-54.5-36a322 322 0 0 1-45.2-45.3l-197.1 197a32 32 0 1 0 45.2 45.3l197.1-197.1z"/></svg>',no='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"/></svg>',oo='<svg viewBox="0 0 1024 1024" width="1em" height="1em" ><path fill="currentColor" d="M512 128L128 448v448h256V640h256v256h256V448z"/></svg>',lo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M18 3a3 3 0 1 1 0 6h-3a3 3 0 0 1-2.829-2H11c-1.1 0-2 .9-2 2v.171a3.001 3.001 0 0 1 0 5.658V15c0 1.1.9 2 2 2h1.17A3 3 0 0 1 15 15h3a3 3 0 1 1 0 6h-3a3 3 0 0 1-2.829-2H11c-2.21 0-4-1.79-4-4H5a3 3 0 1 1 0-6h2a4 4 0 0 1 4-4h1.17A3 3 0 0 1 15 3zm0 14h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2M8 11H5a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2m10-6h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2"/></svg>',ao='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0zm-2 0v-1a1 1 0 1 0-2 0v1z"/></svg>',so='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M4 8h16V5H4zm10 11v-9h-4v9zm2 0h4v-9h-4zm-8 0v-9H4v9zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/></svg>',ro='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m13.06 8.111l1.415 1.414a7 7 0 0 1 0 9.9l-.354.353a7 7 0 1 1-9.9-9.9l1.415 1.415a5 5 0 1 0 7.071 7.071l.354-.354a5 5 0 0 0 0-7.07l-1.415-1.415zm6.718 6.01l-1.414-1.414a5 5 0 0 0-7.071-7.07l-.354.353a5 5 0 0 0 0 7.07l1.415 1.415l-1.415 1.414l-1.414-1.414a7 7 0 0 1 0-9.9l.354-.353a7 7 0 1 1 9.9 9.9"/></svg>',io='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m9 6h1v5h-8v-5h1v-1a3 3 0 1 1 6 0zm-2 0v-1a1 1 0 1 0-2 0v1z"/></svg>',co='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"/></svg>',uo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"/></svg>',ho='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M21 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm-1 8H4v8h16zm0-6H4v4h16zm-9 1v2H9V6zM7 6v2H5V6z"/></svg>',fo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10s4.477-10 10-10s10 4.477 10 10m-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67m9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31M8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.8 5.8 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.8 5.8 0 0 0 2.398 3.371l.977-1.636A3.89 3.89 0 0 1 8.1 12M12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.78 5.78 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.83 5.83 0 0 0-4.12.39l.927 1.663A3.9 3.9 0 0 1 12 8.1m0 7.8a3.9 3.9 0 0 1-1.642-.363l-.928 1.662a5.77 5.77 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.78 5.78 0 0 0 1.723-3.762l-1.903-.027A3.9 3.9 0 0 1 12 15.9m2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312"/></svg>',mo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.865-5.135L8 9H2V3l2.447 2.446A9.98 9.98 0 0 1 12 2m1 5v4.585l3.243 3.243l-1.415 1.415L11 12.413V7z"/></svg>',po='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m16.757 2.997l-2 2H5v14h14V9.239l2-2v12.758a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1zm3.728-.9L21.9 3.511l-9.193 9.193l-1.412.002l-.002-1.416z"/></svg>',vo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m1 2v14h16V5zm16 7l-3.535 3.536l-1.415-1.415L17.172 12L15.05 9.879l1.415-1.415zM6.828 12l2.122 2.121l-1.414 1.415L4 12l3.536-3.536L8.95 9.88zm4.416 5H9.116l3.64-10h2.128z"/></svg>',go='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M8.586 17H3v-2h18v2h-5.586l3.243 3.243l-1.414 1.414L13 17.414V20h-2v-2.586l-4.243 4.243l-1.414-1.414zM5 3h14a1 1 0 0 1 1 1v10H4V4a1 1 0 0 1 1-1m1 2v7h12V5z"/></svg>',_o='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m1 2v14h16V5zm3 10.5H5v-7h2l2 2l2-2h2v7h-2v-4l-2 2l-2-2zm11-3h2l-3 3l-3-3h2v-4h2z"/></svg>',yo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM11 11h2v6h-2zm0-4h2v2h-2z"/></svg>',bo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m17 8h-16v8h16zm0-2V5h-16v4zm-6 6h4v2h-4z"/></svg>',xo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="m2.859 2.877l12.57-1.795a.5.5 0 0 1 .571.494v20.848a.5.5 0 0 1-.57.494L2.858 21.123a1 1 0 0 1-.859-.99V3.867a1 1 0 0 1 .859-.99M4 4.735v14.53l10 1.429V3.306zM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4zM5 8h8v6H7v2H5zm2 2v2h4v-2z"/></svg>',wo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M7.105 15.21A3.001 3.001 0 1 1 5 15.17V8.83a3.001 3.001 0 1 1 2 0V12c.836-.628 1.874-1 3-1h4a3 3 0 0 0 2.895-2.21a3.001 3.001 0 1 1 2.032.064A5 5 0 0 1 14 13h-4a3 3 0 0 0-2.895 2.21M6 17a1 1 0 1 0 0 2a1 1 0 0 0 0-2M6 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m12 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2"/></svg>',Co='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M3.34 17a10 10 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a10 10 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a10 10 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.06 10.06 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a10 10 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a10 10 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10 10 0 0 1 3.339 17m5.66.196a5 5 0 0 1 2.25 2.77q.75.07 1.499.002a5 5 0 0 1 2.25-2.772a5 5 0 0 1 3.526-.564q.435-.614.748-1.298A5 5 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8 8 0 0 0-.75-1.298A5 5 0 0 1 15 6.804a5 5 0 0 1-2.25-2.77q-.75-.071-1.5-.001A5 5 0 0 1 9 6.804a5 5 0 0 1-3.526.564q-.436.614-.747 1.298A5 5 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8 8 0 0 0 .75 1.298A5 5 0 0 1 9 17.196M12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6m0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>',ko='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M1 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4M21.548.784A13.94 13.94 0 0 1 23 7c0 2.233-.523 4.344-1.452 6.217l-1.645-1.197A12 12 0 0 0 21 7a12 12 0 0 0-1.097-5.02zm-3.302 2.4A10 10 0 0 1 19 7a10 10 0 0 1-.754 3.816l-1.677-1.22A8 8 0 0 0 17 7a8 8 0 0 0-.43-2.596z"/></svg>',Mo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1m13 2H6v15.432l6-3.761l6 3.761zM8 9h8v2H8z"/></svg>',So='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zm10.529 11.454a4.001 4.001 0 0 1-4.86-6.274a4 4 0 0 1 6.274 4.86l2.21 2.21l-1.413 1.415zm-.618-2.032a2 2 0 1 0-2.828-2.828a2 2 0 0 0 2.828 2.828"/></svg>',Io='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M5.763 17h7.32a6 6 0 0 0 0 2H6.455L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v8.803a6 6 0 0 0-2-.72V5H4v13.385zm18.187 4.535l-1.504-1.503a4 4 0 1 0-1.414 1.414l1.503 1.504zM21 18a2 2 0 1 1-4 0a2 2 0 0 1 4 0"/></svg>',To='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16M11 7h2v2h-2zm0 4h2v6h-2z"/></svg>',$o='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M20 9V5H4v4zm0 2H4v8h16zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m2 9h3v5H5zm0-6h2v2H5zm4 0h2v2H9z"/></svg>',Lo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M4 12a8 8 0 1 1 16 0a8 8 0 0 1-16 0m8-10C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2m5.457 7.457l-1.414-1.414L11 13.086l-2.793-2.793l-1.414 1.414L11 15.914z"/></svg>',zo='<svg viewBox="0 0 24 24" width="1em" height="1em" ><path fill="currentColor" d="M12 3v2H3V3zm4 16v2H3v-2zm6-8v2H3v-2z"/></svg>',Ao=[["ep/menu",jn],["ep/edit",Qn],["ep/guide",Zn],["ep/set-up",Jn],["ep/monitor",eo],["ep/lollipop",to],["ep/histogram",no],["ep/home-filled",oo],["ri/mind-map",lo],["ri/admin-fill",ao],["ri/table-line",so],["ri/links-fill",ro],["ri/admin-line",io],["ri/list-check",co],["ri/search-line",uo],["ri/window-line",ho],["ri/ubuntu-fill",fo],["ri/history-fill",mo],["ri/edit-box-line",po],["ri/code-box-line",vo],["ri/artboard-line",go],["ri/markdown-line",_o],["ri/file-info-line",yo],["ri/bank-card-line",bo],["ri/file-ppt-2-line",xo],["ri/git-branch-line",wo],["ri/settings-3-line",Co],["ri/user-voice-line",ko],["ri/bookmark-2-line",Mo],["ri/file-search-line",So],["ri/chat-search-line",Io],["ri/information-line",To],["ri/terminal-window-line",$o],["ri/checkbox-circle-line",Lo],["ri/bar-chart-horizontal-line",zo]];Ao.forEach(([a,t])=>{kn(a,Mn(t))});const Vo=In("pure-setting",{state:()=>({title:Ze().Title,fixedHeader:Ze().FixedHeader,hiddenSideBar:Ze().HiddenSideBar}),getters:{getTitle(a){return a.title},getFixedHeader(a){return a.fixedHeader},getHiddenSideBar(a){return a.hiddenSideBar}},actions:{CHANGE_SETTING({key:a,value:t}){Reflect.has(this,a)&&(this[a]=t)},changeSetting(a){this.CHANGE_SETTING(a)}}});function Ot(){return Vo(Sn)}const Ho={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Ro(a,t){return i(),_("svg",Ho,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M5 11v2h14v-2z"},null,-1)])])}const Bo=he({name:"ri-subtract-line",render:Ro}),Eo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Oo(a,t){return i(),_("svg",Eo,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5zm6-11v9h-2V6H5V4h14v2z"},null,-1)])])}const Do=he({name:"ri-text-spacing",render:Oo}),Po={viewBox:"0 0 24 24",width:"1em",height:"1em"};function qo(a,t){return i(),_("svg",Po,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2z"},null,-1)])])}const Fo=he({name:"ri-text-direction-l",render:qo}),No={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Wo(a,t){return i(),_("svg",No,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zM7 17h12v2H7v2.5L3 18l4-3.5z"},null,-1)])])}const Uo=he({name:"ri-text-direction-r",render:Wo});function pn(){var re,ie;const a=It(),t=Tt(),u=Lt(),p=Ot(),c=B(0),n=B(0),o=B(0),d=B(!1),l=B(-1),f=B({}),r=B(!1),s=B(((re=Be().getItem(`${nt()}configure`))==null?void 0:re.showModel)||"smart"),v=(ie=B(Be().getItem(`${nt()}configure`).hideTabs))!=null?ie:B("false"),b=A(()=>Re().multiTags),g=$t([{icon:Fn,text:ge("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:ft,text:ge("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Uo,text:ge("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(b.value.length>1),show:!0},{icon:Fo,text:ge("buttons.pureCloseRightTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Do,text:ge("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(b.value.length>2),show:!0},{icon:Bo,text:ge("buttons.pureCloseAllTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:sn,text:ge("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function y(E,Q,ne){var ye,Ie;const _e=a.name||"",Ve=E.name||"";return Yt((ye=a==null?void 0:a.meta)==null?void 0:ye.showLink)&&((Ie=a==null?void 0:a.meta)==null?void 0:Ie.showLink)===!1?Object.keys(a.query).length>0?_e===Ve&&Ye(a.query,E.query)?Q:ne:_e===Ve&&Ye(a.params,E.params)?Q:ne:_e===Ve?Q:ne}const L=A(()=>E=>{var Q,ne;return Yt((Q=E==null?void 0:E.meta)==null?void 0:Q.fixedTag)&&((ne=E==null?void 0:E.meta)==null?void 0:ne.fixedTag)===!0}),C=A(()=>(E,Q)=>{if(Q!==0)return y(E,!0,!1)}),$=A(()=>E=>y(E,"is-active","")),P=A(()=>E=>y(E,"schedule-active","")),R=A(()=>({transform:`translateX(${o.value}px)`,transition:r.value?"none":"transform 0.5s ease-in-out"})),W=A(()=>({left:n.value+"px",top:c.value+"px"})),U=()=>{d.value=!1};function S(E){if(E&&(l.value=E),e(s)==="smart"){if(ut(u.refs["schedule"+E][0],"schedule-active"))return;Ue(!0,"schedule-in",u.refs["schedule"+E][0]),Ue(!1,"schedule-out",u.refs["schedule"+E][0])}else{if(ut(u.refs["dynamic"+E][0],"is-active"))return;Ue(!0,"card-in",u.refs["dynamic"+E][0]),Ue(!1,"card-out",u.refs["dynamic"+E][0])}}function q(E){if(l.value=-1,e(s)==="smart"){if(ut(u.refs["schedule"+E][0],"schedule-active"))return;Ue(!1,"schedule-in",u.refs["schedule"+E][0]),Ue(!0,"schedule-out",u.refs["schedule"+E][0])}else{if(ut(u.refs["dynamic"+E][0],"is-active"))return;Ue(!1,"card-in",u.refs["dynamic"+E][0]),Ue(!0,"card-out",u.refs["dynamic"+E][0])}}function K(){p.hiddenSideBar?p.changeSetting({key:"hiddenSideBar",value:!1}):p.changeSetting({key:"hiddenSideBar",value:!0})}return qe(()=>{if(!s.value){const E=Be().getItem(`${nt()}configure`);E.showModel="card",Be().setItem(`${nt()}configure`,E)}}),{Close:ft,route:a,router:t,visible:d,showTags:v,instance:u,multiTags:b,showModel:s,tagsViews:g,buttonTop:c,buttonLeft:n,translateX:o,isFixedTag:L,pureSetting:p,activeIndex:l,getTabStyle:R,isScrolling:r,iconIsActive:C,linkIsActive:$,currentSelect:f,scheduleIsActive:P,getContextMenuStyle:W,$t:ge,closeMenu:U,onMounted:qe,onMouseenter:S,onMouseleave:q,transformI18n:ze,onContentFullScreen:K}}const Ko={},Yo={class:"w-full h-full"};function Go(a,t){return i(),_("svg",Yo,[...t[0]||(t[0]=[Tn('<defs><symbol id="geometry-left" viewBox="0 0 214 36"><path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path></symbol><symbol id="geometry-right" viewBox="0 0 214 36"><use xlink:href="#geometry-left"></use></symbol><clipPath><rect width="100%" height="100%" x="0"></rect></clipPath></defs><svg width="51%" height="100%"><use xlink:href="#geometry-left" width="214" height="36" fill="currentColor"></use></svg><g transform="scale(-1, 1)"><svg width="51%" height="100%" x="-100%" y="0"><use xlink:href="#geometry-right" width="214" height="36" fill="currentColor"></use></svg></g>',3)])])}const Xo=ce(Ko,[["render",Go]]),jo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Qo(a,t){return i(),_("svg",jo,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"},null,-1)])])}const Zo=he({name:"ri-arrow-down-s-line",render:Qo}),Jo={class:"arrow-left"},el=["onContextmenu","onMouseenter","onMouseleave","onClick"],tl={class:"tag-title dark:text-text_color_primary! dark:hover:text-primary!"},nl=["onClick"],ol={key:1,class:"chrome-tab"},ll={key:0,class:"chrome-tab-divider bg-[#e2e2e2] dark:bg-[#2d2d2d]"},al={class:"chrome-tab__bg"},sl={class:"tag-title"},rl=["onClick"],il={class:"arrow-right"},cl=["onClick"],ul={class:"arrow-down"},dl=ee({__name:"index",setup(a){var j;const{Close:t,route:u,router:p,visible:c,showTags:n,instance:o,multiTags:d,tagsViews:l,buttonTop:f,buttonLeft:r,showModel:s,translateX:v,isFixedTag:b,pureSetting:g,activeIndex:y,getTabStyle:L,isScrolling:C,iconIsActive:$,linkIsActive:P,currentSelect:R,scheduleIsActive:W,getContextMenuStyle:U,closeMenu:S,onMounted:q,onMouseenter:K,onMouseleave:re,transformI18n:ie,onContentFullScreen:E}=pn(),Q=B(),ne=B(),_e=B(),Ve=B(),ye=B(!1),Ie=(j=wt())==null?void 0:j.path,Fe=[...$n,...ke().flatteningRoutes.filter(x=>{var z;return(z=x==null?void 0:x.meta)==null?void 0:z.fixedTag})],Te=()=>at(null,null,function*(){yield Xe();const x=d.value.findIndex(z=>Ge(u.query)?Ge(u.params)?u.path===z.path:Ye(u.params,z.params):Ye(u.query,z.query));Qe(x)}),Qe=x=>at(null,null,function*(){var J,ve;yield Xe();const z=10;if(!o.refs["dynamic"+x])return;const V=o.refs["dynamic"+x][0],X=V==null?void 0:V.offsetLeft,le=V==null?void 0:V.offsetWidth,G=_e.value?(J=_e.value)==null?void 0:J.offsetWidth:0,N=Q.value?(ve=Q.value)==null?void 0:ve.offsetWidth:0;G<=N?ye.value=!0:ye.value=!1,N<G||X===0?v.value=0:X<-v.value?v.value=-X+z:X>-v.value&&X+le<-v.value+G?v.value=Math.min(0,G-le-X-z):v.value=-(X-(G-z-le))}),Oe=x=>{var X;const z=_e.value?(X=_e.value)==null?void 0:X.offsetWidth:0,V=Q.value?Q.value.offsetWidth:0;x>0?v.value=Math.min(0,v.value+x):z<V?v.value>=-(V-z)&&(v.value=Math.max(v.value+x,z-V)):v.value=0,C.value=!1},Ne=x=>{C.value=!0;const z=Math.abs(x.deltaX)+Math.abs(x.deltaY);let V=0;x.deltaX<0?V=z>0?z:100:V=z>0?-z:-100,et(V)},et=x=>{let V=Math.abs(x);const X=()=>{const le=Math.sign(x)*Math.min(20,V);Oe(le),V-=Math.abs(le),V>0&&requestAnimationFrame(X)};requestAnimationFrame(X)};function T(x){const z=d.value.some(X=>X.path===x);function V(X,le){z||X.forEach(G=>{G.path===le?Re().handleTags("push",{path:le,meta:G.meta,name:G.name}):G.children&&G.children.length>0&&V(G.children,le)})}V(p.options.routes,x)}function H(){Gt.start();const{fullPath:x,query:z}=e(u);p.replace({path:"/redirect"+x,query:z}),_t(u,"refresh"),Gt.done()}function F(x,z,V){var N,J,ve,lt;const X=d.value.findIndex(Ce=>{if(Ce.query){if(Ce.path===x.path)return Ce.query===x.query}else if(Ce.params){if(Ce.path===x.path)return Ce.params===x.params}else return Ce.path===x.path}),le=(Ce,ct,me)=>{me?Re().handleTags("equal",[Fe,x].flat()):Re().handleTags("splice","",{startIndex:Ce,length:ct}),Te()};V==="other"?le(1,1,!0):V==="left"?le(Fe.length,X-Fe.length):V==="right"?le(X+1,d.value.length):le(X,1);const G=Re().handleTags("slice");if(z===u.path){if(V==="left")return;(N=G[0])!=null&&N.query?p.push({name:G[0].name,query:G[0].query}):(J=G[0])!=null&&J.params?p.push({name:G[0].name,params:G[0].params}):p.push({path:G[0].path})}else{if(!d.value.length||d.value.some(Ce=>Ce.path===u.path))return;(ve=G[0])!=null&&ve.query?p.push({name:G[0].name,query:G[0].query}):(lt=G[0])!=null&&lt.params?p.push({name:G[0].name,params:G[0].params}):p.push({path:G[0].path})}}function te(x,z){F(x,x.path,z),_t(u)}function I(x,z,V){if(z&&z.disabled)return;let X;switch(V?X={path:V.path,meta:V.meta,name:V.name,query:V==null?void 0:V.query,params:V==null?void 0:V.params}:X={path:u.path,meta:u.meta},x){case 0:H();break;case 1:te(X);break;case 2:te(X,"left");break;case 3:te(X,"right");break;case 4:te(X,"other");break;case 5:Re().handleTags("splice","",{startIndex:Fe.length,length:d.value.length}),p.push(Ie),_t(u);break;case 6:E(),setTimeout(()=>{g.hiddenSideBar?(l[6].icon=Ln,l[6].text=ge("buttons.pureContentExitFullScreen")):(l[6].icon=sn,l[6].text=ge("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{pe(u.fullPath,u.query,u.params)})}function k(x){const{key:z,item:V}=x;I(z,V)}function de(x,z){S(),I(x,z,R.value)}function fe(x){Array.of(1,2,3,4,5).forEach(z=>{l[z].show=x})}function We(x,z=!1){Array.of(1,2,3,4,5).forEach(V=>{l[V].disabled=x}),z&&(l[2].show=!1,l[2].disabled=!0)}function pe(x,z={},V={},X=!1){var ve,lt,Ce,ct;const le=d.value,G=d.value.length;let N=-1;Ge(V)?Ge(z)?N=le.findIndex(me=>me.path===x):N=le.findIndex(me=>Ye(me.query,z)):N=le.findIndex(me=>Ye(me.params,V));function J(){var me,Wt;(Wt=(me=le[N])==null?void 0:me.meta)!=null&&Wt.fixedTag&&Array.of(1,2,3,4,5).forEach(_n=>{l[_n].disabled=!0})}fe(!0),X&&(l[0].show=!0),N===1&&G!==2?(l[2].show=!1,Array.of(1,3,4,5).forEach(me=>{l[me].disabled=!1}),l[2].disabled=!0,J()):N===1&&G===2?(We(!1),Array.of(2,3,4).forEach(me=>{l[me].show=!1,l[me].disabled=!0}),J()):G-1===N&&N!==0?(l[3].show=!1,Array.of(1,2,4,5).forEach(me=>{l[me].disabled=!1}),l[3].disabled=!0,(lt=(ve=le[N-1])==null?void 0:ve.meta)!=null&&lt.fixedTag&&(l[2].show=!1,l[2].disabled=!0),J()):N===0||x===`/redirect${Ie}`?We(!0):(We(!1,(ct=(Ce=le[N-1])==null?void 0:Ce.meta)==null?void 0:ct.fixedTag),J())}function ot(x,z){var J;S(),x.path===Ie||(J=x==null?void 0:x.meta)!=null&&J.fixedTag?(fe(!1),l[0].show=!0):u.path!==x.path&&u.name!==x.name?(l[0].show=!1,pe(x.path,x.query,x.params)):d.value.length===2&&u.path!==x.path?(fe(!0),l[4].show=!1,pe(x.path,x.query,x.params)):pe(x.path,x.query,x.params,!0),R.value=x;const V=140,X=e(ne).getBoundingClientRect().left,G=e(ne).offsetWidth-V,N=z.clientX-X+5;N>G?r.value=G:r.value=N,Ot().hiddenSideBar?f.value=z.clientY:f.value=z.clientY-40,Xe(()=>{c.value=!0})}function pt(x){const{name:z,path:V}=x;z?x.query?p.push({name:z,query:x.query}):x.params?p.push({name:z,params:x.params}):p.push({name:z}):p.push({path:V}),be.emit("tagOnClick",x)}return rn(Ve,S,{detectIframe:!0}),Ae(u,()=>{y.value=-1,Te()}),q(()=>{o&&(pe(u.fullPath),be.on("tagViewsChange",x=>{e(n)!==x&&(n.value=x)}),be.on("tagViewsShowModel",x=>{s.value=x}),be.on("changLayoutRoute",x=>{T(x),setTimeout(()=>{pe(x)})}),mt(_e,Te),cn().then(()=>Te()))}),zt(()=>{be.off("tagViewsChange"),be.off("tagViewsShowModel"),be.off("changLayoutRoute")}),(x,z)=>{const V=M("IconifyIconOffline"),X=M("el-dropdown-item"),le=M("el-dropdown-menu"),G=M("el-dropdown");return e(n)?Y("",!0):(i(),_("div",{key:0,ref_key:"containerDom",ref:ne,class:"tags-view"},[oe(m("span",Jo,[h(V,{icon:e(Nn),onClick:z[0]||(z[0]=N=>Oe(200))},null,8,["icon"])],512),[[xe,ye.value]]),m("div",{ref_key:"scrollbarDom",ref:_e,class:Z(["scroll-container",e(s)==="chrome"&&"chrome-scroll-container"]),onWheel:$e(Ne,["prevent"])},[m("div",{ref_key:"tabDom",ref:Q,class:"tab select-none",style:ae(e(L))},[(i(!0),_(ue,null,we(e(d),(N,J)=>(i(),_("div",{ref_for:!0,ref:"dynamic"+J,key:J,class:Z(["scroll-item is-closable",e(P)(N),e(s)==="chrome"&&"chrome-item",e(b)(N)&&"fixed-tag"]),onContextmenu:$e(ve=>ot(N,ve),["prevent"]),onMouseenter:$e(ve=>e(K)(J),["prevent"]),onMouseleave:$e(ve=>e(re)(J),["prevent"]),onClick:ve=>pt(N)},[e(s)!=="chrome"?(i(),_(ue,{key:0},[m("span",tl,D(e(ie)(N.meta.title)),1),!e(b)(N)&&(e($)(N,J)||J===e(y)&&J!==0)?(i(),_("span",{key:0,class:"el-icon-close",onClick:$e(ve=>te(N),["stop"])},[h(V,{icon:e(t)},null,8,["icon"])],8,nl)):Y("",!0),e(s)!=="card"?(i(),_("span",{key:1,ref_for:!0,ref:"schedule"+J,class:Z([e(W)(N)])},null,2)):Y("",!0)],64)):(i(),_("div",ol,[J!==0&&J!==e(y)?(i(),_("span",ll)):Y("",!0),m("div",al,[h(Xo)]),m("span",sl,D(e(ie)(N.meta.title)),1),!e(b)(N)&&J!==0?(i(),_("span",{key:1,class:"chrome-close-btn",onClick:$e(ve=>te(N),["stop"])},[h(V,{icon:e(t)},null,8,["icon"])],8,rl)):Y("",!0)]))],42,el))),128))],4)],34),oe(m("span",il,[h(V,{icon:e(fn),onClick:z[1]||(z[1]=N=>Oe(-200))},null,8,["icon"])],512),[[xe,ye.value]]),h(At,{name:"el-zoom-in-top"},{default:w(()=>[oe((i(),_("ul",{ref_key:"contextmenuRef",ref:Ve,key:Math.random(),style:ae(e(U)),class:"contextmenu"},[(i(!0),_(ue,null,we(e(l).slice(0,6),(N,J)=>(i(),_("div",{key:J,style:{display:"flex","align-items":"center"}},[N.show?(i(),_("li",{key:0,onClick:ve=>de(J,N)},[h(V,{icon:N.icon},null,8,["icon"]),se(" "+D(e(ie)(N.text)),1)],8,cl)):Y("",!0)]))),128))],4)),[[xe,e(c)]])]),_:1}),h(G,{trigger:"click",placement:"bottom-end",onCommand:k},{dropdown:w(()=>[h(le,null,{default:w(()=>[(i(!0),_(ue,null,we(e(l),(N,J)=>(i(),O(X,{key:J,command:{key:J,item:N},divided:N.divided,disabled:N.disabled},{default:w(()=>[h(V,{icon:N.icon},null,8,["icon"]),se(" "+D(e(ie)(N.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:w(()=>[m("span",ul,[h(V,{icon:e(Zo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),hl=ce(dl,[["__scopeId","data-v-087e744e"]]);function fl(a=!1){const t=B(a);function u(o){t.value=o}function p(){u(!0)}function c(){u(!1)}function n(){u(!t.value)}return{bool:t,setBool:u,setTrue:p,setFalse:c,toggle:n}}const ml={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function pl(a,t){return i(),_("svg",ml,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1)])])}const vn={render:pl},vl=["onMouseenter"],gl={class:"result-item-title"},_l=ee({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(a,{expose:t,emit:u}){const p=B(),c=B(),n=u,o=Lt(),d=a,l=A(()=>g=>({background:(g==null?void 0:g.path)===f.value?Mt().epThemeColor:"",color:g.path===f.value?"#fff":"",fontSize:g.path===f.value?"16px":"14px"})),f=A({get(){return d.value},set(g){n("update:value",g)}});function r(g){return at(this,null,function*(){f.value=g.path})}function s(){n("enter")}function v(){c.value=window.innerHeight-window.innerHeight/10-140}mt(p,v);function b(g){var $;const y=($=o==null?void 0:o.proxy)==null?void 0:$.$refs[`resultItemRef${g}`];if(!y)return 0;const C=y[0].offsetTop+128;return C>c.value?C-c.value:0}return qe(()=>{v()}),t({handleScroll:b}),(g,y)=>(i(),_("div",{ref_key:"resultRef",ref:p,class:"result"},[(i(!0),_(ue,null,we(a.options,(L,C)=>{var $,P;return i(),_("div",{key:L.path,ref_for:!0,ref:"resultItemRef"+C,class:"result-item dark:bg-[#1d1d1d]",style:ae(l.value(L)),onClick:s,onMouseenter:R=>r(L)},[(i(),O(Le(e(He)(($=L.meta)==null?void 0:$.icon)))),m("span",gl,D(e(ze)((P=L.meta)==null?void 0:P.title)),1),h(e(vn))],44,vl)}),128))],512))}}),yl=ce(_l,[["__scopeId","data-v-274aad60"]]),bl={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function xl(a,t){return i(),_("svg",bl,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1)])])}const wl={render:xl},Cl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function kl(a,t){return i(),_("svg",Cl,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414z"},null,-1)])])}const Ml=he({name:"ri-arrow-up-line",render:kl}),Sl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Il(a,t){return i(),_("svg",Sl,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2z"},null,-1)])])}const Tl=he({name:"ri-arrow-down-line",render:Il}),$l={class:"search-footer text-[#333] dark:text-white"},Ll={class:"search-footer-item"},zl={class:"search-footer-item"},Al={class:"search-footer-item"},Vl={key:0,class:"search-footer-total"},Hl=ee({__name:"SearchFooter",props:{total:{default:0}},setup(a){const{t}=Ee(),{device:u}=Se();return(p,c)=>{const n=M("IconifyIconOffline");return i(),_("div",$l,[m("span",Ll,[h(e(vn),{class:"icon"}),se(" "+D(e(t)("buttons.pureConfirm")),1)]),m("span",zl,[h(n,{icon:e(Ml),class:"icon"},null,8,["icon"]),h(n,{icon:e(Tl),class:"icon"},null,8,["icon"]),se(" "+D(e(t)("buttons.pureSwitch")),1)]),m("span",Al,[h(e(wl),{class:"icon"}),se(" "+D(e(t)("buttons.pureClose")),1)]),e(u)!=="mobile"&&a.total>0?(i(),_("p",Vl,D(`${e(t)("search.pureTotal")} ${a.total}`),1)):Y("",!0)])}}}),Rl=ce(Hl,[["__scopeId","data-v-b0b1b20e"]]),Bl={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function El(a,t){return i(),_("svg",Bl,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m512 747.8l228.2 120a6.4 6.4 0 0 0 9.2-6.7L706 607l184.5-180a6.4 6.4 0 0 0-3.5-10.8L632 379L517.7 147.9a6.4 6.4 0 0 0-11.6 0l-114 231.2L137 416a6.4 6.4 0 0 0-3.5 11L318 607l-43.6 254a6.4 6.4 0 0 0 9.3 6.8zM313.6 924.5a70.4 70.4 0 0 1-102.1-74.3l37.8-220.9L89 473a70.4 70.4 0 0 1 39-120.1l221.8-32.3l99.2-201a70.4 70.4 0 0 1 126.2 0l99.2 201L896.2 353a70.4 70.4 0 0 1 39 120L774.7 629.5l38 220.9a70.4 70.4 0 0 1-102.2 74.2L512 820.1z"},null,-1)])])}const Ol=he({name:"ep-star",render:El}),Dl={class:"history-item-title"},Pl=ee({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(a,{emit:t}){const u=t;function p(n){u("collectItem",n)}function c(n){u("deleteItem",n)}return(n,o)=>{var l,f;const d=M("IconifyIconOffline");return i(),_(ue,null,[(i(),O(Le(e(He)((l=a.item.meta)==null?void 0:l.icon)))),m("span",Dl,D(e(ze)((f=a.item.meta)==null?void 0:f.title)),1),oe(h(d,{icon:e(Ol),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:o[0]||(o[0]=$e(r=>p(a.item),["stop"]))},null,8,["icon"]),[[xe,a.item.type==="history"]]),h(d,{icon:e(ft),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:o[1]||(o[1]=$e(r=>c(a.item),["stop"]))},null,8,["icon"])],64)}}}),Zt=ce(Pl,[["__scopeId","data-v-0fffa7d8"]]),ql=["onMouseenter"],Fl={class:"collect-container"},Nl=["onMouseenter"],Wl=ee({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(a,{expose:t,emit:u}){const p=B(),c=B(),n=B(!1),{t:o}=Ee(),d=u,l=Lt(),f=a,r=A(()=>S=>({background:(S==null?void 0:S.path)===v.value?Mt().epThemeColor:"",color:S.path===v.value?"#fff":"",fontSize:S.path===v.value?"16px":"14px"})),s=A(()=>({color:Mt().epThemeColor,fontWeight:500})),v=A({get(){return f.value},set(S){d("update:value",S)}});Ae(()=>f.value,S=>{S&&n.value&&cn(100).then(()=>n.value=!1)});const b=A(()=>f.options.filter(S=>S.type==="history")),g=A(()=>f.options.filter(S=>S.type==="collect"));function y(S){d("collect",S)}function L(S){n.value=!0,d("delete",S)}function C(S){return at(this,null,function*(){n.value||(v.value=S.path)})}function $(){d("enter")}function P(){c.value=window.innerHeight-window.innerHeight/10-140}mt(p,P);function R(S){var ie;const q=(ie=l==null?void 0:l.proxy)==null?void 0:ie.$refs[`historyItemRef${S}`];if(!q)return 0;const re=(zn(q)?q[0]:q).offsetTop+128;return re>c.value?re-c.value:0}const W=S=>{d("drag",{oldIndex:S.oldIndex,newIndex:S.newIndex})};let U=null;return Ae(g,S=>{S.length>1&&Xe(()=>{const q=document.querySelector(".collect-container");!q||U||(U=Xn.create(q,{animation:160,onStart:K=>{K.item.style.cursor="move"},onEnd:K=>{K.item.style.cursor="pointer"},onUpdate:W}),P())})},{deep:!0,immediate:!0}),t({handleScroll:R}),(S,q)=>(i(),_("div",{ref_key:"historyRef",ref:p,class:"history"},[b.value.length?(i(),_(ue,{key:0},[m("div",{style:ae(s.value)},D(e(o)("search.pureHistory")),5),(i(!0),_(ue,null,we(b.value,(K,re)=>(i(),_("div",{key:K.path,ref_for:!0,ref:"historyItemRef"+re,class:"history-item dark:bg-[#1d1d1d]",style:ae(r.value(K)),onClick:$,onMouseenter:ie=>C(K)},[h(Zt,{item:K,onDeleteItem:L,onCollectItem:y},null,8,["item"])],44,ql))),128))],64)):Y("",!0),g.value.length?(i(),_(ue,{key:1},[m("div",{style:ae(s.value)},D(`${e(o)("search.pureCollect")}${g.value.length>1?e(o)("search.pureDragSort"):""}`),5),m("div",Fl,[(i(!0),_(ue,null,we(g.value,(K,re)=>(i(),_("div",{key:K.path,ref_for:!0,ref:"historyItemRef"+(re+b.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ae(r.value(K)),onClick:$,onMouseenter:ie=>C(K)},[h(Zt,{item:K,onDeleteItem:L},null,8,["item"])],44,Nl))),128))])],64)):Y("",!0)],512))}}),Ul=ce(Wl,[["__scopeId","data-v-f7a9d807"]]),Kl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Yl(a,t){return i(),_("svg",Kl,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"},null,-1)])])}const Gl=he({name:"ri-search-line",render:Yl}),Xl={class:"search-content"},Jt="history",jl="collect",De="menu-search-history",Ke="menu-search-collect",Ql=ee({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(a,{emit:t}){const{device:u}=Se(),p=t,c=a,n=Tt(),{t:o,locale:d}=Ee(),l=B(""),f=B(),r=B(),s=B(),v=B(""),b=B(""),g=Ct([]),y=Ct([]),L=An(ie,300),C=Ze().MenuSearchHistory,$=B(null),P=A(()=>Vn(ke().wholeMenus)),R=A({get(){return c.value},set(T){p("update:value",T)}});Ae(()=>c.value,T=>{T&&Ne()});const W=A(()=>l.value&&g.value.length>0),U=A(()=>!l.value&&y.value.length>0),S=A(()=>!l.value&&y.value.length===0||l.value&&g.value.length===0);function q(T){return Be().getItem(T)||[]}function K(T,H){Be().setItem(T,H)}function re(T){const H=[];function F(te){te.forEach(I=>{H.push(I),I.children&&F(I.children)})}return F(T),H}function ie(){var H;const T=re(P.value);g.value=T.filter(F=>{var te,I;return l.value?ze((te=F.meta)==null?void 0:te.title).toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim())||d.value==="zh"&&!Ge(Gn(ze((I=F.meta)==null?void 0:I.title).toLocaleLowerCase(),l.value.toLocaleLowerCase().trim())):!1}),v.value=((H=g.value)==null?void 0:H.length)>0?g.value[0].path:""}function E(){R.value=!1,setTimeout(()=>{g.value=[],b.value="",l.value=""},200)}function Q(T){const F=(g.value.length?f.value:r.value).handleScroll(T);s.value.setScrollTop(F)}function ne(){const T=g.value.length>0,H=T?g.value:y.value,F=T?v.value:b.value;return{options:H,currentPath:F,isResultOptions:T}}function _e(T,H){H?v.value=g.value[T].path:b.value=y.value[T].path,Q(T)}function Ve(){const{options:T,currentPath:H,isResultOptions:F}=ne();if(T.length===0)return;const I=(T.findIndex(k=>k.path===H)-1+T.length)%T.length;_e(I,F)}function ye(){const{options:T,currentPath:H,isResultOptions:F}=ne();if(T.length===0)return;const I=(T.findIndex(k=>k.path===H)+1)%T.length;_e(I,F)}function Ie(){const{options:T,currentPath:H,isResultOptions:F}=ne();if(T.length===0||H==="")return;const te=T.findIndex(I=>I.path===H);te!==-1&&(F?Qe():Oe(),n.push(T[te].path),E())}function Fe(T){const H=T.type===Jt?De:Ke;let F=q(H);F=F.filter(te=>te.path!==T.path),K(H,F),Ne()}function Te(T){let H=q(De),F=q(Ke);H=H.filter(te=>te.path!==T.path),K(De,H),F.some(te=>te.path===T.path)||(F.unshift(gt(vt({},T),{type:jl})),K(Ke,F)),Ne()}function Qe(){const{path:T,meta:H}=g.value.find(de=>de.path===v.value),F=q(De),I=q(Ke).some(de=>de.path===T),k=F.findIndex(de=>de.path===T);I||(k!==-1&&F.splice(k,1),F.length>=C&&F.pop(),F.unshift({path:T,meta:H,type:Jt}),Be().setItem(De,F))}function Oe(){let T=q(De);const H=T.findIndex(F=>F.path===b.value);if(H!==-1){const[F]=T.splice(H,1);T.unshift(F),K(De,T)}}function Ne(){var F;const T=q(De),H=q(Ke);y.value=[...T,...H],b.value=(F=y.value[0])==null?void 0:F.path}function et(T){const H=q(Ke),[F]=H.splice(T.oldIndex,1);H.splice(T.newIndex,0,F),Be().setItem(Ke,H),y.value=[...q(De),...q(Ke)],b.value=F.path}return yt("Enter",Ie),yt("ArrowUp",Ve),yt("ArrowDown",ye),(T,H)=>{const F=M("IconifyIconOffline"),te=M("el-input"),I=M("el-empty"),k=M("el-scrollbar"),de=M("el-dialog");return i(),O(de,{modelValue:R.value,"onUpdate:modelValue":H[3]||(H[3]=fe=>R.value=fe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(u)==="mobile"?"80vw":"40vw","before-close":E,style:{borderRadius:"6px"},"append-to-body":"",onOpened:H[4]||(H[4]=fe=>$.value.focus()),onClosed:H[5]||(H[5]=fe=>$.value.blur())},{footer:w(()=>[h(Rl,{total:g.value.length},null,8,["total"])]),default:w(()=>[h(te,{ref_key:"inputRef",ref:$,modelValue:l.value,"onUpdate:modelValue":H[0]||(H[0]=fe=>l.value=fe),size:"large",clearable:"",placeholder:e(o)("search.purePlaceholder"),onInput:e(L)},{prefix:w(()=>[h(F,{icon:e(Gl),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),m("div",Xl,[h(k,{ref_key:"scrollbarRef",ref:s,"max-height":"calc(90vh - 140px)"},{default:w(()=>[S.value?(i(),O(I,{key:0,description:e(o)("search.pureEmpty")},null,8,["description"])):Y("",!0),U.value?(i(),O(Ul,{key:1,ref_key:"historyRef",ref:r,value:b.value,"onUpdate:value":H[1]||(H[1]=fe=>b.value=fe),options:y.value,onClick:Ie,onDelete:Fe,onCollect:Te,onDrag:et},null,8,["value","options"])):Y("",!0),W.value?(i(),O(yl,{key:2,ref_key:"resultRef",ref:f,value:v.value,"onUpdate:value":H[2]||(H[2]=fe=>v.value=fe),options:g.value,onClick:Ie},null,8,["value","options"])):Y("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Zl=ce(Ql,[["__scopeId","data-v-8e625e76"]]),Dt=ee({__name:"index",setup(a){const{bool:t,toggle:u}=fl();function p(){u()}return(c,n)=>{const o=M("IconifyIconOffline");return i(),_("div",null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover hover:[&>svg]:animate-scale-bounce",onClick:p},[h(o,{icon:"ri/search-line"})]),h(Zl,{value:e(t),"onUpdate:value":n[0]||(n[0]=d=>Hn(t)?t.value=d:null)},null,8,["value"])])}}}),en=[{key:"1",name:ge("status.pureNotify"),list:[],emptyText:ge("status.pureNoNotify")},{key:"2",name:ge("status.pureMessage"),list:[{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile1.svg",title:"小铭 评论了你",description:"诚在于心,信在于行,诚信在于心行合一。",datetime:"今天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile2.svg",title:"李白 回复了你",description:"长风破浪会有时,直挂云帆济沧海。",datetime:"昨天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile5.svg",title:"标题",description:"请将鼠标移动到此处以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"时间",type:"2"}],emptyText:ge("status.pureNoMessage")},{key:"3",name:ge("status.pureTodo"),list:[{avatar:"",title:"第三方紧急代码变更",description:"小林提交于 2024-05-10需在 2024-05-11 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"版本发布",description:"指派小铭于 2024-06-18 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"新功能开发",description:"开发多租户管理",datetime:"",extra:"进行中",type:"3"},{avatar:"",title:"任务名称",description:"任务需要在 2030-10-30 10:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"}],emptyText:ge("status.pureNoTodo")}],Jl={class:"notice-container-text"},ea={class:"notice-text-title text-[#000000d9] dark:text-white"},ta={class:"notice-text-datetime text-[#00000073] dark:text-white"},na=ee({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}},isLast:{type:Boolean,default:!1}},setup(a){const t=B(null),u=B(!1),p=B(null),c=B(!1),{tooltipEffect:n}=Se(),o=un();function d(){Xe(()=>{var f,r;((f=t.value)==null?void 0:f.scrollWidth)>((r=t.value)==null?void 0:r.clientWidth)?u.value=!0:u.value=!1})}function l(f,r){const s=document.createElement("span");s.innerText=r,s.className="getDescriptionWidth",document.querySelector("body").appendChild(s);const v=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=f.target.offsetWidth;v>2*b?c.value=!0:c.value=!1}return(f,r)=>{var g,y;const s=M("el-avatar"),v=M("el-tooltip"),b=M("el-tag");return i(),_("div",{class:Z(["notice-container","border-0 border-solid border-[#f0f0f0] dark:border-[#303030]",{"border-b":!a.isLast}])},[a.noticeItem.avatar?(i(),O(s,{key:0,size:30,src:a.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),m("div",Jl,[m("div",ea,[h(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!u.value,content:a.noticeItem.title,placement:"top-start",enterable:!e(o)},{default:w(()=>[m("div",{ref_key:"titleRef",ref:t,class:"notice-title-content",onMouseover:d},D(a.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(g=a.noticeItem)!=null&&g.extra?(i(),O(b,{key:0,type:(y=a.noticeItem)==null?void 0:y.status,size:"small",class:"notice-title-extra"},{default:w(()=>{var L;return[se(D((L=a.noticeItem)==null?void 0:L.extra),1)]}),_:1},8,["type"])):Y("",!0)]),h(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!c.value,content:a.noticeItem.description,placement:"top-start"},{default:w(()=>[m("div",{ref_key:"descriptionRef",ref:p,class:"notice-text-description",onMouseover:r[0]||(r[0]=L=>l(L,a.noticeItem.description))},D(a.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",ta,D(a.noticeItem.datetime),1)])],2)}}}),oa=ce(na,[["__scopeId","data-v-41296ee4"]]),la={key:0},aa=ee({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(a){return(t,u)=>{const p=M("el-empty");return a.list.length?(i(),_("div",la,[(i(!0),_(ue,null,we(a.list,(c,n)=>(i(),O(oa,{key:n,noticeItem:c,isLast:n===a.list.length-1},null,8,["noticeItem","isLast"]))),128))])):(i(),O(p,{key:1,description:e(ze)(a.emptyText)},null,8,["description"]))}}}),sa={viewBox:"0 0 24 24",width:"1em",height:"1em"};function ra(a,t){return i(),_("svg",sa,[...t[0]||(t[0]=[m("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.268 21a2 2 0 0 0 3.464 0m-10.47-5.674A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"},null,-1)])])}const ia=he({name:"lucide-bell",render:ra}),ca={class:Z(["dropdown-badge","navbar-bg-hover","select-none","mr-[7px]"])},ua={class:"header-notice-icon"},da={key:1},ha={class:"noticeList-container"},fa={key:0,class:"border-t border-t-(--el-border-color-light) text-sm"},ma={class:"flex-bc m-1"},pa=ee({__name:"index",setup(a){var f;const{t}=Ee(),u=B(),p=B(en),c=B((f=en[0])==null?void 0:f.key),n=A(()=>r=>t(r.name)+(r.list.length>0?`(${r.list.length})`:"")),o=A(()=>{const r=p.value.find(s=>s.key===c.value);return r&&r.list.length>0}),d=()=>{u.value.handleClose()},l=()=>{const r=p.value.find(s=>s.key===c.value);r&&(r.list=[])};return(r,s)=>{const v=M("IconifyIconOffline"),b=M("el-badge"),g=M("el-empty"),y=M("el-scrollbar"),L=M("el-tab-pane"),C=M("el-tabs"),$=M("el-button"),P=M("el-dropdown-menu"),R=M("el-dropdown");return i(),O(R,{ref_key:"dropdownRef",ref:u,trigger:"click",placement:"bottom-end"},{dropdown:w(()=>[h(P,null,{default:w(()=>[h(C,{modelValue:c.value,"onUpdate:modelValue":s[0]||(s[0]=W=>c.value=W),stretch:!0,class:"dropdown-tabs",style:ae({width:p.value.length===0?"200px":"330px"})},{default:w(()=>[p.value.length===0?(i(),O(g,{key:0,description:e(t)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(i(),_("span",da,[(i(!0),_(ue,null,we(p.value,W=>(i(),O(L,{key:W.key,label:n.value(W),name:`${W.key}`},{default:w(()=>[h(y,{"max-height":"345px"},{default:w(()=>[m("div",ha,[h(aa,{list:W.list,emptyText:W.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"]),o.value?(i(),_("div",fa,[m("div",ma,[h($,{type:"primary",size:"small",text:"",onClick:d},{default:w(()=>[se(D(e(t)("buttons.pureWatchMore"))+" ",1),h(v,{icon:e(fn)},null,8,["icon"])]),_:1}),h($,{type:"primary",size:"small",text:"",onClick:l},{default:w(()=>[se(D(e(t)("buttons.pureMarkAsRead")),1)]),_:1})])])):Y("",!0)]),_:1})]),default:w(()=>[m("span",ca,[h(b,{"is-dot":""},{default:w(()=>[m("span",ua,[h(v,{icon:e(ia)},null,8,["icon"])])]),_:1})])]),_:1},512)}}}),Pt=ce(pa,[["__scopeId","data-v-df5b2f1b"]]),va={key:0,class:"flex justify-center items-center"},St=ee({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(a){return(t,u)=>a.extraIcon?(i(),_("div",va,[(i(),O(Le(e(He)(Me(a.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),qt=ee({__name:"SidebarFullScreen",setup(a){const t=B(),{toggle:u,isFullscreen:p,Fullscreen:c,ExitFullscreen:n}=Se();return p.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ae(p,o=>{t.value=o?n:c},{immediate:!0}),(o,d)=>{const l=M("IconifyIconOffline");return i(),_("span",{class:"fullscreen-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce",onClick:d[0]||(d[0]=(...f)=>e(u)&&e(u)(...f))},[h(l,{icon:t.value},null,8,["icon"])])}}}),ga={viewBox:"0 0 24 24",width:"1em",height:"1em"};function _a(a,t){return i(),_("svg",ga,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m2.595 7.811a3.5 3.5 0 0 1 0-1.622l-.992-.573l1-1.732l.992.573A3.5 3.5 0 0 1 17 14.645V13.5h2v1.145c.532.158 1.012.44 1.405.812l.992-.573l1 1.732l-.991.573a3.5 3.5 0 0 1 0 1.622l.991.573l-1 1.732l-.992-.573a3.5 3.5 0 0 1-1.405.812V22.5h-2v-1.145a3.5 3.5 0 0 1-1.405-.812l-.992.573l-1-1.732zM18 19.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1)])])}const Ft=he({name:"ri-user-settings-line",render:_a}),ya={viewBox:"0 0 24 24",width:"1em",height:"1em"};function ba(a,t){return i(),_("svg",ya,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.99 9.99 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.99 9.99 0 0 1 12 22m7-6v-3h-8v-2h8V8l5 4z"},null,-1)])])}const Nt=he({name:"ri-logout-circle-r-line",render:ba}),xa={key:0,class:"horizontal-header"},wa={class:"select-none"},Ca={class:"horizontal-header-right"},ka={class:"globalization-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce"},Ma={class:"check-zh"},Sa={class:"check-en"},Ia={class:"el-dropdown-link navbar-bg-hover select-none"},Ta=["src"],$a={key:0,class:"dark:text-white"},La=["title"],za=ee({__name:"NavMix",setup(a){const t=B(),u=B(null),{t:p,route:c,locale:n,translationCh:o,translationEn:d}=Bt(t),{device:l,logout:f,onPanel:r,resolvePath:s,username:v,userAvatar:b,getDivStyle:g,avatarsStyle:y,toAccountSettings:L,getDropdownItemStyle:C,getDropdownItemClass:$}=Se();function P(R){var S,q,K;const W=ke().wholeMenus,U=Vt(R,W)[0];u.value=Ge((S=c.meta)==null?void 0:S.activePath)?(K=(q=dt(U,W))==null?void 0:q.children[0])==null?void 0:K.path:c.meta.activePath}return qe(()=>{P(c.path)}),Xe(()=>{var R;(R=t.value)==null||R.handleResize()}),Ae(()=>[c.path,ke().wholeMenus],()=>{P(c.path)}),(R,W)=>{const U=M("el-menu-item"),S=M("el-menu"),q=M("IconifyIconOffline"),K=M("el-dropdown-item"),re=M("el-dropdown-menu"),ie=M("el-dropdown"),E=je("loading");return e(l)!=="mobile"?oe((i(),_("div",xa,[h(S,{ref_key:"menuRef",ref:t,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":u.value},{default:w(()=>[(i(!0),_(ue,null,we(e(ke)().wholeMenus,Q=>(i(),O(U,{key:Q.path,index:e(s)(Q)||Q.redirect},{title:w(()=>[Me(Q.meta.icon)?(i(),_("div",{key:0,class:Z(["sub-menu-icon",Q.meta.icon])},[(i(),O(Le(e(He)(Q.meta&&Me(Q.meta.icon)))))],2)):Y("",!0),m("div",{style:ae(e(g))},[m("span",wa,D(e(ze)(Q.meta.title)),1),h(St,{extraIcon:Q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",Ca,[h(Dt,{id:"header-search"}),h(ie,{id:"header-translation",trigger:"click"},{dropdown:w(()=>[h(re,{class:"translation"},{default:w(()=>[h(K,{style:ae(e(C)(e(n),"zh")),class:Z(["dark:text-white!",e($)(e(n),"zh")]),onClick:e(o)},{default:w(()=>[oe(m("span",Ma,[h(q,{icon:e(Je)},null,8,["icon"])],512),[[xe,e(n)==="zh"]]),W[1]||(W[1]=se(" 简体中文 ",-1))]),_:1},8,["style","class","onClick"]),h(K,{style:ae(e(C)(e(n),"en")),class:Z(["dark:text-white!",e($)(e(n),"en")]),onClick:e(d)},{default:w(()=>[oe(m("span",Sa,[h(q,{icon:e(Je)},null,8,["icon"])],512),[[xe,e(n)==="en"]]),W[2]||(W[2]=se(" English ",-1))]),_:1},8,["style","class","onClick"])]),_:1})]),default:w(()=>[m("div",ka,[h(q,{icon:e(Et)},null,8,["icon"])])]),_:1}),h(qt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(ie,{trigger:"click"},{dropdown:w(()=>[h(K,{onClick:e(L)},{default:w(()=>[h(q,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(re,{class:"logout"},{default:w(()=>[h(K,{onClick:e(f)},{default:w(()=>[h(q,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:w(()=>[m("span",Ia,[m("img",{src:e(b),style:ae(e(y))},null,12,Ta),e(v)?(i(),_("p",$a,D(e(v)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce",title:e(p)("buttons.pureOpenSystemSet"),onClick:W[0]||(W[0]=(...Q)=>e(r)&&e(r)(...Q))},[h(q,{icon:e(Rt)},null,8,["icon"])],8,La)])])),[[E,e(ke)().wholeMenus.length===0]]):Y("",!0)}}}),Aa=ce(za,[["__scopeId","data-v-4a0f54cc"]]),Va=["onClick"],Ha=ee({__name:"SidebarBreadCrumb",setup(a){const t=It(),u=B([]),p=Tt(),c=p.options.routes,n=Re().multiTags,o=()=>{let l;Object.keys(t.query).length>0?n.forEach(s=>{Ye(t.query,s==null?void 0:s.query)&&(l=Me(s))}):Object.keys(t.params).length>0?n.forEach(s=>{Ye(t.params,s==null?void 0:s.params)&&(l=Me(s))}):l=dt(p.currentRoute.value.path,c);const f=Vt(p.currentRoute.value.name,c,"name"),r=[];f.forEach(s=>{s!=="/"&&r.push(dt(s,c))}),r.push(l),r.forEach((s,v)=>{l!=null&&l.query||l!=null&&l.params||s!=null&&s.children&&s.children.forEach(b=>{var g,y;((g=b==null?void 0:b.meta)==null?void 0:g.title)===((y=s==null?void 0:s.meta)==null?void 0:y.title)&&r.splice(v,1)})}),u.value=r.filter(s=>(s==null?void 0:s.meta)&&(s==null?void 0:s.meta.title)!==!1)},d=l=>{const{redirect:f,name:r,path:s}=l;f?p.push(f):r?l.query?p.push({name:r,query:l.query}):l.params?p.push({name:r,params:l.params}):p.push({name:r}):p.push({path:s})};return qe(()=>{o()}),Ae(()=>t.path,()=>{o()},{deep:!0}),(l,f)=>{const r=M("el-breadcrumb-item"),s=M("el-breadcrumb");return i(),O(s,{class:"leading-[50px]! select-none",separator:"/"},{default:w(()=>[h(Rn,{name:"breadcrumb"},{default:w(()=>[(i(!0),_(ue,null,we(u.value,v=>(i(),O(r,{key:v.path,class:"inline! items-stretch!"},{default:w(()=>[m("a",{onClick:$e(b=>d(v),["prevent"])},D(e(ze)(v.meta.title)),9,Va)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Ra={class:"navbar bg-[#fff] shadow-xs shadow-[rgba(0,21,41,0.08)]"},Ba={key:3,class:"vertical-header-right"},Ea={class:"globalization-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce"},Oa={class:"check-en"},Da={class:"el-dropdown-link navbar-bg-hover select-none"},Pa=["src"],qa={key:0,class:"dark:text-white"},Fa=["title"],Na=ee({__name:"index",setup(a){const{layout:t,device:u,logout:p,onPanel:c,pureApp:n,username:o,userAvatar:d,avatarsStyle:l,toggleSideBar:f,toAccountSettings:r,getDropdownItemStyle:s,getDropdownItemClass:v}=Se(),{t:b,locale:g,translationCh:y,translationEn:L}=Bt();return(C,$)=>{const P=M("IconifyIconOffline"),R=M("el-dropdown-item"),W=M("el-dropdown-menu"),U=M("el-dropdown");return i(),_("div",Ra,[e(u)==="mobile"?(i(),O(Wn,{key:0,class:"hamburger-container","is-active":e(n).sidebar.opened,onToggleClick:e(f)},null,8,["is-active","onToggleClick"])):Y("",!0),e(t)!=="mix"&&e(u)!=="mobile"?(i(),O(Ha,{key:1,class:"breadcrumb-container"})):Y("",!0),e(t)==="mix"?(i(),O(Aa,{key:2})):Y("",!0),e(t)==="vertical"?(i(),_("div",Ba,[h(Dt,{id:"header-search"}),h(U,{id:"header-translation",trigger:"click"},{dropdown:w(()=>[h(W,{class:"translation"},{default:w(()=>[h(R,{style:ae(e(s)(e(g),"zh")),class:Z(["dark:text-white!",e(v)(e(g),"zh")]),onClick:e(y)},{default:w(()=>[oe(h(P,{class:"check-zh",icon:e(Je)},null,8,["icon"]),[[xe,e(g)==="zh"]]),$[1]||($[1]=se(" 简体中文 ",-1))]),_:1},8,["style","class","onClick"]),h(R,{style:ae(e(s)(e(g),"en")),class:Z(["dark:text-white!",e(v)(e(g),"en")]),onClick:e(L)},{default:w(()=>[oe(m("span",Oa,[h(P,{icon:e(Je)},null,8,["icon"])],512),[[xe,e(g)==="en"]]),$[2]||($[2]=se(" English ",-1))]),_:1},8,["style","class","onClick"])]),_:1})]),default:w(()=>[m("div",Ea,[h(P,{icon:e(Et)},null,8,["icon"])])]),_:1}),h(qt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(U,{trigger:"click"},{dropdown:w(()=>[h(W,{class:"logout"},{default:w(()=>[h(R,{onClick:e(r)},{default:w(()=>[h(P,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(b)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(R,{onClick:e(p)},{default:w(()=>[h(P,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(b)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:w(()=>[m("span",Da,[m("img",{src:e(d),style:ae(e(l))},null,12,Pa),e(o)?(i(),_("p",qa,D(e(o)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce",title:e(b)("buttons.pureOpenSystemSet"),onClick:$[0]||($[0]=(...S)=>e(c)&&e(c)(...S))},[h(P,{icon:e(Rt)},null,8,["icon"])],8,Fa)])):Y("",!0)])}}}),Wa=ce(Na,[["__scopeId","data-v-ac1e2bd4"]]),st=new Map,Ua=()=>{function a(p,c){st.set(p,c)}function t(p){return p?st.get(p):[...st.entries()]}function u(p){st.delete(p)}return{setMap:a,getMap:t,delMap:u,MAP:st}},Ka={class:"w-full h-full"},Ya=ee({__name:"index",props:{currRoute:{},currComp:{}},setup(a){const t=a,u=Ct([]),{setMap:p,getMap:c,MAP:n,delMap:o}=Ua(),d=A(()=>{var f,r;return Ze().KeepAlive&&((f=t.currRoute.meta)==null?void 0:f.keepAlive)&&!!((r=t.currRoute.meta)!=null&&r.frameSrc)}),l=A(()=>!d.value&&t.currComp);return Ae(Re().multiTags,f=>{if(!Array.isArray(f)||!d.value)return;if(f.filter(s=>{var v;return(v=s.meta)==null?void 0:v.frameSrc}).length<n.size)for(const s of n.keys())f.some(v=>v.path===s)||(o(s),u.value=c())}),Ae(()=>t.currRoute.fullPath,f=>{const s=Re().multiTags.filter(v=>{var b;return(b=v.meta)==null?void 0:b.frameSrc});d.value&&s.length!==n.size&&([...n.keys()].find(b=>f===b)||p(f,t.currComp)),n.size>0&&(u.value=c())},{immediate:!0}),(f,r)=>(i(),_(ue,null,[(i(!0),_(ue,null,we(u.value,([s,v])=>{var b;return oe((i(),_("div",{key:s,class:"w-full h-full"},[ht(f.$slots,"default",{fullPath:s,Comp:v,frameInfo:{frameSrc:(b=a.currRoute.meta)==null?void 0:b.frameSrc,fullPath:s}})],512)),[[xe,s===a.currRoute.fullPath]])}),128)),oe(m("div",Ka,[ht(f.$slots,"default",{Comp:l.value,fullPath:a.currRoute.fullPath})],512),[[xe,!d.value]])],64))}}),Ga={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},Xa={class:"hover:text-primary!",href:"https://github.com/pure-admin",target:"_blank"},ja=ee({__name:"index",setup(a){const t=Ze("Title");return(u,p)=>(i(),_("footer",Ga,[p[0]||(p[0]=se(" Copyright © 2020-2025 ",-1)),m("a",Xa,"  "+D(e(t)),1)]))}}),tn=ce(ja,[["__scopeId","data-v-896b5b99"]]),Qa={class:"grow"},Za={key:1,class:"grow"},Ja=ee({__name:"index",props:{fixedHeader:Boolean},setup(a){const t=a,{t:u}=Ee(),{showModel:p}=pn(),{$storage:c,$config:n}=it(),o=A(()=>n==null?void 0:n.KeepAlive),d=A(()=>y=>y.meta.transition),l=A(()=>c==null?void 0:c.configure.hideTabs),f=A(()=>c==null?void 0:c.configure.hideFooter),r=A(()=>c==null?void 0:c.configure.stretch),s=A(()=>(c==null?void 0:c.layout.layout)==="vertical"),v=A(()=>kt(r.value)?r.value+"px":r.value?"1440px":"100%"),b=A(()=>[l.value&&s?"padding-top: 48px;":"",!l.value&&s?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",l.value&&!s.value?"padding-top: 48px;":"",!l.value&&!s.value?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",t.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=ee({props:{route:{type:void 0,required:!0}},render(){var $,P,R;const y=(($=d.value(this.route))==null?void 0:$.name)||"fade-transform",L=(P=d.value(this.route))==null?void 0:P.enterTransition,C=(R=d.value(this.route))==null?void 0:R.leaveTransition;return rt(At,{name:L?"pure-classes-transition":y,enterActiveClass:L?`animate__animated ${L}`:void 0,leaveActiveClass:C?`animate__animated ${C}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(y,L)=>{const C=M("el-backtop"),$=M("el-scrollbar"),P=M("router-view");return i(),_("section",{class:Z([a.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ae(b.value)},[h(P,null,{default:w(({Component:R,route:W})=>[h(Ya,{currComp:R,currRoute:W},{default:w(({Comp:U,fullPath:S,frameInfo:q})=>[a.fixedHeader?(i(),O($,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":v.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:w(()=>[h(C,{title:e(u)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:w(()=>[h(e(mn))]),_:1},8,["title"]),m("div",Qa,[h(e(g),{route:W},{default:w(()=>[o.value?(i(),O(Xt,{key:0,include:e(ke)().cachePageList},[(i(),O(Le(U),{key:S,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O(Le(U),{key:S,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),f.value?Y("",!0):(i(),O(tn,{key:0}))]),_:2},1032,["wrap-style"])):(i(),_("div",Za,[h(e(g),{route:W},{default:w(()=>[o.value?(i(),O(Xt,{key:0,include:e(ke)().cachePageList},[(i(),O(Le(U),{key:S,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O(Le(U),{key:S,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!f.value&&!a.fixedHeader?(i(),O(tn,{key:0})):Y("",!0)],6)}}}),nn=ce(Ja,[["__scopeId","data-v-5fc75f4c"]]),es={class:"flex-bc py-3 px-5 border-0 border-l border-solid border-(--pure-border-color)"},ts={class:"dark:text-white"},ns={class:"flex justify-end p-3 border-0 border-l border-solid border-(--pure-border-color)"},os=ee({__name:"index",setup(a){const t=B(null),u=B(!1),p=A(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-hidden","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:c}=Ee(),{onReset:n}=Ht();return rn(t,o=>{o.clientX>t.value.offsetLeft||(u.value=!1)}),qe(()=>{be.on("openPanel",()=>{u.value=!0})}),zt(()=>{be.off("openPanel")}),(o,d)=>{const l=M("IconifyIconOffline"),f=M("el-scrollbar"),r=M("el-button"),s=je("tippy");return i(),_("div",{class:Z({show:u.value})},[d[1]||(d[1]=m("div",{class:"right-panel-background"},null,-1)),m("div",{ref_key:"target",ref:t,class:"right-panel bg-bg_color"},[m("div",es,[m("h4",ts,D(e(c)("panel.pureSystemSet")),1),oe((i(),_("span",{class:Z(p.value)},[h(l,{class:"dark:text-white",width:"18px",height:"18px",icon:e(ft),onClick:d[0]||(d[0]=v=>u.value=!u.value)},null,8,["icon"])],2)),[[s,{content:e(c)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),h(f,{class:"border-y border-l border-r-0 border-solid border-(--pure-border-color) h-[calc(100vh-104px)]!"},{default:w(()=>[ht(o.$slots,"default",{},void 0,!0)]),_:3}),m("div",ns,[oe((i(),O(r,{type:"danger",text:"",bg:"",onClick:e(n)},{default:w(()=>[se(D(e(c)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[s,{content:e(c)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),ls=ce(os,[["__scopeId","data-v-29262a77"]]),as={viewBox:"0 0 24 24",width:"20",height:"20"};function ss(a,t){return i(),_("svg",as,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414z"},null,-1)])])}const on=he({name:"ri-arrow-left-s-line",render:ss}),rs={viewBox:"0 0 24 24",width:"20",height:"20"};function is(a,t){return i(),_("svg",rs,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"},null,-1)])])}const ln=he({name:"ri-arrow-right-s-line",render:is}),cs={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function us(a,t){return i(),_("svg",cs,[...t[0]||(t[0]=[m("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),m("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1)])])}const ds={render:us},hs={class:"p-5"},fs={class:"theme-color"},ms=["onClick"],ps={class:"pure-theme"},vs={key:0},gs={class:"mt-5! font-medium text-sm dark:text-white"},_s={class:"setting"},ys={class:"dark:text-white"},bs={class:"dark:text-white"},xs={class:"dark:text-white"},ws={class:"dark:text-white"},Cs={class:"dark:text-white"},ks=ee({__name:"index",setup(a){var T,H,F,te;const{t}=Ee(),{device:u}=Se(),{isDark:p}=dn(),{$storage:c}=it(),n=B(),o=B(),d=B(),{dataTheme:l,themeMode:f,layoutTheme:r,themeColors:s,toggleClass:v,dataThemeChange:b,setLayoutThemeColor:g}=Ht();if(e(r)){const I=e(r).layout,k=e(r).theme;document.documentElement.setAttribute("data-theme",k),Te(I)}const y=B((H=(T=c.configure)==null?void 0:T.showModel)!=null?H:"smart"),L=B((te=(F=c.configure)==null?void 0:F.showLogo)!=null?te:!0),C=$t({greyVal:c.configure.grey,weakVal:c.configure.weak,tabsVal:c.configure.hideTabs,showLogo:c.configure.showLogo,showModel:c.configure.showModel,hideFooter:c.configure.hideFooter,multiTagsCache:c.configure.multiTagsCache,stretch:c.configure.stretch}),$=A(()=>I=>({background:I})),P=A(()=>I=>!(I==="light"&&p.value));function R(I,k){const de=c.configure;de[I]=k,c.configure=de}const W=I=>{const k=document.querySelector("html");v(C.greyVal,"html-grey",k),R("grey",I)},U=I=>{const k=document.querySelector("html");v(C.weakVal,"html-weakness",k),R("weak",I)},S=()=>{const I=C.tabsVal;R("hideTabs",I),be.emit("tagViewsChange",I)},q=()=>{const I=C.hideFooter;R("hideFooter",I)},K=()=>{const I=C.multiTagsCache;R("multiTagsCache",I),Re().multiTagsCacheChange(I)};function re({option:I}){const{value:k}=I;y.value=k,R("showModel",k),be.emit("tagViewsShowModel",k)}function ie(){e(L)?R("showLogo",!0):R("showLogo",!1),be.emit("logoChange",e(L))}function E(I){I.forEach(k=>{v(!1,"is-select",e(k))})}const Q=A(()=>[{label:t("panel.pureStretchFixed"),tip:t("panel.pureStretchFixedTip"),value:"fixed"},{label:t("panel.pureStretchCustom"),tip:t("panel.pureStretchCustomTip"),value:"custom"}]),ne=I=>{C.stretch=I,R("stretch",I)},_e=({option:I})=>{const{value:k}=I;ne(k==="custom"?1440:!1)},Ve=A(()=>I=>I===r.value.theme&&r.value.theme!=="light"?"#fff":I===r.value.theme&&r.value.theme==="light"?"#1d2b45":"transparent"),ye=A(()=>["mb-[12px]!","font-medium","text-sm","dark:text-white"]),Ie=A(()=>[{label:t("panel.pureThemeModeLight"),icon:Kn,theme:"light",tip:t("panel.pureThemeModeLightTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureThemeModeDark"),icon:Yn,theme:"dark",tip:t("panel.pureThemeModeDarkTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureThemeModeSystem"),icon:ds,theme:"system",tip:t("panel.pureThemeModeSystemTip"),iconAttrs:{fill:p.value?"#fff":"#000"}}]),Fe=A(()=>[{label:t("panel.pureTagsStyleSmart"),tip:t("panel.pureTagsStyleSmartTip"),value:"smart"},{label:t("panel.pureTagsStyleCard"),tip:t("panel.pureTagsStyleCardTip"),value:"card"},{label:t("panel.pureTagsStyleChrome"),tip:t("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function Te(I){var k,de,fe,We,pe;r.value.layout=I,window.document.body.setAttribute("layout",I),c.layout={layout:I,theme:r.value.theme,darkMode:(k=c.layout)==null?void 0:k.darkMode,sidebarStatus:(de=c.layout)==null?void 0:de.sidebarStatus,epThemeColor:(fe=c.layout)==null?void 0:fe.epThemeColor,themeColor:(We=c.layout)==null?void 0:We.themeColor,themeMode:(pe=c.layout)==null?void 0:pe.themeMode},Pe().setLayout(I)}Ae(c,({layout:I})=>{switch(I.layout){case"vertical":v(!0,"is-select",e(o)),tt(E([d]),50),tt(E([n]),50);break;case"horizontal":v(!0,"is-select",e(d)),tt(E([o]),50),tt(E([n]),50);break;case"mix":v(!0,"is-select",e(n)),tt(E([o]),50),tt(E([d]),50);break}});const Qe=window.matchMedia("(prefers-color-scheme: dark)");function Oe(){f.value==="system"&&(Qe.matches?l.value=!0:l.value=!1,b(f.value))}function Ne(){Qe.removeEventListener("change",Oe)}function et(){Oe(),Ne(),Qe.addEventListener("change",Oe)}return hn(()=>{Xe(()=>{var I,k;et(),C.greyVal&&((I=document.querySelector("html"))==null||I.classList.add("html-grey")),C.weakVal&&((k=document.querySelector("html"))==null||k.classList.add("html-weakness")),C.tabsVal&&S(),C.hideFooter&&q()})}),Bn(()=>Ne),(I,k)=>{const de=M("IconifyIconOffline"),fe=M("el-icon"),We=M("el-input-number"),pe=M("el-switch"),ot=je("tippy"),pt=je("ripple");return i(),O(ls,null,{default:w(()=>[m("div",hs,[m("p",{class:Z(ye.value)},D(e(t)("panel.pureThemeMode")),3),h(e(bt),{resize:"",class:"select-none",modelValue:e(f)==="system"?2:e(l)?1:0,options:Ie.value,onChange:k[0]||(k[0]=j=>{j.index===1&&j.index!==2?l.value=!0:l.value=!1,f.value=j.option.theme,e(b)(j.option.theme),j.index===2&&et()})},null,8,["modelValue","options"]),m("p",{class:Z(["mt-5!",ye.value])},D(e(t)("panel.pureThemeColor")),3),m("ul",fs,[(i(!0),_(ue,null,we(e(s),(j,x)=>oe((i(),_("li",{key:x,style:ae($.value(j.color)),onClick:z=>e(g)(j.themeColor)},[h(fe,{class:"mt-px",size:20,color:Ve.value(j.themeColor)},{default:w(()=>[h(de,{icon:e(Je)},null,8,["icon"])]),_:1},8,["color"])],12,ms)),[[xe,P.value(j.themeColor)]])),128))]),m("p",{class:Z(["mt-5!",ye.value])},D(e(t)("panel.pureMenuLayout")),3),m("ul",ps,[oe((i(),_("li",{ref_key:"verticalRef",ref:o,class:Z(e(r).layout==="vertical"?"is-select":""),onClick:k[1]||(k[1]=j=>Te("vertical"))},[...k[13]||(k[13]=[m("div",null,null,-1),m("div",null,null,-1)])],2)),[[ot,{content:e(t)("panel.pureVerticalTip"),zIndex:41e3}]]),e(u)!=="mobile"?oe((i(),_("li",{key:0,ref_key:"horizontalRef",ref:d,class:Z(e(r).layout==="horizontal"?"is-select":""),onClick:k[2]||(k[2]=j=>Te("horizontal"))},[...k[14]||(k[14]=[m("div",null,null,-1),m("div",null,null,-1)])],2)),[[ot,{content:e(t)("panel.pureHorizontalTip"),zIndex:41e3}]]):Y("",!0),e(u)!=="mobile"?oe((i(),_("li",{key:1,ref_key:"mixRef",ref:n,class:Z(e(r).layout==="mix"?"is-select":""),onClick:k[3]||(k[3]=j=>Te("mix"))},[...k[15]||(k[15]=[m("div",null,null,-1),m("div",null,null,-1)])],2)),[[ot,{content:e(t)("panel.pureMixTip"),zIndex:41e3}]]):Y("",!0)]),e(Pe)().getViewportWidth>1280?(i(),_("span",vs,[m("p",{class:Z(["mt-5!",ye.value])},D(e(t)("panel.pureStretch")),3),h(e(bt),{resize:"",class:"mb-2 select-none",modelValue:e(kt)(C.stretch)?1:0,options:Q.value,onChange:_e},null,8,["modelValue","options"]),e(kt)(C.stretch)?(i(),O(We,{key:0,modelValue:C.stretch,"onUpdate:modelValue":k[4]||(k[4]=j=>C.stretch=j),min:1280,max:1600,"controls-position":"right",onChange:k[5]||(k[5]=j=>ne(j))},null,8,["modelValue"])):oe((i(),_("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:k[6]||(k[6]=j=>ne(!C.stretch))},[m("div",{class:Z(["flex-bc transition-all duration-300",[C.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[h(de,{icon:C.stretch?e(ln):e(on)},null,8,["icon"]),k[16]||(k[16]=m("div",{class:"grow border-0 border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),h(de,{icon:C.stretch?e(on):e(ln)},null,8,["icon"])],2)])),[[pt,{class:"text-gray-300"}]])])):Y("",!0),m("p",{class:Z(["mt-4!",ye.value])},D(e(t)("panel.pureTagsStyle")),3),h(e(bt),{resize:"",class:"select-none",modelValue:y.value==="smart"?0:y.value==="card"?1:2,options:Fe.value,onChange:re},null,8,["modelValue","options"]),m("p",gs,D(e(t)("panel.pureInterfaceDisplay")),1),m("ul",_s,[m("li",null,[m("span",ys,D(e(t)("panel.pureGreyModel")),1),h(pe,{modelValue:C.greyVal,"onUpdate:modelValue":k[7]||(k[7]=j=>C.greyVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",bs,D(e(t)("panel.pureWeakModel")),1),h(pe,{modelValue:C.weakVal,"onUpdate:modelValue":k[8]||(k[8]=j=>C.weakVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:U},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",xs,D(e(t)("panel.pureHiddenTags")),1),h(pe,{modelValue:C.tabsVal,"onUpdate:modelValue":k[9]||(k[9]=j=>C.tabsVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:S},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",ws,D(e(t)("panel.pureHiddenFooter")),1),h(pe,{modelValue:C.hideFooter,"onUpdate:modelValue":k[10]||(k[10]=j=>C.hideFooter=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:q},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[k[17]||(k[17]=m("span",{class:"dark:text-white"},"Logo",-1)),h(pe,{modelValue:L.value,"onUpdate:modelValue":k[11]||(k[11]=j=>L.value=j),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:ie},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",Cs,D(e(t)("panel.pureMultiTagsCache")),1),h(pe,{modelValue:C.multiTagsCache,"onUpdate:modelValue":k[12]||(k[12]=j=>C.multiTagsCache=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:K},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),Ms=ce(ks,[["__scopeId","data-v-63537f64"]]),Ss=["src"],Is={class:"sidebar-title"},Ts=["src"],$s={class:"sidebar-title"},Ls=ee({__name:"SidebarLogo",props:{collapse:Boolean},setup(a){const{title:t,getLogo:u}=Se();return(p,c)=>{const n=M("router-link");return i(),_("div",{class:Z(["sidebar-logo-container",{collapses:a.collapse}])},[h(At,{name:"sidebarLogoFade"},{default:w(()=>{var o,d,l,f;return[a.collapse?(i(),O(n,{key:"collapse",title:e(t),class:"sidebar-logo-link",to:(d=(o=e(wt)())==null?void 0:o.path)!=null?d:"/"},{default:w(()=>[m("img",{src:e(u)(),alt:"logo"},null,8,Ss),m("span",Is,D(e(t)),1)]),_:1},8,["title","to"])):(i(),O(n,{key:"expand",title:e(t),class:"sidebar-logo-link",to:(f=(l=e(wt)())==null?void 0:l.path)!=null?f:"/"},{default:w(()=>[m("img",{src:e(u)(),alt:"logo"},null,8,Ts),m("span",$s,D(e(t)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),zs=ce(Ls,[["__scopeId","data-v-4dd8e86d"]]);var xt,an;function As(){if(an)return xt;an=1;function a(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function t(c,n){for(var o="",d=0,l=-1,f=0,r,s=0;s<=c.length;++s){if(s<c.length)r=c.charCodeAt(s);else{if(r===47)break;r=47}if(r===47){if(!(l===s-1||f===1))if(l!==s-1&&f===2){if(o.length<2||d!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var v=o.lastIndexOf("/");if(v!==o.length-1){v===-1?(o="",d=0):(o=o.slice(0,v),d=o.length-1-o.lastIndexOf("/")),l=s,f=0;continue}}else if(o.length===2||o.length===1){o="",d=0,l=s,f=0;continue}}n&&(o.length>0?o+="/..":o="..",d=2)}else o.length>0?o+="/"+c.slice(l+1,s):o=c.slice(l+1,s),d=s-l-1;l=s,f=0}else r===46&&f!==-1?++f:f=-1}return o}function u(c,n){var o=n.dir||n.root,d=n.base||(n.name||"")+(n.ext||"");return o?o===n.root?o+d:o+c+d:d}var p={resolve:function(){for(var n="",o=!1,d,l=arguments.length-1;l>=-1&&!o;l--){var f;l>=0?f=arguments[l]:(d===void 0&&(d=process.cwd()),f=d),a(f),f.length!==0&&(n=f+"/"+n,o=f.charCodeAt(0)===47)}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(a(n),n.length===0)return".";var o=n.charCodeAt(0)===47,d=n.charCodeAt(n.length-1)===47;return n=t(n,!o),n.length===0&&!o&&(n="."),n.length>0&&d&&(n+="/"),o?"/"+n:n},isAbsolute:function(n){return a(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,o=0;o<arguments.length;++o){var d=arguments[o];a(d),d.length>0&&(n===void 0?n=d:n+="/"+d)}return n===void 0?".":p.normalize(n)},relative:function(n,o){if(a(n),a(o),n===o||(n=p.resolve(n),o=p.resolve(o),n===o))return"";for(var d=1;d<n.length&&n.charCodeAt(d)===47;++d);for(var l=n.length,f=l-d,r=1;r<o.length&&o.charCodeAt(r)===47;++r);for(var s=o.length,v=s-r,b=f<v?f:v,g=-1,y=0;y<=b;++y){if(y===b){if(v>b){if(o.charCodeAt(r+y)===47)return o.slice(r+y+1);if(y===0)return o.slice(r+y)}else f>b&&(n.charCodeAt(d+y)===47?g=y:y===0&&(g=0));break}var L=n.charCodeAt(d+y),C=o.charCodeAt(r+y);if(L!==C)break;L===47&&(g=y)}var $="";for(y=d+g+1;y<=l;++y)(y===l||n.charCodeAt(y)===47)&&($.length===0?$+="..":$+="/..");return $.length>0?$+o.slice(r+g):(r+=g,o.charCodeAt(r)===47&&++r,o.slice(r))},_makeLong:function(n){return n},dirname:function(n){if(a(n),n.length===0)return".";for(var o=n.charCodeAt(0),d=o===47,l=-1,f=!0,r=n.length-1;r>=1;--r)if(o=n.charCodeAt(r),o===47){if(!f){l=r;break}}else f=!1;return l===-1?d?"/":".":d&&l===1?"//":n.slice(0,l)},basename:function(n,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');a(n);var d=0,l=-1,f=!0,r;if(o!==void 0&&o.length>0&&o.length<=n.length){if(o.length===n.length&&o===n)return"";var s=o.length-1,v=-1;for(r=n.length-1;r>=0;--r){var b=n.charCodeAt(r);if(b===47){if(!f){d=r+1;break}}else v===-1&&(f=!1,v=r+1),s>=0&&(b===o.charCodeAt(s)?--s===-1&&(l=r):(s=-1,l=v))}return d===l?l=v:l===-1&&(l=n.length),n.slice(d,l)}else{for(r=n.length-1;r>=0;--r)if(n.charCodeAt(r)===47){if(!f){d=r+1;break}}else l===-1&&(f=!1,l=r+1);return l===-1?"":n.slice(d,l)}},extname:function(n){a(n);for(var o=-1,d=0,l=-1,f=!0,r=0,s=n.length-1;s>=0;--s){var v=n.charCodeAt(s);if(v===47){if(!f){d=s+1;break}continue}l===-1&&(f=!1,l=s+1),v===46?o===-1?o=s:r!==1&&(r=1):o!==-1&&(r=-1)}return o===-1||l===-1||r===0||r===1&&o===l-1&&o===d+1?"":n.slice(o,l)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return u("/",n)},parse:function(n){a(n);var o={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return o;var d=n.charCodeAt(0),l=d===47,f;l?(o.root="/",f=1):f=0;for(var r=-1,s=0,v=-1,b=!0,g=n.length-1,y=0;g>=f;--g){if(d=n.charCodeAt(g),d===47){if(!b){s=g+1;break}continue}v===-1&&(b=!1,v=g+1),d===46?r===-1?r=g:y!==1&&(y=1):r!==-1&&(y=-1)}return r===-1||v===-1||y===0||y===1&&r===v-1&&r===s+1?v!==-1&&(s===0&&l?o.base=o.name=n.slice(1,v):o.base=o.name=n.slice(s,v)):(s===0&&l?(o.name=n.slice(1,r),o.base=n.slice(1,v)):(o.name=n.slice(s,r),o.base=n.slice(s,v)),o.ext=n.slice(r,v)),s>0?o.dir=n.slice(0,s-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,xt=p,xt}var Vs=As();const Hs=ee({__name:"SidebarLinkItem",props:{to:{}},setup(a){const t=a,u=A(()=>Dn(t.to.name)),p=c=>u.value?{href:c.name,target:"_blank",rel:"noopener"}:{to:c};return(c,n)=>(i(),O(Le(u.value?"a":"router-link"),En(On(p(a.to))),{default:w(()=>[ht(c.$slots,"default")]),_:3},16))}}),Rs={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Bs(a,t){return i(),_("svg",Rs,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.7 685.2a64 64 0 0 0 90.5 0L512 368.4l316.8 316.8a64 64 0 0 0 90.5-90.4l-362-362.1a64 64 0 0 0-90.5 0l-362.1 362a64 64 0 0 0 0 90.5"},null,-1)])])}const Es=he({name:"ep-arrow-up-bold",render:Bs}),Os={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Ds(a,t){return i(),_("svg",Os,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.7 338.8a64 64 0 0 1 90.5 0L512 655.6l316.8-316.8a64 64 0 0 1 90.5 90.4l-362 362.1a64 64 0 0 1-90.5 0l-362.1-362a64 64 0 0 1 0-90.5"},null,-1)])])}const Ps=he({name:"ep-arrow-down-bold",render:Ds}),qs={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Fs(a,t){return i(),_("svg",qs,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M685.2 104.7a64 64 0 0 1 0 90.5L368.4 512l316.8 316.8a64 64 0 0 1-90.4 90.5l-362.1-362a64 64 0 0 1 0-90.5l362-362.1a64 64 0 0 1 90.5 0"},null,-1)])])}const Ns=he({name:"ep-arrow-left-bold",render:Fs}),Ws={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Us(a,t){return i(),_("svg",Ws,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M338.8 104.7a64 64 0 0 0 0 90.5L655.6 512L338.8 828.8a64 64 0 0 0 90.4 90.5l362.1-362a64 64 0 0 0 0-90.5l-362-362.1a64 64 0 0 0-90.5 0"},null,-1)])])}const Ks=he({name:"ep-arrow-right-bold",render:Us}),gn=ee({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(a){const t=Pn(),{layout:u,isCollapse:p,tooltipEffect:c,getDivStyle:n}=Se(),o=a,d=A(()=>({width:"100%",display:"flex",alignItems:"center"})),l=A(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:u.value==="horizontal"?"0 5px 0 0":p.value?"0 auto":"0 5px 0 0"})),f=A(()=>{const g=o.item,y="w-full! text-inherit!";return u.value!=="horizontal"&&p.value&&!Me(g.meta.icon)&&(u.value==="vertical"&&g.parentId===null||u.value==="mix"&&g.pathList.length===2)?`${y} min-w-[54px]! text-center! px-3!`:y}),r=A(()=>{var g;return(g=Ze())!=null&&g.MenuArrowIconNoTransition?{"expand-close-icon":He(Ps),"expand-open-icon":He(Es),"collapse-close-icon":He(Ks),"collapse-open-icon":He(Ns)}:""}),s=B(null);function v(g=[],y){var C,$;const L=g.filter(P=>(s.value=P,!0));return($=(C=L[0])==null?void 0:C.meta)!=null&&$.showParent?!1:L.length===1?!0:L.length===0?(s.value=gt(vt({},y),{path:"",noShowingChildren:!0}),!0):!1}function b(g){const y=/^http(s?):\/\//;return y.test(g)||y.test(o.basePath)?g||o.basePath:Vs.posix.resolve(o.basePath,g)}return(g,y)=>{const L=M("el-text"),C=M("el-menu-item"),$=M("sidebar-item",!0),P=M("el-sub-menu");return v(a.item.children,a.item)&&(!s.value.children||s.value.noShowingChildren)?(i(),O(Hs,{key:0,to:a.item},{default:w(()=>[h(C,jt({index:b(s.value.path),class:{"submenu-title-noDropdown":!a.isNest},style:d.value},e(t)),{title:w(()=>[m("div",{style:ae(e(n))},[h(e(Qt),{tippyProps:{offset:[0,-10],theme:e(c)},class:"w-full! text-inherit!"},{default:w(()=>[se(D(e(ze)(s.value.meta.title)),1)]),_:1},8,["tippyProps"]),h(St,{extraIcon:s.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:w(()=>{var R,W,U,S,q;return[Me(a.item.meta.icon)?(i(),_("div",{key:0,class:"sub-menu-icon",style:ae(l.value)},[(i(),O(Le(e(He)(Me(s.value.meta.icon)||a.item.meta&&Me(a.item.meta.icon)))))],4)):Y("",!0),!((R=a.item)!=null&&R.meta.icon)&&e(p)&&e(u)==="vertical"&&((U=(W=a.item)==null?void 0:W.pathList)==null?void 0:U.length)===1||!s.value.meta.icon&&e(p)&&e(u)==="mix"&&((q=(S=a.item)==null?void 0:S.pathList)==null?void 0:q.length)===2?(i(),O(L,{key:1,truncated:"",class:"w-full! px-3! min-w-[54px]! text-center! text-inherit!"},{default:w(()=>[se(D(e(ze)(s.value.meta.title)),1)]),_:1})):Y("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(i(),O(P,jt({key:1,ref:"subMenu",teleported:"",index:b(a.item.path)},r.value),{title:w(()=>{var R,W;return[Me(a.item.meta.icon)?(i(),_("div",{key:0,style:ae(l.value),class:"sub-menu-icon"},[(i(),O(Le(e(He)(a.item.meta&&Me(a.item.meta.icon)))))],4)):Y("",!0),(e(u)==="mix"&&Me(a.item.meta.icon)?!e(p)||((W=(R=a.item)==null?void 0:R.pathList)==null?void 0:W.length)!==2:!(e(u)==="vertical"&&e(p)&&Me(a.item.meta.icon)&&a.item.parentId===null))?(i(),O(e(Qt),{key:1,tippyProps:{offset:[0,-10],theme:e(c)},class:Z(f.value)},{default:w(()=>[se(D(e(ze)(a.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):Y("",!0),e(p)?Y("",!0):(i(),O(St,{key:2,extraIcon:a.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:w(()=>[(i(!0),_(ue,null,we(a.item.children,R=>(i(),O($,{key:R.path,"is-nest":!0,item:R,"base-path":b(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ys={class:"left-collapse"},Gs=ee({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:u}=Ee(),{tooltipEffect:p}=Se(),c=A(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block!","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:n}=it(),o=A(()=>{var f;return(f=n.layout)==null?void 0:f.themeColor}),d=t,l=()=>{d("toggleClick")};return(f,r)=>{const s=M("IconifyIconOffline"),v=je("tippy");return i(),_("div",Ys,[oe(h(s,{icon:e(Un),class:Z([c.value,o.value==="light"?"":"text-primary"]),style:ae({transform:a.isActive?"none":"rotateY(180deg)"}),onClick:l},null,8,["icon","class","style"]),[[v,{content:a.isActive?e(u)("buttons.pureClickCollapse"):e(u)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])])}}}),Xs=ce(Gs,[["__scopeId","data-v-35058a81"]]),js={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Qs(a,t){return i(),_("svg",js,[...t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414z"},null,-1)])])}const Zs=he({name:"ri-arrow-left-double-fill",render:Qs}),Js=ee({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:u}=Ee(),{tooltipEffect:p}=Se(),c=A(()=>["w-[16px]","h-[16px]"]),{$storage:n}=it(),o=A(()=>{var f;return(f=n.layout)==null?void 0:f.themeColor}),d=t,l=()=>{d("toggleClick")};return(f,r)=>{const s=M("IconifyIconOffline"),v=je("tippy");return oe((i(),_("div",{class:"center-collapse",onClick:l},[h(s,{icon:e(Zs),class:Z([c.value,o.value==="light"?"":"text-primary"]),style:ae({transform:a.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[v,{content:a.isActive?e(u)("buttons.pureClickCollapse"):e(u)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])}}}),er=ce(Js,[["__scopeId","data-v-52a12c43"]]),tr=ee({__name:"NavVertical",setup(a){var y,L;const t=It(),u=B(!1),p=B((L=(y=Be().getItem(`${nt()}configure`))==null?void 0:y.showLogo)!=null?L:!0),{device:c,pureApp:n,isCollapse:o,tooltipEffect:d,menuSelect:l,toggleSideBar:f}=Se(),r=B([]),s=A(()=>n.layout==="mix"&&c.value!=="mobile"?r.value:ke().wholeMenus),v=A(()=>n.layout==="mix"?!1:s.value.length===0),b=A(()=>{var C;return Ge((C=t.meta)==null?void 0:C.activePath)?t.path:t.meta.activePath});function g(){let C="";C=b.value,r.value=[];const $=Vt(C,ke().wholeMenus),P=dt($[0]||C,ke().wholeMenus);P!=null&&P.children&&(r.value=P==null?void 0:P.children)}return Ae(()=>[t.path,ke().wholeMenus],()=>{t.path.includes("/redirect")||(g(),l(t.path))}),qe(()=>{g(),be.on("logoChange",C=>{p.value=C})}),zt(()=>{be.off("logoChange")}),(C,$)=>{const P=M("el-menu"),R=M("el-scrollbar"),W=je("loading");return oe((i(),_("div",{class:Z(["sidebar-container",p.value?"has-logo":"no-logo"]),onMouseenter:$[0]||($[0]=$e(U=>u.value=!0,["prevent"])),onMouseleave:$[1]||($[1]=$e(U=>u.value=!1,["prevent"]))},[p.value?(i(),O(zs,{key:0,collapse:e(o)},null,8,["collapse"])):Y("",!0),h(R,{"wrap-class":"scrollbar-wrapper",class:Z([e(c)==="mobile"?"mobile":"pc"])},{default:w(()=>[h(P,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(o),"collapse-transition":!1,"popper-effect":e(d),"default-active":b.value},{default:w(()=>[(i(!0),_(ue,null,we(s.value,U=>(i(),O(gn,{key:U.path,item:U,"base-path":U.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(c)!=="mobile"&&(u.value||e(o))?(i(),O(er,{key:1,"is-active":e(n).sidebar.opened,onToggleClick:e(f)},null,8,["is-active","onToggleClick"])):Y("",!0),e(c)!=="mobile"?(i(),O(Xs,{key:2,"is-active":e(n).sidebar.opened,onToggleClick:e(f)},null,8,["is-active","onToggleClick"])):Y("",!0)],34)),[[W,v.value]])}}}),nr=ce(tr,[["__scopeId","data-v-f94a3619"]]),or={class:"horizontal-header"},lr=["src"],ar={class:"horizontal-header-right"},sr={class:"globalization-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce"},rr={class:"check-zh"},ir={class:"check-en"},cr={class:"el-dropdown-link navbar-bg-hover"},ur=["src"],dr={key:0,class:"dark:text-white"},hr=["title"],fr=ee({__name:"NavHorizontal",setup(a){var R,W;const t=B(),u=B((W=(R=Be().getItem(`${nt()}configure`))==null?void 0:R.showLogo)!=null?W:!0),{t:p,route:c,locale:n,translationCh:o,translationEn:d}=Bt(t),{title:l,logout:f,onPanel:r,getLogo:s,username:v,userAvatar:b,backTopMenu:g,avatarsStyle:y,toAccountSettings:L,getDropdownItemStyle:C,getDropdownItemClass:$}=Se(),P=A(()=>{var U;return Ge((U=c.meta)==null?void 0:U.activePath)?c.path:c.meta.activePath});return Xe(()=>{var U;(U=t.value)==null||U.handleResize()}),qe(()=>{be.on("logoChange",U=>{u.value=U})}),(U,S)=>{const q=M("el-menu"),K=M("IconifyIconOffline"),re=M("el-dropdown-item"),ie=M("el-dropdown-menu"),E=M("el-dropdown"),Q=je("loading");return oe((i(),_("div",or,[u.value?(i(),_("div",{key:0,class:"horizontal-header-left",onClick:S[0]||(S[0]=(...ne)=>e(g)&&e(g)(...ne))},[m("img",{src:e(s)(),alt:"logo"},null,8,lr),m("span",null,D(e(l)),1)])):Y("",!0),h(q,{ref_key:"menuRef",ref:t,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":P.value},{default:w(()=>[(i(!0),_(ue,null,we(e(ke)().wholeMenus,ne=>(i(),O(gn,{key:ne.path,item:ne,"base-path":ne.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",ar,[h(Dt,{id:"header-search"}),h(E,{id:"header-translation",trigger:"click"},{dropdown:w(()=>[h(ie,{class:"translation"},{default:w(()=>[h(re,{style:ae(e(C)(e(n),"zh")),class:Z(["dark:text-white!",e($)(e(n),"zh")]),onClick:e(o)},{default:w(()=>[oe(m("span",rr,[h(K,{icon:e(Je)},null,8,["icon"])],512),[[xe,e(n)==="zh"]]),S[2]||(S[2]=se(" 简体中文 ",-1))]),_:1},8,["style","class","onClick"]),h(re,{style:ae(e(C)(e(n),"en")),class:Z(["dark:text-white!",e($)(e(n),"en")]),onClick:e(d)},{default:w(()=>[oe(m("span",ir,[h(K,{icon:e(Je)},null,8,["icon"])],512),[[xe,e(n)==="en"]]),S[3]||(S[3]=se(" English ",-1))]),_:1},8,["style","class","onClick"])]),_:1})]),default:w(()=>[m("div",sr,[h(K,{icon:e(Et)},null,8,["icon"])])]),_:1}),h(qt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(E,{trigger:"click"},{dropdown:w(()=>[h(re,{onClick:e(L)},{default:w(()=>[h(K,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(ie,{class:"logout"},{default:w(()=>[h(re,{onClick:e(f)},{default:w(()=>[h(K,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+D(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:w(()=>[m("span",cr,[m("img",{src:e(b),style:ae(e(y))},null,12,ur),e(v)?(i(),_("p",dr,D(e(v)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover hover:[&>svg]:animate-scale-bounce",title:e(p)("buttons.pureOpenSystemSet"),onClick:S[1]||(S[1]=(...ne)=>e(r)&&e(r)(...ne))},[h(K,{icon:e(Rt)},null,8,["icon"])],8,hr)])])),[[Q,e(ke)().wholeMenus.length===0]])}}}),mr=ce(fr,[["__scopeId","data-v-7b0eecc7"]]),pr={key:0},vr=ee({__name:"index",setup(a){const{t}=Ee(),u=B(),{isDark:p}=dn(),{layout:c}=qn(),n=un(),o=Ot(),{$storage:d}=it(),l=$t({sidebar:A(()=>Pe().sidebar),device:A(()=>Pe().device),fixedHeader:A(()=>o.fixedHeader),classes:A(()=>({hideSidebar:!l.sidebar.opened,openSidebar:l.sidebar.opened,withoutAnimation:l.sidebar.withoutAnimation,mobile:l.device==="mobile"})),hideTabs:A(()=>d==null?void 0:d.configure.hideTabs)});function f(b){var g,y,L,C,$,P;window.document.body.setAttribute("layout",b),d.layout={layout:`${b}`,theme:(g=d.layout)==null?void 0:g.theme,darkMode:(y=d.layout)==null?void 0:y.darkMode,sidebarStatus:(L=d.layout)==null?void 0:L.sidebarStatus,epThemeColor:(C=d.layout)==null?void 0:C.epThemeColor,themeColor:($=d.layout)==null?void 0:$.themeColor,themeMode:(P=d.layout)==null?void 0:P.themeMode}}function r(b,g){Pe().toggleDevice(b),Pe().toggleSideBar(g,"resize")}let s=!0;mt(u,b=>{if(n)return;const g=b[0],[{inlineSize:y,blockSize:L}]=g.borderBoxSize;Pe().setViewportSize({width:y,height:L}),y<=760?f("vertical"):f(Pe().layout),y>0&&y<=760?(r("mobile",!1),s=!0):y>760&&y<=990?s&&(r("desktop",!1),s=!1):y>990&&!l.sidebar.isClickCollapse?(r("desktop",!0),s=!0):(r("desktop",!1),s=!1)}),qe(()=>{n&&r("mobile",!1)}),hn(()=>{var b;Ht().dataThemeChange((b=d.layout)==null?void 0:b.themeMode)});const v=ee({name:"LayHeader",render(){return rt("div",{class:{"fixed-header":l.fixedHeader},style:[l.hideTabs&&c.value.includes("horizontal")?p.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!o.hiddenSideBar&&(c.value.includes("vertical")||c.value.includes("mix"))?rt(Wa):null,!o.hiddenSideBar&&c.value.includes("horizontal")?rt(mr):null,rt(hl)]})}});return(b,g)=>{const y=M("el-backtop"),L=M("el-scrollbar");return i(),_("div",{ref_key:"appWrapperRef",ref:u,class:Z(["app-wrapper",l.classes])},[oe(m("div",{class:"app-mask",onClick:g[0]||(g[0]=C=>e(Pe)().toggleSideBar())},null,512),[[xe,l.device==="mobile"&&l.sidebar.opened&&e(c).includes("vertical")]]),oe(h(nr,null,null,512),[[xe,!e(o).hiddenSideBar&&(e(c).includes("vertical")||e(c).includes("mix"))]]),m("div",{class:Z(["main-container",e(o).hiddenSideBar?"main-hidden":""])},[l.fixedHeader?(i(),_("div",pr,[h(e(v)),h(nn,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])])):(i(),O(L,{key:1},{default:w(()=>[h(y,{title:e(t)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:w(()=>[h(e(mn))]),_:1},8,["title"]),h(e(v)),h(nn,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),h(Ms)],2)}}}),Br=ce(vr,[["__scopeId","data-v-98e7d6a0"]]);export{Br as default};