1import{a as e}from"./chunk-BEqpzyXh.js";import{n as t}from"./createLucideIcon-CEDU0v2w.js";import{t as n}from"./jsx-runtime-DOlcsXOY.js";import{a as r,l as i,o as a,s as o,t as s}from"./proxy-CQpRYXm2.js";var c=e(t(),1);function l(){!a.current&&r();let[e]=(0,c.useState)(o.current);return e}var u={some:0,all:1};function d(e,t,{root:n,margin:r,amount:a=`some`}={}){let o=i(e),s=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=s.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?s.set(e.target,n):c.unobserve(e.target)}else typeof n==`function`&&(n(e),s.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof a==`number`?a:u[a]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}function f(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,c.useState)(a);return(0,c.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return d(e.current,a,c)},[t,e,n,i,r]),o}var p=n(),m={"fade-up":{hidden:{opacity:0,y:24},visible:{opacity:1,y:0}},"fade-in":{hidden:{opacity:0},visible:{opacity:1}},"scale-in":{hidden:{opacity:0,scale:.95},visible:{opacity:1,scale:1}},"slide-left":{hidden:{opacity:0,x:-24},visible:{opacity:1,x:0}},"slide-right":{hidden:{opacity:0,x:24},visible:{opacity:1,x:0}}},h=new Map;function g(e){let t=h.get(e);if(t)return t;let n=s.create(e);return h.set(e,n),n}function _({children:e,className:t,animation:n=`fade-up`,delay:r=0,duration:i=.6,as:a=`div`}){let o=g(a),s=(0,c.useRef)(null),u=l(),d=f(s,{once:!0,amount:`s
1ome`}),[h,_]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(d||h)return;let e=s.current;if(!e)return;let t=()=>{e.style.removeProperty(`opacity`),e.style.removeProperty(`transform`),_(!0)},n=()=>{let n=window.innerHeight||document.documentElement.clientHeight;if(!n){t();return}let r=e.getBoundingClientRect();r.top<n&&r.bottom>0&&t()},r=setTimeout(n,600);return document.addEventListener(`visibilitychange`,n),()=>{clearTimeout(r),document.removeEventListener(`visibilitychange`,n)}},[d,h]),u||h?(0,c.createElement)(a,{ref:s,className:t},e):(0,p.jsx)(o,{ref:s,className:t,variants:m[n],initial:`hidden`,animate:d?`visible`:`hidden`,transition:{duration:i,delay:r,ease:`easeOut`},children:e})}export{l as n,_ as t};
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.