ray-template/js/hooks-Bj7ZB3r7.js

13 lines
117 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.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-3sEoNHvY.js","js/dayjs@1.11.13-DmclB1g0.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-CSPo0Tcq.js","js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-DeuJXZu8.js","js/@vue_reactivity@3.5.13-BUI-9P27.js","js/@vue_shared@3.5.13-DbMIZLZJ.js","js/@vue_runtime-core@3.5.13-FNhVYeFi.js","js/lodash@4.17.21-DdnujIRq.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-Beyjefx-.js","js/jsbarcode@3.11.6-oBoQ6a3L.js","js/@logicflow_core@2.0.6-RNiIy_D6.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js","js/preact@10.22.0-D1_UwAj3.js","js/mobx@5.15.7-CEMJDQot.js","js/lodash-es@4.17.21-B-5kLwAl.js","js/uuid@9.0.1-CQkTLCs1.js","js/classnames@2.5.1-CXGZkgDa.js","js/mousetrap@1.6.5-CZlDLqk3.js","js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js","css/@logicflow_core@2.0-CugW5BGX.css","js/currency.js@2.0.4-9OAR_aOO.js","js/naive-ui@2.40.3_vue@3.5.13_typescript@5.6.3_-CZFQeI4L.js","js/date-fns@3.6.0-C0m45l1x.js","js/seemly@0.3.8-BnJ6M8Cl.js","js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-g_YJteXV.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-1AdBj0rS.js","js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-DTvtyBlr.js","js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.13-C1AIWBZo.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-8suFmB8o.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@12.0.0_typescript@5.6.3-DSJFxvR9.js","js/@vueuse_shared@12.0.0_typescript@5.6.3-DhXqtHXH.js","js/utils-B8caOipb.js","js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____kx5gunx5jwh3gvgzh5d2u2kbi4-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-zdc5zJ8x.js","js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-CdXxuyUY.js","js/interactjs@1.10.27-dRxyG-hL.js","js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-e4Dl3Spz.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.1-BLGAYSDN.js","js/zrender@5.6.0-9xYeh_X5.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-DUhPa_-v.js","js/index-B7kQdPbk.js","js/index-4tgtC3uo.js","css/index-BPwDcGFh.css","js/Flow-D_THAjcR.js","js/index-D2obj970.js","js/instance-7NKHtLUb.js","js/axios@1.7.9-upsvKRUO.js","css/index-C60eEB5E.css","js/BarcodeDemo-BLZDXFNj.js","js/index-BWb-drx0.js","js/index-DE8JYAiQ.js","js/index-BBU_E-RW.js","js/draggable-card-JLRwZXRg.js","js/index-CwkjIXGI.js","css/index-D9y7XLpS.css","js/index-DCEebyrb.js","js/index-DFiq0Ywt.js","js/index-BOW2_g2h.js","js/index-Bd2U0c9w.js","js/index-DSPJrz-d.js","js/index-DaYt7Ebf.js","js/index-C_2oQ_xt.js","js/index-CcagS7OC.js","js/index-DTf05AET.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DbxoUhte.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-BnS3AyZU.css","js/ray-dCjhX_JK.js","js/index-DcuNbFFr.js","css/index-C7SBslZD.css","js/index-DSrly65t.js","js/index-pFn0-Fu3.js","js/index-X4o-NfTa.js","css/index-CCBgYJcK.css","js/index-D1bsDWGh.js","js/index-WdF_T3Gi.js","css/index-Bit-kagu.css","js/TablePro-CQC2ZwPm.js","js/mockjs@1.1.0-lzRjfrGS.js","js/index-DzHfn6bt.js","js/index-B1fjlWdl.js","js/index-Bg-KoLXQ.js","css/index-DId3lj_V.css","js/index-BscISyLU.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]);
var co=Object.defineProperty;var po=(e,n,t)=>n in e?co(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Kt=(e,n,t)=>po(e,typeof n!="symbol"?n+"":n,t);import{s as vt,c as Ee,m as rt,l as Dt,v as mn,p as Ne,y as qe,z as mo}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Wt,d as qt,f as fo,g as go,c as ho,N as De,a as yo,b as vo,e as I,h as pt,m as bo,i as fn,u as _o,S as zt,j as So,k as ze,l as wo,n as gn,o as Co,p as Ue,q as To,r as me,t as Oo,s as ko,v as hn,w as Ao,x as yn,y as st,A as Gt,B as vn,C as Ro,D as Po,E as xo,F as le,G as Mo,H as Ht,I as z,J as te,K as Y,L as Eo,M as It,O as bn,P as J,Q as Do,R as zo,T as Ze,U as Io,V as Lo,W as Fo,X as Bo,Y as Vo,Z as _n,_ as Yt,$ as jo}from"./naive-ui@2.40.3_vue@3.5.13_typescript@5.6.3_-CZFQeI4L.js";import{o as No,u as $e,a as Uo,b as $o,c as Sn,d as Ko,e as bt,f as Wo}from"./@vueuse_core@12.0.0_typescript@5.6.3-DSJFxvR9.js";import{s as ne,k as V,l as be,e as re,n as qo,x as we,a as wn,u as Q}from"./@vue_reactivity@3.5.13-BUI-9P27.js";import{n as ee,j as ce,l as P,b as r,m as j,p as ge,q as ie,f as T,k as Ce,T as Go,i as Te,w as Le,t as Ho,v as Lt,h as mt,x as Cn,F as Tn,y as Yo,z as Ae,A as Xo,C as _t,D as Jo,E as Ve,S as Zo,K as Qo,G as Xt,H as ea,I as q}from"./@vue_runtime-core@3.5.13-FNhVYeFi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as H}from"./dayjs@1.11.13-DmclB1g0.js";import{p as ta}from"./print-js@1.6.0-CSPo0Tcq.js";import{u as On}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-DeuJXZu8.js";import"./lodash@4.17.21-DdnujIRq.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-Beyjefx-.js";import{b as na}from"./jsbarcode@3.11.6-oBoQ6a3L.js";import{L as Jt}from"./@logicflow_core@2.0.6-RNiIy_D6.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as Ft,g as Ke,i as fe,s as Pe,a as Pt,c as oa,b as it,d as N,e as se,q as We,l as kn,f as An,h as aa,r as _e,j as F,k as la,m as ut,n as Rn,p as Pn,o as Bt,t as Zt,v as ye,w as xn,x as ra,y as sa,z as ia,A as ua}from"./utils-B8caOipb.js";import{s as ca}from"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____kx5gunx5jwh3gvgzh5d2u2kbi4-_Zka_ujQ.js";import{d as ft,c as da}from"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-zdc5zJ8x.js";import{t as pa,a as ma,b as fa,c as ga,d as ha,e as ya}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as gt,a as va,o as ba,c as _a,b as Sa}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-CdXxuyUY.js";import{T as Mn,a as wa}from"./@vue_runtime-dom@3.5.13-C1AIWBZo.js";import{i as ct}from"./interactjs@1.10.27-dRxyG-hL.js";import{c as Ca}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-e4Dl3Spz.js";import{r as Ta,u as je,i as Oa,a as ka,b as Aa,c as Ra,d as Pa,e as xa,f as Ma,g as Ea,h as Da,j as za,k as Ia,l as La,m as Fa,n as Ba,o as Va,p as ja,q as Na,s as Ua}from"./echarts@5.5.1-BLGAYSDN.js";import{g as $a}from"./@vueuse_shared@12.0.0_typescript@5.6.3-DhXqtHXH.js";const mi=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(vt(t,u,t[u]||{}),vt(t[u],c,a)):vt(t,u,a||{}))}),t},Ka="modulepreload",Wa=function(e){return"/ray-template/"+e},Qt={},E=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(t.map(u=>{if(u=Wa(u),u in Qt)return;Qt[u]=!0;const c=u.endsWith(".css"),g=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${g}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Ka,c||(d.as="script"),d.crossOrigin="",d.href=u,i&&d.setAttribute("nonce",i),document.head.appendChild(d),c)return new Promise((v,f)=>{d.addEventListener("load",v),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},qa=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ga=async e=>{var t;const n={};for(const o of e){const a=await qa(Object.assign({"../lang/en-US.ts":()=>E(()=>import("./en-US-3sEoNHvY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>E(()=>import("./zh-CN-DUhPa_-v.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},fi=e=>{switch(e){case"zh-CN":return{locale:Wt,dateLocal:qt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Wt,dateLocal:qt}}},Ha={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},gi={max:5,closable:!1},hi="loading",yi="",K={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions",appMenuTagOptions:"appMenuTagOptions"},Ya=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Se={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgb(18, 18, 18)"}},light:{common:{borderRadius:"4px",baseColor:"rgb(255, 255, 255)"}}},echartTheme:"macarons"},En=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Xa="zh-CN",Ja="zh-CN",Za={"zh-CN":"zh-cn","en-US":"en"},Qa="zh-cn",vi={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},bi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xe=ne(null),Dn=ne(null),el={setupRouterLoadingBar:!0,setupRouterGuard:!0},tl=["RLogin","ErrorPage","RayTemplateDoc"],Qe=[],_i=(e,n)=>{const t=V(0),o=V(0),a=V(!1),{clickOutside:l}={},s=d=>{a.value=d},i=d=>{d.preventDefault(),s(!1),ee().then(()=>{const{clientX:v,clientY:f}=d;t.value=v,o.value=f,s(!0)})};l&&No(e,d=>{l(d)});const u=$e(e,"contextmenu",i,n),c=$e(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:be(t),y:be(o),show:be(a),updateShow:s}},Vt=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function pe(e,n,t){Ft(Vt,e,n,t)}function ht(e){return be(qo(Vt,e))}function nl(){return{...we(be(Vt))}}let de;const ol=async()=>{const e=ao(),n=await Ga(En);return Ca({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Ja})},Si=async e=>{const n=await ol();e.use(n),de=n},en=(e,n)=>n,Ge=e=>{if(!de)return{t:l=>en(e,l),locale:l=>{}};const{t:n,...t}=de.global;return{...t,t:(l,...s)=>l?!l.includes(".")&&!e?l:n(en(e,l),...s):"",locale:l=>{de.mode==="legacy"?de.global.locale=l:wn(de.global.locale)?de.global.locale.value=l:de.global.locale=l}}},B=e=>e,al={path:"/dashboard",component:()=>E(()=>import("./index-B7kQdPbk.js"),__vite__mapDeps([58,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:B("menu.Dashboard"),icon:"dashboard",order:0}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/flow",component:()=>E(()=>import("./Flow-D_THAjcR.js"),__vite__mapDeps([61,22,1,2,3,4,5,6,7,8,9,10,11,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,39,40,12,13,14,15,17,18,19,20,21,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Flow"),icon:"other",order:2}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"/axios",name:"RAxios",component:()=>E(()=>import("./index-D2obj970.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:B("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"barcode",component:()=>E(()=>import("./BarcodeDemo-BLZDXFNj.js"),__vite__mapDeps([66,22,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/cache-demo",component:()=>E(()=>import("./index-BWb-drx0.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CacheDemo"),icon:"other",order:3}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/context-menu",component:()=>E(()=>import("./index-DE8JYAiQ.js"),__vite__mapDeps([68,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.ContextMenu"),icon:"other",order:2}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/directive",component:()=>E(()=>import("./index-BBU_E-RW.js"),__vite__mapDeps([69,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:B("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},yl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),vl={path:"/draggable-card",component:()=>E(()=>import("./draggable-card-JLRwZXRg.js"),__vite__mapDeps([70,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),_l={path:"/echart",component:()=>E(()=>import("./index-CwkjIXGI.js"),__vite__mapDeps([71,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,72])),meta:{i18nKey:B("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/form",component:()=>E(()=>import("./index-DCEebyrb.js"),__vite__mapDeps([73,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/iframe",component:()=>E(()=>import("./index-DFiq0Ywt.js"),__vite__mapDeps([74,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),kl={path:"/mock-demo",component:()=>E(()=>import("./index-BOW2_g2h.js"),__vite__mapDeps([75,22,1,2,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,41,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Al=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Rl={path:"/modal-demo",component:()=>E(()=>import("./index-Bd2U0c9w.js"),__vite__mapDeps([76,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Modal"),icon:"other",order:3}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),lt=()=>E(()=>Promise.resolve().then(()=>rs),void 0),xl={path:"/multi",component:lt,meta:{i18nKey:B("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>E(()=>import("./index-DSPJrz-d.js"),__vite__mapDeps([77,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:lt,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>E(()=>import("./index-DaYt7Ebf.js"),__vite__mapDeps([78,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:lt,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>E(()=>import("./index-C_2oQ_xt.js"),__vite__mapDeps([79,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),El={path:"/precision",component:()=>E(()=>import("./index-CcagS7OC.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CalculatePrecision"),icon:"other",order:2}},Dl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),zl={path:"/qrcode",component:()=>E(()=>import("./index-DTf05AET.js"),__vite__mapDeps([81,82,7,5,6,83,84,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:B("menu.QRCode"),icon:"other",order:2}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"rely-about",component:()=>E(()=>import("./index-DcuNbFFr.js"),__vite__mapDeps([85,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,86])),meta:{i18nKey:B("menu.RelyAbout"),icon:"rely",order:999}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Bl={path:"/router-demo",component:lt,meta:{i18nKey:B("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>E(()=>import("./index-DSrly65t.js"),__vite__mapDeps([87,22,1,2,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,4,8,9,10,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>E(()=>import("./index-pFn0-Fu3.js"),__vite__mapDeps([88,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Vl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),jl={path:"/scroll-reveal",component:()=>E(()=>import("./index-X4o-NfTa.js"),__vite__mapDeps([89,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,90])),meta:{i18nKey:B("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Ul={path:"/segment",component:()=>E(()=>import("./index-D1bsDWGh.js"),__vite__mapDeps([91,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},$l=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),Kl={path:"/svg-icons",component:()=>E(()=>import("./index-WdF_T3Gi.js"),__vite__mapDeps([92,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,93])),meta:{i18nKey:B("menu.SvgIcon"),icon:"other",order:3}},Wl=Object.freeze(Object.defineProperty({__proto__:null,default:Kl},Symbol.toStringTag,{value:"Module"})),ql={path:"/table-pro",component:()=>E(()=>import("./TablePro-CQC2ZwPm.js"),__vite__mapDeps([94,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,95,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Gl=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"})),Hl={path:"/table",component:()=>E(()=>import("./index-DzHfn6bt.js"),__vite__mapDeps([96,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Yl=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"})),Xl={path:"/template-hooks",component:()=>E(()=>import("./index-B1fjlWdl.js"),__vite__mapDeps([97,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TemplateHooks"),icon:"other",order:1}},Jl=Object.freeze(Object.defineProperty({__proto__:null,default:Xl},Symbol.toStringTag,{value:"Module"})),Zl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":ll,"/src/router/modules/demo/axios copy.ts":sl,"/src/router/modules/demo/axios.ts":ul,"/src/router/modules/demo/barcode.ts":dl,"/src/router/modules/demo/cache-demo.ts":ml,"/src/router/modules/demo/context-menu.ts":gl,"/src/router/modules/demo/directive.ts":yl,"/src/router/modules/demo/draggable-card.ts":bl,"/src/router/modules/demo/echart.ts":Sl,"/src/router/modules/demo/form.ts":Cl,"/src/router/modules/demo/iframe.ts":Ol,"/src/router/modules/demo/mock.ts":Al,"/src/router/modules/demo/modal.ts":Pl,"/src/router/modules/demo/multi-menu.ts":Ml,"/src/router/modules/demo/precision.ts":Dl,"/src/router/modules/demo/qrcode.ts":Il,"/src/router/modules/demo/rely.ts":Fl,"/src/router/modules/demo/router-demo.ts":Vl,"/src/router/modules/demo/scroll-reveal.ts":Nl,"/src/router/modules/demo/segment.ts":$l,"/src/router/modules/demo/svg-icons.ts":Wl,"/src/router/modules/demo/table-pro.ts":Gl,"/src/router/modules/demo/table.ts":Yl,"/src/router/modules/demo/template-hooks.ts":Jl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},Ql=e=>e[0]==="/",zn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(Ql(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){zn(a.children,n,l);continue}else n.push({...a,path:l})}return n},er=e=>Array.isArray(e)?zn(Ee(e)):[],tr=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof a!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),nr=e=>{const{beforeEach:n}=e,{getRootPath:t}=Xe(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=Ke(K.token,"localStorage"),u=Ke(K.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:g}=a;i!==null?o(a,l)?St(!0):!fe(g,"Symbol")&&g&&tl.includes(g)?s():Zn(c)?o(a,l)?u?s(u):St(!0):s():St(!0):o(a,l)?s():s("/")})},St=(e=!0)=>{const{router:n}=Nt(),{push:t,replace:o}=n,{getRootPath:a}=Xe();Pe(K.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},or=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=xe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},ar=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},In=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Pt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},lr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},Ln=()=>lr,Ie=ft("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=Se,{locale:t}=Ge(),{locale:o}=Is(),a=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:ao(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...Ee(Ln())}),l=c=>{t(c),o(c),Pe(K.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,g=.85)=>{const d=oa(c,g),v={primaryColor:c,primaryColorHover:d,primaryColorPressed:c,primaryColorSuppl:d},{rayTemplateThemePrimaryColor:f,rayTemplateThemePrimaryFadeColor:p}=Ha,S=document.documentElement;a.primaryColorOverride.common=v,S.style.setProperty(f,c),S.style.setProperty(p,d)},i=(c,g,d)=>{Ft(a,c,g,d)},u=c=>{const g=document.documentElement;i("colorWeakness",c),it(g,{filter:c?"invert(100%)":""})};return ce(()=>{var c;a._appTheme?a.primaryColorOverride=rt({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=rt({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:K.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Fn={...fo,onRegister:{type:[Function,Array],default:null}},Bn={actionSpan:{type:Number,default:1},actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...go};function rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const wi=P({name:"RCollapse",props:Object.assign({},Fn,{...Bn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r($n,j(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(dr,a,rr(e)?e:{default:()=>[e]})]})}}),sr={...ho,restrictionElement:{type:[String,HTMLElement,Function],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:Object,default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1}},Ci=P({name:"RDraggableCard",props:sr,setup(e,{expose:n}){const t=ie("cardRef");let o=null;const a={...e.defaultPosition},l="draggable-card-container",s=T(()=>({"--r-draggable-card-width":N(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;(()=>{if(!document.getElementById(l)){const d=document.createElement("div");d.id=l,document.documentElement.appendChild(d)}})();const c=()=>{const d=se(t),v=typeof e.restrictionElement=="string"?We(e.restrictionElement):e.restrictionElement;let f=null;return Array.isArray(v)?f=v[0]:typeof v=="function"?f=se(v):f=v,{card:d,restrictionElement:f}},g=()=>{const{card:d,restrictionElement:v}=c();if(!d||!e.dad)return;const f=v==null?void 0:v.getBoundingClientRect(),p=d.querySelector(".n-card-header"),S=Object.assign({},{restriction:v,endOnly:!0},e.restrictRectOptions);if(f&&!i){const h=f.x+a.x,_=f.y+a.y;d.style.transform=`translate(${h}px, ${_}px)`,a.x=h,a.y=_}o=ct(d).draggable({inertia:!0,autoScroll:!0,allowFrom:p?".n-card-header":".n-card__content",modifiers:[ct.modifiers.restrictRect(S)],listeners:{move:h=>{d.setAttribute("can-drag","true"),a.x+=h.dx,a.y+=h.dy,d.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0};return n(),ce(()=>{e.dad?g():(o==null||o.unset(),o=null)}),Ce(()=>{ee(()=>{g()})}),{cardRef:t,CONTAINER_ID:l,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:l}=this;return r(Go,{to:`#${o}`},{default:()=>[l?r(Mn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),ir={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>kn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>An()},onRegister:{type:[Function,Array],default:null}},ur=Symbol("USE_CHART_PROVIDER_KEY"),cr=aa(),tn="__R_CHART_DOWN_LOAD_CHART__";cr.forEach(e=>{Ta(e.name,e.theme)});const Ti=P({name:"RChart",props:ir,setup(e,{expose:n}){const{getAppTheme:t}=X(),o=ie("rayChartRef"),a=ie("rayChartWrapperRef"),l=ne();let s,i;const{echartTheme:u}=Se;let c;const g=T(()=>[{label:"下载图片",key:tn,disabled:!(l.value&&l.value.getDom())}]),d=T(()=>({"--ray-chart-width":N(e.width),"--ray-chart-height":N(e.height)})),v=V(!1);let f;const p={aria:e.showAria},S=Te(ur,{}),h=async()=>{var O;je([ka,Aa,Ra,Pa,xa,Ma,Ea,Da]),je([za,Ia,La,Fa,Ba,Va]),je([ja,Na]),je([Ua]);try{je((O=e.use)==null?void 0:O.filter(Boolean))}catch(D){console.error("[RChart register error]: ",D)}},_=()=>{const{theme:O}=S||{};if(l.value&&C(),O){y(O);return}if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const D=e.autoChangeTheme&&t.value?`${u}-dark`:u;y(D)}},m=O=>{let D=Q(O);return D=(W=>Object.assign({},D,W))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),D},y=(O=u)=>{var ke;const D=o.value,U=m(e.options),{height:W,width:oe}=D.getBoundingClientRect(),{onSuccess:G,onError:he}=e;try{l.value=Oa(D,O,{width:oe===0?200:void 0,height:W===0?200:void 0}),G&&F(G,l.value),e.nextTick?(l.value.setOption({}),ee(()=>{var ae;U&&((ae=l.value)==null||ae.setOption(U))})):U&&((ke=l.value)==null||ke.setOption(U))}catch(ae){throw he&&F(he),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&F(ae)}},w=()=>{var O;return!!((O=l.value)!=null&&O.isDisposed())},C=()=>{var O;w()||(O=l.value)==null||O.dispose()},b=()=>{l.value&&l.value.resize()},A=(O,D)=>{if(O===tn&&!w()){const{filename:W,...oe}=e.downloadOptions;la(l.value.getDataURL(oe),W??`${new Date().getTime()}`)}const{onDropdownSelect:U}=e;U&&F(U,O,D)},k=()=>{var D;if(e.autoResize&&(s||(s=Dt(b,500)),i||(i=$o(e.autoResizeObserverTarget||a,s))),(D=l.value)!=null&&D.getDom()||!v.value&&e.intersectionObserver)return;_(),f==null||f.stop();const{onRegister:O}=e;O&&l.value&&F(O,l.value,k,L)},L=()=>{C(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return Le(()=>t.value,()=>{e.autoChangeTheme&&(C(),_())}),ce(()=>{var O,D;e.intersectionObserver&&(f=Uo(e.intersectionObserverTarget||a,([U])=>{v.value=U.isIntersecting},e.intersectionOptions)),e.watchOptions?c=$a(()=>e.options,U=>{var G;const W=m(U),oe=Object.assign({},An(),e.setChartOptions);(G=l.value)==null||G.setOption(W,oe)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(O=l.value)==null||O.showLoading(kn(e.loadingOptions)):(D=l.value)==null||D.hideLoading(),e.showAria!==p.aria&&l.value&&(l.value.setOption(m(e.options)),p.aria=e.showAria),v.value&&!w()&&k()}),n(),Ho(async()=>{await h()}),Ce(()=>{k()}),Lt(()=>{L(),c==null||c()}),{rayChartRef:o,cssVarsRef:d,rayChartWrapperRef:a,moreDropDownOptions:g,dropdownSelect:A}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(De,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:_e(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:_e(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":_e(i,{defaultElement:r(Nn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Oi=()=>{let e,n,t;const o=(u,c,g)=>{u&&(e=u,n=g,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},dr=P({name:"RCollapseGrid",props:Bn,setup(e){const n=V(!e.open),t=T(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&F(l,n.value),s&&F(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(x,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ce(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:g,bordered:d}=this;return r(De,{bordered:d,style:[c]},{default:()=>r(yo,j({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(vo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:g},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),pr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},x=P({name:"RIcon",props:pr,setup(e){const n=T(()=>`#${e.prefix}-${e.name}`),t=T(()=>({"--ray-icon-width":e.width?N(e.width):N(e.size),"--ray-icon-height":e.height?N(e.height):N(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&F(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",j({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),mr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},ki=P({name:"RIframe",props:mr,setup(e,{expose:n}){const t=T(()=>({"--ray-iframe-frameborder":N(e.frameborder),"--ray-iframe-width":N(e.width),"--ray-iframe-height":N(e.height)})),o=ie("iframeRef"),a=V(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return $e(o,"load",l),$e(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(pt,j(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),fr={...bo,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},gr=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(a=>{setTimeout(()=>{const l=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=ct(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[ct.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);a(s)}},30)})},Vn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,a)=>{if(t){t.setAttribute("can-drag","true");const{preset:l,dargCallback:s}=n;let{x:i,y:u}=n;gr(t,l,{scheduler:c=>{const g=c.target;i+=c.dx,u+=c.dy,g.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,c)}}).then(c=>{o(c)})}else a()})},hr="r-modal__preset-card--fullscreen",jn="r-modal",Me={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Ai=P({name:"RModal",props:fr,setup(e){const n=T(()=>({[Me.width]:N(e.width??600),[Me.cardWidth]:N(e.cardWidth??600),[Me.dialogWidth]:N(e.dialogWidth??446)})),t=ut();let o;const a={x:0,y:0},l=T(()=>e.preset==="card"&&e.fullscreen);return Le(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?ee(()=>{const i=document.getElementById(t);i&&Vn(i,{preset:e.preset,x:a.x,y:a.y,dargCallback:(u,c)=>{a.x=u,a.y=c}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:l,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(fn,j({class:[jn,i?hr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),yr=()=>{const{create:e,destroyAll:n}=_o();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>mt(zt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,dad:u,fullscreen:c,width:g,cardWidth:d,dialogWidth:v}=o,f=e({...l,content:s}),{key:p}=f,S={[Me.width]:N(g??600),[Me.cardWidth]:N(d??600),[Me.dialogWidth]:N(v??446)};return ee(()=>{const[h]=We(`[internalkey="${p}"]`)||[];h&&(u&&Vn(h,{preset:i,x:0,y:0}),c&&i==="card"&&it(h,{width:"100%",height:"100vh"}),it(h,S),Rn(h,jn))}),f},destroyAll:n}},vr={...So,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function br(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Nn=P({name:"RMoreDropdown",props:vr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(ze,j(this.$props,this.$attrs,{placement:"bottom-start"}),br(e=_e(a,{defaultElement:r(x,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Fe={...wo,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},ue={tableIconSize:"18",tableKey:Symbol("r-table")},_r=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Sr=P({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Fe},setup(e){return{size:V(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&F(l,a)}}},render(){return r(gn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"adjustment",size:ue.tableIconSize,cursor:"pointer"},null)]})}}),wr=P({name:"TableFullscreen",setup(){const{wrapperRef:e}=Te(ue.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=On(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(x,{name:"fullscreen",size:ue.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),Cr=()=>r(x,{name:"draggable",size:14,cursor:"grab"},null),nn=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:e,size:ue.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),xt=(e,n)=>{if(!n)return[null,null];for(let t=0;t<n.length;++t){const o=n[t];if(o.key===e.key)return[n,t];const[a,l]=xt(e,o.children);if(a&&l!==null)return[a,l]}return[null,null]},wt="r-table__c-tool-icon--active",Tr=P({name:"TableC",props:{...Fe,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=T({get:()=>Ee(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:g,title:d,children:v,fixed:f,isResizable:p,...S}=u,h=f==="left",_=f==="right",m={...S,title:d,key:g,fixed:f,isLeftFixedActivated:h,isRightFixedActivated:_,isResizable:p};return{...m,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(nn,{icon:"row_head",title:"固定在列首",customClassName:h?wt:"",onClick:l.bind(this,"left",m,c)},null),r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:"resize_h",size:ue.tableIconSize,cursor:"pointer",customClassName:p?wt:"",onClick:a.bind(this,m,c)},null),default:()=>"修改列宽"}),r(nn,{icon:"row_end",title:"固定在列尾",customClassName:_?wt:"",onClick:l.bind(this,"right",m,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const g=`${i}FixedActivated`,d=`${i==="left"?"right":"left"}FixedActivated`;u[d]=!1,u[g]=!u[g],u[g]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[g,d]=xt(u,t.value);if(g===null||d===null)return;g.splice(d,1);const[v,f]=xt(i,t.value);v===null||f===null||(c==="before"?v.splice(f,0,u):v.splice(f+1,0,u),mn(n)||v.unshift(n),o(v))}}},render(){return r(Ue,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(x,{name:"setting",size:ue.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(Co,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Cr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Or=P({name:"TablePrint",props:Fe,setup(e){const{wrapperRef:n}=Te(ue.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),Pn(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(x,{name:"print",size:ue.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),kr=P({name:"TablePropsSelect",props:{...Fe,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=V(!1),t=V([]),o=l=>{const{onPopselectChange:s}=e;s&&F(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(gn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:_r,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"expanded",size:ue.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Rr=P({name:"RTable",inheritAttrs:!1,props:Fe,setup(e,n){const{expose:t,emit:o}=n,a=ie("rTableInst"),l=ie("wrapperRef"),s=ut(16),i=ut(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),g=V(Object.assign({striped:!1,bordered:!1},Ne(e,"striped","bordered"))),d=T(()=>{const{title:y,tool:w,cardProps:C}=e,{headerStyle:b={}}=C??{};return!y&&!w?Object.assign({},{paddingTop:"0px"},b):b}),v=(y,w)=>{const{onContextMenuClick:C}=e;C&&F(C,y,w),u.showContextMenu=!1},f=(y,w)=>{var b;return{...(b=e.rowProps)==null?void 0:b.call(e,y,w),onContextmenu:e.disabledContextMenu?void 0:A=>{A.preventDefault(),u.showContextMenu=!1,ee().then(()=>{u.showContextMenu=!0,u.x=A.clientX,u.y=A.clientY})}}},p=y=>{c.size=y},S=y=>{const{onUpdateColumns:w,"onUpdate:columns":C}=e;w&&F(w,y),C&&F(C,y)},h=()=>{const{toolOptions:y}=e;return y==null?void 0:y.filter(Boolean).map(w=>typeof w=="function"?w():w)},_=y=>{Object.keys(g.value).forEach(C=>{g.value[C]=y.includes(C)})},m=y=>{const{tool:w}=y;if(!w)return;const C=()=>r(I,{align:"center"},{default:()=>[r(Or,y,null),r(Sr,j(y,{onChangeSize:p.bind(this)}),null),r(wr,null,null),r(Tr,j(y,{onUpdateColumn:S.bind(this)}),null),r(kr,j(y,{onPopselectChange:_.bind(this),onInitialed:_.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let b;return r(I,{align:"center"},Ar(b=h())?b:{default:()=>[b]})}:()=>r(I,{align:"center"},{default:()=>[C(),h()]}):C};return Ce(()=>{const{onRegister:y}=e;y&&a.value&&F(y,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Cn(ue.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:f,contextMenuSelect:v,privateReactive:c,tool:m,wrapperRef:l,propsPopselectValue:g,cardHeaderStyle:d}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u}=this,{class:c,...g}=n,{tool:d,combineRowProps:v,contextMenuSelect:f}=this,{renderWrapperHeader:p,wrapperBordered:S,disabledContextMenu:h,contextMenuOptions:_,title:m,tableFlexHeight:y,cardProps:w,...C}=e,{headerStyle:b,...A}=w??{};return r(De,j(A,{id:l},g,{ref:"wrapperRef",bordered:S,class:c,style:u}),{default:()=>r(Tn,null,[r(To,j({id:o},C,i,{rowProps:v.bind(this),size:s.size,ref:"rTableInst",style:{height:y!=null?N(y):null}}),{...t}),h?null:r(ze,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:_,onClickoutside:()=>a.showContextMenu=!1,onSelect:f.bind(this)},null)]),header:p?_e(m,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":d(e),footer:()=>{var k;return(k=t.tableFooter)==null?void 0:k.call(t)},action:()=>{var k;return(k=t.tableAction)==null?void 0:k.call(t)}})}}),Pr=()=>{const e=ne();let n={};const t=(f,p)=>{f&&(e.value=f,n=p)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,p)=>o().sort.call(null,f,p),print:f=>{const{uuidWrapper:p}=n;if(p){const S=document.getElementById(p);Pn(S,f)}},filter:f=>o().filter.call(null,f)}]},Un=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Un(a.children,n,t);if(l)return l}}},on=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},xr=(e,n,t,o)=>{const a=Q(e);return a?n.reduce((l,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(Q(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},Ri=(e,n,t)=>{const o=V([]),a=V([]),{rowKey:l="key",onChange:s}=t||{},i=T(()=>on(n)),u=(p,S,h)=>{o.value=p,a.value=Q(xr(e,p,a,l)),s==null||s(p,a.value,h),on(n)},c=()=>o.value,g=()=>a.value,d=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},v=p=>{if(p==null)return;let S;o.value=o.value.filter(h=>h!==p),a.value=a.value.filter(h=>h[l]===p?(S=h,!1):!0),s==null||s(o.value,a.value,{row:S,action:"uncheck"})},f=p=>{if(o.value.includes(p))return;const S=!i.value&&o.value.length>=1,h=Un(Q(e)||[],l,p);S?o.value=[p]:o.value.push(p),h&&(S?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return Bt(()=>{d()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:g,clearAll:d,clearKey:v,selectKey:f}]},Mr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Er=P({name:"RTransitionComponent",__name:"index",props:Yo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Mr),setup(e){const{getKeepAliveInclude:n}=Xr(),{getKeepAliveConfig:t}=X();return(o,a)=>{const l=Jo("RouterView");return Ae(),Xo("div",null,[r(l,null,{default:_t(({Component:s,route:i})=>[s?(Ae(),Ve(Mn,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:_t(()=>[(Ae(),Ve(Zo,null,{default:_t(()=>[Q(t).setupKeepAlive?(Ae(),Ve(Qo,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Ae(),Ve(Xt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Ve(Xt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):ea("",!0)]),_:1})])}}}),$n=P({name:"RForm",props:Fn,setup(e,{expose:n}){const t=ie("formRef");return Ce(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(me,j(e,n,{ref:"formRef"}),{...t})}}),Dr=(e,n)=>{const t=ne(),o=c=>{c&&(t.value=c)},a=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:a,validate:(c,g)=>a().validate.call(null,c,g),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ee(e)||{},formRules:()=>Ee(n)||{}}]},zr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Ir={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Lr=qe({...Oo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...zr);function Fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Mt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=_e(n))==null?void 0:o(),r("div",null,[t])]}}):t},Br=e=>{if(typeof e.popover=="string")return r(Ue,null,{trigger:()=>Mt(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ue,o,{trigger:()=>Mt(e),default:()=>t})}},Vr=P({name:"RSegment",props:Lr,setup(e,{expose:n}){const t=T(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?N(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(hn,j(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Ir,a)}),Fr(e=t.map(l=>r(ko,{key:l.key,name:l.key,tab:l.popover?Br(l):Mt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),jr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},Pi=P({name:"RBarcode",props:jr,setup(e){const n=ie("barcodeRef"),t=T(()=>({"--r-barcode-width":N(e.width),"--r-barcode-height":N(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});na(n.value,s!=null?s.toString():"",c),u&&F(u,s,l,i)}catch(l){const{onError:s}=e;s&&F(s,l)}finally{const{onFinally:l}=e;l&&F(l)}};return ce(()=>{e.watchText?o=Le(()=>e.text,a):o==null||o()}),Ce(()=>{a()}),Lt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(pt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Nr={...qe(Fe,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const xi=P({name:"RTablePro",props:Nr,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:g}]=Pr(),[d,{getPage:v,getPageSize:f,setCallback:p,setItemCount:S,resetPagination:h,getItemCount:_}]=Fs(void 0,{prefix:k=>`${k.itemCount}`}),m=T(()=>e.request),y=()=>({getItemCount:_,getPage:v,getPageSize:f}),w=()=>{const{onTablePaginationUpdate:k}=e;k&&F(k,y())},C=k=>{const L=Object.assign({},e.requestConfig,k),{params:O,formatRangeTime:D}=L;return D!=null&&D.length&&O&&D.forEach(W=>{const{key:oe,target:G}=W,he=O[oe];if(he&&(G!=null&&G.length)){const[ke,ae]=he;O[G[0]]=ke,O[G[1]]=ae}else O[oe]=null,O[G[0]]=null,O[G[1]]=null}),Object.assign({},O,{page:v(),pageSize:f()})},b=k=>{var O;h();const L=C(k);(O=m.value)==null||O.call(m,L)},A=k=>{var O;const L=C(k);(O=m.value)==null||O.call(m,L)};return ce(()=>{S(e.paginationCount),p(()=>{const{manual:k}=e;k||A(),w()})}),Ce(()=>{const{onRegister:k}=e;k&&F(k,{getTablePagination:y,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:g,getCurrentTableRequestParams:C})}),{register:n,paginationRef:d}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(Rr,j(s,{onRegister:e,pagination:l?t:void 0}),Ur(o)?o:{default:()=>[o]})}}),Mi=()=>{const e=V(),n=p=>{p&&(e.value=p)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:p=>t().downloadCsv.call(null,p),filters:p=>t().filters.call(null,p),page:p=>t().page.call(null,p),scrollTo:p=>t().scrollTo(p),sort:(p,S)=>t().sort.call(null,p,S),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:p=>t().runTableRequest.call(null,p),print:p=>t().print.call(null,p),getCurrentTableRequestParams:p=>t().getCurrentTableRequestParams.call(null,p)}]},$r=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Kr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:$r()},onRegister:{type:[Function,Array],default:void 0}};let an=!1;const Ei=P({name:"RFlow",props:Kr,setup(e){const n=ie("flowDomRef"),t=T(()=>{const{width:d,height:v}=e;return{"--r-flow-width":N(d),"--r-flow-height":N(v)}}),o=ne(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var d;an||((d=e.use)==null||d.filter(Boolean).forEach(v=>Jt.use(v)),an=!0)},c=d=>{if(!o.value)return;const v=Object.entries(a).reduce((f,[p])=>(f[p]=!d,f),{});Object.assign(a,v,{isSilentMode:d}),o.value.updateEditConfig(a)},g=d=>{if(u(),!n.value)return;const{options:v,readonly:f}=e;o.value=new Jt({container:Q(n.value),...qe(v,"container")}),o.value.render(d||s),c(f)};return ce(()=>{e.watchData?l=Le(()=>e.data,d=>{o.value?d&&o.value.renderRawData(d):g(d)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Ce(()=>{g();const{onRegister:d}=e;d&&o.value&&F(d,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),Di=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Wr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Kn=(e,n,t)=>{const o=[];if(Wr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=Kn(a,n,t);l.length>0&&o.push(e,...l)}return o},qr=(e,n,t)=>{const o=[];for(const a of e){const l=Kn(a,n,t);l.length>0&&o.push(...l)}return o},ln=e=>{const{dynamicDocumentTitle:n}=Ie();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ie(),a=o?o.title:"";document.title=t+" - "+a},Gr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Ie(),{collapsed:o}=jt(),a=mt(x,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Wn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ge(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,g=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>mt(Ao,{...u,type:s||"primary",style:g()},{default:()=>c(),icon:()=>l})},rn=()=>{const{getRootPath:e}=Xe();return Ke(K.appMenuKey,"sessionStorage",{defaultValue:e.value})},Hr=()=>Ke(K.appMenuTagOptions,"sessionStorage",{defaultValue:[]}),qn=()=>tr(Zl()),Yr=()=>er(qn()),Et=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let et;const Gn=(e,n)=>{var t;if(et&&Zt(et.fullPath,n))return et;for(const o of e){if(Zt(o.fullPath,n))return et=o,o;if((t=o.children)!=null&&t.length){Gn(o.children,n);continue}}},jt=ft("menu",()=>{const{push:e,getRoutes:n}=gt(),t=va(),{t:o}=Ge(),{setKeepAliveInclude:a}=Jr(),l=re({menuKey:rn(),options:[],collapsed:!1,menuTagOptions:Hr(),breadcrumbOptions:[],currentMenuOption:null}),s=V(!0),i=(m,y,w)=>{Ft(l,m,y,w)},u=m=>{const{meta:y}=m,{i18nKey:w,noLocalTitle:C}=y,b=T(()=>w?o(`${w}`):C),A={...m,key:m.fullPath,label:()=>mt(yn,null,{default:()=>b.value}),breadcrumbLabel:b.value},k=Object.assign({},A,{icon:Gr(m),extra:Wn(m)});return m.fullPath===rn()&&(l.currentMenuOption=k),k.show=In(k),k},c=m=>{l.breadcrumbOptions=Q(qr(l.options,"fullPath",m))},g=(m,y=!0)=>{const C=Array.isArray(m)?[...m]:[m];y?l.menuTagOptions.push(...C):l.menuTagOptions=C,Pe(K.appMenuTagOptions,l.menuTagOptions)},d=(m,y)=>{l.menuTagOptions.find(C=>C.fullPath===m)||l.menuTagOptions.push(y),l.menuTagOptions=l.menuTagOptions.filter(C=>{var b;return(b=C.fullPath)==null?void 0:b.startsWith("/")}),Pe(K.appMenuTagOptions,l.menuTagOptions)},v=(m,y,w)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(m),query:w});const{sameLevel:b}=C;if(a(y),ln(y),!b)d(m,y),c(m),l.menuKey=m,l.currentMenuOption=y,Pe(K.appMenuKey,m);else{const A=Ne(u(y),Et);l.breadcrumbOptions.find(L=>L.key===A.key)||l.breadcrumbOptions.push({...A,fullPath:String(A.key)})}}},f=async(m,y)=>{const[w]=m.split("?"),C=n().find(b=>b.path===w);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const b=Ne(C,Et);v(w,u({...b,fullPath:b.path}),y)}},p=()=>new Promise(m=>{const y=(C,b)=>{var k;const A=[];for(const L of C){let O=`${b.endsWith("/")?b:b+"/"}${L.path}`;if(O=O.replace(/\/+/g,"/"),(k=L.children)!=null&&k.length)L.children=y(L.children,O);else if(!Zn(L.meta))continue;A.push(u({...L,fullPath:O}))}return A};l.options=y(qn(),"");const w=l.currentMenuOption||Qr(l.options);w&&(l.breadcrumbOptions.length||c(w.key),d(w.fullPath,w),ln(w)),m()}),S=m=>l.collapsed=m,h=(m,y=1)=>{const w=l.menuTagOptions.splice(m,y);return Pe(K.appMenuTagOptions,l.menuTagOptions),w},_=async()=>{s.value&&(await p(),s.value=!1)};return Le(()=>t.fullPath,async(m,y)=>{await _(),m!==y&&await f(m,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:v,collapsedMenu:S,spliceMenTagOptions:h,setMenuTagOptions:g,resolveOption:u,updateMenuState:i,setupAppMenu:p}},{persist:{key:K.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","collapsed"]}}),Hn=ft("signing",()=>{const e=re({signingCallback:{}}),n=a=>new Promise((l,s)=>{mn(a)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:a.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},l({code:0,message:"登陆成功",data:e.signingCallback}))}),t=a=>{const{closeAll:l}=oo(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:c,appMenuKey:g}=K;window.$message.info("账号退出中..."),ye("__all_sessionStorage__","sessionStorage"),ye(i,"localStorage"),ye(s,"localStorage"),ye(u,"localStorage"),ye(c,"localStorage"),ye(g,"localStorage"),ye(K.isAppLockScreen,"localStorage"),l(),a&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...we(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:K.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Yn=ft("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Ie().keepAliveConfig;if(i){if(l<u&&!e.keepAliveInclude.includes(s)){e.keepAliveInclude.push(s);return}l>=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:K.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Oe=()=>{const e=jt(),n=T(()=>e.options),t=T(()=>e.breadcrumbOptions),o=T(()=>e.menuKey),a=T(()=>e.menuTagOptions),l=T(()=>e.currentMenuOption),s=T(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Be=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=jt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},X=()=>{const e=Ie(),n=T(()=>e.drawerPlacement),t=T(()=>e.primaryColorOverride),o=T(()=>e._appTheme),a=T(()=>e.appTheme),l=T(()=>e.menuTagSwitch),s=T(()=>e.breadcrumbSwitch),i=T(()=>e.localeLanguage),u=T(()=>e.lockScreenSwitch),c=T(()=>e.copyrightSwitch),g=T(()=>e.contentTransition),d=T(()=>e.watermarkSwitch),v=T(()=>e.watermarkConfig),f=T(()=>e.appRootRoute),p=T(()=>e.sideBarLogo),S=T(()=>e.keepAliveConfig),h=T(()=>e.menuConfig),_=T(()=>e.colorWeakness),m=T(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:g,getWatermarkSwitch:d,getWatermarkConfig:v,getAppRootRoute:f,getSideBarLogo:p,getKeepAliveConfig:S,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:_,getDynamicDocumentTitle:m}},$=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ie();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Xn=()=>{const e=Hn();return{getSigningCallback:T(()=>e.signingCallback)}},Jn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Hn();return{signing:e,logout:n,clearSigningCallback:t}},Xr=()=>{const e=Yn();return{getKeepAliveInclude:T(()=>e.keepAliveInclude)}},Jr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Yn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},zi=e=>{const n=da();e.use(n),n.use(ca)},Zn=e=>{const{getSigningCallback:n}=Xn(),{role:t}=e;return Qe!=null&&Qe.length&&Qe.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Zr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=el;n&&ar(e),t&&nr(e)},Qr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},es=ne(),ts=P({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=gt(),{getSideBarLogo:n}=X();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(x,{name:n.value.icon,size:"30",cursor:a},null);if(fe(n.value.icon,"Object"))return _e(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:es},[e!=null&&e.icon?n?r(st,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(st,{placement:"right"},{trigger:()=>r(Gt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(Gt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(yn,null,{default:()=>[e.title]})]})]):null}}),ns=P({name:"AppMenu",setup(){const e=ne(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Be(),{getMenuConfig:a}=X(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Oe(),u=T({get:()=>(setTimeout(()=>{d(),xn()},300),i.value),set:()=>{c.value&&pe("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=Ye({observer:f=>{f&&o("collapsed",!1)}}),g=T({get:()=>ht("globalDrawerValue").value,set:f=>{pe("globalDrawerValue",f)}}),d=()=>{const f=u.value;f!=null&&ee(()=>{var p,S;return(S=(p=e.value)==null?void 0:p.showOption)==null?void 0:S.call(p,f)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Po,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Dn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(ts,{collapsed:s.value},null):null,r(Ro,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(f,p)=>{n(f,p)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:g}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(vn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class os{constructor(){Kt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const Ct={requestInstance:null,responseInstance:null},Tt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},tt={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},as=new os,Ii=()=>{const e=(i,u)=>{u==="requestInstance"?Ct.requestInstance=i:Ct.responseInstance=i},n=i=>Ct[i],t=(i,u,c)=>{c==="ok"?Tt[i]=u:tt[i]=u},o=(i,u)=>u==="ok"?Tt[i]:tt[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const g=c==="ok"?Tt[u]:tt[u],d=n(i),{MODE:v}=Pt();d&&a(g,d,v)},fetchError:(i,u,c)=>{const g=tt[c],{MODE:d}=Pt();a(g,u,d)}}},ls=P({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ba(()=>{as.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Qn=P({name:"LayoutContentWrapper",setup(){gt();const{maximize:e}=no(),{getContentTransition:n}=X(),t=V(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=nl();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(pt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(x,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(ls,null,null),e?r(Er,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),rs=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"}));var ss={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.3",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"3.1.0","@eslint/js":"9.11.0","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.10","@typescript-eslint/eslint-plugin":"^8.16.0","@typescript-eslint/parser":"^8.16.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^14.1.4","@vue/test-utils":"2.4.6",autoprefixer:"^10.4.20",depcheck:"^1.4.7",eslint:"^9.11.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.26.0",globals:"15.12.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"^15.2.2",postcss:"^8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.77.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^6.0.4","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.4","vite-plugin-mock-dev-server":"1.8.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^5.1.0",vitest:"2.0.5","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.8"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const is=P({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ss;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),us=P({name:"TooltipIcon",props:{...xo,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(x,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(st,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),cs=P({name:"ThemeSegment",setup(){const{system:e}=Sn(),{getAppThemeStr:n,getAppTheme:t}=X(),{updateSettingState:o}=$(),a=[{label:"深色",key:"dark",icon:()=>r(x,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(x,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(x,{name:"system_os",size:"16"},null)}],l=T({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return ce(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(Vr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),He=Symbol("segmentDrawer"),ds=P({name:"SegmentViewsAppearance",setup(){const e=Te(He,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=$();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("系统主题")]}),r(cs,null,null),r(le,null,{default:()=>[q("内置主题")]}),r(Mo,{showPreview:!0,swatches:Se.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[q("切换动画")]}),r(Ht,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Ya,onUpdateValue:a=>{o("contentTransition",a)}},null),r(le,null,{default:()=>[q("配置入口出现位置")]}),r(Ht,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(le,null,{default:()=>[q("其他设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"面包屑"},{default:()=>[r(te,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(z,{label:"标签页"},{default:()=>[r(te,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(z,{label:"页底信息"},{default:()=>[r(te,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(z,{label:"色弱模式"},{default:()=>[r(te,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),ps=P({name:"SegmentViewsCommon",setup(){const e=Te(He,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"页面缓存"},{default:()=>[r(te,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(z,{label:"动态浏览器标题"},{default:()=>[r(te,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[q("缓存设置")]}),r(me,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(z,{label:"最大缓存数",feedback:T(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时缓存将会失效":"").value},{default:()=>[r(Y,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(z,{label:"排除缓存"},{default:()=>[r(Eo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ms=P({name:"SegmentViewsWatermark",setup(){const e=Te(He,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"全屏水印"},{default:()=>[r(te,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(z,{label:"跨边界显示"},{default:()=>[r(te,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[q("个性化水印")]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"水印内容"},{default:()=>[r(It,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(z,{label:"字体尺寸"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(z,{label:"字体行高"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(z,{label:"字体宽度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(z,{label:"字体高度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(z,{label:"x轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(z,{label:"x轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(z,{label:"y轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(z,{label:"y轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(z,{label:"旋转角度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),fs=P({name:"SegmentViewsCustomMenu",setup(){const e=Te(He,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(st,{placement:"top",showArrow:!1},{trigger:()=>r(x,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(bn,null,{default:()=>[q("菜单样式")]})]})]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"每级菜单缩进"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(z,{label:"菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(z,{label:"折叠菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(z,{label:"菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(z,{label:"折叠菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(z,{showFeedback:!1,showLabel:!1},{default:()=>[r(J,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[q("更新菜单")]})]})]}),r(le,null,{default:()=>[q("其他设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"反转色菜单"},{default:()=>[r(te,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(z,{label:"菜单标题"},{default:()=>[r(te,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(z,{label:"手风琴菜单"},{default:()=>[r(te,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(z,{label:"原生滚动条"},{default:()=>[r(te,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),gs=P({name:"SettingDrawer",props:Do,setup(){const{create:e}=yr(),{changePrimaryColor:n,updateSettingState:t}=$(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:g,getMenuConfig:d,getDrawerPlacement:v,getColorWeakness:f,getWatermarkConfig:p,getDynamicDocumentTitle:S}=X(),{setupAppMenu:h}=Be(),_=Dt(h,300),m=re({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:g.value,menuConfig:d.value,drawerPlacement:v.value,colorWeakness:f.value,primaryColorOverride:a.value,watermarkConfig:p.value,dynamicDocumentTitle:S.value,throttleSetupAppMenu:_}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{mo(Ee(Ln()),(w,C)=>{m[C]=w,t(C,w)}),_()}})};return Cn(He,m),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:m,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(vn,j(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(zo,{title:"个性化配置",closable:!0},{default:()=>r(hn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ze,{name:"appearance",tab:"外观"},{default:()=>[r(ds,null,null)]}),r(Ze,{name:"menu",tab:"菜单"},{default:()=>[r(fs,null,null)]}),r(Ze,{name:"watermark",tab:"水印"},{default:()=>[r(ms,null,null)]}),r(Ze,{name:"common",tab:"通用"},{default:()=>[r(ps,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(J,{type:"warning",onClick:e},{icon:()=>r(x,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function hs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ys=P({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Be(),{getBreadcrumbOptions:n}=Oe(),{isTabletOrSmaller:t}=Ye();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Lo,null,{default:()=>[r(wa,{tag:"li",name:"breadcrumb",appear:!0},hs(e=t.map(l=>r(Io,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(ze,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Ot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const vs=P({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Be(),{getRoutes:a}=gt(),l=T({get:()=>e.show,set:b=>{n("update:show",b),b||f()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:g}=Ye(),d=V(!1),v="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},p=b=>{l.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),l.value=!0)},S=b=>{if(b)d.value=!0;else{d.value=!1,s.searchOptions=[];return}const A=a().reduce((k,L)=>{var W;const O=Ne(L,["children","meta","path","name"]),D=o({...O,fullPath:L.path}),{breadcrumbLabel:U}=D;return(W=U==null?void 0:U.toLocaleLowerCase())!=null&&W.includes(b.toLocaleLowerCase())&&In(D)&&k.push(D),k},[]);setTimeout(()=>{s.searchOptions=A,ee().then(()=>{_()}),d.value=!1},300)},h=b=>{if(b){const{meta:A}=b;A.windowOpen?window.open(A.windowOpen):(l.value=!1,t(b.fullPath,b),setTimeout(xn,300))}},_=()=>{const b=s.searchOptions[u],A=s.searchOptions[c];b&&ee().then(()=>{const k=We(`attr:data_path="${b.path}"`),L=A?We(`attr:data_path="${A==null?void 0:A.path}"`):null;if(L!=null&&L.length){const[O]=L;ra(O,v)}if(k!=null&&k.length){const[O]=k;Rn(O,v)}})},m=b=>{const{icon:A}=b;return typeof A=="string"&&A?r(x,{name:A,size:"24"},null):typeof A=="function"?r(A,null,null):r(x,{name:"search",size:"24"},null)},y=b=>{b==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),b==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},w=b=>{const A=b.key;switch((A==="ArrowUp"||A==="ArrowDown"||A==="Enter")&&(b.preventDefault(),b.stopPropagation()),c=u<=0?0:u,A){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const k=s.searchOptions[u];k&&h(k);break}_()},C=({menuOption:b})=>r(I,j({align:"center",class:"content-item"},{onClick:h.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[m(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(x,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ce(()=>{g.value&&(l.value=!1)}),$e(window,"keydown",b=>{p(b),w(b)},!0),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Dt(S,300),searchItemClick:h,RenderPreIcon:m,isTabletOrSmaller:g,SearchItem:C,loading:d}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a}=this;return e?r("div",{style:"display: none;"},null):r(fn,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(De,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(It,{size:"large",value:this.searchValue,"onUpdate:value":l=>this.searchValue=l,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(x,{name:"search",size:"24"},null)}),default:()=>{let l;return r(zt,null,{default:()=>[r(pt,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},Ot(l=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?l:{default:()=>[l]}):r(Fo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(bn,null,{default:()=>[q("没有搜索结果")]})]})})]})]})},action:()=>{let l;return r(I,{justify:"flex-start",align:"center",size:[16,0]},Ot(l=this.helperTipOptions.map(s=>r(I,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(I,{class:"item-icon",align:"center",justify:"center"},Ot(i)?i:{default:()=>[i]})),r(I,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?l:{default:()=>[l]})}})])])]})}}),bs=P({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=sa();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(J,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(x,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),eo=P({name:"AppAvatar",props:{...Bo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Xn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:a},{default:()=>[r(Vo,j(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),_s=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ss={logout:()=>{const{logout:e}=Jn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=$();e("lockScreenSwitch",!0)}},ws=e=>{const n=Ss[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Cs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},Ts=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},Os=P({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=$(),{t}=Ge(),[o,{toggleFullscreen:a,isEnabled:l}]=On(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=X(),u=V(!1),c=V(!1),{isTabletOrSmaller:g}=Ye(),d=ht("globalDrawerValue"),v=T(()=>Cs({isFullscreen:o,isTabletOrSmaller:g})),f=T(()=>Ts({isFullscreen:o,isTabletOrSmaller:g})),p={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{pe("globalDrawerValue",!d.value)}};return{leftIconOptions:v,rightTooltipIconOptions:f,toolIconClick:_=>{var m;(m=p[_])==null||m.call(p)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:_=>g.value?null:_}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(_n,{class:"layout-header"},{default:()=>[r(vs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(us,{key:i.name,iconName:i.name,tooltipText:wn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(ys,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(bs,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(x,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ze,{options:En,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(x,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ze,{options:_s(),onSelect:ws.bind(this),trigger:"click"},{default:()=>[r(eo,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(gs,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ks=P({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(Os,null,null)]})}});function As(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Rs=P({name:"AppMenuTag",setup(e,{expose:n}){const t=ie("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Oe(),{changeMenuModelValue:l}=Be(),{getRootPath:s}=Xe(),{maximize:i}=no(),{reload:u}=Bs(),{close:c,closeAll:g,closeRight:d,closeLeft:v,closeOther:f,checkCloseLeft:p,checkCloseRight:S}=oo(),h=["closeAll","closeRight","closeLeft","closeOther"];let _=1/0;const m={size:16},y=V([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(x,{name:"close",size:m.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(x,{name:"fullscreen_fold",size:m.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(x,{name:"reload",size:m.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(x,{name:"shared",size:m.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(x,{name:"close_left",size:m.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(x,{name:"close_right",size:m.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(x,{name:"close_other",size:m.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(x,{name:"resize_h",size:m.size},null),disabled:!1}]),w=ut(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(_)},reloadCurrentPage:()=>{u()},closeAll:()=>{g()},closeRight:()=>{d(_)},closeLeft:()=>{v(_)},closeOther:()=>{f(_)},windowOpenTab:()=>{const R=a.value[_];if(!(R!=null&&R.fullPath))return;const M=R.fullPath.startsWith("#")?R.fullPath:`#${R.fullPath}`;window.open(M,"_blank")},maximizeLayoutContent:()=>{const R=a.value[_];i(!0),R&&oe(R)}},b=re({x:0,y:0,actionDropdownShow:!1}),A="menu_tag_data",k=ht("globalMainLayoutLoad"),L="n-scrollbar-container";let O=o.value;const D=V(!1),U=R=>{c(R)},W=(R,M)=>{for(const Z of y.value)if(Z.key===R){Z.disabled=M;break}},oe=R=>{b.actionDropdownShow=!1,l(R.fullPath,R)},G=()=>{const R=document.getElementById(w);if(R)return Array.from(R.childNodes).find(Je=>ia(Je,L).value)},he=R=>{var Z;const M=G();if(M){const Je=M.scrollLeft||0,$t=R==="left"?Math.max(0,Je-200):Je+200;(Z=t.value)==null||Z.scrollTo({left:$t,behavior:"smooth"})}},ke=R=>{b.actionDropdownShow=!1;const M=C[R];M==null||M()},ae=(R,M)=>{M.preventDefault(),_=R,b.actionDropdownShow=!1,ee(()=>{b.x=M.clientX,b.y=M.clientY,b.actionDropdownShow=!0})},Ut=()=>{S(_)?W("closeRight",!1):W("closeRight",!0),p(_)?W("closeLeft",!1):W("closeLeft",!0)},lo=()=>{_=a.value.findIndex(M=>M.fullPath===o.value),Ut()},ro=R=>{a.value.length>1&&R.fullPath!==s.value&&(R.closeable=!0),D.value=!0},so=R=>{R.fullPath!==o.value&&(R.closeable=!1),D.value=!1},io=()=>{G()&&ee().then(()=>{var M;(M=t.value)==null||M.scrollTo({left:99999,behavior:"smooth"})})},yt=()=>{ee().then(()=>{const R=We(`attr:${A}="${o.value}"`);if(R!=null&&R.length){const[M]=R;ee().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:M.offsetLeft,behavior:"smooth"})})}})},uo=()=>{i(!0)};return Le(()=>a.value,(R,M)=>{y.value.forEach(Z=>{h.includes(Z.key)&&(R.length>1?Z.disabled=!1:Z.disabled=!0)}),M!=null&&M.length&&(R.length>(M==null?void 0:M.length)?io():R.length===(M==null?void 0:M.length)&&yt()),M===void 0&&yt()},{immediate:!0}),ce(()=>{b.actionDropdownShow&&Ut(),O!==o.value&&(O=o.value,yt())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:U,getMenuKey:o,menuTagClick:oe,moreOptions:y,scrollX:he,scrollRef:t,uuidScrollBar:w,actionDropdownSelect:ke,actionState:b,menuTagContextMenu:ae,setCurrentContextmenuIndex:lo,menuTagMouseenter:ro,menuTagMouseleave:so,MENU_TAG_DATA:A,iconConfig:m,maximize:i,reload:u,globalMainLayoutLoad:k,maximizeBtnClick:uo,isMouseInMenuTag:D}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:g,menuTagClick:d,menuTagContextMenu:v,menuTagMouseenter:f,menuTagMouseleave:p,actionDropdownSelect:S,reload:h}=this;return r(_n,null,{default:()=>[r("div",{class:"menu-tag"},[r(ze,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:S.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(I,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(zt,j({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},As(e=o.map((_,m)=>r(J,j({key:_.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:_.fullPath===this.getMenuKey?"primary":"default"},{onClick:d.bind(this,_),onContextmenu:v.bind(this,m),onMouseenter:f.bind(this,_),onMouseleave:p.bind(this,_),[a]:_.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Tn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:w}}=_;return w?g(w):y}})]),icon:()=>r(x,j({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,m)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(x,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(x,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(Nn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(x,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Ps=P({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(Rs,null,null)}}),xs={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},sn=()=>({lockPassword:null}),un=Ko(K.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),to=()=>({setLockAppScreen:t=>{un.value=t},getLockAppScreen:()=>un.value}),Ms=P({name:"UnlockScreen",setup(){const[e,{validate:n}]=Dr(),{logout:t}=Jn(),{updateSettingState:o}=$(),{setLockAppScreen:a}=to(),{isTabletOrSmaller:l}=Ye(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",g=re({lockCondition:sn(),HH_MM:H().format(s),AM_PM:H().format(i),YY_MM_DD:H().format(u),DDD:H().format(c)}),d=setInterval(()=>{g.HH_MM=H().format(s),g.AM_PM=H().format(i)},6e3),v=setInterval(()=>{g.YY_MM_DD=H().format(u),g.DDD=H().format(c)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)}})},p=()=>{n().then(()=>{a(!1),o("lockScreenSwitch",!1),g.lockCondition=sn()})};return Lt(()=>{clearInterval(d),clearInterval(v)}),{...we(g),backToSigning:f,unlockScreen:p,isTabletOrSmaller:l,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(eo,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r($n,{onRegister:u,model:this.lockCondition,rules:xs},{default:()=>[r(z,{path:"lockPassword"},{default:()=>[r(It,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(J,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[q("返回登陆")]}),r(J,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[q("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,q(" "),r("span",null,[a]),q(" "),r("span",null,[t])])])])])])}}),Es=e=>{const n=bt(e[0]),t=bt(e[1]),o=bt(e[2]);return T(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Ds=P({name:"RLayout",setup(){const e=ne(),n=ne(),t=ne(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=X(),{getLockAppScreen:l}=to(),s=Es([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ms,null,null):r(jo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(ns,null,null),r(Yt,{class:"r-layout-full__viewer"},{default:()=>[r(ks,{ref:"layoutSiderBarRef"},null),e?r(Ps,{ref:"layoutMenuTagRef"},null):null,r(Yt,{ref:xe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Qn,null,null)]}),t?r(is,{ref:"layoutFooterRef"},null):null]})]})}}),zs=[{path:"/",name:"RLogin",component:()=>E(()=>import("./index-Bg-KoLXQ.js"),__vite__mapDeps([98,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,82,83,84,39,40,59,42,43,44,45,46,47,49,50,51,52,53,54,55,56,99]))},{path:"/",name:"RLayout",component:Ds,children:[...Yr(),{path:"/:catchAll(.*)",component:()=>E(()=>import("./index-BscISyLU.js"),__vite__mapDeps([100,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,101])),meta:{i18nKey:B("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],dt=_a({history:Sa(),routes:zs,scrollBehavior:e=>{or(e)}}),Li=e=>{e.use(dt),Zr(dt)},Nt=()=>dt?{router:dt}:{router:{}},cn="YYYY-MM-DD HH:mm:ss",Is=()=>({locale:s=>{const i=Za[s];i?H.locale(i):H.locale(Qa)},getStartAndEndOfDay:s=>{const{format:i=cn}=s??{},u=H(),c=u.startOf("day"),g=u.endOf("day"),d=u.format(i),v=c.format(i),f=g.format(i);return{today:u,startOfDay:c,endOfDay:g,formatToday:d,formatStartOfDay:v,formatEndOfDay:f}},format:(s,i)=>{const{format:u=cn}=i??{};return H(s).format(u)},isDayjs:s=>H.isDayjs(s),daysDiff:(s,i)=>{const u=H(s);return H(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,g=H(s);return g.isAfter(u)&&g.isBefore(c)}});function Ye(e){const{width:n,height:t}=Wo(e),o=V(!1),{observer:a}=e??{};return ua(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:be(o)}}let nt=999,kt=!1;const ve="ELEMENT-FULLSCREEN-RAY",dn=document.createElement("style"),Ls=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const g={x:null,y:null},d=V(!1),v=()=>{const h=se(e);if(!h)return;const{left:_,top:m}=h.getBoundingClientRect();g.x===null&&g.y===null&&(g.x=-_,g.y=-m),it(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?nt:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${g.x}px`,"--element-fullscreen-transform-y":`${g.y}px`});const y=`
[${ve}] {
position: fixed;
width: var(--element-fullscreen-width) !important;
height: var(--element-fullscreen-height) !important;
transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important;
transition: var(--element-fullscreen-transition);
z-index: var(--element-fullscreen-z-index) !important;
background-color: var(--element-fullscreen-background-color);
}
`.trim();dn.innerHTML=y,kt||document.head.appendChild(dn)},f=()=>{const h=se(e);t==null||t(),h&&(h.getAttribute(ve)||h.setAttribute(ve,ve),c||(c=!0,nt+=1),kt||(v(),kt=!0),h.style.transition=u,d.value=!0,a==null||a())},p=()=>{o==null||o();const h=se(e);h&&h.removeAttribute(ve),d.value=!1,l==null||l()},S=()=>{const h=se(e);h&&(h.getAttribute(ve)?p():f())};return Bt(()=>{const h=se(e);h&&h.removeAttribute(ve),nt=Math.max(999,nt-1),d.value=!1}),{enter:f,exit:p,toggleFullscreen:S,isFullscreen:be(d)}},At={svg:pa,png:ma,jpeg:fa,blob:ga,pixelData:ha,canvas:ya},Fi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n??{};return{create:u=>new Promise((c,g)=>{var f;const d=se(e);if(t==null||t(d),!d)return a==null||a(),g("[useDomToImage]: target element is undefined.");(f=At[u??s??"jpeg"])==null||f.call(At,d,n).then(p=>(o==null||o(p,d),c(p))).catch(p=>(a==null||a(p),g(p))).finally(()=>{l==null||l(d)})})}},Bi=(e,n)=>({print:()=>{const o=se(e)||e;ta({...qe(n,["printable"]),printable:o})}}),ot={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Fs=(e,n)=>{const t=T(()=>({...ot,...qe(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=ne(e),a={onUpdatePage:m=>{var w;const{pageChange:y}=t.value;l.value.page=m,(w=o.value)==null||w.call(o),y==null||y(m)},onUpdatePageSize:m=>{var w;const{pageSizeChange:y}=t.value;l.value.pageSize=m,l.value.page=ot.page,(w=o.value)==null||w.call(o),y==null||y(m)}},l=V(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=m=>{l.value.itemCount=m},g=()=>l.value.page,d=m=>{s(m)},v=()=>l.value.pageSize,f=m=>{i(m)},p=()=>l.value,S=o.value,h=m=>{o.value=m},_=()=>{const{pageSizes:m}=l.value;l.value.page=ot.page,l.value.pageSize=(m==null?void 0:m[0])||ot.pageSize};return Bt(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:g,setPage:d,getPageSize:v,setPageSize:f,getPagination:p,getCallback:S,setCallback:h,resetPagination:_}]},no=()=>({isLayoutContentMaximized:T(()=>ht("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=se(xe),{toggleFullscreen:s}=Ls(l,o);pe("layoutContentMaximize",t),s(),a&&t&&((i=xe==null?void 0:xe.value)==null||i.scrollTo(a))}}),Bs=()=>({reload:(o=800)=>{pe("globalMainLayoutLoad",!1),setTimeout(()=>pe("globalMainLayoutLoad",!0),o)},openSpin:()=>{pe("layoutContentSpinning",!0)},closeSpin:()=>{pe("layoutContentSpinning",!1)}}),Vi=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=X(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=$();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=X(),{updateSettingState:l}=$();l("watermarkSwitch",!a.value)}}),at=e=>{const{getPrimaryColorOverride:n}=X(),{updateSettingState:t}=$();t("primaryColorOverride",e?rt({},n.value,Se.appNaiveUIThemeOverrides.dark):rt({},n.value,Se.appNaiveUIThemeOverrides.light))},ji=()=>{const e=()=>{const{getAppTheme:l}=X(),{t:s}=Ge();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=$();l("_appTheme",!0),l("appTheme","dark"),at(!0)},lightTheme:()=>{const{updateSettingState:l}=$();l("_appTheme",!1),l("appTheme","light"),at(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=$();s("_appTheme",!l),s("appTheme",l?"light":"dark"),at(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=X(),{updateSettingState:s}=$(),{system:i}=Sn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),at(l.value)}}},Re=(e,n)=>{const{getMenuTagOptions:t}=Oe();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function oo(){const{getMenuTagOptions:e,getMenuKey:n}=Oe(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Be(),s=()=>e.value.findIndex(p=>p.fullPath===n.value),i=p=>{const S=Re(p,"checkCloseRight");if(S){const{index:h}=S,_=e.value.length-1;return!(h>=_)}return!1},u=p=>{const S=Re(p,"checkCloseRight");if(S){const{index:h}=S,_=e.value.length-1;return h===0?!1:h>0&&_>0}return!1};return{close:p=>{const S=Re(p,"close");if(e.value.length!==1&&S){const{index:h,option:_}=S;if(o(h),_.fullPath===n.value){let m=u(h)?h-1:i(h)?h:h-1;m<0&&(m=0);const y=e.value[m];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:p}=Xe(),{router:{getRoutes:S}}=Nt(),h=S().find(_=>_.path===p.value);if(h){const _=Ne(h,Et),m=l(_);t(m.path,l({...m,fullPath:m.path}))}},closeRight:p=>{const S=Re(p,"closeRight");if(S){const{option:h,index:_}=S,m=e.value.length-_,y=s();o(_+1,m),_<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:p=>{const S=Re(p,"closeLeft");if(S){const{option:h,index:_}=S,m=s();o(0,_),m<=_&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:p=>{const S=Re(p,"closeOther");if(S){const{option:h}=S;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function Ni(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=Nt(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Oe();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const g=c.value[n],d=v=>{if(v.children&&v.children.length>0){const{children:[f]}=v;d(f);return}u(v.fullPath)};d(g)}else if(typeof n=="string"){const c=o().find(g=>g.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Xe(){const{getAppRootRoute:e}=X(),{updateSettingState:n}=$(),t=e,o=T(()=>e.value.path),a=T(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Vs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Wn(e)},pn=(e,n,t)=>{const o=Gn(e,n);o&&Vs(o,t)},Rt=(e,n,t)=>{const{getMenuOptions:o}=Oe();if(typeof e=="string")pn(o.value,e,t);else if(fe(e,"Object")){const{fullPath:a}=e;pn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ui(){return{hidden:o=>{Rt(o,"hidden",{show:!1})},show:(o,a)=>{Rt(o,"show",{...a,show:!0})},update:(o,a)=>{Rt(o,"update",a)}}}const $i=()=>{const e=Dn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},ao=()=>Ke(K.localeLanguage,"localStorage",{defaultValue:Xa});export{Is as $,yi as A,En as B,St as C,Za as D,mi as E,Ei as F,Ha as G,Di as H,Pi as I,_i as J,Ci as K,Dn as L,gi as M,Ti as N,Oi as O,ki as P,Fs as Q,$n as R,es as S,wi as T,Rr as U,yr as V,Vr as W,Mi as X,Ri as Y,xi as Z,E as _,Fi as a,as as a0,Ii as a1,bi as a2,Pr as a3,Nn as a4,no as a5,Ni as a6,Bs as a7,Vi as a8,Ui as a9,Bi as b,$i as c,vi as d,X as e,K as f,fi as g,Se as h,Dr as i,$ as j,sn as k,eo as l,to as m,Ai as n,ht as o,Jn as p,hi as q,xs as r,Qa as s,zi as t,ji as u,Si as v,Li as w,Xe as x,Ge as y,x as z};