PageSourceSearch

https://cybertribu.com/assets/_-_locale_-BfPCJ6UN.js

js cybertribu.com collected 2026-09-25 18:32:37 UTC 198,670 bytes, 1 lines download raw bytes

1import{a as e,i as t,n,r}from"./rolldown-runtime-CNC7AqOf.js";import{c as i,q as a}from"./useStore-D7byDaOF.js";import{c as o,g as s,i as c,l,r as u,s as d}from"./LocaleProvider-C1vVzZko.js";import{c as f,d as p,f as m,i as h,l as g,o as _,p as v,r as y,s as b,t as x,u as S,x as C}from"./SiteMenu-BWJtt0-i.js";import{t as ee}from"./check-DkrnKfxX.js";import{t as te}from"./instagram-CyvVTGHq.js";import{t as ne}from"./linkedin-C4toCIed.js";import{t as re}from"./rocket-Colugrev.js";import{A as ie,S as w}from"./index-C66EeBVv.js";import{t as ae}from"./BrandButton-D2JGfvbW.js";import{n as oe}from"./tribal-CSh7jb9w.js";import{a as se,i as ce,n as le,r as ue,t as de}from"./Silvia_Pallini.png.asset-DKQnNl3A.js";var fe=_(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),pe=_(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),me=_(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),he=_(`pen-tool`,[[`path`,{d:`M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z`,key:`nt11vn`}],[`path`,{d:`m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18`,key:`15qc1e`}],[`path`,{d:`m2.3 2.3 7.286 7.286`,key:`1wuzzi`}],[`circle`,{cx:`11`,cy:`11`,r:`2`,key:`xmgehs`}]]),ge=_(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),T=e(a(),1),E=(e,t)=>Math.max(0,Math.min(t-1,e));function _e(){if(typeof window>`u`)return null;let e=window.location.hash.match(/^#(\d)-(\d)$/);return e?{row:E(parseInt(e[1],10),4),col:E(parseInt(e[2],10),4)}:null}function ve(){let[e,t]=(0,T.useState)({row:0,col:0});(0,T.useEffect)(()=>{let e=_e();e&&t(e);let n=()=>{let e=_e();e&&t(e)};return window.addEventListener(`hashchange`,n),()=>window.removeEventListener(`hashchange`,n)},[]),(0,T.useEffect)(()=>{let t=`#${e.row}-${e.col}`;typeof window<`u`&&window.location.hash!==t&&window.history.replaceState(null,``,t)},[e]);let n=(0,T.useCallback)((e,n)=>{t({row:E(e,4),col:E(n,4)})},[]),r=(0,T.useCallback)((e,n)=>{t(t=>({row:E(t.row+e,4),col:E(t.col+n,4)}))},[]);return(0,T.useEffect)(()=>{let e=e=>{let t=e.target?.tagName;if(!(t===`INPUT`||t===`TEXTAREA`)&&!document.querySelector(`[data-site-menu-toggle][aria-expanded='true']`))switch(e.key){case`ArrowDown`:e.preventDefault(),r(1,0);break;case`ArrowUp`:e.preventDefault(),r(-1,0);break;case`ArrowRight`:e.preventDefault(),r(0,1);break;case`ArrowLeft`:e.preventDefault(),r(0,-1);break;case`PageDown`:case` `:e.preventDefault(),n(1);break;case`PageUp`:e.preventDefault(),n(-1);break}},n=e=>{t(t=>{let n=E(t.row*4+(t.row%2==0?t.col:3-t.col)+e,16),r=Math.floor(n/4);return{row:r,col:r%2==0?n%4:3-n%4}})};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r]),{pos:e,go:n,step:r}}var D=i();function ye({r:e,c:t}){let n=oe(e,t);return(0,D.jsxs)(`div`,{"aria-hidden":!0,"data-black-cell":!0,className:`relative h-[100svh] w-screen overflow-hidden bg-black`,style:{gridRow:e+1,gridColumn:t+1},children:[(0,D.jsx)(`div`,{className:`pointer-events-none absolute inset-0 opacity-[0.08]`,style:{background:`radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%), radial-gradient(circle at 70% 70%, rgba(255,255,255,0.08), transparent 60%)`}}),(0,D.jsx)(`img`,{src:n,alt:``,loading:`lazy`,className:`pointer-events-none absolute left-1/2 top-1/2 h-[70%] w-auto max-w-[70%] -translate-x-1/2 -translate-y-1/2 object-contain opacity-40`})]})}var be=(0,T.createContext)(null);function xe(e){let t=(0,T.useContext)(be);(0,T.useEffect)(()=>
1{if(t&&e)return t.current=e,()=>{t.current===e&&(t.current=null)}},[e,t])}var Se=7,Ce=7;function we({pos:e,onStep:t,children:n}){let r=(0,T.useRef)(null),i=(0,T.useRef)(null),a=(0,T.useRef)(null),o=new Map;T.Children.forEach(n,e=>{if(!(0,T.isValidElement)(e))return;let t=e.props;typeof t.row==`number`&&typeof t.col==`number`&&o.set(`${t.row}-${t.col}`,e)});let s=[];for(let e=0;e<Se;e++)for(let t=0;t<Ce;t++)if(e%2==0&&t%2==0){let n=`${e/2}-${t/2}`,r=o.get(n);r&&s.push((0,D.jsx)(`div`,{style:{gridRow:e+1,gridColumn:t+1},children:r},`r-${e}-${t}`))}else s.push((0,D.jsx)(ye,{r:e,c:t},`b-${e}-${t}`));let c=1.75;return(0,T.useLayoutEffect)(()=>{let t=i.current,n=r.current;if(!t||!n)return;let a=-(e.col*2)*(100/Ce),o=-(e.row*2)*(100/Se),s=w.timeline();return s.to(t,{xPercent:a,yPercent:o,duration:c,ease:`sine.inOut`}).fromTo(n,{scale:.94},{scale:1,duration:c,ease:`sine.out`},0),()=>{s.kill()}},[e]),(0,T.useEffect)(()=>{let e=!0,n=null,r=null,i=(n,r)=>{e&&(e=!1,!a.current?.(r,n)&&(n===`y`?t(r,0):t(0,r)))},o=()=>{n&&window.clearTimeout(n),n=window.setTimeout(()=>{e=!0},900)},s=()=>!!document.querySelector(`[data-site-menu-toggle][aria-expanded='true']`),c=()=>s()||p(),l=e=>{let t=e instanceof Element?e:null;for(;t;){if(t instanceof HTMLElement&&t.hasAttribute(`data-matrix-scroll`))return t;t=t.parentElement}return null},u=(e,t,n)=>(Math.abs(t)>Math.abs(n)*1.2?`x`:`y`)==`y`?n<0?e.scrollTop>0:n>0?e.scrollTop+e.clientHeight<e.scrollHeight-1:!1:t<0?e.scrollLeft>0:t>0?e.scrollLeft+e.clientWidth<e.scrollWidth-1:!1,d=e=>{if(c()||S(e.target))return;let t=l(e.target);if(t&&u(t,e.deltaX,e.deltaY))return;e.preventDefault();let n=Math.abs(e.deltaX)>Math.abs(e.deltaY)*1.2?`x`:`y`,r=n===`y`?e.deltaY:e.deltaX;Math.abs(r)>=8&&i(n,r>0?1:-1),o()},f=0,m=0,h=e=>{f=e.touches[0].clientX,m=e.touches[0].clientY,r=l(e.target)},g=e=>{if(c()||S(e.target))return;let t=e.changedTouches[0],n=t.clientX-f,a=t.clientY-m;if(!(Math.abs(n)<50&&Math.abs(a)<50)){if(r&&Math.abs(a)>=Math.abs(n)){r=null;return}r=null,Math.abs(n)>Math.abs(a)?i(`x`,n<0?1:-1):i(`y`,a<0?1:-1),o()}};return window.addEventListener(`wheel`,d,{passive:!1}),window.addEventListener(`touchstart`,h,{passive:!0}),window.addEventListener(`touchend`,g,{passive:!0}),()=>{n&&window.clearTimeout(n),window.removeEventListener(`wheel`,d),window.removeEventListener(`touchstart`,h),window.removeEventListener(`touchend`,g)}},[t]),(0,D.jsx)(be.Provider,{value:a,children:(0,D.jsx)(`div`,{className:`fixed inset-0 overflow-hidden bg-black`,children:(0,D.jsx)(`div`,{ref:r,className:`absolute inset-0 origin-center`,style:{willChange:`transform`},children:(0,D.jsx)(`div`,{ref:i,className:`absolute left-0 top-0 grid`,style:{width:`${Ce*100}vw`,height:`calc(${Se} * 100svh)`,gridTemplateColumns:`repeat(${Ce}, 100vw)`,gridTemplateRows:`repeat(${Se}, 100svh)`,willChange:`transform`},children:s})})})})}var Te=[`var(--brand-lime)`,`var(--brand-azure)`,`var(--brand-magenta)`],Ee={lime:`radial-gradient(120% 90% at 15% 0%, color-mix(in oklab, var(--brand-lime) 28%, transparent), transparent 60%), var(--background)`,azure:`radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--brand-azure) 24%, transparent), transparent 60%), var(--background)`,magenta:`radial-gradient(120% 90% at 50% 100%, color-mix(in oklab, var(--brand-magenta) 22%, transparent), transparent 60%), var(--background)`,neutral:`var(--background)`};function O({index:e,row:t,col:n,current:r,tone:i=`neutral`,className:a,bare:o,fill:s,children:c}){let l=r.row===t&&r.col===n,u=(0,T.useRef)(null),d=Te[(t+n)%3];return(0,T.useLayoutEffect)(()=>{if(!l||!u.current)return;let e=w.context(()=>{let e=u.current.querySelectorAll(`[data-anim]`);e.length!==0&&w.fromTo(e,{y:30,opacity:0},{y:0,opacity:1,duration:.9,stagger:.08,ease:`power3.out`,delay:.35})},u);return()=>e.revert()},[l]),(0,D.jsxs)(`section`,{"aria-label":`Scena ${e+1} di 16`,className:h(`grain relative h-[100svh] w-screen overflow-hidden`,a),style:{background:Ee[i]},children:[!o&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-2 rounded-xl border md:inset-3 md:rounded-2xl`,style:{borderColor:`color-mix(in oklab, ${d} 40%, transparent)`}}
1),(0,D.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute right-4 top-4 z-20 h-px w-10 md:right-8 md:top-8 md:w-16`,style:{background:d,opacity:.6}})]}),(0,D.jsx)(`div`,{ref:u,className:h(`relative z-10 h-full w-full`,s?`flex w-full overflow-hidden px-4 py-10 *:mx-auto sm:py-12 md:px-12 md:py-14`:`overflow-hidden`),children:s?c:(0,D.jsx)(`div`,{"data-matrix-scroll":!0,className:`flex h-full w-full items-center justify-center overflow-y-auto overscroll-y-contain touch-pan-y px-4 py-14 [-webkit-overflow-scrolling:touch] md:px-16 md:py-20`,children:(0,D.jsx)(`div`,{className:`my-auto w-full max-w-full *:mx-auto`,children:c})})})]})}var De={version:1,asset_id:`29220650-4ff5-4311-95f4-7453a4669c53`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/sounds/drum.mp3`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/29220650-4ff5-4311-95f4-7453a4669c53/drum.mp3`,original_filename:`drum.mp3`,size:129567,content_type:`audio/mpeg`,created_at:`2026-07-13T16:21:07Z`,migrated_at:`2026-07-30T09:00:31.247Z`},Oe=5,ke=3e3;function Ae({size:e=22}){return(0,D.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,D.jsx)(`ellipse`,{cx:`12`,cy:`5.5`,rx:`6.5`,ry:`2`}),(0,D.jsx)(`path`,{d:`M5.5 5.5 L7 19`}),(0,D.jsx)(`path`,{d:`M18.5 5.5 L17 19`}),(0,D.jsx)(`path`,{d:`M7 19 Q12 21 17 19`}),(0,D.jsx)(`path`,{d:`M6 9 L8 11 L10 9 L12 11 L14 9 L16 11 L18 9`}),(0,D.jsx)(`path`,{d:`M10.5 15 L12 16.5 L13.5 15`})]})}function je({className:e,size:t=22}){let n=(0,T.useRef)(null),r=(0,T.useRef)(null),i=(0,T.useRef)(0),a=(0,T.useRef)(null),o=C(),{locale:s}=u();return(0,T.useEffect)(()=>{let e=new Audio(De.url);return e.preload=`none`,e.volume=.85,r.current=e,()=>{r.current=null}},[]),(0,D.jsxs)(`button`,{ref:n,type:`button`,"aria-label":`5copri la nostra tribù`,title:`5copri la nostra tribù`,onClick:()=>{let e=r.current;if(e)try{let t=e.cloneNode(!0);t.volume=.85,t.play().catch(()=>{})}catch{}let t=n.current,c=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;if(t&&(c?w.fromTo(t,{opacity:.7},{opacity:1,duration:.25,ease:`power2.out`}):(w.killTweensOf(t),w.timeline().to(t,{scale:1.35,rotate:-10,duration:.09,ease:`power3.out`}).to(t,{scale:1,rotate:10,duration:.14,ease:`power2.inOut`}).to(t,{rotate:0,duration:.12,ease:`power2.out`}))),i.current+=1,a.current&&window.clearTimeout(a.current),i.current>=Oe){i.current=0,o({href:l(`/tribale`,s)});return}a.current=window.setTimeout(()=>{i.current=0},ke)},className:h(`group relative flex flex-col items-center justify-center rounded-full`,e),style:{transformOrigin:`50% 50%`},children:[(0,D.jsx)(`span`,{className:`sr-only`,children:`5copri la nostra tribù`}),(0,D.jsx)(`span`,{className:`flex items-center justify-center rounded-full bg-black p-1.5 text-white shadow-md ring-1 ring-white/10 transition-colors group-hover:bg-neutral-900`,children:(0,D.jsx)(Ae,{size:t})}),(0,D.jsx)(`span`,{className:`pointer-events-none absolute bottom-full mb-1.5 whitespace-nowrap rounded-md bg-black px-2 py-0.5 text-[10px] font-medium text-white opacity-0 shadow-md ring-1 ring-white/10 transition-opacity group-hover:opacity-100`,children:`5copri la nostra tribù`})]})}function Me({pos:e,onJump:t}){return(0,D.jsxs)(`div`,{className:`fixed bottom-3 right-3 z-50 rounded-xl border border-black/10 bg-white/80 p-2 shadow-lg backdrop-blur-xl md:bottom-6 md:right-6 md:rounded-2xl md:p-3`,children:[(0,D.jsx)(`div`,{className:`grid gap-1 md:gap-1.5`,style:{gridTemplateColumns:`repeat(4, 1fr)`},children:Array.from({length:16}).map((n,r)=>{let i=Math.floor(r/4),a=r%4,o=e.row===i&&e.col===a;return(0,D.jsx)(`button`,{type:`button`,"aria-label":`Vai a ${i+1}, ${a+1}`,onClick:()=>t(i,a),className:h(`h-2.5 w-2.5 rounded-[3px] border transition-all duration-300 md:h-3 md:w-3`,o?`scale-125 border-transparent bg-lime shadow-[0_0_12px_var(--brand-lime)]`:`border-black/20 bg-black/[0.04] hover:bg-black/10`)},r)})}),(0,D.jsxs)(`div`,{className:`mt-1.5 flex items-center justify-between gap-2 md:mt-2`,children:[(0,D.jsxs)(`span`,{className:`font-display text-[9px] font-bold tracking-[0.2em] text-muted-foreground md:text-[10px]`,children:[String(e.row*4+e.col+1).padStart(2,`0`),`/16`]}),(0,D.jsx)(je,{className:`-mr-0.5 h-5 w-5`,size:12})]})]})}function Ne({words:e,colors:t=[`var(--brand-lime)`,`var(--brand-azure)`,`var(--brand-magenta)`],typeSpeed:n=90,deleteSpeed:r=45,pause:i=1500}){let[a,o]=(0,T.useState)(0),[s,c]=(0,T.useState)(``),[l,u]=(0,T.useState)(!1);(0,T.useEffect)(()=>{let t=e[a%e.length];if(!l&&s===t){let e=setTimeout(()=>u(!0),i);return()=>clearTimeout(e)}if(l&&s===``){u(!1),o(t=>(t+1)%e.length);return}let d=setTimeout(()=>{c(e=>l?t.substring(0,e.length-1):t.substring(0,e.length+1))},l?r:n);return()=>clearTimeout(d)},[s,l,a,e,n,r,i]);let d=t[a%t.length];return(0,D.jsxs)(`span`,{style:{color:d},className:`relative`,children:[s,(0,D.jsx)(`span`,{"aria-hidden":!0,
1className:`ml-1 inline-block h-[0.9em] w-[3px] -translate-y-[2px] animate-pulse`,style:{background:d}})]})}var Pe=(0,T.createContext)({});function Fe(e){let t=(0,T.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Ie=typeof window<`u`?T.useLayoutEffect:T.useEffect,Le=(0,T.createContext)(null);function Re(e,t){e.indexOf(t)===-1&&e.push(t)}function ze(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var k=(e,t,n)=>n>t?t:n<e?e:n,A={},Be=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ve=e=>typeof e==`object`&&!!e,He=e=>/^0[^.\s]+$/u.test(e);function Ue(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e,We=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ge=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ke=class{constructor(){this.subscriptions=[]}add(e){return Re(this.subscriptions,e),()=>ze(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},M=e=>e*1e3,N=e=>e/1e3,qe=(e,t)=>t?1e3/t*e:0,Je=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ye=1e-7,Xe=12;function Ze(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Je(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ye&&++s<Xe);return o}function Qe(e,t,n,r){if(e===t&&n===r)return j;let i=t=>Ze(t,0,1,e,n);return e=>e===0||e===1?e:Je(i(e),t,r)}var $e=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,et=e=>t=>1-e(1-t),tt=Qe(.33,1.53,.69,.99),nt=et(tt),rt=$e(nt),it=e=>e>=1?1:(e*=2)<1?.5*nt(e):.5*(2-2**(-10*(e-1))),at=e=>1-Math.sin(Math.acos(e)),ot=et(at),st=$e(at),ct=Qe(.42,0,1,1),lt=Qe(0,0,.58,1),ut=Qe(.42,0,.58,1),dt=e=>Array.isArray(e)&&typeof e[0]!=`number`,ft=e=>Array.isArray(e)&&typeof e[0]==`number`,pt={linear:j,easeIn:ct,easeInOut:ut,easeOut:lt,circIn:at,circInOut:st,circOut:ot,backIn:nt,backInOut:rt,backOut:tt,anticipate:it},mt=e=>typeof e==`string`,ht=e=>{if(ft(e)){e.length;let[t,n,r,i]=e;return Qe(t,n,r,i)}else if(mt(e))return pt[e],`${e}`,pt[e];return e},gt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function _t(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var vt=40;function yt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=gt.reduce((e,t)=>(e[t]=_t(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=A.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,vt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:gt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<gt.length;t++)o[gt[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:F,state:I,steps:bt}=yt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0),xt;function St(){xt=void 0}var L={now:()=>(xt===void 0&&L.set(I.isProcessing||A.useManualTiming?I.timestamp:performance.now()),xt),set:e=>{xt=e,queueMicrotask(St)}},Ct=e=>t=>typeof t==`string`&&t.startsWith(e),wt=Ct(`--`),Tt=Ct(`var(--`),Et=e=>Tt(e)?Dt.test(e.split(`/*`)[0].trim()):!1,Dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ot(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var kt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},At={...kt,transform:e=>k(0,1,e)},jt={...kt,default:1},Mt=e=>Math.round(e*1e5)/1e5,Nt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pt(e){return e==null}var Ft=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,It=(e,t)=>
1n=>!!(typeof n==`string`&&Ft.test(n)&&n.startsWith(e)||t&&!Pt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Lt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Nt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Rt=e=>k(0,255,e),zt={...kt,transform:e=>Math.round(Rt(e))},Bt={test:It(`rgb`,`red`),parse:Lt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+zt.transform(e)+`, `+zt.transform(t)+`, `+zt.transform(n)+`, `+Mt(At.transform(r))+`)`};function Vt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ht={test:It(`#`),parse:Vt,transform:Bt.transform},Ut=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),R=Ut(`deg`),z=Ut(`%`),B=Ut(`px`),Wt=Ut(`vh`),Gt=Ut(`vw`),Kt={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(e*100)},qt={test:It(`hsl`,`hue`),parse:Lt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+z.transform(Mt(t))+`, `+z.transform(Mt(n))+`, `+Mt(At.transform(r))+`)`},V={test:e=>Bt.test(e)||Ht.test(e)||qt.test(e),parse:e=>Bt.test(e)?Bt.parse(e):qt.test(e)?qt.parse(e):Ht.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Bt.transform(e):qt.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},Jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yt(e){return isNaN(e)&&typeof e==`string`&&(e.match(Nt)?.length||0)+(e.match(Jt)?.length||0)>0}var Xt=`number`,Zt=`color`,Qt=`var`,$t=`var(`,en="${}",tn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function nn(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(tn,e=>(V.test(e)?(r.color.push(a),i.push(Zt),n.push(V.parse(e))):e.startsWith($t)?(r.var.push(a),i.push(Qt),n.push(e)):(r.number.push(a),i.push(Xt),n.push(parseFloat(e))),++a,en)).split(en),indexes:r,types:i}}function rn(e){return nn(e).values}function an({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Xt?i+=Mt(r[a]):e===Zt?i+=V.transform(r[a]):i+=r[a]}return i}}function on(e){return an(nn(e))}var sn=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,cn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:sn(e);function ln(e){let t=nn(e);return an(t)(t.values.map((e,n)=>cn(e,t.split[n])))}var H={test:Yt,parse:rn,createTransformer:on,getAnimatableNone:ln};function un(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=un(s,r,e+1/3),a=un(s,r,e),o=un(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function fn(e,t){return n=>n>0?t:e}var U=(e,t,n)=>e+(t-e)*n,pn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},mn=[Ht,Bt,qt],hn=e=>mn.find(t=>t.test(e));function gn(e){let t=hn(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===qt&&(n=dn(n)),n}var _n=(e,t)=>{let n=gn(e),r=gn(t);if(!n||!r)return fn(e,t);let i={...n};return e=>(i.red=pn(n.red,r.red,e),i.green=pn(n.green,r.green,e),i.blue=pn(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),Bt.transform(i))},vn=new Set([`none`,`hidden`]);function yn(e,t){return vn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bn(e,t){return n=>U(e,t,n)}function xn(e){return typeof e==`number`?bn:typeof e==`string`?Et(e)?fn:V.test(e)?_n:Tn:Array.isArray(e)?Sn:typeof e==`object`?V.test(e)?_n:Cn:fn}function Sn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>xn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Cn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=xn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function wn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Tn=(e,t)=>{let n=H.createTransformer(t),r=nn(e),i=nn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?vn.has(e)&&!i.values.length||vn.has(t)&&!r.values.length?yn(e,t):We(Sn(wn(r,i),i.values),n):(`${e}${t}`,fn(e,t))};function En(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
1number`?U(e,t,n):xn(e)(e,t)}var Dn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>F(t),now:()=>I.isProcessing?I.timestamp:L.now()}},On=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},kn=2e4;function An(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function jn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(An(r),kn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:N(i)}}var W={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Mn(e,t){return e*Math.sqrt(1-t*t)}var Nn=12;function Pn(e,t,n){let r=n;for(let n=1;n<Nn;n++)r-=e(r)/t(r);return r}var Fn=.001;function In({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;W.maxDuration;let o=1-t;o=k(W.minDamping,W.maxDamping,o),e=k(W.minDuration,W.maxDuration,N(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Mn(t,o),c=Math.exp(-i);return Fn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Mn(t**2,o);return(-i(t)+Fn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Pn(i,a,s);if(e=M(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ln=[`duration`,`bounce`],Rn=[`stiffness`,`damping`,`mass`];function zn(e,t){return t.some(t=>e[t]!==void 0)}function Bn(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!zn(e,Rn)&&zn(e,Ln))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*k(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=In({...e,velocity:0});t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}return t}function Vn(e=W.visualDuration,t=W.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Bn({...n,velocity:-N(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=N(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W.restSpeed.granular:W.restSpeed.default,i||=v?W.restDelta.granular:W.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=Mn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>M(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=M(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=M(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(An(te),kn),t=On(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}Vn.applyToOptions=e=>{let t=jn(e,100,Vn);return e.ease=t.ease,e.duration=M(t.duration),e.type=`keyframes`,e};var Hn=5;function Un(e,t,n){let r=Math.max(t-Hn,0);return qe(n-e(r),t-r)}function Wn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Vn({keyframes:[f.value,m(f.value)],velocity:Un(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Gn(e,t,n){let r=[],i=n||A.mix||En,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=We(Array.isArray(t)?t[n]||j:t,a)),r.push(a)}return r}function Kn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Gn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ge(e[r],e[r+1],n);return s[r](i)};return n?t=>l(k(e[0],e[a-1],t)):l}function qn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ge(0,t,r);e.push(U(n,1,i))}}function Jn(e){let t=[0];return qn(t,e.length-1),t}function Yn(e,t){return e.map(e=>e*t)}function Xn(e,t){return e.map(()=>t||ut).splice(0,e.length-1)}function Zn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=dt(r)?r.map(ht):ht(r),a={done:!1,value:t[0]},o=Kn(Yn(n&&n.length===t.length?n:Jn(t),e),t,{ease:Array.isArray(i)?i:Xn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Qn=e=>e!==null;function $n(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Qn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var er={decay:Wn,inertia:Wn,tween:Zn,keyframes:Zn,spring:Vn};function tr(e){typeof e.type==`string`&&(e.type=er[e.type])}var nr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},rr=e=>e/100,ir=class extends nr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;tr(e);let{type:t=Zn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Zn;s!==Zn&&typeof o[0]!=`number`&&(this.mixKeyframes=We(rr,En(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=An(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=k(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Wn&&(b.value=$n(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return N(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(this.currentTime)}set time(e){e=M(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Un(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ar(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var or=e=>e*180/Math.PI,sr=e=>lr(or(Math.atan2(e[1],e[0]))),cr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sr,rotateZ:sr,skewX:e=>or(Math.atan(e[1])),skewY:e=>or(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lr=e=>(e%=360,e<0&&(e+=360),e),ur=sr,dr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dr,scaleY:fr,scale:e=>(dr(e)+fr(e))/2,rotateX:e=>lr(or(Math.atan2(e[6],e[5]))),rotateY:e=>lr(or(Math.atan2(-e[2],e[0]))),rotateZ:ur,rotate:ur,skewX:e=>or(Math.atan(e[4])),skewY:e=>or(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mr(e){return+!!e.includes(`scale`)}
1function hr(e,t){if(!e||e===`none`)return mr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=pr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=cr,i=t}if(!i)return mr(t);let a=r[t],o=i[1].split(`,`).map(_r);return typeof a==`function`?a(o):o[a]}var gr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return hr(n,t)};function _r(e){return parseFloat(e.trim())}var vr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],yr=new Set([...vr,`pathRotation`]),br=e=>e===kt||e===B,xr=new Set([`x`,`y`,`z`]),Sr=vr.filter(e=>!xr.has(e));function Cr(e){let t=[];return Sr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var G={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>hr(t,`x`),y:(e,{transform:t})=>hr(t,`y`)};G.translateX=G.x,G.translateY=G.y;var wr=new Set,Tr=!1,Er=!1,Dr=!1;function Or(){if(Er){let e=Array.from(wr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Cr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Er=!1,Tr=!1,wr.forEach(e=>e.complete(Dr)),wr.clear()}function kr(){wr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Er=!0)})}function Ar(){Dr=!0,kr(),Or(),Dr=!1}var jr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(wr.add(this),Tr||(Tr=!0,P.read(kr),P.resolveKeyframes(Or))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ar(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wr.delete(this)}cancel(){this.state===`scheduled`&&(wr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Mr=e=>e.startsWith(`--`);function Nr(e,t,n){Mr(t)?e.style.setProperty(t,n):e.style[t]=n}var Pr={};function Fr(e,t){let n=Ue(e);return()=>Pr[t]??n()}var Ir=Fr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Lr=Fr(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Rr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Rr([0,.65,.55,1]),circOut:Rr([.55,0,1,.45]),backIn:Rr([.31,.01,.66,-.59]),backOut:Rr([.33,1.53,.69,.99])};function Br(e,t){if(e)return typeof e==`function`?Lr()?On(e,t):`ease-out`:ft(e)?Rr(e):Array.isArray(e)?e.map(e=>Br(e,t)||zr.easeOut):zr[e]}function Vr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Br(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Hr(e){return typeof e==`function`&&`applyToOptions`in e}function Ur({type:e,...t}){return Hr(e)&&Lr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Wr=class extends nr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ur(e);this.animation=Vr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=$n(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Nr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return N(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=M(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ir()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),j):r(this)}},Gr={anticipate:it,backInOut:rt,circInOut:st};function Kr(e){return e in Gr}function qr(e){typeof e.ease==`string`&&Kr(e.ease)&&(e.ease=Gr[e.ease])}var Jr=10,Yr=class extends Wr{constructor(e){qr(e),tr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ir({...a,autoplay:!1}),s=Math.max(Jr,L.now()-this.startTime),c=k(0,Jr,s-Jr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Nr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Xr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function Zr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Qr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Xr(i,t),s=Xr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Zr(e)||(n===`spring`||Hr(n))&&r}function $r(e){e.duration=0,e.type=`keyframes`}var ei=new Set([`opacity`,`clipPath`,`filter`,`transform`]),ti=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ni(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ti.test(e[t]))return!0;return!1}var ri=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ii=Ue(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ai(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return ii()&&n&&(ei.has(n)||ri.has(n)&&ni(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var oi=40,si=class extends nr{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||jr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let u=!0;Qr(e,i,a,o)||(u=!1,(A.instantAnimations||!s)&&l?.($n(e,n,t)),e[0]=e[e.length-1],$r(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>oi?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&ai(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Yr({...d,element:p})}catch{m=new ir(d)}else m=new ir(d);m.finished.then(()=>{this.notifyFinished()}).catch(j),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ar()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ci(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var li=30,ui=e=>!isNaN(parseFloat(e)),di={current:void 0},fi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ui(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ke);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return di.current&&di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>li)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,li);return qe(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pi(e,t){return new fi(e,t)}function mi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function hi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:mi(n,e)}var gi={type:`spring`,stiffness:500,damping:25,restSpeed:10},_i=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vi={type:`keyframes`,duration:.8},yi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},bi=(e,{keyframes:t})=>t.length>2?vi:yr.has(e)?e.startsWith(`scale`)?_i(t[1]):gi:yi,xi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Si(e){for(let t in e)if(!xi.has(t))return!0;return!1}var Ci=(e,t,n,r={},i,a)=>o=>{let s=hi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=M(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Si(s)||Object.assign(u,bi(e,u)),u.duration&&=M(u.duration),u.repeatDelay&&=M(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($r(u),u.delay===0&&(d=!0)),(A.instantAnimations||A.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,$r(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=$n(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ir(u):new si(u)},wi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ti(e){let t=wi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ei(e,t,n=1){`${e}`;let[r,i]=Ti(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Be(e)?parseFloat(e):e}return Et(i)?Ei(i,t,n+1):i}function Di(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Oi(e,t,n,r){if(typeof t==`function`){let[i,a]=Di(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Di(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ki(e,t,n){let r=e.getProps();return Oi(r,t,n===void 0?r.custom:n,e)}var Ai=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...vr]),ji=e=>Array.isArray(e);function Mi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pi(n))}function Ni(e){return ji(e)?e[e.length-1]||0:e}function Pi(e,t){let{transitionEnd:n={},transition:r={},...i}=ki(e,t)||{};i={...i,...n};for(let t in i)Mi(e,t,Ni(i[t]))}var K=e=>!!(e&&e.getVelocity);function Fi(e){return!!(K(e)&&e.add)}function Ii(e,t){let n=e.getValue(`willChange`);if(Fi(n))return n.add(t);if(!n&&A.WillChange){let n=new A.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Li(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ri=`data-`+Li(`framerAppearId`);function zi(e){return e.props[Ri]}function Bi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?mi(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Bi(f,t))continue;let o={delay:n,...hi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zi(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,p=!0)}}Ii(e,t);let m=l??e.shouldReduceMotion;r.start(Ci(t,r,i,m&&Ai.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>P.update(()=>{o&&Pi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Hi(e,t,n={}){let r=ki(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Vi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ui(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Ui(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Hi(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ci(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Wi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Hi(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Hi(e,t,n);else{let i=typeof t==`function`?ki(e,t,n.custom):t;r=Promise.all(Vi(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Gi={test:e=>e===`auto`,parse:e=>e},Ki=e=>t=>t.test(e),qi=[kt,B,z,R,Gt,Wt,Gi],Ji=e=>qi.find(Ki(e));function Yi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||He(e)}var Xi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Zi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Nt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Xi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Qi=/\b([a-z-]*)\(.*?\)/gu,$i={...H,getAnimatableNone:e=>{let t=e.match(Qi);return t?t.map(Zi).join(` `):e}},ea={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ta={...kt,transform:Math.round},na={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,rotate:R,pathRotation:R,rotateX:R,rotateY:R,rotateZ:R,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,
1skew:R,skewX:R,skewY:R,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:At,originX:Kt,originY:Kt,originZ:B,zIndex:ta,fillOpacity:At,strokeOpacity:At,numOctaves:ta},ra={...na,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:$i,WebkitFilter:$i,mask:ea,WebkitMask:ea},ia=e=>ra[e],aa=new Set([$i,ea]);function oa(e,t){let n=ia(e);return aa.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var sa=new Set([`auto`,`none`,`0`]);function ca(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!sa.has(t)&&nn(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=oa(n,i)}var la=class extends jr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Et(r))){let i=Ei(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ai.has(n)||e.length!==2)return;let[r,i]=e,a=Ji(r),o=Ji(i);if(Ot(r)!==Ot(i)&&G[n]){this.needsMeasurement=!0;return}if(a!==o)if(br(a)&&br(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else G[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Yi(e[t]))&&n.push(t);n.length&&ca(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=G[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=G[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ua=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function da(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var fa=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function pa(e){return Ve(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:ma,cancel:ha}=yt(queueMicrotask,!1),q={x:!1,y:!1};function ga(){return q.x||q.y}function _a(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function va(e,t){let n=da(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ya(e){return!(e.pointerType===`touch`||ga())}function ba(e,t,n={}){let[r,i,a]=va(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ya(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var xa=(e,t)=>t?e===t?!0:xa(e,t.parentElement):!1,Sa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ca=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function wa(e){return Ca.has(e.tagName)||e.isContentEditable===!0}var Ta=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ea(e){return Ta.has(e.tagName)||e.isContentEditable===!0}var Da=new WeakSet;function Oa(e){return t=>{t.key===`Enter`&&e(t)}}function ka(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Aa=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Oa(()=>{if(Da.has(n))return;ka(n,`down`);let e=Oa(()=>{ka(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ka(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ja(e){return Sa(e)&&!ga()}var Ma=new WeakSet;function Na(e,t,n={}){let[r,i,a]=va(e,n),o=e=>{let r=e.currentTarget;if(!ja(e)||Ma.has(e))return;Da.add(r),n.stopPropagation&&Ma.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Da.has(r)&&Da.delete(r),ja(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||xa(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),pa(e)&&(e.addEventListener(`focus`,e=>Aa(e,i)),!wa(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Pa(e){return Ve(e)&&`ownerSVGElement`in e}var Fa=new WeakMap,Ia,La=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Pa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ra=La(`inline`,`width`,`offsetWidth`),za=La(`block`,`height`,`offsetHeight`);function Ba({target:e,borderBoxSize:t}){Fa.get(e)?.forEach(n=>{n(e,{get width(){return Ra(e,t)},get height(){return za(e,t)}})})}function Va(e){e.forEach(Ba)}function Ha(){typeof ResizeObserver>`u`||(Ia=new ResizeObserver(Va))}function Ua(e,t){Ia||Ha();let n=da(e);return n.forEach(e=>{let n=Fa.get(e);n||(n=new Set,Fa.set(e,n)),n.add(t),Ia?.observe(e)}),()=>{n.forEach(e=>{let n=Fa.get(e);n?.delete(t),n?.size||Ia?.unobserve(e)})}}var Wa=new Set,Ga;function Ka(){Ga=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Wa.forEach(t=>t(e))},window.addEventListener(`resize`,Ga)}function qa(e){return Wa.add(e),Ga||Ka(),()=>{Wa.delete(e),!Wa.size&&typeof Ga==`function`&&(window.removeEventListener(`resize`,Ga),Ga=void 0)}}function Ja(e,t){return typeof e==`function`?qa(e):Ua(e,t)}var Ya={value:null,addProjectionMetrics:null};function Xa(e){return Pa(e)&&e.tagName===`svg`}var Za=[...qi,V,H],Qa=e=>Za.find(Ki(e)),$a=()=>({translate:0,scale:1,origin:0,originPoint:0}),eo=()=>({x:$a(),y:$a()}),to=()=>({min:0,max:0}),J=()=>({x:to(),y:to()}),no=new WeakMap;function ro(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function io(e){return typeof e==`string`||Array.isArray(e)}var ao=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],oo=[`initial`,...ao];function so(e){return ro(e.animate)||oo.some(t=>io(e[t]))}function co(e){return!!(so(e)||e.variants)}function lo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,pi(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pi(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var uo={current:null},fo={current:!1},po=typeof window<`u`;function mo(){if(fo.current=!0,po)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>uo.current=e.matches;e.addEventListener(`change`,t),t()}else uo.current=!1}var ho=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],go={};function _o(e){go=e}function vo(){return go}var yo=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=jr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=so(t),this.isVariantNode=co(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&K(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,no.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(fo.current||mo(),this.shouldReduceMotion=uo.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ei.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Wr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:M(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=yr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in go){let t=go[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ho.length;t++){let n=ho[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=lo(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pi(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Be(n)||He(n))?n=parseFloat(n):!Qa(n)&&H.test(t)&&(n=oa(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Oi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ke),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ma.render(this.render)}},bo=class extends yo{constructor(){super(...arguments),this.KeyframeResolver=la}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Y=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function xo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function So({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Co(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wo(e){return e===void 0||e===1}function To({scale:e,scaleX:t,scaleY:n}){return!wo(e)||!wo(t)||!wo(n)}function Eo(e){return To(e)||Do(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Do(e){return Oo(e.x)||Oo(e.y)}function Oo(e){return e&&e!==`0%`}function ko(e,t,n){return n+t*(e-n)}function Ao(e,t,n,r,i){return i!==void 0&&(e=ko(e,i,r)),ko(e,n,r)+t}function jo(e,t=0,n=1,r,i){e.min=Ao(e.min,t,n,r,i),e.max=Ao(e.max,t,n,r,i)}function Mo(e,{x:t,y:n}){jo(e.x,t.translate,t.scale,t.originPoint),jo(e.y,n.translate,n.scale,n.originPoint)}var No=.999999999999,Po=1.0000000000001;function Fo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Mo(e,o)),r&&Eo(a.latestValues)&&Ro(e,a.latestValues,a.layout?.layoutBox))}t.x<Po&&t.x>No&&(t.x=1),t.y<Po&&t.y>No&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function Io(e,t,n,r,i=.5){jo(e,t,n,U(e.min,e.max,i),r)}function Lo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}
1function Ro(e,t,n){let r=n??e;Io(e.x,Lo(t.x,r.x),t.scaleX,t.scale,t.originX),Io(e.y,Lo(t.y,r.y),t.scaleY,t.scale,t.originY)}function zo(e,t){return xo(Co(e.getBoundingClientRect(),t))}function Bo(e,t,n){let r=zo(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var Vo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ho=vr.length;function Uo(e,t,n){let r=``,i=!0;for(let a=0;a<Ho;a++){let o=vr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=fa(s,na[o]);if(!c){i=!1;let t=Vo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${fa(a,na.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Wo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(yr.has(e)){o=!0;continue}else if(wt(e)){i[e]=n;continue}else{let t=fa(n,na[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Uo(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Go(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ko(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var qo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(B.test(e))e=parseFloat(e);else return e;return`${Ko(e,t.target.x)}% ${Ko(e,t.target.y)}%`}},Jo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Yo={borderRadius:{...qo,applyTo:[...ua]},borderTopLeftRadius:qo,borderTopRightRadius:qo,borderBottomLeftRadius:qo,borderBottomRightRadius:qo,boxShadow:Jo};function Xo(e,{layout:t,layoutId:n}){return yr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Yo[e]||e===`opacity`)}function Zo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||Xo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Qo(e){return window.getComputedStyle(e)}var $o=class extends bo{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Go}readValueFromInstance(e,t){if(yr.has(t))return this.projection?.isProjecting?mr(t):gr(e,t);{let n=Qo(e),r=(wt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return zo(e,t)}build(e,t,n){Wo(e,t,n.transformTemplate)}
1scrapeMotionValuesFromProps(e,t,n){return Zo(e,t,n)}},es={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ts={offset:`strokeDashoffset`,array:`strokeDasharray`};function ns(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?es:ts;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var rs=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function is(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Wo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of rs)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ns(d,i,a,o,!1)}var as=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),os=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ss(e,t,n,r){Go(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(as.has(n)?n:Li(n),t.attrs[n])}function cs(e,t,n){let r=Zo(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=vr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ls=class extends bo{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(yr.has(t)){let e=ia(t);return e&&e.default||0}return t=as.has(t)?t:Li(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return cs(e,t,n)}
1build(e,t,n){is(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ss(e,t,n,r)}mount(e){this.isSVGTag=os(e.tagName),super.mount(e)}},us=oo.length;function ds(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ds(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<us;n++){let r=oo[n],i=e.props[r];(io(i)||i===!1)&&(t[r]=i)}return t}function fs(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ps=[...ao].reverse(),ms=ao.length;function hs(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Wi(e,t,n)))}function gs(e){let t=hs(e),n=ys(),r=!0,i=!1,a=t=>(n,r)=>{let i=ki(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ds(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ms;t++){let p=ps[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=io(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||ro(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_s(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},ne=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=ji(t)&&ji(n)?!fs(t,n)||y:t!==n,r?t==null?u.add(e):ne(e):t!==void 0&&u.has(e)?ne(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let re=v&&y;b&&(!re||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!re&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ki(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ci(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ki(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ys(),i=!0}}}function _s(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fs(t,e):!1}function vs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ys(){return{animate:vs(!0),whileInView:vs(),whileHover:vs(),whileTap:vs(),whileDrag:vs(),whileFocus:vs(),exit:vs()}}function bs(e,t){e.min=t.min,e.max=t.max}function Z(e,t){bs(e.x,t.x),bs(e.y,t.y)}function xs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ss=.9999,Cs=1.0001,ws=-.01,Ts=.01;function Q(e){return e.max-e.min}function Es(e,t,n){return Math.abs(e-t)<=n}function Ds(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ss&&e.scale<=Cs||isNaN(e.scale))&&(e.scale=1),(e.translate>=ws&&e.translate<=Ts||isNaN(e.translate))&&(e.translate=0)}function Os(e,t,n,r){Ds(e.x,t.x,n.x,r?r.originX:void 0),Ds(e.y,t.y,n.y,r?r.originY:void 0)}function ks(e,t,n,r=0){e.min=(r?U(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function As(e,t,n,r){ks(e.x,t.x,n.x,r?.x),ks(e.y,t.y,n.y,r?.y)}function js(e,t,n,r=0){let i=r?U(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Ms(e,t,n,r){js(e.x,t.x,n.x,r?.x),js(e.y,t.y,n.y,r?.y)}function Ns(e,t,n,r,i){return e-=t,e=ko(e,1/n,r),i!==void 0&&(e=ko(e,1/i,r)),e}function Ps(e,t=0,n=1,r=.5,i,a=e,o=e){if(z.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=Ns(e.min,t,n,s,i),e.max=Ns(e.max,t,n,s,i)}function Fs(e,t,[n,r,i],a,o){Ps(e,t[n],t[r],t[i],t.scale,a,o)}var Is=[`x`,`scaleX`,`originX`],Ls=[`y`,`scaleY`,`originY`];function Rs(e,t,n,r){Fs(e.x,t,Is,n?n.x:void 0,r?r.x:void 0),Fs(e.y,t,Ls,n?n.y:void 0,r?r.y:void 0)}function zs(e){return e.translate===0&&e.scale===1}function Bs(e){return zs(e.x)&&zs(e.y)}function Vs(e,t){return e.min===t.min&&e.max===t.max}function Hs(e,t){return Vs(e.x,t.x)&&Vs(e.y,t.y)}function Us(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ws(e,t){return Us(e.x,t.x)&&Us(e.y,t.y)}function Gs(e){return Q(e.x)/Q(e.y)}function Ks(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}
1function qs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Js=ua.length,Ys=e=>typeof e==`string`?parseFloat(e):e,Xs=e=>typeof e==`number`||B.test(e);function Zs(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,$s(r)),e.opacityExit=U(t.opacity??1,0,ec(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<Js;i++){let a=ua[i],o=Qs(t,a),s=Qs(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Xs(o)===Xs(s)?(e[a]=Math.max(U(Ys(o),Ys(s),r),0),(z.test(s)||z.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function Qs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var $s=tc(0,.5,ot),ec=tc(.5,.95,j);function tc(e,t,n){return r=>r<e?0:r>t?1:n(Ge(e,t,r))}function nc(e,t,n){let r=K(e)?e:pi(e);return r.start(Ci(``,r,t,n)),r.animation}function rc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var ic=(e,t)=>e.depth-t.depth,ac=class{constructor(){this.children=[],this.isDirty=!1}add(e){Re(this.children,e),this.isDirty=!0}remove(e){ze(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ic),this.isDirty=!1,this.children.forEach(e)}};function oc(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(F(r),e(a-t))};return P.setup(r,!0),()=>F(r)}function sc(e){return K(e)?e.get():e}var cc=class{constructor(){this.members=[]}add(e){Re(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ze(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ze(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},uc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},dc=[``,`X`,`Y`,`Z`],fc=1e3,pc=0;function mc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=zi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hc(r)}function gc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=pc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ya.value&&(uc.nodes=uc.calculatedTargetDeltas=uc.calculatedProjections=0),this.nodes.forEac
1h(yc),this.nodes.forEach(Oc),this.nodes.forEach(kc),this.nodes.forEach(bc),Ya.addProjectionMetrics&&Ya.addProjectionMetrics(uc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ac)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ke),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Pa(t)&&!Xa(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=oc(i,250),lc.hasAnimatedSinceResize&&(lc.hasAnimatedSinceResize=!1,this.nodes.forEach(Dc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Ws(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...hi(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Dc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),F(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ac),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Cc),this.nodes.forEach(Sc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
1h(Tc),this.nodes.forEach(Ec),this.nodes.forEach(_c),this.nodes.forEach(vc)):this.nodes.forEach(wc),this.clearAllSnapshots();let e=L.now();I.delta=k(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,bt.update.process(I),bt.preRender.process(I),bt.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ma.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xc),this.sharedNodes.forEach(jc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Bs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Eo(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Bc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Hc))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),Eo(n.latestValues)&&Ro(r,n.latestValues,n.layout?.layoutBox)}return Eo(this.latestValues)&&Ro(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Eo(n.latestValues))continue;let r;n.instance&&(To(n.latestValues)&&n.updateSnapshot(),r=J(),Z(r,n.measurePageBox())),Rs(t,n.latestValues,n.snapshot?.layoutBox,r)}return Eo(this.latestValues)&&Rs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=I.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),As(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Mo(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Ya.value&&uc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||To(this.parent.latestValues)||Do(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Ms(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Fo(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xs(this.prevProjectionDelta.x,this.projectionDelta.x),xs(this.prevProjectionDelta.y,this.projectionDelta.y)),Os(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ks(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ks(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ya.value&&uc.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=eo(),this.projectionDelta=eo(),this.projectionDeltaWithTransform=eo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=eo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Fc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=U(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=U(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Mc(o.x,e.x,n),Mc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ms(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Pc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Hs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,Zs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(F(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{lc.hasAnimatedSinceResize=!0,this.motionValue||=pi(0),this.motionValue.jump(0,!1),this.currentAnimation=nc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Vc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),Ro(t,i),Os(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new cc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&mc(`z`,e,r,this.animationValues);for(let t=0;t<dc.length;t++)mc(`rotate${dc[t]}`,e,r,this.animationValues),mc(`skew${dc[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=sc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=sc(t?.pointerEvents)||``),this.hasProjected&&!Eo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=qs(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Yo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Yo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?sc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Sc),this.root.sharedNodes.clear()}}}function _c(e){e.updateLayout()}function vc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;bs(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Vc(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=eo();Os(o,n,t.layoutBox);let s=eo();a?Os(s,e.applyTransform(r,!0),t.measuredBox):Os(s,n,t.layoutBox);let c=!Bs(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();Ms(s,t.layoutBox,i.layoutBox,o);let c=J();Ms(c,n,a.layoutBox,o),Ws(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function yc(e){Ya.value&&uc.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function bc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xc(e){e.clearSnapshot()}function Sc(e){e.clearMeasurements()}function Cc(e){e.isLayoutDirty=!0,e.updateLayout()}function wc(e){e.isLayoutDirty=!1}function Tc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ec(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Dc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Oc(e){e.resolveTargetDelta()}function kc(e){e.calcProjection()}
1function Ac(e){e.resetSkewAndRotation()}function jc(e){e.removeLeadSnapshot()}function Mc(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Nc(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function Pc(e,t,n,r){Nc(e.x,t.x,n.x,r),Nc(e.y,t.y,n.y,r)}function Fc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ic={duration:.45,ease:[.4,0,.1,1]},Lc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rc=Lc(`applewebkit/`)&&!Lc(`chrome/`)?Math.round:j;function zc(e){e.min=Rc(e.min),e.max=Rc(e.max)}function Bc(e){zc(e.x),zc(e.y)}function Vc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Es(Gs(t),Gs(n),.2)}function Hc(e){return e!==e.root&&e.scroll?.wasRoot}var Uc=gc({attachResizeListener:(e,t)=>rc(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Wc={current:void 0},Gc=gc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wc.current){let e=new Uc({});e.mount(window),e.setOptions({layoutScroll:!0}),Wc.current=e}return Wc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Kc=(0,T.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function qc(e=!0){let t=(0,T.useContext)(Le);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,T.useId)();(0,T.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,T.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Jc=(0,T.createContext)({strict:!1}),Yc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Xc=!1;function Zc(){if(Xc)return;let e={};for(let t in Yc)e[t]={isEnabled:e=>Yc[t].some(t=>!!e[t])};_o(e),Xc=!0}function Qc(){return Zc(),vo()}function $c(e){let t=Qc();for(let n in e)t[n]={...t[n],...e[n]};_o(t)}var el=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function tl(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||el.has(e)}var nl=r({default:()=>rl}),rl,il=n((()=>{throw rl={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),al=e=>!tl(e);function ol(e){typeof e==`function`&&(al=t=>t.startsWith(`on`)?!tl(t):e(t))}try{ol((il(),t(nl)).default)}catch{}function sl(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||K(e[i])||(al(i)||n===!0&&tl(i)||!t&&!tl(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var cl=(0,T.createContext)({});function ll(e,t){if(so(e)){let{initial:t,animate:n}=e;return{initial:t===!1||io(t)?t:void 0,animate:io(n)?n:void 0}}return e.inherit===!1?{}:t}function ul(e){let{initial:t,animate:n}=ll(e,(0,T.useContext)(cl));return(0,T.useMemo)(()=>({initial:t,animate:n}),[dl(t),dl(n)])}function dl(e){return Array.isArray(e)?e.join(` `):e}var fl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pl(e,t,n){for(let r in t)!K(t[r])&&!Xo(r,n)&&(e[r]=t[r])}function ml({transformTemplate:e},t){return(0,T.useMemo)(()=>{let n=fl();return Wo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hl(e,t){let n=e.style||{},r={};return pl(r,n,e),Object.assign(r,ml(e,t)),r}function gl(e,t){let n={},r=hl(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}
1`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var _l=()=>({...fl(),attrs:{}});function vl(e,t,n,r){let i=(0,T.useMemo)(()=>{let n=_l();return is(n,t,os(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};pl(t,e.style,e),i.style={...t,...i.style}}return i}var yl=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function bl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(yl.indexOf(e)>-1||/[A-Z]/u.test(e))}function xl(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??bl(e)?vl:gl)(t,r,i,e),c=sl(t,typeof e==`string`,a),l=e===T.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,T.useMemo)(()=>K(u)?u.get():u,[u]);return(0,T.createElement)(e,{...l,children:d})}function Sl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Cl(n,r,i,e),renderState:t()}}function Cl(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=sc(a[e]);let{initial:o,animate:s}=e,c=so(e),l=co(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!ro(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Oi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var wl=e=>(t,n)=>{let r=(0,T.useContext)(cl),i=(0,T.useContext)(Le),a=()=>Sl(e,t,r,i);return n?a():Fe(a)},Tl=wl({scrapeMotionValuesFromProps:Zo,createRenderState:fl}),El=wl({scrapeMotionValuesFromProps:cs,createRenderState:_l}),Dl=Symbol.for(`motionComponentSymbol`);function Ol(e,t,n){let r=(0,T.useRef)(n);(0,T.useInsertionEffect)(()=>{r.current=n});let i=(0,T.useRef)(null);return(0,T.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var kl=(0,T.createContext)({});function Al(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function jl(e,t,n,r,i,a){let{visualElement:o}=(0,T.useContext)(cl),s=(0,T.useContext)(Jc),c=(0,T.useContext)(Le),l=(0,T.useContext)(Kc),u=l.reducedMotion,d=l.skipAnimations,f=(0,T.useRef)(null),p=(0,T.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,T.useContext)(kl);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Ml(f.current,n,i,h);let g=(0,T.useRef)(!1);(0,T.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Ri],v=(0,T.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ie(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,T.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Ml(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Nl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Al(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Nl(e){if(e)return e.options.allowProjection===!1?Nl(e.parent):e.projection}function Pl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&$c(r);let a=n?n===`svg`:bl(e),o=a?El:Tl;function s(n,s){let c,l={...(0,T.useContext)(Kc),...n,layoutId:Fl(n)},{isStatic:u}
1=l,d=ul(n),f=o(n,u);if(!u&&typeof window<`u`){Il(l,r);let t=Ll(l);c=t.MeasureLayout,d.visualElement=jl(e,f,l,i,t.ProjectionNode,a)}return(0,D.jsxs)(cl.Provider,{value:d,children:[c&&d.visualElement?(0,D.jsx)(c,{visualElement:d.visualElement,...l}):null,xl(e,n,Ol(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,T.forwardRef)(s);return c[Dl]=e,c}function Fl({layoutId:e}){let t=(0,T.useContext)(Pe).id;return t&&e!==void 0?t+`-`+e:e}function Il(e,t){(0,T.useContext)(Jc).strict}function Ll(e){let{drag:t,layout:n}=Qc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Rl(e,t){if(typeof Proxy>`u`)return Pl;let n=new Map,r=(n,r)=>Pl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Pl(a,void 0,e,t)),n.get(a))})}var zl=(e,t)=>t.isSVG??bl(e)?new ls(t):new $o(t,{allowProjection:e!==T.Fragment}),Bl=class extends Y{constructor(e){super(e),e.animationState||=gs(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ro(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Vl=0,Hl={animation:{Feature:Bl},exit:{Feature:class extends Y{constructor(){super(...arguments),this.id=Vl++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ki(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Ul(e){return{point:{x:e.pageX,y:e.pageY}}}var Wl=e=>t=>Sa(t)&&e(t,Ul(t));function Gl(e,t,n,r){return rc(e,t,Wl(n),r)}var Kl=({current:e})=>e?e.ownerDocument.defaultView:null,ql=(e,t)=>Math.abs(e-t);function Jl(e,t){let n=ql(e.x,t.x),r=ql(e.y,t.y);return Math.sqrt(n**2+r**2)}var Yl=new Set([`auto`,`scroll`]),Xl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=$l(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Jl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=I;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Zl(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=$l(e.type===`pointercancel`?this.lastMoveEventInfo:Zl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Sa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Zl(Ul(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=I;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,$l(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=We(Gl(this.contextWindow,`pointermove`,this.handlePointerMove,d),Gl(this.contextWindow,`pointerup`,this.handlePointerUp,d),Gl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Yl.has(e.overflowX)||Yl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),F(this.updatePoint)}};function Zl(e,t){return t?{point:t(e.point)}:e}function Ql(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $l({point:e},t){return{point:e,delta:Ql(e,tu(t)),offset:Ql(e,eu(t)),velocity:nu(t,.1)}}function eu(e){return e[0]}function tu(e){return e[e.length-1]}function nu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=tu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>M(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>M(t)*2&&(r=e[1]);let a=N(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ru(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function iu(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function au(e,{top:t,left:n,bottom:r,right:i}){return{x:iu(e.x,n,i),y:iu(e.y,t,r)}}function ou(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function su(e,t){return{x:ou(e.x,t.x),y:ou(e.y,t.y)}}function cu(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ge(t.min,t.max-r,e.min):r>
1i&&(n=Ge(e.min,e.max-i,t.min)),k(0,1,n)}function lu(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var uu=.35;function du(e=uu){return e===!1?e=0:e===!0&&(e=uu),{x:fu(e,`left`,`right`),y:fu(e,`top`,`bottom`)}}function fu(e,t,n){return{min:pu(e,t),max:pu(e,n)}}function pu(e,t){return typeof e==`number`?e:e[t]||0}var mu=new WeakMap,hu=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Ul(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_a(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),Ii(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=yu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Xl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Kl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!vu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ru(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Al(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=au(n.layoutBox,e):this.constraints=!1,this.elastic=du(t),r!==this.constraints&&!Al(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=lu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Al(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Bo(n,r.root,this.visualElement.getTransformPagePoint()),a=su(r.layout.layoutBox,i);if(t){let e=t(So(a));this.hasMutatedConstraints=!!e,e&&(a=xo(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!vu(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ii(this.visualElement,e),n.start(Ci(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!vu(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-U(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Al(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=cu({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!vu(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(U(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mu.set(this.visualElement,this);let e=this.visualElement.current,t=Gl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ea(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Al(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=_u(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=rc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=uu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function gu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function _u(e,t,n){let r=Ja(e,gu(n)),i=Ja(t,gu(n));return()=>{r(),i()}}function vu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var bu=class extends Y{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new hu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},xu=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},Su=class extends Y{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Xl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:xu(e),onStart:xu(t),onMove:xu(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Cu=!1,wu=class extends T.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Cu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Cu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ma.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Cu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Tu(e){let[t,n]=qc(),r=(0,T.useContext)(Pe);return(0,D.jsx)(wu,{...e,layoutGroup:r,switchLayoutGroup:(0,T.useContext)(kl),isPresent:t,safeToRemove:n})}var Eu={pan:{Feature:Su},drag:{Feature:bu,ProjectionNode:Gc,MeasureLayout:Tu}};function Du(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,Ul(t)))}var Ou=class extends Y{mount(){let{current:e}=this.node;e&&(this.unmount=ba(e,(e,t)=>(Du(this.node,t,`Start`),e=>Du(this.node,e,`End`))))}unmount(){}},ku=class extends Y{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=We(rc(this.node.current,`focus`,()=>this.onFocus()),rc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Au(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,Ul(t)))}var ju=class extends Y{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Na(e,(e,t)=>(Au(this.node,t,`Start`),(e,{success:t})=>Au(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Mu=new WeakMap,Nu=new WeakMap,Pu=e=>{let t=Mu.get(e.target);t&&t(e)},Fu=e=>{e.forEach(Pu)};function Iu({root:e,...t}){let n=e||document;Nu.has(n)||Nu.set(n,{});let r=Nu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fu,{root:e,...t})),r[i]}function Lu(e,t,n){let r=Iu(t);return Mu.set(e,n),r.observe(e),()=>{Mu.delete(e),r.unobserve(e)}}var Ru={some:0,all:1},zu=class extends Y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ru[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Lu(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Bu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Bu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Vu={inView:{Feature:zu},tap:{Feature:ju},focus:{Feature:ku},hover:{Feature:Ou}},Hu={layout:{ProjectionNode:Gc,MeasureLayout:Tu}},Uu=Rl({...Hl,...Vu,...Eu,...Hu},zl),Wu={some:0,all:1};function Gu(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=da(e),o=new WeakMap,s=new IntersectionObserver(e=>
1{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Wu[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Ku(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,T.useState)(a);return(0,T.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 Gu(e.current,a,c)},[t,e,n,i,r]),o}var qu=[10,10,9,9,8,8,7,7,7,6,6,6,5,5,5,4,7,4,4,5,6,8,6,5,3,3,3,4],Ju=[`var(--brand-lime)`,`var(--brand-azure)`,`var(--brand-magenta)`];function Yu(e){return function(){let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Xu(e){let t=Yu(42),n=[];return[...e].sort((e,t)=>t.w-e.w).map((e,r)=>{let i=.3+(e.w-3)/7*.7,a=Math.min(96,12+i*22+e.t.length*1.6),o=6+i*12,s=50,c=50,l=!1;for(let e=0;e<180&&!l;e++)s=t()*(100-a)+a/2,c=t()*(100-o)+o/2,n.some(e=>Math.abs(e.x-s)<(e.w+a)/2-.5&&Math.abs(e.y-c)<(e.h+o)/2-.5)||(l=!0);n.push({x:s,y:c,w:a,h:o});let u=(t()-.5)*14,d=Ju[r%Ju.length],f=e.w>=7?800:e.w>=5?700:600,p=(t()-.5)*28,m=(t()-.5)*20,h=3.5+t()*3;return{t:e.t,w:e.w,xPct:s,yPct:c,size:i,rot:u,color:d,weight:f,floatX:p,floatY:m,floatDuration:h}})}function Zu(){let e=(0,T.useRef)(null),t=Ku(e,{amount:.2,once:!0}),{messages:n}=u(),r=(0,T.useMemo)(()=>n.home.skills.tags.map((e,t)=>({t:e,w:qu[t]??4})),[n.home.skills.tags]);return(0,D.jsx)(`div`,{ref:e,className:`relative mx-auto w-full max-w-6xl`,style:{height:`clamp(240px, 42vh, 560px)`},children:(0,T.useMemo)(()=>Xu(r),[r]).map((e,n)=>(0,D.jsx)(`div`,{className:`absolute`,style:{left:`${e.xPct}%`,top:`${e.yPct}%`,transform:`translate(-50%, -50%)`},children:(0,D.jsx)(Uu.span,{initial:{opacity:0,scale:.4,filter:`blur(8px)`},animate:t?{opacity:1,scale:1,filter:`blur(0px)`,x:[0,e.floatX,0,-e.floatX,0],y:[0,-e.floatY,0,e.floatY,0]}:{},transition:{opacity:{delay:n*.035,duration:.5},scale:{delay:n*.035,type:`spring`,stiffness:90,damping:14},filter:{delay:n*.035,duration:.5},x:{repeat:1/0,duration:e.floatDuration,ease:`easeInOut`,delay:n*.035+.4},y:{repeat:1/0,duration:e.floatDuration*1.2,ease:`easeInOut`,delay:n*.035+.4}},whileHover:{scale:1.12,rotate:0},className:`inline-block select-none whitespace-nowrap font-display leading-none`,style:{fontSize:`clamp(${.7+e.size*.6}rem, ${1.5+e.size*4.5}vw, ${1.1+e.size*2.6}rem)`,color:e.color,fontWeight:e.weight,letterSpacing:`-0.02em`,textShadow:`0 1px 0 rgba(255,255,255,0.6)`,cursor:`default`,rotate:e.rot},children:e.t})},`${e.t}-${n}`))})}var Qu=[{version:1,asset_id:`c6e1c467-32b1-4d31-97fe-89265ad30c84`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-01.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/c6e1c467-32b1-4d31-97fe-89265ad30c84/client-01.png`,original_filename:`client-01.webp`,size:17192,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:03.276Z`},{version:1,asset_id:`b73d3723-f53f-478f-9499-1f4f35ec3571`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-02.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/b73d3723-f53f-478f-9499-1f4f35ec3571/client-02.png`,original_filename:`client-02.webp`,size:16126,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:03.597Z`},{version:1,asset_id:`1ca16e46-73fb-44e1-8c10-53f08b1ad177`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-03.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/1ca16e46-73fb-44e1-8c10-53f08b1ad177/client-03.png`,original_filename:`client-03.webp`,size:11252,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:03.828Z`},{version:1,asset_id:`5386ef3f-0cfb-437d-a682-5712c8b61890`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-04.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/5386ef3f-0cfb-437d-a682-5712c8b61890/client-04.png`,original_filename:`client-04.webp`,size:15030,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:04.114Z`},{version:1,asset_id:`2c027ea7-94b0-4f6c-8839-77121a534cd3`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-05.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/2c027ea7-94b0-4f6c-8839-77121a534cd3/client-05.png`,original_filename:`client-05.webp`,size:19228,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:04.386Z`},{version:1,asset_id:`2573673e-85d1-4906-a593-5b7fb10ce75b`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-06.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/2573673e-85d1-4906-a593-5b7fb10ce75b/client-06.png`,original_filename:`client-06.webp`,size:14040,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:04.721Z`},{version:1,asset_id:`78b8bec3-9d08-491e-8516-515a2aae1d37`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-07.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/78b8bec3-9d08-491e-8516-515a2aae1d37/client-07.png`,original_filename:`client-07.webp`,size:15840,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:05.155Z`},{version:1,asset_id:`e6635a5b-7ff7-46c6-9964-98e721cb301f`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-08.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/e6635a5b-7ff7-46c6-9964-98e721cb301f/client-08.png`,original_filename:`client-08.webp`,size:7426,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:05.527Z`},{version:1,asset_id:`461ad932-ac18-4bb7-812c-70c66a429461`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-09.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/461ad932-ac18-4bb7-812c-70c66a429461/client-09.png`,original_filename:`client-09.webp`,size:13174,content_type:`image/webp`,created_at:`2026-07-02T15:37:49Z`,migrated_at:`2026-07-30T09:00:05.7
172Z`},{version:1,asset_id:`9a7a1060-6e6d-4f63-89c8-eb98e212f356`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-10.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/9a7a1060-6e6d-4f63-89c8-eb98e212f356/client-10.png`,original_filename:`client-10.webp`,size:9772,content_type:`image/webp`,created_at:`2026-07-02T15:37:50Z`,migrated_at:`2026-07-30T09:00:06.023Z`},{version:1,asset_id:`7cf9e238-c2e5-4511-8a99-858eb6e38667`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-11.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/7cf9e238-c2e5-4511-8a99-858eb6e38667/client-11.png`,original_filename:`client-11.webp`,size:13940,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:06.379Z`},{version:1,asset_id:`4ff1d917-e2d6-4705-9757-9ed5c4746b89`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-12.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/4ff1d917-e2d6-4705-9757-9ed5c4746b89/client-12.png`,original_filename:`client-12.webp`,size:24236,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:06.625Z`},{version:1,asset_id:`7617a045-eb22-487f-9483-3687993fa111`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-13.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/7617a045-eb22-487f-9483-3687993fa111/client-13.png`,original_filename:`client-13.webp`,size:13346,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:07.063Z`},{version:1,asset_id:`1d7d94b1-6960-4a30-8602-5ee045af5582`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-14.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/1d7d94b1-6960-4a30-8602-5ee045af5582/client-14.png`,original_filename:`client-14.webp`,size:57538,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:07.558Z`},{version:1,asset_id:`682f8a13-b223-4597-b24f-d2b2ff414511`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-15.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/682f8a13-b223-4597-b24f-d2b2ff414511/client-15.png`,original_filename:`client-15.webp`,size:72076,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:07.884Z`},{version:1,asset_id:`b428c8e4-d147-4dfb-bdd7-ad67b281d8dd`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-16.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/b428c8e4-d147-4dfb-bdd7-ad67b281d8dd/client-16.png`,original_filename:`client-16.webp`,size:19976,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:08.250Z`},{version:1,asset_id:`fb724633-c40c-4179-9c7b-95717e967c6b`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-17.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/fb724633-c40c-4179-9c7b-95717e967c6b/client-17.png`,original_filename:`client-17.webp`,size:15690,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:08.574Z`},{version:1,asset_id:`6f3dc2a1-cd69-44c4-b8b3-1fe0fa541da7`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-18.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/6f3dc2a1-cd69-44c4-b8b3-1fe0fa541da7/client-18.png`,original_filename:`client-18.webp`,size:8758,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:08.822Z`},{version:1,asset_id:`b5b3bc0c-155d-4787-b87a-c1c2139a0caf`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-19.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/b5b3bc0c-155d-4787-b87a-c1c2139a0caf/client-19.png`,original_filename:`client-19.webp`,size:22982,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:09.060Z`},{version:1,asset_id:`7877f0a8-2469-4276-832e-e3fd1858131d`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-20.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/7877f0a8-2469-4276-832e-e3fd1858131d/client-20.png`,original_filename:`client-20.webp`,size:11562,content_type:`image/webp`,created_at:`2026-07-02T15:37:54Z`,migrated_at:`2026-07-30T09:00:09.347Z`},{version:1,asset_id:`51226eb3-0a12-4ad7-b319-9e5955590e67`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-21.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/51226eb3-0a12-4ad7-b319-9e5955590e67/client-21.png`,original_filename:`client-21.webp`,size:5618,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:09.550Z`},{version:1,asset_id:`f211138f-221d-4af1-b222-bd72db892a46`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-22.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f211138f-221d-4af1-b222-bd72db892a46/client-22.png`,original_filename:`client-22.webp`,size:18560,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:09.887Z`},{version:1,asset_id:`c55b5ed5-8605-4ae2-89f8-77e127ec5623`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-23.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/c55b5ed5-8605-4ae2-89f8-77e127ec5623/client-23.png`,original_filename:`client-23.webp`,size:8930,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:10.182Z`},{version:1,asset_id:`86bf85ec-763a-4ac2-abad-ba2124bbe4c0`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-24.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/86bf85ec-763a-4ac2-abad-ba2124bbe4c0/client-24.png`,original_filename:`client-24.webp`,size:10098,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:10.442Z`},{version:1,asset_id:`952d1d26-6ed4-4970-9061-fe79c788e013`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-25.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/952d1d26-6ed4-4970-9061-fe79c788e013/client-25.png`,original_filename:`client-25.webp`,size:6208,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:10.705Z`},{version:1,asset_id:`ab398d99-512a-4184-9c99-0b1cb910af82`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-26.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/ab398d99-512a-4184-9c99-0b1cb910af82/client-26.png`,original_filename:`client-26.webp`,size:9424,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:10.949Z`},{version:1,asset_id:`f9e55d0a-81ac-48b8-8c16-9cf1f947e2db`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-27.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f9e55d0a-81ac-48b8-8c16-9cf1f947e2db/client-27.png`,original_filename:`client-27.webp`,size:8578,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:11.210Z`},{version:1,asset_id:`99ec0624-c7f6-454f-87c8-14f68e15e47d`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-28.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/99ec0624-c7f6-454f-87c8-14f68e15e47d/client-28.png`,original_filename:`client-28.webp`,size:6344,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:11.516Z`},{version:1,asset_id:`4e2c586c-559e-4002-86a0-d122192cd0dd`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-29.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/4e2c586c-559e-4002-86a0-d122192cd0dd/client-29.png`,original_filename:`client-29.webp`,size:4380,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:11.775Z`},{version:1,asset_id:`0538643e-e24a-48fb-b623-ef5c07d1d005`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-30.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/0538643e-e24a-48fb-b623-ef5c07d1d005/client-30.png`,original_filename:`client-30.webp`,size:16802,content_type:`image/webp`,created_at:`2026-07-02T15:37:59Z`,migrated_at:`2026-07-30T09:00:11.998Z`},{version:1,asset_id:`5903611f-d45c-42b7-ab0f-d17ba5a8b873`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-31.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/5903611f-d45c-42b7-ab0f-d17ba5a8b873/client-31.png`,original_filename:`client-31.webp`,size:6620,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:12.231Z`},{version:1,asset_id:`f407f970-feb4-4610-9340-8a118f97b0df`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-32.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f407f970-feb4-4610-9340-8a118f97b0df/client-32.png`,original_filename:`client-32.webp`,size:10244,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:12.552Z`},{version:1,asset_id:`29e7242c-4a21-46ce-8ab4-655298909221`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-33.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/29e7242c-4a21-46ce-8ab4-655298909221/client-33.png`,original_filename:`client-33.webp`,size:6126,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:12.771Z`},{version:1,asset_id:`1a0c80f6-6d7b-4c35-b6aa-62ab1a1c2a24`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-34.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/1a0c80f6-6d7b-4c35-b6aa-62ab1a1c2a24/cl
1ient-34.png`,original_filename:`client-34.webp`,size:7374,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:13.078Z`},{version:1,asset_id:`74b75694-ada6-4b7c-8c04-2805b0a3a657`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-35.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/74b75694-ada6-4b7c-8c04-2805b0a3a657/client-35.png`,original_filename:`client-35.webp`,size:18810,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:13.371Z`},{version:1,asset_id:`039caeb9-86ec-40d1-8e3d-614b46f64efd`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-36.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/039caeb9-86ec-40d1-8e3d-614b46f64efd/client-36.png`,original_filename:`client-36.webp`,size:31656,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:13.652Z`},{version:1,asset_id:`87a8e465-66ce-492a-99cb-9c97e988c34a`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-37.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/87a8e465-66ce-492a-99cb-9c97e988c34a/client-37.png`,original_filename:`client-37.webp`,size:37766,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:13.906Z`},{version:1,asset_id:`8444faa0-3fcf-45e1-a5b9-7990ca38be24`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-38.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/8444faa0-3fcf-45e1-a5b9-7990ca38be24/client-38.png`,original_filename:`client-38.webp`,size:6586,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:14.220Z`},{version:1,asset_id:`322547c9-aa55-4de3-825c-b365aa1a2218`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-39.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/322547c9-aa55-4de3-825c-b365aa1a2218/client-39.png`,original_filename:`client-39.webp`,size:11620,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:14.425Z`},{version:1,asset_id:`447458fa-a8af-49ef-8c4c-16e42af62bbf`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-40.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/447458fa-a8af-49ef-8c4c-16e42af62bbf/client-40.png`,original_filename:`client-40.webp`,size:7470,content_type:`image/webp`,created_at:`2026-07-02T15:38:03Z`,migrated_at:`2026-07-30T09:00:14.662Z`},{version:1,asset_id:`e44f8179-3335-4c30-aba9-5d7d38607d07`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-41.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/e44f8179-3335-4c30-aba9-5d7d38607d07/client-41.png`,original_filename:`client-41.webp`,size:13518,content_type:`image/webp`,created_at:`2026-07-02T15:38:07Z`,migrated_at:`2026-07-30T09:00:14.883Z`},{version:1,asset_id:`e10f0acb-e05b-445e-9eac-1c8a4b9fdb1d`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-42.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/e10f0acb-e05b-445e-9eac-1c8a4b9fdb1d/client-42.png`,original_filename:`client-42.webp`,size:4856,content_type:`image/webp`,created_at:`2026-07-02T15:38:07Z`,migrated_at:`2026-07-30T09:00:15.147Z`},{version:1,asset_id:`a2343f2e-8d5e-441a-8ee7-c1bdb1ec18bf`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-43.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/a2343f2e-8d5e-441a-8ee7-c1bdb1ec18bf/client-43.png`,original_filename:`client-43.webp`,size:10820,content_type:`image/webp`,created_at:`2026-07-02T15:38:07Z`,migrated_at:`2026-07-30T09:00:15.471Z`},{version:1,asset_id:`4efb6064-9a53-4dcc-ae5c-314807519c96`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-44.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/4efb6064-9a53-4dcc-ae5c-314807519c96/client-44.png`,original_filename:`client-44.webp`,size:9864,content_type:`image/webp`,created_at:`2026-07-02T15:38:07Z`,migrated_at:`2026-07-30T09:00:15.711Z`},{version:1,asset_id:`27df15e6-9611-47ad-b35d-eb903dcabdaf`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/clients/client-45.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/27df15e6-9611-47ad-b35d-eb903dcabdaf/client-45.png`,original_filename:`client-45.webp`,size:29848,content_type:`image/webp`,created_at:`2026-07-02T15:38:07Z`,migrated_at:`2026-07-30T09:00:16.004Z`}];function $u(){return(0,D.jsx)(`div`,{className:`mx-auto grid w-full max-w-6xl grid-cols-3 gap-2 sm:grid-cols-5 sm:gap-3 md:grid-cols-9 md:gap-4`,children:Qu.map((e,t)=>(0,D.jsx)(`div`,{className:`flex aspect-[4/3] items-center justify-center rounded-lg bg-white p-1.5 
1shadow-sm ring-1 ring-black/5 sm:p-2`,children:(0,D.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:`max-h-8 w-auto max-w-full object-contain sm:max-h-10 md:max-h-12`})},t))})}function ed({reverse:e=!1,speed:t=`normal`}){let n=c(),{locale:r}=u(),i=[...ie,...ie,...ie],a=t===`fast`?90:t===`slow`?35:55,o=(0,T.useRef)(null),l=(0,T.useRef)(!1),d=(0,T.useRef)({x:0,scroll:0,moved:!1});(0,T.useEffect)(()=>{let t=o.current;if(!t)return;let n=()=>t.scrollWidth/3;t.scrollLeft=n();let r=0,i=performance.now(),s=o=>{let c=(o-i)/1e3;i=o,l.current||(t.scrollLeft+=(e?-1:1)*a*c);let u=n();t.scrollLeft>=u*2?t.scrollLeft-=u:t.scrollLeft<=0&&(t.scrollLeft+=u),r=requestAnimationFrame(s)};return r=requestAnimationFrame(s),()=>cancelAnimationFrame(r)},[e,a,r]);let f=e=>{let t=o.current;t&&(l.current=!0,d.current={x:e.clientX,scroll:t.scrollLeft,moved:!1})},p=e=>{if(!l.current)return;let t=o.current,n=e.clientX-d.current.x;if(!d.current.moved&&Math.abs(n)>4){d.current.moved=!0;try{t.setPointerCapture(e.pointerId)}catch{}}d.current.moved&&(t.scrollLeft=d.current.scroll-n)},m=e=>{l.current=!1;try{o.current?.releasePointerCapture(e.pointerId)}catch{}setTimeout(()=>{d.current.moved=!1},0)};return(0,D.jsx)(`div`,{className:`relative overflow-hidden py-6 [mask-image:linear-gradient(to_right,transparent,black_8%,black_92%,transparent)]`,children:(0,D.jsx)(`div`,{ref:o,className:`flex w-full cursor-grab snap-none select-none overflow-x-auto active:cursor-grabbing [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,style:{scrollBehavior:`auto`},onPointerDown:f,onPointerMove:p,onPointerUp:m,onPointerCancel:m,children:i.map((e,t)=>(0,D.jsx)(s,{to:e.route,"aria-label":n(`pages.projectDetail.discoverAria`,{name:e.name}),draggable:!1,onClick:e=>{d.current.moved&&e.preventDefault()},className:`group mx-4 flex h-28 w-56 shrink-0 items-center justify-center rounded-2xl border border-black/10 bg-white px-4 shadow-sm transition-all hover:-translate-y-1 hover:shadow-lg md:h-32 md:w-64`,children:(0,D.jsx)(`img`,{src:e.logo,alt:`${e.name} logo`,className:`max-h-16 w-auto object-contain transition-transform group-hover:scale-105 md:max-h-20`,loading:`lazy`,draggable:!1})},`${e.slug}-${t}`))})})}var td={presentation:{it:`https://cybucybertribucomadmin.s3.eu-west-1.amazonaws.com/admin/public/sito-cybertribu/presentazione/0702%20IT_Cybertribu%20-%20Presentazione.pdf`,en:`https://cybucybertribucomadmin.s3.eu-west-1.amazonaws.com/admin/public/sito-cybertribu/presentazione/0702%20EN_CyberTribu%20-%20presentation.pdf`},enterprise:{it:`https://cybucybertribucomadmin.s3.eu-west-1.amazonaws.com/admin/public/sito-cybertribu/presentazione/2606%20IT_Cybertribu%20-%20PresentazioneAziende.pdf`,en:`https://cybucybertribucomadmin.s3.eu-west-1.amazonaws.com/admin/public/sito-cybertribu/presentazione/2606%20EN_Cybertribu%20-%20EnterprisePresentation.pdf`}};function nd(e,t){return td[e][t]}function rd({videoId:e,title:t,purpose:n=3}){let r=c(),i=(0,T.useRef)(null),[a,o]=(0,T.useState)(()=>!f()),s=`https://www.youtube.com/embed/${e}?rel=0`;return(0,T.useEffect)(()=>{if(!f()){o(!0);return}return m(()=>{b(n),o(g(n))})},[n]),(0,T.useLayoutEffect)(()=>{let e=i.current;if(!a||!e)return;let t=()=>{e.classList.remove(`_iub_cs_activate`,`cmplazyload`,`_iub_cs_activate-activated`);for(let t of[`data-src`,`data-suppressedsrc`,`suppressedsrc`,`data-cmp-src`,`data-cmp-ab`,`data-cmp-info`,`data-cmp-vendor`,`data-iub-purposes`])e.removeAttribute(t);e.getAttribute(`src`)!==s&&e.setAttribute(`src`,s),e.src!==s&&(e.src=s)};t(),b(n);try{window._iub?.cs?.api?.activateSnippets?.()}catch{}let r=new MutationObserver(t);r.observe(e,{attributes:!0,childList:!1,subtree:!1});let o=window.setInterval(t,300);return()=>{r.disconnect(),window.clearInterval(o)}},[a,s,n]),a?(0,D.jsx)(`iframe`,{ref:i,title:t,src:s,className:`absolute inset-0 h-full w-full border-0`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`}):(0,D.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-3 bg-black/[0.04] px-6 text-center`,children:[(0,D.jsx)(`p`,{className:`max-w-sm text-sm text-muted-foreground`,children:r(`home.video.consentBody`)}),(0,D.jsx)(`button`,{type:`button`,onClick:v,className:`rounded-full bg-azure px-5 py-2.5 text-xs font-semibold uppercase tracking-wider text-foreground transition-colors hover:bg-azure-soft`,children:r(`home.video.consentCta`)})]})}var id={version:1,asset_id:`ba7dbaa4-f8ae-4cd9-9a95-078299a3ed88`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyBubble_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/ba7dbaa4-f8ae-4cd9-9a95-078299a3ed88/CyBubble_icon.png`,original_filename:`CyBubble_icon.webp`,size:12034,content_type:`image/webp`,created_at:`2026-06-24T10:07:34Z`,migrated_at:`2026-07-30T09:00:18.616Z`},ad={version:1,asset_id:`04e0b963-8382-41d5-bdc1-cc2ee085ecc9`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyBlocks_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/04e0b963-8382-41d5-bdc1-cc2ee085ecc9/CyBlocks_icon.png`,original_filename:`CyBlocks_icon.webp`,size:9398,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:18.275Z`},od={version:1,asset_id:`2363e27d-5866-4585-b506-0e97990ae2ed`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyBricks_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/2363e27d-5866-4585-b506-0e97990ae2ed/CyBricks_icon.png`,original_filename:`CyBricks_icon.webp`,size:4706,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:18.430Z`},sd={version:1,asset_id:`5bd970a0-5a19-48c2-a562-b2e8f13f138e`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyMeet_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/5bd970a0-5a19-48c2-a562-b2e8f13f138e/CyMeet_icon.png`,original_filename:`CyMeet_icon.webp`,size:10292,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:19.633Z`},cd={version:1,asset_id:`0662f5bb-3a58-40f1-9706-ae3c4db7147b`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyChat_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/0662f5bb-3a58-40f1-9706-ae3c4db7147b/CyChat_icon.png`,original_filename:`CyChat_icon.webp`,size:7840,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:18.960Z`},ld={version:1,asset_id:`6666c143-c598-444a-9c28-0d74932ee921`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyMind_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/6666c143-c598-444a-9c28-0d74932ee921/CyMind_icon.png`,original_filename:`CyMind_icon.webp`,size:7904,content_type:`image/webp`,created_at:`2026-06-24T10:07:34Z`,migrated_at:`2026-07-30T09:00:19.846Z`},ud={version:1,asset_id:`f3c45902-9aa3-45d3-a4fb-2a63c47472e5`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyRead_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f3c45902-9aa3-45d3-a4fb-2a63c47472e5/CyRead_icon.png`,original_filename:`CyRead_icon.webp`,size:6762,content_type:`image/webp`,created_at:`2026-06-24T10:07:34Z`,migrated_at:`2026-07-30T09:00:20.043Z`},dd={version:1,asset_id:`104850ea-ccd1-47bc-90ee-f0476ea0394a`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyCalc_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/104850ea-ccd1-47bc-90ee-f0476ea0394a/CyCalc_icon.png`,original_filename:`CyCalc_icon.webp`,size:9322,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:18.794Z`},fd={version:1,asset_id:`62379aea-7044-42f2-90ca-42dffa4fb3c9`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyCloud_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/62379aea-7044-42f2-90ca-42dffa4fb3c9/CyCloud_icon.png`,original_filename:`CyCloud_icon.webp`,size:4496,content_type:`image/webp`,created_at:`2026-06-24T10:07:34Z`,migrated_at:`2026-07-30T09:00:19.305Z`},pd={version:1,asset_id:`5201cbe8-4ded-44a5-b7d8-b0d28bdc1201`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cy-icons/CyForum_icon.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/5201cbe8-4ded-44a5-b7d8-b0d28bdc1201/CyForum_icon.png`,original_filename:`CyForum_icon.webp`,size:8292,content_type:`image/webp`,created_at:`2026-06-24T10:07:35Z`,migrated_at:`2026-07-30T09:00:19.463Z`},md={version:1,asset_id:`ca700ff0-a45a-48bc-ba61-208bd763b1b0`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Antonella_Riccardi.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/ca700ff0-a45a-48bc-ba61-208bd763b1b0/Antonella_Riccardi.png`,original_filename:`Antonella_Riccardi.webp`,size:6496,content_type:`image/webp`,created_at:`2026-07-01T14:50:33Z`,migrated_at:`2026-07-30T09:00:20.620Z`},hd={version:1,asset_id:`f25c9e2d-e2e6-4ffa-8a4e-d01ad3d2f18f`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Roberta_Fabiani.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f25c9e2d-e2e6-4ffa-8a4e-d01ad3d2f18f/Roberta_Fabiani.png`,original_filename:`Roberta_Fabiani.webp`,size:22356,content_type:`image/webp`,created_at:`2026-07-01T14:50:36Z`,migrated_at:`2026-07-30T09:00:22.334Z`},gd={version:1,asset_id:`d1b7a339-7fe7-4af5-bf9c-762271a9e7fc`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Giovanni_Le_Coche.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/d1b7a339-7fe7-4af5-bf9c-762271a9e7fc/Giovanni_Le_Coche.png`,original_filename:`Giovanni_Le_Coche.webp`,size:8268,content_type:`image/webp`,created_at:`2026-07-13T09:35:30Z`,migrated_at:`2026-07-30T09:00:21.226Z`},_d={version:1,asset_id:`f0901afb-8b7f-4a8d-8ee7-a51ab8017517`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Ginevra_Tolotti.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/f0901afb-8b7f-4a8d-8ee7-a51ab8017517/Ginevra_Tolotti.png`,original_filename:`Ginevra_Tolotti.webp`,size:19660,content_type:`image/webp`,created_at:`2026-07-13T09:35:34Z`,migrated_at:`2026-07-30T09:00:21.057Z`},vd={version:1,asset_id:`8e69571b-cb51-4859-9c1d-5baaf1a84406`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Mattia_Zappavigna.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/8e69571b-cb51-4859-9c1d-5baaf1a84406/Mattia_Zappavigna.png`,original_filename:`Matti
1a_Zappavigna.webp`,size:14772,content_type:`image/webp`,created_at:`2026-07-14T10:52:57Z`,migrated_at:`2026-07-30T09:00:22.057Z`},yd={version:1,asset_id:`83091b82-f1ae-4944-86a0-1586ea5e2d76`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/cybu/Carlo_Silva.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/83091b82-f1ae-4944-86a0-1586ea5e2d76/Carlo_Silva.png`,original_filename:`Carlo_Silva.webp`,size:21156,content_type:`image/webp`,created_at:`2026-07-14T16:11:44Z`,migrated_at:`2026-07-30T09:00:20.775Z`},bd={version:1,asset_id:`e1fc9148-0759-4e49-a6ec-90cd1c065670`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/aws.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/e1fc9148-0759-4e49-a6ec-90cd1c065670/aws.png`,original_filename:`aws.webp`,size:50394,content_type:`image/webp`,created_at:`2026-07-01T13:07:07Z`,migrated_at:`2026-07-30T09:00:26.601Z`},xd={version:1,asset_id:`5ff1e275-f5e7-4be4-a4ac-071f620dc8a1`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/growtribu/logo.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/5ff1e275-f5e7-4be4-a4ac-071f620dc8a1/growtribu-logo-2x.png`,original_filename:`logo.webp`,size:19258,content_type:`image/webp`,created_at:`2026-07-01T13:42:04Z`,migrated_at:`2026-07-30T09:00:24.896Z`},Sd={version:1,asset_id:`bccc9fc0-aa2a-49c6-a72a-ac56cea1ea23`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/genova-startup.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/bccc9fc0-aa2a-49c6-a72a-ac56cea1ea23/genova-startup.png`,original_filename:`genova-startup.webp`,size:78358,content_type:`image/webp`,created_at:`2026-07-01T13:07:10Z`,migrated_at:`2026-07-30T09:00:27.371Z`},Cd={version:1,asset_id:`d7ee926b-b757-4f10-871e-f43c7cc5e9dc`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/clickutility.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/d7ee926b-b757-4f10-871e-f43c7cc5e9dc/clickutility.png`,original_filename:`clickutility.webp`,size:11516,content_type:`image/webp`,created_at:`2026-07-01T14:34:22Z`,migrated_at:`2026-07-30T09:00:26.878Z`},wd={version:1,asset_id:`8e6dd3d8-99bd-43fb-998f-c030c173bd15`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/talent-garden.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/8e6dd3d8-99bd-43fb-998f-c030c173bd15/talent-garden.png`,original_filename:`talent-garden.webp`,size:58908,content_type:`image/webp`,created_at:`2026-07-01T13:07:13Z`,migrated_at:`2026-07-30T09:00:28.136Z`},Td={version:1,asset_id:`ff0e9442-6cb7-4ef8-8e6b-e70d38a5e3ad`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/solutions-for-business.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/ff0e9442-6cb7-4ef8-8e6b-e70d38a5e3ad/solutions-for-business.png`,original_filename:`solutions-for-business.webp`,size:45308,content_type:`image/webp`,created_at:`2026-07-01T13:07:16Z`,migrated_at:`2026-07-30T09:00:27.646Z`},Ed={version:1,asset_id:`116a5afd-f213-48f5-bb5a-228c88e36beb`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/arkys.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/116a5afd-f213-48f5-bb5a-228c88e36beb/arkys.png`,original_filename:`arkys.webp`,size:33888,content_type:`image/webp`,created_at:`2026-07-01T13:07:19Z`,migrated_at:`2026-07-30T09:00:25.219Z`},Dd={version:1,asset_id:`e2e1198d-d0c2-413e-8a34-8fafef889441`,project_id:`72188dca-6f2c-4669-a8f0-088ea5615153`,url:`/media/partners/aws-user-group.webp`,r2_key:`a/v1/72188dca-6f2c-4669-a8f0-088ea5615153/e2e1198d-d0c2-413e-8a34-8fafef889441/aws-user-group.png`,original_filename:`aws-user-group.webp`,size:79002,content_type:`image/webp`,created_at:`2026-07-01T13:07:22Z`,migrated_at:`2026-07-30T09:00:25.983Z`},Od=[{name:`Vincenzo Monno`,role:`Chief Executive Officer`,email:`[email protected]`,img:se.url,accent:`var(--brand-azure)`},{name:`Matteo Vaccari`,role:`Chief Technology Officer`,email:`[email protected]`,img:ce.url,accent:`var(--brand-lime)`},{name:`Alessandro Bruzzone`,role:`Chief Design Officer`,email:`[email protected]`,img:le.url,accent:`var(--brand-azure)`},{name:`Luca Rossini`,role:`Communication Manager`,email:`[email protected]`,img:ue.url,accent:`var(--brand-magenta)`},{name:`Silvia Pallini`,role:`Project Manager`,email:`[email protected]`,img:de.url,accent:`var(--brand-lime)`},{name:`Antonella Riccardi`,role:`Strategic Advisor`,email:`[email protected]`,img:md.url,accent:`var(--brand-magenta)`},{name:`Carlo Silva`,role:`Business Developer`,email:`[email protected]`,img:yd.url,accent:`var(--brand-azure)`},{name:`Giovanni Le Coche`,role:`SEO Specialist`,email:`[email protected]`,img:gd.url,accent:`var(--brand-lime)`},{name:`Roberta Fabiani`,role:`Copywriter Specialist`,email:`[email protected]`,img:hd.url,accent:`var(--brand-azure)`}
1,{name:`Mattia Zappavigna`,role:`Videomaker`,email:`[email protected]`,img:vd.url,accent:`var(--brand-azure)`},{name:`Ginevra Tolotti`,role:`Business Analyst`,email:`[email protected]`,img:_d.url,accent:`var(--brand-magenta)`}],kd=[`aws`,`genovaStartup`,`clickutility`,`talentGarden`,`solutionsForBusiness`,`arkys`,`awsUserGroupGenova`],Ad={aws:bd.url,genovaStartup:Sd.url,clickutility:Cd.url,talentGarden:wd.url,solutionsForBusiness:Td.url,arkys:Ed.url,awsUserGroupGenova:Dd.url},jd=[`entrepreneurs`,`freelancers`,`startuppers`,`creatives`,`established`,`youngMinds`];function Md(){let{pos:e,go:t,step:n}=ve(),{messages:r,locale:i}=u(),a=c(),l=jd.map(e=>r.home.hero.typeWords[e]),f=kd.map(e=>({key:e,name:r.home.partners.items[e].name,desc:r.home.partners.items[e].desc,logo:Ad[e]})),p=[r.home.about.pills.startupDna,r.home.about.pills.notOnlyStartup,r.home.about.pills.fewWords],m=[{Icon:fe,c:`var(--brand-lime)`,bg:`#cbe196`,title:r.home.services.development.title,desc:r.home.services.development.desc,descShort:r.home.services.development.descShort,to:`/sviluppo-software-su-misura`},{Icon:me,c:`var(--brand-magenta)`,bg:`#f386c0`,title:r.home.services.creativity.title,desc:r.home.services.creativity.desc,descShort:r.home.services.creativity.descShort,to:`/strategia-creativa`},{Icon:pe,c:`var(--brand-azure)`,bg:`#80d0f2`,title:r.home.services.communication.title,desc:r.home.services.communication.desc,descShort:r.home.services.communication.descShort,to:`/comunicazione-online`}],h=[r.home.servicesIntro.cards.call,r.home.servicesIntro.cards.startup,r.home.servicesIntro.cards.kpi],g=[r.home.growtribu.topics.marketing,r.home.growtribu.topics.business,r.home.growtribu.topics.languages,r.home.growtribu.topics.analysis,r.home.growtribu.topics.ai,r.home.growtribu.topics.legal,r.home.growtribu.topics.digital,r.home.growtribu.topics.it],_=[r.home.trust.reasons.allInOne,r.home.trust.reasons.pmiWelcome,r.home.trust.reasons.flexibility,r.home.trust.reasons.skinInGame];return(0,D.jsxs)(`div`,{className:`relative h-[100svh] w-screen overflow-hidden bg-background text-foreground`,children:[(0,D.jsx)(y,{}),(0,D.jsx)(x,{}),(0,D.jsx)(Me,{pos:e,onJump:t}),(0,D.jsxs)(we,{pos:e,onStep:n,children:[(0,D.jsx)(O,{index:0,row:0,col:0,current:e,tone:`lime`,children:(0,D.jsxs)(`div`,{className:`flex max-w-4xl flex-col items-start gap-4 text-left sm:gap-6`,children:[(0,D.jsxs)(`h1`,{"data-anim":!0,className:`font-display text-[2.35rem] font-black leading-[0.95] tracking-tight sm:text-6xl md:text-8xl`,children:[a(`home.hero.titleLine1`),(0,D.jsx)(`br`,{}),a(`home.hero.titleLine2`),(0,D.jsx)(`br`,{}),(0,D.jsx)(`span`,{className:`text-muted-foreground`,children:a(`home.hero.titlePrefix`)}),(0,D.jsx)(Ne,{words:l})]}),(0,D.jsx)(`p`,{"data-anim":!0,className:`max-w-xl text-sm text-muted-foreground sm:text-base md:text-lg`,children:a(`home.hero.subtitle`)}),(0,D.jsxs)(`div`,{"data-anim":!0,className:`flex flex-wrap gap-2 sm:gap-3`,children:[(0,D.jsx)(`a`,{href:nd(`presentation`,i),target:`_blank`,rel:`noopener noreferrer`,children:(0,D.jsx)(ae,{variant:`lime`,type:`button`,children:a(`home.hero.ctaPresentation`)})}),(0,D.jsx)(`a`,{href:nd(`enterprise`,i),target:`_blank`,rel:`noopener noreferrer`,children:(0,D.jsx)(ae,{variant:`azure`,type:`button`,children:a(`home.hero.ctaForBusiness`)})})]})]})}),(0,D.jsx)(O,{index:1,row:0,col:1,current:e,tone:`azure`,children:(0,D.jsxs)(`div`,{className:`w-full max-w-6xl`,children:[(0,D.jsxs)(`div`,{className:`mb-4 text-center md:mb-10`,children:[(0,D.jsxs)(`h2`,{className:`font-display text-2xl font-black leading-tight text-foreground sm:text-3xl md:text-5xl`,children:[a(`home.partners.titlePrefix`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.partners.titleHighlight`)}),a(`home.partners.titleSuffix`)]}),(0,D.jsx)(`p`,{className:`mx-auto mt-2 max-w-2xl text-xs text-foreground/70 sm:mt-3 sm:text-sm md:text-base`,children:a(`home.partners.subtitle`)})]}),(0,D.jsx)(`div`,{className:`group/marquee relative overflow-hidden [mask-image:linear-gradient(to_right,transparent,#000_8%,#000_92%,transparent)]`,children:(0,D.jsx)(`div`,{className:`flex w-max gap-3 md:gap-5 animate-[marquee-left_45s_linear_infinite]`,children:[...f,...f].map((e,t)=>(0,D.jsxs)(`div`,{className:`flex w-[200px] shrink-0 flex-col rounded-2xl border-2 border-white bg-white/90 p-3 shadow-md backdrop-blur-sm sm:w-[240px] md:w-[300px] md:p-5`,children:[(0,D.jsx)(`div`,{className:`flex h-12 items-center justify-center sm:h-16 md:h-20`,children:(0,D.jsx)(`img`,{src:e.logo,alt:a(`home.partners.logoAlt`,{name:e.name}),className:`max-h-full max-w-[80%] object-contain`,loading:`lazy`})}),(0,D.jsx)(`p`,{className:`mt-2 line-clamp-4 text-center text-[10px] leading-snug text-foreground
1/75 sm:mt-3 sm:line-clamp-none sm:text-[11px] md:text-xs`,children:e.desc})]},`${e.key}-${t}`))})})]})}),(0,D.jsx)(O,{index:2,row:0,col:2,current:e,tone:`magenta`,children:(0,D.jsxs)(`div`,{className:`max-w-3xl text-center`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`text-balance font-display text-3xl font-black leading-tight sm:text-5xl md:text-7xl`,children:[a(`home.about.titlePrefix`),(0,D.jsx)(`span`,{className:`text-magenta`,children:a(`home.about.titleHighlight`)})]}),(0,D.jsx)(`p`,{"data-anim":!0,className:`mx-auto mt-4 max-w-2xl text-sm text-muted-foreground sm:mt-6 sm:text-lg`,children:a(`home.about.body`)}),(0,D.jsx)(`div`,{"data-anim":!0,className:`mt-6 flex flex-wrap justify-center gap-2 sm:mt-8 sm:gap-3`,children:p.map(e=>(0,D.jsx)(`span`,{className:`rounded-full border border-black/10 bg-white px-3 py-1.5 text-xs font-medium shadow-sm sm:px-5 sm:py-2 sm:text-sm`,children:e},e))})]})}),(0,D.jsx)(O,{index:3,row:0,col:3,current:e,tone:`neutral`,children:(0,D.jsxs)(`div`,{className:`flex w-full max-w-6xl flex-col items-center gap-3 sm:gap-4 md:gap-10`,children:[(0,D.jsxs)(`div`,{"data-anim":!0,className:`text-center`,children:[(0,D.jsxs)(`h2`,{className:`font-display text-2xl font-black leading-tight sm:text-4xl md:text-5xl`,children:[a(`home.services.titlePrefix`),(0,D.jsx)(`span`,{className:`text-foreground`,children:a(`home.services.titleHighlight`)}),a(`home.services.titleSuffix`)]}),(0,D.jsx)(`div`,{className:`mx-auto mt-3 flex items-center justify-center gap-3 md:mt-6 md:gap-4`,children:[{Icon:fe,c:`var(--brand-lime)`},{Icon:me,c:`var(--brand-magenta)`},{Icon:pe,c:`var(--brand-azure)`}].map(({Icon:e,c:t},n)=>(0,D.jsx)(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-full border border-black/10 bg-white shadow-sm md:h-14 md:w-14`,children:(0,D.jsx)(e,{className:`h-5 w-5 md:h-7 md:w-7`,style:{color:t},strokeWidth:1.4})},n))})]}),(0,D.jsx)(`div`,{"data-anim":!0,className:`grid w-full gap-2 sm:gap-3 md:grid-cols-3 md:gap-5`,children:m.map(({Icon:e,c:t,bg:n,title:r,desc:i,descShort:a,to:o})=>(0,D.jsxs)(s,{to:o,className:`group relative flex flex-row items-center gap-3 overflow-hidden rounded-2xl border-2 border-white p-3 shadow-md transition-all duration-300 hover:-translate-y-1 hover:shadow-xl md:flex-col md:items-start md:gap-0 md:rounded-3xl md:p-6`,style:{background:`linear-gradient(135deg, ${n}40 0%, ${n}18 100%)`},children:[(0,D.jsx)(`div`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-black/5 bg-white shadow-sm md:mb-4 md:h-12 md:w-12`,children:(0,D.jsx)(e,{className:`h-5 w-5 md:h-6 md:w-6`,style:{color:t},strokeWidth:1.6})}),(0,D.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,D.jsx)(`h3`,{className:`font-display text-base font-bold text-foreground md:mb-2 md:text-xl`,children:r}),(0,D.jsxs)(`p`,{className:`text-xs leading-snug text-foreground/80 md:text-sm md:leading-relaxed`,children:[(0,D.jsx)(`span`,{className:`md:hidden`,children:a}),(0,D.jsx)(`span`,{className:`hidden md:inline`,children:i})]})]})]},r))})]})}),(0,D.jsx)(O,{index:4,row:1,col:0,current:e,tone:`azure`,bare:!0,children:(0,D.jsxs)(`div`,{className:`max-w-5xl`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`font-display text-2xl font-black leading-[1.05] tracking-tight sm:text-5xl md:text-6xl`,children:[a(`home.servicesIntro.titleLine1`),(0,D.jsx)(`span`,{className:`block text-azure`,children:a(`home.servicesIntro.titleLine2`)}),(0,D.jsx)(`span`,{className:`block text-muted-foreground`,children:a(`home.servicesIntro.titleLine3`)})]}),(0,D.jsxs)(`p`,{"data-anim":!0,className:`mt-4 max-w-3xl text-sm leading-relaxed text-muted-foreground sm:mt-6 sm:text-base md:mt-8 md:text-xl`,children:[a(`home.servicesIntro.body`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.servicesIntro.bodyHighlight`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,className:`mt-6 grid gap-3 sm:mt-8 sm:gap-4 md:mt-10 md:grid-cols-3 md:gap-6`,children:h.map(({title:e,desc:t})=>(0,D.jsxs)(`div`,{className:`rounded-2xl border border-azure/30 bg-azure/5 p-4 sm:p-5 md:p-6`,children:[(0,D.jsx)(`h3`,{className:`mb-2 font-display text-base font-bold text-azure sm:text-lg md:text-xl`,children:e}),(0,D.jsx)(`p`,{className:`text-sm leading-relaxed text-foreground
1/80 md:text-base`,children:t})]},e))})]})}),(0,D.jsx)(O,{index:5,row:1,col:1,current:e,tone:`magenta`,fill:!0,children:(0,D.jsxs)(`div`,{className:`flex h-full w-full max-w-7xl flex-col`,children:[(0,D.jsxs)(`div`,{className:`shrink-0`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`font-display text-xl font-black leading-[0.95] tracking-tight sm:text-2xl md:text-4xl`,children:[a(`home.cybu.titlePrefix`),(0,D.jsx)(`span`,{style:{color:`var(--brand-magenta)`},children:a(`home.cybu.titleHighlight`)}),a(`home.cybu.titleSuffix`)]}),(0,D.jsx)(`p`,{"data-anim":!0,className:`mt-1 max-w-2xl text-[11px] leading-snug text-muted-foreground line-clamp-2 sm:mt-1.5 sm:text-xs md:mt-2 md:line-clamp-none md:text-sm`,children:a(`home.cybu.body`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,"data-matrix-scroll":!0,className:`mt-2 min-h-0 flex-1 overflow-y-auto overscroll-y-contain touch-pan-y [-webkit-overflow-scrolling:touch] sm:mt-3 md:mt-4`,children:e.row===1&&e.col===1?(0,D.jsx)(`div`,{className:`grid grid-cols-3 gap-1.5 sm:grid-cols-4 sm:gap-2 lg:grid-cols-5 lg:gap-2.5`,children:Od.map(e=>(0,D.jsxs)(`div`,{className:`group flex flex-col items-center gap-0.5 rounded-lg border border-black/10 bg-white p-1.5 text-center shadow-sm transition-transform hover:-translate-y-0.5 sm:gap-1 sm:rounded-xl sm:p-2 md:p-2.5`,style:{borderTopColor:e.accent,borderTopWidth:3},children:[(0,D.jsx)(`div`,{className:`flex h-8 w-8 shrink-0 items-center justify-center sm:h-10 sm:w-10 md:h-14 md:w-14`,children:(0,D.jsx)(`img`,{src:e.img,alt:a(`home.cybu.avatarAlt`,{name:e.name}),width:492,height:492,loading:`lazy`,decoding:`async`,className:`h-full w-full object-contain`})}),(0,D.jsxs)(`div`,{className:`min-w-0 w-full`,children:[(0,D.jsx)(`p`,{className:`truncate font-display text-[9px] font-bold leading-tight sm:text-[10px] md:text-xs`,children:e.name}),(0,D.jsx)(`p`,{className:`mt-0.5 line-clamp-2 text-[8px] uppercase leading-tight tracking-[0.08em] text-muted-foreground sm:text-[9px] md:text-[10px]`,children:e.role}),`pdf`in e&&e.pdf?(0,D.jsx)(`a`,{href:e.pdf,target:`_blank`,rel:`noopener noreferrer`,className:`mt-0.5 hidden text-[9px] font-medium transition-colors hover:text-foreground lg:inline-block lg:text-[10px]`,style:{color:e.accent},children:a(`home.cybu.attachmentLink`)}):(0,D.jsx)(`a`,{href:`mailto:${e.email}`,className:`mt-0.5 hidden truncate text-[9px] font-medium transition-colors hover:text-foreground lg:inline-block lg:text-[10px]`,style:{color:e.accent},children:e.email})]})]},e.name))}):(0,D.jsx)(`div`,{className:`grid grid-cols-3 gap-1.5 sm:grid-cols-4 sm:gap-2 lg:grid-cols-5`,"aria-hidden":!0,children:Od.map(e=>(0,D.jsx)(`div`,{className:`aspect-[5/6] rounded-lg border border-black/10 bg-white/60 sm:rounded-xl`},e.name))})})]})}),(0,D.jsx)(O,{index:6,row:1,col:2,current:e,tone:`lime`,children:(0,D.jsxs)(`div`,{className:`max-w-3xl`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`font-display text-3xl font-black leading-[0.95] tracking-tight sm:text-5xl md:text-7xl`,children:[a(`home.method.intro.titleLine1`),(0,D.jsx)(`br`,{}),a(`home.method.intro.titlePrefix`),(0,D.jsx)(`span`,{className:`text-lime`,children:a(`home.method.intro.titleHighlight`)}),a(`home.method.intro.titleSuffix`)]}),(0,D.jsx)(`p`,{"data-anim":!0,className:`mt-4 max-w-xl text-sm text-muted-foreground sm:mt-5 md:mt-7 md:text-lg`,children:a(`home.method.intro.body`)}),(0,D.jsx)(`div`,{"data-anim":!0,className:`mt-6 flex gap-2 sm:mt-8`,children:[`01`,`02`,`03`].map((e,t)=>(0,D.jsx)(`span`,{className:`rounded-full border border-black/15 bg-white/70 px-3 py-1 font-display text-[11px] font-bold tracking-[0.2em]`,style:{color:[`var(--brand-lime)`,`var(--brand-azure)`,`var(--brand-magenta)`][t]},children:e},e))}),(0,D.jsx)(`p`,{"data-anim":!0,className:`mt-3 text-xs text-muted-foreground`,children:a(`home.method.intro.scrollHint`)})]})}),(0,D.jsx)(Fd,{index:7,row:1,col:3,current:e}),(0,D.jsx)(O,{index:8,row:2,col:0,current:e,tone:`magenta`,children:(0,D.jsxs)(`div`,{className:`w-full`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`mb-4 text-center font-display text-3xl font-black sm:mb-6 md:text-6xl`,children:[a(`home.skills.titlePrefix`),(0,D.jsx)(`span`,{className:`text-magenta`,children:a(`home.skills.titleHighlight`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,children:(0,D.jsx)(Zu,{})})]})}),(0,D.jsx)(O,{index:9,row:2,col:1,current:e,tone:`neutral`,children:(0,D.jsxs)(`div`,{className:`w-full max-w-4xl`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`mb-4 font-display text-3xl font-black sm:mb-8 sm:text-5xl md:text-6xl`,children:[a(`home.video.titlePrefix`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.video.titleHighlight`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,className:`relative aspect-video w-full overflow-hidden rounded-2xl border border-black/10 bg-black/5 shadow-md sm:rounded-3xl`,children:e.row===2&&e.col===1?(0,D.jsx)(rd,{videoId:`4vJ3Z5fsyfU`,title:a(`home.video.iframeTitle`)}):null})]})}),(0,D.jsx)(O,{index:10,row:2,col:2,current:e,tone:`azure`,children:(0,D.jsxs)(`div`,{className:`w-full max-w-2xl text-center`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`mb-2 flex items-center justify-center gap-2 font-display text-2xl font-black sm:gap-3 sm:text-3xl md:mb-4 md:gap-4 md:text-5xl`,children:[(0,D.jsx)(ne,{className:`h-[0.9em] w-[0.9em] shrink-0 text-azure`,"aria-hidden":!0}),(0,D.jsxs)(`span`,{children:[a(`home.social.titlePrefix`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.social.titleHighlight`)})]})]}),(0,D.jsx)(`p`,{"data-anim":!0,className:`mx-auto mb-5 max-w-lg text-sm text-muted-foreground sm:mb-6 md:mb-8 md:text-base`,children:a(`home.social.body`)}),(0,D.jsx)(`div`,{"data-anim":!0,className:`mb-5 sm:mb-6`,children:(0,D.jsx)(`a`,{href:`https://www.linkedin.com/company/cybertribu`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-full bg-azure px-5 py-2.5 text-xs font-semibold uppercase tracking-wider text-foreground transition-all hover:bg-azure-soft sm:px-6 sm:py-3 sm:text-sm`,children:a(`home.social.ctaProfile`)})}),(0,D.jsxs)(`div`,{"data-anim":!0,className:`flex flex-wrap items-center justify-center gap-3 sm:gap-4`,children:[(0,D.jsxs)(`a`,{href:`https://www.instagram.com/cybertribu_official/`,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 rounded-full border border-black/10 bg-white px-4 py-2 text-sm font-semibold text-foreground transition-all hover:bg-azure/10 hover:text-azure`,children:[(0,D.jsx)(te,{className:`h-4 w-4`}),`Instagram`]}),(0,D.jsxs)(`a`,{href:`https://www.facebook.com/CyberTribu/?locale=it_IT`,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 rounded-full border border-black/10 bg-white px-4 py-2 text-sm font-semibold text-foreground transition-all hover:bg-azure/10 hover:text-azure`,children:[(0,D.jsx)(`svg`,{className:`h-4 w-4`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,D.jsx)(`path`,{d:`M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z`})}),`Facebook`]})]})]})}),(0,D.jsx)(O,{index:11,row:2,col:3,current:e,tone:`neutral`,children:(0,D.jsxs)(`div`,{className:`w-full`,children:[(0,D.jsxs)(`h2`,{className:`mb-4 text-center font-display text-3xl font-black sm:mb-6 md:text-5xl`,children:[a(`home.clients.titlePrefix`),(0,D.jsx)(`span`,{className:`text-magenta`,children:a(`home.clients.titleHighlight`)}
1),a(`home.clients.titleSuffix`)]}),(0,D.jsx)(`div`,{"data-anim":!0,children:e.row===2&&e.col===3?(0,D.jsx)($u,{}):(0,D.jsx)(`div`,{className:`mx-auto aspect-[16/9] w-full max-w-6xl rounded-lg bg-black/[0.03]`,"aria-hidden":!0})})]})}),(0,D.jsx)(O,{index:12,row:3,col:0,current:e,tone:`neutral`,children:(0,D.jsxs)(`div`,{className:`w-full`,children:[(0,D.jsxs)(`h2`,{className:`mb-4 text-center font-display text-3xl font-black sm:mb-6 md:text-5xl`,children:[a(`home.projects.titlePrefix`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.projects.titleHighlight`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,children:(0,D.jsx)(ed,{speed:`normal`})}),(0,D.jsx)(`div`,{"data-anim":!0,className:`mt-6 text-center sm:mt-8`,children:(0,D.jsx)(s,{...o(`/progetti-innovativi`,i),children:(0,D.jsx)(ae,{variant:`azure`,children:a(`home.projects.cta`)})})})]})}),(0,D.jsxs)(O,{index:13,row:3,col:1,current:e,tone:`neutral`,bare:!0,children:[(0,D.jsx)(`div`,{className:`absolute inset-0 -z-0`,"aria-hidden":!0,style:{background:`radial-gradient(120% 90% at 85% 10%, #2a6b7f 0%, transparent 55%), radial-gradient(90% 80% at 10% 100%, #b0a3d9 0%, transparent 55%), #1e2749`}}),(0,D.jsxs)(`div`,{className:`relative z-10 mx-auto grid w-full max-w-5xl gap-5 text-white sm:gap-6 md:grid-cols-[1.15fr_1fr] md:items-center md:gap-14`,children:[(0,D.jsxs)(`div`,{"data-anim":!0,className:`flex flex-col gap-4 sm:gap-6`,children:[(0,D.jsx)(`div`,{className:`self-start rounded-2xl px-4 py-3 shadow-lg sm:px-5 sm:py-4`,style:{background:`linear-gradient(135deg, #ffffff 0%, #f5f2fb 55%, #e6dff5 100%)`},children:(0,D.jsx)(`img`,{src:xd.url,alt:a(`home.growtribu.logoAlt`),width:1821,height:462,loading:`lazy`,decoding:`async`,className:`h-10 w-auto sm:h-12 md:h-16`})}),(0,D.jsxs)(`h2`,{className:`font-display text-2xl font-black leading-[1.05] sm:text-3xl md:text-6xl`,children:[a(`home.growtribu.titlePrefix`),(0,D.jsx)(`span`,{className:`inline-block px-2 py-0.5 font-black sm:px-3 sm:py-1`,style:{background:`#2a6b7f`,color:`#ffffff`},children:a(`home.growtribu.titleHighlight`)}),(0,D.jsx)(`br`,{}),a(`home.growtribu.titleSuffix`)]}),(0,D.jsxs)(`p`,{className:`max-w-lg text-sm leading-relaxed text-white/85 sm:text-base md:text-lg`,children:[a(`home.growtribu.bodyBeforeInnovation`),(0,D.jsx)(`strong`,{className:`text-white`,children:a(`home.growtribu.bodyInnovation`)}),a(`home.growtribu.bodyAnd`),(0,D.jsx)(`strong`,{className:`text-white`,children:a(`home.growtribu.bodyEntrepreneurship`)}),a(`home.growtribu.bodyAfterEntrepreneurship`),(0,D.jsx)(`strong`,{className:`text-white`,children:a(`home.growtribu.bodySkills`)}),a(`home.growtribu.bodyAfterSkills`),(0,D.jsx)(`strong`,{className:`text-white`,children:a(`home.growtribu.bodyRealWorld`)}),a(`home.growtribu.bodyAfterRealWorld`)]}),(0,D.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2 pt-1 text-xs text-white/80 sm:gap-x-6 sm:pt-2 sm:text-sm md:text-base`,children:[(0,D.jsx)(`a`,{href:`https://www.growtribu.com`,target:`_blank`,rel:`noreferrer`,className:`underline decoration-[#b0a3d9] decoration-2 underline-offset-4 transition hover:text-[#b0a3d9]`,children:`www.growtribu.com`}),(0,D.jsx)(`a`,{href:`mailto:[email protected]`,className:`underline decoration-[#b0a3d9] decoration-2 underline-offset-4 transition hover:text-[#b0a3d9]`,children:`[email protected]`})]}),(0,D.jsx)(`div`,{className:`pt-1 sm:pt-2`,children:(0,D.jsx)(`a`,{href:`https://www.growtribu.com`,target:`_blank`,rel:`noreferrer`,children:(0,D.jsx)(`span`,{className:`inline-flex items-center gap-2 rounded-full px-5 py-2.5 font-display text-xs font-bold uppercase tracking-wider transition hover:-translate-y-0.5 sm:px-6 sm:py-3 sm:text-sm`,style:{background:`#b0a3d9`,color:`#1e2749`},children:a(`home.growtribu.cta`)})})})]}),(0,D.jsx)(`div`,{"data-anim":!0,className:`grid grid-cols-2 gap-2 text-xs md:gap-3 md:text-sm`,children:g.map(e=>(0,D.jsx)(`div`,{className:`rounded-xl border px-3 py-2 font-display font-bold leading-tight md:py-3`,style:{background:`rgba(255,255,255,0.06)`,borderColor:`rgba(176,163,217,0.35)`,color:`#ffffff`},children:e},e))})]})]}),(0,D.jsx)(O,{index:14,row:3,col:2,current:e,tone:`neutral`,bare:!0,children:(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-4 sm:gap-5 md:gap-7`,children:[(0,D.jsxs)(`h2`,{className:`text-center font-display text-xl font-black sm:text-2xl md:text-4xl`,children:[a(`home.technologies.titlePrefix`),(0,D.jsx)(`span`,{className:`text-azure`,children:a(`home.technologies.titleHighlight`)})]}),(0,D.jsx)(`div`,{"data-anim":!0,className:`relative mx-auto h-[260px] w-full max-w-[420px] sm:h-[340px] sm:max-w-[520px] md:h-[420px] md:max-w-[640px]`,children:[{name:`CyBubble`,logo:id.url,slug:`cybubble`,x:26,y:16},{name:`CyBlocks`,logo:ad.url,slug:`cyblocks`,x:54,y:10},{name:`CyBricks`,logo:od.url,slug:`cybricks`,x:80,y:20},{name:`CyMeet`,logo:sd.url,slug:`cymeet`,x:12,y:42},{name:`CyChat`,logo:cd.url,slug:`cychat`,x:42,y:40},{name:`CyMind`,logo:ld.url,slug:`cymind`,x:70,y:44},{name:`CyRead`,logo:ud.url,slug:`cyread`,x:24,y:64},{name:`CyCalc`,logo:dd.url,slug:`cycalc`,x:54,y:60},{name:`CyCloud`,logo:fd.url,slug:`cycloud`,x:82,y:66},{name:`CyForum`,logo:pd.url,slug:`cyforum`,x:44,y:82}].map((e,t)=>{let n=t*37%26-13,r=t*53%22-11,a=4+t%5*.6,o=t%6*.3;return(0,D.jsxs)(s,{to:`/{-$locale}/tecnologie/$slug`,params:{locale:d(i),slug:e.slug},"aria-label":e.name,className:`group absolute flex -translate-x-1/2 -translate-y-1/2 flex-col items-center gap-1.5`,style:{left:`${e.x}%`,top:`${e.y}%`,animation:`cy-float ${a}s ease-in-out ${o}s infinite`,"--fx":`${n}px`,"--fy":`${r}px`},children:[(0,D.jsx)(`div`,{className:`flex h-11 w-11 items-center justify-center overflow-hidden rounded-xl bg-white shadow-sm transition-transform group-hover:scale-110 sm:h-12 sm:w-12 md:h-16 md:w-16`,children:(0,D.jsx)(`img`,{src:e.logo,alt:e.name,className:`h-full w-full object-contain p-1.5`,loading:`lazy`})}),(0,D.jsx)(`span`,{className:`text-[8px] font-bold uppercase tracking-wider text-muted-foreground sm:text-[9px]`,children:e.name})]},e.name)})}),(0,D.jsx)(`div`,{"data-anim":!0,children:(0,D.jsx)(s,{...o(`/tecnologie-cloud`,i),className:`inline-flex items-center justify-center gap-2 rounded-full bg-azure px-5 py-2.5 text-xs font-semibold uppercase tracking-wider text-foreground transition-all hover:bg-azure-soft sm:px-6 sm:py-3 sm:text-sm`,children:a(`home.technologies.cta`)})})]})}),(0,D.jsx)(O,{index:15,row:3,col:3,current:e,tone:`lime`,children:(0,D.jsxs)(`div`,{className:`w-full max-w-4xl`,children:[(0,D.jsxs)(`h2`,{"data-anim":!0,className:`mb-5 font-display text-3xl font-black sm:mb-8 md:text-5xl`,children:[a(`home.trust.titlePrefix`),(0,D.jsx)(`span`,{className:`text-lime`,children:a(`home.trust.titleHighlight`)})]}),(0,D.jsx)(`div`,{className:`mb-6 grid gap-2 sm:mb-8 sm:gap-3 md:grid-cols-2`,children:_.map(e=>(0,D.jsxs)(`div`,{"data-anim":!0,className:`flex items-start gap-3 rounded-2xl border border-black/10 bg-white p-3 shadow-sm sm:p-4`,children:[(0,D.jsx)(`div`,{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-lime text-foreground sm:h-8 sm:w-8`,children:(0,D.jsx)(ee,{className:`h-3.5 w-3.5 sm:h-4 sm:w-4`,strokeWidth:3})}),(0,D.jsxs)(`div`,{className:`min-w-0 text-left`,children:[(0,D.jsx)(`h3`,{className:`font-display text-sm font-bold sm:text-base`,children:e.title}),(0,D.jsx)(`p`,{className:`text-[11px] text-muted-foreground sm:text-xs`,children:e.desc})]})]},e.title))}),(0,D.jsxs)(`div`,{"data-anim":!0,className:`flex flex-wrap justify-center gap-2 sm:gap-3`,children:[(0,D.jsx)(s,{...o(`/contatti`,i),children:(0,D.jsx)(ae,{variant:`lime`,type:`button`,children:a(`home.trust.ctaWrite`)})}),(0,D.jsx)(s,{...o(`/contatti`,i),children:(0,D.jsx)(ae,{variant:`ghost`,type:`button`,children:a(`home.trust.ctaCall`)})})]})]})})]})]})}function Nd({n:e,Icon:t,accent:n,tag:r,title:i,text:a}){return(0,D.jsxs)(`div`,{className:`grid w-full max-w-6xl items-center gap-3 sm:gap-4 md:grid-cols-2 md:gap-8`,children:[(0,D.jsx)(`div`,{"data-anim":!0,className:`font-display font-black leading-none opacity-90`,style:{color:n,fontSize:`clamp(3.5rem, 18vw, 16rem)`},children:e}),(0,D.jsxs)(`div`,{className:`min-w-0`,children:[(0,D.jsx)(`p`,{"data-anim":!0,className:`mb-2 text-[10px] font-bold uppercase tracking-[0.25em] text-muted-foreground md:text-xs`,style:{color:n},children:r}),(0,D.jsx)(`h3`,{"data-anim":!0,className:`mb-2 font-display text-2xl font-black sm:mb-3 sm:text-4xl md:mb-4 md:text-6xl`,children:i}),(0,D.jsx)(`p`,{"data-anim":!0,className:`text-sm text-muted-foreground sm:text-base md:text-lg`,children:a})]})]})}var Pd=[`explore`,`design`,`launch`];function Fd({index:e,row:t,col:n,current:r}){let i=c(),a=Pd.map((e,t)=>({n:String(t+1).padStart(2,`0`),Icon:[ge,he,re][t],accent:[`var(--brand-lime)`,`var(--brand-azure)`,`var(--brand-magenta)`][t],tone:[`lime`,`azure`,`magenta`][t],tag:i(`home.method.steps.${e}.tag`),title:(0,D.jsxs)(D.Fragment,{children:[i(`home.method.steps.${e}.titleLine1`),(0,D.jsx)(`br`,{}),i(`home.method.steps.${e}.titleLine2`)]}),text:i(`home.method.steps.${e}.text`)})),o=r.row===t&&r.col===n,[s,l]=(0,T.useState)(0),u=(0,T.useRef)(0),d=(0,T.useRef)(null);(0,T.useEffect)(()=>{o&&(l(0),u.current=0)},[o]),(0,T.useLayoutEffect)(()=>{d.current&&w.to(d.current,{yPercent:-s*100,duration:.9,ease:`expo.inOut`})},[s]),(0,T.useLayoutEffect)(()=>
1{if(!o||!d.current)return;let e=d.current.children[s];if(!e)return;let t=e.querySelectorAll(`[data-anim]`),n=w.context(()=>{w.fromTo(t,{y:30,opacity:0,filter:`blur(8px)`},{y:0,opacity:1,filter:`blur(0px)`,duration:.9,stagger:.08,ease:`power3.out`,delay:.25})},e);return()=>n.revert()},[o,s]);let f=(0,T.useCallback)((e,t)=>t===`y`?e===1&&u.current<a.length-1?(u.current+=1,l(u.current),!0):e===-1&&u.current>0?(--u.current,l(u.current),!0):!1:!1,[a.length]);return xe(o?f:null),(0,D.jsxs)(`section`,{"aria-label":i(`home.aria.scene`,{n:e+1,total:16}),className:`grain relative h-[100svh] w-screen overflow-hidden`,style:{background:`radial-gradient(120% 90% at ${s===0?`15% 0%`:s===1?`85% 0%`:`50% 100%`}, color-mix(in oklab, ${a[s].accent} 24%, transparent), transparent 60%), var(--background)`,transition:`background 0.9s ease`},children:[(0,D.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-2 rounded-xl border md:inset-3 md:rounded-2xl`,style:{borderColor:`color-mix(in oklab, ${a[s].accent} 40%, transparent)`,transition:`border-color 0.6s ease`}}),(0,D.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute right-4 top-4 z-20 h-px w-10 md:right-8 md:top-8 md:w-16`,style:{background:a[s].accent,opacity:.6}}),(0,D.jsx)(`div`,{className:`absolute right-3 top-1/2 z-30 flex -translate-y-1/2 flex-col gap-2 md:right-10 md:gap-3`,children:a.map((e,t)=>(0,D.jsx)(`button`,{type:`button`,"aria-label":i(`home.aria.methodStep`,{n:t+1,total:a.length}),onClick:()=>{u.current=t,l(t)},className:`block h-5 w-[3px] rounded-full transition-all md:h-8`,style:{background:t===s?a[s].accent:`color-mix(in oklab, var(--foreground) 18%, transparent)`,transform:t===s?`scaleY(1.25)`:`scaleY(1)`}},t))}),(0,D.jsx)(`div`,{className:`relative h-full w-full overflow-hidden`,children:(0,D.jsx)(`div`,{ref:d,className:`h-full w-full`,children:a.map(e=>(0,D.jsx)(`div`,{className:`flex h-full w-full items-center justify-center overflow-y-auto overscroll-y-contain px-4 py-14 md:px-16 md:py-20`,children:(0,D.jsx)(Nd,{n:e.n,Icon:e.Icon,accent:e.accent,tag:e.tag,title:e.title,text:e.text})},e.n))})})]})}export{Md as component};

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.