var gsloaded3d=!1;const onGS3DInteraction=async()=>{if(gsloaded3d)return;let e=`${gssplineRuntime.url}/libs/splinetool/runtime.js`,{Application:t}=await import(e);gsloaded3d=!0;let a=document.getElementsByClassName("gs-3dapi-wrapper");if(a.length>0)for(let n=0;n<a.length;n++){let r=a[n],o=new t(r.children[0]),d=r.getAttribute("data-variables"),s={};d&&(d=JSON.parse(d)).length>0&&d.map((e,t)=>{s[e.name]=e.value}),o.load(r.getAttribute("url"),s).then(()=>{let e=r.getAttribute("id"),t=`${e.replace(/-/g,"").replace(/_/g,"").replace(/gspb/g,"gs").replace(/gsbp/g,"").replace("3dapi","3d")}`;window[t]=o,r.classList.add("loaded"),setTimeout(()=>{r.querySelector("img")&&r.querySelector("img").remove()},1e3);let a=r.getAttribute("data-zoom");a&&(o.setZoom(parseFloat(a)),setTimeout(()=>{r.classList.remove("gs3dpreload")},50));r.getAttribute("data-modelanimations")&&"undefined"!=typeof GSmodelinit&&gsap.matchMedia().add({isDesktop:"(min-width: 768px)",isMobile:"(max-width: 767px)"},e=>{GSmodelinit(o,r,!1,!1,"","",e)})})}};document.body.addEventListener("mouseover",onGS3DInteraction,{once:!0}),document.body.addEventListener("touchmove",onGS3DInteraction,{once:!0}),window.addEventListener("scroll",onGS3DInteraction,{once:!0}),document.body.addEventListener("keydown",onGS3DInteraction,{once:!0});let gs3dapi_wrappers=document.getElementsByClassName("gs-3dapi-wrapper");if(gs3dapi_wrappers)for(let i=0;i<gs3dapi_wrappers.length;i++)gs3dapi_wrappers[i].classList.contains("immidiateloading")&&onGS3DInteraction();