import{aO as v,k as w,A as y,z as k,F as P,aZ as g,aI as O}from"./CiQWViEs.js";const R="modulepreload",b=function(n,i){return new URL(n,i).href},p={},j=function(i,a,E){let u=Promise.resolve();if(a&&a.length>0){let s=function(t){return Promise.all(t.map(c=>Promise.resolve(c).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const e=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),h=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));u=s(a.map(t=>{if(t=b(t,E),t in p)return;p[t]=!0;const c=t.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!E)for(let f=e.length-1;f>=0;f--){const m=e[f];if(m.href===t&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=c?"stylesheet":R,c||(o.as="script"),o.crossOrigin="",o.href=t,h&&o.setAttribute("nonce",h),document.head.appendChild(o),c)return new Promise((f,m)=>{o.addEventListener("load",f),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}function d(s){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=s,window.dispatchEvent(e),!e.defaultPrevented)throw s}return u.then(s=>{for(const e of s||[])e.status==="rejected"&&d(e.reason);return i().catch(d)})};function S(n,i){return n===i||(n==null?void 0:n[O])===i}function A(n={},i,a,E){var u=v.r,d=P;return w(()=>{var s,e;return y(()=>{s=e,e=[],k(()=>{S(a(...e),n)||(i(n,...e),s&&S(a(...s),n)&&i(null,...s))})}),()=>{let r=d;for(;r!==u&&r.parent!==null&&r.parent.f&g;)r=r.parent;const h=()=>{e&&S(a(...e),n)&&i(null,...e)},t=r.teardown;r.teardown=()=>{h(),t==null||t()}}}),n}const B=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{j as _,B as a,A as b};
