import{aE as e,n as t,ay as n}from"./index-CY26MUkV.js";const p=new Map,s=new Map;function a(e,n={}){const a=Date.now().toString();return p.set(a,n),new Promise(n=>{s.set(a,n),t({url:`${e}?popupKey=${a}`})})}function o(){const t=e(),n=t[t.length-1].$page.fullPath.split("popupKey=")[1];return p.get(n)??{}}function u(t){const a=e(),o=a[a.length-1].$page.fullPath.split("popupKey=")[1],u=s.get(o);u&&u(t),p.delete(o),s.delete(o),n()}const i=(e={})=>new Promise(async(t,n)=>t(await a("/pages/popup/index",e)));export{i as o,a as p,u as r,o as u};
