import{u as l}from"./tabsView-BXskTdVh.js";import{d2 as f,ac as c,aj as h}from"./index-9PRMimni.js";import{f as o}from"./findIndex-BgUIH3i1.js";import{f as m}from"./filter-D9g65sdN.js";async function y(){const s=l(),{currentRoute:a}=f;if(await c(),Object.keys(a.value.query).length===0)return;const t=h(s.getTabList),r=o(t,{fullPath:a.value.fullPath});if(r===-1)return;const e=t[r];e.fullPath=e.fullPath.split("?")[0],e.query={},t[r]=e;const i=m(t,(n,u)=>o(t,{fullPath:n.fullPath})===u);s.initTabs(i),window.history.replaceState({...window.history.state},document.title,a.value.path)}export{y as u};
