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