diff --git a/assets/Developers-Bv6S9pOl.js b/assets/Developers-Bv6S9pOl.js deleted file mode 100644 index 00b58f18..00000000 --- a/assets/Developers-Bv6S9pOl.js +++ /dev/null @@ -1,11 +0,0 @@ -var De=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||De("Cannot "+s);var r=(t,e,s)=>(le(t,e,"read from private field"),s?s.call(t):e.get(t)),m=(t,e,s)=>e.has(t)?De("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),l=(t,e,s,i)=>(le(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(le(t,e,"access private method"),s);import{S as Ae,p as Te,d as T,s as ue,e as ne,n as tt,i as de,g as Me,t as st,h as rt,k as it,l as Fe,m as Z,o as nt,r as E,u as qe,c as ze,j as a,B as at,G as ot,q as ct,b as lt}from"../script.js";import{m as M}from"./proxy-CSDrDOQ6.js";import{M as ht}from"./map-pin-Dh5sOFp6.js";import{U as ut}from"./users-BmJA6T-g.js";import{S as dt}from"./star-DBf-izIT.js";var S,h,ee,C,L,G,F,D,te,V,K,P,H,U,W,d,Y,fe,pe,me,ge,be,xe,ye,Be,Pe,Ee=(Pe=class extends Ae{constructor(e,s){super();m(this,d);m(this,S);m(this,h);m(this,ee);m(this,C);m(this,L);m(this,G);m(this,F);m(this,D);m(this,te);m(this,V);m(this,K);m(this,P);m(this,H);m(this,U);m(this,W,new Set);this.options=s,l(this,S,e),l(this,D,null),l(this,F,Te()),this.options.experimental_prefetchInRender||r(this,F).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,h).addObserver(this),Ue(r(this,h),this.options)?u(this,d,Y).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,h),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,h),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,be).call(this),u(this,d,xe).call(this),r(this,h).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,h);if(this.options=r(this,S).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof T(this.options.enabled,r(this,h))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,ye).call(this),r(this,h).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,S).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,h),observer:this});const o=this.hasListeners();o&&_e(r(this,h),c,this.options,i)&&u(this,d,Y).call(this),this.updateResult(s),o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||ne(this.options.staleTime,r(this,h))!==ne(i.staleTime,r(this,h)))&&u(this,d,fe).call(this);const n=u(this,d,pe).call(this);o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||n!==r(this,U))&&u(this,d,me).call(this,n)}getOptimisticResult(e){const s=r(this,S).getQueryCache().build(r(this,S),e),i=this.createResult(s,e);return pt(this,i)&&(l(this,C,i),l(this,G,this.options),l(this,L,r(this,h).state)),i}getCurrentResult(){return r(this,C)}trackResult(e,s){const i={};return Object.keys(e).forEach(c=>{Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),e[c])})}),i}trackProp(e){r(this,W).add(e)}getCurrentQuery(){return r(this,h)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,S).defaultQueryOptions(e),i=r(this,S).getQueryCache().build(r(this,S),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,Y).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var ke;const i=r(this,h),c=this.options,o=r(this,C),n=r(this,L),g=r(this,G),f=e!==i?e.state:r(this,ee),{state:R}=e;let p={...R},q=!1,y;if(s._optimisticResults){const j=this.hasListeners(),B=!j&&Ue(e,s),$=j&&_e(e,i,s,c);(B||$)&&(p={...p,...it(R.data,e.options)}),s._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:I,errorUpdatedAt:v,status:x}=p;if(s.select&&p.data!==void 0)if(o&&p.data===(n==null?void 0:n.data)&&s.select===r(this,te))y=r(this,V);else try{l(this,te,s.select),y=s.select(p.data),y=Fe(o==null?void 0:o.data,y,s),l(this,V,y),l(this,D,null)}catch(j){l(this,D,j)}else y=p.data;if(s.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData))j=o.data;else if(j=typeof s.placeholderData=="function"?s.placeholderData((ke=r(this,K))==null?void 0:ke.state.data,r(this,K)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,D,null)}catch(B){l(this,D,B)}j!==void 0&&(x="success",y=Fe(o==null?void 0:o.data,j,s),q=!0)}r(this,D)&&(I=r(this,D),y=r(this,V),v=Date.now(),x="error");const O=p.fetchStatus==="fetching",z=x==="pending",ce=x==="error",Qe=z&&O,Ie=y!==void 0,k={status:x,fetchStatus:p.fetchStatus,isPending:z,isSuccess:x==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:y,dataUpdatedAt:p.dataUpdatedAt,error:I,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!z,isLoadingError:ce&&!Ie,isPaused:p.fetchStatus==="paused",isPlaceholderData:q,isRefetchError:ce&&Ie,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,F)};if(this.options.experimental_prefetchInRender){const j=ie=>{k.status==="error"?ie.reject(k.error):k.data!==void 0&&ie.resolve(k.data)},B=()=>{const ie=l(this,F,k.promise=Te());j(ie)},$=r(this,F);switch($.status){case"pending":e.queryHash===i.queryHash&&j($);break;case"fulfilled":(k.status==="error"||k.data!==$.value)&&B();break;case"rejected":(k.status!=="error"||k.error!==$.reason)&&B();break}}return k}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,L,r(this,h).state),l(this,G,this.options),r(this,L).data!==void 0&&l(this,K,r(this,h)),ue(i,s))return;l(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:n}=this.options,g=typeof n=="function"?n():n;if(g==="all"||!g&&!r(this,W).size)return!0;const b=new Set(g??r(this,W));return this.options.throwOnError&&b.add("error"),Object.keys(r(this,C)).some(f=>{const R=f;return r(this,C)[R]!==s[R]&&b.has(R)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,Be).call(this,{...c,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(this,d,ge).call(this)}},S=new WeakMap,h=new WeakMap,ee=new WeakMap,C=new WeakMap,L=new WeakMap,G=new WeakMap,F=new WeakMap,D=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,P=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,d=new WeakSet,Y=function(e){u(this,d,ye).call(this);let s=r(this,h).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(tt)),s},fe=function(){u(this,d,be).call(this);const e=ne(this.options.staleTime,r(this,h));if(de||r(this,C).isStale||!Me(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,P,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,h)):this.options.refetchInterval)??!1},me=function(e){u(this,d,xe).call(this),l(this,U,e),!(de||T(this.options.enabled,r(this,h))===!1||!Me(r(this,U))||r(this,U)===0)&&l(this,H,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,Y).call(this)},r(this,U)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},be=function(){r(this,P)&&(clearTimeout(r(this,P)),l(this,P,void 0))},xe=function(){r(this,H)&&(clearInterval(r(this,H)),l(this,H,void 0))},ye=function(){const e=r(this,S).getQueryCache().build(r(this,S),this.options);if(e===r(this,h))return;const s=r(this,h);l(this,h,e),l(this,ee,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Z.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,S).getQueryCache().notify({query:r(this,h),type:"observerResultsUpdated"})})},Pe);function ft(t,e){return T(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ue(t,e){return ft(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(T(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function _e(t,e,s,i){return(t!==e||T(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return T(e.enabled,t)!==!1&&t.isStaleByTime(ne(e.staleTime,t))}function pt(t,e){return!ue(t.getCurrentResult(),e)}function Le(t,e){return t.filter(s=>!e.includes(s))}function mt(t,e,s){const i=t.slice(0);return i[e]=s,i}var J,N,A,X,Q,_,se,re,w,we,Re,ae,Oe,je,He,gt=(He=class extends Ae{constructor(e,s,i){super();m(this,w);m(this,J);m(this,N);m(this,A);m(this,X);m(this,Q);m(this,_);m(this,se);m(this,re);l(this,J,e),l(this,X,i),l(this,A,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,w,Oe).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,r(this,Q).forEach(e=>{e.destroy()})}setQueries(e,s,i){l(this,A,e),l(this,X,s),Z.batch(()=>{const c=r(this,Q),o=u(this,w,ae).call(this,r(this,A));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const n=o.map(f=>f.observer),g=n.map(f=>f.getCurrentResult()),b=n.some((f,R)=>f!==c[R]);c.length===n.length&&!b||(l(this,Q,n),l(this,N,g),this.hasListeners()&&(Le(c,n).forEach(f=>{f.destroy()}),Le(n,c).forEach(f=>{f.subscribe(R=>{u(this,w,Oe).call(this,f,R)})}),u(this,w,je).call(this)))})}getCurrentResult(){return r(this,N)}getQueries(){return r(this,Q).map(e=>e.getCurrentQuery())}getObservers(){return r(this,Q)}getOptimisticResult(e,s){const c=u(this,w,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,w,Re).call(this,o??c,s),()=>u(this,w,we).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,A=new WeakMap,X=new WeakMap,Q=new WeakMap,_=new WeakMap,se=new WeakMap,re=new WeakMap,w=new WeakSet,we=function(e,s){const i=u(this,w,ae).call(this,s);return i.map((c,o)=>{const n=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?n:c.observer.trackResult(n,g=>{i.forEach(b=>{b.observer.trackProp(g)})})})},Re=function(e,s){return s?((!r(this,_)||r(this,N)!==r(this,re)||s!==r(this,se))&&(l(this,se,s),l(this,re,r(this,N)),l(this,_,nt(r(this,_),s(e)))),r(this,_)):e},ae=function(e){const s=new Map(r(this,Q).map(c=>[c.options.queryHash,c])),i=[];return e.forEach(c=>{const o=r(this,J).defaultQueryOptions(c),n=s.get(o.queryHash);n?i.push({defaultedQueryOptions:o,observer:n}):i.push({defaultedQueryOptions:o,observer:new Ee(r(this,J),o)})}),i},Oe=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(l(this,N,mt(r(this,N),i,s)),u(this,w,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,_),i=u(this,w,Re).call(this,u(this,w,we).call(this,r(this,N),r(this,A)),(e=r(this,X))==null?void 0:e.combine);s!==i&&Z.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),$e=E.createContext(!1),Ge=()=>E.useContext($e);$e.Provider;function bt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xt=E.createContext(bt()),Ve=()=>E.useContext(xt);function yt(t,e){return typeof t=="function"?t(...e):!!t}function Ce(){}var Ke=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},We=t=>{E.useEffect(()=>{t.clearReset()},[t])},Je=({result:t,errorResetBoundary:e,throwOnError:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&yt(s,[t.error,i]),Xe=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...s)=>Math.max(e(...s),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Se=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,oe=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function vt({queries:t,...e},s){const i=qe(),c=Ge(),o=Ve(),n=E.useMemo(()=>t.map(v=>{const x=i.defaultQueryOptions(v);return x._optimisticResults=c?"isRestoring":"optimistic",x}),[t,i,c]);n.forEach(v=>{Xe(v),Ke(v,o)}),We(o);const[g]=E.useState(()=>new gt(i,n,e)),[b,f,R]=g.getOptimisticResult(n,e.combine),p=!c&&e.subscribed!==!1;E.useSyncExternalStore(E.useCallback(v=>p?g.subscribe(Z.batchCalls(v)):Ce,[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),E.useEffect(()=>{g.setQueries(n,e,{listeners:!1})},[n,e,g]);const y=b.some((v,x)=>Se(n[x],v))?b.flatMap((v,x)=>{const O=n[x];if(O){const z=new Ee(i,O);if(Se(O,v))return oe(O,z,o);Ye(v,c)&&oe(O,z,o)}return[]}):[];if(y.length>0)throw Promise.all(y);const I=b.find((v,x)=>{const O=n[x];return O&&Je({result:v,errorResetBoundary:o,throwOnError:O.throwOnError,query:i.getQueryCache().get(O.queryHash)})});if(I!=null&&I.error)throw I.error;return f(R())}function wt(t,e,s){var p,q,y,I,v;const i=qe(),c=Ge(),o=Ve(),n=i.defaultQueryOptions(t);(q=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||q.call(p,n),n._optimisticResults=c?"isRestoring":"optimistic",Xe(n),Ke(n,o),We(o);const g=!i.getQueryCache().get(n.queryHash),[b]=E.useState(()=>new e(i,n)),f=b.getOptimisticResult(n),R=!c&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(x=>{const O=R?b.subscribe(Z.batchCalls(x)):Ce;return b.updateResult(),O},[b,R]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),E.useEffect(()=>{b.setOptions(n,{listeners:!1})},[n,b]),Se(n,f))throw oe(n,b,o);if(Je({result:f,errorResetBoundary:o,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash)}))throw f.error;if((I=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||I.call(y,n,f),n.experimental_prefetchInRender&&!de&&Ye(f,c)){const x=g?oe(n,b,o):(v=i.getQueryCache().get(n.queryHash))==null?void 0:v.promise;x==null||x.catch(Ce).finally(()=>{b.updateResult()})}return n.notifyOnChangeProps?f:b.trackResult(f)}function Rt(t,e){return wt(t,Ee)}/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ot=ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const jt=ze("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function Ct({user:t,role:e,description:s}){return a.jsxs(M.div,{whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},className:"bg-gradient-to-r from-white to-blue-50 shadow-lg rounded-lg p-6 border border-gray-200 flex flex-col justify-between",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full border-2 border-cornflower-blue"}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-gray-900 text-lg",children:t.name||t.login}),a.jsx("p",{className:"text-sm text-cornflower-blue font-medium",children:e}),t.location&&a.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[a.jsx(ht,{className:"h-4 w-4"}),a.jsx("span",{children:t.location})]})]})]}),a.jsx("p",{className:"mt-4 text-gray-600 flex-grow",children:s}),a.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(ut,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(at,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.public_repos," repos"]})]})]}),a.jsxs("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline transition-colors duration-200",children:[a.jsx(ot,{className:"h-4 w-4 mr-2"})," ","View GitHub Profile →"]})]})}function St({repo:t}){return a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{y:-5,scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors","aria-label":`Visit ${t.name} repository`,children:t.name})}),t.description&&a.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),a.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),a.jsx("span",{children:t.language})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(dt,{className:"h-5 w-5 text-yellow-500"}),a.jsx("span",{children:t.stargazers_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(jt,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:t.forks_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:ct(t.updated_at)})]})]})]})}const Ze="https://api.github.com";function Et(t){const e=localStorage.getItem(t);if(!e)return!0;const{timestamp:s}=JSON.parse(e);return Date.now()-s>36e5}async function et(t,e){if(!Et(e)){const o=localStorage.getItem(e);if(o)return console.log("Serving from cache"),JSON.parse(o).data}console.log("Fetching from GitHub API");const s=await fetch(t);if(!s.ok){const o=await s.json().catch(()=>({}));throw console.error(`GitHub API Error (${s.status}):`,o),new Error(`Failed to fetch data: ${s.statusText}`)}const i=await s.json(),c={data:i,timestamp:Date.now()};return localStorage.setItem(e,JSON.stringify(c)),i}async function Nt(t){const e=`github-user-${t}`,s=`${Ze}/users/${t}`;return et(s,e)}async function Qt(t){const e=`github-org-repos-${t}`,s=`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`;return et(s,e)}const he=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Oversees the development and maintenance of the Snigdha OS core system, ensuring a robust and scalable architecture."},{username:"d3v1l0n",role:"Co-Maintainer & Tools Developer",description:"Specializes in integrating security tools and maintaining critical packages for enhanced system functionality."},{username:"XlebyllleK",role:"Key Developer",description:"Plays a pivotal role in core development, focusing on innovative solutions and system optimizations to enhance functionality."},{username:"iconized",role:"Co-Maintainer & Server Designer",description:"Focuses on designing and optimizing server infrastructures for seamless tool integration and performance."},{username:"alokified",role:"Web Infrastructure Developer",description:"Develops and maintains the web infrastructure, ensuring efficient and secure online operations."},{username:"utkrshift",role:"UI/UX Designer for DM/WM",description:"Leads the design and customization of desktop and window manager interfaces to enhance user experience."}];function _t(){const t=vt({queries:he.map(n=>({queryKey:["github-user",n.username],queryFn:()=>Nt(n.username)}))}),{data:e,isLoading:s,error:i}=Rt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Qt("Snigdha-OS")}),c=t.some(n=>n.isLoading)||s,o=t.some(n=>n.isError)||i;return c?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx(lt,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("p",{className:"text-red-500 text-lg font-semibold",children:"Oops! Something went wrong. Please try again later."})}):a.jsx("div",{className:"py-16 bg-gradient-to-b from-gray-50 to-gray-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Meet Our Team"}),a.jsxs("p",{className:"mt-4 text-lg md:text-xl text-gray-600",children:["The talented developers behind ",a.jsx("span",{className:"text-cornflower-blue font-semibold",children:"Snigdha OS"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-10",children:t.map((n,g)=>n.data&&a.jsx(M.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:g*.2},className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(Ct,{user:n.data,role:he[g].role,description:he[g].description})},n.data.login))}),a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:e==null?void 0:e.map(n=>a.jsx(M.div,{className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(St,{repo:n})},n.id))})]})]})})}export{_t as default}; diff --git a/assets/Donate-BuPUDU4-.js b/assets/Donate-BuPUDU4-.js deleted file mode 100644 index b102a4cc..00000000 --- a/assets/Donate-BuPUDU4-.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,G as f,H as u,r as l}from"../script.js";import{m as a}from"./proxy-CSDrDOQ6.js";import{C as y}from"./check-DuEcDcyK.js";import{U as j}from"./users-BmJA6T-g.js";import{S as N}from"./star-DBf-izIT.js";function w(){return e.jsxs(a.a,{href:"https://github.com/sponsors/eshanized",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},whileTap:{scale:.95},className:"inline-flex items-center gap-3 px-6 py-3 bg-[#2ea44f] text-white rounded-lg shadow-md hover:bg-[#2c974b] transition-all duration-300 ease-out",children:[e.jsx(f,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function h(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const v=.012,S=[{name:"Community Hero",amount:999,description:"Support the ongoing development of Snigdha OS",benefits:["Special recognition on our GitHub repository","Access to sponsor-only updates","Vote on feature priorities"]},{name:"Security Champion",amount:2999,description:"Help shape the future of security testing",benefits:["All Community Hero benefits","Early access to new features","Priority support on GitHub","Exclusive security tips newsletter"],featured:!0},{name:"Enterprise Partner",amount:5999,description:"Perfect for organizations using Snigdha OS",benefits:["All Security Champion benefits","Custom support channel","Training materials access","Team collaboration features","Priority feature requests"]}],m=s=>(s*v).toFixed(2);function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:S.map(s=>e.jsxs(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:`relative rounded-2xl ${s.featured?"bg-gradient-to-b from-cornflower-blue/10 to-cornflower-blue/5 border-2 border-cornflower-blue":"bg-white/80 border border-gray-200"} backdrop-blur-sm p-6 shadow-lg hover:shadow-xl transition-shadow duration-300 transform hover:scale-105`,children:[s.featured&&e.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:e.jsx("span",{className:"px-4 py-1 bg-cornflower-blue text-white text-sm rounded-full",children:"Most Popular"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:s.name}),e.jsxs("div",{className:"mt-2",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:h(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",m(s.amount)]}),e.jsx("span",{className:"text-gray-600",children:" / USD"})]}),e.jsx("p",{className:"mt-2 text-gray-600",children:s.description})]}),e.jsx("ul",{className:"space-y-3 mb-6",children:s.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(y,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:r})]},r))}),e.jsx(a.a,{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${m(s.amount)}`,target:"_blank",rel:"noopener noreferrer",className:`block w-full text-center py-2 px-4 rounded-lg transition-colors ${s.featured?"bg-cornflower-blue text-white hover:bg-blue-600":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:"Make a One-Time Donation"})]},s.name))})}const H=[{label:"Total Sponsors",value:"6+",icon:j,color:"text-blue-500"},{label:"Total Support",value:h(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:N,color:"text-yellow-500"}];function I(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:H.map((s,r)=>e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-white shadow-lg rounded-xl p-6 border border-gray-200 hover:shadow-xl transition-shadow duration-300",children:[e.jsxs("div",{className:"flex items-center mb-4",children:[e.jsx(s.icon,{className:`h-10 w-10 ${s.color} mr-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:s.label})]},s.label))})}const T=[{username:"TIAsCode",description:"Enterprise Partner & Server Provider",amount:"₹82,025.36"},{username:"ixintl",description:"Strategic Development Partner",amount:"₹54,399.36"},{username:"SkullSync",description:"Strategic Development Partner",amount:"₹12,181.36"}],k=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function x(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function _(){const[s,r]=l.useState([]),[c,p]=l.useState([]),[g,d]=l.useState(!0);return l.useEffect(()=>{(async()=>{d(!0);const o=await Promise.all(T.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));r(o);const b=await Promise.all(k.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));p(b),d(!1)})()},[]),g?e.jsx("div",{className:"text-center text-gray-600",children:"Loading..."}):e.jsxs("div",{className:"space-y-16",children:[e.jsxs("div",{className:"bg-gradient-to-r from-cornflower-blue/5 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Key Sponsors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-cornflower-blue/20 shadow-lg hover:shadow-2xl transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-cornflower-blue/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:t.description}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-100/10 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Individual Donors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-indigo-200/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:"Generous Individual Donor"}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]})]})}function G(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 via-white to-gray-100 py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[e.jsx(a.div,{initial:{scale:.8},animate:{scale:1},transition:{duration:.6,bounce:.4},children:e.jsx(u,{className:"h-16 w-16 text-red-500 mx-auto mb-4"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Your support helps us maintain and improve Snigdha OS, keeping it free and open source for the security community."}),e.jsx(a.div,{className:"mt-8",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(w,{})})]}),e.jsxs("div",{className:"space-y-20",children:[e.jsxs("section",{className:"relative",children:[e.jsx("div",{className:"absolute -top-10 -left-10 w-32 h-32 bg-cornflower-blue/10 rounded-full blur-3xl"}),e.jsx(_,{})]}),e.jsx("section",{children:e.jsx(I,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-12",children:"Choose Your Sponsorship Tier"}),e.jsx(D,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-gray-100 rounded-2xl p-10 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:"Your sponsorship directly supports the development of cutting-edge security tools, maintenance of our infrastructure, and helps us keep Snigdha OS at the forefront of security testing. Join our community of sponsors and help shape the future of security testing."})]})]})]})})}export{G as default}; diff --git a/assets/proxy-CSDrDOQ6.js b/assets/proxy-CSDrDOQ6.js deleted file mode 100644 index 729920de..00000000 --- a/assets/proxy-CSDrDOQ6.js +++ /dev/null @@ -1 +0,0 @@ -import{r as S,j as ce}from"../script.js";const bs=S.createContext({});function Qi(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const De=S.createContext(null),ws=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function tr(t=!0){const e=S.useContext(De);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{t&&i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Me=typeof window<"u",er=Me?S.useLayoutEffect:S.useEffect,j=t=>t;let he=j;function Re(t){let e;return()=>(e===void 0&&(e=t()),e)}const ut=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},G=t=>t*1e3,z=t=>t/1e3,nr={skipAnimations:!1,useManualTiming:!1};function sr(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],ir=40;function Vs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Lt.reduce((g,v)=>(g[v]=sr(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,ir),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},m=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((g,v)=>{const T=r[v];return g[v]=(b,P=!1,w=!1)=>(n||m(),T.schedule(b,P,w)),g},{}),cancel:g=>{for(let v=0;vun[t].some(n=>!!e[n])};function rr(t){for(const e in t)ct[e]={...ct[e],...t[e]}}const or=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","ignoreStrict","viewport"]);function Ot(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||or.has(t)}let Ds=t=>!Ot(t);function ar(t){t&&(Ds=e=>e.startsWith("on")?!Ot(e):t(e))}try{ar(require("@emotion/is-prop-valid").default)}catch{}function lr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ds(i)||n===!0&&Ot(i)||!e&&!Ot(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function ur(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Gt=S.createContext({});function At(t){return typeof t=="string"||Array.isArray(t)}function zt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ee=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Le=["initial",...Ee];function Ht(t){return zt(t.animate)||Le.some(e=>At(t[e]))}function Ms(t){return!!(Ht(t)||t.variants)}function cr(t,e){if(Ht(t)){const{initial:n,animate:s}=t;return{initial:n===!1||At(n)?n:void 0,animate:At(s)?s:void 0}}return t.inherit!==!1?e:{}}function hr(t){const{initial:e,animate:n}=cr(t,S.useContext(Gt));return S.useMemo(()=>({initial:e,animate:n}),[cn(e),cn(n)])}function cn(t){return Array.isArray(t)?t.join(" "):t}const fr=Symbol.for("motionComponentSymbol");function it(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dr(t,e,n){return S.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):it(n)&&(n.current=s))},[e])}const Fe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mr="framerAppearId",Rs="data-"+Fe(mr),{schedule:Be,cancel:Vu}=Vs(queueMicrotask,!1),Es=S.createContext({});function pr(t,e,n,s,i){var o,r;const{visualElement:a}=S.useContext(Gt),l=S.useContext(Cs),u=S.useContext(De),c=S.useContext(ws).reducedMotion,h=S.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=S.useContext(Es);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&gr(h.current,n,i,d);const m=S.useRef(!1);S.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const p=n[Rs],y=S.useRef(!!p&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,p))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,p)));return er(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Be.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,p)}),y.current=!1))}),f}function gr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ls(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&it(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ls(t){if(t)return t.options.allowProjection!==!1?t.projection:Ls(t.parent)}function yr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&rr(t);function a(u,c){let h;const f={...S.useContext(ws),...u,layoutId:vr(u)},{isStatic:d}=f,m=hr(u),p=s(u,d);if(!d&&Me){xr();const y=Tr(f);h=y.MeasureLayout,m.visualElement=pr(i,p,f,e,y.ProjectionNode)}return ce.jsxs(Gt.Provider,{value:m,children:[h&&m.visualElement?ce.jsx(h,{visualElement:m.visualElement,...f}):null,n(i,u,dr(p,m.visualElement,c),p,d,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=S.forwardRef(a);return l[fr]=i,l}function vr({layoutId:t}){const e=S.useContext(bs).id;return e&&t!==void 0?e+"-"+t:t}function xr(t,e){S.useContext(Cs).strict}function Tr(t){const{drag:e,layout:n}=ct;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Pr=["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 ke(t){return typeof t!="string"||t.includes("-")?!1:!!(Pr.indexOf(t)>-1||/[A-Z]/u.test(t))}function Fs(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Bs=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"]);function ks(t,e,n,s){Fs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Bs.has(i)?i:Fe(i),e.attrs[i])}const F=t=>!!(t&&t.getVelocity),ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dt=new Set(ft),Nt={};function Sr(t){Object.assign(Nt,t)}function js(t,{layout:e,layoutId:n}){return dt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Nt[t]||t==="opacity")}function je(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(F(i[r])||e.style&&F(e.style[r])||js(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function Is(t,e,n){const s=je(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=ft.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function hn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ie(t,e,n,s){if(typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}const fe=t=>Array.isArray(t),Ar=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),br=t=>fe(t)?t[t.length-1]||0:t;function kt(t){const e=F(t)?t.get():t;return Ar(e)?e.toValue():e}function wr({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:Vr(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Os=t=>(e,n)=>{const s=S.useContext(Gt),i=S.useContext(De),o=()=>wr(t,e,s,i);return n?o():Qi(o)};function Vr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=kt(o[f]);let{initial:r,animate:a}=t;const l=Ht(t),u=Ms(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!zt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Ns=()=>({...Oe(),attrs:{}}),Us=t=>e=>typeof e=="string"&&e.startsWith(t),_s=Us("--"),Cr=Us("var(--"),Ne=t=>Cr(t)?Dr.test(t.split("/*")[0].trim()):!1,Dr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks=(t,e)=>e&&typeof t=="number"?e.transform(t):t,H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},bt={...mt,transform:t=>H(0,1,t)},Ft={...mt,default:1},Dt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Dt("deg"),K=Dt("%"),x=Dt("px"),Mr=Dt("vh"),Rr=Dt("vw"),fn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},Er={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Lr={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:bt,originX:fn,originY:fn,originZ:x},dn={...mt,transform:Math.round},Ue={...Er,...Lr,zIndex:dn,size:x,fillOpacity:bt,strokeOpacity:bt,numOctaves:dn},Fr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Br=ft.length;function kr(t,e,n){let s="",i=!0;for(let o=0;otypeof t=="string"&&t.toLowerCase()==="svg",Ur={useVisualState:Os({scrapeMotionValuesFromProps:Is,createRenderState:Ns,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{Ke(n,s,We(e.tagName),t.transformTemplate),ks(e,n)})}})},_r={useVisualState:Os({scrapeMotionValuesFromProps:je,createRenderState:Oe})};function Ws(t,e,n){for(const s in e)!F(e[s])&&!js(s,n)&&(t[s]=e[s])}function Kr({transformTemplate:t},e){return S.useMemo(()=>{const n=Oe();return _e(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Wr(t,e){const n=t.style||{},s={};return Ws(s,n,t),Object.assign(s,Kr(t,e)),s}function $r(t,e){const n={},s=Wr(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function Gr(t,e,n,s){const i=S.useMemo(()=>{const o=Ns();return Ke(o,e,We(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ws(o,t.style,t),i.style={...o,...i.style}}return i}function zr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(ke(n)?Gr:$r)(s,o,r,n),u=lr(s,typeof n=="string",t),c=n!==S.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=S.useMemo(()=>F(h)?h.get():h,[h]);return S.createElement(n,{...c,children:f})}}function Hr(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...ke(s)?Ur:_r,preloadedFeatures:t,useRender:zr(i),createVisualElement:e,Component:s};return yr(r)}}function $s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;swindow.ScrollTimeline!==void 0);class Yr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s{if(Xr()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qr extends Yr{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function $e(t,e){return t?t[e]||t.default||t:void 0}const de=2e4;function Gs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=de?1/0:e}function Ge(t){return typeof t=="function"}function pn(t,e){t.timeline=e,t.onfinish=null}const ze=t=>Array.isArray(t)&&typeof t[0]=="number",Zr={linearEasing:void 0};function Jr(t,e){const n=Re(t);return()=>{var s;return(s=Zr[e])!==null&&s!==void 0?s:n()}}const Ut=Jr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o`cubic-bezier(${t}, ${e}, ${n}, ${s})`,me={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function Xs(t,e){if(t)return typeof t=="function"&&Ut()?zs(t,e):ze(t)?gt(t):Array.isArray(t)?t.map(n=>Xs(n,e)||me.easeOut):me[t]}const _={x:!1,y:!1};function Ys(){return _.x||_.y}function Qr(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function qs(t,e){const n=Qr(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function gn(t){return e=>{e.pointerType==="touch"||Ys()||t(e)}}function to(t,e,n={}){const[s,i,o]=qs(t,n),r=gn(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=gn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Zs=(t,e)=>e?t===e?!0:Zs(t,e.parentElement):!1,He=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,eo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function no(t){return eo.has(t.tagName)||t.tabIndex!==-1}const yt=new WeakSet;function yn(t){return e=>{e.key==="Enter"&&t(e)}}function Qt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const so=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=yn(()=>{if(yt.has(n))return;Qt(n,"down");const i=yn(()=>{Qt(n,"up")}),o=()=>Qt(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function vn(t){return He(t)&&!Ys()}function io(t,e,n={}){const[s,i,o]=qs(t,n),r=a=>{const l=a.currentTarget;if(!vn(a)||yt.has(l))return;yt.add(l);const u=e(a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!vn(d)||!yt.has(l))&&(yt.delete(l),typeof u=="function"&&u(d,{success:m}))},h=d=>{c(d,n.useGlobalTarget||Zs(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!no(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a.addEventListener("focus",u=>so(u,i),i)}),o}function ro(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}const Js=new Set(["width","height","top","left","right","bottom",...ft]);let jt;function oo(){jt=void 0}const W={now:()=>(jt===void 0&&W.set(E.isProcessing||nr.useManualTiming?E.timestamp:performance.now()),jt),set:t=>{jt=t,queueMicrotask(oo)}};function Xe(t,e){t.indexOf(e)===-1&&t.push(e)}function Ye(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class qe{constructor(){this.subscriptions=[]}add(e){return Xe(this.subscriptions,e),()=>Ye(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o!isNaN(parseFloat(t));class lo{constructor(e,n={}){this.version="11.17.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=W.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ao(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new qe);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xn);return Qs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(t,e){return new lo(t,e)}function uo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function co(t,e){const n=Xt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=br(o[r]);uo(t,r,a)}}function ho(t){return!!(F(t)&&t.add)}function pe(t,e){const n=t.getValue("willChange");if(ho(n))return n.add(e)}function ti(t){return t.props[Rs]}const ei=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,fo=1e-7,mo=12;function po(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ei(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>fo&&++apo(o,0,1,t,n);return o=>o===0||o===1?o:ei(i(o),e,s)}const ni=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,si=t=>e=>1-t(1-e),ii=Mt(.33,1.53,.69,.99),Ze=si(ii),ri=ni(Ze),oi=t=>(t*=2)<1?.5*Ze(t):.5*(2-Math.pow(2,-10*(t-1))),Je=t=>1-Math.sin(Math.acos(t)),ai=si(Je),li=ni(Je),ui=t=>/^0[^.\s]+$/u.test(t);function go(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ui(t):!0}const xt=t=>Math.round(t*1e5)/1e5,Qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yo(t){return t==null}const vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tn=(t,e)=>n=>!!(typeof n=="string"&&vo.test(n)&&n.startsWith(t)||e&&!yo(n)&&Object.prototype.hasOwnProperty.call(n,e)),ci=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Qe);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},xo=t=>H(0,255,t),te={...mt,transform:t=>Math.round(xo(t))},et={test:tn("rgb","red"),parse:ci("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+te.transform(t)+", "+te.transform(e)+", "+te.transform(n)+", "+xt(bt.transform(s))+")"};function To(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ge={test:tn("#"),parse:To,transform:et.transform},rt={test:tn("hsl","hue"),parse:ci("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(xt(e))+", "+K.transform(xt(n))+", "+xt(bt.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||rt.test(t),parse:t=>et.test(t)?et.parse(t):rt.test(t)?rt.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):rt.transform(t)},Po=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function So(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Qe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Po))===null||n===void 0?void 0:n.length)||0)>0}const hi="number",fi="color",Ao="var",bo="var(",Tn="${}",wo=/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 Vt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(wo,l=>(L.test(l)?(s.color.push(o),i.push(fi),n.push(L.parse(l))):l.startsWith(bo)?(s.var.push(o),i.push(Ao),n.push(l)):(s.number.push(o),i.push(hi),n.push(parseFloat(l))),++o,Tn)).split(Tn);return{values:n,split:a,indexes:s,types:i}}function di(t){return Vt(t).values}function mi(t){const{split:e,types:n}=Vt(t),s=e.length;return i=>{let o="";for(let r=0;rtypeof t=="number"?0:t;function Co(t){const e=di(t);return mi(t)(e.map(Vo))}const q={test:So,parse:di,createTransformer:mi,getAnimatableNone:Co},Do=new Set(["brightness","contrast","saturate","opacity"]);function Mo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Qe)||[];if(!s)return t;const i=n.replace(s,"");let o=Do.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ro=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Ro);return e?e.map(Mo).join(" "):t}},Eo={...Ue,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},en=t=>Eo[t];function pi(t,e){let n=en(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Lo=new Set(["auto","none","0"]);function Fo(t,e,n){let s=0,i;for(;st===mt||t===x,Sn=(t,e)=>parseFloat(t.split(", ")[e]),An=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Sn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Sn(o[1],t):0}},Bo=new Set(["x","y","z"]),ko=ft.filter(t=>!Bo.has(t));function jo(t){const e=[];return ko.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:An(4,13),y:An(5,14)};ht.translateX=ht.x;ht.translateY=ht.y;const nt=new Set;let ve=!1,xe=!1;function gi(){if(xe){const t=Array.from(nt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=jo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}xe=!1,ve=!1,nt.forEach(t=>t.complete()),nt.clear()}function yi(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(xe=!0)})}function Io(){yi(),gi()}class nn{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),ve||(ve=!0,V.read(yi),V.resolveKeyframes(gi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Oo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function No(t){const e=Oo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function xi(t,e,n=1){const[s,i]=No(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return vi(r)?parseFloat(r):r}return Ne(i)?xi(i,e,n+1):i}const Ti=t=>e=>e.test(t),Uo={test:t=>t==="auto",parse:t=>t},Pi=[mt,x,K,X,Rr,Mr,Uo],bn=t=>Pi.find(Ti(t));class Si extends nn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const wn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(q.test(t)||t==="0")&&!t.startsWith("url("));function _o(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function Yt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Wo),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const $o=40;class Ai{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=W.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$o?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Io(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Ko(e,s,i,o))if(r)this.options.duration=0;else{l==null||l(Yt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const C=(t,e,n)=>t+(e-t)*n;function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Go({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ee(l,a,t+1/3),o=ee(l,a,t),r=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function _t(t,e){return n=>n>0?e:t}const ne=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},zo=[ge,et,rt],Ho=t=>zo.find(e=>e.test(t));function Vn(t){const e=Ho(t);if(!e)return!1;let n=e.parse(t);return e===rt&&(n=Go(n)),n}const Cn=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return _t(t,e);const i={...n};return o=>(i.red=ne(n.red,s.red,o),i.green=ne(n.green,s.green,o),i.blue=ne(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),et.transform(i))},Xo=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(Xo),Te=new Set(["none","hidden"]);function Yo(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function qo(t,e){return n=>C(t,e,n)}function sn(t){return typeof t=="number"?qo:typeof t=="string"?Ne(t)?_t:L.test(t)?Cn:Qo:Array.isArray(t)?bi:typeof t=="object"?L.test(t)?Cn:Zo:_t}function bi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>sn(o)(o,e[r]));return o=>{for(let r=0;r{for(const o in s)n[o]=s[o](i);return n}}function Jo(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o{const n=q.createTransformer(e),s=Vt(t),i=Vt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Te.has(t)&&!i.values.length||Te.has(e)&&!s.values.length?Yo(t,e):Rt(bi(Jo(s,i),i.values),n):_t(t,e)};function wi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):sn(t)(t,e)}const ta=5;function Vi(t,e,n){const s=Math.max(e-ta,0);return Qs(n-t(s),e-s)}const D={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},Dn=.001;function ea({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=H(D.minDamping,D.maxDamping,r),t=H(D.minDuration,D.maxDuration,z(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Pe(u,r),m=Math.exp(-h);return Dn-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=Pe(Math.pow(u,2),r);return(-i(u)+Dn>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-.001+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=sa(i,o,a);if(t=G(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const na=12;function sa(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function oa(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Mn(t,ra)&&Mn(t,ia))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*H(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=ea(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Ci(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=oa({...n,velocity:-z(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),y=r-o,g=z(Math.sqrt(l/c)),v=Math.abs(y)<5;s||(s=v?D.restSpeed.granular:D.restSpeed.default),i||(i=v?D.restDelta.granular:D.restDelta.default);let T;if(p<1){const P=Pe(g,p);T=w=>{const R=Math.exp(-p*g*w);return r-R*((m+p*g*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(p===1)T=P=>r-Math.exp(-g*P)*(y+(m+g*y)*P);else{const P=g*Math.sqrt(p*p-1);T=w=>{const R=Math.exp(-p*g*w),A=Math.min(P*w,300);return r-R*((m+p*g*y)*Math.sinh(A)+P*y*Math.cosh(A))/P}}const b={calculatedDuration:d&&h||null,next:P=>{const w=T(P);if(d)a.done=P>=h;else{let R=0;p<1&&(R=P===0?G(m):Vi(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(r-w)<=i;a.done=A&&k}return a.value=a.done?r:w,a},toString:()=>{const P=Math.min(Gs(b),de),w=zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Rn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-p*Math.exp(-A/s),T=A=>g+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?g:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=Ci({keyframes:[f.value,m(f.value)],velocity:Vi(T,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:A=>{let k=!1;return!w&&P===void 0&&(k=!0,b(A),R(A)),P!==void 0&&A>=P?w.next(A-P):(!k&&b(A),f)}}}const aa=Mt(.42,0,1,1),la=Mt(0,0,.58,1),Di=Mt(.42,0,.58,1),ua=t=>Array.isArray(t)&&typeof t[0]!="number",En={linear:j,easeIn:aa,easeInOut:Di,easeOut:la,circIn:Je,circInOut:li,circOut:ai,backIn:Ze,backInOut:ri,backOut:ii,anticipate:oi},Ln=t=>{if(ze(t)){he(t.length===4);const[e,n,s,i]=t;return Mt(e,n,s,i)}else if(typeof t=="string")return he(En[t]!==void 0),En[t];return t};function ca(t,e,n){const s=[],i=n||wi,o=t.length-1;for(let r=0;re[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ca(e,s,i),l=a.length,u=c=>{if(r&&c1)for(;hu(H(t[0],t[o-1],c)):u}function fa(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ut(0,e,s);t.push(C(n,1,i))}}function da(t){const e=[0];return fa(e,t.length-1),e}function ma(t,e){return t.map(n=>n*e)}function pa(t,e){return t.map(()=>e||Di).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ua(s)?s.map(Ln):Ln(s),o={done:!1,value:e[0]},r=ma(n&&n.length===e.length?n:da(e),t),a=ha(r,e,{ease:Array.isArray(i)?i:pa(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const ga=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},ya={decay:Rn,inertia:Rn,tween:Kt,keyframes:Kt,spring:Ci},va=t=>t/100;class rn extends Ai{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||nn,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Ge(n)?n:ya[n]||Kt;let l,u;a!==Kt&&typeof e[0]!="number"&&(l=Rt(va,wi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Gs(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=o;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(m==="reverse"?(O=1-O,p&&(O-=p/h)):m==="mirror"&&(b=r)),T=H(0,1,O)*h}const P=v?{done:!1,value:l[0]}:b.next(T);a&&(P.value=a(P.value));let{done:w}=P;!v&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return R&&i!==void 0&&(P.value=Yt(l,this.options,i)),y&&y(P.value),R&&this.finish(),P}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ga,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const xa=new Set(["opacity","clipPath","filter","transform"]);function Ta(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Xs(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Pa=Re(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Sa=2e4;function Aa(t){return Ge(t.type)||t.type==="spring"||!Hs(t.ease)}function ba(t,e){const n=new rn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&othis.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:o,ease:r,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof r=="string"&&Ut()&&wa(r)&&(r=Mi[r]),Aa(this.options)){const{onComplete:f,onUpdate:d,motionValue:m,element:p,...y}=this.options,g=ba(e,y);e=g.keyframes,e.length===1&&(e[1]=e[0]),i=g.duration,o=g.times,r=g.ease,a="keyframes"}const h=Ta(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:r});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(pn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Yt(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return j;const{animation:s}=n;pn(s,e)}return j}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,m=new rn({...d,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),p=G(this.time);u.setWithVelocity(m.sample(p-Wt).value,m.sample(p).value,Wt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return Pa()&&s&&xa.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const Va={type:"spring",stiffness:500,damping:25,restSpeed:10},Ca=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Da={type:"keyframes",duration:.8},Ma={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ra=(t,{keyframes:e})=>e.length>2?Da:dt.has(t)?t.startsWith("scale")?Ca(e[1]):Va:Ma;function Ea({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const on=(t,e,n,s={},i,o)=>r=>{const a=$e(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ea(a)||(c={...c,...Ra(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=Yt(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new qr([])}return!o&&Fn.supports(c)?new Fn(c):new rn(c)};function La({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ri(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&La(c,h))continue;const m={delay:n,...$e(r||{},h)};let p=!1;if(window.MotionHandoffAnimation){const g=ti(t);if(g){const v=window.MotionHandoffAnimation(g,h,V);v!==null&&(m.startTime=v,p=!0)}}pe(t,h),f.start(on(h,f,d,t.shouldReduceMotion&&Js.has(h)?{type:!1}:m,t,p));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&co(t,a)})}),u}function Se(t,e,n={}){var s;const i=Xt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Ri(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return Fa(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function Fa(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Ba).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(Se(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function Ba(t,e){return t.sortNodePosition(e)}function ka(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Se(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Se(t,e,n);else{const i=typeof e=="function"?Xt(t,e,n.custom):e;s=Promise.all(Ri(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ja=Le.length;function Ei(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ei(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>ka(t,n,s)))}function Ua(t){let e=Na(t),n=Bn(),s=!0;const i=l=>(u,c)=>{var h;const f=Xt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Ei(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;ym&&b,k=!1;const O=Array.isArray(T)?T:[T];let st=O.reduce(i(g),{});P===!1&&(st={});const{prevResolvedValues:an={}}=v,Ji={...an,...st},ln=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const $=t.getValue(B);$&&($.liveStyle=!1)};for(const B in Ji){const $=st[B],qt=an[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe($)&&fe(qt)?Zt=!$s($,qt):Zt=$!==qt,Zt?$!=null?ln(B):f.add(B):$!==void 0&&f.has(B)?ln(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=st,v.isActive&&(d={...d,...st}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:g}})))}if(f.size){const y={};f.forEach(g=>{const v=t.getBaseTarget(g),T=t.getValue(g);T&&(T.liveStyle=!0),y[g]=v??null}),h.push({animation:y})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Bn(),s=!0}}}function _a(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!$s(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bn(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}class Z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Ka extends Z{constructor(e){super(e),e.animationState||(e.animationState=Ua(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();zt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Wa=0;class $a extends Z{constructor(){super(...arguments),this.id=Wa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ga={animation:{Feature:Ka},exit:{Feature:$a}};function Ct(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const za=t=>e=>He(e)&&t(e,Et(e));function Tt(t,e,n,s){return Ct(t,e,za(n),s)}const kn=(t,e)=>Math.abs(t-e);function Ha(t,e){const n=kn(t.x,e.x),s=kn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Li{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ie(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Ha(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=E;this.history.push({...m,timestamp:p});const{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=se(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ie(h.type==="pointercancel"?this.lastMoveEventInfo:se(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!He(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Et(e),a=se(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ie(a,this.history)),this.removeListeners=Rt(Tt(this.contextWindow,"pointermove",this.handlePointerMove),Tt(this.contextWindow,"pointerup",this.handlePointerUp),Tt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function se(t,e){return e?{point:e(t.point)}:t}function jn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ie({point:t},e){return{point:t,delta:jn(t,Fi(e)),offset:jn(t,Xa(e)),velocity:Ya(e,.1)}}function Xa(t){return t[0]}function Fi(t){return t[t.length-1]}function Ya(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Fi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const o=z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const Bi=1e-4,qa=1-Bi,Za=1+Bi,ki=.01,Ja=0-ki,Qa=0+ki;function I(t){return t.max-t.min}function tl(t,e,n){return Math.abs(t-e)<=n}function In(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=qa&&t.scale<=Za||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ja&&t.translate<=Qa||isNaN(t.translate))&&(t.translate=0)}function Pt(t,e,n,s){In(t.x,e.x,n.x,s?s.originX:void 0),In(t.y,e.y,n.y,s?s.originY:void 0)}function On(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function el(t,e,n){On(t.x,e.x,n.x),On(t.y,e.y,n.y)}function Nn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function St(t,e,n){Nn(t.x,e.x,n.x),Nn(t.y,e.y,n.y)}function nl(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function Un(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function sl(t,{top:e,left:n,bottom:s,right:i}){return{x:Un(t.x,n,i),y:Un(t.y,e,s)}}function _n(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ut(e.min,e.max-s,t.min):s>i&&(n=ut(t.min,t.max-i,e.min)),H(0,1,n)}function ol(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ae=.35;function al(t=Ae){return t===!1?t=0:t===!0&&(t=Ae),{x:Kn(t,"left","right"),y:Kn(t,"top","bottom")}}function Kn(t,e,n){return{min:Wn(t,e),max:Wn(t,n)}}function Wn(t,e){return typeof t=="number"?t:t[e]||0}const $n=()=>({translate:0,scale:1,origin:0,originPoint:0}),ot=()=>({x:$n(),y:$n()}),Gn=()=>({min:0,max:0}),M=()=>({x:Gn(),y:Gn()});function U(t){return[t("x"),t("y")]}function ji({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ll({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ul(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function re(t){return t===void 0||t===1}function be({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return be(t)||Ii(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ii(t){return zn(t.x)||zn(t.y)}function zn(t){return t&&t!=="0%"}function $t(t,e,n){const s=t-n,i=e*s;return n+i}function Hn(t,e,n,s,i){return i!==void 0&&(t=$t(t,i,s)),$t(t,n,s)+e}function we(t,e=0,n=1,s,i){t.min=Hn(t.min,e,n,s,i),t.max=Hn(t.max,e,n,s,i)}function Oi(t,{x:e,y:n}){we(t.x,e.translate,e.scale,e.originPoint),we(t.y,n.translate,n.scale,n.originPoint)}const Xn=.999999999999,Yn=1.0000000000001;function cl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;aXn&&(e.x=1),e.yXn&&(e.y=1)}function at(t,e){t.min=t.min+e,t.max=t.max+e}function qn(t,e,n,s,i=.5){const o=C(t.min,t.max,i);we(t,e,n,o,s)}function lt(t,e){qn(t.x,e.x,e.scaleX,e.scale,e.originX),qn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ni(t,e){return ji(ul(t.getBoundingClientRect(),e))}function hl(t,e,n){const s=Ni(t,n),{scroll:i}=e;return i&&(at(s.x,i.offset.x),at(s.y,i.offset.y)),s}const Ui=({current:t})=>t?t.ownerDocument.defaultView:null,fl=new WeakMap;class dl{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=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Et(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ro(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(y=>{let g=this.getAxisMotionValue(y).get()||0;if(K.test(g)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(g=I(T)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&V.postRender(()=>m(c,h)),pe(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=ml(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Li(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ui(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=nl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&it(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=sl(i.layoutBox,n):this.constraints=!1,this.elastic=al(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ol(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!it(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=hl(s,i.root,this.visualElement.getTransformPagePoint());let r=il(i.layout.layoutBox,o);if(n){const a=n(ll(r));this.hasMutatedConstraints=!!a,a&&(r=ji(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return pe(this.visualElement,e),s.start(on(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!it(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=rl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Bt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(C(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;fl.set(this.visualElement,this);const e=this.visualElement.current,n=Tt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();it(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const r=Ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ae,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ml(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pl extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new dl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class gl extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Li(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ui(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zn(e),onStart:Zn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Tt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const It={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Jn(t,e.target.x),s=Jn(t,e.target.y);return`${n}% ${s}%`}},yl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const o=q.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class vl extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Sr(xl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),It.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Be.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function _i(t){const[e,n]=tr(),s=S.useContext(bs);return ce.jsx(vl,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Es),isPresent:e,safeToRemove:n})}const xl={borderRadius:{...pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomLeftRadius:pt,borderBottomRightRadius:pt,boxShadow:yl};function Tl(t,e,n){const s=F(t)?t:wt(t);return s.start(on("",s,e,n)),s.animation}function Pl(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Sl=(t,e)=>t.depth-e.depth;class Al{constructor(){this.children=[],this.isDirty=!1}add(e){Xe(this.children,e),this.isDirty=!0}remove(e){Ye(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Sl),this.isDirty=!1,this.children.forEach(e)}}function bl(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Y(s),t(o-e))};return V.read(s,!0),()=>Y(s)}const Ki=["TopLeft","TopRight","BottomLeft","BottomRight"],wl=Ki.length,Qn=t=>typeof t=="string"?parseFloat(t):t,ts=t=>typeof t=="number"||x.test(t);function Vl(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,Cl(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Dl(s))):o&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;rse?1:n(ut(t,e,s))}function ns(t,e){t.min=e.min,t.max=e.max}function N(t,e){ns(t.x,e.x),ns(t.y,e.y)}function ss(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function is(t,e,n,s,i){return t-=e,t=$t(t,1/n,s),i!==void 0&&(t=$t(t,1/i,s)),t}function Ml(t,e=0,n=1,s=.5,i,o=t,r=t){if(K.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=is(t.min,e,n,a,i),t.max=is(t.max,e,n,a,i)}function rs(t,e,[n,s,i],o,r){Ml(t,e[n],e[s],e[i],e.scale,o,r)}const Rl=["x","scaleX","originX"],El=["y","scaleY","originY"];function os(t,e,n,s){rs(t.x,e,Rl,n?n.x:void 0,s?s.x:void 0),rs(t.y,e,El,n?n.y:void 0,s?s.y:void 0)}function as(t){return t.translate===0&&t.scale===1}function $i(t){return as(t.x)&&as(t.y)}function ls(t,e){return t.min===e.min&&t.max===e.max}function Ll(t,e){return ls(t.x,e.x)&&ls(t.y,e.y)}function us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Gi(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function cs(t){return I(t.x)/I(t.y)}function hs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Fl{constructor(){this.members=[]}add(e){Xe(this.members,e),e.scheduleRender()}remove(e){if(Ye(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Bl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vt=typeof window<"u"&&window.MotionDebug!==void 0,oe=["","X","Y","Z"],kl={visibility:"hidden"},fs=1e3;let jl=0;function ae(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function zi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ti(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&zi(s)}function Hi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=jl++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(Nl),this.nodes.forEach($l),this.nodes.forEach(Gl),this.nodes.forEach(Ul),vt&&window.MotionDebug.record(tt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=bl(f,250),It.hasAnimatedSinceResize&&(It.hasAnimatedSinceResize=!1,this.nodes.forEach(ms))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||ql,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!Gi(this.targetLayout,m)||d,T=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const b={...$e(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Y(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(zl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=b/1e3;ps(h.x,r.x,P),ps(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(St(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&Ll(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),p&&(this.animationValues=c,Vl(c,u,this.latestValues,P,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{It.hasAnimatedSinceResize=!0,this.currentAnimation=Tl(0,fs,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Xi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),lt(a,c),Pt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Fl),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ae("z",r,u,this.animationValues);for(let c=0;c{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function Il(t){t.updateLayout()}function Ol(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Xi(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ot();Pt(a,s,n.layoutBox);const l=ot();r?Pt(l,t.applyTransform(i,!0),n.measuredBox):Pt(l,s,n.layoutBox);const u=!$i(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=M();St(m,n.layoutBox,f.layoutBox);const p=M();St(p,s,d.layoutBox),Gi(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Nl(t){vt&&tt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ul(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _l(t){t.clearSnapshot()}function ds(t){t.clearMeasurements()}function Kl(t){t.isLayoutDirty=!1}function Wl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function $l(t){t.resolveTargetDelta()}function Gl(t){t.calcProjection()}function zl(t){t.resetSkewAndRotation()}function Hl(t){t.removeLeadSnapshot()}function ps(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function gs(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function Xl(t,e,n,s){gs(t.x,e.x,n.x,s),gs(t.y,e.y,n.y,s)}function Yl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ql={duration:.45,ease:[.4,0,.1,1]},ys=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vs=ys("applewebkit/")&&!ys("chrome/")?Math.round:j;function xs(t){t.min=vs(t.min),t.max=vs(t.max)}function Zl(t){xs(t.x),xs(t.y)}function Xi(t,e,n){return t==="position"||t==="preserve-aspect"&&!tl(cs(e),cs(n),.2)}function Jl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Ql=Hi({attachResizeListener:(t,e)=>Ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),le={current:void 0},Yi=Hi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!le.current){const t=new Ql({});t.mount(window),t.setOptions({layoutScroll:!0}),le.current=t}return le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),tu={pan:{Feature:gl},drag:{Feature:pl,ProjectionNode:Yi,MeasureLayout:_i}};function Ts(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,Et(e)))}class eu extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=to(e,n=>(Ts(this.node,n,"Start"),s=>Ts(this.node,s,"End"))))}unmount(){}}class nu extends Z{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=Rt(Ct(this.node.current,"focus",()=>this.onFocus()),Ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ps(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,Et(e)))}class su extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=io(e,n=>(Ps(this.node,n,"Start"),(s,{success:i})=>Ps(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ve=new WeakMap,ue=new WeakMap,iu=t=>{const e=Ve.get(t.target);e&&e(t)},ru=t=>{t.forEach(iu)};function ou({root:t,...e}){const n=t||document;ue.has(n)||ue.set(n,{});const s=ue.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(ru,{root:t,...e})),s[i]}function au(t,e,n){const s=ou(e);return Ve.set(t,n),s.observe(t),()=>{Ve.delete(t),s.unobserve(t)}}const lu={some:0,all:1};class uu extends Z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:lu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return au(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(cu(e,n))&&this.startObserver()}unmount(){}}function cu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hu={inView:{Feature:uu},tap:{Feature:su},focus:{Feature:nu},hover:{Feature:eu}},fu={layout:{ProjectionNode:Yi,MeasureLayout:_i}},Ce={current:null},qi={current:!1};function du(){if(qi.current=!0,!!Me)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ce.current=t.matches;t.addListener(e),e()}else Ce.current=!1}const mu=[...Pi,L,q],pu=t=>mu.find(Ti(t)),Ss=new WeakMap;function gu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,wt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,wt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const f=W.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),qi.current||du(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ce.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ss.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=dt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}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 ct){const n=ct[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):M()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=wt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(vi(i)||ui(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=pi(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=Ie(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!F(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new qe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Zi extends yu{constructor(){super(...arguments),this.KeyframeResolver=Si}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vu(t){return window.getComputedStyle(t)}class xu extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=Fs}readValueFromInstance(e,n){if(dt.has(n)){const s=en(n);return s&&s.default||0}else{const s=vu(e),i=(_s(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ni(e,n)}build(e,n,s){_e(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return je(e,n,s)}}class Tu extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(dt.has(n)){const s=en(n);return s&&s.default||0}return n=Bs.has(n)?n:Fe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Is(e,n,s)}build(e,n,s){Ke(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ks(e,n,s,i)}mount(e){this.isSVGTag=We(e.tagName),super.mount(e)}}const Pu=(t,e)=>ke(t)?new Tu(e):new xu(e,{allowProjection:t!==S.Fragment}),Su=Hr({...Ga,...hu,...tu,...fu},Pu),Du=ur(Su);export{Du as m}; diff --git a/assets/About-6acGKBnd.js b/chunk-About-D3Bw6Gz9.js similarity index 97% rename from assets/About-6acGKBnd.js rename to chunk-About-D3Bw6Gz9.js index b9050cbd..d89d7ea6 100644 --- a/assets/About-6acGKBnd.js +++ b/chunk-About-D3Bw6Gz9.js @@ -1,4 +1,4 @@ -import{c as a,j as e,M as n}from"../script.js";import{m as s}from"./proxy-CSDrDOQ6.js";import{U as r}from"./users-BmJA6T-g.js";import{S as o}from"./shield-CO1ZxyRH.js";/** +import{c as a,j as e,M as n}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";import{U as r}from"./chunk-users-R8cL96Sh.js";import{S as o}from"./chunk-shield-D5uwo1pE.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-Developers-BvHvri-J.js b/chunk-Developers-BvHvri-J.js new file mode 100644 index 00000000..d30cb5d9 --- /dev/null +++ b/chunk-Developers-BvHvri-J.js @@ -0,0 +1,11 @@ +var De=t=>{throw TypeError(t)};var le=(t,e,s)=>e.has(t)||De("Cannot "+s);var r=(t,e,s)=>(le(t,e,"read from private field"),s?s.call(t):e.get(t)),m=(t,e,s)=>e.has(t)?De("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),l=(t,e,s,i)=>(le(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(le(t,e,"access private method"),s);import{S as Ae,p as Te,d as T,s as ue,e as ne,n as tt,i as de,g as Me,t as st,h as rt,k as it,l as Fe,m as Z,o as nt,r as E,u as qe,c as ze,j as a,B as at,G as ot,q as ct,b as lt}from"./script.js";import{m as M}from"./chunk-proxy-CI-F7568.js";import{M as ht}from"./chunk-map-pin-DTSv2Ukr.js";import{U as ut}from"./chunk-users-R8cL96Sh.js";import{S as dt}from"./chunk-star-DZY-YPMg.js";var S,h,ee,C,L,G,F,D,te,V,K,P,H,U,W,d,Y,fe,pe,me,ge,be,xe,ye,Be,Pe,Ee=(Pe=class extends Ae{constructor(e,s){super();m(this,d);m(this,S);m(this,h);m(this,ee);m(this,C);m(this,L);m(this,G);m(this,F);m(this,D);m(this,te);m(this,V);m(this,K);m(this,P);m(this,H);m(this,U);m(this,W,new Set);this.options=s,l(this,S,e),l(this,D,null),l(this,F,Te()),this.options.experimental_prefetchInRender||r(this,F).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,h).addObserver(this),Ue(r(this,h),this.options)?u(this,d,Y).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,h),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,h),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,be).call(this),u(this,d,xe).call(this),r(this,h).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,h);if(this.options=r(this,S).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof T(this.options.enabled,r(this,h))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,ye).call(this),r(this,h).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,S).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,h),observer:this});const o=this.hasListeners();o&&_e(r(this,h),c,this.options,i)&&u(this,d,Y).call(this),this.updateResult(s),o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||ne(this.options.staleTime,r(this,h))!==ne(i.staleTime,r(this,h)))&&u(this,d,fe).call(this);const n=u(this,d,pe).call(this);o&&(r(this,h)!==c||T(this.options.enabled,r(this,h))!==T(i.enabled,r(this,h))||n!==r(this,U))&&u(this,d,me).call(this,n)}getOptimisticResult(e){const s=r(this,S).getQueryCache().build(r(this,S),e),i=this.createResult(s,e);return pt(this,i)&&(l(this,C,i),l(this,G,this.options),l(this,L,r(this,h).state)),i}getCurrentResult(){return r(this,C)}trackResult(e,s){const i={};return Object.keys(e).forEach(c=>{Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),e[c])})}),i}trackProp(e){r(this,W).add(e)}getCurrentQuery(){return r(this,h)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,S).defaultQueryOptions(e),i=r(this,S).getQueryCache().build(r(this,S),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,Y).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var ke;const i=r(this,h),c=this.options,o=r(this,C),n=r(this,L),g=r(this,G),f=e!==i?e.state:r(this,ee),{state:R}=e;let p={...R},q=!1,y;if(s._optimisticResults){const j=this.hasListeners(),B=!j&&Ue(e,s),$=j&&_e(e,i,s,c);(B||$)&&(p={...p,...it(R.data,e.options)}),s._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:I,errorUpdatedAt:v,status:x}=p;if(s.select&&p.data!==void 0)if(o&&p.data===(n==null?void 0:n.data)&&s.select===r(this,te))y=r(this,V);else try{l(this,te,s.select),y=s.select(p.data),y=Fe(o==null?void 0:o.data,y,s),l(this,V,y),l(this,D,null)}catch(j){l(this,D,j)}else y=p.data;if(s.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData))j=o.data;else if(j=typeof s.placeholderData=="function"?s.placeholderData((ke=r(this,K))==null?void 0:ke.state.data,r(this,K)):s.placeholderData,s.select&&j!==void 0)try{j=s.select(j),l(this,D,null)}catch(B){l(this,D,B)}j!==void 0&&(x="success",y=Fe(o==null?void 0:o.data,j,s),q=!0)}r(this,D)&&(I=r(this,D),y=r(this,V),v=Date.now(),x="error");const O=p.fetchStatus==="fetching",z=x==="pending",ce=x==="error",Qe=z&&O,Ie=y!==void 0,k={status:x,fetchStatus:p.fetchStatus,isPending:z,isSuccess:x==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:y,dataUpdatedAt:p.dataUpdatedAt,error:I,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!z,isLoadingError:ce&&!Ie,isPaused:p.fetchStatus==="paused",isPlaceholderData:q,isRefetchError:ce&&Ie,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,F)};if(this.options.experimental_prefetchInRender){const j=ie=>{k.status==="error"?ie.reject(k.error):k.data!==void 0&&ie.resolve(k.data)},B=()=>{const ie=l(this,F,k.promise=Te());j(ie)},$=r(this,F);switch($.status){case"pending":e.queryHash===i.queryHash&&j($);break;case"fulfilled":(k.status==="error"||k.data!==$.value)&&B();break;case"rejected":(k.status!=="error"||k.error!==$.reason)&&B();break}}return k}updateResult(e){const s=r(this,C),i=this.createResult(r(this,h),this.options);if(l(this,L,r(this,h).state),l(this,G,this.options),r(this,L).data!==void 0&&l(this,K,r(this,h)),ue(i,s))return;l(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:n}=this.options,g=typeof n=="function"?n():n;if(g==="all"||!g&&!r(this,W).size)return!0;const b=new Set(g??r(this,W));return this.options.throwOnError&&b.add("error"),Object.keys(r(this,C)).some(f=>{const R=f;return r(this,C)[R]!==s[R]&&b.has(R)})};(e==null?void 0:e.listeners)!==!1&&o()&&(c.listeners=!0),u(this,d,Be).call(this,{...c,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&u(this,d,ge).call(this)}},S=new WeakMap,h=new WeakMap,ee=new WeakMap,C=new WeakMap,L=new WeakMap,G=new WeakMap,F=new WeakMap,D=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,P=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,d=new WeakSet,Y=function(e){u(this,d,ye).call(this);let s=r(this,h).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(tt)),s},fe=function(){u(this,d,be).call(this);const e=ne(this.options.staleTime,r(this,h));if(de||r(this,C).isStale||!Me(e))return;const i=st(r(this,C).dataUpdatedAt,e)+1;l(this,P,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,h)):this.options.refetchInterval)??!1},me=function(e){u(this,d,xe).call(this),l(this,U,e),!(de||T(this.options.enabled,r(this,h))===!1||!Me(r(this,U))||r(this,U)===0)&&l(this,H,setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&u(this,d,Y).call(this)},r(this,U)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},be=function(){r(this,P)&&(clearTimeout(r(this,P)),l(this,P,void 0))},xe=function(){r(this,H)&&(clearInterval(r(this,H)),l(this,H,void 0))},ye=function(){const e=r(this,S).getQueryCache().build(r(this,S),this.options);if(e===r(this,h))return;const s=r(this,h);l(this,h,e),l(this,ee,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Z.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,S).getQueryCache().notify({query:r(this,h),type:"observerResultsUpdated"})})},Pe);function ft(t,e){return T(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ue(t,e){return ft(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(T(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function _e(t,e,s,i){return(t!==e||T(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return T(e.enabled,t)!==!1&&t.isStaleByTime(ne(e.staleTime,t))}function pt(t,e){return!ue(t.getCurrentResult(),e)}function Le(t,e){return t.filter(s=>!e.includes(s))}function mt(t,e,s){const i=t.slice(0);return i[e]=s,i}var J,N,A,X,Q,_,se,re,w,we,Re,ae,Oe,je,He,gt=(He=class extends Ae{constructor(e,s,i){super();m(this,w);m(this,J);m(this,N);m(this,A);m(this,X);m(this,Q);m(this,_);m(this,se);m(this,re);l(this,J,e),l(this,X,i),l(this,A,[]),l(this,Q,[]),l(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,w,Oe).call(this,e,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,r(this,Q).forEach(e=>{e.destroy()})}setQueries(e,s,i){l(this,A,e),l(this,X,s),Z.batch(()=>{const c=r(this,Q),o=u(this,w,ae).call(this,r(this,A));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const n=o.map(f=>f.observer),g=n.map(f=>f.getCurrentResult()),b=n.some((f,R)=>f!==c[R]);c.length===n.length&&!b||(l(this,Q,n),l(this,N,g),this.hasListeners()&&(Le(c,n).forEach(f=>{f.destroy()}),Le(n,c).forEach(f=>{f.subscribe(R=>{u(this,w,Oe).call(this,f,R)})}),u(this,w,je).call(this)))})}getCurrentResult(){return r(this,N)}getQueries(){return r(this,Q).map(e=>e.getCurrentQuery())}getObservers(){return r(this,Q)}getOptimisticResult(e,s){const c=u(this,w,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,w,Re).call(this,o??c,s),()=>u(this,w,we).call(this,c,e)]}},J=new WeakMap,N=new WeakMap,A=new WeakMap,X=new WeakMap,Q=new WeakMap,_=new WeakMap,se=new WeakMap,re=new WeakMap,w=new WeakSet,we=function(e,s){const i=u(this,w,ae).call(this,s);return i.map((c,o)=>{const n=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?n:c.observer.trackResult(n,g=>{i.forEach(b=>{b.observer.trackProp(g)})})})},Re=function(e,s){return s?((!r(this,_)||r(this,N)!==r(this,re)||s!==r(this,se))&&(l(this,se,s),l(this,re,r(this,N)),l(this,_,nt(r(this,_),s(e)))),r(this,_)):e},ae=function(e){const s=new Map(r(this,Q).map(c=>[c.options.queryHash,c])),i=[];return e.forEach(c=>{const o=r(this,J).defaultQueryOptions(c),n=s.get(o.queryHash);n?i.push({defaultedQueryOptions:o,observer:n}):i.push({defaultedQueryOptions:o,observer:new Ee(r(this,J),o)})}),i},Oe=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(l(this,N,mt(r(this,N),i,s)),u(this,w,je).call(this))},je=function(){var e;if(this.hasListeners()){const s=r(this,_),i=u(this,w,Re).call(this,u(this,w,we).call(this,r(this,N),r(this,A)),(e=r(this,X))==null?void 0:e.combine);s!==i&&Z.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),$e=E.createContext(!1),Ge=()=>E.useContext($e);$e.Provider;function bt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xt=E.createContext(bt()),Ve=()=>E.useContext(xt);function yt(t,e){return typeof t=="function"?t(...e):!!t}function Ce(){}var Ke=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},We=t=>{E.useEffect(()=>{t.clearReset()},[t])},Je=({result:t,errorResetBoundary:e,throwOnError:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&yt(s,[t.error,i]),Xe=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...s)=>Math.max(e(...s),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Se=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,oe=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function vt({queries:t,...e},s){const i=qe(),c=Ge(),o=Ve(),n=E.useMemo(()=>t.map(v=>{const x=i.defaultQueryOptions(v);return x._optimisticResults=c?"isRestoring":"optimistic",x}),[t,i,c]);n.forEach(v=>{Xe(v),Ke(v,o)}),We(o);const[g]=E.useState(()=>new gt(i,n,e)),[b,f,R]=g.getOptimisticResult(n,e.combine),p=!c&&e.subscribed!==!1;E.useSyncExternalStore(E.useCallback(v=>p?g.subscribe(Z.batchCalls(v)):Ce,[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),E.useEffect(()=>{g.setQueries(n,e,{listeners:!1})},[n,e,g]);const y=b.some((v,x)=>Se(n[x],v))?b.flatMap((v,x)=>{const O=n[x];if(O){const z=new Ee(i,O);if(Se(O,v))return oe(O,z,o);Ye(v,c)&&oe(O,z,o)}return[]}):[];if(y.length>0)throw Promise.all(y);const I=b.find((v,x)=>{const O=n[x];return O&&Je({result:v,errorResetBoundary:o,throwOnError:O.throwOnError,query:i.getQueryCache().get(O.queryHash)})});if(I!=null&&I.error)throw I.error;return f(R())}function wt(t,e,s){var p,q,y,I,v;const i=qe(),c=Ge(),o=Ve(),n=i.defaultQueryOptions(t);(q=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||q.call(p,n),n._optimisticResults=c?"isRestoring":"optimistic",Xe(n),Ke(n,o),We(o);const g=!i.getQueryCache().get(n.queryHash),[b]=E.useState(()=>new e(i,n)),f=b.getOptimisticResult(n),R=!c&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(x=>{const O=R?b.subscribe(Z.batchCalls(x)):Ce;return b.updateResult(),O},[b,R]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),E.useEffect(()=>{b.setOptions(n,{listeners:!1})},[n,b]),Se(n,f))throw oe(n,b,o);if(Je({result:f,errorResetBoundary:o,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash)}))throw f.error;if((I=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||I.call(y,n,f),n.experimental_prefetchInRender&&!de&&Ye(f,c)){const x=g?oe(n,b,o):(v=i.getQueryCache().get(n.queryHash))==null?void 0:v.promise;x==null||x.catch(Ce).finally(()=>{b.updateResult()})}return n.notifyOnChangeProps?f:b.trackResult(f)}function Rt(t,e){return wt(t,Ee)}/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ot=ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jt=ze("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);function Ct({user:t,role:e,description:s}){return a.jsxs(M.div,{whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},className:"bg-gradient-to-r from-white to-blue-50 shadow-lg rounded-lg p-6 border border-gray-200 flex flex-col justify-between",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full border-2 border-cornflower-blue"}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-gray-900 text-lg",children:t.name||t.login}),a.jsx("p",{className:"text-sm text-cornflower-blue font-medium",children:e}),t.location&&a.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[a.jsx(ht,{className:"h-4 w-4"}),a.jsx("span",{children:t.location})]})]})]}),a.jsx("p",{className:"mt-4 text-gray-600 flex-grow",children:s}),a.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(ut,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(at,{className:"h-4 w-4"}),a.jsxs("span",{children:[t.public_repos," repos"]})]})]}),a.jsxs("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline transition-colors duration-200",children:[a.jsx(ot,{className:"h-4 w-4 mr-2"})," ","View GitHub Profile →"]})]})}function St({repo:t}){return a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{y:-5,scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:a.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-cornflower-blue transition-colors","aria-label":`Visit ${t.name} repository`,children:t.name})}),t.description&&a.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),a.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),a.jsx("span",{children:t.language})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(dt,{className:"h-5 w-5 text-yellow-500"}),a.jsx("span",{children:t.stargazers_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(jt,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:t.forks_count})]}),a.jsxs(M.span,{className:"flex items-center gap-1",whileHover:{scale:1.1},children:[a.jsx(Ot,{className:"h-5 w-5 text-gray-600"}),a.jsx("span",{children:ct(t.updated_at)})]})]})]})}const Ze="https://api.github.com";function Et(t){const e=localStorage.getItem(t);if(!e)return!0;const{timestamp:s}=JSON.parse(e);return Date.now()-s>36e5}async function et(t,e){if(!Et(e)){const o=localStorage.getItem(e);if(o)return console.log("Serving from cache"),JSON.parse(o).data}console.log("Fetching from GitHub API");const s=await fetch(t);if(!s.ok){const o=await s.json().catch(()=>({}));throw console.error(`GitHub API Error (${s.status}):`,o),new Error(`Failed to fetch data: ${s.statusText}`)}const i=await s.json(),c={data:i,timestamp:Date.now()};return localStorage.setItem(e,JSON.stringify(c)),i}async function Nt(t){const e=`github-user-${t}`,s=`${Ze}/users/${t}`;return et(s,e)}async function Qt(t){const e=`github-org-repos-${t}`,s=`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`;return et(s,e)}const he=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Oversees the development and maintenance of the Snigdha OS core system, ensuring a robust and scalable architecture."},{username:"d3v1l0n",role:"Co-Maintainer & Tools Developer",description:"Specializes in integrating security tools and maintaining critical packages for enhanced system functionality."},{username:"XlebyllleK",role:"Key Developer",description:"Plays a pivotal role in core development, focusing on innovative solutions and system optimizations to enhance functionality."},{username:"iconized",role:"Co-Maintainer & Server Designer",description:"Focuses on designing and optimizing server infrastructures for seamless tool integration and performance."},{username:"alokified",role:"Web Infrastructure Developer",description:"Develops and maintains the web infrastructure, ensuring efficient and secure online operations."},{username:"utkrshift",role:"UI/UX Designer for DM/WM",description:"Leads the design and customization of desktop and window manager interfaces to enhance user experience."}];function _t(){const t=vt({queries:he.map(n=>({queryKey:["github-user",n.username],queryFn:()=>Nt(n.username)}))}),{data:e,isLoading:s,error:i}=Rt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Qt("Snigdha-OS")}),c=t.some(n=>n.isLoading)||s,o=t.some(n=>n.isError)||i;return c?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx(lt,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("p",{className:"text-red-500 text-lg font-semibold",children:"Oops! Something went wrong. Please try again later."})}):a.jsx("div",{className:"py-16 bg-gradient-to-b from-gray-50 to-gray-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[a.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Meet Our Team"}),a.jsxs("p",{className:"mt-4 text-lg md:text-xl text-gray-600",children:["The talented developers behind ",a.jsx("span",{className:"text-cornflower-blue font-semibold",children:"Snigdha OS"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-10",children:t.map((n,g)=>n.data&&a.jsx(M.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:g*.2},className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(Ct,{user:n.data,role:he[g].role,description:he[g].description})},n.data.login))}),a.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-20 text-center",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:e==null?void 0:e.map(n=>a.jsx(M.div,{className:"bg-white rounded-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 transition-all duration-300",children:a.jsx(St,{repo:n})},n.id))})]})]})})}export{_t as default}; diff --git a/chunk-Donate-5XXAWH-L.js b/chunk-Donate-5XXAWH-L.js new file mode 100644 index 00000000..345820af --- /dev/null +++ b/chunk-Donate-5XXAWH-L.js @@ -0,0 +1 @@ +import{j as e,G as f,H as u,r as l}from"./script.js";import{m as a}from"./chunk-proxy-CI-F7568.js";import{C as y}from"./chunk-check-lgLCXsY5.js";import{U as j}from"./chunk-users-R8cL96Sh.js";import{S as N}from"./chunk-star-DZY-YPMg.js";function w(){return e.jsxs(a.a,{href:"https://github.com/sponsors/eshanized",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},whileTap:{scale:.95},className:"inline-flex items-center gap-3 px-6 py-3 bg-[#2ea44f] text-white rounded-lg shadow-md hover:bg-[#2c974b] transition-all duration-300 ease-out",children:[e.jsx(f,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function h(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const v=.012,S=[{name:"Community Hero",amount:999,description:"Support the ongoing development of Snigdha OS",benefits:["Special recognition on our GitHub repository","Access to sponsor-only updates","Vote on feature priorities"]},{name:"Security Champion",amount:2999,description:"Help shape the future of security testing",benefits:["All Community Hero benefits","Early access to new features","Priority support on GitHub","Exclusive security tips newsletter"],featured:!0},{name:"Enterprise Partner",amount:5999,description:"Perfect for organizations using Snigdha OS",benefits:["All Security Champion benefits","Custom support channel","Training materials access","Team collaboration features","Priority feature requests"]}],m=s=>(s*v).toFixed(2);function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:S.map(s=>e.jsxs(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:`relative rounded-2xl ${s.featured?"bg-gradient-to-b from-cornflower-blue/10 to-cornflower-blue/5 border-2 border-cornflower-blue":"bg-white/80 border border-gray-200"} backdrop-blur-sm p-6 shadow-lg hover:shadow-xl transition-shadow duration-300 transform hover:scale-105`,children:[s.featured&&e.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:e.jsx("span",{className:"px-4 py-1 bg-cornflower-blue text-white text-sm rounded-full",children:"Most Popular"})}),e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:s.name}),e.jsxs("div",{className:"mt-2",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:h(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",m(s.amount)]}),e.jsx("span",{className:"text-gray-600",children:" / USD"})]}),e.jsx("p",{className:"mt-2 text-gray-600",children:s.description})]}),e.jsx("ul",{className:"space-y-3 mb-6",children:s.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(y,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:r})]},r))}),e.jsx(a.a,{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${m(s.amount)}`,target:"_blank",rel:"noopener noreferrer",className:`block w-full text-center py-2 px-4 rounded-lg transition-colors ${s.featured?"bg-cornflower-blue text-white hover:bg-blue-600":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:"Make a One-Time Donation"})]},s.name))})}const H=[{label:"Total Sponsors",value:"6+",icon:j,color:"text-blue-500"},{label:"Total Support",value:h(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:N,color:"text-yellow-500"}];function I(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:H.map((s,r)=>e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-white shadow-lg rounded-xl p-6 border border-gray-200 hover:shadow-xl transition-shadow duration-300",children:[e.jsxs("div",{className:"flex items-center mb-4",children:[e.jsx(s.icon,{className:`h-10 w-10 ${s.color} mr-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:s.label})]},s.label))})}const T=[{username:"TIAsCode",description:"Enterprise Partner & Server Provider",amount:"₹82,025.36"},{username:"ixintl",description:"Strategic Development Partner",amount:"₹54,399.36"},{username:"SkullSync",description:"Strategic Development Partner",amount:"₹12,181.36"}],k=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function x(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function _(){const[s,r]=l.useState([]),[c,p]=l.useState([]),[g,d]=l.useState(!0);return l.useEffect(()=>{(async()=>{d(!0);const o=await Promise.all(T.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));r(o);const b=await Promise.all(k.map(async n=>{const i=await x(n.username);return{...n,name:i.name||n.username,avatar_url:i.avatar_url}}));p(b),d(!1)})()},[]),g?e.jsx("div",{className:"text-center text-gray-600",children:"Loading..."}):e.jsxs("div",{className:"space-y-16",children:[e.jsxs("div",{className:"bg-gradient-to-r from-cornflower-blue/5 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Key Sponsors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-cornflower-blue/20 shadow-lg hover:shadow-2xl transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-cornflower-blue/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:t.description}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]}),e.jsxs("div",{className:"bg-gradient-to-r from-indigo-100/10 to-blue-50/50 rounded-2xl p-8 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-semibold text-gray-900 text-center mb-8",children:"Individual Donors"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((t,o)=>e.jsx(a.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow duration-300",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"p-4 bg-indigo-200/10 rounded-lg shadow-sm",children:e.jsx("img",{src:t.avatar_url,alt:t.name,className:"h-12 w-12 rounded-full object-cover"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-600",children:"Generous Individual Donor"}),e.jsxs("p",{className:"text-lg text-gray-800 mt-3 font-semibold",children:["Amount: ",e.jsx("span",{className:"text-green-600",children:t.amount})]})]})]})},t.username))})]})]})}function G(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 via-white to-gray-100 py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-12",children:[e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center mb-16",children:[e.jsx(a.div,{initial:{scale:.8},animate:{scale:1},transition:{duration:.6,bounce:.4},children:e.jsx(u,{className:"h-16 w-16 text-red-500 mx-auto mb-4"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-extrabold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg md:text-xl text-gray-600 max-w-2xl mx-auto",children:"Your support helps us maintain and improve Snigdha OS, keeping it free and open source for the security community."}),e.jsx(a.div,{className:"mt-8",whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(w,{})})]}),e.jsxs("div",{className:"space-y-20",children:[e.jsxs("section",{className:"relative",children:[e.jsx("div",{className:"absolute -top-10 -left-10 w-32 h-32 bg-cornflower-blue/10 rounded-full blur-3xl"}),e.jsx(_,{})]}),e.jsx("section",{children:e.jsx(I,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 text-center mb-12",children:"Choose Your Sponsorship Tier"}),e.jsx(D,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-gray-100 rounded-2xl p-10 shadow-lg",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600 text-lg leading-relaxed",children:"Your sponsorship directly supports the development of cutting-edge security tools, maintenance of our infrastructure, and helps us keep Snigdha OS at the forefront of security testing. Join our community of sponsors and help shape the future of security testing."})]})]})]})})}export{G as default}; diff --git a/assets/Download-DwEEsqsb.js b/chunk-Download-DiiorW4v.js similarity index 97% rename from assets/Download-DwEEsqsb.js rename to chunk-Download-DiiorW4v.js index 846844b4..3a73832b 100644 --- a/assets/Download-DwEEsqsb.js +++ b/chunk-Download-DiiorW4v.js @@ -1,4 +1,4 @@ -import{c as j,j as e,D as u,r as l,f as y,b as N}from"../script.js";import{m as d}from"./proxy-CSDrDOQ6.js";import{C as v}from"./check-DuEcDcyK.js";import{S}from"./shield-CO1ZxyRH.js";import{G as k,W as f}from"./wifi-B6l3gpzm.js";import{M}from"./map-pin-Dh5sOFp6.js";/** +import{c as j,j as e,D as u,r as l,f as y,b as N}from"./script.js";import{m as d}from"./chunk-proxy-CI-F7568.js";import{C as v}from"./chunk-check-lgLCXsY5.js";import{S}from"./chunk-shield-D5uwo1pE.js";import{G as k,W as f}from"./chunk-wifi-BISiL0Vq.js";import{M}from"./chunk-map-pin-DTSv2Ukr.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Features-vD7Hwkmy.js b/chunk-Features-DhWphOif.js similarity index 98% rename from assets/Features-vD7Hwkmy.js rename to chunk-Features-DhWphOif.js index 40204ac9..350cd411 100644 --- a/assets/Features-vD7Hwkmy.js +++ b/chunk-Features-DhWphOif.js @@ -1,4 +1,4 @@ -import{c as m,j as e,r}from"../script.js";import{m as s}from"./proxy-CSDrDOQ6.js";import{T as p}from"./terminal-XxSrqEZA.js";/** +import{c as m,j as e,r}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";import{T as p}from"./chunk-terminal-DyNnEeID.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Gallery-BoBiz_-4.js b/chunk-Gallery-Bg3-dk_D.js similarity index 97% rename from assets/Gallery-BoBiz_-4.js rename to chunk-Gallery-Bg3-dk_D.js index f230abe7..2dca99cf 100644 --- a/assets/Gallery-BoBiz_-4.js +++ b/chunk-Gallery-Bg3-dk_D.js @@ -1,4 +1,4 @@ -import{c as m,j as a,r,X as d}from"../script.js";import{m as s}from"./proxy-CSDrDOQ6.js";/** +import{c as m,j as a,r,X as d}from"./script.js";import{m as s}from"./chunk-proxy-CI-F7568.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Home-BWgjOUif.js b/chunk-Home-C_ighU1S.js similarity index 97% rename from assets/Home-BWgjOUif.js rename to chunk-Home-C_ighU1S.js index 8fa1058c..530edfc1 100644 --- a/assets/Home-BWgjOUif.js +++ b/chunk-Home-C_ighU1S.js @@ -1,4 +1,4 @@ -import{c as o,j as e,L as m,D as z,a as V,r as d}from"../script.js";import{m as a}from"./proxy-CSDrDOQ6.js";import{U as y}from"./users-BmJA6T-g.js";import{S as f}from"./star-DBf-izIT.js";import{G as I,W as H}from"./wifi-B6l3gpzm.js";import{S as v}from"./shield-CO1ZxyRH.js";import{T as j}from"./terminal-XxSrqEZA.js";/** +import{c as o,j as e,L as m,D as z,a as V,r as d}from"./script.js";import{m as a}from"./chunk-proxy-CI-F7568.js";import{U as y}from"./chunk-users-R8cL96Sh.js";import{S as f}from"./chunk-star-DZY-YPMg.js";import{G as I,W as H}from"./chunk-wifi-BISiL0Vq.js";import{S as v}from"./chunk-shield-D5uwo1pE.js";import{T as j}from"./chunk-terminal-DyNnEeID.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/check-DuEcDcyK.js b/chunk-check-lgLCXsY5.js similarity index 88% rename from assets/check-DuEcDcyK.js rename to chunk-check-lgLCXsY5.js index 6975a4dc..28c9c71c 100644 --- a/assets/check-DuEcDcyK.js +++ b/chunk-check-lgLCXsY5.js @@ -1,4 +1,4 @@ -import{c}from"../script.js";/** +import{c}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/map-pin-Dh5sOFp6.js b/chunk-map-pin-DTSv2Ukr.js similarity index 91% rename from assets/map-pin-Dh5sOFp6.js rename to chunk-map-pin-DTSv2Ukr.js index 95910d80..a9aef42d 100644 --- a/assets/map-pin-Dh5sOFp6.js +++ b/chunk-map-pin-DTSv2Ukr.js @@ -1,4 +1,4 @@ -import{c}from"../script.js";/** +import{c}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/chunk-proxy-CI-F7568.js b/chunk-proxy-CI-F7568.js new file mode 100644 index 00000000..58d71686 --- /dev/null +++ b/chunk-proxy-CI-F7568.js @@ -0,0 +1 @@ +import{r as S,j as ce}from"./script.js";const bs=S.createContext({});function Qi(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const De=S.createContext(null),ws=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function tr(t=!0){const e=S.useContext(De);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{t&&i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Me=typeof window<"u",er=Me?S.useLayoutEffect:S.useEffect,j=t=>t;let he=j;function Re(t){let e;return()=>(e===void 0&&(e=t()),e)}const ut=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},G=t=>t*1e3,z=t=>t/1e3,nr={skipAnimations:!1,useManualTiming:!1};function sr(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Lt=["read","resolveKeyframes","update","preRender","render","postRender"],ir=40;function Vs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Lt.reduce((g,v)=>(g[v]=sr(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,ir),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},m=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((g,v)=>{const T=r[v];return g[v]=(b,P=!1,w=!1)=>(n||m(),T.schedule(b,P,w)),g},{}),cancel:g=>{for(let v=0;vun[t].some(n=>!!e[n])};function rr(t){for(const e in t)ct[e]={...ct[e],...t[e]}}const or=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","ignoreStrict","viewport"]);function Ot(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||or.has(t)}let Ds=t=>!Ot(t);function ar(t){t&&(Ds=e=>e.startsWith("on")?!Ot(e):t(e))}try{ar(require("@emotion/is-prop-valid").default)}catch{}function lr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ds(i)||n===!0&&Ot(i)||!e&&!Ot(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function ur(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Gt=S.createContext({});function At(t){return typeof t=="string"||Array.isArray(t)}function zt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ee=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Le=["initial",...Ee];function Ht(t){return zt(t.animate)||Le.some(e=>At(t[e]))}function Ms(t){return!!(Ht(t)||t.variants)}function cr(t,e){if(Ht(t)){const{initial:n,animate:s}=t;return{initial:n===!1||At(n)?n:void 0,animate:At(s)?s:void 0}}return t.inherit!==!1?e:{}}function hr(t){const{initial:e,animate:n}=cr(t,S.useContext(Gt));return S.useMemo(()=>({initial:e,animate:n}),[cn(e),cn(n)])}function cn(t){return Array.isArray(t)?t.join(" "):t}const fr=Symbol.for("motionComponentSymbol");function it(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dr(t,e,n){return S.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):it(n)&&(n.current=s))},[e])}const Fe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mr="framerAppearId",Rs="data-"+Fe(mr),{schedule:Be,cancel:Vu}=Vs(queueMicrotask,!1),Es=S.createContext({});function pr(t,e,n,s,i){var o,r;const{visualElement:a}=S.useContext(Gt),l=S.useContext(Cs),u=S.useContext(De),c=S.useContext(ws).reducedMotion,h=S.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=S.useContext(Es);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&gr(h.current,n,i,d);const m=S.useRef(!1);S.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const p=n[Rs],y=S.useRef(!!p&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,p))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,p)));return er(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Be.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,p)}),y.current=!1))}),f}function gr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ls(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&it(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ls(t){if(t)return t.options.allowProjection!==!1?t.projection:Ls(t.parent)}function yr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&rr(t);function a(u,c){let h;const f={...S.useContext(ws),...u,layoutId:vr(u)},{isStatic:d}=f,m=hr(u),p=s(u,d);if(!d&&Me){xr();const y=Tr(f);h=y.MeasureLayout,m.visualElement=pr(i,p,f,e,y.ProjectionNode)}return ce.jsxs(Gt.Provider,{value:m,children:[h&&m.visualElement?ce.jsx(h,{visualElement:m.visualElement,...f}):null,n(i,u,dr(p,m.visualElement,c),p,d,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=S.forwardRef(a);return l[fr]=i,l}function vr({layoutId:t}){const e=S.useContext(bs).id;return e&&t!==void 0?e+"-"+t:t}function xr(t,e){S.useContext(Cs).strict}function Tr(t){const{drag:e,layout:n}=ct;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Pr=["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 ke(t){return typeof t!="string"||t.includes("-")?!1:!!(Pr.indexOf(t)>-1||/[A-Z]/u.test(t))}function Fs(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Bs=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"]);function ks(t,e,n,s){Fs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Bs.has(i)?i:Fe(i),e.attrs[i])}const F=t=>!!(t&&t.getVelocity),ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dt=new Set(ft),Nt={};function Sr(t){Object.assign(Nt,t)}function js(t,{layout:e,layoutId:n}){return dt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Nt[t]||t==="opacity")}function je(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(F(i[r])||e.style&&F(e.style[r])||js(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function Is(t,e,n){const s=je(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=ft.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function hn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ie(t,e,n,s){if(typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}const fe=t=>Array.isArray(t),Ar=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),br=t=>fe(t)?t[t.length-1]||0:t;function kt(t){const e=F(t)?t.get():t;return Ar(e)?e.toValue():e}function wr({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:Vr(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Os=t=>(e,n)=>{const s=S.useContext(Gt),i=S.useContext(De),o=()=>wr(t,e,s,i);return n?o():Qi(o)};function Vr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=kt(o[f]);let{initial:r,animate:a}=t;const l=Ht(t),u=Ms(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!zt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),Ns=()=>({...Oe(),attrs:{}}),Us=t=>e=>typeof e=="string"&&e.startsWith(t),_s=Us("--"),Cr=Us("var(--"),Ne=t=>Cr(t)?Dr.test(t.split("/*")[0].trim()):!1,Dr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks=(t,e)=>e&&typeof t=="number"?e.transform(t):t,H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},bt={...mt,transform:t=>H(0,1,t)},Ft={...mt,default:1},Dt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Dt("deg"),K=Dt("%"),x=Dt("px"),Mr=Dt("vh"),Rr=Dt("vw"),fn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},Er={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},Lr={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:X,skewX:X,skewY:X,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:bt,originX:fn,originY:fn,originZ:x},dn={...mt,transform:Math.round},Ue={...Er,...Lr,zIndex:dn,size:x,fillOpacity:bt,strokeOpacity:bt,numOctaves:dn},Fr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Br=ft.length;function kr(t,e,n){let s="",i=!0;for(let o=0;otypeof t=="string"&&t.toLowerCase()==="svg",Ur={useVisualState:Os({scrapeMotionValuesFromProps:Is,createRenderState:Ns,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{Ke(n,s,We(e.tagName),t.transformTemplate),ks(e,n)})}})},_r={useVisualState:Os({scrapeMotionValuesFromProps:je,createRenderState:Oe})};function Ws(t,e,n){for(const s in e)!F(e[s])&&!js(s,n)&&(t[s]=e[s])}function Kr({transformTemplate:t},e){return S.useMemo(()=>{const n=Oe();return _e(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Wr(t,e){const n=t.style||{},s={};return Ws(s,n,t),Object.assign(s,Kr(t,e)),s}function $r(t,e){const n={},s=Wr(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function Gr(t,e,n,s){const i=S.useMemo(()=>{const o=Ns();return Ke(o,e,We(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ws(o,t.style,t),i.style={...o,...i.style}}return i}function zr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(ke(n)?Gr:$r)(s,o,r,n),u=lr(s,typeof n=="string",t),c=n!==S.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=S.useMemo(()=>F(h)?h.get():h,[h]);return S.createElement(n,{...c,children:f})}}function Hr(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...ke(s)?Ur:_r,preloadedFeatures:t,useRender:zr(i),createVisualElement:e,Component:s};return yr(r)}}function $s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;swindow.ScrollTimeline!==void 0);class Yr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s{if(Xr()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qr extends Yr{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function $e(t,e){return t?t[e]||t.default||t:void 0}const de=2e4;function Gs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=de?1/0:e}function Ge(t){return typeof t=="function"}function pn(t,e){t.timeline=e,t.onfinish=null}const ze=t=>Array.isArray(t)&&typeof t[0]=="number",Zr={linearEasing:void 0};function Jr(t,e){const n=Re(t);return()=>{var s;return(s=Zr[e])!==null&&s!==void 0?s:n()}}const Ut=Jr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o`cubic-bezier(${t}, ${e}, ${n}, ${s})`,me={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function Xs(t,e){if(t)return typeof t=="function"&&Ut()?zs(t,e):ze(t)?gt(t):Array.isArray(t)?t.map(n=>Xs(n,e)||me.easeOut):me[t]}const _={x:!1,y:!1};function Ys(){return _.x||_.y}function Qr(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function qs(t,e){const n=Qr(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function gn(t){return e=>{e.pointerType==="touch"||Ys()||t(e)}}function to(t,e,n={}){const[s,i,o]=qs(t,n),r=gn(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=gn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Zs=(t,e)=>e?t===e?!0:Zs(t,e.parentElement):!1,He=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,eo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function no(t){return eo.has(t.tagName)||t.tabIndex!==-1}const yt=new WeakSet;function yn(t){return e=>{e.key==="Enter"&&t(e)}}function Qt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const so=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=yn(()=>{if(yt.has(n))return;Qt(n,"down");const i=yn(()=>{Qt(n,"up")}),o=()=>Qt(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function vn(t){return He(t)&&!Ys()}function io(t,e,n={}){const[s,i,o]=qs(t,n),r=a=>{const l=a.currentTarget;if(!vn(a)||yt.has(l))return;yt.add(l);const u=e(a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!vn(d)||!yt.has(l))&&(yt.delete(l),typeof u=="function"&&u(d,{success:m}))},h=d=>{c(d,n.useGlobalTarget||Zs(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!no(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a.addEventListener("focus",u=>so(u,i),i)}),o}function ro(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}const Js=new Set(["width","height","top","left","right","bottom",...ft]);let jt;function oo(){jt=void 0}const W={now:()=>(jt===void 0&&W.set(E.isProcessing||nr.useManualTiming?E.timestamp:performance.now()),jt),set:t=>{jt=t,queueMicrotask(oo)}};function Xe(t,e){t.indexOf(e)===-1&&t.push(e)}function Ye(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class qe{constructor(){this.subscriptions=[]}add(e){return Xe(this.subscriptions,e),()=>Ye(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o!isNaN(parseFloat(t));class lo{constructor(e,n={}){this.version="11.17.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=W.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ao(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new qe);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xn);return Qs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(t,e){return new lo(t,e)}function uo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function co(t,e){const n=Xt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=br(o[r]);uo(t,r,a)}}function ho(t){return!!(F(t)&&t.add)}function pe(t,e){const n=t.getValue("willChange");if(ho(n))return n.add(e)}function ti(t){return t.props[Rs]}const ei=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,fo=1e-7,mo=12;function po(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ei(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>fo&&++apo(o,0,1,t,n);return o=>o===0||o===1?o:ei(i(o),e,s)}const ni=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,si=t=>e=>1-t(1-e),ii=Mt(.33,1.53,.69,.99),Ze=si(ii),ri=ni(Ze),oi=t=>(t*=2)<1?.5*Ze(t):.5*(2-Math.pow(2,-10*(t-1))),Je=t=>1-Math.sin(Math.acos(t)),ai=si(Je),li=ni(Je),ui=t=>/^0[^.\s]+$/u.test(t);function go(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ui(t):!0}const xt=t=>Math.round(t*1e5)/1e5,Qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yo(t){return t==null}const vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tn=(t,e)=>n=>!!(typeof n=="string"&&vo.test(n)&&n.startsWith(t)||e&&!yo(n)&&Object.prototype.hasOwnProperty.call(n,e)),ci=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Qe);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},xo=t=>H(0,255,t),te={...mt,transform:t=>Math.round(xo(t))},et={test:tn("rgb","red"),parse:ci("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+te.transform(t)+", "+te.transform(e)+", "+te.transform(n)+", "+xt(bt.transform(s))+")"};function To(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ge={test:tn("#"),parse:To,transform:et.transform},rt={test:tn("hsl","hue"),parse:ci("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(xt(e))+", "+K.transform(xt(n))+", "+xt(bt.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||rt.test(t),parse:t=>et.test(t)?et.parse(t):rt.test(t)?rt.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):rt.transform(t)},Po=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function So(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Qe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Po))===null||n===void 0?void 0:n.length)||0)>0}const hi="number",fi="color",Ao="var",bo="var(",Tn="${}",wo=/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 Vt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(wo,l=>(L.test(l)?(s.color.push(o),i.push(fi),n.push(L.parse(l))):l.startsWith(bo)?(s.var.push(o),i.push(Ao),n.push(l)):(s.number.push(o),i.push(hi),n.push(parseFloat(l))),++o,Tn)).split(Tn);return{values:n,split:a,indexes:s,types:i}}function di(t){return Vt(t).values}function mi(t){const{split:e,types:n}=Vt(t),s=e.length;return i=>{let o="";for(let r=0;rtypeof t=="number"?0:t;function Co(t){const e=di(t);return mi(t)(e.map(Vo))}const q={test:So,parse:di,createTransformer:mi,getAnimatableNone:Co},Do=new Set(["brightness","contrast","saturate","opacity"]);function Mo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Qe)||[];if(!s)return t;const i=n.replace(s,"");let o=Do.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ro=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Ro);return e?e.map(Mo).join(" "):t}},Eo={...Ue,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},en=t=>Eo[t];function pi(t,e){let n=en(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Lo=new Set(["auto","none","0"]);function Fo(t,e,n){let s=0,i;for(;st===mt||t===x,Sn=(t,e)=>parseFloat(t.split(", ")[e]),An=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Sn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Sn(o[1],t):0}},Bo=new Set(["x","y","z"]),ko=ft.filter(t=>!Bo.has(t));function jo(t){const e=[];return ko.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:An(4,13),y:An(5,14)};ht.translateX=ht.x;ht.translateY=ht.y;const nt=new Set;let ve=!1,xe=!1;function gi(){if(xe){const t=Array.from(nt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=jo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}xe=!1,ve=!1,nt.forEach(t=>t.complete()),nt.clear()}function yi(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(xe=!0)})}function Io(){yi(),gi()}class nn{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),ve||(ve=!0,V.read(yi),V.resolveKeyframes(gi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Oo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function No(t){const e=Oo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function xi(t,e,n=1){const[s,i]=No(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return vi(r)?parseFloat(r):r}return Ne(i)?xi(i,e,n+1):i}const Ti=t=>e=>e.test(t),Uo={test:t=>t==="auto",parse:t=>t},Pi=[mt,x,K,X,Rr,Mr,Uo],bn=t=>Pi.find(Ti(t));class Si extends nn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const wn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(q.test(t)||t==="0")&&!t.startsWith("url("));function _o(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function Yt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Wo),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const $o=40;class Ai{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=W.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$o?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Io(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Ko(e,s,i,o))if(r)this.options.duration=0;else{l==null||l(Yt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const C=(t,e,n)=>t+(e-t)*n;function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Go({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ee(l,a,t+1/3),o=ee(l,a,t),r=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function _t(t,e){return n=>n>0?e:t}const ne=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},zo=[ge,et,rt],Ho=t=>zo.find(e=>e.test(t));function Vn(t){const e=Ho(t);if(!e)return!1;let n=e.parse(t);return e===rt&&(n=Go(n)),n}const Cn=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return _t(t,e);const i={...n};return o=>(i.red=ne(n.red,s.red,o),i.green=ne(n.green,s.green,o),i.blue=ne(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),et.transform(i))},Xo=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(Xo),Te=new Set(["none","hidden"]);function Yo(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function qo(t,e){return n=>C(t,e,n)}function sn(t){return typeof t=="number"?qo:typeof t=="string"?Ne(t)?_t:L.test(t)?Cn:Qo:Array.isArray(t)?bi:typeof t=="object"?L.test(t)?Cn:Zo:_t}function bi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>sn(o)(o,e[r]));return o=>{for(let r=0;r{for(const o in s)n[o]=s[o](i);return n}}function Jo(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o{const n=q.createTransformer(e),s=Vt(t),i=Vt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Te.has(t)&&!i.values.length||Te.has(e)&&!s.values.length?Yo(t,e):Rt(bi(Jo(s,i),i.values),n):_t(t,e)};function wi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):sn(t)(t,e)}const ta=5;function Vi(t,e,n){const s=Math.max(e-ta,0);return Qs(n-t(s),e-s)}const D={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},Dn=.001;function ea({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=H(D.minDamping,D.maxDamping,r),t=H(D.minDuration,D.maxDuration,z(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Pe(u,r),m=Math.exp(-h);return Dn-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=Pe(Math.pow(u,2),r);return(-i(u)+Dn>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-.001+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=sa(i,o,a);if(t=G(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const na=12;function sa(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function oa(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Mn(t,ra)&&Mn(t,ia))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*H(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=ea(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Ci(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=oa({...n,velocity:-z(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),y=r-o,g=z(Math.sqrt(l/c)),v=Math.abs(y)<5;s||(s=v?D.restSpeed.granular:D.restSpeed.default),i||(i=v?D.restDelta.granular:D.restDelta.default);let T;if(p<1){const P=Pe(g,p);T=w=>{const R=Math.exp(-p*g*w);return r-R*((m+p*g*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(p===1)T=P=>r-Math.exp(-g*P)*(y+(m+g*y)*P);else{const P=g*Math.sqrt(p*p-1);T=w=>{const R=Math.exp(-p*g*w),A=Math.min(P*w,300);return r-R*((m+p*g*y)*Math.sinh(A)+P*y*Math.cosh(A))/P}}const b={calculatedDuration:d&&h||null,next:P=>{const w=T(P);if(d)a.done=P>=h;else{let R=0;p<1&&(R=P===0?G(m):Vi(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(r-w)<=i;a.done=A&&k}return a.value=a.done?r:w,a},toString:()=>{const P=Math.min(Gs(b),de),w=zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Rn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-p*Math.exp(-A/s),T=A=>g+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?g:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=Ci({keyframes:[f.value,m(f.value)],velocity:Vi(T,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:A=>{let k=!1;return!w&&P===void 0&&(k=!0,b(A),R(A)),P!==void 0&&A>=P?w.next(A-P):(!k&&b(A),f)}}}const aa=Mt(.42,0,1,1),la=Mt(0,0,.58,1),Di=Mt(.42,0,.58,1),ua=t=>Array.isArray(t)&&typeof t[0]!="number",En={linear:j,easeIn:aa,easeInOut:Di,easeOut:la,circIn:Je,circInOut:li,circOut:ai,backIn:Ze,backInOut:ri,backOut:ii,anticipate:oi},Ln=t=>{if(ze(t)){he(t.length===4);const[e,n,s,i]=t;return Mt(e,n,s,i)}else if(typeof t=="string")return he(En[t]!==void 0),En[t];return t};function ca(t,e,n){const s=[],i=n||wi,o=t.length-1;for(let r=0;re[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ca(e,s,i),l=a.length,u=c=>{if(r&&c1)for(;hu(H(t[0],t[o-1],c)):u}function fa(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ut(0,e,s);t.push(C(n,1,i))}}function da(t){const e=[0];return fa(e,t.length-1),e}function ma(t,e){return t.map(n=>n*e)}function pa(t,e){return t.map(()=>e||Di).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ua(s)?s.map(Ln):Ln(s),o={done:!1,value:e[0]},r=ma(n&&n.length===e.length?n:da(e),t),a=ha(r,e,{ease:Array.isArray(i)?i:pa(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const ga=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},ya={decay:Rn,inertia:Rn,tween:Kt,keyframes:Kt,spring:Ci},va=t=>t/100;class rn extends Ai{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||nn,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Ge(n)?n:ya[n]||Kt;let l,u;a!==Kt&&typeof e[0]!="number"&&(l=Rt(va,wi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Gs(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=o;if(d){const A=Math.min(this.currentTime,c)/h;let k=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(m==="reverse"?(O=1-O,p&&(O-=p/h)):m==="mirror"&&(b=r)),T=H(0,1,O)*h}const P=v?{done:!1,value:l[0]}:b.next(T);a&&(P.value=a(P.value));let{done:w}=P;!v&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return R&&i!==void 0&&(P.value=Yt(l,this.options,i)),y&&y(P.value),R&&this.finish(),P}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ga,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const xa=new Set(["opacity","clipPath","filter","transform"]);function Ta(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Xs(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Pa=Re(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Sa=2e4;function Aa(t){return Ge(t.type)||t.type==="spring"||!Hs(t.ease)}function ba(t,e){const n=new rn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&othis.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:o,ease:r,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof r=="string"&&Ut()&&wa(r)&&(r=Mi[r]),Aa(this.options)){const{onComplete:f,onUpdate:d,motionValue:m,element:p,...y}=this.options,g=ba(e,y);e=g.keyframes,e.length===1&&(e[1]=e[0]),i=g.duration,o=g.times,r=g.ease,a="keyframes"}const h=Ta(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:r});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(pn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Yt(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return j;const{animation:s}=n;pn(s,e)}return j}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,m=new rn({...d,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),p=G(this.time);u.setWithVelocity(m.sample(p-Wt).value,m.sample(p).value,Wt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return Pa()&&s&&xa.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const Va={type:"spring",stiffness:500,damping:25,restSpeed:10},Ca=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Da={type:"keyframes",duration:.8},Ma={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ra=(t,{keyframes:e})=>e.length>2?Da:dt.has(t)?t.startsWith("scale")?Ca(e[1]):Va:Ma;function Ea({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const on=(t,e,n,s={},i,o)=>r=>{const a=$e(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ea(a)||(c={...c,...Ra(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=Yt(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new qr([])}return!o&&Fn.supports(c)?new Fn(c):new rn(c)};function La({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ri(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&La(c,h))continue;const m={delay:n,...$e(r||{},h)};let p=!1;if(window.MotionHandoffAnimation){const g=ti(t);if(g){const v=window.MotionHandoffAnimation(g,h,V);v!==null&&(m.startTime=v,p=!0)}}pe(t,h),f.start(on(h,f,d,t.shouldReduceMotion&&Js.has(h)?{type:!1}:m,t,p));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&co(t,a)})}),u}function Se(t,e,n={}){var s;const i=Xt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Ri(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return Fa(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function Fa(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Ba).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(Se(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function Ba(t,e){return t.sortNodePosition(e)}function ka(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Se(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Se(t,e,n);else{const i=typeof e=="function"?Xt(t,e,n.custom):e;s=Promise.all(Ri(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ja=Le.length;function Ei(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ei(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>ka(t,n,s)))}function Ua(t){let e=Na(t),n=Bn(),s=!0;const i=l=>(u,c)=>{var h;const f=Xt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Ei(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;ym&&b,k=!1;const O=Array.isArray(T)?T:[T];let st=O.reduce(i(g),{});P===!1&&(st={});const{prevResolvedValues:an={}}=v,Ji={...an,...st},ln=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const $=t.getValue(B);$&&($.liveStyle=!1)};for(const B in Ji){const $=st[B],qt=an[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe($)&&fe(qt)?Zt=!$s($,qt):Zt=$!==qt,Zt?$!=null?ln(B):f.add(B):$!==void 0&&f.has(B)?ln(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=st,v.isActive&&(d={...d,...st}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:g}})))}if(f.size){const y={};f.forEach(g=>{const v=t.getBaseTarget(g),T=t.getValue(g);T&&(T.liveStyle=!0),y[g]=v??null}),h.push({animation:y})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Bn(),s=!0}}}function _a(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!$s(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bn(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}class Z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Ka extends Z{constructor(e){super(e),e.animationState||(e.animationState=Ua(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();zt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Wa=0;class $a extends Z{constructor(){super(...arguments),this.id=Wa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ga={animation:{Feature:Ka},exit:{Feature:$a}};function Ct(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const za=t=>e=>He(e)&&t(e,Et(e));function Tt(t,e,n,s){return Ct(t,e,za(n),s)}const kn=(t,e)=>Math.abs(t-e);function Ha(t,e){const n=kn(t.x,e.x),s=kn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Li{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ie(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Ha(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=E;this.history.push({...m,timestamp:p});const{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=se(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ie(h.type==="pointercancel"?this.lastMoveEventInfo:se(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!He(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Et(e),a=se(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ie(a,this.history)),this.removeListeners=Rt(Tt(this.contextWindow,"pointermove",this.handlePointerMove),Tt(this.contextWindow,"pointerup",this.handlePointerUp),Tt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function se(t,e){return e?{point:e(t.point)}:t}function jn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ie({point:t},e){return{point:t,delta:jn(t,Fi(e)),offset:jn(t,Xa(e)),velocity:Ya(e,.1)}}function Xa(t){return t[0]}function Fi(t){return t[t.length-1]}function Ya(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Fi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const o=z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const Bi=1e-4,qa=1-Bi,Za=1+Bi,ki=.01,Ja=0-ki,Qa=0+ki;function I(t){return t.max-t.min}function tl(t,e,n){return Math.abs(t-e)<=n}function In(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=qa&&t.scale<=Za||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ja&&t.translate<=Qa||isNaN(t.translate))&&(t.translate=0)}function Pt(t,e,n,s){In(t.x,e.x,n.x,s?s.originX:void 0),In(t.y,e.y,n.y,s?s.originY:void 0)}function On(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function el(t,e,n){On(t.x,e.x,n.x),On(t.y,e.y,n.y)}function Nn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function St(t,e,n){Nn(t.x,e.x,n.x),Nn(t.y,e.y,n.y)}function nl(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function Un(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function sl(t,{top:e,left:n,bottom:s,right:i}){return{x:Un(t.x,n,i),y:Un(t.y,e,s)}}function _n(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ut(e.min,e.max-s,t.min):s>i&&(n=ut(t.min,t.max-i,e.min)),H(0,1,n)}function ol(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ae=.35;function al(t=Ae){return t===!1?t=0:t===!0&&(t=Ae),{x:Kn(t,"left","right"),y:Kn(t,"top","bottom")}}function Kn(t,e,n){return{min:Wn(t,e),max:Wn(t,n)}}function Wn(t,e){return typeof t=="number"?t:t[e]||0}const $n=()=>({translate:0,scale:1,origin:0,originPoint:0}),ot=()=>({x:$n(),y:$n()}),Gn=()=>({min:0,max:0}),M=()=>({x:Gn(),y:Gn()});function U(t){return[t("x"),t("y")]}function ji({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ll({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ul(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function re(t){return t===void 0||t===1}function be({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return be(t)||Ii(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ii(t){return zn(t.x)||zn(t.y)}function zn(t){return t&&t!=="0%"}function $t(t,e,n){const s=t-n,i=e*s;return n+i}function Hn(t,e,n,s,i){return i!==void 0&&(t=$t(t,i,s)),$t(t,n,s)+e}function we(t,e=0,n=1,s,i){t.min=Hn(t.min,e,n,s,i),t.max=Hn(t.max,e,n,s,i)}function Oi(t,{x:e,y:n}){we(t.x,e.translate,e.scale,e.originPoint),we(t.y,n.translate,n.scale,n.originPoint)}const Xn=.999999999999,Yn=1.0000000000001;function cl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;aXn&&(e.x=1),e.yXn&&(e.y=1)}function at(t,e){t.min=t.min+e,t.max=t.max+e}function qn(t,e,n,s,i=.5){const o=C(t.min,t.max,i);we(t,e,n,o,s)}function lt(t,e){qn(t.x,e.x,e.scaleX,e.scale,e.originX),qn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ni(t,e){return ji(ul(t.getBoundingClientRect(),e))}function hl(t,e,n){const s=Ni(t,n),{scroll:i}=e;return i&&(at(s.x,i.offset.x),at(s.y,i.offset.y)),s}const Ui=({current:t})=>t?t.ownerDocument.defaultView:null,fl=new WeakMap;class dl{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=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Et(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ro(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(y=>{let g=this.getAxisMotionValue(y).get()||0;if(K.test(g)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(g=I(T)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&V.postRender(()=>m(c,h)),pe(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=ml(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Li(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ui(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Bt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=nl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&it(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=sl(i.layoutBox,n):this.constraints=!1,this.elastic=al(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ol(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!it(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=hl(s,i.root,this.visualElement.getTransformPagePoint());let r=il(i.layout.layoutBox,o);if(n){const a=n(ll(r));this.hasMutatedConstraints=!!a,a&&(r=ji(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return pe(this.visualElement,e),s.start(on(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Bt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!it(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=rl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Bt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(C(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;fl.set(this.visualElement,this);const e=this.visualElement.current,n=Tt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();it(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const r=Ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ae,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ml(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pl extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new dl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class gl extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Li(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ui(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zn(e),onStart:Zn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Tt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const It={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Jn(t,e.target.x),s=Jn(t,e.target.y);return`${n}% ${s}%`}},yl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const o=q.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class vl extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Sr(xl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),It.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Be.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function _i(t){const[e,n]=tr(),s=S.useContext(bs);return ce.jsx(vl,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Es),isPresent:e,safeToRemove:n})}const xl={borderRadius:{...pt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomLeftRadius:pt,borderBottomRightRadius:pt,boxShadow:yl};function Tl(t,e,n){const s=F(t)?t:wt(t);return s.start(on("",s,e,n)),s.animation}function Pl(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Sl=(t,e)=>t.depth-e.depth;class Al{constructor(){this.children=[],this.isDirty=!1}add(e){Xe(this.children,e),this.isDirty=!0}remove(e){Ye(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Sl),this.isDirty=!1,this.children.forEach(e)}}function bl(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Y(s),t(o-e))};return V.read(s,!0),()=>Y(s)}const Ki=["TopLeft","TopRight","BottomLeft","BottomRight"],wl=Ki.length,Qn=t=>typeof t=="string"?parseFloat(t):t,ts=t=>typeof t=="number"||x.test(t);function Vl(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,Cl(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Dl(s))):o&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;rse?1:n(ut(t,e,s))}function ns(t,e){t.min=e.min,t.max=e.max}function N(t,e){ns(t.x,e.x),ns(t.y,e.y)}function ss(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function is(t,e,n,s,i){return t-=e,t=$t(t,1/n,s),i!==void 0&&(t=$t(t,1/i,s)),t}function Ml(t,e=0,n=1,s=.5,i,o=t,r=t){if(K.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=is(t.min,e,n,a,i),t.max=is(t.max,e,n,a,i)}function rs(t,e,[n,s,i],o,r){Ml(t,e[n],e[s],e[i],e.scale,o,r)}const Rl=["x","scaleX","originX"],El=["y","scaleY","originY"];function os(t,e,n,s){rs(t.x,e,Rl,n?n.x:void 0,s?s.x:void 0),rs(t.y,e,El,n?n.y:void 0,s?s.y:void 0)}function as(t){return t.translate===0&&t.scale===1}function $i(t){return as(t.x)&&as(t.y)}function ls(t,e){return t.min===e.min&&t.max===e.max}function Ll(t,e){return ls(t.x,e.x)&&ls(t.y,e.y)}function us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Gi(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function cs(t){return I(t.x)/I(t.y)}function hs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Fl{constructor(){this.members=[]}add(e){Xe(this.members,e),e.scheduleRender()}remove(e){if(Ye(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Bl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},vt=typeof window<"u"&&window.MotionDebug!==void 0,oe=["","X","Y","Z"],kl={visibility:"hidden"},fs=1e3;let jl=0;function ae(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function zi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ti(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&zi(s)}function Hi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=jl++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(Nl),this.nodes.forEach($l),this.nodes.forEach(Gl),this.nodes.forEach(Ul),vt&&window.MotionDebug.record(tt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=bl(f,250),It.hasAnimatedSinceResize&&(It.hasAnimatedSinceResize=!1,this.nodes.forEach(ms))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||ql,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!Gi(this.targetLayout,m)||d,T=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const b={...$e(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Y(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(zl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=b/1e3;ps(h.x,r.x,P),ps(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(St(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&Ll(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),p&&(this.animationValues=c,Vl(c,u,this.latestValues,P,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{It.hasAnimatedSinceResize=!0,this.currentAnimation=Tl(0,fs,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Xi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),lt(a,c),Pt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Fl),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ae("z",r,u,this.animationValues);for(let c=0;c{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function Il(t){t.updateLayout()}function Ol(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Xi(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ot();Pt(a,s,n.layoutBox);const l=ot();r?Pt(l,t.applyTransform(i,!0),n.measuredBox):Pt(l,s,n.layoutBox);const u=!$i(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=M();St(m,n.layoutBox,f.layoutBox);const p=M();St(p,s,d.layoutBox),Gi(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Nl(t){vt&&tt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ul(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _l(t){t.clearSnapshot()}function ds(t){t.clearMeasurements()}function Kl(t){t.isLayoutDirty=!1}function Wl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function $l(t){t.resolveTargetDelta()}function Gl(t){t.calcProjection()}function zl(t){t.resetSkewAndRotation()}function Hl(t){t.removeLeadSnapshot()}function ps(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function gs(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function Xl(t,e,n,s){gs(t.x,e.x,n.x,s),gs(t.y,e.y,n.y,s)}function Yl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ql={duration:.45,ease:[.4,0,.1,1]},ys=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vs=ys("applewebkit/")&&!ys("chrome/")?Math.round:j;function xs(t){t.min=vs(t.min),t.max=vs(t.max)}function Zl(t){xs(t.x),xs(t.y)}function Xi(t,e,n){return t==="position"||t==="preserve-aspect"&&!tl(cs(e),cs(n),.2)}function Jl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Ql=Hi({attachResizeListener:(t,e)=>Ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),le={current:void 0},Yi=Hi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!le.current){const t=new Ql({});t.mount(window),t.setOptions({layoutScroll:!0}),le.current=t}return le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),tu={pan:{Feature:gl},drag:{Feature:pl,ProjectionNode:Yi,MeasureLayout:_i}};function Ts(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,Et(e)))}class eu extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=to(e,n=>(Ts(this.node,n,"Start"),s=>Ts(this.node,s,"End"))))}unmount(){}}class nu extends Z{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=Rt(Ct(this.node.current,"focus",()=>this.onFocus()),Ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ps(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,Et(e)))}class su extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=io(e,n=>(Ps(this.node,n,"Start"),(s,{success:i})=>Ps(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ve=new WeakMap,ue=new WeakMap,iu=t=>{const e=Ve.get(t.target);e&&e(t)},ru=t=>{t.forEach(iu)};function ou({root:t,...e}){const n=t||document;ue.has(n)||ue.set(n,{});const s=ue.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(ru,{root:t,...e})),s[i]}function au(t,e,n){const s=ou(e);return Ve.set(t,n),s.observe(t),()=>{Ve.delete(t),s.unobserve(t)}}const lu={some:0,all:1};class uu extends Z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:lu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return au(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(cu(e,n))&&this.startObserver()}unmount(){}}function cu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hu={inView:{Feature:uu},tap:{Feature:su},focus:{Feature:nu},hover:{Feature:eu}},fu={layout:{ProjectionNode:Yi,MeasureLayout:_i}},Ce={current:null},qi={current:!1};function du(){if(qi.current=!0,!!Me)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ce.current=t.matches;t.addListener(e),e()}else Ce.current=!1}const mu=[...Pi,L,q],pu=t=>mu.find(Ti(t)),Ss=new WeakMap;function gu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,wt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,wt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const f=W.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),qi.current||du(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ce.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ss.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=dt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}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 ct){const n=ct[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):M()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=wt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(vi(i)||ui(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=pi(e,n)),this.setBaseTarget(e,F(i)?i.get():i)),F(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=Ie(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!F(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new qe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Zi extends yu{constructor(){super(...arguments),this.KeyframeResolver=Si}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vu(t){return window.getComputedStyle(t)}class xu extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=Fs}readValueFromInstance(e,n){if(dt.has(n)){const s=en(n);return s&&s.default||0}else{const s=vu(e),i=(_s(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ni(e,n)}build(e,n,s){_e(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return je(e,n,s)}}class Tu extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(dt.has(n)){const s=en(n);return s&&s.default||0}return n=Bs.has(n)?n:Fe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Is(e,n,s)}build(e,n,s){Ke(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ks(e,n,s,i)}mount(e){this.isSVGTag=We(e.tagName),super.mount(e)}}const Pu=(t,e)=>ke(t)?new Tu(e):new xu(e,{allowProjection:t!==S.Fragment}),Su=Hr({...Ga,...hu,...tu,...fu},Pu),Du=ur(Su);export{Du as m}; diff --git a/assets/shield-CO1ZxyRH.js b/chunk-shield-D5uwo1pE.js similarity index 91% rename from assets/shield-CO1ZxyRH.js rename to chunk-shield-D5uwo1pE.js index 5a3c14a3..581e9e40 100644 --- a/assets/shield-CO1ZxyRH.js +++ b/chunk-shield-D5uwo1pE.js @@ -1,4 +1,4 @@ -import{c as a}from"../script.js";/** +import{c as a}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/star-DBf-izIT.js b/chunk-star-DZY-YPMg.js similarity index 90% rename from assets/star-DBf-izIT.js rename to chunk-star-DZY-YPMg.js index 04814cfe..9ec23f83 100644 --- a/assets/star-DBf-izIT.js +++ b/chunk-star-DZY-YPMg.js @@ -1,4 +1,4 @@ -import{c as o}from"../script.js";/** +import{c as o}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/terminal-XxSrqEZA.js b/chunk-terminal-DyNnEeID.js similarity index 89% rename from assets/terminal-XxSrqEZA.js rename to chunk-terminal-DyNnEeID.js index 01c4b042..1e13b7eb 100644 --- a/assets/terminal-XxSrqEZA.js +++ b/chunk-terminal-DyNnEeID.js @@ -1,4 +1,4 @@ -import{c as e}from"../script.js";/** +import{c as e}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/users-BmJA6T-g.js b/chunk-users-R8cL96Sh.js similarity index 92% rename from assets/users-BmJA6T-g.js rename to chunk-users-R8cL96Sh.js index df0ddc16..09bb1860 100644 --- a/assets/users-BmJA6T-g.js +++ b/chunk-users-R8cL96Sh.js @@ -1,4 +1,4 @@ -import{c as e}from"../script.js";/** +import{c as e}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/wifi-B6l3gpzm.js b/chunk-wifi-BISiL0Vq.js similarity index 95% rename from assets/wifi-B6l3gpzm.js rename to chunk-wifi-BISiL0Vq.js index 76e2f4e8..f5621e02 100644 --- a/assets/wifi-B6l3gpzm.js +++ b/chunk-wifi-BISiL0Vq.js @@ -1,4 +1,4 @@ -import{c as e}from"../script.js";/** +import{c as e}from"./script.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/script.js b/script.js index 6d98c02f..89a3cc1f 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-BWgjOUif.js","assets/proxy-CSDrDOQ6.js","assets/users-BmJA6T-g.js","assets/star-DBf-izIT.js","assets/wifi-B6l3gpzm.js","assets/shield-CO1ZxyRH.js","assets/terminal-XxSrqEZA.js","assets/About-6acGKBnd.js","assets/Features-vD7Hwkmy.js","assets/Download-DwEEsqsb.js","assets/check-DuEcDcyK.js","assets/map-pin-Dh5sOFp6.js","assets/Developers-Bv6S9pOl.js","assets/Donate-BuPUDU4-.js","assets/Gallery-BoBiz_-4.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk-Home-C_ighU1S.js","chunk-proxy-CI-F7568.js","chunk-users-R8cL96Sh.js","chunk-star-DZY-YPMg.js","chunk-wifi-BISiL0Vq.js","chunk-shield-D5uwo1pE.js","chunk-terminal-DyNnEeID.js","chunk-About-D3Bw6Gz9.js","chunk-Features-DhWphOif.js","chunk-Download-DiiorW4v.js","chunk-check-lgLCXsY5.js","chunk-map-pin-DTSv2Ukr.js","chunk-Developers-BvHvri-J.js","chunk-Donate-5XXAWH-L.js","chunk-Gallery-Bg3-dk_D.js"])))=>i.map(i=>d[i]); var hu=e=>{throw TypeError(e)};var Ui=(e,t,n)=>t.has(e)||hu("Cannot "+n);var S=(e,t,n)=>(Ui(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?hu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,r)=>(Ui(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(Ui(e,t,"access private method"),n);var hl=(e,t,n,r)=>({set _(l){L(e,t,l,n)},get _(){return S(e,t,r)}});function Ad(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ja={exports:{}},wi={},ec={exports:{}},I={};/** * @license React * react.production.min.js @@ -170,4 +170,4 @@ Error generating stack: `+i.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const sg=le("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);function ug({error:e}){return k.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:k.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[k.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:k.jsx(Vy,{size:48})}),k.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),k.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),k.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 w-full bg-cornflower-blue text-white py-2 px-4 rounded hover:bg-blue-600 transition-colors",children:"Try again"})]})})}function ag({children:e}){return k.jsx(Uy,{FallbackComponent:ug,children:e})}function Od(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{const t=pg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const s=o.split(pu);return s[0]===""&&s.length!==1&&s.shift(),Td(s,t)||dg(o)},getConflictingClassGroupIds:(o,s)=>{const u=n[o]||[];return s&&r[o]?[...u,...r[o]]:u}}},Td=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Td(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const i=e.join(pu);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},$a=/^\[(.+)\]$/,dg=e=>{if($a.test(e)){const t=$a.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pg=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mg(Object.entries(e.classGroups),n).forEach(([i,o])=>{ps(o,r,i,t)}),r},ps=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const i=l===""?t:Ba(t,l);i.classGroupId=n;return}if(typeof l=="function"){if(hg(l)){ps(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([i,o])=>{ps(o,Ba(t,i),n,r)})})},Ba=(e,t)=>{let n=e;return t.split(pu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hg=e=>e.isThemeGetter,mg=(e,t)=>t?e.map(([n,r])=>{const l=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[t+o,s])):i);return[n,l]}):e,yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return l(i,o),o},set(i,o){n.has(i)?n.set(i,o):l(i,o)}}},Ld="!",gg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],i=t.length,o=s=>{const u=[];let a=0,h=0,f;for(let x=0;xh?f-h:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:o}):o},vg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},wg=e=>({cache:yg(e.cacheSize),parseClassName:gg(e),...fg(e)}),xg=/\s+/,Sg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,i=[],o=e.trim().split(xg);let s="";for(let u=o.length-1;u>=0;u-=1){const a=o[u],{modifiers:h,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=n(a);let w=!!v,y=r(w?m.substring(0,v):m);if(!y){if(!w){s=a+(s.length>0?" "+s:s);continue}if(y=r(m),!y){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=vg(h).join(":"),d=f?x+Ld:x,c=d+y;if(i.includes(c))continue;i.push(c);const p=l(y,w);for(let g=0;g0?" "+s:s)}return s};function kg(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(h),e());return n=wg(a),r=n.cache.get,l=n.cache.set,i=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=Sg(u,n);return l(u,h),h}return function(){return i(kg.apply(null,arguments))}}const H=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Fd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cg=/^\d+\/\d+$/,Pg=new Set(["px","full","screen"]),_g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ng=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ot=e=>Hn(e)||Pg.has(e)||Cg.test(e),kt=e=>cr(e,"length",Ag),Hn=e=>!!e&&!Number.isNaN(Number(e)),yo=e=>cr(e,"number",Hn),wr=e=>!!e&&Number.isInteger(Number(e)),Og=e=>e.endsWith("%")&&Hn(e.slice(0,-1)),M=e=>Fd.test(e),Et=e=>_g.test(e),Tg=new Set(["length","size","percentage"]),Lg=e=>cr(e,Tg,Id),Mg=e=>cr(e,"position",Id),Fg=new Set(["image","url"]),Ig=e=>cr(e,Fg,$g),Dg=e=>cr(e,"",Ug),xr=()=>!0,cr=(e,t,n)=>{const r=Fd.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ag=e=>Ng.test(e)&&!Rg.test(e),Id=()=>!1,Ug=e=>zg.test(e),$g=e=>jg.test(e),Bg=()=>{const e=H("colors"),t=H("spacing"),n=H("blur"),r=H("brightness"),l=H("borderColor"),i=H("borderRadius"),o=H("borderSpacing"),s=H("borderWidth"),u=H("contrast"),a=H("grayscale"),h=H("hueRotate"),f=H("invert"),m=H("gap"),v=H("gradientColorStops"),w=H("gradientColorStopPositions"),y=H("inset"),x=H("margin"),d=H("opacity"),c=H("padding"),p=H("saturate"),g=H("scale"),C=H("sepia"),N=H("skew"),j=H("space"),_=H("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",M,t],B=()=>[M,t],wt=()=>["",ot,kt],Zt=()=>["auto",Hn,M],fl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],xt=()=>["solid","dashed","dotted","double","none"],Cn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",M],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Hn,M];return{cacheSize:500,separator:":",theme:{colors:[xr],spacing:[ot,kt],blur:["none","",Et,M],brightness:U(),borderColor:[e],borderRadius:["none","","full",Et,M],borderSpacing:B(),borderWidth:wt(),contrast:U(),grayscale:O(),hueRotate:U(),invert:O(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[Og,kt],inset:ge(),margin:ge(),opacity:U(),padding:B(),saturate:U(),scale:U(),sepia:O(),skew:U(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Et]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fl(),M]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wr,M]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wr,M]}],"grid-cols":[{"grid-cols":[xr]}],"col-start-end":[{col:["auto",{span:["full",wr,M]},M]}],"col-start":[{"col-start":Zt()}],"col-end":[{"col-end":Zt()}],"grid-rows":[{"grid-rows":[xr]}],"row-start-end":[{row:["auto",{span:[wr,M]},M]}],"row-start":[{"row-start":Zt()}],"row-end":[{"row-end":Zt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Et]},Et]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Et,kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yo]}],"font-family":[{font:[xr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Hn,yo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ot,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ot,kt]}],"underline-offset":[{"underline-offset":["auto",ot,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fl(),Mg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ig]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...xt(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:xt()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...xt()]}],"outline-offset":[{"outline-offset":[ot,M]}],"outline-w":[{outline:[ot,kt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:wt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-w":[{"ring-offset":[ot,kt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Et,Dg]}],"shadow-color":[{shadow:[xr]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...Cn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Cn()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Et,M]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[p]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[g]}],"scale-x":[{"scale-x":[g]}],"scale-y":[{"scale-y":[g]}],rotate:[{rotate:[wr,M]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ot,kt,yo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qg=Eg(Bg);function Qa(...e){return Qg(cg(e))}function cv(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function fv(e){return`${e} Mbps`}const Va=[{name:"Home",href:"/",icon:Xy},{name:"About",href:"/about",icon:Jy},{name:"Features",href:"/features",icon:lg},{name:"Gallery",href:"/gallery",icon:Zy},{name:"Download",href:"/download",icon:Gy},{name:"Developers",href:"/developers",icon:Ky},{name:"Donate",href:"/donate",icon:qy}];function Vg(){return k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"32",height:"32",children:[k.jsx("path",{fill:"#6495ed",fillRule:"evenodd",d:"m112.8 111.5q25.7 27 1.7 53.9-21.4 20.9-41.9 22.9c8.6-7.4 11-19.8 5.8-29.9q-26.1-27.2-39.2-47.7-15.1-39.6 40.9-53.8 9.4-15.5 91.4-55.6c15.4-4.4 31.8 2.8 38.9 17.2 7 14.4 2.8 31.8-10.2 41.3l-112.8 7.1q-1.9 20.7 25.4 44.6zm-35.5-43.4c-11.4 3.4-26.3 9.6-30.2 20.4-2 5.8-0.9 12.1 1.1 17.7 10.5 16.1 24.2 31.5 37.5 45.3l1 1.1 0.7 1.3c2.8 5.5 4 11.5 3.7 17.4 6-3.7 11.4-8.2 16.2-12.8 12.4-14.2 11.3-26.2-1.5-39.8-14.4-12.7-29.3-30.2-28.5-50.6zm124.1-45.1c-4.8-9.8-15.8-14.9-26.4-12.3-20.9 10.3-42.3 21.1-62.1 33.2-3.7 2.2-12.5 7.7-18.6 12.5l102.1-6.4c7.4-6.8 9.5-17.8 5-27z"}),k.jsx("path",{fill:"#6495ed",fillRule:"evenodd",d:"m143.8 144.3q-25.7-26.9-1.8-53.9 21.5-20.8 42-22.8c-8.6 7.4-11 19.7-5.9 29.8q26.2 27.2 39.3 47.8 15 39.6-40.9 53.7-9.4 15.5-91.5 55.7c-15.4 4.4-31.7-2.9-38.8-17.3-7-14.4-2.8-31.7 10.1-41.3l112.8-7.1q2-20.7-25.3-44.6zm35.5 43.5c11.4-3.4 26.3-9.6 30.2-20.5 2-5.7 0.9-12-1.2-17.6-10.4-16.1-24.2-31.5-37.4-45.4l-1.1-1-0.6-1.3c-2.8-5.5-4-11.5-3.8-17.4-5.9 3.6-11.4 8.2-16.1 12.8-12.5 14.1-11.3 26.2 1.4 39.7 14.5 12.7 29.4 30.3 28.6 50.7zm-124.1 45.1c4.8 9.7 15.8 14.8 26.3 12.2 20.9-10.2 42.3-21 62.2-33.1 3.7-2.2 12.5-7.7 18.5-12.6l-102 6.5c-7.4 6.8-9.5 17.8-5 27z"})]})}function Hg(){const[e,t]=P.useState(!1),n=cl();return k.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200 transition-all duration-300",children:[k.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:k.jsxs("div",{className:"flex justify-between h-16",children:[k.jsx("div",{className:"flex",children:k.jsxs(Mr,{to:"/",className:"flex-shrink-0 flex items-center",children:[k.jsx(Vg,{}),k.jsx("span",{className:"ml-2 text-xl font-bold text-cornflower-blue transition-all duration-300 hover:text-blue-700",children:"Snigdha OS"})]})}),k.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:Va.map(r=>k.jsxs(Mr,{to:r.href,className:Qa("px-3 py-2 rounded-md text-sm font-medium transition-colors duration-300 flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[k.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),k.jsx("div",{className:"flex items-center sm:hidden",children:k.jsx("button",{onClick:()=>t(!e),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-all duration-300",children:e?k.jsx(og,{className:"h-6 w-6"}):k.jsx(tg,{className:"h-6 w-6"})})})]})}),e&&k.jsx("div",{className:`sm:hidden bg-white/90 backdrop-blur-lg overflow-hidden transition-all duration-300 ease-in-out ${e?"max-h-96":"max-h-0"}`,children:k.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:Va.map(r=>k.jsxs(Mr,{to:r.href,className:Qa("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2 transition-colors duration-300",n.pathname===r.href?"text-cornflower-blue bg-blue-50":"text-gray-600 hover:text-cornflower-blue hover:bg-blue-50"),onClick:()=>t(!1),children:[k.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Ll={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Hy},{name:"Blog",href:"/blog",icon:rg},{name:"Support",href:"/support",icon:Yy}],community:[{name:"Community",href:"/community",icon:ng},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:by},{name:"Twitter",href:"https://twitter.com/SnigdhaOS",icon:ig},{name:"YouTube",href:"https://youtube.com",icon:sg}]};function Wg(){const e=new Date().getFullYear();return k.jsx("footer",{className:"bg-gray-900 text-gray-300",children:k.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[k.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[k.jsxs("div",{className:"space-y-4",children:[k.jsx("h3",{className:"text-xl font-bold text-white",children:"Snigdha OS"}),k.jsx("p",{className:"text-sm leading-6",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),k.jsx("div",{className:"flex space-x-4",children:Ll.community.map(t=>k.jsx("a",{href:t.href,className:"hover:text-white transition transform hover:scale-110",target:"_blank",rel:"noopener noreferrer",children:t.icon&&k.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),k.jsx("ul",{className:"space-y-3",children:Ll.main.map(t=>k.jsx("li",{children:k.jsx(Mr,{to:t.href,className:"hover:text-white transition transform hover:scale-105",children:t.name})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),k.jsx("ul",{className:"space-y-3",children:Ll.resources.map(t=>k.jsx("li",{children:k.jsxs(Mr,{to:t.href,className:"flex items-center gap-2 hover:text-white transition transform hover:scale-105",children:[t.icon&&k.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),k.jsx("ul",{className:"space-y-3",children:Ll.community.map(t=>k.jsx("li",{children:k.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition transform hover:scale-105",target:"_blank",rel:"noopener noreferrer",children:[t.icon&&k.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),k.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:[k.jsxs("p",{children:["© ",e," Snigdha OS - All rights reserved. Powered by"," ",k.jsx("b",{className:"text-cornflower-blue",children:"Tonmoy Infrastructure™"})]}),k.jsxs("p",{children:["Developed with ❤️ by"," ",k.jsx("b",{className:"text-cornflower-blue",children:k.jsx("u",{children:"Snigdha OS Open Source Team."})})]}),k.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"mt-4 p-2 bg-cornflower-blue rounded-full text-white shadow-md hover:shadow-lg transition",children:k.jsx(Wy,{className:"h-5 w-5"})})]})]})})}const Kg="modulepreload",Gg=function(e){return"/"+e},Ha={},En=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Gg(u),u in Ha)return;Ha[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":Kg,a||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),a)return new Promise((m,v)=>{f.addEventListener("load",m),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return l.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},bg=P.lazy(()=>En(()=>import("./assets/Home-BWgjOUif.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),qg=P.lazy(()=>En(()=>import("./assets/About-6acGKBnd.js"),__vite__mapDeps([7,1,2,5]))),Yg=P.lazy(()=>En(()=>import("./assets/Features-vD7Hwkmy.js"),__vite__mapDeps([8,1,6]))),Xg=P.lazy(()=>En(()=>import("./assets/Download-DwEEsqsb.js"),__vite__mapDeps([9,1,10,5,4,11]))),Zg=P.lazy(()=>En(()=>import("./assets/Developers-Bv6S9pOl.js"),__vite__mapDeps([12,1,11,2,3]))),Jg=P.lazy(()=>En(()=>import("./assets/Donate-BuPUDU4-.js"),__vite__mapDeps([13,1,10,2,3]))),ev=P.lazy(()=>En(()=>import("./assets/Gallery-BoBiz_-4.js"),__vite__mapDeps([14,1])));function tv(){return k.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:k.jsx(eg,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function nv(){return k.jsx(P.Suspense,{fallback:k.jsx(tv,{}),children:k.jsxs(ly,{children:[k.jsx(Ct,{path:"/",element:k.jsx(bg,{})}),k.jsx(Ct,{path:"/about",element:k.jsx(qg,{})}),k.jsx(Ct,{path:"/features",element:k.jsx(Yg,{})}),k.jsx(Ct,{path:"/download",element:k.jsx(Xg,{})}),k.jsx(Ct,{path:"/developers",element:k.jsx(Zg,{})}),k.jsx(Ct,{path:"/donate",element:k.jsx(Jg,{})}),k.jsx(Ct,{path:"/gallery",element:k.jsx(ev,{})})]})})}const rv=new Iy({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function lv(){return k.jsx(ag,{children:k.jsx(Dy,{client:rv,children:k.jsxs(fy,{children:[" ",k.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[k.jsx(Hg,{}),k.jsx("main",{className:"flex-grow pt-16",children:k.jsx(nv,{})}),k.jsx(Wg,{})]})]})})})}const Dd=document.getElementById("root");if(!Dd)throw new Error("Root element not found");const iv=dd(Dd);iv.render(k.jsx(P.StrictMode,{children:k.jsx(lv,{})}));export{Hy as B,Gy as D,by as G,qy as H,Mr as L,ng as M,Ii as S,og as X,cg as a,eg as b,le as c,vy as d,La as e,fv as f,yy as g,Pd as h,Di as i,k as j,zy as k,xy as l,xe as m,He as n,Ed as o,Py as p,cv as q,P as r,sv as s,gy as t,uv as u}; + */const sg=le("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);function ug({error:e}){return k.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:k.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[k.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:k.jsx(Vy,{size:48})}),k.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),k.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),k.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 w-full bg-cornflower-blue text-white py-2 px-4 rounded hover:bg-blue-600 transition-colors",children:"Try again"})]})})}function ag({children:e}){return k.jsx(Uy,{FallbackComponent:ug,children:e})}function Od(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{const t=pg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const s=o.split(pu);return s[0]===""&&s.length!==1&&s.shift(),Td(s,t)||dg(o)},getConflictingClassGroupIds:(o,s)=>{const u=n[o]||[];return s&&r[o]?[...u,...r[o]]:u}}},Td=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Td(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const i=e.join(pu);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},$a=/^\[(.+)\]$/,dg=e=>{if($a.test(e)){const t=$a.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pg=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mg(Object.entries(e.classGroups),n).forEach(([i,o])=>{ps(o,r,i,t)}),r},ps=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const i=l===""?t:Ba(t,l);i.classGroupId=n;return}if(typeof l=="function"){if(hg(l)){ps(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([i,o])=>{ps(o,Ba(t,i),n,r)})})},Ba=(e,t)=>{let n=e;return t.split(pu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hg=e=>e.isThemeGetter,mg=(e,t)=>t?e.map(([n,r])=>{const l=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[t+o,s])):i);return[n,l]}):e,yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return l(i,o),o},set(i,o){n.has(i)?n.set(i,o):l(i,o)}}},Ld="!",gg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],i=t.length,o=s=>{const u=[];let a=0,h=0,f;for(let x=0;xh?f-h:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:o}):o},vg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},wg=e=>({cache:yg(e.cacheSize),parseClassName:gg(e),...fg(e)}),xg=/\s+/,Sg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,i=[],o=e.trim().split(xg);let s="";for(let u=o.length-1;u>=0;u-=1){const a=o[u],{modifiers:h,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:v}=n(a);let w=!!v,y=r(w?m.substring(0,v):m);if(!y){if(!w){s=a+(s.length>0?" "+s:s);continue}if(y=r(m),!y){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=vg(h).join(":"),d=f?x+Ld:x,c=d+y;if(i.includes(c))continue;i.push(c);const p=l(y,w);for(let g=0;g0?" "+s:s)}return s};function kg(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(h),e());return n=wg(a),r=n.cache.get,l=n.cache.set,i=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=Sg(u,n);return l(u,h),h}return function(){return i(kg.apply(null,arguments))}}const H=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Fd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cg=/^\d+\/\d+$/,Pg=new Set(["px","full","screen"]),_g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ng=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ot=e=>Hn(e)||Pg.has(e)||Cg.test(e),kt=e=>cr(e,"length",Ag),Hn=e=>!!e&&!Number.isNaN(Number(e)),yo=e=>cr(e,"number",Hn),wr=e=>!!e&&Number.isInteger(Number(e)),Og=e=>e.endsWith("%")&&Hn(e.slice(0,-1)),M=e=>Fd.test(e),Et=e=>_g.test(e),Tg=new Set(["length","size","percentage"]),Lg=e=>cr(e,Tg,Id),Mg=e=>cr(e,"position",Id),Fg=new Set(["image","url"]),Ig=e=>cr(e,Fg,$g),Dg=e=>cr(e,"",Ug),xr=()=>!0,cr=(e,t,n)=>{const r=Fd.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ag=e=>Ng.test(e)&&!Rg.test(e),Id=()=>!1,Ug=e=>zg.test(e),$g=e=>jg.test(e),Bg=()=>{const e=H("colors"),t=H("spacing"),n=H("blur"),r=H("brightness"),l=H("borderColor"),i=H("borderRadius"),o=H("borderSpacing"),s=H("borderWidth"),u=H("contrast"),a=H("grayscale"),h=H("hueRotate"),f=H("invert"),m=H("gap"),v=H("gradientColorStops"),w=H("gradientColorStopPositions"),y=H("inset"),x=H("margin"),d=H("opacity"),c=H("padding"),p=H("saturate"),g=H("scale"),C=H("sepia"),N=H("skew"),j=H("space"),_=H("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",M,t],B=()=>[M,t],wt=()=>["",ot,kt],Zt=()=>["auto",Hn,M],fl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],xt=()=>["solid","dashed","dotted","double","none"],Cn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",M],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Hn,M];return{cacheSize:500,separator:":",theme:{colors:[xr],spacing:[ot,kt],blur:["none","",Et,M],brightness:U(),borderColor:[e],borderRadius:["none","","full",Et,M],borderSpacing:B(),borderWidth:wt(),contrast:U(),grayscale:O(),hueRotate:U(),invert:O(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[Og,kt],inset:ge(),margin:ge(),opacity:U(),padding:B(),saturate:U(),scale:U(),sepia:O(),skew:U(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Et]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fl(),M]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wr,M]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",wr,M]}],"grid-cols":[{"grid-cols":[xr]}],"col-start-end":[{col:["auto",{span:["full",wr,M]},M]}],"col-start":[{"col-start":Zt()}],"col-end":[{"col-end":Zt()}],"grid-rows":[{"grid-rows":[xr]}],"row-start-end":[{row:["auto",{span:[wr,M]},M]}],"row-start":[{"row-start":Zt()}],"row-end":[{"row-end":Zt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Et]},Et]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Et,kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yo]}],"font-family":[{font:[xr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Hn,yo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ot,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ot,kt]}],"underline-offset":[{"underline-offset":["auto",ot,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fl(),Mg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ig]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...xt(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:xt()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...xt()]}],"outline-offset":[{"outline-offset":[ot,M]}],"outline-w":[{outline:[ot,kt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:wt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-w":[{"ring-offset":[ot,kt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Et,Dg]}],"shadow-color":[{shadow:[xr]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...Cn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Cn()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Et,M]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[p]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[g]}],"scale-x":[{"scale-x":[g]}],"scale-y":[{"scale-y":[g]}],rotate:[{rotate:[wr,M]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ot,kt,yo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qg=Eg(Bg);function Qa(...e){return Qg(cg(e))}function cv(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function fv(e){return`${e} Mbps`}const Va=[{name:"Home",href:"/",icon:Xy},{name:"About",href:"/about",icon:Jy},{name:"Features",href:"/features",icon:lg},{name:"Gallery",href:"/gallery",icon:Zy},{name:"Download",href:"/download",icon:Gy},{name:"Developers",href:"/developers",icon:Ky},{name:"Donate",href:"/donate",icon:qy}];function Vg(){return k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"32",height:"32",children:[k.jsx("path",{fill:"#6495ed",fillRule:"evenodd",d:"m112.8 111.5q25.7 27 1.7 53.9-21.4 20.9-41.9 22.9c8.6-7.4 11-19.8 5.8-29.9q-26.1-27.2-39.2-47.7-15.1-39.6 40.9-53.8 9.4-15.5 91.4-55.6c15.4-4.4 31.8 2.8 38.9 17.2 7 14.4 2.8 31.8-10.2 41.3l-112.8 7.1q-1.9 20.7 25.4 44.6zm-35.5-43.4c-11.4 3.4-26.3 9.6-30.2 20.4-2 5.8-0.9 12.1 1.1 17.7 10.5 16.1 24.2 31.5 37.5 45.3l1 1.1 0.7 1.3c2.8 5.5 4 11.5 3.7 17.4 6-3.7 11.4-8.2 16.2-12.8 12.4-14.2 11.3-26.2-1.5-39.8-14.4-12.7-29.3-30.2-28.5-50.6zm124.1-45.1c-4.8-9.8-15.8-14.9-26.4-12.3-20.9 10.3-42.3 21.1-62.1 33.2-3.7 2.2-12.5 7.7-18.6 12.5l102.1-6.4c7.4-6.8 9.5-17.8 5-27z"}),k.jsx("path",{fill:"#6495ed",fillRule:"evenodd",d:"m143.8 144.3q-25.7-26.9-1.8-53.9 21.5-20.8 42-22.8c-8.6 7.4-11 19.7-5.9 29.8q26.2 27.2 39.3 47.8 15 39.6-40.9 53.7-9.4 15.5-91.5 55.7c-15.4 4.4-31.7-2.9-38.8-17.3-7-14.4-2.8-31.7 10.1-41.3l112.8-7.1q2-20.7-25.3-44.6zm35.5 43.5c11.4-3.4 26.3-9.6 30.2-20.5 2-5.7 0.9-12-1.2-17.6-10.4-16.1-24.2-31.5-37.4-45.4l-1.1-1-0.6-1.3c-2.8-5.5-4-11.5-3.8-17.4-5.9 3.6-11.4 8.2-16.1 12.8-12.5 14.1-11.3 26.2 1.4 39.7 14.5 12.7 29.4 30.3 28.6 50.7zm-124.1 45.1c4.8 9.7 15.8 14.8 26.3 12.2 20.9-10.2 42.3-21 62.2-33.1 3.7-2.2 12.5-7.7 18.5-12.6l-102 6.5c-7.4 6.8-9.5 17.8-5 27z"})]})}function Hg(){const[e,t]=P.useState(!1),n=cl();return k.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200 transition-all duration-300",children:[k.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:k.jsxs("div",{className:"flex justify-between h-16",children:[k.jsx("div",{className:"flex",children:k.jsxs(Mr,{to:"/",className:"flex-shrink-0 flex items-center",children:[k.jsx(Vg,{}),k.jsx("span",{className:"ml-2 text-xl font-bold text-cornflower-blue transition-all duration-300 hover:text-blue-700",children:"Snigdha OS"})]})}),k.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:Va.map(r=>k.jsxs(Mr,{to:r.href,className:Qa("px-3 py-2 rounded-md text-sm font-medium transition-colors duration-300 flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[k.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),k.jsx("div",{className:"flex items-center sm:hidden",children:k.jsx("button",{onClick:()=>t(!e),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-all duration-300",children:e?k.jsx(og,{className:"h-6 w-6"}):k.jsx(tg,{className:"h-6 w-6"})})})]})}),e&&k.jsx("div",{className:`sm:hidden bg-white/90 backdrop-blur-lg overflow-hidden transition-all duration-300 ease-in-out ${e?"max-h-96":"max-h-0"}`,children:k.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:Va.map(r=>k.jsxs(Mr,{to:r.href,className:Qa("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2 transition-colors duration-300",n.pathname===r.href?"text-cornflower-blue bg-blue-50":"text-gray-600 hover:text-cornflower-blue hover:bg-blue-50"),onClick:()=>t(!1),children:[k.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Ll={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Hy},{name:"Blog",href:"/blog",icon:rg},{name:"Support",href:"/support",icon:Yy}],community:[{name:"Community",href:"/community",icon:ng},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:by},{name:"Twitter",href:"https://twitter.com/SnigdhaOS",icon:ig},{name:"YouTube",href:"https://youtube.com",icon:sg}]};function Wg(){const e=new Date().getFullYear();return k.jsx("footer",{className:"bg-gray-900 text-gray-300",children:k.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[k.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[k.jsxs("div",{className:"space-y-4",children:[k.jsx("h3",{className:"text-xl font-bold text-white",children:"Snigdha OS"}),k.jsx("p",{className:"text-sm leading-6",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),k.jsx("div",{className:"flex space-x-4",children:Ll.community.map(t=>k.jsx("a",{href:t.href,className:"hover:text-white transition transform hover:scale-110",target:"_blank",rel:"noopener noreferrer",children:t.icon&&k.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),k.jsx("ul",{className:"space-y-3",children:Ll.main.map(t=>k.jsx("li",{children:k.jsx(Mr,{to:t.href,className:"hover:text-white transition transform hover:scale-105",children:t.name})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),k.jsx("ul",{className:"space-y-3",children:Ll.resources.map(t=>k.jsx("li",{children:k.jsxs(Mr,{to:t.href,className:"flex items-center gap-2 hover:text-white transition transform hover:scale-105",children:[t.icon&&k.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),k.jsx("ul",{className:"space-y-3",children:Ll.community.map(t=>k.jsx("li",{children:k.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition transform hover:scale-105",target:"_blank",rel:"noopener noreferrer",children:[t.icon&&k.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),k.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:[k.jsxs("p",{children:["© ",e," Snigdha OS - All rights reserved. Powered by"," ",k.jsx("b",{className:"text-cornflower-blue",children:"Tonmoy Infrastructure™"})]}),k.jsxs("p",{children:["Developed with ❤️ by"," ",k.jsx("b",{className:"text-cornflower-blue",children:k.jsx("u",{children:"Snigdha OS Open Source Team."})})]}),k.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"mt-4 p-2 bg-cornflower-blue rounded-full text-white shadow-md hover:shadow-lg transition",children:k.jsx(Wy,{className:"h-5 w-5"})})]})]})})}const Kg="modulepreload",Gg=function(e){return"/"+e},Ha={},En=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Gg(u),u in Ha)return;Ha[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":Kg,a||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),a)return new Promise((m,v)=>{f.addEventListener("load",m),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return l.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},bg=P.lazy(()=>En(()=>import("./chunk-Home-C_ighU1S.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),qg=P.lazy(()=>En(()=>import("./chunk-About-D3Bw6Gz9.js"),__vite__mapDeps([7,1,2,5]))),Yg=P.lazy(()=>En(()=>import("./chunk-Features-DhWphOif.js"),__vite__mapDeps([8,1,6]))),Xg=P.lazy(()=>En(()=>import("./chunk-Download-DiiorW4v.js"),__vite__mapDeps([9,1,10,5,4,11]))),Zg=P.lazy(()=>En(()=>import("./chunk-Developers-BvHvri-J.js"),__vite__mapDeps([12,1,11,2,3]))),Jg=P.lazy(()=>En(()=>import("./chunk-Donate-5XXAWH-L.js"),__vite__mapDeps([13,1,10,2,3]))),ev=P.lazy(()=>En(()=>import("./chunk-Gallery-Bg3-dk_D.js"),__vite__mapDeps([14,1])));function tv(){return k.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:k.jsx(eg,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function nv(){return k.jsx(P.Suspense,{fallback:k.jsx(tv,{}),children:k.jsxs(ly,{children:[k.jsx(Ct,{path:"/",element:k.jsx(bg,{})}),k.jsx(Ct,{path:"/about",element:k.jsx(qg,{})}),k.jsx(Ct,{path:"/features",element:k.jsx(Yg,{})}),k.jsx(Ct,{path:"/download",element:k.jsx(Xg,{})}),k.jsx(Ct,{path:"/developers",element:k.jsx(Zg,{})}),k.jsx(Ct,{path:"/donate",element:k.jsx(Jg,{})}),k.jsx(Ct,{path:"/gallery",element:k.jsx(ev,{})})]})})}const rv=new Iy({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function lv(){return k.jsx(ag,{children:k.jsx(Dy,{client:rv,children:k.jsxs(fy,{children:[" ",k.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[k.jsx(Hg,{}),k.jsx("main",{className:"flex-grow pt-16",children:k.jsx(nv,{})}),k.jsx(Wg,{})]})]})})})}const Dd=document.getElementById("root");if(!Dd)throw new Error("Root element not found");const iv=dd(Dd);iv.render(k.jsx(P.StrictMode,{children:k.jsx(lv,{})}));export{Hy as B,Gy as D,by as G,qy as H,Mr as L,ng as M,Ii as S,og as X,cg as a,eg as b,le as c,vy as d,La as e,fv as f,yy as g,Pd as h,Di as i,k as j,zy as k,xy as l,xe as m,He as n,Ed as o,Py as p,cv as q,P as r,sv as s,gy as t,uv as u}; diff --git a/sitemap.xml b/sitemap.xml index ede22b77..87bd88f0 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://www.snigdhaos.org/4042025-01-13T08:26:48.337Zdaily0.7https://www.snigdhaos.org/2025-01-13T08:26:48.337Zdaily0.7 \ No newline at end of file +https://www.snigdhaos.org/4042025-01-13T08:33:11.649Zdaily0.7https://www.snigdhaos.org/2025-01-13T08:33:11.649Zdaily0.7 \ No newline at end of file