(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=s(c);fetch(c.href,d)}})();function fv(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Zr={exports:{}},hl={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var T1;function hv(){if(T1)return hl;T1=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return hl.Fragment=l,hl.jsx=s,hl.jsxs=s,hl}var x1;function dv(){return x1||(x1=1,Zr.exports=hv()),Zr.exports}var S=dv(),Qr={exports:{}},it={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var A1;function mv(){if(A1)return it;A1=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function O(E){return E===null||typeof E!="object"?null:(E=x&&E[x]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,X={};function q(E,B,Z){this.props=E,this.context=B,this.refs=X,this.updater=Z||N}q.prototype.isReactComponent={},q.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,B,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=q.prototype;function L(E,B,Z){this.props=E,this.context=B,this.refs=X,this.updater=Z||N}var $=L.prototype=new G;$.constructor=L,H($,q.prototype),$.isPureReactComponent=!0;var J=Array.isArray;function I(){}var Q={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function St(E,B,Z){var F=Z.ref;return{$$typeof:i,type:E,key:B,ref:F!==void 0?F:null,props:Z}}function Vt(E,B){return St(E.type,B,E.props)}function Kt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Pt(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return B[Z]})}var en=/\/+/g;function ze(E,B){return typeof E=="object"&&E!==null&&E.key!=null?Pt(""+E.key):B.toString(36)}function oe(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(I,I):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function V(E,B,Z,F,at){var ut=typeof E;(ut==="undefined"||ut==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(ut){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case i:case l:vt=!0;break;case v:return vt=E._init,V(vt(E._payload),B,Z,F,at)}}if(vt)return at=at(E),vt=F===""?"."+ze(E,0):F,J(at)?(Z="",vt!=null&&(Z=vt.replace(en,"$&/")+"/"),V(at,B,Z,"",function(Sa){return Sa})):at!=null&&(Kt(at)&&(at=Vt(at,Z+(at.key==null||E&&E.key===at.key?"":(""+at.key).replace(en,"$&/")+"/")+vt)),B.push(at)),1;vt=0;var le=F===""?".":F+":";if(J(E))for(var Ut=0;Ut>>1,mt=V[ct];if(0>>1;ctc(Z,k))Fc(at,Z)?(V[ct]=at,V[F]=k,ct=F):(V[ct]=Z,V[B]=k,ct=B);else if(Fc(at,k))V[ct]=at,V[F]=k,ct=F;else break t}}return U}function c(V,U){var k=V.sortIndex-U.sortIndex;return k!==0?k:V.id-U.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();i.unstable_now=function(){return h.now()-m}}var p=[],y=[],v=1,b=null,x=3,O=!1,N=!1,H=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function $(V){for(var U=s(y);U!==null;){if(U.callback===null)o(y);else if(U.startTime<=V)o(y),U.sortIndex=U.expirationTime,l(p,U);else break;U=s(y)}}function J(V){if(H=!1,$(V),!N)if(s(p)!==null)N=!0,I||(I=!0,Pt());else{var U=s(y);U!==null&&oe(J,U.startTime-V)}}var I=!1,Q=-1,P=5,St=-1;function Vt(){return X?!0:!(i.unstable_now()-StV&&Vt());){var ct=b.callback;if(typeof ct=="function"){b.callback=null,x=b.priorityLevel;var mt=ct(b.expirationTime<=V);if(V=i.unstable_now(),typeof mt=="function"){b.callback=mt,$(V),U=!0;break e}b===s(p)&&o(p),$(V)}else o(p);b=s(p)}if(b!==null)U=!0;else{var E=s(y);E!==null&&oe(J,E.startTime-V),U=!1}}break t}finally{b=null,x=k,O=!1}U=void 0}}finally{U?Pt():I=!1}}}var Pt;if(typeof L=="function")Pt=function(){L(Kt)};else if(typeof MessageChannel<"u"){var en=new MessageChannel,ze=en.port2;en.port1.onmessage=Kt,Pt=function(){ze.postMessage(null)}}else Pt=function(){q(Kt,0)};function oe(V,U){Q=q(function(){V(i.unstable_now())},U)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125ct?(V.sortIndex=k,l(y,V),s(p)===null&&V===s(y)&&(H?(G(Q),Q=-1):H=!0,oe(J,k-ct))):(V.sortIndex=mt,l(p,V),N||O||(N=!0,I||(I=!0,Pt()))),V},i.unstable_shouldYield=Vt,i.unstable_wrapCallback=function(V){var U=x;return function(){var k=x;x=U;try{return V.apply(this,arguments)}finally{x=k}}}})(Fr)),Fr}var C1;function yv(){return C1||(C1=1,Jr.exports=pv()),Jr.exports}var kr={exports:{}},ie={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var D1;function gv(){if(D1)return ie;D1=1;var i=wc();function l(p){var y="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),kr.exports=gv(),kr.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var j1;function Sv(){if(j1)return dl;j1=1;var i=yv(),l=wc(),s=vv();function o(t){var e="https://react.dev/errors/"+t;if(1mt||(t.current=ct[mt],ct[mt]=null,mt--)}function Z(t,e){mt++,ct[mt]=t.current,t.current=e}var F=E(null),at=E(null),ut=E(null),vt=E(null);function le(t,e){switch(Z(ut,e),Z(at,t),Z(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Zm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Zm(e),t=Qm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(F),Z(F,t)}function Ut(){B(F),B(at),B(ut)}function Sa(t){t.memoizedState!==null&&Z(vt,t);var e=F.current,n=Qm(e,t.type);e!==n&&(Z(at,t),Z(F,n))}function Nl(t){at.current===t&&(B(F),B(at)),vt.current===t&&(B(vt),ol._currentValue=k)}var Mu,bf;function Wn(t){if(Mu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Mu=e&&e[1]||"",bf=-1)":-1u||T[a]!==D[u]){var R=` `+T[a].replace(" at new "," at ");return t.displayName&&R.includes("")&&(R=R.replace("",t.displayName)),R}while(1<=a&&0<=u);break}}}finally{Cu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Wn(n):""}function Gp(t,e){switch(t.tag){case 26:case 27:case 5:return Wn(t.type);case 16:return Wn("Lazy");case 13:return t.child!==e&&e!==null?Wn("Suspense Fallback"):Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return Du(t.type,!1);case 11:return Du(t.type.render,!1);case 1:return Du(t.type,!0);case 31:return Wn("Activity");default:return""}}function Tf(t){try{var e="",n=null;do e+=Gp(t,n),n=t,t=t.return;while(t);return e}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var zu=Object.prototype.hasOwnProperty,ju=i.unstable_scheduleCallback,Ou=i.unstable_cancelCallback,Xp=i.unstable_shouldYield,Zp=i.unstable_requestPaint,ve=i.unstable_now,Qp=i.unstable_getCurrentPriorityLevel,xf=i.unstable_ImmediatePriority,Af=i.unstable_UserBlockingPriority,_l=i.unstable_NormalPriority,Kp=i.unstable_LowPriority,Ef=i.unstable_IdlePriority,Jp=i.log,Fp=i.unstable_setDisableYieldValue,ba=null,Se=null;function xn(t){if(typeof Jp=="function"&&Fp(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(ba,t)}catch{}}var be=Math.clz32?Math.clz32:Pp,kp=Math.log,Wp=Math.LN2;function Pp(t){return t>>>=0,t===0?32:31-(kp(t)/Wp|0)|0}var wl=256,Bl=262144,Ul=4194304;function Pn(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Hl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var g=a&134217727;return g!==0?(a=g&~r,a!==0?u=Pn(a):(f&=g,f!==0?u=Pn(f):n||(n=g&~t,n!==0&&(u=Pn(n))))):(g=a&~r,g!==0?u=Pn(g):f!==0?u=Pn(f):n||(n=a&~t,n!==0&&(u=Pn(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function Ta(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function $p(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mf(){var t=Ul;return Ul<<=1,(Ul&62914560)===0&&(Ul=4194304),t}function Ru(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function xa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ip(t,e,n,a,u,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(n=f&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ly=/[\n"\\]/g;function Oe(t){return t.replace(ly,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Uu(t,e,n,a,u,r,f,g){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Hu(t,f,je(e)):n!=null?Hu(t,f,je(n)):a!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+je(g):t.removeAttribute("name")}function Hf(t,e,n,a,u,r,f,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Bu(t);return}n=n!=null?""+je(n):"",e=e!=null?""+je(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=g?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Bu(t)}function Hu(t,e,n){e==="number"&&ql(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Di(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xu=!1;if(ln)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Xu=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Xu=!1}var En=null,Zu=null,Xl=null;function Qf(){if(Xl)return Xl;var t,e=Zu,n=e.length,a,u="value"in En?En.value:En.textContent,r=u.length;for(t=0;t=ja),Pf=" ",$f=!1;function If(t,e){switch(t){case"keyup":return Ny.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ri=!1;function wy(t,e){switch(t){case"compositionend":return th(e);case"keypress":return e.which!==32?null:($f=!0,Pf);case"textInput":return t=e.data,t===Pf&&$f?null:t;default:return null}}function By(t,e){if(Ri)return t==="compositionend"||!ku&&If(t,e)?(t=Qf(),Xl=Zu=En=null,Ri=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=oh(n)}}function ch(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ch(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ql(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ql(t.document)}return e}function $u(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Zy=ln&&"documentMode"in document&&11>=document.documentMode,Vi=null,Iu=null,Na=null,to=!1;function hh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||Vi==null||Vi!==ql(a)||(a=Vi,"selectionStart"in a&&$u(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Na&&Va(Na,a)||(Na=a,a=Bs(Iu,"onSelect"),0>=f,u-=f,Fe=1<<32-be(e)+u|n<st?(ht=W,W=null):ht=W.sibling;var yt=z(M,W,C[st],_);if(yt===null){W===null&&(W=ht);break}t&&W&&yt.alternate===null&&e(M,W),A=r(yt,A,st),pt===null?tt=yt:pt.sibling=yt,pt=yt,W=ht}if(st===C.length)return n(M,W),dt&&un(M,st),tt;if(W===null){for(;stst?(ht=W,W=null):ht=W.sibling;var Kn=z(M,W,yt.value,_);if(Kn===null){W===null&&(W=ht);break}t&&W&&Kn.alternate===null&&e(M,W),A=r(Kn,A,st),pt===null?tt=Kn:pt.sibling=Kn,pt=Kn,W=ht}if(yt.done)return n(M,W),dt&&un(M,st),tt;if(W===null){for(;!yt.done;st++,yt=C.next())yt=w(M,yt.value,_),yt!==null&&(A=r(yt,A,st),pt===null?tt=yt:pt.sibling=yt,pt=yt);return dt&&un(M,st),tt}for(W=a(W);!yt.done;st++,yt=C.next())yt=j(W,M,st,yt.value,_),yt!==null&&(t&&yt.alternate!==null&&W.delete(yt.key===null?st:yt.key),A=r(yt,A,st),pt===null?tt=yt:pt.sibling=yt,pt=yt);return t&&W.forEach(function(cv){return e(M,cv)}),dt&&un(M,st),tt}function Mt(M,A,C,_){if(typeof C=="object"&&C!==null&&C.type===H&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case O:t:{for(var tt=C.key;A!==null;){if(A.key===tt){if(tt=C.type,tt===H){if(A.tag===7){n(M,A.sibling),_=u(A,C.props.children),_.return=M,M=_;break t}}else if(A.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===P&&oi(tt)===A.type){n(M,A.sibling),_=u(A,C.props),La(_,C),_.return=M,M=_;break t}n(M,A);break}else e(M,A);A=A.sibling}C.type===H?(_=ii(C.props.children,M.mode,_,C.key),_.return=M,M=_):(_=Il(C.type,C.key,C.props,null,M.mode,_),La(_,C),_.return=M,M=_)}return f(M);case N:t:{for(tt=C.key;A!==null;){if(A.key===tt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(M,A.sibling),_=u(A,C.children||[]),_.return=M,M=_;break t}else{n(M,A);break}else e(M,A);A=A.sibling}_=uo(C,M.mode,_),_.return=M,M=_}return f(M);case P:return C=oi(C),Mt(M,A,C,_)}if(oe(C))return K(M,A,C,_);if(Pt(C)){if(tt=Pt(C),typeof tt!="function")throw Error(o(150));return C=tt.call(C),et(M,A,C,_)}if(typeof C.then=="function")return Mt(M,A,ss(C),_);if(C.$$typeof===L)return Mt(M,A,ns(M,C),_);us(M,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(M,A.sibling),_=u(A,C),_.return=M,M=_):(n(M,A),_=so(C,M.mode,_),_.return=M,M=_),f(M)):n(M,A)}return function(M,A,C,_){try{Ha=0;var tt=Mt(M,A,C,_);return Xi=null,tt}catch(W){if(W===Gi||W===as)throw W;var pt=xe(29,W,null,M.mode);return pt.lanes=_,pt.return=M,pt}finally{}}}var ci=wh(!0),Bh=wh(!1),jn=!1;function bo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function To(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function On(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(gt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=$l(t),Sh(t,null,n),e}return Pl(t,a,e,n),$l(t)}function Ya(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Df(t,n)}}function xo(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ao=!1;function qa(){if(Ao){var t=qi;if(t!==null)throw t}}function Ga(t,e,n,a){Ao=!1;var u=t.updateQueue;jn=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var T=g,D=T.next;T.next=null,f===null?r=D:f.next=D,f=T;var R=t.alternate;R!==null&&(R=R.updateQueue,g=R.lastBaseUpdate,g!==f&&(g===null?R.firstBaseUpdate=D:g.next=D,R.lastBaseUpdate=T))}if(r!==null){var w=u.baseState;f=0,R=D=T=null,g=r;do{var z=g.lane&-536870913,j=z!==g.lane;if(j?(ft&z)===z:(a&z)===z){z!==0&&z===Yi&&(Ao=!0),R!==null&&(R=R.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var K=t,et=g;z=e;var Mt=n;switch(et.tag){case 1:if(K=et.payload,typeof K=="function"){w=K.call(Mt,w,z);break t}w=K;break t;case 3:K.flags=K.flags&-65537|128;case 0:if(K=et.payload,z=typeof K=="function"?K.call(Mt,w,z):K,z==null)break t;w=b({},w,z);break t;case 2:jn=!0}}z=g.callback,z!==null&&(t.flags|=64,j&&(t.flags|=8192),j=u.callbacks,j===null?u.callbacks=[z]:j.push(z))}else j={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},R===null?(D=R=j,T=w):R=R.next=j,f|=z;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;j=g,g=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);R===null&&(T=w),u.baseState=T,u.firstBaseUpdate=D,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),Bn|=f,t.lanes=f,t.memoizedState=w}}function Uh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Hh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tr?r:8;var f=V.T,g={};V.T=g,Go(t,!1,e,n);try{var T=u(),D=V.S;if(D!==null&&D(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var R=Iy(T,a);Qa(t,e,R,De(t))}else Qa(t,e,a,De(t))}catch(w){Qa(t,e,{then:function(){},status:"rejected",reason:w},De())}finally{U.p=r,f!==null&&g.types!==null&&(f.types=g.types),V.T=f}}function lg(){}function Yo(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=yd(t).queue;pd(t,u,e,k,n===null?lg:function(){return gd(t),n(a)})}function yd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:k},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gd(t){var e=yd(t);e.next===null&&(e=t.alternate.memoizedState),Qa(t,e.next.queue,{},De())}function qo(){return te(ol)}function vd(){return Lt().memoizedState}function Sd(){return Lt().memoizedState}function sg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=On(n);var a=Rn(e,t,n);a!==null&&(pe(a,e,n),Ya(a,e,n)),e={cache:yo()},t.payload=e;return}e=e.return}}function ug(t,e,n){var a=De();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gs(t)?Td(e,n):(n=ao(t,e,n,a),n!==null&&(pe(n,t,a),xd(n,e,a)))}function bd(t,e,n){var a=De();Qa(t,e,n,a)}function Qa(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gs(t))Td(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,g=r(f,n);if(u.hasEagerState=!0,u.eagerState=g,Te(g,f))return Pl(t,e,u,0),Ct===null&&Wl(),!1}catch{}finally{}if(n=ao(t,e,u,a),n!==null)return pe(n,t,a),xd(n,e,a),!0}return!1}function Go(t,e,n,a){if(a={lane:2,revertLane:br(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gs(t)){if(e)throw Error(o(479))}else e=ao(t,n,a,2),e!==null&&pe(e,t,2)}function gs(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function Td(t,e){Qi=cs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function xd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Df(t,n)}}var Ka={readContext:te,use:ds,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};Ka.useEffectEvent=Nt;var Ad={readContext:te,use:ds,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:sd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ps(4194308,4,cd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ps(4194308,4,t,e)},useInsertionEffect:function(t,e){ps(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var a=t();if(fi){xn(!0);try{t()}finally{xn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=se();if(n!==void 0){var u=n(e);if(fi){xn(!0);try{n(e)}finally{xn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=ug.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=wo(t);var e=t.queue,n=bd.bind(null,lt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ho,useDeferredValue:function(t,e){var n=se();return Lo(n,t,e)},useTransition:function(){var t=wo(!1);return t=pd.bind(null,lt,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=lt,u=se();if(dt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ct===null)throw Error(o(349));(ft&127)!==0||Zh(a,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,sd(Kh.bind(null,a,r,t),[t]),a.flags|=2048,Ji(9,{destroy:void 0},Qh.bind(null,a,r,n,e),null),n},useId:function(){var t=se(),e=Ct.identifierPrefix;if(dt){var n=ke,a=Fe;n=(a&~(1<<32-be(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=fs++,0<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}r[$t]=e,r[re]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ne(r,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&dn(e)}}return jt(e),nr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&dn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ut.current,Hi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=It,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[$t]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Gm(t.nodeValue,n)),t||Dn(e,!0)}else t=Us(t).createTextNode(a),t[$t]=e,e.stateNode=t}return jt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Hi(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else n=fo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ee(e),e):(Ee(e),null);if((e.flags&128)!==0)throw Error(o(558))}return jt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Hi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),u=!1}else u=fo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ee(e),e):(Ee(e),null)}return Ee(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),xs(e,e.updateQueue),jt(e),null);case 4:return Ut(),t===null&&Er(e.stateNode.containerInfo),jt(e),null;case 10:return rn(e.type),jt(e),null;case 19:if(B(Ht),a=e.memoizedState,a===null)return jt(e),null;if(u=(e.flags&128)!==0,r=a.rendering,r===null)if(u)Fa(a,!1);else{if(_t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=rs(t),r!==null){for(e.flags|=128,Fa(a,!1),t=r.updateQueue,e.updateQueue=t,xs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)bh(n,t),n=n.sibling;return Z(Ht,Ht.current&1|2),dt&&un(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ve()>Ds&&(e.flags|=128,u=!0,Fa(a,!1),e.lanes=4194304)}else{if(!u)if(t=rs(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,xs(e,t),Fa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!dt)return jt(e),null}else 2*ve()-a.renderingStartTime>Ds&&n!==536870912&&(e.flags|=128,u=!0,Fa(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,n=Ht.current,Z(Ht,u?n&1|2:n&1),dt&&un(e,a.treeForkCount),t):(jt(e),null);case 22:case 23:return Ee(e),Mo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&xs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&B(ui),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(qt),jt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function hg(t,e){switch(ro(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return rn(qt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Nl(e),null;case 31:if(e.memoizedState!==null){if(Ee(e),e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ee(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Ht),null;case 4:return Ut(),null;case 10:return rn(e.type),null;case 22:case 23:return Ee(e),Mo(),t!==null&&B(ui),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(qt),null;case 25:return null;default:return null}}function Jd(t,e){switch(ro(e),e.tag){case 3:rn(qt),Ut();break;case 26:case 27:case 5:Nl(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&Ee(e);break;case 13:Ee(e);break;case 19:B(Ht);break;case 10:rn(e.type);break;case 22:case 23:Ee(e),Mo(),t!==null&&B(ui);break;case 24:rn(qt)}}function ka(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==u)}}catch(g){Tt(e,e.return,g)}}function _n(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&t)===t){var f=a.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,u=e;var T=n,D=g;try{D()}catch(R){Tt(u,T,R)}}}a=a.next}while(a!==r)}}catch(R){Tt(e,e.return,R)}}function Fd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hh(e,n)}catch(a){Tt(t,t.return,a)}}}function kd(t,e,n){n.props=hi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Tt(t,e,a)}}function Wa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Tt(t,e,u)}}function We(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Tt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Tt(t,e,u)}else n.current=null}function Wd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Tt(t,t.return,u)}}function ir(t,e,n){try{var a=t.stateNode;_g(a,t.type,n,e),a[re]=e}catch(u){Tt(t,t.return,u)}}function Pd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qn(t.type)||t.tag===4}function ar(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Pd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&qn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function lr(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=an));else if(a!==4&&(a===27&&qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(lr(t,e,n),t=t.sibling;t!==null;)lr(t,e,n),t=t.sibling}function As(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(As(t,e,n),t=t.sibling;t!==null;)As(t,e,n),t=t.sibling}function $d(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ne(e,a,n),e[$t]=t,e[re]=n}catch(r){Tt(t,t.return,r)}}var mn=!1,Zt=!1,sr=!1,Id=typeof WeakSet=="function"?WeakSet:Set,kt=null;function dg(t,e){if(t=t.containerInfo,Dr=Zs,t=fh(t),$u(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,g=-1,T=-1,D=0,R=0,w=t,z=null;e:for(;;){for(var j;w!==n||u!==0&&w.nodeType!==3||(g=f+u),w!==r||a!==0&&w.nodeType!==3||(T=f+a),w.nodeType===3&&(f+=w.nodeValue.length),(j=w.firstChild)!==null;)z=w,w=j;for(;;){if(w===t)break e;if(z===n&&++D===u&&(g=f),z===r&&++R===a&&(T=f),(j=w.nextSibling)!==null)break;w=z,z=w.parentNode}w=j}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(zr={focusedElem:t,selectionRange:n},Zs=!1,kt=e;kt!==null;)if(e=kt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,kt=t;else for(;kt!==null;){switch(e=kt,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),ne(r,a,n),r[$t]=t,Ft(r),a=r;break t;case"link":var f=l1("link","href",u).get(a+(n.href||""));if(f){for(var g=0;gMt&&(f=Mt,Mt=et,et=f);var M=rh(g,et),A=rh(g,Mt);if(M&&A&&(j.rangeCount!==1||j.anchorNode!==M.node||j.anchorOffset!==M.offset||j.focusNode!==A.node||j.focusOffset!==A.offset)){var C=w.createRange();C.setStart(M.node,M.offset),j.removeAllRanges(),et>Mt?(j.addRange(C),j.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),j.addRange(C))}}}}for(w=[],j=g;j=j.parentNode;)j.nodeType===1&&w.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;gn?32:n,V.T=null,n=dr,dr=null;var r=Hn,f=Sn;if(Jt=0,$i=Hn=null,Sn=0,(gt&6)!==0)throw Error(o(331));var g=gt;if(gt|=4,cm(r.current),um(r,r.current,f,n),gt=g,nl(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(ba,r)}catch{}return!0}finally{U.p=u,V.T=a,zm(t,e)}}function Om(t,e,n){e=Ve(n,e),e=Ko(t.stateNode,e,2),t=Rn(t,e,2),t!==null&&(xa(t,2),Pe(t))}function Tt(t,e,n){if(t.tag===3)Om(t,t,n);else for(;e!==null;){if(e.tag===3){Om(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Un===null||!Un.has(a))){t=Ve(n,t),n=Rd(2),a=Rn(e,n,2),a!==null&&(Vd(n,a,e,t),xa(a,2),Pe(a));break}}e=e.return}}function gr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new yg;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(rr=!0,u.add(n),t=Tg.bind(null,t,e,n),e.then(t,t))}function Tg(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ft&n)===n&&(_t===4||_t===3&&(ft&62914560)===ft&&300>ve()-Cs?(gt&2)===0&&Ii(t,0):cr|=n,Pi===ft&&(Pi=0)),Pe(t)}function Rm(t,e){e===0&&(e=Mf()),t=ni(t,e),t!==null&&(xa(t,e),Pe(t))}function xg(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Rm(t,n)}function Ag(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Rm(t,n)}function Eg(t,e){return ju(t,e)}var Ns=null,ea=null,vr=!1,_s=!1,Sr=!1,Yn=0;function Pe(t){t!==ea&&t.next===null&&(ea===null?Ns=ea=t:ea=ea.next=t),_s=!0,vr||(vr=!0,Cg())}function nl(t,e){if(!Sr&&_s){Sr=!0;do for(var n=!1,a=Ns;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var r=0;else{var f=a.suspendedLanes,g=a.pingedLanes;r=(1<<31-be(42|t)+1)-1,r&=u&~(f&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,wm(a,r))}else r=ft,r=Hl(a,a===Ct?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Ta(a,r)||(n=!0,wm(a,r));a=a.next}while(n);Sr=!1}}function Mg(){Vm()}function Vm(){_s=vr=!1;var t=0;Yn!==0&&Bg()&&(t=Yn);for(var e=ve(),n=null,a=Ns;a!==null;){var u=a.next,r=Nm(a,e);r===0?(a.next=null,n===null?Ns=u:n.next=u,u===null&&(ea=n)):(n=a,(t!==0||(r&3)!==0)&&(_s=!0)),a=u}Jt!==0&&Jt!==5||nl(t),Yn!==0&&(Yn=0)}function Nm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0g)break;var R=T.transferSize,w=T.initiatorType;R&&Xm(w)&&(T=T.responseEnd,f+=R*(T"u"?null:document;function e1(t,e,n){var a=na;if(a&&typeof e=="string"&&e){var u=Oe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),t1.has(u)||(t1.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Qg(t){bn.D(t),e1("dns-prefetch",t,null)}function Kg(t,e){bn.C(t,e),e1("preconnect",t,e)}function Jg(t,e,n){bn.L(t,e,n);var a=na;if(a&&t&&e){var u='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Oe(n.imageSizes)+'"]')):u+='[href="'+Oe(t)+'"]';var r=u;switch(e){case"style":r=ia(t);break;case"script":r=aa(t)}He.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),He.set(r,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(sl(r))||e==="script"&&a.querySelector(ul(r))||(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Fg(t,e){bn.m(t,e);var n=na;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',r=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=aa(t)}if(!He.has(r)&&(t=b({rel:"modulepreload",href:t},e),He.set(r,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ul(r)))return}a=n.createElement("link"),ne(a,"link",t),Ft(a),n.head.appendChild(a)}}}function kg(t,e,n){bn.S(t,e,n);var a=na;if(a&&t){var u=Mi(a).hoistableStyles,r=ia(t);e=e||"default";var f=u.get(r);if(!f){var g={loading:0,preload:null};if(f=a.querySelector(sl(r)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=He.get(r))&&wr(t,n);var T=f=a.createElement("link");Ft(T),ne(T,"link",t),T._p=new Promise(function(D,R){T.onload=D,T.onerror=R}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ls(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:g},u.set(r,f)}}}function Wg(t,e){bn.X(t,e);var n=na;if(n&&t){var a=Mi(n).hoistableScripts,u=aa(t),r=a.get(u);r||(r=n.querySelector(ul(u)),r||(t=b({src:t,async:!0},e),(e=He.get(u))&&Br(t,e),r=n.createElement("script"),Ft(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Pg(t,e){bn.M(t,e);var n=na;if(n&&t){var a=Mi(n).hoistableScripts,u=aa(t),r=a.get(u);r||(r=n.querySelector(ul(u)),r||(t=b({src:t,async:!0,type:"module"},e),(e=He.get(u))&&Br(t,e),r=n.createElement("script"),Ft(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function n1(t,e,n,a){var u=(u=ut.current)?Hs(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ia(n.href),n=Mi(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ia(n.href);var r=Mi(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(sl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),He.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},He.set(t,n),r||$g(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=aa(n),n=Mi(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ia(t){return'href="'+Oe(t)+'"'}function sl(t){return'link[rel="stylesheet"]['+t+"]"}function i1(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function $g(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",n),Ft(e),t.head.appendChild(e))}function aa(t){return'[src="'+Oe(t)+'"]'}function ul(t){return"script[async]"+t}function a1(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(a)return e.instance=a,Ft(a),a;var u=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ne(a,"style",u),Ls(a,n.precedence,t),e.instance=a;case"stylesheet":u=ia(n.href);var r=t.querySelector(sl(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;a=i1(n),(u=He.get(u))&&wr(a,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var f=r;return f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),ne(r,"link",a),e.state.loading|=4,Ls(r,n.precedence,t),e.instance=r;case"script":return r=aa(n.src),(u=t.querySelector(ul(r)))?(e.instance=u,Ft(u),u):(a=n,(u=He.get(r))&&(a=b({},n),Br(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),ne(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Ls(a,n.precedence,t));return e.instance}function Ls(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,r=u,f=0;f title"):null)}function Ig(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function u1(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function tv(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=ia(a.href),r=e.querySelector(sl(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=qs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Ft(r);return}r=e.ownerDocument||e,a=i1(a),(u=He.get(u))&&wr(a,u),r=r.createElement("link"),Ft(r);var f=r;f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),ne(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=qs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ur=0;function ev(t,e){return t.stylesheets&&t.count===0&&Xs(t,t.stylesheets),0Ur?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Gs=null;function Xs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Gs=new Map,e.forEach(nv,t),Gs=null,qs.call(t))}function nv(t,e){if(!(e.state.loading&4)){var n=Gs.get(t);if(n)var a=n.get(null);else{n=new Map,Gs.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Kr.exports=Sv(),Kr.exports}var Tv=bv();const Bc=Y.createContext({});function pa(i){const l=Y.useRef(null);return l.current===null&&(l.current=i()),l.current}const Uc=typeof window<"u",Su=Uc?Y.useLayoutEffect:Y.useEffect,bu=Y.createContext(null);function Hc(i,l){i.indexOf(l)===-1&&i.push(l)}function Lc(i,l){const s=i.indexOf(l);s>-1&&i.splice(s,1)}const tn=(i,l,s)=>s>l?l:s{};const Tn={},e2=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function n2(i){return typeof i=="object"&&i!==null}const i2=i=>/^0[^.\s]+$/u.test(i);function Yc(i){let l;return()=>(l===void 0&&(l=i()),l)}const ge=i=>i,xv=(i,l)=>s=>l(i(s)),jl=(...i)=>i.reduce(xv),da=(i,l,s)=>{const o=l-i;return o===0?1:(s-i)/o};class qc{constructor(){this.subscriptions=[]}add(l){return Hc(this.subscriptions,l),()=>Lc(this.subscriptions,l)}notify(l,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,s,o);else for(let d=0;di*1e3,qe=i=>i/1e3;function Gc(i,l){return l?i*(1e3/l):0}const a2=(i,l,s)=>(((1-3*s+3*l)*i+(3*s-6*l))*i+3*l)*i,Av=1e-7,Ev=12;function Mv(i,l,s,o,c){let d,h,m=0;do h=l+(s-l)/2,d=a2(h,o,c)-i,d>0?s=h:l=h;while(Math.abs(d)>Av&&++mMv(d,0,1,i,s);return d=>d===0||d===1?d:a2(c(d),l,o)}const l2=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,s2=i=>l=>1-i(1-l),u2=Ol(.33,1.53,.69,.99),Xc=s2(u2),o2=l2(Xc),r2=i=>(i*=2)<1?.5*Xc(i):.5*(2-Math.pow(2,-10*(i-1))),Zc=i=>1-Math.sin(Math.acos(i)),c2=s2(Zc),f2=l2(Zc),Cv=Ol(.42,0,1,1),Dv=Ol(0,0,.58,1),h2=Ol(.42,0,.58,1),zv=i=>Array.isArray(i)&&typeof i[0]!="number",d2=i=>Array.isArray(i)&&typeof i[0]=="number",jv={linear:ge,easeIn:Cv,easeInOut:h2,easeOut:Dv,circIn:Zc,circInOut:f2,circOut:c2,backIn:Xc,backInOut:o2,backOut:u2,anticipate:r2},Ov=i=>typeof i=="string",R1=i=>{if(d2(i)){Al(i.length===4);const[l,s,o,c]=i;return Ol(l,s,o,c)}else if(Ov(i))return jv[i];return i},Ps=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rv(i,l){let s=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(v){h.has(v)&&(y.schedule(v),i()),v(m)}const y={schedule:(v,b=!1,x=!1)=>{const N=x&&c?s:o;return b&&h.add(v),N.has(v)||N.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0,[s,o]=[o,s],s.forEach(p),s.clear(),c=!1,d&&(d=!1,y.process(v))}};return y}const Vv=40;function m2(i,l){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,h=Ps.reduce((L,$)=>(L[$]=Rv(d),L),{}),{setup:m,read:p,resolveKeyframes:y,preUpdate:v,update:b,preRender:x,render:O,postRender:N}=h,H=()=>{const L=Tn.useManualTiming?c.timestamp:performance.now();s=!1,Tn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(L-c.timestamp,Vv),1)),c.timestamp=L,c.isProcessing=!0,m.process(c),p.process(c),y.process(c),v.process(c),b.process(c),x.process(c),O.process(c),N.process(c),c.isProcessing=!1,s&&l&&(o=!1,i(H))},X=()=>{s=!0,o=!0,c.isProcessing||i(H)};return{schedule:Ps.reduce((L,$)=>{const J=h[$];return L[$]=(I,Q=!1,P=!1)=>(s||X(),J.schedule(I,Q,P)),L},{}),cancel:L=>{for(let $=0;$(au===void 0&&ye.set(Wt.isProcessing||Tn.useManualTiming?Wt.timestamp:performance.now()),au),set:i=>{au=i,queueMicrotask(Nv)}},p2=i=>l=>typeof l=="string"&&l.startsWith(i),Qc=p2("--"),_v=p2("var(--"),Kc=i=>_v(i)?wv.test(i.split("/*")[0].trim()):!1,wv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ya={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},El={...ya,transform:i=>tn(0,1,i)},$s={...ya,default:1},gl=i=>Math.round(i*1e5)/1e5,Jc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bv(i){return i==null}const Uv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fc=(i,l)=>s=>!!(typeof s=="string"&&Uv.test(s)&&s.startsWith(i)||l&&!Bv(s)&&Object.prototype.hasOwnProperty.call(s,l)),y2=(i,l,s)=>o=>{if(typeof o!="string")return o;const[c,d,h,m]=o.match(Jc);return{[i]:parseFloat(c),[l]:parseFloat(d),[s]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},Hv=i=>tn(0,255,i),Pr={...ya,transform:i=>Math.round(Hv(i))},gi={test:Fc("rgb","red"),parse:y2("red","green","blue"),transform:({red:i,green:l,blue:s,alpha:o=1})=>"rgba("+Pr.transform(i)+", "+Pr.transform(l)+", "+Pr.transform(s)+", "+gl(El.transform(o))+")"};function Lv(i){let l="",s="",o="",c="";return i.length>5?(l=i.substring(1,3),s=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),s=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,s+=s,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const hc={test:Fc("#"),parse:Lv,transform:gi.transform},Rl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Jn=Rl("deg"),Ie=Rl("%"),nt=Rl("px"),Yv=Rl("vh"),qv=Rl("vw"),V1={...Ie,parse:i=>Ie.parse(i)/100,transform:i=>Ie.transform(i*100)},sa={test:Fc("hsl","hue"),parse:y2("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:s,alpha:o=1})=>"hsla("+Math.round(i)+", "+Ie.transform(gl(l))+", "+Ie.transform(gl(s))+", "+gl(El.transform(o))+")"},Qt={test:i=>gi.test(i)||hc.test(i)||sa.test(i),parse:i=>gi.test(i)?gi.parse(i):sa.test(i)?sa.parse(i):hc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?gi.transform(i):sa.transform(i),getAnimatableNone:i=>{const l=Qt.parse(i);return l.alpha=0,Qt.transform(l)}},Gv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xv(i){return isNaN(i)&&typeof i=="string"&&(i.match(Jc)?.length||0)+(i.match(Gv)?.length||0)>0}const g2="number",v2="color",Zv="var",Qv="var(",N1="${}",Kv=/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 Ml(i){const l=i.toString(),s=[],o={color:[],number:[],var:[]},c=[];let d=0;const m=l.replace(Kv,p=>(Qt.test(p)?(o.color.push(d),c.push(v2),s.push(Qt.parse(p))):p.startsWith(Qv)?(o.var.push(d),c.push(Zv),s.push(p)):(o.number.push(d),c.push(g2),s.push(parseFloat(p))),++d,N1)).split(N1);return{values:s,split:m,indexes:o,types:c}}function S2(i){return Ml(i).values}function b2(i){const{split:l,types:s}=Ml(i),o=l.length;return c=>{let d="";for(let h=0;htypeof i=="number"?0:Qt.test(i)?Qt.getAnimatableNone(i):i;function Fv(i){const l=S2(i);return b2(i)(l.map(Jv))}const Fn={test:Xv,parse:S2,createTransformer:b2,getAnimatableNone:Fv};function $r(i,l,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(l-i)*6*s:s<1/2?l:s<2/3?i+(l-i)*(2/3-s)*6:i}function kv({hue:i,saturation:l,lightness:s,alpha:o}){i/=360,l/=100,s/=100;let c=0,d=0,h=0;if(!l)c=d=h=s;else{const m=s<.5?s*(1+l):s+l-s*l,p=2*s-m;c=$r(p,m,i+1/3),d=$r(p,m,i),h=$r(p,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function fu(i,l){return s=>s>0?l:i}const Rt=(i,l,s)=>i+(l-i)*s,Ir=(i,l,s)=>{const o=i*i,c=s*(l*l-o)+o;return c<0?0:Math.sqrt(c)},Wv=[hc,gi,sa],Pv=i=>Wv.find(l=>l.test(i));function _1(i){const l=Pv(i);if(!l)return!1;let s=l.parse(i);return l===sa&&(s=kv(s)),s}const w1=(i,l)=>{const s=_1(i),o=_1(l);if(!s||!o)return fu(i,l);const c={...s};return d=>(c.red=Ir(s.red,o.red,d),c.green=Ir(s.green,o.green,d),c.blue=Ir(s.blue,o.blue,d),c.alpha=Rt(s.alpha,o.alpha,d),gi.transform(c))},dc=new Set(["none","hidden"]);function $v(i,l){return dc.has(i)?s=>s<=0?i:l:s=>s>=1?l:i}function Iv(i,l){return s=>Rt(i,l,s)}function kc(i){return typeof i=="number"?Iv:typeof i=="string"?Kc(i)?fu:Qt.test(i)?w1:n4:Array.isArray(i)?T2:typeof i=="object"?Qt.test(i)?w1:t4:fu}function T2(i,l){const s=[...i],o=s.length,c=i.map((d,h)=>kc(d)(d,l[h]));return d=>{for(let h=0;h{for(const d in o)s[d]=o[d](c);return s}}function e4(i,l){const s=[],o={color:0,var:0,number:0};for(let c=0;c{const s=Fn.createTransformer(l),o=Ml(i),c=Ml(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?dc.has(i)&&!c.values.length||dc.has(l)&&!o.values.length?$v(i,l):jl(T2(e4(o,c),c.values),s):fu(i,l)};function x2(i,l,s){return typeof i=="number"&&typeof l=="number"&&typeof s=="number"?Rt(i,l,s):kc(i)(i,l)}const i4=i=>{const l=({timestamp:s})=>i(s);return{start:(s=!0)=>xt.update(l,s),stop:()=>Je(l),now:()=>Wt.isProcessing?Wt.timestamp:ye.now()}},A2=(i,l,s=10)=>{let o="";const c=Math.max(Math.round(l/s),2);for(let d=0;d=hu?1/0:l}function a4(i,l=100,s){const o=s({...i,keyframes:[0,l]}),c=Math.min(Wc(o),hu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:qe(c)}}const l4=5;function E2(i,l,s){const o=Math.max(l-l4,0);return Gc(s-i(o),l-o)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tc=.001;function s4({duration:i=wt.duration,bounce:l=wt.bounce,velocity:s=wt.velocity,mass:o=wt.mass}){let c,d,h=1-l;h=tn(wt.minDamping,wt.maxDamping,h),i=tn(wt.minDuration,wt.maxDuration,qe(i)),h<1?(c=y=>{const v=y*h,b=v*i,x=v-s,O=mc(y,h),N=Math.exp(-b);return tc-x/O*N},d=y=>{const b=y*h*i,x=b*s+s,O=Math.pow(h,2)*Math.pow(y,2)*i,N=Math.exp(-b),H=mc(Math.pow(y,2),h);return(-c(y)+tc>0?-1:1)*((x-O)*N)/H}):(c=y=>{const v=Math.exp(-y*i),b=(y-s)*i+1;return-tc+v*b},d=y=>{const v=Math.exp(-y*i),b=(s-y)*(i*i);return v*b});const m=5/i,p=o4(c,d,m);if(i=$e(i),isNaN(p))return{stiffness:wt.stiffness,damping:wt.damping,duration:i};{const y=Math.pow(p,2)*o;return{stiffness:y,damping:h*2*Math.sqrt(o*y),duration:i}}}const u4=12;function o4(i,l,s){let o=s;for(let c=1;ci[s]!==void 0)}function f4(i){let l={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...i};if(!B1(i,c4)&&B1(i,r4))if(i.visualDuration){const s=i.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,d=2*tn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:wt.mass,stiffness:c,damping:d}}else{const s=s4(i);l={...l,...s,mass:wt.mass},l.isResolvedFromDuration=!0}return l}function du(i=wt.visualDuration,l=wt.bounce){const s=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=s;const d=s.keyframes[0],h=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:p,damping:y,mass:v,duration:b,velocity:x,isResolvedFromDuration:O}=f4({...s,velocity:-qe(s.velocity||0)}),N=x||0,H=y/(2*Math.sqrt(p*v)),X=h-d,q=qe(Math.sqrt(p/v)),G=Math.abs(X)<5;o||(o=G?wt.restSpeed.granular:wt.restSpeed.default),c||(c=G?wt.restDelta.granular:wt.restDelta.default);let L;if(H<1){const J=mc(q,H);L=I=>{const Q=Math.exp(-H*q*I);return h-Q*((N+H*q*X)/J*Math.sin(J*I)+X*Math.cos(J*I))}}else if(H===1)L=J=>h-Math.exp(-q*J)*(X+(N+q*X)*J);else{const J=q*Math.sqrt(H*H-1);L=I=>{const Q=Math.exp(-H*q*I),P=Math.min(J*I,300);return h-Q*((N+H*q*X)*Math.sinh(P)+J*X*Math.cosh(P))/J}}const $={calculatedDuration:O&&b||null,next:J=>{const I=L(J);if(O)m.done=J>=b;else{let Q=J===0?N:0;H<1&&(Q=J===0?$e(N):E2(L,J,I));const P=Math.abs(Q)<=o,St=Math.abs(h-I)<=c;m.done=P&&St}return m.value=m.done?h:I,m},toString:()=>{const J=Math.min(Wc($),hu),I=A2(Q=>$.next(J*Q).value,J,30);return J+"ms "+I},toTransition:()=>{}};return $}du.applyToOptions=i=>{const l=a4(i,100,du);return i.ease=l.ease,i.duration=$e(l.duration),i.type="keyframes",i};function pc({keyframes:i,velocity:l=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:m,max:p,restDelta:y=.5,restSpeed:v}){const b=i[0],x={done:!1,value:b},O=P=>m!==void 0&&Pp,N=P=>m===void 0?p:p===void 0||Math.abs(m-P)-H*Math.exp(-P/o),L=P=>q+G(P),$=P=>{const St=G(P),Vt=L(P);x.done=Math.abs(St)<=y,x.value=x.done?q:Vt};let J,I;const Q=P=>{O(x.value)&&(J=P,I=du({keyframes:[x.value,N(x.value)],velocity:E2(L,P,x.value),damping:c,stiffness:d,restDelta:y,restSpeed:v}))};return Q(0),{calculatedDuration:null,next:P=>{let St=!1;return!I&&J===void 0&&(St=!0,$(P),Q(P)),J!==void 0&&P>=J?I.next(P-J):(!St&&$(P),x)}}}function h4(i,l,s){const o=[],c=s||Tn.mix||x2,d=i.length-1;for(let h=0;hl[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const m=h4(l,o,c),p=m.length,y=v=>{if(h&&v1)for(;by(tn(i[0],i[d-1],v)):y}function d4(i,l){const s=i[i.length-1];for(let o=1;o<=l;o++){const c=da(0,l,o);i.push(Rt(s,1,c))}}function M2(i){const l=[0];return d4(l,i.length-1),l}function m4(i,l){return i.map(s=>s*l)}function p4(i,l){return i.map(()=>l||h2).splice(0,i.length-1)}function vl({duration:i=300,keyframes:l,times:s,ease:o="easeInOut"}){const c=zv(o)?o.map(R1):R1(o),d={done:!1,value:l[0]},h=m4(s&&s.length===l.length?s:M2(l),i),m=Pc(h,l,{ease:Array.isArray(c)?c:p4(l,c)});return{calculatedDuration:i,next:p=>(d.value=m(p),d.done=p>=i,d)}}const y4=i=>i!==null;function $c(i,{repeat:l,repeatType:s="loop"},o,c=1){const d=i.filter(y4),m=c<0||l&&s!=="loop"&&l%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const g4={decay:pc,inertia:pc,tween:vl,keyframes:vl,spring:du};function C2(i){typeof i.type=="string"&&(i.type=g4[i.type])}class Ic{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,s){return this.finished.then(l,s)}}const v4=i=>i/100;class tf extends Ic{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;C2(l);const{type:s=vl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:m}=l;const p=s||vl;p!==vl&&typeof m[0]!="number"&&(this.mixKeyframes=jl(v4,x2(m[0],m[1])),m=[0,100]);const y=p({...l,keyframes:m});d==="mirror"&&(this.mirroredGenerator=p({...l,keyframes:[...m].reverse(),velocity:-h})),y.calculatedDuration===null&&(y.calculatedDuration=Wc(y));const{calculatedDuration:v}=y;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=y}updateTime(l){const s=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(l,s=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return o.next(0);const{delay:y=0,keyframes:v,repeat:b,repeatType:x,repeatDelay:O,type:N,onUpdate:H,finalKeyframe:X}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),s?this.currentTime=l:this.updateTime(l);const q=this.currentTime-y*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let L=this.currentTime,$=o;if(b){const P=Math.min(this.currentTime,c)/m;let St=Math.floor(P),Vt=P%1;!Vt&&P>=1&&(Vt=1),Vt===1&&St--,St=Math.min(St,b+1),!!(St%2)&&(x==="reverse"?(Vt=1-Vt,O&&(Vt-=O/m)):x==="mirror"&&($=h)),L=tn(0,1,Vt)*m}const J=G?{done:!1,value:v[0]}:$.next(L);d&&(J.value=d(J.value));let{done:I}=J;!G&&p!==null&&(I=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return Q&&N!==pc&&(J.value=$c(v,this.options,X,this.speed)),H&&H(J.value),Q&&this.finish(),J}then(l,s){return this.finished.then(l,s)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(this.currentTime)}set time(l){l=$e(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(ye.now());const s=this.playbackSpeed!==l;this.playbackSpeed=l,s&&(this.time=qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=i4,startTime:s}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function S4(i){for(let l=1;li*180/Math.PI,yc=i=>{const l=vi(Math.atan2(i[1],i[0]));return gc(l)},b4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:yc,rotateZ:yc,skewX:i=>vi(Math.atan(i[1])),skewY:i=>vi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},gc=i=>(i=i%360,i<0&&(i+=360),i),U1=yc,H1=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),L1=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),T4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:H1,scaleY:L1,scale:i=>(H1(i)+L1(i))/2,rotateX:i=>gc(vi(Math.atan2(i[6],i[5]))),rotateY:i=>gc(vi(Math.atan2(-i[2],i[0]))),rotateZ:U1,rotate:U1,skewX:i=>vi(Math.atan(i[4])),skewY:i=>vi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function vc(i){return i.includes("scale")?1:0}function Sc(i,l){if(!i||i==="none")return vc(l);const s=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=T4,c=s;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=b4,c=m}if(!c)return vc(l);const d=o[l],h=c[1].split(",").map(A4);return typeof d=="function"?d(h):h[d]}const x4=(i,l)=>{const{transform:s="none"}=getComputedStyle(i);return Sc(s,l)};function A4(i){return parseFloat(i.trim())}const ga=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],va=new Set(ga),Y1=i=>i===ya||i===nt,E4=new Set(["x","y","z"]),M4=ga.filter(i=>!E4.has(i));function C4(i){const l=[];return M4.forEach(s=>{const o=i.getValue(s);o!==void 0&&(l.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),l}const bi={width:({x:i},{paddingLeft:l="0",paddingRight:s="0"})=>i.max-i.min-parseFloat(l)-parseFloat(s),height:({y:i},{paddingTop:l="0",paddingBottom:s="0"})=>i.max-i.min-parseFloat(l)-parseFloat(s),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>Sc(l,"x"),y:(i,{transform:l})=>Sc(l,"y")};bi.translateX=bi.x;bi.translateY=bi.y;const Ti=new Set;let bc=!1,Tc=!1,xc=!1;function D2(){if(Tc){const i=Array.from(Ti).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),s=new Map;l.forEach(o=>{const c=C4(o);c.length&&(s.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Tc=!1,bc=!1,Ti.forEach(i=>i.complete(xc)),Ti.clear()}function z2(){Ti.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Tc=!0)})}function D4(){xc=!0,z2(),D2(),xc=!1}class ef{constructor(l,s,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=s,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Ti.add(this),bc||(bc=!0,xt.read(z2),xt.resolveKeyframes(D2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:s,element:o,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&s){const m=o.readValue(s,h);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}S4(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Ti.delete(this)}cancel(){this.state==="scheduled"&&(Ti.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const z4=i=>i.startsWith("--");function j4(i,l,s){z4(l)?i.style.setProperty(l,s):i.style[l]=s}const j2=Yc(()=>window.ScrollTimeline!==void 0),O4={};function R4(i,l){const s=Yc(i);return()=>O4[l]??s()}const O2=R4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yl=([i,l,s,o])=>`cubic-bezier(${i}, ${l}, ${s}, ${o})`,q1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yl([0,.65,.55,1]),circOut:yl([.55,0,1,.45]),backIn:yl([.31,.01,.66,-.59]),backOut:yl([.33,1.53,.69,.99])};function R2(i,l){if(i)return typeof i=="function"?O2()?A2(i,l):"ease-out":d2(i)?yl(i):Array.isArray(i)?i.map(s=>R2(s,l)||q1.easeOut):q1[i]}function V4(i,l,s,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:m="easeOut",times:p}={},y=void 0){const v={[l]:s};p&&(v.offset=p);const b=R2(m,c);Array.isArray(b)&&(v.easing=b);const x={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return y&&(x.pseudoElement=y),i.animate(v,x)}function V2(i){return typeof i=="function"&&"applyToOptions"in i}function N4({type:i,...l}){return V2(i)&&O2()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class _4 extends Ic{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,!l)return;const{element:s,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:m,onComplete:p}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Al(typeof l.type!="string");const y=N4(l);this.animation=V4(s,o,c,y,d),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=$c(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(v):j4(s,o,v),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return qe(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null,this.animation.currentTime=$e(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(l){this.animation.startTime=l}attachTimeline({timeline:l,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&j2()?(this.animation.timeline=l,ge):s(this)}}const N2={anticipate:r2,backInOut:o2,circInOut:f2};function w4(i){return i in N2}function B4(i){typeof i.ease=="string"&&w4(i.ease)&&(i.ease=N2[i.ease])}const G1=10;class U4 extends _4{constructor(l){B4(l),C2(l),super(l),l.startTime&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:s,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!s)return;if(l!==void 0){s.set(l);return}const m=new tf({...h,autoplay:!1}),p=$e(this.finishedTime??this.time);s.setWithVelocity(m.sample(p-G1).value,m.sample(p).value,G1),m.stop()}}const X1=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Fn.test(i)||i==="0")&&!i.startsWith("url("));function H4(i){const l=i[0];if(i.length===1)return!0;for(let s=0;sObject.hasOwnProperty.call(Element.prototype,"animate"));function G4(i){const{motionValue:l,name:s,repeatDelay:o,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:y}=l.owner.getProps();return q4()&&s&&Y4.has(s)&&(s!=="transform"||!y)&&!p&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const X4=40;class Z4 extends Ic{constructor({autoplay:l=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:m,name:p,motionValue:y,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const x={autoplay:l,delay:s,type:o,repeat:c,repeatDelay:d,repeatType:h,name:p,motionValue:y,element:v,...b},O=v?.KeyframeResolver||ef;this.keyframeResolver=new O(m,(N,H,X)=>this.onKeyframesResolved(N,H,x,!X),p,y,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,s,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:m,delay:p,isHandoff:y,onUpdate:v}=o;this.resolvedAt=ye.now(),L4(l,d,h,m)||((Tn.instantAnimations||!p)&&v?.($c(l,o,s)),l[0]=l[l.length-1],Ac(o),o.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>X4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:l},O=!y&&G4(x)?new U4({...x,element:x.motionValue.owner.current}):new tf(x);O.finished.then(()=>this.notifyFinished()).catch(ge),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}get finished(){return this._animation?this.animation.finished:this._finished}then(l,s){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),D4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Q4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K4(i){const l=Q4.exec(i);if(!l)return[,];const[,s,o,c]=l;return[`--${s??o}`,c]}function _2(i,l,s=1){const[o,c]=K4(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return e2(h)?parseFloat(h):h}return Kc(c)?_2(c,l,s+1):c}function nf(i,l){return i?.[l]??i?.default??i}const w2=new Set(["width","height","top","left","right","bottom",...ga]),J4={test:i=>i==="auto",parse:i=>i},B2=i=>l=>l.test(i),U2=[ya,nt,Ie,Jn,qv,Yv,J4],Z1=i=>U2.find(B2(i));function F4(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||i2(i):!0}const k4=new Set(["brightness","contrast","saturate","opacity"]);function W4(i){const[l,s]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=s.match(Jc)||[];if(!o)return i;const c=s.replace(o,"");let d=k4.has(l)?1:0;return o!==s&&(d*=100),l+"("+d+c+")"}const P4=/\b([a-z-]*)\(.*?\)/gu,Ec={...Fn,getAnimatableNone:i=>{const l=i.match(P4);return l?l.map(W4).join(" "):i}},Q1={...ya,transform:Math.round},$4={rotate:Jn,rotateX:Jn,rotateY:Jn,rotateZ:Jn,scale:$s,scaleX:$s,scaleY:$s,scaleZ:$s,skew:Jn,skewX:Jn,skewY:Jn,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:El,originX:V1,originY:V1,originZ:nt},af={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,radius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,backgroundPositionX:nt,backgroundPositionY:nt,...$4,zIndex:Q1,fillOpacity:El,strokeOpacity:El,numOctaves:Q1},I4={...af,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:Ec,WebkitFilter:Ec},H2=i=>I4[i];function L2(i,l){let s=H2(i);return s!==Ec&&(s=Fn),s.getAnimatableNone?s.getAnimatableNone(l):void 0}const t3=new Set(["auto","none","0"]);function e3(i,l,s){let o=0,c;for(;o{l.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function Y2(i,l,s){if(i instanceof EventTarget)return[i];if(typeof i=="string"){const c=document.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i)}const q2=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function lf(i){return n2(i)&&"offsetHeight"in i}const K1=30,i3=i=>!isNaN(parseFloat(i)),Sl={current:void 0};class a3{constructor(l,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ye.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=s.owner}setCurrent(l){this.current=l,this.updatedAt=ye.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=i3(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,s){this.events[l]||(this.events[l]=new qc);const o=this.events[l].add(s);return l==="change"?()=>{o(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,s){this.passiveEffect=l,this.stopPassiveEffect=s}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,s=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return Sl.current&&Sl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>K1)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,K1);return Gc(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(l){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=l(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ke(i,l){return new a3(i,l)}const{schedule:sf}=m2(queueMicrotask,!1),Qe={x:!1,y:!1};function G2(){return Qe.x||Qe.y}function l3(i){return i==="x"||i==="y"?Qe[i]?null:(Qe[i]=!0,()=>{Qe[i]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function X2(i,l){const s=Y2(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[s,c,()=>o.abort()]}function J1(i){return!(i.pointerType==="touch"||G2())}function s3(i,l,s={}){const[o,c,d]=X2(i,s),h=m=>{if(!J1(m))return;const{target:p}=m,y=l(p,m);if(typeof y!="function"||!p)return;const v=b=>{J1(b)&&(y(b),p.removeEventListener("pointerleave",v))};p.addEventListener("pointerleave",v,c)};return o.forEach(m=>{m.addEventListener("pointerenter",h,c)}),d}const Z2=(i,l)=>l?i===l?!0:Z2(i,l.parentElement):!1,uf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,u3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function o3(i){return u3.has(i.tagName)||i.tabIndex!==-1}const lu=new WeakSet;function F1(i){return l=>{l.key==="Enter"&&i(l)}}function ec(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const r3=(i,l)=>{const s=i.currentTarget;if(!s)return;const o=F1(()=>{if(lu.has(s))return;ec(s,"down");const c=F1(()=>{ec(s,"up")}),d=()=>ec(s,"cancel");s.addEventListener("keyup",c,l),s.addEventListener("blur",d,l)});s.addEventListener("keydown",o,l),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),l)};function k1(i){return uf(i)&&!G2()}function c3(i,l,s={}){const[o,c,d]=X2(i,s),h=m=>{const p=m.currentTarget;if(!k1(m))return;lu.add(p);const y=l(p,m),v=(O,N)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",x),lu.has(p)&&lu.delete(p),k1(O)&&typeof y=="function"&&y(O,{success:N})},b=O=>{v(O,p===window||p===document||s.useGlobalTarget||Z2(p,O.target))},x=O=>{v(O,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",x,c)};return o.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",h,c),lf(m)&&(m.addEventListener("focus",y=>r3(y,c)),!o3(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function of(i){return n2(i)&&"ownerSVGElement"in i}const su=new WeakMap;let uu;const Q2=(i,l,s)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:of(o)&&"getBBox"in o?o.getBBox()[l]:o[s],f3=Q2("inline","width","offsetWidth"),h3=Q2("block","height","offsetHeight");function d3({target:i,borderBoxSize:l}){su.get(i)?.forEach(s=>{s(i,{get width(){return f3(i,l)},get height(){return h3(i,l)}})})}function m3(i){i.forEach(d3)}function p3(){typeof ResizeObserver>"u"||(uu=new ResizeObserver(m3))}function y3(i,l){uu||p3();const s=Y2(i);return s.forEach(o=>{let c=su.get(o);c||(c=new Set,su.set(o,c)),c.add(l),uu?.observe(o)}),()=>{s.forEach(o=>{const c=su.get(o);c?.delete(l),c?.size||uu?.unobserve(o)})}}const ou=new Set;let ua;function g3(){ua=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};ou.forEach(l=>l(i))},window.addEventListener("resize",ua)}function v3(i){return ou.add(i),ua||g3(),()=>{ou.delete(i),!ou.size&&typeof ua=="function"&&(window.removeEventListener("resize",ua),ua=void 0)}}function S3(i,l){return typeof i=="function"?v3(i):y3(i,l)}function K2(i,l){let s;const o=()=>{const{currentTime:c}=l,h=(c===null?0:c.value)/100;s!==h&&i(h),s=h};return xt.preUpdate(o,!0),()=>Je(o)}function b3(i){return of(i)&&i.tagName==="svg"}function T3(...i){const l=!Array.isArray(i[0]),s=l?0:-1,o=i[0+s],c=i[1+s],d=i[2+s],h=i[3+s],m=Pc(c,d,h);return l?m(o):m}const ae=i=>!!(i&&i.getVelocity),x3=[...U2,Qt,Fn],A3=i=>x3.find(B2(i)),Tu=Y.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function W1(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function E3(...i){return l=>{let s=!1;const o=i.map(c=>{const d=W1(c,l);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c{const{width:y,height:v,top:b,left:x,right:O}=h.current;if(l||!d.current||!y||!v)return;const N=s==="left"?`left: ${x}`:`right: ${O}`;d.current.dataset.motionPopId=c;const H=document.createElement("style");m&&(H.nonce=m);const X=o??document.head;return X.appendChild(H),H.sheet&&H.sheet.insertRule(` [data-motion-pop-id="${c}"] { position: absolute !important; width: ${y}px !important; height: ${v}px !important; ${N}px !important; top: ${b}px !important; } `),()=>{X.contains(H)&&X.removeChild(H)}},[l]),S.jsx(C3,{isPresent:l,childRef:d,sizeRef:h,children:Y.cloneElement(i,{ref:p})})}const z3=({children:i,initial:l,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:m,root:p})=>{const y=pa(j3),v=Y.useId();let b=!0,x=Y.useMemo(()=>(b=!1,{id:v,initial:l,isPresent:s,custom:c,onExitComplete:O=>{y.set(O,!0);for(const N of y.values())if(!N)return;o&&o()},register:O=>(y.set(O,!1),()=>y.delete(O))}),[s,y,o]);return d&&b&&(x={...x}),Y.useMemo(()=>{y.forEach((O,N)=>y.set(N,!1))},[s]),Y.useEffect(()=>{!s&&!y.size&&o&&o()},[s]),h==="popLayout"&&(i=S.jsx(D3,{isPresent:s,anchorX:m,root:p,children:i})),S.jsx(bu.Provider,{value:x,children:i})};function j3(){return new Map}function J2(i=!0){const l=Y.useContext(bu);if(l===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=l,d=Y.useId();Y.useEffect(()=>{if(i)return c(d)},[i]);const h=Y.useCallback(()=>i&&o&&o(d),[d,o,i]);return!s&&o?[!1,h]:[!0]}const Is=i=>i.key||"";function P1(i){const l=[];return Y.Children.forEach(i,s=>{Y.isValidElement(s)&&l.push(s)}),l}const O3=({children:i,custom:l,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:m="left",root:p})=>{const[y,v]=J2(h),b=Y.useMemo(()=>P1(i),[i]),x=h&&!y?[]:b.map(Is),O=Y.useRef(!0),N=Y.useRef(b),H=pa(()=>new Map),[X,q]=Y.useState(b),[G,L]=Y.useState(b);Su(()=>{O.current=!1,N.current=b;for(let I=0;I{const Q=Is(I),P=h&&!y?!1:b===G||x.includes(Q),St=()=>{if(H.has(Q))H.set(Q,!0);else return;let Vt=!0;H.forEach(Kt=>{Kt||(Vt=!1)}),Vt&&(J?.(),L(N.current),h&&v?.(),o&&o())};return S.jsx(z3,{isPresent:P,initial:!O.current||s?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:P?void 0:St,anchorX:m,children:I},Q)})})},F2=Y.createContext({strict:!1}),$1={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"]},ma={};for(const i in $1)ma[i]={isEnabled:l=>$1[i].some(s=>!!l[s])};function R3(i){for(const l in i)ma[l]={...ma[l],...i[l]}}const V3=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 mu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||V3.has(i)}let k2=i=>!mu(i);function N3(i){typeof i=="function"&&(k2=l=>l.startsWith("on")?!mu(l):i(l))}try{N3(require("@emotion/is-prop-valid").default)}catch{}function _3(i,l,s){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(k2(c)||s===!0&&mu(c)||!l&&!mu(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const xu=Y.createContext({});function Au(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Cl(i){return typeof i=="string"||Array.isArray(i)}const rf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cf=["initial",...rf];function Eu(i){return Au(i.animate)||cf.some(l=>Cl(i[l]))}function W2(i){return!!(Eu(i)||i.variants)}function w3(i,l){if(Eu(i)){const{initial:s,animate:o}=i;return{initial:s===!1||Cl(s)?s:void 0,animate:Cl(o)?o:void 0}}return i.inherit!==!1?l:{}}function B3(i){const{initial:l,animate:s}=w3(i,Y.useContext(xu));return Y.useMemo(()=>({initial:l,animate:s}),[I1(l),I1(s)])}function I1(i){return Array.isArray(i)?i.join(" "):i}const Dl={};function U3(i){for(const l in i)Dl[l]=i[l],Qc(l)&&(Dl[l].isCSSVariable=!0)}function P2(i,{layout:l,layoutId:s}){return va.has(i)||i.startsWith("origin")||(l||s!==void 0)&&(!!Dl[i]||i==="opacity")}const H3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},L3=ga.length;function Y3(i,l,s){let o="",c=!0;for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}});function $2(i,l,s){for(const o in l)!ae(l[o])&&!P2(o,s)&&(i[o]=l[o])}function q3({transformTemplate:i},l){return Y.useMemo(()=>{const s=hf();return ff(s,l,i),Object.assign({},s.vars,s.style)},[l])}function G3(i,l){const s=i.style||{},o={};return $2(o,s,i),Object.assign(o,q3(i,l)),o}function X3(i,l){const s={},o=G3(i,l);return i.drag&&i.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(s.tabIndex=0),s.style=o,s}const Z3={offset:"stroke-dashoffset",array:"stroke-dasharray"},Q3={offset:"strokeDashoffset",array:"strokeDasharray"};function K3(i,l,s=1,o=0,c=!0){i.pathLength=1;const d=c?Z3:Q3;i[d.offset]=nt.transform(-o);const h=nt.transform(l),m=nt.transform(s);i[d.array]=`${h} ${m}`}function I2(i,{attrX:l,attrY:s,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...m},p,y,v){if(ff(i,m,y),p){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:x}=i;b.transform&&(x.transform=b.transform,delete b.transform),(x.transform||b.transformOrigin)&&(x.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),x.transform&&(x.transformBox=v?.transformBox??"fill-box",delete b.transformBox),l!==void 0&&(b.x=l),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),c!==void 0&&K3(b,c,d,h,!1)}const tp=()=>({...hf(),attrs:{}}),ep=i=>typeof i=="string"&&i.toLowerCase()==="svg";function J3(i,l,s,o){const c=Y.useMemo(()=>{const d=tp();return I2(d,l,ep(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};$2(d,i.style,i),c.style={...d,...c.style}}return c}const F3=["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 df(i){return typeof i!="string"||i.includes("-")?!1:!!(F3.indexOf(i)>-1||/[A-Z]/u.test(i))}function k3(i,l,s,{latestValues:o},c,d=!1){const m=(df(i)?J3:X3)(l,o,c,i),p=_3(l,typeof i=="string",d),y=i!==Y.Fragment?{...p,...m,ref:s}:{},{children:v}=l,b=Y.useMemo(()=>ae(v)?v.get():v,[v]);return Y.createElement(i,{...y,children:b})}function t0(i){const l=[{},{}];return i?.values.forEach((s,o)=>{l[0][o]=s.get(),l[1][o]=s.getVelocity()}),l}function mf(i,l,s,o){if(typeof l=="function"){const[c,d]=t0(o);l=l(s!==void 0?s:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=t0(o);l=l(s!==void 0?s:i.custom,c,d)}return l}function ru(i){return ae(i)?i.get():i}function W3({scrapeMotionValuesFromProps:i,createRenderState:l},s,o,c){return{latestValues:P3(s,o,c,i),renderState:l()}}function P3(i,l,s,o){const c={},d=o(i,{});for(const x in d)c[x]=ru(d[x]);let{initial:h,animate:m}=i;const p=Eu(i),y=W2(i);l&&y&&!p&&i.inherit!==!1&&(h===void 0&&(h=l.initial),m===void 0&&(m=l.animate));let v=s?s.initial===!1:!1;v=v||h===!1;const b=v?m:h;if(b&&typeof b!="boolean"&&!Au(b)){const x=Array.isArray(b)?b:[b];for(let O=0;O(l,s)=>{const o=Y.useContext(xu),c=Y.useContext(bu),d=()=>W3(i,l,o,c);return s?d():pa(d)};function pf(i,l,s){const{style:o}=i,c={};for(const d in o)(ae(o[d])||l.style&&ae(l.style[d])||P2(d,i)||s?.getValue(d)?.liveStyle!==void 0)&&(c[d]=o[d]);return c}const $3=np({scrapeMotionValuesFromProps:pf,createRenderState:hf});function ip(i,l,s){const o=pf(i,l,s);for(const c in i)if(ae(i[c])||ae(l[c])){const d=ga.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}const I3=np({scrapeMotionValuesFromProps:ip,createRenderState:tp}),t6=Symbol.for("motionComponentSymbol");function oa(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function e6(i,l,s){return Y.useCallback(o=>{o&&i.onMount&&i.onMount(o),l&&(o?l.mount(o):l.unmount()),s&&(typeof s=="function"?s(o):oa(s)&&(s.current=o))},[l])}const yf=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),n6="framerAppearId",ap="data-"+yf(n6),lp=Y.createContext({});function i6(i,l,s,o,c){const{visualElement:d}=Y.useContext(xu),h=Y.useContext(F2),m=Y.useContext(bu),p=Y.useContext(Tu).reducedMotion,y=Y.useRef(null);o=o||h.renderer,!y.current&&o&&(y.current=o(i,{visualState:l,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const v=y.current,b=Y.useContext(lp);v&&!v.projection&&c&&(v.type==="html"||v.type==="svg")&&a6(y.current,s,c,b);const x=Y.useRef(!1);Y.useInsertionEffect(()=>{v&&x.current&&v.update(s,m)});const O=s[ap],N=Y.useRef(!!O&&!window.MotionHandoffIsComplete?.(O)&&window.MotionHasOptimisedAnimation?.(O));return Su(()=>{v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),N.current&&v.animationState&&v.animationState.animateChanges())}),Y.useEffect(()=>{v&&(!N.current&&v.animationState&&v.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(O)}),N.current=!1),v.enteringChildren=void 0)}),v}function a6(i,l,s,o){const{layoutId:c,layout:d,drag:h,dragConstraints:m,layoutScroll:p,layoutRoot:y,layoutCrossfade:v}=l;i.projection=new s(i.latestValues,l["data-framer-portal-id"]?void 0:sp(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||m&&oa(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:p,layoutRoot:y})}function sp(i){if(i)return i.options.allowProjection!==!1?i.projection:sp(i.parent)}function nc(i,{forwardMotionProps:l=!1}={},s,o){s&&R3(s);const c=df(i)?I3:$3;function d(m,p){let y;const v={...Y.useContext(Tu),...m,layoutId:l6(m)},{isStatic:b}=v,x=B3(m),O=c(m,b);if(!b&&Uc){s6();const N=u6(v);y=N.MeasureLayout,x.visualElement=i6(i,O,v,o,N.ProjectionNode)}return S.jsxs(xu.Provider,{value:x,children:[y&&x.visualElement?S.jsx(y,{visualElement:x.visualElement,...v}):null,k3(i,m,e6(O,x.visualElement,p),O,b,l)]})}d.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const h=Y.forwardRef(d);return h[t6]=i,h}function l6({layoutId:i}){const l=Y.useContext(Bc).id;return l&&i!==void 0?l+"-"+i:i}function s6(i,l){Y.useContext(F2).strict}function u6(i){const{drag:l,layout:s}=ma;if(!l&&!s)return{};const o={...l,...s};return{MeasureLayout:l?.isEnabled(i)||s?.isEnabled(i)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function o6(i,l){if(typeof Proxy>"u")return nc;const s=new Map,o=(d,h)=>nc(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(s.has(h)||s.set(h,nc(h,void 0,i,l)),s.get(h))})}function up({top:i,left:l,right:s,bottom:o}){return{x:{min:l,max:s},y:{min:i,max:o}}}function r6({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function c6(i,l){if(!l)return i;const s=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function ic(i){return i===void 0||i===1}function Mc({scale:i,scaleX:l,scaleY:s}){return!ic(i)||!ic(l)||!ic(s)}function yi(i){return Mc(i)||op(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function op(i){return e0(i.x)||e0(i.y)}function e0(i){return i&&i!=="0%"}function pu(i,l,s){const o=i-s,c=l*o;return s+c}function n0(i,l,s,o,c){return c!==void 0&&(i=pu(i,c,o)),pu(i,s,o)+l}function Cc(i,l=0,s=1,o,c){i.min=n0(i.min,l,s,o,c),i.max=n0(i.max,l,s,o,c)}function rp(i,{x:l,y:s}){Cc(i.x,l.translate,l.scale,l.originPoint),Cc(i.y,s.translate,s.scale,s.originPoint)}const i0=.999999999999,a0=1.0000000000001;function f6(i,l,s,o=!1){const c=s.length;if(!c)return;l.x=l.y=1;let d,h;for(let m=0;mi0&&(l.x=1),l.yi0&&(l.y=1)}function ra(i,l){i.min=i.min+l,i.max=i.max+l}function l0(i,l,s,o,c=.5){const d=Rt(i.min,i.max,c);Cc(i,l,s,d,o)}function ca(i,l){l0(i.x,l.x,l.scaleX,l.scale,l.originX),l0(i.y,l.y,l.scaleY,l.scale,l.originY)}function cp(i,l){return up(c6(i.getBoundingClientRect(),l))}function h6(i,l,s){const o=cp(i,s),{scroll:c}=l;return c&&(ra(o.x,c.offset.x),ra(o.y,c.offset.y)),o}const s0=()=>({translate:0,scale:1,origin:0,originPoint:0}),fa=()=>({x:s0(),y:s0()}),u0=()=>({min:0,max:0}),Yt=()=>({x:u0(),y:u0()}),Dc={current:null},fp={current:!1};function d6(){if(fp.current=!0,!!Uc)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Dc.current=i.matches;i.addEventListener("change",l),l()}else Dc.current=!1}const m6=new WeakMap;function p6(i,l,s){for(const o in l){const c=l[o],d=s[o];if(ae(c))i.addValue(o,c);else if(ae(d))i.addValue(o,Ke(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,Ke(h!==void 0?h:c,{owner:i}))}}for(const o in s)l[o]===void 0&&i.removeValue(o);return l}const o0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class y6{scrapeMotionValuesFromProps(l,s,o){return{}}constructor({parent:l,props:s,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:d,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ef,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 x=ye.now();this.renderScheduledAtthis.bindToMotionValue(o,s)),fp.current||d6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dc.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Je(this.notifyUpdate),Je(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const s=this.features[l];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,s){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const o=va.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&xt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,s)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in ma){const s=ma[l];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Yt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,s){this.latestValues[l]=s}update(l,s){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;os.variantChildren.delete(l)}addValue(l,s){const o=this.values.get(l);s!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,s),this.values.set(l,s),this.latestValues[l]=s.get())}removeValue(l){this.values.delete(l);const s=this.valueSubscriptions.get(l);s&&(s(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,s){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&s!==void 0&&(o=Ke(s===null?void 0:s,{owner:this}),this.addValue(l,o)),o}readValue(l,s){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(e2(o)||i2(o))?o=parseFloat(o):!A3(o)&&Fn.test(s)&&(o=L2(l,s)),this.setBaseTarget(l,ae(o)?o.get():o)),ae(o)?o.get():o}setBaseTarget(l,s){this.baseTarget[l]=s}getBaseTarget(l){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const d=mf(this.props,s,this.presenceContext?.custom);d&&(o=d[l])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ae(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,s){return this.events[l]||(this.events[l]=new qc),this.events[l].add(s)}notify(l,...s){this.events[l]&&this.events[l].notify(...s)}scheduleRenderMicrotask(){sf.render(this.render)}}class hp extends y6{constructor(){super(...arguments),this.KeyframeResolver=n3}sortInstanceNodePosition(l,s){return l.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(l,s){return l.style?l.style[s]:void 0}removeValueFromRenderState(l,{vars:s,style:o}){delete s[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ae(l)&&(this.childSubscription=l.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function dp(i,{style:l,vars:s},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in s)d.setProperty(h,s[h])}function g6(i){return window.getComputedStyle(i)}class v6 extends hp{constructor(){super(...arguments),this.type="html",this.renderInstance=dp}readValueFromInstance(l,s){if(va.has(s))return this.projection?.isProjecting?vc(s):x4(l,s);{const o=g6(l),c=(Qc(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:s}){return cp(l,s)}build(l,s,o){ff(l,s,o.transformTemplate)}scrapeMotionValuesFromProps(l,s,o){return pf(l,s,o)}}const mp=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 S6(i,l,s,o){dp(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(mp.has(c)?c:yf(c),l.attrs[c])}class b6 extends hp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yt}getBaseTargetFromProps(l,s){return l[s]}readValueFromInstance(l,s){if(va.has(s)){const o=H2(s);return o&&o.default||0}return s=mp.has(s)?s:yf(s),l.getAttribute(s)}scrapeMotionValuesFromProps(l,s,o){return ip(l,s,o)}build(l,s,o){I2(l,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,s,o,c){S6(l,s,o,c)}mount(l){this.isSVGTag=ep(l.tagName),super.mount(l)}}const T6=(i,l)=>df(i)?new b6(l):new v6(l,{allowProjection:i!==Y.Fragment});function ha(i,l,s){const o=i.getProps();return mf(o,l,s!==void 0?s:o.custom,i)}const zc=i=>Array.isArray(i);function x6(i,l,s){i.hasValue(l)?i.getValue(l).set(s):i.addValue(l,Ke(s))}function A6(i){return zc(i)?i[i.length-1]||0:i}function E6(i,l){const s=ha(i,l);let{transitionEnd:o={},transition:c={},...d}=s||{};d={...d,...o};for(const h in d){const m=A6(d[h]);x6(i,h,m)}}function M6(i){return!!(ae(i)&&i.add)}function jc(i,l){const s=i.getValue("willChange");if(M6(s))return s.add(l);if(!s&&Tn.WillChange){const o=new Tn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function pp(i){return i.props[ap]}const C6=i=>i!==null;function D6(i,{repeat:l,repeatType:s="loop"},o){const c=i.filter(C6),d=l&&s!=="loop"&&l%2===1?0:c.length-1;return c[d]}const z6={type:"spring",stiffness:500,damping:25,restSpeed:10},j6=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),O6={type:"keyframes",duration:.8},R6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V6=(i,{keyframes:l})=>l.length>2?O6:va.has(i)?i.startsWith("scale")?j6(l[1]):z6:R6;function N6({when:i,delay:l,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:m,from:p,elapsed:y,...v}){return!!Object.keys(v).length}const gf=(i,l,s,o={},c,d)=>h=>{const m=nf(o,i)||{},p=m.delay||o.delay||0;let{elapsed:y=0}=o;y=y-$e(p);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-y,onUpdate:x=>{l.set(x),m.onUpdate&&m.onUpdate(x)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:i,motionValue:l,element:d?void 0:c};N6(m)||Object.assign(v,V6(i,v)),v.duration&&(v.duration=$e(v.duration)),v.repeatDelay&&(v.repeatDelay=$e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Ac(v),v.delay===0&&(b=!0)),(Tn.instantAnimations||Tn.skipAnimations)&&(b=!0,Ac(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,b&&!d&&l.get()!==void 0){const x=D6(v.keyframes,m);if(x!==void 0){xt.update(()=>{v.onUpdate(x),v.onComplete()});return}}return m.isSync?new tf(v):new Z4(v)};function _6({protectedKeys:i,needsAnimating:l},s){const o=i.hasOwnProperty(s)&&l[s]!==!0;return l[s]=!1,o}function yp(i,l,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:d=i.getDefaultTransition(),transitionEnd:h,...m}=l;o&&(d=o);const p=[],y=c&&i.animationState&&i.animationState.getState()[c];for(const v in m){const b=i.getValue(v,i.latestValues[v]??null),x=m[v];if(x===void 0||y&&_6(y,v))continue;const O={delay:s,...nf(d||{},v)},N=b.get();if(N!==void 0&&!b.isAnimating&&!Array.isArray(x)&&x===N&&!O.velocity)continue;let H=!1;if(window.MotionHandoffAnimation){const q=pp(i);if(q){const G=window.MotionHandoffAnimation(q,v,xt);G!==null&&(O.startTime=G,H=!0)}}jc(i,v),b.start(gf(v,b,x,i.shouldReduceMotion&&w2.has(v)?{type:!1}:O,i,H));const X=b.animation;X&&p.push(X)}return h&&Promise.all(p).then(()=>{xt.update(()=>{h&&E6(i,h)})}),p}function gp(i,l,s,o=0,c=1){const d=Array.from(i).sort((y,v)=>y.sortNodePosition(v)).indexOf(l),h=i.size,m=(h-1)*o;return typeof s=="function"?s(d,h):c===1?d*o:m-d*o}function Oc(i,l,s={}){const o=ha(i,l,s.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const d=o?()=>Promise.all(yp(i,o,s)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=c;return w6(i,l,p,y,v,b,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,y]=m==="beforeChildren"?[d,h]:[h,d];return p().then(()=>y())}else return Promise.all([d(),h(s.delay)])}function w6(i,l,s=0,o=0,c=0,d=1,h){const m=[];for(const p of i.variantChildren)p.notify("AnimationStart",l),m.push(Oc(p,l,{...h,delay:s+(typeof o=="function"?0:o)+gp(i.variantChildren,p,o,c,d)}).then(()=>p.notify("AnimationComplete",l)));return Promise.all(m)}function B6(i,l,s={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>Oc(i,d,s));o=Promise.all(c)}else if(typeof l=="string")o=Oc(i,l,s);else{const c=typeof l=="function"?ha(i,l,s.custom):l;o=Promise.all(yp(i,c,s))}return o.then(()=>{i.notify("AnimationComplete",l)})}function vp(i,l){if(!Array.isArray(l))return!1;const s=l.length;if(s!==i.length)return!1;for(let o=0;oPromise.all(l.map(({animation:s,options:o})=>B6(i,s,o)))}function q6(i){let l=Y6(i),s=r0(),o=!0;const c=p=>(y,v)=>{const b=ha(i,v,p==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:x,transitionEnd:O,...N}=b;y={...y,...N,...O}}return y};function d(p){l=p(i)}function h(p){const{props:y}=i,v=Sp(i.parent)||{},b=[],x=new Set;let O={},N=1/0;for(let X=0;XN&&$,St=!1;const Vt=Array.isArray(L)?L:[L];let Kt=Vt.reduce(c(q),{});J===!1&&(Kt={});const{prevResolvedValues:Pt={}}=G,en={...Pt,...Kt},ze=U=>{P=!0,x.has(U)&&(St=!0,x.delete(U)),G.needsAnimating[U]=!0;const k=i.getValue(U);k&&(k.liveStyle=!1)};for(const U in en){const k=Kt[U],ct=Pt[U];if(O.hasOwnProperty(U))continue;let mt=!1;zc(k)&&zc(ct)?mt=!vp(k,ct):mt=k!==ct,mt?k!=null?ze(U):x.add(U):k!==void 0&&x.has(U)?ze(U):G.protectedKeys[U]=!0}G.prevProp=L,G.prevResolvedValues=Kt,G.isActive&&(O={...O,...Kt}),o&&i.blockInitialAnimation&&(P=!1);const oe=I&&Q;P&&(!oe||St)&&b.push(...Vt.map(U=>{const k={type:q};if(typeof U=="string"&&o&&!oe&&i.manuallyAnimateOnMount&&i.parent){const{parent:ct}=i,mt=ha(ct,U);if(ct.enteringChildren&&mt){const{delayChildren:E}=mt.transition||{};k.delay=gp(ct.enteringChildren,i,E)}}return{animation:U,options:k}}))}if(x.size){const X={};if(typeof y.initial!="boolean"){const q=ha(i,Array.isArray(y.initial)?y.initial[0]:y.initial);q&&q.transition&&(X.transition=q.transition)}x.forEach(q=>{const G=i.getBaseTarget(q),L=i.getValue(q);L&&(L.liveStyle=!0),X[q]=G??null}),b.push({animation:X})}let H=!!b.length;return o&&(y.initial===!1||y.initial===y.animate)&&!i.manuallyAnimateOnMount&&(H=!1),o=!1,H?l(b):Promise.resolve()}function m(p,y){if(s[p].isActive===y)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(p,y)),s[p].isActive=y;const v=h(p);for(const b in s)s[b].protectedKeys={};return v}return{animateChanges:h,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=r0()}}}function G6(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!vp(l,i):!1}function pi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r0(){return{animate:pi(!0),whileInView:pi(),whileHover:pi(),whileTap:pi(),whileDrag:pi(),whileFocus:pi(),exit:pi()}}class kn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class X6 extends kn{constructor(l){super(l),l.animationState||(l.animationState=q6(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Au(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:s}=this.node.prevProps||{};l!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Z6=0;class Q6 extends kn{constructor(){super(...arguments),this.id=Z6++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);s&&!l&&c.then(()=>{s(this.id)})}mount(){const{register:l,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const K6={animation:{Feature:X6},exit:{Feature:Q6}};function zl(i,l,s,o={passive:!0}){return i.addEventListener(l,s,o),()=>i.removeEventListener(l,s)}function Vl(i){return{point:{x:i.pageX,y:i.pageY}}}const J6=i=>l=>uf(l)&&i(l,Vl(l));function bl(i,l,s,o){return zl(i,l,J6(s),o)}const bp=1e-4,F6=1-bp,k6=1+bp,Tp=.01,W6=0-Tp,P6=0+Tp;function ue(i){return i.max-i.min}function $6(i,l,s){return Math.abs(i-l)<=s}function c0(i,l,s,o=.5){i.origin=o,i.originPoint=Rt(l.min,l.max,i.origin),i.scale=ue(s)/ue(l),i.translate=Rt(s.min,s.max,i.origin)-i.originPoint,(i.scale>=F6&&i.scale<=k6||isNaN(i.scale))&&(i.scale=1),(i.translate>=W6&&i.translate<=P6||isNaN(i.translate))&&(i.translate=0)}function Tl(i,l,s,o){c0(i.x,l.x,s.x,o?o.originX:void 0),c0(i.y,l.y,s.y,o?o.originY:void 0)}function f0(i,l,s){i.min=s.min+l.min,i.max=i.min+ue(l)}function I6(i,l,s){f0(i.x,l.x,s.x),f0(i.y,l.y,s.y)}function h0(i,l,s){i.min=l.min-s.min,i.max=i.min+ue(l)}function xl(i,l,s){h0(i.x,l.x,s.x),h0(i.y,l.y,s.y)}function Ye(i){return[i("x"),i("y")]}const xp=({current:i})=>i?i.ownerDocument.defaultView:null,d0=(i,l)=>Math.abs(i-l);function t8(i,l){const s=d0(i.x,l.x),o=d0(i.y,l.y);return Math.sqrt(s**2+o**2)}class Ap{constructor(l,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=lc(this.lastMoveEventInfo,this.history),O=this.startEvent!==null,N=t8(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!O&&!N)return;const{point:H}=x,{timestamp:X}=Wt;this.history.push({...H,timestamp:X});const{onStart:q,onMove:G}=this.handlers;O||(q&&q(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,x)},this.handlePointerMove=(x,O)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=ac(O,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(x,O)=>{this.end();const{onEnd:N,onSessionEnd:H,resumeAnimation:X}=this.handlers;if(this.dragSnapToOrigin&&X&&X(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=lc(x.type==="pointercancel"?this.lastMoveEventInfo:ac(O,this.transformPagePoint),this.history);this.startEvent&&N&&N(x,q),H&&H(x,q)},!uf(l))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const m=Vl(l),p=ac(m,this.transformPagePoint),{point:y}=p,{timestamp:v}=Wt;this.history=[{...y,timestamp:v}];const{onSessionStart:b}=s;b&&b(l,lc(p,this.history)),this.removeListeners=jl(bl(this.contextWindow,"pointermove",this.handlePointerMove),bl(this.contextWindow,"pointerup",this.handlePointerUp),bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function ac(i,l){return l?{point:l(i.point)}:i}function m0(i,l){return{x:i.x-l.x,y:i.y-l.y}}function lc({point:i},l){return{point:i,delta:m0(i,Ep(l)),offset:m0(i,e8(l)),velocity:n8(l,.1)}}function e8(i){return i[0]}function Ep(i){return i[i.length-1]}function n8(i,l){if(i.length<2)return{x:0,y:0};let s=i.length-1,o=null;const c=Ep(i);for(;s>=0&&(o=i[s],!(c.timestamp-o.timestamp>$e(l)));)s--;if(!o)return{x:0,y:0};const d=qe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function i8(i,{min:l,max:s},o){return l!==void 0&&is&&(i=o?Rt(s,i,o.max):Math.min(i,s)),i}function p0(i,l,s){return{min:l!==void 0?i.min+l:void 0,max:s!==void 0?i.max+s-(i.max-i.min):void 0}}function a8(i,{top:l,left:s,bottom:o,right:c}){return{x:p0(i.x,s,c),y:p0(i.y,l,o)}}function y0(i,l){let s=l.min-i.min,o=l.max-i.max;return l.max-l.mino?s=da(l.min,l.max-o,i.min):o>c&&(s=da(i.min,i.max-c,l.min)),tn(0,1,s)}function u8(i,l){const s={};return l.min!==void 0&&(s.min=l.min-i.min),l.max!==void 0&&(s.max=l.max-i.min),s}const Rc=.35;function o8(i=Rc){return i===!1?i=0:i===!0&&(i=Rc),{x:g0(i,"left","right"),y:g0(i,"top","bottom")}}function g0(i,l,s){return{min:v0(i,l),max:v0(i,s)}}function v0(i,l){return typeof i=="number"?i:i[l]||0}const r8=new WeakMap;class c8{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Yt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Vl(b).point)},h=(b,x)=>{const{drag:O,dragPropagation:N,onDragStart:H}=this.getProps();if(O&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=l3(O),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ye(q=>{let G=this.getAxisMotionValue(q).get()||0;if(Ie.test(G)){const{projection:L}=this.visualElement;if(L&&L.layout){const $=L.layout.layoutBox[q];$&&(G=ue($)*(parseFloat(G)/100))}}this.originPoint[q]=G}),H&&xt.postRender(()=>H(b,x)),jc(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},m=(b,x)=>{this.latestPointerEvent=b,this.latestPanInfo=x;const{dragPropagation:O,dragDirectionLock:N,onDirectionLock:H,onDrag:X}=this.getProps();if(!O&&!this.openDragLock)return;const{offset:q}=x;if(N&&this.currentDirection===null){this.currentDirection=f8(q),this.currentDirection!==null&&H&&H(this.currentDirection);return}this.updateAxis("x",x.point,q),this.updateAxis("y",x.point,q),this.visualElement.render(),X&&X(b,x)},p=(b,x)=>{this.latestPointerEvent=b,this.latestPanInfo=x,this.stop(b,x),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Ye(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new Ap(l,{onSessionStart:d,onStart:h,onMove:m,onSessionEnd:p,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:xp(this.visualElement)})}stop(l,s){const o=l||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&xt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:s}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(l,s,o){const{drag:c}=this.getProps();if(!o||!tu(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=i8(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&oa(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=a8(o.layoutBox,l):this.constraints=!1,this.elastic=o8(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ye(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=u8(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:s}=this.getProps();if(!l||!oa(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=h6(o,c.root,this.visualElement.getTransformPagePoint());let h=l8(c.layout.layoutBox,d);if(s){const m=s(r6(h));this.hasMutatedConstraints=!!m,m&&(h=up(m))}return h}startAnimation(l){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},y=Ye(v=>{if(!tu(v,s,this.currentDirection))return;let b=p&&p[v]||{};h&&(b={min:0,max:0});const x=c?200:1e6,O=c?40:1e7,N={type:"inertia",velocity:o?l[v]:0,bounceStiffness:x,bounceDamping:O,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,N)});return Promise.all(y).then(m)}startAxisValueAnimation(l,s){const o=this.getAxisMotionValue(l);return jc(this.visualElement,l),o.start(gf(l,o,0,s,this.visualElement,!1))}stopAnimation(){Ye(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ye(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const s=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){Ye(s=>{const{drag:o}=this.getProps();if(!tu(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:h,max:m}=c.layout.layoutBox[s];d.set(l[s]-Rt(h,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!oa(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ye(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const p=m.get();c[h]=s8({min:p,max:p},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ye(h=>{if(!tu(h,l,null))return;const m=this.getAxisMotionValue(h),{min:p,max:y}=this.constraints[h];m.set(Rt(p,y,c[h]))})}addListeners(){if(!this.visualElement.current)return;r8.set(this.visualElement,this);const l=this.visualElement.current,s=bl(l,"pointerdown",p=>{const{drag:y,dragListener:v=!0}=this.getProps();y&&v&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();oa(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),xt.read(o);const h=zl(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(Ye(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),m&&m()}}getProps(){const l=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Rc,dragMomentum:m=!0}=l;return{...l,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:m}}}function tu(i,l,s){return(l===!0||l===i)&&(s===null||s===i)}function f8(i,l=10){let s=null;return Math.abs(i.y)>l?s="y":Math.abs(i.x)>l&&(s="x"),s}class h8 extends kn{constructor(l){super(l),this.removeGroupControls=ge,this.removeListeners=ge,this.controls=new c8(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ge}unmount(){this.removeGroupControls(),this.removeListeners()}}const S0=i=>(l,s)=>{i&&xt.postRender(()=>i(l,s))};class d8 extends kn{constructor(){super(...arguments),this.removePointerDownListener=ge}onPointerDown(l){this.session=new Ap(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xp(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:S0(l),onStart:S0(s),onMove:o,onEnd:(d,h)=>{delete this.session,c&&xt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=bl(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function b0(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ml={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(nt.test(i))i=parseFloat(i);else return i;const s=b0(i,l.target.x),o=b0(i,l.target.y);return`${s}% ${o}%`}},m8={correct:(i,{treeScale:l,projectionDelta:s})=>{const o=i,c=Fn.parse(i);if(c.length>5)return o;const d=Fn.createTransformer(i),h=typeof c[0]!="number"?1:0,m=s.x.scale*l.x,p=s.y.scale*l.y;c[0+h]/=m,c[1+h]/=p;const y=Rt(m,p,.5);return typeof c[2+h]=="number"&&(c[2+h]/=y),typeof c[3+h]=="number"&&(c[3+h]/=y),d(c)}};let sc=!1;class p8 extends Y.Component{componentDidMount(){const{visualElement:l,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;U3(y8),d&&(s.group&&s.group.add(d),o&&o.register&&c&&o.register(d),sc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),cu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:s,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,sc=!0,c||l.layoutDependency!==s||s===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||xt.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),sf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=l;sc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Mp(i){const[l,s]=J2(),o=Y.useContext(Bc);return S.jsx(p8,{...i,layoutGroup:o,switchLayoutGroup:Y.useContext(lp),isPresent:l,safeToRemove:s})}const y8={borderRadius:{...ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ml,borderTopRightRadius:ml,borderBottomLeftRadius:ml,borderBottomRightRadius:ml,boxShadow:m8};function g8(i,l,s){const o=ae(i)?i:Ke(i);return o.start(gf("",o,l,s)),o.animation}const v8=(i,l)=>i.depth-l.depth;class S8{constructor(){this.children=[],this.isDirty=!1}add(l){Hc(this.children,l),this.isDirty=!0}remove(l){Lc(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(v8),this.isDirty=!1,this.children.forEach(l)}}function b8(i,l){const s=ye.now(),o=({timestamp:c})=>{const d=c-s;d>=l&&(Je(o),i(d-l))};return xt.setup(o,!0),()=>Je(o)}const Cp=["TopLeft","TopRight","BottomLeft","BottomRight"],T8=Cp.length,T0=i=>typeof i=="string"?parseFloat(i):i,x0=i=>typeof i=="number"||nt.test(i);function x8(i,l,s,o,c,d){c?(i.opacity=Rt(0,s.opacity??1,A8(o)),i.opacityExit=Rt(l.opacity??1,0,E8(o))):d&&(i.opacity=Rt(l.opacity??1,s.opacity??1,o));for(let h=0;hol?1:s(da(i,l,o))}function E0(i,l){i.min=l.min,i.max=l.max}function Le(i,l){E0(i.x,l.x),E0(i.y,l.y)}function M0(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}function C0(i,l,s,o,c){return i-=l,i=pu(i,1/s,o),c!==void 0&&(i=pu(i,1/c,o)),i}function M8(i,l=0,s=1,o=.5,c,d=i,h=i){if(Ie.test(l)&&(l=parseFloat(l),l=Rt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let m=Rt(d.min,d.max,o);i===d&&(m-=l),i.min=C0(i.min,l,s,m,c),i.max=C0(i.max,l,s,m,c)}function D0(i,l,[s,o,c],d,h){M8(i,l[s],l[o],l[c],l.scale,d,h)}const C8=["x","scaleX","originX"],D8=["y","scaleY","originY"];function z0(i,l,s,o){D0(i.x,l,C8,s?s.x:void 0,o?o.x:void 0),D0(i.y,l,D8,s?s.y:void 0,o?o.y:void 0)}function j0(i){return i.translate===0&&i.scale===1}function zp(i){return j0(i.x)&&j0(i.y)}function O0(i,l){return i.min===l.min&&i.max===l.max}function z8(i,l){return O0(i.x,l.x)&&O0(i.y,l.y)}function R0(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function jp(i,l){return R0(i.x,l.x)&&R0(i.y,l.y)}function V0(i){return ue(i.x)/ue(i.y)}function N0(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}class j8{constructor(){this.members=[]}add(l){Hc(this.members,l),l.scheduleRender()}remove(l){if(Lc(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(l){const s=this.members.findIndex(c=>l===c);if(s===0)return!1;let o;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(l,s){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender(),l.resumeFrom=o,s&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:s,resumingFrom:o}=l;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function O8(i,l,s){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=s?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),s){const{transformPerspective:y,rotate:v,rotateX:b,rotateY:x,skewX:O,skewY:N}=s;y&&(o=`perspective(${y}px) ${o}`),v&&(o+=`rotate(${v}deg) `),b&&(o+=`rotateX(${b}deg) `),x&&(o+=`rotateY(${x}deg) `),O&&(o+=`skewX(${O}deg) `),N&&(o+=`skewY(${N}deg) `)}const m=i.x.scale*l.x,p=i.y.scale*l.y;return(m!==1||p!==1)&&(o+=`scale(${m}, ${p})`),o||"none"}const uc=["","X","Y","Z"],R8=1e3;let V8=0;function oc(i,l,s,o){const{latestValues:c}=l;c[i]&&(s[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function Op(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const s=pp(l);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(s,"transform",xt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&Op(o)}function Rp({attachResizeListener:i,defaultParent:l,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},m=l?.()){this.id=V8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(w8),this.nodes.forEach(L8),this.nodes.forEach(Y8),this.nodes.forEach(B8)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=!1;xt.read(()=>{b=window.innerWidth}),i(h,()=>{const O=window.innerWidth;O!==b&&(b=O,this.root.updateBlockedByResize=!0,v&&v(),v=b8(x,250),cu.hasAnimatedSinceResize&&(cu.hasAnimatedSinceResize=!1,this.nodes.forEach(B0)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&y&&(m||p)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:x,layout:O})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||y.getDefaultTransition()||Q8,{onLayoutAnimationStart:H,onLayoutAnimationComplete:X}=y.getProps(),q=!this.targetLayout||!jp(this.targetLayout,O),G=!b&&x;if(this.options.layoutRoot||this.resumeFrom||G||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...nf(N,"layout"),onPlay:H,onComplete:X};(y.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(v,G)}else b||B0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=O})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Je(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(q8),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Op(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ue(this.snapshot.measuredBox.x)&&!ue(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p{const J=$/1e3;U0(b.x,h.x,J),U0(b.y,h.y,J),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xl(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),X8(this.relativeTarget,this.relativeTargetOrigin,x,J),L&&z8(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Yt()),Le(L,this.relativeTarget)),H&&(this.animationValues=v,x8(v,y,this.latestValues,J,G,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=J},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{cu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ke(0)),this.currentAnimation=g8(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),h.onUpdate&&h.onUpdate(m)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(R8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:p,layout:y,latestValues:v}=h;if(!(!m||!p||!y)){if(this!==h&&this.layout&&y&&Vp(this.options.animationType,this.layout.layoutBox,y.layoutBox)){p=this.target||Yt();const b=ue(this.layout.layoutBox.x);p.x.min=h.target.x.min,p.x.max=p.x.min+b;const x=ue(this.layout.layoutBox.y);p.y.min=h.target.y.min,p.y.max=p.y.min+x}Le(m,p),ca(m,v),Tl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new j8),this.sharedNodes.get(h).add(m);const y=m.options.initialPromotionConfig;m.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(m):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:m,preserveFollowOpacity:p}={}){const y=this.getStack();y&&y.promote(this,p),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:p}=h;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const y={};p.z&&oc("z",h,y,this.animationValues);for(let v=0;vh.currentAnimation?.stop()),this.root.nodes.forEach(_0),this.root.sharedNodes.clear()}}}function N8(i){i.updateLayout()}function _8(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?Ye(v=>{const b=d?l.measuredBox[v]:l.layoutBox[v],x=ue(b);b.min=s[v].min,b.max=b.min+x}):Vp(c,l.layoutBox,s)&&Ye(v=>{const b=d?l.measuredBox[v]:l.layoutBox[v],x=ue(s[v]);b.max=b.min+x,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+x)});const h=fa();Tl(h,s,l.layoutBox);const m=fa();d?Tl(m,i.applyTransform(o,!0),l.measuredBox):Tl(m,s,l.layoutBox);const p=!zp(h);let y=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:x}=v;if(b&&x){const O=Yt();xl(O,l.layoutBox,b.layoutBox);const N=Yt();xl(N,s,x.layoutBox),jp(O,N)||(y=!0),v.options.layoutRoot&&(i.relativeTarget=N,i.relativeTargetOrigin=O,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:l,delta:m,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:y})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function w8(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function B8(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function U8(i){i.clearSnapshot()}function _0(i){i.clearMeasurements()}function w0(i){i.isLayoutDirty=!1}function H8(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function B0(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function L8(i){i.resolveTargetDelta()}function Y8(i){i.calcProjection()}function q8(i){i.resetSkewAndRotation()}function G8(i){i.removeLeadSnapshot()}function U0(i,l,s){i.translate=Rt(l.translate,0,s),i.scale=Rt(l.scale,1,s),i.origin=l.origin,i.originPoint=l.originPoint}function H0(i,l,s,o){i.min=Rt(l.min,s.min,o),i.max=Rt(l.max,s.max,o)}function X8(i,l,s,o){H0(i.x,l.x,s.x,o),H0(i.y,l.y,s.y,o)}function Z8(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const Q8={duration:.45,ease:[.4,0,.1,1]},L0=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Y0=L0("applewebkit/")&&!L0("chrome/")?Math.round:ge;function q0(i){i.min=Y0(i.min),i.max=Y0(i.max)}function K8(i){q0(i.x),q0(i.y)}function Vp(i,l,s){return i==="position"||i==="preserve-aspect"&&!$6(V0(l),V0(s),.2)}function J8(i){return i!==i.root&&i.scroll?.wasRoot}const F8=Rp({attachResizeListener:(i,l)=>zl(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rc={current:void 0},Np=Rp({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!rc.current){const i=new F8({});i.mount(window),i.setOptions({layoutScroll:!0}),rc.current=i}return rc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),k8={pan:{Feature:d8},drag:{Feature:h8,ProjectionNode:Np,MeasureLayout:Mp}};function G0(i,l,s){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=o[c];d&&xt.postRender(()=>d(l,Vl(l)))}class W8 extends kn{mount(){const{current:l}=this.node;l&&(this.unmount=s3(l,(s,o)=>(G0(this.node,o,"Start"),c=>G0(this.node,c,"End"))))}unmount(){}}class P8 extends kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=jl(zl(this.node.current,"focus",()=>this.onFocus()),zl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function X0(i,l,s){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=o[c];d&&xt.postRender(()=>d(l,Vl(l)))}class $8 extends kn{mount(){const{current:l}=this.node;l&&(this.unmount=c3(l,(s,o)=>(X0(this.node,o,"Start"),(c,{success:d})=>X0(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Vc=new WeakMap,cc=new WeakMap,I8=i=>{const l=Vc.get(i.target);l&&l(i)},t5=i=>{i.forEach(I8)};function e5({root:i,...l}){const s=i||document;cc.has(s)||cc.set(s,{});const o=cc.get(s),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(t5,{root:i,...l})),o[c]}function n5(i,l,s){const o=e5(l);return Vc.set(i,s),o.observe(i),()=>{Vc.delete(i),o.unobserve(i)}}const i5={some:0,all:1};class a5 extends kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:d}=l,h={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:i5[c]},m=p=>{const{isIntersecting:y}=p;if(this.isInView===y||(this.isInView=y,d&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),x=y?v:b;x&&x(p)};return n5(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:s}=this.node;["amount","margin","root"].some(l5(l,s))&&this.startObserver()}unmount(){}}function l5({viewport:i={}},{viewport:l={}}={}){return s=>i[s]!==l[s]}const s5={inView:{Feature:a5},tap:{Feature:$8},focus:{Feature:P8},hover:{Feature:W8}},u5={layout:{ProjectionNode:Np,MeasureLayout:Mp}},o5={...K6,...s5,...k8,...u5},Bt=o6(o5,T6),r5=50,Z0=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),c5=()=>({time:0,x:Z0(),y:Z0()}),f5={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Q0(i,l,s,o){const c=s[l],{length:d,position:h}=f5[l],m=c.current,p=s.time;c.current=i[`scroll${h}`],c.scrollLength=i[`scroll${d}`]-i[`client${d}`],c.offset.length=0,c.offset[0]=0,c.offset[1]=c.scrollLength,c.progress=da(0,c.scrollLength,c.current);const y=o-p;c.velocity=y>r5?0:Gc(c.current-m,y)}function h5(i,l,s){Q0(i,"x",l,s),Q0(i,"y",l,s),l.time=s}function d5(i,l){const s={x:0,y:0};let o=i;for(;o&&o!==l;)if(lf(o))s.x+=o.offsetLeft,s.y+=o.offsetTop,o=o.offsetParent;else if(o.tagName==="svg"){const c=o.getBoundingClientRect();o=o.parentElement;const d=o.getBoundingClientRect();s.x+=c.left-d.left,s.y+=c.top-d.top}else if(o instanceof SVGGraphicsElement){const{x:c,y:d}=o.getBBox();s.x+=c,s.y+=d;let h=null,m=o.parentNode;for(;!h;)m.tagName==="svg"&&(h=m),m=o.parentNode;o=h}else break;return s}const Nc={start:0,center:.5,end:1};function K0(i,l,s=0){let o=0;if(i in Nc&&(i=Nc[i]),typeof i=="string"){const c=parseFloat(i);i.endsWith("px")?o=c:i.endsWith("%")?i=c/100:i.endsWith("vw")?o=c/100*document.documentElement.clientWidth:i.endsWith("vh")?o=c/100*document.documentElement.clientHeight:i=c}return typeof i=="number"&&(o=l*i),s+o}const m5=[0,0];function p5(i,l,s,o){let c=Array.isArray(i)?i:m5,d=0,h=0;return typeof i=="number"?c=[i,i]:typeof i=="string"&&(i=i.trim(),i.includes(" ")?c=i.split(" "):c=[i,Nc[i]?i:"0"]),d=K0(c[0],s,o),h=K0(c[1],l),d-h}const y5={All:[[0,0],[1,1]]},g5={x:0,y:0};function v5(i){return"getBBox"in i&&i.tagName!=="svg"?i.getBBox():{width:i.clientWidth,height:i.clientHeight}}function S5(i,l,s){const{offset:o=y5.All}=s,{target:c=i,axis:d="y"}=s,h=d==="y"?"height":"width",m=c!==i?d5(c,i):g5,p=c===i?{width:i.scrollWidth,height:i.scrollHeight}:v5(c),y={width:i.clientWidth,height:i.clientHeight};l[d].offset.length=0;let v=!l[d].interpolate;const b=o.length;for(let x=0;x{b5(i,o.target,s),h5(i,s,c),(o.offset||o.target)&&S5(i,s,o)},notify:()=>l(s)}}const pl=new WeakMap,J0=new WeakMap,fc=new WeakMap,F0=i=>i===document.scrollingElement?window:i;function _p(i,{container:l=document.scrollingElement,...s}={}){if(!l)return ge;let o=fc.get(l);o||(o=new Set,fc.set(l,o));const c=c5(),d=T5(l,i,c,s);if(o.add(d),!pl.has(l)){const m=()=>{for(const b of o)b.measure(Wt.timestamp);xt.preUpdate(p)},p=()=>{for(const b of o)b.notify()},y=()=>xt.read(m);pl.set(l,y);const v=F0(l);window.addEventListener("resize",y,{passive:!0}),l!==document.documentElement&&J0.set(l,S3(l,y)),v.addEventListener("scroll",y,{passive:!0}),y()}const h=pl.get(l);return xt.read(h,!1,!0),()=>{Je(h);const m=fc.get(l);if(!m||(m.delete(d),m.size))return;const p=pl.get(l);pl.delete(l),p&&(F0(l).removeEventListener("scroll",p),J0.get(l)?.(),window.removeEventListener("resize",p))}}const k0=new Map;function x5(i){const l={value:0},s=_p(o=>{l.value=o[i.axis].progress*100},i);return{currentTime:l,cancel:s}}function wp({source:i,container:l,...s}){const{axis:o}=s;i&&(l=i);const c=k0.get(l)??new Map;k0.set(l,c);const d=s.target??"self",h=c.get(d)??{},m=o+(s.offset??[]).join(",");return h[m]||(h[m]=!s.target&&j2()?new ScrollTimeline({source:l,axis:o}):x5({container:l,...s})),h[m]}function A5(i,l){const s=wp(l);return i.attachTimeline({timeline:l.target?void 0:s,observe:o=>(o.pause(),K2(c=>{o.time=o.iterationDuration*c},s))})}function E5(i){return i.length===2}function M5(i,l){return E5(i)?_p(s=>{i(s[l.axis].progress,s)},l):K2(i,wp(l))}function C5(i,{axis:l="y",container:s=document.scrollingElement,...o}={}){if(!s)return ge;const c={axis:l,container:s,...o};return typeof i=="function"?M5(i,c):A5(i,c)}const D5=()=>({scrollX:Ke(0),scrollY:Ke(0),scrollXProgress:Ke(0),scrollYProgress:Ke(0)}),eu=i=>i?!i.current:!1;function Bp({container:i,target:l,...s}={}){const o=pa(D5),c=Y.useRef(null),d=Y.useRef(!1),h=Y.useCallback(()=>(c.current=C5((m,{x:p,y})=>{o.scrollX.set(p.current),o.scrollXProgress.set(p.progress),o.scrollY.set(y.current),o.scrollYProgress.set(y.progress)},{...s,container:i?.current||void 0,target:l?.current||void 0}),()=>{c.current?.()}),[i,l,JSON.stringify(s.offset)]);return Su(()=>{if(d.current=!1,eu(i)||eu(l)){d.current=!0;return}else return h()},[h]),Y.useEffect(()=>{if(d.current)return Al(!eu(i)),Al(!eu(l)),h()},[h]),o}function z5(i){const l=pa(()=>Ke(i)),{isStatic:s}=Y.useContext(Tu);if(s){const[,o]=Y.useState(i);Y.useEffect(()=>l.on("change",o),[])}return l}function Up(i,l){const s=z5(l()),o=()=>s.set(l());return o(),Su(()=>{const c=()=>xt.preRender(o,!1,!0),d=i.map(h=>h.on("change",c));return()=>{d.forEach(h=>h()),Je(o)}}),s}function j5(i){Sl.current=[],i();const l=Up(Sl.current,i);return Sl.current=void 0,l}function yu(i,l,s,o){if(typeof i=="function")return j5(i);const c=typeof l=="function"?l:T3(l,s,o);return Array.isArray(i)?W0(i,c):W0([i],([d])=>c(d))}function W0(i,l){const s=pa(()=>[]);return Up(i,()=>{s.length=0;const o=i.length;for(let c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(s[o]=i[o])}return s}function V5(i,l){if(i==null)return{};var s={};for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){if(l.indexOf(o)>=0)continue;s[o]=i[o]}return s}function gu(){return gu=Object.assign?Object.assign.bind():function(i){for(var l=1;lSi.createElement(l.tag,vu({key:s},l.attr),Lp(l.child)))}function Dt(i){return l=>Si.createElement(B5,gu({attr:vu({},i.attr)},l),Lp(i.child))}function B5(i){var l=s=>{var{attr:o,size:c,title:d}=i,h=R5(i,O5),m=c||s.size||"1em",p;return s.className&&(p=s.className),i.className&&(p=(p?p+" ":"")+i.className),Si.createElement("svg",gu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,h,{className:p,style:vu(vu({color:i.color||s.color},s.style),i.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),d&&Si.createElement("title",null,d),i.children)};return P0!==void 0?Si.createElement(P0.Consumer,null,s=>l(s)):l(Hp)}function U5(i){return Dt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(i)}function H5(i){return Dt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(i)}function L5(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(i)}function Y5(i){return Dt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(i)}function q5(i){return Dt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"},child:[]}]})(i)}function G5(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},child:[]}]})(i)}function X5(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},child:[]}]})(i)}function nu(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(i)}function Z5(i){return Dt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"},child:[]}]})(i)}function Q5(i){return Dt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"},child:[]}]})(i)}function K5(i){return Dt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"},child:[]}]})(i)}function Yp(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(i)}function J5(i){return Dt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"},child:[]}]})(i)}function F5(i){return Dt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"},child:[]}]})(i)}function k5(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(i)}function W5(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M164.07 148.1H12a12 12 0 0 1-12-12v-80a36 36 0 0 1 36-36h104a36 36 0 0 1 36 36v80a11.89 11.89 0 0 1-11.93 12zm347.93-12V56a36 36 0 0 0-36-36H372a36 36 0 0 0-36 36v80a12 12 0 0 0 12 12h152a11.89 11.89 0 0 0 12-11.9zm-164 44a12 12 0 0 0-12 12v52c0 128.1-160 127.9-160 0v-52a12 12 0 0 0-12-12H12.1a12 12 0 0 0-12 12.1c.1 21.4.6 40.3 0 53.3 0 150.6 136.17 246.6 256.75 246.6s255-96 255-246.7c-.6-12.8-.2-33 0-53.2a12 12 0 0 0-12-12.1z"},child:[]}]})(i)}function P5(i){return Dt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},child:[]}]})(i)}function vf(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},child:[]}]})(i)}function $5(i){return Dt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"},child:[]}]})(i)}function qp(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(i)}function I5(i){return Dt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"},child:[]}]})(i)}function tS(i){return Dt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"},child:[]}]})(i)}function eS(i){return Dt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},child:[]}]})(i)}function I0(i){return Dt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(i)}function nS(i){return Dt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"},child:[]}]})(i)}function iS(i){return Dt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"},child:[]}]})(i)}function aS(i){return Dt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(i)}const lS=()=>S.jsx(Bt.nav,{className:"navbar",initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6},children:S.jsxs("div",{className:"navbar-container",children:[S.jsxs("div",{className:"navbar-logo",children:[S.jsx(qp,{className:"logo-icon"}),S.jsx("span",{className:"logo-text",children:"webdsites"})]}),S.jsxs("div",{className:"navbar-links",children:[S.jsx("a",{href:"#services",children:"Services"}),S.jsx("a",{href:"#features",children:"About"}),S.jsx("a",{href:"#contact",children:"Contact"})]})]})}),sS=()=>{const i=Y.useRef(null),{scrollYProgress:l}=Bp({target:i,offset:["start start","end start"]}),s=yu(l,[0,1],["0%","50%"]),o=yu(l,[0,1],[1,0]),[c,d]=Y.useState({name:"",email:"",company:"",phone:"",service:"",message:""}),[h,m]=Y.useState({type:"",message:""}),[p,y]=Y.useState(!1),v=x=>{d({...c,[x.target.name]:x.target.value})},b=async x=>{x.preventDefault(),y(!0),m({type:"",message:""});const O="https://your-n8n-instance.com/webhook/contact";try{if((await fetch(O,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...c,timestamp:new Date().toISOString(),source:"hero_form"})})).ok)m({type:"success",message:"Thank you! We'll get back to you within 24 hours."}),d({name:"",email:"",company:"",phone:"",service:"",message:""});else throw new Error("Failed to submit form")}catch(N){m({type:"error",message:"Something went wrong. Please try again or email us directly."}),console.error("Form submission error:",N)}finally{y(!1)}};return S.jsxs("section",{ref:i,className:"hero",children:[S.jsxs(Bt.div,{className:"hero-background",style:{y:s},children:[S.jsx("div",{className:"gradient-orb orb-1"}),S.jsx("div",{className:"gradient-orb orb-2"}),S.jsx("div",{className:"gradient-orb orb-3"})]}),S.jsxs("div",{className:"hero-container",children:[S.jsxs(Bt.div,{className:"hero-content-left",style:{opacity:o},children:[S.jsx(Bt.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:S.jsxs("div",{className:"hero-badge",children:[S.jsx(qp,{className:"badge-icon"}),S.jsx("span",{children:"Next-Generation Business Solutions"})]})}),S.jsxs(Bt.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:["Elevate Your Business with",S.jsx("span",{className:"gradient-text",children:" Intelligent Automation"})]}),S.jsx(Bt.p,{className:"hero-subtitle",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:"Transform your operations with cutting-edge automation solutions. From CRM management to department automation, we empower businesses to scale efficiently and focus on what truly matters."}),S.jsxs(Bt.div,{className:"hero-stats",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:[S.jsxs("div",{className:"stat",children:[S.jsx("h3",{children:"80%"}),S.jsx("p",{children:"Time Saved on Average"})]}),S.jsxs("div",{className:"stat",children:[S.jsx("h3",{children:"24h"}),S.jsx("p",{children:"Response Time"})]})]})]}),S.jsxs(Bt.div,{className:"hero-form-container",initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.8,delay:.4},children:[S.jsxs("div",{className:"hero-form-header",children:[S.jsx("h3",{children:"Get Started Today"}),S.jsx("p",{children:"Fill out the form and our team will contact you within 24 hours"})]}),S.jsxs("form",{className:"hero-form",onSubmit:b,children:[S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"text",name:"name",placeholder:"Your Name *",value:c.name,onChange:v,required:!0})}),S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"email",name:"email",placeholder:"Your Email *",value:c.email,onChange:v,required:!0})}),S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"text",name:"company",placeholder:"Company Name",value:c.company,onChange:v})}),S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:c.phone,onChange:v})}),S.jsx("div",{className:"form-group",children:S.jsxs("select",{name:"service",value:c.service,onChange:v,required:!0,children:[S.jsx("option",{value:"",children:"Select Service of Interest *"}),S.jsx("option",{value:"crm",children:"CRM Management"}),S.jsx("option",{value:"lead-gen",children:"Lead Generation"}),S.jsx("option",{value:"accounting",children:"Accounting Automation"}),S.jsx("option",{value:"employee-tracking",children:"Employee Tracking"}),S.jsx("option",{value:"app-creation",children:"Business App Creation"}),S.jsx("option",{value:"billing",children:"Billing Automation"}),S.jsx("option",{value:"email",children:"Email Automation"}),S.jsx("option",{value:"sales",children:"Sales Automation"}),S.jsx("option",{value:"social-media",children:"Social Media Automation"}),S.jsx("option",{value:"workflow",children:"Custom Workflow Automation"}),S.jsx("option",{value:"other",children:"Other / Multiple Services"})]})}),S.jsx("div",{className:"form-group",children:S.jsx("textarea",{name:"message",placeholder:"Tell us about your automation needs *",rows:"4",value:c.message,onChange:v,required:!0})}),h.message&&S.jsx("div",{className:`form-status ${h.type}`,children:h.message}),S.jsxs("button",{type:"submit",className:"btn btn-primary btn-submit",disabled:p,children:[p?"Sending...":"Get Free Consultation",S.jsx(vf,{className:"btn-icon"})]})]})]})]}),S.jsx(Bt.div,{className:"scroll-indicator",animate:{y:[0,10,0]},transition:{duration:1.5,repeat:1/0},children:S.jsx("div",{className:"mouse"})})]})};var _c=new Map,iu=new WeakMap,t2=0,uS;function oS(i){return i?(iu.has(i)||(t2+=1,iu.set(i,t2.toString())),iu.get(i)):"0"}function rS(i){return Object.keys(i).sort().filter(l=>i[l]!==void 0).map(l=>`${l}_${l==="root"?oS(i.root):i[l]}`).toString()}function cS(i){const l=rS(i);let s=_c.get(l);if(!s){const o=new Map;let c;const d=new IntersectionObserver(h=>{h.forEach(m=>{var p;const y=m.isIntersecting&&c.some(v=>m.intersectionRatio>=v);i.trackVisibility&&typeof m.isVisible>"u"&&(m.isVisible=y),(p=o.get(m.target))==null||p.forEach(v=>{v(y,m)})})},i);c=d.thresholds||(Array.isArray(i.threshold)?i.threshold:[i.threshold||0]),s={id:l,observer:d,elements:o},_c.set(l,s)}return s}function fS(i,l,s={},o=uS){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const p=i.getBoundingClientRect();return l(o,{isIntersecting:o,target:i,intersectionRatio:typeof s.threshold=="number"?s.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),()=>{}}const{id:c,observer:d,elements:h}=cS(s),m=h.get(i)||[];return h.has(i)||h.set(i,m),m.push(l),d.observe(i),function(){m.splice(m.indexOf(l),1),m.length===0&&(h.delete(i),d.unobserve(i)),h.size===0&&(d.disconnect(),_c.delete(c))}}function Sf({threshold:i,delay:l,trackVisibility:s,rootMargin:o,root:c,triggerOnce:d,skip:h,initialInView:m,fallbackInView:p,onChange:y}={}){var v;const[b,x]=Y.useState(null),O=Y.useRef(y),N=Y.useRef(m),[H,X]=Y.useState({inView:!!m,entry:void 0});O.current=y,Y.useEffect(()=>{if(N.current===void 0&&(N.current=m),h||!b)return;let $;return $=fS(b,(J,I)=>{const Q=N.current;N.current=J,!(Q===void 0&&!J)&&(X({inView:J,entry:I}),O.current&&O.current(J,I),I.isIntersecting&&d&&$&&($(),$=void 0))},{root:c,rootMargin:o,threshold:i,trackVisibility:s,delay:l},p),()=>{$&&$()}},[Array.isArray(i)?i.toString():i,b,c,o,d,h,s,p,l]);const q=(v=H.entry)==null?void 0:v.target,G=Y.useRef(void 0);!b&&q&&!d&&!h&&G.current!==q&&(G.current=q,X({inView:!!m,entry:void 0}),N.current=m);const L=[x,H.inView,H.entry];return L.ref=L[0],L.inView=L[1],L.entry=L[2],L}const hS=[{icon:X5,title:"CRM Management",description:"Streamline customer relationships with intelligent CRM automation. Track interactions, manage pipelines, and nurture leads effortlessly.",color:"#6366f1"},{icon:W5,title:"Lead Generation",description:"Automate lead capture, qualification, and nurturing. Convert prospects into customers with smart workflows and targeted campaigns.",color:"#8b5cf6"},{icon:q5,title:"Accounting Automation",description:"Eliminate manual bookkeeping. Automate invoicing, expense tracking, reconciliation, and financial reporting with precision.",color:"#ec4899"},{icon:iS,title:"Secretary Services",description:"Digital assistants that handle scheduling, reminders, document management, and administrative tasks around the clock.",color:"#f43f5e"},{icon:nS,title:"Employee Tracking",description:"Monitor productivity, attendance, and performance. Get insights into workforce efficiency and optimize resource allocation.",color:"#f59e0b"},{icon:P5,title:"Business App Creation",description:"Custom mobile and web applications tailored to your business needs. Launch powerful tools without extensive development cycles.",color:"#10b981"},{icon:F5,title:"Billing Automation",description:"Automate invoicing, payment processing, and revenue recognition. Reduce errors and accelerate cash flow cycles.",color:"#06b6d4"},{icon:Yp,title:"Email Automation",description:"Create sophisticated email campaigns that trigger based on user behavior. Personalize at scale and boost engagement rates.",color:"#3b82f6"},{icon:eS,title:"Sales Automation",description:"Automate your sales pipeline from prospecting to closing. Smart follow-ups, proposal generation, and deal tracking.",color:"#8b5cf6"},{icon:I5,title:"Social Media Automation",description:"Schedule posts, monitor mentions, engage audiences, and analyze performance across all social platforms automatically.",color:"#ec4899"},{icon:Q5,title:"Workflow Automation",description:"Connect your tools and automate repetitive processes. Build custom workflows that work exactly how you need them.",color:"#6366f1"},{icon:aS,title:"Business Process Optimization",description:"Analyze, redesign, and automate your core business processes. Eliminate bottlenecks and maximize operational efficiency.",color:"#10b981"}],dS=()=>{const[i,l]=Sf({triggerOnce:!0,threshold:.1}),s={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},o={hidden:{opacity:0,y:30},show:{opacity:1,y:0}};return S.jsx("section",{id:"services",className:"services",children:S.jsxs("div",{className:"container",children:[S.jsxs(Bt.div,{className:"section-header",initial:{opacity:0,y:30},animate:l?{opacity:1,y:0}:{},transition:{duration:.6},children:[S.jsxs("h2",{children:["Comprehensive ",S.jsx("span",{className:"gradient-text",children:"Automation Solutions"})]}),S.jsx("p",{className:"section-subtitle",children:"From lead generation to billing, we automate every aspect of your business operations, allowing you to focus on growth and innovation."})]}),S.jsx(Bt.div,{ref:i,className:"services-grid",variants:s,initial:"hidden",animate:l?"show":"hidden",children:hS.map((c,d)=>S.jsxs(Bt.div,{className:"service-card",variants:o,whileHover:{y:-10,transition:{duration:.3}},children:[S.jsx("div",{className:"service-icon",style:{backgroundColor:`${c.color}15`,color:c.color},children:S.jsx(c.icon,{})}),S.jsx("h3",{children:c.title}),S.jsx("p",{children:c.description}),S.jsx("div",{className:"service-card-glow",style:{background:c.color}})]},d))})]})})},mS=[{icon:Y5,title:"Lightning Fast",description:"Deploy automation solutions in days, not months. Our pre-built workflows get you up and running instantly."},{icon:tS,title:"Enterprise Security",description:"Bank-grade encryption and compliance with industry standards. Your data is always protected."},{icon:J5,title:"Infinitely Scalable",description:"From startups to enterprises, our solutions grow with your business without breaking a sweat."},{icon:G5,title:"Actionable Analytics",description:"Real-time dashboards and insights that help you make data-driven decisions with confidence."},{icon:Z5,title:"Cloud-Native",description:"Access your automated systems anywhere, anytime. Fully cloud-based infrastructure."},{icon:k5,title:"Expert Support",description:"24/7 dedicated support team ready to help you maximize your automation potential."}],pS=()=>{const i=Y.useRef(null),[l,s]=Sf({triggerOnce:!0,threshold:.1}),{scrollYProgress:o}=Bp({target:i,offset:["start end","end start"]}),c=yu(o,[0,1],["100px","-100px"]),d=yu(o,[0,.3,.7,1],[0,1,1,0]),h=m=>{i.current=m,l(m)};return S.jsxs("section",{ref:h,className:"features",children:[S.jsx("div",{className:"container",children:S.jsxs("div",{className:"features-content",children:[S.jsxs(Bt.div,{className:"features-text",initial:{opacity:0,x:-50},animate:s?{opacity:1,x:0}:{},transition:{duration:.8},children:[S.jsxs("h2",{children:["Why Choose ",S.jsx("span",{className:"gradient-text",children:"webdsites"})]}),S.jsx("p",{className:"features-intro",children:"We're not just another automation platform. We're your strategic partner in digital transformation, combining cutting-edge technology with deep business expertise to deliver solutions that truly move the needle."}),S.jsx("p",{children:"With years of experience serving businesses across industries, we understand the unique challenges you face. Our mission is to eliminate the tedious, automate the repetitive, and empower your team to focus on innovation and growth."}),S.jsxs("div",{className:"features-highlights",children:[S.jsxs("div",{className:"highlight",children:[S.jsx("h4",{children:"98%"}),S.jsx("p",{children:"Customer Satisfaction"})]}),S.jsxs("div",{className:"highlight",children:[S.jsx("h4",{children:"50M+"}),S.jsx("p",{children:"Tasks Automated Monthly"})]}),S.jsxs("div",{className:"highlight",children:[S.jsx("h4",{children:"$2.5M+"}),S.jsx("p",{children:"Saved in Operational Costs"})]})]})]}),S.jsx(Bt.div,{className:"features-grid",style:{y:c},children:mS.map((m,p)=>S.jsxs(Bt.div,{className:"feature-item",initial:{opacity:0,y:30},animate:s?{opacity:1,y:0}:{},transition:{duration:.6,delay:p*.1},whileHover:{scale:1.05},children:[S.jsx("div",{className:"feature-icon",children:S.jsx(m.icon,{})}),S.jsx("h3",{children:m.title}),S.jsx("p",{children:m.description})]},p))})]})}),S.jsxs(Bt.div,{className:"features-background",style:{opacity:d},children:[S.jsx("div",{className:"floating-shape shape-1"}),S.jsx("div",{className:"floating-shape shape-2"}),S.jsx("div",{className:"floating-shape shape-3"})]})]})},yS=()=>{const[i,l]=Sf({triggerOnce:!0,threshold:.1}),[s,o]=Y.useState({name:"",email:"",company:"",phone:"",service:"",message:""}),[c,d]=Y.useState({type:"",message:""}),[h,m]=Y.useState(!1),p=v=>{o({...s,[v.target.name]:v.target.value})},y=async v=>{v.preventDefault(),m(!0),d({type:"",message:""});const b="https://your-n8n-instance.com/webhook/contact";try{if((await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,timestamp:new Date().toISOString(),source:"website_contact_form"})})).ok)d({type:"success",message:"Thank you! We'll get back to you within 24 hours."}),o({name:"",email:"",company:"",phone:"",service:"",message:""});else throw new Error("Failed to submit form")}catch(x){d({type:"error",message:"Something went wrong. Please try again or email us directly."}),console.error("Form submission error:",x)}finally{m(!1)}};return S.jsx("section",{id:"contact",className:"contact",children:S.jsxs("div",{className:"container",children:[S.jsxs(Bt.div,{ref:i,className:"section-header",initial:{opacity:0,y:30},animate:l?{opacity:1,y:0}:{},transition:{duration:.6},children:[S.jsxs("h2",{children:["Get Started ",S.jsx("span",{className:"gradient-text",children:"Today"})]}),S.jsx("p",{className:"section-subtitle",children:"Fill out the form below and our team will contact you within 24 hours. Get expert advice and a custom automation roadmap for your business."})]}),S.jsxs(Bt.div,{className:"contact-content",initial:{opacity:0,y:30},animate:l?{opacity:1,y:0}:{},transition:{duration:.6,delay:.2},children:[S.jsxs("div",{className:"contact-info",children:[S.jsx("h3",{children:"Get in Touch"}),S.jsx("p",{children:"Whether you're looking to automate a single process or transform your entire operation, we're here to help. Our team of experts will work with you to design the perfect solution."}),S.jsxs("div",{className:"contact-details",children:[S.jsxs("div",{className:"detail",children:[S.jsx("h4",{children:"Email"}),S.jsx("p",{children:"hello@webdsites.com"})]}),S.jsxs("div",{className:"detail",children:[S.jsx("h4",{children:"Phone"}),S.jsx("p",{children:"+1 (555) 123-4567"})]}),S.jsxs("div",{className:"detail",children:[S.jsx("h4",{children:"Response Time"}),S.jsx("p",{children:"Within 24 hours"})]})]}),S.jsxs("div",{className:"contact-benefits",children:[S.jsx("h4",{children:"What to Expect:"}),S.jsxs("ul",{children:[S.jsxs("li",{children:[S.jsx(nu,{})," Free consultation call"]}),S.jsxs("li",{children:[S.jsx(nu,{})," Custom automation roadmap"]}),S.jsxs("li",{children:[S.jsx(nu,{})," ROI analysis for your business"]}),S.jsxs("li",{children:[S.jsx(nu,{})," No-obligation proposal"]})]})]})]}),S.jsxs("form",{className:"contact-form",onSubmit:y,children:[S.jsxs("div",{className:"form-row",children:[S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"text",name:"name",placeholder:"Your Name *",value:s.name,onChange:p,required:!0})}),S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"email",name:"email",placeholder:"Your Email *",value:s.email,onChange:p,required:!0})})]}),S.jsxs("div",{className:"form-row",children:[S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"text",name:"company",placeholder:"Company Name",value:s.company,onChange:p})}),S.jsx("div",{className:"form-group",children:S.jsx("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:s.phone,onChange:p})})]}),S.jsx("div",{className:"form-group",children:S.jsxs("select",{name:"service",value:s.service,onChange:p,required:!0,children:[S.jsx("option",{value:"",children:"Select Service of Interest *"}),S.jsx("option",{value:"crm",children:"CRM Management"}),S.jsx("option",{value:"lead-gen",children:"Lead Generation"}),S.jsx("option",{value:"accounting",children:"Accounting Automation"}),S.jsx("option",{value:"employee-tracking",children:"Employee Tracking"}),S.jsx("option",{value:"app-creation",children:"Business App Creation"}),S.jsx("option",{value:"billing",children:"Billing Automation"}),S.jsx("option",{value:"email",children:"Email Automation"}),S.jsx("option",{value:"sales",children:"Sales Automation"}),S.jsx("option",{value:"social-media",children:"Social Media Automation"}),S.jsx("option",{value:"workflow",children:"Custom Workflow Automation"}),S.jsx("option",{value:"other",children:"Other / Multiple Services"})]})}),S.jsx("div",{className:"form-group",children:S.jsx("textarea",{name:"message",placeholder:"Tell us about your automation needs *",rows:"5",value:s.message,onChange:p,required:!0})}),c.message&&S.jsx("div",{className:`form-status ${c.type}`,children:c.message}),S.jsxs("button",{type:"submit",className:"btn btn-primary btn-submit",disabled:h,children:[h?"Sending...":"Send Message",S.jsx(vf,{className:"btn-icon"})]})]})]})]})})},gS=()=>{const i=new Date().getFullYear();return S.jsx("footer",{className:"footer",children:S.jsxs("div",{className:"container",children:[S.jsxs("div",{className:"footer-content",children:[S.jsxs("div",{className:"footer-section",children:[S.jsx("h3",{className:"footer-logo",children:"webdsites"}),S.jsx("p",{children:"Empowering businesses through intelligent automation. Transform your operations and focus on what matters most."}),S.jsxs("div",{className:"social-links",children:[S.jsx("a",{href:"https://linkedin.com",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",children:S.jsx(H5,{})}),S.jsx("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter",children:S.jsx(L5,{})}),S.jsx("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",children:S.jsx(U5,{})}),S.jsx("a",{href:"mailto:hello@webdsites.com","aria-label":"Email",children:S.jsx(Yp,{})})]})]}),S.jsxs("div",{className:"footer-section",children:[S.jsx("h4",{children:"Services"}),S.jsxs("ul",{children:[S.jsx("li",{children:S.jsx("a",{href:"#services",children:"CRM Management"})}),S.jsx("li",{children:S.jsx("a",{href:"#services",children:"Lead Generation"})}),S.jsx("li",{children:S.jsx("a",{href:"#services",children:"Accounting Automation"})}),S.jsx("li",{children:S.jsx("a",{href:"#services",children:"Email Automation"})}),S.jsx("li",{children:S.jsx("a",{href:"#services",children:"Sales Automation"})})]})]}),S.jsxs("div",{className:"footer-section",children:[S.jsx("h4",{children:"Company"}),S.jsxs("ul",{children:[S.jsx("li",{children:S.jsx("a",{href:"#features",children:"About Us"})}),S.jsx("li",{children:S.jsx("a",{href:"#services",children:"Solutions"})}),S.jsx("li",{children:S.jsx("a",{href:"#contact",children:"Contact"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Careers"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Blog"})})]})]}),S.jsxs("div",{className:"footer-section",children:[S.jsx("h4",{children:"Resources"}),S.jsxs("ul",{children:[S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Documentation"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"API Reference"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Case Studies"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Support Center"})}),S.jsx("li",{children:S.jsx("a",{href:"#hero",children:"Privacy Policy"})})]})]})]}),S.jsxs("div",{className:"footer-bottom",children:[S.jsxs("p",{children:["© ",i," webdsites. All rights reserved."]}),S.jsx("p",{children:"Built with passion for automation"})]})]})})},vS=()=>{const[i,l]=Y.useState(!1),[s,o]=Y.useState([{type:"bot",text:"Hello! I'm your virtual assistant. How can I help you today?",timestamp:new Date}]),[c,d]=Y.useState(""),[h,m]=Y.useState(!1),p=Y.useRef(null),y=()=>{p.current?.scrollIntoView({behavior:"smooth"})};Y.useEffect(()=>{y()},[s]);const v=async N=>{if(N.preventDefault(),!c.trim())return;const H={type:"user",text:c,timestamp:new Date};o(q=>[...q,H]),d(""),m(!0);const X="https://your-n8n-instance.com/webhook/chat";try{const G=await(await fetch(X,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:c,sessionId:b(),timestamp:new Date().toISOString(),conversationHistory:s.slice(-5)})})).json();setTimeout(()=>{o(L=>[...L,{type:"bot",text:G.response||"Thank you for your message. Our team will get back to you shortly.",timestamp:new Date}]),m(!1)},1e3)}catch(q){console.error("Chat error:",q),setTimeout(()=>{o(G=>[...G,{type:"bot",text:"I'm having trouble connecting right now. Please try the contact form or email us at hello@webdsites.com.",timestamp:new Date}]),m(!1)},1e3)}},b=()=>{let N=sessionStorage.getItem("chat_session_id");return N||(N=`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,sessionStorage.setItem("chat_session_id",N)),N},x=["Tell me about your services","Pricing information","Schedule a demo","Talk to sales"],O=N=>{d(N)};return S.jsxs(S.Fragment,{children:[S.jsx(O3,{children:i&&S.jsxs(Bt.div,{className:"chatbox",initial:{opacity:0,y:100,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:100,scale:.8},transition:{duration:.3},children:[S.jsxs("div",{className:"chatbox-header",children:[S.jsxs("div",{className:"chatbox-header-content",children:[S.jsx($5,{className:"chatbox-avatar"}),S.jsxs("div",{children:[S.jsx("h4",{children:"webdsites Assistant"}),S.jsx("span",{className:"status",children:"Online"})]})]}),S.jsx("button",{className:"chatbox-close",onClick:()=>l(!1),"aria-label":"Close chat",children:S.jsx(I0,{})})]}),S.jsxs("div",{className:"chatbox-messages",children:[s.map((N,H)=>S.jsxs(Bt.div,{className:`message ${N.type}`,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[S.jsx("div",{className:"message-content",children:N.text}),S.jsx("div",{className:"message-time",children:N.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]},H)),h&&S.jsx(Bt.div,{className:"message bot",initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:S.jsxs("div",{className:"message-content typing-indicator",children:[S.jsx("span",{}),S.jsx("span",{}),S.jsx("span",{})]})}),S.jsx("div",{ref:p})]}),s.length===1&&S.jsx("div",{className:"quick-replies",children:x.map((N,H)=>S.jsx("button",{className:"quick-reply-btn",onClick:()=>O(N),children:N},H))}),S.jsxs("form",{className:"chatbox-input",onSubmit:v,children:[S.jsx("input",{type:"text",placeholder:"Type your message...",value:c,onChange:N=>d(N.target.value),disabled:h}),S.jsx("button",{type:"submit",disabled:!c.trim()||h,"aria-label":"Send message",children:S.jsx(vf,{})})]})]})}),S.jsx(Bt.button,{className:"chatbox-toggle",onClick:()=>l(!i),whileHover:{scale:1.1},whileTap:{scale:.9},"aria-label":"Toggle chat",children:i?S.jsx(I0,{}):S.jsx(K5,{})})]})};function SS(){return S.jsxs("div",{className:"app",children:[S.jsx(lS,{}),S.jsx(sS,{}),S.jsx(dS,{}),S.jsx(pS,{}),S.jsx(yS,{}),S.jsx(gS,{}),S.jsx(vS,{})]})}Tv.createRoot(document.getElementById("root")).render(S.jsx(Y.StrictMode,{children:S.jsx(SS,{})}));