function J1(a,i){for(var s=0;so[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.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 f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).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 F1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ic={exports:{}},zl={};/** * @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 Bp;function P1(){if(Bp)return zl;Bp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+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:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return zl.Fragment=i,zl.jsx=s,zl.jsxs=s,zl}var Lp;function W1(){return Lp||(Lp=1,ic.exports=P1()),ic.exports}var x=W1(),lc={exports:{}},ct={};/** * @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 Hp;function $1(){if(Hp)return ct;Hp=1;var a=Symbol.for("react.transitional.element"),i=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"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function M(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,H={};function Y(A,_,J){this.props=A,this.context=_,this.refs=H,this.updater=J||j}Y.prototype.isReactComponent={},Y.prototype.setState=function(A,_){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,_,"setState")},Y.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Q(){}Q.prototype=Y.prototype;function q(A,_,J){this.props=A,this.context=_,this.refs=H,this.updater=J||j}var Z=q.prototype=new Q;Z.constructor=q,B(Z,Y.prototype),Z.isPureReactComponent=!0;var K=Array.isArray;function lt(){}var P={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function at(A,_,J){var W=J.ref;return{$$typeof:a,type:A,key:_,ref:W!==void 0?W:null,props:J}}function Et(A,_){return at(A.type,_,A.props)}function qt(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function Ct(A){var _={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return _[J]})}var ce=/\/+/g;function fe(A,_){return typeof A=="object"&&A!==null&&A.key!=null?Ct(""+A.key):_.toString(36)}function Yt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(lt,lt):(A.status="pending",A.then(function(_){A.status==="pending"&&(A.status="fulfilled",A.value=_)},function(_){A.status==="pending"&&(A.status="rejected",A.reason=_)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,_,J,W,it){var ot=typeof A;(ot==="undefined"||ot==="boolean")&&(A=null);var bt=!1;if(A===null)bt=!0;else switch(ot){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(A.$$typeof){case a:case i:bt=!0;break;case v:return bt=A._init,O(bt(A._payload),_,J,W,it)}}if(bt)return it=it(A),bt=W===""?"."+fe(A,0):W,K(it)?(J="",bt!=null&&(J=bt.replace(ce,"$&/")+"/"),O(it,_,J,"",function(Rn){return Rn})):it!=null&&(qt(it)&&(it=Et(it,J+(it.key==null||A&&A.key===it.key?"":(""+it.key).replace(ce,"$&/")+"/")+bt)),_.push(it)),1;bt=0;var It=W===""?".":W+":";if(K(A))for(var ht=0;ht>>1,G=O[ut];if(0>>1;utc(J,F))Wc(it,J)?(O[ut]=it,O[W]=F,ut=W):(O[ut]=J,O[_]=F,ut=_);else if(Wc(it,F))O[ut]=it,O[W]=F,ut=W;else break t}}return X}function c(O,X){var F=O.sortIndex-X.sortIndex;return F!==0?F:O.id-X.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],v=1,b=null,S=3,M=!1,j=!1,B=!1,H=!1,Y=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var X=s(p);X!==null;){if(X.callback===null)o(p);else if(X.startTime<=O)o(p),X.sortIndex=X.expirationTime,i(y,X);else break;X=s(p)}}function K(O){if(B=!1,Z(O),!j)if(s(y)!==null)j=!0,lt||(lt=!0,Ct());else{var X=s(p);X!==null&&Yt(K,X.startTime-O)}}var lt=!1,P=-1,L=5,at=-1;function Et(){return H?!0:!(a.unstable_now()-atO&&Et());){var ut=b.callback;if(typeof ut=="function"){b.callback=null,S=b.priorityLevel;var G=ut(b.expirationTime<=O);if(O=a.unstable_now(),typeof G=="function"){b.callback=G,Z(O),X=!0;break e}b===s(y)&&o(y),Z(O)}else o(y);b=s(y)}if(b!==null)X=!0;else{var A=s(p);A!==null&&Yt(K,A.startTime-O),X=!1}}break t}finally{b=null,S=F,M=!1}X=void 0}}finally{X?Ct():lt=!1}}}var Ct;if(typeof q=="function")Ct=function(){q(qt)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,fe=ce.port2;ce.port1.onmessage=qt,Ct=function(){fe.postMessage(null)}}else Ct=function(){Y(qt,0)};function Yt(O,X){P=Y(function(){O(a.unstable_now())},X)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.unstable_forceFrameRate=function(O){0>O||125ut?(O.sortIndex=F,i(p,O),s(y)===null&&O===s(p)&&(B?(Q(P),P=-1):B=!0,Yt(K,F-ut))):(O.sortIndex=G,i(y,O),j||M||(j=!0,lt||(lt=!0,Ct()))),O},a.unstable_shouldYield=Et,a.unstable_wrapCallback=function(O){var X=S;return function(){var F=S;S=X;try{return O.apply(this,arguments)}finally{S=F}}}})(rc)),rc}var Yp;function nx(){return Yp||(Yp=1,oc.exports=ex()),oc.exports}var uc={exports:{}},re={};/** * @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 Gp;function ax(){if(Gp)return re;Gp=1;var a=nf();function i(y){var p="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),uc.exports=ax(),uc.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 Qp;function lx(){if(Qp)return Dl;Qp=1;var a=nx(),i=nf(),s=ix();function o(t){var e="https://react.dev/errors/"+t;if(1G||(t.current=ut[G],ut[G]=null,G--)}function J(t,e){G++,ut[G]=t.current,t.current=e}var W=A(null),it=A(null),ot=A(null),bt=A(null);function It(t,e){switch(J(ot,e),J(it,t),J(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?sp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=sp(e),t=op(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}_(W),J(W,t)}function ht(){_(W),_(it),_(ot)}function Rn(t){t.memoizedState!==null&&J(bt,t);var e=W.current,n=op(e,t.type);e!==n&&(J(it,t),J(W,n))}function cn(t){it.current===t&&(_(W),_(it)),bt.current===t&&(_(bt),El._currentValue=F)}var On,Ba;function Oe(t){if(On===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);On=e&&e[1]||"",Ba=-1)":-1r||T[l]!==z[r]){var N=` `+T[l].replace(" at new "," at ");return t.displayName&&N.includes("")&&(N=N.replace("",t.displayName)),N}while(1<=l&&0<=r);break}}}finally{qo=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Oe(n):""}function wv(t,e){switch(t.tag){case 26:case 27:case 5:return Oe(t.type);case 16:return Oe("Lazy");case 13:return t.child!==e&&e!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return Yo(t.type,!1);case 11:return Yo(t.type.render,!1);case 1:return Yo(t.type,!0);case 31:return Oe("Activity");default:return""}}function Bf(t){try{var e="",n=null;do e+=wv(t,n),n=t,t=t.return;while(t);return e}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var Go=Object.prototype.hasOwnProperty,Xo=a.unstable_scheduleCallback,Qo=a.unstable_cancelCallback,Mv=a.unstable_shouldYield,Cv=a.unstable_requestPaint,Te=a.unstable_now,zv=a.unstable_getCurrentPriorityLevel,Lf=a.unstable_ImmediatePriority,Hf=a.unstable_UserBlockingPriority,Jl=a.unstable_NormalPriority,Dv=a.unstable_LowPriority,kf=a.unstable_IdlePriority,jv=a.log,Rv=a.unstable_setDisableYieldValue,Ui=null,Ae=null;function Nn(t){if(typeof jv=="function"&&Rv(t),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Ui,t)}catch{}}var Ee=Math.clz32?Math.clz32:Vv,Ov=Math.log,Nv=Math.LN2;function Vv(t){return t>>>=0,t===0?32:31-(Ov(t)/Nv|0)|0}var Fl=256,Pl=262144,Wl=4194304;function da(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 $l(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?r=da(l):(h&=g,h!==0?r=da(h):n||(n=g&~t,n!==0&&(r=da(n))))):(g=l&~u,g!==0?r=da(g):h!==0?r=da(h):n||(n=l&~t,n!==0&&(r=da(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function Bi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function _v(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 qf(){var t=Wl;return Wl<<=1,(Wl&62914560)===0&&(Wl=4194304),t}function Zo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Li(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Uv(t,e,n,l,r,u){var h=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,z=t.hiddenUpdates;for(n=h&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Yv=/[\n"\\]/g;function Ve(t){return t.replace(Yv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $o(t,e,n,l,r,u,h,g){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ne(e)):t.value!==""+Ne(e)&&(t.value=""+Ne(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Io(t,h,Ne(e)):n!=null?Io(t,h,Ne(n)):l!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Ne(g):t.removeAttribute("name")}function td(t,e,n,l,r,u,h,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Wo(t);return}n=n!=null?""+Ne(n):"",e=e!=null?""+Ne(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Wo(t)}function Io(t,e,n){e==="number"&&es(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ga(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ir=!1;if(hn)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){ir=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{ir=!1}var _n=null,lr=null,as=null;function od(){if(as)return as;var t,e=lr,n=e.length,l,r="value"in _n?_n.value:_n.textContent,u=r.length;for(t=0;t=Qi),hd=" ",md=!1;function pd(t,e){switch(t){case"keyup":return yb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ka=!1;function vb(t,e){switch(t){case"compositionend":return yd(e);case"keypress":return e.which!==32?null:(md=!0,hd);case"textInput":return t=e.data,t===hd&&md?null:t;default:return null}}function bb(t,e){if(Ka)return t==="compositionend"||!cr&&pd(t,e)?(t=od(),as=lr=_n=null,Ka=!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=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Ed(n)}}function Md(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Md(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Cd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=es(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=es(t.document)}return e}function hr(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 Cb=hn&&"documentMode"in document&&11>=document.documentMode,Ja=null,mr=null,Fi=null,pr=!1;function zd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pr||Ja==null||Ja!==es(l)||(l=Ja,"selectionStart"in l&&hr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Fi&&Ji(Fi,l)||(Fi=l,l=Ps(mr,"onSelect"),0>=h,r-=h,$e=1<<32-Ee(e)+r|n<dt?(vt=nt,nt=null):vt=nt.sibling;var Tt=D(w,nt,C[dt],V);if(Tt===null){nt===null&&(nt=vt);break}t&&nt&&Tt.alternate===null&&e(w,nt),E=u(Tt,E,dt),St===null?st=Tt:St.sibling=Tt,St=Tt,nt=vt}if(dt===C.length)return n(w,nt),xt&&pn(w,dt),st;if(nt===null){for(;dtdt?(vt=nt,nt=null):vt=nt.sibling;var aa=D(w,nt,Tt.value,V);if(aa===null){nt===null&&(nt=vt);break}t&&nt&&aa.alternate===null&&e(w,nt),E=u(aa,E,dt),St===null?st=aa:St.sibling=aa,St=aa,nt=vt}if(Tt.done)return n(w,nt),xt&&pn(w,dt),st;if(nt===null){for(;!Tt.done;dt++,Tt=C.next())Tt=U(w,Tt.value,V),Tt!==null&&(E=u(Tt,E,dt),St===null?st=Tt:St.sibling=Tt,St=Tt);return xt&&pn(w,dt),st}for(nt=l(nt);!Tt.done;dt++,Tt=C.next())Tt=R(nt,w,dt,Tt.value,V),Tt!==null&&(t&&Tt.alternate!==null&&nt.delete(Tt.key===null?dt:Tt.key),E=u(Tt,E,dt),St===null?st=Tt:St.sibling=Tt,St=Tt);return t&&nt.forEach(function(K1){return e(w,K1)}),xt&&pn(w,dt),st}function jt(w,E,C,V){if(typeof C=="object"&&C!==null&&C.type===B&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case M:t:{for(var st=C.key;E!==null;){if(E.key===st){if(st=C.type,st===B){if(E.tag===7){n(w,E.sibling),V=r(E,C.props.children),V.return=w,w=V;break t}}else if(E.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===L&&Aa(st)===E.type){n(w,E.sibling),V=r(E,C.props),el(V,C),V.return=w,w=V;break t}n(w,E);break}else e(w,E);E=E.sibling}C.type===B?(V=va(C.props.children,w.mode,V,C.key),V.return=w,w=V):(V=hs(C.type,C.key,C.props,null,w.mode,V),el(V,C),V.return=w,w=V)}return h(w);case j:t:{for(st=C.key;E!==null;){if(E.key===st)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){n(w,E.sibling),V=r(E,C.children||[]),V.return=w,w=V;break t}else{n(w,E);break}else e(w,E);E=E.sibling}V=Tr(C,w.mode,V),V.return=w,w=V}return h(w);case L:return C=Aa(C),jt(w,E,C,V)}if(Yt(C))return $(w,E,C,V);if(Ct(C)){if(st=Ct(C),typeof st!="function")throw Error(o(150));return C=st.call(C),rt(w,E,C,V)}if(typeof C.then=="function")return jt(w,E,xs(C),V);if(C.$$typeof===q)return jt(w,E,ys(w,C),V);Ss(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(n(w,E.sibling),V=r(E,C),V.return=w,w=V):(n(w,E),V=Sr(C,w.mode,V),V.return=w,w=V),h(w)):n(w,E)}return function(w,E,C,V){try{tl=0;var st=jt(w,E,C,V);return li=null,st}catch(nt){if(nt===ii||nt===vs)throw nt;var St=Me(29,nt,null,w.mode);return St.lanes=V,St.return=w,St}finally{}}}var wa=Wd(!0),$d=Wd(!1),kn=!1;function Vr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _r(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 qn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=ds(t),_d(t,null,n),e}return fs(t,l,e,n),ds(t)}function nl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Gf(t,n)}}function Ur(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Br=!1;function al(){if(Br){var t=ai;if(t!==null)throw t}}function il(t,e,n,l){Br=!1;var r=t.updateQueue;kn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var T=g,z=T.next;T.next=null,h===null?u=z:h.next=z,h=T;var N=t.alternate;N!==null&&(N=N.updateQueue,g=N.lastBaseUpdate,g!==h&&(g===null?N.firstBaseUpdate=z:g.next=z,N.lastBaseUpdate=T))}if(u!==null){var U=r.baseState;h=0,N=z=T=null,g=u;do{var D=g.lane&-536870913,R=D!==g.lane;if(R?(gt&D)===D:(l&D)===D){D!==0&&D===ni&&(Br=!0),N!==null&&(N=N.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var $=t,rt=g;D=e;var jt=n;switch(rt.tag){case 1:if($=rt.payload,typeof $=="function"){U=$.call(jt,U,D);break t}U=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=rt.payload,D=typeof $=="function"?$.call(jt,U,D):$,D==null)break t;U=b({},U,D);break t;case 2:kn=!0}}D=g.callback,D!==null&&(t.flags|=64,R&&(t.flags|=8192),R=r.callbacks,R===null?r.callbacks=[D]:R.push(D))}else R={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},N===null?(z=N=R,T=U):N=N.next=R,h|=D;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;R=g,g=R.next,R.next=null,r.lastBaseUpdate=R,r.shared.pending=null}}while(!0);N===null&&(T=U),r.baseState=T,r.firstBaseUpdate=z,r.lastBaseUpdate=N,u===null&&(r.shared.lanes=0),Kn|=h,t.lanes=h,t.memoizedState=U}}function Id(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function th(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tu?u:8;var h=O.T,g={};O.T=g,nu(t,!1,e,n);try{var T=r(),z=O.S;if(z!==null&&z(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var N=Ub(T,l);ol(t,e,N,Re(t))}else ol(t,e,l,Re(t))}catch(U){ol(t,e,{then:function(){},status:"rejected",reason:U},Re())}finally{X.p=u,h!==null&&g.types!==null&&(h.types=g.types),O.T=h}}function Yb(){}function tu(t,e,n,l){if(t.tag!==5)throw Error(o(476));var r=Oh(t).queue;Rh(t,r,e,F,n===null?Yb:function(){return Nh(t),n(l)})}function Oh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:F},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Nh(t){var e=Oh(t);e.next===null&&(e=t.alternate.memoizedState),ol(t,e.next.queue,{},Re())}function eu(){return ie(El)}function Vh(){return Xt().memoizedState}function _h(){return Xt().memoizedState}function Gb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=qn(n);var l=Yn(e,t,n);l!==null&&(Se(l,e,n),nl(l,e,n)),e={cache:jr()},t.payload=e;return}e=e.return}}function Xb(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(t)?Bh(e,n):(n=br(t,e,n,l),n!==null&&(Se(n,t,l),Lh(n,e,l)))}function Uh(t,e,n){var l=Re();ol(t,e,n,l)}function ol(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(t))Bh(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,g=u(h,n);if(r.hasEagerState=!0,r.eagerState=g,we(g,h))return fs(t,e,r,0),Rt===null&&cs(),!1}catch{}finally{}if(n=br(t,e,r,l),n!==null)return Se(n,t,l),Lh(n,e,l),!0}return!1}function nu(t,e,n,l){if(l={lane:2,revertLane:Vu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rs(t)){if(e)throw Error(o(479))}else e=br(t,n,l,2),e!==null&&Se(e,t,2)}function Rs(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Bh(t,e){oi=Es=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Lh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Gf(t,n)}}var rl={readContext:ie,use:Cs,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};rl.useEffectEvent=Lt;var Hh={readContext:ie,use:Cs,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:Th,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ds(4194308,4,Mh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ds(4194308,4,t,e)},useInsertionEffect:function(t,e){Ds(4,2,t,e)},useMemo:function(t,e){var n=de();e=e===void 0?null:e;var l=t();if(Ma){Nn(!0);try{t()}finally{Nn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=de();if(n!==void 0){var r=n(e);if(Ma){Nn(!0);try{n(e)}finally{Nn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=Xb.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=Fr(t);var e=t.queue,n=Uh.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:$r,useDeferredValue:function(t,e){var n=de();return Ir(n,t,e)},useTransition:function(){var t=Fr(!1);return t=Rh.bind(null,ft,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,r=de();if(xt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Rt===null)throw Error(o(349));(gt&127)!==0||sh(l,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,Th(rh.bind(null,l,u,t),[t]),l.flags|=2048,ui(9,{destroy:void 0},oh.bind(null,l,u,n,e),null),n},useId:function(){var t=de(),e=Rt.identifierPrefix;if(xt){var n=Ie,l=$e;n=(l&~(1<<32-Ee(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ws++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}u[ne]=e,u[pe]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(se(u,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Sn(e)}}return _t(e),yu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Sn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=ot.current,ti(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ae,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ne]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ip(t.nodeValue,n)),t||Ln(e,!0)}else t=Ws(t).createTextNode(l),t[ne]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=ti(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(o(558))}return _t(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ti(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),r=!1}else r=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Us(e,e.updateQueue),_t(e),null);case 4:return ht(),t===null&&Lu(e.stateNode.containerInfo),_t(e),null;case 10:return gn(e.type),_t(e),null;case 19:if(_(Gt),l=e.memoizedState,l===null)return _t(e),null;if(r=(e.flags&128)!==0,u=l.rendering,u===null)if(r)cl(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=As(t),u!==null){for(e.flags|=128,cl(l,!1),t=u.updateQueue,e.updateQueue=t,Us(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ud(n,t),n=n.sibling;return J(Gt,Gt.current&1|2),xt&&pn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Te()>qs&&(e.flags|=128,r=!0,cl(l,!1),e.lanes=4194304)}else{if(!r)if(t=As(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Us(e,t),cl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!xt)return _t(e),null}else 2*Te()-l.renderingStartTime>qs&&n!==536870912&&(e.flags|=128,r=!0,cl(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Te(),t.sibling=null,n=Gt.current,J(Gt,r?n&1|2:n&1),xt&&pn(e,l.treeForkCount),t):(_t(e),null);case 22:case 23:return ze(e),Hr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&Us(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&_(Ta),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),gn(Qt),_t(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Fb(t,e){switch(Er(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gn(Qt),ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return cn(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(o(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _(Gt),null;case 4:return ht(),null;case 10:return gn(e.type),null;case 22:case 23:return ze(e),Hr(),t!==null&&_(Ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gn(Qt),null;case 25:return null;default:return null}}function um(t,e){switch(Er(e),e.tag){case 3:gn(Qt),ht();break;case 26:case 27:case 5:cn(e);break;case 4:ht();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:_(Gt);break;case 10:gn(e.type);break;case 22:case 23:ze(e),Hr(),t!==null&&_(Ta);break;case 24:gn(Qt)}}function fl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==r)}}catch(g){Mt(e,e.return,g)}}function Qn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var u=r.next;l=u;do{if((l.tag&t)===t){var h=l.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,r=e;var T=n,z=g;try{z()}catch(N){Mt(r,T,N)}}}l=l.next}while(l!==u)}}catch(N){Mt(e,e.return,N)}}function cm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{th(e,n)}catch(l){Mt(t,t.return,l)}}}function fm(t,e,n){n.props=Ca(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function dl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Mt(t,e,r)}}function tn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Mt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Mt(t,e,r)}else n.current=null}function dm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Mt(t,t.return,r)}}function gu(t,e,n){try{var l=t.stateNode;g1(l,t.type,n,e),l[pe]=e}catch(r){Mt(t,t.return,r)}}function hm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&$n(t.type)||t.tag===4}function vu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||hm(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&&$n(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 bu(t,e,n){var l=t.tag;if(l===5||l===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=dn));else if(l!==4&&(l===27&&$n(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(bu(t,e,n),t=t.sibling;t!==null;)bu(t,e,n),t=t.sibling}function Bs(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&$n(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Bs(t,e,n),t=t.sibling;t!==null;)Bs(t,e,n),t=t.sibling}function mm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);se(e,l,n),e[ne]=t,e[pe]=n}catch(u){Mt(t,t.return,u)}}var Tn=!1,Jt=!1,xu=!1,pm=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Pb(t,e){if(t=t.containerInfo,qu=io,t=Cd(t),hr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,g=-1,T=-1,z=0,N=0,U=t,D=null;e:for(;;){for(var R;U!==n||r!==0&&U.nodeType!==3||(g=h+r),U!==u||l!==0&&U.nodeType!==3||(T=h+l),U.nodeType===3&&(h+=U.nodeValue.length),(R=U.firstChild)!==null;)D=U,U=R;for(;;){if(U===t)break e;if(D===n&&++z===r&&(g=h),D===u&&++N===l&&(T=h),(R=U.nextSibling)!==null)break;U=D,D=U.parentNode}U=R}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yu={focusedElem:t,selectionRange:n},io=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,u=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"))),se(u,l,n),u[ne]=t,te(u),l=u;break t;case"link":var h=Sp("link","href",r).get(l+(n.href||""));if(h){for(var g=0;gjt&&(h=jt,jt=rt,rt=h);var w=wd(g,rt),E=wd(g,jt);if(w&&E&&(R.rangeCount!==1||R.anchorNode!==w.node||R.anchorOffset!==w.offset||R.focusNode!==E.node||R.focusOffset!==E.offset)){var C=U.createRange();C.setStart(w.node,w.offset),R.removeAllRanges(),rt>jt?(R.addRange(C),R.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),R.addRange(C))}}}}for(U=[],R=g;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;gn?32:n,O.T=null,n=Cu,Cu=null;var u=Fn,h=Cn;if(Pt=0,mi=Fn=null,Cn=0,(At&6)!==0)throw Error(o(331));var g=At;if(At|=4,Mm(u.current),Am(u,u.current,h,n),At=g,vl(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Ui,u)}catch{}return!0}finally{X.p=r,O.T=l,Xm(t,e)}}function Zm(t,e,n){e=Ue(n,e),e=su(t.stateNode,e,2),t=Yn(t,e,2),t!==null&&(Li(t,2),en(t))}function Mt(t,e,n){if(t.tag===3)Zm(t,t,n);else for(;e!==null;){if(e.tag===3){Zm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Jn===null||!Jn.has(l))){t=Ue(n,t),n=Kh(2),l=Yn(e,n,2),l!==null&&(Jh(n,l,e,t),Li(l,2),en(l));break}}e=e.return}}function Ru(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Ib;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Au=!0,r.add(n),t=i1.bind(null,t,e,n),e.then(t,t))}function i1(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rt===t&&(gt&n)===n&&(Ht===4||Ht===3&&(gt&62914560)===gt&&300>Te()-ks?(At&2)===0&&pi(t,0):Eu|=n,hi===gt&&(hi=0)),en(t)}function Km(t,e){e===0&&(e=qf()),t=ga(t,e),t!==null&&(Li(t,e),en(t))}function l1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Km(t,n)}function s1(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),Km(t,n)}function o1(t,e){return Xo(t,e)}var Ks=null,gi=null,Ou=!1,Js=!1,Nu=!1,Wn=0;function en(t){t!==gi&&t.next===null&&(gi===null?Ks=gi=t:gi=gi.next=t),Js=!0,Ou||(Ou=!0,u1())}function vl(t,e){if(!Nu&&Js){Nu=!0;do for(var n=!1,l=Ks;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var u=0;else{var h=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-Ee(42|t)+1)-1,u&=r&~(h&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Wm(l,u))}else u=gt,u=$l(l,l===Rt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Bi(l,u)||(n=!0,Wm(l,u));l=l.next}while(n);Nu=!1}}function r1(){Jm()}function Jm(){Js=Ou=!1;var t=0;Wn!==0&&b1()&&(t=Wn);for(var e=Te(),n=null,l=Ks;l!==null;){var r=l.next,u=Fm(l,e);u===0?(l.next=null,n===null?Ks=r:n.next=r,r===null&&(gi=n)):(n=l,(t!==0||(u&3)!==0)&&(Js=!0)),l=r}Pt!==0&&Pt!==5||vl(t),Wn!==0&&(Wn=0)}function Fm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0g)break;var N=T.transferSize,U=T.initiatorType;N&&lp(U)&&(T=T.responseEnd,h+=N*(T"u"?null:document;function gp(t,e,n){var l=vi;if(l&&typeof e=="string"&&e){var r=Ve(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),yp.has(r)||(yp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),se(e,"link",t),te(e),l.head.appendChild(e)))}}function z1(t){zn.D(t),gp("dns-prefetch",t,null)}function D1(t,e){zn.C(t,e),gp("preconnect",t,e)}function j1(t,e,n){zn.L(t,e,n);var l=vi;if(l&&t&&e){var r='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ve(n.imageSizes)+'"]')):r+='[href="'+Ve(t)+'"]';var u=r;switch(e){case"style":u=bi(t);break;case"script":u=xi(t)}Ye.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ye.set(u,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Tl(u))||e==="script"&&l.querySelector(Al(u))||(e=l.createElement("link"),se(e,"link",t),te(e),l.head.appendChild(e)))}}function R1(t,e){zn.m(t,e);var n=vi;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ve(l)+'"][href="'+Ve(t)+'"]',u=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=xi(t)}if(!Ye.has(u)&&(t=b({rel:"modulepreload",href:t},e),Ye.set(u,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Al(u)))return}l=n.createElement("link"),se(l,"link",t),te(l),n.head.appendChild(l)}}}function O1(t,e,n){zn.S(t,e,n);var l=vi;if(l&&t){var r=qa(l).hoistableStyles,u=bi(t);e=e||"default";var h=r.get(u);if(!h){var g={loading:0,preload:null};if(h=l.querySelector(Tl(u)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(u))&&Fu(t,n);var T=h=l.createElement("link");te(T),se(T,"link",t),T._p=new Promise(function(z,N){T.onload=z,T.onerror=N}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Is(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:g},r.set(u,h)}}}function N1(t,e){zn.X(t,e);var n=vi;if(n&&t){var l=qa(n).hoistableScripts,r=xi(t),u=l.get(r);u||(u=n.querySelector(Al(r)),u||(t=b({src:t,async:!0},e),(e=Ye.get(r))&&Pu(t,e),u=n.createElement("script"),te(u),se(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function V1(t,e){zn.M(t,e);var n=vi;if(n&&t){var l=qa(n).hoistableScripts,r=xi(t),u=l.get(r);u||(u=n.querySelector(Al(r)),u||(t=b({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&Pu(t,e),u=n.createElement("script"),te(u),se(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function vp(t,e,n,l){var r=(r=ot.current)?$s(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=bi(n.href),n=qa(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=bi(n.href);var u=qa(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Tl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Ye.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},Ye.set(t,n),u||_1(r,t,n,h.state))),e&&l===null)throw Error(o(528,""));return h}if(e&&l!==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=xi(n),n=qa(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function bi(t){return'href="'+Ve(t)+'"'}function Tl(t){return'link[rel="stylesheet"]['+t+"]"}function bp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function _1(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),se(e,"link",n),te(e),t.head.appendChild(e))}function xi(t){return'[src="'+Ve(t)+'"]'}function Al(t){return"script[async]"+t}function xp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(l)return e.instance=l,te(l),l;var r=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),te(l),se(l,"style",r),Is(l,n.precedence,t),e.instance=l;case"stylesheet":r=bi(n.href);var u=t.querySelector(Tl(r));if(u)return e.state.loading|=4,e.instance=u,te(u),u;l=bp(n),(r=Ye.get(r))&&Fu(l,r),u=(t.ownerDocument||t).createElement("link"),te(u);var h=u;return h._p=new Promise(function(g,T){h.onload=g,h.onerror=T}),se(u,"link",l),e.state.loading|=4,Is(u,n.precedence,t),e.instance=u;case"script":return u=xi(n.src),(r=t.querySelector(Al(u)))?(e.instance=r,te(r),r):(l=n,(r=Ye.get(u))&&(l=b({},n),Pu(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),te(r),se(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Is(l,n.precedence,t));return e.instance}function Is(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,u=r,h=0;h title"):null)}function U1(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 Ap(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function B1(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=bi(l.href),u=e.querySelector(Tl(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=eo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,te(u);return}u=e.ownerDocument||e,l=bp(l),(r=Ye.get(r))&&Fu(l,r),u=u.createElement("link"),te(u);var h=u;h._p=new Promise(function(g,T){h.onload=g,h.onerror=T}),se(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=eo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Wu=0;function L1(t,e){return t.stylesheets&&t.count===0&&ao(t,t.stylesheets),0Wu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function eo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ao(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var no=null;function ao(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,no=new Map,e.forEach(H1,t),no=null,eo.call(t))}function H1(t,e){if(!(e.state.loading&4)){var n=no.get(t);if(n)var l=n.get(null);else{n=new Map,no.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),sc.exports=lx(),sc.exports}var ox=sx();/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rx=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ux=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,o)=>o?o.toUpperCase():s.toLowerCase()),Kp=a=>{const i=ux(a);return i.charAt(0).toUpperCase()+i.slice(1)},xg=(...a)=>a.filter((i,s,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===s).join(" ").trim(),cx=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var fx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=k.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:f,...m},y)=>k.createElement("svg",{ref:y,...fx,width:i,height:i,stroke:a,strokeWidth:o?Number(s)*24/Number(i):s,className:xg("lucide",c),...!d&&!cx(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,v])=>k.createElement(p,v)),...Array.isArray(d)?d:[d]]));/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ri=(a,i)=>{const s=k.forwardRef(({className:o,...c},d)=>k.createElement(dx,{ref:d,iconNode:i,className:xg(`lucide-${rx(Kp(a))}`,`lucide-${a}`,o),...c}));return s.displayName=Kp(a),s};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mx=Ri("chevron-left",hx);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yx=Ri("chevron-right",px);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vx=Ri("loader-circle",gx);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bx=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],xx=Ri("menu",bx);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sx=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Tx=Ri("play",Sx);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ax=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sg=Ri("x",Ax);function Jp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Ex(...a){return i=>{let s=!1;const o=a.map(c=>{const d=Jp(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c{let{children:d,...f}=o;Tg(d)&&typeof Co=="function"&&(d=Co(d._payload));const m=k.Children.toArray(d),y=m.find(Rx);if(y){const p=y.props.children,v=m.map(b=>b===y?k.Children.count(p)>1?k.Children.only(null):k.isValidElement(p)?p.props.children:null:b);return x.jsx(i,{...f,ref:c,children:k.isValidElement(p)?k.cloneElement(p,void 0,v):null})}return x.jsx(i,{...f,ref:c,children:d})});return s.displayName=`${a}.Slot`,s}var zx=Cx("Slot");function Dx(a){const i=k.forwardRef((s,o)=>{let{children:c,...d}=s;if(Tg(c)&&typeof Co=="function"&&(c=Co(c._payload)),k.isValidElement(c)){const f=Nx(c),m=Ox(d,c.props);return c.type!==k.Fragment&&(m.ref=o?Ex(o,f):f),k.cloneElement(c,m)}return k.Children.count(c)>1?k.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var jx=Symbol("radix.slottable");function Rx(a){return k.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===jx}function Ox(a,i){const s={...i};for(const o in i){const c=a[o],d=i[o];/^on[A-Z]/.test(o)?c&&d?s[o]=(...m)=>{const y=d(...m);return c(...m),y}:c&&(s[o]=c):o==="style"?s[o]={...c,...d}:o==="className"&&(s[o]=[c,d].filter(Boolean).join(" "))}return{...a,...s}}function Nx(a){var o,c;let i=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}function Ag(a){var i,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;itypeof a=="boolean"?`${a}`:a===0?"0":a,Pp=Eg,Vx=(a,i)=>s=>{var o;if((i==null?void 0:i.variants)==null)return Pp(a,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:d}=i,f=Object.keys(c).map(p=>{const v=s==null?void 0:s[p],b=d==null?void 0:d[p];if(v===null)return null;const S=Fp(v)||Fp(b);return c[p][S]}),m=s&&Object.entries(s).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),y=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((p,v)=>{let{class:b,className:S,...M}=v;return Object.entries(M).every(j=>{let[B,H]=j;return Array.isArray(H)?H.includes({...d,...m}[B]):{...d,...m}[B]===H})?[...p,b,S]:p},[]);return Pp(a,f,y,s==null?void 0:s.class,s==null?void 0:s.className)},_x=(a,i)=>{const s=new Array(a.length+i.length);for(let o=0;o({classGroupId:a,validator:i}),wg=(a=new Map,i=null,s)=>({nextPart:a,validators:i,classGroupId:s}),zo="-",Wp=[],Bx="arbitrary..",Lx=a=>{const i=kx(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Hx(f);const m=f.split(zo),y=m[0]===""&&m.length>1?1:0;return Mg(m,y,i)},getConflictingClassGroupIds:(f,m)=>{if(m){const y=o[f],p=s[f];return y?p?_x(p,y):y:p||Wp}return s[f]||Wp}}},Mg=(a,i,s)=>{if(a.length-i===0)return s.classGroupId;const c=a[i],d=s.nextPart.get(c);if(d){const p=Mg(a,i+1,d);if(p)return p}const f=s.validators;if(f===null)return;const m=i===0?a.join(zo):a.slice(i).join(zo),y=f.length;for(let p=0;pa.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),s=i.indexOf(":"),o=i.slice(0,s);return o?Bx+o:void 0})(),kx=a=>{const{theme:i,classGroups:s}=a;return qx(s,i)},qx=(a,i)=>{const s=wg();for(const o in a){const c=a[o];af(c,s,o,i)}return s},af=(a,i,s,o)=>{const c=a.length;for(let d=0;d{if(typeof a=="string"){Gx(a,i,s);return}if(typeof a=="function"){Xx(a,i,s,o);return}Qx(a,i,s,o)},Gx=(a,i,s)=>{const o=a===""?i:Cg(i,a);o.classGroupId=s},Xx=(a,i,s,o)=>{if(Zx(a)){af(a(o),i,s,o);return}i.validators===null&&(i.validators=[]),i.validators.push(Ux(s,a))},Qx=(a,i,s,o)=>{const c=Object.entries(a),d=c.length;for(let f=0;f{let s=a;const o=i.split(zo),c=o.length;for(let d=0;d"isThemeGetter"in a&&a.isThemeGetter===!0,Kx=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),o=Object.create(null);const c=(d,f)=>{s[d]=f,i++,i>a&&(i=0,o=s,s=Object.create(null))};return{get(d){let f=s[d];if(f!==void 0)return f;if((f=o[d])!==void 0)return c(d,f),f},set(d,f){d in s?s[d]=f:c(d,f)}}},Dc="!",$p=":",Jx=[],Ip=(a,i,s,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:o,isExternal:c}),Fx=a=>{const{prefix:i,experimentalParseClassName:s}=a;let o=c=>{const d=[];let f=0,m=0,y=0,p;const v=c.length;for(let B=0;By?p-y:void 0;return Ip(d,M,S,j)};if(i){const c=i+$p,d=o;o=f=>f.startsWith(c)?d(f.slice(c.length)):Ip(Jx,!1,f,void 0,!0)}if(s){const c=o;o=d=>s({className:d,parseClassName:c})}return o},Px=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((s,o)=>{i.set(s,1e6+o)}),s=>{const o=[];let c=[];for(let d=0;d0&&(c.sort(),o.push(...c),c=[]),o.push(f)):c.push(f)}return c.length>0&&(c.sort(),o.push(...c)),o}},Wx=a=>({cache:Kx(a.cacheSize),parseClassName:Fx(a),sortModifiers:Px(a),...Lx(a)}),$x=/\s+/,Ix=(a,i)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d}=i,f=[],m=a.trim().split($x);let y="";for(let p=m.length-1;p>=0;p-=1){const v=m[p],{isExternal:b,modifiers:S,hasImportantModifier:M,baseClassName:j,maybePostfixModifierPosition:B}=s(v);if(b){y=v+(y.length>0?" "+y:y);continue}let H=!!B,Y=o(H?j.substring(0,B):j);if(!Y){if(!H){y=v+(y.length>0?" "+y:y);continue}if(Y=o(j),!Y){y=v+(y.length>0?" "+y:y);continue}H=!1}const Q=S.length===0?"":S.length===1?S[0]:d(S).join(":"),q=M?Q+Dc:Q,Z=q+Y;if(f.indexOf(Z)>-1)continue;f.push(Z);const K=c(Y,H);for(let lt=0;lt0?" "+y:y)}return y},tS=(...a)=>{let i=0,s,o,c="";for(;i{if(typeof a=="string")return a;let i,s="";for(let o=0;o{let s,o,c,d;const f=y=>{const p=i.reduce((v,b)=>b(v),a());return s=Wx(p),o=s.cache.get,c=s.cache.set,d=m,m(y)},m=y=>{const p=o(y);if(p)return p;const v=Ix(y,s);return c(y,v),v};return d=f,(...y)=>d(tS(...y))},nS=[],Wt=a=>{const i=s=>s[a]||nS;return i.isThemeGetter=!0,i},Dg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,iS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=a=>aS.test(a),mt=a=>!!a&&!Number.isNaN(Number(a)),la=a=>!!a&&Number.isInteger(Number(a)),cc=a=>a.endsWith("%")&&mt(a.slice(0,-1)),Dn=a=>iS.test(a),Rg=()=>!0,uS=a=>lS.test(a)&&!sS.test(a),lf=()=>!1,cS=a=>oS.test(a),fS=a=>rS.test(a),dS=a=>!I(a)&&!et(a),hS=a=>ca(a,Vg,lf),I=a=>Dg.test(a),ja=a=>ca(a,_g,uS),ty=a=>ca(a,SS,mt),mS=a=>ca(a,Bg,Rg),pS=a=>ca(a,Ug,lf),ey=a=>ca(a,Og,lf),yS=a=>ca(a,Ng,fS),fo=a=>ca(a,Lg,cS),et=a=>jg.test(a),jl=a=>Ua(a,_g),gS=a=>Ua(a,Ug),ny=a=>Ua(a,Og),vS=a=>Ua(a,Vg),bS=a=>Ua(a,Ng),ho=a=>Ua(a,Lg,!0),xS=a=>Ua(a,Bg,!0),ca=(a,i,s)=>{const o=Dg.exec(a);return o?o[1]?i(o[1]):s(o[2]):!1},Ua=(a,i,s=!1)=>{const o=jg.exec(a);return o?o[1]?i(o[1]):s:!1},Og=a=>a==="position"||a==="percentage",Ng=a=>a==="image"||a==="url",Vg=a=>a==="length"||a==="size"||a==="bg-size",_g=a=>a==="length",SS=a=>a==="number",Ug=a=>a==="family-name",Bg=a=>a==="number"||a==="weight",Lg=a=>a==="shadow",TS=()=>{const a=Wt("color"),i=Wt("font"),s=Wt("text"),o=Wt("font-weight"),c=Wt("tracking"),d=Wt("leading"),f=Wt("breakpoint"),m=Wt("container"),y=Wt("spacing"),p=Wt("radius"),v=Wt("shadow"),b=Wt("inset-shadow"),S=Wt("text-shadow"),M=Wt("drop-shadow"),j=Wt("blur"),B=Wt("perspective"),H=Wt("aspect"),Y=Wt("ease"),Q=Wt("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...Z(),et,I],lt=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],L=()=>[et,I,y],at=()=>[ia,"full","auto",...L()],Et=()=>[la,"none","subgrid",et,I],qt=()=>["auto",{span:["full",la,et,I]},la,et,I],Ct=()=>[la,"auto",et,I],ce=()=>["auto","min","max","fr",et,I],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Yt=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...L()],X=()=>[ia,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],F=()=>[ia,"screen","full","dvw","lvw","svw","min","max","fit",...L()],ut=()=>[ia,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],G=()=>[a,et,I],A=()=>[...Z(),ny,ey,{position:[et,I]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",vS,hS,{size:[et,I]}],W=()=>[cc,jl,ja],it=()=>["","none","full",p,et,I],ot=()=>["",mt,jl,ja],bt=()=>["solid","dashed","dotted","double"],It=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ht=()=>[mt,cc,ny,ey],Rn=()=>["","none",j,et,I],cn=()=>["none",mt,et,I],On=()=>["none",mt,et,I],Ba=()=>[mt,et,I],Oe=()=>[ia,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[Rg],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[dS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",mt],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ia,I,et,H]}],container:["container"],columns:[{columns:[mt,I,et,m]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:lt()}],"overflow-x":[{"overflow-x":lt()}],"overflow-y":[{"overflow-y":lt()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:at()}],"inset-x":[{"inset-x":at()}],"inset-y":[{"inset-y":at()}],start:[{"inset-s":at(),start:at()}],end:[{"inset-e":at(),end:at()}],"inset-bs":[{"inset-bs":at()}],"inset-be":[{"inset-be":at()}],top:[{top:at()}],right:[{right:at()}],bottom:[{bottom:at()}],left:[{left:at()}],visibility:["visible","invisible","collapse"],z:[{z:[la,"auto",et,I]}],basis:[{basis:[ia,"full","auto",m,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mt,ia,"auto","initial","none",I]}],grow:[{grow:["",mt,et,I]}],shrink:[{shrink:["",mt,et,I]}],order:[{order:[la,"first","last","none",et,I]}],"grid-cols":[{"grid-cols":Et()}],"col-start-end":[{col:qt()}],"col-start":[{"col-start":Ct()}],"col-end":[{"col-end":Ct()}],"grid-rows":[{"grid-rows":Et()}],"row-start-end":[{row:qt()}],"row-start":[{"row-start":Ct()}],"row-end":[{"row-end":Ct()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...Yt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Yt()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...Yt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Yt(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...Yt(),"baseline"]}],"place-self":[{"place-self":["auto",...Yt()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...ut()]}],"min-block-size":[{"min-block":["auto",...ut()]}],"max-block-size":[{"max-block":["none",...ut()]}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",s,jl,ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,xS,mS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cc,I]}],"font-family":[{font:[gS,pS,i]}],"font-features":[{"font-features":[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,et,I]}],"line-clamp":[{"line-clamp":[mt,"none",et,ty]}],leading:[{leading:[d,...L()]}],"list-image":[{"list-image":["none",et,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...bt(),"wavy"]}],"text-decoration-thickness":[{decoration:[mt,"from-font","auto",et,ja]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[mt,"auto",et,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},la,et,I],radial:["",et,I],conic:[la,et,I]},bS,yS]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:it()}],"rounded-s":[{"rounded-s":it()}],"rounded-e":[{"rounded-e":it()}],"rounded-t":[{"rounded-t":it()}],"rounded-r":[{"rounded-r":it()}],"rounded-b":[{"rounded-b":it()}],"rounded-l":[{"rounded-l":it()}],"rounded-ss":[{"rounded-ss":it()}],"rounded-se":[{"rounded-se":it()}],"rounded-ee":[{"rounded-ee":it()}],"rounded-es":[{"rounded-es":it()}],"rounded-tl":[{"rounded-tl":it()}],"rounded-tr":[{"rounded-tr":it()}],"rounded-br":[{"rounded-br":it()}],"rounded-bl":[{"rounded-bl":it()}],"border-w":[{border:ot()}],"border-w-x":[{"border-x":ot()}],"border-w-y":[{"border-y":ot()}],"border-w-s":[{"border-s":ot()}],"border-w-e":[{"border-e":ot()}],"border-w-bs":[{"border-bs":ot()}],"border-w-be":[{"border-be":ot()}],"border-w-t":[{"border-t":ot()}],"border-w-r":[{"border-r":ot()}],"border-w-b":[{"border-b":ot()}],"border-w-l":[{"border-l":ot()}],"divide-x":[{"divide-x":ot()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ot()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...bt(),"hidden","none"]}],"divide-style":[{divide:[...bt(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-bs":[{"border-bs":G()}],"border-color-be":[{"border-be":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...bt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[mt,et,I]}],"outline-w":[{outline:["",mt,jl,ja]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",v,ho,fo]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",b,ho,fo]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:ot()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[mt,ja]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":ot()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",S,ho,fo]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[mt,et,I]}],"mix-blend":[{"mix-blend":[...It(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":It()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[mt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ht()}],"mask-image-linear-to-pos":[{"mask-linear-to":ht()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ht()}],"mask-image-t-to-pos":[{"mask-t-to":ht()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ht()}],"mask-image-r-to-pos":[{"mask-r-to":ht()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ht()}],"mask-image-b-to-pos":[{"mask-b-to":ht()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ht()}],"mask-image-l-to-pos":[{"mask-l-to":ht()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ht()}],"mask-image-x-to-pos":[{"mask-x-to":ht()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ht()}],"mask-image-y-to-pos":[{"mask-y-to":ht()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[et,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":ht()}],"mask-image-radial-to-pos":[{"mask-radial-to":ht()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[mt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ht()}],"mask-image-conic-to-pos":[{"mask-conic-to":ht()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,I]}],filter:[{filter:["","none",et,I]}],blur:[{blur:Rn()}],brightness:[{brightness:[mt,et,I]}],contrast:[{contrast:[mt,et,I]}],"drop-shadow":[{"drop-shadow":["","none",M,ho,fo]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",mt,et,I]}],"hue-rotate":[{"hue-rotate":[mt,et,I]}],invert:[{invert:["",mt,et,I]}],saturate:[{saturate:[mt,et,I]}],sepia:[{sepia:["",mt,et,I]}],"backdrop-filter":[{"backdrop-filter":["","none",et,I]}],"backdrop-blur":[{"backdrop-blur":Rn()}],"backdrop-brightness":[{"backdrop-brightness":[mt,et,I]}],"backdrop-contrast":[{"backdrop-contrast":[mt,et,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mt,et,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mt,et,I]}],"backdrop-invert":[{"backdrop-invert":["",mt,et,I]}],"backdrop-opacity":[{"backdrop-opacity":[mt,et,I]}],"backdrop-saturate":[{"backdrop-saturate":[mt,et,I]}],"backdrop-sepia":[{"backdrop-sepia":["",mt,et,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mt,"initial",et,I]}],ease:[{ease:["linear","initial",Y,et,I]}],delay:[{delay:[mt,et,I]}],animate:[{animate:["none",Q,et,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,et,I]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:cn()}],"rotate-x":[{"rotate-x":cn()}],"rotate-y":[{"rotate-y":cn()}],"rotate-z":[{"rotate-z":cn()}],scale:[{scale:On()}],"scale-x":[{"scale-x":On()}],"scale-y":[{"scale-y":On()}],"scale-z":[{"scale-z":On()}],"scale-3d":["scale-3d"],skew:[{skew:Ba()}],"skew-x":[{"skew-x":Ba()}],"skew-y":[{"skew-y":Ba()}],transform:[{transform:[et,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",et,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",et,I]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[mt,jl,ja,ty]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},AS=eS(TS);function Nl(...a){return AS(Eg(a))}const ES=Vx("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:scale-105 cursor-pointer",{variants:{variant:{default:"bg-brand-dark font-bold text-white hover:bg-brand-dark shadow-xl",primary:"bg-brand-light font-bold text-white hover:bg-brand-light shadow-xl",white:"bg-white font-bold text-brand-dark hover:bg-white shadow-xl",gold:"bg-brand-gold font-bold text-brand-dark hover:bg-brand-gold shadow-xl",outline:"border border-input bg-transparent font-bold shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary font-bold text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary font-bold underline-offset-4 hover:underline"},size:{default:"px-10 py-4 text-md",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),on=k.forwardRef(({className:a,variant:i,size:s,asChild:o=!1,...c},d)=>{const f=o?zx:"button";return x.jsx(f,{className:Nl(ES({variant:i,size:s,className:a})),ref:d,...c})});on.displayName="Button";const sf=k.createContext({});function of(a){const i=k.useRef(null);return i.current===null&&(i.current=a()),i.current}const wS=typeof window<"u",Hg=wS?k.useLayoutEffect:k.useEffect,Bo=k.createContext(null);function rf(a,i){a.indexOf(i)===-1&&a.push(i)}function Do(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const rn=(a,i,s)=>s>i?i:s{};const jn={},kg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function qg(a){return typeof a=="object"&&a!==null}const Yg=a=>/^0[^.\s]+$/u.test(a);function Gg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Xe=a=>a,MS=(a,i)=>s=>i(a(s)),Gl=(...a)=>a.reduce(MS),Ll=(a,i,s)=>{const o=i-a;return o===0?1:(s-a)/o};class cf{constructor(){this.subscriptions=[]}add(i){return rf(this.subscriptions,i),()=>Do(this.subscriptions,i)}notify(i,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,o);else for(let d=0;da*1e3,Ge=a=>a/1e3;function Xg(a,i){return i?a*(1e3/i):0}const Qg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,CS=1e-7,zS=12;function DS(a,i,s,o,c){let d,f,m=0;do f=i+(s-i)/2,d=Qg(f,o,c)-a,d>0?s=f:i=f;while(Math.abs(d)>CS&&++mDS(d,0,1,a,s);return d=>d===0||d===1?d:Qg(c(d),i,o)}const Zg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Kg=a=>i=>1-a(1-i),Jg=Xl(.33,1.53,.69,.99),ff=Kg(Jg),Fg=Zg(ff),Pg=a=>(a*=2)<1?.5*ff(a):.5*(2-Math.pow(2,-10*(a-1))),df=a=>1-Math.sin(Math.acos(a)),Wg=Kg(df),$g=Zg(df),jS=Xl(.42,0,1,1),RS=Xl(0,0,.58,1),Ig=Xl(.42,0,.58,1),OS=a=>Array.isArray(a)&&typeof a[0]!="number",t0=a=>Array.isArray(a)&&typeof a[0]=="number",NS={linear:Xe,easeIn:jS,easeInOut:Ig,easeOut:RS,circIn:df,circInOut:$g,circOut:Wg,backIn:ff,backInOut:Fg,backOut:Jg,anticipate:Pg},VS=a=>typeof a=="string",ay=a=>{if(t0(a)){uf(a.length===4);const[i,s,o,c]=a;return Xl(i,s,o,c)}else if(VS(a))return NS[a];return a},mo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _S(a,i){let s=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,b=!1,S=!1)=>{const j=S&&c?s:o;return b&&f.add(v),j.has(v)||j.add(v),v},cancel:v=>{o.delete(v),f.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0,[s,o]=[o,s],s.forEach(y),s.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const US=40;function e0(a,i){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=mo.reduce((q,Z)=>(q[Z]=_S(d),q),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:b,preRender:S,render:M,postRender:j}=f,B=()=>{const q=jn.useManualTiming?c.timestamp:performance.now();s=!1,jn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(q-c.timestamp,US),1)),c.timestamp=q,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),b.process(c),S.process(c),M.process(c),j.process(c),c.isProcessing=!1,s&&i&&(o=!1,a(B))},H=()=>{s=!0,o=!0,c.isProcessing||a(B)};return{schedule:mo.reduce((q,Z)=>{const K=f[Z];return q[Z]=(lt,P=!1,L=!1)=>(s||H(),K.schedule(lt,P,L)),q},{}),cancel:q=>{for(let Z=0;Z(So===void 0&&he.set(oe.isProcessing||jn.useManualTiming?oe.timestamp:performance.now()),So),set:a=>{So=a,queueMicrotask(BS)}},n0=a=>i=>typeof i=="string"&&i.startsWith(a),a0=n0("--"),LS=n0("var(--"),hf=a=>LS(a)?HS.test(a.split("/*")[0].trim()):!1,HS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iy(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Oi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Hl={...Oi,transform:a=>rn(0,1,a)},po={...Oi,default:1},Vl=a=>Math.round(a*1e5)/1e5,mf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kS(a){return a==null}const qS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pf=(a,i)=>s=>!!(typeof s=="string"&&qS.test(s)&&s.startsWith(a)||i&&!kS(s)&&Object.prototype.hasOwnProperty.call(s,i)),i0=(a,i,s)=>o=>{if(typeof o!="string")return o;const[c,d,f,m]=o.match(mf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},YS=a=>rn(0,255,a),dc={...Oi,transform:a=>Math.round(YS(a))},Na={test:pf("rgb","red"),parse:i0("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:o=1})=>"rgba("+dc.transform(a)+", "+dc.transform(i)+", "+dc.transform(s)+", "+Vl(Hl.transform(o))+")"};function GS(a){let i="",s="",o="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const jc={test:pf("#"),parse:GS,transform:Na.transform},Ql=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),sa=Ql("deg"),sn=Ql("%"),tt=Ql("px"),XS=Ql("vh"),QS=Ql("vw"),ly={...sn,parse:a=>sn.parse(a)/100,transform:a=>sn.transform(a*100)},Ei={test:pf("hsl","hue"),parse:i0("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:o=1})=>"hsla("+Math.round(a)+", "+sn.transform(Vl(i))+", "+sn.transform(Vl(s))+", "+Vl(Hl.transform(o))+")"},Ft={test:a=>Na.test(a)||jc.test(a)||Ei.test(a),parse:a=>Na.test(a)?Na.parse(a):Ei.test(a)?Ei.parse(a):jc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Na.transform(a):Ei.transform(a),getAnimatableNone:a=>{const i=Ft.parse(a);return i.alpha=0,Ft.transform(i)}},ZS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KS(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(mf))==null?void 0:i.length)||0)+(((s=a.match(ZS))==null?void 0:s.length)||0)>0}const l0="number",s0="color",JS="var",FS="var(",sy="${}",PS=/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 kl(a){const i=a.toString(),s=[],o={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(PS,y=>(Ft.test(y)?(o.color.push(d),c.push(s0),s.push(Ft.parse(y))):y.startsWith(FS)?(o.var.push(d),c.push(JS),s.push(y)):(o.number.push(d),c.push(l0),s.push(parseFloat(y))),++d,sy)).split(sy);return{values:s,split:m,indexes:o,types:c}}function o0(a){return kl(a).values}function r0(a){const{split:i,types:s}=kl(a),o=i.length;return c=>{let d="";for(let f=0;ftypeof a=="number"?0:Ft.test(a)?Ft.getAnimatableNone(a):a;function $S(a){const i=o0(a);return r0(a)(i.map(WS))}const We={test:KS,parse:o0,createTransformer:r0,getAnimatableNone:$S};function hc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function IS({hue:a,saturation:i,lightness:s,alpha:o}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=hc(y,m,a+1/3),d=hc(y,m,a),f=hc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function jo(a,i){return s=>s>0?i:a}const Bt=(a,i,s)=>a+(i-a)*s,mc=(a,i,s)=>{const o=a*a,c=s*(i*i-o)+o;return c<0?0:Math.sqrt(c)},t2=[jc,Na,Ei],e2=a=>t2.find(i=>i.test(a));function oy(a){const i=e2(a);if(!i)return!1;let s=i.parse(a);return i===Ei&&(s=IS(s)),s}const ry=(a,i)=>{const s=oy(a),o=oy(i);if(!s||!o)return jo(a,i);const c={...s};return d=>(c.red=mc(s.red,o.red,d),c.green=mc(s.green,o.green,d),c.blue=mc(s.blue,o.blue,d),c.alpha=Bt(s.alpha,o.alpha,d),Na.transform(c))},Rc=new Set(["none","hidden"]);function n2(a,i){return Rc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function a2(a,i){return s=>Bt(a,i,s)}function yf(a){return typeof a=="number"?a2:typeof a=="string"?hf(a)?jo:Ft.test(a)?ry:s2:Array.isArray(a)?u0:typeof a=="object"?Ft.test(a)?ry:i2:jo}function u0(a,i){const s=[...a],o=s.length,c=a.map((d,f)=>yf(d)(d,i[f]));return d=>{for(let f=0;f{for(const d in o)s[d]=o[d](c);return s}}function l2(a,i){const s=[],o={color:0,var:0,number:0};for(let c=0;c{const s=We.createTransformer(i),o=kl(a),c=kl(i);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?Rc.has(a)&&!c.values.length||Rc.has(i)&&!o.values.length?n2(a,i):Gl(u0(l2(o,c),c.values),s):jo(a,i)};function c0(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Bt(a,i,s):yf(a)(a,i)}const o2=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>Nt.update(i,s),stop:()=>ua(i),now:()=>oe.isProcessing?oe.timestamp:he.now()}},f0=(a,i,s=10)=>{let o="";const c=Math.max(Math.round(i/s),2);for(let d=0;d=Ro?1/0:i}function r2(a,i=100,s){const o=s({...a,keyframes:[0,i]}),c=Math.min(gf(o),Ro);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Ge(c)}}const u2=5;function d0(a,i,s){const o=Math.max(i-u2,0);return Xg(s-a(o),i-o)}const kt={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},pc=.001;function c2({duration:a=kt.duration,bounce:i=kt.bounce,velocity:s=kt.velocity,mass:o=kt.mass}){let c,d,f=1-i;f=rn(kt.minDamping,kt.maxDamping,f),a=rn(kt.minDuration,kt.maxDuration,Ge(a)),f<1?(c=p=>{const v=p*f,b=v*a,S=v-s,M=Oc(p,f),j=Math.exp(-b);return pc-S/M*j},d=p=>{const b=p*f*a,S=b*s+s,M=Math.pow(f,2)*Math.pow(p,2)*a,j=Math.exp(-b),B=Oc(Math.pow(p,2),f);return(-c(p)+pc>0?-1:1)*((S-M)*j)/B}):(c=p=>{const v=Math.exp(-p*a),b=(p-s)*a+1;return-pc+v*b},d=p=>{const v=Math.exp(-p*a),b=(s-p)*(a*a);return v*b});const m=5/a,y=d2(c,d,m);if(a=Pe(a),isNaN(y))return{stiffness:kt.stiffness,damping:kt.damping,duration:a};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const f2=12;function d2(a,i,s){let o=s;for(let c=1;ca[s]!==void 0)}function p2(a){let i={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...a};if(!uy(a,m2)&&uy(a,h2))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,d=2*rn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:kt.mass,stiffness:c,damping:d}}else{const s=c2({...a,velocity:0});i={...i,...s,mass:kt.mass},i.isResolvedFromDuration=!0}return i}function Oo(a=kt.visualDuration,i=kt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:b,velocity:S,isResolvedFromDuration:M}=p2({...s,velocity:-Ge(s.velocity||0)}),j=S||0,B=p/(2*Math.sqrt(y*v)),H=f-d,Y=Ge(Math.sqrt(y/v)),Q=Math.abs(H)<5;o||(o=Q?kt.restSpeed.granular:kt.restSpeed.default),c||(c=Q?kt.restDelta.granular:kt.restDelta.default);let q;if(B<1){const K=Oc(Y,B);q=lt=>{const P=Math.exp(-B*Y*lt);return f-P*((j+B*Y*H)/K*Math.sin(K*lt)+H*Math.cos(K*lt))}}else if(B===1)q=K=>f-Math.exp(-Y*K)*(H+(j+Y*H)*K);else{const K=Y*Math.sqrt(B*B-1);q=lt=>{const P=Math.exp(-B*Y*lt),L=Math.min(K*lt,300);return f-P*((j+B*Y*H)*Math.sinh(L)+K*H*Math.cosh(L))/K}}const Z={calculatedDuration:M&&b||null,next:K=>{const lt=q(K);if(M)m.done=K>=b;else{let P=K===0?j:0;B<1&&(P=K===0?Pe(j):d0(q,K,lt));const L=Math.abs(P)<=o,at=Math.abs(f-lt)<=c;m.done=L&&at}return m.value=m.done?f:lt,m},toString:()=>{const K=Math.min(gf(Z),Ro),lt=f0(P=>Z.next(K*P).value,K,30);return K+"ms "+lt},toTransition:()=>{}};return Z}Oo.applyToOptions=a=>{const i=r2(a,100,Oo);return a.ease=i.ease,a.duration=Pe(i.duration),a.type="keyframes",a};function Nc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:v}){const b=a[0],S={done:!1,value:b},M=L=>m!==void 0&&Ly,j=L=>m===void 0?y:y===void 0||Math.abs(m-L)-B*Math.exp(-L/o),q=L=>Y+Q(L),Z=L=>{const at=Q(L),Et=q(L);S.done=Math.abs(at)<=p,S.value=S.done?Y:Et};let K,lt;const P=L=>{M(S.value)&&(K=L,lt=Oo({keyframes:[S.value,j(S.value)],velocity:d0(q,L,S.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return P(0),{calculatedDuration:null,next:L=>{let at=!1;return!lt&&K===void 0&&(at=!0,Z(L),P(L)),K!==void 0&&L>=K?lt.next(L-K):(!at&&Z(L),S)}}}function y2(a,i,s){const o=[],c=s||jn.mix||c0,d=a.length-1;for(let f=0;fi[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=y2(i,o,c),y=m.length,p=v=>{if(f&&v1)for(;bp(rn(a[0],a[d-1],v)):p}function v2(a,i){const s=a[a.length-1];for(let o=1;o<=i;o++){const c=Ll(0,i,o);a.push(Bt(s,1,c))}}function b2(a){const i=[0];return v2(i,a.length-1),i}function x2(a,i){return a.map(s=>s*i)}function S2(a,i){return a.map(()=>i||Ig).splice(0,a.length-1)}function _l({duration:a=300,keyframes:i,times:s,ease:o="easeInOut"}){const c=OS(o)?o.map(ay):ay(o),d={done:!1,value:i[0]},f=x2(s&&s.length===i.length?s:b2(i),a),m=g2(f,i,{ease:Array.isArray(c)?c:S2(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const T2=a=>a!==null;function vf(a,{repeat:i,repeatType:s="loop"},o,c=1){const d=a.filter(T2),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const A2={decay:Nc,inertia:Nc,tween:_l,keyframes:_l,spring:Oo};function h0(a){typeof a.type=="string"&&(a.type=A2[a.type])}class bf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const E2=a=>a/100;class xf extends bf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,c;const{motionValue:s}=this.options;s&&s.updatedAt!==he.now()&&this.tick(he.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(o=this.options).onStop)==null||c.call(o))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;h0(i);const{type:s=_l,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||_l;y!==_l&&typeof m[0]!="number"&&(this.mixKeyframes=Gl(E2,c0(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=gf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:b,repeatType:S,repeatDelay:M,type:j,onUpdate:B,finalKeyframe:H}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const Y=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Q=this.playbackSpeed>=0?Y<0:Y>c;this.currentTime=Math.max(Y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let q=this.currentTime,Z=o;if(b){const L=Math.min(this.currentTime,c)/m;let at=Math.floor(L),Et=L%1;!Et&&L>=1&&(Et=1),Et===1&&at--,at=Math.min(at,b+1),!!(at%2)&&(S==="reverse"?(Et=1-Et,M&&(Et-=M/m)):S==="mirror"&&(Z=f)),q=rn(0,1,Et)*m}const K=Q?{done:!1,value:v[0]}:Z.next(q);d&&(K.value=d(K.value));let{done:lt}=K;!Q&&y!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&<);return P&&j!==Nc&&(K.value=vf(v,this.options,H,this.speed)),B&&B(K.value),P&&this.finish(),K}then(i,s){return this.finished.then(i,s)}get duration(){return Ge(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ge(i)}get time(){return Ge(this.currentTime)}set time(i){var s;i=Pe(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(he.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Ge(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=o2,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);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(he.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function w2(a){for(let i=1;ia*180/Math.PI,Vc=a=>{const i=Va(Math.atan2(a[1],a[0]));return _c(i)},M2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Vc,rotateZ:Vc,skewX:a=>Va(Math.atan(a[1])),skewY:a=>Va(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},_c=a=>(a=a%360,a<0&&(a+=360),a),cy=Vc,fy=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),dy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),C2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fy,scaleY:dy,scale:a=>(fy(a)+dy(a))/2,rotateX:a=>_c(Va(Math.atan2(a[6],a[5]))),rotateY:a=>_c(Va(Math.atan2(-a[2],a[0]))),rotateZ:cy,rotate:cy,skewX:a=>Va(Math.atan(a[4])),skewY:a=>Va(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Uc(a){return a.includes("scale")?1:0}function Bc(a,i){if(!a||a==="none")return Uc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=C2,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=M2,c=m}if(!c)return Uc(i);const d=o[i],f=c[1].split(",").map(D2);return typeof d=="function"?d(f):f[d]}const z2=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Bc(s,i)};function D2(a){return parseFloat(a.trim())}const Ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vi=new Set(Ni),hy=a=>a===Oi||a===tt,j2=new Set(["x","y","z"]),R2=Ni.filter(a=>!j2.has(a));function O2(a){const i=[];return R2.forEach(s=>{const o=a.getValue(s);o!==void 0&&(i.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),i}const ra={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Bc(i,"x"),y:(a,{transform:i})=>Bc(i,"y")};ra.translateX=ra.x;ra.translateY=ra.y;const _a=new Set;let Lc=!1,Hc=!1,kc=!1;function m0(){if(Hc){const a=Array.from(_a).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),s=new Map;i.forEach(o=>{const c=O2(o);c.length&&(s.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([d,f])=>{var m;(m=o.getValue(d))==null||m.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Hc=!1,Lc=!1,_a.forEach(a=>a.complete(kc)),_a.clear()}function p0(){_a.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Hc=!0)})}function N2(){kc=!0,p0(),m0(),kc=!1}class Sf{constructor(i,s,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(_a.add(this),Lc||(Lc=!0,Nt.read(p0),Nt.resolveKeyframes(m0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:o,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&s){const m=o.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}w2(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),_a.delete(this)}cancel(){this.state==="scheduled"&&(_a.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const V2=a=>a.startsWith("--");function _2(a,i,s){V2(i)?a.style.setProperty(i,s):a.style[i]=s}const U2={};function y0(a,i){const s=Gg(a);return()=>U2[i]??s()}const B2=y0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),g0=y0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ol=([a,i,s,o])=>`cubic-bezier(${a}, ${i}, ${s}, ${o})`,my={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ol([0,.65,.55,1]),circOut:Ol([.55,0,1,.45]),backIn:Ol([.31,.01,.66,-.59]),backOut:Ol([.33,1.53,.69,.99])};function v0(a,i){if(a)return typeof a=="function"?g0()?f0(a,i):"ease-out":t0(a)?Ol(a):Array.isArray(a)?a.map(s=>v0(s,i)||my.easeOut):my[a]}function L2(a,i,s,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[i]:s};y&&(v.offset=y);const b=v0(m,c);Array.isArray(b)&&(v.easing=b);const S={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(v,S)}function b0(a){return typeof a=="function"&&"applyToOptions"in a}function H2({type:a,...i}){return b0(a)&&g0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class x0 extends bf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,uf(typeof i.type!="string");const p=H2(i);this.animation=L2(s,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=vf(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),_2(s,o,v),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,o,c;const i=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((c=(o=this.animation).commitStyles)==null||c.call(o))}get duration(){var s,o;const i=((o=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:o.call(s).duration)||0;return Ge(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ge(i)}get time(){return Ge(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Pe(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:s,rangeEnd:o,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&B2()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),o&&(this.animation.rangeEnd=o),Xe):c(this)}}const S0={anticipate:Pg,backInOut:Fg,circInOut:$g};function k2(a){return a in S0}function q2(a){typeof a.ease=="string"&&k2(a.ease)&&(a.ease=S0[a.ease])}const yc=10;class Y2 extends x0{constructor(i){q2(i),h0(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new xf({...f,autoplay:!1}),y=Math.max(yc,he.now()-this.startTime),p=rn(0,yc,y-yc);s.setWithVelocity(m.sample(Math.max(0,y-p)).value,m.sample(y).value,p),m.stop()}}const py=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(We.test(a)||a==="0")&&!a.startsWith("url("));function G2(a){const i=a[0];if(a.length===1)return!0;for(let s=0;sObject.hasOwnProperty.call(Element.prototype,"animate"));function K2(a){var v;const{motionValue:i,name:s,repeatDelay:o,repeatType:c,damping:d,type:f}=a;if(!(((v=i==null?void 0:i.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return Z2()&&s&&Q2.has(s)&&(s!=="transform"||!p)&&!y&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const J2=40;class F2 extends bf{constructor({autoplay:i=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:v,...b}){var j;super(),this.stop=()=>{var B,H;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(H=this.keyframeResolver)==null||H.cancel()},this.createdAt=he.now();const S={autoplay:i,delay:s,type:o,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:v,...b},M=(v==null?void 0:v.KeyframeResolver)||Sf;this.keyframeResolver=new M(m,(B,H,Y)=>this.onKeyframesResolved(B,H,S,!Y),y,p,v),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(i,s,o,c){var H,Y;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:v}=o;this.resolvedAt=he.now(),X2(i,d,f,m)||((jn.instantAnimations||!y)&&(v==null||v(vf(i,o,s))),i[0]=i[i.length-1],qc(o),o.repeat=0);const S={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>J2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:i},M=!p&&K2(S),j=(Y=(H=S.motionValue)==null?void 0:H.owner)==null?void 0:Y.current,B=M?new Y2({...S,element:j}):new xf(S);B.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=B.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=B}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),N2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}function T0(a,i,s,o=0,c=1){const d=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),f=a.size,m=(f-1)*o;return typeof s=="function"?s(d,f):c===1?d*o:m-d*o}const P2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W2(a){const i=P2.exec(a);if(!i)return[,];const[,s,o,c]=i;return[`--${s??o}`,c]}function A0(a,i,s=1){const[o,c]=W2(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return kg(f)?parseFloat(f):f}return hf(c)?A0(c,i,s+1):c}const $2={type:"spring",stiffness:500,damping:25,restSpeed:10},I2=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),tT={type:"keyframes",duration:.8},eT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nT=(a,{keyframes:i})=>i.length>2?tT:Vi.has(a)?a.startsWith("scale")?I2(i[1]):$2:eT,aT=a=>a!==null;function iT(a,{repeat:i,repeatType:s="loop"},o){const c=a.filter(aT),d=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[d]}function E0(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...o}=a;return{...i,...o}}return a}function Tf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?E0(s,a):s}function lT({when:a,delay:i,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:m,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const Af=(a,i,s,o={},c,d)=>f=>{const m=Tf(o,a)||{},y=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Pe(y);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:d?void 0:c};lT(m)||Object.assign(v,nT(a,v)),v.duration&&(v.duration=Pe(v.duration)),v.repeatDelay&&(v.repeatDelay=Pe(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(qc(v),v.delay===0&&(b=!0)),(jn.instantAnimations||jn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(b=!0,qc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,b&&!d&&i.get()!==void 0){const S=iT(v.keyframes,m);if(S!==void 0){Nt.update(()=>{v.onUpdate(S),v.onComplete()});return}}return m.isSync?new xf(v):new F2(v)};function yy(a){const i=[{},{}];return a==null||a.values.forEach((s,o)=>{i[0][o]=s.get(),i[1][o]=s.getVelocity()}),i}function Ef(a,i,s,o){if(typeof i=="function"){const[c,d]=yy(o);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=yy(o);i=i(s!==void 0?s:a.custom,c,d)}return i}function Di(a,i,s){const o=a.getProps();return Ef(o,i,s!==void 0?s:o.custom,a)}const w0=new Set(["width","height","top","left","right","bottom",...Ni]),gy=30,sT=a=>!isNaN(parseFloat(a));class oT{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const c=he.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=he.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=sT(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new cf);const o=this.events[i].add(s);return i==="change"?()=>{o(),Nt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=he.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>gy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,gy);return Xg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(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(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ji(a,i){return new oT(a,i)}const Yc=a=>Array.isArray(a);function rT(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,ji(s))}function uT(a){return Yc(a)?a[a.length-1]||0:a}function cT(a,i){const s=Di(a,i);let{transitionEnd:o={},transition:c={},...d}=s||{};d={...d,...o};for(const f in d){const m=uT(d[f]);rT(a,f,m)}}const ue=a=>!!(a&&a.getVelocity);function fT(a){return!!(ue(a)&&a.add)}function Gc(a,i){const s=a.getValue("willChange");if(fT(s))return s.add(i);if(!s&&jn.WillChange){const o=new jn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function wf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const dT="framerAppearId",M0="data-"+wf(dT);function C0(a){return a.props[M0]}function hT({protectedKeys:a,needsAnimating:i},s){const o=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,o}function z0(a,i,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?E0(d,y):y;const p=d==null?void 0:d.reduceMotion;o&&(d=o);const v=[],b=c&&a.animationState&&a.animationState.getState()[c];for(const S in m){const M=a.getValue(S,a.latestValues[S]??null),j=m[S];if(j===void 0||b&&hT(b,S))continue;const B={delay:s,...Tf(d||{},S)},H=M.get();if(H!==void 0&&!M.isAnimating&&!Array.isArray(j)&&j===H&&!B.velocity)continue;let Y=!1;if(window.MotionHandoffAnimation){const Z=C0(a);if(Z){const K=window.MotionHandoffAnimation(Z,S,Nt);K!==null&&(B.startTime=K,Y=!0)}}Gc(a,S);const Q=p??a.shouldReduceMotion;M.start(Af(S,M,j,Q&&w0.has(S)?{type:!1}:B,a,Y));const q=M.animation;q&&v.push(q)}if(f){const S=()=>Nt.update(()=>{f&&cT(a,f)});v.length?Promise.all(v).then(S):S()}return v}function Xc(a,i,s={}){var y;const o=Di(a,i,s.type==="exit"?(y=a.presenceContext)==null?void 0:y.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const d=o?()=>Promise.all(z0(a,o,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:b,staggerDirection:S}=c;return mT(a,i,p,v,b,S,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,v]=m==="beforeChildren"?[d,f]:[f,d];return p().then(()=>v())}else return Promise.all([d(),f(s.delay)])}function mT(a,i,s=0,o=0,c=0,d=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Xc(y,i,{...f,delay:s+(typeof o=="function"?0:o)+T0(a.variantChildren,y,o,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function pT(a,i,s={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>Xc(a,d,s));o=Promise.all(c)}else if(typeof i=="string")o=Xc(a,i,s);else{const c=typeof i=="function"?Di(a,i,s.custom):i;o=Promise.all(z0(a,c,s))}return o.then(()=>{a.notify("AnimationComplete",i)})}const yT={test:a=>a==="auto",parse:a=>a},D0=a=>i=>i.test(a),j0=[Oi,tt,sn,sa,QS,XS,yT],vy=a=>j0.find(D0(a));function gT(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Yg(a):!0}const vT=new Set(["brightness","contrast","saturate","opacity"]);function bT(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=s.match(mf)||[];if(!o)return a;const c=s.replace(o,"");let d=vT.has(i)?1:0;return o!==s&&(d*=100),i+"("+d+c+")"}const xT=/\b([a-z-]*)\(.*?\)/gu,Qc={...We,getAnimatableNone:a=>{const i=a.match(xT);return i?i.map(bT).join(" "):a}},Zc={...We,getAnimatableNone:a=>{const i=We.parse(a);return We.createTransformer(a)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},by={...Oi,transform:Math.round},ST={rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:po,scaleX:po,scaleY:po,scaleZ:po,skew:sa,skewX:sa,skewY:sa,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:Hl,originX:ly,originY:ly,originZ:tt},Mf={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,top:tt,right:tt,bottom:tt,left:tt,inset:tt,insetBlock:tt,insetBlockStart:tt,insetBlockEnd:tt,insetInline:tt,insetInlineStart:tt,insetInlineEnd:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,paddingBlock:tt,paddingBlockStart:tt,paddingBlockEnd:tt,paddingInline:tt,paddingInlineStart:tt,paddingInlineEnd:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,marginBlock:tt,marginBlockStart:tt,marginBlockEnd:tt,marginInline:tt,marginInlineStart:tt,marginInlineEnd:tt,fontSize:tt,backgroundPositionX:tt,backgroundPositionY:tt,...ST,zIndex:by,fillOpacity:Hl,strokeOpacity:Hl,numOctaves:by},TT={...Mf,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Qc,WebkitFilter:Qc,mask:Zc,WebkitMask:Zc},R0=a=>TT[a],AT=new Set([Qc,Zc]);function O0(a,i){let s=R0(a);return AT.has(s)||(s=We),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const ET=new Set(["auto","none","0"]);function wT(a,i,s){let o=0,c;for(;o{i.getValue(y).set(p)}),this.resolveNoneKeyframes()}}const CT=new Set(["opacity","clipPath","filter","transform"]);function N0(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=(s==null?void 0:s[a])??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(o=>o!=null)}const V0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function Kc(a){return qg(a)&&"offsetHeight"in a}const{schedule:Cf}=e0(queueMicrotask,!1),Fe={x:!1,y:!1};function _0(){return Fe.x||Fe.y}function zT(a){return a==="x"||a==="y"?Fe[a]?null:(Fe[a]=!0,()=>{Fe[a]=!1}):Fe.x||Fe.y?null:(Fe.x=Fe.y=!0,()=>{Fe.x=Fe.y=!1})}function U0(a,i){const s=N0(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[s,c,()=>o.abort()]}function DT(a){return!(a.pointerType==="touch"||_0())}function jT(a,i,s={}){const[o,c,d]=U0(a,s);return o.forEach(f=>{let m=!1,y=!1,p;const v=()=>{f.removeEventListener("pointerleave",j)},b=H=>{p&&(p(H),p=void 0),v()},S=H=>{m=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,b(H))},M=()=>{m=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},j=H=>{if(H.pointerType!=="touch"){if(m){y=!0;return}b(H)}},B=H=>{if(!DT(H))return;y=!1;const Y=i(f,H);typeof Y=="function"&&(p=Y,f.addEventListener("pointerleave",j,c))};f.addEventListener("pointerenter",B,c),f.addEventListener("pointerdown",M,c)}),d}const B0=(a,i)=>i?a===i?!0:B0(a,i.parentElement):!1,zf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,RT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function OT(a){return RT.has(a.tagName)||a.isContentEditable===!0}const NT=new Set(["INPUT","SELECT","TEXTAREA"]);function VT(a){return NT.has(a.tagName)||a.isContentEditable===!0}const To=new WeakSet;function xy(a){return i=>{i.key==="Enter"&&a(i)}}function gc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const _T=(a,i)=>{const s=a.currentTarget;if(!s)return;const o=xy(()=>{if(To.has(s))return;gc(s,"down");const c=xy(()=>{gc(s,"up")}),d=()=>gc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",o,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),i)};function Sy(a){return zf(a)&&!_0()}const Ty=new WeakSet;function UT(a,i,s={}){const[o,c,d]=U0(a,s),f=m=>{const y=m.currentTarget;if(!Sy(m)||Ty.has(m))return;To.add(y),s.stopPropagation&&Ty.add(m);const p=i(y,m),v=(M,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),To.has(y)&&To.delete(y),Sy(M)&&typeof p=="function"&&p(M,{success:j})},b=M=>{v(M,y===window||y===document||s.useGlobalTarget||B0(y,M.target))},S=M=>{v(M,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return o.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),Kc(m)&&(m.addEventListener("focus",p=>_T(p,c)),!OT(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Df(a){return qg(a)&&"ownerSVGElement"in a}const Ao=new WeakMap;let oa;const L0=(a,i,s)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:Df(o)&&"getBBox"in o?o.getBBox()[i]:o[s],BT=L0("inline","width","offsetWidth"),LT=L0("block","height","offsetHeight");function HT({target:a,borderBoxSize:i}){var s;(s=Ao.get(a))==null||s.forEach(o=>{o(a,{get width(){return BT(a,i)},get height(){return LT(a,i)}})})}function kT(a){a.forEach(HT)}function qT(){typeof ResizeObserver>"u"||(oa=new ResizeObserver(kT))}function YT(a,i){oa||qT();const s=N0(a);return s.forEach(o=>{let c=Ao.get(o);c||(c=new Set,Ao.set(o,c)),c.add(i),oa==null||oa.observe(o)}),()=>{s.forEach(o=>{const c=Ao.get(o);c==null||c.delete(i),c!=null&&c.size||oa==null||oa.unobserve(o)})}}const Eo=new Set;let wi;function GT(){wi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Eo.forEach(i=>i(a))},window.addEventListener("resize",wi)}function XT(a){return Eo.add(a),wi||GT(),()=>{Eo.delete(a),!Eo.size&&typeof wi=="function"&&(window.removeEventListener("resize",wi),wi=void 0)}}function Ay(a,i){return typeof a=="function"?XT(a):YT(a,i)}function QT(a){return Df(a)&&a.tagName==="svg"}const ZT=[...j0,Ft,We],KT=a=>ZT.find(D0(a)),Ey=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mi=()=>({x:Ey(),y:Ey()}),wy=()=>({min:0,max:0}),$t=()=>({x:wy(),y:wy()}),JT=new WeakMap;function Lo(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ql(a){return typeof a=="string"||Array.isArray(a)}const jf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rf=["initial",...jf];function Ho(a){return Lo(a.animate)||Rf.some(i=>ql(a[i]))}function H0(a){return!!(Ho(a)||a.variants)}function FT(a,i,s){for(const o in i){const c=i[o],d=s[o];if(ue(c))a.addValue(o,c);else if(ue(d))a.addValue(o,ji(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,ji(f!==void 0?f:c,{owner:a}))}}for(const o in s)i[o]===void 0&&a.removeValue(o);return i}const Jc={current:null},k0={current:!1},PT=typeof window<"u";function WT(){if(k0.current=!0,!!PT)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Jc.current=a.matches;a.addEventListener("change",i),i()}else Jc.current=!1}const My=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let No={};function q0(a){No=a}function $T(){return No}class IT{scrapeMotionValuesFromProps(i,s,o){return{}}constructor({parent:i,props:s,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:m},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Sf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const M=he.now();this.renderScheduledAtthis.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(k0.current||WT(),this.shouldReduceMotion=Jc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),ua(this.notifyUpdate),ua(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&CT.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:v}=s.accelerate,b=new x0({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:Pe(v)}),S=f(b);this.valueSubscriptions.set(i,()=>{S(),b.cancel()});return}const o=Vi.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Nt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in No){const s=No[i];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];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):$t()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;os.variantChildren.delete(i)}addValue(i,s){const o=this.values.get(i);s!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&s!==void 0&&(o=ji(s===null?void 0:s,{owner:this}),this.addValue(i,o)),o}readValue(i,s){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(kg(o)||Yg(o))?o=parseFloat(o):!KT(o)&&We.test(s)&&(o=O0(i,s)),this.setBaseTarget(i,ue(o)?o.get():o)),ue(o)?o.get():o}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const f=Ef(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[i])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!ue(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new cf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Cf.render(this.render)}}class Y0 extends IT{constructor(){super(...arguments),this.KeyframeResolver=MT}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const o=i.style;return o?o[s]:void 0}removeValueFromRenderState(i,{vars:s,style:o}){delete s[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ue(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class fa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function G0({top:a,left:i,right:s,bottom:o}){return{x:{min:i,max:s},y:{min:a,max:o}}}function tA({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function eA(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function vc(a){return a===void 0||a===1}function Fc({scale:a,scaleX:i,scaleY:s}){return!vc(a)||!vc(i)||!vc(s)}function Oa(a){return Fc(a)||X0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function X0(a){return Cy(a.x)||Cy(a.y)}function Cy(a){return a&&a!=="0%"}function Vo(a,i,s){const o=a-s,c=i*o;return s+c}function zy(a,i,s,o,c){return c!==void 0&&(a=Vo(a,c,o)),Vo(a,s,o)+i}function Pc(a,i=0,s=1,o,c){a.min=zy(a.min,i,s,o,c),a.max=zy(a.max,i,s,o,c)}function Q0(a,{x:i,y:s}){Pc(a.x,i.translate,i.scale,i.originPoint),Pc(a.y,s.translate,s.scale,s.originPoint)}const Dy=.999999999999,jy=1.0000000000001;function nA(a,i,s,o=!1){const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let m=0;mDy&&(i.x=1),i.yDy&&(i.y=1)}function Ci(a,i){a.min=a.min+i,a.max=a.max+i}function Ry(a,i,s,o,c=.5){const d=Bt(a.min,a.max,c);Pc(a,i,s,d,o)}function Oy(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function zi(a,i){Ry(a.x,Oy(i.x,a.x),i.scaleX,i.scale,i.originX),Ry(a.y,Oy(i.y,a.y),i.scaleY,i.scale,i.originY)}function Z0(a,i){return G0(eA(a.getBoundingClientRect(),i))}function aA(a,i,s){const o=Z0(a,s),{scroll:c}=i;return c&&(Ci(o.x,c.offset.x),Ci(o.y,c.offset.y)),o}const iA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lA=Ni.length;function sA(a,i,s){let o="",c=!0;for(let d=0;d{if(!i.target)return a;if(typeof a=="string")if(tt.test(a))a=parseFloat(a);else return a;const s=Ny(a,i.target.x),o=Ny(a,i.target.y);return`${s}% ${o}%`}},oA={correct:(a,{treeScale:i,projectionDelta:s})=>{const o=a,c=We.parse(a);if(c.length>5)return o;const d=We.createTransformer(a),f=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+f]/=m,c[1+f]/=y;const p=Bt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},Wc={borderRadius:{...Rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rl,borderTopRightRadius:Rl,borderBottomLeftRadius:Rl,borderBottomRightRadius:Rl,boxShadow:oA};function J0(a,{layout:i,layoutId:s}){return Vi.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Wc[a]||a==="opacity")}function Nf(a,i,s){var f;const o=a.style,c=i==null?void 0:i.style,d={};if(!o)return d;for(const m in o)(ue(o[m])||c&&ue(c[m])||J0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=o[m]);return d}function rA(a){return window.getComputedStyle(a)}class uA extends Y0{constructor(){super(...arguments),this.type="html",this.renderInstance=K0}readValueFromInstance(i,s){var o;if(Vi.has(s))return(o=this.projection)!=null&&o.isProjecting?Uc(s):z2(i,s);{const c=rA(i),d=(a0(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Z0(i,s)}build(i,s,o){Of(i,s,o.transformTemplate)}scrapeMotionValuesFromProps(i,s,o){return Nf(i,s,o)}}const cA={offset:"stroke-dashoffset",array:"stroke-dasharray"},fA={offset:"strokeDashoffset",array:"strokeDasharray"};function dA(a,i,s=1,o=0,c=!0){a.pathLength=1;const d=c?cA:fA;a[d.offset]=`${-o}`,a[d.array]=`${i} ${s}`}const hA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function F0(a,{attrX:i,attrY:s,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,v){if(Of(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:S}=a;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete b.transformBox);for(const M of hA)b[M]!==void 0&&(S[M]=b[M],delete b[M]);i!==void 0&&(b.x=i),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),c!==void 0&&dA(b,c,d,f,!1)}const P0=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"]),W0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function mA(a,i,s,o){K0(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(P0.has(c)?c:wf(c),i.attrs[c])}function $0(a,i,s){const o=Nf(a,i,s);for(const c in a)if(ue(a[c])||ue(i[c])){const d=Ni.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}class pA extends Y0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Vi.has(s)){const o=R0(s);return o&&o.default||0}return s=P0.has(s)?s:wf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,o){return $0(i,s,o)}build(i,s,o){F0(i,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,s,o,c){mA(i,s,o,c)}mount(i){this.isSVGTag=W0(i.tagName),super.mount(i)}}const yA=Rf.length;function I0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?I0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;sPromise.all(i.map(({animation:s,options:o})=>pT(a,s,o)))}function xA(a){let i=bA(a),s=Vy(),o=!0,c=!1;const d=p=>(v,b)=>{var M;const S=Di(a,b,p==="exit"?(M=a.presenceContext)==null?void 0:M.custom:void 0);if(S){const{transition:j,transitionEnd:B,...H}=S;v={...v,...H,...B}}return v};function f(p){i=p(a)}function m(p){const{props:v}=a,b=I0(a.parent)||{},S=[],M=new Set;let j={},B=1/0;for(let Y=0;YB&&K,Et=!1;const qt=Array.isArray(Z)?Z:[Z];let Ct=qt.reduce(d(Q),{});lt===!1&&(Ct={});const{prevResolvedValues:ce={}}=q,fe={...ce,...Ct},Yt=F=>{at=!0,M.has(F)&&(Et=!0,M.delete(F)),q.needsAnimating[F]=!0;const ut=a.getValue(F);ut&&(ut.liveStyle=!1)};for(const F in fe){const ut=Ct[F],G=ce[F];if(j.hasOwnProperty(F))continue;let A=!1;Yc(ut)&&Yc(G)?A=!tv(ut,G):A=ut!==G,A?ut!=null?Yt(F):M.add(F):ut!==void 0&&M.has(F)?Yt(F):q.protectedKeys[F]=!0}q.prevProp=Z,q.prevResolvedValues=Ct,q.isActive&&(j={...j,...Ct}),(o||c)&&a.blockInitialAnimation&&(at=!1);const O=P&&L;at&&(!O||Et)&&S.push(...qt.map(F=>{const ut={type:Q};if(typeof F=="string"&&(o||c)&&!O&&a.manuallyAnimateOnMount&&a.parent){const{parent:G}=a,A=Di(G,F);if(G.enteringChildren&&A){const{delayChildren:_}=A.transition||{};ut.delay=T0(G.enteringChildren,a,_)}}return{animation:F,options:ut}}))}if(M.size){const Y={};if(typeof v.initial!="boolean"){const Q=Di(a,Array.isArray(v.initial)?v.initial[0]:v.initial);Q&&Q.transition&&(Y.transition=Q.transition)}M.forEach(Q=>{const q=a.getBaseTarget(Q),Z=a.getValue(Q);Z&&(Z.liveStyle=!0),Y[Q]=q??null}),S.push({animation:Y})}let H=!!S.length;return o&&(v.initial===!1||v.initial===v.animate)&&!a.manuallyAnimateOnMount&&(H=!1),o=!1,c=!1,H?i(S):Promise.resolve()}function y(p,v){var S;if(s[p].isActive===v)return Promise.resolve();(S=a.variantChildren)==null||S.forEach(M=>{var j;return(j=M.animationState)==null?void 0:j.setActive(p,v)}),s[p].isActive=v;const b=m(p);for(const M in s)s[M].protectedKeys={};return b}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Vy(),c=!0}}}function SA(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!tv(i,a):!1}function Ra(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vy(){return{animate:Ra(!0),whileInView:Ra(),whileHover:Ra(),whileTap:Ra(),whileDrag:Ra(),whileFocus:Ra(),exit:Ra()}}function _y(a,i){a.min=i.min,a.max=i.max}function Je(a,i){_y(a.x,i.x),_y(a.y,i.y)}function Uy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const ev=1e-4,TA=1-ev,AA=1+ev,nv=.01,EA=0-nv,wA=0+nv;function me(a){return a.max-a.min}function MA(a,i,s){return Math.abs(a-i)<=s}function By(a,i,s,o=.5){a.origin=o,a.originPoint=Bt(i.min,i.max,a.origin),a.scale=me(s)/me(i),a.translate=Bt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=TA&&a.scale<=AA||isNaN(a.scale))&&(a.scale=1),(a.translate>=EA&&a.translate<=wA||isNaN(a.translate))&&(a.translate=0)}function Ul(a,i,s,o){By(a.x,i.x,s.x,o?o.originX:void 0),By(a.y,i.y,s.y,o?o.originY:void 0)}function Ly(a,i,s){a.min=s.min+i.min,a.max=a.min+me(i)}function CA(a,i,s){Ly(a.x,i.x,s.x),Ly(a.y,i.y,s.y)}function Hy(a,i,s){a.min=i.min-s.min,a.max=a.min+me(i)}function _o(a,i,s){Hy(a.x,i.x,s.x),Hy(a.y,i.y,s.y)}function ky(a,i,s,o,c){return a-=i,a=Vo(a,1/s,o),c!==void 0&&(a=Vo(a,1/c,o)),a}function zA(a,i=0,s=1,o=.5,c,d=a,f=a){if(sn.test(i)&&(i=parseFloat(i),i=Bt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Bt(d.min,d.max,o);a===d&&(m-=i),a.min=ky(a.min,i,s,m,c),a.max=ky(a.max,i,s,m,c)}function qy(a,i,[s,o,c],d,f){zA(a,i[s],i[o],i[c],i.scale,d,f)}const DA=["x","scaleX","originX"],jA=["y","scaleY","originY"];function Yy(a,i,s,o){qy(a.x,i,DA,s?s.x:void 0,o?o.x:void 0),qy(a.y,i,jA,s?s.y:void 0,o?o.y:void 0)}function Gy(a){return a.translate===0&&a.scale===1}function av(a){return Gy(a.x)&&Gy(a.y)}function Xy(a,i){return a.min===i.min&&a.max===i.max}function RA(a,i){return Xy(a.x,i.x)&&Xy(a.y,i.y)}function Qy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function iv(a,i){return Qy(a.x,i.x)&&Qy(a.y,i.y)}function Zy(a){return me(a.x)/me(a.y)}function Ky(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function ln(a){return[a("x"),a("y")]}function OA(a,i,s){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:S,skewX:M,skewY:j}=s;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),b&&(o+=`rotateX(${b}deg) `),S&&(o+=`rotateY(${S}deg) `),M&&(o+=`skewX(${M}deg) `),j&&(o+=`skewY(${j}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(o+=`scale(${m}, ${y})`),o||"none"}const lv=["TopLeft","TopRight","BottomLeft","BottomRight"],NA=lv.length,Jy=a=>typeof a=="string"?parseFloat(a):a,Fy=a=>typeof a=="number"||tt.test(a);function VA(a,i,s,o,c,d){c?(a.opacity=Bt(0,s.opacity??1,_A(o)),a.opacityExit=Bt(i.opacity??1,0,UA(o))):d&&(a.opacity=Bt(i.opacity??1,s.opacity??1,o));for(let f=0;foi?1:s(Ll(a,i,o))}function BA(a,i,s){const o=ue(a)?a:ji(a);return o.start(Af("",o,i,s)),o.animation}function Yl(a,i,s,o={passive:!0}){return a.addEventListener(i,s,o),()=>a.removeEventListener(i,s)}const LA=(a,i)=>a.depth-i.depth;class HA{constructor(){this.children=[],this.isDirty=!1}add(i){rf(this.children,i),this.isDirty=!0}remove(i){Do(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(LA),this.isDirty=!1,this.children.forEach(i)}}function kA(a,i){const s=he.now(),o=({timestamp:c})=>{const d=c-s;d>=i&&(ua(o),a(d-i))};return Nt.setup(o,!0),()=>ua(o)}function wo(a){return ue(a)?a.get():a}class qA{constructor(){this.members=[]}add(i){rf(this.members,i);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];if(o===i||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(Do(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(Do(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){var s;for(let o=this.members.indexOf(i)-1;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1&&((s=c.instance)==null?void 0:s.isConnected)!==!1)return this.promote(c),!0}return!1}promote(i,s){var c;const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.updateSnapshot(),i.scheduleRender();const{layoutDependency:d}=o.options,{layoutDependency:f}=i.options;(d===void 0||d!==f)&&(i.resumeFrom=o,s&&(o.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),(c=i.root)!=null&&c.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var s,o,c,d,f;(o=(s=i.options).onExitComplete)==null||o.call(s),(f=(c=i.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const Mo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bc=["","X","Y","Z"],YA=1e3;let GA=0;function xc(a,i,s,o){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function ov(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=C0(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",Nt,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&ov(o)}function rv({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=GA++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZA),this.nodes.forEach(PA),this.nodes.forEach(WA),this.nodes.forEach(KA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,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 y=0;ythis.root.updateBlockedByResize=!1;Nt.read(()=>{b=window.innerWidth}),a(f,()=>{const M=window.innerWidth;M!==b&&(b=M,this.root.updateBlockedByResize=!0,v&&v(),v=kA(S,250),Mo.hasAnimatedSinceResize&&(Mo.hasAnimatedSinceResize=!1,this.nodes.forEach(Iy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||n3,{onLayoutAnimationStart:B,onLayoutAnimationComplete:H}=p.getProps(),Y=!this.targetLayout||!iv(this.targetLayout,M),Q=!b&&S;if(this.options.layoutRoot||this.resumeFrom||Q||b&&(Y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const q={...Tf(j,"layout"),onPlay:B,onComplete:H};(p.shouldReduceMotion||this.options.layoutRoot)&&(q.delay=0,q.type=!1),this.startAnimation(q),this.setAnimationOrigin(v,Q)}else b||Iy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ua(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($A),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ov(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&&!me(this.snapshot.measuredBox.x)&&!me(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 y=0;y{const K=Z/1e3;tg(b.x,f.x,K),tg(b.y,f.y,K),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_o(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),t3(this.relativeTarget,this.relativeTargetOrigin,S,K),q&&RA(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=$t()),Je(q,this.relativeTarget)),B&&(this.animationValues=v,VA(v,p,this.latestValues,K,Q,Y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var m,y,p;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(p=(y=this.resumingFrom)==null?void 0:y.currentAnimation)==null||p.stop(),this.pendingAnimation&&(ua(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nt.update(()=>{Mo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ji(0)),this.motionValue.jump(0,!1),this.currentAnimation=BA(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),f.onUpdate&&f.onUpdate(v)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&uv(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||$t();const b=me(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+b;const S=me(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}Je(m,y),zi(m,v),Ul(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new qA),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&xc("z",f,p,this.animationValues);for(let v=0;v{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(Wy),this.root.sharedNodes.clear()}}}function XA(a){a.updateLayout()}function QA(a){var s;const i=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:c}=a.layout,{animationType:d}=a.options,f=i.source!==a.layout.source;d==="size"?ln(b=>{const S=f?i.measuredBox[b]:i.layoutBox[b],M=me(S);S.min=o[b].min,S.max=S.min+M}):uv(d,i.layoutBox,o)&&ln(b=>{const S=f?i.measuredBox[b]:i.layoutBox[b],M=me(o[b]);S.max=S.min+M,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+M)});const m=Mi();Ul(m,o,i.layoutBox);const y=Mi();f?Ul(y,a.applyTransform(c,!0),i.measuredBox):Ul(y,o,i.layoutBox);const p=!av(m);let v=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:M}=b;if(S&&M){const j=$t();_o(j,i.layoutBox,S.layoutBox);const B=$t();_o(B,o,M.layoutBox),iv(j,B)||(v=!0),b.options.layoutRoot&&(a.relativeTarget=B,a.relativeTargetOrigin=j,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function ZA(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function KA(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function JA(a){a.clearSnapshot()}function Wy(a){a.clearMeasurements()}function $y(a){a.isLayoutDirty=!1}function FA(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Iy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function PA(a){a.resolveTargetDelta()}function WA(a){a.calcProjection()}function $A(a){a.resetSkewAndRotation()}function IA(a){a.removeLeadSnapshot()}function tg(a,i,s){a.translate=Bt(i.translate,0,s),a.scale=Bt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function eg(a,i,s,o){a.min=Bt(i.min,s.min,o),a.max=Bt(i.max,s.max,o)}function t3(a,i,s,o){eg(a.x,i.x,s.x,o),eg(a.y,i.y,s.y,o)}function e3(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const n3={duration:.45,ease:[.4,0,.1,1]},ng=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),ag=ng("applewebkit/")&&!ng("chrome/")?Math.round:Xe;function ig(a){a.min=ag(a.min),a.max=ag(a.max)}function a3(a){ig(a.x),ig(a.y)}function uv(a,i,s){return a==="position"||a==="preserve-aspect"&&!MA(Zy(i),Zy(s),.2)}function i3(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const l3=rv({attachResizeListener:(a,i)=>Yl(a,"resize",i),measureScroll:()=>{var a,i;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Sc={current:void 0},cv=rv({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Sc.current){const a=new l3({});a.mount(window),a.setOptions({layoutScroll:!0}),Sc.current=a}return Sc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Vf=k.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function lg(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function s3(...a){return i=>{let s=!1;const o=a.map(c=>{const d=lg(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c{const{width:M,height:j,top:B,left:H,right:Y,bottom:Q}=y.current;if(i||d===!1||!m.current||!M||!j)return;const q=s==="left"?`left: ${H}`:`right: ${Y}`,Z=o==="bottom"?`bottom: ${Q}`:`top: ${B}`;m.current.dataset.motionPopId=f;const K=document.createElement("style");p&&(K.nonce=p);const lt=c??document.head;return lt.appendChild(K),K.sheet&&K.sheet.insertRule(` [data-motion-pop-id="${f}"] { position: absolute !important; width: ${M}px !important; height: ${j}px !important; ${q}px !important; ${Z}px !important; } `),()=>{lt.contains(K)&<.removeChild(K)}},[i]),x.jsx(r3,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:k.cloneElement(a,{ref:b})})}const c3=({children:a,initial:i,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const v=of(f3),b=k.useId();let S=!0,M=k.useMemo(()=>(S=!1,{id:b,initial:i,isPresent:s,custom:c,onExitComplete:j=>{v.set(j,!0);for(const B of v.values())if(!B)return;o&&o()},register:j=>(v.set(j,!1),()=>v.delete(j))}),[s,v,o]);return d&&S&&(M={...M}),k.useMemo(()=>{v.forEach((j,B)=>v.set(B,!1))},[s]),k.useEffect(()=>{!s&&!v.size&&o&&o()},[s]),a=x.jsx(u3,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),x.jsx(Bo.Provider,{value:M,children:a})};function f3(){return new Map}function fv(a=!0){const i=k.useContext(Bo);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=i,d=k.useId();k.useEffect(()=>{if(a)return c(d)},[a]);const f=k.useCallback(()=>a&&o&&o(d),[d,o,a]);return!s&&o?[!1,f]:[!0]}const yo=a=>a.key||"";function sg(a){const i=[];return k.Children.forEach(a,s=>{k.isValidElement(s)&&i.push(s)}),i}const d3=({children:a,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[v,b]=fv(f),S=k.useMemo(()=>sg(a),[a]),M=f&&!v?[]:S.map(yo),j=k.useRef(!0),B=k.useRef(S),H=of(()=>new Map),Y=k.useRef(new Set),[Q,q]=k.useState(S),[Z,K]=k.useState(S);Hg(()=>{j.current=!1,B.current=S;for(let L=0;L{const at=yo(L),Et=f&&!v?!1:S===Z||M.includes(at),qt=()=>{if(Y.current.has(at))return;if(Y.current.add(at),H.has(at))H.set(at,!0);else return;let Ct=!0;H.forEach(ce=>{ce||(Ct=!1)}),Ct&&(P==null||P(),K(B.current),f&&(b==null||b()),o&&o())};return x.jsx(c3,{isPresent:Et,initial:!j.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:Et?void 0:qt,anchorX:m,anchorY:y,children:L},at)})})},dv=k.createContext({strict:!1}),og={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"]};let rg=!1;function h3(){if(rg)return;const a={};for(const i in og)a[i]={isEnabled:s=>og[i].some(o=>!!s[o])};q0(a),rg=!0}function hv(){return h3(),$T()}function m3(a){const i=hv();for(const s in a)i[s]={...i[s],...a[s]};q0(i)}const p3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Uo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||p3.has(a)}let mv=a=>!Uo(a);function y3(a){typeof a=="function"&&(mv=i=>i.startsWith("on")?!Uo(i):a(i))}try{y3(require("@emotion/is-prop-valid").default)}catch{}function g3(a,i,s){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(mv(c)||s===!0&&Uo(c)||!i&&!Uo(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const ko=k.createContext({});function v3(a,i){if(Ho(a)){const{initial:s,animate:o}=a;return{initial:s===!1||ql(s)?s:void 0,animate:ql(o)?o:void 0}}return a.inherit!==!1?i:{}}function b3(a){const{initial:i,animate:s}=v3(a,k.useContext(ko));return k.useMemo(()=>({initial:i,animate:s}),[ug(i),ug(s)])}function ug(a){return Array.isArray(a)?a.join(" "):a}const _f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pv(a,i,s){for(const o in i)!ue(i[o])&&!J0(o,s)&&(a[o]=i[o])}function x3({transformTemplate:a},i){return k.useMemo(()=>{const s=_f();return Of(s,i,a),Object.assign({},s.vars,s.style)},[i])}function S3(a,i){const s=a.style||{},o={};return pv(o,s,a),Object.assign(o,x3(a,i)),o}function T3(a,i){const s={},o=S3(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=o,s}const yv=()=>({..._f(),attrs:{}});function A3(a,i,s,o){const c=k.useMemo(()=>{const d=yv();return F0(d,i,W0(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};pv(d,a.style,a),c.style={...d,...c.style}}return c}const E3=["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 Uf(a){return typeof a!="string"||a.includes("-")?!1:!!(E3.indexOf(a)>-1||/[A-Z]/u.test(a))}function w3(a,i,s,{latestValues:o},c,d=!1,f){const y=(f??Uf(a)?A3:T3)(i,o,c,a),p=g3(i,typeof a=="string",d),v=a!==k.Fragment?{...p,...y,ref:s}:{},{children:b}=i,S=k.useMemo(()=>ue(b)?b.get():b,[b]);return k.createElement(a,{...v,children:S})}function M3({scrapeMotionValuesFromProps:a,createRenderState:i},s,o,c){return{latestValues:C3(s,o,c,a),renderState:i()}}function C3(a,i,s,o){const c={},d=o(a,{});for(const S in d)c[S]=wo(d[S]);let{initial:f,animate:m}=a;const y=Ho(a),p=H0(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const b=v?m:f;if(b&&typeof b!="boolean"&&!Lo(b)){const S=Array.isArray(b)?b:[b];for(let M=0;M(i,s)=>{const o=k.useContext(ko),c=k.useContext(Bo),d=()=>M3(a,i,o,c);return s?d():of(d)},z3=gv({scrapeMotionValuesFromProps:Nf,createRenderState:_f}),D3=gv({scrapeMotionValuesFromProps:$0,createRenderState:yv}),j3=Symbol.for("motionComponentSymbol");function R3(a,i,s){const o=k.useRef(s);k.useInsertionEffect(()=>{o.current=s});const c=k.useRef(null);return k.useCallback(d=>{var m;d&&((m=a.onMount)==null||m.call(a,d));const f=o.current;if(typeof f=="function")if(d){const y=f(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const vv=k.createContext({});function Ai(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function O3(a,i,s,o,c,d){var q,Z;const{visualElement:f}=k.useContext(ko),m=k.useContext(dv),y=k.useContext(Bo),p=k.useContext(Vf),v=p.reducedMotion,b=p.skipAnimations,S=k.useRef(null),M=k.useRef(!1);o=o||m.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:f,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:d}),M.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const j=S.current,B=k.useContext(vv);j&&!j.projection&&c&&(j.type==="html"||j.type==="svg")&&N3(S.current,s,c,B);const H=k.useRef(!1);k.useInsertionEffect(()=>{j&&H.current&&j.update(s,y)});const Y=s[M0],Q=k.useRef(!!Y&&typeof window<"u"&&!((q=window.MotionHandoffIsComplete)!=null&&q.call(window,Y))&&((Z=window.MotionHasOptimisedAnimation)==null?void 0:Z.call(window,Y)));return Hg(()=>{M.current=!0,j&&(H.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),Q.current&&j.animationState&&j.animationState.animateChanges())}),k.useEffect(()=>{j&&(!Q.current&&j.animationState&&j.animationState.animateChanges(),Q.current&&(queueMicrotask(()=>{var K;(K=window.MotionHandoffMarkAsComplete)==null||K.call(window,Y)}),Q.current=!1),j.enteringChildren=void 0)}),j}function N3(a,i,s,o){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:bv(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&Ai(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:y,layoutRoot:p})}function bv(a){if(a)return a.options.allowProjection!==!1?a.projection:bv(a.parent)}function Tc(a,{forwardMotionProps:i=!1,type:s}={},o,c){o&&m3(o);const d=s?s==="svg":Uf(a),f=d?D3:z3;function m(p,v){let b;const S={...k.useContext(Vf),...p,layoutId:V3(p)},{isStatic:M}=S,j=b3(p),B=f(p,M);if(!M&&typeof window<"u"){_3();const H=U3(S);b=H.MeasureLayout,j.visualElement=O3(a,B,S,c,H.ProjectionNode,d)}return x.jsxs(ko.Provider,{value:j,children:[b&&j.visualElement?x.jsx(b,{visualElement:j.visualElement,...S}):null,w3(a,p,R3(B,j.visualElement,v),B,M,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=k.forwardRef(m);return y[j3]=a,y}function V3({layoutId:a}){const i=k.useContext(sf).id;return i&&a!==void 0?i+"-"+a:a}function _3(a,i){k.useContext(dv).strict}function U3(a){const i=hv(),{drag:s,layout:o}=i;if(!s&&!o)return{};const c={...s,...o};return{MeasureLayout:s!=null&&s.isEnabled(a)||o!=null&&o.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function B3(a,i){if(typeof Proxy>"u")return Tc;const s=new Map,o=(d,f)=>Tc(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,Tc(f,void 0,a,i)),s.get(f))})}const L3=(a,i)=>i.isSVG??Uf(a)?new pA(i):new uA(i,{allowProjection:a!==k.Fragment});class H3 extends fa{constructor(i){super(i),i.animationState||(i.animationState=xA(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Lo(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let k3=0;class q3 extends fa{constructor(){super(...arguments),this.id=k3++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const Y3={animation:{Feature:H3},exit:{Feature:q3}};function Zl(a){return{point:{x:a.pageX,y:a.pageY}}}const G3=a=>i=>zf(i)&&a(i,Zl(i));function Bl(a,i,s,o){return Yl(a,i,G3(s),o)}const xv=({current:a})=>a?a.ownerDocument.defaultView:null,cg=(a,i)=>Math.abs(a-i);function X3(a,i){const s=cg(a.x,i.x),o=cg(a.y,i.y);return Math.sqrt(s**2+o**2)}const fg=new Set(["auto","scroll"]);class Sv{constructor(i,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=M=>{this.handleScroll(M.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Ec(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,B=X3(M.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!B)return;const{point:H}=M,{timestamp:Y}=oe;this.history.push({...H,timestamp:Y});const{onStart:Q,onMove:q}=this.handlers;j||(Q&&Q(this.lastMoveEvent,M),this.startEvent=this.lastMoveEvent),q&&q(this.lastMoveEvent,M)},this.handlePointerMove=(M,j)=>{this.lastMoveEvent=M,this.lastMoveEventInfo=Ac(j,this.transformPagePoint),Nt.update(this.updatePoint,!0)},this.handlePointerUp=(M,j)=>{this.end();const{onEnd:B,onSessionEnd:H,resumeAnimation:Y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Ec(M.type==="pointercancel"?this.lastMoveEventInfo:Ac(j,this.transformPagePoint),this.history);this.startEvent&&B&&B(M,Q),H&&H(M,Q)},!zf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const y=Zl(i),p=Ac(y,this.transformPagePoint),{point:v}=p,{timestamp:b}=oe;this.history=[{...v,timestamp:b}];const{onSessionStart:S}=s;S&&S(i,Ec(p,this.history)),this.removeListeners=Gl(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const o=getComputedStyle(s);(fg.has(o.overflowX)||fg.has(o.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const o=i===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},d={x:c.x-s.x,y:c.y-s.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),Nt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ua(this.updatePoint)}}function Ac(a,i){return i?{point:i(a.point)}:a}function dg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Ec({point:a},i){return{point:a,delta:dg(a,Tv(i)),offset:dg(a,Q3(i)),velocity:Z3(i,.1)}}function Q3(a){return a[0]}function Tv(a){return a[a.length-1]}function Z3(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,o=null;const c=Tv(a);for(;s>=0&&(o=a[s],!(c.timestamp-o.timestamp>Pe(i)));)s--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&c.timestamp-o.timestamp>Pe(i)*2&&(o=a[1]);const d=Ge(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function K3(a,{min:i,max:s},o){return i!==void 0&&as&&(a=o?Bt(s,a,o.max):Math.min(a,s)),a}function hg(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function J3(a,{top:i,left:s,bottom:o,right:c}){return{x:hg(a.x,s,c),y:hg(a.y,i,o)}}function mg(a,i){let s=i.min-a.min,o=i.max-a.max;return i.max-i.mino?s=Ll(i.min,i.max-o,a.min):o>c&&(s=Ll(a.min,a.max-c,i.min)),rn(0,1,s)}function W3(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const $c=.35;function $3(a=$c){return a===!1?a=0:a===!0&&(a=$c),{x:pg(a,"left","right"),y:pg(a,"top","bottom")}}function pg(a,i,s){return{min:yg(a,i),max:yg(a,s)}}function yg(a,i){return typeof a=="number"?a:a[i]||0}const I3=new WeakMap;class t6{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{s&&this.snapToCursor(Zl(b).point),this.stopAnimation()},f=(b,S)=>{const{drag:M,dragPropagation:j,onDragStart:B}=this.getProps();if(M&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zT(M),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ln(Y=>{let Q=this.getAxisMotionValue(Y).get()||0;if(sn.test(Q)){const{projection:q}=this.visualElement;if(q&&q.layout){const Z=q.layout.layoutBox[Y];Z&&(Q=me(Z)*(parseFloat(Q)/100))}}this.originPoint[Y]=Q}),B&&Nt.update(()=>B(b,S),!1,!0),Gc(this.visualElement,"transform");const{animationState:H}=this.visualElement;H&&H.setActive("whileDrag",!0)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:M,dragDirectionLock:j,onDirectionLock:B,onDrag:H}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:Y}=S;if(j&&this.currentDirection===null){this.currentDirection=n6(Y),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",S.point,Y),this.updateAxis("y",S.point,Y),this.visualElement.render(),H&&Nt.update(()=>H(b,S),!1,!0)},y=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Sv(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:xv(this.visualElement),element:this.visualElement.current})}stop(i,s){const o=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Nt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,o){const{drag:c}=this.getProps();if(!o||!go(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=K3(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&Ai(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=J3(o.layoutBox,i):this.constraints=!1,this.elastic=$3(s),c!==this.constraints&&!Ai(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&ln(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=W3(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!Ai(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=aA(o,c.root,this.visualElement.getTransformPagePoint());let f=F3(c.layout.layoutBox,d);if(s){const m=s(tA(f));this.hasMutatedConstraints=!!m,m&&(f=G0(m))}return f}startAnimation(i){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=ln(v=>{if(!go(v,s,this.currentDirection))return;let b=y&&y[v]||{};f&&(b={min:0,max:0});const S=c?200:1e6,M=c?40:1e7,j={type:"inertia",velocity:o?i[v]:0,bounceStiffness:S,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,j)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const o=this.getAxisMotionValue(i);return Gc(this.visualElement,i),o.start(Af(i,o,0,s,this.visualElement,!1))}stopAnimation(){ln(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){ln(s=>{const{drag:o}=this.getProps();if(!go(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s],y=d.get()||0;d.set(i[s]-Bt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!Ai(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};ln(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=P3({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),ln(f=>{if(!go(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Bt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;I3.set(this.visualElement,this);const i=this.visualElement.current,s=Bl(i,"pointerdown",p=>{const{drag:v,dragListener:b=!0}=this.getProps(),S=p.target,M=S!==i&&VT(S);v&&b&&!M&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();Ai(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=e6(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Nt.read(c);const m=Yl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(ln(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=p[b].translate,S.set(S.get()+p[b].translate))}),this.visualElement.render())}));return()=>{m(),s(),f(),y&&y(),o&&o()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=$c,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function gg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function e6(a,i,s){const o=Ay(a,gg(s)),c=Ay(i,gg(s));return()=>{o(),c()}}function go(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function n6(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class a6 extends fa{constructor(i){super(i),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new t6(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const wc=a=>(i,s)=>{a&&Nt.update(()=>a(i,s),!1,!0)};class i6 extends fa{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(i){this.session=new Sv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:wc(i),onStart:wc(s),onMove:wc(o),onEnd:(d,f)=>{delete this.session,c&&Nt.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Bl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Mc=!1;class l6 extends k.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),o&&o.register&&c&&o.register(d),Mc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Mo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,i.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Mc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Nt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Cf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=i;Mc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Av(a){const[i,s]=fv(),o=k.useContext(sf);return x.jsx(l6,{...a,layoutGroup:o,switchLayoutGroup:k.useContext(vv),isPresent:i,safeToRemove:s})}const s6={pan:{Feature:i6},drag:{Feature:a6,ProjectionNode:cv,MeasureLayout:Av}};function vg(a,i,s){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=o[c];d&&Nt.postRender(()=>d(i,Zl(i)))}class o6 extends fa{mount(){const{current:i}=this.node;i&&(this.unmount=jT(i,(s,o)=>(vg(this.node,o,"Start"),c=>vg(this.node,c,"End"))))}unmount(){}}class r6 extends fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Gl(Yl(this.node.current,"focus",()=>this.onFocus()),Yl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bg(a,i,s){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=o[c];d&&Nt.postRender(()=>d(i,Zl(i)))}class u6 extends fa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=UT(i,(c,d)=>(bg(this.node,d,"Start"),(f,{success:m})=>bg(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const Ic=new WeakMap,Cc=new WeakMap,c6=a=>{const i=Ic.get(a.target);i&&i(a)},f6=a=>{a.forEach(c6)};function d6({root:a,...i}){const s=a||document;Cc.has(s)||Cc.set(s,{});const o=Cc.get(s),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(f6,{root:a,...i})),o[c]}function h6(a,i,s){const o=d6(i);return Ic.set(a,s),o.observe(a),()=>{Ic.delete(a),o.unobserve(a)}}const m6={some:0,all:1};class p6 extends fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:m6[c]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),S=p?v:b;S&&S(y)};return h6(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(y6(i,s))&&this.startObserver()}unmount(){}}function y6({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const g6={inView:{Feature:p6},tap:{Feature:u6},focus:{Feature:r6},hover:{Feature:o6}},v6={layout:{ProjectionNode:cv,MeasureLayout:Av}},b6={...Y3,...g6,...s6,...v6},Ot=B3(b6,L3),x6={AboutSection:{title:"¿Quién es Luz Aurora?",description:"Creemos que la sanación emocional es el camino a la verdadera paz y propósito. Conoce a Luz Aurora: una experta en transformación emocional que ha dedicado más de 25 años a sanar traumas, liberar limitaciones y activar el potencial de miles de personas alrededor del mundo.",button:"Conoce a Luz",workedWith:"Algunos de mis clientes:"},Footer:{ctaTitle:"¿Estás Listo para Vivir una Vida Extraordinaria?",privacyPolicy:"Política de Privacidad",termsService:"Términos del Servicio",copyright:"Luz Aurora © 2026. Todos los derechos reservados."},Hero:{description:"Descubre cómo miles de personas han transformado sus vidas a través de la sanación profunda y la reconexión con su verdadero propósito.",button:"Retiros",nextEvent:"PROXIMOS RETIROS",altHero:"Retiro de Sanación Emocional"},Navbar:{navSobreLuz:"Sobre Luz",navEventos:"Eventos",navConferencias:"Conferencias",navComunidad:"Comunidad",buttonStart:"Empieza Hoy"},Pillars:{subtitle:"Conferencias acompañadas de las siguientes técnicas:",pillarsList:["Programación Neurolinguística","Neurociencia","Inteligencia Emocional ","Psicología Gestalt","Procesos de Hipnosis","Regresión y Visualización Guiada","Liberación Emocional"],button:"Descubre más"},SecondaryHero:{title:"Libera Tu Historia",description:"A través de retiros transformadores, conferencias inspiradoras y una comunidad exclusiva, accede a las herramientas que necesitas para evolucionar.",button:"Empieza Hoy"},StatsSection:{title:"Resultados Reales",description:"Miles de personas alrededor del mundo han experimentado transformaciones profundas a través de los retiros, conferencias y comunidad de Luz Aurora.",stats:[{value:"300%",label:"Aumento en Claridad Mental y Propósito"},{value:"139%",label:"Mejora en Relaciones y Conexión Emocional"},{value:"10,000+",label:"Personas Transformadas en los Últimos Años"},{value:"98%",label:"Tasa de Satisfacción y Recomendación"}]},UpcomingEvents:{headerTitle:"Transforma Tu Vida",headerDescription:"Accede a experiencias transformadoras diseñadas para sanar tu pasado, liberar tus limitaciones y activar tu verdadero potencial.",sectionTitle:"Próximos eventos",inPerson:"Evento Presencial",eventTitle:"LIBERA TU HISTORIA",eventDescription:"El Retiro de Sanación Emocional con Medicinas Ancestrales",eventButton:"Reserva Tu Lugar",labelDates:"Fechas",labelLocation:"Lugar",datesList:[{date:"Mayo 15 - 17",location:"Cancún, Q. Roo, México"},{date:"Julio 10 - 12",location:"San Miguel de Allende, Gto. México"}]},VideoTestimonials:{testimonials:[{name:"Rosario",location:"España",quote:"Me siento que soy un ave, que soy libre, salí de una jaula y mi alma se conectó con el universo. Encontré mi libertad."},{name:"Luis",location:"Colombia",quote:"Me voy lleno de amor, es mi segunda vez tomando el retiro, me voy con más sanación y más amor, gracias Luz Aurora"},{name:"Mercedes e Idalia",location:"Estados Unidos",quote:"Se fue el miedo que tenia y me voy con claridad. Antes todo era miedo y oscuridad, ahora sé que siempre hay una luz y que la luz está dentro de ti."},{name:"Giselle",location:"San Francisco",quote:"Me llenó por completo, me mostró una luz, me mostró mi verdadero valor. Estoy muy agradecida con Luz y con todas las personas que están aquí."},{name:"Oscar y Sara",location:"Estados Unidos",quote:"Llevo mucho tiempo deseando esto que experimenté aquí. Todos aquí somos una pieza, somos hermanos."},{name:"Ivoni",location:"Estados Unidos",quote:"Luz es una buena maestra y me ayudó mucho a sanar."},{name:"Jackie",location:"Atlanta",quote:"Luz ha sido una gran bendición no solamente para mí, pero para mi familia."},{name:"Luz",location:"Estados Unidos",quote:"Ahora tengo muchísima paz en mi corazón, tengo mi mente clara."}]},TestimonialQuote:{quote:"Luz Aurora me devolvió a mí misma. Con su guía, he sanado lo que creía que era imposible, y ahora vivo con un poder y una paz que nunca había sentido."}},un={es:x6},nn=un.es.Navbar;function S6(){const[a,i]=k.useState(!1),s=(o,c)=>{if(c.startsWith("#")){o.preventDefault();const d=c.replace("#",""),f=document.getElementById(d);if(i(!1),d===""){window.scrollTo({top:0,behavior:"smooth"});return}f&&setTimeout(()=>{const p=f.getBoundingClientRect().top+window.scrollY-70;window.scrollTo({top:p,behavior:"smooth"})},10)}};return x.jsxs("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-brand-dark text-white shadow-md",children:[x.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:x.jsxs("div",{className:"flex justify-between items-center h-16",children:[x.jsx("div",{className:"shrink-0 flex items-center",children:x.jsx("a",{href:"#",onClick:o=>s(o,"#"),className:"font-matcha sm:text-3xl md:text-4xl tracking-wider font-medium",children:"LUZ AURORA"})}),x.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[x.jsx("a",{href:"#about",onClick:o=>s(o,"#about"),className:"flex items-center text-md font-sans hover:text-gray-300 transition-colors",children:nn.navSobreLuz}),x.jsx("a",{href:"#events",onClick:o=>s(o,"#events"),className:"flex items-center text-md font-sans hover:text-gray-300 transition-colors",children:nn.navEventos}),x.jsx("a",{href:"#conferencias",onClick:o=>s(o,"#conferencias"),className:"flex items-center text-md font-sans hover:text-gray-300 transition-colors",children:nn.navConferencias}),x.jsx("a",{href:"https://api.leadconnectorhq.com/widget/form/q1RYKIPbMTWPH5EAOolF",target:"_blank",rel:"noopener noreferrer",onClick:o=>s(o,"https://api.leadconnectorhq.com/widget/form/q1RYKIPbMTWPH5EAOolF"),className:"flex items-center text-md font-sans hover:text-gray-300 transition-colors",children:nn.navComunidad}),x.jsx("a",{href:"https://wa.me/529843153030?text=Estoy+interesado+en+el+pr%C3%B3ximo+retiro%21",target:"_blank",rel:"noopener noreferrer",children:x.jsx(on,{variant:"white",className:"py-2 px-4",children:nn.buttonStart})})]}),x.jsx("div",{className:"md:hidden flex items-center",children:x.jsx("button",{onClick:()=>i(!a),className:"text-white hover:text-gray-300 focus:outline-none",children:a?x.jsx(Sg,{className:"h-6 w-6"}):x.jsx(xx,{className:"h-6 w-6"})})})]})}),x.jsx(d3,{children:a&&x.jsx(Ot.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden bg-brand-dark border-t border-white/10",children:x.jsxs("div",{className:"px-4 pt-2 pb-6 space-y-2",children:[x.jsx("a",{href:"#about",className:"block px-3 py-2 rounded-md text-base font-sans hover:bg-brand-light",onClick:o=>s(o,"#about"),children:nn.navSobreLuz}),x.jsx("a",{href:"#events",className:"block px-3 py-2 rounded-md text-base font-sans hover:bg-brand-light",onClick:o=>s(o,"#events"),children:nn.navEventos}),x.jsx("a",{href:"#conferencias",className:"block px-3 py-2 rounded-md text-base font-sans hover:bg-brand-light",onClick:o=>s(o,"#conferencias"),children:nn.navConferencias}),x.jsx("a",{href:"https://api.leadconnectorhq.com/widget/form/q1RYKIPbMTWPH5EAOolF",className:"block px-3 py-2 rounded-md text-base font-sans hover:bg-brand-light",onClick:o=>s(o,"https://api.leadconnectorhq.com/widget/form/q1RYKIPbMTWPH5EAOolF"),children:nn.navComunidad}),x.jsx("div",{className:"pt-4",children:x.jsx("a",{href:"https://wa.me/529843153030?text=Estoy+interesado+en+el+pr%C3%B3ximo+retiro%21",target:"_blank",rel:"noopener noreferrer",children:x.jsx(on,{variant:"white",className:"py-2 px-4",children:nn.buttonStart})})})]})})})]})}function T6({onClick:a,className:i}){return x.jsx("button",{onClick:a,className:Nl("absolute top-4 right-4 md:top-6 md:right-6 z-50","bg-white/20 backdrop-blur-lg border border-white/30 rounded-full","w-10 h-10 md:w-12 md:h-12 flex items-center justify-center","shadow-[0_4px_24px_rgba(0,0,0,0.8)] cursor-pointer",i),"aria-label":"Cerrar video",children:x.jsx(Sg,{className:"w-5 h-5 md:w-6 md:h-6 text-white filter-[drop-shadow(1px_0_0_rgba(128,128,128,1))_drop-shadow(-1px_0_0_rgba(128,128,128,1))_drop-shadow(0_1px_0_rgba(128,128,128,1))_drop-shadow(0_-1px_0_rgba(128,128,128,1))_drop-shadow(0_4px_12px_rgba(0,0,0,1))]"})})}const Ev=k.createContext(void 0);function A6({children:a}){const[i,s]=k.useState(null),o=d=>s(d),c=()=>s(null);return x.jsxs(Ev.Provider,{value:{openVideo:o,closeVideo:c},children:[a,i&&x.jsx(E6,{src:i,onClose:c})]})}function _i(){const a=k.useContext(Ev);if(!a)throw new Error("useVideoModal must be used within a VideoModalProvider");return a}function E6({src:a,onClose:i}){const s=k.useRef(null);return x.jsx("div",{className:"fixed inset-0 z-9999 flex items-center justify-center bg-black/90 p-4 md:p-8",onClick:i,children:x.jsxs("div",{className:"relative max-w-full max-h-[90vh] flex items-center justify-center",onClick:o=>o.stopPropagation(),children:[x.jsx(T6,{onClick:i}),x.jsx("video",{ref:s,src:a,autoPlay:!0,controls:!0,playsInline:!0,className:"max-w-full max-h-[90vh] w-auto h-auto object-contain shadow-2xl rounded-2xl bg-black"})]})})}const w6={center:"items-center justify-center","top-left":"items-start justify-start p-6","top-right":"items-start justify-end p-6","bottom-left":"items-end justify-start p-6","bottom-right":"items-end justify-end p-6"};function Kl({text:a,isLoading:i,position:s="center",className:o}){const c=i?"center":s;return x.jsx("div",{className:Nl("absolute inset-0 flex transition-all duration-500 pointer-events-none",w6[c],o),children:x.jsx("div",{className:Nl("bg-white/20 backdrop-blur-md border border-white/30 flex items-center justify-center transition-all duration-500 shadow-2xl",!i&&"group-hover:scale-110 group-hover/vid:scale-110 group-hover/card:scale-110 group-hover/testimonial:scale-110",a&&!i?"rounded-full py-3 px-6 gap-3":"w-16 h-16 rounded-full"),children:i?x.jsx(vx,{className:"w-8 h-8 text-white animate-spin"}):x.jsxs(x.Fragment,{children:[x.jsx(Tx,{className:Nl("text-white fill-white",a?"w-5 h-5":"w-8 h-8 ml-1")}),a&&x.jsx("span",{className:"text-white font-bold tracking-wide text-sm whitespace-nowrap",children:a})]})})})}const vo=un.es.Hero;function M6(){const{openVideo:a}=_i(),[i,s]=k.useState(!0),o=(c,d)=>{c.preventDefault();const f=d.replace("#",""),m=document.getElementById(f);if(m){const v=m.getBoundingClientRect().top+window.scrollY-70;window.scrollTo({top:v,behavior:"smooth"})}};return x.jsx("section",{className:"bg-black pt-23 pb-8",children:x.jsx("div",{className:"max-w-8xl mx-auto px-4 sm:px-10 md:px-20",children:x.jsxs(Ot.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.8},className:"relative h-[85vh] min-h-[600px] rounded-2xl overflow-hidden shadow-2xl",children:[x.jsxs("div",{className:"absolute inset-0 z-0",children:[x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d3e60720fe24d650d.webp",alt:vo.altHero,className:"w-full h-full object-cover object-[68%_center] md:object-center"}),x.jsx("div",{className:"absolute inset-0 bg-[#000000]/20"})]}),x.jsx("div",{className:"absolute inset-0 z-10 flex flex-col justify-end p-4 md:p-8 lg:p-10",children:x.jsxs("div",{className:"flex flex-col lg:flex-row items-end justify-between gap-12 w-full",children:[x.jsxs("div",{className:"max-w-3xl w-full",children:[x.jsx(Ot.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.8},className:"text-4xl md:text-6xl lg:text-7xl font-serif font-bold text-white leading-[1.1] mb-6",children:x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d2d0fea394872f343.png",alt:"Luz Aurora",className:"w-full max-w-[500px] mx-auto drop-shadow-[0_45px_100px_rgba(0,0,0,1)]"})}),x.jsx(Ot.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8},className:"text-lg md:text-xl text-gray-200 mb-8 max-w-2xl leading-relaxed",children:vo.description}),x.jsx(Ot.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7,duration:.8},children:x.jsx("a",{href:"#events",onClick:c=>o(c,"#events"),children:x.jsx(on,{variant:"primary",children:vo.button})})})]}),x.jsxs(Ot.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.9,duration:.8},className:"relative hidden md:block shrink-0",children:[x.jsx("div",{className:"absolute -top-8 left-4 flex items-center gap-3",children:x.jsx("span",{className:"text-brand-gold/90 text-xl font-bold tracking-wide [text-shadow:3px_3px_4px_#000000]",children:vo.nextEvent})}),x.jsxs("div",{onClick:()=>a("https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bdb71bb5ee801095161161.mp4"),className:"w-87 h-58 rounded-4xl overflow-hidden shadow-2xl backdrop-blur-sm bg-black/20 group cursor-pointer transition-colors",children:[x.jsx("video",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bdb71bb5ee801095161161.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,onCanPlay:()=>s(!1),onWaiting:()=>s(!0),onPlaying:()=>s(!1),className:"w-full h-full scale-130 object-cover transition-all duration-500"}),x.jsx(Kl,{text:"Ver video",position:"bottom-right",isLoading:i})]})]})]})})]})})})}const zc=un.es.SecondaryHero;function C6(){const{openVideo:a}=_i(),[i,s]=k.useState(!0);return x.jsxs("section",{className:"relative h-[95vh] w-full overflow-hidden",children:[x.jsxs("div",{onClick:()=>a("https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b89f643e607238004f7896.mp4"),className:"absolute inset-0 z-0 cursor-pointer group/vid",children:[x.jsx("video",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b89f643e607238004f7896.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,onCanPlay:()=>s(!1),onWaiting:()=>s(!0),onPlaying:()=>s(!1),className:"w-full h-full object-cover transition-transform duration-1000"}),i&&x.jsx(Kl,{isLoading:i}),x.jsx("div",{className:"absolute inset-0 bg-black/30 bg-opacity-0 transition-all"})]}),x.jsx("div",{className:"relative z-10 flex flex-col items-center justify-center h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-white text-center",children:x.jsxs(Ot.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"max-w-4xl",children:[x.jsx("h2",{className:"text-4xl md:text-6xl lg:text-7xl font-serif font-bold leading-tight mb-6",children:zc.title}),x.jsx("p",{className:"text-lg md:text-xl text-gray-200 mb-8 max-w-2xl mx-auto",children:zc.description}),x.jsx("a",{href:"https://yosoyluzaurora.info/vsl",target:"_blank",rel:"noopener noreferrer",children:x.jsx(on,{children:zc.button})})]})})]})}const tf=un.es.Pillars,z6=tf.pillarsList;function D6(){return x.jsx("section",{id:"conferencias",className:"py-20 bg-[#000000] overflow-hidden",children:x.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-2 lg:px-6",children:x.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 lg:gap-12 items-center",children:[x.jsxs(Ot.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"lg:col-span-6 space-y-8",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-4xl font-bold text-brand-gold mb-14 flex items-center gap-2",children:tf.subtitle}),x.jsx("div",{className:"space-y-2",children:z6.map((a,i)=>x.jsxs(Ot.div,{className:"flex items-center gap-2",children:[x.jsx("span",{className:"w-2 h-2 rounded-full bg-[#0F5F5F]"}),x.jsx(Ot.h3,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:i*.1},className:"text-3xl md:text-3xl lg:text-4xl font-serif font-bold text-brand-gold leading-tight hover:text-brand-gold/90 transition-colors cursor-default",children:a},i)]}))})]}),x.jsx("a",{href:"https://yosoyluzaurora.info/version-3",target:"_blank",rel:"noopener noreferrer",children:x.jsx(on,{className:"mt-4",children:tf.button})})]}),x.jsxs(Ot.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"lg:col-span-6 relative h-[500px] lg:h-[700px] rounded-2xl overflow-hidden shadow-2xl",children:[x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d4e75908ae97a3674.png",alt:"Luz Aurora Speaking",className:"w-full h-full object-cover transform hover:scale-105 transition-transform duration-700"}),x.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-black/20 to-transparent pointer-events-none"})]})]})})})}const j6=un.es.TestimonialQuote;function R6(){return x.jsxs("section",{className:"relative h-[95vh] w-full overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0 z-0 ",children:[x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878dad027618a2327db0.webp",alt:"Woman in nature",className:"w-full h-full object-cover md:scale-135 sm:scale-200 object-top"}),x.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-brand-dark/50 to-brand-dark/10"})]}),x.jsx("div",{className:"relative z-10 flex flex-col items-center justify-center h-full max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 text-white text-center",children:x.jsxs(Ot.blockquote,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8},className:"font-serif text-brand-gold [text-shadow:2px_2px_3px_#000000] text-3xl md:text-5xl font-medium leading-tight tracking-tighter",children:['"',j6.quote,'"']})})]})}const bo=un.es.AboutSection,O6=[{name:"Telcel",src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d2d0fea509772f344.svg",className:"h-6 md:h-9"},{name:"Caja de Previsión y Ahorros SNTSS",src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878dc6258598ded461db.png",className:"h-12 md:h-18"},{name:"Telmex",src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878dc62585ac1cd461da.svg",className:"h-7 md:h-10"},{name:"AMDA",src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d6544424616281aae.svg",className:"h-10 md:h-15"}];function N6(){const{openVideo:a}=_i(),[i,s]=k.useState(!0);return x.jsx("section",{id:"about",className:"py-16 px-4 md:px-32 bg-[#D2C897]",children:x.jsxs("div",{className:"max-w-8xl mx-auto px-4 sm:px-12",children:[x.jsx(Ot.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:x.jsx("h2",{className:"text-4xl md:text-5xl text-black leading-tight mb-2 md:mb-2 max-w-[700px] tracking-tighter",children:bo.title})}),x.jsxs("div",{className:"grid grid-cols-12 gap-0 items-start",children:[x.jsxs(Ot.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8},className:"col-span-12 md:col-span-8 rounded-4xl overflow-hidden shadow-2xl relative z-20 md:mb-0 mb-5",children:[x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d5b89c78eb4d7ddc5.jpg",alt:"Luz Aurora Portrait",className:"w-full h-[400px] scale-105 object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-brand-dark/70"}),x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d5b89c701ccd7ddc4.webp",alt:"Luz Aurora",className:"absolute inset-y-0 left-2 h-full w-auto object-contain z-30 scale-110"})]}),x.jsxs(Ot.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"col-span-12 md:col-span-4 md:pl-16 flex flex-col justify-start py-8 md:py-0 mb-5 md:mb-0",children:[x.jsx("p",{className:"text-md md:text-md leading-relaxed mb-4 font-medium",children:bo.description}),x.jsx("div",{className:"flex justify-center md:justify-start",children:x.jsx("a",{href:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bd5699b5ee8004e10a5da4.pdf",target:"_blank",rel:"noopener noreferrer",children:x.jsx(on,{children:bo.button})})})]}),x.jsxs(Ot.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"col-span-12 md:col-span-8 pt-10 md:pt-10 mb-5 md:mb-0",children:[x.jsx("p",{className:"text-lg text-black/60 mb-8 font-medium",children:bo.workedWith}),x.jsx("div",{className:"flex flex-wrap gap-12 items-center opacity-80 grayscale transition-all duration-500",children:O6.map(o=>x.jsx("img",{src:o.src,alt:o.name,className:`${o.className} object-contain`},o.name))})]}),x.jsxs(Ot.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8,delay:.3},onClick:()=>a("https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c30d115108036cfcd9d247.mp4"),className:"col-span-12 md:col-span-4 rounded-4xl overflow-hidden shadow-2xl relative z-10 cursor-pointer group/vid md:-mt-24 md:-ml-24",children:[x.jsx("video",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c30d115108036cfcd9d247.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,onCanPlay:()=>s(!1),onWaiting:()=>s(!0),onPlaying:()=>s(!1),className:"w-full h-[300px] scale-100 object-cover transition-transform duration-1000"}),x.jsx(Kl,{text:"Ver video",position:"top-right",isLoading:i})]})]})]})})}const ef=un.es.StatsSection,V6=ef.stats;function _6(){return x.jsx("section",{className:"py-24 bg-[#D2C897]",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-10 md:px-20",children:[x.jsxs("div",{className:"text-center mb-20 max-w-4xl mx-auto",children:[x.jsx(Ot.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"text-5xl md:text-7xl font-bold text-black leading-tight tracking-tighter mb-8",children:ef.title}),x.jsx(Ot.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"text-xl md:text-2xl leading-relaxed font-bold text-black/80",children:ef.description})]}),x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16 md:gap-x-32 md:gap-y-20 max-w-5xl mx-auto",children:V6.map((a,i)=>x.jsxs(Ot.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.3+i*.1},className:"flex flex-col items-start md:items-center text-left md:text-center",children:[x.jsx("h3",{className:"text-6xl md:text-8xl font-bold text-black tracking-tighter mb-4",children:a.value}),x.jsx("p",{className:"text-xl md:text-2xl font-bold leading-tight text-black/90 max-w-xs",children:a.label})]},i))})]})})}const Ti=un.es.VideoTestimonials,U6=[{name:"Liz",location:"Charlotte, Carolina del Norte, Estados Unidos",quote:"Ha sido increíble, liberador, mi corazón está lleno de gratitud y de amor.",video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c5af694a4efa34051224d1.mp4"},{name:"Claudia",location:"Chicago, Illinois, Estados Unidos",quote:"Este es el mejor retiro espiritual que he tomado en mi vida. Yo le llamaría volver al amor y conocer a Dios.",video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c5af694a4efa199f1224d0.mp4"},{name:"",location:"Atlanta, Georgia, Estados Unidos",quote:"Nos hemos unido más, ya es nuestra segunda experiencia. Luz es una persona muy profesional, siempre está pendiente de cada uno de nosotros.",video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c5af6981e6bcb06971c59f.mp4"},{name:"Edgar",location:"Charlotte, Carolina del Norte, Estados Unidos",quote:"Estoy muy agradecido con Luz, por todo el amor y paz que nos entregó. Te va a cambiar la vida completamente.",video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69c5af6952ad3b4d6ae0df6e.mp4"},{name:Ti.testimonials[5].name,location:Ti.testimonials[5].location,quote:Ti.testimonials[5].quote,video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bda107a10cc3c956c4d09d.mp4"},{name:Ti.testimonials[6].name,location:Ti.testimonials[6].location,quote:Ti.testimonials[6].quote,video:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bda107b54f0d6e2952db42.mp4"}];function B6({testimonial:a,index:i}){const{openVideo:s}=_i(),[o,c]=k.useState(!0);return x.jsx(Ot.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:i*.1},className:"flex flex-col h-full shrink-0 snap-start w-auto",children:x.jsxs("div",{className:"group flex flex-col h-full items-center text-center",children:[x.jsxs("div",{onClick:()=>s(a.video),className:"relative h-[clamp(400px,70vh,550px)] aspect-9/16 rounded-3xl overflow-hidden mb-8 shadow-2xl bg-black/20 group cursor-pointer isolate transform-[translateZ(0)]",style:{WebkitMaskImage:"-webkit-radial-gradient(white, black)"},children:[x.jsx("video",{src:a.video,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,onCanPlay:()=>c(!1),onWaiting:()=>c(!0),onPlaying:()=>c(!1),onMouseEnter:d=>d.currentTarget.play(),onMouseLeave:d=>d.currentTarget.pause(),className:"w-full h-full object-cover transition-transform duration-700 transform-[translateZ(0)] backface-hidden"}),x.jsx("div",{className:"absolute inset-0 transition-colors group-hover:bg-black/10"}),x.jsx(Kl,{text:"Ver testimonio",position:"bottom-right",isLoading:o})]}),x.jsxs("div",{className:"space-y-4 px-2 flex flex-col items-center",children:[x.jsxs("blockquote",{className:"text-black font-bold text-lg md:text-[1.1rem] leading-tight max-w-[280px]",children:['"',a.quote,'"']}),x.jsxs("div",{className:"flex flex-col items-center gap-1",children:[a.name&&x.jsx("p",{className:"text-black font-bold text-[1.1rem]",children:a.name}),x.jsx("p",{className:"text-black/60 text-sm font-medium max-w-[250px] leading-tight text-center",children:a.location})]})]})]})})}function L6(){const{openVideo:a}=_i(),i=k.useRef(null),s=o=>{if(i.current){const d=o==="left"?i.current.scrollLeft-400:i.current.scrollLeft+400;i.current.scrollTo({left:d,behavior:"smooth"})}};return x.jsx("section",{className:"py-24 bg-[#D2C897]",children:x.jsxs("div",{className:"max-w-8xl mx-auto px-6 md:px-12",children:[x.jsxs("div",{className:"flex justify-end mb-10 gap-3",children:[x.jsx(on,{variant:"outline",size:"icon",onClick:()=>s("left"),className:"h-12 w-12 rounded-full border-black/20 bg-transparent hover:bg-black/10 text-black shadow-sm",children:x.jsx(mx,{className:"h-6 w-6"})}),x.jsx(on,{variant:"outline",size:"icon",onClick:()=>s("right"),className:"h-12 w-12 rounded-full border-black/20 bg-transparent hover:bg-black/10 text-black shadow-sm",children:x.jsx(yx,{className:"h-6 w-6"})})]}),x.jsx("div",{ref:i,className:"flex gap-8 overflow-x-auto pb-8 snap-x snap-mandatory hide-scrollbar group/scroll items-start",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:U6.map((o,c)=>x.jsx(B6,{testimonial:o,index:c},c))})]})})}const an=un.es.UpcomingEvents;function H6(){const{openVideo:a}=_i(),[i,s]=k.useState(!0);return x.jsx("section",{id:"events",className:"py-14 bg-brand-dark text-white",children:x.jsxs("div",{className:"max-w-8xl mx-auto px-4 md:px-12",children:[x.jsxs("div",{className:"text-center mb-10",children:[x.jsx(Ot.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"text-3xl md:text-5xl font-bold tracking-tighter mb-3",children:an.headerTitle}),x.jsx(Ot.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"text-md md:text-lg text-white/80 max-w-2xl mx-auto leading-relaxed",children:an.headerDescription})]}),x.jsxs("div",{className:"max-w-7xl mx-auto",children:[x.jsx(Ot.h3,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"text-2xl font-bold mb-2 tracking-tight",children:an.sectionTitle}),x.jsxs(Ot.div,{initial:{opacity:0,scale:.98},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8},onClick:()=>a("https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bdb71bb5ee801095161161.mp4"),className:"relative rounded-4xl overflow-hidden shadow-2xl group/card cursor-pointer",children:[x.jsxs("div",{className:"absolute inset-0 z-0",children:[x.jsx("video",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69bdb71bb5ee801095161161.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,onCanPlay:()=>s(!1),onWaiting:()=>s(!0),onPlaying:()=>s(!1),className:"w-full h-full object-cover transform scale-125 transition-transform duration-1000"}),x.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-black/80 via-black/30 to-black/10 transition-colors "}),x.jsx(Kl,{text:"Ver video",position:"top-right",isLoading:i})]}),x.jsx("div",{className:"relative z-10 p-4 md:p-5 lg:p-7 min-h-[500px] flex flex-col justify-end",children:x.jsxs("div",{className:"max-w-4xl",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[x.jsxs("span",{className:"relative flex h-3 w-3",children:[x.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-brand-accent opacity-75"}),x.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-brand-dark"})]}),x.jsx("span",{className:"text-xs md:text-sm font-bold tracking-widest",children:an.inPerson})]}),x.jsx("h4",{className:"text-brand-gold [text-shadow:3px_3px_4px_#000000] text-xl md:text-3xl font-bold leading-tight mb-2 tracking-tight max-w-2xl",children:an.eventTitle}),x.jsx("p",{className:"text-md md:text-xl text-white/90 mb-8 max-w-xl",children:an.eventDescription}),x.jsxs("div",{className:"flex flex-col-reverse md:flex-row items-start md:items-center gap-8 md:gap-16",children:[x.jsx(on,{asChild:!0,variant:"gold",onClick:o=>o.stopPropagation(),children:x.jsx("a",{href:"https://wa.me/529843153030?text=Estoy+interesado+en+el+pr%C3%B3ximo+retiro%21",target:"_blank",rel:"noopener noreferrer",children:an.eventButton})}),x.jsx("div",{className:"grid grid-cols-[max-content_1fr] gap-x-8 md:gap-x-12 gap-y-4 md:gap-y-6",children:an.datesList.map((o,c)=>x.jsxs("div",{className:"contents",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] md:text-sm text-white/60 mb-1 tracking-wide uppercase",children:an.labelDates}),x.jsx("p",{className:"text-sm md:text-xl font-bold tracking-tight",children:o.date})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] md:text-sm text-white/60 mb-1 tracking-wide uppercase",children:an.labelLocation}),x.jsx("p",{className:"text-sm md:text-xl font-bold tracking-tight",children:o.location})]})]},c))})]})]})})]})]})]})})}const k6=({size:a=24,...i})=>x.jsx("svg",{viewBox:"0 0 24 24",width:a,height:a,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:x.jsx("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})}),q6=({size:a=24,...i})=>x.jsx("svg",{viewBox:"0 0 24 24",width:a,height:a,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:x.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.469h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.469h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),Y6=({size:a=24,...i})=>x.jsx("svg",{viewBox:"0 0 24 24",width:a,height:a,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:x.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),G6=({size:a=24,...i})=>x.jsx("svg",{viewBox:"0 0 24 24",width:a,height:a,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:x.jsx("path",{d:"M22.608 7.202a5.825 5.825 0 0 1-1.211-.124 5.744 5.744 0 0 1-3.124-2.003 5.745 5.745 0 0 1-1.247-3.068H13.01v14.61a3.005 3.005 0 1 1-3.005-3.005 2.91 2.91 0 0 1 .812.111V9.58a5.992 5.992 0 0 0-5.817 6.046 5.825 5.825 0 0 0 11.65 0V6.697a8.497 8.497 0 0 0 5.958 2.304v-1.8z"})}),xo=un.es.Footer;function X6(){return x.jsxs("footer",{className:"relative bg-brand-dark text-white h-[95vh] flex flex-col",children:[x.jsxs("div",{className:"relative flex-1 w-full overflow-hidden flex items-center justify-center",children:[x.jsxs("div",{className:"absolute inset-0 z-0",children:[x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d87f2fb24a2b53eac.webp",alt:"Group Celebration",className:"scale-x-[-1] w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-brand-dark/20"}),x.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-brand-dark via-transparent to-transparent"})]}),x.jsx("div",{className:"relative z-10 w-full max-w-7xl mx-auto px-4 text-center",children:x.jsx(Ot.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:1},children:x.jsx("h2",{className:"text-brand-gold [text-shadow:3px_3px_4px_#000000] text-3xl md:text-7xl font-bold leading-tight tracking-tighter",children:xo.ctaTitle})})})]}),x.jsx("div",{className:"bg-brand-dark pb-12 pt-6 shrink-0",children:x.jsx("div",{className:"max-w-8xl mx-auto px-4 md:px-12",children:x.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-8",children:[x.jsx("div",{className:"flex-1 flex justify-start",children:x.jsx("img",{src:"https://assets.cdn.filesafe.space/S06gmysmOdvS46ImsYUl/media/69b8878d87f2fb55cdb53ead.png",alt:"Luz Aurora",className:"h-16 w-auto filter-brand-gold"})}),x.jsx("div",{className:"flex-1 flex justify-center text-sm md:text-md font-medium text-white/90",children:x.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-2",children:[x.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:xo.privacyPolicy}),x.jsx("span",{children:"|"}),x.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:xo.termsService}),x.jsx("span",{children:"|"}),x.jsx("span",{children:xo.copyright})]})}),x.jsxs("div",{className:"flex-1 flex justify-end gap-6",children:[x.jsx("a",{href:"https://www.instagram.com/yosoyluzaurora/",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:opacity-70 hover:scale-110 transition-all",children:x.jsx(k6,{size:28})}),x.jsx("a",{href:"https://www.facebook.com/luzauroracoach/?locale=es_LA",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:opacity-70 hover:scale-110 transition-all",children:x.jsx(q6,{size:28})}),x.jsx("a",{href:"https://www.youtube.com/channel/UCmTzFmZrg94Dn21s78mn7gQ",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:opacity-70 hover:scale-110 transition-all",children:x.jsx(Y6,{size:28})}),x.jsx("a",{href:"https://www.tiktok.com/@yosoyluzaurora",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:opacity-70 hover:scale-110 transition-all",children:x.jsx(G6,{size:28})})]})]})})})]})}function Q6(){return x.jsx(A6,{children:x.jsxs("div",{className:"min-h-screen bg-white font-sans text-gray-900",children:[x.jsx(S6,{}),x.jsxs("main",{children:[x.jsx(M6,{}),x.jsx(C6,{}),x.jsx(D6,{}),x.jsx(R6,{}),x.jsx(N6,{}),x.jsx(_6,{}),x.jsx(L6,{}),x.jsx(H6,{})]}),x.jsx(X6,{})]})})}ox.createRoot(document.getElementById("root")).render(x.jsx(k.StrictMode,{children:x.jsx(Q6,{})}));