(function(){"use strict";function fv(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var rr={exports:{}},at={};var Ic;function dv(){if(Ic)return at;Ic=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=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"),w=Symbol.iterator;function z(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,N={};function L(T,U,G){this.props=T,this.context=U,this.refs=N,this.updater=G||B}L.prototype.isReactComponent={},L.prototype.setState=function(T,U){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,U,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function k(){}k.prototype=L.prototype;function j(T,U,G){this.props=T,this.context=U,this.refs=N,this.updater=G||B}var J=j.prototype=new k;J.constructor=j,Y(J,L.prototype),J.isPureReactComponent=!0;var P=Array.isArray;function nt(){}var $={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function it(T,U,G){var K=G.ref;return{$$typeof:i,type:T,key:U,ref:K!==void 0?K:null,props:G}}function Mt(T,U){return it(T.type,U,T.props)}function Bt(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function Yt(T){var U={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(G){return U[G]})}var Ge=/\/+/g;function ze(T,U){return typeof T=="object"&&T!==null&&T.key!=null?Yt(""+T.key):U.toString(36)}function re(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(nt,nt):(T.status="pending",T.then(function(U){T.status==="pending"&&(T.status="fulfilled",T.value=U)},function(U){T.status==="pending"&&(T.status="rejected",T.reason=U)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function O(T,U,G,K,lt){var ot=typeof T;(ot==="undefined"||ot==="boolean")&&(T=null);var bt=!1;if(T===null)bt=!0;else switch(ot){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(T.$$typeof){case i:case l:bt=!0;break;case v:return bt=T._init,O(bt(T._payload),U,G,K,lt)}}if(bt)return lt=lt(T),bt=K===""?"."+ze(T,0):K,P(lt)?(G="",bt!=null&&(G=bt.replace(Ge,"$&/")+"/"),O(lt,U,G,"",function(Oi){return Oi})):lt!=null&&(Bt(lt)&&(lt=Mt(lt,G+(lt.key==null||T&&T.key===lt.key?"":(""+lt.key).replace(Ge,"$&/")+"/")+bt)),U.push(lt)),1;bt=0;var le=K===""?".":K+":";if(P(T))for(var Nt=0;Nt>>1,pt=O[ft];if(0>>1;ftc(G,F))Kc(lt,G)?(O[ft]=lt,O[K]=F,ft=K):(O[ft]=G,O[U]=F,ft=U);else if(Kc(lt,F))O[ft]=lt,O[K]=F,ft=K;else break t}}return H}function c(O,H){var F=O.sortIndex-H.sortIndex;return F!==0?F:O.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();i.unstable_now=function(){return d.now()-g}}var y=[],p=[],v=1,b=null,w=3,z=!1,B=!1,Y=!1,N=!1,L=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function J(O){for(var H=r(p);H!==null;){if(H.callback===null)o(p);else if(H.startTime<=O)o(p),H.sortIndex=H.expirationTime,l(y,H);else break;H=r(p)}}function P(O){if(Y=!1,J(O),!B)if(r(y)!==null)B=!0,nt||(nt=!0,Yt());else{var H=r(p);H!==null&&re(P,H.startTime-O)}}var nt=!1,$=-1,Z=5,it=-1;function Mt(){return N?!0:!(i.unstable_now()-itO&&Mt());){var ft=b.callback;if(typeof ft=="function"){b.callback=null,w=b.priorityLevel;var pt=ft(b.expirationTime<=O);if(O=i.unstable_now(),typeof pt=="function"){b.callback=pt,J(O),H=!0;break e}b===r(y)&&o(y),J(O)}else o(y);b=r(y)}if(b!==null)H=!0;else{var T=r(p);T!==null&&re(P,T.startTime-O),H=!1}}break t}finally{b=null,w=F,z=!1}H=void 0}}finally{H?Yt():nt=!1}}}var Yt;if(typeof j=="function")Yt=function(){j(Bt)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,ze=Ge.port2;Ge.port1.onmessage=Bt,Yt=function(){ze.postMessage(null)}}else Yt=function(){L(Bt,0)};function re(O,H){$=L(function(){O(i.unstable_now())},H)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125ft?(O.sortIndex=F,l(p,O),r(y)===null&&O===r(p)&&(Y?(k($),$=-1):Y=!0,re(P,F-ft))):(O.sortIndex=pt,l(y,O),B||z||(B=!0,nt||(nt=!0,Yt()))),O},i.unstable_shouldYield=Mt,i.unstable_wrapCallback=function(O){var H=w;return function(){var F=w;w=H;try{return O.apply(this,arguments)}finally{w=F}}}})(fr)),fr}var nf;function pv(){return nf||(nf=1,cr.exports=mv()),cr.exports}var dr={exports:{}},ee={};var af;function gv(){if(af)return ee;af=1;var i=or();function l(y){var p="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),dr.exports=gv(),dr.exports}var sf;function vv(){if(sf)return hi;sf=1;var i=pv(),l=or(),r=yv();function o(t){var e="https://react.dev/errors/"+t;if(1pt||(t.current=ft[pt],ft[pt]=null,pt--)}function G(t,e){pt++,ft[pt]=t.current,t.current=e}var K=T(null),lt=T(null),ot=T(null),bt=T(null);function le(t,e){switch(G(ot,e),G(lt,t),G(K,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Uy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Uy(e),t=By(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(K),G(K,t)}function Nt(){U(K),U(lt),U(ot)}function Oi(t){t.memoizedState!==null&&G(bt,t);var e=K.current,n=By(e,t.type);e!==n&&(G(lt,t),G(K,n))}function kl(t){lt.current===t&&(U(K),U(lt)),bt.current===t&&(U(bt),xl._currentValue=F)}var Bo,cm;function ea(t){if(Bo===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bo=e&&e[1]||"",cm=-1)":-1s||x[a]!==M[s]){var R=` `+x[a].replace(" at new "," at ");return t.displayName&&R.includes("")&&(R=R.replace("",t.displayName)),R}while(1<=a&&0<=s);break}}}finally{No=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ea(n):""}function gw(t,e){switch(t.tag){case 26:case 27:case 5:return ea(t.type);case 16:return ea("Lazy");case 13:return t.child!==e&&e!==null?ea("Suspense Fallback"):ea("Suspense");case 19:return ea("SuspenseList");case 0:case 15:return jo(t.type,!1);case 11:return jo(t.type.render,!1);case 1:return jo(t.type,!0);case 31:return ea("Activity");default:return""}}function fm(t){try{var e="",n=null;do e+=gw(t,n),n=t,t=t.return;while(t);return e}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Lo=Object.prototype.hasOwnProperty,Ho=i.unstable_scheduleCallback,Yo=i.unstable_cancelCallback,yw=i.unstable_shouldYield,vw=i.unstable_requestPaint,pe=i.unstable_now,bw=i.unstable_getCurrentPriorityLevel,dm=i.unstable_ImmediatePriority,hm=i.unstable_UserBlockingPriority,Xl=i.unstable_NormalPriority,xw=i.unstable_LowPriority,mm=i.unstable_IdlePriority,ww=i.log,Sw=i.unstable_setDisableYieldValue,Vi=null,ge=null;function En(t){if(typeof ww=="function"&&Sw(t),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(Vi,t)}catch{}}var ye=Math.clz32?Math.clz32:Ew,Tw=Math.log,Aw=Math.LN2;function Ew(t){return t>>>=0,t===0?32:31-(Tw(t)/Aw|0)|0}var Ql=256,Zl=262144,Kl=4194304;function na(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 Jl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var m=a&134217727;return m!==0?(a=m&~u,a!==0?s=na(a):(f&=m,f!==0?s=na(f):n||(n=m&~t,n!==0&&(s=na(n))))):(m=a&~u,m!==0?s=na(m):f!==0?s=na(f):n||(n=a&~t,n!==0&&(s=na(n)))),s===0?0:e!==0&&e!==s&&(e&u)===0&&(u=s&-s,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:s}function _i(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Mw(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 pm(){var t=Kl;return Kl<<=1,(Kl&62914560)===0&&(Kl=4194304),t}function qo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ui(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dw(t,e,n,a,s,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var m=t.entanglements,x=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var _w=/[\n"\\]/g;function Oe(t){return t.replace(_w,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ko(t,e,n,a,s,u,f,m){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Re(e)):t.value!==""+Re(e)&&(t.value=""+Re(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Jo(t,f,Re(e)):n!=null?Jo(t,f,Re(n)):a!=null&&t.removeAttribute("value"),s==null&&u!=null&&(t.defaultChecked=!!u),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+Re(m):t.removeAttribute("name")}function Cm(t,e,n,a,s,u,f,m){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)){Zo(t);return}n=n!=null?""+Re(n):"",e=e!=null?""+Re(e):n,m||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=m?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Zo(t)}function Jo(t,e,n){e==="number"&&Pl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ua(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=!1;if(an)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Io=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Io=!1}var Dn=null,tu=null,Il=null;function Bm(){if(Il)return Il;var t,e=tu,n=e.length,a,s="value"in Dn?Dn.value:Dn.textContent,u=s.length;for(t=0;t=qi),qm=" ",Gm=!1;function km(t,e){switch(t){case"keyup":return rS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function uS(t,e){switch(t){case"compositionend":return Xm(e);case"keypress":return e.which!==32?null:(Gm=!0,qm);case"textInput":return t=e.data,t===qm&&Gm?null:t;default:return null}}function cS(t,e){if(La)return t==="compositionend"||!lu&&km(t,e)?(t=Bm(),Il=tu=Dn=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=$m(n)}}function tp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?tp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ep(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Pl(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=Pl(t.document)}return e}function ou(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 vS=an&&"documentMode"in document&&11>=document.documentMode,Ha=null,uu=null,Qi=null,cu=!1;function np(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cu||Ha==null||Ha!==Pl(a)||(a=Ha,"selectionStart"in a&&ou(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qi&&Xi(Qi,a)||(Qi=a,a=Zs(uu,"onSelect"),0>=f,s-=f,Fe=1<<32-ye(e)+s|n<rt?(ht=W,W=null):ht=W.sibling;var yt=D(A,W,E[rt],V);if(yt===null){W===null&&(W=ht);break}t&&W&&yt.alternate===null&&e(A,W),S=u(yt,S,rt),gt===null?I=yt:gt.sibling=yt,gt=yt,W=ht}if(rt===E.length)return n(A,W),mt&&sn(A,rt),I;if(W===null){for(;rtrt?(ht=W,W=null):ht=W.sibling;var Fn=D(A,W,yt.value,V);if(Fn===null){W===null&&(W=ht);break}t&&W&&Fn.alternate===null&&e(A,W),S=u(Fn,S,rt),gt===null?I=Fn:gt.sibling=Fn,gt=Fn,W=ht}if(yt.done)return n(A,W),mt&&sn(A,rt),I;if(W===null){for(;!yt.done;rt++,yt=E.next())yt=_(A,yt.value,V),yt!==null&&(S=u(yt,S,rt),gt===null?I=yt:gt.sibling=yt,gt=yt);return mt&&sn(A,rt),I}for(W=a(W);!yt.done;rt++,yt=E.next())yt=C(W,A,rt,yt.value,V),yt!==null&&(t&&yt.alternate!==null&&W.delete(yt.key===null?rt:yt.key),S=u(yt,S,rt),gt===null?I=yt:gt.sibling=yt,gt=yt);return t&&W.forEach(function(LT){return e(A,LT)}),mt&&sn(A,rt),I}function At(A,S,E,V){if(typeof E=="object"&&E!==null&&E.type===Y&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case z:t:{for(var I=E.key;S!==null;){if(S.key===I){if(I=E.type,I===Y){if(S.tag===7){n(A,S.sibling),V=s(S,E.props.children),V.return=A,A=V;break t}}else if(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Z&&ha(I)===S.type){n(A,S.sibling),V=s(S,E.props),Pi(V,E),V.return=A,A=V;break t}n(A,S);break}else e(A,S);S=S.sibling}E.type===Y?(V=oa(E.props.children,A.mode,V,E.key),V.return=A,A=V):(V=us(E.type,E.key,E.props,null,A.mode,V),Pi(V,E),V.return=A,A=V)}return f(A);case B:t:{for(I=E.key;S!==null;){if(S.key===I)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){n(A,S.sibling),V=s(S,E.children||[]),V.return=A,A=V;break t}else{n(A,S);break}else e(A,S);S=S.sibling}V=yu(E,A.mode,V),V.return=A,A=V}return f(A);case Z:return E=ha(E),At(A,S,E,V)}if(re(E))return X(A,S,E,V);if(Yt(E)){if(I=Yt(E),typeof I!="function")throw Error(o(150));return E=I.call(E),et(A,S,E,V)}if(typeof E.then=="function")return At(A,S,gs(E),V);if(E.$$typeof===j)return At(A,S,ds(A,E),V);ys(A,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(n(A,S.sibling),V=s(S,E),V.return=A,A=V):(n(A,S),V=gu(E,A.mode,V),V.return=A,A=V),f(A)):n(A,S)}return function(A,S,E,V){try{Wi=0;var I=At(A,S,E,V);return Wa=null,I}catch(W){if(W===Fa||W===ms)throw W;var gt=be(29,W,null,A.mode);return gt.lanes=V,gt.return=A,gt}}}var pa=Ep(!0),Mp=Ep(!1),Vn=!1;function zu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ru(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 _n(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Un(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(vt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=os(t),up(t,null,n),e}return rs(t,a,e,n),os(t)}function $i(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,ym(t,n)}}function Ou(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?s=u=e:u=u.next=e}else s=u=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Vu=!1;function Ii(){if(Vu){var t=Ja;if(t!==null)throw t}}function tl(t,e,n,a){Vu=!1;var s=t.updateQueue;Vn=!1;var u=s.firstBaseUpdate,f=s.lastBaseUpdate,m=s.shared.pending;if(m!==null){s.shared.pending=null;var x=m,M=x.next;x.next=null,f===null?u=M:f.next=M,f=x;var R=t.alternate;R!==null&&(R=R.updateQueue,m=R.lastBaseUpdate,m!==f&&(m===null?R.firstBaseUpdate=M:m.next=M,R.lastBaseUpdate=x))}if(u!==null){var _=s.baseState;f=0,R=M=x=null,m=u;do{var D=m.lane&-536870913,C=D!==m.lane;if(C?(dt&D)===D:(a&D)===D){D!==0&&D===Ka&&(Vu=!0),R!==null&&(R=R.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var X=t,et=m;D=e;var At=n;switch(et.tag){case 1:if(X=et.payload,typeof X=="function"){_=X.call(At,_,D);break t}_=X;break t;case 3:X.flags=X.flags&-65537|128;case 0:if(X=et.payload,D=typeof X=="function"?X.call(At,_,D):X,D==null)break t;_=b({},_,D);break t;case 2:Vn=!0}}D=m.callback,D!==null&&(t.flags|=64,C&&(t.flags|=8192),C=s.callbacks,C===null?s.callbacks=[D]:C.push(D))}else C={lane:D,tag:m.tag,payload:m.payload,callback:m.callback,next:null},R===null?(M=R=C,x=_):R=R.next=C,f|=D;if(m=m.next,m===null){if(m=s.shared.pending,m===null)break;C=m,m=C.next,C.next=null,s.lastBaseUpdate=C,s.shared.pending=null}}while(!0);R===null&&(x=_),s.baseState=x,s.firstBaseUpdate=M,s.lastBaseUpdate=R,u===null&&(s.shared.lanes=0),Hn|=f,t.lanes=f,t.memoizedState=_}}function Dp(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Cp(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;tu?u:8;var f=O.T,m={};O.T=m,Pu(t,!1,e,n);try{var x=s(),M=O.S;if(M!==null&&M(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var R=DS(x,a);al(t,e,R,Ae(t))}else al(t,e,a,Ae(t))}catch(_){al(t,e,{then:function(){},status:"rejected",reason:_},Ae())}finally{H.p=u,f!==null&&m.types!==null&&(f.types=m.types),O.T=f}}function _S(){}function Fu(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=sg(t).queue;lg(t,s,e,F,n===null?_S:function(){return rg(t),n(a)})}function sg(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:cn,lastRenderedState:F},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function rg(t){var e=sg(t);e.next===null&&(e=t.alternate.memoizedState),al(t,e.next.queue,{},Ae())}function Wu(){return $t(xl)}function og(){return Lt().memoizedState}function ug(){return Lt().memoizedState}function US(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ae();t=_n(n);var a=Un(e,t,n);a!==null&&(me(a,e,n),$i(a,e,n)),e={cache:Eu()},t.payload=e;return}e=e.return}}function BS(t,e,n){var a=Ae();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(t)?fg(e,n):(n=mu(t,e,n,a),n!==null&&(me(n,t,a),dg(n,e,a)))}function cg(t,e,n){var a=Ae();al(t,e,n,a)}function al(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ds(t))fg(e,s);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,m=u(f,n);if(s.hasEagerState=!0,s.eagerState=m,ve(m,f))return rs(t,e,s,0),Et===null&&ss(),!1}catch{}if(n=mu(t,e,s,a),n!==null)return me(n,t,a),dg(n,e,a),!0}return!1}function Pu(t,e,n,a){if(a={lane:2,revertLane:zc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ds(t)){if(e)throw Error(o(479))}else e=mu(t,n,a,2),e!==null&&me(e,t,2)}function Ds(t){var e=t.alternate;return t===st||e!==null&&e===st}function fg(t,e){$a=xs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function dg(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,ym(t,n)}}var il={readContext:$t,use:Ts,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};il.useEffectEvent=_t;var hg={readContext:$t,use:Ts,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Wp,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Es(4194308,4,tg.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Es(4194308,4,t,e)},useInsertionEffect:function(t,e){Es(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var a=t();if(ga){En(!0);try{t()}finally{En(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=se();if(n!==void 0){var s=n(e);if(ga){En(!0);try{n(e)}finally{En(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=BS.bind(null,st,t),[a.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=Xu(t);var e=t.queue,n=cg.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ku,useDeferredValue:function(t,e){var n=se();return Ju(n,t,e)},useTransition:function(){var t=Xu(!1);return t=lg.bind(null,st,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=st,s=se();if(mt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Et===null)throw Error(o(349));(dt&127)!==0||Up(a,e,n)}s.memoizedState=n;var u={value:n,getSnapshot:e};return s.queue=u,Wp(Np.bind(null,a,u,t),[t]),a.flags|=2048,ti(9,{destroy:void 0},Bp.bind(null,a,u,n,e),null),n},useId:function(){var t=se(),e=Et.identifierPrefix;if(mt){var n=We,a=Fe;n=(a&~(1<<32-ye(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ws++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}u[Wt]=e,u[oe]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(te(u,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&dn(e)}}return zt(e),fc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&dn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ot.current,Qa(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=Pt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vy(t.nodeValue,n)),t||Rn(e,!0)}else t=Ks(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Qa(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else ua(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(o(558))}return zt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Qa(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Wt]=e}else ua(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),s=!1}else s=wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Vs(e,e.updateQueue),zt(e),null);case 4:return Nt(),t===null&&_c(e.stateNode.containerInfo),zt(e),null;case 10:return on(e.type),zt(e),null;case 19:if(U(jt),a=e.memoizedState,a===null)return zt(e),null;if(s=(e.flags&128)!==0,u=a.rendering,u===null)if(s)sl(a,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=bs(t),u!==null){for(e.flags|=128,sl(a,!1),t=u.updateQueue,e.updateQueue=t,Vs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)cp(n,t),n=n.sibling;return G(jt,jt.current&1|2),mt&&sn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&pe()>js&&(e.flags|=128,s=!0,sl(a,!1),e.lanes=4194304)}else{if(!s)if(t=bs(u),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Vs(e,t),sl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!mt)return zt(e),null}else 2*pe()-a.renderingStartTime>js&&n!==536870912&&(e.flags|=128,s=!0,sl(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=pe(),t.sibling=null,n=jt.current,G(jt,s?n&1|2:n&1),mt&&sn(e,a.treeForkCount),t):(zt(e),null);case 22:case 23:return we(e),Uu(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&Vs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&U(da),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),on(qt),zt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function YS(t,e){switch(bu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return on(qt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return kl(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(o(340));ua()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ua()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(jt),null;case 4:return Nt(),null;case 10:return on(e.type),null;case 22:case 23:return we(e),Uu(),t!==null&&U(da),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return on(qt),null;case 25:return null;default:return null}}function jg(t,e){switch(bu(e),e.tag){case 3:on(qt),Nt();break;case 26:case 27:case 5:kl(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:U(jt);break;case 10:on(e.type);break;case 22:case 23:we(e),Uu(),t!==null&&U(da);break;case 24:on(qt)}}function rl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var u=n.create,f=n.inst;a=u(),f.destroy=a}n=n.next}while(n!==s)}}catch(m){wt(e,e.return,m)}}function jn(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&t)===t){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,s=e;var x=n,M=m;try{M()}catch(R){wt(s,x,R)}}}a=a.next}while(a!==u)}}catch(R){wt(e,e.return,R)}}function Lg(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Cp(e,n)}catch(a){wt(t,t.return,a)}}}function Hg(t,e,n){n.props=ya(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){wt(t,e,a)}}function ol(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){wt(t,e,s)}}function Pe(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){wt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){wt(t,e,s)}else n.current=null}function Yg(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){wt(t,t.return,s)}}function dc(t,e,n){try{var a=t.stateNode;oT(a,t.type,n,e),a[oe]=e}catch(s){wt(t,t.return,s)}}function qg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Xn(t.type)||t.tag===4}function hc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||qg(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&&Xn(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 mc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=nn));else if(a!==4&&(a===27&&Xn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(mc(t,e,n),t=t.sibling;t!==null;)mc(t,e,n),t=t.sibling}function _s(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Xn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(_s(t,e,n),t=t.sibling;t!==null;)_s(t,e,n),t=t.sibling}function Gg(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,a,n),e[Wt]=t,e[oe]=n}catch(u){wt(t,t.return,u)}}var hn=!1,Xt=!1,pc=!1,kg=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function qS(t,e){if(t=t.containerInfo,Nc=tr,t=ep(t),ou(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,m=-1,x=-1,M=0,R=0,_=t,D=null;e:for(;;){for(var C;_!==n||s!==0&&_.nodeType!==3||(m=f+s),_!==u||a!==0&&_.nodeType!==3||(x=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(C=_.firstChild)!==null;)D=_,_=C;for(;;){if(_===t)break e;if(D===n&&++M===s&&(m=f),D===u&&++R===a&&(x=f),(C=_.nextSibling)!==null)break;_=D,D=_.parentNode}_=C}n=m===-1||x===-1?null:{start:m,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(jc={focusedElem:t,selectionRange:n},tr=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,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"))),te(u,a,n),u[Wt]=t,Kt(u),a=u;break t;case"link":var f=Fy("link","href",s).get(a+(n.href||""));if(f){for(var m=0;mAt&&(f=At,At=et,et=f);var A=Im(m,et),S=Im(m,At);if(A&&S&&(C.rangeCount!==1||C.anchorNode!==A.node||C.anchorOffset!==A.offset||C.focusNode!==S.node||C.focusOffset!==S.offset)){var E=_.createRange();E.setStart(A.node,A.offset),C.removeAllRanges(),et>At?(C.addRange(E),C.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),C.addRange(E))}}}}for(_=[],C=m;C=C.parentNode;)C.nodeType===1&&_.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<_.length;m++){var V=_[m];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}tr=!!Nc,jc=Nc=null}finally{vt=s,H.p=a,O.T=n}}t.current=e,Zt=2}}function gy(){if(Zt===2){Zt=0;var t=qn,e=li,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=H.p;H.p=2;var s=vt;vt|=4;try{Xg(t,e.alternate,e)}finally{vt=s,H.p=a,O.T=n}}Zt=3}}function yy(){if(Zt===4||Zt===3){Zt=0,vw();var t=qn,e=li,n=vn,a=ay;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,li=qn=null,vy(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Yn=null),ko(n),e=e.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(Vi,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=O.T,s=H.p,H.p=2,O.T=null;try{for(var u=t.onRecoverableError,f=0;fn?32:n,O.T=null,n=Sc,Sc=null;var u=qn,f=vn;if(Zt=0,li=qn=null,vn=0,(vt&6)!==0)throw Error(o(331));var m=vt;if(vt|=4,ty(u.current),Pg(u,u.current,f,n),vt=m,ml(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(Vi,u)}catch{}return!0}finally{H.p=s,O.T=a,vy(t,e)}}function xy(t,e,n){e=_e(n,e),e=ec(t.stateNode,e,2),t=Un(t,e,2),t!==null&&(Ui(t,2),$e(t))}function wt(t,e,n){if(t.tag===3)xy(t,t,n);else for(;e!==null;){if(e.tag===3){xy(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Yn===null||!Yn.has(a))){t=_e(n,t),n=wg(2),a=Un(e,n,2),a!==null&&(Sg(n,a,e,t),Ui(a,2),$e(a));break}}e=e.return}}function Mc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new XS;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(vc=!0,s.add(n),t=FS.bind(null,t,e,n),e.then(t,t))}function FS(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Et===t&&(dt&n)===n&&(Ut===4||Ut===3&&(dt&62914560)===dt&&300>pe()-Ns?(vt&2)===0&&si(t,0):bc|=n,ii===dt&&(ii=0)),$e(t)}function wy(t,e){e===0&&(e=pm()),t=ra(t,e),t!==null&&(Ui(t,e),$e(t))}function WS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),wy(t,n)}function PS(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),wy(t,n)}function $S(t,e){return Ho(t,e)}var ks=null,oi=null,Dc=!1,Xs=!1,Cc=!1,kn=0;function $e(t){t!==oi&&t.next===null&&(oi===null?ks=oi=t:oi=oi.next=t),Xs=!0,Dc||(Dc=!0,tT())}function ml(t,e){if(!Cc&&Xs){Cc=!0;do for(var n=!1,a=ks;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var u=0;else{var f=a.suspendedLanes,m=a.pingedLanes;u=(1<<31-ye(42|t)+1)-1,u&=s&~(f&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Ey(a,u))}else u=dt,u=Jl(a,a===Et?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||_i(a,u)||(n=!0,Ey(a,u));a=a.next}while(n);Cc=!1}}function IS(){Sy()}function Sy(){Xs=Dc=!1;var t=0;kn!==0&&cT()&&(t=kn);for(var e=pe(),n=null,a=ks;a!==null;){var s=a.next,u=Ty(a,e);u===0?(a.next=null,n===null?ks=s:n.next=s,s===null&&(oi=n)):(n=a,(t!==0||(u&3)!==0)&&(Xs=!0)),a=s}Zt!==0&&Zt!==5||ml(t),kn!==0&&(kn=0)}function Ty(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,u=t.pendingLanes&-62914561;0m)break;var R=x.transferSize,_=x.initiatorType;R&&_y(_)&&(x=x.responseEnd,f+=R*(x"u"?null:document;function Qy(t,e,n){var a=ui;if(a&&typeof e=="string"&&e){var s=Oe(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Xy.has(s)||(Xy.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),te(e,"link",t),Kt(e),a.head.appendChild(e)))}}function bT(t){bn.D(t),Qy("dns-prefetch",t,null)}function xT(t,e){bn.C(t,e),Qy("preconnect",t,e)}function wT(t,e,n){bn.L(t,e,n);var a=ui;if(a&&t&&e){var s='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Oe(n.imageSizes)+'"]')):s+='[href="'+Oe(t)+'"]';var u=s;switch(e){case"style":u=ci(t);break;case"script":u=fi(t)}He.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),He.set(u,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(vl(u))||e==="script"&&a.querySelector(bl(u))||(e=a.createElement("link"),te(e,"link",t),Kt(e),a.head.appendChild(e)))}}function ST(t,e){bn.m(t,e);var n=ui;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',u=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=fi(t)}if(!He.has(u)&&(t=b({rel:"modulepreload",href:t},e),He.set(u,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bl(u)))return}a=n.createElement("link"),te(a,"link",t),Kt(a),n.head.appendChild(a)}}}function TT(t,e,n){bn.S(t,e,n);var a=ui;if(a&&t){var s=Va(a).hoistableStyles,u=ci(t);e=e||"default";var f=s.get(u);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(vl(u)))m.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=He.get(u))&&Xc(t,n);var x=f=a.createElement("link");Kt(x),te(x,"link",t),x._p=new Promise(function(M,R){x.onload=M,x.onerror=R}),x.addEventListener("load",function(){m.loading|=1}),x.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Fs(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:m},s.set(u,f)}}}function AT(t,e){bn.X(t,e);var n=ui;if(n&&t){var a=Va(n).hoistableScripts,s=fi(t),u=a.get(s);u||(u=n.querySelector(bl(s)),u||(t=b({src:t,async:!0},e),(e=He.get(s))&&Qc(t,e),u=n.createElement("script"),Kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function ET(t,e){bn.M(t,e);var n=ui;if(n&&t){var a=Va(n).hoistableScripts,s=fi(t),u=a.get(s);u||(u=n.querySelector(bl(s)),u||(t=b({src:t,async:!0,type:"module"},e),(e=He.get(s))&&Qc(t,e),u=n.createElement("script"),Kt(u),te(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function Zy(t,e,n,a){var s=(s=ot.current)?Js(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ci(n.href),n=Va(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ci(n.href);var u=Va(s).hoistableStyles,f=u.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=s.querySelector(vl(t)))&&!u._p&&(f.instance=u,f.state.loading=5),He.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},He.set(t,n),u||MT(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=fi(n),n=Va(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ci(t){return'href="'+Oe(t)+'"'}function vl(t){return'link[rel="stylesheet"]['+t+"]"}function Ky(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function MT(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),te(e,"link",n),Kt(e),t.head.appendChild(e))}function fi(t){return'[src="'+Oe(t)+'"]'}function bl(t){return"script[async]"+t}function Jy(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(a)return e.instance=a,Kt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Kt(a),te(a,"style",s),Fs(a,n.precedence,t),e.instance=a;case"stylesheet":s=ci(n.href);var u=t.querySelector(vl(s));if(u)return e.state.loading|=4,e.instance=u,Kt(u),u;a=Ky(n),(s=He.get(s))&&Xc(a,s),u=(t.ownerDocument||t).createElement("link"),Kt(u);var f=u;return f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),te(u,"link",a),e.state.loading|=4,Fs(u,n.precedence,t),e.instance=u;case"script":return u=fi(n.src),(s=t.querySelector(bl(u)))?(e.instance=s,Kt(s),s):(a=n,(s=He.get(u))&&(a=b({},n),Qc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Kt(s),te(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Fs(a,n.precedence,t));return e.instance}function Fs(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,u=s,f=0;f title"):null)}function DT(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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 Py(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function CT(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ci(a.href),u=e.querySelector(vl(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ps.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,Kt(u);return}u=e.ownerDocument||e,a=Ky(a),(s=He.get(s))&&Xc(a,s),u=u.createElement("link"),Kt(u);var f=u;f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),te(u,"link",a),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=Ps.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Zc=0;function zT(t,e){return t.stylesheets&&t.count===0&&Is(t,t.stylesheets),0Zc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Is(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $s=null;function Is(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$s=new Map,e.forEach(RT,t),$s=null,Ps.call(t))}function RT(t,e){if(!(e.state.loading&4)){var n=$s.get(t);if(n)var a=n.get(null);else{n=new Map,$s.set(t,n);for(var s=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(i)}catch(l){console.error(l)}}return i(),ur.exports=vv(),ur.exports}var xv=bv(),hr={exports:{}},mi={};var of;function wv(){if(of)return mi;of=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var g in c)g!=="key"&&(h[g]=c[g])}else h=c;return c=h.ref,{$$typeof:i,type:o,key:d,ref:c!==void 0?c:null,props:h}}return mi.Fragment=l,mi.jsx=r,mi.jsxs=r,mi}var uf;function Sv(){return uf||(uf=1,hr.exports=wv()),hr.exports}var tt=Sv();const mr=q.createContext({});function pr(i){const l=q.useRef(null);return l.current===null&&(l.current=i()),l.current}const cf=typeof window<"u",ff=cf?q.useLayoutEffect:q.useEffect,Al=q.createContext(null);function gr(i,l){i.indexOf(l)===-1&&i.push(l)}function yr(i,l){const r=i.indexOf(l);r>-1&&i.splice(r,1)}const Ze=(i,l,r)=>r>l?l:r{};const Ie={},df=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function hf(i){return typeof i=="object"&&i!==null}const mf=i=>/^0[^.\s]+$/u.test(i);function br(i){let l;return()=>(l===void 0&&(l=i()),l)}const Ee=i=>i,Tv=(i,l)=>r=>l(i(r)),pi=(...i)=>i.reduce(Tv),gi=(i,l,r)=>{const o=l-i;return o===0?1:(r-i)/o};class xr{constructor(){this.subscriptions=[]}add(l){return gr(this.subscriptions,l),()=>yr(this.subscriptions,l)}notify(l,r,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,r,o);else for(let h=0;hi*1e3,Me=i=>i/1e3;function pf(i,l){return l?i*(1e3/l):0}const gf=(i,l,r)=>(((1-3*r+3*l)*i+(3*r-6*l))*i+3*l)*i,Av=1e-7,Ev=12;function Mv(i,l,r,o,c){let h,d,g=0;do d=l+(r-l)/2,h=gf(d,o,c)-i,h>0?r=d:l=d;while(Math.abs(h)>Av&&++gMv(h,0,1,i,r);return h=>h===0||h===1?h:gf(c(h),l,o)}const yf=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,vf=i=>l=>1-i(1-l),bf=yi(.33,1.53,.69,.99),wr=vf(bf),xf=yf(wr),wf=i=>(i*=2)<1?.5*wr(i):.5*(2-Math.pow(2,-10*(i-1))),Sr=i=>1-Math.sin(Math.acos(i)),Sf=vf(Sr),Tf=yf(Sr),Dv=yi(.42,0,1,1),Cv=yi(0,0,.58,1),Af=yi(.42,0,.58,1),zv=i=>Array.isArray(i)&&typeof i[0]!="number",Ef=i=>Array.isArray(i)&&typeof i[0]=="number",Rv={linear:Ee,easeIn:Dv,easeInOut:Af,easeOut:Cv,circIn:Sr,circInOut:Tf,circOut:Sf,backIn:wr,backInOut:xf,backOut:bf,anticipate:wf},Ov=i=>typeof i=="string",Mf=i=>{if(Ef(i)){vr(i.length===4);const[l,r,o,c]=i;return yi(l,r,o,c)}else if(Ov(i))return Rv[i];return i},El=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Vv(i,l){let r=new Set,o=new Set,c=!1,h=!1;const d=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(v){d.has(v)&&(p.schedule(v),i()),v(g)}const p={schedule:(v,b=!1,w=!1)=>{const B=w&&c?r:o;return b&&d.add(v),B.has(v)||B.add(v),v},cancel:v=>{o.delete(v),d.delete(v)},process:v=>{if(g=v,c){h=!0;return}c=!0,[r,o]=[o,r],r.forEach(y),r.clear(),c=!1,h&&(h=!1,p.process(v))}};return p}const _v=40;function Df(i,l){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,d=El.reduce((j,J)=>(j[J]=Vv(h),j),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:v,update:b,preRender:w,render:z,postRender:B}=d,Y=()=>{const j=Ie.useManualTiming?c.timestamp:performance.now();r=!1,Ie.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(j-c.timestamp,_v),1)),c.timestamp=j,c.isProcessing=!0,g.process(c),y.process(c),p.process(c),v.process(c),b.process(c),w.process(c),z.process(c),B.process(c),c.isProcessing=!1,r&&l&&(o=!1,i(Y))},N=()=>{r=!0,o=!0,c.isProcessing||i(Y)};return{schedule:El.reduce((j,J)=>{const P=d[J];return j[J]=(nt,$=!1,Z=!1)=>(r||N(),P.schedule(nt,$,Z)),j},{}),cancel:j=>{for(let J=0;J(Ml===void 0&&ae.set(Ft.isProcessing||Ie.useManualTiming?Ft.timestamp:performance.now()),Ml),set:i=>{Ml=i,queueMicrotask(Uv)}},Cf=i=>l=>typeof l=="string"&&l.startsWith(i),zf=Cf("--"),Bv=Cf("var(--"),Ar=i=>Bv(i)?Nv.test(i.split("/*")[0].trim()):!1,Nv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rf(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const xa={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},vi={...xa,transform:i=>Ze(0,1,i)},Dl={...xa,default:1},bi=i=>Math.round(i*1e5)/1e5,Er=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jv(i){return i==null}const Lv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mr=(i,l)=>r=>!!(typeof r=="string"&&Lv.test(r)&&r.startsWith(i)||l&&!jv(r)&&Object.prototype.hasOwnProperty.call(r,l)),Of=(i,l,r)=>o=>{if(typeof o!="string")return o;const[c,h,d,g]=o.match(Er);return{[i]:parseFloat(c),[l]:parseFloat(h),[r]:parseFloat(d),alpha:g!==void 0?parseFloat(g):1}},Hv=i=>Ze(0,255,i),Dr={...xa,transform:i=>Math.round(Hv(i))},Wn={test:Mr("rgb","red"),parse:Of("red","green","blue"),transform:({red:i,green:l,blue:r,alpha:o=1})=>"rgba("+Dr.transform(i)+", "+Dr.transform(l)+", "+Dr.transform(r)+", "+bi(vi.transform(o))+")"};function Yv(i){let l="",r="",o="",c="";return i.length>5?(l=i.substring(1,3),r=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),r=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,r+=r,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Cr={test:Mr("#"),parse:Yv,transform:Wn.transform},xi=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),wn=xi("deg"),Ke=xi("%"),Q=xi("px"),qv=xi("vh"),Gv=xi("vw"),Vf={...Ke,parse:i=>Ke.parse(i)/100,transform:i=>Ke.transform(i*100)},wa={test:Mr("hsl","hue"),parse:Of("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:r,alpha:o=1})=>"hsla("+Math.round(i)+", "+Ke.transform(bi(l))+", "+Ke.transform(bi(r))+", "+bi(vi.transform(o))+")"},Ht={test:i=>Wn.test(i)||Cr.test(i)||wa.test(i),parse:i=>Wn.test(i)?Wn.parse(i):wa.test(i)?wa.parse(i):Cr.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Wn.transform(i):wa.transform(i),getAnimatableNone:i=>{const l=Ht.parse(i);return l.alpha=0,Ht.transform(l)}},kv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xv(i){return isNaN(i)&&typeof i=="string"&&(i.match(Er)?.length||0)+(i.match(kv)?.length||0)>0}const _f="number",Uf="color",Qv="var",Zv="var(",Bf="${}",Kv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wi(i){const l=i.toString(),r=[],o={color:[],number:[],var:[]},c=[];let h=0;const g=l.replace(Kv,y=>(Ht.test(y)?(o.color.push(h),c.push(Uf),r.push(Ht.parse(y))):y.startsWith(Zv)?(o.var.push(h),c.push(Qv),r.push(y)):(o.number.push(h),c.push(_f),r.push(parseFloat(y))),++h,Bf)).split(Bf);return{values:r,split:g,indexes:o,types:c}}function Nf(i){return wi(i).values}function jf(i){const{split:l,types:r}=wi(i),o=l.length;return c=>{let h="";for(let d=0;dtypeof i=="number"?0:Ht.test(i)?Ht.getAnimatableNone(i):i;function Fv(i){const l=Nf(i);return jf(i)(l.map(Jv))}const Sn={test:Xv,parse:Nf,createTransformer:jf,getAnimatableNone:Fv};function zr(i,l,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?i+(l-i)*6*r:r<1/2?l:r<2/3?i+(l-i)*(2/3-r)*6:i}function Wv({hue:i,saturation:l,lightness:r,alpha:o}){i/=360,l/=100,r/=100;let c=0,h=0,d=0;if(!l)c=h=d=r;else{const g=r<.5?r*(1+l):r+l-r*l,y=2*r-g;c=zr(y,g,i+1/3),h=zr(y,g,i),d=zr(y,g,i-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:o}}function Cl(i,l){return r=>r>0?l:i}const Ot=(i,l,r)=>i+(l-i)*r,Rr=(i,l,r)=>{const o=i*i,c=r*(l*l-o)+o;return c<0?0:Math.sqrt(c)},Pv=[Cr,Wn,wa],$v=i=>Pv.find(l=>l.test(i));function Lf(i){const l=$v(i);if(!l)return!1;let r=l.parse(i);return l===wa&&(r=Wv(r)),r}const Hf=(i,l)=>{const r=Lf(i),o=Lf(l);if(!r||!o)return Cl(i,l);const c={...r};return h=>(c.red=Rr(r.red,o.red,h),c.green=Rr(r.green,o.green,h),c.blue=Rr(r.blue,o.blue,h),c.alpha=Ot(r.alpha,o.alpha,h),Wn.transform(c))},Or=new Set(["none","hidden"]);function Iv(i,l){return Or.has(i)?r=>r<=0?i:l:r=>r>=1?l:i}function t0(i,l){return r=>Ot(i,l,r)}function Vr(i){return typeof i=="number"?t0:typeof i=="string"?Ar(i)?Cl:Ht.test(i)?Hf:a0:Array.isArray(i)?Yf:typeof i=="object"?Ht.test(i)?Hf:e0:Cl}function Yf(i,l){const r=[...i],o=r.length,c=i.map((h,d)=>Vr(h)(h,l[d]));return h=>{for(let d=0;d{for(const h in o)r[h]=o[h](c);return r}}function n0(i,l){const r=[],o={color:0,var:0,number:0};for(let c=0;c{const r=Sn.createTransformer(l),o=wi(i),c=wi(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Or.has(i)&&!c.values.length||Or.has(l)&&!o.values.length?Iv(i,l):pi(Yf(n0(o,c),c.values),r):Cl(i,l)};function qf(i,l,r){return typeof i=="number"&&typeof l=="number"&&typeof r=="number"?Ot(i,l,r):Vr(i)(i,l)}const i0=i=>{const l=({timestamp:r})=>i(r);return{start:(r=!0)=>Dt.update(l,r),stop:()=>xn(l),now:()=>Ft.isProcessing?Ft.timestamp:ae.now()}},Gf=(i,l,r=10)=>{let o="";const c=Math.max(Math.round(l/r),2);for(let h=0;h=zl?1/0:l}function l0(i,l=100,r){const o=r({...i,keyframes:[0,l]}),c=Math.min(_r(o),zl);return{type:"keyframes",ease:h=>o.next(c*h).value/l,duration:Me(c)}}const s0=5;function kf(i,l,r){const o=Math.max(l-s0,0);return pf(r-i(o),l-o)}const Vt={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},Ur=.001;function r0({duration:i=Vt.duration,bounce:l=Vt.bounce,velocity:r=Vt.velocity,mass:o=Vt.mass}){let c,h,d=1-l;d=Ze(Vt.minDamping,Vt.maxDamping,d),i=Ze(Vt.minDuration,Vt.maxDuration,Me(i)),d<1?(c=p=>{const v=p*d,b=v*i,w=v-r,z=Br(p,d),B=Math.exp(-b);return Ur-w/z*B},h=p=>{const b=p*d*i,w=b*r+r,z=Math.pow(d,2)*Math.pow(p,2)*i,B=Math.exp(-b),Y=Br(Math.pow(p,2),d);return(-c(p)+Ur>0?-1:1)*((w-z)*B)/Y}):(c=p=>{const v=Math.exp(-p*i),b=(p-r)*i+1;return-Ur+v*b},h=p=>{const v=Math.exp(-p*i),b=(r-p)*(i*i);return v*b});const g=5/i,y=u0(c,h,g);if(i=tn(i),isNaN(y))return{stiffness:Vt.stiffness,damping:Vt.damping,duration:i};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:d*2*Math.sqrt(o*p),duration:i}}}const o0=12;function u0(i,l,r){let o=r;for(let c=1;ci[r]!==void 0)}function d0(i){let l={velocity:Vt.velocity,stiffness:Vt.stiffness,damping:Vt.damping,mass:Vt.mass,isResolvedFromDuration:!1,...i};if(!Xf(i,f0)&&Xf(i,c0))if(i.visualDuration){const r=i.visualDuration,o=2*Math.PI/(r*1.2),c=o*o,h=2*Ze(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Vt.mass,stiffness:c,damping:h}}else{const r=r0(i);l={...l,...r,mass:Vt.mass},l.isResolvedFromDuration=!0}return l}function Rl(i=Vt.visualDuration,l=Vt.bounce){const r=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=r;const h=r.keyframes[0],d=r.keyframes[r.keyframes.length-1],g={done:!1,value:h},{stiffness:y,damping:p,mass:v,duration:b,velocity:w,isResolvedFromDuration:z}=d0({...r,velocity:-Me(r.velocity||0)}),B=w||0,Y=p/(2*Math.sqrt(y*v)),N=d-h,L=Me(Math.sqrt(y/v)),k=Math.abs(N)<5;o||(o=k?Vt.restSpeed.granular:Vt.restSpeed.default),c||(c=k?Vt.restDelta.granular:Vt.restDelta.default);let j;if(Y<1){const P=Br(L,Y);j=nt=>{const $=Math.exp(-Y*L*nt);return d-$*((B+Y*L*N)/P*Math.sin(P*nt)+N*Math.cos(P*nt))}}else if(Y===1)j=P=>d-Math.exp(-L*P)*(N+(B+L*N)*P);else{const P=L*Math.sqrt(Y*Y-1);j=nt=>{const $=Math.exp(-Y*L*nt),Z=Math.min(P*nt,300);return d-$*((B+Y*L*N)*Math.sinh(Z)+P*N*Math.cosh(Z))/P}}const J={calculatedDuration:z&&b||null,next:P=>{const nt=j(P);if(z)g.done=P>=b;else{let $=P===0?B:0;Y<1&&($=P===0?tn(B):kf(j,P,nt));const Z=Math.abs($)<=o,it=Math.abs(d-nt)<=c;g.done=Z&&it}return g.value=g.done?d:nt,g},toString:()=>{const P=Math.min(_r(J),zl),nt=Gf($=>J.next(P*$).value,P,30);return P+"ms "+nt},toTransition:()=>{}};return J}Rl.applyToOptions=i=>{const l=l0(i,100,Rl);return i.ease=l.ease,i.duration=tn(l.duration),i.type="keyframes",i};function Nr({keyframes:i,velocity:l=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:g,max:y,restDelta:p=.5,restSpeed:v}){const b=i[0],w={done:!1,value:b},z=Z=>g!==void 0&&Zy,B=Z=>g===void 0?y:y===void 0||Math.abs(g-Z)-Y*Math.exp(-Z/o),j=Z=>L+k(Z),J=Z=>{const it=k(Z),Mt=j(Z);w.done=Math.abs(it)<=p,w.value=w.done?L:Mt};let P,nt;const $=Z=>{z(w.value)&&(P=Z,nt=Rl({keyframes:[w.value,B(w.value)],velocity:kf(j,Z,w.value),damping:c,stiffness:h,restDelta:p,restSpeed:v}))};return $(0),{calculatedDuration:null,next:Z=>{let it=!1;return!nt&&P===void 0&&(it=!0,J(Z),$(Z)),P!==void 0&&Z>=P?nt.next(Z-P):(!it&&J(Z),w)}}}function h0(i,l,r){const o=[],c=r||Ie.mix||qf,h=i.length-1;for(let d=0;dl[0];if(h===2&&l[0]===l[1])return()=>l[1];const d=i[0]===i[1];i[0]>i[h-1]&&(i=[...i].reverse(),l=[...l].reverse());const g=h0(l,o,c),y=g.length,p=v=>{if(d&&v1)for(;bp(Ze(i[0],i[h-1],v)):p}function p0(i,l){const r=i[i.length-1];for(let o=1;o<=l;o++){const c=gi(0,l,o);i.push(Ot(r,1,c))}}function g0(i){const l=[0];return p0(l,i.length-1),l}function y0(i,l){return i.map(r=>r*l)}function v0(i,l){return i.map(()=>l||Af).splice(0,i.length-1)}function Si({duration:i=300,keyframes:l,times:r,ease:o="easeInOut"}){const c=zv(o)?o.map(Mf):Mf(o),h={done:!1,value:l[0]},d=y0(r&&r.length===l.length?r:g0(l),i),g=m0(d,l,{ease:Array.isArray(c)?c:v0(l,c)});return{calculatedDuration:i,next:y=>(h.value=g(y),h.done=y>=i,h)}}const b0=i=>i!==null;function jr(i,{repeat:l,repeatType:r="loop"},o,c=1){const h=i.filter(b0),g=c<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!g||o===void 0?h[g]:o}const x0={decay:Nr,inertia:Nr,tween:Si,keyframes:Si,spring:Rl};function Qf(i){typeof i.type=="string"&&(i.type=x0[i.type])}class Lr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}}const w0=i=>i/100;class Hr extends Lr{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==ae.now()&&this.tick(ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;Qf(l);const{type:r=Si,repeat:o=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=l;let{keyframes:g}=l;const y=r||Si;y!==Si&&typeof g[0]!="number"&&(this.mixKeyframes=pi(w0,qf(g[0],g[1])),g=[0,100]);const p=y({...l,keyframes:g});h==="mirror"&&(this.mirroredGenerator=y({...l,keyframes:[...g].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=_r(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(l,r=!1){const{generator:o,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:b,repeatType:w,repeatDelay:z,type:B,onUpdate:Y,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),r?this.currentTime=l:this.updateTime(l);const L=this.currentTime-p*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?L<0:L>c;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let j=this.currentTime,J=o;if(b){const Z=Math.min(this.currentTime,c)/g;let it=Math.floor(Z),Mt=Z%1;!Mt&&Z>=1&&(Mt=1),Mt===1&&it--,it=Math.min(it,b+1),it%2&&(w==="reverse"?(Mt=1-Mt,z&&(Mt-=z/g)):w==="mirror"&&(J=d)),j=Ze(0,1,Mt)*g}const P=k?{done:!1,value:v[0]}:J.next(j);h&&(P.value=h(P.value));let{done:nt}=P;!k&&y!==null&&(nt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&nt);return $&&B!==Nr&&(P.value=jr(v,this.options,N,this.speed)),Y&&Y(P.value),$&&this.finish(),P}then(l,r){return this.finished.then(l,r)}get duration(){return Me(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Me(l)}get time(){return Me(this.currentTime)}set time(l){l=tn(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(ae.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l,r&&(this.time=Me(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=i0,startTime:r}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??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(ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function S0(i){for(let l=1;li*180/Math.PI,Yr=i=>{const l=Pn(Math.atan2(i[1],i[0]));return qr(l)},T0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Yr,rotateZ:Yr,skewX:i=>Pn(Math.atan(i[1])),skewY:i=>Pn(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},qr=i=>(i=i%360,i<0&&(i+=360),i),Zf=Yr,Kf=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Jf=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),A0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kf,scaleY:Jf,scale:i=>(Kf(i)+Jf(i))/2,rotateX:i=>qr(Pn(Math.atan2(i[6],i[5]))),rotateY:i=>qr(Pn(Math.atan2(-i[2],i[0]))),rotateZ:Zf,rotate:Zf,skewX:i=>Pn(Math.atan(i[4])),skewY:i=>Pn(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Gr(i){return i.includes("scale")?1:0}function kr(i,l){if(!i||i==="none")return Gr(l);const r=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(r)o=A0,c=r;else{const g=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=T0,c=g}if(!c)return Gr(l);const h=o[l],d=c[1].split(",").map(M0);return typeof h=="function"?h(d):d[h]}const E0=(i,l)=>{const{transform:r="none"}=getComputedStyle(i);return kr(r,l)};function M0(i){return parseFloat(i.trim())}const Sa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ta=new Set(Sa),Ff=i=>i===xa||i===Q,D0=new Set(["x","y","z"]),C0=Sa.filter(i=>!D0.has(i));function z0(i){const l=[];return C0.forEach(r=>{const o=i.getValue(r);o!==void 0&&(l.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),l}const Tn={width:({x:i},{paddingLeft:l="0",paddingRight:r="0"})=>i.max-i.min-parseFloat(l)-parseFloat(r),height:({y:i},{paddingTop:l="0",paddingBottom:r="0"})=>i.max-i.min-parseFloat(l)-parseFloat(r),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>kr(l,"x"),y:(i,{transform:l})=>kr(l,"y")};Tn.translateX=Tn.x,Tn.translateY=Tn.y;const $n=new Set;let Xr=!1,Qr=!1,Zr=!1;function Wf(){if(Qr){const i=Array.from($n).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),r=new Map;l.forEach(o=>{const c=z0(o);c.length&&(r.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=r.get(o);c&&c.forEach(([h,d])=>{o.getValue(h)?.set(d)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Qr=!1,Xr=!1,$n.forEach(i=>i.complete(Zr)),$n.clear()}function Pf(){$n.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Qr=!0)})}function R0(){Zr=!0,Pf(),Wf(),Zr=!1}class Kr{constructor(l,r,o,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=o,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?($n.add(this),Xr||(Xr=!0,Dt.read(Pf),Dt.resolveKeyframes(Wf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:o,motionValue:c}=this;if(l[0]===null){const h=c?.get(),d=l[l.length-1];if(h!==void 0)l[0]=h;else if(o&&r){const g=o.readValue(r,d);g!=null&&(l[0]=g)}l[0]===void 0&&(l[0]=d),c&&h===void 0&&c.set(l[0])}S0(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),$n.delete(this)}cancel(){this.state==="scheduled"&&($n.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const O0=i=>i.startsWith("--");function V0(i,l,r){O0(l)?i.style.setProperty(l,r):i.style[l]=r}const _0=br(()=>window.ScrollTimeline!==void 0),U0={};function B0(i,l){const r=br(i);return()=>U0[l]??r()}const $f=B0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ti=([i,l,r,o])=>`cubic-bezier(${i}, ${l}, ${r}, ${o})`,If={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function td(i,l){if(i)return typeof i=="function"?$f()?Gf(i,l):"ease-out":Ef(i)?Ti(i):Array.isArray(i)?i.map(r=>td(r,l)||If.easeOut):If[i]}function N0(i,l,r,{delay:o=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:g="easeOut",times:y}={},p=void 0){const v={[l]:r};y&&(v.offset=y);const b=td(g,c);Array.isArray(b)&&(v.easing=b);const w={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return p&&(w.pseudoElement=p),i.animate(v,w)}function ed(i){return typeof i=="function"&&"applyToOptions"in i}function j0({type:i,...l}){return ed(i)&&$f()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class L0 extends Lr{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:r,name:o,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:g,onComplete:y}=l;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=l,vr(typeof l.type!="string");const p=j0(l);this.animation=N0(r,o,c,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const v=jr(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(v):V0(r,o,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return Me(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Me(l)}get time(){return Me(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&_0()?(this.animation.timeline=l,Ee):r(this)}}const nd={anticipate:wf,backInOut:xf,circInOut:Tf};function H0(i){return i in nd}function Y0(i){typeof i.ease=="string"&&H0(i.ease)&&(i.ease=nd[i.ease])}const Jr=10;class q0 extends L0{constructor(l){Y0(l),Qf(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:o,onComplete:c,element:h,...d}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const g=new Hr({...d,autoplay:!1}),y=Math.max(Jr,ae.now()-this.startTime),p=Ze(0,Jr,y-Jr);r.setWithVelocity(g.sample(Math.max(0,y-p)).value,g.sample(y).value,p),g.stop()}}const ad=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Sn.test(i)||i==="0")&&!i.startsWith("url("));function G0(i){const l=i[0];if(i.length===1)return!0;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function Z0(i){const{motionValue:l,name:r,repeatDelay:o,repeatType:c,damping:h,type:d}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=l.owner.getProps();return Q0()&&r&&X0.has(r)&&(r!=="transform"||!p)&&!y&&!o&&c!=="mirror"&&h!==0&&d!=="inertia"}const K0=40;class J0 extends Lr{constructor({autoplay:l=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:g,name:y,motionValue:p,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ae.now();const w={autoplay:l,delay:r,type:o,repeat:c,repeatDelay:h,repeatType:d,name:y,motionValue:p,element:v,...b},z=v?.KeyframeResolver||Kr;this.keyframeResolver=new z(g,(B,Y,N)=>this.onKeyframesResolved(B,Y,w,!N),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,o,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:g,delay:y,isHandoff:p,onUpdate:v}=o;this.resolvedAt=ae.now(),k0(l,h,d,g)||((Ie.instantAnimations||!y)&&v?.(jr(l,o,r)),l[0]=l[l.length-1],Fr(o),o.repeat=0);const w={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>K0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:l},z=!p&&Z0(w),B=w.motionValue?.owner?.current,Y=z?new q0({...w,element:B}):new Hr(w);Y.finished.then(()=>{this.notifyFinished()}).catch(Ee),this.pendingTimeline&&(this.stopTimeline=Y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Y}get finished(){return this._animation?this.animation.finished:this._finished}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),R0()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function id(i,l,r,o=0,c=1){const h=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(l),d=i.size,g=(d-1)*o;return typeof r=="function"?r(h,d):c===1?h*o:g-h*o}const F0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W0(i){const l=F0.exec(i);if(!l)return[,];const[,r,o,c]=l;return[`--${r??o}`,c]}function ld(i,l,r=1){const[o,c]=W0(i);if(!o)return;const h=window.getComputedStyle(l).getPropertyValue(o);if(h){const d=h.trim();return df(d)?parseFloat(d):d}return Ar(c)?ld(c,l,r+1):c}const P0={type:"spring",stiffness:500,damping:25,restSpeed:10},$0=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),I0={type:"keyframes",duration:.8},tb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eb=(i,{keyframes:l})=>l.length>2?I0:Ta.has(i)?i.startsWith("scale")?$0(l[1]):P0:tb,nb=i=>i!==null;function ab(i,{repeat:l,repeatType:r="loop"},o){const c=i.filter(nb),h=l&&r!=="loop"&&l%2===1?0:c.length-1;return c[h]}function Wr(i,l){return i?.[l]??i?.default??i}function ib({when:i,delay:l,delayChildren:r,staggerChildren:o,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:g,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const Pr=(i,l,r,o={},c,h)=>d=>{const g=Wr(o,i)||{},y=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-tn(y);const v={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...g,delay:-p,onUpdate:w=>{l.set(w),g.onUpdate&&g.onUpdate(w)},onComplete:()=>{d(),g.onComplete&&g.onComplete()},name:i,motionValue:l,element:h?void 0:c};ib(g)||Object.assign(v,eb(i,v)),v.duration&&(v.duration=tn(v.duration)),v.repeatDelay&&(v.repeatDelay=tn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Fr(v),v.delay===0&&(b=!0)),(Ie.instantAnimations||Ie.skipAnimations)&&(b=!0,Fr(v),v.delay=0),v.allowFlatten=!g.type&&!g.ease,b&&!h&&l.get()!==void 0){const w=ab(v.keyframes,g);if(w!==void 0){Dt.update(()=>{v.onUpdate(w),v.onComplete()});return}}return g.isSync?new Hr(v):new J0(v)};function sd(i){const l=[{},{}];return i?.values.forEach((r,o)=>{l[0][o]=r.get(),l[1][o]=r.getVelocity()}),l}function $r(i,l,r,o){if(typeof l=="function"){const[c,h]=sd(o);l=l(r!==void 0?r:i.custom,c,h)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,h]=sd(o);l=l(r!==void 0?r:i.custom,c,h)}return l}function Aa(i,l,r){const o=i.getProps();return $r(o,l,r!==void 0?r:o.custom,i)}const rd=new Set(["width","height","top","left","right","bottom",...Sa]),od=30,lb=i=>!isNaN(parseFloat(i));class sb{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ae.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=r.owner}setCurrent(l){this.current=l,this.updatedAt=ae.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=lb(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){this.events[l]||(this.events[l]=new xr);const o=this.events[l].add(r);return l==="change"?()=>{o(),Dt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,r){this.passiveEffect=l,this.stopPassiveEffect=r}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,r=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>od)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,od);return pf(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=l(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ea(i,l){return new sb(i,l)}const Ir=i=>Array.isArray(i);function rb(i,l,r){i.hasValue(l)?i.getValue(l).set(r):i.addValue(l,Ea(r))}function ob(i){return Ir(i)?i[i.length-1]||0:i}function ub(i,l){const r=Aa(i,l);let{transitionEnd:o={},transition:c={},...h}=r||{};h={...h,...o};for(const d in h){const g=ob(h[d]);rb(i,d,g)}}const ne=i=>!!(i&&i.getVelocity);function cb(i){return!!(ne(i)&&i.add)}function to(i,l){const r=i.getValue("willChange");if(cb(r))return r.add(l);if(!r&&Ie.WillChange){const o=new Ie.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function eo(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const ud="data-"+eo("framerAppearId");function cd(i){return i.props[ud]}function fb({protectedKeys:i,needsAnimating:l},r){const o=i.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,o}function fd(i,l,{delay:r=0,transitionOverride:o,type:c}={}){let{transition:h=i.getDefaultTransition(),transitionEnd:d,...g}=l;const y=h?.reduceMotion;o&&(h=o);const p=[],v=c&&i.animationState&&i.animationState.getState()[c];for(const b in g){const w=i.getValue(b,i.latestValues[b]??null),z=g[b];if(z===void 0||v&&fb(v,b))continue;const B={delay:r,...Wr(h||{},b)},Y=w.get();if(Y!==void 0&&!w.isAnimating&&!Array.isArray(z)&&z===Y&&!B.velocity)continue;let N=!1;if(window.MotionHandoffAnimation){const j=cd(i);if(j){const J=window.MotionHandoffAnimation(j,b,Dt);J!==null&&(B.startTime=J,N=!0)}}to(i,b);const L=y??i.shouldReduceMotion;w.start(Pr(b,w,z,L&&rd.has(b)?{type:!1}:B,i,N));const k=w.animation;k&&p.push(k)}return d&&Promise.all(p).then(()=>{Dt.update(()=>{d&&ub(i,d)})}),p}function no(i,l,r={}){const o=Aa(i,l,r.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(c=r.transitionOverride);const h=o?()=>Promise.all(fd(i,o,r)):()=>Promise.resolve(),d=i.variantChildren&&i.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:b}=c;return db(i,l,y,p,v,b,r)}:()=>Promise.resolve(),{when:g}=c;if(g){const[y,p]=g==="beforeChildren"?[h,d]:[d,h];return y().then(()=>p())}else return Promise.all([h(),d(r.delay)])}function db(i,l,r=0,o=0,c=0,h=1,d){const g=[];for(const y of i.variantChildren)y.notify("AnimationStart",l),g.push(no(y,l,{...d,delay:r+(typeof o=="function"?0:o)+id(i.variantChildren,y,o,c,h)}).then(()=>y.notify("AnimationComplete",l)));return Promise.all(g)}function hb(i,l,r={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(h=>no(i,h,r));o=Promise.all(c)}else if(typeof l=="string")o=no(i,l,r);else{const c=typeof l=="function"?Aa(i,l,r.custom):l;o=Promise.all(fd(i,c,r))}return o.then(()=>{i.notify("AnimationComplete",l)})}const mb={test:i=>i==="auto",parse:i=>i},dd=i=>l=>l.test(i),hd=[xa,Q,Ke,wn,Gv,qv,mb],md=i=>hd.find(dd(i));function pb(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||mf(i):!0}const gb=new Set(["brightness","contrast","saturate","opacity"]);function yb(i){const[l,r]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=r.match(Er)||[];if(!o)return i;const c=r.replace(o,"");let h=gb.has(l)?1:0;return o!==r&&(h*=100),l+"("+h+c+")"}const vb=/\b([a-z-]*)\(.*?\)/gu,ao={...Sn,getAnimatableNone:i=>{const l=i.match(vb);return l?l.map(yb).join(" "):i}},pd={...xa,transform:Math.round},io={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,...{rotate:wn,rotateX:wn,rotateY:wn,rotateZ:wn,scale:Dl,scaleX:Dl,scaleY:Dl,scaleZ:Dl,skew:wn,skewX:wn,skewY:wn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:vi,originX:Vf,originY:Vf,originZ:Q},zIndex:pd,fillOpacity:vi,strokeOpacity:vi,numOctaves:pd},bb={...io,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:ao,WebkitFilter:ao},gd=i=>bb[i];function yd(i,l){let r=gd(i);return r!==ao&&(r=Sn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}const xb=new Set(["auto","none","0"]);function wb(i,l,r){let o=0,c;for(;o{l.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function Tb(i,l,r){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=r?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const vd=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function lo(i){return hf(i)&&"offsetHeight"in i}const{schedule:so}=Df(queueMicrotask,!1),Ye={x:!1,y:!1};function bd(){return Ye.x||Ye.y}function Ab(i){return i==="x"||i==="y"?Ye[i]?null:(Ye[i]=!0,()=>{Ye[i]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function xd(i,l){const r=Tb(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[r,c,()=>o.abort()]}function wd(i){return!(i.pointerType==="touch"||bd())}function Eb(i,l,r={}){const[o,c,h]=xd(i,r),d=g=>{if(!wd(g))return;const{target:y}=g,p=l(y,g);if(typeof p!="function"||!y)return;const v=b=>{wd(b)&&(p(b),y.removeEventListener("pointerleave",v))};y.addEventListener("pointerleave",v,c)};return o.forEach(g=>{g.addEventListener("pointerenter",d,c)}),h}const Sd=(i,l)=>l?i===l?!0:Sd(i,l.parentElement):!1,ro=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,Mb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Td(i){return Mb.has(i.tagName)||i.isContentEditable===!0}const Ol=new WeakSet;function Ad(i){return l=>{l.key==="Enter"&&i(l)}}function oo(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const Db=(i,l)=>{const r=i.currentTarget;if(!r)return;const o=Ad(()=>{if(Ol.has(r))return;oo(r,"down");const c=Ad(()=>{oo(r,"up")}),h=()=>oo(r,"cancel");r.addEventListener("keyup",c,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",o,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),l)};function Ed(i){return ro(i)&&!bd()}function Cb(i,l,r={}){const[o,c,h]=xd(i,r),d=g=>{const y=g.currentTarget;if(!Ed(g))return;Ol.add(y);const p=l(y,g),v=(z,B)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",w),Ol.has(y)&&Ol.delete(y),Ed(z)&&typeof p=="function"&&p(z,{success:B})},b=z=>{v(z,y===window||y===document||r.useGlobalTarget||Sd(y,z.target))},w=z=>{v(z,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",w,c)};return o.forEach(g=>{(r.useGlobalTarget?window:g).addEventListener("pointerdown",d,c),lo(g)&&(g.addEventListener("focus",p=>Db(p,c)),!Td(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),h}function Md(i){return hf(i)&&"ownerSVGElement"in i}function zb(i){return Md(i)&&i.tagName==="svg"}const Rb=[...hd,Ht,Sn],Ob=i=>Rb.find(dd(i)),Dd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ma=()=>({x:Dd(),y:Dd()}),Cd=()=>({min:0,max:0}),Qt=()=>({x:Cd(),y:Cd()}),uo={current:null},zd={current:!1},Vb=typeof window<"u";function _b(){if(zd.current=!0,!!Vb)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>uo.current=i.matches;i.addEventListener("change",l),l()}else uo.current=!1}const Ub=new WeakMap;function Vl(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Ai(i){return typeof i=="string"||Array.isArray(i)}const co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fo=["initial",...co];function _l(i){return Vl(i.animate)||fo.some(l=>Ai(i[l]))}function Rd(i){return!!(_l(i)||i.variants)}function Bb(i,l,r){for(const o in l){const c=l[o],h=r[o];if(ne(c))i.addValue(o,c);else if(ne(h))i.addValue(o,Ea(c,{owner:i}));else if(h!==c)if(i.hasValue(o)){const d=i.getValue(o);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=i.getStaticValue(o);i.addValue(o,Ea(d!==void 0?d:c,{owner:i}))}}for(const o in r)l[o]===void 0&&i.removeValue(o);return l}const Od=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ul={};function Vd(i){Ul=i}function Nb(){return Ul}class jb{scrapeMotionValuesFromProps(l,r,o){return{}}constructor({parent:l,props:r,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:h,visualState:d},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=ae.now();this.renderScheduledAtthis.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zd.current||_b(),this.shouldReduceMotion=uo.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xn(this.notifyUpdate),xn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const o=Ta.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",d=>{this.latestValues[l]=d,this.props.onUpdate&&Dt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,r)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),r.owner&&r.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Ul){const r=Ul[l];if(!r)continue;const{isEnabled:o,Feature:c}=r;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;or.variantChildren.delete(l)}addValue(l,r){const o=this.values.get(l);r!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,r),this.values.set(l,r),this.latestValues[l]=r.get())}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);r&&(r(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&r!==void 0&&(o=Ea(r===null?void 0:r,{owner:this}),this.addValue(l,o)),o}readValue(l,r){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(df(o)||mf(o))?o=parseFloat(o):!Ob(o)&&Sn.test(r)&&(o=yd(l,r)),this.setBaseTarget(l,ne(o)?o.get():o)),ne(o)?o.get():o}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const h=$r(this.props,r,this.presenceContext?.custom);h&&(o=h[l])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ne(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new xr),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){so.render(this.render)}}class _d extends jb{constructor(){super(...arguments),this.KeyframeResolver=Sb}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){const o=l.style;return o?o[r]:void 0}removeValueFromRenderState(l,{vars:r,style:o}){delete r[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ne(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class An{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Ud({top:i,left:l,right:r,bottom:o}){return{x:{min:l,max:r},y:{min:i,max:o}}}function Lb({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function Hb(i,l){if(!l)return i;const r=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function ho(i){return i===void 0||i===1}function mo({scale:i,scaleX:l,scaleY:r}){return!ho(i)||!ho(l)||!ho(r)}function In(i){return mo(i)||Bd(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Bd(i){return Nd(i.x)||Nd(i.y)}function Nd(i){return i&&i!=="0%"}function Bl(i,l,r){const o=i-r,c=l*o;return r+c}function jd(i,l,r,o,c){return c!==void 0&&(i=Bl(i,c,o)),Bl(i,r,o)+l}function po(i,l=0,r=1,o,c){i.min=jd(i.min,l,r,o,c),i.max=jd(i.max,l,r,o,c)}function Ld(i,{x:l,y:r}){po(i.x,l.translate,l.scale,l.originPoint),po(i.y,r.translate,r.scale,r.originPoint)}const Hd=.999999999999,Yd=1.0000000000001;function Yb(i,l,r,o=!1){const c=r.length;if(!c)return;l.x=l.y=1;let h,d;for(let g=0;gHd&&(l.x=1),l.yHd&&(l.y=1)}function Da(i,l){i.min=i.min+l,i.max=i.max+l}function qd(i,l,r,o,c=.5){const h=Ot(i.min,i.max,c);po(i,l,r,h,o)}function Ca(i,l){qd(i.x,l.x,l.scaleX,l.scale,l.originX),qd(i.y,l.y,l.scaleY,l.scale,l.originY)}function Gd(i,l){return Ud(Hb(i.getBoundingClientRect(),l))}function qb(i,l,r){const o=Gd(i,r),{scroll:c}=l;return c&&(Da(o.x,c.offset.x),Da(o.y,c.offset.y)),o}const Gb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kb=Sa.length;function Xb(i,l,r){let o="",c=!0;for(let h=0;h{if(!l.target)return i;if(typeof i=="string")if(Q.test(i))i=parseFloat(i);else return i;const r=Xd(i,l.target.x),o=Xd(i,l.target.y);return`${r}% ${o}%`}},Qb={correct:(i,{treeScale:l,projectionDelta:r})=>{const o=i,c=Sn.parse(i);if(c.length>5)return o;const h=Sn.createTransformer(i),d=typeof c[0]!="number"?1:0,g=r.x.scale*l.x,y=r.y.scale*l.y;c[0+d]/=g,c[1+d]/=y;const p=Ot(g,y,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),h(c)}},yo={borderRadius:{...Ei,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ei,borderTopRightRadius:Ei,borderBottomLeftRadius:Ei,borderBottomRightRadius:Ei,boxShadow:Qb};function Qd(i,{layout:l,layoutId:r}){return Ta.has(i)||i.startsWith("origin")||(l||r!==void 0)&&(!!yo[i]||i==="opacity")}function vo(i,l,r){const o=i.style,c=l?.style,h={};if(!o)return h;for(const d in o)(ne(o[d])||c&&ne(c[d])||Qd(d,i)||r?.getValue(d)?.liveStyle!==void 0)&&(h[d]=o[d]);return h}function Zb(i){return window.getComputedStyle(i)}class Kb extends _d{constructor(){super(...arguments),this.type="html",this.renderInstance=kd}readValueFromInstance(l,r){if(Ta.has(r))return this.projection?.isProjecting?Gr(r):E0(l,r);{const o=Zb(l),c=(zf(r)?o.getPropertyValue(r):o[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:r}){return Gd(l,r)}build(l,r,o){go(l,r,o.transformTemplate)}scrapeMotionValuesFromProps(l,r,o){return vo(l,r,o)}}const Jb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fb={offset:"strokeDashoffset",array:"strokeDasharray"};function Wb(i,l,r=1,o=0,c=!0){i.pathLength=1;const h=c?Jb:Fb;i[h.offset]=`${-o}`,i[h.array]=`${l} ${r}`}const Pb=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zd(i,{attrX:l,attrY:r,attrScale:o,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...g},y,p,v){if(go(i,g,p),y){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:w}=i;b.transform&&(w.transform=b.transform,delete b.transform),(w.transform||b.transformOrigin)&&(w.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),w.transform&&(w.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const z of Pb)b[z]!==void 0&&(w[z]=b[z],delete b[z]);l!==void 0&&(b.x=l),r!==void 0&&(b.y=r),o!==void 0&&(b.scale=o),c!==void 0&&Wb(b,c,h,d,!1)}const Kd=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"]),Jd=i=>typeof i=="string"&&i.toLowerCase()==="svg";function $b(i,l,r,o){kd(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(Kd.has(c)?c:eo(c),l.attrs[c])}function Fd(i,l,r){const o=vo(i,l,r);for(const c in i)if(ne(i[c])||ne(l[c])){const h=Sa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[h]=i[c]}return o}class Ib extends _d{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(Ta.has(r)){const o=gd(r);return o&&o.default||0}return r=Kd.has(r)?r:eo(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,o){return Fd(l,r,o)}build(l,r,o){Zd(l,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,r,o,c){$b(l,r,o,c)}mount(l){this.isSVGTag=Jd(l.tagName),super.mount(l)}}const t1=fo.length;function Wd(i){if(!i)return;if(!i.isControllingVariants){const r=i.parent?Wd(i.parent)||{}:{};return i.props.initial!==void 0&&(r.initial=i.props.initial),r}const l={};for(let r=0;rPromise.all(l.map(({animation:r,options:o})=>hb(i,r,o)))}function i1(i){let l=a1(i),r=$d(),o=!0;const c=y=>(p,v)=>{const b=Aa(i,v,y==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:w,transitionEnd:z,...B}=b;p={...p,...B,...z}}return p};function h(y){l=y(i)}function d(y){const{props:p}=i,v=Wd(i.parent)||{},b=[],w=new Set;let z={},B=1/0;for(let N=0;NB&&J,it=!1;const Mt=Array.isArray(j)?j:[j];let Bt=Mt.reduce(c(L),{});P===!1&&(Bt={});const{prevResolvedValues:Yt={}}=k,Ge={...Yt,...Bt},ze=H=>{Z=!0,w.has(H)&&(it=!0,w.delete(H)),k.needsAnimating[H]=!0;const F=i.getValue(H);F&&(F.liveStyle=!1)};for(const H in Ge){const F=Bt[H],ft=Yt[H];if(z.hasOwnProperty(H))continue;let pt=!1;Ir(F)&&Ir(ft)?pt=!Pd(F,ft):pt=F!==ft,pt?F!=null?ze(H):w.add(H):F!==void 0&&w.has(H)?ze(H):k.protectedKeys[H]=!0}k.prevProp=j,k.prevResolvedValues=Bt,k.isActive&&(z={...z,...Bt}),o&&i.blockInitialAnimation&&(Z=!1);const re=nt&&$;Z&&(!re||it)&&b.push(...Mt.map(H=>{const F={type:L};if(typeof H=="string"&&o&&!re&&i.manuallyAnimateOnMount&&i.parent){const{parent:ft}=i,pt=Aa(ft,H);if(ft.enteringChildren&&pt){const{delayChildren:T}=pt.transition||{};F.delay=id(ft.enteringChildren,i,T)}}return{animation:H,options:F}}))}if(w.size){const N={};if(typeof p.initial!="boolean"){const L=Aa(i,Array.isArray(p.initial)?p.initial[0]:p.initial);L&&L.transition&&(N.transition=L.transition)}w.forEach(L=>{const k=i.getBaseTarget(L),j=i.getValue(L);j&&(j.liveStyle=!0),N[L]=k??null}),b.push({animation:N})}let Y=!!b.length;return o&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),o=!1,Y?l(b):Promise.resolve()}function g(y,p){if(r[y].isActive===p)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(y,p)),r[y].isActive=p;const v=d(y);for(const b in r)r[b].protectedKeys={};return v}return{animateChanges:d,setActive:g,setAnimateFunction:h,getState:()=>r,reset:()=>{r=$d()}}}function l1(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Pd(l,i):!1}function ta(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $d(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}function Id(i,l){i.min=l.min,i.max=l.max}function qe(i,l){Id(i.x,l.x),Id(i.y,l.y)}function th(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const eh=1e-4,s1=1-eh,r1=1+eh,nh=.01,o1=0-nh,u1=0+nh;function ie(i){return i.max-i.min}function c1(i,l,r){return Math.abs(i-l)<=r}function ah(i,l,r,o=.5){i.origin=o,i.originPoint=Ot(l.min,l.max,i.origin),i.scale=ie(r)/ie(l),i.translate=Ot(r.min,r.max,i.origin)-i.originPoint,(i.scale>=s1&&i.scale<=r1||isNaN(i.scale))&&(i.scale=1),(i.translate>=o1&&i.translate<=u1||isNaN(i.translate))&&(i.translate=0)}function Mi(i,l,r,o){ah(i.x,l.x,r.x,o?o.originX:void 0),ah(i.y,l.y,r.y,o?o.originY:void 0)}function ih(i,l,r){i.min=r.min+l.min,i.max=i.min+ie(l)}function f1(i,l,r){ih(i.x,l.x,r.x),ih(i.y,l.y,r.y)}function lh(i,l,r){i.min=l.min-r.min,i.max=i.min+ie(l)}function Nl(i,l,r){lh(i.x,l.x,r.x),lh(i.y,l.y,r.y)}function sh(i,l,r,o,c){return i-=l,i=Bl(i,1/r,o),c!==void 0&&(i=Bl(i,1/c,o)),i}function d1(i,l=0,r=1,o=.5,c,h=i,d=i){if(Ke.test(l)&&(l=parseFloat(l),l=Ot(d.min,d.max,l/100)-d.min),typeof l!="number")return;let g=Ot(h.min,h.max,o);i===h&&(g-=l),i.min=sh(i.min,l,r,g,c),i.max=sh(i.max,l,r,g,c)}function rh(i,l,[r,o,c],h,d){d1(i,l[r],l[o],l[c],l.scale,h,d)}const h1=["x","scaleX","originX"],m1=["y","scaleY","originY"];function oh(i,l,r,o){rh(i.x,l,h1,r?r.x:void 0,o?o.x:void 0),rh(i.y,l,m1,r?r.y:void 0,o?o.y:void 0)}function uh(i){return i.translate===0&&i.scale===1}function ch(i){return uh(i.x)&&uh(i.y)}function fh(i,l){return i.min===l.min&&i.max===l.max}function p1(i,l){return fh(i.x,l.x)&&fh(i.y,l.y)}function dh(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function hh(i,l){return dh(i.x,l.x)&&dh(i.y,l.y)}function mh(i){return ie(i.x)/ie(i.y)}function ph(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function De(i){return[i("x"),i("y")]}function g1(i,l,r){let o="";const c=i.x.translate/l.x,h=i.y.translate/l.y,d=r?.z||0;if((c||h||d)&&(o=`translate3d(${c}px, ${h}px, ${d}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:w,skewX:z,skewY:B}=r;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),b&&(o+=`rotateX(${b}deg) `),w&&(o+=`rotateY(${w}deg) `),z&&(o+=`skewX(${z}deg) `),B&&(o+=`skewY(${B}deg) `)}const g=i.x.scale*l.x,y=i.y.scale*l.y;return(g!==1||y!==1)&&(o+=`scale(${g}, ${y})`),o||"none"}const gh=["TopLeft","TopRight","BottomLeft","BottomRight"],y1=gh.length,yh=i=>typeof i=="string"?parseFloat(i):i,vh=i=>typeof i=="number"||Q.test(i);function v1(i,l,r,o,c,h){c?(i.opacity=Ot(0,r.opacity??1,b1(o)),i.opacityExit=Ot(l.opacity??1,0,x1(o))):h&&(i.opacity=Ot(l.opacity??1,r.opacity??1,o));for(let d=0;dol?1:r(gi(i,l,o))}function w1(i,l,r){const o=ne(i)?i:Ea(i);return o.start(Pr("",o,l,r)),o.animation}function Di(i,l,r,o={passive:!0}){return i.addEventListener(l,r,o),()=>i.removeEventListener(l,r)}const S1=(i,l)=>i.depth-l.depth;class T1{constructor(){this.children=[],this.isDirty=!1}add(l){gr(this.children,l),this.isDirty=!0}remove(l){yr(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(S1),this.isDirty=!1,this.children.forEach(l)}}function A1(i,l){const r=ae.now(),o=({timestamp:c})=>{const h=c-r;h>=l&&(xn(o),i(h-l))};return Dt.setup(o,!0),()=>xn(o)}function jl(i){return ne(i)?i.get():i}class E1{constructor(){this.members=[]}add(l){gr(this.members,l),l.scheduleRender()}remove(l){if(yr(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(l){const r=this.members.findIndex(c=>l===c);if(r===0)return!1;let o;for(let c=r;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(l,r){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender();const c=o.options.layoutDependency,h=l.options.layoutDependency;c!==void 0&&h!==void 0&&c===h||(l.resumeFrom=o,r&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0));const{crossfade:g}=l.options;g===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:o}=l;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ll={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bo=["","X","Y","Z"],M1=1e3;let D1=0;function xo(i,l,r,o){const{latestValues:c}=l;c[i]&&(r[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function wh(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const r=cd(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:h}=i.options;window.MotionCancelOptimisedAnimation(r,"transform",Dt,!(c||h))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&wh(o)}function Sh({attachResizeListener:i,defaultParent:l,measureScroll:r,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},g=l?.()){this.id=D1++,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(R1),this.nodes.forEach(U1),this.nodes.forEach(B1),this.nodes.forEach(O1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;ythis.root.updateBlockedByResize=!1;Dt.read(()=>{b=window.innerWidth}),i(d,()=>{const z=window.innerWidth;z!==b&&(b=z,this.root.updateBlockedByResize=!0,v&&v(),v=A1(w,250),Ll.hasAnimatedSinceResize&&(Ll.hasAnimatedSinceResize=!1,this.nodes.forEach(Eh)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:w,layout:z})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const B=this.options.transition||p.getDefaultTransition()||Y1,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:N}=p.getProps(),L=!this.targetLayout||!hh(this.targetLayout,z),k=!b&&w;if(this.options.layoutRoot||this.resumeFrom||k||b&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...Wr(B,"layout"),onPlay:Y,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(v,k)}else b||Eh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=z})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xn(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(N1),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wh(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&&!ie(this.snapshot.measuredBox.x)&&!ie(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 P=J/1e3;Mh(b.x,d.x,P),Mh(b.y,d.y,P),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nl(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),L1(this.relativeTarget,this.relativeTargetOrigin,w,P),j&&p1(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=Qt()),qe(j,this.relativeTarget)),Y&&(this.animationValues=v,v1(v,p,this.latestValues,P,k,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dt.update(()=>{Ll.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ea(0)),this.currentAnimation=w1(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(M1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:v}=d;if(!(!g||!y||!p)){if(this!==d&&this.layout&&p&&Oh(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Qt();const b=ie(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+b;const w=ie(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+w}qe(g,y),Ca(g,v),Mi(this.projectionDeltaWithTransform,this.layoutCorrected,g,v)}}registerSharedNode(d,g){this.sharedNodes.has(d)||this.sharedNodes.set(d,new E1),this.sharedNodes.get(d).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let g=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&xo("z",d,p,this.animationValues);for(let v=0;vd.currentAnimation?.stop()),this.root.nodes.forEach(Th),this.root.sharedNodes.clear()}}}function C1(i){i.updateLayout()}function z1(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=i.layout,{animationType:c}=i.options,h=l.source!==i.layout.source;c==="size"?De(v=>{const b=h?l.measuredBox[v]:l.layoutBox[v],w=ie(b);b.min=r[v].min,b.max=b.min+w}):Oh(c,l.layoutBox,r)&&De(v=>{const b=h?l.measuredBox[v]:l.layoutBox[v],w=ie(r[v]);b.max=b.min+w,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+w)});const d=Ma();Mi(d,r,l.layoutBox);const g=Ma();h?Mi(g,i.applyTransform(o,!0),l.measuredBox):Mi(g,r,l.layoutBox);const y=!ch(d);let p=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:w}=v;if(b&&w){const z=Qt();Nl(z,l.layoutBox,b.layoutBox);const B=Qt();Nl(B,r,w.layoutBox),hh(z,B)||(p=!0),v.options.layoutRoot&&(i.relativeTarget=B,i.relativeTargetOrigin=z,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:g,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(i.isLead()){const{onExitComplete:r}=i.options;r&&r()}i.options.transition=void 0}function R1(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function O1(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function V1(i){i.clearSnapshot()}function Th(i){i.clearMeasurements()}function Ah(i){i.isLayoutDirty=!1}function _1(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Eh(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function U1(i){i.resolveTargetDelta()}function B1(i){i.calcProjection()}function N1(i){i.resetSkewAndRotation()}function j1(i){i.removeLeadSnapshot()}function Mh(i,l,r){i.translate=Ot(l.translate,0,r),i.scale=Ot(l.scale,1,r),i.origin=l.origin,i.originPoint=l.originPoint}function Dh(i,l,r,o){i.min=Ot(l.min,r.min,o),i.max=Ot(l.max,r.max,o)}function L1(i,l,r,o){Dh(i.x,l.x,r.x,o),Dh(i.y,l.y,r.y,o)}function H1(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const Y1={duration:.45,ease:[.4,0,.1,1]},Ch=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),zh=Ch("applewebkit/")&&!Ch("chrome/")?Math.round:Ee;function Rh(i){i.min=zh(i.min),i.max=zh(i.max)}function q1(i){Rh(i.x),Rh(i.y)}function Oh(i,l,r){return i==="position"||i==="preserve-aspect"&&!c1(mh(l),mh(r),.2)}function G1(i){return i!==i.root&&i.scroll?.wasRoot}const k1=Sh({attachResizeListener:(i,l)=>Di(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),wo={current:void 0},Vh=Sh({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!wo.current){const i=new k1({});i.mount(window),i.setOptions({layoutScroll:!0}),wo.current=i}return wo.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),So=q.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function _h(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function X1(...i){return l=>{let r=!1;const o=i.map(c=>{const h=_h(c,l);return!r&&typeof h=="function"&&(r=!0),h});if(r)return()=>{for(let c=0;c{const{width:b,height:w,top:z,left:B,right:Y,bottom:N}=g.current;if(l||!d.current||!b||!w)return;const L=r==="left"?`left: ${B}`:`right: ${Y}`,k=o==="bottom"?`bottom: ${N}`:`top: ${z}`;d.current.dataset.motionPopId=h;const j=document.createElement("style");y&&(j.nonce=y);const J=c??document.head;return J.appendChild(j),j.sheet&&j.sheet.insertRule(` [data-motion-pop-id="${h}"] { position: absolute !important; width: ${b}px !important; height: ${w}px !important; ${L}px !important; ${k}px !important; } `),()=>{J.contains(j)&&J.removeChild(j)}},[l]),tt.jsx(Z1,{isPresent:l,childRef:d,sizeRef:g,children:q.cloneElement(i,{ref:v})})}const J1=({children:i,initial:l,isPresent:r,onExitComplete:o,custom:c,presenceAffectsLayout:h,mode:d,anchorX:g,anchorY:y,root:p})=>{const v=pr(F1),b=q.useId();let w=!0,z=q.useMemo(()=>(w=!1,{id:b,initial:l,isPresent:r,custom:c,onExitComplete:B=>{v.set(B,!0);for(const Y of v.values())if(!Y)return;o&&o()},register:B=>(v.set(B,!1),()=>v.delete(B))}),[r,v,o]);return h&&w&&(z={...z}),q.useMemo(()=>{v.forEach((B,Y)=>v.set(Y,!1))},[r]),q.useEffect(()=>{!r&&!v.size&&o&&o()},[r]),d==="popLayout"&&(i=tt.jsx(K1,{isPresent:r,anchorX:g,anchorY:y,root:p,children:i})),tt.jsx(Al.Provider,{value:z,children:i})};function F1(){return new Map}function Uh(i=!0){const l=q.useContext(Al);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:c}=l,h=q.useId();q.useEffect(()=>{if(i)return c(h)},[i]);const d=q.useCallback(()=>i&&o&&o(h),[h,o,i]);return!r&&o?[!1,d]:[!0]}const Hl=i=>i.key||"";function Bh(i){const l=[];return q.Children.forEach(i,r=>{q.isValidElement(r)&&l.push(r)}),l}const W1=({children:i,custom:l,initial:r=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:g="left",anchorY:y="top",root:p})=>{const[v,b]=Uh(d),w=q.useMemo(()=>Bh(i),[i]),z=d&&!v?[]:w.map(Hl),B=q.useRef(!0),Y=q.useRef(w),N=pr(()=>new Map),L=q.useRef(new Set),[k,j]=q.useState(w),[J,P]=q.useState(w);ff(()=>{B.current=!1,Y.current=w;for(let Z=0;Z{const it=Hl(Z),Mt=d&&!v?!1:w===J||z.includes(it),Bt=()=>{if(L.current.has(it))return;if(L.current.add(it),N.has(it))N.set(it,!0);else return;let Yt=!0;N.forEach(Ge=>{Ge||(Yt=!1)}),Yt&&($?.(),P(Y.current),d&&b?.(),o&&o())};return tt.jsx(J1,{isPresent:Mt,initial:!B.current||r?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:Mt?void 0:Bt,anchorX:g,anchorY:y,children:Z},it)})})},Nh=q.createContext({strict:!1}),jh={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 Lh=!1;function P1(){if(Lh)return;const i={};for(const l in jh)i[l]={isEnabled:r=>jh[l].some(o=>!!r[o])};Vd(i),Lh=!0}function Hh(){return P1(),Nb()}function $1(i){const l=Hh();for(const r in i)l[r]={...l[r],...i[r]};Vd(l)}const I1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yl(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||I1.has(i)}let Yh=i=>!Yl(i);function tx(i){typeof i=="function"&&(Yh=l=>l.startsWith("on")?!Yl(l):i(l))}try{tx(require("@emotion/is-prop-valid").default)}catch{}function ex(i,l,r){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(Yh(c)||r===!0&&Yl(c)||!l&&!Yl(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const ql=q.createContext({});function nx(i,l){if(_l(i)){const{initial:r,animate:o}=i;return{initial:r===!1||Ai(r)?r:void 0,animate:Ai(o)?o:void 0}}return i.inherit!==!1?l:{}}function ax(i){const{initial:l,animate:r}=nx(i,q.useContext(ql));return q.useMemo(()=>({initial:l,animate:r}),[qh(l),qh(r)])}function qh(i){return Array.isArray(i)?i.join(" "):i}const To=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(i,l,r){for(const o in l)!ne(l[o])&&!Qd(o,r)&&(i[o]=l[o])}function ix({transformTemplate:i},l){return q.useMemo(()=>{const r=To();return go(r,l,i),Object.assign({},r.vars,r.style)},[l])}function lx(i,l){const r=i.style||{},o={};return Gh(o,r,i),Object.assign(o,ix(i,l)),o}function sx(i,l){const r={},o=lx(i,l);return i.drag&&i.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(r.tabIndex=0),r.style=o,r}const kh=()=>({...To(),attrs:{}});function rx(i,l,r,o){const c=q.useMemo(()=>{const h=kh();return Zd(h,l,Jd(o),i.transformTemplate,i.style),{...h.attrs,style:{...h.style}}},[l]);if(i.style){const h={};Gh(h,i.style,i),c.style={...h,...c.style}}return c}const ox=["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 Ao(i){return typeof i!="string"||i.includes("-")?!1:!!(ox.indexOf(i)>-1||/[A-Z]/u.test(i))}function ux(i,l,r,{latestValues:o},c,h=!1,d){const y=(d??Ao(i)?rx:sx)(l,o,c,i),p=ex(l,typeof i=="string",h),v=i!==q.Fragment?{...p,...y,ref:r}:{},{children:b}=l,w=q.useMemo(()=>ne(b)?b.get():b,[b]);return q.createElement(i,{...v,children:w})}function cx({scrapeMotionValuesFromProps:i,createRenderState:l},r,o,c){return{latestValues:fx(r,o,c,i),renderState:l()}}function fx(i,l,r,o){const c={},h=o(i,{});for(const w in h)c[w]=jl(h[w]);let{initial:d,animate:g}=i;const y=_l(i),p=Rd(i);l&&p&&!y&&i.inherit!==!1&&(d===void 0&&(d=l.initial),g===void 0&&(g=l.animate));let v=r?r.initial===!1:!1;v=v||d===!1;const b=v?g:d;if(b&&typeof b!="boolean"&&!Vl(b)){const w=Array.isArray(b)?b:[b];for(let z=0;z(l,r)=>{const o=q.useContext(ql),c=q.useContext(Al),h=()=>cx(i,l,o,c);return r?h():pr(h)},dx=Xh({scrapeMotionValuesFromProps:vo,createRenderState:To}),hx=Xh({scrapeMotionValuesFromProps:Fd,createRenderState:kh}),mx=Symbol.for("motionComponentSymbol");function px(i,l,r){const o=q.useRef(r);q.useInsertionEffect(()=>{o.current=r});const c=q.useRef(null);return q.useCallback(h=>{h&&i.onMount?.(h),l&&(h?l.mount(h):l.unmount());const d=o.current;if(typeof d=="function")if(h){const g=d(h);typeof g=="function"&&(c.current=g)}else c.current?(c.current(),c.current=null):d(h);else d&&(d.current=h)},[l])}const Qh=q.createContext({});function Ci(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function gx(i,l,r,o,c,h){const{visualElement:d}=q.useContext(ql),g=q.useContext(Nh),y=q.useContext(Al),p=q.useContext(So).reducedMotion,v=q.useRef(null),b=q.useRef(!1);o=o||g.renderer,!v.current&&o&&(v.current=o(i,{visualState:l,parent:d,props:r,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:p,isSVG:h}),b.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const w=v.current,z=q.useContext(Qh);w&&!w.projection&&c&&(w.type==="html"||w.type==="svg")&&yx(v.current,r,c,z);const B=q.useRef(!1);q.useInsertionEffect(()=>{w&&B.current&&w.update(r,y)});const Y=r[ud],N=q.useRef(!!Y&&!window.MotionHandoffIsComplete?.(Y)&&window.MotionHasOptimisedAnimation?.(Y));return ff(()=>{b.current=!0,w&&(B.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),N.current&&w.animationState&&w.animationState.animateChanges())}),q.useEffect(()=>{w&&(!N.current&&w.animationState&&w.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Y)}),N.current=!1),w.enteringChildren=void 0)}),w}function yx(i,l,r,o){const{layoutId:c,layout:h,drag:d,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=l;i.projection=new r(i.latestValues,l["data-framer-portal-id"]?void 0:Zh(i.parent)),i.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||g&&Ci(g),visualElement:i,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:y,layoutRoot:p})}function Zh(i){if(i)return i.options.allowProjection!==!1?i.projection:Zh(i.parent)}function Eo(i,{forwardMotionProps:l=!1,type:r}={},o,c){o&&$1(o);const h=r?r==="svg":Ao(i),d=h?hx:dx;function g(p,v){let b;const w={...q.useContext(So),...p,layoutId:vx(p)},{isStatic:z}=w,B=ax(p),Y=d(p,z);if(!z&&cf){bx();const N=xx(w);b=N.MeasureLayout,B.visualElement=gx(i,Y,w,c,N.ProjectionNode,h)}return tt.jsxs(ql.Provider,{value:B,children:[b&&B.visualElement?tt.jsx(b,{visualElement:B.visualElement,...w}):null,ux(i,p,px(Y,B.visualElement,v),Y,z,l,h)]})}g.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const y=q.forwardRef(g);return y[mx]=i,y}function vx({layoutId:i}){const l=q.useContext(mr).id;return l&&i!==void 0?l+"-"+i:i}function bx(i,l){q.useContext(Nh).strict}function xx(i){const l=Hh(),{drag:r,layout:o}=l;if(!r&&!o)return{};const c={...r,...o};return{MeasureLayout:r?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function wx(i,l){if(typeof Proxy>"u")return Eo;const r=new Map,o=(h,d)=>Eo(h,d,i,l),c=(h,d)=>o(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?o:(r.has(d)||r.set(d,Eo(d,void 0,i,l)),r.get(d))})}const Sx=(i,l)=>l.isSVG??Ao(i)?new Ib(l):new Kb(l,{allowProjection:i!==q.Fragment});class Tx extends An{constructor(l){super(l),l.animationState||(l.animationState=i1(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Vl(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:r}=this.node.prevProps||{};l!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ax=0;class Ex extends An{constructor(){super(...arguments),this.id=Ax++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);r&&!l&&c.then(()=>{r(this.id)})}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const Mx={animation:{Feature:Tx},exit:{Feature:Ex}};function zi(i){return{point:{x:i.pageX,y:i.pageY}}}const Dx=i=>l=>ro(l)&&i(l,zi(l));function Ri(i,l,r,o){return Di(i,l,Dx(r),o)}const Kh=({current:i})=>i?i.ownerDocument.defaultView:null,Jh=(i,l)=>Math.abs(i-l);function Cx(i,l){const r=Jh(i.x,l.x),o=Jh(i.y,l.y);return Math.sqrt(r**2+o**2)}const Fh=new Set(["auto","scroll"]);class Wh{constructor(l,r,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=z=>{this.handleScroll(z.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=Do(this.lastMoveEventInfo,this.history),B=this.startEvent!==null,Y=Cx(z.offset,{x:0,y:0})>=this.distanceThreshold;if(!B&&!Y)return;const{point:N}=z,{timestamp:L}=Ft;this.history.push({...N,timestamp:L});const{onStart:k,onMove:j}=this.handlers;B||(k&&k(this.lastMoveEvent,z),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,z)},this.handlePointerMove=(z,B)=>{this.lastMoveEvent=z,this.lastMoveEventInfo=Mo(B,this.transformPagePoint),Dt.update(this.updatePoint,!0)},this.handlePointerUp=(z,B)=>{this.end();const{onEnd:Y,onSessionEnd:N,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Do(z.type==="pointercancel"?this.lastMoveEventInfo:Mo(B,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(z,k),N&&N(z,k)},!ro(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const y=zi(l),p=Mo(y,this.transformPagePoint),{point:v}=p,{timestamp:b}=Ft;this.history=[{...v,timestamp:b}];const{onSessionStart:w}=r;w&&w(l,Do(p,this.history)),this.removeListeners=pi(Ri(this.contextWindow,"pointermove",this.handlePointerMove),Ri(this.contextWindow,"pointerup",this.handlePointerUp),Ri(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(l){let r=l.parentElement;for(;r;){const o=getComputedStyle(r);(Fh.has(o.overflowX)||Fh.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const r=this.scrollPositions.get(l);if(!r)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:c.x-r.x,y:c.y-r.y};h.x===0&&h.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,c),Dt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),xn(this.updatePoint)}}function Mo(i,l){return l?{point:l(i.point)}:i}function Ph(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Do({point:i},l){return{point:i,delta:Ph(i,$h(l)),offset:Ph(i,zx(l)),velocity:Rx(l,.1)}}function zx(i){return i[0]}function $h(i){return i[i.length-1]}function Rx(i,l){if(i.length<2)return{x:0,y:0};let r=i.length-1,o=null;const c=$h(i);for(;r>=0&&(o=i[r],!(c.timestamp-o.timestamp>tn(l)));)r--;if(!o)return{x:0,y:0};const h=Me(c.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-o.x)/h,y:(c.y-o.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function Ox(i,{min:l,max:r},o){return l!==void 0&&ir&&(i=o?Ot(r,i,o.max):Math.min(i,r)),i}function Ih(i,l,r){return{min:l!==void 0?i.min+l:void 0,max:r!==void 0?i.max+r-(i.max-i.min):void 0}}function Vx(i,{top:l,left:r,bottom:o,right:c}){return{x:Ih(i.x,r,c),y:Ih(i.y,l,o)}}function tm(i,l){let r=l.min-i.min,o=l.max-i.max;return l.max-l.mino?r=gi(l.min,l.max-o,i.min):o>c&&(r=gi(i.min,i.max-c,l.min)),Ze(0,1,r)}function Bx(i,l){const r={};return l.min!==void 0&&(r.min=l.min-i.min),l.max!==void 0&&(r.max=l.max-i.min),r}const Co=.35;function Nx(i=Co){return i===!1?i=0:i===!0&&(i=Co),{x:em(i,"left","right"),y:em(i,"top","bottom")}}function em(i,l,r){return{min:nm(i,l),max:nm(i,r)}}function nm(i,l){return typeof i=="number"?i:i[l]||0}const jx=new WeakMap;class Lx{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{r?(this.stopAnimation(),this.snapToCursor(zi(b).point)):this.pauseAnimation()},d=(b,w)=>{this.stopAnimation();const{drag:z,dragPropagation:B,onDragStart:Y}=this.getProps();if(z&&!B&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ab(z),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),De(L=>{let k=this.getAxisMotionValue(L).get()||0;if(Ke.test(k)){const{projection:j}=this.visualElement;if(j&&j.layout){const J=j.layout.layoutBox[L];J&&(k=ie(J)*(parseFloat(k)/100))}}this.originPoint[L]=k}),Y&&Dt.postRender(()=>Y(b,w)),to(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},g=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w;const{dragPropagation:z,dragDirectionLock:B,onDirectionLock:Y,onDrag:N}=this.getProps();if(!z&&!this.openDragLock)return;const{offset:L}=w;if(B&&this.currentDirection===null){this.currentDirection=Hx(L),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",w.point,L),this.updateAxis("y",w.point,L),this.visualElement.render(),N&&N(b,w)},y=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w,this.stop(b,w),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>De(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new Wh(l,{onSessionStart:h,onStart:d,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Kh(this.visualElement),element:this.visualElement.current})}stop(l,r){const o=l||this.latestPointerEvent,c=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!o)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:g}=this.getProps();g&&Dt.postRender(()=>g(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:r}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,r,o){const{drag:c}=this.getProps();if(!o||!Gl(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let d=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(d=Ox(d,this.constraints[l],this.elastic[l])),h.set(d)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&Ci(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Vx(o.layoutBox,l):this.constraints=!1,this.elastic=Nx(r),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&De(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=Bx(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!Ci(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=qb(o,c.root,this.visualElement.getTransformPagePoint());let d=_x(c.layout.layoutBox,h);if(r){const g=r(Lb(d));this.hasMutatedConstraints=!!g,g&&(d=Ud(g))}return d}startAnimation(l){const{drag:r,dragMomentum:o,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=De(v=>{if(!Gl(v,r,this.currentDirection))return;let b=y&&y[v]||{};d&&(b={min:0,max:0});const w=c?200:1e6,z=c?40:1e7,B={type:"inertia",velocity:o?l[v]:0,bounceStiffness:w,bounceDamping:z,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(v,B)});return Promise.all(p).then(g)}startAxisValueAnimation(l,r){const o=this.getAxisMotionValue(l);return to(this.visualElement,l),o.start(Pr(l,o,0,r,this.visualElement,!1))}stopAnimation(){De(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){De(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[r];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){De(r=>{const{drag:o}=this.getProps();if(!Gl(r,o,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(r);if(c&&c.layout){const{min:d,max:g}=c.layout.layoutBox[r],y=h.get()||0;h.set(l[r]-Ot(d,g,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Ci(r)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};De(d=>{const g=this.getAxisMotionValue(d);if(g&&this.constraints!==!1){const y=g.get();c[d]=Ux({min:y,max:y},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),De(d=>{if(!Gl(d,l,null))return;const g=this.getAxisMotionValue(d),{min:y,max:p}=this.constraints[d];g.set(Ot(y,p,c[d]))})}addListeners(){if(!this.visualElement.current)return;jx.set(this.visualElement,this);const l=this.visualElement.current,r=Ri(l,"pointerdown",y=>{const{drag:p,dragListener:v=!0}=this.getProps(),b=y.target,w=b!==l&&Td(b);p&&v&&!w&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();Ci(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Dt.read(o);const d=Di(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:p})=>{this.isDragging&&p&&(De(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=y[v].translate,b.set(b.get()+y[v].translate))}),this.visualElement.render())}));return()=>{d(),r(),h(),g&&g()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=Co,dragMomentum:g=!0}=l;return{...l,drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:g}}}function Gl(i,l,r){return(l===!0||l===i)&&(r===null||r===i)}function Hx(i,l=10){let r=null;return Math.abs(i.y)>l?r="y":Math.abs(i.x)>l&&(r="x"),r}class Yx extends An{constructor(l){super(l),this.removeGroupControls=Ee,this.removeListeners=Ee,this.controls=new Lx(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ee}update(){const{dragControls:l}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};l!==r&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const am=i=>(l,r)=>{i&&Dt.postRender(()=>i(l,r))};class qx extends An{constructor(){super(...arguments),this.removePointerDownListener=Ee}onPointerDown(l){this.session=new Wh(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kh(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:am(l),onStart:am(r),onMove:o,onEnd:(h,d)=>{delete this.session,c&&Dt.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Ri(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let zo=!1;class Gx extends q.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o,layoutId:c}=this.props,{projection:h}=l;h&&(r.group&&r.group.add(h),o&&o.register&&c&&o.register(h),zo&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ll.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:o,drag:c,isPresent:h}=this.props,{projection:d}=o;return d&&(d.isPresent=h,l.layoutDependency!==r&&d.setOptions({...d.options,layoutDependency:r}),zo=!0,c||l.layoutDependency!==r||r===void 0||l.isPresent!==h?d.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?d.promote():d.relegate()||Dt.postRender(()=>{const g=d.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),so.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:c}=l;zo=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function im(i){const[l,r]=Uh(),o=q.useContext(mr);return tt.jsx(Gx,{...i,layoutGroup:o,switchLayoutGroup:q.useContext(Qh),isPresent:l,safeToRemove:r})}const kx={pan:{Feature:qx},drag:{Feature:Yx,ProjectionNode:Vh,MeasureLayout:im}};function lm(i,l,r){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,h=o[c];h&&Dt.postRender(()=>h(l,zi(l)))}class Xx extends An{mount(){const{current:l}=this.node;l&&(this.unmount=Eb(l,(r,o)=>(lm(this.node,o,"Start"),c=>lm(this.node,c,"End"))))}unmount(){}}class Qx extends An{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pi(Di(this.node.current,"focus",()=>this.onFocus()),Di(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sm(i,l,r){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),h=o[c];h&&Dt.postRender(()=>h(l,zi(l)))}class Zx extends An{mount(){const{current:l}=this.node;l&&(this.unmount=Cb(l,(r,o)=>(sm(this.node,o,"Start"),(c,{success:h})=>sm(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ro=new WeakMap,Oo=new WeakMap,Kx=i=>{const l=Ro.get(i.target);l&&l(i)},Jx=i=>{i.forEach(Kx)};function Fx({root:i,...l}){const r=i||document;Oo.has(r)||Oo.set(r,{});const o=Oo.get(r),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(Jx,{root:i,...l})),o[c]}function Wx(i,l,r){const o=Fx(l);return Ro.set(i,r),o.observe(i),()=>{Ro.delete(i),o.unobserve(i)}}const Px={some:0,all:1};class $x extends An{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:r,margin:o,amount:c="some",once:h}=l,d={root:r?r.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:Px[c]},g=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,h&&!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(),w=p?v:b;w&&w(y)};return Wx(this.node.current,d,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some(Ix(l,r))&&this.startObserver()}unmount(){}}function Ix({viewport:i={}},{viewport:l={}}={}){return r=>i[r]!==l[r]}const tw={...Mx,...{inView:{Feature:$x},tap:{Feature:Zx},focus:{Feature:Qx},hover:{Feature:Xx}},...kx,...{layout:{ProjectionNode:Vh,MeasureLayout:im}}},Je=wx(tw,Sx);function rm(i){var l,r,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(l=0;l0&&tt.jsx(Je.div,{className:"mt-3 space-y-2",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:r.map((g,y)=>tt.jsx(iw,{citation:g,index:y},y))})]})})}function iw({citation:i,index:l}){return tt.jsxs(Je.div,{className:Ce("flex items-start gap-2 p-2 rounded-[var(--radius-md)]","bg-[var(--color-surface-white)] border border-[var(--color-surface-gray-200)]","hover:border-[var(--color-brand-primary)] transition-colors cursor-pointer"),initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:l*.1},children:[tt.jsx("span",{className:Ce("flex-shrink-0 w-5 h-5 rounded-full text-xs font-medium","bg-[var(--color-brand-primary)] text-white","flex items-center justify-center"),children:l+1}),tt.jsxs("div",{className:"flex-1 min-w-0",children:[tt.jsx("p",{className:"text-sm text-[var(--color-text-primary)] leading-snug",children:i.text}),tt.jsx("p",{className:"mt-0.5 text-xs text-[var(--color-text-muted)]",children:i.source})]})]})}function lw(){return tt.jsx(Je.div,{className:"flex justify-start",initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:tt.jsx("div",{className:"chat-bubble-assistant rounded-[var(--radius-lg)] rounded-bl-[var(--radius-sm)] px-4 py-3",children:tt.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(i=>tt.jsx(Je.span,{className:"w-2 h-2 rounded-full bg-[var(--color-text-muted)]",animate:{y:[0,-4,0]},transition:{duration:.6,repeat:1/0,delay:i*.1}},i))})})})}const sw={initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},hover:{scale:1.05,y:-2},tap:{scale:.95}},rw={summarise:{user:"Can you check if the new UK landing page is compliant with our cookie and tracking policies?",assistant:"I’ve reviewed the UK landing page against your cookie compliance policy and UK GDPR requirements. One unknown cookie was detected, and the banner is present but does not block non-essential cookies before consent. Recommended actions: classify the unknown cookie, update the banner to block non-essential cookies before consent, then re-run the scan.",citations:[{text:"1 unknown cookie detected",source:"UK landing page scan"},{text:"Non-essential cookies not blocked before consent",source:"Cookie compliance policy"},{text:"Privacy policy link is correctly included",source:"Page compliance review"}]},discuss:{user:"Help me create a report showing the most recently registered assets in the US, and tell me where repeat offenders are trending.",assistant:"I found 42 newly registered US digital assets this month. Repeat issues are concentrated in two business units: 11 assets missing cookie classifications and 7 assets with outdated FDA link references.",citations:[{text:"42 newly registered US assets",source:"Digital asset register"},{text:"Repeat issues: cookie classification and FDA links",source:"Compliance issue history"}]},evaluate:{user:"Which compliance alerts actually need my attention today?",assistant:"You have 37 open alerts, but only 4 need immediate attention today: one critical cookie consent issue on the UK site, one outdated FDA link on a US product page, and two high-priority assets missing ownership.",citations:[{text:"4 urgent alerts; 33 routine admin items",source:"Risk prioritisation model"}]}},Vo=[{label:"Check",icon:"📝"},{label:"Report",icon:"💬"},{label:"Prioritise",icon:"⚖️"}],_o={Check:"summarise",Report:"discuss",Prioritise:"evaluate"},ow={default:` bg-[var(--color-surface-gray-100)] text-[var(--color-text-primary)] border border-[var(--color-surface-gray-200)] hover:bg-[var(--color-surface-gray-200)] `,primary:` bg-[var(--color-brand-primary)] text-white border border-transparent hover:bg-[var(--color-brand-primary-dark)] `,cta:` bg-[var(--color-accent-cta)] text-white border border-transparent hover:bg-[var(--color-accent-cta-hover)] shadow-[var(--shadow-glow-brand)] `,outline:` bg-transparent text-[var(--color-text-primary)] border border-[var(--color-surface-gray-300)] hover:bg-[var(--color-surface-gray-100)] `,ghost:` bg-transparent text-[var(--color-text-secondary)] border border-transparent hover:bg-[var(--color-surface-gray-100)] `},uw={sm:"px-3 py-1.5 text-sm gap-1.5",md:"px-4 py-2 text-base gap-2",lg:"px-6 py-3 text-lg gap-2.5"},cw=` ring-2 ring-[var(--color-brand-primary)] ring-offset-2 `;function fw({children:i,variant:l="default",size:r="md",icon:o,iconPosition:c="left",isActive:h=!1,className:d,...g}){return tt.jsxs(Je.button,{className:Ce("inline-flex items-center justify-center rounded-full font-medium","transition-colors cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-brand-primary)] focus-visible:ring-offset-2",ow[l],uw[r],h&&cw,d),variants:sw,initial:"initial",animate:"animate",whileHover:"hover",whileTap:"tap",...g,children:[o&&c==="left"&&tt.jsx("span",{className:"flex-shrink-0",children:o}),i,o&&c==="right"&&tt.jsx("span",{className:"flex-shrink-0",children:o})]})}function dw({children:i,className:l,staggerDelay:r=.1}){return tt.jsx(Je.div,{className:Ce("flex flex-wrap gap-2",l),initial:"initial",animate:"animate",variants:{animate:{transition:{staggerChildren:r}}},children:i})}function hw({className:i,autoPlay:l=!0,loop:r=!0}){const[o,c]=q.useState("idle"),[h,d]=q.useState(""),[g,y]=q.useState(null),[p,v]=q.useState("summarise"),b=q.useRef(!1),w=rw[p],z=q.useCallback(()=>{c("idle"),d("")},[]),B=q.useCallback(N=>{z(),N&&(v(N),y(Vo.find(L=>_o[L.label]===N)?.label??null)),setTimeout(()=>c("userTyping"),500)},[z]),Y=q.useCallback(N=>{const L=_o[N];L&&(b.current=!0,B(L))},[B]);return q.useEffect(()=>{if(o==="idle"&&l&&!b.current){const N=setTimeout(()=>B("summarise"),1e3);return()=>clearTimeout(N)}if(o==="userTyping"){b.current||y(Vo.find(j=>_o[j.label]===p)?.label??null);let N=0;const L=w.user,k=setInterval(()=>{Nc("userSent"),300))},35);return()=>clearInterval(k)}if(o==="userSent"&&(d(""),setTimeout(()=>c("thinking"),400)),o==="thinking"&&setTimeout(()=>c("assistantTyping"),1200),o==="assistantTyping"){let N=0;const L=w.assistant,k=setInterval(()=>{Nc("complete"),200))},20);return()=>clearInterval(k)}if(o==="complete"&&(d(""),r&&!b.current)){const N=setTimeout(()=>B("summarise"),5e3);return()=>clearTimeout(N)}},[o,l,r,p,w,B]),tt.jsxs("div",{className:Ce("relative",i),children:[tt.jsx("div",{className:"rounded-[var(--radius-xl)] overflow-hidden bg-white/15 backdrop-blur-xl shadow-[0_8px_32px_rgba(0,0,0,0.12)] border border-white/20",children:tt.jsxs("div",{className:"relative p-6 md:p-8",children:[tt.jsxs("div",{className:"flex items-center gap-3 mb-6 pb-4 border-b border-[var(--color-surface-gray-200)]",children:[tt.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-brand-primary)] flex items-center justify-center",children:tt.jsx("span",{className:"text-white font-semibold text-lg",children:"A"})}),tt.jsxs("div",{children:[tt.jsx("h3",{className:"font-medium text-[var(--color-text-primary)]",children:"Aida Chat"}),tt.jsx("p",{className:"text-sm text-white",children:"AI-powered compliance assistance"})]})]}),tt.jsx("div",{className:"space-y-4 min-h-[280px]",children:tt.jsxs(W1,{mode:"sync",children:[(o==="userTyping"&&h||o==="userSent"||o==="thinking"||o==="assistantTyping"||o==="complete")&&tt.jsx(om,{role:"user",content:o==="userTyping"?h:w.user,isTyping:o==="userTyping",showCursor:o==="userTyping"},"user-message"),o==="thinking"&&tt.jsx(lw,{},"thinking"),(o==="assistantTyping"||o==="complete")&&tt.jsx(om,{role:"assistant",content:o==="complete"?w.assistant:h,citations:o==="complete"?w.citations:void 0,isTyping:o==="assistantTyping",showCursor:o==="assistantTyping"},"assistant-message")]})}),tt.jsxs("div",{className:"mt-6 pt-4 border-t border-[var(--color-surface-gray-200)]",children:[tt.jsx("div",{className:"mb-4",children:tt.jsx(dw,{staggerDelay:.08,children:Vo.map(N=>tt.jsx(fw,{variant:"default",size:"sm",icon:tt.jsx("span",{children:N.icon}),isActive:g===N.label,onClick:()=>Y(N.label),children:N.label},N.label))})}),tt.jsxs("div",{className:"flex items-center gap-3",children:[tt.jsx("div",{className:Ce("flex-1 px-4 py-3 rounded-[var(--radius-lg)]","bg-[var(--color-surface-white)] border border-[var(--color-surface-gray-200)]","text-[var(--color-text-muted)] text-sm"),children:o==="idle"?"Ask anything about compliance...":"Type a message..."}),tt.jsx(Je.button,{className:Ce("p-3 rounded-full","bg-[var(--color-brand-primary)] text-white","hover:bg-[var(--color-brand-primary-dark)] transition-colors"),whileHover:{scale:1.05},whileTap:{scale:.95},children:tt.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:tt.jsx("path",{d:"M3.33337 10H16.6667M16.6667 10L10 3.33337M16.6667 10L10 16.6667",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}),o==="complete"&&!r&&tt.jsx(Je.button,{className:Ce("absolute bottom-4 right-4 px-3 py-1.5 rounded-full text-sm","bg-[var(--color-surface-gray-100)] text-[var(--color-text-secondary)]","hover:bg-[var(--color-surface-gray-200)] transition-colors"),initial:{opacity:0},animate:{opacity:1},onClick:()=>B(),children:"Replay"})]})}const mw='@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Poppins",system-ui,sans-serif;--font-mono:"JetBrains Mono","SF Mono",Menlo,monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-emerald-50:oklch(97.9% .021 166.113);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:6px;--radius-md:10px;--radius-lg:16px;--radius-xl:24px;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-brand-primary:#049cf0;--color-brand-primary-light:#33b5f5;--color-brand-primary-dark:#0380cc;--color-accent-cta:#049cf0;--color-accent-cta-hover:#0380cc;--color-gradient-blue:#049cf033;--color-gradient-blue-solid:#049cf0;--color-gradient-cyan:#00d4ff33;--color-gradient-cyan-solid:#00d4ff;--color-gradient-sky:#33b5f526;--color-gradient-sky-solid:#33b5f5;--color-gradient-navy:#0033cc26;--color-gradient-navy-solid:#03c;--color-surface-white:#fff;--color-surface-gray-50:#f8fafc;--color-surface-gray-100:#f0f4f8;--color-surface-gray-200:#e2e8f0;--color-surface-gray-300:#cbd5e1;--color-text-primary:#101a29;--color-text-secondary:#737588;--color-text-muted:#a1a1aa;--shadow-soft:0 2px 8px #0000000a,0 4px 16px #0000000f;--shadow-elevated:0 4px 12px #0000000d,0 8px 32px #00000014;--shadow-glow-brand:0 0 32px #049cf040;--shadow-glow-blue:0 0 32px #049cf033;--radius-full:9999px;--font-display:"Poppins",system-ui,sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.mb-16{margin-bottom:calc(var(--spacing)*16)}.ml-0{margin-left:calc(var(--spacing)*0)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.list-item{display:list-item}.table{display:table}.h-0{height:calc(var(--spacing)*0)}.h-0\\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-32{height:calc(var(--spacing)*32)}.h-40{height:calc(var(--spacing)*40)}.h-\\[72px\\]{height:72px}.h-full{height:100%}.min-h-\\[280px\\]{min-height:280px}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-2{width:calc(var(--spacing)*2)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-32{width:calc(var(--spacing)*32)}.w-40{width:calc(var(--spacing)*40)}.w-\\[400px\\]{width:400px}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\\[85\\%\\]{max-width:85%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.origin-center{transform-origin:50%}.-translate-x-1{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\\[scroll_30s_linear_infinite\\]{animation:30s linear infinite scroll}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-12{gap:calc(var(--spacing)*12)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[var\\(--radius-lg\\)\\]{border-radius:var(--radius-lg)}.rounded-\\[var\\(--radius-md\\)\\]{border-radius:var(--radius-md)}.rounded-\\[var\\(--radius-xl\\)\\]{border-radius:var(--radius-xl)}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-md{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.rounded-b-\\[var\\(--radius-xl\\)\\]{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.rounded-br-\\[var\\(--radius-sm\\)\\]{border-bottom-right-radius:var(--radius-sm)}.rounded-bl-\\[var\\(--radius-sm\\)\\]{border-bottom-left-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--color-brand-primary\\)\\]{border-color:var(--color-brand-primary)}.border-\\[var\\(--color-brand-primary\\)\\]\\/20{border-color:#049cf033}@supports (color:color-mix(in lab,red,red)){.border-\\[var\\(--color-brand-primary\\)\\]\\/20{border-color:color-mix(in oklab,var(--color-brand-primary)20%,transparent)}}.border-\\[var\\(--color-gradient-cyan-solid\\)\\]{border-color:var(--color-gradient-cyan-solid)}.border-\\[var\\(--color-surface-gray-200\\)\\]{border-color:var(--color-surface-gray-200)}.border-\\[var\\(--color-surface-gray-300\\)\\]{border-color:var(--color-surface-gray-300)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-white\\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\\/30{border-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.border-l-\\[var\\(--color-brand-primary\\)\\]{border-left-color:var(--color-brand-primary)}.border-l-\\[var\\(--color-surface-gray-300\\)\\]{border-left-color:var(--color-surface-gray-300)}.bg-\\[\\#1A1A2E\\]{background-color:#1a1a2e}.bg-\\[\\#28c840\\]{background-color:#28c840}.bg-\\[\\#049CF0\\]{background-color:#049cf0}.bg-\\[\\#101A29\\]{background-color:#101a29}.bg-\\[\\#F8FAFC\\]{background-color:#f8fafc}.bg-\\[\\#febc2e\\]{background-color:#febc2e}.bg-\\[\\#ff5f57\\]{background-color:#ff5f57}.bg-\\[var\\(--color-accent-cta\\)\\]{background-color:var(--color-accent-cta)}.bg-\\[var\\(--color-accent-cta\\)\\]\\/10{background-color:#049cf01a}@supports (color:color-mix(in lab,red,red)){.bg-\\[var\\(--color-accent-cta\\)\\]\\/10{background-color:color-mix(in oklab,var(--color-accent-cta)10%,transparent)}}.bg-\\[var\\(--color-brand-primary\\)\\]{background-color:var(--color-brand-primary)}.bg-\\[var\\(--color-brand-primary\\)\\]\\/5{background-color:#049cf00d}@supports (color:color-mix(in lab,red,red)){.bg-\\[var\\(--color-brand-primary\\)\\]\\/5{background-color:color-mix(in oklab,var(--color-brand-primary)5%,transparent)}}.bg-\\[var\\(--color-brand-primary\\)\\]\\/10{background-color:#049cf01a}@supports (color:color-mix(in lab,red,red)){.bg-\\[var\\(--color-brand-primary\\)\\]\\/10{background-color:color-mix(in oklab,var(--color-brand-primary)10%,transparent)}}.bg-\\[var\\(--color-gradient-blue\\)\\]{background-color:var(--color-gradient-blue)}.bg-\\[var\\(--color-gradient-cyan\\)\\]{background-color:var(--color-gradient-cyan)}.bg-\\[var\\(--color-surface-gray-50\\)\\]{background-color:var(--color-surface-gray-50)}.bg-\\[var\\(--color-surface-gray-100\\)\\]{background-color:var(--color-surface-gray-100)}.bg-\\[var\\(--color-surface-gray-200\\)\\]{background-color:var(--color-surface-gray-200)}.bg-\\[var\\(--color-surface-gray-300\\)\\]{background-color:var(--color-surface-gray-300)}.bg-\\[var\\(--color-surface-white\\)\\]{background-color:var(--color-surface-white)}.bg-\\[var\\(--color-text-muted\\)\\]{background-color:var(--color-text-muted)}.bg-\\[var\\(--color-text-primary\\)\\]{background-color:var(--color-text-primary)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\[var\\(--color-brand-primary\\)\\]{--tw-gradient-from:var(--color-brand-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\\[var\\(--color-brand-primary-light\\)\\]{--tw-gradient-to:var(--color-brand-primary-light);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-3\\.5{padding-block:calc(var(--spacing)*3.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-8{padding-top:calc(var(--spacing)*8)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-display{font-family:var(--font-display)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[15px\\]{font-size:15px}.leading-\\[1\\.15\\]{--tw-leading:1.15;line-height:1.15}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#049CF0\\]{color:#049cf0}.text-\\[\\#101A29\\]{color:#101a29}.text-\\[\\#737588\\]{color:#737588}.text-\\[var\\(--color-accent-cta\\)\\]{color:var(--color-accent-cta)}.text-\\[var\\(--color-brand-primary\\)\\]{color:var(--color-brand-primary)}.text-\\[var\\(--color-gradient-blue-solid\\)\\]{color:var(--color-gradient-blue-solid)}.text-\\[var\\(--color-text-muted\\)\\]{color:var(--color-text-muted)}.text-\\[var\\(--color-text-primary\\)\\]{color:var(--color-text-primary)}.text-\\[var\\(--color-text-secondary\\)\\]{color:var(--color-text-secondary)}.text-gray-400{color:var(--color-gray-400)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/30{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.text-white\\/30{color:color-mix(in oklab,var(--color-white)30%,transparent)}}.text-white\\/40{color:#fff6}@supports (color:color-mix(in lab,red,red)){.text-white\\/40{color:color-mix(in oklab,var(--color-white)40%,transparent)}}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_1px_3px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_8px_32px_rgba\\(0\\,0\\,0\\,0\\.12\\)\\]{--tw-shadow:0 8px 32px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--shadow-elevated\\)\\,var\\(--shadow-glow-brand\\)\\]{--tw-shadow:var(--shadow-elevated),var(--shadow-glow-brand);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--shadow-elevated\\)\\]{--tw-shadow:var(--shadow-elevated);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--shadow-glow-blue\\)\\]{--tw-shadow:var(--shadow-glow-blue);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--shadow-glow-brand\\)\\]{--tw-shadow:var(--shadow-glow-brand);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--shadow-soft\\)\\]{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\[var\\(--color-brand-primary\\)\\]{--tw-ring-color:var(--color-brand-primary)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background-color\\]{transition-property:background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:text-\\[var\\(--color-brand-primary\\)\\]:is(:where(.group):hover *){color:var(--color-brand-primary)}.group-hover\\:underline:is(:where(.group):hover *){text-decoration-line:underline}.hover\\:border-\\[var\\(--color-brand-primary\\)\\]:hover{border-color:var(--color-brand-primary)}.hover\\:border-\\[var\\(--color-surface-gray-300\\)\\]:hover{border-color:var(--color-surface-gray-300)}.hover\\:border-\\[var\\(--color-text-primary\\)\\]:hover{border-color:var(--color-text-primary)}.hover\\:bg-\\[\\#0380CC\\]:hover{background-color:#0380cc}.hover\\:bg-\\[var\\(--color-accent-cta-hover\\)\\]:hover{background-color:var(--color-accent-cta-hover)}.hover\\:bg-\\[var\\(--color-brand-primary-dark\\)\\]:hover{background-color:var(--color-brand-primary-dark)}.hover\\:bg-\\[var\\(--color-surface-gray-50\\)\\]:hover{background-color:var(--color-surface-gray-50)}.hover\\:bg-\\[var\\(--color-surface-gray-100\\)\\]:hover{background-color:var(--color-surface-gray-100)}.hover\\:bg-\\[var\\(--color-surface-gray-200\\)\\]:hover{background-color:var(--color-surface-gray-200)}.hover\\:bg-white\\/90:hover{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/90:hover{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.hover\\:text-\\[\\#049CF0\\]:hover{color:#049cf0}.hover\\:text-\\[var\\(--color-brand-primary\\)\\]:hover{color:var(--color-brand-primary)}.hover\\:text-\\[var\\(--color-text-secondary\\)\\]:hover{color:var(--color-text-secondary)}.hover\\:text-white\\/60:hover{color:#fff9}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/60:hover{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.hover\\:text-white\\/80:hover{color:#fffc}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/80:hover{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.hover\\:shadow-\\[var\\(--shadow-soft\\)\\]:hover{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[var\\(--color-brand-primary\\)\\]:focus-visible{--tw-ring-color:var(--color-brand-primary)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}@media(min-width:40rem){.sm\\:flex-row{flex-direction:row}}@media(min-width:48rem){.md\\:col-span-1{grid-column:span 1/span 1}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-\\[88px\\]{height:88px}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:gap-6{gap:calc(var(--spacing)*6)}.md\\:gap-16{gap:calc(var(--spacing)*16)}.md\\:p-8{padding:calc(var(--spacing)*8)}.md\\:p-10{padding:calc(var(--spacing)*10)}.md\\:p-12{padding:calc(var(--spacing)*12)}.md\\:py-20{padding-block:calc(var(--spacing)*20)}.md\\:py-24{padding-block:calc(var(--spacing)*24)}.md\\:py-28{padding-block:calc(var(--spacing)*28)}.md\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.md\\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.md\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.md\\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.md\\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.lg\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.lg\\:text-\\[3\\.5rem\\]{font-size:3.5rem}}}:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);font-family:Poppins,system-ui,sans-serif;line-height:1.6;display:block}.chat-bubble-user{background:linear-gradient(135deg,var(--color-brand-primary)0%,var(--color-brand-primary-light)100%);color:#fff}.chat-bubble-assistant{background:var(--color-surface-gray-100);border:1px solid var(--color-surface-gray-200)}@keyframes pill-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.cursor-blink{animation:1s ease-in-out infinite blink}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}',um="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap";function pw(){if(document.querySelector(`link[href="${um}"]`))return;const i=document.createElement("link");i.rel="stylesheet",i.href=um,document.head.appendChild(i)}function Uo(i={}){const{targetId:l="aida-chat-widget-compliance-v2",autoPlay:r=!0,loop:o=!0}=i,c=document.getElementById(l);if(!c){console.warn(`[AidaChatWidget] Target element #${l} not found`);return}if(c.shadowRoot){console.warn(`[AidaChatWidget] #${l} already has a shadow root`);return}pw();const h=c.attachShadow({mode:"open"}),d=document.createElement("style");d.textContent=mw,h.appendChild(d);const g=document.createElement("div");g.id="aida-widget-root",h.appendChild(g);const y=xv.createRoot(g);return y.render(hv.createElement(hw,{autoPlay:r,loop:o})),()=>{y.unmount()}}window.AidaChatWidget={mount:Uo},document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Uo({targetId:"aida-chat-widget-compliance-v2",autoPlay:!0,loop:!0})}):Uo({targetId:"aida-chat-widget-compliance-v2",autoPlay:!0,loop:!0})})();