import{r as e,j as t}from"./vendor-react-AXa6hZO5.js";import{f as r}from"./c6eedc03a-C8LSdtro.js";function n(n,o){const s=e.lazy(o);return function(e){return r(e=>Boolean(e.gatedImports[n]))?t.jsx(s,{...e}):null}}const o={default:()=>null};const s=Object.assign(function(e,t){return n(t,()=>Promise.reject(new Error(`gatedImport("${t}"): untransformed call in production bundle`)))},{__built:function(e){return n(e,async()=>{const t=r.getState().gatedImports[e];if(!t)return o;const n=(e,r)=>new URL(`${t.secret}-${e}.${r}`,import.meta.url).href;for(const r of t.css){const t=n(r,"css");document.querySelector(`link[href="${t}"]`)||await new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.onload=()=>r(),n.onerror=()=>{console.warn(`gatedImport: css load failed for "${e}"`),r()},document.head.appendChild(n)})}return import(n(t.hash,"js")).catch(()=>(console.warn(`gatedImport: chunk load failed for "${e}"`),o))})}});export{s as g};
