import{d as o,u as n,a as d,o as i,c as u}from"./index-CHTXMeh8.js";const y=o({name:"Redirect",__name:"Redirect",setup(m){const{currentRoute:p,replace:s}=n(),{params:e,query:a}=d(p),{path:r,_redirect_type:c="path"}=e;Reflect.deleteProperty(e,"_redirect_type"),Reflect.deleteProperty(e,"path");const t=Array.isArray(r)?r.join("/"):r;return s(c==="name"?{name:t,query:a,params:e}:{path:t.startsWith("/")?t:"/"+t,query:a}),(l,_)=>(i(),u("div"))}});export{y as default};