diff --git a/assets/About-C7J-jjVK.js b/assets/About-SZ-ijCmv.js similarity index 97% rename from assets/About-C7J-jjVK.js rename to assets/About-SZ-ijCmv.js index 3383e6d4..180b1de8 100644 --- a/assets/About-C7J-jjVK.js +++ b/assets/About-SZ-ijCmv.js @@ -1,4 +1,4 @@ -import{c as a,j as e}from"./index-CZOPZUyu.js";import{m as s}from"./proxy-o5KGle87.js";import{U as n}from"./users-DSDXdwxC.js";/** +import{c as a,j as e}from"../main.js";import{m as s}from"./proxy-DPp9lXkG.js";import{U as n}from"./users-Bjd2Q3fX.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Developers-Ddn1LvUS.js b/assets/Developers-Ddn1LvUS.js new file mode 100644 index 00000000..b8ecabba --- /dev/null +++ b/assets/Developers-Ddn1LvUS.js @@ -0,0 +1,11 @@ +var Te=t=>{throw TypeError(t)};var he=(t,e,s)=>e.has(t)||Te("Cannot "+s);var r=(t,e,s)=>(he(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>e.has(t)?Te("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),h=(t,e,s,i)=>(he(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(he(t,e,"access private method"),s);import{S as $e,p as Me,b as M,s as ue,d as ie,n as et,i as de,e as _e,t as tt,g as st,h as rt,k as Fe,l as Y,m as it,r as S,u as Ae,c as qe,j as n,B as at,o as nt,a as ot}from"../main.js";import{m as X}from"./proxy-DPp9lXkG.js";import{M as ct}from"./map-pin-FndLqqsR.js";import{U as ht}from"./users-Bjd2Q3fX.js";import{S as lt}from"./star-ULTsXjFw.js";var E,l,Z,C,U,B,_,T,ee,z,G,D,P,F,V,d,J,fe,pe,me,ge,ye,be,xe,Be,Pe,Se=(Pe=class extends $e{constructor(e,s){super();p(this,d);p(this,E);p(this,l);p(this,Z);p(this,C);p(this,U);p(this,B);p(this,_);p(this,T);p(this,ee);p(this,z);p(this,G);p(this,D);p(this,P);p(this,F);p(this,V,new Set);this.options=s,h(this,E,e),h(this,T,null),h(this,_,Me()),this.options.experimental_prefetchInRender||r(this,_).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,l).addObserver(this),Le(r(this,l),this.options)?u(this,d,J).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,l),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,l),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,ye).call(this),u(this,d,be).call(this),r(this,l).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,l);if(this.options=r(this,E).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof M(this.options.enabled,r(this,l))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,xe).call(this),r(this,l).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,E).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,l),observer:this});const o=this.hasListeners();o&&Ue(r(this,l),c,this.options,i)&&u(this,d,J).call(this),this.updateResult(s),o&&(r(this,l)!==c||M(this.options.enabled,r(this,l))!==M(i.enabled,r(this,l))||ie(this.options.staleTime,r(this,l))!==ie(i.staleTime,r(this,l)))&&u(this,d,fe).call(this);const a=u(this,d,pe).call(this);o&&(r(this,l)!==c||M(this.options.enabled,r(this,l))!==M(i.enabled,r(this,l))||a!==r(this,F))&&u(this,d,me).call(this,a)}getOptimisticResult(e){const s=r(this,E).getQueryCache().build(r(this,E),e),i=this.createResult(s,e);return dt(this,i)&&(h(this,C,i),h(this,B,this.options),h(this,U,r(this,l).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,V).add(e)}getCurrentQuery(){return r(this,l)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,E).defaultQueryOptions(e),i=r(this,E).getQueryCache().build(r(this,E),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,J).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var Ie;const i=r(this,l),c=this.options,o=r(this,C),a=r(this,U),m=r(this,B),f=e!==i?e.state:r(this,Z),{state:w}=e;let y={...w},k=!1,b;if(s._optimisticResults){const O=this.hasListeners(),A=!O&&Le(e,s),q=O&&Ue(e,i,s,c);(A||q)&&(y={...y,...rt(w.data,e.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:x,errorUpdatedAt:j,status:v}=y;if(s.select&&y.data!==void 0)if(o&&y.data===(a==null?void 0:a.data)&&s.select===r(this,ee))b=r(this,z);else try{h(this,ee,s.select),b=s.select(y.data),b=Fe(o==null?void 0:o.data,b,s),h(this,z,b),h(this,T,null)}catch(O){h(this,T,O)}else b=y.data;if(s.placeholderData!==void 0&&b===void 0&&v==="pending"){let O;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))O=o.data;else if(O=typeof s.placeholderData=="function"?s.placeholderData((Ie=r(this,G))==null?void 0:Ie.state.data,r(this,G)):s.placeholderData,s.select&&O!==void 0)try{O=s.select(O),h(this,T,null)}catch(A){h(this,T,A)}O!==void 0&&(v="success",b=Fe(o==null?void 0:o.data,O,s),k=!0)}r(this,T)&&(x=r(this,T),b=r(this,z),j=Date.now(),v="error");const $=y.fetchStatus==="fetching",oe=v==="pending",ce=v==="error",Qe=oe&&$,ke=b!==void 0,I={status:v,fetchStatus:y.fetchStatus,isPending:oe,isSuccess:v==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:b,dataUpdatedAt:y.dataUpdatedAt,error:x,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:$,isRefetching:$&&!oe,isLoadingError:ce&&!ke,isPaused:y.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:ce&&ke,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,_)};if(this.options.experimental_prefetchInRender){const O=re=>{I.status==="error"?re.reject(I.error):I.data!==void 0&&re.resolve(I.data)},A=()=>{const re=h(this,_,I.promise=Me());O(re)},q=r(this,_);switch(q.status){case"pending":e.queryHash===i.queryHash&&O(q);break;case"fulfilled":(I.status==="error"||I.data!==q.value)&&A();break;case"rejected":(I.status!=="error"||I.error!==q.reason)&&A();break}}return I}updateResult(e){const s=r(this,C),i=this.createResult(r(this,l),this.options);if(h(this,U,r(this,l).state),h(this,B,this.options),r(this,U).data!==void 0&&h(this,G,r(this,l)),ue(i,s))return;h(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:a}=this.options,m=typeof a=="function"?a():a;if(m==="all"||!m&&!r(this,V).size)return!0;const g=new Set(m??r(this,V));return this.options.throwOnError&&g.add("error"),Object.keys(r(this,C)).some(f=>{const w=f;return r(this,C)[w]!==s[w]&&g.has(w)})};(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)}},E=new WeakMap,l=new WeakMap,Z=new WeakMap,C=new WeakMap,U=new WeakMap,B=new WeakMap,_=new WeakMap,T=new WeakMap,ee=new WeakMap,z=new WeakMap,G=new WeakMap,D=new WeakMap,P=new WeakMap,F=new WeakMap,V=new WeakMap,d=new WeakSet,J=function(e){u(this,d,xe).call(this);let s=r(this,l).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(et)),s},fe=function(){u(this,d,ye).call(this);const e=ie(this.options.staleTime,r(this,l));if(de||r(this,C).isStale||!_e(e))return;const i=tt(r(this,C).dataUpdatedAt,e)+1;h(this,D,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,l)):this.options.refetchInterval)??!1},me=function(e){u(this,d,be).call(this),h(this,F,e),!(de||M(this.options.enabled,r(this,l))===!1||!_e(r(this,F))||r(this,F)===0)&&h(this,P,setInterval(()=>{(this.options.refetchIntervalInBackground||st.isFocused())&&u(this,d,J).call(this)},r(this,F)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},ye=function(){r(this,D)&&(clearTimeout(r(this,D)),h(this,D,void 0))},be=function(){r(this,P)&&(clearInterval(r(this,P)),h(this,P,void 0))},xe=function(){const e=r(this,E).getQueryCache().build(r(this,E),this.options);if(e===r(this,l))return;const s=r(this,l);h(this,l,e),h(this,Z,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Y.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,E).getQueryCache().notify({query:r(this,l),type:"observerResultsUpdated"})})},Pe);function ut(t,e){return M(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Le(t,e){return ut(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(M(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function Ue(t,e,s,i){return(t!==e||M(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return M(e.enabled,t)!==!1&&t.isStaleByTime(ie(e.staleTime,t))}function dt(t,e){return!ue(t.getCurrentResult(),e)}function De(t,e){return t.filter(s=>!e.includes(s))}function ft(t,e,s){const i=t.slice(0);return i[e]=s,i}var K,N,H,W,Q,L,te,se,R,Re,we,ae,je,Oe,He,pt=(He=class extends $e{constructor(e,s,i){super();p(this,R);p(this,K);p(this,N);p(this,H);p(this,W);p(this,Q);p(this,L);p(this,te);p(this,se);h(this,K,e),h(this,W,i),h(this,H,[]),h(this,Q,[]),h(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,R,je).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){h(this,H,e),h(this,W,s),Y.batch(()=>{const c=r(this,Q),o=u(this,R,ae).call(this,r(this,H));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const a=o.map(f=>f.observer),m=a.map(f=>f.getCurrentResult()),g=a.some((f,w)=>f!==c[w]);c.length===a.length&&!g||(h(this,Q,a),h(this,N,m),this.hasListeners()&&(De(c,a).forEach(f=>{f.destroy()}),De(a,c).forEach(f=>{f.subscribe(w=>{u(this,R,je).call(this,f,w)})}),u(this,R,Oe).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,R,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,R,we).call(this,o??c,s),()=>u(this,R,Re).call(this,c,e)]}},K=new WeakMap,N=new WeakMap,H=new WeakMap,W=new WeakMap,Q=new WeakMap,L=new WeakMap,te=new WeakMap,se=new WeakMap,R=new WeakSet,Re=function(e,s){const i=u(this,R,ae).call(this,s);return i.map((c,o)=>{const a=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?a:c.observer.trackResult(a,m=>{i.forEach(g=>{g.observer.trackProp(m)})})})},we=function(e,s){return s?((!r(this,L)||r(this,N)!==r(this,se)||s!==r(this,te))&&(h(this,te,s),h(this,se,r(this,N)),h(this,L,it(r(this,L),s(e)))),r(this,L)):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,K).defaultQueryOptions(c),a=s.get(o.queryHash);a?i.push({defaultedQueryOptions:o,observer:a}):i.push({defaultedQueryOptions:o,observer:new Se(r(this,K),o)})}),i},je=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(h(this,N,ft(r(this,N),i,s)),u(this,R,Oe).call(this))},Oe=function(){var e;if(this.hasListeners()){const s=r(this,L),i=u(this,R,we).call(this,u(this,R,Re).call(this,r(this,N),r(this,H)),(e=r(this,W))==null?void 0:e.combine);s!==i&&Y.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),ze=S.createContext(!1),Ge=()=>S.useContext(ze);ze.Provider;function mt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var gt=S.createContext(mt()),Ve=()=>S.useContext(gt);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=>{S.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=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Ee=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ne=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function bt({queries:t,...e},s){const i=Ae(),c=Ge(),o=Ve(),a=S.useMemo(()=>t.map(x=>{const j=i.defaultQueryOptions(x);return j._optimisticResults=c?"isRestoring":"optimistic",j}),[t,i,c]);a.forEach(x=>{Xe(x),Ke(x,o)}),We(o);const[m]=S.useState(()=>new pt(i,a,e)),[g,f,w]=m.getOptimisticResult(a,e.combine);S.useSyncExternalStore(S.useCallback(x=>c?Ce:m.subscribe(Y.batchCalls(x)),[m,c]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),S.useEffect(()=>{m.setQueries(a,e,{listeners:!1})},[a,e,m]);const k=g.some((x,j)=>Ee(a[j],x))?g.flatMap((x,j)=>{const v=a[j];if(v){const $=new Se(i,v);if(Ee(v,x))return ne(v,$,o);Ye(x,c)&&ne(v,$,o)}return[]}):[];if(k.length>0)throw Promise.all(k);const b=g.find((x,j)=>{const v=a[j];return v&&Je({result:x,errorResetBoundary:o,throwOnError:v.throwOnError,query:i.getQueryCache().get(v.queryHash)})});if(b!=null&&b.error)throw b.error;return f(w())}function xt(t,e,s){var w,y,k,b,x;const i=Ae(),c=Ge(),o=Ve(),a=i.defaultQueryOptions(t);(y=(w=i.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||y.call(w,a),a._optimisticResults=c?"isRestoring":"optimistic",Xe(a),Ke(a,o),We(o);const m=!i.getQueryCache().get(a.queryHash),[g]=S.useState(()=>new e(i,a)),f=g.getOptimisticResult(a);if(S.useSyncExternalStore(S.useCallback(j=>{const v=c?Ce:g.subscribe(Y.batchCalls(j));return g.updateResult(),v},[g,c]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),S.useEffect(()=>{g.setOptions(a,{listeners:!1})},[a,g]),Ee(a,f))throw ne(a,g,o);if(Je({result:f,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash)}))throw f.error;if((b=(k=i.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||b.call(k,a,f),a.experimental_prefetchInRender&&!de&&Ye(f,c)){const j=m?ne(a,g,o):(x=i.getQueryCache().get(a.queryHash))==null?void 0:x.promise;j==null||j.catch(Ce).finally(()=>{g.updateResult()})}return a.notifyOnChangeProps?f:g.trackResult(f)}function vt(t,e){return xt(t,Se)}/** + * @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 Rt=qe("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 wt=qe("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 jt({user:t,role:e,description:s}){return n.jsxs(X.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200",children:[n.jsxs("div",{className:"flex items-start gap-4",children:[n.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:t.name||t.login}),n.jsx("p",{className:"text-sm text-cornflower-blue",children:e}),t.location&&n.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[n.jsx(ct,{className:"h-4 w-4"}),n.jsx("span",{children:t.location})]})]})]}),n.jsx("p",{className:"mt-4 text-gray-600",children:s}),n.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(ht,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(at,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.public_repos," repos"]})]})]}),n.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline",children:"View GitHub Profile →"})]})}function Ot({repo:t}){return n.jsxs(X.div,{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:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:n.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&&n.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),n.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),n.jsx("span",{children:t.language})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(lt,{className:"h-5 w-5 text-yellow-500"}),n.jsx("span",{children:t.stargazers_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(wt,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:t.forks_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(Rt,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:nt(t.updated_at)})]})]})]})}const Ze="https://api.github.com";async function Ct(t){try{const e=await fetch(`${Ze}/users/${t}`);if(!e.ok){const s=await e.json().catch(()=>({}));throw console.error(`GitHub API Error (${e.status}):`,s),new Error(`Failed to fetch user ${t}: ${e.statusText}`)}return await e.json()}catch(e){throw console.error(`Error fetching GitHub user ${t}:`,e),e}}async function Et(t){try{const e=await fetch(`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`);if(!e.ok){const s=await e.json().catch(()=>({}));throw console.error(`GitHub API Error (${e.status}):`,s),new Error(`Failed to fetch repositories: ${e.statusText}`)}return await e.json()}catch(e){throw console.error("Error fetching repositories:",e),e}}const le=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Leading the development of Snigdha OS core system and architecture"},{username:"d3v1l0n",role:"Co Maintainer & Tools Developer",description:"Managing security tools integration and package maintenance"}];function _t(){const t=bt({queries:le.map(a=>({queryKey:["github-user",a.username],queryFn:()=>Ct(a.username)}))}),{data:e,isLoading:s,error:i}=vt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Et("Snigdha-OS")}),c=t.some(a=>a.isLoading)||s,o=t.some(a=>a.isError)||i;return c?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx(ot,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx("p",{className:"text-red-500",children:"Failed to load data"})}):n.jsx("div",{className:"py-12 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[n.jsx("h1",{className:"text-4xl font-extrabold text-gray-900",children:"Meet Our Team"}),n.jsx("p",{className:"mt-4 text-lg text-gray-600",children:"The amazing developers behind Snigdha OS"})]}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 mb-16 justify-center items-center",children:t.map((a,m)=>a.data&&n.jsx(X.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:m*.2},className:"flex justify-center items-center",children:n.jsx(jt,{user:a.data,role:le[m].role,description:le[m].description})},a.data.login))}),n.jsxs(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-16 text-center",children:[n.jsx("h2",{className:"text-3xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e==null?void 0:e.map(a=>n.jsx(Ot,{repo:a},a.id))})]})]})})}export{_t as default}; diff --git a/assets/Developers-czZSiP5L.js b/assets/Developers-czZSiP5L.js deleted file mode 100644 index d987181f..00000000 --- a/assets/Developers-czZSiP5L.js +++ /dev/null @@ -1,11 +0,0 @@ -var Te=t=>{throw TypeError(t)};var he=(t,e,s)=>e.has(t)||Te("Cannot "+s);var r=(t,e,s)=>(he(t,e,"read from private field"),s?s.call(t):e.get(t)),p=(t,e,s)=>e.has(t)?Te("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),h=(t,e,s,i)=>(he(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),u=(t,e,s)=>(he(t,e,"access private method"),s);import{S as $e,p as Me,b as M,s as ue,d as ie,n as et,i as de,e as _e,t as tt,g as st,h as rt,k as Fe,l as Y,m as it,r as S,u as Ae,c as qe,j as n,B as at,o as nt,a as ot}from"./index-CZOPZUyu.js";import{m as X}from"./proxy-o5KGle87.js";import{M as ct}from"./map-pin-HDq97v9L.js";import{U as ht}from"./users-DSDXdwxC.js";import{S as lt}from"./star-WKW-_mSO.js";var E,l,Z,C,U,B,_,T,ee,z,G,D,P,F,V,d,J,fe,pe,me,ge,ye,be,xe,Be,Pe,Se=(Pe=class extends $e{constructor(e,s){super();p(this,d);p(this,E);p(this,l);p(this,Z);p(this,C);p(this,U);p(this,B);p(this,_);p(this,T);p(this,ee);p(this,z);p(this,G);p(this,D);p(this,P);p(this,F);p(this,V,new Set);this.options=s,h(this,E,e),h(this,T,null),h(this,_,Me()),this.options.experimental_prefetchInRender||r(this,_).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,l).addObserver(this),Le(r(this,l),this.options)?u(this,d,J).call(this):this.updateResult(),u(this,d,ge).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ve(r(this,l),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ve(r(this,l),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,u(this,d,ye).call(this),u(this,d,be).call(this),r(this,l).removeObserver(this)}setOptions(e,s){const i=this.options,c=r(this,l);if(this.options=r(this,E).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof M(this.options.enabled,r(this,l))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");u(this,d,xe).call(this),r(this,l).setOptions(this.options),i._defaulted&&!ue(this.options,i)&&r(this,E).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,l),observer:this});const o=this.hasListeners();o&&Ue(r(this,l),c,this.options,i)&&u(this,d,J).call(this),this.updateResult(s),o&&(r(this,l)!==c||M(this.options.enabled,r(this,l))!==M(i.enabled,r(this,l))||ie(this.options.staleTime,r(this,l))!==ie(i.staleTime,r(this,l)))&&u(this,d,fe).call(this);const a=u(this,d,pe).call(this);o&&(r(this,l)!==c||M(this.options.enabled,r(this,l))!==M(i.enabled,r(this,l))||a!==r(this,F))&&u(this,d,me).call(this,a)}getOptimisticResult(e){const s=r(this,E).getQueryCache().build(r(this,E),e),i=this.createResult(s,e);return dt(this,i)&&(h(this,C,i),h(this,B,this.options),h(this,U,r(this,l).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,V).add(e)}getCurrentQuery(){return r(this,l)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const s=r(this,E).defaultQueryOptions(e),i=r(this,E).getQueryCache().build(r(this,E),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(e){return u(this,d,J).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,C)))}createResult(e,s){var Ie;const i=r(this,l),c=this.options,o=r(this,C),a=r(this,U),m=r(this,B),f=e!==i?e.state:r(this,Z),{state:w}=e;let y={...w},k=!1,b;if(s._optimisticResults){const O=this.hasListeners(),A=!O&&Le(e,s),q=O&&Ue(e,i,s,c);(A||q)&&(y={...y,...rt(w.data,e.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:x,errorUpdatedAt:j,status:v}=y;if(s.select&&y.data!==void 0)if(o&&y.data===(a==null?void 0:a.data)&&s.select===r(this,ee))b=r(this,z);else try{h(this,ee,s.select),b=s.select(y.data),b=Fe(o==null?void 0:o.data,b,s),h(this,z,b),h(this,T,null)}catch(O){h(this,T,O)}else b=y.data;if(s.placeholderData!==void 0&&b===void 0&&v==="pending"){let O;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData))O=o.data;else if(O=typeof s.placeholderData=="function"?s.placeholderData((Ie=r(this,G))==null?void 0:Ie.state.data,r(this,G)):s.placeholderData,s.select&&O!==void 0)try{O=s.select(O),h(this,T,null)}catch(A){h(this,T,A)}O!==void 0&&(v="success",b=Fe(o==null?void 0:o.data,O,s),k=!0)}r(this,T)&&(x=r(this,T),b=r(this,z),j=Date.now(),v="error");const $=y.fetchStatus==="fetching",oe=v==="pending",ce=v==="error",Qe=oe&&$,ke=b!==void 0,I={status:v,fetchStatus:y.fetchStatus,isPending:oe,isSuccess:v==="success",isError:ce,isInitialLoading:Qe,isLoading:Qe,data:b,dataUpdatedAt:y.dataUpdatedAt,error:x,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:$,isRefetching:$&&!oe,isLoadingError:ce&&!ke,isPaused:y.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:ce&&ke,isStale:Ne(e,s),refetch:this.refetch,promise:r(this,_)};if(this.options.experimental_prefetchInRender){const O=re=>{I.status==="error"?re.reject(I.error):I.data!==void 0&&re.resolve(I.data)},A=()=>{const re=h(this,_,I.promise=Me());O(re)},q=r(this,_);switch(q.status){case"pending":e.queryHash===i.queryHash&&O(q);break;case"fulfilled":(I.status==="error"||I.data!==q.value)&&A();break;case"rejected":(I.status!=="error"||I.error!==q.reason)&&A();break}}return I}updateResult(e){const s=r(this,C),i=this.createResult(r(this,l),this.options);if(h(this,U,r(this,l).state),h(this,B,this.options),r(this,U).data!==void 0&&h(this,G,r(this,l)),ue(i,s))return;h(this,C,i);const c={},o=()=>{if(!s)return!0;const{notifyOnChangeProps:a}=this.options,m=typeof a=="function"?a():a;if(m==="all"||!m&&!r(this,V).size)return!0;const g=new Set(m??r(this,V));return this.options.throwOnError&&g.add("error"),Object.keys(r(this,C)).some(f=>{const w=f;return r(this,C)[w]!==s[w]&&g.has(w)})};(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)}},E=new WeakMap,l=new WeakMap,Z=new WeakMap,C=new WeakMap,U=new WeakMap,B=new WeakMap,_=new WeakMap,T=new WeakMap,ee=new WeakMap,z=new WeakMap,G=new WeakMap,D=new WeakMap,P=new WeakMap,F=new WeakMap,V=new WeakMap,d=new WeakSet,J=function(e){u(this,d,xe).call(this);let s=r(this,l).fetch(this.options,e);return e!=null&&e.throwOnError||(s=s.catch(et)),s},fe=function(){u(this,d,ye).call(this);const e=ie(this.options.staleTime,r(this,l));if(de||r(this,C).isStale||!_e(e))return;const i=tt(r(this,C).dataUpdatedAt,e)+1;h(this,D,setTimeout(()=>{r(this,C).isStale||this.updateResult()},i))},pe=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,l)):this.options.refetchInterval)??!1},me=function(e){u(this,d,be).call(this),h(this,F,e),!(de||M(this.options.enabled,r(this,l))===!1||!_e(r(this,F))||r(this,F)===0)&&h(this,P,setInterval(()=>{(this.options.refetchIntervalInBackground||st.isFocused())&&u(this,d,J).call(this)},r(this,F)))},ge=function(){u(this,d,fe).call(this),u(this,d,me).call(this,u(this,d,pe).call(this))},ye=function(){r(this,D)&&(clearTimeout(r(this,D)),h(this,D,void 0))},be=function(){r(this,P)&&(clearInterval(r(this,P)),h(this,P,void 0))},xe=function(){const e=r(this,E).getQueryCache().build(r(this,E),this.options);if(e===r(this,l))return;const s=r(this,l);h(this,l,e),h(this,Z,e.state),this.hasListeners()&&(s==null||s.removeObserver(this),e.addObserver(this))},Be=function(e){Y.batch(()=>{e.listeners&&this.listeners.forEach(s=>{s(r(this,C))}),r(this,E).getQueryCache().notify({query:r(this,l),type:"observerResultsUpdated"})})},Pe);function ut(t,e){return M(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Le(t,e){return ut(t,e)||t.state.data!==void 0&&ve(t,e,e.refetchOnMount)}function ve(t,e,s){if(M(e.enabled,t)!==!1){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ne(t,e)}return!1}function Ue(t,e,s,i){return(t!==e||M(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ne(t,s)}function Ne(t,e){return M(e.enabled,t)!==!1&&t.isStaleByTime(ie(e.staleTime,t))}function dt(t,e){return!ue(t.getCurrentResult(),e)}function De(t,e){return t.filter(s=>!e.includes(s))}function ft(t,e,s){const i=t.slice(0);return i[e]=s,i}var K,N,H,W,Q,L,te,se,R,Re,we,ae,je,Oe,He,pt=(He=class extends $e{constructor(e,s,i){super();p(this,R);p(this,K);p(this,N);p(this,H);p(this,W);p(this,Q);p(this,L);p(this,te);p(this,se);h(this,K,e),h(this,W,i),h(this,H,[]),h(this,Q,[]),h(this,N,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&r(this,Q).forEach(e=>{e.subscribe(s=>{u(this,R,je).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){h(this,H,e),h(this,W,s),Y.batch(()=>{const c=r(this,Q),o=u(this,R,ae).call(this,r(this,H));o.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions,i));const a=o.map(f=>f.observer),m=a.map(f=>f.getCurrentResult()),g=a.some((f,w)=>f!==c[w]);c.length===a.length&&!g||(h(this,Q,a),h(this,N,m),this.hasListeners()&&(De(c,a).forEach(f=>{f.destroy()}),De(a,c).forEach(f=>{f.subscribe(w=>{u(this,R,je).call(this,f,w)})}),u(this,R,Oe).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,R,ae).call(this,e).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>u(this,R,we).call(this,o??c,s),()=>u(this,R,Re).call(this,c,e)]}},K=new WeakMap,N=new WeakMap,H=new WeakMap,W=new WeakMap,Q=new WeakMap,L=new WeakMap,te=new WeakMap,se=new WeakMap,R=new WeakSet,Re=function(e,s){const i=u(this,R,ae).call(this,s);return i.map((c,o)=>{const a=e[o];return c.defaultedQueryOptions.notifyOnChangeProps?a:c.observer.trackResult(a,m=>{i.forEach(g=>{g.observer.trackProp(m)})})})},we=function(e,s){return s?((!r(this,L)||r(this,N)!==r(this,se)||s!==r(this,te))&&(h(this,te,s),h(this,se,r(this,N)),h(this,L,it(r(this,L),s(e)))),r(this,L)):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,K).defaultQueryOptions(c),a=s.get(o.queryHash);a?i.push({defaultedQueryOptions:o,observer:a}):i.push({defaultedQueryOptions:o,observer:new Se(r(this,K),o)})}),i},je=function(e,s){const i=r(this,Q).indexOf(e);i!==-1&&(h(this,N,ft(r(this,N),i,s)),u(this,R,Oe).call(this))},Oe=function(){var e;if(this.hasListeners()){const s=r(this,L),i=u(this,R,we).call(this,u(this,R,Re).call(this,r(this,N),r(this,H)),(e=r(this,W))==null?void 0:e.combine);s!==i&&Y.batch(()=>{this.listeners.forEach(c=>{c(r(this,N))})})}},He),ze=S.createContext(!1),Ge=()=>S.useContext(ze);ze.Provider;function mt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var gt=S.createContext(mt()),Ve=()=>S.useContext(gt);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=>{S.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=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ye=(t,e)=>t.isLoading&&t.isFetching&&!e,Ee=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ne=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function bt({queries:t,...e},s){const i=Ae(),c=Ge(),o=Ve(),a=S.useMemo(()=>t.map(x=>{const j=i.defaultQueryOptions(x);return j._optimisticResults=c?"isRestoring":"optimistic",j}),[t,i,c]);a.forEach(x=>{Xe(x),Ke(x,o)}),We(o);const[m]=S.useState(()=>new pt(i,a,e)),[g,f,w]=m.getOptimisticResult(a,e.combine);S.useSyncExternalStore(S.useCallback(x=>c?Ce:m.subscribe(Y.batchCalls(x)),[m,c]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),S.useEffect(()=>{m.setQueries(a,e,{listeners:!1})},[a,e,m]);const k=g.some((x,j)=>Ee(a[j],x))?g.flatMap((x,j)=>{const v=a[j];if(v){const $=new Se(i,v);if(Ee(v,x))return ne(v,$,o);Ye(x,c)&&ne(v,$,o)}return[]}):[];if(k.length>0)throw Promise.all(k);const b=g.find((x,j)=>{const v=a[j];return v&&Je({result:x,errorResetBoundary:o,throwOnError:v.throwOnError,query:i.getQueryCache().get(v.queryHash)})});if(b!=null&&b.error)throw b.error;return f(w())}function xt(t,e,s){var w,y,k,b,x;const i=Ae(),c=Ge(),o=Ve(),a=i.defaultQueryOptions(t);(y=(w=i.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||y.call(w,a),a._optimisticResults=c?"isRestoring":"optimistic",Xe(a),Ke(a,o),We(o);const m=!i.getQueryCache().get(a.queryHash),[g]=S.useState(()=>new e(i,a)),f=g.getOptimisticResult(a);if(S.useSyncExternalStore(S.useCallback(j=>{const v=c?Ce:g.subscribe(Y.batchCalls(j));return g.updateResult(),v},[g,c]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),S.useEffect(()=>{g.setOptions(a,{listeners:!1})},[a,g]),Ee(a,f))throw ne(a,g,o);if(Je({result:f,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash)}))throw f.error;if((b=(k=i.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||b.call(k,a,f),a.experimental_prefetchInRender&&!de&&Ye(f,c)){const j=m?ne(a,g,o):(x=i.getQueryCache().get(a.queryHash))==null?void 0:x.promise;j==null||j.catch(Ce).finally(()=>{g.updateResult()})}return a.notifyOnChangeProps?f:g.trackResult(f)}function vt(t,e){return xt(t,Se)}/** - * @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 Rt=qe("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 wt=qe("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 jt({user:t,role:e,description:s}){return n.jsxs(X.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200",children:[n.jsxs("div",{className:"flex items-start gap-4",children:[n.jsx("img",{src:t.avatar_url,alt:`${t.login}'s avatar`,className:"w-16 h-16 rounded-full"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:t.name||t.login}),n.jsx("p",{className:"text-sm text-cornflower-blue",children:e}),t.location&&n.jsxs("div",{className:"flex items-center gap-1 text-sm text-gray-500 mt-1",children:[n.jsx(ct,{className:"h-4 w-4"}),n.jsx("span",{children:t.location})]})]})]}),n.jsx("p",{className:"mt-4 text-gray-600",children:s}),n.jsxs("div",{className:"mt-4 flex items-center gap-4 text-sm text-gray-500",children:[n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(ht,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.followers.toLocaleString()," followers"]})]}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(at,{className:"h-4 w-4"}),n.jsxs("span",{children:[t.public_repos," repos"]})]})]}),n.jsx("a",{href:t.html_url,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center text-sm text-cornflower-blue hover:underline",children:"View GitHub Profile →"})]})}function Ot({repo:t}){return n.jsxs(X.div,{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:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:n.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&&n.jsx("p",{className:"mt-2 text-gray-600 line-clamp-3",children:t.description}),n.jsxs("div",{className:"mt-4 flex items-center gap-6 text-sm text-gray-500",children:[t.language&&n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx("span",{className:"w-3 h-3 rounded-full bg-cornflower-blue","aria-hidden":"true"}),n.jsx("span",{children:t.language})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(lt,{className:"h-5 w-5 text-yellow-500"}),n.jsx("span",{children:t.stargazers_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(wt,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:t.forks_count})]}),n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(Rt,{className:"h-5 w-5 text-gray-600"}),n.jsx("span",{children:nt(t.updated_at)})]})]})]})}const Ze="https://api.github.com";async function Ct(t){try{const e=await fetch(`${Ze}/users/${t}`);if(!e.ok){const s=await e.json().catch(()=>({}));throw console.error(`GitHub API Error (${e.status}):`,s),new Error(`Failed to fetch user ${t}: ${e.statusText}`)}return await e.json()}catch(e){throw console.error(`Error fetching GitHub user ${t}:`,e),e}}async function Et(t){try{const e=await fetch(`${Ze}/orgs/${t}/repos?sort=updated&per_page=100`);if(!e.ok){const s=await e.json().catch(()=>({}));throw console.error(`GitHub API Error (${e.status}):`,s),new Error(`Failed to fetch repositories: ${e.statusText}`)}return await e.json()}catch(e){throw console.error("Error fetching repositories:",e),e}}const le=[{username:"eshanized",role:"Lead Developer & Maintainer",description:"Leading the development of Snigdha OS core system and architecture"},{username:"d3v1l0n",role:"Co Maintainer & Tools Developer",description:"Managing security tools integration and package maintenance"}];function _t(){const t=bt({queries:le.map(a=>({queryKey:["github-user",a.username],queryFn:()=>Ct(a.username)}))}),{data:e,isLoading:s,error:i}=vt({queryKey:["github-repos","Snigdha-OS"],queryFn:()=>Et("Snigdha-OS")}),c=t.some(a=>a.isLoading)||s,o=t.some(a=>a.isError)||i;return c?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx(ot,{className:"h-8 w-8 animate-spin text-cornflower-blue"})}):o?n.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:n.jsx("p",{className:"text-red-500",children:"Failed to load data"})}):n.jsx("div",{className:"py-12 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-16",children:[n.jsx("h1",{className:"text-4xl font-extrabold text-gray-900",children:"Meet Our Team"}),n.jsx("p",{className:"mt-4 text-lg text-gray-600",children:"The amazing developers behind Snigdha OS"})]}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 mb-16 justify-center items-center",children:t.map((a,m)=>a.data&&n.jsx(X.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:m*.2},className:"flex justify-center items-center",children:n.jsx(jt,{user:a.data,role:le[m].role,description:le[m].description})},a.data.login))}),n.jsxs(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-16 text-center",children:[n.jsx("h2",{className:"text-3xl font-semibold text-gray-900 mb-8",children:"Our Repositories"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e==null?void 0:e.map(a=>n.jsx(Ot,{repo:a},a.id))})]})]})})}export{_t as default}; diff --git a/assets/Donate-BlVdwrLT.js b/assets/Donate-BlVdwrLT.js deleted file mode 100644 index 13516282..00000000 --- a/assets/Donate-BlVdwrLT.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,G as g,H as u,r as l}from"./index-CZOPZUyu.js";import{m as n}from"./proxy-o5KGle87.js";import{C as b}from"./check-CShVONOr.js";import{U as f}from"./users-DSDXdwxC.js";import{S as y}from"./star-WKW-_mSO.js";function j(){return e.jsxs(n.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(g,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function x(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const N=.012,v=[{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"]}],d=s=>(s*N).toFixed(2);function w(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:v.map(s=>e.jsxs(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},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`,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:x(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",d(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(a=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(b,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:a})]},a))}),e.jsx("a",{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${d(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"}`,children:"Make a One-Time Donation"})]},s.name))})}const S=[{label:"Total Sponsors",value:"6+",icon:f,color:"text-blue-500"},{label:"Total Support",value:x(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:y,color:"text-yellow-500"}];function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:S.map((s,a)=>e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:a*.1},className:"bg-white/80 backdrop-blur-sm p-6 rounded-xl border border-gray-200",children:[e.jsx(s.icon,{className:`h-8 w-8 ${s.color} mb-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value}),e.jsx("p",{className:"text-gray-600",children:s.label})]},s.label))})}const k=[{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"}],I=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function m(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function T(){const[s,a]=l.useState([]),[c,p]=l.useState([]);return l.useEffect(()=>{(async()=>{const o=await Promise.all(k.map(async r=>{const i=await m(r.username);return{...r,name:i.name||r.username,avatar_url:i.avatar_url}}));a(o);const h=await Promise.all(I.map(async r=>{const i=await m(r.username);return{...r,name:i.name||r.username,avatar_url:i.avatar_url}}));p(h)})()},[]),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",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(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-cornflower-blue/20 shadow-xl hover:shadow-2xl transition-shadow",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-10 w-10 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",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(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow",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-10 w-10 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 A(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx(u,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg 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("div",{className:"mt-8",children:e.jsx(j,{})})]}),e.jsxs("div",{className:"space-y-16",children:[e.jsx("section",{children:e.jsx(T,{})}),e.jsx("section",{children:e.jsx(D,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-8",children:"Choose Your Sponsorship Tier"}),e.jsx(w,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-cornflower-blue/5 rounded-2xl p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600",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{A as default}; diff --git a/assets/Donate-D7xndTTD.js b/assets/Donate-D7xndTTD.js new file mode 100644 index 00000000..f3908d0e --- /dev/null +++ b/assets/Donate-D7xndTTD.js @@ -0,0 +1 @@ +import{j as e,G as g,H as u,r as l}from"../main.js";import{m as n}from"./proxy-DPp9lXkG.js";import{C as b}from"./check-GdsoDH1T.js";import{U as f}from"./users-Bjd2Q3fX.js";import{S as y}from"./star-ULTsXjFw.js";function j(){return e.jsxs(n.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(g,{className:"h-5 w-5"}),e.jsx("span",{className:"font-semibold",children:"Sponsor on GitHub"})]})}function x(s){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}const N=.012,v=[{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"]}],d=s=>(s*N).toFixed(2);function w(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:v.map(s=>e.jsxs(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},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`,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:x(s.amount)}),e.jsx("span",{className:"text-gray-600",children:" / ₹"}),e.jsxs("span",{className:"text-3xl font-bold text-gray-900 ml-2",children:["$",d(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(a=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(b,{className:"h-5 w-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-600",children:a})]},a))}),e.jsx("a",{href:`https://github.com/sponsors/eshanized?frequency=one-time&amount=${d(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"}`,children:"Make a One-Time Donation"})]},s.name))})}const S=[{label:"Total Sponsors",value:"6+",icon:f,color:"text-blue-500"},{label:"Total Support",value:x(164563.08),icon:u,color:"text-red-500"},{label:"GitHub Stars",value:"200+",icon:y,color:"text-yellow-500"}];function D(){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:S.map((s,a)=>e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:a*.1},className:"bg-white/80 backdrop-blur-sm p-6 rounded-xl border border-gray-200",children:[e.jsx(s.icon,{className:`h-8 w-8 ${s.color} mb-2`}),e.jsx("p",{className:"text-2xl font-bold text-gray-900",children:s.value}),e.jsx("p",{className:"text-gray-600",children:s.label})]},s.label))})}const k=[{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"}],I=[{username:"d3v1l0n",amount:"₹4,183.00"},{username:"myself-meghna",amount:"₹8,554"},{username:"lawrencecracker",amount:"₹3,220"}];async function m(s){return await(await fetch(`https://api.github.com/users/${s}`)).json()}function T(){const[s,a]=l.useState([]),[c,p]=l.useState([]);return l.useEffect(()=>{(async()=>{const o=await Promise.all(k.map(async r=>{const i=await m(r.username);return{...r,name:i.name||r.username,avatar_url:i.avatar_url}}));a(o);const h=await Promise.all(I.map(async r=>{const i=await m(r.username);return{...r,name:i.name||r.username,avatar_url:i.avatar_url}}));p(h)})()},[]),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",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(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-cornflower-blue/20 shadow-xl hover:shadow-2xl transition-shadow",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-10 w-10 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",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(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:o*.1},className:"bg-white/90 backdrop-blur-sm rounded-xl p-6 border border-indigo-200/50 shadow-md hover:shadow-lg transition-shadow",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-10 w-10 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 A(){return e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx(u,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Support Snigdha OS"}),e.jsx("p",{className:"mt-4 text-lg 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("div",{className:"mt-8",children:e.jsx(j,{})})]}),e.jsxs("div",{className:"space-y-16",children:[e.jsx("section",{children:e.jsx(T,{})}),e.jsx("section",{children:e.jsx(D,{})}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-8",children:"Choose Your Sponsorship Tier"}),e.jsx(w,{})]}),e.jsxs("section",{className:"max-w-3xl mx-auto text-center bg-cornflower-blue/5 rounded-2xl p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Why Sponsor Snigdha OS?"}),e.jsx("p",{className:"text-gray-600",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{A as default}; diff --git a/assets/Download-jWhfsfn3.js b/assets/Download-DWvMFQZR.js similarity index 97% rename from assets/Download-jWhfsfn3.js rename to assets/Download-DWvMFQZR.js index 975129c9..9a4ced1b 100644 --- a/assets/Download-jWhfsfn3.js +++ b/assets/Download-DWvMFQZR.js @@ -1,4 +1,4 @@ -import{c as y,j as e,D as g,r as l,f as j,a as N}from"./index-CZOPZUyu.js";import{m}from"./proxy-o5KGle87.js";import{C as S}from"./check-CShVONOr.js";import{S as v,G as k,W as p}from"./wifi-B9bumCzZ.js";import{M}from"./map-pin-HDq97v9L.js";/** +import{c as y,j as e,D as g,r as l,f as j,a as N}from"../main.js";import{m}from"./proxy-DPp9lXkG.js";import{C as S}from"./check-GdsoDH1T.js";import{S as v,G as k,W as p}from"./wifi-CD8OR96J.js";import{M}from"./map-pin-FndLqqsR.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Features-B4dJ7PaG.js b/assets/Features-CF7KU7eP.js similarity index 98% rename from assets/Features-B4dJ7PaG.js rename to assets/Features-CF7KU7eP.js index af328035..d5e7db7c 100644 --- a/assets/Features-B4dJ7PaG.js +++ b/assets/Features-CF7KU7eP.js @@ -1,4 +1,4 @@ -import{c as m,j as e,r}from"./index-CZOPZUyu.js";import{m as s}from"./proxy-o5KGle87.js";import{T as p}from"./terminal-CAeTTJqS.js";/** +import{c as m,j as e,r}from"../main.js";import{m as s}from"./proxy-DPp9lXkG.js";import{T as p}from"./terminal-DUBj4IUX.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Gallery-B0cHjmGY.js b/assets/Gallery-DXEfm09p.js similarity index 96% rename from assets/Gallery-B0cHjmGY.js rename to assets/Gallery-DXEfm09p.js index 0d56d1ba..b840b74b 100644 --- a/assets/Gallery-B0cHjmGY.js +++ b/assets/Gallery-DXEfm09p.js @@ -1,4 +1,4 @@ -import{c as i,j as e,r as l}from"./index-CZOPZUyu.js";import{m as o}from"./proxy-o5KGle87.js";/** +import{c as i,j as e,r as l}from"../main.js";import{m as o}from"./proxy-DPp9lXkG.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/Home-DrpWkAZ5.js b/assets/Home-B2QkArYy.js similarity index 97% rename from assets/Home-DrpWkAZ5.js rename to assets/Home-B2QkArYy.js index 63c61289..d5185b52 100644 --- a/assets/Home-DrpWkAZ5.js +++ b/assets/Home-B2QkArYy.js @@ -1,4 +1,4 @@ -import{c as o,j as e,L as l,D as v,r as x}from"./index-CZOPZUyu.js";import{m as r}from"./proxy-o5KGle87.js";import{U as m}from"./users-DSDXdwxC.js";import{S as h}from"./star-WKW-_mSO.js";import{G as j,S as g,W as N}from"./wifi-B9bumCzZ.js";import{T as y}from"./terminal-CAeTTJqS.js";/** +import{c as o,j as e,L as l,D as v,r as x}from"../main.js";import{m as r}from"./proxy-DPp9lXkG.js";import{U as m}from"./users-Bjd2Q3fX.js";import{S as h}from"./star-ULTsXjFw.js";import{G as j,S as g,W as N}from"./wifi-CD8OR96J.js";import{T as y}from"./terminal-DUBj4IUX.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/check-CShVONOr.js b/assets/check-GdsoDH1T.js similarity index 86% rename from assets/check-CShVONOr.js rename to assets/check-GdsoDH1T.js index 02492fa9..da703c2c 100644 --- a/assets/check-CShVONOr.js +++ b/assets/check-GdsoDH1T.js @@ -1,4 +1,4 @@ -import{c}from"./index-CZOPZUyu.js";/** +import{c}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/map-pin-HDq97v9L.js b/assets/map-pin-FndLqqsR.js similarity index 89% rename from assets/map-pin-HDq97v9L.js rename to assets/map-pin-FndLqqsR.js index 177e38f4..1ecf186f 100644 --- a/assets/map-pin-HDq97v9L.js +++ b/assets/map-pin-FndLqqsR.js @@ -1,4 +1,4 @@ -import{c}from"./index-CZOPZUyu.js";/** +import{c}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/proxy-DPp9lXkG.js b/assets/proxy-DPp9lXkG.js new file mode 100644 index 00000000..89647724 --- /dev/null +++ b/assets/proxy-DPp9lXkG.js @@ -0,0 +1 @@ +import{r as S,j as he}from"../main.js";function Ji(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))})}function $t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const fe=t=>Array.isArray(t);function bs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Me(t,e,n,s){if(typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function zt(t,e,n){const s=t.getProps();return Me(s,e,n!==void 0?n:s.custom,t)}const Re=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Re],Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],st=new Set(Ct),$=t=>t*1e3,z=t=>t/1e3,Qi={type:"spring",stiffness:500,damping:25,restSpeed:10},to=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eo={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},so=(t,{keyframes:e})=>e.length>2?eo:st.has(t)?t.startsWith("scale")?to(e[1]):Qi:no;function Le(t,e){return t?t[e]||t.default||t:void 0}const io={skipAnimations:!1,useManualTiming:!1},oo=t=>t!==null;function Ht(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(oo),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const j=t=>t;let de=j;function ro(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=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"],ao=40;function ws(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((m,v)=>(m[v]=ro(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,ao),1),i.timestamp=m,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))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((m,v)=>{const T=o[v];return m[v]=(b,P=!1,w=!1)=>(n||p(),T.schedule(b,P,w)),m},{}),cancel:m=>{for(let v=0;v(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,lo=1e-7,uo=12;function co(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Vs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>lo&&++aco(r,0,1,t,n);return r=>r===0||r===1?r:Vs(i(r),e,s)}const Cs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ds=t=>e=>1-t(1-e),Ms=Dt(.33,1.53,.69,.99),Fe=Ds(Ms),Rs=Cs(Fe),Es=t=>(t*=2)<1?.5*Fe(t):.5*(2-Math.pow(2,-10*(t-1))),Be=t=>1-Math.sin(Math.acos(t)),Ls=Ds(Be),Fs=Cs(Be),Bs=t=>/^0[^.\s]+$/u.test(t);function ho(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bs(t):!0}const ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),js=t=>e=>typeof e=="string"&&e.startsWith(t),Is=js("--"),fo=js("var(--"),ke=t=>fo(t)?mo.test(t.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function go(t){const e=po.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Os(t,e,n=1){const[s,i]=go(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ks(o)?parseFloat(o):o}return ke(i)?Os(i,e,n+1):i}const H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},At={...dt,transform:t=>H(0,1,t)},Ft={...dt,default:1},Mt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Mt("deg"),K=Mt("%"),x=Mt("px"),yo=Mt("vh"),vo=Mt("vw"),hn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},xo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fn=t=>t===dt||t===x,dn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return dn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?dn(r[1],t):0}},To=new Set(["x","y","z"]),Po=Ct.filter(t=>!To.has(t));function So(t){const e=[];return Po.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={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:mn(4,13),y:mn(5,14)};ct.translateX=ct.x;ct.translateY=ct.y;const Ns=t=>e=>e.test(t),Ao={test:t=>t==="auto",parse:t=>t},Us=[dt,x,K,X,vo,yo,Ao],pn=t=>Us.find(Ns(t)),nt=new Set;let me=!1,pe=!1;function _s(){if(pe){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=So(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(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}pe=!1,me=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ks(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pe=!0)})}function bo(){Ks(),_s()}class je{constructor(e,n,s,i,r,o=!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=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),me||(me=!0,V.read(Ks),V.resolveKeyframes(_s))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wo(t){return t==null}const Vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oe=(t,e)=>n=>!!(typeof n=="string"&&Vo.test(n)&&n.startsWith(t)||e&&!wo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ws=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ie);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Co=t=>H(0,255,t),Qt={...dt,transform:t=>Math.round(Co(t))},et={test:Oe("rgb","red"),parse:Ws("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qt.transform(t)+", "+Qt.transform(e)+", "+Qt.transform(n)+", "+vt(At.transform(s))+")"};function Do(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:Oe("#"),parse:Do,transform:et.transform},ot={test:Oe("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(vt(e))+", "+K.transform(vt(n))+", "+vt(At.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||ot.test(t),parse:t=>et.test(t)?et.parse(t):ot.test(t)?ot.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):ot.transform(t)},Mo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ro(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ie))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Mo))===null||n===void 0?void 0:n.length)||0)>0}const Gs="number",$s="color",Eo="var",Lo="var(",gn="${}",Fo=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Fo,l=>(L.test(l)?(s.color.push(r),i.push($s),n.push(L.parse(l))):l.startsWith(Lo)?(s.var.push(r),i.push(Eo),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:s,types:i}}function zs(t){return bt(t).values}function Hs(t){const{split:e,types:n}=bt(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function ko(t){const e=zs(t);return Hs(t)(e.map(Bo))}const q={test:Ro,parse:zs,createTransformer:Hs,getAnimatableNone:ko},jo=new Set(["brightness","contrast","saturate","opacity"]);function Io(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ie)||[];if(!s)return t;const i=n.replace(s,"");let r=jo.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Oo);return e?e.map(Io).join(" "):t}},No={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},Uo={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:At,originX:hn,originY:hn,originZ:x},yn={...dt,transform:Math.round},Ne={...No,...Uo,zIndex:yn,size:x,fillOpacity:At,strokeOpacity:At,numOctaves:yn},_o={...Ne,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},Ue=t=>_o[t];function Xs(t,e){let n=Ue(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ko=new Set(["auto","none","0"]);function Wo(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function _e(t){return typeof t=="function"}let kt;function Go(){kt=void 0}const W={now:()=>(kt===void 0&&W.set(E.isProcessing||io.useManualTiming?E.timestamp:performance.now()),kt),set:t=>{kt=t,queueMicrotask(Go)}},vn=(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;nHo?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!zo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Ht(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 ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r{const c=u*o,h=c*t,f=c-n,d=ve(u,o),p=Math.exp(-h);return te-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=ve(Math.pow(u,2),o);return(-i(u)+te>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-te+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Zo(i,r,a);if(t=$(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const qo=12;function Zo(t,e,n){let s=n;for(let i=1;i=xe?1/0:e}const Jo=["duration","bounce"],Qo=["stiffness","damping","mass"];function xn(t,e){return e.some(n=>t[n]!==void 0)}function tr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!xn(t,Qo)&&xn(t,Jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Yo(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function ei(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 r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=tr({...n,velocity:-z(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),y=o-r,m=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(g<1){const P=ve(m,g);T=w=>{const R=Math.exp(-g*m*w);return o-R*((p+g*m*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(g===1)T=P=>o-Math.exp(-m*P)*(y+(p+m*y)*P);else{const P=m*Math.sqrt(g*g-1);T=w=>{const R=Math.exp(-g*m*w),A=Math.min(P*w,300);return o-R*((p+g*m*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;g<1&&(R=P===0?$(p):Qs(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(o-w)<=i;a.done=A&&k}return a.value=a.done?o:w,a},toString:()=>{const P=Math.min(ti(b),xe),w=Zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Tn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),T=A=>m+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=ei({keyframes:[f.value,p(f.value)],velocity:Qs(T,A,f.value),damping:i,stiffness:r,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 er=Dt(.42,0,1,1),nr=Dt(0,0,.58,1),ni=Dt(.42,0,.58,1),sr=t=>Array.isArray(t)&&typeof t[0]!="number",Ke=t=>Array.isArray(t)&&typeof t[0]=="number",Pn={linear:j,easeIn:er,easeInOut:ni,easeOut:nr,circIn:Be,circInOut:Fs,circOut:Ls,backIn:Fe,backInOut:Rs,backOut:Ms,anticipate:Es},Sn=t=>{if(Ke(t)){de(t.length===4);const[e,n,s,i]=t;return Dt(e,n,s,i)}else if(typeof t=="string")return de(Pn[t]!==void 0),Pn[t];return t},ir=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(ir),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 or({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ee(l,a,t+1/3),r=ee(l,a,t),o=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(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)},rr=[ge,et,ot],ar=t=>rr.find(e=>e.test(t));function An(t){const e=ar(t);if(!e)return!1;let n=e.parse(t);return e===ot&&(n=or(n)),n}const bn=(t,e)=>{const n=An(t),s=An(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=ne(n.red,s.red,r),i.green=ne(n.green,s.green,r),i.blue=ne(n.blue,s.blue,r),i.alpha=C(n.alpha,s.alpha,r),et.transform(i))},Te=new Set(["none","hidden"]);function lr(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ur(t,e){return n=>C(t,e,n)}function We(t){return typeof t=="number"?ur:typeof t=="string"?ke(t)?Ot:L.test(t)?bn:fr:Array.isArray(t)?si:typeof t=="object"?L.test(t)?bn:cr:Ot}function si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>We(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function hr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=q.createTransformer(e),s=bt(t),i=bt(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?lr(t,e):Rt(si(hr(s,i),i.values),n):Ot(t,e)};function ii(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):We(t)(t,e)}function dr(t,e,n){const s=[],i=n||ii,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=dr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(H(t[0],t[r-1],u)):l}function pr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(C(n,1,i))}}function gr(t){const e=[0];return pr(e,t.length-1),e}function yr(t,e){return t.map(n=>n*e)}function vr(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function Nt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=sr(s)?s.map(Sn):Sn(s),r={done:!1,value:e[0]},o=yr(n&&n.length===e.length?n:gr(e),t),a=mr(o,e,{ease:Array.isArray(i)?i:vr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},Tr={decay:Tn,inertia:Tn,tween:Nt,keyframes:Nt,spring:ei},Pr=t=>t/100;class Ge extends qs{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:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||je,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,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:r,velocity:o=0}=this.options,a=_e(n)?n:Tr[n]||Nt;let l,u;a!==Nt&&typeof e[0]!="number"&&(l=Rt(Pr,ii(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ti(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:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:g,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 m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=r;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)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(b=o)),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=Ht(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=$(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=xr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),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 Sr=new Set(["opacity","clipPath","filter","transform"]);function $e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ar={linearEasing:void 0};function br(t,e){const n=$e(t);return()=>{var s;return(s=Ar[e])!==null&&s!==void 0?s:n()}}const Ut=br(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function oi(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Pe||Ut())||Ke(t)||Array.isArray(t)&&t.every(oi))}const pt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Pe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pt([0,.65,.55,1]),circOut:pt([.55,0,1,.45]),backIn:pt([.31,.01,.66,-.59]),backOut:pt([.33,1.53,.69,.99])};function ri(t,e){if(t)return typeof t=="function"&&Ut()?Zs(t,e):Ke(t)?pt(t):Array.isArray(t)?t.map(n=>ri(n,e)||Pe.easeOut):Pe[t]}function wr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=ri(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:r+1,direction:o==="reverse"?"alternate":"normal"})}function wn(t,e){t.timeline=e,t.onfinish=null}const Vr=$e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_t=10,Cr=2e4;function Dr(t){return _e(t.type)||t.type==="spring"||!oi(t.ease)}function Mr(t,e){const n=new Ge({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ut()&&Rr(o)&&(o=ai[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...y}=this.options,m=Mr(e,y);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=wr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(wn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ht(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,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=$(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;wn(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:r,ease:o,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,p=new Ge({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=$(this.time);u.setWithVelocity(p.sample(g-_t).value,p.sample(g).value,_t)}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:r,damping:o,type:a}=e;return Vr()&&s&&Sr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Er=$e(()=>window.ScrollTimeline!==void 0);class Lr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sEr()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].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")}}function Fr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ze=(t,e,n,s={},i,r)=>o=>{const a=Le(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(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:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Fr(a)||(c={...c,...so(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(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&&!r&&e.get()!==void 0){const f=Ht(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new Lr([])}return!r&&Vn.supports(c)?new Vn(c):new Ge(c)},Br=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),kr=t=>fe(t)?t[t.length-1]||0:t;function He(t,e){t.indexOf(e)===-1&&t.push(e)}function Xe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ye{constructor(){this.subscriptions=[]}add(e){return He(this.subscriptions,e),()=>Xe(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 r=0;r!isNaN(parseFloat(t));class Ir{constructor(e,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=W.now();this.updatedAt!==r&&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=jr(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 Ye);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>Cn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cn);return Js(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 Ir(t,e)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Nr(t,e){const n=zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=kr(r[o]);Or(t,o,a)}}const qe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ur="framerAppearId",li="data-"+qe(Ur);function ui(t){return t.props[li]}const F=t=>!!(t&&t.getVelocity);function _r(t){return!!(F(t)&&t.add)}function Se(t,e){const n=t.getValue("willChange");if(_r(n))return n.add(e)}function Kr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ci(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Kr(c,h))continue;const p={delay:n,...Le(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ui(t);if(m){const v=window.MotionHandoffAnimation(m,h,V);v!==null&&(p.startTime=v,g=!0)}}Se(t,h),f.start(ze(h,f,d,t.shouldReduceMotion&&st.has(h)?{type:!1}:p,t,g));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Nr(t,a)})}),u}function Ae(t,e,n={}){var s;const i=zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(ci(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Wr(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Wr(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Gr).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ae(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Gr(t,e){return t.sortNodePosition(e)}function $r(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ae(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ae(t,e,n);else{const i=typeof e=="function"?zt(t,e,n.custom):e;s=Promise.all(ci(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const zr=Ee.length;function hi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hi(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})=>$r(t,n,s)))}function qr(t){let e=Yr(t),n=Dn(),s=!0;const i=l=>(u,c)=>{var h;const f=zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=hi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;yp&&b,k=!1;const O=Array.isArray(T)?T:[T];let it=O.reduce(i(m),{});P===!1&&(it={});const{prevResolvedValues:ln={}}=v,Zi={...ln,...it},un=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in Zi){const G=it[B],qt=ln[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe(G)&&fe(qt)?Zt=!bs(G,qt):Zt=G!==qt,Zt?G!=null?un(B):f.add(B):G!==void 0&&f.has(B)?un(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=it,v.isActive&&(d={...d,...it}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:m}})))}if(f.size){const y={};f.forEach(m=>{const v=t.getBaseTarget(m),T=t.getValue(m);T&&(T.liveStyle=!0),y[m]=v??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?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=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Dn(),s=!0}}}function Zr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bs(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dn(){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 Jr extends Z{constructor(e){super(e),e.animationState||(e.animationState=qr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$t(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 Qr=0;class ta extends Z{constructor(){super(...arguments),this.id=Qr++}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 ea={animation:{Feature:Jr},exit:{Feature:ta}},_={x:!1,y:!1};function fi(){return _.x||_.y}function na(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function di(t,e){const n=na(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mn(t){return e=>{e.pointerType==="touch"||fi()||t(e)}}function sa(t,e,n={}){const[s,i,r]=di(t,n),o=Mn(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=Mn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Ze=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gt=new WeakSet;function Rn(t){return e=>{e.key==="Enter"&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ia=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Rn(()=>{if(gt.has(n))return;se(n,"down");const i=Rn(()=>{se(n,"up")}),r=()=>se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)},oa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ra(t){return oa.has(t.tagName)||t.tabIndex!==-1}const mi=(t,e)=>e?t===e?!0:mi(t,e.parentElement):!1;function En(t){return Ze(t)&&!fi()}function aa(t,e,n={}){const[s,i,r]=di(t,n),o=a=>{const l=a.currentTarget;if(!En(a)||gt.has(l))return;gt.add(l);const u=e(a),c=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!En(d)||!gt.has(l))&&(gt.delete(l),u&&u(d,{success:p}))},h=d=>{c(d,n.useGlobalTarget||mi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{ra(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ia(u,i),i)}),r}function la(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const ua=t=>e=>Ze(e)&&t(e,Et(e));function Vt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function xt(t,e,n,s){return Vt(t,e,ua(n),s)}const Ln=(t,e)=>Math.abs(t-e);function ca(t,e){const n=Ln(t.x,e.x),s=Ln(t.y,e.y);return Math.sqrt(n**2+s**2)}class pi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!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=oe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ca(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=E;this.history.push({...p,timestamp:g});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ie(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=oe(h.type==="pointercancel"?this.lastMoveEventInfo:ie(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!Ze(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Et(e),a=ie(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,oe(a,this.history)),this.removeListeners=Rt(xt(this.contextWindow,"pointermove",this.handlePointerMove),xt(this.contextWindow,"pointerup",this.handlePointerUp),xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function ie(t,e){return e?{point:e(t.point)}:t}function Fn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oe({point:t},e){return{point:t,delta:Fn(t,gi(e)),offset:Fn(t,ha(e)),velocity:fa(e,.1)}}function ha(t){return t[0]}function gi(t){return t[t.length-1]}function fa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const yi=1e-4,da=1-yi,ma=1+yi,vi=.01,pa=0-vi,ga=0+vi;function I(t){return t.max-t.min}function ya(t,e,n){return Math.abs(t-e)<=n}function Bn(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>=da&&t.scale<=ma||isNaN(t.scale))&&(t.scale=1),(t.translate>=pa&&t.translate<=ga||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Bn(t.x,e.x,n.x,s?s.originX:void 0),Bn(t.y,e.y,n.y,s?s.originY:void 0)}function kn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function va(t,e,n){kn(t.x,e.x,n.x),kn(t.y,e.y,n.y)}function jn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Pt(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function xa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function In(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 Ta(t,{top:e,left:n,bottom:s,right:i}){return{x:In(t.x,n,i),y:In(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),H(0,1,n)}function Aa(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 be=.35;function ba(t=be){return t===!1?t=0:t===!0&&(t=be),{x:Nn(t,"left","right"),y:Nn(t,"top","bottom")}}function Nn(t,e,n){return{min:Un(t,e),max:Un(t,n)}}function Un(t,e){return typeof t=="number"?t:t[e]||0}const _n=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:_n(),y:_n()}),Kn=()=>({min:0,max:0}),M=()=>({x:Kn(),y:Kn()});function U(t){return[t("x"),t("y")]}function xi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Va(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 we({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return we(t)||Ti(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ti(t){return Wn(t.x)||Wn(t.y)}function Wn(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Gn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ve(t,e=0,n=1,s,i){t.min=Gn(t.min,e,n,s,i),t.max=Gn(t.max,e,n,s,i)}function Pi(t,{x:e,y:n}){Ve(t.x,e.translate,e.scale,e.originPoint),Ve(t.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,zn=1.0000000000001;function Ca(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a$n&&(e.x=1),e.y$n&&(e.y=1)}function lt(t,e){t.min=t.min+e,t.max=t.max+e}function Hn(t,e,n,s,i=.5){const r=C(t.min,t.max,i);Ve(t,e,n,r,s)}function ut(t,e){Hn(t.x,e.x,e.scaleX,e.scale,e.originX),Hn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Si(t,e){return xi(Va(t.getBoundingClientRect(),e))}function Da(t,e,n){const s=Si(t,n),{scroll:i}=e;return i&&(lt(s.x,i.offset.x),lt(s.y,i.offset.y)),s}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,Ma=new WeakMap;class Ra{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)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=la(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 m=this.getAxisMotionValue(y).get()||0;if(K.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(m=I(T)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&V.postRender(()=>p(c,h)),Se(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ea(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(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 pi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ai(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&V.postRender(()=>r(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 r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=xa(o,this.constraints[e],this.elastic[e])),r.set(o)}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,r=this.constraints;n&&rt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ta(i.layoutBox,n):this.constraints=!1,this.elastic=ba(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Aa(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Da(s,i.root,this.visualElement.getTransformPagePoint());let o=Pa(i.layout.layoutBox,r);if(n){const a=n(wa(o));this.hasMutatedConstraints=!!a,a&&(o=xi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Se(this.visualElement,e),s.start(ze(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,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!rt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Sa({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(C(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ma.set(this.visualElement,this);const e=this.visualElement.current,n=xt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();rt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const o=Vt(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()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ea(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class La extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Ra(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 Xn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Fa extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new pi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xn(e),onStart:Xn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=xt(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 Je=S.createContext(null);function Ba(){const t=S.useContext(Je);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=S.useId();S.useEffect(()=>s(i),[]);const r=S.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const bi=S.createContext({}),wi=S.createContext({}),jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Yn(t,e.target.x),s=Yn(t,e.target.y);return`${n}% ${s}%`}},ka={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const r=q.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Wt={};function ja(t){Object.assign(Wt,t)}const{schedule:Qe,cancel:wu}=ws(queueMicrotask,!1);class Ia extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;ja(Oa),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qe.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 Vi(t){const[e,n]=Ba(),s=S.useContext(bi);return he.jsx(Ia,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(wi),isPresent:e,safeToRemove:n})}const Oa={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:ka},Ci=["TopLeft","TopRight","BottomLeft","BottomRight"],Na=Ci.length,qn=t=>typeof t=="string"?parseFloat(t):t,Zn=t=>typeof t=="number"||x.test(t);function Ua(t,e,n,s,i,r){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,_a(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Ka(s))):r&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ht(t,e,s))}function Qn(t,e){t.min=e.min,t.max=e.max}function N(t,e){Qn(t.x,e.x),Qn(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function es(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Wa(t,e=0,n=1,s=.5,i,r=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,s);t===r&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],r,o){Wa(t,e[n],e[s],e[i],e.scale,r,o)}const Ga=["x","scaleX","originX"],$a=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,Ga,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,$a,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Mi(t){return is(t.x)&&is(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function za(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function rs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ri(t,e){return rs(t.x,e.x)&&rs(t.y,e.y)}function as(t){return I(t.x)/I(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ha{constructor(){this.members=[]}add(e){He(this.members,e),e.scheduleRender()}remove(e){if(Xe(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 r=this.members[i];if(r.isPresent!==!1){s=r;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 Xa(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}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:p}=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) `),p&&(s+=`skewY(${p}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 Ya=(t,e)=>t.depth-e.depth;class qa{constructor(){this.children=[],this.isDirty=!1}add(e){He(this.children,e),this.isDirty=!0}remove(e){Xe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ya),this.isDirty=!1,this.children.forEach(e)}}function It(t){const e=F(t)?t.get():t;return Br(e)?e.toValue():e}function Za(t,e){const n=W.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return V.read(s,!0),()=>Y(s)}function Ja(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Qa(t,e,n){const s=F(t)?t:wt(t);return s.start(ze("",s,e,n)),s.animation}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,ae=["","X","Y","Z"],tl={visibility:"hidden"},us=1e3;let el=0;function le(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ei(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ei(s)}function Li({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=el++,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,yt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(il),this.nodes.forEach(ul),this.nodes.forEach(cl),this.nodes.forEach(ol),yt&&window.MotionDebug.record(tt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Za(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(hs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||pl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!Ri(this.targetLayout,p)||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={...Le(g,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.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(hl),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ei(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;fs(h.x,o.x,P),fs(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&za(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),g&&(this.animationValues=c,Ua(c,u,this.latestValues,P,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){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(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Qa(0,us,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}N(a,l),ut(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ha),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&le("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cs),this.root.sharedNodes.clear()}}}function nl(t){t.updateLayout()}function sl(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:r}=t.options,o=n.source!==t.layout.source;r==="size"?U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Fi(r,n.layoutBox,s)&&U(h=>{const f=o?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=at();Tt(a,s,n.layoutBox);const l=at();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Mi(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 p=M();Pt(p,n.layoutBox,f.layoutBox);const g=M();Pt(g,s,d.layoutBox),Ri(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,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 il(t){yt&&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 ol(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rl(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function al(t){t.isLayoutDirty=!1}function ll(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ul(t){t.resolveTargetDelta()}function cl(t){t.calcProjection()}function hl(t){t.resetSkewAndRotation()}function fl(t){t.removeLeadSnapshot()}function fs(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 ds(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function dl(t,e,n,s){ds(t.x,e.x,n.x,s),ds(t.y,e.y,n.y,s)}function ml(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pl={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ms("applewebkit/")&&!ms("chrome/")?Math.round:j;function gs(t){t.min=ps(t.min),t.max=ps(t.max)}function gl(t){gs(t.x),gs(t.y)}function Fi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ya(as(e),as(n),.2)}function yl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vl=Li({attachResizeListener:(t,e)=>Vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ue={current:void 0},Bi=Li({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ue.current){const t=new vl({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xl={pan:{Feature:Fa},drag:{Feature:La,ProjectionNode:Bi,MeasureLayout:Vi}};function ys(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&V.postRender(()=>r(e,Et(e)))}class Tl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=sa(e,n=>(ys(this.node,n,"Start"),s=>ys(this.node,s,"End"))))}unmount(){}}class Pl 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(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vs(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&V.postRender(()=>r(e,Et(e)))}class Sl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=aa(e,n=>(vs(this.node,n,"Start"),(s,{success:i})=>vs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ce=new WeakMap,ce=new WeakMap,Al=t=>{const e=Ce.get(t.target);e&&e(t)},bl=t=>{t.forEach(Al)};function wl({root:t,...e}){const n=t||document;ce.has(n)||ce.set(n,{});const s=ce.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(bl,{root:t,...e})),s[i]}function Vl(t,e,n){const s=wl(e);return Ce.set(t,n),s.observe(t),()=>{Ce.delete(t),s.unobserve(t)}}const Cl={some:0,all:1};class Dl 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:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Cl[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!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 Vl(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ml(e,n))&&this.startObserver()}unmount(){}}function Ml({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rl={inView:{Feature:Dl},tap:{Feature:Sl},focus:{Feature:Pl},hover:{Feature:Tl}},El={layout:{ProjectionNode:Bi,MeasureLayout:Vi}},ki=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Xt=S.createContext({}),tn=typeof window<"u",Ll=tn?S.useLayoutEffect:S.useEffect,ji=S.createContext({strict:!1});function Fl(t,e,n,s,i){var r,o;const{visualElement:a}=S.useContext(Xt),l=S.useContext(ji),u=S.useContext(Je),c=S.useContext(ki).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(wi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bl(h.current,n,i,d);const p=S.useRef(!1);S.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[li],y=S.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Ll(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qe.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),y.current=!1))}),f}function Bl(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ii(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&rt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ii(t){if(t)return t.options.allowProjection!==!1?t.projection:Ii(t.parent)}function kl(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):rt(n)&&(n.current=s))},[e])}function Yt(t){return $t(t.animate)||Ee.some(e=>St(t[e]))}function Oi(t){return!!(Yt(t)||t.variants)}function jl(t,e){if(Yt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||St(n)?n:void 0,animate:St(s)?s:void 0}}return t.inherit!==!1?e:{}}function Il(t){const{initial:e,animate:n}=jl(t,S.useContext(Xt));return S.useMemo(()=>({initial:e,animate:n}),[xs(e),xs(n)])}function xs(t){return Array.isArray(t)?t.join(" "):t}const Ts={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ft={};for(const t in Ts)ft[t]={isEnabled:e=>Ts[t].some(n=>!!e[n])};function Ol(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Nl=Symbol.for("motionComponentSymbol");function Ul({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ol(t);function r(a,l){let u;const c={...S.useContext(ki),...a,layoutId:_l(a)},{isStatic:h}=c,f=Il(a),d=s(a,h);if(!h&&tn){Kl();const p=Wl(c);u=p.MeasureLayout,f.visualElement=Fl(i,d,c,e,p.ProjectionNode)}return he.jsxs(Xt.Provider,{value:f,children:[u&&f.visualElement?he.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,kl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=S.forwardRef(r);return o[Nl]=i,o}function _l({layoutId:t}){const e=S.useContext(bi).id;return e&&t!==void 0?e+"-"+t:t}function Kl(t,e){S.useContext(ji).strict}function Wl(t){const{drag:e,layout:n}=ft;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 Gl=["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 en(t){return typeof t!="string"||t.includes("-")?!1:!!(Gl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ni(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ui=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 _i(t,e,n,s){Ni(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ui.has(i)?i:qe(i),e.attrs[i])}function Ki(t,{layout:e,layoutId:n}){return st.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}function nn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(F(i[o])||e.style&&F(e.style[o])||Ki(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Wi(t,e,n){const s=nn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function $l(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}function zl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:Hl(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const Gi=t=>(e,n)=>{const s=S.useContext(Xt),i=S.useContext(Je),r=()=>zl(t,e,s,i);return n?r():$l(r)};function Hl(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=It(r[f]);let{initial:o,animate:a}=t;const l=Yt(t),u=Oi(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!$t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),$i=()=>({...sn(),attrs:{}}),zi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yl=Ct.length;function ql(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",eu={useVisualState:Gi({scrapeMotionValuesFromProps:Wi,createRenderState:$i,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(()=>{rn(n,s,an(e.tagName),t.transformTemplate),_i(e,n)})}})},nu={useVisualState:Gi({scrapeMotionValuesFromProps:nn,createRenderState:sn})};function Hi(t,e,n){for(const s in e)!F(e[s])&&!Ki(s,n)&&(t[s]=e[s])}function su({transformTemplate:t},e){return S.useMemo(()=>{const n=sn();return on(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iu(t,e){const n=t.style||{},s={};return Hi(s,n,t),Object.assign(s,su(t,e)),s}function ou(t,e){const n={},s=iu(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}const ru=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 Gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ru.has(t)}let Xi=t=>!Gt(t);function au(t){t&&(Xi=e=>e.startsWith("on")?!Gt(e):t(e))}try{au(require("@emotion/is-prop-valid").default)}catch{}function lu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Xi(i)||n===!0&&Gt(i)||!e&&!Gt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function uu(t,e,n,s){const i=S.useMemo(()=>{const r=$i();return rn(r,e,an(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Hi(r,t.style,t),i.style={...r,...i.style}}return i}function cu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(en(n)?uu:ou)(s,r,o,n),u=lu(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 hu(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...en(s)?eu:nu,preloadedFeatures:t,useRender:cu(i),createVisualElement:e,Component:s};return Ul(o)}}const De={current:null},Yi={current:!1};function fu(){if(Yi.current=!0,!!tn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>De.current=t.matches;t.addListener(e),e()}else De.current=!1}function du(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,wt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,wt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ss=new WeakMap,mu=[...Us,L,q],pu=t=>mu.find(Ns(t)),As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=je,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)),Yi.current||fu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:De.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=st.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)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),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 ft){const n=ft[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 r=this.features[e];r.isMounted?r.update():(r.mount(),r.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"&&(ks(i)||Bs(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=Xs(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 o=Me(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!F(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ye),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class qi extends gu{constructor(){super(...arguments),this.KeyframeResolver=Ys}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 yu(t){return window.getComputedStyle(t)}class vu extends qi{constructor(){super(...arguments),this.type="html",this.renderInstance=Ni}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}else{const s=yu(e),i=(Is(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s){on(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return nn(e,n,s)}}class xu extends qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}return n=Ui.has(n)?n:qe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wi(e,n,s)}build(e,n,s){rn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){_i(e,n,s,i)}mount(e){this.isSVGTag=an(e.tagName),super.mount(e)}}const Tu=(t,e)=>en(t)?new xu(e):new vu(e,{allowProjection:t!==S.Fragment}),Pu=hu({...ea,...Rl,...xl,...El},Tu),Cu=Ji(Pu);export{Cu as m}; diff --git a/assets/proxy-o5KGle87.js b/assets/proxy-o5KGle87.js deleted file mode 100644 index 154a7d60..00000000 --- a/assets/proxy-o5KGle87.js +++ /dev/null @@ -1 +0,0 @@ -import{r as S,j as he}from"./index-CZOPZUyu.js";function Ji(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))})}function $t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const fe=t=>Array.isArray(t);function bs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Me(t,e,n,s){if(typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=cn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function zt(t,e,n){const s=t.getProps();return Me(s,e,n!==void 0?n:s.custom,t)}const Re=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...Re],Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],st=new Set(Ct),$=t=>t*1e3,z=t=>t/1e3,Qi={type:"spring",stiffness:500,damping:25,restSpeed:10},to=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eo={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},so=(t,{keyframes:e})=>e.length>2?eo:st.has(t)?t.startsWith("scale")?to(e[1]):Qi:no;function Le(t,e){return t?t[e]||t.default||t:void 0}const io={skipAnimations:!1,useManualTiming:!1},oo=t=>t!==null;function Ht(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(oo),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const j=t=>t;let de=j;function ro(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=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"],ao=40;function ws(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Lt.reduce((m,v)=>(m[v]=ro(r),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const m=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(m-i.timestamp,ao),1),i.timestamp=m,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))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Lt.reduce((m,v)=>{const T=o[v];return m[v]=(b,P=!1,w=!1)=>(n||p(),T.schedule(b,P,w)),m},{}),cancel:m=>{for(let v=0;v(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,lo=1e-7,uo=12;function co(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Vs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>lo&&++aco(r,0,1,t,n);return r=>r===0||r===1?r:Vs(i(r),e,s)}const Cs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ds=t=>e=>1-t(1-e),Ms=Dt(.33,1.53,.69,.99),Fe=Ds(Ms),Rs=Cs(Fe),Es=t=>(t*=2)<1?.5*Fe(t):.5*(2-Math.pow(2,-10*(t-1))),Be=t=>1-Math.sin(Math.acos(t)),Ls=Ds(Be),Fs=Cs(Be),Bs=t=>/^0[^.\s]+$/u.test(t);function ho(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bs(t):!0}const ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),js=t=>e=>typeof e=="string"&&e.startsWith(t),Is=js("--"),fo=js("var(--"),ke=t=>fo(t)?mo.test(t.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function go(t){const e=po.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Os(t,e,n=1){const[s,i]=go(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ks(o)?parseFloat(o):o}return ke(i)?Os(i,e,n+1):i}const H=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},At={...dt,transform:t=>H(0,1,t)},Ft={...dt,default:1},Mt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Mt("deg"),K=Mt("%"),x=Mt("px"),yo=Mt("vh"),vo=Mt("vw"),hn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},xo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fn=t=>t===dt||t===x,dn=(t,e)=>parseFloat(t.split(", ")[e]),mn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return dn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?dn(r[1],t):0}},To=new Set(["x","y","z"]),Po=Ct.filter(t=>!To.has(t));function So(t){const e=[];return Po.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={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:mn(4,13),y:mn(5,14)};ct.translateX=ct.x;ct.translateY=ct.y;const Ns=t=>e=>e.test(t),Ao={test:t=>t==="auto",parse:t=>t},Us=[dt,x,K,X,vo,yo,Ao],pn=t=>Us.find(Ns(t)),nt=new Set;let me=!1,pe=!1;function _s(){if(pe){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=So(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(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}pe=!1,me=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ks(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pe=!0)})}function bo(){Ks(),_s()}class je{constructor(e,n,s,i,r,o=!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=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),me||(me=!0,V.read(Ks),V.resolveKeyframes(_s))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;rMath.round(t*1e5)/1e5,Ie=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wo(t){return t==null}const Vo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oe=(t,e)=>n=>!!(typeof n=="string"&&Vo.test(n)&&n.startsWith(t)||e&&!wo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ws=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ie);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Co=t=>H(0,255,t),Qt={...dt,transform:t=>Math.round(Co(t))},et={test:Oe("rgb","red"),parse:Ws("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qt.transform(t)+", "+Qt.transform(e)+", "+Qt.transform(n)+", "+vt(At.transform(s))+")"};function Do(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:Oe("#"),parse:Do,transform:et.transform},ot={test:Oe("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(vt(e))+", "+K.transform(vt(n))+", "+vt(At.transform(s))+")"},L={test:t=>et.test(t)||ge.test(t)||ot.test(t),parse:t=>et.test(t)?et.parse(t):ot.test(t)?ot.parse(t):ge.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):ot.transform(t)},Mo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ro(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ie))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Mo))===null||n===void 0?void 0:n.length)||0)>0}const Gs="number",$s="color",Eo="var",Lo="var(",gn="${}",Fo=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Fo,l=>(L.test(l)?(s.color.push(r),i.push($s),n.push(L.parse(l))):l.startsWith(Lo)?(s.var.push(r),i.push(Eo),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:s,types:i}}function zs(t){return bt(t).values}function Hs(t){const{split:e,types:n}=bt(t),s=e.length;return i=>{let r="";for(let o=0;otypeof t=="number"?0:t;function ko(t){const e=zs(t);return Hs(t)(e.map(Bo))}const q={test:Ro,parse:zs,createTransformer:Hs,getAnimatableNone:ko},jo=new Set(["brightness","contrast","saturate","opacity"]);function Io(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ie)||[];if(!s)return t;const i=n.replace(s,"");let r=jo.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Oo=/\b([a-z-]*)\(.*?\)/gu,ye={...q,getAnimatableNone:t=>{const e=t.match(Oo);return e?e.map(Io).join(" "):t}},No={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},Uo={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:At,originX:hn,originY:hn,originZ:x},yn={...dt,transform:Math.round},Ne={...No,...Uo,zIndex:yn,size:x,fillOpacity:At,strokeOpacity:At,numOctaves:yn},_o={...Ne,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ye,WebkitFilter:ye},Ue=t=>_o[t];function Xs(t,e){let n=Ue(t);return n!==ye&&(n=q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ko=new Set(["auto","none","0"]);function Wo(t,e,n){let s=0,i;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function _e(t){return typeof t=="function"}let kt;function Go(){kt=void 0}const W={now:()=>(kt===void 0&&W.set(E.isProcessing||io.useManualTiming?E.timestamp:performance.now()),kt),set:t=>{kt=t,queueMicrotask(Go)}},vn=(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;nHo?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!zo(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Ht(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 ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Zs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r{const c=u*o,h=c*t,f=c-n,d=ve(u,o),p=Math.exp(-h);return te-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=ve(Math.pow(u,2),o);return(-i(u)+te>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-te+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Zo(i,r,a);if(t=$(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const qo=12;function Zo(t,e,n){let s=n;for(let i=1;i=xe?1/0:e}const Jo=["duration","bounce"],Qo=["stiffness","damping","mass"];function xn(t,e){return e.some(n=>t[n]!==void 0)}function tr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!xn(t,Qo)&&xn(t,Jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*H(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Yo(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function ei(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 r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=tr({...n,velocity:-z(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),y=o-r,m=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(g<1){const P=ve(m,g);T=w=>{const R=Math.exp(-g*m*w);return o-R*((p+g*m*y)/P*Math.sin(P*w)+y*Math.cos(P*w))}}else if(g===1)T=P=>o-Math.exp(-m*P)*(y+(p+m*y)*P);else{const P=m*Math.sqrt(g*g-1);T=w=>{const R=Math.exp(-g*m*w),A=Math.min(P*w,300);return o-R*((p+g*m*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;g<1&&(R=P===0?$(p):Qs(T,P,w));const A=Math.abs(R)<=s,k=Math.abs(o-w)<=i;a.done=A&&k}return a.value=a.done?o:w,a},toString:()=>{const P=Math.min(ti(b),xe),w=Zs(R=>b.next(P*R).value,P,30);return P+"ms "+w}};return b}function Tn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)-g*Math.exp(-A/s),T=A=>m+v(A),b=A=>{const k=v(A),O=T(A);f.done=Math.abs(k)<=u,f.value=f.done?m:O};let P,w;const R=A=>{d(f.value)&&(P=A,w=ei({keyframes:[f.value,p(f.value)],velocity:Qs(T,A,f.value),damping:i,stiffness:r,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 er=Dt(.42,0,1,1),nr=Dt(0,0,.58,1),ni=Dt(.42,0,.58,1),sr=t=>Array.isArray(t)&&typeof t[0]!="number",Ke=t=>Array.isArray(t)&&typeof t[0]=="number",Pn={linear:j,easeIn:er,easeInOut:ni,easeOut:nr,circIn:Be,circInOut:Fs,circOut:Ls,backIn:Fe,backInOut:Rs,backOut:Ms,anticipate:Es},Sn=t=>{if(Ke(t)){de(t.length===4);const[e,n,s,i]=t;return Dt(e,n,s,i)}else if(typeof t=="string")return de(Pn[t]!==void 0),Pn[t];return t},ir=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(ir),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 or({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ee(l,a,t+1/3),r=ee(l,a,t),o=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ot(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)},rr=[ge,et,ot],ar=t=>rr.find(e=>e.test(t));function An(t){const e=ar(t);if(!e)return!1;let n=e.parse(t);return e===ot&&(n=or(n)),n}const bn=(t,e)=>{const n=An(t),s=An(e);if(!n||!s)return Ot(t,e);const i={...n};return r=>(i.red=ne(n.red,s.red,r),i.green=ne(n.green,s.green,r),i.blue=ne(n.blue,s.blue,r),i.alpha=C(n.alpha,s.alpha,r),et.transform(i))},Te=new Set(["none","hidden"]);function lr(t,e){return Te.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ur(t,e){return n=>C(t,e,n)}function We(t){return typeof t=="number"?ur:typeof t=="string"?ke(t)?Ot:L.test(t)?bn:fr:Array.isArray(t)?si:typeof t=="object"?L.test(t)?bn:cr:Ot}function si(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>We(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function hr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r{const n=q.createTransformer(e),s=bt(t),i=bt(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?lr(t,e):Rt(si(hr(s,i),i.values),n):Ot(t,e)};function ii(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):We(t)(t,e)}function dr(t,e,n){const s=[],i=n||ii,r=t.length-1;for(let o=0;oe[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=dr(e,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(H(t[0],t[r-1],u)):l}function pr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(C(n,1,i))}}function gr(t){const e=[0];return pr(e,t.length-1),e}function yr(t,e){return t.map(n=>n*e)}function vr(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function Nt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=sr(s)?s.map(Sn):Sn(s),r={done:!1,value:e[0]},o=yr(n&&n.length===e.length?n:gr(e),t),a=mr(o,e,{ease:Array.isArray(i)?i:vr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>Y(e),now:()=>E.isProcessing?E.timestamp:W.now()}},Tr={decay:Tn,inertia:Tn,tween:Nt,keyframes:Nt,spring:ei},Pr=t=>t/100;class Ge extends qs{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:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||je,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,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:r,velocity:o=0}=this.options,a=_e(n)?n:Tr[n]||Nt;let l,u;a!==Nt&&typeof e[0]!="number"&&(l=Rt(Pr,ii(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ti(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:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:g,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 m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,b=r;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)&&(p==="reverse"?(O=1-O,g&&(O-=g/h)):p==="mirror"&&(b=o)),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=Ht(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=$(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=xr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),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 Sr=new Set(["opacity","clipPath","filter","transform"]);function $e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ar={linearEasing:void 0};function br(t,e){const n=$e(t);return()=>{var s;return(s=Ar[e])!==null&&s!==void 0?s:n()}}const Ut=br(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function oi(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Pe||Ut())||Ke(t)||Array.isArray(t)&&t.every(oi))}const pt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Pe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pt([0,.65,.55,1]),circOut:pt([.55,0,1,.45]),backIn:pt([.31,.01,.66,-.59]),backOut:pt([.33,1.53,.69,.99])};function ri(t,e){if(t)return typeof t=="function"&&Ut()?Zs(t,e):Ke(t)?pt(t):Array.isArray(t)?t.map(n=>ri(n,e)||Pe.easeOut):Pe[t]}function wr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=ri(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:r+1,direction:o==="reverse"?"alternate":"normal"})}function wn(t,e){t.timeline=e,t.onfinish=null}const Vr=$e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_t=10,Cr=2e4;function Dr(t){return _e(t.type)||t.type==="spring"||!oi(t.ease)}function Mr(t,e){const n=new Ge({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&rthis.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Ut()&&Rr(o)&&(o=ai[o]),Dr(this.options)){const{onComplete:f,onUpdate:d,motionValue:p,element:g,...y}=this.options,m=Mr(e,y);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,r=m.times,o=m.ease,a="keyframes"}const h=wr(l.owner.current,u,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(wn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ht(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,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=$(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;wn(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:r,ease:o,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,p=new Ge({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=$(this.time);u.setWithVelocity(p.sample(g-_t).value,p.sample(g).value,_t)}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:r,damping:o,type:a}=e;return Vr()&&s&&Sr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Er=$e(()=>window.ScrollTimeline!==void 0);class Lr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sEr()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].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")}}function Fr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ze=(t,e,n,s={},i,r)=>o=>{const a=Le(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-$(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:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Fr(a)||(c={...c,...so(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(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&&!r&&e.get()!==void 0){const f=Ht(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new Lr([])}return!r&&Vn.supports(c)?new Vn(c):new Ge(c)},Br=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),kr=t=>fe(t)?t[t.length-1]||0:t;function He(t,e){t.indexOf(e)===-1&&t.push(e)}function Xe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ye{constructor(){this.subscriptions=[]}add(e){return He(this.subscriptions,e),()=>Xe(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 r=0;r!isNaN(parseFloat(t));class Ir{constructor(e,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=W.now();this.updatedAt!==r&&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=jr(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 Ye);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>Cn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cn);return Js(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 Ir(t,e)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Nr(t,e){const n=zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=kr(r[o]);Or(t,o,a)}}const qe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ur="framerAppearId",li="data-"+qe(Ur);function ui(t){return t.props[li]}const F=t=>!!(t&&t.getVelocity);function _r(t){return!!(F(t)&&t.add)}function Se(t,e){const n=t.getValue("willChange");if(_r(n))return n.add(e)}function Kr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ci(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Kr(c,h))continue;const p={delay:n,...Le(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=ui(t);if(m){const v=window.MotionHandoffAnimation(m,h,V);v!==null&&(p.startTime=v,g=!0)}}Se(t,h),f.start(ze(h,f,d,t.shouldReduceMotion&&st.has(h)?{type:!1}:p,t,g));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Nr(t,a)})}),u}function Ae(t,e,n={}){var s;const i=zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(ci(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Wr(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Wr(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Gr).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ae(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Gr(t,e){return t.sortNodePosition(e)}function $r(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ae(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ae(t,e,n);else{const i=typeof e=="function"?zt(t,e,n.custom):e;s=Promise.all(ci(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const zr=Ee.length;function hi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hi(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})=>$r(t,n,s)))}function qr(t){let e=Yr(t),n=Dn(),s=!0;const i=l=>(u,c)=>{var h;const f=zt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=hi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;yp&&b,k=!1;const O=Array.isArray(T)?T:[T];let it=O.reduce(i(m),{});P===!1&&(it={});const{prevResolvedValues:ln={}}=v,Zi={...ln,...it},un=B=>{A=!0,f.has(B)&&(k=!0,f.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in Zi){const G=it[B],qt=ln[B];if(d.hasOwnProperty(B))continue;let Zt=!1;fe(G)&&fe(qt)?Zt=!bs(G,qt):Zt=G!==qt,Zt?G!=null?un(B):f.add(B):G!==void 0&&f.has(B)?un(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=it,v.isActive&&(d={...d,...it}),s&&t.blockInitialAnimation&&(A=!1),A&&(!(w&&R)||k)&&h.push(...O.map(B=>({animation:B,options:{type:m}})))}if(f.size){const y={};f.forEach(m=>{const v=t.getBaseTarget(m),T=t.getValue(m);T&&(T.liveStyle=!0),y[m]=v??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?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=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Dn(),s=!0}}}function Zr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bs(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dn(){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 Jr extends Z{constructor(e){super(e),e.animationState||(e.animationState=qr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$t(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 Qr=0;class ta extends Z{constructor(){super(...arguments),this.id=Qr++}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 ea={animation:{Feature:Jr},exit:{Feature:ta}},_={x:!1,y:!1};function fi(){return _.x||_.y}function na(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function di(t,e){const n=na(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mn(t){return e=>{e.pointerType==="touch"||fi()||t(e)}}function sa(t,e,n={}){const[s,i,r]=di(t,n),o=Mn(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=Mn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const Ze=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gt=new WeakSet;function Rn(t){return e=>{e.key==="Enter"&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ia=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Rn(()=>{if(gt.has(n))return;se(n,"down");const i=Rn(()=>{se(n,"up")}),r=()=>se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)},oa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ra(t){return oa.has(t.tagName)||t.tabIndex!==-1}const mi=(t,e)=>e?t===e?!0:mi(t,e.parentElement):!1;function En(t){return Ze(t)&&!fi()}function aa(t,e,n={}){const[s,i,r]=di(t,n),o=a=>{const l=a.currentTarget;if(!En(a)||gt.has(l))return;gt.add(l);const u=e(a),c=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!En(d)||!gt.has(l))&&(gt.delete(l),u&&u(d,{success:p}))},h=d=>{c(d,n.useGlobalTarget||mi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{ra(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>ia(u,i),i)}),r}function la(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Et(t){return{point:{x:t.pageX,y:t.pageY}}}const ua=t=>e=>Ze(e)&&t(e,Et(e));function Vt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function xt(t,e,n,s){return Vt(t,e,ua(n),s)}const Ln=(t,e)=>Math.abs(t-e);function ca(t,e){const n=Ln(t.x,e.x),s=Ln(t.y,e.y);return Math.sqrt(n**2+s**2)}class pi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!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=oe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ca(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:g}=E;this.history.push({...p,timestamp:g});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ie(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=oe(h.type==="pointercancel"?this.lastMoveEventInfo:ie(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!Ze(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Et(e),a=ie(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=E;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,oe(a,this.history)),this.removeListeners=Rt(xt(this.contextWindow,"pointermove",this.handlePointerMove),xt(this.contextWindow,"pointerup",this.handlePointerUp),xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function ie(t,e){return e?{point:e(t.point)}:t}function Fn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oe({point:t},e){return{point:t,delta:Fn(t,gi(e)),offset:Fn(t,ha(e)),velocity:fa(e,.1)}}function ha(t){return t[0]}function gi(t){return t[t.length-1]}function fa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const yi=1e-4,da=1-yi,ma=1+yi,vi=.01,pa=0-vi,ga=0+vi;function I(t){return t.max-t.min}function ya(t,e,n){return Math.abs(t-e)<=n}function Bn(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>=da&&t.scale<=ma||isNaN(t.scale))&&(t.scale=1),(t.translate>=pa&&t.translate<=ga||isNaN(t.translate))&&(t.translate=0)}function Tt(t,e,n,s){Bn(t.x,e.x,n.x,s?s.originX:void 0),Bn(t.y,e.y,n.y,s?s.originY:void 0)}function kn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function va(t,e,n){kn(t.x,e.x,n.x),kn(t.y,e.y,n.y)}function jn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Pt(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function xa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function In(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 Ta(t,{top:e,left:n,bottom:s,right:i}){return{x:In(t.x,n,i),y:In(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),H(0,1,n)}function Aa(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 be=.35;function ba(t=be){return t===!1?t=0:t===!0&&(t=be),{x:Nn(t,"left","right"),y:Nn(t,"top","bottom")}}function Nn(t,e,n){return{min:Un(t,e),max:Un(t,n)}}function Un(t,e){return typeof t=="number"?t:t[e]||0}const _n=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:_n(),y:_n()}),Kn=()=>({min:0,max:0}),M=()=>({x:Kn(),y:Kn()});function U(t){return[t("x"),t("y")]}function xi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Va(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 we({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function Q(t){return we(t)||Ti(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ti(t){return Wn(t.x)||Wn(t.y)}function Wn(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function Gn(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Ve(t,e=0,n=1,s,i){t.min=Gn(t.min,e,n,s,i),t.max=Gn(t.max,e,n,s,i)}function Pi(t,{x:e,y:n}){Ve(t.x,e.translate,e.scale,e.originPoint),Ve(t.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,zn=1.0000000000001;function Ca(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a$n&&(e.x=1),e.y$n&&(e.y=1)}function lt(t,e){t.min=t.min+e,t.max=t.max+e}function Hn(t,e,n,s,i=.5){const r=C(t.min,t.max,i);Ve(t,e,n,r,s)}function ut(t,e){Hn(t.x,e.x,e.scaleX,e.scale,e.originX),Hn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Si(t,e){return xi(Va(t.getBoundingClientRect(),e))}function Da(t,e,n){const s=Si(t,n),{scroll:i}=e;return i&&(lt(s.x,i.offset.x),lt(s.y,i.offset.y)),s}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,Ma=new WeakMap;class Ra{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)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=la(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 m=this.getAxisMotionValue(y).get()||0;if(K.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[y];T&&(m=I(T)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&V.postRender(()=>p(c,h)),Se(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Ea(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&g(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 pi(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ai(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&V.postRender(()=>r(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 r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=xa(o,this.constraints[e],this.elastic[e])),r.set(o)}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,r=this.constraints;n&&rt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ta(i.layoutBox,n):this.constraints=!1,this.elastic=ba(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Aa(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Da(s,i.root,this.visualElement.getTransformPagePoint());let o=Pa(i.layout.layoutBox,r);if(n){const a=n(wa(o));this.hasMutatedConstraints=!!a,a&&(o=xi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Bt(c,n,this.currentDirection))return;let h=l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Se(this.visualElement,e),s.start(ze(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,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-C(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!rt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Sa({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(o=>{if(!Bt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(C(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Ma.set(this.visualElement,this);const e=this.visualElement.current,n=xt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();rt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const o=Vt(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()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Bt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ea(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class La extends Z{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Ra(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 Xn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Fa extends Z{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new pi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xn(e),onStart:Xn(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=xt(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 Je=S.createContext(null);function Ba(){const t=S.useContext(Je);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=S.useId();S.useEffect(()=>s(i),[]);const r=S.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const bi=S.createContext({}),wi=S.createContext({}),jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Yn(t,e.target.x),s=Yn(t,e.target.y);return`${n}% ${s}%`}},ka={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=q.parse(t);if(i.length>5)return s;const r=q.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Wt={};function ja(t){Object.assign(Wt,t)}const{schedule:Qe,cancel:wu}=ws(queueMicrotask,!1);class Ia extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;ja(Oa),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qe.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 Vi(t){const[e,n]=Ba(),s=S.useContext(bi);return he.jsx(Ia,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(wi),isPresent:e,safeToRemove:n})}const Oa={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:ka},Ci=["TopLeft","TopRight","BottomLeft","BottomRight"],Na=Ci.length,qn=t=>typeof t=="string"?parseFloat(t):t,Zn=t=>typeof t=="number"||x.test(t);function Ua(t,e,n,s,i,r){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,_a(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Ka(s))):r&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ose?1:n(ht(t,e,s))}function Qn(t,e){t.min=e.min,t.max=e.max}function N(t,e){Qn(t.x,e.x),Qn(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function es(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function Wa(t,e=0,n=1,s=.5,i,r=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,s);t===r&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],r,o){Wa(t,e[n],e[s],e[i],e.scale,r,o)}const Ga=["x","scaleX","originX"],$a=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,Ga,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,$a,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Mi(t){return is(t.x)&&is(t.y)}function os(t,e){return t.min===e.min&&t.max===e.max}function za(t,e){return os(t.x,e.x)&&os(t.y,e.y)}function rs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ri(t,e){return rs(t.x,e.x)&&rs(t.y,e.y)}function as(t){return I(t.x)/I(t.y)}function ls(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ha{constructor(){this.members=[]}add(e){He(this.members,e),e.scheduleRender()}remove(e){if(Xe(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 r=this.members[i];if(r.isPresent!==!1){s=r;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 Xa(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}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:p}=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) `),p&&(s+=`skewY(${p}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 Ya=(t,e)=>t.depth-e.depth;class qa{constructor(){this.children=[],this.isDirty=!1}add(e){He(this.children,e),this.isDirty=!0}remove(e){Xe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ya),this.isDirty=!1,this.children.forEach(e)}}function It(t){const e=F(t)?t.get():t;return Br(e)?e.toValue():e}function Za(t,e){const n=W.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(Y(s),t(r-e))};return V.read(s,!0),()=>Y(s)}function Ja(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Qa(t,e,n){const s=F(t)?t:wt(t);return s.start(ze("",s,e,n)),s.animation}const tt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yt=typeof window<"u"&&window.MotionDebug!==void 0,ae=["","X","Y","Z"],tl={visibility:"hidden"},us=1e3;let el=0;function le(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ei(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ei(s)}function Li({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=el++,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,yt&&(tt.totalNodes=tt.resolvedTargetDeltas=tt.recalculatedProjection=0),this.nodes.forEach(il),this.nodes.forEach(ul),this.nodes.forEach(cl),this.nodes.forEach(ol),yt&&window.MotionDebug.record(tt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Za(f,250),jt.hasAnimatedSinceResize&&(jt.hasAnimatedSinceResize=!1,this.nodes.forEach(hs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||pl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!Ri(this.targetLayout,p)||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={...Le(g,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.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(hl),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ei(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;fs(h.x,o.x,P),fs(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dl(this.relativeTarget,this.relativeTargetOrigin,f,P),T&&za(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=M()),N(T,this.relativeTarget)),g&&(this.animationValues=c,Ua(c,u,this.latestValues,P,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){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(()=>{jt.hasAnimatedSinceResize=!0,this.currentAnimation=Qa(0,us,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(us),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}N(a,l),ut(a,c),Tt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ha),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&le("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cs),this.root.sharedNodes.clear()}}}function nl(t){t.updateLayout()}function sl(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:r}=t.options,o=n.source!==t.layout.source;r==="size"?U(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Fi(r,n.layoutBox,s)&&U(h=>{const f=o?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=at();Tt(a,s,n.layoutBox);const l=at();o?Tt(l,t.applyTransform(i,!0),n.measuredBox):Tt(l,s,n.layoutBox);const u=!Mi(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 p=M();Pt(p,n.layoutBox,f.layoutBox);const g=M();Pt(g,s,d.layoutBox),Ri(p,g)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,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 il(t){yt&&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 ol(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rl(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function al(t){t.isLayoutDirty=!1}function ll(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ul(t){t.resolveTargetDelta()}function cl(t){t.calcProjection()}function hl(t){t.resetSkewAndRotation()}function fl(t){t.removeLeadSnapshot()}function fs(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 ds(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function dl(t,e,n,s){ds(t.x,e.x,n.x,s),ds(t.y,e.y,n.y,s)}function ml(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pl={duration:.45,ease:[.4,0,.1,1]},ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ms("applewebkit/")&&!ms("chrome/")?Math.round:j;function gs(t){t.min=ps(t.min),t.max=ps(t.max)}function gl(t){gs(t.x),gs(t.y)}function Fi(t,e,n){return t==="position"||t==="preserve-aspect"&&!ya(as(e),as(n),.2)}function yl(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vl=Li({attachResizeListener:(t,e)=>Vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ue={current:void 0},Bi=Li({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ue.current){const t=new vl({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xl={pan:{Feature:Fa},drag:{Feature:La,ProjectionNode:Bi,MeasureLayout:Vi}};function ys(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&V.postRender(()=>r(e,Et(e)))}class Tl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=sa(e,n=>(ys(this.node,n,"Start"),s=>ys(this.node,s,"End"))))}unmount(){}}class Pl 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(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vs(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&V.postRender(()=>r(e,Et(e)))}class Sl extends Z{mount(){const{current:e}=this.node;e&&(this.unmount=aa(e,n=>(vs(this.node,n,"Start"),(s,{success:i})=>vs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ce=new WeakMap,ce=new WeakMap,Al=t=>{const e=Ce.get(t.target);e&&e(t)},bl=t=>{t.forEach(Al)};function wl({root:t,...e}){const n=t||document;ce.has(n)||ce.set(n,{});const s=ce.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(bl,{root:t,...e})),s[i]}function Vl(t,e,n){const s=wl(e);return Ce.set(t,n),s.observe(t),()=>{Ce.delete(t),s.unobserve(t)}}const Cl={some:0,all:1};class Dl 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:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Cl[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!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 Vl(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ml(e,n))&&this.startObserver()}unmount(){}}function Ml({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rl={inView:{Feature:Dl},tap:{Feature:Sl},focus:{Feature:Pl},hover:{Feature:Tl}},El={layout:{ProjectionNode:Bi,MeasureLayout:Vi}},ki=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Xt=S.createContext({}),tn=typeof window<"u",Ll=tn?S.useLayoutEffect:S.useEffect,ji=S.createContext({strict:!1});function Fl(t,e,n,s,i){var r,o;const{visualElement:a}=S.useContext(Xt),l=S.useContext(ji),u=S.useContext(Je),c=S.useContext(ki).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(wi);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bl(h.current,n,i,d);const p=S.useRef(!1);S.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[li],y=S.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Ll(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qe.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),S.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),y.current=!1))}),f}function Bl(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ii(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&rt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ii(t){if(t)return t.options.allowProjection!==!1?t.projection:Ii(t.parent)}function kl(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):rt(n)&&(n.current=s))},[e])}function Yt(t){return $t(t.animate)||Ee.some(e=>St(t[e]))}function Oi(t){return!!(Yt(t)||t.variants)}function jl(t,e){if(Yt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||St(n)?n:void 0,animate:St(s)?s:void 0}}return t.inherit!==!1?e:{}}function Il(t){const{initial:e,animate:n}=jl(t,S.useContext(Xt));return S.useMemo(()=>({initial:e,animate:n}),[xs(e),xs(n)])}function xs(t){return Array.isArray(t)?t.join(" "):t}const Ts={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ft={};for(const t in Ts)ft[t]={isEnabled:e=>Ts[t].some(n=>!!e[n])};function Ol(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Nl=Symbol.for("motionComponentSymbol");function Ul({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ol(t);function r(a,l){let u;const c={...S.useContext(ki),...a,layoutId:_l(a)},{isStatic:h}=c,f=Il(a),d=s(a,h);if(!h&&tn){Kl();const p=Wl(c);u=p.MeasureLayout,f.visualElement=Fl(i,d,c,e,p.ProjectionNode)}return he.jsxs(Xt.Provider,{value:f,children:[u&&f.visualElement?he.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,kl(d,f.visualElement,l),d,h,f.visualElement)]})}const o=S.forwardRef(r);return o[Nl]=i,o}function _l({layoutId:t}){const e=S.useContext(bi).id;return e&&t!==void 0?e+"-"+t:t}function Kl(t,e){S.useContext(ji).strict}function Wl(t){const{drag:e,layout:n}=ft;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 Gl=["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 en(t){return typeof t!="string"||t.includes("-")?!1:!!(Gl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ni(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ui=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 _i(t,e,n,s){Ni(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ui.has(i)?i:qe(i),e.attrs[i])}function Ki(t,{layout:e,layoutId:n}){return st.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}function nn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(F(i[o])||e.style&&F(e.style[o])||Ki(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Wi(t,e,n){const s=nn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function $l(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}function zl({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:Hl(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const Gi=t=>(e,n)=>{const s=S.useContext(Xt),i=S.useContext(Je),r=()=>zl(t,e,s,i);return n?r():$l(r)};function Hl(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=It(r[f]);let{initial:o,animate:a}=t;const l=Yt(t),u=Oi(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!$t(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),$i=()=>({...sn(),attrs:{}}),zi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yl=Ct.length;function ql(t,e,n){let s="",i=!0;for(let r=0;rtypeof t=="string"&&t.toLowerCase()==="svg",eu={useVisualState:Gi({scrapeMotionValuesFromProps:Wi,createRenderState:$i,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(()=>{rn(n,s,an(e.tagName),t.transformTemplate),_i(e,n)})}})},nu={useVisualState:Gi({scrapeMotionValuesFromProps:nn,createRenderState:sn})};function Hi(t,e,n){for(const s in e)!F(e[s])&&!Ki(s,n)&&(t[s]=e[s])}function su({transformTemplate:t},e){return S.useMemo(()=>{const n=sn();return on(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iu(t,e){const n=t.style||{},s={};return Hi(s,n,t),Object.assign(s,su(t,e)),s}function ou(t,e){const n={},s=iu(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}const ru=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 Gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ru.has(t)}let Xi=t=>!Gt(t);function au(t){t&&(Xi=e=>e.startsWith("on")?!Gt(e):t(e))}try{au(require("@emotion/is-prop-valid").default)}catch{}function lu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Xi(i)||n===!0&&Gt(i)||!e&&!Gt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function uu(t,e,n,s){const i=S.useMemo(()=>{const r=$i();return rn(r,e,an(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Hi(r,t.style,t),i.style={...r,...i.style}}return i}function cu(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(en(n)?uu:ou)(s,r,o,n),u=lu(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 hu(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...en(s)?eu:nu,preloadedFeatures:t,useRender:cu(i),createVisualElement:e,Component:s};return Ul(o)}}const De={current:null},Yi={current:!1};function fu(){if(Yi.current=!0,!!tn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>De.current=t.matches;t.addListener(e),e()}else De.current=!1}function du(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,wt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,wt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ss=new WeakMap,mu=[...Us,L,q],pu=t=>mu.find(Ns(t)),As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=je,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)),Yi.current||fu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:De.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=st.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)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),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 ft){const n=ft[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 r=this.features[e];r.isMounted?r.update():(r.mount(),r.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"&&(ks(i)||Bs(i))?i=parseFloat(i):!pu(i)&&q.test(n)&&(i=Xs(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 o=Me(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!F(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ye),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class qi extends gu{constructor(){super(...arguments),this.KeyframeResolver=Ys}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 yu(t){return window.getComputedStyle(t)}class vu extends qi{constructor(){super(...arguments),this.type="html",this.renderInstance=Ni}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}else{const s=yu(e),i=(Is(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s){on(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return nn(e,n,s)}}class xu extends qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(st.has(n)){const s=Ue(n);return s&&s.default||0}return n=Ui.has(n)?n:qe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wi(e,n,s)}build(e,n,s){rn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){_i(e,n,s,i)}mount(e){this.isSVGTag=an(e.tagName),super.mount(e)}}const Tu=(t,e)=>en(t)?new xu(e):new vu(e,{allowProjection:t!==S.Fragment}),Pu=hu({...ea,...Rl,...xl,...El},Tu),Cu=Ji(Pu);export{Cu as m}; diff --git a/assets/star-WKW-_mSO.js b/assets/star-ULTsXjFw.js similarity index 88% rename from assets/star-WKW-_mSO.js rename to assets/star-ULTsXjFw.js index 69edb46d..8597f4de 100644 --- a/assets/star-WKW-_mSO.js +++ b/assets/star-ULTsXjFw.js @@ -1,4 +1,4 @@ -import{c as o}from"./index-CZOPZUyu.js";/** +import{c as o}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/terminal-CAeTTJqS.js b/assets/terminal-DUBj4IUX.js similarity index 87% rename from assets/terminal-CAeTTJqS.js rename to assets/terminal-DUBj4IUX.js index f1515f31..bef5c681 100644 --- a/assets/terminal-CAeTTJqS.js +++ b/assets/terminal-DUBj4IUX.js @@ -1,4 +1,4 @@ -import{c as e}from"./index-CZOPZUyu.js";/** +import{c as e}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/users-DSDXdwxC.js b/assets/users-Bjd2Q3fX.js similarity index 90% rename from assets/users-DSDXdwxC.js rename to assets/users-Bjd2Q3fX.js index ae522e97..adb514f6 100644 --- a/assets/users-DSDXdwxC.js +++ b/assets/users-Bjd2Q3fX.js @@ -1,4 +1,4 @@ -import{c as e}from"./index-CZOPZUyu.js";/** +import{c as e}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/assets/wifi-B9bumCzZ.js b/assets/wifi-CD8OR96J.js similarity index 96% rename from assets/wifi-B9bumCzZ.js rename to assets/wifi-CD8OR96J.js index f62f8bf2..e735f3b8 100644 --- a/assets/wifi-B9bumCzZ.js +++ b/assets/wifi-CD8OR96J.js @@ -1,4 +1,4 @@ -import{c as a}from"./index-CZOPZUyu.js";/** +import{c as a}from"../main.js";/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. diff --git a/index.html b/index.html index ed630586..759a2b8e 100644 --- a/index.html +++ b/index.html @@ -50,8 +50,8 @@ Snigdha OS - Advanced Penetration Testing Distribution - - + + diff --git a/assets/index-CZOPZUyu.js b/main.js similarity index 67% rename from assets/index-CZOPZUyu.js rename to main.js index d8071da7..7f5291f6 100644 --- a/assets/index-CZOPZUyu.js +++ b/main.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-DrpWkAZ5.js","assets/proxy-o5KGle87.js","assets/users-DSDXdwxC.js","assets/star-WKW-_mSO.js","assets/wifi-B9bumCzZ.js","assets/terminal-CAeTTJqS.js","assets/About-C7J-jjVK.js","assets/Features-B4dJ7PaG.js","assets/Download-jWhfsfn3.js","assets/check-CShVONOr.js","assets/map-pin-HDq97v9L.js","assets/Developers-czZSiP5L.js","assets/Donate-BlVdwrLT.js","assets/Gallery-B0cHjmGY.js"])))=>i.map(i=>d[i]); -var fu=e=>{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||fu("Cannot "+n);var S=(e,t,n)=>(Uo(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?fu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(Uo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),de=(e,t,n)=>(Uo(e,t,"access private method"),n);var pl=(e,t,n,r)=>({set _(l){M(e,t,l,n)},get _(){return S(e,t,r)}});function If(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 o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xa={exports:{}},wo={},Za={exports:{}},I={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-B2QkArYy.js","assets/proxy-DPp9lXkG.js","assets/users-Bjd2Q3fX.js","assets/star-ULTsXjFw.js","assets/wifi-CD8OR96J.js","assets/terminal-DUBj4IUX.js","assets/About-SZ-ijCmv.js","assets/Features-CF7KU7eP.js","assets/Download-DWvMFQZR.js","assets/check-GdsoDH1T.js","assets/map-pin-FndLqqsR.js","assets/Developers-Ddn1LvUS.js","assets/Donate-D7xndTTD.js","assets/Gallery-DXEfm09p.js"])))=>i.map(i=>d[i]); +var pu=e=>{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||pu("Cannot "+n);var S=(e,t,n)=>(Uo(e,t,"read from private field"),n?n.call(e):t.get(e)),B=(e,t,n)=>t.has(e)?pu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(Uo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),de=(e,t,n)=>(Uo(e,t,"access private method"),n);var pl=(e,t,n,r)=>({set _(l){M(e,t,l,n)},get _(){return S(e,t,r)}});function Df(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 o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Za={exports:{}},wo={},Ja={exports:{}},I={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var fu=e=>{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||fu("Cannot "+n);var S=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rl=Symbol.for("react.element"),Af=Symbol.for("react.portal"),Uf=Symbol.for("react.fragment"),Bf=Symbol.for("react.strict_mode"),$f=Symbol.for("react.profiler"),Qf=Symbol.for("react.provider"),Vf=Symbol.for("react.context"),Hf=Symbol.for("react.forward_ref"),Wf=Symbol.for("react.suspense"),Kf=Symbol.for("react.memo"),Gf=Symbol.for("react.lazy"),pu=Symbol.iterator;function bf(e){return e===null||typeof e!="object"?null:(e=pu&&e[pu]||e["@@iterator"],typeof e=="function"?e:null)}var Ja={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ec=Object.assign,tc={};function or(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||Ja}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nc(){}nc.prototype=or.prototype;function ps(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||Ja}var hs=ps.prototype=new nc;hs.constructor=ps;ec(hs,or.prototype);hs.isPureReactComponent=!0;var hu=Array.isArray,rc=Object.prototype.hasOwnProperty,ms={current:null},lc={key:!0,ref:!0,__self:!0,__source:!0};function oc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)rc.call(t,r)&&!lc.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||fu("Cannot "+n);var S=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tp=P,np=Symbol.for("react.element"),rp=Symbol.for("react.fragment"),lp=Object.prototype.hasOwnProperty,op=tp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ip={key:!0,ref:!0,__self:!0,__source:!0};function sc(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)lp.call(t,r)&&!ip.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:np,type:e,key:o,ref:i,props:l,_owner:op.current}}wo.Fragment=rp;wo.jsx=sc;wo.jsxs=sc;Xa.exports=wo;var E=Xa.exports,uc={exports:{}},Me={},ac={exports:{}},cc={};/** + */var np=P,rp=Symbol.for("react.element"),lp=Symbol.for("react.fragment"),op=Object.prototype.hasOwnProperty,ip=np.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sp={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)op.call(t,r)&&!sp.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:rp,type:e,key:o,ref:i,props:l,_owner:ip.current}}wo.Fragment=lp;wo.jsx=uc;wo.jsxs=uc;Za.exports=wo;var E=Za.exports,ac={exports:{}},Me={},cc={exports:{}},dc={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ var fu=e=>{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||fu("Cannot "+n);var S=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,T){var O=R.length;R.push(T);e:for(;0>>1,le=R[U];if(0>>1;Ul(Ao,O))Jtl(fl,Ao)?(R[U]=fl,R[Jt]=O,U=Jt):(R[U]=Ao,R[Zt]=O,U=Zt);else if(Jtl(fl,O))R[U]=fl,R[Jt]=O,U=Jt;else break e}}return T}function l(R,T){var O=R.sortIndex-T.sortIndex;return O!==0?O:R.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],h=1,d=null,m=3,g=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=R)r(a),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(a)}}function y(R){if(v=!1,p(R),!w)if(n(u)!==null)w=!0,wt(C);else{var T=n(a);T!==null&&kn(y,T.startTime-R)}}function C(R,T){w=!1,v&&(v=!1,f(_),_=-1),g=!0;var O=m;try{for(p(T),d=n(u);d!==null&&(!(d.expirationTime>T)||R&&!ye());){var U=d.callback;if(typeof U=="function"){d.callback=null,m=d.priorityLevel;var le=U(d.expirationTime<=T);T=e.unstable_now(),typeof le=="function"?d.callback=le:d===n(u)&&r(u),p(T)}else r(u);d=n(u)}if(d!==null)var dl=!0;else{var Zt=n(a);Zt!==null&&kn(y,Zt.startTime-T),dl=!1}return dl}finally{d=null,m=O,g=!1}}var N=!1,j=null,_=-1,D=5,F=-1;function ye(){return!(e.unstable_now()-FR||125U?(R.sortIndex=O,t(a,R),n(u)===null&&R===n(a)&&(v?(f(_),_=-1):v=!0,kn(y,O-U))):(R.sortIndex=le,t(u,R),w||g||(w=!0,wt(C))),R},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(R){var T=m;return function(){var O=m;m=T;try{return R.apply(this,arguments)}finally{m=O}}}})(cc);ac.exports=cc;var sp=ac.exports;/** + */(function(e){function t(R,O){var T=R.length;R.push(O);e:for(;0>>1,le=R[U];if(0>>1;Ul(Ao,T))Jtl(fl,Ao)?(R[U]=fl,R[Jt]=T,U=Jt):(R[U]=Ao,R[Zt]=T,U=Zt);else if(Jtl(fl,T))R[U]=fl,R[Jt]=T,U=Jt;else break e}}return O}function l(R,O){var T=R.sortIndex-O.sortIndex;return T!==0?T:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],h=1,d=null,m=3,g=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=R)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function y(R){if(v=!1,p(R),!w)if(n(u)!==null)w=!0,wt(C);else{var O=n(a);O!==null&&En(y,O.startTime-R)}}function C(R,O){w=!1,v&&(v=!1,f(_),_=-1),g=!0;var T=m;try{for(p(O),d=n(u);d!==null&&(!(d.expirationTime>O)||R&&!ye());){var U=d.callback;if(typeof U=="function"){d.callback=null,m=d.priorityLevel;var le=U(d.expirationTime<=O);O=e.unstable_now(),typeof le=="function"?d.callback=le:d===n(u)&&r(u),p(O)}else r(u);d=n(u)}if(d!==null)var dl=!0;else{var Zt=n(a);Zt!==null&&En(y,Zt.startTime-O),dl=!1}return dl}finally{d=null,m=T,g=!1}}var N=!1,j=null,_=-1,D=5,F=-1;function ye(){return!(e.unstable_now()-FR||125U?(R.sortIndex=T,t(a,R),n(u)===null&&R===n(a)&&(v?(f(_),_=-1):v=!0,En(y,T-U))):(R.sortIndex=le,t(u,R),w||g||(w=!0,wt(C))),R},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(R){var O=m;return function(){var T=m;m=O;try{return R.apply(this,arguments)}finally{m=T}}}})(dc);cc.exports=dc;var up=cc.exports;/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ var fu=e=>{throw TypeError(e)};var Uo=(e,t,n)=>t.has(e)||fu("Cannot "+n);var S=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var up=P,Le=sp;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vi=Object.prototype.hasOwnProperty,ap=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vu={},yu={};function cp(e){return vi.call(yu,e)?!0:vi.call(vu,e)?!1:ap.test(e)?yu[e]=!0:(vu[e]=!0,!1)}function dp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fp(e,t,n,r){if(t===null||typeof t>"u"||dp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ys=/[\-:]([a-z])/g;function gs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ws(e,t,n,r){var l=ce.hasOwnProperty(t)?ce[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vi=Object.prototype.hasOwnProperty,cp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yu={},gu={};function dp(e){return vi.call(gu,e)?!0:vi.call(yu,e)?!1:cp.test(e)?gu[e]=!0:(yu[e]=!0,!1)}function fp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pp(e,t,n,r){if(t===null||typeof t>"u"||fp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ys=/[\-:]([a-z])/g;function gs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ys,gs);ce[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ws(e,t,n,r){var l=ce.hasOwnProperty(t)?ce[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xr(e):""}function pp(e){switch(e.tag){case 5:return xr(e.type);case 16:return xr("Lazy");case 13:return xr("Suspense");case 19:return xr("SuspenseList");case 0:case 2:case 15:return e=Vo(e.type,!1),e;case 11:return e=Vo(e.type.render,!1),e;case 1:return e=Vo(e.type,!0),e;default:return""}}function xi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pn:return"Fragment";case Cn:return"Portal";case yi:return"Profiler";case xs:return"StrictMode";case gi:return"Suspense";case wi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pc:return(e.displayName||"Context")+".Consumer";case fc:return(e._context.displayName||"Context")+".Provider";case Ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ks:return t=e.displayName||null,t!==null?t:xi(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return xi(e(t))}catch{}}return null}function hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xi(t);case 8:return t===xs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mp(e){var t=mc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vl(e){e._valueTracker||(e._valueTracker=mp(e))}function vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Si(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yc(e,t){t=t.checked,t!=null&&ws(e,"checked",t,!1)}function ki(e,t){yc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ei(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ei(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=yl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vp=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){vp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function Sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function kc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var yp=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,t){if(t){if(yp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ni(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ri=null;function Es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,Dn=null,An=null;function Eu(e){if(e=il(e)){if(typeof zi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Co(t),zi(e.stateNode,e.type,t))}}function Ec(e){Dn?An?An.push(e):An=[e]:Dn=e}function Cc(){if(Dn){var e=Dn,t=An;if(An=Dn=null,Eu(e),t)for(e=0;e>>=0,e===0?32:31-(Rp(e)/zp|0)|0}var gl=64,wl=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=kr(s):(o&=i,o!==0&&(r=kr(o)))}else i=n&~l,i!==0?r=kr(i):o!==0&&(r=kr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function Lp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_r),Ou=" ",Lu=!1;function Hc(e,t){switch(e){case"keyup":return sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function ah(e,t){switch(e){case"compositionend":return Wc(t);case"keypress":return t.which!==32?null:(Lu=!0,Ou);case"textInput":return e=t.data,e===Ou&&Lu?null:e;default:return null}}function ch(e,t){if(_n)return e==="compositionend"||!Ts&&Hc(e,t)?(e=Qc(),Il=Rs=Mt=null,_n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Du(n)}}function qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yc(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Os(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wh(e){var t=Yc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qc(n.ownerDocument.documentElement,n)){if(r!==null&&Os(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Au(n,o);var i=Au(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,Fi=null,Rr=null,Ii=!1;function Uu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ii||Nn==null||Nn!==Wl(r)||(r=Nn,"selectionStart"in r&&Os(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&$r(Rr,r)||(Rr=r,r=Zl(Fi,"onSelect"),0jn||(e.current=Qi[jn],Qi[jn]=null,jn--)}function V(e,t){jn++,Qi[jn]=e.current,e.current=t}var Gt={},ve=qt(Gt),_e=qt(!1),fn=Gt;function Jn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ne(e){return e=e.childContextTypes,e!=null}function eo(){K(_e),K(ve)}function Ku(e,t,n){if(ve.current!==Gt)throw Error(k(168));V(ve,t),V(_e,n)}function od(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,hp(e)||"Unknown",l));return Y({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,fn=ve.current,V(ve,e),V(_e,_e.current),!0}function Gu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=od(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,K(_e),K(ve),V(ve,e)):K(_e),V(_e,n)}var at=null,Po=!1,ri=!1;function id(e){at===null?at=[e]:at.push(e)}function Th(e){Po=!0,id(e)}function Yt(){if(!ri&&at!==null){ri=!0;var e=0,t=Q;try{var n=at;for(Q=1;e>=i,l-=i,ct=1<<32-qe(t)+l|n<_?(D=j,j=null):D=j.sibling;var F=m(f,j,p[_],y);if(F===null){j===null&&(j=D);break}e&&j&&F.alternate===null&&t(f,j),c=o(F,c,_),N===null?C=F:N.sibling=F,N=F,j=D}if(_===p.length)return n(f,j),G&&en(f,_),C;if(j===null){for(;__?(D=j,j=null):D=j.sibling;var ye=m(f,j,F.value,y);if(ye===null){j===null&&(j=D);break}e&&j&&ye.alternate===null&&t(f,j),c=o(ye,c,_),N===null?C=ye:N.sibling=ye,N=ye,j=D}if(F.done)return n(f,j),G&&en(f,_),C;if(j===null){for(;!F.done;_++,F=p.next())F=d(f,F.value,y),F!==null&&(c=o(F,c,_),N===null?C=F:N.sibling=F,N=F);return G&&en(f,_),C}for(j=r(f,j);!F.done;_++,F=p.next())F=g(j,f,_,F.value,y),F!==null&&(e&&F.alternate!==null&&j.delete(F.key===null?_:F.key),c=o(F,c,_),N===null?C=F:N.sibling=F,N=F);return e&&j.forEach(function(B){return t(f,B)}),G&&en(f,_),C}function x(f,c,p,y){if(typeof p=="object"&&p!==null&&p.type===Pn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ml:e:{for(var C=p.key,N=c;N!==null;){if(N.key===C){if(C=p.type,C===Pn){if(N.tag===7){n(f,N.sibling),c=l(N,p.props.children),c.return=f,f=c;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pt&&Yu(C)===N.type){n(f,N.sibling),c=l(N,p.props),c.ref=mr(f,N,p),c.return=f,f=c;break e}n(f,N);break}else t(f,N);N=N.sibling}p.type===Pn?(c=dn(p.props.children,f.mode,y,p.key),c.return=f,f=c):(y=Hl(p.type,p.key,p.props,null,f.mode,y),y.ref=mr(f,c,p),y.return=f,f=y)}return i(f);case Cn:e:{for(N=p.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=di(p,f.mode,y),c.return=f,f=c}return i(f);case Pt:return N=p._init,x(f,c,N(p._payload),y)}if(Sr(p))return w(f,c,p,y);if(cr(p))return v(f,c,p,y);_l(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ci(p,f.mode,y),c.return=f,f=c),i(f)):n(f,c)}return x}var tr=cd(!0),dd=cd(!1),lo=qt(null),oo=null,Ln=null,Is=null;function Ds(){Is=Ln=oo=null}function As(e){var t=lo.current;K(lo),e._currentValue=t}function Wi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bn(e,t){oo=e,Is=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Is!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(oo===null)throw Error(k(308));Ln=e,oo.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var rn=null;function Us(e){rn===null?rn=[e]:rn.push(e)}function fd(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Us(t)):(n.next=l.next,l.next=n),t.interleaved=n,mt(e,r)}function mt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _t=!1;function Bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,mt(e,n)}return l=r.interleaved,l===null?(t.next=t,Us(r)):(t.next=l.next,l.next=t),r.interleaved=t,mt(e,n)}function Al(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}function Xu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var l=e.updateQueue;_t=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=u))}if(o!==null){var d=l.baseState;i=0,h=a=u=null,s=o;do{var m=s.lane,g=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(m=t,g=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(g,d,m);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,m=typeof w=="function"?w.call(g,d,m):w,m==null)break e;d=Y({},d,m);break e;case 2:_t=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else g={eventTime:g,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(a=h=g,u=d):h=h.next=g,i|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(u=d),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);mn|=i,e.lanes=i,e.memoizedState=d}}function Zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=oi.transition;oi.transition={};try{e(!1),t()}finally{Q=n,oi.transition=r}}function jd(){return Qe().memoizedState}function Fh(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Td(e))Od(t,n);else if(n=fd(e,t,n,r),n!==null){var l=Se();Ye(n,e,r,l),Ld(n,t,r)}}function Ih(e,t,n){var r=Vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Td(e))Od(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Xe(s,i)){var u=t.interleaved;u===null?(l.next=l,Us(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=fd(e,t,l,r),n!==null&&(l=Se(),Ye(n,e,r,l),Ld(n,t,r))}}function Td(e){var t=e.alternate;return e===q||t!==null&&t===q}function Od(e,t){zr=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ld(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}var ao={readContext:$e,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Dh={readContext:$e,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:ea,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bl(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fh.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:Ju,useDebugValue:bs,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=Ju(!1),t=e[0];return e=Mh.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=Je();if(G){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ie===null)throw Error(k(349));hn&30||yd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ea(wd.bind(null,r,o,e),[e]),r.flags|=2048,qr(9,gd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Je(),t=ie.identifierPrefix;if(G){var n=dt,r=ct;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xr(e):""}function hp(e){switch(e.tag){case 5:return xr(e.type);case 16:return xr("Lazy");case 13:return xr("Suspense");case 19:return xr("SuspenseList");case 0:case 2:case 15:return e=Vo(e.type,!1),e;case 11:return e=Vo(e.type.render,!1),e;case 1:return e=Vo(e.type,!0),e;default:return""}}function xi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case Pn:return"Portal";case yi:return"Profiler";case xs:return"StrictMode";case gi:return"Suspense";case wi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hc:return(e.displayName||"Context")+".Consumer";case pc:return(e._context.displayName||"Context")+".Provider";case Ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ks:return t=e.displayName||null,t!==null?t:xi(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return xi(e(t))}catch{}}return null}function mp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xi(t);case 8:return t===xs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vp(e){var t=vc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vl(e){e._valueTracker||(e._valueTracker=vp(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Si(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gc(e,t){t=t.checked,t!=null&&ws(e,"checked",t,!1)}function ki(e,t){gc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ei(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ei(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=yl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yp=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){yp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function kc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function Ec(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=kc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var gp=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,t){if(t){if(gp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ni(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ri=null;function Es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,An=null,Un=null;function Cu(e){if(e=il(e)){if(typeof zi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Co(t),zi(e.stateNode,e.type,t))}}function Cc(e){An?Un?Un.push(e):Un=[e]:An=e}function Pc(){if(An){var e=An,t=Un;if(Un=An=null,Cu(e),t)for(e=0;e>>=0,e===0?32:31-(zp(e)/jp|0)|0}var gl=64,wl=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=kr(s):(o&=i,o!==0&&(r=kr(o)))}else i=n&~l,i!==0?r=kr(i):o!==0&&(r=kr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function Mp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_r),Lu=" ",Mu=!1;function Wc(e,t){switch(e){case"keyup":return uh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function ch(e,t){switch(e){case"compositionend":return Kc(t);case"keypress":return t.which!==32?null:(Mu=!0,Lu);case"textInput":return e=t.data,e===Lu&&Mu?null:e;default:return null}}function dh(e,t){if(Nn)return e==="compositionend"||!Os&&Wc(e,t)?(e=Vc(),Il=Rs=Mt=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Au(n)}}function Yc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xc(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xh(e){var t=Xc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yc(n.ownerDocument.documentElement,n)){if(r!==null&&Ts(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Uu(n,o);var i=Uu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Rn=null,Fi=null,Rr=null,Ii=!1;function $u(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ii||Rn==null||Rn!==Wl(r)||(r=Rn,"selectionStart"in r&&Ts(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&Br(Rr,r)||(Rr=r,r=Zl(Fi,"onSelect"),0On||(e.current=Qi[On],Qi[On]=null,On--)}function V(e,t){On++,Qi[On]=e.current,e.current=t}var Gt={},ve=qt(Gt),_e=qt(!1),fn=Gt;function er(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ne(e){return e=e.childContextTypes,e!=null}function eo(){K(_e),K(ve)}function Gu(e,t,n){if(ve.current!==Gt)throw Error(k(168));V(ve,t),V(_e,n)}function id(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,mp(e)||"Unknown",l));return Y({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,fn=ve.current,V(ve,e),V(_e,_e.current),!0}function bu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=id(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,K(_e),K(ve),V(ve,e)):K(_e),V(_e,n)}var at=null,Po=!1,ri=!1;function sd(e){at===null?at=[e]:at.push(e)}function Th(e){Po=!0,sd(e)}function Yt(){if(!ri&&at!==null){ri=!0;var e=0,t=Q;try{var n=at;for(Q=1;e>=i,l-=i,ct=1<<32-qe(t)+l|n<_?(D=j,j=null):D=j.sibling;var F=m(f,j,p[_],y);if(F===null){j===null&&(j=D);break}e&&j&&F.alternate===null&&t(f,j),c=o(F,c,_),N===null?C=F:N.sibling=F,N=F,j=D}if(_===p.length)return n(f,j),G&&en(f,_),C;if(j===null){for(;__?(D=j,j=null):D=j.sibling;var ye=m(f,j,F.value,y);if(ye===null){j===null&&(j=D);break}e&&j&&ye.alternate===null&&t(f,j),c=o(ye,c,_),N===null?C=ye:N.sibling=ye,N=ye,j=D}if(F.done)return n(f,j),G&&en(f,_),C;if(j===null){for(;!F.done;_++,F=p.next())F=d(f,F.value,y),F!==null&&(c=o(F,c,_),N===null?C=F:N.sibling=F,N=F);return G&&en(f,_),C}for(j=r(f,j);!F.done;_++,F=p.next())F=g(j,f,_,F.value,y),F!==null&&(e&&F.alternate!==null&&j.delete(F.key===null?_:F.key),c=o(F,c,_),N===null?C=F:N.sibling=F,N=F);return e&&j.forEach(function($){return t(f,$)}),G&&en(f,_),C}function x(f,c,p,y){if(typeof p=="object"&&p!==null&&p.type===_n&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ml:e:{for(var C=p.key,N=c;N!==null;){if(N.key===C){if(C=p.type,C===_n){if(N.tag===7){n(f,N.sibling),c=l(N,p.props.children),c.return=f,f=c;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pt&&Xu(C)===N.type){n(f,N.sibling),c=l(N,p.props),c.ref=mr(f,N,p),c.return=f,f=c;break e}n(f,N);break}else t(f,N);N=N.sibling}p.type===_n?(c=dn(p.props.children,f.mode,y,p.key),c.return=f,f=c):(y=Hl(p.type,p.key,p.props,null,f.mode,y),y.ref=mr(f,c,p),y.return=f,f=y)}return i(f);case Pn:e:{for(N=p.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=di(p,f.mode,y),c.return=f,f=c}return i(f);case Pt:return N=p._init,x(f,c,N(p._payload),y)}if(Sr(p))return w(f,c,p,y);if(cr(p))return v(f,c,p,y);_l(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ci(p,f.mode,y),c.return=f,f=c),i(f)):n(f,c)}return x}var nr=dd(!0),fd=dd(!1),lo=qt(null),oo=null,Mn=null,Is=null;function Ds(){Is=Mn=oo=null}function As(e){var t=lo.current;K(lo),e._currentValue=t}function Wi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bn(e,t){oo=e,Is=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Is!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(oo===null)throw Error(k(308));Mn=e,oo.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var rn=null;function Us(e){rn===null?rn=[e]:rn.push(e)}function pd(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Us(t)):(n.next=l.next,l.next=n),t.interleaved=n,mt(e,r)}function mt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _t=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,mt(e,n)}return l=r.interleaved,l===null?(t.next=t,Us(r)):(t.next=l.next,l.next=t),r.interleaved=t,mt(e,n)}function Al(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}function Zu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var l=e.updateQueue;_t=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=a:s.next=a,h.lastBaseUpdate=u))}if(o!==null){var d=l.baseState;i=0,h=a=u=null,s=o;do{var m=s.lane,g=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(m=t,g=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(g,d,m);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,m=typeof w=="function"?w.call(g,d,m):w,m==null)break e;d=Y({},d,m);break e;case 2:_t=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else g={eventTime:g,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(a=h=g,u=d):h=h.next=g,i|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(u=d),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);mn|=i,e.lanes=i,e.memoizedState=d}}function Ju(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=oi.transition;oi.transition={};try{e(!1),t()}finally{Q=n,oi.transition=r}}function Od(){return Qe().memoizedState}function Ih(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Td(e))Ld(t,n);else if(n=pd(e,t,n,r),n!==null){var l=Se();Ye(n,e,r,l),Md(n,t,r)}}function Dh(e,t,n){var r=Vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Td(e))Ld(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Xe(s,i)){var u=t.interleaved;u===null?(l.next=l,Us(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=pd(e,t,l,r),n!==null&&(l=Se(),Ye(n,e,r,l),Md(n,t,r))}}function Td(e){var t=e.alternate;return e===q||t!==null&&t===q}function Ld(e,t){zr=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Md(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}var ao={readContext:Be,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Ah={readContext:Be,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4194308,4,_d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){return $l(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ih.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:ea,useDebugValue:bs,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=ea(!1),t=e[0];return e=Fh.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=Je();if(G){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ie===null)throw Error(k(349));hn&30||gd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ta(xd.bind(null,r,o,e),[e]),r.flags|=2048,qr(9,wd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Je(),t=ie.identifierPrefix;if(G){var n=dt,r=ct;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[rt]=t,e[Hr]=r,Vd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ni(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;llr&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=so(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!G)return pe(t),null}else 2*J()-o.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,n=b.current,V(b,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Wh(e,t){switch(Ms(t),t.tag){case 1:return Ne(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),K(_e),K(ve),Vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qs(t),null;case 13:if(K(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(b),null;case 4:return nr(),null;case 10:return As(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Rl=!1,me=!1,Kh=typeof WeakSet=="function"?WeakSet:Set,z=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){Z(e,t,r)}}var da=!1;function Gh(e,t){if(Di=Yl,e=Yc(),Os(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,h=0,d=e,m=null;t:for(;;){for(var g;d!==n||l!==0&&d.nodeType!==3||(s=i+l),d!==o||r!==0&&d.nodeType!==3||(u=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++a===l&&(s=i),m===o&&++h===r&&(u=i),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ai={focusedElem:e,selectionRange:n},Yl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:He(t.type,v),x);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(y){Z(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return w=da,da=!1,w}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&es(t,n,o)}l=l.next}while(l!==r)}}function Ro(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kd(e){var t=e.alternate;t!==null&&(e.alternate=null,Kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Hr],delete t[$i],delete t[zh],delete t[jh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gd(e){return e.tag===5||e.tag===3||e.tag===4}function fa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jl));else if(r!==4&&(e=e.child,e!==null))for(ns(e,t,n),e=e.sibling;e!==null;)ns(e,t,n),e=e.sibling}function rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rs(e,t,n),e=e.sibling;e!==null;)rs(e,t,n),e=e.sibling}var ue=null,Ge=!1;function xt(e,t,n){for(n=n.child;n!==null;)bd(e,t,n),n=n.sibling}function bd(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(xo,n)}catch{}switch(n.tag){case 5:me||Mn(n,t);case 6:var r=ue,l=Ge;ue=null,xt(e,t,n),ue=r,Ge=l,ue!==null&&(Ge?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Ge?(e=ue,n=n.stateNode,e.nodeType===8?ni(e.parentNode,n):e.nodeType===1&&ni(e,n),Ur(e)):ni(ue,n.stateNode));break;case 4:r=ue,l=Ge,ue=n.stateNode.containerInfo,Ge=!0,xt(e,t,n),ue=r,Ge=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&es(n,t,i),l=l.next}while(l!==r)}xt(e,t,n);break;case 1:if(!me&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Z(n,t,s)}xt(e,t,n);break;case 21:xt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,xt(e,t,n),me=r):xt(e,t,n);break;default:xt(e,t,n)}}function pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kh),t.forEach(function(r){var l=nm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ve(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qh(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,po=0,A&6)throw Error(k(331));var l=A;for(A|=4,z=e.current;z!==null;){var o=z,i=o.child;if(z.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uJ()-Zs?cn(e,0):Xs|=n),Re(e,t)}function nf(e,t){t===0&&(e.mode&1?(t=wl,wl<<=1,!(wl&130023424)&&(wl=4194304)):t=1);var n=Se();e=mt(e,t),e!==null&&(ll(e,t,n),Re(e,n))}function tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nf(e,n)}function nm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),nf(e,n)}var rf;rf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Vh(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,G&&t.flags&1048576&&sd(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var l=Jn(t,ve.current);Bn(t,n),l=Ws(null,t,r,e,l,n);var o=Ks();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(o=!0,to(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Bs(t),l.updater=No,t.stateNode=l,l._reactInternals=t,Gi(t,r,e,n),t=Yi(null,t,r,!0,o,n)):(t.tag=0,G&&o&&Ls(t),we(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=lm(r),e=He(r,e),l){case 0:t=qi(null,t,r,e,n);break e;case 1:t=ua(null,t,r,e,n);break e;case 11:t=ia(null,t,r,e,n);break e;case 14:t=sa(null,t,r,He(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),qi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),ua(e,t,r,l,n);case 3:e:{if(Bd(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,pd(e,t),io(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=rr(Error(k(423)),t),t=aa(e,t,r,n,l);break e}else if(r!==l){l=rr(Error(k(424)),t),t=aa(e,t,r,n,l);break e}else for(Te=Bt(t.stateNode.containerInfo.firstChild),Oe=t,G=!0,be=null,n=dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(er(),r===l){t=vt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return hd(t),e===null&&Hi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ui(r,l)?i=null:o!==null&&Ui(r,o)&&(t.flags|=32),Ud(e,t),we(e,t,i,n),t.child;case 6:return e===null&&Hi(t),null;case 13:return $d(e,t,n);case 4:return $s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tr(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),ia(e,t,r,l,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,V(lo,r._currentValue),r._currentValue=i,o!==null)if(Xe(o.value,i)){if(o.children===l.children&&!_e.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=ft(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Wi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Wi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}we(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Bn(t,n),l=$e(l),r=r(l),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,l=He(r,t.pendingProps),l=He(r.type,l),sa(e,t,r,l,n);case 15:return Dd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),$l(e,t),t.tag=1,Ne(r)?(e=!0,to(t)):e=!1,Bn(t,n),Md(t,r,l),Gi(t,r,l,n),Yi(null,t,r,!0,e,n);case 19:return Qd(e,t,n);case 22:return Ad(e,t,n)}throw Error(k(156,t.tag))};function lf(e,t){return Tc(e,t)}function rm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new rm(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lm(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ss)return 11;if(e===ks)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")nu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Pn:return dn(n.children,l,o,t);case xs:i=8,l|=8;break;case yi:return e=Ue(12,n,t,l|2),e.elementType=yi,e.lanes=o,e;case gi:return e=Ue(13,n,t,l),e.elementType=gi,e.lanes=o,e;case wi:return e=Ue(19,n,t,l),e.elementType=wi,e.lanes=o,e;case hc:return jo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fc:i=10;break e;case pc:i=9;break e;case Ss:i=11;break e;case ks:i=14;break e;case Pt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ue(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function dn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function jo(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=hc,e.lanes=n,e.stateNode={isHidden:!1},e}function ci(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function di(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function om(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,l,o,i,s,u){return e=new om(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ue(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bs(o),e}function im(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(af)}catch(e){console.error(e)}}af(),uc.exports=Me;var cm=uc.exports,cf,Sa=cm;cf=Sa.createRoot,Sa.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function ui(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bh=typeof WeakMap=="function"?WeakMap:Map;function Id(e,t,n){n=ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fo||(fo=!0,ls=r),bi(e,t)},n}function Dd(e,t,n){n=ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){bi(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bi(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function la(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bh;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=tm.bind(null,e,t,n),t.then(e,e))}function oa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ia(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ft(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Qh=yt.ReactCurrentOwner,Pe=!1;function we(e,t,n,r){t.child=e===null?fd(t,null,n,r):nr(t,e.child,n,r)}function sa(e,t,n,r,l){n=n.render;var o=t.ref;return Bn(t,l),r=Ws(e,t,n,r,o,l),n=Ks(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,vt(e,t,l)):(G&&n&&Ls(t),t.flags|=1,we(e,t,r,l),t.child)}function ua(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!nu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ad(e,t,o,r,l)):(e=Hl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Br,n(i,r)&&e.ref===t.ref)return vt(e,t,l)}return t.flags|=1,e=Ht(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ad(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Br(o,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,vt(e,t,l)}return qi(e,t,n,r,l)}function Ud(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(In,je),je|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(In,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,V(In,je),je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,V(In,je),je|=r;return we(e,t,l,n),t.child}function $d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qi(e,t,n,r,l){var o=Ne(n)?fn:ve.current;return o=er(t,o),Bn(t,l),n=Ws(e,t,n,r,o,l),r=Ks(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,vt(e,t,l)):(G&&r&&Ls(t),t.flags|=1,we(e,t,n,l),t.child)}function aa(e,t,n,r,l){if(Ne(n)){var o=!0;to(t)}else o=!1;if(Bn(t,l),t.stateNode===null)Bl(e,t),Fd(t,n,r),Gi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Be(a):(a=Ne(n)?fn:ve.current,a=er(t,a));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==a)&&ra(t,i,r,a),_t=!1;var m=t.memoizedState;i.state=m,io(t,r,i,l),u=t.memoizedState,s!==r||m!==u||_e.current||_t?(typeof h=="function"&&(Ki(t,n,h,r),u=t.memoizedState),(s=_t||na(t,n,s,r,m,u,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,hd(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:He(t.type,s),i.props=a,d=t.pendingProps,m=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Be(u):(u=Ne(n)?fn:ve.current,u=er(t,u));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||m!==u)&&ra(t,i,r,u),_t=!1,m=t.memoizedState,i.state=m,io(t,r,i,l);var w=t.memoizedState;s!==d||m!==w||_e.current||_t?(typeof g=="function"&&(Ki(t,n,g,r),w=t.memoizedState),(a=_t||na(t,n,a,r,m,w,u)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Yi(e,t,n,r,o,l)}function Yi(e,t,n,r,l,o){$d(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&bu(t,n,!1),vt(e,t,o);r=t.stateNode,Qh.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=nr(t,e.child,null,o),t.child=nr(t,null,s,o)):we(e,t,s,o),t.memoizedState=r.state,l&&bu(t,n,!0),t.child}function Bd(e){var t=e.stateNode;t.pendingContext?Gu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gu(e,t.context,!1),Bs(e,t.containerInfo)}function ca(e,t,n,r,l){return tr(),Fs(l),t.flags|=256,we(e,t,n,r),t.child}var Xi={dehydrated:null,treeContext:null,retryLane:0};function Zi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qd(e,t,n){var r=t.pendingProps,l=b.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),V(b,l&1),e===null)return Hi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=jo(i,r,0,null),e=dn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Zi(n),t.memoizedState=Xi,e):qs(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return Vh(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Ht(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=Ht(s,o):(o=dn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Zi(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Xi,r}return o=e.child,e=o.sibling,r=Ht(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qs(e,t){return t=jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nl(e,t,n,r){return r!==null&&Fs(r),nr(t,e.child,null,n),e=qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vh(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=ui(Error(k(422))),Nl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=jo({mode:"visible",children:r.children},l,0,null),o=dn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&nr(t,e.child,null,i),t.child.memoizedState=Zi(i),t.memoizedState=Xi,o);if(!(t.mode&1))return Nl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(k(419)),r=ui(o,r,void 0),Nl(e,t,i,r)}if(s=(i&e.childLanes)!==0,Pe||s){if(r=ie,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,mt(e,l),Ye(r,e,l,-1))}return tu(),r=ui(Error(k(421))),Nl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=nm.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Oe=$t(l.nextSibling),Te=t,G=!0,be=null,e!==null&&(De[Ae++]=ct,De[Ae++]=dt,De[Ae++]=pn,ct=e.id,dt=e.overflow,pn=t),t=qs(t,r.children),t.flags|=4096,t)}function da(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function ai(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Vd(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(we(e,t,r.children,n),r=b.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&da(e,n,t);else if(e.tag===19)da(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(V(b,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ai(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&so(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ai(t,!0,n,null,o);break;case"together":ai(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hh(e,t,n){switch(t.tag){case 3:Bd(t),tr();break;case 5:md(t);break;case 1:Ne(t.type)&&to(t);break;case 4:Bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;V(lo,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(b,b.current&1),t.flags|=128,null):n&t.child.childLanes?Qd(e,t,n):(V(b,b.current&1),e=vt(e,t,n),e!==null?e.sibling:null);V(b,b.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),V(b,b.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return vt(e,t,n)}var Hd,Ji,Wd,Kd;Hd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ji=function(){};Wd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,ln(ot.current);var o=null;switch(n){case"input":l=Si(e,l),r=Si(e,r),o=[];break;case"select":l=Y({},l,{value:void 0}),r=Y({},r,{value:void 0}),o=[];break;case"textarea":l=Ci(e,l),r=Ci(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jl)}_i(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Mr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Mr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&W("scroll",e),o||s===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Kd=function(e,t,n,r){n!==r&&(t.flags|=4)};function vr(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wh(e,t,n){var r=t.pendingProps;switch(Ms(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return Ne(t.type)&&eo(),pe(t),null;case 3:return r=t.stateNode,rr(),K(_e),K(ve),Vs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,be!==null&&(ss(be),be=null))),Ji(e,t),pe(t),null;case 5:Qs(t);var l=ln(Kr.current);if(n=t.type,e!==null&&t.stateNode!=null)Wd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return pe(t),null}if(e=ln(ot.current),Pl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rt]=t,r[Hr]=o,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[rt]=t,e[Hr]=r,Hd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ni(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;lor&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=so(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!G)return pe(t),null}else 2*J()-o.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,n=b.current,V(b,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Kh(e,t){switch(Ms(t),t.tag){case 1:return Ne(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),K(_e),K(ve),Vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qs(t),null;case 13:if(K(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(b),null;case 4:return rr(),null;case 10:return As(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var Rl=!1,me=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,z=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){Z(e,t,r)}}var fa=!1;function bh(e,t){if(Di=Yl,e=Xc(),Ts(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,h=0,d=e,m=null;t:for(;;){for(var g;d!==n||l!==0&&d.nodeType!==3||(s=i+l),d!==o||r!==0&&d.nodeType!==3||(u=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++a===l&&(s=i),m===o&&++h===r&&(u=i),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ai={focusedElem:e,selectionRange:n},Yl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:He(t.type,v),x);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(y){Z(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return w=fa,fa=!1,w}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&es(t,n,o)}l=l.next}while(l!==r)}}function Ro(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gd(e){var t=e.alternate;t!==null&&(e.alternate=null,Gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Hr],delete t[Bi],delete t[jh],delete t[Oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bd(e){return e.tag===5||e.tag===3||e.tag===4}function pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jl));else if(r!==4&&(e=e.child,e!==null))for(ns(e,t,n),e=e.sibling;e!==null;)ns(e,t,n),e=e.sibling}function rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rs(e,t,n),e=e.sibling;e!==null;)rs(e,t,n),e=e.sibling}var ue=null,Ge=!1;function xt(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(xo,n)}catch{}switch(n.tag){case 5:me||Fn(n,t);case 6:var r=ue,l=Ge;ue=null,xt(e,t,n),ue=r,Ge=l,ue!==null&&(Ge?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Ge?(e=ue,n=n.stateNode,e.nodeType===8?ni(e.parentNode,n):e.nodeType===1&&ni(e,n),Ur(e)):ni(ue,n.stateNode));break;case 4:r=ue,l=Ge,ue=n.stateNode.containerInfo,Ge=!0,xt(e,t,n),ue=r,Ge=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&es(n,t,i),l=l.next}while(l!==r)}xt(e,t,n);break;case 1:if(!me&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Z(n,t,s)}xt(e,t,n);break;case 21:xt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,xt(e,t,n),me=r):xt(e,t,n);break;default:xt(e,t,n)}}function ha(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gh),t.forEach(function(r){var l=rm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ve(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yh(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,po=0,A&6)throw Error(k(331));var l=A;for(A|=4,z=e.current;z!==null;){var o=z,i=o.child;if(z.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uJ()-Zs?cn(e,0):Xs|=n),Re(e,t)}function rf(e,t){t===0&&(e.mode&1?(t=wl,wl<<=1,!(wl&130023424)&&(wl=4194304)):t=1);var n=Se();e=mt(e,t),e!==null&&(ll(e,t,n),Re(e,n))}function nm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rf(e,n)}function rm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),rf(e,n)}var lf;lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Hh(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,G&&t.flags&1048576&&ud(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var l=er(t,ve.current);Bn(t,n),l=Ws(null,t,r,e,l,n);var o=Ks();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(o=!0,to(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,$s(t),l.updater=No,t.stateNode=l,l._reactInternals=t,Gi(t,r,e,n),t=Yi(null,t,r,!0,o,n)):(t.tag=0,G&&o&&Ls(t),we(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=om(r),e=He(r,e),l){case 0:t=qi(null,t,r,e,n);break e;case 1:t=aa(null,t,r,e,n);break e;case 11:t=sa(null,t,r,e,n);break e;case 14:t=ua(null,t,r,He(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),qi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),aa(e,t,r,l,n);case 3:e:{if(Bd(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,hd(e,t),io(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=lr(Error(k(423)),t),t=ca(e,t,r,n,l);break e}else if(r!==l){l=lr(Error(k(424)),t),t=ca(e,t,r,n,l);break e}else for(Oe=$t(t.stateNode.containerInfo.firstChild),Te=t,G=!0,be=null,n=fd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===l){t=vt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return md(t),e===null&&Hi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ui(r,l)?i=null:o!==null&&Ui(r,o)&&(t.flags|=32),$d(e,t),we(e,t,i,n),t.child;case 6:return e===null&&Hi(t),null;case 13:return Qd(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),sa(e,t,r,l,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,V(lo,r._currentValue),r._currentValue=i,o!==null)if(Xe(o.value,i)){if(o.children===l.children&&!_e.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=ft(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Wi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Wi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}we(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Bn(t,n),l=Be(l),r=r(l),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,l=He(r,t.pendingProps),l=He(r.type,l),ua(e,t,r,l,n);case 15:return Ad(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:He(r,l),Bl(e,t),t.tag=1,Ne(r)?(e=!0,to(t)):e=!1,Bn(t,n),Fd(t,r,l),Gi(t,r,l,n),Yi(null,t,r,!0,e,n);case 19:return Vd(e,t,n);case 22:return Ud(e,t,n)}throw Error(k(156,t.tag))};function of(e,t){return Tc(e,t)}function lm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new lm(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function om(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ss)return 11;if(e===ks)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")nu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case _n:return dn(n.children,l,o,t);case xs:i=8,l|=8;break;case yi:return e=Ue(12,n,t,l|2),e.elementType=yi,e.lanes=o,e;case gi:return e=Ue(13,n,t,l),e.elementType=gi,e.lanes=o,e;case wi:return e=Ue(19,n,t,l),e.elementType=wi,e.lanes=o,e;case mc:return jo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pc:i=10;break e;case hc:i=9;break e;case Ss:i=11;break e;case ks:i=14;break e;case Pt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ue(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function dn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function jo(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=mc,e.lanes=n,e.stateNode={isHidden:!1},e}function ci(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function di(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function im(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,l,o,i,s,u){return e=new im(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ue(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(o),e}function sm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cf)}catch(e){console.error(e)}}cf(),ac.exports=Me;var dm=ac.exports,df,ka=dm;df=ka.createRoot,ka.hydrateRoot;/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -47,7 +47,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function df(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fm(){return Math.random().toString(36).substr(2,8)}function Ea(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),Xr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||fm()})}function vo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=It.Pop,u=null,a=h();a==null&&(a=0,i.replaceState(Xr({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){s=It.Pop;let x=h(),f=x==null?null:x-a;a=x,u&&u({action:s,location:v.location,delta:f})}function m(x,f){s=It.Push;let c=us(v.location,x,f);a=h()+1;let p=Ea(c,a),y=v.createHref(c);try{i.pushState(p,"",y)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;l.location.assign(y)}o&&u&&u({action:s,location:v.location,delta:1})}function g(x,f){s=It.Replace;let c=us(v.location,x,f);a=h();let p=Ea(c,a),y=v.createHref(c);i.replaceState(p,"",y),o&&u&&u({action:s,location:v.location,delta:0})}function w(x){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof x=="string"?x:vo(x);return c=c.replace(/ $/,"%20"),te(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let v={get action(){return s},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(ka,d),u=x,()=>{l.removeEventListener(ka,d),u=null}},createHref(x){return t(l,x)},createURL:w,encodeLocation(x){let f=w(x);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:g,go(x){return i.go(x)}};return v}var Ca;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ca||(Ca={}));function hm(e,t,n){return n===void 0&&(n="/"),mm(e,t,n)}function mm(e,t,n,r){let l=typeof t=="string"?ur(t):t,o=su(l.pathname||"/",n);if(o==null)return null;let i=ff(e);vm(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(te(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Wt([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(te(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),ff(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Em(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of pf(o.path))l(o,i,u)}),t}function pf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=pf(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function vm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Cm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ym=/^:[\w-]+$/,gm=3,wm=2,xm=1,Sm=10,km=-2,Pa=e=>e==="*";function Em(e,t){let n=e.split("/"),r=n.length;return n.some(Pa)&&(r+=km),t&&(r+=wm),n.filter(l=>!Pa(l)).reduce((l,o)=>l+(ym.test(o)?gm:o===""?xm:Sm),r)}function Cm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Pm(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:m,isOptional:g}=h;if(m==="*"){let v=s[d]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const w=s[d];return g&&!w?a[m]=void 0:a[m]=(w||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Nm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),df(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return df(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function su(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:jm(n,t):t,search:Lm(r),hash:Mm(l)}}function jm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function fi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Tm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hf(e,t){let n=Tm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=ur(e):(l=Xr({},e),te(!l.pathname||!l.pathname.includes("?"),fi("?","pathname","search",l)),te(!l.pathname||!l.pathname.includes("#"),fi("#","pathname","hash",l)),te(!l.search||!l.search.includes("#"),fi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}s=d>=0?t[d]:"/"}let u=zm(l,s),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||h)&&(u.pathname+="/"),u}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),Om=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vf=["post","put","patch","delete"];new Set(vf);const Im=["get",...vf];new Set(Im);/** + */function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function su(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pm(){return Math.random().toString(36).substr(2,8)}function Ca(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),Xr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wn(t):t,{state:n,key:t&&t.key||r||pm()})}function vo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function wn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=It.Pop,u=null,a=h();a==null&&(a=0,i.replaceState(Xr({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function d(){s=It.Pop;let x=h(),f=x==null?null:x-a;a=x,u&&u({action:s,location:v.location,delta:f})}function m(x,f){s=It.Push;let c=us(v.location,x,f);n(c,x),a=h()+1;let p=Ca(c,a),y=v.createHref(c);try{i.pushState(p,"",y)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;l.location.assign(y)}o&&u&&u({action:s,location:v.location,delta:1})}function g(x,f){s=It.Replace;let c=us(v.location,x,f);n(c,x),a=h();let p=Ca(c,a),y=v.createHref(c);i.replaceState(p,"",y),o&&u&&u({action:s,location:v.location,delta:0})}function w(x){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof x=="string"?x:vo(x);return c=c.replace(/ $/,"%20"),te(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let v={get action(){return s},get location(){return e(l,i)},listen(x){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ea,d),u=x,()=>{l.removeEventListener(Ea,d),u=null}},createHref(x){return t(l,x)},createURL:w,encodeLocation(x){let f=w(x);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:g,go(x){return i.go(x)}};return v}var Pa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pa||(Pa={}));function mm(e,t,n){return n===void 0&&(n="/"),vm(e,t,n)}function vm(e,t,n,r){let l=typeof t=="string"?wn(t):t,o=uu(l.pathname||"/",n);if(o==null)return null;let i=ff(e);ym(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(te(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Wt([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(te(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),ff(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Cm(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of pf(o.path))l(o,i,u)}),t}function pf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=pf(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ym(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Pm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gm=/^:[\w-]+$/,wm=3,xm=2,Sm=1,km=10,Em=-2,_a=e=>e==="*";function Cm(e,t){let n=e.split("/"),r=n.length;return n.some(_a)&&(r+=Em),t&&(r+=xm),n.filter(l=>!_a(l)).reduce((l,o)=>l+(gm.test(o)?wm:o===""?Sm:km),r)}function Pm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function _m(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:m,isOptional:g}=h;if(m==="*"){let v=s[d]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const w=s[d];return g&&!w?a[m]=void 0:a[m]=(w||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Rm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),su(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function zm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return su(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function uu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function jm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?wn(e):e;return{pathname:n?n.startsWith("/")?n:Om(n,t):t,search:Mm(r),hash:Fm(l)}}function Om(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function fi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Tm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hf(e,t){let n=Tm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=wn(e):(l=Xr({},e),te(!l.pathname||!l.pathname.includes("?"),fi("?","pathname","search",l)),te(!l.pathname||!l.pathname.includes("#"),fi("#","pathname","hash",l)),te(!l.search||!l.search.includes("#"),fi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}s=d>=0?t[d]:"/"}let u=jm(l,s),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||h)&&(u.pathname+="/"),u}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),Lm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Mm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Fm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Im(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vf=["post","put","patch","delete"];new Set(vf);const Dm=["get",...vf];new Set(Dm);/** * React Router v6.28.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),P.useCallback(function(a,h){if(h===void 0&&(h={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let d=mf(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Wt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(wn),{matches:l}=P.useContext(xn),{pathname:o}=al(),i=JSON.stringify(hf(l,r.v7_relativeSplatPath));return P.useMemo(()=>mf(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function $m(e,t){return Qm(e,t)}function Qm(e,t,n,r){ul()||te(!1);let{navigator:l}=P.useContext(wn),{matches:o}=P.useContext(xn),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=al(),h;if(t){var d;let x=typeof t=="string"?ur(t):t;u==="/"||(d=x.pathname)!=null&&d.startsWith(u)||te(!1),h=x}else h=a;let m=h.pathname||"/",g=m;if(u!=="/"){let x=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=hm(e,{pathname:g}),v=Gm(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Wt([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:Wt([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?P.createElement(Fo.Provider,{value:{location:Zr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:It.Pop}},v):v}function Vm(){let e=Xm(),t=Fm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,null)}const Hm=P.createElement(Vm,null);class Wm extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(xn.Provider,{value:this.props.routeContext},P.createElement(yf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Km(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(uu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(xn.Provider,{value:t},r)}function Gm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let h=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);h>=0||te(!1),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,m)=>{let g,w=!1,v=null,x=null;n&&(g=s&&d.route.id?s[d.route.id]:void 0,v=d.route.errorElement||Hm,u&&(a<0&&m===0?(w=!0,x=null):a===m&&(w=!0,x=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let p;return g?p=v:w?p=x:d.route.Component?p=P.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,P.createElement(Km,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?P.createElement(Wm,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var xf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xf||{}),yo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yo||{});function bm(e){let t=P.useContext(uu);return t||te(!1),t}function qm(e){let t=P.useContext(Dm);return t||te(!1),t}function Ym(e){let t=P.useContext(xn);return t||te(!1),t}function Sf(e){let t=Ym(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Xm(){var e;let t=P.useContext(yf),n=qm(yo.UseRouteError),r=Sf(yo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zm(){let{router:e}=bm(xf.UseNavigateStable),t=Sf(yo.UseNavigateStable),n=P.useRef(!1);return gf(()=>{n.current=!0}),P.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Zr({fromRouteId:t},o)))},[e,t])}const _a={};function Jm(e,t){_a[t]||(_a[t]=!0,console.warn(t))}const Na=(e,t,n)=>Jm(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function ev(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&Na("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&Na("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Et(e){te(!1)}function tv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=It.Pop,navigator:o,static:i=!1,future:s}=e;ul()&&te(!1);let u=t.replace(/^\/*/,"/"),a=P.useMemo(()=>({basename:u,navigator:o,static:i,future:Zr({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=ur(r));let{pathname:h="/",search:d="",hash:m="",state:g=null,key:w="default"}=r,v=P.useMemo(()=>{let x=su(h,u);return x==null?null:{location:{pathname:x,search:d,hash:m,state:g,key:w},navigationType:l}},[u,h,d,m,g,w,l]);return v==null?null:P.createElement(wn.Provider,{value:a},P.createElement(Fo.Provider,{children:n,value:v}))}function nv(e){let{children:t,location:n}=e;return $m(as(t),n)}new Promise(()=>{});function as(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,l)=>{if(!P.isValidElement(r))return;let o=[...t,l];if(r.type===P.Fragment){n.push.apply(n,as(r.props.children,o));return}r.type!==Et&&te(!1),!r.props.index||!r.props.children||te(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=as(r.props.children,o)),n.push(i)}),n}/** + */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),P.useCallback(function(a,h){if(h===void 0&&(h={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let d=mf(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Wt([t,d.pathname])),(h.replace?r.replace:r.push)(d,h.state,h)},[t,r,i,o,e])}function wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(xn),{matches:l}=P.useContext(Sn),{pathname:o}=al(),i=JSON.stringify(hf(l,r.v7_relativeSplatPath));return P.useMemo(()=>mf(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Qm(e,t){return Vm(e,t)}function Vm(e,t,n,r){ul()||te(!1);let{navigator:l}=P.useContext(xn),{matches:o}=P.useContext(Sn),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=al(),h;if(t){var d;let x=typeof t=="string"?wn(t):t;u==="/"||(d=x.pathname)!=null&&d.startsWith(u)||te(!1),h=x}else h=a;let m=h.pathname||"/",g=m;if(u!=="/"){let x=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=mm(e,{pathname:g}),v=bm(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Wt([u,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:Wt([u,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?P.createElement(Fo.Provider,{value:{location:Zr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:It.Pop}},v):v}function Hm(){let e=Zm(),t=Im(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,null)}const Wm=P.createElement(Hm,null);class Km extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Sn.Provider,{value:this.props.routeContext},P.createElement(yf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gm(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(au);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Sn.Provider,{value:t},r)}function bm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let h=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);h>=0||te(!1),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,d,m)=>{let g,w=!1,v=null,x=null;n&&(g=s&&d.route.id?s[d.route.id]:void 0,v=d.route.errorElement||Wm,u&&(a<0&&m===0?(w=!0,x=null):a===m&&(w=!0,x=d.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let p;return g?p=v:w?p=x:d.route.Component?p=P.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=h,P.createElement(Gm,{match:d,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?P.createElement(Km,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var xf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xf||{}),yo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yo||{});function qm(e){let t=P.useContext(au);return t||te(!1),t}function Ym(e){let t=P.useContext(Am);return t||te(!1),t}function Xm(e){let t=P.useContext(Sn);return t||te(!1),t}function Sf(e){let t=Xm(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Zm(){var e;let t=P.useContext(yf),n=Ym(yo.UseRouteError),r=Sf(yo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Jm(){let{router:e}=qm(xf.UseNavigateStable),t=Sf(yo.UseNavigateStable),n=P.useRef(!1);return gf(()=>{n.current=!0}),P.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Zr({fromRouteId:t},o)))},[e,t])}const Na={};function ev(e,t){Na[t]||(Na[t]=!0,console.warn(t))}const Ra=(e,t,n)=>ev(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function tv(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&Ra("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&Ra("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Et(e){te(!1)}function nv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=It.Pop,navigator:o,static:i=!1,future:s}=e;ul()&&te(!1);let u=t.replace(/^\/*/,"/"),a=P.useMemo(()=>({basename:u,navigator:o,static:i,future:Zr({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=wn(r));let{pathname:h="/",search:d="",hash:m="",state:g=null,key:w="default"}=r,v=P.useMemo(()=>{let x=uu(h,u);return x==null?null:{location:{pathname:x,search:d,hash:m,state:g,key:w},navigationType:l}},[u,h,d,m,g,w,l]);return v==null?null:P.createElement(xn.Provider,{value:a},P.createElement(Fo.Provider,{children:n,value:v}))}function rv(e){let{children:t,location:n}=e;return Qm(as(t),n)}new Promise(()=>{});function as(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,l)=>{if(!P.isValidElement(r))return;let o=[...t,l];if(r.type===P.Fragment){n.push.apply(n,as(r.props.children,o));return}r.type!==Et&&te(!1),!r.props.index||!r.props.children||te(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=as(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.28.1 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function lv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ov(e,t){return e.button===0&&(!t||t==="_self")&&!lv(e)}const iv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],sv="6";try{window.__reactRouterVersion=sv}catch{}const uv="startTransition",Ra=ep[uv];function av(e){let{basename:t,children:n,future:r,window:l}=e,o=P.useRef();o.current==null&&(o.current=dm({window:l,v5Compat:!0}));let i=o.current,[s,u]=P.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=P.useCallback(d=>{a&&Ra?Ra(()=>u(d)):u(d)},[u,a]);return P.useLayoutEffect(()=>i.listen(h),[i,h]),P.useEffect(()=>ev(r),[r]),P.createElement(tv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const cv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lr=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:h,viewTransition:d}=t,m=rv(t,iv),{basename:g}=P.useContext(wn),w,v=!1;if(typeof a=="string"&&dv.test(a)&&(w=a,cv))try{let p=new URL(window.location.href),y=a.startsWith("//")?new URL(p.protocol+a):new URL(a),C=su(y.pathname,g);y.origin===p.origin&&C!=null?a=C+y.search+y.hash:v=!0}catch{}let x=Am(a,{relative:l}),f=fv(a,{replace:i,state:s,target:u,preventScrollReset:h,relative:l,viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return P.createElement("a",cs({},m,{href:w||x,onClick:v||o?r:c,ref:n,target:u}))});var za;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(za||(za={}));var ja;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ja||(ja={}));function fv(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,u=Um(),a=al(),h=wf(e,{relative:i});return P.useCallback(d=>{if(ov(d,n)){d.preventDefault();let m=r!==void 0?r:vo(a)===vo(h);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:s})}},[a,u,h,r,l,n,e,o,i,s])}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Do=typeof window>"u"||"Deno"in globalThis;function We(){}function pv(e,t){return typeof e=="function"?e(t):e}function hv(e){return typeof e=="number"&&e>=0&&e!==1/0}function mv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ta(e,t){return typeof e=="function"?e(t):e}function vv(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){const{type:n="all",exact:r,fetchStatus:l,predicate:o,queryKey:i,stale:s}=e;if(i){if(r){if(t.queryHash!==au(i,t.options))return!1}else if(!el(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||l&&l!==t.state.fetchStatus||o&&!o(t))}function La(e,t){const{exact:n,status:r,predicate:l,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Jr(t.options.mutationKey)!==Jr(o))return!1}else if(!el(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||l&&!l(t))}function au(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jr)(e)}function Jr(e){return JSON.stringify(e,(t,n)=>ds(n)?Object.keys(n).sort().reduce((r,l)=>(r[l]=n[l],r),{}):n)}function el(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!el(e[n],t[n])):!1}function kf(e,t){if(e===t)return e;const n=Ma(e)&&Ma(t);if(n||ds(e)&&ds(t)){const r=n?e:Object.keys(e),l=r.length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kf(e,t):t}function wv(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function xv(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cu=Symbol();function Ef(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var on,zt,Vn,Va,Sv=(Va=class extends Io{constructor(){super();$(this,on);$(this,zt);$(this,Vn);M(this,Vn,t=>{if(!Do&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,zt)||this.setEventListener(S(this,Vn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,zt))==null||t.call(this),M(this,zt,void 0))}setEventListener(t){var n;M(this,Vn,t),(n=S(this,zt))==null||n.call(this),M(this,zt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,on)!==t&&(M(this,on,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,on)=="boolean"?S(this,on):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},on=new WeakMap,zt=new WeakMap,Vn=new WeakMap,Va),Cf=new Sv,Hn,jt,Wn,Ha,kv=(Ha=class extends Io{constructor(){super();$(this,Hn,!0);$(this,jt);$(this,Wn);M(this,Wn,t=>{if(!Do&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,jt)||this.setEventListener(S(this,Wn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,jt))==null||t.call(this),M(this,jt,void 0))}setEventListener(t){var n;M(this,Wn,t),(n=S(this,jt))==null||n.call(this),M(this,jt,t(this.setOnline.bind(this)))}setOnline(t){S(this,Hn)!==t&&(M(this,Hn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,Hn)}},Hn=new WeakMap,jt=new WeakMap,Wn=new WeakMap,Ha),go=new kv;function Ev(){let e,t;const n=new Promise((l,o)=>{e=l,t=o});n.status="pending",n.catch(()=>{});function r(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{r({status:"fulfilled",value:l}),e(l)},n.reject=l=>{r({status:"rejected",reason:l}),t(l)},n}function Cv(e){return Math.min(1e3*2**e,3e4)}function Pf(e){return(e??"online")==="online"?go.isOnline():!0}var _f=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pi(e){return e instanceof _f}function Nf(e){let t=!1,n=0,r=!1,l;const o=Ev(),i=v=>{var x;r||(m(new _f(v)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},u=()=>{t=!1},a=()=>Cf.isFocused()&&(e.networkMode==="always"||go.isOnline())&&e.canRun(),h=()=>Pf(e.networkMode)&&e.canRun(),d=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),l==null||l(),o.resolve(v))},m=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),l==null||l(),o.reject(v))},g=()=>new Promise(v=>{var x;l=f=>{(r||a())&&v(f)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;l=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(f){v=Promise.reject(f)}Promise.resolve(v).then(d).catch(f=>{var N;if(r)return;const c=e.retry??(Do?0:3),p=e.retryDelay??Cv,y=typeof p=="function"?p(n,f):p,C=c===!0||typeof c=="number"&&na()?void 0:g()).then(()=>{t?m(f):w()})})};return{promise:o,cancel:i,continue:()=>(l==null||l(),o),cancelRetry:s,continueRetry:u,canStart:h,start:()=>(h()?w():g().then(w),o)}}function Pv(){let e=[],t=0,n=s=>{s()},r=s=>{s()},l=s=>setTimeout(s,0);const o=s=>{t?e.push(s):l(()=>{n(s)})},i=()=>{const s=e;e=[],s.length&&l(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{l=s}}}var xe=Pv(),sn,Wa,Rf=(Wa=class{constructor(){$(this,sn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hv(this.gcTime)&&M(this,sn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Do?1/0:5*60*1e3))}clearGcTimeout(){S(this,sn)&&(clearTimeout(S(this,sn)),M(this,sn,void 0))}},sn=new WeakMap,Wa),Kn,Gn,Ie,he,tl,un,Ke,st,Ka,_v=(Ka=class extends Rf{constructor(t){super();$(this,Ke);$(this,Kn);$(this,Gn);$(this,Ie);$(this,he);$(this,tl);$(this,un);M(this,un,!1),M(this,tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ie,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Kn,Rv(this.options)),this.state=t.state??S(this,Kn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,he))==null?void 0:t.promise}setOptions(t){this.options={...S(this,tl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Ie).remove(this)}setData(t,n){const r=gv(this.state.data,t,this.options);return de(this,Ke,st).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,Ke,st).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,l;const n=(r=S(this,he))==null?void 0:r.promise;return(l=S(this,he))==null||l.cancel(t),n?n.then(We).catch(We):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Kn))}isActive(){return this.observers.some(t=>vv(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,he)&&(S(this,un)?S(this,he).cancel({revert:!0}):S(this,he).cancelRetry()),this.scheduleGc()),S(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Ke,st).call(this,{type:"invalidate"})}fetch(t,n){var u,a,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,he))return S(this,he).continueRetry(),S(this,he).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(M(this,un,!0),r.signal)})},o=()=>{const d=Ef(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return l(m),M(this,un,!1),this.options.persister?this.options.persister(d,m,this):d(m)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};l(i),(u=this.options.behavior)==null||u.onFetch(i,this),M(this,Gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=i.fetchOptions)==null?void 0:a.meta))&&de(this,Ke,st).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const s=d=>{var m,g,w,v;pi(d)&&d.silent||de(this,Ke,st).call(this,{type:"error",error:d}),pi(d)||((g=(m=S(this,Ie).config).onError)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,this.state.data,d,this)),this.scheduleGc()};return M(this,he,Nf({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var m,g,w,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){s(x);return}(g=(m=S(this,Ie).config).onSuccess)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,m)=>{de(this,Ke,st).call(this,{type:"failed",failureCount:d,error:m})},onPause:()=>{de(this,Ke,st).call(this,{type:"pause"})},onContinue:()=>{de(this,Ke,st).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),S(this,he).start()}},Kn=new WeakMap,Gn=new WeakMap,Ie=new WeakMap,he=new WeakMap,tl=new WeakMap,un=new WeakMap,Ke=new WeakSet,st=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nv(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return pi(l)&&l.revert&&S(this,Gn)?{...S(this,Gn),fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Ie).notify({query:this,type:"updated",action:t})})},Ka);function Nv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,Ga,zv=(Ga=class extends Io{constructor(t={}){super();$(this,et);this.config=t,M(this,et,new Map)}build(t,n,r){const l=n.queryKey,o=n.queryHash??au(l,n);let i=this.get(o);return i||(i=new _v({cache:this,queryKey:l,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(i)),i}add(t){S(this,et).has(t.queryHash)||(S(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,et).get(t)}getAll(){return[...S(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oa(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Oa(t,r)):n}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,Ga),tt,ge,an,nt,Ct,ba,jv=(ba=class extends Rf{constructor(t){super();$(this,nt);$(this,tt);$(this,ge);$(this,an);this.mutationId=t.mutationId,M(this,ge,t.mutationCache),M(this,tt,[]),this.state=t.state||Tv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,tt).includes(t)||(S(this,tt).push(t),this.clearGcTimeout(),S(this,ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,tt,S(this,tt).filter(n=>n!==t)),this.scheduleGc(),S(this,ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,tt).length||(this.state.status==="pending"?this.scheduleGc():S(this,ge).remove(this))}continue(){var t;return((t=S(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,i,s,u,a,h,d,m,g,w,v,x,f,c,p,y,C,N,j;M(this,an,Nf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,D)=>{de(this,nt,Ct).call(this,{type:"failed",failureCount:_,error:D})},onPause:()=>{de(this,nt,Ct).call(this,{type:"pause"})},onContinue:()=>{de(this,nt,Ct).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,ge).canRun(this)}));const n=this.state.status==="pending",r=!S(this,an).canStart();try{if(!n){de(this,nt,Ct).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(l=S(this,ge).config).onMutate)==null?void 0:o.call(l,t,this));const D=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));D!==this.state.context&&de(this,nt,Ct).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const _=await S(this,an).start();return await((a=(u=S(this,ge).config).onSuccess)==null?void 0:a.call(u,_,t,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,_,t,this.state.context)),await((g=(m=S(this,ge).config).onSettled)==null?void 0:g.call(m,_,null,this.state.variables,this.state.context,this)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,_,null,t,this.state.context)),de(this,nt,Ct).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(x=S(this,ge).config).onError)==null?void 0:f.call(x,_,t,this.state.context,this)),await((p=(c=this.options).onError)==null?void 0:p.call(c,_,t,this.state.context)),await((C=(y=S(this,ge).config).onSettled)==null?void 0:C.call(y,void 0,_,this.state.variables,this.state.context,this)),await((j=(N=this.options).onSettled)==null?void 0:j.call(N,void 0,_,t,this.state.context)),_}finally{de(this,nt,Ct).call(this,{type:"error",error:_})}}finally{S(this,ge).runNext(this)}}},tt=new WeakMap,ge=new WeakMap,an=new WeakMap,nt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xe.batch(()=>{S(this,tt).forEach(r=>{r.onMutationUpdate(t)}),S(this,ge).notify({mutation:this,type:"updated",action:t})})},ba);function Tv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ze,nl,qa,Ov=(qa=class extends Io{constructor(t={}){super();$(this,ze);$(this,nl);this.config=t,M(this,ze,new Map),M(this,nl,Date.now())}build(t,n,r){const l=new jv({mutationCache:this,mutationId:++pl(this,nl)._,options:t.defaultMutationOptions(n),state:r});return this.add(l),l}add(t){const n=Tl(t),r=S(this,ze).get(n)??[];r.push(t),S(this,ze).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Tl(t);if(S(this,ze).has(n)){const l=(r=S(this,ze).get(n))==null?void 0:r.filter(o=>o!==t);l&&(l.length===0?S(this,ze).delete(n):S(this,ze).set(n,l))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,ze).get(Tl(t)))==null?void 0:r.find(l=>l.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,ze).get(Tl(t)))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,ze).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>La(n,r))}findAll(t={}){return this.getAll().filter(n=>La(t,n))}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(We))))}},ze=new WeakMap,nl=new WeakMap,qa);function Tl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ia(e){return{onFetch:(t,n)=>{var h,d,m,g,w;const r=t.options,l=(m=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const x=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},f=Ef(t.options,t.fetchOptions),c=async(p,y,C)=>{if(v)return Promise.reject();if(y==null&&p.pages.length)return Promise.resolve(p);const N={queryKey:t.queryKey,pageParam:y,direction:C?"backward":"forward",meta:t.options.meta};x(N);const j=await f(N),{maxPages:_}=t.options,D=C?xv:wv;return{pages:D(p.pages,j,_),pageParams:D(p.pageParams,y,_)}};if(l&&o.length){const p=l==="backward",y=p?Lv:Da,C={pages:o,pageParams:i},N=y(r,C);s=await c(C,N,p)}else{const p=e??o.length;do{const y=u===0?i[0]??r.initialPageParam:Da(r,s);if(u>0&&y==null)break;s=await c(s,y),u++}while(u{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Da(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lv(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var X,Tt,Ot,bn,qn,Lt,Yn,Xn,Ya,Mv=(Ya=class{constructor(e={}){$(this,X);$(this,Tt);$(this,Ot);$(this,bn);$(this,qn);$(this,Lt);$(this,Yn);$(this,Xn);M(this,X,e.queryCache||new zv),M(this,Tt,e.mutationCache||new Ov),M(this,Ot,e.defaultOptions||{}),M(this,bn,new Map),M(this,qn,new Map),M(this,Lt,0)}mount(){pl(this,Lt)._++,S(this,Lt)===1&&(M(this,Yn,Cf.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onFocus())})),M(this,Xn,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onOnline())})))}unmount(){var e,t;pl(this,Lt)._--,S(this,Lt)===0&&((e=S(this,Yn))==null||e.call(this),M(this,Yn,void 0),(t=S(this,Xn))==null||t.call(this),M(this,Xn,void 0))}isFetching(e){return S(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Tt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,X).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,X).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=S(this,X).get(r.queryHash),o=l==null?void 0:l.state.data,i=pv(t,o);if(i!==void 0)return S(this,X).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return xe.batch(()=>S(this,X).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,X);xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,X),r={type:"active",...e};return xe.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xe.batch(()=>S(this,X).findAll(e).map(l=>l.cancel(n)));return Promise.all(r).then(We).catch(We)}invalidateQueries(e,t={}){return xe.batch(()=>{if(S(this,X).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xe.batch(()=>S(this,X).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let o=l.fetch(void 0,n);return n.throwOnError||(o=o.catch(We)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(We)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,X).build(this,t);return n.isStaleByTime(Ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(We).catch(We)}fetchInfiniteQuery(e){return e.behavior=Ia(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(We).catch(We)}ensureInfiniteQueryData(e){return e.behavior=Ia(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?S(this,Tt).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,X)}getMutationCache(){return S(this,Tt)}getDefaultOptions(){return S(this,Ot)}setDefaultOptions(e){M(this,Ot,e)}setQueryDefaults(e,t){S(this,bn).set(Jr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,bn).values()],n={};return t.forEach(r=>{el(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,qn).set(Jr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,qn).values()];let n={};return t.forEach(r=>{el(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Ot).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=au(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Ot).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,X).clear(),S(this,Tt).clear()}},X=new WeakMap,Tt=new WeakMap,Ot=new WeakMap,bn=new WeakMap,qn=new WeakMap,Lt=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Ya),zf=P.createContext(void 0),lg=e=>{const t=P.useContext(zf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fv=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(zf.Provider,{value:e,children:t}));const Iv=P.createContext(null),hi={didCatch:!1,error:null};let Dv=class extends P.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hi}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,l=arguments.length,o=new Array(l),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}/** + */function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function ov(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iv(e,t){return e.button===0&&(!t||t==="_self")&&!ov(e)}const sv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uv="6";try{window.__reactRouterVersion=uv}catch{}const av="startTransition",za=tp[av];function kf(e){let{basename:t,children:n,future:r,window:l}=e,o=P.useRef();o.current==null&&(o.current=fm({window:l,v5Compat:!0}));let i=o.current,[s,u]=P.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=P.useCallback(d=>{a&&za?za(()=>u(d)):u(d)},[u,a]);return P.useLayoutEffect(()=>i.listen(h),[i,h]),P.useEffect(()=>tv(r),[r]),P.createElement(nv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const cv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lr=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:h,viewTransition:d}=t,m=lv(t,sv),{basename:g}=P.useContext(xn),w,v=!1;if(typeof a=="string"&&dv.test(a)&&(w=a,cv))try{let p=new URL(window.location.href),y=a.startsWith("//")?new URL(p.protocol+a):new URL(a),C=uu(y.pathname,g);y.origin===p.origin&&C!=null?a=C+y.search+y.hash:v=!0}catch{}let x=Um(a,{relative:l}),f=fv(a,{replace:i,state:s,target:u,preventScrollReset:h,relative:l,viewTransition:d});function c(p){r&&r(p),p.defaultPrevented||f(p)}return P.createElement("a",cs({},m,{href:w||x,onClick:v||o?r:c,ref:n,target:u}))});var ja;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ja||(ja={}));var Oa;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Oa||(Oa={}));function fv(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,u=$m(),a=al(),h=wf(e,{relative:i});return P.useCallback(d=>{if(iv(d,n)){d.preventDefault();let m=r!==void 0?r:vo(a)===vo(h);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:s})}},[a,u,h,r,l,n,e,o,i,s])}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Do=typeof window>"u"||"Deno"in globalThis;function We(){}function pv(e,t){return typeof e=="function"?e(t):e}function hv(e){return typeof e=="number"&&e>=0&&e!==1/0}function mv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ta(e,t){return typeof e=="function"?e(t):e}function vv(e,t){return typeof e=="function"?e(t):e}function La(e,t){const{type:n="all",exact:r,fetchStatus:l,predicate:o,queryKey:i,stale:s}=e;if(i){if(r){if(t.queryHash!==cu(i,t.options))return!1}else if(!el(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||l&&l!==t.state.fetchStatus||o&&!o(t))}function Ma(e,t){const{exact:n,status:r,predicate:l,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Jr(t.options.mutationKey)!==Jr(o))return!1}else if(!el(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||l&&!l(t))}function cu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jr)(e)}function Jr(e){return JSON.stringify(e,(t,n)=>ds(n)?Object.keys(n).sort().reduce((r,l)=>(r[l]=n[l],r),{}):n)}function el(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!el(e[n],t[n])):!1}function Ef(e,t){if(e===t)return e;const n=Fa(e)&&Fa(t);if(n||ds(e)&&ds(t)){const r=n?e:Object.keys(e),l=r.length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ef(e,t):t}function wv(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function xv(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var du=Symbol();function Cf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===du?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var on,zt,Hn,Ha,Sv=(Ha=class extends Io{constructor(){super();B(this,on);B(this,zt);B(this,Hn);M(this,Hn,t=>{if(!Do&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,zt)||this.setEventListener(S(this,Hn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,zt))==null||t.call(this),M(this,zt,void 0))}setEventListener(t){var n;M(this,Hn,t),(n=S(this,zt))==null||n.call(this),M(this,zt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,on)!==t&&(M(this,on,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,on)=="boolean"?S(this,on):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},on=new WeakMap,zt=new WeakMap,Hn=new WeakMap,Ha),Pf=new Sv,Wn,jt,Kn,Wa,kv=(Wa=class extends Io{constructor(){super();B(this,Wn,!0);B(this,jt);B(this,Kn);M(this,Kn,t=>{if(!Do&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,jt)||this.setEventListener(S(this,Kn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,jt))==null||t.call(this),M(this,jt,void 0))}setEventListener(t){var n;M(this,Kn,t),(n=S(this,jt))==null||n.call(this),M(this,jt,t(this.setOnline.bind(this)))}setOnline(t){S(this,Wn)!==t&&(M(this,Wn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,Wn)}},Wn=new WeakMap,jt=new WeakMap,Kn=new WeakMap,Wa),go=new kv;function Ev(){let e,t;const n=new Promise((l,o)=>{e=l,t=o});n.status="pending",n.catch(()=>{});function r(l){Object.assign(n,l),delete n.resolve,delete n.reject}return n.resolve=l=>{r({status:"fulfilled",value:l}),e(l)},n.reject=l=>{r({status:"rejected",reason:l}),t(l)},n}function Cv(e){return Math.min(1e3*2**e,3e4)}function _f(e){return(e??"online")==="online"?go.isOnline():!0}var Nf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pi(e){return e instanceof Nf}function Rf(e){let t=!1,n=0,r=!1,l;const o=Ev(),i=v=>{var x;r||(m(new Nf(v)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},u=()=>{t=!1},a=()=>Pf.isFocused()&&(e.networkMode==="always"||go.isOnline())&&e.canRun(),h=()=>_f(e.networkMode)&&e.canRun(),d=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),l==null||l(),o.resolve(v))},m=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),l==null||l(),o.reject(v))},g=()=>new Promise(v=>{var x;l=f=>{(r||a())&&v(f)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;l=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(f){v=Promise.reject(f)}Promise.resolve(v).then(d).catch(f=>{var N;if(r)return;const c=e.retry??(Do?0:3),p=e.retryDelay??Cv,y=typeof p=="function"?p(n,f):p,C=c===!0||typeof c=="number"&&na()?void 0:g()).then(()=>{t?m(f):w()})})};return{promise:o,cancel:i,continue:()=>(l==null||l(),o),cancelRetry:s,continueRetry:u,canStart:h,start:()=>(h()?w():g().then(w),o)}}function Pv(){let e=[],t=0,n=s=>{s()},r=s=>{s()},l=s=>setTimeout(s,0);const o=s=>{t?e.push(s):l(()=>{n(s)})},i=()=>{const s=e;e=[],s.length&&l(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{l=s}}}var xe=Pv(),sn,Ka,zf=(Ka=class{constructor(){B(this,sn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hv(this.gcTime)&&M(this,sn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Do?1/0:5*60*1e3))}clearGcTimeout(){S(this,sn)&&(clearTimeout(S(this,sn)),M(this,sn,void 0))}},sn=new WeakMap,Ka),Gn,bn,Ie,he,tl,un,Ke,st,Ga,_v=(Ga=class extends zf{constructor(t){super();B(this,Ke);B(this,Gn);B(this,bn);B(this,Ie);B(this,he);B(this,tl);B(this,un);M(this,un,!1),M(this,tl,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ie,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Gn,Rv(this.options)),this.state=t.state??S(this,Gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,he))==null?void 0:t.promise}setOptions(t){this.options={...S(this,tl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Ie).remove(this)}setData(t,n){const r=gv(this.state.data,t,this.options);return de(this,Ke,st).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,Ke,st).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,l;const n=(r=S(this,he))==null?void 0:r.promise;return(l=S(this,he))==null||l.cancel(t),n?n.then(We).catch(We):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Gn))}isActive(){return this.observers.some(t=>vv(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===du||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,he))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,he)&&(S(this,un)?S(this,he).cancel({revert:!0}):S(this,he).cancelRetry()),this.scheduleGc()),S(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Ke,st).call(this,{type:"invalidate"})}fetch(t,n){var u,a,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,he))return S(this,he).continueRetry(),S(this,he).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(M(this,un,!0),r.signal)})},o=()=>{const d=Cf(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return l(m),M(this,un,!1),this.options.persister?this.options.persister(d,m,this):d(m)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};l(i),(u=this.options.behavior)==null||u.onFetch(i,this),M(this,bn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=i.fetchOptions)==null?void 0:a.meta))&&de(this,Ke,st).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const s=d=>{var m,g,w,v;pi(d)&&d.silent||de(this,Ke,st).call(this,{type:"error",error:d}),pi(d)||((g=(m=S(this,Ie).config).onError)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,this.state.data,d,this)),this.scheduleGc()};return M(this,he,Rf({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var m,g,w,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){s(x);return}(g=(m=S(this,Ie).config).onSuccess)==null||g.call(m,d,this),(v=(w=S(this,Ie).config).onSettled)==null||v.call(w,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,m)=>{de(this,Ke,st).call(this,{type:"failed",failureCount:d,error:m})},onPause:()=>{de(this,Ke,st).call(this,{type:"pause"})},onContinue:()=>{de(this,Ke,st).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),S(this,he).start()}},Gn=new WeakMap,bn=new WeakMap,Ie=new WeakMap,he=new WeakMap,tl=new WeakMap,un=new WeakMap,Ke=new WeakSet,st=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nv(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return pi(l)&&l.revert&&S(this,bn)?{...S(this,bn),fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Ie).notify({query:this,type:"updated",action:t})})},Ga);function Nv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_f(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,ba,zv=(ba=class extends Io{constructor(t={}){super();B(this,et);this.config=t,M(this,et,new Map)}build(t,n,r){const l=n.queryKey,o=n.queryHash??cu(l,n);let i=this.get(o);return i||(i=new _v({cache:this,queryKey:l,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(i)),i}add(t){S(this,et).has(t.queryHash)||(S(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,et).get(t)}getAll(){return[...S(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>La(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>La(t,r)):n}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,ba),tt,ge,an,nt,Ct,qa,jv=(qa=class extends zf{constructor(t){super();B(this,nt);B(this,tt);B(this,ge);B(this,an);this.mutationId=t.mutationId,M(this,ge,t.mutationCache),M(this,tt,[]),this.state=t.state||Ov(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,tt).includes(t)||(S(this,tt).push(t),this.clearGcTimeout(),S(this,ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,tt,S(this,tt).filter(n=>n!==t)),this.scheduleGc(),S(this,ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,tt).length||(this.state.status==="pending"?this.scheduleGc():S(this,ge).remove(this))}continue(){var t;return((t=S(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,i,s,u,a,h,d,m,g,w,v,x,f,c,p,y,C,N,j;M(this,an,Rf({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,D)=>{de(this,nt,Ct).call(this,{type:"failed",failureCount:_,error:D})},onPause:()=>{de(this,nt,Ct).call(this,{type:"pause"})},onContinue:()=>{de(this,nt,Ct).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,ge).canRun(this)}));const n=this.state.status==="pending",r=!S(this,an).canStart();try{if(!n){de(this,nt,Ct).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(l=S(this,ge).config).onMutate)==null?void 0:o.call(l,t,this));const D=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));D!==this.state.context&&de(this,nt,Ct).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const _=await S(this,an).start();return await((a=(u=S(this,ge).config).onSuccess)==null?void 0:a.call(u,_,t,this.state.context,this)),await((d=(h=this.options).onSuccess)==null?void 0:d.call(h,_,t,this.state.context)),await((g=(m=S(this,ge).config).onSettled)==null?void 0:g.call(m,_,null,this.state.variables,this.state.context,this)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,_,null,t,this.state.context)),de(this,nt,Ct).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(x=S(this,ge).config).onError)==null?void 0:f.call(x,_,t,this.state.context,this)),await((p=(c=this.options).onError)==null?void 0:p.call(c,_,t,this.state.context)),await((C=(y=S(this,ge).config).onSettled)==null?void 0:C.call(y,void 0,_,this.state.variables,this.state.context,this)),await((j=(N=this.options).onSettled)==null?void 0:j.call(N,void 0,_,t,this.state.context)),_}finally{de(this,nt,Ct).call(this,{type:"error",error:_})}}finally{S(this,ge).runNext(this)}}},tt=new WeakMap,ge=new WeakMap,an=new WeakMap,nt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xe.batch(()=>{S(this,tt).forEach(r=>{r.onMutationUpdate(t)}),S(this,ge).notify({mutation:this,type:"updated",action:t})})},qa);function Ov(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ze,nl,Ya,Tv=(Ya=class extends Io{constructor(t={}){super();B(this,ze);B(this,nl);this.config=t,M(this,ze,new Map),M(this,nl,Date.now())}build(t,n,r){const l=new jv({mutationCache:this,mutationId:++pl(this,nl)._,options:t.defaultMutationOptions(n),state:r});return this.add(l),l}add(t){const n=Ol(t),r=S(this,ze).get(n)??[];r.push(t),S(this,ze).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ol(t);if(S(this,ze).has(n)){const l=(r=S(this,ze).get(n))==null?void 0:r.filter(o=>o!==t);l&&(l.length===0?S(this,ze).delete(n):S(this,ze).set(n,l))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=S(this,ze).get(Ol(t)))==null?void 0:r.find(l=>l.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=S(this,ze).get(Ol(t)))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...S(this,ze).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ma(n,r))}findAll(t={}){return this.getAll().filter(n=>Ma(t,n))}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(We))))}},ze=new WeakMap,nl=new WeakMap,Ya);function Ol(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Da(e){return{onFetch:(t,n)=>{var h,d,m,g,w;const r=t.options,l=(m=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const x=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},f=Cf(t.options,t.fetchOptions),c=async(p,y,C)=>{if(v)return Promise.reject();if(y==null&&p.pages.length)return Promise.resolve(p);const N={queryKey:t.queryKey,pageParam:y,direction:C?"backward":"forward",meta:t.options.meta};x(N);const j=await f(N),{maxPages:_}=t.options,D=C?xv:wv;return{pages:D(p.pages,j,_),pageParams:D(p.pageParams,y,_)}};if(l&&o.length){const p=l==="backward",y=p?Lv:Aa,C={pages:o,pageParams:i},N=y(r,C);s=await c(C,N,p)}else{const p=e??o.length;do{const y=u===0?i[0]??r.initialPageParam:Aa(r,s);if(u>0&&y==null)break;s=await c(s,y),u++}while(u{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Aa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lv(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var X,Ot,Tt,qn,Yn,Lt,Xn,Zn,Xa,Mv=(Xa=class{constructor(e={}){B(this,X);B(this,Ot);B(this,Tt);B(this,qn);B(this,Yn);B(this,Lt);B(this,Xn);B(this,Zn);M(this,X,e.queryCache||new zv),M(this,Ot,e.mutationCache||new Tv),M(this,Tt,e.defaultOptions||{}),M(this,qn,new Map),M(this,Yn,new Map),M(this,Lt,0)}mount(){pl(this,Lt)._++,S(this,Lt)===1&&(M(this,Xn,Pf.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onFocus())})),M(this,Zn,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,X).onOnline())})))}unmount(){var e,t;pl(this,Lt)._--,S(this,Lt)===0&&((e=S(this,Xn))==null||e.call(this),M(this,Xn,void 0),(t=S(this,Zn))==null||t.call(this),M(this,Zn,void 0))}isFetching(e){return S(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,X).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,X).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=S(this,X).get(r.queryHash),o=l==null?void 0:l.state.data,i=pv(t,o);if(i!==void 0)return S(this,X).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return xe.batch(()=>S(this,X).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,X).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,X);xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,X),r={type:"active",...e};return xe.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xe.batch(()=>S(this,X).findAll(e).map(l=>l.cancel(n)));return Promise.all(r).then(We).catch(We)}invalidateQueries(e,t={}){return xe.batch(()=>{if(S(this,X).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xe.batch(()=>S(this,X).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let o=l.fetch(void 0,n);return n.throwOnError||(o=o.catch(We)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(We)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,X).build(this,t);return n.isStaleByTime(Ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(We).catch(We)}fetchInfiniteQuery(e){return e.behavior=Da(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(We).catch(We)}ensureInfiniteQueryData(e){return e.behavior=Da(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?S(this,Ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,X)}getMutationCache(){return S(this,Ot)}getDefaultOptions(){return S(this,Tt)}setDefaultOptions(e){M(this,Tt,e)}setQueryDefaults(e,t){S(this,qn).set(Jr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,qn).values()],n={};return t.forEach(r=>{el(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,Yn).set(Jr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,Yn).values()];let n={};return t.forEach(r=>{el(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Tt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===du&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Tt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,X).clear(),S(this,Ot).clear()}},X=new WeakMap,Ot=new WeakMap,Tt=new WeakMap,qn=new WeakMap,Yn=new WeakMap,Lt=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,Xa),jf=P.createContext(void 0),lg=e=>{const t=P.useContext(jf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fv=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(jf.Provider,{value:e,children:t}));const Iv=P.createContext(null),hi={didCatch:!1,error:null};let Dv=class extends P.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=hi}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,l=arguments.length,o=new Array(l),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -75,12 +75,12 @@ Error generating stack: `+o.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Bv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),se=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:u,...a},h)=>P.createElement("svg",{ref:h,...Uv,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${Bv(e)}`,s].join(" "),...a},[...t.map(([d,m])=>P.createElement(d,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** + */const $v=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),se=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:u,...a},h)=>P.createElement("svg",{ref:h,...Uv,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${$v(e)}`,s].join(" "),...a},[...t.map(([d,m])=>P.createElement(d,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** * @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 $v=se("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const Bv=se("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -165,4 +165,4 @@ Error generating stack: `+o.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ly=se("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 oy({error:e}){return E.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:E.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[E.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:E.jsx($v,{size:48})}),E.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),E.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),E.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 iy({children:e}){return E.jsx(Dv,{FallbackComponent:oy,children:e})}function jf(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=cy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(du);return s[0]===""&&s.length!==1&&s.shift(),Tf(s,t)||ay(i)},getConflictingClassGroupIds:(i,s)=>{const u=n[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},Tf=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Tf(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const o=e.join(du);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Aa=/^\[(.+)\]$/,ay=e=>{if(Aa.test(e)){const t=Aa.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cy=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fy(Object.entries(e.classGroups),n).forEach(([o,i])=>{fs(i,r,o,t)}),r},fs=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const o=l===""?t:Ua(t,l);o.classGroupId=n;return}if(typeof l=="function"){if(dy(l)){fs(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([o,i])=>{fs(i,Ua(t,o),n,r)})})},Ua=(e,t)=>{let n=e;return t.split(du).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dy=e=>e.isThemeGetter,fy=(e,t)=>t?e.map(([n,r])=>{const l=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[n,l]}):e,py=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return l(o,i),i},set(o,i){n.has(o)?n.set(o,i):l(o,i)}}},Of="!",hy=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],o=t.length,i=s=>{const u=[];let a=0,h=0,d;for(let x=0;xh?d-h:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:i}):i},my=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},vy=e=>({cache:py(e.cacheSize),parseClassName:hy(e),...uy(e)}),yy=/\s+/,gy=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,o=[],i=e.trim().split(yy);let s="";for(let u=i.length-1;u>=0;u-=1){const a=i[u],{modifiers:h,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}=n(a);let w=!!g,v=r(w?m.substring(0,g):m);if(!v){if(!w){s=a+(s.length>0?" "+s:s);continue}if(v=r(m),!v){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=my(h).join(":"),f=d?x+Of:x,c=f+v;if(o.includes(c))continue;o.push(c);const p=l(v,w);for(let y=0;y0?" "+s:s)}return s};function wy(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(h),e());return n=vy(a),r=n.cache.get,l=n.cache.set,o=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=gy(u,n);return l(u,h),h}return function(){return o(wy.apply(null,arguments))}}const H=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Sy=/^\d+\/\d+$/,ky=new Set(["px","full","screen"]),Ey=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cy=/\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$/,Py=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ny=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Qn(e)||ky.has(e)||Sy.test(e),St=e=>ar(e,"length",Fy),Qn=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>ar(e,"number",Qn),gr=e=>!!e&&Number.isInteger(Number(e)),Ry=e=>e.endsWith("%")&&Qn(e.slice(0,-1)),L=e=>Mf.test(e),kt=e=>Ey.test(e),zy=new Set(["length","size","percentage"]),jy=e=>ar(e,zy,Ff),Ty=e=>ar(e,"position",Ff),Oy=new Set(["image","url"]),Ly=e=>ar(e,Oy,Dy),My=e=>ar(e,"",Iy),wr=()=>!0,ar=(e,t,n)=>{const r=Mf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fy=e=>Cy.test(e)&&!Py.test(e),Ff=()=>!1,Iy=e=>_y.test(e),Dy=e=>Ny.test(e),Ay=()=>{const e=H("colors"),t=H("spacing"),n=H("blur"),r=H("brightness"),l=H("borderColor"),o=H("borderRadius"),i=H("borderSpacing"),s=H("borderWidth"),u=H("contrast"),a=H("grayscale"),h=H("hueRotate"),d=H("invert"),m=H("gap"),g=H("gradientColorStops"),w=H("gradientColorStopPositions"),v=H("inset"),x=H("margin"),f=H("opacity"),c=H("padding"),p=H("saturate"),y=H("scale"),C=H("sepia"),N=H("skew"),j=H("space"),_=H("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",L,t],B=()=>[L,t],gt=()=>["",it,St],Xt=()=>["auto",Qn,L],cl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],wt=()=>["solid","dashed","dotted","double","none"],kn=()=>["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"],T=()=>["","0",L],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Qn,L];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[it,St],blur:["none","",kt,L],brightness:U(),borderColor:[e],borderRadius:["none","","full",kt,L],borderSpacing:B(),borderWidth:gt(),contrast:U(),grayscale:T(),hueRotate:U(),invert:T(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[Ry,St],inset:ye(),margin:ye(),opacity:U(),padding:B(),saturate:U(),scale:U(),sepia:T(),skew:U(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:[...cl(),L]}],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:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,L]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",gr,L]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",gr,L]},L]}],"col-start":[{"col-start":Xt()}],"col-end":[{"col-end":Xt()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[gr,L]},L]}],"row-start":[{"row-start":Xt()}],"row-end":[{"row-end":Xt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],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",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[wr]}],"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",L]}],"line-clamp":[{"line-clamp":["none",Qn,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...wt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",it,St]}],"underline-offset":[{"underline-offset":["auto",it,L]}],"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",L]}],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",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...cl(),Ty]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jy]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ly]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[f]}],"border-style":[{border:[...wt(),"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":[f]}],"divide-style":[{divide:wt()}],"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:["",...wt()]}],"outline-offset":[{"outline-offset":[it,L]}],"outline-w":[{outline:[it,St]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[it,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,My]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...kn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kn()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",kt,L]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],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":[d]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gr,L]}],"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",L]}],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",L]}],"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",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[it,St,mi]}],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"]}}},Uy=xy(Ay);function Ba(...e){return Uy(sy(e))}function ig(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function sg(e){return`${e} Mbps`}const $a=[{name:"Home",href:"/",icon:bv},{name:"About",href:"/about",icon:Yv},{name:"Features",href:"/features",icon:ty},{name:"Gallery",href:"/gallery",icon:qv},{name:"Download",href:"/download",icon:Hv},{name:"Developers",href:"/developers",icon:Vv},{name:"Donate",href:"/donate",icon:Kv}];function By(){return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"32",height:"32",children:[E.jsx("path",{fill:"#6495ed","fill-rule":"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"}),E.jsx("path",{fill:"#6495ed","fill-rule":"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 $y(){const[e,t]=P.useState(!1),n=al();return E.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200",children:[E.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:E.jsxs("div",{className:"flex justify-between h-16",children:[E.jsx("div",{className:"flex",children:E.jsxs(Lr,{to:"/",className:"flex-shrink-0 flex items-center",children:[E.jsx(By,{}),E.jsx("span",{className:"ml-2 text-xl font-bold text-cornflower-blue",children:"Snigdha OS"})]})}),E.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:$a.map(r=>E.jsxs(Lr,{to:r.href,className:Ba("px-3 py-2 rounded-md text-sm font-medium transition-colors flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[E.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),E.jsx("div",{className:"flex items-center sm:hidden",children:E.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",children:e?E.jsx(ry,{className:"h-6 w-6"}):E.jsx(Zv,{className:"h-6 w-6"})})})]})}),e&&E.jsx("div",{className:"sm:hidden bg-white/90 backdrop-blur-lg",children:E.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:$a.map(r=>E.jsxs(Lr,{to:r.href,className:Ba("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2",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:[E.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Ol={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Qv},{name:"Blog",href:"/blog",icon:ey},{name:"Support",href:"/support",icon:Gv}],community:[{name:"Community",href:"/community",icon:Jv},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:Wv},{name:"Twitter",href:"https://twitter.com/SnigdhaOS",icon:ny},{name:"YouTube",href:"https://youtube.com",icon:ly}]};function Qy(){const e=new Date().getFullYear();return E.jsx("footer",{className:"bg-gray-900 text-gray-300",children:E.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[E.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[E.jsxs("div",{className:"space-y-4",children:[E.jsx("h3",{className:"text-lg font-semibold text-white",children:"Snigdha OS"}),E.jsx("p",{className:"text-sm",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),E.jsx("div",{className:"flex space-x-4",children:Ol.community.map(t=>E.jsx("a",{href:t.href,className:"hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:E.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),E.jsx("ul",{className:"space-y-3",children:Ol.main.map(t=>E.jsx("li",{children:E.jsx(Lr,{to:t.href,className:"hover:text-white transition-colors",children:t.name})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),E.jsx("ul",{className:"space-y-3",children:Ol.resources.map(t=>E.jsx("li",{children:E.jsxs(Lr,{to:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",children:[E.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),E.jsx("ul",{className:"space-y-3",children:Ol.community.map(t=>E.jsx("li",{children:E.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[E.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),E.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:[E.jsxs("p",{children:["© ",e," Snigdha OS - All rights reserved. Powered by ",E.jsx("b",{className:"text-cornflower-blue",children:"Tonmoy Infrastructure™"})]}),E.jsxs("p",{children:["Developed with ❤️ by ",E.jsx("b",{className:"text-cornflower-blue",children:E.jsx("u",{children:"Snigdha OS Open Source Team."})})]})]})]})})}const Vy="modulepreload",Hy=function(e){return"/"+e},Qa={},Sn=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Hy(u),u in Qa)return;Qa[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":Vy,a||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),a)return new Promise((m,g)=>{d.addEventListener("load",m),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Wy=P.lazy(()=>Sn(()=>import("./Home-DrpWkAZ5.js"),__vite__mapDeps([0,1,2,3,4,5]))),Ky=P.lazy(()=>Sn(()=>import("./About-C7J-jjVK.js"),__vite__mapDeps([6,1,2]))),Gy=P.lazy(()=>Sn(()=>import("./Features-B4dJ7PaG.js"),__vite__mapDeps([7,1,5]))),by=P.lazy(()=>Sn(()=>import("./Download-jWhfsfn3.js"),__vite__mapDeps([8,1,9,4,10]))),qy=P.lazy(()=>Sn(()=>import("./Developers-czZSiP5L.js"),__vite__mapDeps([11,1,10,2,3]))),Yy=P.lazy(()=>Sn(()=>import("./Donate-BlVdwrLT.js"),__vite__mapDeps([12,1,9,2,3]))),Xy=P.lazy(()=>Sn(()=>import("./Gallery-B0cHjmGY.js"),__vite__mapDeps([13,1])));function Zy(){return E.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:E.jsx(Xv,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function Jy(){return E.jsx(P.Suspense,{fallback:E.jsx(Zy,{}),children:E.jsxs(nv,{children:[E.jsx(Et,{path:"/",element:E.jsx(Wy,{})}),E.jsx(Et,{path:"/about",element:E.jsx(Ky,{})}),E.jsx(Et,{path:"/features",element:E.jsx(Gy,{})}),E.jsx(Et,{path:"/download",element:E.jsx(by,{})}),E.jsx(Et,{path:"/developers",element:E.jsx(qy,{})}),E.jsx(Et,{path:"/donate",element:E.jsx(Yy,{})}),E.jsx(Et,{path:"/gallery",element:E.jsx(Xy,{})})]})})}const eg=new Mv({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function tg(){return E.jsx(iy,{children:E.jsx(Fv,{client:eg,children:E.jsx(av,{children:E.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[E.jsx($y,{}),E.jsx("main",{className:"flex-grow pt-16",children:E.jsx(Jy,{})}),E.jsx(Qy,{})]})})})})}cf(document.getElementById("root")).render(E.jsx(P.StrictMode,{children:E.jsx(tg,{})}));export{Qv as B,Hv as D,Wv as G,Kv as H,Lr as L,Io as S,Xv as a,vv as b,se as c,Ta as d,hv as e,sg as f,Cf as g,Nv as h,Do as i,E as j,gv as k,xe as l,kf as m,We as n,ig as o,Ev as p,P as r,rg as s,mv as t,lg as u}; + */const ly=se("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 oy({error:e}){return E.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:E.jsxs("div",{className:"max-w-md w-full p-6 bg-white/80 backdrop-blur-lg rounded-lg shadow-lg",children:[E.jsx("div",{className:"flex items-center justify-center text-red-500 mb-4",children:E.jsx(Bv,{size:48})}),E.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-4",children:"Something went wrong"}),E.jsx("pre",{className:"text-sm bg-gray-100 p-4 rounded overflow-auto",children:e.message}),E.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 iy({children:e}){return E.jsx(Dv,{FallbackComponent:oy,children:e})}function Of(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=cy(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(fu);return s[0]===""&&s.length!==1&&s.shift(),Tf(s,t)||ay(i)},getConflictingClassGroupIds:(i,s)=>{const u=n[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},Tf=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?Tf(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const o=e.join(fu);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Ua=/^\[(.+)\]$/,ay=e=>{if(Ua.test(e)){const t=Ua.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cy=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fy(Object.entries(e.classGroups),n).forEach(([o,i])=>{fs(i,r,o,t)}),r},fs=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const o=l===""?t:$a(t,l);o.classGroupId=n;return}if(typeof l=="function"){if(dy(l)){fs(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([o,i])=>{fs(i,$a(t,o),n,r)})})},$a=(e,t)=>{let n=e;return t.split(fu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dy=e=>e.isThemeGetter,fy=(e,t)=>t?e.map(([n,r])=>{const l=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[n,l]}):e,py=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return l(o,i),i},set(o,i){n.has(o)?n.set(o,i):l(o,i)}}},Lf="!",hy=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],o=t.length,i=s=>{const u=[];let a=0,h=0,d;for(let x=0;xh?d-h:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:i}):i},my=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},vy=e=>({cache:py(e.cacheSize),parseClassName:hy(e),...uy(e)}),yy=/\s+/,gy=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,o=[],i=e.trim().split(yy);let s="";for(let u=i.length-1;u>=0;u-=1){const a=i[u],{modifiers:h,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}=n(a);let w=!!g,v=r(w?m.substring(0,g):m);if(!v){if(!w){s=a+(s.length>0?" "+s:s);continue}if(v=r(m),!v){s=a+(s.length>0?" "+s:s);continue}w=!1}const x=my(h).join(":"),f=d?x+Lf:x,c=f+v;if(o.includes(c))continue;o.push(c);const p=l(v,w);for(let y=0;y0?" "+s:s)}return s};function wy(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(h),e());return n=vy(a),r=n.cache.get,l=n.cache.set,o=s,s(u)}function s(u){const a=r(u);if(a)return a;const h=gy(u,n);return l(u,h),h}return function(){return o(wy.apply(null,arguments))}}const H=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ff=/^\[(?:([a-z-]+):)?(.+)\]$/i,Sy=/^\d+\/\d+$/,ky=new Set(["px","full","screen"]),Ey=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cy=/\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$/,Py=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ny=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Vn(e)||ky.has(e)||Sy.test(e),St=e=>ar(e,"length",Fy),Vn=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>ar(e,"number",Vn),gr=e=>!!e&&Number.isInteger(Number(e)),Ry=e=>e.endsWith("%")&&Vn(e.slice(0,-1)),L=e=>Ff.test(e),kt=e=>Ey.test(e),zy=new Set(["length","size","percentage"]),jy=e=>ar(e,zy,If),Oy=e=>ar(e,"position",If),Ty=new Set(["image","url"]),Ly=e=>ar(e,Ty,Dy),My=e=>ar(e,"",Iy),wr=()=>!0,ar=(e,t,n)=>{const r=Ff.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fy=e=>Cy.test(e)&&!Py.test(e),If=()=>!1,Iy=e=>_y.test(e),Dy=e=>Ny.test(e),Ay=()=>{const e=H("colors"),t=H("spacing"),n=H("blur"),r=H("brightness"),l=H("borderColor"),o=H("borderRadius"),i=H("borderSpacing"),s=H("borderWidth"),u=H("contrast"),a=H("grayscale"),h=H("hueRotate"),d=H("invert"),m=H("gap"),g=H("gradientColorStops"),w=H("gradientColorStopPositions"),v=H("inset"),x=H("margin"),f=H("opacity"),c=H("padding"),p=H("saturate"),y=H("scale"),C=H("sepia"),N=H("skew"),j=H("space"),_=H("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",L,t],$=()=>[L,t],gt=()=>["",it,St],Xt=()=>["auto",Vn,L],cl=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],wt=()=>["solid","dashed","dotted","double","none"],En=()=>["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",L],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Vn,L];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[it,St],blur:["none","",kt,L],brightness:U(),borderColor:[e],borderRadius:["none","","full",kt,L],borderSpacing:$(),borderWidth:gt(),contrast:U(),grayscale:O(),hueRotate:U(),invert:O(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Ry,St],inset:ye(),margin:ye(),opacity:U(),padding:$(),saturate:U(),scale:U(),sepia:O(),skew:U(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[kt]}],"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:[...cl(),L]}],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:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gr,L]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",gr,L]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",gr,L]},L]}],"col-start":[{"col-start":Xt()}],"col-end":[{"col-end":Xt()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[gr,L]},L]}],"row-start":[{"row-start":Xt()}],"row-end":[{"row-end":Xt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],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",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[wr]}],"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",L]}],"line-clamp":[{"line-clamp":["none",Vn,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...wt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",it,St]}],"underline-offset":[{"underline-offset":["auto",it,L]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],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",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...cl(),Oy]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jy]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ly]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[f]}],"border-style":[{border:[...wt(),"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":[f]}],"divide-style":[{divide:wt()}],"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:["",...wt()]}],"outline-offset":[{"outline-offset":[it,L]}],"outline-w":[{outline:[it,St]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[it,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,My]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...En(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":En()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",kt,L]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],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":[d]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gr,L]}],"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",L]}],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",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[it,St,mi]}],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"]}}},Uy=xy(Ay);function Ba(...e){return Uy(sy(e))}function ig(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function sg(e){return`${e} Mbps`}const Qa=[{name:"Home",href:"/",icon:bv},{name:"About",href:"/about",icon:Yv},{name:"Features",href:"/features",icon:ty},{name:"Gallery",href:"/gallery",icon:qv},{name:"Download",href:"/download",icon:Hv},{name:"Developers",href:"/developers",icon:Vv},{name:"Donate",href:"/donate",icon:Kv}];function $y(){return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"32",height:"32",children:[E.jsx("path",{fill:"#6495ed","fill-rule":"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"}),E.jsx("path",{fill:"#6495ed","fill-rule":"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 By(){const[e,t]=P.useState(!1),n=al();return E.jsxs("nav",{className:"fixed w-full z-50 bg-white/80 backdrop-blur-lg border-b border-gray-200",children:[E.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:E.jsxs("div",{className:"flex justify-between h-16",children:[E.jsx("div",{className:"flex",children:E.jsxs(Lr,{to:"/",className:"flex-shrink-0 flex items-center",children:[E.jsx($y,{}),E.jsx("span",{className:"ml-2 text-xl font-bold text-cornflower-blue",children:"Snigdha OS"})]})}),E.jsx("div",{className:"hidden sm:flex sm:items-center sm:space-x-8",children:Qa.map(r=>E.jsxs(Lr,{to:r.href,className:Ba("px-3 py-2 rounded-md text-sm font-medium transition-colors flex items-center gap-2",n.pathname===r.href?"text-cornflower-blue":"text-gray-600 hover:text-cornflower-blue"),children:[E.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))}),E.jsx("div",{className:"flex items-center sm:hidden",children:E.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",children:e?E.jsx(ry,{className:"h-6 w-6"}):E.jsx(Zv,{className:"h-6 w-6"})})})]})}),e&&E.jsx("div",{className:"sm:hidden bg-white/90 backdrop-blur-lg",children:E.jsx("div",{className:"px-2 pt-2 pb-3 space-y-1",children:Qa.map(r=>E.jsxs(Lr,{to:r.href,className:Ba("block px-3 py-2 rounded-md text-base font-medium flex items-center gap-2",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:[E.jsx(r.icon,{className:"h-4 w-4"}),r.name]},r.name))})})]})}const Tl={main:[{name:"Gallery",href:"/gallery"},{name:"Developers",href:"/developers"},{name:"Donate",href:"/donate"}],resources:[{name:"Documentation",href:"/docs",icon:Qv},{name:"Blog",href:"/blog",icon:ey},{name:"Support",href:"/support",icon:Gv}],community:[{name:"Community",href:"/community",icon:Jv},{name:"GitHub",href:"https://github.com/Snigdha-OS",icon:Wv},{name:"Twitter",href:"https://twitter.com/SnigdhaOS",icon:ny},{name:"YouTube",href:"https://youtube.com",icon:ly}]};function Qy(){const e=new Date().getFullYear();return E.jsx("footer",{className:"bg-gray-900 text-gray-300",children:E.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[E.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[E.jsxs("div",{className:"space-y-4",children:[E.jsx("h3",{className:"text-lg font-semibold text-white",children:"Snigdha OS"}),E.jsx("p",{className:"text-sm",children:"The most advanced penetration testing distribution, designed for security professionals and enthusiasts."}),E.jsx("div",{className:"flex space-x-4",children:Tl.community.map(t=>E.jsx("a",{href:t.href,className:"hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:E.jsx(t.icon,{className:"h-5 w-5"})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Navigation"}),E.jsx("ul",{className:"space-y-3",children:Tl.main.map(t=>E.jsx("li",{children:E.jsx(Lr,{to:t.href,className:"hover:text-white transition-colors",children:t.name})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Resources"}),E.jsx("ul",{className:"space-y-3",children:Tl.resources.map(t=>E.jsx("li",{children:E.jsxs(Lr,{to:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",children:[E.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wider mb-4",children:"Community"}),E.jsx("ul",{className:"space-y-3",children:Tl.community.map(t=>E.jsx("li",{children:E.jsxs("a",{href:t.href,className:"flex items-center gap-2 hover:text-white transition-colors",target:"_blank",rel:"noopener noreferrer",children:[E.jsx(t.icon,{className:"h-4 w-4"}),t.name]})},t.name))})]})]}),E.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-800 text-sm text-center",children:[E.jsxs("p",{children:["© ",e," Snigdha OS - All rights reserved. Powered by ",E.jsx("b",{className:"text-cornflower-blue",children:"Tonmoy Infrastructure™"})]}),E.jsxs("p",{children:["Developed with ❤️ by ",E.jsx("b",{className:"text-cornflower-blue",children:E.jsx("u",{children:"Snigdha OS Open Source Team."})})]})]})]})})}const Vy="modulepreload",Hy=function(e){return"/"+e},Va={},kn=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Hy(u),u in Va)return;Va[u]=!0;const a=u.endsWith(".css"),h=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":Vy,a||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),a)return new Promise((m,g)=>{d.addEventListener("load",m),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Wy=P.lazy(()=>kn(()=>import("./assets/Home-B2QkArYy.js"),__vite__mapDeps([0,1,2,3,4,5]))),Ky=P.lazy(()=>kn(()=>import("./assets/About-SZ-ijCmv.js"),__vite__mapDeps([6,1,2]))),Gy=P.lazy(()=>kn(()=>import("./assets/Features-CF7KU7eP.js"),__vite__mapDeps([7,1,5]))),by=P.lazy(()=>kn(()=>import("./assets/Download-DWvMFQZR.js"),__vite__mapDeps([8,1,9,4,10]))),qy=P.lazy(()=>kn(()=>import("./assets/Developers-Ddn1LvUS.js"),__vite__mapDeps([11,1,10,2,3]))),Yy=P.lazy(()=>kn(()=>import("./assets/Donate-D7xndTTD.js"),__vite__mapDeps([12,1,9,2,3]))),Xy=P.lazy(()=>kn(()=>import("./assets/Gallery-DXEfm09p.js"),__vite__mapDeps([13,1])));function Zy(){return E.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:E.jsx(Xv,{className:"h-8 w-8 animate-spin text-cornflower-blue"})})}function Jy(){return E.jsx(kf,{children:E.jsx(P.Suspense,{fallback:E.jsx(Zy,{}),children:E.jsxs(rv,{children:[E.jsx(Et,{path:"/",element:E.jsx(Wy,{})}),E.jsx(Et,{path:"/about",element:E.jsx(Ky,{})}),E.jsx(Et,{path:"/features",element:E.jsx(Gy,{})}),E.jsx(Et,{path:"/download",element:E.jsx(by,{})}),E.jsx(Et,{path:"/developers",element:E.jsx(qy,{})}),E.jsx(Et,{path:"/donate",element:E.jsx(Yy,{})}),E.jsx(Et,{path:"/gallery",element:E.jsx(Xy,{})})]})})})}const eg=new Mv({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function tg(){return E.jsx(iy,{children:E.jsx(Fv,{client:eg,children:E.jsx(kf,{children:E.jsxs("div",{className:"min-h-screen bg-gray-50 font-fira-sans flex flex-col",children:[E.jsx(By,{}),E.jsx("main",{className:"flex-grow pt-16",children:E.jsx(Jy,{})}),E.jsx(Qy,{})]})})})})}df(document.getElementById("root")).render(E.jsx(P.StrictMode,{children:E.jsx(tg,{})}));export{Qv as B,Hv as D,Wv as G,Kv as H,Lr as L,Io as S,Xv as a,vv as b,se as c,Ta as d,hv as e,sg as f,Pf as g,Nv as h,Do as i,E as j,gv as k,xe as l,Ef as m,We as n,ig as o,Ev as p,P as r,rg as s,mv as t,lg as u}; diff --git a/assets/index-swnpZUWI.css b/style.css similarity index 100% rename from assets/index-swnpZUWI.css rename to style.css