1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/lottie-XoOWpIBg.js","assets/components-tbqp4LHE.js"])))=>i.map(i=>d[i]); 2import{_ as W}from"./preload-helper-BXl3LOEh.js";import{r as n,j as k,a as D}from"./components-tbqp4LHE.js";const B=n.forwardRef(function({src:o,fallbackSrc:u,fallbackAlt:f="",fallbackFit:P="cover",autoplay:m=!0,loop:v=!0,speed:s=1,progress:a,background:w="transparent",width:d="100%",height:p="100%",onLoad:y,onLoopComplete:R,onComplete:g,className:S,style:F},j){const i=n.useRef(null),e=n.useRef(null),[b,_]=n.useState(!1),h=n.useRef(s);h.current=s;const c=n.useRef(a);c.current=a;const E=n.useRef(y);E.current=y;const A=n.useRef(R);A.current=R;const T=n.useRef(g);T.current=g,n.useImperativeHandle(j,()=>({play(){e.current?.play()},pause(){e.current?.pause()},stop(){e.current?.stop()},goToAndPlay(r,t=!0){e.current?.goToAndPlay(r,t)},goToAndStop(r,t=!0){e.current?.goToAndStop(r,t)},setDirection(r){e.current?.setDirection(r)},setSpeed(r){e.current?.setSpeed(r)},getTotalFrames(){return e.current?.totalFrames??0},getDuration(r=!1){return e.current?.getDuration(r)??0},getAnimation(){return e.current}}),[]),n.useEffect(()=>{if(!i.current)return;let r=!1,t=null;async function I(){const O=(await W(async()=>{const{default:C}=await import("./lottie-XoOWpIBg.js").then(V=>V.l);return{default:C}},__vite__mapDeps([0,1]))).default;if(r||!i.current)return;const $={container:i.current,renderer:"svg",loop:v,autoplay:c.current!==void 0?!1:m,...typeof o=="string"?{path:o}:{animationData:o}};t=O.loadAnimation($),e.current=t,t.setSpeed(h.current),t.addEventListener("DOMLoaded",()=>{_(!0),c.current!==void 0&&L(t,c.current),E.current?.(t)}),t.addEventListener("loopComplete",()=>A.current?.()),t.addEventListener("complete",()=>T.current?.())}return I(),()=>{r=!0,t?.destroy(),e.current=null,_(!1)}},[o,v,m]),n.useEffect(()=>{e.current?.setSpeed(s)},[s]),n.useEffect(()=>{a===void 0||!e.current||L(e.current,a)},[a]);const M=typeof d=="number"?`${d}px`:d,H=typeof p=="number"?`${p}px`:p,x=u&&!b;return k("div",{className:S,style:{position:"relative",width:M,height:H,background:w,overflow:"hidden",...F},children:[u&&D("img",{src:u,alt:f,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:P,opacity:x?1:0,transition:x?"none":"opacity 0.3s ease",pointerEvents:"none"}}),D("div",{ref:i,style:{width:"100%",height:"100%"}})]})});function L(l,o){const f=Math.min(1,Math.max(0,o))*(l.totalFrames-1);l.goToAndStop(f,!0)}export{B as LottiePlayer};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.