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