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