UNPKG

1.19 kBJavaScriptView Raw
1import{C as s,p as t,w as a,a as r,d as o,N as e}from"./p-cd29bb70.js";const n=()=>s&&s.supports&&s.supports("color","var(--c)")?r():__sc_import_bulmil("./p-a32ddb35.js").then(()=>(t.s=a.__cssshim)?(!1).i():0),c=()=>{t.s=a.__cssshim;const s=Array.from(o.querySelectorAll("script")).find(s=>RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(s.src)||s.getAttribute("data-stencil-namespace")===e),n=s["data-opts"]||{};return"onbeforeload"in s&&!history.scrollRestoration?{then(){}}:(n.resourcesUrl=new URL(".",new URL(s.getAttribute("data-resources-url")||s.src,a.location.href)).href,p(n.resourcesUrl,s),a.customElements?r(n):__sc_import_bulmil("./p-bea43937.js").then(()=>n))},p=(s,t)=>{const r="__sc_import_"+e.replace(/\s|-/g,"_");try{a[r]=Function("w","return import(w);//"+Math.random())}catch(n){const e=new Map;a[r]=n=>{const c=new URL(n,s).href;let p=e.get(c);if(!p){const s=o.createElement("script");s.type="module",s.crossOrigin=t.crossOrigin,s.src=URL.createObjectURL(new Blob([`import * as m from '${c}'; window.${r}.m = m;`],{type:"application/javascript"})),p=new Promise(t=>{s.onload=()=>{t(a[r].m),s.remove()}}),e.set(c,p),o.head.appendChild(s)}return p}}};export{n as a,c as p}
\No newline at end of file