const h="modulepreload",p=function(c){return"/"+c},a={},E=function(u,s,v){let l=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),e=n?.nonce||n?.getAttribute("nonce");l=Promise.allSettled(s.map(t=>{if(t=p(t),t in a)return;a[t]=!0;const o=t.endsWith(".css"),d=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${d}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":h,o||(r.as="script"),r.crossOrigin="",r.href=t,e&&r.setAttribute("nonce",e),document.head.appendChild(r),o)return new Promise((f,m)=>{r.addEventListener("load",f),r.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}function i(n){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=n,window.dispatchEvent(e),!e.defaultPrevented)throw n}return l.then(n=>{for(const e of n||[])e.status==="rejected"&&i(e.reason);return u().catch(i)})},y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{E as _,y as a};
